]> git.ipfire.org Git - thirdparty/binutils-gdb.git/blame - gdb/ChangeLog
CSKY: Set feature flags for default cpu.
[thirdparty/binutils-gdb.git] / gdb / ChangeLog
CommitLineData
6791b117
PA
12020-09-13 Pedro Alves <pedro@palves.net>
2
3 * NEWS: Document "-break-insert --qualified".
4 * mi/mi-cmd-break.c (mi_cmd_break_insert_1): Handle "--qualified".
5
77f2120b
PA
62020-09-13 Pedro Alves <pedro@palves.net>
7
8 * linespec.c (classify_mtype, compare_msyms): Delete.
9 (search_minsyms_for_name): Remove classification logic. Instead
10 filter out trampoline symbols if we also found an external
11 function of the same name.
12
ed6a896c
JB
132020-09-13 Joel Brobecker <brobecker@adacore.com>
14
15 * NEWS: Create a new section for the next release branch.
16 Rename the section of the current branch, now that it has
17 been cut.
18
32aea73e
JB
192020-09-13 Joel Brobecker <brobecker@adacore.com>
20
21 GDB 10 branch created (8087c3fa8b5d695e3e29e69d70d0b35ec902ac59):
22 * version.in: Bump version to 11.0.50.DATE-git.
23
8087c3fa
JB
242020-09-12 Joel Brobecker <brobecker@adacore.com>
25
26 * infrun.c (namespace selftests): Only define #if GDB_SELF_TEST.
27
2a67f09d
FW
282020-09-11 Moritz Riesterer <moritz.riesterer@intel.com>
29 Felix Willgerodt <Felix.Willgerodt@intel.com>
30
31 * gdbarch.sh: Added bfloat16 type.
32 * gdbarch.c: Regenerated.
33 * gdbarch.h: Regenerated.
34 * gdbtypes.c (floatformats_bfloat16): New struct.
35 (gdbtypes_post_init): Add builtin_bfloat16.
36 * gdbtypes.h (struct builtin_type) <builtin_bfloat16>: New member.
37 (floatformats_bfloat16): New struct.
38 * i386-tdep.c (i386_zmm_type): Add field "v32_bfloat16"
39 (i386_ymm_type): Add field "v16_bfloat16"
40 (i386_gdbarch_init): Add set_gdbarch_bfloat16_format.
41 * target-descriptions.c (make_gdb_type): Add case TDESC_TYPE_BFLOAT16.
42 * gdbsupport/tdesc.cc (tdesc_predefined_types): New member bfloat16.
43 * gdbsupport/tdesc.h (tdesc_type_kind): New member TDESC_TYPE_BFLOAT16.
44 * features/i386/64bit-avx512.xml: Add bfloat16 type.
45 * features/i386/64bit-avx512.c: Regenerated.
46 * features/i386/64bit-sse.xml: Add bfloat16 type.
47 * features/i386/64bit-sse.c: Regenerated.
48
1347d111
FW
492020-09-11 Felix Willgerodt <felix.willgerodt@intel.com>
50
51 * i386-tdep.c (i386_zmm_type): Fix field names.
52 (i386_ymm_type): Fix field names.
53
7a4e8e7d
TBA
542020-09-11 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
55
56 * breakpoint.c: Fix typo in the help message of the
57 "set breakpoint condition-evaluation" command.
58
cf4ac4be
KR
592020-09-10 Kamil Rytarowski <n54@gmx.com>
60
61 * nbsd-nat.c: Include "nat/netbsd-nat.h".
62 * (nbsd_nat_target::pid_to_exec_file)
63 (nbsd_nat_target::thread_alive, nbsd_nat_target::thread_name)
64 (nbsd_nat_target::post_startup_inferior)
65 (nbsd_nat_target::post_attach, nbsd_nat_target::xfer_partial)
66 (nbsd_add_threads): Switch local code to common gdb/nat functions.
67 * (nbsd_pid_to_cmdline): Call sysctl from the global namespace.
68 * (nbsd_thread_lister): Remove.
69
f404573e
KR
702020-09-10 Kamil Rytarowski <n54@gmx.com>
71
72 * fork-inferior.c (startup_inferior): Avoid double free.
73
1ccb2c17
KR
742020-09-10 Kamil Rytarowski <n54@gmx.com>
75
76 * netbsd-nat.h (netbsd_nat::qxfer_siginfo): Add.
77 * netbsd-nat.c (netbsd_nat::qxfer_siginfo): Likewise.
78
feedfcc7
KR
792020-09-10 Kamil Rytarowski <n54@gmx.com>
80
81 * netbsd-nat.h (netbsd_nat::enable_proc_events): Add.
82 * netbsd-nat.c: Include <sys/ptrace.h>.
83 * (netbsd_nat::enable_proc_events): Add.
84
c489f8c6
KR
852020-09-10 Kamil Rytarowski <n54@gmx.com>
86
87 * netbsd-nat.h: Include "gdbsupport/function-view.h".
88 * (netbsd_nat::thread_alive, netbsd_nat::thread_name)
89 (netbsd_nat::for_each_thread): Add.
90 * netbsd-nat.c: Include "gdbsupport/common-defs.h" and
91 "gdbsupport/common-debug.h".
92 * (netbsd_nat::netbsd_thread_lister)
93 (netbsd_nat::thread_alive, netbsd_nat::thread_name)
94 (netbsd_nat::for_each_thread): Add.
95
330662f6
KR
962020-09-10 Kamil Rytarowski <n54@gmx.com>
97
98 * netbsd-nat.h: Include <unistd.h>.
99 * (netbsd_nat::pid_to_exec_file): Add.
100 * netbsd-nat.c: Include <sys/types.h> and <sys/sysctl.h>.
101 * (netbsd_nat::pid_to_exec_file) Add.
102
70b67307
KR
1032020-09-10 Kamil Rytarowski <n54@gmx.com>
104
105 * configure.nat (NATDEPFILES): Add nat/netbsd-nat.o when needed.
106
99cf6da6
KR
1072020-09-10 Kamil Rytarowski <n54@gmx.com>
108
109 * netbsd-nat.h: New file.
110 * netbsd-nat.c: Likewise.
111
1b788fb6
TT
1122020-09-09 Tom Tromey <tromey@adacore.com>
113
114 * ada-lang.c (remove_extra_symbols): Do not increment when
115 removing an element
116
03b0a45f
TT
1172020-09-08 Tom Tromey <tromey@adacore.com>
118
119 * gdb_bfd.c (gdb_bfd_open): Call bfd_fopen when fstat fails.
120
3cae4447
TT
1212020-09-08 Tom Tromey <tromey@adacore.com>
122
123 PR win32/25302:
124 * gdb_bfd.c (gdb_bfd_data): Add "st" parameter.
125 (gdb_bfd_init_data): New function.
126 (gdb_bfd_open, gdb_bfd_ref): Use gdb_bfd_init_data.
127
7f08fd51
TBA
1282020-09-07 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
129
130 * infrun.c (fetch_inferior_event): Use
131 `switch_to_target_no_thread` to switch the target.
132
3e6ff933
TT
1332020-09-06 Tom Tromey <tom@tromey.com>
134
135 * symfile.h (dwarf2_free_objfile): Don't declare.
136
e56798df
AKS
1372020-09-03 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
138
139 * gdb/i386-tdep.c (i386_floatformat_for_type): Added conditions
140 to match 16 byte real/complex type generated by Flang compiler.
141
8f5c6526
TV
1422020-09-03 Tom de Vries <tdevries@suse.de>
143
144 PR breakpoint/26546
145 * dwarf2/read.c (new_symbol): Tag label symbol without DW_AT_low_pc as
146 LOC_OPTIMIZED_OUT instead of LOC_LABEL.
147
c5065df0
SM
1482020-09-02 Simon Marchi <simon.marchi@polymtl.ca>
149
150 * maint.c (index_digits): New function.
151 (struct maint_print_section_data): Remove.
152 (print_bfd_section_info): Remove print_data parameter, add arg
153 and index_digits.
154 (print_objfile_section_info): Likewise.
155 (print_bfd_section_info_maybe_relocated): Likewise (plus
156 objfile).
157 (maintenance_info_sections): Adjust calls.
158
02c6f3f1
TT
1592020-09-02 Tom Tromey <tromey@adacore.com>
160
161 * ada-varobj.c (ada_varobj_get_ptr_number_of_children): Return 0
162 for null pointers.
163 (ada_varobj_adjust_for_child_access): Special-case null pointers.
164
ef5e5b0b
SM
1652020-09-01 Simon Marchi <simon.marchi@polymtl.ca>
166
167 * bcache.h (struct bcache) <insert>: Change type of `added` to
168 pointer to bool.
169 * bcache.c (bcache::insert): Likewise.
170 * gdbtypes.c (check_types_worklist): Adjust.
171 * psymtab.c (add_psymbol_to_bcache): Adjust.
172
973695d6
KB
1732020-08-31 Kevin Buettner <kevinb@redhat.com>
174
175 * corelow.c (unordered_set): Include.
176 (class core_target): Add field 'm_core_unavailable_mappings'.
177 (core_target::build_file_mappings): Print only one warning
178 per inaccessible file. Add unavailable/broken mappings
179 to m_core_unavailable_mappings.
180 (core_target::xfer_partial): Call...
181 (core_target::xfer_memory_via_mappings): New method.
182
264fc0e2
SM
1832020-08-31 Simon Marchi <simon.marchi@polymtl.ca>
184
185 * dwarf2/read.c (struct field_info) <non_public_fields>: Change
186 type to bool.
187
2de01bdb
SM
1882020-08-31 Simon Marchi <simon.marchi@polymtl.ca>
189
190 * dwarf2/read.c (struct field_info): Fix indentation.
191
f3bd50f1
SM
1922020-08-31 Simon Marchi <simon.marchi@efficios.com>
193
194 * frame-unwind.h (frame_prev_register_ftype): Fix adjective
195 ordering in comment.
196 * frame.c (frame_id_eq): Fix indentation.
197
22b9b4b0
SL
1982020-08-31 Scott Linder <scott@scottlinder.com>
199 Simon Marchi <simon.marchi@efficios.com>
200
201 * inline-frame.c (inline_frame_this_id): Remove assert that prevents
202 inline frame ids in outer frame.
203
84154d16
SM
2042020-08-31 Simon Marchi <simon.marchi@efficios.com>
205
206 * frame.h (enum frame_id_stack_status) <FID_STACK_OUTER>: New.
207 * frame.c (fprint_frame_id): Handle FID_STACK_OUTER.
208 (outer_frame_id): Use FID_STACK_OUTER instead of
209 FID_STACK_INVALID.
210 (frame_id_p): Don't check for outer_frame_id.
211
8efaf6b3
SM
2122020-08-31 Simon Marchi <simon.marchi@efficios.com>
213
214 * frame-unwind.c (frame_unwind_got_optimized): Don't set
215 regnum/frame in value. Call allocate_value_lazy.
216 * frame.c (frame_unwind_register_value): Use
217 val_print_not_saved.
218
fe1fe7ea
SM
2192020-08-31 Simon Marchi <simon.marchi@efficios.com>
220
221 * gdbtypes.h (NULL_TYPE): Remove, change all uses to nullptr.
222
f7c7700d
PA
2232020-08-29 Pedro Alves <pedro@palves.net>
224
225 * progspace.c (print_program_space): Use all_inferiors. Switch to
226 the inferior before calling target_pid_to_str.
227
e0814aae
TT
2282020-08-28 Tom Tromey <tom@tromey.com>
229
230 * xcoffread.c (xcoff_end_psymtab): Update comment.
231 * dbxread.c (dbx_end_psymtab): Update comment.
232
626d2320
TV
2332020-08-28 Tom de Vries <tdevries@suse.de>
234
235 PR breakpoint/26544
236 * breakpoint.c (parse_breakpoint_sals): Remove const from struct
237 event_location.
238 (create_breakpoint): Same.
239 (base_breakpoint_decode_location): Same.
240 (bkpt_create_sals_from_location): Same.
241 (bkpt_decode_location): Same.
242 (bkpt_probe_create_sals_from_location): Same.
243 (bkpt_probe_decode_location): Same.
244 (tracepoint_create_sals_from_location): Same.
245 (tracepoint_decode_location): Same.
246 (tracepoint_probe_decode_location): Same.
247 (strace_marker_create_sals_from_location): Same.
248 (strace_marker_decode_location): Same.
249 (create_sals_from_location_default): Same.
250 (decode_location_default): Same.
251 * breakpoint.h (struct breakpoint_ops): Same.
252 (create_breakpoint): Same.
253 * linespec.h (decode_line_full): Same.
254 * linespec.c (decode_line_full): Same. Throw error if
255 result.size () == 0.
256
df631783
PA
2572020-08-27 Pedro Alves <pedro@palves.net>
258
259 PR gdb/26524
260 * breakpoint.c (until_break_fsm) <location_breakpoint,
261 caller_breakpoint>: Delete fields.
262 <breakpoints>: New field.
263 <until_break_fsm>: Adjust to save a breakpoint vector instead of
264 two individual breakpoints.
265 (until_break_fsm::should_stop): Loop over breakpoints in the
266 breakpoint vector.
267 (until_break_fsm::clean_up): Adjust to clear the breakpoints
268 vector.
269 (until_break_command): Handle location expanding into multiple
270 sals.
271
b2b38aa4
PA
2722020-08-27 Pedro Alves <pedro@palves.net>
273
274 PR gdb/26523
275 * inline-frame.c (stopped_by_user_bp_inline_frame): Also consider
276 bp_until breakpoints user-specified locations. Update intro
277 comment.
278
b886559f
SM
2792020-08-27 Simon Marchi <simon.marchi@polymtl.ca>
280
281 * gdb_bfd.h (gdb_bfd_section_iterator, gdb_bfd_section_range,
282 gdb_bfd_sections): New.
283 * maint.c (print_bfd_section_info): Change param type to
284 maint_print_section_data.
285 (print_objfile_section_info): Likewise.
286 (print_bfd_section_info_maybe_relocated): Likewise.
287 (maintenance_info_sections): Use gdb_bfd_sections.
288
4c6e63bf
SV
2892020-08-25 Shahab Vahedi <shahab@synopsys.com>
290
291 * MAINTAINERS: Add ARC target and maintainer.
292
8d7f0635
AK
2932020-08-25 Anton Kolesov <anton.kolesov@synopsys.com>
294
295 * configure.tgt: ARC support for GNU/Linux.
296 * Makefile.in (ALL_TARGET_OBJS): Likewise.
297 * arc-linux-tdep.c: New file.
298 * arc-tdep.h (ARC_STATUS32_L_MASK, ARC_STATUS32_DE_MASK): Declare.
299 * arc-tdep.c (arc_write_pc): Use it.
300
fdd8731b
SV
3012020-08-25 Shahab Vahedi <shahab@synopsys.com>
302
303 * arc-tdep.c (arc_check_for_hardware_loop): New.
304 * arc-tdep.h (gdbarch_tdep): New field has_hw_loops.
305
22459524
SV
3062020-08-25 Shahab Vahedi <shahab@synopsys.com>
307
308 * arc-tdep.h: Include "gdbarch.h".
309
995d3a19
SV
3102020-08-25 Shahab Vahedi <shahab@synopsys.com>
311
312 * arch/arc.h
313 (arc_gdbarch_features): New class to stir the selection of target XML.
314 (arc_create_target_description): Use FEATURES to choose XML target.
315 (arc_lookup_target_description): Use arc_create_target_description
316 to create _new_ target descriptions or return the already created
317 ones if the FEATURES is the same.
318 * arch/arc.c: Implementation of prototypes described above.
319 * gdb/arc-tdep.h (arc_regnum enum): Add more registers.
320 (arc_gdbarch_features_init): Initialize the FEATURES struct.
321 * arc-tdep.c (*_feature_name): Make feature names consistent.
322 (arc_register_feature): A new struct to hold information about
323 registers of a particular target/feature.
324 (arc_check_tdesc_feature): Check if XML provides registers in
325 compliance with ARC_REGISTER_FEATURE structs.
326 (arc_update_acc_reg_names): Add aliases for r58 and r59.
327 (determine_*_reg_feature_set): Which feature name to look for.
328 (arc_gdbarch_features_init): Given MACH and ABFD, initialize FEATURES.
329 (mach_type_to_arc_isa): Convert from a set of binutils machine types
330 to expected ISA enums to be used in arc_gdbarch_features structs.
331 * features/Makefile (FEATURE_XMLFILES): Add new files.
332 * gdb/features/arc/v1-aux.c: New file.
333 * gdb/features/arc/v1-aux.xml: Likewise.
334 * gdb/features/arc/v1-core.c: Likewise.
335 * gdb/features/arc/v1-core.xml: Likewise.
336 * gdb/features/arc/v2-aux.c: Likewise.
337 * gdb/features/arc/v2-aux.xml: Likewise.
338 * gdb/features/arc/v2-core.c: Likewise.
339 * gdb/features/arc/v2-core.xml: Likewise.
340 * NEWS (Changes since GDB 9): Announce obsolence of old feature names.
341
3945d2d7
GM
3422020-08-25 Gaius Mulley <gaiusmod2@gmail.com>
343 Andrew Burgess <andrew.burgess@embecosm.com>
344
345 PR m2/26372
fc5d6901 346 * m2-exp.y (exp): Improve comment for non_empty_arglist case, add
3945d2d7
GM
347 an assert. Remove single element array indexing pattern as the
348 MULTI_SUBSCRIPT support will handle this case too.
349
2677f2d3
SM
3502020-08-24 Simon Marchi <simon.marchi@polymtl.ca>
351
352 * value.h (valprint_check_validity): Move declaration from
353 here...
354 * valprint.h (valprint_check_validity): ... to here.
355
c426fddb
SM
3562020-08-24 Simon Marchi <simon.marchi@efficios.com>
357
358 * debug.h: New file.
359 * debug.c (debug_prefixed_vprintf): New function.
360 * infrun.c (infrun_debug_printf_1): Use debug_prefixed_vprintf.
361 * linux-nat.c (linux_nat_debug_printf_1): Likewise.
362
1eb8556f
SM
3632020-08-24 Simon Marchi <simon.marchi@efficios.com>
364
365 * infrun.h (infrun_debug_printf_1): New function declaration.
366 (infrun_debug_printf): New macro.
367 * infrun.c (infrun_debug_printf_1): Use infrun_debug_printf
368 throughout.
369 (infrun_debug_printf): New function.
370 * breakpoint.c (should_be_inserted): Use infrun_debug_printf.
371 (handle_jit_event): Likewise.
372
b8fff44e
MW
3732020-08-21 Mark Wielaard <mark@klomp.org>
374
375 * ada-lex.l: Extend register warnings diagnostics comment for g++.
376
d19c3068
SM
3772020-08-22 Simon Marchi <simon.marchi@efficios.com>
378
379 * frame.c (enum class frame_id_status): New.
380 (struct frame_info) <this_id::p>: Change type to frame_id_status.
381 (fprintf_frame): Update.
382 (compute_frame_id): Set frame id status to "computing" on entry.
383 Set it back to "not_computed" on failure and to "computed" on
384 success.
385 (get_frame_id): Assert the frame id is not being computed.
386 (create_sentinel_frame): Use frame_id_status::COMPUTED.
387 (create_new_frame): Likewise.
388 (frame_cleanup_after_sniffer): Update assert.
389
b70e516e
SM
3902020-08-20 Simon Marchi <simon.marchi@polymtl.ca>
391
392 * regcache.c (pid_ptid_regcache_map): New type.
393 (target_ptid_regcache_map): Remove.
394 (target_pid_ptid_regcache_map): New type.
395 (regcaches): Change type to target_pid_ptid_regcache_map.
396 (get_thread_arch_aspace_regcache): Update.
397 (regcache_thread_ptid_changed): Update, handle pid-like ptid
398 case.
399 (regcaches_size): Update.
400 (regcache_count): Update.
401 (registers_changed_ptid_target_pid_test): New.
402 (_initialize_regcache): Register new test.
403
cdd9148a
SM
4042020-08-20 Simon Marchi <simon.marchi@polymtl.ca>
405
406 * regcache.c (regcache_count): New.
407 (struct regcache_test_data): New.
408 (regcache_test_data_up): New.
409 (populate_regcaches_for_test): New.
410 (regcaches_test): Remove.
411 (get_thread_arch_aspace_regcache_test): New.
412 (registers_changed_ptid_all_test): New.
413 (registers_changed_ptid_target_test): New.
414 (registers_changed_ptid_target_ptid_test): New.
415 (regcache_thread_ptid_changed): Remove regcache_count lambda.
416 (_initialize_regcache): Register new tests.
417
dd125343
SM
4182020-08-20 Simon Marchi <simon.marchi@polymtl.ca>
419
420 * regcache.c (test_get_thread_arch_aspace_regcache): Rename to...
421 (get_thread_arch_aspace_regcache_and_check): ... this. Remove
422 gdbarch and aspace parameter. Use current inferior's aspace.
423 Validate regcache's arch value.
424 (regcaches_test): Update.
425
3ee93972
SM
4262020-08-20 Simon Marchi <simon.marchi@polymtl.ca>
427
428 * regcache.c (regcaches_test): Call registers_changed.
429
33bf4c5c
TBA
4302020-08-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
431
432 * infrun.c (process_event_stop_test): Fix typo "breapoint".
433
c2fd7fae
AKS
4342020-08-19 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
435
436 * amd64-tdep.c (amd64_skip_prologue): Using symbol table
437 to find the end of prologue for flang compiled binaries.
438 * arm-tdep.c (arm_skip_prologue): Likewise.
439 * i386-tdep.c (i386_skip_prologue): Likewise.
440 * producer.c (producer_is_llvm): New function.
441 (producer_parsing_tests): Added new tests for clang/flang.
442 * producer.h (producer_is_llvm): New declaration.
443
9327494e
SM
4442020-08-18 Simon Marchi <simon.marchi@efficios.com>
445
446 * linux-nat.c (linux_nat_debug_printf): New function.
447 (linux_nat_debug_printf_1): New macro. Use throughout the file.
448
d138725a
AM
4492020-08-18 Aaron Merey <amerey@redhat.com>
450
451 * Makefile.in (DEBUGINFOD_CFLAGS, DEBUGINFOD_LIBS): New variables.
452 (INTERNAL_CFLAGS_BASE): Add DEBUGINFOD_CFLAGS.
453 (CLIBS): Add DEBUGINFOD_LIBS.
454
f9b11e6b
ST
4552020-08-17 Sergei Trofimovich <siarheit@google.com>
456
457 * ia64-linux-nat.c: Include "gdbarch.h" to declare used
458 'gdbarch_num_regs'.
459
3ae7ab99
TT
4602020-08-17 Tom Tromey <tromey@adacore.com>
461
462 * ada-varobj.c (ada_varobj_decode_var): Handle case where
463 ada_get_decoded_value returns NULL.
464
b017825f
TT
4652020-08-17 Tom Tromey <tromey@adacore.com>
466
467 * python/py-inferior.c (infpy_search_memory): Use
468 gdb_py_object_from_ulongest.
469 * python/py-infevents.c (create_inferior_call_event_object)
470 (create_memory_changed_event_object): Use
471 gdb_py_object_from_ulongest.
472 * python/py-linetable.c (ltpy_entry_get_pc): Use
473 gdb_py_object_from_ulongest.
474
7635cf79
SM
4752020-08-17 Simon Marchi <simon.marchi@polymtl.ca>
476
477 * loc.c (class symbol_needs_eval_context): Fix indentation.
478
f54be24b
SM
4792020-08-17 Simon Marchi <simon.marchi@polymtl.ca>
480
481 * dwarf2/loc.c (dwarf2_loc_desc_get_symbol_read_needs): Use
482 bool.
483
53d5a2a5
TV
4842020-08-17 Tom de Vries <tdevries@suse.de>
485
486 PR gdb/26393
487 * gdbtypes.c (dump_dynamic_prop): New function.
488 (recursive_dump_type): Use dump_dynamic_prop for TYPE_CODE_RANGE.
489
547ce8f0
TV
4902020-08-15 Tom de Vries <tdevries@suse.de>
491
492 PR backtrace/26390
493 * stack.c (print_frame_args): Temporarily set the selected
494 frame to FRAME while printing the frame's arguments.
495
6ea815e7
PFC
4962020-08-14 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
497
498 PR breakpoints/26385
499 * ppc-linux-nat.c (ppc_linux_nat_target::low_prepare_to_resume):
500 Always clear watchpoint with PTRACE_SET_DEBUGREG.
501
6e562fa3
PFC
5022020-08-14 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
503
504 * ppc-linux-nat.c (ppc_linux_dreg_interface::detect)
505 (ppc_linux_nat_target::low_prepare_to_resume): Use ptrace () < 0
506 and >= to check return value instead of == -1 and != -1.
507
d369b608
SM
5082020-08-14 Simon Marchi <simon.marchi@polymtl.ca>
509
510 * utils.h (class gdb_argv) <as_array_view>: New method.
511 * utils.c (gdb_argv_as_array_view_test): New.
512 (_initialize_utils): Register selftest.
513 * maint.c (maintenance_selftest): Use the new method.
514
b31488a3
KR
5152020-08-13 Kamil Rytarowski <n54@gmx.com>
516
517 * target.h (supports_dumpcore, dumpcore): New
518 function declarations.
519 * target.c (supports_dumpcore, dumpcore): New
520 functions.
521 * target-delegates.c: Rebuild.
522 * gcore.c (gcore_command): Use target_supports_dumpcore ()
523 and target_dumpcore ().
524
002a3166
AM
5252020-08-13 Aaron Merey <amerey@redhat.com>
526
527 * debuginfod-support.c: Replace global variables with user_data.
528
ece5bc8a
SM
5292020-08-13 Simon Marchi <simon.marchi@polymtl.ca>
530
531 * maint.c (maintenance_selftest): Split args and pass array_view
532 to run_tests.
533
6d8a0a5e
LM
5342020-08-12 Luis Machado <luis.machado@linaro.org>
535
536 * value.c (check_type_length_before_alloc): Use ULONGEST to store a
537 type's length.
538 Use %s and pulongest to print the length.
539
7cf663a9
PA
5402020-08-12 Pedro Alves <palves@redhat.com>
541
542 * NEWS: Move "Multi-target debugging support" item to the
543 "Changes since GDB 9" section.
544
27c7b875
PA
5452020-08-12 Pedro Alves <palves@redhat.com>
546
547 PR gdb/26336
548 * progspace.c (program_space::remove_objfile): Invalidate the
549 frame cache.
550
1796a2a1
TV
5512020-08-11 Tom de Vries <tdevries@suse.de>
552
553 * MAINTAINERS: Mark ms1 as deleted.
554
f8e3fe0d
LM
5552020-08-10 Luis Machado <luis.machado@linaro.org>
556
557 PR gdb/26310
558
559 * aarch64-tdep.c (aarch64_analyze_prologue): Track use of SP/FP and
560 act accordingly.
561 (aarch64_analyze_prologue_test): Add more unit tests to exercise
562 movz/str/stur/stp skipping behavior.
563
cc308722
LM
5642020-08-10 Luis Machado <luis.machado@linaro.org>
565
566 * nat/aarch64-sve-linux-sigcontext.h (SVE_PT_REGS_OFFSET): Use
567 struct user_sve_header instead of struct sve_context.
568
041d9819
SM
5692020-08-09 Simon Marchi <simon.marchi@polymtl.ca>
570
571 * read.h (dwarf2_fetch_die_loc_sect_off,
572 dwarf2_fetch_die_loc_cu_off): Replace function pointer +
573 `void *` parameter with function_view.
574 * read.c (dwarf2_fetch_die_loc_sect_off,
575 dwarf2_fetch_die_loc_cu_off): Likewise.
576 * loc.c (get_frame_pc_for_per_cu_dwarf_call): Remove.
577 (per_cu_dwarf_call): Adjust.
578 (get_frame_address_in_block_wrapper): Remove.
579 (indirect_synthetic_pointer): Adjust.
580 (get_ax_pc): Remove.
581 (dwarf2_compile_expr_to_ax): Adjust.
582
38f8aa06
TV
5832020-08-08 Tom de Vries <tdevries@suse.de>
584
585 PR build/26344
586 * arch/riscv.c (riscv_lookup_target_description): Use an explicit
587 constructor.
588 * regcache.c (get_thread_arch_aspace_regcache): Same.
589
a52b3ae2
TT
5902020-08-07 Tom Tromey <tromey@adacore.com>
591
592 * ravenscar-thread.c
593 (ravenscar_thread_target::set_base_thread_from_ravenscar_task):
594 New method.
595 (ravenscar_thread_target::wait): Check
596 runtime_initialized.
597 (ravenscar_thread_target::prepare_to_store)
598 (ravenscar_thread_target::stopped_by_sw_breakpoint)
599 (ravenscar_thread_target::stopped_by_hw_breakpoint)
600 (ravenscar_thread_target::stopped_by_watchpoint)
601 (ravenscar_thread_target::stopped_data_address)
602 (ravenscar_thread_target::core_of_thread): Use
603 scoped_restore_current_thread and
604 set_base_thread_from_ravenscar_task.
605
0e29517d
TT
6062020-08-07 Tom Tromey <tromey@adacore.com>
607
608 * ravenscar-thread.c (update_thread_list): Set inferior_ptid.
609
592f9bd7
TT
6102020-08-07 Tom Tromey <tromey@adacore.com>
611
612 * ravenscar-thread.c (ravenscar_thread_target::wait): Call
613 update_inferior_ptid before update_thread_list.
614 (temporarily_change_regcache_ptid): New class.
615 (ravenscar_thread_target::fetch_registers)
616 (ravenscar_thread_target::store_registers)
617 (ravenscar_thread_target::prepare_to_store): Use base thread when
618 forwarding operation.
619
39e2018a
TT
6202020-08-07 Tom Tromey <tromey@adacore.com>
621
622 * ravenscar-thread.c (ravenscar_thread_target::resume): Handle
623 "is_pid" case.
624
2080266b
TT
6252020-08-07 Tom Tromey <tromey@adacore.com>
626
627 * ravenscar-thread.c (xfer_partial, enable_btrace, add_thread):
628 New methods.
629 (ravenscar_thread_target::get_thread_base_cpu): Check m_cpu_map
630 first.
631 (ravenscar_thread_target::add_thread): Rename from
632 ravenscar_add_thread.
633 (ravenscar_thread_target::update_thread_list): Use a lambda.
634 (ravenscar_thread_target::xfer_partial): New method.
635
78c02f21
TT
6362020-08-07 Tom Tromey <tromey@adacore.com>
637
638 * ada-lang.h (ada_task_list_iterator_ftype): Now a
639 gdb::function_view.
640 (iterate_over_live_ada_tasks): Change type of argument.
641 * ada-tasks.c (iterate_over_live_ada_tasks): Change type
642 of argument.
643
d5d833af
TT
6442020-08-07 Tom Tromey <tromey@adacore.com>
645
646 * ravenscar-thread.c (ravenscar_thread_target) <extra_thread_info>:
647 Remove.
648 (ravenscar_thread_target::extra_thread_info): Remove.
649 (ravenscar_thread_target::pid_to_str): Mention Ravenscar in result;
650 defer to target beneath for non-Ravenscar threads.
651
a8ac85bb
TT
6522020-08-07 Tom Tromey <tromey@adacore.com>
653
654 * ravenscar-thread.c (ravenscar_thread_target) <get_base_cpu,
655 get_base_thread_from_ravenscar_task>: Now methods.
656 <m_cpu_map>: New member.
657 (ravenscar_thread_target::get_thread_base_cpu): Rename from
658 ravenscar_get_thread_base_cpu. Check m_cpu_map.
659 (ravenscar_thread_target::task_is_currently_active): Update.
660 (ravenscar_thread_target::get_base_thread_from_ravenscar_task):
661 Now a method.
662 (ravenscar_thread_target::add_active_thread): Put initial thread
663 into the m_cpu_map.
664
550ab58d
TT
6652020-08-07 Tom Tromey <tromey@adacore.com>
666
667 * ravenscar-thread.c (ravenscar_thread_target::wait): Return
668 event_ptid.
669
e9546579
TT
6702020-08-07 Tom Tromey <tromey@adacore.com>
671
672 * ravenscar-thread.c (ravenscar_thread_target::wait): Check
673 runtime_initialized.
674
3d4470e5
TT
6752020-08-07 Tom Tromey <tromey@adacore.com>
676
677 * ravenscar-thread.c (ravenscar_thread_target): Don't call
678 add_active_thread.
679 (ravenscar_thread_target::add_active_thread): Now public.
680 (ravenscar_inferior_created): Call add_active_thread after pushing
681 the target.
682
888bdb2b
SM
6832020-08-07 Simon Marchi <simon.marchi@polymtl.ca>
684
685 * regcache.c (ptid_regcache_map): New type.
686 (target_ptid_regcache_map): New type.
687 (regcaches): Change type to target_ptid_regcache_map.
688 (get_thread_arch_aspace_regcache): Update to regcaches' new
689 type.
690 (regcache_thread_ptid_changed): Likewise.
691 (registers_changed_ptid): Likewise.
692 (regcaches_size): Likewise.
693 (regcaches_test): Update.
694 (regcache_thread_ptid_changed): Update.
695 * regcache.h (regcache_up): New type.
696 * gdbsupport/ptid.h (hash_ptid): New struct.
697
b161a60d
SM
6982020-08-07 Simon Marchi <simon.marchi@efficios.com>
699
700 * observable.h (thread_ptid_changed): Add parameter
701 `process_stratum_target *`.
702 * infrun.c (infrun_thread_ptid_changed): Add parameter
703 `process_stratum_target *` and use it.
704 (selftests): New namespace.
705 (infrun_thread_ptid_changed): New function.
706 (_initialize_infrun): Register selftest.
707 * regcache.c (regcache_thread_ptid_changed): Add parameter
708 `process_stratum_target *` and use it.
709 (regcache_thread_ptid_changed): New function.
710 (_initialize_regcache): Register selftest.
711 * thread.c (thread_change_ptid): Pass target to
712 thread_ptid_changed observable.
713
d2854d8d
CT
7142020-08-06 Caroline Tice <cmtice@google.com>
715
fe4c3d43
SM
716 * dwarf2/read.c (struct dwo_file): Update comment on 'sections' field.
717 (struct dwp_sections): Update field comments. Add loclists and
718 rnglists fields.
719 (struct virtual_v2_dwo_sections): Rename struct to
720 'virtual_v2_or_v5_dwo_sections'; update comments at top of struct; add
721 size & offset fields for loclists and rnglists.
722 (struct dwp_hash_table): Add a 'v5' struct field to the union section.
723 (create_debug_type_hash_table): Add 'DW_UT_split_type' to the check for
724 skipping dummy type units.
725 (create_dwp_hash_table): Update the large comment above the function to
726 discuss Version 5 DWP files as well, with references. Update all the
727 version checks in the function to check for version 5 as well. Add new
728 section at the end to create dwp hash table for version 5.
729 (create_dwp_v2_section): Rename function to
730 'create_dwp_v2_or_v5_section'. Update function comment appropriately.
731 Add V5 to error message text.
732 (create_dwo_unit_in_dwp_v2): Change calls to create_dwp_v2_section
733 into calls to create_dwp_v2_or_v5_section.
734 (create_dwo_unit_in_dwp_v5): New function.
735 (lookup_dwo_unit_in_dwp): Update conditional statement to explicitly
736 check for version2; add else clause to handle version 5.
737 (open_and_init_dwo_file): Add code to check dwarf version & only call
738 create_debug_types_hash_table (with sections.types) if version is not 5;
739 else call create_debug_type_hash_table, with sections.info.
740 (dwarf2_locate_v2_dwp_sections): Update function comment to mention
741 version 5.
742 (dwarf2_locate_v5_dwp_sections): New function.
743 (open_and_init_dwp_file): Add else-if clause for version 5 to call
744 bfd_map_over_sections with dwarf2_locate_v5_dwp_sections.
d2854d8d 745
159ed7d9
SM
7462020-08-06 Simon Marchi <simon.marchi@efficios.com>
747
748 * regcache.h (class regcache): Remove friend
749 registers_changed_ptid.
750 <regcache_thread_ptid_changed>: Remove.
751 <regcaches>: Remove.
752 * regcache.c (regcache::regcaches): Rename to...
753 (regcaches): ... this. Make static.
754 (get_thread_arch_aspace_regcache): Update.
755 (regcache::regcache_thread_ptid_changed): Rename to...
756 (regcache_thread_ptid_changed): ... this. Update.
757 (class regcache_access): Remove.
758 (regcaches_test): Update.
759 (_initialize_regcache): Update.
760 * sparc64-tdep.c, dwarf2/index-write.c, record-btrace.c: Include
761 <forward_list>.
762
174981ae
SM
7632020-08-06 Simon Marchi <simon.marchi@efficios.com>
764
765 * regcache.h (class regcache) <current_regcache>: Rename to...
766 <regcaches>: ... this. Move doc here.
767 * regcache.c (regcache::current_regcache) Rename to...
768 (regcache::regcaches): ... this. Move doc to header.
769 (get_thread_arch_aspace_regcache): Update.
770 (regcache::regcache_thread_ptid_changed): Update.
771 (registers_changed_ptid): Update.
772 (class regcache_access) <current_regcache_size>: Rename to...
773 <regcaches_size>: ... this.
774 (current_regcache_test): Rename to...
775 (regcaches_test): ... this.
776 (_initialize_regcache): Update.
777
ed908db6
VC
7782020-08-06 Victor Collod <vcollod@nvidia.com>
779
780 * amd64-tdep.c (amd64_analyze_prologue): Fix incorrect comment.
781
b5582ab7
KB
7822020-08-05 Kevin Buettner <kevinb@redhat.com>
783
784 * corelow.c (core_target::build_file_mappings): Don't output
785 null pathname in warning.
786
ea946b86
SM
7872020-08-05 Simon Marchi <simon.marchi@polymtl.ca>
788
789 * gdb.dwarf2/clztest.exp, gdb.dwarf2/dw2-common-block.exp,
790 gdb.dwarf2/dw2-dup-frame.exp, gdb.dwarf2/dw2-reg-undefined.exp,
791 gdb.dwarf2/dw2-single-line-discriminators.exp,
792 dw2-undefined-ret-addr.exp: Pass nopie to compilation options.
793
57d02173
TT
7942020-08-05 Tom Tromey <tromey@adacore.com>
795
796 PR rust/26197:
797 * dwarf2/read.c (alloc_rust_variant): Handle univariant case.
798 (quirk_rust_enum): Call alloc_rust_variant for univariant case.
799 Fix off-by-one and type size errors in ordinary case.
800
5555c86d
TV
8012020-08-05 Tom de Vries <tdevries@suse.de>
802
803 * gdbtypes.c (type_not_allocated, type_not_associated): Use
804 "prop->const_val () == 0" instead of "prop->const_val () != 0".
805
97916bfe
SM
8062020-08-04 Simon Marchi <simon.marchi@efficios.com>
807
808 * frame.h (frame_id_p): Return bool.
809 (frame_id_artificial_p): Return bool.
810 (frame_id_eq): Return bool.
811 (has_stack_frames): Return bool.
812 (get_selected_frame): Fix typo in comment.
813 (get_frame_pc_if_available): Return bool.
814 (get_frame_address_in_block_if_available): Return bool.
815 (get_frame_func_if_available): Return bool.
816 (read_frame_register_unsigned): Return bool.
817 (get_frame_register_bytes): Return bool.
818 (safe_frame_unwind_memory): Return bool.
819 (deprecated_frame_register_read): Return bool.
820 (frame_unwinder_is): Return bool.
821 * frame.c (struct frame_info) <prev_arch::p>: Change type to
822 bool.
823 <this_id::p>: Likewise.
824 <prev_p>: Likewise.
825 (frame_stash_add): Return bool.
826 (get_frame_id): Use bool.
827 (frame_id_build_special) Use bool.
828 (frame_id_build_unavailable_stack): Use bool.
829 (frame_id_build): Use bool.
830 (frame_id_p): Return bool, use true/false instead of 1/0.
831 (frame_id_artificial_p): Likewise.
832 (frame_id_eq): Likewise.
833 (frame_id_inner): Likewise.
834 (get_frame_func_if_available): Likewise.
835 (read_frame_register_unsigned): Likewise.
836 (deprecated_frame_register_read): Likewise.
837 (get_frame_register_bytes): Likewise.
838 (has_stack_frames): Likewise.
839 (inside_main_func): Likewise.
840 (inside_entry_func): Likewise.
841 (get_frame_pc_if_available): Likewise.
842 (get_frame_address_in_block_if_available): Likewise.
843 (frame_unwinder_is): Likewise.
844 (safe_frame_unwind_memory): Likewise.
845 (frame_unwind_arch): Likewise.
846
fedfee88
SM
8472020-08-04 Simon Marchi <simon.marchi@efficios.com>
848
849 * frame.c (frame_info) <prev_func> <p>: Rename to status, change
850 type to cached_copy_status.
851 (fprintf_frame): Adjust.
852 (get_frame_func_if_available): Adjust.
853 (frame_cleanup_after_sniffer): Adjust.
854
6cfa9b59
MW
8552020-08-04 Mark Wielaard <mark@klomp.org>
856
857 * MAINTAINERS (Write After Approval): Update email address.
858
66d6346b
SM
8592020-08-04 Simon Marchi <simon.marchi@polymtl.ca>
860
861 * gdbtypes.h (TYPE_DYN_PROP_ADDR): Remove, replace uses with
862 dynamic_prop::const_val.
863
8a6d5e35
SM
8642020-08-04 Simon Marchi <simon.marchi@polymtl.ca>
865
866 * gdbtypes.h (TYPE_DYN_PROP_KIND): Remove, replace uses with
867 dynamic_prop::kind.
868
51d6067d
SM
8692020-08-04 Simon Marchi <simon.marchi@polymtl.ca>
870
871 * gdbtypes.h (TYPE_DYN_PROP_BATON): Remove.
872
b26e2ae7
JM
8732020-08-04 Jose E. Marchesi <jose.marchesi@oracle.com>
874
875 * configure.tgt: Set gdb_sim for bpf-*-* targets.
876
39791af2
JM
8772020-08-04 Weimin Pan <weimin.pan@oracle.com>
878 Jose E. Marchesi <jose.marchesi@oracle.com>
879
880 * configure.tgt: Add entry for bpf-*-*.
881 * Makefile.in (ALL_TARGET_OBS): Add bpf-tdep.o
882 (ALLDEPFILES): Add bpf-tdep.c.
883 * bpf-tdep.c: New file.
884 * MAINTAINERS: Add bpf target and maintainer.
885 * NEWS: Mention the support for the new target.
886
521894aa
TV
8872020-08-04 Tom de Vries <tdevries@suse.de>
888
889 PR symtab/23270
890 * dwarf2/read.c (find_partial_die): Change internal error into Dwarf
891 Error.
892
5d6356e9
JB
8932020-08-03 John Baldwin <jhb@FreeBSD.org>
894
895 * syscalls/freebsd.xml: Regenerate.
896
0cf82b81
JB
8972020-08-03 John Baldwin <jhb@FreeBSD.org>
898
899 * syscalls/update-freebsd.sh: Fix usage and year range.
900
8f34b746
TV
9012020-08-03 Tom de Vries <tdevries@suse.de>
902
903 PR symtab/26333
904 * dwarf2/read.c (dwarf_decode_lines_1): Ignore
905 DW_LNE_lo_user/DW_LNE_hi_user range.
906
5e500d33
SM
9072020-07-30 Simon Marchi <simon.marchi@polymtl.ca>
908
909 PR ada/26318
910 * ada-lang.c (ada_modulus): Return 0 if property is not of const
911 kind.
912
78319c15
TBA
9132020-07-30 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
914
915 * breakpoint.c (set_breakpoint_condition): Do minor refactoring.
916
4c55e970
TBA
9172020-07-30 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
918
919 * breakpoint.c (set_breakpoint_condition): Update the condition
920 expressions after checking that the input condition string parses
921 successfully and does not contain junk at the end.
922
1e620590
TBA
9232020-07-30 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
924
925 * breakpoint.c (set_breakpoint_condition): Update the
926 condition string after parsing the new condition successfully.
927
c8693053
RO
9282020-07-30 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
929
930 * proc-api.c (_STRUCTURED_PROC): Don't define.
931 * proc-events.c: Likewise.
932 * proc-flags.c: Likewise.
933 * proc-why.c: Likewise.
934 * procfs.c: Likewise.
935
936 * Makefile.in (INTERNAL_CPPFLAGS): Add LARGEFILE_CPPFLAGS.
937 * configure, config.in: Regenerate.
938
5a99adb8
TV
9392020-07-30 Tom de Vries <tdevries@suse.de>
940
941 PR build/26320
942 * ui-style.h (struct ui_file_style::color): Wrap m_value and
943 m_red/m_green/m_blue in a union.
944
8ba83e91
TV
9452020-07-29 Tom de Vries <tdevries@suse.de>
946
947 PR tdep/26280
948 * s390-tdep.c (s390_displaced_step_fixup): Fix Wmaybe-uninitialized.
949
f75a0693
AB
9502020-07-28 Tom Tromey <tromey@adacore.com>
951
952 PR symtab/26270:
953 * symtab.h (find_pc_partial_function_sym): Declare.
954 * cli/cli-cmds.c (disassemble_command): Use
955 find_pc_partial_function_sym. Check asm_demangle.
956 * blockframe.c (cache_pc_function_sym): New global.
957 (cache_pc_function_name): Remove.
958 (clear_pc_function_cache): Update.
959 (find_pc_partial_function_sym): New function, from
960 find_pc_partial_function.
961 (find_pc_partial_function): Rewrite using
962 find_pc_partial_function_sym.
963
16f3242c
TT
9642020-07-28 Tom Tromey <tromey@adacore.com>
965
966 * cli/cli-cmds.c (_initialize_cli_cmds): Rearrange "disassemble"
967 help. Add usage.
968
4888741a
TT
9692020-07-28 Tom Tromey <tromey@adacore.com>
970
971 * dwarf2/expr.c (dwarf_expr_context::execute_stack_op)
972 <DW_OP_GNU_variable_value>: Cast to address type.
973
4d46f402
KR
9742020-07-28 Kamil Rytarowski <n54@gmx.com>
975
976 * nbsd-nat.h (nbsd_nat_target::xfer_partial): New declaration.
977 * nbsd-nat.c (nbsd_nat_target::xfer_partial): New function.
978 * nbsd-tdep.c (nbsd_gdbarch_data_handle, struct nbsd_gdbarch_data)
979 (init_nbsd_gdbarch_data, get_nbsd_gdbarch_data)
980 (nbsd_get_siginfo_type): New.
981 (nbsd_init_abi): Install gdbarch "get_siginfo_type" method.
982 (_initialize_nbsd_tdep): New.
983
d70f978b
L
9842020-07-28 H.J. Lu <hongjiu.lu@intel.com>
985
986 PR binutils/26301
987 * configure: Regenerated.
988
377170fa
L
9892020-07-28 H.J. Lu <hongjiu.lu@intel.com>
990
991 PR binutils/26301
992 * configure: Regenerated.
993
43d5901d
AB
9942020-07-28 Andrew Burgess <andrew.burgess@embecosm.com>
995
996 * python/py-frame.c: Remove 'user-regs.h' include.
997 (frapy_read_register): Rewrite to make use of
998 gdbpy_parse_register_id.
999 * python/py-registers.c (gdbpy_parse_register_id): New function,
1000 moved here from python/py-unwind.c. Updated the return type, and
1001 also accepts register descriptor objects.
1002 * python/py-unwind.c: Remove 'user-regs.h' include.
1003 (pyuw_parse_register_id): Moved to python/py-registers.c.
1004 (unwind_infopy_add_saved_register): Update to use
1005 gdbpy_parse_register_id.
1006 (pending_framepy_read_register): Likewise.
1007 * python/python-internal.h (gdbpy_parse_register_id): Declare.
1008
14fa8fb3
AB
10092020-07-28 Andrew Burgess <andrew.burgess@embecosm.com>
1010
1011 * python/py-registers.c: Add 'user-regs.h' include.
1012 (register_descriptor_iter_find): New function.
1013 (register_descriptor_iterator_object_methods): New static global
1014 methods array.
1015 (register_descriptor_iterator_object_type): Add pointer to methods
1016 array.
1017
ddce1758
JB
10182020-07-27 John Baldwin <jhb@FreeBSD.org>
1019
1020 * fbsd-nat.h: Include <osreldate.h>. Define USE_SIGTRAP_SIGINFO
1021 for all architectures on FreeBSD 11.3 and later.
1022
a4089f52
TT
10232020-07-27 Tom Tromey <tromey@adacore.com>
1024
1025 * gcore.h (load_corefile): Don't declare.
1026
95420d30
TV
10272020-07-27 Tom de Vries <tdevries@suse.de>
1028
1029 * configure.ac: Fix sys/sockets.h -> sys/socket.h typo.
1030 * config.in: Regenerate.
1031 * configure: Regenerate.
1032
05a6b8c2
EZ
10332020-07-26 Eli Zaretskii <eliz@gnu.org>
1034
1035 * configure.ac (AC_CHECK_HEADERS): Check for sys/socket.h and
1036 ws2tcpip.h. When checking whether socklen_t type is defined, use
1037 ws2tcpip.h if it is available and sys/socket.h isn't.
1038 * configure: Regenerate.
1039 * config.in: Regenerate.
1040
e79eb02f
AB
10412020-07-25 Andrew Burgess <andrew.burgess@embecosm.com>
1042
1043 PR fortran/23051
1044 PR fortran/26139
1045 * valops.c (value_ind): Pass address to
1046 readjust_indirect_value_type.
1047 * value.c (readjust_indirect_value_type): Make parameter
1048 non-const, and add extra address parameter. Resolve original type
1049 before using it.
1050 * value.h (readjust_indirect_value_type): Update function
1051 signature and comment.
1052
876518dd
TV
10532020-07-25 Tom de Vries <tdevries@suse.de>
1054
1055 PR symtab/26243
1056 * dwarf2/read.c (lnp_state_machine::record_line): Ignore zero line
1057 entries.
1058
f6720b1c
AM
10592020-07-24 Aaron Merey <amerey@redhat.com>
1060
1061 * Makefile.in: Replace LIBDEBUGINFOD with DEBUGINFOD_LIBS.
1062 * configure: Rebuild.
1063
513487e1
KB
10642020-07-23 Kevin Buettner <kevinb@redhat.com>
1065
1066 PR corefiles/26294
1067 * corelow.c (_initialize_corelow): Add period to help text
1068 for "maintenance print core-file-backed-mappings".
1069
e7bc9db8
PA
10702020-07-23 Pedro Alves <pedro@palves.net>
1071
1072 * frame-unwind.c (frame_unwind_try_unwinder): On exception, don't
1073 touch THIS_CACHE/THIS_FRAME if the frame cache was cleared
1074 meanwhile.
1075 * frame.c (frame_cache_generation, get_frame_cache_generation):
1076 New.
1077 (reinit_frame_cache): Increment FRAME_CACHE_GENERATION.
1078 (get_prev_frame_if_no_cycle): On exception, don't touch
1079 PREV_FRAME/THIS_FRAME if the frame cache was cleared meanwhile.
1080 * frame.h (get_frame_cache_generation): Declare.
1081
90fcc466
TV
10822020-07-23 Tom de Vries <tdevries@suse.de>
1083
1084 PR tui/26282
1085 * tui/tui-winsource.h (struct tui_source_windows::tui_source_windows):
1086 New default constructor.
1087
78344df7
AB
10882020-07-23 Andrew Burgess <andrew.burgess@embecosm.com>
1089
1090 * disasm.c (do_mixed_source_and_assembly_deprecated): Don't
1091 exclude non-statement entries.
1092
b089853a
KB
10932020-07-22 Kevin Buettner <kevinb@redhat.com>
1094
1095 * NEWS (New commands): Mention new command
1096 "maintenance print core-file-backed-mappings".
1097
09c2f5d4
KB
10982020-07-22 Kevin Buettner <kevinb@redhat.com>
1099
1100 * corelow.c (gdbcmd.h): Include.
1101 (core_target::info_proc_mappings): New method.
1102 (get_current_core_target): New function.
1103 (maintenance_print_core_file_backed_mappings): New function.
1104 (_initialize_corelow): Add core-file-backed-mappings to
1105 "maint print" commands.
1106
9c5ec5c2 11072020-07-22 Kevin Buettner <kevinb@redhat.com>
fe4c3d43 1108
9c5ec5c2
KB
1109 * linux-tdep.c (dump_note_entry_p): New function.
1110 (linux_dump_mapping_p_ftype): New typedef.
1111 (linux_find_memory_regions_full): Add new parameter,
1112 should_dump_mapping_p.
1113 (linux_find_memory_regions): Adjust call to
1114 linux_find_memory_regions_full.
1115 (linux_make_mappings_core_file_notes): Use dump_note_entry_p in
1116 call to linux_find_memory_regions_full.
1117
db082f59
KB
11182020-07-22 Kevin Buettner <kevinb@redhat.com>
1119
1120 * corelow.c (solist.h, unordered_map): Include.
1121 (class core_target): Add field m_core_file_mappings and
1122 method build_file_mappings.
1123 (core_target::core_target): Call build_file_mappings.
1124 (core_target::~core_target): Free memory associated with
1125 m_core_file_mappings.
1126 (core_target::build_file_mappings): New method.
1127 (core_target::xfer_partial): Use m_core_file_mappings
1128 for memory transfers.
1129 * linux-tdep.c (linux_read_core_file_mappings): New
1130 function.
1131 (linux_core_info_proc_mappings): Rewrite to use
1132 linux_read_core_file_mappings.
1133 (linux_init_abi): Register linux_read_core_file_mappings.
1134
7e183d27
KB
11352020-07-22 Kevin Buettner <kevinb@redhat.com>
1136
1137 * arch-utils.c (default_read_core_file_mappings): New function.
1138 * arch-utils.c (default_read_core_file_mappings): Declare.
1139 * gdbarch.sh (read_core_file_mappings): New gdbarch method.
1140 * gdbarch.h, gdbarch.c: Regenerate.
1141
2735d421
KB
11422020-07-22 Kevin Buettner <kevinb@redhat.com>
1143
1144 PR corefiles/25631
1145 * corelow.c (core_target:xfer_partial): Revise
1146 TARGET_OBJECT_MEMORY case to consider non-SEC_HAS_CONTENTS
1147 case after first checking the stratum beneath the core
1148 target.
1149 (has_all_memory): Return true.
1150 * target.c (raw_memory_xfer_partial): Revise comment
1151 regarding use of has_all_memory.
1152
e56cb451
KB
11532020-07-22 Kevin Buettner <kevinb@redhat.com>
1154
1155 * exec.h (section_table_xfer_memory): Revise declaration,
1156 replacing section name parameter with an optional callback
1157 predicate.
1158 * exec.c (section_table_xfer_memory): Likewise.
1159 * bfd-target.c, exec.c, target.c, corelow.c: Adjust all callers
1160 of section_table_xfer_memory.
1161
32fa152e
TT
11622020-07-22 Tom Tromey <tromey@adacore.com>
1163
1164 * mi/mi-cmd-stack.c (list_args_or_locals): Use
1165 lookup_symbol_search_name.
1166
a67a1c41
AB
11672020-07-22 Andrew Burgess <andrew.burgess@embecosm.com>
1168
1169 * python/py-registers.c (gdbpy_register_object_data_init): Remove
1170 redundant local variable.
1171 (gdbpy_get_register_descriptor): Extract descriptor vector as a
1172 reference, not pointer, update code accordingly.
1173
a7b4ff4f
SM
11742020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
1175 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1176
1177 * objfiles.h (struct objfile) <skip_jit_symbol_lookup>: New field.
1178 * jit.c (jit_breakpoint_re_set_internal): Use the
1179 `skip_jit_symbol_lookup` field.
1180
2340e834
SM
11812020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
1182 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1183
1184 * jit.c (jit_read_descriptor): Define the descriptor address once,
1185 use twice.
1186 (jit_breakpoint_deleted): Move the declaration of the loop variable
1187 `iter` into the loop header.
1188 (jit_breakpoint_re_set_internal): Move the declaration of the local
1189 variable `objf_data` to the first point of definition.
1190 (jit_event_handler): Move the declaration of local variables
1191 `code_entry`, `entry_addr`, and `objf` to their first point of use.
1192 Rename `objf` to `jited`.
1193
c1072906
SM
11942020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
1195
1196 * jit.h (struct jiter_objfile_data) <jiter_objfile_data, objfile>:
1197 Remove.
1198 * jit.c (get_jiter_objfile_data): Update.
1199
c8474dc3
TBA
12002020-07-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1201 Simon Marchi <simon.marchi@polymtl.ca>
1202
1203 * jit.c (struct jit_program_space_data): Remove.
1204 (jit_program_space_key): Remove.
1205 (jiter_objfile_data::~jiter_objfile_data): Remove program space
1206 stuff.
1207 (get_jit_program_space_data): Remove.
1208 (jit_breakpoint_deleted): Iterate on all of the program space's
1209 objfiles.
1210 (jit_inferior_init): Likewise.
1211 (jit_breakpoint_re_set_internal): Likewise. Also change return
1212 type to void.
1213 (jit_breakpoint_re_set): Pass current_program_space to
1214 jit_breakpoint_re_set_internal.
1215
77208eb7
SM
12162020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
1217
1218 * jit.h (struct jiter_objfile_data) <cached_code_address,
1219 jit_breakpoint>: Move to here from ...
1220 * jit.c (jit_program_space_data): ... here.
1221 (jiter_objfile_data::~jiter_objfile_data): Update.
1222 (jit_breakpoint_deleted): Update.
1223 (jit_breakpoint_re_set_internal): Update.
1224
8c1c720f
SM
12252020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
1226
1227 * jit.c (jiter_objfile_data::~jiter_objfile_data): Remove some
1228 checks.
1229 (jit_read_descriptor): Remove NULL check.
1230 (jit_event_handler): Add an assertion.
1231
0e74a041
SM
12322020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
1233
1234 * jit.h (struct jit_objfile_data): Split into...
1235 (struct jiter_objfile_data): ... this ...
1236 (struct jited_objfile_data): ... and this.
1237 * objfiles.h (struct objfile) <jit_data>: Remove.
1238 <jiter_data, jited_data>: New fields.
1239 * jit.c (jit_objfile_data::~jit_objfile_data): Rename to ...
1240 (jiter_objfile_data::~jiter_objfile_data): ... this.
1241 (get_jit_objfile_data): Rename to ...
1242 (get_jiter_objfile_data): ... this.
1243 (add_objfile_entry): Update.
1244 (jit_read_descriptor): Use get_jiter_objfile_data.
1245 (jit_find_objf_with_entry_addr): Use objfile's jited_data field.
1246 (jit_breakpoint_re_set_internal): Use get_jiter_objfile_data.
1247 (jit_inferior_exit_hook): Use objfile's jited_data field.
1248
238b5c9f
SM
12492020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
1250
1251 * jit.h: Forward-declare `struct minimal_symbol`.
1252 (struct jit_objfile_data): Migrate to here from jit.c; also add a
1253 constructor, destructor, and an objfile* field.
1254 * jit.c (jit_objfile_data): Remove.
1255 (struct jit_objfile_data): Migrate from here to jit.h.
1256 (jit_objfile_data::~jit_objfile_data): New destructor
1257 implementation with code moved from free_objfile_data.
1258 (free_objfile_data): Delete.
1259 (get_jit_objfile_data): Update to use the jit_data field of objfile.
1260 (jit_find_objf_with_entry_addr): Ditto.
1261 (jit_inferior_exit_hook): Ditto.
1262 (_initialize_jit): Remove the call to
1263 register_objfile_data_with_cleanup.
1264 * objfiles.h (struct objfile) <jit_data>: New field.
1265
fe053b9e
TBA
12662020-07-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1267
1268 * jit.h: Forward-declare `struct objfile`.
1269 (jit_event_handler): Add a second parameter, the JITer objfile.
1270 * jit.c (jit_read_descriptor): Change the signature to take the
1271 JITer objfile as an argument instead of the jit_program_space_data.
1272 (jit_inferior_init): Update the call to jit_read_descriptor.
1273 (jit_event_handler): Use the new JITer objfile argument when calling
1274 jit_read_descriptor.
1275 * breakpoint.c (handle_jit_event): Update the call to
1276 jit_event_handler to pass the JITer objfile.
1277
4cec0c66
JB
12782020-07-21 John Baldwin <jhb@FreeBSD.org>
1279
1280 * gdbarch.c: Regenerate.
1281 * gdbarch.h: Regenerate.
1282 * gdbarch.sh (handle_segmentation_fault): Remove method.
1283 * infrun.c (handle_segmentation_fault): Remove.
1284 (print_signal_received_reason): Remove call to
1285 handle_segmentation_fault.
1286
0e42f66a
JB
12872020-07-21 John Baldwin <jhb@FreeBSD.org>
1288
1289 * sparc64-linux-tdep.c (sparc64_linux_handle_segmentation_fault):
1290 Rename to sparc64_linux_report_signal_info and add siggnal
1291 argument.
1292 (sparc64_linux_init_abi): Use sparc64_linux_report_signal_info
1293 instead of sparc64_linux_handle_segmentation_fault.
1294
77bdfeb2
JB
12952020-07-21 John Baldwin <jhb@FreeBSD.org>
1296
1297 * amd64-linux-tdep.c (amd64_linux_init_abi_common): Use
1298 i386_linux_report_signal_info instead of
1299 i386_linux_handle_segmentation_fault.
1300 * i386-linux-tdep.c (i386_linux_handle_segmentation_fault): Rename
1301 to i386_linux_report_signal_info and add siggnal argument.
1302 (i386_linux_init_abi): Use i386_linux_report_signal_info instead
1303 of i386_linux_handle_segmentation_fault.
1304 * i386-linux-tdep.h (i386_linux_handle_segmentation_fault): Rename
1305 to i386_linux_report_signal_info and add siggnal argument.
1306
ad97bfc5
JB
13072020-07-21 John Baldwin <jhb@FreeBSD.org>
1308
1309 * corelow.c (core_target_open): Invoke gdbarch report_signal_info
1310 hook if present.
1311
272bb05c
JB
13122020-07-21 John Baldwin <jhb@FreeBSD.org>
1313
1314 * gdbarch.c: Regenerate.
1315 * gdbarch.h: Regenerate.
1316 * gdbarch.sh (report_signal_info): New method.
1317 * infrun.c (print_signal_received_reason): Invoke gdbarch
1318 report_signal_info hook if present.
1319
baf8791e
AB
13202020-07-21 Andrew Burgess <andrew.burgess@embecosm.com>
1321
1322 * python/py-registers.c : Add 'unordered_map' include.
1323 (gdbpy_new_reggroup): Renamed to...
1324 (gdbpy_get_reggroup): ...this. Update to only create register
1325 group descriptors when needed.
1326 (gdbpy_reggroup_iter_next): Update.
1327
f7306dac
AB
13282020-07-21 Andrew Burgess <andrew.burgess@embecosm.com>
1329
1330 * python/py-registers.c (gdbpy_register_object_data): New static
1331 global.
1332 (gdbpy_register_object_data_init): New function.
1333 (gdbpy_new_register_descriptor): Renamed to...
1334 (gdbpy_get_register_descriptor): ...this, and update to reuse
1335 existing register descriptors where possible.
1336 (gdbpy_register_descriptor_iter_next): Update.
1337 (gdbpy_initialize_registers): Register new gdbarch data.
1338
05c309a8
SM
13392020-07-21 Simon Marchi <simon.marchi@efficios.com>
1340
1341 * linux-nat.c (stopped_pids): Make static.
1342
d1fd641e
SM
13432020-07-21 Simon Marchi <simon.marchi@polymtl.ca>
1344
1345 PR ada/26235
1346 * gdbtypes.c (ada_discrete_type_low_bound,
1347 ada_discrete_type_high_bound): Handle undefined bounds.
1348
1de14d77
KR
13492020-07-21 Kamil Rytarowski <n54@gmx.com>
1350
1351 * nbsd-nat.h (nbsd_nat_target::supports_multi_process): New
1352 declaration.
1353 * nbsd-nat.c (nbsd_nat_target::supports_multi_process): New
1354 function.
1355
ed810cc7
JB
13562020-07-20 John Baldwin <jhb@FreeBSD.org>
1357
1358 * fbsd-tdep.c (fbsd_skip_solib_resolver): New function.
1359 (fbsd_init_abi): Install gdbarch "skip_solib_resolver" method.
1360 * fbsd-tdep.h (fbsd_skip_solib_resolver): New prototype.
1361 * mips-fbsd-tdep.c (mips_fbsd_skip_solib_resolver): New function.
1362 (mips_fbsd_init_abi): Install gdbarch "skip_solib_resolver"
1363 method.
1364
ae5369e7
LC
13652020-07-20 Ludovic Courtès <ludo@gnu.org>
1366
1367 * guile/scm-math.c (vlscm_integer_fits_p): Use 'uintmax_t'
1368 and 'intmax_t' instead of 'scm_t_uintmax' and 'scm_t_intmax',
1369 which are deprecated in Guile 3.0.
1370 * configure.ac (try_guile_versions): Add "guile-3.0".
1371 * configure (try_guile_versions): Regenerate.
1372 * NEWS: Update entry.
1373
68cf161c
LC
13742020-07-20 Ludovic Courtès <ludo@gnu.org>
1375 Doug Evans <dje@google.com>
1376
1377 PR gdb/21104
1378 * guile/scm-ports.c (USING_GUILE_BEFORE_2_2): New macro.
1379 (ioscm_memory_port)[read_buf_size, write_buf_size]: Wrap in #if
1380 USING_GUILE_BEFORE_2_2.
1381 (stdio_port_desc, memory_port_desc) [!USING_GUILE_BEFORE_2_2]:
1382 Change type to 'scm_t_port_type *'.
1383 (natural_buffer_size) [!USING_GUILE_BEFORE_2_2]: New variable.
1384 (ioscm_open_port) [USING_GUILE_BEFORE_2_2]: Add 'stream'
1385 parameter and honor it. Update callers.
1386 (ioscm_open_port) [!USING_GUILE_BEFORE_2_2]: New function.
1387 (ioscm_read_from_port, ioscm_write) [!USING_GUILE_BEFORE_2_2]: New
1388 functions.
1389 (ioscm_fill_input, ioscm_input_waiting, ioscm_flush): Wrap in #if
1390 USING_GUILE_BEFORE_2_2.
1391 (ioscm_init_gdb_stdio_port) [!USING_GUILE_BEFORE_2_2]: Use
1392 'ioscm_read_from_port'. Call 'scm_set_port_read_wait_fd'.
1393 (ioscm_init_stdio_buffers) [!USING_GUILE_BEFORE_2_2]: New function.
1394 (gdbscm_stdio_port_p) [!USING_GUILE_BEFORE_2_2]: Use 'SCM_PORTP'
1395 and 'SCM_PORT_TYPE'.
1396 (gdbscm_memory_port_end_input, gdbscm_memory_port_seek)
1397 (ioscm_reinit_memory_port): Wrap in #if USING_GUILE_BEFORE_2_2.
1398 (gdbscm_memory_port_read, gdbscm_memory_port_write)
1399 (gdbscm_memory_port_seek, gdbscm_memory_port_close)
1400 [!USING_GUILE_BEFORE_2_2]: New functions.
1401 (gdbscm_memory_port_print): Remove use of 'SCM_PTOB_NAME'.
1402 (ioscm_init_memory_port_type) [!USING_GUILE_BEFORE_2_2]: Use
1403 'gdbscm_memory_port_read'.
1404 Wrap 'scm_set_port_end_input', 'scm_set_port_flush', and
1405 'scm_set_port_free' calls in #if USING_GUILE_BEFORE_2_2.
1406 (gdbscm_get_natural_buffer_sizes) [!USING_GUILE_BEFORE_2_2]: New
1407 function.
1408 (ioscm_init_memory_port): Remove.
1409 (ioscm_init_memory_port_stream): New function
1410 (ioscm_init_memory_port_buffers) [USING_GUILE_BEFORE_2_2]: New
1411 function.
1412 (gdbscm_memory_port_read_buffer_size) [!USING_GUILE_BEFORE_2_2]:
1413 Return scm_from_uint (0).
1414 (gdbscm_set_memory_port_read_buffer_size_x)
1415 [!USING_GUILE_BEFORE_2_2]: Call 'scm_setvbuf'.
1416 (gdbscm_memory_port_write_buffer_size) [!USING_GUILE_BEFORE_2_2]:
1417 Return scm_from_uint (0).
1418 (gdbscm_set_memory_port_write_buffer_size_x)
1419 [!USING_GUILE_BEFORE_2_2]: Call 'scm_setvbuf'.
1420 * configure.ac (try_guile_versions): Add "guile-2.2".
1421 * configure: Regenerate.
1422 * NEWS: Add entry.
1423
aee91db3
TT
14242020-07-18 Tom Tromey <tom@tromey.com>
1425
1426 * linux-nat.c (linux_multi_process): Remove.
1427 (linux_nat_target::supports_multi_process): Return true.
1428
0e267416
AB
14292020-07-17 Andrew Burgess <andrew.burgess@embecosm.com>
1430
1431 * arch/riscv.c (riscv_tdesc_cache): Change map type.
1432 (riscv_lookup_target_description): Return pointer out of
1433 unique_ptr.
1434 * target-descriptions.c (allocate_target_description): Add
1435 comment.
1436 (target_desc_deleter::operator()): Likewise.
1437 * target-descriptions.h (struct target_desc_deleter): Moved to
1438 gdbsupport/tdesc.h.
1439 (target_desc_up): Likewise.
1440
f80c8ec4
TT
14412020-07-17 Tom Tromey <tromey@adacore.com>
1442
1443 * linux-nat.c (linux_nat_target::supports_non_stop)
1444 (linux_nat_target::always_non_stop_p): Use "true".
1445 (linux_nat_target::supports_disable_randomization): Use "true" and
1446 "false".
1447
d0ce17d8
CT
14482020-07-16 Caroline Tice <cmtice@google.com>
1449
1450 * dwarf2/read.c (RNGLIST_HEADER_SIZE32) New constant definition.
1451 (RNGLIST_HEADER_SIZE64): New constant definition.
1452 (struct dwop_section_names): Add rnglists_dwo.
1453 (dwop_section_names): Add .debug_rnglists.dwo, .zdebug_rnglists.dwo.
1454 (struct loclist_header): Rename to 'loclists_rnglists_header'.
1455 (struct dwo_sections): Add rnglists field.
1456 (read_attribut_reprocess): Add tag parameter.
1457 (dwarf2_ranges_read): Add tag parameter & remove forward function decl.
1458 (cu_debug_rnglists_section): New function (decl & definition).
1459 (dwarf2_locate_dwo_sections): Add code to read rnglists_dwo section.
1460 (dwarf2_rnglists_process): Add a dwarf_tag parameter, for the kind of
1461 die whose range is being checked; get rnglist section from
1462 cu_debug_rnglists_section, to get from either objfile or dwo file as
1463 appropriate. Add cases for DW_RLE_base_addressx,
1464 DW_RLE_startx_length, DW_RLE_startx_endx. Also, update to only add
1465 the base address to DW_RLE_offset_pairs (not to all ranges), moving
1466 test inside if-condition and updating complaint message.
1467 (dwarf2_ranges_process): Add dwarf tag parameter and pass it to
1468 dwarf2_rnglists_process.
1469 (dwarf2_ranges_read): Add dwarf tag parameter and pass it to
1470 dwarf2_ranges_process.
1471 (dwarf2_get_pc_bounds): Check for DW_FORM_rnglistx when setting
1472 need_ranges_base and update comment appropriately. Also pass die tag
1473 to dwarf2_ranges_read.
1474 (dwarf2_record_block_ranges): Check for DW_FORM_rnglistx when setting
1475 need_ranges_base and update comment appropriately. Also pass die tag
1476 to dwarf2_ranges_process.
1477 (read_full_die_1): Add code to read DW_AT_rnglists_base and assign to
1478 cu->ranges_base. Also pass die tag to read_attribute_reprocess.
1479 (partial_die_info::read): Check for DW_FORM_rnglistx when setting
1480 need_ranges_base and update comment appropriately. Also pass die tag
1481 to read_attribute_reprocess and dwarf2_ranges_read.
1482 (read_loclist_header): Rename function to read_loclists_rnglists_header,
1483 and update function comment appropriately.
1484 (read_loclist_index): Call read_loclists_rnglists_header instead of
1485 read_loclist_header.
1486 (read_rnglist_index): New function.
1487 (read_attribute_reprocess): Add tag parameter. Add code for
1488 DW_FORM_rnglistx, passing tag to read_rnglist_index.
1489 (read_attribute_value): Mark DW_FORM_rnglistx with need_reprocess.
1490
3dcc261c
AB
14912020-07-15 Andrew Burgess <andrew.burgess@embecosm.com>
1492
1493 * f-typeprint.c (f_type_print_base): Allow for dynamic types not
1494 being resolved.
1495
ccb9eba6
AB
14962020-07-14 Andrew Burgess <andrew.burgess@embecosm.com>
1497
1498 * arch-utils.c (show_architecture): Update formatting of messages.
1499
cf88be68
SM
15002020-07-12 Simon Marchi <simon.marchi@efficios.com>
1501
1502 * gdbtypes.h (struct type) <bounds>: Handle array and string
1503 types.
1504 * ada-lang.c (assign_aggregate): Use type::bounds on
1505 array/string type.
1506 * c-typeprint.c (c_type_print_varspec_suffix): Likewise.
1507 * c-varobj.c (c_number_of_children): Likewise.
1508 (c_describe_child): Likewise.
1509 * eval.c (evaluate_subexp_for_sizeof): Likewise.
1510 * f-typeprint.c (f_type_print_varspec_suffix): Likewise.
1511 (f_type_print_base): Likewise.
1512 * f-valprint.c (f77_array_offset_tbl): Likewise.
1513 (f77_get_upperbound): Likewise.
1514 (f77_print_array_1): Likewise.
1515 * guile/scm-type.c (gdbscm_type_range): Likewise.
1516 * m2-typeprint.c (m2_array): Likewise.
1517 (m2_is_long_set_of_type): Likewise.
1518 * m2-valprint.c (get_long_set_bounds): Likewise.
1519 * p-typeprint.c (pascal_type_print_varspec_prefix): Likewise.
1520 * python/py-type.c (typy_range): Likewise.
1521 * rust-lang.c (rust_internal_print_type): Likewise.
1522 * type-stack.c (type_stack::follow_types): Likewise.
1523 * valarith.c (value_subscripted_rvalue): Likewise.
1524 * valops.c (value_cast): Likewise.
1525
509971ae
SM
15262020-07-12 Simon Marchi <simon.marchi@efficios.com>
1527
1528 * gdbtypes.c (TYPE_ARRAY_BIT_STRIDE): Remove. Update all
1529 callers to use the equivalent accessor methods.
1530
107406b7
SM
15312020-07-12 Simon Marchi <simon.marchi@efficios.com>
1532
1533 * gdbtypes.h (struct range_bounds) <bit_stride>: New method.
1534 (struct type) <bit_stride>: New method.
1535 (TYPE_BIT_STRIDE): Remove.
1536 * gdbtypes.c (update_static_array_size): Use type::bit_stride.
1537
bb789949
SM
15382020-07-12 Simon Marchi <simon.marchi@efficios.com>
1539
1540 * gdbtypes.h (TYPE_ARRAY_LOWER_BOUND_VALUE,
1541 TYPE_ARRAY_UPPER_BOUND_VALUE): Remove. Update all
1542 callers to use the equivalent accessor methods instead.
1543
39498edb
SM
15442020-07-12 Simon Marchi <simon.marchi@efficios.com>
1545
1546 * gdbtypes.h (TYPE_ARRAY_UPPER_BOUND_IS_UNDEFINED,
1547 TYPE_ARRAY_LOWER_BOUND_IS_UNDEFINED): Remove. Update all
1548 callers to use the equivalent accessor methods instead.
1549
3b606f38
SM
15502020-07-12 Simon Marchi <simon.marchi@efficios.com>
1551
1552 * gdbtypes.h (TYPE_LOW_BOUND_KIND,
1553 TYPE_HIGH_BOUND_KIND): Remove. Update all callers
1554 to use dynamic_prop::kind.
1555
064d9cb9
SM
15562020-07-12 Simon Marchi <simon.marchi@efficios.com>
1557
1558 * gdbtypes.h (TYPE_LOW_BOUND_UNDEFINED,
1559 TYPE_HIGH_BOUND_UNDEFINED): Remove. Update all callers
1560 to get the bound property's kind and check against
1561 PROP_UNDEFINED.
1562
5537ddd0
SM
15632020-07-12 Simon Marchi <simon.marchi@efficios.com>
1564
1565 * gdbtypes.h (TYPE_LOW_BOUND, TYPE_HIGH_BOUND): Remove. Update
1566 all callers to use type::range_bounds followed by
1567 dynamic_prop::{low,high}.
1568
8c2e4e06
SM
15692020-07-12 Simon Marchi <simon.marchi@polymtl.ca>
1570
1571 * gdbtypes.h (struct dynamic_prop) <kind, set_undefined,
1572 const_val, set_const_val, baton, set_locexpr, set_loclist,
1573 set_addr_offset, variant_parts, set_variant_parts,
1574 original_type, set_original_type>: New methods.
1575 <kind>: Rename to...
1576 <m_kind>: ... this. Update all users to use the new methods
1577 instead.
1578 <data>: Rename to...
1579 <m_data>: ... this. Update all users to use the new methods
1580 instead.
1581
7c6f2712
SM
15822020-07-12 Simon Marchi <simon.marchi@efficios.com>
1583
1584 * gdbtypes.c (get_discrete_bounds): Return failure if
1585 the range type's bounds are not both defined and constant
1586 values.
1587 (get_array_bounds): Update comment. Remove undefined bound check.
1588
599088e3
SM
15892020-07-12 Simon Marchi <simon.marchi@polymtl.ca>
1590
1591 * gdbtypes.h (TYPE_RANGE_DATA): Remove. Update callers to use
1592 the type::bounds method directly.
1593
c4dfcb36
SM
15942020-07-12 Simon Marchi <simon.marchi@efficios.com>
1595
1596 * gdbtypes.h (struct type) <bounds, set_bounds>: New methods.
1597 (TYPE_RANGE_DATA): Use type::bounds. Change all uses that
1598 are used to set the range type's bounds to use set_bounds.
1599
0a278aa7
PW
16002020-07-11 Philippe Waroquiers <philippe.waroquiers@skynet.be>
1601
1602 * exec.c (_initialize_exec): Update exec-file-mismatch help.
1603
cce20f10
PA
16042020-07-10 Pedro Alves <pedro@palves.net>
1605
1606 * gdbthread.h (inferior_ref): Define.
1607 (scoped_restore_current_thread) <m_thread>: Now a thread_info_ref.
1608 (scoped_restore_current_thread) <m_inf>: Now an inferior_ref.
1609 * thread.c
1610 (scoped_restore_current_thread::restore):
1611 Adjust to gdb::ref_ptr.
1612 (scoped_restore_current_thread::~scoped_restore_current_thread):
1613 Remove manual decref handling.
1614 (scoped_restore_current_thread::scoped_restore_current_thread):
1615 Adjust to use
1616 inferior_ref::new_reference/thread_info_ref::new_reference.
1617 Incref the thread before calling get_frame_id instead of after.
1618 Let TARGET_CLOSE_ERROR propagate.
1619
6d7aa592
PA
16202020-07-10 Pedro Alves <pedro@palves.net>
1621
1622 * frame-tailcall.c (dwarf2_tailcall_sniffer_first): Only swallow
1623 NO_ENTRY_VALUE_ERROR / MEMORY_ERROR / OPTIMIZED_OUT_ERROR /
1624 NOT_AVAILABLE_ERROR.
1625 * value.c (value_optimized_out): Only swallow MEMORY_ERROR /
1626 OPTIMIZED_OUT_ERROR / NOT_AVAILABLE_ERROR.
1627
b3e3a4c1
SM
16282020-07-10 Simon Marchi <simon.marchi@polymtl.ca>
1629 Pedro Alves <pedro@palves.net>
1630
1631 PR gdb/26199
1632 * infrun.c (threads_are_resumed_pending_p): Delete.
1633 (do_target_wait): Remove threads_are_executing and
1634 threads_are_resumed_pending_p checks from the inferior_matches
1635 lambda. Update comments.
1636
d6cc5d98
PA
16372020-07-10 Pedro Alves <pedro@palves.net>
1638
1639 PR gdb/26199
1640 * infrun.c (handle_no_resumed): Transfer terminal to inferior with
1641 executing threads.
1642
7d3badc6
PA
16432020-07-10 Pedro Alves <pedro@palves.net>
1644
1645 PR gdb/26199
1646 * infrun.c (handle_no_resumed): Handle multiple targets.
1647
42bd97a6
PA
16482020-07-10 Pedro Alves <pedro@palves.net>
1649
1650 PR gdb/26199
1651 * infrun.c (prepare_to_wait): Check target_can_async_p instead of
1652 target_is_async_p.
1653
43667cc6
PA
16542020-07-10 Pedro Alves <pedro@palves.net>
1655
1656 PR gdb/26199
1657 * target.c (target_pass_ctrlc): Look at the inferior's non-exited
1658 threads, not all threads.
1659
96118d11
PA
16602020-07-10 Pedro Alves <pedro@palves.net>
1661
1662 PR gdb/26199
1663 * remote.c (remote_target::open_1): Pass remote target pointer as
1664 data to create_async_event_handler.
1665 (remote_async_inferior_event_handler): Mark async event handler
1666 before returning if the remote target still has either pending
1667 events or unacknowledged notifications.
1668
54904d81
JB
16692020-07-10 John Baldwin <jhb@FreeBSD.org>
1670
1671 * fbsd-nat.h (fbsd_nat_target::supports_multi_process): New
1672 declaration.
1673 * fbsd-nat.c (fbsd_nat_target::supports_multi_process): New
1674 function.
1675
f37e5866
JB
16762020-07-09 John Baldwin <jhb@FreeBSD.org>
1677
1678 * inf-ptrace.c (inf_ptrace_target::wait): Don't compare against
1679 inferior_ptid.
1680
fc238d4a
JB
16812020-07-09 John Baldwin <jhb@FreeBSD.org>
1682
1683 * fbsd-tdep.c (fbsd_print_auxv_entry): Handle AT_FREEBSD_ARGC,
1684 AT_FREEBSD_ARGV, AT_FREEBSD_ENVC, AT_FREEBSD_ENVV,
1685 AT_FREEBSD_PS_STRINGS.
1686
6e2469ff
HD
16872020-07-08 Hannes Domani <ssbssa@yahoo.de>
1688
1689 * auto-load.c (auto_load_objfile_script_1): Convert drive part
1690 of debugfile path on Windows.
1691
d1076c41
JB
16922020-07-08 John Baldwin <jhb@FreeBSD.org>
1693
1694 * fbsd-nat.c (fbsd_nat_target::find_memory_regions): Rename 'obfd'
1695 argument to 'data'.
1696
15f3b077
TT
16972020-07-08 Tom Tromey <tromey@adacore.com>
1698
1699 * ada-lang.c (ada_exception_message_1): Use read_memory.
1700
9fc501fd
AB
17012020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
1702
1703 PR python/22748
1704 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first): Remove
1705 special handling for inline frames.
1706 * findvar.c (value_of_register_lazy): Skip inline frames when
1707 creating lazy register values.
1708 * frame.c (frame_id_computed_p): Delete definition.
1709 * frame.h (frame_id_computed_p): Delete declaration.
1710
64cb3757
AB
17112020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
1712
1713 * NEWS: Mention additions to Python API.
1714 * python/py-arch.c (archpy_register_groups): New function.
1715 (arch_object_methods): Add 'register_groups' method.
1716 * python/py-registers.c (reggroup_iterator_object): New struct.
1717 (reggroup_object): New struct.
1718 (gdbpy_new_reggroup): New function.
1719 (gdbpy_reggroup_to_string): New function.
1720 (gdbpy_reggroup_name): New function.
1721 (gdbpy_reggroup_iter): New function.
1722 (gdbpy_reggroup_iter_next): New function.
1723 (gdbpy_new_reggroup_iterator): New function
1724 (gdbpy_initialize_registers): Register new types.
1725 (reggroup_iterator_object_type): Define new Python type.
1726 (gdbpy_reggroup_getset): New static global.
1727 (reggroup_object_type): Define new Python type.
1728 * python/python-internal.h
1729
0f767f94
AB
17302020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
1731
1732 * Makefile.in (SUBDIR_PYTHON_SRCS): Add py-registers.c
1733 * python/py-arch.c (archpy_registers): New function.
1734 (arch_object_methods): Add 'registers' method.
1735 * python/py-registers.c: New file.
1736 * python/python-internal.h
1737 (gdbpy_new_register_descriptor_iterator): Declare.
1738 (gdbpy_initialize_registers): Declare.
1739 * python/python.c (do_start_initialization): Call
1740 gdbpy_initialize_registers.
1741 * NEWS: Mention additions to the Python API.
1742
87dbc774
AB
17432020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
1744
1745 * NEWS: Mention new Python API method.
1746 * python/py-unwind.c (pending_framepy_architecture): New function.
1747 (pending_frame_object_methods): Add architecture method.
1748
3bc98c0c
AB
17492020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
1750
1751 * gdbarch.c: Regenerate.
1752 * gdbarch.h: Regenerate.
1753 * gdbarch.sh (deprecated_set_gdbarch_data): Delete.
1754 (gdbarch_data): Use internal_error for the case where
1755 deprecated_set_gdbarch_data was originally needed.
1756 * ia64-libunwind-tdep.c (libunwind_descr_init): Update parameters,
1757 and use passed in obstack.
1758 (libunwind_frame_set_descr): Should no longer get back NULL from
1759 gdbarch_data.
1760 (_initialize_libunwind_frame): Register as a pre-init gdbarch data
1761 type.
1762 * user-regs.c (user_regs_init): Update parameters, and use passed
1763 in obstack.
1764 (user_reg_add): Should no longer get back NULL from gdbarch_data.
1765 (_initialize_user_regs): Register as a pre-init gdbarch data type.
1766
d8cc8af6
TV
17672020-07-06 Tom de Vries <tdevries@suse.de>
1768
1769 * buildsym.c (buildsym_compunit::end_symtab_with_blockvector): Handle
1770 End-Of-Sequence in lte_is_less_than.
1771 * symtab.c (find_pc_sect_line): Revert change from commit 3d92a3e313
1772 "gdb: Don't reorder line table entries too much when sorting".
1773
947f7597
TV
17742020-07-06 Tom de Vries <tdevries@suse.de>
1775
1776 PR tui/26205
1777 * tui/tui-win.c (tui_partial_win_by_name): Don't test for NULL name.
1778
1e7c1b22
TV
17792020-07-05 Tom de Vries <tdevries@suse.de>
1780
1781 PR build/26187
1782 * inferior.h (struct infcall_suspend_state_deleter): If available, use
1783 std::uncaught_exceptions instead of deprecated
1784 std::uncaught_exception.
1785
a36158ec
SM
17862020-07-02 Simon Marchi <simon.marchi@polymtl.ca>
1787
1788 * macroexp.h (macro_stringify): Return
1789 gdb::unique_xmalloc_ptr<char>.
1790 * macroexp.c (macro_stringify): Likewise.
1791 * macrotab.c (fixup_definition): Update.
1792
14d960c8
SM
17932020-07-02 Simon Marchi <simon.marchi@polymtl.ca>
1794
1795 * c-exp.y (scan_macro_expansion): Don't free `expansion`.
1796 (lex_one_token): Update.
1797 * macroexp.c (struct macro_buffer) <release>: Return
1798 gdb::unique_xmalloc_ptr<char>.
1799 (macro_stringify): Update.
1800 (macro_expand): Update.
1801 (macro_expand_next): Return gdb::unique_xmalloc_ptr<char>.
1802 * macroexp.h (macro_expand_next): Likewise.
1803
211d5b1c
SM
18042020-07-02 Simon Marchi <simon.marchi@efficios.com>
1805
1806 * macroexp.h (macro_lookup_ftype): Remove.
1807 (macro_expand, macro_expand_once, macro_expand_next): Remove
1808 lookup function parameters, add scope parameter.
1809 * macroexp.c (scan, substitute_args, expand, maybe_expand,
1810 macro_expand, macro_expand_once, macro_expand_next): Likewise.
1811 * macroscope.h (standard_macro_lookup): Change parameter type
1812 to macro_scope.
1813 * macroscope.c (standard_macro_lookup): Likewise.
1814 * c-exp.y (lex_one_token): Update.
1815 * macrocmd.c (macro_expand_command): Likewise.
1816 (macro_expand_once_command): Likewise.
1817
b1a35af2
SM
18182020-07-02 Simon Marchi <simon.marchi@polymtl.ca>
1819
1820 * inf-loop.c (inferior_event_handler): Remove client_data param.
1821 * inf-loop.h (inferior_event_handler): Likewise.
1822 * infcmd.c (step_1): Adjust.
1823 * infrun.c (proceed): Adjust.
1824 (fetch_inferior_event): Remove client_data param.
1825 (infrun_async_inferior_event_handler): Adjust.
1826 * infrun.h (fetch_inferior_event): Remove `void *` param.
1827 * linux-nat.c (handle_target_event): Adjust.
1828 * record-btrace.c (record_btrace_handle_async_inferior_event):
1829 Adjust.
1830 * record-full.c (record_full_async_inferior_event_handler):
1831 Adjust.
1832 * remote.c (remote_async_inferior_event_handler): Adjust.
1833
1cdf9e33
TT
18342020-07-01 Tom Tromey <tom@tromey.com>
1835
1836 * tui/tui-data.h (struct tui_win_info) <name>: Now pure virtual.
1837 * tui/tui-stack.h (struct tui_locator_window) <name>: New method.
1838
32c1e210
TT
18392020-07-01 Tom Tromey <tom@tromey.com>
1840
1841 * tui/tui-wingeneral.c (tui_win_info::refresh_window): Move from
1842 tui_gen_win_info.
1843 (tui_win_info::make_window): Merge with
1844 tui_gen_win_info::make_window.
1845 (tui_win_info::make_visible): Move from tui_gen_win_info.
1846 * tui/tui-win.c (tui_win_info::max_width): Move from
1847 tui_gen_win_info.
1848 * tui/tui-layout.h (class tui_layout_window) <m_window>: Change
1849 type.
1850 <window_factory>: Likewise.
1851 * tui/tui-layout.c (tui_win_info::resize): Move from
1852 tui_gen_win_info.
1853 (make_standard_window): Change return type.
1854 (get_locator_window, tui_get_window_by_name): Likewise.
1855 (tui_layout_window::apply): Remove a cast.
1856 * tui/tui-data.h (MIN_WIN_HEIGHT): Move earlier.
1857 (struct tui_win_info): Merge with tui_gen_win_info.
1858 (struct tui_gen_win_info): Remove.
1859
a30cb6da
TT
18602020-07-01 Tom Tromey <tom@tromey.com>
1861
1862 * tui/tui-stack.h (struct tui_locator_window): Derive from
1863 tui_win_info.
1864 <do_scroll_horizontal, do_scroll_vertical>: New methods.
1865 <can_box>: New method.
1866
1eb2161f
TT
18672020-07-01 Tom Tromey <tom@tromey.com>
1868
1869 * tui/tui-stack.h (struct tui_locator_window): Remove body.
1870
7134f2eb
TT
18712020-07-01 Tom Tromey <tom@tromey.com>
1872
1873 * tui/tui-regs.c (tui_data_window::display_registers_from)
1874 (tui_data_window::display_registers_from)
1875 (tui_data_window::first_data_item_displayed)
1876 (tui_data_window::delete_data_content_windows): Update.
1877 (tui_data_window::refresh_window, tui_data_window::no_refresh):
1878 Remove.
1879 (tui_data_window::check_register_values): Update.
1880 (tui_data_item_window::rerender): Add parameters. Update.
1881 (tui_data_item_window::refresh_window): Remove.
1882 * tui/tui-data.h (struct tui_gen_win_info) <no_refresh>: No longer
1883 virtual.
1884 * tui/tui-regs.h (struct tui_data_item_window): Don't derive from
1885 tui_gen_win_info.
1886 <refresh_window, max_height, min_height>: Remove.
1887 <rerender>: Add parameters.
1888 <x, y, visible>: New members.
1889 (struct tui_data_window) <refresh_window, no_refresh>: Remove.
1890 <m_item_width>: New member.
1891
22b7b041
TT
18922020-07-01 Tom Tromey <tom@tromey.com>
1893
1894 * tui/tui-regs.c (tui_data_window::show_register_group)
1895 (tui_data_window::check_register_values): Update.
1896 * tui/tui-regs.h (struct tui_data_item_window) <regno>: Rename
1897 from item_no.
1898
c9753adb
TT
18992020-07-01 Tom Tromey <tom@tromey.com>
1900
1901 * tui/tui-regs.c (tui_data_window::show_register_group): Remove
1902 useless "if".
1903
9ab26b4a
TT
19042020-07-01 Tom Tromey <tom@tromey.com>
1905
1906 * tui/tui-regs.c (tui_data_window::show_register_group): Update.
1907 * tui/tui-regs.h (struct tui_data_item_window) <name>: Remove.
1908
e555083f
TT
19092020-07-01 Tom Tromey <tom@tromey.com>
1910
1911 * tui/tui-stack.c (SINGLE_KEY): Move from tui-data.h
1912 * tui/tui-winsource.h (enum tui_line_or_address_kind)
1913 (struct tui_line_or_address): Move from tui-data.h.
1914 * tui/tui-win.c (DEFAULT_TAB_LEN): Move from tui-data.h.
1915 * tui/tui-data.h (DEFAULT_TAB_LEN): Move to tui-win.c.
1916 (tui_cmd_window, tui_source_window_base, tui_source_window)
1917 (tui_disasm_window): Don't declare.
1918 (enum tui_line_or_address_kind, struct tui_line_or_address): Move
1919 to tui-winsource.h.
1920 (SINGLE_KEY): Move to tui-stack.c.
1921
7a02bab7
TT
19222020-07-01 Tom Tromey <tom@tromey.com>
1923
1924 * tui/tui-regs.h (struct tui_data_item_window) <content>: Now a
1925 std::string.
1926 * tui/tui-regs.c (class tab_expansion_file): New.
1927 (tab_expansion_file::write): New method.
1928 (tui_register_format): Change return type. Use
1929 tab_expansion_file.
1930 (tui_get_register, tui_data_window::display_registers_from)
1931 (tui_data_item_window::rerender): Update.
1932 * tui/tui-io.h (tui_expand_tabs): Don't declare.
1933 * tui/tui-io.c (tui_expand_tabs): Remove.
1934
ea68593b
TT
19352020-07-01 Tom Tromey <tom@tromey.com>
1936
1937 * tui/tui-regs.c (tui_reggroup_completer): Use complete_on_enum.
1938
a8caed5d
FS
19392020-07-01 Fangrui Song <maskray@google.com>
1940
1941 * dwarf2/read.c (lnp_state_machine::check_line_address): Test -1.
1942
9cdf9820
AKS
19432020-07-01 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
1944
1945 * dwarf2/read.c (set_die_type): Removed conditions to restrict
1946 forms for DW_AT_associated and DW_AT_allocated attributes,
1947 which is already checked in function attr_to_dynamic_prop.
1948
a1520ad8
TT
19492020-06-30 Tom Tromey <tromey@adacore.com>
1950
1951 * dwarf2/read.c (quirk_rust_enum): Correctly call
1952 alloc_rust_variant for default-less enum.
1953
5ac58899
TT
19542020-06-30 Tom Tromey <tromey@adacore.com>
1955
1956 PR build/26183:
1957 * ada-lang.c (ada_lookup_name_info::ada_lookup_name_info): Use
1958 gdb::to_string.
1959
19b187a9
SM
19602020-06-29 Simon Marchi <simon.marchi@efficios.com>
1961
1962 * gdbarch.sh (displaced_step_copy_insn): Update doc.
1963 * gdbarch.h: Re-generate.
1964
cd4c4c07
TT
19652020-06-28 Tom Tromey <tom@tromey.com>
1966
1967 * command.h (cmd_types): Remove.
1968 (cmd_type): Don't declare.
1969 * cli/cli-decode.h (enum cmd_types): Uncomment. No longer a
1970 typedef.
1971 * cli/cli-cmds.c (setting_cmd): Use cmd->type directly.
1972 * cli/cli-decode.c (cmd_type): Remove.
1973
05779d57
PA
19742020-06-27 Pedro Alves <palves@redhat.com>
1975
1976 * fork-child.c (prefork_hook): Adjust.
1977 * infcmd.c (set_inferior_io_terminal, get_inferior_io_terminal):
1978 Delete.
1979 (set_inferior_tty_command, show_inferior_tty_command): Adjust.
1980 * inferior.c (inferior::set_tty, inferior::tty): New methods.
1981 * inferior.h (set_inferior_io_terminal, get_inferior_io_terminal):
1982 Remove declarations.
1983 (struct inferior) <set_tty, tty>: New methods.
1984 (struct inferior) <terminal>: Rename to ...
1985 (struct inferior) <m_terminal>: ... this and make private.
1986 * main.c (captured_main_1): Adjust.
1987 * mi/mi-cmd-env.c (mi_cmd_inferior_tty_set): Adjust.
1988 (mi_cmd_inferior_tty_show): Adjust.
1989 * nto-procfs.c (nto_procfs_target::create_inferior): Adjust.
1990 * windows-nat.c (windows_nat_target::create_inferior): Adjust.
1991
1776e3e5
NA
19922020-06-26 Nick Alcock <nick.alcock@oracle.com>
1993
1994 * configure.ac: Add --enable-libctf: handle --disable-static
1995 properly.
1996 * acinclude.m4: sinclude ../config/enable.m4.
1997 * Makefile.in (aclocal_m4_deps): Adjust accordingly.
1998 (LIBCTF): Substitute in.
1999 (CTF_DEPS): New, likewise.
2000 (CLIBS): libctf needs symbols from libbfd: move earlier.
2001 (CDEPS): Use CTF_DEPS, not LIBCTF, now LIBCTF can include rpath
2002 flags.
2003 * ctfread.c: Surround in ENABLE_LIBCTF.
2004 (elfctf_build_psymtabs) [!ENABLE_LIBCTF]: New stub.
2005 * configure: Regenerate.
2006 * config.in: Likewise.
2007
58373b80
SM
20082020-06-25 Simon Marchi <simon.marchi@efficios.com>
2009
2010 * infcmd.c (set_inferior_io_terminal): Use make_unique_xstrdup.
2011
277474ee
SM
20122020-06-25 Simon Marchi <simon.marchi@efficios.com>
2013
2014 * inferior.h (struct inferior) <terminal>: Change type to
2015 gdb::unique_xmalloc_ptr<char>.
2016 * inferior.c (inferior::~inferior): Don't free inf->terminal.
2017 * infcmd.c (set_inferior_io_terminal): Don't free terminal
2018 field, adjust to unique pointer.
2019 (get_inferior_io_terminal): Adjust to unique pointer.
2020
6d74da72
AB
20212020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
2022
2023 * riscv-tdep.c (riscv_print_registers_info): Loop over all
2024 registers, not just the known core set of registers.
2025
2e52d038
AB
20262020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
2027
2028 * riscv-tdep.c (riscv_register_name): Return NULL for duplicate
2029 fflags, frm, and fcsr registers.
2030 (riscv_register_reggroup_p): Remove unknown CSRs from save and
2031 restore groups.
2032 (riscv_tdesc_unknown_reg): New function.
2033 (riscv_gdbarch_init): Pass riscv_tdesc_unknown_reg to
2034 tdesc_use_registers.
2035 * riscv-tdep.h (struct gdbarch_tdep): Add
2036 unknown_csrs_first_regnum, unknown_csrs_count,
2037 duplicate_fflags_regnum, duplicate_frm_regnum, and
2038 duplicate_fcsr_regnum fields.
2039
be64fd07
AB
20402020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
2041
2042 * target-descriptions.c (tdesc_use_registers): Add new parameter a
2043 callback, use the callback (when not null) to help number unknown
2044 registers.
2045 * target-descriptions.h (tdesc_unknown_register_ftype): New typedef.
2046 (tdesc_use_registers): Add extra parameter to declaration.
2047
3b9fce96
AB
20482020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
2049
2050 * riscv-tdep.c (value_of_riscv_user_reg): Moved to here from later
2051 in the file.
2052 (class riscv_pending_register_alias): Likewise.
2053 (riscv_register_feature::register_info): Change 'required_p' field
2054 to 'required', and change its type. Add 'check' member function.
2055 (riscv_register_feature::register_info::check): Define new member
2056 function.
2057 (riscv_xreg_feature): Change initialisation of 'required' field.
2058 (riscv_freg_feature): Likewise.
2059 (riscv_virtual_feature): Likewise.
2060 (riscv_csr_feature): Likewise.
2061 (riscv_check_tdesc_feature): Take extra parameter, the csr
2062 tdesc_feature, rewrite the function to use the new
2063 riscv_register_feature::register_info::check function.
2064 (riscv_gdbarch_init): Pass the csr tdesc_feature where needed.
2065
865bad26
AB
20662020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
2067
2068 * features/Makefile: Remove all references to the deleted files
2069 below.
2070 * features/riscv/32bit-csr.c: Deleted.
2071 * features/riscv/32bit-csr.xml: Deleted.
2072 * features/riscv/64bit-csr.c: Deleted.
2073 * features/riscv/64bit-csr.xml: Deleted.
2074 * features/riscv/rebuild-csr-xml.sh: Deleted.
2075
ed69cbc8
AB
20762020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
2077
2078 * riscv-tdep.c (struct riscv_register_feature::register_info): Fix
2079 whitespace error for declaration of names member variable.
2080 (struct riscv_register_feature): Add new prefer_first_name member
2081 variable, and fix whitespace error in declaration of registers.
2082 (riscv_xreg_feature): Initialize prefer_first_name field.
2083 (riscv_freg_feature): Likewise.
2084 (riscv_virtual_feature): Likewise.
2085 (riscv_csr_feature): Likewise.
2086 (riscv_register_name): Expand on comments. Remove register name
2087 modifications for CSR and virtual registers.
2088
4445e8f5
AB
20892020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
2090
2091 * riscv-tdep.c (struct riscv_register_feature): Fix whitespace
2092 errors.
2093
767a879e
AB
20942020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
2095
2096 * riscv-tdep.c (riscv_create_csr_aliases): Handle csr aliases from
2097 riscv-opc.h.
2098 (class riscv_pending_register_alias): New class.
2099 (riscv_check_tdesc_feature): Take vector of pending aliases and
2100 populate it as appropriate.
2101 (riscv_setup_register_aliases): Delete.
2102 (riscv_gdbarch_init): Create vector of pending aliases and pass it
2103 to riscv_check_tdesc_feature in all cases. Use the vector to
2104 create the register aliases.
2105
bb6e55f3
RO
21062020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2107
2108 * sol2-tdep.c (sol2_static_transform_name): Remove.
2109 (sol2_init_abi): Don't register it.
2110 * gdbarch.sh (static_transform_name): Remove.
2111 * gdbarch.c, gdbarch.h: Regenerate.
2112
2113 * dbxread.c (read_dbx_symtab) <'S'>: Remove call to
2114 gdbarch_static_transform_name.
2115 * mdebugread.c (parse_partial_symbols) <'S'>: Likewise.
2116 * stabsread.c (define_symbol) <'X'>: Remove.
2117 (define_symbol) <'S'>: Remove gdbarch_static_transform_name
2118 handling.
2119 <'V'>: Likewise.
2120 * xcoffread.c (scan_xcoff_symtab): Remove gdbarch.
2121 <'S'>: Remove call to gdbarch_static_transform_name.
2122
c6d36836
RO
21232020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2124
2125 * procfs.c (procfs_pre_trace): New function.
2126 (procfs_target::create_inferior): Pass it to fork_inferior.
2127
a7e6196b
RO
21282020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2129
2130 * configure.tgt <sparc-*-linux*> (gdb_target_obs): Remove
2131 sparc-sol2-tdep.o, sol2-tdep.o, sparc64-sol2-tdep.o.
2132 <sparc64-*-linux*> (gdb_target_obs): Remove sparc64-sol2-tdep.o,
2133 sol2-tdep.o, sparc-sol2-tdep.o.
2134 * sparc-sol2-tdep.c (sparc32_sol2_init_abi): Make static.
2135 * sparc-tdep.h (sparc32_sol2_init_abi): Remove.
2136 * sparc64-sol2-tdep.c (sparc64_sol2_init_abi): Make static.
2137 * sparc64-tdep.h (sparc64_sol2_init_abi): Remove.
2138
d412e696
RO
21392020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2140
2141 * amd64-sol2-tdep.c (amd64_sol2_sigtramp_p): Remove.
2142 (amd64_sol2_init_abi): Use sol2_sigtramp_p.
2143 Call sol2_init_abi.
2144 Remove calls to set_gdbarch_skip_solib_resolver,
2145 set_gdbarch_core_pid_to_str.
2146 * i386-sol2-tdep.c (i386_sol2_sigtramp_p): Remove.
2147 (i386_sol2_static_transform_name): Remove.
2148 (i386_sol2_init_abi): Call sol2_init_abi.
2149 Remove calls to set_gdbarch_sofun_address_maybe_missing,
2150 set_gdbarch_static_transform_name,
2151 set_gdbarch_skip_solib_resolver, set_gdbarch_core_pid_to_str.
2152 Use sol2_sigtramp_p.
2153 * sol2-tdep.c (sol2_pc_in_sigtramp): New function.
2154 (sol2_sigtramp_p): New function.
2155 (sol2_static_transform_name): New function.
2156 (sol2_skip_solib_resolver, sol2_core_pid_to_str): Make static.
2157 (sol2_init_abi): New function.
2158 * sol2-tdep.h (sol2_sigtramp_p, sol2_init_abi): Declare.
2159 (sol2_skip_solib_resolver, sol2_core_pid_to_str): Remove.
2160 * sparc-sol2-tdep.c (sparc_sol2_pc_in_sigtramp): Remove.
2161 (sparc32_sol2_sigtramp_frame_sniffer): Just call sol2_sigtramp_p.
2162 (sparc_sol2_static_transform_name): Remove.
2163 (sparc32_sol2_init_abi): Call sol2_init_abi.
2164 Remove calls to set_gdbarch_sofun_address_maybe_missing,
2165 set_gdbarch_static_transform_name,
2166 set_gdbarch_skip_solib_resolver,
2167 set_gdbarch_core_pid_to_str.
2168 * sparc-tdep.h (sparc_sol2_pc_in_sigtramp)
2169 (sparc_sol2_static_transform_name): Remove
2170 * sparc64-sol2-tdep.c (sparc64_sol2_sigtramp_frame_sniffer): Just
2171 call sol2_sigtramp_p.
2172 (sparc64_sol2_init_abi): Call sol2_init_abi.
2173 Remove calls to set_gdbarch_sofun_address_maybe_missing,
2174 set_gdbarch_static_transform_name,
2175 set_gdbarch_skip_solib_resolver, set_gdbarch_core_pid_to_str.
2176
a8654e7d
PW
21772020-06-24 Philippe Waroquiers <philippe.waroquiers@skynet.be>
2178
2179 * symfile-add-flags.h: New flag SYMFILE_ALWAYS_CONFIRM.
2180 * exec.c (validate_exec_file): If from_tty, set both
2181 SYMFILE_VERBOSE (== from_tty) and SYMFILE_ALWAYS_CONFIRM.
2182 * symfile.c (symbol_file_add_with_addrs): if always_confirm
2183 and from_tty, unconditionally ask a confirmation.
2184
caa7fd04
AB
21852020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
2186
2187 * target-descriptions.c (tdesc_architecture_name): Protect against
2188 NULL pointer dereference.
2189 (maint_print_xml_tdesc_cmd): New function.
2190 (_initialize_target_descriptions): Register new 'maint print
2191 xml-tdesc' command and give it the filename completer.
2192 * NEWS: Mention new 'maint print xml-tdesc' command.
2193
fbf42f4e
AB
21942020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
2195
2196 * target-descriptions.c (class tdesc_compatible_info): New class.
2197 (struct target_desc): Change type of compatible vector.
2198 (tdesc_compatible_p): Update for change in type of
2199 target_desc::compatible.
2200 (tdesc_compatible_info_list): New function.
2201 (tdesc_compatible_info_arch_name): New function.
2202 (tdesc_add_compatible): Update for change in type of
2203 target_desc::compatible.
2204 (print_c_tdesc::visit_pre): Likewise.
2205
20821f4e
AB
22062020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
2207
2208 * target-descriptions.c (print_c_tdesc::print_c_tdesc): Change
2209 whitespace to underscore.
2210 (maint_print_c_tdesc_cmd): Use fake filename for target
2211 descriptions that came from the target.
2212 (_initialize_target_descriptions): Add filename command completion
2213 for 'maint print c-tdesc'.
2214
1fb5ee62
SM
22152020-06-23 Simon Marchi <simon.marchi@efficios.com>
2216
2217 * dwarf2/loc.c (decode_debug_loclists_addresses): Add empty
2218 lines.
2219
fc3ecb3e
SM
22202020-06-23 Simon Marchi <simon.marchi@efficios.com>
2221
2222 * dwarf2/loc.c (decode_debug_loc_dwo_addresses): Add empty
2223 lines.
2224 (dwarf2_find_location_expression): Likewise.
2225 (call_site_parameter_matches): Likewise.
2226 (dwarf2_compile_expr_to_ax): Likewise.
2227 (disassemble_dwarf_expression): Likewise.
2228 (loclist_describe_location): Likewise.
2229
236ef034
PA
22302020-06-23 Pedro Alves <palves@redhat.com>
2231
2232 * gdbarch-selftests.c: Don't include inferior.h, gdbthread.h or
2233 progspace-and-thread.h. Include scoped-mock-context.h instead.
2234 (register_to_value_test): Use scoped_mock_context.
2235 * regcache.c: Include "scoped-mock-context.h".
2236 (cooked_read_test): Don't error out if a target is already pushed.
2237 Use scoped_mock_context. Adjust.
2238 * scoped-mock-context.h: New file.
2239
39e7ecca
AB
22402020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
2241
2242 * ada-lang.c (ada_language_data): Delete la_is_string_type_p
2243 initializer.
2244 (ada_language::is_string_type_p): New member function.
2245 * c-lang.c (c_language_data): Delete la_is_string_type_p
2246 initializer.
2247 (cplus_language_data): Likewise.
2248 (asm_language_data): Likewise.
2249 (minimal_language_data): Likewise.
2250 * d-lang.c (d_language_data): Likewise.
2251 * f-lang.c (f_is_string_type_p): Delete function, implementation
2252 moved to f_language::is_string_type_p.
2253 (f_language_data): Delete la_is_string_type_p initializer.
2254 (f_language::is_string_type_p): New member function,
2255 implementation from f_is_string_type_p.
2256 * go-lang.c (go_is_string_type_p): Delete function, implementation
2257 moved to go_language::is_string_type_p.
2258 (go_language_data): Delete la_is_string_type_p initializer.
2259 (go_language::is_string_type_p): New member function,
2260 implementation from go_is_string_type_p.
2261 * language.c (language_defn::is_string_type_p): Define new member
2262 function.
2263 (default_is_string_type_p): Make static, add comment copied from
2264 header file.
2265 (unknown_language_data): Delete la_is_string_type_p initializer.
2266 (unknown_language::is_string_type_p): New member function.
2267 (auto_language_data): Delete la_is_string_type_p initializer.
2268 (auto_language::is_string_type_p): New member function.
2269 * language.h (language_data): Delete la_is_string_type_p field.
2270 (language_defn::is_string_type_p): Declare new function.
2271 (default_is_string_type_p): Delete desclaration, move comment to
2272 definition.
2273 * m2-lang.c (m2_is_string_type_p): Delete function, implementation
2274 moved to m2_language::is_string_type_p.
2275 (m2_language_data): Delete la_is_string_type_p initializer.
2276 (m2_language::is_string_type_p): New member function,
2277 implementation from m2_is_string_type_p.
2278 * objc-lang.c (objc_language_data): Delete la_is_string_type_p
2279 initializer.
2280 * opencl-lang.c (opencl_language_data): Likewise.
2281 * p-lang.c (pascal_is_string_type_p): Delete function,
2282 implementation moved to pascal_language::is_string_type_p.
2283 (pascal_language_data): Delete la_is_string_type_p initializer.
2284 (pascal_language::is_string_type_p): New member function,
2285 implementation from pascal_is_string_type_p.
2286 * rust-lang.c (rust_is_string_type_p): Delete function,
2287 implementation moved to rust_language::is_string_type_p.
2288 (rust_language_data): Delete la_is_string_type_p initializer.
2289 (rust_language::is_string_type_p): New member function,
2290 implementation from rust_is_string_type_p.
2291 * valprint.c (val_print_scalar_or_string_type_p): Update call to
2292 is_string_type_p.
2293
4ffc13fb
AB
22942020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
2295
2296 * ada-lang.c (ada_language_data): Delete la_print_typedef
2297 initializer.
2298 (ada_language::print_typedef): New member function.
2299 * c-lang.c (c_language_data): Delete la_print_typedef initializer.
2300 (cplus_language_data): Likewise.
2301 (asm_language_data): Likewise.
2302 (minimal_language_data): Likewise.
2303 * d-lang.c (d_language_data): Likewise.
2304 * f-lang.c (f_language_data): Likewise.
2305 (f_language::print_typedef): New member function.
2306 * go-lang.c (go_language_data): Delete la_print_typedef
2307 initializer.
2308 * language.c (language_defn::print_typedef): Define member
2309 function.
2310 (unknown_language_data): Delete la_print_typedef initializer.
2311 (unknown_language::print_typedef): New member function.
2312 (auto_language_data): Delete la_print_typedef initializer.
2313 (auto_language::print_typedef): New member function.
2314 * language.h (language_data): Delete la_print_typedef field.
2315 (language_defn::print_typedef): Declare new member function.
2316 (LA_PRINT_TYPEDEF): Update call to print_typedef.
2317 (default_print_typedef): Delete declaration.
2318 * m2-lang.c (m2_language_data): Delete la_print_typedef
2319 initializer.
2320 (m2_language::print_typedef): New member function.
2321 * objc-lang.c (objc_language_data): Delete la_print_typedef
2322 initializer.
2323 * opencl-lang.c (opencl_language_data): Likewise.
2324 * p-lang.c (pascal_language_data): Likewise.
2325 (pascal_language::print_typedef): New member function.
2326 * rust-lang.c (rust_print_typedef): Delete function,
2327 implementation moved to rust_language::print_typedef.
2328 (rust_language): Delete la_print_typedef initializer.
2329 (rust_language::print_typedef): New member function,
2330 implementation from rust_print_typedef.
2331 * typeprint.c (default_print_typedef): Delete.
2332
d711ee67
AB
23332020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
2334
2335 * ada-lang.c (ada_language_data): Delete la_printstr initializer.
2336 (ada_language::printstr): New member function.
2337 * c-lang.c (c_language_data): Delete la_printstr initializer.
2338 (cplus_language_data): Likewise.
2339 (asm_language_data): Likewise.
2340 (minimal_language_data): Likewise.
2341 * d-lang.c (d_language_data): Likewise.
2342 * f-lang.c (f_printstr): Rename to f_language::printstr.
2343 (f_language_data): Delete la_printstr initializer.
2344 (f_language::printstr): New member function, implementation from
2345 f_printstr.
2346 * go-lang.c (go_language_data): Delete la_printstr initializer.
2347 * language.c (language_defn::printstr): Define new member
2348 function.
2349 (unk_lang_printstr): Delete.
2350 (unknown_language_data): Delete la_printstr initializer.
2351 (unknown_language::printstr): New member function.
2352 (auto_language_data): Delete la_printstr initializer.
2353 (auto_language::printstr): New member function.
2354 * language.h (language_data): Delete la_printstr field.
2355 (language_defn::printstr): Declare new member function.
2356 (LA_PRINT_STRING): Update call to printstr.
2357 * m2-lang.c (m2_printstr): Rename to m2_language::printstr.
2358 (m2_language_data): Delete la_printstr initializer.
2359 (m2_language::printstr): New member function, implementation from
2360 m2_printstr.
2361 * objc-lang.c (objc_language_data): Delete la_printstr
2362 initializer.
2363 * opencl-lang.c (opencl_language_data): Likewise.
2364 * p-lang.c (pascal_printstr): Rename to pascal_language::printstr.
2365 (pascal_language_data): Delete la_printstr initializer.
2366 (pascal_language::printstr): New member function, implementation
2367 from pascal_printstr.
2368 * p-lang.h (pascal_printstr): Delete declaration.
2369 * rust-lang.c (rust_printstr): Update header comment.
2370 (rust_language_data): Delete la_printstr initializer.
2371 (rust_language::printstr): New member function.
2372
52b50f2c
AB
23732020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
2374
2375 * ada-lang.c (ada_language_data): Delete la_printchar initializer.
2376 (ada_language::printchar): New member function.
2377 * c-lang.c (c_language_data): Delete la_printchar initializer.
2378 (cplus_language_data): Likewise.
2379 (asm_language_data): Likewise.
2380 (minimal_language_data): Likewise.
2381 * d-lang.c (d_language_data): Likewise.
2382 * f-lang.c (f_printchar): Rename to f_language::printchar.
2383 (f_language_data): Delete la_printchar initializer.
2384 (f_language::printchar): New member function, implementation from
2385 f_printchar.
2386 * go-lang.c (go_language_data): Delete la_printchar initializer.
2387 * language.c (unk_lang_printchar): Delete.
2388 (language_defn::printchar): Define new member function.
2389 (unknown_language_data): Delete la_printchar initializer.
2390 (unknown_language::printchar): New member function.
2391 (auto_language_data): Delete la_printchar initializer.
2392 (auto_language::printchar): New member function.
2393 * language.h (language_data): Delete la_printchar field.
2394 (language_defn::printchar): Declare new member function.
2395 (LA_PRINT_CHAR): Update call to printchar.
2396 * m2-lang.c (m2_language_data): Delete la_printchar initializer.
2397 (m2_language::printchar): New member function.
2398 * objc-lang.c (objc_language_data): Delete la_printchar
2399 initializer.
2400 * opencl-lang.c (opencl_language_data): Likewise.
2401 * p-lang.c (pascal_language_data): Delete la_printchar
2402 initializer.
2403 (pascal_language::printchar): New member function.
2404 * rust-lang.c (rust_printchar): Rename to
2405 rust_language::printchar.
2406 (rust_language_data): Delete la_printchar initializer.
2407 (rust_language::printchar): New member function, implementation
2408 from rust_printchar.
2409
ec8cec5b
AB
24102020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
2411
2412 * ada-lang.c (emit_char): Renamed to ada_language::emitchar.
2413 (ada_language_data): Delete la_emitchar initializer.
2414 (ada_language::emitchar): New member function, implementation from
2415 emit_char.
2416 * c-lang.c (c_language_data): Delete la_emitchar initializer.
2417 (cplus_language_data): Likewise.
2418 (asm_language_data): Likewise.
2419 (minimal_language_data): Likewise.
2420 * d-lang.c (d_language_data): Likewise.
2421 * f-lang.c (f_emit_char): Rename to f_language::emitchar.
2422 (f_language_data): Delete la_emitchar initializer.
2423 (f_language::emitchar): New member function, implementation from
2424 f_emit_char.
2425 * go-lang.c (go_language_data): Delete la_emitchar initializer.
2426 * language.c (unk_lang_emit_char): Delete.
2427 (language_defn::emitchar): New member function definition.
2428 (unknown_language_data): Delete la_emitchar initializer.
2429 (unknown_language::emitchar): New member function.
2430 (auto_language_data): Delete la_emitchar initializer.
2431 (auto_language::emitchar): New member function.
2432 * language.h (language_data): Delete la_emitchar field.
2433 (language_defn::emitchar): New member field declaration.
2434 (LA_EMIT_CHAR): Update call to emitchar.
2435 * m2-lang.c (m2_emit_char): Rename to m2_language::emitchar.
2436 (m2_language_data): Delete la_emitchar initializer.
2437 (m2_language::emitchar): New member function, implementation from
2438 m2_emit_char.
2439 * objc-lang.c (objc_language_data): Delete la_emitchar
2440 initializer.
2441 * opencl-lang.c (opencl_language_data): Likewise.
2442 * p-lang.c (pascal_emit_char): Rename to pascal_language::emitchar.
2443 (pascal_language_data): Delete la_emitchar initializer.
2444 (pascal_language::emitchar): New member function, implementation
2445 from pascal_emit_char.
2446 * rust-lang.c (rust_emitchar): Rename to rust_language::emitchar.
2447 (rust_language_data): Delete la_emitchar initializer.
2448 (rust_language::emitchar): New member function, implementation
2449 from rust_emitchar.
2450
1bf9c363
AB
24512020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
2452
2453 * ada-lang.c (resolve): Rename to ada_language::post_parser.
2454 (ada_language_data): Delete la_post_parser initializer.
2455 (ada_language::post_parser): New member function.
2456 * c-lang.c (c_language_data): Delete la_post_parser initializer.
2457 (cplus_language_data): Likewise.
2458 (asm_language_data): Likewise.
2459 (minimal_language_data): Likewise.
2460 * d-lang.c (d_language_data): Likewise.
2461 * f-lang.c (f_language_data): Likewise.
2462 * go-lang.c (go_language_data): Likewise.
2463 * language.c (unknown_language_data): Likewise.
2464 (auto_language_data): Likewise.
2465 * language.h (language_data): Delete la_post_parser field.
2466 (language_defn::post_parser): New member function.
2467 * m2-lang.c (m2_language_data): Delete la_post_parser initializer.
2468 * objc-lang.c (objc_language_data): Likewise.
2469 * opencl-lang.c (opencl_language_data): Likewise.
2470 * p-lang.c (pascal_language_data): Likewise.
2471 * parse.c (parse_exp_in_context): Update call to post_parser.
2472 (null_post_parser): Delete definition.
2473 * parser-defs.h (null_post_parser): Delete declaration.
2474 * rust-lang.c (rust_language_data): Delete la_post_parser
2475 initializer.
2476
87afa652
AB
24772020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
2478
2479 * ada-lang.c (parse): Rename to ada_language::parser.
2480 (ada_language_data): Delete la_parser initializer.
2481 (ada_language::parser): New member function, implementation from
2482 parse.
2483 * c-lang.c (c_language_data): Delete la_parser initializer.
2484 (cplus_language_data): Likewise.
2485 (asm_language_data): Likewise.
2486 (minimal_language_data): Likewise.
2487 * d-lang.c (d_language_data): Likewise.
2488 (d_language::parser): New member function.
2489 * f-lang.c (f_language_data): Delete la_parser initializer.
2490 (f_language::parser): New member function.
2491 * go-lang.c (go_language_data): Delete la_parser initializer.
2492 (go_language::parser): New member function.
2493 * language.c (unk_lang_parser): Delete.
2494 (language_defn::parser): Define new member function.
2495 (unknown_language_data): Delete la_parser initializer.
2496 (unknown_language::parser): New member function.
2497 (auto_language_data): Delete la_parser initializer.
2498 (auto_language::parser): New member function.
2499 * language.h (language_data): Delete la_parser field.
2500 (language_defn::parser): Declare new member function.
2501 * m2-lang.c (m2_language_data): Delete la_parser initializer.
2502 (m2_language::parser): New member function.
2503 * objc-lang.c (objc_language_data): Delete la_parser initializer.
2504 * opencl-lang.c (opencl_language_data): Likewise.
2505 * p-lang.c (pascal_language_data): Likewise.
2506 (pascal_language::parser): New member function.
2507 * parse.c (parse_exp_in_context): Update call to parser.
2508 * rust-lang.c (rust_language_data): Delete la_parser initializer.
2509 (rust_language::parser): New member function.
2510
37825800
AB
25112020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
2512
2513 * top.c (print_gdb_configuration): Print --with-python-libdir
2514 configuration value.
2515
5b860c93
PW
25162020-06-22 Philippe Waroquiers <philippe.waroquiers@skynet.be>
2517
2518 * NEWS: Mention change to the alias command.
2519
cf00cd6f
PW
25202020-06-22 Philippe Waroquiers <philippe.waroquiers@skynet.be>
2521
2522 * cli/cli-cmds.c (lookup_cmd_for_default_args)
2523 (alias_command_completer)
2524 (make_alias_options_def_group): New functions.
2525 (alias_opts, alias_option_defs): New struct and array.
2526 (alias_usage_error): Update usage.
2527 (alias_command): Handles optional DEFAULT-ARGS... arguments.
2528 Use option framework.
2529 (_initialize_cli_cmds): Update alias command help.
2530 Update aliases command help.
2531 (show_user):
2532 Add NULL for new default_args lookup_cmd argument.
2533 (valid_command_p): Rename to validate_aliased_command.
2534 Add NULL for new default_args lookup_cmd argument. Verify that the
2535 aliased_command has no default args.
2536 * cli/cli-decode.c (help_cmd): Show aliases definitions.
2537 (lookup_cmd_1, lookup_cmd): New argument default_args.
2538 (add_alias_cmd):
2539 Add NULL for new default_args lookup_cmd argument.
2540 (print_help_for_command): Show default args under the layout
2541 alias some_alias = some_aliased_cmd some_alias_default_arg.
2542 * cli/cli-decode.h (struct cmd_list_element): New member default_args.
2543 xfree default_args in destructor.
2544 * cli/cli-script.c (process_next_line, do_define_command):
2545 Add NULL for new default_args lookup_cmd argument.
2546 * command.h: Declare new default_args argument in lookup_cmd
2547 and lookup_cmd_1.
2548 * completer.c (complete_line_internal_1):
2549 Add NULL for new default_args lookup_cmd or lookup_cmd_1 argument.
2550 * guile/scm-cmd.c (gdbscm_parse_command_name): Likewise.
2551 * guile/scm-param.c (add_setshow_generic, pascm_parameter_defined_p):
2552 Likewise.
2553 * infcmd.c (_initialize_infcmd): Likewise.
2554 * python/py-auto-load.c (gdbpy_initialize_auto_load): Likewise.
2555 * python/py-cmd.c (gdbpy_parse_command_name): Likewise.
2556 * python/py-param.c (add_setshow_generic): Likewise.
2557 * remote.c (_initialize_remote): Likewise.
2558 * top.c (execute_command): Prepend default_args if command has some.
2559 (set_verbose):
2560 Add NULL for new default_args lookup_cmd or lookup_cmd_1 argument.
2561 * tracepoint.c (validate_actionline, encode_actions_1):
2562 Add NULL for new default_args lookup_cmd or lookup_cmd_1 argument.
2563
bd920864
TBA
25642020-06-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2565
2566 * jit.c (jit_read_descriptor): Use bool as the return type.
2567 (jit_breakpoint_re_set_internal): Use bool as the return type.
2568 Invert the return value logic; return true if the jit breakpoint
2569 has been successfully initialized.
2570 (jit_inferior_init): Update the call to
2571 jit_breakpoint_re_set_internal.
2572
f8098322
PA
25732020-06-22 Pedro Alves <palves@redhat.com>
2574
2575 PR gdb/25939
2576 * procfs.c (procfs_target::wait): Don't reference inferior_ptid.
2577 Use the current inferior instead. Don't return
2578 TARGET_WAITKIND_SPURIOUS/inferior_ptid -- instead continue and
2579 wait again.
2580 * sol-thread.c (sol_thread_target::wait): Don't reference
2581 inferior_ptid.
2582 (ps_lgetregs, ps_lsetregs, ps_lgetfpregs, ps_lsetfpregs)
2583 (sol_update_thread_list_callback): Use the current inferior's pid
2584 instead of inferior_ptid.
2585
196535a6
RO
25862020-06-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2587
2588 * procfs.c: Cleanup many comments.
2589
2590 (READ_WATCHFLAG, WRITE_WATCHFLAG, EXEC_WATCHFLAG)
2591 (AFTER_WATCHFLAG): Replace by value.
2592
2593 (MAIN_PROC_NAME_FORMAT): Inline ...
2594 (create_procinfo): ... here.
2595
2596 (procfs_debug_inferior): Remove SYS_exec handling.
2597 (syscall_is_exec): Likewise.
2598 (procfs_set_exec_trap): Likewise.
2599
2600 (syscall_is_lwp_exit): Inline in callers.
2601 (syscall_is_exit): Likewise.
2602 (syscall_is_exec): Likewise.
2603 (syscall_is_lwp_create): Likewise.
2604
2605 (invalidate_cache): Remove #if 0 code.
2606
2607 (make_signal_thread_runnable): Remove.
2608 (procfs_target::resume): Remove #if 0 code.
2609
cf6f3e86
RO
26102020-06-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2611
2612 PR gdb/25939
2613 * procfs.c (procfs_target::procfs_init_inferior): Move push_target
2614 call ...
2615 (procfs_target::create_inferior): ... here.
2616
48e9cc84
PW
26172020-06-21 Philippe Waroquiers <philippe.waroquiers@skynet.be>
2618
2619 * exec.c (validate_exec_file): Ensure the build-id is up to
2620 date by calling reopen_exec_file (that checks file timestamp
2621 to decide to re-read the file).
2622
3922b302
PA
26232020-06-18 Pedro Alves <palves@redhat.com>
2624
2625 PR gdb/25412
2626 * gdbthread.h (delete_thread, delete_thread_silent)
2627 (find_thread_ptid): Update comments.
2628 * thread.c (current_thread_): New global.
2629 (is_current_thread): Move higher, and reimplement.
2630 (inferior_thread): Reimplement.
2631 (set_thread_exited): Use bool. Add assertions.
2632 (add_thread_silent): Simplify thread-reuse handling by always
2633 calling delete_thread.
2634 (delete_thread): Remove intro comment.
2635 (find_thread_ptid): Skip exited threads.
2636 (switch_to_thread_no_regs): Write to current_thread_.
2637 (switch_to_no_thread): Check CURRENT_THREAD_ instead of
2638 INFERIOR_PTID. Clear current_thread_.
2639
6dbdab44
PA
26402020-06-18 Pedro Alves <palves@redhat.com>
2641
2642 * aix-thread.c (pd_update): Use switch_to_thread.
2643
2da4b788
PA
26442020-06-18 Pedro Alves <palves@redhat.com>
2645
2646 * ravenscar-thread.c (ravenscar_thread_target): Update.
2647 (ravenscar_thread_target::update_inferior_ptid): Rename to ...
2648 (ravenscar_thread_target::add_active_thread): ... this. Don't
2649 set m_base_ptid here. Update to avoid referencing inferior_ptid.
2650 (ravenscar_thread_target::wait): Don't write to inferior_ptid.
2651
50838d1b
PA
26522020-06-18 Pedro Alves <palves@redhat.com>
2653
2654 * nat/windows-nat.c (current_windows_thread): Remove.
2655 * nat/windows-nat.h (current_windows_thread): Remove.
2656 * windows-nat.c (windows_nat_target::stopped_by_sw_breakpoint):
2657 Adjust.
2658 (display_selectors): Adjust to fetch the current
2659 windows_thread_info based on inferior_ptid.
2660 (fake_create_process): No longer write to current_windows_thread.
2661 (windows_nat_target::get_windows_debug_event):
2662 Don't set inferior_ptid or current_windows_thread.
2663 (windows_nat_target::wait): Adjust to not rely on
2664 current_windows_thread.
2665 (do_initial_windows_stuff): Now a method of windows_nat_target.
2666 Switch to the last_ptid thread.
2667 (windows_nat_target::attach): Adjust.
2668 (windows_nat_target::detach): Use switch_to_no_thread instead of
2669 writing to inferior_ptid directly.
2670 (windows_nat_target::create_inferior): Adjust.
2671
31ce04e9
PA
26722020-06-18 Pedro Alves <palves@redhat.com>
2673
2674 * windows-nat.c (do_initial_windows_stuff): No longer set inferior_ptid.
2675
1ee1a363
PA
26762020-06-18 Pedro Alves <palves@redhat.com>
2677
2678 * go32-nat.c (go32_nat_target::create_inferior): Switch to thread
2679 after creating it, instead of writing to inferior_ptid. Don't
2680 write to inferior_ptid.
2681
6d350754
PA
26822020-06-18 Pedro Alves <palves@redhat.com>
2683
2684 * fork-child.c (postfork_hook): Don't write to inferior_ptid.
2685
5d971d48
PA
26862020-06-18 Pedro Alves <palves@redhat.com>
2687
2688 * bsd-kvm.c (bsd_kvm_target_open): Switch to thread after adding
2689 it, instead of writing to inferior_ptid.
2690
86e57d1b
PA
26912020-06-18 Pedro Alves <palves@redhat.com>
2692
2693 * btrace.c (btrace_fetch): Use switch_to_thread instead of writing
2694 to inferior_ptid.
2695
f2e1c129
PA
26962020-06-18 Pedro Alves <palves@redhat.com>
2697
2698 * bsd-kvm.c (bsd_kvm_target::close): Use switch_to_no_thread
2699 instead of writing to inferior_ptid directly.
2700
60db1b85
PA
27012020-06-18 Pedro Alves <palves@redhat.com>
2702
2703 * corelow.c (core_target::close): Use switch_to_no_thread instead
2704 of writing to inferior_ptid directly.
2705 (add_to_thread_list, core_target_open): Use switch_to_thread
2706 instead of writing to inferior_ptid directly.
2707
fe7d6a8d
PA
27082020-06-18 Pedro Alves <palves@redhat.com>
2709
2710 * darwin-nat.c (darwin_nat_target::decode_message): Don't write to
2711 inferior_ptid.
2712 (darwin_nat_target::stop_inferior, darwin_nat_target::kill): Avoid
2713 inferior_ptid.
2714 (darwin_attach_pid): Use switch_to_no_thread instead of writing to
2715 inferior_ptid directly.
2716 (darwin_nat_target::init_thread_list): Switch to thread, instead
2717 of writing to inferior_ptid.
2718 (darwin_nat_target::attach): Don't write to inferior_ptid.
2719 (darwin_nat_target::get_ada_task_ptid): Avoid inferior_ptid.
2720
975f8708
PA
27212020-06-18 Pedro Alves <palves@redhat.com>
2722
2723 * gnu-nat.c (gnu_nat_target::create_inferior): Switch to the added
2724 thread.
2725 (gnu_nat_target::attach): Don't write to inferior_ptid directly.
2726 Instead use switch_to_thread.
2727 (gnu_nat_target::detach): Use switch_to_no_thread
2728 instead of writing to inferior_ptid directly. Used passed-in
2729 inferior instead of looking up the inferior by pid.
2730
1a204730
PA
27312020-06-18 Pedro Alves <palves@redhat.com>
2732
2733 * go32-nat.c (go32_nat_target::create_inferior): Don't write to
2734 inferior_ptid.
2735
ebe84f23
PA
27362020-06-18 Pedro Alves <palves@redhat.com>
2737
2738 * nto-procfs.c (nto_procfs_target::update_thread_list): Avoid
2739 inferior_ptid.
2740 (nto_procfs_target::attach): Avoid inferior_ptid. Switch to
2741 thread.
2742 (nto_procfs_target::detach): Avoid referencing
2743 inferior_ptid. Use switch_to_no_thread instead of writing to
2744 inferior_ptid directly.
2745 (nto_procfs_target::mourn_inferior): Use switch_to_no_thread
2746 instead of writing to inferior_ptid directly.
2747 (nto_procfs_target::create_inferior): Avoid inferior_ptid. Switch
2748 to thread.
2749
191f02e5
PA
27502020-06-18 Pedro Alves <palves@redhat.com>
2751
2752 * remote-sim.c (gdbsim_target::create_inferior): Switch to thread
2753 after creating it, instead of writing to inferior_ptid.
2754 (gdbsim_target_open): Use switch_to_no_thread instead of writing
2755 to inferior_ptid directly.
2756 (gdbsim_target::wait): Don't write to inferior_ptid.
2757
0ac55310
PA
27582020-06-18 Pedro Alves <palves@redhat.com>
2759
2760 * remote.c (remote_target::remote_notice_new_inferior): Use
2761 switch_to_thread instead of writing to inferior_ptid directly.
2762 (remote_target::add_current_inferior_and_thread): Use
2763 switch_to_no_thread instead of writing to inferior_ptid directly.
2764 (extended_remote_target::attach): Use switch_to_inferior_no_thread
2765 and switch_to_thread instead of using set_current_inferior or
2766 writing to inferior_ptid directly.
2767
5233f39b
PA
27682020-06-18 Pedro Alves <palves@redhat.com>
2769
2770 * tracectf.c (ctf_target_open): Switch to added thread instead of
2771 writing to inferior_ptid directly.
2772 (ctf_target::close): Use switch_to_no_thread instead of writing to
2773 inferior_ptid directly.
2774
087e161b
PA
27752020-06-18 Pedro Alves <palves@redhat.com>
2776
2777 * tracefile-tfile.c (tfile_target_open): Don't write to
2778 inferior_ptid directly, instead switch to added thread.
2779 (tfile_target::close): Use switch_to_no_thread instead of writing
2780 to inferior_ptid directly.
2781
7fb43e53
PA
27822020-06-18 Pedro Alves <palves@redhat.com>
2783
2784 * procfs.c (procfs_target::attach): Don't write to inferior_ptid.
2785 (procfs_target::detach): Use switch_to_no_thread
2786 instead of writing to inferior_ptid directly.
2787 (do_attach): Change return type to void. Switch to the added
2788 thread.
2789 (procfs_target::create_inferior): Switch to the added thread.
2790 (procfs_do_thread_registers): Don't write to inferior_ptid.
2791
18493a00
PA
27922020-06-18 Pedro Alves <palves@redhat.com>
2793
2794 * infrun.c (generic_mourn_inferior): Use switch_to_thread instead
2795 of writing to inferior_ptid.
2796 (scoped_restore_exited_inferior): Delete.
2797 (handle_vfork_child_exec_or_exit): Simplify using
2798 scoped_restore_current_pspace_and_thread. Use switch_to_thread
2799 instead of writing to inferior_ptid.
2800 (THREAD_STOPPED_BY): Delete.
2801 (thread_stopped_by_watchpoint, thread_stopped_by_sw_breakpoint)
2802 (thread_stopped_by_hw_breakpoint): Delete.
2803 (save_waitstatus): Use
2804 scoped_restore_current_thread+switch_to_thread, and call
2805 target_stopped_by_watchpoint instead of
2806 thread_stopped_by_watchpoint, target_stopped_by_sw_breakpoint
2807 instead of thread_stopped_by_sw_breakpoint, and
2808 target_stopped_by_hw_breakpoint instead of
2809 thread_stopped_by_hw_breakpoint.
2810 (handle_inferior_event)
2811 <TARGET_WAITKIND_EXITED/TARGET_WAITKIND_SIGNALLED>: Don't write to
2812 inferior_ptid directly, nor
2813 set_current_inferior/set_current_program_space. Use
2814 switch_to_thread / switch_to_inferior_no_thread instead.
2815
a0776b13
PA
28162020-06-18 Pedro Alves <palves@redhat.com>
2817
2818 * target.c (generic_mourn_inferior): Use switch_to_no_thread
2819 instead of writing to inferior_ptid.
2820
6155c136
PA
28212020-06-18 Pedro Alves <palves@redhat.com>
2822
2823 * inf-ptrace.c (inf_ptrace_target::create_inferior): Switch to the
2824 added thread.
2825 (inf_ptrace_target::attach): Don't write to inferior_ptid. Switch
2826 to the added thread.
2827 (inf_ptrace_target::detach_success): Use switch_to_no_thread
2828 instead of writing to inferior_ptid.
2829
c5316fc6
PA
28302020-06-18 Pedro Alves <palves@redhat.com>
2831
2832 * gdbarch-selftests.c: Include "progspace-and-thread.h".
2833 (register_to_value_test): Mock a program_space too. Heap-allocate
2834 the address space. Don't write to inferior_ptid. Use
2835 switch_to_thread instead.
2836
8df01799
PA
28372020-06-18 Pedro Alves <palves@redhat.com>
2838
2839 * linux-tdep.c (find_signalled_thread(thread_info *,void *)):
2840 Delete.
2841 (find_signalled_thread()): New, factored out from
2842 linux_make_corefile_notes and adjusted to handle exited threads.
2843 (linux_make_corefile_notes): Adjust to use the new
2844 find_signalled_thread.
2845
41792d68
PA
28462020-06-18 Pedro Alves <palves@redhat.com>
2847
2848 * linux-tdep.c (btrace_fetch): Save/restore current thread instead
2849 of saving/restoring inferior_ptid.
2850
612f258a
TT
28512020-06-17 Tom Tromey <tom@tromey.com>
2852
2853 * tui/tui-win.h (tui_scroll_forward, tui_scroll_backward)
2854 (tui_scroll_left, tui_scroll_right, struct tui_win_info): Don't
2855 declare.
2856 * tui/tui-data.h (MIN_CMD_WIN_HEIGHT): Remove.
2857
efb763a5
SM
28582020-06-15 Simon Marchi <simon.marchi@efficios.com>
2859
2860 * dwarf2/read.c (dwarf2_initialize_objfile): Check for presence
2861 of partial symtabs.
2862
2951f6c0
SM
28632020-06-17 Simon Marchi <simon.marchi@efficios.com>
2864
2865 * regformats/reg-arm.dat: Remove.
2866 * regformats/reg-bfin.dat: Remove.
2867 * regformats/reg-cris.dat: Remove.
2868 * regformats/reg-crisv32.dat: Remove.
2869 * regformats/reg-m32r.dat: Remove.
2870 * regformats/reg-tilegx.dat: Remove.
2871 * regformats/reg-tilegx32.dat: Remove.
2872
7d458ea5
SM
28732020-06-17 Simon Marchi <simon.marchi@efficios.com>
2874
2875 * features/Makefile (WHICH): Remove arm files.
2876 * regformats/arm/arm-with-iwmmxt.dat: Remove.
2877 * regformats/arm/arm-with-neon.dat: Remove.
2878 * regformats/arm/arm-with-vfpv2.dat: Remove.
2879 * regformats/arm/arm-with-vfpv3.dat: Remove.
2880
3af96c0d
SM
28812020-06-17 Simon Marchi <simon.marchi@efficios.com>
2882
2883 * features/Makefile (XMLTOC): Remove rx.xml.
2884
b25e22fd
PA
28852020-06-17 Pedro Alves <palves@redhat.com>
2886
2887 * gdbthread.h (thread_control_state) <trap_expected> Update
2888 comments.
2889
a78a19b1
AB
28902020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
2891
2892 * ada-lang.c (ada_lookup_symbol_nonlocal): Rename to
2893 ada_language::lookup_symbol_nonlocal.
2894 (ada_language_data): Delete la_lookup_symbol_nonlocal initializer.
2895 (ada_language::lookup_symbol_nonlocal): New member function,
2896 implementation from ada_lookup_symbol_nonlocal.
2897 * c-lang.c (c_language_data): Delete la_lookup_symbol_nonlocal
2898 initializer.
2899 (cplus_language_data): Delete la_lookup_symbol_nonlocal
2900 initializer.
2901 (cplus_language::lookup_symbol_nonlocal): New member function.
2902 (asm_language_data): Delete la_lookup_symbol_nonlocal initializer.
2903 (minimal_language_data) Likewise.
2904 * cp-namespace.c (cp_lookup_nested_symbol): Update comment.
2905 * d-lang.c (d_language_data): Delete la_lookup_symbol_nonlocal
2906 initializer.
2907 (d_language::lookup_symbol_nonlocal): New member function.
2908 * f-lang.c (f_language_data): Delete la_lookup_symbol_nonlocal
2909 initializer.
2910 (f_language::lookup_symbol_nonlocal): New member function.
2911 * go-lang.c (go_language_data): Delete la_lookup_symbol_nonlocal
2912 initializer.
2913 * language.c (unknown_language_data): Likewise.
2914 (auto_language_data): Likewise.
2915 * language.h (language_data): Delete la_lookup_symbol_nonlocal
2916 field.
2917 (language_defn::lookup_symbol_nonlocal): New member function.
2918 * m2-lang.c (m2_language_data): Delete la_lookup_symbol_nonlocal
2919 initializer.
2920 * objc-lang.c (objc_language_data): Likewise.
2921 * opencl-lang.c (opencl_language_data): Likewise.
2922 * p-lang.c (pascal_language_data): Likewise.
2923 * rust-lang.c (rust_lookup_symbol_nonlocal): Rename to
2924 rust_language::lookup_symbol_nonlocal.
2925 (rust_language_data): Delete la_lookup_symbol_nonlocal
2926 initializer.
2927 (rust_language::lookup_symbol_nonlocal): New member function,
2928 implementation from rust_lookup_symbol_nonlocal.
2929 * symtab.c (lookup_symbol_aux): Update call to
2930 lookup_symbol_nonlocal.
2931 (basic_lookup_symbol_nonlocal): Rename to...
2932 (language_defn::lookup_symbol_nonlocal): ...this, and update
2933 header comment. Remove language_defn parameter, and replace with
2934 uses of `this'.
2935 * symtab.h (basic_lookup_symbol_nonlocal): Delete declaration.
2936
ebe2334e
AB
29372020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
2938
2939 * ada-lang.c (ada_language_data): Delete la_value_print_inner
2940 initializer.
2941 (ada_language::value_print_inner): New member function.
2942 * c-lang.c (c_language_data): Delete la_value_print_inner
2943 initializer.
2944 (cplus_language_data): Likewise.
2945 (asm_language_data): Likewise.
2946 (minimal_language_data): Likewise.
2947 * d-lang.c (d_language_data): Likewise.
2948 (d_language::value_print_inner): New member function.
2949 * f-lang.c (f_language_data): Delete la_value_print_inner
2950 initializer.
2951 (f_language::value_print_inner): New member function.
2952 * f-lang.h (f_value_print_innner): Rename to...
2953 (f_value_print_inner): ...this (note spelling of 'inner').
2954 * f-valprint.c (f_value_print_innner): Rename to...
2955 (f_value_print_inner): ...this (note spelling of 'inner').
2956 * go-lang.c (go_language_data): Delete la_value_print_inner
2957 initializer.
2958 (go_language::value_print_inner): New member function.
2959 * language.c (language_defn::value_print_inner): Define new member
2960 function.
2961 (unk_lang_value_print_inner): Delete.
2962 (unknown_language_data): Delete la_value_print_inner initializer.
2963 (unknown_language::value_print_inner): New member function.
2964 (auto_language_data): Delete la_value_print_inner initializer.
2965 (auto_language::value_print_inner): New member function.
2966 * language.h (language_data): Delete la_value_print_inner field.
2967 (language_defn::value_print_inner): Delcare new member function.
2968 * m2-lang.c (m2_language_data): Delete la_value_print_inner
2969 initializer.
2970 (m2_language::value_print_inner): New member function.
2971 * objc-lang.c (objc_language_data): Delete la_value_print_inner
2972 initializer.
2973 * opencl-lang.c (opencl_language_data): Likewise.
2974 * p-lang.c (pascal_language_data): Likewise.
2975 (pascal_language::value_print_inner): New member function.
2976 * rust-lang.c (rust_language_data): Delete la_value_print_inner
2977 initializer.
2978 (rust_language::value_print_inner): New member function.
2979 * valprint.c (do_val_print): Update call to value_print_inner.
2980
a1d1fa3e
AB
29812020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
2982
2983 * ada-lang.c (ada_language_data): Delete la_value_print
2984 initializer.
2985 (ada_language::value_print): New member function.
2986 * c-lang.c (c_language_data): Delete la_value_print initializer.
2987 (cplus_language_data): Likewise.
2988 (asm_language_data): Likewise.
2989 (minimal_language_data): Likewise.
2990 * d-lang.c (d_language_data): Likewise.
2991 * f-lang.c (f_language_data): Likewise.
2992 * go-lang.c (go_language_data): Likewise.
2993 * language.c (unk_lang_value_print): Delete.
2994 (language_defn::value_print): Define new member function.
2995 (unknown_language_data): Delete la_value_print initializer.
2996 (unknown_language::value_print): New member function.
2997 (auto_language_data): Delete la_value_print initializer.
2998 (auto_language::value_print): New member function.
2999 * language.h (language_data): Delete la_value_print field.
3000 (language_defn::value_print): Declare new member function.
3001 (LA_VALUE_PRINT): Update call to value_print.
3002 * m2-lang.c (m2_language_data): Delete la_value_print initializer.
3003 * objc-lang.c (objc_language_data): Likewise.
3004 * opencl-lang.c (opencl_language_data): Likewise.
3005 * p-lang.c (pascal_language_data): Likewise.
3006 (pascal_language::value_print): New member function.
3007 * rust-lang.c (rust_language_data): Delete la_value_print
3008 initializer.
3009
f16a9f57
AB
30102020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
3011
3012 * ada-lang.c (ada_watch_location_expression): Rename to
3013 ada_language::watch_location_expression.
3014 (ada_language_data): Delete la_watch_location_expression
3015 initializer.
3016 (ada_language::watch_location_expression): New member function,
3017 implementation from ada_watch_location_expression.
3018 * breakpoint.c (watch_command_1): Update call to
3019 watch_location_expression.
3020 * c-lang.c (c_watch_location_expression): Rename to
3021 language_defn::watch_location_expression.
3022 (c_language_data): Delete la_watch_location_expression
3023 initializer.
3024 (cplus_language_data): Likewise.
3025 (asm_language_data): Likewise.
3026 (minimal_language_data): Likewise.
3027 * c-lang.h (c_watch_location_expression): Delete declaration.
3028 * d-lang.c (d_language_data): Delete la_watch_location_expression
3029 initializer.
3030 * f-lang.c (f_language_data): Likewise.
3031 * go-lang.c (go_language_data): Likewise.
3032 * language.c (language_defn::watch_location_expression): Member
3033 function implementation from c_watch_location_expression.
3034 (unknown_language_data): Delete la_watch_location_expression
3035 initializer.
3036 (auto_language_data): Likewise.
3037 * language.h (language_data): Delete la_watch_location_expression
3038 field.
3039 (language_defn::watch_location_expression): Declare new member
3040 function.
3041 * m2-lang.c (m2_language_data): Delete
3042 la_watch_location_expression initializer.
3043 * objc-lang.c (objc_language_data): Likewise.
3044 * opencl-lang.c (opencl_language_data): Likewise.
3045 * p-lang.c (pascal_language_data): Likewise.
3046 * rust-lang.c (rust_watch_location_expression): Rename to
3047 rust_language::watch_location_expression.
3048 (rust_language_data): Delete la_watch_location_expression
3049 initializer.
3050 (rust_language::watch_location_expression): New member function,
3051 implementation from rust_watch_location_expression.
3052
7e56227d
AB
30532020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
3054
3055 * ada-lang.c (ada_collect_symbol_completion_matches): Rename to
3056 ada_language::collect_symbol_completion_matches.
3057 (ada_language_data): Delete la_collect_symbol_completion_matches
3058 initializer.
3059 (ada_language::collect_symbol_completion_matches): New member
3060 function, implementation from
3061 ada_collect_symbol_completion_matches.
3062 * c-lang.c (c_language_data): Delete
3063 la_collect_symbol_completion_matches initializer.
3064 (cplus_language_data): Likewise.
3065 (asm_language_data): Likewise.
3066 (minimal_language_data): Likewise.
3067 * d-lang.c (d_language_data): Likewise.
3068 * f-lang.c (f_collect_symbol_completion_matches): Rename to
3069 f_language::collect_symbol_completion_matches.
3070 (f_language_data): Delete la_collect_symbol_completion_matches
3071 initializer.
3072 (f_language::collect_symbol_completion_matches) New member
3073 function, implementation from f_collect_symbol_completion_matches.
3074 * go-lang.c (go_language_data): Delete
3075 la_collect_symbol_completion_matches initializer.
3076 * language.c (unknown_language_data): Likewise.
3077 (auto_language_data): Likewise.
3078 * language.h (language_data): Delete
3079 la_collect_symbol_completion_matches field.
3080 (language_defn::collect_symbol_completion_matches): New member
3081 function.
3082 * m2-lang.c (m2_language_data): Delete
3083 la_collect_symbol_completion_matches initializer.
3084 * objc-lang.c (objc_language_data): Likewise.
3085 * opencl-lang.c (opencl_language_data): Likewise.
3086 * p-lang.c (pascal_language_data): Likewise.
3087 * rust-lang.c (rust_language_data): Likewise.
3088 * symtab.c (default_collect_symbol_completion_matches): Delete.
3089 (collect_symbol_completion_matches): Update call to
3090 collect_symbol_completion_matches.
3091 (collect_symbol_completion_matches_type): Likewise.
3092 * symtab.h (default_collect_symbol_completion_matches): Delete
3093 declaration.
3094
53fc67f8
AB
30952020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
3096
3097 * ada-lang.c (ada_get_gdb_completer_word_break_characters): Delete.
3098 (ada_language_data): Delete la_word_break_characters initializer.
3099 (ada_language::word_break_characters): New member function.
3100 * c-lang.c (c_language_data): Delete la_word_break_characters
3101 initializer.
3102 (cplus_language_data): Likewise.
3103 (asm_language_data): Likewise.
3104 (minimal_language_data): Likewise.
3105 * completer.c: Update global comment.
3106 (advance_to_expression_complete_word_point): Update call to
3107 word_break_characters.
3108 (complete_files_symbols): Likewise.
3109 (complete_line_internal_1): Likewise.
3110 (default_completer_handle_brkchars): Likewise.
3111 (skip_quoted_chars): Likewise.
3112 * d-lang.c (d_language_data): Delete la_word_break_characters
3113 initializer.
3114 * f-lang.c (f_word_break_characters): Delete.
3115 (f_language_data): Delete la_word_break_characters initializer.
3116 (f_language::word_break_characters): New member function.
3117 * go-lang.c (go_language_data): Delete la_word_break_characters
3118 initializer.
3119 * language.c (unknown_language_data): Likewise.
3120 (auto_language_data): Likewise.
3121 * language.h (default_word_break_characters): Move declaration to
3122 earlier in the file.
3123 (language_data): Delete la_word_break_characters field.
3124 (language_defn::word_break_characters): New member function.
3125 * m2-lang.c (m2_language_data): Delete la_word_break_characters
3126 initializer.
3127 * objc-lang.c (objc_language_data): Likewise.
3128 * opencl-lang.c (opencl_language_data): Likewise.
3129 * p-lang.c (pascal_language_data): Likewise.
3130 * rust-lang.c (rust_language_data): Likewise.
3131
c9debfb9
AB
31322020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
3133
3134 * ada-lang.c (ada_get_symbol_name_matcher): Update header comment.
3135 (ada_language_data): Delete la_get_symbol_name_matcher
3136 initializer.
3137 (language_defn::get_symbol_name_matcher_inner): New member
3138 function.
3139 * c-lang.c (c_language_data): Delete la_get_symbol_name_matcher
3140 initializer.
3141 (cplus_language_data): Likewise.
3142 (cplus_language::get_symbol_name_matcher_inner): New member
3143 function.
3144 (asm_language_data): Delete la_get_symbol_name_matcher initializer.
3145 (minimal_language_data): Likewise.
3146 * cp-support.h (cp_get_symbol_name_matcher): Update header comment.
3147 * d-lang.c (d_language_data): Delete la_get_symbol_name_matcher
3148 initializer.
3149 * dictionary.c (iter_match_first_hashed): Update call to
3150 get_symbol_name_matcher.
3151 (iter_match_next_hashed): Likewise.
3152 (iter_match_next_linear): Likewise.
3153 * dwarf2/read.c (dw2_expand_symtabs_matching_symbol): Likewise.
3154 * f-lang.c (f_language_data): Delete la_get_symbol_name_matcher
3155 initializer.
3156 (f_language::get_symbol_name_matcher_inner): New member function.
3157 * go-lang.c (go_language_data): Delete la_get_symbol_name_matcher
3158 initializer.
3159 * language.c (default_symbol_name_matcher): Update header comment,
3160 make static.
3161 (language_defn::get_symbol_name_matcher): New definition.
3162 (language_defn::get_symbol_name_matcher_inner): Likewise.
3163 (get_symbol_name_matcher): Delete.
3164 (unknown_language_data): Delete la_get_symbol_name_matcher
3165 initializer.
3166 (auto_language_data): Likewise.
3167 * language.h (language_data): Delete la_get_symbol_name_matcher
3168 field.
3169 (language_defn::get_symbol_name_matcher): New member function.
3170 (language_defn::get_symbol_name_matcher_inner): Likewise.
3171 (default_symbol_name_matcher): Delete declaration.
3172 * linespec.c (find_methods): Update call to
3173 get_symbol_name_matcher.
3174 * m2-lang.c (m2_language_data): Delete la_get_symbol_name_matcher
3175 initializer.
3176 * minsyms.c (lookup_minimal_symbol): Update call to
3177 get_symbol_name_matcher.
3178 (iterate_over_minimal_symbols): Likewise.
3179 * objc-lang.c (objc_language_data): Delete
3180 la_get_symbol_name_matcher initializer.
3181 * opencl-lang.c (opencl_language_data): Likewise.
3182 * p-lang.c (pascal_language_data): Likewise.
3183 * psymtab.c (psymbol_name_matches): Update call to
3184 get_symbol_name_matcher.
3185 * rust-lang.c (rust_language_data): Delete
3186 la_get_symbol_name_matcher initializer.
3187 * symtab.c (symbol_matches_search_name): Update call to
3188 get_symbol_name_matcher.
3189 (compare_symbol_name): Likewise.
3190
9a49ad8c
AB
31912020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
3192
3193 * ada-lang.c (ada_language_data): Delete la_compute_program
3194 initializer.
3195 * c-lang.c (c_language_data): Likewise.
3196 (c_language::compute_program): New member function.
3197 (cplus_language_data): Delete la_compute_program initializer.
3198 (cplus_language::compute_program): New member function.
3199 (asm_language_data): Delete la_compute_program initializer.
3200 (minimal_language_data): Likewise.
3201 * c-lang.h (c_compute_program): Update comment.
3202 (cplus_compute_program): Likewise.
3203 * compile/compile-c-support.c (c_compute_program): Likewise.
3204 (cplus_compute_program): Likewise.
3205 * compile/compile.c (compile_to_object): Update call to
3206 la_compute_program.
3207 * d-lang.c (d_language_data): Delete la_compute_program
3208 initializer.
3209 * f-lang.c (f_language_data): Likewise.
3210 * go-lang.c (go_language_data): Likewise.
3211 * language.c (unknown_language_data): Likewise.
3212 (auto_language_data): Likewise.
3213 * language.h (language_data): Delete la_compute_program field.
3214 (language_defn::compute_program): New member function.
3215 * m2-lang.c (m2_language_data): Delete la_compute_program
3216 initializer.
3217 * objc-lang.c (objc_language_data): Likewise.
3218 * opencl-lang.c (opencl_language_data): Likewise.
3219 * p-lang.c (pascal_language_data): Likewise.
3220 * rust-lang.c (rust_language_data): Likewise.
3221
eff93b4d
AB
32222020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
3223
3224 * ada-lang.c (ada_language_data) Delete
3225 la_class_name_from_physname initializer.
3226 * c-lang.c (c_language_data): Likewise.
3227 (cplus_language_data): Likewise.
3228 (cplus_language::class_name_from_physname): New member function.
3229 (asm_language_data): Delete la_class_name_from_physname
3230 initializer.
3231 (minimal_language_data): Likewise.
3232 * d-lang.c (d_language_data): Likewise.
3233 * dwarf2/read.c (guess_partial_die_structure_name): Update to call
3234 method on language_defn class.
3235 (guess_full_die_structure_name): Likewise.
3236 * f-lang.c (f_language_data): Delete la_class_name_from_physname
3237 initializer.
3238 * go-lang.c (go_language_data): Likewise.
3239 * language.c (language_class_name_from_physname): Delete.
3240 (unk_lang_class_name): Delete.
3241 (unknown_language_data): Delete la_class_name_from_physname
3242 initializer.
3243 (auto_language_data): Likewise.
3244 * language.h (language_data): Delete la_class_name_from_physname
3245 field.
3246 (language_defn::class_name_from_physname): New function.
3247 (language_class_name_from_physname): Delete declaration.
3248 * m2-lang.c (m2_language_data): Delete la_class_name_from_physname
3249 initializer.
3250 * objc-lang.c (objc_language_data): Likewise.
3251 * opencl-lang.c (opencl_language_data): Likewise.
3252 * p-lang.c (pascal_language_data): Likewise.
3253 * rust-lang.c (rust_language_data): Likewise.
3254
de543742
TT
32552020-06-16 Tom Tromey <tom@tromey.com>
3256
3257 * tui/tui-data.h (STATUS_NAME): New macro.
3258 * tui/tui-layout.c (tui_remove_some_windows)
3259 (initialize_known_windows, tui_register_window)
3260 (tui_layout_split::remove_windows, initialize_layouts)
3261 (tui_new_layout_command): Don't use hard-coded window names.
3262
a350efd4
TT
32632020-06-16 Tom Tromey <tom@tromey.com>
3264
3265 PR tui/25348:
3266 * tui/tui.c (tui_ensure_readline_initialized): Rename from
3267 tui_initialize_readline. Only run once. Call rl_initialize.
3268 * tui/tui.h (tui_ensure_readline_initialized): Rename from
3269 tui_initialize_readline.
3270 * tui/tui-io.c (tui_setup_io): Call
3271 tui_ensure_readline_initialized.
3272 * tui/tui-interp.c (tui_interp::init): Update.
3273
39ec0490
TT
32742020-06-16 Tom Tromey <tom@tromey.com>
3275
3276 * tui/tui-layout.c (tui_layout_split::remove_windows): Fix logic.
3277 Also preserve the status window.
3278
d2d1ea20
TT
32792020-06-16 Tom Tromey <tom@tromey.com>
3280
3281 * python/py-tui.c (tui_py_window::~tui_py_window): Handle case
3282 where m_window==nullptr.
3283
66920317
TT
32842020-06-15 Tom Tromey <tromey@adacore.com>
3285
3286 * windows-nat.c (windows_nat::handle_output_debug_string):
3287 Update.
3288 (windows_nat::handle_ms_vc_exception): Update.
3289 * target.h (target_read_string): Change API.
3290 * target.c (target_read_string): Change API.
3291 * solib-svr4.c (open_symbol_file_object, svr4_read_so_list):
3292 Update.
3293 * solib-frv.c (frv_current_sos): Update.
3294 * solib-dsbt.c (dsbt_current_sos): Update.
3295 * solib-darwin.c (darwin_current_sos): Update.
3296 * linux-thread-db.c (inferior_has_bug): Update.
3297 * expprint.c (print_subexp_standard): Update.
3298 * ada-lang.c (ada_main_name, ada_tag_name_from_tsd)
3299 (ada_exception_message_1): Update.
3300
a5d871dd
TT
33012020-06-15 Tom Tromey <tromey@adacore.com>
3302
3303 * linux-tdep.c (dump_mapping_p): Use target_read_memory.
3304
670e35fa
TT
33052020-06-15 Tom Tromey <tromey@adacore.com>
3306
3307 * valprint.c (read_string): Update comment.
3308 * target.c (MIN): Remove.
3309 (target_read_string): Rewrite.
3310
f5272a3b
TT
33112020-06-15 Tom Tromey <tromey@adacore.com>
3312
3313 * corefile.c (read_memory_string): Remove.
3314 * ada-valprint.c (ada_value_print_ptr): Update.
3315 * ada-lang.h (ada_tag_name): Change return type.
3316 * ada-lang.c (type_from_tag): Update.
3317 (ada_tag_name_from_tsd): Change return type. Use
3318 target_read_string.
3319 (ada_tag_name): Likewise.
3320 * gdbcore.h (read_memory_string): Don't declare.
3321
2c074f49
HD
33222020-06-14 Hannes Domani <ssbssa@yahoo.de>
3323
3324 * symtab.c (rbreak_command): Ignore Windows drive colon.
3325
6a17d503
SM
33262020-06-12 Simon Marchi <simon.marchi@efficios.com>
3327
3328 * NEWS: Mention removed GDBserver host support.
3329
453c733f
NC
33302020-06-12 Nelson Chu <nelson.chu@sifive.com>
3331
3332 * features/riscv/rebuild-csr-xml.sh: Updated.
3333
2b4e6a3f
TT
33342020-06-11 Tom Tromey <tom@tromey.com>
3335
3336 PR gdb/18318:
3337 * c-exp.y (lex_one_token): Handle 'p' like 'e'.
3338
4412332f
JG
33392020-06-09 Jonny Grant <jg@jguk.org>
33402020-06-09 Simon Marchi <simon.marchi@polymtl.ca>
3341
3342 * main.c (captured_main_1): Don't print new line after help.
3343 (print_gdb_help): add mailing list and IRC channel information
3344 to --help. Add new lines between items in the footer. Remove
3345 quotes around bug url.
3346
2f33032a
KS
33472020-06-11 Keith Seitz <keiths@redhat.com>
3348
3349 PR gdb/21356
3350 * gdbtypes.c (resolve_dynamic_union, resolve_dynamic_struct):
3351 Resolve typedefs for type length calculations.
3352
7ab96794
TV
33532020-06-10 Tom de Vries <tdevries@suse.de>
3354
3355 PR ada/24713
3356 * dwarf2/index-write.c (struct mapped_symtab): Add m_string_obstack.
3357 (write_psymbols): Enable .gdb_index for ada.
3358 * dwarf2/read.c: Remove comment stating .gdb_index is unsupported for
3359 ada.
3360
e5f3ece2
TV
33612020-06-10 Tom de Vries <tdevries@suse.de>
3362
3363 * dwarf2/read.c (dw2_symtab_iter_init_common): Factor out of ...
3364 (dw2_symtab_iter_init): ... here. Add variant with "offset_type
3365 namei" instead of "const char *name" argument.
3366 (dw2_map_matching_symbols): Use "offset_type namei" variant of
3367 dw2_symtab_iter_init.
3368
940da03e
SM
33692020-06-08 Simon Marchi <simon.marchi@efficios.com>
3370
3371 * gdbtypes.h (TYPE_FIELD_TYPE): Remove. Change all call sites
3372 to use type::field and field::type instead.
3373
b6cdac4b
SM
33742020-06-08 Simon Marchi <simon.marchi@efficios.com>
3375
3376 * gdbtypes.h (FIELD_TYPE): Remove. Change all call sites
3377 to use field::type instead.
3378
5d14b6e5
SM
33792020-06-08 Simon Marchi <simon.marchi@efficios.com>
3380
3381 * gdbtypes.h (struct field) <type, set_type>: New methods.
3382 Rename `type` field to...
3383 <m_type>: ... this. Change references throughout to use type or
3384 set_type methods.
3385 (FIELD_TYPE): Use field::type. Change call sites that modify
3386 the field's type to use field::set_type instead.
3387
3d967001
SM
33882020-06-08 Simon Marchi <simon.marchi@efficios.com>
3389
3390 * gdbtypes.h (TYPE_INDEX_TYPE): Remove. Change all call sites
3391 to use type::index_type instead.
3392
262abc0d
SM
33932020-06-08 Simon Marchi <simon.marchi@efficios.com>
3394
3395 * gdbtypes.h (struct type) <index_type, set_index_type>: New
3396 methods.
3397 (TYPE_INDEX_TYPE): Use type::index_type.
3398 * gdbtypes.c (create_array_type_with_stride): Likewise.
3399
82836c92
TT
34002020-06-07 Tom Tromey <tom@tromey.com>
3401
3402 * valprint.c (generic_val_print_float): Remove "embedded_offset"
3403 parameter.
3404 (generic_value_print): Update.
3405
940dace9
AB
34062020-06-05 Andrew Burgess <andrew.burgess@embecosm.com>
3407
3408 Revert commit 982a38f60b0.
3409 * python/py-tui.c (gdbpy_tui_set_title): Restore use of get.
3410
982a38f6
AB
34112020-06-05 Andrew Burgess <andrew.burgess@embecosm.com>
3412
3413 * python/py-tui.c (gdbpy_tui_set_title): Use release, not get, to
3414 avoid use after free.
3415
82f06518
TV
34162020-06-05 Tom de Vries <tdevries@suse.de>
3417
3418 * NEWS: Fix typos.
3419
f8c41851
SM
34202020-06-04 Simon Marchi <simon.marchi@efficios.com>
3421
3422 * dwarf2/read.c (dwarf2_read_gdb_index): Save partial_symtabs in
3423 the per_bfd object.
3424 (dwarf2_read_debug_names): Likewise.
3425 (dwarf2_initialize_objfile): Use partial_symtabs from per_bfd
3426 object when re-using a per_bfd object with an index.
3427
f9b5d5ea
TV
34282020-06-03 Tom de Vries <tdevries@suse.de>
3429
3430 PR symtab/26046
3431 * dwarf2/read.c (scan_partial_symbols): Recurse into DW_TAG_subprogram
3432 children for C++.
3433 (load_partial_dies): Don't skip DW_TAG_inlined_subroutine child of
3434 DW_TAG_subprogram.
3435
f6eee2d0
AB
34362020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
3437
3438 * ada-lang.c (ada_language_data): Delete skip_trampoline
3439 initializer.
3440 * c-lang.c (c_language_data): Likewise.
3441 (cplus_language_data): Likewise.
3442 (cplus_language::skip_trampoline): New member function.
3443 (asm_language_data): Delete skip_trampoline initializer.
3444 (minimal_language_data): Likewise.
3445 * d-lang.c (d_language_data): Likewise.
3446 * f-lang.c (f_language_data): Likewise.
3447 * go-lang.c (go_language_data): Likewise.
3448 * language.c (unk_lang_trampoline): Delete function.
3449 (skip_language_trampoline): Update.
3450 (unknown_language_data): Delete skip_trampoline initializer.
3451 (auto_language_data): Likewise.
3452 * language.h (language_data): Delete skip_trampoline field.
3453 (language_defn::skip_trampoline): New function.
3454 * m2-lang.c (m2_language_data): Delete skip_trampoline
3455 initializer.
3456 * objc-lang.c (objc_skip_trampoline): Delete function, move
3457 implementation to objc_language::skip_trampoline.
3458 (objc_language_data): Delete skip_trampoline initializer.
3459 (objc_language::skip_trampoline): New member function with
3460 implementation from objc_skip_trampoline.
3461 * opencl-lang.c (opencl_language_data): Delete skip_trampoline
3462 initializer.
3463 * p-lang.c (pascal_language_data): Likewise.
3464 * rust-lang.c (rust_language_data): Likewise.
3465
0a50df5d
AB
34662020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
3467
3468 * ada-lang.c (ada_language_data): Delete la_demangle initializer.
3469 (ada_language::demangle): New member function.
3470 * c-lang.c (c_language_data): Delete la_demangle initializer.
3471 (cplus_language_data): Delete la_demangle initializer.
3472 (cplus_language::demangle): New member function.
3473 (asm_language_data): Delete la_demangle initializer.
3474 (minimal_language_data): Delete la_demangle initializer.
3475 * d-lang.c (d_language_data): Delete la_demangle initializer.
3476 (d_language::demangle): New member function.
3477 * f-lang.c (f_language_data): Delete la_demangle initializer.
3478 (f_language::demangle): New member function.
3479 * go-lang.c (go_language_data): Delete la_demangle initializer.
3480 (go_language::demangle): New member function.
3481 * language.c (language_demangle): Update.
3482 (unk_lang_demangle): Delete.
3483 (unknown_language_data): Delete la_demangle initializer.
3484 (unknown_language::demangle): New member function.
3485 (auto_language_data): Delete la_demangle initializer.
3486 (auto_language::demangle): New member function.
3487 * language.h (language_data): Delete la_demangle field.
3488 (language_defn::demangle): New function.
3489 * m2-lang.c (m2_language_data): Delete la_demangle initializer.
3490 * objc-lang.c (objc_language_data): Delete la_demangle
3491 initializer.
3492 (objc_language::demangle): New member function.
3493 * opencl-lang.c (opencl_language_data): Delete la_demangle
3494 initializer.
3495 * p-lang.c (pascal_language_data): Likewise.
3496 * rust-lang.c (rust_language_data): Likewise.
3497 (rust_language::demangle): New member function.
3498
fbfb0a46
AB
34992020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
3500
3501 * ada-lang.c (ada_language_data): Delete la_print_type
3502 initializer.
3503 (ada_language::print_type): New member function.
3504 * c-lang.c (c_language_data): Delete la_print_type initializer.
3505 (c_language::print_type): New member function.
3506 (cplus_language_data): Delete la_print_type initializer.
3507 (cplus_language::print_type): New member function.
3508 (asm_language_data): Delete la_print_type initializer.
3509 (asm_language::print_type): New member function.
3510 (minimal_language_data): Delete la_print_type initializer.
3511 (minimal_language::print_type): New member function.
3512 * d-lang.c (d_language_data): Delete la_print_type initializer.
3513 (d_language::print_type): New member function.
3514 * f-lang.c (f_language_data): Delete la_print_type initializer.
3515 (f_language::print_type): New member function.
3516 * go-lang.c (go_language_data): Delete la_print_type initializer.
3517 (go_language::print_type): New member function.
3518 * language.c (unk_lang_print_type): Delete.
3519 (unknown_language_data): Delete la_print_type initializer.
3520 (unknown_language::print_type): New member function.
3521 (auto_language_data): Delete la_print_type initializer.
3522 (auto_language::print_type): New member function.
3523 * language.h (language_data): Delete la_print_type field.
3524 (language_defn::print_type): New function.
3525 (LA_PRINT_TYPE): Update.
3526 * m2-lang.c (m2_language_data): Delete la_print_type initializer.
3527 (m2_language::print_type): New member function.
3528 * objc-lang.c (objc_language_data): Delete la_print_type
3529 initializer.
3530 (objc_language::print_type): New member function.
3531 * opencl-lang.c (opencl_print_type): Delete, implementation moved
3532 to opencl_language::print_type.
3533 (opencl_language_data): Delete la_print_type initializer.
3534 (opencl_language::print_type): New member function, implementation
3535 from opencl_print_type.
3536 * p-lang.c (pascal_language_data): Delete la_print_type
3537 initializer.
3538 (pascal_language::print_type): New member function.
3539 * rust-lang.c (rust_print_type): Delete, implementation moved to
3540 rust_language::print_type.
3541 (rust_language_data): Delete la_print_type initializer.
3542 (rust_language::print_type): New member function, implementation
3543 from rust_print_type.
3544
6f827019
AB
35452020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
3546
3547 * ada-lang.c (ada_sniff_from_mangled_name): Delete function,
3548 implementation moves to...
3549 (ada_language::sniff_from_mangled_name): ...here. Update return
3550 type.
3551 (ada_language_data): Delete la_sniff_from_mangled_name
3552 initializer.
3553 * c-lang.c (c_language_data): Likewise.
3554 (cplus_language_data): Likewise.
3555 (cplus_language::sniff_from_mangled_name): New member function,
3556 implementation taken from gdb_sniff_from_mangled_name.
3557 (asm_language_data): Delete la_sniff_from_mangled_name
3558 initializer.
3559 (minimal_language_data): Likewise.
3560 * cp-support.c (gdb_sniff_from_mangled_name): Delete,
3561 implementation moves to cplus_language::sniff_from_mangled_name.
3562 * cp-support.h (gdb_sniff_from_mangled_name): Delete declaration.
3563 * d-lang.c (d_sniff_from_mangled_name): Delete, implementation
3564 moves to...
3565 (d_language::sniff_from_mangled_name): ...here.
3566 (d_language_data): Delete la_sniff_from_mangled_name initializer.
3567 * f-lang.c (f_language_data): Likewise.
3568 * go-lang.c (go_sniff_from_mangled_name): Delete, implementation
3569 moves to...
3570 (go_language::sniff_from_mangled_name): ...here.
3571 (go_language_data): Delete la_sniff_from_mangled_name initializer.
3572 * language.c (language_sniff_from_mangled_name): Delete.
3573 (unknown_language_data): Delete la_sniff_from_mangled_name
3574 initializer.
3575 (auto_language_data): Likewise.
3576 * language.h (language_data): Delete la_sniff_from_mangled_name
3577 field.
3578 (language_defn::sniff_from_mangled_name): New function.
3579 (language_sniff_from_mangled_name): Delete declaration.
3580 * m2-lang.c (m2_language_data): Delete la_sniff_from_mangled_name
3581 field.
3582 * objc-lang.c (objc_sniff_from_mangled_name): Delete,
3583 implementation moves to...
3584 (objc_language::sniff_from_mangled_name): ...here.
3585 (objc_language_data): Delete la_sniff_from_mangled_name initializer.
3586 * opencl-lang.c (opencl_language_data): Likewise.
3587 * p-lang.c (pascal_language_data): Likewise.
3588 * rust-lang.c (rust_sniff_from_mangled_name): Delete,
3589 implementation moves to...
3590 (rust_language::sniff_from_mangled_name): ...here.
3591 (rust_language_data): Delete la_sniff_from_mangled_name
3592 initializer.
3593 * symtab.c (symbol_find_demangled_name): Call
3594 sniff_from_mangled_name member function.
3595
fb8006fd
AB
35962020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
3597
3598 * ada-lang.c (ada_language_data): Delete la_search_name_hash
3599 initializer.
3600 * c-lang.c (c_language_data): Likewise.
3601 (cplus_language_data): Likewise.
3602 (cplus_language::search_name_hash): New member function.
3603 (asm_language_data): Delete la_search_name_hash initializer.
3604 (minimal_language_data): Likewise.
3605 * d-lang.c (d_language_data): Likewise.
3606 * dictionary.c (default_search_name_hash): Rename to...
3607 (language_defn::search_name_hash): ...this.
3608 * f-lang.c (f_language_data): Likewise.
3609 (f_language::search_name_hash): New member function.
3610 * go-lang.c (go_language_data): Delete la_search_name_hash
3611 initializer.
3612 * language.c (unknown_language_data): Likewise.
3613 (auto_language_data): Likewise.
3614 * language.h (struct language_data): Delete la_search_name_hash
3615 field.
3616 (language_defn::search_name_hash): Declare new member function.
3617 (default_search_name_hash): Delete declaration.
3618 * m2-lang.c (m2_language_data): Delete la_search_name_hash
3619 initializer.
3620 * objc-lang.c (objc_language_data): Likewise.
3621 * opencl-lang.c (opencl_language_data): Likewise.
3622 * p-lang.c (pascal_language_data): Likewise.
3623 * rust-lang.c (rust_language_data): Likewise.
3624 * symtab.c (search_name_hash): Update call.
3625
8e25bafe
AB
36262020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
3627
3628 * ada-lang.c (ada_language_data): Delete la_get_compile_instance
3629 initializer.
3630 * c-lang.c (class compile_instance): Declare.
3631 (c_language_data): Delete la_get_compile_instance initializer.
3632 (c_language::get_compile_instance): New member function.
3633 (cplus_language_data): Delete la_get_compile_instance initializer.
3634 (cplus_language::get_compile_instance): New member function.
3635 (asm_language_data): Delete la_get_compile_instance initializer.
3636 (minimal_language_data): Likewise.
3637 * c-lang.h (c_get_compile_context): Update comment.
3638 (cplus_get_compile_context): Update comment.
3639 * compile/compile.c (compile_to_object): Update calls, don't rely
3640 on function pointer being NULL.
3641 * d-lang.c (d_language_data): Delete la_get_compile_instance
3642 initializer.
3643 * f-lang.c (f_language_data): Likewise.
3644 * go-lang.c (go_language_data): Likewise.
3645 * language.c (unknown_language_data): Likewise.
3646 (auto_language_data): Likewise.
3647 * language.h (language_data): Delete la_get_compile_instance field.
3648 (language_defn::get_compile_instance): New member function.
3649 * m2-lang.c (m2_language_data): Delete la_get_compile_instance
3650 initializer.
3651 * objc-lang.c (objc_language_data): Likewise.
3652 * opencl-lang.c (opencl_language_data): Likewise.
3653 * p-lang.c (pascal_language_data): Likewise.
3654 * rust-lang.c (rust_language_data): Likewise.
3655
4009ee92
AB
36562020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
3657
3658 * ada-lang.c (ada_add_all_symbols): Update comment.
3659 (ada_iterate_over_symbols): Delete, move implementation to...
3660 (ada_language::iterate_over_symbols): ...here, a new member
3661 function, rewrite to use range based for loop.
3662 (ada_language_data): Delete la_iterate_over_symbols initializer.
3663 * c-lang.c (c_language_data): Likewise.
3664 (cplus_language_data): Likewise.
3665 (asm_language_data): Likewise.
3666 (minimal_language_data): Likewise.
3667 * d-lang.c (d_language_data): Likewise.
3668 * f-lang.c (f_language_data): Likewise.
3669 * go-lang.c (go_language_data): Likewise.
3670 * language.c (unknown_language_data): Likewise.
3671 (auto_language_data): Likewise.
3672 * language.h (language_data): Delete la_iterate_over_symbols field.
3673 (language_defn::iterate_over_symbols): New member function.
3674 (LA_ITERATE_OVER_SYMBOLS): Update.
3675 * linespec.c (iterate_over_all_matching_symtabs): Update.
3676 * m2-lang.c (m2_language_data): Delete la_iterate_over_symbols
3677 initializer.
3678 * objc-lang.c (objc_language_data): Likewise.
3679 * opencl-lang.c (opencl_language_data): Likewise.
3680 * p-lang.c (pascal_language_data): Likewise.
3681 * rust-lang.c (rust_language_data): Likewise.
3682
54f4ca46
AB
36832020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
3684
3685 * ada-lang.c (ada_language_data): Delete
3686 la_lookup_transparent_type initializer.
3687 * c-lang.c (c_language_data): Likewise.
3688 (cplus_language_data): Likewise.
3689 (cplus_language::lookup_transparent_type): New member function.
3690 (asm_language_data): Delete la_lookup_transparent_type
3691 initializer.
3692 (minimal_language_data): Likewise.
3693 * d-lang.c (d_language_data): Likewise.
3694 * f-lang.c (f_language_data): Likewise.
3695 * go-lang.c (go_language_data): Likewise.
3696 * language.c (unknown_language_data): Likewise.
3697 (auto_language_data): Likewise.
3698 * language.h (struct language_data): Delete
3699 la_lookup_transparent_type field.
3700 (language_defn::lookup_transparent_type): New member function.
3701 * m2-lang.c (m2_language_data): Delete la_lookup_transparent_type
3702 initializer.
3703 * objc-lang.c (objc_language_data): Likewise.
3704 * opencl-lang.c (opencl_language_data): Likewise.
3705 * p-lang.c (pascal_language_data): Likewise.
3706 * rust-lang.c (rust_language_data): Likewise.
3707 * symtab.c (symbol_matches_domain): Update call.
3708
1fb314aa
AB
37092020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
3710
3711 * ada-lang.c (ada_language_arch_info): Delete function, move
3712 implementation to...
3713 (ada_language::language_arch_info): ...here, a new member
3714 function.
3715 (ada_language_data): Delete la_language_arch_info.
3716 * c-lang.c (c_language_data): Likewise.
3717 (c_language::language_arch_info): New member function.
3718 (cplus_language_arch_info): Delete function, move
3719 implementation to...
3720 (cplus_language::language_arch_info): ...here, a new member
3721 function.
3722 (cplus_language_data): Delete la_language_arch_info.
3723 (asm_language_data): Likewise.
3724 (asm_language::language_arch_info): New member function.
3725 (minimal_language_data): Delete la_language_arch_info.
3726 (minimal_language::language_arch_info): New member function.
3727 * d-lang.c (d_language_arch_info): Delete function, move
3728 implementation to...
3729 (d_language::language_arch_info): ...here, a new member
3730 function.
3731 (d_language_data): Delete la_language_arch_info.
3732 * f-lang.c (f_language_arch_info): Delete function, move
3733 implementation to...
3734 (f_language::language_arch_info): ...here, a new member
3735 function.
3736 (f_language_data): Delete la_language_arch_info.
3737 * go-lang.c (go_language_arch_info): Delete function, move
3738 implementation to...
3739 (go_language::language_arch_info): ...here, a new member
3740 function.
3741 (go_language_data): Delete la_language_arch_info.
3742 * language.c (unknown_language_data): Likewise.
3743 (unknown_language::language_arch_info): New member function.
3744 (auto_language_data): Delete la_language_arch_info.
3745 (auto_language::language_arch_info): New member function.
3746 (language_gdbarch_post_init): Update call to
3747 la_language_arch_info.
3748 * language.h (language_data): Delete la_language_arch_info
3749 function pointer.
3750 (language_defn::language_arch_info): New function.
3751 * m2-lang.c (m2_language_arch_info): Delete function, move
3752 implementation to...
3753 (m2_language::language_arch_info): ...here, a new member
3754 function.
3755 (m2_language_data): Delete la_language_arch_info.
3756 * objc-lang.c (objc_language_arch_info): Delete function, move
3757 implementation to...
3758 (objc_language::language_arch_info): ...here, a new member
3759 function.
3760 (objc_language_data): Delete la_language_arch_info.
3761 * opencl-lang.c (opencl_language_arch_info): Delete function, move
3762 implementation to...
3763 (opencl_language::language_arch_info): ...here, a new member
3764 function.
3765 (opencl_language_data): Delete la_language_arch_info.
3766 * p-lang.c (pascal_language_arch_info): Delete function, move
3767 implementation to...
3768 (pascal_language::language_arch_info): ...here, a new member
3769 function.
3770 (pascal_language_data): Delete la_language_arch_info.
3771 * rust-lang.c (rust_language_arch_info): Delete function, move
3772 implementation to...
3773 (rust_language::language_arch_info): ...here, a new member
3774 function.
3775 (rust_language_data): Delete la_language_arch_info.
3776
48448202
AB
37772020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
3778
3779 * ada-lang.c (ada_language_data): Delete la_pass_by_reference
3780 initializer.
3781 * c-lang.c (c_language_data): Likewise.
3782 (cplus_language_data): Likewise.
3783 (cplus_language::pass_by_reference_info): New method.
3784 (asm_language_data): Delete la_pass_by_reference initializer.
3785 (minimal_language_data): Likewise.
3786 * cp-abi.c (cp_pass_by_reference): Remove use of
3787 default_pass_by_reference.
3788 * d-lang.c (d_language_data): Likewise.
3789 * f-lang.c (f_language_data): Likewise.
3790 * gnu-v3-abi.c (gnuv3_pass_by_reference): Remove use of
3791 default_pass_by_reference.
3792 * go-lang.c (go_language_data): Likewise.
3793 * language.c (language_pass_by_reference): Update.
3794 (default_pass_by_reference): Delete.
3795 (unknown_language_data): Delete la_pass_by_reference
3796 initializer.
3797 (auto_language_data): Likewise.
3798 * language.h (struct language_data): Delete la_pass_by_reference
3799 field.
3800 (language_defn::pass_by_reference_info): New member function.
3801 (default_pass_by_reference): Delete declaration.
3802 * m2-lang.c (m2_language_data): Delete la_pass_by_reference
3803 initializer.
3804 * objc-lang.c (objc_language_data): Likewise.
3805 * opencl-lang.c (opencl_language_data): Likewise.
3806 * p-lang.c (pascal_language_data): Likewise.
3807 * rust-lang.c (rust_language_data): Likewise.
3808
15e5fd35
AB
38092020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
3810
3811 * ada-lang.c (ada_read_var_value): Delete function, move
3812 implementation to...
3813 (ada_language::read_var_value): ...here.
3814 (ada_language_data): Delete la_read_var_value initializer.
3815 * c-lang.c (c_language_data): Likewise.
3816 (cplus_language_data): Likewise.
3817 (minimal_language_data): Likewise.
3818 * d-lang.c (d_language_data): Likewise.
3819 * f-lang.c (f_language_data): Likewise.
3820 * findvar.c (default_read_var_value): Rename to...
3821 (language_defn::read_var_value): ...this.
3822 * findvar.c (read_var_value): Update header comment, and change to
3823 call member function instead of function pointer.
3824 * go-lang.c (go_language_data): Likewise.
3825 * language.c (unknown_language_data): Delete la_read_var_value
3826 initializer.
3827 (auto_language_data): Likewise.
3828 * language.h (struct language_data): Delete la_read_var_value
3829 field.
3830 (language_defn::read_var_value): New member function.
3831 (default_read_var_value): Delete declaration.
3832 * m2-lang.c (m2_language_data): Delete la_read_var_value
3833 initializer.
3834 * objc-lang.c (objc_language_data): Likewise.
3835 * opencl-lang.c (opencl_language_data): Likewise.
3836 * p-lang.c (pascal_language_data): Likewise.
3837 * rust-lang.c (rust_language_data): Likewise.
3838 * value.h (default_read_var_value): Delete declaration.
3839
5bd40f2a
AB
38402020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
3841
3842 * ada-lang.c (ada_print_array_index): Delete function, move
3843 implementation to...
3844 (ada_language::print_array_index): ...here.
3845 (ada_language_data): Delete la_print_array_index initializer.
3846 * c-lang.c (c_language_data): Likewise.
3847 (cplus_language_data): Likewise.
3848 (minimal_language_data): Likewise.
3849 * d-lang.c (d_language_data): Likewise.
3850 * f-lang.c (f_language_data): Likewise.
3851 * go-lang.c (go_language_data): Likewise.
3852 * language.c (default_print_array_index): Delete function, move
3853 implementation to...
3854 (language_defn::print_array_index): ...here.
3855 (unknown_language_data): Delete la_print_array_index initializer.
3856 (auto_language_data): Likewise.
3857 * language.h (struct language_data): Delete la_print_array_index
3858 field.
3859 (language_defn::print_array_index): New member function.
3860 (LA_PRINT_ARRAY_INDEX): Update.
3861 (default_print_array_index): Delete declaration.
3862 * m2-lang.c (m2_language_data): Delete la_print_array_index
3863 initializer.
3864 * objc-lang.c (objc_language_data): Likewise.
3865 * opencl-lang.c (opencl_language_data): Likewise.
3866 * p-lang.c (pascal_language_data): Likewise.
3867 * rust-lang.c (rust_language_data): Likewise.
3868
0874fd07
AB
38692020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
3870
3871 * gdb/ada-lang.c (ada_language_defn): Convert to...
3872 (ada_language_data): ...this.
3873 (class ada_language): New class.
3874 (ada_language_defn): New static global.
3875 * gdb/c-lang.c (c_language_defn): Convert to...
3876 (c_language_data): ...this.
3877 (class c_language): New class.
3878 (c_language_defn): New static global.
3879 (cplus_language_defn): Convert to...
3880 (cplus_language_data): ...this.
3881 (class cplus_language): New class.
3882 (cplus_language_defn): New static global.
3883 (asm_language_defn): Convert to...
3884 (asm_language_data): ...this.
3885 (class asm_language): New class.
3886 (asm_language_defn): New static global.
3887 (minimal_language_defn): Convert to...
3888 (minimal_language_data): ...this.
3889 (class minimal_language): New class.
3890 (minimal_language_defn): New static global.
3891 * gdb/d-lang.c (d_language_defn): Convert to...
3892 (d_language_data): ...this.
3893 (class d_language): New class.
3894 (d_language_defn): New static global.
3895 * gdb/f-lang.c (f_language_defn): Convert to...
3896 (f_language_data): ...this.
3897 (class f_language): New class.
3898 (f_language_defn): New static global.
3899 * gdb/go-lang.c (go_language_defn): Convert to...
3900 (go_language_data): ...this.
3901 (class go_language): New class.
3902 (go_language_defn): New static global.
3903 * gdb/language.c (unknown_language_defn): Remove declaration.
3904 (current_language): Initialize to nullptr, real initialization is
3905 moved to _initialize_language.
3906 (languages): Delete global.
3907 (language_defn::languages): Define.
3908 (set_language_command): Use language_defn::languages.
3909 (set_language): Likewise.
3910 (range_error): Likewise.
3911 (language_enum): Likewise.
3912 (language_def): Likewise.
3913 (add_set_language_command): Use language_def::languages for the
3914 language list, and language_def to lookup language pointers.
3915 (skip_language_trampoline): Use language_defn::languages.
3916 (unknown_language_defn): Convert to...
3917 (unknown_language_data): ...this.
3918 (class unknown_language): New class.
3919 (unknown_language_defn): New static global.
3920 (auto_language_defn): Convert to...
3921 (auto_language_data): ...this.
3922 (class auto_language): New class.
3923 (auto_language_defn): New static global.
3924 (language_gdbarch_post_init): Use language_defn::languages.
3925 (_initialize_language): Initialize current_language.
3926 * gdb/language.h (struct language_defn): Rename to...
3927 (struct language_data): ...this.
3928 (struct language_defn): New.
3929 (auto_language_defn): Delete.
3930 (unknown_language_defn): Delete.
3931 (minimal_language_defn): Delete.
3932 (ada_language_defn): Delete.
3933 (asm_language_defn): Delete.
3934 (c_language_defn): Delete.
3935 (cplus_language_defn): Delete.
3936 (d_language_defn): Delete.
3937 (f_language_defn): Delete.
3938 (go_language_defn): Delete.
3939 (m2_language_defn): Delete.
3940 (objc_language_defn): Delete.
3941 (opencl_language_defn): Delete.
3942 (pascal_language_defn): Delete.
3943 (rust_language_defn): Delete.
3944 * gdb/m2-lang.c (m2_language_defn): Convert to...
3945 (m2_language_data): ...this.
3946 (class m2_language): New class.
3947 (m2_language_defn): New static global.
3948 * gdb/objc-lang.c (objc_language_defn): Convert to...
3949 (objc_language_data): ...this.
3950 (class objc_language): New class.
3951 (objc_language_defn): New static global.
3952 * gdb/opencl-lang.c (opencl_language_defn): Convert to...
3953 (opencl_language_data): ...this.
3954 (class opencl_language): New class.
3955 (opencl_language_defn): New static global.
3956 * gdb/p-lang.c (pascal_language_defn): Convert to...
3957 (pascal_language_data): ...this.
3958 (class pascal_language): New class.
3959 (pascal_language_defn): New static global.
3960 * gdb/rust-exp.y (rust_lex_tests): Use language_def to find
3961 language pointer, update comment format.
3962 * gdb/rust-lang.c (rust_language_defn): Convert to...
3963 (rust_language_data): ...this.
3964 (class rust_language): New class.
3965 (rust_language_defn): New static global.
3966
1313c56e
AB
39672020-06-01 Andrew Burgess <andrew.burgess@embecosm.com>
3968
3969 * dwarf2/read.c (class lnp_state_machine) <m_last_address>: New
3970 member variable.
3971 <m_stmt_at_address>: New member variable.
3972 (lnp_state_machine::record_line): Don't record some lines, update
3973 tracking of is_stmt at the same address.
3974 (lnp_state_machine::lnp_state_machine): Initialise new member
3975 variables.
3976
b7ed9f3d
ST
39772020-06-01 Samuel Thibault <samuel.thibault@ens-lyon.org>
3978
3979 * config/i386/i386gnu.mn [%_S.o %_U.o] (COMPILE.post): Add
3980 "-include gnu-nat-mig.h".
3981 * gnu-nat-mig.h: New file.
3982 * gnu-nat.c: Include "gnu-nat-mig.h".
3983 (exc_server, msg_reply_server, notify_server,
3984 process_reply_server): Remove declarations.
3985
14a8ad62
ST
39862020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
3987
3988 * gnu-nat.h (inf_validate_procs, inf_suspend, inf_set_traced,
3989 steal_exc_port, proc_get_state, inf_clear_wait, inf_cleanup,
3990 inf_startup, inf_update_suspends, inf_set_pid, inf_steal_exc_ports,
3991 inf_validate_procinfo, inf_validate_task_sc, inf_restore_exc_ports,
3992 inf_set_threads_resume_sc, inf_set_threads_resume_sc_for_signal_thread,
3993 inf_resume, inf_set_step_thread, inf_detach, inf_attach, inf_signal,
3994 inf_continue, make_proc, proc_abort, _proc_free, proc_update_sc,
3995 proc_get_exception_port, proc_set_exception_port, _proc_get_exc_port,
3996 proc_steal_exc_port, proc_restore_exc_port, proc_trace): Move functions
3997 to gnu_nat_target class.
3998 * gnu-nat.c: Likewise.
3999 (inf_update_procs, S_proc_wait_reply, set_task_pause_cmd,
4000 set_task_exc_port_cmd, set_signals_cmd, set_thread_pause_cmd,
4001 set_thread_exc_port_cmd): Call inf_validate_procs through gnu_target
4002 object.
4003 (gnu_nat_target::create_inferior, gnu_nat_target::detach): Pass `this'
4004 instead of `gnu_target'.
4005
0af5e106
ST
40062020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
4007
4008 * i386-gnu-tdep.c: Include "gdbcore.h"
4009 (gnu_sigtramp_code, i386_gnu_sc_reg_offset): New arrays.
4010 (GNU_SIGTRAMP_LEN, GNU_SIGTRAMP_TAIL,
4011 I386_GNU_SIGCONTEXT_THREAD_STATE_OFFSET): New macros
4012 (i386_gnu_sigtramp_start, i386_gnu_sigtramp_p,
4013 i386_gnu_sigcontext_addr): New functions
4014 (i386gnu_init_abi): Register i386_gnu_sigtramp_p,
4015 i386_gnu_sigcontext_addr, and i386_gnu_sc_reg_offset in the gdbarch
4016 tdep.
4017
078f2fc9
ST
40182020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
4019
4020 * gnu-nat.c (gnu_nat_target::create_inferior): Move push_target call
4021 before fork_inferior call. Avoid calling it if target_is_pushed returns
4022 true.
4023
53dff92c
ST
40242020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
4025
4026 * gnu-nat.h (gnu_target): New variable declaration.
4027 * i386-gnu-nat.c (_initialize_i386gnu_nat): Initialize
4028 gnu_target.
4029 * gnu-nat.c (gnu_target): New variable.
4030 (inf_validate_procs): Pass gnu_target to thread_change_ptid,
4031 add_thread_silent, and add_thread calls.
4032 (gnu_nat_target::create_inferior): Pass gnu_target to
4033 add_thread_silent, thread_change_ptid call.
4034 (gnu_nat_target::detach): Pass gnu_target to detach_inferior
4035 call.
4036
5a8b8627
ST
40372020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
4038
4039 * gnu-nat.c (gnu_xfer_auxv): Remove unused `res' variable.
4040 (gnu_nat_target::find_memory_regions): Remove unused
4041 `old_address' variable.
4042
366f550a
ST
40432020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
4044
4045 * gnu-nat.c: Include "gdbarch.h".
4046
f14871bf
ST
40472020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
4048
4049 * reply_mig_hack.awk (Error return): Cast function through
4050 void *, to bypass compiler function call check.
4051
c6887cfb
ST
40522020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
4053
4054 * config/i386/i386gnu.mn (%_reply_S.c): Add dependency on
4055 $(srcdir)/reply_mig_hack.awk.
4056
6930bffe
ST
40572020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
4058
4059 * gnu-nat.h (gnu_debug_flag): Set type to bool.
4060
112c22ed
JG
40612020-05-30 Jonny Grant <jg@jguk.org>
4062
4063 * configure.ac (ACX_BUGURL): change bug URL to https.
4064
f68f85b5
PA
40652020-05-30 Pedro Alves <palves@redhat.com>
4066
4067 * cp-support.c (replace_typedefs_template): New.
4068 (replace_typedefs_qualified_name): Handle
4069 DEMANGLE_COMPONENT_TEMPLATE.
4070
976ca316
SM
40712020-05-29 Simon Marchi <simon.marchi@efficios.com>
4072
4073 * dwarf2/comp-unit.c, dwarf2/comp-unit.h, dwarf2/index-cache.c,
4074 dwarf2/index-cache.h, dwarf2/index-write.c,
4075 dwarf2/index-write.h, dwarf2/line-header.c,
4076 dwarf2/line-header.h, dwarf2/macro.c, dwarf2/macro.h,
4077 dwarf2/read.c, dwarf2/read.h: Rename struct dwarf2_per_objfile
4078 variables and fields from `dwarf2_per_objfile` to just
4079 `per_objfile` throughout.
4080
989ade05
SM
40812020-05-28 Simon Marchi <simon.marchi@polymtl.ca>
4082
4083 * dwarf2/loc.c (class dwarf_evaluate_loc_desc)
4084 <push_dwarf_reg_entry_value>: Add comment.
4085
c47bae85
KB
40862020-05-28 Kevin Buettner <kevinb@redhat.com>
4087 Keith Seitz <keiths@redhat.com>
4088
4089 * python/python.c (do_start_initialization): Call PyEval_SaveThread
4090 instead of PyEval_ReleaseLock.
4091 (class gdbpy_gil): Move to earlier in file.
4092 (finalize_python): Set gdb_python_initialized.
4093 (gdbpy_check_quit_flag): Acquire GIL via gdbpy_gil. Return early
4094 when not initialized.
4095
44486dcf
SM
40962020-05-28 Simon Marchi <simon.marchi@efficios.com>
4097
4098 * dwarf2/loc.c (class dwarf_evaluate_loc_desc)
4099 <push_dwarf_reg_entry_value>: Remove assert. Override
4100 per_objfile with caller_per_objfile.
4101
f030440d
TV
41022020-05-28 Tom de Vries <tdevries@suse.de>
4103
4104 * dwarf2/read.c (dw2_symtab_iter_next, dw2_expand_marked_cus): Limit
4105 PR gold/15646 workaround to symbol kind "type".
4106
f0fbb768
TT
41072020-05-27 Tom Tromey <tromey@adacore.com>
4108
4109 * dwarf2/read.c (load_partial_dies): Use add_partial_symbol.
4110
af0b2a3e
TT
41112020-05-27 Tom Tromey <tromey@adacore.com>
4112
4113 * dwarf2/abbrev.h (struct abbrev_table) <lookup_abbrev>: Inline.
4114 Use htab_find_with_hash.
4115 <add_abbrev>: Remove "abbrev_number" parameter.
4116 * dwarf2/abbrev.c (abbrev_table::add_abbrev): Remove
4117 "abbrev_number" parameter. Use htab_find_slot_with_hash.
4118 (hash_abbrev): Add comment.
4119 (abbrev_table::lookup_abbrev): Move to header file.
4120 (abbrev_table::read): Update.
4121
7d00ffec
TT
41222020-05-27 Tom Tromey <tromey@adacore.com>
4123
4124 * dwarf2/read.c (struct partial_die_info) <name>: Declare new
4125 method.
4126 <canonical_name>: New member.
4127 <raw_name>: Rename from "name".
4128 (partial_die_info): Initialize canonical_name.
4129 (scan_partial_symbols): Check raw_name.
4130 (partial_die_parent_scope, partial_die_full_name)
4131 (add_partial_symbol, add_partial_subprogram)
4132 (add_partial_enumeration, load_partial_dies): Use "name" method.
4133 (partial_die_info::name): New method.
4134 (partial_die_info::read, guess_partial_die_structure_name)
4135 (partial_die_info::fixup): Update.
4136
697bba18
TT
41372020-05-27 Tom Tromey <tromey@adacore.com>
4138
4139 * dwarf2/attribute.h (struct attribute) <form_is_ref>: Inline.
4140 <get_ref_die_offset>: Inline.
4141 <get_ref_die_offset_complaint>: New method.
4142 * dwarf2/attribute.c (attribute::form_is_ref): Move to header.
4143 (attribute::get_ref_die_offset_complaint): Rename from
4144 get_ref_die_offset. Just issue complaint.
4145
c17ace43
HD
41462020-05-27 Hannes Domani <ssbssa@yahoo.de>
4147
4148 * cli/cli-cmds.c (shell_escape): Move exit_status_set_internal_vars.
4149
96445f0b
HD
41502020-05-27 Hannes Domani <ssbssa@yahoo.de>
4151
4152 * exec.c (exec_file_attach): Use errno value of first openp failure.
4153
ac637ec3
HD
41542020-05-27 Hannes Domani <ssbssa@yahoo.de>
4155
4156 * nat/windows-nat.c (windows_thread_info::~windows_thread_info):
4157 Don't close thread handle.
4158
17ee85fc
TT
41592020-05-27 Tom Tromey <tom@tromey.com>
4160 Simon Marchi <simon.marchi@efficios.com>
4161
4162 * objfiles.h (struct objfile) <partial_symtabs>: Now a
4163 shared_ptr.
4164 * dwarf2/read.h (struct dwarf2_per_objfile) <partial_symtabs>: New
4165 member.
4166 * dwarf2/read.c (dwarf2_per_bfd_bfd_data_key,
4167 dwarf2_per_bfd_objfile_data_key>: New globals.
4168 (dwarf2_has_info): Use shared dwarf2_per_bfd if possible.
4169 (dwarf2_get_section_info): Use get_dwarf2_per_objfile.
4170 (dwarf2_initialize_objfile): Consider cases where per_bfd can be
4171 shared.
4172 (dwarf2_build_psymtabs): Set objfile::partial_symtabs and
4173 short-circuit when sharing.
4174 (dwarf2_build_psymtabs): Set dwarf2_per_objfile::partial_symtabs.
4175 (dwarf2_psymtab::expand_psymtab): Use free_cached_comp_units.
4176
39b16f87
SM
41772020-05-27 Simon Marchi <simon.marchi@efficios.com>
4178
4179 * dwarf2/read.h (struct dwarf2_per_bfd) <line_header_hash>: Move
4180 to...
4181 (struct dwarf2_per_objfile) <line_header_hash>: ... here.
4182 * dwarf2/read.c (handle_DW_AT_stmt_list): Update.
4183
fcf23d5b
SM
41842020-05-27 Simon Marchi <simon.marchi@efficios.com>
4185
4186 * dwarf2/read.c (struct mapped_index_base) <symbol_name_at,
4187 build_name_components, find_name_components_bounds>:
4188 Add per_objfile parameter.
4189 (struct mapped_index) <symbol_name_at>: Likewise.
4190 (struct mapped_debug_names): Remove constructor.
4191 <dwarf2_per_objfile>: Remove field.
4192 <namei_to_name, symbol_name_at>: Add per_objfile parameter.
4193 (mapped_index_base::find_name_components_bounds,
4194 mapped_index_base::build_name_components,
4195 dw2_expand_symtabs_matching_symbol): Likewise.
4196 (class mock_mapped_index) <symbol_name_at>: Likewise.
4197 (check_match): Likewise.
4198 (check_find_bounds_finds): Likewise.
4199 (test_mapped_index_find_name_component_bounds): Update.
4200 (CHECK_MATCH): Update.
4201 (dw2_expand_symtabs_matching): Update.
4202 (class dw2_debug_names_iterator) <dw2_debug_names_iterator>: Add
4203 per_objfile parameter.
4204 <find_vec_in_debug_names>: Likewise.
4205 <m_per_objfile>: New field.
4206 (mapped_debug_names::namei_to_name): Add dwarf2_per_objfile
4207 parameter.
4208 (dw2_debug_names_iterator::find_vec_in_debug_names): Likewise.
4209 (dw2_debug_names_iterator::next): Update.
4210 (dw2_debug_names_lookup_symbol): Update.
4211 (dw2_debug_names_expand_symtabs_for_function): Update.
4212 (dw2_debug_names_map_matching_symbols): Update.
4213 (dw2_debug_names_expand_symtabs_matching): Update.
4214 (dwarf2_read_debug_names): Update.
4215
7188ed02
SM
42162020-05-27 Simon Marchi <simon.marchi@efficios.com>
4217
4218 * dwarf2/read.h (struct dwarf2_cu): Forward-declare.
4219 (struct dwarf2_per_bfd) <free_cached_comp_units>: Remove,
4220 move to dwarf2_per_objfile.
4221 <read_in_chain>: Remove.
4222 (struct dwarf2_per_objfile) <get_cu, set_cu, remove_cu,
4223 remove_all_cus, age_comp_units>: New methods.
4224 <m_dwarf2_cus>: New member.
4225 (struct dwarf2_per_cu_data) <cu>: Remove.
4226 * dwarf2/read.c (struct dwarf2_cu) <read_in_chain>: Remove.
4227 (age_cached_comp_units, free_one_cached_comp_unit): Remove,
4228 moved to methods of dwarf2_per_objfile.
4229 (dwarf2_clear_marks): Remove.
4230 (dwarf2_queue_item::~dwarf2_queue_item): Update.
4231 (dwarf2_per_bfd::~dwarf2_per_bfd): Don't free dwarf2_cus.
4232 (dwarf2_per_bfd::free_cached_comp_units): Remove.
4233 (dwarf2_per_objfile::remove_all_cus): New.
4234 (class free_cached_comp_units) <~free_cached_comp_units>:
4235 Update.
4236 (load_cu): Update.
4237 (dw2_do_instantiate_symtab): Adjust.
4238 (fill_in_sig_entry_from_dwo_entry): Adjust.
4239 (cutu_reader::init_tu_and_read_dwo_dies): Update.
4240 (cutu_reader::cutu_reader): Likewise.
4241 (cutu_reader::keep): Use dwarf2_per_objfile::set_cu.
4242 (cutu_reader::cutu_reader): Use dwarf2_per_objfile::get_cu.
4243 (process_psymtab_comp_unit): Use dwarf2_per_objfile::remove_cu
4244 and dwarf2_per_objfile::age_comp_units.
4245 (load_partial_comp_unit): Update.
4246 (maybe_queue_comp_unit): Use dwarf2_per_objfile::get_cu.
4247 (process_queue): Likewise.
4248 (find_partial_die): Use dwarf2_per_objfile::get_cu instead of cu
4249 backlink.
4250 (dwarf2_read_addr_index): Likewise.
4251 (follow_die_offset): Likewise.
4252 (dwarf2_fetch_die_loc_sect_off): Likewise.
4253 (dwarf2_fetch_constant_bytes): Likewise.
4254 (dwarf2_fetch_die_type_sect_off): Likewise.
4255 (follow_die_sig_1): Likewise.
4256 (load_full_type_unit): Likewise.
4257 (read_signatured_type): Likewise.
4258 (dwarf2_cu::dwarf2_cu): Don't set cu field.
4259 (dwarf2_cu::~dwarf2_cu): Remove.
4260 (dwarf2_per_objfile::get_cu): New.
4261 (dwarf2_per_objfile::set_cu): New.
4262 (age_cached_comp_units): Rename to...
4263 (dwarf2_per_objfile::age_comp_units): ... this. Adjust
4264 to std::unordered_map.
4265 (free_one_cached_comp_unit): Rename to...
4266 (dwarf2_per_objfile::remove_cu): ... this. Adjust
4267 to std::unordered_map.
4268 (dwarf2_per_objfile::~dwarf2_per_objfile): New.
4269 (dwarf2_mark_helper): Use dwarf2_per_objfile::get_cu, expect
4270 a dwarf2_per_objfile in data.
4271 (dwarf2_mark): Pass dwarf2_per_objfile in data to htab_traverse.
4272 (dwarf2_clear_marks): Remove.
4273
2e671100
SM
42742020-05-27 Simon Marchi <simon.marchi@efficios.com>
4275
4276 * dwarf2/read.c (class cutu_reader) <cutu_reader>: Replace
4277 `int use_existing_cu` parameter with `dwarf2_cu *existing_cu`.
4278 (init_tu_and_read_dwo_dies): Likewise.
4279 (cutu_reader::init_tu_and_read_dwo_dies): Likewise.
4280 (cutu_reader::cutu_reader): Likewise.
4281 (load_partial_comp_unit): Likewise.
4282 (process_psymtab_comp_unit): Update.
4283 (build_type_psymtabs_1): Update.
4284 (process_skeletonless_type_unit): Update.
4285 (load_full_comp_unit): Update.
4286 (find_partial_die): Update.
4287 (dwarf2_read_addr_index): Update.
4288 (read_signatured_type): Update.
4289
2e6a9f79
SM
42902020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
4291
4292 * dwarf2/read.h (struct dwarf2_per_cu_data) <m_header,
4293 m_header_read_in>: New fields.
4294 <get_header>: New method.
4295 * dwarf2/read.c (per_cu_header_read_in): Remove.
4296 (dwarf2_per_cu_data::get_header): New.
4297 (dwarf2_per_cu_data::addr_size): Update.
4298 (dwarf2_per_cu_data::offset_size): Update.
4299 (dwarf2_per_cu_data::ref_addr_size): Update.
4300
1b555f17
SM
43012020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
4302
4303 * dwarf2/read.c (load_cu): Return dwarf2_cu.
4304 (dw2_do_instantiate_symtab): Update.
4305 (queue_and_load_all_dwo_tus): Change parameter from
4306 dwarf2_per_cu_data to dwarf2_cu.
4307 (dwarf2_fetch_die_loc_sect_off): Update.
4308 (dwarf2_fetch_constant_bytes): Update.
4309 (dwarf2_fetch_die_type_sect_off): Update.
4310
8fc0b21d
SM
43112020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
4312
4313 * dwarf2/read.c (process_full_comp_unit,
4314 process_full_type_unit): Remove per_cu, per_objfile paramters.
4315 Add dwarf2_cu parameter.
4316 (process_queue): Update.
4317
168c9250
SM
43182020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
4319
4320 * dwarf2/read.c (create_cu_from_index_list): Replace
4321 dwarf2_per_objfile parameter with dwarf2_per_bfd.
4322 (create_cus_from_index_list): Likewise.
4323 (create_cus_from_index): Likewise.
4324 (create_signatured_type_table_from_index): Likewise.
4325 (create_cus_from_debug_names_list): Likewise.
4326 (create_cus_from_debug_names): Likewise.
4327 (dwarf2_read_gdb_index): Update.
4328 (dwarf2_read_debug_names): Update.
4329
e286671b
TT
43302020-05-27 Tom Tromey <tom@tromey.com>
4331 Simon Marchi <simon.marchi@efficios.com>
4332
4333 * dwarf2/read.h (struct dwarf2_per_objfile)
4334 <get_type_for_signatured_type, set_type_for_signatured_type>:
4335 New methods.
4336 <m_type_map>: New member.
4337 (struct signatured_type) <type>: Remove.
4338 * dwarf2/read.c
4339 (dwarf2_per_objfile::get_type_for_signatured_type,
4340 dwarf2_per_objfile::set_type_for_signatured_type): New.
4341 (get_signatured_type): Use new methods.
4342
8adb8487
TT
43432020-05-27 Tom Tromey <tom@tromey.com>
4344 Simon Marchi <simon.marchi@efficios.com>
4345
4346 * dwarf2/read.h (struct type_unit_group_unshareable): New.
4347 (struct dwarf2_per_objfile) <type_units>: New member.
4348 <get_type_unit_group_unshareable>: New method.
4349 * dwarf2/read.c (struct type_unit_group) <compunit_symtab,
4350 num_symtabs, symtabs>: Remove; move to
4351 type_unit_group_unshareable.
4352 (dwarf2_per_objfile::get_type_unit_group_unshareable): New.
4353 (process_full_type_unit, dwarf2_cu::setup_type_unit_groups)
4354 (dwarf2_cu::setup_type_unit_groups): Use type_unit_group_unshareable.
4355
127bbf4b
SM
43562020-05-27 Simon Marchi <simon.marchi@efficios.com>
4357
4358 * dwarf2/read.h (struct dwarf2_per_cu_data):
4359 <dwarf2_per_objfile>: Remove.
4360 * dwarf2/read.c (create_cu_from_index_list): Don't assign
4361 dwarf2_per_objfile.
4362 (create_signatured_type_table_from_index): Likewise.
4363 (create_signatured_type_table_from_debug_names): Likewise.
4364 (create_debug_type_hash_table): Likewise.
4365 (fill_in_sig_entry_from_dwo_entry): Likewise.
4366 (create_type_unit_group): Likewise.
4367 (read_comp_units_from_section): Likewise.
4368 (create_cus_hash_table): Likewise.
4369
f6e649dd
SM
43702020-05-27 Simon Marchi <simon.marchi@efficios.com>
4371
4372 * dwarf2/read.c (process_psymtab_comp_unit): Remove reference to
4373 dwarf2_per_cu_data::dwarf2_per_objfile.
4374 (compute_compunit_symtab_includes): Likewise.
4375 (dwarf2_cu::start_symtab): Likewise.
4376
aa66c379
SM
43772020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
4378
4379 * dwarf2/read.h (dwarf2_get_die_type): Add dwarf2_per_objfile
4380 parameter.
4381 * dwarf2/read.c (get_die_type_at_offset): Likewise.
4382 (read_namespace_alias): Update.
4383 (lookup_die_type): Update.
4384 (dwarf2_get_die_type): Add dwarf2_per_objfile parameter.
4385 * dwarf2/loc.c (class dwarf_evaluate_loc_desc) <get_base_type>:
4386 Update.
4387 (disassemble_dwarf_expression): Update.
4388
120ce1b5
SM
43892020-05-27 Simon Marchi <simon.marchi@efficios.com>
4390
4391 * dwarf2/read.h (struct dwarf2_queue_item): Add
4392 dwarf2_per_objfile parameter, assign new parameter.
4393 <per_objfile>: New field.
4394 * dwarf2/read.c (free_one_cached_comp_unit): Add
4395 dwarf2_per_objfile parameter.
4396 (queue_comp_unit): Likewise.
4397 (dw2_do_instantiate_symtab): Update.
4398 (process_psymtab_comp_unit): Update.
4399 (maybe_queue_comp_unit): Add dwarf2_per_objfile parameter.
4400 (process_imported_unit_die): Update.
4401 (queue_and_load_dwo_tu): Update.
4402 (follow_die_offset): Update.
4403 (follow_die_sig_1): Update.
4404
9f47c707
SM
44052020-05-27 Simon Marchi <simon.marchi@efficios.com>
4406
4407 * dwarf2/read.h (struct dwarf2_per_cu_data) <objfile>: Remove.
4408 * dwarf2/read.c (dwarf2_compute_name): Pass per_objfile down.
4409 (read_call_site_scope): Assign per_objfile.
4410 (dwarf2_per_cu_data::objfile): Remove.
4411 * gdbtypes.h (struct call_site) <per_objfile>: New member.
4412 * dwarf2/loc.h (dwarf2_evaluate_loc_desc): Add
4413 dwarf2_per_objfile parameter.
4414 * dwarf2/loc.c (dwarf2_evaluate_loc_desc_full): Add
4415 dwarf2_per_objfile parameter.
4416 (dwarf_expr_reg_to_entry_parameter): Add output
4417 dwarf2_per_objfile parameter.
4418 (locexpr_get_frame_base): Update.
4419 (class dwarf_evaluate_loc_desc) <get_tls_address>: Update.
4420 <push_dwarf_reg_entry_value>: Update.
4421 <call_site_to_target_addr>: Update.
4422 (dwarf_entry_parameter_to_value): Add dwarf2_per_objfile
4423 parameter.
4424 (value_of_dwarf_reg_entry): Update.
4425 (rw_pieced_value): Update.
4426 (indirect_synthetic_pointer): Update.
4427 (dwarf2_evaluate_property): Update.
4428 (dwarf2_loc_desc_get_symbol_read_needs): Add dwarf2_per_objfile
4429 parameter.
4430 (locexpr_read_variable): Update.
4431 (locexpr_get_symbol_read_needs): Update.
4432 (loclist_read_variable): Update.
4433
14095eb3
SM
44342020-05-27 Simon Marchi <simon.marchi@efficios.com>
4435
4436 * dwarf2/read.h (dwarf2_fetch_die_loc_sect_off,
4437 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
4438 dwarf2_fetch_die_type_sect_off): Add dwarf2_per_objfile
4439 parameter.
4440 * dwarf2/read.c (dwarf2_fetch_die_loc_sect_off,
4441 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
4442 dwarf2_fetch_die_type_sect_off): Add dwarf2_per_objfile
4443 parameter.
4444 * dwarf2/loc.c (indirect_synthetic_pointer, per_cu_dwarf_call,
4445 sect_variable_value): Add dwarf2_per_objfile parameter.
4446 (class dwarf_evaluate_loc_desc) <dwarf_call,
4447 dwarf_variable_value>: Update.
4448 (fetch_const_value_from_synthetic_pointer): Add
4449 dwarf2_per_objfile parameter.
4450 (fetch_const_value_from_synthetic_pointer): Update.
4451 (coerced_pieced_ref): Update.
4452 (class symbol_needs_eval_context) <dwarf_call,
4453 dwarf_variable_value>: Update.
4454 (dwarf2_compile_expr_to_ax): Update.
4455
3c3cd3d4
SM
44562020-05-27 Simon Marchi <simon.marchi@efficios.com>
4457
4458 * dwarf2/loc.c (allocate_piece_closure): Add dwarf2_per_objfile
4459 parameter.
4460 (dwarf2_evaluate_loc_desc_full): Update.
4461
82ca3f51
SM
44622020-05-27 Simon Marchi <simon.marchi@efficios.com>
4463
4464 * dwarf2/read.h (dwarf2_read_addr_index): Add dwarf2_per_objfile
4465 parameter.
4466 * dwarf2/read.c (dwarf2_read_addr_index): Likewise.
4467 * dwarf2/loc.c (decode_debug_loclists_addresses): Add
4468 dwarf2_per_objfile parameter.
4469 (decode_debug_loc_dwo_addresses): Likewise.
4470 (dwarf2_find_location_expression): Update.
4471 (class dwarf_evaluate_loc_desc) <get_addr_index>: Update.
4472 (locexpr_describe_location_piece): Add dwarf2_per_objfile
4473 parameter.
4474 (disassemble_dwarf_expression): Add dwarf2_per_objfile
4475 parameter.
4476 (locexpr_describe_location_1): Likewise.
4477 (locexpr_describe_location): Update.
4478
4b167ea1
SM
44792020-05-27 Simon Marchi <simon.marchi@efficios.com>
4480
4481 * dwarf2/read.h (struct dwarf2_per_cu_data) <text_offset>:
4482 Remove.
4483 * dwarf2/read.c (dwarf2_per_cu_data::text_offset): Remove.
4484 * dwarf2/loc.c (dwarf2_find_location_expression): Update.
4485 (dwarf2_compile_property_to_c): Update.
4486 (dwarf2_compile_expr_to_ax): Add dwarf2_per_objfile parameter,
4487 use text offset from objfile.
4488 (locexpr_tracepoint_var_ref): Update.
4489 (locexpr_generate_c_location): Update.
4490 (loclist_describe_location): Update.
4491 (loclist_tracepoint_var_ref): Update.
4492 * dwarf2/compile.h (compile_dwarf_bounds_to_c): Add
4493 dwarf2_per_objfile parameter.
4494 * dwarf2/loc2c.c (do_compile_dwarf_expr_to_c): Likewise,
4495 use text offset from objfile.
4496 (compile_dwarf_expr_to_c): Add dwarf2_per_objfile parameter.
4497
89b07335
SM
44982020-05-27 Simon Marchi <simon.marchi@efficios.com>
4499
4500 * dwarf2/expr.h (struct dwarf_expr_context)
4501 <dwarf_expr_context>: Add dwarf2_per_objfile parameter.
4502 <offset>: Remove.
4503 <per_objfile>: New member.
4504 * dwarf2/expr.c (dwarf_expr_context::dwarf_expr_context): Add
4505 dwarf2_per_objfile parameter. Don't set offset, set
4506 per_objfile.
4507 (dwarf_expr_context::execute_stack_op): Use offset from objfile.
4508 * dwarf2/frame.c (dwarf2_frame_find_fde): Return (by parameter)
4509 a dwarf2_per_objfile object instead of an offset.
4510 (class dwarf_expr_executor) <dwarf_expr_executor>: Add
4511 constructor.
4512 (execute_stack_op): Add dwarf2_per_objfile parameter, pass it
4513 to dwarf2_expr_executor constructor. Don't set offset.
4514 (dwarf2_fetch_cfa_info): Update.
4515 (struct dwarf2_frame_cache) <text_offset>: Remove.
4516 <per_objfile>: New field.
4517 (dwarf2_frame_cache): Update.
4518 (dwarf2_frame_prev_register): Update.
4519 * dwarf2/loc.c (class dwarf_evaluate_loc_desc)
4520 <dwarf_evaluate_loc_desc>: Add constructor.
4521 (dwarf2_evaluate_loc_desc_full): Update.
4522 (dwarf2_locexpr_baton_eval): Update.
4523 (class symbol_needs_eval_context) <symbol_needs_eval_context>:
4524 Add constructor.
4525 (dwarf2_loc_desc_get_symbol_read_needs): Update.
4526
293e7e51
SM
45272020-05-27 Simon Marchi <simon.marchi@efficios.com>
4528
4529 * dwarf2/read.h (struct dwarf2_per_cu_data) <addr_type,
4530 addr_sized_int_type>: Move to dwarf2_cu.
4531 <int_type>: Move to dwarf2_per_objfile.
4532 (struct dwarf2_per_objfile) <int_type>: Move here.
4533 * dwarf2/read.c (struct dwarf2_cu) <addr_type,
4534 addr_sized_int_type>: Move here.
4535 (read_func_scope): Update.
4536 (read_array_type): Update.
4537 (read_tag_string_type): Update.
4538 (attr_to_dynamic_prop): Update.
4539 (dwarf2_per_cu_data::int_type): Rename to...
4540 (dwarf2_per_objfile::int_type): ... this.
4541 (dwarf2_per_cu_data::addr_sized_int_type): Rename to...
4542 (dwarf2_cu::addr_sized_int_type): ... this.
4543 (read_subrange_type): Update.
4544 (dwarf2_per_cu_data::addr_type): Rename to...
4545 (dwarf2_cu::addr_type): ... this.
4546 (set_die_type): Update.
4547
64874a40
SM
45482020-05-27 Simon Marchi <simon.marchi@efficios.com>
4549
4550 * dwarf2/read.c (queue_and_load_all_dwo_tus): Access per_objfile
4551 data through per_cu->cu.
4552
4ab09049
SM
45532020-05-27 Simon Marchi <simon.marchi@efficios.com>
4554
4555 * dwarf2/read.c (lookup_dwo_comp_unit): Change
4556 dwarf2_per_cu_data parameter fo dwarf2_cu.
4557 (lookup_dwo_type_unit): Likewise.
4558 (read_cutu_die_from_dwo): Likewise.
4559 (lookup_dwo_unit): Likewise.
4560 (open_and_init_dwo_file): Likewise.
4561 (lookup_dwo_cutu): Likewise.
4562 (lookup_dwo_comp_unit): Likewise.
4563 (lookup_dwo_type_unit): Likewise.
4564 (cutu_reader::init_tu_and_read_dwo_dies): Update.
4565 (cutu_reader::cutu_reader): Update.
4566
47b14e86
SM
45672020-05-27 Simon Marchi <simon.marchi@efficios.com>
4568
4569 * dwarf2/read.c (process_full_comp_unit): Add dwarf2_per_objfile
4570 parameter.
4571 (process_full_type_unit): Likewise.
4572 (process_queue): Update.
4573
43182c09
SM
45742020-05-27 Simon Marchi <simon.marchi@efficios.com>
4575
4576 * dwarf2/read.c (recursively_compute_inclusions): Add
4577 dwarf2_per_objfile parameter.
4578 (compute_compunit_symtab_includes): Likewise.
4579 (process_cu_includes): Update.
4580
7aa104c4
SM
45812020-05-27 Simon Marchi <simon.marchi@efficios.com>
4582
4583 * dwarf2/read.c (create_partial_symtab): Add dwarf2_per_objfile
4584 parameter.
4585 (create_type_unit_group): Update.
4586 (process_psymtab_comp_unit_reader): Update.
4587 (build_type_psymtabs_reader): Update.
4588
e3beb21d
SM
45892020-05-27 Simon Marchi <simon.marchi@efficios.com>
4590
4591 * dwarf2/read.c (cutu_reader::keep): Access dwarf2_per_objfile
4592 object through m_this_cu->cu.
4593
d460f660
SM
45942020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
4595
4596 * dwarf2/read.c (queue_and_load_dwo_tu): Expect a dwarf2_cu as
4597 the info parameter.
4598 (queue_and_load_all_dwo_tus): Pass per_cu->cu.
4599
ab432490
SM
46002020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
4601
4602 * dwarf2/read.c (class cutu_reader) <cutu_reader>: Add
4603 per_objfile parameter.
4604 (load_full_type_unit): Add per_objfile parameter.
4605 (read_signatured_type): Likewise.
4606 (load_full_comp_unit): Likewise.
4607 (load_cu): Likewise.
4608 (dw2_do_instantiate_symtab): Likewise.
4609 (dw2_get_file_names): Likewise.
4610 (dw2_map_symtabs_matching_filename): Update.
4611 (dw_expand_symtabs_matching_file_matcher): Update.
4612 (dw2_map_symbol_filenames): Update.
4613 (process_psymtab_comp_unit): Add per_objfile parameter.
4614 (build_type_psymtabs_1): Update.
4615 (process_skeletonless_type_unit): Update.
4616 (dwarf2_build_psymtabs_hard): Update.
4617 (load_partial_comp_unit): Add per_objfile parameter.
4618 (scan_partial_symbols): Update.
4619 (load_full_comp_unit): Add per_objfile parameter.
4620 (process_imported_unit_die): Update.
4621 (create_cus_hash_table): Update.
4622 (find_partial_die): Update.
4623 (dwarf2_read_addr_index): Update.
4624 (follow_die_offset): Update.
4625 (dwarf2_fetch_die_loc_sect_off): Update.
4626 (dwarf2_fetch_constant_bytes): Update.
4627 (dwarf2_fetch_die_type_sect_off): Update.
4628 (follow_die_sig_1): Update.
4629 (load_full_type_unit): Add per_objfile parameter.
4630 (read_signatured_type): Likewise.
4631
313bad1b
SM
46322020-05-27 Simon Marchi <simon.marchi@efficios.com>
4633
4634 * dwarf2/read.c (lookup_dwo_unit): Use bfd_get_filename instead
4635 of objfile_name.
4636
c3699833
SM
46372020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
4638
4639 * dwarf2/read.h (struct dwarf2_per_bfd) <obfd>: New member.
4640 (dwarf2_get_dwz_file): Replace parameter with dwarf2_per_bfd.
4641 * dwarf2/read.c (dwarf2_per_bfd::dwarf2_per_bfd): Assign obfd
4642 field.
4643 (dwarf2_get_dwz_file): Replace parameter with dwarf2_per_bfd.
4644 (create_cus_from_index): Update.
4645 (dwarf2_read_gdb_index): Update.
4646 (create_cus_from_debug_names): Update.
4647 (dwarf2_read_debug_names): Update.
4648 (get_abbrev_section_for_cu): Update.
4649 (create_all_comp_units): Update.
4650 (read_attribute_value): Update.
4651 (get_debug_line_section): Update.
4652 * dwarf2/index-cache.c (index_cache::store): Update.
4653 * dwarf2/index-write.c (save_gdb_index_command): Update.
4654 * dwarf2/macro.c (dwarf_decode_macro_bytes): Update.
4655
1859c670
SM
46562020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
4657
4658 * dwarf2/read.h (struct dwarf2_per_cu_data) <per_bfd>: New
4659 member.
4660 * dwarf2/read.c (dwarf2_per_bfd::allocate_per_cu): Initialize
4661 dwarf2_per_cu_data::per_bfd.
4662 (dwarf2_per_bfd::allocate_signatured_type): Likewise.
4663 (create_type_unit_group): Likewise.
4664 (queue_comp_unit): Remove reference to
4665 per_cu->dwarf2_per_objfile.
4666 (maybe_queue_comp_unit): Likewise.
4667 (fill_in_sig_entry_from_dwo_entry): Assign new field.
4668 (create_cus_hash_table): Assign new field.
4669
5e22e966
SM
46702020-05-27 Simon Marchi <simon.marchi@efficios.com>
4671
4672 * dwarf2/read.c: Replace
4673 dwarf2_cu->per_cu->dwarf2_per_objfile references with
4674 dwarf2_cu->per_objfile throughout.
4675
97a1449a
SM
46762020-05-27 Simon Marchi <simon.marchi@efficios.com>
4677
4678 * dwarf2/read.c (dw2_do_instantiate_symtab): Add per_objfile
4679 parameter, don't use per_cu->dwarf2_per_objfile.
4680 (dw2_instantiate_symtab): Likewise.
4681 (dw2_find_last_source_symtab): Update.
4682 (dw2_map_expand_apply): Update.
4683 (dw2_lookup_symbol): Update.
4684 (dw2_expand_symtabs_for_function): Update.
4685 (dw2_expand_all_symtabs): Update.
4686 (dw2_expand_symtabs_with_fullname): Update.
4687 (dw2_expand_symtabs_matching_one): Add per_objfile parameter,
4688 don't use per_cu->dwarf2_per_objfile.
4689 (dw2_expand_marked_cus): Update.
4690 (dw2_find_pc_sect_compunit_symtab): Update.
4691 (dw2_debug_names_lookup_symbol): Update.
4692 (dw2_debug_names_expand_symtabs_for_function): Update.
4693 (dw2_debug_names_map_matching_symbols): Update.
4694 (dwarf2_psymtab::expand_psymtab): Update.
4695
9e021579
SM
46962020-05-27 Simon Marchi <simon.marchi@efficios.com>
4697
4698 * dwarf2/read.c (struct dwarf2_cu) <dwarf2_cu>: Add parameter.
4699 <per_objfile>: New member.
4700 (class cutu_reader) <init_tu_and_read_dwo_dies>: Add parameter.
4701 (cutu_reader::init_tu_and_read_dwo_dies): Add parameter, update
4702 call to dwarf2_cu.
4703 (cutu_reader::cutu_reader): Update.
4704 (dwarf2_cu::dwarf2_cu): Add parameter, initialize per_objfile.
4705
ae090bdb
SM
47062020-05-27 Simon Marchi <simon.marchi@efficios.com>
4707
4708 * dwarf2/read.h (struct dwarf2_per_bfd) <die_type_hash>: Move to
4709 struct dwarf2_per_objfile.
4710 (struct dwarf2_per_objfile) <die_type_hash>: Move from struct
4711 dwarf2_per_bfd.
4712 * dwarf2/read.c (set_die_type): Update.
4713 (get_die_type_at_offset): Update.
4714
af758d11
SM
47152020-05-27 Tom Tromey <tom@tromey.com>
4716 Simon Marchi <simon.marchi@efficios.com>
4717
4718 * dwarf2/read.h (struct dwarf2_per_bfd) <num_psymtabs>: New
4719 method.
4720 (struct dwarf2_per_objfile) <resize_symtabs, symtab_set_p,
4721 get_symtab, set_symtab>: New methods.
4722 <m_symtabs>: New field.
4723 (struct dwarf2_psymtab): Derive from partial_symtab.
4724 <readin_p, get_compunit_symtab>: Declare methods.
4725 * dwarf2/read.c (dwarf2_per_objfile::symtab_set_p,
4726 dwarf2_per_objfile::get_symtab, dwarf2_per_objfile::set_symtab):
4727 New methods.
4728 (struct dwarf2_per_cu_quick_data) <compunit_symtab>: Remove.
4729 (dw2_do_instantiate_symtab, dw2_instantiate_symtab)
4730 (dw2_map_expand_apply, dw2_map_symtabs_matching_filename)
4731 (dw2_symtab_iter_next, dw2_print_stats)
4732 (dw2_expand_symtabs_with_fullname)
4733 (dw2_expand_symtabs_matching_one)
4734 (dw_expand_symtabs_matching_file_matcher)
4735 (dw2_find_pc_sect_compunit_symtab, dw2_map_symbol_filenames)
4736 (dw2_debug_names_iterator::next)
4737 (dw2_debug_names_map_matching_symbols)
4738 (fill_in_sig_entry_from_dwo_entry, dwarf2_psymtab::read_symtab)
4739 (process_queue, dwarf2_psymtab::expand_psymtab): Update.
4740 (dwarf2_psymtab::readin_p, dwarf2_psymtab::get_compunit_symtab):
4741 New methods.
4742 (get_compunit_symtab, process_full_comp_unit)
4743 (process_full_type_unit): Update.
4744 (dwarf2_build_psymtabs, dwarf2_initialize_objfile, add_type_unit): Call
4745
5989a64e
SM
47462020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
4747
4748 * dwarf2/read.h (dwarf2_per_objfile): Rename to dwarf2_per_bfd,
4749 then introduce a new dwarf2_per_objfile type.
4750 <read_line_string>: Move to the new dwarf2_per_objfile type.
4751 <objfile>: Likewise.
4752 (dwarf2_per_bfd): Rename dwarf2_per_objfile to this.
4753 * dwarf2/read.c: Replace references to dwarf2_per_objfile with
4754 dwarf2_per_objfile->per_bfd.
4755 (dwarf2_per_objfile::dwarf2_per_objfile): Rename to...
4756 (dwarf2_per_bfd::dwarf2_per_bfd): ... this.
4757 (dwarf2_per_objfile::free_cached_comp_units): Rename to...
4758 (dwarf2_per_bfd::free_cached_comp_units): ... this.
4759 (dwarf2_has_info): Allocate dwarf2_per_bfd.
4760 (dwarf2_per_objfile::locate_sections): Rename to...
4761 (dwarf2_per_bfd::locate_sections): ... this.
4762 (dwarf2_per_objfile::get_cutu): Rename to...
4763 (dwarf2_per_bfd::get_cutu): ... this.
4764 (dwarf2_per_objfile::get_cu): Rename to...
4765 (dwarf2_per_bfd::get_cu): ... this.
4766 (dwarf2_per_objfile::get_tu): Rename to...
4767 (dwarf2_per_bfd::get_tu): ... this.
4768 (dwarf2_per_objfile::allocate_per_cu): Rename to...
4769 (dwarf2_per_bfd::allocate_per_cu): ... this.
4770 (dwarf2_per_objfile::allocate_signatured_type): Rename to...
4771 (dwarf2_per_bfd::allocate_signatured_type): ... this.
4772 (get_gdb_index_contents_ftype): Change parameter from
4773 dwarf2_per_objfile to dwarf2_per_bfd.
4774 * dwarf2/macro.c, dwarf2/index-write.c: Replace references to
4775 dwarf2_per_objfile with dwarf2_per_objfile->per_bfd.
4776
a50264ba
TT
47772020-05-27 Tom Tromey <tom@tromey.com>
4778 Simon Marchi <simon.marchi@efficios.com>
4779
4780 * dwarf2/loc.c (struct piece_closure) <per_objfile>: New member.
4781 (allocate_piece_closure): Set "per_objfile" member.
4782 (dwarf2_find_location_expression, dwarf2_locexpr_baton_eval)
4783 (locexpr_describe_location, loclist_describe_location): Use new
4784 member.
4785 * dwarf2/read.c (read_call_site_scope)
4786 (mark_common_block_symbol_computed, attr_to_dynamic_prop)
4787 (dwarf2_const_value_attr, dwarf2_fetch_die_loc_sect_off)
4788 (fill_in_loclist_baton, dwarf2_symbol_mark_computed,
4789 handle_data_member_location): Set per_objfile member.
4790 * dwarf2/loc.h (struct dwarf2_locexpr_baton) <per_objfile>: New
4791 member.
4792 (struct dwarf2_loclist_baton) <per_objfile>: New member.
4793
d3473f0c
TT
47942020-05-27 Tom Tromey <tom@tromey.com>
4795
4796 * dwarf2/read.h (struct dwarf2_per_objfile) <allocate_per_cu,
4797 allocate_signatured_type>: Declare new methods.
4798 <m_num_psymtabs>: New member.
4799 (struct dwarf2_per_cu_data) <index>: New member.
4800 * dwarf2/read.c (dwarf2_per_objfile::allocate_per_cu)
4801 (dwarf2_per_objfile::allocate_signatured_type): New methods.
4802 (create_cu_from_index_list): Use allocate_per_cu.
4803 (create_signatured_type_table_from_index)
4804 (create_signatured_type_table_from_debug_names)
4805 (create_debug_type_hash_table, add_type_unit)
4806 (read_comp_units_from_section): Use allocate_signatured_type.
4807
5717c425
TT
48082020-05-27 Tom Tromey <tom@tromey.com>
4809
4810 * psymtab.c (partial_map_expand_apply)
4811 (psym_find_pc_sect_compunit_symtab, psym_lookup_symbol)
4812 (psym_lookup_global_symbol_language)
4813 (psymtab_to_symtab, psym_find_last_source_symtab, dump_psymtab)
4814 (psym_print_stats, psym_expand_symtabs_for_function)
4815 (psym_map_symbol_filenames, psym_map_matching_symbols)
4816 (psym_expand_symtabs_matching)
4817 (partial_symtab::read_dependencies, maintenance_info_psymtabs)
4818 (maintenance_check_psymtabs): Update.
4819 * psympriv.h (struct partial_symtab) <readin_p,
4820 get_compunit_symtab>: Add objfile parameter.
4821 (struct standard_psymtab) <readin_p, get_compunit_symtab>:
4822 Likewise.
4823 * dwarf2/read.c (struct dwarf2_include_psymtab) <readin_p,
4824 get_compunit_symtab>: Likewise.
4825 (dwarf2_psymtab::expand_psymtab): Pass objfile argument.
4826
45940949
TT
48272020-05-27 Tom Tromey <tom@tromey.com>
4828
4829 * dwarf2/read.h (struct dwarf2_per_objfile) <obstack>: New
4830 member.
4831 * dwarf2/read.c (delete_file_name_entry): Fix comment.
4832 (create_cu_from_index_list)
4833 (create_signatured_type_table_from_index)
4834 (create_signatured_type_table_from_debug_names)
4835 (dw2_get_file_names_reader, dwarf2_initialize_objfile)
4836 (dwarf2_create_include_psymtab)
4837 (create_debug_type_hash_table, add_type_unit)
4838 (create_type_unit_group, read_comp_units_from_section)
4839 (dwarf2_compute_name, create_cus_hash_table)
4840 (create_dwp_hash_table, create_dwo_unit_in_dwp_v1)
4841 (create_dwo_unit_in_dwp_v2, open_and_init_dwp_file): Use new
4842 obstack.
4843 (dw2_get_real_path): Likewise. Change argument to
4844 dwarf2_per_objfile.
4845
f8c6d152
LM
48462020-05-27 Luis Machado <luis.machado@linaro.org>
4847
4848 PR tdep/26000
4849 * arm-tdep.c (thumb_analyze_prologue): Fix instruction matching
4850 for ldrd (immediate).
4851
e98d2e6d
PW
48522020-05-26 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4853
4854 * command.h: Add comment giving the name of class_tui.
4855 * cli/cli-cmds.c (_initialize_cli_cmds): If TUI defined,
4856 create the fake command for the help for class_tui.
4857
53a47a3e
TT
48582020-05-26 Tom Tromey <tromey@adacore.com>
4859
4860 * ada-lang.c (ada_print_array_index): Change type. Call val_atr.
4861 (ada_value_ptr_subscript): Don't call pos_atr on the lower bound.
4862 (val_atr): New function.
4863 (value_val_atr): Use it.
4864 * ada-valprint.c (print_optional_low_bound): Change low bound
4865 handling for enums.
4866 (val_print_packed_array_elements): Don't call discrete_position.
4867 * gdbtypes.c (get_discrete_bounds) <TYPE_CODE_RANGE>: Call
4868 discrete_position for enum types.
4869 * language.c (default_print_array_index): Change type.
4870 * language.h (struct language_defn) <la_print_array_index>: Add
4871 index_type parameter, change type of index_value.
4872 (LA_PRINT_ARRAY_INDEX): Add index_type parameter.
4873 (default_print_array_index): Update.
4874 * valprint.c (maybe_print_array_index): Don't call
4875 value_from_longest. Update.
4876 (value_print_array_elements): Don't call discrete_position.
4877
0bc2354b
TT
48782020-05-26 Tom Tromey <tromey@adacore.com>
4879
4880 * ada-lang.c (value_val_atr): Handle TYPE_CODE_RANGE.
4881 * gdbtypes.c (discrete_position): Handle TYPE_CODE_RANGE.
4882
1218a4bf
CDA
48832020-05-25 Cristiano De Alti <cristiano_dealti@hotmail.com>
4884
4885 PR gdb/13519
4886 * avr-tdep.c (avr_integer_to_address): Return data or code
4887 address accordingly to the second 'type' argument of the
4888 function.
4889
92651b1d
MW
48902020-05-25 Michael Weghorn <m.weghorn@posteo.de>
4891
4892 * infcmd.c, inferior.h: (construct_inferior_arguments):
4893 Moved function from here to gdbsupport/common-inferior.{h,cc}
4894
0a4f5f8c
TT
48952020-05-23 Tom Tromey <tom@tromey.com>
4896
4897 Revert commit eca1f90c:
4898 * NEWS: Remove entry for completion styling.
4899 * completer.c (_rl_completion_prefix_display_length): Move
4900 declaration later.
4901 (gdb_fnprint): Revert.
4902 (gdb_display_match_list_1): Likewise.
4903 * cli/cli-style.c (completion_prefix_style)
4904 (completion_difference_style, completion_suffix_style): Remove.
4905 (_initialize_cli_style): Revert.
4906 * cli/cli-style.h (completion_prefix_style)
4907 (completion_difference_style, completion_suffix_style): Don't
4908 declare.
4909
e08bd6c5
PA
49102020-05-24 Pedro Alves <palves@redhat.com>
4911
4912 * symtab.c (completion_list_add_name): Return boolean indication
4913 of whether the symbol matched.
4914 (completion_list_add_symbol): Don't try to remove C++ aliases if
4915 the symbol didn't match in the first place.
4916 * symtab.h (completion_list_add_name): Return bool.
4917
ceacbf6e
SM
49182020-05-23 Simon Marchi <simon.marchi@polymtl.ca>
4919
4920 * gdbtypes.h (TYPE_FIELD): Remove. Replace all uses with
4921 type::field.
4922
26f16254
JB
49232020-05-23 Joel Brobecker <brobecker@adacore.com>
4924
4925 GDB 9.2 released.
4926
eca1f90c
TT
49272020-05-23 Tom Tromey <tom@tromey.com>
4928
4929 * NEWS: Add entry for completion styling.
4930 * completer.c (_rl_completion_prefix_display_length): Move
4931 declaration earlier.
4932 (gdb_fnprint): Use completion_style.
4933 (gdb_display_match_list_1): Likewise.
4934 * cli/cli-style.c (completion_prefix_style)
4935 (completion_difference_style, completion_suffix_style): New
4936 globals.
4937 (_initialize_cli_style): Register new globals.
4938 * cli/cli-style.h (completion_prefix_style)
4939 (completion_difference_style, completion_suffix_style): Declare.
4940
51e2cfa2
PA
49412020-05-23 Pedro Alves <palves@redhat.com>
4942
4943 * utils.c: Include "gdbsupport/gdb-safe-ctype.h".
4944 (parse_escape): Use ISDIGIT instead of isdigit.
4945 (puts_debug): Use gdb_isprint instead of isprint.
4946 (fprintf_symbol_filtered): Use ISALNUM instead of isalnum.
4947 (cp_skip_operator_token, skip_ws, strncmp_iw_with_mode): Use
4948 ISSPACE instead of isspace.
4949 (strncmp_iw_with_mode): Use TOLOWER instead of tolower and ISSPACE
4950 instead of isspace.
4951 (strcmp_iw_ordered): Use ISSPACE instead of isspace.
4952 (string_to_core_addr): Use TOLOWER instead of tolower, ISXDIGIT
4953 instead of isxdigit and ISDIGIT instead of isdigit.
4954
80fc5e77
SM
49552020-05-22 Simon Marchi <simon.marchi@efficios.com>
4956
4957 * gdbtypes.h (struct type) <field>: New method.
4958 (TYPE_FIELDS): Remove, replace all uses with either type::fields
4959 or type::field.
4960
3cabb6b0
SM
49612020-05-22 Simon Marchi <simon.marchi@efficios.com>
4962
4963 * gdbtypes.h (struct type) <fields, set_fields>: New methods.
4964 (TYPE_FIELDS): Use type::fields. Change all call sites that
4965 modify the propery to use type::set_fields instead.
4966
1f704f76
SM
49672020-05-22 Simon Marchi <simon.marchi@efficios.com>
4968
4969 * gdbtypes.h (TYPE_NFIELDS): Remove. Change all cal sites to use
4970 type::num_fields instead.
4971
5e33d5f4
SM
49722020-05-22 Simon Marchi <simon.marchi@efficios.com>
4973
4974 * gdbtypes.h (struct type) <num_fields, set_num_fields>: New
4975 methods.
4976 (TYPE_NFIELDS): Use type::num_fields. Change all call sites
4977 that modify the number of fields to use type::set_num_fields
4978 instead.
4979
9392ebb3
TT
49802020-05-22 Tom Tromey <tromey@adacore.com>
4981
4982 * compile/compile-object-load.h (munmap_list_free): Don't
4983 declare.
4984
7c13f4e8
AB
49852020-05-22 Andrew Burgess <andrew.burgess@embecosm.com>
4986
4987 * annotate.c (annotate_source_line): Update return type, add call
4988 to update current symtab and line.
4989 * annotate.h (annotate_source_line): Update return type, and
4990 extend header comment.
4991 * source.c (info_line_command): Check annotation_level before
4992 calling annotate_source_line.
4993 * stack.c (print_frame_info): If calling annotate_source_line
4994 returns true, then don't print any other source line information.
4995
aa370940
SM
49962020-05-21 Simon Marchi <simon.marchi@efficios.com>
4997
4998 * lm32-tdep.c (lm32_register_reggroup_p): Fix condition.
4999
84d53fa9
SM
50002020-05-21 Simon Marchi <simon.marchi@efficios.com>
5001
5002 * coffread.c (patch_type): Remove NULL check before xfree.
5003 * corefile.c (set_gnutarget): Likewise.
5004 * cp-abi.c (set_cp_abi_as_auto_default): Likewise.
5005 * exec.c (build_section_table): Likewise.
5006 * remote.c (remote_target::pass_signals): Likewise.
5007 * utils.c (n_spaces): Likewise.
5008 * cli/cli-script.c (document_command): Likewise.
5009 * i386-windows-tdep.c (core_process_module_section): Likewise.
5010 * linux-fork.c (struct fork_info) <~fork_info>: Likewise.
5011
9d428aae
SM
50122020-05-20 Simon Marchi <simon.marchi@efficios.com>
5013
5014 * symfile.c (reread_symbols): Clear objfile's section_offsets
5015 vector and section indices, re-compute them by calling
5016 sym_offsets.
5017
250106a7
TT
50182020-05-20 Tom Tromey <tromey@adacore.com>
5019
5020 * ada-lang.c (bound_name, MAX_ADA_DIMENS): Remove.
ec16513e 5021 (desc_one_bound, desc_index_type): Compute field name.
250106a7 5022
9a0bacfb
TV
50232020-05-20 Tom de Vries <tdevries@suse.de>
5024
5025 PR symtab/25833
5026 * dwarf2/read.c (dw2_map_matching_symbols): Handle .gdb_index.
5027
7b958a48
AM
50282020-05-20 Alan Modra <amodra@gmail.com>
5029
5030 PR 25993
5031 * solib-darwin.c (darwin_bfd_open): Don't strdup pathname for
5032 bfd_set_filename.
5033 * solib-aix.c (solib_aix_bfd_open): Use std::string for name
5034 passed to bfd_set_filename.
5035 * symfile-mem.c (add_vsyscall_page): Likewise for string
5036 passed to symbol_file_add_from_memory.
5037 (symbol_file_add_from_memory): Make name param a const char* and
5038 don't strdup.
5039
c7e97679
AM
50402020-05-20 Alan Modra <amodra@gmail.com>
5041
5042 * coff-pe-read.c (read_pe_exported_syms): Use bfd_get_filename
5043 rather than accessing bfd->filename directly.
5044 * dtrace-probe.c (dtrace_static_probe_ops::get_probes): Likewise,
5045 and use bfd_section_name.
5046 * dwarf2/frame.c (decode_frame_entry): Likewise.
5047 * exec.c (exec_set_section_address): Likewise.
5048 * solib-aix.c (solib_aix_bfd_open): Likewise.
5049 * stap-probe.c (get_stap_base_address): Likewise.
5050 * symfile.c (reread_symbols): Likewise.
5051
563c591b
TT
50522020-05-19 Tom Tromey <tromey@adacore.com>
5053
5054 * sparc64-tdep.c (adi_tag_fd): Update call to target_fileio_open.
5055
f408d82c
SM
50562020-05-19 Simon Marchi <simon.marchi@efficios.com>
5057
5058 * dwarf2/read.c (quirk_rust_enum): Allocate enough fields.
5059
98c59b52
PA
50602020-05-19 Pedro Alves <palves@redhat.com>
5061
5062 * NEWS (set exec-file-mismatch): Adjust entry.
5063 * exec.c: Include "build-id.h".
5064 (validate_exec_file): Try to match build IDs instead of filenames.
5065 * gdb_bfd.c (struct gdb_bfd_open_closure): New.
5066 (gdb_bfd_iovec_fileio_open): Adjust to use gdb_bfd_open_closure
5067 and pass down 'warn_if_slow'.
5068 (gdb_bfd_open): Add 'warn_if_slow' parameter. Use
5069 gdb_bfd_open_closure to pass it down.
5070 * gdb_bfd.h (gdb_bfd_open): Add 'warn_if_slow' parameter.
5071
4111f652
PA
50722020-05-19 Pedro Alves <palves@redhat.com>
5073
5074 * gdb_bfd.c (gdb_bfd_iovec_fileio_open): Adjust.
5075 * target.c (target_fileio_open_1): Rename to target_fileio_open
5076 and make extern. Use bool.
5077 (target_fileio_open, target_fileio_open_warn_if_slow): Delete.
5078 (target_fileio_read_alloc_1): Adjust.
5079 * target.h (target_fileio_open): Add 'warn_if_slow' parameter.
5080 (target_fileio_open_warn_if_slow): Delete declaration.
5081
ad80db5b
PA
50822020-05-19 Pedro Alves <palves@redhat.com>
5083
5084 * gdb_bfd.h: (gdb_bfd_open): Default to 'fd' parameter to -1.
5085 Adjust all callers.
5086
1d6ce4d3
YS
50872020-05-19 Yoshinori Sato <ysato@users.sourceforge.jp>
5088
5089 * h8300-tdep.c (h8300_is_argument_spill): Change how we check
5090 whether disp is negative.
5091
9005fbbb
SM
50922020-05-19 Simon Marchi <simon.marchi@efficios.com>
5093
5094 * symfile.h (struct symfile_segment_data)
5095 <~symfile_segment_data>: Remove.
5096 <segment_info>: Change to std::vector.
5097 * symfile.c (default_symfile_segments): Update.
5098 * elfread.c (elf_symfile_segments): Update.
5099
68b888ff
SM
51002020-05-19 Simon Marchi <simon.marchi@efficios.com>
5101
5102 * symfile.h (struct symfile_segment_data) <struct segment>: New.
5103 <segments>: New.
5104 <segment_bases, segment_sizes>: Remove.
5105 * symfile.c (default_symfile_segments): Update.
5106 * elfread.c (elf_symfile_segments): Update.
5107 * remote.c (remote_target::get_offsets): Update.
5108 * solib-target.c (solib_target_relocate_section_addresses):
5109 Update.
5110
62982abd
SM
51112020-05-19 Simon Marchi <simon.marchi@efficios.com>
5112
5113 * symfile.h (struct symfile_segment_data): Initialize fields.
5114 <~symfile_segment_data>: Add.
5115 (symfile_segment_data_up): New.
5116 (struct sym_fns) <sym_segments>: Return a
5117 symfile_segment_data_up.
5118 (default_symfile_segments): Return a symfile_segment_data_up.
5119 (free_symfile_segment_data): Remove.
5120 (get_symfile_segment_data): Return a symfile_segment_data_up.
5121 * symfile.c (default_symfile_segments): Likewise.
5122 (get_symfile_segment_data): Likewise.
5123 (free_symfile_segment_data): Remove.
5124 (symfile_find_segment_sections): Update.
5125 * elfread.c (elf_symfile_segments): Return a
5126 symfile_segment_data_up.
5127 * remote.c (remote_target::get_offsets): Update.
5128 * solib-target.c (solib_target_relocate_section_addresses):
5129 Update.
5130 * symfile-debug.c (debug_sym_segments): Return a
5131 symfile_segment_data_up.
5132
7f204339
RO
51332020-05-18 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5134
e52a0f1b
RO
5135 PR build/25981
5136 * i386-sol2-nat.c [PR_MODEL_NATIVE != PR_MODEL_LP64] (regmap):
5137 Hardcode register numbers.
5138
7f204339
RO
5139 PR build/25981
5140 * procfs.c [(__i386__ || __x86_64__) && sun] (proc_get_LDT_entry,
5141 procfs_find_LDT_entry): Remove.
5142 * procfs.h [(__i386__ || __x86_64__) && sun] (struct ssd,
5143 procfs_find_LDT_entry): Remove.
5144 * sol-thread.c [(__i386__ || __x86_64__) && sun] (ps_lgetLDT):
5145 Remove.
5146
7f32a4d5
PA
51472020-05-17 Pedro Alves <palves@redhat.com>
5148 Andrew Burgess <andrew.burgess@embecosm.com>
5149 Keno Fischer <keno@juliacomputing.com>
5150
5151 PR gdb/25741
5152 * breakpoint.c (build_target_condition_list): Update comments.
5153 (build_target_command_list): Update comments and skip matching
5154 locations.
5155 (insert_bp_location): Move "set breakpoint auto-hw on" handling to
5156 a separate function. Simplify "set breakpoint auto-hw off"
5157 handling.
5158 (insert_breakpoints): Update comment.
5159 (tracepoint_locations_match): New parameter. For breakpoints,
5160 compare location types too, if the caller wants to.
5161 (handle_automatic_hardware_breakpoints): New functions.
5162 (bp_location_is_less_than): Also sort by location type and
5163 hardware breakpoint length.
5164 (update_global_location_list): Handle "set breakpoint auto-hw on"
5165 here.
5166 (update_breakpoint_locations): Ask breakpoint_locations_match to
5167 ignore location types.
5168
7d93a1e0
SM
51692020-05-16 Simon Marchi <simon.marchi@efficios.com>
5170
5171 * gdbtypes.h (TYPE_NAME): Remove. Change all cal sites to use
5172 type::name instead.
5173
d0e39ea2
SM
51742020-05-16 Simon Marchi <simon.marchi@efficios.com>
5175
5176 * gdbtypes.h (struct type) <name, set_name>: New methods.
5177 (TYPE_CODE): Use type::name. Change all call sites used to set
5178 the name to use type::set_name instead.
5179
2dab0c7b
TT
51802020-05-16 Tom Tromey <tom@tromey.com>
5181
5182 * top.c (quit_force): Update.
5183 * infrun.c (handle_no_resumed): Update.
5184 * top.h (all_uis): New function.
5185 (ALL_UIS): Remove.
5186
59f7bd8d
SM
51872020-05-16 Simon Marchi <simon.marchi@efficios.com>
5188
5189 * mips-linux-tdep.c (mips_linux_in_dynsym_stub): Fix condition.
5190
9bf058f0
PA
51912020-05-16 Pedro Alves <palves@redhat.com>
5192
5193 * ia64-linux-nat.c
5194 (ia64_linux_nat_target) <enable_watchpoints_in_psr(ptid_t)>:
5195 Declare method.
5196 (enable_watchpoints_in_psr): Now a method of ia64_linux_nat_target.
5197
8f86ae1a
SM
51982020-05-15 Simon Marchi <simon.marchi@efficios.com>
5199
5200 * sparc64-tdep.c (adi_stat_t): Remove typedef (leaving struct).
5201 (sparc64_adi_info): Likewise.
5202
d6bc0792
TT
52032020-05-15 Tom Tromey <tom@tromey.com>
5204
5205 * symtab.c (lookup_language_this, lookup_symbol_aux): Use
5206 block_objfile.
5207 (lookup_objfile_from_block): Remove.
5208 (lookup_symbol_in_block, lookup_symbol_in_static_block)
5209 (lookup_global_symbol): Use block_objfile.
5210 * symtab.h (lookup_objfile_from_block): Don't declare.
5211 * printcmd.c (clear_dangling_display_expressions): Use
5212 block_objfile.
5213 * parse.c (operator_check_standard): Use block_objfile.
5214
8c14c3a3
TT
52152020-05-15 Tom Tromey <tom@tromey.com>
5216
5217 * language.c (language_alloc_type_symbol): Set
5218 SYMBOL_SECTION.
5219 * symtab.c (initialize_objfile_symbol): Remove.
5220 (allocate_symbol): Remove.
5221 (allocate_template_symbol): Remove.
5222 * dwarf2/read.c (fixup_go_packaging): Use "new".
5223 (new_symbol): Use "new".
5224 (read_variable): Don't call initialize_objfile_symbol. Use
5225 "new".
5226 (read_func_scope): Use "new".
5227 * xcoffread.c (process_xcoff_symbol): Don't call
5228 initialize_objfile_symbol.
5229 (SYMBOL_DUP): Remove.
5230 * coffread.c (process_coff_symbol, coff_read_enum_type): Use
5231 "new".
5232 * symtab.h (allocate_symbol, initialize_objfile_symbol)
5233 (allocate_template_symbol): Don't declare.
5234 (struct symbol): Add copy constructor. Change defaults.
5235 * jit.c (finalize_symtab): Use "new".
5236 * ctfread.c (ctf_add_enum_member_cb, new_symbol, ctf_add_var_cb):
5237 Use "new".
5238 * stabsread.c (patch_block_stabs, define_symbol, read_enum_type)
5239 (common_block_end): Use "new".
5240 * mdebugread.c (parse_symbol): Use "new".
5241 (new_symbol): Likewise.
5242
5b4a1a8d
PW
52432020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5244
5245 * NEWS: Mention changes to help and apropos.
5246
57b4f16e
PW
52472020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5248
5249 * command.h (enum command_class): Improve comments, document
5250 that class_alias is for user-defined aliases, give the class
5251 name for each class, remove unused class_xdb.
5252 * cli/cli-decode.c (add_com_alias): Document THECLASS intended usage.
5253 * breakpoint.c (_initialize_breakpoint): Replace class_alias
5254 by a precise class.
5255 * infcmd.c (_initialize_infcmd): Likewise.
5256 * reverse.c (_initialize_reverse): Likewise.
5257 * stack.c (_initialize_stack): Likewise.
5258 * symfile.c (_initialize_symfile): Likewise.
5259 * tracepoint.c (_initialize_tracepoint): Likewise.
5260
7c05caf7
PW
52612020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5262
5263 * cli/cli-decode.c (apropos_cmd): Produce output for aliases
5264 when their aliased command is traversed.
5265 (help_cmd): Add fput_command_names_styled call to
5266 output command name and aliases when command has an alias.
5267
3b3aaacb
PW
52682020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5269
5270 * cli/cli-decode.h (help_cmd_list): Remove declaration.
5271 * cli/cli-decode.c (help_cmd_list): Declare as static,
5272 remove prefix argument, use bool for recurse arg, rework to show the aliases of
5273 a command together with the command.
5274 (fput_command_name_styled, fput_command_names_styled): New functions.
5275 (print_help_for_command): Remove prefix arg, use bool for recurse arg, use
5276 fput_command_name_styled.
5277 (help_list, help_all): Update callers to remove prefix arg and use bool recurse.
5278 * cli/cli-cmds.c (_initialize_cli_cmds): Update alias_command doc.
5279
7aa1b46f
PW
52802020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5281
5282 * cli/cli-setshow.h (cmd_show_list): Remove prefix argument.
5283 * cli/cli-decode.c (do_show_prefix_cmd): Likewise.
5284 * command.h (cmd_show_list): Likewise.
5285 * dwarf2/index-cache.c (show_index_cache_command): Likewise.
5286 * cli/cli-setshow.c (cmd_show_list): Use the prefix to produce the output. Skip aliases.
5287
89bcba74
PW
52882020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5289
5290 * unittests/command-def-selftests.c (traverse_command_structure):
5291 Verify all commands of a list have the same prefix command and
5292 that only the top cmdlist commands have a null prefix.
5293
3f4d92eb
PW
52942020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5295
5296 * cli/cli-decode.c (lookup_cmd_for_prefix): Return the aliased command
5297 as prefix, not one of its aliases.
5298 (set_cmd_prefix): Remove.
5299 (do_add_cmd): Centralize the setting of the prefix of a command, when
5300 command is defined after its full chain of prefix commands.
5301 (add_alias_cmd): Remove call to set_cmd_prefix, as do_add_cmd does it.
5302 (add_setshow_cmd_full): Likewise.
5303 (update_prefix_field_of_prefixed_commands): New function.
5304 (add_prefix_cmd): Replace non working call to set_cmd_prefix by
5305 update_prefix_field_of_prefixed_commands.
5306 * gdb/remote-fileio.c (initialize_remote_fileio): Use the real
5307 addresses of remote_set_cmdlist and remote_show_cmdlist given
5308 as argument, not the address of an argument.
5309 * gdb/remote-fileio.h (initialize_remote_fileio): Likewise.
5310 * gdb/remote.c (_initialize_remote): Likewise.
5311
0605465f
PW
53122020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5313
5314 * cli/cli-cmds.c (alias_command): Check for an existing alias
5315 using lookup_cmd_composition, as valid_command_p is too strict
5316 and forbids aliases that are the prefix of an existing alias
5317 or command.
5318 * cli/cli-decode.c (lookup_cmd_composition): Ensure a prefix
5319 command is properly recognised as a valid command.
5320
58e6ac70
PW
53212020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5322
5323 * unittests/help-doc-selftests.c: Rename to
5324 unittests/command-def-selftests.c
5325 * unittests/command-def-selftests.c (help_doc_tests): Update some
5326 comments.
5327 (command_structure_tests, traverse_command_structure): New namespace
5328 and function.
5329 (command_structure_invariants_tests): New function.
5330 (_initialize_command_def_selftests) Renamed from
5331 _initialize_help_doc_selftests, register command_structure_invariants
5332 selftest.
5333
a7b9ceb8
PW
53342020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5335
5336 * cli/cli-cmds.c (_initialize_cli_cmds): Define 'info set' as
5337 an alias of 'show'.
5338
b2188a06
JB
53392020-05-15 Joel Brobecker <brobecker@adacore.com>
5340
5341 * ada-lang.h: (ada_is_gnat_encoded_fixed_point_type): Renames
5342 ada_is_fixed_point_type. Update all callers.
5343 (gnat_encoded_fixed_point_delta): Renames ada_delta. Update
5344 all callers.
5345 * ada-lang.c (gnat_encoded_fixed_type_info): Renames fixed_type_info.
5346 Update all callers.
5347 * ada-typeprint.c (print_gnat_encoded_fixed_point_type): Renames
5348 print_fixed_point_type. Update all callers.
5349 * ada-valprint.c (ada_value_print_num): Replace call to
5350 ada_is_fixed_point_type by ada_is_gnat_encoded_fixed_point_type.
5351
a51951c2
KB
53522020-05-14 Kevin Buettner <kevinb@redhat.com>
5353
5354 * nat/linux-btrace.c (btrace_this_cpu): Add check for AMD
5355 processors.
5356 (cpu_supports_bts): Add CV_AMD case.
5357
29d6859f
LM
53582020-05-14 Laurent Morichetti <Laurent.Morichetti@amd.com>
5359 Simon Marchi <simon.marchi@efficios.com>
5360
5361 * infrun.c (stop_all_threads): Collect multiple wait events at
5362 each pass.
5363
78134374
SM
53642020-05-14 Simon Marchi <simon.marchi@efficios.com>
5365
5366 * gdbtypes.h (TYPE_CODE): Remove. Change all call sites to use
5367 type::code instead.
5368
67607e24
SM
53692020-05-14 Simon Marchi <simon.marchi@efficios.com>
5370
5371 * gdbtypes.h (struct type) <code, set_code>: New methods.
5372 (TYPE_CODE): Use type::code. Change all call sites used to set
5373 the code to use type::set_code instead.
5374
a05575d3
TBA
53752020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
5376 Tom de Vries <tdevries@suse.de>
5377 Pedro Alves <palves@redhat.com>
5378
5379 PR threads/25478
5380 * infrun.c (stop_all_threads): Do NOT ignore
5381 TARGET_WAITKIND_NO_RESUMED, TARGET_WAITKIND_THREAD_EXITED,
5382 TARGET_WAITKIND_EXITED, TARGET_WAITKIND_SIGNALLED wait statuses
5383 received.
5384 (handle_no_resumed): Remove code handling a live inferior with no
5385 threads.
5386 * remote.c (has_single_non_exited_thread): New.
5387 (remote_target::update_thread_list): Do not delete a thread if is
5388 the last thread of the process.
5389 * thread.c (thread_select): Call delete_exited_threads instead of
5390 prune_threads.
5391
6ad82919
TBA
53922020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
5393
5394 * infrun.c (stop_all_threads): Enable/disable thread events of all
5395 targets. Move a debug message denoting the end of the function
5396 into the SCOPED_EXIT block.
5397
d890404b
TBA
53982020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
5399
5400 * process-stratum-target.h: Include <set>.
5401 (all_non_exited_process_targets, switch_to_target_no_thread): New
5402 function declarations.
5403 * process-stratum-target.c (all_non_exited_process_targets)
5404 (switch_to_target_no_thread): New function implementations.
5405
293b3ebc
TBA
54062020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
5407
5408 * infrun.c (handle_inferior_event): Extract out a piece of code
5409 into...
5410 (mark_non_executing_threads): ...this new function.
5411
7ca9b62a
TBA
54122020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
5413
5414 * infrun.c (resume_1): Move a 'regcache_read_pc' call down to first
5415 use.
5416
fc75c28b
TBA
54172020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
5418
5419 * regcache.c (regcache_read_pc_protected): New function
5420 implementation that returns 0 if the PC cannot read via
5421 'regcache_read_pc'.
5422 * infrun.c (proceed): Call 'regcache_read_pc_protected'
5423 instead of 'regcache_read_pc'.
5424 (keep_going_pass_signal): Ditto.
5425
a89febbd
TT
54262020-05-13 Tom Tromey <tromey@adacore.com>
5427
5428 * ada-lang.c (align_value): Remove.
5429 (ada_template_to_fixed_record_type_1): Use align_up.
5430
f7e23710
TBA
54312020-05-13 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
5432
5433 * async-event.c: Update the copyright year.
5434 * async-event.h: Update the copyright year.
5435
02ff80c2
SM
54362020-05-12 Simon Marchi <simon.marchi@efficios.com>
5437
5438 * objfiles.h (is_addr_in_objfile,
5439 shared_objfile_contains_address_p): Return bool.
5440 * objfile.c (is_addr_in_objfile,
5441 shared_objfile_contains_address_p): Return bool.
5442
4fd6c7e8
TT
54432020-05-11 Tom Tromey <tromey@adacore.com>
5444
5445 * cli/cli-cmds.c (info_command): Restore.
5446 (_initialize_cli_cmds): Use add_prefix_command for "info".
5447 * gdb-gdb.gdb.in: Restore breakpoint on info_command.
5448
5eb68a39
TT
54492020-05-11 Tom Tromey <tromey@adacore.com>
5450
5451 * ada-lang.c (ada_value_primitive_field): Now public.
5452 * ada-lang.h (ada_value_primitive_field): Declare.
5453 * ada-valprint.c (print_field_values): Use
5454 ada_value_primitive_field for wrapper fields.
5455
7666722f
TV
54562020-05-11 Tom de Vries <tdevries@suse.de>
5457
5458 * dwarf2/index-write.c (debug_names::psymbol_tag): Handle
5459 MODULE_DOMAIN.
5460
3ee6bb11
TV
54612020-05-11 Tom de Vries <tdevries@suse.de>
5462
5463 PR symtab/25941
5464 * dwarf2/read.c (create_cus_from_debug_names_list): Initialize CUs
5465 with length 0, if not gdb-produced.
5466 (cutu_reader::cutu_reader): Set CU length to actual length if 0.
5467
43434996
TV
54682020-05-09 Tom de Vries <tdevries@suse.de>
5469
5470 PR gdb/25955
5471 * break-catch-throw.c (check_status_exception_catchpoint): Fix name
5472 calculation.
5473
2f78cffc
TT
54742020-05-09 Tom Tromey <tom@tromey.com>
5475
5476 * top.c (server_command): Now bool.
5477 * top.h (server_command): Now bool.
5478
4f7bc5ed
TT
54792020-05-08 Tom Tromey <tromey@adacore.com>
5480
5481 * dwarf2/read.c (read_lexical_block_scope): Don't process a DIE
5482 already being processed.
5483
8be4b118
TT
54842020-05-08 Tom Tromey <tom@tromey.com>
5485
5486 * printcmd.c (struct display) <next>: Remove.
5487 <display>: New constructor.
5488 <exp_string>: Now a std::string.
5489 <enabled_p>: Now a bool.
5490 (display_number): Move definition earlier.
5491 (displays): Rename from display_chain. Now a std::vector.
5492 (ALL_DISPLAYS, ALL_DISPLAYS_SAFE): Remove.
5493 (display_command): Update.
5494 (do_one_display, disable_display)
5495 (enable_disable_display_command, do_enable_disable_display):
5496 Update.
5497 (free_display): Remove.
5498 (clear_displays): Rewrite.
5499 (delete_display): Update.
5500 (map_display_numbers): Use function_view. Remove "data"
5501 parameter. Update.
5502 (do_delete_display): Remove.
5503 (undisplay_command): Update.
5504 (do_one_display, do_displays, disable_display)
5505 (info_display_command): Update.
5506 (do_enable_disable_display): Remove.
5507 (enable_disable_display_command)
5508 (clear_dangling_display_expressions): Update.
5509
94c93c35
TT
55102020-05-08 Tom Tromey <tom@tromey.com>
5511
5512 * symtab.c (set_symbol_cache_size)
5513 (maintenance_print_symbol_cache, maintenance_flush_symbol_cache)
5514 (maintenance_print_symbol_cache_statistics): Update.
5515 * symmisc.c (print_symbol_bcache_statistics)
5516 (print_objfile_statistics, maintenance_print_objfiles)
5517 (maintenance_info_symtabs, maintenance_check_symtabs)
5518 (maintenance_expand_symtabs, maintenance_info_line_tables):
5519 Update.
5520 * symfile-debug.c (set_debug_symfile): Update.
5521 * source.c (forget_cached_source_info): Update.
5522 * python/python.c (gdbpy_progspaces): Update.
5523 * psymtab.c (maintenance_info_psymtabs): Update.
5524 * probe.c (parse_probes): Update.
5525 * linespec.c (iterate_over_all_matching_symtabs)
5526 (collect_symtabs_from_filename, search_minsyms_for_name): Update.
5527 * guile/scm-progspace.c (gdbscm_progspaces): Update.
5528 * exec.c (exec_target::close): Update.
5529 * ada-tasks.c (ada_tasks_new_objfile_observer): Update.
5530 * breakpoint.c (print_one_breakpoint_location)
5531 (create_longjmp_master_breakpoint)
5532 (create_std_terminate_master_breakpoint): Update.
5533 * progspace.c (program_spaces): Now a std::vector.
5534 (maybe_new_address_space): Update.
5535 (add_program_space): Remove.
5536 (program_space::program_space): Update.
5537 (remove_program_space): Update.
5538 (number_of_program_spaces): Remove.
5539 (print_program_space, update_address_spaces): Update.
5540 * progspace.h (program_spaces): Change type.
5541 (ALL_PSPACES): Remove.
5542 (number_of_program_spaces): Don't declare.
5543 (struct program_space) <next>: Remove.
5544
a1fd1ac9
TT
55452020-05-08 Tom Tromey <tom@tromey.com>
5546
5547 * mi/mi-cmd-file.c (mi_cmd_file_list_shared_libraries): Update.
5548 * solib-svr4.c (svr4_fetch_objfile_link_map): Update.
5549 (enable_break): Update.
5550 * solib-frv.c (frv_fdpic_find_global_pointer): Update.
5551 (frv_fdpic_find_canonical_descriptor): Update.
5552 (frv_fetch_objfile_link_map): Update.
5553 * progspace.c (program_space::free_all_objfiles): Update.
5554 (program_space::solibs): New method.
5555 * progspace.h (struct program_space) <solibs>: New method.
5556 * solist.h (master_so_list): Don't declare.
5557 (ALL_SO_LIBS): Remove.
5558 * solib.h (so_list_head): Remove.
5559 (update_solib_list): Update comment.
5560 * solib.c (master_so_list): Remove.
5561 (solib_used, update_solib_list, solib_add)
5562 (info_sharedlibrary_command, clear_solib)
5563 (reload_shared_libraries_1, remove_user_added_objfile): Update.
5564
38eae084
TT
55652020-05-08 Tom Tromey <tom@tromey.com>
5566
5567 * extension.c (extension_languages): Now a std::array.
5568 (ALL_EXTENSION_LANGUAGES): Remove.
5569 (get_ext_lang_defn, get_ext_lang_of_file)
5570 (eval_ext_lang_from_control_command): Update.
5571 (finish_ext_lang_initialization)
5572 (auto_load_ext_lang_scripts_for_objfile)
5573 (ext_lang_type_printers::ext_lang_type_printers)
5574 (apply_ext_lang_type_printers)
5575 (ext_lang_type_printers::~ext_lang_type_printers)
5576 (apply_ext_lang_val_pretty_printer, apply_ext_lang_frame_filter)
5577 (preserve_ext_lang_values, get_breakpoint_cond_ext_lang)
5578 (breakpoint_ext_lang_cond_says_stop, check_quit_flag)
5579 (get_matching_xmethod_workers, ext_lang_colorize)
5580 (ext_lang_before_prompt): Update.
5581 (ALL_ENABLED_EXTENSION_LANGUAGES): Remove.
5582
596dc4ad
TT
55832020-05-08 Tom Tromey <tom@tromey.com>
5584
5585 * symtab.h (class demangle_result_storage) <set_malloc_ptr>: New
5586 overload.
5587 <swap_string, m_string>: Remove.
5588 * symtab.c (demangle_for_lookup, completion_list_add_symbol):
5589 Update.
5590 * stabsread.c (define_symbol, read_type): Update.
5591 * linespec.c (find_linespec_symbols): Update.
5592 * gnu-v3-abi.c (gnuv3_get_typeid): Update.
5593 * dwarf2/read.c (dwarf2_canonicalize_name): Update.
5594 * dbxread.c (read_dbx_symtab): Update.
5595 * cp-support.h (cp_canonicalize_string_full)
5596 (cp_canonicalize_string, cp_canonicalize_string_no_typedefs):
5597 Return unique_xmalloc_ptr.
5598 * cp-support.c (inspect_type): Update.
5599 (cp_canonicalize_string_full): Return unique_xmalloc_ptr.
5600 (cp_canonicalize_string_no_typedefs, cp_canonicalize_string):
5601 Likewise.
5602 * c-typeprint.c (print_name_maybe_canonical): Update.
5603 * break-catch-throw.c (check_status_exception_catchpoint):
5604 Update.
5605
bf4cb9be
TV
56062020-05-08 Tom de Vries <tdevries@suse.de>
5607
5608 * infrun.c (follow_fork): Copy current_line and current_symtab to
5609 child thread.
5610
a1b68f28
SM
56112020-05-07 Simon Marchi <simon.marchi@efficios.com>
5612
5613 * async-event.c (struct async_signal_handler, struct
5614 async_event_handler): Reformat, remove typedef.
5615
98d48915
SM
56162020-05-07 Simon Marchi <simon.marchi@efficios.com>
5617
5618 * gdbtypes.h (TYPE_DYN_PROP_LIST): Remove. Update all users
5619 access thistype->main_type->dyn_prop_list directly.
5620
7aa91313
SM
56212020-05-07 Simon Marchi <simon.marchi@efficios.com>
5622
5623 * gdbtypes.h (struct type) <remove_dyn_prop>: New method.
5624 (remove_dyn_prop): Remove. Update all users to use
5625 type::remove_dyn_prop.
5626 * gdbtypes.c (remove_dyn_prop): Rename to...
5627 (type::remove_dyn_prop): ... this.
5628
5c54719c
SM
56292020-05-07 Simon Marchi via Gdb-patches <gdb-patches@sourceware.org>
5630
5631 * gdbtypes.h (struct type) <add_dyn_prop>: New method.
5632 (add_dyn_prop): Remove. Update all users to use
5633 type::add_dyn_prop.
5634 * gdbtypes.c (add_dyn_prop): Rename to...
5635 (type::add_dyn_prop): ... this.
5636
24e99c6c
SM
56372020-05-07 Simon Marchi <simon.marchi@efficios.com>
5638
5639 * gdbtypes.h (struct type) <get_dyn_prop>: New method.
5640 (get_dyn_prop): Remove. Update all users to use
5641 type::dyn_prop.
5642 * gdbtypes.c (get_dyn_prop): Rename to...
5643 (type::dyn_prop): ... this.
5644
0d4bf016
SM
56452020-05-06 Simon Marchi <simon.marchi@efficios.com>
5646
5647 * gdbtypes.h (struct main_type) <flag_static>: Remove.
5648
ac4a4f1c
SM
56492020-05-06 Simon Marchi <simon.marchi@efficios.com>
5650
5651 * amd64-tdep.c (amd64_analyze_prologue): Check for `endbr64`
5652 instruction, skip it if it's there.
5653
a3bbacc1
SM
56542020-05-05 Simon Marchi <simon.marchi@efficios.com>
5655
5656 * gdbtypes.h (struct main_type) <flag_incomplete>: Remove.
5657
c3236f84
SM
56582020-05-04 Simon Marchi <simon.marchi@efficios.com>
5659
5660 * gdbtypes.h (TYPE_INCOMPLETE): Remove.
5661 * gdbtypes.c (recursive_dump_type): Remove use of
5662 TYPE_INCOMPLETE.
5663
3b6acaee
TT
56642020-05-03 Tom Tromey <tom@tromey.com>
5665
5666 * breakpoint.c (catch_command, tcatch_command): Remove.
5667 (_initialize_breakpoint): Use add_basic_prefix_cmd,
5668 add_show_prefix_cmd.
5669 (set_breakpoint_cmd, show_breakpoint_cmd): Remove
5670 * utils.c (set_internal_problem_cmd, show_internal_problem_cmd):
5671 Remove.
5672 (add_internal_problem_command): Use add_basic_prefix_cmd,
5673 add_show_prefix_cmd.
5674 * mips-tdep.c (set_mipsfpu_command): Remove.
5675 (_initialize_mips_tdep): Use add_basic_prefix_cmd.
5676 * dwarf2/index-cache.c (set_index_cache_command): Remove.
5677 (_initialize_index_cache): Use add_basic_prefix_cmd.
5678 * memattr.c (dummy_cmd): Remove.
5679 (_initialize_mem): Use add_basic_prefix_cmd, add_show_prefix_cmd.
5680 * tui/tui-win.c (set_tui_cmd, show_tui_cmd): Remove.
5681 (_initialize_tui_win): Use add_basic_prefix_cmd,
5682 add_show_prefix_cmd.
5683 * cli/cli-logging.c (set_logging_command): Remove.
5684 (_initialize_cli_logging): Use add_basic_prefix_cmd,
5685 add_show_prefix_cmd.
5686 (show_logging_command): Remove.
5687 * target.c (target_command): Remove.
5688 (add_target): Use add_basic_prefix_cmd.
5689
a51119cd
HD
56902020-05-02 Hannes Domani <ssbssa@yahoo.de>
5691
5692 * gdbtypes.h (enum dynamic_prop_node_kind): Fix typo.
5693
652fc23a 56942020-05-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6a6ea76a 5695
652fc23a
PW
5696 * gdb-gdb.gdb-in: Remove breakpoint on disappeared function
5697 info_command.
5698
117539e6
KR
56992020-04-30 Kamil Rytarowski <n54@gmx.com>
5700
5701 * nbsd-nat.c (nbsd_enable_proc_events)
5702 (nbsd_nat_target::post_startup_inferior): Add.
5703 (nbsd_nat_target::post_attach): Call `nbsd_enable_proc_events'.
5704 (nbsd_nat_target::update_thread_list): Rewrite.
5705 (nbsd_nat_target::wait): Handle "PTRACE_LWP_EXIT" and
5706 "PTRACE_LWP_CREATE".
5707 * nbsd-nat.h (nbsd_nat_target::post_startup_inferior): Add.
5708
102e38eb 57092020-04-30 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6a6ea76a 5710
102e38eb
PW
5711 * stack.c (_initialize_stack): Remove duplicated creation
5712 of "frame" command and "f" alias.
5713
ee9d1e5f
HD
57142020-04-30 Hannes Domani <ssbssa@yahoo.de>
5715
5716 PR gdb/18706
5717 * gdbtypes.c (check_typedef): Calculate size of array of
5718 stubbed type.
5719
627c7fb8
HD
57202020-04-30 Hannes Domani <ssbssa@yahoo.de>
5721
5722 PR gdb/15559
5723 * i386-tdep.c (i386_push_dummy_call): Call
5724 i386_thiscall_push_dummy_call.
5725 (i386_thiscall_push_dummy_call): New function.
5726 * i386-tdep.h (i386_thiscall_push_dummy_call): Declare.
5727 * i386-windows-tdep.c (i386_windows_push_dummy_call): New function.
5728 (i386_windows_init_abi): Call set_gdbarch_push_dummy_call.
5729
ffc2844e
SM
57302020-04-29 Simon Marchi <simon.marchi@efficios.com>
5731
5732 * gdbarch.sh (do_read): Add shellcheck disable directive for
5733 warning SC2162.
5734
1207375d
SM
57352020-04-29 Simon Marchi <simon.marchi@efficios.com>
5736
5737 * gdbarch.sh: Use ${foo:-} where shellcheck would report a
5738 "referenced but not assigned" warning.
5739
9fdb2916
SM
57402020-04-29 Simon Marchi <simon.marchi@efficios.com>
5741
5742 * gdbarch.sh: Remove code that sets fallbackdefault.
5743
759cea5e
SM
57442020-04-29 Simon Marchi <simon.marchi@efficios.com>
5745
5746 * gdbarch.sh: Use shell operators && and || instead of
5747 -a and -o.
5748
cb02ab24
SM
57492020-04-29 Simon Marchi <simon.marchi@efficios.com>
5750
5751 * gdbarch.sh: Use $(...) instead of `...`.
5752
a6fc5ffc
SM
57532020-04-29 Simon Marchi <simon.marchi@efficios.com>
5754
5755 * gdbarch.sh: Use double quotes around variables.
5756
8d113d13
SM
57572020-04-29 Simon Marchi <simon.marchi@efficios.com>
5758
5759 * gdbarch.sh: Use %s with printf, instead of variables in the
5760 format string.
5761
ed6acedd
TT
57622020-04-29 Tom Tromey <tromey@adacore.com>
5763
5764 PR ada/25875:
5765 * dwarf2/read.c (update_enumeration_type_from_children): Compute
5766 type fields here.
5767 (read_enumeration_type): Call
5768 update_enumeration_type_from_children later. Update comments.
5769 (process_enumeration_scope): Don't create type fields.
5770
b68b1b58
KR
57712020-04-29 Kamil Rytarowski <n54@gmx.com>
5772
5773 * nbsd-tdep.c: Include "xml-syscall.h".
5774 (nbsd_init_abi): Call `set_xml_syscall_file_name'.
5775
f94b2e03
KR
57762020-04-29 Kamil Rytarowski <n54@gmx.com>
5777
5778 * nbsd-nat.c: Include "sys/wait.h".
5779 (nbsd_resume, nbsd_nat_target::resume, nbsd_wait)
5780 (nbsd_nat_target::wait, nbsd_nat_target::insert_exec_catchpoint)
5781 (nbsd_nat_target::remove_exec_catchpoint)
5782 (nbsd_nat_target::set_syscall_catchpoint): Add.
5783 * nbsd-nat.h (nbsd_nat_target::resume, nbsd_nat_target::wait)
5784 (nbsd_nat_target::insert_exec_catchpoint)
5785 (nbsd_nat_target::remove_exec_catchpoint)
5786 (nbsd_nat_target::set_syscall_catchpoint): Add.
5787 * nbsd-tdep.c (nbsd_get_syscall_number): Add.
5788 (nbsd_init_abi): Call `set_gdbarch_get_syscall_number' and pass
5789 `nbsd_get_syscall_number'.
5790
fc49bc72
TT
57912020-04-29 Tom Tromey <tom@tromey.com>
5792
5793 * stack.c (print_block_frame_labels): Remove.
5794
d642b692
HD
57952020-04-29 Hannes Domani <ssbssa@yahoo.de>
5796
5797 PR gdb/17320
5798 * ada-valprint.c (val_print_packed_array_elements): Move array
5799 end bracket to new line.
5800 (ada_val_print_string): Remove extra spaces before first array
5801 element.
5802 * c-valprint.c (c_value_print_array): Likewise.
5803 * m2-valprint.c (m2_print_array_contents): Likewise.
5804 (m2_value_print_inner): Likewise.
5805 * p-valprint.c (pascal_value_print_inner): Likewise.
5806 * valprint.c (generic_val_print_array): Likewise.
5807 (value_print_array_elements): Move first array element and array
5808 end bracket to new line.
5809
ea90f227
TV
58102020-04-29 Tom de Vries <tdevries@suse.de>
5811
5812 PR symtab/25889
5813 * linespec.c (find_method): Fix ix calculation.
5814
4498ef4f
KR
58152020-04-28 Kamil Rytarowski <n54@gmx.com>
5816
5817 * syscalls/update-netbsd.sh: New file.
5818 * syscalls/netbsd.xml: Regenerate.
5819 * data-directory/Makefile.in: Register `netbsd.xml' in
5820 `SYSCALLS_FILES'.
5821
a55e30b5
SM
58222020-04-28 Simon Marchi <simon.marchi@efficios.com>
5823
5824 * syscalls/update-freebsd.sh: Add double quotes.
5825
2b2fbab8
TT
58262020-04-28 Tom Tromey <tom@tromey.com>
5827
5828 * NEWS: Update.
5829 * python/py-cmd.c (gdbpy_initialize_commands): Add COMMAND_TUI.
5830 (cmdpy_init): Allow class_tui.
5831
a65189c9
TV
58322020-04-28 Mark Williams <mark@myosotissp.com>
5833
5834 PR gdb/24480
5835 * dwarf2read.c: Add missing assingments to list_in_scope when
5836 start_symtab was already called.
5837
1b95cdb7
SM
58382020-04-28 Simon Marchi <simon.marchi@efficios.com>
5839
5840 PR gdb/25881
5841 * dwarf2/read.c (offset_map_type): Use
5842 gdb:hash_enum<sect_offset> as hash function.
5843
15cd93d0
TV
58442020-04-28 Tom de Vries <tdevries@suse.de>
5845
5846 * dwarf2/read.c (process_structure_scope): Add symbol for struct decl
5847 with DW_AT_signature.
5848
1eb39914
SM
58492020-04-27 Simon Marchi <simon.marchi@efficios.com>
5850
5851 * configure.ac: Remove check for fs_base/gs_base in
5852 user_regs_struct.
5853 * configure: Re-generate.
5854 * config.in: Re-generate.
5855 * amd64-nat.c (amd64_native_gregset_reg_offset): Adjust.
5856 * amd64-linux-nat.c (amd64_linux_nat_target::fetch_registers,
5857 amd64_linux_nat_target::store_registers, ps_get_thread_area, ): Adjust.
5858
991a3e2e
LM
58592020-04-27 Luis Machado <luis.machado@linaro.org>
5860
5861 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first): Handle
5862 problematic inline frame unwinding situation.
5863 * frame.c (frame_id_computed_p): New function.
5864 * frame.h (frame_id_computed_p): New prototype.
5865
361ba0e8
TT
58662020-04-26 Tom Tromey <tom@tromey.com>
5867
5868 * command.h (enum command_class) <class_pseudo>: Remove.
5869
bc3609fd
PW
58702020-04-26 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5871
5872 * cli/cli-decode.c (lookup_cmd_composition): Fix comments
5873 and whitespace.
5874
b9771db7
KR
58752020-04-25 Kamil Rytarowski <n54@gmx.com>
5876
ec16513e
SM
5877 * inf-ptrace.c (inf_ptrace_target::wait): Remove
5878 `PT_GET_PROCESS_STATE' block.
b9771db7 5879
7151c1af
TT
58802020-04-24 Tom Tromey <tom@tromey.com>
5881
5882 * symtab.h (symbol_get_demangled_name): Don't declare.
5883 * symtab.c (symbol_get_demangled_name): Remove.
5884 (general_symbol_info::natural_name)
5885 (general_symbol_info::demangled_name): Update.
5886
906bb4c5
TT
58872020-04-24 Tom Tromey <tom@tromey.com>
5888
5889 PR rust/25025:
5890 * dwarf2/read.c (dwarf2_physname): Do not demangle for Rust.
5891
bcfe6157
TT
58922020-04-24 Tom Tromey <tom@tromey.com>
5893
5894 PR symtab/12707:
5895 * dwarf2/read.c (add_partial_symbol): Use the linkage name if it
5896 exists.
5897 (new_symbol): Likewise.
5898 * compile/compile-object-load.c (get_out_value_type): Use
5899 symbol_matches_search_name.
5900
f049a313
TT
59012020-04-24 Tom Tromey <tom@tromey.com>
5902
5903 * dwarf2/read.c (add_partial_symbol): Do not call
5904 compute_and_set_names.
5905
76e288d1
TT
59062020-04-24 Tom Tromey <tom@tromey.com>
5907
5908 * dwarf2/read.c (add_partial_symbol): Use new add_psymbol_to_list
5909 overload.
5910
2467f4f6
TT
59112020-04-24 Tom Tromey <tom@tromey.com>
5912
5913 * psymtab.c (add_psymbol_to_bcache): Simplify calling convention.
5914 (add_psymbol_to_list): New overload. Make old overload call new
5915 one.
5916 * psympriv.h (add_psymbol_to_list): New overload.
5917
e61108c9
TT
59182020-04-24 Tom Tromey <tom@tromey.com>
5919
5920 * dwarf2/read.c (partial_die_info::read) <case
5921 DW_AT_linkage_name>: Use value_as_string.
5922 (dwarf2_string_attr): Use value_as_string.
5923 * dwarf2/attribute.h (struct attribute) <value_as_string>: Declare
5924 method.
5925 * dwarf2/attribute.c (attribute::value_as_string): New method.
5926
8c87a452
TT
59272020-04-24 Tom Tromey <tom@tromey.com>
5928
5929 * symtab.c (general_symbol_info::natural_name)
5930 (general_symbol_info::demangled_name): Check for language_rust.
5931
787de330
TT
59322020-04-24 Tom Tromey <tom@tromey.com>
5933
5934 * dwarf2/read.c (dw2_linkage_name): Move Rust "{" hack here...
5935 (dwarf2_physname): ... from here.
5936 (partial_die_info::read): Add Rust "{" hack.
5937
ff985671
TT
59382020-04-24 Tom Tromey <tom@tromey.com>
5939
5940 * symtab.h (struct general_symbol_info) <set_demangled_name>: New
5941 method.
5942 (symbol_set_demangled_name): Don't declare.
5943 * symtab.c (general_symbol_info::set_demangled_name): Rename from
5944 symbol_set_demangled_name.
5945 (general_symbol_info::set_language)
5946 (general_symbol_info::compute_and_set_names): Update.
5947 * minsyms.c (minimal_symbol_reader::install): Update.
5948 * dwarf2/read.c (new_symbol): Update.
5949
1acda803
TT
59502020-04-24 Tom Tromey <tromey@adacore.com>
5951
5952 PR python/23662:
5953 * python/py-type.c (convert_field): Handle
5954 FIELD_LOC_KIND_DWARF_BLOCK.
5955 (typy_get_sizeof): Handle TYPE_HAS_DYNAMIC_LENGTH.
5956 (typy_get_dynamic): Nw function.
5957 (type_object_getset): Add "dynamic".
5958 * NEWS: Add entry.
5959
d656f129
TT
59602020-04-24 Tom Tromey <tromey@adacore.com>
5961
5962 * ada-typeprint.c (print_choices, print_variant_part)
5963 (print_record_field_types_dynamic): New functions.
5964 (print_record_field_types): Use print_record_field_types_dynamic.
5965
7d79de9a
TT
59662020-04-24 Tom Tromey <tromey@adacore.com>
5967
5968 * dwarf2/read.c (handle_data_member_location): New overload.
5969 (dwarf2_add_field): Use it.
5970 (decode_locdesc): Add "computed" parameter. Update comment.
5971 * gdbtypes.c (is_dynamic_type_internal): Also look for
5972 FIELD_LOC_KIND_DWARF_BLOCK.
5973 (resolve_dynamic_struct): Handle FIELD_LOC_KIND_DWARF_BLOCK.
5974 * gdbtypes.c (is_dynamic_type_internal): Add special case for C++
5975 virtual base classes.
5976 * gnu-v3-abi.c (gnuv3_baseclass_offset): Handle
5977 FIELD_LOC_KIND_DWARF_BLOCK.
5978
f8e89861
TT
59792020-04-24 Tom Tromey <tromey@adacore.com>
5980
5981 * dwarf2/read.c (read_structure_type): Handle dynamic length.
5982 * gdbtypes.c (is_dynamic_type_internal): Check
5983 TYPE_HAS_DYNAMIC_LENGTH.
5984 (resolve_dynamic_type_internal): Use TYPE_DYNAMIC_LENGTH.
5985 * gdbtypes.h (TYPE_HAS_DYNAMIC_LENGTH, TYPE_DYNAMIC_LENGTH):
5986 New macros.
5987 (enum dynamic_prop_node_kind) <DYN_PROP_BYTE_SIZE>: New
5988 constant.
5989
9c6a1327
TT
59902020-04-24 Tom Tromey <tromey@adacore.com>
5991
5992 * dwarf2/read.c (struct variant_field): Rewrite.
5993 (struct variant_part_builder): New.
5994 (struct nextfield): Remove "variant" field. Add "offset".
5995 (struct field_info): Add "current_variant_part" and
5996 "variant_parts".
5997 (alloc_discriminant_info): Remove.
5998 (alloc_rust_variant): New function.
5999 (quirk_rust_enum): Update.
6000 (dwarf2_add_field): Set "offset" member. Don't handle
6001 DW_TAG_variant_part.
6002 (offset_map_type): New typedef.
6003 (convert_variant_range, create_one_variant)
6004 (create_one_variant_part, create_variant_parts)
6005 (add_variant_property): New functions.
6006 (dwarf2_attach_fields_to_type): Call add_variant_property.
6007 (read_structure_type): Don't handle DW_TAG_variant_part.
6008 (handle_variant_part, handle_variant): New functions.
6009 (handle_struct_member_die): Use them.
6010 (process_structure_scope): Don't handle variant parts.
6011 * gdbtypes.h (TYPE_FLAG_DISCRIMINATED_UNION): Remove.
6012 (struct discriminant_info): Remove.
6013 (enum dynamic_prop_node_kind) <DYN_PROP_DISCRIMINATED>: Remove.
6014 (struct main_type) <flag_discriminated_union>: Remove.
6015 * rust-lang.c (rust_enum_p, rust_empty_enum_p): Rewrite.
6016 (rust_enum_variant): Return int. Remove "contents". Rewrite.
6017 (rust_print_enum, rust_print_struct_def, rust_evaluate_subexp):
6018 Update.
6019 * valops.c (value_union_variant): Remove.
6020 * value.h (value_union_variant): Don't declare.
6021
b249d2c2
TT
60222020-04-24 Tom Tromey <tromey@adacore.com>
6023
6024 * ada-lang.c (ada_discrete_type_high_bound, ada_discrete_type_low)
6025 (ada_value_primitive_packed_val): Update.
6026 * ada-valprint.c (ada_value_print_1): Update.
6027 * dwarf2/loc.c (evaluate_for_locexpr_baton): New struct.
6028 (dwarf2_locexpr_baton_eval): Take a property_addr_info rather than
6029 just an address. Use evaluate_for_locexpr_baton.
6030 (dwarf2_evaluate_property): Update.
6031 * dwarf2/loc.h (struct property_addr_info) <valaddr>: Now an
6032 array_view.
6033 * findvar.c (default_read_var_value): Update.
6034 * gdbtypes.c (compute_variant_fields_inner)
6035 (resolve_dynamic_type_internal): Update.
6036 (resolve_dynamic_type): Change type of valaddr parameter.
6037 * gdbtypes.h (resolve_dynamic_type): Update.
6038 * valarith.c (value_subscripted_rvalue): Update.
6039 * value.c (value_from_contents_and_address): Update.
6040
61122aa9
TT
60412020-04-24 Tom Tromey <tromey@adacore.com>
6042
6043 * dwarf2/loc.c (dwarf2_locexpr_baton_eval): Add
6044 "push_initial_value" parameter.
6045 (dwarf2_evaluate_property): Likewise.
6046 * dwarf2/loc.h (dwarf2_evaluate_property): Update.
6047
ef83a141
TT
60482020-04-24 Tom Tromey <tromey@adacore.com>
6049
6050 * gdbtypes.c (is_dynamic_type_internal): Check for variant parts.
6051 (variant::matches, compute_variant_fields_recurse)
6052 (compute_variant_fields_inner, compute_variant_fields): New
6053 functions.
6054 (resolve_dynamic_struct): Check for DYN_PROP_VARIANT_PARTS.
6055 Use resolved_type after type is made.
6056 (operator==): Add new cases.
6057 * gdbtypes.h (TYPE_HAS_VARIANT_PARTS): New macro.
6058 (struct discriminant_range, struct variant, struct variant_part):
6059 New.
6060 (union dynamic_prop_data) <variant_parts, original_type>: New
6061 members.
6062 (enum dynamic_prop_node_kind) <DYN_PROP_VARIANT_PARTS>: New constant.
6063 (enum dynamic_prop_kind) <PROP_TYPE, PROP_VARIANT_PARTS>: New
6064 constants.
6065 * value.c (unpack_bits_as_long): Now public.
6066 * value.h (unpack_bits_as_long): Declare.
6067
675127ec
TT
60682020-04-24 Tom Tromey <tromey@adacore.com>
6069
6070 * rs6000-tdep.c (struct ppc_variant): Rename from "variant".
6071 (variants, find_variant_by_arch, rs6000_gdbarch_init): Update.
6072
9852ceef
HD
60732020-04-24 Hannes Domani <ssbssa@yahoo.de>
6074
6075 * windows-tdep.c (exception_values): Add WOW64 exception numbers.
6076
7632c6ce
KR
60772020-04-24 Kamil Rytarowski <n54@gmx.com>
6078
6079 * inf-ptrace.h (follow_fork, insert_fork_catchpoint)
6080 (remove_fork_catchpoint, post_startup_inferior)
6081 (post_attach): Move...
6082 * obsd-nat.h (follow_fork, insert_fork_catchpoint)
6083 (remove_fork_catchpoint, post_startup_inferior)
6084 (post_attach): ...here.
6085 * inf-ptrace.c (follow_fork, insert_fork_catchpoint)
6086 (remove_fork_catchpoint, post_startup_inferior)
6087 (post_attach): Move...
6088 * obsd-nat.c (follow_fork, insert_fork_catchpoint)
6089 (remove_fork_catchpoint, post_startup_inferior)
6090 (post_attach): ...here.
6091
7be2bb4f
TT
60922020-04-24 Tom Tromey <tromey@adacore.com>
6093
6094 * nat/windows-nat.h (struct windows_thread_info)
6095 <pc_adjusted>: New member.
6096 * windows-nat.c (windows_fetch_one_register): Check
6097 pc_adjusted.
6098 (windows_nat_target::get_windows_debug_event)
6099 (windows_nat_target::wait): Set pc_adjusted.
6100
f80cb3b4
TV
61012020-04-24 Tom de Vries <tdevries@suse.de>
6102
6103 * contrib/cc-with-tweaks.sh: Remove <exec>.gdb-index file handling.
6104 Run gdb-add-index inside temp dir.
6105
29514b87
TT
61062020-04-23 Tom Tromey <tromey@adacore.com>
6107
6108 * windows-tdep.c (is_linked_with_cygwin_dll): Always update "iter"
6109 in loop.
6110
5939967b
LM
61112020-04-23 Luis Machado <luis.machado@linaro.org>
6112
6113 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first): Use
6114 get_frame_register instead of gdbarch_unwind_pc.
6115
70bc38f5
TV
61162020-04-23 Tom de Vries <tdevries@suse.de>
6117
6118 * symtab.c (lookup_global_symbol): Prefer def over decl.
6119
de82891c
TV
61202020-04-23 Tom de Vries <tdevries@suse.de>
6121
6122 PR symtab/25807
6123 * block.c (best_symbol, better_symbol): Promote to external.
6124 * block.h (best_symbol, better_symbol): Declare.
6125 * symtab.c (lookup_symbol_in_objfile_symtabs): Prefer def over
6126 decl.
6127
ecc6c606
TT
61282020-04-23 Tom Tromey <tromey@adacore.com>
6129
6130 PR ada/25837:
6131 * dwarf2/read.c (dw2_expand_symtabs_matching_symbol): Store a
6132 "const char *", not a "const std::string &".
6133 <name_and_matcher::operator==>: Update.
6134 * unittests/lookup_name_info-selftests.c: Change type of
6135 "result".
6136
740480b8
TT
61372020-04-23 Tom Tromey <tom@tromey.com>
6138
6139 * inferior.h (iterate_over_inferiors): Don't declare.
6140 * inferior.c (iterate_over_inferiors): Remove.
6141 * darwin-nat.c (find_inferior_task_it, find_inferior_pid_it):
6142 Remove.
6143 (darwin_find_inferior_by_task, darwin_find_inferior_by_pid): Don't
6144 use iterate_over_inferiors.
6145 (darwin_resume_inferior_it)
6146 (struct resume_inferior_threads_param)
6147 (darwin_resume_inferior_threads_it): Remove.
6148 (darwin_nat_target::resume): Don't use iterate_over_inferiors.
6149
ae3ab1f0
TV
61502020-04-23 Tom de Vries <tdevries@suse.de>
6151
6152 * blockframe.c (find_pc_partial_function): Use
6153 find_pc_sect_compunit_symtab rather than
6154 objfile->sf->qf->find_pc_sect_compunit_symtab.
6155
317d2668
TV
61562020-04-22 Tom de Vries <tdevries@suse.de>
6157
6158 PR symtab/25764
6159 * dwarf2/read.c (scan_partial_symbols): Allow external variable decls
6160 in psymtabs.
6161
eea9e357
TV
61622020-04-22 Tom de Vries <tdevries@suse.de>
6163
6164 PR symtab/25801
6165 * psymtab.c (psym_map_symtabs_matching_filename): Don't skip shared
6166 symtabs.
6167
3d5afab3
TV
61682020-04-22 Tom de Vries <tdevries@suse.de>
6169
6170 PR symtab/25700
6171 * dwarf2/read.c (dwarf2_build_psymtabs_hard): Don't create psymtab for
6172 CU if already created.
6173
d43b7a2d
TBA
61742020-04-21 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
6175
6176 * infrun.c (displaced_step_fixup): Switch to the event_thread
6177 before calling displaced_step_restore, not after.
6178
d89edf9b
MM
61792020-04-21 Markus Metzger <markus.t.metzger@intel.com>
6180
6181 * record-btrace.c (record_btrace_enable_warn): Ignore thread if
6182 its inferior is not recorded by us.
6183 (record_btrace_target_open): Replace call to
6184 all_non_exited_threads () with call to current_inferior
6185 ()->non_exited_threads ().
6186 (record_btrace_target::stop_recording): Likewise.
6187 (record_btrace_target::close): Likewise.
6188 (record_btrace_target::wait): Likewise.
6189 (record_btrace_target::record_stop_replaying): Likewise.
6190
5897fd49
MM
61912020-04-21 Markus Metzger <markus.t.metzger@intel.com>
6192
6193 * btrace.c (btrace_enable): Throw an error on double enables and
6194 when enabling recording fails.
6195 (btrace_disable): Throw an error if the thread is not recorded.
6196
1a476b6d
MM
61972020-04-21 Markus Metzger <markus.t.metzger@intel.com>
6198
6199 * record-btrace.c (record_btrace_target::fetch_registers): Forward
6200 request if we do not have a thread_info.
6201
4778a5f8
TV
62022020-04-21 Tom de Vries <tdevries@suse.de>
6203
6204 PR gdb/25471
6205 * thread.c
6206 (scoped_restore_current_thread::scoped_restore_current_thread): Catch
6207 exception in get_frame_id.
6208
0fa7617d
TT
62092020-04-20 Tom Tromey <tromey@adacore.com>
6210
6211 * python/python.c (struct gdbpy_event): Mark move constructor as
6212 noexcept.
6213 * python/py-tui.c (class gdbpy_tui_window_maker): Mark move
6214 constructor as noexcept.
6215 * completer.h (struct completion_result): Mark move constructor as
6216 noexcept.
6217 * completer.c (completion_result::completion_result): Use
6218 initialization style. Don't call reset_match_list.
6219
ad23bda0
MS
62202020-04-20 Mihails Strasuns <mihails.strasuns@intel.com>
6221
6222 * MAINTAINERS (Write After Approval): Add myself.
6223
45e1f031
TT
62242020-04-18 Tom Tromey <tom@tromey.com>
6225
6226 * windows-tdep.c (init_w32_command_list)
6227 (w32_prefix_command_valid): Restore.
6228 (_initialize_windows_tdep): Call init_w32_command_list.
6229
08feed99
TT
62302020-04-18 Tom Tromey <tom@tromey.com>
6231
6232 * xcoffread.c (enter_line_range, scan_xcoff_symtab): Update.
6233 * value.c (value_fn_field): Update.
6234 * valops.c (find_function_in_inferior)
6235 (value_allocate_space_in_inferior): Update.
6236 * tui/tui-winsource.c (tui_update_source_windows_with_line):
6237 Update.
6238 * tui/tui-source.c (tui_source_window::set_contents): Update.
6239 * symtab.c (lookup_global_or_static_symbol)
6240 (find_function_start_sal_1, skip_prologue_sal)
6241 (print_msymbol_info, find_gnu_ifunc, symbol_arch): Update.
6242 * symmisc.c (dump_msymbols, dump_symtab_1)
6243 (maintenance_print_one_line_table): Update.
6244 * symfile.c (init_entry_point_info, section_is_mapped)
6245 (list_overlays_command, simple_read_overlay_table)
6246 (simple_overlay_update_1): Update.
6247 * stap-probe.c (handle_stap_probe): Update.
6248 * stabsread.c (dbx_init_float_type, define_symbol)
6249 (read_one_struct_field, read_enum_type, read_range_type): Update.
6250 * source.c (info_line_command): Update.
6251 * python/python.c (gdbpy_source_objfile_script)
6252 (gdbpy_execute_objfile_script): Update.
6253 * python/py-type.c (save_objfile_types): Update.
6254 * python/py-objfile.c (py_free_objfile): Update.
6255 * python/py-inferior.c (python_new_objfile): Update.
6256 * psymtab.c (psym_find_pc_sect_compunit_symtab, dump_psymtab)
6257 (dump_psymtab_addrmap_1, maintenance_info_psymtabs)
6258 (maintenance_check_psymtabs): Update.
6259 * printcmd.c (info_address_command): Update.
6260 * objfiles.h (struct objfile) <arch>: New method, from
6261 get_objfile_arch.
6262 (get_objfile_arch): Don't declare.
6263 * objfiles.c (get_objfile_arch): Remove.
6264 (filter_overlapping_sections): Update.
6265 * minsyms.c (msymbol_is_function): Update.
6266 * mi/mi-symbol-cmds.c (mi_cmd_symbol_list_lines)
6267 (output_nondebug_symbol): Update.
6268 * mdebugread.c (parse_symbol, basic_type, parse_partial_symbols)
6269 (mdebug_expand_psymtab): Update.
6270 * machoread.c (macho_add_oso_symfile): Update.
6271 * linux-tdep.c (linux_infcall_mmap, linux_infcall_munmap):
6272 Update.
6273 * linux-fork.c (checkpoint_command): Update.
6274 * linespec.c (convert_linespec_to_sals): Update.
6275 * jit.c (finalize_symtab): Update.
6276 * infrun.c (insert_exception_resume_from_probe): Update.
6277 * ia64-tdep.c (ia64_find_unwind_table): Update.
6278 * hppa-tdep.c (internalize_unwinds): Update.
6279 * gdbtypes.c (get_type_arch, init_float_type, objfile_type):
6280 Update.
6281 * gcore.c (call_target_sbrk): Update.
6282 * elfread.c (record_minimal_symbol, elf_symtab_read)
6283 (elf_rel_plt_read, elf_gnu_ifunc_record_cache)
6284 (elf_gnu_ifunc_resolve_by_got): Update.
6285 * dwarf2/read.c (create_addrmap_from_index)
6286 (create_addrmap_from_aranges, dw2_find_pc_sect_compunit_symtab)
6287 (read_debug_names_from_section)
6288 (process_psymtab_comp_unit_reader, add_partial_symbol)
6289 (add_partial_subprogram, process_full_comp_unit)
6290 (read_file_scope, read_func_scope, read_lexical_block_scope)
6291 (read_call_site_scope, dwarf2_ranges_read)
6292 (dwarf2_record_block_ranges, dwarf2_add_field)
6293 (mark_common_block_symbol_computed, read_tag_pointer_type)
6294 (read_tag_string_type, dwarf2_init_float_type)
6295 (dwarf2_init_complex_target_type, read_base_type)
6296 (partial_die_info::read, partial_die_info::read)
6297 (read_attribute_value, dwarf_decode_lines_1, new_symbol)
6298 (dwarf2_fetch_die_loc_sect_off): Update.
6299 * dwarf2/loc.c (dwarf2_find_location_expression)
6300 (class dwarf_evaluate_loc_desc, rw_pieced_value)
6301 (dwarf2_evaluate_loc_desc_full, dwarf2_locexpr_baton_eval)
6302 (dwarf2_loc_desc_get_symbol_read_needs)
6303 (locexpr_describe_location_piece, locexpr_describe_location_1)
6304 (loclist_describe_location): Update.
6305 * dwarf2/index-write.c (write_debug_names): Update.
6306 * dwarf2/frame.c (dwarf2_build_frame_info): Update.
6307 * dtrace-probe.c (dtrace_process_dof): Update.
6308 * dbxread.c (read_dbx_symtab, dbx_end_psymtab)
6309 (process_one_symbol): Update.
6310 * ctfread.c (ctf_init_float_type, read_base_type): Update.
6311 * coffread.c (coff_symtab_read, enter_linenos, decode_base_type)
6312 (coff_read_enum_type): Update.
6313 * cli/cli-cmds.c (edit_command, list_command): Update.
6314 * buildsym.c (buildsym_compunit::finish_block_internal): Update.
6315 * breakpoint.c (create_overlay_event_breakpoint)
6316 (create_longjmp_master_breakpoint)
6317 (create_std_terminate_master_breakpoint)
6318 (create_exception_master_breakpoint, get_sal_arch): Update.
6319 * block.c (block_gdbarch): Update.
6320 * annotate.c (annotate_source_line): Update.
6321
0743fc83
TT
63222020-04-17 Tom Tromey <tromey@adacore.com>
6323
6324 * auto-load.c (show_auto_load_cmd): Remove.
6325 (auto_load_show_cmdlist_get): Use add_show_prefix_cmd.
6326 * arc-tdep.c (_initialize_arc_tdep): Use add_show_prefix_cmd.
6327 (maintenance_print_arc_command): Remove.
6328 * tui/tui-win.c (tui_command): Remove.
6329 (tui_get_cmd_list): Use add_basic_prefix_cmd.
6330 * tui/tui-layout.c (tui_layout_command): Remove.
6331 (_initialize_tui_layout): Use add_basic_prefix_cmd.
6332 * python/python.c (user_set_python, user_show_python): Remove.
6333 (_initialize_python): Use add_basic_prefix_cmd,
6334 add_show_prefix_cmd.
6335 * guile/guile.c (set_guile_command, show_guile_command): Remove.
6336 (install_gdb_commands): Use add_basic_prefix_cmd,
6337 add_show_prefix_cmd.
6338 (info_guile_command): Remove.
6339 * dwarf2/read.c (set_dwarf_cmd, show_dwarf_cmd): Remove.
6340 (_initialize_dwarf2_read): Use add_basic_prefix_cmd,
6341 add_show_prefix_cmd.
6342 * cli/cli-style.h (class cli_style_option) <add_setshow_commands>:
6343 Remove do_set and do_show parameters.
6344 * cli/cli-style.c (set_style, show_style): Remove.
6345 (_initialize_cli_style): Use add_basic_prefix_cmd,
6346 add_show_prefix_cmd.
6347 (cli_style_option::add_setshow_commands): Remove do_set and
6348 do_show parameters.
6349 (cli_style_option::add_setshow_commands): Use
6350 add_basic_prefix_cmd, add_show_prefix_cmd.
6351 (STYLE_ADD_SETSHOW_COMMANDS): Remove macro.
6352 (set_style_name): Remove.
6353 * cli/cli-dump.c (dump_command, append_command): Remove.
6354 (srec_dump_command, ihex_dump_command, verilog_dump_command)
6355 (tekhex_dump_command, binary_dump_command)
6356 (binary_append_command): Remove.
6357 (_initialize_cli_dump): Use add_basic_prefix_cmd.
6358 * windows-tdep.c (w32_prefix_command_valid): Remove global.
6359 (init_w32_command_list): Remove; move into ...
6360 (_initialize_windows_tdep): ... here. Use add_basic_prefix_cmd.
6361 * valprint.c (set_print, show_print, set_print_raw)
6362 (show_print_raw): Remove.
6363 (_initialize_valprint): Use add_basic_prefix_cmd,
6364 add_show_prefix_cmd.
6365 * typeprint.c (set_print_type, show_print_type): Remove.
6366 (_initialize_typeprint): Use add_basic_prefix_cmd,
6367 add_show_prefix_cmd.
6368 * record.c (set_record_command, show_record_command): Remove.
6369 (_initialize_record): Use add_basic_prefix_cmd,
6370 add_show_prefix_cmd.
6371 * cli/cli-cmds.c (_initialize_cli_cmds): Use add_basic_prefix_cmd,
6372 add_show_prefix_cmd.
6373 (info_command, show_command, set_debug, show_debug): Remove.
6374 * top.h (set_history, show_history): Don't declare.
6375 * top.c (set_history, show_history): Remove.
6376 * target-descriptions.c (set_tdesc_cmd, show_tdesc_cmd)
6377 (unset_tdesc_cmd): Remove.
6378 (_initialize_target_descriptions): Use add_basic_prefix_cmd,
6379 add_show_prefix_cmd.
6380 * symtab.c (info_module_command): Remove.
6381 (_initialize_symtab): Use add_basic_prefix_cmd.
6382 * symfile.c (overlay_command): Remove.
6383 (_initialize_symfile): Use add_basic_prefix_cmd.
6384 * sparc64-tdep.c (info_adi_command): Remove.
6385 (_initialize_sparc64_adi_tdep): Use add_basic_prefix_cmd.
6386 * sh-tdep.c (show_sh_command, set_sh_command): Remove.
6387 (_initialize_sh_tdep): Use add_basic_prefix_cmd,
6388 add_show_prefix_cmd.
6389 * serial.c (serial_set_cmd, serial_show_cmd): Remove.
6390 (_initialize_serial): Use add_basic_prefix_cmd,
6391 add_show_prefix_cmd.
6392 * ser-tcp.c (set_tcp_cmd, show_tcp_cmd): Remove.
6393 (_initialize_ser_tcp): Use add_basic_prefix_cmd,
6394 add_show_prefix_cmd.
6395 * rs6000-tdep.c (set_powerpc_command, show_powerpc_command)
6396 (_initialize_rs6000_tdep): Use add_basic_prefix_cmd,
6397 add_show_prefix_cmd.
6398 * riscv-tdep.c (show_riscv_command, set_riscv_command)
6399 (show_debug_riscv_command, set_debug_riscv_command): Remove.
6400 (_initialize_riscv_tdep): Use add_basic_prefix_cmd,
6401 add_show_prefix_cmd.
6402 * remote.c (remote_command, set_remote_cmd): Remove.
6403 (_initialize_remote): Use add_basic_prefix_cmd.
6404 * record-full.c (set_record_full_command)
6405 (show_record_full_command): Remove.
6406 (_initialize_record_full): Use add_basic_prefix_cmd,
6407 add_show_prefix_cmd.
6408 * record-btrace.c (cmd_set_record_btrace)
6409 (cmd_show_record_btrace, cmd_set_record_btrace_bts)
6410 (cmd_show_record_btrace_bts, cmd_set_record_btrace_pt)
6411 (cmd_show_record_btrace_pt): Remove.
6412 (_initialize_record_btrace): Use add_basic_prefix_cmd,
6413 add_show_prefix_cmd.
6414 * ravenscar-thread.c (set_ravenscar_command)
6415 (show_ravenscar_command): Remove.
6416 (_initialize_ravenscar): Use add_basic_prefix_cmd,
6417 add_show_prefix_cmd.
6418 * mips-tdep.c (show_mips_command, set_mips_command)
6419 (_initialize_mips_tdep): Use add_basic_prefix_cmd,
6420 add_show_prefix_cmd.
6421 * maint.c (maintenance_command, maintenance_info_command)
6422 (maintenance_check_command, maintenance_print_command)
6423 (maintenance_set_cmd, maintenance_show_cmd): Remove.
6424 (_initialize_maint_cmds): Use add_basic_prefix_cmd,
6425 add_show_prefix_cmd.
6426 (show_per_command_cmd): Remove.
6427 * maint-test-settings.c (maintenance_set_test_settings_cmd):
6428 Remove.
6429 (maintenance_show_test_settings_cmd): Remove.
6430 (_initialize_maint_test_settings): Use add_basic_prefix_cmd,
6431 add_show_prefix_cmd.
6432 * maint-test-options.c (maintenance_test_options_command):
6433 Remove.
6434 (_initialize_maint_test_options): Use add_basic_prefix_cmd.
6435 * macrocmd.c (macro_command): Remove
6436 (_initialize_macrocmd): Use add_basic_prefix_cmd.
6437 * language.c (set_check, show_check): Remove.
6438 (_initialize_language): Use add_basic_prefix_cmd,
6439 add_show_prefix_cmd.
6440 * infcmd.c (unset_command): Remove.
6441 (_initialize_infcmd): Use add_basic_prefix_cmd.
6442 * i386-tdep.c (set_mpx_cmd, show_mpx_cmd): Remove.
6443 (_initialize_i386_tdep): Use add_basic_prefix_cmd,
6444 add_show_prefix_cmd.
6445 * go32-nat.c (go32_info_dos_command): Remove.
6446 (_initialize_go32_nat): Use add_basic_prefix_cmd.
6447 * cli/cli-decode.c (do_prefix_cmd, add_basic_prefix_cmd)
6448 (do_show_prefix_cmd, add_show_prefix_cmd): New functions.
6449 * frame.c (set_backtrace_cmd, show_backtrace_cmd): Remove.
6450 (_initialize_frame): Use add_basic_prefix_cmd,
6451 add_show_prefix_cmd.
6452 * dcache.c (set_dcache_command, show_dcache_command): Remove.
6453 (_initialize_dcache): Use add_basic_prefix_cmd,
6454 add_show_prefix_cmd.
6455 * cp-support.c (maint_cplus_command): Remove.
6456 (_initialize_cp_support): Use add_basic_prefix_cmd.
6457 * btrace.c (maint_btrace_cmd, maint_btrace_set_cmd)
6458 (maint_btrace_show_cmd, maint_btrace_pt_set_cmd)
6459 (maint_btrace_pt_show_cmd, _initialize_btrace): Use
6460 add_basic_prefix_cmd, add_show_prefix_cmd.
6461 * breakpoint.c (save_command): Remove.
6462 (_initialize_breakpoint): Use add_basic_prefix_cmd.
6463 * arm-tdep.c (set_arm_command, show_arm_command): Remove.
6464 (_initialize_arm_tdep): Use add_basic_prefix_cmd,
6465 add_show_prefix_cmd.
6466 * ada-lang.c (maint_set_ada_cmd, maint_show_ada_cmd)
6467 (set_ada_command, show_ada_command): Remove.
6468 (_initialize_ada_language): Use add_basic_prefix_cmd,
6469 add_show_prefix_cmd.
6470 * command.h (add_basic_prefix_cmd, add_show_prefix_cmd): Declare.
6471
3557f442
KR
64722020-04-16 Kamil Rytarowski <n54@gmx.com>
6473
6474 * nbsd-nat.c (inf_ptrace_target::auxv_parse): Remove.
6475 * nbsd-nat.h (inf_ptrace_target::auxv_parse): Likewise.
6476
16197208
SM
64772020-04-16 Simon Marchi <simon.marchi@polymtl.ca>
6478
6479 * windows-tdep.c (is_linked_with_cygwin_dll): Add filename to
6480 warning messages.
6481
00ac85d3
SM
64822020-04-16 Simon Marchi <simon.marchi@polymtl.ca>
6483
6484 * windows-tdep.c (is_linked_with_cygwin_dll): Consider case where
6485 import table is not at beginning of .idata section.
6486
381ce63f
PA
64872020-04-16 Pedro Alves <palves@redhat.com>
6488
6489 * inferior.c (delete_inferior): Use delete operator directly
6490 instead of delete_program_space.
6491 * progspace.c (add_program_space): New, factored out from
6492 program_space::program_space.
6493 (remove_program_space): New, factored out from
6494 delete_program_space.
6495 (program_space::program_space): Remove intro comment. Rewrite.
6496 (program_space::~program_space): Remove intro comment. Call
6497 remove_program_space.
6498 (delete_program_space): Delete.
6499 * progspace.h (program_space::program_space): Make explicit. Move
6500 intro comment here, adjusted.
6501 (program_space::~program_space): Move intro comment here,
6502 adjusted.
6503 (delete_program_space): Remove.
6504
a010605f
TT
65052020-04-16 Tom Tromey <tromey@adacore.com>
6506
6507 * windows-nat.c (windows_nat::handle_access_violation): New
6508 function.
6509 * nat/windows-nat.h (handle_access_violation): Declare.
6510 * nat/windows-nat.c (handle_exception): Move Cygwin code to
6511 windows-nat.c. Call handle_access_violation.
6512
efba5c23
TV
65132020-04-16 Tom de Vries <tdevries@suse.de>
6514
6515 PR symtab/25791
6516 * dwarf2/index-write.c (write_gdbindex): Generate CU table entries for
6517 CUs without psymtab.
6518
97ed802d
KB
65192020-04-16 Kevin Buettner <kevinb@redhat.com>
6520
6521 * python/python.c (do_start_initialization): Don't call
6522 PyEval_InitThreads for Python 3.9 and beyond.
6523
c7d64809
KR
65242020-04-15 Kamil Rytarowski <n54@gmx.com>
6525
6526 * obsd-nat.c (obsd_nat_target::update_thread_list): Pass "this" to
6527 thread functions.
6528 (obsd_nat_target::wait): Likewise.
6529
ce127a96
TT
65302020-04-15 Tom Tromey <tromey@adacore.com>
6531
6532 * windows-nat.c (DEBUG_EXEC, DEBUG_EVENTS, DEBUG_MEM)
6533 (DEBUG_EXCEPT): Use debug_printf.
6534
99f1bc6a
AB
65352020-04-15 Andrew Burgess <andrew.burgess@embecosm.com>
6536
6537 * completer.c (class completion_tracker::completion_hash_entry)
6538 <hash_name>: New member function.
6539 (completion_tracker::discard_completions): New callback to hash a
6540 completion_hash_entry, pass this to htab_create_alloc.
6541
a0e9b532
JT
65422016-01-20 Jon Turney <jon.turney@dronecode.org.uk>
6543
6544 * windows-nat.c (windows_make_so): Warn rather than stopping with
6545 an error if realpath() fails.
6546
06ca5dd4
KR
65472020-04-14 Kamil Rytarowski <n54@gmx.com>
6548
6549 * nbsd-nat.c (nbsd_pid_to_kinfo_proc2): New.
6550 (nbsd_nat_target::info_proc): Add do_status.
6551
194d088f
TV
65522020-04-14 Simon Marchi <simon.marchi@polymtl.ca>
6553 Tom de Vries <tdevries@suse.de>
6554
6555 PR symtab/25718
6556 * psympriv.h (struct partial_symtab::read_symtab)
6557 (struct partial_symtab::expand_psymtab)
6558 (struct partial_symtab::read_dependencies): Update comments.
6559 * dwarf2/read.c (struct dwarf2_include_psymtab::read_symtab): Call
6560 read_symtab for includer.
6561 (struct dwarf2_include_psymtab::expand_psymtab): Assert false.
6562 (struct dwarf2_include_psymtab::readin_p): Call readin_p () for includer.
6563 (struct dwarf2_include_psymtab::m_readin): Remove.
6564 (struct dwarf2_include_psymtab::includer): New member function.
6565 (dwarf2_psymtab::expand_psymtab): Assert !readin.
6566
c1a66c06
TV
65672020-04-14 Tom de Vries <tdevries@suse.de>
6568
6569 PR symtab/25720
6570 * symmisc.c (maintenance_expand_symtabs): Call expand_symtabs_matching
6571 with NULL symbol_matcher and lookup_name.
6572 * psymtab.c (psym_expand_symtabs_matching): Handle NULL symbol_matcher
6573 and lookup_name.
6574 * dwarf2/read.c (dw2_expand_symtabs_matching)
6575 (dw2_debug_names_expand_symtabs_matching): Same.
6576 * symfile.h (struct quick_symbol_functions::expand_symtabs_matching):
6577 Make lookup_name a pointer. Update comment.
6578 * symtab.c (global_symbol_searcher::expand_symtabs): Handle
6579 lookup_name being a pointer.
6580 * symfile.c (expand_symtabs_matching): Same.
6581 * symfile-debug.c (debug_qf_expand_symtabs_matching): Same.
6582 * linespec.c (iterate_over_all_matching_symtabs): Same.
6583
400b5eca
TT
65842020-04-13 Tom Tromey <tom@tromey.com>
6585
6586 * run-on-main-thread.c: Update include.
6587 * unittests/main-thread-selftests.c: Update include.
6588 * tui/tui-win.c: Update include.
6589 * tui/tui-io.c: Update include.
6590 * tui/tui-interp.c: Update include.
6591 * tui/tui-hooks.c: Update include.
6592 * top.h: Update include.
6593 * top.c: Update include.
6594 * ser-base.c: Update include.
6595 * remote.c: Update include.
6596 * remote-notif.c: Update include.
6597 * remote-fileio.c: Update include.
6598 * record-full.c: Update include.
6599 * record-btrace.c: Update include.
6600 * python/python.c: Update include.
6601 * posix-hdep.c: Update include.
6602 * mingw-hdep.c: Update include.
6603 * mi/mi-main.c: Update include.
6604 * mi/mi-interp.c: Update include.
6605 * main.c: Update include.
6606 * linux-nat.c: Update include.
6607 * interps.c: Update include.
6608 * infrun.c: Update include.
6609 * inf-loop.c: Update include.
6610 * event-top.c: Update include.
6611 * event-loop.c: Move to ../gdbsupport/.
6612 * event-loop.h: Move to ../gdbsupport/.
6613 * async-event.h: Update include.
6614 * Makefile.in (COMMON_SFILES, HFILES_NO_SRCDIR): Update.
6615
93b54c8e
TT
66162020-04-13 Tom Tromey <tom@tromey.com>
6617
6618 * tui/tui-win.c: Include async-event.h.
6619 * remote.c: Include async-event.h.
6620 * remote-notif.c: Include async-event.h.
6621 * record-full.c: Include async-event.h.
6622 * record-btrace.c: Include async-event.h.
6623 * infrun.c: Include async-event.h.
6624 * event-top.c: Include async-event.h.
6625 * event-loop.h: Move some declarations to async-event.h.
6626 * event-loop.c: Don't include ser-event.h or top.h. Move some
6627 code to async-event.c.
6628 * async-event.h: New file.
6629 * async-event.c: New file.
6630 * Makefile.in (COMMON_SFILES): Add async-event.c.
6631 (HFILES_NO_SRCDIR): Add async-event.h.
6632
c1cd3163
TT
66332020-04-13 Tom Tromey <tom@tromey.com>
6634
6635 * utils.c (flush_streams): New function.
6636 * event-loop.c (gdb_wait_for_event): Call flush_streams.
6637
29f2bf4f
TT
66382020-04-13 Tom Tromey <tom@tromey.com>
6639
6640 * event-loop.c (handle_file_event): Use warning, not
6641 printf_unfiltered.
6642
98029d02
TT
66432020-04-13 Tom Tromey <tom@tromey.com>
6644
6645 * event-loop.c: Include <chrono>.
6646
06cc9596
TT
66472020-04-13 Tom Tromey <tom@tromey.com>
6648
6649 * gdb_select.h: Move to ../gdbsupport/.
6650 * event-loop.c: Update include path.
6651 * top.c: Update include path.
6652 * ser-base.c: Update include path.
6653 * ui-file.c: Update include path.
6654 * ser-tcp.c: Update include path.
6655 * guile/scm-ports.c: Update include path.
6656 * posix-hdep.c: Update include path.
6657 * ser-unix.c: Update include path.
6658 * gdb_usleep.c: Update include path.
6659 * mingw-hdep.c: Update include path.
6660 * inflow.c: Update include path.
6661 * infrun.c: Update include path.
6662 * event-top.c: Update include path.
6663
8ae8e197
TT
66642020-04-13 Tom Tromey <tom@tromey.com>
6665
6666 * configure: Rebuild.
6667 * configure.ac: Remove checks that are now in GDB_AC_COMMON.
6668
58cf28e8
TT
66692020-04-13 Tom Tromey <tom@tromey.com>
6670
6671 * event-loop.h (start_event_loop): Don't declare.
6672 * event-loop.c (start_event_loop): Move...
6673 * main.c (start_event_loop): ...here. Now static.
6674
b7f999ae
SDJ
66752020-04-13 Sergio Durigan Junior <sergiodj@sergiodj.net>
6676
6677 * MAINTAINERS: Update my email address.
6678
1085dfd4
KR
66792020-04-12 Kamil Rytarowski <n54@gmx.com>
6680
6681 * nbsd-nat.c (nbsd_nat_target::info_proc): Add IP_MINIMAL and
6682 IP_ALL.
6683
49d1d1f5
KR
66842020-04-12 Kamil Rytarowski <n54@gmx.com>
6685
6686 * nbsd-nat.c (nbsd_pid_to_cmdline): Add.
aac66a4c 6687 (nbsd_nat_target::info_proc): Add do_cmdline.
49d1d1f5 6688
b4848d2a
KR
66892020-04-12 Kamil Rytarowski <n54@gmx.com>
6690
6691 * nbsd-nat.c (nbsd_pid_to_cwd): Add.
aac66a4c 6692 (nbsd_nat_target::info_proc): Add do_cwd.
b4848d2a 6693
51c133d5
KR
66942020-04-12 Kamil Rytarowski <n54@gmx.com>
6695
6696 * nbsd-nat.c (nbsd_nat_target::info_proc): Add do_exe.
6697
54b8cbd0
KR
66982020-04-11 Kamil Rytarowski <n54@gmx.com>
6699
6700 * nbsd-nat.c; Include "nbsd-tdep.h" and "gdbarch.h".
6701 * nbsd-nat.c (nbsd_nat_target::find_memory_regions)
6702 (nbsd_nat_target::info_proc): New functions.
6703 * nbsd-nat.c (kinfo_get_vmmap): New function.
6704 * nbsd-nat.c (nbsd_nat_target::info_proc) Use
6705 nbsd_info_proc_mappings_header and nbsd_info_proc_mappings_entry.
6706 * nbsd-tdep.c (nbsd_info_proc_mappings_header)
6707 (nbsd_info_proc_mappings_entry, nbsd_vm_map_entry_flags): New
6708 functions.
6709 * nbsd-tdep.c (KINFO_VME_PROT_READ, KINFO_VME_PROT_WRITE)
6710 (KINFO_VME_PROT_EXEC, KINFO_VME_FLAG_COW)
6711 (KINFO_VME_FLAG_NEEDS_COPY, KINFO_VME_FLAG_NOCOREDUMP)
6712 (KINFO_VME_FLAG_PAGEABLE, KINFO_VME_FLAG_GROWS_UP)
6713 (KINFO_VME_FLAG_GROWS_DOWN): New.
6714
cf83625d
AS
67152020-04-10 Artur Shepilko <nomadbyte@gmail.com>
6716
6717 * utils.c (copy_bitwise): Use unsigned 0 constant as operand of
6718 bit shift.
6719
0c4311ab
TT
67202020-04-10 Tom Tromey <tromey@adacore.com>
6721
6722 * symfile.c (symbol_file_add_separate): Preserve OBJF_MAINLINE.
6723
3e65b3e9
TT
67242020-04-10 Tom Tromey <tromey@adacore.com>
6725
6726 * symtab.c (get_symbol_address, get_msymbol_address): Skip
6727 separate debug files.
6728
13302e95
HD
67292020-04-10 Hannes Domani <ssbssa@yahoo.de>
6730
6731 * nat/windows-nat.c (STATUS_WX86_BREAKPOINT, STATUS_WX86_SINGLE_STEP):
6732 Move to...
6733 * nat/windows-nat.h (STATUS_WX86_BREAKPOINT, STATUS_WX86_SINGLE_STEP):
6734 ... here.
6735 * windows-nat.c (windows_nat_target::get_windows_debug_event):
6736 Check for STATUS_WX86_BREAKPOINT.
6737 (windows_nat_target::wait): Same.
6738
bdfc1e8a
TV
67392020-04-10 Tom de Vries <tdevries@suse.de>
6740
6741 PR cli/25808
6742 * python/lib/gdb/__init__.py: Initialize lexer with stripnl=False.
6743
f4460aec
SM
67442020-04-09 Simon Marchi <simon.marchi@polymtl.ca>
6745
6746 * MAINTAINERS (Global Maintainers): Add Tom de Vries.
6747 (Write After Approval): Remove Tom de Vries.
6748
a25198bb
BE
67492020-04-09 Bernd Edlinger <bernd.edlinger@hotmail.de>
6750
6751 revert partially:
6752 2020-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
6753
aac66a4c
SM
6754 * buildsym.c (record_line): Fix undefined behavior and preserve
6755 lines at eof.
a25198bb 6756
206c98a6
KR
67572020-04-09 Kamil Rytarowski <n54@gmx.com>
6758
6759 * auxv.h (svr4_auxv_parse): New.
6760 * auxv.c (default_auxv_parse): Split into default_auxv_parse
6761 and generic_auxv_parse.
6762 (svr4_auxv_parse): Add.
6763 * obsd-tdep.c: Include "auxv.h".
6764 (obsd_auxv_parse): Remove.
6765 (obsd_init_abi): Remove comment.
6766 (obsd_init_abi): Change set_gdbarch_auxv_parse passed argument
6767 from `obsd_auxv_parse' to `svr4_auxv_parse'.
6768 * nbsd-tdep.c: Include "auxv.h".
6769 (nbsd_init_abi): Call set_gdbarch_auxv_parse.
6770
71fbdbaf
TT
67712020-04-08 Tom Tromey <tromey@adacore.com>
6772
6773 * nat/windows-nat.h (last_wait_event): Don't declare.
6774 (wait_for_debug_event): Update comment.
6775 * nat/windows-nat.c (last_wait_event): Now static.
6776
2c1d95e8
TT
67772020-04-08 Tom Tromey <tromey@adacore.com>
6778
6779 * windows-nat.c (wait_for_debug_event): Move to
6780 nat/windows-nat.c.
6781 * nat/windows-nat.h (wait_for_debug_event): Declare.
6782 * nat/windows-nat.c (wait_for_debug_event): Move from
6783 windows-nat.c. No longer static.
6784
d2977bc4
TT
67852020-04-08 Tom Tromey <tromey@adacore.com>
6786
6787 * windows-nat.c (get_windows_debug_event): Use
6788 fetch_pending_stop.
6789 * nat/windows-nat.h (fetch_pending_stop): Declare.
6790 * nat/windows-nat.c (fetch_pending_stop): New function.
6791
e758e19c
TT
67922020-04-08 Tom Tromey <tromey@adacore.com>
6793
6794 * windows-nat.c (windows_continue): Use matching_pending_stop and
6795 continue_last_debug_event.
6796 * nat/windows-nat.h (matching_pending_stop)
6797 (continue_last_debug_event): Declare.
6798 * nat/windows-nat.c (DEBUG_EVENTS): New define.
6799 (matching_pending_stop, continue_last_debug_event): New
6800 functions.
6801
8d30e395
TT
68022020-04-08 Tom Tromey <tromey@adacore.com>
6803
6804 * windows-nat.c (MS_VC_EXCEPTION): Move to nat/windows-nat.c.
6805 (handle_exception_result): Move to nat/windows-nat.h.
6806 (DEBUG_EXCEPTION_SIMPLE): Remove.
6807 (windows_nat::handle_ms_vc_exception): New function.
6808 (handle_exception): Move to nat/windows-nat.c.
6809 (get_windows_debug_event): Update.
6810 (STATUS_WX86_BREAKPOINT, STATUS_WX86_SINGLE_STEP): Move to
6811 nat/windows-nat.c.
6812 * nat/windows-nat.h (handle_ms_vc_exception): Declare.
6813 (handle_exception_result): Move from windows-nat.c.
6814 (handle_exception): Declare.
6815 * nat/windows-nat.c (MS_VC_EXCEPTION, handle_exception)
6816 (STATUS_WX86_SINGLE_STEP, STATUS_WX86_BREAKPOINT): Move from
6817 windows-nat.c.
6818
29de418d
TT
68192020-04-08 Tom Tromey <tromey@adacore.com>
6820
6821 * windows-nat.c (exception_count, event_count): Remove.
6822 (handle_exception, get_windows_debug_event)
6823 (do_initial_windows_stuff): Update.
6824
a816ba18
TT
68252020-04-08 Tom Tromey <tromey@adacore.com>
6826
6827 * windows-nat.c (windows_nat::handle_load_dll)
6828 (windows_nat::handle_unload_dll): Rename. No longer static.
6829 * nat/windows-nat.h (handle_load_dll, handle_unload_dll):
6830 Declare.
6831
a00caa12
TT
68322020-04-08 Tom Tromey <tromey@adacore.com>
6833
6834 * complaints.h (stop_whining): Declare at top-level.
6835 (complaint): Don't declare stop_whining.
6836
d41b524f
TT
68372020-04-08 Tom Tromey <tromey@adacore.com>
6838
6839 * windows-nat.c (windows_nat::handle_output_debug_string):
6840 Rename. No longer static.
6841 * nat/windows-nat.h (handle_output_debug_string): Declare.
6842
3c76026d
TT
68432020-04-08 Tom Tromey <tromey@adacore.com>
6844
6845 * windows-nat.c (current_process_handle, current_process_id)
6846 (main_thread_id, last_sig, current_event, last_wait_event)
6847 (current_windows_thread, desired_stop_thread_id, pending_stops)
6848 (struct pending_stop, siginfo_er): Move to nat/windows-nat.c.
6849 (display_selectors, fake_create_process)
6850 (get_windows_debug_event): Update.
6851 * nat/windows-nat.h (current_process_handle, current_process_id)
6852 (main_thread_id, last_sig, current_event, last_wait_event)
6853 (current_windows_thread, desired_stop_thread_id, pending_stops)
6854 (struct pending_stop, siginfo_er): Move from windows-nat.c.
6855 * nat/windows-nat.c (current_process_handle, current_process_id)
6856 (main_thread_id, last_sig, current_event, last_wait_event)
6857 (current_windows_thread, desired_stop_thread_id, pending_stops)
6858 (siginfo_er): New globals. Move from windows-nat.c.
6859
9d8679cc
TT
68602020-04-08 Tom Tromey <tromey@adacore.com>
6861
6862 * windows-nat.c (get_image_name): Move to nat/windows-nat.c.
6863 (handle_load_dll): Update.
6864 * nat/windows-nat.c (get_image_name): Move from windows-nat.c.
6865
28688adf
TT
68662020-04-08 Tom Tromey <tromey@adacore.com>
6867
6868 * windows-nat.c (enum thread_disposition_type): Move to
6869 nat/windows-nat.h.
6870 (windows_nat::thread_rec): Rename from thread_rec. No longer
6871 static.
6872 (windows_add_thread, windows_nat_target::fetch_registers)
6873 (windows_nat_target::store_registers, handle_exception)
6874 (windows_nat_target::resume, get_windows_debug_event)
6875 (windows_nat_target::get_tib_address)
6876 (windows_nat_target::thread_name)
6877 (windows_nat_target::thread_alive): Update.
6878 * nat/windows-nat.h (enum thread_disposition_type): Move from
6879 windows-nat.c.
6880 (thread_rec): Declare.
6881
4834dad0
TT
68822020-04-08 Tom Tromey <tromey@adacore.com>
6883
6884 * windows-nat.c: Add "using namespace".
6885 * nat/windows-nat.h: Wrap contents in windows_nat namespace.
6886 * nat/windows-nat.c: Wrap contents in windows_nat namespace.
6887
65bafd5b
TT
68882020-04-08 Tom Tromey <tromey@adacore.com>
6889
6890 * nat/windows-nat.h (struct windows_thread_info): Declare
6891 destructor.
6892 * nat/windows-nat.c (~windows_thread_info): New.
6893
0a4afda3
TT
68942020-04-08 Tom Tromey <tromey@adacore.com>
6895
6896 PR gdb/22992
6897 * windows-nat.c (current_event): Update comment.
6898 (last_wait_event, desired_stop_thread_id): New globals.
6899 (struct pending_stop): New.
6900 (pending_stops): New global.
6901 (windows_nat_target) <stopped_by_sw_breakpoint>
6902 <supports_stopped_by_sw_breakpoint>: New methods.
6903 (windows_fetch_one_register): Add assertions. Adjust PC.
6904 (windows_continue): Handle pending stops. Suspend other threads
6905 when stepping. Use last_wait_event
6906 (wait_for_debug_event): New function.
6907 (get_windows_debug_event): Use wait_for_debug_event. Handle
6908 pending stops. Queue spurious stops.
6909 (windows_nat_target::wait): Set stopped_at_software_breakpoint.
6910 (windows_nat_target::kill): Use wait_for_debug_event.
6911 * nat/windows-nat.h (struct windows_thread_info)
6912 <stopped_at_software_breakpoint>: New field.
6913 * nat/windows-nat.c (windows_thread_info::resume): Clear
6914 stopped_at_software_breakpoint.
6915
8e61ebec
TT
69162020-04-08 Tom Tromey <tromey@adacore.com>
6917
6918 * windows-nat.c (enum thread_disposition_type): New.
6919 (thread_rec): Replace "get_context" parameter with "disposition";
6920 change type.
6921 (windows_add_thread, windows_nat_target::fetch_registers)
6922 (windows_nat_target::store_registers, handle_exception)
6923 (windows_nat_target::resume, get_windows_debug_event)
6924 (windows_nat_target::get_tib_address)
6925 (windows_nat_target::thread_name)
6926 (windows_nat_target::thread_alive): Update.
6927
98a03287
TT
69282020-04-08 Tom Tromey <tromey@adacore.com>
6929
6930 * windows-nat.c (thread_rec): Use windows_thread_info::suspend.
6931 (windows_continue): Use windows_continue::resume.
6932 * nat/windows-nat.h (struct windows_thread_info) <suspend,
6933 resume>: Declare new methods.
6934 * nat/windows-nat.c: New file.
6935 * configure.nat (NATDEPFILES): Add nat/windows-nat.o when needed.
6936
7c7411bc
TT
69372020-04-08 Tom Tromey <tromey@adacore.com>
6938
6939 * windows-nat.c (windows_add_thread, windows_delete_thread)
6940 (windows_nat_target::fetch_registers)
6941 (windows_nat_target::store_registers, fake_create_process)
6942 (windows_nat_target::resume, windows_nat_target::resume)
6943 (get_windows_debug_event, windows_nat_target::wait)
6944 (windows_nat_target::pid_to_str)
6945 (windows_nat_target::get_tib_address)
6946 (windows_nat_target::get_ada_task_ptid)
6947 (windows_nat_target::thread_name)
6948 (windows_nat_target::thread_alive): Use lwp, not tid.
6949
2950fdf7
TT
69502020-04-08 Tom Tromey <tromey@adacore.com>
6951
6952 * windows-nat.c (handle_exception)
6953 (windows_nat_target::thread_name): Update.
6954 * nat/windows-nat.h (windows_thread_info): Remove destructor.
6955 <name>: Now unique_xmalloc_ptr.
6956
62fe396b
TT
69572020-04-08 Tom Tromey <tromey@adacore.com>
6958
6959 * windows-nat.c (thread_rec)
6960 (windows_nat_target::fetch_registers): Update.
6961 * nat/windows-nat.h (struct windows_thread_info) <suspended>:
6962 Update comment.
6963 <debug_registers_changed, reload_context>: Now bool.
6964
e9534bd2
TT
69652020-04-08 Tom Tromey <tromey@adacore.com>
6966
6967 * windows-nat.c (windows_add_thread): Use new.
6968 (windows_init_thread_list, windows_delete_thread): Use delete.
6969 (get_windows_debug_event): Update.
6970 * nat/windows-nat.h (struct windows_thread_info): Add constructor,
6971 destructor, and initializers.
6972
ae1f8880
TT
69732020-04-08 Tom Tromey <tromey@adacore.com>
6974
6975 * windows-nat.c (struct windows_thread_info): Remove.
6976 * nat/windows-nat.h: New file.
6977
55a1e039
TT
69782020-04-08 Tom Tromey <tromey@adacore.com>
6979
6980 * windows-nat.c (struct windows_thread_info) <tid>: Rename from "id".
6981 (thread_rec, windows_add_thread, windows_delete_thread)
6982 (windows_continue): Update.
6983
93366324
TT
69842020-04-08 Tom Tromey <tromey@adacore.com>
6985
6986 * windows-nat.c (struct windows_thread_info): Remove typedef.
6987 (thread_head): Remove.
6988 (thread_list): New global.
6989 (thread_rec, windows_add_thread, windows_init_thread_list)
6990 (windows_delete_thread, windows_continue): Update.
6991
0f2265e2
SM
69922020-04-08 Simon Marchi <simon.marchi@polymtl.ca>
6993
6994 * windows-tdep.h (windows_init_abi): Add comment.
6995 (cygwin_init_abi): New declaration.
6996 * windows-tdep.c: Split signal enumeration in two, one for
6997 Windows and one for Cygwin.
6998 (windows_gdb_signal_to_target): Only deal with signal of the
6999 Windows OS ABI.
7000 (cygwin_gdb_signal_to_target): New function.
7001 (windows_init_abi): Rename to windows_init_abi_common, don't set
7002 gdb_signal_to_target gdbarch method. Add new new function with
7003 this name.
7004 (cygwin_init_abi): New function.
7005 * amd64-windows-tdep.c (amd64_windows_init_abi_common): Add
7006 comment. Don't call windows_init_abi.
7007 (amd64_windows_init_abi): Add comment, call windows_init_abi.
7008 (amd64_cygwin_init_abi): Add comment, call cygwin_init_abi.
7009 * i386-windows-tdep.c (i386_windows_init_abi): Rename to
7010 i386_windows_init_abi_common, don't call windows_init_abi. Add
7011 a new function of this name.
7012 (i386_cygwin_init_abi): New function.
7013 (_initialize_i386_windows_tdep): Bind i386_cygwin_init_abi to
7014 OS ABI Cygwin.
7015
3810f182
SM
70162020-04-08 Simon Marchi <simon.marchi@polymtl.ca>
7017
7018 * dwarf2/read.c (read_gdb_index_from_buffer): Remove objfile
7019 parameter.c.
7020 (dwarf2_read_gdb_index): Update.
7021
063f8e80
KR
70222020-04-07 Kamil Rytarowski <n54@gmx.com>
7023
7024 * nbsd-tdep.c: Include "objfiles.h".
7025 (nbsd_skip_solib_resolver): New.
7026 (nbsd_init_abi): Call set_gdbarch_skip_solib_resolver().
7027
85a9510c 70282020-04-07 Nitika Achra <Nitika.Achra@amd.com>
7029
7030 * dwarf2/loc.c (loclist_describe_location): Call the function decode_debug_loclists_
7031 addresses if DWARF version is 5 or more because DW_LLE_start* or DW_LLE_offset_pair
7032 with DW_LLE_base_addressx are being emitted in DWARFv5.
7033 Add the newly added kind DW_LOC_OFFSET_PAIR also.
7034 The length of location description is an unsigned ULEB integer in DWARFv5 instead of
7035 unsigned integer.
7036
9fc3eaae 70372020-04-07 Nitika Achra <Nitika.Achra@amd.com>
7038
7039 * dwarf2/loc.c (enum debug_loc_kind): Add a new kind DEBUG_LOC_OFFSET_PAIR.
7040 (dwarf2_find_location_expression): Call the function decode_debug_loclists_
7041 addresses if DWARF version is 5 or more. DW_LLE_start* or DW_LLE_offset_pair
7042 with DW_LLE_base_addressx are being emitted in DWARFv5 instead of DW_LLE_GNU*.
7043 Add applicable base address if the entry is DW_LLE_offset_pair from DWO.
7044 (decode_debug_loclists_addresses): Return DEBUG_LOC_OFFSET_PAIR instead of
7045 DEBUG_LOC_START_END in case of DW_LLE_offset_pair.
7046
7047
41144253 70482020-04-07 Nitika Achra <Nitika.Achra@amd.com>
7049
7050 * dwarf2/read.c (cu_debug_loc_section): Added the declaration for the function.
7051 (read_loclist_index): New function definition.
7052 (lookup_loclist_base): New function definition.
7053 (read_loclist_header): New function definition.
7054 (dwarf2_cu): Add loclist_base and loclist_header field.
7055 (dwarf2_locate_dwo_sections): Handle .debug_loclists.dwo section.
7056 (read_full_die_1): Read the value of DW_AT_loclists_base.
7057 (read_attribute_reprocess): Handle DW_FORM_loclistx.
7058 (read_attribute_value): Handle DW_FORM_loclistx.
7059 (skip_one_die): Handle DW_FORM_loclistx.
7060 (loclist_header): New structure declaration.
7061 * dwarf2/attribute.c (form_is_section_offset): Handle DW_FORM_loclistx.
7062
9f4e76a4
SM
70632020-04-07 Simon Marchi <simon.marchi@polymtl.ca>
7064
7065 * dwarf2/read.h (struct dwarf2_psymtab): Remove two-parameters
7066 constructor. Remove `addr` parameter from other constructor and
7067 add `per_cu` parameter.
7068 * dwarf2/read.c (create_partial_symtab): Update.
7069
25c11aca
TV
70702020-04-07 Tom de Vries <tdevries@suse.de>
7071
7072 PR symtab/25796
7073 * dwarf2/read.c (can_have_DW_AT_const_value_p): New function.
7074 (partial_die_info::fixup): Inherit has_const_value.
7075
5707e24b
TV
70762020-04-07 Tom de Vries <tdevries@suse.de>
7077
7078 * psymtab.c (maintenance_check_psymtabs): Skip static LOC_BLOCK
7079 symbols without address.
7080
05f00e22
KR
70812020-04-06 Kamil Rytarowski <n54@gmx.com>
7082
7083 * nbsd-nat.h (struct thread_info): Add forward declaration.
7084 (nbsd_nat_target::thread_alive): Add.
7085 (nbsd_nat_target::thread_name): Likewise.
7086 (nbsd_nat_target::update_thread_list): Likewise.
7087 (update_thread_list::post_attach): Likewise.
7088 (post_attach::pid_to_str): Likewise.
7089 * nbsd-nat.c: Include "gdbthread.h" and "inferior.h".
7090 (nbsd_thread_lister): Add.
7091 (nbsd_nat_target::thread_alive): Likewise.
7092 (nbsd_nat_target::thread_name): Likewise.
7093 (nbsd_add_threads): Likewise.
7094 (update_thread_list::post_attach): Likewise.
7095 (nbsd_nat_target::update_thread_list): Likewise.
7096 (post_attach::pid_to_str): Likewise.
7097
6ee448cc
TT
70982020-04-06 Tom Tromey <tromey@adacore.com>
7099
7100 * ada-valprint.c (print_variant_part): Extract the variant field.
7101 (print_field_values): Use the field as the outer value when
7102 recursing.
7103
dea34e8c
TT
71042020-04-06 Tom Tromey <tromey@adacore.com>
7105
7106 * sh-nbsd-tdep.c: Include nbsd-tdep.h.
7107 * ppc-nbsd-tdep.c: Include nbsd-tdep.h.
7108 * mips-nbsd-tdep.c (mipsnbsd_init_abi): Add missing ";".
7109 * arm-nbsd-tdep.c: Include nbsd-tdep.h.
7110 * hppa-nbsd-tdep.c: Include nbsd-tdep.h.
7111
93689ce9
TT
71122020-04-06 Tom Tromey <tromey@adacore.com>
7113
7114 * dwarf2/read.c (read_base_type) <DW_ATE_complex_float>: Handle
7115 TYPE_CODE_ERROR.
7116
79743962
KR
71172020-04-06 Kamil Rytarowski <n54@gmx.com>
7118
7119 * nbsd-tdep.c: Include "gdbarch.h".
7120 Define enum with NetBSD signal numbers.
7121 (nbsd_gdb_signal_from_target, nbsd_gdb_signal_to_target): New.
7122 * alpha-nbsd-tdep.c (alphanbsd_init_abi): Call nbsd_init_abi().
7123 * amd64-nbsd-tdep.c (amd64nbsd_init_abi): Likewise.
7124 * arm-nbsd-tdep.c (arm_netbsd_elf_init_abi): Likewise.
7125 * hppa-nbsd-tdep.c (hppanbsd_init_abi): Likewise.
7126 * i386-nbsd-tdep.c (i386nbsd_init_abi): Likewise.
7127 * mips-nbsd-tdep.c (nbsd_init_abi): Likewise.
7128 * ppc-nbsd-tdep.c (ppcnbsd_init_abi): Likewise.
7129 * sh-nbsd-tdep.c (shnbsd_init_abi): Likewise.
7130 * sparc-nbsd-tdep.c (sparc32nbsd_init_abi): Likewise.
7131 * sparc64-nbsd-tdep.c (sparc64nbsd_init_abi): Likewise.
7132 * vax-nbsd-tdep.c (vaxnbsd_elf_init_abi): Likewise.
7133
9e7c9a03
HD
71342020-04-03 Hannes Domani <ssbssa@yahoo.de>
7135
7136 PR gdb/25325
7137 * dwarf2/read.c (read_enumeration_type): Fix typed enum attributes.
7138
d9e49b61
TT
71392020-04-03 Tom Tromey <tromey@adacore.com>
7140
7141 * dwarf2/loc.c (disassemble_dwarf_expression) <DW_OP_const_type>:
7142 Read constant block.
7143
e0fc5c3f
SM
71442020-04-02 Simon Marchi <simon.marchi@polymtl.ca>
7145
7146 * gdb_bfd.h: Include gdbsupport/byte-vector.h.
7147 (gdb_bfd_get_full_section_contents): New declaration.
7148 * gdb_bfd.c (gdb_bfd_get_full_section_contents): New function.
7149 * windows-tdep.c (is_linked_with_cygwin_dll): Use
7150 gdb_bfd_get_full_section_contents.
7151
e2ff18a0
SM
71522020-04-02 Simon Marchi <simon.marchi@polymtl.ca>
7153
7154 * exec.c (build_section_table): Replace internal_error with
7155 gdb_assert.
7156 (section_table_xfer_memory_partial): Likewise.
7157 * mdebugread.c (parse_partial_symbols): Likewise.
7158 * psymtab.c (lookup_partial_symbol): Likewise.
7159 * utils.c (wrap_here): Likewise.
7160
0830d301
TT
71612020-04-02 Tom Tromey <tromey@adacore.com>
7162
7163 * f-lang.c (build_fortran_types): Use arch_type to initialize
7164 builtin_complex_s32 in the TYPE_CODE_ERROR case.
7165
e7da7f8f
TT
71662020-04-02 Tom Tromey <tromey@adacore.com>
7167
7168 * dwarf2/read.c (partial_die_info::read): Do not create a vector
7169 of attributes.
7170
c90d28ac
AB
71712020-04-02 Andrew Burgess <andrew.burgess@embecosm.com>
7172 Bernd Edlinger <bernd.edlinger@hotmail.de>
7173 Tom Tromey <tromey@adacore.com>
7174
7175 * buildsym.c (buildsym_compunit::record_line): Remove
7176 deduplication code.
7177
1aa98955
TV
71782020-04-02 Tom de Vries <tdevries@suse.de>
7179
7180 PR ada/24671
7181 * dwarf2/read.c (dw2_map_matching_symbols): Handle -readnow.
7182
d3214198
TV
71832020-04-02 Tom de Vries <tdevries@suse.de>
7184
7185 * dwarf2/read.c (dwarf2_gdb_index_functions,
7186 dwarf2_debug_names_functions): Init lookup_global_symbol_language with
7187 NULL.
7188 * psymtab.c (psym_lookup_global_symbol_language): New function.
7189 (psym_functions): Init psym_lookup_global_symbol_language with
7190 psym_lookup_global_symbol_language.
7191 * symfile-debug.c (debug_sym_quick_functions): Init
7192 lookup_global_symbol_language with NULL.
7193 * symfile.c (set_initial_language): Remove fixme comment.
7194 * symfile.h (struct quick_symbol_functions): Add
7195 lookup_global_symbol_language.
7196 * symtab.c (find_quick_global_symbol_language): New function.
7197 (find_main_name): Use find_quick_global_symbol_language.
7198
2836752f
SM
71992020-04-01 Simon Marchi <simon.marchi@polymtl.ca>
7200
7201 * windows-tdep.c (is_linked_with_cygwin_dll): Fix style.
7202
64dc2d4b
BE
72032020-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
7204
7205 * buildsym.c (record_line): Fix undefined behavior and preserve
7206 lines at eof.
7207
bbe3dc41
BE
72082020-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
7209
7210 * buildsym.c (record_line): Fix the resizing condition.
7211
6b4a335b
TT
72122020-04-01 Tom Tromey <tom@tromey.com>
7213
7214 * value.h (value_literal_complex): Add comment.
7215 * valops.c (value_literal_complex): Refer to value.h.
7216
3638a098
TT
72172020-04-01 Tom Tromey <tom@tromey.com>
7218
7219 * c-exp.y (FLOAT_KEYWORD, COMPLEX): New tokens.
7220 (scalar_type): New rule, from typebase.
7221 (typebase): Use scalar_type. Recognize complex types.
7222 (field_name): Handle FLOAT_KEYWORD.
7223 (ident_tokens): Add _Complex and __complex__.
7224
c34e8714
TT
72252020-04-01 Tom Tromey <tom@tromey.com>
7226
7227 PR exp/25299:
7228 * valarith.c (promotion_type, complex_binop): New functions.
7229 (scalar_binop): Handle complex numbers. Use promotion_type.
7230 (value_pos, value_neg, value_complement): Handle complex numbers.
7231
fa649bb7
TT
72322020-04-01 Tom Tromey <tom@tromey.com>
7233
7234 * c-exp.y (COMPLEX_INT, COMPLEX_FLOAT): New tokens.
7235 (exp) <COMPLEX_INT, COMPLEX_FLOAT>: New rules.
7236 (parse_number): Handle complex numbers.
7237
981c08ce
TT
72382020-04-01 Tom Tromey <tom@tromey.com>
7239
7240 * c-valprint.c (c_decorations): Change complex suffix to "i".
7241
4c99290d
TT
72422020-04-01 Tom Tromey <tom@tromey.com>
7243
7244 * valprint.c (generic_value_print_complex): Use accessors.
7245 * value.h (value_real_part, value_imaginary_part): Declare.
7246 * valops.c (value_real_part, value_imaginary_part): New
7247 functions.
7248 * value.c (creal_internal_fn, cimag_internal_fn): Use accessors.
7249
5b930b45
TT
72502020-04-01 Tom Tromey <tom@tromey.com>
7251
7252 * stabsread.c (rs6000_builtin_type, read_sun_floating_type)
7253 (read_range_type): Update.
7254 * mdebugread.c (basic_type): Update.
7255 * go-lang.c (build_go_types): Use init_complex_type.
7256 * gdbtypes.h (struct main_type) <complex_type>: New member.
7257 (init_complex_type): Update.
7258 (arch_complex_type): Don't declare.
7259 * gdbtypes.c (init_complex_type): Remove "objfile" parameter.
7260 Make name if none given. Use alloc_type_copy. Look for cached
7261 complex type.
7262 (arch_complex_type): Remove.
7263 (gdbtypes_post_init): Use init_complex_type.
7264 * f-lang.c (build_fortran_types): Use init_complex_type.
7265 * dwarf2/read.c (read_base_type): Update.
7266 * d-lang.c (build_d_types): Use init_complex_type.
7267 * ctfread.c (read_base_type): Update.
7268
53cccef1
TBA
72692020-04-01 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
7270
7271 * infrun.c (stop_all_threads): Update assertion, plus when
7272 stopping threads, take into account that we might be trying
7273 to stop an all-stop target.
7274 (stop_waiting): Call 'stop_all_threads' if there exists a
7275 non-stop target.
7276
a0714d30
TBA
72772020-04-01 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
7278
7279 * target.h (exists_non_stop_target): New function declaration.
7280 * target.c (exists_non_stop_target): New function.
7281
60e22c1e
HD
72822020-04-01 Hannes Domani <ssbssa@yahoo.de>
7283
7284 PR gdb/24789
7285 * eval.c (is_integral_or_integral_reference): New function.
7286 (evaluate_subexp_standard): Allow integer references in
7287 pointer arithmetic.
7288
e139a727
TBA
72892020-04-01 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
7290
7291 * remote.c (remote_target::remote_parse_stop_reply): Remove the
7292 check for no ptid in the stop reply when the target is non-stop.
7293
e0802d59
TT
72942020-04-01 Tom Tromey <tromey@adacore.com>
7295
7296 * symtab.h (class lookup_name_info) <lookup_name_info>: Change
7297 "name" parameter to rvalue reference. Initialize m_name_holder.
7298 <lookup_name_info>: New overloads.
7299 <name>: Return gdb::string_view.
7300 <c_str>: New method.
7301 <make_ignore_params>: Update.
7302 <search_name_hash>: Update.
7303 <language_lookup_name>: Return const char *.
7304 <m_name>: Change type.
7305 * symtab.c (demangle_for_lookup_info::demangle_for_lookup_info)
7306 (demangle_for_lookup_info::demangle_for_lookup_info): Update.
7307 (lookup_name_info::match_any): Update.
7308 * psymtab.c (match_partial_symbol, lookup_partial_symbol):
7309 Update.
7310 * minsyms.c (linkage_name_str): Update.
7311 * language.c (default_symbol_name_matcher): Update.
7312 * dwarf2/read.c (mapped_index_base::find_name_components_bounds):
7313 Update.
7314 * ada-lang.c (ada_fold_name): Change parameter to string_view.
7315 (ada_lookup_name_info::ada_lookup_name_info): Update.
7316 (literal_symbol_name_matcher): Update.
7317
8c072cb6
TT
73182020-04-01 Tom Tromey <tromey@adacore.com>
7319
7320 * psymtab.c (psymtab_search_name): Remove function.
7321 (psym_lookup_symbol): Create search name and lookup name here.
7322 (lookup_partial_symbol): Remove "name" parameter; add
7323 lookup_name.
7324 (psym_expand_symtabs_for_function): Update.
7325
6f29a534
TT
73262020-03-31 Joel Jones <joelkevinjones@gmail.com>
7327
7328 PR tui/25597:
7329 * python/py-tui.c: Include gdb_curses.h inside of #ifdef TUI.
7330
af62665e
TT
73312020-03-31 Tom Tromey <tromey@adacore.com>
7332
7333 * dwarf2/abbrev.c (abbrev_table::read): Conditionally call
7334 memcpy.
7335
d1a89da5
NC
73362020-03-30 Nelson Chu <nelson.chu@sifive.com>
7337
7338 * features/riscv/32bit-csr.xml: Regenerated.
7339 * features/riscv/64bit-csr.xml: Regenerated.
7340
d8af9068
TT
73412020-03-30 Tom Tromey <tromey@adacore.com>
7342
7343 * ada-valprint.c (print_variant_part): Update.
7344 * ada-lang.h (ada_which_variant_applies): Update.
7345 * ada-lang.c (ada_which_variant_applies): Remove outer_type and
7346 outer_valaddr parameters; replace with "outer" value parameter.
7347 (to_fixed_variant_branch_type): Update.
7348
227c0bf4
PFC
73492020-03-30 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
7350
7351 * ppc-linux-nat.c: Include <algorithm>, <unordered_map>, and
7352 <list>. Remove inclusion of observable.h.
7353 (PPC_DEBUG_CURRENT_VERSION): Move up define.
7354 (struct arch_lwp_info): New struct.
7355 (class ppc_linux_dreg_interface): New class.
7356 (struct ppc_linux_process_info): New struct.
7357 (struct ppc_linux_nat_target) <low_delete_thread, low_new_fork>
7358 <low_new_clone, low_forget_process, low_prepare_to_resume>
7359 <copy_thread_dreg_state, mark_thread_stale>
7360 <mark_debug_registers_changed, register_hw_breakpoint>
7361 <clear_hw_breakpoint, register_wp, clear_wp>
7362 <can_use_watchpoint_cond_accel, calculate_dvc, check_condition>
7363 <num_memory_accesses, get_trigger_type>
7364 <create_watchpoint_request, hwdebug_point_cmp>
7365 <init_arch_lwp_info, get_arch_lwp_info>
7366 <low_stopped_by_watchpoint, low_stopped_data_address>: Declare as
7367 methods.
7368 <struct ptid_hash>: New inner struct.
7369 <m_dreg_interface, m_process_info, m_installed_hw_bps>: Declare
7370 members.
7371 (saved_dabr_value, hwdebug_info, max_slots_number)
7372 (struct hw_break_tuple, struct thread_points, ppc_threads)
7373 (have_ptrace_hwdebug_interface)
7374 (hwdebug_find_thread_points_by_tid)
7375 (hwdebug_insert_point, hwdebug_remove_point): Remove.
7376 (ppc_linux_nat_target::can_use_hw_breakpoint): Use
7377 m_dreg_interface, remove call to PTRACE_SET_DEBUGREG.
7378 (ppc_linux_nat_target::region_ok_for_hw_watchpoint): Add comment,
7379 use m_dreg_interface.
7380 (hwdebug_point_cmp): Change to...
7381 (ppc_linux_nat_target::hwdebug_point_cmp): ...this method. Use
7382 reference arguments instead of pointers.
7383 (ppc_linux_nat_target::ranged_break_num_registers): Use
7384 m_dreg_interface.
7385 (ppc_linux_nat_target::insert_hw_breakpoint): Add comment, use
7386 m_dreg_interface. Call register_hw_breakpoint.
7387 (ppc_linux_nat_target::remove_hw_breakpoint): Add comment, use
7388 m_dreg_interface. Call clear_hw_breakpoint.
7389 (get_trigger_type): Change to...
7390 (ppc_linux_nat_target::get_trigger_type): ...this method. Add
7391 comment.
7392 (ppc_linux_nat_target::insert_mask_watchpoint): Update comment,
7393 use m_dreg_interface. Call register_hw_breakpoint.
7394 (ppc_linux_nat_target::remove_mask_watchpoint): Update comment,
7395 use m_dreg_interface. Call clear_hw_breakpoint.
7396 (can_use_watchpoint_cond_accel): Change to...
7397 (ppc_linux_nat_target::can_use_watchpoint_cond_accel): ...this
7398 method. Update comment, use m_dreg_interface and
7399 m_process_info.
7400 (calculate_dvc): Change to...
7401 (ppc_linux_nat_target::calculate_dvc): ...this method. Use
7402 m_dreg_interface.
7403 (num_memory_accesses): Change to...
7404 (ppc_linux_nat_target::num_memory_accesses): ...this method.
7405 (check_condition): Change to...
7406 (ppc_linux_nat_target::check_condition): ...this method.
7407 (ppc_linux_nat_target::can_accel_watchpoint_condition): Update
7408 comment, use m_dreg_interface.
7409 (create_watchpoint_request): Change to...
7410 (ppc_linux_nat_target::create_watchpoint_request): ...this
7411 method. Use m_dreg_interface.
7412 (ppc_linux_nat_target::insert_watchpoint): Add comment, use
7413 m_dreg_interface. Call register_hw_breakpoint or register_wp.
7414 (ppc_linux_nat_target::remove_watchpoint): Add comment, use
7415 m_dreg_interface. Call clear_hw_breakpoint or clear_wp.
7416 (ppc_linux_nat_target::low_forget_process)
7417 (ppc_linux_nat_target::low_new_fork)
7418 (ppc_linux_nat_target::low_new_clone)
7419 (ppc_linux_nat_target::low_delete_thread)
7420 (ppc_linux_nat_target::low_prepare_to_resume): New methods.
7421 (ppc_linux_nat_target::low_new_thread): Remove previous logic,
7422 only call mark_thread_stale.
7423 (ppc_linux_thread_exit): Remove.
7424 (ppc_linux_nat_target::stopped_data_address): Change to...
7425 (ppc_linux_nat_target::low_stopped_data_address): This. Add
7426 comment, use m_dreg_interface and m_thread_hw_breakpoints.
7427 (ppc_linux_nat_target::stopped_by_watchpoint): Change to...
7428 (ppc_linux_nat_target::stopped_by_watchpoint): This. Add
7429 comment. Call low_stopped_data_address.
7430 (ppc_linux_nat_target::watchpoint_addr_within_range): Use
7431 m_dreg_interface.
7432 (ppc_linux_nat_target::masked_watch_num_registers): Use
7433 m_dreg_interface.
7434 (ppc_linux_nat_target::copy_thread_dreg_state)
7435 (ppc_linux_nat_target::mark_thread_stale)
7436 (ppc_linux_nat_target::mark_debug_registers_changed)
7437 (ppc_linux_nat_target::register_hw_breakpoint)
7438 (ppc_linux_nat_target::clear_hw_breakpoint)
7439 (ppc_linux_nat_target::register_wp)
7440 (ppc_linux_nat_target::clear_wp)
7441 (ppc_linux_nat_target::init_arch_lwp_info)
7442 (ppc_linux_nat_target::get_arch_lwp_info): New methods.
7443 (_initialize_ppc_linux_nat): Remove observer callback.
7444
4db10d8f
PFC
74452020-03-30 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
7446
7447 * ppc-linux-nat.c (ppc_linux_nat_target::store_registers)
7448 (ppc_linux_nat_target::auxv_parse)
7449 (ppc_linux_nat_target::read_description)
7450 (supply_gregset, fill_gregset, supply_fpregset, fill_fpregset):
7451 Move up.
7452
1310c1b0
PFC
74532020-03-30 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
7454
7455 * linux-nat.h (low_new_clone): New method.
7456 * linux-nat.c (linux_handle_extended_wait): Call low_new_clone.
7457
69b037c3
SM
74582020-03-29 Simon Marchi <simon.marchi@polymtl.ca>
7459
7460 * dbxread.c (dbx_psymtab_to_symtab_1): Rename to...
7461 (dbx_expand_psymtab): ... this.
7462 (start_psymtab): Update.
7463 * mdebugread.c (psymtab_to_symtab_1): Rename to...
7464 (mdebug_expand_psymtab): ... this.
7465 (parse_partial_symbols): Update.
7466 (new_psymtab): Update.
7467 * xcoffread.c (xcoff_psymtab_to_symtab_1): Rename to...
7468 (xcoff_expand_psymtab): ... this.
7469 (xcoff_start_psymtab): Update.
7470
48993951
SM
74712020-03-29 Simon Marchi <simon.marchi@polymtl.ca>
7472
7473 * psympriv.h (partial_symtab) <read_dependencies>: Rename to...
7474 <expand_dependencies>: ... this.
7475 * psymtab.c (partial_symtab::read_dependencies): Rename to...
7476 (partial_symtab::expand_dependencies): ... this.
7477 * dwarf2/read.c (dwarf2_include_psymtab) <expand_psymtab>:
7478 Update.
7479 (dwarf2_psymtab::expand_psymtab): Update.
7480 * dbxread.c (dbx_psymtab_to_symtab_1): Update.
7481 * mdebugread.c (psymtab_to_symtab_1): Update.
7482 * xcoffread.c (xcoff_psymtab_to_symtab_1): Update.
7483
3ad83046
SM
74842020-03-29 Simon Marchi <simon.marchi@polymtl.ca>
7485
7486 * psympriv.h (discard_psymtab): Remove.
7487 * dbxread.c (dbx_end_psymtab): Update.
7488 * xcoffread.c (xcoff_end_psymtab): Update.
7489
4d1b9ab6
TT
74902020-03-28 Tom Tromey <tom@tromey.com>
7491
7492 * dwarf2/attribute.h (struct attribute) <form_is_constant>: Update
7493 comment.
7494
f1749218
TT
74952020-03-28 Tom Tromey <tom@tromey.com>
7496
7497 * dwarf2/read.c (read_attribute_reprocess): Fix formatting.
7498
ebea7626
HD
74992020-03-27 Hannes Domani <ssbssa@yahoo.de>
7500
7501 * windows-nat.c (windows_add_all_dlls): Fix system dll paths.
7502
a879b4d5
JB
75032020-03-26 John Baldwin <jhb@FreeBSD.org>
7504
7505 * fbsd-tdep.c (fbsd_print_auxv_entry): Handle AT_FREEBSD_BSDFLAGS.
7506
0826b30a
TT
75072020-03-26 Tom Tromey <tom@tromey.com>
7508
7509 * dwarf2/read.c (handle_data_member_location, dwarf2_add_field)
7510 (mark_common_block_symbol_computed, read_tag_string_type)
7511 (attr_to_dynamic_prop, read_subrange_type): Update.
7512 (dwarf2_get_ref_die_offset, dwarf2_get_attr_constant_value): Move
7513 to be methods on struct attribute.
7514 (skip_one_die, process_imported_unit_die, read_namespace_alias)
7515 (read_call_site_scope, partial_die_info::read)
7516 (partial_die_info::read, lookup_die_type, follow_die_ref):
7517 Update.
7518 * dwarf2/attribute.c (attribute::get_ref_die_offset): New method,
7519 from dwarf2_get_ref_die_offset.
7520 (attribute::constant_value): New method, from
7521 dwarf2_get_attr_constant_value.
7522 * dwarf2/attribute.h (struct attribute) <get_ref_die_offset>:
7523 Declare method.
7524 <constant_value>: New method.
7525
2b2558bf
TT
75262020-03-26 Tom Tromey <tom@tromey.com>
7527
7528 * dwarf2/read.c (dwarf_unit_type_name, dwarf_tag_name)
7529 (dwarf_attr_name, dwarf_form_name, dwarf_bool_name)
7530 (dwarf_type_encoding_name): Move to stringify.c.
7531 * Makefile.in (COMMON_SFILES): Add dwarf2/stringify.c.
7532 * dwarf2/stringify.c: New file.
7533 * dwarf2/stringify.h: New file.
7534
eeb64781
TT
75352020-03-26 Tom Tromey <tom@tromey.com>
7536
7537 * dwarf2/die.h (struct die_info) <addr_base, ranges_base>:
7538 Rewrite.
7539
a39fdb41
TT
75402020-03-26 Tom Tromey <tom@tromey.com>
7541
7542 * dwarf2/die.h (struct die_info) <addr_base, ranges_base>: New
7543 methods.
7544 * dwarf2/read.c (lookup_addr_base): Move to die.h.
7545 (lookup_ranges_base): Likewise.
7546 (read_cutu_die_from_dwo, read_full_die_1): Update.
7547
436c571c
TT
75482020-03-26 Tom Tromey <tom@tromey.com>
7549
7550 * dwarf2/read.c (read_import_statement, read_file_scope)
7551 (read_type_unit_scope, inherit_abstract_dies, read_func_scope)
7552 (read_lexical_block_scope, read_call_site_scope)
7553 (dwarf2_get_subprogram_pc_bounds, get_scope_pc_bounds)
7554 (handle_struct_member_die, process_structure_scope)
7555 (update_enumeration_type_from_children)
7556 (process_enumeration_scope, read_array_type, read_common_block)
7557 (read_namespace, read_module, read_subroutine_type): Update.
7558 (sibling_die): Remove.
7559
052c8bb8
TT
75602020-03-26 Tom Tromey <tom@tromey.com>
7561
7562 * dwarf2/read.c (lookup_addr_base, lookup_ranges_base)
7563 (build_type_psymtabs_reader, read_structure_type)
7564 (read_enumeration_type, read_full_die_1): Update.
7565 (dwarf2_attr_no_follow): Move to die.h.
7566 * dwarf2/die.h (struct die_info) <attr>: New method.
7567
2b24b6e4
TT
75682020-03-26 Tom Tromey <tom@tromey.com>
7569
7570 * dwarf2/read.c (struct dwarf2_cu) <base_known>: Remove.
7571 <base_address>: Now an optional.
7572 (dwarf2_find_base_address, dwarf2_rnglists_process)
7573 (dwarf2_ranges_process, fill_in_loclist_baton)
7574 (dwarf2_symbol_mark_computed): Update.
7575
c2d50fd0
TT
75762020-03-26 Tom Tromey <tom@tromey.com>
7577
7578 * dwarf2/read.c (struct die_info): Move to die.h.
7579 * dwarf2/die.h: New file.
7580
0df7ad3a
TT
75812020-03-26 Tom Tromey <tom@tromey.com>
7582
7583 * dwarf2/line-header.h (dwarf_decode_line_header): Declare.
7584 * dwarf2/read.c
7585 (dwarf2_statement_list_fits_in_line_number_section_complaint):
7586 Move to line-header.c.
7587 (read_checked_initial_length_and_offset, read_formatted_entries):
7588 Likewise.
7589 (dwarf_decode_line_header): Split into two.
7590 * dwarf2/line-header.c
7591 (dwarf2_statement_list_fits_in_line_number_section_complaint):
7592 Move from read.c.
7593 (read_checked_initial_length_and_offset, read_formatted_entries):
7594 Likewise.
7595 (dwarf_decode_line_header): New function, split from read.c.
7596
86c0bb4c
TT
75972020-03-26 Tom Tromey <tom@tromey.com>
7598
7599 * dwarf2/read.h (struct dwarf2_per_objfile) <read_line_string>:
7600 Declare method.
7601 * dwarf2/read.c (read_attribute_value): Update.
7602 (dwarf2_per_objfile::read_line_string): Rename from
7603 read_indirect_line_string.
7604 (read_formatted_entries): Update.
7605
2ef46c2f
TT
76062020-03-26 Tom Tromey <tom@tromey.com>
7607
7608 * dwarf2/macro.c (dwarf_decode_macro_bytes): Use objfile local
7609 variable.
7610
4f9c1eda
TT
76112020-03-26 Tom Tromey <tom@tromey.com>
7612
7613 * dwarf2/macro.h (dwarf_decode_macros): Make section parameter
7614 const.
7615 * dwarf2/macro.c (skip_form_bytes, skip_unknown_opcode)
7616 (dwarf_decode_macro_bytes, dwarf_decode_macros): Make section
7617 parameter const.
7618
5a0e026f
TT
76192020-03-26 Tom Tromey <tom@tromey.com>
7620
7621 * dwarf2/read.c (dwarf_decode_macros): Make "lh" const.
7622 * dwarf2/macro.h (dwarf_decode_macros): Constify "lh" parameter.
7623 * dwarf2/macro.c (macro_start_file): Constify "lh" parameter.
7624 (dwarf_decode_macro_bytes, dwarf_decode_macros): Likewise.
7625
8844c11b
TT
76262020-03-26 Tom Tromey <tom@tromey.com>
7627
7628 * dwarf2/line-header.h (struct line_header) <is_valid_file_index,
7629 file_names_size, file_full_name, file_file_name>: Use const.
7630 <file_name_at, file_names>: Add const overload.
7631 * dwarf2/line-header.c (line_header::file_file_name)
7632 (line_header::file_full_name): Update.
7633
c90ec28a
TT
76342020-03-26 Tom Tromey <tom@tromey.com>
7635
7636 * dwarf2/read.c (dwarf2_macro_malformed_definition_complaint)
7637 (macro_start_file, consume_improper_spaces)
7638 (parse_macro_definition, skip_form_bytes, skip_unknown_opcode)
7639 (dwarf_parse_macro_header, dwarf_decode_macro_bytes)
7640 (dwarf_decode_macros): Move to macro.c.
7641 * dwarf2/macro.c: New file.
7642 * dwarf2/macro.h: New file.
7643 * Makefile.in (COMMON_SFILES): Add dwarf2/macro.c.
7644
4f44ae6c
TT
76452020-03-26 Tom Tromey <tom@tromey.com>
7646
7647 * dwarf2/section.h (struct dwarf2_section_info) <read_string>: New
7648 method.
7649 * dwarf2/section.c: New method. From
7650 read_indirect_string_at_offset_from.
7651 * dwarf2/read.c (mapped_debug_names::namei_to_name): Update.
7652 (read_indirect_string_at_offset_from): Move to section.c.
7653 (read_indirect_string_at_offset): Rewrite.
7654 (read_indirect_line_string_at_offset): Remove.
7655 (read_indirect_string, read_indirect_line_string)
7656 (dwarf_decode_macro_bytes): Update.
7657
a0194fa8
TT
76582020-03-26 Tom Tromey <tom@tromey.com>
7659
7660 * dwarf2/section.h (struct dwarf2_section_info)
7661 <overload_complaint>: Declare.
7662 (dwarf2_section_buffer_overflow_complaint): Don't declare.
7663 * dwarf2/section.c (dwarf2_section_info::overflow_complaint):
7664 Rename from dwarf2_section_buffer_overflow_complaint.
7665 * dwarf2/read.c (skip_one_die, partial_die_info::read)
7666 (skip_form_bytes, dwarf_decode_macro_bytes): Update.
7667
3d27bbdb
TT
76682020-03-26 Tom Tromey <tom@tromey.com>
7669
7670 * dwarf2/section.h (dwarf2_section_buffer_overflow_complaint):
7671 Declare.
7672 * dwarf2/section.c (dwarf2_section_buffer_overflow_complaint):
7673 Move from read.c.
7674 * dwarf2/read.c (dwarf2_section_buffer_overflow_complaint): Move
7675 to section.c.
7676
9eac9650
TT
76772020-03-26 Tom Tromey <tom@tromey.com>
7678
7679 * dwarf2/read.c (dwarf_decode_macros): Split into two overloads.
7680
bf80d710
TT
76812020-03-26 Tom Tromey <tom@tromey.com>
7682
7683 * dwarf2/read.c (macro_start_file): Change "cu" parameter to
7684 "builder".
7685 (dwarf_decode_macro_bytes): Likewise. Add dwarf2_per_objfile
7686 parameter.
7687 (dwarf_decode_macros): Update.
7688
0314b390
TT
76892020-03-26 Tom Tromey <tom@tromey.com>
7690
7691 * dwarf2/read.c (read_attribute_value): Update.
7692 (read_indirect_string_from_dwz): Move to dwz.c; change into
7693 method.
7694 (dwarf_decode_macro_bytes): Update.
7695 * dwarf2/dwz.h (struct dwz_file) <read_string>: Declare method.
7696 * dwarf2/dwz.c: New file.
7697 * Makefile.in (COMMON_SFILES): Add dwz.c.
7698
9fda78b6
TT
76992020-03-26 Tom Tromey <tom@tromey.com>
7700
7701 * dwarf2/read.h (struct dwz_file): Move to dwz.h.
7702 * dwarf2/read.c: Add include.
7703 * dwarf2/index-write.c: Add include.
7704 * dwarf2/index-cache.c: Add include.
7705 * dwarf2/dwz.h: New file.
7706
33aa3c10
TT
77072020-03-25 Tom Tromey <tom@tromey.com>
7708
7709 * compile/compile-object-load.c (get_out_value_type): Mention
7710 correct symbol name in error message.
7711
d503b685
HD
77122020-03-25 Hannes Domani <ssbssa@yahoo.de>
7713
7714 * windows-nat.c (windows_add_all_dlls): Fix system dll paths.
7715
7b1eff95
TV
77162020-03-25 Tom de Vries <tdevries@suse.de>
7717
7718 * symtab.h (is_main_symtab_of_compunit_symtab): New function.
7719 * symmisc.c (dump_symtab_1): Print user and includes fields.
7720 (maintenance_info_symtabs): Same.
7721
dd895392
AB
77222020-03-25 Andrew Burgess <andrew.burgess@embecosm.com>
7723
7724 PR gdb/25534
7725 * riscv-tdep.c (riscv_arg_info::c_offset): Update comment.
7726 (riscv_regcache_cooked_write): New function.
7727 (riscv_push_dummy_call): Use new function.
7728 (riscv_return_value): Likewise.
7729
5ab2fbf1
SM
77302020-03-24 Simon Marchi <simon.marchi@polymtl.ca>
7731
7732 * fbsd-nat.c (fbsd_nat_target::follow_fork): Change bool to int.
7733 * fbsd-nat.h (class fbsd_nat_target) <follow_fork>: Likewise.
7734 * inf-ptrace.c (inf_ptrace_target::follow_fork): Likewise.
7735 * inf-ptrace.h (struct inf_ptrace_target) <follow_fork>: Likewise.
7736 * infrun.c (follow_fork): Likewise.
7737 (follow_fork_inferior): Likewise.
7738 * linux-nat.c (linux_nat_target::follow_fork): Likewise.
7739 * linux-nat.h (class linux_nat_target): Likewise.
7740 * remote.c (class remote_target) <follow_fork>: Likewise.
7741 (remote_target::follow_fork): Likewise.
7742 * target-delegates.c: Re-generate.
7743 * target.c (default_follow_fork): Likewise.
7744 (target_follow_fork): Likewise.
7745 * target.h (struct target_ops) <follow_fork>: Likewise.
7746 (target_follow_fork): Likewise.
7747
a64fafb5
TV
77482020-03-24 Tom de Vries <tdevries@suse.de>
7749
7750 * psymtab.c (maintenance_info_psymtabs): Print user field.
7751
fe26d3a3
TT
77522020-03-20 Tom Tromey <tromey@adacore.com>
7753
7754 * dwarf2/loc.h (dwarf2_evaluate_property): Make "addr_stack"
7755 const.
7756 * dwarf2/loc.c (dwarf2_evaluate_property): Make "addr_stack"
7757 const.
7758
c884cc46
SM
77592020-03-20 Simon Marchi <simon.marchi@efficios.com>
7760
7761 * ptrace.m4: Don't check for ptrace declaration.
7762 * config.in: Re-generate.
7763 * configure: Re-generate.
7764 * nat/gdb_ptrace.h: Don't declare ptrace if HAVE_DECL_PTRACE is
7765 not defined.
7766
1ff700c2
KR
77672020-03-20 Kamil Rytarowski <n54@gmx.com>
7768
7769 * amd64-bsd-nat.c (gdb_ptrace): Change return type from `int' to
7770 `PTRACE_TYPE_RET'.
7771 * i386-bsd-nat.c (gdb_ptrace): Likewise.
7772 * sparc-nat.c (gdb_ptrace): Likewise.
7773 * x86-bsd-nat.c (gdb_ptrace): Likewise.
7774
f7d4f0b1
TT
77752020-03-20 Tom Tromey <tromey@adacore.com>
7776
7777 * c-exp.y (lex_one_token): Fix assert.
7778
f67210ff
TT
77792020-03-20 Tom Tromey <tromey@adacore.com>
7780
7781 * ada-tasks.c (read_atcb): Use smaller length in strncpy call.
7782 * linux-tdep.c (linux_fill_prpsinfo): Use smaller length in
7783 strncpy call.
7784
1773be9e
TT
77852020-03-20 Tom Tromey <tromey@adacore.com>
7786
7787 * symmisc.c (maintenance_print_one_line_table): Use ui_out.
7788
70304be9
TT
77892020-03-20 Tom Tromey <tromey@adacore.com>
7790
7791 * ada-valprint.c (print_variant_part): Remove parameters; switch
7792 to value-based API.
7793 (print_field_values): Likewise.
7794 (ada_val_print_struct_union): Likewise.
7795 (ada_value_print_1): Update.
7796
9faa006d
KR
77972020-03-20 Kamil Rytarowski <n54@gmx.com>
7798
7799 * ppc-nbsd-nat.c (ppc_nbsd_nat_target): Inherit from
7800 nbsd_nat_target instead of inf_ptrace_target.
7801 * ppc-nbsd-nat.c: Include "nbsd-nat.h", as we are now using
7802 nbsd_nat_target.
7803
4a90f062
KR
78042020-03-20 Kamil Rytarowski <n54@gmx.com>
7805
7806 * hppa-nbsd-nat.c (fetch_registers): New variable lwp and pass
7807 it to the ptrace call.
7808 * (store_registers): Likewise.
7809
78102020-03-20 Kamil Rytarowski <n54@gmx.com>
c7da12c7
KR
7811
7812 * ppc-nbsd-nat.c (fetch_registers): New variable lwp and pass
7813 it to the ptrace call.
7814 * (store_registers): Likewise.
7815
2d07da27
LM
78162020-03-19 Luis Machado <luis.machado@linaro.org>
7817
7818 * nat/aarch64-sve-linux-ptrace.c (aarch64_sve_set_vq): If vg is not
7819 valid, fetch vg value from ptrace.
7820
f09db380
KR
78212020-03-19 Kamil Rytarowski <n54@gmx.com>
7822 * inf-ptrace.h: Disable get_ptrace_pid on NetBSD.
7823 * inf-ptrace.c: Likewise.
7824 * (gdb_ptrace): Add.
7825 * (inf_ptrace_target::resume): Update.
7826 * (inf_ptrace_target::xfer_partial): Likewise.
7827 * (inf_ptrace_peek_poke): Change argument `pid' to `ptid'.
7828 * (inf_ptrace_peek_poke): Update.
7829
fcc7376e
KR
78302020-03-19 Kamil Rytarowski <n54@gmx.com>
7831
7832 * x86-bsd-nat.c (gdb_ptrace): New.
7833 * (x86bsd_dr_set): Add new argument `ptid'.
7834 * (x86bsd_dr_get, x86bsd_dr_set, x86bsd_dr_set_control,
7835 x86bsd_dr_set_addr): Update.
7836
cada5fc9
AB
78372020-03-19 Andrew Burgess <andrew.burgess@embecosm.com>
7838
7839 * remote.c (remote_target::process_stop_reply): Handle events for
7840 all threads differently.
7841
19a2740f
AB
78422020-03-19 Andrew Burgess <andrew.burgess@embecosm.com>
7843
7844 * completer.c (completion_tracker::remove_completion): Define new
7845 function.
7846 * completer.h (completion_tracker::remove_completion): Declare new
7847 function.
7848 * symtab.c (completion_list_add_symbol): Remove aliasing msymbols
7849 when adding a C++ function symbol.
7850
724fd9ba
AB
78512020-03-19 Andrew Burgess <andrew.burgess@embecosm.com>
7852
7853 * completer.c (completion_tracker::completion_hash_entry): Define
7854 new class.
7855 (advance_to_filename_complete_word_point): Call
7856 recompute_lowest_common_denominator.
7857 (completion_tracker::completion_tracker): Call discard_completions
7858 to setup the hash table.
7859 (completion_tracker::discard_completions): Allow for being called
7860 from the constructor, pass new equal function, and element deleter
7861 when constructing the hash table. Initialise new class member
7862 variables.
7863 (completion_tracker::maybe_add_completion): Remove use of
7864 m_entries_vec, and store more information into m_entries_hash.
7865 (completion_tracker::recompute_lcd_visitor): New function, most
7866 content taken from...
7867 (completion_tracker::recompute_lowest_common_denominator):
7868 ...here, this now just visits each item in the hash calling the
7869 above visitor.
7870 (completion_tracker::build_completion_result): Remove use of
7871 m_entries_vec, call recompute_lowest_common_denominator.
7872 * completer.h (completion_tracker::have_completions): Remove use
7873 of m_entries_vec.
7874 (completion_tracker::completion_hash_entry): Declare new class.
7875 (completion_tracker::recompute_lowest_common_denominator): Change
7876 function signature.
7877 (completion_tracker::recompute_lcd_visitor): Declare new function.
7878 (completion_tracker::m_entries_vec): Delete.
7879 (completion_tracker::m_entries_hash): Initialize to NULL.
7880 (completion_tracker::m_lowest_common_denominator_valid): New
7881 member variable.
7882 (completion_tracker::m_lowest_common_denominator_max_length): New
7883 member variable.
7884
5a82b8a1
KR
78852020-03-17 Kamil Rytarowski <n54@gmx.com>
7886
7887 * regformats/regdef.h: Put reg in gdb namespace.
7888
fb516a69
KR
78892020-03-17 Kamil Rytarowski <n54@gmx.com>
7890
7891 * i386-bsd-nat.c (gdb_ptrace): New.
7892 * (i386bsd_fetch_inferior_registers,
7893 i386bsd_store_inferior_registers) Switch from pid_t to ptid_t.
7894 * (i386bsd_fetch_inferior_registers,
7895 i386bsd_store_inferior_registers) Use gdb_ptrace.
7896
1c0aa1fb
KR
78972020-03-17 Kamil Rytarowski <n54@gmx.com>
7898
7899 * amd64-bsd-nat.c (gdb_ptrace): New.
7900 * (amd64bsd_fetch_inferior_registers,
7901 amd64bsd_store_inferior_registers) Switch from pid_t to ptid_t.
7902 * (amd64bsd_fetch_inferior_registers,
7903 amd64bsd_store_inferior_registers) Use gdb_ptrace.
7904
5ccd2fb7
KR
79052020-03-17 Kamil Rytarowski <n54@gmx.com>
7906
7907 * user-regs.c (user_reg::read): Rename to...
7908 (user_reg::xread): ...this.
7909 * (append_user_reg): Rename argument `read' to `xread'.
7910 * (user_reg_add_builtin): Likewise.
7911 * (user_reg_add): Likewise.
7912 * (value_of_user_reg): Likewise.
7913
2108a63a
KR
79142020-03-17 Kamil Rytarowski <n54@gmx.com>
7915
7916 * sparc-nat.c (gdb_ptrace): New.
7917 * sparc-nat.c (sparc_fetch_inferior_registers)
7918 (sparc_store_inferior_registers) Remove obsolete comment.
7919 * sparc-nat.c (sparc_fetch_inferior_registers)
7920 (sparc_store_inferior_registers) Switch from pid_t to ptid_t.
7921 * sparc-nat.c (sparc_fetch_inferior_registers)
7922 (sparc_store_inferior_registers) Use gdb_ptrace.
7923
a225c9a8
KR
79242020-03-17 Kamil Rytarowski <n54@gmx.com>
7925
7926 * sh-nbsd-nat.c (fetch_registers): New variable lwp and pass
7927 it to the ptrace call.
7928 * sh-nbsd-nat.c (store_registers): Likewise.
7929
98097623
KR
79302020-03-17 Kamil Rytarowski <n54@gmx.com>
7931
7932 * sh-nbsd-nat.c (sh_nbsd_nat_target): Inherit from
7933 nbsd_nat_target instead of inf_ptrace_target.
7934 * sh-nbsd-nat.c: Include "nbsd-nat.h", as we are now using
7935 nbsd_nat_target.
7936
9e38d619
KR
79372020-03-17 Kamil Rytarowski <n54@gmx.com>
7938
7939 * amd64-bsd-nat.c: Include amd64-bsd-nat.h".
7940
a2ecbe9f
KR
79412020-03-17 Kamil Rytarowski <n54@gmx.com>
7942
7943 * nbsd-nat.c: Include <sys/types.h>, <sys/ptrace.h> and
7944 <sys/sysctl.h>.
7945 * nbsd-nat.c (nbsd_nat_target::pid_to_exec_file): Rewrite.
7946
58990295
TV
79472020-03-17 Tom de Vries <tdevries@suse.de>
7948
7949 PR gdb/23710
7950 * dwarf2/read.h (struct dwarf2_per_cu_data): Add unit_type and lang
7951 fields.
7952 * dwarf2/read.c (process_psymtab_comp_unit): Initialize unit_type and lang
7953 fields.
7954 (process_imported_unit_die): Skip import of c++ CUs.
7955
771dd3a8
TT
79562020-03-16 Tom Tromey <tom@tromey.com>
7957
7958 * p-valprint.c (pascal_object_print_value): Initialize
7959 base_value.
7960
817a7585
AK
79612020-03-16 Anton Kolesov <anton.kolesov@synopsys.com>
7962 Shahab Vahedi <shahab@synopsys.com>
7963
7964 * Makefile.in: Add arch/arc.o
7965 * configure.tgt: Likewise.
7966 * arc-tdep.c (arc_tdesc_init): Use arc_read_description.
7967 (_initialize_arc_tdep): Don't initialize old target descriptions.
aac66a4c 7968 (arc_read_description): New function to cache target descriptions.
817a7585
AK
7969 * arc-tdep.h (arc_read_description): Add proto type.
7970 * arch/arc.c: New file.
7971 * arch/arc.h: Likewise.
7972 * features/Makefile: Replace old target descriptions with new.
7973 * features/arc-arcompact.c: Remove.
7974 * features/arc-arcompact.xml: Likewise.
7975 * features/arc-v2.c: Likewise
7976 * features/arc-v2.xml: Likewise
7977 * features/arc/aux-arcompact.xml: New file.
7978 * features/arc/aux-v2.xml: Likewise.
7979 * features/arc/core-arcompact.xml: Likewise.
7980 * features/arc/core-v2.xml: Likewise.
7981 * features/arc/aux-arcompact.c: Generate.
7982 * features/arc/aux-v2.c: Likewise.
7983 * features/arc/core-arcompact.c: Likewise.
7984 * features/arc/core-v2.c: Likewise.
7985 * target-descriptions (maint_print_c_tdesc_cmd): Support ARC features.
7986
67430cd0
TT
79872020-03-16 Tom Tromey <tromey@adacore.com>
7988
7989 PR gdb/25663:
7990 * dwarf2/read.c (dwarf2_name): Strip leading namespaces after
7991 putting value into bcache.
7992
30efb6c7
SM
79932020-03-16 Simon Marchi <simon.marchi@efficios.com>
7994
7995 PR gdb/21500
7996 * amd64-windows-tdep.c (amd64_windows_init_abi): Rename
7997 to...
7998 (amd64_windows_init_abi_common): ... this. Don't set size of
7999 long type.
8000 (amd64_windows_init_abi): New function.
8001 (amd64_cygwin_init_abi): New function.
8002 (_initialize_amd64_windows_tdep): Use amd64_cygwin_init_abi for
8003 the Cygwin OS ABI.
8004 * i386-windows-tdep.c (_initialize_i386_windows_tdep): Clarify
8005 comment.
8006
8db52437
SM
80072020-03-16 Simon Marchi <simon.marchi@efficios.com>
8008
8009 * windows-tdep.h (is_linked_with_cygwin_dll): New declaration.
8010 * windows-tdep.c (CYGWIN_DLL_NAME): New.
8011 (pe_import_directory_entry): New struct type.
8012 (is_linked_with_cygwin_dll): New function.
8013 * amd64-windows-tdep.c (amd64_windows_osabi_sniffer): Select
8014 GDB_OSABI_CYGWIN if the BFD is linked with the Cygwin DLL.
8015 * i386-windows-tdep.c (i386_windows_osabi_sniffer): Likewise.
8016
5982a56a
SM
80172020-03-16 Simon Marchi <simon.marchi@efficios.com>
8018
8019 * i386-windows-tdep.c: Mass-rename "cygwin" to "windows", except
8020 i386_cygwin_core_osabi_sniffer.
8021
7a1998df
SM
80222020-03-16 Simon Marchi <simon.marchi@efficios.com>
8023
8024 * i386-cygwin-tdep.c: Rename to...
8025 * i386-windows-tdep.c: ... this.
8026 * Makefile.in (ALL_TARGET_OBS): Rename i386-cygwin-tdep.c to
8027 i386-windows-tdep.c.
8028 * configure.tgt: Likewise.
8029
053205cc
SM
80302020-03-16 Simon Marchi <simon.marchi@efficios.com>
8031
8032 * osabi.h (enum gdb_osabi): Add GDB_OSABI_WINDOWS.
8033 * osabi.c (gdb_osabi_names): Add "Windows".
8034 * i386-cygwin-tdep.c (i386_cygwin_osabi_sniffer): Return
8035 GDB_OSABI_WINDOWS when the binary's target is "pei-i386".
8036 (i386_cygwin_core_osabi_sniffer): New function, extracted from
8037 i386_cygwin_osabi_sniffer.
8038 (_initialize_i386_cygwin_tdep): Register OS ABI
8039 GDB_OSABI_WINDOWS for i386.
8040 * amd64-windows-tdep.c (amd64_windows_osabi_sniffer): Return
8041 GDB_OSABI_WINDOWS when the binary's target is "pei-x86-64".
8042 (_initialize_amd64_windows_tdep): Register OS ABI GDB_OSABI_WINDOWS
8043 for x86-64.
8044 * configure.tgt: Use GDB_OSABI_WINDOWS as the default OS ABI
8045 when the target matches '*-*-mingw*'.
8046
fe4b2ee6
SM
80472020-03-16 Simon Marchi <simon.marchi@efficios.com>
8048
8049 * defs.h (enum gdb_osabi): Move to...
8050 * osabi.h (enum gdb_osabi): ... here.
8051 * gdbarch.sh: Include osabi.h in gdbarch.h.
8052 * gdbarch.h: Re-generate.
8053
cb9b645d
SM
80542020-03-16 Simon Marchi <simon.marchi@efficios.com>
8055
8056 * amd64-windows-tdep.c (amd64_windows_osabi_sniffer): New
8057 function.
8058 (_initialize_amd64_windows_tdep): Register osabi sniffer.
8059
3293bbaf
TT
80602020-03-14 Tom Tromey <tom@tromey.com>
8061
8062 * c-typeprint.c (cp_type_print_method_args): Print "__restrict__"
8063 for C++.
8064 (c_type_print_modifier): Likewise. Add "language" parameter.
8065 (c_type_print_varspec_prefix, c_type_print_base_struct_union)
8066 (c_type_print_base_1): Update.
8067 * type-stack.h (enum type_pieces) <tp_atomic, tp_restrict>: New
8068 constants.
8069 * type-stack.c (type_stack::insert): Handle tp_atomic and
8070 tp_restrict.
8071 (type_stack::follow_type_instance_flags): Likewise.
8072 (type_stack::follow_types): Likewise. Merge type-following code.
8073 * c-exp.y (RESTRICT, ATOMIC): New tokens.
8074 (space_identifier, cv_with_space_id)
8075 (const_or_volatile_or_space_identifier_noopt)
8076 (const_or_volatile_or_space_identifier): Remove.
8077 (single_qualifier, qualifier_seq_noopt, qualifier_seq): New
8078 rules.
8079 (ptr_operator, typebase): Update.
8080 (enum token_flag) <FLAG_C>: New constant.
8081 (ident_tokens): Add "restrict", "__restrict__", "__restrict", and
8082 "_Atomic".
8083 (lex_one_token): Handle FLAG_C.
8084
154151a6
KR
80852020-03-14 Kamil Rytarowski <n54@gmx.com>
8086
8087 * m68k-bsd-nat.c (fetch_registers): New variable lwp and pass
8088 it to the ptrace call.
8089 * m68k-bsd-nat.c (store_registers): Likewise.
8090
bc107784
KR
80912020-03-14 Kamil Rytarowski <n54@gmx.com>
8092
8093 * m68k-bsd-nat.c (m68kbsd_supply_gregset): Change type of regs to
8094 gdb_byte *.
8095 * m68k-bsd-nat.c (m68kbsd_supply_fpregset): Likewise.
8096 * m68k-bsd-nat.c (m68kbsd_collect_gregset): Likewise.
8097 * m68k-bsd-nat.c (m68kbsd_supply_pcb): Cast &tmp to gdb_byte *.
8098
01a80117
KR
80992020-03-14 Kamil Rytarowski <n54@gmx.com>
8100
8101 * m68k-bsd-nat.c (m68k_bsd_nat_target): Inherit from
8102 nbsd_nat_target instead of inf_ptrace_target.
8103 * m68k-bsd-nat.c: Include "nbsd-nat.h", as we are now using
8104 nbsd_nat_target.
8105
f90280ca
KR
81062020-03-14 Kamil Rytarowski <n54@gmx.com>
8107
8108 * m68k-bsd-nat.c: Define _KERNTYPES to get the declaration of
8109 register_t.
8110
6def66f1
KR
81112020-03-14 Kamil Rytarowski <n54@gmx.com>
8112
8113 * alpha-bsd-nat.c (fetch_registers): New variable lwp and pass
8114 it to the ptrace call.
8115 * alpha-bsd-nat.c (store_registers): Likewise.
8116
66eaca97
KR
81172020-03-14 Kamil Rytarowski <n54@gmx.com>
8118
8119 * alpha-bsd-nat.c: Remove <sys/procfs.h> and "gregset.h" from
8120 includes.
8121 * alpha-bsd-nat.c (gregset_t, fpregset_t): Remove.
8122 * alpha-bsd-nat.c (supply_gregset, fill_gregset, supply_fpregset,
8123 fill_fpregset): Likewise.
8124
4fed520b
KR
81252020-03-14 Kamil Rytarowski <n54@gmx.com>
8126
8127 * alpha-bsd-nat.c (alpha_netbsd_nat_target): Inherit from
8128 nbsd_nat_target instead of inf_ptrace_target.
8129 * alpha-bsd-nat.c: Include "nbsd-nat.h", as we are now using
8130 nbsd_nat_target.
8131
2190cf06
KR
81322020-03-14 Kamil Rytarowski <n54@gmx.com>
8133
8134 * alpha-bsd-nat.c: Define _KERNTYPES to get the declaration of
8135 register_t.
8136
75c56d3d
KR
81372020-03-14 Kamil Rytarowski <n54@gmx.com>
8138
8139 * arm-nbsd-nat.c (fetch_register): New variable lwp and pass
8140 it to the ptrace call.
8141 * arm-nbsd-nat.c (fetch_fp_register): Likewise.
8142 * arm-nbsd-nat.c (fetch_fp_regs): Likewise.
8143 * arm-nbsd-nat.c (store_register): Likewise.
8144 * arm-nbsd-nat.c (store_regs): Likewise.
8145 * arm-nbsd-nat.c (store_fp_register): Likewise.
8146 * arm-nbsd-nat.c (store_fp_regs): Likewise.
8147
6018d381
KR
81482020-03-14 Kamil Rytarowski <n54@gmx.com>
8149
8150 * arm-nbsd-nat.c (arm_netbsd_nat_target): Inherit from
8151 nbsd_nat_target instead of inf_ptrace_target.
8152 * arm-nbsd-nat.c: Include "nbsd-nat.h", as we are now using
8153 nbsd_nat_target.
8154
013f99f0
KR
81552020-03-14 Kamil Rytarowski <n54@gmx.com>
8156
8157 * x86-bsd-nat.c (x86bsd_dr_get): New variable lwp and pass
8158 it to the ptrace call.
8159 * x86-bsd-nat.c (x86bsd_dr_set): Likewise.
8160
12753073
KR
81612020-03-14 Kamil Rytarowski <n54@gmx.com>
8162
6227b330
KR
8163 * vax-bsd-nat.c (vaxbsd_supply_gregset): New variable lwp and pass
8164 it to the ptrace call.
8165 * vax-bsd-nat.c (vaxbsd_collect_gregset): Likewise.
8166
81672020-03-14 Kamil Rytarowski <n54@gmx.com>
8168
8169 * vax-bsd-nat.c (vaxbsd_supply_gregset): Cast gregs to const
8170 gdb_byte *.
12753073
KR
8171 * vax-bsd-nat.c (vaxbsd_collect_gregset): Cast gregs to void *.
8172
d5be5fa4
KR
81732020-03-14 Kamil Rytarowski <n54@gmx.com>
8174
8175 * vax-bsd-nat.c (vax_bsd_nat_target): Inherit from nbsd_nat_target
8176 instead of inf_ptrace_target.
8177 * vax-bsd-nat.c: Include "nbsd-nat.h", as we are now using
8178 nbsd_nat_target.
8179
8110f842
KR
81802020-03-14 Kamil Rytarowski <n54@gmx.com>
8181
8182 * mips-nbsd-nat.c: Define _KERNTYPES to get the declaration of
8183 register_t.
8184
52feded7
KR
81852020-03-14 Kamil Rytarowski <n54@gmx.com>
8186
8187 * ppc-nbsd-nat.c: Define _KERNTYPES to get the declaration of
8188 register_t.
8189
25567eee
KR
81902020-03-14 Kamil Rytarowski <n54@gmx.com>
8191
8192 * vax-bsd-nat.c: Define _KERNTYPES to get the declaration of
8193 register_t.
8194
426a9c18
TT
81952020-03-13 Tom Tromey <tom@tromey.com>
8196
8197 * value.h (val_print): Don't declare.
8198 * valprint.h (val_print_array_elements)
8199 (val_print_scalar_formatted, generic_val_print): Don't declare.
8200 * valprint.c (generic_val_print_array): Take a struct value.
8201 (generic_val_print_ptr, generic_val_print_memberptr)
8202 (generic_val_print_bool, generic_val_print_int)
8203 (generic_val_print_char, generic_val_print_complex)
8204 (generic_val_print): Remove.
8205 (generic_value_print): Update.
8206 (do_val_print): Remove unused parameters. Don't call
8207 la_val_print.
8208 (val_print): Remove.
8209 (common_val_print): Update. Don't call value_check_printable.
8210 (val_print_scalar_formatted, val_print_array_elements): Remove.
8211 * rust-lang.c (rust_val_print): Remove.
8212 (rust_language_defn): Update.
8213 * p-valprint.c (pascal_val_print): Remove.
8214 (pascal_value_print_inner): Update.
8215 (pascal_object_print_val_fields, pascal_object_print_val):
8216 Remove.
8217 (pascal_object_print_static_field): Update.
8218 * p-lang.h (pascal_val_print): Don't declare.
8219 * p-lang.c (pascal_language_defn): Update.
8220 * opencl-lang.c (opencl_language_defn): Update.
8221 * objc-lang.c (objc_language_defn): Update.
8222 * m2-valprint.c (m2_print_unbounded_array, m2_val_print): Remove.
8223 * m2-lang.h (m2_val_print): Don't declare.
8224 * m2-lang.c (m2_language_defn): Update.
8225 * language.h (struct language_defn) <la_val_print>: Remove.
8226 * language.c (unk_lang_value_print_inner): Rename. Change
8227 argument types.
8228 (unknown_language_defn, auto_language_defn): Update.
8229 * go-valprint.c (go_val_print): Remove.
8230 * go-lang.h (go_val_print): Don't declare.
8231 * go-lang.c (go_language_defn): Update.
8232 * f-valprint.c (f_val_print): Remove.
8233 * f-lang.h (f_value_print): Don't declare.
8234 * f-lang.c (f_language_defn): Update.
8235 * d-valprint.c (d_val_print): Remove.
8236 * d-lang.h (d_value_print): Don't declare.
8237 * d-lang.c (d_language_defn): Update.
8238 * cp-valprint.c (cp_print_value_fields)
8239 (cp_print_value_fields_rtti, cp_print_value): Remove.
8240 (cp_print_static_field): Update.
8241 * c-valprint.c (c_val_print_array, c_val_print_ptr)
8242 (c_val_print_struct, c_val_print_union, c_val_print_int)
8243 (c_val_print_memberptr, c_val_print): Remove.
8244 * c-lang.h (c_val_print_array, cp_print_value_fields)
8245 (cp_print_value_fields_rtti): Don't declare.
8246 * c-lang.c (c_language_defn, cplus_language_defn)
8247 (asm_language_defn, minimal_language_defn): Update.
8248 * ada-valprint.c (ada_val_print_ptr, ada_val_print_num): Remove.
8249 (ada_val_print_enum): Take a struct value.
8250 (ada_val_print_flt, ada_val_print_array, ada_val_print_1)
8251 (ada_val_print): Remove.
8252 (ada_value_print_1): Update.
8253 (printable_val_type): Remove.
8254 * ada-lang.h (ada_val_print): Don't declare.
8255 * ada-lang.c (ada_language_defn): Update.
8256
42331a1e
TT
82572020-03-13 Tom Tromey <tom@tromey.com>
8258
8259 * valprint.c (do_val_print): Update.
8260 * python/python-internal.h (gdbpy_apply_val_pretty_printer): Take
8261 a struct value.
8262 (value_to_value_object_no_release): Declare.
8263 * python/py-value.c (value_to_value_object_no_release): New
8264 function.
8265 * python/py-prettyprint.c (gdbpy_apply_val_pretty_printer): Take a
8266 struct value.
8267 * guile/scm-value.c (vlscm_scm_from_value_no_release): New
8268 function.
8269 * guile/scm-pretty-print.c (gdbscm_apply_val_pretty_printer): Take
8270 a struct value.
8271 * guile/guile-internal.h (vlscm_scm_from_value_no_release):
8272 Declare.
8273 (gdbscm_apply_val_pretty_printer): Take a struct value.
8274 * extension.h (apply_ext_lang_val_pretty_printer): Take a struct
8275 value.
8276 * extension.c (apply_ext_lang_val_pretty_printer): Take a struct
8277 value.
8278 * extension-priv.h (struct extension_language_ops)
8279 <apply_val_pretty_printer>: Take a struct value.
8280 * cp-valprint.c (cp_print_value): Create a struct value.
8281 (cp_print_value): Update.
8282
3a916a97
TT
82832020-03-13 Tom Tromey <tom@tromey.com>
8284
8285 * ada-valprint.c (print_field_values): Call common_val_print.
8286
b59eac37
TT
82872020-03-13 Tom Tromey <tom@tromey.com>
8288
8289 * ada-valprint.c (val_print_packed_array_elements): Remove
8290 bitoffset and val parameters. Call common_val_print.
8291 (ada_val_print_string): Remove offset, address, and original_value
8292 parameters.
8293 (ada_val_print_array): Update.
8294 (ada_value_print_array): New function.
8295 (ada_value_print_1): Call it.
8296
03371129
TT
82972020-03-13 Tom Tromey <tom@tromey.com>
8298
8299 * ada-valprint.c (ada_value_print): Use common_val_print.
8300
2e088f8b
TT
83012020-03-13 Tom Tromey <tom@tromey.com>
8302
8303 * ada-valprint.c (ada_val_print_ref): Use common_val_print.
8304
39ef85a8
TT
83052020-03-13 Tom Tromey <tom@tromey.com>
8306
8307 * ada-valprint.c (ada_value_print_num): New function.
8308 (ada_value_print_1): Use it.
8309
b9fa6e07
TT
83102020-03-13 Tom Tromey <tom@tromey.com>
8311
8312 * ada-valprint.c (ada_value_print_1) <TYPE_CODE_FLT>: Rewrite.
8313
416595d6
TT
83142020-03-13 Tom Tromey <tom@tromey.com>
8315
8316 * ada-valprint.c (ada_value_print_ptr): New function.
8317 (ada_value_print_1): Use it.
8318
5b5e15ec
TT
83192020-03-13 Tom Tromey <tom@tromey.com>
8320
8321 * ada-valprint.c (ada_val_print_gnat_array): Take a struct value;
8322 call common_val_print.
8323 (ada_val_print_1): Update.
8324 (ada_value_print_1): New function.
8325 (ada_value_print_inner): Rewrite.
8326
fbf54e75
TT
83272020-03-13 Tom Tromey <tom@tromey.com>
8328
8329 * cp-valprint.c (cp_print_value_fields): Update.
8330 (cp_print_value): New function.
8331
64b653ca
TT
83322020-03-13 Tom Tromey <tom@tromey.com>
8333
8334 * m2-valprint.c (m2_value_print_inner): Use
8335 cp_print_value_fields.
8336 * cp-valprint.c (cp_print_value_fields): New function.
8337 * c-valprint.c (c_value_print_struct): New function.
8338 (c_value_print_inner): Use c_value_print_struct.
8339 * c-lang.h (cp_print_value_fields): Declare.
8340
6999f067
TT
83412020-03-13 Tom Tromey <tom@tromey.com>
8342
8343 * c-valprint.c (c_value_print_array): New function.
8344 (c_value_print_inner): Use it.
8345
ce80b8bd
TT
83462020-03-13 Tom Tromey <tom@tromey.com>
8347
8348 * c-valprint.c (c_value_print_memberptr): New function.
8349 (c_value_print_inner): Use it.
8350
2faac269
TT
83512020-03-13 Tom Tromey <tom@tromey.com>
8352
8353 * c-valprint.c (c_value_print_int): New function.
8354 (c_value_print_inner): Use it.
8355
da3e2c29
TT
83562020-03-13 Tom Tromey <tom@tromey.com>
8357
8358 * c-valprint.c (c_value_print_ptr): New function.
8359 (c_value_print_inner): Use it.
8360
50836231
TT
83612020-03-13 Tom Tromey <tom@tromey.com>
8362
8363 * c-valprint.c (c_value_print_inner): Rewrite.
8364
4f412b6e
TT
83652020-03-13 Tom Tromey <tom@tromey.com>
8366
8367 * valprint.c (generic_value_print_complex): New function.
8368 (generic_value_print): Use it.
8369
f5354008
TT
83702020-03-13 Tom Tromey <tom@tromey.com>
8371
8372 * valprint.c (generic_val_print_float): Don't call
8373 val_print_scalar_formatted.
8374 (generic_val_print, generic_value_print): Update.
8375
3eec3b05
TT
83762020-03-13 Tom Tromey <tom@tromey.com>
8377
8378 * valprint.c (generic_value_print_char): New function
8379 (generic_value_print): Use it.
8380
fdddfccb
TT
83812020-03-13 Tom Tromey <tom@tromey.com>
8382
8383 * valprint.c (generic_value_print_int): New function.
8384 (generic_value_print): Use it.
8385
6dde7521
TT
83862020-03-13 Tom Tromey <tom@tromey.com>
8387
8388 * valprint.c (generic_value_print_bool): New function.
8389 (generic_value_print): Use it.
8390
4112d2e6
TT
83912020-03-13 Tom Tromey <tom@tromey.com>
8392
8393 * valprint.c (generic_val_print_func): Simplify.
8394 (generic_val_print, generic_value_print): Update.
8395
65786af6
TT
83962020-03-13 Tom Tromey <tom@tromey.com>
8397
8398 * valprint.c (generic_val_print_flags): Remove.
8399 (generic_val_print, generic_value_print): Update.
8400 (val_print_type_code_flags): Add original_value parameter.
8401
40f3ce18
TT
84022020-03-13 Tom Tromey <tom@tromey.com>
8403
8404 * valprint.c (generic_val_print): Update.
8405 (generic_value_print): Update.
8406 * valprint.c (generic_val_print_enum): Don't call
8407 val_print_scalar_formatted.
8408
2a5b130b
TT
84092020-03-13 Tom Tromey <tom@tromey.com>
8410
8411 * valprint.c (generic_value_print): Call generic_value_print_ptr.
8412 * valprint.c (generic_value_print_ptr): New function.
8413
abc66ce9
TT
84142020-03-13 Tom Tromey <tom@tromey.com>
8415
8416 * valprint.c (generic_value_print): Rewrite.
8417
07a32858
TT
84182020-03-13 Tom Tromey <tom@tromey.com>
8419
8420 * p-valprint.c (pascal_object_print_value_fields)
8421 (pascal_object_print_value): New functions.
8422
64d64d3a
TT
84232020-03-13 Tom Tromey <tom@tromey.com>
8424
8425 * p-valprint.c (pascal_value_print_inner): Rewrite.
8426
6a95a1f5
TT
84272020-03-13 Tom Tromey <tom@tromey.com>
8428
8429 * f-valprint.c (f_value_print_innner): Rewrite.
8430
59fcdac6
TT
84312020-03-13 Tom Tromey <tom@tromey.com>
8432
8433 * m2-valprint.c (m2_print_unbounded_array): New overload.
8434 (m2_print_unbounded_array): Update.
8435 (m2_print_array_contents): Take a struct value.
8436 (m2_value_print_inner): Rewrite.
8437
d133c3e1
TT
84382020-03-13 Tom Tromey <tom@tromey.com>
8439
8440 * d-valprint.c (dynamic_array_type): Call d_value_print_inner.
8441 (d_value_print_inner): New function.
8442 * d-lang.h (d_value_print_inner): Declare.
8443 * d-lang.c (d_language_defn): Use d_value_print_inner.
8444
23b0f06b
TT
84452020-03-13 Tom Tromey <tom@tromey.com>
8446
8447 * go-valprint.c (go_value_print_inner): New function.
8448 * go-lang.h (go_value_print_inner): Declare.
8449 * go-lang.c (go_language_defn): Use go_value_print_inner.
8450
5f56f7cb
TT
84512020-03-13 Tom Tromey <tom@tromey.com>
8452
8453 * rust-lang.c (val_print_struct, rust_print_enum): Use the value
8454 API.
8455 (rust_val_print): Rewrite.
8456 (rust_value_print_inner): New function, from rust_val_print.
8457 (rust_language_defn): Use rust_value_print_inner.
8458
26792ee0
TT
84592020-03-13 Tom Tromey <tom@tromey.com>
8460
8461 * ada-valprint.c (ada_value_print_inner): New function.
8462 * ada-lang.h (ada_value_print_inner): Declare.
8463 * ada-lang.c (ada_language_defn): Use ada_value_print_inner.
8464
24051bbe
TT
84652020-03-13 Tom Tromey <tom@tromey.com>
8466
8467 * f-valprint.c (f_value_print_innner): New function.
8468 * f-lang.h (f_value_print_innner): Declare.
8469 * f-lang.c (f_language_defn): Use f_value_print_innner.
8470
c0941be6
TT
84712020-03-13 Tom Tromey <tom@tromey.com>
8472
8473 * p-valprint.c (pascal_value_print_inner): New function.
8474 * p-lang.h (pascal_value_print_inner): Declare.
8475 * p-lang.c (pascal_language_defn): Use pascal_value_print_inner.
8476
62c4663d
TT
84772020-03-13 Tom Tromey <tom@tromey.com>
8478
8479 * m2-valprint.c (m2_value_print_inner): New function.
8480 * m2-lang.h (m2_value_print_inner): Declare.
8481 * m2-lang.c (m2_language_defn): Use m2_value_print_inner.
8482
62182190
TT
84832020-03-13 Tom Tromey <tom@tromey.com>
8484
8485 * opencl-lang.c (opencl_language_defn): Use c_value_print_inner.
8486 * objc-lang.c (objc_language_defn): Use c_value_print_inner.
8487 * c-valprint.c (c_value_print_inner): New function.
8488 * c-lang.h (c_value_print_inner): Declare.
8489 * c-lang.c (c_language_defn, cplus_language_defn)
8490 (asm_language_defn, minimal_language_defn): Use
8491 c_value_print_inner.
8492
1e592a8a
TT
84932020-03-13 Tom Tromey <tom@tromey.com>
8494
8495 * p-valprint.c (pascal_object_print_value_fields): Now static.
8496 * p-lang.h (pascal_object_print_value_fields): Don't declare.
8497
7fe471e9
TT
84982020-03-13 Tom Tromey <tom@tromey.com>
8499
8500 * c-valprint.c (c_val_print_array): Simplify.
8501
d121c6ce
TT
85022020-03-13 Tom Tromey <tom@tromey.com>
8503
8504 * valprint.c (value_print_array_elements): New function.
8505 * valprint.h (value_print_array_elements): Declare.
8506
4dba70ee
TT
85072020-03-13 Tom Tromey <tom@tromey.com>
8508
8509 * printcmd.c (print_formatted): Use value_print_scalar_formatted.
8510 * mips-tdep.c (mips_print_register): Use
8511 value_print_scalar_formatted.
8512
4f9ae810
TT
85132020-03-13 Tom Tromey <tom@tromey.com>
8514
8515 * valprint.h (value_print_scalar_formatted): Declare.
8516 * valprint.c (value_print_scalar_formatted): New function.
8517
156bfec9
TT
85182020-03-13 Tom Tromey <tom@tromey.com>
8519
8520 * valprint.h (generic_value_print): Declare.
8521 * valprint.c (generic_value_print): New function.
8522
2b4e573d
TT
85232020-03-13 Tom Tromey <tom@tromey.com>
8524
8525 * valprint.c (do_val_print): Call la_value_print_inner, if
8526 available.
8527 * rust-lang.c (rust_language_defn): Update.
8528 * p-lang.c (pascal_language_defn): Update.
8529 * opencl-lang.c (opencl_language_defn): Update.
8530 * objc-lang.c (objc_language_defn): Update.
8531 * m2-lang.c (m2_language_defn): Update.
8532 * language.h (struct language_defn) <la_value_print_inner>: New
8533 member.
8534 * language.c (unknown_language_defn, auto_language_defn): Update.
8535 * go-lang.c (go_language_defn): Update.
8536 * f-lang.c (f_language_defn): Update.
8537 * d-lang.c (d_language_defn): Update.
8538 * c-lang.c (c_language_defn, cplus_language_defn)
8539 (asm_language_defn, minimal_language_defn): Update.
8540 * ada-lang.c (ada_language_defn): Update.
8541
a1f6a07c
TT
85422020-03-13 Tom Tromey <tom@tromey.com>
8543
8544 * c-valprint.c (c_value_print): Use common_val_print.
8545
410cf315
TT
85462020-03-13 Tom Tromey <tom@tromey.com>
8547
8548 * cp-valprint.c (cp_print_static_field): Use common_val_print.
8549
72a45c93
TT
85502020-03-13 Tom Tromey <tom@tromey.com>
8551
8552 * f-valprint.c (f77_print_array_1, f_val_print): Use
8553 common_val_print.
8554
040f66bd
TT
85552020-03-13 Tom Tromey <tom@tromey.com>
8556
8557 * riscv-tdep.c (riscv_print_one_register_info): Use
8558 common_val_print.
8559
a6e05a6c
TT
85602020-03-13 Tom Tromey <tom@tromey.com>
8561
8562 * mi/mi-main.c (output_register): Use common_val_print.
8563
3444c526
TT
85642020-03-13 Tom Tromey <tom@tromey.com>
8565
8566 * infcmd.c (default_print_one_register_info): Use
8567 common_val_print.
8568
c2a44efe
TT
85692020-03-13 Tom Tromey <tom@tromey.com>
8570
8571 * valprint.h (common_val_print_checked): Declare.
8572 * valprint.c (common_val_print_checked): New function.
8573 * stack.c (print_frame_arg): Use common_val_print_checked.
8574
b0c26e99
TT
85752020-03-13 Tom Tromey <tom@tromey.com>
8576
8577 * valprint.c (do_val_print): New function, from val_print.
8578 (val_print): Use do_val_print.
8579 (common_val_print): Use do_val_print.
8580
ce3acbe9
TT
85812020-03-13 Tom Tromey <tom@tromey.com>
8582
8583 * valprint.c (value_print): Use scoped_value_mark.
8584
96c7f873
TV
85852020-03-13 Tom de Vries <tdevries@suse.de>
8586
8587 PR symtab/25646
8588 * psymtab.c (partial_symtab::partial_symtab): Don't set
8589 globals_offset and statics_offset. Push element onto
8590 current_global_psymbols and current_static_psymbols stacks.
8591 (concat): New function.
8592 (end_psymtab_common): Set globals_offset and statics_offset. Pop
8593 element from current_global_psymbols and current_static_psymbols
8594 stacks. Concat popped elements to global_psymbols and
8595 static_symbols.
8596 (add_psymbol_to_list): Use current_global_psymbols and
8597 current_static_psymbols stacks.
8598 * psymtab.h (class psymtab_storage): Add current_global_psymbols and
8599 current_static_psymbols fields.
8600
6ba0a321
CB
86012020-03-12 Christian Biesinger <cbiesinger@google.com>
8602
8603 * corelow.c (sniff_core_bfd): Remove.
8604 (class core_target) <m_core_vec>: Remove.
8605 (core_target::core_target): Update.
8606 (core_file_fns): Remove.
8607 (deprecated_add_core_fns): Remove.
8608 (default_core_sniffer): Remove.
8609 (sniff_core_bfd): Remove.
8610 (default_check_format): Remove.
8611 (gdb_check_format): Remove.
8612 (core_target_open): Update.
8613 (core_target::get_core_register_section): Update.
8614 (get_core_registers_cb): Update.
8615 (core_target::fetch_registers): Update.
8616 * gdbcore.h (struct core_fns): Remove.
8617 (deprecated_add_core_fns): Remove.
8618 (default_core_sniffer): Remove.
8619 (default_check_format): Remove.
8620
227031b2
TT
86212020-03-12 Tom Tromey <tom@tromey.com>
8622
8623 * arm-tdep.c (struct arm_mapping_symbol) <value>: Now a
8624 CORE_ADDR.
8625 (struct arm_exidx_entry) <addr>: Now a CORE_ADDR.
8626
53807e9f
TT
86272020-03-12 Tom Tromey <tom@tromey.com>
8628
8629 * remote.c (remote_target::download_tracepoint)
8630 (remote_target::enable_tracepoint)
8631 (remote_target::disable_tracepoint): Use phex, not sprintf_vma.
8632 * breakpoint.c (print_recreate_masked_watchpoint): Use phex, not
8633 sprintf_vma.
8634
64f25102
TT
86352020-03-12 Tom Tromey <tom@tromey.com>
8636
8637 * symfile-mem.c: Update CORE_ADDR size assert.
8638
272cd5a3
SM
86392020-03-12 Simon Marchi <simon.marchi@efficios.com>
8640
8641 * selftest.m4: Move to gdbsupport/.
8642 * acinclude.m4: Update path to selftest.m4.
8643
74cd3f9d
SM
86442020-03-12 Simon Marchi <simon.marchi@efficios.com>
8645
8646 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Rename to...
8647 (SELFTESTS_SRCS): ... this. Add disasm-selftests.c,
8648 gdbarch-selfselftests.c and selftest-arch.c.
8649 (SUBDIR_UNITTESTS_OBS): Rename to...
8650 (SELFTESTS_OBS): ... this.
8651 (COMMON_SFILES): Remove disasm-selftests.c and
8652 gdbarch-selftests.c.
8653 * configure.ac: Don't add selftest-arch.{c,o} to
8654 CONFIG_{SRCS,OBS}.
8655 * disasm-selftests.c, gdbarch-selftests.c: Remove GDB_SELF_TEST
8656 preprocessor conditions.
8657
db6878ac
SM
86582020-03-12 Simon Marchi <simon.marchi@efficios.com>
8659
8660 * configure.ac: Don't source bfd/development.sh.
8661 * selftest.m4: Modify comment.
8662 * configure: Re-generate.
8663
4d696a5c
SM
86642020-03-12 Simon Marchi <simon.marchi@efficios.com>
8665
8666 * selftest.m4 (GDB_AC_SELFTEST): Error out if $development is
8667 not "true" or "false".
8668 * configure: Re-generate.
8669
8dd8e1c7
CB
86702020-03-12 Christian Biesinger <cbiesinger@google.com>
8671
8672 * Makefile.in (HFILES_NO_SRCDIR): Add new arm-nbsd-tdep.h file.
8673 * arm-nbsd-nat.c (arm_supply_gregset): Moved to arm-nbsd-tdep and
8674 renamed to arm_nbsd_supply_gregset.
8675 (fetch_register): Update to call arm_nbsd_supply_gregset.
8676 (fetch_regs): Remove in favor of fetch_register with a -1 regno.
8677 (arm_netbsd_nat_target::fetch_registers): Update.
8678 (fetch_elfcore_registers): Removed.
8679 (_initialize_arm_netbsd_nat): Removed call to deprecated_add_core_fns.
8680 * arm-nbsd-tdep.c (struct arm_nbsd_reg): New struct.
8681 (arm_nbsd_supply_gregset): Moved from arm-nbsd-nat.c and updated to
8682 not require NetBSD system headers.
8683 (arm_nbsd_regset): New struct.
8684 (arm_nbsd_iterate_over_regset_sections): New function.
8685 (arm_netbsd_init_abi_common): Updated to call
8686 set_gdbarch_iterate_over_regset_sections.
8687 * arm-nbsd-tdep.h: New file.
8688
dd69bf7a
KB
86892020-03-11 Kevin Buettner <kevinb@redhat.com>
8690
8691 * symtab.c (find_pc_sect_line): Add check which prevents infinite
8692 recursion.
8693
a0761e34
SM
86942020-03-11 Simon Marchi <simon.marchi@efficios.com>
8695
8696 * configure: Re-generate.
8697
e7a82140
TT
86982020-03-11 Tom Tromey <tromey@adacore.com>
8699
8700 * ada-typeprint.c (print_choices): Fix comment.
8701
dcc050c8
AB
87022020-03-11 Andrew Burgess <andrew.burgess@embecosm.com>
8703
8704 * buildsyms.c (buildsym_compunit::record_line): Avoid accessing
8705 previous item in the list, when the list has no items.
8706
1c33af77
TV
87072020-03-11 Tom de Vries <tdevries@suse.de>
8708
8709 * dwarf2/loc.c (dwarf2_evaluate_property): Handle NULL frame in
8710 PROP_LOCLIST handling code.
8711
8c95582d
AB
87122020-03-10 Andrew Burgess <andrew.burgess@embecosm.com>
8713
8714 * buildsym-legacy.c (record_line): Pass extra parameter to
8715 record_line.
8716 * buildsym.c (buildsym_compunit::record_line): Take an extra
8717 parameter, reduce duplication in the line table, and record the
8718 is_stmt flag in the line table.
8719 * buildsym.h (buildsym_compunit::record_line): Add extra
8720 parameter.
8721 * disasm.c (do_mixed_source_and_assembly_deprecated): Ignore
8722 non-statement lines.
8723 * dwarf2/read.c (dwarf_record_line_1): Add extra parameter, pass
8724 this to the symtab builder.
8725 (dwarf_finish_line): Pass extra parameter to dwarf_record_line_1.
8726 (lnp_state_machine::record_line): Pass a suitable is_stmt flag
8727 through to dwarf_record_line_1.
8728 * infrun.c (process_event_stop_test): When stepping, don't stop at
8729 a non-statement instruction, and only refresh the step info when
8730 we land in the middle of a line's range. Also add an extra
8731 comment.
8732 * jit.c (jit_symtab_line_mapping_add_impl): Initialise is_stmt
8733 field.
8734 * record-btrace.c (btrace_find_line_range): Only record lines
8735 marked as is-statement.
8736 * stack.c (frame_show_address): Show the frame address if we are
8737 in a non-statement sal.
8738 * symmisc.c (dump_symtab_1): Print the is_stmt flag.
8739 (maintenance_print_one_line_table): Print a header for the is_stmt
8740 column, and include is_stmt information in the output.
8741 * symtab.c (find_pc_sect_line): Find lines marked as statements in
8742 preference to non-statements.
8743 (find_pcs_for_symtab_line): Prefer is-statement entries.
8744 (find_line_common): Likewise.
8745 * symtab.h (struct linetable_entry): Add is_stmt field.
8746 (struct symtab_and_line): Likewise.
8747 * xcoffread.c (arrange_linetable): Initialise is_stmt field when
8748 arranging the line table.
8749
e4003a34
TV
87502020-03-07 Tom de Vries <tdevries@suse.de>
8751
8752 * dwarf2/read.c (read_typedef): Treat anonymous typedef as forwarder
8753 DIE.
8754
e8932576
TT
87552020-03-07 Tom Tromey <tom@tromey.com>
8756
8757 * valops.c (value_literal_complex): Remove obsolete comment.
8758 * gdbtypes.h (enum type_code) <TYPE_CODE_FLT>: Remove obsolete
8759 comment.
8760
29734269
SM
87612020-03-06 Simon Marchi <simon.marchi@polymtl.ca>
8762
8763 * infrun.h: Forward-declare thread_info.
8764 (set_step_info): Add thread_info parameter, add doc.
8765 * infrun.c (set_step_info): Add thread_info parameter, move doc
8766 to header.
8767 * infrun.c (process_event_stop_test): Pass thread to
8768 set_step_info call.
8769 * infcmd.c (set_step_frame): Add thread_info pointer, pass it to
8770 set_step_info.
8771 (prepare_one_step): Add thread_info parameter, pass it to
8772 set_step_frame and prepare_one_step (recursive) call.
8773 (step_1): Pass thread to prepare_one_step call.
8774 (step_command_fsm::should_stop): Pass thread to
8775 prepare_one_step.
8776 (until_next_fsm): Pass thread to set_step_frame call.
8777 (finish_command): Pass thread to set_step_info call.
8778
b7d64b29
HD
87792020-03-06 Hannes Domani <ssbssa@yahoo.de>
8780
8781 * windows-tdep.c (windows_solib_create_inferior_hook):
8782 Check if inferior is running.
8783
09f2921c
TV
87842020-03-06 Tom de Vries <tdevries@suse.de>
8785
8786 * NEWS: Fix "the the".
8787 * ctfread.c: Same.
8788
fd760e79
TV
87892020-03-06 Tom de Vries <tdevries@suse.de>
8790
8791 * psymtab.c (psymtab_to_symtab): Don't print "done.".
8792
20ea4a60
AB
87932020-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
8794
8795 * .dir-locals.el: Add a comment referencing the other copies of
8796 this file.
8797
0afbabf0
JB
87982020-03-05 John Baldwin <jhb@FreeBSD.org>
8799
8800 * fbsd-tdep.c (fbsd_make_corefile_notes): Use std::string for
8801 psargs.
8802
842806cb
TBA
88032020-03-05 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
8804
8805 * .gitattributes: New file.
8806
be1e3d3e
TT
88072020-03-04 Tom Tromey <tom@tromey.com>
8808
8809 * symmisc.c (print_symbol_bcache_statistics)
8810 (print_objfile_statistics): Update.
8811 * symfile.c (allocate_symtab): Use intern.
8812 * psymtab.c (partial_symtab::partial_symtab): Use intern.
8813 * objfiles.h (struct objfile_per_bfd_storage) <filename_cache,
8814 macro_cache>: Remove.
8815 <string_cache>: New member.
8816 (struct objfile) <intern>: New methods.
8817 * elfread.c (elf_symtab_read): Use intern.
8818 * dwarf2/read.c (fixup_go_packaging): Intern package name.
8819 (dwarf2_compute_name, dwarf2_physname)
8820 (create_dwo_unit_in_dwp_v1, create_dwo_unit_in_dwp_v2): Intern
8821 names.
8822 (guess_partial_die_structure_name): Update.
8823 (partial_die_info::fixup): Intern name.
8824 (dwarf2_canonicalize_name): Change parameter to objfile. Intern
8825 name.
8826 (dwarf2_name): Intern name. Update.
8827 * buildsym.c (buildsym_compunit::get_macro_table): Use
8828 string_cache.
8829
4e7625fd
TT
88302020-03-04 Tom Tromey <tom@tromey.com>
8831
8832 * jit.c (bfd_open_from_target_memory): Make "target" const.
8833 * corefile.c (gnutarget): Now const.
8834 * gdbcore.h (gnutarget): Now const.
8835
46f9f931
HD
88362020-03-04 Hannes Domani <ssbssa@yahoo.de>
8837
8838 * NEWS: Mention support for WOW64 processes.
8839 * amd64-windows-nat.c (amd64_mappings): Rename and remove static.
8840 (amd64_windows_segment_register_p): Remove static.
8841 (_initialize_amd64_windows_nat): Update.
8842 * configure.nat <windows> (NATDEPFILES): Add i386-windows-nat.o.
8843 * i386-windows-nat.c (context_offset): Update.
8844 (i386_mappings): Rename and remove static.
8845 (i386_windows_segment_register_p): Remove static.
8846 (_initialize_i386_windows_nat): Update.
8847 * windows-nat.c (STATUS_WX86_BREAKPOINT): New macro.
8848 (STATUS_WX86_SINGLE_STEP): New macro.
8849 (EnumProcessModulesEx): New macro.
8850 (Wow64SuspendThread): New macro.
8851 (Wow64GetThreadContext): New macro.
8852 (Wow64SetThreadContext): New macro.
8853 (Wow64GetThreadSelectorEntry): New macro.
8854 (windows_set_context_register_offsets): Add static.
8855 (windows_set_segment_register_p): Likewise.
8856 (windows_add_thread): Adapt for WOW64 processes.
8857 (windows_fetch_one_register): Likewise.
8858 (windows_nat_target::fetch_registers): Likewise.
8859 (windows_store_one_register): Likewise.
8860 (display_selector): Likewise.
8861 (display_selectors): Likewise.
8862 (handle_exception): Likewise.
8863 (windows_continue): Likewise.
8864 (windows_nat_target::resume): Likewise.
8865 (windows_add_all_dlls): Likewise.
8866 (do_initial_windows_stuff): Likewise.
8867 (windows_nat_target::attach): Likewise.
8868 (windows_get_exec_module_filename): Likewise.
8869 (windows_nat_target::create_inferior): Likewise.
8870 (windows_xfer_siginfo): Likewise.
8871 (_initialize_loadable): Initialize Wow64SuspendThread,
8872 Wow64GetThreadContext, Wow64SetThreadContext,
8873 Wow64GetThreadSelectorEntry and EnumProcessModulesEx.
8874 * windows-nat.h (windows_set_context_register_offsets):
8875 Remove declaration.
8876 (windows_set_segment_register_p): Likewise.
8877 (i386_windows_segment_register_p): Add declaration.
8878 (amd64_windows_segment_register_p): Likewise.
8879
440cf44e
LM
88802020-03-04 Luis Machado <luis.machado@linaro.org>
8881
8882 Revert aa66aac47b4dd38f9524ddb5546c08cc09930d37 due to regressions
8883 in "info registers" for AArch64/ARM.
8884
8885 The change caused "info registers" to not print GPR's.
8886
8887 gdb/ChangeLog:
8888
8889 2020-02-01 Shahab Vahedi <shahab@synopsys.com>
8890
8891 * target-descriptions.c (tdesc_register_in_reggroup_p): Return 0
8892 when reg->group is empty and reggroup is not.
8893
1009d92f
TT
88942020-03-03 Tom Tromey <tromey@adacore.com>
8895
8896 * dwarf2/frame.c (struct dwarf2_frame_cache)
8897 <checked_tailcall_bottom, entry_cfa_sp_offset,
8898 entry_cfa_sp_offset_p>: Remove members.
8899 (dwarf2_frame_cache): Call dwarf2_tailcall_sniffer_first.
8900 (dwarf2_frame_prev_register): Don't call
8901 dwarf2_tailcall_sniffer_first.
8902 (dwarf2_append_unwinders): Don't append tailcall unwinder.
8903 * frame-unwind.c (add_unwinder): New fuction.
8904 (frame_unwind_init): Use it. Add tailcall unwinder.
8905
5e5d66b6
AB
89062020-03-03 Andrew Burgess <andrew.burgess@embecosm.com>
8907 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
8908
8909 * f-valprint.c (f_val_print): Handle TYPE_CODE_BOOL, any non-zero
8910 value should be printed as true.
8911
584cf46d
HD
89122020-03-03 Hannes Domani <ssbssa@yahoo.de>
8913
8914 * windows-tdep.c (windows_solib_create_inferior_hook): New function.
8915 (windows_init_abi): Set and use windows_so_ops.
8916
7b973adc
SDJ
89172020-03-03 Sergio Durigan Junior <sergiodj@redhat.com>
8918
8919 * printcmd.c (print_c_string): Check also for TYPE_CODE_PTR
8920 when verifying if dealing with a convenience variable.
8921
bb7b70ab
LM
89222020-03-03 Luis Machado <luis.machado@linaro.org>
8923
8924 * auxv.c (default_print_auxv_entry): Add new AUXV entries.
8925
9822cb57
SM
89262020-03-02 Simon Marchi <simon.marchi@polymtl.ca>
8927
8928 * infrun.c (gdbarch_supports_displaced_stepping): New.
8929 (use_displaced_stepping): Break up conditions in smaller pieces.
8930 Use gdbarch_supports_displaced_stepping.
8931 (displaced_step_prepare_throw): Use
8932 gdbarch_supports_displaced_stepping.
8933
63e163f2
AB
89342020-03-02 Andrew Burgess <andrew.burgess@embecosm.com>
8935
8936 * NEWS: Mention new behaviour of the history filename.
8937 * top.c (write_history_p): Add comment.
8938 (show_write_history_p): Add header comment, give a different
8939 message when history writing is on, but the history filename is
8940 empty.
8941 (history_filename): Add comment.
8942 (history_filename_empty): New function.
8943 (show_history_filename): Add header comment, give a different
8944 message when the filename is empty.
8945 (init_history): Compare history_filename against nullptr, and only
8946 read history if the filename is not empty.
8947 (set_history_filename): Add header comment, and only make
8948 non-empty filenames absolute.
8949 (init_main): Make the filename argument to 'set history filename'
8950 optional.
8951
81b86b97
CB
89522020-03-02 Christian Biesinger <cbiesinger@google.com>
8953
8954 * arm-nbsd-nat.c (arm_supply_fparegset): Rename to...
8955 (arm_supply_vfpregset): ...this, and update to use VFP registers.
8956 (fetch_fp_register): Update.
8957 (fetch_fp_regs): Update.
8958 (store_fp_register): Update.
8959 (store_fp_regs): Update.
8960 (arm_netbsd_nat_target::read_description): New function.
8961 (fetch_elfcore_registers): Update.
8962
24ed6739
AB
89632020-03-02 Andrew Burgess <andrew.burgess@embecosm.com>
8964
8965 * remote.c (remote_target::remote_parse_stop_reply): Don't use the
8966 general_thread if the stop reply is missing a thread-id.
8967 (remote_target::process_stop_reply): Use the first non-exited
8968 thread if the target didn't pass a thread-id.
8969 * infrun.c (do_target_wait): Move call to
8970 switch_to_inferior_no_thread to ....
8971 (do_target_wait_1): ... here.
8972
a84bb2a0
JT
89732020-02-29 Jon Turney <jon.turney@dronecode.org.uk>
8974
8975 * debuginfod-support.c: Include defs.h first.
8976
658dadf0
TV
89772020-02-28 Tom de Vries <tdevries@suse.de>
8978
8979 * symfile.c (set_initial_language): Use default language for lookup.
8980
4ebe4877
SM
89812020-02-28 Simon Marchi <simon.marchi@efficios.com>
8982
8983 * dwarf2/read.c (cutu_reader::init_tu_and_read_dwo_dies): Remove
8984 reader variable, pass `this` to read_cutu_die_from_dwo.
8985
e5da1139
AM
89862020-02-27 Aaron Merey <amerey@redhat.com>
8987
8988 * source.c (open_source_file): Check for nullptr when computing
8989 srcpath.
8990
317f7127
TT
89912020-02-27 Tom Tromey <tromey@adacore.com>
8992
8993 * dwarf2/read.c (struct field_info) <nfields>: Now a method, not a
8994 member.
8995 (dwarf2_add_field): Don't update nfields.
8996 (dwarf2_attach_fields_to_type, process_structure_scope): Update.
8997
3104d9ee
AB
89982020-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
8999
9000 * gdbtypes.c (create_array_type_with_stride): Use std::abs not
9001 abs.
9002
b83470bf
TT
90032020-02-26 Tom Tromey <tom@tromey.com>
9004
9005 * dwarf2/read.c (struct dwarf2_include_psymtab): New.
9006 (dwarf2_create_include_psymtab): Use dwarf2_include_psymtab.
9007 (dwarf2_psymtab::expand_psymtab, dwarf2_psymtab::readin_p)
9008 (dwarf2_psymtab::get_compunit_symtab): Remove null checks for
9009 per_cu_data.
9010
edfe0a0c
TT
90112020-02-26 Tom Tromey <tom@tromey.com>
9012
9013 * dwarf2/index-write.c (psym_index_map): Change type.
9014 (add_address_entry_worker, write_one_signatured_type)
9015 (recursively_count_psymbols, recursively_write_psymbols)
9016 (class debug_names, psyms_seen_size, write_gdbindex)
9017 (write_debug_names): Use partial_symtab, not dwarf2_psymtab.
9018
0d79cdc4
AM
90192020-02-26 Aaron Merey <amerey@redhat.com>
9020
9021 * Makefile.in: Handle optional debuginfod support.
9022 * NEWS: Update.
9023 * README: Add --with-debuginfod summary.
9024 * config.in: Regenerate.
9025 * configure: Regenerate.
9026 * configure.ac: Handle optional debuginfod support.
9027 * debuginfod-support.c: debuginfod helper functions.
9028 * debuginfod-support.h: Ditto.
9029 * doc/gdb.texinfo: Add --with-debuginfod to configure options
9030 summary.
9031 * dwarf2/read.c (dwarf2_get_dwz_file): Query debuginfod servers
9032 when a dwz file cannot be found.
9033 * elfread.c (elf_symfile_read): Query debuginfod servers when a
9034 debuginfo file cannot be found.
9035 * source.c (open_source_file): Query debuginfod servers when a
9036 source file cannot be found.
9037 * top.c (print_gdb_configuration): Include
9038 --{with,without}-debuginfod in the output.
9039
b65ce565
JG
90402020-02-26 Jérémie Galarneau <jeremie.galarneau@efficios.com>
9041
9042 * thread.c (thr_try_catch_cmd): Print thread name.
9043
d4c9a4f8
SM
90442020-02-26 Simon Marchi <simon.marchi@efficios.com>
9045
9046 * dwarf2/loc.h (dwarf2_fetch_die_loc_sect_off,
9047 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
9048 dwarf2_fetch_die_type_sect_off): Move to...
9049 * dwarf2/read.h (dwarf2_fetch_die_loc_sect_off,
9050 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
9051 dwarf2_fetch_die_type_sect_off): ... here.
9052 * dwarf2/read.c (dwarf2_fetch_die_loc_sect_off,
9053 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
9054 dwarf2_fetch_die_type_sect_off): Move doc to header file.
9055
0dce4280
TV
90562020-02-26 Tom de Vries <tdevries@suse.de>
9057
9058 PR gdb/25603
9059 * symfile.c (set_initial_language): Exit-early if
9060 language_mode == language_mode_manual.
9061
450a1bfc
SM
90622020-02-25 Simon Marchi <simon.marchi@polymtl.ca>
9063
9064 * dwarf2/loc.h (dwarf2_read_addr_index): Move...
9065 * dwarf2/read.h (dwarf2_read_addr_index): ... here.
9066 * dwarf2/read.c (dwarf2_read_addr_index): Move doc to header.
9067
9e80cfa1
AB
90682020-02-25 Andrew Burgess <andrew.burgess@embecosm.com>
9069
9070 * gdbtypes.c (create_array_type_with_stride): Handle negative
9071 array strides.
9072 * valarith.c (value_subscripted_rvalue): Likewise.
9073
09624f1f
LM
90742020-02-25 Luis Machado <luis.machado@linaro.org>
9075
9076 * aarch64-tdep.c (aarch64_vnv_type): Fix comment typo.
9077
8cb5117c
SM
90782020-02-25 Simon Marchi <simon.marchi@polymtl.ca>
9079
9080 * loc.h (dwarf2_get_die_type): Move to...
9081 * read.h (dwarf2_get_die_type): ... here.
9082 * read.c (dwarf2_get_die_type): Move doc to header.
9083
c325c44e
JB
90842020-02-25 Joel Brobecker <brobecker@adacore.com>
9085
9086 * copypright.py (EXCLUDE_LIST): Add 'gnulib/config.in' and
9087 'gnulib/Makefile.in' to the list.
9088
4ac93832
TT
90892020-02-24 Tom Tromey <tom@tromey.com>
9090
9091 * dwarf2/read.h (struct type_unit_unshareable) <num_symtabs>:
9092 Remove.
9093 * dwarf2/read.c (dwarf2_cu::setup_type_unit_groups): Use
9094 XOBNEWVEC.
9095
197400e8
TT
90962020-02-24 Tom Tromey <tom@tromey.com>
9097
9098 * dwarf2/read.h (struct dwarf2_per_cu_data) <type_unit_group_p>:
9099 New method.
9100 * dwarf2/read.c (IS_TYPE_UNIT_GROUP): Remove.
9101 (dw2_do_instantiate_symtab, dw2_get_file_names)
9102 (build_type_psymtab_dependencies, load_full_type_unit): Update.
9103
76935768
TT
91042020-02-24 Tom Tromey <tom@tromey.com>
9105
9106 * dwarf2read.c (dwarf2_build_psymtabs_hard): Use
9107 make_scoped_restore.
9108 (dwarf2_psymtab::read_symtab): Don't clear
9109 reading_partial_symbols.
9110
a88ef40d
TV
91112020-02-24 Tom de Vries <tdevries@suse.de>
9112
9113 PR gdb/25592
9114 * stack.c (iterate_over_block_locals): Handle LOC_CONST.
9115
c9af6521
TV
91162020-02-24 Tom de Vries <tdevries@suse.de>
9117
9118 * tui/tui-layout.c (_initialize_tui_layout): Fix help messages for
9119 commands layout next/prev/regs.
9120
5707a07a
TT
91212020-02-22 Tom Tromey <tom@tromey.com>
9122
9123 * dwarf2/loc.h (dwarf2_compile_expr_to_ax): Don't declare.
9124 * dwarf2/loc.c (dwarf2_compile_expr_to_ax): Now static.
9125
3b0fb49e
TT
91262020-02-22 Tom Tromey <tom@tromey.com>
9127
9128 * tui/tui-data.h (TUI_DISASM_WIN): Cast to tui_disasm_window.
9129
283be8bf
TT
91302020-02-22 Tom Tromey <tom@tromey.com>
9131
9132 * tui/tui-win.c (_initialize_tui_win): Add usage text.
9133 * tui/tui-stack.c (_initialize_tui_stack): Add usage text.
9134 * tui/tui-regs.c (_initialize_tui_regs): Add usage text.
9135 * tui/tui.c (_initialize_tui): Add usage text.
9136
ca793b96
TT
91372020-02-22 Tom Tromey <tom@tromey.com>
9138
9139 * tui/tui-win.c (tui_set_focus_command)
9140 (tui_set_win_height_command): Use error_no_arg.
9141 (_initialize_tui_win): Update help text.
9142 (FOCUS_USAGE, WIN_HEIGHT_USAGE): Don't define.
9143
432b5c40
TT
91442020-02-22 Tom Tromey <tom@tromey.com>
9145
9146 * tui/tui-layout.c (extract_display_start_addr): Rewrite.
9147 * tui/tui-disasm.h (struct tui_disasm_window)
9148 <display_start_addr>: Declare.
9149 * tui/tui-source.h (struct tui_source_window)
9150 <display_start_addr>: Declare.
9151 * tui/tui-winsource.h (struct tui_source_window_base)
9152 <show_source_line, display_start_addr>: New methods.
9153 <m_horizontal_offset, m_start_line_or_addr, m_gdbarch, m_content>:
9154 Rename and move to protected section.
9155 * tui/tui-winsource.c (tui_source_window_base::update_source_window)
9156 (tui_source_window_base::do_erase_source_content): Update.
9157 (tui_source_window_base::show_source_line): Now a method.
9158 (tui_source_window_base::show_source_content)
9159 (tui_source_window_base::tui_source_window_base)
9160 (tui_source_window_base::rerender)
9161 (tui_source_window_base::refill)
9162 (tui_source_window_base::do_scroll_horizontal)
9163 (tui_source_window_base::set_is_exec_point_at)
9164 (tui_source_window_base::update_breakpoint_info)
9165 (tui_source_window_base::update_exec_info): Update.
9166 * tui/tui-source.c (tui_source_window::set_contents)
9167 (tui_source_window::showing_source_p)
9168 (tui_source_window::do_scroll_vertical)
9169 (tui_source_window::location_matches_p)
9170 (tui_source_window::line_is_displayed): Update.
9171 (tui_source_window::display_start_addr): New method.
9172 * tui/tui-disasm.c (tui_disasm_window::set_contents)
9173 (tui_disasm_window::do_scroll_vertical)
9174 (tui_disasm_window::location_matches_p): Update.
9175 (tui_disasm_window::display_start_addr): New method.
9176
01b1af32
TT
91772020-02-22 Tom Tromey <tom@tromey.com>
9178
9179 * NEWS: Add entry for gdb.register_window_type.
9180 * tui/tui-layout.h (window_factory): New typedef.
9181 (tui_register_window): Declare.
9182 * tui/tui-layout.c (saved_tui_windows): New global.
9183 (tui_apply_current_layout): Use it.
9184 (tui_register_window): New function.
9185 * python/python.c (do_start_initialization): Call
9186 gdbpy_initialize_tui.
9187 (python_GdbMethods): Add "register_window_type" function.
9188 * python/python-internal.h (gdbpy_register_tui_window)
9189 (gdbpy_initialize_tui): Declare.
9190 * python/py-tui.c: New file.
9191 * Makefile.in (SUBDIR_PYTHON_SRCS): Add py-tui.c.
9192
fc96d20b
TT
91932020-02-22 Tom Tromey <tom@tromey.com>
9194
9195 * tui/tui-io.c (do_tui_putc): Don't omit annotations.
9196
935c78c0
TT
91972020-02-22 Tom Tromey <tom@tromey.com>
9198
9199 * tui/tui-win.c (tui_set_win_focus_to): Move to tui-data.c.
9200 * tui/tui-data.h (tui_set_win_with_focus): Don't declare.
9201 * tui/tui-data.c (tui_set_win_with_focus): Remove.
9202 (tui_set_win_focus_to): Move from tui-win.c.
9203
0240c8f1
TT
92042020-02-22 Tom Tromey <tom@tromey.com>
9205
9206 * tui/tui-layout.c (make_standard_window, get_locator_window): New
9207 functions.
9208 (known_window_types): New global.
9209 (tui_get_window_by_name): Reimplement.
9210 (initialize_known_windows): New function.
9211 (validate_window_name): Rewrite.
9212 (_initialize_tui_layout): Call initialize_known_windows.
9213
fdb01f0c
TT
92142020-02-22 Tom Tromey <tom@tromey.com>
9215
9216 * tui/tui.h (enum tui_win_type) <LOCATOR_WIN, DATA_ITEM_WIN>:
9217 Remove constants.
9218 * tui/tui-winsource.h (struct tui_source_window_base)
9219 <tui_source_window_base>: Remove parameter.
9220 * tui/tui-winsource.c
9221 (tui_source_window_base::tui_source_window_base): Remove
9222 parameter.
9223 (tui_source_window_base::refill): Update.
9224 * tui/tui-stack.h (struct tui_locator_window)
9225 <tui_locator_window>: Update.
9226 * tui/tui-source.h (struct tui_source_window) <tui_source_window>:
9227 Default the constructor.
9228 * tui/tui-regs.h (struct tui_data_item_window)
9229 <tui_data_item_window>: Default the constructor.
9230 (struct tui_data_window) <tui_data_window>: Likewise.
9231 * tui/tui-disasm.h (struct tui_disasm_window) <tui_disasm_window>:
9232 Default the constructor.
9233 * tui/tui-data.h (struct tui_gen_win_info) <tui_gen_win_info>:
9234 Default the constructor.
9235 <type>: Remove.
9236 (struct tui_win_info) <tui_win_info>: Default the constructor.
9237 * tui/tui-data.c (tui_win_info::tui_win_info): Remove.
9238 * tui/tui-command.h (struct tui_cmd_window) <tui_cmd_window>:
9239 Default the constructor.
9240
865a5aec
TT
92412020-02-22 Tom Tromey <tom@tromey.com>
9242
9243 * tui/tui-wingeneral.h (tui_make_all_invisible): Don't declare.
9244 * tui/tui-wingeneral.c (tui_make_all_invisible): Remove.
9245 * tui/tui-win.c (tui_resize_all): Don't call
9246 tui_delete_invisible_windows.
9247 * tui/tui-layout.c (tui_apply_current_layout): Delete windows when
9248 done.
9249 (tui_set_layout): Update.
9250 (tui_add_win_to_layout): Don't call tui_delete_invisible_windows.
9251 * tui/tui-data.h (tui_delete_invisible_windows): Don't declare.
9252 * tui/tui-data.c (tui_delete_invisible_windows): Remove.
9253
e098d18c
TT
92542020-02-22 Tom Tromey <tom@tromey.com>
9255
9256 * tui/tui-win.c (tui_partial_win_by_name): Handle ambiguity
9257 correctly.
9258
eb9c8874
TT
92592020-02-22 Tom Tromey <tom@tromey.com>
9260
9261 * tui/tui-data.c (tui_next_win, tui_prev_win): Reimplement.
9262
7eed1a8e
TT
92632020-02-22 Tom Tromey <tom@tromey.com>
9264
9265 * tui/tui-winsource.h (struct tui_source_window_iterator)
9266 <inner_iterator>: New etytypedef.
9267 <tui_source_window_iterator>: Take "end" parameter.
9268 <tui_source_window_iterator>: Take iterator.
9269 <operator*, advance>: Update.
9270 <m_iter>: Change type.
9271 <m_end>: New field.
9272 (struct tui_source_windows) <begin, end>: Update.
9273 * tui/tui-layout.c (tui_windows): New global.
9274 (tui_apply_current_layout): Clear tui_windows.
9275 (tui_layout_window::apply): Update tui_windows.
9276 * tui/tui-data.h (tui_windows): Declare.
9277 (all_tui_windows): Now inline function.
9278 (class tui_window_iterator, struct all_tui_windows): Remove.
9279
7c043ba6
TT
92802020-02-22 Tom Tromey <tom@tromey.com>
9281
9282 PR tui/17850:
9283 * tui/tui-win.c (tui_gen_win_info::max_width): New method.
9284 * tui/tui-layout.h (class tui_layout_base) <get_sizes>: Add
9285 "height" argument.
9286 (class tui_layout_window) <get_sizes>: Likewise.
9287 (class tui_layout_split) <tui_layout_split>: Add "vertical"
9288 argument.
9289 <get_sizes>: Add "height" argument.
9290 <m_vertical>: New field.
9291 * tui/tui-layout.c (tui_layout_split::clone): Update.
9292 (tui_layout_split::get_sizes): Add "height" argument.
9293 (tui_layout_split::adjust_size, tui_layout_split::apply): Update.
9294 (tui_new_layout_command): Parse "-horizontal".
9295 (_initialize_tui_layout): Update help string.
9296 (tui_layout_split::specification): Add "-horizontal" when needed.
9297 * tui/tui-layout.c (tui_layout_window::get_sizes): Add "height"
9298 argument.
9299 * tui/tui-data.h (struct tui_gen_win_info) <max_width, min_width>:
9300 New methods.
9301
6bc56648
TT
93022020-02-22 Tom Tromey <tom@tromey.com>
9303
9304 * tui/tui-layout.h (enum tui_adjust_result): New.
9305 (class tui_layout_base) <adjust_size>: Return tui_adjust_result.
9306 (class tui_layout_window) <adjust_size>: Return
9307 tui_adjust_result. Rewrite.
9308 (class tui_layout_split) <adjust_size>: Return tui_adjust_result.
9309 * tui/tui-layout.c (tui_layout_split::adjust_size): Update.
9310
c22fef7e
TT
93112020-02-22 Tom Tromey <tom@tromey.com>
9312
9313 * tui/tui-layout.h (class tui_layout_split) <add_split>: Change
9314 parameter and return types.
9315 (class tui_layout_base) <specification>: Add "depth".
9316 (class tui_layout_window) <specification>: Add "depth".
9317 (class tui_layout_split) <specification>: Add "depth".
9318 * tui/tui-layout.c (tui_layout_split::add_split): Change parameter
9319 and return types.
9320 (tui_new_layout_command): Parse sub-layouts.
9321 (_initialize_tui_layout): Update help string.
9322 (tui_layout_window::specification): Add "depth".
9323 (add_layout_command): Update.
9324
ee325b61
TT
93252020-02-22 Tom Tromey <tom@tromey.com>
9326
9327 * NEWS: Add "tui new-layout" item.
9328 * tui/tui-layout.c (add_layout_command): Return cmd_list_element.
9329 Add new-layout command to help text.
9330 (validate_window_name): New function.
9331 (tui_new_layout_command): New function.
9332 (_initialize_tui_layout): Register "new-layout".
9333 (tui_layout_window::specification): New method.
9334 (tui_layout_window::specification): New method.
9335 * tui/tui-layout.h (class tui_layout_base) <specification>: New
9336 method.
9337 (class tui_layout_window) <specification>: New method.
9338 (class tui_layout_split) <specification>: New method.
9339
416eb92d
TT
93402020-02-22 Tom Tromey <tom@tromey.com>
9341
9342 * tui/tui.c (tui_enable): Call tui_set_initial_layout.
9343 * tui/tui-win.c (window_name_completer): Update comment.
9344 * tui/tui-layout.h (class tui_layout_base) <replace_window>:
9345 Declare method.
9346 (class tui_layout_window) <replace_window>: Likewise.
9347 (class tui_layout_split) <replace_window>: Likewise.
9348 (tui_set_layout): Don't declare.
9349 (tui_set_initial_layout): Declare function.
9350 * tui/tui-layout.c (layouts, applied_skeleton, src_regs_layout)
9351 (asm_regs_layout): New globals.
9352 (tui_current_layout, show_layout): Remove.
9353 (tui_set_layout, tui_add_win_to_layout): Rewrite.
9354 (find_layout, tui_apply_layout): New function.
9355 (layout_completer): Remove.
9356 (tui_next_layout): Reimplement.
9357 (tui_next_layout_command): New function.
9358 (tui_set_initial_layout, tui_prev_layout_command): New functions.
9359 (tui_regs_layout): Reimplement.
9360 (tui_regs_layout_command): New function.
9361 (extract_display_start_addr): Rewrite.
9362 (next_layout, prev_layout): Remove.
9363 (tui_layout_window::replace_window): New method.
9364 (tui_layout_split::replace_window): New method.
9365 (destroy_layout): New function.
9366 (layout_list): New global.
9367 (add_layout_command): New function.
9368 (initialize_layouts): Update.
9369 (tui_layout_command): New function.
9370 (_initialize_tui_layout): Install "layout" commands.
9371 * tui/tui-data.h (enum tui_layout_type): Remove.
9372 (tui_current_layout): Don't declare.
9373
0dbc2fc7
TT
93742020-02-22 Tom Tromey <tom@tromey.com>
9375
9376 * tui/tui-regs.c (tui_reg_layout): Remove.
9377 (tui_reg_command): Use tui_regs_layout.
9378 * tui/tui-layout.h (tui_reg_command): Declare.
9379 * tui/tui-layout.c (tui_reg_command): New function.
9380
5afe342e
TT
93812020-02-22 Tom Tromey <tom@tromey.com>
9382
9383 * tui/tui.c (tui_rl_delete_other_windows): Call
9384 tui_remove_some_windows.
9385 * tui/tui-layout.h (class tui_layout_base) <remove_windows>:
9386 Declare method.
9387 (class tui_layout_window) <remove_windows>: New method.
9388 (class tui_layout_split) <remove_windows>: Declare.
9389 (tui_remove_some_windows): Declare.
9390 * tui/tui-layout.c (tui_remove_some_windows): New function.
9391 (tui_layout_split::remove_windows): New method.
9392
427326a8
TT
93932020-02-22 Tom Tromey <tom@tromey.com>
9394
9395 * tui/tui.c (tui_rl_change_windows): Call tui_next_layout.
9396 * tui/tui-layout.h (tui_next_layout): Declare.
9397 * tui/tui-layout.c (tui_next_layout): New function.
9398
3fe12b6d
TT
93992020-02-22 Tom Tromey <tom@tromey.com>
9400
9401 * tui/tui-regs.c (tui_data_window::display_registers_from): Use
9402 correct coordinates.
9403
59b8b5d2
TT
94042020-02-22 Tom Tromey <tom@tromey.com>
9405
9406 * tui/tui-layout.h (tui_add_win_to_layout): Add comment.
9407 * tui/tui-layout.c (tui_add_win_to_layout): Add assert. Remove
9408 DATA_WIN case.
9409
2a3d458b
TT
94102020-02-22 Tom Tromey <tom@tromey.com>
9411
9412 * tui/tui-disasm.c (tui_get_low_disassembly_address): Use
9413 TUI_DISASM_WIN, not tui_win_list.
9414
3f0cbb04
TT
94152020-02-22 Tom Tromey <tom@tromey.com>
9416
9417 * valprint.c (generic_val_print_enum_1)
9418 (val_print_type_code_flags): Style member names.
9419 * rust-lang.c (val_print_struct, rust_print_enum)
9420 (rust_print_struct_def, rust_internal_print_type): Style member
9421 names.
9422 * p-valprint.c (pascal_object_print_value_fields): Style member
9423 names. Only call fprintf_symbol_filtered for static members.
9424 * m2-typeprint.c (m2_record_fields, m2_enum): Style member names.
9425 * f-valprint.c (f_val_print): Style member names.
9426 * f-typeprint.c (f_type_print_base): Style member names.
9427 * cp-valprint.c (cp_print_value_fields): Style member names. Only
9428 call fprintf_symbol_filtered for static members.
9429 (cp_print_class_member): Style member names.
9430 * c-typeprint.c (c_print_type_1, c_type_print_base_1): Style
9431 member names.
9432 * ada-valprint.c (ada_print_scalar): Style enum names.
9433 (ada_val_print_enum): Likewise.
9434 * ada-typeprint.c (print_enum_type): Style enum names.
9435
d4d947ae
TT
94362020-02-21 Tom Tromey <tom@tromey.com>
9437
9438 * psympriv.h (struct partial_symtab): Update comment.
9439
e94e944b
TT
94402020-02-21 Tom Tromey <tromey@adacore.com>
9441
9442 * mips-tdep.h (mips_pc_is_mips16, mips_pc_is_micromips): Parameter
9443 type is CORE_ADDR.
9444
1eb73179
TV
94452020-02-21 Tom de Vries <tdevries@suse.de>
9446
9447 PR gdb/25534
9448 * psymtab.c (partial_symtab::read_dependencies): Don't read dependency
9449 if dependencies[i]->user != NULL.
9450
4f180d53
AT
94512020-02-21 Ali Tamur <tamur@google.com>
9452
9453 * dwarf2/read.c (dwarf2_name): Add null check.
9454
22b6cd70
TT
94552020-02-20 Tom Tromey <tom@tromey.com>
9456
9457 * dwarf2/read.c (dwarf2_find_containing_comp_unit): Use ">", not
9458 ">=", in binary search.
9459 (dwarf2_find_containing_comp_unit): New overload.
9460 (run_test): New self-test.
9461 (_initialize_dwarf2_read): Register new test.
9462
bd0cf5a6
NC
94632020-02-20 Nelson Chu <nelson.chu@sifive.com>
9464
9465 * riscv-tdep.c: Updated since the DECLARE_CSR is changed.
9466 * riscv-tdep.h: Likewise.
9467 * features/riscv/rebuild-csr-xml.sh: Generate the 64bit-csr.xml without
9468 rv32-only CSR.
9469 * features/riscv/64bit-csr.xml: Regenerated.
9470
3f702acd
SDJ
94712020-02-20 Sergio Durigan Junior <sergiodj@redhat.com>
9472 Tom Tromey <tom@tromey.com>
9473
9474 * utils.c (fputs_maybe_filtered): Call 'stream->puts' instead
9475 of 'fputc_unfiltered'.
9476 (putchar_unfiltered): Call 'fputc_unfiltered'.
9477 (fputc_unfiltered): Call 'fputs_unfiltered'.
9478
d13c7322
AB
94792020-02-20 Andrew Burgess <andrew.burgess@embecosm.com>
9480
9481 * config.in: Regenerate.
9482 * configure: Regenerate.
9483 * configure.ac: Add --with-python-libdir option.
9484 * main.c: Use WITH_PYTHON_LIBDIR.
9485
869d8950
TT
94862020-02-19 Tom Tromey <tom@tromey.com>
9487
9488 * symtab.c (general_symbol_info::compute_and_set_names): Use
9489 obstack_strndup. Simplify call to symbol_set_demangled_name.
9490
298e9637
SM
94912020-02-19 Simon Marchi <simon.marchi@efficios.com>
9492
9493 * dwarf2/read.c (allocate_signatured_type_table,
9494 allocate_dwo_unit_table, allocate_type_unit_groups_table,
9495 allocate_dwo_file_hash_table, allocate_dwp_loaded_cutus_table):
9496 Remove objfile parameter, update all callers.
9497
08410482
DE
94982020-02-19 Doug Evans <dje@google.com>
9499
9500 PR rust/25535
9501 * rust-lang.c (rust_print_enum): Apply embedded_offset to
9502 rust_enum_variant calculation.
9503
dfdeeca1
TT
95042020-02-19 Tom Tromey <tromey@adacore.com>
9505
9506 * mips-tdep.h (mips_pc_is_mips): Parameter type is CORE_ADDR.
9507
2ef5453b
TT
95082020-02-19 Tom Tromey <tromey@adacore.com>
9509
9510 * ada-lang.c (cache_symbol): Use obstack_strdup.
9511
9f1528a1
AB
95122020-02-19 Andrew Burgess <andrew.burgess@embecosm.com>
9513
9514 * configure: Regenerate.
9515
d3c22fa8
TT
95162020-02-19 Tom Tromey <tromey@adacore.com>
9517
9518 * python/python.c (do_start_initialization): Use XNEWVEC. Remove
9519 NULL check.
9520
bf84f706
MR
95212020-02-19 Maciej W. Rozycki <macro@wdc.com>
9522
9523 * NEWS: Mention RISC-V GNU/Linux GDBserver support.
9524
d1c9b20f
AB
95252020-02-19 Andrew Burgess <andrew.burgess@embecosm.com>
9526
9527 * arch/riscv.c (struct riscv_gdbarch_features_hasher): Only define
9528 if GDBSERVER is not defined.
9529 (riscv_tdesc_cache): Likewise, also store const target_desc.
9530 (STATIC_IN_GDB): Define.
9531 (riscv_create_target_description): Update declaration with
9532 STATIC_IN_GDB.
9533 (riscv_lookup_target_description): New function, only define if
9534 GDBSERVER is not defined.
9535 * arch/riscv.h (riscv_create_target_description): Declare only
9536 when GDBSERVER is defined.
9537 (riscv_lookup_target_description): New declaration when GDBSERVER
9538 is not defined.
9539 * nat/riscv-linux-tdesc.c (riscv_linux_read_description): Rename to...
9540 (riscv_linux_read_features): ...this, and return
9541 riscv_gdbarch_features instead of target_desc.
9542 * nat/riscv-linux-tdesc.h: Include 'arch/riscv.h'.
9543 (riscv_linux_read_description): Rename to...
9544 (riscv_linux_read_features): ...this.
9545 * riscv-linux-nat.c (riscv_linux_nat_target::read_description):
9546 Update to use riscv_gdbarch_features and
9547 riscv_lookup_target_description.
9548 * riscv-tdep.c (riscv_find_default_target_description): Use
9549 riscv_lookup_target_description instead of
9550 riscv_create_target_description.
9551
373d7ac0
SM
95522020-02-18 Simon Marchi <simon.marchi@efficios.com>
9553
9554 * valprint.c (generic_val_print_enum_1): When printing a flag
9555 enum with value 0 and there is no enumerator with value 0, print
9556 just "0" instead of "(unknown: 0x0)".
9557
b29a2df0
SM
95582020-02-18 Simon Marchi <simon.marchi@efficios.com>
9559
9560 * valprint.c (generic_val_print_enum_1): Print unknown part of
9561 flag enum in hex.
9562
6740f0cc
SM
95632020-02-18 Simon Marchi <simon.marchi@efficios.com>
9564
9565 * dwarf2/read.c (update_enumeration_type_from_children): Allow
9566 flag enums to contain duplicate enumerators.
9567 * valprint.c (generic_val_print_enum_1): Update comment.
9568
edd45eb0
SM
95692020-02-18 Simon Marchi <simon.marchi@efficios.com>
9570
9571 * dwarf2/read.c: Include "count-one-bits.h".
9572 (update_enumeration_type_from_children): If an enumerator has
9573 multiple bits set, don't treat the enumeration as a "flag enum".
9574 * valprint.c (generic_val_print_enum_1): Assert that enumerators
9575 of flag enums have 0 or 1 bit set.
9576
6d0cf446
BE
95772020-02-18 Bernd Edlinger <bernd.edlinger@hotmail.de>
9578
9579 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Use an explicit
9580 conversion.
9581 * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise.
9582 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn): Likewise.
9583 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
9584 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Likewise.
9585 * s390-tdep.c (s390_displaced_step_copy_insn): Likewise.
9586
7001c1b7
SM
95872020-02-18 Simon Marchi <simon.marchi@efficios.com>
9588
9589 * MAINTAINERS: Change palmer@sifive.com to palmer@dabbelt.com.
9590
fdb61c6c
SM
95912020-02-14 Simon Marchi <simon.marchi@efficios.com>
9592
9593 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Use
9594 displaced_step_closure_up.
9595 * aarch64-tdep.h (aarch64_displaced_step_copy_insn): Likewise.
9596 (struct displaced_step_closure_up):
9597 * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise.
9598 * amd64-tdep.h (amd64_displaced_step_copy_insn): Likewise.
9599 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn):
9600 Likewise.
9601 * gdbarch.sh (displaced_step_copy_insn): Likewise.
9602 * gdbarch.c, gdbarch.h: Re-generate.
9603 * i386-linux-tdep.c (i386_linux_displaced_step_copy_insn): Use
9604 displaced_step_closure_up.
9605 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
9606 * i386-tdep.h (i386_displaced_step_copy_insn): Likewise.
9607 * infrun.h (displaced_step_closure_up): New type alias.
9608 (struct displaced_step_inferior_state) <step_closure>: Change
9609 type to displaced_step_closure_up.
9610 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Use
9611 displaced_step_closure_up.
9612 * s390-tdep.c (s390_displaced_step_copy_insn): Likewise.
9613
a4a38eb4
TT
96142020-02-14 Tom Tromey <tom@tromey.com>
9615
9616 * minidebug.c (gnu_debug_key): New global.
9617 (find_separate_debug_file_in_section): Use it.
9618
e8217e61
SM
96192020-02-14 Simon Marchi <simon.marchi@efficios.com>
9620
9621 * gdbarch.sh (displaced_step_copy_insn): Change return type to an
9622 std::unique_ptr.
9623 * gdbarch.c: Re-generate.
9624 * gdbarch.h: Re-generate.
9625 * infrun.c (displaced_step_prepare_throw): Adjust to std::unique_ptr
9626 change.
9627 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Change return
9628 type to std::unique_ptr.
9629 * aarch64-tdep.h (aarch64_displaced_step_copy_insn): Likewise.
9630 * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise.
9631 * amd64-tdep.h (amd64_displaced_step_copy_insn): Likewise.
9632 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn): Likewise.
9633 * i386-linux-tdep.c (i386_linux_displaced_step_copy_insn): Likewise.
9634 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
9635 * i386-tdep.h (i386_displaced_step_copy_insn): Likewise.
9636 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Likewise.
9637 * s390-tdep.c (s390_displaced_step_copy_insn): Likewise.
9638
d8d83535
SM
96392020-02-14 Simon Marchi <simon.marchi@efficios.com>
9640
9641 * infrun.c (get_displaced_step_closure_by_addr): Adjust to
9642 std::unique_ptr.
9643 (displaced_step_clear): Rename to...
9644 (displaced_step_reset): ... this. Just call displaced->reset ().
9645 (displaced_step_clear_cleanup): Rename to...
9646 (displaced_step_reset_cleanup): ... this.
9647 (displaced_step_prepare_throw): Adjust to std::unique_ptr.
9648 (displaced_step_fixup): Likewise.
9649 (resume_1): Likewise.
9650 (handle_inferior_event): Restore child's memory before calling
9651 displaced_step_fixup on the parent.
9652 * infrun.h (displaced_step_inferior_state) <reset>: Adjust
9653 to std::unique_ptr.
9654 <step_closure>: Change type to std::unique_ptr.
9655
5f661e03
SM
96562020-02-14 Simon Marchi <simon.marchi@efficios.com>
9657
9658 * arm-tdep.c: Include count-one-bits.h.
9659 (cleanup_block_store_pc): Use count_one_bits.
9660 (cleanup_block_load_pc): Use count_one_bits.
9661 (arm_copy_block_xfer): Use count_one_bits.
9662 (thumb2_copy_block_xfer): Use count_one_bits.
9663 (thumb_copy_pop_pc_16bit): Use count_one_bits.
9664 * arch/arm-get-next-pcs.c: Include count-one-bits.h.
9665 (thumb_get_next_pcs_raw): Use count_one_bits.
9666 (arm_get_next_pcs_raw): Use count_one_bits_l.
9667 * arch/arm.c (bitcount): Remove.
9668 * arch/arm.h (bitcount): Remove.
9669
8084e579
TT
96702020-02-14 Tom Tromey <tromey@adacore.com>
9671
9672 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first):
9673 Update.
9674 * dwarf2/loc.h (call_site_find_chain): Return unique_xmalloc_ptr.
9675 * dwarf2/loc.c (call_site_find_chain_1): Return
9676 unique_xmalloc_ptr.
9677 (call_site_find_chain): Likewise.
9678
258bf0ee
RB
96792020-02-14 Richard Biener <rguenther@suse.de>
9680
9681 * dwarf2/read.c (lnp_state_machine::handle_special_opcode): Apply CSE
9682 on expression with division operators.
9683
f98a8458
AKS
96842020-02-13 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
9685
9686 * MAINTAINERS (Write After Approval): Adding myself.
9687
d1437c0e
TT
96882020-02-12 Tom Tromey <tom@tromey.com>
9689
9690 * event-loop.c (event_data, gdb_event, event_handler_func):
9691 Remove.
9692
3d4560f7
TT
96932020-02-12 Tom Tromey <tom@tromey.com>
9694
9695 * dwarf2/frame.c (dwarf2_frame_bfd_data): New global.
9696 (dwarf2_frame_objfile_data): Add comment.
9697 (find_comp_unit, set_comp_unit): New functions.
9698 (dwarf2_frame_find_fde): Use find_comp_unit.
9699 (dwarf2_build_frame_info): Use set_comp_unit.
9700
21982304
TT
97012020-02-12 Tom Tromey <tom@tromey.com>
9702
9703 * dwarf2/frame.c (struct comp_unit) <objfile>: Remove.
9704 (comp_unit): Don't initialize objfile.
9705 (execute_cfa_program): Add text_offset parameter.
9706 (execute_cfa_program_test, dwarf2_fetch_cfa_info)
9707 (dwarf2_frame_cache): Update.
9708 (dwarf2_build_frame_info): Don't set "objfile" member.
9709
4debb237
TT
97102020-02-12 Tom Tromey <tom@tromey.com>
9711
9712 * dwarf2/frame.c (decode_frame_entry_1): Add gdbarch parameter.
9713 (decode_frame_entry): Likewise.
9714 (dwarf2_build_frame_info): Update.
9715
0d404d44
TT
97162020-02-12 Tom Tromey <tom@tromey.com>
9717
9718 * dwarf2/frame.c (struct comp_unit) <obstack>: New member.
9719 (decode_frame_entry_1): Use the comp_unit obstack.
9720
a7a3ae5c
TT
97212020-02-12 Tom Tromey <tom@tromey.com>
9722
9723 * dwarf2/frame.c (struct comp_unit): Add initializers and
9724 constructor.
9725 (dwarf2_frame_objfile_data): Store a comp_unit.
9726 (dwarf2_frame_find_fde): Update.
9727 (dwarf2_build_frame_info): Use "new".
9728
a9d65418
TT
97292020-02-12 Tom Tromey <tom@tromey.com>
9730
9731 * dwarf2/frame.c (struct dwarf2_fde_table): Remove.
9732 (dwarf2_fde_table): Typedef for std::vector.
9733 (dwarf2_frame_objfile_data): Remove the deleter. Now static.
9734 (dwarf2_frame_find_fde, add_fde, decode_frame_entry_1)
9735 (decode_frame_entry): Update.
9736 (dwarf2_build_frame_info): Use "new".
9737
7559c217
CB
97382020-02-12 Christian Biesinger <cbiesinger@google.com>
9739
9740 * arm-tdep.c (arm_gdbarch_init): Update.
9741 * arm-tdep.h (struct gdbarch_tdep) <have_fpa_registers,
9742 have_wmmx_registers, have_vfp_pseudos, have_neon_pseudos,
9743 have_neon, is_m>: Change to bool.
9744
aeefc73c
CB
97452020-02-12 Christian Biesinger <cbiesinger@google.com>
9746
9747 * arm-tdep.c (arm_dump_tdep): Print more fields of tdep.
9748
d27b8e5f
TT
97492020-02-12 Tom Tromey <tom@tromey.com>
9750
9751 * dwarf2/loc.c (struct dwarf_expr_baton): Remove.
9752
cd5900f3
HD
97532020-02-12 Hannes Domani <ssbssa@yahoo.de>
9754
9755 * windows-tdep.c (struct windows_gdbarch_data): Add tib_ptr_type.
9756 (windows_get_tlb_type): Use windows_gdbarch_data->tib_ptr_type.
9757
f056b22b
TT
97582020-02-11 Tom Tromey <tom@tromey.com>
9759
9760 * psymtab.h: Update comment.
9761
f92ff6b5
TT
97622020-02-11 Tom Tromey <tom@tromey.com>
9763
9764 * gdb_obstack.h (struct auto_obstack): Use
9765 DISABLE_COPY_AND_ASSIGN.
9766
3fd6912b
TT
97672020-02-11 Tom Tromey <tom@tromey.com>
9768
9769 * dwarf2/frame.h (struct objfile): Don't forward declare.
9770
69ed9b74
CB
97712020-02-11 Christian Biesinger <cbiesinger@google.com>
9772
9773 * cris-tdep.c (cris_supply_gregset): Change signature to match
9774 what struct regset expects.
9775 (cris_regset): New struct.
9776 (fetch_core_registers): Remove.
9777 (cris_iterate_over_regset_sections): New function.
9778 (_initialize_cris_tdep): Don't call deprecated_add_core_fns.
9779 (cris_gdbarch_init): Call set_gdbarch_iterate_over_regset_sections.
9780
bda874f6
CB
97812020-02-11 Christian Biesinger <cbiesinger@google.com>
9782
9783 * arch/arm.h (enum gdb_regnum): Add comment for the FP0..7
9784 registers.
9785
754e1564
CB
97862020-02-11 Christian Biesinger <cbiesinger@google.com>
9787
9788 * arm-tdep.c (arm_dump_tdep): Add \n in fprintf.
9789
8ddd8e0e
SM
97902020-02-11 Simon Marchi <simon.marchi@efficios.com>
9791
9792 * configure: Re-generate.
9793
898e7f60
SM
97942020-02-11 Simon Marchi <simon.marchi@efficios.com>
9795
9796 * configure: Re-generate.
9797
58df732b
SM
97982020-02-11 Simon Marchi <simon.marchi@efficios.com>
9799
9800 * acinclude: Update warning.m4 path.
9801 * warning.m4: Move to gdbsupport.
9802
da5bd37e
TT
98032020-02-11 Tom Tromey <tromey@adacore.com>
9804
9805 * remote.c (remote_console_output): Update.
9806 * printcmd.c (printf_command): Update.
9807 * event-loop.c (gdb_wait_for_event): Update.
9808 * linux-nat.c (sigchld_handler): Update.
9809 * remote-sim.c (gdb_os_write_stdout): Update.
9810 (gdb_os_flush_stdout): Update.
9811 (gdb_os_flush_stderr): Update.
9812 (gdb_os_write_stderr): Update.
9813 * exceptions.c (print_exception): Update.
9814 * remote-fileio.c (remote_fileio_func_read): Update.
9815 (remote_fileio_func_write): Update.
9816 * tui/tui.c (tui_enable): Update.
9817 * tui/tui-interp.c (tui_interp::init): Update.
9818 * utils.c (init_page_info): Update.
9819 (putchar_unfiltered, fputc_unfiltered): Update.
9820 (gdb_flush): Update.
9821 (emit_style_escape): Update.
9822 (flush_wrap_buffer, fputs_maybe_filtered): Update.
9823 * ui-file.c (ui_file_isatty, ui_file_read, ui_file_write)
9824 (ui_file_write_async_safe, ui_file_flush, ui_file_puts): Remove.
9825 (stderr_file::write): Update.
9826 (stderr_file::puts): Update.
9827 * ui-file.h (ui_file_isatty, ui_file_write)
9828 (ui_file_write_async_safe, ui_file_read, ui_file_flush)
9829 (ui_file_puts): Don't declare.
9830
85f0dd3c
TV
98312020-02-10 Tom de Vries <tdevries@suse.de>
9832
9833 * dwarf2/read.c (process_psymtab_comp_unit_reader): Cast concat NULL
9834 sentinel to char *.
9835
2e927613
TV
98362020-02-09 Tom de Vries <tdevries@suse.de>
9837
9838 * dwarf2read.c (process_psymtab_comp_unit_reader): Append CU offset to
9839 filename if it matches "<artificial>".
9840
6bafc845
HD
98412020-02-09 Hannes Domani <ssbssa@yahoo.de>
9842
9843 * windows-tdep.c (struct enum_value_name): New struct.
9844 (create_enum): New function.
9845 (windows_get_siginfo_type): Create and use enum types.
9846
7928d571
HD
98472020-02-09 Hannes Domani <ssbssa@yahoo.de>
9848
9849 * NEWS: Mention $_siginfo support for Windows.
9850 * windows-nat.c (handle_exception): Set siginfo_er.
9851 (windows_nat_target::mourn_inferior): Reset siginfo_er.
9852 (windows_xfer_siginfo): New function.
9853 (windows_nat_target::xfer_partial): Call windows_xfer_siginfo.
9854 * windows-tdep.c (struct windows_gdbarch_data): New struct.
9855 (init_windows_gdbarch_data): New function.
9856 (get_windows_gdbarch_data): New function.
9857 (windows_get_siginfo_type): New function.
9858 (windows_init_abi): Register windows_get_siginfo_type.
9859 (_initialize_windows_tdep): Register init_windows_gdbarch_data.
9860
6751ebae
TT
98612020-02-08 Tom Tromey <tom@tromey.com>
9862
9863 * dwarf2/read.c (class cutu_reader) <cutu_reader,
9864 init_tu_and_read_dwo_dies>: Remove "keep" parameter.
9865 <keep>: Declare method.
9866 <m_keep>: Remove member.
9867 <~cutu_reader>: Remove.
9868 (cutu_reader::init_tu_and_read_dwo_dies): Update.
9869 (cutu_reader::cutu_reader): Update.
9870 (cutu_reader::keep): Rename from ~cutu_reader.
9871 (process_psymtab_comp_unit, build_type_psymtabs_1)
9872 (process_skeletonless_type_unit, load_partial_comp_unit)
9873 (load_full_comp_unit, dwarf2_read_addr_index)
9874 (read_signatured_type): Update.
9875
135f5437
TT
98762020-02-08 Tom Tromey <tom@tromey.com>
9877
9878 * dwarf2/read.c (process_psymtab_comp_unit_reader): Remove
9879 "want_partial_unit" parameter.
9880 (process_psymtab_comp_unit): Change want_partial_unit to bool.
9881 Inline check for DW_TAG_partial_unit.
9882 (dwarf2_build_psymtabs_hard, scan_partial_symbols): Update.
9883
9f66ff1c
TT
98842020-02-08 Tom Tromey <tom@tromey.com>
9885
9886 * dwarf2/read.c (read_n_bytes, read_direct_string): Move to
9887 read.c.
9888 * dwarf2/leb.h (read_n_bytes, read_direct_string): Move from
9889 read.c.
9890
c8a7a66f
TT
98912020-02-08 Tom Tromey <tom@tromey.com>
9892
9893 * dwarf2/read.c (read_address): Move to comp-unit.c.
9894 (dwarf2_rnglists_process, dwarf2_ranges_process)
9895 (read_attribute_value, dwarf_decode_lines_1)
9896 (var_decode_location, decode_locdesc): Update.
9897 * dwarf2/comp-unit.c (comp_unit_head::read_address): Move from
9898 read.c. Remove "cu" parameter.
9899 * dwarf2/comp-unit.h (struct comp_unit_head) <read_address>: New
9900 method.
9901
8266302d
TT
99022020-02-08 Tom Tromey <tom@tromey.com>
9903
9904 * dwarf2/read.c (read_attribute_value, read_indirect_string)
9905 (read_indirect_line_string): Update.
9906 * dwarf2/comp-unit.c (read_offset): Remove.
9907 (read_comp_unit_head): Update.
9908 * dwarf2/comp-unit.h (struct comp_unit_head) <read_offset>: New
9909 method.
9910 (read_offset): Don't declare.
9911
4057dfde
TT
99122020-02-08 Tom Tromey <tom@tromey.com>
9913
9914 * Makefile.in (COMMON_SFILES): Add dwarf2/comp-unit.c.
9915 * dwarf2/read.c (struct comp_unit_head): Move to
9916 dwarf2/comp-unit.h.
9917 (enum class rcuh_kind): Move to comp-unit.h.
9918 (get_cu_length, offset_in_cu_p): Now methods on comp_unit_head.
9919 (read_comp_unit_head, error_check_comp_unit_head)
9920 (read_and_check_comp_unit_head): Move to comp-unit.c.
9921 (read_offset, dwarf_unit_type_name): Likewise.
9922 (create_debug_type_hash_table, read_cutu_die_from_dwo)
9923 (cutu_reader::cutu_reader, read_call_site_scope)
9924 (find_partial_die, follow_die_offset): Update.
9925 * dwarf2/comp-unit.h: New file, from dwarf2read.c.
9926
24aa364d
TT
99272020-02-08 Tom Tromey <tom@tromey.com>
9928
9929 * dwarf2/read.c (read_offset_1): Move to leb.c.
9930 (read_abbrev_offset, read_offset, dwarf_decode_line_header)
9931 (dwarf_decode_macro_bytes): Update.
9932 * dwarf2/leb.c (read_offset): Rename; move from read.c.
9933 * dwarf2/leb.h (read_offset): Declare.
9934
2c7d5afc
TT
99352020-02-08 Tom Tromey <tom@tromey.com>
9936
9937 * dwarf2/read.c (dwarf2_section_size): Remove.
9938 (error_check_comp_unit_head, dwarf2_symbol_mark_computed):
9939 Update.
9940 * dwarf2/section.h (struct dwarf2_section_info) <get_size>: New method.
9941
4075cb26
TT
99422020-02-08 Tom Tromey <tom@tromey.com>
9943
9944 * dwarf2/read.c (read_initial_length): Move to leb.c.
9945 * dwarf2/leb.h (read_initial_length): Declare.
9946 * dwarf2/leb.c (read_initial_length): Move from read.c. Add
9947 handle_nonstd parameter.
9948 * dwarf2/frame.c (read_initial_length): Remove.
9949 (decode_frame_entry_1): Update.
9950
09ba997f
TT
99512020-02-08 Tom Tromey <tom@tromey.com>
9952
9953 * dwarf2/loc.c (dwarf2_find_location_expression)
9954 (dwarf_evaluate_loc_desc::get_tls_address)
9955 (dwarf_evaluate_loc_desc::push_dwarf_reg_entry_value)
9956 (rw_pieced_value, dwarf2_evaluate_loc_desc_full)
9957 (dwarf2_locexpr_baton_eval, dwarf2_evaluate_property)
9958 (dwarf2_compile_property_to_c)
9959 (dwarf2_loc_desc_get_symbol_read_needs)
9960 (dwarf2_compile_expr_to_ax, locexpr_describe_location)
9961 (locexpr_tracepoint_var_ref, locexpr_generate_c_location)
9962 (loclist_describe_location, loclist_tracepoint_var_ref)
9963 (loclist_generate_c_location): Update.
9964 * compile/compile-loc2c.c (do_compile_dwarf_expr_to_c): Update.
9965 * dwarf2/loc.h (dwarf2_per_cu_objfile, dwarf2_per_cu_addr_size)
9966 (dwarf2_per_cu_ref_addr_size, dwarf2_per_cu_offset_size)
9967 (dwarf2_per_cu_text_offset, dwarf2_version): Don't declare.
9968 * dwarf2/read.c (dwarf2_per_cu_data::objfile)
9969 (dwarf2_per_cu_data::addr_size)
9970 (dwarf2_per_cu_data::ref_addr_size)
9971 (dwarf2_per_cu_data::text_offset)
9972 (dwarf2_per_cu_data::addr_type): Now methods.
9973 (per_cu_header_read_in): Make per_cu "const".
9974 (dwarf2_version): Remove.
9975 (dwarf2_per_cu_data::int_type): Now a method.
9976 (dwarf2_per_cu_data::_addr_sized_int_type): Likewise.
9977 (set_die_type, read_array_type, read_subrange_index_type)
9978 (read_tag_string_type, read_subrange_type): Update.
9979 * dwarf2/read.h (struct dwarf2_per_cu_data) <addr_size,
9980 offset_size, ref_addr_size, text_offset, addr_type, version,
9981 objfile, int_type, addr_sized_int_type>: Declare methods.
9982
96c738c0
TT
99832020-02-08 Tom Tromey <tom@tromey.com>
9984
9985 * dwarf2/read.h (struct dwarf2_per_cu_data) <imported_symtabs>:
9986 Move earlier.
9987
8fdd972c
TT
99882020-02-08 Tom Tromey <tom@tromey.com>
9989
9990 * dwarf2/read.h (dwarf_line_debug): Declare.
9991 * Makefile.in (COMMON_SFILES): Add dwarf2/line-header.c.
9992 * dwarf2/read.c: Move line_header code to new files.
9993 (dwarf_line_debug): No longer static.
9994 * dwarf2/line-header.c: New file.
9995 * dwarf2/line-header.h: New file.
9996
03075812
TT
99972020-02-08 Tom Tromey <tom@tromey.com>
9998
9999 * dwarf2/read.c (struct line_header) <file_full_name,
10000 file_file_name>: Return unique_xmalloc_ptr.
10001 (line_header::file_file_name): Update.
10002 (line_header::file_full_name): Update.
10003 (dw2_get_file_names_reader): Update.
10004 (macro_start_file): Update.
10005
bb822404
TT
100062020-02-08 Tom Tromey <tom@tromey.com>
10007
10008 * dwarf2/read.c (struct line_header) <file_full_name,
10009 file_file_name>: Declare methods.
10010 (dw2_get_file_names_reader): Update.
10011 (file_file_name): Now a method.
10012 (file_full_name): Likewise.
10013 (macro_start_file): Update.
10014
009b64fc
TT
100152020-02-08 Tom Tromey <tom@tromey.com>
10016
10017 * dwarf2/read.c (dwarf_always_disassemble)
10018 (show_dwarf_always_disassemble): Move to loc.c.
10019 (_initialize_dwarf2_read): Move "always-disassemble" registration
10020 to loc.c.
10021 * dwarf2/read.h (dwarf_always_disassemble): Don't declare.
10022 * dwarf2/loc.c (dwarf_always_disassemble): Move from read.c. Now
10023 static.
10024 (show_dwarf_always_disassemble): Move from read.c.
10025 (_initialize_dwarf2loc): Move always-disassemble from read.c.
10026
5895093f
TT
100272020-02-08 Tom Tromey <tom@tromey.com>
10028
10029 * dwarf2/read.c (~dwarf2_per_objfile): Update.
10030 (create_quick_file_names_table): Return htab_up.
10031 (dw2_get_file_names_reader, dw2_forget_cached_source_info):
10032 Update.
10033 * dwarf2/read.h (struct dwarf2_per_objfile)
10034 <quick_file_names_table>: Now htab_up.
10035
b3b32279
TT
100362020-02-08 Tom Tromey <tom@tromey.com>
10037
10038 * dwarf2/abbrev.c (abbrev_table::read): Simplify.
10039
1d33d811
TT
100402020-02-08 Tom Tromey <tom@tromey.com>
10041
10042 * dwarf2/abbrev.c (abbrev_table): Move constructor from header.
10043 Rewrite.
10044 (abbrev_table::add_abbrev, abbrev_table::lookup_abbrev): Rewrite.
10045 * dwarf2/abbrev.h (struct abbrev_info) <next>: Remove.
10046 (abbrev_table::abbrev_table): No longer inline.
10047 (ABBREV_HASH_SIZE): Remove.
10048 (abbrev_table::m_abbrevs): Now an htab_up.
10049
86de1d91
TT
100502020-02-08 Tom Tromey <tom@tromey.com>
10051
10052 * dwarf2/read.c (read_cutu_die_from_dwo): Update.
10053 (cutu_reader): Update.
10054 (build_type_psymtabs_1): Update.
10055 * dwarf2/abbrev.c (abbrev_table::read): Rename.
10056 (abbrev_table::alloc_abbrev): Update.
10057 * dwarf2/abbrev.h (abbrev_table_up): Move earlier.
10058 (abbrev_table::read): New static method, renamed from
10059 abbrev_table_read_table.
10060 (abbrev_table::alloc_abbrev)
10061 (abbrev_table::add_abbrev): Now private.
10062 (abbrev_table::abbrev_table): Now private.
10063 (abbrev_table::m_abbrev_obstack): Now private. Rename.
10064
0335378b
TT
100652020-02-08 Tom Tromey <tom@tromey.com>
10066
10067 * dwarf2/read.c (set_die_type, get_die_type_at_offset): Update.
10068 * dwarf2/read.h (struct dwarf2_per_objfile) <die_type_hash>: Now
10069 htab_up.
10070
48b490f2
TT
100712020-02-08 Tom Tromey <tom@tromey.com>
10072
10073 * dwarf2/read.c (struct dwp_file) <loaded_cus, loaded_tus>: Now
10074 htab_up.
10075 (lookup_dwo_unit_in_dwp): Update.
10076 (allocate_dwp_loaded_cutus_table): Return htab_up. Don't allocate
10077 on obstack.
10078
bc68fb19
TT
100792020-02-08 Tom Tromey <tom@tromey.com>
10080
10081 * dwarf2/read.c (allocate_dwo_file_hash_table): Don't allocate on
10082 obstack.
10083
d15acc42
TT
100842020-02-08 Tom Tromey <tom@tromey.com>
10085
10086 * dwarf2/read.c (~dwarf2_per_objfile): Don't delete
10087 line_header_hash.
10088 (handle_DW_AT_stmt_list): Update. Don't allocate on obstack.
10089 * dwarf2/read.h (struct dwarf2_per_objfile) <line_header_hash>:
10090 Change type to htab_up.
10091
eaa5fa8b
TT
100922020-02-08 Tom Tromey <tom@tromey.com>
10093
10094 * dwarf2/read.c (allocate_type_unit_groups_table): Return
10095 htab_up. Don't allocate on obstack.
10096 (get_type_unit_group, dwarf2_build_psymtabs_hard): Update.
10097 * dwarf2/read.h (struct dwarf2_per_objfile) <type_unit_groups>:
10098 Change type to htab_up.
10099
b0b6a987
TT
101002020-02-08 Tom Tromey <tom@tromey.com>
10101
10102 * dwarf2/read.h (struct dwarf2_per_objfile) <signatured_types>:
10103 Change type to htab_up.
10104 * dwarf2/read.c (create_signatured_type_table_from_index)
10105 (create_signatured_type_table_from_debug_names)
10106 (create_all_type_units, add_type_unit)
10107 (lookup_dwo_signatured_type, lookup_signatured_type)
10108 (process_skeletonless_type_unit): Update.
10109 (create_debug_type_hash_table, create_debug_types_hash_table):
10110 Change type of types_htab.
10111 (allocate_signatured_type_table, allocate_dwo_unit_table): Return
10112 htab_up. Don't allocate on obstack.
10113 (create_cus_hash_table): Change type of cus_htab parameter.
10114 (struct dwo_file) <cus, tus>: Now htab_up.
10115 (lookup_dwo_signatured_type, lookup_dwo_cutu)
10116 (process_dwo_file_for_skeletonless_type_units, lookup_dwo_cutu)
10117 (queue_and_load_all_dwo_tus): Update.
10118 * dwarf2/index-write.c (write_gdbindex): Update.
10119 (write_debug_names): Update.
10120
39856def
TT
101212020-02-08 Tom Tromey <tom@tromey.com>
10122
10123 * dwarf2/read.h (struct dwarf2_queue_item): Move from
10124 dwarf2/read.c. Remove "next" member. Add constructor ntad
10125 destructor.
10126 (struct dwarf2_per_objfile) <queue>: New member.
10127 * dwarf2/read.c (struct dwarf2_queue_item): Move to
10128 dwarf2/read.h.
10129 (dwarf2_queue, dwarf2_queue_tail): Remove.
10130 (class dwarf2_queue_guard): Add parameter to constructor. Use
10131 DISABLE_COPY_AND_ASSIGN.
10132 <m_per_objfile>: New member.
10133 <~dwarf2_queue_guard>: Rewrite.
10134 (dw2_do_instantiate_symtab, queue_comp_unit, process_queue):
10135 Update.
10136 (~dwarf2_queue_item): New.
10137
3e225074
TT
101382020-02-08 Tom Tromey <tom@tromey.com>
10139
10140 * dwarf2/read.c (struct die_info) <has_children>: New member.
10141 (dw2_get_file_names_reader): Remove has_children.
10142 (dw2_get_file_names): Update.
10143 (read_cutu_die_from_dwo): Remove has_children.
10144 (cutu_reader::init_tu_and_read_dwo_dies)
10145 (cutu_reader::cutu_reader): Update.
10146 (process_psymtab_comp_unit_reader, build_type_psymtabs_reader):
10147 Remove has_children.
10148 (build_type_psymtabs_1, process_skeletonless_type_unit)
10149 (load_partial_comp_unit, load_full_comp_unit): Update.
10150 (create_dwo_cu_reader): Remove has_children.
10151 (create_cus_hash_table, read_die_and_children): Update.
10152 (read_full_die_1,read_full_die): Remove has_children.
10153 (read_signatured_type): Update.
10154 (class cutu_reader) <has_children>: Remove.
10155
82ca8957
TT
101562020-02-08 Tom Tromey <tom@tromey.com>
10157
10158 * dwarf2/expr.c: Rename from dwarf2expr.c.
10159 * dwarf2/expr.h: Rename from dwarf2expr.h.
10160 * dwarf2/frame-tailcall.c: Rename from dwarf2-frame-tailcall.c.
10161 * dwarf2/frame-tailcall.h: Rename from dwarf2-frame-tailcall.h.
10162 * dwarf2/frame.c: Rename from dwarf2-frame.c.
10163 * dwarf2/frame.h: Rename from dwarf2-frame.h.
10164 * dwarf2/index-cache.c: Rename from dwarf-index-cache.c.
10165 * dwarf2/index-cache.h: Rename from dwarf-index-cache.h.
10166 * dwarf2/index-common.c: Rename from dwarf-index-common.c.
10167 * dwarf2/index-common.h: Rename from dwarf-index-common.h.
10168 * dwarf2/index-write.c: Rename from dwarf-index-write.c.
10169 * dwarf2/index-write.h: Rename from dwarf-index-write.h.
10170 * dwarf2/loc.c: Rename from dwarf2loc.c.
10171 * dwarf2/loc.h: Rename from dwarf2loc.h.
10172 * dwarf2/read.c: Rename from dwarf2read.c.
10173 * dwarf2/read.h: Rename from dwarf2read.h.
10174 * dwarf2/abbrev.c, aarch64-tdep.c, alpha-tdep.c,
10175 amd64-darwin-tdep.c, arc-tdep.c, arm-tdep.c, bfin-tdep.c,
10176 compile/compile-c-symbols.c, compile/compile-cplus-symbols.c,
10177 compile/compile-loc2c.c, cris-tdep.c, csky-tdep.c, findvar.c,
10178 gdbtypes.c, guile/scm-type.c, h8300-tdep.c, hppa-bsd-tdep.c,
10179 hppa-linux-tdep.c, i386-darwin-tdep.c, i386-linux-tdep.c,
10180 i386-tdep.c, iq2000-tdep.c, m32c-tdep.c, m68hc11-tdep.c,
10181 m68k-tdep.c, microblaze-tdep.c, mips-tdep.c, mn10300-tdep.c,
10182 msp430-tdep.c, nds32-tdep.c, nios2-tdep.c, or1k-tdep.c,
10183 riscv-tdep.c, rl78-tdep.c, rs6000-tdep.c, rx-tdep.c, s12z-tdep.c,
10184 s390-tdep.c, score-tdep.c, sh-tdep.c, sparc-linux-tdep.c,
10185 sparc-tdep.c, sparc64-linux-tdep.c, sparc64-tdep.c, tic6x-tdep.c,
10186 tilegx-tdep.c, v850-tdep.c, xstormy16-tdep.c, xtensa-tdep.c:
10187 Update.
10188 * Makefile.in (COMMON_SFILES): Update.
10189 (HFILES_NO_SRCDIR): Update.
10190
9e35d499
TT
101912020-02-08 Tom Tromey <tom@tromey.com>
10192
10193 * dwarf2read.c (struct die_reader_specs) <comp_dir>: Remove.
10194 (init_cu_die_reader, read_cutu_die_from_dwo): Update.
10195
1eba2311
TT
101962020-02-08 Tom Tromey <tom@tromey.com>
10197
10198 * dwarf2read.h (struct die_info): Don't declare.
10199
e41c2da2
TT
102002020-02-08 Tom Tromey <tom@tromey.com>
10201
10202 * dwarf2read.h (die_info_ptr): Remove typedef.
10203
4fc6c0d5
TT
102042020-02-08 Tom Tromey <tom@tromey.com>
10205
10206 * dwarf2read.c (read_call_site_scope)
10207 (handle_data_member_location, dwarf2_add_member_fn)
10208 (mark_common_block_symbol_computed, read_common_block)
10209 (attr_to_dynamic_prop, partial_die_info::read)
10210 (var_decode_location, dwarf2_fetch_die_loc_sect_off)
10211 (dwarf2_symbol_mark_computed, set_die_type): Update.
10212 * dwarf2/attribute.h (struct attribute) <form_is_block>: Declare
10213 method.
10214 (attr_form_is_block): Don't declare.
10215 * dwarf2/attribute.c (attribute::form_is_block): Now a method.
10216
cd6c91b4
TT
102172020-02-08 Tom Tromey <tom@tromey.com>
10218
10219 * dwarf2read.c (dwarf2_find_base_address, )
10220 (read_call_site_scope, rust_containing_type)
10221 (dwarf2_get_pc_bounds, dwarf2_record_block_ranges)
10222 (handle_data_member_location, dwarf2_add_member_fn)
10223 (get_alignment, read_structure_type, process_structure_scope)
10224 (mark_common_block_symbol_computed, read_common_block)
10225 (read_tag_string_type, attr_to_dynamic_prop, read_subrange_type)
10226 (partial_die_info::read, read_attribute_value, new_symbol)
10227 (lookup_die_type, dwarf2_get_ref_die_offset)
10228 (dwarf2_get_attr_constant_value, follow_die_ref_or_sig)
10229 (dwarf2_fetch_die_loc_sect_off, get_DW_AT_signature_type)
10230 (dwarf2_symbol_mark_computed): Update.
10231 * dwarf2/attribute.h (struct attribute) <value_as_address,
10232 form_is_section_offset, form_is_constant, form_is_ref>: Declare
10233 methods.
10234 (value_as_address, attr_form_is_section_offset)
10235 (attr_form_is_constant, attr_form_is_ref): Don't declare.
10236 * dwarf2/attribute.c (attribute::value_as_address)
10237 (attribute::form_is_section_offset, attribute::form_is_constant)
10238 (attribute::form_is_ref): Now methods.
10239
162dce55
TT
102402020-02-08 Tom Tromey <tom@tromey.com>
10241
10242 * dwarf2read.c (struct attribute, DW_STRING)
10243 (DW_STRING_IS_CANONICAL, DW_UNSND, DW_BLOCK, DW_SND, DW_ADDR)
10244 (DW_SIGNATURE, struct dwarf_block, attr_value_as_address)
10245 (attr_form_is_block, attr_form_is_section_offset)
10246 (attr_form_is_constant, attr_form_is_ref): Move.
10247 * dwarf2/attribute.h: New file.
10248 * dwarf2/attribute.c: New file, from dwarf2read.c.
10249 * Makefile.in (COMMON_SFILES): Add dwarf2/attribute.c.
10250
3054dd54
TT
102512020-02-08 Tom Tromey <tom@tromey.com>
10252
10253 * dwarf2read.c (abbrev_table_up, struct abbrev_info)
10254 (struct attr_abbrev, ABBREV_HASH_SIZE, struct abbrev_table):
10255 Move.
10256 (read_cutu_die_from_dwo, build_type_psymtabs_1): Update.
10257 (abbrev_table::alloc_abbrev, abbrev_table::add_abbrev)
10258 (abbrev_table::lookup_abbrev, abbrev_table_read_table): Move to
10259 abbrev.c.
10260 * dwarf2/abbrev.h: New file.
10261 * dwarf2/abbrev.c: New file, from dwarf2read.c.
10262 * Makefile.in (COMMON_SFILES): Add dwarf2/abbrev.c.
10263
96b79293
TT
102642020-02-08 Tom Tromey <tom@tromey.com>
10265
10266 * dwarf2read.c (dwarf2_section_buffer_overflow_complaint)
10267 (dwarf2_section_size, dwarf2_get_section_info)
10268 (create_signatured_type_table_from_debug_names)
10269 (create_addrmap_from_aranges, read_debug_names_from_section)
10270 (get_gdb_index_contents_from_section, read_comp_unit_head)
10271 (error_check_comp_unit_head, read_abbrev_offset)
10272 (create_debug_type_hash_table, init_cu_die_reader)
10273 (read_cutu_die_from_dwo, dwarf2_build_psymtabs_hard)
10274 (read_comp_units_from_section, create_cus_hash_table)
10275 (create_dwp_hash_table, create_dwo_unit_in_dwp_v1)
10276 (create_dwp_v2_section, dwarf2_rnglists_process)
10277 (dwarf2_ranges_process, read_die_and_siblings, read_full_die)
10278 (abbrev_table_read_table, read_indirect_string_at_offset_from)
10279 (read_indirect_string_from_dwz, read_addr_index_1)
10280 (read_str_index, dwarf_decode_line_header, skip_form_bytes)
10281 (dwarf_decode_macro_bytes, dwarf_decode_macros)
10282 (fill_in_loclist_baton): Update.
10283 * dwarf2/section.h (struct dwarf2_section_info) <get_name,
10284 get_containing_section, get_bfd_owner, get_bfd_section,
10285 get_file_name, get_id, get_flags, empty, read>: Declare methods.
10286 (dwarf2_read_section, get_section_name, get_section_file_name)
10287 (get_containing_section, get_section_bfd_owner)
10288 (get_section_bfd_section, get_section_name, get_section_file_name)
10289 (get_section_id, get_section_flags, dwarf2_section_empty_p): Don't
10290 declare.
10291 * dwarf2/section.c (dwarf2_section_info::get_containing_section)
10292 (dwarf2_section_info::get_bfd_owner)
10293 (dwarf2_section_info::get_bfd_section)
10294 (dwarf2_section_info::get_name)
10295 (dwarf2_section_info::get_file_name, dwarf2_section_info::get_id)
10296 (dwarf2_section_info::get_flags, dwarf2_section_info::empty)
10297 (dwarf2_section_info::read): Now methods.
10298 * dwarf-index-write.c (class debug_names): Update.
10299
2c86cff9
TT
103002020-02-08 Tom Tromey <tom@tromey.com>
10301
10302 * dwarf2read.h (struct dwarf2_section_info, dwarf2_read_section):
10303 Move to dwarf2/section.h.
10304 * dwarf2read.c (get_containing_section, get_section_bfd_owner)
10305 (get_section_bfd_section, get_section_name)
10306 (get_section_file_name, get_section_id, get_section_flags)
10307 (dwarf2_section_empty_p, dwarf2_read_section): Moe to
10308 dwarf2/section.c.
10309 * dwarf2/section.h: New file.
10310 * dwarf2/section.c: New file, from dwarf2read.c.
10311 * Makefile.in (COMMON_SFILES): Add dwarf2/section.c.
10312
f4382c45
TT
103132020-02-08 Tom Tromey <tom@tromey.com>
10314
10315 * dwarf2read.h (read_unsigned_leb128): Don't declare.
10316 * dwarf2read.c (read_1_byte, read_1_signed_byte, read_2_bytes)
10317 (read_2_signed_bytes, read_3_bytes, read_4_bytes)
10318 (read_4_signed_bytes, read_8_bytes): Move to dwarf2/leb.h.
10319 (read_unsigned_leb128, read_signed_leb128): Move to dwarf2/leb.c.
10320 * dwarf2/leb.h: New file, from dwarf2read.c.
10321 * dwarf2/leb.c: New file, from dwarf2read.c.
10322 * dwarf2-frame.c (read_1_byte, read_4_bytes, read_8_bytes):
10323 Remove.
10324 * Makefile.in (CONFIG_SRC_SUBDIR): Add dwarf2.
10325 (COMMON_SFILES): Add dwarf2/leb.c.
10326
01840b7a
JB
103272020-02-08 Joel Brobecker <brobecker@adacore.com>
10328
10329 GDB 9.1 released.
10330
dfcb27e4
IB
103312020-02-05 Iain Buclaw <ibuclaw@gdcproject.org>
10332
10333 PR gdb/25190:
aac66a4c
SM
10334 * gdb/remote-sim.c (gdb_os_write_stderr): Update.
10335 * gdb/remote.c (remote_console_output): Update.
10336 * gdb/ui-file.c (fputs_unfiltered): Rename to...
10337 (ui_file_puts): ...this.
10338 * gdb/ui-file.h (ui_file_puts): Add declaration.
10339 * gdb/utils.c (emit_style_escape): Update.
10340 (flush_wrap_buffer): Update.
10341 (fputs_maybe_filtered): Update.
10342 (fputs_unfiltered): Add function.
dfcb27e4 10343
faa17681
IB
103442020-02-05 Iain Buclaw <ibuclaw@gdcproject.org>
10345
aac66a4c
SM
10346 * gdb/event-loop.c (gdb_wait_for_event): Update.
10347 * gdb/printcmd.c (printf_command): Update.
10348 * gdb/remote-fileio.c (remote_fileio_func_write): Update.
10349 * gdb/remote-sim.c (gdb_os_flush_stdout): Update.
10350 (gdb_os_flush_stderr): Update.
10351 * gdb/remote.c (remote_console_output): Update.
10352 * gdb/ui-file.c (gdb_flush): Rename to...
10353 (ui_file_flush): ...this.
10354 (stderr_file::write): Update.
10355 (stderr_file::puts): Update.
10356 * gdb/ui-file.h (gdb_flush): Rename to...
10357 (ui_file_flush): ...this.
10358 * gdb/utils.c (gdb_flush): Add function.
10359 * gdb/utils.h (gdb_flush): Add declaration.
faa17681 10360
5abbbe1d
TT
103612020-02-07 Tom Tromey <tromey@adacore.com>
10362
10363 PR breakpoints/24915:
10364 * source.c (find_and_open_source): Do not check basenames_may_differ.
10365
919adfe8
TT
103662020-02-07 Tom Tromey <tom@tromey.com>
10367
10368 * README: Update gdbserver documentation.
10369 * gdbserver: Move to top level.
10370 * configure.tgt (build_gdbserver): Remove.
10371 * configure.ac: Remove --enable-gdbserver.
10372 * configure: Rebuild.
10373 * Makefile.in (distclean): Don't mention gdbserver.
10374
1d5d29e7
SV
103752020-02-06 Shahab Vahedi <shahab@synopsys.com>
10376
10377 * source-cache.c (source_cache::ensure): Surround
10378 get_plain_source_lines with a try/catch.
10379 (source_cache::get_line_charpos): Get rid of try/catch
10380 and only check for the return value of "ensure".
10381 * tui/tui-source.c (tui_source_window::set_contents):
10382 Simplify "nlines" calculation.
10383
6eb1129c
SV
103842020-02-06 Shahab Vahedi <shahab@synopsys.com>
10385
10386 * MAINTAINERS (Write After Approval): Add myself.
10387
c6a42d11
CB
103882020-02-05 Christian Biesinger <cbiesinger@google.com>
10389
10390 * sparc-nat.h (struct sparc_target) <xfer_partial>: Fix base class
10391 function call.
10392
c8ecdda6
CB
103932020-02-05 Christian Biesinger <cbiesinger@google.com>
10394
10395 * ppc-nbsd-tdep.h: Fix macro name in #endif comment.
10396
f6480e70
MR
103972020-02-05 Maciej W. Rozycki <macro@wdc.com>
10398
10399 * nat/riscv-linux-tdesc.h: New file.
10400 * nat/riscv-linux-tdesc.c: New file, taking code from...
10401 * riscv-linux-nat.c (riscv_linux_nat_target::read_description):
10402 ... here.
10403 * configure.nat <linux> <riscv*>: Add nat/riscv-linux-tdesc.o to
10404 NATDEPFILES.
10405
dcc9fbc6
AB
104062020-02-04 Andrew Burgess <andrew.burgess@embecosm.com>
10407
10408 * remote-sim.c (sim_inferior_data::sim_inferior_data): Assert that
10409 we don't set the fake simulator ptid to the null_ptid.
10410
719546c4
SM
104112020-02-03 Simon Marchi <simon.marchi@efficios.com>
10412
10413 * fork-child.c (gdb_startup_inferior): Use bool instead of int.
10414 * gdbthread.h (class thread_info) <resumed>: Likewise.
10415 * infrun.c (resume_1): Likewise.
10416 (proceed): Likewise.
10417 (infrun_thread_stop_requested): Likewise.
10418 (stop_all_threads): Likewise.
10419 (handle_inferior_event): Likewise.
10420 (restart_threads): Likewise.
10421 (finish_step_over): Likewise.
10422 (keep_going_stepped_thread): Likewise.
10423 * linux-nat.c (attach_proc_task_lwp_callback): Likewise.
10424 (linux_handle_extended_wait): Likewise.
10425 * record-btrace.c (get_thread_current_frame_id): Likewise.
10426 * record-full.c (record_full_wait_1): Likewise.
10427 * remote.c (remote_target::process_initial_stop_replies): Likewise.
10428 * target.c (target_resume): Likewise.
10429 * thread.c (set_running_thread): Likewise.
10430
e409c542
AKS
104312020-02-03 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
10432
10433 * f-valprint.c (f77_print_array_1): Changed datatype of index
10434 variable to LONGEST from int to enable it to contain bound
10435 values correctly.
10436
ee98c0da
MR
104372020-02-03 Maciej W. Rozycki <macro@wdc.com>
10438
10439 * riscv-linux-nat.c [!NFPREG] (NFPREG): New macro.
10440 (supply_fpregset_regnum, fill_fpregset): Handle regset buffer
10441 offsets according to FLEN determined.
10442 (riscv_linux_nat_target::read_description): Determine FLEN
10443 dynamically.
10444 (riscv_linux_nat_target::fetch_registers): Size regset buffer
10445 according to FLEN determined.
10446 (riscv_linux_nat_target::store_registers): Likewise.
10447
aa66aac4
SV
104482020-02-01 Shahab Vahedi <shahab@synopsys.com>
10449
10450 * target-descriptions.c (tdesc_register_in_reggroup_p): Return 0
10451 when reg->group is empty and reggroup is not.
10452
fd9faca8
TT
104532020-01-31 Tom Tromey <tromey@adacore.com>
10454
10455 * ravenscar-thread.c (ravenscar_thread_target::mourn_inferior):
10456 Call beneath target's mourn_inferior after unpushing.
10457
42330a68
AB
104582020-01-31 Andrew Burgess <andrew.burgess@embecosm.com>
10459
10460 PR tui/9765
10461 * tui/tui-disasm.c (tui_find_disassembly_address): If we don't
10462 have enough lines to fill the screen, still return the lowest
10463 address we found.
10464
7a27a45b
AB
104652020-01-31 Andrew Burgess <andrew.burgess@embecosm.com>
10466
10467 * tui/tui-win.c (_initialize_tui_win): Update help text for '+',
10468 '-', '<', and '>' commands.
10469
c47f70e2
PA
104702020-01-29 Pedro Alves <palves@redhat.com>
10471 Sergio Durigan Junior <sergiodj@redhat.com>
10472
10473 * infcmd.c (construct_inferior_arguments): Assert that
10474 'argc' is greater than 0.
10475
5133a315
LM
104762020-01-29 Luis Machado <luis.machado@linaro.org>
10477
10478 * aarch64-tdep.c (BRK_INSN_MASK): Define to 0xffe0001f.
10479 (BRK_INSN_MASK): Define to 0xd4200000.
10480 (aarch64_program_breakpoint_here_p): New function.
10481 (aarch64_gdbarch_init): Set gdbarch_program_breakpoint_here_p hook.
10482 * arch-utils.c (default_program_breakpoint_here_p): Moved from
10483 breakpoint.c.
10484 * arch-utils.h (default_program_breakpoint_here_p): Moved from
10485 breakpoint.h
10486 * breakpoint.c (bp_loc_is_permanent): Changed return type to bool and
10487 call gdbarch_program_breakpoint_here_p.
10488 (program_breakpoint_here): Moved to arch-utils.c, renamed to
10489 default_program_breakpoint_here_p, changed return type to bool and
10490 simplified.
10491 * breakpoint.h (program_breakpoint_here): Moved prototype to
10492 arch-utils.h, renamed to default_program_breakpoint_here_p and changed
10493 return type to bool.
10494 * gdbarch.c: Regenerate.
10495 * gdbarch.h: Regenerate.
10496 * gdbarch.sh (program_breakpoint_here_p): New method.
10497 * infrun.c (handle_signal_stop): Call
10498 gdbarch_program_breakpoint_here_p.
10499
168f8c6b
TT
105002020-01-26 Tom Tromey <tom@tromey.com>
10501
10502 * ctfread.c (struct ctf_fp_info): Reindent.
10503 (_initialize_ctfread): Remove.
10504
128a391f
TT
105052020-01-26 Tom Tromey <tom@tromey.com>
10506
10507 * psymtab.c (partial_map_expand_apply)
10508 (psym_find_pc_sect_compunit_symtab, psym_lookup_symbol)
10509 (psymtab_to_symtab, psym_find_last_source_symtab, dump_psymtab)
10510 (psym_print_stats, psym_expand_symtabs_for_function)
10511 (psym_map_symbol_filenames, psym_map_matching_symbols)
10512 (psym_expand_symtabs_matching)
10513 (partial_symtab::read_dependencies, maintenance_info_psymtabs)
10514 (maintenance_check_psymtabs): Use new methods.
10515 * psympriv.h (struct partial_symtab) <readin_p,
10516 get_compunit_symtab>: New methods.
10517 <readin, compunit_symtab>: Remove members.
10518 (struct standard_psymtab): New.
10519 (struct legacy_psymtab): Derive from standard_psymtab.
10520 * dwarf2read.h (struct dwarf2_psymtab): Derive from
10521 standard_psymtab.
10522 * ctfread.c (struct ctf_psymtab): Derive from standard_psymtab.
10523
0494dbec
TT
105242020-01-26 Tom Tromey <tom@tromey.com>
10525
10526 * xcoffread.c (xcoff_psymtab_to_symtab_1): Call
10527 read_dependencies. Add assert.
10528 * psymtab.c (partial_symtab::read_dependencies): New method.
10529 * psympriv.h (struct partial_symtab) <read_dependencies>: New
10530 method.
10531 * mdebugread.c (psymtab_to_symtab_1): Call read_dependencies.
10532 * dwarf2read.c (dwarf2_psymtab::expand_psymtab): Call
10533 read_dependencies.
10534 * dbxread.c (dbx_psymtab_to_symtab_1): Call read_dependencies.
10535 Add assert.
10536
8566b89b
TT
105372020-01-26 Tom Tromey <tom@tromey.com>
10538
10539 * xcoffread.c (xcoff_psymtab_to_symtab_1): Change argument order.
10540 Call expand_psymtab.
10541 (xcoff_read_symtab): Call expand_psymtab.
10542 (xcoff_start_psymtab, xcoff_end_psymtab): Set
10543 legacy_expand_psymtab.
10544 * psympriv.h (struct partial_symtab) <expand_psymtab>: New
10545 method.
10546 (struct legacy_psymtab) <expand_psymtab>: Implement.
10547 <legacy_expand_psymtab>: New member.
10548 * mdebugread.c (mdebug_read_symtab): Call expand_psymtab.
10549 (parse_partial_symbols): Set legacy_expand_psymtab.
10550 (psymtab_to_symtab_1): Change argument order. Call
10551 expand_psymtab.
10552 (new_psymtab): Set legacy_expand_psymtab.
10553 * dwarf2read.h (struct dwarf2_psymtab) <expand_psymtab>: Declare.
10554 * dwarf2read.c (dwarf2_psymtab::read_symtab): Call
10555 expand_psymtab.
10556 (dwarf2_psymtab::expand_psymtab): Rename from
10557 psymtab_to_symtab_1. Call expand_psymtab.
10558 * dbxread.c (start_psymtab): Set legacy_expand_psymtab.
10559 (dbx_end_psymtab): Likewise.
10560 (dbx_psymtab_to_symtab_1): Change argument order. Call
10561 expand_psymtab.
10562 (dbx_read_symtab): Call expand_psymtab.
10563 * ctfread.c (struct ctf_psymtab) <expand_psymtab>: Declare.
10564 (ctf_psymtab::expand_psymtab): Rename from psymtab_to_symtab.
10565 (ctf_psymtab::read_symtab): Call expand_psymtab.
10566
077cbab2
TT
105672020-01-26 Tom Tromey <tom@tromey.com>
10568
10569 * xcoffread.c (xcoff_read_symtab): Remove prints. Add assert.
10570 * psymtab.c (psymtab_to_symtab): Print verbose "Reading"
10571 messages.
10572 * mdebugread.c (mdebug_read_symtab): Remove prints.
10573 * dwarf2read.c (dwarf2_psymtab::read_symtab): Remove prints. Add
10574 assert.
10575 * dbxread.c (dbx_read_symtab): Remove prints. Add assert.
10576
891813be
TT
105772020-01-26 Tom Tromey <tom@tromey.com>
10578
10579 * xcoffread.c (this_symtab_psymtab, read_xcoff_symtab)
10580 (xcoff_psymtab_to_symtab_1, xcoff_read_symtab)
10581 (xcoff_start_psymtab, xcoff_end_psymtab, scan_xcoff_symtab): Use
10582 legacy_symtab.
10583 * stabsread.h (dbx_end_psymtab): Use legacy_symtab.
10584 * psymtab.c (psymtab_to_symtab): Call method.
10585 (dump_psymtab): Update.
10586 * psympriv.h (struct partial_symtab): Add virtual destructor.
10587 <read_symtab>: New method.
10588 (struct legacy_symtab): New.
10589 * mdebugread.c (mdebug_read_symtab): Use legacy_psymtab.
10590 (struct pst_map) <pst>: Now a legacy_psymtab.
10591 (parse_procedure, parse_partial_symbols, psymtab_to_symtab_1)
10592 (new_psymtab): Use legacy_psymtab.
10593 * dwarf2read.h (struct dwarf2_psymtab): New.
10594 (struct dwarf2_per_cu_data) <psymtab>: Use it.
10595 * dwarf2read.c (dwarf2_create_include_psymtab)
10596 (dwarf2_build_include_psymtabs, create_type_unit_group)
10597 (create_partial_symtab, process_psymtab_comp_unit_reader)
10598 (build_type_psymtabs_reader, build_type_psymtab_dependencies)
10599 (set_partial_user): Use dwarf2_psymtab.
10600 (dwarf2_psymtab::read_symtab): Rename from dwarf2_read_symtab.
10601 (psymtab_to_symtab_1, process_full_comp_unit)
10602 (process_full_type_unit, dwarf2_ranges_read)
10603 (dwarf2_get_pc_bounds, psymtab_include_file_name)
10604 (dwarf_decode_lines): Use dwarf2_psymtab.
10605 * dwarf-index-write.c (psym_index_map): Use dwarf2_psymtab.
10606 (add_address_entry_worker, write_one_signatured_type)
10607 (recursively_count_psymbols, recursively_write_psymbols)
10608 (write_one_signatured_type, psyms_seen_size, write_gdbindex)
10609 (write_debug_names): Likewise.
10610 * dbxread.c (struct header_file_location): Take a legacy_psymtab.
10611 <pst>: Now a legacy_psymtab.
10612 (find_corresponding_bincl_psymtab): Return a legacy_psymtab.
10613 (read_dbx_symtab, start_psymtab, dbx_end_psymtab)
10614 (dbx_psymtab_to_symtab_1, read_ofile_symtab): Use legacy_psymtab.
10615 * ctfread.c (struct ctf_psymtab): New.
10616 (ctf_start_symtab, ctf_end_symtab, psymtab_to_symtab): Take a
10617 ctf_psymtab.
10618 (ctf_psymtab::read_symtab): Rename from ctf_read_symtab.
10619 (create_partial_symtab): Return a ctf_psymtab.
10620 (scan_partial_symbols): Update.
10621
c3693a1d
TT
106222020-01-26 Tom Tromey <tom@tromey.com>
10623
10624 * xcoffread.c (xcoff_start_psymtab): Use new.
10625 * psymtab.c (partial_symtab::partial_symtab): New constructor,
10626 renamed from start_psymtab_common.
10627 * psympriv.h (struct partial_symtab): Add new constructor.
10628 (start_psymtab_common): Don't declare.
10629 * mdebugread.c (parse_partial_symbols): Use new.
10630 * dwarf2read.c (create_partial_symtab): Use new.
10631 * dbxread.c (start_psymtab): Use new.
10632 * ctfread.c (create_partial_symtab): Use new.
10633
32caafd0
TT
106342020-01-26 Tom Tromey <tom@tromey.com>
10635
10636 * xcoffread.c (xcoff_end_psymtab): Use new.
10637 * psymtab.c (start_psymtab_common): Use new.
10638 (partial_symtab::partial_symtab): Rename from allocate_psymtab.
10639 Update.
10640 * psympriv.h (struct partial_symtab): Add parameters to
10641 constructor. Don't inline.
10642 (allocate_psymtab): Don't declare.
10643 * mdebugread.c (new_psymtab): Use new.
10644 * dwarf2read.c (dwarf2_create_include_psymtab): Use new.
10645 * dbxread.c (dbx_end_psymtab): Use new.
10646
abaa2f23
TT
106472020-01-26 Tom Tromey <tom@tromey.com>
10648
10649 * psymtab.h (class psymtab_storage) <install_psymtab>: Rename from
10650 allocate_psymtab. Update documentation.
10651 * psymtab.c (psymtab_storage::install_psymtab): Rename from
10652 allocate_psymtab. Do not use new.
10653 (allocate_psymtab): Use new. Update.
10654
6d94535f
TT
106552020-01-26 Tom Tromey <tom@tromey.com>
10656
10657 * xcoffread.c (xcoff_psymtab_to_symtab_1): Update.
10658 * psymtab.c (psym_print_stats): Update.
10659 * psympriv.h (struct partial_symtab) <readin,
10660 psymtabs_addrmap_supported, anonymous>: Now bool.
10661 * mdebugread.c (psymtab_to_symtab_1): Update.
10662 * dwarf2read.c (create_type_unit_group, create_partial_symtab)
10663 (build_type_psymtabs_reader, psymtab_to_symtab_1)
10664 (process_full_comp_unit, process_full_type_unit): Update.
10665 * dbxread.c (dbx_psymtab_to_symtab_1): Update.
10666 * ctfread.c (psymtab_to_symtab): Update.
10667
6f17252b
TT
106682020-01-26 Tom Tromey <tom@tromey.com>
10669
10670 * mdebugread.c (parse_partial_symbols): Use discard_psymtab.
10671 * psymtab.h (class psymtab_storage) <free_psymtabs>: Remove.
10672 * psymtab.c (psymtab_storage): Delete psymtabs.
10673 (psymtab_storage::allocate_psymtab): Use new.
10674 (psymtab_storage::discard_psymtab): Use delete.
10675 * psympriv.h (struct partial_symtab): Add constructor and
10676 initializers.
10677
f6f1cebc
TT
106782020-01-26 Tom Tromey <tom@tromey.com>
10679
10680 * machoread.c: Do not include psympriv.h.
10681
e47e48f6
PW
106822020-01-25 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10683
10684 * NEWS: Mention the new option and the set/show commands.
10685
a2fedca9
PW
106862020-01-25 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10687
10688 * exec.c (exec_file_mismatch_names, exec_file_mismatch_mode)
10689 (show_exec_file_mismatch_command, set_exec_file_mismatch_command)
10690 (validate_exec_file): New variables, enums, functions.
10691 (exec_file_locate_attach, print_section_info): Style the filenames.
10692 (_initialize_exec): Install show_exec_file_mismatch_command and
10693 set_exec_file_mismatch_command.
10694 * gdbcore.h (validate_exec_file): Declare.
10695 * infcmd.c (attach_command): Call validate_exec_file.
10696 * remote.c ( remote_target::remote_add_inferior): Likewise.
10697
7ffa82e1
AB
106982020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
10699
10700 * frame.c (find_frame_sal): Move call to get_next_frame into more
10701 inner scope.
10702 * inline-frame.c (inilne_state) <inline_state>: Update argument
10703 types.
10704 (inilne_state) <skipped_symbol>: Rename to...
10705 (inilne_state) <skipped_symbols>: ...this, and change to a vector.
10706 (skip_inline_frames): Build vector of skipped symbols and use this
10707 to reate the inline_state.
10708 (inline_skipped_symbol): Add a comment and some assertions, fetch
10709 skipped symbol from the list.
10710
3d92a3e3
AB
107112020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
10712
10713 * buildsym.c (lte_is_less_than): Delete.
10714 (buildsym_compunit::end_symtab_with_blockvector): Create local
10715 lambda function to sort line table entries, and use
10716 std::stable_sort instead of std::sort.
10717 * symtab.c (find_pc_sect_line): Skip backward over end of sequence
10718 markers when looking for a previous line.
10719
94a72be7
AB
107202020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
10721
10722 * dwarf2read.c (lnp_state_machine::record_line): Include
10723 end_sequence parameter in debug print out. Record the line if we
10724 are at an end_sequence marker even if it's not the start of a
10725 statement.
10726 * symmisc.c (maintenance_print_one_line_table): Print end of
10727 sequence markers with 'END' not '0'.
10728
53af73bf
PA
107292020-01-24 Pedro Alves <palves@redhat.com>
10730
10731 PR gdb/25410
10732 * thread.c (scoped_restore_current_thread::restore): Use
10733 switch_to_inferior_no_thread.
10734 * exec.c: Include "progspace-and-thread.h".
10735 (add_target_sections, remove_target_sections):
10736 scoped_restore_current_pspace_and_thread instead of
10737 scoped_restore_current_thread.
10738 * infrun.c (handle_vfork_child_exec_or_exit): Assign the pspace
10739 and aspace to the inferior before calling clone_program_space.
10740 Remove stale comment.
10741
3050c6f4
CB
107422020-01-24 Christian Biesinger <cbiesinger@google.com>
10743
10744 * arm-nbsd-nat.c (arm_nbsd_nat_target::fetch_registers): Rename to...
10745 (arm_netbsd_nat_target::fetch_registers): ...this.
10746 (arm_nbsd_nat_target::store_registers): Rename to...
10747 (arm_netbsd_nat_target::store_registers): ...this.
10748
73685c7e
CB
107492020-01-24 Christian Biesinger <cbiesinger@google.com>
10750
10751 * arm-nbsd-nat.c: Define _KERNTYPES to get the declaration of
10752 register_t.
10753
89203d40
CB
107542020-01-24 Christian Biesinger <cbiesinger@google.com>
10755
10756 * aarch64-fbsd-tdep.c (aarch64_fbsd_iterate_over_regset_sections):
10757 Update comment.
10758 * aarch64-linux-tdep.c (aarch64_linux_iterate_over_regset_sections):
10759 Likewise.
10760 * arm-fbsd-tdep.c (arm_fbsd_iterate_over_regset_sections): Likewise.
10761 * gdbcore.h (deprecated_add_core_fns): Update comment to point to
10762 the correct replacement (iterate_over_regset_sections).
10763 * riscv-fbsd-tdep.c (riscv_fbsd_iterate_over_regset_sections):
10764 Update comment.
10765
1ba1ac88
AB
107662020-01-24 Graham Markall <graham.markall@embecosm.com>
10767
10768 PR gdb/23718
10769 * gdb/python/python.c (execute_gdb_command): Call
10770 async_enable_stdin in catch block.
10771
f3364a6d
AB
107722020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
10773
10774 * event-loop.c (start_event_loop): Wrap async_enable_stdin with
10775 SWITCH_THRU_ALL_UIS.
10776
733d0a67
AB
107772020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
10778
10779 PR tui/9765
10780 * minsyms.c (lookup_minimal_symbol_by_pc_section): Update header
10781 comment, add extra parameter, and update to store previous symbol
10782 when appropriate.
10783 * minsyms.h (lookup_minimal_symbol_by_pc_section): Update comment,
10784 add extra parameter.
10785 * tui/tui-disasm.c (tui_disassemble): Update header comment,
10786 remove unneeded parameter, add try/catch around gdb_print_insn,
10787 rewrite to add items to asm_lines vector.
10788 (tui_find_backward_disassembly_start_address): New function.
10789 (tui_find_disassembly_address): Updated throughout.
10790 (tui_disasm_window::set_contents): Update for changes to
10791 tui_disassemble.
10792 (tui_disasm_window::do_scroll_vertical): No need to adjust the
10793 number of lines to scroll.
10794
b3b3bada
SM
107952020-01-23 Simon Marchi <simon.marchi@polymtl.ca>
10796
10797 * objfiles.h (ALL_OBJFILE_OSECTIONS): Move up.
10798 (SECT_OFF_DATA): Likewise.
10799 (SECT_OFF_RODATA): Likewise.
10800 (SECT_OFF_TEXT): Likewise.
10801 (SECT_OFF_BSS): Likewise.
10802 (struct objfile) <text_section_offset, data_section_offset>: New
10803 methods.
10804 * amd64-windows-tdep.c (amd64_windows_find_unwind_info): Use
10805 objfile::text_section_offset.
10806 * coff-pe-read.c (add_pe_forwarded_sym): Likewise.
10807 * coffread.c (coff_symtab_read): Likewise.
10808 (enter_linenos): Likewise.
10809 (process_coff_symbol): Likewise.
10810 * ctfread.c (get_objfile_text_range): Likewise.
10811 * dtrace-probe.c (dtrace_probe::get_relocated_address):
10812 Use objfile::data_section_offset.
10813 * dwarf2-frame.c (execute_cfa_program): Use
10814 objfile::text_section_offset.
10815 (dwarf2_frame_find_fde): Likewise.
10816 * dwarf2read.c (create_addrmap_from_index): Likewise.
10817 (create_addrmap_from_aranges): Likewise.
10818 (dw2_find_pc_sect_compunit_symtab): Likewise.
10819 (process_psymtab_comp_unit_reader): Likewise.
10820 (add_partial_symbol): Likewise.
10821 (add_partial_subprogram): Likewise.
10822 (process_full_comp_unit): Likewise.
10823 (read_file_scope): Likewise.
10824 (read_func_scope): Likewise.
10825 (read_lexical_block_scope): Likewise.
10826 (read_call_site_scope): Likewise.
10827 (dwarf2_rnglists_process): Likewise.
10828 (dwarf2_ranges_process): Likewise.
10829 (dwarf2_ranges_read): Likewise.
10830 (dwarf_decode_lines_1): Likewise.
10831 (new_symbol): Likewise.
10832 (dwarf2_fetch_die_loc_sect_off): Likewise.
10833 (dwarf2_per_cu_text_offset): Likewise.
10834 * hppa-bsd-tdep.c (hppabsd_find_global_pointer): Likewise.
10835 * hppa-tdep.c (read_unwind_info): Likewise.
10836 * ia64-tdep.c (ia64_find_unwind_table): Likewise.
10837 * psympriv.h (struct partial_symtab): Likewise.
10838 * psymtab.c (find_pc_sect_psymtab): Likewise.
10839 * solib-svr4.c (enable_break): Likewise.
10840 * stap-probe.c (relocate_address): Use
10841 objfile::data_section_offset.
10842 * xcoffread.c (enter_line_range): Use
10843 objfile::text_section_offset.
10844 (read_xcoff_symtab): Likewise.
10845
ab53f382
SM
108462020-01-23 Simon Marchi <simon.marchi@efficios.com>
10847
10848 * darwin-nat.c (darwin_nat_target::wait_1): Move `inf`
10849 declaration to narrower scopes.
10850
e7eee665
SM
108512020-01-23 Simon Marchi <simon.marchi@efficios.com>
10852
10853 * darwin-nat.h (struct darwin_exception_msg, enum
10854 darwin_msg_state, struct darwin_thread_info, darwin_thread_t):
10855 Move up.
10856 (class darwin_nat_target) <wait_1, check_new_threads,
10857 decode_exception_message, decode_message, stop_inferior,
10858 init_thread_list, ptrace_him, cancel_breakpoint>: Declare.
10859 * darwin-nat.c (darwin_check_new_threads): Rename to...
10860 (darwin_nat_target::check_new_threads): ... this.
10861 (darwin_suspend_inferior_it): Remove.
10862 (darwin_decode_exception_message): Rename to...
10863 (darwin_nat_target::decode_exception_message): ... this.
10864 (darwin_nat_target::resume): Pass target to find_inferior_ptid.
10865 (darwin_decode_message): Rename to...
10866 (darwin_nat_target::decode_message): ... this.
10867 (cancel_breakpoint): Rename to...
10868 (darwin_nat_target::cancel_breakpoint): ... this.
10869 (darwin_wait): Rename to...
10870 (darwin_nat_target::wait_1): ... this. Use range-based for loop
10871 instead of iterate_over_inferiors.
10872 (darwin_nat_target::wait): Call wait_1 instead of darwin_wait.
10873 (darwin_stop_inferior): Rename to...
10874 (darwin_nat_target::stop_inferior): ... this.
10875 (darwin_nat_target::kill): Call wait_1 instead of darwin_wait.
10876 (darwin_init_thread_list): Rename to...
10877 (darwin_nat_target::init_thread_list): ... this.
10878 (darwin_ptrace_him): Rename to...
10879 (darwin_nat_target::ptrace_him): ... this.
10880 (darwin_nat_target::create_inferior): Pass lambda function to
10881 fork_inferior.
10882 (darwin_nat_target::detach): Call stop_inferior instead of
10883 darwin_stop_inferior.
10884 * fork-inferior.h (fork_inferior): Change init_trace_fun
10885 parameter to gdb::function_view.
10886 * fork-inferior.c (fork_inferior): Likewise.
10887
c162ed3e
HD
108882020-01-23 Hannes Domani <ssbssa@yahoo.de>
10889
10890 * i386-cygwin-tdep.c (core_process_module_section): Update.
10891 * windows-nat.c (struct lm_info_windows): Add text_offset.
10892 (windows_xfer_shared_libraries): Update.
10893 * windows-tdep.c (windows_xfer_shared_library):
10894 Add text_offset_cached argument.
10895 * windows-tdep.h (windows_xfer_shared_library): Update.
10896
a1237872
SM
108972020-01-21 Simon Marchi <simon.marchi@efficios.com>
10898
10899 * gdbarch.sh: Add declaration for _initialize_gdbarch.
10900
b3ee6dd9
SM
109012020-01-21 Simon Marchi <simon.marchi@efficios.com>
10902
10903 * remote-sim.c (check_for_duplicate_sim_descriptor): Remove.
10904 (get_sim_inferior_data): Remove use of iterate_over_inferiors,
10905 replace with range-based for.
10906 (gdbsim_interrupt_inferior): Remove.
10907 (gdbsim_target::interrupt): Replace iterate_over_inferiors use
10908 with a range-based for. Inline code from
10909 gdbsim_interrupt_inferior.
10910
f9fac3c8
SM
109112020-01-21 Simon Marchi <simon.marchi@efficios.com>
10912
10913 * infrun.c (proceed): Fix indentation.
10914
f6474de9
TT
109152020-01-21 Tom Tromey <tromey@adacore.com>
10916
10917 * source-cache.c (source_cache::ensure): Call ext_lang_colorize.
10918 * python/python.c (python_extension_ops): Update.
10919 (gdbpy_colorize): New function.
10920 * python/lib/gdb/__init__.py (colorize): New function.
10921 * extension.h (ext_lang_colorize): Declare.
10922 * extension.c (ext_lang_colorize): New function.
10923 * extension-priv.h (struct extension_language_ops) <colorize>: New
10924 member.
10925 * cli/cli-style.c (_initialize_cli_style): Update help text.
10926
f0c702d4
LM
109272020-01-21 Luis Machado <luis.machado@linaro.org>
10928
10929 * aarch64-tdep.c (struct aarch64_displaced_step_closure)
10930 <cond>: Change type to bool.
10931 (aarch64_displaced_step_b_cond): Update cond to use bool type.
10932 (aarch64_displaced_step_cb): Likewise.
10933 (aarch64_displaced_step_tb): Likewise.
10934
1ab139e5
LM
109352020-01-21 Luis Machado <luis.machado@linaro.org>
10936
10937 * aarch64-tdep.c (aarch64_displaced_step_fixup): Add more debugging
10938 output.
10939
0c271889
LM
109402020-01-21 Luis Machado <luis.machado@linaro.org>
10941
10942 * aarch64-tdep.c (struct aarch64_displaced_step_closure )
10943 <pc_adjust>: Adjust the documentation.
10944 (aarch64_displaced_step_fixup): Check if PC really moved before
10945 adjusting it.
10946
4d89c1c7
TT
109472020-01-19 Tom Tromey <tom@tromey.com>
10948
10949 * disasm.c (~gdb_disassembler): New destructor.
10950 (gdb_buffered_insn_length): Call disassemble_free_target.
10951 * disasm.h (class gdb_disassembler): Declare destructor. Use
10952 DISABLE_COPY_AND_ASSIGN.
10953
c0ab21c2
TT
109542020-01-19 Tom Tromey <tom@tromey.com>
10955
10956 * dwarf2read.c (abbrev_table_up): Move typedef earlier.
10957 (die_reader_func_ftype): Remove.
10958 (cutu_reader): New class.
10959 (dw2_get_file_names_reader): Remove "data" parameter.
10960 (dw2_get_file_names): Use cutu_reader.
10961 (create_debug_type_hash_table): Update.
10962 (read_cutu_die_from_dwo): Update comment.
10963 (lookup_dwo_unit): Add dwo_name parameter.
10964 (cutu_reader::init_tu_and_read_dwo_dies): Now a method. Remove
10965 die_reader_func_ftype and data parameters.
10966 (cutu_reader::cutu_reader): Rename from init_cutu_and_read_dies.
10967 Remove die_reader_func_ftype and data parameters.
10968 (~cutu_reader): New; from init_cutu_and_read_dies.
10969 (cutu_reader::cutu_reader): Rename from
10970 init_cutu_and_read_dies_no_follow. Remove die_reader_func_ftype
10971 and data parameters.
10972 (init_cutu_and_read_dies_simple): Remove.
10973 (struct process_psymtab_comp_unit_data): Remove.
10974 (process_psymtab_comp_unit_reader): Remove data parameter; add
10975 want_partial_unit and pretend_language parameters.
10976 (process_psymtab_comp_unit): Use cutu_reader.
10977 (build_type_psymtabs_reader): Remove data parameter.
10978 (build_type_psymtabs_1): Use cutu_reader.
10979 (process_skeletonless_type_unit): Likewise.
10980 (load_partial_comp_unit_reader): Remove.
10981 (load_partial_comp_unit): Use cutu_reader.
10982 (load_full_comp_unit_reader): Remove.
10983 (load_full_comp_unit): Use cutu_reader.
10984 (struct create_dwo_cu_data): Remove.
10985 (create_dwo_cu_reader): Remove datap parameter; add dwo_file and
10986 dwo_unit parameters.
10987 (create_cus_hash_table): Use cutu_reader.
10988 (struct dwarf2_read_addr_index_data): Remove.
10989 (dwarf2_read_addr_index_reader): Remove.
10990 (dwarf2_read_addr_index): Use cutu_reader.
10991 (read_signatured_type_reader): Remove.
10992 (read_signatured_type): Use cutu_reader.
10993
45bbae5c
TT
109942020-01-19 Tom Tromey <tom@tromey.com>
10995
10996 * tui/tui.c (tui_show_assembly): Use tui_suppress_output.
10997 * tui/tui-wingeneral.h (class tui_suppress_output): New.
10998 (tui_wrefresh): Declare.
10999 * tui/tui-wingeneral.c (suppress_output): New global.
11000 (tui_suppress_output, ~tui_suppress_output): New constructor and
11001 destructor.
11002 (tui_wrefresh): New function.
11003 (tui_gen_win_info::refresh_window): Use tui_wrefresh.
11004 (tui_gen_win_info::make_window): Call wnoutrefresh when needed.
11005 * tui/tui-regs.h (struct tui_data_window) <no_refresh>: Declare
11006 method.
11007 * tui/tui-regs.c (tui_data_window::erase_data_content): Call
11008 tui_wrefresh.
11009 (tui_data_window::no_refresh): New method.
11010 (tui_data_item_window::refresh_window): Call tui_wrefresh.
11011 (tui_reg_command): Use tui_suppress_output
11012 * tui/tui-layout.c (tui_set_layout): Use tui_suppress_output.
11013 * tui/tui-data.h (struct tui_gen_win_info) <no_refresh>: New
11014 method.
11015 * tui/tui-command.c (tui_refresh_cmd_win): Call tui_wrefresh.
11016
4f13c1c0
TT
110172020-01-19 Tom Tromey <tom@tromey.com>
11018
11019 * tui/tui-winsource.c (tui_update_source_windows_with_line):
11020 Handle case where symtab is null.
11021
fa47e446
SM
110222020-01-19 Simon Marchi <simon.marchi@polymtl.ca>
11023
11024 * linux-fork.c (one_fork_p): Simplify.
11025
26f42329
SM
110262020-01-17 Simon Marchi <simon.marchi@efficios.com>
11027
11028 * top.c (struct qt_args): Remove.
11029 (kill_or_detach): Change return type to void, replace `void *`
11030 parameter with a proper one.
11031 (print_inferior_quit_action): Likewise.
11032 (quit_confirm): Use range-based for loop to iterate over inferiors.
11033 (quit_force): Likewise.
11034
a9ac81b1
SM
110352020-01-17 Simon Marchi <simon.marchi@efficios.com>
11036
11037 * mi/mi-main.c (run_one_inferior): Change return type to void, replace
11038 `void *` parameter with proper parameters.
11039 (mi_cmd_exec_run): Use range-based loop to iterate over inferiors.
11040 (print_one_inferior): Change return type to void, replace `void *`
11041 parameter with proper parameters.
11042 (mi_cmd_list_thread_groups): Use range-based loop to iterate over
11043 inferiors.
11044 (get_other_inferior): Remove.
11045 (mi_cmd_remove_inferior): Use range-based loop to iterate over
11046 inferiors.
11047
788eca49
SM
110482020-01-17 Simon Marchi <simon.marchi@efficios.com>
11049
11050 * mi/mi-interp.c (report_initial_inferior): Remove.
11051 (mi_interp::init): Use range-based for to iterate over inferiors.
11052
d9bc85b6
SM
110532020-01-17 Simon Marchi <simon.marchi@efficios.com>
11054
11055 * python/py-inferior.c (build_inferior_list): Remove.
11056 (gdbpy_ref): Use range-based for loop to iterate over inferiors.
11057
40c94099
CB
110582020-01-16 Christian Biesinger <cbiesinger@google.com>
11059
11060 * btrace.c (btrace_compute_ftrace_1): Fix spelling error (Unkown).
11061 (btrace_stitch_trace): Likewise.
11062 * charset.c (intermediate_encoding): Likewise (vaild).
11063 * nat/linux-btrace.c (linux_read_pt): Likewise (Unkown).
11064 * python/py-record-btrace.c (struct PyMethodDef): Likewise (occurences).
11065 * record-btrace.c (record_btrace_print_conf): Likewise (unkown).
11066
e0cdfe3c
HD
110672020-01-16 Hannes Domani <ssbssa@yahoo.de>
11068
11069 * windows-tdep.c (windows_get_tlb_type):
11070 Add rtl_user_process_parameters type.
11071
790f1718 110722020-01-16 Pedro Alves <palves@redhat.com>
aac66a4c 11073 Norbert Lange <nolange79@gmail.com>
790f1718
PA
11074
11075 PR build/24805
11076 * gdbsupport/gdb_proc_service.h (PS_EXPORT): New.
11077 (ps_get_thread_area, ps_getpid, ps_lcontinue, ps_lgetfpregs)
11078 (ps_lgetregs, ps_lsetfpregs, ps_lsetregs, ps_lstop, ps_pcontinue)
11079 (ps_pdread, ps_pdwrite, ps_pglobal_lookup, ps_pstop, ps_ptread)
11080 (ps_ptwrite, ps_lgetxregs, ps_lgetxregsize, ps_lsetxregs)
11081 (ps_plog): Redeclare exported functions with default visibility.
11082
3112ed97
NA
110832020-01-16 Nitika Achra <Nitika.Achra@amd.com>
11084
11085 * dwarf2loc.c (decode_debug_loclists_addresses): Handle
11086 DW_LLE_base_addressx, DW_LLE_startx_length, DW_LLE_start_length.
11087
8dc3273e
SM
110882020-01-15 Simon Marchi <simon.marchi@efficios.com>
11089
11090 * infcmd.c (post_create_inferior): Use get_thread_regcache
11091 instead of get_current_regcache.
11092
ff47f4f0
TT
110932020-01-14 Tom Tromey <tom@tromey.com>
11094
11095 PR symtab/12535:
11096 * python/python.c (gdbpy_decode_line): Treat empty string the same
11097 as no argument.
11098
975f45b7
TT
110992020-01-14 Tom Tromey <tom@tromey.com>
11100
11101 * Makefile.in (CLIBS): Remove second use of $(LIBIBERTY).
11102
25e57356
TT
111032020-01-14 Tom Tromey <tom@tromey.com>
11104
11105 * nat/linux-btrace.c: Don't include <config.h>.
11106 * nat/linux-ptrace.c: Don't include <config.h>.
11107 * nat/x86-linux-dregs.c: Don't include <config.h>.
11108
05ea2a05
TT
111092020-01-14 Tom Tromey <tom@tromey.com>
11110
11111 * configure: Rebuild.
11112 * configure.ac: Move many checks to ../gdbsupport/common.m4.
11113
01027315
TT
111142020-01-14 Tom Tromey <tom@tromey.com>
11115
11116 * nat/x86-linux-dregs.c: Include configh.h.
11117 * nat/linux-ptrace.c: Include configh.h.
11118 * nat/linux-btrace.c: Include configh.h.
11119 * defs.h: Include config.h, bfd.h.
11120 * configure.ac: Don't source common.host.
11121 (CONFIG_OBS, CONFIG_SRCS): Remove gdbsupport files.
11122 * configure: Rebuild.
11123 * acinclude.m4: Update path.
11124 * Makefile.in (SUPPORT, LIBSUPPORT, INCSUPPORT): New variables.
11125 (CONFIG_SRC_SUBDIR): Remove gdbsupport.
11126 (INTERNAL_CFLAGS_BASE): Add INCSUPPORT.
11127 (CLIBS): Add LIBSUPPORT.
11128 (CDEPS): Likewise.
11129 (COMMON_SFILES): Remove gdbsupport files.
11130 (HFILES_NO_SRCDIR): Likewise.
11131 (stamp-version): Update path to create-version.sh.
11132 (ALLDEPFILES): Remove gdbsupport files.
11133
b2ceabe8
TT
111342020-01-14 Tom Tromey <tom@tromey.com>
11135
11136 * gdbsupport/common.m4 (GDB_AC_COMMON): Define WIN32APILIBS and
11137 USE_WIN32API when needed.
11138 * configure.ac (USE_WIN32API): Don't define.
11139 (WIN32LIBS): Use WIN32APILIBS.
11140 * configure: Rebuild.
11141
25c51f71
TT
111422020-01-14 Tom Tromey <tom@tromey.com>
11143
11144 * configure: Rebuild.
11145 * gdbsupport/common.m4 (GDB_AC_COMMON): Fix indentation.
11146
717c684d
BE
111472020-01-14 Bernd Edlinger <bernd.edlinger@hotmail.de>
11148
11149 * skip.c (skip_function_command): Make skip w/o arguments use the
11150 name of the inlined function if pc is inside any inlined function.
11151
7da6a5b9
LM
111522020-01-14 Luis Machado <luis.machado@linaro.org>
11153
11154 * inf-ptrace.c (inf_ptrace_target::resume): Update comments.
11155 * infrun.c (resume_1): Likewise.
11156 (handle_inferior_event): Remove stale comment.
11157 * linux-nat.c (linux_nat_target::resume): Update comments.
11158 (save_stop_reason): Likewise.
11159 (linux_nat_filter_event): Likewise.
11160 * linux-nat.h (struct lwp_info) <stop_pc>, <stop_reason>: Likewise.
11161
44e4c775
AB
111622020-01-13 Andrew Burgess <andrew.burgess@embecosm.com>
11163
11164 * elfread.c (record_minimal_symbol): Set section index to 0 for
11165 non-allocatable sections.
11166
18a8505e
AT
11167
111682020-01-13 Ali Tamur <tamur@google.com>
11169
11170 * dwarf2read.c (dwarf2_debug_sections): Add debug_str_offsets sections.
11171 (dwarf2_cu): Add str_offsets_base field. Change the type of addr_base
11172 to gdb::optional. Update comments.
11173 (dwo_file): Update comments.
11174 (read_attribute): Update API to take an additional out parameter,
11175 need_reprocess. This is used to mark attributes that need other
11176 attributes (e.g. str_offsets_base) for correct computation which may not
11177 have been read yet.
11178 (read_attribute_reprocess): New function declaration.
11179 (read_addr_index): Likewise.
11180 (read_dwo_str_index): Likewise.
11181 (read_stub_str_index): Likewise.
11182 (dwarf2_per_objfile::locate_sections): Handle debug_str_offsets section.
11183 (lookup_addr_base): New function definition.
11184 (lookup_ranges_base): Likewise.
11185 (read_cutu_die_from_dwo): Use the new functions: lookup_addr_base,
11186 lookup_ranges_base.
11187 (init_cutu_and_read_dies): Update comments.
11188 (init_cutu_and_read_dies_no_follow): Change API to take parent compile
11189 unit. This is used to inherit parent's str_offsets_base and addr_base.
11190 Update comments.
11191 (init_cutu_and_read_dies_simple): Reflect API changes.
11192 (skip_one_die): Reflect API changes. Handle DW_FORM_rnglistx.
11193 (create_cus_hash_table): Change API to take parent compile unit.
11194 Reflect API changes.
11195 (open_and_init_dwo_file): Reflect API changes.
11196 (dwarf2_get_pc_bounds): Update comments.
11197 (dwarf2_record_block_ranges): Likewise.
11198 (read_full_die_1): Change implementation to reprocess attributes that
11199 need str_offsets_base and addr_base.
11200 (partial_die_info::read): Likewise.
11201 (read_attribute_reprocess): New function definition.
11202 (read_attribute_value): Change API to take an additional out parameter,
11203 need_reprocess. Handle DW_FORM_rnglistx. No longer trigger an error
11204 when a non-dwo compile unit has index based attributes.
11205 (read_attribute): Reflect API changes.
11206 (read_addr_index_1): Reflect API changes. Update comments.
11207 (dwarf2_read_addr_index_data): Reflect API changes.
11208 (dwarf2_read_addr_index): Likewise.
11209 (read_str_index): Change API and implementation. This becomes a helper
11210 to be used by the new string index related methods. Update error
11211 message and comments.
11212 (read_dwo_str_index): New function definition.
11213 (read_stub_str_index): Likewise.
11214 * dwarf2read.h (dwarf2_per_objfile): Add str_offsets field.
11215 * symfile.h (dwarf2_debug_sections): Likewise.
11216 * xcoffread.c (dwarf2_debug_sections): Likewise.
11217
0cac9354
SM
112182020-01-13 Simon Marchi <simon.marchi@efficios.com>
11219
11220 * gdbcore.h (struct core_fns) <core_read_registers>: Change
11221 core_reg_sect type to gdb_byte *.
11222 * arm-nbsd-nat.c (fetch_elfcore_registers): Likewise.
11223 * cris-tdep.c (fetch_core_registers): Likewise.
11224 * corelow.c (core_target::get_core_register_section): Change
11225 type of `contents` to gdb::byte_vector.
11226
9a6d629c
AB
112272020-01-13 Andrew Burgess <andrew.burgess@embecosm.com>
11228
11229 * tui/tui-wingeneral.c (box_win): Position the title in the center
11230 of the border.
11231
d8b2f9e3
SM
112322020-01-13 Simon Marchi <simon.marchi@polymtl.ca>
11233
11234 * corelow.c (core_target::get_core_register_section): Use
11235 std::vector instead of alloca.
11236
bb564c58
SM
112372020-01-13 Simon Marchi <simon.marchi@efficios.com>
11238
11239 * warning.m4: Add -Wmissing-declarations to build_warnings.
11240 * configure: Re-generate.
11241
6b366111
SM
112422020-01-13 Simon Marchi <simon.marchi@efficios.com>
11243
11244 * python/python.c (init__gdb_module): Add declaration.
11245
6c265988
SM
112462020-01-13 Simon Marchi <simon.marchi@efficios.com>
11247
11248 * aarch64-fbsd-nat.c (_initialize_aarch64_fbsd_nat): Add declaration.
11249 * aarch64-fbsd-tdep.c (_initialize_aarch64_fbsd_tdep): Add declaration.
11250 * aarch64-linux-nat.c (_initialize_aarch64_linux_nat): Add declaration.
11251 * aarch64-linux-tdep.c (_initialize_aarch64_linux_tdep): Add declaration.
11252 * aarch64-newlib-tdep.c (_initialize_aarch64_newlib_tdep): Add declaration.
11253 * aarch64-tdep.c (_initialize_aarch64_tdep): Add declaration.
11254 * ada-exp.y (_initialize_ada_exp): Add declaration.
11255 * ada-lang.c (_initialize_ada_language): Add declaration.
11256 * ada-tasks.c (_initialize_tasks): Add declaration.
11257 * agent.c (_initialize_agent): Add declaration.
11258 * aix-thread.c (_initialize_aix_thread): Add declaration.
11259 * alpha-bsd-nat.c (_initialize_alphabsd_nat): Add declaration.
11260 * alpha-linux-nat.c (_initialize_alpha_linux_nat): Add declaration.
11261 * alpha-linux-tdep.c (_initialize_alpha_linux_tdep): Add declaration.
11262 * alpha-nbsd-tdep.c (_initialize_alphanbsd_tdep): Add declaration.
11263 * alpha-obsd-tdep.c (_initialize_alphaobsd_tdep): Add declaration.
11264 * alpha-tdep.c (_initialize_alpha_tdep): Add declaration.
11265 * amd64-darwin-tdep.c (_initialize_amd64_darwin_tdep): Add declaration.
11266 * amd64-dicos-tdep.c (_initialize_amd64_dicos_tdep): Add declaration.
11267 * amd64-fbsd-nat.c (_initialize_amd64fbsd_nat): Add declaration.
11268 * amd64-fbsd-tdep.c (_initialize_amd64fbsd_tdep): Add declaration.
11269 * amd64-linux-nat.c (_initialize_amd64_linux_nat): Add declaration.
11270 * amd64-linux-tdep.c (_initialize_amd64_linux_tdep): Add declaration.
11271 * amd64-nbsd-nat.c (_initialize_amd64nbsd_nat): Add declaration.
11272 * amd64-nbsd-tdep.c (_initialize_amd64nbsd_tdep): Add declaration.
11273 * amd64-obsd-nat.c (_initialize_amd64obsd_nat): Add declaration.
11274 * amd64-obsd-tdep.c (_initialize_amd64obsd_tdep): Add declaration.
11275 * amd64-sol2-tdep.c (_initialize_amd64_sol2_tdep): Add declaration.
11276 * amd64-tdep.c (_initialize_amd64_tdep): Add declaration.
11277 * amd64-windows-nat.c (_initialize_amd64_windows_nat): Add declaration.
11278 * amd64-windows-tdep.c (_initialize_amd64_windows_tdep): Add declaration.
11279 * annotate.c (_initialize_annotate): Add declaration.
11280 * arc-newlib-tdep.c (_initialize_arc_newlib_tdep): Add declaration.
11281 * arc-tdep.c (_initialize_arc_tdep): Add declaration.
11282 * arch-utils.c (_initialize_gdbarch_utils): Add declaration.
11283 * arm-fbsd-nat.c (_initialize_arm_fbsd_nat): Add declaration.
11284 * arm-fbsd-tdep.c (_initialize_arm_fbsd_tdep): Add declaration.
11285 * arm-linux-nat.c (_initialize_arm_linux_nat): Add declaration.
11286 * arm-linux-tdep.c (_initialize_arm_linux_tdep): Add declaration.
11287 * arm-nbsd-nat.c (_initialize_arm_netbsd_nat): Add declaration.
11288 * arm-nbsd-tdep.c (_initialize_arm_netbsd_tdep): Add declaration.
11289 * arm-obsd-tdep.c (_initialize_armobsd_tdep): Add declaration.
11290 * arm-pikeos-tdep.c (_initialize_arm_pikeos_tdep): Add declaration.
11291 * arm-symbian-tdep.c (_initialize_arm_symbian_tdep): Add declaration.
11292 * arm-tdep.c (_initialize_arm_tdep): Add declaration.
11293 * arm-wince-tdep.c (_initialize_arm_wince_tdep): Add declaration.
11294 * auto-load.c (_initialize_auto_load): Add declaration.
11295 * auxv.c (_initialize_auxv): Add declaration.
11296 * avr-tdep.c (_initialize_avr_tdep): Add declaration.
11297 * ax-gdb.c (_initialize_ax_gdb): Add declaration.
11298 * bfin-linux-tdep.c (_initialize_bfin_linux_tdep): Add declaration.
11299 * bfin-tdep.c (_initialize_bfin_tdep): Add declaration.
11300 * break-catch-sig.c (_initialize_break_catch_sig): Add declaration.
11301 * break-catch-syscall.c (_initialize_break_catch_syscall): Add declaration.
11302 * break-catch-throw.c (_initialize_break_catch_throw): Add declaration.
11303 * breakpoint.c (_initialize_breakpoint): Add declaration.
11304 * bsd-uthread.c (_initialize_bsd_uthread): Add declaration.
11305 * btrace.c (_initialize_btrace): Add declaration.
11306 * charset.c (_initialize_charset): Add declaration.
11307 * cli/cli-cmds.c (_initialize_cli_cmds): Add declaration.
11308 * cli/cli-dump.c (_initialize_cli_dump): Add declaration.
11309 * cli/cli-interp.c (_initialize_cli_interp): Add declaration.
11310 * cli/cli-logging.c (_initialize_cli_logging): Add declaration.
11311 * cli/cli-script.c (_initialize_cli_script): Add declaration.
11312 * cli/cli-style.c (_initialize_cli_style): Add declaration.
11313 * coff-pe-read.c (_initialize_coff_pe_read): Add declaration.
11314 * coffread.c (_initialize_coffread): Add declaration.
11315 * compile/compile-cplus-types.c (_initialize_compile_cplus_types): Add declaration.
11316 * compile/compile.c (_initialize_compile): Add declaration.
11317 * complaints.c (_initialize_complaints): Add declaration.
11318 * completer.c (_initialize_completer): Add declaration.
11319 * copying.c (_initialize_copying): Add declaration.
11320 * corefile.c (_initialize_core): Add declaration.
11321 * corelow.c (_initialize_corelow): Add declaration.
11322 * cp-abi.c (_initialize_cp_abi): Add declaration.
11323 * cp-namespace.c (_initialize_cp_namespace): Add declaration.
11324 * cp-support.c (_initialize_cp_support): Add declaration.
11325 * cp-valprint.c (_initialize_cp_valprint): Add declaration.
11326 * cris-linux-tdep.c (_initialize_cris_linux_tdep): Add declaration.
11327 * cris-tdep.c (_initialize_cris_tdep): Add declaration.
11328 * csky-linux-tdep.c (_initialize_csky_linux_tdep): Add declaration.
11329 * csky-tdep.c (_initialize_csky_tdep): Add declaration.
11330 * ctfread.c (_initialize_ctfread): Add declaration.
11331 * d-lang.c (_initialize_d_language): Add declaration.
11332 * darwin-nat-info.c (_initialize_darwin_info_commands): Add declaration.
11333 * darwin-nat.c (_initialize_darwin_nat): Add declaration.
11334 * dbxread.c (_initialize_dbxread): Add declaration.
11335 * dcache.c (_initialize_dcache): Add declaration.
11336 * disasm-selftests.c (_initialize_disasm_selftests): Add declaration.
11337 * disasm.c (_initialize_disasm): Add declaration.
11338 * dtrace-probe.c (_initialize_dtrace_probe): Add declaration.
11339 * dummy-frame.c (_initialize_dummy_frame): Add declaration.
11340 * dwarf-index-cache.c (_initialize_index_cache): Add declaration.
11341 * dwarf-index-write.c (_initialize_dwarf_index_write): Add declaration.
11342 * dwarf2-frame-tailcall.c (_initialize_tailcall_frame): Add declaration.
11343 * dwarf2-frame.c (_initialize_dwarf2_frame): Add declaration.
11344 * dwarf2expr.c (_initialize_dwarf2expr): Add declaration.
11345 * dwarf2loc.c (_initialize_dwarf2loc): Add declaration.
11346 * dwarf2read.c (_initialize_dwarf2_read): Add declaration.
11347 * elfread.c (_initialize_elfread): Add declaration.
11348 * exec.c (_initialize_exec): Add declaration.
11349 * extension.c (_initialize_extension): Add declaration.
11350 * f-lang.c (_initialize_f_language): Add declaration.
11351 * f-valprint.c (_initialize_f_valprint): Add declaration.
11352 * fbsd-nat.c (_initialize_fbsd_nat): Add declaration.
11353 * fbsd-tdep.c (_initialize_fbsd_tdep): Add declaration.
11354 * filesystem.c (_initialize_filesystem): Add declaration.
11355 * findcmd.c (_initialize_mem_search): Add declaration.
11356 * findvar.c (_initialize_findvar): Add declaration.
11357 * fork-child.c (_initialize_fork_child): Add declaration.
11358 * frame-base.c (_initialize_frame_base): Add declaration.
11359 * frame-unwind.c (_initialize_frame_unwind): Add declaration.
11360 * frame.c (_initialize_frame): Add declaration.
11361 * frv-linux-tdep.c (_initialize_frv_linux_tdep): Add declaration.
11362 * frv-tdep.c (_initialize_frv_tdep): Add declaration.
11363 * ft32-tdep.c (_initialize_ft32_tdep): Add declaration.
11364 * gcore.c (_initialize_gcore): Add declaration.
11365 * gdb-demangle.c (_initialize_gdb_demangle): Add declaration.
11366 * gdb_bfd.c (_initialize_gdb_bfd): Add declaration.
11367 * gdbarch-selftests.c (_initialize_gdbarch_selftests): Add declaration.
11368 * gdbarch.c (_initialize_gdbarch): Add declaration.
11369 * gdbtypes.c (_initialize_gdbtypes): Add declaration.
11370 * gnu-nat.c (_initialize_gnu_nat): Add declaration.
11371 * gnu-v2-abi.c (_initialize_gnu_v2_abi): Add declaration.
11372 * gnu-v3-abi.c (_initialize_gnu_v3_abi): Add declaration.
11373 * go-lang.c (_initialize_go_language): Add declaration.
11374 * go32-nat.c (_initialize_go32_nat): Add declaration.
11375 * guile/guile.c (_initialize_guile): Add declaration.
11376 * h8300-tdep.c (_initialize_h8300_tdep): Add declaration.
11377 * hppa-linux-nat.c (_initialize_hppa_linux_nat): Add declaration.
11378 * hppa-linux-tdep.c (_initialize_hppa_linux_tdep): Add declaration.
11379 * hppa-nbsd-nat.c (_initialize_hppanbsd_nat): Add declaration.
11380 * hppa-nbsd-tdep.c (_initialize_hppanbsd_tdep): Add declaration.
11381 * hppa-obsd-nat.c (_initialize_hppaobsd_nat): Add declaration.
11382 * hppa-obsd-tdep.c (_initialize_hppabsd_tdep): Add declaration.
11383 * hppa-tdep.c (_initialize_hppa_tdep): Add declaration.
11384 * i386-bsd-nat.c (_initialize_i386bsd_nat): Add declaration.
11385 * i386-cygwin-tdep.c (_initialize_i386_cygwin_tdep): Add declaration.
11386 * i386-darwin-nat.c (_initialize_i386_darwin_nat): Add declaration.
11387 * i386-darwin-tdep.c (_initialize_i386_darwin_tdep): Add declaration.
11388 * i386-dicos-tdep.c (_initialize_i386_dicos_tdep): Add declaration.
11389 * i386-fbsd-nat.c (_initialize_i386fbsd_nat): Add declaration.
11390 * i386-fbsd-tdep.c (_initialize_i386fbsd_tdep): Add declaration.
11391 * i386-gnu-nat.c (_initialize_i386gnu_nat): Add declaration.
11392 * i386-gnu-tdep.c (_initialize_i386gnu_tdep): Add declaration.
11393 * i386-go32-tdep.c (_initialize_i386_go32_tdep): Add declaration.
11394 * i386-linux-nat.c (_initialize_i386_linux_nat): Add declaration.
11395 * i386-linux-tdep.c (_initialize_i386_linux_tdep): Add declaration.
11396 * i386-nbsd-nat.c (_initialize_i386nbsd_nat): Add declaration.
11397 * i386-nbsd-tdep.c (_initialize_i386nbsd_tdep): Add declaration.
11398 * i386-nto-tdep.c (_initialize_i386nto_tdep): Add declaration.
11399 * i386-obsd-nat.c (_initialize_i386obsd_nat): Add declaration.
11400 * i386-obsd-tdep.c (_initialize_i386obsd_tdep): Add declaration.
11401 * i386-sol2-nat.c (_initialize_amd64_sol2_nat): Add declaration.
11402 * i386-sol2-tdep.c (_initialize_i386_sol2_tdep): Add declaration.
11403 * i386-tdep.c (_initialize_i386_tdep): Add declaration.
11404 * i386-windows-nat.c (_initialize_i386_windows_nat): Add declaration.
11405 * ia64-libunwind-tdep.c (_initialize_libunwind_frame): Add declaration.
11406 * ia64-linux-nat.c (_initialize_ia64_linux_nat): Add declaration.
11407 * ia64-linux-tdep.c (_initialize_ia64_linux_tdep): Add declaration.
11408 * ia64-tdep.c (_initialize_ia64_tdep): Add declaration.
11409 * ia64-vms-tdep.c (_initialize_ia64_vms_tdep): Add declaration.
11410 * infcall.c (_initialize_infcall): Add declaration.
11411 * infcmd.c (_initialize_infcmd): Add declaration.
11412 * inflow.c (_initialize_inflow): Add declaration.
11413 * infrun.c (_initialize_infrun): Add declaration.
11414 * interps.c (_initialize_interpreter): Add declaration.
11415 * iq2000-tdep.c (_initialize_iq2000_tdep): Add declaration.
11416 * jit.c (_initialize_jit): Add declaration.
11417 * language.c (_initialize_language): Add declaration.
11418 * linux-fork.c (_initialize_linux_fork): Add declaration.
11419 * linux-nat.c (_initialize_linux_nat): Add declaration.
11420 * linux-tdep.c (_initialize_linux_tdep): Add declaration.
11421 * linux-thread-db.c (_initialize_thread_db): Add declaration.
11422 * lm32-tdep.c (_initialize_lm32_tdep): Add declaration.
11423 * m2-lang.c (_initialize_m2_language): Add declaration.
11424 * m32c-tdep.c (_initialize_m32c_tdep): Add declaration.
11425 * m32r-linux-nat.c (_initialize_m32r_linux_nat): Add declaration.
11426 * m32r-linux-tdep.c (_initialize_m32r_linux_tdep): Add declaration.
11427 * m32r-tdep.c (_initialize_m32r_tdep): Add declaration.
11428 * m68hc11-tdep.c (_initialize_m68hc11_tdep): Add declaration.
11429 * m68k-bsd-nat.c (_initialize_m68kbsd_nat): Add declaration.
11430 * m68k-bsd-tdep.c (_initialize_m68kbsd_tdep): Add declaration.
11431 * m68k-linux-nat.c (_initialize_m68k_linux_nat): Add declaration.
11432 * m68k-linux-tdep.c (_initialize_m68k_linux_tdep): Add declaration.
11433 * m68k-tdep.c (_initialize_m68k_tdep): Add declaration.
11434 * machoread.c (_initialize_machoread): Add declaration.
11435 * macrocmd.c (_initialize_macrocmd): Add declaration.
11436 * macroscope.c (_initialize_macroscope): Add declaration.
11437 * maint-test-options.c (_initialize_maint_test_options): Add declaration.
11438 * maint-test-settings.c (_initialize_maint_test_settings): Add declaration.
11439 * maint.c (_initialize_maint_cmds): Add declaration.
11440 * mdebugread.c (_initialize_mdebugread): Add declaration.
11441 * memattr.c (_initialize_mem): Add declaration.
11442 * mep-tdep.c (_initialize_mep_tdep): Add declaration.
11443 * mi/mi-cmd-env.c (_initialize_mi_cmd_env): Add declaration.
11444 * mi/mi-cmds.c (_initialize_mi_cmds): Add declaration.
11445 * mi/mi-interp.c (_initialize_mi_interp): Add declaration.
11446 * mi/mi-main.c (_initialize_mi_main): Add declaration.
11447 * microblaze-linux-tdep.c (_initialize_microblaze_linux_tdep): Add declaration.
11448 * microblaze-tdep.c (_initialize_microblaze_tdep): Add declaration.
11449 * mips-fbsd-nat.c (_initialize_mips_fbsd_nat): Add declaration.
11450 * mips-fbsd-tdep.c (_initialize_mips_fbsd_tdep): Add declaration.
11451 * mips-linux-nat.c (_initialize_mips_linux_nat): Add declaration.
11452 * mips-linux-tdep.c (_initialize_mips_linux_tdep): Add declaration.
11453 * mips-nbsd-nat.c (_initialize_mipsnbsd_nat): Add declaration.
11454 * mips-nbsd-tdep.c (_initialize_mipsnbsd_tdep): Add declaration.
11455 * mips-sde-tdep.c (_initialize_mips_sde_tdep): Add declaration.
11456 * mips-tdep.c (_initialize_mips_tdep): Add declaration.
11457 * mips64-obsd-nat.c (_initialize_mips64obsd_nat): Add declaration.
11458 * mips64-obsd-tdep.c (_initialize_mips64obsd_tdep): Add declaration.
11459 * mipsread.c (_initialize_mipsread): Add declaration.
11460 * mn10300-linux-tdep.c (_initialize_mn10300_linux_tdep): Add declaration.
11461 * mn10300-tdep.c (_initialize_mn10300_tdep): Add declaration.
11462 * moxie-tdep.c (_initialize_moxie_tdep): Add declaration.
11463 * msp430-tdep.c (_initialize_msp430_tdep): Add declaration.
11464 * nds32-tdep.c (_initialize_nds32_tdep): Add declaration.
11465 * nios2-linux-tdep.c (_initialize_nios2_linux_tdep): Add declaration.
11466 * nios2-tdep.c (_initialize_nios2_tdep): Add declaration.
11467 * nto-procfs.c (_initialize_procfs): Add declaration.
11468 * objc-lang.c (_initialize_objc_language): Add declaration.
11469 * observable.c (_initialize_observer): Add declaration.
11470 * opencl-lang.c (_initialize_opencl_language): Add declaration.
11471 * or1k-linux-tdep.c (_initialize_or1k_linux_tdep): Add declaration.
11472 * or1k-tdep.c (_initialize_or1k_tdep): Add declaration.
11473 * osabi.c (_initialize_gdb_osabi): Add declaration.
11474 * osdata.c (_initialize_osdata): Add declaration.
11475 * p-valprint.c (_initialize_pascal_valprint): Add declaration.
11476 * parse.c (_initialize_parse): Add declaration.
11477 * ppc-fbsd-nat.c (_initialize_ppcfbsd_nat): Add declaration.
11478 * ppc-fbsd-tdep.c (_initialize_ppcfbsd_tdep): Add declaration.
11479 * ppc-linux-nat.c (_initialize_ppc_linux_nat): Add declaration.
11480 * ppc-linux-tdep.c (_initialize_ppc_linux_tdep): Add declaration.
11481 * ppc-nbsd-nat.c (_initialize_ppcnbsd_nat): Add declaration.
11482 * ppc-nbsd-tdep.c (_initialize_ppcnbsd_tdep): Add declaration.
11483 * ppc-obsd-nat.c (_initialize_ppcobsd_nat): Add declaration.
11484 * ppc-obsd-tdep.c (_initialize_ppcobsd_tdep): Add declaration.
11485 * printcmd.c (_initialize_printcmd): Add declaration.
11486 * probe.c (_initialize_probe): Add declaration.
11487 * proc-api.c (_initialize_proc_api): Add declaration.
11488 * proc-events.c (_initialize_proc_events): Add declaration.
11489 * proc-service.c (_initialize_proc_service): Add declaration.
11490 * procfs.c (_initialize_procfs): Add declaration.
11491 * producer.c (_initialize_producer): Add declaration.
11492 * psymtab.c (_initialize_psymtab): Add declaration.
11493 * python/python.c (_initialize_python): Add declaration.
11494 * ravenscar-thread.c (_initialize_ravenscar): Add declaration.
11495 * record-btrace.c (_initialize_record_btrace): Add declaration.
11496 * record-full.c (_initialize_record_full): Add declaration.
11497 * record.c (_initialize_record): Add declaration.
11498 * regcache-dump.c (_initialize_regcache_dump): Add declaration.
11499 * regcache.c (_initialize_regcache): Add declaration.
11500 * reggroups.c (_initialize_reggroup): Add declaration.
11501 * remote-notif.c (_initialize_notif): Add declaration.
11502 * remote-sim.c (_initialize_remote_sim): Add declaration.
11503 * remote.c (_initialize_remote): Add declaration.
11504 * reverse.c (_initialize_reverse): Add declaration.
11505 * riscv-fbsd-nat.c (_initialize_riscv_fbsd_nat): Add declaration.
11506 * riscv-fbsd-tdep.c (_initialize_riscv_fbsd_tdep): Add declaration.
11507 * riscv-linux-nat.c (_initialize_riscv_linux_nat): Add declaration.
11508 * riscv-linux-tdep.c (_initialize_riscv_linux_tdep): Add declaration.
11509 * riscv-tdep.c (_initialize_riscv_tdep): Add declaration.
11510 * rl78-tdep.c (_initialize_rl78_tdep): Add declaration.
11511 * rs6000-aix-tdep.c (_initialize_rs6000_aix_tdep): Add declaration.
11512 * rs6000-lynx178-tdep.c (_initialize_rs6000_lynx178_tdep):
11513 Add declaration.
11514 * rs6000-nat.c (_initialize_rs6000_nat): Add declaration.
11515 * rs6000-tdep.c (_initialize_rs6000_tdep): Add declaration.
11516 * run-on-main-thread.c (_initialize_run_on_main_thread): Add declaration.
11517 * rust-exp.y (_initialize_rust_exp): Add declaration.
11518 * rx-tdep.c (_initialize_rx_tdep): Add declaration.
11519 * s12z-tdep.c (_initialize_s12z_tdep): Add declaration.
11520 * s390-linux-nat.c (_initialize_s390_nat): Add declaration.
11521 * s390-linux-tdep.c (_initialize_s390_linux_tdep): Add declaration.
11522 * s390-tdep.c (_initialize_s390_tdep): Add declaration.
11523 * score-tdep.c (_initialize_score_tdep): Add declaration.
11524 * ser-go32.c (_initialize_ser_dos): Add declaration.
11525 * ser-mingw.c (_initialize_ser_windows): Add declaration.
11526 * ser-pipe.c (_initialize_ser_pipe): Add declaration.
11527 * ser-tcp.c (_initialize_ser_tcp): Add declaration.
11528 * ser-uds.c (_initialize_ser_socket): Add declaration.
11529 * ser-unix.c (_initialize_ser_hardwire): Add declaration.
11530 * serial.c (_initialize_serial): Add declaration.
11531 * sh-linux-tdep.c (_initialize_sh_linux_tdep): Add declaration.
11532 * sh-nbsd-nat.c (_initialize_shnbsd_nat): Add declaration.
11533 * sh-nbsd-tdep.c (_initialize_shnbsd_tdep): Add declaration.
11534 * sh-tdep.c (_initialize_sh_tdep): Add declaration.
11535 * skip.c (_initialize_step_skip): Add declaration.
11536 * sol-thread.c (_initialize_sol_thread): Add declaration.
11537 * solib-aix.c (_initialize_solib_aix): Add declaration.
11538 * solib-darwin.c (_initialize_darwin_solib): Add declaration.
11539 * solib-dsbt.c (_initialize_dsbt_solib): Add declaration.
11540 * solib-frv.c (_initialize_frv_solib): Add declaration.
11541 * solib-svr4.c (_initialize_svr4_solib): Add declaration.
11542 * solib-target.c (_initialize_solib_target): Add declaration.
11543 * solib.c (_initialize_solib): Add declaration.
11544 * source-cache.c (_initialize_source_cache): Add declaration.
11545 * source.c (_initialize_source): Add declaration.
11546 * sparc-linux-nat.c (_initialize_sparc_linux_nat): Add declaration.
11547 * sparc-linux-tdep.c (_initialize_sparc_linux_tdep): Add declaration.
11548 * sparc-nat.c (_initialize_sparc_nat): Add declaration.
11549 * sparc-nbsd-nat.c (_initialize_sparcnbsd_nat): Add declaration.
11550 * sparc-nbsd-tdep.c (_initialize_sparcnbsd_tdep): Add declaration.
11551 * sparc-obsd-tdep.c (_initialize_sparc32obsd_tdep): Add declaration.
11552 * sparc-sol2-tdep.c (_initialize_sparc_sol2_tdep): Add declaration.
11553 * sparc-tdep.c (_initialize_sparc_tdep): Add declaration.
11554 * sparc64-fbsd-nat.c (_initialize_sparc64fbsd_nat): Add declaration.
11555 * sparc64-fbsd-tdep.c (_initialize_sparc64fbsd_tdep): Add declaration.
11556 * sparc64-linux-nat.c (_initialize_sparc64_linux_nat): Add declaration.
11557 * sparc64-linux-tdep.c (_initialize_sparc64_linux_tdep): Add declaration.
11558 * sparc64-nat.c (_initialize_sparc64_nat): Add declaration.
11559 * sparc64-nbsd-nat.c (_initialize_sparc64nbsd_nat): Add declaration.
11560 * sparc64-nbsd-tdep.c (_initialize_sparc64nbsd_tdep): Add declaration.
11561 * sparc64-obsd-nat.c (_initialize_sparc64obsd_nat): Add declaration.
11562 * sparc64-obsd-tdep.c (_initialize_sparc64obsd_tdep): Add declaration.
11563 * sparc64-sol2-tdep.c (_initialize_sparc64_sol2_tdep): Add declaration.
11564 * sparc64-tdep.c (_initialize_sparc64_adi_tdep): Add declaration.
11565 * stabsread.c (_initialize_stabsread): Add declaration.
11566 * stack.c (_initialize_stack): Add declaration.
11567 * stap-probe.c (_initialize_stap_probe): Add declaration.
11568 * std-regs.c (_initialize_frame_reg): Add declaration.
11569 * symfile-debug.c (_initialize_symfile_debug): Add declaration.
11570 * symfile-mem.c (_initialize_symfile_mem): Add declaration.
11571 * symfile.c (_initialize_symfile): Add declaration.
11572 * symmisc.c (_initialize_symmisc): Add declaration.
11573 * symtab.c (_initialize_symtab): Add declaration.
11574 * target.c (_initialize_target): Add declaration.
11575 * target-connection.c (_initialize_target_connection): Add
11576 declaration.
11577 * target-dcache.c (_initialize_target_dcache): Add declaration.
11578 * target-descriptions.c (_initialize_target_descriptions): Add declaration.
11579 * thread.c (_initialize_thread): Add declaration.
11580 * tic6x-linux-tdep.c (_initialize_tic6x_linux_tdep): Add declaration.
11581 * tic6x-tdep.c (_initialize_tic6x_tdep): Add declaration.
11582 * tilegx-linux-nat.c (_initialize_tile_linux_nat): Add declaration.
11583 * tilegx-linux-tdep.c (_initialize_tilegx_linux_tdep): Add declaration.
11584 * tilegx-tdep.c (_initialize_tilegx_tdep): Add declaration.
11585 * tracectf.c (_initialize_ctf): Add declaration.
11586 * tracefile-tfile.c (_initialize_tracefile_tfile): Add declaration.
11587 * tracefile.c (_initialize_tracefile): Add declaration.
11588 * tracepoint.c (_initialize_tracepoint): Add declaration.
11589 * tui/tui-hooks.c (_initialize_tui_hooks): Add declaration.
11590 * tui/tui-interp.c (_initialize_tui_interp): Add declaration.
11591 * tui/tui-layout.c (_initialize_tui_layout): Add declaration.
11592 * tui/tui-regs.c (_initialize_tui_regs): Add declaration.
11593 * tui/tui-stack.c (_initialize_tui_stack): Add declaration.
11594 * tui/tui-win.c (_initialize_tui_win): Add declaration.
11595 * tui/tui.c (_initialize_tui): Add declaration.
11596 * typeprint.c (_initialize_typeprint): Add declaration.
11597 * ui-style.c (_initialize_ui_style): Add declaration.
11598 * unittests/array-view-selftests.c (_initialize_array_view_selftests): Add declaration.
11599 * unittests/child-path-selftests.c (_initialize_child_path_selftests): Add declaration.
11600 * unittests/cli-utils-selftests.c (_initialize_cli_utils_selftests): Add declaration.
11601 * unittests/common-utils-selftests.c (_initialize_common_utils_selftests): Add declaration.
11602 * unittests/copy_bitwise-selftests.c (_initialize_copy_bitwise_utils_selftests): Add declaration.
11603 * unittests/environ-selftests.c (_initialize_environ_selftests): Add declaration.
11604 * unittests/filtered_iterator-selftests.c
11605 (_initialize_filtered_iterator_selftests): Add declaration.
11606 * unittests/format_pieces-selftests.c (_initialize_format_pieces_selftests): Add declaration.
11607 * unittests/function-view-selftests.c (_initialize_function_view_selftests): Add declaration.
11608 * unittests/help-doc-selftests.c (_initialize_help_doc_selftests): Add declaration.
11609 * unittests/lookup_name_info-selftests.c (_initialize_lookup_name_info_selftests): Add declaration.
11610 * unittests/main-thread-selftests.c
11611 (_initialize_main_thread_selftests): Add declaration.
11612 * unittests/memory-map-selftests.c (_initialize_memory_map_selftests): Add declaration.
11613 * unittests/memrange-selftests.c (_initialize_memrange_selftests): Add declaration.
11614 * unittests/mkdir-recursive-selftests.c (_initialize_mkdir_recursive_selftests): Add declaration.
11615 * unittests/observable-selftests.c (_initialize_observer_selftest): Add declaration.
11616 * unittests/offset-type-selftests.c (_initialize_offset_type_selftests): Add declaration.
11617 * unittests/optional-selftests.c (_initialize_optional_selftests): Add declaration.
11618 * unittests/parse-connection-spec-selftests.c (_initialize_parse_connection_spec_selftests): Add declaration.
11619 * unittests/rsp-low-selftests.c (_initialize_rsp_low_selftests): Add declaration.
11620 * unittests/scoped_fd-selftests.c (_initialize_scoped_fd_selftests): Add declaration.
11621 * unittests/scoped_mmap-selftests.c (_initialize_scoped_mmap_selftests): Add declaration.
11622 * unittests/scoped_restore-selftests.c (_initialize_scoped_restore_selftests): Add declaration.
11623 * unittests/string_view-selftests.c (_initialize_string_view_selftests): Add declaration.
11624 * unittests/style-selftests.c (_initialize_style_selftest): Add declaration.
11625 * unittests/tracepoint-selftests.c (_initialize_tracepoint_selftests): Add declaration.
11626 * unittests/tui-selftests.c (_initialize_tui_selftest): Add
11627 declaration.
11628 * unittests/unpack-selftests.c (_initialize_unpack_selftests): Add declaration.
11629 * unittests/utils-selftests.c (_initialize_utils_selftests): Add declaration.
11630 * unittests/vec-utils-selftests.c (_initialize_vec_utils_selftests): Add declaration.
11631 * unittests/xml-utils-selftests.c (_initialize_xml_utils): Add declaration.
11632 * user-regs.c (_initialize_user_regs): Add declaration.
11633 * utils.c (_initialize_utils): Add declaration.
11634 * v850-tdep.c (_initialize_v850_tdep): Add declaration.
11635 * valops.c (_initialize_valops): Add declaration.
11636 * valprint.c (_initialize_valprint): Add declaration.
11637 * value.c (_initialize_values): Add declaration.
11638 * varobj.c (_initialize_varobj): Add declaration.
11639 * vax-bsd-nat.c (_initialize_vaxbsd_nat): Add declaration.
11640 * vax-nbsd-tdep.c (_initialize_vaxnbsd_tdep): Add declaration.
11641 * vax-tdep.c (_initialize_vax_tdep): Add declaration.
11642 * windows-nat.c (_initialize_windows_nat): Add declaration.
11643 (_initialize_check_for_gdb_ini): Add declaration.
11644 (_initialize_loadable): Add declaration.
11645 * windows-tdep.c (_initialize_windows_tdep): Add declaration.
11646 * x86-bsd-nat.c (_initialize_x86_bsd_nat): Add declaration.
11647 * x86-linux-nat.c (_initialize_x86_linux_nat): Add declaration.
11648 * xcoffread.c (_initialize_xcoffread): Add declaration.
11649 * xml-support.c (_initialize_xml_support): Add declaration.
11650 * xstormy16-tdep.c (_initialize_xstormy16_tdep): Add declaration.
11651 * xtensa-linux-nat.c (_initialize_xtensa_linux_nat): Add declaration.
11652 * xtensa-linux-tdep.c (_initialize_xtensa_linux_tdep): Add declaration.
11653 * xtensa-tdep.c (_initialize_xtensa_tdep): Add declaration.
11654
e2de1eec
SM
116552020-01-13 Simon Marchi <simon.marchi@polymtl.ca>
11656
11657 * regformats/regdat.sh: Generate declaration for init function.
11658
e0037b4c
SM
116592020-01-13 Simon Marchi <simon.marchi@polymtl.ca>
11660
11661 * remote-sim.c (next_pid, INITIAL_PID, sim_inferior_data): Move
11662 up.
11663 (gdbsim_target) <get_inferior_data_by_ptid, resume_one_inferior,
11664 close_one_inferior>: New methods.
11665 (get_sim_inferior_data_by_ptid): Move to gdbsim_target,
11666 pass down target to find_inferior_pid.
11667 (gdbsim_target::fetch_registers, gdbsim_target::store_registers):
11668 Pass down target to find_inferior_ptid.
11669 (gdbsim_target::create_inferior): Pass down target to
11670 add_thread_silent.
11671 (gdbsim_close_inferior): Move to gdbsim_close_inferior, pass
11672 target down to find_inferior_ptid and switch_to_thread.
11673 (gdbsim_target::close): Update to call close_one_inferior.
11674 (struct resume_data): Remove.
11675 (gdbsim_resume_inferior): Move to gdbsim_target. Take arguments
11676 directly, rather than through a void pointer.
11677 (gdbsim_target::resume): Update to call resume_one_inferior.
11678
58920b5b
SM
116792020-01-12 Simon Marchi <simon.marchi@polymtl.ca>
11680
11681 * gdbsupport/gdb_wait.c: Include gdb_wait.h.
11682
4ec89149
PA
116832020-01-12 Pedro Alves <palves@redhat.com>
11684
11685 * bsd-kvm.c (bsd_kvm_target::close): Call exit_inferior_silent
11686 directly for the current inferior instead of
11687 discard_all_inferiors.
11688 (discard_all_inferiors): Delete.
11689
7c392d1d
TT
116902020-01-11 Tom Tromey <tom@tromey.com>
11691
11692 * tui/tui-wingeneral.c (box_win): Check cli_styling.
11693 * tui/tui-winsource.c (tui_source_window_base::refill): Use
11694 deprecated_safe_get_selected_frame.
11695
d9ebdab7
TBA
116962020-01-10 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
11697
11698 * inferior.c (print_inferior): Switch inferior before printing it.
11699
f3c469b9
PA
117002020-01-10 Aleksandar Paunovic <aleksandar.paunovic@intel.com>
11701 Pedro Alves <palves@redhat.com>
11702
11703 * progspace-and-thread.c (switch_to_program_space_and_thread):
11704 Assert there's an inferior for PSPACE. Use
11705 switch_to_inferior_no_thread to switch the inferior too.
11706 * progspace.c (program_space::~program_space): Call
11707 clear_symtab_users here, with SYMFILE_DEFER_BP_RESET.
11708 (program_space::free_all_objfiles): Don't call clear_symtab_users
11709 here.
11710 * symfile.c (symbol_file_clear): Call clear_symtab_users here.
11711
65c574f6
PA
117122020-01-10 Pedro Alves <palves@redhat.com>
11713
11714 * NEWS: Mention multi-target debugging, "info connections", and
11715 "add-inferior -no-connection".
11716
2f4fcf00
PA
117172020-01-10 Pedro Alves <palves@redhat.com>
11718
11719 * infrun.c: Include "target-connection.h".
11720 (check_multi_target_resumption): New.
11721 (proceed): Call it.
11722 * target-connection.c (make_target_connection_string): Make
11723 extern.
11724 * target-connection.h (make_target_connection_string): Declare.
11725
121b3efd
PA
117262020-01-10 Pedro Alves <palves@redhat.com>
11727
11728 * Makefile.in (COMMON_SFILES): Add target-connection.c.
11729 * inferior.c (uiout_field_connection): New function.
11730 (print_inferior): Add new "connection-id" column.
11731 (add_inferior_command): Show connection number/string of added
11732 inferior.
11733 * process-stratum-target.h
11734 (process_stratum_target::connection_string): New virtual method.
11735 (process_stratum_target::connection_number): New field.
11736 * remote.c (remote_target::connection_string): New override.
11737 * target-connection.c: New file.
11738 * target-connection.h: New file.
11739 * target.c (decref_target): Remove process_stratum targets from
11740 the connection list.
11741 (target_stack::push): Add process_stratum targets to the
11742 connection list.
11743
4f837581
PA
117442020-01-10 Pedro Alves <palves@redhat.com>
11745
11746 Revert:
11747 2016-04-12 Pedro Alves <palves@redhat.com>
11748 * serial.c (serial_open, serial_fdopen_ops, do_serial_close):
11749 Remove references to name.
11750 * serial.h (struct serial) <name>: Delete.
11751
f4ec508e
PA
117522020-01-10 Pedro Alves <palves@redhat.com>
11753
11754 * gdbarch-selftests.c (register_to_value_test): Remove "target
11755 already pushed" check.
11756
5b6d1e4f
PA
117572020-01-10 Pedro Alves <palves@redhat.com>
11758 John Baldwin <jhb@FreeBSD.org>
11759
11760 * aarch64-linux-nat.c
11761 (aarch64_linux_nat_target::thread_architecture): Adjust.
11762 * ada-tasks.c (print_ada_task_info): Adjust find_thread_ptid call.
11763 (task_command_1): Likewise.
11764 * aix-thread.c (sync_threadlists, aix_thread_target::resume)
11765 (aix_thread_target::wait, aix_thread_target::fetch_registers)
11766 (aix_thread_target::store_registers)
11767 (aix_thread_target::thread_alive): Adjust.
11768 * amd64-fbsd-tdep.c: Include "inferior.h".
11769 (amd64fbsd_get_thread_local_address): Pass down target.
11770 * amd64-linux-nat.c (ps_get_thread_area): Use ps_prochandle
11771 thread's gdbarch instead of target_gdbarch.
11772 * break-catch-sig.c (signal_catchpoint_print_it): Adjust call to
11773 get_last_target_status.
11774 * break-catch-syscall.c (print_it_catch_syscall): Likewise.
11775 * breakpoint.c (breakpoints_should_be_inserted_now): Consider all
11776 inferiors.
11777 (update_inserted_breakpoint_locations): Skip if inferiors with no
11778 execution.
11779 (update_global_location_list): When handling moribund locations,
11780 find representative inferior for location's pspace, and use thread
11781 count of its process_stratum target.
11782 * bsd-kvm.c (bsd_kvm_target_open): Pass target down.
11783 * bsd-uthread.c (bsd_uthread_target::wait): Use
11784 as_process_stratum_target and adjust thread_change_ptid and
11785 add_thread calls.
11786 (bsd_uthread_target::update_thread_list): Use
11787 as_process_stratum_target and adjust find_thread_ptid,
11788 thread_change_ptid and add_thread calls.
11789 * btrace.c (maint_btrace_packet_history_cmd): Adjust
11790 find_thread_ptid call.
11791 * corelow.c (add_to_thread_list): Adjust add_thread call.
11792 (core_target_open): Adjust add_thread_silent and thread_count
11793 calls.
11794 (core_target::pid_to_str): Adjust find_inferior_ptid call.
11795 * ctf.c (ctf_target_open): Adjust add_thread_silent call.
11796 * event-top.c (async_disconnect): Pop targets from all inferiors.
11797 * exec.c (add_target_sections): Push exec target on all inferiors
11798 sharing the program space.
11799 (remove_target_sections): Remove the exec target from all
11800 inferiors sharing the program space.
11801 (exec_on_vfork): New.
11802 * exec.h (exec_on_vfork): Declare.
11803 * fbsd-nat.c (fbsd_add_threads): Add fbsd_nat_target parameter.
11804 Pass it down.
11805 (fbsd_nat_target::update_thread_list): Adjust.
11806 (fbsd_nat_target::resume): Adjust.
11807 (fbsd_handle_debug_trap): Add fbsd_nat_target parameter. Pass it
11808 down.
11809 (fbsd_nat_target::wait, fbsd_nat_target::post_attach): Adjust.
11810 * fbsd-tdep.c (fbsd_corefile_thread): Adjust
11811 get_thread_arch_regcache call.
11812 * fork-child.c (gdb_startup_inferior): Pass target down to
11813 startup_inferior and set_executing.
11814 * gdbthread.h (struct process_stratum_target): Forward declare.
11815 (add_thread, add_thread_silent, add_thread_with_info)
11816 (in_thread_list): Add process_stratum_target parameter.
11817 (find_thread_ptid(inferior*, ptid_t)): New overload.
11818 (find_thread_ptid, thread_change_ptid): Add process_stratum_target
11819 parameter.
11820 (all_threads()): Delete overload.
11821 (all_threads, all_non_exited_threads): Add process_stratum_target
11822 parameter.
11823 (all_threads_safe): Use brace initialization.
11824 (thread_count): Add process_stratum_target parameter.
11825 (set_resumed, set_running, set_stop_requested, set_executing)
11826 (threads_are_executing, finish_thread_state): Add
11827 process_stratum_target parameter.
11828 (switch_to_thread): Use is_current_thread.
11829 * i386-fbsd-tdep.c: Include "inferior.h".
11830 (i386fbsd_get_thread_local_address): Pass down target.
11831 * i386-linux-nat.c (i386_linux_nat_target::low_resume): Adjust.
11832 * inf-child.c (inf_child_target::maybe_unpush_target): Remove
11833 have_inferiors check.
11834 * inf-ptrace.c (inf_ptrace_target::create_inferior)
11835 (inf_ptrace_target::attach): Adjust.
11836 * infcall.c (run_inferior_call): Adjust.
11837 * infcmd.c (run_command_1): Pass target to
11838 scoped_finish_thread_state.
11839 (proceed_thread_callback): Skip inferiors with no execution.
11840 (continue_command): Rename 'all_threads' local to avoid hiding
11841 'all_threads' function. Adjust get_last_target_status call.
11842 (prepare_one_step): Adjust set_running call.
11843 (signal_command): Use user_visible_resume_target. Compare thread
11844 pointers instead of inferior_ptid.
11845 (info_program_command): Adjust to pass down target.
11846 (attach_command): Mark target's 'thread_executing' flag.
11847 (stop_current_target_threads_ns): New, factored out from ...
11848 (interrupt_target_1): ... this. Switch inferior before making
11849 target calls.
11850 * inferior-iter.h
11851 (struct all_inferiors_iterator, struct all_inferiors_range)
11852 (struct all_inferiors_safe_range)
11853 (struct all_non_exited_inferiors_range): Filter on
11854 process_stratum_target too. Remove explicit.
11855 * inferior.c (inferior::inferior): Push dummy target on target
11856 stack.
11857 (find_inferior_pid, find_inferior_ptid, number_of_live_inferiors):
11858 Add process_stratum_target parameter, and pass it down.
11859 (have_live_inferiors): Adjust.
11860 (switch_to_inferior_and_push_target): New.
11861 (add_inferior_command, clone_inferior_command): Handle
11862 "-no-connection" parameter. Use
11863 switch_to_inferior_and_push_target.
11864 (_initialize_inferior): Mention "-no-connection" option in
11865 the help of "add-inferior" and "clone-inferior" commands.
11866 * inferior.h: Include "process-stratum-target.h".
11867 (interrupt_target_1): Use bool.
11868 (struct inferior) <push_target, unpush_target, target_is_pushed,
11869 find_target_beneath, top_target, process_target, target_at,
11870 m_stack>: New.
11871 (discard_all_inferiors): Delete.
11872 (find_inferior_pid, find_inferior_ptid, number_of_live_inferiors)
11873 (all_inferiors, all_non_exited_inferiors): Add
11874 process_stratum_target parameter.
11875 * infrun.c: Include "gdb_select.h" and <unordered_map>.
11876 (target_last_proc_target): New global.
11877 (follow_fork_inferior): Push target on new inferior. Pass target
11878 to add_thread_silent. Call exec_on_vfork. Handle target's
11879 reference count.
11880 (follow_fork): Adjust get_last_target_status call. Also consider
11881 target.
11882 (follow_exec): Push target on new inferior.
11883 (struct execution_control_state) <target>: New field.
11884 (user_visible_resume_target): New.
11885 (do_target_resume): Call target_async.
11886 (resume_1): Set target's threads_executing flag. Consider resume
11887 target.
11888 (commit_resume_all_targets): New.
11889 (proceed): Also consider resume target. Skip threads of inferiors
11890 with no execution. Commit resumtion in all targets.
11891 (start_remote): Pass current inferior to wait_for_inferior.
11892 (infrun_thread_stop_requested): Consider target as well. Pass
11893 thread_info pointer to clear_inline_frame_state instead of ptid.
11894 (infrun_thread_thread_exit): Consider target as well.
11895 (random_pending_event_thread): New inferior parameter. Use it.
11896 (do_target_wait): Rename to ...
11897 (do_target_wait_1): ... this. Add inferior parameter, and pass it
11898 down.
11899 (threads_are_resumed_pending_p, do_target_wait): New.
11900 (prepare_for_detach): Adjust calls.
11901 (wait_for_inferior): New inferior parameter. Handle it. Use
11902 do_target_wait_1 instead of do_target_wait.
11903 (fetch_inferior_event): Adjust. Switch to representative
11904 inferior. Pass target down.
11905 (set_last_target_status): Add process_stratum_target parameter.
11906 Save target in global.
11907 (get_last_target_status): Add process_stratum_target parameter and
11908 handle it.
11909 (nullify_last_target_wait_ptid): Clear 'target_last_proc_target'.
11910 (context_switch): Check inferior_ptid == null_ptid before calling
11911 inferior_thread().
11912 (get_inferior_stop_soon): Pass down target.
11913 (wait_one): Rename to ...
11914 (poll_one_curr_target): ... this.
11915 (struct wait_one_event): New.
11916 (wait_one): New.
11917 (stop_all_threads): Adjust.
11918 (handle_no_resumed, handle_inferior_event): Adjust to consider the
11919 event's target.
11920 (switch_back_to_stepped_thread): Also consider target.
11921 (print_stop_event): Update.
11922 (normal_stop): Update. Also consider the resume target.
11923 * infrun.h (wait_for_inferior): Remove declaration.
11924 (user_visible_resume_target): New declaration.
11925 (get_last_target_status, set_last_target_status): New
11926 process_stratum_target parameter.
11927 * inline-frame.c (clear_inline_frame_state(ptid_t)): Add
11928 process_stratum_target parameter, and use it.
11929 (clear_inline_frame_state (thread_info*)): New.
11930 * inline-frame.c (clear_inline_frame_state(ptid_t)): Add
11931 process_stratum_target parameter.
11932 (clear_inline_frame_state (thread_info*)): Declare.
11933 * linux-fork.c (delete_checkpoint_command): Pass target down to
11934 find_thread_ptid.
11935 (checkpoint_command): Adjust.
11936 * linux-nat.c (linux_nat_target::follow_fork): Switch to thread
11937 instead of just tweaking inferior_ptid.
11938 (linux_nat_switch_fork): Pass target down to thread_change_ptid.
11939 (exit_lwp): Pass target down to find_thread_ptid.
11940 (attach_proc_task_lwp_callback): Pass target down to
11941 add_thread/set_running/set_executing.
11942 (linux_nat_target::attach): Pass target down to
11943 thread_change_ptid.
11944 (get_detach_signal): Pass target down to find_thread_ptid.
11945 Consider last target status's target.
11946 (linux_resume_one_lwp_throw, resume_lwp)
11947 (linux_handle_syscall_trap, linux_handle_extended_wait, wait_lwp)
11948 (stop_wait_callback, save_stop_reason, linux_nat_filter_event)
11949 (linux_nat_wait_1, resume_stopped_resumed_lwps): Pass target down.
11950 (linux_nat_target::async_wait_fd): New.
11951 (linux_nat_stop_lwp, linux_nat_target::thread_address_space): Pass
11952 target down.
11953 * linux-nat.h (linux_nat_target::async_wait_fd): Declare.
11954 * linux-tdep.c (get_thread_arch_regcache): Pass target down.
11955 * linux-thread-db.c (struct thread_db_info::process_target): New
11956 field.
11957 (add_thread_db_info): Save target.
11958 (get_thread_db_info): New process_stratum_target parameter. Also
11959 match target.
11960 (delete_thread_db_info): New process_stratum_target parameter.
11961 Also match target.
11962 (thread_from_lwp): Adjust to pass down target.
11963 (thread_db_notice_clone): Pass down target.
11964 (check_thread_db_callback): Pass down target.
11965 (try_thread_db_load_1): Always push the thread_db target.
11966 (try_thread_db_load, record_thread): Pass target down.
11967 (thread_db_target::detach): Pass target down. Always unpush the
11968 thread_db target.
11969 (thread_db_target::wait, thread_db_target::mourn_inferior): Pass
11970 target down. Always unpush the thread_db target.
11971 (find_new_threads_callback, thread_db_find_new_threads_2)
11972 (thread_db_target::update_thread_list): Pass target down.
11973 (thread_db_target::pid_to_str): Pass current inferior down.
11974 (thread_db_target::get_thread_local_address): Pass target down.
11975 (thread_db_target::resume, maintenance_check_libthread_db): Pass
11976 target down.
11977 * nto-procfs.c (nto_procfs_target::update_thread_list): Adjust.
11978 * procfs.c (procfs_target::procfs_init_inferior): Declare.
11979 (proc_set_current_signal, do_attach, procfs_target::wait): Adjust.
11980 (procfs_init_inferior): Rename to ...
11981 (procfs_target::procfs_init_inferior): ... this and adjust.
11982 (procfs_target::create_inferior, procfs_notice_thread)
11983 (procfs_do_thread_registers): Adjust.
11984 * ppc-fbsd-tdep.c: Include "inferior.h".
11985 (ppcfbsd_get_thread_local_address): Pass down target.
11986 * proc-service.c (ps_xfer_memory): Switch current inferior and
11987 program space as well.
11988 (get_ps_regcache): Pass target down.
11989 * process-stratum-target.c
11990 (process_stratum_target::thread_address_space)
11991 (process_stratum_target::thread_architecture): Pass target down.
11992 * process-stratum-target.h
11993 (process_stratum_target::threads_executing): New field.
11994 (as_process_stratum_target): New.
11995 * ravenscar-thread.c
11996 (ravenscar_thread_target::update_inferior_ptid): Pass target down.
11997 (ravenscar_thread_target::wait, ravenscar_add_thread): Pass target
11998 down.
11999 * record-btrace.c (record_btrace_target::info_record): Adjust.
12000 (record_btrace_target::record_method)
12001 (record_btrace_target::record_is_replaying)
12002 (record_btrace_target::fetch_registers)
12003 (get_thread_current_frame_id, record_btrace_target::resume)
12004 (record_btrace_target::wait, record_btrace_target::stop): Pass
12005 target down.
12006 * record-full.c (record_full_wait_1): Switch to event thread.
12007 Pass target down.
12008 * regcache.c (regcache::regcache)
12009 (get_thread_arch_aspace_regcache, get_thread_arch_regcache): Add
12010 process_stratum_target parameter and handle it.
12011 (current_thread_target): New global.
12012 (get_thread_regcache): Add process_stratum_target parameter and
12013 handle it. Switch inferior before calling target method.
12014 (get_thread_regcache): Pass target down.
12015 (get_thread_regcache_for_ptid): Pass target down.
12016 (registers_changed_ptid): Add process_stratum_target parameter and
12017 handle it.
12018 (registers_changed_thread, registers_changed): Pass target down.
12019 (test_get_thread_arch_aspace_regcache): New.
12020 (current_regcache_test): Define a couple local test_target_ops
12021 instances and use them for testing.
12022 (readwrite_regcache): Pass process_stratum_target parameter.
12023 (cooked_read_test, cooked_write_test): Pass mock_target down.
12024 * regcache.h (get_thread_regcache, get_thread_arch_regcache)
12025 (get_thread_arch_aspace_regcache): Add process_stratum_target
12026 parameter.
12027 (regcache::target): New method.
12028 (regcache::regcache, regcache::get_thread_arch_aspace_regcache)
12029 (regcache::registers_changed_ptid): Add process_stratum_target
12030 parameter.
12031 (regcache::m_target): New field.
12032 (registers_changed_ptid): Add process_stratum_target parameter.
12033 * remote.c (remote_state::supports_vCont_probed): New field.
12034 (remote_target::async_wait_fd): New method.
12035 (remote_unpush_and_throw): Add remote_target parameter.
12036 (get_current_remote_target): Adjust.
12037 (remote_target::remote_add_inferior): Push target.
12038 (remote_target::remote_add_thread)
12039 (remote_target::remote_notice_new_inferior)
12040 (get_remote_thread_info): Pass target down.
12041 (remote_target::update_thread_list): Skip threads of inferiors
12042 bound to other targets. (remote_target::close): Don't discard
12043 inferiors. (remote_target::add_current_inferior_and_thread)
12044 (remote_target::process_initial_stop_replies)
12045 (remote_target::start_remote)
12046 (remote_target::remote_serial_quit_handler): Pass down target.
12047 (remote_target::remote_unpush_target): New remote_target
12048 parameter. Unpush the target from all inferiors.
12049 (remote_target::remote_unpush_and_throw): New remote_target
12050 parameter. Pass it down.
12051 (remote_target::open_1): Check whether the current inferior has
12052 execution instead of checking whether any inferior is live. Pass
12053 target down.
12054 (remote_target::remote_detach_1): Pass down target. Use
12055 remote_unpush_target.
12056 (extended_remote_target::attach): Pass down target.
12057 (remote_target::remote_vcont_probe): Set supports_vCont_probed.
12058 (remote_target::append_resumption): Pass down target.
12059 (remote_target::append_pending_thread_resumptions)
12060 (remote_target::remote_resume_with_hc, remote_target::resume)
12061 (remote_target::commit_resume): Pass down target.
12062 (remote_target::remote_stop_ns): Check supports_vCont_probed.
12063 (remote_target::interrupt_query)
12064 (remote_target::remove_new_fork_children)
12065 (remote_target::check_pending_events_prevent_wildcard_vcont)
12066 (remote_target::remote_parse_stop_reply)
12067 (remote_target::process_stop_reply): Pass down target.
12068 (first_remote_resumed_thread): New remote_target parameter. Pass
12069 it down.
12070 (remote_target::wait_as): Pass down target.
12071 (unpush_and_perror): New remote_target parameter. Pass it down.
12072 (remote_target::readchar, remote_target::remote_serial_write)
12073 (remote_target::getpkt_or_notif_sane_1)
12074 (remote_target::kill_new_fork_children, remote_target::kill): Pass
12075 down target.
12076 (remote_target::mourn_inferior): Pass down target. Use
12077 remote_unpush_target.
12078 (remote_target::core_of_thread)
12079 (remote_target::remote_btrace_maybe_reopen): Pass down target.
12080 (remote_target::pid_to_exec_file)
12081 (remote_target::thread_handle_to_thread_info): Pass down target.
12082 (remote_target::async_wait_fd): New.
12083 * riscv-fbsd-tdep.c: Include "inferior.h".
12084 (riscv_fbsd_get_thread_local_address): Pass down target.
12085 * sol2-tdep.c (sol2_core_pid_to_str): Pass down target.
12086 * sol-thread.c (sol_thread_target::wait, ps_lgetregs, ps_lsetregs)
12087 (ps_lgetfpregs, ps_lsetfpregs, sol_update_thread_list_callback):
12088 Adjust.
12089 * solib-spu.c (spu_skip_standalone_loader): Pass down target.
12090 * solib-svr4.c (enable_break): Pass down target.
12091 * spu-multiarch.c (parse_spufs_run): Pass down target.
12092 * spu-tdep.c (spu2ppu_sniffer): Pass down target.
12093 * target-delegates.c: Regenerate.
12094 * target.c (g_target_stack): Delete.
12095 (current_top_target): Return the current inferior's top target.
12096 (target_has_execution_1): Refer to the passed-in inferior's top
12097 target.
12098 (target_supports_terminal_ours): Check whether the initial
12099 inferior was already created.
12100 (decref_target): New.
12101 (target_stack::push): Incref/decref the target.
12102 (push_target, push_target, unpush_target): Adjust.
12103 (target_stack::unpush): Defref target.
12104 (target_is_pushed): Return bool. Adjust to refer to the current
12105 inferior's target stack.
12106 (dispose_inferior): Delete, and inline parts ...
12107 (target_preopen): ... here. Only dispose of the current inferior.
12108 (target_detach): Hold strong target reference while detaching.
12109 Pass target down.
12110 (target_thread_name): Add assertion.
12111 (target_resume): Pass down target.
12112 (target_ops::beneath, find_target_at): Adjust to refer to the
12113 current inferior's target stack.
12114 (get_dummy_target): New.
12115 (target_pass_ctrlc): Pass the Ctrl-C to the first inferior that
12116 has a thread running.
12117 (initialize_targets): Rename to ...
12118 (_initialize_target): ... this.
12119 * target.h: Include "gdbsupport/refcounted-object.h".
12120 (struct target_ops): Inherit refcounted_object.
12121 (target_ops::shortname, target_ops::longname): Make const.
12122 (target_ops::async_wait_fd): New method.
12123 (decref_target): Declare.
12124 (struct target_ops_ref_policy): New.
12125 (target_ops_ref): New typedef.
12126 (get_dummy_target): Declare function.
12127 (target_is_pushed): Return bool.
12128 * thread-iter.c (all_matching_threads_iterator::m_inf_matches)
12129 (all_matching_threads_iterator::all_matching_threads_iterator):
12130 Handle filter target.
12131 * thread-iter.h (struct all_matching_threads_iterator, struct
12132 all_matching_threads_range, class all_non_exited_threads_range):
12133 Filter by target too. Remove explicit.
12134 * thread.c (threads_executing): Delete.
12135 (inferior_thread): Pass down current inferior.
12136 (clear_thread_inferior_resources): Pass down thread pointer
12137 instead of ptid_t.
12138 (add_thread_silent, add_thread_with_info, add_thread): Add
12139 process_stratum_target parameter. Use it for thread and inferior
12140 searches.
12141 (is_current_thread): New.
12142 (thread_info::deletable): Use it.
12143 (find_thread_ptid, thread_count, in_thread_list)
12144 (thread_change_ptid, set_resumed, set_running): New
12145 process_stratum_target parameter. Pass it down.
12146 (set_executing): New process_stratum_target parameter. Pass it
12147 down. Adjust reference to 'threads_executing'.
12148 (threads_are_executing): New process_stratum_target parameter.
12149 Adjust reference to 'threads_executing'.
12150 (set_stop_requested, finish_thread_state): New
12151 process_stratum_target parameter. Pass it down.
12152 (switch_to_thread): Also match inferior.
12153 (switch_to_thread): New process_stratum_target parameter. Pass it
12154 down.
12155 (update_threads_executing): Reimplement.
12156 * top.c (quit_force): Pop targets from all inferior.
12157 (gdb_init): Don't call initialize_targets.
12158 * windows-nat.c (windows_nat_target) <get_windows_debug_event>:
12159 Declare.
12160 (windows_add_thread, windows_delete_thread): Adjust.
12161 (get_windows_debug_event): Rename to ...
12162 (windows_nat_target::get_windows_debug_event): ... this. Adjust.
12163 * tracefile-tfile.c (tfile_target_open): Pass down target.
12164 * gdbsupport/common-gdbthread.h (struct process_stratum_target):
12165 Forward declare.
12166 (switch_to_thread): Add process_stratum_target parameter.
12167 * mi/mi-interp.c (mi_on_resume_1): Add process_stratum_target
12168 parameter. Use it.
12169 (mi_on_resume): Pass target down.
12170 * nat/fork-inferior.c (startup_inferior): Add
12171 process_stratum_target parameter. Pass it down.
12172 * nat/fork-inferior.h (startup_inferior): Add
12173 process_stratum_target parameter.
12174 * python/py-threadevent.c (py_get_event_thread): Pass target down.
12175
75c6c844
PA
121762020-01-10 Pedro Alves <palves@redhat.com>
12177
12178 * remote.c (remote_target::start_remote): Don't set inferior_ptid
12179 directly. Instead find the first thread in the thread list and
12180 use switch_to_thread.
12181
78f2c40a
PA
121822020-01-10 Pedro Alves <palves@redhat.com>
12183
12184 * remote.c (remote_target::remote_add_inferior): Don't bind a
12185 process to the current inferior if the current inferior is already
12186 bound to a process.
12187
e7af6c70
TBA
121882020-01-10 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
12189 Pedro Alves <palves@redhat.com>
12190
12191 * remote.c (remote_target::remote_parse_stop_reply) <W/X packets>:
12192 If no process is specified, return null_ptid instead of
12193 inferior_ptid.
12194 (remote_target::wait_as): Handle TARGET_WAITKIND_EXITED /
12195 TARGET_WAITKIND_SIGNALLED with no pid.
12196
31ba933e
PA
121972020-01-10 Pedro Alves <palves@redhat.com>
12198
12199 * remote.c (first_remote_resumed_thread): New.
12200 (remote_target::wait_as): Use it as default event_ptid instead of
12201 inferior_ptid.
12202
735fc2ca
PA
122032020-01-10 Pedro Alves <palves@redhat.com>
12204
12205 * infrun.c (handle_no_resumed): Use all_non_exited_inferiors.
12206
c17e02e1
PA
122072020-01-10 Pedro Alves <palves@redhat.com>
12208
12209 * tracefile-tfile.c (tfile_target::close): Assert that trace_fd is
12210 not -1.
12211
ab1ddbcf
PA
122122020-01-10 Pedro Alves <palves@redhat.com>
12213
12214 * break-catch-sig.c (signal_catchpoint_print_it): Don't pass a
12215 ptid to get_last_target_status.
12216 * break-catch-syscall.c (print_it_catch_syscall): Don't pass a
12217 ptid to get_last_target_status.
12218 * infcmd.c (continue_command): Don't pass a target_waitstatus to
12219 get_last_target_status.
12220 (info_program_command): Don't pass a target_waitstatus to
12221 get_last_target_status.
12222 * infrun.c (init_wait_for_inferior): Use
12223 nullify_last_target_wait_ptid.
12224 (get_last_target_status): Handle nullptr arguments.
12225 (nullify_last_target_wait_ptid): Clear target_last_waitstatus.
12226 (print_stop_event): Don't pass a ptid to get_last_target_status.
12227 (normal_stop): Don't pass a ptid to get_last_target_status.
12228 * infrun.h (get_last_target_status, set_last_target_status): Move
12229 comments here and update.
12230 (nullify_last_target_wait_ptid): Declare.
12231 * linux-fork.c (fork_load_infrun_state): Remove local extern
12232 declaration of nullify_last_target_wait_ptid.
12233 * linux-nat.c (get_detach_signal): Don't pass a target_waitstatus
12234 to get_last_target_status.
12235
f3f8ece4
PA
122362020-01-10 Pedro Alves <palves@redhat.com>
12237
12238 * gdbthread.h (scoped_restore_current_thread)
12239 <dont_restore, restore, m_dont_restore>: Declare.
12240 * thread.c (thread_alive): Add assertion. Return bool.
12241 (switch_to_thread_if_alive): New.
12242 (prune_threads): Switch inferior/thread.
12243 (print_thread_info_1): Switch thread before calling target methods.
12244 (scoped_restore_current_thread::restore): New, factored out from
12245 ...
12246 (scoped_restore_current_thread::~scoped_restore_current_thread):
12247 ... this.
12248 (scoped_restore_current_thread::scoped_restore_current_thread):
12249 Add assertion.
12250 (thread_apply_all_command, thread_select): Use
12251 switch_to_thread_if_alive.
12252 * infrun.c (proceed, restart_threads, handle_signal_stop)
12253 (switch_back_to_stepped_thread): Switch current thread before
12254 calling target methods.
12255
db2d40f7
PA
122562020-01-10 Pedro Alves <palves@redhat.com>
12257
12258 * inferior.c (switch_to_inferior_no_thread): New function,
12259 factored out from ...
12260 (inferior_command): ... here.
12261 * inferior.h (switch_to_inferior_no_thread): Declare.
12262 * mi/mi-main.c (run_one_inferior): Use
12263 switch_to_inferior_no_thread.
12264
bd420a2d
PA
122652020-01-10 Pedro Alves <palves@redhat.com>
12266
12267 * infcmd.c (kill_command): Remove dead code.
12268
ddf5db90
PA
122692020-01-10 Pedro Alves <palves@redhat.com>
12270
12271 * remote.c (remote_target::mourn_inferior): No longer check
12272 whether the target is running.
12273
5018ce90
PA
122742020-01-10 Pedro Alves <palves@redhat.com>
12275
12276 * corelow.c (core_target::has_execution): Change parameter type to
12277 inferior pointer.
12278 * inferior.c (number_of_live_inferiors): Use
12279 inferior::has_execution instead of target_has_execution_1.
12280 * inferior.h (inferior::has_execution): New.
12281 * linux-thread-db.c (thread_db_target::update_thread_list): Use
12282 inferior::has_execution instead of target_has_execution_1.
12283 * process-stratum-target.c
12284 (process_stratum_target::has_execution): Change parameter type to
12285 inferior pointer. Check the inferior's PID instead of
12286 inferior_ptid.
12287 * process-stratum-target.h
12288 (process_stratum_target::has_execution): Change parameter type to
12289 inferior pointer.
12290 * record-full.c (record_full_core_target::has_execution): Change
12291 parameter type to inferior pointer.
12292 * target.c (target_has_execution_1): Change parameter type to
12293 inferior pointer.
12294 (target_has_execution_current): Adjust.
12295 * target.h (target_ops::has_execution): Change parameter type to
12296 inferior pointer.
12297 (target_has_execution_1): Change parameter type to inferior
12298 pointer. Change return type to bool.
12299 * tracefile.h (tracefile_target::has_execution): Change parameter
12300 type to inferior pointer.
12301
74375d18
PA
123022020-01-10 Pedro Alves <palves@redhat.com>
12303
12304 * exceptions.c (print_flush): Remove current_top_target() check.
12305
acdf84a6
PA
123062020-01-10 Pedro Alves <palves@redhat.com>
12307
12308 * remote.c (show_remote_exec_file): Show the current inferior's
12309 exec-file instead of the command variable's value.
12310
ec506636
PA
123112020-01-10 Pedro Alves <palves@redhat.com>
12312
12313 * record-full.c (record_full_resume_ptid): New global.
12314 (record_full_target::resume): Set it.
12315 (record_full_wait_1): Use record_full_resume_ptid instead of
12316 inferior_ptid.
12317
873657b9
PA
123182020-01-10 Pedro Alves <palves@redhat.com>
12319
12320 * gdbthread.h (scoped_restore_current_thread)
12321 <dont_restore, restore, m_dont_restore>: Declare.
12322 * thread.c (thread_alive): Add assertion. Return bool.
12323 (switch_to_thread_if_alive): New.
12324 (prune_threads): Switch inferior/thread.
12325 (print_thread_info_1): Switch thread before calling target methods.
12326 (scoped_restore_current_thread::restore): New, factored out from
12327 ...
12328 (scoped_restore_current_thread::~scoped_restore_current_thread):
12329 ... this.
12330 (scoped_restore_current_thread::scoped_restore_current_thread):
12331 Add assertion.
12332 (thread_apply_all_command, thread_select): Use
12333 switch_to_thread_if_alive.
12334
7f0ae84c
GB
123352020-01-10 George Barrett <bob@bob131.so>
12336
12337 * stap-probe.c (stap_modify_semaphore): Don't check for null
12338 semaphores.
12339 (stap_probe::set_semaphore, stap_probe::clear_semaphore): Check
12340 for null semaphores.
12341
f5a7c406
AB
123422020-01-09 Andrew Burgess <andrew.burgess@embecosm.com>
12343
12344 * tui/tui-source.c (tui_source_window::do_scroll_vertical): Update
12345 all source windows, and maintain horizontal scroll status while
12346 doing so.
12347
9ae6bf64
TT
123482020-01-09 Tom Tromey <tom@tromey.com>
12349
12350 PR tui/18932:
12351 * tui/tui-source.c (tui_source_window::do_scroll_vertical): Call
12352 update_source_window, not print_source_lines.
12353
b2efe70c
AB
123542020-01-09 Andrew Burgess <andrew.burgess@embecosm.com>
12355
12356 * tui/tui.c (tui_enable): Register tui hooks after calling
12357 tui_display_main.
12358
5f23a082
CB
123592020-01-09 Christian Biesinger <cbiesinger@google.com>
12360
12361 * gdbsupport/common-defs.h: Don't define _FORTIFY_SOURCE on MinGW.
12362
3061113b
SM
123632020-01-08 Simon Marchi <simon.marchi@efficios.com>
12364
12365 * thread.c (print_thread_info_1): Fix indentation.
12366
57d75002
CB
123672020-01-09 Christian Biesinger <cbiesinger@google.com>
12368
12369 * symtab.c (general_symbol_info::compute_and_set_names): Move the
12370 unique_xmalloc_ptr outside the if to always free the demangled name.
12371
6a053cb1
TT
123722020-01-08 Tom Tromey <tromey@adacore.com>
12373
12374 * xcoffread.c (enter_line_range, read_xcoff_symtab)
12375 (process_xcoff_symbol, xcoff_symfile_offsets): Update.
12376 * symtab.h (MSYMBOL_VALUE_ADDRESS): Update.
12377 (struct section_offsets, ANOFFSET, SIZEOF_N_SECTION_OFFSETS):
12378 Remove.
12379 (section_offsets): New typedef.
12380 * symtab.c (fixup_section, get_msymbol_address): Update.
12381 * symmisc.c (dump_msymbols): Update.
12382 * symfile.h (relative_addr_info_to_section_offsets)
12383 (symfile_map_offsets_to_segments): Update.
12384 * symfile.c (build_section_addr_info_from_objfile)
12385 (init_objfile_sect_indices): Update.
12386 (struct place_section_arg): Change type of "offsets".
12387 (place_section): Update.
12388 (relative_addr_info_to_section_offsets): Change type of
12389 "section_offsets". Remove "num_sections" parameter.
12390 (default_symfile_offsets, syms_from_objfile_1)
12391 (set_objfile_default_section_offset): Update.
12392 (reread_symbols): No need to preserve section offsets by hand.
12393 (symfile_map_offsets_to_segments): Change type of "offsets".
12394 * stap-probe.c (relocate_address): Update.
12395 * stabsread.h (process_one_symbol): Update.
12396 * solib-target.c (struct lm_info_target) <offsets>: Change type.
12397 (solib_target_relocate_section_addresses): Update.
12398 * solib-svr4.c (enable_break, svr4_relocate_main_executable):
12399 Update.
12400 * solib-frv.c (frv_relocate_main_executable): Update.
12401 * solib-dsbt.c (dsbt_relocate_main_executable): Update.
12402 * solib-aix.c (solib_aix_get_section_offsets): Change return
12403 type.
12404 (solib_aix_solib_create_inferior_hook): Update.
12405 * remote.c (remote_target::get_offsets): Update.
12406 * psymtab.c (find_pc_sect_psymtab): Update.
12407 * psympriv.h (struct partial_symbol) <address, text_low,
12408 text_high>: Update.
12409 * objfiles.h (obj_section_offset): Update.
12410 (struct objfile) <section_offsets>: Change type.
12411 <num_sections>: Remove.
12412 (objfile_relocate): Update.
12413 * objfiles.c (entry_point_address_query): Update
12414 (relocate_one_symbol): Change type of "section_offsets".
12415 (objfile_relocate1, objfile_relocate1): Change type of
12416 "new_offsets".
12417 (objfile_rebase1): Update.
12418 * mipsread.c (mipscoff_symfile_read): Update.
12419 (read_alphacoff_dynamic_symtab): Remove "section_offsets"
12420 parameter.
12421 * mdebugread.c (parse_symbol): Change type of "section_offsets".
12422 (parse_external, psymtab_to_symtab_1): Update.
12423 * machoread.c (macho_symfile_offsets): Update.
12424 * ia64-tdep.c (ia64_find_unwind_table): Update.
12425 * hppa-tdep.c (read_unwind_info): Update.
12426 * hppa-bsd-tdep.c (hppabsd_find_global_pointer): Update.
12427 * dwarf2read.c (create_addrmap_from_index)
12428 (create_addrmap_from_aranges, dw2_find_pc_sect_compunit_symtab)
12429 (process_psymtab_comp_unit_reader, add_partial_symbol)
12430 (add_partial_subprogram, process_full_comp_unit)
12431 (read_file_scope, read_func_scope, read_lexical_block_scope)
12432 (read_call_site_scope, dwarf2_rnglists_process)
12433 (dwarf2_ranges_process, dwarf2_ranges_read)
12434 (dwarf_decode_lines_1, var_decode_location, new_symbol)
12435 (dwarf2_fetch_die_loc_sect_off, dwarf2_per_cu_text_offset):
12436 Update.
12437 * dwarf2-frame.c (execute_cfa_program, dwarf2_frame_find_fde):
12438 Update.
12439 * dtrace-probe.c (dtrace_probe::get_relocated_address): Update.
12440 * dbxread.c (read_dbx_symtab, read_ofile_symtab): Update.
12441 (process_one_symbol): Change type of "section_offsets".
12442 * ctfread.c (get_objfile_text_range): Update.
12443 * coffread.c (coff_symtab_read, enter_linenos)
12444 (process_coff_symbol): Update.
12445 * coff-pe-read.c (add_pe_forwarded_sym): Update.
12446 * amd64-windows-tdep.c (amd64_windows_find_unwind_info): Update.
12447
456e800a
TT
124482020-01-08 Tom Tromey <tromey@adacore.com>
12449
12450 * dwarf2read.c (parse_macro_definition): Use std::string.
12451 (parse_macro_definition): Likewise.
12452
6dfa2fc2
TT
124532020-01-08 Tom Tromey <tromey@adacore.com>
12454
12455 * dwarf2read.c (abbrev_table_read_table): Use std::vector.
12456 (ATTR_ALLOC_CHUNK): Remove.
12457
421d1616
TT
124582020-01-08 Tom Tromey <tromey@adacore.com>
12459
12460 * dwarf2read.c (fixup_go_packaging): Use unique_xmalloc_ptr.
12461
43816ebc
TT
124622020-01-08 Tom Tromey <tromey@adacore.com>
12463
12464 * dwarf2read.c (add_partial_symbol): Use unique_xmalloc_ptr.
12465 (dwarf2_compute_name, open_dwo_file): Likewise.
12466 (process_enumeration_scope): Use std::vector.
12467 (guess_partial_die_structure_name): Use unique_xmalloc_ptr.
12468 (partial_die_info::fixup, dwarf2_start_subfile)
12469 (guess_full_die_structure_name, dwarf2_name): Likewise.
12470 (determine_prefix): Update.
12471 (guess_full_die_structure_name): Make return type const.
12472 (partial_die_full_name): Return unique_xmalloc_ptr.
12473 (DW_FIELD_ALLOC_CHUNK): Remove.
12474
4212d509
TT
124752020-01-07 Tom Tromey <tromey@adacore.com>
12476
12477 PR build/24937:
12478 * stap-probe.c (class stap_static_probe_ops): Add constructor.
12479
06a6207a
JT
124802020-01-02 Jon Turney <jon.turney@dronecode.org.uk>
12481
12482 * cli/cli-style.c: Set cli_styling to 'true' in the Cygwin build.
12483
153d79c4
AB
124842020-01-06 Andrew Burgess <andrew.burgess@embecosm.com>
12485
12486 * stack.c (print_frame_info): Move disassemble_next_line code
12487 inside source_print block.
12488
66182876
EZ
124892020-01-06 Eli Zaretskii <eliz@gnu.org>
12490
12491 * gdbsupport/gdb_wait.c: Include <signal.h> instead of
12492 gdb/signals.h, as we are now using native signal symbols.
12493
cbfa8581
SV
124942020-01-06 Shahab Vahedi <shahab@synopsys.com>
12495
12496 * tui/tui-disasm.c (tui_disasm_window::addr_is_displayed): Avoid
12497 overflow by an early check of content vs threshold.
aac66a4c 12498 * tui/tui-source.c (tui_source_window::line_is_displayed):
cbfa8581
SV
12499 Likewise.
12500
3f602821
EZ
125012020-01-06 Eli Zaretskii <eliz@gnu.org>
12502
12503 * NEWS: Mention the recent fix of $_exitsignal on MS-Windows.
12504
a08c904d
JT
125052020-01-02 Jon Turney <jon.turney@dronecode.org.uk>
12506
12507 * coff-pe-read.c (read_pe_exported_syms): Don't try to read the
12508 export table if no section contains it's RVA.
12509
89a65580
EZ
125102020-01-06 Eli Zaretskii <eliz@gnu.org>
12511
12512 * windows-tdep.c: Fix a typo in WINDOWS_SIGABRT.
12513
8b7fcda2
HD
125142020-01-06 Hannes Domani <ssbssa@yahoo.de>
12515
12516 * source.c (print_source_lines_base): Set last_line_listed.
12517
a61b4f69
SV
125182020-01-06 Shahab Vahedi <shahab@synopsys.com>
12519
12520 * tui/tui-disasm.c: Remove trailing spaces.
12521
559e7e50
EZ
125222020-01-06 Eli Zaretskii <eliz@gnu.org>
12523 Pedro Alves <palves@redhat.com>
12524
12525 * Makefile.in (COMMON_SFILES): Add gdbsupport/gdb_wait.c.
12526 * windows-tdep.c: New enumeration of WINDOWS_SIG* signals.
12527 (windows_gdb_signal_to_target): New function, uses the above
12528 enumeration to convert GDB internal signal codes to equivalent
12529 Windows codes.
12530 (windows_init_abi): Call set_gdbarch_gdb_signal_to_target.
12531 * windows-nat.c: Include "gdb_wait.h".
12532 (get_windows_debug_event): Extract the fatal exception from the
12533 exit status and convert to the equivalent Posix signal number.
12534 * cli/cli-cmds.c (exit_status_set_internal_vars): Account for the
12535 possibility that WTERMSIG returns GDB_SIGNAL_UNKNOWN.
12536 * gdbsupport/gdb_wait.c: New file, implements
12537 windows_status_to_termsig.
12538 * gdbsupport/gdb_wait.h (WIFEXITED, WIFSIGNALED, WEXITSTATUS)
12539 (WTERMSIG) [__MINGW32__]: Separate definitions for MinGW.
12540
f2302a34
AB
125412020-01-05 Andrew Burgess <andrew.burgess@embecosm.com>
12542
12543 * tui/tui-layout.c (tui_add_win_to_layout): Use tui_set_layout not
12544 show_layout.
12545
6a5206eb
LM
125462020-01-05 Luis Machado <luis.machado@linaro.org>
12547
12548 * aarch64-linux-nat.c
12549 (aarch64_linux_nat_target::thread_architecture): Use bfd_arch_aarch64
12550 and bfd_mach_aarch64.
12551
6ec1d75e
PW
125522020-01-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
12553
12554 * ui-file.c (stdio_file::can_emit_style_escape)
12555 (tee_file::can_emit_style_escape): Ensure style is used also on
12556 gdb_stderr when gdb_stderr is a tty supporting styling, similarly
12557 to gdb_stdout.
12558 * main.c (set_gdb_data_directory): Use file style to output the
12559 warning that the given pathname is not a directory.
12560 * top.c (show_history_filename, gdb_safe_append_history)
12561 (show_gdb_datadir): Use file style.
12562
44f81a76
HD
125632020-01-03 Hannes Domani <ssbssa@yahoo.de>
12564
12565 * solib-target.c (struct lm_info_target):
12566 Change offsets to be a unique_xmalloc_ptr.
12567 (solib_target_relocate_section_addresses): Update.
12568
25057eb0
HD
125692020-01-03 Hannes Domani <ssbssa@yahoo.de>
12570
12571 * windows-nat.c (windows_clear_solib): Free so_list linked list.
12572
6e2118f5
BE
125732020-01-03 Bernd Edlinger <bernd.edlinger@hotmail.de>
12574
12575 * MAINTAINERS (Write After Approval): Add myself.
12576
8133c7dc
LM
125772020-01-02 Luis Machado <luis.machado@linaro.org>
12578
12579 * proc-service.c (get_ps_regcache): Remove reference to obsolete
12580 Cell BE architecture.
12581 * target.h (struct target_ops) <thread_architecture>: Likewise.
12582
48189bec
HD
125832020-01-01 Hannes Domani <ssbssa@yahoo.de>
12584
12585 * Makefile.in: Use INSTALL_PROGRAM_ENV.
12586
ead1063b
HD
125872020-01-01 Hannes Domani <ssbssa@yahoo.de>
12588
12589 * MAINTAINERS (Write After Approval): Add myself.
12590
e5d78223
JB
125912020-01-01 Joel Brobecker <brobecker@adacore.com>
12592
12593 * gdbarch.sh: Update copyright year range of generated files.
12594
b811d2c2
JB
125952020-01-01 Joel Brobecker <brobecker@adacore.com>
12596
12597 Update copyright year range in all GDB files.
12598
5f4def5c
JB
125992020-01-01 Joel Brobecker <brobecker@adacore.com>
12600
12601 * copyright.py: Convert to Python 3.
12602
51fd4002
JB
126032020-01-01 Joel Brobecker <brobecker@adacore.com>
12604
12605 * copyright.py: Adapt after move of gnulib directory from gdb
12606 directory to toplevel directory.
12607
5fb651f2
JB
126082020-01-01 Joel Brobecker <brobecker@adacore.com>
12609
12610 * copyright.py (main): Exit if run from the wrong directory.
12611
5dd8bf88
JB
126122020-01-01 Joel Brobecker <brobecker@adacore.com>
12613
12614 * top.c (print_gdb_version): Change copyright year to 2020.
12615
9f71dacb 126162020-01-01 Joel Brobecker <brobecker@adacore.com>
3d34df0a 12617
9f71dacb 12618 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2019.
3d34df0a 12619
9f71dacb 12620For older changes see ChangeLog-2019.
c906108c
SS
12621\f
12622Local Variables:
12623mode: change-log
12624left-margin: 8
12625fill-column: 74
12626version-control: never
57da7796 12627coding: utf-8
c906108c 12628End: