]> git.ipfire.org Git - thirdparty/binutils-gdb.git/blame - gdb/ChangeLog
Sync include, libiberty with GCC.
[thirdparty/binutils-gdb.git] / gdb / ChangeLog
CommitLineData
7a4e8e7d
TBA
12020-09-11 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2
3 * breakpoint.c: Fix typo in the help message of the
4 "set breakpoint condition-evaluation" command.
5
cf4ac4be
KR
62020-09-10 Kamil Rytarowski <n54@gmx.com>
7
8 * nbsd-nat.c: Include "nat/netbsd-nat.h".
9 * (nbsd_nat_target::pid_to_exec_file)
10 (nbsd_nat_target::thread_alive, nbsd_nat_target::thread_name)
11 (nbsd_nat_target::post_startup_inferior)
12 (nbsd_nat_target::post_attach, nbsd_nat_target::xfer_partial)
13 (nbsd_add_threads): Switch local code to common gdb/nat functions.
14 * (nbsd_pid_to_cmdline): Call sysctl from the global namespace.
15 * (nbsd_thread_lister): Remove.
16
f404573e
KR
172020-09-10 Kamil Rytarowski <n54@gmx.com>
18
19 * fork-inferior.c (startup_inferior): Avoid double free.
20
1ccb2c17
KR
212020-09-10 Kamil Rytarowski <n54@gmx.com>
22
23 * netbsd-nat.h (netbsd_nat::qxfer_siginfo): Add.
24 * netbsd-nat.c (netbsd_nat::qxfer_siginfo): Likewise.
25
feedfcc7
KR
262020-09-10 Kamil Rytarowski <n54@gmx.com>
27
28 * netbsd-nat.h (netbsd_nat::enable_proc_events): Add.
29 * netbsd-nat.c: Include <sys/ptrace.h>.
30 * (netbsd_nat::enable_proc_events): Add.
31
c489f8c6
KR
322020-09-10 Kamil Rytarowski <n54@gmx.com>
33
34 * netbsd-nat.h: Include "gdbsupport/function-view.h".
35 * (netbsd_nat::thread_alive, netbsd_nat::thread_name)
36 (netbsd_nat::for_each_thread): Add.
37 * netbsd-nat.c: Include "gdbsupport/common-defs.h" and
38 "gdbsupport/common-debug.h".
39 * (netbsd_nat::netbsd_thread_lister)
40 (netbsd_nat::thread_alive, netbsd_nat::thread_name)
41 (netbsd_nat::for_each_thread): Add.
42
330662f6
KR
432020-09-10 Kamil Rytarowski <n54@gmx.com>
44
45 * netbsd-nat.h: Include <unistd.h>.
46 * (netbsd_nat::pid_to_exec_file): Add.
47 * netbsd-nat.c: Include <sys/types.h> and <sys/sysctl.h>.
48 * (netbsd_nat::pid_to_exec_file) Add.
49
70b67307
KR
502020-09-10 Kamil Rytarowski <n54@gmx.com>
51
52 * configure.nat (NATDEPFILES): Add nat/netbsd-nat.o when needed.
53
99cf6da6
KR
542020-09-10 Kamil Rytarowski <n54@gmx.com>
55
56 * netbsd-nat.h: New file.
57 * netbsd-nat.c: Likewise.
58
1b788fb6
TT
592020-09-09 Tom Tromey <tromey@adacore.com>
60
61 * ada-lang.c (remove_extra_symbols): Do not increment when
62 removing an element
63
03b0a45f
TT
642020-09-08 Tom Tromey <tromey@adacore.com>
65
66 * gdb_bfd.c (gdb_bfd_open): Call bfd_fopen when fstat fails.
67
3cae4447
TT
682020-09-08 Tom Tromey <tromey@adacore.com>
69
70 PR win32/25302:
71 * gdb_bfd.c (gdb_bfd_data): Add "st" parameter.
72 (gdb_bfd_init_data): New function.
73 (gdb_bfd_open, gdb_bfd_ref): Use gdb_bfd_init_data.
74
7f08fd51
TBA
752020-09-07 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
76
77 * infrun.c (fetch_inferior_event): Use
78 `switch_to_target_no_thread` to switch the target.
79
3e6ff933
TT
802020-09-06 Tom Tromey <tom@tromey.com>
81
82 * symfile.h (dwarf2_free_objfile): Don't declare.
83
e56798df
AKS
842020-09-03 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
85
86 * gdb/i386-tdep.c (i386_floatformat_for_type): Added conditions
87 to match 16 byte real/complex type generated by Flang compiler.
88
8f5c6526
TV
892020-09-03 Tom de Vries <tdevries@suse.de>
90
91 PR breakpoint/26546
92 * dwarf2/read.c (new_symbol): Tag label symbol without DW_AT_low_pc as
93 LOC_OPTIMIZED_OUT instead of LOC_LABEL.
94
c5065df0
SM
952020-09-02 Simon Marchi <simon.marchi@polymtl.ca>
96
97 * maint.c (index_digits): New function.
98 (struct maint_print_section_data): Remove.
99 (print_bfd_section_info): Remove print_data parameter, add arg
100 and index_digits.
101 (print_objfile_section_info): Likewise.
102 (print_bfd_section_info_maybe_relocated): Likewise (plus
103 objfile).
104 (maintenance_info_sections): Adjust calls.
105
02c6f3f1
TT
1062020-09-02 Tom Tromey <tromey@adacore.com>
107
108 * ada-varobj.c (ada_varobj_get_ptr_number_of_children): Return 0
109 for null pointers.
110 (ada_varobj_adjust_for_child_access): Special-case null pointers.
111
ef5e5b0b
SM
1122020-09-01 Simon Marchi <simon.marchi@polymtl.ca>
113
114 * bcache.h (struct bcache) <insert>: Change type of `added` to
115 pointer to bool.
116 * bcache.c (bcache::insert): Likewise.
117 * gdbtypes.c (check_types_worklist): Adjust.
118 * psymtab.c (add_psymbol_to_bcache): Adjust.
119
973695d6
KB
1202020-08-31 Kevin Buettner <kevinb@redhat.com>
121
122 * corelow.c (unordered_set): Include.
123 (class core_target): Add field 'm_core_unavailable_mappings'.
124 (core_target::build_file_mappings): Print only one warning
125 per inaccessible file. Add unavailable/broken mappings
126 to m_core_unavailable_mappings.
127 (core_target::xfer_partial): Call...
128 (core_target::xfer_memory_via_mappings): New method.
129
264fc0e2
SM
1302020-08-31 Simon Marchi <simon.marchi@polymtl.ca>
131
132 * dwarf2/read.c (struct field_info) <non_public_fields>: Change
133 type to bool.
134
2de01bdb
SM
1352020-08-31 Simon Marchi <simon.marchi@polymtl.ca>
136
137 * dwarf2/read.c (struct field_info): Fix indentation.
138
f3bd50f1
SM
1392020-08-31 Simon Marchi <simon.marchi@efficios.com>
140
141 * frame-unwind.h (frame_prev_register_ftype): Fix adjective
142 ordering in comment.
143 * frame.c (frame_id_eq): Fix indentation.
144
22b9b4b0
SL
1452020-08-31 Scott Linder <scott@scottlinder.com>
146 Simon Marchi <simon.marchi@efficios.com>
147
148 * inline-frame.c (inline_frame_this_id): Remove assert that prevents
149 inline frame ids in outer frame.
150
84154d16
SM
1512020-08-31 Simon Marchi <simon.marchi@efficios.com>
152
153 * frame.h (enum frame_id_stack_status) <FID_STACK_OUTER>: New.
154 * frame.c (fprint_frame_id): Handle FID_STACK_OUTER.
155 (outer_frame_id): Use FID_STACK_OUTER instead of
156 FID_STACK_INVALID.
157 (frame_id_p): Don't check for outer_frame_id.
158
8efaf6b3
SM
1592020-08-31 Simon Marchi <simon.marchi@efficios.com>
160
161 * frame-unwind.c (frame_unwind_got_optimized): Don't set
162 regnum/frame in value. Call allocate_value_lazy.
163 * frame.c (frame_unwind_register_value): Use
164 val_print_not_saved.
165
fe1fe7ea
SM
1662020-08-31 Simon Marchi <simon.marchi@efficios.com>
167
168 * gdbtypes.h (NULL_TYPE): Remove, change all uses to nullptr.
169
f7c7700d
PA
1702020-08-29 Pedro Alves <pedro@palves.net>
171
172 * progspace.c (print_program_space): Use all_inferiors. Switch to
173 the inferior before calling target_pid_to_str.
174
e0814aae
TT
1752020-08-28 Tom Tromey <tom@tromey.com>
176
177 * xcoffread.c (xcoff_end_psymtab): Update comment.
178 * dbxread.c (dbx_end_psymtab): Update comment.
179
626d2320
TV
1802020-08-28 Tom de Vries <tdevries@suse.de>
181
182 PR breakpoint/26544
183 * breakpoint.c (parse_breakpoint_sals): Remove const from struct
184 event_location.
185 (create_breakpoint): Same.
186 (base_breakpoint_decode_location): Same.
187 (bkpt_create_sals_from_location): Same.
188 (bkpt_decode_location): Same.
189 (bkpt_probe_create_sals_from_location): Same.
190 (bkpt_probe_decode_location): Same.
191 (tracepoint_create_sals_from_location): Same.
192 (tracepoint_decode_location): Same.
193 (tracepoint_probe_decode_location): Same.
194 (strace_marker_create_sals_from_location): Same.
195 (strace_marker_decode_location): Same.
196 (create_sals_from_location_default): Same.
197 (decode_location_default): Same.
198 * breakpoint.h (struct breakpoint_ops): Same.
199 (create_breakpoint): Same.
200 * linespec.h (decode_line_full): Same.
201 * linespec.c (decode_line_full): Same. Throw error if
202 result.size () == 0.
203
df631783
PA
2042020-08-27 Pedro Alves <pedro@palves.net>
205
206 PR gdb/26524
207 * breakpoint.c (until_break_fsm) <location_breakpoint,
208 caller_breakpoint>: Delete fields.
209 <breakpoints>: New field.
210 <until_break_fsm>: Adjust to save a breakpoint vector instead of
211 two individual breakpoints.
212 (until_break_fsm::should_stop): Loop over breakpoints in the
213 breakpoint vector.
214 (until_break_fsm::clean_up): Adjust to clear the breakpoints
215 vector.
216 (until_break_command): Handle location expanding into multiple
217 sals.
218
b2b38aa4
PA
2192020-08-27 Pedro Alves <pedro@palves.net>
220
221 PR gdb/26523
222 * inline-frame.c (stopped_by_user_bp_inline_frame): Also consider
223 bp_until breakpoints user-specified locations. Update intro
224 comment.
225
b886559f
SM
2262020-08-27 Simon Marchi <simon.marchi@polymtl.ca>
227
228 * gdb_bfd.h (gdb_bfd_section_iterator, gdb_bfd_section_range,
229 gdb_bfd_sections): New.
230 * maint.c (print_bfd_section_info): Change param type to
231 maint_print_section_data.
232 (print_objfile_section_info): Likewise.
233 (print_bfd_section_info_maybe_relocated): Likewise.
234 (maintenance_info_sections): Use gdb_bfd_sections.
235
4c6e63bf
SV
2362020-08-25 Shahab Vahedi <shahab@synopsys.com>
237
238 * MAINTAINERS: Add ARC target and maintainer.
239
8d7f0635
AK
2402020-08-25 Anton Kolesov <anton.kolesov@synopsys.com>
241
242 * configure.tgt: ARC support for GNU/Linux.
243 * Makefile.in (ALL_TARGET_OBJS): Likewise.
244 * arc-linux-tdep.c: New file.
245 * arc-tdep.h (ARC_STATUS32_L_MASK, ARC_STATUS32_DE_MASK): Declare.
246 * arc-tdep.c (arc_write_pc): Use it.
247
fdd8731b
SV
2482020-08-25 Shahab Vahedi <shahab@synopsys.com>
249
250 * arc-tdep.c (arc_check_for_hardware_loop): New.
251 * arc-tdep.h (gdbarch_tdep): New field has_hw_loops.
252
22459524
SV
2532020-08-25 Shahab Vahedi <shahab@synopsys.com>
254
255 * arc-tdep.h: Include "gdbarch.h".
256
995d3a19
SV
2572020-08-25 Shahab Vahedi <shahab@synopsys.com>
258
259 * arch/arc.h
260 (arc_gdbarch_features): New class to stir the selection of target XML.
261 (arc_create_target_description): Use FEATURES to choose XML target.
262 (arc_lookup_target_description): Use arc_create_target_description
263 to create _new_ target descriptions or return the already created
264 ones if the FEATURES is the same.
265 * arch/arc.c: Implementation of prototypes described above.
266 * gdb/arc-tdep.h (arc_regnum enum): Add more registers.
267 (arc_gdbarch_features_init): Initialize the FEATURES struct.
268 * arc-tdep.c (*_feature_name): Make feature names consistent.
269 (arc_register_feature): A new struct to hold information about
270 registers of a particular target/feature.
271 (arc_check_tdesc_feature): Check if XML provides registers in
272 compliance with ARC_REGISTER_FEATURE structs.
273 (arc_update_acc_reg_names): Add aliases for r58 and r59.
274 (determine_*_reg_feature_set): Which feature name to look for.
275 (arc_gdbarch_features_init): Given MACH and ABFD, initialize FEATURES.
276 (mach_type_to_arc_isa): Convert from a set of binutils machine types
277 to expected ISA enums to be used in arc_gdbarch_features structs.
278 * features/Makefile (FEATURE_XMLFILES): Add new files.
279 * gdb/features/arc/v1-aux.c: New file.
280 * gdb/features/arc/v1-aux.xml: Likewise.
281 * gdb/features/arc/v1-core.c: Likewise.
282 * gdb/features/arc/v1-core.xml: Likewise.
283 * gdb/features/arc/v2-aux.c: Likewise.
284 * gdb/features/arc/v2-aux.xml: Likewise.
285 * gdb/features/arc/v2-core.c: Likewise.
286 * gdb/features/arc/v2-core.xml: Likewise.
287 * NEWS (Changes since GDB 9): Announce obsolence of old feature names.
288
3945d2d7
GM
2892020-08-25 Gaius Mulley <gaiusmod2@gmail.com>
290 Andrew Burgess <andrew.burgess@embecosm.com>
291
292 PR m2/26372
fc5d6901 293 * m2-exp.y (exp): Improve comment for non_empty_arglist case, add
3945d2d7
GM
294 an assert. Remove single element array indexing pattern as the
295 MULTI_SUBSCRIPT support will handle this case too.
296
2677f2d3
SM
2972020-08-24 Simon Marchi <simon.marchi@polymtl.ca>
298
299 * value.h (valprint_check_validity): Move declaration from
300 here...
301 * valprint.h (valprint_check_validity): ... to here.
302
c426fddb
SM
3032020-08-24 Simon Marchi <simon.marchi@efficios.com>
304
305 * debug.h: New file.
306 * debug.c (debug_prefixed_vprintf): New function.
307 * infrun.c (infrun_debug_printf_1): Use debug_prefixed_vprintf.
308 * linux-nat.c (linux_nat_debug_printf_1): Likewise.
309
1eb8556f
SM
3102020-08-24 Simon Marchi <simon.marchi@efficios.com>
311
312 * infrun.h (infrun_debug_printf_1): New function declaration.
313 (infrun_debug_printf): New macro.
314 * infrun.c (infrun_debug_printf_1): Use infrun_debug_printf
315 throughout.
316 (infrun_debug_printf): New function.
317 * breakpoint.c (should_be_inserted): Use infrun_debug_printf.
318 (handle_jit_event): Likewise.
319
b8fff44e
MW
3202020-08-21 Mark Wielaard <mark@klomp.org>
321
322 * ada-lex.l: Extend register warnings diagnostics comment for g++.
323
d19c3068
SM
3242020-08-22 Simon Marchi <simon.marchi@efficios.com>
325
326 * frame.c (enum class frame_id_status): New.
327 (struct frame_info) <this_id::p>: Change type to frame_id_status.
328 (fprintf_frame): Update.
329 (compute_frame_id): Set frame id status to "computing" on entry.
330 Set it back to "not_computed" on failure and to "computed" on
331 success.
332 (get_frame_id): Assert the frame id is not being computed.
333 (create_sentinel_frame): Use frame_id_status::COMPUTED.
334 (create_new_frame): Likewise.
335 (frame_cleanup_after_sniffer): Update assert.
336
b70e516e
SM
3372020-08-20 Simon Marchi <simon.marchi@polymtl.ca>
338
339 * regcache.c (pid_ptid_regcache_map): New type.
340 (target_ptid_regcache_map): Remove.
341 (target_pid_ptid_regcache_map): New type.
342 (regcaches): Change type to target_pid_ptid_regcache_map.
343 (get_thread_arch_aspace_regcache): Update.
344 (regcache_thread_ptid_changed): Update, handle pid-like ptid
345 case.
346 (regcaches_size): Update.
347 (regcache_count): Update.
348 (registers_changed_ptid_target_pid_test): New.
349 (_initialize_regcache): Register new test.
350
cdd9148a
SM
3512020-08-20 Simon Marchi <simon.marchi@polymtl.ca>
352
353 * regcache.c (regcache_count): New.
354 (struct regcache_test_data): New.
355 (regcache_test_data_up): New.
356 (populate_regcaches_for_test): New.
357 (regcaches_test): Remove.
358 (get_thread_arch_aspace_regcache_test): New.
359 (registers_changed_ptid_all_test): New.
360 (registers_changed_ptid_target_test): New.
361 (registers_changed_ptid_target_ptid_test): New.
362 (regcache_thread_ptid_changed): Remove regcache_count lambda.
363 (_initialize_regcache): Register new tests.
364
dd125343
SM
3652020-08-20 Simon Marchi <simon.marchi@polymtl.ca>
366
367 * regcache.c (test_get_thread_arch_aspace_regcache): Rename to...
368 (get_thread_arch_aspace_regcache_and_check): ... this. Remove
369 gdbarch and aspace parameter. Use current inferior's aspace.
370 Validate regcache's arch value.
371 (regcaches_test): Update.
372
3ee93972
SM
3732020-08-20 Simon Marchi <simon.marchi@polymtl.ca>
374
375 * regcache.c (regcaches_test): Call registers_changed.
376
33bf4c5c
TBA
3772020-08-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
378
379 * infrun.c (process_event_stop_test): Fix typo "breapoint".
380
c2fd7fae
AKS
3812020-08-19 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
382
383 * amd64-tdep.c (amd64_skip_prologue): Using symbol table
384 to find the end of prologue for flang compiled binaries.
385 * arm-tdep.c (arm_skip_prologue): Likewise.
386 * i386-tdep.c (i386_skip_prologue): Likewise.
387 * producer.c (producer_is_llvm): New function.
388 (producer_parsing_tests): Added new tests for clang/flang.
389 * producer.h (producer_is_llvm): New declaration.
390
9327494e
SM
3912020-08-18 Simon Marchi <simon.marchi@efficios.com>
392
393 * linux-nat.c (linux_nat_debug_printf): New function.
394 (linux_nat_debug_printf_1): New macro. Use throughout the file.
395
d138725a
AM
3962020-08-18 Aaron Merey <amerey@redhat.com>
397
398 * Makefile.in (DEBUGINFOD_CFLAGS, DEBUGINFOD_LIBS): New variables.
399 (INTERNAL_CFLAGS_BASE): Add DEBUGINFOD_CFLAGS.
400 (CLIBS): Add DEBUGINFOD_LIBS.
401
f9b11e6b
ST
4022020-08-17 Sergei Trofimovich <siarheit@google.com>
403
404 * ia64-linux-nat.c: Include "gdbarch.h" to declare used
405 'gdbarch_num_regs'.
406
3ae7ab99
TT
4072020-08-17 Tom Tromey <tromey@adacore.com>
408
409 * ada-varobj.c (ada_varobj_decode_var): Handle case where
410 ada_get_decoded_value returns NULL.
411
b017825f
TT
4122020-08-17 Tom Tromey <tromey@adacore.com>
413
414 * python/py-inferior.c (infpy_search_memory): Use
415 gdb_py_object_from_ulongest.
416 * python/py-infevents.c (create_inferior_call_event_object)
417 (create_memory_changed_event_object): Use
418 gdb_py_object_from_ulongest.
419 * python/py-linetable.c (ltpy_entry_get_pc): Use
420 gdb_py_object_from_ulongest.
421
7635cf79
SM
4222020-08-17 Simon Marchi <simon.marchi@polymtl.ca>
423
424 * loc.c (class symbol_needs_eval_context): Fix indentation.
425
f54be24b
SM
4262020-08-17 Simon Marchi <simon.marchi@polymtl.ca>
427
428 * dwarf2/loc.c (dwarf2_loc_desc_get_symbol_read_needs): Use
429 bool.
430
53d5a2a5
TV
4312020-08-17 Tom de Vries <tdevries@suse.de>
432
433 PR gdb/26393
434 * gdbtypes.c (dump_dynamic_prop): New function.
435 (recursive_dump_type): Use dump_dynamic_prop for TYPE_CODE_RANGE.
436
547ce8f0
TV
4372020-08-15 Tom de Vries <tdevries@suse.de>
438
439 PR backtrace/26390
440 * stack.c (print_frame_args): Temporarily set the selected
441 frame to FRAME while printing the frame's arguments.
442
6ea815e7
PFC
4432020-08-14 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
444
445 PR breakpoints/26385
446 * ppc-linux-nat.c (ppc_linux_nat_target::low_prepare_to_resume):
447 Always clear watchpoint with PTRACE_SET_DEBUGREG.
448
6e562fa3
PFC
4492020-08-14 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
450
451 * ppc-linux-nat.c (ppc_linux_dreg_interface::detect)
452 (ppc_linux_nat_target::low_prepare_to_resume): Use ptrace () < 0
453 and >= to check return value instead of == -1 and != -1.
454
d369b608
SM
4552020-08-14 Simon Marchi <simon.marchi@polymtl.ca>
456
457 * utils.h (class gdb_argv) <as_array_view>: New method.
458 * utils.c (gdb_argv_as_array_view_test): New.
459 (_initialize_utils): Register selftest.
460 * maint.c (maintenance_selftest): Use the new method.
461
b31488a3
KR
4622020-08-13 Kamil Rytarowski <n54@gmx.com>
463
464 * target.h (supports_dumpcore, dumpcore): New
465 function declarations.
466 * target.c (supports_dumpcore, dumpcore): New
467 functions.
468 * target-delegates.c: Rebuild.
469 * gcore.c (gcore_command): Use target_supports_dumpcore ()
470 and target_dumpcore ().
471
002a3166
AM
4722020-08-13 Aaron Merey <amerey@redhat.com>
473
474 * debuginfod-support.c: Replace global variables with user_data.
475
ece5bc8a
SM
4762020-08-13 Simon Marchi <simon.marchi@polymtl.ca>
477
478 * maint.c (maintenance_selftest): Split args and pass array_view
479 to run_tests.
480
6d8a0a5e
LM
4812020-08-12 Luis Machado <luis.machado@linaro.org>
482
483 * value.c (check_type_length_before_alloc): Use ULONGEST to store a
484 type's length.
485 Use %s and pulongest to print the length.
486
7cf663a9
PA
4872020-08-12 Pedro Alves <palves@redhat.com>
488
489 * NEWS: Move "Multi-target debugging support" item to the
490 "Changes since GDB 9" section.
491
27c7b875
PA
4922020-08-12 Pedro Alves <palves@redhat.com>
493
494 PR gdb/26336
495 * progspace.c (program_space::remove_objfile): Invalidate the
496 frame cache.
497
1796a2a1
TV
4982020-08-11 Tom de Vries <tdevries@suse.de>
499
500 * MAINTAINERS: Mark ms1 as deleted.
501
f8e3fe0d
LM
5022020-08-10 Luis Machado <luis.machado@linaro.org>
503
504 PR gdb/26310
505
506 * aarch64-tdep.c (aarch64_analyze_prologue): Track use of SP/FP and
507 act accordingly.
508 (aarch64_analyze_prologue_test): Add more unit tests to exercise
509 movz/str/stur/stp skipping behavior.
510
cc308722
LM
5112020-08-10 Luis Machado <luis.machado@linaro.org>
512
513 * nat/aarch64-sve-linux-sigcontext.h (SVE_PT_REGS_OFFSET): Use
514 struct user_sve_header instead of struct sve_context.
515
041d9819
SM
5162020-08-09 Simon Marchi <simon.marchi@polymtl.ca>
517
518 * read.h (dwarf2_fetch_die_loc_sect_off,
519 dwarf2_fetch_die_loc_cu_off): Replace function pointer +
520 `void *` parameter with function_view.
521 * read.c (dwarf2_fetch_die_loc_sect_off,
522 dwarf2_fetch_die_loc_cu_off): Likewise.
523 * loc.c (get_frame_pc_for_per_cu_dwarf_call): Remove.
524 (per_cu_dwarf_call): Adjust.
525 (get_frame_address_in_block_wrapper): Remove.
526 (indirect_synthetic_pointer): Adjust.
527 (get_ax_pc): Remove.
528 (dwarf2_compile_expr_to_ax): Adjust.
529
38f8aa06
TV
5302020-08-08 Tom de Vries <tdevries@suse.de>
531
532 PR build/26344
533 * arch/riscv.c (riscv_lookup_target_description): Use an explicit
534 constructor.
535 * regcache.c (get_thread_arch_aspace_regcache): Same.
536
a52b3ae2
TT
5372020-08-07 Tom Tromey <tromey@adacore.com>
538
539 * ravenscar-thread.c
540 (ravenscar_thread_target::set_base_thread_from_ravenscar_task):
541 New method.
542 (ravenscar_thread_target::wait): Check
543 runtime_initialized.
544 (ravenscar_thread_target::prepare_to_store)
545 (ravenscar_thread_target::stopped_by_sw_breakpoint)
546 (ravenscar_thread_target::stopped_by_hw_breakpoint)
547 (ravenscar_thread_target::stopped_by_watchpoint)
548 (ravenscar_thread_target::stopped_data_address)
549 (ravenscar_thread_target::core_of_thread): Use
550 scoped_restore_current_thread and
551 set_base_thread_from_ravenscar_task.
552
0e29517d
TT
5532020-08-07 Tom Tromey <tromey@adacore.com>
554
555 * ravenscar-thread.c (update_thread_list): Set inferior_ptid.
556
592f9bd7
TT
5572020-08-07 Tom Tromey <tromey@adacore.com>
558
559 * ravenscar-thread.c (ravenscar_thread_target::wait): Call
560 update_inferior_ptid before update_thread_list.
561 (temporarily_change_regcache_ptid): New class.
562 (ravenscar_thread_target::fetch_registers)
563 (ravenscar_thread_target::store_registers)
564 (ravenscar_thread_target::prepare_to_store): Use base thread when
565 forwarding operation.
566
39e2018a
TT
5672020-08-07 Tom Tromey <tromey@adacore.com>
568
569 * ravenscar-thread.c (ravenscar_thread_target::resume): Handle
570 "is_pid" case.
571
2080266b
TT
5722020-08-07 Tom Tromey <tromey@adacore.com>
573
574 * ravenscar-thread.c (xfer_partial, enable_btrace, add_thread):
575 New methods.
576 (ravenscar_thread_target::get_thread_base_cpu): Check m_cpu_map
577 first.
578 (ravenscar_thread_target::add_thread): Rename from
579 ravenscar_add_thread.
580 (ravenscar_thread_target::update_thread_list): Use a lambda.
581 (ravenscar_thread_target::xfer_partial): New method.
582
78c02f21
TT
5832020-08-07 Tom Tromey <tromey@adacore.com>
584
585 * ada-lang.h (ada_task_list_iterator_ftype): Now a
586 gdb::function_view.
587 (iterate_over_live_ada_tasks): Change type of argument.
588 * ada-tasks.c (iterate_over_live_ada_tasks): Change type
589 of argument.
590
d5d833af
TT
5912020-08-07 Tom Tromey <tromey@adacore.com>
592
593 * ravenscar-thread.c (ravenscar_thread_target) <extra_thread_info>:
594 Remove.
595 (ravenscar_thread_target::extra_thread_info): Remove.
596 (ravenscar_thread_target::pid_to_str): Mention Ravenscar in result;
597 defer to target beneath for non-Ravenscar threads.
598
a8ac85bb
TT
5992020-08-07 Tom Tromey <tromey@adacore.com>
600
601 * ravenscar-thread.c (ravenscar_thread_target) <get_base_cpu,
602 get_base_thread_from_ravenscar_task>: Now methods.
603 <m_cpu_map>: New member.
604 (ravenscar_thread_target::get_thread_base_cpu): Rename from
605 ravenscar_get_thread_base_cpu. Check m_cpu_map.
606 (ravenscar_thread_target::task_is_currently_active): Update.
607 (ravenscar_thread_target::get_base_thread_from_ravenscar_task):
608 Now a method.
609 (ravenscar_thread_target::add_active_thread): Put initial thread
610 into the m_cpu_map.
611
550ab58d
TT
6122020-08-07 Tom Tromey <tromey@adacore.com>
613
614 * ravenscar-thread.c (ravenscar_thread_target::wait): Return
615 event_ptid.
616
e9546579
TT
6172020-08-07 Tom Tromey <tromey@adacore.com>
618
619 * ravenscar-thread.c (ravenscar_thread_target::wait): Check
620 runtime_initialized.
621
3d4470e5
TT
6222020-08-07 Tom Tromey <tromey@adacore.com>
623
624 * ravenscar-thread.c (ravenscar_thread_target): Don't call
625 add_active_thread.
626 (ravenscar_thread_target::add_active_thread): Now public.
627 (ravenscar_inferior_created): Call add_active_thread after pushing
628 the target.
629
888bdb2b
SM
6302020-08-07 Simon Marchi <simon.marchi@polymtl.ca>
631
632 * regcache.c (ptid_regcache_map): New type.
633 (target_ptid_regcache_map): New type.
634 (regcaches): Change type to target_ptid_regcache_map.
635 (get_thread_arch_aspace_regcache): Update to regcaches' new
636 type.
637 (regcache_thread_ptid_changed): Likewise.
638 (registers_changed_ptid): Likewise.
639 (regcaches_size): Likewise.
640 (regcaches_test): Update.
641 (regcache_thread_ptid_changed): Update.
642 * regcache.h (regcache_up): New type.
643 * gdbsupport/ptid.h (hash_ptid): New struct.
644
b161a60d
SM
6452020-08-07 Simon Marchi <simon.marchi@efficios.com>
646
647 * observable.h (thread_ptid_changed): Add parameter
648 `process_stratum_target *`.
649 * infrun.c (infrun_thread_ptid_changed): Add parameter
650 `process_stratum_target *` and use it.
651 (selftests): New namespace.
652 (infrun_thread_ptid_changed): New function.
653 (_initialize_infrun): Register selftest.
654 * regcache.c (regcache_thread_ptid_changed): Add parameter
655 `process_stratum_target *` and use it.
656 (regcache_thread_ptid_changed): New function.
657 (_initialize_regcache): Register selftest.
658 * thread.c (thread_change_ptid): Pass target to
659 thread_ptid_changed observable.
660
d2854d8d
CT
6612020-08-06 Caroline Tice <cmtice@google.com>
662
fe4c3d43
SM
663 * dwarf2/read.c (struct dwo_file): Update comment on 'sections' field.
664 (struct dwp_sections): Update field comments. Add loclists and
665 rnglists fields.
666 (struct virtual_v2_dwo_sections): Rename struct to
667 'virtual_v2_or_v5_dwo_sections'; update comments at top of struct; add
668 size & offset fields for loclists and rnglists.
669 (struct dwp_hash_table): Add a 'v5' struct field to the union section.
670 (create_debug_type_hash_table): Add 'DW_UT_split_type' to the check for
671 skipping dummy type units.
672 (create_dwp_hash_table): Update the large comment above the function to
673 discuss Version 5 DWP files as well, with references. Update all the
674 version checks in the function to check for version 5 as well. Add new
675 section at the end to create dwp hash table for version 5.
676 (create_dwp_v2_section): Rename function to
677 'create_dwp_v2_or_v5_section'. Update function comment appropriately.
678 Add V5 to error message text.
679 (create_dwo_unit_in_dwp_v2): Change calls to create_dwp_v2_section
680 into calls to create_dwp_v2_or_v5_section.
681 (create_dwo_unit_in_dwp_v5): New function.
682 (lookup_dwo_unit_in_dwp): Update conditional statement to explicitly
683 check for version2; add else clause to handle version 5.
684 (open_and_init_dwo_file): Add code to check dwarf version & only call
685 create_debug_types_hash_table (with sections.types) if version is not 5;
686 else call create_debug_type_hash_table, with sections.info.
687 (dwarf2_locate_v2_dwp_sections): Update function comment to mention
688 version 5.
689 (dwarf2_locate_v5_dwp_sections): New function.
690 (open_and_init_dwp_file): Add else-if clause for version 5 to call
691 bfd_map_over_sections with dwarf2_locate_v5_dwp_sections.
d2854d8d 692
159ed7d9
SM
6932020-08-06 Simon Marchi <simon.marchi@efficios.com>
694
695 * regcache.h (class regcache): Remove friend
696 registers_changed_ptid.
697 <regcache_thread_ptid_changed>: Remove.
698 <regcaches>: Remove.
699 * regcache.c (regcache::regcaches): Rename to...
700 (regcaches): ... this. Make static.
701 (get_thread_arch_aspace_regcache): Update.
702 (regcache::regcache_thread_ptid_changed): Rename to...
703 (regcache_thread_ptid_changed): ... this. Update.
704 (class regcache_access): Remove.
705 (regcaches_test): Update.
706 (_initialize_regcache): Update.
707 * sparc64-tdep.c, dwarf2/index-write.c, record-btrace.c: Include
708 <forward_list>.
709
174981ae
SM
7102020-08-06 Simon Marchi <simon.marchi@efficios.com>
711
712 * regcache.h (class regcache) <current_regcache>: Rename to...
713 <regcaches>: ... this. Move doc here.
714 * regcache.c (regcache::current_regcache) Rename to...
715 (regcache::regcaches): ... this. Move doc to header.
716 (get_thread_arch_aspace_regcache): Update.
717 (regcache::regcache_thread_ptid_changed): Update.
718 (registers_changed_ptid): Update.
719 (class regcache_access) <current_regcache_size>: Rename to...
720 <regcaches_size>: ... this.
721 (current_regcache_test): Rename to...
722 (regcaches_test): ... this.
723 (_initialize_regcache): Update.
724
ed908db6
VC
7252020-08-06 Victor Collod <vcollod@nvidia.com>
726
727 * amd64-tdep.c (amd64_analyze_prologue): Fix incorrect comment.
728
b5582ab7
KB
7292020-08-05 Kevin Buettner <kevinb@redhat.com>
730
731 * corelow.c (core_target::build_file_mappings): Don't output
732 null pathname in warning.
733
ea946b86
SM
7342020-08-05 Simon Marchi <simon.marchi@polymtl.ca>
735
736 * gdb.dwarf2/clztest.exp, gdb.dwarf2/dw2-common-block.exp,
737 gdb.dwarf2/dw2-dup-frame.exp, gdb.dwarf2/dw2-reg-undefined.exp,
738 gdb.dwarf2/dw2-single-line-discriminators.exp,
739 dw2-undefined-ret-addr.exp: Pass nopie to compilation options.
740
57d02173
TT
7412020-08-05 Tom Tromey <tromey@adacore.com>
742
743 PR rust/26197:
744 * dwarf2/read.c (alloc_rust_variant): Handle univariant case.
745 (quirk_rust_enum): Call alloc_rust_variant for univariant case.
746 Fix off-by-one and type size errors in ordinary case.
747
5555c86d
TV
7482020-08-05 Tom de Vries <tdevries@suse.de>
749
750 * gdbtypes.c (type_not_allocated, type_not_associated): Use
751 "prop->const_val () == 0" instead of "prop->const_val () != 0".
752
97916bfe
SM
7532020-08-04 Simon Marchi <simon.marchi@efficios.com>
754
755 * frame.h (frame_id_p): Return bool.
756 (frame_id_artificial_p): Return bool.
757 (frame_id_eq): Return bool.
758 (has_stack_frames): Return bool.
759 (get_selected_frame): Fix typo in comment.
760 (get_frame_pc_if_available): Return bool.
761 (get_frame_address_in_block_if_available): Return bool.
762 (get_frame_func_if_available): Return bool.
763 (read_frame_register_unsigned): Return bool.
764 (get_frame_register_bytes): Return bool.
765 (safe_frame_unwind_memory): Return bool.
766 (deprecated_frame_register_read): Return bool.
767 (frame_unwinder_is): Return bool.
768 * frame.c (struct frame_info) <prev_arch::p>: Change type to
769 bool.
770 <this_id::p>: Likewise.
771 <prev_p>: Likewise.
772 (frame_stash_add): Return bool.
773 (get_frame_id): Use bool.
774 (frame_id_build_special) Use bool.
775 (frame_id_build_unavailable_stack): Use bool.
776 (frame_id_build): Use bool.
777 (frame_id_p): Return bool, use true/false instead of 1/0.
778 (frame_id_artificial_p): Likewise.
779 (frame_id_eq): Likewise.
780 (frame_id_inner): Likewise.
781 (get_frame_func_if_available): Likewise.
782 (read_frame_register_unsigned): Likewise.
783 (deprecated_frame_register_read): Likewise.
784 (get_frame_register_bytes): Likewise.
785 (has_stack_frames): Likewise.
786 (inside_main_func): Likewise.
787 (inside_entry_func): Likewise.
788 (get_frame_pc_if_available): Likewise.
789 (get_frame_address_in_block_if_available): Likewise.
790 (frame_unwinder_is): Likewise.
791 (safe_frame_unwind_memory): Likewise.
792 (frame_unwind_arch): Likewise.
793
fedfee88
SM
7942020-08-04 Simon Marchi <simon.marchi@efficios.com>
795
796 * frame.c (frame_info) <prev_func> <p>: Rename to status, change
797 type to cached_copy_status.
798 (fprintf_frame): Adjust.
799 (get_frame_func_if_available): Adjust.
800 (frame_cleanup_after_sniffer): Adjust.
801
6cfa9b59
MW
8022020-08-04 Mark Wielaard <mark@klomp.org>
803
804 * MAINTAINERS (Write After Approval): Update email address.
805
66d6346b
SM
8062020-08-04 Simon Marchi <simon.marchi@polymtl.ca>
807
808 * gdbtypes.h (TYPE_DYN_PROP_ADDR): Remove, replace uses with
809 dynamic_prop::const_val.
810
8a6d5e35
SM
8112020-08-04 Simon Marchi <simon.marchi@polymtl.ca>
812
813 * gdbtypes.h (TYPE_DYN_PROP_KIND): Remove, replace uses with
814 dynamic_prop::kind.
815
51d6067d
SM
8162020-08-04 Simon Marchi <simon.marchi@polymtl.ca>
817
818 * gdbtypes.h (TYPE_DYN_PROP_BATON): Remove.
819
b26e2ae7
JM
8202020-08-04 Jose E. Marchesi <jose.marchesi@oracle.com>
821
822 * configure.tgt: Set gdb_sim for bpf-*-* targets.
823
39791af2
JM
8242020-08-04 Weimin Pan <weimin.pan@oracle.com>
825 Jose E. Marchesi <jose.marchesi@oracle.com>
826
827 * configure.tgt: Add entry for bpf-*-*.
828 * Makefile.in (ALL_TARGET_OBS): Add bpf-tdep.o
829 (ALLDEPFILES): Add bpf-tdep.c.
830 * bpf-tdep.c: New file.
831 * MAINTAINERS: Add bpf target and maintainer.
832 * NEWS: Mention the support for the new target.
833
521894aa
TV
8342020-08-04 Tom de Vries <tdevries@suse.de>
835
836 PR symtab/23270
837 * dwarf2/read.c (find_partial_die): Change internal error into Dwarf
838 Error.
839
5d6356e9
JB
8402020-08-03 John Baldwin <jhb@FreeBSD.org>
841
842 * syscalls/freebsd.xml: Regenerate.
843
0cf82b81
JB
8442020-08-03 John Baldwin <jhb@FreeBSD.org>
845
846 * syscalls/update-freebsd.sh: Fix usage and year range.
847
8f34b746
TV
8482020-08-03 Tom de Vries <tdevries@suse.de>
849
850 PR symtab/26333
851 * dwarf2/read.c (dwarf_decode_lines_1): Ignore
852 DW_LNE_lo_user/DW_LNE_hi_user range.
853
5e500d33
SM
8542020-07-30 Simon Marchi <simon.marchi@polymtl.ca>
855
856 PR ada/26318
857 * ada-lang.c (ada_modulus): Return 0 if property is not of const
858 kind.
859
78319c15
TBA
8602020-07-30 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
861
862 * breakpoint.c (set_breakpoint_condition): Do minor refactoring.
863
4c55e970
TBA
8642020-07-30 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
865
866 * breakpoint.c (set_breakpoint_condition): Update the condition
867 expressions after checking that the input condition string parses
868 successfully and does not contain junk at the end.
869
1e620590
TBA
8702020-07-30 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
871
872 * breakpoint.c (set_breakpoint_condition): Update the
873 condition string after parsing the new condition successfully.
874
c8693053
RO
8752020-07-30 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
876
877 * proc-api.c (_STRUCTURED_PROC): Don't define.
878 * proc-events.c: Likewise.
879 * proc-flags.c: Likewise.
880 * proc-why.c: Likewise.
881 * procfs.c: Likewise.
882
883 * Makefile.in (INTERNAL_CPPFLAGS): Add LARGEFILE_CPPFLAGS.
884 * configure, config.in: Regenerate.
885
5a99adb8
TV
8862020-07-30 Tom de Vries <tdevries@suse.de>
887
888 PR build/26320
889 * ui-style.h (struct ui_file_style::color): Wrap m_value and
890 m_red/m_green/m_blue in a union.
891
8ba83e91
TV
8922020-07-29 Tom de Vries <tdevries@suse.de>
893
894 PR tdep/26280
895 * s390-tdep.c (s390_displaced_step_fixup): Fix Wmaybe-uninitialized.
896
f75a0693
AB
8972020-07-28 Tom Tromey <tromey@adacore.com>
898
899 PR symtab/26270:
900 * symtab.h (find_pc_partial_function_sym): Declare.
901 * cli/cli-cmds.c (disassemble_command): Use
902 find_pc_partial_function_sym. Check asm_demangle.
903 * blockframe.c (cache_pc_function_sym): New global.
904 (cache_pc_function_name): Remove.
905 (clear_pc_function_cache): Update.
906 (find_pc_partial_function_sym): New function, from
907 find_pc_partial_function.
908 (find_pc_partial_function): Rewrite using
909 find_pc_partial_function_sym.
910
16f3242c
TT
9112020-07-28 Tom Tromey <tromey@adacore.com>
912
913 * cli/cli-cmds.c (_initialize_cli_cmds): Rearrange "disassemble"
914 help. Add usage.
915
4888741a
TT
9162020-07-28 Tom Tromey <tromey@adacore.com>
917
918 * dwarf2/expr.c (dwarf_expr_context::execute_stack_op)
919 <DW_OP_GNU_variable_value>: Cast to address type.
920
4d46f402
KR
9212020-07-28 Kamil Rytarowski <n54@gmx.com>
922
923 * nbsd-nat.h (nbsd_nat_target::xfer_partial): New declaration.
924 * nbsd-nat.c (nbsd_nat_target::xfer_partial): New function.
925 * nbsd-tdep.c (nbsd_gdbarch_data_handle, struct nbsd_gdbarch_data)
926 (init_nbsd_gdbarch_data, get_nbsd_gdbarch_data)
927 (nbsd_get_siginfo_type): New.
928 (nbsd_init_abi): Install gdbarch "get_siginfo_type" method.
929 (_initialize_nbsd_tdep): New.
930
d70f978b
L
9312020-07-28 H.J. Lu <hongjiu.lu@intel.com>
932
933 PR binutils/26301
934 * configure: Regenerated.
935
377170fa
L
9362020-07-28 H.J. Lu <hongjiu.lu@intel.com>
937
938 PR binutils/26301
939 * configure: Regenerated.
940
43d5901d
AB
9412020-07-28 Andrew Burgess <andrew.burgess@embecosm.com>
942
943 * python/py-frame.c: Remove 'user-regs.h' include.
944 (frapy_read_register): Rewrite to make use of
945 gdbpy_parse_register_id.
946 * python/py-registers.c (gdbpy_parse_register_id): New function,
947 moved here from python/py-unwind.c. Updated the return type, and
948 also accepts register descriptor objects.
949 * python/py-unwind.c: Remove 'user-regs.h' include.
950 (pyuw_parse_register_id): Moved to python/py-registers.c.
951 (unwind_infopy_add_saved_register): Update to use
952 gdbpy_parse_register_id.
953 (pending_framepy_read_register): Likewise.
954 * python/python-internal.h (gdbpy_parse_register_id): Declare.
955
14fa8fb3
AB
9562020-07-28 Andrew Burgess <andrew.burgess@embecosm.com>
957
958 * python/py-registers.c: Add 'user-regs.h' include.
959 (register_descriptor_iter_find): New function.
960 (register_descriptor_iterator_object_methods): New static global
961 methods array.
962 (register_descriptor_iterator_object_type): Add pointer to methods
963 array.
964
ddce1758
JB
9652020-07-27 John Baldwin <jhb@FreeBSD.org>
966
967 * fbsd-nat.h: Include <osreldate.h>. Define USE_SIGTRAP_SIGINFO
968 for all architectures on FreeBSD 11.3 and later.
969
a4089f52
TT
9702020-07-27 Tom Tromey <tromey@adacore.com>
971
972 * gcore.h (load_corefile): Don't declare.
973
95420d30
TV
9742020-07-27 Tom de Vries <tdevries@suse.de>
975
976 * configure.ac: Fix sys/sockets.h -> sys/socket.h typo.
977 * config.in: Regenerate.
978 * configure: Regenerate.
979
05a6b8c2
EZ
9802020-07-26 Eli Zaretskii <eliz@gnu.org>
981
982 * configure.ac (AC_CHECK_HEADERS): Check for sys/socket.h and
983 ws2tcpip.h. When checking whether socklen_t type is defined, use
984 ws2tcpip.h if it is available and sys/socket.h isn't.
985 * configure: Regenerate.
986 * config.in: Regenerate.
987
e79eb02f
AB
9882020-07-25 Andrew Burgess <andrew.burgess@embecosm.com>
989
990 PR fortran/23051
991 PR fortran/26139
992 * valops.c (value_ind): Pass address to
993 readjust_indirect_value_type.
994 * value.c (readjust_indirect_value_type): Make parameter
995 non-const, and add extra address parameter. Resolve original type
996 before using it.
997 * value.h (readjust_indirect_value_type): Update function
998 signature and comment.
999
876518dd
TV
10002020-07-25 Tom de Vries <tdevries@suse.de>
1001
1002 PR symtab/26243
1003 * dwarf2/read.c (lnp_state_machine::record_line): Ignore zero line
1004 entries.
1005
f6720b1c
AM
10062020-07-24 Aaron Merey <amerey@redhat.com>
1007
1008 * Makefile.in: Replace LIBDEBUGINFOD with DEBUGINFOD_LIBS.
1009 * configure: Rebuild.
1010
513487e1
KB
10112020-07-23 Kevin Buettner <kevinb@redhat.com>
1012
1013 PR corefiles/26294
1014 * corelow.c (_initialize_corelow): Add period to help text
1015 for "maintenance print core-file-backed-mappings".
1016
e7bc9db8
PA
10172020-07-23 Pedro Alves <pedro@palves.net>
1018
1019 * frame-unwind.c (frame_unwind_try_unwinder): On exception, don't
1020 touch THIS_CACHE/THIS_FRAME if the frame cache was cleared
1021 meanwhile.
1022 * frame.c (frame_cache_generation, get_frame_cache_generation):
1023 New.
1024 (reinit_frame_cache): Increment FRAME_CACHE_GENERATION.
1025 (get_prev_frame_if_no_cycle): On exception, don't touch
1026 PREV_FRAME/THIS_FRAME if the frame cache was cleared meanwhile.
1027 * frame.h (get_frame_cache_generation): Declare.
1028
90fcc466
TV
10292020-07-23 Tom de Vries <tdevries@suse.de>
1030
1031 PR tui/26282
1032 * tui/tui-winsource.h (struct tui_source_windows::tui_source_windows):
1033 New default constructor.
1034
78344df7
AB
10352020-07-23 Andrew Burgess <andrew.burgess@embecosm.com>
1036
1037 * disasm.c (do_mixed_source_and_assembly_deprecated): Don't
1038 exclude non-statement entries.
1039
b089853a
KB
10402020-07-22 Kevin Buettner <kevinb@redhat.com>
1041
1042 * NEWS (New commands): Mention new command
1043 "maintenance print core-file-backed-mappings".
1044
09c2f5d4
KB
10452020-07-22 Kevin Buettner <kevinb@redhat.com>
1046
1047 * corelow.c (gdbcmd.h): Include.
1048 (core_target::info_proc_mappings): New method.
1049 (get_current_core_target): New function.
1050 (maintenance_print_core_file_backed_mappings): New function.
1051 (_initialize_corelow): Add core-file-backed-mappings to
1052 "maint print" commands.
1053
9c5ec5c2 10542020-07-22 Kevin Buettner <kevinb@redhat.com>
fe4c3d43 1055
9c5ec5c2
KB
1056 * linux-tdep.c (dump_note_entry_p): New function.
1057 (linux_dump_mapping_p_ftype): New typedef.
1058 (linux_find_memory_regions_full): Add new parameter,
1059 should_dump_mapping_p.
1060 (linux_find_memory_regions): Adjust call to
1061 linux_find_memory_regions_full.
1062 (linux_make_mappings_core_file_notes): Use dump_note_entry_p in
1063 call to linux_find_memory_regions_full.
1064
db082f59
KB
10652020-07-22 Kevin Buettner <kevinb@redhat.com>
1066
1067 * corelow.c (solist.h, unordered_map): Include.
1068 (class core_target): Add field m_core_file_mappings and
1069 method build_file_mappings.
1070 (core_target::core_target): Call build_file_mappings.
1071 (core_target::~core_target): Free memory associated with
1072 m_core_file_mappings.
1073 (core_target::build_file_mappings): New method.
1074 (core_target::xfer_partial): Use m_core_file_mappings
1075 for memory transfers.
1076 * linux-tdep.c (linux_read_core_file_mappings): New
1077 function.
1078 (linux_core_info_proc_mappings): Rewrite to use
1079 linux_read_core_file_mappings.
1080 (linux_init_abi): Register linux_read_core_file_mappings.
1081
7e183d27
KB
10822020-07-22 Kevin Buettner <kevinb@redhat.com>
1083
1084 * arch-utils.c (default_read_core_file_mappings): New function.
1085 * arch-utils.c (default_read_core_file_mappings): Declare.
1086 * gdbarch.sh (read_core_file_mappings): New gdbarch method.
1087 * gdbarch.h, gdbarch.c: Regenerate.
1088
2735d421
KB
10892020-07-22 Kevin Buettner <kevinb@redhat.com>
1090
1091 PR corefiles/25631
1092 * corelow.c (core_target:xfer_partial): Revise
1093 TARGET_OBJECT_MEMORY case to consider non-SEC_HAS_CONTENTS
1094 case after first checking the stratum beneath the core
1095 target.
1096 (has_all_memory): Return true.
1097 * target.c (raw_memory_xfer_partial): Revise comment
1098 regarding use of has_all_memory.
1099
e56cb451
KB
11002020-07-22 Kevin Buettner <kevinb@redhat.com>
1101
1102 * exec.h (section_table_xfer_memory): Revise declaration,
1103 replacing section name parameter with an optional callback
1104 predicate.
1105 * exec.c (section_table_xfer_memory): Likewise.
1106 * bfd-target.c, exec.c, target.c, corelow.c: Adjust all callers
1107 of section_table_xfer_memory.
1108
32fa152e
TT
11092020-07-22 Tom Tromey <tromey@adacore.com>
1110
1111 * mi/mi-cmd-stack.c (list_args_or_locals): Use
1112 lookup_symbol_search_name.
1113
a67a1c41
AB
11142020-07-22 Andrew Burgess <andrew.burgess@embecosm.com>
1115
1116 * python/py-registers.c (gdbpy_register_object_data_init): Remove
1117 redundant local variable.
1118 (gdbpy_get_register_descriptor): Extract descriptor vector as a
1119 reference, not pointer, update code accordingly.
1120
a7b4ff4f
SM
11212020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
1122 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1123
1124 * objfiles.h (struct objfile) <skip_jit_symbol_lookup>: New field.
1125 * jit.c (jit_breakpoint_re_set_internal): Use the
1126 `skip_jit_symbol_lookup` field.
1127
2340e834
SM
11282020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
1129 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1130
1131 * jit.c (jit_read_descriptor): Define the descriptor address once,
1132 use twice.
1133 (jit_breakpoint_deleted): Move the declaration of the loop variable
1134 `iter` into the loop header.
1135 (jit_breakpoint_re_set_internal): Move the declaration of the local
1136 variable `objf_data` to the first point of definition.
1137 (jit_event_handler): Move the declaration of local variables
1138 `code_entry`, `entry_addr`, and `objf` to their first point of use.
1139 Rename `objf` to `jited`.
1140
c1072906
SM
11412020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
1142
1143 * jit.h (struct jiter_objfile_data) <jiter_objfile_data, objfile>:
1144 Remove.
1145 * jit.c (get_jiter_objfile_data): Update.
1146
c8474dc3
TBA
11472020-07-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1148 Simon Marchi <simon.marchi@polymtl.ca>
1149
1150 * jit.c (struct jit_program_space_data): Remove.
1151 (jit_program_space_key): Remove.
1152 (jiter_objfile_data::~jiter_objfile_data): Remove program space
1153 stuff.
1154 (get_jit_program_space_data): Remove.
1155 (jit_breakpoint_deleted): Iterate on all of the program space's
1156 objfiles.
1157 (jit_inferior_init): Likewise.
1158 (jit_breakpoint_re_set_internal): Likewise. Also change return
1159 type to void.
1160 (jit_breakpoint_re_set): Pass current_program_space to
1161 jit_breakpoint_re_set_internal.
1162
77208eb7
SM
11632020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
1164
1165 * jit.h (struct jiter_objfile_data) <cached_code_address,
1166 jit_breakpoint>: Move to here from ...
1167 * jit.c (jit_program_space_data): ... here.
1168 (jiter_objfile_data::~jiter_objfile_data): Update.
1169 (jit_breakpoint_deleted): Update.
1170 (jit_breakpoint_re_set_internal): Update.
1171
8c1c720f
SM
11722020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
1173
1174 * jit.c (jiter_objfile_data::~jiter_objfile_data): Remove some
1175 checks.
1176 (jit_read_descriptor): Remove NULL check.
1177 (jit_event_handler): Add an assertion.
1178
0e74a041
SM
11792020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
1180
1181 * jit.h (struct jit_objfile_data): Split into...
1182 (struct jiter_objfile_data): ... this ...
1183 (struct jited_objfile_data): ... and this.
1184 * objfiles.h (struct objfile) <jit_data>: Remove.
1185 <jiter_data, jited_data>: New fields.
1186 * jit.c (jit_objfile_data::~jit_objfile_data): Rename to ...
1187 (jiter_objfile_data::~jiter_objfile_data): ... this.
1188 (get_jit_objfile_data): Rename to ...
1189 (get_jiter_objfile_data): ... this.
1190 (add_objfile_entry): Update.
1191 (jit_read_descriptor): Use get_jiter_objfile_data.
1192 (jit_find_objf_with_entry_addr): Use objfile's jited_data field.
1193 (jit_breakpoint_re_set_internal): Use get_jiter_objfile_data.
1194 (jit_inferior_exit_hook): Use objfile's jited_data field.
1195
238b5c9f
SM
11962020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
1197
1198 * jit.h: Forward-declare `struct minimal_symbol`.
1199 (struct jit_objfile_data): Migrate to here from jit.c; also add a
1200 constructor, destructor, and an objfile* field.
1201 * jit.c (jit_objfile_data): Remove.
1202 (struct jit_objfile_data): Migrate from here to jit.h.
1203 (jit_objfile_data::~jit_objfile_data): New destructor
1204 implementation with code moved from free_objfile_data.
1205 (free_objfile_data): Delete.
1206 (get_jit_objfile_data): Update to use the jit_data field of objfile.
1207 (jit_find_objf_with_entry_addr): Ditto.
1208 (jit_inferior_exit_hook): Ditto.
1209 (_initialize_jit): Remove the call to
1210 register_objfile_data_with_cleanup.
1211 * objfiles.h (struct objfile) <jit_data>: New field.
1212
fe053b9e
TBA
12132020-07-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1214
1215 * jit.h: Forward-declare `struct objfile`.
1216 (jit_event_handler): Add a second parameter, the JITer objfile.
1217 * jit.c (jit_read_descriptor): Change the signature to take the
1218 JITer objfile as an argument instead of the jit_program_space_data.
1219 (jit_inferior_init): Update the call to jit_read_descriptor.
1220 (jit_event_handler): Use the new JITer objfile argument when calling
1221 jit_read_descriptor.
1222 * breakpoint.c (handle_jit_event): Update the call to
1223 jit_event_handler to pass the JITer objfile.
1224
4cec0c66
JB
12252020-07-21 John Baldwin <jhb@FreeBSD.org>
1226
1227 * gdbarch.c: Regenerate.
1228 * gdbarch.h: Regenerate.
1229 * gdbarch.sh (handle_segmentation_fault): Remove method.
1230 * infrun.c (handle_segmentation_fault): Remove.
1231 (print_signal_received_reason): Remove call to
1232 handle_segmentation_fault.
1233
0e42f66a
JB
12342020-07-21 John Baldwin <jhb@FreeBSD.org>
1235
1236 * sparc64-linux-tdep.c (sparc64_linux_handle_segmentation_fault):
1237 Rename to sparc64_linux_report_signal_info and add siggnal
1238 argument.
1239 (sparc64_linux_init_abi): Use sparc64_linux_report_signal_info
1240 instead of sparc64_linux_handle_segmentation_fault.
1241
77bdfeb2
JB
12422020-07-21 John Baldwin <jhb@FreeBSD.org>
1243
1244 * amd64-linux-tdep.c (amd64_linux_init_abi_common): Use
1245 i386_linux_report_signal_info instead of
1246 i386_linux_handle_segmentation_fault.
1247 * i386-linux-tdep.c (i386_linux_handle_segmentation_fault): Rename
1248 to i386_linux_report_signal_info and add siggnal argument.
1249 (i386_linux_init_abi): Use i386_linux_report_signal_info instead
1250 of i386_linux_handle_segmentation_fault.
1251 * i386-linux-tdep.h (i386_linux_handle_segmentation_fault): Rename
1252 to i386_linux_report_signal_info and add siggnal argument.
1253
ad97bfc5
JB
12542020-07-21 John Baldwin <jhb@FreeBSD.org>
1255
1256 * corelow.c (core_target_open): Invoke gdbarch report_signal_info
1257 hook if present.
1258
272bb05c
JB
12592020-07-21 John Baldwin <jhb@FreeBSD.org>
1260
1261 * gdbarch.c: Regenerate.
1262 * gdbarch.h: Regenerate.
1263 * gdbarch.sh (report_signal_info): New method.
1264 * infrun.c (print_signal_received_reason): Invoke gdbarch
1265 report_signal_info hook if present.
1266
baf8791e
AB
12672020-07-21 Andrew Burgess <andrew.burgess@embecosm.com>
1268
1269 * python/py-registers.c : Add 'unordered_map' include.
1270 (gdbpy_new_reggroup): Renamed to...
1271 (gdbpy_get_reggroup): ...this. Update to only create register
1272 group descriptors when needed.
1273 (gdbpy_reggroup_iter_next): Update.
1274
f7306dac
AB
12752020-07-21 Andrew Burgess <andrew.burgess@embecosm.com>
1276
1277 * python/py-registers.c (gdbpy_register_object_data): New static
1278 global.
1279 (gdbpy_register_object_data_init): New function.
1280 (gdbpy_new_register_descriptor): Renamed to...
1281 (gdbpy_get_register_descriptor): ...this, and update to reuse
1282 existing register descriptors where possible.
1283 (gdbpy_register_descriptor_iter_next): Update.
1284 (gdbpy_initialize_registers): Register new gdbarch data.
1285
05c309a8
SM
12862020-07-21 Simon Marchi <simon.marchi@efficios.com>
1287
1288 * linux-nat.c (stopped_pids): Make static.
1289
d1fd641e
SM
12902020-07-21 Simon Marchi <simon.marchi@polymtl.ca>
1291
1292 PR ada/26235
1293 * gdbtypes.c (ada_discrete_type_low_bound,
1294 ada_discrete_type_high_bound): Handle undefined bounds.
1295
1de14d77
KR
12962020-07-21 Kamil Rytarowski <n54@gmx.com>
1297
1298 * nbsd-nat.h (nbsd_nat_target::supports_multi_process): New
1299 declaration.
1300 * nbsd-nat.c (nbsd_nat_target::supports_multi_process): New
1301 function.
1302
ed810cc7
JB
13032020-07-20 John Baldwin <jhb@FreeBSD.org>
1304
1305 * fbsd-tdep.c (fbsd_skip_solib_resolver): New function.
1306 (fbsd_init_abi): Install gdbarch "skip_solib_resolver" method.
1307 * fbsd-tdep.h (fbsd_skip_solib_resolver): New prototype.
1308 * mips-fbsd-tdep.c (mips_fbsd_skip_solib_resolver): New function.
1309 (mips_fbsd_init_abi): Install gdbarch "skip_solib_resolver"
1310 method.
1311
ae5369e7
LC
13122020-07-20 Ludovic Courtès <ludo@gnu.org>
1313
1314 * guile/scm-math.c (vlscm_integer_fits_p): Use 'uintmax_t'
1315 and 'intmax_t' instead of 'scm_t_uintmax' and 'scm_t_intmax',
1316 which are deprecated in Guile 3.0.
1317 * configure.ac (try_guile_versions): Add "guile-3.0".
1318 * configure (try_guile_versions): Regenerate.
1319 * NEWS: Update entry.
1320
68cf161c
LC
13212020-07-20 Ludovic Courtès <ludo@gnu.org>
1322 Doug Evans <dje@google.com>
1323
1324 PR gdb/21104
1325 * guile/scm-ports.c (USING_GUILE_BEFORE_2_2): New macro.
1326 (ioscm_memory_port)[read_buf_size, write_buf_size]: Wrap in #if
1327 USING_GUILE_BEFORE_2_2.
1328 (stdio_port_desc, memory_port_desc) [!USING_GUILE_BEFORE_2_2]:
1329 Change type to 'scm_t_port_type *'.
1330 (natural_buffer_size) [!USING_GUILE_BEFORE_2_2]: New variable.
1331 (ioscm_open_port) [USING_GUILE_BEFORE_2_2]: Add 'stream'
1332 parameter and honor it. Update callers.
1333 (ioscm_open_port) [!USING_GUILE_BEFORE_2_2]: New function.
1334 (ioscm_read_from_port, ioscm_write) [!USING_GUILE_BEFORE_2_2]: New
1335 functions.
1336 (ioscm_fill_input, ioscm_input_waiting, ioscm_flush): Wrap in #if
1337 USING_GUILE_BEFORE_2_2.
1338 (ioscm_init_gdb_stdio_port) [!USING_GUILE_BEFORE_2_2]: Use
1339 'ioscm_read_from_port'. Call 'scm_set_port_read_wait_fd'.
1340 (ioscm_init_stdio_buffers) [!USING_GUILE_BEFORE_2_2]: New function.
1341 (gdbscm_stdio_port_p) [!USING_GUILE_BEFORE_2_2]: Use 'SCM_PORTP'
1342 and 'SCM_PORT_TYPE'.
1343 (gdbscm_memory_port_end_input, gdbscm_memory_port_seek)
1344 (ioscm_reinit_memory_port): Wrap in #if USING_GUILE_BEFORE_2_2.
1345 (gdbscm_memory_port_read, gdbscm_memory_port_write)
1346 (gdbscm_memory_port_seek, gdbscm_memory_port_close)
1347 [!USING_GUILE_BEFORE_2_2]: New functions.
1348 (gdbscm_memory_port_print): Remove use of 'SCM_PTOB_NAME'.
1349 (ioscm_init_memory_port_type) [!USING_GUILE_BEFORE_2_2]: Use
1350 'gdbscm_memory_port_read'.
1351 Wrap 'scm_set_port_end_input', 'scm_set_port_flush', and
1352 'scm_set_port_free' calls in #if USING_GUILE_BEFORE_2_2.
1353 (gdbscm_get_natural_buffer_sizes) [!USING_GUILE_BEFORE_2_2]: New
1354 function.
1355 (ioscm_init_memory_port): Remove.
1356 (ioscm_init_memory_port_stream): New function
1357 (ioscm_init_memory_port_buffers) [USING_GUILE_BEFORE_2_2]: New
1358 function.
1359 (gdbscm_memory_port_read_buffer_size) [!USING_GUILE_BEFORE_2_2]:
1360 Return scm_from_uint (0).
1361 (gdbscm_set_memory_port_read_buffer_size_x)
1362 [!USING_GUILE_BEFORE_2_2]: Call 'scm_setvbuf'.
1363 (gdbscm_memory_port_write_buffer_size) [!USING_GUILE_BEFORE_2_2]:
1364 Return scm_from_uint (0).
1365 (gdbscm_set_memory_port_write_buffer_size_x)
1366 [!USING_GUILE_BEFORE_2_2]: Call 'scm_setvbuf'.
1367 * configure.ac (try_guile_versions): Add "guile-2.2".
1368 * configure: Regenerate.
1369 * NEWS: Add entry.
1370
aee91db3
TT
13712020-07-18 Tom Tromey <tom@tromey.com>
1372
1373 * linux-nat.c (linux_multi_process): Remove.
1374 (linux_nat_target::supports_multi_process): Return true.
1375
0e267416
AB
13762020-07-17 Andrew Burgess <andrew.burgess@embecosm.com>
1377
1378 * arch/riscv.c (riscv_tdesc_cache): Change map type.
1379 (riscv_lookup_target_description): Return pointer out of
1380 unique_ptr.
1381 * target-descriptions.c (allocate_target_description): Add
1382 comment.
1383 (target_desc_deleter::operator()): Likewise.
1384 * target-descriptions.h (struct target_desc_deleter): Moved to
1385 gdbsupport/tdesc.h.
1386 (target_desc_up): Likewise.
1387
f80c8ec4
TT
13882020-07-17 Tom Tromey <tromey@adacore.com>
1389
1390 * linux-nat.c (linux_nat_target::supports_non_stop)
1391 (linux_nat_target::always_non_stop_p): Use "true".
1392 (linux_nat_target::supports_disable_randomization): Use "true" and
1393 "false".
1394
d0ce17d8
CT
13952020-07-16 Caroline Tice <cmtice@google.com>
1396
1397 * dwarf2/read.c (RNGLIST_HEADER_SIZE32) New constant definition.
1398 (RNGLIST_HEADER_SIZE64): New constant definition.
1399 (struct dwop_section_names): Add rnglists_dwo.
1400 (dwop_section_names): Add .debug_rnglists.dwo, .zdebug_rnglists.dwo.
1401 (struct loclist_header): Rename to 'loclists_rnglists_header'.
1402 (struct dwo_sections): Add rnglists field.
1403 (read_attribut_reprocess): Add tag parameter.
1404 (dwarf2_ranges_read): Add tag parameter & remove forward function decl.
1405 (cu_debug_rnglists_section): New function (decl & definition).
1406 (dwarf2_locate_dwo_sections): Add code to read rnglists_dwo section.
1407 (dwarf2_rnglists_process): Add a dwarf_tag parameter, for the kind of
1408 die whose range is being checked; get rnglist section from
1409 cu_debug_rnglists_section, to get from either objfile or dwo file as
1410 appropriate. Add cases for DW_RLE_base_addressx,
1411 DW_RLE_startx_length, DW_RLE_startx_endx. Also, update to only add
1412 the base address to DW_RLE_offset_pairs (not to all ranges), moving
1413 test inside if-condition and updating complaint message.
1414 (dwarf2_ranges_process): Add dwarf tag parameter and pass it to
1415 dwarf2_rnglists_process.
1416 (dwarf2_ranges_read): Add dwarf tag parameter and pass it to
1417 dwarf2_ranges_process.
1418 (dwarf2_get_pc_bounds): Check for DW_FORM_rnglistx when setting
1419 need_ranges_base and update comment appropriately. Also pass die tag
1420 to dwarf2_ranges_read.
1421 (dwarf2_record_block_ranges): Check for DW_FORM_rnglistx when setting
1422 need_ranges_base and update comment appropriately. Also pass die tag
1423 to dwarf2_ranges_process.
1424 (read_full_die_1): Add code to read DW_AT_rnglists_base and assign to
1425 cu->ranges_base. Also pass die tag to read_attribute_reprocess.
1426 (partial_die_info::read): Check for DW_FORM_rnglistx when setting
1427 need_ranges_base and update comment appropriately. Also pass die tag
1428 to read_attribute_reprocess and dwarf2_ranges_read.
1429 (read_loclist_header): Rename function to read_loclists_rnglists_header,
1430 and update function comment appropriately.
1431 (read_loclist_index): Call read_loclists_rnglists_header instead of
1432 read_loclist_header.
1433 (read_rnglist_index): New function.
1434 (read_attribute_reprocess): Add tag parameter. Add code for
1435 DW_FORM_rnglistx, passing tag to read_rnglist_index.
1436 (read_attribute_value): Mark DW_FORM_rnglistx with need_reprocess.
1437
3dcc261c
AB
14382020-07-15 Andrew Burgess <andrew.burgess@embecosm.com>
1439
1440 * f-typeprint.c (f_type_print_base): Allow for dynamic types not
1441 being resolved.
1442
ccb9eba6
AB
14432020-07-14 Andrew Burgess <andrew.burgess@embecosm.com>
1444
1445 * arch-utils.c (show_architecture): Update formatting of messages.
1446
cf88be68
SM
14472020-07-12 Simon Marchi <simon.marchi@efficios.com>
1448
1449 * gdbtypes.h (struct type) <bounds>: Handle array and string
1450 types.
1451 * ada-lang.c (assign_aggregate): Use type::bounds on
1452 array/string type.
1453 * c-typeprint.c (c_type_print_varspec_suffix): Likewise.
1454 * c-varobj.c (c_number_of_children): Likewise.
1455 (c_describe_child): Likewise.
1456 * eval.c (evaluate_subexp_for_sizeof): Likewise.
1457 * f-typeprint.c (f_type_print_varspec_suffix): Likewise.
1458 (f_type_print_base): Likewise.
1459 * f-valprint.c (f77_array_offset_tbl): Likewise.
1460 (f77_get_upperbound): Likewise.
1461 (f77_print_array_1): Likewise.
1462 * guile/scm-type.c (gdbscm_type_range): Likewise.
1463 * m2-typeprint.c (m2_array): Likewise.
1464 (m2_is_long_set_of_type): Likewise.
1465 * m2-valprint.c (get_long_set_bounds): Likewise.
1466 * p-typeprint.c (pascal_type_print_varspec_prefix): Likewise.
1467 * python/py-type.c (typy_range): Likewise.
1468 * rust-lang.c (rust_internal_print_type): Likewise.
1469 * type-stack.c (type_stack::follow_types): Likewise.
1470 * valarith.c (value_subscripted_rvalue): Likewise.
1471 * valops.c (value_cast): Likewise.
1472
509971ae
SM
14732020-07-12 Simon Marchi <simon.marchi@efficios.com>
1474
1475 * gdbtypes.c (TYPE_ARRAY_BIT_STRIDE): Remove. Update all
1476 callers to use the equivalent accessor methods.
1477
107406b7
SM
14782020-07-12 Simon Marchi <simon.marchi@efficios.com>
1479
1480 * gdbtypes.h (struct range_bounds) <bit_stride>: New method.
1481 (struct type) <bit_stride>: New method.
1482 (TYPE_BIT_STRIDE): Remove.
1483 * gdbtypes.c (update_static_array_size): Use type::bit_stride.
1484
bb789949
SM
14852020-07-12 Simon Marchi <simon.marchi@efficios.com>
1486
1487 * gdbtypes.h (TYPE_ARRAY_LOWER_BOUND_VALUE,
1488 TYPE_ARRAY_UPPER_BOUND_VALUE): Remove. Update all
1489 callers to use the equivalent accessor methods instead.
1490
39498edb
SM
14912020-07-12 Simon Marchi <simon.marchi@efficios.com>
1492
1493 * gdbtypes.h (TYPE_ARRAY_UPPER_BOUND_IS_UNDEFINED,
1494 TYPE_ARRAY_LOWER_BOUND_IS_UNDEFINED): Remove. Update all
1495 callers to use the equivalent accessor methods instead.
1496
3b606f38
SM
14972020-07-12 Simon Marchi <simon.marchi@efficios.com>
1498
1499 * gdbtypes.h (TYPE_LOW_BOUND_KIND,
1500 TYPE_HIGH_BOUND_KIND): Remove. Update all callers
1501 to use dynamic_prop::kind.
1502
064d9cb9
SM
15032020-07-12 Simon Marchi <simon.marchi@efficios.com>
1504
1505 * gdbtypes.h (TYPE_LOW_BOUND_UNDEFINED,
1506 TYPE_HIGH_BOUND_UNDEFINED): Remove. Update all callers
1507 to get the bound property's kind and check against
1508 PROP_UNDEFINED.
1509
5537ddd0
SM
15102020-07-12 Simon Marchi <simon.marchi@efficios.com>
1511
1512 * gdbtypes.h (TYPE_LOW_BOUND, TYPE_HIGH_BOUND): Remove. Update
1513 all callers to use type::range_bounds followed by
1514 dynamic_prop::{low,high}.
1515
8c2e4e06
SM
15162020-07-12 Simon Marchi <simon.marchi@polymtl.ca>
1517
1518 * gdbtypes.h (struct dynamic_prop) <kind, set_undefined,
1519 const_val, set_const_val, baton, set_locexpr, set_loclist,
1520 set_addr_offset, variant_parts, set_variant_parts,
1521 original_type, set_original_type>: New methods.
1522 <kind>: Rename to...
1523 <m_kind>: ... this. Update all users to use the new methods
1524 instead.
1525 <data>: Rename to...
1526 <m_data>: ... this. Update all users to use the new methods
1527 instead.
1528
7c6f2712
SM
15292020-07-12 Simon Marchi <simon.marchi@efficios.com>
1530
1531 * gdbtypes.c (get_discrete_bounds): Return failure if
1532 the range type's bounds are not both defined and constant
1533 values.
1534 (get_array_bounds): Update comment. Remove undefined bound check.
1535
599088e3
SM
15362020-07-12 Simon Marchi <simon.marchi@polymtl.ca>
1537
1538 * gdbtypes.h (TYPE_RANGE_DATA): Remove. Update callers to use
1539 the type::bounds method directly.
1540
c4dfcb36
SM
15412020-07-12 Simon Marchi <simon.marchi@efficios.com>
1542
1543 * gdbtypes.h (struct type) <bounds, set_bounds>: New methods.
1544 (TYPE_RANGE_DATA): Use type::bounds. Change all uses that
1545 are used to set the range type's bounds to use set_bounds.
1546
0a278aa7
PW
15472020-07-11 Philippe Waroquiers <philippe.waroquiers@skynet.be>
1548
1549 * exec.c (_initialize_exec): Update exec-file-mismatch help.
1550
cce20f10
PA
15512020-07-10 Pedro Alves <pedro@palves.net>
1552
1553 * gdbthread.h (inferior_ref): Define.
1554 (scoped_restore_current_thread) <m_thread>: Now a thread_info_ref.
1555 (scoped_restore_current_thread) <m_inf>: Now an inferior_ref.
1556 * thread.c
1557 (scoped_restore_current_thread::restore):
1558 Adjust to gdb::ref_ptr.
1559 (scoped_restore_current_thread::~scoped_restore_current_thread):
1560 Remove manual decref handling.
1561 (scoped_restore_current_thread::scoped_restore_current_thread):
1562 Adjust to use
1563 inferior_ref::new_reference/thread_info_ref::new_reference.
1564 Incref the thread before calling get_frame_id instead of after.
1565 Let TARGET_CLOSE_ERROR propagate.
1566
6d7aa592
PA
15672020-07-10 Pedro Alves <pedro@palves.net>
1568
1569 * frame-tailcall.c (dwarf2_tailcall_sniffer_first): Only swallow
1570 NO_ENTRY_VALUE_ERROR / MEMORY_ERROR / OPTIMIZED_OUT_ERROR /
1571 NOT_AVAILABLE_ERROR.
1572 * value.c (value_optimized_out): Only swallow MEMORY_ERROR /
1573 OPTIMIZED_OUT_ERROR / NOT_AVAILABLE_ERROR.
1574
b3e3a4c1
SM
15752020-07-10 Simon Marchi <simon.marchi@polymtl.ca>
1576 Pedro Alves <pedro@palves.net>
1577
1578 PR gdb/26199
1579 * infrun.c (threads_are_resumed_pending_p): Delete.
1580 (do_target_wait): Remove threads_are_executing and
1581 threads_are_resumed_pending_p checks from the inferior_matches
1582 lambda. Update comments.
1583
d6cc5d98
PA
15842020-07-10 Pedro Alves <pedro@palves.net>
1585
1586 PR gdb/26199
1587 * infrun.c (handle_no_resumed): Transfer terminal to inferior with
1588 executing threads.
1589
7d3badc6
PA
15902020-07-10 Pedro Alves <pedro@palves.net>
1591
1592 PR gdb/26199
1593 * infrun.c (handle_no_resumed): Handle multiple targets.
1594
42bd97a6
PA
15952020-07-10 Pedro Alves <pedro@palves.net>
1596
1597 PR gdb/26199
1598 * infrun.c (prepare_to_wait): Check target_can_async_p instead of
1599 target_is_async_p.
1600
43667cc6
PA
16012020-07-10 Pedro Alves <pedro@palves.net>
1602
1603 PR gdb/26199
1604 * target.c (target_pass_ctrlc): Look at the inferior's non-exited
1605 threads, not all threads.
1606
96118d11
PA
16072020-07-10 Pedro Alves <pedro@palves.net>
1608
1609 PR gdb/26199
1610 * remote.c (remote_target::open_1): Pass remote target pointer as
1611 data to create_async_event_handler.
1612 (remote_async_inferior_event_handler): Mark async event handler
1613 before returning if the remote target still has either pending
1614 events or unacknowledged notifications.
1615
54904d81
JB
16162020-07-10 John Baldwin <jhb@FreeBSD.org>
1617
1618 * fbsd-nat.h (fbsd_nat_target::supports_multi_process): New
1619 declaration.
1620 * fbsd-nat.c (fbsd_nat_target::supports_multi_process): New
1621 function.
1622
f37e5866
JB
16232020-07-09 John Baldwin <jhb@FreeBSD.org>
1624
1625 * inf-ptrace.c (inf_ptrace_target::wait): Don't compare against
1626 inferior_ptid.
1627
fc238d4a
JB
16282020-07-09 John Baldwin <jhb@FreeBSD.org>
1629
1630 * fbsd-tdep.c (fbsd_print_auxv_entry): Handle AT_FREEBSD_ARGC,
1631 AT_FREEBSD_ARGV, AT_FREEBSD_ENVC, AT_FREEBSD_ENVV,
1632 AT_FREEBSD_PS_STRINGS.
1633
6e2469ff
HD
16342020-07-08 Hannes Domani <ssbssa@yahoo.de>
1635
1636 * auto-load.c (auto_load_objfile_script_1): Convert drive part
1637 of debugfile path on Windows.
1638
d1076c41
JB
16392020-07-08 John Baldwin <jhb@FreeBSD.org>
1640
1641 * fbsd-nat.c (fbsd_nat_target::find_memory_regions): Rename 'obfd'
1642 argument to 'data'.
1643
15f3b077
TT
16442020-07-08 Tom Tromey <tromey@adacore.com>
1645
1646 * ada-lang.c (ada_exception_message_1): Use read_memory.
1647
9fc501fd
AB
16482020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
1649
1650 PR python/22748
1651 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first): Remove
1652 special handling for inline frames.
1653 * findvar.c (value_of_register_lazy): Skip inline frames when
1654 creating lazy register values.
1655 * frame.c (frame_id_computed_p): Delete definition.
1656 * frame.h (frame_id_computed_p): Delete declaration.
1657
64cb3757
AB
16582020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
1659
1660 * NEWS: Mention additions to Python API.
1661 * python/py-arch.c (archpy_register_groups): New function.
1662 (arch_object_methods): Add 'register_groups' method.
1663 * python/py-registers.c (reggroup_iterator_object): New struct.
1664 (reggroup_object): New struct.
1665 (gdbpy_new_reggroup): New function.
1666 (gdbpy_reggroup_to_string): New function.
1667 (gdbpy_reggroup_name): New function.
1668 (gdbpy_reggroup_iter): New function.
1669 (gdbpy_reggroup_iter_next): New function.
1670 (gdbpy_new_reggroup_iterator): New function
1671 (gdbpy_initialize_registers): Register new types.
1672 (reggroup_iterator_object_type): Define new Python type.
1673 (gdbpy_reggroup_getset): New static global.
1674 (reggroup_object_type): Define new Python type.
1675 * python/python-internal.h
1676
0f767f94
AB
16772020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
1678
1679 * Makefile.in (SUBDIR_PYTHON_SRCS): Add py-registers.c
1680 * python/py-arch.c (archpy_registers): New function.
1681 (arch_object_methods): Add 'registers' method.
1682 * python/py-registers.c: New file.
1683 * python/python-internal.h
1684 (gdbpy_new_register_descriptor_iterator): Declare.
1685 (gdbpy_initialize_registers): Declare.
1686 * python/python.c (do_start_initialization): Call
1687 gdbpy_initialize_registers.
1688 * NEWS: Mention additions to the Python API.
1689
87dbc774
AB
16902020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
1691
1692 * NEWS: Mention new Python API method.
1693 * python/py-unwind.c (pending_framepy_architecture): New function.
1694 (pending_frame_object_methods): Add architecture method.
1695
3bc98c0c
AB
16962020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
1697
1698 * gdbarch.c: Regenerate.
1699 * gdbarch.h: Regenerate.
1700 * gdbarch.sh (deprecated_set_gdbarch_data): Delete.
1701 (gdbarch_data): Use internal_error for the case where
1702 deprecated_set_gdbarch_data was originally needed.
1703 * ia64-libunwind-tdep.c (libunwind_descr_init): Update parameters,
1704 and use passed in obstack.
1705 (libunwind_frame_set_descr): Should no longer get back NULL from
1706 gdbarch_data.
1707 (_initialize_libunwind_frame): Register as a pre-init gdbarch data
1708 type.
1709 * user-regs.c (user_regs_init): Update parameters, and use passed
1710 in obstack.
1711 (user_reg_add): Should no longer get back NULL from gdbarch_data.
1712 (_initialize_user_regs): Register as a pre-init gdbarch data type.
1713
d8cc8af6
TV
17142020-07-06 Tom de Vries <tdevries@suse.de>
1715
1716 * buildsym.c (buildsym_compunit::end_symtab_with_blockvector): Handle
1717 End-Of-Sequence in lte_is_less_than.
1718 * symtab.c (find_pc_sect_line): Revert change from commit 3d92a3e313
1719 "gdb: Don't reorder line table entries too much when sorting".
1720
947f7597
TV
17212020-07-06 Tom de Vries <tdevries@suse.de>
1722
1723 PR tui/26205
1724 * tui/tui-win.c (tui_partial_win_by_name): Don't test for NULL name.
1725
1e7c1b22
TV
17262020-07-05 Tom de Vries <tdevries@suse.de>
1727
1728 PR build/26187
1729 * inferior.h (struct infcall_suspend_state_deleter): If available, use
1730 std::uncaught_exceptions instead of deprecated
1731 std::uncaught_exception.
1732
a36158ec
SM
17332020-07-02 Simon Marchi <simon.marchi@polymtl.ca>
1734
1735 * macroexp.h (macro_stringify): Return
1736 gdb::unique_xmalloc_ptr<char>.
1737 * macroexp.c (macro_stringify): Likewise.
1738 * macrotab.c (fixup_definition): Update.
1739
14d960c8
SM
17402020-07-02 Simon Marchi <simon.marchi@polymtl.ca>
1741
1742 * c-exp.y (scan_macro_expansion): Don't free `expansion`.
1743 (lex_one_token): Update.
1744 * macroexp.c (struct macro_buffer) <release>: Return
1745 gdb::unique_xmalloc_ptr<char>.
1746 (macro_stringify): Update.
1747 (macro_expand): Update.
1748 (macro_expand_next): Return gdb::unique_xmalloc_ptr<char>.
1749 * macroexp.h (macro_expand_next): Likewise.
1750
211d5b1c
SM
17512020-07-02 Simon Marchi <simon.marchi@efficios.com>
1752
1753 * macroexp.h (macro_lookup_ftype): Remove.
1754 (macro_expand, macro_expand_once, macro_expand_next): Remove
1755 lookup function parameters, add scope parameter.
1756 * macroexp.c (scan, substitute_args, expand, maybe_expand,
1757 macro_expand, macro_expand_once, macro_expand_next): Likewise.
1758 * macroscope.h (standard_macro_lookup): Change parameter type
1759 to macro_scope.
1760 * macroscope.c (standard_macro_lookup): Likewise.
1761 * c-exp.y (lex_one_token): Update.
1762 * macrocmd.c (macro_expand_command): Likewise.
1763 (macro_expand_once_command): Likewise.
1764
b1a35af2
SM
17652020-07-02 Simon Marchi <simon.marchi@polymtl.ca>
1766
1767 * inf-loop.c (inferior_event_handler): Remove client_data param.
1768 * inf-loop.h (inferior_event_handler): Likewise.
1769 * infcmd.c (step_1): Adjust.
1770 * infrun.c (proceed): Adjust.
1771 (fetch_inferior_event): Remove client_data param.
1772 (infrun_async_inferior_event_handler): Adjust.
1773 * infrun.h (fetch_inferior_event): Remove `void *` param.
1774 * linux-nat.c (handle_target_event): Adjust.
1775 * record-btrace.c (record_btrace_handle_async_inferior_event):
1776 Adjust.
1777 * record-full.c (record_full_async_inferior_event_handler):
1778 Adjust.
1779 * remote.c (remote_async_inferior_event_handler): Adjust.
1780
1cdf9e33
TT
17812020-07-01 Tom Tromey <tom@tromey.com>
1782
1783 * tui/tui-data.h (struct tui_win_info) <name>: Now pure virtual.
1784 * tui/tui-stack.h (struct tui_locator_window) <name>: New method.
1785
32c1e210
TT
17862020-07-01 Tom Tromey <tom@tromey.com>
1787
1788 * tui/tui-wingeneral.c (tui_win_info::refresh_window): Move from
1789 tui_gen_win_info.
1790 (tui_win_info::make_window): Merge with
1791 tui_gen_win_info::make_window.
1792 (tui_win_info::make_visible): Move from tui_gen_win_info.
1793 * tui/tui-win.c (tui_win_info::max_width): Move from
1794 tui_gen_win_info.
1795 * tui/tui-layout.h (class tui_layout_window) <m_window>: Change
1796 type.
1797 <window_factory>: Likewise.
1798 * tui/tui-layout.c (tui_win_info::resize): Move from
1799 tui_gen_win_info.
1800 (make_standard_window): Change return type.
1801 (get_locator_window, tui_get_window_by_name): Likewise.
1802 (tui_layout_window::apply): Remove a cast.
1803 * tui/tui-data.h (MIN_WIN_HEIGHT): Move earlier.
1804 (struct tui_win_info): Merge with tui_gen_win_info.
1805 (struct tui_gen_win_info): Remove.
1806
a30cb6da
TT
18072020-07-01 Tom Tromey <tom@tromey.com>
1808
1809 * tui/tui-stack.h (struct tui_locator_window): Derive from
1810 tui_win_info.
1811 <do_scroll_horizontal, do_scroll_vertical>: New methods.
1812 <can_box>: New method.
1813
1eb2161f
TT
18142020-07-01 Tom Tromey <tom@tromey.com>
1815
1816 * tui/tui-stack.h (struct tui_locator_window): Remove body.
1817
7134f2eb
TT
18182020-07-01 Tom Tromey <tom@tromey.com>
1819
1820 * tui/tui-regs.c (tui_data_window::display_registers_from)
1821 (tui_data_window::display_registers_from)
1822 (tui_data_window::first_data_item_displayed)
1823 (tui_data_window::delete_data_content_windows): Update.
1824 (tui_data_window::refresh_window, tui_data_window::no_refresh):
1825 Remove.
1826 (tui_data_window::check_register_values): Update.
1827 (tui_data_item_window::rerender): Add parameters. Update.
1828 (tui_data_item_window::refresh_window): Remove.
1829 * tui/tui-data.h (struct tui_gen_win_info) <no_refresh>: No longer
1830 virtual.
1831 * tui/tui-regs.h (struct tui_data_item_window): Don't derive from
1832 tui_gen_win_info.
1833 <refresh_window, max_height, min_height>: Remove.
1834 <rerender>: Add parameters.
1835 <x, y, visible>: New members.
1836 (struct tui_data_window) <refresh_window, no_refresh>: Remove.
1837 <m_item_width>: New member.
1838
22b7b041
TT
18392020-07-01 Tom Tromey <tom@tromey.com>
1840
1841 * tui/tui-regs.c (tui_data_window::show_register_group)
1842 (tui_data_window::check_register_values): Update.
1843 * tui/tui-regs.h (struct tui_data_item_window) <regno>: Rename
1844 from item_no.
1845
c9753adb
TT
18462020-07-01 Tom Tromey <tom@tromey.com>
1847
1848 * tui/tui-regs.c (tui_data_window::show_register_group): Remove
1849 useless "if".
1850
9ab26b4a
TT
18512020-07-01 Tom Tromey <tom@tromey.com>
1852
1853 * tui/tui-regs.c (tui_data_window::show_register_group): Update.
1854 * tui/tui-regs.h (struct tui_data_item_window) <name>: Remove.
1855
e555083f
TT
18562020-07-01 Tom Tromey <tom@tromey.com>
1857
1858 * tui/tui-stack.c (SINGLE_KEY): Move from tui-data.h
1859 * tui/tui-winsource.h (enum tui_line_or_address_kind)
1860 (struct tui_line_or_address): Move from tui-data.h.
1861 * tui/tui-win.c (DEFAULT_TAB_LEN): Move from tui-data.h.
1862 * tui/tui-data.h (DEFAULT_TAB_LEN): Move to tui-win.c.
1863 (tui_cmd_window, tui_source_window_base, tui_source_window)
1864 (tui_disasm_window): Don't declare.
1865 (enum tui_line_or_address_kind, struct tui_line_or_address): Move
1866 to tui-winsource.h.
1867 (SINGLE_KEY): Move to tui-stack.c.
1868
7a02bab7
TT
18692020-07-01 Tom Tromey <tom@tromey.com>
1870
1871 * tui/tui-regs.h (struct tui_data_item_window) <content>: Now a
1872 std::string.
1873 * tui/tui-regs.c (class tab_expansion_file): New.
1874 (tab_expansion_file::write): New method.
1875 (tui_register_format): Change return type. Use
1876 tab_expansion_file.
1877 (tui_get_register, tui_data_window::display_registers_from)
1878 (tui_data_item_window::rerender): Update.
1879 * tui/tui-io.h (tui_expand_tabs): Don't declare.
1880 * tui/tui-io.c (tui_expand_tabs): Remove.
1881
ea68593b
TT
18822020-07-01 Tom Tromey <tom@tromey.com>
1883
1884 * tui/tui-regs.c (tui_reggroup_completer): Use complete_on_enum.
1885
a8caed5d
FS
18862020-07-01 Fangrui Song <maskray@google.com>
1887
1888 * dwarf2/read.c (lnp_state_machine::check_line_address): Test -1.
1889
9cdf9820
AKS
18902020-07-01 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
1891
1892 * dwarf2/read.c (set_die_type): Removed conditions to restrict
1893 forms for DW_AT_associated and DW_AT_allocated attributes,
1894 which is already checked in function attr_to_dynamic_prop.
1895
a1520ad8
TT
18962020-06-30 Tom Tromey <tromey@adacore.com>
1897
1898 * dwarf2/read.c (quirk_rust_enum): Correctly call
1899 alloc_rust_variant for default-less enum.
1900
5ac58899
TT
19012020-06-30 Tom Tromey <tromey@adacore.com>
1902
1903 PR build/26183:
1904 * ada-lang.c (ada_lookup_name_info::ada_lookup_name_info): Use
1905 gdb::to_string.
1906
19b187a9
SM
19072020-06-29 Simon Marchi <simon.marchi@efficios.com>
1908
1909 * gdbarch.sh (displaced_step_copy_insn): Update doc.
1910 * gdbarch.h: Re-generate.
1911
cd4c4c07
TT
19122020-06-28 Tom Tromey <tom@tromey.com>
1913
1914 * command.h (cmd_types): Remove.
1915 (cmd_type): Don't declare.
1916 * cli/cli-decode.h (enum cmd_types): Uncomment. No longer a
1917 typedef.
1918 * cli/cli-cmds.c (setting_cmd): Use cmd->type directly.
1919 * cli/cli-decode.c (cmd_type): Remove.
1920
05779d57
PA
19212020-06-27 Pedro Alves <palves@redhat.com>
1922
1923 * fork-child.c (prefork_hook): Adjust.
1924 * infcmd.c (set_inferior_io_terminal, get_inferior_io_terminal):
1925 Delete.
1926 (set_inferior_tty_command, show_inferior_tty_command): Adjust.
1927 * inferior.c (inferior::set_tty, inferior::tty): New methods.
1928 * inferior.h (set_inferior_io_terminal, get_inferior_io_terminal):
1929 Remove declarations.
1930 (struct inferior) <set_tty, tty>: New methods.
1931 (struct inferior) <terminal>: Rename to ...
1932 (struct inferior) <m_terminal>: ... this and make private.
1933 * main.c (captured_main_1): Adjust.
1934 * mi/mi-cmd-env.c (mi_cmd_inferior_tty_set): Adjust.
1935 (mi_cmd_inferior_tty_show): Adjust.
1936 * nto-procfs.c (nto_procfs_target::create_inferior): Adjust.
1937 * windows-nat.c (windows_nat_target::create_inferior): Adjust.
1938
1776e3e5
NA
19392020-06-26 Nick Alcock <nick.alcock@oracle.com>
1940
1941 * configure.ac: Add --enable-libctf: handle --disable-static
1942 properly.
1943 * acinclude.m4: sinclude ../config/enable.m4.
1944 * Makefile.in (aclocal_m4_deps): Adjust accordingly.
1945 (LIBCTF): Substitute in.
1946 (CTF_DEPS): New, likewise.
1947 (CLIBS): libctf needs symbols from libbfd: move earlier.
1948 (CDEPS): Use CTF_DEPS, not LIBCTF, now LIBCTF can include rpath
1949 flags.
1950 * ctfread.c: Surround in ENABLE_LIBCTF.
1951 (elfctf_build_psymtabs) [!ENABLE_LIBCTF]: New stub.
1952 * configure: Regenerate.
1953 * config.in: Likewise.
1954
58373b80
SM
19552020-06-25 Simon Marchi <simon.marchi@efficios.com>
1956
1957 * infcmd.c (set_inferior_io_terminal): Use make_unique_xstrdup.
1958
277474ee
SM
19592020-06-25 Simon Marchi <simon.marchi@efficios.com>
1960
1961 * inferior.h (struct inferior) <terminal>: Change type to
1962 gdb::unique_xmalloc_ptr<char>.
1963 * inferior.c (inferior::~inferior): Don't free inf->terminal.
1964 * infcmd.c (set_inferior_io_terminal): Don't free terminal
1965 field, adjust to unique pointer.
1966 (get_inferior_io_terminal): Adjust to unique pointer.
1967
6d74da72
AB
19682020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
1969
1970 * riscv-tdep.c (riscv_print_registers_info): Loop over all
1971 registers, not just the known core set of registers.
1972
2e52d038
AB
19732020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
1974
1975 * riscv-tdep.c (riscv_register_name): Return NULL for duplicate
1976 fflags, frm, and fcsr registers.
1977 (riscv_register_reggroup_p): Remove unknown CSRs from save and
1978 restore groups.
1979 (riscv_tdesc_unknown_reg): New function.
1980 (riscv_gdbarch_init): Pass riscv_tdesc_unknown_reg to
1981 tdesc_use_registers.
1982 * riscv-tdep.h (struct gdbarch_tdep): Add
1983 unknown_csrs_first_regnum, unknown_csrs_count,
1984 duplicate_fflags_regnum, duplicate_frm_regnum, and
1985 duplicate_fcsr_regnum fields.
1986
be64fd07
AB
19872020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
1988
1989 * target-descriptions.c (tdesc_use_registers): Add new parameter a
1990 callback, use the callback (when not null) to help number unknown
1991 registers.
1992 * target-descriptions.h (tdesc_unknown_register_ftype): New typedef.
1993 (tdesc_use_registers): Add extra parameter to declaration.
1994
3b9fce96
AB
19952020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
1996
1997 * riscv-tdep.c (value_of_riscv_user_reg): Moved to here from later
1998 in the file.
1999 (class riscv_pending_register_alias): Likewise.
2000 (riscv_register_feature::register_info): Change 'required_p' field
2001 to 'required', and change its type. Add 'check' member function.
2002 (riscv_register_feature::register_info::check): Define new member
2003 function.
2004 (riscv_xreg_feature): Change initialisation of 'required' field.
2005 (riscv_freg_feature): Likewise.
2006 (riscv_virtual_feature): Likewise.
2007 (riscv_csr_feature): Likewise.
2008 (riscv_check_tdesc_feature): Take extra parameter, the csr
2009 tdesc_feature, rewrite the function to use the new
2010 riscv_register_feature::register_info::check function.
2011 (riscv_gdbarch_init): Pass the csr tdesc_feature where needed.
2012
865bad26
AB
20132020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
2014
2015 * features/Makefile: Remove all references to the deleted files
2016 below.
2017 * features/riscv/32bit-csr.c: Deleted.
2018 * features/riscv/32bit-csr.xml: Deleted.
2019 * features/riscv/64bit-csr.c: Deleted.
2020 * features/riscv/64bit-csr.xml: Deleted.
2021 * features/riscv/rebuild-csr-xml.sh: Deleted.
2022
ed69cbc8
AB
20232020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
2024
2025 * riscv-tdep.c (struct riscv_register_feature::register_info): Fix
2026 whitespace error for declaration of names member variable.
2027 (struct riscv_register_feature): Add new prefer_first_name member
2028 variable, and fix whitespace error in declaration of registers.
2029 (riscv_xreg_feature): Initialize prefer_first_name field.
2030 (riscv_freg_feature): Likewise.
2031 (riscv_virtual_feature): Likewise.
2032 (riscv_csr_feature): Likewise.
2033 (riscv_register_name): Expand on comments. Remove register name
2034 modifications for CSR and virtual registers.
2035
4445e8f5
AB
20362020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
2037
2038 * riscv-tdep.c (struct riscv_register_feature): Fix whitespace
2039 errors.
2040
767a879e
AB
20412020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
2042
2043 * riscv-tdep.c (riscv_create_csr_aliases): Handle csr aliases from
2044 riscv-opc.h.
2045 (class riscv_pending_register_alias): New class.
2046 (riscv_check_tdesc_feature): Take vector of pending aliases and
2047 populate it as appropriate.
2048 (riscv_setup_register_aliases): Delete.
2049 (riscv_gdbarch_init): Create vector of pending aliases and pass it
2050 to riscv_check_tdesc_feature in all cases. Use the vector to
2051 create the register aliases.
2052
bb6e55f3
RO
20532020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2054
2055 * sol2-tdep.c (sol2_static_transform_name): Remove.
2056 (sol2_init_abi): Don't register it.
2057 * gdbarch.sh (static_transform_name): Remove.
2058 * gdbarch.c, gdbarch.h: Regenerate.
2059
2060 * dbxread.c (read_dbx_symtab) <'S'>: Remove call to
2061 gdbarch_static_transform_name.
2062 * mdebugread.c (parse_partial_symbols) <'S'>: Likewise.
2063 * stabsread.c (define_symbol) <'X'>: Remove.
2064 (define_symbol) <'S'>: Remove gdbarch_static_transform_name
2065 handling.
2066 <'V'>: Likewise.
2067 * xcoffread.c (scan_xcoff_symtab): Remove gdbarch.
2068 <'S'>: Remove call to gdbarch_static_transform_name.
2069
c6d36836
RO
20702020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2071
2072 * procfs.c (procfs_pre_trace): New function.
2073 (procfs_target::create_inferior): Pass it to fork_inferior.
2074
a7e6196b
RO
20752020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2076
2077 * configure.tgt <sparc-*-linux*> (gdb_target_obs): Remove
2078 sparc-sol2-tdep.o, sol2-tdep.o, sparc64-sol2-tdep.o.
2079 <sparc64-*-linux*> (gdb_target_obs): Remove sparc64-sol2-tdep.o,
2080 sol2-tdep.o, sparc-sol2-tdep.o.
2081 * sparc-sol2-tdep.c (sparc32_sol2_init_abi): Make static.
2082 * sparc-tdep.h (sparc32_sol2_init_abi): Remove.
2083 * sparc64-sol2-tdep.c (sparc64_sol2_init_abi): Make static.
2084 * sparc64-tdep.h (sparc64_sol2_init_abi): Remove.
2085
d412e696
RO
20862020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2087
2088 * amd64-sol2-tdep.c (amd64_sol2_sigtramp_p): Remove.
2089 (amd64_sol2_init_abi): Use sol2_sigtramp_p.
2090 Call sol2_init_abi.
2091 Remove calls to set_gdbarch_skip_solib_resolver,
2092 set_gdbarch_core_pid_to_str.
2093 * i386-sol2-tdep.c (i386_sol2_sigtramp_p): Remove.
2094 (i386_sol2_static_transform_name): Remove.
2095 (i386_sol2_init_abi): Call sol2_init_abi.
2096 Remove calls to set_gdbarch_sofun_address_maybe_missing,
2097 set_gdbarch_static_transform_name,
2098 set_gdbarch_skip_solib_resolver, set_gdbarch_core_pid_to_str.
2099 Use sol2_sigtramp_p.
2100 * sol2-tdep.c (sol2_pc_in_sigtramp): New function.
2101 (sol2_sigtramp_p): New function.
2102 (sol2_static_transform_name): New function.
2103 (sol2_skip_solib_resolver, sol2_core_pid_to_str): Make static.
2104 (sol2_init_abi): New function.
2105 * sol2-tdep.h (sol2_sigtramp_p, sol2_init_abi): Declare.
2106 (sol2_skip_solib_resolver, sol2_core_pid_to_str): Remove.
2107 * sparc-sol2-tdep.c (sparc_sol2_pc_in_sigtramp): Remove.
2108 (sparc32_sol2_sigtramp_frame_sniffer): Just call sol2_sigtramp_p.
2109 (sparc_sol2_static_transform_name): Remove.
2110 (sparc32_sol2_init_abi): Call sol2_init_abi.
2111 Remove calls to set_gdbarch_sofun_address_maybe_missing,
2112 set_gdbarch_static_transform_name,
2113 set_gdbarch_skip_solib_resolver,
2114 set_gdbarch_core_pid_to_str.
2115 * sparc-tdep.h (sparc_sol2_pc_in_sigtramp)
2116 (sparc_sol2_static_transform_name): Remove
2117 * sparc64-sol2-tdep.c (sparc64_sol2_sigtramp_frame_sniffer): Just
2118 call sol2_sigtramp_p.
2119 (sparc64_sol2_init_abi): Call sol2_init_abi.
2120 Remove calls to set_gdbarch_sofun_address_maybe_missing,
2121 set_gdbarch_static_transform_name,
2122 set_gdbarch_skip_solib_resolver, set_gdbarch_core_pid_to_str.
2123
a8654e7d
PW
21242020-06-24 Philippe Waroquiers <philippe.waroquiers@skynet.be>
2125
2126 * symfile-add-flags.h: New flag SYMFILE_ALWAYS_CONFIRM.
2127 * exec.c (validate_exec_file): If from_tty, set both
2128 SYMFILE_VERBOSE (== from_tty) and SYMFILE_ALWAYS_CONFIRM.
2129 * symfile.c (symbol_file_add_with_addrs): if always_confirm
2130 and from_tty, unconditionally ask a confirmation.
2131
caa7fd04
AB
21322020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
2133
2134 * target-descriptions.c (tdesc_architecture_name): Protect against
2135 NULL pointer dereference.
2136 (maint_print_xml_tdesc_cmd): New function.
2137 (_initialize_target_descriptions): Register new 'maint print
2138 xml-tdesc' command and give it the filename completer.
2139 * NEWS: Mention new 'maint print xml-tdesc' command.
2140
fbf42f4e
AB
21412020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
2142
2143 * target-descriptions.c (class tdesc_compatible_info): New class.
2144 (struct target_desc): Change type of compatible vector.
2145 (tdesc_compatible_p): Update for change in type of
2146 target_desc::compatible.
2147 (tdesc_compatible_info_list): New function.
2148 (tdesc_compatible_info_arch_name): New function.
2149 (tdesc_add_compatible): Update for change in type of
2150 target_desc::compatible.
2151 (print_c_tdesc::visit_pre): Likewise.
2152
20821f4e
AB
21532020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
2154
2155 * target-descriptions.c (print_c_tdesc::print_c_tdesc): Change
2156 whitespace to underscore.
2157 (maint_print_c_tdesc_cmd): Use fake filename for target
2158 descriptions that came from the target.
2159 (_initialize_target_descriptions): Add filename command completion
2160 for 'maint print c-tdesc'.
2161
1fb5ee62
SM
21622020-06-23 Simon Marchi <simon.marchi@efficios.com>
2163
2164 * dwarf2/loc.c (decode_debug_loclists_addresses): Add empty
2165 lines.
2166
fc3ecb3e
SM
21672020-06-23 Simon Marchi <simon.marchi@efficios.com>
2168
2169 * dwarf2/loc.c (decode_debug_loc_dwo_addresses): Add empty
2170 lines.
2171 (dwarf2_find_location_expression): Likewise.
2172 (call_site_parameter_matches): Likewise.
2173 (dwarf2_compile_expr_to_ax): Likewise.
2174 (disassemble_dwarf_expression): Likewise.
2175 (loclist_describe_location): Likewise.
2176
236ef034
PA
21772020-06-23 Pedro Alves <palves@redhat.com>
2178
2179 * gdbarch-selftests.c: Don't include inferior.h, gdbthread.h or
2180 progspace-and-thread.h. Include scoped-mock-context.h instead.
2181 (register_to_value_test): Use scoped_mock_context.
2182 * regcache.c: Include "scoped-mock-context.h".
2183 (cooked_read_test): Don't error out if a target is already pushed.
2184 Use scoped_mock_context. Adjust.
2185 * scoped-mock-context.h: New file.
2186
39e7ecca
AB
21872020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
2188
2189 * ada-lang.c (ada_language_data): Delete la_is_string_type_p
2190 initializer.
2191 (ada_language::is_string_type_p): New member function.
2192 * c-lang.c (c_language_data): Delete la_is_string_type_p
2193 initializer.
2194 (cplus_language_data): Likewise.
2195 (asm_language_data): Likewise.
2196 (minimal_language_data): Likewise.
2197 * d-lang.c (d_language_data): Likewise.
2198 * f-lang.c (f_is_string_type_p): Delete function, implementation
2199 moved to f_language::is_string_type_p.
2200 (f_language_data): Delete la_is_string_type_p initializer.
2201 (f_language::is_string_type_p): New member function,
2202 implementation from f_is_string_type_p.
2203 * go-lang.c (go_is_string_type_p): Delete function, implementation
2204 moved to go_language::is_string_type_p.
2205 (go_language_data): Delete la_is_string_type_p initializer.
2206 (go_language::is_string_type_p): New member function,
2207 implementation from go_is_string_type_p.
2208 * language.c (language_defn::is_string_type_p): Define new member
2209 function.
2210 (default_is_string_type_p): Make static, add comment copied from
2211 header file.
2212 (unknown_language_data): Delete la_is_string_type_p initializer.
2213 (unknown_language::is_string_type_p): New member function.
2214 (auto_language_data): Delete la_is_string_type_p initializer.
2215 (auto_language::is_string_type_p): New member function.
2216 * language.h (language_data): Delete la_is_string_type_p field.
2217 (language_defn::is_string_type_p): Declare new function.
2218 (default_is_string_type_p): Delete desclaration, move comment to
2219 definition.
2220 * m2-lang.c (m2_is_string_type_p): Delete function, implementation
2221 moved to m2_language::is_string_type_p.
2222 (m2_language_data): Delete la_is_string_type_p initializer.
2223 (m2_language::is_string_type_p): New member function,
2224 implementation from m2_is_string_type_p.
2225 * objc-lang.c (objc_language_data): Delete la_is_string_type_p
2226 initializer.
2227 * opencl-lang.c (opencl_language_data): Likewise.
2228 * p-lang.c (pascal_is_string_type_p): Delete function,
2229 implementation moved to pascal_language::is_string_type_p.
2230 (pascal_language_data): Delete la_is_string_type_p initializer.
2231 (pascal_language::is_string_type_p): New member function,
2232 implementation from pascal_is_string_type_p.
2233 * rust-lang.c (rust_is_string_type_p): Delete function,
2234 implementation moved to rust_language::is_string_type_p.
2235 (rust_language_data): Delete la_is_string_type_p initializer.
2236 (rust_language::is_string_type_p): New member function,
2237 implementation from rust_is_string_type_p.
2238 * valprint.c (val_print_scalar_or_string_type_p): Update call to
2239 is_string_type_p.
2240
4ffc13fb
AB
22412020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
2242
2243 * ada-lang.c (ada_language_data): Delete la_print_typedef
2244 initializer.
2245 (ada_language::print_typedef): New member function.
2246 * c-lang.c (c_language_data): Delete la_print_typedef 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_language_data): Likewise.
2252 (f_language::print_typedef): New member function.
2253 * go-lang.c (go_language_data): Delete la_print_typedef
2254 initializer.
2255 * language.c (language_defn::print_typedef): Define member
2256 function.
2257 (unknown_language_data): Delete la_print_typedef initializer.
2258 (unknown_language::print_typedef): New member function.
2259 (auto_language_data): Delete la_print_typedef initializer.
2260 (auto_language::print_typedef): New member function.
2261 * language.h (language_data): Delete la_print_typedef field.
2262 (language_defn::print_typedef): Declare new member function.
2263 (LA_PRINT_TYPEDEF): Update call to print_typedef.
2264 (default_print_typedef): Delete declaration.
2265 * m2-lang.c (m2_language_data): Delete la_print_typedef
2266 initializer.
2267 (m2_language::print_typedef): New member function.
2268 * objc-lang.c (objc_language_data): Delete la_print_typedef
2269 initializer.
2270 * opencl-lang.c (opencl_language_data): Likewise.
2271 * p-lang.c (pascal_language_data): Likewise.
2272 (pascal_language::print_typedef): New member function.
2273 * rust-lang.c (rust_print_typedef): Delete function,
2274 implementation moved to rust_language::print_typedef.
2275 (rust_language): Delete la_print_typedef initializer.
2276 (rust_language::print_typedef): New member function,
2277 implementation from rust_print_typedef.
2278 * typeprint.c (default_print_typedef): Delete.
2279
d711ee67
AB
22802020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
2281
2282 * ada-lang.c (ada_language_data): Delete la_printstr initializer.
2283 (ada_language::printstr): New member function.
2284 * c-lang.c (c_language_data): Delete la_printstr initializer.
2285 (cplus_language_data): Likewise.
2286 (asm_language_data): Likewise.
2287 (minimal_language_data): Likewise.
2288 * d-lang.c (d_language_data): Likewise.
2289 * f-lang.c (f_printstr): Rename to f_language::printstr.
2290 (f_language_data): Delete la_printstr initializer.
2291 (f_language::printstr): New member function, implementation from
2292 f_printstr.
2293 * go-lang.c (go_language_data): Delete la_printstr initializer.
2294 * language.c (language_defn::printstr): Define new member
2295 function.
2296 (unk_lang_printstr): Delete.
2297 (unknown_language_data): Delete la_printstr initializer.
2298 (unknown_language::printstr): New member function.
2299 (auto_language_data): Delete la_printstr initializer.
2300 (auto_language::printstr): New member function.
2301 * language.h (language_data): Delete la_printstr field.
2302 (language_defn::printstr): Declare new member function.
2303 (LA_PRINT_STRING): Update call to printstr.
2304 * m2-lang.c (m2_printstr): Rename to m2_language::printstr.
2305 (m2_language_data): Delete la_printstr initializer.
2306 (m2_language::printstr): New member function, implementation from
2307 m2_printstr.
2308 * objc-lang.c (objc_language_data): Delete la_printstr
2309 initializer.
2310 * opencl-lang.c (opencl_language_data): Likewise.
2311 * p-lang.c (pascal_printstr): Rename to pascal_language::printstr.
2312 (pascal_language_data): Delete la_printstr initializer.
2313 (pascal_language::printstr): New member function, implementation
2314 from pascal_printstr.
2315 * p-lang.h (pascal_printstr): Delete declaration.
2316 * rust-lang.c (rust_printstr): Update header comment.
2317 (rust_language_data): Delete la_printstr initializer.
2318 (rust_language::printstr): New member function.
2319
52b50f2c
AB
23202020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
2321
2322 * ada-lang.c (ada_language_data): Delete la_printchar initializer.
2323 (ada_language::printchar): New member function.
2324 * c-lang.c (c_language_data): Delete la_printchar initializer.
2325 (cplus_language_data): Likewise.
2326 (asm_language_data): Likewise.
2327 (minimal_language_data): Likewise.
2328 * d-lang.c (d_language_data): Likewise.
2329 * f-lang.c (f_printchar): Rename to f_language::printchar.
2330 (f_language_data): Delete la_printchar initializer.
2331 (f_language::printchar): New member function, implementation from
2332 f_printchar.
2333 * go-lang.c (go_language_data): Delete la_printchar initializer.
2334 * language.c (unk_lang_printchar): Delete.
2335 (language_defn::printchar): Define new member function.
2336 (unknown_language_data): Delete la_printchar initializer.
2337 (unknown_language::printchar): New member function.
2338 (auto_language_data): Delete la_printchar initializer.
2339 (auto_language::printchar): New member function.
2340 * language.h (language_data): Delete la_printchar field.
2341 (language_defn::printchar): Declare new member function.
2342 (LA_PRINT_CHAR): Update call to printchar.
2343 * m2-lang.c (m2_language_data): Delete la_printchar initializer.
2344 (m2_language::printchar): New member function.
2345 * objc-lang.c (objc_language_data): Delete la_printchar
2346 initializer.
2347 * opencl-lang.c (opencl_language_data): Likewise.
2348 * p-lang.c (pascal_language_data): Delete la_printchar
2349 initializer.
2350 (pascal_language::printchar): New member function.
2351 * rust-lang.c (rust_printchar): Rename to
2352 rust_language::printchar.
2353 (rust_language_data): Delete la_printchar initializer.
2354 (rust_language::printchar): New member function, implementation
2355 from rust_printchar.
2356
ec8cec5b
AB
23572020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
2358
2359 * ada-lang.c (emit_char): Renamed to ada_language::emitchar.
2360 (ada_language_data): Delete la_emitchar initializer.
2361 (ada_language::emitchar): New member function, implementation from
2362 emit_char.
2363 * c-lang.c (c_language_data): Delete la_emitchar initializer.
2364 (cplus_language_data): Likewise.
2365 (asm_language_data): Likewise.
2366 (minimal_language_data): Likewise.
2367 * d-lang.c (d_language_data): Likewise.
2368 * f-lang.c (f_emit_char): Rename to f_language::emitchar.
2369 (f_language_data): Delete la_emitchar initializer.
2370 (f_language::emitchar): New member function, implementation from
2371 f_emit_char.
2372 * go-lang.c (go_language_data): Delete la_emitchar initializer.
2373 * language.c (unk_lang_emit_char): Delete.
2374 (language_defn::emitchar): New member function definition.
2375 (unknown_language_data): Delete la_emitchar initializer.
2376 (unknown_language::emitchar): New member function.
2377 (auto_language_data): Delete la_emitchar initializer.
2378 (auto_language::emitchar): New member function.
2379 * language.h (language_data): Delete la_emitchar field.
2380 (language_defn::emitchar): New member field declaration.
2381 (LA_EMIT_CHAR): Update call to emitchar.
2382 * m2-lang.c (m2_emit_char): Rename to m2_language::emitchar.
2383 (m2_language_data): Delete la_emitchar initializer.
2384 (m2_language::emitchar): New member function, implementation from
2385 m2_emit_char.
2386 * objc-lang.c (objc_language_data): Delete la_emitchar
2387 initializer.
2388 * opencl-lang.c (opencl_language_data): Likewise.
2389 * p-lang.c (pascal_emit_char): Rename to pascal_language::emitchar.
2390 (pascal_language_data): Delete la_emitchar initializer.
2391 (pascal_language::emitchar): New member function, implementation
2392 from pascal_emit_char.
2393 * rust-lang.c (rust_emitchar): Rename to rust_language::emitchar.
2394 (rust_language_data): Delete la_emitchar initializer.
2395 (rust_language::emitchar): New member function, implementation
2396 from rust_emitchar.
2397
1bf9c363
AB
23982020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
2399
2400 * ada-lang.c (resolve): Rename to ada_language::post_parser.
2401 (ada_language_data): Delete la_post_parser initializer.
2402 (ada_language::post_parser): New member function.
2403 * c-lang.c (c_language_data): Delete la_post_parser initializer.
2404 (cplus_language_data): Likewise.
2405 (asm_language_data): Likewise.
2406 (minimal_language_data): Likewise.
2407 * d-lang.c (d_language_data): Likewise.
2408 * f-lang.c (f_language_data): Likewise.
2409 * go-lang.c (go_language_data): Likewise.
2410 * language.c (unknown_language_data): Likewise.
2411 (auto_language_data): Likewise.
2412 * language.h (language_data): Delete la_post_parser field.
2413 (language_defn::post_parser): New member function.
2414 * m2-lang.c (m2_language_data): Delete la_post_parser initializer.
2415 * objc-lang.c (objc_language_data): Likewise.
2416 * opencl-lang.c (opencl_language_data): Likewise.
2417 * p-lang.c (pascal_language_data): Likewise.
2418 * parse.c (parse_exp_in_context): Update call to post_parser.
2419 (null_post_parser): Delete definition.
2420 * parser-defs.h (null_post_parser): Delete declaration.
2421 * rust-lang.c (rust_language_data): Delete la_post_parser
2422 initializer.
2423
87afa652
AB
24242020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
2425
2426 * ada-lang.c (parse): Rename to ada_language::parser.
2427 (ada_language_data): Delete la_parser initializer.
2428 (ada_language::parser): New member function, implementation from
2429 parse.
2430 * c-lang.c (c_language_data): Delete la_parser initializer.
2431 (cplus_language_data): Likewise.
2432 (asm_language_data): Likewise.
2433 (minimal_language_data): Likewise.
2434 * d-lang.c (d_language_data): Likewise.
2435 (d_language::parser): New member function.
2436 * f-lang.c (f_language_data): Delete la_parser initializer.
2437 (f_language::parser): New member function.
2438 * go-lang.c (go_language_data): Delete la_parser initializer.
2439 (go_language::parser): New member function.
2440 * language.c (unk_lang_parser): Delete.
2441 (language_defn::parser): Define new member function.
2442 (unknown_language_data): Delete la_parser initializer.
2443 (unknown_language::parser): New member function.
2444 (auto_language_data): Delete la_parser initializer.
2445 (auto_language::parser): New member function.
2446 * language.h (language_data): Delete la_parser field.
2447 (language_defn::parser): Declare new member function.
2448 * m2-lang.c (m2_language_data): Delete la_parser initializer.
2449 (m2_language::parser): New member function.
2450 * objc-lang.c (objc_language_data): Delete la_parser initializer.
2451 * opencl-lang.c (opencl_language_data): Likewise.
2452 * p-lang.c (pascal_language_data): Likewise.
2453 (pascal_language::parser): New member function.
2454 * parse.c (parse_exp_in_context): Update call to parser.
2455 * rust-lang.c (rust_language_data): Delete la_parser initializer.
2456 (rust_language::parser): New member function.
2457
37825800
AB
24582020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
2459
2460 * top.c (print_gdb_configuration): Print --with-python-libdir
2461 configuration value.
2462
5b860c93
PW
24632020-06-22 Philippe Waroquiers <philippe.waroquiers@skynet.be>
2464
2465 * NEWS: Mention change to the alias command.
2466
cf00cd6f
PW
24672020-06-22 Philippe Waroquiers <philippe.waroquiers@skynet.be>
2468
2469 * cli/cli-cmds.c (lookup_cmd_for_default_args)
2470 (alias_command_completer)
2471 (make_alias_options_def_group): New functions.
2472 (alias_opts, alias_option_defs): New struct and array.
2473 (alias_usage_error): Update usage.
2474 (alias_command): Handles optional DEFAULT-ARGS... arguments.
2475 Use option framework.
2476 (_initialize_cli_cmds): Update alias command help.
2477 Update aliases command help.
2478 (show_user):
2479 Add NULL for new default_args lookup_cmd argument.
2480 (valid_command_p): Rename to validate_aliased_command.
2481 Add NULL for new default_args lookup_cmd argument. Verify that the
2482 aliased_command has no default args.
2483 * cli/cli-decode.c (help_cmd): Show aliases definitions.
2484 (lookup_cmd_1, lookup_cmd): New argument default_args.
2485 (add_alias_cmd):
2486 Add NULL for new default_args lookup_cmd argument.
2487 (print_help_for_command): Show default args under the layout
2488 alias some_alias = some_aliased_cmd some_alias_default_arg.
2489 * cli/cli-decode.h (struct cmd_list_element): New member default_args.
2490 xfree default_args in destructor.
2491 * cli/cli-script.c (process_next_line, do_define_command):
2492 Add NULL for new default_args lookup_cmd argument.
2493 * command.h: Declare new default_args argument in lookup_cmd
2494 and lookup_cmd_1.
2495 * completer.c (complete_line_internal_1):
2496 Add NULL for new default_args lookup_cmd or lookup_cmd_1 argument.
2497 * guile/scm-cmd.c (gdbscm_parse_command_name): Likewise.
2498 * guile/scm-param.c (add_setshow_generic, pascm_parameter_defined_p):
2499 Likewise.
2500 * infcmd.c (_initialize_infcmd): Likewise.
2501 * python/py-auto-load.c (gdbpy_initialize_auto_load): Likewise.
2502 * python/py-cmd.c (gdbpy_parse_command_name): Likewise.
2503 * python/py-param.c (add_setshow_generic): Likewise.
2504 * remote.c (_initialize_remote): Likewise.
2505 * top.c (execute_command): Prepend default_args if command has some.
2506 (set_verbose):
2507 Add NULL for new default_args lookup_cmd or lookup_cmd_1 argument.
2508 * tracepoint.c (validate_actionline, encode_actions_1):
2509 Add NULL for new default_args lookup_cmd or lookup_cmd_1 argument.
2510
bd920864
TBA
25112020-06-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2512
2513 * jit.c (jit_read_descriptor): Use bool as the return type.
2514 (jit_breakpoint_re_set_internal): Use bool as the return type.
2515 Invert the return value logic; return true if the jit breakpoint
2516 has been successfully initialized.
2517 (jit_inferior_init): Update the call to
2518 jit_breakpoint_re_set_internal.
2519
f8098322
PA
25202020-06-22 Pedro Alves <palves@redhat.com>
2521
2522 PR gdb/25939
2523 * procfs.c (procfs_target::wait): Don't reference inferior_ptid.
2524 Use the current inferior instead. Don't return
2525 TARGET_WAITKIND_SPURIOUS/inferior_ptid -- instead continue and
2526 wait again.
2527 * sol-thread.c (sol_thread_target::wait): Don't reference
2528 inferior_ptid.
2529 (ps_lgetregs, ps_lsetregs, ps_lgetfpregs, ps_lsetfpregs)
2530 (sol_update_thread_list_callback): Use the current inferior's pid
2531 instead of inferior_ptid.
2532
196535a6
RO
25332020-06-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2534
2535 * procfs.c: Cleanup many comments.
2536
2537 (READ_WATCHFLAG, WRITE_WATCHFLAG, EXEC_WATCHFLAG)
2538 (AFTER_WATCHFLAG): Replace by value.
2539
2540 (MAIN_PROC_NAME_FORMAT): Inline ...
2541 (create_procinfo): ... here.
2542
2543 (procfs_debug_inferior): Remove SYS_exec handling.
2544 (syscall_is_exec): Likewise.
2545 (procfs_set_exec_trap): Likewise.
2546
2547 (syscall_is_lwp_exit): Inline in callers.
2548 (syscall_is_exit): Likewise.
2549 (syscall_is_exec): Likewise.
2550 (syscall_is_lwp_create): Likewise.
2551
2552 (invalidate_cache): Remove #if 0 code.
2553
2554 (make_signal_thread_runnable): Remove.
2555 (procfs_target::resume): Remove #if 0 code.
2556
cf6f3e86
RO
25572020-06-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2558
2559 PR gdb/25939
2560 * procfs.c (procfs_target::procfs_init_inferior): Move push_target
2561 call ...
2562 (procfs_target::create_inferior): ... here.
2563
48e9cc84
PW
25642020-06-21 Philippe Waroquiers <philippe.waroquiers@skynet.be>
2565
2566 * exec.c (validate_exec_file): Ensure the build-id is up to
2567 date by calling reopen_exec_file (that checks file timestamp
2568 to decide to re-read the file).
2569
3922b302
PA
25702020-06-18 Pedro Alves <palves@redhat.com>
2571
2572 PR gdb/25412
2573 * gdbthread.h (delete_thread, delete_thread_silent)
2574 (find_thread_ptid): Update comments.
2575 * thread.c (current_thread_): New global.
2576 (is_current_thread): Move higher, and reimplement.
2577 (inferior_thread): Reimplement.
2578 (set_thread_exited): Use bool. Add assertions.
2579 (add_thread_silent): Simplify thread-reuse handling by always
2580 calling delete_thread.
2581 (delete_thread): Remove intro comment.
2582 (find_thread_ptid): Skip exited threads.
2583 (switch_to_thread_no_regs): Write to current_thread_.
2584 (switch_to_no_thread): Check CURRENT_THREAD_ instead of
2585 INFERIOR_PTID. Clear current_thread_.
2586
6dbdab44
PA
25872020-06-18 Pedro Alves <palves@redhat.com>
2588
2589 * aix-thread.c (pd_update): Use switch_to_thread.
2590
2da4b788
PA
25912020-06-18 Pedro Alves <palves@redhat.com>
2592
2593 * ravenscar-thread.c (ravenscar_thread_target): Update.
2594 (ravenscar_thread_target::update_inferior_ptid): Rename to ...
2595 (ravenscar_thread_target::add_active_thread): ... this. Don't
2596 set m_base_ptid here. Update to avoid referencing inferior_ptid.
2597 (ravenscar_thread_target::wait): Don't write to inferior_ptid.
2598
50838d1b
PA
25992020-06-18 Pedro Alves <palves@redhat.com>
2600
2601 * nat/windows-nat.c (current_windows_thread): Remove.
2602 * nat/windows-nat.h (current_windows_thread): Remove.
2603 * windows-nat.c (windows_nat_target::stopped_by_sw_breakpoint):
2604 Adjust.
2605 (display_selectors): Adjust to fetch the current
2606 windows_thread_info based on inferior_ptid.
2607 (fake_create_process): No longer write to current_windows_thread.
2608 (windows_nat_target::get_windows_debug_event):
2609 Don't set inferior_ptid or current_windows_thread.
2610 (windows_nat_target::wait): Adjust to not rely on
2611 current_windows_thread.
2612 (do_initial_windows_stuff): Now a method of windows_nat_target.
2613 Switch to the last_ptid thread.
2614 (windows_nat_target::attach): Adjust.
2615 (windows_nat_target::detach): Use switch_to_no_thread instead of
2616 writing to inferior_ptid directly.
2617 (windows_nat_target::create_inferior): Adjust.
2618
31ce04e9
PA
26192020-06-18 Pedro Alves <palves@redhat.com>
2620
2621 * windows-nat.c (do_initial_windows_stuff): No longer set inferior_ptid.
2622
1ee1a363
PA
26232020-06-18 Pedro Alves <palves@redhat.com>
2624
2625 * go32-nat.c (go32_nat_target::create_inferior): Switch to thread
2626 after creating it, instead of writing to inferior_ptid. Don't
2627 write to inferior_ptid.
2628
6d350754
PA
26292020-06-18 Pedro Alves <palves@redhat.com>
2630
2631 * fork-child.c (postfork_hook): Don't write to inferior_ptid.
2632
5d971d48
PA
26332020-06-18 Pedro Alves <palves@redhat.com>
2634
2635 * bsd-kvm.c (bsd_kvm_target_open): Switch to thread after adding
2636 it, instead of writing to inferior_ptid.
2637
86e57d1b
PA
26382020-06-18 Pedro Alves <palves@redhat.com>
2639
2640 * btrace.c (btrace_fetch): Use switch_to_thread instead of writing
2641 to inferior_ptid.
2642
f2e1c129
PA
26432020-06-18 Pedro Alves <palves@redhat.com>
2644
2645 * bsd-kvm.c (bsd_kvm_target::close): Use switch_to_no_thread
2646 instead of writing to inferior_ptid directly.
2647
60db1b85
PA
26482020-06-18 Pedro Alves <palves@redhat.com>
2649
2650 * corelow.c (core_target::close): Use switch_to_no_thread instead
2651 of writing to inferior_ptid directly.
2652 (add_to_thread_list, core_target_open): Use switch_to_thread
2653 instead of writing to inferior_ptid directly.
2654
fe7d6a8d
PA
26552020-06-18 Pedro Alves <palves@redhat.com>
2656
2657 * darwin-nat.c (darwin_nat_target::decode_message): Don't write to
2658 inferior_ptid.
2659 (darwin_nat_target::stop_inferior, darwin_nat_target::kill): Avoid
2660 inferior_ptid.
2661 (darwin_attach_pid): Use switch_to_no_thread instead of writing to
2662 inferior_ptid directly.
2663 (darwin_nat_target::init_thread_list): Switch to thread, instead
2664 of writing to inferior_ptid.
2665 (darwin_nat_target::attach): Don't write to inferior_ptid.
2666 (darwin_nat_target::get_ada_task_ptid): Avoid inferior_ptid.
2667
975f8708
PA
26682020-06-18 Pedro Alves <palves@redhat.com>
2669
2670 * gnu-nat.c (gnu_nat_target::create_inferior): Switch to the added
2671 thread.
2672 (gnu_nat_target::attach): Don't write to inferior_ptid directly.
2673 Instead use switch_to_thread.
2674 (gnu_nat_target::detach): Use switch_to_no_thread
2675 instead of writing to inferior_ptid directly. Used passed-in
2676 inferior instead of looking up the inferior by pid.
2677
1a204730
PA
26782020-06-18 Pedro Alves <palves@redhat.com>
2679
2680 * go32-nat.c (go32_nat_target::create_inferior): Don't write to
2681 inferior_ptid.
2682
ebe84f23
PA
26832020-06-18 Pedro Alves <palves@redhat.com>
2684
2685 * nto-procfs.c (nto_procfs_target::update_thread_list): Avoid
2686 inferior_ptid.
2687 (nto_procfs_target::attach): Avoid inferior_ptid. Switch to
2688 thread.
2689 (nto_procfs_target::detach): Avoid referencing
2690 inferior_ptid. Use switch_to_no_thread instead of writing to
2691 inferior_ptid directly.
2692 (nto_procfs_target::mourn_inferior): Use switch_to_no_thread
2693 instead of writing to inferior_ptid directly.
2694 (nto_procfs_target::create_inferior): Avoid inferior_ptid. Switch
2695 to thread.
2696
191f02e5
PA
26972020-06-18 Pedro Alves <palves@redhat.com>
2698
2699 * remote-sim.c (gdbsim_target::create_inferior): Switch to thread
2700 after creating it, instead of writing to inferior_ptid.
2701 (gdbsim_target_open): Use switch_to_no_thread instead of writing
2702 to inferior_ptid directly.
2703 (gdbsim_target::wait): Don't write to inferior_ptid.
2704
0ac55310
PA
27052020-06-18 Pedro Alves <palves@redhat.com>
2706
2707 * remote.c (remote_target::remote_notice_new_inferior): Use
2708 switch_to_thread instead of writing to inferior_ptid directly.
2709 (remote_target::add_current_inferior_and_thread): Use
2710 switch_to_no_thread instead of writing to inferior_ptid directly.
2711 (extended_remote_target::attach): Use switch_to_inferior_no_thread
2712 and switch_to_thread instead of using set_current_inferior or
2713 writing to inferior_ptid directly.
2714
5233f39b
PA
27152020-06-18 Pedro Alves <palves@redhat.com>
2716
2717 * tracectf.c (ctf_target_open): Switch to added thread instead of
2718 writing to inferior_ptid directly.
2719 (ctf_target::close): Use switch_to_no_thread instead of writing to
2720 inferior_ptid directly.
2721
087e161b
PA
27222020-06-18 Pedro Alves <palves@redhat.com>
2723
2724 * tracefile-tfile.c (tfile_target_open): Don't write to
2725 inferior_ptid directly, instead switch to added thread.
2726 (tfile_target::close): Use switch_to_no_thread instead of writing
2727 to inferior_ptid directly.
2728
7fb43e53
PA
27292020-06-18 Pedro Alves <palves@redhat.com>
2730
2731 * procfs.c (procfs_target::attach): Don't write to inferior_ptid.
2732 (procfs_target::detach): Use switch_to_no_thread
2733 instead of writing to inferior_ptid directly.
2734 (do_attach): Change return type to void. Switch to the added
2735 thread.
2736 (procfs_target::create_inferior): Switch to the added thread.
2737 (procfs_do_thread_registers): Don't write to inferior_ptid.
2738
18493a00
PA
27392020-06-18 Pedro Alves <palves@redhat.com>
2740
2741 * infrun.c (generic_mourn_inferior): Use switch_to_thread instead
2742 of writing to inferior_ptid.
2743 (scoped_restore_exited_inferior): Delete.
2744 (handle_vfork_child_exec_or_exit): Simplify using
2745 scoped_restore_current_pspace_and_thread. Use switch_to_thread
2746 instead of writing to inferior_ptid.
2747 (THREAD_STOPPED_BY): Delete.
2748 (thread_stopped_by_watchpoint, thread_stopped_by_sw_breakpoint)
2749 (thread_stopped_by_hw_breakpoint): Delete.
2750 (save_waitstatus): Use
2751 scoped_restore_current_thread+switch_to_thread, and call
2752 target_stopped_by_watchpoint instead of
2753 thread_stopped_by_watchpoint, target_stopped_by_sw_breakpoint
2754 instead of thread_stopped_by_sw_breakpoint, and
2755 target_stopped_by_hw_breakpoint instead of
2756 thread_stopped_by_hw_breakpoint.
2757 (handle_inferior_event)
2758 <TARGET_WAITKIND_EXITED/TARGET_WAITKIND_SIGNALLED>: Don't write to
2759 inferior_ptid directly, nor
2760 set_current_inferior/set_current_program_space. Use
2761 switch_to_thread / switch_to_inferior_no_thread instead.
2762
a0776b13
PA
27632020-06-18 Pedro Alves <palves@redhat.com>
2764
2765 * target.c (generic_mourn_inferior): Use switch_to_no_thread
2766 instead of writing to inferior_ptid.
2767
6155c136
PA
27682020-06-18 Pedro Alves <palves@redhat.com>
2769
2770 * inf-ptrace.c (inf_ptrace_target::create_inferior): Switch to the
2771 added thread.
2772 (inf_ptrace_target::attach): Don't write to inferior_ptid. Switch
2773 to the added thread.
2774 (inf_ptrace_target::detach_success): Use switch_to_no_thread
2775 instead of writing to inferior_ptid.
2776
c5316fc6
PA
27772020-06-18 Pedro Alves <palves@redhat.com>
2778
2779 * gdbarch-selftests.c: Include "progspace-and-thread.h".
2780 (register_to_value_test): Mock a program_space too. Heap-allocate
2781 the address space. Don't write to inferior_ptid. Use
2782 switch_to_thread instead.
2783
8df01799
PA
27842020-06-18 Pedro Alves <palves@redhat.com>
2785
2786 * linux-tdep.c (find_signalled_thread(thread_info *,void *)):
2787 Delete.
2788 (find_signalled_thread()): New, factored out from
2789 linux_make_corefile_notes and adjusted to handle exited threads.
2790 (linux_make_corefile_notes): Adjust to use the new
2791 find_signalled_thread.
2792
41792d68
PA
27932020-06-18 Pedro Alves <palves@redhat.com>
2794
2795 * linux-tdep.c (btrace_fetch): Save/restore current thread instead
2796 of saving/restoring inferior_ptid.
2797
612f258a
TT
27982020-06-17 Tom Tromey <tom@tromey.com>
2799
2800 * tui/tui-win.h (tui_scroll_forward, tui_scroll_backward)
2801 (tui_scroll_left, tui_scroll_right, struct tui_win_info): Don't
2802 declare.
2803 * tui/tui-data.h (MIN_CMD_WIN_HEIGHT): Remove.
2804
efb763a5
SM
28052020-06-15 Simon Marchi <simon.marchi@efficios.com>
2806
2807 * dwarf2/read.c (dwarf2_initialize_objfile): Check for presence
2808 of partial symtabs.
2809
2951f6c0
SM
28102020-06-17 Simon Marchi <simon.marchi@efficios.com>
2811
2812 * regformats/reg-arm.dat: Remove.
2813 * regformats/reg-bfin.dat: Remove.
2814 * regformats/reg-cris.dat: Remove.
2815 * regformats/reg-crisv32.dat: Remove.
2816 * regformats/reg-m32r.dat: Remove.
2817 * regformats/reg-tilegx.dat: Remove.
2818 * regformats/reg-tilegx32.dat: Remove.
2819
7d458ea5
SM
28202020-06-17 Simon Marchi <simon.marchi@efficios.com>
2821
2822 * features/Makefile (WHICH): Remove arm files.
2823 * regformats/arm/arm-with-iwmmxt.dat: Remove.
2824 * regformats/arm/arm-with-neon.dat: Remove.
2825 * regformats/arm/arm-with-vfpv2.dat: Remove.
2826 * regformats/arm/arm-with-vfpv3.dat: Remove.
2827
3af96c0d
SM
28282020-06-17 Simon Marchi <simon.marchi@efficios.com>
2829
2830 * features/Makefile (XMLTOC): Remove rx.xml.
2831
b25e22fd
PA
28322020-06-17 Pedro Alves <palves@redhat.com>
2833
2834 * gdbthread.h (thread_control_state) <trap_expected> Update
2835 comments.
2836
a78a19b1
AB
28372020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
2838
2839 * ada-lang.c (ada_lookup_symbol_nonlocal): Rename to
2840 ada_language::lookup_symbol_nonlocal.
2841 (ada_language_data): Delete la_lookup_symbol_nonlocal initializer.
2842 (ada_language::lookup_symbol_nonlocal): New member function,
2843 implementation from ada_lookup_symbol_nonlocal.
2844 * c-lang.c (c_language_data): Delete la_lookup_symbol_nonlocal
2845 initializer.
2846 (cplus_language_data): Delete la_lookup_symbol_nonlocal
2847 initializer.
2848 (cplus_language::lookup_symbol_nonlocal): New member function.
2849 (asm_language_data): Delete la_lookup_symbol_nonlocal initializer.
2850 (minimal_language_data) Likewise.
2851 * cp-namespace.c (cp_lookup_nested_symbol): Update comment.
2852 * d-lang.c (d_language_data): Delete la_lookup_symbol_nonlocal
2853 initializer.
2854 (d_language::lookup_symbol_nonlocal): New member function.
2855 * f-lang.c (f_language_data): Delete la_lookup_symbol_nonlocal
2856 initializer.
2857 (f_language::lookup_symbol_nonlocal): New member function.
2858 * go-lang.c (go_language_data): Delete la_lookup_symbol_nonlocal
2859 initializer.
2860 * language.c (unknown_language_data): Likewise.
2861 (auto_language_data): Likewise.
2862 * language.h (language_data): Delete la_lookup_symbol_nonlocal
2863 field.
2864 (language_defn::lookup_symbol_nonlocal): New member function.
2865 * m2-lang.c (m2_language_data): Delete la_lookup_symbol_nonlocal
2866 initializer.
2867 * objc-lang.c (objc_language_data): Likewise.
2868 * opencl-lang.c (opencl_language_data): Likewise.
2869 * p-lang.c (pascal_language_data): Likewise.
2870 * rust-lang.c (rust_lookup_symbol_nonlocal): Rename to
2871 rust_language::lookup_symbol_nonlocal.
2872 (rust_language_data): Delete la_lookup_symbol_nonlocal
2873 initializer.
2874 (rust_language::lookup_symbol_nonlocal): New member function,
2875 implementation from rust_lookup_symbol_nonlocal.
2876 * symtab.c (lookup_symbol_aux): Update call to
2877 lookup_symbol_nonlocal.
2878 (basic_lookup_symbol_nonlocal): Rename to...
2879 (language_defn::lookup_symbol_nonlocal): ...this, and update
2880 header comment. Remove language_defn parameter, and replace with
2881 uses of `this'.
2882 * symtab.h (basic_lookup_symbol_nonlocal): Delete declaration.
2883
ebe2334e
AB
28842020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
2885
2886 * ada-lang.c (ada_language_data): Delete la_value_print_inner
2887 initializer.
2888 (ada_language::value_print_inner): New member function.
2889 * c-lang.c (c_language_data): Delete la_value_print_inner
2890 initializer.
2891 (cplus_language_data): Likewise.
2892 (asm_language_data): Likewise.
2893 (minimal_language_data): Likewise.
2894 * d-lang.c (d_language_data): Likewise.
2895 (d_language::value_print_inner): New member function.
2896 * f-lang.c (f_language_data): Delete la_value_print_inner
2897 initializer.
2898 (f_language::value_print_inner): New member function.
2899 * f-lang.h (f_value_print_innner): Rename to...
2900 (f_value_print_inner): ...this (note spelling of 'inner').
2901 * f-valprint.c (f_value_print_innner): Rename to...
2902 (f_value_print_inner): ...this (note spelling of 'inner').
2903 * go-lang.c (go_language_data): Delete la_value_print_inner
2904 initializer.
2905 (go_language::value_print_inner): New member function.
2906 * language.c (language_defn::value_print_inner): Define new member
2907 function.
2908 (unk_lang_value_print_inner): Delete.
2909 (unknown_language_data): Delete la_value_print_inner initializer.
2910 (unknown_language::value_print_inner): New member function.
2911 (auto_language_data): Delete la_value_print_inner initializer.
2912 (auto_language::value_print_inner): New member function.
2913 * language.h (language_data): Delete la_value_print_inner field.
2914 (language_defn::value_print_inner): Delcare new member function.
2915 * m2-lang.c (m2_language_data): Delete la_value_print_inner
2916 initializer.
2917 (m2_language::value_print_inner): New member function.
2918 * objc-lang.c (objc_language_data): Delete la_value_print_inner
2919 initializer.
2920 * opencl-lang.c (opencl_language_data): Likewise.
2921 * p-lang.c (pascal_language_data): Likewise.
2922 (pascal_language::value_print_inner): New member function.
2923 * rust-lang.c (rust_language_data): Delete la_value_print_inner
2924 initializer.
2925 (rust_language::value_print_inner): New member function.
2926 * valprint.c (do_val_print): Update call to value_print_inner.
2927
a1d1fa3e
AB
29282020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
2929
2930 * ada-lang.c (ada_language_data): Delete la_value_print
2931 initializer.
2932 (ada_language::value_print): New member function.
2933 * c-lang.c (c_language_data): Delete la_value_print initializer.
2934 (cplus_language_data): Likewise.
2935 (asm_language_data): Likewise.
2936 (minimal_language_data): Likewise.
2937 * d-lang.c (d_language_data): Likewise.
2938 * f-lang.c (f_language_data): Likewise.
2939 * go-lang.c (go_language_data): Likewise.
2940 * language.c (unk_lang_value_print): Delete.
2941 (language_defn::value_print): Define new member function.
2942 (unknown_language_data): Delete la_value_print initializer.
2943 (unknown_language::value_print): New member function.
2944 (auto_language_data): Delete la_value_print initializer.
2945 (auto_language::value_print): New member function.
2946 * language.h (language_data): Delete la_value_print field.
2947 (language_defn::value_print): Declare new member function.
2948 (LA_VALUE_PRINT): Update call to value_print.
2949 * m2-lang.c (m2_language_data): Delete la_value_print initializer.
2950 * objc-lang.c (objc_language_data): Likewise.
2951 * opencl-lang.c (opencl_language_data): Likewise.
2952 * p-lang.c (pascal_language_data): Likewise.
2953 (pascal_language::value_print): New member function.
2954 * rust-lang.c (rust_language_data): Delete la_value_print
2955 initializer.
2956
f16a9f57
AB
29572020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
2958
2959 * ada-lang.c (ada_watch_location_expression): Rename to
2960 ada_language::watch_location_expression.
2961 (ada_language_data): Delete la_watch_location_expression
2962 initializer.
2963 (ada_language::watch_location_expression): New member function,
2964 implementation from ada_watch_location_expression.
2965 * breakpoint.c (watch_command_1): Update call to
2966 watch_location_expression.
2967 * c-lang.c (c_watch_location_expression): Rename to
2968 language_defn::watch_location_expression.
2969 (c_language_data): Delete la_watch_location_expression
2970 initializer.
2971 (cplus_language_data): Likewise.
2972 (asm_language_data): Likewise.
2973 (minimal_language_data): Likewise.
2974 * c-lang.h (c_watch_location_expression): Delete declaration.
2975 * d-lang.c (d_language_data): Delete la_watch_location_expression
2976 initializer.
2977 * f-lang.c (f_language_data): Likewise.
2978 * go-lang.c (go_language_data): Likewise.
2979 * language.c (language_defn::watch_location_expression): Member
2980 function implementation from c_watch_location_expression.
2981 (unknown_language_data): Delete la_watch_location_expression
2982 initializer.
2983 (auto_language_data): Likewise.
2984 * language.h (language_data): Delete la_watch_location_expression
2985 field.
2986 (language_defn::watch_location_expression): Declare new member
2987 function.
2988 * m2-lang.c (m2_language_data): Delete
2989 la_watch_location_expression initializer.
2990 * objc-lang.c (objc_language_data): Likewise.
2991 * opencl-lang.c (opencl_language_data): Likewise.
2992 * p-lang.c (pascal_language_data): Likewise.
2993 * rust-lang.c (rust_watch_location_expression): Rename to
2994 rust_language::watch_location_expression.
2995 (rust_language_data): Delete la_watch_location_expression
2996 initializer.
2997 (rust_language::watch_location_expression): New member function,
2998 implementation from rust_watch_location_expression.
2999
7e56227d
AB
30002020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
3001
3002 * ada-lang.c (ada_collect_symbol_completion_matches): Rename to
3003 ada_language::collect_symbol_completion_matches.
3004 (ada_language_data): Delete la_collect_symbol_completion_matches
3005 initializer.
3006 (ada_language::collect_symbol_completion_matches): New member
3007 function, implementation from
3008 ada_collect_symbol_completion_matches.
3009 * c-lang.c (c_language_data): Delete
3010 la_collect_symbol_completion_matches initializer.
3011 (cplus_language_data): Likewise.
3012 (asm_language_data): Likewise.
3013 (minimal_language_data): Likewise.
3014 * d-lang.c (d_language_data): Likewise.
3015 * f-lang.c (f_collect_symbol_completion_matches): Rename to
3016 f_language::collect_symbol_completion_matches.
3017 (f_language_data): Delete la_collect_symbol_completion_matches
3018 initializer.
3019 (f_language::collect_symbol_completion_matches) New member
3020 function, implementation from f_collect_symbol_completion_matches.
3021 * go-lang.c (go_language_data): Delete
3022 la_collect_symbol_completion_matches initializer.
3023 * language.c (unknown_language_data): Likewise.
3024 (auto_language_data): Likewise.
3025 * language.h (language_data): Delete
3026 la_collect_symbol_completion_matches field.
3027 (language_defn::collect_symbol_completion_matches): New member
3028 function.
3029 * m2-lang.c (m2_language_data): Delete
3030 la_collect_symbol_completion_matches initializer.
3031 * objc-lang.c (objc_language_data): Likewise.
3032 * opencl-lang.c (opencl_language_data): Likewise.
3033 * p-lang.c (pascal_language_data): Likewise.
3034 * rust-lang.c (rust_language_data): Likewise.
3035 * symtab.c (default_collect_symbol_completion_matches): Delete.
3036 (collect_symbol_completion_matches): Update call to
3037 collect_symbol_completion_matches.
3038 (collect_symbol_completion_matches_type): Likewise.
3039 * symtab.h (default_collect_symbol_completion_matches): Delete
3040 declaration.
3041
53fc67f8
AB
30422020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
3043
3044 * ada-lang.c (ada_get_gdb_completer_word_break_characters): Delete.
3045 (ada_language_data): Delete la_word_break_characters initializer.
3046 (ada_language::word_break_characters): New member function.
3047 * c-lang.c (c_language_data): Delete la_word_break_characters
3048 initializer.
3049 (cplus_language_data): Likewise.
3050 (asm_language_data): Likewise.
3051 (minimal_language_data): Likewise.
3052 * completer.c: Update global comment.
3053 (advance_to_expression_complete_word_point): Update call to
3054 word_break_characters.
3055 (complete_files_symbols): Likewise.
3056 (complete_line_internal_1): Likewise.
3057 (default_completer_handle_brkchars): Likewise.
3058 (skip_quoted_chars): Likewise.
3059 * d-lang.c (d_language_data): Delete la_word_break_characters
3060 initializer.
3061 * f-lang.c (f_word_break_characters): Delete.
3062 (f_language_data): Delete la_word_break_characters initializer.
3063 (f_language::word_break_characters): New member function.
3064 * go-lang.c (go_language_data): Delete la_word_break_characters
3065 initializer.
3066 * language.c (unknown_language_data): Likewise.
3067 (auto_language_data): Likewise.
3068 * language.h (default_word_break_characters): Move declaration to
3069 earlier in the file.
3070 (language_data): Delete la_word_break_characters field.
3071 (language_defn::word_break_characters): New member function.
3072 * m2-lang.c (m2_language_data): Delete la_word_break_characters
3073 initializer.
3074 * objc-lang.c (objc_language_data): Likewise.
3075 * opencl-lang.c (opencl_language_data): Likewise.
3076 * p-lang.c (pascal_language_data): Likewise.
3077 * rust-lang.c (rust_language_data): Likewise.
3078
c9debfb9
AB
30792020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
3080
3081 * ada-lang.c (ada_get_symbol_name_matcher): Update header comment.
3082 (ada_language_data): Delete la_get_symbol_name_matcher
3083 initializer.
3084 (language_defn::get_symbol_name_matcher_inner): New member
3085 function.
3086 * c-lang.c (c_language_data): Delete la_get_symbol_name_matcher
3087 initializer.
3088 (cplus_language_data): Likewise.
3089 (cplus_language::get_symbol_name_matcher_inner): New member
3090 function.
3091 (asm_language_data): Delete la_get_symbol_name_matcher initializer.
3092 (minimal_language_data): Likewise.
3093 * cp-support.h (cp_get_symbol_name_matcher): Update header comment.
3094 * d-lang.c (d_language_data): Delete la_get_symbol_name_matcher
3095 initializer.
3096 * dictionary.c (iter_match_first_hashed): Update call to
3097 get_symbol_name_matcher.
3098 (iter_match_next_hashed): Likewise.
3099 (iter_match_next_linear): Likewise.
3100 * dwarf2/read.c (dw2_expand_symtabs_matching_symbol): Likewise.
3101 * f-lang.c (f_language_data): Delete la_get_symbol_name_matcher
3102 initializer.
3103 (f_language::get_symbol_name_matcher_inner): New member function.
3104 * go-lang.c (go_language_data): Delete la_get_symbol_name_matcher
3105 initializer.
3106 * language.c (default_symbol_name_matcher): Update header comment,
3107 make static.
3108 (language_defn::get_symbol_name_matcher): New definition.
3109 (language_defn::get_symbol_name_matcher_inner): Likewise.
3110 (get_symbol_name_matcher): Delete.
3111 (unknown_language_data): Delete la_get_symbol_name_matcher
3112 initializer.
3113 (auto_language_data): Likewise.
3114 * language.h (language_data): Delete la_get_symbol_name_matcher
3115 field.
3116 (language_defn::get_symbol_name_matcher): New member function.
3117 (language_defn::get_symbol_name_matcher_inner): Likewise.
3118 (default_symbol_name_matcher): Delete declaration.
3119 * linespec.c (find_methods): Update call to
3120 get_symbol_name_matcher.
3121 * m2-lang.c (m2_language_data): Delete la_get_symbol_name_matcher
3122 initializer.
3123 * minsyms.c (lookup_minimal_symbol): Update call to
3124 get_symbol_name_matcher.
3125 (iterate_over_minimal_symbols): Likewise.
3126 * objc-lang.c (objc_language_data): Delete
3127 la_get_symbol_name_matcher initializer.
3128 * opencl-lang.c (opencl_language_data): Likewise.
3129 * p-lang.c (pascal_language_data): Likewise.
3130 * psymtab.c (psymbol_name_matches): Update call to
3131 get_symbol_name_matcher.
3132 * rust-lang.c (rust_language_data): Delete
3133 la_get_symbol_name_matcher initializer.
3134 * symtab.c (symbol_matches_search_name): Update call to
3135 get_symbol_name_matcher.
3136 (compare_symbol_name): Likewise.
3137
9a49ad8c
AB
31382020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
3139
3140 * ada-lang.c (ada_language_data): Delete la_compute_program
3141 initializer.
3142 * c-lang.c (c_language_data): Likewise.
3143 (c_language::compute_program): New member function.
3144 (cplus_language_data): Delete la_compute_program initializer.
3145 (cplus_language::compute_program): New member function.
3146 (asm_language_data): Delete la_compute_program initializer.
3147 (minimal_language_data): Likewise.
3148 * c-lang.h (c_compute_program): Update comment.
3149 (cplus_compute_program): Likewise.
3150 * compile/compile-c-support.c (c_compute_program): Likewise.
3151 (cplus_compute_program): Likewise.
3152 * compile/compile.c (compile_to_object): Update call to
3153 la_compute_program.
3154 * d-lang.c (d_language_data): Delete la_compute_program
3155 initializer.
3156 * f-lang.c (f_language_data): Likewise.
3157 * go-lang.c (go_language_data): Likewise.
3158 * language.c (unknown_language_data): Likewise.
3159 (auto_language_data): Likewise.
3160 * language.h (language_data): Delete la_compute_program field.
3161 (language_defn::compute_program): New member function.
3162 * m2-lang.c (m2_language_data): Delete la_compute_program
3163 initializer.
3164 * objc-lang.c (objc_language_data): Likewise.
3165 * opencl-lang.c (opencl_language_data): Likewise.
3166 * p-lang.c (pascal_language_data): Likewise.
3167 * rust-lang.c (rust_language_data): Likewise.
3168
eff93b4d
AB
31692020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
3170
3171 * ada-lang.c (ada_language_data) Delete
3172 la_class_name_from_physname initializer.
3173 * c-lang.c (c_language_data): Likewise.
3174 (cplus_language_data): Likewise.
3175 (cplus_language::class_name_from_physname): New member function.
3176 (asm_language_data): Delete la_class_name_from_physname
3177 initializer.
3178 (minimal_language_data): Likewise.
3179 * d-lang.c (d_language_data): Likewise.
3180 * dwarf2/read.c (guess_partial_die_structure_name): Update to call
3181 method on language_defn class.
3182 (guess_full_die_structure_name): Likewise.
3183 * f-lang.c (f_language_data): Delete la_class_name_from_physname
3184 initializer.
3185 * go-lang.c (go_language_data): Likewise.
3186 * language.c (language_class_name_from_physname): Delete.
3187 (unk_lang_class_name): Delete.
3188 (unknown_language_data): Delete la_class_name_from_physname
3189 initializer.
3190 (auto_language_data): Likewise.
3191 * language.h (language_data): Delete la_class_name_from_physname
3192 field.
3193 (language_defn::class_name_from_physname): New function.
3194 (language_class_name_from_physname): Delete declaration.
3195 * m2-lang.c (m2_language_data): Delete la_class_name_from_physname
3196 initializer.
3197 * objc-lang.c (objc_language_data): Likewise.
3198 * opencl-lang.c (opencl_language_data): Likewise.
3199 * p-lang.c (pascal_language_data): Likewise.
3200 * rust-lang.c (rust_language_data): Likewise.
3201
de543742
TT
32022020-06-16 Tom Tromey <tom@tromey.com>
3203
3204 * tui/tui-data.h (STATUS_NAME): New macro.
3205 * tui/tui-layout.c (tui_remove_some_windows)
3206 (initialize_known_windows, tui_register_window)
3207 (tui_layout_split::remove_windows, initialize_layouts)
3208 (tui_new_layout_command): Don't use hard-coded window names.
3209
a350efd4
TT
32102020-06-16 Tom Tromey <tom@tromey.com>
3211
3212 PR tui/25348:
3213 * tui/tui.c (tui_ensure_readline_initialized): Rename from
3214 tui_initialize_readline. Only run once. Call rl_initialize.
3215 * tui/tui.h (tui_ensure_readline_initialized): Rename from
3216 tui_initialize_readline.
3217 * tui/tui-io.c (tui_setup_io): Call
3218 tui_ensure_readline_initialized.
3219 * tui/tui-interp.c (tui_interp::init): Update.
3220
39ec0490
TT
32212020-06-16 Tom Tromey <tom@tromey.com>
3222
3223 * tui/tui-layout.c (tui_layout_split::remove_windows): Fix logic.
3224 Also preserve the status window.
3225
d2d1ea20
TT
32262020-06-16 Tom Tromey <tom@tromey.com>
3227
3228 * python/py-tui.c (tui_py_window::~tui_py_window): Handle case
3229 where m_window==nullptr.
3230
66920317
TT
32312020-06-15 Tom Tromey <tromey@adacore.com>
3232
3233 * windows-nat.c (windows_nat::handle_output_debug_string):
3234 Update.
3235 (windows_nat::handle_ms_vc_exception): Update.
3236 * target.h (target_read_string): Change API.
3237 * target.c (target_read_string): Change API.
3238 * solib-svr4.c (open_symbol_file_object, svr4_read_so_list):
3239 Update.
3240 * solib-frv.c (frv_current_sos): Update.
3241 * solib-dsbt.c (dsbt_current_sos): Update.
3242 * solib-darwin.c (darwin_current_sos): Update.
3243 * linux-thread-db.c (inferior_has_bug): Update.
3244 * expprint.c (print_subexp_standard): Update.
3245 * ada-lang.c (ada_main_name, ada_tag_name_from_tsd)
3246 (ada_exception_message_1): Update.
3247
a5d871dd
TT
32482020-06-15 Tom Tromey <tromey@adacore.com>
3249
3250 * linux-tdep.c (dump_mapping_p): Use target_read_memory.
3251
670e35fa
TT
32522020-06-15 Tom Tromey <tromey@adacore.com>
3253
3254 * valprint.c (read_string): Update comment.
3255 * target.c (MIN): Remove.
3256 (target_read_string): Rewrite.
3257
f5272a3b
TT
32582020-06-15 Tom Tromey <tromey@adacore.com>
3259
3260 * corefile.c (read_memory_string): Remove.
3261 * ada-valprint.c (ada_value_print_ptr): Update.
3262 * ada-lang.h (ada_tag_name): Change return type.
3263 * ada-lang.c (type_from_tag): Update.
3264 (ada_tag_name_from_tsd): Change return type. Use
3265 target_read_string.
3266 (ada_tag_name): Likewise.
3267 * gdbcore.h (read_memory_string): Don't declare.
3268
2c074f49
HD
32692020-06-14 Hannes Domani <ssbssa@yahoo.de>
3270
3271 * symtab.c (rbreak_command): Ignore Windows drive colon.
3272
6a17d503
SM
32732020-06-12 Simon Marchi <simon.marchi@efficios.com>
3274
3275 * NEWS: Mention removed GDBserver host support.
3276
453c733f
NC
32772020-06-12 Nelson Chu <nelson.chu@sifive.com>
3278
3279 * features/riscv/rebuild-csr-xml.sh: Updated.
3280
2b4e6a3f
TT
32812020-06-11 Tom Tromey <tom@tromey.com>
3282
3283 PR gdb/18318:
3284 * c-exp.y (lex_one_token): Handle 'p' like 'e'.
3285
4412332f
JG
32862020-06-09 Jonny Grant <jg@jguk.org>
32872020-06-09 Simon Marchi <simon.marchi@polymtl.ca>
3288
3289 * main.c (captured_main_1): Don't print new line after help.
3290 (print_gdb_help): add mailing list and IRC channel information
3291 to --help. Add new lines between items in the footer. Remove
3292 quotes around bug url.
3293
2f33032a
KS
32942020-06-11 Keith Seitz <keiths@redhat.com>
3295
3296 PR gdb/21356
3297 * gdbtypes.c (resolve_dynamic_union, resolve_dynamic_struct):
3298 Resolve typedefs for type length calculations.
3299
7ab96794
TV
33002020-06-10 Tom de Vries <tdevries@suse.de>
3301
3302 PR ada/24713
3303 * dwarf2/index-write.c (struct mapped_symtab): Add m_string_obstack.
3304 (write_psymbols): Enable .gdb_index for ada.
3305 * dwarf2/read.c: Remove comment stating .gdb_index is unsupported for
3306 ada.
3307
e5f3ece2
TV
33082020-06-10 Tom de Vries <tdevries@suse.de>
3309
3310 * dwarf2/read.c (dw2_symtab_iter_init_common): Factor out of ...
3311 (dw2_symtab_iter_init): ... here. Add variant with "offset_type
3312 namei" instead of "const char *name" argument.
3313 (dw2_map_matching_symbols): Use "offset_type namei" variant of
3314 dw2_symtab_iter_init.
3315
940da03e
SM
33162020-06-08 Simon Marchi <simon.marchi@efficios.com>
3317
3318 * gdbtypes.h (TYPE_FIELD_TYPE): Remove. Change all call sites
3319 to use type::field and field::type instead.
3320
b6cdac4b
SM
33212020-06-08 Simon Marchi <simon.marchi@efficios.com>
3322
3323 * gdbtypes.h (FIELD_TYPE): Remove. Change all call sites
3324 to use field::type instead.
3325
5d14b6e5
SM
33262020-06-08 Simon Marchi <simon.marchi@efficios.com>
3327
3328 * gdbtypes.h (struct field) <type, set_type>: New methods.
3329 Rename `type` field to...
3330 <m_type>: ... this. Change references throughout to use type or
3331 set_type methods.
3332 (FIELD_TYPE): Use field::type. Change call sites that modify
3333 the field's type to use field::set_type instead.
3334
3d967001
SM
33352020-06-08 Simon Marchi <simon.marchi@efficios.com>
3336
3337 * gdbtypes.h (TYPE_INDEX_TYPE): Remove. Change all call sites
3338 to use type::index_type instead.
3339
262abc0d
SM
33402020-06-08 Simon Marchi <simon.marchi@efficios.com>
3341
3342 * gdbtypes.h (struct type) <index_type, set_index_type>: New
3343 methods.
3344 (TYPE_INDEX_TYPE): Use type::index_type.
3345 * gdbtypes.c (create_array_type_with_stride): Likewise.
3346
82836c92
TT
33472020-06-07 Tom Tromey <tom@tromey.com>
3348
3349 * valprint.c (generic_val_print_float): Remove "embedded_offset"
3350 parameter.
3351 (generic_value_print): Update.
3352
940dace9
AB
33532020-06-05 Andrew Burgess <andrew.burgess@embecosm.com>
3354
3355 Revert commit 982a38f60b0.
3356 * python/py-tui.c (gdbpy_tui_set_title): Restore use of get.
3357
982a38f6
AB
33582020-06-05 Andrew Burgess <andrew.burgess@embecosm.com>
3359
3360 * python/py-tui.c (gdbpy_tui_set_title): Use release, not get, to
3361 avoid use after free.
3362
82f06518
TV
33632020-06-05 Tom de Vries <tdevries@suse.de>
3364
3365 * NEWS: Fix typos.
3366
f8c41851
SM
33672020-06-04 Simon Marchi <simon.marchi@efficios.com>
3368
3369 * dwarf2/read.c (dwarf2_read_gdb_index): Save partial_symtabs in
3370 the per_bfd object.
3371 (dwarf2_read_debug_names): Likewise.
3372 (dwarf2_initialize_objfile): Use partial_symtabs from per_bfd
3373 object when re-using a per_bfd object with an index.
3374
f9b5d5ea
TV
33752020-06-03 Tom de Vries <tdevries@suse.de>
3376
3377 PR symtab/26046
3378 * dwarf2/read.c (scan_partial_symbols): Recurse into DW_TAG_subprogram
3379 children for C++.
3380 (load_partial_dies): Don't skip DW_TAG_inlined_subroutine child of
3381 DW_TAG_subprogram.
3382
f6eee2d0
AB
33832020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
3384
3385 * ada-lang.c (ada_language_data): Delete skip_trampoline
3386 initializer.
3387 * c-lang.c (c_language_data): Likewise.
3388 (cplus_language_data): Likewise.
3389 (cplus_language::skip_trampoline): New member function.
3390 (asm_language_data): Delete skip_trampoline initializer.
3391 (minimal_language_data): Likewise.
3392 * d-lang.c (d_language_data): Likewise.
3393 * f-lang.c (f_language_data): Likewise.
3394 * go-lang.c (go_language_data): Likewise.
3395 * language.c (unk_lang_trampoline): Delete function.
3396 (skip_language_trampoline): Update.
3397 (unknown_language_data): Delete skip_trampoline initializer.
3398 (auto_language_data): Likewise.
3399 * language.h (language_data): Delete skip_trampoline field.
3400 (language_defn::skip_trampoline): New function.
3401 * m2-lang.c (m2_language_data): Delete skip_trampoline
3402 initializer.
3403 * objc-lang.c (objc_skip_trampoline): Delete function, move
3404 implementation to objc_language::skip_trampoline.
3405 (objc_language_data): Delete skip_trampoline initializer.
3406 (objc_language::skip_trampoline): New member function with
3407 implementation from objc_skip_trampoline.
3408 * opencl-lang.c (opencl_language_data): Delete skip_trampoline
3409 initializer.
3410 * p-lang.c (pascal_language_data): Likewise.
3411 * rust-lang.c (rust_language_data): Likewise.
3412
0a50df5d
AB
34132020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
3414
3415 * ada-lang.c (ada_language_data): Delete la_demangle initializer.
3416 (ada_language::demangle): New member function.
3417 * c-lang.c (c_language_data): Delete la_demangle initializer.
3418 (cplus_language_data): Delete la_demangle initializer.
3419 (cplus_language::demangle): New member function.
3420 (asm_language_data): Delete la_demangle initializer.
3421 (minimal_language_data): Delete la_demangle initializer.
3422 * d-lang.c (d_language_data): Delete la_demangle initializer.
3423 (d_language::demangle): New member function.
3424 * f-lang.c (f_language_data): Delete la_demangle initializer.
3425 (f_language::demangle): New member function.
3426 * go-lang.c (go_language_data): Delete la_demangle initializer.
3427 (go_language::demangle): New member function.
3428 * language.c (language_demangle): Update.
3429 (unk_lang_demangle): Delete.
3430 (unknown_language_data): Delete la_demangle initializer.
3431 (unknown_language::demangle): New member function.
3432 (auto_language_data): Delete la_demangle initializer.
3433 (auto_language::demangle): New member function.
3434 * language.h (language_data): Delete la_demangle field.
3435 (language_defn::demangle): New function.
3436 * m2-lang.c (m2_language_data): Delete la_demangle initializer.
3437 * objc-lang.c (objc_language_data): Delete la_demangle
3438 initializer.
3439 (objc_language::demangle): New member function.
3440 * opencl-lang.c (opencl_language_data): Delete la_demangle
3441 initializer.
3442 * p-lang.c (pascal_language_data): Likewise.
3443 * rust-lang.c (rust_language_data): Likewise.
3444 (rust_language::demangle): New member function.
3445
fbfb0a46
AB
34462020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
3447
3448 * ada-lang.c (ada_language_data): Delete la_print_type
3449 initializer.
3450 (ada_language::print_type): New member function.
3451 * c-lang.c (c_language_data): Delete la_print_type initializer.
3452 (c_language::print_type): New member function.
3453 (cplus_language_data): Delete la_print_type initializer.
3454 (cplus_language::print_type): New member function.
3455 (asm_language_data): Delete la_print_type initializer.
3456 (asm_language::print_type): New member function.
3457 (minimal_language_data): Delete la_print_type initializer.
3458 (minimal_language::print_type): New member function.
3459 * d-lang.c (d_language_data): Delete la_print_type initializer.
3460 (d_language::print_type): New member function.
3461 * f-lang.c (f_language_data): Delete la_print_type initializer.
3462 (f_language::print_type): New member function.
3463 * go-lang.c (go_language_data): Delete la_print_type initializer.
3464 (go_language::print_type): New member function.
3465 * language.c (unk_lang_print_type): Delete.
3466 (unknown_language_data): Delete la_print_type initializer.
3467 (unknown_language::print_type): New member function.
3468 (auto_language_data): Delete la_print_type initializer.
3469 (auto_language::print_type): New member function.
3470 * language.h (language_data): Delete la_print_type field.
3471 (language_defn::print_type): New function.
3472 (LA_PRINT_TYPE): Update.
3473 * m2-lang.c (m2_language_data): Delete la_print_type initializer.
3474 (m2_language::print_type): New member function.
3475 * objc-lang.c (objc_language_data): Delete la_print_type
3476 initializer.
3477 (objc_language::print_type): New member function.
3478 * opencl-lang.c (opencl_print_type): Delete, implementation moved
3479 to opencl_language::print_type.
3480 (opencl_language_data): Delete la_print_type initializer.
3481 (opencl_language::print_type): New member function, implementation
3482 from opencl_print_type.
3483 * p-lang.c (pascal_language_data): Delete la_print_type
3484 initializer.
3485 (pascal_language::print_type): New member function.
3486 * rust-lang.c (rust_print_type): Delete, implementation moved to
3487 rust_language::print_type.
3488 (rust_language_data): Delete la_print_type initializer.
3489 (rust_language::print_type): New member function, implementation
3490 from rust_print_type.
3491
6f827019
AB
34922020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
3493
3494 * ada-lang.c (ada_sniff_from_mangled_name): Delete function,
3495 implementation moves to...
3496 (ada_language::sniff_from_mangled_name): ...here. Update return
3497 type.
3498 (ada_language_data): Delete la_sniff_from_mangled_name
3499 initializer.
3500 * c-lang.c (c_language_data): Likewise.
3501 (cplus_language_data): Likewise.
3502 (cplus_language::sniff_from_mangled_name): New member function,
3503 implementation taken from gdb_sniff_from_mangled_name.
3504 (asm_language_data): Delete la_sniff_from_mangled_name
3505 initializer.
3506 (minimal_language_data): Likewise.
3507 * cp-support.c (gdb_sniff_from_mangled_name): Delete,
3508 implementation moves to cplus_language::sniff_from_mangled_name.
3509 * cp-support.h (gdb_sniff_from_mangled_name): Delete declaration.
3510 * d-lang.c (d_sniff_from_mangled_name): Delete, implementation
3511 moves to...
3512 (d_language::sniff_from_mangled_name): ...here.
3513 (d_language_data): Delete la_sniff_from_mangled_name initializer.
3514 * f-lang.c (f_language_data): Likewise.
3515 * go-lang.c (go_sniff_from_mangled_name): Delete, implementation
3516 moves to...
3517 (go_language::sniff_from_mangled_name): ...here.
3518 (go_language_data): Delete la_sniff_from_mangled_name initializer.
3519 * language.c (language_sniff_from_mangled_name): Delete.
3520 (unknown_language_data): Delete la_sniff_from_mangled_name
3521 initializer.
3522 (auto_language_data): Likewise.
3523 * language.h (language_data): Delete la_sniff_from_mangled_name
3524 field.
3525 (language_defn::sniff_from_mangled_name): New function.
3526 (language_sniff_from_mangled_name): Delete declaration.
3527 * m2-lang.c (m2_language_data): Delete la_sniff_from_mangled_name
3528 field.
3529 * objc-lang.c (objc_sniff_from_mangled_name): Delete,
3530 implementation moves to...
3531 (objc_language::sniff_from_mangled_name): ...here.
3532 (objc_language_data): Delete la_sniff_from_mangled_name initializer.
3533 * opencl-lang.c (opencl_language_data): Likewise.
3534 * p-lang.c (pascal_language_data): Likewise.
3535 * rust-lang.c (rust_sniff_from_mangled_name): Delete,
3536 implementation moves to...
3537 (rust_language::sniff_from_mangled_name): ...here.
3538 (rust_language_data): Delete la_sniff_from_mangled_name
3539 initializer.
3540 * symtab.c (symbol_find_demangled_name): Call
3541 sniff_from_mangled_name member function.
3542
fb8006fd
AB
35432020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
3544
3545 * ada-lang.c (ada_language_data): Delete la_search_name_hash
3546 initializer.
3547 * c-lang.c (c_language_data): Likewise.
3548 (cplus_language_data): Likewise.
3549 (cplus_language::search_name_hash): New member function.
3550 (asm_language_data): Delete la_search_name_hash initializer.
3551 (minimal_language_data): Likewise.
3552 * d-lang.c (d_language_data): Likewise.
3553 * dictionary.c (default_search_name_hash): Rename to...
3554 (language_defn::search_name_hash): ...this.
3555 * f-lang.c (f_language_data): Likewise.
3556 (f_language::search_name_hash): New member function.
3557 * go-lang.c (go_language_data): Delete la_search_name_hash
3558 initializer.
3559 * language.c (unknown_language_data): Likewise.
3560 (auto_language_data): Likewise.
3561 * language.h (struct language_data): Delete la_search_name_hash
3562 field.
3563 (language_defn::search_name_hash): Declare new member function.
3564 (default_search_name_hash): Delete declaration.
3565 * m2-lang.c (m2_language_data): Delete la_search_name_hash
3566 initializer.
3567 * objc-lang.c (objc_language_data): Likewise.
3568 * opencl-lang.c (opencl_language_data): Likewise.
3569 * p-lang.c (pascal_language_data): Likewise.
3570 * rust-lang.c (rust_language_data): Likewise.
3571 * symtab.c (search_name_hash): Update call.
3572
8e25bafe
AB
35732020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
3574
3575 * ada-lang.c (ada_language_data): Delete la_get_compile_instance
3576 initializer.
3577 * c-lang.c (class compile_instance): Declare.
3578 (c_language_data): Delete la_get_compile_instance initializer.
3579 (c_language::get_compile_instance): New member function.
3580 (cplus_language_data): Delete la_get_compile_instance initializer.
3581 (cplus_language::get_compile_instance): New member function.
3582 (asm_language_data): Delete la_get_compile_instance initializer.
3583 (minimal_language_data): Likewise.
3584 * c-lang.h (c_get_compile_context): Update comment.
3585 (cplus_get_compile_context): Update comment.
3586 * compile/compile.c (compile_to_object): Update calls, don't rely
3587 on function pointer being NULL.
3588 * d-lang.c (d_language_data): Delete la_get_compile_instance
3589 initializer.
3590 * f-lang.c (f_language_data): Likewise.
3591 * go-lang.c (go_language_data): Likewise.
3592 * language.c (unknown_language_data): Likewise.
3593 (auto_language_data): Likewise.
3594 * language.h (language_data): Delete la_get_compile_instance field.
3595 (language_defn::get_compile_instance): New member function.
3596 * m2-lang.c (m2_language_data): Delete la_get_compile_instance
3597 initializer.
3598 * objc-lang.c (objc_language_data): Likewise.
3599 * opencl-lang.c (opencl_language_data): Likewise.
3600 * p-lang.c (pascal_language_data): Likewise.
3601 * rust-lang.c (rust_language_data): Likewise.
3602
4009ee92
AB
36032020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
3604
3605 * ada-lang.c (ada_add_all_symbols): Update comment.
3606 (ada_iterate_over_symbols): Delete, move implementation to...
3607 (ada_language::iterate_over_symbols): ...here, a new member
3608 function, rewrite to use range based for loop.
3609 (ada_language_data): Delete la_iterate_over_symbols initializer.
3610 * c-lang.c (c_language_data): Likewise.
3611 (cplus_language_data): Likewise.
3612 (asm_language_data): Likewise.
3613 (minimal_language_data): Likewise.
3614 * d-lang.c (d_language_data): Likewise.
3615 * f-lang.c (f_language_data): Likewise.
3616 * go-lang.c (go_language_data): Likewise.
3617 * language.c (unknown_language_data): Likewise.
3618 (auto_language_data): Likewise.
3619 * language.h (language_data): Delete la_iterate_over_symbols field.
3620 (language_defn::iterate_over_symbols): New member function.
3621 (LA_ITERATE_OVER_SYMBOLS): Update.
3622 * linespec.c (iterate_over_all_matching_symtabs): Update.
3623 * m2-lang.c (m2_language_data): Delete la_iterate_over_symbols
3624 initializer.
3625 * objc-lang.c (objc_language_data): Likewise.
3626 * opencl-lang.c (opencl_language_data): Likewise.
3627 * p-lang.c (pascal_language_data): Likewise.
3628 * rust-lang.c (rust_language_data): Likewise.
3629
54f4ca46
AB
36302020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
3631
3632 * ada-lang.c (ada_language_data): Delete
3633 la_lookup_transparent_type initializer.
3634 * c-lang.c (c_language_data): Likewise.
3635 (cplus_language_data): Likewise.
3636 (cplus_language::lookup_transparent_type): New member function.
3637 (asm_language_data): Delete la_lookup_transparent_type
3638 initializer.
3639 (minimal_language_data): Likewise.
3640 * d-lang.c (d_language_data): Likewise.
3641 * f-lang.c (f_language_data): Likewise.
3642 * go-lang.c (go_language_data): Likewise.
3643 * language.c (unknown_language_data): Likewise.
3644 (auto_language_data): Likewise.
3645 * language.h (struct language_data): Delete
3646 la_lookup_transparent_type field.
3647 (language_defn::lookup_transparent_type): New member function.
3648 * m2-lang.c (m2_language_data): Delete la_lookup_transparent_type
3649 initializer.
3650 * objc-lang.c (objc_language_data): Likewise.
3651 * opencl-lang.c (opencl_language_data): Likewise.
3652 * p-lang.c (pascal_language_data): Likewise.
3653 * rust-lang.c (rust_language_data): Likewise.
3654 * symtab.c (symbol_matches_domain): Update call.
3655
1fb314aa
AB
36562020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
3657
3658 * ada-lang.c (ada_language_arch_info): Delete function, move
3659 implementation to...
3660 (ada_language::language_arch_info): ...here, a new member
3661 function.
3662 (ada_language_data): Delete la_language_arch_info.
3663 * c-lang.c (c_language_data): Likewise.
3664 (c_language::language_arch_info): New member function.
3665 (cplus_language_arch_info): Delete function, move
3666 implementation to...
3667 (cplus_language::language_arch_info): ...here, a new member
3668 function.
3669 (cplus_language_data): Delete la_language_arch_info.
3670 (asm_language_data): Likewise.
3671 (asm_language::language_arch_info): New member function.
3672 (minimal_language_data): Delete la_language_arch_info.
3673 (minimal_language::language_arch_info): New member function.
3674 * d-lang.c (d_language_arch_info): Delete function, move
3675 implementation to...
3676 (d_language::language_arch_info): ...here, a new member
3677 function.
3678 (d_language_data): Delete la_language_arch_info.
3679 * f-lang.c (f_language_arch_info): Delete function, move
3680 implementation to...
3681 (f_language::language_arch_info): ...here, a new member
3682 function.
3683 (f_language_data): Delete la_language_arch_info.
3684 * go-lang.c (go_language_arch_info): Delete function, move
3685 implementation to...
3686 (go_language::language_arch_info): ...here, a new member
3687 function.
3688 (go_language_data): Delete la_language_arch_info.
3689 * language.c (unknown_language_data): Likewise.
3690 (unknown_language::language_arch_info): New member function.
3691 (auto_language_data): Delete la_language_arch_info.
3692 (auto_language::language_arch_info): New member function.
3693 (language_gdbarch_post_init): Update call to
3694 la_language_arch_info.
3695 * language.h (language_data): Delete la_language_arch_info
3696 function pointer.
3697 (language_defn::language_arch_info): New function.
3698 * m2-lang.c (m2_language_arch_info): Delete function, move
3699 implementation to...
3700 (m2_language::language_arch_info): ...here, a new member
3701 function.
3702 (m2_language_data): Delete la_language_arch_info.
3703 * objc-lang.c (objc_language_arch_info): Delete function, move
3704 implementation to...
3705 (objc_language::language_arch_info): ...here, a new member
3706 function.
3707 (objc_language_data): Delete la_language_arch_info.
3708 * opencl-lang.c (opencl_language_arch_info): Delete function, move
3709 implementation to...
3710 (opencl_language::language_arch_info): ...here, a new member
3711 function.
3712 (opencl_language_data): Delete la_language_arch_info.
3713 * p-lang.c (pascal_language_arch_info): Delete function, move
3714 implementation to...
3715 (pascal_language::language_arch_info): ...here, a new member
3716 function.
3717 (pascal_language_data): Delete la_language_arch_info.
3718 * rust-lang.c (rust_language_arch_info): Delete function, move
3719 implementation to...
3720 (rust_language::language_arch_info): ...here, a new member
3721 function.
3722 (rust_language_data): Delete la_language_arch_info.
3723
48448202
AB
37242020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
3725
3726 * ada-lang.c (ada_language_data): Delete la_pass_by_reference
3727 initializer.
3728 * c-lang.c (c_language_data): Likewise.
3729 (cplus_language_data): Likewise.
3730 (cplus_language::pass_by_reference_info): New method.
3731 (asm_language_data): Delete la_pass_by_reference initializer.
3732 (minimal_language_data): Likewise.
3733 * cp-abi.c (cp_pass_by_reference): Remove use of
3734 default_pass_by_reference.
3735 * d-lang.c (d_language_data): Likewise.
3736 * f-lang.c (f_language_data): Likewise.
3737 * gnu-v3-abi.c (gnuv3_pass_by_reference): Remove use of
3738 default_pass_by_reference.
3739 * go-lang.c (go_language_data): Likewise.
3740 * language.c (language_pass_by_reference): Update.
3741 (default_pass_by_reference): Delete.
3742 (unknown_language_data): Delete la_pass_by_reference
3743 initializer.
3744 (auto_language_data): Likewise.
3745 * language.h (struct language_data): Delete la_pass_by_reference
3746 field.
3747 (language_defn::pass_by_reference_info): New member function.
3748 (default_pass_by_reference): Delete declaration.
3749 * m2-lang.c (m2_language_data): Delete la_pass_by_reference
3750 initializer.
3751 * objc-lang.c (objc_language_data): Likewise.
3752 * opencl-lang.c (opencl_language_data): Likewise.
3753 * p-lang.c (pascal_language_data): Likewise.
3754 * rust-lang.c (rust_language_data): Likewise.
3755
15e5fd35
AB
37562020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
3757
3758 * ada-lang.c (ada_read_var_value): Delete function, move
3759 implementation to...
3760 (ada_language::read_var_value): ...here.
3761 (ada_language_data): Delete la_read_var_value initializer.
3762 * c-lang.c (c_language_data): Likewise.
3763 (cplus_language_data): Likewise.
3764 (minimal_language_data): Likewise.
3765 * d-lang.c (d_language_data): Likewise.
3766 * f-lang.c (f_language_data): Likewise.
3767 * findvar.c (default_read_var_value): Rename to...
3768 (language_defn::read_var_value): ...this.
3769 * findvar.c (read_var_value): Update header comment, and change to
3770 call member function instead of function pointer.
3771 * go-lang.c (go_language_data): Likewise.
3772 * language.c (unknown_language_data): Delete la_read_var_value
3773 initializer.
3774 (auto_language_data): Likewise.
3775 * language.h (struct language_data): Delete la_read_var_value
3776 field.
3777 (language_defn::read_var_value): New member function.
3778 (default_read_var_value): Delete declaration.
3779 * m2-lang.c (m2_language_data): Delete la_read_var_value
3780 initializer.
3781 * objc-lang.c (objc_language_data): Likewise.
3782 * opencl-lang.c (opencl_language_data): Likewise.
3783 * p-lang.c (pascal_language_data): Likewise.
3784 * rust-lang.c (rust_language_data): Likewise.
3785 * value.h (default_read_var_value): Delete declaration.
3786
5bd40f2a
AB
37872020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
3788
3789 * ada-lang.c (ada_print_array_index): Delete function, move
3790 implementation to...
3791 (ada_language::print_array_index): ...here.
3792 (ada_language_data): Delete la_print_array_index initializer.
3793 * c-lang.c (c_language_data): Likewise.
3794 (cplus_language_data): Likewise.
3795 (minimal_language_data): Likewise.
3796 * d-lang.c (d_language_data): Likewise.
3797 * f-lang.c (f_language_data): Likewise.
3798 * go-lang.c (go_language_data): Likewise.
3799 * language.c (default_print_array_index): Delete function, move
3800 implementation to...
3801 (language_defn::print_array_index): ...here.
3802 (unknown_language_data): Delete la_print_array_index initializer.
3803 (auto_language_data): Likewise.
3804 * language.h (struct language_data): Delete la_print_array_index
3805 field.
3806 (language_defn::print_array_index): New member function.
3807 (LA_PRINT_ARRAY_INDEX): Update.
3808 (default_print_array_index): Delete declaration.
3809 * m2-lang.c (m2_language_data): Delete la_print_array_index
3810 initializer.
3811 * objc-lang.c (objc_language_data): Likewise.
3812 * opencl-lang.c (opencl_language_data): Likewise.
3813 * p-lang.c (pascal_language_data): Likewise.
3814 * rust-lang.c (rust_language_data): Likewise.
3815
0874fd07
AB
38162020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
3817
3818 * gdb/ada-lang.c (ada_language_defn): Convert to...
3819 (ada_language_data): ...this.
3820 (class ada_language): New class.
3821 (ada_language_defn): New static global.
3822 * gdb/c-lang.c (c_language_defn): Convert to...
3823 (c_language_data): ...this.
3824 (class c_language): New class.
3825 (c_language_defn): New static global.
3826 (cplus_language_defn): Convert to...
3827 (cplus_language_data): ...this.
3828 (class cplus_language): New class.
3829 (cplus_language_defn): New static global.
3830 (asm_language_defn): Convert to...
3831 (asm_language_data): ...this.
3832 (class asm_language): New class.
3833 (asm_language_defn): New static global.
3834 (minimal_language_defn): Convert to...
3835 (minimal_language_data): ...this.
3836 (class minimal_language): New class.
3837 (minimal_language_defn): New static global.
3838 * gdb/d-lang.c (d_language_defn): Convert to...
3839 (d_language_data): ...this.
3840 (class d_language): New class.
3841 (d_language_defn): New static global.
3842 * gdb/f-lang.c (f_language_defn): Convert to...
3843 (f_language_data): ...this.
3844 (class f_language): New class.
3845 (f_language_defn): New static global.
3846 * gdb/go-lang.c (go_language_defn): Convert to...
3847 (go_language_data): ...this.
3848 (class go_language): New class.
3849 (go_language_defn): New static global.
3850 * gdb/language.c (unknown_language_defn): Remove declaration.
3851 (current_language): Initialize to nullptr, real initialization is
3852 moved to _initialize_language.
3853 (languages): Delete global.
3854 (language_defn::languages): Define.
3855 (set_language_command): Use language_defn::languages.
3856 (set_language): Likewise.
3857 (range_error): Likewise.
3858 (language_enum): Likewise.
3859 (language_def): Likewise.
3860 (add_set_language_command): Use language_def::languages for the
3861 language list, and language_def to lookup language pointers.
3862 (skip_language_trampoline): Use language_defn::languages.
3863 (unknown_language_defn): Convert to...
3864 (unknown_language_data): ...this.
3865 (class unknown_language): New class.
3866 (unknown_language_defn): New static global.
3867 (auto_language_defn): Convert to...
3868 (auto_language_data): ...this.
3869 (class auto_language): New class.
3870 (auto_language_defn): New static global.
3871 (language_gdbarch_post_init): Use language_defn::languages.
3872 (_initialize_language): Initialize current_language.
3873 * gdb/language.h (struct language_defn): Rename to...
3874 (struct language_data): ...this.
3875 (struct language_defn): New.
3876 (auto_language_defn): Delete.
3877 (unknown_language_defn): Delete.
3878 (minimal_language_defn): Delete.
3879 (ada_language_defn): Delete.
3880 (asm_language_defn): Delete.
3881 (c_language_defn): Delete.
3882 (cplus_language_defn): Delete.
3883 (d_language_defn): Delete.
3884 (f_language_defn): Delete.
3885 (go_language_defn): Delete.
3886 (m2_language_defn): Delete.
3887 (objc_language_defn): Delete.
3888 (opencl_language_defn): Delete.
3889 (pascal_language_defn): Delete.
3890 (rust_language_defn): Delete.
3891 * gdb/m2-lang.c (m2_language_defn): Convert to...
3892 (m2_language_data): ...this.
3893 (class m2_language): New class.
3894 (m2_language_defn): New static global.
3895 * gdb/objc-lang.c (objc_language_defn): Convert to...
3896 (objc_language_data): ...this.
3897 (class objc_language): New class.
3898 (objc_language_defn): New static global.
3899 * gdb/opencl-lang.c (opencl_language_defn): Convert to...
3900 (opencl_language_data): ...this.
3901 (class opencl_language): New class.
3902 (opencl_language_defn): New static global.
3903 * gdb/p-lang.c (pascal_language_defn): Convert to...
3904 (pascal_language_data): ...this.
3905 (class pascal_language): New class.
3906 (pascal_language_defn): New static global.
3907 * gdb/rust-exp.y (rust_lex_tests): Use language_def to find
3908 language pointer, update comment format.
3909 * gdb/rust-lang.c (rust_language_defn): Convert to...
3910 (rust_language_data): ...this.
3911 (class rust_language): New class.
3912 (rust_language_defn): New static global.
3913
1313c56e
AB
39142020-06-01 Andrew Burgess <andrew.burgess@embecosm.com>
3915
3916 * dwarf2/read.c (class lnp_state_machine) <m_last_address>: New
3917 member variable.
3918 <m_stmt_at_address>: New member variable.
3919 (lnp_state_machine::record_line): Don't record some lines, update
3920 tracking of is_stmt at the same address.
3921 (lnp_state_machine::lnp_state_machine): Initialise new member
3922 variables.
3923
b7ed9f3d
ST
39242020-06-01 Samuel Thibault <samuel.thibault@ens-lyon.org>
3925
3926 * config/i386/i386gnu.mn [%_S.o %_U.o] (COMPILE.post): Add
3927 "-include gnu-nat-mig.h".
3928 * gnu-nat-mig.h: New file.
3929 * gnu-nat.c: Include "gnu-nat-mig.h".
3930 (exc_server, msg_reply_server, notify_server,
3931 process_reply_server): Remove declarations.
3932
14a8ad62
ST
39332020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
3934
3935 * gnu-nat.h (inf_validate_procs, inf_suspend, inf_set_traced,
3936 steal_exc_port, proc_get_state, inf_clear_wait, inf_cleanup,
3937 inf_startup, inf_update_suspends, inf_set_pid, inf_steal_exc_ports,
3938 inf_validate_procinfo, inf_validate_task_sc, inf_restore_exc_ports,
3939 inf_set_threads_resume_sc, inf_set_threads_resume_sc_for_signal_thread,
3940 inf_resume, inf_set_step_thread, inf_detach, inf_attach, inf_signal,
3941 inf_continue, make_proc, proc_abort, _proc_free, proc_update_sc,
3942 proc_get_exception_port, proc_set_exception_port, _proc_get_exc_port,
3943 proc_steal_exc_port, proc_restore_exc_port, proc_trace): Move functions
3944 to gnu_nat_target class.
3945 * gnu-nat.c: Likewise.
3946 (inf_update_procs, S_proc_wait_reply, set_task_pause_cmd,
3947 set_task_exc_port_cmd, set_signals_cmd, set_thread_pause_cmd,
3948 set_thread_exc_port_cmd): Call inf_validate_procs through gnu_target
3949 object.
3950 (gnu_nat_target::create_inferior, gnu_nat_target::detach): Pass `this'
3951 instead of `gnu_target'.
3952
0af5e106
ST
39532020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
3954
3955 * i386-gnu-tdep.c: Include "gdbcore.h"
3956 (gnu_sigtramp_code, i386_gnu_sc_reg_offset): New arrays.
3957 (GNU_SIGTRAMP_LEN, GNU_SIGTRAMP_TAIL,
3958 I386_GNU_SIGCONTEXT_THREAD_STATE_OFFSET): New macros
3959 (i386_gnu_sigtramp_start, i386_gnu_sigtramp_p,
3960 i386_gnu_sigcontext_addr): New functions
3961 (i386gnu_init_abi): Register i386_gnu_sigtramp_p,
3962 i386_gnu_sigcontext_addr, and i386_gnu_sc_reg_offset in the gdbarch
3963 tdep.
3964
078f2fc9
ST
39652020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
3966
3967 * gnu-nat.c (gnu_nat_target::create_inferior): Move push_target call
3968 before fork_inferior call. Avoid calling it if target_is_pushed returns
3969 true.
3970
53dff92c
ST
39712020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
3972
3973 * gnu-nat.h (gnu_target): New variable declaration.
3974 * i386-gnu-nat.c (_initialize_i386gnu_nat): Initialize
3975 gnu_target.
3976 * gnu-nat.c (gnu_target): New variable.
3977 (inf_validate_procs): Pass gnu_target to thread_change_ptid,
3978 add_thread_silent, and add_thread calls.
3979 (gnu_nat_target::create_inferior): Pass gnu_target to
3980 add_thread_silent, thread_change_ptid call.
3981 (gnu_nat_target::detach): Pass gnu_target to detach_inferior
3982 call.
3983
5a8b8627
ST
39842020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
3985
3986 * gnu-nat.c (gnu_xfer_auxv): Remove unused `res' variable.
3987 (gnu_nat_target::find_memory_regions): Remove unused
3988 `old_address' variable.
3989
366f550a
ST
39902020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
3991
3992 * gnu-nat.c: Include "gdbarch.h".
3993
f14871bf
ST
39942020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
3995
3996 * reply_mig_hack.awk (Error return): Cast function through
3997 void *, to bypass compiler function call check.
3998
c6887cfb
ST
39992020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
4000
4001 * config/i386/i386gnu.mn (%_reply_S.c): Add dependency on
4002 $(srcdir)/reply_mig_hack.awk.
4003
6930bffe
ST
40042020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
4005
4006 * gnu-nat.h (gnu_debug_flag): Set type to bool.
4007
112c22ed
JG
40082020-05-30 Jonny Grant <jg@jguk.org>
4009
4010 * configure.ac (ACX_BUGURL): change bug URL to https.
4011
f68f85b5
PA
40122020-05-30 Pedro Alves <palves@redhat.com>
4013
4014 * cp-support.c (replace_typedefs_template): New.
4015 (replace_typedefs_qualified_name): Handle
4016 DEMANGLE_COMPONENT_TEMPLATE.
4017
976ca316
SM
40182020-05-29 Simon Marchi <simon.marchi@efficios.com>
4019
4020 * dwarf2/comp-unit.c, dwarf2/comp-unit.h, dwarf2/index-cache.c,
4021 dwarf2/index-cache.h, dwarf2/index-write.c,
4022 dwarf2/index-write.h, dwarf2/line-header.c,
4023 dwarf2/line-header.h, dwarf2/macro.c, dwarf2/macro.h,
4024 dwarf2/read.c, dwarf2/read.h: Rename struct dwarf2_per_objfile
4025 variables and fields from `dwarf2_per_objfile` to just
4026 `per_objfile` throughout.
4027
989ade05
SM
40282020-05-28 Simon Marchi <simon.marchi@polymtl.ca>
4029
4030 * dwarf2/loc.c (class dwarf_evaluate_loc_desc)
4031 <push_dwarf_reg_entry_value>: Add comment.
4032
c47bae85
KB
40332020-05-28 Kevin Buettner <kevinb@redhat.com>
4034 Keith Seitz <keiths@redhat.com>
4035
4036 * python/python.c (do_start_initialization): Call PyEval_SaveThread
4037 instead of PyEval_ReleaseLock.
4038 (class gdbpy_gil): Move to earlier in file.
4039 (finalize_python): Set gdb_python_initialized.
4040 (gdbpy_check_quit_flag): Acquire GIL via gdbpy_gil. Return early
4041 when not initialized.
4042
44486dcf
SM
40432020-05-28 Simon Marchi <simon.marchi@efficios.com>
4044
4045 * dwarf2/loc.c (class dwarf_evaluate_loc_desc)
4046 <push_dwarf_reg_entry_value>: Remove assert. Override
4047 per_objfile with caller_per_objfile.
4048
f030440d
TV
40492020-05-28 Tom de Vries <tdevries@suse.de>
4050
4051 * dwarf2/read.c (dw2_symtab_iter_next, dw2_expand_marked_cus): Limit
4052 PR gold/15646 workaround to symbol kind "type".
4053
f0fbb768
TT
40542020-05-27 Tom Tromey <tromey@adacore.com>
4055
4056 * dwarf2/read.c (load_partial_dies): Use add_partial_symbol.
4057
af0b2a3e
TT
40582020-05-27 Tom Tromey <tromey@adacore.com>
4059
4060 * dwarf2/abbrev.h (struct abbrev_table) <lookup_abbrev>: Inline.
4061 Use htab_find_with_hash.
4062 <add_abbrev>: Remove "abbrev_number" parameter.
4063 * dwarf2/abbrev.c (abbrev_table::add_abbrev): Remove
4064 "abbrev_number" parameter. Use htab_find_slot_with_hash.
4065 (hash_abbrev): Add comment.
4066 (abbrev_table::lookup_abbrev): Move to header file.
4067 (abbrev_table::read): Update.
4068
7d00ffec
TT
40692020-05-27 Tom Tromey <tromey@adacore.com>
4070
4071 * dwarf2/read.c (struct partial_die_info) <name>: Declare new
4072 method.
4073 <canonical_name>: New member.
4074 <raw_name>: Rename from "name".
4075 (partial_die_info): Initialize canonical_name.
4076 (scan_partial_symbols): Check raw_name.
4077 (partial_die_parent_scope, partial_die_full_name)
4078 (add_partial_symbol, add_partial_subprogram)
4079 (add_partial_enumeration, load_partial_dies): Use "name" method.
4080 (partial_die_info::name): New method.
4081 (partial_die_info::read, guess_partial_die_structure_name)
4082 (partial_die_info::fixup): Update.
4083
697bba18
TT
40842020-05-27 Tom Tromey <tromey@adacore.com>
4085
4086 * dwarf2/attribute.h (struct attribute) <form_is_ref>: Inline.
4087 <get_ref_die_offset>: Inline.
4088 <get_ref_die_offset_complaint>: New method.
4089 * dwarf2/attribute.c (attribute::form_is_ref): Move to header.
4090 (attribute::get_ref_die_offset_complaint): Rename from
4091 get_ref_die_offset. Just issue complaint.
4092
c17ace43
HD
40932020-05-27 Hannes Domani <ssbssa@yahoo.de>
4094
4095 * cli/cli-cmds.c (shell_escape): Move exit_status_set_internal_vars.
4096
96445f0b
HD
40972020-05-27 Hannes Domani <ssbssa@yahoo.de>
4098
4099 * exec.c (exec_file_attach): Use errno value of first openp failure.
4100
ac637ec3
HD
41012020-05-27 Hannes Domani <ssbssa@yahoo.de>
4102
4103 * nat/windows-nat.c (windows_thread_info::~windows_thread_info):
4104 Don't close thread handle.
4105
17ee85fc
TT
41062020-05-27 Tom Tromey <tom@tromey.com>
4107 Simon Marchi <simon.marchi@efficios.com>
4108
4109 * objfiles.h (struct objfile) <partial_symtabs>: Now a
4110 shared_ptr.
4111 * dwarf2/read.h (struct dwarf2_per_objfile) <partial_symtabs>: New
4112 member.
4113 * dwarf2/read.c (dwarf2_per_bfd_bfd_data_key,
4114 dwarf2_per_bfd_objfile_data_key>: New globals.
4115 (dwarf2_has_info): Use shared dwarf2_per_bfd if possible.
4116 (dwarf2_get_section_info): Use get_dwarf2_per_objfile.
4117 (dwarf2_initialize_objfile): Consider cases where per_bfd can be
4118 shared.
4119 (dwarf2_build_psymtabs): Set objfile::partial_symtabs and
4120 short-circuit when sharing.
4121 (dwarf2_build_psymtabs): Set dwarf2_per_objfile::partial_symtabs.
4122 (dwarf2_psymtab::expand_psymtab): Use free_cached_comp_units.
4123
39b16f87
SM
41242020-05-27 Simon Marchi <simon.marchi@efficios.com>
4125
4126 * dwarf2/read.h (struct dwarf2_per_bfd) <line_header_hash>: Move
4127 to...
4128 (struct dwarf2_per_objfile) <line_header_hash>: ... here.
4129 * dwarf2/read.c (handle_DW_AT_stmt_list): Update.
4130
fcf23d5b
SM
41312020-05-27 Simon Marchi <simon.marchi@efficios.com>
4132
4133 * dwarf2/read.c (struct mapped_index_base) <symbol_name_at,
4134 build_name_components, find_name_components_bounds>:
4135 Add per_objfile parameter.
4136 (struct mapped_index) <symbol_name_at>: Likewise.
4137 (struct mapped_debug_names): Remove constructor.
4138 <dwarf2_per_objfile>: Remove field.
4139 <namei_to_name, symbol_name_at>: Add per_objfile parameter.
4140 (mapped_index_base::find_name_components_bounds,
4141 mapped_index_base::build_name_components,
4142 dw2_expand_symtabs_matching_symbol): Likewise.
4143 (class mock_mapped_index) <symbol_name_at>: Likewise.
4144 (check_match): Likewise.
4145 (check_find_bounds_finds): Likewise.
4146 (test_mapped_index_find_name_component_bounds): Update.
4147 (CHECK_MATCH): Update.
4148 (dw2_expand_symtabs_matching): Update.
4149 (class dw2_debug_names_iterator) <dw2_debug_names_iterator>: Add
4150 per_objfile parameter.
4151 <find_vec_in_debug_names>: Likewise.
4152 <m_per_objfile>: New field.
4153 (mapped_debug_names::namei_to_name): Add dwarf2_per_objfile
4154 parameter.
4155 (dw2_debug_names_iterator::find_vec_in_debug_names): Likewise.
4156 (dw2_debug_names_iterator::next): Update.
4157 (dw2_debug_names_lookup_symbol): Update.
4158 (dw2_debug_names_expand_symtabs_for_function): Update.
4159 (dw2_debug_names_map_matching_symbols): Update.
4160 (dw2_debug_names_expand_symtabs_matching): Update.
4161 (dwarf2_read_debug_names): Update.
4162
7188ed02
SM
41632020-05-27 Simon Marchi <simon.marchi@efficios.com>
4164
4165 * dwarf2/read.h (struct dwarf2_cu): Forward-declare.
4166 (struct dwarf2_per_bfd) <free_cached_comp_units>: Remove,
4167 move to dwarf2_per_objfile.
4168 <read_in_chain>: Remove.
4169 (struct dwarf2_per_objfile) <get_cu, set_cu, remove_cu,
4170 remove_all_cus, age_comp_units>: New methods.
4171 <m_dwarf2_cus>: New member.
4172 (struct dwarf2_per_cu_data) <cu>: Remove.
4173 * dwarf2/read.c (struct dwarf2_cu) <read_in_chain>: Remove.
4174 (age_cached_comp_units, free_one_cached_comp_unit): Remove,
4175 moved to methods of dwarf2_per_objfile.
4176 (dwarf2_clear_marks): Remove.
4177 (dwarf2_queue_item::~dwarf2_queue_item): Update.
4178 (dwarf2_per_bfd::~dwarf2_per_bfd): Don't free dwarf2_cus.
4179 (dwarf2_per_bfd::free_cached_comp_units): Remove.
4180 (dwarf2_per_objfile::remove_all_cus): New.
4181 (class free_cached_comp_units) <~free_cached_comp_units>:
4182 Update.
4183 (load_cu): Update.
4184 (dw2_do_instantiate_symtab): Adjust.
4185 (fill_in_sig_entry_from_dwo_entry): Adjust.
4186 (cutu_reader::init_tu_and_read_dwo_dies): Update.
4187 (cutu_reader::cutu_reader): Likewise.
4188 (cutu_reader::keep): Use dwarf2_per_objfile::set_cu.
4189 (cutu_reader::cutu_reader): Use dwarf2_per_objfile::get_cu.
4190 (process_psymtab_comp_unit): Use dwarf2_per_objfile::remove_cu
4191 and dwarf2_per_objfile::age_comp_units.
4192 (load_partial_comp_unit): Update.
4193 (maybe_queue_comp_unit): Use dwarf2_per_objfile::get_cu.
4194 (process_queue): Likewise.
4195 (find_partial_die): Use dwarf2_per_objfile::get_cu instead of cu
4196 backlink.
4197 (dwarf2_read_addr_index): Likewise.
4198 (follow_die_offset): Likewise.
4199 (dwarf2_fetch_die_loc_sect_off): Likewise.
4200 (dwarf2_fetch_constant_bytes): Likewise.
4201 (dwarf2_fetch_die_type_sect_off): Likewise.
4202 (follow_die_sig_1): Likewise.
4203 (load_full_type_unit): Likewise.
4204 (read_signatured_type): Likewise.
4205 (dwarf2_cu::dwarf2_cu): Don't set cu field.
4206 (dwarf2_cu::~dwarf2_cu): Remove.
4207 (dwarf2_per_objfile::get_cu): New.
4208 (dwarf2_per_objfile::set_cu): New.
4209 (age_cached_comp_units): Rename to...
4210 (dwarf2_per_objfile::age_comp_units): ... this. Adjust
4211 to std::unordered_map.
4212 (free_one_cached_comp_unit): Rename to...
4213 (dwarf2_per_objfile::remove_cu): ... this. Adjust
4214 to std::unordered_map.
4215 (dwarf2_per_objfile::~dwarf2_per_objfile): New.
4216 (dwarf2_mark_helper): Use dwarf2_per_objfile::get_cu, expect
4217 a dwarf2_per_objfile in data.
4218 (dwarf2_mark): Pass dwarf2_per_objfile in data to htab_traverse.
4219 (dwarf2_clear_marks): Remove.
4220
2e671100
SM
42212020-05-27 Simon Marchi <simon.marchi@efficios.com>
4222
4223 * dwarf2/read.c (class cutu_reader) <cutu_reader>: Replace
4224 `int use_existing_cu` parameter with `dwarf2_cu *existing_cu`.
4225 (init_tu_and_read_dwo_dies): Likewise.
4226 (cutu_reader::init_tu_and_read_dwo_dies): Likewise.
4227 (cutu_reader::cutu_reader): Likewise.
4228 (load_partial_comp_unit): Likewise.
4229 (process_psymtab_comp_unit): Update.
4230 (build_type_psymtabs_1): Update.
4231 (process_skeletonless_type_unit): Update.
4232 (load_full_comp_unit): Update.
4233 (find_partial_die): Update.
4234 (dwarf2_read_addr_index): Update.
4235 (read_signatured_type): Update.
4236
2e6a9f79
SM
42372020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
4238
4239 * dwarf2/read.h (struct dwarf2_per_cu_data) <m_header,
4240 m_header_read_in>: New fields.
4241 <get_header>: New method.
4242 * dwarf2/read.c (per_cu_header_read_in): Remove.
4243 (dwarf2_per_cu_data::get_header): New.
4244 (dwarf2_per_cu_data::addr_size): Update.
4245 (dwarf2_per_cu_data::offset_size): Update.
4246 (dwarf2_per_cu_data::ref_addr_size): Update.
4247
1b555f17
SM
42482020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
4249
4250 * dwarf2/read.c (load_cu): Return dwarf2_cu.
4251 (dw2_do_instantiate_symtab): Update.
4252 (queue_and_load_all_dwo_tus): Change parameter from
4253 dwarf2_per_cu_data to dwarf2_cu.
4254 (dwarf2_fetch_die_loc_sect_off): Update.
4255 (dwarf2_fetch_constant_bytes): Update.
4256 (dwarf2_fetch_die_type_sect_off): Update.
4257
8fc0b21d
SM
42582020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
4259
4260 * dwarf2/read.c (process_full_comp_unit,
4261 process_full_type_unit): Remove per_cu, per_objfile paramters.
4262 Add dwarf2_cu parameter.
4263 (process_queue): Update.
4264
168c9250
SM
42652020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
4266
4267 * dwarf2/read.c (create_cu_from_index_list): Replace
4268 dwarf2_per_objfile parameter with dwarf2_per_bfd.
4269 (create_cus_from_index_list): Likewise.
4270 (create_cus_from_index): Likewise.
4271 (create_signatured_type_table_from_index): Likewise.
4272 (create_cus_from_debug_names_list): Likewise.
4273 (create_cus_from_debug_names): Likewise.
4274 (dwarf2_read_gdb_index): Update.
4275 (dwarf2_read_debug_names): Update.
4276
e286671b
TT
42772020-05-27 Tom Tromey <tom@tromey.com>
4278 Simon Marchi <simon.marchi@efficios.com>
4279
4280 * dwarf2/read.h (struct dwarf2_per_objfile)
4281 <get_type_for_signatured_type, set_type_for_signatured_type>:
4282 New methods.
4283 <m_type_map>: New member.
4284 (struct signatured_type) <type>: Remove.
4285 * dwarf2/read.c
4286 (dwarf2_per_objfile::get_type_for_signatured_type,
4287 dwarf2_per_objfile::set_type_for_signatured_type): New.
4288 (get_signatured_type): Use new methods.
4289
8adb8487
TT
42902020-05-27 Tom Tromey <tom@tromey.com>
4291 Simon Marchi <simon.marchi@efficios.com>
4292
4293 * dwarf2/read.h (struct type_unit_group_unshareable): New.
4294 (struct dwarf2_per_objfile) <type_units>: New member.
4295 <get_type_unit_group_unshareable>: New method.
4296 * dwarf2/read.c (struct type_unit_group) <compunit_symtab,
4297 num_symtabs, symtabs>: Remove; move to
4298 type_unit_group_unshareable.
4299 (dwarf2_per_objfile::get_type_unit_group_unshareable): New.
4300 (process_full_type_unit, dwarf2_cu::setup_type_unit_groups)
4301 (dwarf2_cu::setup_type_unit_groups): Use type_unit_group_unshareable.
4302
127bbf4b
SM
43032020-05-27 Simon Marchi <simon.marchi@efficios.com>
4304
4305 * dwarf2/read.h (struct dwarf2_per_cu_data):
4306 <dwarf2_per_objfile>: Remove.
4307 * dwarf2/read.c (create_cu_from_index_list): Don't assign
4308 dwarf2_per_objfile.
4309 (create_signatured_type_table_from_index): Likewise.
4310 (create_signatured_type_table_from_debug_names): Likewise.
4311 (create_debug_type_hash_table): Likewise.
4312 (fill_in_sig_entry_from_dwo_entry): Likewise.
4313 (create_type_unit_group): Likewise.
4314 (read_comp_units_from_section): Likewise.
4315 (create_cus_hash_table): Likewise.
4316
f6e649dd
SM
43172020-05-27 Simon Marchi <simon.marchi@efficios.com>
4318
4319 * dwarf2/read.c (process_psymtab_comp_unit): Remove reference to
4320 dwarf2_per_cu_data::dwarf2_per_objfile.
4321 (compute_compunit_symtab_includes): Likewise.
4322 (dwarf2_cu::start_symtab): Likewise.
4323
aa66c379
SM
43242020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
4325
4326 * dwarf2/read.h (dwarf2_get_die_type): Add dwarf2_per_objfile
4327 parameter.
4328 * dwarf2/read.c (get_die_type_at_offset): Likewise.
4329 (read_namespace_alias): Update.
4330 (lookup_die_type): Update.
4331 (dwarf2_get_die_type): Add dwarf2_per_objfile parameter.
4332 * dwarf2/loc.c (class dwarf_evaluate_loc_desc) <get_base_type>:
4333 Update.
4334 (disassemble_dwarf_expression): Update.
4335
120ce1b5
SM
43362020-05-27 Simon Marchi <simon.marchi@efficios.com>
4337
4338 * dwarf2/read.h (struct dwarf2_queue_item): Add
4339 dwarf2_per_objfile parameter, assign new parameter.
4340 <per_objfile>: New field.
4341 * dwarf2/read.c (free_one_cached_comp_unit): Add
4342 dwarf2_per_objfile parameter.
4343 (queue_comp_unit): Likewise.
4344 (dw2_do_instantiate_symtab): Update.
4345 (process_psymtab_comp_unit): Update.
4346 (maybe_queue_comp_unit): Add dwarf2_per_objfile parameter.
4347 (process_imported_unit_die): Update.
4348 (queue_and_load_dwo_tu): Update.
4349 (follow_die_offset): Update.
4350 (follow_die_sig_1): Update.
4351
9f47c707
SM
43522020-05-27 Simon Marchi <simon.marchi@efficios.com>
4353
4354 * dwarf2/read.h (struct dwarf2_per_cu_data) <objfile>: Remove.
4355 * dwarf2/read.c (dwarf2_compute_name): Pass per_objfile down.
4356 (read_call_site_scope): Assign per_objfile.
4357 (dwarf2_per_cu_data::objfile): Remove.
4358 * gdbtypes.h (struct call_site) <per_objfile>: New member.
4359 * dwarf2/loc.h (dwarf2_evaluate_loc_desc): Add
4360 dwarf2_per_objfile parameter.
4361 * dwarf2/loc.c (dwarf2_evaluate_loc_desc_full): Add
4362 dwarf2_per_objfile parameter.
4363 (dwarf_expr_reg_to_entry_parameter): Add output
4364 dwarf2_per_objfile parameter.
4365 (locexpr_get_frame_base): Update.
4366 (class dwarf_evaluate_loc_desc) <get_tls_address>: Update.
4367 <push_dwarf_reg_entry_value>: Update.
4368 <call_site_to_target_addr>: Update.
4369 (dwarf_entry_parameter_to_value): Add dwarf2_per_objfile
4370 parameter.
4371 (value_of_dwarf_reg_entry): Update.
4372 (rw_pieced_value): Update.
4373 (indirect_synthetic_pointer): Update.
4374 (dwarf2_evaluate_property): Update.
4375 (dwarf2_loc_desc_get_symbol_read_needs): Add dwarf2_per_objfile
4376 parameter.
4377 (locexpr_read_variable): Update.
4378 (locexpr_get_symbol_read_needs): Update.
4379 (loclist_read_variable): Update.
4380
14095eb3
SM
43812020-05-27 Simon Marchi <simon.marchi@efficios.com>
4382
4383 * dwarf2/read.h (dwarf2_fetch_die_loc_sect_off,
4384 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
4385 dwarf2_fetch_die_type_sect_off): Add dwarf2_per_objfile
4386 parameter.
4387 * dwarf2/read.c (dwarf2_fetch_die_loc_sect_off,
4388 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
4389 dwarf2_fetch_die_type_sect_off): Add dwarf2_per_objfile
4390 parameter.
4391 * dwarf2/loc.c (indirect_synthetic_pointer, per_cu_dwarf_call,
4392 sect_variable_value): Add dwarf2_per_objfile parameter.
4393 (class dwarf_evaluate_loc_desc) <dwarf_call,
4394 dwarf_variable_value>: Update.
4395 (fetch_const_value_from_synthetic_pointer): Add
4396 dwarf2_per_objfile parameter.
4397 (fetch_const_value_from_synthetic_pointer): Update.
4398 (coerced_pieced_ref): Update.
4399 (class symbol_needs_eval_context) <dwarf_call,
4400 dwarf_variable_value>: Update.
4401 (dwarf2_compile_expr_to_ax): Update.
4402
3c3cd3d4
SM
44032020-05-27 Simon Marchi <simon.marchi@efficios.com>
4404
4405 * dwarf2/loc.c (allocate_piece_closure): Add dwarf2_per_objfile
4406 parameter.
4407 (dwarf2_evaluate_loc_desc_full): Update.
4408
82ca3f51
SM
44092020-05-27 Simon Marchi <simon.marchi@efficios.com>
4410
4411 * dwarf2/read.h (dwarf2_read_addr_index): Add dwarf2_per_objfile
4412 parameter.
4413 * dwarf2/read.c (dwarf2_read_addr_index): Likewise.
4414 * dwarf2/loc.c (decode_debug_loclists_addresses): Add
4415 dwarf2_per_objfile parameter.
4416 (decode_debug_loc_dwo_addresses): Likewise.
4417 (dwarf2_find_location_expression): Update.
4418 (class dwarf_evaluate_loc_desc) <get_addr_index>: Update.
4419 (locexpr_describe_location_piece): Add dwarf2_per_objfile
4420 parameter.
4421 (disassemble_dwarf_expression): Add dwarf2_per_objfile
4422 parameter.
4423 (locexpr_describe_location_1): Likewise.
4424 (locexpr_describe_location): Update.
4425
4b167ea1
SM
44262020-05-27 Simon Marchi <simon.marchi@efficios.com>
4427
4428 * dwarf2/read.h (struct dwarf2_per_cu_data) <text_offset>:
4429 Remove.
4430 * dwarf2/read.c (dwarf2_per_cu_data::text_offset): Remove.
4431 * dwarf2/loc.c (dwarf2_find_location_expression): Update.
4432 (dwarf2_compile_property_to_c): Update.
4433 (dwarf2_compile_expr_to_ax): Add dwarf2_per_objfile parameter,
4434 use text offset from objfile.
4435 (locexpr_tracepoint_var_ref): Update.
4436 (locexpr_generate_c_location): Update.
4437 (loclist_describe_location): Update.
4438 (loclist_tracepoint_var_ref): Update.
4439 * dwarf2/compile.h (compile_dwarf_bounds_to_c): Add
4440 dwarf2_per_objfile parameter.
4441 * dwarf2/loc2c.c (do_compile_dwarf_expr_to_c): Likewise,
4442 use text offset from objfile.
4443 (compile_dwarf_expr_to_c): Add dwarf2_per_objfile parameter.
4444
89b07335
SM
44452020-05-27 Simon Marchi <simon.marchi@efficios.com>
4446
4447 * dwarf2/expr.h (struct dwarf_expr_context)
4448 <dwarf_expr_context>: Add dwarf2_per_objfile parameter.
4449 <offset>: Remove.
4450 <per_objfile>: New member.
4451 * dwarf2/expr.c (dwarf_expr_context::dwarf_expr_context): Add
4452 dwarf2_per_objfile parameter. Don't set offset, set
4453 per_objfile.
4454 (dwarf_expr_context::execute_stack_op): Use offset from objfile.
4455 * dwarf2/frame.c (dwarf2_frame_find_fde): Return (by parameter)
4456 a dwarf2_per_objfile object instead of an offset.
4457 (class dwarf_expr_executor) <dwarf_expr_executor>: Add
4458 constructor.
4459 (execute_stack_op): Add dwarf2_per_objfile parameter, pass it
4460 to dwarf2_expr_executor constructor. Don't set offset.
4461 (dwarf2_fetch_cfa_info): Update.
4462 (struct dwarf2_frame_cache) <text_offset>: Remove.
4463 <per_objfile>: New field.
4464 (dwarf2_frame_cache): Update.
4465 (dwarf2_frame_prev_register): Update.
4466 * dwarf2/loc.c (class dwarf_evaluate_loc_desc)
4467 <dwarf_evaluate_loc_desc>: Add constructor.
4468 (dwarf2_evaluate_loc_desc_full): Update.
4469 (dwarf2_locexpr_baton_eval): Update.
4470 (class symbol_needs_eval_context) <symbol_needs_eval_context>:
4471 Add constructor.
4472 (dwarf2_loc_desc_get_symbol_read_needs): Update.
4473
293e7e51
SM
44742020-05-27 Simon Marchi <simon.marchi@efficios.com>
4475
4476 * dwarf2/read.h (struct dwarf2_per_cu_data) <addr_type,
4477 addr_sized_int_type>: Move to dwarf2_cu.
4478 <int_type>: Move to dwarf2_per_objfile.
4479 (struct dwarf2_per_objfile) <int_type>: Move here.
4480 * dwarf2/read.c (struct dwarf2_cu) <addr_type,
4481 addr_sized_int_type>: Move here.
4482 (read_func_scope): Update.
4483 (read_array_type): Update.
4484 (read_tag_string_type): Update.
4485 (attr_to_dynamic_prop): Update.
4486 (dwarf2_per_cu_data::int_type): Rename to...
4487 (dwarf2_per_objfile::int_type): ... this.
4488 (dwarf2_per_cu_data::addr_sized_int_type): Rename to...
4489 (dwarf2_cu::addr_sized_int_type): ... this.
4490 (read_subrange_type): Update.
4491 (dwarf2_per_cu_data::addr_type): Rename to...
4492 (dwarf2_cu::addr_type): ... this.
4493 (set_die_type): Update.
4494
64874a40
SM
44952020-05-27 Simon Marchi <simon.marchi@efficios.com>
4496
4497 * dwarf2/read.c (queue_and_load_all_dwo_tus): Access per_objfile
4498 data through per_cu->cu.
4499
4ab09049
SM
45002020-05-27 Simon Marchi <simon.marchi@efficios.com>
4501
4502 * dwarf2/read.c (lookup_dwo_comp_unit): Change
4503 dwarf2_per_cu_data parameter fo dwarf2_cu.
4504 (lookup_dwo_type_unit): Likewise.
4505 (read_cutu_die_from_dwo): Likewise.
4506 (lookup_dwo_unit): Likewise.
4507 (open_and_init_dwo_file): Likewise.
4508 (lookup_dwo_cutu): Likewise.
4509 (lookup_dwo_comp_unit): Likewise.
4510 (lookup_dwo_type_unit): Likewise.
4511 (cutu_reader::init_tu_and_read_dwo_dies): Update.
4512 (cutu_reader::cutu_reader): Update.
4513
47b14e86
SM
45142020-05-27 Simon Marchi <simon.marchi@efficios.com>
4515
4516 * dwarf2/read.c (process_full_comp_unit): Add dwarf2_per_objfile
4517 parameter.
4518 (process_full_type_unit): Likewise.
4519 (process_queue): Update.
4520
43182c09
SM
45212020-05-27 Simon Marchi <simon.marchi@efficios.com>
4522
4523 * dwarf2/read.c (recursively_compute_inclusions): Add
4524 dwarf2_per_objfile parameter.
4525 (compute_compunit_symtab_includes): Likewise.
4526 (process_cu_includes): Update.
4527
7aa104c4
SM
45282020-05-27 Simon Marchi <simon.marchi@efficios.com>
4529
4530 * dwarf2/read.c (create_partial_symtab): Add dwarf2_per_objfile
4531 parameter.
4532 (create_type_unit_group): Update.
4533 (process_psymtab_comp_unit_reader): Update.
4534 (build_type_psymtabs_reader): Update.
4535
e3beb21d
SM
45362020-05-27 Simon Marchi <simon.marchi@efficios.com>
4537
4538 * dwarf2/read.c (cutu_reader::keep): Access dwarf2_per_objfile
4539 object through m_this_cu->cu.
4540
d460f660
SM
45412020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
4542
4543 * dwarf2/read.c (queue_and_load_dwo_tu): Expect a dwarf2_cu as
4544 the info parameter.
4545 (queue_and_load_all_dwo_tus): Pass per_cu->cu.
4546
ab432490
SM
45472020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
4548
4549 * dwarf2/read.c (class cutu_reader) <cutu_reader>: Add
4550 per_objfile parameter.
4551 (load_full_type_unit): Add per_objfile parameter.
4552 (read_signatured_type): Likewise.
4553 (load_full_comp_unit): Likewise.
4554 (load_cu): Likewise.
4555 (dw2_do_instantiate_symtab): Likewise.
4556 (dw2_get_file_names): Likewise.
4557 (dw2_map_symtabs_matching_filename): Update.
4558 (dw_expand_symtabs_matching_file_matcher): Update.
4559 (dw2_map_symbol_filenames): Update.
4560 (process_psymtab_comp_unit): Add per_objfile parameter.
4561 (build_type_psymtabs_1): Update.
4562 (process_skeletonless_type_unit): Update.
4563 (dwarf2_build_psymtabs_hard): Update.
4564 (load_partial_comp_unit): Add per_objfile parameter.
4565 (scan_partial_symbols): Update.
4566 (load_full_comp_unit): Add per_objfile parameter.
4567 (process_imported_unit_die): Update.
4568 (create_cus_hash_table): Update.
4569 (find_partial_die): Update.
4570 (dwarf2_read_addr_index): Update.
4571 (follow_die_offset): Update.
4572 (dwarf2_fetch_die_loc_sect_off): Update.
4573 (dwarf2_fetch_constant_bytes): Update.
4574 (dwarf2_fetch_die_type_sect_off): Update.
4575 (follow_die_sig_1): Update.
4576 (load_full_type_unit): Add per_objfile parameter.
4577 (read_signatured_type): Likewise.
4578
313bad1b
SM
45792020-05-27 Simon Marchi <simon.marchi@efficios.com>
4580
4581 * dwarf2/read.c (lookup_dwo_unit): Use bfd_get_filename instead
4582 of objfile_name.
4583
c3699833
SM
45842020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
4585
4586 * dwarf2/read.h (struct dwarf2_per_bfd) <obfd>: New member.
4587 (dwarf2_get_dwz_file): Replace parameter with dwarf2_per_bfd.
4588 * dwarf2/read.c (dwarf2_per_bfd::dwarf2_per_bfd): Assign obfd
4589 field.
4590 (dwarf2_get_dwz_file): Replace parameter with dwarf2_per_bfd.
4591 (create_cus_from_index): Update.
4592 (dwarf2_read_gdb_index): Update.
4593 (create_cus_from_debug_names): Update.
4594 (dwarf2_read_debug_names): Update.
4595 (get_abbrev_section_for_cu): Update.
4596 (create_all_comp_units): Update.
4597 (read_attribute_value): Update.
4598 (get_debug_line_section): Update.
4599 * dwarf2/index-cache.c (index_cache::store): Update.
4600 * dwarf2/index-write.c (save_gdb_index_command): Update.
4601 * dwarf2/macro.c (dwarf_decode_macro_bytes): Update.
4602
1859c670
SM
46032020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
4604
4605 * dwarf2/read.h (struct dwarf2_per_cu_data) <per_bfd>: New
4606 member.
4607 * dwarf2/read.c (dwarf2_per_bfd::allocate_per_cu): Initialize
4608 dwarf2_per_cu_data::per_bfd.
4609 (dwarf2_per_bfd::allocate_signatured_type): Likewise.
4610 (create_type_unit_group): Likewise.
4611 (queue_comp_unit): Remove reference to
4612 per_cu->dwarf2_per_objfile.
4613 (maybe_queue_comp_unit): Likewise.
4614 (fill_in_sig_entry_from_dwo_entry): Assign new field.
4615 (create_cus_hash_table): Assign new field.
4616
5e22e966
SM
46172020-05-27 Simon Marchi <simon.marchi@efficios.com>
4618
4619 * dwarf2/read.c: Replace
4620 dwarf2_cu->per_cu->dwarf2_per_objfile references with
4621 dwarf2_cu->per_objfile throughout.
4622
97a1449a
SM
46232020-05-27 Simon Marchi <simon.marchi@efficios.com>
4624
4625 * dwarf2/read.c (dw2_do_instantiate_symtab): Add per_objfile
4626 parameter, don't use per_cu->dwarf2_per_objfile.
4627 (dw2_instantiate_symtab): Likewise.
4628 (dw2_find_last_source_symtab): Update.
4629 (dw2_map_expand_apply): Update.
4630 (dw2_lookup_symbol): Update.
4631 (dw2_expand_symtabs_for_function): Update.
4632 (dw2_expand_all_symtabs): Update.
4633 (dw2_expand_symtabs_with_fullname): Update.
4634 (dw2_expand_symtabs_matching_one): Add per_objfile parameter,
4635 don't use per_cu->dwarf2_per_objfile.
4636 (dw2_expand_marked_cus): Update.
4637 (dw2_find_pc_sect_compunit_symtab): Update.
4638 (dw2_debug_names_lookup_symbol): Update.
4639 (dw2_debug_names_expand_symtabs_for_function): Update.
4640 (dw2_debug_names_map_matching_symbols): Update.
4641 (dwarf2_psymtab::expand_psymtab): Update.
4642
9e021579
SM
46432020-05-27 Simon Marchi <simon.marchi@efficios.com>
4644
4645 * dwarf2/read.c (struct dwarf2_cu) <dwarf2_cu>: Add parameter.
4646 <per_objfile>: New member.
4647 (class cutu_reader) <init_tu_and_read_dwo_dies>: Add parameter.
4648 (cutu_reader::init_tu_and_read_dwo_dies): Add parameter, update
4649 call to dwarf2_cu.
4650 (cutu_reader::cutu_reader): Update.
4651 (dwarf2_cu::dwarf2_cu): Add parameter, initialize per_objfile.
4652
ae090bdb
SM
46532020-05-27 Simon Marchi <simon.marchi@efficios.com>
4654
4655 * dwarf2/read.h (struct dwarf2_per_bfd) <die_type_hash>: Move to
4656 struct dwarf2_per_objfile.
4657 (struct dwarf2_per_objfile) <die_type_hash>: Move from struct
4658 dwarf2_per_bfd.
4659 * dwarf2/read.c (set_die_type): Update.
4660 (get_die_type_at_offset): Update.
4661
af758d11
SM
46622020-05-27 Tom Tromey <tom@tromey.com>
4663 Simon Marchi <simon.marchi@efficios.com>
4664
4665 * dwarf2/read.h (struct dwarf2_per_bfd) <num_psymtabs>: New
4666 method.
4667 (struct dwarf2_per_objfile) <resize_symtabs, symtab_set_p,
4668 get_symtab, set_symtab>: New methods.
4669 <m_symtabs>: New field.
4670 (struct dwarf2_psymtab): Derive from partial_symtab.
4671 <readin_p, get_compunit_symtab>: Declare methods.
4672 * dwarf2/read.c (dwarf2_per_objfile::symtab_set_p,
4673 dwarf2_per_objfile::get_symtab, dwarf2_per_objfile::set_symtab):
4674 New methods.
4675 (struct dwarf2_per_cu_quick_data) <compunit_symtab>: Remove.
4676 (dw2_do_instantiate_symtab, dw2_instantiate_symtab)
4677 (dw2_map_expand_apply, dw2_map_symtabs_matching_filename)
4678 (dw2_symtab_iter_next, dw2_print_stats)
4679 (dw2_expand_symtabs_with_fullname)
4680 (dw2_expand_symtabs_matching_one)
4681 (dw_expand_symtabs_matching_file_matcher)
4682 (dw2_find_pc_sect_compunit_symtab, dw2_map_symbol_filenames)
4683 (dw2_debug_names_iterator::next)
4684 (dw2_debug_names_map_matching_symbols)
4685 (fill_in_sig_entry_from_dwo_entry, dwarf2_psymtab::read_symtab)
4686 (process_queue, dwarf2_psymtab::expand_psymtab): Update.
4687 (dwarf2_psymtab::readin_p, dwarf2_psymtab::get_compunit_symtab):
4688 New methods.
4689 (get_compunit_symtab, process_full_comp_unit)
4690 (process_full_type_unit): Update.
4691 (dwarf2_build_psymtabs, dwarf2_initialize_objfile, add_type_unit): Call
4692
5989a64e
SM
46932020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
4694
4695 * dwarf2/read.h (dwarf2_per_objfile): Rename to dwarf2_per_bfd,
4696 then introduce a new dwarf2_per_objfile type.
4697 <read_line_string>: Move to the new dwarf2_per_objfile type.
4698 <objfile>: Likewise.
4699 (dwarf2_per_bfd): Rename dwarf2_per_objfile to this.
4700 * dwarf2/read.c: Replace references to dwarf2_per_objfile with
4701 dwarf2_per_objfile->per_bfd.
4702 (dwarf2_per_objfile::dwarf2_per_objfile): Rename to...
4703 (dwarf2_per_bfd::dwarf2_per_bfd): ... this.
4704 (dwarf2_per_objfile::free_cached_comp_units): Rename to...
4705 (dwarf2_per_bfd::free_cached_comp_units): ... this.
4706 (dwarf2_has_info): Allocate dwarf2_per_bfd.
4707 (dwarf2_per_objfile::locate_sections): Rename to...
4708 (dwarf2_per_bfd::locate_sections): ... this.
4709 (dwarf2_per_objfile::get_cutu): Rename to...
4710 (dwarf2_per_bfd::get_cutu): ... this.
4711 (dwarf2_per_objfile::get_cu): Rename to...
4712 (dwarf2_per_bfd::get_cu): ... this.
4713 (dwarf2_per_objfile::get_tu): Rename to...
4714 (dwarf2_per_bfd::get_tu): ... this.
4715 (dwarf2_per_objfile::allocate_per_cu): Rename to...
4716 (dwarf2_per_bfd::allocate_per_cu): ... this.
4717 (dwarf2_per_objfile::allocate_signatured_type): Rename to...
4718 (dwarf2_per_bfd::allocate_signatured_type): ... this.
4719 (get_gdb_index_contents_ftype): Change parameter from
4720 dwarf2_per_objfile to dwarf2_per_bfd.
4721 * dwarf2/macro.c, dwarf2/index-write.c: Replace references to
4722 dwarf2_per_objfile with dwarf2_per_objfile->per_bfd.
4723
a50264ba
TT
47242020-05-27 Tom Tromey <tom@tromey.com>
4725 Simon Marchi <simon.marchi@efficios.com>
4726
4727 * dwarf2/loc.c (struct piece_closure) <per_objfile>: New member.
4728 (allocate_piece_closure): Set "per_objfile" member.
4729 (dwarf2_find_location_expression, dwarf2_locexpr_baton_eval)
4730 (locexpr_describe_location, loclist_describe_location): Use new
4731 member.
4732 * dwarf2/read.c (read_call_site_scope)
4733 (mark_common_block_symbol_computed, attr_to_dynamic_prop)
4734 (dwarf2_const_value_attr, dwarf2_fetch_die_loc_sect_off)
4735 (fill_in_loclist_baton, dwarf2_symbol_mark_computed,
4736 handle_data_member_location): Set per_objfile member.
4737 * dwarf2/loc.h (struct dwarf2_locexpr_baton) <per_objfile>: New
4738 member.
4739 (struct dwarf2_loclist_baton) <per_objfile>: New member.
4740
d3473f0c
TT
47412020-05-27 Tom Tromey <tom@tromey.com>
4742
4743 * dwarf2/read.h (struct dwarf2_per_objfile) <allocate_per_cu,
4744 allocate_signatured_type>: Declare new methods.
4745 <m_num_psymtabs>: New member.
4746 (struct dwarf2_per_cu_data) <index>: New member.
4747 * dwarf2/read.c (dwarf2_per_objfile::allocate_per_cu)
4748 (dwarf2_per_objfile::allocate_signatured_type): New methods.
4749 (create_cu_from_index_list): Use allocate_per_cu.
4750 (create_signatured_type_table_from_index)
4751 (create_signatured_type_table_from_debug_names)
4752 (create_debug_type_hash_table, add_type_unit)
4753 (read_comp_units_from_section): Use allocate_signatured_type.
4754
5717c425
TT
47552020-05-27 Tom Tromey <tom@tromey.com>
4756
4757 * psymtab.c (partial_map_expand_apply)
4758 (psym_find_pc_sect_compunit_symtab, psym_lookup_symbol)
4759 (psym_lookup_global_symbol_language)
4760 (psymtab_to_symtab, psym_find_last_source_symtab, dump_psymtab)
4761 (psym_print_stats, psym_expand_symtabs_for_function)
4762 (psym_map_symbol_filenames, psym_map_matching_symbols)
4763 (psym_expand_symtabs_matching)
4764 (partial_symtab::read_dependencies, maintenance_info_psymtabs)
4765 (maintenance_check_psymtabs): Update.
4766 * psympriv.h (struct partial_symtab) <readin_p,
4767 get_compunit_symtab>: Add objfile parameter.
4768 (struct standard_psymtab) <readin_p, get_compunit_symtab>:
4769 Likewise.
4770 * dwarf2/read.c (struct dwarf2_include_psymtab) <readin_p,
4771 get_compunit_symtab>: Likewise.
4772 (dwarf2_psymtab::expand_psymtab): Pass objfile argument.
4773
45940949
TT
47742020-05-27 Tom Tromey <tom@tromey.com>
4775
4776 * dwarf2/read.h (struct dwarf2_per_objfile) <obstack>: New
4777 member.
4778 * dwarf2/read.c (delete_file_name_entry): Fix comment.
4779 (create_cu_from_index_list)
4780 (create_signatured_type_table_from_index)
4781 (create_signatured_type_table_from_debug_names)
4782 (dw2_get_file_names_reader, dwarf2_initialize_objfile)
4783 (dwarf2_create_include_psymtab)
4784 (create_debug_type_hash_table, add_type_unit)
4785 (create_type_unit_group, read_comp_units_from_section)
4786 (dwarf2_compute_name, create_cus_hash_table)
4787 (create_dwp_hash_table, create_dwo_unit_in_dwp_v1)
4788 (create_dwo_unit_in_dwp_v2, open_and_init_dwp_file): Use new
4789 obstack.
4790 (dw2_get_real_path): Likewise. Change argument to
4791 dwarf2_per_objfile.
4792
f8c6d152
LM
47932020-05-27 Luis Machado <luis.machado@linaro.org>
4794
4795 PR tdep/26000
4796 * arm-tdep.c (thumb_analyze_prologue): Fix instruction matching
4797 for ldrd (immediate).
4798
e98d2e6d
PW
47992020-05-26 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4800
4801 * command.h: Add comment giving the name of class_tui.
4802 * cli/cli-cmds.c (_initialize_cli_cmds): If TUI defined,
4803 create the fake command for the help for class_tui.
4804
53a47a3e
TT
48052020-05-26 Tom Tromey <tromey@adacore.com>
4806
4807 * ada-lang.c (ada_print_array_index): Change type. Call val_atr.
4808 (ada_value_ptr_subscript): Don't call pos_atr on the lower bound.
4809 (val_atr): New function.
4810 (value_val_atr): Use it.
4811 * ada-valprint.c (print_optional_low_bound): Change low bound
4812 handling for enums.
4813 (val_print_packed_array_elements): Don't call discrete_position.
4814 * gdbtypes.c (get_discrete_bounds) <TYPE_CODE_RANGE>: Call
4815 discrete_position for enum types.
4816 * language.c (default_print_array_index): Change type.
4817 * language.h (struct language_defn) <la_print_array_index>: Add
4818 index_type parameter, change type of index_value.
4819 (LA_PRINT_ARRAY_INDEX): Add index_type parameter.
4820 (default_print_array_index): Update.
4821 * valprint.c (maybe_print_array_index): Don't call
4822 value_from_longest. Update.
4823 (value_print_array_elements): Don't call discrete_position.
4824
0bc2354b
TT
48252020-05-26 Tom Tromey <tromey@adacore.com>
4826
4827 * ada-lang.c (value_val_atr): Handle TYPE_CODE_RANGE.
4828 * gdbtypes.c (discrete_position): Handle TYPE_CODE_RANGE.
4829
1218a4bf
CDA
48302020-05-25 Cristiano De Alti <cristiano_dealti@hotmail.com>
4831
4832 PR gdb/13519
4833 * avr-tdep.c (avr_integer_to_address): Return data or code
4834 address accordingly to the second 'type' argument of the
4835 function.
4836
92651b1d
MW
48372020-05-25 Michael Weghorn <m.weghorn@posteo.de>
4838
4839 * infcmd.c, inferior.h: (construct_inferior_arguments):
4840 Moved function from here to gdbsupport/common-inferior.{h,cc}
4841
0a4f5f8c
TT
48422020-05-23 Tom Tromey <tom@tromey.com>
4843
4844 Revert commit eca1f90c:
4845 * NEWS: Remove entry for completion styling.
4846 * completer.c (_rl_completion_prefix_display_length): Move
4847 declaration later.
4848 (gdb_fnprint): Revert.
4849 (gdb_display_match_list_1): Likewise.
4850 * cli/cli-style.c (completion_prefix_style)
4851 (completion_difference_style, completion_suffix_style): Remove.
4852 (_initialize_cli_style): Revert.
4853 * cli/cli-style.h (completion_prefix_style)
4854 (completion_difference_style, completion_suffix_style): Don't
4855 declare.
4856
e08bd6c5
PA
48572020-05-24 Pedro Alves <palves@redhat.com>
4858
4859 * symtab.c (completion_list_add_name): Return boolean indication
4860 of whether the symbol matched.
4861 (completion_list_add_symbol): Don't try to remove C++ aliases if
4862 the symbol didn't match in the first place.
4863 * symtab.h (completion_list_add_name): Return bool.
4864
ceacbf6e
SM
48652020-05-23 Simon Marchi <simon.marchi@polymtl.ca>
4866
4867 * gdbtypes.h (TYPE_FIELD): Remove. Replace all uses with
4868 type::field.
4869
26f16254
JB
48702020-05-23 Joel Brobecker <brobecker@adacore.com>
4871
4872 GDB 9.2 released.
4873
eca1f90c
TT
48742020-05-23 Tom Tromey <tom@tromey.com>
4875
4876 * NEWS: Add entry for completion styling.
4877 * completer.c (_rl_completion_prefix_display_length): Move
4878 declaration earlier.
4879 (gdb_fnprint): Use completion_style.
4880 (gdb_display_match_list_1): Likewise.
4881 * cli/cli-style.c (completion_prefix_style)
4882 (completion_difference_style, completion_suffix_style): New
4883 globals.
4884 (_initialize_cli_style): Register new globals.
4885 * cli/cli-style.h (completion_prefix_style)
4886 (completion_difference_style, completion_suffix_style): Declare.
4887
51e2cfa2
PA
48882020-05-23 Pedro Alves <palves@redhat.com>
4889
4890 * utils.c: Include "gdbsupport/gdb-safe-ctype.h".
4891 (parse_escape): Use ISDIGIT instead of isdigit.
4892 (puts_debug): Use gdb_isprint instead of isprint.
4893 (fprintf_symbol_filtered): Use ISALNUM instead of isalnum.
4894 (cp_skip_operator_token, skip_ws, strncmp_iw_with_mode): Use
4895 ISSPACE instead of isspace.
4896 (strncmp_iw_with_mode): Use TOLOWER instead of tolower and ISSPACE
4897 instead of isspace.
4898 (strcmp_iw_ordered): Use ISSPACE instead of isspace.
4899 (string_to_core_addr): Use TOLOWER instead of tolower, ISXDIGIT
4900 instead of isxdigit and ISDIGIT instead of isdigit.
4901
80fc5e77
SM
49022020-05-22 Simon Marchi <simon.marchi@efficios.com>
4903
4904 * gdbtypes.h (struct type) <field>: New method.
4905 (TYPE_FIELDS): Remove, replace all uses with either type::fields
4906 or type::field.
4907
3cabb6b0
SM
49082020-05-22 Simon Marchi <simon.marchi@efficios.com>
4909
4910 * gdbtypes.h (struct type) <fields, set_fields>: New methods.
4911 (TYPE_FIELDS): Use type::fields. Change all call sites that
4912 modify the propery to use type::set_fields instead.
4913
1f704f76
SM
49142020-05-22 Simon Marchi <simon.marchi@efficios.com>
4915
4916 * gdbtypes.h (TYPE_NFIELDS): Remove. Change all cal sites to use
4917 type::num_fields instead.
4918
5e33d5f4
SM
49192020-05-22 Simon Marchi <simon.marchi@efficios.com>
4920
4921 * gdbtypes.h (struct type) <num_fields, set_num_fields>: New
4922 methods.
4923 (TYPE_NFIELDS): Use type::num_fields. Change all call sites
4924 that modify the number of fields to use type::set_num_fields
4925 instead.
4926
9392ebb3
TT
49272020-05-22 Tom Tromey <tromey@adacore.com>
4928
4929 * compile/compile-object-load.h (munmap_list_free): Don't
4930 declare.
4931
7c13f4e8
AB
49322020-05-22 Andrew Burgess <andrew.burgess@embecosm.com>
4933
4934 * annotate.c (annotate_source_line): Update return type, add call
4935 to update current symtab and line.
4936 * annotate.h (annotate_source_line): Update return type, and
4937 extend header comment.
4938 * source.c (info_line_command): Check annotation_level before
4939 calling annotate_source_line.
4940 * stack.c (print_frame_info): If calling annotate_source_line
4941 returns true, then don't print any other source line information.
4942
aa370940
SM
49432020-05-21 Simon Marchi <simon.marchi@efficios.com>
4944
4945 * lm32-tdep.c (lm32_register_reggroup_p): Fix condition.
4946
84d53fa9
SM
49472020-05-21 Simon Marchi <simon.marchi@efficios.com>
4948
4949 * coffread.c (patch_type): Remove NULL check before xfree.
4950 * corefile.c (set_gnutarget): Likewise.
4951 * cp-abi.c (set_cp_abi_as_auto_default): Likewise.
4952 * exec.c (build_section_table): Likewise.
4953 * remote.c (remote_target::pass_signals): Likewise.
4954 * utils.c (n_spaces): Likewise.
4955 * cli/cli-script.c (document_command): Likewise.
4956 * i386-windows-tdep.c (core_process_module_section): Likewise.
4957 * linux-fork.c (struct fork_info) <~fork_info>: Likewise.
4958
9d428aae
SM
49592020-05-20 Simon Marchi <simon.marchi@efficios.com>
4960
4961 * symfile.c (reread_symbols): Clear objfile's section_offsets
4962 vector and section indices, re-compute them by calling
4963 sym_offsets.
4964
250106a7
TT
49652020-05-20 Tom Tromey <tromey@adacore.com>
4966
4967 * ada-lang.c (bound_name, MAX_ADA_DIMENS): Remove.
ec16513e 4968 (desc_one_bound, desc_index_type): Compute field name.
250106a7 4969
9a0bacfb
TV
49702020-05-20 Tom de Vries <tdevries@suse.de>
4971
4972 PR symtab/25833
4973 * dwarf2/read.c (dw2_map_matching_symbols): Handle .gdb_index.
4974
7b958a48
AM
49752020-05-20 Alan Modra <amodra@gmail.com>
4976
4977 PR 25993
4978 * solib-darwin.c (darwin_bfd_open): Don't strdup pathname for
4979 bfd_set_filename.
4980 * solib-aix.c (solib_aix_bfd_open): Use std::string for name
4981 passed to bfd_set_filename.
4982 * symfile-mem.c (add_vsyscall_page): Likewise for string
4983 passed to symbol_file_add_from_memory.
4984 (symbol_file_add_from_memory): Make name param a const char* and
4985 don't strdup.
4986
c7e97679
AM
49872020-05-20 Alan Modra <amodra@gmail.com>
4988
4989 * coff-pe-read.c (read_pe_exported_syms): Use bfd_get_filename
4990 rather than accessing bfd->filename directly.
4991 * dtrace-probe.c (dtrace_static_probe_ops::get_probes): Likewise,
4992 and use bfd_section_name.
4993 * dwarf2/frame.c (decode_frame_entry): Likewise.
4994 * exec.c (exec_set_section_address): Likewise.
4995 * solib-aix.c (solib_aix_bfd_open): Likewise.
4996 * stap-probe.c (get_stap_base_address): Likewise.
4997 * symfile.c (reread_symbols): Likewise.
4998
563c591b
TT
49992020-05-19 Tom Tromey <tromey@adacore.com>
5000
5001 * sparc64-tdep.c (adi_tag_fd): Update call to target_fileio_open.
5002
f408d82c
SM
50032020-05-19 Simon Marchi <simon.marchi@efficios.com>
5004
5005 * dwarf2/read.c (quirk_rust_enum): Allocate enough fields.
5006
98c59b52
PA
50072020-05-19 Pedro Alves <palves@redhat.com>
5008
5009 * NEWS (set exec-file-mismatch): Adjust entry.
5010 * exec.c: Include "build-id.h".
5011 (validate_exec_file): Try to match build IDs instead of filenames.
5012 * gdb_bfd.c (struct gdb_bfd_open_closure): New.
5013 (gdb_bfd_iovec_fileio_open): Adjust to use gdb_bfd_open_closure
5014 and pass down 'warn_if_slow'.
5015 (gdb_bfd_open): Add 'warn_if_slow' parameter. Use
5016 gdb_bfd_open_closure to pass it down.
5017 * gdb_bfd.h (gdb_bfd_open): Add 'warn_if_slow' parameter.
5018
4111f652
PA
50192020-05-19 Pedro Alves <palves@redhat.com>
5020
5021 * gdb_bfd.c (gdb_bfd_iovec_fileio_open): Adjust.
5022 * target.c (target_fileio_open_1): Rename to target_fileio_open
5023 and make extern. Use bool.
5024 (target_fileio_open, target_fileio_open_warn_if_slow): Delete.
5025 (target_fileio_read_alloc_1): Adjust.
5026 * target.h (target_fileio_open): Add 'warn_if_slow' parameter.
5027 (target_fileio_open_warn_if_slow): Delete declaration.
5028
ad80db5b
PA
50292020-05-19 Pedro Alves <palves@redhat.com>
5030
5031 * gdb_bfd.h: (gdb_bfd_open): Default to 'fd' parameter to -1.
5032 Adjust all callers.
5033
1d6ce4d3
YS
50342020-05-19 Yoshinori Sato <ysato@users.sourceforge.jp>
5035
5036 * h8300-tdep.c (h8300_is_argument_spill): Change how we check
5037 whether disp is negative.
5038
9005fbbb
SM
50392020-05-19 Simon Marchi <simon.marchi@efficios.com>
5040
5041 * symfile.h (struct symfile_segment_data)
5042 <~symfile_segment_data>: Remove.
5043 <segment_info>: Change to std::vector.
5044 * symfile.c (default_symfile_segments): Update.
5045 * elfread.c (elf_symfile_segments): Update.
5046
68b888ff
SM
50472020-05-19 Simon Marchi <simon.marchi@efficios.com>
5048
5049 * symfile.h (struct symfile_segment_data) <struct segment>: New.
5050 <segments>: New.
5051 <segment_bases, segment_sizes>: Remove.
5052 * symfile.c (default_symfile_segments): Update.
5053 * elfread.c (elf_symfile_segments): Update.
5054 * remote.c (remote_target::get_offsets): Update.
5055 * solib-target.c (solib_target_relocate_section_addresses):
5056 Update.
5057
62982abd
SM
50582020-05-19 Simon Marchi <simon.marchi@efficios.com>
5059
5060 * symfile.h (struct symfile_segment_data): Initialize fields.
5061 <~symfile_segment_data>: Add.
5062 (symfile_segment_data_up): New.
5063 (struct sym_fns) <sym_segments>: Return a
5064 symfile_segment_data_up.
5065 (default_symfile_segments): Return a symfile_segment_data_up.
5066 (free_symfile_segment_data): Remove.
5067 (get_symfile_segment_data): Return a symfile_segment_data_up.
5068 * symfile.c (default_symfile_segments): Likewise.
5069 (get_symfile_segment_data): Likewise.
5070 (free_symfile_segment_data): Remove.
5071 (symfile_find_segment_sections): Update.
5072 * elfread.c (elf_symfile_segments): Return a
5073 symfile_segment_data_up.
5074 * remote.c (remote_target::get_offsets): Update.
5075 * solib-target.c (solib_target_relocate_section_addresses):
5076 Update.
5077 * symfile-debug.c (debug_sym_segments): Return a
5078 symfile_segment_data_up.
5079
7f204339
RO
50802020-05-18 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5081
e52a0f1b
RO
5082 PR build/25981
5083 * i386-sol2-nat.c [PR_MODEL_NATIVE != PR_MODEL_LP64] (regmap):
5084 Hardcode register numbers.
5085
7f204339
RO
5086 PR build/25981
5087 * procfs.c [(__i386__ || __x86_64__) && sun] (proc_get_LDT_entry,
5088 procfs_find_LDT_entry): Remove.
5089 * procfs.h [(__i386__ || __x86_64__) && sun] (struct ssd,
5090 procfs_find_LDT_entry): Remove.
5091 * sol-thread.c [(__i386__ || __x86_64__) && sun] (ps_lgetLDT):
5092 Remove.
5093
7f32a4d5
PA
50942020-05-17 Pedro Alves <palves@redhat.com>
5095 Andrew Burgess <andrew.burgess@embecosm.com>
5096 Keno Fischer <keno@juliacomputing.com>
5097
5098 PR gdb/25741
5099 * breakpoint.c (build_target_condition_list): Update comments.
5100 (build_target_command_list): Update comments and skip matching
5101 locations.
5102 (insert_bp_location): Move "set breakpoint auto-hw on" handling to
5103 a separate function. Simplify "set breakpoint auto-hw off"
5104 handling.
5105 (insert_breakpoints): Update comment.
5106 (tracepoint_locations_match): New parameter. For breakpoints,
5107 compare location types too, if the caller wants to.
5108 (handle_automatic_hardware_breakpoints): New functions.
5109 (bp_location_is_less_than): Also sort by location type and
5110 hardware breakpoint length.
5111 (update_global_location_list): Handle "set breakpoint auto-hw on"
5112 here.
5113 (update_breakpoint_locations): Ask breakpoint_locations_match to
5114 ignore location types.
5115
7d93a1e0
SM
51162020-05-16 Simon Marchi <simon.marchi@efficios.com>
5117
5118 * gdbtypes.h (TYPE_NAME): Remove. Change all cal sites to use
5119 type::name instead.
5120
d0e39ea2
SM
51212020-05-16 Simon Marchi <simon.marchi@efficios.com>
5122
5123 * gdbtypes.h (struct type) <name, set_name>: New methods.
5124 (TYPE_CODE): Use type::name. Change all call sites used to set
5125 the name to use type::set_name instead.
5126
2dab0c7b
TT
51272020-05-16 Tom Tromey <tom@tromey.com>
5128
5129 * top.c (quit_force): Update.
5130 * infrun.c (handle_no_resumed): Update.
5131 * top.h (all_uis): New function.
5132 (ALL_UIS): Remove.
5133
59f7bd8d
SM
51342020-05-16 Simon Marchi <simon.marchi@efficios.com>
5135
5136 * mips-linux-tdep.c (mips_linux_in_dynsym_stub): Fix condition.
5137
9bf058f0
PA
51382020-05-16 Pedro Alves <palves@redhat.com>
5139
5140 * ia64-linux-nat.c
5141 (ia64_linux_nat_target) <enable_watchpoints_in_psr(ptid_t)>:
5142 Declare method.
5143 (enable_watchpoints_in_psr): Now a method of ia64_linux_nat_target.
5144
8f86ae1a
SM
51452020-05-15 Simon Marchi <simon.marchi@efficios.com>
5146
5147 * sparc64-tdep.c (adi_stat_t): Remove typedef (leaving struct).
5148 (sparc64_adi_info): Likewise.
5149
d6bc0792
TT
51502020-05-15 Tom Tromey <tom@tromey.com>
5151
5152 * symtab.c (lookup_language_this, lookup_symbol_aux): Use
5153 block_objfile.
5154 (lookup_objfile_from_block): Remove.
5155 (lookup_symbol_in_block, lookup_symbol_in_static_block)
5156 (lookup_global_symbol): Use block_objfile.
5157 * symtab.h (lookup_objfile_from_block): Don't declare.
5158 * printcmd.c (clear_dangling_display_expressions): Use
5159 block_objfile.
5160 * parse.c (operator_check_standard): Use block_objfile.
5161
8c14c3a3
TT
51622020-05-15 Tom Tromey <tom@tromey.com>
5163
5164 * language.c (language_alloc_type_symbol): Set
5165 SYMBOL_SECTION.
5166 * symtab.c (initialize_objfile_symbol): Remove.
5167 (allocate_symbol): Remove.
5168 (allocate_template_symbol): Remove.
5169 * dwarf2/read.c (fixup_go_packaging): Use "new".
5170 (new_symbol): Use "new".
5171 (read_variable): Don't call initialize_objfile_symbol. Use
5172 "new".
5173 (read_func_scope): Use "new".
5174 * xcoffread.c (process_xcoff_symbol): Don't call
5175 initialize_objfile_symbol.
5176 (SYMBOL_DUP): Remove.
5177 * coffread.c (process_coff_symbol, coff_read_enum_type): Use
5178 "new".
5179 * symtab.h (allocate_symbol, initialize_objfile_symbol)
5180 (allocate_template_symbol): Don't declare.
5181 (struct symbol): Add copy constructor. Change defaults.
5182 * jit.c (finalize_symtab): Use "new".
5183 * ctfread.c (ctf_add_enum_member_cb, new_symbol, ctf_add_var_cb):
5184 Use "new".
5185 * stabsread.c (patch_block_stabs, define_symbol, read_enum_type)
5186 (common_block_end): Use "new".
5187 * mdebugread.c (parse_symbol): Use "new".
5188 (new_symbol): Likewise.
5189
5b4a1a8d
PW
51902020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5191
5192 * NEWS: Mention changes to help and apropos.
5193
57b4f16e
PW
51942020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5195
5196 * command.h (enum command_class): Improve comments, document
5197 that class_alias is for user-defined aliases, give the class
5198 name for each class, remove unused class_xdb.
5199 * cli/cli-decode.c (add_com_alias): Document THECLASS intended usage.
5200 * breakpoint.c (_initialize_breakpoint): Replace class_alias
5201 by a precise class.
5202 * infcmd.c (_initialize_infcmd): Likewise.
5203 * reverse.c (_initialize_reverse): Likewise.
5204 * stack.c (_initialize_stack): Likewise.
5205 * symfile.c (_initialize_symfile): Likewise.
5206 * tracepoint.c (_initialize_tracepoint): Likewise.
5207
7c05caf7
PW
52082020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5209
5210 * cli/cli-decode.c (apropos_cmd): Produce output for aliases
5211 when their aliased command is traversed.
5212 (help_cmd): Add fput_command_names_styled call to
5213 output command name and aliases when command has an alias.
5214
3b3aaacb
PW
52152020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5216
5217 * cli/cli-decode.h (help_cmd_list): Remove declaration.
5218 * cli/cli-decode.c (help_cmd_list): Declare as static,
5219 remove prefix argument, use bool for recurse arg, rework to show the aliases of
5220 a command together with the command.
5221 (fput_command_name_styled, fput_command_names_styled): New functions.
5222 (print_help_for_command): Remove prefix arg, use bool for recurse arg, use
5223 fput_command_name_styled.
5224 (help_list, help_all): Update callers to remove prefix arg and use bool recurse.
5225 * cli/cli-cmds.c (_initialize_cli_cmds): Update alias_command doc.
5226
7aa1b46f
PW
52272020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5228
5229 * cli/cli-setshow.h (cmd_show_list): Remove prefix argument.
5230 * cli/cli-decode.c (do_show_prefix_cmd): Likewise.
5231 * command.h (cmd_show_list): Likewise.
5232 * dwarf2/index-cache.c (show_index_cache_command): Likewise.
5233 * cli/cli-setshow.c (cmd_show_list): Use the prefix to produce the output. Skip aliases.
5234
89bcba74
PW
52352020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5236
5237 * unittests/command-def-selftests.c (traverse_command_structure):
5238 Verify all commands of a list have the same prefix command and
5239 that only the top cmdlist commands have a null prefix.
5240
3f4d92eb
PW
52412020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5242
5243 * cli/cli-decode.c (lookup_cmd_for_prefix): Return the aliased command
5244 as prefix, not one of its aliases.
5245 (set_cmd_prefix): Remove.
5246 (do_add_cmd): Centralize the setting of the prefix of a command, when
5247 command is defined after its full chain of prefix commands.
5248 (add_alias_cmd): Remove call to set_cmd_prefix, as do_add_cmd does it.
5249 (add_setshow_cmd_full): Likewise.
5250 (update_prefix_field_of_prefixed_commands): New function.
5251 (add_prefix_cmd): Replace non working call to set_cmd_prefix by
5252 update_prefix_field_of_prefixed_commands.
5253 * gdb/remote-fileio.c (initialize_remote_fileio): Use the real
5254 addresses of remote_set_cmdlist and remote_show_cmdlist given
5255 as argument, not the address of an argument.
5256 * gdb/remote-fileio.h (initialize_remote_fileio): Likewise.
5257 * gdb/remote.c (_initialize_remote): Likewise.
5258
0605465f
PW
52592020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5260
5261 * cli/cli-cmds.c (alias_command): Check for an existing alias
5262 using lookup_cmd_composition, as valid_command_p is too strict
5263 and forbids aliases that are the prefix of an existing alias
5264 or command.
5265 * cli/cli-decode.c (lookup_cmd_composition): Ensure a prefix
5266 command is properly recognised as a valid command.
5267
58e6ac70
PW
52682020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5269
5270 * unittests/help-doc-selftests.c: Rename to
5271 unittests/command-def-selftests.c
5272 * unittests/command-def-selftests.c (help_doc_tests): Update some
5273 comments.
5274 (command_structure_tests, traverse_command_structure): New namespace
5275 and function.
5276 (command_structure_invariants_tests): New function.
5277 (_initialize_command_def_selftests) Renamed from
5278 _initialize_help_doc_selftests, register command_structure_invariants
5279 selftest.
5280
a7b9ceb8
PW
52812020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5282
5283 * cli/cli-cmds.c (_initialize_cli_cmds): Define 'info set' as
5284 an alias of 'show'.
5285
b2188a06
JB
52862020-05-15 Joel Brobecker <brobecker@adacore.com>
5287
5288 * ada-lang.h: (ada_is_gnat_encoded_fixed_point_type): Renames
5289 ada_is_fixed_point_type. Update all callers.
5290 (gnat_encoded_fixed_point_delta): Renames ada_delta. Update
5291 all callers.
5292 * ada-lang.c (gnat_encoded_fixed_type_info): Renames fixed_type_info.
5293 Update all callers.
5294 * ada-typeprint.c (print_gnat_encoded_fixed_point_type): Renames
5295 print_fixed_point_type. Update all callers.
5296 * ada-valprint.c (ada_value_print_num): Replace call to
5297 ada_is_fixed_point_type by ada_is_gnat_encoded_fixed_point_type.
5298
a51951c2
KB
52992020-05-14 Kevin Buettner <kevinb@redhat.com>
5300
5301 * nat/linux-btrace.c (btrace_this_cpu): Add check for AMD
5302 processors.
5303 (cpu_supports_bts): Add CV_AMD case.
5304
29d6859f
LM
53052020-05-14 Laurent Morichetti <Laurent.Morichetti@amd.com>
5306 Simon Marchi <simon.marchi@efficios.com>
5307
5308 * infrun.c (stop_all_threads): Collect multiple wait events at
5309 each pass.
5310
78134374
SM
53112020-05-14 Simon Marchi <simon.marchi@efficios.com>
5312
5313 * gdbtypes.h (TYPE_CODE): Remove. Change all call sites to use
5314 type::code instead.
5315
67607e24
SM
53162020-05-14 Simon Marchi <simon.marchi@efficios.com>
5317
5318 * gdbtypes.h (struct type) <code, set_code>: New methods.
5319 (TYPE_CODE): Use type::code. Change all call sites used to set
5320 the code to use type::set_code instead.
5321
a05575d3
TBA
53222020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
5323 Tom de Vries <tdevries@suse.de>
5324 Pedro Alves <palves@redhat.com>
5325
5326 PR threads/25478
5327 * infrun.c (stop_all_threads): Do NOT ignore
5328 TARGET_WAITKIND_NO_RESUMED, TARGET_WAITKIND_THREAD_EXITED,
5329 TARGET_WAITKIND_EXITED, TARGET_WAITKIND_SIGNALLED wait statuses
5330 received.
5331 (handle_no_resumed): Remove code handling a live inferior with no
5332 threads.
5333 * remote.c (has_single_non_exited_thread): New.
5334 (remote_target::update_thread_list): Do not delete a thread if is
5335 the last thread of the process.
5336 * thread.c (thread_select): Call delete_exited_threads instead of
5337 prune_threads.
5338
6ad82919
TBA
53392020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
5340
5341 * infrun.c (stop_all_threads): Enable/disable thread events of all
5342 targets. Move a debug message denoting the end of the function
5343 into the SCOPED_EXIT block.
5344
d890404b
TBA
53452020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
5346
5347 * process-stratum-target.h: Include <set>.
5348 (all_non_exited_process_targets, switch_to_target_no_thread): New
5349 function declarations.
5350 * process-stratum-target.c (all_non_exited_process_targets)
5351 (switch_to_target_no_thread): New function implementations.
5352
293b3ebc
TBA
53532020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
5354
5355 * infrun.c (handle_inferior_event): Extract out a piece of code
5356 into...
5357 (mark_non_executing_threads): ...this new function.
5358
7ca9b62a
TBA
53592020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
5360
5361 * infrun.c (resume_1): Move a 'regcache_read_pc' call down to first
5362 use.
5363
fc75c28b
TBA
53642020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
5365
5366 * regcache.c (regcache_read_pc_protected): New function
5367 implementation that returns 0 if the PC cannot read via
5368 'regcache_read_pc'.
5369 * infrun.c (proceed): Call 'regcache_read_pc_protected'
5370 instead of 'regcache_read_pc'.
5371 (keep_going_pass_signal): Ditto.
5372
a89febbd
TT
53732020-05-13 Tom Tromey <tromey@adacore.com>
5374
5375 * ada-lang.c (align_value): Remove.
5376 (ada_template_to_fixed_record_type_1): Use align_up.
5377
f7e23710
TBA
53782020-05-13 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
5379
5380 * async-event.c: Update the copyright year.
5381 * async-event.h: Update the copyright year.
5382
02ff80c2
SM
53832020-05-12 Simon Marchi <simon.marchi@efficios.com>
5384
5385 * objfiles.h (is_addr_in_objfile,
5386 shared_objfile_contains_address_p): Return bool.
5387 * objfile.c (is_addr_in_objfile,
5388 shared_objfile_contains_address_p): Return bool.
5389
4fd6c7e8
TT
53902020-05-11 Tom Tromey <tromey@adacore.com>
5391
5392 * cli/cli-cmds.c (info_command): Restore.
5393 (_initialize_cli_cmds): Use add_prefix_command for "info".
5394 * gdb-gdb.gdb.in: Restore breakpoint on info_command.
5395
5eb68a39
TT
53962020-05-11 Tom Tromey <tromey@adacore.com>
5397
5398 * ada-lang.c (ada_value_primitive_field): Now public.
5399 * ada-lang.h (ada_value_primitive_field): Declare.
5400 * ada-valprint.c (print_field_values): Use
5401 ada_value_primitive_field for wrapper fields.
5402
7666722f
TV
54032020-05-11 Tom de Vries <tdevries@suse.de>
5404
5405 * dwarf2/index-write.c (debug_names::psymbol_tag): Handle
5406 MODULE_DOMAIN.
5407
3ee6bb11
TV
54082020-05-11 Tom de Vries <tdevries@suse.de>
5409
5410 PR symtab/25941
5411 * dwarf2/read.c (create_cus_from_debug_names_list): Initialize CUs
5412 with length 0, if not gdb-produced.
5413 (cutu_reader::cutu_reader): Set CU length to actual length if 0.
5414
43434996
TV
54152020-05-09 Tom de Vries <tdevries@suse.de>
5416
5417 PR gdb/25955
5418 * break-catch-throw.c (check_status_exception_catchpoint): Fix name
5419 calculation.
5420
2f78cffc
TT
54212020-05-09 Tom Tromey <tom@tromey.com>
5422
5423 * top.c (server_command): Now bool.
5424 * top.h (server_command): Now bool.
5425
4f7bc5ed
TT
54262020-05-08 Tom Tromey <tromey@adacore.com>
5427
5428 * dwarf2/read.c (read_lexical_block_scope): Don't process a DIE
5429 already being processed.
5430
8be4b118
TT
54312020-05-08 Tom Tromey <tom@tromey.com>
5432
5433 * printcmd.c (struct display) <next>: Remove.
5434 <display>: New constructor.
5435 <exp_string>: Now a std::string.
5436 <enabled_p>: Now a bool.
5437 (display_number): Move definition earlier.
5438 (displays): Rename from display_chain. Now a std::vector.
5439 (ALL_DISPLAYS, ALL_DISPLAYS_SAFE): Remove.
5440 (display_command): Update.
5441 (do_one_display, disable_display)
5442 (enable_disable_display_command, do_enable_disable_display):
5443 Update.
5444 (free_display): Remove.
5445 (clear_displays): Rewrite.
5446 (delete_display): Update.
5447 (map_display_numbers): Use function_view. Remove "data"
5448 parameter. Update.
5449 (do_delete_display): Remove.
5450 (undisplay_command): Update.
5451 (do_one_display, do_displays, disable_display)
5452 (info_display_command): Update.
5453 (do_enable_disable_display): Remove.
5454 (enable_disable_display_command)
5455 (clear_dangling_display_expressions): Update.
5456
94c93c35
TT
54572020-05-08 Tom Tromey <tom@tromey.com>
5458
5459 * symtab.c (set_symbol_cache_size)
5460 (maintenance_print_symbol_cache, maintenance_flush_symbol_cache)
5461 (maintenance_print_symbol_cache_statistics): Update.
5462 * symmisc.c (print_symbol_bcache_statistics)
5463 (print_objfile_statistics, maintenance_print_objfiles)
5464 (maintenance_info_symtabs, maintenance_check_symtabs)
5465 (maintenance_expand_symtabs, maintenance_info_line_tables):
5466 Update.
5467 * symfile-debug.c (set_debug_symfile): Update.
5468 * source.c (forget_cached_source_info): Update.
5469 * python/python.c (gdbpy_progspaces): Update.
5470 * psymtab.c (maintenance_info_psymtabs): Update.
5471 * probe.c (parse_probes): Update.
5472 * linespec.c (iterate_over_all_matching_symtabs)
5473 (collect_symtabs_from_filename, search_minsyms_for_name): Update.
5474 * guile/scm-progspace.c (gdbscm_progspaces): Update.
5475 * exec.c (exec_target::close): Update.
5476 * ada-tasks.c (ada_tasks_new_objfile_observer): Update.
5477 * breakpoint.c (print_one_breakpoint_location)
5478 (create_longjmp_master_breakpoint)
5479 (create_std_terminate_master_breakpoint): Update.
5480 * progspace.c (program_spaces): Now a std::vector.
5481 (maybe_new_address_space): Update.
5482 (add_program_space): Remove.
5483 (program_space::program_space): Update.
5484 (remove_program_space): Update.
5485 (number_of_program_spaces): Remove.
5486 (print_program_space, update_address_spaces): Update.
5487 * progspace.h (program_spaces): Change type.
5488 (ALL_PSPACES): Remove.
5489 (number_of_program_spaces): Don't declare.
5490 (struct program_space) <next>: Remove.
5491
a1fd1ac9
TT
54922020-05-08 Tom Tromey <tom@tromey.com>
5493
5494 * mi/mi-cmd-file.c (mi_cmd_file_list_shared_libraries): Update.
5495 * solib-svr4.c (svr4_fetch_objfile_link_map): Update.
5496 (enable_break): Update.
5497 * solib-frv.c (frv_fdpic_find_global_pointer): Update.
5498 (frv_fdpic_find_canonical_descriptor): Update.
5499 (frv_fetch_objfile_link_map): Update.
5500 * progspace.c (program_space::free_all_objfiles): Update.
5501 (program_space::solibs): New method.
5502 * progspace.h (struct program_space) <solibs>: New method.
5503 * solist.h (master_so_list): Don't declare.
5504 (ALL_SO_LIBS): Remove.
5505 * solib.h (so_list_head): Remove.
5506 (update_solib_list): Update comment.
5507 * solib.c (master_so_list): Remove.
5508 (solib_used, update_solib_list, solib_add)
5509 (info_sharedlibrary_command, clear_solib)
5510 (reload_shared_libraries_1, remove_user_added_objfile): Update.
5511
38eae084
TT
55122020-05-08 Tom Tromey <tom@tromey.com>
5513
5514 * extension.c (extension_languages): Now a std::array.
5515 (ALL_EXTENSION_LANGUAGES): Remove.
5516 (get_ext_lang_defn, get_ext_lang_of_file)
5517 (eval_ext_lang_from_control_command): Update.
5518 (finish_ext_lang_initialization)
5519 (auto_load_ext_lang_scripts_for_objfile)
5520 (ext_lang_type_printers::ext_lang_type_printers)
5521 (apply_ext_lang_type_printers)
5522 (ext_lang_type_printers::~ext_lang_type_printers)
5523 (apply_ext_lang_val_pretty_printer, apply_ext_lang_frame_filter)
5524 (preserve_ext_lang_values, get_breakpoint_cond_ext_lang)
5525 (breakpoint_ext_lang_cond_says_stop, check_quit_flag)
5526 (get_matching_xmethod_workers, ext_lang_colorize)
5527 (ext_lang_before_prompt): Update.
5528 (ALL_ENABLED_EXTENSION_LANGUAGES): Remove.
5529
596dc4ad
TT
55302020-05-08 Tom Tromey <tom@tromey.com>
5531
5532 * symtab.h (class demangle_result_storage) <set_malloc_ptr>: New
5533 overload.
5534 <swap_string, m_string>: Remove.
5535 * symtab.c (demangle_for_lookup, completion_list_add_symbol):
5536 Update.
5537 * stabsread.c (define_symbol, read_type): Update.
5538 * linespec.c (find_linespec_symbols): Update.
5539 * gnu-v3-abi.c (gnuv3_get_typeid): Update.
5540 * dwarf2/read.c (dwarf2_canonicalize_name): Update.
5541 * dbxread.c (read_dbx_symtab): Update.
5542 * cp-support.h (cp_canonicalize_string_full)
5543 (cp_canonicalize_string, cp_canonicalize_string_no_typedefs):
5544 Return unique_xmalloc_ptr.
5545 * cp-support.c (inspect_type): Update.
5546 (cp_canonicalize_string_full): Return unique_xmalloc_ptr.
5547 (cp_canonicalize_string_no_typedefs, cp_canonicalize_string):
5548 Likewise.
5549 * c-typeprint.c (print_name_maybe_canonical): Update.
5550 * break-catch-throw.c (check_status_exception_catchpoint):
5551 Update.
5552
bf4cb9be
TV
55532020-05-08 Tom de Vries <tdevries@suse.de>
5554
5555 * infrun.c (follow_fork): Copy current_line and current_symtab to
5556 child thread.
5557
a1b68f28
SM
55582020-05-07 Simon Marchi <simon.marchi@efficios.com>
5559
5560 * async-event.c (struct async_signal_handler, struct
5561 async_event_handler): Reformat, remove typedef.
5562
98d48915
SM
55632020-05-07 Simon Marchi <simon.marchi@efficios.com>
5564
5565 * gdbtypes.h (TYPE_DYN_PROP_LIST): Remove. Update all users
5566 access thistype->main_type->dyn_prop_list directly.
5567
7aa91313
SM
55682020-05-07 Simon Marchi <simon.marchi@efficios.com>
5569
5570 * gdbtypes.h (struct type) <remove_dyn_prop>: New method.
5571 (remove_dyn_prop): Remove. Update all users to use
5572 type::remove_dyn_prop.
5573 * gdbtypes.c (remove_dyn_prop): Rename to...
5574 (type::remove_dyn_prop): ... this.
5575
5c54719c
SM
55762020-05-07 Simon Marchi via Gdb-patches <gdb-patches@sourceware.org>
5577
5578 * gdbtypes.h (struct type) <add_dyn_prop>: New method.
5579 (add_dyn_prop): Remove. Update all users to use
5580 type::add_dyn_prop.
5581 * gdbtypes.c (add_dyn_prop): Rename to...
5582 (type::add_dyn_prop): ... this.
5583
24e99c6c
SM
55842020-05-07 Simon Marchi <simon.marchi@efficios.com>
5585
5586 * gdbtypes.h (struct type) <get_dyn_prop>: New method.
5587 (get_dyn_prop): Remove. Update all users to use
5588 type::dyn_prop.
5589 * gdbtypes.c (get_dyn_prop): Rename to...
5590 (type::dyn_prop): ... this.
5591
0d4bf016
SM
55922020-05-06 Simon Marchi <simon.marchi@efficios.com>
5593
5594 * gdbtypes.h (struct main_type) <flag_static>: Remove.
5595
ac4a4f1c
SM
55962020-05-06 Simon Marchi <simon.marchi@efficios.com>
5597
5598 * amd64-tdep.c (amd64_analyze_prologue): Check for `endbr64`
5599 instruction, skip it if it's there.
5600
a3bbacc1
SM
56012020-05-05 Simon Marchi <simon.marchi@efficios.com>
5602
5603 * gdbtypes.h (struct main_type) <flag_incomplete>: Remove.
5604
c3236f84
SM
56052020-05-04 Simon Marchi <simon.marchi@efficios.com>
5606
5607 * gdbtypes.h (TYPE_INCOMPLETE): Remove.
5608 * gdbtypes.c (recursive_dump_type): Remove use of
5609 TYPE_INCOMPLETE.
5610
3b6acaee
TT
56112020-05-03 Tom Tromey <tom@tromey.com>
5612
5613 * breakpoint.c (catch_command, tcatch_command): Remove.
5614 (_initialize_breakpoint): Use add_basic_prefix_cmd,
5615 add_show_prefix_cmd.
5616 (set_breakpoint_cmd, show_breakpoint_cmd): Remove
5617 * utils.c (set_internal_problem_cmd, show_internal_problem_cmd):
5618 Remove.
5619 (add_internal_problem_command): Use add_basic_prefix_cmd,
5620 add_show_prefix_cmd.
5621 * mips-tdep.c (set_mipsfpu_command): Remove.
5622 (_initialize_mips_tdep): Use add_basic_prefix_cmd.
5623 * dwarf2/index-cache.c (set_index_cache_command): Remove.
5624 (_initialize_index_cache): Use add_basic_prefix_cmd.
5625 * memattr.c (dummy_cmd): Remove.
5626 (_initialize_mem): Use add_basic_prefix_cmd, add_show_prefix_cmd.
5627 * tui/tui-win.c (set_tui_cmd, show_tui_cmd): Remove.
5628 (_initialize_tui_win): Use add_basic_prefix_cmd,
5629 add_show_prefix_cmd.
5630 * cli/cli-logging.c (set_logging_command): Remove.
5631 (_initialize_cli_logging): Use add_basic_prefix_cmd,
5632 add_show_prefix_cmd.
5633 (show_logging_command): Remove.
5634 * target.c (target_command): Remove.
5635 (add_target): Use add_basic_prefix_cmd.
5636
a51119cd
HD
56372020-05-02 Hannes Domani <ssbssa@yahoo.de>
5638
5639 * gdbtypes.h (enum dynamic_prop_node_kind): Fix typo.
5640
652fc23a 56412020-05-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6a6ea76a 5642
652fc23a
PW
5643 * gdb-gdb.gdb-in: Remove breakpoint on disappeared function
5644 info_command.
5645
117539e6
KR
56462020-04-30 Kamil Rytarowski <n54@gmx.com>
5647
5648 * nbsd-nat.c (nbsd_enable_proc_events)
5649 (nbsd_nat_target::post_startup_inferior): Add.
5650 (nbsd_nat_target::post_attach): Call `nbsd_enable_proc_events'.
5651 (nbsd_nat_target::update_thread_list): Rewrite.
5652 (nbsd_nat_target::wait): Handle "PTRACE_LWP_EXIT" and
5653 "PTRACE_LWP_CREATE".
5654 * nbsd-nat.h (nbsd_nat_target::post_startup_inferior): Add.
5655
102e38eb 56562020-04-30 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6a6ea76a 5657
102e38eb
PW
5658 * stack.c (_initialize_stack): Remove duplicated creation
5659 of "frame" command and "f" alias.
5660
ee9d1e5f
HD
56612020-04-30 Hannes Domani <ssbssa@yahoo.de>
5662
5663 PR gdb/18706
5664 * gdbtypes.c (check_typedef): Calculate size of array of
5665 stubbed type.
5666
627c7fb8
HD
56672020-04-30 Hannes Domani <ssbssa@yahoo.de>
5668
5669 PR gdb/15559
5670 * i386-tdep.c (i386_push_dummy_call): Call
5671 i386_thiscall_push_dummy_call.
5672 (i386_thiscall_push_dummy_call): New function.
5673 * i386-tdep.h (i386_thiscall_push_dummy_call): Declare.
5674 * i386-windows-tdep.c (i386_windows_push_dummy_call): New function.
5675 (i386_windows_init_abi): Call set_gdbarch_push_dummy_call.
5676
ffc2844e
SM
56772020-04-29 Simon Marchi <simon.marchi@efficios.com>
5678
5679 * gdbarch.sh (do_read): Add shellcheck disable directive for
5680 warning SC2162.
5681
1207375d
SM
56822020-04-29 Simon Marchi <simon.marchi@efficios.com>
5683
5684 * gdbarch.sh: Use ${foo:-} where shellcheck would report a
5685 "referenced but not assigned" warning.
5686
9fdb2916
SM
56872020-04-29 Simon Marchi <simon.marchi@efficios.com>
5688
5689 * gdbarch.sh: Remove code that sets fallbackdefault.
5690
759cea5e
SM
56912020-04-29 Simon Marchi <simon.marchi@efficios.com>
5692
5693 * gdbarch.sh: Use shell operators && and || instead of
5694 -a and -o.
5695
cb02ab24
SM
56962020-04-29 Simon Marchi <simon.marchi@efficios.com>
5697
5698 * gdbarch.sh: Use $(...) instead of `...`.
5699
a6fc5ffc
SM
57002020-04-29 Simon Marchi <simon.marchi@efficios.com>
5701
5702 * gdbarch.sh: Use double quotes around variables.
5703
8d113d13
SM
57042020-04-29 Simon Marchi <simon.marchi@efficios.com>
5705
5706 * gdbarch.sh: Use %s with printf, instead of variables in the
5707 format string.
5708
ed6acedd
TT
57092020-04-29 Tom Tromey <tromey@adacore.com>
5710
5711 PR ada/25875:
5712 * dwarf2/read.c (update_enumeration_type_from_children): Compute
5713 type fields here.
5714 (read_enumeration_type): Call
5715 update_enumeration_type_from_children later. Update comments.
5716 (process_enumeration_scope): Don't create type fields.
5717
b68b1b58
KR
57182020-04-29 Kamil Rytarowski <n54@gmx.com>
5719
5720 * nbsd-tdep.c: Include "xml-syscall.h".
5721 (nbsd_init_abi): Call `set_xml_syscall_file_name'.
5722
f94b2e03
KR
57232020-04-29 Kamil Rytarowski <n54@gmx.com>
5724
5725 * nbsd-nat.c: Include "sys/wait.h".
5726 (nbsd_resume, nbsd_nat_target::resume, nbsd_wait)
5727 (nbsd_nat_target::wait, nbsd_nat_target::insert_exec_catchpoint)
5728 (nbsd_nat_target::remove_exec_catchpoint)
5729 (nbsd_nat_target::set_syscall_catchpoint): Add.
5730 * nbsd-nat.h (nbsd_nat_target::resume, nbsd_nat_target::wait)
5731 (nbsd_nat_target::insert_exec_catchpoint)
5732 (nbsd_nat_target::remove_exec_catchpoint)
5733 (nbsd_nat_target::set_syscall_catchpoint): Add.
5734 * nbsd-tdep.c (nbsd_get_syscall_number): Add.
5735 (nbsd_init_abi): Call `set_gdbarch_get_syscall_number' and pass
5736 `nbsd_get_syscall_number'.
5737
fc49bc72
TT
57382020-04-29 Tom Tromey <tom@tromey.com>
5739
5740 * stack.c (print_block_frame_labels): Remove.
5741
d642b692
HD
57422020-04-29 Hannes Domani <ssbssa@yahoo.de>
5743
5744 PR gdb/17320
5745 * ada-valprint.c (val_print_packed_array_elements): Move array
5746 end bracket to new line.
5747 (ada_val_print_string): Remove extra spaces before first array
5748 element.
5749 * c-valprint.c (c_value_print_array): Likewise.
5750 * m2-valprint.c (m2_print_array_contents): Likewise.
5751 (m2_value_print_inner): Likewise.
5752 * p-valprint.c (pascal_value_print_inner): Likewise.
5753 * valprint.c (generic_val_print_array): Likewise.
5754 (value_print_array_elements): Move first array element and array
5755 end bracket to new line.
5756
ea90f227
TV
57572020-04-29 Tom de Vries <tdevries@suse.de>
5758
5759 PR symtab/25889
5760 * linespec.c (find_method): Fix ix calculation.
5761
4498ef4f
KR
57622020-04-28 Kamil Rytarowski <n54@gmx.com>
5763
5764 * syscalls/update-netbsd.sh: New file.
5765 * syscalls/netbsd.xml: Regenerate.
5766 * data-directory/Makefile.in: Register `netbsd.xml' in
5767 `SYSCALLS_FILES'.
5768
a55e30b5
SM
57692020-04-28 Simon Marchi <simon.marchi@efficios.com>
5770
5771 * syscalls/update-freebsd.sh: Add double quotes.
5772
2b2fbab8
TT
57732020-04-28 Tom Tromey <tom@tromey.com>
5774
5775 * NEWS: Update.
5776 * python/py-cmd.c (gdbpy_initialize_commands): Add COMMAND_TUI.
5777 (cmdpy_init): Allow class_tui.
5778
a65189c9
TV
57792020-04-28 Mark Williams <mark@myosotissp.com>
5780
5781 PR gdb/24480
5782 * dwarf2read.c: Add missing assingments to list_in_scope when
5783 start_symtab was already called.
5784
1b95cdb7
SM
57852020-04-28 Simon Marchi <simon.marchi@efficios.com>
5786
5787 PR gdb/25881
5788 * dwarf2/read.c (offset_map_type): Use
5789 gdb:hash_enum<sect_offset> as hash function.
5790
15cd93d0
TV
57912020-04-28 Tom de Vries <tdevries@suse.de>
5792
5793 * dwarf2/read.c (process_structure_scope): Add symbol for struct decl
5794 with DW_AT_signature.
5795
1eb39914
SM
57962020-04-27 Simon Marchi <simon.marchi@efficios.com>
5797
5798 * configure.ac: Remove check for fs_base/gs_base in
5799 user_regs_struct.
5800 * configure: Re-generate.
5801 * config.in: Re-generate.
5802 * amd64-nat.c (amd64_native_gregset_reg_offset): Adjust.
5803 * amd64-linux-nat.c (amd64_linux_nat_target::fetch_registers,
5804 amd64_linux_nat_target::store_registers, ps_get_thread_area, ): Adjust.
5805
991a3e2e
LM
58062020-04-27 Luis Machado <luis.machado@linaro.org>
5807
5808 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first): Handle
5809 problematic inline frame unwinding situation.
5810 * frame.c (frame_id_computed_p): New function.
5811 * frame.h (frame_id_computed_p): New prototype.
5812
361ba0e8
TT
58132020-04-26 Tom Tromey <tom@tromey.com>
5814
5815 * command.h (enum command_class) <class_pseudo>: Remove.
5816
bc3609fd
PW
58172020-04-26 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5818
5819 * cli/cli-decode.c (lookup_cmd_composition): Fix comments
5820 and whitespace.
5821
b9771db7
KR
58222020-04-25 Kamil Rytarowski <n54@gmx.com>
5823
ec16513e
SM
5824 * inf-ptrace.c (inf_ptrace_target::wait): Remove
5825 `PT_GET_PROCESS_STATE' block.
b9771db7 5826
7151c1af
TT
58272020-04-24 Tom Tromey <tom@tromey.com>
5828
5829 * symtab.h (symbol_get_demangled_name): Don't declare.
5830 * symtab.c (symbol_get_demangled_name): Remove.
5831 (general_symbol_info::natural_name)
5832 (general_symbol_info::demangled_name): Update.
5833
906bb4c5
TT
58342020-04-24 Tom Tromey <tom@tromey.com>
5835
5836 PR rust/25025:
5837 * dwarf2/read.c (dwarf2_physname): Do not demangle for Rust.
5838
bcfe6157
TT
58392020-04-24 Tom Tromey <tom@tromey.com>
5840
5841 PR symtab/12707:
5842 * dwarf2/read.c (add_partial_symbol): Use the linkage name if it
5843 exists.
5844 (new_symbol): Likewise.
5845 * compile/compile-object-load.c (get_out_value_type): Use
5846 symbol_matches_search_name.
5847
f049a313
TT
58482020-04-24 Tom Tromey <tom@tromey.com>
5849
5850 * dwarf2/read.c (add_partial_symbol): Do not call
5851 compute_and_set_names.
5852
76e288d1
TT
58532020-04-24 Tom Tromey <tom@tromey.com>
5854
5855 * dwarf2/read.c (add_partial_symbol): Use new add_psymbol_to_list
5856 overload.
5857
2467f4f6
TT
58582020-04-24 Tom Tromey <tom@tromey.com>
5859
5860 * psymtab.c (add_psymbol_to_bcache): Simplify calling convention.
5861 (add_psymbol_to_list): New overload. Make old overload call new
5862 one.
5863 * psympriv.h (add_psymbol_to_list): New overload.
5864
e61108c9
TT
58652020-04-24 Tom Tromey <tom@tromey.com>
5866
5867 * dwarf2/read.c (partial_die_info::read) <case
5868 DW_AT_linkage_name>: Use value_as_string.
5869 (dwarf2_string_attr): Use value_as_string.
5870 * dwarf2/attribute.h (struct attribute) <value_as_string>: Declare
5871 method.
5872 * dwarf2/attribute.c (attribute::value_as_string): New method.
5873
8c87a452
TT
58742020-04-24 Tom Tromey <tom@tromey.com>
5875
5876 * symtab.c (general_symbol_info::natural_name)
5877 (general_symbol_info::demangled_name): Check for language_rust.
5878
787de330
TT
58792020-04-24 Tom Tromey <tom@tromey.com>
5880
5881 * dwarf2/read.c (dw2_linkage_name): Move Rust "{" hack here...
5882 (dwarf2_physname): ... from here.
5883 (partial_die_info::read): Add Rust "{" hack.
5884
ff985671
TT
58852020-04-24 Tom Tromey <tom@tromey.com>
5886
5887 * symtab.h (struct general_symbol_info) <set_demangled_name>: New
5888 method.
5889 (symbol_set_demangled_name): Don't declare.
5890 * symtab.c (general_symbol_info::set_demangled_name): Rename from
5891 symbol_set_demangled_name.
5892 (general_symbol_info::set_language)
5893 (general_symbol_info::compute_and_set_names): Update.
5894 * minsyms.c (minimal_symbol_reader::install): Update.
5895 * dwarf2/read.c (new_symbol): Update.
5896
1acda803
TT
58972020-04-24 Tom Tromey <tromey@adacore.com>
5898
5899 PR python/23662:
5900 * python/py-type.c (convert_field): Handle
5901 FIELD_LOC_KIND_DWARF_BLOCK.
5902 (typy_get_sizeof): Handle TYPE_HAS_DYNAMIC_LENGTH.
5903 (typy_get_dynamic): Nw function.
5904 (type_object_getset): Add "dynamic".
5905 * NEWS: Add entry.
5906
d656f129
TT
59072020-04-24 Tom Tromey <tromey@adacore.com>
5908
5909 * ada-typeprint.c (print_choices, print_variant_part)
5910 (print_record_field_types_dynamic): New functions.
5911 (print_record_field_types): Use print_record_field_types_dynamic.
5912
7d79de9a
TT
59132020-04-24 Tom Tromey <tromey@adacore.com>
5914
5915 * dwarf2/read.c (handle_data_member_location): New overload.
5916 (dwarf2_add_field): Use it.
5917 (decode_locdesc): Add "computed" parameter. Update comment.
5918 * gdbtypes.c (is_dynamic_type_internal): Also look for
5919 FIELD_LOC_KIND_DWARF_BLOCK.
5920 (resolve_dynamic_struct): Handle FIELD_LOC_KIND_DWARF_BLOCK.
5921 * gdbtypes.c (is_dynamic_type_internal): Add special case for C++
5922 virtual base classes.
5923 * gnu-v3-abi.c (gnuv3_baseclass_offset): Handle
5924 FIELD_LOC_KIND_DWARF_BLOCK.
5925
f8e89861
TT
59262020-04-24 Tom Tromey <tromey@adacore.com>
5927
5928 * dwarf2/read.c (read_structure_type): Handle dynamic length.
5929 * gdbtypes.c (is_dynamic_type_internal): Check
5930 TYPE_HAS_DYNAMIC_LENGTH.
5931 (resolve_dynamic_type_internal): Use TYPE_DYNAMIC_LENGTH.
5932 * gdbtypes.h (TYPE_HAS_DYNAMIC_LENGTH, TYPE_DYNAMIC_LENGTH):
5933 New macros.
5934 (enum dynamic_prop_node_kind) <DYN_PROP_BYTE_SIZE>: New
5935 constant.
5936
9c6a1327
TT
59372020-04-24 Tom Tromey <tromey@adacore.com>
5938
5939 * dwarf2/read.c (struct variant_field): Rewrite.
5940 (struct variant_part_builder): New.
5941 (struct nextfield): Remove "variant" field. Add "offset".
5942 (struct field_info): Add "current_variant_part" and
5943 "variant_parts".
5944 (alloc_discriminant_info): Remove.
5945 (alloc_rust_variant): New function.
5946 (quirk_rust_enum): Update.
5947 (dwarf2_add_field): Set "offset" member. Don't handle
5948 DW_TAG_variant_part.
5949 (offset_map_type): New typedef.
5950 (convert_variant_range, create_one_variant)
5951 (create_one_variant_part, create_variant_parts)
5952 (add_variant_property): New functions.
5953 (dwarf2_attach_fields_to_type): Call add_variant_property.
5954 (read_structure_type): Don't handle DW_TAG_variant_part.
5955 (handle_variant_part, handle_variant): New functions.
5956 (handle_struct_member_die): Use them.
5957 (process_structure_scope): Don't handle variant parts.
5958 * gdbtypes.h (TYPE_FLAG_DISCRIMINATED_UNION): Remove.
5959 (struct discriminant_info): Remove.
5960 (enum dynamic_prop_node_kind) <DYN_PROP_DISCRIMINATED>: Remove.
5961 (struct main_type) <flag_discriminated_union>: Remove.
5962 * rust-lang.c (rust_enum_p, rust_empty_enum_p): Rewrite.
5963 (rust_enum_variant): Return int. Remove "contents". Rewrite.
5964 (rust_print_enum, rust_print_struct_def, rust_evaluate_subexp):
5965 Update.
5966 * valops.c (value_union_variant): Remove.
5967 * value.h (value_union_variant): Don't declare.
5968
b249d2c2
TT
59692020-04-24 Tom Tromey <tromey@adacore.com>
5970
5971 * ada-lang.c (ada_discrete_type_high_bound, ada_discrete_type_low)
5972 (ada_value_primitive_packed_val): Update.
5973 * ada-valprint.c (ada_value_print_1): Update.
5974 * dwarf2/loc.c (evaluate_for_locexpr_baton): New struct.
5975 (dwarf2_locexpr_baton_eval): Take a property_addr_info rather than
5976 just an address. Use evaluate_for_locexpr_baton.
5977 (dwarf2_evaluate_property): Update.
5978 * dwarf2/loc.h (struct property_addr_info) <valaddr>: Now an
5979 array_view.
5980 * findvar.c (default_read_var_value): Update.
5981 * gdbtypes.c (compute_variant_fields_inner)
5982 (resolve_dynamic_type_internal): Update.
5983 (resolve_dynamic_type): Change type of valaddr parameter.
5984 * gdbtypes.h (resolve_dynamic_type): Update.
5985 * valarith.c (value_subscripted_rvalue): Update.
5986 * value.c (value_from_contents_and_address): Update.
5987
61122aa9
TT
59882020-04-24 Tom Tromey <tromey@adacore.com>
5989
5990 * dwarf2/loc.c (dwarf2_locexpr_baton_eval): Add
5991 "push_initial_value" parameter.
5992 (dwarf2_evaluate_property): Likewise.
5993 * dwarf2/loc.h (dwarf2_evaluate_property): Update.
5994
ef83a141
TT
59952020-04-24 Tom Tromey <tromey@adacore.com>
5996
5997 * gdbtypes.c (is_dynamic_type_internal): Check for variant parts.
5998 (variant::matches, compute_variant_fields_recurse)
5999 (compute_variant_fields_inner, compute_variant_fields): New
6000 functions.
6001 (resolve_dynamic_struct): Check for DYN_PROP_VARIANT_PARTS.
6002 Use resolved_type after type is made.
6003 (operator==): Add new cases.
6004 * gdbtypes.h (TYPE_HAS_VARIANT_PARTS): New macro.
6005 (struct discriminant_range, struct variant, struct variant_part):
6006 New.
6007 (union dynamic_prop_data) <variant_parts, original_type>: New
6008 members.
6009 (enum dynamic_prop_node_kind) <DYN_PROP_VARIANT_PARTS>: New constant.
6010 (enum dynamic_prop_kind) <PROP_TYPE, PROP_VARIANT_PARTS>: New
6011 constants.
6012 * value.c (unpack_bits_as_long): Now public.
6013 * value.h (unpack_bits_as_long): Declare.
6014
675127ec
TT
60152020-04-24 Tom Tromey <tromey@adacore.com>
6016
6017 * rs6000-tdep.c (struct ppc_variant): Rename from "variant".
6018 (variants, find_variant_by_arch, rs6000_gdbarch_init): Update.
6019
9852ceef
HD
60202020-04-24 Hannes Domani <ssbssa@yahoo.de>
6021
6022 * windows-tdep.c (exception_values): Add WOW64 exception numbers.
6023
7632c6ce
KR
60242020-04-24 Kamil Rytarowski <n54@gmx.com>
6025
6026 * inf-ptrace.h (follow_fork, insert_fork_catchpoint)
6027 (remove_fork_catchpoint, post_startup_inferior)
6028 (post_attach): Move...
6029 * obsd-nat.h (follow_fork, insert_fork_catchpoint)
6030 (remove_fork_catchpoint, post_startup_inferior)
6031 (post_attach): ...here.
6032 * inf-ptrace.c (follow_fork, insert_fork_catchpoint)
6033 (remove_fork_catchpoint, post_startup_inferior)
6034 (post_attach): Move...
6035 * obsd-nat.c (follow_fork, insert_fork_catchpoint)
6036 (remove_fork_catchpoint, post_startup_inferior)
6037 (post_attach): ...here.
6038
7be2bb4f
TT
60392020-04-24 Tom Tromey <tromey@adacore.com>
6040
6041 * nat/windows-nat.h (struct windows_thread_info)
6042 <pc_adjusted>: New member.
6043 * windows-nat.c (windows_fetch_one_register): Check
6044 pc_adjusted.
6045 (windows_nat_target::get_windows_debug_event)
6046 (windows_nat_target::wait): Set pc_adjusted.
6047
f80cb3b4
TV
60482020-04-24 Tom de Vries <tdevries@suse.de>
6049
6050 * contrib/cc-with-tweaks.sh: Remove <exec>.gdb-index file handling.
6051 Run gdb-add-index inside temp dir.
6052
29514b87
TT
60532020-04-23 Tom Tromey <tromey@adacore.com>
6054
6055 * windows-tdep.c (is_linked_with_cygwin_dll): Always update "iter"
6056 in loop.
6057
5939967b
LM
60582020-04-23 Luis Machado <luis.machado@linaro.org>
6059
6060 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first): Use
6061 get_frame_register instead of gdbarch_unwind_pc.
6062
70bc38f5
TV
60632020-04-23 Tom de Vries <tdevries@suse.de>
6064
6065 * symtab.c (lookup_global_symbol): Prefer def over decl.
6066
de82891c
TV
60672020-04-23 Tom de Vries <tdevries@suse.de>
6068
6069 PR symtab/25807
6070 * block.c (best_symbol, better_symbol): Promote to external.
6071 * block.h (best_symbol, better_symbol): Declare.
6072 * symtab.c (lookup_symbol_in_objfile_symtabs): Prefer def over
6073 decl.
6074
ecc6c606
TT
60752020-04-23 Tom Tromey <tromey@adacore.com>
6076
6077 PR ada/25837:
6078 * dwarf2/read.c (dw2_expand_symtabs_matching_symbol): Store a
6079 "const char *", not a "const std::string &".
6080 <name_and_matcher::operator==>: Update.
6081 * unittests/lookup_name_info-selftests.c: Change type of
6082 "result".
6083
740480b8
TT
60842020-04-23 Tom Tromey <tom@tromey.com>
6085
6086 * inferior.h (iterate_over_inferiors): Don't declare.
6087 * inferior.c (iterate_over_inferiors): Remove.
6088 * darwin-nat.c (find_inferior_task_it, find_inferior_pid_it):
6089 Remove.
6090 (darwin_find_inferior_by_task, darwin_find_inferior_by_pid): Don't
6091 use iterate_over_inferiors.
6092 (darwin_resume_inferior_it)
6093 (struct resume_inferior_threads_param)
6094 (darwin_resume_inferior_threads_it): Remove.
6095 (darwin_nat_target::resume): Don't use iterate_over_inferiors.
6096
ae3ab1f0
TV
60972020-04-23 Tom de Vries <tdevries@suse.de>
6098
6099 * blockframe.c (find_pc_partial_function): Use
6100 find_pc_sect_compunit_symtab rather than
6101 objfile->sf->qf->find_pc_sect_compunit_symtab.
6102
317d2668
TV
61032020-04-22 Tom de Vries <tdevries@suse.de>
6104
6105 PR symtab/25764
6106 * dwarf2/read.c (scan_partial_symbols): Allow external variable decls
6107 in psymtabs.
6108
eea9e357
TV
61092020-04-22 Tom de Vries <tdevries@suse.de>
6110
6111 PR symtab/25801
6112 * psymtab.c (psym_map_symtabs_matching_filename): Don't skip shared
6113 symtabs.
6114
3d5afab3
TV
61152020-04-22 Tom de Vries <tdevries@suse.de>
6116
6117 PR symtab/25700
6118 * dwarf2/read.c (dwarf2_build_psymtabs_hard): Don't create psymtab for
6119 CU if already created.
6120
d43b7a2d
TBA
61212020-04-21 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
6122
6123 * infrun.c (displaced_step_fixup): Switch to the event_thread
6124 before calling displaced_step_restore, not after.
6125
d89edf9b
MM
61262020-04-21 Markus Metzger <markus.t.metzger@intel.com>
6127
6128 * record-btrace.c (record_btrace_enable_warn): Ignore thread if
6129 its inferior is not recorded by us.
6130 (record_btrace_target_open): Replace call to
6131 all_non_exited_threads () with call to current_inferior
6132 ()->non_exited_threads ().
6133 (record_btrace_target::stop_recording): Likewise.
6134 (record_btrace_target::close): Likewise.
6135 (record_btrace_target::wait): Likewise.
6136 (record_btrace_target::record_stop_replaying): Likewise.
6137
5897fd49
MM
61382020-04-21 Markus Metzger <markus.t.metzger@intel.com>
6139
6140 * btrace.c (btrace_enable): Throw an error on double enables and
6141 when enabling recording fails.
6142 (btrace_disable): Throw an error if the thread is not recorded.
6143
1a476b6d
MM
61442020-04-21 Markus Metzger <markus.t.metzger@intel.com>
6145
6146 * record-btrace.c (record_btrace_target::fetch_registers): Forward
6147 request if we do not have a thread_info.
6148
4778a5f8
TV
61492020-04-21 Tom de Vries <tdevries@suse.de>
6150
6151 PR gdb/25471
6152 * thread.c
6153 (scoped_restore_current_thread::scoped_restore_current_thread): Catch
6154 exception in get_frame_id.
6155
0fa7617d
TT
61562020-04-20 Tom Tromey <tromey@adacore.com>
6157
6158 * python/python.c (struct gdbpy_event): Mark move constructor as
6159 noexcept.
6160 * python/py-tui.c (class gdbpy_tui_window_maker): Mark move
6161 constructor as noexcept.
6162 * completer.h (struct completion_result): Mark move constructor as
6163 noexcept.
6164 * completer.c (completion_result::completion_result): Use
6165 initialization style. Don't call reset_match_list.
6166
ad23bda0
MS
61672020-04-20 Mihails Strasuns <mihails.strasuns@intel.com>
6168
6169 * MAINTAINERS (Write After Approval): Add myself.
6170
45e1f031
TT
61712020-04-18 Tom Tromey <tom@tromey.com>
6172
6173 * windows-tdep.c (init_w32_command_list)
6174 (w32_prefix_command_valid): Restore.
6175 (_initialize_windows_tdep): Call init_w32_command_list.
6176
08feed99
TT
61772020-04-18 Tom Tromey <tom@tromey.com>
6178
6179 * xcoffread.c (enter_line_range, scan_xcoff_symtab): Update.
6180 * value.c (value_fn_field): Update.
6181 * valops.c (find_function_in_inferior)
6182 (value_allocate_space_in_inferior): Update.
6183 * tui/tui-winsource.c (tui_update_source_windows_with_line):
6184 Update.
6185 * tui/tui-source.c (tui_source_window::set_contents): Update.
6186 * symtab.c (lookup_global_or_static_symbol)
6187 (find_function_start_sal_1, skip_prologue_sal)
6188 (print_msymbol_info, find_gnu_ifunc, symbol_arch): Update.
6189 * symmisc.c (dump_msymbols, dump_symtab_1)
6190 (maintenance_print_one_line_table): Update.
6191 * symfile.c (init_entry_point_info, section_is_mapped)
6192 (list_overlays_command, simple_read_overlay_table)
6193 (simple_overlay_update_1): Update.
6194 * stap-probe.c (handle_stap_probe): Update.
6195 * stabsread.c (dbx_init_float_type, define_symbol)
6196 (read_one_struct_field, read_enum_type, read_range_type): Update.
6197 * source.c (info_line_command): Update.
6198 * python/python.c (gdbpy_source_objfile_script)
6199 (gdbpy_execute_objfile_script): Update.
6200 * python/py-type.c (save_objfile_types): Update.
6201 * python/py-objfile.c (py_free_objfile): Update.
6202 * python/py-inferior.c (python_new_objfile): Update.
6203 * psymtab.c (psym_find_pc_sect_compunit_symtab, dump_psymtab)
6204 (dump_psymtab_addrmap_1, maintenance_info_psymtabs)
6205 (maintenance_check_psymtabs): Update.
6206 * printcmd.c (info_address_command): Update.
6207 * objfiles.h (struct objfile) <arch>: New method, from
6208 get_objfile_arch.
6209 (get_objfile_arch): Don't declare.
6210 * objfiles.c (get_objfile_arch): Remove.
6211 (filter_overlapping_sections): Update.
6212 * minsyms.c (msymbol_is_function): Update.
6213 * mi/mi-symbol-cmds.c (mi_cmd_symbol_list_lines)
6214 (output_nondebug_symbol): Update.
6215 * mdebugread.c (parse_symbol, basic_type, parse_partial_symbols)
6216 (mdebug_expand_psymtab): Update.
6217 * machoread.c (macho_add_oso_symfile): Update.
6218 * linux-tdep.c (linux_infcall_mmap, linux_infcall_munmap):
6219 Update.
6220 * linux-fork.c (checkpoint_command): Update.
6221 * linespec.c (convert_linespec_to_sals): Update.
6222 * jit.c (finalize_symtab): Update.
6223 * infrun.c (insert_exception_resume_from_probe): Update.
6224 * ia64-tdep.c (ia64_find_unwind_table): Update.
6225 * hppa-tdep.c (internalize_unwinds): Update.
6226 * gdbtypes.c (get_type_arch, init_float_type, objfile_type):
6227 Update.
6228 * gcore.c (call_target_sbrk): Update.
6229 * elfread.c (record_minimal_symbol, elf_symtab_read)
6230 (elf_rel_plt_read, elf_gnu_ifunc_record_cache)
6231 (elf_gnu_ifunc_resolve_by_got): Update.
6232 * dwarf2/read.c (create_addrmap_from_index)
6233 (create_addrmap_from_aranges, dw2_find_pc_sect_compunit_symtab)
6234 (read_debug_names_from_section)
6235 (process_psymtab_comp_unit_reader, add_partial_symbol)
6236 (add_partial_subprogram, process_full_comp_unit)
6237 (read_file_scope, read_func_scope, read_lexical_block_scope)
6238 (read_call_site_scope, dwarf2_ranges_read)
6239 (dwarf2_record_block_ranges, dwarf2_add_field)
6240 (mark_common_block_symbol_computed, read_tag_pointer_type)
6241 (read_tag_string_type, dwarf2_init_float_type)
6242 (dwarf2_init_complex_target_type, read_base_type)
6243 (partial_die_info::read, partial_die_info::read)
6244 (read_attribute_value, dwarf_decode_lines_1, new_symbol)
6245 (dwarf2_fetch_die_loc_sect_off): Update.
6246 * dwarf2/loc.c (dwarf2_find_location_expression)
6247 (class dwarf_evaluate_loc_desc, rw_pieced_value)
6248 (dwarf2_evaluate_loc_desc_full, dwarf2_locexpr_baton_eval)
6249 (dwarf2_loc_desc_get_symbol_read_needs)
6250 (locexpr_describe_location_piece, locexpr_describe_location_1)
6251 (loclist_describe_location): Update.
6252 * dwarf2/index-write.c (write_debug_names): Update.
6253 * dwarf2/frame.c (dwarf2_build_frame_info): Update.
6254 * dtrace-probe.c (dtrace_process_dof): Update.
6255 * dbxread.c (read_dbx_symtab, dbx_end_psymtab)
6256 (process_one_symbol): Update.
6257 * ctfread.c (ctf_init_float_type, read_base_type): Update.
6258 * coffread.c (coff_symtab_read, enter_linenos, decode_base_type)
6259 (coff_read_enum_type): Update.
6260 * cli/cli-cmds.c (edit_command, list_command): Update.
6261 * buildsym.c (buildsym_compunit::finish_block_internal): Update.
6262 * breakpoint.c (create_overlay_event_breakpoint)
6263 (create_longjmp_master_breakpoint)
6264 (create_std_terminate_master_breakpoint)
6265 (create_exception_master_breakpoint, get_sal_arch): Update.
6266 * block.c (block_gdbarch): Update.
6267 * annotate.c (annotate_source_line): Update.
6268
0743fc83
TT
62692020-04-17 Tom Tromey <tromey@adacore.com>
6270
6271 * auto-load.c (show_auto_load_cmd): Remove.
6272 (auto_load_show_cmdlist_get): Use add_show_prefix_cmd.
6273 * arc-tdep.c (_initialize_arc_tdep): Use add_show_prefix_cmd.
6274 (maintenance_print_arc_command): Remove.
6275 * tui/tui-win.c (tui_command): Remove.
6276 (tui_get_cmd_list): Use add_basic_prefix_cmd.
6277 * tui/tui-layout.c (tui_layout_command): Remove.
6278 (_initialize_tui_layout): Use add_basic_prefix_cmd.
6279 * python/python.c (user_set_python, user_show_python): Remove.
6280 (_initialize_python): Use add_basic_prefix_cmd,
6281 add_show_prefix_cmd.
6282 * guile/guile.c (set_guile_command, show_guile_command): Remove.
6283 (install_gdb_commands): Use add_basic_prefix_cmd,
6284 add_show_prefix_cmd.
6285 (info_guile_command): Remove.
6286 * dwarf2/read.c (set_dwarf_cmd, show_dwarf_cmd): Remove.
6287 (_initialize_dwarf2_read): Use add_basic_prefix_cmd,
6288 add_show_prefix_cmd.
6289 * cli/cli-style.h (class cli_style_option) <add_setshow_commands>:
6290 Remove do_set and do_show parameters.
6291 * cli/cli-style.c (set_style, show_style): Remove.
6292 (_initialize_cli_style): Use add_basic_prefix_cmd,
6293 add_show_prefix_cmd.
6294 (cli_style_option::add_setshow_commands): Remove do_set and
6295 do_show parameters.
6296 (cli_style_option::add_setshow_commands): Use
6297 add_basic_prefix_cmd, add_show_prefix_cmd.
6298 (STYLE_ADD_SETSHOW_COMMANDS): Remove macro.
6299 (set_style_name): Remove.
6300 * cli/cli-dump.c (dump_command, append_command): Remove.
6301 (srec_dump_command, ihex_dump_command, verilog_dump_command)
6302 (tekhex_dump_command, binary_dump_command)
6303 (binary_append_command): Remove.
6304 (_initialize_cli_dump): Use add_basic_prefix_cmd.
6305 * windows-tdep.c (w32_prefix_command_valid): Remove global.
6306 (init_w32_command_list): Remove; move into ...
6307 (_initialize_windows_tdep): ... here. Use add_basic_prefix_cmd.
6308 * valprint.c (set_print, show_print, set_print_raw)
6309 (show_print_raw): Remove.
6310 (_initialize_valprint): Use add_basic_prefix_cmd,
6311 add_show_prefix_cmd.
6312 * typeprint.c (set_print_type, show_print_type): Remove.
6313 (_initialize_typeprint): Use add_basic_prefix_cmd,
6314 add_show_prefix_cmd.
6315 * record.c (set_record_command, show_record_command): Remove.
6316 (_initialize_record): Use add_basic_prefix_cmd,
6317 add_show_prefix_cmd.
6318 * cli/cli-cmds.c (_initialize_cli_cmds): Use add_basic_prefix_cmd,
6319 add_show_prefix_cmd.
6320 (info_command, show_command, set_debug, show_debug): Remove.
6321 * top.h (set_history, show_history): Don't declare.
6322 * top.c (set_history, show_history): Remove.
6323 * target-descriptions.c (set_tdesc_cmd, show_tdesc_cmd)
6324 (unset_tdesc_cmd): Remove.
6325 (_initialize_target_descriptions): Use add_basic_prefix_cmd,
6326 add_show_prefix_cmd.
6327 * symtab.c (info_module_command): Remove.
6328 (_initialize_symtab): Use add_basic_prefix_cmd.
6329 * symfile.c (overlay_command): Remove.
6330 (_initialize_symfile): Use add_basic_prefix_cmd.
6331 * sparc64-tdep.c (info_adi_command): Remove.
6332 (_initialize_sparc64_adi_tdep): Use add_basic_prefix_cmd.
6333 * sh-tdep.c (show_sh_command, set_sh_command): Remove.
6334 (_initialize_sh_tdep): Use add_basic_prefix_cmd,
6335 add_show_prefix_cmd.
6336 * serial.c (serial_set_cmd, serial_show_cmd): Remove.
6337 (_initialize_serial): Use add_basic_prefix_cmd,
6338 add_show_prefix_cmd.
6339 * ser-tcp.c (set_tcp_cmd, show_tcp_cmd): Remove.
6340 (_initialize_ser_tcp): Use add_basic_prefix_cmd,
6341 add_show_prefix_cmd.
6342 * rs6000-tdep.c (set_powerpc_command, show_powerpc_command)
6343 (_initialize_rs6000_tdep): Use add_basic_prefix_cmd,
6344 add_show_prefix_cmd.
6345 * riscv-tdep.c (show_riscv_command, set_riscv_command)
6346 (show_debug_riscv_command, set_debug_riscv_command): Remove.
6347 (_initialize_riscv_tdep): Use add_basic_prefix_cmd,
6348 add_show_prefix_cmd.
6349 * remote.c (remote_command, set_remote_cmd): Remove.
6350 (_initialize_remote): Use add_basic_prefix_cmd.
6351 * record-full.c (set_record_full_command)
6352 (show_record_full_command): Remove.
6353 (_initialize_record_full): Use add_basic_prefix_cmd,
6354 add_show_prefix_cmd.
6355 * record-btrace.c (cmd_set_record_btrace)
6356 (cmd_show_record_btrace, cmd_set_record_btrace_bts)
6357 (cmd_show_record_btrace_bts, cmd_set_record_btrace_pt)
6358 (cmd_show_record_btrace_pt): Remove.
6359 (_initialize_record_btrace): Use add_basic_prefix_cmd,
6360 add_show_prefix_cmd.
6361 * ravenscar-thread.c (set_ravenscar_command)
6362 (show_ravenscar_command): Remove.
6363 (_initialize_ravenscar): Use add_basic_prefix_cmd,
6364 add_show_prefix_cmd.
6365 * mips-tdep.c (show_mips_command, set_mips_command)
6366 (_initialize_mips_tdep): Use add_basic_prefix_cmd,
6367 add_show_prefix_cmd.
6368 * maint.c (maintenance_command, maintenance_info_command)
6369 (maintenance_check_command, maintenance_print_command)
6370 (maintenance_set_cmd, maintenance_show_cmd): Remove.
6371 (_initialize_maint_cmds): Use add_basic_prefix_cmd,
6372 add_show_prefix_cmd.
6373 (show_per_command_cmd): Remove.
6374 * maint-test-settings.c (maintenance_set_test_settings_cmd):
6375 Remove.
6376 (maintenance_show_test_settings_cmd): Remove.
6377 (_initialize_maint_test_settings): Use add_basic_prefix_cmd,
6378 add_show_prefix_cmd.
6379 * maint-test-options.c (maintenance_test_options_command):
6380 Remove.
6381 (_initialize_maint_test_options): Use add_basic_prefix_cmd.
6382 * macrocmd.c (macro_command): Remove
6383 (_initialize_macrocmd): Use add_basic_prefix_cmd.
6384 * language.c (set_check, show_check): Remove.
6385 (_initialize_language): Use add_basic_prefix_cmd,
6386 add_show_prefix_cmd.
6387 * infcmd.c (unset_command): Remove.
6388 (_initialize_infcmd): Use add_basic_prefix_cmd.
6389 * i386-tdep.c (set_mpx_cmd, show_mpx_cmd): Remove.
6390 (_initialize_i386_tdep): Use add_basic_prefix_cmd,
6391 add_show_prefix_cmd.
6392 * go32-nat.c (go32_info_dos_command): Remove.
6393 (_initialize_go32_nat): Use add_basic_prefix_cmd.
6394 * cli/cli-decode.c (do_prefix_cmd, add_basic_prefix_cmd)
6395 (do_show_prefix_cmd, add_show_prefix_cmd): New functions.
6396 * frame.c (set_backtrace_cmd, show_backtrace_cmd): Remove.
6397 (_initialize_frame): Use add_basic_prefix_cmd,
6398 add_show_prefix_cmd.
6399 * dcache.c (set_dcache_command, show_dcache_command): Remove.
6400 (_initialize_dcache): Use add_basic_prefix_cmd,
6401 add_show_prefix_cmd.
6402 * cp-support.c (maint_cplus_command): Remove.
6403 (_initialize_cp_support): Use add_basic_prefix_cmd.
6404 * btrace.c (maint_btrace_cmd, maint_btrace_set_cmd)
6405 (maint_btrace_show_cmd, maint_btrace_pt_set_cmd)
6406 (maint_btrace_pt_show_cmd, _initialize_btrace): Use
6407 add_basic_prefix_cmd, add_show_prefix_cmd.
6408 * breakpoint.c (save_command): Remove.
6409 (_initialize_breakpoint): Use add_basic_prefix_cmd.
6410 * arm-tdep.c (set_arm_command, show_arm_command): Remove.
6411 (_initialize_arm_tdep): Use add_basic_prefix_cmd,
6412 add_show_prefix_cmd.
6413 * ada-lang.c (maint_set_ada_cmd, maint_show_ada_cmd)
6414 (set_ada_command, show_ada_command): Remove.
6415 (_initialize_ada_language): Use add_basic_prefix_cmd,
6416 add_show_prefix_cmd.
6417 * command.h (add_basic_prefix_cmd, add_show_prefix_cmd): Declare.
6418
3557f442
KR
64192020-04-16 Kamil Rytarowski <n54@gmx.com>
6420
6421 * nbsd-nat.c (inf_ptrace_target::auxv_parse): Remove.
6422 * nbsd-nat.h (inf_ptrace_target::auxv_parse): Likewise.
6423
16197208
SM
64242020-04-16 Simon Marchi <simon.marchi@polymtl.ca>
6425
6426 * windows-tdep.c (is_linked_with_cygwin_dll): Add filename to
6427 warning messages.
6428
00ac85d3
SM
64292020-04-16 Simon Marchi <simon.marchi@polymtl.ca>
6430
6431 * windows-tdep.c (is_linked_with_cygwin_dll): Consider case where
6432 import table is not at beginning of .idata section.
6433
381ce63f
PA
64342020-04-16 Pedro Alves <palves@redhat.com>
6435
6436 * inferior.c (delete_inferior): Use delete operator directly
6437 instead of delete_program_space.
6438 * progspace.c (add_program_space): New, factored out from
6439 program_space::program_space.
6440 (remove_program_space): New, factored out from
6441 delete_program_space.
6442 (program_space::program_space): Remove intro comment. Rewrite.
6443 (program_space::~program_space): Remove intro comment. Call
6444 remove_program_space.
6445 (delete_program_space): Delete.
6446 * progspace.h (program_space::program_space): Make explicit. Move
6447 intro comment here, adjusted.
6448 (program_space::~program_space): Move intro comment here,
6449 adjusted.
6450 (delete_program_space): Remove.
6451
a010605f
TT
64522020-04-16 Tom Tromey <tromey@adacore.com>
6453
6454 * windows-nat.c (windows_nat::handle_access_violation): New
6455 function.
6456 * nat/windows-nat.h (handle_access_violation): Declare.
6457 * nat/windows-nat.c (handle_exception): Move Cygwin code to
6458 windows-nat.c. Call handle_access_violation.
6459
efba5c23
TV
64602020-04-16 Tom de Vries <tdevries@suse.de>
6461
6462 PR symtab/25791
6463 * dwarf2/index-write.c (write_gdbindex): Generate CU table entries for
6464 CUs without psymtab.
6465
97ed802d
KB
64662020-04-16 Kevin Buettner <kevinb@redhat.com>
6467
6468 * python/python.c (do_start_initialization): Don't call
6469 PyEval_InitThreads for Python 3.9 and beyond.
6470
c7d64809
KR
64712020-04-15 Kamil Rytarowski <n54@gmx.com>
6472
6473 * obsd-nat.c (obsd_nat_target::update_thread_list): Pass "this" to
6474 thread functions.
6475 (obsd_nat_target::wait): Likewise.
6476
ce127a96
TT
64772020-04-15 Tom Tromey <tromey@adacore.com>
6478
6479 * windows-nat.c (DEBUG_EXEC, DEBUG_EVENTS, DEBUG_MEM)
6480 (DEBUG_EXCEPT): Use debug_printf.
6481
99f1bc6a
AB
64822020-04-15 Andrew Burgess <andrew.burgess@embecosm.com>
6483
6484 * completer.c (class completion_tracker::completion_hash_entry)
6485 <hash_name>: New member function.
6486 (completion_tracker::discard_completions): New callback to hash a
6487 completion_hash_entry, pass this to htab_create_alloc.
6488
a0e9b532
JT
64892016-01-20 Jon Turney <jon.turney@dronecode.org.uk>
6490
6491 * windows-nat.c (windows_make_so): Warn rather than stopping with
6492 an error if realpath() fails.
6493
06ca5dd4
KR
64942020-04-14 Kamil Rytarowski <n54@gmx.com>
6495
6496 * nbsd-nat.c (nbsd_pid_to_kinfo_proc2): New.
6497 (nbsd_nat_target::info_proc): Add do_status.
6498
194d088f
TV
64992020-04-14 Simon Marchi <simon.marchi@polymtl.ca>
6500 Tom de Vries <tdevries@suse.de>
6501
6502 PR symtab/25718
6503 * psympriv.h (struct partial_symtab::read_symtab)
6504 (struct partial_symtab::expand_psymtab)
6505 (struct partial_symtab::read_dependencies): Update comments.
6506 * dwarf2/read.c (struct dwarf2_include_psymtab::read_symtab): Call
6507 read_symtab for includer.
6508 (struct dwarf2_include_psymtab::expand_psymtab): Assert false.
6509 (struct dwarf2_include_psymtab::readin_p): Call readin_p () for includer.
6510 (struct dwarf2_include_psymtab::m_readin): Remove.
6511 (struct dwarf2_include_psymtab::includer): New member function.
6512 (dwarf2_psymtab::expand_psymtab): Assert !readin.
6513
c1a66c06
TV
65142020-04-14 Tom de Vries <tdevries@suse.de>
6515
6516 PR symtab/25720
6517 * symmisc.c (maintenance_expand_symtabs): Call expand_symtabs_matching
6518 with NULL symbol_matcher and lookup_name.
6519 * psymtab.c (psym_expand_symtabs_matching): Handle NULL symbol_matcher
6520 and lookup_name.
6521 * dwarf2/read.c (dw2_expand_symtabs_matching)
6522 (dw2_debug_names_expand_symtabs_matching): Same.
6523 * symfile.h (struct quick_symbol_functions::expand_symtabs_matching):
6524 Make lookup_name a pointer. Update comment.
6525 * symtab.c (global_symbol_searcher::expand_symtabs): Handle
6526 lookup_name being a pointer.
6527 * symfile.c (expand_symtabs_matching): Same.
6528 * symfile-debug.c (debug_qf_expand_symtabs_matching): Same.
6529 * linespec.c (iterate_over_all_matching_symtabs): Same.
6530
400b5eca
TT
65312020-04-13 Tom Tromey <tom@tromey.com>
6532
6533 * run-on-main-thread.c: Update include.
6534 * unittests/main-thread-selftests.c: Update include.
6535 * tui/tui-win.c: Update include.
6536 * tui/tui-io.c: Update include.
6537 * tui/tui-interp.c: Update include.
6538 * tui/tui-hooks.c: Update include.
6539 * top.h: Update include.
6540 * top.c: Update include.
6541 * ser-base.c: Update include.
6542 * remote.c: Update include.
6543 * remote-notif.c: Update include.
6544 * remote-fileio.c: Update include.
6545 * record-full.c: Update include.
6546 * record-btrace.c: Update include.
6547 * python/python.c: Update include.
6548 * posix-hdep.c: Update include.
6549 * mingw-hdep.c: Update include.
6550 * mi/mi-main.c: Update include.
6551 * mi/mi-interp.c: Update include.
6552 * main.c: Update include.
6553 * linux-nat.c: Update include.
6554 * interps.c: Update include.
6555 * infrun.c: Update include.
6556 * inf-loop.c: Update include.
6557 * event-top.c: Update include.
6558 * event-loop.c: Move to ../gdbsupport/.
6559 * event-loop.h: Move to ../gdbsupport/.
6560 * async-event.h: Update include.
6561 * Makefile.in (COMMON_SFILES, HFILES_NO_SRCDIR): Update.
6562
93b54c8e
TT
65632020-04-13 Tom Tromey <tom@tromey.com>
6564
6565 * tui/tui-win.c: Include async-event.h.
6566 * remote.c: Include async-event.h.
6567 * remote-notif.c: Include async-event.h.
6568 * record-full.c: Include async-event.h.
6569 * record-btrace.c: Include async-event.h.
6570 * infrun.c: Include async-event.h.
6571 * event-top.c: Include async-event.h.
6572 * event-loop.h: Move some declarations to async-event.h.
6573 * event-loop.c: Don't include ser-event.h or top.h. Move some
6574 code to async-event.c.
6575 * async-event.h: New file.
6576 * async-event.c: New file.
6577 * Makefile.in (COMMON_SFILES): Add async-event.c.
6578 (HFILES_NO_SRCDIR): Add async-event.h.
6579
c1cd3163
TT
65802020-04-13 Tom Tromey <tom@tromey.com>
6581
6582 * utils.c (flush_streams): New function.
6583 * event-loop.c (gdb_wait_for_event): Call flush_streams.
6584
29f2bf4f
TT
65852020-04-13 Tom Tromey <tom@tromey.com>
6586
6587 * event-loop.c (handle_file_event): Use warning, not
6588 printf_unfiltered.
6589
98029d02
TT
65902020-04-13 Tom Tromey <tom@tromey.com>
6591
6592 * event-loop.c: Include <chrono>.
6593
06cc9596
TT
65942020-04-13 Tom Tromey <tom@tromey.com>
6595
6596 * gdb_select.h: Move to ../gdbsupport/.
6597 * event-loop.c: Update include path.
6598 * top.c: Update include path.
6599 * ser-base.c: Update include path.
6600 * ui-file.c: Update include path.
6601 * ser-tcp.c: Update include path.
6602 * guile/scm-ports.c: Update include path.
6603 * posix-hdep.c: Update include path.
6604 * ser-unix.c: Update include path.
6605 * gdb_usleep.c: Update include path.
6606 * mingw-hdep.c: Update include path.
6607 * inflow.c: Update include path.
6608 * infrun.c: Update include path.
6609 * event-top.c: Update include path.
6610
8ae8e197
TT
66112020-04-13 Tom Tromey <tom@tromey.com>
6612
6613 * configure: Rebuild.
6614 * configure.ac: Remove checks that are now in GDB_AC_COMMON.
6615
58cf28e8
TT
66162020-04-13 Tom Tromey <tom@tromey.com>
6617
6618 * event-loop.h (start_event_loop): Don't declare.
6619 * event-loop.c (start_event_loop): Move...
6620 * main.c (start_event_loop): ...here. Now static.
6621
b7f999ae
SDJ
66222020-04-13 Sergio Durigan Junior <sergiodj@sergiodj.net>
6623
6624 * MAINTAINERS: Update my email address.
6625
1085dfd4
KR
66262020-04-12 Kamil Rytarowski <n54@gmx.com>
6627
6628 * nbsd-nat.c (nbsd_nat_target::info_proc): Add IP_MINIMAL and
6629 IP_ALL.
6630
49d1d1f5
KR
66312020-04-12 Kamil Rytarowski <n54@gmx.com>
6632
6633 * nbsd-nat.c (nbsd_pid_to_cmdline): Add.
aac66a4c 6634 (nbsd_nat_target::info_proc): Add do_cmdline.
49d1d1f5 6635
b4848d2a
KR
66362020-04-12 Kamil Rytarowski <n54@gmx.com>
6637
6638 * nbsd-nat.c (nbsd_pid_to_cwd): Add.
aac66a4c 6639 (nbsd_nat_target::info_proc): Add do_cwd.
b4848d2a 6640
51c133d5
KR
66412020-04-12 Kamil Rytarowski <n54@gmx.com>
6642
6643 * nbsd-nat.c (nbsd_nat_target::info_proc): Add do_exe.
6644
54b8cbd0
KR
66452020-04-11 Kamil Rytarowski <n54@gmx.com>
6646
6647 * nbsd-nat.c; Include "nbsd-tdep.h" and "gdbarch.h".
6648 * nbsd-nat.c (nbsd_nat_target::find_memory_regions)
6649 (nbsd_nat_target::info_proc): New functions.
6650 * nbsd-nat.c (kinfo_get_vmmap): New function.
6651 * nbsd-nat.c (nbsd_nat_target::info_proc) Use
6652 nbsd_info_proc_mappings_header and nbsd_info_proc_mappings_entry.
6653 * nbsd-tdep.c (nbsd_info_proc_mappings_header)
6654 (nbsd_info_proc_mappings_entry, nbsd_vm_map_entry_flags): New
6655 functions.
6656 * nbsd-tdep.c (KINFO_VME_PROT_READ, KINFO_VME_PROT_WRITE)
6657 (KINFO_VME_PROT_EXEC, KINFO_VME_FLAG_COW)
6658 (KINFO_VME_FLAG_NEEDS_COPY, KINFO_VME_FLAG_NOCOREDUMP)
6659 (KINFO_VME_FLAG_PAGEABLE, KINFO_VME_FLAG_GROWS_UP)
6660 (KINFO_VME_FLAG_GROWS_DOWN): New.
6661
cf83625d
AS
66622020-04-10 Artur Shepilko <nomadbyte@gmail.com>
6663
6664 * utils.c (copy_bitwise): Use unsigned 0 constant as operand of
6665 bit shift.
6666
0c4311ab
TT
66672020-04-10 Tom Tromey <tromey@adacore.com>
6668
6669 * symfile.c (symbol_file_add_separate): Preserve OBJF_MAINLINE.
6670
3e65b3e9
TT
66712020-04-10 Tom Tromey <tromey@adacore.com>
6672
6673 * symtab.c (get_symbol_address, get_msymbol_address): Skip
6674 separate debug files.
6675
13302e95
HD
66762020-04-10 Hannes Domani <ssbssa@yahoo.de>
6677
6678 * nat/windows-nat.c (STATUS_WX86_BREAKPOINT, STATUS_WX86_SINGLE_STEP):
6679 Move to...
6680 * nat/windows-nat.h (STATUS_WX86_BREAKPOINT, STATUS_WX86_SINGLE_STEP):
6681 ... here.
6682 * windows-nat.c (windows_nat_target::get_windows_debug_event):
6683 Check for STATUS_WX86_BREAKPOINT.
6684 (windows_nat_target::wait): Same.
6685
bdfc1e8a
TV
66862020-04-10 Tom de Vries <tdevries@suse.de>
6687
6688 PR cli/25808
6689 * python/lib/gdb/__init__.py: Initialize lexer with stripnl=False.
6690
f4460aec
SM
66912020-04-09 Simon Marchi <simon.marchi@polymtl.ca>
6692
6693 * MAINTAINERS (Global Maintainers): Add Tom de Vries.
6694 (Write After Approval): Remove Tom de Vries.
6695
a25198bb
BE
66962020-04-09 Bernd Edlinger <bernd.edlinger@hotmail.de>
6697
6698 revert partially:
6699 2020-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
6700
aac66a4c
SM
6701 * buildsym.c (record_line): Fix undefined behavior and preserve
6702 lines at eof.
a25198bb 6703
206c98a6
KR
67042020-04-09 Kamil Rytarowski <n54@gmx.com>
6705
6706 * auxv.h (svr4_auxv_parse): New.
6707 * auxv.c (default_auxv_parse): Split into default_auxv_parse
6708 and generic_auxv_parse.
6709 (svr4_auxv_parse): Add.
6710 * obsd-tdep.c: Include "auxv.h".
6711 (obsd_auxv_parse): Remove.
6712 (obsd_init_abi): Remove comment.
6713 (obsd_init_abi): Change set_gdbarch_auxv_parse passed argument
6714 from `obsd_auxv_parse' to `svr4_auxv_parse'.
6715 * nbsd-tdep.c: Include "auxv.h".
6716 (nbsd_init_abi): Call set_gdbarch_auxv_parse.
6717
71fbdbaf
TT
67182020-04-08 Tom Tromey <tromey@adacore.com>
6719
6720 * nat/windows-nat.h (last_wait_event): Don't declare.
6721 (wait_for_debug_event): Update comment.
6722 * nat/windows-nat.c (last_wait_event): Now static.
6723
2c1d95e8
TT
67242020-04-08 Tom Tromey <tromey@adacore.com>
6725
6726 * windows-nat.c (wait_for_debug_event): Move to
6727 nat/windows-nat.c.
6728 * nat/windows-nat.h (wait_for_debug_event): Declare.
6729 * nat/windows-nat.c (wait_for_debug_event): Move from
6730 windows-nat.c. No longer static.
6731
d2977bc4
TT
67322020-04-08 Tom Tromey <tromey@adacore.com>
6733
6734 * windows-nat.c (get_windows_debug_event): Use
6735 fetch_pending_stop.
6736 * nat/windows-nat.h (fetch_pending_stop): Declare.
6737 * nat/windows-nat.c (fetch_pending_stop): New function.
6738
e758e19c
TT
67392020-04-08 Tom Tromey <tromey@adacore.com>
6740
6741 * windows-nat.c (windows_continue): Use matching_pending_stop and
6742 continue_last_debug_event.
6743 * nat/windows-nat.h (matching_pending_stop)
6744 (continue_last_debug_event): Declare.
6745 * nat/windows-nat.c (DEBUG_EVENTS): New define.
6746 (matching_pending_stop, continue_last_debug_event): New
6747 functions.
6748
8d30e395
TT
67492020-04-08 Tom Tromey <tromey@adacore.com>
6750
6751 * windows-nat.c (MS_VC_EXCEPTION): Move to nat/windows-nat.c.
6752 (handle_exception_result): Move to nat/windows-nat.h.
6753 (DEBUG_EXCEPTION_SIMPLE): Remove.
6754 (windows_nat::handle_ms_vc_exception): New function.
6755 (handle_exception): Move to nat/windows-nat.c.
6756 (get_windows_debug_event): Update.
6757 (STATUS_WX86_BREAKPOINT, STATUS_WX86_SINGLE_STEP): Move to
6758 nat/windows-nat.c.
6759 * nat/windows-nat.h (handle_ms_vc_exception): Declare.
6760 (handle_exception_result): Move from windows-nat.c.
6761 (handle_exception): Declare.
6762 * nat/windows-nat.c (MS_VC_EXCEPTION, handle_exception)
6763 (STATUS_WX86_SINGLE_STEP, STATUS_WX86_BREAKPOINT): Move from
6764 windows-nat.c.
6765
29de418d
TT
67662020-04-08 Tom Tromey <tromey@adacore.com>
6767
6768 * windows-nat.c (exception_count, event_count): Remove.
6769 (handle_exception, get_windows_debug_event)
6770 (do_initial_windows_stuff): Update.
6771
a816ba18
TT
67722020-04-08 Tom Tromey <tromey@adacore.com>
6773
6774 * windows-nat.c (windows_nat::handle_load_dll)
6775 (windows_nat::handle_unload_dll): Rename. No longer static.
6776 * nat/windows-nat.h (handle_load_dll, handle_unload_dll):
6777 Declare.
6778
a00caa12
TT
67792020-04-08 Tom Tromey <tromey@adacore.com>
6780
6781 * complaints.h (stop_whining): Declare at top-level.
6782 (complaint): Don't declare stop_whining.
6783
d41b524f
TT
67842020-04-08 Tom Tromey <tromey@adacore.com>
6785
6786 * windows-nat.c (windows_nat::handle_output_debug_string):
6787 Rename. No longer static.
6788 * nat/windows-nat.h (handle_output_debug_string): Declare.
6789
3c76026d
TT
67902020-04-08 Tom Tromey <tromey@adacore.com>
6791
6792 * windows-nat.c (current_process_handle, current_process_id)
6793 (main_thread_id, last_sig, current_event, last_wait_event)
6794 (current_windows_thread, desired_stop_thread_id, pending_stops)
6795 (struct pending_stop, siginfo_er): Move to nat/windows-nat.c.
6796 (display_selectors, fake_create_process)
6797 (get_windows_debug_event): Update.
6798 * nat/windows-nat.h (current_process_handle, current_process_id)
6799 (main_thread_id, last_sig, current_event, last_wait_event)
6800 (current_windows_thread, desired_stop_thread_id, pending_stops)
6801 (struct pending_stop, siginfo_er): Move from windows-nat.c.
6802 * nat/windows-nat.c (current_process_handle, current_process_id)
6803 (main_thread_id, last_sig, current_event, last_wait_event)
6804 (current_windows_thread, desired_stop_thread_id, pending_stops)
6805 (siginfo_er): New globals. Move from windows-nat.c.
6806
9d8679cc
TT
68072020-04-08 Tom Tromey <tromey@adacore.com>
6808
6809 * windows-nat.c (get_image_name): Move to nat/windows-nat.c.
6810 (handle_load_dll): Update.
6811 * nat/windows-nat.c (get_image_name): Move from windows-nat.c.
6812
28688adf
TT
68132020-04-08 Tom Tromey <tromey@adacore.com>
6814
6815 * windows-nat.c (enum thread_disposition_type): Move to
6816 nat/windows-nat.h.
6817 (windows_nat::thread_rec): Rename from thread_rec. No longer
6818 static.
6819 (windows_add_thread, windows_nat_target::fetch_registers)
6820 (windows_nat_target::store_registers, handle_exception)
6821 (windows_nat_target::resume, get_windows_debug_event)
6822 (windows_nat_target::get_tib_address)
6823 (windows_nat_target::thread_name)
6824 (windows_nat_target::thread_alive): Update.
6825 * nat/windows-nat.h (enum thread_disposition_type): Move from
6826 windows-nat.c.
6827 (thread_rec): Declare.
6828
4834dad0
TT
68292020-04-08 Tom Tromey <tromey@adacore.com>
6830
6831 * windows-nat.c: Add "using namespace".
6832 * nat/windows-nat.h: Wrap contents in windows_nat namespace.
6833 * nat/windows-nat.c: Wrap contents in windows_nat namespace.
6834
65bafd5b
TT
68352020-04-08 Tom Tromey <tromey@adacore.com>
6836
6837 * nat/windows-nat.h (struct windows_thread_info): Declare
6838 destructor.
6839 * nat/windows-nat.c (~windows_thread_info): New.
6840
0a4afda3
TT
68412020-04-08 Tom Tromey <tromey@adacore.com>
6842
6843 PR gdb/22992
6844 * windows-nat.c (current_event): Update comment.
6845 (last_wait_event, desired_stop_thread_id): New globals.
6846 (struct pending_stop): New.
6847 (pending_stops): New global.
6848 (windows_nat_target) <stopped_by_sw_breakpoint>
6849 <supports_stopped_by_sw_breakpoint>: New methods.
6850 (windows_fetch_one_register): Add assertions. Adjust PC.
6851 (windows_continue): Handle pending stops. Suspend other threads
6852 when stepping. Use last_wait_event
6853 (wait_for_debug_event): New function.
6854 (get_windows_debug_event): Use wait_for_debug_event. Handle
6855 pending stops. Queue spurious stops.
6856 (windows_nat_target::wait): Set stopped_at_software_breakpoint.
6857 (windows_nat_target::kill): Use wait_for_debug_event.
6858 * nat/windows-nat.h (struct windows_thread_info)
6859 <stopped_at_software_breakpoint>: New field.
6860 * nat/windows-nat.c (windows_thread_info::resume): Clear
6861 stopped_at_software_breakpoint.
6862
8e61ebec
TT
68632020-04-08 Tom Tromey <tromey@adacore.com>
6864
6865 * windows-nat.c (enum thread_disposition_type): New.
6866 (thread_rec): Replace "get_context" parameter with "disposition";
6867 change type.
6868 (windows_add_thread, windows_nat_target::fetch_registers)
6869 (windows_nat_target::store_registers, handle_exception)
6870 (windows_nat_target::resume, get_windows_debug_event)
6871 (windows_nat_target::get_tib_address)
6872 (windows_nat_target::thread_name)
6873 (windows_nat_target::thread_alive): Update.
6874
98a03287
TT
68752020-04-08 Tom Tromey <tromey@adacore.com>
6876
6877 * windows-nat.c (thread_rec): Use windows_thread_info::suspend.
6878 (windows_continue): Use windows_continue::resume.
6879 * nat/windows-nat.h (struct windows_thread_info) <suspend,
6880 resume>: Declare new methods.
6881 * nat/windows-nat.c: New file.
6882 * configure.nat (NATDEPFILES): Add nat/windows-nat.o when needed.
6883
7c7411bc
TT
68842020-04-08 Tom Tromey <tromey@adacore.com>
6885
6886 * windows-nat.c (windows_add_thread, windows_delete_thread)
6887 (windows_nat_target::fetch_registers)
6888 (windows_nat_target::store_registers, fake_create_process)
6889 (windows_nat_target::resume, windows_nat_target::resume)
6890 (get_windows_debug_event, windows_nat_target::wait)
6891 (windows_nat_target::pid_to_str)
6892 (windows_nat_target::get_tib_address)
6893 (windows_nat_target::get_ada_task_ptid)
6894 (windows_nat_target::thread_name)
6895 (windows_nat_target::thread_alive): Use lwp, not tid.
6896
2950fdf7
TT
68972020-04-08 Tom Tromey <tromey@adacore.com>
6898
6899 * windows-nat.c (handle_exception)
6900 (windows_nat_target::thread_name): Update.
6901 * nat/windows-nat.h (windows_thread_info): Remove destructor.
6902 <name>: Now unique_xmalloc_ptr.
6903
62fe396b
TT
69042020-04-08 Tom Tromey <tromey@adacore.com>
6905
6906 * windows-nat.c (thread_rec)
6907 (windows_nat_target::fetch_registers): Update.
6908 * nat/windows-nat.h (struct windows_thread_info) <suspended>:
6909 Update comment.
6910 <debug_registers_changed, reload_context>: Now bool.
6911
e9534bd2
TT
69122020-04-08 Tom Tromey <tromey@adacore.com>
6913
6914 * windows-nat.c (windows_add_thread): Use new.
6915 (windows_init_thread_list, windows_delete_thread): Use delete.
6916 (get_windows_debug_event): Update.
6917 * nat/windows-nat.h (struct windows_thread_info): Add constructor,
6918 destructor, and initializers.
6919
ae1f8880
TT
69202020-04-08 Tom Tromey <tromey@adacore.com>
6921
6922 * windows-nat.c (struct windows_thread_info): Remove.
6923 * nat/windows-nat.h: New file.
6924
55a1e039
TT
69252020-04-08 Tom Tromey <tromey@adacore.com>
6926
6927 * windows-nat.c (struct windows_thread_info) <tid>: Rename from "id".
6928 (thread_rec, windows_add_thread, windows_delete_thread)
6929 (windows_continue): Update.
6930
93366324
TT
69312020-04-08 Tom Tromey <tromey@adacore.com>
6932
6933 * windows-nat.c (struct windows_thread_info): Remove typedef.
6934 (thread_head): Remove.
6935 (thread_list): New global.
6936 (thread_rec, windows_add_thread, windows_init_thread_list)
6937 (windows_delete_thread, windows_continue): Update.
6938
0f2265e2
SM
69392020-04-08 Simon Marchi <simon.marchi@polymtl.ca>
6940
6941 * windows-tdep.h (windows_init_abi): Add comment.
6942 (cygwin_init_abi): New declaration.
6943 * windows-tdep.c: Split signal enumeration in two, one for
6944 Windows and one for Cygwin.
6945 (windows_gdb_signal_to_target): Only deal with signal of the
6946 Windows OS ABI.
6947 (cygwin_gdb_signal_to_target): New function.
6948 (windows_init_abi): Rename to windows_init_abi_common, don't set
6949 gdb_signal_to_target gdbarch method. Add new new function with
6950 this name.
6951 (cygwin_init_abi): New function.
6952 * amd64-windows-tdep.c (amd64_windows_init_abi_common): Add
6953 comment. Don't call windows_init_abi.
6954 (amd64_windows_init_abi): Add comment, call windows_init_abi.
6955 (amd64_cygwin_init_abi): Add comment, call cygwin_init_abi.
6956 * i386-windows-tdep.c (i386_windows_init_abi): Rename to
6957 i386_windows_init_abi_common, don't call windows_init_abi. Add
6958 a new function of this name.
6959 (i386_cygwin_init_abi): New function.
6960 (_initialize_i386_windows_tdep): Bind i386_cygwin_init_abi to
6961 OS ABI Cygwin.
6962
3810f182
SM
69632020-04-08 Simon Marchi <simon.marchi@polymtl.ca>
6964
6965 * dwarf2/read.c (read_gdb_index_from_buffer): Remove objfile
6966 parameter.c.
6967 (dwarf2_read_gdb_index): Update.
6968
063f8e80
KR
69692020-04-07 Kamil Rytarowski <n54@gmx.com>
6970
6971 * nbsd-tdep.c: Include "objfiles.h".
6972 (nbsd_skip_solib_resolver): New.
6973 (nbsd_init_abi): Call set_gdbarch_skip_solib_resolver().
6974
85a9510c 69752020-04-07 Nitika Achra <Nitika.Achra@amd.com>
6976
6977 * dwarf2/loc.c (loclist_describe_location): Call the function decode_debug_loclists_
6978 addresses if DWARF version is 5 or more because DW_LLE_start* or DW_LLE_offset_pair
6979 with DW_LLE_base_addressx are being emitted in DWARFv5.
6980 Add the newly added kind DW_LOC_OFFSET_PAIR also.
6981 The length of location description is an unsigned ULEB integer in DWARFv5 instead of
6982 unsigned integer.
6983
9fc3eaae 69842020-04-07 Nitika Achra <Nitika.Achra@amd.com>
6985
6986 * dwarf2/loc.c (enum debug_loc_kind): Add a new kind DEBUG_LOC_OFFSET_PAIR.
6987 (dwarf2_find_location_expression): Call the function decode_debug_loclists_
6988 addresses if DWARF version is 5 or more. DW_LLE_start* or DW_LLE_offset_pair
6989 with DW_LLE_base_addressx are being emitted in DWARFv5 instead of DW_LLE_GNU*.
6990 Add applicable base address if the entry is DW_LLE_offset_pair from DWO.
6991 (decode_debug_loclists_addresses): Return DEBUG_LOC_OFFSET_PAIR instead of
6992 DEBUG_LOC_START_END in case of DW_LLE_offset_pair.
6993
6994
41144253 69952020-04-07 Nitika Achra <Nitika.Achra@amd.com>
6996
6997 * dwarf2/read.c (cu_debug_loc_section): Added the declaration for the function.
6998 (read_loclist_index): New function definition.
6999 (lookup_loclist_base): New function definition.
7000 (read_loclist_header): New function definition.
7001 (dwarf2_cu): Add loclist_base and loclist_header field.
7002 (dwarf2_locate_dwo_sections): Handle .debug_loclists.dwo section.
7003 (read_full_die_1): Read the value of DW_AT_loclists_base.
7004 (read_attribute_reprocess): Handle DW_FORM_loclistx.
7005 (read_attribute_value): Handle DW_FORM_loclistx.
7006 (skip_one_die): Handle DW_FORM_loclistx.
7007 (loclist_header): New structure declaration.
7008 * dwarf2/attribute.c (form_is_section_offset): Handle DW_FORM_loclistx.
7009
9f4e76a4
SM
70102020-04-07 Simon Marchi <simon.marchi@polymtl.ca>
7011
7012 * dwarf2/read.h (struct dwarf2_psymtab): Remove two-parameters
7013 constructor. Remove `addr` parameter from other constructor and
7014 add `per_cu` parameter.
7015 * dwarf2/read.c (create_partial_symtab): Update.
7016
25c11aca
TV
70172020-04-07 Tom de Vries <tdevries@suse.de>
7018
7019 PR symtab/25796
7020 * dwarf2/read.c (can_have_DW_AT_const_value_p): New function.
7021 (partial_die_info::fixup): Inherit has_const_value.
7022
5707e24b
TV
70232020-04-07 Tom de Vries <tdevries@suse.de>
7024
7025 * psymtab.c (maintenance_check_psymtabs): Skip static LOC_BLOCK
7026 symbols without address.
7027
05f00e22
KR
70282020-04-06 Kamil Rytarowski <n54@gmx.com>
7029
7030 * nbsd-nat.h (struct thread_info): Add forward declaration.
7031 (nbsd_nat_target::thread_alive): Add.
7032 (nbsd_nat_target::thread_name): Likewise.
7033 (nbsd_nat_target::update_thread_list): Likewise.
7034 (update_thread_list::post_attach): Likewise.
7035 (post_attach::pid_to_str): Likewise.
7036 * nbsd-nat.c: Include "gdbthread.h" and "inferior.h".
7037 (nbsd_thread_lister): Add.
7038 (nbsd_nat_target::thread_alive): Likewise.
7039 (nbsd_nat_target::thread_name): Likewise.
7040 (nbsd_add_threads): Likewise.
7041 (update_thread_list::post_attach): Likewise.
7042 (nbsd_nat_target::update_thread_list): Likewise.
7043 (post_attach::pid_to_str): Likewise.
7044
6ee448cc
TT
70452020-04-06 Tom Tromey <tromey@adacore.com>
7046
7047 * ada-valprint.c (print_variant_part): Extract the variant field.
7048 (print_field_values): Use the field as the outer value when
7049 recursing.
7050
dea34e8c
TT
70512020-04-06 Tom Tromey <tromey@adacore.com>
7052
7053 * sh-nbsd-tdep.c: Include nbsd-tdep.h.
7054 * ppc-nbsd-tdep.c: Include nbsd-tdep.h.
7055 * mips-nbsd-tdep.c (mipsnbsd_init_abi): Add missing ";".
7056 * arm-nbsd-tdep.c: Include nbsd-tdep.h.
7057 * hppa-nbsd-tdep.c: Include nbsd-tdep.h.
7058
93689ce9
TT
70592020-04-06 Tom Tromey <tromey@adacore.com>
7060
7061 * dwarf2/read.c (read_base_type) <DW_ATE_complex_float>: Handle
7062 TYPE_CODE_ERROR.
7063
79743962
KR
70642020-04-06 Kamil Rytarowski <n54@gmx.com>
7065
7066 * nbsd-tdep.c: Include "gdbarch.h".
7067 Define enum with NetBSD signal numbers.
7068 (nbsd_gdb_signal_from_target, nbsd_gdb_signal_to_target): New.
7069 * alpha-nbsd-tdep.c (alphanbsd_init_abi): Call nbsd_init_abi().
7070 * amd64-nbsd-tdep.c (amd64nbsd_init_abi): Likewise.
7071 * arm-nbsd-tdep.c (arm_netbsd_elf_init_abi): Likewise.
7072 * hppa-nbsd-tdep.c (hppanbsd_init_abi): Likewise.
7073 * i386-nbsd-tdep.c (i386nbsd_init_abi): Likewise.
7074 * mips-nbsd-tdep.c (nbsd_init_abi): Likewise.
7075 * ppc-nbsd-tdep.c (ppcnbsd_init_abi): Likewise.
7076 * sh-nbsd-tdep.c (shnbsd_init_abi): Likewise.
7077 * sparc-nbsd-tdep.c (sparc32nbsd_init_abi): Likewise.
7078 * sparc64-nbsd-tdep.c (sparc64nbsd_init_abi): Likewise.
7079 * vax-nbsd-tdep.c (vaxnbsd_elf_init_abi): Likewise.
7080
9e7c9a03
HD
70812020-04-03 Hannes Domani <ssbssa@yahoo.de>
7082
7083 PR gdb/25325
7084 * dwarf2/read.c (read_enumeration_type): Fix typed enum attributes.
7085
d9e49b61
TT
70862020-04-03 Tom Tromey <tromey@adacore.com>
7087
7088 * dwarf2/loc.c (disassemble_dwarf_expression) <DW_OP_const_type>:
7089 Read constant block.
7090
e0fc5c3f
SM
70912020-04-02 Simon Marchi <simon.marchi@polymtl.ca>
7092
7093 * gdb_bfd.h: Include gdbsupport/byte-vector.h.
7094 (gdb_bfd_get_full_section_contents): New declaration.
7095 * gdb_bfd.c (gdb_bfd_get_full_section_contents): New function.
7096 * windows-tdep.c (is_linked_with_cygwin_dll): Use
7097 gdb_bfd_get_full_section_contents.
7098
e2ff18a0
SM
70992020-04-02 Simon Marchi <simon.marchi@polymtl.ca>
7100
7101 * exec.c (build_section_table): Replace internal_error with
7102 gdb_assert.
7103 (section_table_xfer_memory_partial): Likewise.
7104 * mdebugread.c (parse_partial_symbols): Likewise.
7105 * psymtab.c (lookup_partial_symbol): Likewise.
7106 * utils.c (wrap_here): Likewise.
7107
0830d301
TT
71082020-04-02 Tom Tromey <tromey@adacore.com>
7109
7110 * f-lang.c (build_fortran_types): Use arch_type to initialize
7111 builtin_complex_s32 in the TYPE_CODE_ERROR case.
7112
e7da7f8f
TT
71132020-04-02 Tom Tromey <tromey@adacore.com>
7114
7115 * dwarf2/read.c (partial_die_info::read): Do not create a vector
7116 of attributes.
7117
c90d28ac
AB
71182020-04-02 Andrew Burgess <andrew.burgess@embecosm.com>
7119 Bernd Edlinger <bernd.edlinger@hotmail.de>
7120 Tom Tromey <tromey@adacore.com>
7121
7122 * buildsym.c (buildsym_compunit::record_line): Remove
7123 deduplication code.
7124
1aa98955
TV
71252020-04-02 Tom de Vries <tdevries@suse.de>
7126
7127 PR ada/24671
7128 * dwarf2/read.c (dw2_map_matching_symbols): Handle -readnow.
7129
d3214198
TV
71302020-04-02 Tom de Vries <tdevries@suse.de>
7131
7132 * dwarf2/read.c (dwarf2_gdb_index_functions,
7133 dwarf2_debug_names_functions): Init lookup_global_symbol_language with
7134 NULL.
7135 * psymtab.c (psym_lookup_global_symbol_language): New function.
7136 (psym_functions): Init psym_lookup_global_symbol_language with
7137 psym_lookup_global_symbol_language.
7138 * symfile-debug.c (debug_sym_quick_functions): Init
7139 lookup_global_symbol_language with NULL.
7140 * symfile.c (set_initial_language): Remove fixme comment.
7141 * symfile.h (struct quick_symbol_functions): Add
7142 lookup_global_symbol_language.
7143 * symtab.c (find_quick_global_symbol_language): New function.
7144 (find_main_name): Use find_quick_global_symbol_language.
7145
2836752f
SM
71462020-04-01 Simon Marchi <simon.marchi@polymtl.ca>
7147
7148 * windows-tdep.c (is_linked_with_cygwin_dll): Fix style.
7149
64dc2d4b
BE
71502020-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
7151
7152 * buildsym.c (record_line): Fix undefined behavior and preserve
7153 lines at eof.
7154
bbe3dc41
BE
71552020-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
7156
7157 * buildsym.c (record_line): Fix the resizing condition.
7158
6b4a335b
TT
71592020-04-01 Tom Tromey <tom@tromey.com>
7160
7161 * value.h (value_literal_complex): Add comment.
7162 * valops.c (value_literal_complex): Refer to value.h.
7163
3638a098
TT
71642020-04-01 Tom Tromey <tom@tromey.com>
7165
7166 * c-exp.y (FLOAT_KEYWORD, COMPLEX): New tokens.
7167 (scalar_type): New rule, from typebase.
7168 (typebase): Use scalar_type. Recognize complex types.
7169 (field_name): Handle FLOAT_KEYWORD.
7170 (ident_tokens): Add _Complex and __complex__.
7171
c34e8714
TT
71722020-04-01 Tom Tromey <tom@tromey.com>
7173
7174 PR exp/25299:
7175 * valarith.c (promotion_type, complex_binop): New functions.
7176 (scalar_binop): Handle complex numbers. Use promotion_type.
7177 (value_pos, value_neg, value_complement): Handle complex numbers.
7178
fa649bb7
TT
71792020-04-01 Tom Tromey <tom@tromey.com>
7180
7181 * c-exp.y (COMPLEX_INT, COMPLEX_FLOAT): New tokens.
7182 (exp) <COMPLEX_INT, COMPLEX_FLOAT>: New rules.
7183 (parse_number): Handle complex numbers.
7184
981c08ce
TT
71852020-04-01 Tom Tromey <tom@tromey.com>
7186
7187 * c-valprint.c (c_decorations): Change complex suffix to "i".
7188
4c99290d
TT
71892020-04-01 Tom Tromey <tom@tromey.com>
7190
7191 * valprint.c (generic_value_print_complex): Use accessors.
7192 * value.h (value_real_part, value_imaginary_part): Declare.
7193 * valops.c (value_real_part, value_imaginary_part): New
7194 functions.
7195 * value.c (creal_internal_fn, cimag_internal_fn): Use accessors.
7196
5b930b45
TT
71972020-04-01 Tom Tromey <tom@tromey.com>
7198
7199 * stabsread.c (rs6000_builtin_type, read_sun_floating_type)
7200 (read_range_type): Update.
7201 * mdebugread.c (basic_type): Update.
7202 * go-lang.c (build_go_types): Use init_complex_type.
7203 * gdbtypes.h (struct main_type) <complex_type>: New member.
7204 (init_complex_type): Update.
7205 (arch_complex_type): Don't declare.
7206 * gdbtypes.c (init_complex_type): Remove "objfile" parameter.
7207 Make name if none given. Use alloc_type_copy. Look for cached
7208 complex type.
7209 (arch_complex_type): Remove.
7210 (gdbtypes_post_init): Use init_complex_type.
7211 * f-lang.c (build_fortran_types): Use init_complex_type.
7212 * dwarf2/read.c (read_base_type): Update.
7213 * d-lang.c (build_d_types): Use init_complex_type.
7214 * ctfread.c (read_base_type): Update.
7215
53cccef1
TBA
72162020-04-01 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
7217
7218 * infrun.c (stop_all_threads): Update assertion, plus when
7219 stopping threads, take into account that we might be trying
7220 to stop an all-stop target.
7221 (stop_waiting): Call 'stop_all_threads' if there exists a
7222 non-stop target.
7223
a0714d30
TBA
72242020-04-01 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
7225
7226 * target.h (exists_non_stop_target): New function declaration.
7227 * target.c (exists_non_stop_target): New function.
7228
60e22c1e
HD
72292020-04-01 Hannes Domani <ssbssa@yahoo.de>
7230
7231 PR gdb/24789
7232 * eval.c (is_integral_or_integral_reference): New function.
7233 (evaluate_subexp_standard): Allow integer references in
7234 pointer arithmetic.
7235
e139a727
TBA
72362020-04-01 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
7237
7238 * remote.c (remote_target::remote_parse_stop_reply): Remove the
7239 check for no ptid in the stop reply when the target is non-stop.
7240
e0802d59
TT
72412020-04-01 Tom Tromey <tromey@adacore.com>
7242
7243 * symtab.h (class lookup_name_info) <lookup_name_info>: Change
7244 "name" parameter to rvalue reference. Initialize m_name_holder.
7245 <lookup_name_info>: New overloads.
7246 <name>: Return gdb::string_view.
7247 <c_str>: New method.
7248 <make_ignore_params>: Update.
7249 <search_name_hash>: Update.
7250 <language_lookup_name>: Return const char *.
7251 <m_name>: Change type.
7252 * symtab.c (demangle_for_lookup_info::demangle_for_lookup_info)
7253 (demangle_for_lookup_info::demangle_for_lookup_info): Update.
7254 (lookup_name_info::match_any): Update.
7255 * psymtab.c (match_partial_symbol, lookup_partial_symbol):
7256 Update.
7257 * minsyms.c (linkage_name_str): Update.
7258 * language.c (default_symbol_name_matcher): Update.
7259 * dwarf2/read.c (mapped_index_base::find_name_components_bounds):
7260 Update.
7261 * ada-lang.c (ada_fold_name): Change parameter to string_view.
7262 (ada_lookup_name_info::ada_lookup_name_info): Update.
7263 (literal_symbol_name_matcher): Update.
7264
8c072cb6
TT
72652020-04-01 Tom Tromey <tromey@adacore.com>
7266
7267 * psymtab.c (psymtab_search_name): Remove function.
7268 (psym_lookup_symbol): Create search name and lookup name here.
7269 (lookup_partial_symbol): Remove "name" parameter; add
7270 lookup_name.
7271 (psym_expand_symtabs_for_function): Update.
7272
6f29a534
TT
72732020-03-31 Joel Jones <joelkevinjones@gmail.com>
7274
7275 PR tui/25597:
7276 * python/py-tui.c: Include gdb_curses.h inside of #ifdef TUI.
7277
af62665e
TT
72782020-03-31 Tom Tromey <tromey@adacore.com>
7279
7280 * dwarf2/abbrev.c (abbrev_table::read): Conditionally call
7281 memcpy.
7282
d1a89da5
NC
72832020-03-30 Nelson Chu <nelson.chu@sifive.com>
7284
7285 * features/riscv/32bit-csr.xml: Regenerated.
7286 * features/riscv/64bit-csr.xml: Regenerated.
7287
d8af9068
TT
72882020-03-30 Tom Tromey <tromey@adacore.com>
7289
7290 * ada-valprint.c (print_variant_part): Update.
7291 * ada-lang.h (ada_which_variant_applies): Update.
7292 * ada-lang.c (ada_which_variant_applies): Remove outer_type and
7293 outer_valaddr parameters; replace with "outer" value parameter.
7294 (to_fixed_variant_branch_type): Update.
7295
227c0bf4
PFC
72962020-03-30 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
7297
7298 * ppc-linux-nat.c: Include <algorithm>, <unordered_map>, and
7299 <list>. Remove inclusion of observable.h.
7300 (PPC_DEBUG_CURRENT_VERSION): Move up define.
7301 (struct arch_lwp_info): New struct.
7302 (class ppc_linux_dreg_interface): New class.
7303 (struct ppc_linux_process_info): New struct.
7304 (struct ppc_linux_nat_target) <low_delete_thread, low_new_fork>
7305 <low_new_clone, low_forget_process, low_prepare_to_resume>
7306 <copy_thread_dreg_state, mark_thread_stale>
7307 <mark_debug_registers_changed, register_hw_breakpoint>
7308 <clear_hw_breakpoint, register_wp, clear_wp>
7309 <can_use_watchpoint_cond_accel, calculate_dvc, check_condition>
7310 <num_memory_accesses, get_trigger_type>
7311 <create_watchpoint_request, hwdebug_point_cmp>
7312 <init_arch_lwp_info, get_arch_lwp_info>
7313 <low_stopped_by_watchpoint, low_stopped_data_address>: Declare as
7314 methods.
7315 <struct ptid_hash>: New inner struct.
7316 <m_dreg_interface, m_process_info, m_installed_hw_bps>: Declare
7317 members.
7318 (saved_dabr_value, hwdebug_info, max_slots_number)
7319 (struct hw_break_tuple, struct thread_points, ppc_threads)
7320 (have_ptrace_hwdebug_interface)
7321 (hwdebug_find_thread_points_by_tid)
7322 (hwdebug_insert_point, hwdebug_remove_point): Remove.
7323 (ppc_linux_nat_target::can_use_hw_breakpoint): Use
7324 m_dreg_interface, remove call to PTRACE_SET_DEBUGREG.
7325 (ppc_linux_nat_target::region_ok_for_hw_watchpoint): Add comment,
7326 use m_dreg_interface.
7327 (hwdebug_point_cmp): Change to...
7328 (ppc_linux_nat_target::hwdebug_point_cmp): ...this method. Use
7329 reference arguments instead of pointers.
7330 (ppc_linux_nat_target::ranged_break_num_registers): Use
7331 m_dreg_interface.
7332 (ppc_linux_nat_target::insert_hw_breakpoint): Add comment, use
7333 m_dreg_interface. Call register_hw_breakpoint.
7334 (ppc_linux_nat_target::remove_hw_breakpoint): Add comment, use
7335 m_dreg_interface. Call clear_hw_breakpoint.
7336 (get_trigger_type): Change to...
7337 (ppc_linux_nat_target::get_trigger_type): ...this method. Add
7338 comment.
7339 (ppc_linux_nat_target::insert_mask_watchpoint): Update comment,
7340 use m_dreg_interface. Call register_hw_breakpoint.
7341 (ppc_linux_nat_target::remove_mask_watchpoint): Update comment,
7342 use m_dreg_interface. Call clear_hw_breakpoint.
7343 (can_use_watchpoint_cond_accel): Change to...
7344 (ppc_linux_nat_target::can_use_watchpoint_cond_accel): ...this
7345 method. Update comment, use m_dreg_interface and
7346 m_process_info.
7347 (calculate_dvc): Change to...
7348 (ppc_linux_nat_target::calculate_dvc): ...this method. Use
7349 m_dreg_interface.
7350 (num_memory_accesses): Change to...
7351 (ppc_linux_nat_target::num_memory_accesses): ...this method.
7352 (check_condition): Change to...
7353 (ppc_linux_nat_target::check_condition): ...this method.
7354 (ppc_linux_nat_target::can_accel_watchpoint_condition): Update
7355 comment, use m_dreg_interface.
7356 (create_watchpoint_request): Change to...
7357 (ppc_linux_nat_target::create_watchpoint_request): ...this
7358 method. Use m_dreg_interface.
7359 (ppc_linux_nat_target::insert_watchpoint): Add comment, use
7360 m_dreg_interface. Call register_hw_breakpoint or register_wp.
7361 (ppc_linux_nat_target::remove_watchpoint): Add comment, use
7362 m_dreg_interface. Call clear_hw_breakpoint or clear_wp.
7363 (ppc_linux_nat_target::low_forget_process)
7364 (ppc_linux_nat_target::low_new_fork)
7365 (ppc_linux_nat_target::low_new_clone)
7366 (ppc_linux_nat_target::low_delete_thread)
7367 (ppc_linux_nat_target::low_prepare_to_resume): New methods.
7368 (ppc_linux_nat_target::low_new_thread): Remove previous logic,
7369 only call mark_thread_stale.
7370 (ppc_linux_thread_exit): Remove.
7371 (ppc_linux_nat_target::stopped_data_address): Change to...
7372 (ppc_linux_nat_target::low_stopped_data_address): This. Add
7373 comment, use m_dreg_interface and m_thread_hw_breakpoints.
7374 (ppc_linux_nat_target::stopped_by_watchpoint): Change to...
7375 (ppc_linux_nat_target::stopped_by_watchpoint): This. Add
7376 comment. Call low_stopped_data_address.
7377 (ppc_linux_nat_target::watchpoint_addr_within_range): Use
7378 m_dreg_interface.
7379 (ppc_linux_nat_target::masked_watch_num_registers): Use
7380 m_dreg_interface.
7381 (ppc_linux_nat_target::copy_thread_dreg_state)
7382 (ppc_linux_nat_target::mark_thread_stale)
7383 (ppc_linux_nat_target::mark_debug_registers_changed)
7384 (ppc_linux_nat_target::register_hw_breakpoint)
7385 (ppc_linux_nat_target::clear_hw_breakpoint)
7386 (ppc_linux_nat_target::register_wp)
7387 (ppc_linux_nat_target::clear_wp)
7388 (ppc_linux_nat_target::init_arch_lwp_info)
7389 (ppc_linux_nat_target::get_arch_lwp_info): New methods.
7390 (_initialize_ppc_linux_nat): Remove observer callback.
7391
4db10d8f
PFC
73922020-03-30 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
7393
7394 * ppc-linux-nat.c (ppc_linux_nat_target::store_registers)
7395 (ppc_linux_nat_target::auxv_parse)
7396 (ppc_linux_nat_target::read_description)
7397 (supply_gregset, fill_gregset, supply_fpregset, fill_fpregset):
7398 Move up.
7399
1310c1b0
PFC
74002020-03-30 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
7401
7402 * linux-nat.h (low_new_clone): New method.
7403 * linux-nat.c (linux_handle_extended_wait): Call low_new_clone.
7404
69b037c3
SM
74052020-03-29 Simon Marchi <simon.marchi@polymtl.ca>
7406
7407 * dbxread.c (dbx_psymtab_to_symtab_1): Rename to...
7408 (dbx_expand_psymtab): ... this.
7409 (start_psymtab): Update.
7410 * mdebugread.c (psymtab_to_symtab_1): Rename to...
7411 (mdebug_expand_psymtab): ... this.
7412 (parse_partial_symbols): Update.
7413 (new_psymtab): Update.
7414 * xcoffread.c (xcoff_psymtab_to_symtab_1): Rename to...
7415 (xcoff_expand_psymtab): ... this.
7416 (xcoff_start_psymtab): Update.
7417
48993951
SM
74182020-03-29 Simon Marchi <simon.marchi@polymtl.ca>
7419
7420 * psympriv.h (partial_symtab) <read_dependencies>: Rename to...
7421 <expand_dependencies>: ... this.
7422 * psymtab.c (partial_symtab::read_dependencies): Rename to...
7423 (partial_symtab::expand_dependencies): ... this.
7424 * dwarf2/read.c (dwarf2_include_psymtab) <expand_psymtab>:
7425 Update.
7426 (dwarf2_psymtab::expand_psymtab): Update.
7427 * dbxread.c (dbx_psymtab_to_symtab_1): Update.
7428 * mdebugread.c (psymtab_to_symtab_1): Update.
7429 * xcoffread.c (xcoff_psymtab_to_symtab_1): Update.
7430
3ad83046
SM
74312020-03-29 Simon Marchi <simon.marchi@polymtl.ca>
7432
7433 * psympriv.h (discard_psymtab): Remove.
7434 * dbxread.c (dbx_end_psymtab): Update.
7435 * xcoffread.c (xcoff_end_psymtab): Update.
7436
4d1b9ab6
TT
74372020-03-28 Tom Tromey <tom@tromey.com>
7438
7439 * dwarf2/attribute.h (struct attribute) <form_is_constant>: Update
7440 comment.
7441
f1749218
TT
74422020-03-28 Tom Tromey <tom@tromey.com>
7443
7444 * dwarf2/read.c (read_attribute_reprocess): Fix formatting.
7445
ebea7626
HD
74462020-03-27 Hannes Domani <ssbssa@yahoo.de>
7447
7448 * windows-nat.c (windows_add_all_dlls): Fix system dll paths.
7449
a879b4d5
JB
74502020-03-26 John Baldwin <jhb@FreeBSD.org>
7451
7452 * fbsd-tdep.c (fbsd_print_auxv_entry): Handle AT_FREEBSD_BSDFLAGS.
7453
0826b30a
TT
74542020-03-26 Tom Tromey <tom@tromey.com>
7455
7456 * dwarf2/read.c (handle_data_member_location, dwarf2_add_field)
7457 (mark_common_block_symbol_computed, read_tag_string_type)
7458 (attr_to_dynamic_prop, read_subrange_type): Update.
7459 (dwarf2_get_ref_die_offset, dwarf2_get_attr_constant_value): Move
7460 to be methods on struct attribute.
7461 (skip_one_die, process_imported_unit_die, read_namespace_alias)
7462 (read_call_site_scope, partial_die_info::read)
7463 (partial_die_info::read, lookup_die_type, follow_die_ref):
7464 Update.
7465 * dwarf2/attribute.c (attribute::get_ref_die_offset): New method,
7466 from dwarf2_get_ref_die_offset.
7467 (attribute::constant_value): New method, from
7468 dwarf2_get_attr_constant_value.
7469 * dwarf2/attribute.h (struct attribute) <get_ref_die_offset>:
7470 Declare method.
7471 <constant_value>: New method.
7472
2b2558bf
TT
74732020-03-26 Tom Tromey <tom@tromey.com>
7474
7475 * dwarf2/read.c (dwarf_unit_type_name, dwarf_tag_name)
7476 (dwarf_attr_name, dwarf_form_name, dwarf_bool_name)
7477 (dwarf_type_encoding_name): Move to stringify.c.
7478 * Makefile.in (COMMON_SFILES): Add dwarf2/stringify.c.
7479 * dwarf2/stringify.c: New file.
7480 * dwarf2/stringify.h: New file.
7481
eeb64781
TT
74822020-03-26 Tom Tromey <tom@tromey.com>
7483
7484 * dwarf2/die.h (struct die_info) <addr_base, ranges_base>:
7485 Rewrite.
7486
a39fdb41
TT
74872020-03-26 Tom Tromey <tom@tromey.com>
7488
7489 * dwarf2/die.h (struct die_info) <addr_base, ranges_base>: New
7490 methods.
7491 * dwarf2/read.c (lookup_addr_base): Move to die.h.
7492 (lookup_ranges_base): Likewise.
7493 (read_cutu_die_from_dwo, read_full_die_1): Update.
7494
436c571c
TT
74952020-03-26 Tom Tromey <tom@tromey.com>
7496
7497 * dwarf2/read.c (read_import_statement, read_file_scope)
7498 (read_type_unit_scope, inherit_abstract_dies, read_func_scope)
7499 (read_lexical_block_scope, read_call_site_scope)
7500 (dwarf2_get_subprogram_pc_bounds, get_scope_pc_bounds)
7501 (handle_struct_member_die, process_structure_scope)
7502 (update_enumeration_type_from_children)
7503 (process_enumeration_scope, read_array_type, read_common_block)
7504 (read_namespace, read_module, read_subroutine_type): Update.
7505 (sibling_die): Remove.
7506
052c8bb8
TT
75072020-03-26 Tom Tromey <tom@tromey.com>
7508
7509 * dwarf2/read.c (lookup_addr_base, lookup_ranges_base)
7510 (build_type_psymtabs_reader, read_structure_type)
7511 (read_enumeration_type, read_full_die_1): Update.
7512 (dwarf2_attr_no_follow): Move to die.h.
7513 * dwarf2/die.h (struct die_info) <attr>: New method.
7514
2b24b6e4
TT
75152020-03-26 Tom Tromey <tom@tromey.com>
7516
7517 * dwarf2/read.c (struct dwarf2_cu) <base_known>: Remove.
7518 <base_address>: Now an optional.
7519 (dwarf2_find_base_address, dwarf2_rnglists_process)
7520 (dwarf2_ranges_process, fill_in_loclist_baton)
7521 (dwarf2_symbol_mark_computed): Update.
7522
c2d50fd0
TT
75232020-03-26 Tom Tromey <tom@tromey.com>
7524
7525 * dwarf2/read.c (struct die_info): Move to die.h.
7526 * dwarf2/die.h: New file.
7527
0df7ad3a
TT
75282020-03-26 Tom Tromey <tom@tromey.com>
7529
7530 * dwarf2/line-header.h (dwarf_decode_line_header): Declare.
7531 * dwarf2/read.c
7532 (dwarf2_statement_list_fits_in_line_number_section_complaint):
7533 Move to line-header.c.
7534 (read_checked_initial_length_and_offset, read_formatted_entries):
7535 Likewise.
7536 (dwarf_decode_line_header): Split into two.
7537 * dwarf2/line-header.c
7538 (dwarf2_statement_list_fits_in_line_number_section_complaint):
7539 Move from read.c.
7540 (read_checked_initial_length_and_offset, read_formatted_entries):
7541 Likewise.
7542 (dwarf_decode_line_header): New function, split from read.c.
7543
86c0bb4c
TT
75442020-03-26 Tom Tromey <tom@tromey.com>
7545
7546 * dwarf2/read.h (struct dwarf2_per_objfile) <read_line_string>:
7547 Declare method.
7548 * dwarf2/read.c (read_attribute_value): Update.
7549 (dwarf2_per_objfile::read_line_string): Rename from
7550 read_indirect_line_string.
7551 (read_formatted_entries): Update.
7552
2ef46c2f
TT
75532020-03-26 Tom Tromey <tom@tromey.com>
7554
7555 * dwarf2/macro.c (dwarf_decode_macro_bytes): Use objfile local
7556 variable.
7557
4f9c1eda
TT
75582020-03-26 Tom Tromey <tom@tromey.com>
7559
7560 * dwarf2/macro.h (dwarf_decode_macros): Make section parameter
7561 const.
7562 * dwarf2/macro.c (skip_form_bytes, skip_unknown_opcode)
7563 (dwarf_decode_macro_bytes, dwarf_decode_macros): Make section
7564 parameter const.
7565
5a0e026f
TT
75662020-03-26 Tom Tromey <tom@tromey.com>
7567
7568 * dwarf2/read.c (dwarf_decode_macros): Make "lh" const.
7569 * dwarf2/macro.h (dwarf_decode_macros): Constify "lh" parameter.
7570 * dwarf2/macro.c (macro_start_file): Constify "lh" parameter.
7571 (dwarf_decode_macro_bytes, dwarf_decode_macros): Likewise.
7572
8844c11b
TT
75732020-03-26 Tom Tromey <tom@tromey.com>
7574
7575 * dwarf2/line-header.h (struct line_header) <is_valid_file_index,
7576 file_names_size, file_full_name, file_file_name>: Use const.
7577 <file_name_at, file_names>: Add const overload.
7578 * dwarf2/line-header.c (line_header::file_file_name)
7579 (line_header::file_full_name): Update.
7580
c90ec28a
TT
75812020-03-26 Tom Tromey <tom@tromey.com>
7582
7583 * dwarf2/read.c (dwarf2_macro_malformed_definition_complaint)
7584 (macro_start_file, consume_improper_spaces)
7585 (parse_macro_definition, skip_form_bytes, skip_unknown_opcode)
7586 (dwarf_parse_macro_header, dwarf_decode_macro_bytes)
7587 (dwarf_decode_macros): Move to macro.c.
7588 * dwarf2/macro.c: New file.
7589 * dwarf2/macro.h: New file.
7590 * Makefile.in (COMMON_SFILES): Add dwarf2/macro.c.
7591
4f44ae6c
TT
75922020-03-26 Tom Tromey <tom@tromey.com>
7593
7594 * dwarf2/section.h (struct dwarf2_section_info) <read_string>: New
7595 method.
7596 * dwarf2/section.c: New method. From
7597 read_indirect_string_at_offset_from.
7598 * dwarf2/read.c (mapped_debug_names::namei_to_name): Update.
7599 (read_indirect_string_at_offset_from): Move to section.c.
7600 (read_indirect_string_at_offset): Rewrite.
7601 (read_indirect_line_string_at_offset): Remove.
7602 (read_indirect_string, read_indirect_line_string)
7603 (dwarf_decode_macro_bytes): Update.
7604
a0194fa8
TT
76052020-03-26 Tom Tromey <tom@tromey.com>
7606
7607 * dwarf2/section.h (struct dwarf2_section_info)
7608 <overload_complaint>: Declare.
7609 (dwarf2_section_buffer_overflow_complaint): Don't declare.
7610 * dwarf2/section.c (dwarf2_section_info::overflow_complaint):
7611 Rename from dwarf2_section_buffer_overflow_complaint.
7612 * dwarf2/read.c (skip_one_die, partial_die_info::read)
7613 (skip_form_bytes, dwarf_decode_macro_bytes): Update.
7614
3d27bbdb
TT
76152020-03-26 Tom Tromey <tom@tromey.com>
7616
7617 * dwarf2/section.h (dwarf2_section_buffer_overflow_complaint):
7618 Declare.
7619 * dwarf2/section.c (dwarf2_section_buffer_overflow_complaint):
7620 Move from read.c.
7621 * dwarf2/read.c (dwarf2_section_buffer_overflow_complaint): Move
7622 to section.c.
7623
9eac9650
TT
76242020-03-26 Tom Tromey <tom@tromey.com>
7625
7626 * dwarf2/read.c (dwarf_decode_macros): Split into two overloads.
7627
bf80d710
TT
76282020-03-26 Tom Tromey <tom@tromey.com>
7629
7630 * dwarf2/read.c (macro_start_file): Change "cu" parameter to
7631 "builder".
7632 (dwarf_decode_macro_bytes): Likewise. Add dwarf2_per_objfile
7633 parameter.
7634 (dwarf_decode_macros): Update.
7635
0314b390
TT
76362020-03-26 Tom Tromey <tom@tromey.com>
7637
7638 * dwarf2/read.c (read_attribute_value): Update.
7639 (read_indirect_string_from_dwz): Move to dwz.c; change into
7640 method.
7641 (dwarf_decode_macro_bytes): Update.
7642 * dwarf2/dwz.h (struct dwz_file) <read_string>: Declare method.
7643 * dwarf2/dwz.c: New file.
7644 * Makefile.in (COMMON_SFILES): Add dwz.c.
7645
9fda78b6
TT
76462020-03-26 Tom Tromey <tom@tromey.com>
7647
7648 * dwarf2/read.h (struct dwz_file): Move to dwz.h.
7649 * dwarf2/read.c: Add include.
7650 * dwarf2/index-write.c: Add include.
7651 * dwarf2/index-cache.c: Add include.
7652 * dwarf2/dwz.h: New file.
7653
33aa3c10
TT
76542020-03-25 Tom Tromey <tom@tromey.com>
7655
7656 * compile/compile-object-load.c (get_out_value_type): Mention
7657 correct symbol name in error message.
7658
d503b685
HD
76592020-03-25 Hannes Domani <ssbssa@yahoo.de>
7660
7661 * windows-nat.c (windows_add_all_dlls): Fix system dll paths.
7662
7b1eff95
TV
76632020-03-25 Tom de Vries <tdevries@suse.de>
7664
7665 * symtab.h (is_main_symtab_of_compunit_symtab): New function.
7666 * symmisc.c (dump_symtab_1): Print user and includes fields.
7667 (maintenance_info_symtabs): Same.
7668
dd895392
AB
76692020-03-25 Andrew Burgess <andrew.burgess@embecosm.com>
7670
7671 PR gdb/25534
7672 * riscv-tdep.c (riscv_arg_info::c_offset): Update comment.
7673 (riscv_regcache_cooked_write): New function.
7674 (riscv_push_dummy_call): Use new function.
7675 (riscv_return_value): Likewise.
7676
5ab2fbf1
SM
76772020-03-24 Simon Marchi <simon.marchi@polymtl.ca>
7678
7679 * fbsd-nat.c (fbsd_nat_target::follow_fork): Change bool to int.
7680 * fbsd-nat.h (class fbsd_nat_target) <follow_fork>: Likewise.
7681 * inf-ptrace.c (inf_ptrace_target::follow_fork): Likewise.
7682 * inf-ptrace.h (struct inf_ptrace_target) <follow_fork>: Likewise.
7683 * infrun.c (follow_fork): Likewise.
7684 (follow_fork_inferior): Likewise.
7685 * linux-nat.c (linux_nat_target::follow_fork): Likewise.
7686 * linux-nat.h (class linux_nat_target): Likewise.
7687 * remote.c (class remote_target) <follow_fork>: Likewise.
7688 (remote_target::follow_fork): Likewise.
7689 * target-delegates.c: Re-generate.
7690 * target.c (default_follow_fork): Likewise.
7691 (target_follow_fork): Likewise.
7692 * target.h (struct target_ops) <follow_fork>: Likewise.
7693 (target_follow_fork): Likewise.
7694
a64fafb5
TV
76952020-03-24 Tom de Vries <tdevries@suse.de>
7696
7697 * psymtab.c (maintenance_info_psymtabs): Print user field.
7698
fe26d3a3
TT
76992020-03-20 Tom Tromey <tromey@adacore.com>
7700
7701 * dwarf2/loc.h (dwarf2_evaluate_property): Make "addr_stack"
7702 const.
7703 * dwarf2/loc.c (dwarf2_evaluate_property): Make "addr_stack"
7704 const.
7705
c884cc46
SM
77062020-03-20 Simon Marchi <simon.marchi@efficios.com>
7707
7708 * ptrace.m4: Don't check for ptrace declaration.
7709 * config.in: Re-generate.
7710 * configure: Re-generate.
7711 * nat/gdb_ptrace.h: Don't declare ptrace if HAVE_DECL_PTRACE is
7712 not defined.
7713
1ff700c2
KR
77142020-03-20 Kamil Rytarowski <n54@gmx.com>
7715
7716 * amd64-bsd-nat.c (gdb_ptrace): Change return type from `int' to
7717 `PTRACE_TYPE_RET'.
7718 * i386-bsd-nat.c (gdb_ptrace): Likewise.
7719 * sparc-nat.c (gdb_ptrace): Likewise.
7720 * x86-bsd-nat.c (gdb_ptrace): Likewise.
7721
f7d4f0b1
TT
77222020-03-20 Tom Tromey <tromey@adacore.com>
7723
7724 * c-exp.y (lex_one_token): Fix assert.
7725
f67210ff
TT
77262020-03-20 Tom Tromey <tromey@adacore.com>
7727
7728 * ada-tasks.c (read_atcb): Use smaller length in strncpy call.
7729 * linux-tdep.c (linux_fill_prpsinfo): Use smaller length in
7730 strncpy call.
7731
1773be9e
TT
77322020-03-20 Tom Tromey <tromey@adacore.com>
7733
7734 * symmisc.c (maintenance_print_one_line_table): Use ui_out.
7735
70304be9
TT
77362020-03-20 Tom Tromey <tromey@adacore.com>
7737
7738 * ada-valprint.c (print_variant_part): Remove parameters; switch
7739 to value-based API.
7740 (print_field_values): Likewise.
7741 (ada_val_print_struct_union): Likewise.
7742 (ada_value_print_1): Update.
7743
9faa006d
KR
77442020-03-20 Kamil Rytarowski <n54@gmx.com>
7745
7746 * ppc-nbsd-nat.c (ppc_nbsd_nat_target): Inherit from
7747 nbsd_nat_target instead of inf_ptrace_target.
7748 * ppc-nbsd-nat.c: Include "nbsd-nat.h", as we are now using
7749 nbsd_nat_target.
7750
4a90f062
KR
77512020-03-20 Kamil Rytarowski <n54@gmx.com>
7752
7753 * hppa-nbsd-nat.c (fetch_registers): New variable lwp and pass
7754 it to the ptrace call.
7755 * (store_registers): Likewise.
7756
77572020-03-20 Kamil Rytarowski <n54@gmx.com>
c7da12c7
KR
7758
7759 * ppc-nbsd-nat.c (fetch_registers): New variable lwp and pass
7760 it to the ptrace call.
7761 * (store_registers): Likewise.
7762
2d07da27
LM
77632020-03-19 Luis Machado <luis.machado@linaro.org>
7764
7765 * nat/aarch64-sve-linux-ptrace.c (aarch64_sve_set_vq): If vg is not
7766 valid, fetch vg value from ptrace.
7767
f09db380
KR
77682020-03-19 Kamil Rytarowski <n54@gmx.com>
7769 * inf-ptrace.h: Disable get_ptrace_pid on NetBSD.
7770 * inf-ptrace.c: Likewise.
7771 * (gdb_ptrace): Add.
7772 * (inf_ptrace_target::resume): Update.
7773 * (inf_ptrace_target::xfer_partial): Likewise.
7774 * (inf_ptrace_peek_poke): Change argument `pid' to `ptid'.
7775 * (inf_ptrace_peek_poke): Update.
7776
fcc7376e
KR
77772020-03-19 Kamil Rytarowski <n54@gmx.com>
7778
7779 * x86-bsd-nat.c (gdb_ptrace): New.
7780 * (x86bsd_dr_set): Add new argument `ptid'.
7781 * (x86bsd_dr_get, x86bsd_dr_set, x86bsd_dr_set_control,
7782 x86bsd_dr_set_addr): Update.
7783
cada5fc9
AB
77842020-03-19 Andrew Burgess <andrew.burgess@embecosm.com>
7785
7786 * remote.c (remote_target::process_stop_reply): Handle events for
7787 all threads differently.
7788
19a2740f
AB
77892020-03-19 Andrew Burgess <andrew.burgess@embecosm.com>
7790
7791 * completer.c (completion_tracker::remove_completion): Define new
7792 function.
7793 * completer.h (completion_tracker::remove_completion): Declare new
7794 function.
7795 * symtab.c (completion_list_add_symbol): Remove aliasing msymbols
7796 when adding a C++ function symbol.
7797
724fd9ba
AB
77982020-03-19 Andrew Burgess <andrew.burgess@embecosm.com>
7799
7800 * completer.c (completion_tracker::completion_hash_entry): Define
7801 new class.
7802 (advance_to_filename_complete_word_point): Call
7803 recompute_lowest_common_denominator.
7804 (completion_tracker::completion_tracker): Call discard_completions
7805 to setup the hash table.
7806 (completion_tracker::discard_completions): Allow for being called
7807 from the constructor, pass new equal function, and element deleter
7808 when constructing the hash table. Initialise new class member
7809 variables.
7810 (completion_tracker::maybe_add_completion): Remove use of
7811 m_entries_vec, and store more information into m_entries_hash.
7812 (completion_tracker::recompute_lcd_visitor): New function, most
7813 content taken from...
7814 (completion_tracker::recompute_lowest_common_denominator):
7815 ...here, this now just visits each item in the hash calling the
7816 above visitor.
7817 (completion_tracker::build_completion_result): Remove use of
7818 m_entries_vec, call recompute_lowest_common_denominator.
7819 * completer.h (completion_tracker::have_completions): Remove use
7820 of m_entries_vec.
7821 (completion_tracker::completion_hash_entry): Declare new class.
7822 (completion_tracker::recompute_lowest_common_denominator): Change
7823 function signature.
7824 (completion_tracker::recompute_lcd_visitor): Declare new function.
7825 (completion_tracker::m_entries_vec): Delete.
7826 (completion_tracker::m_entries_hash): Initialize to NULL.
7827 (completion_tracker::m_lowest_common_denominator_valid): New
7828 member variable.
7829 (completion_tracker::m_lowest_common_denominator_max_length): New
7830 member variable.
7831
5a82b8a1
KR
78322020-03-17 Kamil Rytarowski <n54@gmx.com>
7833
7834 * regformats/regdef.h: Put reg in gdb namespace.
7835
fb516a69
KR
78362020-03-17 Kamil Rytarowski <n54@gmx.com>
7837
7838 * i386-bsd-nat.c (gdb_ptrace): New.
7839 * (i386bsd_fetch_inferior_registers,
7840 i386bsd_store_inferior_registers) Switch from pid_t to ptid_t.
7841 * (i386bsd_fetch_inferior_registers,
7842 i386bsd_store_inferior_registers) Use gdb_ptrace.
7843
1c0aa1fb
KR
78442020-03-17 Kamil Rytarowski <n54@gmx.com>
7845
7846 * amd64-bsd-nat.c (gdb_ptrace): New.
7847 * (amd64bsd_fetch_inferior_registers,
7848 amd64bsd_store_inferior_registers) Switch from pid_t to ptid_t.
7849 * (amd64bsd_fetch_inferior_registers,
7850 amd64bsd_store_inferior_registers) Use gdb_ptrace.
7851
5ccd2fb7
KR
78522020-03-17 Kamil Rytarowski <n54@gmx.com>
7853
7854 * user-regs.c (user_reg::read): Rename to...
7855 (user_reg::xread): ...this.
7856 * (append_user_reg): Rename argument `read' to `xread'.
7857 * (user_reg_add_builtin): Likewise.
7858 * (user_reg_add): Likewise.
7859 * (value_of_user_reg): Likewise.
7860
2108a63a
KR
78612020-03-17 Kamil Rytarowski <n54@gmx.com>
7862
7863 * sparc-nat.c (gdb_ptrace): New.
7864 * sparc-nat.c (sparc_fetch_inferior_registers)
7865 (sparc_store_inferior_registers) Remove obsolete comment.
7866 * sparc-nat.c (sparc_fetch_inferior_registers)
7867 (sparc_store_inferior_registers) Switch from pid_t to ptid_t.
7868 * sparc-nat.c (sparc_fetch_inferior_registers)
7869 (sparc_store_inferior_registers) Use gdb_ptrace.
7870
a225c9a8
KR
78712020-03-17 Kamil Rytarowski <n54@gmx.com>
7872
7873 * sh-nbsd-nat.c (fetch_registers): New variable lwp and pass
7874 it to the ptrace call.
7875 * sh-nbsd-nat.c (store_registers): Likewise.
7876
98097623
KR
78772020-03-17 Kamil Rytarowski <n54@gmx.com>
7878
7879 * sh-nbsd-nat.c (sh_nbsd_nat_target): Inherit from
7880 nbsd_nat_target instead of inf_ptrace_target.
7881 * sh-nbsd-nat.c: Include "nbsd-nat.h", as we are now using
7882 nbsd_nat_target.
7883
9e38d619
KR
78842020-03-17 Kamil Rytarowski <n54@gmx.com>
7885
7886 * amd64-bsd-nat.c: Include amd64-bsd-nat.h".
7887
a2ecbe9f
KR
78882020-03-17 Kamil Rytarowski <n54@gmx.com>
7889
7890 * nbsd-nat.c: Include <sys/types.h>, <sys/ptrace.h> and
7891 <sys/sysctl.h>.
7892 * nbsd-nat.c (nbsd_nat_target::pid_to_exec_file): Rewrite.
7893
58990295
TV
78942020-03-17 Tom de Vries <tdevries@suse.de>
7895
7896 PR gdb/23710
7897 * dwarf2/read.h (struct dwarf2_per_cu_data): Add unit_type and lang
7898 fields.
7899 * dwarf2/read.c (process_psymtab_comp_unit): Initialize unit_type and lang
7900 fields.
7901 (process_imported_unit_die): Skip import of c++ CUs.
7902
771dd3a8
TT
79032020-03-16 Tom Tromey <tom@tromey.com>
7904
7905 * p-valprint.c (pascal_object_print_value): Initialize
7906 base_value.
7907
817a7585
AK
79082020-03-16 Anton Kolesov <anton.kolesov@synopsys.com>
7909 Shahab Vahedi <shahab@synopsys.com>
7910
7911 * Makefile.in: Add arch/arc.o
7912 * configure.tgt: Likewise.
7913 * arc-tdep.c (arc_tdesc_init): Use arc_read_description.
7914 (_initialize_arc_tdep): Don't initialize old target descriptions.
aac66a4c 7915 (arc_read_description): New function to cache target descriptions.
817a7585
AK
7916 * arc-tdep.h (arc_read_description): Add proto type.
7917 * arch/arc.c: New file.
7918 * arch/arc.h: Likewise.
7919 * features/Makefile: Replace old target descriptions with new.
7920 * features/arc-arcompact.c: Remove.
7921 * features/arc-arcompact.xml: Likewise.
7922 * features/arc-v2.c: Likewise
7923 * features/arc-v2.xml: Likewise
7924 * features/arc/aux-arcompact.xml: New file.
7925 * features/arc/aux-v2.xml: Likewise.
7926 * features/arc/core-arcompact.xml: Likewise.
7927 * features/arc/core-v2.xml: Likewise.
7928 * features/arc/aux-arcompact.c: Generate.
7929 * features/arc/aux-v2.c: Likewise.
7930 * features/arc/core-arcompact.c: Likewise.
7931 * features/arc/core-v2.c: Likewise.
7932 * target-descriptions (maint_print_c_tdesc_cmd): Support ARC features.
7933
67430cd0
TT
79342020-03-16 Tom Tromey <tromey@adacore.com>
7935
7936 PR gdb/25663:
7937 * dwarf2/read.c (dwarf2_name): Strip leading namespaces after
7938 putting value into bcache.
7939
30efb6c7
SM
79402020-03-16 Simon Marchi <simon.marchi@efficios.com>
7941
7942 PR gdb/21500
7943 * amd64-windows-tdep.c (amd64_windows_init_abi): Rename
7944 to...
7945 (amd64_windows_init_abi_common): ... this. Don't set size of
7946 long type.
7947 (amd64_windows_init_abi): New function.
7948 (amd64_cygwin_init_abi): New function.
7949 (_initialize_amd64_windows_tdep): Use amd64_cygwin_init_abi for
7950 the Cygwin OS ABI.
7951 * i386-windows-tdep.c (_initialize_i386_windows_tdep): Clarify
7952 comment.
7953
8db52437
SM
79542020-03-16 Simon Marchi <simon.marchi@efficios.com>
7955
7956 * windows-tdep.h (is_linked_with_cygwin_dll): New declaration.
7957 * windows-tdep.c (CYGWIN_DLL_NAME): New.
7958 (pe_import_directory_entry): New struct type.
7959 (is_linked_with_cygwin_dll): New function.
7960 * amd64-windows-tdep.c (amd64_windows_osabi_sniffer): Select
7961 GDB_OSABI_CYGWIN if the BFD is linked with the Cygwin DLL.
7962 * i386-windows-tdep.c (i386_windows_osabi_sniffer): Likewise.
7963
5982a56a
SM
79642020-03-16 Simon Marchi <simon.marchi@efficios.com>
7965
7966 * i386-windows-tdep.c: Mass-rename "cygwin" to "windows", except
7967 i386_cygwin_core_osabi_sniffer.
7968
7a1998df
SM
79692020-03-16 Simon Marchi <simon.marchi@efficios.com>
7970
7971 * i386-cygwin-tdep.c: Rename to...
7972 * i386-windows-tdep.c: ... this.
7973 * Makefile.in (ALL_TARGET_OBS): Rename i386-cygwin-tdep.c to
7974 i386-windows-tdep.c.
7975 * configure.tgt: Likewise.
7976
053205cc
SM
79772020-03-16 Simon Marchi <simon.marchi@efficios.com>
7978
7979 * osabi.h (enum gdb_osabi): Add GDB_OSABI_WINDOWS.
7980 * osabi.c (gdb_osabi_names): Add "Windows".
7981 * i386-cygwin-tdep.c (i386_cygwin_osabi_sniffer): Return
7982 GDB_OSABI_WINDOWS when the binary's target is "pei-i386".
7983 (i386_cygwin_core_osabi_sniffer): New function, extracted from
7984 i386_cygwin_osabi_sniffer.
7985 (_initialize_i386_cygwin_tdep): Register OS ABI
7986 GDB_OSABI_WINDOWS for i386.
7987 * amd64-windows-tdep.c (amd64_windows_osabi_sniffer): Return
7988 GDB_OSABI_WINDOWS when the binary's target is "pei-x86-64".
7989 (_initialize_amd64_windows_tdep): Register OS ABI GDB_OSABI_WINDOWS
7990 for x86-64.
7991 * configure.tgt: Use GDB_OSABI_WINDOWS as the default OS ABI
7992 when the target matches '*-*-mingw*'.
7993
fe4b2ee6
SM
79942020-03-16 Simon Marchi <simon.marchi@efficios.com>
7995
7996 * defs.h (enum gdb_osabi): Move to...
7997 * osabi.h (enum gdb_osabi): ... here.
7998 * gdbarch.sh: Include osabi.h in gdbarch.h.
7999 * gdbarch.h: Re-generate.
8000
cb9b645d
SM
80012020-03-16 Simon Marchi <simon.marchi@efficios.com>
8002
8003 * amd64-windows-tdep.c (amd64_windows_osabi_sniffer): New
8004 function.
8005 (_initialize_amd64_windows_tdep): Register osabi sniffer.
8006
3293bbaf
TT
80072020-03-14 Tom Tromey <tom@tromey.com>
8008
8009 * c-typeprint.c (cp_type_print_method_args): Print "__restrict__"
8010 for C++.
8011 (c_type_print_modifier): Likewise. Add "language" parameter.
8012 (c_type_print_varspec_prefix, c_type_print_base_struct_union)
8013 (c_type_print_base_1): Update.
8014 * type-stack.h (enum type_pieces) <tp_atomic, tp_restrict>: New
8015 constants.
8016 * type-stack.c (type_stack::insert): Handle tp_atomic and
8017 tp_restrict.
8018 (type_stack::follow_type_instance_flags): Likewise.
8019 (type_stack::follow_types): Likewise. Merge type-following code.
8020 * c-exp.y (RESTRICT, ATOMIC): New tokens.
8021 (space_identifier, cv_with_space_id)
8022 (const_or_volatile_or_space_identifier_noopt)
8023 (const_or_volatile_or_space_identifier): Remove.
8024 (single_qualifier, qualifier_seq_noopt, qualifier_seq): New
8025 rules.
8026 (ptr_operator, typebase): Update.
8027 (enum token_flag) <FLAG_C>: New constant.
8028 (ident_tokens): Add "restrict", "__restrict__", "__restrict", and
8029 "_Atomic".
8030 (lex_one_token): Handle FLAG_C.
8031
154151a6
KR
80322020-03-14 Kamil Rytarowski <n54@gmx.com>
8033
8034 * m68k-bsd-nat.c (fetch_registers): New variable lwp and pass
8035 it to the ptrace call.
8036 * m68k-bsd-nat.c (store_registers): Likewise.
8037
bc107784
KR
80382020-03-14 Kamil Rytarowski <n54@gmx.com>
8039
8040 * m68k-bsd-nat.c (m68kbsd_supply_gregset): Change type of regs to
8041 gdb_byte *.
8042 * m68k-bsd-nat.c (m68kbsd_supply_fpregset): Likewise.
8043 * m68k-bsd-nat.c (m68kbsd_collect_gregset): Likewise.
8044 * m68k-bsd-nat.c (m68kbsd_supply_pcb): Cast &tmp to gdb_byte *.
8045
01a80117
KR
80462020-03-14 Kamil Rytarowski <n54@gmx.com>
8047
8048 * m68k-bsd-nat.c (m68k_bsd_nat_target): Inherit from
8049 nbsd_nat_target instead of inf_ptrace_target.
8050 * m68k-bsd-nat.c: Include "nbsd-nat.h", as we are now using
8051 nbsd_nat_target.
8052
f90280ca
KR
80532020-03-14 Kamil Rytarowski <n54@gmx.com>
8054
8055 * m68k-bsd-nat.c: Define _KERNTYPES to get the declaration of
8056 register_t.
8057
6def66f1
KR
80582020-03-14 Kamil Rytarowski <n54@gmx.com>
8059
8060 * alpha-bsd-nat.c (fetch_registers): New variable lwp and pass
8061 it to the ptrace call.
8062 * alpha-bsd-nat.c (store_registers): Likewise.
8063
66eaca97
KR
80642020-03-14 Kamil Rytarowski <n54@gmx.com>
8065
8066 * alpha-bsd-nat.c: Remove <sys/procfs.h> and "gregset.h" from
8067 includes.
8068 * alpha-bsd-nat.c (gregset_t, fpregset_t): Remove.
8069 * alpha-bsd-nat.c (supply_gregset, fill_gregset, supply_fpregset,
8070 fill_fpregset): Likewise.
8071
4fed520b
KR
80722020-03-14 Kamil Rytarowski <n54@gmx.com>
8073
8074 * alpha-bsd-nat.c (alpha_netbsd_nat_target): Inherit from
8075 nbsd_nat_target instead of inf_ptrace_target.
8076 * alpha-bsd-nat.c: Include "nbsd-nat.h", as we are now using
8077 nbsd_nat_target.
8078
2190cf06
KR
80792020-03-14 Kamil Rytarowski <n54@gmx.com>
8080
8081 * alpha-bsd-nat.c: Define _KERNTYPES to get the declaration of
8082 register_t.
8083
75c56d3d
KR
80842020-03-14 Kamil Rytarowski <n54@gmx.com>
8085
8086 * arm-nbsd-nat.c (fetch_register): New variable lwp and pass
8087 it to the ptrace call.
8088 * arm-nbsd-nat.c (fetch_fp_register): Likewise.
8089 * arm-nbsd-nat.c (fetch_fp_regs): Likewise.
8090 * arm-nbsd-nat.c (store_register): Likewise.
8091 * arm-nbsd-nat.c (store_regs): Likewise.
8092 * arm-nbsd-nat.c (store_fp_register): Likewise.
8093 * arm-nbsd-nat.c (store_fp_regs): Likewise.
8094
6018d381
KR
80952020-03-14 Kamil Rytarowski <n54@gmx.com>
8096
8097 * arm-nbsd-nat.c (arm_netbsd_nat_target): Inherit from
8098 nbsd_nat_target instead of inf_ptrace_target.
8099 * arm-nbsd-nat.c: Include "nbsd-nat.h", as we are now using
8100 nbsd_nat_target.
8101
013f99f0
KR
81022020-03-14 Kamil Rytarowski <n54@gmx.com>
8103
8104 * x86-bsd-nat.c (x86bsd_dr_get): New variable lwp and pass
8105 it to the ptrace call.
8106 * x86-bsd-nat.c (x86bsd_dr_set): Likewise.
8107
12753073
KR
81082020-03-14 Kamil Rytarowski <n54@gmx.com>
8109
6227b330
KR
8110 * vax-bsd-nat.c (vaxbsd_supply_gregset): New variable lwp and pass
8111 it to the ptrace call.
8112 * vax-bsd-nat.c (vaxbsd_collect_gregset): Likewise.
8113
81142020-03-14 Kamil Rytarowski <n54@gmx.com>
8115
8116 * vax-bsd-nat.c (vaxbsd_supply_gregset): Cast gregs to const
8117 gdb_byte *.
12753073
KR
8118 * vax-bsd-nat.c (vaxbsd_collect_gregset): Cast gregs to void *.
8119
d5be5fa4
KR
81202020-03-14 Kamil Rytarowski <n54@gmx.com>
8121
8122 * vax-bsd-nat.c (vax_bsd_nat_target): Inherit from nbsd_nat_target
8123 instead of inf_ptrace_target.
8124 * vax-bsd-nat.c: Include "nbsd-nat.h", as we are now using
8125 nbsd_nat_target.
8126
8110f842
KR
81272020-03-14 Kamil Rytarowski <n54@gmx.com>
8128
8129 * mips-nbsd-nat.c: Define _KERNTYPES to get the declaration of
8130 register_t.
8131
52feded7
KR
81322020-03-14 Kamil Rytarowski <n54@gmx.com>
8133
8134 * ppc-nbsd-nat.c: Define _KERNTYPES to get the declaration of
8135 register_t.
8136
25567eee
KR
81372020-03-14 Kamil Rytarowski <n54@gmx.com>
8138
8139 * vax-bsd-nat.c: Define _KERNTYPES to get the declaration of
8140 register_t.
8141
426a9c18
TT
81422020-03-13 Tom Tromey <tom@tromey.com>
8143
8144 * value.h (val_print): Don't declare.
8145 * valprint.h (val_print_array_elements)
8146 (val_print_scalar_formatted, generic_val_print): Don't declare.
8147 * valprint.c (generic_val_print_array): Take a struct value.
8148 (generic_val_print_ptr, generic_val_print_memberptr)
8149 (generic_val_print_bool, generic_val_print_int)
8150 (generic_val_print_char, generic_val_print_complex)
8151 (generic_val_print): Remove.
8152 (generic_value_print): Update.
8153 (do_val_print): Remove unused parameters. Don't call
8154 la_val_print.
8155 (val_print): Remove.
8156 (common_val_print): Update. Don't call value_check_printable.
8157 (val_print_scalar_formatted, val_print_array_elements): Remove.
8158 * rust-lang.c (rust_val_print): Remove.
8159 (rust_language_defn): Update.
8160 * p-valprint.c (pascal_val_print): Remove.
8161 (pascal_value_print_inner): Update.
8162 (pascal_object_print_val_fields, pascal_object_print_val):
8163 Remove.
8164 (pascal_object_print_static_field): Update.
8165 * p-lang.h (pascal_val_print): Don't declare.
8166 * p-lang.c (pascal_language_defn): Update.
8167 * opencl-lang.c (opencl_language_defn): Update.
8168 * objc-lang.c (objc_language_defn): Update.
8169 * m2-valprint.c (m2_print_unbounded_array, m2_val_print): Remove.
8170 * m2-lang.h (m2_val_print): Don't declare.
8171 * m2-lang.c (m2_language_defn): Update.
8172 * language.h (struct language_defn) <la_val_print>: Remove.
8173 * language.c (unk_lang_value_print_inner): Rename. Change
8174 argument types.
8175 (unknown_language_defn, auto_language_defn): Update.
8176 * go-valprint.c (go_val_print): Remove.
8177 * go-lang.h (go_val_print): Don't declare.
8178 * go-lang.c (go_language_defn): Update.
8179 * f-valprint.c (f_val_print): Remove.
8180 * f-lang.h (f_value_print): Don't declare.
8181 * f-lang.c (f_language_defn): Update.
8182 * d-valprint.c (d_val_print): Remove.
8183 * d-lang.h (d_value_print): Don't declare.
8184 * d-lang.c (d_language_defn): Update.
8185 * cp-valprint.c (cp_print_value_fields)
8186 (cp_print_value_fields_rtti, cp_print_value): Remove.
8187 (cp_print_static_field): Update.
8188 * c-valprint.c (c_val_print_array, c_val_print_ptr)
8189 (c_val_print_struct, c_val_print_union, c_val_print_int)
8190 (c_val_print_memberptr, c_val_print): Remove.
8191 * c-lang.h (c_val_print_array, cp_print_value_fields)
8192 (cp_print_value_fields_rtti): Don't declare.
8193 * c-lang.c (c_language_defn, cplus_language_defn)
8194 (asm_language_defn, minimal_language_defn): Update.
8195 * ada-valprint.c (ada_val_print_ptr, ada_val_print_num): Remove.
8196 (ada_val_print_enum): Take a struct value.
8197 (ada_val_print_flt, ada_val_print_array, ada_val_print_1)
8198 (ada_val_print): Remove.
8199 (ada_value_print_1): Update.
8200 (printable_val_type): Remove.
8201 * ada-lang.h (ada_val_print): Don't declare.
8202 * ada-lang.c (ada_language_defn): Update.
8203
42331a1e
TT
82042020-03-13 Tom Tromey <tom@tromey.com>
8205
8206 * valprint.c (do_val_print): Update.
8207 * python/python-internal.h (gdbpy_apply_val_pretty_printer): Take
8208 a struct value.
8209 (value_to_value_object_no_release): Declare.
8210 * python/py-value.c (value_to_value_object_no_release): New
8211 function.
8212 * python/py-prettyprint.c (gdbpy_apply_val_pretty_printer): Take a
8213 struct value.
8214 * guile/scm-value.c (vlscm_scm_from_value_no_release): New
8215 function.
8216 * guile/scm-pretty-print.c (gdbscm_apply_val_pretty_printer): Take
8217 a struct value.
8218 * guile/guile-internal.h (vlscm_scm_from_value_no_release):
8219 Declare.
8220 (gdbscm_apply_val_pretty_printer): Take a struct value.
8221 * extension.h (apply_ext_lang_val_pretty_printer): Take a struct
8222 value.
8223 * extension.c (apply_ext_lang_val_pretty_printer): Take a struct
8224 value.
8225 * extension-priv.h (struct extension_language_ops)
8226 <apply_val_pretty_printer>: Take a struct value.
8227 * cp-valprint.c (cp_print_value): Create a struct value.
8228 (cp_print_value): Update.
8229
3a916a97
TT
82302020-03-13 Tom Tromey <tom@tromey.com>
8231
8232 * ada-valprint.c (print_field_values): Call common_val_print.
8233
b59eac37
TT
82342020-03-13 Tom Tromey <tom@tromey.com>
8235
8236 * ada-valprint.c (val_print_packed_array_elements): Remove
8237 bitoffset and val parameters. Call common_val_print.
8238 (ada_val_print_string): Remove offset, address, and original_value
8239 parameters.
8240 (ada_val_print_array): Update.
8241 (ada_value_print_array): New function.
8242 (ada_value_print_1): Call it.
8243
03371129
TT
82442020-03-13 Tom Tromey <tom@tromey.com>
8245
8246 * ada-valprint.c (ada_value_print): Use common_val_print.
8247
2e088f8b
TT
82482020-03-13 Tom Tromey <tom@tromey.com>
8249
8250 * ada-valprint.c (ada_val_print_ref): Use common_val_print.
8251
39ef85a8
TT
82522020-03-13 Tom Tromey <tom@tromey.com>
8253
8254 * ada-valprint.c (ada_value_print_num): New function.
8255 (ada_value_print_1): Use it.
8256
b9fa6e07
TT
82572020-03-13 Tom Tromey <tom@tromey.com>
8258
8259 * ada-valprint.c (ada_value_print_1) <TYPE_CODE_FLT>: Rewrite.
8260
416595d6
TT
82612020-03-13 Tom Tromey <tom@tromey.com>
8262
8263 * ada-valprint.c (ada_value_print_ptr): New function.
8264 (ada_value_print_1): Use it.
8265
5b5e15ec
TT
82662020-03-13 Tom Tromey <tom@tromey.com>
8267
8268 * ada-valprint.c (ada_val_print_gnat_array): Take a struct value;
8269 call common_val_print.
8270 (ada_val_print_1): Update.
8271 (ada_value_print_1): New function.
8272 (ada_value_print_inner): Rewrite.
8273
fbf54e75
TT
82742020-03-13 Tom Tromey <tom@tromey.com>
8275
8276 * cp-valprint.c (cp_print_value_fields): Update.
8277 (cp_print_value): New function.
8278
64b653ca
TT
82792020-03-13 Tom Tromey <tom@tromey.com>
8280
8281 * m2-valprint.c (m2_value_print_inner): Use
8282 cp_print_value_fields.
8283 * cp-valprint.c (cp_print_value_fields): New function.
8284 * c-valprint.c (c_value_print_struct): New function.
8285 (c_value_print_inner): Use c_value_print_struct.
8286 * c-lang.h (cp_print_value_fields): Declare.
8287
6999f067
TT
82882020-03-13 Tom Tromey <tom@tromey.com>
8289
8290 * c-valprint.c (c_value_print_array): New function.
8291 (c_value_print_inner): Use it.
8292
ce80b8bd
TT
82932020-03-13 Tom Tromey <tom@tromey.com>
8294
8295 * c-valprint.c (c_value_print_memberptr): New function.
8296 (c_value_print_inner): Use it.
8297
2faac269
TT
82982020-03-13 Tom Tromey <tom@tromey.com>
8299
8300 * c-valprint.c (c_value_print_int): New function.
8301 (c_value_print_inner): Use it.
8302
da3e2c29
TT
83032020-03-13 Tom Tromey <tom@tromey.com>
8304
8305 * c-valprint.c (c_value_print_ptr): New function.
8306 (c_value_print_inner): Use it.
8307
50836231
TT
83082020-03-13 Tom Tromey <tom@tromey.com>
8309
8310 * c-valprint.c (c_value_print_inner): Rewrite.
8311
4f412b6e
TT
83122020-03-13 Tom Tromey <tom@tromey.com>
8313
8314 * valprint.c (generic_value_print_complex): New function.
8315 (generic_value_print): Use it.
8316
f5354008
TT
83172020-03-13 Tom Tromey <tom@tromey.com>
8318
8319 * valprint.c (generic_val_print_float): Don't call
8320 val_print_scalar_formatted.
8321 (generic_val_print, generic_value_print): Update.
8322
3eec3b05
TT
83232020-03-13 Tom Tromey <tom@tromey.com>
8324
8325 * valprint.c (generic_value_print_char): New function
8326 (generic_value_print): Use it.
8327
fdddfccb
TT
83282020-03-13 Tom Tromey <tom@tromey.com>
8329
8330 * valprint.c (generic_value_print_int): New function.
8331 (generic_value_print): Use it.
8332
6dde7521
TT
83332020-03-13 Tom Tromey <tom@tromey.com>
8334
8335 * valprint.c (generic_value_print_bool): New function.
8336 (generic_value_print): Use it.
8337
4112d2e6
TT
83382020-03-13 Tom Tromey <tom@tromey.com>
8339
8340 * valprint.c (generic_val_print_func): Simplify.
8341 (generic_val_print, generic_value_print): Update.
8342
65786af6
TT
83432020-03-13 Tom Tromey <tom@tromey.com>
8344
8345 * valprint.c (generic_val_print_flags): Remove.
8346 (generic_val_print, generic_value_print): Update.
8347 (val_print_type_code_flags): Add original_value parameter.
8348
40f3ce18
TT
83492020-03-13 Tom Tromey <tom@tromey.com>
8350
8351 * valprint.c (generic_val_print): Update.
8352 (generic_value_print): Update.
8353 * valprint.c (generic_val_print_enum): Don't call
8354 val_print_scalar_formatted.
8355
2a5b130b
TT
83562020-03-13 Tom Tromey <tom@tromey.com>
8357
8358 * valprint.c (generic_value_print): Call generic_value_print_ptr.
8359 * valprint.c (generic_value_print_ptr): New function.
8360
abc66ce9
TT
83612020-03-13 Tom Tromey <tom@tromey.com>
8362
8363 * valprint.c (generic_value_print): Rewrite.
8364
07a32858
TT
83652020-03-13 Tom Tromey <tom@tromey.com>
8366
8367 * p-valprint.c (pascal_object_print_value_fields)
8368 (pascal_object_print_value): New functions.
8369
64d64d3a
TT
83702020-03-13 Tom Tromey <tom@tromey.com>
8371
8372 * p-valprint.c (pascal_value_print_inner): Rewrite.
8373
6a95a1f5
TT
83742020-03-13 Tom Tromey <tom@tromey.com>
8375
8376 * f-valprint.c (f_value_print_innner): Rewrite.
8377
59fcdac6
TT
83782020-03-13 Tom Tromey <tom@tromey.com>
8379
8380 * m2-valprint.c (m2_print_unbounded_array): New overload.
8381 (m2_print_unbounded_array): Update.
8382 (m2_print_array_contents): Take a struct value.
8383 (m2_value_print_inner): Rewrite.
8384
d133c3e1
TT
83852020-03-13 Tom Tromey <tom@tromey.com>
8386
8387 * d-valprint.c (dynamic_array_type): Call d_value_print_inner.
8388 (d_value_print_inner): New function.
8389 * d-lang.h (d_value_print_inner): Declare.
8390 * d-lang.c (d_language_defn): Use d_value_print_inner.
8391
23b0f06b
TT
83922020-03-13 Tom Tromey <tom@tromey.com>
8393
8394 * go-valprint.c (go_value_print_inner): New function.
8395 * go-lang.h (go_value_print_inner): Declare.
8396 * go-lang.c (go_language_defn): Use go_value_print_inner.
8397
5f56f7cb
TT
83982020-03-13 Tom Tromey <tom@tromey.com>
8399
8400 * rust-lang.c (val_print_struct, rust_print_enum): Use the value
8401 API.
8402 (rust_val_print): Rewrite.
8403 (rust_value_print_inner): New function, from rust_val_print.
8404 (rust_language_defn): Use rust_value_print_inner.
8405
26792ee0
TT
84062020-03-13 Tom Tromey <tom@tromey.com>
8407
8408 * ada-valprint.c (ada_value_print_inner): New function.
8409 * ada-lang.h (ada_value_print_inner): Declare.
8410 * ada-lang.c (ada_language_defn): Use ada_value_print_inner.
8411
24051bbe
TT
84122020-03-13 Tom Tromey <tom@tromey.com>
8413
8414 * f-valprint.c (f_value_print_innner): New function.
8415 * f-lang.h (f_value_print_innner): Declare.
8416 * f-lang.c (f_language_defn): Use f_value_print_innner.
8417
c0941be6
TT
84182020-03-13 Tom Tromey <tom@tromey.com>
8419
8420 * p-valprint.c (pascal_value_print_inner): New function.
8421 * p-lang.h (pascal_value_print_inner): Declare.
8422 * p-lang.c (pascal_language_defn): Use pascal_value_print_inner.
8423
62c4663d
TT
84242020-03-13 Tom Tromey <tom@tromey.com>
8425
8426 * m2-valprint.c (m2_value_print_inner): New function.
8427 * m2-lang.h (m2_value_print_inner): Declare.
8428 * m2-lang.c (m2_language_defn): Use m2_value_print_inner.
8429
62182190
TT
84302020-03-13 Tom Tromey <tom@tromey.com>
8431
8432 * opencl-lang.c (opencl_language_defn): Use c_value_print_inner.
8433 * objc-lang.c (objc_language_defn): Use c_value_print_inner.
8434 * c-valprint.c (c_value_print_inner): New function.
8435 * c-lang.h (c_value_print_inner): Declare.
8436 * c-lang.c (c_language_defn, cplus_language_defn)
8437 (asm_language_defn, minimal_language_defn): Use
8438 c_value_print_inner.
8439
1e592a8a
TT
84402020-03-13 Tom Tromey <tom@tromey.com>
8441
8442 * p-valprint.c (pascal_object_print_value_fields): Now static.
8443 * p-lang.h (pascal_object_print_value_fields): Don't declare.
8444
7fe471e9
TT
84452020-03-13 Tom Tromey <tom@tromey.com>
8446
8447 * c-valprint.c (c_val_print_array): Simplify.
8448
d121c6ce
TT
84492020-03-13 Tom Tromey <tom@tromey.com>
8450
8451 * valprint.c (value_print_array_elements): New function.
8452 * valprint.h (value_print_array_elements): Declare.
8453
4dba70ee
TT
84542020-03-13 Tom Tromey <tom@tromey.com>
8455
8456 * printcmd.c (print_formatted): Use value_print_scalar_formatted.
8457 * mips-tdep.c (mips_print_register): Use
8458 value_print_scalar_formatted.
8459
4f9ae810
TT
84602020-03-13 Tom Tromey <tom@tromey.com>
8461
8462 * valprint.h (value_print_scalar_formatted): Declare.
8463 * valprint.c (value_print_scalar_formatted): New function.
8464
156bfec9
TT
84652020-03-13 Tom Tromey <tom@tromey.com>
8466
8467 * valprint.h (generic_value_print): Declare.
8468 * valprint.c (generic_value_print): New function.
8469
2b4e573d
TT
84702020-03-13 Tom Tromey <tom@tromey.com>
8471
8472 * valprint.c (do_val_print): Call la_value_print_inner, if
8473 available.
8474 * rust-lang.c (rust_language_defn): Update.
8475 * p-lang.c (pascal_language_defn): Update.
8476 * opencl-lang.c (opencl_language_defn): Update.
8477 * objc-lang.c (objc_language_defn): Update.
8478 * m2-lang.c (m2_language_defn): Update.
8479 * language.h (struct language_defn) <la_value_print_inner>: New
8480 member.
8481 * language.c (unknown_language_defn, auto_language_defn): Update.
8482 * go-lang.c (go_language_defn): Update.
8483 * f-lang.c (f_language_defn): Update.
8484 * d-lang.c (d_language_defn): Update.
8485 * c-lang.c (c_language_defn, cplus_language_defn)
8486 (asm_language_defn, minimal_language_defn): Update.
8487 * ada-lang.c (ada_language_defn): Update.
8488
a1f6a07c
TT
84892020-03-13 Tom Tromey <tom@tromey.com>
8490
8491 * c-valprint.c (c_value_print): Use common_val_print.
8492
410cf315
TT
84932020-03-13 Tom Tromey <tom@tromey.com>
8494
8495 * cp-valprint.c (cp_print_static_field): Use common_val_print.
8496
72a45c93
TT
84972020-03-13 Tom Tromey <tom@tromey.com>
8498
8499 * f-valprint.c (f77_print_array_1, f_val_print): Use
8500 common_val_print.
8501
040f66bd
TT
85022020-03-13 Tom Tromey <tom@tromey.com>
8503
8504 * riscv-tdep.c (riscv_print_one_register_info): Use
8505 common_val_print.
8506
a6e05a6c
TT
85072020-03-13 Tom Tromey <tom@tromey.com>
8508
8509 * mi/mi-main.c (output_register): Use common_val_print.
8510
3444c526
TT
85112020-03-13 Tom Tromey <tom@tromey.com>
8512
8513 * infcmd.c (default_print_one_register_info): Use
8514 common_val_print.
8515
c2a44efe
TT
85162020-03-13 Tom Tromey <tom@tromey.com>
8517
8518 * valprint.h (common_val_print_checked): Declare.
8519 * valprint.c (common_val_print_checked): New function.
8520 * stack.c (print_frame_arg): Use common_val_print_checked.
8521
b0c26e99
TT
85222020-03-13 Tom Tromey <tom@tromey.com>
8523
8524 * valprint.c (do_val_print): New function, from val_print.
8525 (val_print): Use do_val_print.
8526 (common_val_print): Use do_val_print.
8527
ce3acbe9
TT
85282020-03-13 Tom Tromey <tom@tromey.com>
8529
8530 * valprint.c (value_print): Use scoped_value_mark.
8531
96c7f873
TV
85322020-03-13 Tom de Vries <tdevries@suse.de>
8533
8534 PR symtab/25646
8535 * psymtab.c (partial_symtab::partial_symtab): Don't set
8536 globals_offset and statics_offset. Push element onto
8537 current_global_psymbols and current_static_psymbols stacks.
8538 (concat): New function.
8539 (end_psymtab_common): Set globals_offset and statics_offset. Pop
8540 element from current_global_psymbols and current_static_psymbols
8541 stacks. Concat popped elements to global_psymbols and
8542 static_symbols.
8543 (add_psymbol_to_list): Use current_global_psymbols and
8544 current_static_psymbols stacks.
8545 * psymtab.h (class psymtab_storage): Add current_global_psymbols and
8546 current_static_psymbols fields.
8547
6ba0a321
CB
85482020-03-12 Christian Biesinger <cbiesinger@google.com>
8549
8550 * corelow.c (sniff_core_bfd): Remove.
8551 (class core_target) <m_core_vec>: Remove.
8552 (core_target::core_target): Update.
8553 (core_file_fns): Remove.
8554 (deprecated_add_core_fns): Remove.
8555 (default_core_sniffer): Remove.
8556 (sniff_core_bfd): Remove.
8557 (default_check_format): Remove.
8558 (gdb_check_format): Remove.
8559 (core_target_open): Update.
8560 (core_target::get_core_register_section): Update.
8561 (get_core_registers_cb): Update.
8562 (core_target::fetch_registers): Update.
8563 * gdbcore.h (struct core_fns): Remove.
8564 (deprecated_add_core_fns): Remove.
8565 (default_core_sniffer): Remove.
8566 (default_check_format): Remove.
8567
227031b2
TT
85682020-03-12 Tom Tromey <tom@tromey.com>
8569
8570 * arm-tdep.c (struct arm_mapping_symbol) <value>: Now a
8571 CORE_ADDR.
8572 (struct arm_exidx_entry) <addr>: Now a CORE_ADDR.
8573
53807e9f
TT
85742020-03-12 Tom Tromey <tom@tromey.com>
8575
8576 * remote.c (remote_target::download_tracepoint)
8577 (remote_target::enable_tracepoint)
8578 (remote_target::disable_tracepoint): Use phex, not sprintf_vma.
8579 * breakpoint.c (print_recreate_masked_watchpoint): Use phex, not
8580 sprintf_vma.
8581
64f25102
TT
85822020-03-12 Tom Tromey <tom@tromey.com>
8583
8584 * symfile-mem.c: Update CORE_ADDR size assert.
8585
272cd5a3
SM
85862020-03-12 Simon Marchi <simon.marchi@efficios.com>
8587
8588 * selftest.m4: Move to gdbsupport/.
8589 * acinclude.m4: Update path to selftest.m4.
8590
74cd3f9d
SM
85912020-03-12 Simon Marchi <simon.marchi@efficios.com>
8592
8593 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Rename to...
8594 (SELFTESTS_SRCS): ... this. Add disasm-selftests.c,
8595 gdbarch-selfselftests.c and selftest-arch.c.
8596 (SUBDIR_UNITTESTS_OBS): Rename to...
8597 (SELFTESTS_OBS): ... this.
8598 (COMMON_SFILES): Remove disasm-selftests.c and
8599 gdbarch-selftests.c.
8600 * configure.ac: Don't add selftest-arch.{c,o} to
8601 CONFIG_{SRCS,OBS}.
8602 * disasm-selftests.c, gdbarch-selftests.c: Remove GDB_SELF_TEST
8603 preprocessor conditions.
8604
db6878ac
SM
86052020-03-12 Simon Marchi <simon.marchi@efficios.com>
8606
8607 * configure.ac: Don't source bfd/development.sh.
8608 * selftest.m4: Modify comment.
8609 * configure: Re-generate.
8610
4d696a5c
SM
86112020-03-12 Simon Marchi <simon.marchi@efficios.com>
8612
8613 * selftest.m4 (GDB_AC_SELFTEST): Error out if $development is
8614 not "true" or "false".
8615 * configure: Re-generate.
8616
8dd8e1c7
CB
86172020-03-12 Christian Biesinger <cbiesinger@google.com>
8618
8619 * Makefile.in (HFILES_NO_SRCDIR): Add new arm-nbsd-tdep.h file.
8620 * arm-nbsd-nat.c (arm_supply_gregset): Moved to arm-nbsd-tdep and
8621 renamed to arm_nbsd_supply_gregset.
8622 (fetch_register): Update to call arm_nbsd_supply_gregset.
8623 (fetch_regs): Remove in favor of fetch_register with a -1 regno.
8624 (arm_netbsd_nat_target::fetch_registers): Update.
8625 (fetch_elfcore_registers): Removed.
8626 (_initialize_arm_netbsd_nat): Removed call to deprecated_add_core_fns.
8627 * arm-nbsd-tdep.c (struct arm_nbsd_reg): New struct.
8628 (arm_nbsd_supply_gregset): Moved from arm-nbsd-nat.c and updated to
8629 not require NetBSD system headers.
8630 (arm_nbsd_regset): New struct.
8631 (arm_nbsd_iterate_over_regset_sections): New function.
8632 (arm_netbsd_init_abi_common): Updated to call
8633 set_gdbarch_iterate_over_regset_sections.
8634 * arm-nbsd-tdep.h: New file.
8635
dd69bf7a
KB
86362020-03-11 Kevin Buettner <kevinb@redhat.com>
8637
8638 * symtab.c (find_pc_sect_line): Add check which prevents infinite
8639 recursion.
8640
a0761e34
SM
86412020-03-11 Simon Marchi <simon.marchi@efficios.com>
8642
8643 * configure: Re-generate.
8644
e7a82140
TT
86452020-03-11 Tom Tromey <tromey@adacore.com>
8646
8647 * ada-typeprint.c (print_choices): Fix comment.
8648
dcc050c8
AB
86492020-03-11 Andrew Burgess <andrew.burgess@embecosm.com>
8650
8651 * buildsyms.c (buildsym_compunit::record_line): Avoid accessing
8652 previous item in the list, when the list has no items.
8653
1c33af77
TV
86542020-03-11 Tom de Vries <tdevries@suse.de>
8655
8656 * dwarf2/loc.c (dwarf2_evaluate_property): Handle NULL frame in
8657 PROP_LOCLIST handling code.
8658
8c95582d
AB
86592020-03-10 Andrew Burgess <andrew.burgess@embecosm.com>
8660
8661 * buildsym-legacy.c (record_line): Pass extra parameter to
8662 record_line.
8663 * buildsym.c (buildsym_compunit::record_line): Take an extra
8664 parameter, reduce duplication in the line table, and record the
8665 is_stmt flag in the line table.
8666 * buildsym.h (buildsym_compunit::record_line): Add extra
8667 parameter.
8668 * disasm.c (do_mixed_source_and_assembly_deprecated): Ignore
8669 non-statement lines.
8670 * dwarf2/read.c (dwarf_record_line_1): Add extra parameter, pass
8671 this to the symtab builder.
8672 (dwarf_finish_line): Pass extra parameter to dwarf_record_line_1.
8673 (lnp_state_machine::record_line): Pass a suitable is_stmt flag
8674 through to dwarf_record_line_1.
8675 * infrun.c (process_event_stop_test): When stepping, don't stop at
8676 a non-statement instruction, and only refresh the step info when
8677 we land in the middle of a line's range. Also add an extra
8678 comment.
8679 * jit.c (jit_symtab_line_mapping_add_impl): Initialise is_stmt
8680 field.
8681 * record-btrace.c (btrace_find_line_range): Only record lines
8682 marked as is-statement.
8683 * stack.c (frame_show_address): Show the frame address if we are
8684 in a non-statement sal.
8685 * symmisc.c (dump_symtab_1): Print the is_stmt flag.
8686 (maintenance_print_one_line_table): Print a header for the is_stmt
8687 column, and include is_stmt information in the output.
8688 * symtab.c (find_pc_sect_line): Find lines marked as statements in
8689 preference to non-statements.
8690 (find_pcs_for_symtab_line): Prefer is-statement entries.
8691 (find_line_common): Likewise.
8692 * symtab.h (struct linetable_entry): Add is_stmt field.
8693 (struct symtab_and_line): Likewise.
8694 * xcoffread.c (arrange_linetable): Initialise is_stmt field when
8695 arranging the line table.
8696
e4003a34
TV
86972020-03-07 Tom de Vries <tdevries@suse.de>
8698
8699 * dwarf2/read.c (read_typedef): Treat anonymous typedef as forwarder
8700 DIE.
8701
e8932576
TT
87022020-03-07 Tom Tromey <tom@tromey.com>
8703
8704 * valops.c (value_literal_complex): Remove obsolete comment.
8705 * gdbtypes.h (enum type_code) <TYPE_CODE_FLT>: Remove obsolete
8706 comment.
8707
29734269
SM
87082020-03-06 Simon Marchi <simon.marchi@polymtl.ca>
8709
8710 * infrun.h: Forward-declare thread_info.
8711 (set_step_info): Add thread_info parameter, add doc.
8712 * infrun.c (set_step_info): Add thread_info parameter, move doc
8713 to header.
8714 * infrun.c (process_event_stop_test): Pass thread to
8715 set_step_info call.
8716 * infcmd.c (set_step_frame): Add thread_info pointer, pass it to
8717 set_step_info.
8718 (prepare_one_step): Add thread_info parameter, pass it to
8719 set_step_frame and prepare_one_step (recursive) call.
8720 (step_1): Pass thread to prepare_one_step call.
8721 (step_command_fsm::should_stop): Pass thread to
8722 prepare_one_step.
8723 (until_next_fsm): Pass thread to set_step_frame call.
8724 (finish_command): Pass thread to set_step_info call.
8725
b7d64b29
HD
87262020-03-06 Hannes Domani <ssbssa@yahoo.de>
8727
8728 * windows-tdep.c (windows_solib_create_inferior_hook):
8729 Check if inferior is running.
8730
09f2921c
TV
87312020-03-06 Tom de Vries <tdevries@suse.de>
8732
8733 * NEWS: Fix "the the".
8734 * ctfread.c: Same.
8735
fd760e79
TV
87362020-03-06 Tom de Vries <tdevries@suse.de>
8737
8738 * psymtab.c (psymtab_to_symtab): Don't print "done.".
8739
20ea4a60
AB
87402020-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
8741
8742 * .dir-locals.el: Add a comment referencing the other copies of
8743 this file.
8744
0afbabf0
JB
87452020-03-05 John Baldwin <jhb@FreeBSD.org>
8746
8747 * fbsd-tdep.c (fbsd_make_corefile_notes): Use std::string for
8748 psargs.
8749
842806cb
TBA
87502020-03-05 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
8751
8752 * .gitattributes: New file.
8753
be1e3d3e
TT
87542020-03-04 Tom Tromey <tom@tromey.com>
8755
8756 * symmisc.c (print_symbol_bcache_statistics)
8757 (print_objfile_statistics): Update.
8758 * symfile.c (allocate_symtab): Use intern.
8759 * psymtab.c (partial_symtab::partial_symtab): Use intern.
8760 * objfiles.h (struct objfile_per_bfd_storage) <filename_cache,
8761 macro_cache>: Remove.
8762 <string_cache>: New member.
8763 (struct objfile) <intern>: New methods.
8764 * elfread.c (elf_symtab_read): Use intern.
8765 * dwarf2/read.c (fixup_go_packaging): Intern package name.
8766 (dwarf2_compute_name, dwarf2_physname)
8767 (create_dwo_unit_in_dwp_v1, create_dwo_unit_in_dwp_v2): Intern
8768 names.
8769 (guess_partial_die_structure_name): Update.
8770 (partial_die_info::fixup): Intern name.
8771 (dwarf2_canonicalize_name): Change parameter to objfile. Intern
8772 name.
8773 (dwarf2_name): Intern name. Update.
8774 * buildsym.c (buildsym_compunit::get_macro_table): Use
8775 string_cache.
8776
4e7625fd
TT
87772020-03-04 Tom Tromey <tom@tromey.com>
8778
8779 * jit.c (bfd_open_from_target_memory): Make "target" const.
8780 * corefile.c (gnutarget): Now const.
8781 * gdbcore.h (gnutarget): Now const.
8782
46f9f931
HD
87832020-03-04 Hannes Domani <ssbssa@yahoo.de>
8784
8785 * NEWS: Mention support for WOW64 processes.
8786 * amd64-windows-nat.c (amd64_mappings): Rename and remove static.
8787 (amd64_windows_segment_register_p): Remove static.
8788 (_initialize_amd64_windows_nat): Update.
8789 * configure.nat <windows> (NATDEPFILES): Add i386-windows-nat.o.
8790 * i386-windows-nat.c (context_offset): Update.
8791 (i386_mappings): Rename and remove static.
8792 (i386_windows_segment_register_p): Remove static.
8793 (_initialize_i386_windows_nat): Update.
8794 * windows-nat.c (STATUS_WX86_BREAKPOINT): New macro.
8795 (STATUS_WX86_SINGLE_STEP): New macro.
8796 (EnumProcessModulesEx): New macro.
8797 (Wow64SuspendThread): New macro.
8798 (Wow64GetThreadContext): New macro.
8799 (Wow64SetThreadContext): New macro.
8800 (Wow64GetThreadSelectorEntry): New macro.
8801 (windows_set_context_register_offsets): Add static.
8802 (windows_set_segment_register_p): Likewise.
8803 (windows_add_thread): Adapt for WOW64 processes.
8804 (windows_fetch_one_register): Likewise.
8805 (windows_nat_target::fetch_registers): Likewise.
8806 (windows_store_one_register): Likewise.
8807 (display_selector): Likewise.
8808 (display_selectors): Likewise.
8809 (handle_exception): Likewise.
8810 (windows_continue): Likewise.
8811 (windows_nat_target::resume): Likewise.
8812 (windows_add_all_dlls): Likewise.
8813 (do_initial_windows_stuff): Likewise.
8814 (windows_nat_target::attach): Likewise.
8815 (windows_get_exec_module_filename): Likewise.
8816 (windows_nat_target::create_inferior): Likewise.
8817 (windows_xfer_siginfo): Likewise.
8818 (_initialize_loadable): Initialize Wow64SuspendThread,
8819 Wow64GetThreadContext, Wow64SetThreadContext,
8820 Wow64GetThreadSelectorEntry and EnumProcessModulesEx.
8821 * windows-nat.h (windows_set_context_register_offsets):
8822 Remove declaration.
8823 (windows_set_segment_register_p): Likewise.
8824 (i386_windows_segment_register_p): Add declaration.
8825 (amd64_windows_segment_register_p): Likewise.
8826
440cf44e
LM
88272020-03-04 Luis Machado <luis.machado@linaro.org>
8828
8829 Revert aa66aac47b4dd38f9524ddb5546c08cc09930d37 due to regressions
8830 in "info registers" for AArch64/ARM.
8831
8832 The change caused "info registers" to not print GPR's.
8833
8834 gdb/ChangeLog:
8835
8836 2020-02-01 Shahab Vahedi <shahab@synopsys.com>
8837
8838 * target-descriptions.c (tdesc_register_in_reggroup_p): Return 0
8839 when reg->group is empty and reggroup is not.
8840
1009d92f
TT
88412020-03-03 Tom Tromey <tromey@adacore.com>
8842
8843 * dwarf2/frame.c (struct dwarf2_frame_cache)
8844 <checked_tailcall_bottom, entry_cfa_sp_offset,
8845 entry_cfa_sp_offset_p>: Remove members.
8846 (dwarf2_frame_cache): Call dwarf2_tailcall_sniffer_first.
8847 (dwarf2_frame_prev_register): Don't call
8848 dwarf2_tailcall_sniffer_first.
8849 (dwarf2_append_unwinders): Don't append tailcall unwinder.
8850 * frame-unwind.c (add_unwinder): New fuction.
8851 (frame_unwind_init): Use it. Add tailcall unwinder.
8852
5e5d66b6
AB
88532020-03-03 Andrew Burgess <andrew.burgess@embecosm.com>
8854 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
8855
8856 * f-valprint.c (f_val_print): Handle TYPE_CODE_BOOL, any non-zero
8857 value should be printed as true.
8858
584cf46d
HD
88592020-03-03 Hannes Domani <ssbssa@yahoo.de>
8860
8861 * windows-tdep.c (windows_solib_create_inferior_hook): New function.
8862 (windows_init_abi): Set and use windows_so_ops.
8863
7b973adc
SDJ
88642020-03-03 Sergio Durigan Junior <sergiodj@redhat.com>
8865
8866 * printcmd.c (print_c_string): Check also for TYPE_CODE_PTR
8867 when verifying if dealing with a convenience variable.
8868
bb7b70ab
LM
88692020-03-03 Luis Machado <luis.machado@linaro.org>
8870
8871 * auxv.c (default_print_auxv_entry): Add new AUXV entries.
8872
9822cb57
SM
88732020-03-02 Simon Marchi <simon.marchi@polymtl.ca>
8874
8875 * infrun.c (gdbarch_supports_displaced_stepping): New.
8876 (use_displaced_stepping): Break up conditions in smaller pieces.
8877 Use gdbarch_supports_displaced_stepping.
8878 (displaced_step_prepare_throw): Use
8879 gdbarch_supports_displaced_stepping.
8880
63e163f2
AB
88812020-03-02 Andrew Burgess <andrew.burgess@embecosm.com>
8882
8883 * NEWS: Mention new behaviour of the history filename.
8884 * top.c (write_history_p): Add comment.
8885 (show_write_history_p): Add header comment, give a different
8886 message when history writing is on, but the history filename is
8887 empty.
8888 (history_filename): Add comment.
8889 (history_filename_empty): New function.
8890 (show_history_filename): Add header comment, give a different
8891 message when the filename is empty.
8892 (init_history): Compare history_filename against nullptr, and only
8893 read history if the filename is not empty.
8894 (set_history_filename): Add header comment, and only make
8895 non-empty filenames absolute.
8896 (init_main): Make the filename argument to 'set history filename'
8897 optional.
8898
81b86b97
CB
88992020-03-02 Christian Biesinger <cbiesinger@google.com>
8900
8901 * arm-nbsd-nat.c (arm_supply_fparegset): Rename to...
8902 (arm_supply_vfpregset): ...this, and update to use VFP registers.
8903 (fetch_fp_register): Update.
8904 (fetch_fp_regs): Update.
8905 (store_fp_register): Update.
8906 (store_fp_regs): Update.
8907 (arm_netbsd_nat_target::read_description): New function.
8908 (fetch_elfcore_registers): Update.
8909
24ed6739
AB
89102020-03-02 Andrew Burgess <andrew.burgess@embecosm.com>
8911
8912 * remote.c (remote_target::remote_parse_stop_reply): Don't use the
8913 general_thread if the stop reply is missing a thread-id.
8914 (remote_target::process_stop_reply): Use the first non-exited
8915 thread if the target didn't pass a thread-id.
8916 * infrun.c (do_target_wait): Move call to
8917 switch_to_inferior_no_thread to ....
8918 (do_target_wait_1): ... here.
8919
a84bb2a0
JT
89202020-02-29 Jon Turney <jon.turney@dronecode.org.uk>
8921
8922 * debuginfod-support.c: Include defs.h first.
8923
658dadf0
TV
89242020-02-28 Tom de Vries <tdevries@suse.de>
8925
8926 * symfile.c (set_initial_language): Use default language for lookup.
8927
4ebe4877
SM
89282020-02-28 Simon Marchi <simon.marchi@efficios.com>
8929
8930 * dwarf2/read.c (cutu_reader::init_tu_and_read_dwo_dies): Remove
8931 reader variable, pass `this` to read_cutu_die_from_dwo.
8932
e5da1139
AM
89332020-02-27 Aaron Merey <amerey@redhat.com>
8934
8935 * source.c (open_source_file): Check for nullptr when computing
8936 srcpath.
8937
317f7127
TT
89382020-02-27 Tom Tromey <tromey@adacore.com>
8939
8940 * dwarf2/read.c (struct field_info) <nfields>: Now a method, not a
8941 member.
8942 (dwarf2_add_field): Don't update nfields.
8943 (dwarf2_attach_fields_to_type, process_structure_scope): Update.
8944
3104d9ee
AB
89452020-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
8946
8947 * gdbtypes.c (create_array_type_with_stride): Use std::abs not
8948 abs.
8949
b83470bf
TT
89502020-02-26 Tom Tromey <tom@tromey.com>
8951
8952 * dwarf2/read.c (struct dwarf2_include_psymtab): New.
8953 (dwarf2_create_include_psymtab): Use dwarf2_include_psymtab.
8954 (dwarf2_psymtab::expand_psymtab, dwarf2_psymtab::readin_p)
8955 (dwarf2_psymtab::get_compunit_symtab): Remove null checks for
8956 per_cu_data.
8957
edfe0a0c
TT
89582020-02-26 Tom Tromey <tom@tromey.com>
8959
8960 * dwarf2/index-write.c (psym_index_map): Change type.
8961 (add_address_entry_worker, write_one_signatured_type)
8962 (recursively_count_psymbols, recursively_write_psymbols)
8963 (class debug_names, psyms_seen_size, write_gdbindex)
8964 (write_debug_names): Use partial_symtab, not dwarf2_psymtab.
8965
0d79cdc4
AM
89662020-02-26 Aaron Merey <amerey@redhat.com>
8967
8968 * Makefile.in: Handle optional debuginfod support.
8969 * NEWS: Update.
8970 * README: Add --with-debuginfod summary.
8971 * config.in: Regenerate.
8972 * configure: Regenerate.
8973 * configure.ac: Handle optional debuginfod support.
8974 * debuginfod-support.c: debuginfod helper functions.
8975 * debuginfod-support.h: Ditto.
8976 * doc/gdb.texinfo: Add --with-debuginfod to configure options
8977 summary.
8978 * dwarf2/read.c (dwarf2_get_dwz_file): Query debuginfod servers
8979 when a dwz file cannot be found.
8980 * elfread.c (elf_symfile_read): Query debuginfod servers when a
8981 debuginfo file cannot be found.
8982 * source.c (open_source_file): Query debuginfod servers when a
8983 source file cannot be found.
8984 * top.c (print_gdb_configuration): Include
8985 --{with,without}-debuginfod in the output.
8986
b65ce565
JG
89872020-02-26 Jérémie Galarneau <jeremie.galarneau@efficios.com>
8988
8989 * thread.c (thr_try_catch_cmd): Print thread name.
8990
d4c9a4f8
SM
89912020-02-26 Simon Marchi <simon.marchi@efficios.com>
8992
8993 * dwarf2/loc.h (dwarf2_fetch_die_loc_sect_off,
8994 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
8995 dwarf2_fetch_die_type_sect_off): Move to...
8996 * dwarf2/read.h (dwarf2_fetch_die_loc_sect_off,
8997 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
8998 dwarf2_fetch_die_type_sect_off): ... here.
8999 * dwarf2/read.c (dwarf2_fetch_die_loc_sect_off,
9000 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
9001 dwarf2_fetch_die_type_sect_off): Move doc to header file.
9002
0dce4280
TV
90032020-02-26 Tom de Vries <tdevries@suse.de>
9004
9005 PR gdb/25603
9006 * symfile.c (set_initial_language): Exit-early if
9007 language_mode == language_mode_manual.
9008
450a1bfc
SM
90092020-02-25 Simon Marchi <simon.marchi@polymtl.ca>
9010
9011 * dwarf2/loc.h (dwarf2_read_addr_index): Move...
9012 * dwarf2/read.h (dwarf2_read_addr_index): ... here.
9013 * dwarf2/read.c (dwarf2_read_addr_index): Move doc to header.
9014
9e80cfa1
AB
90152020-02-25 Andrew Burgess <andrew.burgess@embecosm.com>
9016
9017 * gdbtypes.c (create_array_type_with_stride): Handle negative
9018 array strides.
9019 * valarith.c (value_subscripted_rvalue): Likewise.
9020
09624f1f
LM
90212020-02-25 Luis Machado <luis.machado@linaro.org>
9022
9023 * aarch64-tdep.c (aarch64_vnv_type): Fix comment typo.
9024
8cb5117c
SM
90252020-02-25 Simon Marchi <simon.marchi@polymtl.ca>
9026
9027 * loc.h (dwarf2_get_die_type): Move to...
9028 * read.h (dwarf2_get_die_type): ... here.
9029 * read.c (dwarf2_get_die_type): Move doc to header.
9030
c325c44e
JB
90312020-02-25 Joel Brobecker <brobecker@adacore.com>
9032
9033 * copypright.py (EXCLUDE_LIST): Add 'gnulib/config.in' and
9034 'gnulib/Makefile.in' to the list.
9035
4ac93832
TT
90362020-02-24 Tom Tromey <tom@tromey.com>
9037
9038 * dwarf2/read.h (struct type_unit_unshareable) <num_symtabs>:
9039 Remove.
9040 * dwarf2/read.c (dwarf2_cu::setup_type_unit_groups): Use
9041 XOBNEWVEC.
9042
197400e8
TT
90432020-02-24 Tom Tromey <tom@tromey.com>
9044
9045 * dwarf2/read.h (struct dwarf2_per_cu_data) <type_unit_group_p>:
9046 New method.
9047 * dwarf2/read.c (IS_TYPE_UNIT_GROUP): Remove.
9048 (dw2_do_instantiate_symtab, dw2_get_file_names)
9049 (build_type_psymtab_dependencies, load_full_type_unit): Update.
9050
76935768
TT
90512020-02-24 Tom Tromey <tom@tromey.com>
9052
9053 * dwarf2read.c (dwarf2_build_psymtabs_hard): Use
9054 make_scoped_restore.
9055 (dwarf2_psymtab::read_symtab): Don't clear
9056 reading_partial_symbols.
9057
a88ef40d
TV
90582020-02-24 Tom de Vries <tdevries@suse.de>
9059
9060 PR gdb/25592
9061 * stack.c (iterate_over_block_locals): Handle LOC_CONST.
9062
c9af6521
TV
90632020-02-24 Tom de Vries <tdevries@suse.de>
9064
9065 * tui/tui-layout.c (_initialize_tui_layout): Fix help messages for
9066 commands layout next/prev/regs.
9067
5707a07a
TT
90682020-02-22 Tom Tromey <tom@tromey.com>
9069
9070 * dwarf2/loc.h (dwarf2_compile_expr_to_ax): Don't declare.
9071 * dwarf2/loc.c (dwarf2_compile_expr_to_ax): Now static.
9072
3b0fb49e
TT
90732020-02-22 Tom Tromey <tom@tromey.com>
9074
9075 * tui/tui-data.h (TUI_DISASM_WIN): Cast to tui_disasm_window.
9076
283be8bf
TT
90772020-02-22 Tom Tromey <tom@tromey.com>
9078
9079 * tui/tui-win.c (_initialize_tui_win): Add usage text.
9080 * tui/tui-stack.c (_initialize_tui_stack): Add usage text.
9081 * tui/tui-regs.c (_initialize_tui_regs): Add usage text.
9082 * tui/tui.c (_initialize_tui): Add usage text.
9083
ca793b96
TT
90842020-02-22 Tom Tromey <tom@tromey.com>
9085
9086 * tui/tui-win.c (tui_set_focus_command)
9087 (tui_set_win_height_command): Use error_no_arg.
9088 (_initialize_tui_win): Update help text.
9089 (FOCUS_USAGE, WIN_HEIGHT_USAGE): Don't define.
9090
432b5c40
TT
90912020-02-22 Tom Tromey <tom@tromey.com>
9092
9093 * tui/tui-layout.c (extract_display_start_addr): Rewrite.
9094 * tui/tui-disasm.h (struct tui_disasm_window)
9095 <display_start_addr>: Declare.
9096 * tui/tui-source.h (struct tui_source_window)
9097 <display_start_addr>: Declare.
9098 * tui/tui-winsource.h (struct tui_source_window_base)
9099 <show_source_line, display_start_addr>: New methods.
9100 <m_horizontal_offset, m_start_line_or_addr, m_gdbarch, m_content>:
9101 Rename and move to protected section.
9102 * tui/tui-winsource.c (tui_source_window_base::update_source_window)
9103 (tui_source_window_base::do_erase_source_content): Update.
9104 (tui_source_window_base::show_source_line): Now a method.
9105 (tui_source_window_base::show_source_content)
9106 (tui_source_window_base::tui_source_window_base)
9107 (tui_source_window_base::rerender)
9108 (tui_source_window_base::refill)
9109 (tui_source_window_base::do_scroll_horizontal)
9110 (tui_source_window_base::set_is_exec_point_at)
9111 (tui_source_window_base::update_breakpoint_info)
9112 (tui_source_window_base::update_exec_info): Update.
9113 * tui/tui-source.c (tui_source_window::set_contents)
9114 (tui_source_window::showing_source_p)
9115 (tui_source_window::do_scroll_vertical)
9116 (tui_source_window::location_matches_p)
9117 (tui_source_window::line_is_displayed): Update.
9118 (tui_source_window::display_start_addr): New method.
9119 * tui/tui-disasm.c (tui_disasm_window::set_contents)
9120 (tui_disasm_window::do_scroll_vertical)
9121 (tui_disasm_window::location_matches_p): Update.
9122 (tui_disasm_window::display_start_addr): New method.
9123
01b1af32
TT
91242020-02-22 Tom Tromey <tom@tromey.com>
9125
9126 * NEWS: Add entry for gdb.register_window_type.
9127 * tui/tui-layout.h (window_factory): New typedef.
9128 (tui_register_window): Declare.
9129 * tui/tui-layout.c (saved_tui_windows): New global.
9130 (tui_apply_current_layout): Use it.
9131 (tui_register_window): New function.
9132 * python/python.c (do_start_initialization): Call
9133 gdbpy_initialize_tui.
9134 (python_GdbMethods): Add "register_window_type" function.
9135 * python/python-internal.h (gdbpy_register_tui_window)
9136 (gdbpy_initialize_tui): Declare.
9137 * python/py-tui.c: New file.
9138 * Makefile.in (SUBDIR_PYTHON_SRCS): Add py-tui.c.
9139
fc96d20b
TT
91402020-02-22 Tom Tromey <tom@tromey.com>
9141
9142 * tui/tui-io.c (do_tui_putc): Don't omit annotations.
9143
935c78c0
TT
91442020-02-22 Tom Tromey <tom@tromey.com>
9145
9146 * tui/tui-win.c (tui_set_win_focus_to): Move to tui-data.c.
9147 * tui/tui-data.h (tui_set_win_with_focus): Don't declare.
9148 * tui/tui-data.c (tui_set_win_with_focus): Remove.
9149 (tui_set_win_focus_to): Move from tui-win.c.
9150
0240c8f1
TT
91512020-02-22 Tom Tromey <tom@tromey.com>
9152
9153 * tui/tui-layout.c (make_standard_window, get_locator_window): New
9154 functions.
9155 (known_window_types): New global.
9156 (tui_get_window_by_name): Reimplement.
9157 (initialize_known_windows): New function.
9158 (validate_window_name): Rewrite.
9159 (_initialize_tui_layout): Call initialize_known_windows.
9160
fdb01f0c
TT
91612020-02-22 Tom Tromey <tom@tromey.com>
9162
9163 * tui/tui.h (enum tui_win_type) <LOCATOR_WIN, DATA_ITEM_WIN>:
9164 Remove constants.
9165 * tui/tui-winsource.h (struct tui_source_window_base)
9166 <tui_source_window_base>: Remove parameter.
9167 * tui/tui-winsource.c
9168 (tui_source_window_base::tui_source_window_base): Remove
9169 parameter.
9170 (tui_source_window_base::refill): Update.
9171 * tui/tui-stack.h (struct tui_locator_window)
9172 <tui_locator_window>: Update.
9173 * tui/tui-source.h (struct tui_source_window) <tui_source_window>:
9174 Default the constructor.
9175 * tui/tui-regs.h (struct tui_data_item_window)
9176 <tui_data_item_window>: Default the constructor.
9177 (struct tui_data_window) <tui_data_window>: Likewise.
9178 * tui/tui-disasm.h (struct tui_disasm_window) <tui_disasm_window>:
9179 Default the constructor.
9180 * tui/tui-data.h (struct tui_gen_win_info) <tui_gen_win_info>:
9181 Default the constructor.
9182 <type>: Remove.
9183 (struct tui_win_info) <tui_win_info>: Default the constructor.
9184 * tui/tui-data.c (tui_win_info::tui_win_info): Remove.
9185 * tui/tui-command.h (struct tui_cmd_window) <tui_cmd_window>:
9186 Default the constructor.
9187
865a5aec
TT
91882020-02-22 Tom Tromey <tom@tromey.com>
9189
9190 * tui/tui-wingeneral.h (tui_make_all_invisible): Don't declare.
9191 * tui/tui-wingeneral.c (tui_make_all_invisible): Remove.
9192 * tui/tui-win.c (tui_resize_all): Don't call
9193 tui_delete_invisible_windows.
9194 * tui/tui-layout.c (tui_apply_current_layout): Delete windows when
9195 done.
9196 (tui_set_layout): Update.
9197 (tui_add_win_to_layout): Don't call tui_delete_invisible_windows.
9198 * tui/tui-data.h (tui_delete_invisible_windows): Don't declare.
9199 * tui/tui-data.c (tui_delete_invisible_windows): Remove.
9200
e098d18c
TT
92012020-02-22 Tom Tromey <tom@tromey.com>
9202
9203 * tui/tui-win.c (tui_partial_win_by_name): Handle ambiguity
9204 correctly.
9205
eb9c8874
TT
92062020-02-22 Tom Tromey <tom@tromey.com>
9207
9208 * tui/tui-data.c (tui_next_win, tui_prev_win): Reimplement.
9209
7eed1a8e
TT
92102020-02-22 Tom Tromey <tom@tromey.com>
9211
9212 * tui/tui-winsource.h (struct tui_source_window_iterator)
9213 <inner_iterator>: New etytypedef.
9214 <tui_source_window_iterator>: Take "end" parameter.
9215 <tui_source_window_iterator>: Take iterator.
9216 <operator*, advance>: Update.
9217 <m_iter>: Change type.
9218 <m_end>: New field.
9219 (struct tui_source_windows) <begin, end>: Update.
9220 * tui/tui-layout.c (tui_windows): New global.
9221 (tui_apply_current_layout): Clear tui_windows.
9222 (tui_layout_window::apply): Update tui_windows.
9223 * tui/tui-data.h (tui_windows): Declare.
9224 (all_tui_windows): Now inline function.
9225 (class tui_window_iterator, struct all_tui_windows): Remove.
9226
7c043ba6
TT
92272020-02-22 Tom Tromey <tom@tromey.com>
9228
9229 PR tui/17850:
9230 * tui/tui-win.c (tui_gen_win_info::max_width): New method.
9231 * tui/tui-layout.h (class tui_layout_base) <get_sizes>: Add
9232 "height" argument.
9233 (class tui_layout_window) <get_sizes>: Likewise.
9234 (class tui_layout_split) <tui_layout_split>: Add "vertical"
9235 argument.
9236 <get_sizes>: Add "height" argument.
9237 <m_vertical>: New field.
9238 * tui/tui-layout.c (tui_layout_split::clone): Update.
9239 (tui_layout_split::get_sizes): Add "height" argument.
9240 (tui_layout_split::adjust_size, tui_layout_split::apply): Update.
9241 (tui_new_layout_command): Parse "-horizontal".
9242 (_initialize_tui_layout): Update help string.
9243 (tui_layout_split::specification): Add "-horizontal" when needed.
9244 * tui/tui-layout.c (tui_layout_window::get_sizes): Add "height"
9245 argument.
9246 * tui/tui-data.h (struct tui_gen_win_info) <max_width, min_width>:
9247 New methods.
9248
6bc56648
TT
92492020-02-22 Tom Tromey <tom@tromey.com>
9250
9251 * tui/tui-layout.h (enum tui_adjust_result): New.
9252 (class tui_layout_base) <adjust_size>: Return tui_adjust_result.
9253 (class tui_layout_window) <adjust_size>: Return
9254 tui_adjust_result. Rewrite.
9255 (class tui_layout_split) <adjust_size>: Return tui_adjust_result.
9256 * tui/tui-layout.c (tui_layout_split::adjust_size): Update.
9257
c22fef7e
TT
92582020-02-22 Tom Tromey <tom@tromey.com>
9259
9260 * tui/tui-layout.h (class tui_layout_split) <add_split>: Change
9261 parameter and return types.
9262 (class tui_layout_base) <specification>: Add "depth".
9263 (class tui_layout_window) <specification>: Add "depth".
9264 (class tui_layout_split) <specification>: Add "depth".
9265 * tui/tui-layout.c (tui_layout_split::add_split): Change parameter
9266 and return types.
9267 (tui_new_layout_command): Parse sub-layouts.
9268 (_initialize_tui_layout): Update help string.
9269 (tui_layout_window::specification): Add "depth".
9270 (add_layout_command): Update.
9271
ee325b61
TT
92722020-02-22 Tom Tromey <tom@tromey.com>
9273
9274 * NEWS: Add "tui new-layout" item.
9275 * tui/tui-layout.c (add_layout_command): Return cmd_list_element.
9276 Add new-layout command to help text.
9277 (validate_window_name): New function.
9278 (tui_new_layout_command): New function.
9279 (_initialize_tui_layout): Register "new-layout".
9280 (tui_layout_window::specification): New method.
9281 (tui_layout_window::specification): New method.
9282 * tui/tui-layout.h (class tui_layout_base) <specification>: New
9283 method.
9284 (class tui_layout_window) <specification>: New method.
9285 (class tui_layout_split) <specification>: New method.
9286
416eb92d
TT
92872020-02-22 Tom Tromey <tom@tromey.com>
9288
9289 * tui/tui.c (tui_enable): Call tui_set_initial_layout.
9290 * tui/tui-win.c (window_name_completer): Update comment.
9291 * tui/tui-layout.h (class tui_layout_base) <replace_window>:
9292 Declare method.
9293 (class tui_layout_window) <replace_window>: Likewise.
9294 (class tui_layout_split) <replace_window>: Likewise.
9295 (tui_set_layout): Don't declare.
9296 (tui_set_initial_layout): Declare function.
9297 * tui/tui-layout.c (layouts, applied_skeleton, src_regs_layout)
9298 (asm_regs_layout): New globals.
9299 (tui_current_layout, show_layout): Remove.
9300 (tui_set_layout, tui_add_win_to_layout): Rewrite.
9301 (find_layout, tui_apply_layout): New function.
9302 (layout_completer): Remove.
9303 (tui_next_layout): Reimplement.
9304 (tui_next_layout_command): New function.
9305 (tui_set_initial_layout, tui_prev_layout_command): New functions.
9306 (tui_regs_layout): Reimplement.
9307 (tui_regs_layout_command): New function.
9308 (extract_display_start_addr): Rewrite.
9309 (next_layout, prev_layout): Remove.
9310 (tui_layout_window::replace_window): New method.
9311 (tui_layout_split::replace_window): New method.
9312 (destroy_layout): New function.
9313 (layout_list): New global.
9314 (add_layout_command): New function.
9315 (initialize_layouts): Update.
9316 (tui_layout_command): New function.
9317 (_initialize_tui_layout): Install "layout" commands.
9318 * tui/tui-data.h (enum tui_layout_type): Remove.
9319 (tui_current_layout): Don't declare.
9320
0dbc2fc7
TT
93212020-02-22 Tom Tromey <tom@tromey.com>
9322
9323 * tui/tui-regs.c (tui_reg_layout): Remove.
9324 (tui_reg_command): Use tui_regs_layout.
9325 * tui/tui-layout.h (tui_reg_command): Declare.
9326 * tui/tui-layout.c (tui_reg_command): New function.
9327
5afe342e
TT
93282020-02-22 Tom Tromey <tom@tromey.com>
9329
9330 * tui/tui.c (tui_rl_delete_other_windows): Call
9331 tui_remove_some_windows.
9332 * tui/tui-layout.h (class tui_layout_base) <remove_windows>:
9333 Declare method.
9334 (class tui_layout_window) <remove_windows>: New method.
9335 (class tui_layout_split) <remove_windows>: Declare.
9336 (tui_remove_some_windows): Declare.
9337 * tui/tui-layout.c (tui_remove_some_windows): New function.
9338 (tui_layout_split::remove_windows): New method.
9339
427326a8
TT
93402020-02-22 Tom Tromey <tom@tromey.com>
9341
9342 * tui/tui.c (tui_rl_change_windows): Call tui_next_layout.
9343 * tui/tui-layout.h (tui_next_layout): Declare.
9344 * tui/tui-layout.c (tui_next_layout): New function.
9345
3fe12b6d
TT
93462020-02-22 Tom Tromey <tom@tromey.com>
9347
9348 * tui/tui-regs.c (tui_data_window::display_registers_from): Use
9349 correct coordinates.
9350
59b8b5d2
TT
93512020-02-22 Tom Tromey <tom@tromey.com>
9352
9353 * tui/tui-layout.h (tui_add_win_to_layout): Add comment.
9354 * tui/tui-layout.c (tui_add_win_to_layout): Add assert. Remove
9355 DATA_WIN case.
9356
2a3d458b
TT
93572020-02-22 Tom Tromey <tom@tromey.com>
9358
9359 * tui/tui-disasm.c (tui_get_low_disassembly_address): Use
9360 TUI_DISASM_WIN, not tui_win_list.
9361
3f0cbb04
TT
93622020-02-22 Tom Tromey <tom@tromey.com>
9363
9364 * valprint.c (generic_val_print_enum_1)
9365 (val_print_type_code_flags): Style member names.
9366 * rust-lang.c (val_print_struct, rust_print_enum)
9367 (rust_print_struct_def, rust_internal_print_type): Style member
9368 names.
9369 * p-valprint.c (pascal_object_print_value_fields): Style member
9370 names. Only call fprintf_symbol_filtered for static members.
9371 * m2-typeprint.c (m2_record_fields, m2_enum): Style member names.
9372 * f-valprint.c (f_val_print): Style member names.
9373 * f-typeprint.c (f_type_print_base): Style member names.
9374 * cp-valprint.c (cp_print_value_fields): Style member names. Only
9375 call fprintf_symbol_filtered for static members.
9376 (cp_print_class_member): Style member names.
9377 * c-typeprint.c (c_print_type_1, c_type_print_base_1): Style
9378 member names.
9379 * ada-valprint.c (ada_print_scalar): Style enum names.
9380 (ada_val_print_enum): Likewise.
9381 * ada-typeprint.c (print_enum_type): Style enum names.
9382
d4d947ae
TT
93832020-02-21 Tom Tromey <tom@tromey.com>
9384
9385 * psympriv.h (struct partial_symtab): Update comment.
9386
e94e944b
TT
93872020-02-21 Tom Tromey <tromey@adacore.com>
9388
9389 * mips-tdep.h (mips_pc_is_mips16, mips_pc_is_micromips): Parameter
9390 type is CORE_ADDR.
9391
1eb73179
TV
93922020-02-21 Tom de Vries <tdevries@suse.de>
9393
9394 PR gdb/25534
9395 * psymtab.c (partial_symtab::read_dependencies): Don't read dependency
9396 if dependencies[i]->user != NULL.
9397
4f180d53
AT
93982020-02-21 Ali Tamur <tamur@google.com>
9399
9400 * dwarf2/read.c (dwarf2_name): Add null check.
9401
22b6cd70
TT
94022020-02-20 Tom Tromey <tom@tromey.com>
9403
9404 * dwarf2/read.c (dwarf2_find_containing_comp_unit): Use ">", not
9405 ">=", in binary search.
9406 (dwarf2_find_containing_comp_unit): New overload.
9407 (run_test): New self-test.
9408 (_initialize_dwarf2_read): Register new test.
9409
bd0cf5a6
NC
94102020-02-20 Nelson Chu <nelson.chu@sifive.com>
9411
9412 * riscv-tdep.c: Updated since the DECLARE_CSR is changed.
9413 * riscv-tdep.h: Likewise.
9414 * features/riscv/rebuild-csr-xml.sh: Generate the 64bit-csr.xml without
9415 rv32-only CSR.
9416 * features/riscv/64bit-csr.xml: Regenerated.
9417
3f702acd
SDJ
94182020-02-20 Sergio Durigan Junior <sergiodj@redhat.com>
9419 Tom Tromey <tom@tromey.com>
9420
9421 * utils.c (fputs_maybe_filtered): Call 'stream->puts' instead
9422 of 'fputc_unfiltered'.
9423 (putchar_unfiltered): Call 'fputc_unfiltered'.
9424 (fputc_unfiltered): Call 'fputs_unfiltered'.
9425
d13c7322
AB
94262020-02-20 Andrew Burgess <andrew.burgess@embecosm.com>
9427
9428 * config.in: Regenerate.
9429 * configure: Regenerate.
9430 * configure.ac: Add --with-python-libdir option.
9431 * main.c: Use WITH_PYTHON_LIBDIR.
9432
869d8950
TT
94332020-02-19 Tom Tromey <tom@tromey.com>
9434
9435 * symtab.c (general_symbol_info::compute_and_set_names): Use
9436 obstack_strndup. Simplify call to symbol_set_demangled_name.
9437
298e9637
SM
94382020-02-19 Simon Marchi <simon.marchi@efficios.com>
9439
9440 * dwarf2/read.c (allocate_signatured_type_table,
9441 allocate_dwo_unit_table, allocate_type_unit_groups_table,
9442 allocate_dwo_file_hash_table, allocate_dwp_loaded_cutus_table):
9443 Remove objfile parameter, update all callers.
9444
08410482
DE
94452020-02-19 Doug Evans <dje@google.com>
9446
9447 PR rust/25535
9448 * rust-lang.c (rust_print_enum): Apply embedded_offset to
9449 rust_enum_variant calculation.
9450
dfdeeca1
TT
94512020-02-19 Tom Tromey <tromey@adacore.com>
9452
9453 * mips-tdep.h (mips_pc_is_mips): Parameter type is CORE_ADDR.
9454
2ef5453b
TT
94552020-02-19 Tom Tromey <tromey@adacore.com>
9456
9457 * ada-lang.c (cache_symbol): Use obstack_strdup.
9458
9f1528a1
AB
94592020-02-19 Andrew Burgess <andrew.burgess@embecosm.com>
9460
9461 * configure: Regenerate.
9462
d3c22fa8
TT
94632020-02-19 Tom Tromey <tromey@adacore.com>
9464
9465 * python/python.c (do_start_initialization): Use XNEWVEC. Remove
9466 NULL check.
9467
bf84f706
MR
94682020-02-19 Maciej W. Rozycki <macro@wdc.com>
9469
9470 * NEWS: Mention RISC-V GNU/Linux GDBserver support.
9471
d1c9b20f
AB
94722020-02-19 Andrew Burgess <andrew.burgess@embecosm.com>
9473
9474 * arch/riscv.c (struct riscv_gdbarch_features_hasher): Only define
9475 if GDBSERVER is not defined.
9476 (riscv_tdesc_cache): Likewise, also store const target_desc.
9477 (STATIC_IN_GDB): Define.
9478 (riscv_create_target_description): Update declaration with
9479 STATIC_IN_GDB.
9480 (riscv_lookup_target_description): New function, only define if
9481 GDBSERVER is not defined.
9482 * arch/riscv.h (riscv_create_target_description): Declare only
9483 when GDBSERVER is defined.
9484 (riscv_lookup_target_description): New declaration when GDBSERVER
9485 is not defined.
9486 * nat/riscv-linux-tdesc.c (riscv_linux_read_description): Rename to...
9487 (riscv_linux_read_features): ...this, and return
9488 riscv_gdbarch_features instead of target_desc.
9489 * nat/riscv-linux-tdesc.h: Include 'arch/riscv.h'.
9490 (riscv_linux_read_description): Rename to...
9491 (riscv_linux_read_features): ...this.
9492 * riscv-linux-nat.c (riscv_linux_nat_target::read_description):
9493 Update to use riscv_gdbarch_features and
9494 riscv_lookup_target_description.
9495 * riscv-tdep.c (riscv_find_default_target_description): Use
9496 riscv_lookup_target_description instead of
9497 riscv_create_target_description.
9498
373d7ac0
SM
94992020-02-18 Simon Marchi <simon.marchi@efficios.com>
9500
9501 * valprint.c (generic_val_print_enum_1): When printing a flag
9502 enum with value 0 and there is no enumerator with value 0, print
9503 just "0" instead of "(unknown: 0x0)".
9504
b29a2df0
SM
95052020-02-18 Simon Marchi <simon.marchi@efficios.com>
9506
9507 * valprint.c (generic_val_print_enum_1): Print unknown part of
9508 flag enum in hex.
9509
6740f0cc
SM
95102020-02-18 Simon Marchi <simon.marchi@efficios.com>
9511
9512 * dwarf2/read.c (update_enumeration_type_from_children): Allow
9513 flag enums to contain duplicate enumerators.
9514 * valprint.c (generic_val_print_enum_1): Update comment.
9515
edd45eb0
SM
95162020-02-18 Simon Marchi <simon.marchi@efficios.com>
9517
9518 * dwarf2/read.c: Include "count-one-bits.h".
9519 (update_enumeration_type_from_children): If an enumerator has
9520 multiple bits set, don't treat the enumeration as a "flag enum".
9521 * valprint.c (generic_val_print_enum_1): Assert that enumerators
9522 of flag enums have 0 or 1 bit set.
9523
6d0cf446
BE
95242020-02-18 Bernd Edlinger <bernd.edlinger@hotmail.de>
9525
9526 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Use an explicit
9527 conversion.
9528 * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise.
9529 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn): Likewise.
9530 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
9531 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Likewise.
9532 * s390-tdep.c (s390_displaced_step_copy_insn): Likewise.
9533
7001c1b7
SM
95342020-02-18 Simon Marchi <simon.marchi@efficios.com>
9535
9536 * MAINTAINERS: Change palmer@sifive.com to palmer@dabbelt.com.
9537
fdb61c6c
SM
95382020-02-14 Simon Marchi <simon.marchi@efficios.com>
9539
9540 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Use
9541 displaced_step_closure_up.
9542 * aarch64-tdep.h (aarch64_displaced_step_copy_insn): Likewise.
9543 (struct displaced_step_closure_up):
9544 * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise.
9545 * amd64-tdep.h (amd64_displaced_step_copy_insn): Likewise.
9546 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn):
9547 Likewise.
9548 * gdbarch.sh (displaced_step_copy_insn): Likewise.
9549 * gdbarch.c, gdbarch.h: Re-generate.
9550 * i386-linux-tdep.c (i386_linux_displaced_step_copy_insn): Use
9551 displaced_step_closure_up.
9552 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
9553 * i386-tdep.h (i386_displaced_step_copy_insn): Likewise.
9554 * infrun.h (displaced_step_closure_up): New type alias.
9555 (struct displaced_step_inferior_state) <step_closure>: Change
9556 type to displaced_step_closure_up.
9557 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Use
9558 displaced_step_closure_up.
9559 * s390-tdep.c (s390_displaced_step_copy_insn): Likewise.
9560
a4a38eb4
TT
95612020-02-14 Tom Tromey <tom@tromey.com>
9562
9563 * minidebug.c (gnu_debug_key): New global.
9564 (find_separate_debug_file_in_section): Use it.
9565
e8217e61
SM
95662020-02-14 Simon Marchi <simon.marchi@efficios.com>
9567
9568 * gdbarch.sh (displaced_step_copy_insn): Change return type to an
9569 std::unique_ptr.
9570 * gdbarch.c: Re-generate.
9571 * gdbarch.h: Re-generate.
9572 * infrun.c (displaced_step_prepare_throw): Adjust to std::unique_ptr
9573 change.
9574 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Change return
9575 type to std::unique_ptr.
9576 * aarch64-tdep.h (aarch64_displaced_step_copy_insn): Likewise.
9577 * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise.
9578 * amd64-tdep.h (amd64_displaced_step_copy_insn): Likewise.
9579 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn): Likewise.
9580 * i386-linux-tdep.c (i386_linux_displaced_step_copy_insn): Likewise.
9581 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
9582 * i386-tdep.h (i386_displaced_step_copy_insn): Likewise.
9583 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Likewise.
9584 * s390-tdep.c (s390_displaced_step_copy_insn): Likewise.
9585
d8d83535
SM
95862020-02-14 Simon Marchi <simon.marchi@efficios.com>
9587
9588 * infrun.c (get_displaced_step_closure_by_addr): Adjust to
9589 std::unique_ptr.
9590 (displaced_step_clear): Rename to...
9591 (displaced_step_reset): ... this. Just call displaced->reset ().
9592 (displaced_step_clear_cleanup): Rename to...
9593 (displaced_step_reset_cleanup): ... this.
9594 (displaced_step_prepare_throw): Adjust to std::unique_ptr.
9595 (displaced_step_fixup): Likewise.
9596 (resume_1): Likewise.
9597 (handle_inferior_event): Restore child's memory before calling
9598 displaced_step_fixup on the parent.
9599 * infrun.h (displaced_step_inferior_state) <reset>: Adjust
9600 to std::unique_ptr.
9601 <step_closure>: Change type to std::unique_ptr.
9602
5f661e03
SM
96032020-02-14 Simon Marchi <simon.marchi@efficios.com>
9604
9605 * arm-tdep.c: Include count-one-bits.h.
9606 (cleanup_block_store_pc): Use count_one_bits.
9607 (cleanup_block_load_pc): Use count_one_bits.
9608 (arm_copy_block_xfer): Use count_one_bits.
9609 (thumb2_copy_block_xfer): Use count_one_bits.
9610 (thumb_copy_pop_pc_16bit): Use count_one_bits.
9611 * arch/arm-get-next-pcs.c: Include count-one-bits.h.
9612 (thumb_get_next_pcs_raw): Use count_one_bits.
9613 (arm_get_next_pcs_raw): Use count_one_bits_l.
9614 * arch/arm.c (bitcount): Remove.
9615 * arch/arm.h (bitcount): Remove.
9616
8084e579
TT
96172020-02-14 Tom Tromey <tromey@adacore.com>
9618
9619 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first):
9620 Update.
9621 * dwarf2/loc.h (call_site_find_chain): Return unique_xmalloc_ptr.
9622 * dwarf2/loc.c (call_site_find_chain_1): Return
9623 unique_xmalloc_ptr.
9624 (call_site_find_chain): Likewise.
9625
258bf0ee
RB
96262020-02-14 Richard Biener <rguenther@suse.de>
9627
9628 * dwarf2/read.c (lnp_state_machine::handle_special_opcode): Apply CSE
9629 on expression with division operators.
9630
f98a8458
AKS
96312020-02-13 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
9632
9633 * MAINTAINERS (Write After Approval): Adding myself.
9634
d1437c0e
TT
96352020-02-12 Tom Tromey <tom@tromey.com>
9636
9637 * event-loop.c (event_data, gdb_event, event_handler_func):
9638 Remove.
9639
3d4560f7
TT
96402020-02-12 Tom Tromey <tom@tromey.com>
9641
9642 * dwarf2/frame.c (dwarf2_frame_bfd_data): New global.
9643 (dwarf2_frame_objfile_data): Add comment.
9644 (find_comp_unit, set_comp_unit): New functions.
9645 (dwarf2_frame_find_fde): Use find_comp_unit.
9646 (dwarf2_build_frame_info): Use set_comp_unit.
9647
21982304
TT
96482020-02-12 Tom Tromey <tom@tromey.com>
9649
9650 * dwarf2/frame.c (struct comp_unit) <objfile>: Remove.
9651 (comp_unit): Don't initialize objfile.
9652 (execute_cfa_program): Add text_offset parameter.
9653 (execute_cfa_program_test, dwarf2_fetch_cfa_info)
9654 (dwarf2_frame_cache): Update.
9655 (dwarf2_build_frame_info): Don't set "objfile" member.
9656
4debb237
TT
96572020-02-12 Tom Tromey <tom@tromey.com>
9658
9659 * dwarf2/frame.c (decode_frame_entry_1): Add gdbarch parameter.
9660 (decode_frame_entry): Likewise.
9661 (dwarf2_build_frame_info): Update.
9662
0d404d44
TT
96632020-02-12 Tom Tromey <tom@tromey.com>
9664
9665 * dwarf2/frame.c (struct comp_unit) <obstack>: New member.
9666 (decode_frame_entry_1): Use the comp_unit obstack.
9667
a7a3ae5c
TT
96682020-02-12 Tom Tromey <tom@tromey.com>
9669
9670 * dwarf2/frame.c (struct comp_unit): Add initializers and
9671 constructor.
9672 (dwarf2_frame_objfile_data): Store a comp_unit.
9673 (dwarf2_frame_find_fde): Update.
9674 (dwarf2_build_frame_info): Use "new".
9675
a9d65418
TT
96762020-02-12 Tom Tromey <tom@tromey.com>
9677
9678 * dwarf2/frame.c (struct dwarf2_fde_table): Remove.
9679 (dwarf2_fde_table): Typedef for std::vector.
9680 (dwarf2_frame_objfile_data): Remove the deleter. Now static.
9681 (dwarf2_frame_find_fde, add_fde, decode_frame_entry_1)
9682 (decode_frame_entry): Update.
9683 (dwarf2_build_frame_info): Use "new".
9684
7559c217
CB
96852020-02-12 Christian Biesinger <cbiesinger@google.com>
9686
9687 * arm-tdep.c (arm_gdbarch_init): Update.
9688 * arm-tdep.h (struct gdbarch_tdep) <have_fpa_registers,
9689 have_wmmx_registers, have_vfp_pseudos, have_neon_pseudos,
9690 have_neon, is_m>: Change to bool.
9691
aeefc73c
CB
96922020-02-12 Christian Biesinger <cbiesinger@google.com>
9693
9694 * arm-tdep.c (arm_dump_tdep): Print more fields of tdep.
9695
d27b8e5f
TT
96962020-02-12 Tom Tromey <tom@tromey.com>
9697
9698 * dwarf2/loc.c (struct dwarf_expr_baton): Remove.
9699
cd5900f3
HD
97002020-02-12 Hannes Domani <ssbssa@yahoo.de>
9701
9702 * windows-tdep.c (struct windows_gdbarch_data): Add tib_ptr_type.
9703 (windows_get_tlb_type): Use windows_gdbarch_data->tib_ptr_type.
9704
f056b22b
TT
97052020-02-11 Tom Tromey <tom@tromey.com>
9706
9707 * psymtab.h: Update comment.
9708
f92ff6b5
TT
97092020-02-11 Tom Tromey <tom@tromey.com>
9710
9711 * gdb_obstack.h (struct auto_obstack): Use
9712 DISABLE_COPY_AND_ASSIGN.
9713
3fd6912b
TT
97142020-02-11 Tom Tromey <tom@tromey.com>
9715
9716 * dwarf2/frame.h (struct objfile): Don't forward declare.
9717
69ed9b74
CB
97182020-02-11 Christian Biesinger <cbiesinger@google.com>
9719
9720 * cris-tdep.c (cris_supply_gregset): Change signature to match
9721 what struct regset expects.
9722 (cris_regset): New struct.
9723 (fetch_core_registers): Remove.
9724 (cris_iterate_over_regset_sections): New function.
9725 (_initialize_cris_tdep): Don't call deprecated_add_core_fns.
9726 (cris_gdbarch_init): Call set_gdbarch_iterate_over_regset_sections.
9727
bda874f6
CB
97282020-02-11 Christian Biesinger <cbiesinger@google.com>
9729
9730 * arch/arm.h (enum gdb_regnum): Add comment for the FP0..7
9731 registers.
9732
754e1564
CB
97332020-02-11 Christian Biesinger <cbiesinger@google.com>
9734
9735 * arm-tdep.c (arm_dump_tdep): Add \n in fprintf.
9736
8ddd8e0e
SM
97372020-02-11 Simon Marchi <simon.marchi@efficios.com>
9738
9739 * configure: Re-generate.
9740
898e7f60
SM
97412020-02-11 Simon Marchi <simon.marchi@efficios.com>
9742
9743 * configure: Re-generate.
9744
58df732b
SM
97452020-02-11 Simon Marchi <simon.marchi@efficios.com>
9746
9747 * acinclude: Update warning.m4 path.
9748 * warning.m4: Move to gdbsupport.
9749
da5bd37e
TT
97502020-02-11 Tom Tromey <tromey@adacore.com>
9751
9752 * remote.c (remote_console_output): Update.
9753 * printcmd.c (printf_command): Update.
9754 * event-loop.c (gdb_wait_for_event): Update.
9755 * linux-nat.c (sigchld_handler): Update.
9756 * remote-sim.c (gdb_os_write_stdout): Update.
9757 (gdb_os_flush_stdout): Update.
9758 (gdb_os_flush_stderr): Update.
9759 (gdb_os_write_stderr): Update.
9760 * exceptions.c (print_exception): Update.
9761 * remote-fileio.c (remote_fileio_func_read): Update.
9762 (remote_fileio_func_write): Update.
9763 * tui/tui.c (tui_enable): Update.
9764 * tui/tui-interp.c (tui_interp::init): Update.
9765 * utils.c (init_page_info): Update.
9766 (putchar_unfiltered, fputc_unfiltered): Update.
9767 (gdb_flush): Update.
9768 (emit_style_escape): Update.
9769 (flush_wrap_buffer, fputs_maybe_filtered): Update.
9770 * ui-file.c (ui_file_isatty, ui_file_read, ui_file_write)
9771 (ui_file_write_async_safe, ui_file_flush, ui_file_puts): Remove.
9772 (stderr_file::write): Update.
9773 (stderr_file::puts): Update.
9774 * ui-file.h (ui_file_isatty, ui_file_write)
9775 (ui_file_write_async_safe, ui_file_read, ui_file_flush)
9776 (ui_file_puts): Don't declare.
9777
85f0dd3c
TV
97782020-02-10 Tom de Vries <tdevries@suse.de>
9779
9780 * dwarf2/read.c (process_psymtab_comp_unit_reader): Cast concat NULL
9781 sentinel to char *.
9782
2e927613
TV
97832020-02-09 Tom de Vries <tdevries@suse.de>
9784
9785 * dwarf2read.c (process_psymtab_comp_unit_reader): Append CU offset to
9786 filename if it matches "<artificial>".
9787
6bafc845
HD
97882020-02-09 Hannes Domani <ssbssa@yahoo.de>
9789
9790 * windows-tdep.c (struct enum_value_name): New struct.
9791 (create_enum): New function.
9792 (windows_get_siginfo_type): Create and use enum types.
9793
7928d571
HD
97942020-02-09 Hannes Domani <ssbssa@yahoo.de>
9795
9796 * NEWS: Mention $_siginfo support for Windows.
9797 * windows-nat.c (handle_exception): Set siginfo_er.
9798 (windows_nat_target::mourn_inferior): Reset siginfo_er.
9799 (windows_xfer_siginfo): New function.
9800 (windows_nat_target::xfer_partial): Call windows_xfer_siginfo.
9801 * windows-tdep.c (struct windows_gdbarch_data): New struct.
9802 (init_windows_gdbarch_data): New function.
9803 (get_windows_gdbarch_data): New function.
9804 (windows_get_siginfo_type): New function.
9805 (windows_init_abi): Register windows_get_siginfo_type.
9806 (_initialize_windows_tdep): Register init_windows_gdbarch_data.
9807
6751ebae
TT
98082020-02-08 Tom Tromey <tom@tromey.com>
9809
9810 * dwarf2/read.c (class cutu_reader) <cutu_reader,
9811 init_tu_and_read_dwo_dies>: Remove "keep" parameter.
9812 <keep>: Declare method.
9813 <m_keep>: Remove member.
9814 <~cutu_reader>: Remove.
9815 (cutu_reader::init_tu_and_read_dwo_dies): Update.
9816 (cutu_reader::cutu_reader): Update.
9817 (cutu_reader::keep): Rename from ~cutu_reader.
9818 (process_psymtab_comp_unit, build_type_psymtabs_1)
9819 (process_skeletonless_type_unit, load_partial_comp_unit)
9820 (load_full_comp_unit, dwarf2_read_addr_index)
9821 (read_signatured_type): Update.
9822
135f5437
TT
98232020-02-08 Tom Tromey <tom@tromey.com>
9824
9825 * dwarf2/read.c (process_psymtab_comp_unit_reader): Remove
9826 "want_partial_unit" parameter.
9827 (process_psymtab_comp_unit): Change want_partial_unit to bool.
9828 Inline check for DW_TAG_partial_unit.
9829 (dwarf2_build_psymtabs_hard, scan_partial_symbols): Update.
9830
9f66ff1c
TT
98312020-02-08 Tom Tromey <tom@tromey.com>
9832
9833 * dwarf2/read.c (read_n_bytes, read_direct_string): Move to
9834 read.c.
9835 * dwarf2/leb.h (read_n_bytes, read_direct_string): Move from
9836 read.c.
9837
c8a7a66f
TT
98382020-02-08 Tom Tromey <tom@tromey.com>
9839
9840 * dwarf2/read.c (read_address): Move to comp-unit.c.
9841 (dwarf2_rnglists_process, dwarf2_ranges_process)
9842 (read_attribute_value, dwarf_decode_lines_1)
9843 (var_decode_location, decode_locdesc): Update.
9844 * dwarf2/comp-unit.c (comp_unit_head::read_address): Move from
9845 read.c. Remove "cu" parameter.
9846 * dwarf2/comp-unit.h (struct comp_unit_head) <read_address>: New
9847 method.
9848
8266302d
TT
98492020-02-08 Tom Tromey <tom@tromey.com>
9850
9851 * dwarf2/read.c (read_attribute_value, read_indirect_string)
9852 (read_indirect_line_string): Update.
9853 * dwarf2/comp-unit.c (read_offset): Remove.
9854 (read_comp_unit_head): Update.
9855 * dwarf2/comp-unit.h (struct comp_unit_head) <read_offset>: New
9856 method.
9857 (read_offset): Don't declare.
9858
4057dfde
TT
98592020-02-08 Tom Tromey <tom@tromey.com>
9860
9861 * Makefile.in (COMMON_SFILES): Add dwarf2/comp-unit.c.
9862 * dwarf2/read.c (struct comp_unit_head): Move to
9863 dwarf2/comp-unit.h.
9864 (enum class rcuh_kind): Move to comp-unit.h.
9865 (get_cu_length, offset_in_cu_p): Now methods on comp_unit_head.
9866 (read_comp_unit_head, error_check_comp_unit_head)
9867 (read_and_check_comp_unit_head): Move to comp-unit.c.
9868 (read_offset, dwarf_unit_type_name): Likewise.
9869 (create_debug_type_hash_table, read_cutu_die_from_dwo)
9870 (cutu_reader::cutu_reader, read_call_site_scope)
9871 (find_partial_die, follow_die_offset): Update.
9872 * dwarf2/comp-unit.h: New file, from dwarf2read.c.
9873
24aa364d
TT
98742020-02-08 Tom Tromey <tom@tromey.com>
9875
9876 * dwarf2/read.c (read_offset_1): Move to leb.c.
9877 (read_abbrev_offset, read_offset, dwarf_decode_line_header)
9878 (dwarf_decode_macro_bytes): Update.
9879 * dwarf2/leb.c (read_offset): Rename; move from read.c.
9880 * dwarf2/leb.h (read_offset): Declare.
9881
2c7d5afc
TT
98822020-02-08 Tom Tromey <tom@tromey.com>
9883
9884 * dwarf2/read.c (dwarf2_section_size): Remove.
9885 (error_check_comp_unit_head, dwarf2_symbol_mark_computed):
9886 Update.
9887 * dwarf2/section.h (struct dwarf2_section_info) <get_size>: New method.
9888
4075cb26
TT
98892020-02-08 Tom Tromey <tom@tromey.com>
9890
9891 * dwarf2/read.c (read_initial_length): Move to leb.c.
9892 * dwarf2/leb.h (read_initial_length): Declare.
9893 * dwarf2/leb.c (read_initial_length): Move from read.c. Add
9894 handle_nonstd parameter.
9895 * dwarf2/frame.c (read_initial_length): Remove.
9896 (decode_frame_entry_1): Update.
9897
09ba997f
TT
98982020-02-08 Tom Tromey <tom@tromey.com>
9899
9900 * dwarf2/loc.c (dwarf2_find_location_expression)
9901 (dwarf_evaluate_loc_desc::get_tls_address)
9902 (dwarf_evaluate_loc_desc::push_dwarf_reg_entry_value)
9903 (rw_pieced_value, dwarf2_evaluate_loc_desc_full)
9904 (dwarf2_locexpr_baton_eval, dwarf2_evaluate_property)
9905 (dwarf2_compile_property_to_c)
9906 (dwarf2_loc_desc_get_symbol_read_needs)
9907 (dwarf2_compile_expr_to_ax, locexpr_describe_location)
9908 (locexpr_tracepoint_var_ref, locexpr_generate_c_location)
9909 (loclist_describe_location, loclist_tracepoint_var_ref)
9910 (loclist_generate_c_location): Update.
9911 * compile/compile-loc2c.c (do_compile_dwarf_expr_to_c): Update.
9912 * dwarf2/loc.h (dwarf2_per_cu_objfile, dwarf2_per_cu_addr_size)
9913 (dwarf2_per_cu_ref_addr_size, dwarf2_per_cu_offset_size)
9914 (dwarf2_per_cu_text_offset, dwarf2_version): Don't declare.
9915 * dwarf2/read.c (dwarf2_per_cu_data::objfile)
9916 (dwarf2_per_cu_data::addr_size)
9917 (dwarf2_per_cu_data::ref_addr_size)
9918 (dwarf2_per_cu_data::text_offset)
9919 (dwarf2_per_cu_data::addr_type): Now methods.
9920 (per_cu_header_read_in): Make per_cu "const".
9921 (dwarf2_version): Remove.
9922 (dwarf2_per_cu_data::int_type): Now a method.
9923 (dwarf2_per_cu_data::_addr_sized_int_type): Likewise.
9924 (set_die_type, read_array_type, read_subrange_index_type)
9925 (read_tag_string_type, read_subrange_type): Update.
9926 * dwarf2/read.h (struct dwarf2_per_cu_data) <addr_size,
9927 offset_size, ref_addr_size, text_offset, addr_type, version,
9928 objfile, int_type, addr_sized_int_type>: Declare methods.
9929
96c738c0
TT
99302020-02-08 Tom Tromey <tom@tromey.com>
9931
9932 * dwarf2/read.h (struct dwarf2_per_cu_data) <imported_symtabs>:
9933 Move earlier.
9934
8fdd972c
TT
99352020-02-08 Tom Tromey <tom@tromey.com>
9936
9937 * dwarf2/read.h (dwarf_line_debug): Declare.
9938 * Makefile.in (COMMON_SFILES): Add dwarf2/line-header.c.
9939 * dwarf2/read.c: Move line_header code to new files.
9940 (dwarf_line_debug): No longer static.
9941 * dwarf2/line-header.c: New file.
9942 * dwarf2/line-header.h: New file.
9943
03075812
TT
99442020-02-08 Tom Tromey <tom@tromey.com>
9945
9946 * dwarf2/read.c (struct line_header) <file_full_name,
9947 file_file_name>: Return unique_xmalloc_ptr.
9948 (line_header::file_file_name): Update.
9949 (line_header::file_full_name): Update.
9950 (dw2_get_file_names_reader): Update.
9951 (macro_start_file): Update.
9952
bb822404
TT
99532020-02-08 Tom Tromey <tom@tromey.com>
9954
9955 * dwarf2/read.c (struct line_header) <file_full_name,
9956 file_file_name>: Declare methods.
9957 (dw2_get_file_names_reader): Update.
9958 (file_file_name): Now a method.
9959 (file_full_name): Likewise.
9960 (macro_start_file): Update.
9961
009b64fc
TT
99622020-02-08 Tom Tromey <tom@tromey.com>
9963
9964 * dwarf2/read.c (dwarf_always_disassemble)
9965 (show_dwarf_always_disassemble): Move to loc.c.
9966 (_initialize_dwarf2_read): Move "always-disassemble" registration
9967 to loc.c.
9968 * dwarf2/read.h (dwarf_always_disassemble): Don't declare.
9969 * dwarf2/loc.c (dwarf_always_disassemble): Move from read.c. Now
9970 static.
9971 (show_dwarf_always_disassemble): Move from read.c.
9972 (_initialize_dwarf2loc): Move always-disassemble from read.c.
9973
5895093f
TT
99742020-02-08 Tom Tromey <tom@tromey.com>
9975
9976 * dwarf2/read.c (~dwarf2_per_objfile): Update.
9977 (create_quick_file_names_table): Return htab_up.
9978 (dw2_get_file_names_reader, dw2_forget_cached_source_info):
9979 Update.
9980 * dwarf2/read.h (struct dwarf2_per_objfile)
9981 <quick_file_names_table>: Now htab_up.
9982
b3b32279
TT
99832020-02-08 Tom Tromey <tom@tromey.com>
9984
9985 * dwarf2/abbrev.c (abbrev_table::read): Simplify.
9986
1d33d811
TT
99872020-02-08 Tom Tromey <tom@tromey.com>
9988
9989 * dwarf2/abbrev.c (abbrev_table): Move constructor from header.
9990 Rewrite.
9991 (abbrev_table::add_abbrev, abbrev_table::lookup_abbrev): Rewrite.
9992 * dwarf2/abbrev.h (struct abbrev_info) <next>: Remove.
9993 (abbrev_table::abbrev_table): No longer inline.
9994 (ABBREV_HASH_SIZE): Remove.
9995 (abbrev_table::m_abbrevs): Now an htab_up.
9996
86de1d91
TT
99972020-02-08 Tom Tromey <tom@tromey.com>
9998
9999 * dwarf2/read.c (read_cutu_die_from_dwo): Update.
10000 (cutu_reader): Update.
10001 (build_type_psymtabs_1): Update.
10002 * dwarf2/abbrev.c (abbrev_table::read): Rename.
10003 (abbrev_table::alloc_abbrev): Update.
10004 * dwarf2/abbrev.h (abbrev_table_up): Move earlier.
10005 (abbrev_table::read): New static method, renamed from
10006 abbrev_table_read_table.
10007 (abbrev_table::alloc_abbrev)
10008 (abbrev_table::add_abbrev): Now private.
10009 (abbrev_table::abbrev_table): Now private.
10010 (abbrev_table::m_abbrev_obstack): Now private. Rename.
10011
0335378b
TT
100122020-02-08 Tom Tromey <tom@tromey.com>
10013
10014 * dwarf2/read.c (set_die_type, get_die_type_at_offset): Update.
10015 * dwarf2/read.h (struct dwarf2_per_objfile) <die_type_hash>: Now
10016 htab_up.
10017
48b490f2
TT
100182020-02-08 Tom Tromey <tom@tromey.com>
10019
10020 * dwarf2/read.c (struct dwp_file) <loaded_cus, loaded_tus>: Now
10021 htab_up.
10022 (lookup_dwo_unit_in_dwp): Update.
10023 (allocate_dwp_loaded_cutus_table): Return htab_up. Don't allocate
10024 on obstack.
10025
bc68fb19
TT
100262020-02-08 Tom Tromey <tom@tromey.com>
10027
10028 * dwarf2/read.c (allocate_dwo_file_hash_table): Don't allocate on
10029 obstack.
10030
d15acc42
TT
100312020-02-08 Tom Tromey <tom@tromey.com>
10032
10033 * dwarf2/read.c (~dwarf2_per_objfile): Don't delete
10034 line_header_hash.
10035 (handle_DW_AT_stmt_list): Update. Don't allocate on obstack.
10036 * dwarf2/read.h (struct dwarf2_per_objfile) <line_header_hash>:
10037 Change type to htab_up.
10038
eaa5fa8b
TT
100392020-02-08 Tom Tromey <tom@tromey.com>
10040
10041 * dwarf2/read.c (allocate_type_unit_groups_table): Return
10042 htab_up. Don't allocate on obstack.
10043 (get_type_unit_group, dwarf2_build_psymtabs_hard): Update.
10044 * dwarf2/read.h (struct dwarf2_per_objfile) <type_unit_groups>:
10045 Change type to htab_up.
10046
b0b6a987
TT
100472020-02-08 Tom Tromey <tom@tromey.com>
10048
10049 * dwarf2/read.h (struct dwarf2_per_objfile) <signatured_types>:
10050 Change type to htab_up.
10051 * dwarf2/read.c (create_signatured_type_table_from_index)
10052 (create_signatured_type_table_from_debug_names)
10053 (create_all_type_units, add_type_unit)
10054 (lookup_dwo_signatured_type, lookup_signatured_type)
10055 (process_skeletonless_type_unit): Update.
10056 (create_debug_type_hash_table, create_debug_types_hash_table):
10057 Change type of types_htab.
10058 (allocate_signatured_type_table, allocate_dwo_unit_table): Return
10059 htab_up. Don't allocate on obstack.
10060 (create_cus_hash_table): Change type of cus_htab parameter.
10061 (struct dwo_file) <cus, tus>: Now htab_up.
10062 (lookup_dwo_signatured_type, lookup_dwo_cutu)
10063 (process_dwo_file_for_skeletonless_type_units, lookup_dwo_cutu)
10064 (queue_and_load_all_dwo_tus): Update.
10065 * dwarf2/index-write.c (write_gdbindex): Update.
10066 (write_debug_names): Update.
10067
39856def
TT
100682020-02-08 Tom Tromey <tom@tromey.com>
10069
10070 * dwarf2/read.h (struct dwarf2_queue_item): Move from
10071 dwarf2/read.c. Remove "next" member. Add constructor ntad
10072 destructor.
10073 (struct dwarf2_per_objfile) <queue>: New member.
10074 * dwarf2/read.c (struct dwarf2_queue_item): Move to
10075 dwarf2/read.h.
10076 (dwarf2_queue, dwarf2_queue_tail): Remove.
10077 (class dwarf2_queue_guard): Add parameter to constructor. Use
10078 DISABLE_COPY_AND_ASSIGN.
10079 <m_per_objfile>: New member.
10080 <~dwarf2_queue_guard>: Rewrite.
10081 (dw2_do_instantiate_symtab, queue_comp_unit, process_queue):
10082 Update.
10083 (~dwarf2_queue_item): New.
10084
3e225074
TT
100852020-02-08 Tom Tromey <tom@tromey.com>
10086
10087 * dwarf2/read.c (struct die_info) <has_children>: New member.
10088 (dw2_get_file_names_reader): Remove has_children.
10089 (dw2_get_file_names): Update.
10090 (read_cutu_die_from_dwo): Remove has_children.
10091 (cutu_reader::init_tu_and_read_dwo_dies)
10092 (cutu_reader::cutu_reader): Update.
10093 (process_psymtab_comp_unit_reader, build_type_psymtabs_reader):
10094 Remove has_children.
10095 (build_type_psymtabs_1, process_skeletonless_type_unit)
10096 (load_partial_comp_unit, load_full_comp_unit): Update.
10097 (create_dwo_cu_reader): Remove has_children.
10098 (create_cus_hash_table, read_die_and_children): Update.
10099 (read_full_die_1,read_full_die): Remove has_children.
10100 (read_signatured_type): Update.
10101 (class cutu_reader) <has_children>: Remove.
10102
82ca8957
TT
101032020-02-08 Tom Tromey <tom@tromey.com>
10104
10105 * dwarf2/expr.c: Rename from dwarf2expr.c.
10106 * dwarf2/expr.h: Rename from dwarf2expr.h.
10107 * dwarf2/frame-tailcall.c: Rename from dwarf2-frame-tailcall.c.
10108 * dwarf2/frame-tailcall.h: Rename from dwarf2-frame-tailcall.h.
10109 * dwarf2/frame.c: Rename from dwarf2-frame.c.
10110 * dwarf2/frame.h: Rename from dwarf2-frame.h.
10111 * dwarf2/index-cache.c: Rename from dwarf-index-cache.c.
10112 * dwarf2/index-cache.h: Rename from dwarf-index-cache.h.
10113 * dwarf2/index-common.c: Rename from dwarf-index-common.c.
10114 * dwarf2/index-common.h: Rename from dwarf-index-common.h.
10115 * dwarf2/index-write.c: Rename from dwarf-index-write.c.
10116 * dwarf2/index-write.h: Rename from dwarf-index-write.h.
10117 * dwarf2/loc.c: Rename from dwarf2loc.c.
10118 * dwarf2/loc.h: Rename from dwarf2loc.h.
10119 * dwarf2/read.c: Rename from dwarf2read.c.
10120 * dwarf2/read.h: Rename from dwarf2read.h.
10121 * dwarf2/abbrev.c, aarch64-tdep.c, alpha-tdep.c,
10122 amd64-darwin-tdep.c, arc-tdep.c, arm-tdep.c, bfin-tdep.c,
10123 compile/compile-c-symbols.c, compile/compile-cplus-symbols.c,
10124 compile/compile-loc2c.c, cris-tdep.c, csky-tdep.c, findvar.c,
10125 gdbtypes.c, guile/scm-type.c, h8300-tdep.c, hppa-bsd-tdep.c,
10126 hppa-linux-tdep.c, i386-darwin-tdep.c, i386-linux-tdep.c,
10127 i386-tdep.c, iq2000-tdep.c, m32c-tdep.c, m68hc11-tdep.c,
10128 m68k-tdep.c, microblaze-tdep.c, mips-tdep.c, mn10300-tdep.c,
10129 msp430-tdep.c, nds32-tdep.c, nios2-tdep.c, or1k-tdep.c,
10130 riscv-tdep.c, rl78-tdep.c, rs6000-tdep.c, rx-tdep.c, s12z-tdep.c,
10131 s390-tdep.c, score-tdep.c, sh-tdep.c, sparc-linux-tdep.c,
10132 sparc-tdep.c, sparc64-linux-tdep.c, sparc64-tdep.c, tic6x-tdep.c,
10133 tilegx-tdep.c, v850-tdep.c, xstormy16-tdep.c, xtensa-tdep.c:
10134 Update.
10135 * Makefile.in (COMMON_SFILES): Update.
10136 (HFILES_NO_SRCDIR): Update.
10137
9e35d499
TT
101382020-02-08 Tom Tromey <tom@tromey.com>
10139
10140 * dwarf2read.c (struct die_reader_specs) <comp_dir>: Remove.
10141 (init_cu_die_reader, read_cutu_die_from_dwo): Update.
10142
1eba2311
TT
101432020-02-08 Tom Tromey <tom@tromey.com>
10144
10145 * dwarf2read.h (struct die_info): Don't declare.
10146
e41c2da2
TT
101472020-02-08 Tom Tromey <tom@tromey.com>
10148
10149 * dwarf2read.h (die_info_ptr): Remove typedef.
10150
4fc6c0d5
TT
101512020-02-08 Tom Tromey <tom@tromey.com>
10152
10153 * dwarf2read.c (read_call_site_scope)
10154 (handle_data_member_location, dwarf2_add_member_fn)
10155 (mark_common_block_symbol_computed, read_common_block)
10156 (attr_to_dynamic_prop, partial_die_info::read)
10157 (var_decode_location, dwarf2_fetch_die_loc_sect_off)
10158 (dwarf2_symbol_mark_computed, set_die_type): Update.
10159 * dwarf2/attribute.h (struct attribute) <form_is_block>: Declare
10160 method.
10161 (attr_form_is_block): Don't declare.
10162 * dwarf2/attribute.c (attribute::form_is_block): Now a method.
10163
cd6c91b4
TT
101642020-02-08 Tom Tromey <tom@tromey.com>
10165
10166 * dwarf2read.c (dwarf2_find_base_address, )
10167 (read_call_site_scope, rust_containing_type)
10168 (dwarf2_get_pc_bounds, dwarf2_record_block_ranges)
10169 (handle_data_member_location, dwarf2_add_member_fn)
10170 (get_alignment, read_structure_type, process_structure_scope)
10171 (mark_common_block_symbol_computed, read_common_block)
10172 (read_tag_string_type, attr_to_dynamic_prop, read_subrange_type)
10173 (partial_die_info::read, read_attribute_value, new_symbol)
10174 (lookup_die_type, dwarf2_get_ref_die_offset)
10175 (dwarf2_get_attr_constant_value, follow_die_ref_or_sig)
10176 (dwarf2_fetch_die_loc_sect_off, get_DW_AT_signature_type)
10177 (dwarf2_symbol_mark_computed): Update.
10178 * dwarf2/attribute.h (struct attribute) <value_as_address,
10179 form_is_section_offset, form_is_constant, form_is_ref>: Declare
10180 methods.
10181 (value_as_address, attr_form_is_section_offset)
10182 (attr_form_is_constant, attr_form_is_ref): Don't declare.
10183 * dwarf2/attribute.c (attribute::value_as_address)
10184 (attribute::form_is_section_offset, attribute::form_is_constant)
10185 (attribute::form_is_ref): Now methods.
10186
162dce55
TT
101872020-02-08 Tom Tromey <tom@tromey.com>
10188
10189 * dwarf2read.c (struct attribute, DW_STRING)
10190 (DW_STRING_IS_CANONICAL, DW_UNSND, DW_BLOCK, DW_SND, DW_ADDR)
10191 (DW_SIGNATURE, struct dwarf_block, attr_value_as_address)
10192 (attr_form_is_block, attr_form_is_section_offset)
10193 (attr_form_is_constant, attr_form_is_ref): Move.
10194 * dwarf2/attribute.h: New file.
10195 * dwarf2/attribute.c: New file, from dwarf2read.c.
10196 * Makefile.in (COMMON_SFILES): Add dwarf2/attribute.c.
10197
3054dd54
TT
101982020-02-08 Tom Tromey <tom@tromey.com>
10199
10200 * dwarf2read.c (abbrev_table_up, struct abbrev_info)
10201 (struct attr_abbrev, ABBREV_HASH_SIZE, struct abbrev_table):
10202 Move.
10203 (read_cutu_die_from_dwo, build_type_psymtabs_1): Update.
10204 (abbrev_table::alloc_abbrev, abbrev_table::add_abbrev)
10205 (abbrev_table::lookup_abbrev, abbrev_table_read_table): Move to
10206 abbrev.c.
10207 * dwarf2/abbrev.h: New file.
10208 * dwarf2/abbrev.c: New file, from dwarf2read.c.
10209 * Makefile.in (COMMON_SFILES): Add dwarf2/abbrev.c.
10210
96b79293
TT
102112020-02-08 Tom Tromey <tom@tromey.com>
10212
10213 * dwarf2read.c (dwarf2_section_buffer_overflow_complaint)
10214 (dwarf2_section_size, dwarf2_get_section_info)
10215 (create_signatured_type_table_from_debug_names)
10216 (create_addrmap_from_aranges, read_debug_names_from_section)
10217 (get_gdb_index_contents_from_section, read_comp_unit_head)
10218 (error_check_comp_unit_head, read_abbrev_offset)
10219 (create_debug_type_hash_table, init_cu_die_reader)
10220 (read_cutu_die_from_dwo, dwarf2_build_psymtabs_hard)
10221 (read_comp_units_from_section, create_cus_hash_table)
10222 (create_dwp_hash_table, create_dwo_unit_in_dwp_v1)
10223 (create_dwp_v2_section, dwarf2_rnglists_process)
10224 (dwarf2_ranges_process, read_die_and_siblings, read_full_die)
10225 (abbrev_table_read_table, read_indirect_string_at_offset_from)
10226 (read_indirect_string_from_dwz, read_addr_index_1)
10227 (read_str_index, dwarf_decode_line_header, skip_form_bytes)
10228 (dwarf_decode_macro_bytes, dwarf_decode_macros)
10229 (fill_in_loclist_baton): Update.
10230 * dwarf2/section.h (struct dwarf2_section_info) <get_name,
10231 get_containing_section, get_bfd_owner, get_bfd_section,
10232 get_file_name, get_id, get_flags, empty, read>: Declare methods.
10233 (dwarf2_read_section, get_section_name, get_section_file_name)
10234 (get_containing_section, get_section_bfd_owner)
10235 (get_section_bfd_section, get_section_name, get_section_file_name)
10236 (get_section_id, get_section_flags, dwarf2_section_empty_p): Don't
10237 declare.
10238 * dwarf2/section.c (dwarf2_section_info::get_containing_section)
10239 (dwarf2_section_info::get_bfd_owner)
10240 (dwarf2_section_info::get_bfd_section)
10241 (dwarf2_section_info::get_name)
10242 (dwarf2_section_info::get_file_name, dwarf2_section_info::get_id)
10243 (dwarf2_section_info::get_flags, dwarf2_section_info::empty)
10244 (dwarf2_section_info::read): Now methods.
10245 * dwarf-index-write.c (class debug_names): Update.
10246
2c86cff9
TT
102472020-02-08 Tom Tromey <tom@tromey.com>
10248
10249 * dwarf2read.h (struct dwarf2_section_info, dwarf2_read_section):
10250 Move to dwarf2/section.h.
10251 * dwarf2read.c (get_containing_section, get_section_bfd_owner)
10252 (get_section_bfd_section, get_section_name)
10253 (get_section_file_name, get_section_id, get_section_flags)
10254 (dwarf2_section_empty_p, dwarf2_read_section): Moe to
10255 dwarf2/section.c.
10256 * dwarf2/section.h: New file.
10257 * dwarf2/section.c: New file, from dwarf2read.c.
10258 * Makefile.in (COMMON_SFILES): Add dwarf2/section.c.
10259
f4382c45
TT
102602020-02-08 Tom Tromey <tom@tromey.com>
10261
10262 * dwarf2read.h (read_unsigned_leb128): Don't declare.
10263 * dwarf2read.c (read_1_byte, read_1_signed_byte, read_2_bytes)
10264 (read_2_signed_bytes, read_3_bytes, read_4_bytes)
10265 (read_4_signed_bytes, read_8_bytes): Move to dwarf2/leb.h.
10266 (read_unsigned_leb128, read_signed_leb128): Move to dwarf2/leb.c.
10267 * dwarf2/leb.h: New file, from dwarf2read.c.
10268 * dwarf2/leb.c: New file, from dwarf2read.c.
10269 * dwarf2-frame.c (read_1_byte, read_4_bytes, read_8_bytes):
10270 Remove.
10271 * Makefile.in (CONFIG_SRC_SUBDIR): Add dwarf2.
10272 (COMMON_SFILES): Add dwarf2/leb.c.
10273
01840b7a
JB
102742020-02-08 Joel Brobecker <brobecker@adacore.com>
10275
10276 GDB 9.1 released.
10277
dfcb27e4
IB
102782020-02-05 Iain Buclaw <ibuclaw@gdcproject.org>
10279
10280 PR gdb/25190:
aac66a4c
SM
10281 * gdb/remote-sim.c (gdb_os_write_stderr): Update.
10282 * gdb/remote.c (remote_console_output): Update.
10283 * gdb/ui-file.c (fputs_unfiltered): Rename to...
10284 (ui_file_puts): ...this.
10285 * gdb/ui-file.h (ui_file_puts): Add declaration.
10286 * gdb/utils.c (emit_style_escape): Update.
10287 (flush_wrap_buffer): Update.
10288 (fputs_maybe_filtered): Update.
10289 (fputs_unfiltered): Add function.
dfcb27e4 10290
faa17681
IB
102912020-02-05 Iain Buclaw <ibuclaw@gdcproject.org>
10292
aac66a4c
SM
10293 * gdb/event-loop.c (gdb_wait_for_event): Update.
10294 * gdb/printcmd.c (printf_command): Update.
10295 * gdb/remote-fileio.c (remote_fileio_func_write): Update.
10296 * gdb/remote-sim.c (gdb_os_flush_stdout): Update.
10297 (gdb_os_flush_stderr): Update.
10298 * gdb/remote.c (remote_console_output): Update.
10299 * gdb/ui-file.c (gdb_flush): Rename to...
10300 (ui_file_flush): ...this.
10301 (stderr_file::write): Update.
10302 (stderr_file::puts): Update.
10303 * gdb/ui-file.h (gdb_flush): Rename to...
10304 (ui_file_flush): ...this.
10305 * gdb/utils.c (gdb_flush): Add function.
10306 * gdb/utils.h (gdb_flush): Add declaration.
faa17681 10307
5abbbe1d
TT
103082020-02-07 Tom Tromey <tromey@adacore.com>
10309
10310 PR breakpoints/24915:
10311 * source.c (find_and_open_source): Do not check basenames_may_differ.
10312
919adfe8
TT
103132020-02-07 Tom Tromey <tom@tromey.com>
10314
10315 * README: Update gdbserver documentation.
10316 * gdbserver: Move to top level.
10317 * configure.tgt (build_gdbserver): Remove.
10318 * configure.ac: Remove --enable-gdbserver.
10319 * configure: Rebuild.
10320 * Makefile.in (distclean): Don't mention gdbserver.
10321
1d5d29e7
SV
103222020-02-06 Shahab Vahedi <shahab@synopsys.com>
10323
10324 * source-cache.c (source_cache::ensure): Surround
10325 get_plain_source_lines with a try/catch.
10326 (source_cache::get_line_charpos): Get rid of try/catch
10327 and only check for the return value of "ensure".
10328 * tui/tui-source.c (tui_source_window::set_contents):
10329 Simplify "nlines" calculation.
10330
6eb1129c
SV
103312020-02-06 Shahab Vahedi <shahab@synopsys.com>
10332
10333 * MAINTAINERS (Write After Approval): Add myself.
10334
c6a42d11
CB
103352020-02-05 Christian Biesinger <cbiesinger@google.com>
10336
10337 * sparc-nat.h (struct sparc_target) <xfer_partial>: Fix base class
10338 function call.
10339
c8ecdda6
CB
103402020-02-05 Christian Biesinger <cbiesinger@google.com>
10341
10342 * ppc-nbsd-tdep.h: Fix macro name in #endif comment.
10343
f6480e70
MR
103442020-02-05 Maciej W. Rozycki <macro@wdc.com>
10345
10346 * nat/riscv-linux-tdesc.h: New file.
10347 * nat/riscv-linux-tdesc.c: New file, taking code from...
10348 * riscv-linux-nat.c (riscv_linux_nat_target::read_description):
10349 ... here.
10350 * configure.nat <linux> <riscv*>: Add nat/riscv-linux-tdesc.o to
10351 NATDEPFILES.
10352
dcc9fbc6
AB
103532020-02-04 Andrew Burgess <andrew.burgess@embecosm.com>
10354
10355 * remote-sim.c (sim_inferior_data::sim_inferior_data): Assert that
10356 we don't set the fake simulator ptid to the null_ptid.
10357
719546c4
SM
103582020-02-03 Simon Marchi <simon.marchi@efficios.com>
10359
10360 * fork-child.c (gdb_startup_inferior): Use bool instead of int.
10361 * gdbthread.h (class thread_info) <resumed>: Likewise.
10362 * infrun.c (resume_1): Likewise.
10363 (proceed): Likewise.
10364 (infrun_thread_stop_requested): Likewise.
10365 (stop_all_threads): Likewise.
10366 (handle_inferior_event): Likewise.
10367 (restart_threads): Likewise.
10368 (finish_step_over): Likewise.
10369 (keep_going_stepped_thread): Likewise.
10370 * linux-nat.c (attach_proc_task_lwp_callback): Likewise.
10371 (linux_handle_extended_wait): Likewise.
10372 * record-btrace.c (get_thread_current_frame_id): Likewise.
10373 * record-full.c (record_full_wait_1): Likewise.
10374 * remote.c (remote_target::process_initial_stop_replies): Likewise.
10375 * target.c (target_resume): Likewise.
10376 * thread.c (set_running_thread): Likewise.
10377
e409c542
AKS
103782020-02-03 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
10379
10380 * f-valprint.c (f77_print_array_1): Changed datatype of index
10381 variable to LONGEST from int to enable it to contain bound
10382 values correctly.
10383
ee98c0da
MR
103842020-02-03 Maciej W. Rozycki <macro@wdc.com>
10385
10386 * riscv-linux-nat.c [!NFPREG] (NFPREG): New macro.
10387 (supply_fpregset_regnum, fill_fpregset): Handle regset buffer
10388 offsets according to FLEN determined.
10389 (riscv_linux_nat_target::read_description): Determine FLEN
10390 dynamically.
10391 (riscv_linux_nat_target::fetch_registers): Size regset buffer
10392 according to FLEN determined.
10393 (riscv_linux_nat_target::store_registers): Likewise.
10394
aa66aac4
SV
103952020-02-01 Shahab Vahedi <shahab@synopsys.com>
10396
10397 * target-descriptions.c (tdesc_register_in_reggroup_p): Return 0
10398 when reg->group is empty and reggroup is not.
10399
fd9faca8
TT
104002020-01-31 Tom Tromey <tromey@adacore.com>
10401
10402 * ravenscar-thread.c (ravenscar_thread_target::mourn_inferior):
10403 Call beneath target's mourn_inferior after unpushing.
10404
42330a68
AB
104052020-01-31 Andrew Burgess <andrew.burgess@embecosm.com>
10406
10407 PR tui/9765
10408 * tui/tui-disasm.c (tui_find_disassembly_address): If we don't
10409 have enough lines to fill the screen, still return the lowest
10410 address we found.
10411
7a27a45b
AB
104122020-01-31 Andrew Burgess <andrew.burgess@embecosm.com>
10413
10414 * tui/tui-win.c (_initialize_tui_win): Update help text for '+',
10415 '-', '<', and '>' commands.
10416
c47f70e2
PA
104172020-01-29 Pedro Alves <palves@redhat.com>
10418 Sergio Durigan Junior <sergiodj@redhat.com>
10419
10420 * infcmd.c (construct_inferior_arguments): Assert that
10421 'argc' is greater than 0.
10422
5133a315
LM
104232020-01-29 Luis Machado <luis.machado@linaro.org>
10424
10425 * aarch64-tdep.c (BRK_INSN_MASK): Define to 0xffe0001f.
10426 (BRK_INSN_MASK): Define to 0xd4200000.
10427 (aarch64_program_breakpoint_here_p): New function.
10428 (aarch64_gdbarch_init): Set gdbarch_program_breakpoint_here_p hook.
10429 * arch-utils.c (default_program_breakpoint_here_p): Moved from
10430 breakpoint.c.
10431 * arch-utils.h (default_program_breakpoint_here_p): Moved from
10432 breakpoint.h
10433 * breakpoint.c (bp_loc_is_permanent): Changed return type to bool and
10434 call gdbarch_program_breakpoint_here_p.
10435 (program_breakpoint_here): Moved to arch-utils.c, renamed to
10436 default_program_breakpoint_here_p, changed return type to bool and
10437 simplified.
10438 * breakpoint.h (program_breakpoint_here): Moved prototype to
10439 arch-utils.h, renamed to default_program_breakpoint_here_p and changed
10440 return type to bool.
10441 * gdbarch.c: Regenerate.
10442 * gdbarch.h: Regenerate.
10443 * gdbarch.sh (program_breakpoint_here_p): New method.
10444 * infrun.c (handle_signal_stop): Call
10445 gdbarch_program_breakpoint_here_p.
10446
168f8c6b
TT
104472020-01-26 Tom Tromey <tom@tromey.com>
10448
10449 * ctfread.c (struct ctf_fp_info): Reindent.
10450 (_initialize_ctfread): Remove.
10451
128a391f
TT
104522020-01-26 Tom Tromey <tom@tromey.com>
10453
10454 * psymtab.c (partial_map_expand_apply)
10455 (psym_find_pc_sect_compunit_symtab, psym_lookup_symbol)
10456 (psymtab_to_symtab, psym_find_last_source_symtab, dump_psymtab)
10457 (psym_print_stats, psym_expand_symtabs_for_function)
10458 (psym_map_symbol_filenames, psym_map_matching_symbols)
10459 (psym_expand_symtabs_matching)
10460 (partial_symtab::read_dependencies, maintenance_info_psymtabs)
10461 (maintenance_check_psymtabs): Use new methods.
10462 * psympriv.h (struct partial_symtab) <readin_p,
10463 get_compunit_symtab>: New methods.
10464 <readin, compunit_symtab>: Remove members.
10465 (struct standard_psymtab): New.
10466 (struct legacy_psymtab): Derive from standard_psymtab.
10467 * dwarf2read.h (struct dwarf2_psymtab): Derive from
10468 standard_psymtab.
10469 * ctfread.c (struct ctf_psymtab): Derive from standard_psymtab.
10470
0494dbec
TT
104712020-01-26 Tom Tromey <tom@tromey.com>
10472
10473 * xcoffread.c (xcoff_psymtab_to_symtab_1): Call
10474 read_dependencies. Add assert.
10475 * psymtab.c (partial_symtab::read_dependencies): New method.
10476 * psympriv.h (struct partial_symtab) <read_dependencies>: New
10477 method.
10478 * mdebugread.c (psymtab_to_symtab_1): Call read_dependencies.
10479 * dwarf2read.c (dwarf2_psymtab::expand_psymtab): Call
10480 read_dependencies.
10481 * dbxread.c (dbx_psymtab_to_symtab_1): Call read_dependencies.
10482 Add assert.
10483
8566b89b
TT
104842020-01-26 Tom Tromey <tom@tromey.com>
10485
10486 * xcoffread.c (xcoff_psymtab_to_symtab_1): Change argument order.
10487 Call expand_psymtab.
10488 (xcoff_read_symtab): Call expand_psymtab.
10489 (xcoff_start_psymtab, xcoff_end_psymtab): Set
10490 legacy_expand_psymtab.
10491 * psympriv.h (struct partial_symtab) <expand_psymtab>: New
10492 method.
10493 (struct legacy_psymtab) <expand_psymtab>: Implement.
10494 <legacy_expand_psymtab>: New member.
10495 * mdebugread.c (mdebug_read_symtab): Call expand_psymtab.
10496 (parse_partial_symbols): Set legacy_expand_psymtab.
10497 (psymtab_to_symtab_1): Change argument order. Call
10498 expand_psymtab.
10499 (new_psymtab): Set legacy_expand_psymtab.
10500 * dwarf2read.h (struct dwarf2_psymtab) <expand_psymtab>: Declare.
10501 * dwarf2read.c (dwarf2_psymtab::read_symtab): Call
10502 expand_psymtab.
10503 (dwarf2_psymtab::expand_psymtab): Rename from
10504 psymtab_to_symtab_1. Call expand_psymtab.
10505 * dbxread.c (start_psymtab): Set legacy_expand_psymtab.
10506 (dbx_end_psymtab): Likewise.
10507 (dbx_psymtab_to_symtab_1): Change argument order. Call
10508 expand_psymtab.
10509 (dbx_read_symtab): Call expand_psymtab.
10510 * ctfread.c (struct ctf_psymtab) <expand_psymtab>: Declare.
10511 (ctf_psymtab::expand_psymtab): Rename from psymtab_to_symtab.
10512 (ctf_psymtab::read_symtab): Call expand_psymtab.
10513
077cbab2
TT
105142020-01-26 Tom Tromey <tom@tromey.com>
10515
10516 * xcoffread.c (xcoff_read_symtab): Remove prints. Add assert.
10517 * psymtab.c (psymtab_to_symtab): Print verbose "Reading"
10518 messages.
10519 * mdebugread.c (mdebug_read_symtab): Remove prints.
10520 * dwarf2read.c (dwarf2_psymtab::read_symtab): Remove prints. Add
10521 assert.
10522 * dbxread.c (dbx_read_symtab): Remove prints. Add assert.
10523
891813be
TT
105242020-01-26 Tom Tromey <tom@tromey.com>
10525
10526 * xcoffread.c (this_symtab_psymtab, read_xcoff_symtab)
10527 (xcoff_psymtab_to_symtab_1, xcoff_read_symtab)
10528 (xcoff_start_psymtab, xcoff_end_psymtab, scan_xcoff_symtab): Use
10529 legacy_symtab.
10530 * stabsread.h (dbx_end_psymtab): Use legacy_symtab.
10531 * psymtab.c (psymtab_to_symtab): Call method.
10532 (dump_psymtab): Update.
10533 * psympriv.h (struct partial_symtab): Add virtual destructor.
10534 <read_symtab>: New method.
10535 (struct legacy_symtab): New.
10536 * mdebugread.c (mdebug_read_symtab): Use legacy_psymtab.
10537 (struct pst_map) <pst>: Now a legacy_psymtab.
10538 (parse_procedure, parse_partial_symbols, psymtab_to_symtab_1)
10539 (new_psymtab): Use legacy_psymtab.
10540 * dwarf2read.h (struct dwarf2_psymtab): New.
10541 (struct dwarf2_per_cu_data) <psymtab>: Use it.
10542 * dwarf2read.c (dwarf2_create_include_psymtab)
10543 (dwarf2_build_include_psymtabs, create_type_unit_group)
10544 (create_partial_symtab, process_psymtab_comp_unit_reader)
10545 (build_type_psymtabs_reader, build_type_psymtab_dependencies)
10546 (set_partial_user): Use dwarf2_psymtab.
10547 (dwarf2_psymtab::read_symtab): Rename from dwarf2_read_symtab.
10548 (psymtab_to_symtab_1, process_full_comp_unit)
10549 (process_full_type_unit, dwarf2_ranges_read)
10550 (dwarf2_get_pc_bounds, psymtab_include_file_name)
10551 (dwarf_decode_lines): Use dwarf2_psymtab.
10552 * dwarf-index-write.c (psym_index_map): Use dwarf2_psymtab.
10553 (add_address_entry_worker, write_one_signatured_type)
10554 (recursively_count_psymbols, recursively_write_psymbols)
10555 (write_one_signatured_type, psyms_seen_size, write_gdbindex)
10556 (write_debug_names): Likewise.
10557 * dbxread.c (struct header_file_location): Take a legacy_psymtab.
10558 <pst>: Now a legacy_psymtab.
10559 (find_corresponding_bincl_psymtab): Return a legacy_psymtab.
10560 (read_dbx_symtab, start_psymtab, dbx_end_psymtab)
10561 (dbx_psymtab_to_symtab_1, read_ofile_symtab): Use legacy_psymtab.
10562 * ctfread.c (struct ctf_psymtab): New.
10563 (ctf_start_symtab, ctf_end_symtab, psymtab_to_symtab): Take a
10564 ctf_psymtab.
10565 (ctf_psymtab::read_symtab): Rename from ctf_read_symtab.
10566 (create_partial_symtab): Return a ctf_psymtab.
10567 (scan_partial_symbols): Update.
10568
c3693a1d
TT
105692020-01-26 Tom Tromey <tom@tromey.com>
10570
10571 * xcoffread.c (xcoff_start_psymtab): Use new.
10572 * psymtab.c (partial_symtab::partial_symtab): New constructor,
10573 renamed from start_psymtab_common.
10574 * psympriv.h (struct partial_symtab): Add new constructor.
10575 (start_psymtab_common): Don't declare.
10576 * mdebugread.c (parse_partial_symbols): Use new.
10577 * dwarf2read.c (create_partial_symtab): Use new.
10578 * dbxread.c (start_psymtab): Use new.
10579 * ctfread.c (create_partial_symtab): Use new.
10580
32caafd0
TT
105812020-01-26 Tom Tromey <tom@tromey.com>
10582
10583 * xcoffread.c (xcoff_end_psymtab): Use new.
10584 * psymtab.c (start_psymtab_common): Use new.
10585 (partial_symtab::partial_symtab): Rename from allocate_psymtab.
10586 Update.
10587 * psympriv.h (struct partial_symtab): Add parameters to
10588 constructor. Don't inline.
10589 (allocate_psymtab): Don't declare.
10590 * mdebugread.c (new_psymtab): Use new.
10591 * dwarf2read.c (dwarf2_create_include_psymtab): Use new.
10592 * dbxread.c (dbx_end_psymtab): Use new.
10593
abaa2f23
TT
105942020-01-26 Tom Tromey <tom@tromey.com>
10595
10596 * psymtab.h (class psymtab_storage) <install_psymtab>: Rename from
10597 allocate_psymtab. Update documentation.
10598 * psymtab.c (psymtab_storage::install_psymtab): Rename from
10599 allocate_psymtab. Do not use new.
10600 (allocate_psymtab): Use new. Update.
10601
6d94535f
TT
106022020-01-26 Tom Tromey <tom@tromey.com>
10603
10604 * xcoffread.c (xcoff_psymtab_to_symtab_1): Update.
10605 * psymtab.c (psym_print_stats): Update.
10606 * psympriv.h (struct partial_symtab) <readin,
10607 psymtabs_addrmap_supported, anonymous>: Now bool.
10608 * mdebugread.c (psymtab_to_symtab_1): Update.
10609 * dwarf2read.c (create_type_unit_group, create_partial_symtab)
10610 (build_type_psymtabs_reader, psymtab_to_symtab_1)
10611 (process_full_comp_unit, process_full_type_unit): Update.
10612 * dbxread.c (dbx_psymtab_to_symtab_1): Update.
10613 * ctfread.c (psymtab_to_symtab): Update.
10614
6f17252b
TT
106152020-01-26 Tom Tromey <tom@tromey.com>
10616
10617 * mdebugread.c (parse_partial_symbols): Use discard_psymtab.
10618 * psymtab.h (class psymtab_storage) <free_psymtabs>: Remove.
10619 * psymtab.c (psymtab_storage): Delete psymtabs.
10620 (psymtab_storage::allocate_psymtab): Use new.
10621 (psymtab_storage::discard_psymtab): Use delete.
10622 * psympriv.h (struct partial_symtab): Add constructor and
10623 initializers.
10624
f6f1cebc
TT
106252020-01-26 Tom Tromey <tom@tromey.com>
10626
10627 * machoread.c: Do not include psympriv.h.
10628
e47e48f6
PW
106292020-01-25 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10630
10631 * NEWS: Mention the new option and the set/show commands.
10632
a2fedca9
PW
106332020-01-25 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10634
10635 * exec.c (exec_file_mismatch_names, exec_file_mismatch_mode)
10636 (show_exec_file_mismatch_command, set_exec_file_mismatch_command)
10637 (validate_exec_file): New variables, enums, functions.
10638 (exec_file_locate_attach, print_section_info): Style the filenames.
10639 (_initialize_exec): Install show_exec_file_mismatch_command and
10640 set_exec_file_mismatch_command.
10641 * gdbcore.h (validate_exec_file): Declare.
10642 * infcmd.c (attach_command): Call validate_exec_file.
10643 * remote.c ( remote_target::remote_add_inferior): Likewise.
10644
7ffa82e1
AB
106452020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
10646
10647 * frame.c (find_frame_sal): Move call to get_next_frame into more
10648 inner scope.
10649 * inline-frame.c (inilne_state) <inline_state>: Update argument
10650 types.
10651 (inilne_state) <skipped_symbol>: Rename to...
10652 (inilne_state) <skipped_symbols>: ...this, and change to a vector.
10653 (skip_inline_frames): Build vector of skipped symbols and use this
10654 to reate the inline_state.
10655 (inline_skipped_symbol): Add a comment and some assertions, fetch
10656 skipped symbol from the list.
10657
3d92a3e3
AB
106582020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
10659
10660 * buildsym.c (lte_is_less_than): Delete.
10661 (buildsym_compunit::end_symtab_with_blockvector): Create local
10662 lambda function to sort line table entries, and use
10663 std::stable_sort instead of std::sort.
10664 * symtab.c (find_pc_sect_line): Skip backward over end of sequence
10665 markers when looking for a previous line.
10666
94a72be7
AB
106672020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
10668
10669 * dwarf2read.c (lnp_state_machine::record_line): Include
10670 end_sequence parameter in debug print out. Record the line if we
10671 are at an end_sequence marker even if it's not the start of a
10672 statement.
10673 * symmisc.c (maintenance_print_one_line_table): Print end of
10674 sequence markers with 'END' not '0'.
10675
53af73bf
PA
106762020-01-24 Pedro Alves <palves@redhat.com>
10677
10678 PR gdb/25410
10679 * thread.c (scoped_restore_current_thread::restore): Use
10680 switch_to_inferior_no_thread.
10681 * exec.c: Include "progspace-and-thread.h".
10682 (add_target_sections, remove_target_sections):
10683 scoped_restore_current_pspace_and_thread instead of
10684 scoped_restore_current_thread.
10685 * infrun.c (handle_vfork_child_exec_or_exit): Assign the pspace
10686 and aspace to the inferior before calling clone_program_space.
10687 Remove stale comment.
10688
3050c6f4
CB
106892020-01-24 Christian Biesinger <cbiesinger@google.com>
10690
10691 * arm-nbsd-nat.c (arm_nbsd_nat_target::fetch_registers): Rename to...
10692 (arm_netbsd_nat_target::fetch_registers): ...this.
10693 (arm_nbsd_nat_target::store_registers): Rename to...
10694 (arm_netbsd_nat_target::store_registers): ...this.
10695
73685c7e
CB
106962020-01-24 Christian Biesinger <cbiesinger@google.com>
10697
10698 * arm-nbsd-nat.c: Define _KERNTYPES to get the declaration of
10699 register_t.
10700
89203d40
CB
107012020-01-24 Christian Biesinger <cbiesinger@google.com>
10702
10703 * aarch64-fbsd-tdep.c (aarch64_fbsd_iterate_over_regset_sections):
10704 Update comment.
10705 * aarch64-linux-tdep.c (aarch64_linux_iterate_over_regset_sections):
10706 Likewise.
10707 * arm-fbsd-tdep.c (arm_fbsd_iterate_over_regset_sections): Likewise.
10708 * gdbcore.h (deprecated_add_core_fns): Update comment to point to
10709 the correct replacement (iterate_over_regset_sections).
10710 * riscv-fbsd-tdep.c (riscv_fbsd_iterate_over_regset_sections):
10711 Update comment.
10712
1ba1ac88
AB
107132020-01-24 Graham Markall <graham.markall@embecosm.com>
10714
10715 PR gdb/23718
10716 * gdb/python/python.c (execute_gdb_command): Call
10717 async_enable_stdin in catch block.
10718
f3364a6d
AB
107192020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
10720
10721 * event-loop.c (start_event_loop): Wrap async_enable_stdin with
10722 SWITCH_THRU_ALL_UIS.
10723
733d0a67
AB
107242020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
10725
10726 PR tui/9765
10727 * minsyms.c (lookup_minimal_symbol_by_pc_section): Update header
10728 comment, add extra parameter, and update to store previous symbol
10729 when appropriate.
10730 * minsyms.h (lookup_minimal_symbol_by_pc_section): Update comment,
10731 add extra parameter.
10732 * tui/tui-disasm.c (tui_disassemble): Update header comment,
10733 remove unneeded parameter, add try/catch around gdb_print_insn,
10734 rewrite to add items to asm_lines vector.
10735 (tui_find_backward_disassembly_start_address): New function.
10736 (tui_find_disassembly_address): Updated throughout.
10737 (tui_disasm_window::set_contents): Update for changes to
10738 tui_disassemble.
10739 (tui_disasm_window::do_scroll_vertical): No need to adjust the
10740 number of lines to scroll.
10741
b3b3bada
SM
107422020-01-23 Simon Marchi <simon.marchi@polymtl.ca>
10743
10744 * objfiles.h (ALL_OBJFILE_OSECTIONS): Move up.
10745 (SECT_OFF_DATA): Likewise.
10746 (SECT_OFF_RODATA): Likewise.
10747 (SECT_OFF_TEXT): Likewise.
10748 (SECT_OFF_BSS): Likewise.
10749 (struct objfile) <text_section_offset, data_section_offset>: New
10750 methods.
10751 * amd64-windows-tdep.c (amd64_windows_find_unwind_info): Use
10752 objfile::text_section_offset.
10753 * coff-pe-read.c (add_pe_forwarded_sym): Likewise.
10754 * coffread.c (coff_symtab_read): Likewise.
10755 (enter_linenos): Likewise.
10756 (process_coff_symbol): Likewise.
10757 * ctfread.c (get_objfile_text_range): Likewise.
10758 * dtrace-probe.c (dtrace_probe::get_relocated_address):
10759 Use objfile::data_section_offset.
10760 * dwarf2-frame.c (execute_cfa_program): Use
10761 objfile::text_section_offset.
10762 (dwarf2_frame_find_fde): Likewise.
10763 * dwarf2read.c (create_addrmap_from_index): Likewise.
10764 (create_addrmap_from_aranges): Likewise.
10765 (dw2_find_pc_sect_compunit_symtab): Likewise.
10766 (process_psymtab_comp_unit_reader): Likewise.
10767 (add_partial_symbol): Likewise.
10768 (add_partial_subprogram): Likewise.
10769 (process_full_comp_unit): Likewise.
10770 (read_file_scope): Likewise.
10771 (read_func_scope): Likewise.
10772 (read_lexical_block_scope): Likewise.
10773 (read_call_site_scope): Likewise.
10774 (dwarf2_rnglists_process): Likewise.
10775 (dwarf2_ranges_process): Likewise.
10776 (dwarf2_ranges_read): Likewise.
10777 (dwarf_decode_lines_1): Likewise.
10778 (new_symbol): Likewise.
10779 (dwarf2_fetch_die_loc_sect_off): Likewise.
10780 (dwarf2_per_cu_text_offset): Likewise.
10781 * hppa-bsd-tdep.c (hppabsd_find_global_pointer): Likewise.
10782 * hppa-tdep.c (read_unwind_info): Likewise.
10783 * ia64-tdep.c (ia64_find_unwind_table): Likewise.
10784 * psympriv.h (struct partial_symtab): Likewise.
10785 * psymtab.c (find_pc_sect_psymtab): Likewise.
10786 * solib-svr4.c (enable_break): Likewise.
10787 * stap-probe.c (relocate_address): Use
10788 objfile::data_section_offset.
10789 * xcoffread.c (enter_line_range): Use
10790 objfile::text_section_offset.
10791 (read_xcoff_symtab): Likewise.
10792
ab53f382
SM
107932020-01-23 Simon Marchi <simon.marchi@efficios.com>
10794
10795 * darwin-nat.c (darwin_nat_target::wait_1): Move `inf`
10796 declaration to narrower scopes.
10797
e7eee665
SM
107982020-01-23 Simon Marchi <simon.marchi@efficios.com>
10799
10800 * darwin-nat.h (struct darwin_exception_msg, enum
10801 darwin_msg_state, struct darwin_thread_info, darwin_thread_t):
10802 Move up.
10803 (class darwin_nat_target) <wait_1, check_new_threads,
10804 decode_exception_message, decode_message, stop_inferior,
10805 init_thread_list, ptrace_him, cancel_breakpoint>: Declare.
10806 * darwin-nat.c (darwin_check_new_threads): Rename to...
10807 (darwin_nat_target::check_new_threads): ... this.
10808 (darwin_suspend_inferior_it): Remove.
10809 (darwin_decode_exception_message): Rename to...
10810 (darwin_nat_target::decode_exception_message): ... this.
10811 (darwin_nat_target::resume): Pass target to find_inferior_ptid.
10812 (darwin_decode_message): Rename to...
10813 (darwin_nat_target::decode_message): ... this.
10814 (cancel_breakpoint): Rename to...
10815 (darwin_nat_target::cancel_breakpoint): ... this.
10816 (darwin_wait): Rename to...
10817 (darwin_nat_target::wait_1): ... this. Use range-based for loop
10818 instead of iterate_over_inferiors.
10819 (darwin_nat_target::wait): Call wait_1 instead of darwin_wait.
10820 (darwin_stop_inferior): Rename to...
10821 (darwin_nat_target::stop_inferior): ... this.
10822 (darwin_nat_target::kill): Call wait_1 instead of darwin_wait.
10823 (darwin_init_thread_list): Rename to...
10824 (darwin_nat_target::init_thread_list): ... this.
10825 (darwin_ptrace_him): Rename to...
10826 (darwin_nat_target::ptrace_him): ... this.
10827 (darwin_nat_target::create_inferior): Pass lambda function to
10828 fork_inferior.
10829 (darwin_nat_target::detach): Call stop_inferior instead of
10830 darwin_stop_inferior.
10831 * fork-inferior.h (fork_inferior): Change init_trace_fun
10832 parameter to gdb::function_view.
10833 * fork-inferior.c (fork_inferior): Likewise.
10834
c162ed3e
HD
108352020-01-23 Hannes Domani <ssbssa@yahoo.de>
10836
10837 * i386-cygwin-tdep.c (core_process_module_section): Update.
10838 * windows-nat.c (struct lm_info_windows): Add text_offset.
10839 (windows_xfer_shared_libraries): Update.
10840 * windows-tdep.c (windows_xfer_shared_library):
10841 Add text_offset_cached argument.
10842 * windows-tdep.h (windows_xfer_shared_library): Update.
10843
a1237872
SM
108442020-01-21 Simon Marchi <simon.marchi@efficios.com>
10845
10846 * gdbarch.sh: Add declaration for _initialize_gdbarch.
10847
b3ee6dd9
SM
108482020-01-21 Simon Marchi <simon.marchi@efficios.com>
10849
10850 * remote-sim.c (check_for_duplicate_sim_descriptor): Remove.
10851 (get_sim_inferior_data): Remove use of iterate_over_inferiors,
10852 replace with range-based for.
10853 (gdbsim_interrupt_inferior): Remove.
10854 (gdbsim_target::interrupt): Replace iterate_over_inferiors use
10855 with a range-based for. Inline code from
10856 gdbsim_interrupt_inferior.
10857
f9fac3c8
SM
108582020-01-21 Simon Marchi <simon.marchi@efficios.com>
10859
10860 * infrun.c (proceed): Fix indentation.
10861
f6474de9
TT
108622020-01-21 Tom Tromey <tromey@adacore.com>
10863
10864 * source-cache.c (source_cache::ensure): Call ext_lang_colorize.
10865 * python/python.c (python_extension_ops): Update.
10866 (gdbpy_colorize): New function.
10867 * python/lib/gdb/__init__.py (colorize): New function.
10868 * extension.h (ext_lang_colorize): Declare.
10869 * extension.c (ext_lang_colorize): New function.
10870 * extension-priv.h (struct extension_language_ops) <colorize>: New
10871 member.
10872 * cli/cli-style.c (_initialize_cli_style): Update help text.
10873
f0c702d4
LM
108742020-01-21 Luis Machado <luis.machado@linaro.org>
10875
10876 * aarch64-tdep.c (struct aarch64_displaced_step_closure)
10877 <cond>: Change type to bool.
10878 (aarch64_displaced_step_b_cond): Update cond to use bool type.
10879 (aarch64_displaced_step_cb): Likewise.
10880 (aarch64_displaced_step_tb): Likewise.
10881
1ab139e5
LM
108822020-01-21 Luis Machado <luis.machado@linaro.org>
10883
10884 * aarch64-tdep.c (aarch64_displaced_step_fixup): Add more debugging
10885 output.
10886
0c271889
LM
108872020-01-21 Luis Machado <luis.machado@linaro.org>
10888
10889 * aarch64-tdep.c (struct aarch64_displaced_step_closure )
10890 <pc_adjust>: Adjust the documentation.
10891 (aarch64_displaced_step_fixup): Check if PC really moved before
10892 adjusting it.
10893
4d89c1c7
TT
108942020-01-19 Tom Tromey <tom@tromey.com>
10895
10896 * disasm.c (~gdb_disassembler): New destructor.
10897 (gdb_buffered_insn_length): Call disassemble_free_target.
10898 * disasm.h (class gdb_disassembler): Declare destructor. Use
10899 DISABLE_COPY_AND_ASSIGN.
10900
c0ab21c2
TT
109012020-01-19 Tom Tromey <tom@tromey.com>
10902
10903 * dwarf2read.c (abbrev_table_up): Move typedef earlier.
10904 (die_reader_func_ftype): Remove.
10905 (cutu_reader): New class.
10906 (dw2_get_file_names_reader): Remove "data" parameter.
10907 (dw2_get_file_names): Use cutu_reader.
10908 (create_debug_type_hash_table): Update.
10909 (read_cutu_die_from_dwo): Update comment.
10910 (lookup_dwo_unit): Add dwo_name parameter.
10911 (cutu_reader::init_tu_and_read_dwo_dies): Now a method. Remove
10912 die_reader_func_ftype and data parameters.
10913 (cutu_reader::cutu_reader): Rename from init_cutu_and_read_dies.
10914 Remove die_reader_func_ftype and data parameters.
10915 (~cutu_reader): New; from init_cutu_and_read_dies.
10916 (cutu_reader::cutu_reader): Rename from
10917 init_cutu_and_read_dies_no_follow. Remove die_reader_func_ftype
10918 and data parameters.
10919 (init_cutu_and_read_dies_simple): Remove.
10920 (struct process_psymtab_comp_unit_data): Remove.
10921 (process_psymtab_comp_unit_reader): Remove data parameter; add
10922 want_partial_unit and pretend_language parameters.
10923 (process_psymtab_comp_unit): Use cutu_reader.
10924 (build_type_psymtabs_reader): Remove data parameter.
10925 (build_type_psymtabs_1): Use cutu_reader.
10926 (process_skeletonless_type_unit): Likewise.
10927 (load_partial_comp_unit_reader): Remove.
10928 (load_partial_comp_unit): Use cutu_reader.
10929 (load_full_comp_unit_reader): Remove.
10930 (load_full_comp_unit): Use cutu_reader.
10931 (struct create_dwo_cu_data): Remove.
10932 (create_dwo_cu_reader): Remove datap parameter; add dwo_file and
10933 dwo_unit parameters.
10934 (create_cus_hash_table): Use cutu_reader.
10935 (struct dwarf2_read_addr_index_data): Remove.
10936 (dwarf2_read_addr_index_reader): Remove.
10937 (dwarf2_read_addr_index): Use cutu_reader.
10938 (read_signatured_type_reader): Remove.
10939 (read_signatured_type): Use cutu_reader.
10940
45bbae5c
TT
109412020-01-19 Tom Tromey <tom@tromey.com>
10942
10943 * tui/tui.c (tui_show_assembly): Use tui_suppress_output.
10944 * tui/tui-wingeneral.h (class tui_suppress_output): New.
10945 (tui_wrefresh): Declare.
10946 * tui/tui-wingeneral.c (suppress_output): New global.
10947 (tui_suppress_output, ~tui_suppress_output): New constructor and
10948 destructor.
10949 (tui_wrefresh): New function.
10950 (tui_gen_win_info::refresh_window): Use tui_wrefresh.
10951 (tui_gen_win_info::make_window): Call wnoutrefresh when needed.
10952 * tui/tui-regs.h (struct tui_data_window) <no_refresh>: Declare
10953 method.
10954 * tui/tui-regs.c (tui_data_window::erase_data_content): Call
10955 tui_wrefresh.
10956 (tui_data_window::no_refresh): New method.
10957 (tui_data_item_window::refresh_window): Call tui_wrefresh.
10958 (tui_reg_command): Use tui_suppress_output
10959 * tui/tui-layout.c (tui_set_layout): Use tui_suppress_output.
10960 * tui/tui-data.h (struct tui_gen_win_info) <no_refresh>: New
10961 method.
10962 * tui/tui-command.c (tui_refresh_cmd_win): Call tui_wrefresh.
10963
4f13c1c0
TT
109642020-01-19 Tom Tromey <tom@tromey.com>
10965
10966 * tui/tui-winsource.c (tui_update_source_windows_with_line):
10967 Handle case where symtab is null.
10968
fa47e446
SM
109692020-01-19 Simon Marchi <simon.marchi@polymtl.ca>
10970
10971 * linux-fork.c (one_fork_p): Simplify.
10972
26f42329
SM
109732020-01-17 Simon Marchi <simon.marchi@efficios.com>
10974
10975 * top.c (struct qt_args): Remove.
10976 (kill_or_detach): Change return type to void, replace `void *`
10977 parameter with a proper one.
10978 (print_inferior_quit_action): Likewise.
10979 (quit_confirm): Use range-based for loop to iterate over inferiors.
10980 (quit_force): Likewise.
10981
a9ac81b1
SM
109822020-01-17 Simon Marchi <simon.marchi@efficios.com>
10983
10984 * mi/mi-main.c (run_one_inferior): Change return type to void, replace
10985 `void *` parameter with proper parameters.
10986 (mi_cmd_exec_run): Use range-based loop to iterate over inferiors.
10987 (print_one_inferior): Change return type to void, replace `void *`
10988 parameter with proper parameters.
10989 (mi_cmd_list_thread_groups): Use range-based loop to iterate over
10990 inferiors.
10991 (get_other_inferior): Remove.
10992 (mi_cmd_remove_inferior): Use range-based loop to iterate over
10993 inferiors.
10994
788eca49
SM
109952020-01-17 Simon Marchi <simon.marchi@efficios.com>
10996
10997 * mi/mi-interp.c (report_initial_inferior): Remove.
10998 (mi_interp::init): Use range-based for to iterate over inferiors.
10999
d9bc85b6
SM
110002020-01-17 Simon Marchi <simon.marchi@efficios.com>
11001
11002 * python/py-inferior.c (build_inferior_list): Remove.
11003 (gdbpy_ref): Use range-based for loop to iterate over inferiors.
11004
40c94099
CB
110052020-01-16 Christian Biesinger <cbiesinger@google.com>
11006
11007 * btrace.c (btrace_compute_ftrace_1): Fix spelling error (Unkown).
11008 (btrace_stitch_trace): Likewise.
11009 * charset.c (intermediate_encoding): Likewise (vaild).
11010 * nat/linux-btrace.c (linux_read_pt): Likewise (Unkown).
11011 * python/py-record-btrace.c (struct PyMethodDef): Likewise (occurences).
11012 * record-btrace.c (record_btrace_print_conf): Likewise (unkown).
11013
e0cdfe3c
HD
110142020-01-16 Hannes Domani <ssbssa@yahoo.de>
11015
11016 * windows-tdep.c (windows_get_tlb_type):
11017 Add rtl_user_process_parameters type.
11018
790f1718 110192020-01-16 Pedro Alves <palves@redhat.com>
aac66a4c 11020 Norbert Lange <nolange79@gmail.com>
790f1718
PA
11021
11022 PR build/24805
11023 * gdbsupport/gdb_proc_service.h (PS_EXPORT): New.
11024 (ps_get_thread_area, ps_getpid, ps_lcontinue, ps_lgetfpregs)
11025 (ps_lgetregs, ps_lsetfpregs, ps_lsetregs, ps_lstop, ps_pcontinue)
11026 (ps_pdread, ps_pdwrite, ps_pglobal_lookup, ps_pstop, ps_ptread)
11027 (ps_ptwrite, ps_lgetxregs, ps_lgetxregsize, ps_lsetxregs)
11028 (ps_plog): Redeclare exported functions with default visibility.
11029
3112ed97
NA
110302020-01-16 Nitika Achra <Nitika.Achra@amd.com>
11031
11032 * dwarf2loc.c (decode_debug_loclists_addresses): Handle
11033 DW_LLE_base_addressx, DW_LLE_startx_length, DW_LLE_start_length.
11034
8dc3273e
SM
110352020-01-15 Simon Marchi <simon.marchi@efficios.com>
11036
11037 * infcmd.c (post_create_inferior): Use get_thread_regcache
11038 instead of get_current_regcache.
11039
ff47f4f0
TT
110402020-01-14 Tom Tromey <tom@tromey.com>
11041
11042 PR symtab/12535:
11043 * python/python.c (gdbpy_decode_line): Treat empty string the same
11044 as no argument.
11045
975f45b7
TT
110462020-01-14 Tom Tromey <tom@tromey.com>
11047
11048 * Makefile.in (CLIBS): Remove second use of $(LIBIBERTY).
11049
25e57356
TT
110502020-01-14 Tom Tromey <tom@tromey.com>
11051
11052 * nat/linux-btrace.c: Don't include <config.h>.
11053 * nat/linux-ptrace.c: Don't include <config.h>.
11054 * nat/x86-linux-dregs.c: Don't include <config.h>.
11055
05ea2a05
TT
110562020-01-14 Tom Tromey <tom@tromey.com>
11057
11058 * configure: Rebuild.
11059 * configure.ac: Move many checks to ../gdbsupport/common.m4.
11060
01027315
TT
110612020-01-14 Tom Tromey <tom@tromey.com>
11062
11063 * nat/x86-linux-dregs.c: Include configh.h.
11064 * nat/linux-ptrace.c: Include configh.h.
11065 * nat/linux-btrace.c: Include configh.h.
11066 * defs.h: Include config.h, bfd.h.
11067 * configure.ac: Don't source common.host.
11068 (CONFIG_OBS, CONFIG_SRCS): Remove gdbsupport files.
11069 * configure: Rebuild.
11070 * acinclude.m4: Update path.
11071 * Makefile.in (SUPPORT, LIBSUPPORT, INCSUPPORT): New variables.
11072 (CONFIG_SRC_SUBDIR): Remove gdbsupport.
11073 (INTERNAL_CFLAGS_BASE): Add INCSUPPORT.
11074 (CLIBS): Add LIBSUPPORT.
11075 (CDEPS): Likewise.
11076 (COMMON_SFILES): Remove gdbsupport files.
11077 (HFILES_NO_SRCDIR): Likewise.
11078 (stamp-version): Update path to create-version.sh.
11079 (ALLDEPFILES): Remove gdbsupport files.
11080
b2ceabe8
TT
110812020-01-14 Tom Tromey <tom@tromey.com>
11082
11083 * gdbsupport/common.m4 (GDB_AC_COMMON): Define WIN32APILIBS and
11084 USE_WIN32API when needed.
11085 * configure.ac (USE_WIN32API): Don't define.
11086 (WIN32LIBS): Use WIN32APILIBS.
11087 * configure: Rebuild.
11088
25c51f71
TT
110892020-01-14 Tom Tromey <tom@tromey.com>
11090
11091 * configure: Rebuild.
11092 * gdbsupport/common.m4 (GDB_AC_COMMON): Fix indentation.
11093
717c684d
BE
110942020-01-14 Bernd Edlinger <bernd.edlinger@hotmail.de>
11095
11096 * skip.c (skip_function_command): Make skip w/o arguments use the
11097 name of the inlined function if pc is inside any inlined function.
11098
7da6a5b9
LM
110992020-01-14 Luis Machado <luis.machado@linaro.org>
11100
11101 * inf-ptrace.c (inf_ptrace_target::resume): Update comments.
11102 * infrun.c (resume_1): Likewise.
11103 (handle_inferior_event): Remove stale comment.
11104 * linux-nat.c (linux_nat_target::resume): Update comments.
11105 (save_stop_reason): Likewise.
11106 (linux_nat_filter_event): Likewise.
11107 * linux-nat.h (struct lwp_info) <stop_pc>, <stop_reason>: Likewise.
11108
44e4c775
AB
111092020-01-13 Andrew Burgess <andrew.burgess@embecosm.com>
11110
11111 * elfread.c (record_minimal_symbol): Set section index to 0 for
11112 non-allocatable sections.
11113
18a8505e
AT
11114
111152020-01-13 Ali Tamur <tamur@google.com>
11116
11117 * dwarf2read.c (dwarf2_debug_sections): Add debug_str_offsets sections.
11118 (dwarf2_cu): Add str_offsets_base field. Change the type of addr_base
11119 to gdb::optional. Update comments.
11120 (dwo_file): Update comments.
11121 (read_attribute): Update API to take an additional out parameter,
11122 need_reprocess. This is used to mark attributes that need other
11123 attributes (e.g. str_offsets_base) for correct computation which may not
11124 have been read yet.
11125 (read_attribute_reprocess): New function declaration.
11126 (read_addr_index): Likewise.
11127 (read_dwo_str_index): Likewise.
11128 (read_stub_str_index): Likewise.
11129 (dwarf2_per_objfile::locate_sections): Handle debug_str_offsets section.
11130 (lookup_addr_base): New function definition.
11131 (lookup_ranges_base): Likewise.
11132 (read_cutu_die_from_dwo): Use the new functions: lookup_addr_base,
11133 lookup_ranges_base.
11134 (init_cutu_and_read_dies): Update comments.
11135 (init_cutu_and_read_dies_no_follow): Change API to take parent compile
11136 unit. This is used to inherit parent's str_offsets_base and addr_base.
11137 Update comments.
11138 (init_cutu_and_read_dies_simple): Reflect API changes.
11139 (skip_one_die): Reflect API changes. Handle DW_FORM_rnglistx.
11140 (create_cus_hash_table): Change API to take parent compile unit.
11141 Reflect API changes.
11142 (open_and_init_dwo_file): Reflect API changes.
11143 (dwarf2_get_pc_bounds): Update comments.
11144 (dwarf2_record_block_ranges): Likewise.
11145 (read_full_die_1): Change implementation to reprocess attributes that
11146 need str_offsets_base and addr_base.
11147 (partial_die_info::read): Likewise.
11148 (read_attribute_reprocess): New function definition.
11149 (read_attribute_value): Change API to take an additional out parameter,
11150 need_reprocess. Handle DW_FORM_rnglistx. No longer trigger an error
11151 when a non-dwo compile unit has index based attributes.
11152 (read_attribute): Reflect API changes.
11153 (read_addr_index_1): Reflect API changes. Update comments.
11154 (dwarf2_read_addr_index_data): Reflect API changes.
11155 (dwarf2_read_addr_index): Likewise.
11156 (read_str_index): Change API and implementation. This becomes a helper
11157 to be used by the new string index related methods. Update error
11158 message and comments.
11159 (read_dwo_str_index): New function definition.
11160 (read_stub_str_index): Likewise.
11161 * dwarf2read.h (dwarf2_per_objfile): Add str_offsets field.
11162 * symfile.h (dwarf2_debug_sections): Likewise.
11163 * xcoffread.c (dwarf2_debug_sections): Likewise.
11164
0cac9354
SM
111652020-01-13 Simon Marchi <simon.marchi@efficios.com>
11166
11167 * gdbcore.h (struct core_fns) <core_read_registers>: Change
11168 core_reg_sect type to gdb_byte *.
11169 * arm-nbsd-nat.c (fetch_elfcore_registers): Likewise.
11170 * cris-tdep.c (fetch_core_registers): Likewise.
11171 * corelow.c (core_target::get_core_register_section): Change
11172 type of `contents` to gdb::byte_vector.
11173
9a6d629c
AB
111742020-01-13 Andrew Burgess <andrew.burgess@embecosm.com>
11175
11176 * tui/tui-wingeneral.c (box_win): Position the title in the center
11177 of the border.
11178
d8b2f9e3
SM
111792020-01-13 Simon Marchi <simon.marchi@polymtl.ca>
11180
11181 * corelow.c (core_target::get_core_register_section): Use
11182 std::vector instead of alloca.
11183
bb564c58
SM
111842020-01-13 Simon Marchi <simon.marchi@efficios.com>
11185
11186 * warning.m4: Add -Wmissing-declarations to build_warnings.
11187 * configure: Re-generate.
11188
6b366111
SM
111892020-01-13 Simon Marchi <simon.marchi@efficios.com>
11190
11191 * python/python.c (init__gdb_module): Add declaration.
11192
6c265988
SM
111932020-01-13 Simon Marchi <simon.marchi@efficios.com>
11194
11195 * aarch64-fbsd-nat.c (_initialize_aarch64_fbsd_nat): Add declaration.
11196 * aarch64-fbsd-tdep.c (_initialize_aarch64_fbsd_tdep): Add declaration.
11197 * aarch64-linux-nat.c (_initialize_aarch64_linux_nat): Add declaration.
11198 * aarch64-linux-tdep.c (_initialize_aarch64_linux_tdep): Add declaration.
11199 * aarch64-newlib-tdep.c (_initialize_aarch64_newlib_tdep): Add declaration.
11200 * aarch64-tdep.c (_initialize_aarch64_tdep): Add declaration.
11201 * ada-exp.y (_initialize_ada_exp): Add declaration.
11202 * ada-lang.c (_initialize_ada_language): Add declaration.
11203 * ada-tasks.c (_initialize_tasks): Add declaration.
11204 * agent.c (_initialize_agent): Add declaration.
11205 * aix-thread.c (_initialize_aix_thread): Add declaration.
11206 * alpha-bsd-nat.c (_initialize_alphabsd_nat): Add declaration.
11207 * alpha-linux-nat.c (_initialize_alpha_linux_nat): Add declaration.
11208 * alpha-linux-tdep.c (_initialize_alpha_linux_tdep): Add declaration.
11209 * alpha-nbsd-tdep.c (_initialize_alphanbsd_tdep): Add declaration.
11210 * alpha-obsd-tdep.c (_initialize_alphaobsd_tdep): Add declaration.
11211 * alpha-tdep.c (_initialize_alpha_tdep): Add declaration.
11212 * amd64-darwin-tdep.c (_initialize_amd64_darwin_tdep): Add declaration.
11213 * amd64-dicos-tdep.c (_initialize_amd64_dicos_tdep): Add declaration.
11214 * amd64-fbsd-nat.c (_initialize_amd64fbsd_nat): Add declaration.
11215 * amd64-fbsd-tdep.c (_initialize_amd64fbsd_tdep): Add declaration.
11216 * amd64-linux-nat.c (_initialize_amd64_linux_nat): Add declaration.
11217 * amd64-linux-tdep.c (_initialize_amd64_linux_tdep): Add declaration.
11218 * amd64-nbsd-nat.c (_initialize_amd64nbsd_nat): Add declaration.
11219 * amd64-nbsd-tdep.c (_initialize_amd64nbsd_tdep): Add declaration.
11220 * amd64-obsd-nat.c (_initialize_amd64obsd_nat): Add declaration.
11221 * amd64-obsd-tdep.c (_initialize_amd64obsd_tdep): Add declaration.
11222 * amd64-sol2-tdep.c (_initialize_amd64_sol2_tdep): Add declaration.
11223 * amd64-tdep.c (_initialize_amd64_tdep): Add declaration.
11224 * amd64-windows-nat.c (_initialize_amd64_windows_nat): Add declaration.
11225 * amd64-windows-tdep.c (_initialize_amd64_windows_tdep): Add declaration.
11226 * annotate.c (_initialize_annotate): Add declaration.
11227 * arc-newlib-tdep.c (_initialize_arc_newlib_tdep): Add declaration.
11228 * arc-tdep.c (_initialize_arc_tdep): Add declaration.
11229 * arch-utils.c (_initialize_gdbarch_utils): Add declaration.
11230 * arm-fbsd-nat.c (_initialize_arm_fbsd_nat): Add declaration.
11231 * arm-fbsd-tdep.c (_initialize_arm_fbsd_tdep): Add declaration.
11232 * arm-linux-nat.c (_initialize_arm_linux_nat): Add declaration.
11233 * arm-linux-tdep.c (_initialize_arm_linux_tdep): Add declaration.
11234 * arm-nbsd-nat.c (_initialize_arm_netbsd_nat): Add declaration.
11235 * arm-nbsd-tdep.c (_initialize_arm_netbsd_tdep): Add declaration.
11236 * arm-obsd-tdep.c (_initialize_armobsd_tdep): Add declaration.
11237 * arm-pikeos-tdep.c (_initialize_arm_pikeos_tdep): Add declaration.
11238 * arm-symbian-tdep.c (_initialize_arm_symbian_tdep): Add declaration.
11239 * arm-tdep.c (_initialize_arm_tdep): Add declaration.
11240 * arm-wince-tdep.c (_initialize_arm_wince_tdep): Add declaration.
11241 * auto-load.c (_initialize_auto_load): Add declaration.
11242 * auxv.c (_initialize_auxv): Add declaration.
11243 * avr-tdep.c (_initialize_avr_tdep): Add declaration.
11244 * ax-gdb.c (_initialize_ax_gdb): Add declaration.
11245 * bfin-linux-tdep.c (_initialize_bfin_linux_tdep): Add declaration.
11246 * bfin-tdep.c (_initialize_bfin_tdep): Add declaration.
11247 * break-catch-sig.c (_initialize_break_catch_sig): Add declaration.
11248 * break-catch-syscall.c (_initialize_break_catch_syscall): Add declaration.
11249 * break-catch-throw.c (_initialize_break_catch_throw): Add declaration.
11250 * breakpoint.c (_initialize_breakpoint): Add declaration.
11251 * bsd-uthread.c (_initialize_bsd_uthread): Add declaration.
11252 * btrace.c (_initialize_btrace): Add declaration.
11253 * charset.c (_initialize_charset): Add declaration.
11254 * cli/cli-cmds.c (_initialize_cli_cmds): Add declaration.
11255 * cli/cli-dump.c (_initialize_cli_dump): Add declaration.
11256 * cli/cli-interp.c (_initialize_cli_interp): Add declaration.
11257 * cli/cli-logging.c (_initialize_cli_logging): Add declaration.
11258 * cli/cli-script.c (_initialize_cli_script): Add declaration.
11259 * cli/cli-style.c (_initialize_cli_style): Add declaration.
11260 * coff-pe-read.c (_initialize_coff_pe_read): Add declaration.
11261 * coffread.c (_initialize_coffread): Add declaration.
11262 * compile/compile-cplus-types.c (_initialize_compile_cplus_types): Add declaration.
11263 * compile/compile.c (_initialize_compile): Add declaration.
11264 * complaints.c (_initialize_complaints): Add declaration.
11265 * completer.c (_initialize_completer): Add declaration.
11266 * copying.c (_initialize_copying): Add declaration.
11267 * corefile.c (_initialize_core): Add declaration.
11268 * corelow.c (_initialize_corelow): Add declaration.
11269 * cp-abi.c (_initialize_cp_abi): Add declaration.
11270 * cp-namespace.c (_initialize_cp_namespace): Add declaration.
11271 * cp-support.c (_initialize_cp_support): Add declaration.
11272 * cp-valprint.c (_initialize_cp_valprint): Add declaration.
11273 * cris-linux-tdep.c (_initialize_cris_linux_tdep): Add declaration.
11274 * cris-tdep.c (_initialize_cris_tdep): Add declaration.
11275 * csky-linux-tdep.c (_initialize_csky_linux_tdep): Add declaration.
11276 * csky-tdep.c (_initialize_csky_tdep): Add declaration.
11277 * ctfread.c (_initialize_ctfread): Add declaration.
11278 * d-lang.c (_initialize_d_language): Add declaration.
11279 * darwin-nat-info.c (_initialize_darwin_info_commands): Add declaration.
11280 * darwin-nat.c (_initialize_darwin_nat): Add declaration.
11281 * dbxread.c (_initialize_dbxread): Add declaration.
11282 * dcache.c (_initialize_dcache): Add declaration.
11283 * disasm-selftests.c (_initialize_disasm_selftests): Add declaration.
11284 * disasm.c (_initialize_disasm): Add declaration.
11285 * dtrace-probe.c (_initialize_dtrace_probe): Add declaration.
11286 * dummy-frame.c (_initialize_dummy_frame): Add declaration.
11287 * dwarf-index-cache.c (_initialize_index_cache): Add declaration.
11288 * dwarf-index-write.c (_initialize_dwarf_index_write): Add declaration.
11289 * dwarf2-frame-tailcall.c (_initialize_tailcall_frame): Add declaration.
11290 * dwarf2-frame.c (_initialize_dwarf2_frame): Add declaration.
11291 * dwarf2expr.c (_initialize_dwarf2expr): Add declaration.
11292 * dwarf2loc.c (_initialize_dwarf2loc): Add declaration.
11293 * dwarf2read.c (_initialize_dwarf2_read): Add declaration.
11294 * elfread.c (_initialize_elfread): Add declaration.
11295 * exec.c (_initialize_exec): Add declaration.
11296 * extension.c (_initialize_extension): Add declaration.
11297 * f-lang.c (_initialize_f_language): Add declaration.
11298 * f-valprint.c (_initialize_f_valprint): Add declaration.
11299 * fbsd-nat.c (_initialize_fbsd_nat): Add declaration.
11300 * fbsd-tdep.c (_initialize_fbsd_tdep): Add declaration.
11301 * filesystem.c (_initialize_filesystem): Add declaration.
11302 * findcmd.c (_initialize_mem_search): Add declaration.
11303 * findvar.c (_initialize_findvar): Add declaration.
11304 * fork-child.c (_initialize_fork_child): Add declaration.
11305 * frame-base.c (_initialize_frame_base): Add declaration.
11306 * frame-unwind.c (_initialize_frame_unwind): Add declaration.
11307 * frame.c (_initialize_frame): Add declaration.
11308 * frv-linux-tdep.c (_initialize_frv_linux_tdep): Add declaration.
11309 * frv-tdep.c (_initialize_frv_tdep): Add declaration.
11310 * ft32-tdep.c (_initialize_ft32_tdep): Add declaration.
11311 * gcore.c (_initialize_gcore): Add declaration.
11312 * gdb-demangle.c (_initialize_gdb_demangle): Add declaration.
11313 * gdb_bfd.c (_initialize_gdb_bfd): Add declaration.
11314 * gdbarch-selftests.c (_initialize_gdbarch_selftests): Add declaration.
11315 * gdbarch.c (_initialize_gdbarch): Add declaration.
11316 * gdbtypes.c (_initialize_gdbtypes): Add declaration.
11317 * gnu-nat.c (_initialize_gnu_nat): Add declaration.
11318 * gnu-v2-abi.c (_initialize_gnu_v2_abi): Add declaration.
11319 * gnu-v3-abi.c (_initialize_gnu_v3_abi): Add declaration.
11320 * go-lang.c (_initialize_go_language): Add declaration.
11321 * go32-nat.c (_initialize_go32_nat): Add declaration.
11322 * guile/guile.c (_initialize_guile): Add declaration.
11323 * h8300-tdep.c (_initialize_h8300_tdep): Add declaration.
11324 * hppa-linux-nat.c (_initialize_hppa_linux_nat): Add declaration.
11325 * hppa-linux-tdep.c (_initialize_hppa_linux_tdep): Add declaration.
11326 * hppa-nbsd-nat.c (_initialize_hppanbsd_nat): Add declaration.
11327 * hppa-nbsd-tdep.c (_initialize_hppanbsd_tdep): Add declaration.
11328 * hppa-obsd-nat.c (_initialize_hppaobsd_nat): Add declaration.
11329 * hppa-obsd-tdep.c (_initialize_hppabsd_tdep): Add declaration.
11330 * hppa-tdep.c (_initialize_hppa_tdep): Add declaration.
11331 * i386-bsd-nat.c (_initialize_i386bsd_nat): Add declaration.
11332 * i386-cygwin-tdep.c (_initialize_i386_cygwin_tdep): Add declaration.
11333 * i386-darwin-nat.c (_initialize_i386_darwin_nat): Add declaration.
11334 * i386-darwin-tdep.c (_initialize_i386_darwin_tdep): Add declaration.
11335 * i386-dicos-tdep.c (_initialize_i386_dicos_tdep): Add declaration.
11336 * i386-fbsd-nat.c (_initialize_i386fbsd_nat): Add declaration.
11337 * i386-fbsd-tdep.c (_initialize_i386fbsd_tdep): Add declaration.
11338 * i386-gnu-nat.c (_initialize_i386gnu_nat): Add declaration.
11339 * i386-gnu-tdep.c (_initialize_i386gnu_tdep): Add declaration.
11340 * i386-go32-tdep.c (_initialize_i386_go32_tdep): Add declaration.
11341 * i386-linux-nat.c (_initialize_i386_linux_nat): Add declaration.
11342 * i386-linux-tdep.c (_initialize_i386_linux_tdep): Add declaration.
11343 * i386-nbsd-nat.c (_initialize_i386nbsd_nat): Add declaration.
11344 * i386-nbsd-tdep.c (_initialize_i386nbsd_tdep): Add declaration.
11345 * i386-nto-tdep.c (_initialize_i386nto_tdep): Add declaration.
11346 * i386-obsd-nat.c (_initialize_i386obsd_nat): Add declaration.
11347 * i386-obsd-tdep.c (_initialize_i386obsd_tdep): Add declaration.
11348 * i386-sol2-nat.c (_initialize_amd64_sol2_nat): Add declaration.
11349 * i386-sol2-tdep.c (_initialize_i386_sol2_tdep): Add declaration.
11350 * i386-tdep.c (_initialize_i386_tdep): Add declaration.
11351 * i386-windows-nat.c (_initialize_i386_windows_nat): Add declaration.
11352 * ia64-libunwind-tdep.c (_initialize_libunwind_frame): Add declaration.
11353 * ia64-linux-nat.c (_initialize_ia64_linux_nat): Add declaration.
11354 * ia64-linux-tdep.c (_initialize_ia64_linux_tdep): Add declaration.
11355 * ia64-tdep.c (_initialize_ia64_tdep): Add declaration.
11356 * ia64-vms-tdep.c (_initialize_ia64_vms_tdep): Add declaration.
11357 * infcall.c (_initialize_infcall): Add declaration.
11358 * infcmd.c (_initialize_infcmd): Add declaration.
11359 * inflow.c (_initialize_inflow): Add declaration.
11360 * infrun.c (_initialize_infrun): Add declaration.
11361 * interps.c (_initialize_interpreter): Add declaration.
11362 * iq2000-tdep.c (_initialize_iq2000_tdep): Add declaration.
11363 * jit.c (_initialize_jit): Add declaration.
11364 * language.c (_initialize_language): Add declaration.
11365 * linux-fork.c (_initialize_linux_fork): Add declaration.
11366 * linux-nat.c (_initialize_linux_nat): Add declaration.
11367 * linux-tdep.c (_initialize_linux_tdep): Add declaration.
11368 * linux-thread-db.c (_initialize_thread_db): Add declaration.
11369 * lm32-tdep.c (_initialize_lm32_tdep): Add declaration.
11370 * m2-lang.c (_initialize_m2_language): Add declaration.
11371 * m32c-tdep.c (_initialize_m32c_tdep): Add declaration.
11372 * m32r-linux-nat.c (_initialize_m32r_linux_nat): Add declaration.
11373 * m32r-linux-tdep.c (_initialize_m32r_linux_tdep): Add declaration.
11374 * m32r-tdep.c (_initialize_m32r_tdep): Add declaration.
11375 * m68hc11-tdep.c (_initialize_m68hc11_tdep): Add declaration.
11376 * m68k-bsd-nat.c (_initialize_m68kbsd_nat): Add declaration.
11377 * m68k-bsd-tdep.c (_initialize_m68kbsd_tdep): Add declaration.
11378 * m68k-linux-nat.c (_initialize_m68k_linux_nat): Add declaration.
11379 * m68k-linux-tdep.c (_initialize_m68k_linux_tdep): Add declaration.
11380 * m68k-tdep.c (_initialize_m68k_tdep): Add declaration.
11381 * machoread.c (_initialize_machoread): Add declaration.
11382 * macrocmd.c (_initialize_macrocmd): Add declaration.
11383 * macroscope.c (_initialize_macroscope): Add declaration.
11384 * maint-test-options.c (_initialize_maint_test_options): Add declaration.
11385 * maint-test-settings.c (_initialize_maint_test_settings): Add declaration.
11386 * maint.c (_initialize_maint_cmds): Add declaration.
11387 * mdebugread.c (_initialize_mdebugread): Add declaration.
11388 * memattr.c (_initialize_mem): Add declaration.
11389 * mep-tdep.c (_initialize_mep_tdep): Add declaration.
11390 * mi/mi-cmd-env.c (_initialize_mi_cmd_env): Add declaration.
11391 * mi/mi-cmds.c (_initialize_mi_cmds): Add declaration.
11392 * mi/mi-interp.c (_initialize_mi_interp): Add declaration.
11393 * mi/mi-main.c (_initialize_mi_main): Add declaration.
11394 * microblaze-linux-tdep.c (_initialize_microblaze_linux_tdep): Add declaration.
11395 * microblaze-tdep.c (_initialize_microblaze_tdep): Add declaration.
11396 * mips-fbsd-nat.c (_initialize_mips_fbsd_nat): Add declaration.
11397 * mips-fbsd-tdep.c (_initialize_mips_fbsd_tdep): Add declaration.
11398 * mips-linux-nat.c (_initialize_mips_linux_nat): Add declaration.
11399 * mips-linux-tdep.c (_initialize_mips_linux_tdep): Add declaration.
11400 * mips-nbsd-nat.c (_initialize_mipsnbsd_nat): Add declaration.
11401 * mips-nbsd-tdep.c (_initialize_mipsnbsd_tdep): Add declaration.
11402 * mips-sde-tdep.c (_initialize_mips_sde_tdep): Add declaration.
11403 * mips-tdep.c (_initialize_mips_tdep): Add declaration.
11404 * mips64-obsd-nat.c (_initialize_mips64obsd_nat): Add declaration.
11405 * mips64-obsd-tdep.c (_initialize_mips64obsd_tdep): Add declaration.
11406 * mipsread.c (_initialize_mipsread): Add declaration.
11407 * mn10300-linux-tdep.c (_initialize_mn10300_linux_tdep): Add declaration.
11408 * mn10300-tdep.c (_initialize_mn10300_tdep): Add declaration.
11409 * moxie-tdep.c (_initialize_moxie_tdep): Add declaration.
11410 * msp430-tdep.c (_initialize_msp430_tdep): Add declaration.
11411 * nds32-tdep.c (_initialize_nds32_tdep): Add declaration.
11412 * nios2-linux-tdep.c (_initialize_nios2_linux_tdep): Add declaration.
11413 * nios2-tdep.c (_initialize_nios2_tdep): Add declaration.
11414 * nto-procfs.c (_initialize_procfs): Add declaration.
11415 * objc-lang.c (_initialize_objc_language): Add declaration.
11416 * observable.c (_initialize_observer): Add declaration.
11417 * opencl-lang.c (_initialize_opencl_language): Add declaration.
11418 * or1k-linux-tdep.c (_initialize_or1k_linux_tdep): Add declaration.
11419 * or1k-tdep.c (_initialize_or1k_tdep): Add declaration.
11420 * osabi.c (_initialize_gdb_osabi): Add declaration.
11421 * osdata.c (_initialize_osdata): Add declaration.
11422 * p-valprint.c (_initialize_pascal_valprint): Add declaration.
11423 * parse.c (_initialize_parse): Add declaration.
11424 * ppc-fbsd-nat.c (_initialize_ppcfbsd_nat): Add declaration.
11425 * ppc-fbsd-tdep.c (_initialize_ppcfbsd_tdep): Add declaration.
11426 * ppc-linux-nat.c (_initialize_ppc_linux_nat): Add declaration.
11427 * ppc-linux-tdep.c (_initialize_ppc_linux_tdep): Add declaration.
11428 * ppc-nbsd-nat.c (_initialize_ppcnbsd_nat): Add declaration.
11429 * ppc-nbsd-tdep.c (_initialize_ppcnbsd_tdep): Add declaration.
11430 * ppc-obsd-nat.c (_initialize_ppcobsd_nat): Add declaration.
11431 * ppc-obsd-tdep.c (_initialize_ppcobsd_tdep): Add declaration.
11432 * printcmd.c (_initialize_printcmd): Add declaration.
11433 * probe.c (_initialize_probe): Add declaration.
11434 * proc-api.c (_initialize_proc_api): Add declaration.
11435 * proc-events.c (_initialize_proc_events): Add declaration.
11436 * proc-service.c (_initialize_proc_service): Add declaration.
11437 * procfs.c (_initialize_procfs): Add declaration.
11438 * producer.c (_initialize_producer): Add declaration.
11439 * psymtab.c (_initialize_psymtab): Add declaration.
11440 * python/python.c (_initialize_python): Add declaration.
11441 * ravenscar-thread.c (_initialize_ravenscar): Add declaration.
11442 * record-btrace.c (_initialize_record_btrace): Add declaration.
11443 * record-full.c (_initialize_record_full): Add declaration.
11444 * record.c (_initialize_record): Add declaration.
11445 * regcache-dump.c (_initialize_regcache_dump): Add declaration.
11446 * regcache.c (_initialize_regcache): Add declaration.
11447 * reggroups.c (_initialize_reggroup): Add declaration.
11448 * remote-notif.c (_initialize_notif): Add declaration.
11449 * remote-sim.c (_initialize_remote_sim): Add declaration.
11450 * remote.c (_initialize_remote): Add declaration.
11451 * reverse.c (_initialize_reverse): Add declaration.
11452 * riscv-fbsd-nat.c (_initialize_riscv_fbsd_nat): Add declaration.
11453 * riscv-fbsd-tdep.c (_initialize_riscv_fbsd_tdep): Add declaration.
11454 * riscv-linux-nat.c (_initialize_riscv_linux_nat): Add declaration.
11455 * riscv-linux-tdep.c (_initialize_riscv_linux_tdep): Add declaration.
11456 * riscv-tdep.c (_initialize_riscv_tdep): Add declaration.
11457 * rl78-tdep.c (_initialize_rl78_tdep): Add declaration.
11458 * rs6000-aix-tdep.c (_initialize_rs6000_aix_tdep): Add declaration.
11459 * rs6000-lynx178-tdep.c (_initialize_rs6000_lynx178_tdep):
11460 Add declaration.
11461 * rs6000-nat.c (_initialize_rs6000_nat): Add declaration.
11462 * rs6000-tdep.c (_initialize_rs6000_tdep): Add declaration.
11463 * run-on-main-thread.c (_initialize_run_on_main_thread): Add declaration.
11464 * rust-exp.y (_initialize_rust_exp): Add declaration.
11465 * rx-tdep.c (_initialize_rx_tdep): Add declaration.
11466 * s12z-tdep.c (_initialize_s12z_tdep): Add declaration.
11467 * s390-linux-nat.c (_initialize_s390_nat): Add declaration.
11468 * s390-linux-tdep.c (_initialize_s390_linux_tdep): Add declaration.
11469 * s390-tdep.c (_initialize_s390_tdep): Add declaration.
11470 * score-tdep.c (_initialize_score_tdep): Add declaration.
11471 * ser-go32.c (_initialize_ser_dos): Add declaration.
11472 * ser-mingw.c (_initialize_ser_windows): Add declaration.
11473 * ser-pipe.c (_initialize_ser_pipe): Add declaration.
11474 * ser-tcp.c (_initialize_ser_tcp): Add declaration.
11475 * ser-uds.c (_initialize_ser_socket): Add declaration.
11476 * ser-unix.c (_initialize_ser_hardwire): Add declaration.
11477 * serial.c (_initialize_serial): Add declaration.
11478 * sh-linux-tdep.c (_initialize_sh_linux_tdep): Add declaration.
11479 * sh-nbsd-nat.c (_initialize_shnbsd_nat): Add declaration.
11480 * sh-nbsd-tdep.c (_initialize_shnbsd_tdep): Add declaration.
11481 * sh-tdep.c (_initialize_sh_tdep): Add declaration.
11482 * skip.c (_initialize_step_skip): Add declaration.
11483 * sol-thread.c (_initialize_sol_thread): Add declaration.
11484 * solib-aix.c (_initialize_solib_aix): Add declaration.
11485 * solib-darwin.c (_initialize_darwin_solib): Add declaration.
11486 * solib-dsbt.c (_initialize_dsbt_solib): Add declaration.
11487 * solib-frv.c (_initialize_frv_solib): Add declaration.
11488 * solib-svr4.c (_initialize_svr4_solib): Add declaration.
11489 * solib-target.c (_initialize_solib_target): Add declaration.
11490 * solib.c (_initialize_solib): Add declaration.
11491 * source-cache.c (_initialize_source_cache): Add declaration.
11492 * source.c (_initialize_source): Add declaration.
11493 * sparc-linux-nat.c (_initialize_sparc_linux_nat): Add declaration.
11494 * sparc-linux-tdep.c (_initialize_sparc_linux_tdep): Add declaration.
11495 * sparc-nat.c (_initialize_sparc_nat): Add declaration.
11496 * sparc-nbsd-nat.c (_initialize_sparcnbsd_nat): Add declaration.
11497 * sparc-nbsd-tdep.c (_initialize_sparcnbsd_tdep): Add declaration.
11498 * sparc-obsd-tdep.c (_initialize_sparc32obsd_tdep): Add declaration.
11499 * sparc-sol2-tdep.c (_initialize_sparc_sol2_tdep): Add declaration.
11500 * sparc-tdep.c (_initialize_sparc_tdep): Add declaration.
11501 * sparc64-fbsd-nat.c (_initialize_sparc64fbsd_nat): Add declaration.
11502 * sparc64-fbsd-tdep.c (_initialize_sparc64fbsd_tdep): Add declaration.
11503 * sparc64-linux-nat.c (_initialize_sparc64_linux_nat): Add declaration.
11504 * sparc64-linux-tdep.c (_initialize_sparc64_linux_tdep): Add declaration.
11505 * sparc64-nat.c (_initialize_sparc64_nat): Add declaration.
11506 * sparc64-nbsd-nat.c (_initialize_sparc64nbsd_nat): Add declaration.
11507 * sparc64-nbsd-tdep.c (_initialize_sparc64nbsd_tdep): Add declaration.
11508 * sparc64-obsd-nat.c (_initialize_sparc64obsd_nat): Add declaration.
11509 * sparc64-obsd-tdep.c (_initialize_sparc64obsd_tdep): Add declaration.
11510 * sparc64-sol2-tdep.c (_initialize_sparc64_sol2_tdep): Add declaration.
11511 * sparc64-tdep.c (_initialize_sparc64_adi_tdep): Add declaration.
11512 * stabsread.c (_initialize_stabsread): Add declaration.
11513 * stack.c (_initialize_stack): Add declaration.
11514 * stap-probe.c (_initialize_stap_probe): Add declaration.
11515 * std-regs.c (_initialize_frame_reg): Add declaration.
11516 * symfile-debug.c (_initialize_symfile_debug): Add declaration.
11517 * symfile-mem.c (_initialize_symfile_mem): Add declaration.
11518 * symfile.c (_initialize_symfile): Add declaration.
11519 * symmisc.c (_initialize_symmisc): Add declaration.
11520 * symtab.c (_initialize_symtab): Add declaration.
11521 * target.c (_initialize_target): Add declaration.
11522 * target-connection.c (_initialize_target_connection): Add
11523 declaration.
11524 * target-dcache.c (_initialize_target_dcache): Add declaration.
11525 * target-descriptions.c (_initialize_target_descriptions): Add declaration.
11526 * thread.c (_initialize_thread): Add declaration.
11527 * tic6x-linux-tdep.c (_initialize_tic6x_linux_tdep): Add declaration.
11528 * tic6x-tdep.c (_initialize_tic6x_tdep): Add declaration.
11529 * tilegx-linux-nat.c (_initialize_tile_linux_nat): Add declaration.
11530 * tilegx-linux-tdep.c (_initialize_tilegx_linux_tdep): Add declaration.
11531 * tilegx-tdep.c (_initialize_tilegx_tdep): Add declaration.
11532 * tracectf.c (_initialize_ctf): Add declaration.
11533 * tracefile-tfile.c (_initialize_tracefile_tfile): Add declaration.
11534 * tracefile.c (_initialize_tracefile): Add declaration.
11535 * tracepoint.c (_initialize_tracepoint): Add declaration.
11536 * tui/tui-hooks.c (_initialize_tui_hooks): Add declaration.
11537 * tui/tui-interp.c (_initialize_tui_interp): Add declaration.
11538 * tui/tui-layout.c (_initialize_tui_layout): Add declaration.
11539 * tui/tui-regs.c (_initialize_tui_regs): Add declaration.
11540 * tui/tui-stack.c (_initialize_tui_stack): Add declaration.
11541 * tui/tui-win.c (_initialize_tui_win): Add declaration.
11542 * tui/tui.c (_initialize_tui): Add declaration.
11543 * typeprint.c (_initialize_typeprint): Add declaration.
11544 * ui-style.c (_initialize_ui_style): Add declaration.
11545 * unittests/array-view-selftests.c (_initialize_array_view_selftests): Add declaration.
11546 * unittests/child-path-selftests.c (_initialize_child_path_selftests): Add declaration.
11547 * unittests/cli-utils-selftests.c (_initialize_cli_utils_selftests): Add declaration.
11548 * unittests/common-utils-selftests.c (_initialize_common_utils_selftests): Add declaration.
11549 * unittests/copy_bitwise-selftests.c (_initialize_copy_bitwise_utils_selftests): Add declaration.
11550 * unittests/environ-selftests.c (_initialize_environ_selftests): Add declaration.
11551 * unittests/filtered_iterator-selftests.c
11552 (_initialize_filtered_iterator_selftests): Add declaration.
11553 * unittests/format_pieces-selftests.c (_initialize_format_pieces_selftests): Add declaration.
11554 * unittests/function-view-selftests.c (_initialize_function_view_selftests): Add declaration.
11555 * unittests/help-doc-selftests.c (_initialize_help_doc_selftests): Add declaration.
11556 * unittests/lookup_name_info-selftests.c (_initialize_lookup_name_info_selftests): Add declaration.
11557 * unittests/main-thread-selftests.c
11558 (_initialize_main_thread_selftests): Add declaration.
11559 * unittests/memory-map-selftests.c (_initialize_memory_map_selftests): Add declaration.
11560 * unittests/memrange-selftests.c (_initialize_memrange_selftests): Add declaration.
11561 * unittests/mkdir-recursive-selftests.c (_initialize_mkdir_recursive_selftests): Add declaration.
11562 * unittests/observable-selftests.c (_initialize_observer_selftest): Add declaration.
11563 * unittests/offset-type-selftests.c (_initialize_offset_type_selftests): Add declaration.
11564 * unittests/optional-selftests.c (_initialize_optional_selftests): Add declaration.
11565 * unittests/parse-connection-spec-selftests.c (_initialize_parse_connection_spec_selftests): Add declaration.
11566 * unittests/rsp-low-selftests.c (_initialize_rsp_low_selftests): Add declaration.
11567 * unittests/scoped_fd-selftests.c (_initialize_scoped_fd_selftests): Add declaration.
11568 * unittests/scoped_mmap-selftests.c (_initialize_scoped_mmap_selftests): Add declaration.
11569 * unittests/scoped_restore-selftests.c (_initialize_scoped_restore_selftests): Add declaration.
11570 * unittests/string_view-selftests.c (_initialize_string_view_selftests): Add declaration.
11571 * unittests/style-selftests.c (_initialize_style_selftest): Add declaration.
11572 * unittests/tracepoint-selftests.c (_initialize_tracepoint_selftests): Add declaration.
11573 * unittests/tui-selftests.c (_initialize_tui_selftest): Add
11574 declaration.
11575 * unittests/unpack-selftests.c (_initialize_unpack_selftests): Add declaration.
11576 * unittests/utils-selftests.c (_initialize_utils_selftests): Add declaration.
11577 * unittests/vec-utils-selftests.c (_initialize_vec_utils_selftests): Add declaration.
11578 * unittests/xml-utils-selftests.c (_initialize_xml_utils): Add declaration.
11579 * user-regs.c (_initialize_user_regs): Add declaration.
11580 * utils.c (_initialize_utils): Add declaration.
11581 * v850-tdep.c (_initialize_v850_tdep): Add declaration.
11582 * valops.c (_initialize_valops): Add declaration.
11583 * valprint.c (_initialize_valprint): Add declaration.
11584 * value.c (_initialize_values): Add declaration.
11585 * varobj.c (_initialize_varobj): Add declaration.
11586 * vax-bsd-nat.c (_initialize_vaxbsd_nat): Add declaration.
11587 * vax-nbsd-tdep.c (_initialize_vaxnbsd_tdep): Add declaration.
11588 * vax-tdep.c (_initialize_vax_tdep): Add declaration.
11589 * windows-nat.c (_initialize_windows_nat): Add declaration.
11590 (_initialize_check_for_gdb_ini): Add declaration.
11591 (_initialize_loadable): Add declaration.
11592 * windows-tdep.c (_initialize_windows_tdep): Add declaration.
11593 * x86-bsd-nat.c (_initialize_x86_bsd_nat): Add declaration.
11594 * x86-linux-nat.c (_initialize_x86_linux_nat): Add declaration.
11595 * xcoffread.c (_initialize_xcoffread): Add declaration.
11596 * xml-support.c (_initialize_xml_support): Add declaration.
11597 * xstormy16-tdep.c (_initialize_xstormy16_tdep): Add declaration.
11598 * xtensa-linux-nat.c (_initialize_xtensa_linux_nat): Add declaration.
11599 * xtensa-linux-tdep.c (_initialize_xtensa_linux_tdep): Add declaration.
11600 * xtensa-tdep.c (_initialize_xtensa_tdep): Add declaration.
11601
e2de1eec
SM
116022020-01-13 Simon Marchi <simon.marchi@polymtl.ca>
11603
11604 * regformats/regdat.sh: Generate declaration for init function.
11605
e0037b4c
SM
116062020-01-13 Simon Marchi <simon.marchi@polymtl.ca>
11607
11608 * remote-sim.c (next_pid, INITIAL_PID, sim_inferior_data): Move
11609 up.
11610 (gdbsim_target) <get_inferior_data_by_ptid, resume_one_inferior,
11611 close_one_inferior>: New methods.
11612 (get_sim_inferior_data_by_ptid): Move to gdbsim_target,
11613 pass down target to find_inferior_pid.
11614 (gdbsim_target::fetch_registers, gdbsim_target::store_registers):
11615 Pass down target to find_inferior_ptid.
11616 (gdbsim_target::create_inferior): Pass down target to
11617 add_thread_silent.
11618 (gdbsim_close_inferior): Move to gdbsim_close_inferior, pass
11619 target down to find_inferior_ptid and switch_to_thread.
11620 (gdbsim_target::close): Update to call close_one_inferior.
11621 (struct resume_data): Remove.
11622 (gdbsim_resume_inferior): Move to gdbsim_target. Take arguments
11623 directly, rather than through a void pointer.
11624 (gdbsim_target::resume): Update to call resume_one_inferior.
11625
58920b5b
SM
116262020-01-12 Simon Marchi <simon.marchi@polymtl.ca>
11627
11628 * gdbsupport/gdb_wait.c: Include gdb_wait.h.
11629
4ec89149
PA
116302020-01-12 Pedro Alves <palves@redhat.com>
11631
11632 * bsd-kvm.c (bsd_kvm_target::close): Call exit_inferior_silent
11633 directly for the current inferior instead of
11634 discard_all_inferiors.
11635 (discard_all_inferiors): Delete.
11636
7c392d1d
TT
116372020-01-11 Tom Tromey <tom@tromey.com>
11638
11639 * tui/tui-wingeneral.c (box_win): Check cli_styling.
11640 * tui/tui-winsource.c (tui_source_window_base::refill): Use
11641 deprecated_safe_get_selected_frame.
11642
d9ebdab7
TBA
116432020-01-10 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
11644
11645 * inferior.c (print_inferior): Switch inferior before printing it.
11646
f3c469b9
PA
116472020-01-10 Aleksandar Paunovic <aleksandar.paunovic@intel.com>
11648 Pedro Alves <palves@redhat.com>
11649
11650 * progspace-and-thread.c (switch_to_program_space_and_thread):
11651 Assert there's an inferior for PSPACE. Use
11652 switch_to_inferior_no_thread to switch the inferior too.
11653 * progspace.c (program_space::~program_space): Call
11654 clear_symtab_users here, with SYMFILE_DEFER_BP_RESET.
11655 (program_space::free_all_objfiles): Don't call clear_symtab_users
11656 here.
11657 * symfile.c (symbol_file_clear): Call clear_symtab_users here.
11658
65c574f6
PA
116592020-01-10 Pedro Alves <palves@redhat.com>
11660
11661 * NEWS: Mention multi-target debugging, "info connections", and
11662 "add-inferior -no-connection".
11663
2f4fcf00
PA
116642020-01-10 Pedro Alves <palves@redhat.com>
11665
11666 * infrun.c: Include "target-connection.h".
11667 (check_multi_target_resumption): New.
11668 (proceed): Call it.
11669 * target-connection.c (make_target_connection_string): Make
11670 extern.
11671 * target-connection.h (make_target_connection_string): Declare.
11672
121b3efd
PA
116732020-01-10 Pedro Alves <palves@redhat.com>
11674
11675 * Makefile.in (COMMON_SFILES): Add target-connection.c.
11676 * inferior.c (uiout_field_connection): New function.
11677 (print_inferior): Add new "connection-id" column.
11678 (add_inferior_command): Show connection number/string of added
11679 inferior.
11680 * process-stratum-target.h
11681 (process_stratum_target::connection_string): New virtual method.
11682 (process_stratum_target::connection_number): New field.
11683 * remote.c (remote_target::connection_string): New override.
11684 * target-connection.c: New file.
11685 * target-connection.h: New file.
11686 * target.c (decref_target): Remove process_stratum targets from
11687 the connection list.
11688 (target_stack::push): Add process_stratum targets to the
11689 connection list.
11690
4f837581
PA
116912020-01-10 Pedro Alves <palves@redhat.com>
11692
11693 Revert:
11694 2016-04-12 Pedro Alves <palves@redhat.com>
11695 * serial.c (serial_open, serial_fdopen_ops, do_serial_close):
11696 Remove references to name.
11697 * serial.h (struct serial) <name>: Delete.
11698
f4ec508e
PA
116992020-01-10 Pedro Alves <palves@redhat.com>
11700
11701 * gdbarch-selftests.c (register_to_value_test): Remove "target
11702 already pushed" check.
11703
5b6d1e4f
PA
117042020-01-10 Pedro Alves <palves@redhat.com>
11705 John Baldwin <jhb@FreeBSD.org>
11706
11707 * aarch64-linux-nat.c
11708 (aarch64_linux_nat_target::thread_architecture): Adjust.
11709 * ada-tasks.c (print_ada_task_info): Adjust find_thread_ptid call.
11710 (task_command_1): Likewise.
11711 * aix-thread.c (sync_threadlists, aix_thread_target::resume)
11712 (aix_thread_target::wait, aix_thread_target::fetch_registers)
11713 (aix_thread_target::store_registers)
11714 (aix_thread_target::thread_alive): Adjust.
11715 * amd64-fbsd-tdep.c: Include "inferior.h".
11716 (amd64fbsd_get_thread_local_address): Pass down target.
11717 * amd64-linux-nat.c (ps_get_thread_area): Use ps_prochandle
11718 thread's gdbarch instead of target_gdbarch.
11719 * break-catch-sig.c (signal_catchpoint_print_it): Adjust call to
11720 get_last_target_status.
11721 * break-catch-syscall.c (print_it_catch_syscall): Likewise.
11722 * breakpoint.c (breakpoints_should_be_inserted_now): Consider all
11723 inferiors.
11724 (update_inserted_breakpoint_locations): Skip if inferiors with no
11725 execution.
11726 (update_global_location_list): When handling moribund locations,
11727 find representative inferior for location's pspace, and use thread
11728 count of its process_stratum target.
11729 * bsd-kvm.c (bsd_kvm_target_open): Pass target down.
11730 * bsd-uthread.c (bsd_uthread_target::wait): Use
11731 as_process_stratum_target and adjust thread_change_ptid and
11732 add_thread calls.
11733 (bsd_uthread_target::update_thread_list): Use
11734 as_process_stratum_target and adjust find_thread_ptid,
11735 thread_change_ptid and add_thread calls.
11736 * btrace.c (maint_btrace_packet_history_cmd): Adjust
11737 find_thread_ptid call.
11738 * corelow.c (add_to_thread_list): Adjust add_thread call.
11739 (core_target_open): Adjust add_thread_silent and thread_count
11740 calls.
11741 (core_target::pid_to_str): Adjust find_inferior_ptid call.
11742 * ctf.c (ctf_target_open): Adjust add_thread_silent call.
11743 * event-top.c (async_disconnect): Pop targets from all inferiors.
11744 * exec.c (add_target_sections): Push exec target on all inferiors
11745 sharing the program space.
11746 (remove_target_sections): Remove the exec target from all
11747 inferiors sharing the program space.
11748 (exec_on_vfork): New.
11749 * exec.h (exec_on_vfork): Declare.
11750 * fbsd-nat.c (fbsd_add_threads): Add fbsd_nat_target parameter.
11751 Pass it down.
11752 (fbsd_nat_target::update_thread_list): Adjust.
11753 (fbsd_nat_target::resume): Adjust.
11754 (fbsd_handle_debug_trap): Add fbsd_nat_target parameter. Pass it
11755 down.
11756 (fbsd_nat_target::wait, fbsd_nat_target::post_attach): Adjust.
11757 * fbsd-tdep.c (fbsd_corefile_thread): Adjust
11758 get_thread_arch_regcache call.
11759 * fork-child.c (gdb_startup_inferior): Pass target down to
11760 startup_inferior and set_executing.
11761 * gdbthread.h (struct process_stratum_target): Forward declare.
11762 (add_thread, add_thread_silent, add_thread_with_info)
11763 (in_thread_list): Add process_stratum_target parameter.
11764 (find_thread_ptid(inferior*, ptid_t)): New overload.
11765 (find_thread_ptid, thread_change_ptid): Add process_stratum_target
11766 parameter.
11767 (all_threads()): Delete overload.
11768 (all_threads, all_non_exited_threads): Add process_stratum_target
11769 parameter.
11770 (all_threads_safe): Use brace initialization.
11771 (thread_count): Add process_stratum_target parameter.
11772 (set_resumed, set_running, set_stop_requested, set_executing)
11773 (threads_are_executing, finish_thread_state): Add
11774 process_stratum_target parameter.
11775 (switch_to_thread): Use is_current_thread.
11776 * i386-fbsd-tdep.c: Include "inferior.h".
11777 (i386fbsd_get_thread_local_address): Pass down target.
11778 * i386-linux-nat.c (i386_linux_nat_target::low_resume): Adjust.
11779 * inf-child.c (inf_child_target::maybe_unpush_target): Remove
11780 have_inferiors check.
11781 * inf-ptrace.c (inf_ptrace_target::create_inferior)
11782 (inf_ptrace_target::attach): Adjust.
11783 * infcall.c (run_inferior_call): Adjust.
11784 * infcmd.c (run_command_1): Pass target to
11785 scoped_finish_thread_state.
11786 (proceed_thread_callback): Skip inferiors with no execution.
11787 (continue_command): Rename 'all_threads' local to avoid hiding
11788 'all_threads' function. Adjust get_last_target_status call.
11789 (prepare_one_step): Adjust set_running call.
11790 (signal_command): Use user_visible_resume_target. Compare thread
11791 pointers instead of inferior_ptid.
11792 (info_program_command): Adjust to pass down target.
11793 (attach_command): Mark target's 'thread_executing' flag.
11794 (stop_current_target_threads_ns): New, factored out from ...
11795 (interrupt_target_1): ... this. Switch inferior before making
11796 target calls.
11797 * inferior-iter.h
11798 (struct all_inferiors_iterator, struct all_inferiors_range)
11799 (struct all_inferiors_safe_range)
11800 (struct all_non_exited_inferiors_range): Filter on
11801 process_stratum_target too. Remove explicit.
11802 * inferior.c (inferior::inferior): Push dummy target on target
11803 stack.
11804 (find_inferior_pid, find_inferior_ptid, number_of_live_inferiors):
11805 Add process_stratum_target parameter, and pass it down.
11806 (have_live_inferiors): Adjust.
11807 (switch_to_inferior_and_push_target): New.
11808 (add_inferior_command, clone_inferior_command): Handle
11809 "-no-connection" parameter. Use
11810 switch_to_inferior_and_push_target.
11811 (_initialize_inferior): Mention "-no-connection" option in
11812 the help of "add-inferior" and "clone-inferior" commands.
11813 * inferior.h: Include "process-stratum-target.h".
11814 (interrupt_target_1): Use bool.
11815 (struct inferior) <push_target, unpush_target, target_is_pushed,
11816 find_target_beneath, top_target, process_target, target_at,
11817 m_stack>: New.
11818 (discard_all_inferiors): Delete.
11819 (find_inferior_pid, find_inferior_ptid, number_of_live_inferiors)
11820 (all_inferiors, all_non_exited_inferiors): Add
11821 process_stratum_target parameter.
11822 * infrun.c: Include "gdb_select.h" and <unordered_map>.
11823 (target_last_proc_target): New global.
11824 (follow_fork_inferior): Push target on new inferior. Pass target
11825 to add_thread_silent. Call exec_on_vfork. Handle target's
11826 reference count.
11827 (follow_fork): Adjust get_last_target_status call. Also consider
11828 target.
11829 (follow_exec): Push target on new inferior.
11830 (struct execution_control_state) <target>: New field.
11831 (user_visible_resume_target): New.
11832 (do_target_resume): Call target_async.
11833 (resume_1): Set target's threads_executing flag. Consider resume
11834 target.
11835 (commit_resume_all_targets): New.
11836 (proceed): Also consider resume target. Skip threads of inferiors
11837 with no execution. Commit resumtion in all targets.
11838 (start_remote): Pass current inferior to wait_for_inferior.
11839 (infrun_thread_stop_requested): Consider target as well. Pass
11840 thread_info pointer to clear_inline_frame_state instead of ptid.
11841 (infrun_thread_thread_exit): Consider target as well.
11842 (random_pending_event_thread): New inferior parameter. Use it.
11843 (do_target_wait): Rename to ...
11844 (do_target_wait_1): ... this. Add inferior parameter, and pass it
11845 down.
11846 (threads_are_resumed_pending_p, do_target_wait): New.
11847 (prepare_for_detach): Adjust calls.
11848 (wait_for_inferior): New inferior parameter. Handle it. Use
11849 do_target_wait_1 instead of do_target_wait.
11850 (fetch_inferior_event): Adjust. Switch to representative
11851 inferior. Pass target down.
11852 (set_last_target_status): Add process_stratum_target parameter.
11853 Save target in global.
11854 (get_last_target_status): Add process_stratum_target parameter and
11855 handle it.
11856 (nullify_last_target_wait_ptid): Clear 'target_last_proc_target'.
11857 (context_switch): Check inferior_ptid == null_ptid before calling
11858 inferior_thread().
11859 (get_inferior_stop_soon): Pass down target.
11860 (wait_one): Rename to ...
11861 (poll_one_curr_target): ... this.
11862 (struct wait_one_event): New.
11863 (wait_one): New.
11864 (stop_all_threads): Adjust.
11865 (handle_no_resumed, handle_inferior_event): Adjust to consider the
11866 event's target.
11867 (switch_back_to_stepped_thread): Also consider target.
11868 (print_stop_event): Update.
11869 (normal_stop): Update. Also consider the resume target.
11870 * infrun.h (wait_for_inferior): Remove declaration.
11871 (user_visible_resume_target): New declaration.
11872 (get_last_target_status, set_last_target_status): New
11873 process_stratum_target parameter.
11874 * inline-frame.c (clear_inline_frame_state(ptid_t)): Add
11875 process_stratum_target parameter, and use it.
11876 (clear_inline_frame_state (thread_info*)): New.
11877 * inline-frame.c (clear_inline_frame_state(ptid_t)): Add
11878 process_stratum_target parameter.
11879 (clear_inline_frame_state (thread_info*)): Declare.
11880 * linux-fork.c (delete_checkpoint_command): Pass target down to
11881 find_thread_ptid.
11882 (checkpoint_command): Adjust.
11883 * linux-nat.c (linux_nat_target::follow_fork): Switch to thread
11884 instead of just tweaking inferior_ptid.
11885 (linux_nat_switch_fork): Pass target down to thread_change_ptid.
11886 (exit_lwp): Pass target down to find_thread_ptid.
11887 (attach_proc_task_lwp_callback): Pass target down to
11888 add_thread/set_running/set_executing.
11889 (linux_nat_target::attach): Pass target down to
11890 thread_change_ptid.
11891 (get_detach_signal): Pass target down to find_thread_ptid.
11892 Consider last target status's target.
11893 (linux_resume_one_lwp_throw, resume_lwp)
11894 (linux_handle_syscall_trap, linux_handle_extended_wait, wait_lwp)
11895 (stop_wait_callback, save_stop_reason, linux_nat_filter_event)
11896 (linux_nat_wait_1, resume_stopped_resumed_lwps): Pass target down.
11897 (linux_nat_target::async_wait_fd): New.
11898 (linux_nat_stop_lwp, linux_nat_target::thread_address_space): Pass
11899 target down.
11900 * linux-nat.h (linux_nat_target::async_wait_fd): Declare.
11901 * linux-tdep.c (get_thread_arch_regcache): Pass target down.
11902 * linux-thread-db.c (struct thread_db_info::process_target): New
11903 field.
11904 (add_thread_db_info): Save target.
11905 (get_thread_db_info): New process_stratum_target parameter. Also
11906 match target.
11907 (delete_thread_db_info): New process_stratum_target parameter.
11908 Also match target.
11909 (thread_from_lwp): Adjust to pass down target.
11910 (thread_db_notice_clone): Pass down target.
11911 (check_thread_db_callback): Pass down target.
11912 (try_thread_db_load_1): Always push the thread_db target.
11913 (try_thread_db_load, record_thread): Pass target down.
11914 (thread_db_target::detach): Pass target down. Always unpush the
11915 thread_db target.
11916 (thread_db_target::wait, thread_db_target::mourn_inferior): Pass
11917 target down. Always unpush the thread_db target.
11918 (find_new_threads_callback, thread_db_find_new_threads_2)
11919 (thread_db_target::update_thread_list): Pass target down.
11920 (thread_db_target::pid_to_str): Pass current inferior down.
11921 (thread_db_target::get_thread_local_address): Pass target down.
11922 (thread_db_target::resume, maintenance_check_libthread_db): Pass
11923 target down.
11924 * nto-procfs.c (nto_procfs_target::update_thread_list): Adjust.
11925 * procfs.c (procfs_target::procfs_init_inferior): Declare.
11926 (proc_set_current_signal, do_attach, procfs_target::wait): Adjust.
11927 (procfs_init_inferior): Rename to ...
11928 (procfs_target::procfs_init_inferior): ... this and adjust.
11929 (procfs_target::create_inferior, procfs_notice_thread)
11930 (procfs_do_thread_registers): Adjust.
11931 * ppc-fbsd-tdep.c: Include "inferior.h".
11932 (ppcfbsd_get_thread_local_address): Pass down target.
11933 * proc-service.c (ps_xfer_memory): Switch current inferior and
11934 program space as well.
11935 (get_ps_regcache): Pass target down.
11936 * process-stratum-target.c
11937 (process_stratum_target::thread_address_space)
11938 (process_stratum_target::thread_architecture): Pass target down.
11939 * process-stratum-target.h
11940 (process_stratum_target::threads_executing): New field.
11941 (as_process_stratum_target): New.
11942 * ravenscar-thread.c
11943 (ravenscar_thread_target::update_inferior_ptid): Pass target down.
11944 (ravenscar_thread_target::wait, ravenscar_add_thread): Pass target
11945 down.
11946 * record-btrace.c (record_btrace_target::info_record): Adjust.
11947 (record_btrace_target::record_method)
11948 (record_btrace_target::record_is_replaying)
11949 (record_btrace_target::fetch_registers)
11950 (get_thread_current_frame_id, record_btrace_target::resume)
11951 (record_btrace_target::wait, record_btrace_target::stop): Pass
11952 target down.
11953 * record-full.c (record_full_wait_1): Switch to event thread.
11954 Pass target down.
11955 * regcache.c (regcache::regcache)
11956 (get_thread_arch_aspace_regcache, get_thread_arch_regcache): Add
11957 process_stratum_target parameter and handle it.
11958 (current_thread_target): New global.
11959 (get_thread_regcache): Add process_stratum_target parameter and
11960 handle it. Switch inferior before calling target method.
11961 (get_thread_regcache): Pass target down.
11962 (get_thread_regcache_for_ptid): Pass target down.
11963 (registers_changed_ptid): Add process_stratum_target parameter and
11964 handle it.
11965 (registers_changed_thread, registers_changed): Pass target down.
11966 (test_get_thread_arch_aspace_regcache): New.
11967 (current_regcache_test): Define a couple local test_target_ops
11968 instances and use them for testing.
11969 (readwrite_regcache): Pass process_stratum_target parameter.
11970 (cooked_read_test, cooked_write_test): Pass mock_target down.
11971 * regcache.h (get_thread_regcache, get_thread_arch_regcache)
11972 (get_thread_arch_aspace_regcache): Add process_stratum_target
11973 parameter.
11974 (regcache::target): New method.
11975 (regcache::regcache, regcache::get_thread_arch_aspace_regcache)
11976 (regcache::registers_changed_ptid): Add process_stratum_target
11977 parameter.
11978 (regcache::m_target): New field.
11979 (registers_changed_ptid): Add process_stratum_target parameter.
11980 * remote.c (remote_state::supports_vCont_probed): New field.
11981 (remote_target::async_wait_fd): New method.
11982 (remote_unpush_and_throw): Add remote_target parameter.
11983 (get_current_remote_target): Adjust.
11984 (remote_target::remote_add_inferior): Push target.
11985 (remote_target::remote_add_thread)
11986 (remote_target::remote_notice_new_inferior)
11987 (get_remote_thread_info): Pass target down.
11988 (remote_target::update_thread_list): Skip threads of inferiors
11989 bound to other targets. (remote_target::close): Don't discard
11990 inferiors. (remote_target::add_current_inferior_and_thread)
11991 (remote_target::process_initial_stop_replies)
11992 (remote_target::start_remote)
11993 (remote_target::remote_serial_quit_handler): Pass down target.
11994 (remote_target::remote_unpush_target): New remote_target
11995 parameter. Unpush the target from all inferiors.
11996 (remote_target::remote_unpush_and_throw): New remote_target
11997 parameter. Pass it down.
11998 (remote_target::open_1): Check whether the current inferior has
11999 execution instead of checking whether any inferior is live. Pass
12000 target down.
12001 (remote_target::remote_detach_1): Pass down target. Use
12002 remote_unpush_target.
12003 (extended_remote_target::attach): Pass down target.
12004 (remote_target::remote_vcont_probe): Set supports_vCont_probed.
12005 (remote_target::append_resumption): Pass down target.
12006 (remote_target::append_pending_thread_resumptions)
12007 (remote_target::remote_resume_with_hc, remote_target::resume)
12008 (remote_target::commit_resume): Pass down target.
12009 (remote_target::remote_stop_ns): Check supports_vCont_probed.
12010 (remote_target::interrupt_query)
12011 (remote_target::remove_new_fork_children)
12012 (remote_target::check_pending_events_prevent_wildcard_vcont)
12013 (remote_target::remote_parse_stop_reply)
12014 (remote_target::process_stop_reply): Pass down target.
12015 (first_remote_resumed_thread): New remote_target parameter. Pass
12016 it down.
12017 (remote_target::wait_as): Pass down target.
12018 (unpush_and_perror): New remote_target parameter. Pass it down.
12019 (remote_target::readchar, remote_target::remote_serial_write)
12020 (remote_target::getpkt_or_notif_sane_1)
12021 (remote_target::kill_new_fork_children, remote_target::kill): Pass
12022 down target.
12023 (remote_target::mourn_inferior): Pass down target. Use
12024 remote_unpush_target.
12025 (remote_target::core_of_thread)
12026 (remote_target::remote_btrace_maybe_reopen): Pass down target.
12027 (remote_target::pid_to_exec_file)
12028 (remote_target::thread_handle_to_thread_info): Pass down target.
12029 (remote_target::async_wait_fd): New.
12030 * riscv-fbsd-tdep.c: Include "inferior.h".
12031 (riscv_fbsd_get_thread_local_address): Pass down target.
12032 * sol2-tdep.c (sol2_core_pid_to_str): Pass down target.
12033 * sol-thread.c (sol_thread_target::wait, ps_lgetregs, ps_lsetregs)
12034 (ps_lgetfpregs, ps_lsetfpregs, sol_update_thread_list_callback):
12035 Adjust.
12036 * solib-spu.c (spu_skip_standalone_loader): Pass down target.
12037 * solib-svr4.c (enable_break): Pass down target.
12038 * spu-multiarch.c (parse_spufs_run): Pass down target.
12039 * spu-tdep.c (spu2ppu_sniffer): Pass down target.
12040 * target-delegates.c: Regenerate.
12041 * target.c (g_target_stack): Delete.
12042 (current_top_target): Return the current inferior's top target.
12043 (target_has_execution_1): Refer to the passed-in inferior's top
12044 target.
12045 (target_supports_terminal_ours): Check whether the initial
12046 inferior was already created.
12047 (decref_target): New.
12048 (target_stack::push): Incref/decref the target.
12049 (push_target, push_target, unpush_target): Adjust.
12050 (target_stack::unpush): Defref target.
12051 (target_is_pushed): Return bool. Adjust to refer to the current
12052 inferior's target stack.
12053 (dispose_inferior): Delete, and inline parts ...
12054 (target_preopen): ... here. Only dispose of the current inferior.
12055 (target_detach): Hold strong target reference while detaching.
12056 Pass target down.
12057 (target_thread_name): Add assertion.
12058 (target_resume): Pass down target.
12059 (target_ops::beneath, find_target_at): Adjust to refer to the
12060 current inferior's target stack.
12061 (get_dummy_target): New.
12062 (target_pass_ctrlc): Pass the Ctrl-C to the first inferior that
12063 has a thread running.
12064 (initialize_targets): Rename to ...
12065 (_initialize_target): ... this.
12066 * target.h: Include "gdbsupport/refcounted-object.h".
12067 (struct target_ops): Inherit refcounted_object.
12068 (target_ops::shortname, target_ops::longname): Make const.
12069 (target_ops::async_wait_fd): New method.
12070 (decref_target): Declare.
12071 (struct target_ops_ref_policy): New.
12072 (target_ops_ref): New typedef.
12073 (get_dummy_target): Declare function.
12074 (target_is_pushed): Return bool.
12075 * thread-iter.c (all_matching_threads_iterator::m_inf_matches)
12076 (all_matching_threads_iterator::all_matching_threads_iterator):
12077 Handle filter target.
12078 * thread-iter.h (struct all_matching_threads_iterator, struct
12079 all_matching_threads_range, class all_non_exited_threads_range):
12080 Filter by target too. Remove explicit.
12081 * thread.c (threads_executing): Delete.
12082 (inferior_thread): Pass down current inferior.
12083 (clear_thread_inferior_resources): Pass down thread pointer
12084 instead of ptid_t.
12085 (add_thread_silent, add_thread_with_info, add_thread): Add
12086 process_stratum_target parameter. Use it for thread and inferior
12087 searches.
12088 (is_current_thread): New.
12089 (thread_info::deletable): Use it.
12090 (find_thread_ptid, thread_count, in_thread_list)
12091 (thread_change_ptid, set_resumed, set_running): New
12092 process_stratum_target parameter. Pass it down.
12093 (set_executing): New process_stratum_target parameter. Pass it
12094 down. Adjust reference to 'threads_executing'.
12095 (threads_are_executing): New process_stratum_target parameter.
12096 Adjust reference to 'threads_executing'.
12097 (set_stop_requested, finish_thread_state): New
12098 process_stratum_target parameter. Pass it down.
12099 (switch_to_thread): Also match inferior.
12100 (switch_to_thread): New process_stratum_target parameter. Pass it
12101 down.
12102 (update_threads_executing): Reimplement.
12103 * top.c (quit_force): Pop targets from all inferior.
12104 (gdb_init): Don't call initialize_targets.
12105 * windows-nat.c (windows_nat_target) <get_windows_debug_event>:
12106 Declare.
12107 (windows_add_thread, windows_delete_thread): Adjust.
12108 (get_windows_debug_event): Rename to ...
12109 (windows_nat_target::get_windows_debug_event): ... this. Adjust.
12110 * tracefile-tfile.c (tfile_target_open): Pass down target.
12111 * gdbsupport/common-gdbthread.h (struct process_stratum_target):
12112 Forward declare.
12113 (switch_to_thread): Add process_stratum_target parameter.
12114 * mi/mi-interp.c (mi_on_resume_1): Add process_stratum_target
12115 parameter. Use it.
12116 (mi_on_resume): Pass target down.
12117 * nat/fork-inferior.c (startup_inferior): Add
12118 process_stratum_target parameter. Pass it down.
12119 * nat/fork-inferior.h (startup_inferior): Add
12120 process_stratum_target parameter.
12121 * python/py-threadevent.c (py_get_event_thread): Pass target down.
12122
75c6c844
PA
121232020-01-10 Pedro Alves <palves@redhat.com>
12124
12125 * remote.c (remote_target::start_remote): Don't set inferior_ptid
12126 directly. Instead find the first thread in the thread list and
12127 use switch_to_thread.
12128
78f2c40a
PA
121292020-01-10 Pedro Alves <palves@redhat.com>
12130
12131 * remote.c (remote_target::remote_add_inferior): Don't bind a
12132 process to the current inferior if the current inferior is already
12133 bound to a process.
12134
e7af6c70
TBA
121352020-01-10 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
12136 Pedro Alves <palves@redhat.com>
12137
12138 * remote.c (remote_target::remote_parse_stop_reply) <W/X packets>:
12139 If no process is specified, return null_ptid instead of
12140 inferior_ptid.
12141 (remote_target::wait_as): Handle TARGET_WAITKIND_EXITED /
12142 TARGET_WAITKIND_SIGNALLED with no pid.
12143
31ba933e
PA
121442020-01-10 Pedro Alves <palves@redhat.com>
12145
12146 * remote.c (first_remote_resumed_thread): New.
12147 (remote_target::wait_as): Use it as default event_ptid instead of
12148 inferior_ptid.
12149
735fc2ca
PA
121502020-01-10 Pedro Alves <palves@redhat.com>
12151
12152 * infrun.c (handle_no_resumed): Use all_non_exited_inferiors.
12153
c17e02e1
PA
121542020-01-10 Pedro Alves <palves@redhat.com>
12155
12156 * tracefile-tfile.c (tfile_target::close): Assert that trace_fd is
12157 not -1.
12158
ab1ddbcf
PA
121592020-01-10 Pedro Alves <palves@redhat.com>
12160
12161 * break-catch-sig.c (signal_catchpoint_print_it): Don't pass a
12162 ptid to get_last_target_status.
12163 * break-catch-syscall.c (print_it_catch_syscall): Don't pass a
12164 ptid to get_last_target_status.
12165 * infcmd.c (continue_command): Don't pass a target_waitstatus to
12166 get_last_target_status.
12167 (info_program_command): Don't pass a target_waitstatus to
12168 get_last_target_status.
12169 * infrun.c (init_wait_for_inferior): Use
12170 nullify_last_target_wait_ptid.
12171 (get_last_target_status): Handle nullptr arguments.
12172 (nullify_last_target_wait_ptid): Clear target_last_waitstatus.
12173 (print_stop_event): Don't pass a ptid to get_last_target_status.
12174 (normal_stop): Don't pass a ptid to get_last_target_status.
12175 * infrun.h (get_last_target_status, set_last_target_status): Move
12176 comments here and update.
12177 (nullify_last_target_wait_ptid): Declare.
12178 * linux-fork.c (fork_load_infrun_state): Remove local extern
12179 declaration of nullify_last_target_wait_ptid.
12180 * linux-nat.c (get_detach_signal): Don't pass a target_waitstatus
12181 to get_last_target_status.
12182
f3f8ece4
PA
121832020-01-10 Pedro Alves <palves@redhat.com>
12184
12185 * gdbthread.h (scoped_restore_current_thread)
12186 <dont_restore, restore, m_dont_restore>: Declare.
12187 * thread.c (thread_alive): Add assertion. Return bool.
12188 (switch_to_thread_if_alive): New.
12189 (prune_threads): Switch inferior/thread.
12190 (print_thread_info_1): Switch thread before calling target methods.
12191 (scoped_restore_current_thread::restore): New, factored out from
12192 ...
12193 (scoped_restore_current_thread::~scoped_restore_current_thread):
12194 ... this.
12195 (scoped_restore_current_thread::scoped_restore_current_thread):
12196 Add assertion.
12197 (thread_apply_all_command, thread_select): Use
12198 switch_to_thread_if_alive.
12199 * infrun.c (proceed, restart_threads, handle_signal_stop)
12200 (switch_back_to_stepped_thread): Switch current thread before
12201 calling target methods.
12202
db2d40f7
PA
122032020-01-10 Pedro Alves <palves@redhat.com>
12204
12205 * inferior.c (switch_to_inferior_no_thread): New function,
12206 factored out from ...
12207 (inferior_command): ... here.
12208 * inferior.h (switch_to_inferior_no_thread): Declare.
12209 * mi/mi-main.c (run_one_inferior): Use
12210 switch_to_inferior_no_thread.
12211
bd420a2d
PA
122122020-01-10 Pedro Alves <palves@redhat.com>
12213
12214 * infcmd.c (kill_command): Remove dead code.
12215
ddf5db90
PA
122162020-01-10 Pedro Alves <palves@redhat.com>
12217
12218 * remote.c (remote_target::mourn_inferior): No longer check
12219 whether the target is running.
12220
5018ce90
PA
122212020-01-10 Pedro Alves <palves@redhat.com>
12222
12223 * corelow.c (core_target::has_execution): Change parameter type to
12224 inferior pointer.
12225 * inferior.c (number_of_live_inferiors): Use
12226 inferior::has_execution instead of target_has_execution_1.
12227 * inferior.h (inferior::has_execution): New.
12228 * linux-thread-db.c (thread_db_target::update_thread_list): Use
12229 inferior::has_execution instead of target_has_execution_1.
12230 * process-stratum-target.c
12231 (process_stratum_target::has_execution): Change parameter type to
12232 inferior pointer. Check the inferior's PID instead of
12233 inferior_ptid.
12234 * process-stratum-target.h
12235 (process_stratum_target::has_execution): Change parameter type to
12236 inferior pointer.
12237 * record-full.c (record_full_core_target::has_execution): Change
12238 parameter type to inferior pointer.
12239 * target.c (target_has_execution_1): Change parameter type to
12240 inferior pointer.
12241 (target_has_execution_current): Adjust.
12242 * target.h (target_ops::has_execution): Change parameter type to
12243 inferior pointer.
12244 (target_has_execution_1): Change parameter type to inferior
12245 pointer. Change return type to bool.
12246 * tracefile.h (tracefile_target::has_execution): Change parameter
12247 type to inferior pointer.
12248
74375d18
PA
122492020-01-10 Pedro Alves <palves@redhat.com>
12250
12251 * exceptions.c (print_flush): Remove current_top_target() check.
12252
acdf84a6
PA
122532020-01-10 Pedro Alves <palves@redhat.com>
12254
12255 * remote.c (show_remote_exec_file): Show the current inferior's
12256 exec-file instead of the command variable's value.
12257
ec506636
PA
122582020-01-10 Pedro Alves <palves@redhat.com>
12259
12260 * record-full.c (record_full_resume_ptid): New global.
12261 (record_full_target::resume): Set it.
12262 (record_full_wait_1): Use record_full_resume_ptid instead of
12263 inferior_ptid.
12264
873657b9
PA
122652020-01-10 Pedro Alves <palves@redhat.com>
12266
12267 * gdbthread.h (scoped_restore_current_thread)
12268 <dont_restore, restore, m_dont_restore>: Declare.
12269 * thread.c (thread_alive): Add assertion. Return bool.
12270 (switch_to_thread_if_alive): New.
12271 (prune_threads): Switch inferior/thread.
12272 (print_thread_info_1): Switch thread before calling target methods.
12273 (scoped_restore_current_thread::restore): New, factored out from
12274 ...
12275 (scoped_restore_current_thread::~scoped_restore_current_thread):
12276 ... this.
12277 (scoped_restore_current_thread::scoped_restore_current_thread):
12278 Add assertion.
12279 (thread_apply_all_command, thread_select): Use
12280 switch_to_thread_if_alive.
12281
7f0ae84c
GB
122822020-01-10 George Barrett <bob@bob131.so>
12283
12284 * stap-probe.c (stap_modify_semaphore): Don't check for null
12285 semaphores.
12286 (stap_probe::set_semaphore, stap_probe::clear_semaphore): Check
12287 for null semaphores.
12288
f5a7c406
AB
122892020-01-09 Andrew Burgess <andrew.burgess@embecosm.com>
12290
12291 * tui/tui-source.c (tui_source_window::do_scroll_vertical): Update
12292 all source windows, and maintain horizontal scroll status while
12293 doing so.
12294
9ae6bf64
TT
122952020-01-09 Tom Tromey <tom@tromey.com>
12296
12297 PR tui/18932:
12298 * tui/tui-source.c (tui_source_window::do_scroll_vertical): Call
12299 update_source_window, not print_source_lines.
12300
b2efe70c
AB
123012020-01-09 Andrew Burgess <andrew.burgess@embecosm.com>
12302
12303 * tui/tui.c (tui_enable): Register tui hooks after calling
12304 tui_display_main.
12305
5f23a082
CB
123062020-01-09 Christian Biesinger <cbiesinger@google.com>
12307
12308 * gdbsupport/common-defs.h: Don't define _FORTIFY_SOURCE on MinGW.
12309
3061113b
SM
123102020-01-08 Simon Marchi <simon.marchi@efficios.com>
12311
12312 * thread.c (print_thread_info_1): Fix indentation.
12313
57d75002
CB
123142020-01-09 Christian Biesinger <cbiesinger@google.com>
12315
12316 * symtab.c (general_symbol_info::compute_and_set_names): Move the
12317 unique_xmalloc_ptr outside the if to always free the demangled name.
12318
6a053cb1
TT
123192020-01-08 Tom Tromey <tromey@adacore.com>
12320
12321 * xcoffread.c (enter_line_range, read_xcoff_symtab)
12322 (process_xcoff_symbol, xcoff_symfile_offsets): Update.
12323 * symtab.h (MSYMBOL_VALUE_ADDRESS): Update.
12324 (struct section_offsets, ANOFFSET, SIZEOF_N_SECTION_OFFSETS):
12325 Remove.
12326 (section_offsets): New typedef.
12327 * symtab.c (fixup_section, get_msymbol_address): Update.
12328 * symmisc.c (dump_msymbols): Update.
12329 * symfile.h (relative_addr_info_to_section_offsets)
12330 (symfile_map_offsets_to_segments): Update.
12331 * symfile.c (build_section_addr_info_from_objfile)
12332 (init_objfile_sect_indices): Update.
12333 (struct place_section_arg): Change type of "offsets".
12334 (place_section): Update.
12335 (relative_addr_info_to_section_offsets): Change type of
12336 "section_offsets". Remove "num_sections" parameter.
12337 (default_symfile_offsets, syms_from_objfile_1)
12338 (set_objfile_default_section_offset): Update.
12339 (reread_symbols): No need to preserve section offsets by hand.
12340 (symfile_map_offsets_to_segments): Change type of "offsets".
12341 * stap-probe.c (relocate_address): Update.
12342 * stabsread.h (process_one_symbol): Update.
12343 * solib-target.c (struct lm_info_target) <offsets>: Change type.
12344 (solib_target_relocate_section_addresses): Update.
12345 * solib-svr4.c (enable_break, svr4_relocate_main_executable):
12346 Update.
12347 * solib-frv.c (frv_relocate_main_executable): Update.
12348 * solib-dsbt.c (dsbt_relocate_main_executable): Update.
12349 * solib-aix.c (solib_aix_get_section_offsets): Change return
12350 type.
12351 (solib_aix_solib_create_inferior_hook): Update.
12352 * remote.c (remote_target::get_offsets): Update.
12353 * psymtab.c (find_pc_sect_psymtab): Update.
12354 * psympriv.h (struct partial_symbol) <address, text_low,
12355 text_high>: Update.
12356 * objfiles.h (obj_section_offset): Update.
12357 (struct objfile) <section_offsets>: Change type.
12358 <num_sections>: Remove.
12359 (objfile_relocate): Update.
12360 * objfiles.c (entry_point_address_query): Update
12361 (relocate_one_symbol): Change type of "section_offsets".
12362 (objfile_relocate1, objfile_relocate1): Change type of
12363 "new_offsets".
12364 (objfile_rebase1): Update.
12365 * mipsread.c (mipscoff_symfile_read): Update.
12366 (read_alphacoff_dynamic_symtab): Remove "section_offsets"
12367 parameter.
12368 * mdebugread.c (parse_symbol): Change type of "section_offsets".
12369 (parse_external, psymtab_to_symtab_1): Update.
12370 * machoread.c (macho_symfile_offsets): Update.
12371 * ia64-tdep.c (ia64_find_unwind_table): Update.
12372 * hppa-tdep.c (read_unwind_info): Update.
12373 * hppa-bsd-tdep.c (hppabsd_find_global_pointer): Update.
12374 * dwarf2read.c (create_addrmap_from_index)
12375 (create_addrmap_from_aranges, dw2_find_pc_sect_compunit_symtab)
12376 (process_psymtab_comp_unit_reader, add_partial_symbol)
12377 (add_partial_subprogram, process_full_comp_unit)
12378 (read_file_scope, read_func_scope, read_lexical_block_scope)
12379 (read_call_site_scope, dwarf2_rnglists_process)
12380 (dwarf2_ranges_process, dwarf2_ranges_read)
12381 (dwarf_decode_lines_1, var_decode_location, new_symbol)
12382 (dwarf2_fetch_die_loc_sect_off, dwarf2_per_cu_text_offset):
12383 Update.
12384 * dwarf2-frame.c (execute_cfa_program, dwarf2_frame_find_fde):
12385 Update.
12386 * dtrace-probe.c (dtrace_probe::get_relocated_address): Update.
12387 * dbxread.c (read_dbx_symtab, read_ofile_symtab): Update.
12388 (process_one_symbol): Change type of "section_offsets".
12389 * ctfread.c (get_objfile_text_range): Update.
12390 * coffread.c (coff_symtab_read, enter_linenos)
12391 (process_coff_symbol): Update.
12392 * coff-pe-read.c (add_pe_forwarded_sym): Update.
12393 * amd64-windows-tdep.c (amd64_windows_find_unwind_info): Update.
12394
456e800a
TT
123952020-01-08 Tom Tromey <tromey@adacore.com>
12396
12397 * dwarf2read.c (parse_macro_definition): Use std::string.
12398 (parse_macro_definition): Likewise.
12399
6dfa2fc2
TT
124002020-01-08 Tom Tromey <tromey@adacore.com>
12401
12402 * dwarf2read.c (abbrev_table_read_table): Use std::vector.
12403 (ATTR_ALLOC_CHUNK): Remove.
12404
421d1616
TT
124052020-01-08 Tom Tromey <tromey@adacore.com>
12406
12407 * dwarf2read.c (fixup_go_packaging): Use unique_xmalloc_ptr.
12408
43816ebc
TT
124092020-01-08 Tom Tromey <tromey@adacore.com>
12410
12411 * dwarf2read.c (add_partial_symbol): Use unique_xmalloc_ptr.
12412 (dwarf2_compute_name, open_dwo_file): Likewise.
12413 (process_enumeration_scope): Use std::vector.
12414 (guess_partial_die_structure_name): Use unique_xmalloc_ptr.
12415 (partial_die_info::fixup, dwarf2_start_subfile)
12416 (guess_full_die_structure_name, dwarf2_name): Likewise.
12417 (determine_prefix): Update.
12418 (guess_full_die_structure_name): Make return type const.
12419 (partial_die_full_name): Return unique_xmalloc_ptr.
12420 (DW_FIELD_ALLOC_CHUNK): Remove.
12421
4212d509
TT
124222020-01-07 Tom Tromey <tromey@adacore.com>
12423
12424 PR build/24937:
12425 * stap-probe.c (class stap_static_probe_ops): Add constructor.
12426
06a6207a
JT
124272020-01-02 Jon Turney <jon.turney@dronecode.org.uk>
12428
12429 * cli/cli-style.c: Set cli_styling to 'true' in the Cygwin build.
12430
153d79c4
AB
124312020-01-06 Andrew Burgess <andrew.burgess@embecosm.com>
12432
12433 * stack.c (print_frame_info): Move disassemble_next_line code
12434 inside source_print block.
12435
66182876
EZ
124362020-01-06 Eli Zaretskii <eliz@gnu.org>
12437
12438 * gdbsupport/gdb_wait.c: Include <signal.h> instead of
12439 gdb/signals.h, as we are now using native signal symbols.
12440
cbfa8581
SV
124412020-01-06 Shahab Vahedi <shahab@synopsys.com>
12442
12443 * tui/tui-disasm.c (tui_disasm_window::addr_is_displayed): Avoid
12444 overflow by an early check of content vs threshold.
aac66a4c 12445 * tui/tui-source.c (tui_source_window::line_is_displayed):
cbfa8581
SV
12446 Likewise.
12447
3f602821
EZ
124482020-01-06 Eli Zaretskii <eliz@gnu.org>
12449
12450 * NEWS: Mention the recent fix of $_exitsignal on MS-Windows.
12451
a08c904d
JT
124522020-01-02 Jon Turney <jon.turney@dronecode.org.uk>
12453
12454 * coff-pe-read.c (read_pe_exported_syms): Don't try to read the
12455 export table if no section contains it's RVA.
12456
89a65580
EZ
124572020-01-06 Eli Zaretskii <eliz@gnu.org>
12458
12459 * windows-tdep.c: Fix a typo in WINDOWS_SIGABRT.
12460
8b7fcda2
HD
124612020-01-06 Hannes Domani <ssbssa@yahoo.de>
12462
12463 * source.c (print_source_lines_base): Set last_line_listed.
12464
a61b4f69
SV
124652020-01-06 Shahab Vahedi <shahab@synopsys.com>
12466
12467 * tui/tui-disasm.c: Remove trailing spaces.
12468
559e7e50
EZ
124692020-01-06 Eli Zaretskii <eliz@gnu.org>
12470 Pedro Alves <palves@redhat.com>
12471
12472 * Makefile.in (COMMON_SFILES): Add gdbsupport/gdb_wait.c.
12473 * windows-tdep.c: New enumeration of WINDOWS_SIG* signals.
12474 (windows_gdb_signal_to_target): New function, uses the above
12475 enumeration to convert GDB internal signal codes to equivalent
12476 Windows codes.
12477 (windows_init_abi): Call set_gdbarch_gdb_signal_to_target.
12478 * windows-nat.c: Include "gdb_wait.h".
12479 (get_windows_debug_event): Extract the fatal exception from the
12480 exit status and convert to the equivalent Posix signal number.
12481 * cli/cli-cmds.c (exit_status_set_internal_vars): Account for the
12482 possibility that WTERMSIG returns GDB_SIGNAL_UNKNOWN.
12483 * gdbsupport/gdb_wait.c: New file, implements
12484 windows_status_to_termsig.
12485 * gdbsupport/gdb_wait.h (WIFEXITED, WIFSIGNALED, WEXITSTATUS)
12486 (WTERMSIG) [__MINGW32__]: Separate definitions for MinGW.
12487
f2302a34
AB
124882020-01-05 Andrew Burgess <andrew.burgess@embecosm.com>
12489
12490 * tui/tui-layout.c (tui_add_win_to_layout): Use tui_set_layout not
12491 show_layout.
12492
6a5206eb
LM
124932020-01-05 Luis Machado <luis.machado@linaro.org>
12494
12495 * aarch64-linux-nat.c
12496 (aarch64_linux_nat_target::thread_architecture): Use bfd_arch_aarch64
12497 and bfd_mach_aarch64.
12498
6ec1d75e
PW
124992020-01-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
12500
12501 * ui-file.c (stdio_file::can_emit_style_escape)
12502 (tee_file::can_emit_style_escape): Ensure style is used also on
12503 gdb_stderr when gdb_stderr is a tty supporting styling, similarly
12504 to gdb_stdout.
12505 * main.c (set_gdb_data_directory): Use file style to output the
12506 warning that the given pathname is not a directory.
12507 * top.c (show_history_filename, gdb_safe_append_history)
12508 (show_gdb_datadir): Use file style.
12509
44f81a76
HD
125102020-01-03 Hannes Domani <ssbssa@yahoo.de>
12511
12512 * solib-target.c (struct lm_info_target):
12513 Change offsets to be a unique_xmalloc_ptr.
12514 (solib_target_relocate_section_addresses): Update.
12515
25057eb0
HD
125162020-01-03 Hannes Domani <ssbssa@yahoo.de>
12517
12518 * windows-nat.c (windows_clear_solib): Free so_list linked list.
12519
6e2118f5
BE
125202020-01-03 Bernd Edlinger <bernd.edlinger@hotmail.de>
12521
12522 * MAINTAINERS (Write After Approval): Add myself.
12523
8133c7dc
LM
125242020-01-02 Luis Machado <luis.machado@linaro.org>
12525
12526 * proc-service.c (get_ps_regcache): Remove reference to obsolete
12527 Cell BE architecture.
12528 * target.h (struct target_ops) <thread_architecture>: Likewise.
12529
48189bec
HD
125302020-01-01 Hannes Domani <ssbssa@yahoo.de>
12531
12532 * Makefile.in: Use INSTALL_PROGRAM_ENV.
12533
ead1063b
HD
125342020-01-01 Hannes Domani <ssbssa@yahoo.de>
12535
12536 * MAINTAINERS (Write After Approval): Add myself.
12537
e5d78223
JB
125382020-01-01 Joel Brobecker <brobecker@adacore.com>
12539
12540 * gdbarch.sh: Update copyright year range of generated files.
12541
b811d2c2
JB
125422020-01-01 Joel Brobecker <brobecker@adacore.com>
12543
12544 Update copyright year range in all GDB files.
12545
5f4def5c
JB
125462020-01-01 Joel Brobecker <brobecker@adacore.com>
12547
12548 * copyright.py: Convert to Python 3.
12549
51fd4002
JB
125502020-01-01 Joel Brobecker <brobecker@adacore.com>
12551
12552 * copyright.py: Adapt after move of gnulib directory from gdb
12553 directory to toplevel directory.
12554
5fb651f2
JB
125552020-01-01 Joel Brobecker <brobecker@adacore.com>
12556
12557 * copyright.py (main): Exit if run from the wrong directory.
12558
5dd8bf88
JB
125592020-01-01 Joel Brobecker <brobecker@adacore.com>
12560
12561 * top.c (print_gdb_version): Change copyright year to 2020.
12562
9f71dacb 125632020-01-01 Joel Brobecker <brobecker@adacore.com>
3d34df0a 12564
9f71dacb 12565 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2019.
3d34df0a 12566
9f71dacb 12567For older changes see ChangeLog-2019.
c906108c
SS
12568\f
12569Local Variables:
12570mode: change-log
12571left-margin: 8
12572fill-column: 74
12573version-control: never
57da7796 12574coding: utf-8
c906108c 12575End: