]> git.ipfire.org Git - thirdparty/binutils-gdb.git/blame - gdb/ChangeLog
Bump version to 11.0.50.DATE-git.
[thirdparty/binutils-gdb.git] / gdb / ChangeLog
CommitLineData
32aea73e
JB
12020-09-13 Joel Brobecker <brobecker@adacore.com>
2
3 GDB 10 branch created (8087c3fa8b5d695e3e29e69d70d0b35ec902ac59):
4 * version.in: Bump version to 11.0.50.DATE-git.
5
8087c3fa
JB
62020-09-12 Joel Brobecker <brobecker@adacore.com>
7
8 * infrun.c (namespace selftests): Only define #if GDB_SELF_TEST.
9
2a67f09d
FW
102020-09-11 Moritz Riesterer <moritz.riesterer@intel.com>
11 Felix Willgerodt <Felix.Willgerodt@intel.com>
12
13 * gdbarch.sh: Added bfloat16 type.
14 * gdbarch.c: Regenerated.
15 * gdbarch.h: Regenerated.
16 * gdbtypes.c (floatformats_bfloat16): New struct.
17 (gdbtypes_post_init): Add builtin_bfloat16.
18 * gdbtypes.h (struct builtin_type) <builtin_bfloat16>: New member.
19 (floatformats_bfloat16): New struct.
20 * i386-tdep.c (i386_zmm_type): Add field "v32_bfloat16"
21 (i386_ymm_type): Add field "v16_bfloat16"
22 (i386_gdbarch_init): Add set_gdbarch_bfloat16_format.
23 * target-descriptions.c (make_gdb_type): Add case TDESC_TYPE_BFLOAT16.
24 * gdbsupport/tdesc.cc (tdesc_predefined_types): New member bfloat16.
25 * gdbsupport/tdesc.h (tdesc_type_kind): New member TDESC_TYPE_BFLOAT16.
26 * features/i386/64bit-avx512.xml: Add bfloat16 type.
27 * features/i386/64bit-avx512.c: Regenerated.
28 * features/i386/64bit-sse.xml: Add bfloat16 type.
29 * features/i386/64bit-sse.c: Regenerated.
30
1347d111
FW
312020-09-11 Felix Willgerodt <felix.willgerodt@intel.com>
32
33 * i386-tdep.c (i386_zmm_type): Fix field names.
34 (i386_ymm_type): Fix field names.
35
7a4e8e7d
TBA
362020-09-11 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
37
38 * breakpoint.c: Fix typo in the help message of the
39 "set breakpoint condition-evaluation" command.
40
cf4ac4be
KR
412020-09-10 Kamil Rytarowski <n54@gmx.com>
42
43 * nbsd-nat.c: Include "nat/netbsd-nat.h".
44 * (nbsd_nat_target::pid_to_exec_file)
45 (nbsd_nat_target::thread_alive, nbsd_nat_target::thread_name)
46 (nbsd_nat_target::post_startup_inferior)
47 (nbsd_nat_target::post_attach, nbsd_nat_target::xfer_partial)
48 (nbsd_add_threads): Switch local code to common gdb/nat functions.
49 * (nbsd_pid_to_cmdline): Call sysctl from the global namespace.
50 * (nbsd_thread_lister): Remove.
51
f404573e
KR
522020-09-10 Kamil Rytarowski <n54@gmx.com>
53
54 * fork-inferior.c (startup_inferior): Avoid double free.
55
1ccb2c17
KR
562020-09-10 Kamil Rytarowski <n54@gmx.com>
57
58 * netbsd-nat.h (netbsd_nat::qxfer_siginfo): Add.
59 * netbsd-nat.c (netbsd_nat::qxfer_siginfo): Likewise.
60
feedfcc7
KR
612020-09-10 Kamil Rytarowski <n54@gmx.com>
62
63 * netbsd-nat.h (netbsd_nat::enable_proc_events): Add.
64 * netbsd-nat.c: Include <sys/ptrace.h>.
65 * (netbsd_nat::enable_proc_events): Add.
66
c489f8c6
KR
672020-09-10 Kamil Rytarowski <n54@gmx.com>
68
69 * netbsd-nat.h: Include "gdbsupport/function-view.h".
70 * (netbsd_nat::thread_alive, netbsd_nat::thread_name)
71 (netbsd_nat::for_each_thread): Add.
72 * netbsd-nat.c: Include "gdbsupport/common-defs.h" and
73 "gdbsupport/common-debug.h".
74 * (netbsd_nat::netbsd_thread_lister)
75 (netbsd_nat::thread_alive, netbsd_nat::thread_name)
76 (netbsd_nat::for_each_thread): Add.
77
330662f6
KR
782020-09-10 Kamil Rytarowski <n54@gmx.com>
79
80 * netbsd-nat.h: Include <unistd.h>.
81 * (netbsd_nat::pid_to_exec_file): Add.
82 * netbsd-nat.c: Include <sys/types.h> and <sys/sysctl.h>.
83 * (netbsd_nat::pid_to_exec_file) Add.
84
70b67307
KR
852020-09-10 Kamil Rytarowski <n54@gmx.com>
86
87 * configure.nat (NATDEPFILES): Add nat/netbsd-nat.o when needed.
88
99cf6da6
KR
892020-09-10 Kamil Rytarowski <n54@gmx.com>
90
91 * netbsd-nat.h: New file.
92 * netbsd-nat.c: Likewise.
93
1b788fb6
TT
942020-09-09 Tom Tromey <tromey@adacore.com>
95
96 * ada-lang.c (remove_extra_symbols): Do not increment when
97 removing an element
98
03b0a45f
TT
992020-09-08 Tom Tromey <tromey@adacore.com>
100
101 * gdb_bfd.c (gdb_bfd_open): Call bfd_fopen when fstat fails.
102
3cae4447
TT
1032020-09-08 Tom Tromey <tromey@adacore.com>
104
105 PR win32/25302:
106 * gdb_bfd.c (gdb_bfd_data): Add "st" parameter.
107 (gdb_bfd_init_data): New function.
108 (gdb_bfd_open, gdb_bfd_ref): Use gdb_bfd_init_data.
109
7f08fd51
TBA
1102020-09-07 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
111
112 * infrun.c (fetch_inferior_event): Use
113 `switch_to_target_no_thread` to switch the target.
114
3e6ff933
TT
1152020-09-06 Tom Tromey <tom@tromey.com>
116
117 * symfile.h (dwarf2_free_objfile): Don't declare.
118
e56798df
AKS
1192020-09-03 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
120
121 * gdb/i386-tdep.c (i386_floatformat_for_type): Added conditions
122 to match 16 byte real/complex type generated by Flang compiler.
123
8f5c6526
TV
1242020-09-03 Tom de Vries <tdevries@suse.de>
125
126 PR breakpoint/26546
127 * dwarf2/read.c (new_symbol): Tag label symbol without DW_AT_low_pc as
128 LOC_OPTIMIZED_OUT instead of LOC_LABEL.
129
c5065df0
SM
1302020-09-02 Simon Marchi <simon.marchi@polymtl.ca>
131
132 * maint.c (index_digits): New function.
133 (struct maint_print_section_data): Remove.
134 (print_bfd_section_info): Remove print_data parameter, add arg
135 and index_digits.
136 (print_objfile_section_info): Likewise.
137 (print_bfd_section_info_maybe_relocated): Likewise (plus
138 objfile).
139 (maintenance_info_sections): Adjust calls.
140
02c6f3f1
TT
1412020-09-02 Tom Tromey <tromey@adacore.com>
142
143 * ada-varobj.c (ada_varobj_get_ptr_number_of_children): Return 0
144 for null pointers.
145 (ada_varobj_adjust_for_child_access): Special-case null pointers.
146
ef5e5b0b
SM
1472020-09-01 Simon Marchi <simon.marchi@polymtl.ca>
148
149 * bcache.h (struct bcache) <insert>: Change type of `added` to
150 pointer to bool.
151 * bcache.c (bcache::insert): Likewise.
152 * gdbtypes.c (check_types_worklist): Adjust.
153 * psymtab.c (add_psymbol_to_bcache): Adjust.
154
973695d6
KB
1552020-08-31 Kevin Buettner <kevinb@redhat.com>
156
157 * corelow.c (unordered_set): Include.
158 (class core_target): Add field 'm_core_unavailable_mappings'.
159 (core_target::build_file_mappings): Print only one warning
160 per inaccessible file. Add unavailable/broken mappings
161 to m_core_unavailable_mappings.
162 (core_target::xfer_partial): Call...
163 (core_target::xfer_memory_via_mappings): New method.
164
264fc0e2
SM
1652020-08-31 Simon Marchi <simon.marchi@polymtl.ca>
166
167 * dwarf2/read.c (struct field_info) <non_public_fields>: Change
168 type to bool.
169
2de01bdb
SM
1702020-08-31 Simon Marchi <simon.marchi@polymtl.ca>
171
172 * dwarf2/read.c (struct field_info): Fix indentation.
173
f3bd50f1
SM
1742020-08-31 Simon Marchi <simon.marchi@efficios.com>
175
176 * frame-unwind.h (frame_prev_register_ftype): Fix adjective
177 ordering in comment.
178 * frame.c (frame_id_eq): Fix indentation.
179
22b9b4b0
SL
1802020-08-31 Scott Linder <scott@scottlinder.com>
181 Simon Marchi <simon.marchi@efficios.com>
182
183 * inline-frame.c (inline_frame_this_id): Remove assert that prevents
184 inline frame ids in outer frame.
185
84154d16
SM
1862020-08-31 Simon Marchi <simon.marchi@efficios.com>
187
188 * frame.h (enum frame_id_stack_status) <FID_STACK_OUTER>: New.
189 * frame.c (fprint_frame_id): Handle FID_STACK_OUTER.
190 (outer_frame_id): Use FID_STACK_OUTER instead of
191 FID_STACK_INVALID.
192 (frame_id_p): Don't check for outer_frame_id.
193
8efaf6b3
SM
1942020-08-31 Simon Marchi <simon.marchi@efficios.com>
195
196 * frame-unwind.c (frame_unwind_got_optimized): Don't set
197 regnum/frame in value. Call allocate_value_lazy.
198 * frame.c (frame_unwind_register_value): Use
199 val_print_not_saved.
200
fe1fe7ea
SM
2012020-08-31 Simon Marchi <simon.marchi@efficios.com>
202
203 * gdbtypes.h (NULL_TYPE): Remove, change all uses to nullptr.
204
f7c7700d
PA
2052020-08-29 Pedro Alves <pedro@palves.net>
206
207 * progspace.c (print_program_space): Use all_inferiors. Switch to
208 the inferior before calling target_pid_to_str.
209
e0814aae
TT
2102020-08-28 Tom Tromey <tom@tromey.com>
211
212 * xcoffread.c (xcoff_end_psymtab): Update comment.
213 * dbxread.c (dbx_end_psymtab): Update comment.
214
626d2320
TV
2152020-08-28 Tom de Vries <tdevries@suse.de>
216
217 PR breakpoint/26544
218 * breakpoint.c (parse_breakpoint_sals): Remove const from struct
219 event_location.
220 (create_breakpoint): Same.
221 (base_breakpoint_decode_location): Same.
222 (bkpt_create_sals_from_location): Same.
223 (bkpt_decode_location): Same.
224 (bkpt_probe_create_sals_from_location): Same.
225 (bkpt_probe_decode_location): Same.
226 (tracepoint_create_sals_from_location): Same.
227 (tracepoint_decode_location): Same.
228 (tracepoint_probe_decode_location): Same.
229 (strace_marker_create_sals_from_location): Same.
230 (strace_marker_decode_location): Same.
231 (create_sals_from_location_default): Same.
232 (decode_location_default): Same.
233 * breakpoint.h (struct breakpoint_ops): Same.
234 (create_breakpoint): Same.
235 * linespec.h (decode_line_full): Same.
236 * linespec.c (decode_line_full): Same. Throw error if
237 result.size () == 0.
238
df631783
PA
2392020-08-27 Pedro Alves <pedro@palves.net>
240
241 PR gdb/26524
242 * breakpoint.c (until_break_fsm) <location_breakpoint,
243 caller_breakpoint>: Delete fields.
244 <breakpoints>: New field.
245 <until_break_fsm>: Adjust to save a breakpoint vector instead of
246 two individual breakpoints.
247 (until_break_fsm::should_stop): Loop over breakpoints in the
248 breakpoint vector.
249 (until_break_fsm::clean_up): Adjust to clear the breakpoints
250 vector.
251 (until_break_command): Handle location expanding into multiple
252 sals.
253
b2b38aa4
PA
2542020-08-27 Pedro Alves <pedro@palves.net>
255
256 PR gdb/26523
257 * inline-frame.c (stopped_by_user_bp_inline_frame): Also consider
258 bp_until breakpoints user-specified locations. Update intro
259 comment.
260
b886559f
SM
2612020-08-27 Simon Marchi <simon.marchi@polymtl.ca>
262
263 * gdb_bfd.h (gdb_bfd_section_iterator, gdb_bfd_section_range,
264 gdb_bfd_sections): New.
265 * maint.c (print_bfd_section_info): Change param type to
266 maint_print_section_data.
267 (print_objfile_section_info): Likewise.
268 (print_bfd_section_info_maybe_relocated): Likewise.
269 (maintenance_info_sections): Use gdb_bfd_sections.
270
4c6e63bf
SV
2712020-08-25 Shahab Vahedi <shahab@synopsys.com>
272
273 * MAINTAINERS: Add ARC target and maintainer.
274
8d7f0635
AK
2752020-08-25 Anton Kolesov <anton.kolesov@synopsys.com>
276
277 * configure.tgt: ARC support for GNU/Linux.
278 * Makefile.in (ALL_TARGET_OBJS): Likewise.
279 * arc-linux-tdep.c: New file.
280 * arc-tdep.h (ARC_STATUS32_L_MASK, ARC_STATUS32_DE_MASK): Declare.
281 * arc-tdep.c (arc_write_pc): Use it.
282
fdd8731b
SV
2832020-08-25 Shahab Vahedi <shahab@synopsys.com>
284
285 * arc-tdep.c (arc_check_for_hardware_loop): New.
286 * arc-tdep.h (gdbarch_tdep): New field has_hw_loops.
287
22459524
SV
2882020-08-25 Shahab Vahedi <shahab@synopsys.com>
289
290 * arc-tdep.h: Include "gdbarch.h".
291
995d3a19
SV
2922020-08-25 Shahab Vahedi <shahab@synopsys.com>
293
294 * arch/arc.h
295 (arc_gdbarch_features): New class to stir the selection of target XML.
296 (arc_create_target_description): Use FEATURES to choose XML target.
297 (arc_lookup_target_description): Use arc_create_target_description
298 to create _new_ target descriptions or return the already created
299 ones if the FEATURES is the same.
300 * arch/arc.c: Implementation of prototypes described above.
301 * gdb/arc-tdep.h (arc_regnum enum): Add more registers.
302 (arc_gdbarch_features_init): Initialize the FEATURES struct.
303 * arc-tdep.c (*_feature_name): Make feature names consistent.
304 (arc_register_feature): A new struct to hold information about
305 registers of a particular target/feature.
306 (arc_check_tdesc_feature): Check if XML provides registers in
307 compliance with ARC_REGISTER_FEATURE structs.
308 (arc_update_acc_reg_names): Add aliases for r58 and r59.
309 (determine_*_reg_feature_set): Which feature name to look for.
310 (arc_gdbarch_features_init): Given MACH and ABFD, initialize FEATURES.
311 (mach_type_to_arc_isa): Convert from a set of binutils machine types
312 to expected ISA enums to be used in arc_gdbarch_features structs.
313 * features/Makefile (FEATURE_XMLFILES): Add new files.
314 * gdb/features/arc/v1-aux.c: New file.
315 * gdb/features/arc/v1-aux.xml: Likewise.
316 * gdb/features/arc/v1-core.c: Likewise.
317 * gdb/features/arc/v1-core.xml: Likewise.
318 * gdb/features/arc/v2-aux.c: Likewise.
319 * gdb/features/arc/v2-aux.xml: Likewise.
320 * gdb/features/arc/v2-core.c: Likewise.
321 * gdb/features/arc/v2-core.xml: Likewise.
322 * NEWS (Changes since GDB 9): Announce obsolence of old feature names.
323
3945d2d7
GM
3242020-08-25 Gaius Mulley <gaiusmod2@gmail.com>
325 Andrew Burgess <andrew.burgess@embecosm.com>
326
327 PR m2/26372
fc5d6901 328 * m2-exp.y (exp): Improve comment for non_empty_arglist case, add
3945d2d7
GM
329 an assert. Remove single element array indexing pattern as the
330 MULTI_SUBSCRIPT support will handle this case too.
331
2677f2d3
SM
3322020-08-24 Simon Marchi <simon.marchi@polymtl.ca>
333
334 * value.h (valprint_check_validity): Move declaration from
335 here...
336 * valprint.h (valprint_check_validity): ... to here.
337
c426fddb
SM
3382020-08-24 Simon Marchi <simon.marchi@efficios.com>
339
340 * debug.h: New file.
341 * debug.c (debug_prefixed_vprintf): New function.
342 * infrun.c (infrun_debug_printf_1): Use debug_prefixed_vprintf.
343 * linux-nat.c (linux_nat_debug_printf_1): Likewise.
344
1eb8556f
SM
3452020-08-24 Simon Marchi <simon.marchi@efficios.com>
346
347 * infrun.h (infrun_debug_printf_1): New function declaration.
348 (infrun_debug_printf): New macro.
349 * infrun.c (infrun_debug_printf_1): Use infrun_debug_printf
350 throughout.
351 (infrun_debug_printf): New function.
352 * breakpoint.c (should_be_inserted): Use infrun_debug_printf.
353 (handle_jit_event): Likewise.
354
b8fff44e
MW
3552020-08-21 Mark Wielaard <mark@klomp.org>
356
357 * ada-lex.l: Extend register warnings diagnostics comment for g++.
358
d19c3068
SM
3592020-08-22 Simon Marchi <simon.marchi@efficios.com>
360
361 * frame.c (enum class frame_id_status): New.
362 (struct frame_info) <this_id::p>: Change type to frame_id_status.
363 (fprintf_frame): Update.
364 (compute_frame_id): Set frame id status to "computing" on entry.
365 Set it back to "not_computed" on failure and to "computed" on
366 success.
367 (get_frame_id): Assert the frame id is not being computed.
368 (create_sentinel_frame): Use frame_id_status::COMPUTED.
369 (create_new_frame): Likewise.
370 (frame_cleanup_after_sniffer): Update assert.
371
b70e516e
SM
3722020-08-20 Simon Marchi <simon.marchi@polymtl.ca>
373
374 * regcache.c (pid_ptid_regcache_map): New type.
375 (target_ptid_regcache_map): Remove.
376 (target_pid_ptid_regcache_map): New type.
377 (regcaches): Change type to target_pid_ptid_regcache_map.
378 (get_thread_arch_aspace_regcache): Update.
379 (regcache_thread_ptid_changed): Update, handle pid-like ptid
380 case.
381 (regcaches_size): Update.
382 (regcache_count): Update.
383 (registers_changed_ptid_target_pid_test): New.
384 (_initialize_regcache): Register new test.
385
cdd9148a
SM
3862020-08-20 Simon Marchi <simon.marchi@polymtl.ca>
387
388 * regcache.c (regcache_count): New.
389 (struct regcache_test_data): New.
390 (regcache_test_data_up): New.
391 (populate_regcaches_for_test): New.
392 (regcaches_test): Remove.
393 (get_thread_arch_aspace_regcache_test): New.
394 (registers_changed_ptid_all_test): New.
395 (registers_changed_ptid_target_test): New.
396 (registers_changed_ptid_target_ptid_test): New.
397 (regcache_thread_ptid_changed): Remove regcache_count lambda.
398 (_initialize_regcache): Register new tests.
399
dd125343
SM
4002020-08-20 Simon Marchi <simon.marchi@polymtl.ca>
401
402 * regcache.c (test_get_thread_arch_aspace_regcache): Rename to...
403 (get_thread_arch_aspace_regcache_and_check): ... this. Remove
404 gdbarch and aspace parameter. Use current inferior's aspace.
405 Validate regcache's arch value.
406 (regcaches_test): Update.
407
3ee93972
SM
4082020-08-20 Simon Marchi <simon.marchi@polymtl.ca>
409
410 * regcache.c (regcaches_test): Call registers_changed.
411
33bf4c5c
TBA
4122020-08-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
413
414 * infrun.c (process_event_stop_test): Fix typo "breapoint".
415
c2fd7fae
AKS
4162020-08-19 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
417
418 * amd64-tdep.c (amd64_skip_prologue): Using symbol table
419 to find the end of prologue for flang compiled binaries.
420 * arm-tdep.c (arm_skip_prologue): Likewise.
421 * i386-tdep.c (i386_skip_prologue): Likewise.
422 * producer.c (producer_is_llvm): New function.
423 (producer_parsing_tests): Added new tests for clang/flang.
424 * producer.h (producer_is_llvm): New declaration.
425
9327494e
SM
4262020-08-18 Simon Marchi <simon.marchi@efficios.com>
427
428 * linux-nat.c (linux_nat_debug_printf): New function.
429 (linux_nat_debug_printf_1): New macro. Use throughout the file.
430
d138725a
AM
4312020-08-18 Aaron Merey <amerey@redhat.com>
432
433 * Makefile.in (DEBUGINFOD_CFLAGS, DEBUGINFOD_LIBS): New variables.
434 (INTERNAL_CFLAGS_BASE): Add DEBUGINFOD_CFLAGS.
435 (CLIBS): Add DEBUGINFOD_LIBS.
436
f9b11e6b
ST
4372020-08-17 Sergei Trofimovich <siarheit@google.com>
438
439 * ia64-linux-nat.c: Include "gdbarch.h" to declare used
440 'gdbarch_num_regs'.
441
3ae7ab99
TT
4422020-08-17 Tom Tromey <tromey@adacore.com>
443
444 * ada-varobj.c (ada_varobj_decode_var): Handle case where
445 ada_get_decoded_value returns NULL.
446
b017825f
TT
4472020-08-17 Tom Tromey <tromey@adacore.com>
448
449 * python/py-inferior.c (infpy_search_memory): Use
450 gdb_py_object_from_ulongest.
451 * python/py-infevents.c (create_inferior_call_event_object)
452 (create_memory_changed_event_object): Use
453 gdb_py_object_from_ulongest.
454 * python/py-linetable.c (ltpy_entry_get_pc): Use
455 gdb_py_object_from_ulongest.
456
7635cf79
SM
4572020-08-17 Simon Marchi <simon.marchi@polymtl.ca>
458
459 * loc.c (class symbol_needs_eval_context): Fix indentation.
460
f54be24b
SM
4612020-08-17 Simon Marchi <simon.marchi@polymtl.ca>
462
463 * dwarf2/loc.c (dwarf2_loc_desc_get_symbol_read_needs): Use
464 bool.
465
53d5a2a5
TV
4662020-08-17 Tom de Vries <tdevries@suse.de>
467
468 PR gdb/26393
469 * gdbtypes.c (dump_dynamic_prop): New function.
470 (recursive_dump_type): Use dump_dynamic_prop for TYPE_CODE_RANGE.
471
547ce8f0
TV
4722020-08-15 Tom de Vries <tdevries@suse.de>
473
474 PR backtrace/26390
475 * stack.c (print_frame_args): Temporarily set the selected
476 frame to FRAME while printing the frame's arguments.
477
6ea815e7
PFC
4782020-08-14 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
479
480 PR breakpoints/26385
481 * ppc-linux-nat.c (ppc_linux_nat_target::low_prepare_to_resume):
482 Always clear watchpoint with PTRACE_SET_DEBUGREG.
483
6e562fa3
PFC
4842020-08-14 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
485
486 * ppc-linux-nat.c (ppc_linux_dreg_interface::detect)
487 (ppc_linux_nat_target::low_prepare_to_resume): Use ptrace () < 0
488 and >= to check return value instead of == -1 and != -1.
489
d369b608
SM
4902020-08-14 Simon Marchi <simon.marchi@polymtl.ca>
491
492 * utils.h (class gdb_argv) <as_array_view>: New method.
493 * utils.c (gdb_argv_as_array_view_test): New.
494 (_initialize_utils): Register selftest.
495 * maint.c (maintenance_selftest): Use the new method.
496
b31488a3
KR
4972020-08-13 Kamil Rytarowski <n54@gmx.com>
498
499 * target.h (supports_dumpcore, dumpcore): New
500 function declarations.
501 * target.c (supports_dumpcore, dumpcore): New
502 functions.
503 * target-delegates.c: Rebuild.
504 * gcore.c (gcore_command): Use target_supports_dumpcore ()
505 and target_dumpcore ().
506
002a3166
AM
5072020-08-13 Aaron Merey <amerey@redhat.com>
508
509 * debuginfod-support.c: Replace global variables with user_data.
510
ece5bc8a
SM
5112020-08-13 Simon Marchi <simon.marchi@polymtl.ca>
512
513 * maint.c (maintenance_selftest): Split args and pass array_view
514 to run_tests.
515
6d8a0a5e
LM
5162020-08-12 Luis Machado <luis.machado@linaro.org>
517
518 * value.c (check_type_length_before_alloc): Use ULONGEST to store a
519 type's length.
520 Use %s and pulongest to print the length.
521
7cf663a9
PA
5222020-08-12 Pedro Alves <palves@redhat.com>
523
524 * NEWS: Move "Multi-target debugging support" item to the
525 "Changes since GDB 9" section.
526
27c7b875
PA
5272020-08-12 Pedro Alves <palves@redhat.com>
528
529 PR gdb/26336
530 * progspace.c (program_space::remove_objfile): Invalidate the
531 frame cache.
532
1796a2a1
TV
5332020-08-11 Tom de Vries <tdevries@suse.de>
534
535 * MAINTAINERS: Mark ms1 as deleted.
536
f8e3fe0d
LM
5372020-08-10 Luis Machado <luis.machado@linaro.org>
538
539 PR gdb/26310
540
541 * aarch64-tdep.c (aarch64_analyze_prologue): Track use of SP/FP and
542 act accordingly.
543 (aarch64_analyze_prologue_test): Add more unit tests to exercise
544 movz/str/stur/stp skipping behavior.
545
cc308722
LM
5462020-08-10 Luis Machado <luis.machado@linaro.org>
547
548 * nat/aarch64-sve-linux-sigcontext.h (SVE_PT_REGS_OFFSET): Use
549 struct user_sve_header instead of struct sve_context.
550
041d9819
SM
5512020-08-09 Simon Marchi <simon.marchi@polymtl.ca>
552
553 * read.h (dwarf2_fetch_die_loc_sect_off,
554 dwarf2_fetch_die_loc_cu_off): Replace function pointer +
555 `void *` parameter with function_view.
556 * read.c (dwarf2_fetch_die_loc_sect_off,
557 dwarf2_fetch_die_loc_cu_off): Likewise.
558 * loc.c (get_frame_pc_for_per_cu_dwarf_call): Remove.
559 (per_cu_dwarf_call): Adjust.
560 (get_frame_address_in_block_wrapper): Remove.
561 (indirect_synthetic_pointer): Adjust.
562 (get_ax_pc): Remove.
563 (dwarf2_compile_expr_to_ax): Adjust.
564
38f8aa06
TV
5652020-08-08 Tom de Vries <tdevries@suse.de>
566
567 PR build/26344
568 * arch/riscv.c (riscv_lookup_target_description): Use an explicit
569 constructor.
570 * regcache.c (get_thread_arch_aspace_regcache): Same.
571
a52b3ae2
TT
5722020-08-07 Tom Tromey <tromey@adacore.com>
573
574 * ravenscar-thread.c
575 (ravenscar_thread_target::set_base_thread_from_ravenscar_task):
576 New method.
577 (ravenscar_thread_target::wait): Check
578 runtime_initialized.
579 (ravenscar_thread_target::prepare_to_store)
580 (ravenscar_thread_target::stopped_by_sw_breakpoint)
581 (ravenscar_thread_target::stopped_by_hw_breakpoint)
582 (ravenscar_thread_target::stopped_by_watchpoint)
583 (ravenscar_thread_target::stopped_data_address)
584 (ravenscar_thread_target::core_of_thread): Use
585 scoped_restore_current_thread and
586 set_base_thread_from_ravenscar_task.
587
0e29517d
TT
5882020-08-07 Tom Tromey <tromey@adacore.com>
589
590 * ravenscar-thread.c (update_thread_list): Set inferior_ptid.
591
592f9bd7
TT
5922020-08-07 Tom Tromey <tromey@adacore.com>
593
594 * ravenscar-thread.c (ravenscar_thread_target::wait): Call
595 update_inferior_ptid before update_thread_list.
596 (temporarily_change_regcache_ptid): New class.
597 (ravenscar_thread_target::fetch_registers)
598 (ravenscar_thread_target::store_registers)
599 (ravenscar_thread_target::prepare_to_store): Use base thread when
600 forwarding operation.
601
39e2018a
TT
6022020-08-07 Tom Tromey <tromey@adacore.com>
603
604 * ravenscar-thread.c (ravenscar_thread_target::resume): Handle
605 "is_pid" case.
606
2080266b
TT
6072020-08-07 Tom Tromey <tromey@adacore.com>
608
609 * ravenscar-thread.c (xfer_partial, enable_btrace, add_thread):
610 New methods.
611 (ravenscar_thread_target::get_thread_base_cpu): Check m_cpu_map
612 first.
613 (ravenscar_thread_target::add_thread): Rename from
614 ravenscar_add_thread.
615 (ravenscar_thread_target::update_thread_list): Use a lambda.
616 (ravenscar_thread_target::xfer_partial): New method.
617
78c02f21
TT
6182020-08-07 Tom Tromey <tromey@adacore.com>
619
620 * ada-lang.h (ada_task_list_iterator_ftype): Now a
621 gdb::function_view.
622 (iterate_over_live_ada_tasks): Change type of argument.
623 * ada-tasks.c (iterate_over_live_ada_tasks): Change type
624 of argument.
625
d5d833af
TT
6262020-08-07 Tom Tromey <tromey@adacore.com>
627
628 * ravenscar-thread.c (ravenscar_thread_target) <extra_thread_info>:
629 Remove.
630 (ravenscar_thread_target::extra_thread_info): Remove.
631 (ravenscar_thread_target::pid_to_str): Mention Ravenscar in result;
632 defer to target beneath for non-Ravenscar threads.
633
a8ac85bb
TT
6342020-08-07 Tom Tromey <tromey@adacore.com>
635
636 * ravenscar-thread.c (ravenscar_thread_target) <get_base_cpu,
637 get_base_thread_from_ravenscar_task>: Now methods.
638 <m_cpu_map>: New member.
639 (ravenscar_thread_target::get_thread_base_cpu): Rename from
640 ravenscar_get_thread_base_cpu. Check m_cpu_map.
641 (ravenscar_thread_target::task_is_currently_active): Update.
642 (ravenscar_thread_target::get_base_thread_from_ravenscar_task):
643 Now a method.
644 (ravenscar_thread_target::add_active_thread): Put initial thread
645 into the m_cpu_map.
646
550ab58d
TT
6472020-08-07 Tom Tromey <tromey@adacore.com>
648
649 * ravenscar-thread.c (ravenscar_thread_target::wait): Return
650 event_ptid.
651
e9546579
TT
6522020-08-07 Tom Tromey <tromey@adacore.com>
653
654 * ravenscar-thread.c (ravenscar_thread_target::wait): Check
655 runtime_initialized.
656
3d4470e5
TT
6572020-08-07 Tom Tromey <tromey@adacore.com>
658
659 * ravenscar-thread.c (ravenscar_thread_target): Don't call
660 add_active_thread.
661 (ravenscar_thread_target::add_active_thread): Now public.
662 (ravenscar_inferior_created): Call add_active_thread after pushing
663 the target.
664
888bdb2b
SM
6652020-08-07 Simon Marchi <simon.marchi@polymtl.ca>
666
667 * regcache.c (ptid_regcache_map): New type.
668 (target_ptid_regcache_map): New type.
669 (regcaches): Change type to target_ptid_regcache_map.
670 (get_thread_arch_aspace_regcache): Update to regcaches' new
671 type.
672 (regcache_thread_ptid_changed): Likewise.
673 (registers_changed_ptid): Likewise.
674 (regcaches_size): Likewise.
675 (regcaches_test): Update.
676 (regcache_thread_ptid_changed): Update.
677 * regcache.h (regcache_up): New type.
678 * gdbsupport/ptid.h (hash_ptid): New struct.
679
b161a60d
SM
6802020-08-07 Simon Marchi <simon.marchi@efficios.com>
681
682 * observable.h (thread_ptid_changed): Add parameter
683 `process_stratum_target *`.
684 * infrun.c (infrun_thread_ptid_changed): Add parameter
685 `process_stratum_target *` and use it.
686 (selftests): New namespace.
687 (infrun_thread_ptid_changed): New function.
688 (_initialize_infrun): Register selftest.
689 * regcache.c (regcache_thread_ptid_changed): Add parameter
690 `process_stratum_target *` and use it.
691 (regcache_thread_ptid_changed): New function.
692 (_initialize_regcache): Register selftest.
693 * thread.c (thread_change_ptid): Pass target to
694 thread_ptid_changed observable.
695
d2854d8d
CT
6962020-08-06 Caroline Tice <cmtice@google.com>
697
fe4c3d43
SM
698 * dwarf2/read.c (struct dwo_file): Update comment on 'sections' field.
699 (struct dwp_sections): Update field comments. Add loclists and
700 rnglists fields.
701 (struct virtual_v2_dwo_sections): Rename struct to
702 'virtual_v2_or_v5_dwo_sections'; update comments at top of struct; add
703 size & offset fields for loclists and rnglists.
704 (struct dwp_hash_table): Add a 'v5' struct field to the union section.
705 (create_debug_type_hash_table): Add 'DW_UT_split_type' to the check for
706 skipping dummy type units.
707 (create_dwp_hash_table): Update the large comment above the function to
708 discuss Version 5 DWP files as well, with references. Update all the
709 version checks in the function to check for version 5 as well. Add new
710 section at the end to create dwp hash table for version 5.
711 (create_dwp_v2_section): Rename function to
712 'create_dwp_v2_or_v5_section'. Update function comment appropriately.
713 Add V5 to error message text.
714 (create_dwo_unit_in_dwp_v2): Change calls to create_dwp_v2_section
715 into calls to create_dwp_v2_or_v5_section.
716 (create_dwo_unit_in_dwp_v5): New function.
717 (lookup_dwo_unit_in_dwp): Update conditional statement to explicitly
718 check for version2; add else clause to handle version 5.
719 (open_and_init_dwo_file): Add code to check dwarf version & only call
720 create_debug_types_hash_table (with sections.types) if version is not 5;
721 else call create_debug_type_hash_table, with sections.info.
722 (dwarf2_locate_v2_dwp_sections): Update function comment to mention
723 version 5.
724 (dwarf2_locate_v5_dwp_sections): New function.
725 (open_and_init_dwp_file): Add else-if clause for version 5 to call
726 bfd_map_over_sections with dwarf2_locate_v5_dwp_sections.
d2854d8d 727
159ed7d9
SM
7282020-08-06 Simon Marchi <simon.marchi@efficios.com>
729
730 * regcache.h (class regcache): Remove friend
731 registers_changed_ptid.
732 <regcache_thread_ptid_changed>: Remove.
733 <regcaches>: Remove.
734 * regcache.c (regcache::regcaches): Rename to...
735 (regcaches): ... this. Make static.
736 (get_thread_arch_aspace_regcache): Update.
737 (regcache::regcache_thread_ptid_changed): Rename to...
738 (regcache_thread_ptid_changed): ... this. Update.
739 (class regcache_access): Remove.
740 (regcaches_test): Update.
741 (_initialize_regcache): Update.
742 * sparc64-tdep.c, dwarf2/index-write.c, record-btrace.c: Include
743 <forward_list>.
744
174981ae
SM
7452020-08-06 Simon Marchi <simon.marchi@efficios.com>
746
747 * regcache.h (class regcache) <current_regcache>: Rename to...
748 <regcaches>: ... this. Move doc here.
749 * regcache.c (regcache::current_regcache) Rename to...
750 (regcache::regcaches): ... this. Move doc to header.
751 (get_thread_arch_aspace_regcache): Update.
752 (regcache::regcache_thread_ptid_changed): Update.
753 (registers_changed_ptid): Update.
754 (class regcache_access) <current_regcache_size>: Rename to...
755 <regcaches_size>: ... this.
756 (current_regcache_test): Rename to...
757 (regcaches_test): ... this.
758 (_initialize_regcache): Update.
759
ed908db6
VC
7602020-08-06 Victor Collod <vcollod@nvidia.com>
761
762 * amd64-tdep.c (amd64_analyze_prologue): Fix incorrect comment.
763
b5582ab7
KB
7642020-08-05 Kevin Buettner <kevinb@redhat.com>
765
766 * corelow.c (core_target::build_file_mappings): Don't output
767 null pathname in warning.
768
ea946b86
SM
7692020-08-05 Simon Marchi <simon.marchi@polymtl.ca>
770
771 * gdb.dwarf2/clztest.exp, gdb.dwarf2/dw2-common-block.exp,
772 gdb.dwarf2/dw2-dup-frame.exp, gdb.dwarf2/dw2-reg-undefined.exp,
773 gdb.dwarf2/dw2-single-line-discriminators.exp,
774 dw2-undefined-ret-addr.exp: Pass nopie to compilation options.
775
57d02173
TT
7762020-08-05 Tom Tromey <tromey@adacore.com>
777
778 PR rust/26197:
779 * dwarf2/read.c (alloc_rust_variant): Handle univariant case.
780 (quirk_rust_enum): Call alloc_rust_variant for univariant case.
781 Fix off-by-one and type size errors in ordinary case.
782
5555c86d
TV
7832020-08-05 Tom de Vries <tdevries@suse.de>
784
785 * gdbtypes.c (type_not_allocated, type_not_associated): Use
786 "prop->const_val () == 0" instead of "prop->const_val () != 0".
787
97916bfe
SM
7882020-08-04 Simon Marchi <simon.marchi@efficios.com>
789
790 * frame.h (frame_id_p): Return bool.
791 (frame_id_artificial_p): Return bool.
792 (frame_id_eq): Return bool.
793 (has_stack_frames): Return bool.
794 (get_selected_frame): Fix typo in comment.
795 (get_frame_pc_if_available): Return bool.
796 (get_frame_address_in_block_if_available): Return bool.
797 (get_frame_func_if_available): Return bool.
798 (read_frame_register_unsigned): Return bool.
799 (get_frame_register_bytes): Return bool.
800 (safe_frame_unwind_memory): Return bool.
801 (deprecated_frame_register_read): Return bool.
802 (frame_unwinder_is): Return bool.
803 * frame.c (struct frame_info) <prev_arch::p>: Change type to
804 bool.
805 <this_id::p>: Likewise.
806 <prev_p>: Likewise.
807 (frame_stash_add): Return bool.
808 (get_frame_id): Use bool.
809 (frame_id_build_special) Use bool.
810 (frame_id_build_unavailable_stack): Use bool.
811 (frame_id_build): Use bool.
812 (frame_id_p): Return bool, use true/false instead of 1/0.
813 (frame_id_artificial_p): Likewise.
814 (frame_id_eq): Likewise.
815 (frame_id_inner): Likewise.
816 (get_frame_func_if_available): Likewise.
817 (read_frame_register_unsigned): Likewise.
818 (deprecated_frame_register_read): Likewise.
819 (get_frame_register_bytes): Likewise.
820 (has_stack_frames): Likewise.
821 (inside_main_func): Likewise.
822 (inside_entry_func): Likewise.
823 (get_frame_pc_if_available): Likewise.
824 (get_frame_address_in_block_if_available): Likewise.
825 (frame_unwinder_is): Likewise.
826 (safe_frame_unwind_memory): Likewise.
827 (frame_unwind_arch): Likewise.
828
fedfee88
SM
8292020-08-04 Simon Marchi <simon.marchi@efficios.com>
830
831 * frame.c (frame_info) <prev_func> <p>: Rename to status, change
832 type to cached_copy_status.
833 (fprintf_frame): Adjust.
834 (get_frame_func_if_available): Adjust.
835 (frame_cleanup_after_sniffer): Adjust.
836
6cfa9b59
MW
8372020-08-04 Mark Wielaard <mark@klomp.org>
838
839 * MAINTAINERS (Write After Approval): Update email address.
840
66d6346b
SM
8412020-08-04 Simon Marchi <simon.marchi@polymtl.ca>
842
843 * gdbtypes.h (TYPE_DYN_PROP_ADDR): Remove, replace uses with
844 dynamic_prop::const_val.
845
8a6d5e35
SM
8462020-08-04 Simon Marchi <simon.marchi@polymtl.ca>
847
848 * gdbtypes.h (TYPE_DYN_PROP_KIND): Remove, replace uses with
849 dynamic_prop::kind.
850
51d6067d
SM
8512020-08-04 Simon Marchi <simon.marchi@polymtl.ca>
852
853 * gdbtypes.h (TYPE_DYN_PROP_BATON): Remove.
854
b26e2ae7
JM
8552020-08-04 Jose E. Marchesi <jose.marchesi@oracle.com>
856
857 * configure.tgt: Set gdb_sim for bpf-*-* targets.
858
39791af2
JM
8592020-08-04 Weimin Pan <weimin.pan@oracle.com>
860 Jose E. Marchesi <jose.marchesi@oracle.com>
861
862 * configure.tgt: Add entry for bpf-*-*.
863 * Makefile.in (ALL_TARGET_OBS): Add bpf-tdep.o
864 (ALLDEPFILES): Add bpf-tdep.c.
865 * bpf-tdep.c: New file.
866 * MAINTAINERS: Add bpf target and maintainer.
867 * NEWS: Mention the support for the new target.
868
521894aa
TV
8692020-08-04 Tom de Vries <tdevries@suse.de>
870
871 PR symtab/23270
872 * dwarf2/read.c (find_partial_die): Change internal error into Dwarf
873 Error.
874
5d6356e9
JB
8752020-08-03 John Baldwin <jhb@FreeBSD.org>
876
877 * syscalls/freebsd.xml: Regenerate.
878
0cf82b81
JB
8792020-08-03 John Baldwin <jhb@FreeBSD.org>
880
881 * syscalls/update-freebsd.sh: Fix usage and year range.
882
8f34b746
TV
8832020-08-03 Tom de Vries <tdevries@suse.de>
884
885 PR symtab/26333
886 * dwarf2/read.c (dwarf_decode_lines_1): Ignore
887 DW_LNE_lo_user/DW_LNE_hi_user range.
888
5e500d33
SM
8892020-07-30 Simon Marchi <simon.marchi@polymtl.ca>
890
891 PR ada/26318
892 * ada-lang.c (ada_modulus): Return 0 if property is not of const
893 kind.
894
78319c15
TBA
8952020-07-30 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
896
897 * breakpoint.c (set_breakpoint_condition): Do minor refactoring.
898
4c55e970
TBA
8992020-07-30 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
900
901 * breakpoint.c (set_breakpoint_condition): Update the condition
902 expressions after checking that the input condition string parses
903 successfully and does not contain junk at the end.
904
1e620590
TBA
9052020-07-30 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
906
907 * breakpoint.c (set_breakpoint_condition): Update the
908 condition string after parsing the new condition successfully.
909
c8693053
RO
9102020-07-30 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
911
912 * proc-api.c (_STRUCTURED_PROC): Don't define.
913 * proc-events.c: Likewise.
914 * proc-flags.c: Likewise.
915 * proc-why.c: Likewise.
916 * procfs.c: Likewise.
917
918 * Makefile.in (INTERNAL_CPPFLAGS): Add LARGEFILE_CPPFLAGS.
919 * configure, config.in: Regenerate.
920
5a99adb8
TV
9212020-07-30 Tom de Vries <tdevries@suse.de>
922
923 PR build/26320
924 * ui-style.h (struct ui_file_style::color): Wrap m_value and
925 m_red/m_green/m_blue in a union.
926
8ba83e91
TV
9272020-07-29 Tom de Vries <tdevries@suse.de>
928
929 PR tdep/26280
930 * s390-tdep.c (s390_displaced_step_fixup): Fix Wmaybe-uninitialized.
931
f75a0693
AB
9322020-07-28 Tom Tromey <tromey@adacore.com>
933
934 PR symtab/26270:
935 * symtab.h (find_pc_partial_function_sym): Declare.
936 * cli/cli-cmds.c (disassemble_command): Use
937 find_pc_partial_function_sym. Check asm_demangle.
938 * blockframe.c (cache_pc_function_sym): New global.
939 (cache_pc_function_name): Remove.
940 (clear_pc_function_cache): Update.
941 (find_pc_partial_function_sym): New function, from
942 find_pc_partial_function.
943 (find_pc_partial_function): Rewrite using
944 find_pc_partial_function_sym.
945
16f3242c
TT
9462020-07-28 Tom Tromey <tromey@adacore.com>
947
948 * cli/cli-cmds.c (_initialize_cli_cmds): Rearrange "disassemble"
949 help. Add usage.
950
4888741a
TT
9512020-07-28 Tom Tromey <tromey@adacore.com>
952
953 * dwarf2/expr.c (dwarf_expr_context::execute_stack_op)
954 <DW_OP_GNU_variable_value>: Cast to address type.
955
4d46f402
KR
9562020-07-28 Kamil Rytarowski <n54@gmx.com>
957
958 * nbsd-nat.h (nbsd_nat_target::xfer_partial): New declaration.
959 * nbsd-nat.c (nbsd_nat_target::xfer_partial): New function.
960 * nbsd-tdep.c (nbsd_gdbarch_data_handle, struct nbsd_gdbarch_data)
961 (init_nbsd_gdbarch_data, get_nbsd_gdbarch_data)
962 (nbsd_get_siginfo_type): New.
963 (nbsd_init_abi): Install gdbarch "get_siginfo_type" method.
964 (_initialize_nbsd_tdep): New.
965
d70f978b
L
9662020-07-28 H.J. Lu <hongjiu.lu@intel.com>
967
968 PR binutils/26301
969 * configure: Regenerated.
970
377170fa
L
9712020-07-28 H.J. Lu <hongjiu.lu@intel.com>
972
973 PR binutils/26301
974 * configure: Regenerated.
975
43d5901d
AB
9762020-07-28 Andrew Burgess <andrew.burgess@embecosm.com>
977
978 * python/py-frame.c: Remove 'user-regs.h' include.
979 (frapy_read_register): Rewrite to make use of
980 gdbpy_parse_register_id.
981 * python/py-registers.c (gdbpy_parse_register_id): New function,
982 moved here from python/py-unwind.c. Updated the return type, and
983 also accepts register descriptor objects.
984 * python/py-unwind.c: Remove 'user-regs.h' include.
985 (pyuw_parse_register_id): Moved to python/py-registers.c.
986 (unwind_infopy_add_saved_register): Update to use
987 gdbpy_parse_register_id.
988 (pending_framepy_read_register): Likewise.
989 * python/python-internal.h (gdbpy_parse_register_id): Declare.
990
14fa8fb3
AB
9912020-07-28 Andrew Burgess <andrew.burgess@embecosm.com>
992
993 * python/py-registers.c: Add 'user-regs.h' include.
994 (register_descriptor_iter_find): New function.
995 (register_descriptor_iterator_object_methods): New static global
996 methods array.
997 (register_descriptor_iterator_object_type): Add pointer to methods
998 array.
999
ddce1758
JB
10002020-07-27 John Baldwin <jhb@FreeBSD.org>
1001
1002 * fbsd-nat.h: Include <osreldate.h>. Define USE_SIGTRAP_SIGINFO
1003 for all architectures on FreeBSD 11.3 and later.
1004
a4089f52
TT
10052020-07-27 Tom Tromey <tromey@adacore.com>
1006
1007 * gcore.h (load_corefile): Don't declare.
1008
95420d30
TV
10092020-07-27 Tom de Vries <tdevries@suse.de>
1010
1011 * configure.ac: Fix sys/sockets.h -> sys/socket.h typo.
1012 * config.in: Regenerate.
1013 * configure: Regenerate.
1014
05a6b8c2
EZ
10152020-07-26 Eli Zaretskii <eliz@gnu.org>
1016
1017 * configure.ac (AC_CHECK_HEADERS): Check for sys/socket.h and
1018 ws2tcpip.h. When checking whether socklen_t type is defined, use
1019 ws2tcpip.h if it is available and sys/socket.h isn't.
1020 * configure: Regenerate.
1021 * config.in: Regenerate.
1022
e79eb02f
AB
10232020-07-25 Andrew Burgess <andrew.burgess@embecosm.com>
1024
1025 PR fortran/23051
1026 PR fortran/26139
1027 * valops.c (value_ind): Pass address to
1028 readjust_indirect_value_type.
1029 * value.c (readjust_indirect_value_type): Make parameter
1030 non-const, and add extra address parameter. Resolve original type
1031 before using it.
1032 * value.h (readjust_indirect_value_type): Update function
1033 signature and comment.
1034
876518dd
TV
10352020-07-25 Tom de Vries <tdevries@suse.de>
1036
1037 PR symtab/26243
1038 * dwarf2/read.c (lnp_state_machine::record_line): Ignore zero line
1039 entries.
1040
f6720b1c
AM
10412020-07-24 Aaron Merey <amerey@redhat.com>
1042
1043 * Makefile.in: Replace LIBDEBUGINFOD with DEBUGINFOD_LIBS.
1044 * configure: Rebuild.
1045
513487e1
KB
10462020-07-23 Kevin Buettner <kevinb@redhat.com>
1047
1048 PR corefiles/26294
1049 * corelow.c (_initialize_corelow): Add period to help text
1050 for "maintenance print core-file-backed-mappings".
1051
e7bc9db8
PA
10522020-07-23 Pedro Alves <pedro@palves.net>
1053
1054 * frame-unwind.c (frame_unwind_try_unwinder): On exception, don't
1055 touch THIS_CACHE/THIS_FRAME if the frame cache was cleared
1056 meanwhile.
1057 * frame.c (frame_cache_generation, get_frame_cache_generation):
1058 New.
1059 (reinit_frame_cache): Increment FRAME_CACHE_GENERATION.
1060 (get_prev_frame_if_no_cycle): On exception, don't touch
1061 PREV_FRAME/THIS_FRAME if the frame cache was cleared meanwhile.
1062 * frame.h (get_frame_cache_generation): Declare.
1063
90fcc466
TV
10642020-07-23 Tom de Vries <tdevries@suse.de>
1065
1066 PR tui/26282
1067 * tui/tui-winsource.h (struct tui_source_windows::tui_source_windows):
1068 New default constructor.
1069
78344df7
AB
10702020-07-23 Andrew Burgess <andrew.burgess@embecosm.com>
1071
1072 * disasm.c (do_mixed_source_and_assembly_deprecated): Don't
1073 exclude non-statement entries.
1074
b089853a
KB
10752020-07-22 Kevin Buettner <kevinb@redhat.com>
1076
1077 * NEWS (New commands): Mention new command
1078 "maintenance print core-file-backed-mappings".
1079
09c2f5d4
KB
10802020-07-22 Kevin Buettner <kevinb@redhat.com>
1081
1082 * corelow.c (gdbcmd.h): Include.
1083 (core_target::info_proc_mappings): New method.
1084 (get_current_core_target): New function.
1085 (maintenance_print_core_file_backed_mappings): New function.
1086 (_initialize_corelow): Add core-file-backed-mappings to
1087 "maint print" commands.
1088
9c5ec5c2 10892020-07-22 Kevin Buettner <kevinb@redhat.com>
fe4c3d43 1090
9c5ec5c2
KB
1091 * linux-tdep.c (dump_note_entry_p): New function.
1092 (linux_dump_mapping_p_ftype): New typedef.
1093 (linux_find_memory_regions_full): Add new parameter,
1094 should_dump_mapping_p.
1095 (linux_find_memory_regions): Adjust call to
1096 linux_find_memory_regions_full.
1097 (linux_make_mappings_core_file_notes): Use dump_note_entry_p in
1098 call to linux_find_memory_regions_full.
1099
db082f59
KB
11002020-07-22 Kevin Buettner <kevinb@redhat.com>
1101
1102 * corelow.c (solist.h, unordered_map): Include.
1103 (class core_target): Add field m_core_file_mappings and
1104 method build_file_mappings.
1105 (core_target::core_target): Call build_file_mappings.
1106 (core_target::~core_target): Free memory associated with
1107 m_core_file_mappings.
1108 (core_target::build_file_mappings): New method.
1109 (core_target::xfer_partial): Use m_core_file_mappings
1110 for memory transfers.
1111 * linux-tdep.c (linux_read_core_file_mappings): New
1112 function.
1113 (linux_core_info_proc_mappings): Rewrite to use
1114 linux_read_core_file_mappings.
1115 (linux_init_abi): Register linux_read_core_file_mappings.
1116
7e183d27
KB
11172020-07-22 Kevin Buettner <kevinb@redhat.com>
1118
1119 * arch-utils.c (default_read_core_file_mappings): New function.
1120 * arch-utils.c (default_read_core_file_mappings): Declare.
1121 * gdbarch.sh (read_core_file_mappings): New gdbarch method.
1122 * gdbarch.h, gdbarch.c: Regenerate.
1123
2735d421
KB
11242020-07-22 Kevin Buettner <kevinb@redhat.com>
1125
1126 PR corefiles/25631
1127 * corelow.c (core_target:xfer_partial): Revise
1128 TARGET_OBJECT_MEMORY case to consider non-SEC_HAS_CONTENTS
1129 case after first checking the stratum beneath the core
1130 target.
1131 (has_all_memory): Return true.
1132 * target.c (raw_memory_xfer_partial): Revise comment
1133 regarding use of has_all_memory.
1134
e56cb451
KB
11352020-07-22 Kevin Buettner <kevinb@redhat.com>
1136
1137 * exec.h (section_table_xfer_memory): Revise declaration,
1138 replacing section name parameter with an optional callback
1139 predicate.
1140 * exec.c (section_table_xfer_memory): Likewise.
1141 * bfd-target.c, exec.c, target.c, corelow.c: Adjust all callers
1142 of section_table_xfer_memory.
1143
32fa152e
TT
11442020-07-22 Tom Tromey <tromey@adacore.com>
1145
1146 * mi/mi-cmd-stack.c (list_args_or_locals): Use
1147 lookup_symbol_search_name.
1148
a67a1c41
AB
11492020-07-22 Andrew Burgess <andrew.burgess@embecosm.com>
1150
1151 * python/py-registers.c (gdbpy_register_object_data_init): Remove
1152 redundant local variable.
1153 (gdbpy_get_register_descriptor): Extract descriptor vector as a
1154 reference, not pointer, update code accordingly.
1155
a7b4ff4f
SM
11562020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
1157 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1158
1159 * objfiles.h (struct objfile) <skip_jit_symbol_lookup>: New field.
1160 * jit.c (jit_breakpoint_re_set_internal): Use the
1161 `skip_jit_symbol_lookup` field.
1162
2340e834
SM
11632020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
1164 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1165
1166 * jit.c (jit_read_descriptor): Define the descriptor address once,
1167 use twice.
1168 (jit_breakpoint_deleted): Move the declaration of the loop variable
1169 `iter` into the loop header.
1170 (jit_breakpoint_re_set_internal): Move the declaration of the local
1171 variable `objf_data` to the first point of definition.
1172 (jit_event_handler): Move the declaration of local variables
1173 `code_entry`, `entry_addr`, and `objf` to their first point of use.
1174 Rename `objf` to `jited`.
1175
c1072906
SM
11762020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
1177
1178 * jit.h (struct jiter_objfile_data) <jiter_objfile_data, objfile>:
1179 Remove.
1180 * jit.c (get_jiter_objfile_data): Update.
1181
c8474dc3
TBA
11822020-07-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1183 Simon Marchi <simon.marchi@polymtl.ca>
1184
1185 * jit.c (struct jit_program_space_data): Remove.
1186 (jit_program_space_key): Remove.
1187 (jiter_objfile_data::~jiter_objfile_data): Remove program space
1188 stuff.
1189 (get_jit_program_space_data): Remove.
1190 (jit_breakpoint_deleted): Iterate on all of the program space's
1191 objfiles.
1192 (jit_inferior_init): Likewise.
1193 (jit_breakpoint_re_set_internal): Likewise. Also change return
1194 type to void.
1195 (jit_breakpoint_re_set): Pass current_program_space to
1196 jit_breakpoint_re_set_internal.
1197
77208eb7
SM
11982020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
1199
1200 * jit.h (struct jiter_objfile_data) <cached_code_address,
1201 jit_breakpoint>: Move to here from ...
1202 * jit.c (jit_program_space_data): ... here.
1203 (jiter_objfile_data::~jiter_objfile_data): Update.
1204 (jit_breakpoint_deleted): Update.
1205 (jit_breakpoint_re_set_internal): Update.
1206
8c1c720f
SM
12072020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
1208
1209 * jit.c (jiter_objfile_data::~jiter_objfile_data): Remove some
1210 checks.
1211 (jit_read_descriptor): Remove NULL check.
1212 (jit_event_handler): Add an assertion.
1213
0e74a041
SM
12142020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
1215
1216 * jit.h (struct jit_objfile_data): Split into...
1217 (struct jiter_objfile_data): ... this ...
1218 (struct jited_objfile_data): ... and this.
1219 * objfiles.h (struct objfile) <jit_data>: Remove.
1220 <jiter_data, jited_data>: New fields.
1221 * jit.c (jit_objfile_data::~jit_objfile_data): Rename to ...
1222 (jiter_objfile_data::~jiter_objfile_data): ... this.
1223 (get_jit_objfile_data): Rename to ...
1224 (get_jiter_objfile_data): ... this.
1225 (add_objfile_entry): Update.
1226 (jit_read_descriptor): Use get_jiter_objfile_data.
1227 (jit_find_objf_with_entry_addr): Use objfile's jited_data field.
1228 (jit_breakpoint_re_set_internal): Use get_jiter_objfile_data.
1229 (jit_inferior_exit_hook): Use objfile's jited_data field.
1230
238b5c9f
SM
12312020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
1232
1233 * jit.h: Forward-declare `struct minimal_symbol`.
1234 (struct jit_objfile_data): Migrate to here from jit.c; also add a
1235 constructor, destructor, and an objfile* field.
1236 * jit.c (jit_objfile_data): Remove.
1237 (struct jit_objfile_data): Migrate from here to jit.h.
1238 (jit_objfile_data::~jit_objfile_data): New destructor
1239 implementation with code moved from free_objfile_data.
1240 (free_objfile_data): Delete.
1241 (get_jit_objfile_data): Update to use the jit_data field of objfile.
1242 (jit_find_objf_with_entry_addr): Ditto.
1243 (jit_inferior_exit_hook): Ditto.
1244 (_initialize_jit): Remove the call to
1245 register_objfile_data_with_cleanup.
1246 * objfiles.h (struct objfile) <jit_data>: New field.
1247
fe053b9e
TBA
12482020-07-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1249
1250 * jit.h: Forward-declare `struct objfile`.
1251 (jit_event_handler): Add a second parameter, the JITer objfile.
1252 * jit.c (jit_read_descriptor): Change the signature to take the
1253 JITer objfile as an argument instead of the jit_program_space_data.
1254 (jit_inferior_init): Update the call to jit_read_descriptor.
1255 (jit_event_handler): Use the new JITer objfile argument when calling
1256 jit_read_descriptor.
1257 * breakpoint.c (handle_jit_event): Update the call to
1258 jit_event_handler to pass the JITer objfile.
1259
4cec0c66
JB
12602020-07-21 John Baldwin <jhb@FreeBSD.org>
1261
1262 * gdbarch.c: Regenerate.
1263 * gdbarch.h: Regenerate.
1264 * gdbarch.sh (handle_segmentation_fault): Remove method.
1265 * infrun.c (handle_segmentation_fault): Remove.
1266 (print_signal_received_reason): Remove call to
1267 handle_segmentation_fault.
1268
0e42f66a
JB
12692020-07-21 John Baldwin <jhb@FreeBSD.org>
1270
1271 * sparc64-linux-tdep.c (sparc64_linux_handle_segmentation_fault):
1272 Rename to sparc64_linux_report_signal_info and add siggnal
1273 argument.
1274 (sparc64_linux_init_abi): Use sparc64_linux_report_signal_info
1275 instead of sparc64_linux_handle_segmentation_fault.
1276
77bdfeb2
JB
12772020-07-21 John Baldwin <jhb@FreeBSD.org>
1278
1279 * amd64-linux-tdep.c (amd64_linux_init_abi_common): Use
1280 i386_linux_report_signal_info instead of
1281 i386_linux_handle_segmentation_fault.
1282 * i386-linux-tdep.c (i386_linux_handle_segmentation_fault): Rename
1283 to i386_linux_report_signal_info and add siggnal argument.
1284 (i386_linux_init_abi): Use i386_linux_report_signal_info instead
1285 of i386_linux_handle_segmentation_fault.
1286 * i386-linux-tdep.h (i386_linux_handle_segmentation_fault): Rename
1287 to i386_linux_report_signal_info and add siggnal argument.
1288
ad97bfc5
JB
12892020-07-21 John Baldwin <jhb@FreeBSD.org>
1290
1291 * corelow.c (core_target_open): Invoke gdbarch report_signal_info
1292 hook if present.
1293
272bb05c
JB
12942020-07-21 John Baldwin <jhb@FreeBSD.org>
1295
1296 * gdbarch.c: Regenerate.
1297 * gdbarch.h: Regenerate.
1298 * gdbarch.sh (report_signal_info): New method.
1299 * infrun.c (print_signal_received_reason): Invoke gdbarch
1300 report_signal_info hook if present.
1301
baf8791e
AB
13022020-07-21 Andrew Burgess <andrew.burgess@embecosm.com>
1303
1304 * python/py-registers.c : Add 'unordered_map' include.
1305 (gdbpy_new_reggroup): Renamed to...
1306 (gdbpy_get_reggroup): ...this. Update to only create register
1307 group descriptors when needed.
1308 (gdbpy_reggroup_iter_next): Update.
1309
f7306dac
AB
13102020-07-21 Andrew Burgess <andrew.burgess@embecosm.com>
1311
1312 * python/py-registers.c (gdbpy_register_object_data): New static
1313 global.
1314 (gdbpy_register_object_data_init): New function.
1315 (gdbpy_new_register_descriptor): Renamed to...
1316 (gdbpy_get_register_descriptor): ...this, and update to reuse
1317 existing register descriptors where possible.
1318 (gdbpy_register_descriptor_iter_next): Update.
1319 (gdbpy_initialize_registers): Register new gdbarch data.
1320
05c309a8
SM
13212020-07-21 Simon Marchi <simon.marchi@efficios.com>
1322
1323 * linux-nat.c (stopped_pids): Make static.
1324
d1fd641e
SM
13252020-07-21 Simon Marchi <simon.marchi@polymtl.ca>
1326
1327 PR ada/26235
1328 * gdbtypes.c (ada_discrete_type_low_bound,
1329 ada_discrete_type_high_bound): Handle undefined bounds.
1330
1de14d77
KR
13312020-07-21 Kamil Rytarowski <n54@gmx.com>
1332
1333 * nbsd-nat.h (nbsd_nat_target::supports_multi_process): New
1334 declaration.
1335 * nbsd-nat.c (nbsd_nat_target::supports_multi_process): New
1336 function.
1337
ed810cc7
JB
13382020-07-20 John Baldwin <jhb@FreeBSD.org>
1339
1340 * fbsd-tdep.c (fbsd_skip_solib_resolver): New function.
1341 (fbsd_init_abi): Install gdbarch "skip_solib_resolver" method.
1342 * fbsd-tdep.h (fbsd_skip_solib_resolver): New prototype.
1343 * mips-fbsd-tdep.c (mips_fbsd_skip_solib_resolver): New function.
1344 (mips_fbsd_init_abi): Install gdbarch "skip_solib_resolver"
1345 method.
1346
ae5369e7
LC
13472020-07-20 Ludovic Courtès <ludo@gnu.org>
1348
1349 * guile/scm-math.c (vlscm_integer_fits_p): Use 'uintmax_t'
1350 and 'intmax_t' instead of 'scm_t_uintmax' and 'scm_t_intmax',
1351 which are deprecated in Guile 3.0.
1352 * configure.ac (try_guile_versions): Add "guile-3.0".
1353 * configure (try_guile_versions): Regenerate.
1354 * NEWS: Update entry.
1355
68cf161c
LC
13562020-07-20 Ludovic Courtès <ludo@gnu.org>
1357 Doug Evans <dje@google.com>
1358
1359 PR gdb/21104
1360 * guile/scm-ports.c (USING_GUILE_BEFORE_2_2): New macro.
1361 (ioscm_memory_port)[read_buf_size, write_buf_size]: Wrap in #if
1362 USING_GUILE_BEFORE_2_2.
1363 (stdio_port_desc, memory_port_desc) [!USING_GUILE_BEFORE_2_2]:
1364 Change type to 'scm_t_port_type *'.
1365 (natural_buffer_size) [!USING_GUILE_BEFORE_2_2]: New variable.
1366 (ioscm_open_port) [USING_GUILE_BEFORE_2_2]: Add 'stream'
1367 parameter and honor it. Update callers.
1368 (ioscm_open_port) [!USING_GUILE_BEFORE_2_2]: New function.
1369 (ioscm_read_from_port, ioscm_write) [!USING_GUILE_BEFORE_2_2]: New
1370 functions.
1371 (ioscm_fill_input, ioscm_input_waiting, ioscm_flush): Wrap in #if
1372 USING_GUILE_BEFORE_2_2.
1373 (ioscm_init_gdb_stdio_port) [!USING_GUILE_BEFORE_2_2]: Use
1374 'ioscm_read_from_port'. Call 'scm_set_port_read_wait_fd'.
1375 (ioscm_init_stdio_buffers) [!USING_GUILE_BEFORE_2_2]: New function.
1376 (gdbscm_stdio_port_p) [!USING_GUILE_BEFORE_2_2]: Use 'SCM_PORTP'
1377 and 'SCM_PORT_TYPE'.
1378 (gdbscm_memory_port_end_input, gdbscm_memory_port_seek)
1379 (ioscm_reinit_memory_port): Wrap in #if USING_GUILE_BEFORE_2_2.
1380 (gdbscm_memory_port_read, gdbscm_memory_port_write)
1381 (gdbscm_memory_port_seek, gdbscm_memory_port_close)
1382 [!USING_GUILE_BEFORE_2_2]: New functions.
1383 (gdbscm_memory_port_print): Remove use of 'SCM_PTOB_NAME'.
1384 (ioscm_init_memory_port_type) [!USING_GUILE_BEFORE_2_2]: Use
1385 'gdbscm_memory_port_read'.
1386 Wrap 'scm_set_port_end_input', 'scm_set_port_flush', and
1387 'scm_set_port_free' calls in #if USING_GUILE_BEFORE_2_2.
1388 (gdbscm_get_natural_buffer_sizes) [!USING_GUILE_BEFORE_2_2]: New
1389 function.
1390 (ioscm_init_memory_port): Remove.
1391 (ioscm_init_memory_port_stream): New function
1392 (ioscm_init_memory_port_buffers) [USING_GUILE_BEFORE_2_2]: New
1393 function.
1394 (gdbscm_memory_port_read_buffer_size) [!USING_GUILE_BEFORE_2_2]:
1395 Return scm_from_uint (0).
1396 (gdbscm_set_memory_port_read_buffer_size_x)
1397 [!USING_GUILE_BEFORE_2_2]: Call 'scm_setvbuf'.
1398 (gdbscm_memory_port_write_buffer_size) [!USING_GUILE_BEFORE_2_2]:
1399 Return scm_from_uint (0).
1400 (gdbscm_set_memory_port_write_buffer_size_x)
1401 [!USING_GUILE_BEFORE_2_2]: Call 'scm_setvbuf'.
1402 * configure.ac (try_guile_versions): Add "guile-2.2".
1403 * configure: Regenerate.
1404 * NEWS: Add entry.
1405
aee91db3
TT
14062020-07-18 Tom Tromey <tom@tromey.com>
1407
1408 * linux-nat.c (linux_multi_process): Remove.
1409 (linux_nat_target::supports_multi_process): Return true.
1410
0e267416
AB
14112020-07-17 Andrew Burgess <andrew.burgess@embecosm.com>
1412
1413 * arch/riscv.c (riscv_tdesc_cache): Change map type.
1414 (riscv_lookup_target_description): Return pointer out of
1415 unique_ptr.
1416 * target-descriptions.c (allocate_target_description): Add
1417 comment.
1418 (target_desc_deleter::operator()): Likewise.
1419 * target-descriptions.h (struct target_desc_deleter): Moved to
1420 gdbsupport/tdesc.h.
1421 (target_desc_up): Likewise.
1422
f80c8ec4
TT
14232020-07-17 Tom Tromey <tromey@adacore.com>
1424
1425 * linux-nat.c (linux_nat_target::supports_non_stop)
1426 (linux_nat_target::always_non_stop_p): Use "true".
1427 (linux_nat_target::supports_disable_randomization): Use "true" and
1428 "false".
1429
d0ce17d8
CT
14302020-07-16 Caroline Tice <cmtice@google.com>
1431
1432 * dwarf2/read.c (RNGLIST_HEADER_SIZE32) New constant definition.
1433 (RNGLIST_HEADER_SIZE64): New constant definition.
1434 (struct dwop_section_names): Add rnglists_dwo.
1435 (dwop_section_names): Add .debug_rnglists.dwo, .zdebug_rnglists.dwo.
1436 (struct loclist_header): Rename to 'loclists_rnglists_header'.
1437 (struct dwo_sections): Add rnglists field.
1438 (read_attribut_reprocess): Add tag parameter.
1439 (dwarf2_ranges_read): Add tag parameter & remove forward function decl.
1440 (cu_debug_rnglists_section): New function (decl & definition).
1441 (dwarf2_locate_dwo_sections): Add code to read rnglists_dwo section.
1442 (dwarf2_rnglists_process): Add a dwarf_tag parameter, for the kind of
1443 die whose range is being checked; get rnglist section from
1444 cu_debug_rnglists_section, to get from either objfile or dwo file as
1445 appropriate. Add cases for DW_RLE_base_addressx,
1446 DW_RLE_startx_length, DW_RLE_startx_endx. Also, update to only add
1447 the base address to DW_RLE_offset_pairs (not to all ranges), moving
1448 test inside if-condition and updating complaint message.
1449 (dwarf2_ranges_process): Add dwarf tag parameter and pass it to
1450 dwarf2_rnglists_process.
1451 (dwarf2_ranges_read): Add dwarf tag parameter and pass it to
1452 dwarf2_ranges_process.
1453 (dwarf2_get_pc_bounds): Check for DW_FORM_rnglistx when setting
1454 need_ranges_base and update comment appropriately. Also pass die tag
1455 to dwarf2_ranges_read.
1456 (dwarf2_record_block_ranges): Check for DW_FORM_rnglistx when setting
1457 need_ranges_base and update comment appropriately. Also pass die tag
1458 to dwarf2_ranges_process.
1459 (read_full_die_1): Add code to read DW_AT_rnglists_base and assign to
1460 cu->ranges_base. Also pass die tag to read_attribute_reprocess.
1461 (partial_die_info::read): Check for DW_FORM_rnglistx when setting
1462 need_ranges_base and update comment appropriately. Also pass die tag
1463 to read_attribute_reprocess and dwarf2_ranges_read.
1464 (read_loclist_header): Rename function to read_loclists_rnglists_header,
1465 and update function comment appropriately.
1466 (read_loclist_index): Call read_loclists_rnglists_header instead of
1467 read_loclist_header.
1468 (read_rnglist_index): New function.
1469 (read_attribute_reprocess): Add tag parameter. Add code for
1470 DW_FORM_rnglistx, passing tag to read_rnglist_index.
1471 (read_attribute_value): Mark DW_FORM_rnglistx with need_reprocess.
1472
3dcc261c
AB
14732020-07-15 Andrew Burgess <andrew.burgess@embecosm.com>
1474
1475 * f-typeprint.c (f_type_print_base): Allow for dynamic types not
1476 being resolved.
1477
ccb9eba6
AB
14782020-07-14 Andrew Burgess <andrew.burgess@embecosm.com>
1479
1480 * arch-utils.c (show_architecture): Update formatting of messages.
1481
cf88be68
SM
14822020-07-12 Simon Marchi <simon.marchi@efficios.com>
1483
1484 * gdbtypes.h (struct type) <bounds>: Handle array and string
1485 types.
1486 * ada-lang.c (assign_aggregate): Use type::bounds on
1487 array/string type.
1488 * c-typeprint.c (c_type_print_varspec_suffix): Likewise.
1489 * c-varobj.c (c_number_of_children): Likewise.
1490 (c_describe_child): Likewise.
1491 * eval.c (evaluate_subexp_for_sizeof): Likewise.
1492 * f-typeprint.c (f_type_print_varspec_suffix): Likewise.
1493 (f_type_print_base): Likewise.
1494 * f-valprint.c (f77_array_offset_tbl): Likewise.
1495 (f77_get_upperbound): Likewise.
1496 (f77_print_array_1): Likewise.
1497 * guile/scm-type.c (gdbscm_type_range): Likewise.
1498 * m2-typeprint.c (m2_array): Likewise.
1499 (m2_is_long_set_of_type): Likewise.
1500 * m2-valprint.c (get_long_set_bounds): Likewise.
1501 * p-typeprint.c (pascal_type_print_varspec_prefix): Likewise.
1502 * python/py-type.c (typy_range): Likewise.
1503 * rust-lang.c (rust_internal_print_type): Likewise.
1504 * type-stack.c (type_stack::follow_types): Likewise.
1505 * valarith.c (value_subscripted_rvalue): Likewise.
1506 * valops.c (value_cast): Likewise.
1507
509971ae
SM
15082020-07-12 Simon Marchi <simon.marchi@efficios.com>
1509
1510 * gdbtypes.c (TYPE_ARRAY_BIT_STRIDE): Remove. Update all
1511 callers to use the equivalent accessor methods.
1512
107406b7
SM
15132020-07-12 Simon Marchi <simon.marchi@efficios.com>
1514
1515 * gdbtypes.h (struct range_bounds) <bit_stride>: New method.
1516 (struct type) <bit_stride>: New method.
1517 (TYPE_BIT_STRIDE): Remove.
1518 * gdbtypes.c (update_static_array_size): Use type::bit_stride.
1519
bb789949
SM
15202020-07-12 Simon Marchi <simon.marchi@efficios.com>
1521
1522 * gdbtypes.h (TYPE_ARRAY_LOWER_BOUND_VALUE,
1523 TYPE_ARRAY_UPPER_BOUND_VALUE): Remove. Update all
1524 callers to use the equivalent accessor methods instead.
1525
39498edb
SM
15262020-07-12 Simon Marchi <simon.marchi@efficios.com>
1527
1528 * gdbtypes.h (TYPE_ARRAY_UPPER_BOUND_IS_UNDEFINED,
1529 TYPE_ARRAY_LOWER_BOUND_IS_UNDEFINED): Remove. Update all
1530 callers to use the equivalent accessor methods instead.
1531
3b606f38
SM
15322020-07-12 Simon Marchi <simon.marchi@efficios.com>
1533
1534 * gdbtypes.h (TYPE_LOW_BOUND_KIND,
1535 TYPE_HIGH_BOUND_KIND): Remove. Update all callers
1536 to use dynamic_prop::kind.
1537
064d9cb9
SM
15382020-07-12 Simon Marchi <simon.marchi@efficios.com>
1539
1540 * gdbtypes.h (TYPE_LOW_BOUND_UNDEFINED,
1541 TYPE_HIGH_BOUND_UNDEFINED): Remove. Update all callers
1542 to get the bound property's kind and check against
1543 PROP_UNDEFINED.
1544
5537ddd0
SM
15452020-07-12 Simon Marchi <simon.marchi@efficios.com>
1546
1547 * gdbtypes.h (TYPE_LOW_BOUND, TYPE_HIGH_BOUND): Remove. Update
1548 all callers to use type::range_bounds followed by
1549 dynamic_prop::{low,high}.
1550
8c2e4e06
SM
15512020-07-12 Simon Marchi <simon.marchi@polymtl.ca>
1552
1553 * gdbtypes.h (struct dynamic_prop) <kind, set_undefined,
1554 const_val, set_const_val, baton, set_locexpr, set_loclist,
1555 set_addr_offset, variant_parts, set_variant_parts,
1556 original_type, set_original_type>: New methods.
1557 <kind>: Rename to...
1558 <m_kind>: ... this. Update all users to use the new methods
1559 instead.
1560 <data>: Rename to...
1561 <m_data>: ... this. Update all users to use the new methods
1562 instead.
1563
7c6f2712
SM
15642020-07-12 Simon Marchi <simon.marchi@efficios.com>
1565
1566 * gdbtypes.c (get_discrete_bounds): Return failure if
1567 the range type's bounds are not both defined and constant
1568 values.
1569 (get_array_bounds): Update comment. Remove undefined bound check.
1570
599088e3
SM
15712020-07-12 Simon Marchi <simon.marchi@polymtl.ca>
1572
1573 * gdbtypes.h (TYPE_RANGE_DATA): Remove. Update callers to use
1574 the type::bounds method directly.
1575
c4dfcb36
SM
15762020-07-12 Simon Marchi <simon.marchi@efficios.com>
1577
1578 * gdbtypes.h (struct type) <bounds, set_bounds>: New methods.
1579 (TYPE_RANGE_DATA): Use type::bounds. Change all uses that
1580 are used to set the range type's bounds to use set_bounds.
1581
0a278aa7
PW
15822020-07-11 Philippe Waroquiers <philippe.waroquiers@skynet.be>
1583
1584 * exec.c (_initialize_exec): Update exec-file-mismatch help.
1585
cce20f10
PA
15862020-07-10 Pedro Alves <pedro@palves.net>
1587
1588 * gdbthread.h (inferior_ref): Define.
1589 (scoped_restore_current_thread) <m_thread>: Now a thread_info_ref.
1590 (scoped_restore_current_thread) <m_inf>: Now an inferior_ref.
1591 * thread.c
1592 (scoped_restore_current_thread::restore):
1593 Adjust to gdb::ref_ptr.
1594 (scoped_restore_current_thread::~scoped_restore_current_thread):
1595 Remove manual decref handling.
1596 (scoped_restore_current_thread::scoped_restore_current_thread):
1597 Adjust to use
1598 inferior_ref::new_reference/thread_info_ref::new_reference.
1599 Incref the thread before calling get_frame_id instead of after.
1600 Let TARGET_CLOSE_ERROR propagate.
1601
6d7aa592
PA
16022020-07-10 Pedro Alves <pedro@palves.net>
1603
1604 * frame-tailcall.c (dwarf2_tailcall_sniffer_first): Only swallow
1605 NO_ENTRY_VALUE_ERROR / MEMORY_ERROR / OPTIMIZED_OUT_ERROR /
1606 NOT_AVAILABLE_ERROR.
1607 * value.c (value_optimized_out): Only swallow MEMORY_ERROR /
1608 OPTIMIZED_OUT_ERROR / NOT_AVAILABLE_ERROR.
1609
b3e3a4c1
SM
16102020-07-10 Simon Marchi <simon.marchi@polymtl.ca>
1611 Pedro Alves <pedro@palves.net>
1612
1613 PR gdb/26199
1614 * infrun.c (threads_are_resumed_pending_p): Delete.
1615 (do_target_wait): Remove threads_are_executing and
1616 threads_are_resumed_pending_p checks from the inferior_matches
1617 lambda. Update comments.
1618
d6cc5d98
PA
16192020-07-10 Pedro Alves <pedro@palves.net>
1620
1621 PR gdb/26199
1622 * infrun.c (handle_no_resumed): Transfer terminal to inferior with
1623 executing threads.
1624
7d3badc6
PA
16252020-07-10 Pedro Alves <pedro@palves.net>
1626
1627 PR gdb/26199
1628 * infrun.c (handle_no_resumed): Handle multiple targets.
1629
42bd97a6
PA
16302020-07-10 Pedro Alves <pedro@palves.net>
1631
1632 PR gdb/26199
1633 * infrun.c (prepare_to_wait): Check target_can_async_p instead of
1634 target_is_async_p.
1635
43667cc6
PA
16362020-07-10 Pedro Alves <pedro@palves.net>
1637
1638 PR gdb/26199
1639 * target.c (target_pass_ctrlc): Look at the inferior's non-exited
1640 threads, not all threads.
1641
96118d11
PA
16422020-07-10 Pedro Alves <pedro@palves.net>
1643
1644 PR gdb/26199
1645 * remote.c (remote_target::open_1): Pass remote target pointer as
1646 data to create_async_event_handler.
1647 (remote_async_inferior_event_handler): Mark async event handler
1648 before returning if the remote target still has either pending
1649 events or unacknowledged notifications.
1650
54904d81
JB
16512020-07-10 John Baldwin <jhb@FreeBSD.org>
1652
1653 * fbsd-nat.h (fbsd_nat_target::supports_multi_process): New
1654 declaration.
1655 * fbsd-nat.c (fbsd_nat_target::supports_multi_process): New
1656 function.
1657
f37e5866
JB
16582020-07-09 John Baldwin <jhb@FreeBSD.org>
1659
1660 * inf-ptrace.c (inf_ptrace_target::wait): Don't compare against
1661 inferior_ptid.
1662
fc238d4a
JB
16632020-07-09 John Baldwin <jhb@FreeBSD.org>
1664
1665 * fbsd-tdep.c (fbsd_print_auxv_entry): Handle AT_FREEBSD_ARGC,
1666 AT_FREEBSD_ARGV, AT_FREEBSD_ENVC, AT_FREEBSD_ENVV,
1667 AT_FREEBSD_PS_STRINGS.
1668
6e2469ff
HD
16692020-07-08 Hannes Domani <ssbssa@yahoo.de>
1670
1671 * auto-load.c (auto_load_objfile_script_1): Convert drive part
1672 of debugfile path on Windows.
1673
d1076c41
JB
16742020-07-08 John Baldwin <jhb@FreeBSD.org>
1675
1676 * fbsd-nat.c (fbsd_nat_target::find_memory_regions): Rename 'obfd'
1677 argument to 'data'.
1678
15f3b077
TT
16792020-07-08 Tom Tromey <tromey@adacore.com>
1680
1681 * ada-lang.c (ada_exception_message_1): Use read_memory.
1682
9fc501fd
AB
16832020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
1684
1685 PR python/22748
1686 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first): Remove
1687 special handling for inline frames.
1688 * findvar.c (value_of_register_lazy): Skip inline frames when
1689 creating lazy register values.
1690 * frame.c (frame_id_computed_p): Delete definition.
1691 * frame.h (frame_id_computed_p): Delete declaration.
1692
64cb3757
AB
16932020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
1694
1695 * NEWS: Mention additions to Python API.
1696 * python/py-arch.c (archpy_register_groups): New function.
1697 (arch_object_methods): Add 'register_groups' method.
1698 * python/py-registers.c (reggroup_iterator_object): New struct.
1699 (reggroup_object): New struct.
1700 (gdbpy_new_reggroup): New function.
1701 (gdbpy_reggroup_to_string): New function.
1702 (gdbpy_reggroup_name): New function.
1703 (gdbpy_reggroup_iter): New function.
1704 (gdbpy_reggroup_iter_next): New function.
1705 (gdbpy_new_reggroup_iterator): New function
1706 (gdbpy_initialize_registers): Register new types.
1707 (reggroup_iterator_object_type): Define new Python type.
1708 (gdbpy_reggroup_getset): New static global.
1709 (reggroup_object_type): Define new Python type.
1710 * python/python-internal.h
1711
0f767f94
AB
17122020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
1713
1714 * Makefile.in (SUBDIR_PYTHON_SRCS): Add py-registers.c
1715 * python/py-arch.c (archpy_registers): New function.
1716 (arch_object_methods): Add 'registers' method.
1717 * python/py-registers.c: New file.
1718 * python/python-internal.h
1719 (gdbpy_new_register_descriptor_iterator): Declare.
1720 (gdbpy_initialize_registers): Declare.
1721 * python/python.c (do_start_initialization): Call
1722 gdbpy_initialize_registers.
1723 * NEWS: Mention additions to the Python API.
1724
87dbc774
AB
17252020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
1726
1727 * NEWS: Mention new Python API method.
1728 * python/py-unwind.c (pending_framepy_architecture): New function.
1729 (pending_frame_object_methods): Add architecture method.
1730
3bc98c0c
AB
17312020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
1732
1733 * gdbarch.c: Regenerate.
1734 * gdbarch.h: Regenerate.
1735 * gdbarch.sh (deprecated_set_gdbarch_data): Delete.
1736 (gdbarch_data): Use internal_error for the case where
1737 deprecated_set_gdbarch_data was originally needed.
1738 * ia64-libunwind-tdep.c (libunwind_descr_init): Update parameters,
1739 and use passed in obstack.
1740 (libunwind_frame_set_descr): Should no longer get back NULL from
1741 gdbarch_data.
1742 (_initialize_libunwind_frame): Register as a pre-init gdbarch data
1743 type.
1744 * user-regs.c (user_regs_init): Update parameters, and use passed
1745 in obstack.
1746 (user_reg_add): Should no longer get back NULL from gdbarch_data.
1747 (_initialize_user_regs): Register as a pre-init gdbarch data type.
1748
d8cc8af6
TV
17492020-07-06 Tom de Vries <tdevries@suse.de>
1750
1751 * buildsym.c (buildsym_compunit::end_symtab_with_blockvector): Handle
1752 End-Of-Sequence in lte_is_less_than.
1753 * symtab.c (find_pc_sect_line): Revert change from commit 3d92a3e313
1754 "gdb: Don't reorder line table entries too much when sorting".
1755
947f7597
TV
17562020-07-06 Tom de Vries <tdevries@suse.de>
1757
1758 PR tui/26205
1759 * tui/tui-win.c (tui_partial_win_by_name): Don't test for NULL name.
1760
1e7c1b22
TV
17612020-07-05 Tom de Vries <tdevries@suse.de>
1762
1763 PR build/26187
1764 * inferior.h (struct infcall_suspend_state_deleter): If available, use
1765 std::uncaught_exceptions instead of deprecated
1766 std::uncaught_exception.
1767
a36158ec
SM
17682020-07-02 Simon Marchi <simon.marchi@polymtl.ca>
1769
1770 * macroexp.h (macro_stringify): Return
1771 gdb::unique_xmalloc_ptr<char>.
1772 * macroexp.c (macro_stringify): Likewise.
1773 * macrotab.c (fixup_definition): Update.
1774
14d960c8
SM
17752020-07-02 Simon Marchi <simon.marchi@polymtl.ca>
1776
1777 * c-exp.y (scan_macro_expansion): Don't free `expansion`.
1778 (lex_one_token): Update.
1779 * macroexp.c (struct macro_buffer) <release>: Return
1780 gdb::unique_xmalloc_ptr<char>.
1781 (macro_stringify): Update.
1782 (macro_expand): Update.
1783 (macro_expand_next): Return gdb::unique_xmalloc_ptr<char>.
1784 * macroexp.h (macro_expand_next): Likewise.
1785
211d5b1c
SM
17862020-07-02 Simon Marchi <simon.marchi@efficios.com>
1787
1788 * macroexp.h (macro_lookup_ftype): Remove.
1789 (macro_expand, macro_expand_once, macro_expand_next): Remove
1790 lookup function parameters, add scope parameter.
1791 * macroexp.c (scan, substitute_args, expand, maybe_expand,
1792 macro_expand, macro_expand_once, macro_expand_next): Likewise.
1793 * macroscope.h (standard_macro_lookup): Change parameter type
1794 to macro_scope.
1795 * macroscope.c (standard_macro_lookup): Likewise.
1796 * c-exp.y (lex_one_token): Update.
1797 * macrocmd.c (macro_expand_command): Likewise.
1798 (macro_expand_once_command): Likewise.
1799
b1a35af2
SM
18002020-07-02 Simon Marchi <simon.marchi@polymtl.ca>
1801
1802 * inf-loop.c (inferior_event_handler): Remove client_data param.
1803 * inf-loop.h (inferior_event_handler): Likewise.
1804 * infcmd.c (step_1): Adjust.
1805 * infrun.c (proceed): Adjust.
1806 (fetch_inferior_event): Remove client_data param.
1807 (infrun_async_inferior_event_handler): Adjust.
1808 * infrun.h (fetch_inferior_event): Remove `void *` param.
1809 * linux-nat.c (handle_target_event): Adjust.
1810 * record-btrace.c (record_btrace_handle_async_inferior_event):
1811 Adjust.
1812 * record-full.c (record_full_async_inferior_event_handler):
1813 Adjust.
1814 * remote.c (remote_async_inferior_event_handler): Adjust.
1815
1cdf9e33
TT
18162020-07-01 Tom Tromey <tom@tromey.com>
1817
1818 * tui/tui-data.h (struct tui_win_info) <name>: Now pure virtual.
1819 * tui/tui-stack.h (struct tui_locator_window) <name>: New method.
1820
32c1e210
TT
18212020-07-01 Tom Tromey <tom@tromey.com>
1822
1823 * tui/tui-wingeneral.c (tui_win_info::refresh_window): Move from
1824 tui_gen_win_info.
1825 (tui_win_info::make_window): Merge with
1826 tui_gen_win_info::make_window.
1827 (tui_win_info::make_visible): Move from tui_gen_win_info.
1828 * tui/tui-win.c (tui_win_info::max_width): Move from
1829 tui_gen_win_info.
1830 * tui/tui-layout.h (class tui_layout_window) <m_window>: Change
1831 type.
1832 <window_factory>: Likewise.
1833 * tui/tui-layout.c (tui_win_info::resize): Move from
1834 tui_gen_win_info.
1835 (make_standard_window): Change return type.
1836 (get_locator_window, tui_get_window_by_name): Likewise.
1837 (tui_layout_window::apply): Remove a cast.
1838 * tui/tui-data.h (MIN_WIN_HEIGHT): Move earlier.
1839 (struct tui_win_info): Merge with tui_gen_win_info.
1840 (struct tui_gen_win_info): Remove.
1841
a30cb6da
TT
18422020-07-01 Tom Tromey <tom@tromey.com>
1843
1844 * tui/tui-stack.h (struct tui_locator_window): Derive from
1845 tui_win_info.
1846 <do_scroll_horizontal, do_scroll_vertical>: New methods.
1847 <can_box>: New method.
1848
1eb2161f
TT
18492020-07-01 Tom Tromey <tom@tromey.com>
1850
1851 * tui/tui-stack.h (struct tui_locator_window): Remove body.
1852
7134f2eb
TT
18532020-07-01 Tom Tromey <tom@tromey.com>
1854
1855 * tui/tui-regs.c (tui_data_window::display_registers_from)
1856 (tui_data_window::display_registers_from)
1857 (tui_data_window::first_data_item_displayed)
1858 (tui_data_window::delete_data_content_windows): Update.
1859 (tui_data_window::refresh_window, tui_data_window::no_refresh):
1860 Remove.
1861 (tui_data_window::check_register_values): Update.
1862 (tui_data_item_window::rerender): Add parameters. Update.
1863 (tui_data_item_window::refresh_window): Remove.
1864 * tui/tui-data.h (struct tui_gen_win_info) <no_refresh>: No longer
1865 virtual.
1866 * tui/tui-regs.h (struct tui_data_item_window): Don't derive from
1867 tui_gen_win_info.
1868 <refresh_window, max_height, min_height>: Remove.
1869 <rerender>: Add parameters.
1870 <x, y, visible>: New members.
1871 (struct tui_data_window) <refresh_window, no_refresh>: Remove.
1872 <m_item_width>: New member.
1873
22b7b041
TT
18742020-07-01 Tom Tromey <tom@tromey.com>
1875
1876 * tui/tui-regs.c (tui_data_window::show_register_group)
1877 (tui_data_window::check_register_values): Update.
1878 * tui/tui-regs.h (struct tui_data_item_window) <regno>: Rename
1879 from item_no.
1880
c9753adb
TT
18812020-07-01 Tom Tromey <tom@tromey.com>
1882
1883 * tui/tui-regs.c (tui_data_window::show_register_group): Remove
1884 useless "if".
1885
9ab26b4a
TT
18862020-07-01 Tom Tromey <tom@tromey.com>
1887
1888 * tui/tui-regs.c (tui_data_window::show_register_group): Update.
1889 * tui/tui-regs.h (struct tui_data_item_window) <name>: Remove.
1890
e555083f
TT
18912020-07-01 Tom Tromey <tom@tromey.com>
1892
1893 * tui/tui-stack.c (SINGLE_KEY): Move from tui-data.h
1894 * tui/tui-winsource.h (enum tui_line_or_address_kind)
1895 (struct tui_line_or_address): Move from tui-data.h.
1896 * tui/tui-win.c (DEFAULT_TAB_LEN): Move from tui-data.h.
1897 * tui/tui-data.h (DEFAULT_TAB_LEN): Move to tui-win.c.
1898 (tui_cmd_window, tui_source_window_base, tui_source_window)
1899 (tui_disasm_window): Don't declare.
1900 (enum tui_line_or_address_kind, struct tui_line_or_address): Move
1901 to tui-winsource.h.
1902 (SINGLE_KEY): Move to tui-stack.c.
1903
7a02bab7
TT
19042020-07-01 Tom Tromey <tom@tromey.com>
1905
1906 * tui/tui-regs.h (struct tui_data_item_window) <content>: Now a
1907 std::string.
1908 * tui/tui-regs.c (class tab_expansion_file): New.
1909 (tab_expansion_file::write): New method.
1910 (tui_register_format): Change return type. Use
1911 tab_expansion_file.
1912 (tui_get_register, tui_data_window::display_registers_from)
1913 (tui_data_item_window::rerender): Update.
1914 * tui/tui-io.h (tui_expand_tabs): Don't declare.
1915 * tui/tui-io.c (tui_expand_tabs): Remove.
1916
ea68593b
TT
19172020-07-01 Tom Tromey <tom@tromey.com>
1918
1919 * tui/tui-regs.c (tui_reggroup_completer): Use complete_on_enum.
1920
a8caed5d
FS
19212020-07-01 Fangrui Song <maskray@google.com>
1922
1923 * dwarf2/read.c (lnp_state_machine::check_line_address): Test -1.
1924
9cdf9820
AKS
19252020-07-01 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
1926
1927 * dwarf2/read.c (set_die_type): Removed conditions to restrict
1928 forms for DW_AT_associated and DW_AT_allocated attributes,
1929 which is already checked in function attr_to_dynamic_prop.
1930
a1520ad8
TT
19312020-06-30 Tom Tromey <tromey@adacore.com>
1932
1933 * dwarf2/read.c (quirk_rust_enum): Correctly call
1934 alloc_rust_variant for default-less enum.
1935
5ac58899
TT
19362020-06-30 Tom Tromey <tromey@adacore.com>
1937
1938 PR build/26183:
1939 * ada-lang.c (ada_lookup_name_info::ada_lookup_name_info): Use
1940 gdb::to_string.
1941
19b187a9
SM
19422020-06-29 Simon Marchi <simon.marchi@efficios.com>
1943
1944 * gdbarch.sh (displaced_step_copy_insn): Update doc.
1945 * gdbarch.h: Re-generate.
1946
cd4c4c07
TT
19472020-06-28 Tom Tromey <tom@tromey.com>
1948
1949 * command.h (cmd_types): Remove.
1950 (cmd_type): Don't declare.
1951 * cli/cli-decode.h (enum cmd_types): Uncomment. No longer a
1952 typedef.
1953 * cli/cli-cmds.c (setting_cmd): Use cmd->type directly.
1954 * cli/cli-decode.c (cmd_type): Remove.
1955
05779d57
PA
19562020-06-27 Pedro Alves <palves@redhat.com>
1957
1958 * fork-child.c (prefork_hook): Adjust.
1959 * infcmd.c (set_inferior_io_terminal, get_inferior_io_terminal):
1960 Delete.
1961 (set_inferior_tty_command, show_inferior_tty_command): Adjust.
1962 * inferior.c (inferior::set_tty, inferior::tty): New methods.
1963 * inferior.h (set_inferior_io_terminal, get_inferior_io_terminal):
1964 Remove declarations.
1965 (struct inferior) <set_tty, tty>: New methods.
1966 (struct inferior) <terminal>: Rename to ...
1967 (struct inferior) <m_terminal>: ... this and make private.
1968 * main.c (captured_main_1): Adjust.
1969 * mi/mi-cmd-env.c (mi_cmd_inferior_tty_set): Adjust.
1970 (mi_cmd_inferior_tty_show): Adjust.
1971 * nto-procfs.c (nto_procfs_target::create_inferior): Adjust.
1972 * windows-nat.c (windows_nat_target::create_inferior): Adjust.
1973
1776e3e5
NA
19742020-06-26 Nick Alcock <nick.alcock@oracle.com>
1975
1976 * configure.ac: Add --enable-libctf: handle --disable-static
1977 properly.
1978 * acinclude.m4: sinclude ../config/enable.m4.
1979 * Makefile.in (aclocal_m4_deps): Adjust accordingly.
1980 (LIBCTF): Substitute in.
1981 (CTF_DEPS): New, likewise.
1982 (CLIBS): libctf needs symbols from libbfd: move earlier.
1983 (CDEPS): Use CTF_DEPS, not LIBCTF, now LIBCTF can include rpath
1984 flags.
1985 * ctfread.c: Surround in ENABLE_LIBCTF.
1986 (elfctf_build_psymtabs) [!ENABLE_LIBCTF]: New stub.
1987 * configure: Regenerate.
1988 * config.in: Likewise.
1989
58373b80
SM
19902020-06-25 Simon Marchi <simon.marchi@efficios.com>
1991
1992 * infcmd.c (set_inferior_io_terminal): Use make_unique_xstrdup.
1993
277474ee
SM
19942020-06-25 Simon Marchi <simon.marchi@efficios.com>
1995
1996 * inferior.h (struct inferior) <terminal>: Change type to
1997 gdb::unique_xmalloc_ptr<char>.
1998 * inferior.c (inferior::~inferior): Don't free inf->terminal.
1999 * infcmd.c (set_inferior_io_terminal): Don't free terminal
2000 field, adjust to unique pointer.
2001 (get_inferior_io_terminal): Adjust to unique pointer.
2002
6d74da72
AB
20032020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
2004
2005 * riscv-tdep.c (riscv_print_registers_info): Loop over all
2006 registers, not just the known core set of registers.
2007
2e52d038
AB
20082020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
2009
2010 * riscv-tdep.c (riscv_register_name): Return NULL for duplicate
2011 fflags, frm, and fcsr registers.
2012 (riscv_register_reggroup_p): Remove unknown CSRs from save and
2013 restore groups.
2014 (riscv_tdesc_unknown_reg): New function.
2015 (riscv_gdbarch_init): Pass riscv_tdesc_unknown_reg to
2016 tdesc_use_registers.
2017 * riscv-tdep.h (struct gdbarch_tdep): Add
2018 unknown_csrs_first_regnum, unknown_csrs_count,
2019 duplicate_fflags_regnum, duplicate_frm_regnum, and
2020 duplicate_fcsr_regnum fields.
2021
be64fd07
AB
20222020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
2023
2024 * target-descriptions.c (tdesc_use_registers): Add new parameter a
2025 callback, use the callback (when not null) to help number unknown
2026 registers.
2027 * target-descriptions.h (tdesc_unknown_register_ftype): New typedef.
2028 (tdesc_use_registers): Add extra parameter to declaration.
2029
3b9fce96
AB
20302020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
2031
2032 * riscv-tdep.c (value_of_riscv_user_reg): Moved to here from later
2033 in the file.
2034 (class riscv_pending_register_alias): Likewise.
2035 (riscv_register_feature::register_info): Change 'required_p' field
2036 to 'required', and change its type. Add 'check' member function.
2037 (riscv_register_feature::register_info::check): Define new member
2038 function.
2039 (riscv_xreg_feature): Change initialisation of 'required' field.
2040 (riscv_freg_feature): Likewise.
2041 (riscv_virtual_feature): Likewise.
2042 (riscv_csr_feature): Likewise.
2043 (riscv_check_tdesc_feature): Take extra parameter, the csr
2044 tdesc_feature, rewrite the function to use the new
2045 riscv_register_feature::register_info::check function.
2046 (riscv_gdbarch_init): Pass the csr tdesc_feature where needed.
2047
865bad26
AB
20482020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
2049
2050 * features/Makefile: Remove all references to the deleted files
2051 below.
2052 * features/riscv/32bit-csr.c: Deleted.
2053 * features/riscv/32bit-csr.xml: Deleted.
2054 * features/riscv/64bit-csr.c: Deleted.
2055 * features/riscv/64bit-csr.xml: Deleted.
2056 * features/riscv/rebuild-csr-xml.sh: Deleted.
2057
ed69cbc8
AB
20582020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
2059
2060 * riscv-tdep.c (struct riscv_register_feature::register_info): Fix
2061 whitespace error for declaration of names member variable.
2062 (struct riscv_register_feature): Add new prefer_first_name member
2063 variable, and fix whitespace error in declaration of registers.
2064 (riscv_xreg_feature): Initialize prefer_first_name field.
2065 (riscv_freg_feature): Likewise.
2066 (riscv_virtual_feature): Likewise.
2067 (riscv_csr_feature): Likewise.
2068 (riscv_register_name): Expand on comments. Remove register name
2069 modifications for CSR and virtual registers.
2070
4445e8f5
AB
20712020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
2072
2073 * riscv-tdep.c (struct riscv_register_feature): Fix whitespace
2074 errors.
2075
767a879e
AB
20762020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
2077
2078 * riscv-tdep.c (riscv_create_csr_aliases): Handle csr aliases from
2079 riscv-opc.h.
2080 (class riscv_pending_register_alias): New class.
2081 (riscv_check_tdesc_feature): Take vector of pending aliases and
2082 populate it as appropriate.
2083 (riscv_setup_register_aliases): Delete.
2084 (riscv_gdbarch_init): Create vector of pending aliases and pass it
2085 to riscv_check_tdesc_feature in all cases. Use the vector to
2086 create the register aliases.
2087
bb6e55f3
RO
20882020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2089
2090 * sol2-tdep.c (sol2_static_transform_name): Remove.
2091 (sol2_init_abi): Don't register it.
2092 * gdbarch.sh (static_transform_name): Remove.
2093 * gdbarch.c, gdbarch.h: Regenerate.
2094
2095 * dbxread.c (read_dbx_symtab) <'S'>: Remove call to
2096 gdbarch_static_transform_name.
2097 * mdebugread.c (parse_partial_symbols) <'S'>: Likewise.
2098 * stabsread.c (define_symbol) <'X'>: Remove.
2099 (define_symbol) <'S'>: Remove gdbarch_static_transform_name
2100 handling.
2101 <'V'>: Likewise.
2102 * xcoffread.c (scan_xcoff_symtab): Remove gdbarch.
2103 <'S'>: Remove call to gdbarch_static_transform_name.
2104
c6d36836
RO
21052020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2106
2107 * procfs.c (procfs_pre_trace): New function.
2108 (procfs_target::create_inferior): Pass it to fork_inferior.
2109
a7e6196b
RO
21102020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2111
2112 * configure.tgt <sparc-*-linux*> (gdb_target_obs): Remove
2113 sparc-sol2-tdep.o, sol2-tdep.o, sparc64-sol2-tdep.o.
2114 <sparc64-*-linux*> (gdb_target_obs): Remove sparc64-sol2-tdep.o,
2115 sol2-tdep.o, sparc-sol2-tdep.o.
2116 * sparc-sol2-tdep.c (sparc32_sol2_init_abi): Make static.
2117 * sparc-tdep.h (sparc32_sol2_init_abi): Remove.
2118 * sparc64-sol2-tdep.c (sparc64_sol2_init_abi): Make static.
2119 * sparc64-tdep.h (sparc64_sol2_init_abi): Remove.
2120
d412e696
RO
21212020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2122
2123 * amd64-sol2-tdep.c (amd64_sol2_sigtramp_p): Remove.
2124 (amd64_sol2_init_abi): Use sol2_sigtramp_p.
2125 Call sol2_init_abi.
2126 Remove calls to set_gdbarch_skip_solib_resolver,
2127 set_gdbarch_core_pid_to_str.
2128 * i386-sol2-tdep.c (i386_sol2_sigtramp_p): Remove.
2129 (i386_sol2_static_transform_name): Remove.
2130 (i386_sol2_init_abi): Call sol2_init_abi.
2131 Remove calls to set_gdbarch_sofun_address_maybe_missing,
2132 set_gdbarch_static_transform_name,
2133 set_gdbarch_skip_solib_resolver, set_gdbarch_core_pid_to_str.
2134 Use sol2_sigtramp_p.
2135 * sol2-tdep.c (sol2_pc_in_sigtramp): New function.
2136 (sol2_sigtramp_p): New function.
2137 (sol2_static_transform_name): New function.
2138 (sol2_skip_solib_resolver, sol2_core_pid_to_str): Make static.
2139 (sol2_init_abi): New function.
2140 * sol2-tdep.h (sol2_sigtramp_p, sol2_init_abi): Declare.
2141 (sol2_skip_solib_resolver, sol2_core_pid_to_str): Remove.
2142 * sparc-sol2-tdep.c (sparc_sol2_pc_in_sigtramp): Remove.
2143 (sparc32_sol2_sigtramp_frame_sniffer): Just call sol2_sigtramp_p.
2144 (sparc_sol2_static_transform_name): Remove.
2145 (sparc32_sol2_init_abi): Call sol2_init_abi.
2146 Remove calls to set_gdbarch_sofun_address_maybe_missing,
2147 set_gdbarch_static_transform_name,
2148 set_gdbarch_skip_solib_resolver,
2149 set_gdbarch_core_pid_to_str.
2150 * sparc-tdep.h (sparc_sol2_pc_in_sigtramp)
2151 (sparc_sol2_static_transform_name): Remove
2152 * sparc64-sol2-tdep.c (sparc64_sol2_sigtramp_frame_sniffer): Just
2153 call sol2_sigtramp_p.
2154 (sparc64_sol2_init_abi): Call sol2_init_abi.
2155 Remove calls to set_gdbarch_sofun_address_maybe_missing,
2156 set_gdbarch_static_transform_name,
2157 set_gdbarch_skip_solib_resolver, set_gdbarch_core_pid_to_str.
2158
a8654e7d
PW
21592020-06-24 Philippe Waroquiers <philippe.waroquiers@skynet.be>
2160
2161 * symfile-add-flags.h: New flag SYMFILE_ALWAYS_CONFIRM.
2162 * exec.c (validate_exec_file): If from_tty, set both
2163 SYMFILE_VERBOSE (== from_tty) and SYMFILE_ALWAYS_CONFIRM.
2164 * symfile.c (symbol_file_add_with_addrs): if always_confirm
2165 and from_tty, unconditionally ask a confirmation.
2166
caa7fd04
AB
21672020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
2168
2169 * target-descriptions.c (tdesc_architecture_name): Protect against
2170 NULL pointer dereference.
2171 (maint_print_xml_tdesc_cmd): New function.
2172 (_initialize_target_descriptions): Register new 'maint print
2173 xml-tdesc' command and give it the filename completer.
2174 * NEWS: Mention new 'maint print xml-tdesc' command.
2175
fbf42f4e
AB
21762020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
2177
2178 * target-descriptions.c (class tdesc_compatible_info): New class.
2179 (struct target_desc): Change type of compatible vector.
2180 (tdesc_compatible_p): Update for change in type of
2181 target_desc::compatible.
2182 (tdesc_compatible_info_list): New function.
2183 (tdesc_compatible_info_arch_name): New function.
2184 (tdesc_add_compatible): Update for change in type of
2185 target_desc::compatible.
2186 (print_c_tdesc::visit_pre): Likewise.
2187
20821f4e
AB
21882020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
2189
2190 * target-descriptions.c (print_c_tdesc::print_c_tdesc): Change
2191 whitespace to underscore.
2192 (maint_print_c_tdesc_cmd): Use fake filename for target
2193 descriptions that came from the target.
2194 (_initialize_target_descriptions): Add filename command completion
2195 for 'maint print c-tdesc'.
2196
1fb5ee62
SM
21972020-06-23 Simon Marchi <simon.marchi@efficios.com>
2198
2199 * dwarf2/loc.c (decode_debug_loclists_addresses): Add empty
2200 lines.
2201
fc3ecb3e
SM
22022020-06-23 Simon Marchi <simon.marchi@efficios.com>
2203
2204 * dwarf2/loc.c (decode_debug_loc_dwo_addresses): Add empty
2205 lines.
2206 (dwarf2_find_location_expression): Likewise.
2207 (call_site_parameter_matches): Likewise.
2208 (dwarf2_compile_expr_to_ax): Likewise.
2209 (disassemble_dwarf_expression): Likewise.
2210 (loclist_describe_location): Likewise.
2211
236ef034
PA
22122020-06-23 Pedro Alves <palves@redhat.com>
2213
2214 * gdbarch-selftests.c: Don't include inferior.h, gdbthread.h or
2215 progspace-and-thread.h. Include scoped-mock-context.h instead.
2216 (register_to_value_test): Use scoped_mock_context.
2217 * regcache.c: Include "scoped-mock-context.h".
2218 (cooked_read_test): Don't error out if a target is already pushed.
2219 Use scoped_mock_context. Adjust.
2220 * scoped-mock-context.h: New file.
2221
39e7ecca
AB
22222020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
2223
2224 * ada-lang.c (ada_language_data): Delete la_is_string_type_p
2225 initializer.
2226 (ada_language::is_string_type_p): New member function.
2227 * c-lang.c (c_language_data): Delete la_is_string_type_p
2228 initializer.
2229 (cplus_language_data): Likewise.
2230 (asm_language_data): Likewise.
2231 (minimal_language_data): Likewise.
2232 * d-lang.c (d_language_data): Likewise.
2233 * f-lang.c (f_is_string_type_p): Delete function, implementation
2234 moved to f_language::is_string_type_p.
2235 (f_language_data): Delete la_is_string_type_p initializer.
2236 (f_language::is_string_type_p): New member function,
2237 implementation from f_is_string_type_p.
2238 * go-lang.c (go_is_string_type_p): Delete function, implementation
2239 moved to go_language::is_string_type_p.
2240 (go_language_data): Delete la_is_string_type_p initializer.
2241 (go_language::is_string_type_p): New member function,
2242 implementation from go_is_string_type_p.
2243 * language.c (language_defn::is_string_type_p): Define new member
2244 function.
2245 (default_is_string_type_p): Make static, add comment copied from
2246 header file.
2247 (unknown_language_data): Delete la_is_string_type_p initializer.
2248 (unknown_language::is_string_type_p): New member function.
2249 (auto_language_data): Delete la_is_string_type_p initializer.
2250 (auto_language::is_string_type_p): New member function.
2251 * language.h (language_data): Delete la_is_string_type_p field.
2252 (language_defn::is_string_type_p): Declare new function.
2253 (default_is_string_type_p): Delete desclaration, move comment to
2254 definition.
2255 * m2-lang.c (m2_is_string_type_p): Delete function, implementation
2256 moved to m2_language::is_string_type_p.
2257 (m2_language_data): Delete la_is_string_type_p initializer.
2258 (m2_language::is_string_type_p): New member function,
2259 implementation from m2_is_string_type_p.
2260 * objc-lang.c (objc_language_data): Delete la_is_string_type_p
2261 initializer.
2262 * opencl-lang.c (opencl_language_data): Likewise.
2263 * p-lang.c (pascal_is_string_type_p): Delete function,
2264 implementation moved to pascal_language::is_string_type_p.
2265 (pascal_language_data): Delete la_is_string_type_p initializer.
2266 (pascal_language::is_string_type_p): New member function,
2267 implementation from pascal_is_string_type_p.
2268 * rust-lang.c (rust_is_string_type_p): Delete function,
2269 implementation moved to rust_language::is_string_type_p.
2270 (rust_language_data): Delete la_is_string_type_p initializer.
2271 (rust_language::is_string_type_p): New member function,
2272 implementation from rust_is_string_type_p.
2273 * valprint.c (val_print_scalar_or_string_type_p): Update call to
2274 is_string_type_p.
2275
4ffc13fb
AB
22762020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
2277
2278 * ada-lang.c (ada_language_data): Delete la_print_typedef
2279 initializer.
2280 (ada_language::print_typedef): New member function.
2281 * c-lang.c (c_language_data): Delete la_print_typedef initializer.
2282 (cplus_language_data): Likewise.
2283 (asm_language_data): Likewise.
2284 (minimal_language_data): Likewise.
2285 * d-lang.c (d_language_data): Likewise.
2286 * f-lang.c (f_language_data): Likewise.
2287 (f_language::print_typedef): New member function.
2288 * go-lang.c (go_language_data): Delete la_print_typedef
2289 initializer.
2290 * language.c (language_defn::print_typedef): Define member
2291 function.
2292 (unknown_language_data): Delete la_print_typedef initializer.
2293 (unknown_language::print_typedef): New member function.
2294 (auto_language_data): Delete la_print_typedef initializer.
2295 (auto_language::print_typedef): New member function.
2296 * language.h (language_data): Delete la_print_typedef field.
2297 (language_defn::print_typedef): Declare new member function.
2298 (LA_PRINT_TYPEDEF): Update call to print_typedef.
2299 (default_print_typedef): Delete declaration.
2300 * m2-lang.c (m2_language_data): Delete la_print_typedef
2301 initializer.
2302 (m2_language::print_typedef): New member function.
2303 * objc-lang.c (objc_language_data): Delete la_print_typedef
2304 initializer.
2305 * opencl-lang.c (opencl_language_data): Likewise.
2306 * p-lang.c (pascal_language_data): Likewise.
2307 (pascal_language::print_typedef): New member function.
2308 * rust-lang.c (rust_print_typedef): Delete function,
2309 implementation moved to rust_language::print_typedef.
2310 (rust_language): Delete la_print_typedef initializer.
2311 (rust_language::print_typedef): New member function,
2312 implementation from rust_print_typedef.
2313 * typeprint.c (default_print_typedef): Delete.
2314
d711ee67
AB
23152020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
2316
2317 * ada-lang.c (ada_language_data): Delete la_printstr initializer.
2318 (ada_language::printstr): New member function.
2319 * c-lang.c (c_language_data): Delete la_printstr initializer.
2320 (cplus_language_data): Likewise.
2321 (asm_language_data): Likewise.
2322 (minimal_language_data): Likewise.
2323 * d-lang.c (d_language_data): Likewise.
2324 * f-lang.c (f_printstr): Rename to f_language::printstr.
2325 (f_language_data): Delete la_printstr initializer.
2326 (f_language::printstr): New member function, implementation from
2327 f_printstr.
2328 * go-lang.c (go_language_data): Delete la_printstr initializer.
2329 * language.c (language_defn::printstr): Define new member
2330 function.
2331 (unk_lang_printstr): Delete.
2332 (unknown_language_data): Delete la_printstr initializer.
2333 (unknown_language::printstr): New member function.
2334 (auto_language_data): Delete la_printstr initializer.
2335 (auto_language::printstr): New member function.
2336 * language.h (language_data): Delete la_printstr field.
2337 (language_defn::printstr): Declare new member function.
2338 (LA_PRINT_STRING): Update call to printstr.
2339 * m2-lang.c (m2_printstr): Rename to m2_language::printstr.
2340 (m2_language_data): Delete la_printstr initializer.
2341 (m2_language::printstr): New member function, implementation from
2342 m2_printstr.
2343 * objc-lang.c (objc_language_data): Delete la_printstr
2344 initializer.
2345 * opencl-lang.c (opencl_language_data): Likewise.
2346 * p-lang.c (pascal_printstr): Rename to pascal_language::printstr.
2347 (pascal_language_data): Delete la_printstr initializer.
2348 (pascal_language::printstr): New member function, implementation
2349 from pascal_printstr.
2350 * p-lang.h (pascal_printstr): Delete declaration.
2351 * rust-lang.c (rust_printstr): Update header comment.
2352 (rust_language_data): Delete la_printstr initializer.
2353 (rust_language::printstr): New member function.
2354
52b50f2c
AB
23552020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
2356
2357 * ada-lang.c (ada_language_data): Delete la_printchar initializer.
2358 (ada_language::printchar): New member function.
2359 * c-lang.c (c_language_data): Delete la_printchar initializer.
2360 (cplus_language_data): Likewise.
2361 (asm_language_data): Likewise.
2362 (minimal_language_data): Likewise.
2363 * d-lang.c (d_language_data): Likewise.
2364 * f-lang.c (f_printchar): Rename to f_language::printchar.
2365 (f_language_data): Delete la_printchar initializer.
2366 (f_language::printchar): New member function, implementation from
2367 f_printchar.
2368 * go-lang.c (go_language_data): Delete la_printchar initializer.
2369 * language.c (unk_lang_printchar): Delete.
2370 (language_defn::printchar): Define new member function.
2371 (unknown_language_data): Delete la_printchar initializer.
2372 (unknown_language::printchar): New member function.
2373 (auto_language_data): Delete la_printchar initializer.
2374 (auto_language::printchar): New member function.
2375 * language.h (language_data): Delete la_printchar field.
2376 (language_defn::printchar): Declare new member function.
2377 (LA_PRINT_CHAR): Update call to printchar.
2378 * m2-lang.c (m2_language_data): Delete la_printchar initializer.
2379 (m2_language::printchar): New member function.
2380 * objc-lang.c (objc_language_data): Delete la_printchar
2381 initializer.
2382 * opencl-lang.c (opencl_language_data): Likewise.
2383 * p-lang.c (pascal_language_data): Delete la_printchar
2384 initializer.
2385 (pascal_language::printchar): New member function.
2386 * rust-lang.c (rust_printchar): Rename to
2387 rust_language::printchar.
2388 (rust_language_data): Delete la_printchar initializer.
2389 (rust_language::printchar): New member function, implementation
2390 from rust_printchar.
2391
ec8cec5b
AB
23922020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
2393
2394 * ada-lang.c (emit_char): Renamed to ada_language::emitchar.
2395 (ada_language_data): Delete la_emitchar initializer.
2396 (ada_language::emitchar): New member function, implementation from
2397 emit_char.
2398 * c-lang.c (c_language_data): Delete la_emitchar initializer.
2399 (cplus_language_data): Likewise.
2400 (asm_language_data): Likewise.
2401 (minimal_language_data): Likewise.
2402 * d-lang.c (d_language_data): Likewise.
2403 * f-lang.c (f_emit_char): Rename to f_language::emitchar.
2404 (f_language_data): Delete la_emitchar initializer.
2405 (f_language::emitchar): New member function, implementation from
2406 f_emit_char.
2407 * go-lang.c (go_language_data): Delete la_emitchar initializer.
2408 * language.c (unk_lang_emit_char): Delete.
2409 (language_defn::emitchar): New member function definition.
2410 (unknown_language_data): Delete la_emitchar initializer.
2411 (unknown_language::emitchar): New member function.
2412 (auto_language_data): Delete la_emitchar initializer.
2413 (auto_language::emitchar): New member function.
2414 * language.h (language_data): Delete la_emitchar field.
2415 (language_defn::emitchar): New member field declaration.
2416 (LA_EMIT_CHAR): Update call to emitchar.
2417 * m2-lang.c (m2_emit_char): Rename to m2_language::emitchar.
2418 (m2_language_data): Delete la_emitchar initializer.
2419 (m2_language::emitchar): New member function, implementation from
2420 m2_emit_char.
2421 * objc-lang.c (objc_language_data): Delete la_emitchar
2422 initializer.
2423 * opencl-lang.c (opencl_language_data): Likewise.
2424 * p-lang.c (pascal_emit_char): Rename to pascal_language::emitchar.
2425 (pascal_language_data): Delete la_emitchar initializer.
2426 (pascal_language::emitchar): New member function, implementation
2427 from pascal_emit_char.
2428 * rust-lang.c (rust_emitchar): Rename to rust_language::emitchar.
2429 (rust_language_data): Delete la_emitchar initializer.
2430 (rust_language::emitchar): New member function, implementation
2431 from rust_emitchar.
2432
1bf9c363
AB
24332020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
2434
2435 * ada-lang.c (resolve): Rename to ada_language::post_parser.
2436 (ada_language_data): Delete la_post_parser initializer.
2437 (ada_language::post_parser): New member function.
2438 * c-lang.c (c_language_data): Delete la_post_parser initializer.
2439 (cplus_language_data): Likewise.
2440 (asm_language_data): Likewise.
2441 (minimal_language_data): Likewise.
2442 * d-lang.c (d_language_data): Likewise.
2443 * f-lang.c (f_language_data): Likewise.
2444 * go-lang.c (go_language_data): Likewise.
2445 * language.c (unknown_language_data): Likewise.
2446 (auto_language_data): Likewise.
2447 * language.h (language_data): Delete la_post_parser field.
2448 (language_defn::post_parser): New member function.
2449 * m2-lang.c (m2_language_data): Delete la_post_parser initializer.
2450 * objc-lang.c (objc_language_data): Likewise.
2451 * opencl-lang.c (opencl_language_data): Likewise.
2452 * p-lang.c (pascal_language_data): Likewise.
2453 * parse.c (parse_exp_in_context): Update call to post_parser.
2454 (null_post_parser): Delete definition.
2455 * parser-defs.h (null_post_parser): Delete declaration.
2456 * rust-lang.c (rust_language_data): Delete la_post_parser
2457 initializer.
2458
87afa652
AB
24592020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
2460
2461 * ada-lang.c (parse): Rename to ada_language::parser.
2462 (ada_language_data): Delete la_parser initializer.
2463 (ada_language::parser): New member function, implementation from
2464 parse.
2465 * c-lang.c (c_language_data): Delete la_parser initializer.
2466 (cplus_language_data): Likewise.
2467 (asm_language_data): Likewise.
2468 (minimal_language_data): Likewise.
2469 * d-lang.c (d_language_data): Likewise.
2470 (d_language::parser): New member function.
2471 * f-lang.c (f_language_data): Delete la_parser initializer.
2472 (f_language::parser): New member function.
2473 * go-lang.c (go_language_data): Delete la_parser initializer.
2474 (go_language::parser): New member function.
2475 * language.c (unk_lang_parser): Delete.
2476 (language_defn::parser): Define new member function.
2477 (unknown_language_data): Delete la_parser initializer.
2478 (unknown_language::parser): New member function.
2479 (auto_language_data): Delete la_parser initializer.
2480 (auto_language::parser): New member function.
2481 * language.h (language_data): Delete la_parser field.
2482 (language_defn::parser): Declare new member function.
2483 * m2-lang.c (m2_language_data): Delete la_parser initializer.
2484 (m2_language::parser): New member function.
2485 * objc-lang.c (objc_language_data): Delete la_parser initializer.
2486 * opencl-lang.c (opencl_language_data): Likewise.
2487 * p-lang.c (pascal_language_data): Likewise.
2488 (pascal_language::parser): New member function.
2489 * parse.c (parse_exp_in_context): Update call to parser.
2490 * rust-lang.c (rust_language_data): Delete la_parser initializer.
2491 (rust_language::parser): New member function.
2492
37825800
AB
24932020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
2494
2495 * top.c (print_gdb_configuration): Print --with-python-libdir
2496 configuration value.
2497
5b860c93
PW
24982020-06-22 Philippe Waroquiers <philippe.waroquiers@skynet.be>
2499
2500 * NEWS: Mention change to the alias command.
2501
cf00cd6f
PW
25022020-06-22 Philippe Waroquiers <philippe.waroquiers@skynet.be>
2503
2504 * cli/cli-cmds.c (lookup_cmd_for_default_args)
2505 (alias_command_completer)
2506 (make_alias_options_def_group): New functions.
2507 (alias_opts, alias_option_defs): New struct and array.
2508 (alias_usage_error): Update usage.
2509 (alias_command): Handles optional DEFAULT-ARGS... arguments.
2510 Use option framework.
2511 (_initialize_cli_cmds): Update alias command help.
2512 Update aliases command help.
2513 (show_user):
2514 Add NULL for new default_args lookup_cmd argument.
2515 (valid_command_p): Rename to validate_aliased_command.
2516 Add NULL for new default_args lookup_cmd argument. Verify that the
2517 aliased_command has no default args.
2518 * cli/cli-decode.c (help_cmd): Show aliases definitions.
2519 (lookup_cmd_1, lookup_cmd): New argument default_args.
2520 (add_alias_cmd):
2521 Add NULL for new default_args lookup_cmd argument.
2522 (print_help_for_command): Show default args under the layout
2523 alias some_alias = some_aliased_cmd some_alias_default_arg.
2524 * cli/cli-decode.h (struct cmd_list_element): New member default_args.
2525 xfree default_args in destructor.
2526 * cli/cli-script.c (process_next_line, do_define_command):
2527 Add NULL for new default_args lookup_cmd argument.
2528 * command.h: Declare new default_args argument in lookup_cmd
2529 and lookup_cmd_1.
2530 * completer.c (complete_line_internal_1):
2531 Add NULL for new default_args lookup_cmd or lookup_cmd_1 argument.
2532 * guile/scm-cmd.c (gdbscm_parse_command_name): Likewise.
2533 * guile/scm-param.c (add_setshow_generic, pascm_parameter_defined_p):
2534 Likewise.
2535 * infcmd.c (_initialize_infcmd): Likewise.
2536 * python/py-auto-load.c (gdbpy_initialize_auto_load): Likewise.
2537 * python/py-cmd.c (gdbpy_parse_command_name): Likewise.
2538 * python/py-param.c (add_setshow_generic): Likewise.
2539 * remote.c (_initialize_remote): Likewise.
2540 * top.c (execute_command): Prepend default_args if command has some.
2541 (set_verbose):
2542 Add NULL for new default_args lookup_cmd or lookup_cmd_1 argument.
2543 * tracepoint.c (validate_actionline, encode_actions_1):
2544 Add NULL for new default_args lookup_cmd or lookup_cmd_1 argument.
2545
bd920864
TBA
25462020-06-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2547
2548 * jit.c (jit_read_descriptor): Use bool as the return type.
2549 (jit_breakpoint_re_set_internal): Use bool as the return type.
2550 Invert the return value logic; return true if the jit breakpoint
2551 has been successfully initialized.
2552 (jit_inferior_init): Update the call to
2553 jit_breakpoint_re_set_internal.
2554
f8098322
PA
25552020-06-22 Pedro Alves <palves@redhat.com>
2556
2557 PR gdb/25939
2558 * procfs.c (procfs_target::wait): Don't reference inferior_ptid.
2559 Use the current inferior instead. Don't return
2560 TARGET_WAITKIND_SPURIOUS/inferior_ptid -- instead continue and
2561 wait again.
2562 * sol-thread.c (sol_thread_target::wait): Don't reference
2563 inferior_ptid.
2564 (ps_lgetregs, ps_lsetregs, ps_lgetfpregs, ps_lsetfpregs)
2565 (sol_update_thread_list_callback): Use the current inferior's pid
2566 instead of inferior_ptid.
2567
196535a6
RO
25682020-06-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2569
2570 * procfs.c: Cleanup many comments.
2571
2572 (READ_WATCHFLAG, WRITE_WATCHFLAG, EXEC_WATCHFLAG)
2573 (AFTER_WATCHFLAG): Replace by value.
2574
2575 (MAIN_PROC_NAME_FORMAT): Inline ...
2576 (create_procinfo): ... here.
2577
2578 (procfs_debug_inferior): Remove SYS_exec handling.
2579 (syscall_is_exec): Likewise.
2580 (procfs_set_exec_trap): Likewise.
2581
2582 (syscall_is_lwp_exit): Inline in callers.
2583 (syscall_is_exit): Likewise.
2584 (syscall_is_exec): Likewise.
2585 (syscall_is_lwp_create): Likewise.
2586
2587 (invalidate_cache): Remove #if 0 code.
2588
2589 (make_signal_thread_runnable): Remove.
2590 (procfs_target::resume): Remove #if 0 code.
2591
cf6f3e86
RO
25922020-06-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2593
2594 PR gdb/25939
2595 * procfs.c (procfs_target::procfs_init_inferior): Move push_target
2596 call ...
2597 (procfs_target::create_inferior): ... here.
2598
48e9cc84
PW
25992020-06-21 Philippe Waroquiers <philippe.waroquiers@skynet.be>
2600
2601 * exec.c (validate_exec_file): Ensure the build-id is up to
2602 date by calling reopen_exec_file (that checks file timestamp
2603 to decide to re-read the file).
2604
3922b302
PA
26052020-06-18 Pedro Alves <palves@redhat.com>
2606
2607 PR gdb/25412
2608 * gdbthread.h (delete_thread, delete_thread_silent)
2609 (find_thread_ptid): Update comments.
2610 * thread.c (current_thread_): New global.
2611 (is_current_thread): Move higher, and reimplement.
2612 (inferior_thread): Reimplement.
2613 (set_thread_exited): Use bool. Add assertions.
2614 (add_thread_silent): Simplify thread-reuse handling by always
2615 calling delete_thread.
2616 (delete_thread): Remove intro comment.
2617 (find_thread_ptid): Skip exited threads.
2618 (switch_to_thread_no_regs): Write to current_thread_.
2619 (switch_to_no_thread): Check CURRENT_THREAD_ instead of
2620 INFERIOR_PTID. Clear current_thread_.
2621
6dbdab44
PA
26222020-06-18 Pedro Alves <palves@redhat.com>
2623
2624 * aix-thread.c (pd_update): Use switch_to_thread.
2625
2da4b788
PA
26262020-06-18 Pedro Alves <palves@redhat.com>
2627
2628 * ravenscar-thread.c (ravenscar_thread_target): Update.
2629 (ravenscar_thread_target::update_inferior_ptid): Rename to ...
2630 (ravenscar_thread_target::add_active_thread): ... this. Don't
2631 set m_base_ptid here. Update to avoid referencing inferior_ptid.
2632 (ravenscar_thread_target::wait): Don't write to inferior_ptid.
2633
50838d1b
PA
26342020-06-18 Pedro Alves <palves@redhat.com>
2635
2636 * nat/windows-nat.c (current_windows_thread): Remove.
2637 * nat/windows-nat.h (current_windows_thread): Remove.
2638 * windows-nat.c (windows_nat_target::stopped_by_sw_breakpoint):
2639 Adjust.
2640 (display_selectors): Adjust to fetch the current
2641 windows_thread_info based on inferior_ptid.
2642 (fake_create_process): No longer write to current_windows_thread.
2643 (windows_nat_target::get_windows_debug_event):
2644 Don't set inferior_ptid or current_windows_thread.
2645 (windows_nat_target::wait): Adjust to not rely on
2646 current_windows_thread.
2647 (do_initial_windows_stuff): Now a method of windows_nat_target.
2648 Switch to the last_ptid thread.
2649 (windows_nat_target::attach): Adjust.
2650 (windows_nat_target::detach): Use switch_to_no_thread instead of
2651 writing to inferior_ptid directly.
2652 (windows_nat_target::create_inferior): Adjust.
2653
31ce04e9
PA
26542020-06-18 Pedro Alves <palves@redhat.com>
2655
2656 * windows-nat.c (do_initial_windows_stuff): No longer set inferior_ptid.
2657
1ee1a363
PA
26582020-06-18 Pedro Alves <palves@redhat.com>
2659
2660 * go32-nat.c (go32_nat_target::create_inferior): Switch to thread
2661 after creating it, instead of writing to inferior_ptid. Don't
2662 write to inferior_ptid.
2663
6d350754
PA
26642020-06-18 Pedro Alves <palves@redhat.com>
2665
2666 * fork-child.c (postfork_hook): Don't write to inferior_ptid.
2667
5d971d48
PA
26682020-06-18 Pedro Alves <palves@redhat.com>
2669
2670 * bsd-kvm.c (bsd_kvm_target_open): Switch to thread after adding
2671 it, instead of writing to inferior_ptid.
2672
86e57d1b
PA
26732020-06-18 Pedro Alves <palves@redhat.com>
2674
2675 * btrace.c (btrace_fetch): Use switch_to_thread instead of writing
2676 to inferior_ptid.
2677
f2e1c129
PA
26782020-06-18 Pedro Alves <palves@redhat.com>
2679
2680 * bsd-kvm.c (bsd_kvm_target::close): Use switch_to_no_thread
2681 instead of writing to inferior_ptid directly.
2682
60db1b85
PA
26832020-06-18 Pedro Alves <palves@redhat.com>
2684
2685 * corelow.c (core_target::close): Use switch_to_no_thread instead
2686 of writing to inferior_ptid directly.
2687 (add_to_thread_list, core_target_open): Use switch_to_thread
2688 instead of writing to inferior_ptid directly.
2689
fe7d6a8d
PA
26902020-06-18 Pedro Alves <palves@redhat.com>
2691
2692 * darwin-nat.c (darwin_nat_target::decode_message): Don't write to
2693 inferior_ptid.
2694 (darwin_nat_target::stop_inferior, darwin_nat_target::kill): Avoid
2695 inferior_ptid.
2696 (darwin_attach_pid): Use switch_to_no_thread instead of writing to
2697 inferior_ptid directly.
2698 (darwin_nat_target::init_thread_list): Switch to thread, instead
2699 of writing to inferior_ptid.
2700 (darwin_nat_target::attach): Don't write to inferior_ptid.
2701 (darwin_nat_target::get_ada_task_ptid): Avoid inferior_ptid.
2702
975f8708
PA
27032020-06-18 Pedro Alves <palves@redhat.com>
2704
2705 * gnu-nat.c (gnu_nat_target::create_inferior): Switch to the added
2706 thread.
2707 (gnu_nat_target::attach): Don't write to inferior_ptid directly.
2708 Instead use switch_to_thread.
2709 (gnu_nat_target::detach): Use switch_to_no_thread
2710 instead of writing to inferior_ptid directly. Used passed-in
2711 inferior instead of looking up the inferior by pid.
2712
1a204730
PA
27132020-06-18 Pedro Alves <palves@redhat.com>
2714
2715 * go32-nat.c (go32_nat_target::create_inferior): Don't write to
2716 inferior_ptid.
2717
ebe84f23
PA
27182020-06-18 Pedro Alves <palves@redhat.com>
2719
2720 * nto-procfs.c (nto_procfs_target::update_thread_list): Avoid
2721 inferior_ptid.
2722 (nto_procfs_target::attach): Avoid inferior_ptid. Switch to
2723 thread.
2724 (nto_procfs_target::detach): Avoid referencing
2725 inferior_ptid. Use switch_to_no_thread instead of writing to
2726 inferior_ptid directly.
2727 (nto_procfs_target::mourn_inferior): Use switch_to_no_thread
2728 instead of writing to inferior_ptid directly.
2729 (nto_procfs_target::create_inferior): Avoid inferior_ptid. Switch
2730 to thread.
2731
191f02e5
PA
27322020-06-18 Pedro Alves <palves@redhat.com>
2733
2734 * remote-sim.c (gdbsim_target::create_inferior): Switch to thread
2735 after creating it, instead of writing to inferior_ptid.
2736 (gdbsim_target_open): Use switch_to_no_thread instead of writing
2737 to inferior_ptid directly.
2738 (gdbsim_target::wait): Don't write to inferior_ptid.
2739
0ac55310
PA
27402020-06-18 Pedro Alves <palves@redhat.com>
2741
2742 * remote.c (remote_target::remote_notice_new_inferior): Use
2743 switch_to_thread instead of writing to inferior_ptid directly.
2744 (remote_target::add_current_inferior_and_thread): Use
2745 switch_to_no_thread instead of writing to inferior_ptid directly.
2746 (extended_remote_target::attach): Use switch_to_inferior_no_thread
2747 and switch_to_thread instead of using set_current_inferior or
2748 writing to inferior_ptid directly.
2749
5233f39b
PA
27502020-06-18 Pedro Alves <palves@redhat.com>
2751
2752 * tracectf.c (ctf_target_open): Switch to added thread instead of
2753 writing to inferior_ptid directly.
2754 (ctf_target::close): Use switch_to_no_thread instead of writing to
2755 inferior_ptid directly.
2756
087e161b
PA
27572020-06-18 Pedro Alves <palves@redhat.com>
2758
2759 * tracefile-tfile.c (tfile_target_open): Don't write to
2760 inferior_ptid directly, instead switch to added thread.
2761 (tfile_target::close): Use switch_to_no_thread instead of writing
2762 to inferior_ptid directly.
2763
7fb43e53
PA
27642020-06-18 Pedro Alves <palves@redhat.com>
2765
2766 * procfs.c (procfs_target::attach): Don't write to inferior_ptid.
2767 (procfs_target::detach): Use switch_to_no_thread
2768 instead of writing to inferior_ptid directly.
2769 (do_attach): Change return type to void. Switch to the added
2770 thread.
2771 (procfs_target::create_inferior): Switch to the added thread.
2772 (procfs_do_thread_registers): Don't write to inferior_ptid.
2773
18493a00
PA
27742020-06-18 Pedro Alves <palves@redhat.com>
2775
2776 * infrun.c (generic_mourn_inferior): Use switch_to_thread instead
2777 of writing to inferior_ptid.
2778 (scoped_restore_exited_inferior): Delete.
2779 (handle_vfork_child_exec_or_exit): Simplify using
2780 scoped_restore_current_pspace_and_thread. Use switch_to_thread
2781 instead of writing to inferior_ptid.
2782 (THREAD_STOPPED_BY): Delete.
2783 (thread_stopped_by_watchpoint, thread_stopped_by_sw_breakpoint)
2784 (thread_stopped_by_hw_breakpoint): Delete.
2785 (save_waitstatus): Use
2786 scoped_restore_current_thread+switch_to_thread, and call
2787 target_stopped_by_watchpoint instead of
2788 thread_stopped_by_watchpoint, target_stopped_by_sw_breakpoint
2789 instead of thread_stopped_by_sw_breakpoint, and
2790 target_stopped_by_hw_breakpoint instead of
2791 thread_stopped_by_hw_breakpoint.
2792 (handle_inferior_event)
2793 <TARGET_WAITKIND_EXITED/TARGET_WAITKIND_SIGNALLED>: Don't write to
2794 inferior_ptid directly, nor
2795 set_current_inferior/set_current_program_space. Use
2796 switch_to_thread / switch_to_inferior_no_thread instead.
2797
a0776b13
PA
27982020-06-18 Pedro Alves <palves@redhat.com>
2799
2800 * target.c (generic_mourn_inferior): Use switch_to_no_thread
2801 instead of writing to inferior_ptid.
2802
6155c136
PA
28032020-06-18 Pedro Alves <palves@redhat.com>
2804
2805 * inf-ptrace.c (inf_ptrace_target::create_inferior): Switch to the
2806 added thread.
2807 (inf_ptrace_target::attach): Don't write to inferior_ptid. Switch
2808 to the added thread.
2809 (inf_ptrace_target::detach_success): Use switch_to_no_thread
2810 instead of writing to inferior_ptid.
2811
c5316fc6
PA
28122020-06-18 Pedro Alves <palves@redhat.com>
2813
2814 * gdbarch-selftests.c: Include "progspace-and-thread.h".
2815 (register_to_value_test): Mock a program_space too. Heap-allocate
2816 the address space. Don't write to inferior_ptid. Use
2817 switch_to_thread instead.
2818
8df01799
PA
28192020-06-18 Pedro Alves <palves@redhat.com>
2820
2821 * linux-tdep.c (find_signalled_thread(thread_info *,void *)):
2822 Delete.
2823 (find_signalled_thread()): New, factored out from
2824 linux_make_corefile_notes and adjusted to handle exited threads.
2825 (linux_make_corefile_notes): Adjust to use the new
2826 find_signalled_thread.
2827
41792d68
PA
28282020-06-18 Pedro Alves <palves@redhat.com>
2829
2830 * linux-tdep.c (btrace_fetch): Save/restore current thread instead
2831 of saving/restoring inferior_ptid.
2832
612f258a
TT
28332020-06-17 Tom Tromey <tom@tromey.com>
2834
2835 * tui/tui-win.h (tui_scroll_forward, tui_scroll_backward)
2836 (tui_scroll_left, tui_scroll_right, struct tui_win_info): Don't
2837 declare.
2838 * tui/tui-data.h (MIN_CMD_WIN_HEIGHT): Remove.
2839
efb763a5
SM
28402020-06-15 Simon Marchi <simon.marchi@efficios.com>
2841
2842 * dwarf2/read.c (dwarf2_initialize_objfile): Check for presence
2843 of partial symtabs.
2844
2951f6c0
SM
28452020-06-17 Simon Marchi <simon.marchi@efficios.com>
2846
2847 * regformats/reg-arm.dat: Remove.
2848 * regformats/reg-bfin.dat: Remove.
2849 * regformats/reg-cris.dat: Remove.
2850 * regformats/reg-crisv32.dat: Remove.
2851 * regformats/reg-m32r.dat: Remove.
2852 * regformats/reg-tilegx.dat: Remove.
2853 * regformats/reg-tilegx32.dat: Remove.
2854
7d458ea5
SM
28552020-06-17 Simon Marchi <simon.marchi@efficios.com>
2856
2857 * features/Makefile (WHICH): Remove arm files.
2858 * regformats/arm/arm-with-iwmmxt.dat: Remove.
2859 * regformats/arm/arm-with-neon.dat: Remove.
2860 * regformats/arm/arm-with-vfpv2.dat: Remove.
2861 * regformats/arm/arm-with-vfpv3.dat: Remove.
2862
3af96c0d
SM
28632020-06-17 Simon Marchi <simon.marchi@efficios.com>
2864
2865 * features/Makefile (XMLTOC): Remove rx.xml.
2866
b25e22fd
PA
28672020-06-17 Pedro Alves <palves@redhat.com>
2868
2869 * gdbthread.h (thread_control_state) <trap_expected> Update
2870 comments.
2871
a78a19b1
AB
28722020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
2873
2874 * ada-lang.c (ada_lookup_symbol_nonlocal): Rename to
2875 ada_language::lookup_symbol_nonlocal.
2876 (ada_language_data): Delete la_lookup_symbol_nonlocal initializer.
2877 (ada_language::lookup_symbol_nonlocal): New member function,
2878 implementation from ada_lookup_symbol_nonlocal.
2879 * c-lang.c (c_language_data): Delete la_lookup_symbol_nonlocal
2880 initializer.
2881 (cplus_language_data): Delete la_lookup_symbol_nonlocal
2882 initializer.
2883 (cplus_language::lookup_symbol_nonlocal): New member function.
2884 (asm_language_data): Delete la_lookup_symbol_nonlocal initializer.
2885 (minimal_language_data) Likewise.
2886 * cp-namespace.c (cp_lookup_nested_symbol): Update comment.
2887 * d-lang.c (d_language_data): Delete la_lookup_symbol_nonlocal
2888 initializer.
2889 (d_language::lookup_symbol_nonlocal): New member function.
2890 * f-lang.c (f_language_data): Delete la_lookup_symbol_nonlocal
2891 initializer.
2892 (f_language::lookup_symbol_nonlocal): New member function.
2893 * go-lang.c (go_language_data): Delete la_lookup_symbol_nonlocal
2894 initializer.
2895 * language.c (unknown_language_data): Likewise.
2896 (auto_language_data): Likewise.
2897 * language.h (language_data): Delete la_lookup_symbol_nonlocal
2898 field.
2899 (language_defn::lookup_symbol_nonlocal): New member function.
2900 * m2-lang.c (m2_language_data): Delete la_lookup_symbol_nonlocal
2901 initializer.
2902 * objc-lang.c (objc_language_data): Likewise.
2903 * opencl-lang.c (opencl_language_data): Likewise.
2904 * p-lang.c (pascal_language_data): Likewise.
2905 * rust-lang.c (rust_lookup_symbol_nonlocal): Rename to
2906 rust_language::lookup_symbol_nonlocal.
2907 (rust_language_data): Delete la_lookup_symbol_nonlocal
2908 initializer.
2909 (rust_language::lookup_symbol_nonlocal): New member function,
2910 implementation from rust_lookup_symbol_nonlocal.
2911 * symtab.c (lookup_symbol_aux): Update call to
2912 lookup_symbol_nonlocal.
2913 (basic_lookup_symbol_nonlocal): Rename to...
2914 (language_defn::lookup_symbol_nonlocal): ...this, and update
2915 header comment. Remove language_defn parameter, and replace with
2916 uses of `this'.
2917 * symtab.h (basic_lookup_symbol_nonlocal): Delete declaration.
2918
ebe2334e
AB
29192020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
2920
2921 * ada-lang.c (ada_language_data): Delete la_value_print_inner
2922 initializer.
2923 (ada_language::value_print_inner): New member function.
2924 * c-lang.c (c_language_data): Delete la_value_print_inner
2925 initializer.
2926 (cplus_language_data): Likewise.
2927 (asm_language_data): Likewise.
2928 (minimal_language_data): Likewise.
2929 * d-lang.c (d_language_data): Likewise.
2930 (d_language::value_print_inner): New member function.
2931 * f-lang.c (f_language_data): Delete la_value_print_inner
2932 initializer.
2933 (f_language::value_print_inner): New member function.
2934 * f-lang.h (f_value_print_innner): Rename to...
2935 (f_value_print_inner): ...this (note spelling of 'inner').
2936 * f-valprint.c (f_value_print_innner): Rename to...
2937 (f_value_print_inner): ...this (note spelling of 'inner').
2938 * go-lang.c (go_language_data): Delete la_value_print_inner
2939 initializer.
2940 (go_language::value_print_inner): New member function.
2941 * language.c (language_defn::value_print_inner): Define new member
2942 function.
2943 (unk_lang_value_print_inner): Delete.
2944 (unknown_language_data): Delete la_value_print_inner initializer.
2945 (unknown_language::value_print_inner): New member function.
2946 (auto_language_data): Delete la_value_print_inner initializer.
2947 (auto_language::value_print_inner): New member function.
2948 * language.h (language_data): Delete la_value_print_inner field.
2949 (language_defn::value_print_inner): Delcare new member function.
2950 * m2-lang.c (m2_language_data): Delete la_value_print_inner
2951 initializer.
2952 (m2_language::value_print_inner): New member function.
2953 * objc-lang.c (objc_language_data): Delete la_value_print_inner
2954 initializer.
2955 * opencl-lang.c (opencl_language_data): Likewise.
2956 * p-lang.c (pascal_language_data): Likewise.
2957 (pascal_language::value_print_inner): New member function.
2958 * rust-lang.c (rust_language_data): Delete la_value_print_inner
2959 initializer.
2960 (rust_language::value_print_inner): New member function.
2961 * valprint.c (do_val_print): Update call to value_print_inner.
2962
a1d1fa3e
AB
29632020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
2964
2965 * ada-lang.c (ada_language_data): Delete la_value_print
2966 initializer.
2967 (ada_language::value_print): New member function.
2968 * c-lang.c (c_language_data): Delete la_value_print initializer.
2969 (cplus_language_data): Likewise.
2970 (asm_language_data): Likewise.
2971 (minimal_language_data): Likewise.
2972 * d-lang.c (d_language_data): Likewise.
2973 * f-lang.c (f_language_data): Likewise.
2974 * go-lang.c (go_language_data): Likewise.
2975 * language.c (unk_lang_value_print): Delete.
2976 (language_defn::value_print): Define new member function.
2977 (unknown_language_data): Delete la_value_print initializer.
2978 (unknown_language::value_print): New member function.
2979 (auto_language_data): Delete la_value_print initializer.
2980 (auto_language::value_print): New member function.
2981 * language.h (language_data): Delete la_value_print field.
2982 (language_defn::value_print): Declare new member function.
2983 (LA_VALUE_PRINT): Update call to value_print.
2984 * m2-lang.c (m2_language_data): Delete la_value_print initializer.
2985 * objc-lang.c (objc_language_data): Likewise.
2986 * opencl-lang.c (opencl_language_data): Likewise.
2987 * p-lang.c (pascal_language_data): Likewise.
2988 (pascal_language::value_print): New member function.
2989 * rust-lang.c (rust_language_data): Delete la_value_print
2990 initializer.
2991
f16a9f57
AB
29922020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
2993
2994 * ada-lang.c (ada_watch_location_expression): Rename to
2995 ada_language::watch_location_expression.
2996 (ada_language_data): Delete la_watch_location_expression
2997 initializer.
2998 (ada_language::watch_location_expression): New member function,
2999 implementation from ada_watch_location_expression.
3000 * breakpoint.c (watch_command_1): Update call to
3001 watch_location_expression.
3002 * c-lang.c (c_watch_location_expression): Rename to
3003 language_defn::watch_location_expression.
3004 (c_language_data): Delete la_watch_location_expression
3005 initializer.
3006 (cplus_language_data): Likewise.
3007 (asm_language_data): Likewise.
3008 (minimal_language_data): Likewise.
3009 * c-lang.h (c_watch_location_expression): Delete declaration.
3010 * d-lang.c (d_language_data): Delete la_watch_location_expression
3011 initializer.
3012 * f-lang.c (f_language_data): Likewise.
3013 * go-lang.c (go_language_data): Likewise.
3014 * language.c (language_defn::watch_location_expression): Member
3015 function implementation from c_watch_location_expression.
3016 (unknown_language_data): Delete la_watch_location_expression
3017 initializer.
3018 (auto_language_data): Likewise.
3019 * language.h (language_data): Delete la_watch_location_expression
3020 field.
3021 (language_defn::watch_location_expression): Declare new member
3022 function.
3023 * m2-lang.c (m2_language_data): Delete
3024 la_watch_location_expression initializer.
3025 * objc-lang.c (objc_language_data): Likewise.
3026 * opencl-lang.c (opencl_language_data): Likewise.
3027 * p-lang.c (pascal_language_data): Likewise.
3028 * rust-lang.c (rust_watch_location_expression): Rename to
3029 rust_language::watch_location_expression.
3030 (rust_language_data): Delete la_watch_location_expression
3031 initializer.
3032 (rust_language::watch_location_expression): New member function,
3033 implementation from rust_watch_location_expression.
3034
7e56227d
AB
30352020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
3036
3037 * ada-lang.c (ada_collect_symbol_completion_matches): Rename to
3038 ada_language::collect_symbol_completion_matches.
3039 (ada_language_data): Delete la_collect_symbol_completion_matches
3040 initializer.
3041 (ada_language::collect_symbol_completion_matches): New member
3042 function, implementation from
3043 ada_collect_symbol_completion_matches.
3044 * c-lang.c (c_language_data): Delete
3045 la_collect_symbol_completion_matches initializer.
3046 (cplus_language_data): Likewise.
3047 (asm_language_data): Likewise.
3048 (minimal_language_data): Likewise.
3049 * d-lang.c (d_language_data): Likewise.
3050 * f-lang.c (f_collect_symbol_completion_matches): Rename to
3051 f_language::collect_symbol_completion_matches.
3052 (f_language_data): Delete la_collect_symbol_completion_matches
3053 initializer.
3054 (f_language::collect_symbol_completion_matches) New member
3055 function, implementation from f_collect_symbol_completion_matches.
3056 * go-lang.c (go_language_data): Delete
3057 la_collect_symbol_completion_matches initializer.
3058 * language.c (unknown_language_data): Likewise.
3059 (auto_language_data): Likewise.
3060 * language.h (language_data): Delete
3061 la_collect_symbol_completion_matches field.
3062 (language_defn::collect_symbol_completion_matches): New member
3063 function.
3064 * m2-lang.c (m2_language_data): Delete
3065 la_collect_symbol_completion_matches initializer.
3066 * objc-lang.c (objc_language_data): Likewise.
3067 * opencl-lang.c (opencl_language_data): Likewise.
3068 * p-lang.c (pascal_language_data): Likewise.
3069 * rust-lang.c (rust_language_data): Likewise.
3070 * symtab.c (default_collect_symbol_completion_matches): Delete.
3071 (collect_symbol_completion_matches): Update call to
3072 collect_symbol_completion_matches.
3073 (collect_symbol_completion_matches_type): Likewise.
3074 * symtab.h (default_collect_symbol_completion_matches): Delete
3075 declaration.
3076
53fc67f8
AB
30772020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
3078
3079 * ada-lang.c (ada_get_gdb_completer_word_break_characters): Delete.
3080 (ada_language_data): Delete la_word_break_characters initializer.
3081 (ada_language::word_break_characters): New member function.
3082 * c-lang.c (c_language_data): Delete la_word_break_characters
3083 initializer.
3084 (cplus_language_data): Likewise.
3085 (asm_language_data): Likewise.
3086 (minimal_language_data): Likewise.
3087 * completer.c: Update global comment.
3088 (advance_to_expression_complete_word_point): Update call to
3089 word_break_characters.
3090 (complete_files_symbols): Likewise.
3091 (complete_line_internal_1): Likewise.
3092 (default_completer_handle_brkchars): Likewise.
3093 (skip_quoted_chars): Likewise.
3094 * d-lang.c (d_language_data): Delete la_word_break_characters
3095 initializer.
3096 * f-lang.c (f_word_break_characters): Delete.
3097 (f_language_data): Delete la_word_break_characters initializer.
3098 (f_language::word_break_characters): New member function.
3099 * go-lang.c (go_language_data): Delete la_word_break_characters
3100 initializer.
3101 * language.c (unknown_language_data): Likewise.
3102 (auto_language_data): Likewise.
3103 * language.h (default_word_break_characters): Move declaration to
3104 earlier in the file.
3105 (language_data): Delete la_word_break_characters field.
3106 (language_defn::word_break_characters): New member function.
3107 * m2-lang.c (m2_language_data): Delete la_word_break_characters
3108 initializer.
3109 * objc-lang.c (objc_language_data): Likewise.
3110 * opencl-lang.c (opencl_language_data): Likewise.
3111 * p-lang.c (pascal_language_data): Likewise.
3112 * rust-lang.c (rust_language_data): Likewise.
3113
c9debfb9
AB
31142020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
3115
3116 * ada-lang.c (ada_get_symbol_name_matcher): Update header comment.
3117 (ada_language_data): Delete la_get_symbol_name_matcher
3118 initializer.
3119 (language_defn::get_symbol_name_matcher_inner): New member
3120 function.
3121 * c-lang.c (c_language_data): Delete la_get_symbol_name_matcher
3122 initializer.
3123 (cplus_language_data): Likewise.
3124 (cplus_language::get_symbol_name_matcher_inner): New member
3125 function.
3126 (asm_language_data): Delete la_get_symbol_name_matcher initializer.
3127 (minimal_language_data): Likewise.
3128 * cp-support.h (cp_get_symbol_name_matcher): Update header comment.
3129 * d-lang.c (d_language_data): Delete la_get_symbol_name_matcher
3130 initializer.
3131 * dictionary.c (iter_match_first_hashed): Update call to
3132 get_symbol_name_matcher.
3133 (iter_match_next_hashed): Likewise.
3134 (iter_match_next_linear): Likewise.
3135 * dwarf2/read.c (dw2_expand_symtabs_matching_symbol): Likewise.
3136 * f-lang.c (f_language_data): Delete la_get_symbol_name_matcher
3137 initializer.
3138 (f_language::get_symbol_name_matcher_inner): New member function.
3139 * go-lang.c (go_language_data): Delete la_get_symbol_name_matcher
3140 initializer.
3141 * language.c (default_symbol_name_matcher): Update header comment,
3142 make static.
3143 (language_defn::get_symbol_name_matcher): New definition.
3144 (language_defn::get_symbol_name_matcher_inner): Likewise.
3145 (get_symbol_name_matcher): Delete.
3146 (unknown_language_data): Delete la_get_symbol_name_matcher
3147 initializer.
3148 (auto_language_data): Likewise.
3149 * language.h (language_data): Delete la_get_symbol_name_matcher
3150 field.
3151 (language_defn::get_symbol_name_matcher): New member function.
3152 (language_defn::get_symbol_name_matcher_inner): Likewise.
3153 (default_symbol_name_matcher): Delete declaration.
3154 * linespec.c (find_methods): Update call to
3155 get_symbol_name_matcher.
3156 * m2-lang.c (m2_language_data): Delete la_get_symbol_name_matcher
3157 initializer.
3158 * minsyms.c (lookup_minimal_symbol): Update call to
3159 get_symbol_name_matcher.
3160 (iterate_over_minimal_symbols): Likewise.
3161 * objc-lang.c (objc_language_data): Delete
3162 la_get_symbol_name_matcher initializer.
3163 * opencl-lang.c (opencl_language_data): Likewise.
3164 * p-lang.c (pascal_language_data): Likewise.
3165 * psymtab.c (psymbol_name_matches): Update call to
3166 get_symbol_name_matcher.
3167 * rust-lang.c (rust_language_data): Delete
3168 la_get_symbol_name_matcher initializer.
3169 * symtab.c (symbol_matches_search_name): Update call to
3170 get_symbol_name_matcher.
3171 (compare_symbol_name): Likewise.
3172
9a49ad8c
AB
31732020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
3174
3175 * ada-lang.c (ada_language_data): Delete la_compute_program
3176 initializer.
3177 * c-lang.c (c_language_data): Likewise.
3178 (c_language::compute_program): New member function.
3179 (cplus_language_data): Delete la_compute_program initializer.
3180 (cplus_language::compute_program): New member function.
3181 (asm_language_data): Delete la_compute_program initializer.
3182 (minimal_language_data): Likewise.
3183 * c-lang.h (c_compute_program): Update comment.
3184 (cplus_compute_program): Likewise.
3185 * compile/compile-c-support.c (c_compute_program): Likewise.
3186 (cplus_compute_program): Likewise.
3187 * compile/compile.c (compile_to_object): Update call to
3188 la_compute_program.
3189 * d-lang.c (d_language_data): Delete la_compute_program
3190 initializer.
3191 * f-lang.c (f_language_data): Likewise.
3192 * go-lang.c (go_language_data): Likewise.
3193 * language.c (unknown_language_data): Likewise.
3194 (auto_language_data): Likewise.
3195 * language.h (language_data): Delete la_compute_program field.
3196 (language_defn::compute_program): New member function.
3197 * m2-lang.c (m2_language_data): Delete la_compute_program
3198 initializer.
3199 * objc-lang.c (objc_language_data): Likewise.
3200 * opencl-lang.c (opencl_language_data): Likewise.
3201 * p-lang.c (pascal_language_data): Likewise.
3202 * rust-lang.c (rust_language_data): Likewise.
3203
eff93b4d
AB
32042020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
3205
3206 * ada-lang.c (ada_language_data) Delete
3207 la_class_name_from_physname initializer.
3208 * c-lang.c (c_language_data): Likewise.
3209 (cplus_language_data): Likewise.
3210 (cplus_language::class_name_from_physname): New member function.
3211 (asm_language_data): Delete la_class_name_from_physname
3212 initializer.
3213 (minimal_language_data): Likewise.
3214 * d-lang.c (d_language_data): Likewise.
3215 * dwarf2/read.c (guess_partial_die_structure_name): Update to call
3216 method on language_defn class.
3217 (guess_full_die_structure_name): Likewise.
3218 * f-lang.c (f_language_data): Delete la_class_name_from_physname
3219 initializer.
3220 * go-lang.c (go_language_data): Likewise.
3221 * language.c (language_class_name_from_physname): Delete.
3222 (unk_lang_class_name): Delete.
3223 (unknown_language_data): Delete la_class_name_from_physname
3224 initializer.
3225 (auto_language_data): Likewise.
3226 * language.h (language_data): Delete la_class_name_from_physname
3227 field.
3228 (language_defn::class_name_from_physname): New function.
3229 (language_class_name_from_physname): Delete declaration.
3230 * m2-lang.c (m2_language_data): Delete la_class_name_from_physname
3231 initializer.
3232 * objc-lang.c (objc_language_data): Likewise.
3233 * opencl-lang.c (opencl_language_data): Likewise.
3234 * p-lang.c (pascal_language_data): Likewise.
3235 * rust-lang.c (rust_language_data): Likewise.
3236
de543742
TT
32372020-06-16 Tom Tromey <tom@tromey.com>
3238
3239 * tui/tui-data.h (STATUS_NAME): New macro.
3240 * tui/tui-layout.c (tui_remove_some_windows)
3241 (initialize_known_windows, tui_register_window)
3242 (tui_layout_split::remove_windows, initialize_layouts)
3243 (tui_new_layout_command): Don't use hard-coded window names.
3244
a350efd4
TT
32452020-06-16 Tom Tromey <tom@tromey.com>
3246
3247 PR tui/25348:
3248 * tui/tui.c (tui_ensure_readline_initialized): Rename from
3249 tui_initialize_readline. Only run once. Call rl_initialize.
3250 * tui/tui.h (tui_ensure_readline_initialized): Rename from
3251 tui_initialize_readline.
3252 * tui/tui-io.c (tui_setup_io): Call
3253 tui_ensure_readline_initialized.
3254 * tui/tui-interp.c (tui_interp::init): Update.
3255
39ec0490
TT
32562020-06-16 Tom Tromey <tom@tromey.com>
3257
3258 * tui/tui-layout.c (tui_layout_split::remove_windows): Fix logic.
3259 Also preserve the status window.
3260
d2d1ea20
TT
32612020-06-16 Tom Tromey <tom@tromey.com>
3262
3263 * python/py-tui.c (tui_py_window::~tui_py_window): Handle case
3264 where m_window==nullptr.
3265
66920317
TT
32662020-06-15 Tom Tromey <tromey@adacore.com>
3267
3268 * windows-nat.c (windows_nat::handle_output_debug_string):
3269 Update.
3270 (windows_nat::handle_ms_vc_exception): Update.
3271 * target.h (target_read_string): Change API.
3272 * target.c (target_read_string): Change API.
3273 * solib-svr4.c (open_symbol_file_object, svr4_read_so_list):
3274 Update.
3275 * solib-frv.c (frv_current_sos): Update.
3276 * solib-dsbt.c (dsbt_current_sos): Update.
3277 * solib-darwin.c (darwin_current_sos): Update.
3278 * linux-thread-db.c (inferior_has_bug): Update.
3279 * expprint.c (print_subexp_standard): Update.
3280 * ada-lang.c (ada_main_name, ada_tag_name_from_tsd)
3281 (ada_exception_message_1): Update.
3282
a5d871dd
TT
32832020-06-15 Tom Tromey <tromey@adacore.com>
3284
3285 * linux-tdep.c (dump_mapping_p): Use target_read_memory.
3286
670e35fa
TT
32872020-06-15 Tom Tromey <tromey@adacore.com>
3288
3289 * valprint.c (read_string): Update comment.
3290 * target.c (MIN): Remove.
3291 (target_read_string): Rewrite.
3292
f5272a3b
TT
32932020-06-15 Tom Tromey <tromey@adacore.com>
3294
3295 * corefile.c (read_memory_string): Remove.
3296 * ada-valprint.c (ada_value_print_ptr): Update.
3297 * ada-lang.h (ada_tag_name): Change return type.
3298 * ada-lang.c (type_from_tag): Update.
3299 (ada_tag_name_from_tsd): Change return type. Use
3300 target_read_string.
3301 (ada_tag_name): Likewise.
3302 * gdbcore.h (read_memory_string): Don't declare.
3303
2c074f49
HD
33042020-06-14 Hannes Domani <ssbssa@yahoo.de>
3305
3306 * symtab.c (rbreak_command): Ignore Windows drive colon.
3307
6a17d503
SM
33082020-06-12 Simon Marchi <simon.marchi@efficios.com>
3309
3310 * NEWS: Mention removed GDBserver host support.
3311
453c733f
NC
33122020-06-12 Nelson Chu <nelson.chu@sifive.com>
3313
3314 * features/riscv/rebuild-csr-xml.sh: Updated.
3315
2b4e6a3f
TT
33162020-06-11 Tom Tromey <tom@tromey.com>
3317
3318 PR gdb/18318:
3319 * c-exp.y (lex_one_token): Handle 'p' like 'e'.
3320
4412332f
JG
33212020-06-09 Jonny Grant <jg@jguk.org>
33222020-06-09 Simon Marchi <simon.marchi@polymtl.ca>
3323
3324 * main.c (captured_main_1): Don't print new line after help.
3325 (print_gdb_help): add mailing list and IRC channel information
3326 to --help. Add new lines between items in the footer. Remove
3327 quotes around bug url.
3328
2f33032a
KS
33292020-06-11 Keith Seitz <keiths@redhat.com>
3330
3331 PR gdb/21356
3332 * gdbtypes.c (resolve_dynamic_union, resolve_dynamic_struct):
3333 Resolve typedefs for type length calculations.
3334
7ab96794
TV
33352020-06-10 Tom de Vries <tdevries@suse.de>
3336
3337 PR ada/24713
3338 * dwarf2/index-write.c (struct mapped_symtab): Add m_string_obstack.
3339 (write_psymbols): Enable .gdb_index for ada.
3340 * dwarf2/read.c: Remove comment stating .gdb_index is unsupported for
3341 ada.
3342
e5f3ece2
TV
33432020-06-10 Tom de Vries <tdevries@suse.de>
3344
3345 * dwarf2/read.c (dw2_symtab_iter_init_common): Factor out of ...
3346 (dw2_symtab_iter_init): ... here. Add variant with "offset_type
3347 namei" instead of "const char *name" argument.
3348 (dw2_map_matching_symbols): Use "offset_type namei" variant of
3349 dw2_symtab_iter_init.
3350
940da03e
SM
33512020-06-08 Simon Marchi <simon.marchi@efficios.com>
3352
3353 * gdbtypes.h (TYPE_FIELD_TYPE): Remove. Change all call sites
3354 to use type::field and field::type instead.
3355
b6cdac4b
SM
33562020-06-08 Simon Marchi <simon.marchi@efficios.com>
3357
3358 * gdbtypes.h (FIELD_TYPE): Remove. Change all call sites
3359 to use field::type instead.
3360
5d14b6e5
SM
33612020-06-08 Simon Marchi <simon.marchi@efficios.com>
3362
3363 * gdbtypes.h (struct field) <type, set_type>: New methods.
3364 Rename `type` field to...
3365 <m_type>: ... this. Change references throughout to use type or
3366 set_type methods.
3367 (FIELD_TYPE): Use field::type. Change call sites that modify
3368 the field's type to use field::set_type instead.
3369
3d967001
SM
33702020-06-08 Simon Marchi <simon.marchi@efficios.com>
3371
3372 * gdbtypes.h (TYPE_INDEX_TYPE): Remove. Change all call sites
3373 to use type::index_type instead.
3374
262abc0d
SM
33752020-06-08 Simon Marchi <simon.marchi@efficios.com>
3376
3377 * gdbtypes.h (struct type) <index_type, set_index_type>: New
3378 methods.
3379 (TYPE_INDEX_TYPE): Use type::index_type.
3380 * gdbtypes.c (create_array_type_with_stride): Likewise.
3381
82836c92
TT
33822020-06-07 Tom Tromey <tom@tromey.com>
3383
3384 * valprint.c (generic_val_print_float): Remove "embedded_offset"
3385 parameter.
3386 (generic_value_print): Update.
3387
940dace9
AB
33882020-06-05 Andrew Burgess <andrew.burgess@embecosm.com>
3389
3390 Revert commit 982a38f60b0.
3391 * python/py-tui.c (gdbpy_tui_set_title): Restore use of get.
3392
982a38f6
AB
33932020-06-05 Andrew Burgess <andrew.burgess@embecosm.com>
3394
3395 * python/py-tui.c (gdbpy_tui_set_title): Use release, not get, to
3396 avoid use after free.
3397
82f06518
TV
33982020-06-05 Tom de Vries <tdevries@suse.de>
3399
3400 * NEWS: Fix typos.
3401
f8c41851
SM
34022020-06-04 Simon Marchi <simon.marchi@efficios.com>
3403
3404 * dwarf2/read.c (dwarf2_read_gdb_index): Save partial_symtabs in
3405 the per_bfd object.
3406 (dwarf2_read_debug_names): Likewise.
3407 (dwarf2_initialize_objfile): Use partial_symtabs from per_bfd
3408 object when re-using a per_bfd object with an index.
3409
f9b5d5ea
TV
34102020-06-03 Tom de Vries <tdevries@suse.de>
3411
3412 PR symtab/26046
3413 * dwarf2/read.c (scan_partial_symbols): Recurse into DW_TAG_subprogram
3414 children for C++.
3415 (load_partial_dies): Don't skip DW_TAG_inlined_subroutine child of
3416 DW_TAG_subprogram.
3417
f6eee2d0
AB
34182020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
3419
3420 * ada-lang.c (ada_language_data): Delete skip_trampoline
3421 initializer.
3422 * c-lang.c (c_language_data): Likewise.
3423 (cplus_language_data): Likewise.
3424 (cplus_language::skip_trampoline): New member function.
3425 (asm_language_data): Delete skip_trampoline initializer.
3426 (minimal_language_data): Likewise.
3427 * d-lang.c (d_language_data): Likewise.
3428 * f-lang.c (f_language_data): Likewise.
3429 * go-lang.c (go_language_data): Likewise.
3430 * language.c (unk_lang_trampoline): Delete function.
3431 (skip_language_trampoline): Update.
3432 (unknown_language_data): Delete skip_trampoline initializer.
3433 (auto_language_data): Likewise.
3434 * language.h (language_data): Delete skip_trampoline field.
3435 (language_defn::skip_trampoline): New function.
3436 * m2-lang.c (m2_language_data): Delete skip_trampoline
3437 initializer.
3438 * objc-lang.c (objc_skip_trampoline): Delete function, move
3439 implementation to objc_language::skip_trampoline.
3440 (objc_language_data): Delete skip_trampoline initializer.
3441 (objc_language::skip_trampoline): New member function with
3442 implementation from objc_skip_trampoline.
3443 * opencl-lang.c (opencl_language_data): Delete skip_trampoline
3444 initializer.
3445 * p-lang.c (pascal_language_data): Likewise.
3446 * rust-lang.c (rust_language_data): Likewise.
3447
0a50df5d
AB
34482020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
3449
3450 * ada-lang.c (ada_language_data): Delete la_demangle initializer.
3451 (ada_language::demangle): New member function.
3452 * c-lang.c (c_language_data): Delete la_demangle initializer.
3453 (cplus_language_data): Delete la_demangle initializer.
3454 (cplus_language::demangle): New member function.
3455 (asm_language_data): Delete la_demangle initializer.
3456 (minimal_language_data): Delete la_demangle initializer.
3457 * d-lang.c (d_language_data): Delete la_demangle initializer.
3458 (d_language::demangle): New member function.
3459 * f-lang.c (f_language_data): Delete la_demangle initializer.
3460 (f_language::demangle): New member function.
3461 * go-lang.c (go_language_data): Delete la_demangle initializer.
3462 (go_language::demangle): New member function.
3463 * language.c (language_demangle): Update.
3464 (unk_lang_demangle): Delete.
3465 (unknown_language_data): Delete la_demangle initializer.
3466 (unknown_language::demangle): New member function.
3467 (auto_language_data): Delete la_demangle initializer.
3468 (auto_language::demangle): New member function.
3469 * language.h (language_data): Delete la_demangle field.
3470 (language_defn::demangle): New function.
3471 * m2-lang.c (m2_language_data): Delete la_demangle initializer.
3472 * objc-lang.c (objc_language_data): Delete la_demangle
3473 initializer.
3474 (objc_language::demangle): New member function.
3475 * opencl-lang.c (opencl_language_data): Delete la_demangle
3476 initializer.
3477 * p-lang.c (pascal_language_data): Likewise.
3478 * rust-lang.c (rust_language_data): Likewise.
3479 (rust_language::demangle): New member function.
3480
fbfb0a46
AB
34812020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
3482
3483 * ada-lang.c (ada_language_data): Delete la_print_type
3484 initializer.
3485 (ada_language::print_type): New member function.
3486 * c-lang.c (c_language_data): Delete la_print_type initializer.
3487 (c_language::print_type): New member function.
3488 (cplus_language_data): Delete la_print_type initializer.
3489 (cplus_language::print_type): New member function.
3490 (asm_language_data): Delete la_print_type initializer.
3491 (asm_language::print_type): New member function.
3492 (minimal_language_data): Delete la_print_type initializer.
3493 (minimal_language::print_type): New member function.
3494 * d-lang.c (d_language_data): Delete la_print_type initializer.
3495 (d_language::print_type): New member function.
3496 * f-lang.c (f_language_data): Delete la_print_type initializer.
3497 (f_language::print_type): New member function.
3498 * go-lang.c (go_language_data): Delete la_print_type initializer.
3499 (go_language::print_type): New member function.
3500 * language.c (unk_lang_print_type): Delete.
3501 (unknown_language_data): Delete la_print_type initializer.
3502 (unknown_language::print_type): New member function.
3503 (auto_language_data): Delete la_print_type initializer.
3504 (auto_language::print_type): New member function.
3505 * language.h (language_data): Delete la_print_type field.
3506 (language_defn::print_type): New function.
3507 (LA_PRINT_TYPE): Update.
3508 * m2-lang.c (m2_language_data): Delete la_print_type initializer.
3509 (m2_language::print_type): New member function.
3510 * objc-lang.c (objc_language_data): Delete la_print_type
3511 initializer.
3512 (objc_language::print_type): New member function.
3513 * opencl-lang.c (opencl_print_type): Delete, implementation moved
3514 to opencl_language::print_type.
3515 (opencl_language_data): Delete la_print_type initializer.
3516 (opencl_language::print_type): New member function, implementation
3517 from opencl_print_type.
3518 * p-lang.c (pascal_language_data): Delete la_print_type
3519 initializer.
3520 (pascal_language::print_type): New member function.
3521 * rust-lang.c (rust_print_type): Delete, implementation moved to
3522 rust_language::print_type.
3523 (rust_language_data): Delete la_print_type initializer.
3524 (rust_language::print_type): New member function, implementation
3525 from rust_print_type.
3526
6f827019
AB
35272020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
3528
3529 * ada-lang.c (ada_sniff_from_mangled_name): Delete function,
3530 implementation moves to...
3531 (ada_language::sniff_from_mangled_name): ...here. Update return
3532 type.
3533 (ada_language_data): Delete la_sniff_from_mangled_name
3534 initializer.
3535 * c-lang.c (c_language_data): Likewise.
3536 (cplus_language_data): Likewise.
3537 (cplus_language::sniff_from_mangled_name): New member function,
3538 implementation taken from gdb_sniff_from_mangled_name.
3539 (asm_language_data): Delete la_sniff_from_mangled_name
3540 initializer.
3541 (minimal_language_data): Likewise.
3542 * cp-support.c (gdb_sniff_from_mangled_name): Delete,
3543 implementation moves to cplus_language::sniff_from_mangled_name.
3544 * cp-support.h (gdb_sniff_from_mangled_name): Delete declaration.
3545 * d-lang.c (d_sniff_from_mangled_name): Delete, implementation
3546 moves to...
3547 (d_language::sniff_from_mangled_name): ...here.
3548 (d_language_data): Delete la_sniff_from_mangled_name initializer.
3549 * f-lang.c (f_language_data): Likewise.
3550 * go-lang.c (go_sniff_from_mangled_name): Delete, implementation
3551 moves to...
3552 (go_language::sniff_from_mangled_name): ...here.
3553 (go_language_data): Delete la_sniff_from_mangled_name initializer.
3554 * language.c (language_sniff_from_mangled_name): Delete.
3555 (unknown_language_data): Delete la_sniff_from_mangled_name
3556 initializer.
3557 (auto_language_data): Likewise.
3558 * language.h (language_data): Delete la_sniff_from_mangled_name
3559 field.
3560 (language_defn::sniff_from_mangled_name): New function.
3561 (language_sniff_from_mangled_name): Delete declaration.
3562 * m2-lang.c (m2_language_data): Delete la_sniff_from_mangled_name
3563 field.
3564 * objc-lang.c (objc_sniff_from_mangled_name): Delete,
3565 implementation moves to...
3566 (objc_language::sniff_from_mangled_name): ...here.
3567 (objc_language_data): Delete la_sniff_from_mangled_name initializer.
3568 * opencl-lang.c (opencl_language_data): Likewise.
3569 * p-lang.c (pascal_language_data): Likewise.
3570 * rust-lang.c (rust_sniff_from_mangled_name): Delete,
3571 implementation moves to...
3572 (rust_language::sniff_from_mangled_name): ...here.
3573 (rust_language_data): Delete la_sniff_from_mangled_name
3574 initializer.
3575 * symtab.c (symbol_find_demangled_name): Call
3576 sniff_from_mangled_name member function.
3577
fb8006fd
AB
35782020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
3579
3580 * ada-lang.c (ada_language_data): Delete la_search_name_hash
3581 initializer.
3582 * c-lang.c (c_language_data): Likewise.
3583 (cplus_language_data): Likewise.
3584 (cplus_language::search_name_hash): New member function.
3585 (asm_language_data): Delete la_search_name_hash initializer.
3586 (minimal_language_data): Likewise.
3587 * d-lang.c (d_language_data): Likewise.
3588 * dictionary.c (default_search_name_hash): Rename to...
3589 (language_defn::search_name_hash): ...this.
3590 * f-lang.c (f_language_data): Likewise.
3591 (f_language::search_name_hash): New member function.
3592 * go-lang.c (go_language_data): Delete la_search_name_hash
3593 initializer.
3594 * language.c (unknown_language_data): Likewise.
3595 (auto_language_data): Likewise.
3596 * language.h (struct language_data): Delete la_search_name_hash
3597 field.
3598 (language_defn::search_name_hash): Declare new member function.
3599 (default_search_name_hash): Delete declaration.
3600 * m2-lang.c (m2_language_data): Delete la_search_name_hash
3601 initializer.
3602 * objc-lang.c (objc_language_data): Likewise.
3603 * opencl-lang.c (opencl_language_data): Likewise.
3604 * p-lang.c (pascal_language_data): Likewise.
3605 * rust-lang.c (rust_language_data): Likewise.
3606 * symtab.c (search_name_hash): Update call.
3607
8e25bafe
AB
36082020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
3609
3610 * ada-lang.c (ada_language_data): Delete la_get_compile_instance
3611 initializer.
3612 * c-lang.c (class compile_instance): Declare.
3613 (c_language_data): Delete la_get_compile_instance initializer.
3614 (c_language::get_compile_instance): New member function.
3615 (cplus_language_data): Delete la_get_compile_instance initializer.
3616 (cplus_language::get_compile_instance): New member function.
3617 (asm_language_data): Delete la_get_compile_instance initializer.
3618 (minimal_language_data): Likewise.
3619 * c-lang.h (c_get_compile_context): Update comment.
3620 (cplus_get_compile_context): Update comment.
3621 * compile/compile.c (compile_to_object): Update calls, don't rely
3622 on function pointer being NULL.
3623 * d-lang.c (d_language_data): Delete la_get_compile_instance
3624 initializer.
3625 * f-lang.c (f_language_data): Likewise.
3626 * go-lang.c (go_language_data): Likewise.
3627 * language.c (unknown_language_data): Likewise.
3628 (auto_language_data): Likewise.
3629 * language.h (language_data): Delete la_get_compile_instance field.
3630 (language_defn::get_compile_instance): New member function.
3631 * m2-lang.c (m2_language_data): Delete la_get_compile_instance
3632 initializer.
3633 * objc-lang.c (objc_language_data): Likewise.
3634 * opencl-lang.c (opencl_language_data): Likewise.
3635 * p-lang.c (pascal_language_data): Likewise.
3636 * rust-lang.c (rust_language_data): Likewise.
3637
4009ee92
AB
36382020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
3639
3640 * ada-lang.c (ada_add_all_symbols): Update comment.
3641 (ada_iterate_over_symbols): Delete, move implementation to...
3642 (ada_language::iterate_over_symbols): ...here, a new member
3643 function, rewrite to use range based for loop.
3644 (ada_language_data): Delete la_iterate_over_symbols initializer.
3645 * c-lang.c (c_language_data): Likewise.
3646 (cplus_language_data): Likewise.
3647 (asm_language_data): Likewise.
3648 (minimal_language_data): Likewise.
3649 * d-lang.c (d_language_data): Likewise.
3650 * f-lang.c (f_language_data): Likewise.
3651 * go-lang.c (go_language_data): Likewise.
3652 * language.c (unknown_language_data): Likewise.
3653 (auto_language_data): Likewise.
3654 * language.h (language_data): Delete la_iterate_over_symbols field.
3655 (language_defn::iterate_over_symbols): New member function.
3656 (LA_ITERATE_OVER_SYMBOLS): Update.
3657 * linespec.c (iterate_over_all_matching_symtabs): Update.
3658 * m2-lang.c (m2_language_data): Delete la_iterate_over_symbols
3659 initializer.
3660 * objc-lang.c (objc_language_data): Likewise.
3661 * opencl-lang.c (opencl_language_data): Likewise.
3662 * p-lang.c (pascal_language_data): Likewise.
3663 * rust-lang.c (rust_language_data): Likewise.
3664
54f4ca46
AB
36652020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
3666
3667 * ada-lang.c (ada_language_data): Delete
3668 la_lookup_transparent_type initializer.
3669 * c-lang.c (c_language_data): Likewise.
3670 (cplus_language_data): Likewise.
3671 (cplus_language::lookup_transparent_type): New member function.
3672 (asm_language_data): Delete la_lookup_transparent_type
3673 initializer.
3674 (minimal_language_data): Likewise.
3675 * d-lang.c (d_language_data): Likewise.
3676 * f-lang.c (f_language_data): Likewise.
3677 * go-lang.c (go_language_data): Likewise.
3678 * language.c (unknown_language_data): Likewise.
3679 (auto_language_data): Likewise.
3680 * language.h (struct language_data): Delete
3681 la_lookup_transparent_type field.
3682 (language_defn::lookup_transparent_type): New member function.
3683 * m2-lang.c (m2_language_data): Delete la_lookup_transparent_type
3684 initializer.
3685 * objc-lang.c (objc_language_data): Likewise.
3686 * opencl-lang.c (opencl_language_data): Likewise.
3687 * p-lang.c (pascal_language_data): Likewise.
3688 * rust-lang.c (rust_language_data): Likewise.
3689 * symtab.c (symbol_matches_domain): Update call.
3690
1fb314aa
AB
36912020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
3692
3693 * ada-lang.c (ada_language_arch_info): Delete function, move
3694 implementation to...
3695 (ada_language::language_arch_info): ...here, a new member
3696 function.
3697 (ada_language_data): Delete la_language_arch_info.
3698 * c-lang.c (c_language_data): Likewise.
3699 (c_language::language_arch_info): New member function.
3700 (cplus_language_arch_info): Delete function, move
3701 implementation to...
3702 (cplus_language::language_arch_info): ...here, a new member
3703 function.
3704 (cplus_language_data): Delete la_language_arch_info.
3705 (asm_language_data): Likewise.
3706 (asm_language::language_arch_info): New member function.
3707 (minimal_language_data): Delete la_language_arch_info.
3708 (minimal_language::language_arch_info): New member function.
3709 * d-lang.c (d_language_arch_info): Delete function, move
3710 implementation to...
3711 (d_language::language_arch_info): ...here, a new member
3712 function.
3713 (d_language_data): Delete la_language_arch_info.
3714 * f-lang.c (f_language_arch_info): Delete function, move
3715 implementation to...
3716 (f_language::language_arch_info): ...here, a new member
3717 function.
3718 (f_language_data): Delete la_language_arch_info.
3719 * go-lang.c (go_language_arch_info): Delete function, move
3720 implementation to...
3721 (go_language::language_arch_info): ...here, a new member
3722 function.
3723 (go_language_data): Delete la_language_arch_info.
3724 * language.c (unknown_language_data): Likewise.
3725 (unknown_language::language_arch_info): New member function.
3726 (auto_language_data): Delete la_language_arch_info.
3727 (auto_language::language_arch_info): New member function.
3728 (language_gdbarch_post_init): Update call to
3729 la_language_arch_info.
3730 * language.h (language_data): Delete la_language_arch_info
3731 function pointer.
3732 (language_defn::language_arch_info): New function.
3733 * m2-lang.c (m2_language_arch_info): Delete function, move
3734 implementation to...
3735 (m2_language::language_arch_info): ...here, a new member
3736 function.
3737 (m2_language_data): Delete la_language_arch_info.
3738 * objc-lang.c (objc_language_arch_info): Delete function, move
3739 implementation to...
3740 (objc_language::language_arch_info): ...here, a new member
3741 function.
3742 (objc_language_data): Delete la_language_arch_info.
3743 * opencl-lang.c (opencl_language_arch_info): Delete function, move
3744 implementation to...
3745 (opencl_language::language_arch_info): ...here, a new member
3746 function.
3747 (opencl_language_data): Delete la_language_arch_info.
3748 * p-lang.c (pascal_language_arch_info): Delete function, move
3749 implementation to...
3750 (pascal_language::language_arch_info): ...here, a new member
3751 function.
3752 (pascal_language_data): Delete la_language_arch_info.
3753 * rust-lang.c (rust_language_arch_info): Delete function, move
3754 implementation to...
3755 (rust_language::language_arch_info): ...here, a new member
3756 function.
3757 (rust_language_data): Delete la_language_arch_info.
3758
48448202
AB
37592020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
3760
3761 * ada-lang.c (ada_language_data): Delete la_pass_by_reference
3762 initializer.
3763 * c-lang.c (c_language_data): Likewise.
3764 (cplus_language_data): Likewise.
3765 (cplus_language::pass_by_reference_info): New method.
3766 (asm_language_data): Delete la_pass_by_reference initializer.
3767 (minimal_language_data): Likewise.
3768 * cp-abi.c (cp_pass_by_reference): Remove use of
3769 default_pass_by_reference.
3770 * d-lang.c (d_language_data): Likewise.
3771 * f-lang.c (f_language_data): Likewise.
3772 * gnu-v3-abi.c (gnuv3_pass_by_reference): Remove use of
3773 default_pass_by_reference.
3774 * go-lang.c (go_language_data): Likewise.
3775 * language.c (language_pass_by_reference): Update.
3776 (default_pass_by_reference): Delete.
3777 (unknown_language_data): Delete la_pass_by_reference
3778 initializer.
3779 (auto_language_data): Likewise.
3780 * language.h (struct language_data): Delete la_pass_by_reference
3781 field.
3782 (language_defn::pass_by_reference_info): New member function.
3783 (default_pass_by_reference): Delete declaration.
3784 * m2-lang.c (m2_language_data): Delete la_pass_by_reference
3785 initializer.
3786 * objc-lang.c (objc_language_data): Likewise.
3787 * opencl-lang.c (opencl_language_data): Likewise.
3788 * p-lang.c (pascal_language_data): Likewise.
3789 * rust-lang.c (rust_language_data): Likewise.
3790
15e5fd35
AB
37912020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
3792
3793 * ada-lang.c (ada_read_var_value): Delete function, move
3794 implementation to...
3795 (ada_language::read_var_value): ...here.
3796 (ada_language_data): Delete la_read_var_value initializer.
3797 * c-lang.c (c_language_data): Likewise.
3798 (cplus_language_data): Likewise.
3799 (minimal_language_data): Likewise.
3800 * d-lang.c (d_language_data): Likewise.
3801 * f-lang.c (f_language_data): Likewise.
3802 * findvar.c (default_read_var_value): Rename to...
3803 (language_defn::read_var_value): ...this.
3804 * findvar.c (read_var_value): Update header comment, and change to
3805 call member function instead of function pointer.
3806 * go-lang.c (go_language_data): Likewise.
3807 * language.c (unknown_language_data): Delete la_read_var_value
3808 initializer.
3809 (auto_language_data): Likewise.
3810 * language.h (struct language_data): Delete la_read_var_value
3811 field.
3812 (language_defn::read_var_value): New member function.
3813 (default_read_var_value): Delete declaration.
3814 * m2-lang.c (m2_language_data): Delete la_read_var_value
3815 initializer.
3816 * objc-lang.c (objc_language_data): Likewise.
3817 * opencl-lang.c (opencl_language_data): Likewise.
3818 * p-lang.c (pascal_language_data): Likewise.
3819 * rust-lang.c (rust_language_data): Likewise.
3820 * value.h (default_read_var_value): Delete declaration.
3821
5bd40f2a
AB
38222020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
3823
3824 * ada-lang.c (ada_print_array_index): Delete function, move
3825 implementation to...
3826 (ada_language::print_array_index): ...here.
3827 (ada_language_data): Delete la_print_array_index initializer.
3828 * c-lang.c (c_language_data): Likewise.
3829 (cplus_language_data): Likewise.
3830 (minimal_language_data): Likewise.
3831 * d-lang.c (d_language_data): Likewise.
3832 * f-lang.c (f_language_data): Likewise.
3833 * go-lang.c (go_language_data): Likewise.
3834 * language.c (default_print_array_index): Delete function, move
3835 implementation to...
3836 (language_defn::print_array_index): ...here.
3837 (unknown_language_data): Delete la_print_array_index initializer.
3838 (auto_language_data): Likewise.
3839 * language.h (struct language_data): Delete la_print_array_index
3840 field.
3841 (language_defn::print_array_index): New member function.
3842 (LA_PRINT_ARRAY_INDEX): Update.
3843 (default_print_array_index): Delete declaration.
3844 * m2-lang.c (m2_language_data): Delete la_print_array_index
3845 initializer.
3846 * objc-lang.c (objc_language_data): Likewise.
3847 * opencl-lang.c (opencl_language_data): Likewise.
3848 * p-lang.c (pascal_language_data): Likewise.
3849 * rust-lang.c (rust_language_data): Likewise.
3850
0874fd07
AB
38512020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
3852
3853 * gdb/ada-lang.c (ada_language_defn): Convert to...
3854 (ada_language_data): ...this.
3855 (class ada_language): New class.
3856 (ada_language_defn): New static global.
3857 * gdb/c-lang.c (c_language_defn): Convert to...
3858 (c_language_data): ...this.
3859 (class c_language): New class.
3860 (c_language_defn): New static global.
3861 (cplus_language_defn): Convert to...
3862 (cplus_language_data): ...this.
3863 (class cplus_language): New class.
3864 (cplus_language_defn): New static global.
3865 (asm_language_defn): Convert to...
3866 (asm_language_data): ...this.
3867 (class asm_language): New class.
3868 (asm_language_defn): New static global.
3869 (minimal_language_defn): Convert to...
3870 (minimal_language_data): ...this.
3871 (class minimal_language): New class.
3872 (minimal_language_defn): New static global.
3873 * gdb/d-lang.c (d_language_defn): Convert to...
3874 (d_language_data): ...this.
3875 (class d_language): New class.
3876 (d_language_defn): New static global.
3877 * gdb/f-lang.c (f_language_defn): Convert to...
3878 (f_language_data): ...this.
3879 (class f_language): New class.
3880 (f_language_defn): New static global.
3881 * gdb/go-lang.c (go_language_defn): Convert to...
3882 (go_language_data): ...this.
3883 (class go_language): New class.
3884 (go_language_defn): New static global.
3885 * gdb/language.c (unknown_language_defn): Remove declaration.
3886 (current_language): Initialize to nullptr, real initialization is
3887 moved to _initialize_language.
3888 (languages): Delete global.
3889 (language_defn::languages): Define.
3890 (set_language_command): Use language_defn::languages.
3891 (set_language): Likewise.
3892 (range_error): Likewise.
3893 (language_enum): Likewise.
3894 (language_def): Likewise.
3895 (add_set_language_command): Use language_def::languages for the
3896 language list, and language_def to lookup language pointers.
3897 (skip_language_trampoline): Use language_defn::languages.
3898 (unknown_language_defn): Convert to...
3899 (unknown_language_data): ...this.
3900 (class unknown_language): New class.
3901 (unknown_language_defn): New static global.
3902 (auto_language_defn): Convert to...
3903 (auto_language_data): ...this.
3904 (class auto_language): New class.
3905 (auto_language_defn): New static global.
3906 (language_gdbarch_post_init): Use language_defn::languages.
3907 (_initialize_language): Initialize current_language.
3908 * gdb/language.h (struct language_defn): Rename to...
3909 (struct language_data): ...this.
3910 (struct language_defn): New.
3911 (auto_language_defn): Delete.
3912 (unknown_language_defn): Delete.
3913 (minimal_language_defn): Delete.
3914 (ada_language_defn): Delete.
3915 (asm_language_defn): Delete.
3916 (c_language_defn): Delete.
3917 (cplus_language_defn): Delete.
3918 (d_language_defn): Delete.
3919 (f_language_defn): Delete.
3920 (go_language_defn): Delete.
3921 (m2_language_defn): Delete.
3922 (objc_language_defn): Delete.
3923 (opencl_language_defn): Delete.
3924 (pascal_language_defn): Delete.
3925 (rust_language_defn): Delete.
3926 * gdb/m2-lang.c (m2_language_defn): Convert to...
3927 (m2_language_data): ...this.
3928 (class m2_language): New class.
3929 (m2_language_defn): New static global.
3930 * gdb/objc-lang.c (objc_language_defn): Convert to...
3931 (objc_language_data): ...this.
3932 (class objc_language): New class.
3933 (objc_language_defn): New static global.
3934 * gdb/opencl-lang.c (opencl_language_defn): Convert to...
3935 (opencl_language_data): ...this.
3936 (class opencl_language): New class.
3937 (opencl_language_defn): New static global.
3938 * gdb/p-lang.c (pascal_language_defn): Convert to...
3939 (pascal_language_data): ...this.
3940 (class pascal_language): New class.
3941 (pascal_language_defn): New static global.
3942 * gdb/rust-exp.y (rust_lex_tests): Use language_def to find
3943 language pointer, update comment format.
3944 * gdb/rust-lang.c (rust_language_defn): Convert to...
3945 (rust_language_data): ...this.
3946 (class rust_language): New class.
3947 (rust_language_defn): New static global.
3948
1313c56e
AB
39492020-06-01 Andrew Burgess <andrew.burgess@embecosm.com>
3950
3951 * dwarf2/read.c (class lnp_state_machine) <m_last_address>: New
3952 member variable.
3953 <m_stmt_at_address>: New member variable.
3954 (lnp_state_machine::record_line): Don't record some lines, update
3955 tracking of is_stmt at the same address.
3956 (lnp_state_machine::lnp_state_machine): Initialise new member
3957 variables.
3958
b7ed9f3d
ST
39592020-06-01 Samuel Thibault <samuel.thibault@ens-lyon.org>
3960
3961 * config/i386/i386gnu.mn [%_S.o %_U.o] (COMPILE.post): Add
3962 "-include gnu-nat-mig.h".
3963 * gnu-nat-mig.h: New file.
3964 * gnu-nat.c: Include "gnu-nat-mig.h".
3965 (exc_server, msg_reply_server, notify_server,
3966 process_reply_server): Remove declarations.
3967
14a8ad62
ST
39682020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
3969
3970 * gnu-nat.h (inf_validate_procs, inf_suspend, inf_set_traced,
3971 steal_exc_port, proc_get_state, inf_clear_wait, inf_cleanup,
3972 inf_startup, inf_update_suspends, inf_set_pid, inf_steal_exc_ports,
3973 inf_validate_procinfo, inf_validate_task_sc, inf_restore_exc_ports,
3974 inf_set_threads_resume_sc, inf_set_threads_resume_sc_for_signal_thread,
3975 inf_resume, inf_set_step_thread, inf_detach, inf_attach, inf_signal,
3976 inf_continue, make_proc, proc_abort, _proc_free, proc_update_sc,
3977 proc_get_exception_port, proc_set_exception_port, _proc_get_exc_port,
3978 proc_steal_exc_port, proc_restore_exc_port, proc_trace): Move functions
3979 to gnu_nat_target class.
3980 * gnu-nat.c: Likewise.
3981 (inf_update_procs, S_proc_wait_reply, set_task_pause_cmd,
3982 set_task_exc_port_cmd, set_signals_cmd, set_thread_pause_cmd,
3983 set_thread_exc_port_cmd): Call inf_validate_procs through gnu_target
3984 object.
3985 (gnu_nat_target::create_inferior, gnu_nat_target::detach): Pass `this'
3986 instead of `gnu_target'.
3987
0af5e106
ST
39882020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
3989
3990 * i386-gnu-tdep.c: Include "gdbcore.h"
3991 (gnu_sigtramp_code, i386_gnu_sc_reg_offset): New arrays.
3992 (GNU_SIGTRAMP_LEN, GNU_SIGTRAMP_TAIL,
3993 I386_GNU_SIGCONTEXT_THREAD_STATE_OFFSET): New macros
3994 (i386_gnu_sigtramp_start, i386_gnu_sigtramp_p,
3995 i386_gnu_sigcontext_addr): New functions
3996 (i386gnu_init_abi): Register i386_gnu_sigtramp_p,
3997 i386_gnu_sigcontext_addr, and i386_gnu_sc_reg_offset in the gdbarch
3998 tdep.
3999
078f2fc9
ST
40002020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
4001
4002 * gnu-nat.c (gnu_nat_target::create_inferior): Move push_target call
4003 before fork_inferior call. Avoid calling it if target_is_pushed returns
4004 true.
4005
53dff92c
ST
40062020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
4007
4008 * gnu-nat.h (gnu_target): New variable declaration.
4009 * i386-gnu-nat.c (_initialize_i386gnu_nat): Initialize
4010 gnu_target.
4011 * gnu-nat.c (gnu_target): New variable.
4012 (inf_validate_procs): Pass gnu_target to thread_change_ptid,
4013 add_thread_silent, and add_thread calls.
4014 (gnu_nat_target::create_inferior): Pass gnu_target to
4015 add_thread_silent, thread_change_ptid call.
4016 (gnu_nat_target::detach): Pass gnu_target to detach_inferior
4017 call.
4018
5a8b8627
ST
40192020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
4020
4021 * gnu-nat.c (gnu_xfer_auxv): Remove unused `res' variable.
4022 (gnu_nat_target::find_memory_regions): Remove unused
4023 `old_address' variable.
4024
366f550a
ST
40252020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
4026
4027 * gnu-nat.c: Include "gdbarch.h".
4028
f14871bf
ST
40292020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
4030
4031 * reply_mig_hack.awk (Error return): Cast function through
4032 void *, to bypass compiler function call check.
4033
c6887cfb
ST
40342020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
4035
4036 * config/i386/i386gnu.mn (%_reply_S.c): Add dependency on
4037 $(srcdir)/reply_mig_hack.awk.
4038
6930bffe
ST
40392020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
4040
4041 * gnu-nat.h (gnu_debug_flag): Set type to bool.
4042
112c22ed
JG
40432020-05-30 Jonny Grant <jg@jguk.org>
4044
4045 * configure.ac (ACX_BUGURL): change bug URL to https.
4046
f68f85b5
PA
40472020-05-30 Pedro Alves <palves@redhat.com>
4048
4049 * cp-support.c (replace_typedefs_template): New.
4050 (replace_typedefs_qualified_name): Handle
4051 DEMANGLE_COMPONENT_TEMPLATE.
4052
976ca316
SM
40532020-05-29 Simon Marchi <simon.marchi@efficios.com>
4054
4055 * dwarf2/comp-unit.c, dwarf2/comp-unit.h, dwarf2/index-cache.c,
4056 dwarf2/index-cache.h, dwarf2/index-write.c,
4057 dwarf2/index-write.h, dwarf2/line-header.c,
4058 dwarf2/line-header.h, dwarf2/macro.c, dwarf2/macro.h,
4059 dwarf2/read.c, dwarf2/read.h: Rename struct dwarf2_per_objfile
4060 variables and fields from `dwarf2_per_objfile` to just
4061 `per_objfile` throughout.
4062
989ade05
SM
40632020-05-28 Simon Marchi <simon.marchi@polymtl.ca>
4064
4065 * dwarf2/loc.c (class dwarf_evaluate_loc_desc)
4066 <push_dwarf_reg_entry_value>: Add comment.
4067
c47bae85
KB
40682020-05-28 Kevin Buettner <kevinb@redhat.com>
4069 Keith Seitz <keiths@redhat.com>
4070
4071 * python/python.c (do_start_initialization): Call PyEval_SaveThread
4072 instead of PyEval_ReleaseLock.
4073 (class gdbpy_gil): Move to earlier in file.
4074 (finalize_python): Set gdb_python_initialized.
4075 (gdbpy_check_quit_flag): Acquire GIL via gdbpy_gil. Return early
4076 when not initialized.
4077
44486dcf
SM
40782020-05-28 Simon Marchi <simon.marchi@efficios.com>
4079
4080 * dwarf2/loc.c (class dwarf_evaluate_loc_desc)
4081 <push_dwarf_reg_entry_value>: Remove assert. Override
4082 per_objfile with caller_per_objfile.
4083
f030440d
TV
40842020-05-28 Tom de Vries <tdevries@suse.de>
4085
4086 * dwarf2/read.c (dw2_symtab_iter_next, dw2_expand_marked_cus): Limit
4087 PR gold/15646 workaround to symbol kind "type".
4088
f0fbb768
TT
40892020-05-27 Tom Tromey <tromey@adacore.com>
4090
4091 * dwarf2/read.c (load_partial_dies): Use add_partial_symbol.
4092
af0b2a3e
TT
40932020-05-27 Tom Tromey <tromey@adacore.com>
4094
4095 * dwarf2/abbrev.h (struct abbrev_table) <lookup_abbrev>: Inline.
4096 Use htab_find_with_hash.
4097 <add_abbrev>: Remove "abbrev_number" parameter.
4098 * dwarf2/abbrev.c (abbrev_table::add_abbrev): Remove
4099 "abbrev_number" parameter. Use htab_find_slot_with_hash.
4100 (hash_abbrev): Add comment.
4101 (abbrev_table::lookup_abbrev): Move to header file.
4102 (abbrev_table::read): Update.
4103
7d00ffec
TT
41042020-05-27 Tom Tromey <tromey@adacore.com>
4105
4106 * dwarf2/read.c (struct partial_die_info) <name>: Declare new
4107 method.
4108 <canonical_name>: New member.
4109 <raw_name>: Rename from "name".
4110 (partial_die_info): Initialize canonical_name.
4111 (scan_partial_symbols): Check raw_name.
4112 (partial_die_parent_scope, partial_die_full_name)
4113 (add_partial_symbol, add_partial_subprogram)
4114 (add_partial_enumeration, load_partial_dies): Use "name" method.
4115 (partial_die_info::name): New method.
4116 (partial_die_info::read, guess_partial_die_structure_name)
4117 (partial_die_info::fixup): Update.
4118
697bba18
TT
41192020-05-27 Tom Tromey <tromey@adacore.com>
4120
4121 * dwarf2/attribute.h (struct attribute) <form_is_ref>: Inline.
4122 <get_ref_die_offset>: Inline.
4123 <get_ref_die_offset_complaint>: New method.
4124 * dwarf2/attribute.c (attribute::form_is_ref): Move to header.
4125 (attribute::get_ref_die_offset_complaint): Rename from
4126 get_ref_die_offset. Just issue complaint.
4127
c17ace43
HD
41282020-05-27 Hannes Domani <ssbssa@yahoo.de>
4129
4130 * cli/cli-cmds.c (shell_escape): Move exit_status_set_internal_vars.
4131
96445f0b
HD
41322020-05-27 Hannes Domani <ssbssa@yahoo.de>
4133
4134 * exec.c (exec_file_attach): Use errno value of first openp failure.
4135
ac637ec3
HD
41362020-05-27 Hannes Domani <ssbssa@yahoo.de>
4137
4138 * nat/windows-nat.c (windows_thread_info::~windows_thread_info):
4139 Don't close thread handle.
4140
17ee85fc
TT
41412020-05-27 Tom Tromey <tom@tromey.com>
4142 Simon Marchi <simon.marchi@efficios.com>
4143
4144 * objfiles.h (struct objfile) <partial_symtabs>: Now a
4145 shared_ptr.
4146 * dwarf2/read.h (struct dwarf2_per_objfile) <partial_symtabs>: New
4147 member.
4148 * dwarf2/read.c (dwarf2_per_bfd_bfd_data_key,
4149 dwarf2_per_bfd_objfile_data_key>: New globals.
4150 (dwarf2_has_info): Use shared dwarf2_per_bfd if possible.
4151 (dwarf2_get_section_info): Use get_dwarf2_per_objfile.
4152 (dwarf2_initialize_objfile): Consider cases where per_bfd can be
4153 shared.
4154 (dwarf2_build_psymtabs): Set objfile::partial_symtabs and
4155 short-circuit when sharing.
4156 (dwarf2_build_psymtabs): Set dwarf2_per_objfile::partial_symtabs.
4157 (dwarf2_psymtab::expand_psymtab): Use free_cached_comp_units.
4158
39b16f87
SM
41592020-05-27 Simon Marchi <simon.marchi@efficios.com>
4160
4161 * dwarf2/read.h (struct dwarf2_per_bfd) <line_header_hash>: Move
4162 to...
4163 (struct dwarf2_per_objfile) <line_header_hash>: ... here.
4164 * dwarf2/read.c (handle_DW_AT_stmt_list): Update.
4165
fcf23d5b
SM
41662020-05-27 Simon Marchi <simon.marchi@efficios.com>
4167
4168 * dwarf2/read.c (struct mapped_index_base) <symbol_name_at,
4169 build_name_components, find_name_components_bounds>:
4170 Add per_objfile parameter.
4171 (struct mapped_index) <symbol_name_at>: Likewise.
4172 (struct mapped_debug_names): Remove constructor.
4173 <dwarf2_per_objfile>: Remove field.
4174 <namei_to_name, symbol_name_at>: Add per_objfile parameter.
4175 (mapped_index_base::find_name_components_bounds,
4176 mapped_index_base::build_name_components,
4177 dw2_expand_symtabs_matching_symbol): Likewise.
4178 (class mock_mapped_index) <symbol_name_at>: Likewise.
4179 (check_match): Likewise.
4180 (check_find_bounds_finds): Likewise.
4181 (test_mapped_index_find_name_component_bounds): Update.
4182 (CHECK_MATCH): Update.
4183 (dw2_expand_symtabs_matching): Update.
4184 (class dw2_debug_names_iterator) <dw2_debug_names_iterator>: Add
4185 per_objfile parameter.
4186 <find_vec_in_debug_names>: Likewise.
4187 <m_per_objfile>: New field.
4188 (mapped_debug_names::namei_to_name): Add dwarf2_per_objfile
4189 parameter.
4190 (dw2_debug_names_iterator::find_vec_in_debug_names): Likewise.
4191 (dw2_debug_names_iterator::next): Update.
4192 (dw2_debug_names_lookup_symbol): Update.
4193 (dw2_debug_names_expand_symtabs_for_function): Update.
4194 (dw2_debug_names_map_matching_symbols): Update.
4195 (dw2_debug_names_expand_symtabs_matching): Update.
4196 (dwarf2_read_debug_names): Update.
4197
7188ed02
SM
41982020-05-27 Simon Marchi <simon.marchi@efficios.com>
4199
4200 * dwarf2/read.h (struct dwarf2_cu): Forward-declare.
4201 (struct dwarf2_per_bfd) <free_cached_comp_units>: Remove,
4202 move to dwarf2_per_objfile.
4203 <read_in_chain>: Remove.
4204 (struct dwarf2_per_objfile) <get_cu, set_cu, remove_cu,
4205 remove_all_cus, age_comp_units>: New methods.
4206 <m_dwarf2_cus>: New member.
4207 (struct dwarf2_per_cu_data) <cu>: Remove.
4208 * dwarf2/read.c (struct dwarf2_cu) <read_in_chain>: Remove.
4209 (age_cached_comp_units, free_one_cached_comp_unit): Remove,
4210 moved to methods of dwarf2_per_objfile.
4211 (dwarf2_clear_marks): Remove.
4212 (dwarf2_queue_item::~dwarf2_queue_item): Update.
4213 (dwarf2_per_bfd::~dwarf2_per_bfd): Don't free dwarf2_cus.
4214 (dwarf2_per_bfd::free_cached_comp_units): Remove.
4215 (dwarf2_per_objfile::remove_all_cus): New.
4216 (class free_cached_comp_units) <~free_cached_comp_units>:
4217 Update.
4218 (load_cu): Update.
4219 (dw2_do_instantiate_symtab): Adjust.
4220 (fill_in_sig_entry_from_dwo_entry): Adjust.
4221 (cutu_reader::init_tu_and_read_dwo_dies): Update.
4222 (cutu_reader::cutu_reader): Likewise.
4223 (cutu_reader::keep): Use dwarf2_per_objfile::set_cu.
4224 (cutu_reader::cutu_reader): Use dwarf2_per_objfile::get_cu.
4225 (process_psymtab_comp_unit): Use dwarf2_per_objfile::remove_cu
4226 and dwarf2_per_objfile::age_comp_units.
4227 (load_partial_comp_unit): Update.
4228 (maybe_queue_comp_unit): Use dwarf2_per_objfile::get_cu.
4229 (process_queue): Likewise.
4230 (find_partial_die): Use dwarf2_per_objfile::get_cu instead of cu
4231 backlink.
4232 (dwarf2_read_addr_index): Likewise.
4233 (follow_die_offset): Likewise.
4234 (dwarf2_fetch_die_loc_sect_off): Likewise.
4235 (dwarf2_fetch_constant_bytes): Likewise.
4236 (dwarf2_fetch_die_type_sect_off): Likewise.
4237 (follow_die_sig_1): Likewise.
4238 (load_full_type_unit): Likewise.
4239 (read_signatured_type): Likewise.
4240 (dwarf2_cu::dwarf2_cu): Don't set cu field.
4241 (dwarf2_cu::~dwarf2_cu): Remove.
4242 (dwarf2_per_objfile::get_cu): New.
4243 (dwarf2_per_objfile::set_cu): New.
4244 (age_cached_comp_units): Rename to...
4245 (dwarf2_per_objfile::age_comp_units): ... this. Adjust
4246 to std::unordered_map.
4247 (free_one_cached_comp_unit): Rename to...
4248 (dwarf2_per_objfile::remove_cu): ... this. Adjust
4249 to std::unordered_map.
4250 (dwarf2_per_objfile::~dwarf2_per_objfile): New.
4251 (dwarf2_mark_helper): Use dwarf2_per_objfile::get_cu, expect
4252 a dwarf2_per_objfile in data.
4253 (dwarf2_mark): Pass dwarf2_per_objfile in data to htab_traverse.
4254 (dwarf2_clear_marks): Remove.
4255
2e671100
SM
42562020-05-27 Simon Marchi <simon.marchi@efficios.com>
4257
4258 * dwarf2/read.c (class cutu_reader) <cutu_reader>: Replace
4259 `int use_existing_cu` parameter with `dwarf2_cu *existing_cu`.
4260 (init_tu_and_read_dwo_dies): Likewise.
4261 (cutu_reader::init_tu_and_read_dwo_dies): Likewise.
4262 (cutu_reader::cutu_reader): Likewise.
4263 (load_partial_comp_unit): Likewise.
4264 (process_psymtab_comp_unit): Update.
4265 (build_type_psymtabs_1): Update.
4266 (process_skeletonless_type_unit): Update.
4267 (load_full_comp_unit): Update.
4268 (find_partial_die): Update.
4269 (dwarf2_read_addr_index): Update.
4270 (read_signatured_type): Update.
4271
2e6a9f79
SM
42722020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
4273
4274 * dwarf2/read.h (struct dwarf2_per_cu_data) <m_header,
4275 m_header_read_in>: New fields.
4276 <get_header>: New method.
4277 * dwarf2/read.c (per_cu_header_read_in): Remove.
4278 (dwarf2_per_cu_data::get_header): New.
4279 (dwarf2_per_cu_data::addr_size): Update.
4280 (dwarf2_per_cu_data::offset_size): Update.
4281 (dwarf2_per_cu_data::ref_addr_size): Update.
4282
1b555f17
SM
42832020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
4284
4285 * dwarf2/read.c (load_cu): Return dwarf2_cu.
4286 (dw2_do_instantiate_symtab): Update.
4287 (queue_and_load_all_dwo_tus): Change parameter from
4288 dwarf2_per_cu_data to dwarf2_cu.
4289 (dwarf2_fetch_die_loc_sect_off): Update.
4290 (dwarf2_fetch_constant_bytes): Update.
4291 (dwarf2_fetch_die_type_sect_off): Update.
4292
8fc0b21d
SM
42932020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
4294
4295 * dwarf2/read.c (process_full_comp_unit,
4296 process_full_type_unit): Remove per_cu, per_objfile paramters.
4297 Add dwarf2_cu parameter.
4298 (process_queue): Update.
4299
168c9250
SM
43002020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
4301
4302 * dwarf2/read.c (create_cu_from_index_list): Replace
4303 dwarf2_per_objfile parameter with dwarf2_per_bfd.
4304 (create_cus_from_index_list): Likewise.
4305 (create_cus_from_index): Likewise.
4306 (create_signatured_type_table_from_index): Likewise.
4307 (create_cus_from_debug_names_list): Likewise.
4308 (create_cus_from_debug_names): Likewise.
4309 (dwarf2_read_gdb_index): Update.
4310 (dwarf2_read_debug_names): Update.
4311
e286671b
TT
43122020-05-27 Tom Tromey <tom@tromey.com>
4313 Simon Marchi <simon.marchi@efficios.com>
4314
4315 * dwarf2/read.h (struct dwarf2_per_objfile)
4316 <get_type_for_signatured_type, set_type_for_signatured_type>:
4317 New methods.
4318 <m_type_map>: New member.
4319 (struct signatured_type) <type>: Remove.
4320 * dwarf2/read.c
4321 (dwarf2_per_objfile::get_type_for_signatured_type,
4322 dwarf2_per_objfile::set_type_for_signatured_type): New.
4323 (get_signatured_type): Use new methods.
4324
8adb8487
TT
43252020-05-27 Tom Tromey <tom@tromey.com>
4326 Simon Marchi <simon.marchi@efficios.com>
4327
4328 * dwarf2/read.h (struct type_unit_group_unshareable): New.
4329 (struct dwarf2_per_objfile) <type_units>: New member.
4330 <get_type_unit_group_unshareable>: New method.
4331 * dwarf2/read.c (struct type_unit_group) <compunit_symtab,
4332 num_symtabs, symtabs>: Remove; move to
4333 type_unit_group_unshareable.
4334 (dwarf2_per_objfile::get_type_unit_group_unshareable): New.
4335 (process_full_type_unit, dwarf2_cu::setup_type_unit_groups)
4336 (dwarf2_cu::setup_type_unit_groups): Use type_unit_group_unshareable.
4337
127bbf4b
SM
43382020-05-27 Simon Marchi <simon.marchi@efficios.com>
4339
4340 * dwarf2/read.h (struct dwarf2_per_cu_data):
4341 <dwarf2_per_objfile>: Remove.
4342 * dwarf2/read.c (create_cu_from_index_list): Don't assign
4343 dwarf2_per_objfile.
4344 (create_signatured_type_table_from_index): Likewise.
4345 (create_signatured_type_table_from_debug_names): Likewise.
4346 (create_debug_type_hash_table): Likewise.
4347 (fill_in_sig_entry_from_dwo_entry): Likewise.
4348 (create_type_unit_group): Likewise.
4349 (read_comp_units_from_section): Likewise.
4350 (create_cus_hash_table): Likewise.
4351
f6e649dd
SM
43522020-05-27 Simon Marchi <simon.marchi@efficios.com>
4353
4354 * dwarf2/read.c (process_psymtab_comp_unit): Remove reference to
4355 dwarf2_per_cu_data::dwarf2_per_objfile.
4356 (compute_compunit_symtab_includes): Likewise.
4357 (dwarf2_cu::start_symtab): Likewise.
4358
aa66c379
SM
43592020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
4360
4361 * dwarf2/read.h (dwarf2_get_die_type): Add dwarf2_per_objfile
4362 parameter.
4363 * dwarf2/read.c (get_die_type_at_offset): Likewise.
4364 (read_namespace_alias): Update.
4365 (lookup_die_type): Update.
4366 (dwarf2_get_die_type): Add dwarf2_per_objfile parameter.
4367 * dwarf2/loc.c (class dwarf_evaluate_loc_desc) <get_base_type>:
4368 Update.
4369 (disassemble_dwarf_expression): Update.
4370
120ce1b5
SM
43712020-05-27 Simon Marchi <simon.marchi@efficios.com>
4372
4373 * dwarf2/read.h (struct dwarf2_queue_item): Add
4374 dwarf2_per_objfile parameter, assign new parameter.
4375 <per_objfile>: New field.
4376 * dwarf2/read.c (free_one_cached_comp_unit): Add
4377 dwarf2_per_objfile parameter.
4378 (queue_comp_unit): Likewise.
4379 (dw2_do_instantiate_symtab): Update.
4380 (process_psymtab_comp_unit): Update.
4381 (maybe_queue_comp_unit): Add dwarf2_per_objfile parameter.
4382 (process_imported_unit_die): Update.
4383 (queue_and_load_dwo_tu): Update.
4384 (follow_die_offset): Update.
4385 (follow_die_sig_1): Update.
4386
9f47c707
SM
43872020-05-27 Simon Marchi <simon.marchi@efficios.com>
4388
4389 * dwarf2/read.h (struct dwarf2_per_cu_data) <objfile>: Remove.
4390 * dwarf2/read.c (dwarf2_compute_name): Pass per_objfile down.
4391 (read_call_site_scope): Assign per_objfile.
4392 (dwarf2_per_cu_data::objfile): Remove.
4393 * gdbtypes.h (struct call_site) <per_objfile>: New member.
4394 * dwarf2/loc.h (dwarf2_evaluate_loc_desc): Add
4395 dwarf2_per_objfile parameter.
4396 * dwarf2/loc.c (dwarf2_evaluate_loc_desc_full): Add
4397 dwarf2_per_objfile parameter.
4398 (dwarf_expr_reg_to_entry_parameter): Add output
4399 dwarf2_per_objfile parameter.
4400 (locexpr_get_frame_base): Update.
4401 (class dwarf_evaluate_loc_desc) <get_tls_address>: Update.
4402 <push_dwarf_reg_entry_value>: Update.
4403 <call_site_to_target_addr>: Update.
4404 (dwarf_entry_parameter_to_value): Add dwarf2_per_objfile
4405 parameter.
4406 (value_of_dwarf_reg_entry): Update.
4407 (rw_pieced_value): Update.
4408 (indirect_synthetic_pointer): Update.
4409 (dwarf2_evaluate_property): Update.
4410 (dwarf2_loc_desc_get_symbol_read_needs): Add dwarf2_per_objfile
4411 parameter.
4412 (locexpr_read_variable): Update.
4413 (locexpr_get_symbol_read_needs): Update.
4414 (loclist_read_variable): Update.
4415
14095eb3
SM
44162020-05-27 Simon Marchi <simon.marchi@efficios.com>
4417
4418 * dwarf2/read.h (dwarf2_fetch_die_loc_sect_off,
4419 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
4420 dwarf2_fetch_die_type_sect_off): Add dwarf2_per_objfile
4421 parameter.
4422 * dwarf2/read.c (dwarf2_fetch_die_loc_sect_off,
4423 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
4424 dwarf2_fetch_die_type_sect_off): Add dwarf2_per_objfile
4425 parameter.
4426 * dwarf2/loc.c (indirect_synthetic_pointer, per_cu_dwarf_call,
4427 sect_variable_value): Add dwarf2_per_objfile parameter.
4428 (class dwarf_evaluate_loc_desc) <dwarf_call,
4429 dwarf_variable_value>: Update.
4430 (fetch_const_value_from_synthetic_pointer): Add
4431 dwarf2_per_objfile parameter.
4432 (fetch_const_value_from_synthetic_pointer): Update.
4433 (coerced_pieced_ref): Update.
4434 (class symbol_needs_eval_context) <dwarf_call,
4435 dwarf_variable_value>: Update.
4436 (dwarf2_compile_expr_to_ax): Update.
4437
3c3cd3d4
SM
44382020-05-27 Simon Marchi <simon.marchi@efficios.com>
4439
4440 * dwarf2/loc.c (allocate_piece_closure): Add dwarf2_per_objfile
4441 parameter.
4442 (dwarf2_evaluate_loc_desc_full): Update.
4443
82ca3f51
SM
44442020-05-27 Simon Marchi <simon.marchi@efficios.com>
4445
4446 * dwarf2/read.h (dwarf2_read_addr_index): Add dwarf2_per_objfile
4447 parameter.
4448 * dwarf2/read.c (dwarf2_read_addr_index): Likewise.
4449 * dwarf2/loc.c (decode_debug_loclists_addresses): Add
4450 dwarf2_per_objfile parameter.
4451 (decode_debug_loc_dwo_addresses): Likewise.
4452 (dwarf2_find_location_expression): Update.
4453 (class dwarf_evaluate_loc_desc) <get_addr_index>: Update.
4454 (locexpr_describe_location_piece): Add dwarf2_per_objfile
4455 parameter.
4456 (disassemble_dwarf_expression): Add dwarf2_per_objfile
4457 parameter.
4458 (locexpr_describe_location_1): Likewise.
4459 (locexpr_describe_location): Update.
4460
4b167ea1
SM
44612020-05-27 Simon Marchi <simon.marchi@efficios.com>
4462
4463 * dwarf2/read.h (struct dwarf2_per_cu_data) <text_offset>:
4464 Remove.
4465 * dwarf2/read.c (dwarf2_per_cu_data::text_offset): Remove.
4466 * dwarf2/loc.c (dwarf2_find_location_expression): Update.
4467 (dwarf2_compile_property_to_c): Update.
4468 (dwarf2_compile_expr_to_ax): Add dwarf2_per_objfile parameter,
4469 use text offset from objfile.
4470 (locexpr_tracepoint_var_ref): Update.
4471 (locexpr_generate_c_location): Update.
4472 (loclist_describe_location): Update.
4473 (loclist_tracepoint_var_ref): Update.
4474 * dwarf2/compile.h (compile_dwarf_bounds_to_c): Add
4475 dwarf2_per_objfile parameter.
4476 * dwarf2/loc2c.c (do_compile_dwarf_expr_to_c): Likewise,
4477 use text offset from objfile.
4478 (compile_dwarf_expr_to_c): Add dwarf2_per_objfile parameter.
4479
89b07335
SM
44802020-05-27 Simon Marchi <simon.marchi@efficios.com>
4481
4482 * dwarf2/expr.h (struct dwarf_expr_context)
4483 <dwarf_expr_context>: Add dwarf2_per_objfile parameter.
4484 <offset>: Remove.
4485 <per_objfile>: New member.
4486 * dwarf2/expr.c (dwarf_expr_context::dwarf_expr_context): Add
4487 dwarf2_per_objfile parameter. Don't set offset, set
4488 per_objfile.
4489 (dwarf_expr_context::execute_stack_op): Use offset from objfile.
4490 * dwarf2/frame.c (dwarf2_frame_find_fde): Return (by parameter)
4491 a dwarf2_per_objfile object instead of an offset.
4492 (class dwarf_expr_executor) <dwarf_expr_executor>: Add
4493 constructor.
4494 (execute_stack_op): Add dwarf2_per_objfile parameter, pass it
4495 to dwarf2_expr_executor constructor. Don't set offset.
4496 (dwarf2_fetch_cfa_info): Update.
4497 (struct dwarf2_frame_cache) <text_offset>: Remove.
4498 <per_objfile>: New field.
4499 (dwarf2_frame_cache): Update.
4500 (dwarf2_frame_prev_register): Update.
4501 * dwarf2/loc.c (class dwarf_evaluate_loc_desc)
4502 <dwarf_evaluate_loc_desc>: Add constructor.
4503 (dwarf2_evaluate_loc_desc_full): Update.
4504 (dwarf2_locexpr_baton_eval): Update.
4505 (class symbol_needs_eval_context) <symbol_needs_eval_context>:
4506 Add constructor.
4507 (dwarf2_loc_desc_get_symbol_read_needs): Update.
4508
293e7e51
SM
45092020-05-27 Simon Marchi <simon.marchi@efficios.com>
4510
4511 * dwarf2/read.h (struct dwarf2_per_cu_data) <addr_type,
4512 addr_sized_int_type>: Move to dwarf2_cu.
4513 <int_type>: Move to dwarf2_per_objfile.
4514 (struct dwarf2_per_objfile) <int_type>: Move here.
4515 * dwarf2/read.c (struct dwarf2_cu) <addr_type,
4516 addr_sized_int_type>: Move here.
4517 (read_func_scope): Update.
4518 (read_array_type): Update.
4519 (read_tag_string_type): Update.
4520 (attr_to_dynamic_prop): Update.
4521 (dwarf2_per_cu_data::int_type): Rename to...
4522 (dwarf2_per_objfile::int_type): ... this.
4523 (dwarf2_per_cu_data::addr_sized_int_type): Rename to...
4524 (dwarf2_cu::addr_sized_int_type): ... this.
4525 (read_subrange_type): Update.
4526 (dwarf2_per_cu_data::addr_type): Rename to...
4527 (dwarf2_cu::addr_type): ... this.
4528 (set_die_type): Update.
4529
64874a40
SM
45302020-05-27 Simon Marchi <simon.marchi@efficios.com>
4531
4532 * dwarf2/read.c (queue_and_load_all_dwo_tus): Access per_objfile
4533 data through per_cu->cu.
4534
4ab09049
SM
45352020-05-27 Simon Marchi <simon.marchi@efficios.com>
4536
4537 * dwarf2/read.c (lookup_dwo_comp_unit): Change
4538 dwarf2_per_cu_data parameter fo dwarf2_cu.
4539 (lookup_dwo_type_unit): Likewise.
4540 (read_cutu_die_from_dwo): Likewise.
4541 (lookup_dwo_unit): Likewise.
4542 (open_and_init_dwo_file): Likewise.
4543 (lookup_dwo_cutu): Likewise.
4544 (lookup_dwo_comp_unit): Likewise.
4545 (lookup_dwo_type_unit): Likewise.
4546 (cutu_reader::init_tu_and_read_dwo_dies): Update.
4547 (cutu_reader::cutu_reader): Update.
4548
47b14e86
SM
45492020-05-27 Simon Marchi <simon.marchi@efficios.com>
4550
4551 * dwarf2/read.c (process_full_comp_unit): Add dwarf2_per_objfile
4552 parameter.
4553 (process_full_type_unit): Likewise.
4554 (process_queue): Update.
4555
43182c09
SM
45562020-05-27 Simon Marchi <simon.marchi@efficios.com>
4557
4558 * dwarf2/read.c (recursively_compute_inclusions): Add
4559 dwarf2_per_objfile parameter.
4560 (compute_compunit_symtab_includes): Likewise.
4561 (process_cu_includes): Update.
4562
7aa104c4
SM
45632020-05-27 Simon Marchi <simon.marchi@efficios.com>
4564
4565 * dwarf2/read.c (create_partial_symtab): Add dwarf2_per_objfile
4566 parameter.
4567 (create_type_unit_group): Update.
4568 (process_psymtab_comp_unit_reader): Update.
4569 (build_type_psymtabs_reader): Update.
4570
e3beb21d
SM
45712020-05-27 Simon Marchi <simon.marchi@efficios.com>
4572
4573 * dwarf2/read.c (cutu_reader::keep): Access dwarf2_per_objfile
4574 object through m_this_cu->cu.
4575
d460f660
SM
45762020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
4577
4578 * dwarf2/read.c (queue_and_load_dwo_tu): Expect a dwarf2_cu as
4579 the info parameter.
4580 (queue_and_load_all_dwo_tus): Pass per_cu->cu.
4581
ab432490
SM
45822020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
4583
4584 * dwarf2/read.c (class cutu_reader) <cutu_reader>: Add
4585 per_objfile parameter.
4586 (load_full_type_unit): Add per_objfile parameter.
4587 (read_signatured_type): Likewise.
4588 (load_full_comp_unit): Likewise.
4589 (load_cu): Likewise.
4590 (dw2_do_instantiate_symtab): Likewise.
4591 (dw2_get_file_names): Likewise.
4592 (dw2_map_symtabs_matching_filename): Update.
4593 (dw_expand_symtabs_matching_file_matcher): Update.
4594 (dw2_map_symbol_filenames): Update.
4595 (process_psymtab_comp_unit): Add per_objfile parameter.
4596 (build_type_psymtabs_1): Update.
4597 (process_skeletonless_type_unit): Update.
4598 (dwarf2_build_psymtabs_hard): Update.
4599 (load_partial_comp_unit): Add per_objfile parameter.
4600 (scan_partial_symbols): Update.
4601 (load_full_comp_unit): Add per_objfile parameter.
4602 (process_imported_unit_die): Update.
4603 (create_cus_hash_table): Update.
4604 (find_partial_die): Update.
4605 (dwarf2_read_addr_index): Update.
4606 (follow_die_offset): Update.
4607 (dwarf2_fetch_die_loc_sect_off): Update.
4608 (dwarf2_fetch_constant_bytes): Update.
4609 (dwarf2_fetch_die_type_sect_off): Update.
4610 (follow_die_sig_1): Update.
4611 (load_full_type_unit): Add per_objfile parameter.
4612 (read_signatured_type): Likewise.
4613
313bad1b
SM
46142020-05-27 Simon Marchi <simon.marchi@efficios.com>
4615
4616 * dwarf2/read.c (lookup_dwo_unit): Use bfd_get_filename instead
4617 of objfile_name.
4618
c3699833
SM
46192020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
4620
4621 * dwarf2/read.h (struct dwarf2_per_bfd) <obfd>: New member.
4622 (dwarf2_get_dwz_file): Replace parameter with dwarf2_per_bfd.
4623 * dwarf2/read.c (dwarf2_per_bfd::dwarf2_per_bfd): Assign obfd
4624 field.
4625 (dwarf2_get_dwz_file): Replace parameter with dwarf2_per_bfd.
4626 (create_cus_from_index): Update.
4627 (dwarf2_read_gdb_index): Update.
4628 (create_cus_from_debug_names): Update.
4629 (dwarf2_read_debug_names): Update.
4630 (get_abbrev_section_for_cu): Update.
4631 (create_all_comp_units): Update.
4632 (read_attribute_value): Update.
4633 (get_debug_line_section): Update.
4634 * dwarf2/index-cache.c (index_cache::store): Update.
4635 * dwarf2/index-write.c (save_gdb_index_command): Update.
4636 * dwarf2/macro.c (dwarf_decode_macro_bytes): Update.
4637
1859c670
SM
46382020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
4639
4640 * dwarf2/read.h (struct dwarf2_per_cu_data) <per_bfd>: New
4641 member.
4642 * dwarf2/read.c (dwarf2_per_bfd::allocate_per_cu): Initialize
4643 dwarf2_per_cu_data::per_bfd.
4644 (dwarf2_per_bfd::allocate_signatured_type): Likewise.
4645 (create_type_unit_group): Likewise.
4646 (queue_comp_unit): Remove reference to
4647 per_cu->dwarf2_per_objfile.
4648 (maybe_queue_comp_unit): Likewise.
4649 (fill_in_sig_entry_from_dwo_entry): Assign new field.
4650 (create_cus_hash_table): Assign new field.
4651
5e22e966
SM
46522020-05-27 Simon Marchi <simon.marchi@efficios.com>
4653
4654 * dwarf2/read.c: Replace
4655 dwarf2_cu->per_cu->dwarf2_per_objfile references with
4656 dwarf2_cu->per_objfile throughout.
4657
97a1449a
SM
46582020-05-27 Simon Marchi <simon.marchi@efficios.com>
4659
4660 * dwarf2/read.c (dw2_do_instantiate_symtab): Add per_objfile
4661 parameter, don't use per_cu->dwarf2_per_objfile.
4662 (dw2_instantiate_symtab): Likewise.
4663 (dw2_find_last_source_symtab): Update.
4664 (dw2_map_expand_apply): Update.
4665 (dw2_lookup_symbol): Update.
4666 (dw2_expand_symtabs_for_function): Update.
4667 (dw2_expand_all_symtabs): Update.
4668 (dw2_expand_symtabs_with_fullname): Update.
4669 (dw2_expand_symtabs_matching_one): Add per_objfile parameter,
4670 don't use per_cu->dwarf2_per_objfile.
4671 (dw2_expand_marked_cus): Update.
4672 (dw2_find_pc_sect_compunit_symtab): Update.
4673 (dw2_debug_names_lookup_symbol): Update.
4674 (dw2_debug_names_expand_symtabs_for_function): Update.
4675 (dw2_debug_names_map_matching_symbols): Update.
4676 (dwarf2_psymtab::expand_psymtab): Update.
4677
9e021579
SM
46782020-05-27 Simon Marchi <simon.marchi@efficios.com>
4679
4680 * dwarf2/read.c (struct dwarf2_cu) <dwarf2_cu>: Add parameter.
4681 <per_objfile>: New member.
4682 (class cutu_reader) <init_tu_and_read_dwo_dies>: Add parameter.
4683 (cutu_reader::init_tu_and_read_dwo_dies): Add parameter, update
4684 call to dwarf2_cu.
4685 (cutu_reader::cutu_reader): Update.
4686 (dwarf2_cu::dwarf2_cu): Add parameter, initialize per_objfile.
4687
ae090bdb
SM
46882020-05-27 Simon Marchi <simon.marchi@efficios.com>
4689
4690 * dwarf2/read.h (struct dwarf2_per_bfd) <die_type_hash>: Move to
4691 struct dwarf2_per_objfile.
4692 (struct dwarf2_per_objfile) <die_type_hash>: Move from struct
4693 dwarf2_per_bfd.
4694 * dwarf2/read.c (set_die_type): Update.
4695 (get_die_type_at_offset): Update.
4696
af758d11
SM
46972020-05-27 Tom Tromey <tom@tromey.com>
4698 Simon Marchi <simon.marchi@efficios.com>
4699
4700 * dwarf2/read.h (struct dwarf2_per_bfd) <num_psymtabs>: New
4701 method.
4702 (struct dwarf2_per_objfile) <resize_symtabs, symtab_set_p,
4703 get_symtab, set_symtab>: New methods.
4704 <m_symtabs>: New field.
4705 (struct dwarf2_psymtab): Derive from partial_symtab.
4706 <readin_p, get_compunit_symtab>: Declare methods.
4707 * dwarf2/read.c (dwarf2_per_objfile::symtab_set_p,
4708 dwarf2_per_objfile::get_symtab, dwarf2_per_objfile::set_symtab):
4709 New methods.
4710 (struct dwarf2_per_cu_quick_data) <compunit_symtab>: Remove.
4711 (dw2_do_instantiate_symtab, dw2_instantiate_symtab)
4712 (dw2_map_expand_apply, dw2_map_symtabs_matching_filename)
4713 (dw2_symtab_iter_next, dw2_print_stats)
4714 (dw2_expand_symtabs_with_fullname)
4715 (dw2_expand_symtabs_matching_one)
4716 (dw_expand_symtabs_matching_file_matcher)
4717 (dw2_find_pc_sect_compunit_symtab, dw2_map_symbol_filenames)
4718 (dw2_debug_names_iterator::next)
4719 (dw2_debug_names_map_matching_symbols)
4720 (fill_in_sig_entry_from_dwo_entry, dwarf2_psymtab::read_symtab)
4721 (process_queue, dwarf2_psymtab::expand_psymtab): Update.
4722 (dwarf2_psymtab::readin_p, dwarf2_psymtab::get_compunit_symtab):
4723 New methods.
4724 (get_compunit_symtab, process_full_comp_unit)
4725 (process_full_type_unit): Update.
4726 (dwarf2_build_psymtabs, dwarf2_initialize_objfile, add_type_unit): Call
4727
5989a64e
SM
47282020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
4729
4730 * dwarf2/read.h (dwarf2_per_objfile): Rename to dwarf2_per_bfd,
4731 then introduce a new dwarf2_per_objfile type.
4732 <read_line_string>: Move to the new dwarf2_per_objfile type.
4733 <objfile>: Likewise.
4734 (dwarf2_per_bfd): Rename dwarf2_per_objfile to this.
4735 * dwarf2/read.c: Replace references to dwarf2_per_objfile with
4736 dwarf2_per_objfile->per_bfd.
4737 (dwarf2_per_objfile::dwarf2_per_objfile): Rename to...
4738 (dwarf2_per_bfd::dwarf2_per_bfd): ... this.
4739 (dwarf2_per_objfile::free_cached_comp_units): Rename to...
4740 (dwarf2_per_bfd::free_cached_comp_units): ... this.
4741 (dwarf2_has_info): Allocate dwarf2_per_bfd.
4742 (dwarf2_per_objfile::locate_sections): Rename to...
4743 (dwarf2_per_bfd::locate_sections): ... this.
4744 (dwarf2_per_objfile::get_cutu): Rename to...
4745 (dwarf2_per_bfd::get_cutu): ... this.
4746 (dwarf2_per_objfile::get_cu): Rename to...
4747 (dwarf2_per_bfd::get_cu): ... this.
4748 (dwarf2_per_objfile::get_tu): Rename to...
4749 (dwarf2_per_bfd::get_tu): ... this.
4750 (dwarf2_per_objfile::allocate_per_cu): Rename to...
4751 (dwarf2_per_bfd::allocate_per_cu): ... this.
4752 (dwarf2_per_objfile::allocate_signatured_type): Rename to...
4753 (dwarf2_per_bfd::allocate_signatured_type): ... this.
4754 (get_gdb_index_contents_ftype): Change parameter from
4755 dwarf2_per_objfile to dwarf2_per_bfd.
4756 * dwarf2/macro.c, dwarf2/index-write.c: Replace references to
4757 dwarf2_per_objfile with dwarf2_per_objfile->per_bfd.
4758
a50264ba
TT
47592020-05-27 Tom Tromey <tom@tromey.com>
4760 Simon Marchi <simon.marchi@efficios.com>
4761
4762 * dwarf2/loc.c (struct piece_closure) <per_objfile>: New member.
4763 (allocate_piece_closure): Set "per_objfile" member.
4764 (dwarf2_find_location_expression, dwarf2_locexpr_baton_eval)
4765 (locexpr_describe_location, loclist_describe_location): Use new
4766 member.
4767 * dwarf2/read.c (read_call_site_scope)
4768 (mark_common_block_symbol_computed, attr_to_dynamic_prop)
4769 (dwarf2_const_value_attr, dwarf2_fetch_die_loc_sect_off)
4770 (fill_in_loclist_baton, dwarf2_symbol_mark_computed,
4771 handle_data_member_location): Set per_objfile member.
4772 * dwarf2/loc.h (struct dwarf2_locexpr_baton) <per_objfile>: New
4773 member.
4774 (struct dwarf2_loclist_baton) <per_objfile>: New member.
4775
d3473f0c
TT
47762020-05-27 Tom Tromey <tom@tromey.com>
4777
4778 * dwarf2/read.h (struct dwarf2_per_objfile) <allocate_per_cu,
4779 allocate_signatured_type>: Declare new methods.
4780 <m_num_psymtabs>: New member.
4781 (struct dwarf2_per_cu_data) <index>: New member.
4782 * dwarf2/read.c (dwarf2_per_objfile::allocate_per_cu)
4783 (dwarf2_per_objfile::allocate_signatured_type): New methods.
4784 (create_cu_from_index_list): Use allocate_per_cu.
4785 (create_signatured_type_table_from_index)
4786 (create_signatured_type_table_from_debug_names)
4787 (create_debug_type_hash_table, add_type_unit)
4788 (read_comp_units_from_section): Use allocate_signatured_type.
4789
5717c425
TT
47902020-05-27 Tom Tromey <tom@tromey.com>
4791
4792 * psymtab.c (partial_map_expand_apply)
4793 (psym_find_pc_sect_compunit_symtab, psym_lookup_symbol)
4794 (psym_lookup_global_symbol_language)
4795 (psymtab_to_symtab, psym_find_last_source_symtab, dump_psymtab)
4796 (psym_print_stats, psym_expand_symtabs_for_function)
4797 (psym_map_symbol_filenames, psym_map_matching_symbols)
4798 (psym_expand_symtabs_matching)
4799 (partial_symtab::read_dependencies, maintenance_info_psymtabs)
4800 (maintenance_check_psymtabs): Update.
4801 * psympriv.h (struct partial_symtab) <readin_p,
4802 get_compunit_symtab>: Add objfile parameter.
4803 (struct standard_psymtab) <readin_p, get_compunit_symtab>:
4804 Likewise.
4805 * dwarf2/read.c (struct dwarf2_include_psymtab) <readin_p,
4806 get_compunit_symtab>: Likewise.
4807 (dwarf2_psymtab::expand_psymtab): Pass objfile argument.
4808
45940949
TT
48092020-05-27 Tom Tromey <tom@tromey.com>
4810
4811 * dwarf2/read.h (struct dwarf2_per_objfile) <obstack>: New
4812 member.
4813 * dwarf2/read.c (delete_file_name_entry): Fix comment.
4814 (create_cu_from_index_list)
4815 (create_signatured_type_table_from_index)
4816 (create_signatured_type_table_from_debug_names)
4817 (dw2_get_file_names_reader, dwarf2_initialize_objfile)
4818 (dwarf2_create_include_psymtab)
4819 (create_debug_type_hash_table, add_type_unit)
4820 (create_type_unit_group, read_comp_units_from_section)
4821 (dwarf2_compute_name, create_cus_hash_table)
4822 (create_dwp_hash_table, create_dwo_unit_in_dwp_v1)
4823 (create_dwo_unit_in_dwp_v2, open_and_init_dwp_file): Use new
4824 obstack.
4825 (dw2_get_real_path): Likewise. Change argument to
4826 dwarf2_per_objfile.
4827
f8c6d152
LM
48282020-05-27 Luis Machado <luis.machado@linaro.org>
4829
4830 PR tdep/26000
4831 * arm-tdep.c (thumb_analyze_prologue): Fix instruction matching
4832 for ldrd (immediate).
4833
e98d2e6d
PW
48342020-05-26 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4835
4836 * command.h: Add comment giving the name of class_tui.
4837 * cli/cli-cmds.c (_initialize_cli_cmds): If TUI defined,
4838 create the fake command for the help for class_tui.
4839
53a47a3e
TT
48402020-05-26 Tom Tromey <tromey@adacore.com>
4841
4842 * ada-lang.c (ada_print_array_index): Change type. Call val_atr.
4843 (ada_value_ptr_subscript): Don't call pos_atr on the lower bound.
4844 (val_atr): New function.
4845 (value_val_atr): Use it.
4846 * ada-valprint.c (print_optional_low_bound): Change low bound
4847 handling for enums.
4848 (val_print_packed_array_elements): Don't call discrete_position.
4849 * gdbtypes.c (get_discrete_bounds) <TYPE_CODE_RANGE>: Call
4850 discrete_position for enum types.
4851 * language.c (default_print_array_index): Change type.
4852 * language.h (struct language_defn) <la_print_array_index>: Add
4853 index_type parameter, change type of index_value.
4854 (LA_PRINT_ARRAY_INDEX): Add index_type parameter.
4855 (default_print_array_index): Update.
4856 * valprint.c (maybe_print_array_index): Don't call
4857 value_from_longest. Update.
4858 (value_print_array_elements): Don't call discrete_position.
4859
0bc2354b
TT
48602020-05-26 Tom Tromey <tromey@adacore.com>
4861
4862 * ada-lang.c (value_val_atr): Handle TYPE_CODE_RANGE.
4863 * gdbtypes.c (discrete_position): Handle TYPE_CODE_RANGE.
4864
1218a4bf
CDA
48652020-05-25 Cristiano De Alti <cristiano_dealti@hotmail.com>
4866
4867 PR gdb/13519
4868 * avr-tdep.c (avr_integer_to_address): Return data or code
4869 address accordingly to the second 'type' argument of the
4870 function.
4871
92651b1d
MW
48722020-05-25 Michael Weghorn <m.weghorn@posteo.de>
4873
4874 * infcmd.c, inferior.h: (construct_inferior_arguments):
4875 Moved function from here to gdbsupport/common-inferior.{h,cc}
4876
0a4f5f8c
TT
48772020-05-23 Tom Tromey <tom@tromey.com>
4878
4879 Revert commit eca1f90c:
4880 * NEWS: Remove entry for completion styling.
4881 * completer.c (_rl_completion_prefix_display_length): Move
4882 declaration later.
4883 (gdb_fnprint): Revert.
4884 (gdb_display_match_list_1): Likewise.
4885 * cli/cli-style.c (completion_prefix_style)
4886 (completion_difference_style, completion_suffix_style): Remove.
4887 (_initialize_cli_style): Revert.
4888 * cli/cli-style.h (completion_prefix_style)
4889 (completion_difference_style, completion_suffix_style): Don't
4890 declare.
4891
e08bd6c5
PA
48922020-05-24 Pedro Alves <palves@redhat.com>
4893
4894 * symtab.c (completion_list_add_name): Return boolean indication
4895 of whether the symbol matched.
4896 (completion_list_add_symbol): Don't try to remove C++ aliases if
4897 the symbol didn't match in the first place.
4898 * symtab.h (completion_list_add_name): Return bool.
4899
ceacbf6e
SM
49002020-05-23 Simon Marchi <simon.marchi@polymtl.ca>
4901
4902 * gdbtypes.h (TYPE_FIELD): Remove. Replace all uses with
4903 type::field.
4904
26f16254
JB
49052020-05-23 Joel Brobecker <brobecker@adacore.com>
4906
4907 GDB 9.2 released.
4908
eca1f90c
TT
49092020-05-23 Tom Tromey <tom@tromey.com>
4910
4911 * NEWS: Add entry for completion styling.
4912 * completer.c (_rl_completion_prefix_display_length): Move
4913 declaration earlier.
4914 (gdb_fnprint): Use completion_style.
4915 (gdb_display_match_list_1): Likewise.
4916 * cli/cli-style.c (completion_prefix_style)
4917 (completion_difference_style, completion_suffix_style): New
4918 globals.
4919 (_initialize_cli_style): Register new globals.
4920 * cli/cli-style.h (completion_prefix_style)
4921 (completion_difference_style, completion_suffix_style): Declare.
4922
51e2cfa2
PA
49232020-05-23 Pedro Alves <palves@redhat.com>
4924
4925 * utils.c: Include "gdbsupport/gdb-safe-ctype.h".
4926 (parse_escape): Use ISDIGIT instead of isdigit.
4927 (puts_debug): Use gdb_isprint instead of isprint.
4928 (fprintf_symbol_filtered): Use ISALNUM instead of isalnum.
4929 (cp_skip_operator_token, skip_ws, strncmp_iw_with_mode): Use
4930 ISSPACE instead of isspace.
4931 (strncmp_iw_with_mode): Use TOLOWER instead of tolower and ISSPACE
4932 instead of isspace.
4933 (strcmp_iw_ordered): Use ISSPACE instead of isspace.
4934 (string_to_core_addr): Use TOLOWER instead of tolower, ISXDIGIT
4935 instead of isxdigit and ISDIGIT instead of isdigit.
4936
80fc5e77
SM
49372020-05-22 Simon Marchi <simon.marchi@efficios.com>
4938
4939 * gdbtypes.h (struct type) <field>: New method.
4940 (TYPE_FIELDS): Remove, replace all uses with either type::fields
4941 or type::field.
4942
3cabb6b0
SM
49432020-05-22 Simon Marchi <simon.marchi@efficios.com>
4944
4945 * gdbtypes.h (struct type) <fields, set_fields>: New methods.
4946 (TYPE_FIELDS): Use type::fields. Change all call sites that
4947 modify the propery to use type::set_fields instead.
4948
1f704f76
SM
49492020-05-22 Simon Marchi <simon.marchi@efficios.com>
4950
4951 * gdbtypes.h (TYPE_NFIELDS): Remove. Change all cal sites to use
4952 type::num_fields instead.
4953
5e33d5f4
SM
49542020-05-22 Simon Marchi <simon.marchi@efficios.com>
4955
4956 * gdbtypes.h (struct type) <num_fields, set_num_fields>: New
4957 methods.
4958 (TYPE_NFIELDS): Use type::num_fields. Change all call sites
4959 that modify the number of fields to use type::set_num_fields
4960 instead.
4961
9392ebb3
TT
49622020-05-22 Tom Tromey <tromey@adacore.com>
4963
4964 * compile/compile-object-load.h (munmap_list_free): Don't
4965 declare.
4966
7c13f4e8
AB
49672020-05-22 Andrew Burgess <andrew.burgess@embecosm.com>
4968
4969 * annotate.c (annotate_source_line): Update return type, add call
4970 to update current symtab and line.
4971 * annotate.h (annotate_source_line): Update return type, and
4972 extend header comment.
4973 * source.c (info_line_command): Check annotation_level before
4974 calling annotate_source_line.
4975 * stack.c (print_frame_info): If calling annotate_source_line
4976 returns true, then don't print any other source line information.
4977
aa370940
SM
49782020-05-21 Simon Marchi <simon.marchi@efficios.com>
4979
4980 * lm32-tdep.c (lm32_register_reggroup_p): Fix condition.
4981
84d53fa9
SM
49822020-05-21 Simon Marchi <simon.marchi@efficios.com>
4983
4984 * coffread.c (patch_type): Remove NULL check before xfree.
4985 * corefile.c (set_gnutarget): Likewise.
4986 * cp-abi.c (set_cp_abi_as_auto_default): Likewise.
4987 * exec.c (build_section_table): Likewise.
4988 * remote.c (remote_target::pass_signals): Likewise.
4989 * utils.c (n_spaces): Likewise.
4990 * cli/cli-script.c (document_command): Likewise.
4991 * i386-windows-tdep.c (core_process_module_section): Likewise.
4992 * linux-fork.c (struct fork_info) <~fork_info>: Likewise.
4993
9d428aae
SM
49942020-05-20 Simon Marchi <simon.marchi@efficios.com>
4995
4996 * symfile.c (reread_symbols): Clear objfile's section_offsets
4997 vector and section indices, re-compute them by calling
4998 sym_offsets.
4999
250106a7
TT
50002020-05-20 Tom Tromey <tromey@adacore.com>
5001
5002 * ada-lang.c (bound_name, MAX_ADA_DIMENS): Remove.
ec16513e 5003 (desc_one_bound, desc_index_type): Compute field name.
250106a7 5004
9a0bacfb
TV
50052020-05-20 Tom de Vries <tdevries@suse.de>
5006
5007 PR symtab/25833
5008 * dwarf2/read.c (dw2_map_matching_symbols): Handle .gdb_index.
5009
7b958a48
AM
50102020-05-20 Alan Modra <amodra@gmail.com>
5011
5012 PR 25993
5013 * solib-darwin.c (darwin_bfd_open): Don't strdup pathname for
5014 bfd_set_filename.
5015 * solib-aix.c (solib_aix_bfd_open): Use std::string for name
5016 passed to bfd_set_filename.
5017 * symfile-mem.c (add_vsyscall_page): Likewise for string
5018 passed to symbol_file_add_from_memory.
5019 (symbol_file_add_from_memory): Make name param a const char* and
5020 don't strdup.
5021
c7e97679
AM
50222020-05-20 Alan Modra <amodra@gmail.com>
5023
5024 * coff-pe-read.c (read_pe_exported_syms): Use bfd_get_filename
5025 rather than accessing bfd->filename directly.
5026 * dtrace-probe.c (dtrace_static_probe_ops::get_probes): Likewise,
5027 and use bfd_section_name.
5028 * dwarf2/frame.c (decode_frame_entry): Likewise.
5029 * exec.c (exec_set_section_address): Likewise.
5030 * solib-aix.c (solib_aix_bfd_open): Likewise.
5031 * stap-probe.c (get_stap_base_address): Likewise.
5032 * symfile.c (reread_symbols): Likewise.
5033
563c591b
TT
50342020-05-19 Tom Tromey <tromey@adacore.com>
5035
5036 * sparc64-tdep.c (adi_tag_fd): Update call to target_fileio_open.
5037
f408d82c
SM
50382020-05-19 Simon Marchi <simon.marchi@efficios.com>
5039
5040 * dwarf2/read.c (quirk_rust_enum): Allocate enough fields.
5041
98c59b52
PA
50422020-05-19 Pedro Alves <palves@redhat.com>
5043
5044 * NEWS (set exec-file-mismatch): Adjust entry.
5045 * exec.c: Include "build-id.h".
5046 (validate_exec_file): Try to match build IDs instead of filenames.
5047 * gdb_bfd.c (struct gdb_bfd_open_closure): New.
5048 (gdb_bfd_iovec_fileio_open): Adjust to use gdb_bfd_open_closure
5049 and pass down 'warn_if_slow'.
5050 (gdb_bfd_open): Add 'warn_if_slow' parameter. Use
5051 gdb_bfd_open_closure to pass it down.
5052 * gdb_bfd.h (gdb_bfd_open): Add 'warn_if_slow' parameter.
5053
4111f652
PA
50542020-05-19 Pedro Alves <palves@redhat.com>
5055
5056 * gdb_bfd.c (gdb_bfd_iovec_fileio_open): Adjust.
5057 * target.c (target_fileio_open_1): Rename to target_fileio_open
5058 and make extern. Use bool.
5059 (target_fileio_open, target_fileio_open_warn_if_slow): Delete.
5060 (target_fileio_read_alloc_1): Adjust.
5061 * target.h (target_fileio_open): Add 'warn_if_slow' parameter.
5062 (target_fileio_open_warn_if_slow): Delete declaration.
5063
ad80db5b
PA
50642020-05-19 Pedro Alves <palves@redhat.com>
5065
5066 * gdb_bfd.h: (gdb_bfd_open): Default to 'fd' parameter to -1.
5067 Adjust all callers.
5068
1d6ce4d3
YS
50692020-05-19 Yoshinori Sato <ysato@users.sourceforge.jp>
5070
5071 * h8300-tdep.c (h8300_is_argument_spill): Change how we check
5072 whether disp is negative.
5073
9005fbbb
SM
50742020-05-19 Simon Marchi <simon.marchi@efficios.com>
5075
5076 * symfile.h (struct symfile_segment_data)
5077 <~symfile_segment_data>: Remove.
5078 <segment_info>: Change to std::vector.
5079 * symfile.c (default_symfile_segments): Update.
5080 * elfread.c (elf_symfile_segments): Update.
5081
68b888ff
SM
50822020-05-19 Simon Marchi <simon.marchi@efficios.com>
5083
5084 * symfile.h (struct symfile_segment_data) <struct segment>: New.
5085 <segments>: New.
5086 <segment_bases, segment_sizes>: Remove.
5087 * symfile.c (default_symfile_segments): Update.
5088 * elfread.c (elf_symfile_segments): Update.
5089 * remote.c (remote_target::get_offsets): Update.
5090 * solib-target.c (solib_target_relocate_section_addresses):
5091 Update.
5092
62982abd
SM
50932020-05-19 Simon Marchi <simon.marchi@efficios.com>
5094
5095 * symfile.h (struct symfile_segment_data): Initialize fields.
5096 <~symfile_segment_data>: Add.
5097 (symfile_segment_data_up): New.
5098 (struct sym_fns) <sym_segments>: Return a
5099 symfile_segment_data_up.
5100 (default_symfile_segments): Return a symfile_segment_data_up.
5101 (free_symfile_segment_data): Remove.
5102 (get_symfile_segment_data): Return a symfile_segment_data_up.
5103 * symfile.c (default_symfile_segments): Likewise.
5104 (get_symfile_segment_data): Likewise.
5105 (free_symfile_segment_data): Remove.
5106 (symfile_find_segment_sections): Update.
5107 * elfread.c (elf_symfile_segments): Return a
5108 symfile_segment_data_up.
5109 * remote.c (remote_target::get_offsets): Update.
5110 * solib-target.c (solib_target_relocate_section_addresses):
5111 Update.
5112 * symfile-debug.c (debug_sym_segments): Return a
5113 symfile_segment_data_up.
5114
7f204339
RO
51152020-05-18 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5116
e52a0f1b
RO
5117 PR build/25981
5118 * i386-sol2-nat.c [PR_MODEL_NATIVE != PR_MODEL_LP64] (regmap):
5119 Hardcode register numbers.
5120
7f204339
RO
5121 PR build/25981
5122 * procfs.c [(__i386__ || __x86_64__) && sun] (proc_get_LDT_entry,
5123 procfs_find_LDT_entry): Remove.
5124 * procfs.h [(__i386__ || __x86_64__) && sun] (struct ssd,
5125 procfs_find_LDT_entry): Remove.
5126 * sol-thread.c [(__i386__ || __x86_64__) && sun] (ps_lgetLDT):
5127 Remove.
5128
7f32a4d5
PA
51292020-05-17 Pedro Alves <palves@redhat.com>
5130 Andrew Burgess <andrew.burgess@embecosm.com>
5131 Keno Fischer <keno@juliacomputing.com>
5132
5133 PR gdb/25741
5134 * breakpoint.c (build_target_condition_list): Update comments.
5135 (build_target_command_list): Update comments and skip matching
5136 locations.
5137 (insert_bp_location): Move "set breakpoint auto-hw on" handling to
5138 a separate function. Simplify "set breakpoint auto-hw off"
5139 handling.
5140 (insert_breakpoints): Update comment.
5141 (tracepoint_locations_match): New parameter. For breakpoints,
5142 compare location types too, if the caller wants to.
5143 (handle_automatic_hardware_breakpoints): New functions.
5144 (bp_location_is_less_than): Also sort by location type and
5145 hardware breakpoint length.
5146 (update_global_location_list): Handle "set breakpoint auto-hw on"
5147 here.
5148 (update_breakpoint_locations): Ask breakpoint_locations_match to
5149 ignore location types.
5150
7d93a1e0
SM
51512020-05-16 Simon Marchi <simon.marchi@efficios.com>
5152
5153 * gdbtypes.h (TYPE_NAME): Remove. Change all cal sites to use
5154 type::name instead.
5155
d0e39ea2
SM
51562020-05-16 Simon Marchi <simon.marchi@efficios.com>
5157
5158 * gdbtypes.h (struct type) <name, set_name>: New methods.
5159 (TYPE_CODE): Use type::name. Change all call sites used to set
5160 the name to use type::set_name instead.
5161
2dab0c7b
TT
51622020-05-16 Tom Tromey <tom@tromey.com>
5163
5164 * top.c (quit_force): Update.
5165 * infrun.c (handle_no_resumed): Update.
5166 * top.h (all_uis): New function.
5167 (ALL_UIS): Remove.
5168
59f7bd8d
SM
51692020-05-16 Simon Marchi <simon.marchi@efficios.com>
5170
5171 * mips-linux-tdep.c (mips_linux_in_dynsym_stub): Fix condition.
5172
9bf058f0
PA
51732020-05-16 Pedro Alves <palves@redhat.com>
5174
5175 * ia64-linux-nat.c
5176 (ia64_linux_nat_target) <enable_watchpoints_in_psr(ptid_t)>:
5177 Declare method.
5178 (enable_watchpoints_in_psr): Now a method of ia64_linux_nat_target.
5179
8f86ae1a
SM
51802020-05-15 Simon Marchi <simon.marchi@efficios.com>
5181
5182 * sparc64-tdep.c (adi_stat_t): Remove typedef (leaving struct).
5183 (sparc64_adi_info): Likewise.
5184
d6bc0792
TT
51852020-05-15 Tom Tromey <tom@tromey.com>
5186
5187 * symtab.c (lookup_language_this, lookup_symbol_aux): Use
5188 block_objfile.
5189 (lookup_objfile_from_block): Remove.
5190 (lookup_symbol_in_block, lookup_symbol_in_static_block)
5191 (lookup_global_symbol): Use block_objfile.
5192 * symtab.h (lookup_objfile_from_block): Don't declare.
5193 * printcmd.c (clear_dangling_display_expressions): Use
5194 block_objfile.
5195 * parse.c (operator_check_standard): Use block_objfile.
5196
8c14c3a3
TT
51972020-05-15 Tom Tromey <tom@tromey.com>
5198
5199 * language.c (language_alloc_type_symbol): Set
5200 SYMBOL_SECTION.
5201 * symtab.c (initialize_objfile_symbol): Remove.
5202 (allocate_symbol): Remove.
5203 (allocate_template_symbol): Remove.
5204 * dwarf2/read.c (fixup_go_packaging): Use "new".
5205 (new_symbol): Use "new".
5206 (read_variable): Don't call initialize_objfile_symbol. Use
5207 "new".
5208 (read_func_scope): Use "new".
5209 * xcoffread.c (process_xcoff_symbol): Don't call
5210 initialize_objfile_symbol.
5211 (SYMBOL_DUP): Remove.
5212 * coffread.c (process_coff_symbol, coff_read_enum_type): Use
5213 "new".
5214 * symtab.h (allocate_symbol, initialize_objfile_symbol)
5215 (allocate_template_symbol): Don't declare.
5216 (struct symbol): Add copy constructor. Change defaults.
5217 * jit.c (finalize_symtab): Use "new".
5218 * ctfread.c (ctf_add_enum_member_cb, new_symbol, ctf_add_var_cb):
5219 Use "new".
5220 * stabsread.c (patch_block_stabs, define_symbol, read_enum_type)
5221 (common_block_end): Use "new".
5222 * mdebugread.c (parse_symbol): Use "new".
5223 (new_symbol): Likewise.
5224
5b4a1a8d
PW
52252020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5226
5227 * NEWS: Mention changes to help and apropos.
5228
57b4f16e
PW
52292020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5230
5231 * command.h (enum command_class): Improve comments, document
5232 that class_alias is for user-defined aliases, give the class
5233 name for each class, remove unused class_xdb.
5234 * cli/cli-decode.c (add_com_alias): Document THECLASS intended usage.
5235 * breakpoint.c (_initialize_breakpoint): Replace class_alias
5236 by a precise class.
5237 * infcmd.c (_initialize_infcmd): Likewise.
5238 * reverse.c (_initialize_reverse): Likewise.
5239 * stack.c (_initialize_stack): Likewise.
5240 * symfile.c (_initialize_symfile): Likewise.
5241 * tracepoint.c (_initialize_tracepoint): Likewise.
5242
7c05caf7
PW
52432020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5244
5245 * cli/cli-decode.c (apropos_cmd): Produce output for aliases
5246 when their aliased command is traversed.
5247 (help_cmd): Add fput_command_names_styled call to
5248 output command name and aliases when command has an alias.
5249
3b3aaacb
PW
52502020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5251
5252 * cli/cli-decode.h (help_cmd_list): Remove declaration.
5253 * cli/cli-decode.c (help_cmd_list): Declare as static,
5254 remove prefix argument, use bool for recurse arg, rework to show the aliases of
5255 a command together with the command.
5256 (fput_command_name_styled, fput_command_names_styled): New functions.
5257 (print_help_for_command): Remove prefix arg, use bool for recurse arg, use
5258 fput_command_name_styled.
5259 (help_list, help_all): Update callers to remove prefix arg and use bool recurse.
5260 * cli/cli-cmds.c (_initialize_cli_cmds): Update alias_command doc.
5261
7aa1b46f
PW
52622020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5263
5264 * cli/cli-setshow.h (cmd_show_list): Remove prefix argument.
5265 * cli/cli-decode.c (do_show_prefix_cmd): Likewise.
5266 * command.h (cmd_show_list): Likewise.
5267 * dwarf2/index-cache.c (show_index_cache_command): Likewise.
5268 * cli/cli-setshow.c (cmd_show_list): Use the prefix to produce the output. Skip aliases.
5269
89bcba74
PW
52702020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5271
5272 * unittests/command-def-selftests.c (traverse_command_structure):
5273 Verify all commands of a list have the same prefix command and
5274 that only the top cmdlist commands have a null prefix.
5275
3f4d92eb
PW
52762020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5277
5278 * cli/cli-decode.c (lookup_cmd_for_prefix): Return the aliased command
5279 as prefix, not one of its aliases.
5280 (set_cmd_prefix): Remove.
5281 (do_add_cmd): Centralize the setting of the prefix of a command, when
5282 command is defined after its full chain of prefix commands.
5283 (add_alias_cmd): Remove call to set_cmd_prefix, as do_add_cmd does it.
5284 (add_setshow_cmd_full): Likewise.
5285 (update_prefix_field_of_prefixed_commands): New function.
5286 (add_prefix_cmd): Replace non working call to set_cmd_prefix by
5287 update_prefix_field_of_prefixed_commands.
5288 * gdb/remote-fileio.c (initialize_remote_fileio): Use the real
5289 addresses of remote_set_cmdlist and remote_show_cmdlist given
5290 as argument, not the address of an argument.
5291 * gdb/remote-fileio.h (initialize_remote_fileio): Likewise.
5292 * gdb/remote.c (_initialize_remote): Likewise.
5293
0605465f
PW
52942020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5295
5296 * cli/cli-cmds.c (alias_command): Check for an existing alias
5297 using lookup_cmd_composition, as valid_command_p is too strict
5298 and forbids aliases that are the prefix of an existing alias
5299 or command.
5300 * cli/cli-decode.c (lookup_cmd_composition): Ensure a prefix
5301 command is properly recognised as a valid command.
5302
58e6ac70
PW
53032020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5304
5305 * unittests/help-doc-selftests.c: Rename to
5306 unittests/command-def-selftests.c
5307 * unittests/command-def-selftests.c (help_doc_tests): Update some
5308 comments.
5309 (command_structure_tests, traverse_command_structure): New namespace
5310 and function.
5311 (command_structure_invariants_tests): New function.
5312 (_initialize_command_def_selftests) Renamed from
5313 _initialize_help_doc_selftests, register command_structure_invariants
5314 selftest.
5315
a7b9ceb8
PW
53162020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5317
5318 * cli/cli-cmds.c (_initialize_cli_cmds): Define 'info set' as
5319 an alias of 'show'.
5320
b2188a06
JB
53212020-05-15 Joel Brobecker <brobecker@adacore.com>
5322
5323 * ada-lang.h: (ada_is_gnat_encoded_fixed_point_type): Renames
5324 ada_is_fixed_point_type. Update all callers.
5325 (gnat_encoded_fixed_point_delta): Renames ada_delta. Update
5326 all callers.
5327 * ada-lang.c (gnat_encoded_fixed_type_info): Renames fixed_type_info.
5328 Update all callers.
5329 * ada-typeprint.c (print_gnat_encoded_fixed_point_type): Renames
5330 print_fixed_point_type. Update all callers.
5331 * ada-valprint.c (ada_value_print_num): Replace call to
5332 ada_is_fixed_point_type by ada_is_gnat_encoded_fixed_point_type.
5333
a51951c2
KB
53342020-05-14 Kevin Buettner <kevinb@redhat.com>
5335
5336 * nat/linux-btrace.c (btrace_this_cpu): Add check for AMD
5337 processors.
5338 (cpu_supports_bts): Add CV_AMD case.
5339
29d6859f
LM
53402020-05-14 Laurent Morichetti <Laurent.Morichetti@amd.com>
5341 Simon Marchi <simon.marchi@efficios.com>
5342
5343 * infrun.c (stop_all_threads): Collect multiple wait events at
5344 each pass.
5345
78134374
SM
53462020-05-14 Simon Marchi <simon.marchi@efficios.com>
5347
5348 * gdbtypes.h (TYPE_CODE): Remove. Change all call sites to use
5349 type::code instead.
5350
67607e24
SM
53512020-05-14 Simon Marchi <simon.marchi@efficios.com>
5352
5353 * gdbtypes.h (struct type) <code, set_code>: New methods.
5354 (TYPE_CODE): Use type::code. Change all call sites used to set
5355 the code to use type::set_code instead.
5356
a05575d3
TBA
53572020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
5358 Tom de Vries <tdevries@suse.de>
5359 Pedro Alves <palves@redhat.com>
5360
5361 PR threads/25478
5362 * infrun.c (stop_all_threads): Do NOT ignore
5363 TARGET_WAITKIND_NO_RESUMED, TARGET_WAITKIND_THREAD_EXITED,
5364 TARGET_WAITKIND_EXITED, TARGET_WAITKIND_SIGNALLED wait statuses
5365 received.
5366 (handle_no_resumed): Remove code handling a live inferior with no
5367 threads.
5368 * remote.c (has_single_non_exited_thread): New.
5369 (remote_target::update_thread_list): Do not delete a thread if is
5370 the last thread of the process.
5371 * thread.c (thread_select): Call delete_exited_threads instead of
5372 prune_threads.
5373
6ad82919
TBA
53742020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
5375
5376 * infrun.c (stop_all_threads): Enable/disable thread events of all
5377 targets. Move a debug message denoting the end of the function
5378 into the SCOPED_EXIT block.
5379
d890404b
TBA
53802020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
5381
5382 * process-stratum-target.h: Include <set>.
5383 (all_non_exited_process_targets, switch_to_target_no_thread): New
5384 function declarations.
5385 * process-stratum-target.c (all_non_exited_process_targets)
5386 (switch_to_target_no_thread): New function implementations.
5387
293b3ebc
TBA
53882020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
5389
5390 * infrun.c (handle_inferior_event): Extract out a piece of code
5391 into...
5392 (mark_non_executing_threads): ...this new function.
5393
7ca9b62a
TBA
53942020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
5395
5396 * infrun.c (resume_1): Move a 'regcache_read_pc' call down to first
5397 use.
5398
fc75c28b
TBA
53992020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
5400
5401 * regcache.c (regcache_read_pc_protected): New function
5402 implementation that returns 0 if the PC cannot read via
5403 'regcache_read_pc'.
5404 * infrun.c (proceed): Call 'regcache_read_pc_protected'
5405 instead of 'regcache_read_pc'.
5406 (keep_going_pass_signal): Ditto.
5407
a89febbd
TT
54082020-05-13 Tom Tromey <tromey@adacore.com>
5409
5410 * ada-lang.c (align_value): Remove.
5411 (ada_template_to_fixed_record_type_1): Use align_up.
5412
f7e23710
TBA
54132020-05-13 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
5414
5415 * async-event.c: Update the copyright year.
5416 * async-event.h: Update the copyright year.
5417
02ff80c2
SM
54182020-05-12 Simon Marchi <simon.marchi@efficios.com>
5419
5420 * objfiles.h (is_addr_in_objfile,
5421 shared_objfile_contains_address_p): Return bool.
5422 * objfile.c (is_addr_in_objfile,
5423 shared_objfile_contains_address_p): Return bool.
5424
4fd6c7e8
TT
54252020-05-11 Tom Tromey <tromey@adacore.com>
5426
5427 * cli/cli-cmds.c (info_command): Restore.
5428 (_initialize_cli_cmds): Use add_prefix_command for "info".
5429 * gdb-gdb.gdb.in: Restore breakpoint on info_command.
5430
5eb68a39
TT
54312020-05-11 Tom Tromey <tromey@adacore.com>
5432
5433 * ada-lang.c (ada_value_primitive_field): Now public.
5434 * ada-lang.h (ada_value_primitive_field): Declare.
5435 * ada-valprint.c (print_field_values): Use
5436 ada_value_primitive_field for wrapper fields.
5437
7666722f
TV
54382020-05-11 Tom de Vries <tdevries@suse.de>
5439
5440 * dwarf2/index-write.c (debug_names::psymbol_tag): Handle
5441 MODULE_DOMAIN.
5442
3ee6bb11
TV
54432020-05-11 Tom de Vries <tdevries@suse.de>
5444
5445 PR symtab/25941
5446 * dwarf2/read.c (create_cus_from_debug_names_list): Initialize CUs
5447 with length 0, if not gdb-produced.
5448 (cutu_reader::cutu_reader): Set CU length to actual length if 0.
5449
43434996
TV
54502020-05-09 Tom de Vries <tdevries@suse.de>
5451
5452 PR gdb/25955
5453 * break-catch-throw.c (check_status_exception_catchpoint): Fix name
5454 calculation.
5455
2f78cffc
TT
54562020-05-09 Tom Tromey <tom@tromey.com>
5457
5458 * top.c (server_command): Now bool.
5459 * top.h (server_command): Now bool.
5460
4f7bc5ed
TT
54612020-05-08 Tom Tromey <tromey@adacore.com>
5462
5463 * dwarf2/read.c (read_lexical_block_scope): Don't process a DIE
5464 already being processed.
5465
8be4b118
TT
54662020-05-08 Tom Tromey <tom@tromey.com>
5467
5468 * printcmd.c (struct display) <next>: Remove.
5469 <display>: New constructor.
5470 <exp_string>: Now a std::string.
5471 <enabled_p>: Now a bool.
5472 (display_number): Move definition earlier.
5473 (displays): Rename from display_chain. Now a std::vector.
5474 (ALL_DISPLAYS, ALL_DISPLAYS_SAFE): Remove.
5475 (display_command): Update.
5476 (do_one_display, disable_display)
5477 (enable_disable_display_command, do_enable_disable_display):
5478 Update.
5479 (free_display): Remove.
5480 (clear_displays): Rewrite.
5481 (delete_display): Update.
5482 (map_display_numbers): Use function_view. Remove "data"
5483 parameter. Update.
5484 (do_delete_display): Remove.
5485 (undisplay_command): Update.
5486 (do_one_display, do_displays, disable_display)
5487 (info_display_command): Update.
5488 (do_enable_disable_display): Remove.
5489 (enable_disable_display_command)
5490 (clear_dangling_display_expressions): Update.
5491
94c93c35
TT
54922020-05-08 Tom Tromey <tom@tromey.com>
5493
5494 * symtab.c (set_symbol_cache_size)
5495 (maintenance_print_symbol_cache, maintenance_flush_symbol_cache)
5496 (maintenance_print_symbol_cache_statistics): Update.
5497 * symmisc.c (print_symbol_bcache_statistics)
5498 (print_objfile_statistics, maintenance_print_objfiles)
5499 (maintenance_info_symtabs, maintenance_check_symtabs)
5500 (maintenance_expand_symtabs, maintenance_info_line_tables):
5501 Update.
5502 * symfile-debug.c (set_debug_symfile): Update.
5503 * source.c (forget_cached_source_info): Update.
5504 * python/python.c (gdbpy_progspaces): Update.
5505 * psymtab.c (maintenance_info_psymtabs): Update.
5506 * probe.c (parse_probes): Update.
5507 * linespec.c (iterate_over_all_matching_symtabs)
5508 (collect_symtabs_from_filename, search_minsyms_for_name): Update.
5509 * guile/scm-progspace.c (gdbscm_progspaces): Update.
5510 * exec.c (exec_target::close): Update.
5511 * ada-tasks.c (ada_tasks_new_objfile_observer): Update.
5512 * breakpoint.c (print_one_breakpoint_location)
5513 (create_longjmp_master_breakpoint)
5514 (create_std_terminate_master_breakpoint): Update.
5515 * progspace.c (program_spaces): Now a std::vector.
5516 (maybe_new_address_space): Update.
5517 (add_program_space): Remove.
5518 (program_space::program_space): Update.
5519 (remove_program_space): Update.
5520 (number_of_program_spaces): Remove.
5521 (print_program_space, update_address_spaces): Update.
5522 * progspace.h (program_spaces): Change type.
5523 (ALL_PSPACES): Remove.
5524 (number_of_program_spaces): Don't declare.
5525 (struct program_space) <next>: Remove.
5526
a1fd1ac9
TT
55272020-05-08 Tom Tromey <tom@tromey.com>
5528
5529 * mi/mi-cmd-file.c (mi_cmd_file_list_shared_libraries): Update.
5530 * solib-svr4.c (svr4_fetch_objfile_link_map): Update.
5531 (enable_break): Update.
5532 * solib-frv.c (frv_fdpic_find_global_pointer): Update.
5533 (frv_fdpic_find_canonical_descriptor): Update.
5534 (frv_fetch_objfile_link_map): Update.
5535 * progspace.c (program_space::free_all_objfiles): Update.
5536 (program_space::solibs): New method.
5537 * progspace.h (struct program_space) <solibs>: New method.
5538 * solist.h (master_so_list): Don't declare.
5539 (ALL_SO_LIBS): Remove.
5540 * solib.h (so_list_head): Remove.
5541 (update_solib_list): Update comment.
5542 * solib.c (master_so_list): Remove.
5543 (solib_used, update_solib_list, solib_add)
5544 (info_sharedlibrary_command, clear_solib)
5545 (reload_shared_libraries_1, remove_user_added_objfile): Update.
5546
38eae084
TT
55472020-05-08 Tom Tromey <tom@tromey.com>
5548
5549 * extension.c (extension_languages): Now a std::array.
5550 (ALL_EXTENSION_LANGUAGES): Remove.
5551 (get_ext_lang_defn, get_ext_lang_of_file)
5552 (eval_ext_lang_from_control_command): Update.
5553 (finish_ext_lang_initialization)
5554 (auto_load_ext_lang_scripts_for_objfile)
5555 (ext_lang_type_printers::ext_lang_type_printers)
5556 (apply_ext_lang_type_printers)
5557 (ext_lang_type_printers::~ext_lang_type_printers)
5558 (apply_ext_lang_val_pretty_printer, apply_ext_lang_frame_filter)
5559 (preserve_ext_lang_values, get_breakpoint_cond_ext_lang)
5560 (breakpoint_ext_lang_cond_says_stop, check_quit_flag)
5561 (get_matching_xmethod_workers, ext_lang_colorize)
5562 (ext_lang_before_prompt): Update.
5563 (ALL_ENABLED_EXTENSION_LANGUAGES): Remove.
5564
596dc4ad
TT
55652020-05-08 Tom Tromey <tom@tromey.com>
5566
5567 * symtab.h (class demangle_result_storage) <set_malloc_ptr>: New
5568 overload.
5569 <swap_string, m_string>: Remove.
5570 * symtab.c (demangle_for_lookup, completion_list_add_symbol):
5571 Update.
5572 * stabsread.c (define_symbol, read_type): Update.
5573 * linespec.c (find_linespec_symbols): Update.
5574 * gnu-v3-abi.c (gnuv3_get_typeid): Update.
5575 * dwarf2/read.c (dwarf2_canonicalize_name): Update.
5576 * dbxread.c (read_dbx_symtab): Update.
5577 * cp-support.h (cp_canonicalize_string_full)
5578 (cp_canonicalize_string, cp_canonicalize_string_no_typedefs):
5579 Return unique_xmalloc_ptr.
5580 * cp-support.c (inspect_type): Update.
5581 (cp_canonicalize_string_full): Return unique_xmalloc_ptr.
5582 (cp_canonicalize_string_no_typedefs, cp_canonicalize_string):
5583 Likewise.
5584 * c-typeprint.c (print_name_maybe_canonical): Update.
5585 * break-catch-throw.c (check_status_exception_catchpoint):
5586 Update.
5587
bf4cb9be
TV
55882020-05-08 Tom de Vries <tdevries@suse.de>
5589
5590 * infrun.c (follow_fork): Copy current_line and current_symtab to
5591 child thread.
5592
a1b68f28
SM
55932020-05-07 Simon Marchi <simon.marchi@efficios.com>
5594
5595 * async-event.c (struct async_signal_handler, struct
5596 async_event_handler): Reformat, remove typedef.
5597
98d48915
SM
55982020-05-07 Simon Marchi <simon.marchi@efficios.com>
5599
5600 * gdbtypes.h (TYPE_DYN_PROP_LIST): Remove. Update all users
5601 access thistype->main_type->dyn_prop_list directly.
5602
7aa91313
SM
56032020-05-07 Simon Marchi <simon.marchi@efficios.com>
5604
5605 * gdbtypes.h (struct type) <remove_dyn_prop>: New method.
5606 (remove_dyn_prop): Remove. Update all users to use
5607 type::remove_dyn_prop.
5608 * gdbtypes.c (remove_dyn_prop): Rename to...
5609 (type::remove_dyn_prop): ... this.
5610
5c54719c
SM
56112020-05-07 Simon Marchi via Gdb-patches <gdb-patches@sourceware.org>
5612
5613 * gdbtypes.h (struct type) <add_dyn_prop>: New method.
5614 (add_dyn_prop): Remove. Update all users to use
5615 type::add_dyn_prop.
5616 * gdbtypes.c (add_dyn_prop): Rename to...
5617 (type::add_dyn_prop): ... this.
5618
24e99c6c
SM
56192020-05-07 Simon Marchi <simon.marchi@efficios.com>
5620
5621 * gdbtypes.h (struct type) <get_dyn_prop>: New method.
5622 (get_dyn_prop): Remove. Update all users to use
5623 type::dyn_prop.
5624 * gdbtypes.c (get_dyn_prop): Rename to...
5625 (type::dyn_prop): ... this.
5626
0d4bf016
SM
56272020-05-06 Simon Marchi <simon.marchi@efficios.com>
5628
5629 * gdbtypes.h (struct main_type) <flag_static>: Remove.
5630
ac4a4f1c
SM
56312020-05-06 Simon Marchi <simon.marchi@efficios.com>
5632
5633 * amd64-tdep.c (amd64_analyze_prologue): Check for `endbr64`
5634 instruction, skip it if it's there.
5635
a3bbacc1
SM
56362020-05-05 Simon Marchi <simon.marchi@efficios.com>
5637
5638 * gdbtypes.h (struct main_type) <flag_incomplete>: Remove.
5639
c3236f84
SM
56402020-05-04 Simon Marchi <simon.marchi@efficios.com>
5641
5642 * gdbtypes.h (TYPE_INCOMPLETE): Remove.
5643 * gdbtypes.c (recursive_dump_type): Remove use of
5644 TYPE_INCOMPLETE.
5645
3b6acaee
TT
56462020-05-03 Tom Tromey <tom@tromey.com>
5647
5648 * breakpoint.c (catch_command, tcatch_command): Remove.
5649 (_initialize_breakpoint): Use add_basic_prefix_cmd,
5650 add_show_prefix_cmd.
5651 (set_breakpoint_cmd, show_breakpoint_cmd): Remove
5652 * utils.c (set_internal_problem_cmd, show_internal_problem_cmd):
5653 Remove.
5654 (add_internal_problem_command): Use add_basic_prefix_cmd,
5655 add_show_prefix_cmd.
5656 * mips-tdep.c (set_mipsfpu_command): Remove.
5657 (_initialize_mips_tdep): Use add_basic_prefix_cmd.
5658 * dwarf2/index-cache.c (set_index_cache_command): Remove.
5659 (_initialize_index_cache): Use add_basic_prefix_cmd.
5660 * memattr.c (dummy_cmd): Remove.
5661 (_initialize_mem): Use add_basic_prefix_cmd, add_show_prefix_cmd.
5662 * tui/tui-win.c (set_tui_cmd, show_tui_cmd): Remove.
5663 (_initialize_tui_win): Use add_basic_prefix_cmd,
5664 add_show_prefix_cmd.
5665 * cli/cli-logging.c (set_logging_command): Remove.
5666 (_initialize_cli_logging): Use add_basic_prefix_cmd,
5667 add_show_prefix_cmd.
5668 (show_logging_command): Remove.
5669 * target.c (target_command): Remove.
5670 (add_target): Use add_basic_prefix_cmd.
5671
a51119cd
HD
56722020-05-02 Hannes Domani <ssbssa@yahoo.de>
5673
5674 * gdbtypes.h (enum dynamic_prop_node_kind): Fix typo.
5675
652fc23a 56762020-05-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6a6ea76a 5677
652fc23a
PW
5678 * gdb-gdb.gdb-in: Remove breakpoint on disappeared function
5679 info_command.
5680
117539e6
KR
56812020-04-30 Kamil Rytarowski <n54@gmx.com>
5682
5683 * nbsd-nat.c (nbsd_enable_proc_events)
5684 (nbsd_nat_target::post_startup_inferior): Add.
5685 (nbsd_nat_target::post_attach): Call `nbsd_enable_proc_events'.
5686 (nbsd_nat_target::update_thread_list): Rewrite.
5687 (nbsd_nat_target::wait): Handle "PTRACE_LWP_EXIT" and
5688 "PTRACE_LWP_CREATE".
5689 * nbsd-nat.h (nbsd_nat_target::post_startup_inferior): Add.
5690
102e38eb 56912020-04-30 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6a6ea76a 5692
102e38eb
PW
5693 * stack.c (_initialize_stack): Remove duplicated creation
5694 of "frame" command and "f" alias.
5695
ee9d1e5f
HD
56962020-04-30 Hannes Domani <ssbssa@yahoo.de>
5697
5698 PR gdb/18706
5699 * gdbtypes.c (check_typedef): Calculate size of array of
5700 stubbed type.
5701
627c7fb8
HD
57022020-04-30 Hannes Domani <ssbssa@yahoo.de>
5703
5704 PR gdb/15559
5705 * i386-tdep.c (i386_push_dummy_call): Call
5706 i386_thiscall_push_dummy_call.
5707 (i386_thiscall_push_dummy_call): New function.
5708 * i386-tdep.h (i386_thiscall_push_dummy_call): Declare.
5709 * i386-windows-tdep.c (i386_windows_push_dummy_call): New function.
5710 (i386_windows_init_abi): Call set_gdbarch_push_dummy_call.
5711
ffc2844e
SM
57122020-04-29 Simon Marchi <simon.marchi@efficios.com>
5713
5714 * gdbarch.sh (do_read): Add shellcheck disable directive for
5715 warning SC2162.
5716
1207375d
SM
57172020-04-29 Simon Marchi <simon.marchi@efficios.com>
5718
5719 * gdbarch.sh: Use ${foo:-} where shellcheck would report a
5720 "referenced but not assigned" warning.
5721
9fdb2916
SM
57222020-04-29 Simon Marchi <simon.marchi@efficios.com>
5723
5724 * gdbarch.sh: Remove code that sets fallbackdefault.
5725
759cea5e
SM
57262020-04-29 Simon Marchi <simon.marchi@efficios.com>
5727
5728 * gdbarch.sh: Use shell operators && and || instead of
5729 -a and -o.
5730
cb02ab24
SM
57312020-04-29 Simon Marchi <simon.marchi@efficios.com>
5732
5733 * gdbarch.sh: Use $(...) instead of `...`.
5734
a6fc5ffc
SM
57352020-04-29 Simon Marchi <simon.marchi@efficios.com>
5736
5737 * gdbarch.sh: Use double quotes around variables.
5738
8d113d13
SM
57392020-04-29 Simon Marchi <simon.marchi@efficios.com>
5740
5741 * gdbarch.sh: Use %s with printf, instead of variables in the
5742 format string.
5743
ed6acedd
TT
57442020-04-29 Tom Tromey <tromey@adacore.com>
5745
5746 PR ada/25875:
5747 * dwarf2/read.c (update_enumeration_type_from_children): Compute
5748 type fields here.
5749 (read_enumeration_type): Call
5750 update_enumeration_type_from_children later. Update comments.
5751 (process_enumeration_scope): Don't create type fields.
5752
b68b1b58
KR
57532020-04-29 Kamil Rytarowski <n54@gmx.com>
5754
5755 * nbsd-tdep.c: Include "xml-syscall.h".
5756 (nbsd_init_abi): Call `set_xml_syscall_file_name'.
5757
f94b2e03
KR
57582020-04-29 Kamil Rytarowski <n54@gmx.com>
5759
5760 * nbsd-nat.c: Include "sys/wait.h".
5761 (nbsd_resume, nbsd_nat_target::resume, nbsd_wait)
5762 (nbsd_nat_target::wait, nbsd_nat_target::insert_exec_catchpoint)
5763 (nbsd_nat_target::remove_exec_catchpoint)
5764 (nbsd_nat_target::set_syscall_catchpoint): Add.
5765 * nbsd-nat.h (nbsd_nat_target::resume, nbsd_nat_target::wait)
5766 (nbsd_nat_target::insert_exec_catchpoint)
5767 (nbsd_nat_target::remove_exec_catchpoint)
5768 (nbsd_nat_target::set_syscall_catchpoint): Add.
5769 * nbsd-tdep.c (nbsd_get_syscall_number): Add.
5770 (nbsd_init_abi): Call `set_gdbarch_get_syscall_number' and pass
5771 `nbsd_get_syscall_number'.
5772
fc49bc72
TT
57732020-04-29 Tom Tromey <tom@tromey.com>
5774
5775 * stack.c (print_block_frame_labels): Remove.
5776
d642b692
HD
57772020-04-29 Hannes Domani <ssbssa@yahoo.de>
5778
5779 PR gdb/17320
5780 * ada-valprint.c (val_print_packed_array_elements): Move array
5781 end bracket to new line.
5782 (ada_val_print_string): Remove extra spaces before first array
5783 element.
5784 * c-valprint.c (c_value_print_array): Likewise.
5785 * m2-valprint.c (m2_print_array_contents): Likewise.
5786 (m2_value_print_inner): Likewise.
5787 * p-valprint.c (pascal_value_print_inner): Likewise.
5788 * valprint.c (generic_val_print_array): Likewise.
5789 (value_print_array_elements): Move first array element and array
5790 end bracket to new line.
5791
ea90f227
TV
57922020-04-29 Tom de Vries <tdevries@suse.de>
5793
5794 PR symtab/25889
5795 * linespec.c (find_method): Fix ix calculation.
5796
4498ef4f
KR
57972020-04-28 Kamil Rytarowski <n54@gmx.com>
5798
5799 * syscalls/update-netbsd.sh: New file.
5800 * syscalls/netbsd.xml: Regenerate.
5801 * data-directory/Makefile.in: Register `netbsd.xml' in
5802 `SYSCALLS_FILES'.
5803
a55e30b5
SM
58042020-04-28 Simon Marchi <simon.marchi@efficios.com>
5805
5806 * syscalls/update-freebsd.sh: Add double quotes.
5807
2b2fbab8
TT
58082020-04-28 Tom Tromey <tom@tromey.com>
5809
5810 * NEWS: Update.
5811 * python/py-cmd.c (gdbpy_initialize_commands): Add COMMAND_TUI.
5812 (cmdpy_init): Allow class_tui.
5813
a65189c9
TV
58142020-04-28 Mark Williams <mark@myosotissp.com>
5815
5816 PR gdb/24480
5817 * dwarf2read.c: Add missing assingments to list_in_scope when
5818 start_symtab was already called.
5819
1b95cdb7
SM
58202020-04-28 Simon Marchi <simon.marchi@efficios.com>
5821
5822 PR gdb/25881
5823 * dwarf2/read.c (offset_map_type): Use
5824 gdb:hash_enum<sect_offset> as hash function.
5825
15cd93d0
TV
58262020-04-28 Tom de Vries <tdevries@suse.de>
5827
5828 * dwarf2/read.c (process_structure_scope): Add symbol for struct decl
5829 with DW_AT_signature.
5830
1eb39914
SM
58312020-04-27 Simon Marchi <simon.marchi@efficios.com>
5832
5833 * configure.ac: Remove check for fs_base/gs_base in
5834 user_regs_struct.
5835 * configure: Re-generate.
5836 * config.in: Re-generate.
5837 * amd64-nat.c (amd64_native_gregset_reg_offset): Adjust.
5838 * amd64-linux-nat.c (amd64_linux_nat_target::fetch_registers,
5839 amd64_linux_nat_target::store_registers, ps_get_thread_area, ): Adjust.
5840
991a3e2e
LM
58412020-04-27 Luis Machado <luis.machado@linaro.org>
5842
5843 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first): Handle
5844 problematic inline frame unwinding situation.
5845 * frame.c (frame_id_computed_p): New function.
5846 * frame.h (frame_id_computed_p): New prototype.
5847
361ba0e8
TT
58482020-04-26 Tom Tromey <tom@tromey.com>
5849
5850 * command.h (enum command_class) <class_pseudo>: Remove.
5851
bc3609fd
PW
58522020-04-26 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5853
5854 * cli/cli-decode.c (lookup_cmd_composition): Fix comments
5855 and whitespace.
5856
b9771db7
KR
58572020-04-25 Kamil Rytarowski <n54@gmx.com>
5858
ec16513e
SM
5859 * inf-ptrace.c (inf_ptrace_target::wait): Remove
5860 `PT_GET_PROCESS_STATE' block.
b9771db7 5861
7151c1af
TT
58622020-04-24 Tom Tromey <tom@tromey.com>
5863
5864 * symtab.h (symbol_get_demangled_name): Don't declare.
5865 * symtab.c (symbol_get_demangled_name): Remove.
5866 (general_symbol_info::natural_name)
5867 (general_symbol_info::demangled_name): Update.
5868
906bb4c5
TT
58692020-04-24 Tom Tromey <tom@tromey.com>
5870
5871 PR rust/25025:
5872 * dwarf2/read.c (dwarf2_physname): Do not demangle for Rust.
5873
bcfe6157
TT
58742020-04-24 Tom Tromey <tom@tromey.com>
5875
5876 PR symtab/12707:
5877 * dwarf2/read.c (add_partial_symbol): Use the linkage name if it
5878 exists.
5879 (new_symbol): Likewise.
5880 * compile/compile-object-load.c (get_out_value_type): Use
5881 symbol_matches_search_name.
5882
f049a313
TT
58832020-04-24 Tom Tromey <tom@tromey.com>
5884
5885 * dwarf2/read.c (add_partial_symbol): Do not call
5886 compute_and_set_names.
5887
76e288d1
TT
58882020-04-24 Tom Tromey <tom@tromey.com>
5889
5890 * dwarf2/read.c (add_partial_symbol): Use new add_psymbol_to_list
5891 overload.
5892
2467f4f6
TT
58932020-04-24 Tom Tromey <tom@tromey.com>
5894
5895 * psymtab.c (add_psymbol_to_bcache): Simplify calling convention.
5896 (add_psymbol_to_list): New overload. Make old overload call new
5897 one.
5898 * psympriv.h (add_psymbol_to_list): New overload.
5899
e61108c9
TT
59002020-04-24 Tom Tromey <tom@tromey.com>
5901
5902 * dwarf2/read.c (partial_die_info::read) <case
5903 DW_AT_linkage_name>: Use value_as_string.
5904 (dwarf2_string_attr): Use value_as_string.
5905 * dwarf2/attribute.h (struct attribute) <value_as_string>: Declare
5906 method.
5907 * dwarf2/attribute.c (attribute::value_as_string): New method.
5908
8c87a452
TT
59092020-04-24 Tom Tromey <tom@tromey.com>
5910
5911 * symtab.c (general_symbol_info::natural_name)
5912 (general_symbol_info::demangled_name): Check for language_rust.
5913
787de330
TT
59142020-04-24 Tom Tromey <tom@tromey.com>
5915
5916 * dwarf2/read.c (dw2_linkage_name): Move Rust "{" hack here...
5917 (dwarf2_physname): ... from here.
5918 (partial_die_info::read): Add Rust "{" hack.
5919
ff985671
TT
59202020-04-24 Tom Tromey <tom@tromey.com>
5921
5922 * symtab.h (struct general_symbol_info) <set_demangled_name>: New
5923 method.
5924 (symbol_set_demangled_name): Don't declare.
5925 * symtab.c (general_symbol_info::set_demangled_name): Rename from
5926 symbol_set_demangled_name.
5927 (general_symbol_info::set_language)
5928 (general_symbol_info::compute_and_set_names): Update.
5929 * minsyms.c (minimal_symbol_reader::install): Update.
5930 * dwarf2/read.c (new_symbol): Update.
5931
1acda803
TT
59322020-04-24 Tom Tromey <tromey@adacore.com>
5933
5934 PR python/23662:
5935 * python/py-type.c (convert_field): Handle
5936 FIELD_LOC_KIND_DWARF_BLOCK.
5937 (typy_get_sizeof): Handle TYPE_HAS_DYNAMIC_LENGTH.
5938 (typy_get_dynamic): Nw function.
5939 (type_object_getset): Add "dynamic".
5940 * NEWS: Add entry.
5941
d656f129
TT
59422020-04-24 Tom Tromey <tromey@adacore.com>
5943
5944 * ada-typeprint.c (print_choices, print_variant_part)
5945 (print_record_field_types_dynamic): New functions.
5946 (print_record_field_types): Use print_record_field_types_dynamic.
5947
7d79de9a
TT
59482020-04-24 Tom Tromey <tromey@adacore.com>
5949
5950 * dwarf2/read.c (handle_data_member_location): New overload.
5951 (dwarf2_add_field): Use it.
5952 (decode_locdesc): Add "computed" parameter. Update comment.
5953 * gdbtypes.c (is_dynamic_type_internal): Also look for
5954 FIELD_LOC_KIND_DWARF_BLOCK.
5955 (resolve_dynamic_struct): Handle FIELD_LOC_KIND_DWARF_BLOCK.
5956 * gdbtypes.c (is_dynamic_type_internal): Add special case for C++
5957 virtual base classes.
5958 * gnu-v3-abi.c (gnuv3_baseclass_offset): Handle
5959 FIELD_LOC_KIND_DWARF_BLOCK.
5960
f8e89861
TT
59612020-04-24 Tom Tromey <tromey@adacore.com>
5962
5963 * dwarf2/read.c (read_structure_type): Handle dynamic length.
5964 * gdbtypes.c (is_dynamic_type_internal): Check
5965 TYPE_HAS_DYNAMIC_LENGTH.
5966 (resolve_dynamic_type_internal): Use TYPE_DYNAMIC_LENGTH.
5967 * gdbtypes.h (TYPE_HAS_DYNAMIC_LENGTH, TYPE_DYNAMIC_LENGTH):
5968 New macros.
5969 (enum dynamic_prop_node_kind) <DYN_PROP_BYTE_SIZE>: New
5970 constant.
5971
9c6a1327
TT
59722020-04-24 Tom Tromey <tromey@adacore.com>
5973
5974 * dwarf2/read.c (struct variant_field): Rewrite.
5975 (struct variant_part_builder): New.
5976 (struct nextfield): Remove "variant" field. Add "offset".
5977 (struct field_info): Add "current_variant_part" and
5978 "variant_parts".
5979 (alloc_discriminant_info): Remove.
5980 (alloc_rust_variant): New function.
5981 (quirk_rust_enum): Update.
5982 (dwarf2_add_field): Set "offset" member. Don't handle
5983 DW_TAG_variant_part.
5984 (offset_map_type): New typedef.
5985 (convert_variant_range, create_one_variant)
5986 (create_one_variant_part, create_variant_parts)
5987 (add_variant_property): New functions.
5988 (dwarf2_attach_fields_to_type): Call add_variant_property.
5989 (read_structure_type): Don't handle DW_TAG_variant_part.
5990 (handle_variant_part, handle_variant): New functions.
5991 (handle_struct_member_die): Use them.
5992 (process_structure_scope): Don't handle variant parts.
5993 * gdbtypes.h (TYPE_FLAG_DISCRIMINATED_UNION): Remove.
5994 (struct discriminant_info): Remove.
5995 (enum dynamic_prop_node_kind) <DYN_PROP_DISCRIMINATED>: Remove.
5996 (struct main_type) <flag_discriminated_union>: Remove.
5997 * rust-lang.c (rust_enum_p, rust_empty_enum_p): Rewrite.
5998 (rust_enum_variant): Return int. Remove "contents". Rewrite.
5999 (rust_print_enum, rust_print_struct_def, rust_evaluate_subexp):
6000 Update.
6001 * valops.c (value_union_variant): Remove.
6002 * value.h (value_union_variant): Don't declare.
6003
b249d2c2
TT
60042020-04-24 Tom Tromey <tromey@adacore.com>
6005
6006 * ada-lang.c (ada_discrete_type_high_bound, ada_discrete_type_low)
6007 (ada_value_primitive_packed_val): Update.
6008 * ada-valprint.c (ada_value_print_1): Update.
6009 * dwarf2/loc.c (evaluate_for_locexpr_baton): New struct.
6010 (dwarf2_locexpr_baton_eval): Take a property_addr_info rather than
6011 just an address. Use evaluate_for_locexpr_baton.
6012 (dwarf2_evaluate_property): Update.
6013 * dwarf2/loc.h (struct property_addr_info) <valaddr>: Now an
6014 array_view.
6015 * findvar.c (default_read_var_value): Update.
6016 * gdbtypes.c (compute_variant_fields_inner)
6017 (resolve_dynamic_type_internal): Update.
6018 (resolve_dynamic_type): Change type of valaddr parameter.
6019 * gdbtypes.h (resolve_dynamic_type): Update.
6020 * valarith.c (value_subscripted_rvalue): Update.
6021 * value.c (value_from_contents_and_address): Update.
6022
61122aa9
TT
60232020-04-24 Tom Tromey <tromey@adacore.com>
6024
6025 * dwarf2/loc.c (dwarf2_locexpr_baton_eval): Add
6026 "push_initial_value" parameter.
6027 (dwarf2_evaluate_property): Likewise.
6028 * dwarf2/loc.h (dwarf2_evaluate_property): Update.
6029
ef83a141
TT
60302020-04-24 Tom Tromey <tromey@adacore.com>
6031
6032 * gdbtypes.c (is_dynamic_type_internal): Check for variant parts.
6033 (variant::matches, compute_variant_fields_recurse)
6034 (compute_variant_fields_inner, compute_variant_fields): New
6035 functions.
6036 (resolve_dynamic_struct): Check for DYN_PROP_VARIANT_PARTS.
6037 Use resolved_type after type is made.
6038 (operator==): Add new cases.
6039 * gdbtypes.h (TYPE_HAS_VARIANT_PARTS): New macro.
6040 (struct discriminant_range, struct variant, struct variant_part):
6041 New.
6042 (union dynamic_prop_data) <variant_parts, original_type>: New
6043 members.
6044 (enum dynamic_prop_node_kind) <DYN_PROP_VARIANT_PARTS>: New constant.
6045 (enum dynamic_prop_kind) <PROP_TYPE, PROP_VARIANT_PARTS>: New
6046 constants.
6047 * value.c (unpack_bits_as_long): Now public.
6048 * value.h (unpack_bits_as_long): Declare.
6049
675127ec
TT
60502020-04-24 Tom Tromey <tromey@adacore.com>
6051
6052 * rs6000-tdep.c (struct ppc_variant): Rename from "variant".
6053 (variants, find_variant_by_arch, rs6000_gdbarch_init): Update.
6054
9852ceef
HD
60552020-04-24 Hannes Domani <ssbssa@yahoo.de>
6056
6057 * windows-tdep.c (exception_values): Add WOW64 exception numbers.
6058
7632c6ce
KR
60592020-04-24 Kamil Rytarowski <n54@gmx.com>
6060
6061 * inf-ptrace.h (follow_fork, insert_fork_catchpoint)
6062 (remove_fork_catchpoint, post_startup_inferior)
6063 (post_attach): Move...
6064 * obsd-nat.h (follow_fork, insert_fork_catchpoint)
6065 (remove_fork_catchpoint, post_startup_inferior)
6066 (post_attach): ...here.
6067 * inf-ptrace.c (follow_fork, insert_fork_catchpoint)
6068 (remove_fork_catchpoint, post_startup_inferior)
6069 (post_attach): Move...
6070 * obsd-nat.c (follow_fork, insert_fork_catchpoint)
6071 (remove_fork_catchpoint, post_startup_inferior)
6072 (post_attach): ...here.
6073
7be2bb4f
TT
60742020-04-24 Tom Tromey <tromey@adacore.com>
6075
6076 * nat/windows-nat.h (struct windows_thread_info)
6077 <pc_adjusted>: New member.
6078 * windows-nat.c (windows_fetch_one_register): Check
6079 pc_adjusted.
6080 (windows_nat_target::get_windows_debug_event)
6081 (windows_nat_target::wait): Set pc_adjusted.
6082
f80cb3b4
TV
60832020-04-24 Tom de Vries <tdevries@suse.de>
6084
6085 * contrib/cc-with-tweaks.sh: Remove <exec>.gdb-index file handling.
6086 Run gdb-add-index inside temp dir.
6087
29514b87
TT
60882020-04-23 Tom Tromey <tromey@adacore.com>
6089
6090 * windows-tdep.c (is_linked_with_cygwin_dll): Always update "iter"
6091 in loop.
6092
5939967b
LM
60932020-04-23 Luis Machado <luis.machado@linaro.org>
6094
6095 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first): Use
6096 get_frame_register instead of gdbarch_unwind_pc.
6097
70bc38f5
TV
60982020-04-23 Tom de Vries <tdevries@suse.de>
6099
6100 * symtab.c (lookup_global_symbol): Prefer def over decl.
6101
de82891c
TV
61022020-04-23 Tom de Vries <tdevries@suse.de>
6103
6104 PR symtab/25807
6105 * block.c (best_symbol, better_symbol): Promote to external.
6106 * block.h (best_symbol, better_symbol): Declare.
6107 * symtab.c (lookup_symbol_in_objfile_symtabs): Prefer def over
6108 decl.
6109
ecc6c606
TT
61102020-04-23 Tom Tromey <tromey@adacore.com>
6111
6112 PR ada/25837:
6113 * dwarf2/read.c (dw2_expand_symtabs_matching_symbol): Store a
6114 "const char *", not a "const std::string &".
6115 <name_and_matcher::operator==>: Update.
6116 * unittests/lookup_name_info-selftests.c: Change type of
6117 "result".
6118
740480b8
TT
61192020-04-23 Tom Tromey <tom@tromey.com>
6120
6121 * inferior.h (iterate_over_inferiors): Don't declare.
6122 * inferior.c (iterate_over_inferiors): Remove.
6123 * darwin-nat.c (find_inferior_task_it, find_inferior_pid_it):
6124 Remove.
6125 (darwin_find_inferior_by_task, darwin_find_inferior_by_pid): Don't
6126 use iterate_over_inferiors.
6127 (darwin_resume_inferior_it)
6128 (struct resume_inferior_threads_param)
6129 (darwin_resume_inferior_threads_it): Remove.
6130 (darwin_nat_target::resume): Don't use iterate_over_inferiors.
6131
ae3ab1f0
TV
61322020-04-23 Tom de Vries <tdevries@suse.de>
6133
6134 * blockframe.c (find_pc_partial_function): Use
6135 find_pc_sect_compunit_symtab rather than
6136 objfile->sf->qf->find_pc_sect_compunit_symtab.
6137
317d2668
TV
61382020-04-22 Tom de Vries <tdevries@suse.de>
6139
6140 PR symtab/25764
6141 * dwarf2/read.c (scan_partial_symbols): Allow external variable decls
6142 in psymtabs.
6143
eea9e357
TV
61442020-04-22 Tom de Vries <tdevries@suse.de>
6145
6146 PR symtab/25801
6147 * psymtab.c (psym_map_symtabs_matching_filename): Don't skip shared
6148 symtabs.
6149
3d5afab3
TV
61502020-04-22 Tom de Vries <tdevries@suse.de>
6151
6152 PR symtab/25700
6153 * dwarf2/read.c (dwarf2_build_psymtabs_hard): Don't create psymtab for
6154 CU if already created.
6155
d43b7a2d
TBA
61562020-04-21 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
6157
6158 * infrun.c (displaced_step_fixup): Switch to the event_thread
6159 before calling displaced_step_restore, not after.
6160
d89edf9b
MM
61612020-04-21 Markus Metzger <markus.t.metzger@intel.com>
6162
6163 * record-btrace.c (record_btrace_enable_warn): Ignore thread if
6164 its inferior is not recorded by us.
6165 (record_btrace_target_open): Replace call to
6166 all_non_exited_threads () with call to current_inferior
6167 ()->non_exited_threads ().
6168 (record_btrace_target::stop_recording): Likewise.
6169 (record_btrace_target::close): Likewise.
6170 (record_btrace_target::wait): Likewise.
6171 (record_btrace_target::record_stop_replaying): Likewise.
6172
5897fd49
MM
61732020-04-21 Markus Metzger <markus.t.metzger@intel.com>
6174
6175 * btrace.c (btrace_enable): Throw an error on double enables and
6176 when enabling recording fails.
6177 (btrace_disable): Throw an error if the thread is not recorded.
6178
1a476b6d
MM
61792020-04-21 Markus Metzger <markus.t.metzger@intel.com>
6180
6181 * record-btrace.c (record_btrace_target::fetch_registers): Forward
6182 request if we do not have a thread_info.
6183
4778a5f8
TV
61842020-04-21 Tom de Vries <tdevries@suse.de>
6185
6186 PR gdb/25471
6187 * thread.c
6188 (scoped_restore_current_thread::scoped_restore_current_thread): Catch
6189 exception in get_frame_id.
6190
0fa7617d
TT
61912020-04-20 Tom Tromey <tromey@adacore.com>
6192
6193 * python/python.c (struct gdbpy_event): Mark move constructor as
6194 noexcept.
6195 * python/py-tui.c (class gdbpy_tui_window_maker): Mark move
6196 constructor as noexcept.
6197 * completer.h (struct completion_result): Mark move constructor as
6198 noexcept.
6199 * completer.c (completion_result::completion_result): Use
6200 initialization style. Don't call reset_match_list.
6201
ad23bda0
MS
62022020-04-20 Mihails Strasuns <mihails.strasuns@intel.com>
6203
6204 * MAINTAINERS (Write After Approval): Add myself.
6205
45e1f031
TT
62062020-04-18 Tom Tromey <tom@tromey.com>
6207
6208 * windows-tdep.c (init_w32_command_list)
6209 (w32_prefix_command_valid): Restore.
6210 (_initialize_windows_tdep): Call init_w32_command_list.
6211
08feed99
TT
62122020-04-18 Tom Tromey <tom@tromey.com>
6213
6214 * xcoffread.c (enter_line_range, scan_xcoff_symtab): Update.
6215 * value.c (value_fn_field): Update.
6216 * valops.c (find_function_in_inferior)
6217 (value_allocate_space_in_inferior): Update.
6218 * tui/tui-winsource.c (tui_update_source_windows_with_line):
6219 Update.
6220 * tui/tui-source.c (tui_source_window::set_contents): Update.
6221 * symtab.c (lookup_global_or_static_symbol)
6222 (find_function_start_sal_1, skip_prologue_sal)
6223 (print_msymbol_info, find_gnu_ifunc, symbol_arch): Update.
6224 * symmisc.c (dump_msymbols, dump_symtab_1)
6225 (maintenance_print_one_line_table): Update.
6226 * symfile.c (init_entry_point_info, section_is_mapped)
6227 (list_overlays_command, simple_read_overlay_table)
6228 (simple_overlay_update_1): Update.
6229 * stap-probe.c (handle_stap_probe): Update.
6230 * stabsread.c (dbx_init_float_type, define_symbol)
6231 (read_one_struct_field, read_enum_type, read_range_type): Update.
6232 * source.c (info_line_command): Update.
6233 * python/python.c (gdbpy_source_objfile_script)
6234 (gdbpy_execute_objfile_script): Update.
6235 * python/py-type.c (save_objfile_types): Update.
6236 * python/py-objfile.c (py_free_objfile): Update.
6237 * python/py-inferior.c (python_new_objfile): Update.
6238 * psymtab.c (psym_find_pc_sect_compunit_symtab, dump_psymtab)
6239 (dump_psymtab_addrmap_1, maintenance_info_psymtabs)
6240 (maintenance_check_psymtabs): Update.
6241 * printcmd.c (info_address_command): Update.
6242 * objfiles.h (struct objfile) <arch>: New method, from
6243 get_objfile_arch.
6244 (get_objfile_arch): Don't declare.
6245 * objfiles.c (get_objfile_arch): Remove.
6246 (filter_overlapping_sections): Update.
6247 * minsyms.c (msymbol_is_function): Update.
6248 * mi/mi-symbol-cmds.c (mi_cmd_symbol_list_lines)
6249 (output_nondebug_symbol): Update.
6250 * mdebugread.c (parse_symbol, basic_type, parse_partial_symbols)
6251 (mdebug_expand_psymtab): Update.
6252 * machoread.c (macho_add_oso_symfile): Update.
6253 * linux-tdep.c (linux_infcall_mmap, linux_infcall_munmap):
6254 Update.
6255 * linux-fork.c (checkpoint_command): Update.
6256 * linespec.c (convert_linespec_to_sals): Update.
6257 * jit.c (finalize_symtab): Update.
6258 * infrun.c (insert_exception_resume_from_probe): Update.
6259 * ia64-tdep.c (ia64_find_unwind_table): Update.
6260 * hppa-tdep.c (internalize_unwinds): Update.
6261 * gdbtypes.c (get_type_arch, init_float_type, objfile_type):
6262 Update.
6263 * gcore.c (call_target_sbrk): Update.
6264 * elfread.c (record_minimal_symbol, elf_symtab_read)
6265 (elf_rel_plt_read, elf_gnu_ifunc_record_cache)
6266 (elf_gnu_ifunc_resolve_by_got): Update.
6267 * dwarf2/read.c (create_addrmap_from_index)
6268 (create_addrmap_from_aranges, dw2_find_pc_sect_compunit_symtab)
6269 (read_debug_names_from_section)
6270 (process_psymtab_comp_unit_reader, add_partial_symbol)
6271 (add_partial_subprogram, process_full_comp_unit)
6272 (read_file_scope, read_func_scope, read_lexical_block_scope)
6273 (read_call_site_scope, dwarf2_ranges_read)
6274 (dwarf2_record_block_ranges, dwarf2_add_field)
6275 (mark_common_block_symbol_computed, read_tag_pointer_type)
6276 (read_tag_string_type, dwarf2_init_float_type)
6277 (dwarf2_init_complex_target_type, read_base_type)
6278 (partial_die_info::read, partial_die_info::read)
6279 (read_attribute_value, dwarf_decode_lines_1, new_symbol)
6280 (dwarf2_fetch_die_loc_sect_off): Update.
6281 * dwarf2/loc.c (dwarf2_find_location_expression)
6282 (class dwarf_evaluate_loc_desc, rw_pieced_value)
6283 (dwarf2_evaluate_loc_desc_full, dwarf2_locexpr_baton_eval)
6284 (dwarf2_loc_desc_get_symbol_read_needs)
6285 (locexpr_describe_location_piece, locexpr_describe_location_1)
6286 (loclist_describe_location): Update.
6287 * dwarf2/index-write.c (write_debug_names): Update.
6288 * dwarf2/frame.c (dwarf2_build_frame_info): Update.
6289 * dtrace-probe.c (dtrace_process_dof): Update.
6290 * dbxread.c (read_dbx_symtab, dbx_end_psymtab)
6291 (process_one_symbol): Update.
6292 * ctfread.c (ctf_init_float_type, read_base_type): Update.
6293 * coffread.c (coff_symtab_read, enter_linenos, decode_base_type)
6294 (coff_read_enum_type): Update.
6295 * cli/cli-cmds.c (edit_command, list_command): Update.
6296 * buildsym.c (buildsym_compunit::finish_block_internal): Update.
6297 * breakpoint.c (create_overlay_event_breakpoint)
6298 (create_longjmp_master_breakpoint)
6299 (create_std_terminate_master_breakpoint)
6300 (create_exception_master_breakpoint, get_sal_arch): Update.
6301 * block.c (block_gdbarch): Update.
6302 * annotate.c (annotate_source_line): Update.
6303
0743fc83
TT
63042020-04-17 Tom Tromey <tromey@adacore.com>
6305
6306 * auto-load.c (show_auto_load_cmd): Remove.
6307 (auto_load_show_cmdlist_get): Use add_show_prefix_cmd.
6308 * arc-tdep.c (_initialize_arc_tdep): Use add_show_prefix_cmd.
6309 (maintenance_print_arc_command): Remove.
6310 * tui/tui-win.c (tui_command): Remove.
6311 (tui_get_cmd_list): Use add_basic_prefix_cmd.
6312 * tui/tui-layout.c (tui_layout_command): Remove.
6313 (_initialize_tui_layout): Use add_basic_prefix_cmd.
6314 * python/python.c (user_set_python, user_show_python): Remove.
6315 (_initialize_python): Use add_basic_prefix_cmd,
6316 add_show_prefix_cmd.
6317 * guile/guile.c (set_guile_command, show_guile_command): Remove.
6318 (install_gdb_commands): Use add_basic_prefix_cmd,
6319 add_show_prefix_cmd.
6320 (info_guile_command): Remove.
6321 * dwarf2/read.c (set_dwarf_cmd, show_dwarf_cmd): Remove.
6322 (_initialize_dwarf2_read): Use add_basic_prefix_cmd,
6323 add_show_prefix_cmd.
6324 * cli/cli-style.h (class cli_style_option) <add_setshow_commands>:
6325 Remove do_set and do_show parameters.
6326 * cli/cli-style.c (set_style, show_style): Remove.
6327 (_initialize_cli_style): Use add_basic_prefix_cmd,
6328 add_show_prefix_cmd.
6329 (cli_style_option::add_setshow_commands): Remove do_set and
6330 do_show parameters.
6331 (cli_style_option::add_setshow_commands): Use
6332 add_basic_prefix_cmd, add_show_prefix_cmd.
6333 (STYLE_ADD_SETSHOW_COMMANDS): Remove macro.
6334 (set_style_name): Remove.
6335 * cli/cli-dump.c (dump_command, append_command): Remove.
6336 (srec_dump_command, ihex_dump_command, verilog_dump_command)
6337 (tekhex_dump_command, binary_dump_command)
6338 (binary_append_command): Remove.
6339 (_initialize_cli_dump): Use add_basic_prefix_cmd.
6340 * windows-tdep.c (w32_prefix_command_valid): Remove global.
6341 (init_w32_command_list): Remove; move into ...
6342 (_initialize_windows_tdep): ... here. Use add_basic_prefix_cmd.
6343 * valprint.c (set_print, show_print, set_print_raw)
6344 (show_print_raw): Remove.
6345 (_initialize_valprint): Use add_basic_prefix_cmd,
6346 add_show_prefix_cmd.
6347 * typeprint.c (set_print_type, show_print_type): Remove.
6348 (_initialize_typeprint): Use add_basic_prefix_cmd,
6349 add_show_prefix_cmd.
6350 * record.c (set_record_command, show_record_command): Remove.
6351 (_initialize_record): Use add_basic_prefix_cmd,
6352 add_show_prefix_cmd.
6353 * cli/cli-cmds.c (_initialize_cli_cmds): Use add_basic_prefix_cmd,
6354 add_show_prefix_cmd.
6355 (info_command, show_command, set_debug, show_debug): Remove.
6356 * top.h (set_history, show_history): Don't declare.
6357 * top.c (set_history, show_history): Remove.
6358 * target-descriptions.c (set_tdesc_cmd, show_tdesc_cmd)
6359 (unset_tdesc_cmd): Remove.
6360 (_initialize_target_descriptions): Use add_basic_prefix_cmd,
6361 add_show_prefix_cmd.
6362 * symtab.c (info_module_command): Remove.
6363 (_initialize_symtab): Use add_basic_prefix_cmd.
6364 * symfile.c (overlay_command): Remove.
6365 (_initialize_symfile): Use add_basic_prefix_cmd.
6366 * sparc64-tdep.c (info_adi_command): Remove.
6367 (_initialize_sparc64_adi_tdep): Use add_basic_prefix_cmd.
6368 * sh-tdep.c (show_sh_command, set_sh_command): Remove.
6369 (_initialize_sh_tdep): Use add_basic_prefix_cmd,
6370 add_show_prefix_cmd.
6371 * serial.c (serial_set_cmd, serial_show_cmd): Remove.
6372 (_initialize_serial): Use add_basic_prefix_cmd,
6373 add_show_prefix_cmd.
6374 * ser-tcp.c (set_tcp_cmd, show_tcp_cmd): Remove.
6375 (_initialize_ser_tcp): Use add_basic_prefix_cmd,
6376 add_show_prefix_cmd.
6377 * rs6000-tdep.c (set_powerpc_command, show_powerpc_command)
6378 (_initialize_rs6000_tdep): Use add_basic_prefix_cmd,
6379 add_show_prefix_cmd.
6380 * riscv-tdep.c (show_riscv_command, set_riscv_command)
6381 (show_debug_riscv_command, set_debug_riscv_command): Remove.
6382 (_initialize_riscv_tdep): Use add_basic_prefix_cmd,
6383 add_show_prefix_cmd.
6384 * remote.c (remote_command, set_remote_cmd): Remove.
6385 (_initialize_remote): Use add_basic_prefix_cmd.
6386 * record-full.c (set_record_full_command)
6387 (show_record_full_command): Remove.
6388 (_initialize_record_full): Use add_basic_prefix_cmd,
6389 add_show_prefix_cmd.
6390 * record-btrace.c (cmd_set_record_btrace)
6391 (cmd_show_record_btrace, cmd_set_record_btrace_bts)
6392 (cmd_show_record_btrace_bts, cmd_set_record_btrace_pt)
6393 (cmd_show_record_btrace_pt): Remove.
6394 (_initialize_record_btrace): Use add_basic_prefix_cmd,
6395 add_show_prefix_cmd.
6396 * ravenscar-thread.c (set_ravenscar_command)
6397 (show_ravenscar_command): Remove.
6398 (_initialize_ravenscar): Use add_basic_prefix_cmd,
6399 add_show_prefix_cmd.
6400 * mips-tdep.c (show_mips_command, set_mips_command)
6401 (_initialize_mips_tdep): Use add_basic_prefix_cmd,
6402 add_show_prefix_cmd.
6403 * maint.c (maintenance_command, maintenance_info_command)
6404 (maintenance_check_command, maintenance_print_command)
6405 (maintenance_set_cmd, maintenance_show_cmd): Remove.
6406 (_initialize_maint_cmds): Use add_basic_prefix_cmd,
6407 add_show_prefix_cmd.
6408 (show_per_command_cmd): Remove.
6409 * maint-test-settings.c (maintenance_set_test_settings_cmd):
6410 Remove.
6411 (maintenance_show_test_settings_cmd): Remove.
6412 (_initialize_maint_test_settings): Use add_basic_prefix_cmd,
6413 add_show_prefix_cmd.
6414 * maint-test-options.c (maintenance_test_options_command):
6415 Remove.
6416 (_initialize_maint_test_options): Use add_basic_prefix_cmd.
6417 * macrocmd.c (macro_command): Remove
6418 (_initialize_macrocmd): Use add_basic_prefix_cmd.
6419 * language.c (set_check, show_check): Remove.
6420 (_initialize_language): Use add_basic_prefix_cmd,
6421 add_show_prefix_cmd.
6422 * infcmd.c (unset_command): Remove.
6423 (_initialize_infcmd): Use add_basic_prefix_cmd.
6424 * i386-tdep.c (set_mpx_cmd, show_mpx_cmd): Remove.
6425 (_initialize_i386_tdep): Use add_basic_prefix_cmd,
6426 add_show_prefix_cmd.
6427 * go32-nat.c (go32_info_dos_command): Remove.
6428 (_initialize_go32_nat): Use add_basic_prefix_cmd.
6429 * cli/cli-decode.c (do_prefix_cmd, add_basic_prefix_cmd)
6430 (do_show_prefix_cmd, add_show_prefix_cmd): New functions.
6431 * frame.c (set_backtrace_cmd, show_backtrace_cmd): Remove.
6432 (_initialize_frame): Use add_basic_prefix_cmd,
6433 add_show_prefix_cmd.
6434 * dcache.c (set_dcache_command, show_dcache_command): Remove.
6435 (_initialize_dcache): Use add_basic_prefix_cmd,
6436 add_show_prefix_cmd.
6437 * cp-support.c (maint_cplus_command): Remove.
6438 (_initialize_cp_support): Use add_basic_prefix_cmd.
6439 * btrace.c (maint_btrace_cmd, maint_btrace_set_cmd)
6440 (maint_btrace_show_cmd, maint_btrace_pt_set_cmd)
6441 (maint_btrace_pt_show_cmd, _initialize_btrace): Use
6442 add_basic_prefix_cmd, add_show_prefix_cmd.
6443 * breakpoint.c (save_command): Remove.
6444 (_initialize_breakpoint): Use add_basic_prefix_cmd.
6445 * arm-tdep.c (set_arm_command, show_arm_command): Remove.
6446 (_initialize_arm_tdep): Use add_basic_prefix_cmd,
6447 add_show_prefix_cmd.
6448 * ada-lang.c (maint_set_ada_cmd, maint_show_ada_cmd)
6449 (set_ada_command, show_ada_command): Remove.
6450 (_initialize_ada_language): Use add_basic_prefix_cmd,
6451 add_show_prefix_cmd.
6452 * command.h (add_basic_prefix_cmd, add_show_prefix_cmd): Declare.
6453
3557f442
KR
64542020-04-16 Kamil Rytarowski <n54@gmx.com>
6455
6456 * nbsd-nat.c (inf_ptrace_target::auxv_parse): Remove.
6457 * nbsd-nat.h (inf_ptrace_target::auxv_parse): Likewise.
6458
16197208
SM
64592020-04-16 Simon Marchi <simon.marchi@polymtl.ca>
6460
6461 * windows-tdep.c (is_linked_with_cygwin_dll): Add filename to
6462 warning messages.
6463
00ac85d3
SM
64642020-04-16 Simon Marchi <simon.marchi@polymtl.ca>
6465
6466 * windows-tdep.c (is_linked_with_cygwin_dll): Consider case where
6467 import table is not at beginning of .idata section.
6468
381ce63f
PA
64692020-04-16 Pedro Alves <palves@redhat.com>
6470
6471 * inferior.c (delete_inferior): Use delete operator directly
6472 instead of delete_program_space.
6473 * progspace.c (add_program_space): New, factored out from
6474 program_space::program_space.
6475 (remove_program_space): New, factored out from
6476 delete_program_space.
6477 (program_space::program_space): Remove intro comment. Rewrite.
6478 (program_space::~program_space): Remove intro comment. Call
6479 remove_program_space.
6480 (delete_program_space): Delete.
6481 * progspace.h (program_space::program_space): Make explicit. Move
6482 intro comment here, adjusted.
6483 (program_space::~program_space): Move intro comment here,
6484 adjusted.
6485 (delete_program_space): Remove.
6486
a010605f
TT
64872020-04-16 Tom Tromey <tromey@adacore.com>
6488
6489 * windows-nat.c (windows_nat::handle_access_violation): New
6490 function.
6491 * nat/windows-nat.h (handle_access_violation): Declare.
6492 * nat/windows-nat.c (handle_exception): Move Cygwin code to
6493 windows-nat.c. Call handle_access_violation.
6494
efba5c23
TV
64952020-04-16 Tom de Vries <tdevries@suse.de>
6496
6497 PR symtab/25791
6498 * dwarf2/index-write.c (write_gdbindex): Generate CU table entries for
6499 CUs without psymtab.
6500
97ed802d
KB
65012020-04-16 Kevin Buettner <kevinb@redhat.com>
6502
6503 * python/python.c (do_start_initialization): Don't call
6504 PyEval_InitThreads for Python 3.9 and beyond.
6505
c7d64809
KR
65062020-04-15 Kamil Rytarowski <n54@gmx.com>
6507
6508 * obsd-nat.c (obsd_nat_target::update_thread_list): Pass "this" to
6509 thread functions.
6510 (obsd_nat_target::wait): Likewise.
6511
ce127a96
TT
65122020-04-15 Tom Tromey <tromey@adacore.com>
6513
6514 * windows-nat.c (DEBUG_EXEC, DEBUG_EVENTS, DEBUG_MEM)
6515 (DEBUG_EXCEPT): Use debug_printf.
6516
99f1bc6a
AB
65172020-04-15 Andrew Burgess <andrew.burgess@embecosm.com>
6518
6519 * completer.c (class completion_tracker::completion_hash_entry)
6520 <hash_name>: New member function.
6521 (completion_tracker::discard_completions): New callback to hash a
6522 completion_hash_entry, pass this to htab_create_alloc.
6523
a0e9b532
JT
65242016-01-20 Jon Turney <jon.turney@dronecode.org.uk>
6525
6526 * windows-nat.c (windows_make_so): Warn rather than stopping with
6527 an error if realpath() fails.
6528
06ca5dd4
KR
65292020-04-14 Kamil Rytarowski <n54@gmx.com>
6530
6531 * nbsd-nat.c (nbsd_pid_to_kinfo_proc2): New.
6532 (nbsd_nat_target::info_proc): Add do_status.
6533
194d088f
TV
65342020-04-14 Simon Marchi <simon.marchi@polymtl.ca>
6535 Tom de Vries <tdevries@suse.de>
6536
6537 PR symtab/25718
6538 * psympriv.h (struct partial_symtab::read_symtab)
6539 (struct partial_symtab::expand_psymtab)
6540 (struct partial_symtab::read_dependencies): Update comments.
6541 * dwarf2/read.c (struct dwarf2_include_psymtab::read_symtab): Call
6542 read_symtab for includer.
6543 (struct dwarf2_include_psymtab::expand_psymtab): Assert false.
6544 (struct dwarf2_include_psymtab::readin_p): Call readin_p () for includer.
6545 (struct dwarf2_include_psymtab::m_readin): Remove.
6546 (struct dwarf2_include_psymtab::includer): New member function.
6547 (dwarf2_psymtab::expand_psymtab): Assert !readin.
6548
c1a66c06
TV
65492020-04-14 Tom de Vries <tdevries@suse.de>
6550
6551 PR symtab/25720
6552 * symmisc.c (maintenance_expand_symtabs): Call expand_symtabs_matching
6553 with NULL symbol_matcher and lookup_name.
6554 * psymtab.c (psym_expand_symtabs_matching): Handle NULL symbol_matcher
6555 and lookup_name.
6556 * dwarf2/read.c (dw2_expand_symtabs_matching)
6557 (dw2_debug_names_expand_symtabs_matching): Same.
6558 * symfile.h (struct quick_symbol_functions::expand_symtabs_matching):
6559 Make lookup_name a pointer. Update comment.
6560 * symtab.c (global_symbol_searcher::expand_symtabs): Handle
6561 lookup_name being a pointer.
6562 * symfile.c (expand_symtabs_matching): Same.
6563 * symfile-debug.c (debug_qf_expand_symtabs_matching): Same.
6564 * linespec.c (iterate_over_all_matching_symtabs): Same.
6565
400b5eca
TT
65662020-04-13 Tom Tromey <tom@tromey.com>
6567
6568 * run-on-main-thread.c: Update include.
6569 * unittests/main-thread-selftests.c: Update include.
6570 * tui/tui-win.c: Update include.
6571 * tui/tui-io.c: Update include.
6572 * tui/tui-interp.c: Update include.
6573 * tui/tui-hooks.c: Update include.
6574 * top.h: Update include.
6575 * top.c: Update include.
6576 * ser-base.c: Update include.
6577 * remote.c: Update include.
6578 * remote-notif.c: Update include.
6579 * remote-fileio.c: Update include.
6580 * record-full.c: Update include.
6581 * record-btrace.c: Update include.
6582 * python/python.c: Update include.
6583 * posix-hdep.c: Update include.
6584 * mingw-hdep.c: Update include.
6585 * mi/mi-main.c: Update include.
6586 * mi/mi-interp.c: Update include.
6587 * main.c: Update include.
6588 * linux-nat.c: Update include.
6589 * interps.c: Update include.
6590 * infrun.c: Update include.
6591 * inf-loop.c: Update include.
6592 * event-top.c: Update include.
6593 * event-loop.c: Move to ../gdbsupport/.
6594 * event-loop.h: Move to ../gdbsupport/.
6595 * async-event.h: Update include.
6596 * Makefile.in (COMMON_SFILES, HFILES_NO_SRCDIR): Update.
6597
93b54c8e
TT
65982020-04-13 Tom Tromey <tom@tromey.com>
6599
6600 * tui/tui-win.c: Include async-event.h.
6601 * remote.c: Include async-event.h.
6602 * remote-notif.c: Include async-event.h.
6603 * record-full.c: Include async-event.h.
6604 * record-btrace.c: Include async-event.h.
6605 * infrun.c: Include async-event.h.
6606 * event-top.c: Include async-event.h.
6607 * event-loop.h: Move some declarations to async-event.h.
6608 * event-loop.c: Don't include ser-event.h or top.h. Move some
6609 code to async-event.c.
6610 * async-event.h: New file.
6611 * async-event.c: New file.
6612 * Makefile.in (COMMON_SFILES): Add async-event.c.
6613 (HFILES_NO_SRCDIR): Add async-event.h.
6614
c1cd3163
TT
66152020-04-13 Tom Tromey <tom@tromey.com>
6616
6617 * utils.c (flush_streams): New function.
6618 * event-loop.c (gdb_wait_for_event): Call flush_streams.
6619
29f2bf4f
TT
66202020-04-13 Tom Tromey <tom@tromey.com>
6621
6622 * event-loop.c (handle_file_event): Use warning, not
6623 printf_unfiltered.
6624
98029d02
TT
66252020-04-13 Tom Tromey <tom@tromey.com>
6626
6627 * event-loop.c: Include <chrono>.
6628
06cc9596
TT
66292020-04-13 Tom Tromey <tom@tromey.com>
6630
6631 * gdb_select.h: Move to ../gdbsupport/.
6632 * event-loop.c: Update include path.
6633 * top.c: Update include path.
6634 * ser-base.c: Update include path.
6635 * ui-file.c: Update include path.
6636 * ser-tcp.c: Update include path.
6637 * guile/scm-ports.c: Update include path.
6638 * posix-hdep.c: Update include path.
6639 * ser-unix.c: Update include path.
6640 * gdb_usleep.c: Update include path.
6641 * mingw-hdep.c: Update include path.
6642 * inflow.c: Update include path.
6643 * infrun.c: Update include path.
6644 * event-top.c: Update include path.
6645
8ae8e197
TT
66462020-04-13 Tom Tromey <tom@tromey.com>
6647
6648 * configure: Rebuild.
6649 * configure.ac: Remove checks that are now in GDB_AC_COMMON.
6650
58cf28e8
TT
66512020-04-13 Tom Tromey <tom@tromey.com>
6652
6653 * event-loop.h (start_event_loop): Don't declare.
6654 * event-loop.c (start_event_loop): Move...
6655 * main.c (start_event_loop): ...here. Now static.
6656
b7f999ae
SDJ
66572020-04-13 Sergio Durigan Junior <sergiodj@sergiodj.net>
6658
6659 * MAINTAINERS: Update my email address.
6660
1085dfd4
KR
66612020-04-12 Kamil Rytarowski <n54@gmx.com>
6662
6663 * nbsd-nat.c (nbsd_nat_target::info_proc): Add IP_MINIMAL and
6664 IP_ALL.
6665
49d1d1f5
KR
66662020-04-12 Kamil Rytarowski <n54@gmx.com>
6667
6668 * nbsd-nat.c (nbsd_pid_to_cmdline): Add.
aac66a4c 6669 (nbsd_nat_target::info_proc): Add do_cmdline.
49d1d1f5 6670
b4848d2a
KR
66712020-04-12 Kamil Rytarowski <n54@gmx.com>
6672
6673 * nbsd-nat.c (nbsd_pid_to_cwd): Add.
aac66a4c 6674 (nbsd_nat_target::info_proc): Add do_cwd.
b4848d2a 6675
51c133d5
KR
66762020-04-12 Kamil Rytarowski <n54@gmx.com>
6677
6678 * nbsd-nat.c (nbsd_nat_target::info_proc): Add do_exe.
6679
54b8cbd0
KR
66802020-04-11 Kamil Rytarowski <n54@gmx.com>
6681
6682 * nbsd-nat.c; Include "nbsd-tdep.h" and "gdbarch.h".
6683 * nbsd-nat.c (nbsd_nat_target::find_memory_regions)
6684 (nbsd_nat_target::info_proc): New functions.
6685 * nbsd-nat.c (kinfo_get_vmmap): New function.
6686 * nbsd-nat.c (nbsd_nat_target::info_proc) Use
6687 nbsd_info_proc_mappings_header and nbsd_info_proc_mappings_entry.
6688 * nbsd-tdep.c (nbsd_info_proc_mappings_header)
6689 (nbsd_info_proc_mappings_entry, nbsd_vm_map_entry_flags): New
6690 functions.
6691 * nbsd-tdep.c (KINFO_VME_PROT_READ, KINFO_VME_PROT_WRITE)
6692 (KINFO_VME_PROT_EXEC, KINFO_VME_FLAG_COW)
6693 (KINFO_VME_FLAG_NEEDS_COPY, KINFO_VME_FLAG_NOCOREDUMP)
6694 (KINFO_VME_FLAG_PAGEABLE, KINFO_VME_FLAG_GROWS_UP)
6695 (KINFO_VME_FLAG_GROWS_DOWN): New.
6696
cf83625d
AS
66972020-04-10 Artur Shepilko <nomadbyte@gmail.com>
6698
6699 * utils.c (copy_bitwise): Use unsigned 0 constant as operand of
6700 bit shift.
6701
0c4311ab
TT
67022020-04-10 Tom Tromey <tromey@adacore.com>
6703
6704 * symfile.c (symbol_file_add_separate): Preserve OBJF_MAINLINE.
6705
3e65b3e9
TT
67062020-04-10 Tom Tromey <tromey@adacore.com>
6707
6708 * symtab.c (get_symbol_address, get_msymbol_address): Skip
6709 separate debug files.
6710
13302e95
HD
67112020-04-10 Hannes Domani <ssbssa@yahoo.de>
6712
6713 * nat/windows-nat.c (STATUS_WX86_BREAKPOINT, STATUS_WX86_SINGLE_STEP):
6714 Move to...
6715 * nat/windows-nat.h (STATUS_WX86_BREAKPOINT, STATUS_WX86_SINGLE_STEP):
6716 ... here.
6717 * windows-nat.c (windows_nat_target::get_windows_debug_event):
6718 Check for STATUS_WX86_BREAKPOINT.
6719 (windows_nat_target::wait): Same.
6720
bdfc1e8a
TV
67212020-04-10 Tom de Vries <tdevries@suse.de>
6722
6723 PR cli/25808
6724 * python/lib/gdb/__init__.py: Initialize lexer with stripnl=False.
6725
f4460aec
SM
67262020-04-09 Simon Marchi <simon.marchi@polymtl.ca>
6727
6728 * MAINTAINERS (Global Maintainers): Add Tom de Vries.
6729 (Write After Approval): Remove Tom de Vries.
6730
a25198bb
BE
67312020-04-09 Bernd Edlinger <bernd.edlinger@hotmail.de>
6732
6733 revert partially:
6734 2020-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
6735
aac66a4c
SM
6736 * buildsym.c (record_line): Fix undefined behavior and preserve
6737 lines at eof.
a25198bb 6738
206c98a6
KR
67392020-04-09 Kamil Rytarowski <n54@gmx.com>
6740
6741 * auxv.h (svr4_auxv_parse): New.
6742 * auxv.c (default_auxv_parse): Split into default_auxv_parse
6743 and generic_auxv_parse.
6744 (svr4_auxv_parse): Add.
6745 * obsd-tdep.c: Include "auxv.h".
6746 (obsd_auxv_parse): Remove.
6747 (obsd_init_abi): Remove comment.
6748 (obsd_init_abi): Change set_gdbarch_auxv_parse passed argument
6749 from `obsd_auxv_parse' to `svr4_auxv_parse'.
6750 * nbsd-tdep.c: Include "auxv.h".
6751 (nbsd_init_abi): Call set_gdbarch_auxv_parse.
6752
71fbdbaf
TT
67532020-04-08 Tom Tromey <tromey@adacore.com>
6754
6755 * nat/windows-nat.h (last_wait_event): Don't declare.
6756 (wait_for_debug_event): Update comment.
6757 * nat/windows-nat.c (last_wait_event): Now static.
6758
2c1d95e8
TT
67592020-04-08 Tom Tromey <tromey@adacore.com>
6760
6761 * windows-nat.c (wait_for_debug_event): Move to
6762 nat/windows-nat.c.
6763 * nat/windows-nat.h (wait_for_debug_event): Declare.
6764 * nat/windows-nat.c (wait_for_debug_event): Move from
6765 windows-nat.c. No longer static.
6766
d2977bc4
TT
67672020-04-08 Tom Tromey <tromey@adacore.com>
6768
6769 * windows-nat.c (get_windows_debug_event): Use
6770 fetch_pending_stop.
6771 * nat/windows-nat.h (fetch_pending_stop): Declare.
6772 * nat/windows-nat.c (fetch_pending_stop): New function.
6773
e758e19c
TT
67742020-04-08 Tom Tromey <tromey@adacore.com>
6775
6776 * windows-nat.c (windows_continue): Use matching_pending_stop and
6777 continue_last_debug_event.
6778 * nat/windows-nat.h (matching_pending_stop)
6779 (continue_last_debug_event): Declare.
6780 * nat/windows-nat.c (DEBUG_EVENTS): New define.
6781 (matching_pending_stop, continue_last_debug_event): New
6782 functions.
6783
8d30e395
TT
67842020-04-08 Tom Tromey <tromey@adacore.com>
6785
6786 * windows-nat.c (MS_VC_EXCEPTION): Move to nat/windows-nat.c.
6787 (handle_exception_result): Move to nat/windows-nat.h.
6788 (DEBUG_EXCEPTION_SIMPLE): Remove.
6789 (windows_nat::handle_ms_vc_exception): New function.
6790 (handle_exception): Move to nat/windows-nat.c.
6791 (get_windows_debug_event): Update.
6792 (STATUS_WX86_BREAKPOINT, STATUS_WX86_SINGLE_STEP): Move to
6793 nat/windows-nat.c.
6794 * nat/windows-nat.h (handle_ms_vc_exception): Declare.
6795 (handle_exception_result): Move from windows-nat.c.
6796 (handle_exception): Declare.
6797 * nat/windows-nat.c (MS_VC_EXCEPTION, handle_exception)
6798 (STATUS_WX86_SINGLE_STEP, STATUS_WX86_BREAKPOINT): Move from
6799 windows-nat.c.
6800
29de418d
TT
68012020-04-08 Tom Tromey <tromey@adacore.com>
6802
6803 * windows-nat.c (exception_count, event_count): Remove.
6804 (handle_exception, get_windows_debug_event)
6805 (do_initial_windows_stuff): Update.
6806
a816ba18
TT
68072020-04-08 Tom Tromey <tromey@adacore.com>
6808
6809 * windows-nat.c (windows_nat::handle_load_dll)
6810 (windows_nat::handle_unload_dll): Rename. No longer static.
6811 * nat/windows-nat.h (handle_load_dll, handle_unload_dll):
6812 Declare.
6813
a00caa12
TT
68142020-04-08 Tom Tromey <tromey@adacore.com>
6815
6816 * complaints.h (stop_whining): Declare at top-level.
6817 (complaint): Don't declare stop_whining.
6818
d41b524f
TT
68192020-04-08 Tom Tromey <tromey@adacore.com>
6820
6821 * windows-nat.c (windows_nat::handle_output_debug_string):
6822 Rename. No longer static.
6823 * nat/windows-nat.h (handle_output_debug_string): Declare.
6824
3c76026d
TT
68252020-04-08 Tom Tromey <tromey@adacore.com>
6826
6827 * windows-nat.c (current_process_handle, current_process_id)
6828 (main_thread_id, last_sig, current_event, last_wait_event)
6829 (current_windows_thread, desired_stop_thread_id, pending_stops)
6830 (struct pending_stop, siginfo_er): Move to nat/windows-nat.c.
6831 (display_selectors, fake_create_process)
6832 (get_windows_debug_event): Update.
6833 * nat/windows-nat.h (current_process_handle, current_process_id)
6834 (main_thread_id, last_sig, current_event, last_wait_event)
6835 (current_windows_thread, desired_stop_thread_id, pending_stops)
6836 (struct pending_stop, siginfo_er): Move from windows-nat.c.
6837 * nat/windows-nat.c (current_process_handle, current_process_id)
6838 (main_thread_id, last_sig, current_event, last_wait_event)
6839 (current_windows_thread, desired_stop_thread_id, pending_stops)
6840 (siginfo_er): New globals. Move from windows-nat.c.
6841
9d8679cc
TT
68422020-04-08 Tom Tromey <tromey@adacore.com>
6843
6844 * windows-nat.c (get_image_name): Move to nat/windows-nat.c.
6845 (handle_load_dll): Update.
6846 * nat/windows-nat.c (get_image_name): Move from windows-nat.c.
6847
28688adf
TT
68482020-04-08 Tom Tromey <tromey@adacore.com>
6849
6850 * windows-nat.c (enum thread_disposition_type): Move to
6851 nat/windows-nat.h.
6852 (windows_nat::thread_rec): Rename from thread_rec. No longer
6853 static.
6854 (windows_add_thread, windows_nat_target::fetch_registers)
6855 (windows_nat_target::store_registers, handle_exception)
6856 (windows_nat_target::resume, get_windows_debug_event)
6857 (windows_nat_target::get_tib_address)
6858 (windows_nat_target::thread_name)
6859 (windows_nat_target::thread_alive): Update.
6860 * nat/windows-nat.h (enum thread_disposition_type): Move from
6861 windows-nat.c.
6862 (thread_rec): Declare.
6863
4834dad0
TT
68642020-04-08 Tom Tromey <tromey@adacore.com>
6865
6866 * windows-nat.c: Add "using namespace".
6867 * nat/windows-nat.h: Wrap contents in windows_nat namespace.
6868 * nat/windows-nat.c: Wrap contents in windows_nat namespace.
6869
65bafd5b
TT
68702020-04-08 Tom Tromey <tromey@adacore.com>
6871
6872 * nat/windows-nat.h (struct windows_thread_info): Declare
6873 destructor.
6874 * nat/windows-nat.c (~windows_thread_info): New.
6875
0a4afda3
TT
68762020-04-08 Tom Tromey <tromey@adacore.com>
6877
6878 PR gdb/22992
6879 * windows-nat.c (current_event): Update comment.
6880 (last_wait_event, desired_stop_thread_id): New globals.
6881 (struct pending_stop): New.
6882 (pending_stops): New global.
6883 (windows_nat_target) <stopped_by_sw_breakpoint>
6884 <supports_stopped_by_sw_breakpoint>: New methods.
6885 (windows_fetch_one_register): Add assertions. Adjust PC.
6886 (windows_continue): Handle pending stops. Suspend other threads
6887 when stepping. Use last_wait_event
6888 (wait_for_debug_event): New function.
6889 (get_windows_debug_event): Use wait_for_debug_event. Handle
6890 pending stops. Queue spurious stops.
6891 (windows_nat_target::wait): Set stopped_at_software_breakpoint.
6892 (windows_nat_target::kill): Use wait_for_debug_event.
6893 * nat/windows-nat.h (struct windows_thread_info)
6894 <stopped_at_software_breakpoint>: New field.
6895 * nat/windows-nat.c (windows_thread_info::resume): Clear
6896 stopped_at_software_breakpoint.
6897
8e61ebec
TT
68982020-04-08 Tom Tromey <tromey@adacore.com>
6899
6900 * windows-nat.c (enum thread_disposition_type): New.
6901 (thread_rec): Replace "get_context" parameter with "disposition";
6902 change type.
6903 (windows_add_thread, windows_nat_target::fetch_registers)
6904 (windows_nat_target::store_registers, handle_exception)
6905 (windows_nat_target::resume, get_windows_debug_event)
6906 (windows_nat_target::get_tib_address)
6907 (windows_nat_target::thread_name)
6908 (windows_nat_target::thread_alive): Update.
6909
98a03287
TT
69102020-04-08 Tom Tromey <tromey@adacore.com>
6911
6912 * windows-nat.c (thread_rec): Use windows_thread_info::suspend.
6913 (windows_continue): Use windows_continue::resume.
6914 * nat/windows-nat.h (struct windows_thread_info) <suspend,
6915 resume>: Declare new methods.
6916 * nat/windows-nat.c: New file.
6917 * configure.nat (NATDEPFILES): Add nat/windows-nat.o when needed.
6918
7c7411bc
TT
69192020-04-08 Tom Tromey <tromey@adacore.com>
6920
6921 * windows-nat.c (windows_add_thread, windows_delete_thread)
6922 (windows_nat_target::fetch_registers)
6923 (windows_nat_target::store_registers, fake_create_process)
6924 (windows_nat_target::resume, windows_nat_target::resume)
6925 (get_windows_debug_event, windows_nat_target::wait)
6926 (windows_nat_target::pid_to_str)
6927 (windows_nat_target::get_tib_address)
6928 (windows_nat_target::get_ada_task_ptid)
6929 (windows_nat_target::thread_name)
6930 (windows_nat_target::thread_alive): Use lwp, not tid.
6931
2950fdf7
TT
69322020-04-08 Tom Tromey <tromey@adacore.com>
6933
6934 * windows-nat.c (handle_exception)
6935 (windows_nat_target::thread_name): Update.
6936 * nat/windows-nat.h (windows_thread_info): Remove destructor.
6937 <name>: Now unique_xmalloc_ptr.
6938
62fe396b
TT
69392020-04-08 Tom Tromey <tromey@adacore.com>
6940
6941 * windows-nat.c (thread_rec)
6942 (windows_nat_target::fetch_registers): Update.
6943 * nat/windows-nat.h (struct windows_thread_info) <suspended>:
6944 Update comment.
6945 <debug_registers_changed, reload_context>: Now bool.
6946
e9534bd2
TT
69472020-04-08 Tom Tromey <tromey@adacore.com>
6948
6949 * windows-nat.c (windows_add_thread): Use new.
6950 (windows_init_thread_list, windows_delete_thread): Use delete.
6951 (get_windows_debug_event): Update.
6952 * nat/windows-nat.h (struct windows_thread_info): Add constructor,
6953 destructor, and initializers.
6954
ae1f8880
TT
69552020-04-08 Tom Tromey <tromey@adacore.com>
6956
6957 * windows-nat.c (struct windows_thread_info): Remove.
6958 * nat/windows-nat.h: New file.
6959
55a1e039
TT
69602020-04-08 Tom Tromey <tromey@adacore.com>
6961
6962 * windows-nat.c (struct windows_thread_info) <tid>: Rename from "id".
6963 (thread_rec, windows_add_thread, windows_delete_thread)
6964 (windows_continue): Update.
6965
93366324
TT
69662020-04-08 Tom Tromey <tromey@adacore.com>
6967
6968 * windows-nat.c (struct windows_thread_info): Remove typedef.
6969 (thread_head): Remove.
6970 (thread_list): New global.
6971 (thread_rec, windows_add_thread, windows_init_thread_list)
6972 (windows_delete_thread, windows_continue): Update.
6973
0f2265e2
SM
69742020-04-08 Simon Marchi <simon.marchi@polymtl.ca>
6975
6976 * windows-tdep.h (windows_init_abi): Add comment.
6977 (cygwin_init_abi): New declaration.
6978 * windows-tdep.c: Split signal enumeration in two, one for
6979 Windows and one for Cygwin.
6980 (windows_gdb_signal_to_target): Only deal with signal of the
6981 Windows OS ABI.
6982 (cygwin_gdb_signal_to_target): New function.
6983 (windows_init_abi): Rename to windows_init_abi_common, don't set
6984 gdb_signal_to_target gdbarch method. Add new new function with
6985 this name.
6986 (cygwin_init_abi): New function.
6987 * amd64-windows-tdep.c (amd64_windows_init_abi_common): Add
6988 comment. Don't call windows_init_abi.
6989 (amd64_windows_init_abi): Add comment, call windows_init_abi.
6990 (amd64_cygwin_init_abi): Add comment, call cygwin_init_abi.
6991 * i386-windows-tdep.c (i386_windows_init_abi): Rename to
6992 i386_windows_init_abi_common, don't call windows_init_abi. Add
6993 a new function of this name.
6994 (i386_cygwin_init_abi): New function.
6995 (_initialize_i386_windows_tdep): Bind i386_cygwin_init_abi to
6996 OS ABI Cygwin.
6997
3810f182
SM
69982020-04-08 Simon Marchi <simon.marchi@polymtl.ca>
6999
7000 * dwarf2/read.c (read_gdb_index_from_buffer): Remove objfile
7001 parameter.c.
7002 (dwarf2_read_gdb_index): Update.
7003
063f8e80
KR
70042020-04-07 Kamil Rytarowski <n54@gmx.com>
7005
7006 * nbsd-tdep.c: Include "objfiles.h".
7007 (nbsd_skip_solib_resolver): New.
7008 (nbsd_init_abi): Call set_gdbarch_skip_solib_resolver().
7009
85a9510c 70102020-04-07 Nitika Achra <Nitika.Achra@amd.com>
7011
7012 * dwarf2/loc.c (loclist_describe_location): Call the function decode_debug_loclists_
7013 addresses if DWARF version is 5 or more because DW_LLE_start* or DW_LLE_offset_pair
7014 with DW_LLE_base_addressx are being emitted in DWARFv5.
7015 Add the newly added kind DW_LOC_OFFSET_PAIR also.
7016 The length of location description is an unsigned ULEB integer in DWARFv5 instead of
7017 unsigned integer.
7018
9fc3eaae 70192020-04-07 Nitika Achra <Nitika.Achra@amd.com>
7020
7021 * dwarf2/loc.c (enum debug_loc_kind): Add a new kind DEBUG_LOC_OFFSET_PAIR.
7022 (dwarf2_find_location_expression): Call the function decode_debug_loclists_
7023 addresses if DWARF version is 5 or more. DW_LLE_start* or DW_LLE_offset_pair
7024 with DW_LLE_base_addressx are being emitted in DWARFv5 instead of DW_LLE_GNU*.
7025 Add applicable base address if the entry is DW_LLE_offset_pair from DWO.
7026 (decode_debug_loclists_addresses): Return DEBUG_LOC_OFFSET_PAIR instead of
7027 DEBUG_LOC_START_END in case of DW_LLE_offset_pair.
7028
7029
41144253 70302020-04-07 Nitika Achra <Nitika.Achra@amd.com>
7031
7032 * dwarf2/read.c (cu_debug_loc_section): Added the declaration for the function.
7033 (read_loclist_index): New function definition.
7034 (lookup_loclist_base): New function definition.
7035 (read_loclist_header): New function definition.
7036 (dwarf2_cu): Add loclist_base and loclist_header field.
7037 (dwarf2_locate_dwo_sections): Handle .debug_loclists.dwo section.
7038 (read_full_die_1): Read the value of DW_AT_loclists_base.
7039 (read_attribute_reprocess): Handle DW_FORM_loclistx.
7040 (read_attribute_value): Handle DW_FORM_loclistx.
7041 (skip_one_die): Handle DW_FORM_loclistx.
7042 (loclist_header): New structure declaration.
7043 * dwarf2/attribute.c (form_is_section_offset): Handle DW_FORM_loclistx.
7044
9f4e76a4
SM
70452020-04-07 Simon Marchi <simon.marchi@polymtl.ca>
7046
7047 * dwarf2/read.h (struct dwarf2_psymtab): Remove two-parameters
7048 constructor. Remove `addr` parameter from other constructor and
7049 add `per_cu` parameter.
7050 * dwarf2/read.c (create_partial_symtab): Update.
7051
25c11aca
TV
70522020-04-07 Tom de Vries <tdevries@suse.de>
7053
7054 PR symtab/25796
7055 * dwarf2/read.c (can_have_DW_AT_const_value_p): New function.
7056 (partial_die_info::fixup): Inherit has_const_value.
7057
5707e24b
TV
70582020-04-07 Tom de Vries <tdevries@suse.de>
7059
7060 * psymtab.c (maintenance_check_psymtabs): Skip static LOC_BLOCK
7061 symbols without address.
7062
05f00e22
KR
70632020-04-06 Kamil Rytarowski <n54@gmx.com>
7064
7065 * nbsd-nat.h (struct thread_info): Add forward declaration.
7066 (nbsd_nat_target::thread_alive): Add.
7067 (nbsd_nat_target::thread_name): Likewise.
7068 (nbsd_nat_target::update_thread_list): Likewise.
7069 (update_thread_list::post_attach): Likewise.
7070 (post_attach::pid_to_str): Likewise.
7071 * nbsd-nat.c: Include "gdbthread.h" and "inferior.h".
7072 (nbsd_thread_lister): Add.
7073 (nbsd_nat_target::thread_alive): Likewise.
7074 (nbsd_nat_target::thread_name): Likewise.
7075 (nbsd_add_threads): Likewise.
7076 (update_thread_list::post_attach): Likewise.
7077 (nbsd_nat_target::update_thread_list): Likewise.
7078 (post_attach::pid_to_str): Likewise.
7079
6ee448cc
TT
70802020-04-06 Tom Tromey <tromey@adacore.com>
7081
7082 * ada-valprint.c (print_variant_part): Extract the variant field.
7083 (print_field_values): Use the field as the outer value when
7084 recursing.
7085
dea34e8c
TT
70862020-04-06 Tom Tromey <tromey@adacore.com>
7087
7088 * sh-nbsd-tdep.c: Include nbsd-tdep.h.
7089 * ppc-nbsd-tdep.c: Include nbsd-tdep.h.
7090 * mips-nbsd-tdep.c (mipsnbsd_init_abi): Add missing ";".
7091 * arm-nbsd-tdep.c: Include nbsd-tdep.h.
7092 * hppa-nbsd-tdep.c: Include nbsd-tdep.h.
7093
93689ce9
TT
70942020-04-06 Tom Tromey <tromey@adacore.com>
7095
7096 * dwarf2/read.c (read_base_type) <DW_ATE_complex_float>: Handle
7097 TYPE_CODE_ERROR.
7098
79743962
KR
70992020-04-06 Kamil Rytarowski <n54@gmx.com>
7100
7101 * nbsd-tdep.c: Include "gdbarch.h".
7102 Define enum with NetBSD signal numbers.
7103 (nbsd_gdb_signal_from_target, nbsd_gdb_signal_to_target): New.
7104 * alpha-nbsd-tdep.c (alphanbsd_init_abi): Call nbsd_init_abi().
7105 * amd64-nbsd-tdep.c (amd64nbsd_init_abi): Likewise.
7106 * arm-nbsd-tdep.c (arm_netbsd_elf_init_abi): Likewise.
7107 * hppa-nbsd-tdep.c (hppanbsd_init_abi): Likewise.
7108 * i386-nbsd-tdep.c (i386nbsd_init_abi): Likewise.
7109 * mips-nbsd-tdep.c (nbsd_init_abi): Likewise.
7110 * ppc-nbsd-tdep.c (ppcnbsd_init_abi): Likewise.
7111 * sh-nbsd-tdep.c (shnbsd_init_abi): Likewise.
7112 * sparc-nbsd-tdep.c (sparc32nbsd_init_abi): Likewise.
7113 * sparc64-nbsd-tdep.c (sparc64nbsd_init_abi): Likewise.
7114 * vax-nbsd-tdep.c (vaxnbsd_elf_init_abi): Likewise.
7115
9e7c9a03
HD
71162020-04-03 Hannes Domani <ssbssa@yahoo.de>
7117
7118 PR gdb/25325
7119 * dwarf2/read.c (read_enumeration_type): Fix typed enum attributes.
7120
d9e49b61
TT
71212020-04-03 Tom Tromey <tromey@adacore.com>
7122
7123 * dwarf2/loc.c (disassemble_dwarf_expression) <DW_OP_const_type>:
7124 Read constant block.
7125
e0fc5c3f
SM
71262020-04-02 Simon Marchi <simon.marchi@polymtl.ca>
7127
7128 * gdb_bfd.h: Include gdbsupport/byte-vector.h.
7129 (gdb_bfd_get_full_section_contents): New declaration.
7130 * gdb_bfd.c (gdb_bfd_get_full_section_contents): New function.
7131 * windows-tdep.c (is_linked_with_cygwin_dll): Use
7132 gdb_bfd_get_full_section_contents.
7133
e2ff18a0
SM
71342020-04-02 Simon Marchi <simon.marchi@polymtl.ca>
7135
7136 * exec.c (build_section_table): Replace internal_error with
7137 gdb_assert.
7138 (section_table_xfer_memory_partial): Likewise.
7139 * mdebugread.c (parse_partial_symbols): Likewise.
7140 * psymtab.c (lookup_partial_symbol): Likewise.
7141 * utils.c (wrap_here): Likewise.
7142
0830d301
TT
71432020-04-02 Tom Tromey <tromey@adacore.com>
7144
7145 * f-lang.c (build_fortran_types): Use arch_type to initialize
7146 builtin_complex_s32 in the TYPE_CODE_ERROR case.
7147
e7da7f8f
TT
71482020-04-02 Tom Tromey <tromey@adacore.com>
7149
7150 * dwarf2/read.c (partial_die_info::read): Do not create a vector
7151 of attributes.
7152
c90d28ac
AB
71532020-04-02 Andrew Burgess <andrew.burgess@embecosm.com>
7154 Bernd Edlinger <bernd.edlinger@hotmail.de>
7155 Tom Tromey <tromey@adacore.com>
7156
7157 * buildsym.c (buildsym_compunit::record_line): Remove
7158 deduplication code.
7159
1aa98955
TV
71602020-04-02 Tom de Vries <tdevries@suse.de>
7161
7162 PR ada/24671
7163 * dwarf2/read.c (dw2_map_matching_symbols): Handle -readnow.
7164
d3214198
TV
71652020-04-02 Tom de Vries <tdevries@suse.de>
7166
7167 * dwarf2/read.c (dwarf2_gdb_index_functions,
7168 dwarf2_debug_names_functions): Init lookup_global_symbol_language with
7169 NULL.
7170 * psymtab.c (psym_lookup_global_symbol_language): New function.
7171 (psym_functions): Init psym_lookup_global_symbol_language with
7172 psym_lookup_global_symbol_language.
7173 * symfile-debug.c (debug_sym_quick_functions): Init
7174 lookup_global_symbol_language with NULL.
7175 * symfile.c (set_initial_language): Remove fixme comment.
7176 * symfile.h (struct quick_symbol_functions): Add
7177 lookup_global_symbol_language.
7178 * symtab.c (find_quick_global_symbol_language): New function.
7179 (find_main_name): Use find_quick_global_symbol_language.
7180
2836752f
SM
71812020-04-01 Simon Marchi <simon.marchi@polymtl.ca>
7182
7183 * windows-tdep.c (is_linked_with_cygwin_dll): Fix style.
7184
64dc2d4b
BE
71852020-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
7186
7187 * buildsym.c (record_line): Fix undefined behavior and preserve
7188 lines at eof.
7189
bbe3dc41
BE
71902020-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
7191
7192 * buildsym.c (record_line): Fix the resizing condition.
7193
6b4a335b
TT
71942020-04-01 Tom Tromey <tom@tromey.com>
7195
7196 * value.h (value_literal_complex): Add comment.
7197 * valops.c (value_literal_complex): Refer to value.h.
7198
3638a098
TT
71992020-04-01 Tom Tromey <tom@tromey.com>
7200
7201 * c-exp.y (FLOAT_KEYWORD, COMPLEX): New tokens.
7202 (scalar_type): New rule, from typebase.
7203 (typebase): Use scalar_type. Recognize complex types.
7204 (field_name): Handle FLOAT_KEYWORD.
7205 (ident_tokens): Add _Complex and __complex__.
7206
c34e8714
TT
72072020-04-01 Tom Tromey <tom@tromey.com>
7208
7209 PR exp/25299:
7210 * valarith.c (promotion_type, complex_binop): New functions.
7211 (scalar_binop): Handle complex numbers. Use promotion_type.
7212 (value_pos, value_neg, value_complement): Handle complex numbers.
7213
fa649bb7
TT
72142020-04-01 Tom Tromey <tom@tromey.com>
7215
7216 * c-exp.y (COMPLEX_INT, COMPLEX_FLOAT): New tokens.
7217 (exp) <COMPLEX_INT, COMPLEX_FLOAT>: New rules.
7218 (parse_number): Handle complex numbers.
7219
981c08ce
TT
72202020-04-01 Tom Tromey <tom@tromey.com>
7221
7222 * c-valprint.c (c_decorations): Change complex suffix to "i".
7223
4c99290d
TT
72242020-04-01 Tom Tromey <tom@tromey.com>
7225
7226 * valprint.c (generic_value_print_complex): Use accessors.
7227 * value.h (value_real_part, value_imaginary_part): Declare.
7228 * valops.c (value_real_part, value_imaginary_part): New
7229 functions.
7230 * value.c (creal_internal_fn, cimag_internal_fn): Use accessors.
7231
5b930b45
TT
72322020-04-01 Tom Tromey <tom@tromey.com>
7233
7234 * stabsread.c (rs6000_builtin_type, read_sun_floating_type)
7235 (read_range_type): Update.
7236 * mdebugread.c (basic_type): Update.
7237 * go-lang.c (build_go_types): Use init_complex_type.
7238 * gdbtypes.h (struct main_type) <complex_type>: New member.
7239 (init_complex_type): Update.
7240 (arch_complex_type): Don't declare.
7241 * gdbtypes.c (init_complex_type): Remove "objfile" parameter.
7242 Make name if none given. Use alloc_type_copy. Look for cached
7243 complex type.
7244 (arch_complex_type): Remove.
7245 (gdbtypes_post_init): Use init_complex_type.
7246 * f-lang.c (build_fortran_types): Use init_complex_type.
7247 * dwarf2/read.c (read_base_type): Update.
7248 * d-lang.c (build_d_types): Use init_complex_type.
7249 * ctfread.c (read_base_type): Update.
7250
53cccef1
TBA
72512020-04-01 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
7252
7253 * infrun.c (stop_all_threads): Update assertion, plus when
7254 stopping threads, take into account that we might be trying
7255 to stop an all-stop target.
7256 (stop_waiting): Call 'stop_all_threads' if there exists a
7257 non-stop target.
7258
a0714d30
TBA
72592020-04-01 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
7260
7261 * target.h (exists_non_stop_target): New function declaration.
7262 * target.c (exists_non_stop_target): New function.
7263
60e22c1e
HD
72642020-04-01 Hannes Domani <ssbssa@yahoo.de>
7265
7266 PR gdb/24789
7267 * eval.c (is_integral_or_integral_reference): New function.
7268 (evaluate_subexp_standard): Allow integer references in
7269 pointer arithmetic.
7270
e139a727
TBA
72712020-04-01 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
7272
7273 * remote.c (remote_target::remote_parse_stop_reply): Remove the
7274 check for no ptid in the stop reply when the target is non-stop.
7275
e0802d59
TT
72762020-04-01 Tom Tromey <tromey@adacore.com>
7277
7278 * symtab.h (class lookup_name_info) <lookup_name_info>: Change
7279 "name" parameter to rvalue reference. Initialize m_name_holder.
7280 <lookup_name_info>: New overloads.
7281 <name>: Return gdb::string_view.
7282 <c_str>: New method.
7283 <make_ignore_params>: Update.
7284 <search_name_hash>: Update.
7285 <language_lookup_name>: Return const char *.
7286 <m_name>: Change type.
7287 * symtab.c (demangle_for_lookup_info::demangle_for_lookup_info)
7288 (demangle_for_lookup_info::demangle_for_lookup_info): Update.
7289 (lookup_name_info::match_any): Update.
7290 * psymtab.c (match_partial_symbol, lookup_partial_symbol):
7291 Update.
7292 * minsyms.c (linkage_name_str): Update.
7293 * language.c (default_symbol_name_matcher): Update.
7294 * dwarf2/read.c (mapped_index_base::find_name_components_bounds):
7295 Update.
7296 * ada-lang.c (ada_fold_name): Change parameter to string_view.
7297 (ada_lookup_name_info::ada_lookup_name_info): Update.
7298 (literal_symbol_name_matcher): Update.
7299
8c072cb6
TT
73002020-04-01 Tom Tromey <tromey@adacore.com>
7301
7302 * psymtab.c (psymtab_search_name): Remove function.
7303 (psym_lookup_symbol): Create search name and lookup name here.
7304 (lookup_partial_symbol): Remove "name" parameter; add
7305 lookup_name.
7306 (psym_expand_symtabs_for_function): Update.
7307
6f29a534
TT
73082020-03-31 Joel Jones <joelkevinjones@gmail.com>
7309
7310 PR tui/25597:
7311 * python/py-tui.c: Include gdb_curses.h inside of #ifdef TUI.
7312
af62665e
TT
73132020-03-31 Tom Tromey <tromey@adacore.com>
7314
7315 * dwarf2/abbrev.c (abbrev_table::read): Conditionally call
7316 memcpy.
7317
d1a89da5
NC
73182020-03-30 Nelson Chu <nelson.chu@sifive.com>
7319
7320 * features/riscv/32bit-csr.xml: Regenerated.
7321 * features/riscv/64bit-csr.xml: Regenerated.
7322
d8af9068
TT
73232020-03-30 Tom Tromey <tromey@adacore.com>
7324
7325 * ada-valprint.c (print_variant_part): Update.
7326 * ada-lang.h (ada_which_variant_applies): Update.
7327 * ada-lang.c (ada_which_variant_applies): Remove outer_type and
7328 outer_valaddr parameters; replace with "outer" value parameter.
7329 (to_fixed_variant_branch_type): Update.
7330
227c0bf4
PFC
73312020-03-30 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
7332
7333 * ppc-linux-nat.c: Include <algorithm>, <unordered_map>, and
7334 <list>. Remove inclusion of observable.h.
7335 (PPC_DEBUG_CURRENT_VERSION): Move up define.
7336 (struct arch_lwp_info): New struct.
7337 (class ppc_linux_dreg_interface): New class.
7338 (struct ppc_linux_process_info): New struct.
7339 (struct ppc_linux_nat_target) <low_delete_thread, low_new_fork>
7340 <low_new_clone, low_forget_process, low_prepare_to_resume>
7341 <copy_thread_dreg_state, mark_thread_stale>
7342 <mark_debug_registers_changed, register_hw_breakpoint>
7343 <clear_hw_breakpoint, register_wp, clear_wp>
7344 <can_use_watchpoint_cond_accel, calculate_dvc, check_condition>
7345 <num_memory_accesses, get_trigger_type>
7346 <create_watchpoint_request, hwdebug_point_cmp>
7347 <init_arch_lwp_info, get_arch_lwp_info>
7348 <low_stopped_by_watchpoint, low_stopped_data_address>: Declare as
7349 methods.
7350 <struct ptid_hash>: New inner struct.
7351 <m_dreg_interface, m_process_info, m_installed_hw_bps>: Declare
7352 members.
7353 (saved_dabr_value, hwdebug_info, max_slots_number)
7354 (struct hw_break_tuple, struct thread_points, ppc_threads)
7355 (have_ptrace_hwdebug_interface)
7356 (hwdebug_find_thread_points_by_tid)
7357 (hwdebug_insert_point, hwdebug_remove_point): Remove.
7358 (ppc_linux_nat_target::can_use_hw_breakpoint): Use
7359 m_dreg_interface, remove call to PTRACE_SET_DEBUGREG.
7360 (ppc_linux_nat_target::region_ok_for_hw_watchpoint): Add comment,
7361 use m_dreg_interface.
7362 (hwdebug_point_cmp): Change to...
7363 (ppc_linux_nat_target::hwdebug_point_cmp): ...this method. Use
7364 reference arguments instead of pointers.
7365 (ppc_linux_nat_target::ranged_break_num_registers): Use
7366 m_dreg_interface.
7367 (ppc_linux_nat_target::insert_hw_breakpoint): Add comment, use
7368 m_dreg_interface. Call register_hw_breakpoint.
7369 (ppc_linux_nat_target::remove_hw_breakpoint): Add comment, use
7370 m_dreg_interface. Call clear_hw_breakpoint.
7371 (get_trigger_type): Change to...
7372 (ppc_linux_nat_target::get_trigger_type): ...this method. Add
7373 comment.
7374 (ppc_linux_nat_target::insert_mask_watchpoint): Update comment,
7375 use m_dreg_interface. Call register_hw_breakpoint.
7376 (ppc_linux_nat_target::remove_mask_watchpoint): Update comment,
7377 use m_dreg_interface. Call clear_hw_breakpoint.
7378 (can_use_watchpoint_cond_accel): Change to...
7379 (ppc_linux_nat_target::can_use_watchpoint_cond_accel): ...this
7380 method. Update comment, use m_dreg_interface and
7381 m_process_info.
7382 (calculate_dvc): Change to...
7383 (ppc_linux_nat_target::calculate_dvc): ...this method. Use
7384 m_dreg_interface.
7385 (num_memory_accesses): Change to...
7386 (ppc_linux_nat_target::num_memory_accesses): ...this method.
7387 (check_condition): Change to...
7388 (ppc_linux_nat_target::check_condition): ...this method.
7389 (ppc_linux_nat_target::can_accel_watchpoint_condition): Update
7390 comment, use m_dreg_interface.
7391 (create_watchpoint_request): Change to...
7392 (ppc_linux_nat_target::create_watchpoint_request): ...this
7393 method. Use m_dreg_interface.
7394 (ppc_linux_nat_target::insert_watchpoint): Add comment, use
7395 m_dreg_interface. Call register_hw_breakpoint or register_wp.
7396 (ppc_linux_nat_target::remove_watchpoint): Add comment, use
7397 m_dreg_interface. Call clear_hw_breakpoint or clear_wp.
7398 (ppc_linux_nat_target::low_forget_process)
7399 (ppc_linux_nat_target::low_new_fork)
7400 (ppc_linux_nat_target::low_new_clone)
7401 (ppc_linux_nat_target::low_delete_thread)
7402 (ppc_linux_nat_target::low_prepare_to_resume): New methods.
7403 (ppc_linux_nat_target::low_new_thread): Remove previous logic,
7404 only call mark_thread_stale.
7405 (ppc_linux_thread_exit): Remove.
7406 (ppc_linux_nat_target::stopped_data_address): Change to...
7407 (ppc_linux_nat_target::low_stopped_data_address): This. Add
7408 comment, use m_dreg_interface and m_thread_hw_breakpoints.
7409 (ppc_linux_nat_target::stopped_by_watchpoint): Change to...
7410 (ppc_linux_nat_target::stopped_by_watchpoint): This. Add
7411 comment. Call low_stopped_data_address.
7412 (ppc_linux_nat_target::watchpoint_addr_within_range): Use
7413 m_dreg_interface.
7414 (ppc_linux_nat_target::masked_watch_num_registers): Use
7415 m_dreg_interface.
7416 (ppc_linux_nat_target::copy_thread_dreg_state)
7417 (ppc_linux_nat_target::mark_thread_stale)
7418 (ppc_linux_nat_target::mark_debug_registers_changed)
7419 (ppc_linux_nat_target::register_hw_breakpoint)
7420 (ppc_linux_nat_target::clear_hw_breakpoint)
7421 (ppc_linux_nat_target::register_wp)
7422 (ppc_linux_nat_target::clear_wp)
7423 (ppc_linux_nat_target::init_arch_lwp_info)
7424 (ppc_linux_nat_target::get_arch_lwp_info): New methods.
7425 (_initialize_ppc_linux_nat): Remove observer callback.
7426
4db10d8f
PFC
74272020-03-30 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
7428
7429 * ppc-linux-nat.c (ppc_linux_nat_target::store_registers)
7430 (ppc_linux_nat_target::auxv_parse)
7431 (ppc_linux_nat_target::read_description)
7432 (supply_gregset, fill_gregset, supply_fpregset, fill_fpregset):
7433 Move up.
7434
1310c1b0
PFC
74352020-03-30 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
7436
7437 * linux-nat.h (low_new_clone): New method.
7438 * linux-nat.c (linux_handle_extended_wait): Call low_new_clone.
7439
69b037c3
SM
74402020-03-29 Simon Marchi <simon.marchi@polymtl.ca>
7441
7442 * dbxread.c (dbx_psymtab_to_symtab_1): Rename to...
7443 (dbx_expand_psymtab): ... this.
7444 (start_psymtab): Update.
7445 * mdebugread.c (psymtab_to_symtab_1): Rename to...
7446 (mdebug_expand_psymtab): ... this.
7447 (parse_partial_symbols): Update.
7448 (new_psymtab): Update.
7449 * xcoffread.c (xcoff_psymtab_to_symtab_1): Rename to...
7450 (xcoff_expand_psymtab): ... this.
7451 (xcoff_start_psymtab): Update.
7452
48993951
SM
74532020-03-29 Simon Marchi <simon.marchi@polymtl.ca>
7454
7455 * psympriv.h (partial_symtab) <read_dependencies>: Rename to...
7456 <expand_dependencies>: ... this.
7457 * psymtab.c (partial_symtab::read_dependencies): Rename to...
7458 (partial_symtab::expand_dependencies): ... this.
7459 * dwarf2/read.c (dwarf2_include_psymtab) <expand_psymtab>:
7460 Update.
7461 (dwarf2_psymtab::expand_psymtab): Update.
7462 * dbxread.c (dbx_psymtab_to_symtab_1): Update.
7463 * mdebugread.c (psymtab_to_symtab_1): Update.
7464 * xcoffread.c (xcoff_psymtab_to_symtab_1): Update.
7465
3ad83046
SM
74662020-03-29 Simon Marchi <simon.marchi@polymtl.ca>
7467
7468 * psympriv.h (discard_psymtab): Remove.
7469 * dbxread.c (dbx_end_psymtab): Update.
7470 * xcoffread.c (xcoff_end_psymtab): Update.
7471
4d1b9ab6
TT
74722020-03-28 Tom Tromey <tom@tromey.com>
7473
7474 * dwarf2/attribute.h (struct attribute) <form_is_constant>: Update
7475 comment.
7476
f1749218
TT
74772020-03-28 Tom Tromey <tom@tromey.com>
7478
7479 * dwarf2/read.c (read_attribute_reprocess): Fix formatting.
7480
ebea7626
HD
74812020-03-27 Hannes Domani <ssbssa@yahoo.de>
7482
7483 * windows-nat.c (windows_add_all_dlls): Fix system dll paths.
7484
a879b4d5
JB
74852020-03-26 John Baldwin <jhb@FreeBSD.org>
7486
7487 * fbsd-tdep.c (fbsd_print_auxv_entry): Handle AT_FREEBSD_BSDFLAGS.
7488
0826b30a
TT
74892020-03-26 Tom Tromey <tom@tromey.com>
7490
7491 * dwarf2/read.c (handle_data_member_location, dwarf2_add_field)
7492 (mark_common_block_symbol_computed, read_tag_string_type)
7493 (attr_to_dynamic_prop, read_subrange_type): Update.
7494 (dwarf2_get_ref_die_offset, dwarf2_get_attr_constant_value): Move
7495 to be methods on struct attribute.
7496 (skip_one_die, process_imported_unit_die, read_namespace_alias)
7497 (read_call_site_scope, partial_die_info::read)
7498 (partial_die_info::read, lookup_die_type, follow_die_ref):
7499 Update.
7500 * dwarf2/attribute.c (attribute::get_ref_die_offset): New method,
7501 from dwarf2_get_ref_die_offset.
7502 (attribute::constant_value): New method, from
7503 dwarf2_get_attr_constant_value.
7504 * dwarf2/attribute.h (struct attribute) <get_ref_die_offset>:
7505 Declare method.
7506 <constant_value>: New method.
7507
2b2558bf
TT
75082020-03-26 Tom Tromey <tom@tromey.com>
7509
7510 * dwarf2/read.c (dwarf_unit_type_name, dwarf_tag_name)
7511 (dwarf_attr_name, dwarf_form_name, dwarf_bool_name)
7512 (dwarf_type_encoding_name): Move to stringify.c.
7513 * Makefile.in (COMMON_SFILES): Add dwarf2/stringify.c.
7514 * dwarf2/stringify.c: New file.
7515 * dwarf2/stringify.h: New file.
7516
eeb64781
TT
75172020-03-26 Tom Tromey <tom@tromey.com>
7518
7519 * dwarf2/die.h (struct die_info) <addr_base, ranges_base>:
7520 Rewrite.
7521
a39fdb41
TT
75222020-03-26 Tom Tromey <tom@tromey.com>
7523
7524 * dwarf2/die.h (struct die_info) <addr_base, ranges_base>: New
7525 methods.
7526 * dwarf2/read.c (lookup_addr_base): Move to die.h.
7527 (lookup_ranges_base): Likewise.
7528 (read_cutu_die_from_dwo, read_full_die_1): Update.
7529
436c571c
TT
75302020-03-26 Tom Tromey <tom@tromey.com>
7531
7532 * dwarf2/read.c (read_import_statement, read_file_scope)
7533 (read_type_unit_scope, inherit_abstract_dies, read_func_scope)
7534 (read_lexical_block_scope, read_call_site_scope)
7535 (dwarf2_get_subprogram_pc_bounds, get_scope_pc_bounds)
7536 (handle_struct_member_die, process_structure_scope)
7537 (update_enumeration_type_from_children)
7538 (process_enumeration_scope, read_array_type, read_common_block)
7539 (read_namespace, read_module, read_subroutine_type): Update.
7540 (sibling_die): Remove.
7541
052c8bb8
TT
75422020-03-26 Tom Tromey <tom@tromey.com>
7543
7544 * dwarf2/read.c (lookup_addr_base, lookup_ranges_base)
7545 (build_type_psymtabs_reader, read_structure_type)
7546 (read_enumeration_type, read_full_die_1): Update.
7547 (dwarf2_attr_no_follow): Move to die.h.
7548 * dwarf2/die.h (struct die_info) <attr>: New method.
7549
2b24b6e4
TT
75502020-03-26 Tom Tromey <tom@tromey.com>
7551
7552 * dwarf2/read.c (struct dwarf2_cu) <base_known>: Remove.
7553 <base_address>: Now an optional.
7554 (dwarf2_find_base_address, dwarf2_rnglists_process)
7555 (dwarf2_ranges_process, fill_in_loclist_baton)
7556 (dwarf2_symbol_mark_computed): Update.
7557
c2d50fd0
TT
75582020-03-26 Tom Tromey <tom@tromey.com>
7559
7560 * dwarf2/read.c (struct die_info): Move to die.h.
7561 * dwarf2/die.h: New file.
7562
0df7ad3a
TT
75632020-03-26 Tom Tromey <tom@tromey.com>
7564
7565 * dwarf2/line-header.h (dwarf_decode_line_header): Declare.
7566 * dwarf2/read.c
7567 (dwarf2_statement_list_fits_in_line_number_section_complaint):
7568 Move to line-header.c.
7569 (read_checked_initial_length_and_offset, read_formatted_entries):
7570 Likewise.
7571 (dwarf_decode_line_header): Split into two.
7572 * dwarf2/line-header.c
7573 (dwarf2_statement_list_fits_in_line_number_section_complaint):
7574 Move from read.c.
7575 (read_checked_initial_length_and_offset, read_formatted_entries):
7576 Likewise.
7577 (dwarf_decode_line_header): New function, split from read.c.
7578
86c0bb4c
TT
75792020-03-26 Tom Tromey <tom@tromey.com>
7580
7581 * dwarf2/read.h (struct dwarf2_per_objfile) <read_line_string>:
7582 Declare method.
7583 * dwarf2/read.c (read_attribute_value): Update.
7584 (dwarf2_per_objfile::read_line_string): Rename from
7585 read_indirect_line_string.
7586 (read_formatted_entries): Update.
7587
2ef46c2f
TT
75882020-03-26 Tom Tromey <tom@tromey.com>
7589
7590 * dwarf2/macro.c (dwarf_decode_macro_bytes): Use objfile local
7591 variable.
7592
4f9c1eda
TT
75932020-03-26 Tom Tromey <tom@tromey.com>
7594
7595 * dwarf2/macro.h (dwarf_decode_macros): Make section parameter
7596 const.
7597 * dwarf2/macro.c (skip_form_bytes, skip_unknown_opcode)
7598 (dwarf_decode_macro_bytes, dwarf_decode_macros): Make section
7599 parameter const.
7600
5a0e026f
TT
76012020-03-26 Tom Tromey <tom@tromey.com>
7602
7603 * dwarf2/read.c (dwarf_decode_macros): Make "lh" const.
7604 * dwarf2/macro.h (dwarf_decode_macros): Constify "lh" parameter.
7605 * dwarf2/macro.c (macro_start_file): Constify "lh" parameter.
7606 (dwarf_decode_macro_bytes, dwarf_decode_macros): Likewise.
7607
8844c11b
TT
76082020-03-26 Tom Tromey <tom@tromey.com>
7609
7610 * dwarf2/line-header.h (struct line_header) <is_valid_file_index,
7611 file_names_size, file_full_name, file_file_name>: Use const.
7612 <file_name_at, file_names>: Add const overload.
7613 * dwarf2/line-header.c (line_header::file_file_name)
7614 (line_header::file_full_name): Update.
7615
c90ec28a
TT
76162020-03-26 Tom Tromey <tom@tromey.com>
7617
7618 * dwarf2/read.c (dwarf2_macro_malformed_definition_complaint)
7619 (macro_start_file, consume_improper_spaces)
7620 (parse_macro_definition, skip_form_bytes, skip_unknown_opcode)
7621 (dwarf_parse_macro_header, dwarf_decode_macro_bytes)
7622 (dwarf_decode_macros): Move to macro.c.
7623 * dwarf2/macro.c: New file.
7624 * dwarf2/macro.h: New file.
7625 * Makefile.in (COMMON_SFILES): Add dwarf2/macro.c.
7626
4f44ae6c
TT
76272020-03-26 Tom Tromey <tom@tromey.com>
7628
7629 * dwarf2/section.h (struct dwarf2_section_info) <read_string>: New
7630 method.
7631 * dwarf2/section.c: New method. From
7632 read_indirect_string_at_offset_from.
7633 * dwarf2/read.c (mapped_debug_names::namei_to_name): Update.
7634 (read_indirect_string_at_offset_from): Move to section.c.
7635 (read_indirect_string_at_offset): Rewrite.
7636 (read_indirect_line_string_at_offset): Remove.
7637 (read_indirect_string, read_indirect_line_string)
7638 (dwarf_decode_macro_bytes): Update.
7639
a0194fa8
TT
76402020-03-26 Tom Tromey <tom@tromey.com>
7641
7642 * dwarf2/section.h (struct dwarf2_section_info)
7643 <overload_complaint>: Declare.
7644 (dwarf2_section_buffer_overflow_complaint): Don't declare.
7645 * dwarf2/section.c (dwarf2_section_info::overflow_complaint):
7646 Rename from dwarf2_section_buffer_overflow_complaint.
7647 * dwarf2/read.c (skip_one_die, partial_die_info::read)
7648 (skip_form_bytes, dwarf_decode_macro_bytes): Update.
7649
3d27bbdb
TT
76502020-03-26 Tom Tromey <tom@tromey.com>
7651
7652 * dwarf2/section.h (dwarf2_section_buffer_overflow_complaint):
7653 Declare.
7654 * dwarf2/section.c (dwarf2_section_buffer_overflow_complaint):
7655 Move from read.c.
7656 * dwarf2/read.c (dwarf2_section_buffer_overflow_complaint): Move
7657 to section.c.
7658
9eac9650
TT
76592020-03-26 Tom Tromey <tom@tromey.com>
7660
7661 * dwarf2/read.c (dwarf_decode_macros): Split into two overloads.
7662
bf80d710
TT
76632020-03-26 Tom Tromey <tom@tromey.com>
7664
7665 * dwarf2/read.c (macro_start_file): Change "cu" parameter to
7666 "builder".
7667 (dwarf_decode_macro_bytes): Likewise. Add dwarf2_per_objfile
7668 parameter.
7669 (dwarf_decode_macros): Update.
7670
0314b390
TT
76712020-03-26 Tom Tromey <tom@tromey.com>
7672
7673 * dwarf2/read.c (read_attribute_value): Update.
7674 (read_indirect_string_from_dwz): Move to dwz.c; change into
7675 method.
7676 (dwarf_decode_macro_bytes): Update.
7677 * dwarf2/dwz.h (struct dwz_file) <read_string>: Declare method.
7678 * dwarf2/dwz.c: New file.
7679 * Makefile.in (COMMON_SFILES): Add dwz.c.
7680
9fda78b6
TT
76812020-03-26 Tom Tromey <tom@tromey.com>
7682
7683 * dwarf2/read.h (struct dwz_file): Move to dwz.h.
7684 * dwarf2/read.c: Add include.
7685 * dwarf2/index-write.c: Add include.
7686 * dwarf2/index-cache.c: Add include.
7687 * dwarf2/dwz.h: New file.
7688
33aa3c10
TT
76892020-03-25 Tom Tromey <tom@tromey.com>
7690
7691 * compile/compile-object-load.c (get_out_value_type): Mention
7692 correct symbol name in error message.
7693
d503b685
HD
76942020-03-25 Hannes Domani <ssbssa@yahoo.de>
7695
7696 * windows-nat.c (windows_add_all_dlls): Fix system dll paths.
7697
7b1eff95
TV
76982020-03-25 Tom de Vries <tdevries@suse.de>
7699
7700 * symtab.h (is_main_symtab_of_compunit_symtab): New function.
7701 * symmisc.c (dump_symtab_1): Print user and includes fields.
7702 (maintenance_info_symtabs): Same.
7703
dd895392
AB
77042020-03-25 Andrew Burgess <andrew.burgess@embecosm.com>
7705
7706 PR gdb/25534
7707 * riscv-tdep.c (riscv_arg_info::c_offset): Update comment.
7708 (riscv_regcache_cooked_write): New function.
7709 (riscv_push_dummy_call): Use new function.
7710 (riscv_return_value): Likewise.
7711
5ab2fbf1
SM
77122020-03-24 Simon Marchi <simon.marchi@polymtl.ca>
7713
7714 * fbsd-nat.c (fbsd_nat_target::follow_fork): Change bool to int.
7715 * fbsd-nat.h (class fbsd_nat_target) <follow_fork>: Likewise.
7716 * inf-ptrace.c (inf_ptrace_target::follow_fork): Likewise.
7717 * inf-ptrace.h (struct inf_ptrace_target) <follow_fork>: Likewise.
7718 * infrun.c (follow_fork): Likewise.
7719 (follow_fork_inferior): Likewise.
7720 * linux-nat.c (linux_nat_target::follow_fork): Likewise.
7721 * linux-nat.h (class linux_nat_target): Likewise.
7722 * remote.c (class remote_target) <follow_fork>: Likewise.
7723 (remote_target::follow_fork): Likewise.
7724 * target-delegates.c: Re-generate.
7725 * target.c (default_follow_fork): Likewise.
7726 (target_follow_fork): Likewise.
7727 * target.h (struct target_ops) <follow_fork>: Likewise.
7728 (target_follow_fork): Likewise.
7729
a64fafb5
TV
77302020-03-24 Tom de Vries <tdevries@suse.de>
7731
7732 * psymtab.c (maintenance_info_psymtabs): Print user field.
7733
fe26d3a3
TT
77342020-03-20 Tom Tromey <tromey@adacore.com>
7735
7736 * dwarf2/loc.h (dwarf2_evaluate_property): Make "addr_stack"
7737 const.
7738 * dwarf2/loc.c (dwarf2_evaluate_property): Make "addr_stack"
7739 const.
7740
c884cc46
SM
77412020-03-20 Simon Marchi <simon.marchi@efficios.com>
7742
7743 * ptrace.m4: Don't check for ptrace declaration.
7744 * config.in: Re-generate.
7745 * configure: Re-generate.
7746 * nat/gdb_ptrace.h: Don't declare ptrace if HAVE_DECL_PTRACE is
7747 not defined.
7748
1ff700c2
KR
77492020-03-20 Kamil Rytarowski <n54@gmx.com>
7750
7751 * amd64-bsd-nat.c (gdb_ptrace): Change return type from `int' to
7752 `PTRACE_TYPE_RET'.
7753 * i386-bsd-nat.c (gdb_ptrace): Likewise.
7754 * sparc-nat.c (gdb_ptrace): Likewise.
7755 * x86-bsd-nat.c (gdb_ptrace): Likewise.
7756
f7d4f0b1
TT
77572020-03-20 Tom Tromey <tromey@adacore.com>
7758
7759 * c-exp.y (lex_one_token): Fix assert.
7760
f67210ff
TT
77612020-03-20 Tom Tromey <tromey@adacore.com>
7762
7763 * ada-tasks.c (read_atcb): Use smaller length in strncpy call.
7764 * linux-tdep.c (linux_fill_prpsinfo): Use smaller length in
7765 strncpy call.
7766
1773be9e
TT
77672020-03-20 Tom Tromey <tromey@adacore.com>
7768
7769 * symmisc.c (maintenance_print_one_line_table): Use ui_out.
7770
70304be9
TT
77712020-03-20 Tom Tromey <tromey@adacore.com>
7772
7773 * ada-valprint.c (print_variant_part): Remove parameters; switch
7774 to value-based API.
7775 (print_field_values): Likewise.
7776 (ada_val_print_struct_union): Likewise.
7777 (ada_value_print_1): Update.
7778
9faa006d
KR
77792020-03-20 Kamil Rytarowski <n54@gmx.com>
7780
7781 * ppc-nbsd-nat.c (ppc_nbsd_nat_target): Inherit from
7782 nbsd_nat_target instead of inf_ptrace_target.
7783 * ppc-nbsd-nat.c: Include "nbsd-nat.h", as we are now using
7784 nbsd_nat_target.
7785
4a90f062
KR
77862020-03-20 Kamil Rytarowski <n54@gmx.com>
7787
7788 * hppa-nbsd-nat.c (fetch_registers): New variable lwp and pass
7789 it to the ptrace call.
7790 * (store_registers): Likewise.
7791
77922020-03-20 Kamil Rytarowski <n54@gmx.com>
c7da12c7
KR
7793
7794 * ppc-nbsd-nat.c (fetch_registers): New variable lwp and pass
7795 it to the ptrace call.
7796 * (store_registers): Likewise.
7797
2d07da27
LM
77982020-03-19 Luis Machado <luis.machado@linaro.org>
7799
7800 * nat/aarch64-sve-linux-ptrace.c (aarch64_sve_set_vq): If vg is not
7801 valid, fetch vg value from ptrace.
7802
f09db380
KR
78032020-03-19 Kamil Rytarowski <n54@gmx.com>
7804 * inf-ptrace.h: Disable get_ptrace_pid on NetBSD.
7805 * inf-ptrace.c: Likewise.
7806 * (gdb_ptrace): Add.
7807 * (inf_ptrace_target::resume): Update.
7808 * (inf_ptrace_target::xfer_partial): Likewise.
7809 * (inf_ptrace_peek_poke): Change argument `pid' to `ptid'.
7810 * (inf_ptrace_peek_poke): Update.
7811
fcc7376e
KR
78122020-03-19 Kamil Rytarowski <n54@gmx.com>
7813
7814 * x86-bsd-nat.c (gdb_ptrace): New.
7815 * (x86bsd_dr_set): Add new argument `ptid'.
7816 * (x86bsd_dr_get, x86bsd_dr_set, x86bsd_dr_set_control,
7817 x86bsd_dr_set_addr): Update.
7818
cada5fc9
AB
78192020-03-19 Andrew Burgess <andrew.burgess@embecosm.com>
7820
7821 * remote.c (remote_target::process_stop_reply): Handle events for
7822 all threads differently.
7823
19a2740f
AB
78242020-03-19 Andrew Burgess <andrew.burgess@embecosm.com>
7825
7826 * completer.c (completion_tracker::remove_completion): Define new
7827 function.
7828 * completer.h (completion_tracker::remove_completion): Declare new
7829 function.
7830 * symtab.c (completion_list_add_symbol): Remove aliasing msymbols
7831 when adding a C++ function symbol.
7832
724fd9ba
AB
78332020-03-19 Andrew Burgess <andrew.burgess@embecosm.com>
7834
7835 * completer.c (completion_tracker::completion_hash_entry): Define
7836 new class.
7837 (advance_to_filename_complete_word_point): Call
7838 recompute_lowest_common_denominator.
7839 (completion_tracker::completion_tracker): Call discard_completions
7840 to setup the hash table.
7841 (completion_tracker::discard_completions): Allow for being called
7842 from the constructor, pass new equal function, and element deleter
7843 when constructing the hash table. Initialise new class member
7844 variables.
7845 (completion_tracker::maybe_add_completion): Remove use of
7846 m_entries_vec, and store more information into m_entries_hash.
7847 (completion_tracker::recompute_lcd_visitor): New function, most
7848 content taken from...
7849 (completion_tracker::recompute_lowest_common_denominator):
7850 ...here, this now just visits each item in the hash calling the
7851 above visitor.
7852 (completion_tracker::build_completion_result): Remove use of
7853 m_entries_vec, call recompute_lowest_common_denominator.
7854 * completer.h (completion_tracker::have_completions): Remove use
7855 of m_entries_vec.
7856 (completion_tracker::completion_hash_entry): Declare new class.
7857 (completion_tracker::recompute_lowest_common_denominator): Change
7858 function signature.
7859 (completion_tracker::recompute_lcd_visitor): Declare new function.
7860 (completion_tracker::m_entries_vec): Delete.
7861 (completion_tracker::m_entries_hash): Initialize to NULL.
7862 (completion_tracker::m_lowest_common_denominator_valid): New
7863 member variable.
7864 (completion_tracker::m_lowest_common_denominator_max_length): New
7865 member variable.
7866
5a82b8a1
KR
78672020-03-17 Kamil Rytarowski <n54@gmx.com>
7868
7869 * regformats/regdef.h: Put reg in gdb namespace.
7870
fb516a69
KR
78712020-03-17 Kamil Rytarowski <n54@gmx.com>
7872
7873 * i386-bsd-nat.c (gdb_ptrace): New.
7874 * (i386bsd_fetch_inferior_registers,
7875 i386bsd_store_inferior_registers) Switch from pid_t to ptid_t.
7876 * (i386bsd_fetch_inferior_registers,
7877 i386bsd_store_inferior_registers) Use gdb_ptrace.
7878
1c0aa1fb
KR
78792020-03-17 Kamil Rytarowski <n54@gmx.com>
7880
7881 * amd64-bsd-nat.c (gdb_ptrace): New.
7882 * (amd64bsd_fetch_inferior_registers,
7883 amd64bsd_store_inferior_registers) Switch from pid_t to ptid_t.
7884 * (amd64bsd_fetch_inferior_registers,
7885 amd64bsd_store_inferior_registers) Use gdb_ptrace.
7886
5ccd2fb7
KR
78872020-03-17 Kamil Rytarowski <n54@gmx.com>
7888
7889 * user-regs.c (user_reg::read): Rename to...
7890 (user_reg::xread): ...this.
7891 * (append_user_reg): Rename argument `read' to `xread'.
7892 * (user_reg_add_builtin): Likewise.
7893 * (user_reg_add): Likewise.
7894 * (value_of_user_reg): Likewise.
7895
2108a63a
KR
78962020-03-17 Kamil Rytarowski <n54@gmx.com>
7897
7898 * sparc-nat.c (gdb_ptrace): New.
7899 * sparc-nat.c (sparc_fetch_inferior_registers)
7900 (sparc_store_inferior_registers) Remove obsolete comment.
7901 * sparc-nat.c (sparc_fetch_inferior_registers)
7902 (sparc_store_inferior_registers) Switch from pid_t to ptid_t.
7903 * sparc-nat.c (sparc_fetch_inferior_registers)
7904 (sparc_store_inferior_registers) Use gdb_ptrace.
7905
a225c9a8
KR
79062020-03-17 Kamil Rytarowski <n54@gmx.com>
7907
7908 * sh-nbsd-nat.c (fetch_registers): New variable lwp and pass
7909 it to the ptrace call.
7910 * sh-nbsd-nat.c (store_registers): Likewise.
7911
98097623
KR
79122020-03-17 Kamil Rytarowski <n54@gmx.com>
7913
7914 * sh-nbsd-nat.c (sh_nbsd_nat_target): Inherit from
7915 nbsd_nat_target instead of inf_ptrace_target.
7916 * sh-nbsd-nat.c: Include "nbsd-nat.h", as we are now using
7917 nbsd_nat_target.
7918
9e38d619
KR
79192020-03-17 Kamil Rytarowski <n54@gmx.com>
7920
7921 * amd64-bsd-nat.c: Include amd64-bsd-nat.h".
7922
a2ecbe9f
KR
79232020-03-17 Kamil Rytarowski <n54@gmx.com>
7924
7925 * nbsd-nat.c: Include <sys/types.h>, <sys/ptrace.h> and
7926 <sys/sysctl.h>.
7927 * nbsd-nat.c (nbsd_nat_target::pid_to_exec_file): Rewrite.
7928
58990295
TV
79292020-03-17 Tom de Vries <tdevries@suse.de>
7930
7931 PR gdb/23710
7932 * dwarf2/read.h (struct dwarf2_per_cu_data): Add unit_type and lang
7933 fields.
7934 * dwarf2/read.c (process_psymtab_comp_unit): Initialize unit_type and lang
7935 fields.
7936 (process_imported_unit_die): Skip import of c++ CUs.
7937
771dd3a8
TT
79382020-03-16 Tom Tromey <tom@tromey.com>
7939
7940 * p-valprint.c (pascal_object_print_value): Initialize
7941 base_value.
7942
817a7585
AK
79432020-03-16 Anton Kolesov <anton.kolesov@synopsys.com>
7944 Shahab Vahedi <shahab@synopsys.com>
7945
7946 * Makefile.in: Add arch/arc.o
7947 * configure.tgt: Likewise.
7948 * arc-tdep.c (arc_tdesc_init): Use arc_read_description.
7949 (_initialize_arc_tdep): Don't initialize old target descriptions.
aac66a4c 7950 (arc_read_description): New function to cache target descriptions.
817a7585
AK
7951 * arc-tdep.h (arc_read_description): Add proto type.
7952 * arch/arc.c: New file.
7953 * arch/arc.h: Likewise.
7954 * features/Makefile: Replace old target descriptions with new.
7955 * features/arc-arcompact.c: Remove.
7956 * features/arc-arcompact.xml: Likewise.
7957 * features/arc-v2.c: Likewise
7958 * features/arc-v2.xml: Likewise
7959 * features/arc/aux-arcompact.xml: New file.
7960 * features/arc/aux-v2.xml: Likewise.
7961 * features/arc/core-arcompact.xml: Likewise.
7962 * features/arc/core-v2.xml: Likewise.
7963 * features/arc/aux-arcompact.c: Generate.
7964 * features/arc/aux-v2.c: Likewise.
7965 * features/arc/core-arcompact.c: Likewise.
7966 * features/arc/core-v2.c: Likewise.
7967 * target-descriptions (maint_print_c_tdesc_cmd): Support ARC features.
7968
67430cd0
TT
79692020-03-16 Tom Tromey <tromey@adacore.com>
7970
7971 PR gdb/25663:
7972 * dwarf2/read.c (dwarf2_name): Strip leading namespaces after
7973 putting value into bcache.
7974
30efb6c7
SM
79752020-03-16 Simon Marchi <simon.marchi@efficios.com>
7976
7977 PR gdb/21500
7978 * amd64-windows-tdep.c (amd64_windows_init_abi): Rename
7979 to...
7980 (amd64_windows_init_abi_common): ... this. Don't set size of
7981 long type.
7982 (amd64_windows_init_abi): New function.
7983 (amd64_cygwin_init_abi): New function.
7984 (_initialize_amd64_windows_tdep): Use amd64_cygwin_init_abi for
7985 the Cygwin OS ABI.
7986 * i386-windows-tdep.c (_initialize_i386_windows_tdep): Clarify
7987 comment.
7988
8db52437
SM
79892020-03-16 Simon Marchi <simon.marchi@efficios.com>
7990
7991 * windows-tdep.h (is_linked_with_cygwin_dll): New declaration.
7992 * windows-tdep.c (CYGWIN_DLL_NAME): New.
7993 (pe_import_directory_entry): New struct type.
7994 (is_linked_with_cygwin_dll): New function.
7995 * amd64-windows-tdep.c (amd64_windows_osabi_sniffer): Select
7996 GDB_OSABI_CYGWIN if the BFD is linked with the Cygwin DLL.
7997 * i386-windows-tdep.c (i386_windows_osabi_sniffer): Likewise.
7998
5982a56a
SM
79992020-03-16 Simon Marchi <simon.marchi@efficios.com>
8000
8001 * i386-windows-tdep.c: Mass-rename "cygwin" to "windows", except
8002 i386_cygwin_core_osabi_sniffer.
8003
7a1998df
SM
80042020-03-16 Simon Marchi <simon.marchi@efficios.com>
8005
8006 * i386-cygwin-tdep.c: Rename to...
8007 * i386-windows-tdep.c: ... this.
8008 * Makefile.in (ALL_TARGET_OBS): Rename i386-cygwin-tdep.c to
8009 i386-windows-tdep.c.
8010 * configure.tgt: Likewise.
8011
053205cc
SM
80122020-03-16 Simon Marchi <simon.marchi@efficios.com>
8013
8014 * osabi.h (enum gdb_osabi): Add GDB_OSABI_WINDOWS.
8015 * osabi.c (gdb_osabi_names): Add "Windows".
8016 * i386-cygwin-tdep.c (i386_cygwin_osabi_sniffer): Return
8017 GDB_OSABI_WINDOWS when the binary's target is "pei-i386".
8018 (i386_cygwin_core_osabi_sniffer): New function, extracted from
8019 i386_cygwin_osabi_sniffer.
8020 (_initialize_i386_cygwin_tdep): Register OS ABI
8021 GDB_OSABI_WINDOWS for i386.
8022 * amd64-windows-tdep.c (amd64_windows_osabi_sniffer): Return
8023 GDB_OSABI_WINDOWS when the binary's target is "pei-x86-64".
8024 (_initialize_amd64_windows_tdep): Register OS ABI GDB_OSABI_WINDOWS
8025 for x86-64.
8026 * configure.tgt: Use GDB_OSABI_WINDOWS as the default OS ABI
8027 when the target matches '*-*-mingw*'.
8028
fe4b2ee6
SM
80292020-03-16 Simon Marchi <simon.marchi@efficios.com>
8030
8031 * defs.h (enum gdb_osabi): Move to...
8032 * osabi.h (enum gdb_osabi): ... here.
8033 * gdbarch.sh: Include osabi.h in gdbarch.h.
8034 * gdbarch.h: Re-generate.
8035
cb9b645d
SM
80362020-03-16 Simon Marchi <simon.marchi@efficios.com>
8037
8038 * amd64-windows-tdep.c (amd64_windows_osabi_sniffer): New
8039 function.
8040 (_initialize_amd64_windows_tdep): Register osabi sniffer.
8041
3293bbaf
TT
80422020-03-14 Tom Tromey <tom@tromey.com>
8043
8044 * c-typeprint.c (cp_type_print_method_args): Print "__restrict__"
8045 for C++.
8046 (c_type_print_modifier): Likewise. Add "language" parameter.
8047 (c_type_print_varspec_prefix, c_type_print_base_struct_union)
8048 (c_type_print_base_1): Update.
8049 * type-stack.h (enum type_pieces) <tp_atomic, tp_restrict>: New
8050 constants.
8051 * type-stack.c (type_stack::insert): Handle tp_atomic and
8052 tp_restrict.
8053 (type_stack::follow_type_instance_flags): Likewise.
8054 (type_stack::follow_types): Likewise. Merge type-following code.
8055 * c-exp.y (RESTRICT, ATOMIC): New tokens.
8056 (space_identifier, cv_with_space_id)
8057 (const_or_volatile_or_space_identifier_noopt)
8058 (const_or_volatile_or_space_identifier): Remove.
8059 (single_qualifier, qualifier_seq_noopt, qualifier_seq): New
8060 rules.
8061 (ptr_operator, typebase): Update.
8062 (enum token_flag) <FLAG_C>: New constant.
8063 (ident_tokens): Add "restrict", "__restrict__", "__restrict", and
8064 "_Atomic".
8065 (lex_one_token): Handle FLAG_C.
8066
154151a6
KR
80672020-03-14 Kamil Rytarowski <n54@gmx.com>
8068
8069 * m68k-bsd-nat.c (fetch_registers): New variable lwp and pass
8070 it to the ptrace call.
8071 * m68k-bsd-nat.c (store_registers): Likewise.
8072
bc107784
KR
80732020-03-14 Kamil Rytarowski <n54@gmx.com>
8074
8075 * m68k-bsd-nat.c (m68kbsd_supply_gregset): Change type of regs to
8076 gdb_byte *.
8077 * m68k-bsd-nat.c (m68kbsd_supply_fpregset): Likewise.
8078 * m68k-bsd-nat.c (m68kbsd_collect_gregset): Likewise.
8079 * m68k-bsd-nat.c (m68kbsd_supply_pcb): Cast &tmp to gdb_byte *.
8080
01a80117
KR
80812020-03-14 Kamil Rytarowski <n54@gmx.com>
8082
8083 * m68k-bsd-nat.c (m68k_bsd_nat_target): Inherit from
8084 nbsd_nat_target instead of inf_ptrace_target.
8085 * m68k-bsd-nat.c: Include "nbsd-nat.h", as we are now using
8086 nbsd_nat_target.
8087
f90280ca
KR
80882020-03-14 Kamil Rytarowski <n54@gmx.com>
8089
8090 * m68k-bsd-nat.c: Define _KERNTYPES to get the declaration of
8091 register_t.
8092
6def66f1
KR
80932020-03-14 Kamil Rytarowski <n54@gmx.com>
8094
8095 * alpha-bsd-nat.c (fetch_registers): New variable lwp and pass
8096 it to the ptrace call.
8097 * alpha-bsd-nat.c (store_registers): Likewise.
8098
66eaca97
KR
80992020-03-14 Kamil Rytarowski <n54@gmx.com>
8100
8101 * alpha-bsd-nat.c: Remove <sys/procfs.h> and "gregset.h" from
8102 includes.
8103 * alpha-bsd-nat.c (gregset_t, fpregset_t): Remove.
8104 * alpha-bsd-nat.c (supply_gregset, fill_gregset, supply_fpregset,
8105 fill_fpregset): Likewise.
8106
4fed520b
KR
81072020-03-14 Kamil Rytarowski <n54@gmx.com>
8108
8109 * alpha-bsd-nat.c (alpha_netbsd_nat_target): Inherit from
8110 nbsd_nat_target instead of inf_ptrace_target.
8111 * alpha-bsd-nat.c: Include "nbsd-nat.h", as we are now using
8112 nbsd_nat_target.
8113
2190cf06
KR
81142020-03-14 Kamil Rytarowski <n54@gmx.com>
8115
8116 * alpha-bsd-nat.c: Define _KERNTYPES to get the declaration of
8117 register_t.
8118
75c56d3d
KR
81192020-03-14 Kamil Rytarowski <n54@gmx.com>
8120
8121 * arm-nbsd-nat.c (fetch_register): New variable lwp and pass
8122 it to the ptrace call.
8123 * arm-nbsd-nat.c (fetch_fp_register): Likewise.
8124 * arm-nbsd-nat.c (fetch_fp_regs): Likewise.
8125 * arm-nbsd-nat.c (store_register): Likewise.
8126 * arm-nbsd-nat.c (store_regs): Likewise.
8127 * arm-nbsd-nat.c (store_fp_register): Likewise.
8128 * arm-nbsd-nat.c (store_fp_regs): Likewise.
8129
6018d381
KR
81302020-03-14 Kamil Rytarowski <n54@gmx.com>
8131
8132 * arm-nbsd-nat.c (arm_netbsd_nat_target): Inherit from
8133 nbsd_nat_target instead of inf_ptrace_target.
8134 * arm-nbsd-nat.c: Include "nbsd-nat.h", as we are now using
8135 nbsd_nat_target.
8136
013f99f0
KR
81372020-03-14 Kamil Rytarowski <n54@gmx.com>
8138
8139 * x86-bsd-nat.c (x86bsd_dr_get): New variable lwp and pass
8140 it to the ptrace call.
8141 * x86-bsd-nat.c (x86bsd_dr_set): Likewise.
8142
12753073
KR
81432020-03-14 Kamil Rytarowski <n54@gmx.com>
8144
6227b330
KR
8145 * vax-bsd-nat.c (vaxbsd_supply_gregset): New variable lwp and pass
8146 it to the ptrace call.
8147 * vax-bsd-nat.c (vaxbsd_collect_gregset): Likewise.
8148
81492020-03-14 Kamil Rytarowski <n54@gmx.com>
8150
8151 * vax-bsd-nat.c (vaxbsd_supply_gregset): Cast gregs to const
8152 gdb_byte *.
12753073
KR
8153 * vax-bsd-nat.c (vaxbsd_collect_gregset): Cast gregs to void *.
8154
d5be5fa4
KR
81552020-03-14 Kamil Rytarowski <n54@gmx.com>
8156
8157 * vax-bsd-nat.c (vax_bsd_nat_target): Inherit from nbsd_nat_target
8158 instead of inf_ptrace_target.
8159 * vax-bsd-nat.c: Include "nbsd-nat.h", as we are now using
8160 nbsd_nat_target.
8161
8110f842
KR
81622020-03-14 Kamil Rytarowski <n54@gmx.com>
8163
8164 * mips-nbsd-nat.c: Define _KERNTYPES to get the declaration of
8165 register_t.
8166
52feded7
KR
81672020-03-14 Kamil Rytarowski <n54@gmx.com>
8168
8169 * ppc-nbsd-nat.c: Define _KERNTYPES to get the declaration of
8170 register_t.
8171
25567eee
KR
81722020-03-14 Kamil Rytarowski <n54@gmx.com>
8173
8174 * vax-bsd-nat.c: Define _KERNTYPES to get the declaration of
8175 register_t.
8176
426a9c18
TT
81772020-03-13 Tom Tromey <tom@tromey.com>
8178
8179 * value.h (val_print): Don't declare.
8180 * valprint.h (val_print_array_elements)
8181 (val_print_scalar_formatted, generic_val_print): Don't declare.
8182 * valprint.c (generic_val_print_array): Take a struct value.
8183 (generic_val_print_ptr, generic_val_print_memberptr)
8184 (generic_val_print_bool, generic_val_print_int)
8185 (generic_val_print_char, generic_val_print_complex)
8186 (generic_val_print): Remove.
8187 (generic_value_print): Update.
8188 (do_val_print): Remove unused parameters. Don't call
8189 la_val_print.
8190 (val_print): Remove.
8191 (common_val_print): Update. Don't call value_check_printable.
8192 (val_print_scalar_formatted, val_print_array_elements): Remove.
8193 * rust-lang.c (rust_val_print): Remove.
8194 (rust_language_defn): Update.
8195 * p-valprint.c (pascal_val_print): Remove.
8196 (pascal_value_print_inner): Update.
8197 (pascal_object_print_val_fields, pascal_object_print_val):
8198 Remove.
8199 (pascal_object_print_static_field): Update.
8200 * p-lang.h (pascal_val_print): Don't declare.
8201 * p-lang.c (pascal_language_defn): Update.
8202 * opencl-lang.c (opencl_language_defn): Update.
8203 * objc-lang.c (objc_language_defn): Update.
8204 * m2-valprint.c (m2_print_unbounded_array, m2_val_print): Remove.
8205 * m2-lang.h (m2_val_print): Don't declare.
8206 * m2-lang.c (m2_language_defn): Update.
8207 * language.h (struct language_defn) <la_val_print>: Remove.
8208 * language.c (unk_lang_value_print_inner): Rename. Change
8209 argument types.
8210 (unknown_language_defn, auto_language_defn): Update.
8211 * go-valprint.c (go_val_print): Remove.
8212 * go-lang.h (go_val_print): Don't declare.
8213 * go-lang.c (go_language_defn): Update.
8214 * f-valprint.c (f_val_print): Remove.
8215 * f-lang.h (f_value_print): Don't declare.
8216 * f-lang.c (f_language_defn): Update.
8217 * d-valprint.c (d_val_print): Remove.
8218 * d-lang.h (d_value_print): Don't declare.
8219 * d-lang.c (d_language_defn): Update.
8220 * cp-valprint.c (cp_print_value_fields)
8221 (cp_print_value_fields_rtti, cp_print_value): Remove.
8222 (cp_print_static_field): Update.
8223 * c-valprint.c (c_val_print_array, c_val_print_ptr)
8224 (c_val_print_struct, c_val_print_union, c_val_print_int)
8225 (c_val_print_memberptr, c_val_print): Remove.
8226 * c-lang.h (c_val_print_array, cp_print_value_fields)
8227 (cp_print_value_fields_rtti): Don't declare.
8228 * c-lang.c (c_language_defn, cplus_language_defn)
8229 (asm_language_defn, minimal_language_defn): Update.
8230 * ada-valprint.c (ada_val_print_ptr, ada_val_print_num): Remove.
8231 (ada_val_print_enum): Take a struct value.
8232 (ada_val_print_flt, ada_val_print_array, ada_val_print_1)
8233 (ada_val_print): Remove.
8234 (ada_value_print_1): Update.
8235 (printable_val_type): Remove.
8236 * ada-lang.h (ada_val_print): Don't declare.
8237 * ada-lang.c (ada_language_defn): Update.
8238
42331a1e
TT
82392020-03-13 Tom Tromey <tom@tromey.com>
8240
8241 * valprint.c (do_val_print): Update.
8242 * python/python-internal.h (gdbpy_apply_val_pretty_printer): Take
8243 a struct value.
8244 (value_to_value_object_no_release): Declare.
8245 * python/py-value.c (value_to_value_object_no_release): New
8246 function.
8247 * python/py-prettyprint.c (gdbpy_apply_val_pretty_printer): Take a
8248 struct value.
8249 * guile/scm-value.c (vlscm_scm_from_value_no_release): New
8250 function.
8251 * guile/scm-pretty-print.c (gdbscm_apply_val_pretty_printer): Take
8252 a struct value.
8253 * guile/guile-internal.h (vlscm_scm_from_value_no_release):
8254 Declare.
8255 (gdbscm_apply_val_pretty_printer): Take a struct value.
8256 * extension.h (apply_ext_lang_val_pretty_printer): Take a struct
8257 value.
8258 * extension.c (apply_ext_lang_val_pretty_printer): Take a struct
8259 value.
8260 * extension-priv.h (struct extension_language_ops)
8261 <apply_val_pretty_printer>: Take a struct value.
8262 * cp-valprint.c (cp_print_value): Create a struct value.
8263 (cp_print_value): Update.
8264
3a916a97
TT
82652020-03-13 Tom Tromey <tom@tromey.com>
8266
8267 * ada-valprint.c (print_field_values): Call common_val_print.
8268
b59eac37
TT
82692020-03-13 Tom Tromey <tom@tromey.com>
8270
8271 * ada-valprint.c (val_print_packed_array_elements): Remove
8272 bitoffset and val parameters. Call common_val_print.
8273 (ada_val_print_string): Remove offset, address, and original_value
8274 parameters.
8275 (ada_val_print_array): Update.
8276 (ada_value_print_array): New function.
8277 (ada_value_print_1): Call it.
8278
03371129
TT
82792020-03-13 Tom Tromey <tom@tromey.com>
8280
8281 * ada-valprint.c (ada_value_print): Use common_val_print.
8282
2e088f8b
TT
82832020-03-13 Tom Tromey <tom@tromey.com>
8284
8285 * ada-valprint.c (ada_val_print_ref): Use common_val_print.
8286
39ef85a8
TT
82872020-03-13 Tom Tromey <tom@tromey.com>
8288
8289 * ada-valprint.c (ada_value_print_num): New function.
8290 (ada_value_print_1): Use it.
8291
b9fa6e07
TT
82922020-03-13 Tom Tromey <tom@tromey.com>
8293
8294 * ada-valprint.c (ada_value_print_1) <TYPE_CODE_FLT>: Rewrite.
8295
416595d6
TT
82962020-03-13 Tom Tromey <tom@tromey.com>
8297
8298 * ada-valprint.c (ada_value_print_ptr): New function.
8299 (ada_value_print_1): Use it.
8300
5b5e15ec
TT
83012020-03-13 Tom Tromey <tom@tromey.com>
8302
8303 * ada-valprint.c (ada_val_print_gnat_array): Take a struct value;
8304 call common_val_print.
8305 (ada_val_print_1): Update.
8306 (ada_value_print_1): New function.
8307 (ada_value_print_inner): Rewrite.
8308
fbf54e75
TT
83092020-03-13 Tom Tromey <tom@tromey.com>
8310
8311 * cp-valprint.c (cp_print_value_fields): Update.
8312 (cp_print_value): New function.
8313
64b653ca
TT
83142020-03-13 Tom Tromey <tom@tromey.com>
8315
8316 * m2-valprint.c (m2_value_print_inner): Use
8317 cp_print_value_fields.
8318 * cp-valprint.c (cp_print_value_fields): New function.
8319 * c-valprint.c (c_value_print_struct): New function.
8320 (c_value_print_inner): Use c_value_print_struct.
8321 * c-lang.h (cp_print_value_fields): Declare.
8322
6999f067
TT
83232020-03-13 Tom Tromey <tom@tromey.com>
8324
8325 * c-valprint.c (c_value_print_array): New function.
8326 (c_value_print_inner): Use it.
8327
ce80b8bd
TT
83282020-03-13 Tom Tromey <tom@tromey.com>
8329
8330 * c-valprint.c (c_value_print_memberptr): New function.
8331 (c_value_print_inner): Use it.
8332
2faac269
TT
83332020-03-13 Tom Tromey <tom@tromey.com>
8334
8335 * c-valprint.c (c_value_print_int): New function.
8336 (c_value_print_inner): Use it.
8337
da3e2c29
TT
83382020-03-13 Tom Tromey <tom@tromey.com>
8339
8340 * c-valprint.c (c_value_print_ptr): New function.
8341 (c_value_print_inner): Use it.
8342
50836231
TT
83432020-03-13 Tom Tromey <tom@tromey.com>
8344
8345 * c-valprint.c (c_value_print_inner): Rewrite.
8346
4f412b6e
TT
83472020-03-13 Tom Tromey <tom@tromey.com>
8348
8349 * valprint.c (generic_value_print_complex): New function.
8350 (generic_value_print): Use it.
8351
f5354008
TT
83522020-03-13 Tom Tromey <tom@tromey.com>
8353
8354 * valprint.c (generic_val_print_float): Don't call
8355 val_print_scalar_formatted.
8356 (generic_val_print, generic_value_print): Update.
8357
3eec3b05
TT
83582020-03-13 Tom Tromey <tom@tromey.com>
8359
8360 * valprint.c (generic_value_print_char): New function
8361 (generic_value_print): Use it.
8362
fdddfccb
TT
83632020-03-13 Tom Tromey <tom@tromey.com>
8364
8365 * valprint.c (generic_value_print_int): New function.
8366 (generic_value_print): Use it.
8367
6dde7521
TT
83682020-03-13 Tom Tromey <tom@tromey.com>
8369
8370 * valprint.c (generic_value_print_bool): New function.
8371 (generic_value_print): Use it.
8372
4112d2e6
TT
83732020-03-13 Tom Tromey <tom@tromey.com>
8374
8375 * valprint.c (generic_val_print_func): Simplify.
8376 (generic_val_print, generic_value_print): Update.
8377
65786af6
TT
83782020-03-13 Tom Tromey <tom@tromey.com>
8379
8380 * valprint.c (generic_val_print_flags): Remove.
8381 (generic_val_print, generic_value_print): Update.
8382 (val_print_type_code_flags): Add original_value parameter.
8383
40f3ce18
TT
83842020-03-13 Tom Tromey <tom@tromey.com>
8385
8386 * valprint.c (generic_val_print): Update.
8387 (generic_value_print): Update.
8388 * valprint.c (generic_val_print_enum): Don't call
8389 val_print_scalar_formatted.
8390
2a5b130b
TT
83912020-03-13 Tom Tromey <tom@tromey.com>
8392
8393 * valprint.c (generic_value_print): Call generic_value_print_ptr.
8394 * valprint.c (generic_value_print_ptr): New function.
8395
abc66ce9
TT
83962020-03-13 Tom Tromey <tom@tromey.com>
8397
8398 * valprint.c (generic_value_print): Rewrite.
8399
07a32858
TT
84002020-03-13 Tom Tromey <tom@tromey.com>
8401
8402 * p-valprint.c (pascal_object_print_value_fields)
8403 (pascal_object_print_value): New functions.
8404
64d64d3a
TT
84052020-03-13 Tom Tromey <tom@tromey.com>
8406
8407 * p-valprint.c (pascal_value_print_inner): Rewrite.
8408
6a95a1f5
TT
84092020-03-13 Tom Tromey <tom@tromey.com>
8410
8411 * f-valprint.c (f_value_print_innner): Rewrite.
8412
59fcdac6
TT
84132020-03-13 Tom Tromey <tom@tromey.com>
8414
8415 * m2-valprint.c (m2_print_unbounded_array): New overload.
8416 (m2_print_unbounded_array): Update.
8417 (m2_print_array_contents): Take a struct value.
8418 (m2_value_print_inner): Rewrite.
8419
d133c3e1
TT
84202020-03-13 Tom Tromey <tom@tromey.com>
8421
8422 * d-valprint.c (dynamic_array_type): Call d_value_print_inner.
8423 (d_value_print_inner): New function.
8424 * d-lang.h (d_value_print_inner): Declare.
8425 * d-lang.c (d_language_defn): Use d_value_print_inner.
8426
23b0f06b
TT
84272020-03-13 Tom Tromey <tom@tromey.com>
8428
8429 * go-valprint.c (go_value_print_inner): New function.
8430 * go-lang.h (go_value_print_inner): Declare.
8431 * go-lang.c (go_language_defn): Use go_value_print_inner.
8432
5f56f7cb
TT
84332020-03-13 Tom Tromey <tom@tromey.com>
8434
8435 * rust-lang.c (val_print_struct, rust_print_enum): Use the value
8436 API.
8437 (rust_val_print): Rewrite.
8438 (rust_value_print_inner): New function, from rust_val_print.
8439 (rust_language_defn): Use rust_value_print_inner.
8440
26792ee0
TT
84412020-03-13 Tom Tromey <tom@tromey.com>
8442
8443 * ada-valprint.c (ada_value_print_inner): New function.
8444 * ada-lang.h (ada_value_print_inner): Declare.
8445 * ada-lang.c (ada_language_defn): Use ada_value_print_inner.
8446
24051bbe
TT
84472020-03-13 Tom Tromey <tom@tromey.com>
8448
8449 * f-valprint.c (f_value_print_innner): New function.
8450 * f-lang.h (f_value_print_innner): Declare.
8451 * f-lang.c (f_language_defn): Use f_value_print_innner.
8452
c0941be6
TT
84532020-03-13 Tom Tromey <tom@tromey.com>
8454
8455 * p-valprint.c (pascal_value_print_inner): New function.
8456 * p-lang.h (pascal_value_print_inner): Declare.
8457 * p-lang.c (pascal_language_defn): Use pascal_value_print_inner.
8458
62c4663d
TT
84592020-03-13 Tom Tromey <tom@tromey.com>
8460
8461 * m2-valprint.c (m2_value_print_inner): New function.
8462 * m2-lang.h (m2_value_print_inner): Declare.
8463 * m2-lang.c (m2_language_defn): Use m2_value_print_inner.
8464
62182190
TT
84652020-03-13 Tom Tromey <tom@tromey.com>
8466
8467 * opencl-lang.c (opencl_language_defn): Use c_value_print_inner.
8468 * objc-lang.c (objc_language_defn): Use c_value_print_inner.
8469 * c-valprint.c (c_value_print_inner): New function.
8470 * c-lang.h (c_value_print_inner): Declare.
8471 * c-lang.c (c_language_defn, cplus_language_defn)
8472 (asm_language_defn, minimal_language_defn): Use
8473 c_value_print_inner.
8474
1e592a8a
TT
84752020-03-13 Tom Tromey <tom@tromey.com>
8476
8477 * p-valprint.c (pascal_object_print_value_fields): Now static.
8478 * p-lang.h (pascal_object_print_value_fields): Don't declare.
8479
7fe471e9
TT
84802020-03-13 Tom Tromey <tom@tromey.com>
8481
8482 * c-valprint.c (c_val_print_array): Simplify.
8483
d121c6ce
TT
84842020-03-13 Tom Tromey <tom@tromey.com>
8485
8486 * valprint.c (value_print_array_elements): New function.
8487 * valprint.h (value_print_array_elements): Declare.
8488
4dba70ee
TT
84892020-03-13 Tom Tromey <tom@tromey.com>
8490
8491 * printcmd.c (print_formatted): Use value_print_scalar_formatted.
8492 * mips-tdep.c (mips_print_register): Use
8493 value_print_scalar_formatted.
8494
4f9ae810
TT
84952020-03-13 Tom Tromey <tom@tromey.com>
8496
8497 * valprint.h (value_print_scalar_formatted): Declare.
8498 * valprint.c (value_print_scalar_formatted): New function.
8499
156bfec9
TT
85002020-03-13 Tom Tromey <tom@tromey.com>
8501
8502 * valprint.h (generic_value_print): Declare.
8503 * valprint.c (generic_value_print): New function.
8504
2b4e573d
TT
85052020-03-13 Tom Tromey <tom@tromey.com>
8506
8507 * valprint.c (do_val_print): Call la_value_print_inner, if
8508 available.
8509 * rust-lang.c (rust_language_defn): Update.
8510 * p-lang.c (pascal_language_defn): Update.
8511 * opencl-lang.c (opencl_language_defn): Update.
8512 * objc-lang.c (objc_language_defn): Update.
8513 * m2-lang.c (m2_language_defn): Update.
8514 * language.h (struct language_defn) <la_value_print_inner>: New
8515 member.
8516 * language.c (unknown_language_defn, auto_language_defn): Update.
8517 * go-lang.c (go_language_defn): Update.
8518 * f-lang.c (f_language_defn): Update.
8519 * d-lang.c (d_language_defn): Update.
8520 * c-lang.c (c_language_defn, cplus_language_defn)
8521 (asm_language_defn, minimal_language_defn): Update.
8522 * ada-lang.c (ada_language_defn): Update.
8523
a1f6a07c
TT
85242020-03-13 Tom Tromey <tom@tromey.com>
8525
8526 * c-valprint.c (c_value_print): Use common_val_print.
8527
410cf315
TT
85282020-03-13 Tom Tromey <tom@tromey.com>
8529
8530 * cp-valprint.c (cp_print_static_field): Use common_val_print.
8531
72a45c93
TT
85322020-03-13 Tom Tromey <tom@tromey.com>
8533
8534 * f-valprint.c (f77_print_array_1, f_val_print): Use
8535 common_val_print.
8536
040f66bd
TT
85372020-03-13 Tom Tromey <tom@tromey.com>
8538
8539 * riscv-tdep.c (riscv_print_one_register_info): Use
8540 common_val_print.
8541
a6e05a6c
TT
85422020-03-13 Tom Tromey <tom@tromey.com>
8543
8544 * mi/mi-main.c (output_register): Use common_val_print.
8545
3444c526
TT
85462020-03-13 Tom Tromey <tom@tromey.com>
8547
8548 * infcmd.c (default_print_one_register_info): Use
8549 common_val_print.
8550
c2a44efe
TT
85512020-03-13 Tom Tromey <tom@tromey.com>
8552
8553 * valprint.h (common_val_print_checked): Declare.
8554 * valprint.c (common_val_print_checked): New function.
8555 * stack.c (print_frame_arg): Use common_val_print_checked.
8556
b0c26e99
TT
85572020-03-13 Tom Tromey <tom@tromey.com>
8558
8559 * valprint.c (do_val_print): New function, from val_print.
8560 (val_print): Use do_val_print.
8561 (common_val_print): Use do_val_print.
8562
ce3acbe9
TT
85632020-03-13 Tom Tromey <tom@tromey.com>
8564
8565 * valprint.c (value_print): Use scoped_value_mark.
8566
96c7f873
TV
85672020-03-13 Tom de Vries <tdevries@suse.de>
8568
8569 PR symtab/25646
8570 * psymtab.c (partial_symtab::partial_symtab): Don't set
8571 globals_offset and statics_offset. Push element onto
8572 current_global_psymbols and current_static_psymbols stacks.
8573 (concat): New function.
8574 (end_psymtab_common): Set globals_offset and statics_offset. Pop
8575 element from current_global_psymbols and current_static_psymbols
8576 stacks. Concat popped elements to global_psymbols and
8577 static_symbols.
8578 (add_psymbol_to_list): Use current_global_psymbols and
8579 current_static_psymbols stacks.
8580 * psymtab.h (class psymtab_storage): Add current_global_psymbols and
8581 current_static_psymbols fields.
8582
6ba0a321
CB
85832020-03-12 Christian Biesinger <cbiesinger@google.com>
8584
8585 * corelow.c (sniff_core_bfd): Remove.
8586 (class core_target) <m_core_vec>: Remove.
8587 (core_target::core_target): Update.
8588 (core_file_fns): Remove.
8589 (deprecated_add_core_fns): Remove.
8590 (default_core_sniffer): Remove.
8591 (sniff_core_bfd): Remove.
8592 (default_check_format): Remove.
8593 (gdb_check_format): Remove.
8594 (core_target_open): Update.
8595 (core_target::get_core_register_section): Update.
8596 (get_core_registers_cb): Update.
8597 (core_target::fetch_registers): Update.
8598 * gdbcore.h (struct core_fns): Remove.
8599 (deprecated_add_core_fns): Remove.
8600 (default_core_sniffer): Remove.
8601 (default_check_format): Remove.
8602
227031b2
TT
86032020-03-12 Tom Tromey <tom@tromey.com>
8604
8605 * arm-tdep.c (struct arm_mapping_symbol) <value>: Now a
8606 CORE_ADDR.
8607 (struct arm_exidx_entry) <addr>: Now a CORE_ADDR.
8608
53807e9f
TT
86092020-03-12 Tom Tromey <tom@tromey.com>
8610
8611 * remote.c (remote_target::download_tracepoint)
8612 (remote_target::enable_tracepoint)
8613 (remote_target::disable_tracepoint): Use phex, not sprintf_vma.
8614 * breakpoint.c (print_recreate_masked_watchpoint): Use phex, not
8615 sprintf_vma.
8616
64f25102
TT
86172020-03-12 Tom Tromey <tom@tromey.com>
8618
8619 * symfile-mem.c: Update CORE_ADDR size assert.
8620
272cd5a3
SM
86212020-03-12 Simon Marchi <simon.marchi@efficios.com>
8622
8623 * selftest.m4: Move to gdbsupport/.
8624 * acinclude.m4: Update path to selftest.m4.
8625
74cd3f9d
SM
86262020-03-12 Simon Marchi <simon.marchi@efficios.com>
8627
8628 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Rename to...
8629 (SELFTESTS_SRCS): ... this. Add disasm-selftests.c,
8630 gdbarch-selfselftests.c and selftest-arch.c.
8631 (SUBDIR_UNITTESTS_OBS): Rename to...
8632 (SELFTESTS_OBS): ... this.
8633 (COMMON_SFILES): Remove disasm-selftests.c and
8634 gdbarch-selftests.c.
8635 * configure.ac: Don't add selftest-arch.{c,o} to
8636 CONFIG_{SRCS,OBS}.
8637 * disasm-selftests.c, gdbarch-selftests.c: Remove GDB_SELF_TEST
8638 preprocessor conditions.
8639
db6878ac
SM
86402020-03-12 Simon Marchi <simon.marchi@efficios.com>
8641
8642 * configure.ac: Don't source bfd/development.sh.
8643 * selftest.m4: Modify comment.
8644 * configure: Re-generate.
8645
4d696a5c
SM
86462020-03-12 Simon Marchi <simon.marchi@efficios.com>
8647
8648 * selftest.m4 (GDB_AC_SELFTEST): Error out if $development is
8649 not "true" or "false".
8650 * configure: Re-generate.
8651
8dd8e1c7
CB
86522020-03-12 Christian Biesinger <cbiesinger@google.com>
8653
8654 * Makefile.in (HFILES_NO_SRCDIR): Add new arm-nbsd-tdep.h file.
8655 * arm-nbsd-nat.c (arm_supply_gregset): Moved to arm-nbsd-tdep and
8656 renamed to arm_nbsd_supply_gregset.
8657 (fetch_register): Update to call arm_nbsd_supply_gregset.
8658 (fetch_regs): Remove in favor of fetch_register with a -1 regno.
8659 (arm_netbsd_nat_target::fetch_registers): Update.
8660 (fetch_elfcore_registers): Removed.
8661 (_initialize_arm_netbsd_nat): Removed call to deprecated_add_core_fns.
8662 * arm-nbsd-tdep.c (struct arm_nbsd_reg): New struct.
8663 (arm_nbsd_supply_gregset): Moved from arm-nbsd-nat.c and updated to
8664 not require NetBSD system headers.
8665 (arm_nbsd_regset): New struct.
8666 (arm_nbsd_iterate_over_regset_sections): New function.
8667 (arm_netbsd_init_abi_common): Updated to call
8668 set_gdbarch_iterate_over_regset_sections.
8669 * arm-nbsd-tdep.h: New file.
8670
dd69bf7a
KB
86712020-03-11 Kevin Buettner <kevinb@redhat.com>
8672
8673 * symtab.c (find_pc_sect_line): Add check which prevents infinite
8674 recursion.
8675
a0761e34
SM
86762020-03-11 Simon Marchi <simon.marchi@efficios.com>
8677
8678 * configure: Re-generate.
8679
e7a82140
TT
86802020-03-11 Tom Tromey <tromey@adacore.com>
8681
8682 * ada-typeprint.c (print_choices): Fix comment.
8683
dcc050c8
AB
86842020-03-11 Andrew Burgess <andrew.burgess@embecosm.com>
8685
8686 * buildsyms.c (buildsym_compunit::record_line): Avoid accessing
8687 previous item in the list, when the list has no items.
8688
1c33af77
TV
86892020-03-11 Tom de Vries <tdevries@suse.de>
8690
8691 * dwarf2/loc.c (dwarf2_evaluate_property): Handle NULL frame in
8692 PROP_LOCLIST handling code.
8693
8c95582d
AB
86942020-03-10 Andrew Burgess <andrew.burgess@embecosm.com>
8695
8696 * buildsym-legacy.c (record_line): Pass extra parameter to
8697 record_line.
8698 * buildsym.c (buildsym_compunit::record_line): Take an extra
8699 parameter, reduce duplication in the line table, and record the
8700 is_stmt flag in the line table.
8701 * buildsym.h (buildsym_compunit::record_line): Add extra
8702 parameter.
8703 * disasm.c (do_mixed_source_and_assembly_deprecated): Ignore
8704 non-statement lines.
8705 * dwarf2/read.c (dwarf_record_line_1): Add extra parameter, pass
8706 this to the symtab builder.
8707 (dwarf_finish_line): Pass extra parameter to dwarf_record_line_1.
8708 (lnp_state_machine::record_line): Pass a suitable is_stmt flag
8709 through to dwarf_record_line_1.
8710 * infrun.c (process_event_stop_test): When stepping, don't stop at
8711 a non-statement instruction, and only refresh the step info when
8712 we land in the middle of a line's range. Also add an extra
8713 comment.
8714 * jit.c (jit_symtab_line_mapping_add_impl): Initialise is_stmt
8715 field.
8716 * record-btrace.c (btrace_find_line_range): Only record lines
8717 marked as is-statement.
8718 * stack.c (frame_show_address): Show the frame address if we are
8719 in a non-statement sal.
8720 * symmisc.c (dump_symtab_1): Print the is_stmt flag.
8721 (maintenance_print_one_line_table): Print a header for the is_stmt
8722 column, and include is_stmt information in the output.
8723 * symtab.c (find_pc_sect_line): Find lines marked as statements in
8724 preference to non-statements.
8725 (find_pcs_for_symtab_line): Prefer is-statement entries.
8726 (find_line_common): Likewise.
8727 * symtab.h (struct linetable_entry): Add is_stmt field.
8728 (struct symtab_and_line): Likewise.
8729 * xcoffread.c (arrange_linetable): Initialise is_stmt field when
8730 arranging the line table.
8731
e4003a34
TV
87322020-03-07 Tom de Vries <tdevries@suse.de>
8733
8734 * dwarf2/read.c (read_typedef): Treat anonymous typedef as forwarder
8735 DIE.
8736
e8932576
TT
87372020-03-07 Tom Tromey <tom@tromey.com>
8738
8739 * valops.c (value_literal_complex): Remove obsolete comment.
8740 * gdbtypes.h (enum type_code) <TYPE_CODE_FLT>: Remove obsolete
8741 comment.
8742
29734269
SM
87432020-03-06 Simon Marchi <simon.marchi@polymtl.ca>
8744
8745 * infrun.h: Forward-declare thread_info.
8746 (set_step_info): Add thread_info parameter, add doc.
8747 * infrun.c (set_step_info): Add thread_info parameter, move doc
8748 to header.
8749 * infrun.c (process_event_stop_test): Pass thread to
8750 set_step_info call.
8751 * infcmd.c (set_step_frame): Add thread_info pointer, pass it to
8752 set_step_info.
8753 (prepare_one_step): Add thread_info parameter, pass it to
8754 set_step_frame and prepare_one_step (recursive) call.
8755 (step_1): Pass thread to prepare_one_step call.
8756 (step_command_fsm::should_stop): Pass thread to
8757 prepare_one_step.
8758 (until_next_fsm): Pass thread to set_step_frame call.
8759 (finish_command): Pass thread to set_step_info call.
8760
b7d64b29
HD
87612020-03-06 Hannes Domani <ssbssa@yahoo.de>
8762
8763 * windows-tdep.c (windows_solib_create_inferior_hook):
8764 Check if inferior is running.
8765
09f2921c
TV
87662020-03-06 Tom de Vries <tdevries@suse.de>
8767
8768 * NEWS: Fix "the the".
8769 * ctfread.c: Same.
8770
fd760e79
TV
87712020-03-06 Tom de Vries <tdevries@suse.de>
8772
8773 * psymtab.c (psymtab_to_symtab): Don't print "done.".
8774
20ea4a60
AB
87752020-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
8776
8777 * .dir-locals.el: Add a comment referencing the other copies of
8778 this file.
8779
0afbabf0
JB
87802020-03-05 John Baldwin <jhb@FreeBSD.org>
8781
8782 * fbsd-tdep.c (fbsd_make_corefile_notes): Use std::string for
8783 psargs.
8784
842806cb
TBA
87852020-03-05 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
8786
8787 * .gitattributes: New file.
8788
be1e3d3e
TT
87892020-03-04 Tom Tromey <tom@tromey.com>
8790
8791 * symmisc.c (print_symbol_bcache_statistics)
8792 (print_objfile_statistics): Update.
8793 * symfile.c (allocate_symtab): Use intern.
8794 * psymtab.c (partial_symtab::partial_symtab): Use intern.
8795 * objfiles.h (struct objfile_per_bfd_storage) <filename_cache,
8796 macro_cache>: Remove.
8797 <string_cache>: New member.
8798 (struct objfile) <intern>: New methods.
8799 * elfread.c (elf_symtab_read): Use intern.
8800 * dwarf2/read.c (fixup_go_packaging): Intern package name.
8801 (dwarf2_compute_name, dwarf2_physname)
8802 (create_dwo_unit_in_dwp_v1, create_dwo_unit_in_dwp_v2): Intern
8803 names.
8804 (guess_partial_die_structure_name): Update.
8805 (partial_die_info::fixup): Intern name.
8806 (dwarf2_canonicalize_name): Change parameter to objfile. Intern
8807 name.
8808 (dwarf2_name): Intern name. Update.
8809 * buildsym.c (buildsym_compunit::get_macro_table): Use
8810 string_cache.
8811
4e7625fd
TT
88122020-03-04 Tom Tromey <tom@tromey.com>
8813
8814 * jit.c (bfd_open_from_target_memory): Make "target" const.
8815 * corefile.c (gnutarget): Now const.
8816 * gdbcore.h (gnutarget): Now const.
8817
46f9f931
HD
88182020-03-04 Hannes Domani <ssbssa@yahoo.de>
8819
8820 * NEWS: Mention support for WOW64 processes.
8821 * amd64-windows-nat.c (amd64_mappings): Rename and remove static.
8822 (amd64_windows_segment_register_p): Remove static.
8823 (_initialize_amd64_windows_nat): Update.
8824 * configure.nat <windows> (NATDEPFILES): Add i386-windows-nat.o.
8825 * i386-windows-nat.c (context_offset): Update.
8826 (i386_mappings): Rename and remove static.
8827 (i386_windows_segment_register_p): Remove static.
8828 (_initialize_i386_windows_nat): Update.
8829 * windows-nat.c (STATUS_WX86_BREAKPOINT): New macro.
8830 (STATUS_WX86_SINGLE_STEP): New macro.
8831 (EnumProcessModulesEx): New macro.
8832 (Wow64SuspendThread): New macro.
8833 (Wow64GetThreadContext): New macro.
8834 (Wow64SetThreadContext): New macro.
8835 (Wow64GetThreadSelectorEntry): New macro.
8836 (windows_set_context_register_offsets): Add static.
8837 (windows_set_segment_register_p): Likewise.
8838 (windows_add_thread): Adapt for WOW64 processes.
8839 (windows_fetch_one_register): Likewise.
8840 (windows_nat_target::fetch_registers): Likewise.
8841 (windows_store_one_register): Likewise.
8842 (display_selector): Likewise.
8843 (display_selectors): Likewise.
8844 (handle_exception): Likewise.
8845 (windows_continue): Likewise.
8846 (windows_nat_target::resume): Likewise.
8847 (windows_add_all_dlls): Likewise.
8848 (do_initial_windows_stuff): Likewise.
8849 (windows_nat_target::attach): Likewise.
8850 (windows_get_exec_module_filename): Likewise.
8851 (windows_nat_target::create_inferior): Likewise.
8852 (windows_xfer_siginfo): Likewise.
8853 (_initialize_loadable): Initialize Wow64SuspendThread,
8854 Wow64GetThreadContext, Wow64SetThreadContext,
8855 Wow64GetThreadSelectorEntry and EnumProcessModulesEx.
8856 * windows-nat.h (windows_set_context_register_offsets):
8857 Remove declaration.
8858 (windows_set_segment_register_p): Likewise.
8859 (i386_windows_segment_register_p): Add declaration.
8860 (amd64_windows_segment_register_p): Likewise.
8861
440cf44e
LM
88622020-03-04 Luis Machado <luis.machado@linaro.org>
8863
8864 Revert aa66aac47b4dd38f9524ddb5546c08cc09930d37 due to regressions
8865 in "info registers" for AArch64/ARM.
8866
8867 The change caused "info registers" to not print GPR's.
8868
8869 gdb/ChangeLog:
8870
8871 2020-02-01 Shahab Vahedi <shahab@synopsys.com>
8872
8873 * target-descriptions.c (tdesc_register_in_reggroup_p): Return 0
8874 when reg->group is empty and reggroup is not.
8875
1009d92f
TT
88762020-03-03 Tom Tromey <tromey@adacore.com>
8877
8878 * dwarf2/frame.c (struct dwarf2_frame_cache)
8879 <checked_tailcall_bottom, entry_cfa_sp_offset,
8880 entry_cfa_sp_offset_p>: Remove members.
8881 (dwarf2_frame_cache): Call dwarf2_tailcall_sniffer_first.
8882 (dwarf2_frame_prev_register): Don't call
8883 dwarf2_tailcall_sniffer_first.
8884 (dwarf2_append_unwinders): Don't append tailcall unwinder.
8885 * frame-unwind.c (add_unwinder): New fuction.
8886 (frame_unwind_init): Use it. Add tailcall unwinder.
8887
5e5d66b6
AB
88882020-03-03 Andrew Burgess <andrew.burgess@embecosm.com>
8889 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
8890
8891 * f-valprint.c (f_val_print): Handle TYPE_CODE_BOOL, any non-zero
8892 value should be printed as true.
8893
584cf46d
HD
88942020-03-03 Hannes Domani <ssbssa@yahoo.de>
8895
8896 * windows-tdep.c (windows_solib_create_inferior_hook): New function.
8897 (windows_init_abi): Set and use windows_so_ops.
8898
7b973adc
SDJ
88992020-03-03 Sergio Durigan Junior <sergiodj@redhat.com>
8900
8901 * printcmd.c (print_c_string): Check also for TYPE_CODE_PTR
8902 when verifying if dealing with a convenience variable.
8903
bb7b70ab
LM
89042020-03-03 Luis Machado <luis.machado@linaro.org>
8905
8906 * auxv.c (default_print_auxv_entry): Add new AUXV entries.
8907
9822cb57
SM
89082020-03-02 Simon Marchi <simon.marchi@polymtl.ca>
8909
8910 * infrun.c (gdbarch_supports_displaced_stepping): New.
8911 (use_displaced_stepping): Break up conditions in smaller pieces.
8912 Use gdbarch_supports_displaced_stepping.
8913 (displaced_step_prepare_throw): Use
8914 gdbarch_supports_displaced_stepping.
8915
63e163f2
AB
89162020-03-02 Andrew Burgess <andrew.burgess@embecosm.com>
8917
8918 * NEWS: Mention new behaviour of the history filename.
8919 * top.c (write_history_p): Add comment.
8920 (show_write_history_p): Add header comment, give a different
8921 message when history writing is on, but the history filename is
8922 empty.
8923 (history_filename): Add comment.
8924 (history_filename_empty): New function.
8925 (show_history_filename): Add header comment, give a different
8926 message when the filename is empty.
8927 (init_history): Compare history_filename against nullptr, and only
8928 read history if the filename is not empty.
8929 (set_history_filename): Add header comment, and only make
8930 non-empty filenames absolute.
8931 (init_main): Make the filename argument to 'set history filename'
8932 optional.
8933
81b86b97
CB
89342020-03-02 Christian Biesinger <cbiesinger@google.com>
8935
8936 * arm-nbsd-nat.c (arm_supply_fparegset): Rename to...
8937 (arm_supply_vfpregset): ...this, and update to use VFP registers.
8938 (fetch_fp_register): Update.
8939 (fetch_fp_regs): Update.
8940 (store_fp_register): Update.
8941 (store_fp_regs): Update.
8942 (arm_netbsd_nat_target::read_description): New function.
8943 (fetch_elfcore_registers): Update.
8944
24ed6739
AB
89452020-03-02 Andrew Burgess <andrew.burgess@embecosm.com>
8946
8947 * remote.c (remote_target::remote_parse_stop_reply): Don't use the
8948 general_thread if the stop reply is missing a thread-id.
8949 (remote_target::process_stop_reply): Use the first non-exited
8950 thread if the target didn't pass a thread-id.
8951 * infrun.c (do_target_wait): Move call to
8952 switch_to_inferior_no_thread to ....
8953 (do_target_wait_1): ... here.
8954
a84bb2a0
JT
89552020-02-29 Jon Turney <jon.turney@dronecode.org.uk>
8956
8957 * debuginfod-support.c: Include defs.h first.
8958
658dadf0
TV
89592020-02-28 Tom de Vries <tdevries@suse.de>
8960
8961 * symfile.c (set_initial_language): Use default language for lookup.
8962
4ebe4877
SM
89632020-02-28 Simon Marchi <simon.marchi@efficios.com>
8964
8965 * dwarf2/read.c (cutu_reader::init_tu_and_read_dwo_dies): Remove
8966 reader variable, pass `this` to read_cutu_die_from_dwo.
8967
e5da1139
AM
89682020-02-27 Aaron Merey <amerey@redhat.com>
8969
8970 * source.c (open_source_file): Check for nullptr when computing
8971 srcpath.
8972
317f7127
TT
89732020-02-27 Tom Tromey <tromey@adacore.com>
8974
8975 * dwarf2/read.c (struct field_info) <nfields>: Now a method, not a
8976 member.
8977 (dwarf2_add_field): Don't update nfields.
8978 (dwarf2_attach_fields_to_type, process_structure_scope): Update.
8979
3104d9ee
AB
89802020-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
8981
8982 * gdbtypes.c (create_array_type_with_stride): Use std::abs not
8983 abs.
8984
b83470bf
TT
89852020-02-26 Tom Tromey <tom@tromey.com>
8986
8987 * dwarf2/read.c (struct dwarf2_include_psymtab): New.
8988 (dwarf2_create_include_psymtab): Use dwarf2_include_psymtab.
8989 (dwarf2_psymtab::expand_psymtab, dwarf2_psymtab::readin_p)
8990 (dwarf2_psymtab::get_compunit_symtab): Remove null checks for
8991 per_cu_data.
8992
edfe0a0c
TT
89932020-02-26 Tom Tromey <tom@tromey.com>
8994
8995 * dwarf2/index-write.c (psym_index_map): Change type.
8996 (add_address_entry_worker, write_one_signatured_type)
8997 (recursively_count_psymbols, recursively_write_psymbols)
8998 (class debug_names, psyms_seen_size, write_gdbindex)
8999 (write_debug_names): Use partial_symtab, not dwarf2_psymtab.
9000
0d79cdc4
AM
90012020-02-26 Aaron Merey <amerey@redhat.com>
9002
9003 * Makefile.in: Handle optional debuginfod support.
9004 * NEWS: Update.
9005 * README: Add --with-debuginfod summary.
9006 * config.in: Regenerate.
9007 * configure: Regenerate.
9008 * configure.ac: Handle optional debuginfod support.
9009 * debuginfod-support.c: debuginfod helper functions.
9010 * debuginfod-support.h: Ditto.
9011 * doc/gdb.texinfo: Add --with-debuginfod to configure options
9012 summary.
9013 * dwarf2/read.c (dwarf2_get_dwz_file): Query debuginfod servers
9014 when a dwz file cannot be found.
9015 * elfread.c (elf_symfile_read): Query debuginfod servers when a
9016 debuginfo file cannot be found.
9017 * source.c (open_source_file): Query debuginfod servers when a
9018 source file cannot be found.
9019 * top.c (print_gdb_configuration): Include
9020 --{with,without}-debuginfod in the output.
9021
b65ce565
JG
90222020-02-26 Jérémie Galarneau <jeremie.galarneau@efficios.com>
9023
9024 * thread.c (thr_try_catch_cmd): Print thread name.
9025
d4c9a4f8
SM
90262020-02-26 Simon Marchi <simon.marchi@efficios.com>
9027
9028 * dwarf2/loc.h (dwarf2_fetch_die_loc_sect_off,
9029 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
9030 dwarf2_fetch_die_type_sect_off): Move to...
9031 * dwarf2/read.h (dwarf2_fetch_die_loc_sect_off,
9032 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
9033 dwarf2_fetch_die_type_sect_off): ... here.
9034 * dwarf2/read.c (dwarf2_fetch_die_loc_sect_off,
9035 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
9036 dwarf2_fetch_die_type_sect_off): Move doc to header file.
9037
0dce4280
TV
90382020-02-26 Tom de Vries <tdevries@suse.de>
9039
9040 PR gdb/25603
9041 * symfile.c (set_initial_language): Exit-early if
9042 language_mode == language_mode_manual.
9043
450a1bfc
SM
90442020-02-25 Simon Marchi <simon.marchi@polymtl.ca>
9045
9046 * dwarf2/loc.h (dwarf2_read_addr_index): Move...
9047 * dwarf2/read.h (dwarf2_read_addr_index): ... here.
9048 * dwarf2/read.c (dwarf2_read_addr_index): Move doc to header.
9049
9e80cfa1
AB
90502020-02-25 Andrew Burgess <andrew.burgess@embecosm.com>
9051
9052 * gdbtypes.c (create_array_type_with_stride): Handle negative
9053 array strides.
9054 * valarith.c (value_subscripted_rvalue): Likewise.
9055
09624f1f
LM
90562020-02-25 Luis Machado <luis.machado@linaro.org>
9057
9058 * aarch64-tdep.c (aarch64_vnv_type): Fix comment typo.
9059
8cb5117c
SM
90602020-02-25 Simon Marchi <simon.marchi@polymtl.ca>
9061
9062 * loc.h (dwarf2_get_die_type): Move to...
9063 * read.h (dwarf2_get_die_type): ... here.
9064 * read.c (dwarf2_get_die_type): Move doc to header.
9065
c325c44e
JB
90662020-02-25 Joel Brobecker <brobecker@adacore.com>
9067
9068 * copypright.py (EXCLUDE_LIST): Add 'gnulib/config.in' and
9069 'gnulib/Makefile.in' to the list.
9070
4ac93832
TT
90712020-02-24 Tom Tromey <tom@tromey.com>
9072
9073 * dwarf2/read.h (struct type_unit_unshareable) <num_symtabs>:
9074 Remove.
9075 * dwarf2/read.c (dwarf2_cu::setup_type_unit_groups): Use
9076 XOBNEWVEC.
9077
197400e8
TT
90782020-02-24 Tom Tromey <tom@tromey.com>
9079
9080 * dwarf2/read.h (struct dwarf2_per_cu_data) <type_unit_group_p>:
9081 New method.
9082 * dwarf2/read.c (IS_TYPE_UNIT_GROUP): Remove.
9083 (dw2_do_instantiate_symtab, dw2_get_file_names)
9084 (build_type_psymtab_dependencies, load_full_type_unit): Update.
9085
76935768
TT
90862020-02-24 Tom Tromey <tom@tromey.com>
9087
9088 * dwarf2read.c (dwarf2_build_psymtabs_hard): Use
9089 make_scoped_restore.
9090 (dwarf2_psymtab::read_symtab): Don't clear
9091 reading_partial_symbols.
9092
a88ef40d
TV
90932020-02-24 Tom de Vries <tdevries@suse.de>
9094
9095 PR gdb/25592
9096 * stack.c (iterate_over_block_locals): Handle LOC_CONST.
9097
c9af6521
TV
90982020-02-24 Tom de Vries <tdevries@suse.de>
9099
9100 * tui/tui-layout.c (_initialize_tui_layout): Fix help messages for
9101 commands layout next/prev/regs.
9102
5707a07a
TT
91032020-02-22 Tom Tromey <tom@tromey.com>
9104
9105 * dwarf2/loc.h (dwarf2_compile_expr_to_ax): Don't declare.
9106 * dwarf2/loc.c (dwarf2_compile_expr_to_ax): Now static.
9107
3b0fb49e
TT
91082020-02-22 Tom Tromey <tom@tromey.com>
9109
9110 * tui/tui-data.h (TUI_DISASM_WIN): Cast to tui_disasm_window.
9111
283be8bf
TT
91122020-02-22 Tom Tromey <tom@tromey.com>
9113
9114 * tui/tui-win.c (_initialize_tui_win): Add usage text.
9115 * tui/tui-stack.c (_initialize_tui_stack): Add usage text.
9116 * tui/tui-regs.c (_initialize_tui_regs): Add usage text.
9117 * tui/tui.c (_initialize_tui): Add usage text.
9118
ca793b96
TT
91192020-02-22 Tom Tromey <tom@tromey.com>
9120
9121 * tui/tui-win.c (tui_set_focus_command)
9122 (tui_set_win_height_command): Use error_no_arg.
9123 (_initialize_tui_win): Update help text.
9124 (FOCUS_USAGE, WIN_HEIGHT_USAGE): Don't define.
9125
432b5c40
TT
91262020-02-22 Tom Tromey <tom@tromey.com>
9127
9128 * tui/tui-layout.c (extract_display_start_addr): Rewrite.
9129 * tui/tui-disasm.h (struct tui_disasm_window)
9130 <display_start_addr>: Declare.
9131 * tui/tui-source.h (struct tui_source_window)
9132 <display_start_addr>: Declare.
9133 * tui/tui-winsource.h (struct tui_source_window_base)
9134 <show_source_line, display_start_addr>: New methods.
9135 <m_horizontal_offset, m_start_line_or_addr, m_gdbarch, m_content>:
9136 Rename and move to protected section.
9137 * tui/tui-winsource.c (tui_source_window_base::update_source_window)
9138 (tui_source_window_base::do_erase_source_content): Update.
9139 (tui_source_window_base::show_source_line): Now a method.
9140 (tui_source_window_base::show_source_content)
9141 (tui_source_window_base::tui_source_window_base)
9142 (tui_source_window_base::rerender)
9143 (tui_source_window_base::refill)
9144 (tui_source_window_base::do_scroll_horizontal)
9145 (tui_source_window_base::set_is_exec_point_at)
9146 (tui_source_window_base::update_breakpoint_info)
9147 (tui_source_window_base::update_exec_info): Update.
9148 * tui/tui-source.c (tui_source_window::set_contents)
9149 (tui_source_window::showing_source_p)
9150 (tui_source_window::do_scroll_vertical)
9151 (tui_source_window::location_matches_p)
9152 (tui_source_window::line_is_displayed): Update.
9153 (tui_source_window::display_start_addr): New method.
9154 * tui/tui-disasm.c (tui_disasm_window::set_contents)
9155 (tui_disasm_window::do_scroll_vertical)
9156 (tui_disasm_window::location_matches_p): Update.
9157 (tui_disasm_window::display_start_addr): New method.
9158
01b1af32
TT
91592020-02-22 Tom Tromey <tom@tromey.com>
9160
9161 * NEWS: Add entry for gdb.register_window_type.
9162 * tui/tui-layout.h (window_factory): New typedef.
9163 (tui_register_window): Declare.
9164 * tui/tui-layout.c (saved_tui_windows): New global.
9165 (tui_apply_current_layout): Use it.
9166 (tui_register_window): New function.
9167 * python/python.c (do_start_initialization): Call
9168 gdbpy_initialize_tui.
9169 (python_GdbMethods): Add "register_window_type" function.
9170 * python/python-internal.h (gdbpy_register_tui_window)
9171 (gdbpy_initialize_tui): Declare.
9172 * python/py-tui.c: New file.
9173 * Makefile.in (SUBDIR_PYTHON_SRCS): Add py-tui.c.
9174
fc96d20b
TT
91752020-02-22 Tom Tromey <tom@tromey.com>
9176
9177 * tui/tui-io.c (do_tui_putc): Don't omit annotations.
9178
935c78c0
TT
91792020-02-22 Tom Tromey <tom@tromey.com>
9180
9181 * tui/tui-win.c (tui_set_win_focus_to): Move to tui-data.c.
9182 * tui/tui-data.h (tui_set_win_with_focus): Don't declare.
9183 * tui/tui-data.c (tui_set_win_with_focus): Remove.
9184 (tui_set_win_focus_to): Move from tui-win.c.
9185
0240c8f1
TT
91862020-02-22 Tom Tromey <tom@tromey.com>
9187
9188 * tui/tui-layout.c (make_standard_window, get_locator_window): New
9189 functions.
9190 (known_window_types): New global.
9191 (tui_get_window_by_name): Reimplement.
9192 (initialize_known_windows): New function.
9193 (validate_window_name): Rewrite.
9194 (_initialize_tui_layout): Call initialize_known_windows.
9195
fdb01f0c
TT
91962020-02-22 Tom Tromey <tom@tromey.com>
9197
9198 * tui/tui.h (enum tui_win_type) <LOCATOR_WIN, DATA_ITEM_WIN>:
9199 Remove constants.
9200 * tui/tui-winsource.h (struct tui_source_window_base)
9201 <tui_source_window_base>: Remove parameter.
9202 * tui/tui-winsource.c
9203 (tui_source_window_base::tui_source_window_base): Remove
9204 parameter.
9205 (tui_source_window_base::refill): Update.
9206 * tui/tui-stack.h (struct tui_locator_window)
9207 <tui_locator_window>: Update.
9208 * tui/tui-source.h (struct tui_source_window) <tui_source_window>:
9209 Default the constructor.
9210 * tui/tui-regs.h (struct tui_data_item_window)
9211 <tui_data_item_window>: Default the constructor.
9212 (struct tui_data_window) <tui_data_window>: Likewise.
9213 * tui/tui-disasm.h (struct tui_disasm_window) <tui_disasm_window>:
9214 Default the constructor.
9215 * tui/tui-data.h (struct tui_gen_win_info) <tui_gen_win_info>:
9216 Default the constructor.
9217 <type>: Remove.
9218 (struct tui_win_info) <tui_win_info>: Default the constructor.
9219 * tui/tui-data.c (tui_win_info::tui_win_info): Remove.
9220 * tui/tui-command.h (struct tui_cmd_window) <tui_cmd_window>:
9221 Default the constructor.
9222
865a5aec
TT
92232020-02-22 Tom Tromey <tom@tromey.com>
9224
9225 * tui/tui-wingeneral.h (tui_make_all_invisible): Don't declare.
9226 * tui/tui-wingeneral.c (tui_make_all_invisible): Remove.
9227 * tui/tui-win.c (tui_resize_all): Don't call
9228 tui_delete_invisible_windows.
9229 * tui/tui-layout.c (tui_apply_current_layout): Delete windows when
9230 done.
9231 (tui_set_layout): Update.
9232 (tui_add_win_to_layout): Don't call tui_delete_invisible_windows.
9233 * tui/tui-data.h (tui_delete_invisible_windows): Don't declare.
9234 * tui/tui-data.c (tui_delete_invisible_windows): Remove.
9235
e098d18c
TT
92362020-02-22 Tom Tromey <tom@tromey.com>
9237
9238 * tui/tui-win.c (tui_partial_win_by_name): Handle ambiguity
9239 correctly.
9240
eb9c8874
TT
92412020-02-22 Tom Tromey <tom@tromey.com>
9242
9243 * tui/tui-data.c (tui_next_win, tui_prev_win): Reimplement.
9244
7eed1a8e
TT
92452020-02-22 Tom Tromey <tom@tromey.com>
9246
9247 * tui/tui-winsource.h (struct tui_source_window_iterator)
9248 <inner_iterator>: New etytypedef.
9249 <tui_source_window_iterator>: Take "end" parameter.
9250 <tui_source_window_iterator>: Take iterator.
9251 <operator*, advance>: Update.
9252 <m_iter>: Change type.
9253 <m_end>: New field.
9254 (struct tui_source_windows) <begin, end>: Update.
9255 * tui/tui-layout.c (tui_windows): New global.
9256 (tui_apply_current_layout): Clear tui_windows.
9257 (tui_layout_window::apply): Update tui_windows.
9258 * tui/tui-data.h (tui_windows): Declare.
9259 (all_tui_windows): Now inline function.
9260 (class tui_window_iterator, struct all_tui_windows): Remove.
9261
7c043ba6
TT
92622020-02-22 Tom Tromey <tom@tromey.com>
9263
9264 PR tui/17850:
9265 * tui/tui-win.c (tui_gen_win_info::max_width): New method.
9266 * tui/tui-layout.h (class tui_layout_base) <get_sizes>: Add
9267 "height" argument.
9268 (class tui_layout_window) <get_sizes>: Likewise.
9269 (class tui_layout_split) <tui_layout_split>: Add "vertical"
9270 argument.
9271 <get_sizes>: Add "height" argument.
9272 <m_vertical>: New field.
9273 * tui/tui-layout.c (tui_layout_split::clone): Update.
9274 (tui_layout_split::get_sizes): Add "height" argument.
9275 (tui_layout_split::adjust_size, tui_layout_split::apply): Update.
9276 (tui_new_layout_command): Parse "-horizontal".
9277 (_initialize_tui_layout): Update help string.
9278 (tui_layout_split::specification): Add "-horizontal" when needed.
9279 * tui/tui-layout.c (tui_layout_window::get_sizes): Add "height"
9280 argument.
9281 * tui/tui-data.h (struct tui_gen_win_info) <max_width, min_width>:
9282 New methods.
9283
6bc56648
TT
92842020-02-22 Tom Tromey <tom@tromey.com>
9285
9286 * tui/tui-layout.h (enum tui_adjust_result): New.
9287 (class tui_layout_base) <adjust_size>: Return tui_adjust_result.
9288 (class tui_layout_window) <adjust_size>: Return
9289 tui_adjust_result. Rewrite.
9290 (class tui_layout_split) <adjust_size>: Return tui_adjust_result.
9291 * tui/tui-layout.c (tui_layout_split::adjust_size): Update.
9292
c22fef7e
TT
92932020-02-22 Tom Tromey <tom@tromey.com>
9294
9295 * tui/tui-layout.h (class tui_layout_split) <add_split>: Change
9296 parameter and return types.
9297 (class tui_layout_base) <specification>: Add "depth".
9298 (class tui_layout_window) <specification>: Add "depth".
9299 (class tui_layout_split) <specification>: Add "depth".
9300 * tui/tui-layout.c (tui_layout_split::add_split): Change parameter
9301 and return types.
9302 (tui_new_layout_command): Parse sub-layouts.
9303 (_initialize_tui_layout): Update help string.
9304 (tui_layout_window::specification): Add "depth".
9305 (add_layout_command): Update.
9306
ee325b61
TT
93072020-02-22 Tom Tromey <tom@tromey.com>
9308
9309 * NEWS: Add "tui new-layout" item.
9310 * tui/tui-layout.c (add_layout_command): Return cmd_list_element.
9311 Add new-layout command to help text.
9312 (validate_window_name): New function.
9313 (tui_new_layout_command): New function.
9314 (_initialize_tui_layout): Register "new-layout".
9315 (tui_layout_window::specification): New method.
9316 (tui_layout_window::specification): New method.
9317 * tui/tui-layout.h (class tui_layout_base) <specification>: New
9318 method.
9319 (class tui_layout_window) <specification>: New method.
9320 (class tui_layout_split) <specification>: New method.
9321
416eb92d
TT
93222020-02-22 Tom Tromey <tom@tromey.com>
9323
9324 * tui/tui.c (tui_enable): Call tui_set_initial_layout.
9325 * tui/tui-win.c (window_name_completer): Update comment.
9326 * tui/tui-layout.h (class tui_layout_base) <replace_window>:
9327 Declare method.
9328 (class tui_layout_window) <replace_window>: Likewise.
9329 (class tui_layout_split) <replace_window>: Likewise.
9330 (tui_set_layout): Don't declare.
9331 (tui_set_initial_layout): Declare function.
9332 * tui/tui-layout.c (layouts, applied_skeleton, src_regs_layout)
9333 (asm_regs_layout): New globals.
9334 (tui_current_layout, show_layout): Remove.
9335 (tui_set_layout, tui_add_win_to_layout): Rewrite.
9336 (find_layout, tui_apply_layout): New function.
9337 (layout_completer): Remove.
9338 (tui_next_layout): Reimplement.
9339 (tui_next_layout_command): New function.
9340 (tui_set_initial_layout, tui_prev_layout_command): New functions.
9341 (tui_regs_layout): Reimplement.
9342 (tui_regs_layout_command): New function.
9343 (extract_display_start_addr): Rewrite.
9344 (next_layout, prev_layout): Remove.
9345 (tui_layout_window::replace_window): New method.
9346 (tui_layout_split::replace_window): New method.
9347 (destroy_layout): New function.
9348 (layout_list): New global.
9349 (add_layout_command): New function.
9350 (initialize_layouts): Update.
9351 (tui_layout_command): New function.
9352 (_initialize_tui_layout): Install "layout" commands.
9353 * tui/tui-data.h (enum tui_layout_type): Remove.
9354 (tui_current_layout): Don't declare.
9355
0dbc2fc7
TT
93562020-02-22 Tom Tromey <tom@tromey.com>
9357
9358 * tui/tui-regs.c (tui_reg_layout): Remove.
9359 (tui_reg_command): Use tui_regs_layout.
9360 * tui/tui-layout.h (tui_reg_command): Declare.
9361 * tui/tui-layout.c (tui_reg_command): New function.
9362
5afe342e
TT
93632020-02-22 Tom Tromey <tom@tromey.com>
9364
9365 * tui/tui.c (tui_rl_delete_other_windows): Call
9366 tui_remove_some_windows.
9367 * tui/tui-layout.h (class tui_layout_base) <remove_windows>:
9368 Declare method.
9369 (class tui_layout_window) <remove_windows>: New method.
9370 (class tui_layout_split) <remove_windows>: Declare.
9371 (tui_remove_some_windows): Declare.
9372 * tui/tui-layout.c (tui_remove_some_windows): New function.
9373 (tui_layout_split::remove_windows): New method.
9374
427326a8
TT
93752020-02-22 Tom Tromey <tom@tromey.com>
9376
9377 * tui/tui.c (tui_rl_change_windows): Call tui_next_layout.
9378 * tui/tui-layout.h (tui_next_layout): Declare.
9379 * tui/tui-layout.c (tui_next_layout): New function.
9380
3fe12b6d
TT
93812020-02-22 Tom Tromey <tom@tromey.com>
9382
9383 * tui/tui-regs.c (tui_data_window::display_registers_from): Use
9384 correct coordinates.
9385
59b8b5d2
TT
93862020-02-22 Tom Tromey <tom@tromey.com>
9387
9388 * tui/tui-layout.h (tui_add_win_to_layout): Add comment.
9389 * tui/tui-layout.c (tui_add_win_to_layout): Add assert. Remove
9390 DATA_WIN case.
9391
2a3d458b
TT
93922020-02-22 Tom Tromey <tom@tromey.com>
9393
9394 * tui/tui-disasm.c (tui_get_low_disassembly_address): Use
9395 TUI_DISASM_WIN, not tui_win_list.
9396
3f0cbb04
TT
93972020-02-22 Tom Tromey <tom@tromey.com>
9398
9399 * valprint.c (generic_val_print_enum_1)
9400 (val_print_type_code_flags): Style member names.
9401 * rust-lang.c (val_print_struct, rust_print_enum)
9402 (rust_print_struct_def, rust_internal_print_type): Style member
9403 names.
9404 * p-valprint.c (pascal_object_print_value_fields): Style member
9405 names. Only call fprintf_symbol_filtered for static members.
9406 * m2-typeprint.c (m2_record_fields, m2_enum): Style member names.
9407 * f-valprint.c (f_val_print): Style member names.
9408 * f-typeprint.c (f_type_print_base): Style member names.
9409 * cp-valprint.c (cp_print_value_fields): Style member names. Only
9410 call fprintf_symbol_filtered for static members.
9411 (cp_print_class_member): Style member names.
9412 * c-typeprint.c (c_print_type_1, c_type_print_base_1): Style
9413 member names.
9414 * ada-valprint.c (ada_print_scalar): Style enum names.
9415 (ada_val_print_enum): Likewise.
9416 * ada-typeprint.c (print_enum_type): Style enum names.
9417
d4d947ae
TT
94182020-02-21 Tom Tromey <tom@tromey.com>
9419
9420 * psympriv.h (struct partial_symtab): Update comment.
9421
e94e944b
TT
94222020-02-21 Tom Tromey <tromey@adacore.com>
9423
9424 * mips-tdep.h (mips_pc_is_mips16, mips_pc_is_micromips): Parameter
9425 type is CORE_ADDR.
9426
1eb73179
TV
94272020-02-21 Tom de Vries <tdevries@suse.de>
9428
9429 PR gdb/25534
9430 * psymtab.c (partial_symtab::read_dependencies): Don't read dependency
9431 if dependencies[i]->user != NULL.
9432
4f180d53
AT
94332020-02-21 Ali Tamur <tamur@google.com>
9434
9435 * dwarf2/read.c (dwarf2_name): Add null check.
9436
22b6cd70
TT
94372020-02-20 Tom Tromey <tom@tromey.com>
9438
9439 * dwarf2/read.c (dwarf2_find_containing_comp_unit): Use ">", not
9440 ">=", in binary search.
9441 (dwarf2_find_containing_comp_unit): New overload.
9442 (run_test): New self-test.
9443 (_initialize_dwarf2_read): Register new test.
9444
bd0cf5a6
NC
94452020-02-20 Nelson Chu <nelson.chu@sifive.com>
9446
9447 * riscv-tdep.c: Updated since the DECLARE_CSR is changed.
9448 * riscv-tdep.h: Likewise.
9449 * features/riscv/rebuild-csr-xml.sh: Generate the 64bit-csr.xml without
9450 rv32-only CSR.
9451 * features/riscv/64bit-csr.xml: Regenerated.
9452
3f702acd
SDJ
94532020-02-20 Sergio Durigan Junior <sergiodj@redhat.com>
9454 Tom Tromey <tom@tromey.com>
9455
9456 * utils.c (fputs_maybe_filtered): Call 'stream->puts' instead
9457 of 'fputc_unfiltered'.
9458 (putchar_unfiltered): Call 'fputc_unfiltered'.
9459 (fputc_unfiltered): Call 'fputs_unfiltered'.
9460
d13c7322
AB
94612020-02-20 Andrew Burgess <andrew.burgess@embecosm.com>
9462
9463 * config.in: Regenerate.
9464 * configure: Regenerate.
9465 * configure.ac: Add --with-python-libdir option.
9466 * main.c: Use WITH_PYTHON_LIBDIR.
9467
869d8950
TT
94682020-02-19 Tom Tromey <tom@tromey.com>
9469
9470 * symtab.c (general_symbol_info::compute_and_set_names): Use
9471 obstack_strndup. Simplify call to symbol_set_demangled_name.
9472
298e9637
SM
94732020-02-19 Simon Marchi <simon.marchi@efficios.com>
9474
9475 * dwarf2/read.c (allocate_signatured_type_table,
9476 allocate_dwo_unit_table, allocate_type_unit_groups_table,
9477 allocate_dwo_file_hash_table, allocate_dwp_loaded_cutus_table):
9478 Remove objfile parameter, update all callers.
9479
08410482
DE
94802020-02-19 Doug Evans <dje@google.com>
9481
9482 PR rust/25535
9483 * rust-lang.c (rust_print_enum): Apply embedded_offset to
9484 rust_enum_variant calculation.
9485
dfdeeca1
TT
94862020-02-19 Tom Tromey <tromey@adacore.com>
9487
9488 * mips-tdep.h (mips_pc_is_mips): Parameter type is CORE_ADDR.
9489
2ef5453b
TT
94902020-02-19 Tom Tromey <tromey@adacore.com>
9491
9492 * ada-lang.c (cache_symbol): Use obstack_strdup.
9493
9f1528a1
AB
94942020-02-19 Andrew Burgess <andrew.burgess@embecosm.com>
9495
9496 * configure: Regenerate.
9497
d3c22fa8
TT
94982020-02-19 Tom Tromey <tromey@adacore.com>
9499
9500 * python/python.c (do_start_initialization): Use XNEWVEC. Remove
9501 NULL check.
9502
bf84f706
MR
95032020-02-19 Maciej W. Rozycki <macro@wdc.com>
9504
9505 * NEWS: Mention RISC-V GNU/Linux GDBserver support.
9506
d1c9b20f
AB
95072020-02-19 Andrew Burgess <andrew.burgess@embecosm.com>
9508
9509 * arch/riscv.c (struct riscv_gdbarch_features_hasher): Only define
9510 if GDBSERVER is not defined.
9511 (riscv_tdesc_cache): Likewise, also store const target_desc.
9512 (STATIC_IN_GDB): Define.
9513 (riscv_create_target_description): Update declaration with
9514 STATIC_IN_GDB.
9515 (riscv_lookup_target_description): New function, only define if
9516 GDBSERVER is not defined.
9517 * arch/riscv.h (riscv_create_target_description): Declare only
9518 when GDBSERVER is defined.
9519 (riscv_lookup_target_description): New declaration when GDBSERVER
9520 is not defined.
9521 * nat/riscv-linux-tdesc.c (riscv_linux_read_description): Rename to...
9522 (riscv_linux_read_features): ...this, and return
9523 riscv_gdbarch_features instead of target_desc.
9524 * nat/riscv-linux-tdesc.h: Include 'arch/riscv.h'.
9525 (riscv_linux_read_description): Rename to...
9526 (riscv_linux_read_features): ...this.
9527 * riscv-linux-nat.c (riscv_linux_nat_target::read_description):
9528 Update to use riscv_gdbarch_features and
9529 riscv_lookup_target_description.
9530 * riscv-tdep.c (riscv_find_default_target_description): Use
9531 riscv_lookup_target_description instead of
9532 riscv_create_target_description.
9533
373d7ac0
SM
95342020-02-18 Simon Marchi <simon.marchi@efficios.com>
9535
9536 * valprint.c (generic_val_print_enum_1): When printing a flag
9537 enum with value 0 and there is no enumerator with value 0, print
9538 just "0" instead of "(unknown: 0x0)".
9539
b29a2df0
SM
95402020-02-18 Simon Marchi <simon.marchi@efficios.com>
9541
9542 * valprint.c (generic_val_print_enum_1): Print unknown part of
9543 flag enum in hex.
9544
6740f0cc
SM
95452020-02-18 Simon Marchi <simon.marchi@efficios.com>
9546
9547 * dwarf2/read.c (update_enumeration_type_from_children): Allow
9548 flag enums to contain duplicate enumerators.
9549 * valprint.c (generic_val_print_enum_1): Update comment.
9550
edd45eb0
SM
95512020-02-18 Simon Marchi <simon.marchi@efficios.com>
9552
9553 * dwarf2/read.c: Include "count-one-bits.h".
9554 (update_enumeration_type_from_children): If an enumerator has
9555 multiple bits set, don't treat the enumeration as a "flag enum".
9556 * valprint.c (generic_val_print_enum_1): Assert that enumerators
9557 of flag enums have 0 or 1 bit set.
9558
6d0cf446
BE
95592020-02-18 Bernd Edlinger <bernd.edlinger@hotmail.de>
9560
9561 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Use an explicit
9562 conversion.
9563 * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise.
9564 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn): Likewise.
9565 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
9566 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Likewise.
9567 * s390-tdep.c (s390_displaced_step_copy_insn): Likewise.
9568
7001c1b7
SM
95692020-02-18 Simon Marchi <simon.marchi@efficios.com>
9570
9571 * MAINTAINERS: Change palmer@sifive.com to palmer@dabbelt.com.
9572
fdb61c6c
SM
95732020-02-14 Simon Marchi <simon.marchi@efficios.com>
9574
9575 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Use
9576 displaced_step_closure_up.
9577 * aarch64-tdep.h (aarch64_displaced_step_copy_insn): Likewise.
9578 (struct displaced_step_closure_up):
9579 * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise.
9580 * amd64-tdep.h (amd64_displaced_step_copy_insn): Likewise.
9581 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn):
9582 Likewise.
9583 * gdbarch.sh (displaced_step_copy_insn): Likewise.
9584 * gdbarch.c, gdbarch.h: Re-generate.
9585 * i386-linux-tdep.c (i386_linux_displaced_step_copy_insn): Use
9586 displaced_step_closure_up.
9587 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
9588 * i386-tdep.h (i386_displaced_step_copy_insn): Likewise.
9589 * infrun.h (displaced_step_closure_up): New type alias.
9590 (struct displaced_step_inferior_state) <step_closure>: Change
9591 type to displaced_step_closure_up.
9592 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Use
9593 displaced_step_closure_up.
9594 * s390-tdep.c (s390_displaced_step_copy_insn): Likewise.
9595
a4a38eb4
TT
95962020-02-14 Tom Tromey <tom@tromey.com>
9597
9598 * minidebug.c (gnu_debug_key): New global.
9599 (find_separate_debug_file_in_section): Use it.
9600
e8217e61
SM
96012020-02-14 Simon Marchi <simon.marchi@efficios.com>
9602
9603 * gdbarch.sh (displaced_step_copy_insn): Change return type to an
9604 std::unique_ptr.
9605 * gdbarch.c: Re-generate.
9606 * gdbarch.h: Re-generate.
9607 * infrun.c (displaced_step_prepare_throw): Adjust to std::unique_ptr
9608 change.
9609 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Change return
9610 type to std::unique_ptr.
9611 * aarch64-tdep.h (aarch64_displaced_step_copy_insn): Likewise.
9612 * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise.
9613 * amd64-tdep.h (amd64_displaced_step_copy_insn): Likewise.
9614 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn): Likewise.
9615 * i386-linux-tdep.c (i386_linux_displaced_step_copy_insn): Likewise.
9616 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
9617 * i386-tdep.h (i386_displaced_step_copy_insn): Likewise.
9618 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Likewise.
9619 * s390-tdep.c (s390_displaced_step_copy_insn): Likewise.
9620
d8d83535
SM
96212020-02-14 Simon Marchi <simon.marchi@efficios.com>
9622
9623 * infrun.c (get_displaced_step_closure_by_addr): Adjust to
9624 std::unique_ptr.
9625 (displaced_step_clear): Rename to...
9626 (displaced_step_reset): ... this. Just call displaced->reset ().
9627 (displaced_step_clear_cleanup): Rename to...
9628 (displaced_step_reset_cleanup): ... this.
9629 (displaced_step_prepare_throw): Adjust to std::unique_ptr.
9630 (displaced_step_fixup): Likewise.
9631 (resume_1): Likewise.
9632 (handle_inferior_event): Restore child's memory before calling
9633 displaced_step_fixup on the parent.
9634 * infrun.h (displaced_step_inferior_state) <reset>: Adjust
9635 to std::unique_ptr.
9636 <step_closure>: Change type to std::unique_ptr.
9637
5f661e03
SM
96382020-02-14 Simon Marchi <simon.marchi@efficios.com>
9639
9640 * arm-tdep.c: Include count-one-bits.h.
9641 (cleanup_block_store_pc): Use count_one_bits.
9642 (cleanup_block_load_pc): Use count_one_bits.
9643 (arm_copy_block_xfer): Use count_one_bits.
9644 (thumb2_copy_block_xfer): Use count_one_bits.
9645 (thumb_copy_pop_pc_16bit): Use count_one_bits.
9646 * arch/arm-get-next-pcs.c: Include count-one-bits.h.
9647 (thumb_get_next_pcs_raw): Use count_one_bits.
9648 (arm_get_next_pcs_raw): Use count_one_bits_l.
9649 * arch/arm.c (bitcount): Remove.
9650 * arch/arm.h (bitcount): Remove.
9651
8084e579
TT
96522020-02-14 Tom Tromey <tromey@adacore.com>
9653
9654 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first):
9655 Update.
9656 * dwarf2/loc.h (call_site_find_chain): Return unique_xmalloc_ptr.
9657 * dwarf2/loc.c (call_site_find_chain_1): Return
9658 unique_xmalloc_ptr.
9659 (call_site_find_chain): Likewise.
9660
258bf0ee
RB
96612020-02-14 Richard Biener <rguenther@suse.de>
9662
9663 * dwarf2/read.c (lnp_state_machine::handle_special_opcode): Apply CSE
9664 on expression with division operators.
9665
f98a8458
AKS
96662020-02-13 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
9667
9668 * MAINTAINERS (Write After Approval): Adding myself.
9669
d1437c0e
TT
96702020-02-12 Tom Tromey <tom@tromey.com>
9671
9672 * event-loop.c (event_data, gdb_event, event_handler_func):
9673 Remove.
9674
3d4560f7
TT
96752020-02-12 Tom Tromey <tom@tromey.com>
9676
9677 * dwarf2/frame.c (dwarf2_frame_bfd_data): New global.
9678 (dwarf2_frame_objfile_data): Add comment.
9679 (find_comp_unit, set_comp_unit): New functions.
9680 (dwarf2_frame_find_fde): Use find_comp_unit.
9681 (dwarf2_build_frame_info): Use set_comp_unit.
9682
21982304
TT
96832020-02-12 Tom Tromey <tom@tromey.com>
9684
9685 * dwarf2/frame.c (struct comp_unit) <objfile>: Remove.
9686 (comp_unit): Don't initialize objfile.
9687 (execute_cfa_program): Add text_offset parameter.
9688 (execute_cfa_program_test, dwarf2_fetch_cfa_info)
9689 (dwarf2_frame_cache): Update.
9690 (dwarf2_build_frame_info): Don't set "objfile" member.
9691
4debb237
TT
96922020-02-12 Tom Tromey <tom@tromey.com>
9693
9694 * dwarf2/frame.c (decode_frame_entry_1): Add gdbarch parameter.
9695 (decode_frame_entry): Likewise.
9696 (dwarf2_build_frame_info): Update.
9697
0d404d44
TT
96982020-02-12 Tom Tromey <tom@tromey.com>
9699
9700 * dwarf2/frame.c (struct comp_unit) <obstack>: New member.
9701 (decode_frame_entry_1): Use the comp_unit obstack.
9702
a7a3ae5c
TT
97032020-02-12 Tom Tromey <tom@tromey.com>
9704
9705 * dwarf2/frame.c (struct comp_unit): Add initializers and
9706 constructor.
9707 (dwarf2_frame_objfile_data): Store a comp_unit.
9708 (dwarf2_frame_find_fde): Update.
9709 (dwarf2_build_frame_info): Use "new".
9710
a9d65418
TT
97112020-02-12 Tom Tromey <tom@tromey.com>
9712
9713 * dwarf2/frame.c (struct dwarf2_fde_table): Remove.
9714 (dwarf2_fde_table): Typedef for std::vector.
9715 (dwarf2_frame_objfile_data): Remove the deleter. Now static.
9716 (dwarf2_frame_find_fde, add_fde, decode_frame_entry_1)
9717 (decode_frame_entry): Update.
9718 (dwarf2_build_frame_info): Use "new".
9719
7559c217
CB
97202020-02-12 Christian Biesinger <cbiesinger@google.com>
9721
9722 * arm-tdep.c (arm_gdbarch_init): Update.
9723 * arm-tdep.h (struct gdbarch_tdep) <have_fpa_registers,
9724 have_wmmx_registers, have_vfp_pseudos, have_neon_pseudos,
9725 have_neon, is_m>: Change to bool.
9726
aeefc73c
CB
97272020-02-12 Christian Biesinger <cbiesinger@google.com>
9728
9729 * arm-tdep.c (arm_dump_tdep): Print more fields of tdep.
9730
d27b8e5f
TT
97312020-02-12 Tom Tromey <tom@tromey.com>
9732
9733 * dwarf2/loc.c (struct dwarf_expr_baton): Remove.
9734
cd5900f3
HD
97352020-02-12 Hannes Domani <ssbssa@yahoo.de>
9736
9737 * windows-tdep.c (struct windows_gdbarch_data): Add tib_ptr_type.
9738 (windows_get_tlb_type): Use windows_gdbarch_data->tib_ptr_type.
9739
f056b22b
TT
97402020-02-11 Tom Tromey <tom@tromey.com>
9741
9742 * psymtab.h: Update comment.
9743
f92ff6b5
TT
97442020-02-11 Tom Tromey <tom@tromey.com>
9745
9746 * gdb_obstack.h (struct auto_obstack): Use
9747 DISABLE_COPY_AND_ASSIGN.
9748
3fd6912b
TT
97492020-02-11 Tom Tromey <tom@tromey.com>
9750
9751 * dwarf2/frame.h (struct objfile): Don't forward declare.
9752
69ed9b74
CB
97532020-02-11 Christian Biesinger <cbiesinger@google.com>
9754
9755 * cris-tdep.c (cris_supply_gregset): Change signature to match
9756 what struct regset expects.
9757 (cris_regset): New struct.
9758 (fetch_core_registers): Remove.
9759 (cris_iterate_over_regset_sections): New function.
9760 (_initialize_cris_tdep): Don't call deprecated_add_core_fns.
9761 (cris_gdbarch_init): Call set_gdbarch_iterate_over_regset_sections.
9762
bda874f6
CB
97632020-02-11 Christian Biesinger <cbiesinger@google.com>
9764
9765 * arch/arm.h (enum gdb_regnum): Add comment for the FP0..7
9766 registers.
9767
754e1564
CB
97682020-02-11 Christian Biesinger <cbiesinger@google.com>
9769
9770 * arm-tdep.c (arm_dump_tdep): Add \n in fprintf.
9771
8ddd8e0e
SM
97722020-02-11 Simon Marchi <simon.marchi@efficios.com>
9773
9774 * configure: Re-generate.
9775
898e7f60
SM
97762020-02-11 Simon Marchi <simon.marchi@efficios.com>
9777
9778 * configure: Re-generate.
9779
58df732b
SM
97802020-02-11 Simon Marchi <simon.marchi@efficios.com>
9781
9782 * acinclude: Update warning.m4 path.
9783 * warning.m4: Move to gdbsupport.
9784
da5bd37e
TT
97852020-02-11 Tom Tromey <tromey@adacore.com>
9786
9787 * remote.c (remote_console_output): Update.
9788 * printcmd.c (printf_command): Update.
9789 * event-loop.c (gdb_wait_for_event): Update.
9790 * linux-nat.c (sigchld_handler): Update.
9791 * remote-sim.c (gdb_os_write_stdout): Update.
9792 (gdb_os_flush_stdout): Update.
9793 (gdb_os_flush_stderr): Update.
9794 (gdb_os_write_stderr): Update.
9795 * exceptions.c (print_exception): Update.
9796 * remote-fileio.c (remote_fileio_func_read): Update.
9797 (remote_fileio_func_write): Update.
9798 * tui/tui.c (tui_enable): Update.
9799 * tui/tui-interp.c (tui_interp::init): Update.
9800 * utils.c (init_page_info): Update.
9801 (putchar_unfiltered, fputc_unfiltered): Update.
9802 (gdb_flush): Update.
9803 (emit_style_escape): Update.
9804 (flush_wrap_buffer, fputs_maybe_filtered): Update.
9805 * ui-file.c (ui_file_isatty, ui_file_read, ui_file_write)
9806 (ui_file_write_async_safe, ui_file_flush, ui_file_puts): Remove.
9807 (stderr_file::write): Update.
9808 (stderr_file::puts): Update.
9809 * ui-file.h (ui_file_isatty, ui_file_write)
9810 (ui_file_write_async_safe, ui_file_read, ui_file_flush)
9811 (ui_file_puts): Don't declare.
9812
85f0dd3c
TV
98132020-02-10 Tom de Vries <tdevries@suse.de>
9814
9815 * dwarf2/read.c (process_psymtab_comp_unit_reader): Cast concat NULL
9816 sentinel to char *.
9817
2e927613
TV
98182020-02-09 Tom de Vries <tdevries@suse.de>
9819
9820 * dwarf2read.c (process_psymtab_comp_unit_reader): Append CU offset to
9821 filename if it matches "<artificial>".
9822
6bafc845
HD
98232020-02-09 Hannes Domani <ssbssa@yahoo.de>
9824
9825 * windows-tdep.c (struct enum_value_name): New struct.
9826 (create_enum): New function.
9827 (windows_get_siginfo_type): Create and use enum types.
9828
7928d571
HD
98292020-02-09 Hannes Domani <ssbssa@yahoo.de>
9830
9831 * NEWS: Mention $_siginfo support for Windows.
9832 * windows-nat.c (handle_exception): Set siginfo_er.
9833 (windows_nat_target::mourn_inferior): Reset siginfo_er.
9834 (windows_xfer_siginfo): New function.
9835 (windows_nat_target::xfer_partial): Call windows_xfer_siginfo.
9836 * windows-tdep.c (struct windows_gdbarch_data): New struct.
9837 (init_windows_gdbarch_data): New function.
9838 (get_windows_gdbarch_data): New function.
9839 (windows_get_siginfo_type): New function.
9840 (windows_init_abi): Register windows_get_siginfo_type.
9841 (_initialize_windows_tdep): Register init_windows_gdbarch_data.
9842
6751ebae
TT
98432020-02-08 Tom Tromey <tom@tromey.com>
9844
9845 * dwarf2/read.c (class cutu_reader) <cutu_reader,
9846 init_tu_and_read_dwo_dies>: Remove "keep" parameter.
9847 <keep>: Declare method.
9848 <m_keep>: Remove member.
9849 <~cutu_reader>: Remove.
9850 (cutu_reader::init_tu_and_read_dwo_dies): Update.
9851 (cutu_reader::cutu_reader): Update.
9852 (cutu_reader::keep): Rename from ~cutu_reader.
9853 (process_psymtab_comp_unit, build_type_psymtabs_1)
9854 (process_skeletonless_type_unit, load_partial_comp_unit)
9855 (load_full_comp_unit, dwarf2_read_addr_index)
9856 (read_signatured_type): Update.
9857
135f5437
TT
98582020-02-08 Tom Tromey <tom@tromey.com>
9859
9860 * dwarf2/read.c (process_psymtab_comp_unit_reader): Remove
9861 "want_partial_unit" parameter.
9862 (process_psymtab_comp_unit): Change want_partial_unit to bool.
9863 Inline check for DW_TAG_partial_unit.
9864 (dwarf2_build_psymtabs_hard, scan_partial_symbols): Update.
9865
9f66ff1c
TT
98662020-02-08 Tom Tromey <tom@tromey.com>
9867
9868 * dwarf2/read.c (read_n_bytes, read_direct_string): Move to
9869 read.c.
9870 * dwarf2/leb.h (read_n_bytes, read_direct_string): Move from
9871 read.c.
9872
c8a7a66f
TT
98732020-02-08 Tom Tromey <tom@tromey.com>
9874
9875 * dwarf2/read.c (read_address): Move to comp-unit.c.
9876 (dwarf2_rnglists_process, dwarf2_ranges_process)
9877 (read_attribute_value, dwarf_decode_lines_1)
9878 (var_decode_location, decode_locdesc): Update.
9879 * dwarf2/comp-unit.c (comp_unit_head::read_address): Move from
9880 read.c. Remove "cu" parameter.
9881 * dwarf2/comp-unit.h (struct comp_unit_head) <read_address>: New
9882 method.
9883
8266302d
TT
98842020-02-08 Tom Tromey <tom@tromey.com>
9885
9886 * dwarf2/read.c (read_attribute_value, read_indirect_string)
9887 (read_indirect_line_string): Update.
9888 * dwarf2/comp-unit.c (read_offset): Remove.
9889 (read_comp_unit_head): Update.
9890 * dwarf2/comp-unit.h (struct comp_unit_head) <read_offset>: New
9891 method.
9892 (read_offset): Don't declare.
9893
4057dfde
TT
98942020-02-08 Tom Tromey <tom@tromey.com>
9895
9896 * Makefile.in (COMMON_SFILES): Add dwarf2/comp-unit.c.
9897 * dwarf2/read.c (struct comp_unit_head): Move to
9898 dwarf2/comp-unit.h.
9899 (enum class rcuh_kind): Move to comp-unit.h.
9900 (get_cu_length, offset_in_cu_p): Now methods on comp_unit_head.
9901 (read_comp_unit_head, error_check_comp_unit_head)
9902 (read_and_check_comp_unit_head): Move to comp-unit.c.
9903 (read_offset, dwarf_unit_type_name): Likewise.
9904 (create_debug_type_hash_table, read_cutu_die_from_dwo)
9905 (cutu_reader::cutu_reader, read_call_site_scope)
9906 (find_partial_die, follow_die_offset): Update.
9907 * dwarf2/comp-unit.h: New file, from dwarf2read.c.
9908
24aa364d
TT
99092020-02-08 Tom Tromey <tom@tromey.com>
9910
9911 * dwarf2/read.c (read_offset_1): Move to leb.c.
9912 (read_abbrev_offset, read_offset, dwarf_decode_line_header)
9913 (dwarf_decode_macro_bytes): Update.
9914 * dwarf2/leb.c (read_offset): Rename; move from read.c.
9915 * dwarf2/leb.h (read_offset): Declare.
9916
2c7d5afc
TT
99172020-02-08 Tom Tromey <tom@tromey.com>
9918
9919 * dwarf2/read.c (dwarf2_section_size): Remove.
9920 (error_check_comp_unit_head, dwarf2_symbol_mark_computed):
9921 Update.
9922 * dwarf2/section.h (struct dwarf2_section_info) <get_size>: New method.
9923
4075cb26
TT
99242020-02-08 Tom Tromey <tom@tromey.com>
9925
9926 * dwarf2/read.c (read_initial_length): Move to leb.c.
9927 * dwarf2/leb.h (read_initial_length): Declare.
9928 * dwarf2/leb.c (read_initial_length): Move from read.c. Add
9929 handle_nonstd parameter.
9930 * dwarf2/frame.c (read_initial_length): Remove.
9931 (decode_frame_entry_1): Update.
9932
09ba997f
TT
99332020-02-08 Tom Tromey <tom@tromey.com>
9934
9935 * dwarf2/loc.c (dwarf2_find_location_expression)
9936 (dwarf_evaluate_loc_desc::get_tls_address)
9937 (dwarf_evaluate_loc_desc::push_dwarf_reg_entry_value)
9938 (rw_pieced_value, dwarf2_evaluate_loc_desc_full)
9939 (dwarf2_locexpr_baton_eval, dwarf2_evaluate_property)
9940 (dwarf2_compile_property_to_c)
9941 (dwarf2_loc_desc_get_symbol_read_needs)
9942 (dwarf2_compile_expr_to_ax, locexpr_describe_location)
9943 (locexpr_tracepoint_var_ref, locexpr_generate_c_location)
9944 (loclist_describe_location, loclist_tracepoint_var_ref)
9945 (loclist_generate_c_location): Update.
9946 * compile/compile-loc2c.c (do_compile_dwarf_expr_to_c): Update.
9947 * dwarf2/loc.h (dwarf2_per_cu_objfile, dwarf2_per_cu_addr_size)
9948 (dwarf2_per_cu_ref_addr_size, dwarf2_per_cu_offset_size)
9949 (dwarf2_per_cu_text_offset, dwarf2_version): Don't declare.
9950 * dwarf2/read.c (dwarf2_per_cu_data::objfile)
9951 (dwarf2_per_cu_data::addr_size)
9952 (dwarf2_per_cu_data::ref_addr_size)
9953 (dwarf2_per_cu_data::text_offset)
9954 (dwarf2_per_cu_data::addr_type): Now methods.
9955 (per_cu_header_read_in): Make per_cu "const".
9956 (dwarf2_version): Remove.
9957 (dwarf2_per_cu_data::int_type): Now a method.
9958 (dwarf2_per_cu_data::_addr_sized_int_type): Likewise.
9959 (set_die_type, read_array_type, read_subrange_index_type)
9960 (read_tag_string_type, read_subrange_type): Update.
9961 * dwarf2/read.h (struct dwarf2_per_cu_data) <addr_size,
9962 offset_size, ref_addr_size, text_offset, addr_type, version,
9963 objfile, int_type, addr_sized_int_type>: Declare methods.
9964
96c738c0
TT
99652020-02-08 Tom Tromey <tom@tromey.com>
9966
9967 * dwarf2/read.h (struct dwarf2_per_cu_data) <imported_symtabs>:
9968 Move earlier.
9969
8fdd972c
TT
99702020-02-08 Tom Tromey <tom@tromey.com>
9971
9972 * dwarf2/read.h (dwarf_line_debug): Declare.
9973 * Makefile.in (COMMON_SFILES): Add dwarf2/line-header.c.
9974 * dwarf2/read.c: Move line_header code to new files.
9975 (dwarf_line_debug): No longer static.
9976 * dwarf2/line-header.c: New file.
9977 * dwarf2/line-header.h: New file.
9978
03075812
TT
99792020-02-08 Tom Tromey <tom@tromey.com>
9980
9981 * dwarf2/read.c (struct line_header) <file_full_name,
9982 file_file_name>: Return unique_xmalloc_ptr.
9983 (line_header::file_file_name): Update.
9984 (line_header::file_full_name): Update.
9985 (dw2_get_file_names_reader): Update.
9986 (macro_start_file): Update.
9987
bb822404
TT
99882020-02-08 Tom Tromey <tom@tromey.com>
9989
9990 * dwarf2/read.c (struct line_header) <file_full_name,
9991 file_file_name>: Declare methods.
9992 (dw2_get_file_names_reader): Update.
9993 (file_file_name): Now a method.
9994 (file_full_name): Likewise.
9995 (macro_start_file): Update.
9996
009b64fc
TT
99972020-02-08 Tom Tromey <tom@tromey.com>
9998
9999 * dwarf2/read.c (dwarf_always_disassemble)
10000 (show_dwarf_always_disassemble): Move to loc.c.
10001 (_initialize_dwarf2_read): Move "always-disassemble" registration
10002 to loc.c.
10003 * dwarf2/read.h (dwarf_always_disassemble): Don't declare.
10004 * dwarf2/loc.c (dwarf_always_disassemble): Move from read.c. Now
10005 static.
10006 (show_dwarf_always_disassemble): Move from read.c.
10007 (_initialize_dwarf2loc): Move always-disassemble from read.c.
10008
5895093f
TT
100092020-02-08 Tom Tromey <tom@tromey.com>
10010
10011 * dwarf2/read.c (~dwarf2_per_objfile): Update.
10012 (create_quick_file_names_table): Return htab_up.
10013 (dw2_get_file_names_reader, dw2_forget_cached_source_info):
10014 Update.
10015 * dwarf2/read.h (struct dwarf2_per_objfile)
10016 <quick_file_names_table>: Now htab_up.
10017
b3b32279
TT
100182020-02-08 Tom Tromey <tom@tromey.com>
10019
10020 * dwarf2/abbrev.c (abbrev_table::read): Simplify.
10021
1d33d811
TT
100222020-02-08 Tom Tromey <tom@tromey.com>
10023
10024 * dwarf2/abbrev.c (abbrev_table): Move constructor from header.
10025 Rewrite.
10026 (abbrev_table::add_abbrev, abbrev_table::lookup_abbrev): Rewrite.
10027 * dwarf2/abbrev.h (struct abbrev_info) <next>: Remove.
10028 (abbrev_table::abbrev_table): No longer inline.
10029 (ABBREV_HASH_SIZE): Remove.
10030 (abbrev_table::m_abbrevs): Now an htab_up.
10031
86de1d91
TT
100322020-02-08 Tom Tromey <tom@tromey.com>
10033
10034 * dwarf2/read.c (read_cutu_die_from_dwo): Update.
10035 (cutu_reader): Update.
10036 (build_type_psymtabs_1): Update.
10037 * dwarf2/abbrev.c (abbrev_table::read): Rename.
10038 (abbrev_table::alloc_abbrev): Update.
10039 * dwarf2/abbrev.h (abbrev_table_up): Move earlier.
10040 (abbrev_table::read): New static method, renamed from
10041 abbrev_table_read_table.
10042 (abbrev_table::alloc_abbrev)
10043 (abbrev_table::add_abbrev): Now private.
10044 (abbrev_table::abbrev_table): Now private.
10045 (abbrev_table::m_abbrev_obstack): Now private. Rename.
10046
0335378b
TT
100472020-02-08 Tom Tromey <tom@tromey.com>
10048
10049 * dwarf2/read.c (set_die_type, get_die_type_at_offset): Update.
10050 * dwarf2/read.h (struct dwarf2_per_objfile) <die_type_hash>: Now
10051 htab_up.
10052
48b490f2
TT
100532020-02-08 Tom Tromey <tom@tromey.com>
10054
10055 * dwarf2/read.c (struct dwp_file) <loaded_cus, loaded_tus>: Now
10056 htab_up.
10057 (lookup_dwo_unit_in_dwp): Update.
10058 (allocate_dwp_loaded_cutus_table): Return htab_up. Don't allocate
10059 on obstack.
10060
bc68fb19
TT
100612020-02-08 Tom Tromey <tom@tromey.com>
10062
10063 * dwarf2/read.c (allocate_dwo_file_hash_table): Don't allocate on
10064 obstack.
10065
d15acc42
TT
100662020-02-08 Tom Tromey <tom@tromey.com>
10067
10068 * dwarf2/read.c (~dwarf2_per_objfile): Don't delete
10069 line_header_hash.
10070 (handle_DW_AT_stmt_list): Update. Don't allocate on obstack.
10071 * dwarf2/read.h (struct dwarf2_per_objfile) <line_header_hash>:
10072 Change type to htab_up.
10073
eaa5fa8b
TT
100742020-02-08 Tom Tromey <tom@tromey.com>
10075
10076 * dwarf2/read.c (allocate_type_unit_groups_table): Return
10077 htab_up. Don't allocate on obstack.
10078 (get_type_unit_group, dwarf2_build_psymtabs_hard): Update.
10079 * dwarf2/read.h (struct dwarf2_per_objfile) <type_unit_groups>:
10080 Change type to htab_up.
10081
b0b6a987
TT
100822020-02-08 Tom Tromey <tom@tromey.com>
10083
10084 * dwarf2/read.h (struct dwarf2_per_objfile) <signatured_types>:
10085 Change type to htab_up.
10086 * dwarf2/read.c (create_signatured_type_table_from_index)
10087 (create_signatured_type_table_from_debug_names)
10088 (create_all_type_units, add_type_unit)
10089 (lookup_dwo_signatured_type, lookup_signatured_type)
10090 (process_skeletonless_type_unit): Update.
10091 (create_debug_type_hash_table, create_debug_types_hash_table):
10092 Change type of types_htab.
10093 (allocate_signatured_type_table, allocate_dwo_unit_table): Return
10094 htab_up. Don't allocate on obstack.
10095 (create_cus_hash_table): Change type of cus_htab parameter.
10096 (struct dwo_file) <cus, tus>: Now htab_up.
10097 (lookup_dwo_signatured_type, lookup_dwo_cutu)
10098 (process_dwo_file_for_skeletonless_type_units, lookup_dwo_cutu)
10099 (queue_and_load_all_dwo_tus): Update.
10100 * dwarf2/index-write.c (write_gdbindex): Update.
10101 (write_debug_names): Update.
10102
39856def
TT
101032020-02-08 Tom Tromey <tom@tromey.com>
10104
10105 * dwarf2/read.h (struct dwarf2_queue_item): Move from
10106 dwarf2/read.c. Remove "next" member. Add constructor ntad
10107 destructor.
10108 (struct dwarf2_per_objfile) <queue>: New member.
10109 * dwarf2/read.c (struct dwarf2_queue_item): Move to
10110 dwarf2/read.h.
10111 (dwarf2_queue, dwarf2_queue_tail): Remove.
10112 (class dwarf2_queue_guard): Add parameter to constructor. Use
10113 DISABLE_COPY_AND_ASSIGN.
10114 <m_per_objfile>: New member.
10115 <~dwarf2_queue_guard>: Rewrite.
10116 (dw2_do_instantiate_symtab, queue_comp_unit, process_queue):
10117 Update.
10118 (~dwarf2_queue_item): New.
10119
3e225074
TT
101202020-02-08 Tom Tromey <tom@tromey.com>
10121
10122 * dwarf2/read.c (struct die_info) <has_children>: New member.
10123 (dw2_get_file_names_reader): Remove has_children.
10124 (dw2_get_file_names): Update.
10125 (read_cutu_die_from_dwo): Remove has_children.
10126 (cutu_reader::init_tu_and_read_dwo_dies)
10127 (cutu_reader::cutu_reader): Update.
10128 (process_psymtab_comp_unit_reader, build_type_psymtabs_reader):
10129 Remove has_children.
10130 (build_type_psymtabs_1, process_skeletonless_type_unit)
10131 (load_partial_comp_unit, load_full_comp_unit): Update.
10132 (create_dwo_cu_reader): Remove has_children.
10133 (create_cus_hash_table, read_die_and_children): Update.
10134 (read_full_die_1,read_full_die): Remove has_children.
10135 (read_signatured_type): Update.
10136 (class cutu_reader) <has_children>: Remove.
10137
82ca8957
TT
101382020-02-08 Tom Tromey <tom@tromey.com>
10139
10140 * dwarf2/expr.c: Rename from dwarf2expr.c.
10141 * dwarf2/expr.h: Rename from dwarf2expr.h.
10142 * dwarf2/frame-tailcall.c: Rename from dwarf2-frame-tailcall.c.
10143 * dwarf2/frame-tailcall.h: Rename from dwarf2-frame-tailcall.h.
10144 * dwarf2/frame.c: Rename from dwarf2-frame.c.
10145 * dwarf2/frame.h: Rename from dwarf2-frame.h.
10146 * dwarf2/index-cache.c: Rename from dwarf-index-cache.c.
10147 * dwarf2/index-cache.h: Rename from dwarf-index-cache.h.
10148 * dwarf2/index-common.c: Rename from dwarf-index-common.c.
10149 * dwarf2/index-common.h: Rename from dwarf-index-common.h.
10150 * dwarf2/index-write.c: Rename from dwarf-index-write.c.
10151 * dwarf2/index-write.h: Rename from dwarf-index-write.h.
10152 * dwarf2/loc.c: Rename from dwarf2loc.c.
10153 * dwarf2/loc.h: Rename from dwarf2loc.h.
10154 * dwarf2/read.c: Rename from dwarf2read.c.
10155 * dwarf2/read.h: Rename from dwarf2read.h.
10156 * dwarf2/abbrev.c, aarch64-tdep.c, alpha-tdep.c,
10157 amd64-darwin-tdep.c, arc-tdep.c, arm-tdep.c, bfin-tdep.c,
10158 compile/compile-c-symbols.c, compile/compile-cplus-symbols.c,
10159 compile/compile-loc2c.c, cris-tdep.c, csky-tdep.c, findvar.c,
10160 gdbtypes.c, guile/scm-type.c, h8300-tdep.c, hppa-bsd-tdep.c,
10161 hppa-linux-tdep.c, i386-darwin-tdep.c, i386-linux-tdep.c,
10162 i386-tdep.c, iq2000-tdep.c, m32c-tdep.c, m68hc11-tdep.c,
10163 m68k-tdep.c, microblaze-tdep.c, mips-tdep.c, mn10300-tdep.c,
10164 msp430-tdep.c, nds32-tdep.c, nios2-tdep.c, or1k-tdep.c,
10165 riscv-tdep.c, rl78-tdep.c, rs6000-tdep.c, rx-tdep.c, s12z-tdep.c,
10166 s390-tdep.c, score-tdep.c, sh-tdep.c, sparc-linux-tdep.c,
10167 sparc-tdep.c, sparc64-linux-tdep.c, sparc64-tdep.c, tic6x-tdep.c,
10168 tilegx-tdep.c, v850-tdep.c, xstormy16-tdep.c, xtensa-tdep.c:
10169 Update.
10170 * Makefile.in (COMMON_SFILES): Update.
10171 (HFILES_NO_SRCDIR): Update.
10172
9e35d499
TT
101732020-02-08 Tom Tromey <tom@tromey.com>
10174
10175 * dwarf2read.c (struct die_reader_specs) <comp_dir>: Remove.
10176 (init_cu_die_reader, read_cutu_die_from_dwo): Update.
10177
1eba2311
TT
101782020-02-08 Tom Tromey <tom@tromey.com>
10179
10180 * dwarf2read.h (struct die_info): Don't declare.
10181
e41c2da2
TT
101822020-02-08 Tom Tromey <tom@tromey.com>
10183
10184 * dwarf2read.h (die_info_ptr): Remove typedef.
10185
4fc6c0d5
TT
101862020-02-08 Tom Tromey <tom@tromey.com>
10187
10188 * dwarf2read.c (read_call_site_scope)
10189 (handle_data_member_location, dwarf2_add_member_fn)
10190 (mark_common_block_symbol_computed, read_common_block)
10191 (attr_to_dynamic_prop, partial_die_info::read)
10192 (var_decode_location, dwarf2_fetch_die_loc_sect_off)
10193 (dwarf2_symbol_mark_computed, set_die_type): Update.
10194 * dwarf2/attribute.h (struct attribute) <form_is_block>: Declare
10195 method.
10196 (attr_form_is_block): Don't declare.
10197 * dwarf2/attribute.c (attribute::form_is_block): Now a method.
10198
cd6c91b4
TT
101992020-02-08 Tom Tromey <tom@tromey.com>
10200
10201 * dwarf2read.c (dwarf2_find_base_address, )
10202 (read_call_site_scope, rust_containing_type)
10203 (dwarf2_get_pc_bounds, dwarf2_record_block_ranges)
10204 (handle_data_member_location, dwarf2_add_member_fn)
10205 (get_alignment, read_structure_type, process_structure_scope)
10206 (mark_common_block_symbol_computed, read_common_block)
10207 (read_tag_string_type, attr_to_dynamic_prop, read_subrange_type)
10208 (partial_die_info::read, read_attribute_value, new_symbol)
10209 (lookup_die_type, dwarf2_get_ref_die_offset)
10210 (dwarf2_get_attr_constant_value, follow_die_ref_or_sig)
10211 (dwarf2_fetch_die_loc_sect_off, get_DW_AT_signature_type)
10212 (dwarf2_symbol_mark_computed): Update.
10213 * dwarf2/attribute.h (struct attribute) <value_as_address,
10214 form_is_section_offset, form_is_constant, form_is_ref>: Declare
10215 methods.
10216 (value_as_address, attr_form_is_section_offset)
10217 (attr_form_is_constant, attr_form_is_ref): Don't declare.
10218 * dwarf2/attribute.c (attribute::value_as_address)
10219 (attribute::form_is_section_offset, attribute::form_is_constant)
10220 (attribute::form_is_ref): Now methods.
10221
162dce55
TT
102222020-02-08 Tom Tromey <tom@tromey.com>
10223
10224 * dwarf2read.c (struct attribute, DW_STRING)
10225 (DW_STRING_IS_CANONICAL, DW_UNSND, DW_BLOCK, DW_SND, DW_ADDR)
10226 (DW_SIGNATURE, struct dwarf_block, attr_value_as_address)
10227 (attr_form_is_block, attr_form_is_section_offset)
10228 (attr_form_is_constant, attr_form_is_ref): Move.
10229 * dwarf2/attribute.h: New file.
10230 * dwarf2/attribute.c: New file, from dwarf2read.c.
10231 * Makefile.in (COMMON_SFILES): Add dwarf2/attribute.c.
10232
3054dd54
TT
102332020-02-08 Tom Tromey <tom@tromey.com>
10234
10235 * dwarf2read.c (abbrev_table_up, struct abbrev_info)
10236 (struct attr_abbrev, ABBREV_HASH_SIZE, struct abbrev_table):
10237 Move.
10238 (read_cutu_die_from_dwo, build_type_psymtabs_1): Update.
10239 (abbrev_table::alloc_abbrev, abbrev_table::add_abbrev)
10240 (abbrev_table::lookup_abbrev, abbrev_table_read_table): Move to
10241 abbrev.c.
10242 * dwarf2/abbrev.h: New file.
10243 * dwarf2/abbrev.c: New file, from dwarf2read.c.
10244 * Makefile.in (COMMON_SFILES): Add dwarf2/abbrev.c.
10245
96b79293
TT
102462020-02-08 Tom Tromey <tom@tromey.com>
10247
10248 * dwarf2read.c (dwarf2_section_buffer_overflow_complaint)
10249 (dwarf2_section_size, dwarf2_get_section_info)
10250 (create_signatured_type_table_from_debug_names)
10251 (create_addrmap_from_aranges, read_debug_names_from_section)
10252 (get_gdb_index_contents_from_section, read_comp_unit_head)
10253 (error_check_comp_unit_head, read_abbrev_offset)
10254 (create_debug_type_hash_table, init_cu_die_reader)
10255 (read_cutu_die_from_dwo, dwarf2_build_psymtabs_hard)
10256 (read_comp_units_from_section, create_cus_hash_table)
10257 (create_dwp_hash_table, create_dwo_unit_in_dwp_v1)
10258 (create_dwp_v2_section, dwarf2_rnglists_process)
10259 (dwarf2_ranges_process, read_die_and_siblings, read_full_die)
10260 (abbrev_table_read_table, read_indirect_string_at_offset_from)
10261 (read_indirect_string_from_dwz, read_addr_index_1)
10262 (read_str_index, dwarf_decode_line_header, skip_form_bytes)
10263 (dwarf_decode_macro_bytes, dwarf_decode_macros)
10264 (fill_in_loclist_baton): Update.
10265 * dwarf2/section.h (struct dwarf2_section_info) <get_name,
10266 get_containing_section, get_bfd_owner, get_bfd_section,
10267 get_file_name, get_id, get_flags, empty, read>: Declare methods.
10268 (dwarf2_read_section, get_section_name, get_section_file_name)
10269 (get_containing_section, get_section_bfd_owner)
10270 (get_section_bfd_section, get_section_name, get_section_file_name)
10271 (get_section_id, get_section_flags, dwarf2_section_empty_p): Don't
10272 declare.
10273 * dwarf2/section.c (dwarf2_section_info::get_containing_section)
10274 (dwarf2_section_info::get_bfd_owner)
10275 (dwarf2_section_info::get_bfd_section)
10276 (dwarf2_section_info::get_name)
10277 (dwarf2_section_info::get_file_name, dwarf2_section_info::get_id)
10278 (dwarf2_section_info::get_flags, dwarf2_section_info::empty)
10279 (dwarf2_section_info::read): Now methods.
10280 * dwarf-index-write.c (class debug_names): Update.
10281
2c86cff9
TT
102822020-02-08 Tom Tromey <tom@tromey.com>
10283
10284 * dwarf2read.h (struct dwarf2_section_info, dwarf2_read_section):
10285 Move to dwarf2/section.h.
10286 * dwarf2read.c (get_containing_section, get_section_bfd_owner)
10287 (get_section_bfd_section, get_section_name)
10288 (get_section_file_name, get_section_id, get_section_flags)
10289 (dwarf2_section_empty_p, dwarf2_read_section): Moe to
10290 dwarf2/section.c.
10291 * dwarf2/section.h: New file.
10292 * dwarf2/section.c: New file, from dwarf2read.c.
10293 * Makefile.in (COMMON_SFILES): Add dwarf2/section.c.
10294
f4382c45
TT
102952020-02-08 Tom Tromey <tom@tromey.com>
10296
10297 * dwarf2read.h (read_unsigned_leb128): Don't declare.
10298 * dwarf2read.c (read_1_byte, read_1_signed_byte, read_2_bytes)
10299 (read_2_signed_bytes, read_3_bytes, read_4_bytes)
10300 (read_4_signed_bytes, read_8_bytes): Move to dwarf2/leb.h.
10301 (read_unsigned_leb128, read_signed_leb128): Move to dwarf2/leb.c.
10302 * dwarf2/leb.h: New file, from dwarf2read.c.
10303 * dwarf2/leb.c: New file, from dwarf2read.c.
10304 * dwarf2-frame.c (read_1_byte, read_4_bytes, read_8_bytes):
10305 Remove.
10306 * Makefile.in (CONFIG_SRC_SUBDIR): Add dwarf2.
10307 (COMMON_SFILES): Add dwarf2/leb.c.
10308
01840b7a
JB
103092020-02-08 Joel Brobecker <brobecker@adacore.com>
10310
10311 GDB 9.1 released.
10312
dfcb27e4
IB
103132020-02-05 Iain Buclaw <ibuclaw@gdcproject.org>
10314
10315 PR gdb/25190:
aac66a4c
SM
10316 * gdb/remote-sim.c (gdb_os_write_stderr): Update.
10317 * gdb/remote.c (remote_console_output): Update.
10318 * gdb/ui-file.c (fputs_unfiltered): Rename to...
10319 (ui_file_puts): ...this.
10320 * gdb/ui-file.h (ui_file_puts): Add declaration.
10321 * gdb/utils.c (emit_style_escape): Update.
10322 (flush_wrap_buffer): Update.
10323 (fputs_maybe_filtered): Update.
10324 (fputs_unfiltered): Add function.
dfcb27e4 10325
faa17681
IB
103262020-02-05 Iain Buclaw <ibuclaw@gdcproject.org>
10327
aac66a4c
SM
10328 * gdb/event-loop.c (gdb_wait_for_event): Update.
10329 * gdb/printcmd.c (printf_command): Update.
10330 * gdb/remote-fileio.c (remote_fileio_func_write): Update.
10331 * gdb/remote-sim.c (gdb_os_flush_stdout): Update.
10332 (gdb_os_flush_stderr): Update.
10333 * gdb/remote.c (remote_console_output): Update.
10334 * gdb/ui-file.c (gdb_flush): Rename to...
10335 (ui_file_flush): ...this.
10336 (stderr_file::write): Update.
10337 (stderr_file::puts): Update.
10338 * gdb/ui-file.h (gdb_flush): Rename to...
10339 (ui_file_flush): ...this.
10340 * gdb/utils.c (gdb_flush): Add function.
10341 * gdb/utils.h (gdb_flush): Add declaration.
faa17681 10342
5abbbe1d
TT
103432020-02-07 Tom Tromey <tromey@adacore.com>
10344
10345 PR breakpoints/24915:
10346 * source.c (find_and_open_source): Do not check basenames_may_differ.
10347
919adfe8
TT
103482020-02-07 Tom Tromey <tom@tromey.com>
10349
10350 * README: Update gdbserver documentation.
10351 * gdbserver: Move to top level.
10352 * configure.tgt (build_gdbserver): Remove.
10353 * configure.ac: Remove --enable-gdbserver.
10354 * configure: Rebuild.
10355 * Makefile.in (distclean): Don't mention gdbserver.
10356
1d5d29e7
SV
103572020-02-06 Shahab Vahedi <shahab@synopsys.com>
10358
10359 * source-cache.c (source_cache::ensure): Surround
10360 get_plain_source_lines with a try/catch.
10361 (source_cache::get_line_charpos): Get rid of try/catch
10362 and only check for the return value of "ensure".
10363 * tui/tui-source.c (tui_source_window::set_contents):
10364 Simplify "nlines" calculation.
10365
6eb1129c
SV
103662020-02-06 Shahab Vahedi <shahab@synopsys.com>
10367
10368 * MAINTAINERS (Write After Approval): Add myself.
10369
c6a42d11
CB
103702020-02-05 Christian Biesinger <cbiesinger@google.com>
10371
10372 * sparc-nat.h (struct sparc_target) <xfer_partial>: Fix base class
10373 function call.
10374
c8ecdda6
CB
103752020-02-05 Christian Biesinger <cbiesinger@google.com>
10376
10377 * ppc-nbsd-tdep.h: Fix macro name in #endif comment.
10378
f6480e70
MR
103792020-02-05 Maciej W. Rozycki <macro@wdc.com>
10380
10381 * nat/riscv-linux-tdesc.h: New file.
10382 * nat/riscv-linux-tdesc.c: New file, taking code from...
10383 * riscv-linux-nat.c (riscv_linux_nat_target::read_description):
10384 ... here.
10385 * configure.nat <linux> <riscv*>: Add nat/riscv-linux-tdesc.o to
10386 NATDEPFILES.
10387
dcc9fbc6
AB
103882020-02-04 Andrew Burgess <andrew.burgess@embecosm.com>
10389
10390 * remote-sim.c (sim_inferior_data::sim_inferior_data): Assert that
10391 we don't set the fake simulator ptid to the null_ptid.
10392
719546c4
SM
103932020-02-03 Simon Marchi <simon.marchi@efficios.com>
10394
10395 * fork-child.c (gdb_startup_inferior): Use bool instead of int.
10396 * gdbthread.h (class thread_info) <resumed>: Likewise.
10397 * infrun.c (resume_1): Likewise.
10398 (proceed): Likewise.
10399 (infrun_thread_stop_requested): Likewise.
10400 (stop_all_threads): Likewise.
10401 (handle_inferior_event): Likewise.
10402 (restart_threads): Likewise.
10403 (finish_step_over): Likewise.
10404 (keep_going_stepped_thread): Likewise.
10405 * linux-nat.c (attach_proc_task_lwp_callback): Likewise.
10406 (linux_handle_extended_wait): Likewise.
10407 * record-btrace.c (get_thread_current_frame_id): Likewise.
10408 * record-full.c (record_full_wait_1): Likewise.
10409 * remote.c (remote_target::process_initial_stop_replies): Likewise.
10410 * target.c (target_resume): Likewise.
10411 * thread.c (set_running_thread): Likewise.
10412
e409c542
AKS
104132020-02-03 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
10414
10415 * f-valprint.c (f77_print_array_1): Changed datatype of index
10416 variable to LONGEST from int to enable it to contain bound
10417 values correctly.
10418
ee98c0da
MR
104192020-02-03 Maciej W. Rozycki <macro@wdc.com>
10420
10421 * riscv-linux-nat.c [!NFPREG] (NFPREG): New macro.
10422 (supply_fpregset_regnum, fill_fpregset): Handle regset buffer
10423 offsets according to FLEN determined.
10424 (riscv_linux_nat_target::read_description): Determine FLEN
10425 dynamically.
10426 (riscv_linux_nat_target::fetch_registers): Size regset buffer
10427 according to FLEN determined.
10428 (riscv_linux_nat_target::store_registers): Likewise.
10429
aa66aac4
SV
104302020-02-01 Shahab Vahedi <shahab@synopsys.com>
10431
10432 * target-descriptions.c (tdesc_register_in_reggroup_p): Return 0
10433 when reg->group is empty and reggroup is not.
10434
fd9faca8
TT
104352020-01-31 Tom Tromey <tromey@adacore.com>
10436
10437 * ravenscar-thread.c (ravenscar_thread_target::mourn_inferior):
10438 Call beneath target's mourn_inferior after unpushing.
10439
42330a68
AB
104402020-01-31 Andrew Burgess <andrew.burgess@embecosm.com>
10441
10442 PR tui/9765
10443 * tui/tui-disasm.c (tui_find_disassembly_address): If we don't
10444 have enough lines to fill the screen, still return the lowest
10445 address we found.
10446
7a27a45b
AB
104472020-01-31 Andrew Burgess <andrew.burgess@embecosm.com>
10448
10449 * tui/tui-win.c (_initialize_tui_win): Update help text for '+',
10450 '-', '<', and '>' commands.
10451
c47f70e2
PA
104522020-01-29 Pedro Alves <palves@redhat.com>
10453 Sergio Durigan Junior <sergiodj@redhat.com>
10454
10455 * infcmd.c (construct_inferior_arguments): Assert that
10456 'argc' is greater than 0.
10457
5133a315
LM
104582020-01-29 Luis Machado <luis.machado@linaro.org>
10459
10460 * aarch64-tdep.c (BRK_INSN_MASK): Define to 0xffe0001f.
10461 (BRK_INSN_MASK): Define to 0xd4200000.
10462 (aarch64_program_breakpoint_here_p): New function.
10463 (aarch64_gdbarch_init): Set gdbarch_program_breakpoint_here_p hook.
10464 * arch-utils.c (default_program_breakpoint_here_p): Moved from
10465 breakpoint.c.
10466 * arch-utils.h (default_program_breakpoint_here_p): Moved from
10467 breakpoint.h
10468 * breakpoint.c (bp_loc_is_permanent): Changed return type to bool and
10469 call gdbarch_program_breakpoint_here_p.
10470 (program_breakpoint_here): Moved to arch-utils.c, renamed to
10471 default_program_breakpoint_here_p, changed return type to bool and
10472 simplified.
10473 * breakpoint.h (program_breakpoint_here): Moved prototype to
10474 arch-utils.h, renamed to default_program_breakpoint_here_p and changed
10475 return type to bool.
10476 * gdbarch.c: Regenerate.
10477 * gdbarch.h: Regenerate.
10478 * gdbarch.sh (program_breakpoint_here_p): New method.
10479 * infrun.c (handle_signal_stop): Call
10480 gdbarch_program_breakpoint_here_p.
10481
168f8c6b
TT
104822020-01-26 Tom Tromey <tom@tromey.com>
10483
10484 * ctfread.c (struct ctf_fp_info): Reindent.
10485 (_initialize_ctfread): Remove.
10486
128a391f
TT
104872020-01-26 Tom Tromey <tom@tromey.com>
10488
10489 * psymtab.c (partial_map_expand_apply)
10490 (psym_find_pc_sect_compunit_symtab, psym_lookup_symbol)
10491 (psymtab_to_symtab, psym_find_last_source_symtab, dump_psymtab)
10492 (psym_print_stats, psym_expand_symtabs_for_function)
10493 (psym_map_symbol_filenames, psym_map_matching_symbols)
10494 (psym_expand_symtabs_matching)
10495 (partial_symtab::read_dependencies, maintenance_info_psymtabs)
10496 (maintenance_check_psymtabs): Use new methods.
10497 * psympriv.h (struct partial_symtab) <readin_p,
10498 get_compunit_symtab>: New methods.
10499 <readin, compunit_symtab>: Remove members.
10500 (struct standard_psymtab): New.
10501 (struct legacy_psymtab): Derive from standard_psymtab.
10502 * dwarf2read.h (struct dwarf2_psymtab): Derive from
10503 standard_psymtab.
10504 * ctfread.c (struct ctf_psymtab): Derive from standard_psymtab.
10505
0494dbec
TT
105062020-01-26 Tom Tromey <tom@tromey.com>
10507
10508 * xcoffread.c (xcoff_psymtab_to_symtab_1): Call
10509 read_dependencies. Add assert.
10510 * psymtab.c (partial_symtab::read_dependencies): New method.
10511 * psympriv.h (struct partial_symtab) <read_dependencies>: New
10512 method.
10513 * mdebugread.c (psymtab_to_symtab_1): Call read_dependencies.
10514 * dwarf2read.c (dwarf2_psymtab::expand_psymtab): Call
10515 read_dependencies.
10516 * dbxread.c (dbx_psymtab_to_symtab_1): Call read_dependencies.
10517 Add assert.
10518
8566b89b
TT
105192020-01-26 Tom Tromey <tom@tromey.com>
10520
10521 * xcoffread.c (xcoff_psymtab_to_symtab_1): Change argument order.
10522 Call expand_psymtab.
10523 (xcoff_read_symtab): Call expand_psymtab.
10524 (xcoff_start_psymtab, xcoff_end_psymtab): Set
10525 legacy_expand_psymtab.
10526 * psympriv.h (struct partial_symtab) <expand_psymtab>: New
10527 method.
10528 (struct legacy_psymtab) <expand_psymtab>: Implement.
10529 <legacy_expand_psymtab>: New member.
10530 * mdebugread.c (mdebug_read_symtab): Call expand_psymtab.
10531 (parse_partial_symbols): Set legacy_expand_psymtab.
10532 (psymtab_to_symtab_1): Change argument order. Call
10533 expand_psymtab.
10534 (new_psymtab): Set legacy_expand_psymtab.
10535 * dwarf2read.h (struct dwarf2_psymtab) <expand_psymtab>: Declare.
10536 * dwarf2read.c (dwarf2_psymtab::read_symtab): Call
10537 expand_psymtab.
10538 (dwarf2_psymtab::expand_psymtab): Rename from
10539 psymtab_to_symtab_1. Call expand_psymtab.
10540 * dbxread.c (start_psymtab): Set legacy_expand_psymtab.
10541 (dbx_end_psymtab): Likewise.
10542 (dbx_psymtab_to_symtab_1): Change argument order. Call
10543 expand_psymtab.
10544 (dbx_read_symtab): Call expand_psymtab.
10545 * ctfread.c (struct ctf_psymtab) <expand_psymtab>: Declare.
10546 (ctf_psymtab::expand_psymtab): Rename from psymtab_to_symtab.
10547 (ctf_psymtab::read_symtab): Call expand_psymtab.
10548
077cbab2
TT
105492020-01-26 Tom Tromey <tom@tromey.com>
10550
10551 * xcoffread.c (xcoff_read_symtab): Remove prints. Add assert.
10552 * psymtab.c (psymtab_to_symtab): Print verbose "Reading"
10553 messages.
10554 * mdebugread.c (mdebug_read_symtab): Remove prints.
10555 * dwarf2read.c (dwarf2_psymtab::read_symtab): Remove prints. Add
10556 assert.
10557 * dbxread.c (dbx_read_symtab): Remove prints. Add assert.
10558
891813be
TT
105592020-01-26 Tom Tromey <tom@tromey.com>
10560
10561 * xcoffread.c (this_symtab_psymtab, read_xcoff_symtab)
10562 (xcoff_psymtab_to_symtab_1, xcoff_read_symtab)
10563 (xcoff_start_psymtab, xcoff_end_psymtab, scan_xcoff_symtab): Use
10564 legacy_symtab.
10565 * stabsread.h (dbx_end_psymtab): Use legacy_symtab.
10566 * psymtab.c (psymtab_to_symtab): Call method.
10567 (dump_psymtab): Update.
10568 * psympriv.h (struct partial_symtab): Add virtual destructor.
10569 <read_symtab>: New method.
10570 (struct legacy_symtab): New.
10571 * mdebugread.c (mdebug_read_symtab): Use legacy_psymtab.
10572 (struct pst_map) <pst>: Now a legacy_psymtab.
10573 (parse_procedure, parse_partial_symbols, psymtab_to_symtab_1)
10574 (new_psymtab): Use legacy_psymtab.
10575 * dwarf2read.h (struct dwarf2_psymtab): New.
10576 (struct dwarf2_per_cu_data) <psymtab>: Use it.
10577 * dwarf2read.c (dwarf2_create_include_psymtab)
10578 (dwarf2_build_include_psymtabs, create_type_unit_group)
10579 (create_partial_symtab, process_psymtab_comp_unit_reader)
10580 (build_type_psymtabs_reader, build_type_psymtab_dependencies)
10581 (set_partial_user): Use dwarf2_psymtab.
10582 (dwarf2_psymtab::read_symtab): Rename from dwarf2_read_symtab.
10583 (psymtab_to_symtab_1, process_full_comp_unit)
10584 (process_full_type_unit, dwarf2_ranges_read)
10585 (dwarf2_get_pc_bounds, psymtab_include_file_name)
10586 (dwarf_decode_lines): Use dwarf2_psymtab.
10587 * dwarf-index-write.c (psym_index_map): Use dwarf2_psymtab.
10588 (add_address_entry_worker, write_one_signatured_type)
10589 (recursively_count_psymbols, recursively_write_psymbols)
10590 (write_one_signatured_type, psyms_seen_size, write_gdbindex)
10591 (write_debug_names): Likewise.
10592 * dbxread.c (struct header_file_location): Take a legacy_psymtab.
10593 <pst>: Now a legacy_psymtab.
10594 (find_corresponding_bincl_psymtab): Return a legacy_psymtab.
10595 (read_dbx_symtab, start_psymtab, dbx_end_psymtab)
10596 (dbx_psymtab_to_symtab_1, read_ofile_symtab): Use legacy_psymtab.
10597 * ctfread.c (struct ctf_psymtab): New.
10598 (ctf_start_symtab, ctf_end_symtab, psymtab_to_symtab): Take a
10599 ctf_psymtab.
10600 (ctf_psymtab::read_symtab): Rename from ctf_read_symtab.
10601 (create_partial_symtab): Return a ctf_psymtab.
10602 (scan_partial_symbols): Update.
10603
c3693a1d
TT
106042020-01-26 Tom Tromey <tom@tromey.com>
10605
10606 * xcoffread.c (xcoff_start_psymtab): Use new.
10607 * psymtab.c (partial_symtab::partial_symtab): New constructor,
10608 renamed from start_psymtab_common.
10609 * psympriv.h (struct partial_symtab): Add new constructor.
10610 (start_psymtab_common): Don't declare.
10611 * mdebugread.c (parse_partial_symbols): Use new.
10612 * dwarf2read.c (create_partial_symtab): Use new.
10613 * dbxread.c (start_psymtab): Use new.
10614 * ctfread.c (create_partial_symtab): Use new.
10615
32caafd0
TT
106162020-01-26 Tom Tromey <tom@tromey.com>
10617
10618 * xcoffread.c (xcoff_end_psymtab): Use new.
10619 * psymtab.c (start_psymtab_common): Use new.
10620 (partial_symtab::partial_symtab): Rename from allocate_psymtab.
10621 Update.
10622 * psympriv.h (struct partial_symtab): Add parameters to
10623 constructor. Don't inline.
10624 (allocate_psymtab): Don't declare.
10625 * mdebugread.c (new_psymtab): Use new.
10626 * dwarf2read.c (dwarf2_create_include_psymtab): Use new.
10627 * dbxread.c (dbx_end_psymtab): Use new.
10628
abaa2f23
TT
106292020-01-26 Tom Tromey <tom@tromey.com>
10630
10631 * psymtab.h (class psymtab_storage) <install_psymtab>: Rename from
10632 allocate_psymtab. Update documentation.
10633 * psymtab.c (psymtab_storage::install_psymtab): Rename from
10634 allocate_psymtab. Do not use new.
10635 (allocate_psymtab): Use new. Update.
10636
6d94535f
TT
106372020-01-26 Tom Tromey <tom@tromey.com>
10638
10639 * xcoffread.c (xcoff_psymtab_to_symtab_1): Update.
10640 * psymtab.c (psym_print_stats): Update.
10641 * psympriv.h (struct partial_symtab) <readin,
10642 psymtabs_addrmap_supported, anonymous>: Now bool.
10643 * mdebugread.c (psymtab_to_symtab_1): Update.
10644 * dwarf2read.c (create_type_unit_group, create_partial_symtab)
10645 (build_type_psymtabs_reader, psymtab_to_symtab_1)
10646 (process_full_comp_unit, process_full_type_unit): Update.
10647 * dbxread.c (dbx_psymtab_to_symtab_1): Update.
10648 * ctfread.c (psymtab_to_symtab): Update.
10649
6f17252b
TT
106502020-01-26 Tom Tromey <tom@tromey.com>
10651
10652 * mdebugread.c (parse_partial_symbols): Use discard_psymtab.
10653 * psymtab.h (class psymtab_storage) <free_psymtabs>: Remove.
10654 * psymtab.c (psymtab_storage): Delete psymtabs.
10655 (psymtab_storage::allocate_psymtab): Use new.
10656 (psymtab_storage::discard_psymtab): Use delete.
10657 * psympriv.h (struct partial_symtab): Add constructor and
10658 initializers.
10659
f6f1cebc
TT
106602020-01-26 Tom Tromey <tom@tromey.com>
10661
10662 * machoread.c: Do not include psympriv.h.
10663
e47e48f6
PW
106642020-01-25 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10665
10666 * NEWS: Mention the new option and the set/show commands.
10667
a2fedca9
PW
106682020-01-25 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10669
10670 * exec.c (exec_file_mismatch_names, exec_file_mismatch_mode)
10671 (show_exec_file_mismatch_command, set_exec_file_mismatch_command)
10672 (validate_exec_file): New variables, enums, functions.
10673 (exec_file_locate_attach, print_section_info): Style the filenames.
10674 (_initialize_exec): Install show_exec_file_mismatch_command and
10675 set_exec_file_mismatch_command.
10676 * gdbcore.h (validate_exec_file): Declare.
10677 * infcmd.c (attach_command): Call validate_exec_file.
10678 * remote.c ( remote_target::remote_add_inferior): Likewise.
10679
7ffa82e1
AB
106802020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
10681
10682 * frame.c (find_frame_sal): Move call to get_next_frame into more
10683 inner scope.
10684 * inline-frame.c (inilne_state) <inline_state>: Update argument
10685 types.
10686 (inilne_state) <skipped_symbol>: Rename to...
10687 (inilne_state) <skipped_symbols>: ...this, and change to a vector.
10688 (skip_inline_frames): Build vector of skipped symbols and use this
10689 to reate the inline_state.
10690 (inline_skipped_symbol): Add a comment and some assertions, fetch
10691 skipped symbol from the list.
10692
3d92a3e3
AB
106932020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
10694
10695 * buildsym.c (lte_is_less_than): Delete.
10696 (buildsym_compunit::end_symtab_with_blockvector): Create local
10697 lambda function to sort line table entries, and use
10698 std::stable_sort instead of std::sort.
10699 * symtab.c (find_pc_sect_line): Skip backward over end of sequence
10700 markers when looking for a previous line.
10701
94a72be7
AB
107022020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
10703
10704 * dwarf2read.c (lnp_state_machine::record_line): Include
10705 end_sequence parameter in debug print out. Record the line if we
10706 are at an end_sequence marker even if it's not the start of a
10707 statement.
10708 * symmisc.c (maintenance_print_one_line_table): Print end of
10709 sequence markers with 'END' not '0'.
10710
53af73bf
PA
107112020-01-24 Pedro Alves <palves@redhat.com>
10712
10713 PR gdb/25410
10714 * thread.c (scoped_restore_current_thread::restore): Use
10715 switch_to_inferior_no_thread.
10716 * exec.c: Include "progspace-and-thread.h".
10717 (add_target_sections, remove_target_sections):
10718 scoped_restore_current_pspace_and_thread instead of
10719 scoped_restore_current_thread.
10720 * infrun.c (handle_vfork_child_exec_or_exit): Assign the pspace
10721 and aspace to the inferior before calling clone_program_space.
10722 Remove stale comment.
10723
3050c6f4
CB
107242020-01-24 Christian Biesinger <cbiesinger@google.com>
10725
10726 * arm-nbsd-nat.c (arm_nbsd_nat_target::fetch_registers): Rename to...
10727 (arm_netbsd_nat_target::fetch_registers): ...this.
10728 (arm_nbsd_nat_target::store_registers): Rename to...
10729 (arm_netbsd_nat_target::store_registers): ...this.
10730
73685c7e
CB
107312020-01-24 Christian Biesinger <cbiesinger@google.com>
10732
10733 * arm-nbsd-nat.c: Define _KERNTYPES to get the declaration of
10734 register_t.
10735
89203d40
CB
107362020-01-24 Christian Biesinger <cbiesinger@google.com>
10737
10738 * aarch64-fbsd-tdep.c (aarch64_fbsd_iterate_over_regset_sections):
10739 Update comment.
10740 * aarch64-linux-tdep.c (aarch64_linux_iterate_over_regset_sections):
10741 Likewise.
10742 * arm-fbsd-tdep.c (arm_fbsd_iterate_over_regset_sections): Likewise.
10743 * gdbcore.h (deprecated_add_core_fns): Update comment to point to
10744 the correct replacement (iterate_over_regset_sections).
10745 * riscv-fbsd-tdep.c (riscv_fbsd_iterate_over_regset_sections):
10746 Update comment.
10747
1ba1ac88
AB
107482020-01-24 Graham Markall <graham.markall@embecosm.com>
10749
10750 PR gdb/23718
10751 * gdb/python/python.c (execute_gdb_command): Call
10752 async_enable_stdin in catch block.
10753
f3364a6d
AB
107542020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
10755
10756 * event-loop.c (start_event_loop): Wrap async_enable_stdin with
10757 SWITCH_THRU_ALL_UIS.
10758
733d0a67
AB
107592020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
10760
10761 PR tui/9765
10762 * minsyms.c (lookup_minimal_symbol_by_pc_section): Update header
10763 comment, add extra parameter, and update to store previous symbol
10764 when appropriate.
10765 * minsyms.h (lookup_minimal_symbol_by_pc_section): Update comment,
10766 add extra parameter.
10767 * tui/tui-disasm.c (tui_disassemble): Update header comment,
10768 remove unneeded parameter, add try/catch around gdb_print_insn,
10769 rewrite to add items to asm_lines vector.
10770 (tui_find_backward_disassembly_start_address): New function.
10771 (tui_find_disassembly_address): Updated throughout.
10772 (tui_disasm_window::set_contents): Update for changes to
10773 tui_disassemble.
10774 (tui_disasm_window::do_scroll_vertical): No need to adjust the
10775 number of lines to scroll.
10776
b3b3bada
SM
107772020-01-23 Simon Marchi <simon.marchi@polymtl.ca>
10778
10779 * objfiles.h (ALL_OBJFILE_OSECTIONS): Move up.
10780 (SECT_OFF_DATA): Likewise.
10781 (SECT_OFF_RODATA): Likewise.
10782 (SECT_OFF_TEXT): Likewise.
10783 (SECT_OFF_BSS): Likewise.
10784 (struct objfile) <text_section_offset, data_section_offset>: New
10785 methods.
10786 * amd64-windows-tdep.c (amd64_windows_find_unwind_info): Use
10787 objfile::text_section_offset.
10788 * coff-pe-read.c (add_pe_forwarded_sym): Likewise.
10789 * coffread.c (coff_symtab_read): Likewise.
10790 (enter_linenos): Likewise.
10791 (process_coff_symbol): Likewise.
10792 * ctfread.c (get_objfile_text_range): Likewise.
10793 * dtrace-probe.c (dtrace_probe::get_relocated_address):
10794 Use objfile::data_section_offset.
10795 * dwarf2-frame.c (execute_cfa_program): Use
10796 objfile::text_section_offset.
10797 (dwarf2_frame_find_fde): Likewise.
10798 * dwarf2read.c (create_addrmap_from_index): Likewise.
10799 (create_addrmap_from_aranges): Likewise.
10800 (dw2_find_pc_sect_compunit_symtab): Likewise.
10801 (process_psymtab_comp_unit_reader): Likewise.
10802 (add_partial_symbol): Likewise.
10803 (add_partial_subprogram): Likewise.
10804 (process_full_comp_unit): Likewise.
10805 (read_file_scope): Likewise.
10806 (read_func_scope): Likewise.
10807 (read_lexical_block_scope): Likewise.
10808 (read_call_site_scope): Likewise.
10809 (dwarf2_rnglists_process): Likewise.
10810 (dwarf2_ranges_process): Likewise.
10811 (dwarf2_ranges_read): Likewise.
10812 (dwarf_decode_lines_1): Likewise.
10813 (new_symbol): Likewise.
10814 (dwarf2_fetch_die_loc_sect_off): Likewise.
10815 (dwarf2_per_cu_text_offset): Likewise.
10816 * hppa-bsd-tdep.c (hppabsd_find_global_pointer): Likewise.
10817 * hppa-tdep.c (read_unwind_info): Likewise.
10818 * ia64-tdep.c (ia64_find_unwind_table): Likewise.
10819 * psympriv.h (struct partial_symtab): Likewise.
10820 * psymtab.c (find_pc_sect_psymtab): Likewise.
10821 * solib-svr4.c (enable_break): Likewise.
10822 * stap-probe.c (relocate_address): Use
10823 objfile::data_section_offset.
10824 * xcoffread.c (enter_line_range): Use
10825 objfile::text_section_offset.
10826 (read_xcoff_symtab): Likewise.
10827
ab53f382
SM
108282020-01-23 Simon Marchi <simon.marchi@efficios.com>
10829
10830 * darwin-nat.c (darwin_nat_target::wait_1): Move `inf`
10831 declaration to narrower scopes.
10832
e7eee665
SM
108332020-01-23 Simon Marchi <simon.marchi@efficios.com>
10834
10835 * darwin-nat.h (struct darwin_exception_msg, enum
10836 darwin_msg_state, struct darwin_thread_info, darwin_thread_t):
10837 Move up.
10838 (class darwin_nat_target) <wait_1, check_new_threads,
10839 decode_exception_message, decode_message, stop_inferior,
10840 init_thread_list, ptrace_him, cancel_breakpoint>: Declare.
10841 * darwin-nat.c (darwin_check_new_threads): Rename to...
10842 (darwin_nat_target::check_new_threads): ... this.
10843 (darwin_suspend_inferior_it): Remove.
10844 (darwin_decode_exception_message): Rename to...
10845 (darwin_nat_target::decode_exception_message): ... this.
10846 (darwin_nat_target::resume): Pass target to find_inferior_ptid.
10847 (darwin_decode_message): Rename to...
10848 (darwin_nat_target::decode_message): ... this.
10849 (cancel_breakpoint): Rename to...
10850 (darwin_nat_target::cancel_breakpoint): ... this.
10851 (darwin_wait): Rename to...
10852 (darwin_nat_target::wait_1): ... this. Use range-based for loop
10853 instead of iterate_over_inferiors.
10854 (darwin_nat_target::wait): Call wait_1 instead of darwin_wait.
10855 (darwin_stop_inferior): Rename to...
10856 (darwin_nat_target::stop_inferior): ... this.
10857 (darwin_nat_target::kill): Call wait_1 instead of darwin_wait.
10858 (darwin_init_thread_list): Rename to...
10859 (darwin_nat_target::init_thread_list): ... this.
10860 (darwin_ptrace_him): Rename to...
10861 (darwin_nat_target::ptrace_him): ... this.
10862 (darwin_nat_target::create_inferior): Pass lambda function to
10863 fork_inferior.
10864 (darwin_nat_target::detach): Call stop_inferior instead of
10865 darwin_stop_inferior.
10866 * fork-inferior.h (fork_inferior): Change init_trace_fun
10867 parameter to gdb::function_view.
10868 * fork-inferior.c (fork_inferior): Likewise.
10869
c162ed3e
HD
108702020-01-23 Hannes Domani <ssbssa@yahoo.de>
10871
10872 * i386-cygwin-tdep.c (core_process_module_section): Update.
10873 * windows-nat.c (struct lm_info_windows): Add text_offset.
10874 (windows_xfer_shared_libraries): Update.
10875 * windows-tdep.c (windows_xfer_shared_library):
10876 Add text_offset_cached argument.
10877 * windows-tdep.h (windows_xfer_shared_library): Update.
10878
a1237872
SM
108792020-01-21 Simon Marchi <simon.marchi@efficios.com>
10880
10881 * gdbarch.sh: Add declaration for _initialize_gdbarch.
10882
b3ee6dd9
SM
108832020-01-21 Simon Marchi <simon.marchi@efficios.com>
10884
10885 * remote-sim.c (check_for_duplicate_sim_descriptor): Remove.
10886 (get_sim_inferior_data): Remove use of iterate_over_inferiors,
10887 replace with range-based for.
10888 (gdbsim_interrupt_inferior): Remove.
10889 (gdbsim_target::interrupt): Replace iterate_over_inferiors use
10890 with a range-based for. Inline code from
10891 gdbsim_interrupt_inferior.
10892
f9fac3c8
SM
108932020-01-21 Simon Marchi <simon.marchi@efficios.com>
10894
10895 * infrun.c (proceed): Fix indentation.
10896
f6474de9
TT
108972020-01-21 Tom Tromey <tromey@adacore.com>
10898
10899 * source-cache.c (source_cache::ensure): Call ext_lang_colorize.
10900 * python/python.c (python_extension_ops): Update.
10901 (gdbpy_colorize): New function.
10902 * python/lib/gdb/__init__.py (colorize): New function.
10903 * extension.h (ext_lang_colorize): Declare.
10904 * extension.c (ext_lang_colorize): New function.
10905 * extension-priv.h (struct extension_language_ops) <colorize>: New
10906 member.
10907 * cli/cli-style.c (_initialize_cli_style): Update help text.
10908
f0c702d4
LM
109092020-01-21 Luis Machado <luis.machado@linaro.org>
10910
10911 * aarch64-tdep.c (struct aarch64_displaced_step_closure)
10912 <cond>: Change type to bool.
10913 (aarch64_displaced_step_b_cond): Update cond to use bool type.
10914 (aarch64_displaced_step_cb): Likewise.
10915 (aarch64_displaced_step_tb): Likewise.
10916
1ab139e5
LM
109172020-01-21 Luis Machado <luis.machado@linaro.org>
10918
10919 * aarch64-tdep.c (aarch64_displaced_step_fixup): Add more debugging
10920 output.
10921
0c271889
LM
109222020-01-21 Luis Machado <luis.machado@linaro.org>
10923
10924 * aarch64-tdep.c (struct aarch64_displaced_step_closure )
10925 <pc_adjust>: Adjust the documentation.
10926 (aarch64_displaced_step_fixup): Check if PC really moved before
10927 adjusting it.
10928
4d89c1c7
TT
109292020-01-19 Tom Tromey <tom@tromey.com>
10930
10931 * disasm.c (~gdb_disassembler): New destructor.
10932 (gdb_buffered_insn_length): Call disassemble_free_target.
10933 * disasm.h (class gdb_disassembler): Declare destructor. Use
10934 DISABLE_COPY_AND_ASSIGN.
10935
c0ab21c2
TT
109362020-01-19 Tom Tromey <tom@tromey.com>
10937
10938 * dwarf2read.c (abbrev_table_up): Move typedef earlier.
10939 (die_reader_func_ftype): Remove.
10940 (cutu_reader): New class.
10941 (dw2_get_file_names_reader): Remove "data" parameter.
10942 (dw2_get_file_names): Use cutu_reader.
10943 (create_debug_type_hash_table): Update.
10944 (read_cutu_die_from_dwo): Update comment.
10945 (lookup_dwo_unit): Add dwo_name parameter.
10946 (cutu_reader::init_tu_and_read_dwo_dies): Now a method. Remove
10947 die_reader_func_ftype and data parameters.
10948 (cutu_reader::cutu_reader): Rename from init_cutu_and_read_dies.
10949 Remove die_reader_func_ftype and data parameters.
10950 (~cutu_reader): New; from init_cutu_and_read_dies.
10951 (cutu_reader::cutu_reader): Rename from
10952 init_cutu_and_read_dies_no_follow. Remove die_reader_func_ftype
10953 and data parameters.
10954 (init_cutu_and_read_dies_simple): Remove.
10955 (struct process_psymtab_comp_unit_data): Remove.
10956 (process_psymtab_comp_unit_reader): Remove data parameter; add
10957 want_partial_unit and pretend_language parameters.
10958 (process_psymtab_comp_unit): Use cutu_reader.
10959 (build_type_psymtabs_reader): Remove data parameter.
10960 (build_type_psymtabs_1): Use cutu_reader.
10961 (process_skeletonless_type_unit): Likewise.
10962 (load_partial_comp_unit_reader): Remove.
10963 (load_partial_comp_unit): Use cutu_reader.
10964 (load_full_comp_unit_reader): Remove.
10965 (load_full_comp_unit): Use cutu_reader.
10966 (struct create_dwo_cu_data): Remove.
10967 (create_dwo_cu_reader): Remove datap parameter; add dwo_file and
10968 dwo_unit parameters.
10969 (create_cus_hash_table): Use cutu_reader.
10970 (struct dwarf2_read_addr_index_data): Remove.
10971 (dwarf2_read_addr_index_reader): Remove.
10972 (dwarf2_read_addr_index): Use cutu_reader.
10973 (read_signatured_type_reader): Remove.
10974 (read_signatured_type): Use cutu_reader.
10975
45bbae5c
TT
109762020-01-19 Tom Tromey <tom@tromey.com>
10977
10978 * tui/tui.c (tui_show_assembly): Use tui_suppress_output.
10979 * tui/tui-wingeneral.h (class tui_suppress_output): New.
10980 (tui_wrefresh): Declare.
10981 * tui/tui-wingeneral.c (suppress_output): New global.
10982 (tui_suppress_output, ~tui_suppress_output): New constructor and
10983 destructor.
10984 (tui_wrefresh): New function.
10985 (tui_gen_win_info::refresh_window): Use tui_wrefresh.
10986 (tui_gen_win_info::make_window): Call wnoutrefresh when needed.
10987 * tui/tui-regs.h (struct tui_data_window) <no_refresh>: Declare
10988 method.
10989 * tui/tui-regs.c (tui_data_window::erase_data_content): Call
10990 tui_wrefresh.
10991 (tui_data_window::no_refresh): New method.
10992 (tui_data_item_window::refresh_window): Call tui_wrefresh.
10993 (tui_reg_command): Use tui_suppress_output
10994 * tui/tui-layout.c (tui_set_layout): Use tui_suppress_output.
10995 * tui/tui-data.h (struct tui_gen_win_info) <no_refresh>: New
10996 method.
10997 * tui/tui-command.c (tui_refresh_cmd_win): Call tui_wrefresh.
10998
4f13c1c0
TT
109992020-01-19 Tom Tromey <tom@tromey.com>
11000
11001 * tui/tui-winsource.c (tui_update_source_windows_with_line):
11002 Handle case where symtab is null.
11003
fa47e446
SM
110042020-01-19 Simon Marchi <simon.marchi@polymtl.ca>
11005
11006 * linux-fork.c (one_fork_p): Simplify.
11007
26f42329
SM
110082020-01-17 Simon Marchi <simon.marchi@efficios.com>
11009
11010 * top.c (struct qt_args): Remove.
11011 (kill_or_detach): Change return type to void, replace `void *`
11012 parameter with a proper one.
11013 (print_inferior_quit_action): Likewise.
11014 (quit_confirm): Use range-based for loop to iterate over inferiors.
11015 (quit_force): Likewise.
11016
a9ac81b1
SM
110172020-01-17 Simon Marchi <simon.marchi@efficios.com>
11018
11019 * mi/mi-main.c (run_one_inferior): Change return type to void, replace
11020 `void *` parameter with proper parameters.
11021 (mi_cmd_exec_run): Use range-based loop to iterate over inferiors.
11022 (print_one_inferior): Change return type to void, replace `void *`
11023 parameter with proper parameters.
11024 (mi_cmd_list_thread_groups): Use range-based loop to iterate over
11025 inferiors.
11026 (get_other_inferior): Remove.
11027 (mi_cmd_remove_inferior): Use range-based loop to iterate over
11028 inferiors.
11029
788eca49
SM
110302020-01-17 Simon Marchi <simon.marchi@efficios.com>
11031
11032 * mi/mi-interp.c (report_initial_inferior): Remove.
11033 (mi_interp::init): Use range-based for to iterate over inferiors.
11034
d9bc85b6
SM
110352020-01-17 Simon Marchi <simon.marchi@efficios.com>
11036
11037 * python/py-inferior.c (build_inferior_list): Remove.
11038 (gdbpy_ref): Use range-based for loop to iterate over inferiors.
11039
40c94099
CB
110402020-01-16 Christian Biesinger <cbiesinger@google.com>
11041
11042 * btrace.c (btrace_compute_ftrace_1): Fix spelling error (Unkown).
11043 (btrace_stitch_trace): Likewise.
11044 * charset.c (intermediate_encoding): Likewise (vaild).
11045 * nat/linux-btrace.c (linux_read_pt): Likewise (Unkown).
11046 * python/py-record-btrace.c (struct PyMethodDef): Likewise (occurences).
11047 * record-btrace.c (record_btrace_print_conf): Likewise (unkown).
11048
e0cdfe3c
HD
110492020-01-16 Hannes Domani <ssbssa@yahoo.de>
11050
11051 * windows-tdep.c (windows_get_tlb_type):
11052 Add rtl_user_process_parameters type.
11053
790f1718 110542020-01-16 Pedro Alves <palves@redhat.com>
aac66a4c 11055 Norbert Lange <nolange79@gmail.com>
790f1718
PA
11056
11057 PR build/24805
11058 * gdbsupport/gdb_proc_service.h (PS_EXPORT): New.
11059 (ps_get_thread_area, ps_getpid, ps_lcontinue, ps_lgetfpregs)
11060 (ps_lgetregs, ps_lsetfpregs, ps_lsetregs, ps_lstop, ps_pcontinue)
11061 (ps_pdread, ps_pdwrite, ps_pglobal_lookup, ps_pstop, ps_ptread)
11062 (ps_ptwrite, ps_lgetxregs, ps_lgetxregsize, ps_lsetxregs)
11063 (ps_plog): Redeclare exported functions with default visibility.
11064
3112ed97
NA
110652020-01-16 Nitika Achra <Nitika.Achra@amd.com>
11066
11067 * dwarf2loc.c (decode_debug_loclists_addresses): Handle
11068 DW_LLE_base_addressx, DW_LLE_startx_length, DW_LLE_start_length.
11069
8dc3273e
SM
110702020-01-15 Simon Marchi <simon.marchi@efficios.com>
11071
11072 * infcmd.c (post_create_inferior): Use get_thread_regcache
11073 instead of get_current_regcache.
11074
ff47f4f0
TT
110752020-01-14 Tom Tromey <tom@tromey.com>
11076
11077 PR symtab/12535:
11078 * python/python.c (gdbpy_decode_line): Treat empty string the same
11079 as no argument.
11080
975f45b7
TT
110812020-01-14 Tom Tromey <tom@tromey.com>
11082
11083 * Makefile.in (CLIBS): Remove second use of $(LIBIBERTY).
11084
25e57356
TT
110852020-01-14 Tom Tromey <tom@tromey.com>
11086
11087 * nat/linux-btrace.c: Don't include <config.h>.
11088 * nat/linux-ptrace.c: Don't include <config.h>.
11089 * nat/x86-linux-dregs.c: Don't include <config.h>.
11090
05ea2a05
TT
110912020-01-14 Tom Tromey <tom@tromey.com>
11092
11093 * configure: Rebuild.
11094 * configure.ac: Move many checks to ../gdbsupport/common.m4.
11095
01027315
TT
110962020-01-14 Tom Tromey <tom@tromey.com>
11097
11098 * nat/x86-linux-dregs.c: Include configh.h.
11099 * nat/linux-ptrace.c: Include configh.h.
11100 * nat/linux-btrace.c: Include configh.h.
11101 * defs.h: Include config.h, bfd.h.
11102 * configure.ac: Don't source common.host.
11103 (CONFIG_OBS, CONFIG_SRCS): Remove gdbsupport files.
11104 * configure: Rebuild.
11105 * acinclude.m4: Update path.
11106 * Makefile.in (SUPPORT, LIBSUPPORT, INCSUPPORT): New variables.
11107 (CONFIG_SRC_SUBDIR): Remove gdbsupport.
11108 (INTERNAL_CFLAGS_BASE): Add INCSUPPORT.
11109 (CLIBS): Add LIBSUPPORT.
11110 (CDEPS): Likewise.
11111 (COMMON_SFILES): Remove gdbsupport files.
11112 (HFILES_NO_SRCDIR): Likewise.
11113 (stamp-version): Update path to create-version.sh.
11114 (ALLDEPFILES): Remove gdbsupport files.
11115
b2ceabe8
TT
111162020-01-14 Tom Tromey <tom@tromey.com>
11117
11118 * gdbsupport/common.m4 (GDB_AC_COMMON): Define WIN32APILIBS and
11119 USE_WIN32API when needed.
11120 * configure.ac (USE_WIN32API): Don't define.
11121 (WIN32LIBS): Use WIN32APILIBS.
11122 * configure: Rebuild.
11123
25c51f71
TT
111242020-01-14 Tom Tromey <tom@tromey.com>
11125
11126 * configure: Rebuild.
11127 * gdbsupport/common.m4 (GDB_AC_COMMON): Fix indentation.
11128
717c684d
BE
111292020-01-14 Bernd Edlinger <bernd.edlinger@hotmail.de>
11130
11131 * skip.c (skip_function_command): Make skip w/o arguments use the
11132 name of the inlined function if pc is inside any inlined function.
11133
7da6a5b9
LM
111342020-01-14 Luis Machado <luis.machado@linaro.org>
11135
11136 * inf-ptrace.c (inf_ptrace_target::resume): Update comments.
11137 * infrun.c (resume_1): Likewise.
11138 (handle_inferior_event): Remove stale comment.
11139 * linux-nat.c (linux_nat_target::resume): Update comments.
11140 (save_stop_reason): Likewise.
11141 (linux_nat_filter_event): Likewise.
11142 * linux-nat.h (struct lwp_info) <stop_pc>, <stop_reason>: Likewise.
11143
44e4c775
AB
111442020-01-13 Andrew Burgess <andrew.burgess@embecosm.com>
11145
11146 * elfread.c (record_minimal_symbol): Set section index to 0 for
11147 non-allocatable sections.
11148
18a8505e
AT
11149
111502020-01-13 Ali Tamur <tamur@google.com>
11151
11152 * dwarf2read.c (dwarf2_debug_sections): Add debug_str_offsets sections.
11153 (dwarf2_cu): Add str_offsets_base field. Change the type of addr_base
11154 to gdb::optional. Update comments.
11155 (dwo_file): Update comments.
11156 (read_attribute): Update API to take an additional out parameter,
11157 need_reprocess. This is used to mark attributes that need other
11158 attributes (e.g. str_offsets_base) for correct computation which may not
11159 have been read yet.
11160 (read_attribute_reprocess): New function declaration.
11161 (read_addr_index): Likewise.
11162 (read_dwo_str_index): Likewise.
11163 (read_stub_str_index): Likewise.
11164 (dwarf2_per_objfile::locate_sections): Handle debug_str_offsets section.
11165 (lookup_addr_base): New function definition.
11166 (lookup_ranges_base): Likewise.
11167 (read_cutu_die_from_dwo): Use the new functions: lookup_addr_base,
11168 lookup_ranges_base.
11169 (init_cutu_and_read_dies): Update comments.
11170 (init_cutu_and_read_dies_no_follow): Change API to take parent compile
11171 unit. This is used to inherit parent's str_offsets_base and addr_base.
11172 Update comments.
11173 (init_cutu_and_read_dies_simple): Reflect API changes.
11174 (skip_one_die): Reflect API changes. Handle DW_FORM_rnglistx.
11175 (create_cus_hash_table): Change API to take parent compile unit.
11176 Reflect API changes.
11177 (open_and_init_dwo_file): Reflect API changes.
11178 (dwarf2_get_pc_bounds): Update comments.
11179 (dwarf2_record_block_ranges): Likewise.
11180 (read_full_die_1): Change implementation to reprocess attributes that
11181 need str_offsets_base and addr_base.
11182 (partial_die_info::read): Likewise.
11183 (read_attribute_reprocess): New function definition.
11184 (read_attribute_value): Change API to take an additional out parameter,
11185 need_reprocess. Handle DW_FORM_rnglistx. No longer trigger an error
11186 when a non-dwo compile unit has index based attributes.
11187 (read_attribute): Reflect API changes.
11188 (read_addr_index_1): Reflect API changes. Update comments.
11189 (dwarf2_read_addr_index_data): Reflect API changes.
11190 (dwarf2_read_addr_index): Likewise.
11191 (read_str_index): Change API and implementation. This becomes a helper
11192 to be used by the new string index related methods. Update error
11193 message and comments.
11194 (read_dwo_str_index): New function definition.
11195 (read_stub_str_index): Likewise.
11196 * dwarf2read.h (dwarf2_per_objfile): Add str_offsets field.
11197 * symfile.h (dwarf2_debug_sections): Likewise.
11198 * xcoffread.c (dwarf2_debug_sections): Likewise.
11199
0cac9354
SM
112002020-01-13 Simon Marchi <simon.marchi@efficios.com>
11201
11202 * gdbcore.h (struct core_fns) <core_read_registers>: Change
11203 core_reg_sect type to gdb_byte *.
11204 * arm-nbsd-nat.c (fetch_elfcore_registers): Likewise.
11205 * cris-tdep.c (fetch_core_registers): Likewise.
11206 * corelow.c (core_target::get_core_register_section): Change
11207 type of `contents` to gdb::byte_vector.
11208
9a6d629c
AB
112092020-01-13 Andrew Burgess <andrew.burgess@embecosm.com>
11210
11211 * tui/tui-wingeneral.c (box_win): Position the title in the center
11212 of the border.
11213
d8b2f9e3
SM
112142020-01-13 Simon Marchi <simon.marchi@polymtl.ca>
11215
11216 * corelow.c (core_target::get_core_register_section): Use
11217 std::vector instead of alloca.
11218
bb564c58
SM
112192020-01-13 Simon Marchi <simon.marchi@efficios.com>
11220
11221 * warning.m4: Add -Wmissing-declarations to build_warnings.
11222 * configure: Re-generate.
11223
6b366111
SM
112242020-01-13 Simon Marchi <simon.marchi@efficios.com>
11225
11226 * python/python.c (init__gdb_module): Add declaration.
11227
6c265988
SM
112282020-01-13 Simon Marchi <simon.marchi@efficios.com>
11229
11230 * aarch64-fbsd-nat.c (_initialize_aarch64_fbsd_nat): Add declaration.
11231 * aarch64-fbsd-tdep.c (_initialize_aarch64_fbsd_tdep): Add declaration.
11232 * aarch64-linux-nat.c (_initialize_aarch64_linux_nat): Add declaration.
11233 * aarch64-linux-tdep.c (_initialize_aarch64_linux_tdep): Add declaration.
11234 * aarch64-newlib-tdep.c (_initialize_aarch64_newlib_tdep): Add declaration.
11235 * aarch64-tdep.c (_initialize_aarch64_tdep): Add declaration.
11236 * ada-exp.y (_initialize_ada_exp): Add declaration.
11237 * ada-lang.c (_initialize_ada_language): Add declaration.
11238 * ada-tasks.c (_initialize_tasks): Add declaration.
11239 * agent.c (_initialize_agent): Add declaration.
11240 * aix-thread.c (_initialize_aix_thread): Add declaration.
11241 * alpha-bsd-nat.c (_initialize_alphabsd_nat): Add declaration.
11242 * alpha-linux-nat.c (_initialize_alpha_linux_nat): Add declaration.
11243 * alpha-linux-tdep.c (_initialize_alpha_linux_tdep): Add declaration.
11244 * alpha-nbsd-tdep.c (_initialize_alphanbsd_tdep): Add declaration.
11245 * alpha-obsd-tdep.c (_initialize_alphaobsd_tdep): Add declaration.
11246 * alpha-tdep.c (_initialize_alpha_tdep): Add declaration.
11247 * amd64-darwin-tdep.c (_initialize_amd64_darwin_tdep): Add declaration.
11248 * amd64-dicos-tdep.c (_initialize_amd64_dicos_tdep): Add declaration.
11249 * amd64-fbsd-nat.c (_initialize_amd64fbsd_nat): Add declaration.
11250 * amd64-fbsd-tdep.c (_initialize_amd64fbsd_tdep): Add declaration.
11251 * amd64-linux-nat.c (_initialize_amd64_linux_nat): Add declaration.
11252 * amd64-linux-tdep.c (_initialize_amd64_linux_tdep): Add declaration.
11253 * amd64-nbsd-nat.c (_initialize_amd64nbsd_nat): Add declaration.
11254 * amd64-nbsd-tdep.c (_initialize_amd64nbsd_tdep): Add declaration.
11255 * amd64-obsd-nat.c (_initialize_amd64obsd_nat): Add declaration.
11256 * amd64-obsd-tdep.c (_initialize_amd64obsd_tdep): Add declaration.
11257 * amd64-sol2-tdep.c (_initialize_amd64_sol2_tdep): Add declaration.
11258 * amd64-tdep.c (_initialize_amd64_tdep): Add declaration.
11259 * amd64-windows-nat.c (_initialize_amd64_windows_nat): Add declaration.
11260 * amd64-windows-tdep.c (_initialize_amd64_windows_tdep): Add declaration.
11261 * annotate.c (_initialize_annotate): Add declaration.
11262 * arc-newlib-tdep.c (_initialize_arc_newlib_tdep): Add declaration.
11263 * arc-tdep.c (_initialize_arc_tdep): Add declaration.
11264 * arch-utils.c (_initialize_gdbarch_utils): Add declaration.
11265 * arm-fbsd-nat.c (_initialize_arm_fbsd_nat): Add declaration.
11266 * arm-fbsd-tdep.c (_initialize_arm_fbsd_tdep): Add declaration.
11267 * arm-linux-nat.c (_initialize_arm_linux_nat): Add declaration.
11268 * arm-linux-tdep.c (_initialize_arm_linux_tdep): Add declaration.
11269 * arm-nbsd-nat.c (_initialize_arm_netbsd_nat): Add declaration.
11270 * arm-nbsd-tdep.c (_initialize_arm_netbsd_tdep): Add declaration.
11271 * arm-obsd-tdep.c (_initialize_armobsd_tdep): Add declaration.
11272 * arm-pikeos-tdep.c (_initialize_arm_pikeos_tdep): Add declaration.
11273 * arm-symbian-tdep.c (_initialize_arm_symbian_tdep): Add declaration.
11274 * arm-tdep.c (_initialize_arm_tdep): Add declaration.
11275 * arm-wince-tdep.c (_initialize_arm_wince_tdep): Add declaration.
11276 * auto-load.c (_initialize_auto_load): Add declaration.
11277 * auxv.c (_initialize_auxv): Add declaration.
11278 * avr-tdep.c (_initialize_avr_tdep): Add declaration.
11279 * ax-gdb.c (_initialize_ax_gdb): Add declaration.
11280 * bfin-linux-tdep.c (_initialize_bfin_linux_tdep): Add declaration.
11281 * bfin-tdep.c (_initialize_bfin_tdep): Add declaration.
11282 * break-catch-sig.c (_initialize_break_catch_sig): Add declaration.
11283 * break-catch-syscall.c (_initialize_break_catch_syscall): Add declaration.
11284 * break-catch-throw.c (_initialize_break_catch_throw): Add declaration.
11285 * breakpoint.c (_initialize_breakpoint): Add declaration.
11286 * bsd-uthread.c (_initialize_bsd_uthread): Add declaration.
11287 * btrace.c (_initialize_btrace): Add declaration.
11288 * charset.c (_initialize_charset): Add declaration.
11289 * cli/cli-cmds.c (_initialize_cli_cmds): Add declaration.
11290 * cli/cli-dump.c (_initialize_cli_dump): Add declaration.
11291 * cli/cli-interp.c (_initialize_cli_interp): Add declaration.
11292 * cli/cli-logging.c (_initialize_cli_logging): Add declaration.
11293 * cli/cli-script.c (_initialize_cli_script): Add declaration.
11294 * cli/cli-style.c (_initialize_cli_style): Add declaration.
11295 * coff-pe-read.c (_initialize_coff_pe_read): Add declaration.
11296 * coffread.c (_initialize_coffread): Add declaration.
11297 * compile/compile-cplus-types.c (_initialize_compile_cplus_types): Add declaration.
11298 * compile/compile.c (_initialize_compile): Add declaration.
11299 * complaints.c (_initialize_complaints): Add declaration.
11300 * completer.c (_initialize_completer): Add declaration.
11301 * copying.c (_initialize_copying): Add declaration.
11302 * corefile.c (_initialize_core): Add declaration.
11303 * corelow.c (_initialize_corelow): Add declaration.
11304 * cp-abi.c (_initialize_cp_abi): Add declaration.
11305 * cp-namespace.c (_initialize_cp_namespace): Add declaration.
11306 * cp-support.c (_initialize_cp_support): Add declaration.
11307 * cp-valprint.c (_initialize_cp_valprint): Add declaration.
11308 * cris-linux-tdep.c (_initialize_cris_linux_tdep): Add declaration.
11309 * cris-tdep.c (_initialize_cris_tdep): Add declaration.
11310 * csky-linux-tdep.c (_initialize_csky_linux_tdep): Add declaration.
11311 * csky-tdep.c (_initialize_csky_tdep): Add declaration.
11312 * ctfread.c (_initialize_ctfread): Add declaration.
11313 * d-lang.c (_initialize_d_language): Add declaration.
11314 * darwin-nat-info.c (_initialize_darwin_info_commands): Add declaration.
11315 * darwin-nat.c (_initialize_darwin_nat): Add declaration.
11316 * dbxread.c (_initialize_dbxread): Add declaration.
11317 * dcache.c (_initialize_dcache): Add declaration.
11318 * disasm-selftests.c (_initialize_disasm_selftests): Add declaration.
11319 * disasm.c (_initialize_disasm): Add declaration.
11320 * dtrace-probe.c (_initialize_dtrace_probe): Add declaration.
11321 * dummy-frame.c (_initialize_dummy_frame): Add declaration.
11322 * dwarf-index-cache.c (_initialize_index_cache): Add declaration.
11323 * dwarf-index-write.c (_initialize_dwarf_index_write): Add declaration.
11324 * dwarf2-frame-tailcall.c (_initialize_tailcall_frame): Add declaration.
11325 * dwarf2-frame.c (_initialize_dwarf2_frame): Add declaration.
11326 * dwarf2expr.c (_initialize_dwarf2expr): Add declaration.
11327 * dwarf2loc.c (_initialize_dwarf2loc): Add declaration.
11328 * dwarf2read.c (_initialize_dwarf2_read): Add declaration.
11329 * elfread.c (_initialize_elfread): Add declaration.
11330 * exec.c (_initialize_exec): Add declaration.
11331 * extension.c (_initialize_extension): Add declaration.
11332 * f-lang.c (_initialize_f_language): Add declaration.
11333 * f-valprint.c (_initialize_f_valprint): Add declaration.
11334 * fbsd-nat.c (_initialize_fbsd_nat): Add declaration.
11335 * fbsd-tdep.c (_initialize_fbsd_tdep): Add declaration.
11336 * filesystem.c (_initialize_filesystem): Add declaration.
11337 * findcmd.c (_initialize_mem_search): Add declaration.
11338 * findvar.c (_initialize_findvar): Add declaration.
11339 * fork-child.c (_initialize_fork_child): Add declaration.
11340 * frame-base.c (_initialize_frame_base): Add declaration.
11341 * frame-unwind.c (_initialize_frame_unwind): Add declaration.
11342 * frame.c (_initialize_frame): Add declaration.
11343 * frv-linux-tdep.c (_initialize_frv_linux_tdep): Add declaration.
11344 * frv-tdep.c (_initialize_frv_tdep): Add declaration.
11345 * ft32-tdep.c (_initialize_ft32_tdep): Add declaration.
11346 * gcore.c (_initialize_gcore): Add declaration.
11347 * gdb-demangle.c (_initialize_gdb_demangle): Add declaration.
11348 * gdb_bfd.c (_initialize_gdb_bfd): Add declaration.
11349 * gdbarch-selftests.c (_initialize_gdbarch_selftests): Add declaration.
11350 * gdbarch.c (_initialize_gdbarch): Add declaration.
11351 * gdbtypes.c (_initialize_gdbtypes): Add declaration.
11352 * gnu-nat.c (_initialize_gnu_nat): Add declaration.
11353 * gnu-v2-abi.c (_initialize_gnu_v2_abi): Add declaration.
11354 * gnu-v3-abi.c (_initialize_gnu_v3_abi): Add declaration.
11355 * go-lang.c (_initialize_go_language): Add declaration.
11356 * go32-nat.c (_initialize_go32_nat): Add declaration.
11357 * guile/guile.c (_initialize_guile): Add declaration.
11358 * h8300-tdep.c (_initialize_h8300_tdep): Add declaration.
11359 * hppa-linux-nat.c (_initialize_hppa_linux_nat): Add declaration.
11360 * hppa-linux-tdep.c (_initialize_hppa_linux_tdep): Add declaration.
11361 * hppa-nbsd-nat.c (_initialize_hppanbsd_nat): Add declaration.
11362 * hppa-nbsd-tdep.c (_initialize_hppanbsd_tdep): Add declaration.
11363 * hppa-obsd-nat.c (_initialize_hppaobsd_nat): Add declaration.
11364 * hppa-obsd-tdep.c (_initialize_hppabsd_tdep): Add declaration.
11365 * hppa-tdep.c (_initialize_hppa_tdep): Add declaration.
11366 * i386-bsd-nat.c (_initialize_i386bsd_nat): Add declaration.
11367 * i386-cygwin-tdep.c (_initialize_i386_cygwin_tdep): Add declaration.
11368 * i386-darwin-nat.c (_initialize_i386_darwin_nat): Add declaration.
11369 * i386-darwin-tdep.c (_initialize_i386_darwin_tdep): Add declaration.
11370 * i386-dicos-tdep.c (_initialize_i386_dicos_tdep): Add declaration.
11371 * i386-fbsd-nat.c (_initialize_i386fbsd_nat): Add declaration.
11372 * i386-fbsd-tdep.c (_initialize_i386fbsd_tdep): Add declaration.
11373 * i386-gnu-nat.c (_initialize_i386gnu_nat): Add declaration.
11374 * i386-gnu-tdep.c (_initialize_i386gnu_tdep): Add declaration.
11375 * i386-go32-tdep.c (_initialize_i386_go32_tdep): Add declaration.
11376 * i386-linux-nat.c (_initialize_i386_linux_nat): Add declaration.
11377 * i386-linux-tdep.c (_initialize_i386_linux_tdep): Add declaration.
11378 * i386-nbsd-nat.c (_initialize_i386nbsd_nat): Add declaration.
11379 * i386-nbsd-tdep.c (_initialize_i386nbsd_tdep): Add declaration.
11380 * i386-nto-tdep.c (_initialize_i386nto_tdep): Add declaration.
11381 * i386-obsd-nat.c (_initialize_i386obsd_nat): Add declaration.
11382 * i386-obsd-tdep.c (_initialize_i386obsd_tdep): Add declaration.
11383 * i386-sol2-nat.c (_initialize_amd64_sol2_nat): Add declaration.
11384 * i386-sol2-tdep.c (_initialize_i386_sol2_tdep): Add declaration.
11385 * i386-tdep.c (_initialize_i386_tdep): Add declaration.
11386 * i386-windows-nat.c (_initialize_i386_windows_nat): Add declaration.
11387 * ia64-libunwind-tdep.c (_initialize_libunwind_frame): Add declaration.
11388 * ia64-linux-nat.c (_initialize_ia64_linux_nat): Add declaration.
11389 * ia64-linux-tdep.c (_initialize_ia64_linux_tdep): Add declaration.
11390 * ia64-tdep.c (_initialize_ia64_tdep): Add declaration.
11391 * ia64-vms-tdep.c (_initialize_ia64_vms_tdep): Add declaration.
11392 * infcall.c (_initialize_infcall): Add declaration.
11393 * infcmd.c (_initialize_infcmd): Add declaration.
11394 * inflow.c (_initialize_inflow): Add declaration.
11395 * infrun.c (_initialize_infrun): Add declaration.
11396 * interps.c (_initialize_interpreter): Add declaration.
11397 * iq2000-tdep.c (_initialize_iq2000_tdep): Add declaration.
11398 * jit.c (_initialize_jit): Add declaration.
11399 * language.c (_initialize_language): Add declaration.
11400 * linux-fork.c (_initialize_linux_fork): Add declaration.
11401 * linux-nat.c (_initialize_linux_nat): Add declaration.
11402 * linux-tdep.c (_initialize_linux_tdep): Add declaration.
11403 * linux-thread-db.c (_initialize_thread_db): Add declaration.
11404 * lm32-tdep.c (_initialize_lm32_tdep): Add declaration.
11405 * m2-lang.c (_initialize_m2_language): Add declaration.
11406 * m32c-tdep.c (_initialize_m32c_tdep): Add declaration.
11407 * m32r-linux-nat.c (_initialize_m32r_linux_nat): Add declaration.
11408 * m32r-linux-tdep.c (_initialize_m32r_linux_tdep): Add declaration.
11409 * m32r-tdep.c (_initialize_m32r_tdep): Add declaration.
11410 * m68hc11-tdep.c (_initialize_m68hc11_tdep): Add declaration.
11411 * m68k-bsd-nat.c (_initialize_m68kbsd_nat): Add declaration.
11412 * m68k-bsd-tdep.c (_initialize_m68kbsd_tdep): Add declaration.
11413 * m68k-linux-nat.c (_initialize_m68k_linux_nat): Add declaration.
11414 * m68k-linux-tdep.c (_initialize_m68k_linux_tdep): Add declaration.
11415 * m68k-tdep.c (_initialize_m68k_tdep): Add declaration.
11416 * machoread.c (_initialize_machoread): Add declaration.
11417 * macrocmd.c (_initialize_macrocmd): Add declaration.
11418 * macroscope.c (_initialize_macroscope): Add declaration.
11419 * maint-test-options.c (_initialize_maint_test_options): Add declaration.
11420 * maint-test-settings.c (_initialize_maint_test_settings): Add declaration.
11421 * maint.c (_initialize_maint_cmds): Add declaration.
11422 * mdebugread.c (_initialize_mdebugread): Add declaration.
11423 * memattr.c (_initialize_mem): Add declaration.
11424 * mep-tdep.c (_initialize_mep_tdep): Add declaration.
11425 * mi/mi-cmd-env.c (_initialize_mi_cmd_env): Add declaration.
11426 * mi/mi-cmds.c (_initialize_mi_cmds): Add declaration.
11427 * mi/mi-interp.c (_initialize_mi_interp): Add declaration.
11428 * mi/mi-main.c (_initialize_mi_main): Add declaration.
11429 * microblaze-linux-tdep.c (_initialize_microblaze_linux_tdep): Add declaration.
11430 * microblaze-tdep.c (_initialize_microblaze_tdep): Add declaration.
11431 * mips-fbsd-nat.c (_initialize_mips_fbsd_nat): Add declaration.
11432 * mips-fbsd-tdep.c (_initialize_mips_fbsd_tdep): Add declaration.
11433 * mips-linux-nat.c (_initialize_mips_linux_nat): Add declaration.
11434 * mips-linux-tdep.c (_initialize_mips_linux_tdep): Add declaration.
11435 * mips-nbsd-nat.c (_initialize_mipsnbsd_nat): Add declaration.
11436 * mips-nbsd-tdep.c (_initialize_mipsnbsd_tdep): Add declaration.
11437 * mips-sde-tdep.c (_initialize_mips_sde_tdep): Add declaration.
11438 * mips-tdep.c (_initialize_mips_tdep): Add declaration.
11439 * mips64-obsd-nat.c (_initialize_mips64obsd_nat): Add declaration.
11440 * mips64-obsd-tdep.c (_initialize_mips64obsd_tdep): Add declaration.
11441 * mipsread.c (_initialize_mipsread): Add declaration.
11442 * mn10300-linux-tdep.c (_initialize_mn10300_linux_tdep): Add declaration.
11443 * mn10300-tdep.c (_initialize_mn10300_tdep): Add declaration.
11444 * moxie-tdep.c (_initialize_moxie_tdep): Add declaration.
11445 * msp430-tdep.c (_initialize_msp430_tdep): Add declaration.
11446 * nds32-tdep.c (_initialize_nds32_tdep): Add declaration.
11447 * nios2-linux-tdep.c (_initialize_nios2_linux_tdep): Add declaration.
11448 * nios2-tdep.c (_initialize_nios2_tdep): Add declaration.
11449 * nto-procfs.c (_initialize_procfs): Add declaration.
11450 * objc-lang.c (_initialize_objc_language): Add declaration.
11451 * observable.c (_initialize_observer): Add declaration.
11452 * opencl-lang.c (_initialize_opencl_language): Add declaration.
11453 * or1k-linux-tdep.c (_initialize_or1k_linux_tdep): Add declaration.
11454 * or1k-tdep.c (_initialize_or1k_tdep): Add declaration.
11455 * osabi.c (_initialize_gdb_osabi): Add declaration.
11456 * osdata.c (_initialize_osdata): Add declaration.
11457 * p-valprint.c (_initialize_pascal_valprint): Add declaration.
11458 * parse.c (_initialize_parse): Add declaration.
11459 * ppc-fbsd-nat.c (_initialize_ppcfbsd_nat): Add declaration.
11460 * ppc-fbsd-tdep.c (_initialize_ppcfbsd_tdep): Add declaration.
11461 * ppc-linux-nat.c (_initialize_ppc_linux_nat): Add declaration.
11462 * ppc-linux-tdep.c (_initialize_ppc_linux_tdep): Add declaration.
11463 * ppc-nbsd-nat.c (_initialize_ppcnbsd_nat): Add declaration.
11464 * ppc-nbsd-tdep.c (_initialize_ppcnbsd_tdep): Add declaration.
11465 * ppc-obsd-nat.c (_initialize_ppcobsd_nat): Add declaration.
11466 * ppc-obsd-tdep.c (_initialize_ppcobsd_tdep): Add declaration.
11467 * printcmd.c (_initialize_printcmd): Add declaration.
11468 * probe.c (_initialize_probe): Add declaration.
11469 * proc-api.c (_initialize_proc_api): Add declaration.
11470 * proc-events.c (_initialize_proc_events): Add declaration.
11471 * proc-service.c (_initialize_proc_service): Add declaration.
11472 * procfs.c (_initialize_procfs): Add declaration.
11473 * producer.c (_initialize_producer): Add declaration.
11474 * psymtab.c (_initialize_psymtab): Add declaration.
11475 * python/python.c (_initialize_python): Add declaration.
11476 * ravenscar-thread.c (_initialize_ravenscar): Add declaration.
11477 * record-btrace.c (_initialize_record_btrace): Add declaration.
11478 * record-full.c (_initialize_record_full): Add declaration.
11479 * record.c (_initialize_record): Add declaration.
11480 * regcache-dump.c (_initialize_regcache_dump): Add declaration.
11481 * regcache.c (_initialize_regcache): Add declaration.
11482 * reggroups.c (_initialize_reggroup): Add declaration.
11483 * remote-notif.c (_initialize_notif): Add declaration.
11484 * remote-sim.c (_initialize_remote_sim): Add declaration.
11485 * remote.c (_initialize_remote): Add declaration.
11486 * reverse.c (_initialize_reverse): Add declaration.
11487 * riscv-fbsd-nat.c (_initialize_riscv_fbsd_nat): Add declaration.
11488 * riscv-fbsd-tdep.c (_initialize_riscv_fbsd_tdep): Add declaration.
11489 * riscv-linux-nat.c (_initialize_riscv_linux_nat): Add declaration.
11490 * riscv-linux-tdep.c (_initialize_riscv_linux_tdep): Add declaration.
11491 * riscv-tdep.c (_initialize_riscv_tdep): Add declaration.
11492 * rl78-tdep.c (_initialize_rl78_tdep): Add declaration.
11493 * rs6000-aix-tdep.c (_initialize_rs6000_aix_tdep): Add declaration.
11494 * rs6000-lynx178-tdep.c (_initialize_rs6000_lynx178_tdep):
11495 Add declaration.
11496 * rs6000-nat.c (_initialize_rs6000_nat): Add declaration.
11497 * rs6000-tdep.c (_initialize_rs6000_tdep): Add declaration.
11498 * run-on-main-thread.c (_initialize_run_on_main_thread): Add declaration.
11499 * rust-exp.y (_initialize_rust_exp): Add declaration.
11500 * rx-tdep.c (_initialize_rx_tdep): Add declaration.
11501 * s12z-tdep.c (_initialize_s12z_tdep): Add declaration.
11502 * s390-linux-nat.c (_initialize_s390_nat): Add declaration.
11503 * s390-linux-tdep.c (_initialize_s390_linux_tdep): Add declaration.
11504 * s390-tdep.c (_initialize_s390_tdep): Add declaration.
11505 * score-tdep.c (_initialize_score_tdep): Add declaration.
11506 * ser-go32.c (_initialize_ser_dos): Add declaration.
11507 * ser-mingw.c (_initialize_ser_windows): Add declaration.
11508 * ser-pipe.c (_initialize_ser_pipe): Add declaration.
11509 * ser-tcp.c (_initialize_ser_tcp): Add declaration.
11510 * ser-uds.c (_initialize_ser_socket): Add declaration.
11511 * ser-unix.c (_initialize_ser_hardwire): Add declaration.
11512 * serial.c (_initialize_serial): Add declaration.
11513 * sh-linux-tdep.c (_initialize_sh_linux_tdep): Add declaration.
11514 * sh-nbsd-nat.c (_initialize_shnbsd_nat): Add declaration.
11515 * sh-nbsd-tdep.c (_initialize_shnbsd_tdep): Add declaration.
11516 * sh-tdep.c (_initialize_sh_tdep): Add declaration.
11517 * skip.c (_initialize_step_skip): Add declaration.
11518 * sol-thread.c (_initialize_sol_thread): Add declaration.
11519 * solib-aix.c (_initialize_solib_aix): Add declaration.
11520 * solib-darwin.c (_initialize_darwin_solib): Add declaration.
11521 * solib-dsbt.c (_initialize_dsbt_solib): Add declaration.
11522 * solib-frv.c (_initialize_frv_solib): Add declaration.
11523 * solib-svr4.c (_initialize_svr4_solib): Add declaration.
11524 * solib-target.c (_initialize_solib_target): Add declaration.
11525 * solib.c (_initialize_solib): Add declaration.
11526 * source-cache.c (_initialize_source_cache): Add declaration.
11527 * source.c (_initialize_source): Add declaration.
11528 * sparc-linux-nat.c (_initialize_sparc_linux_nat): Add declaration.
11529 * sparc-linux-tdep.c (_initialize_sparc_linux_tdep): Add declaration.
11530 * sparc-nat.c (_initialize_sparc_nat): Add declaration.
11531 * sparc-nbsd-nat.c (_initialize_sparcnbsd_nat): Add declaration.
11532 * sparc-nbsd-tdep.c (_initialize_sparcnbsd_tdep): Add declaration.
11533 * sparc-obsd-tdep.c (_initialize_sparc32obsd_tdep): Add declaration.
11534 * sparc-sol2-tdep.c (_initialize_sparc_sol2_tdep): Add declaration.
11535 * sparc-tdep.c (_initialize_sparc_tdep): Add declaration.
11536 * sparc64-fbsd-nat.c (_initialize_sparc64fbsd_nat): Add declaration.
11537 * sparc64-fbsd-tdep.c (_initialize_sparc64fbsd_tdep): Add declaration.
11538 * sparc64-linux-nat.c (_initialize_sparc64_linux_nat): Add declaration.
11539 * sparc64-linux-tdep.c (_initialize_sparc64_linux_tdep): Add declaration.
11540 * sparc64-nat.c (_initialize_sparc64_nat): Add declaration.
11541 * sparc64-nbsd-nat.c (_initialize_sparc64nbsd_nat): Add declaration.
11542 * sparc64-nbsd-tdep.c (_initialize_sparc64nbsd_tdep): Add declaration.
11543 * sparc64-obsd-nat.c (_initialize_sparc64obsd_nat): Add declaration.
11544 * sparc64-obsd-tdep.c (_initialize_sparc64obsd_tdep): Add declaration.
11545 * sparc64-sol2-tdep.c (_initialize_sparc64_sol2_tdep): Add declaration.
11546 * sparc64-tdep.c (_initialize_sparc64_adi_tdep): Add declaration.
11547 * stabsread.c (_initialize_stabsread): Add declaration.
11548 * stack.c (_initialize_stack): Add declaration.
11549 * stap-probe.c (_initialize_stap_probe): Add declaration.
11550 * std-regs.c (_initialize_frame_reg): Add declaration.
11551 * symfile-debug.c (_initialize_symfile_debug): Add declaration.
11552 * symfile-mem.c (_initialize_symfile_mem): Add declaration.
11553 * symfile.c (_initialize_symfile): Add declaration.
11554 * symmisc.c (_initialize_symmisc): Add declaration.
11555 * symtab.c (_initialize_symtab): Add declaration.
11556 * target.c (_initialize_target): Add declaration.
11557 * target-connection.c (_initialize_target_connection): Add
11558 declaration.
11559 * target-dcache.c (_initialize_target_dcache): Add declaration.
11560 * target-descriptions.c (_initialize_target_descriptions): Add declaration.
11561 * thread.c (_initialize_thread): Add declaration.
11562 * tic6x-linux-tdep.c (_initialize_tic6x_linux_tdep): Add declaration.
11563 * tic6x-tdep.c (_initialize_tic6x_tdep): Add declaration.
11564 * tilegx-linux-nat.c (_initialize_tile_linux_nat): Add declaration.
11565 * tilegx-linux-tdep.c (_initialize_tilegx_linux_tdep): Add declaration.
11566 * tilegx-tdep.c (_initialize_tilegx_tdep): Add declaration.
11567 * tracectf.c (_initialize_ctf): Add declaration.
11568 * tracefile-tfile.c (_initialize_tracefile_tfile): Add declaration.
11569 * tracefile.c (_initialize_tracefile): Add declaration.
11570 * tracepoint.c (_initialize_tracepoint): Add declaration.
11571 * tui/tui-hooks.c (_initialize_tui_hooks): Add declaration.
11572 * tui/tui-interp.c (_initialize_tui_interp): Add declaration.
11573 * tui/tui-layout.c (_initialize_tui_layout): Add declaration.
11574 * tui/tui-regs.c (_initialize_tui_regs): Add declaration.
11575 * tui/tui-stack.c (_initialize_tui_stack): Add declaration.
11576 * tui/tui-win.c (_initialize_tui_win): Add declaration.
11577 * tui/tui.c (_initialize_tui): Add declaration.
11578 * typeprint.c (_initialize_typeprint): Add declaration.
11579 * ui-style.c (_initialize_ui_style): Add declaration.
11580 * unittests/array-view-selftests.c (_initialize_array_view_selftests): Add declaration.
11581 * unittests/child-path-selftests.c (_initialize_child_path_selftests): Add declaration.
11582 * unittests/cli-utils-selftests.c (_initialize_cli_utils_selftests): Add declaration.
11583 * unittests/common-utils-selftests.c (_initialize_common_utils_selftests): Add declaration.
11584 * unittests/copy_bitwise-selftests.c (_initialize_copy_bitwise_utils_selftests): Add declaration.
11585 * unittests/environ-selftests.c (_initialize_environ_selftests): Add declaration.
11586 * unittests/filtered_iterator-selftests.c
11587 (_initialize_filtered_iterator_selftests): Add declaration.
11588 * unittests/format_pieces-selftests.c (_initialize_format_pieces_selftests): Add declaration.
11589 * unittests/function-view-selftests.c (_initialize_function_view_selftests): Add declaration.
11590 * unittests/help-doc-selftests.c (_initialize_help_doc_selftests): Add declaration.
11591 * unittests/lookup_name_info-selftests.c (_initialize_lookup_name_info_selftests): Add declaration.
11592 * unittests/main-thread-selftests.c
11593 (_initialize_main_thread_selftests): Add declaration.
11594 * unittests/memory-map-selftests.c (_initialize_memory_map_selftests): Add declaration.
11595 * unittests/memrange-selftests.c (_initialize_memrange_selftests): Add declaration.
11596 * unittests/mkdir-recursive-selftests.c (_initialize_mkdir_recursive_selftests): Add declaration.
11597 * unittests/observable-selftests.c (_initialize_observer_selftest): Add declaration.
11598 * unittests/offset-type-selftests.c (_initialize_offset_type_selftests): Add declaration.
11599 * unittests/optional-selftests.c (_initialize_optional_selftests): Add declaration.
11600 * unittests/parse-connection-spec-selftests.c (_initialize_parse_connection_spec_selftests): Add declaration.
11601 * unittests/rsp-low-selftests.c (_initialize_rsp_low_selftests): Add declaration.
11602 * unittests/scoped_fd-selftests.c (_initialize_scoped_fd_selftests): Add declaration.
11603 * unittests/scoped_mmap-selftests.c (_initialize_scoped_mmap_selftests): Add declaration.
11604 * unittests/scoped_restore-selftests.c (_initialize_scoped_restore_selftests): Add declaration.
11605 * unittests/string_view-selftests.c (_initialize_string_view_selftests): Add declaration.
11606 * unittests/style-selftests.c (_initialize_style_selftest): Add declaration.
11607 * unittests/tracepoint-selftests.c (_initialize_tracepoint_selftests): Add declaration.
11608 * unittests/tui-selftests.c (_initialize_tui_selftest): Add
11609 declaration.
11610 * unittests/unpack-selftests.c (_initialize_unpack_selftests): Add declaration.
11611 * unittests/utils-selftests.c (_initialize_utils_selftests): Add declaration.
11612 * unittests/vec-utils-selftests.c (_initialize_vec_utils_selftests): Add declaration.
11613 * unittests/xml-utils-selftests.c (_initialize_xml_utils): Add declaration.
11614 * user-regs.c (_initialize_user_regs): Add declaration.
11615 * utils.c (_initialize_utils): Add declaration.
11616 * v850-tdep.c (_initialize_v850_tdep): Add declaration.
11617 * valops.c (_initialize_valops): Add declaration.
11618 * valprint.c (_initialize_valprint): Add declaration.
11619 * value.c (_initialize_values): Add declaration.
11620 * varobj.c (_initialize_varobj): Add declaration.
11621 * vax-bsd-nat.c (_initialize_vaxbsd_nat): Add declaration.
11622 * vax-nbsd-tdep.c (_initialize_vaxnbsd_tdep): Add declaration.
11623 * vax-tdep.c (_initialize_vax_tdep): Add declaration.
11624 * windows-nat.c (_initialize_windows_nat): Add declaration.
11625 (_initialize_check_for_gdb_ini): Add declaration.
11626 (_initialize_loadable): Add declaration.
11627 * windows-tdep.c (_initialize_windows_tdep): Add declaration.
11628 * x86-bsd-nat.c (_initialize_x86_bsd_nat): Add declaration.
11629 * x86-linux-nat.c (_initialize_x86_linux_nat): Add declaration.
11630 * xcoffread.c (_initialize_xcoffread): Add declaration.
11631 * xml-support.c (_initialize_xml_support): Add declaration.
11632 * xstormy16-tdep.c (_initialize_xstormy16_tdep): Add declaration.
11633 * xtensa-linux-nat.c (_initialize_xtensa_linux_nat): Add declaration.
11634 * xtensa-linux-tdep.c (_initialize_xtensa_linux_tdep): Add declaration.
11635 * xtensa-tdep.c (_initialize_xtensa_tdep): Add declaration.
11636
e2de1eec
SM
116372020-01-13 Simon Marchi <simon.marchi@polymtl.ca>
11638
11639 * regformats/regdat.sh: Generate declaration for init function.
11640
e0037b4c
SM
116412020-01-13 Simon Marchi <simon.marchi@polymtl.ca>
11642
11643 * remote-sim.c (next_pid, INITIAL_PID, sim_inferior_data): Move
11644 up.
11645 (gdbsim_target) <get_inferior_data_by_ptid, resume_one_inferior,
11646 close_one_inferior>: New methods.
11647 (get_sim_inferior_data_by_ptid): Move to gdbsim_target,
11648 pass down target to find_inferior_pid.
11649 (gdbsim_target::fetch_registers, gdbsim_target::store_registers):
11650 Pass down target to find_inferior_ptid.
11651 (gdbsim_target::create_inferior): Pass down target to
11652 add_thread_silent.
11653 (gdbsim_close_inferior): Move to gdbsim_close_inferior, pass
11654 target down to find_inferior_ptid and switch_to_thread.
11655 (gdbsim_target::close): Update to call close_one_inferior.
11656 (struct resume_data): Remove.
11657 (gdbsim_resume_inferior): Move to gdbsim_target. Take arguments
11658 directly, rather than through a void pointer.
11659 (gdbsim_target::resume): Update to call resume_one_inferior.
11660
58920b5b
SM
116612020-01-12 Simon Marchi <simon.marchi@polymtl.ca>
11662
11663 * gdbsupport/gdb_wait.c: Include gdb_wait.h.
11664
4ec89149
PA
116652020-01-12 Pedro Alves <palves@redhat.com>
11666
11667 * bsd-kvm.c (bsd_kvm_target::close): Call exit_inferior_silent
11668 directly for the current inferior instead of
11669 discard_all_inferiors.
11670 (discard_all_inferiors): Delete.
11671
7c392d1d
TT
116722020-01-11 Tom Tromey <tom@tromey.com>
11673
11674 * tui/tui-wingeneral.c (box_win): Check cli_styling.
11675 * tui/tui-winsource.c (tui_source_window_base::refill): Use
11676 deprecated_safe_get_selected_frame.
11677
d9ebdab7
TBA
116782020-01-10 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
11679
11680 * inferior.c (print_inferior): Switch inferior before printing it.
11681
f3c469b9
PA
116822020-01-10 Aleksandar Paunovic <aleksandar.paunovic@intel.com>
11683 Pedro Alves <palves@redhat.com>
11684
11685 * progspace-and-thread.c (switch_to_program_space_and_thread):
11686 Assert there's an inferior for PSPACE. Use
11687 switch_to_inferior_no_thread to switch the inferior too.
11688 * progspace.c (program_space::~program_space): Call
11689 clear_symtab_users here, with SYMFILE_DEFER_BP_RESET.
11690 (program_space::free_all_objfiles): Don't call clear_symtab_users
11691 here.
11692 * symfile.c (symbol_file_clear): Call clear_symtab_users here.
11693
65c574f6
PA
116942020-01-10 Pedro Alves <palves@redhat.com>
11695
11696 * NEWS: Mention multi-target debugging, "info connections", and
11697 "add-inferior -no-connection".
11698
2f4fcf00
PA
116992020-01-10 Pedro Alves <palves@redhat.com>
11700
11701 * infrun.c: Include "target-connection.h".
11702 (check_multi_target_resumption): New.
11703 (proceed): Call it.
11704 * target-connection.c (make_target_connection_string): Make
11705 extern.
11706 * target-connection.h (make_target_connection_string): Declare.
11707
121b3efd
PA
117082020-01-10 Pedro Alves <palves@redhat.com>
11709
11710 * Makefile.in (COMMON_SFILES): Add target-connection.c.
11711 * inferior.c (uiout_field_connection): New function.
11712 (print_inferior): Add new "connection-id" column.
11713 (add_inferior_command): Show connection number/string of added
11714 inferior.
11715 * process-stratum-target.h
11716 (process_stratum_target::connection_string): New virtual method.
11717 (process_stratum_target::connection_number): New field.
11718 * remote.c (remote_target::connection_string): New override.
11719 * target-connection.c: New file.
11720 * target-connection.h: New file.
11721 * target.c (decref_target): Remove process_stratum targets from
11722 the connection list.
11723 (target_stack::push): Add process_stratum targets to the
11724 connection list.
11725
4f837581
PA
117262020-01-10 Pedro Alves <palves@redhat.com>
11727
11728 Revert:
11729 2016-04-12 Pedro Alves <palves@redhat.com>
11730 * serial.c (serial_open, serial_fdopen_ops, do_serial_close):
11731 Remove references to name.
11732 * serial.h (struct serial) <name>: Delete.
11733
f4ec508e
PA
117342020-01-10 Pedro Alves <palves@redhat.com>
11735
11736 * gdbarch-selftests.c (register_to_value_test): Remove "target
11737 already pushed" check.
11738
5b6d1e4f
PA
117392020-01-10 Pedro Alves <palves@redhat.com>
11740 John Baldwin <jhb@FreeBSD.org>
11741
11742 * aarch64-linux-nat.c
11743 (aarch64_linux_nat_target::thread_architecture): Adjust.
11744 * ada-tasks.c (print_ada_task_info): Adjust find_thread_ptid call.
11745 (task_command_1): Likewise.
11746 * aix-thread.c (sync_threadlists, aix_thread_target::resume)
11747 (aix_thread_target::wait, aix_thread_target::fetch_registers)
11748 (aix_thread_target::store_registers)
11749 (aix_thread_target::thread_alive): Adjust.
11750 * amd64-fbsd-tdep.c: Include "inferior.h".
11751 (amd64fbsd_get_thread_local_address): Pass down target.
11752 * amd64-linux-nat.c (ps_get_thread_area): Use ps_prochandle
11753 thread's gdbarch instead of target_gdbarch.
11754 * break-catch-sig.c (signal_catchpoint_print_it): Adjust call to
11755 get_last_target_status.
11756 * break-catch-syscall.c (print_it_catch_syscall): Likewise.
11757 * breakpoint.c (breakpoints_should_be_inserted_now): Consider all
11758 inferiors.
11759 (update_inserted_breakpoint_locations): Skip if inferiors with no
11760 execution.
11761 (update_global_location_list): When handling moribund locations,
11762 find representative inferior for location's pspace, and use thread
11763 count of its process_stratum target.
11764 * bsd-kvm.c (bsd_kvm_target_open): Pass target down.
11765 * bsd-uthread.c (bsd_uthread_target::wait): Use
11766 as_process_stratum_target and adjust thread_change_ptid and
11767 add_thread calls.
11768 (bsd_uthread_target::update_thread_list): Use
11769 as_process_stratum_target and adjust find_thread_ptid,
11770 thread_change_ptid and add_thread calls.
11771 * btrace.c (maint_btrace_packet_history_cmd): Adjust
11772 find_thread_ptid call.
11773 * corelow.c (add_to_thread_list): Adjust add_thread call.
11774 (core_target_open): Adjust add_thread_silent and thread_count
11775 calls.
11776 (core_target::pid_to_str): Adjust find_inferior_ptid call.
11777 * ctf.c (ctf_target_open): Adjust add_thread_silent call.
11778 * event-top.c (async_disconnect): Pop targets from all inferiors.
11779 * exec.c (add_target_sections): Push exec target on all inferiors
11780 sharing the program space.
11781 (remove_target_sections): Remove the exec target from all
11782 inferiors sharing the program space.
11783 (exec_on_vfork): New.
11784 * exec.h (exec_on_vfork): Declare.
11785 * fbsd-nat.c (fbsd_add_threads): Add fbsd_nat_target parameter.
11786 Pass it down.
11787 (fbsd_nat_target::update_thread_list): Adjust.
11788 (fbsd_nat_target::resume): Adjust.
11789 (fbsd_handle_debug_trap): Add fbsd_nat_target parameter. Pass it
11790 down.
11791 (fbsd_nat_target::wait, fbsd_nat_target::post_attach): Adjust.
11792 * fbsd-tdep.c (fbsd_corefile_thread): Adjust
11793 get_thread_arch_regcache call.
11794 * fork-child.c (gdb_startup_inferior): Pass target down to
11795 startup_inferior and set_executing.
11796 * gdbthread.h (struct process_stratum_target): Forward declare.
11797 (add_thread, add_thread_silent, add_thread_with_info)
11798 (in_thread_list): Add process_stratum_target parameter.
11799 (find_thread_ptid(inferior*, ptid_t)): New overload.
11800 (find_thread_ptid, thread_change_ptid): Add process_stratum_target
11801 parameter.
11802 (all_threads()): Delete overload.
11803 (all_threads, all_non_exited_threads): Add process_stratum_target
11804 parameter.
11805 (all_threads_safe): Use brace initialization.
11806 (thread_count): Add process_stratum_target parameter.
11807 (set_resumed, set_running, set_stop_requested, set_executing)
11808 (threads_are_executing, finish_thread_state): Add
11809 process_stratum_target parameter.
11810 (switch_to_thread): Use is_current_thread.
11811 * i386-fbsd-tdep.c: Include "inferior.h".
11812 (i386fbsd_get_thread_local_address): Pass down target.
11813 * i386-linux-nat.c (i386_linux_nat_target::low_resume): Adjust.
11814 * inf-child.c (inf_child_target::maybe_unpush_target): Remove
11815 have_inferiors check.
11816 * inf-ptrace.c (inf_ptrace_target::create_inferior)
11817 (inf_ptrace_target::attach): Adjust.
11818 * infcall.c (run_inferior_call): Adjust.
11819 * infcmd.c (run_command_1): Pass target to
11820 scoped_finish_thread_state.
11821 (proceed_thread_callback): Skip inferiors with no execution.
11822 (continue_command): Rename 'all_threads' local to avoid hiding
11823 'all_threads' function. Adjust get_last_target_status call.
11824 (prepare_one_step): Adjust set_running call.
11825 (signal_command): Use user_visible_resume_target. Compare thread
11826 pointers instead of inferior_ptid.
11827 (info_program_command): Adjust to pass down target.
11828 (attach_command): Mark target's 'thread_executing' flag.
11829 (stop_current_target_threads_ns): New, factored out from ...
11830 (interrupt_target_1): ... this. Switch inferior before making
11831 target calls.
11832 * inferior-iter.h
11833 (struct all_inferiors_iterator, struct all_inferiors_range)
11834 (struct all_inferiors_safe_range)
11835 (struct all_non_exited_inferiors_range): Filter on
11836 process_stratum_target too. Remove explicit.
11837 * inferior.c (inferior::inferior): Push dummy target on target
11838 stack.
11839 (find_inferior_pid, find_inferior_ptid, number_of_live_inferiors):
11840 Add process_stratum_target parameter, and pass it down.
11841 (have_live_inferiors): Adjust.
11842 (switch_to_inferior_and_push_target): New.
11843 (add_inferior_command, clone_inferior_command): Handle
11844 "-no-connection" parameter. Use
11845 switch_to_inferior_and_push_target.
11846 (_initialize_inferior): Mention "-no-connection" option in
11847 the help of "add-inferior" and "clone-inferior" commands.
11848 * inferior.h: Include "process-stratum-target.h".
11849 (interrupt_target_1): Use bool.
11850 (struct inferior) <push_target, unpush_target, target_is_pushed,
11851 find_target_beneath, top_target, process_target, target_at,
11852 m_stack>: New.
11853 (discard_all_inferiors): Delete.
11854 (find_inferior_pid, find_inferior_ptid, number_of_live_inferiors)
11855 (all_inferiors, all_non_exited_inferiors): Add
11856 process_stratum_target parameter.
11857 * infrun.c: Include "gdb_select.h" and <unordered_map>.
11858 (target_last_proc_target): New global.
11859 (follow_fork_inferior): Push target on new inferior. Pass target
11860 to add_thread_silent. Call exec_on_vfork. Handle target's
11861 reference count.
11862 (follow_fork): Adjust get_last_target_status call. Also consider
11863 target.
11864 (follow_exec): Push target on new inferior.
11865 (struct execution_control_state) <target>: New field.
11866 (user_visible_resume_target): New.
11867 (do_target_resume): Call target_async.
11868 (resume_1): Set target's threads_executing flag. Consider resume
11869 target.
11870 (commit_resume_all_targets): New.
11871 (proceed): Also consider resume target. Skip threads of inferiors
11872 with no execution. Commit resumtion in all targets.
11873 (start_remote): Pass current inferior to wait_for_inferior.
11874 (infrun_thread_stop_requested): Consider target as well. Pass
11875 thread_info pointer to clear_inline_frame_state instead of ptid.
11876 (infrun_thread_thread_exit): Consider target as well.
11877 (random_pending_event_thread): New inferior parameter. Use it.
11878 (do_target_wait): Rename to ...
11879 (do_target_wait_1): ... this. Add inferior parameter, and pass it
11880 down.
11881 (threads_are_resumed_pending_p, do_target_wait): New.
11882 (prepare_for_detach): Adjust calls.
11883 (wait_for_inferior): New inferior parameter. Handle it. Use
11884 do_target_wait_1 instead of do_target_wait.
11885 (fetch_inferior_event): Adjust. Switch to representative
11886 inferior. Pass target down.
11887 (set_last_target_status): Add process_stratum_target parameter.
11888 Save target in global.
11889 (get_last_target_status): Add process_stratum_target parameter and
11890 handle it.
11891 (nullify_last_target_wait_ptid): Clear 'target_last_proc_target'.
11892 (context_switch): Check inferior_ptid == null_ptid before calling
11893 inferior_thread().
11894 (get_inferior_stop_soon): Pass down target.
11895 (wait_one): Rename to ...
11896 (poll_one_curr_target): ... this.
11897 (struct wait_one_event): New.
11898 (wait_one): New.
11899 (stop_all_threads): Adjust.
11900 (handle_no_resumed, handle_inferior_event): Adjust to consider the
11901 event's target.
11902 (switch_back_to_stepped_thread): Also consider target.
11903 (print_stop_event): Update.
11904 (normal_stop): Update. Also consider the resume target.
11905 * infrun.h (wait_for_inferior): Remove declaration.
11906 (user_visible_resume_target): New declaration.
11907 (get_last_target_status, set_last_target_status): New
11908 process_stratum_target parameter.
11909 * inline-frame.c (clear_inline_frame_state(ptid_t)): Add
11910 process_stratum_target parameter, and use it.
11911 (clear_inline_frame_state (thread_info*)): New.
11912 * inline-frame.c (clear_inline_frame_state(ptid_t)): Add
11913 process_stratum_target parameter.
11914 (clear_inline_frame_state (thread_info*)): Declare.
11915 * linux-fork.c (delete_checkpoint_command): Pass target down to
11916 find_thread_ptid.
11917 (checkpoint_command): Adjust.
11918 * linux-nat.c (linux_nat_target::follow_fork): Switch to thread
11919 instead of just tweaking inferior_ptid.
11920 (linux_nat_switch_fork): Pass target down to thread_change_ptid.
11921 (exit_lwp): Pass target down to find_thread_ptid.
11922 (attach_proc_task_lwp_callback): Pass target down to
11923 add_thread/set_running/set_executing.
11924 (linux_nat_target::attach): Pass target down to
11925 thread_change_ptid.
11926 (get_detach_signal): Pass target down to find_thread_ptid.
11927 Consider last target status's target.
11928 (linux_resume_one_lwp_throw, resume_lwp)
11929 (linux_handle_syscall_trap, linux_handle_extended_wait, wait_lwp)
11930 (stop_wait_callback, save_stop_reason, linux_nat_filter_event)
11931 (linux_nat_wait_1, resume_stopped_resumed_lwps): Pass target down.
11932 (linux_nat_target::async_wait_fd): New.
11933 (linux_nat_stop_lwp, linux_nat_target::thread_address_space): Pass
11934 target down.
11935 * linux-nat.h (linux_nat_target::async_wait_fd): Declare.
11936 * linux-tdep.c (get_thread_arch_regcache): Pass target down.
11937 * linux-thread-db.c (struct thread_db_info::process_target): New
11938 field.
11939 (add_thread_db_info): Save target.
11940 (get_thread_db_info): New process_stratum_target parameter. Also
11941 match target.
11942 (delete_thread_db_info): New process_stratum_target parameter.
11943 Also match target.
11944 (thread_from_lwp): Adjust to pass down target.
11945 (thread_db_notice_clone): Pass down target.
11946 (check_thread_db_callback): Pass down target.
11947 (try_thread_db_load_1): Always push the thread_db target.
11948 (try_thread_db_load, record_thread): Pass target down.
11949 (thread_db_target::detach): Pass target down. Always unpush the
11950 thread_db target.
11951 (thread_db_target::wait, thread_db_target::mourn_inferior): Pass
11952 target down. Always unpush the thread_db target.
11953 (find_new_threads_callback, thread_db_find_new_threads_2)
11954 (thread_db_target::update_thread_list): Pass target down.
11955 (thread_db_target::pid_to_str): Pass current inferior down.
11956 (thread_db_target::get_thread_local_address): Pass target down.
11957 (thread_db_target::resume, maintenance_check_libthread_db): Pass
11958 target down.
11959 * nto-procfs.c (nto_procfs_target::update_thread_list): Adjust.
11960 * procfs.c (procfs_target::procfs_init_inferior): Declare.
11961 (proc_set_current_signal, do_attach, procfs_target::wait): Adjust.
11962 (procfs_init_inferior): Rename to ...
11963 (procfs_target::procfs_init_inferior): ... this and adjust.
11964 (procfs_target::create_inferior, procfs_notice_thread)
11965 (procfs_do_thread_registers): Adjust.
11966 * ppc-fbsd-tdep.c: Include "inferior.h".
11967 (ppcfbsd_get_thread_local_address): Pass down target.
11968 * proc-service.c (ps_xfer_memory): Switch current inferior and
11969 program space as well.
11970 (get_ps_regcache): Pass target down.
11971 * process-stratum-target.c
11972 (process_stratum_target::thread_address_space)
11973 (process_stratum_target::thread_architecture): Pass target down.
11974 * process-stratum-target.h
11975 (process_stratum_target::threads_executing): New field.
11976 (as_process_stratum_target): New.
11977 * ravenscar-thread.c
11978 (ravenscar_thread_target::update_inferior_ptid): Pass target down.
11979 (ravenscar_thread_target::wait, ravenscar_add_thread): Pass target
11980 down.
11981 * record-btrace.c (record_btrace_target::info_record): Adjust.
11982 (record_btrace_target::record_method)
11983 (record_btrace_target::record_is_replaying)
11984 (record_btrace_target::fetch_registers)
11985 (get_thread_current_frame_id, record_btrace_target::resume)
11986 (record_btrace_target::wait, record_btrace_target::stop): Pass
11987 target down.
11988 * record-full.c (record_full_wait_1): Switch to event thread.
11989 Pass target down.
11990 * regcache.c (regcache::regcache)
11991 (get_thread_arch_aspace_regcache, get_thread_arch_regcache): Add
11992 process_stratum_target parameter and handle it.
11993 (current_thread_target): New global.
11994 (get_thread_regcache): Add process_stratum_target parameter and
11995 handle it. Switch inferior before calling target method.
11996 (get_thread_regcache): Pass target down.
11997 (get_thread_regcache_for_ptid): Pass target down.
11998 (registers_changed_ptid): Add process_stratum_target parameter and
11999 handle it.
12000 (registers_changed_thread, registers_changed): Pass target down.
12001 (test_get_thread_arch_aspace_regcache): New.
12002 (current_regcache_test): Define a couple local test_target_ops
12003 instances and use them for testing.
12004 (readwrite_regcache): Pass process_stratum_target parameter.
12005 (cooked_read_test, cooked_write_test): Pass mock_target down.
12006 * regcache.h (get_thread_regcache, get_thread_arch_regcache)
12007 (get_thread_arch_aspace_regcache): Add process_stratum_target
12008 parameter.
12009 (regcache::target): New method.
12010 (regcache::regcache, regcache::get_thread_arch_aspace_regcache)
12011 (regcache::registers_changed_ptid): Add process_stratum_target
12012 parameter.
12013 (regcache::m_target): New field.
12014 (registers_changed_ptid): Add process_stratum_target parameter.
12015 * remote.c (remote_state::supports_vCont_probed): New field.
12016 (remote_target::async_wait_fd): New method.
12017 (remote_unpush_and_throw): Add remote_target parameter.
12018 (get_current_remote_target): Adjust.
12019 (remote_target::remote_add_inferior): Push target.
12020 (remote_target::remote_add_thread)
12021 (remote_target::remote_notice_new_inferior)
12022 (get_remote_thread_info): Pass target down.
12023 (remote_target::update_thread_list): Skip threads of inferiors
12024 bound to other targets. (remote_target::close): Don't discard
12025 inferiors. (remote_target::add_current_inferior_and_thread)
12026 (remote_target::process_initial_stop_replies)
12027 (remote_target::start_remote)
12028 (remote_target::remote_serial_quit_handler): Pass down target.
12029 (remote_target::remote_unpush_target): New remote_target
12030 parameter. Unpush the target from all inferiors.
12031 (remote_target::remote_unpush_and_throw): New remote_target
12032 parameter. Pass it down.
12033 (remote_target::open_1): Check whether the current inferior has
12034 execution instead of checking whether any inferior is live. Pass
12035 target down.
12036 (remote_target::remote_detach_1): Pass down target. Use
12037 remote_unpush_target.
12038 (extended_remote_target::attach): Pass down target.
12039 (remote_target::remote_vcont_probe): Set supports_vCont_probed.
12040 (remote_target::append_resumption): Pass down target.
12041 (remote_target::append_pending_thread_resumptions)
12042 (remote_target::remote_resume_with_hc, remote_target::resume)
12043 (remote_target::commit_resume): Pass down target.
12044 (remote_target::remote_stop_ns): Check supports_vCont_probed.
12045 (remote_target::interrupt_query)
12046 (remote_target::remove_new_fork_children)
12047 (remote_target::check_pending_events_prevent_wildcard_vcont)
12048 (remote_target::remote_parse_stop_reply)
12049 (remote_target::process_stop_reply): Pass down target.
12050 (first_remote_resumed_thread): New remote_target parameter. Pass
12051 it down.
12052 (remote_target::wait_as): Pass down target.
12053 (unpush_and_perror): New remote_target parameter. Pass it down.
12054 (remote_target::readchar, remote_target::remote_serial_write)
12055 (remote_target::getpkt_or_notif_sane_1)
12056 (remote_target::kill_new_fork_children, remote_target::kill): Pass
12057 down target.
12058 (remote_target::mourn_inferior): Pass down target. Use
12059 remote_unpush_target.
12060 (remote_target::core_of_thread)
12061 (remote_target::remote_btrace_maybe_reopen): Pass down target.
12062 (remote_target::pid_to_exec_file)
12063 (remote_target::thread_handle_to_thread_info): Pass down target.
12064 (remote_target::async_wait_fd): New.
12065 * riscv-fbsd-tdep.c: Include "inferior.h".
12066 (riscv_fbsd_get_thread_local_address): Pass down target.
12067 * sol2-tdep.c (sol2_core_pid_to_str): Pass down target.
12068 * sol-thread.c (sol_thread_target::wait, ps_lgetregs, ps_lsetregs)
12069 (ps_lgetfpregs, ps_lsetfpregs, sol_update_thread_list_callback):
12070 Adjust.
12071 * solib-spu.c (spu_skip_standalone_loader): Pass down target.
12072 * solib-svr4.c (enable_break): Pass down target.
12073 * spu-multiarch.c (parse_spufs_run): Pass down target.
12074 * spu-tdep.c (spu2ppu_sniffer): Pass down target.
12075 * target-delegates.c: Regenerate.
12076 * target.c (g_target_stack): Delete.
12077 (current_top_target): Return the current inferior's top target.
12078 (target_has_execution_1): Refer to the passed-in inferior's top
12079 target.
12080 (target_supports_terminal_ours): Check whether the initial
12081 inferior was already created.
12082 (decref_target): New.
12083 (target_stack::push): Incref/decref the target.
12084 (push_target, push_target, unpush_target): Adjust.
12085 (target_stack::unpush): Defref target.
12086 (target_is_pushed): Return bool. Adjust to refer to the current
12087 inferior's target stack.
12088 (dispose_inferior): Delete, and inline parts ...
12089 (target_preopen): ... here. Only dispose of the current inferior.
12090 (target_detach): Hold strong target reference while detaching.
12091 Pass target down.
12092 (target_thread_name): Add assertion.
12093 (target_resume): Pass down target.
12094 (target_ops::beneath, find_target_at): Adjust to refer to the
12095 current inferior's target stack.
12096 (get_dummy_target): New.
12097 (target_pass_ctrlc): Pass the Ctrl-C to the first inferior that
12098 has a thread running.
12099 (initialize_targets): Rename to ...
12100 (_initialize_target): ... this.
12101 * target.h: Include "gdbsupport/refcounted-object.h".
12102 (struct target_ops): Inherit refcounted_object.
12103 (target_ops::shortname, target_ops::longname): Make const.
12104 (target_ops::async_wait_fd): New method.
12105 (decref_target): Declare.
12106 (struct target_ops_ref_policy): New.
12107 (target_ops_ref): New typedef.
12108 (get_dummy_target): Declare function.
12109 (target_is_pushed): Return bool.
12110 * thread-iter.c (all_matching_threads_iterator::m_inf_matches)
12111 (all_matching_threads_iterator::all_matching_threads_iterator):
12112 Handle filter target.
12113 * thread-iter.h (struct all_matching_threads_iterator, struct
12114 all_matching_threads_range, class all_non_exited_threads_range):
12115 Filter by target too. Remove explicit.
12116 * thread.c (threads_executing): Delete.
12117 (inferior_thread): Pass down current inferior.
12118 (clear_thread_inferior_resources): Pass down thread pointer
12119 instead of ptid_t.
12120 (add_thread_silent, add_thread_with_info, add_thread): Add
12121 process_stratum_target parameter. Use it for thread and inferior
12122 searches.
12123 (is_current_thread): New.
12124 (thread_info::deletable): Use it.
12125 (find_thread_ptid, thread_count, in_thread_list)
12126 (thread_change_ptid, set_resumed, set_running): New
12127 process_stratum_target parameter. Pass it down.
12128 (set_executing): New process_stratum_target parameter. Pass it
12129 down. Adjust reference to 'threads_executing'.
12130 (threads_are_executing): New process_stratum_target parameter.
12131 Adjust reference to 'threads_executing'.
12132 (set_stop_requested, finish_thread_state): New
12133 process_stratum_target parameter. Pass it down.
12134 (switch_to_thread): Also match inferior.
12135 (switch_to_thread): New process_stratum_target parameter. Pass it
12136 down.
12137 (update_threads_executing): Reimplement.
12138 * top.c (quit_force): Pop targets from all inferior.
12139 (gdb_init): Don't call initialize_targets.
12140 * windows-nat.c (windows_nat_target) <get_windows_debug_event>:
12141 Declare.
12142 (windows_add_thread, windows_delete_thread): Adjust.
12143 (get_windows_debug_event): Rename to ...
12144 (windows_nat_target::get_windows_debug_event): ... this. Adjust.
12145 * tracefile-tfile.c (tfile_target_open): Pass down target.
12146 * gdbsupport/common-gdbthread.h (struct process_stratum_target):
12147 Forward declare.
12148 (switch_to_thread): Add process_stratum_target parameter.
12149 * mi/mi-interp.c (mi_on_resume_1): Add process_stratum_target
12150 parameter. Use it.
12151 (mi_on_resume): Pass target down.
12152 * nat/fork-inferior.c (startup_inferior): Add
12153 process_stratum_target parameter. Pass it down.
12154 * nat/fork-inferior.h (startup_inferior): Add
12155 process_stratum_target parameter.
12156 * python/py-threadevent.c (py_get_event_thread): Pass target down.
12157
75c6c844
PA
121582020-01-10 Pedro Alves <palves@redhat.com>
12159
12160 * remote.c (remote_target::start_remote): Don't set inferior_ptid
12161 directly. Instead find the first thread in the thread list and
12162 use switch_to_thread.
12163
78f2c40a
PA
121642020-01-10 Pedro Alves <palves@redhat.com>
12165
12166 * remote.c (remote_target::remote_add_inferior): Don't bind a
12167 process to the current inferior if the current inferior is already
12168 bound to a process.
12169
e7af6c70
TBA
121702020-01-10 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
12171 Pedro Alves <palves@redhat.com>
12172
12173 * remote.c (remote_target::remote_parse_stop_reply) <W/X packets>:
12174 If no process is specified, return null_ptid instead of
12175 inferior_ptid.
12176 (remote_target::wait_as): Handle TARGET_WAITKIND_EXITED /
12177 TARGET_WAITKIND_SIGNALLED with no pid.
12178
31ba933e
PA
121792020-01-10 Pedro Alves <palves@redhat.com>
12180
12181 * remote.c (first_remote_resumed_thread): New.
12182 (remote_target::wait_as): Use it as default event_ptid instead of
12183 inferior_ptid.
12184
735fc2ca
PA
121852020-01-10 Pedro Alves <palves@redhat.com>
12186
12187 * infrun.c (handle_no_resumed): Use all_non_exited_inferiors.
12188
c17e02e1
PA
121892020-01-10 Pedro Alves <palves@redhat.com>
12190
12191 * tracefile-tfile.c (tfile_target::close): Assert that trace_fd is
12192 not -1.
12193
ab1ddbcf
PA
121942020-01-10 Pedro Alves <palves@redhat.com>
12195
12196 * break-catch-sig.c (signal_catchpoint_print_it): Don't pass a
12197 ptid to get_last_target_status.
12198 * break-catch-syscall.c (print_it_catch_syscall): Don't pass a
12199 ptid to get_last_target_status.
12200 * infcmd.c (continue_command): Don't pass a target_waitstatus to
12201 get_last_target_status.
12202 (info_program_command): Don't pass a target_waitstatus to
12203 get_last_target_status.
12204 * infrun.c (init_wait_for_inferior): Use
12205 nullify_last_target_wait_ptid.
12206 (get_last_target_status): Handle nullptr arguments.
12207 (nullify_last_target_wait_ptid): Clear target_last_waitstatus.
12208 (print_stop_event): Don't pass a ptid to get_last_target_status.
12209 (normal_stop): Don't pass a ptid to get_last_target_status.
12210 * infrun.h (get_last_target_status, set_last_target_status): Move
12211 comments here and update.
12212 (nullify_last_target_wait_ptid): Declare.
12213 * linux-fork.c (fork_load_infrun_state): Remove local extern
12214 declaration of nullify_last_target_wait_ptid.
12215 * linux-nat.c (get_detach_signal): Don't pass a target_waitstatus
12216 to get_last_target_status.
12217
f3f8ece4
PA
122182020-01-10 Pedro Alves <palves@redhat.com>
12219
12220 * gdbthread.h (scoped_restore_current_thread)
12221 <dont_restore, restore, m_dont_restore>: Declare.
12222 * thread.c (thread_alive): Add assertion. Return bool.
12223 (switch_to_thread_if_alive): New.
12224 (prune_threads): Switch inferior/thread.
12225 (print_thread_info_1): Switch thread before calling target methods.
12226 (scoped_restore_current_thread::restore): New, factored out from
12227 ...
12228 (scoped_restore_current_thread::~scoped_restore_current_thread):
12229 ... this.
12230 (scoped_restore_current_thread::scoped_restore_current_thread):
12231 Add assertion.
12232 (thread_apply_all_command, thread_select): Use
12233 switch_to_thread_if_alive.
12234 * infrun.c (proceed, restart_threads, handle_signal_stop)
12235 (switch_back_to_stepped_thread): Switch current thread before
12236 calling target methods.
12237
db2d40f7
PA
122382020-01-10 Pedro Alves <palves@redhat.com>
12239
12240 * inferior.c (switch_to_inferior_no_thread): New function,
12241 factored out from ...
12242 (inferior_command): ... here.
12243 * inferior.h (switch_to_inferior_no_thread): Declare.
12244 * mi/mi-main.c (run_one_inferior): Use
12245 switch_to_inferior_no_thread.
12246
bd420a2d
PA
122472020-01-10 Pedro Alves <palves@redhat.com>
12248
12249 * infcmd.c (kill_command): Remove dead code.
12250
ddf5db90
PA
122512020-01-10 Pedro Alves <palves@redhat.com>
12252
12253 * remote.c (remote_target::mourn_inferior): No longer check
12254 whether the target is running.
12255
5018ce90
PA
122562020-01-10 Pedro Alves <palves@redhat.com>
12257
12258 * corelow.c (core_target::has_execution): Change parameter type to
12259 inferior pointer.
12260 * inferior.c (number_of_live_inferiors): Use
12261 inferior::has_execution instead of target_has_execution_1.
12262 * inferior.h (inferior::has_execution): New.
12263 * linux-thread-db.c (thread_db_target::update_thread_list): Use
12264 inferior::has_execution instead of target_has_execution_1.
12265 * process-stratum-target.c
12266 (process_stratum_target::has_execution): Change parameter type to
12267 inferior pointer. Check the inferior's PID instead of
12268 inferior_ptid.
12269 * process-stratum-target.h
12270 (process_stratum_target::has_execution): Change parameter type to
12271 inferior pointer.
12272 * record-full.c (record_full_core_target::has_execution): Change
12273 parameter type to inferior pointer.
12274 * target.c (target_has_execution_1): Change parameter type to
12275 inferior pointer.
12276 (target_has_execution_current): Adjust.
12277 * target.h (target_ops::has_execution): Change parameter type to
12278 inferior pointer.
12279 (target_has_execution_1): Change parameter type to inferior
12280 pointer. Change return type to bool.
12281 * tracefile.h (tracefile_target::has_execution): Change parameter
12282 type to inferior pointer.
12283
74375d18
PA
122842020-01-10 Pedro Alves <palves@redhat.com>
12285
12286 * exceptions.c (print_flush): Remove current_top_target() check.
12287
acdf84a6
PA
122882020-01-10 Pedro Alves <palves@redhat.com>
12289
12290 * remote.c (show_remote_exec_file): Show the current inferior's
12291 exec-file instead of the command variable's value.
12292
ec506636
PA
122932020-01-10 Pedro Alves <palves@redhat.com>
12294
12295 * record-full.c (record_full_resume_ptid): New global.
12296 (record_full_target::resume): Set it.
12297 (record_full_wait_1): Use record_full_resume_ptid instead of
12298 inferior_ptid.
12299
873657b9
PA
123002020-01-10 Pedro Alves <palves@redhat.com>
12301
12302 * gdbthread.h (scoped_restore_current_thread)
12303 <dont_restore, restore, m_dont_restore>: Declare.
12304 * thread.c (thread_alive): Add assertion. Return bool.
12305 (switch_to_thread_if_alive): New.
12306 (prune_threads): Switch inferior/thread.
12307 (print_thread_info_1): Switch thread before calling target methods.
12308 (scoped_restore_current_thread::restore): New, factored out from
12309 ...
12310 (scoped_restore_current_thread::~scoped_restore_current_thread):
12311 ... this.
12312 (scoped_restore_current_thread::scoped_restore_current_thread):
12313 Add assertion.
12314 (thread_apply_all_command, thread_select): Use
12315 switch_to_thread_if_alive.
12316
7f0ae84c
GB
123172020-01-10 George Barrett <bob@bob131.so>
12318
12319 * stap-probe.c (stap_modify_semaphore): Don't check for null
12320 semaphores.
12321 (stap_probe::set_semaphore, stap_probe::clear_semaphore): Check
12322 for null semaphores.
12323
f5a7c406
AB
123242020-01-09 Andrew Burgess <andrew.burgess@embecosm.com>
12325
12326 * tui/tui-source.c (tui_source_window::do_scroll_vertical): Update
12327 all source windows, and maintain horizontal scroll status while
12328 doing so.
12329
9ae6bf64
TT
123302020-01-09 Tom Tromey <tom@tromey.com>
12331
12332 PR tui/18932:
12333 * tui/tui-source.c (tui_source_window::do_scroll_vertical): Call
12334 update_source_window, not print_source_lines.
12335
b2efe70c
AB
123362020-01-09 Andrew Burgess <andrew.burgess@embecosm.com>
12337
12338 * tui/tui.c (tui_enable): Register tui hooks after calling
12339 tui_display_main.
12340
5f23a082
CB
123412020-01-09 Christian Biesinger <cbiesinger@google.com>
12342
12343 * gdbsupport/common-defs.h: Don't define _FORTIFY_SOURCE on MinGW.
12344
3061113b
SM
123452020-01-08 Simon Marchi <simon.marchi@efficios.com>
12346
12347 * thread.c (print_thread_info_1): Fix indentation.
12348
57d75002
CB
123492020-01-09 Christian Biesinger <cbiesinger@google.com>
12350
12351 * symtab.c (general_symbol_info::compute_and_set_names): Move the
12352 unique_xmalloc_ptr outside the if to always free the demangled name.
12353
6a053cb1
TT
123542020-01-08 Tom Tromey <tromey@adacore.com>
12355
12356 * xcoffread.c (enter_line_range, read_xcoff_symtab)
12357 (process_xcoff_symbol, xcoff_symfile_offsets): Update.
12358 * symtab.h (MSYMBOL_VALUE_ADDRESS): Update.
12359 (struct section_offsets, ANOFFSET, SIZEOF_N_SECTION_OFFSETS):
12360 Remove.
12361 (section_offsets): New typedef.
12362 * symtab.c (fixup_section, get_msymbol_address): Update.
12363 * symmisc.c (dump_msymbols): Update.
12364 * symfile.h (relative_addr_info_to_section_offsets)
12365 (symfile_map_offsets_to_segments): Update.
12366 * symfile.c (build_section_addr_info_from_objfile)
12367 (init_objfile_sect_indices): Update.
12368 (struct place_section_arg): Change type of "offsets".
12369 (place_section): Update.
12370 (relative_addr_info_to_section_offsets): Change type of
12371 "section_offsets". Remove "num_sections" parameter.
12372 (default_symfile_offsets, syms_from_objfile_1)
12373 (set_objfile_default_section_offset): Update.
12374 (reread_symbols): No need to preserve section offsets by hand.
12375 (symfile_map_offsets_to_segments): Change type of "offsets".
12376 * stap-probe.c (relocate_address): Update.
12377 * stabsread.h (process_one_symbol): Update.
12378 * solib-target.c (struct lm_info_target) <offsets>: Change type.
12379 (solib_target_relocate_section_addresses): Update.
12380 * solib-svr4.c (enable_break, svr4_relocate_main_executable):
12381 Update.
12382 * solib-frv.c (frv_relocate_main_executable): Update.
12383 * solib-dsbt.c (dsbt_relocate_main_executable): Update.
12384 * solib-aix.c (solib_aix_get_section_offsets): Change return
12385 type.
12386 (solib_aix_solib_create_inferior_hook): Update.
12387 * remote.c (remote_target::get_offsets): Update.
12388 * psymtab.c (find_pc_sect_psymtab): Update.
12389 * psympriv.h (struct partial_symbol) <address, text_low,
12390 text_high>: Update.
12391 * objfiles.h (obj_section_offset): Update.
12392 (struct objfile) <section_offsets>: Change type.
12393 <num_sections>: Remove.
12394 (objfile_relocate): Update.
12395 * objfiles.c (entry_point_address_query): Update
12396 (relocate_one_symbol): Change type of "section_offsets".
12397 (objfile_relocate1, objfile_relocate1): Change type of
12398 "new_offsets".
12399 (objfile_rebase1): Update.
12400 * mipsread.c (mipscoff_symfile_read): Update.
12401 (read_alphacoff_dynamic_symtab): Remove "section_offsets"
12402 parameter.
12403 * mdebugread.c (parse_symbol): Change type of "section_offsets".
12404 (parse_external, psymtab_to_symtab_1): Update.
12405 * machoread.c (macho_symfile_offsets): Update.
12406 * ia64-tdep.c (ia64_find_unwind_table): Update.
12407 * hppa-tdep.c (read_unwind_info): Update.
12408 * hppa-bsd-tdep.c (hppabsd_find_global_pointer): Update.
12409 * dwarf2read.c (create_addrmap_from_index)
12410 (create_addrmap_from_aranges, dw2_find_pc_sect_compunit_symtab)
12411 (process_psymtab_comp_unit_reader, add_partial_symbol)
12412 (add_partial_subprogram, process_full_comp_unit)
12413 (read_file_scope, read_func_scope, read_lexical_block_scope)
12414 (read_call_site_scope, dwarf2_rnglists_process)
12415 (dwarf2_ranges_process, dwarf2_ranges_read)
12416 (dwarf_decode_lines_1, var_decode_location, new_symbol)
12417 (dwarf2_fetch_die_loc_sect_off, dwarf2_per_cu_text_offset):
12418 Update.
12419 * dwarf2-frame.c (execute_cfa_program, dwarf2_frame_find_fde):
12420 Update.
12421 * dtrace-probe.c (dtrace_probe::get_relocated_address): Update.
12422 * dbxread.c (read_dbx_symtab, read_ofile_symtab): Update.
12423 (process_one_symbol): Change type of "section_offsets".
12424 * ctfread.c (get_objfile_text_range): Update.
12425 * coffread.c (coff_symtab_read, enter_linenos)
12426 (process_coff_symbol): Update.
12427 * coff-pe-read.c (add_pe_forwarded_sym): Update.
12428 * amd64-windows-tdep.c (amd64_windows_find_unwind_info): Update.
12429
456e800a
TT
124302020-01-08 Tom Tromey <tromey@adacore.com>
12431
12432 * dwarf2read.c (parse_macro_definition): Use std::string.
12433 (parse_macro_definition): Likewise.
12434
6dfa2fc2
TT
124352020-01-08 Tom Tromey <tromey@adacore.com>
12436
12437 * dwarf2read.c (abbrev_table_read_table): Use std::vector.
12438 (ATTR_ALLOC_CHUNK): Remove.
12439
421d1616
TT
124402020-01-08 Tom Tromey <tromey@adacore.com>
12441
12442 * dwarf2read.c (fixup_go_packaging): Use unique_xmalloc_ptr.
12443
43816ebc
TT
124442020-01-08 Tom Tromey <tromey@adacore.com>
12445
12446 * dwarf2read.c (add_partial_symbol): Use unique_xmalloc_ptr.
12447 (dwarf2_compute_name, open_dwo_file): Likewise.
12448 (process_enumeration_scope): Use std::vector.
12449 (guess_partial_die_structure_name): Use unique_xmalloc_ptr.
12450 (partial_die_info::fixup, dwarf2_start_subfile)
12451 (guess_full_die_structure_name, dwarf2_name): Likewise.
12452 (determine_prefix): Update.
12453 (guess_full_die_structure_name): Make return type const.
12454 (partial_die_full_name): Return unique_xmalloc_ptr.
12455 (DW_FIELD_ALLOC_CHUNK): Remove.
12456
4212d509
TT
124572020-01-07 Tom Tromey <tromey@adacore.com>
12458
12459 PR build/24937:
12460 * stap-probe.c (class stap_static_probe_ops): Add constructor.
12461
06a6207a
JT
124622020-01-02 Jon Turney <jon.turney@dronecode.org.uk>
12463
12464 * cli/cli-style.c: Set cli_styling to 'true' in the Cygwin build.
12465
153d79c4
AB
124662020-01-06 Andrew Burgess <andrew.burgess@embecosm.com>
12467
12468 * stack.c (print_frame_info): Move disassemble_next_line code
12469 inside source_print block.
12470
66182876
EZ
124712020-01-06 Eli Zaretskii <eliz@gnu.org>
12472
12473 * gdbsupport/gdb_wait.c: Include <signal.h> instead of
12474 gdb/signals.h, as we are now using native signal symbols.
12475
cbfa8581
SV
124762020-01-06 Shahab Vahedi <shahab@synopsys.com>
12477
12478 * tui/tui-disasm.c (tui_disasm_window::addr_is_displayed): Avoid
12479 overflow by an early check of content vs threshold.
aac66a4c 12480 * tui/tui-source.c (tui_source_window::line_is_displayed):
cbfa8581
SV
12481 Likewise.
12482
3f602821
EZ
124832020-01-06 Eli Zaretskii <eliz@gnu.org>
12484
12485 * NEWS: Mention the recent fix of $_exitsignal on MS-Windows.
12486
a08c904d
JT
124872020-01-02 Jon Turney <jon.turney@dronecode.org.uk>
12488
12489 * coff-pe-read.c (read_pe_exported_syms): Don't try to read the
12490 export table if no section contains it's RVA.
12491
89a65580
EZ
124922020-01-06 Eli Zaretskii <eliz@gnu.org>
12493
12494 * windows-tdep.c: Fix a typo in WINDOWS_SIGABRT.
12495
8b7fcda2
HD
124962020-01-06 Hannes Domani <ssbssa@yahoo.de>
12497
12498 * source.c (print_source_lines_base): Set last_line_listed.
12499
a61b4f69
SV
125002020-01-06 Shahab Vahedi <shahab@synopsys.com>
12501
12502 * tui/tui-disasm.c: Remove trailing spaces.
12503
559e7e50
EZ
125042020-01-06 Eli Zaretskii <eliz@gnu.org>
12505 Pedro Alves <palves@redhat.com>
12506
12507 * Makefile.in (COMMON_SFILES): Add gdbsupport/gdb_wait.c.
12508 * windows-tdep.c: New enumeration of WINDOWS_SIG* signals.
12509 (windows_gdb_signal_to_target): New function, uses the above
12510 enumeration to convert GDB internal signal codes to equivalent
12511 Windows codes.
12512 (windows_init_abi): Call set_gdbarch_gdb_signal_to_target.
12513 * windows-nat.c: Include "gdb_wait.h".
12514 (get_windows_debug_event): Extract the fatal exception from the
12515 exit status and convert to the equivalent Posix signal number.
12516 * cli/cli-cmds.c (exit_status_set_internal_vars): Account for the
12517 possibility that WTERMSIG returns GDB_SIGNAL_UNKNOWN.
12518 * gdbsupport/gdb_wait.c: New file, implements
12519 windows_status_to_termsig.
12520 * gdbsupport/gdb_wait.h (WIFEXITED, WIFSIGNALED, WEXITSTATUS)
12521 (WTERMSIG) [__MINGW32__]: Separate definitions for MinGW.
12522
f2302a34
AB
125232020-01-05 Andrew Burgess <andrew.burgess@embecosm.com>
12524
12525 * tui/tui-layout.c (tui_add_win_to_layout): Use tui_set_layout not
12526 show_layout.
12527
6a5206eb
LM
125282020-01-05 Luis Machado <luis.machado@linaro.org>
12529
12530 * aarch64-linux-nat.c
12531 (aarch64_linux_nat_target::thread_architecture): Use bfd_arch_aarch64
12532 and bfd_mach_aarch64.
12533
6ec1d75e
PW
125342020-01-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
12535
12536 * ui-file.c (stdio_file::can_emit_style_escape)
12537 (tee_file::can_emit_style_escape): Ensure style is used also on
12538 gdb_stderr when gdb_stderr is a tty supporting styling, similarly
12539 to gdb_stdout.
12540 * main.c (set_gdb_data_directory): Use file style to output the
12541 warning that the given pathname is not a directory.
12542 * top.c (show_history_filename, gdb_safe_append_history)
12543 (show_gdb_datadir): Use file style.
12544
44f81a76
HD
125452020-01-03 Hannes Domani <ssbssa@yahoo.de>
12546
12547 * solib-target.c (struct lm_info_target):
12548 Change offsets to be a unique_xmalloc_ptr.
12549 (solib_target_relocate_section_addresses): Update.
12550
25057eb0
HD
125512020-01-03 Hannes Domani <ssbssa@yahoo.de>
12552
12553 * windows-nat.c (windows_clear_solib): Free so_list linked list.
12554
6e2118f5
BE
125552020-01-03 Bernd Edlinger <bernd.edlinger@hotmail.de>
12556
12557 * MAINTAINERS (Write After Approval): Add myself.
12558
8133c7dc
LM
125592020-01-02 Luis Machado <luis.machado@linaro.org>
12560
12561 * proc-service.c (get_ps_regcache): Remove reference to obsolete
12562 Cell BE architecture.
12563 * target.h (struct target_ops) <thread_architecture>: Likewise.
12564
48189bec
HD
125652020-01-01 Hannes Domani <ssbssa@yahoo.de>
12566
12567 * Makefile.in: Use INSTALL_PROGRAM_ENV.
12568
ead1063b
HD
125692020-01-01 Hannes Domani <ssbssa@yahoo.de>
12570
12571 * MAINTAINERS (Write After Approval): Add myself.
12572
e5d78223
JB
125732020-01-01 Joel Brobecker <brobecker@adacore.com>
12574
12575 * gdbarch.sh: Update copyright year range of generated files.
12576
b811d2c2
JB
125772020-01-01 Joel Brobecker <brobecker@adacore.com>
12578
12579 Update copyright year range in all GDB files.
12580
5f4def5c
JB
125812020-01-01 Joel Brobecker <brobecker@adacore.com>
12582
12583 * copyright.py: Convert to Python 3.
12584
51fd4002
JB
125852020-01-01 Joel Brobecker <brobecker@adacore.com>
12586
12587 * copyright.py: Adapt after move of gnulib directory from gdb
12588 directory to toplevel directory.
12589
5fb651f2
JB
125902020-01-01 Joel Brobecker <brobecker@adacore.com>
12591
12592 * copyright.py (main): Exit if run from the wrong directory.
12593
5dd8bf88
JB
125942020-01-01 Joel Brobecker <brobecker@adacore.com>
12595
12596 * top.c (print_gdb_version): Change copyright year to 2020.
12597
9f71dacb 125982020-01-01 Joel Brobecker <brobecker@adacore.com>
3d34df0a 12599
9f71dacb 12600 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2019.
3d34df0a 12601
9f71dacb 12602For older changes see ChangeLog-2019.
c906108c
SS
12603\f
12604Local Variables:
12605mode: change-log
12606left-margin: 8
12607fill-column: 74
12608version-control: never
57da7796 12609coding: utf-8
c906108c 12610End: