Add handle_eintr to wrap EINTR handling in syscalls
[deliverable/binutils-gdb.git] / gdb / ChangeLog
CommitLineData
1b788fb6
TT
12020-09-09 Tom Tromey <tromey@adacore.com>
2
3 * ada-lang.c (remove_extra_symbols): Do not increment when
4 removing an element
5
03b0a45f
TT
62020-09-08 Tom Tromey <tromey@adacore.com>
7
8 * gdb_bfd.c (gdb_bfd_open): Call bfd_fopen when fstat fails.
9
3cae4447
TT
102020-09-08 Tom Tromey <tromey@adacore.com>
11
12 PR win32/25302:
13 * gdb_bfd.c (gdb_bfd_data): Add "st" parameter.
14 (gdb_bfd_init_data): New function.
15 (gdb_bfd_open, gdb_bfd_ref): Use gdb_bfd_init_data.
16
7f08fd51
TBA
172020-09-07 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
18
19 * infrun.c (fetch_inferior_event): Use
20 `switch_to_target_no_thread` to switch the target.
21
3e6ff933
TT
222020-09-06 Tom Tromey <tom@tromey.com>
23
24 * symfile.h (dwarf2_free_objfile): Don't declare.
25
e56798df
AKS
262020-09-03 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
27
28 * gdb/i386-tdep.c (i386_floatformat_for_type): Added conditions
29 to match 16 byte real/complex type generated by Flang compiler.
30
8f5c6526
TV
312020-09-03 Tom de Vries <tdevries@suse.de>
32
33 PR breakpoint/26546
34 * dwarf2/read.c (new_symbol): Tag label symbol without DW_AT_low_pc as
35 LOC_OPTIMIZED_OUT instead of LOC_LABEL.
36
c5065df0
SM
372020-09-02 Simon Marchi <simon.marchi@polymtl.ca>
38
39 * maint.c (index_digits): New function.
40 (struct maint_print_section_data): Remove.
41 (print_bfd_section_info): Remove print_data parameter, add arg
42 and index_digits.
43 (print_objfile_section_info): Likewise.
44 (print_bfd_section_info_maybe_relocated): Likewise (plus
45 objfile).
46 (maintenance_info_sections): Adjust calls.
47
02c6f3f1
TT
482020-09-02 Tom Tromey <tromey@adacore.com>
49
50 * ada-varobj.c (ada_varobj_get_ptr_number_of_children): Return 0
51 for null pointers.
52 (ada_varobj_adjust_for_child_access): Special-case null pointers.
53
ef5e5b0b
SM
542020-09-01 Simon Marchi <simon.marchi@polymtl.ca>
55
56 * bcache.h (struct bcache) <insert>: Change type of `added` to
57 pointer to bool.
58 * bcache.c (bcache::insert): Likewise.
59 * gdbtypes.c (check_types_worklist): Adjust.
60 * psymtab.c (add_psymbol_to_bcache): Adjust.
61
973695d6
KB
622020-08-31 Kevin Buettner <kevinb@redhat.com>
63
64 * corelow.c (unordered_set): Include.
65 (class core_target): Add field 'm_core_unavailable_mappings'.
66 (core_target::build_file_mappings): Print only one warning
67 per inaccessible file. Add unavailable/broken mappings
68 to m_core_unavailable_mappings.
69 (core_target::xfer_partial): Call...
70 (core_target::xfer_memory_via_mappings): New method.
71
264fc0e2
SM
722020-08-31 Simon Marchi <simon.marchi@polymtl.ca>
73
74 * dwarf2/read.c (struct field_info) <non_public_fields>: Change
75 type to bool.
76
2de01bdb
SM
772020-08-31 Simon Marchi <simon.marchi@polymtl.ca>
78
79 * dwarf2/read.c (struct field_info): Fix indentation.
80
f3bd50f1
SM
812020-08-31 Simon Marchi <simon.marchi@efficios.com>
82
83 * frame-unwind.h (frame_prev_register_ftype): Fix adjective
84 ordering in comment.
85 * frame.c (frame_id_eq): Fix indentation.
86
22b9b4b0
SL
872020-08-31 Scott Linder <scott@scottlinder.com>
88 Simon Marchi <simon.marchi@efficios.com>
89
90 * inline-frame.c (inline_frame_this_id): Remove assert that prevents
91 inline frame ids in outer frame.
92
84154d16
SM
932020-08-31 Simon Marchi <simon.marchi@efficios.com>
94
95 * frame.h (enum frame_id_stack_status) <FID_STACK_OUTER>: New.
96 * frame.c (fprint_frame_id): Handle FID_STACK_OUTER.
97 (outer_frame_id): Use FID_STACK_OUTER instead of
98 FID_STACK_INVALID.
99 (frame_id_p): Don't check for outer_frame_id.
100
8efaf6b3
SM
1012020-08-31 Simon Marchi <simon.marchi@efficios.com>
102
103 * frame-unwind.c (frame_unwind_got_optimized): Don't set
104 regnum/frame in value. Call allocate_value_lazy.
105 * frame.c (frame_unwind_register_value): Use
106 val_print_not_saved.
107
fe1fe7ea
SM
1082020-08-31 Simon Marchi <simon.marchi@efficios.com>
109
110 * gdbtypes.h (NULL_TYPE): Remove, change all uses to nullptr.
111
f7c7700d
PA
1122020-08-29 Pedro Alves <pedro@palves.net>
113
114 * progspace.c (print_program_space): Use all_inferiors. Switch to
115 the inferior before calling target_pid_to_str.
116
e0814aae
TT
1172020-08-28 Tom Tromey <tom@tromey.com>
118
119 * xcoffread.c (xcoff_end_psymtab): Update comment.
120 * dbxread.c (dbx_end_psymtab): Update comment.
121
626d2320
TV
1222020-08-28 Tom de Vries <tdevries@suse.de>
123
124 PR breakpoint/26544
125 * breakpoint.c (parse_breakpoint_sals): Remove const from struct
126 event_location.
127 (create_breakpoint): Same.
128 (base_breakpoint_decode_location): Same.
129 (bkpt_create_sals_from_location): Same.
130 (bkpt_decode_location): Same.
131 (bkpt_probe_create_sals_from_location): Same.
132 (bkpt_probe_decode_location): Same.
133 (tracepoint_create_sals_from_location): Same.
134 (tracepoint_decode_location): Same.
135 (tracepoint_probe_decode_location): Same.
136 (strace_marker_create_sals_from_location): Same.
137 (strace_marker_decode_location): Same.
138 (create_sals_from_location_default): Same.
139 (decode_location_default): Same.
140 * breakpoint.h (struct breakpoint_ops): Same.
141 (create_breakpoint): Same.
142 * linespec.h (decode_line_full): Same.
143 * linespec.c (decode_line_full): Same. Throw error if
144 result.size () == 0.
145
df631783
PA
1462020-08-27 Pedro Alves <pedro@palves.net>
147
148 PR gdb/26524
149 * breakpoint.c (until_break_fsm) <location_breakpoint,
150 caller_breakpoint>: Delete fields.
151 <breakpoints>: New field.
152 <until_break_fsm>: Adjust to save a breakpoint vector instead of
153 two individual breakpoints.
154 (until_break_fsm::should_stop): Loop over breakpoints in the
155 breakpoint vector.
156 (until_break_fsm::clean_up): Adjust to clear the breakpoints
157 vector.
158 (until_break_command): Handle location expanding into multiple
159 sals.
160
b2b38aa4
PA
1612020-08-27 Pedro Alves <pedro@palves.net>
162
163 PR gdb/26523
164 * inline-frame.c (stopped_by_user_bp_inline_frame): Also consider
165 bp_until breakpoints user-specified locations. Update intro
166 comment.
167
b886559f
SM
1682020-08-27 Simon Marchi <simon.marchi@polymtl.ca>
169
170 * gdb_bfd.h (gdb_bfd_section_iterator, gdb_bfd_section_range,
171 gdb_bfd_sections): New.
172 * maint.c (print_bfd_section_info): Change param type to
173 maint_print_section_data.
174 (print_objfile_section_info): Likewise.
175 (print_bfd_section_info_maybe_relocated): Likewise.
176 (maintenance_info_sections): Use gdb_bfd_sections.
177
4c6e63bf
SV
1782020-08-25 Shahab Vahedi <shahab@synopsys.com>
179
180 * MAINTAINERS: Add ARC target and maintainer.
181
8d7f0635
AK
1822020-08-25 Anton Kolesov <anton.kolesov@synopsys.com>
183
184 * configure.tgt: ARC support for GNU/Linux.
185 * Makefile.in (ALL_TARGET_OBJS): Likewise.
186 * arc-linux-tdep.c: New file.
187 * arc-tdep.h (ARC_STATUS32_L_MASK, ARC_STATUS32_DE_MASK): Declare.
188 * arc-tdep.c (arc_write_pc): Use it.
189
fdd8731b
SV
1902020-08-25 Shahab Vahedi <shahab@synopsys.com>
191
192 * arc-tdep.c (arc_check_for_hardware_loop): New.
193 * arc-tdep.h (gdbarch_tdep): New field has_hw_loops.
194
22459524
SV
1952020-08-25 Shahab Vahedi <shahab@synopsys.com>
196
197 * arc-tdep.h: Include "gdbarch.h".
198
995d3a19
SV
1992020-08-25 Shahab Vahedi <shahab@synopsys.com>
200
201 * arch/arc.h
202 (arc_gdbarch_features): New class to stir the selection of target XML.
203 (arc_create_target_description): Use FEATURES to choose XML target.
204 (arc_lookup_target_description): Use arc_create_target_description
205 to create _new_ target descriptions or return the already created
206 ones if the FEATURES is the same.
207 * arch/arc.c: Implementation of prototypes described above.
208 * gdb/arc-tdep.h (arc_regnum enum): Add more registers.
209 (arc_gdbarch_features_init): Initialize the FEATURES struct.
210 * arc-tdep.c (*_feature_name): Make feature names consistent.
211 (arc_register_feature): A new struct to hold information about
212 registers of a particular target/feature.
213 (arc_check_tdesc_feature): Check if XML provides registers in
214 compliance with ARC_REGISTER_FEATURE structs.
215 (arc_update_acc_reg_names): Add aliases for r58 and r59.
216 (determine_*_reg_feature_set): Which feature name to look for.
217 (arc_gdbarch_features_init): Given MACH and ABFD, initialize FEATURES.
218 (mach_type_to_arc_isa): Convert from a set of binutils machine types
219 to expected ISA enums to be used in arc_gdbarch_features structs.
220 * features/Makefile (FEATURE_XMLFILES): Add new files.
221 * gdb/features/arc/v1-aux.c: New file.
222 * gdb/features/arc/v1-aux.xml: Likewise.
223 * gdb/features/arc/v1-core.c: Likewise.
224 * gdb/features/arc/v1-core.xml: Likewise.
225 * gdb/features/arc/v2-aux.c: Likewise.
226 * gdb/features/arc/v2-aux.xml: Likewise.
227 * gdb/features/arc/v2-core.c: Likewise.
228 * gdb/features/arc/v2-core.xml: Likewise.
229 * NEWS (Changes since GDB 9): Announce obsolence of old feature names.
230
3945d2d7
GM
2312020-08-25 Gaius Mulley <gaiusmod2@gmail.com>
232 Andrew Burgess <andrew.burgess@embecosm.com>
233
234 PR m2/26372
fc5d6901 235 * m2-exp.y (exp): Improve comment for non_empty_arglist case, add
3945d2d7
GM
236 an assert. Remove single element array indexing pattern as the
237 MULTI_SUBSCRIPT support will handle this case too.
238
2677f2d3
SM
2392020-08-24 Simon Marchi <simon.marchi@polymtl.ca>
240
241 * value.h (valprint_check_validity): Move declaration from
242 here...
243 * valprint.h (valprint_check_validity): ... to here.
244
c426fddb
SM
2452020-08-24 Simon Marchi <simon.marchi@efficios.com>
246
247 * debug.h: New file.
248 * debug.c (debug_prefixed_vprintf): New function.
249 * infrun.c (infrun_debug_printf_1): Use debug_prefixed_vprintf.
250 * linux-nat.c (linux_nat_debug_printf_1): Likewise.
251
1eb8556f
SM
2522020-08-24 Simon Marchi <simon.marchi@efficios.com>
253
254 * infrun.h (infrun_debug_printf_1): New function declaration.
255 (infrun_debug_printf): New macro.
256 * infrun.c (infrun_debug_printf_1): Use infrun_debug_printf
257 throughout.
258 (infrun_debug_printf): New function.
259 * breakpoint.c (should_be_inserted): Use infrun_debug_printf.
260 (handle_jit_event): Likewise.
261
b8fff44e
MW
2622020-08-21 Mark Wielaard <mark@klomp.org>
263
264 * ada-lex.l: Extend register warnings diagnostics comment for g++.
265
d19c3068
SM
2662020-08-22 Simon Marchi <simon.marchi@efficios.com>
267
268 * frame.c (enum class frame_id_status): New.
269 (struct frame_info) <this_id::p>: Change type to frame_id_status.
270 (fprintf_frame): Update.
271 (compute_frame_id): Set frame id status to "computing" on entry.
272 Set it back to "not_computed" on failure and to "computed" on
273 success.
274 (get_frame_id): Assert the frame id is not being computed.
275 (create_sentinel_frame): Use frame_id_status::COMPUTED.
276 (create_new_frame): Likewise.
277 (frame_cleanup_after_sniffer): Update assert.
278
b70e516e
SM
2792020-08-20 Simon Marchi <simon.marchi@polymtl.ca>
280
281 * regcache.c (pid_ptid_regcache_map): New type.
282 (target_ptid_regcache_map): Remove.
283 (target_pid_ptid_regcache_map): New type.
284 (regcaches): Change type to target_pid_ptid_regcache_map.
285 (get_thread_arch_aspace_regcache): Update.
286 (regcache_thread_ptid_changed): Update, handle pid-like ptid
287 case.
288 (regcaches_size): Update.
289 (regcache_count): Update.
290 (registers_changed_ptid_target_pid_test): New.
291 (_initialize_regcache): Register new test.
292
cdd9148a
SM
2932020-08-20 Simon Marchi <simon.marchi@polymtl.ca>
294
295 * regcache.c (regcache_count): New.
296 (struct regcache_test_data): New.
297 (regcache_test_data_up): New.
298 (populate_regcaches_for_test): New.
299 (regcaches_test): Remove.
300 (get_thread_arch_aspace_regcache_test): New.
301 (registers_changed_ptid_all_test): New.
302 (registers_changed_ptid_target_test): New.
303 (registers_changed_ptid_target_ptid_test): New.
304 (regcache_thread_ptid_changed): Remove regcache_count lambda.
305 (_initialize_regcache): Register new tests.
306
dd125343
SM
3072020-08-20 Simon Marchi <simon.marchi@polymtl.ca>
308
309 * regcache.c (test_get_thread_arch_aspace_regcache): Rename to...
310 (get_thread_arch_aspace_regcache_and_check): ... this. Remove
311 gdbarch and aspace parameter. Use current inferior's aspace.
312 Validate regcache's arch value.
313 (regcaches_test): Update.
314
3ee93972
SM
3152020-08-20 Simon Marchi <simon.marchi@polymtl.ca>
316
317 * regcache.c (regcaches_test): Call registers_changed.
318
33bf4c5c
TBA
3192020-08-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
320
321 * infrun.c (process_event_stop_test): Fix typo "breapoint".
322
c2fd7fae
AKS
3232020-08-19 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
324
325 * amd64-tdep.c (amd64_skip_prologue): Using symbol table
326 to find the end of prologue for flang compiled binaries.
327 * arm-tdep.c (arm_skip_prologue): Likewise.
328 * i386-tdep.c (i386_skip_prologue): Likewise.
329 * producer.c (producer_is_llvm): New function.
330 (producer_parsing_tests): Added new tests for clang/flang.
331 * producer.h (producer_is_llvm): New declaration.
332
9327494e
SM
3332020-08-18 Simon Marchi <simon.marchi@efficios.com>
334
335 * linux-nat.c (linux_nat_debug_printf): New function.
336 (linux_nat_debug_printf_1): New macro. Use throughout the file.
337
d138725a
AM
3382020-08-18 Aaron Merey <amerey@redhat.com>
339
340 * Makefile.in (DEBUGINFOD_CFLAGS, DEBUGINFOD_LIBS): New variables.
341 (INTERNAL_CFLAGS_BASE): Add DEBUGINFOD_CFLAGS.
342 (CLIBS): Add DEBUGINFOD_LIBS.
343
f9b11e6b
ST
3442020-08-17 Sergei Trofimovich <siarheit@google.com>
345
346 * ia64-linux-nat.c: Include "gdbarch.h" to declare used
347 'gdbarch_num_regs'.
348
3ae7ab99
TT
3492020-08-17 Tom Tromey <tromey@adacore.com>
350
351 * ada-varobj.c (ada_varobj_decode_var): Handle case where
352 ada_get_decoded_value returns NULL.
353
b017825f
TT
3542020-08-17 Tom Tromey <tromey@adacore.com>
355
356 * python/py-inferior.c (infpy_search_memory): Use
357 gdb_py_object_from_ulongest.
358 * python/py-infevents.c (create_inferior_call_event_object)
359 (create_memory_changed_event_object): Use
360 gdb_py_object_from_ulongest.
361 * python/py-linetable.c (ltpy_entry_get_pc): Use
362 gdb_py_object_from_ulongest.
363
7635cf79
SM
3642020-08-17 Simon Marchi <simon.marchi@polymtl.ca>
365
366 * loc.c (class symbol_needs_eval_context): Fix indentation.
367
f54be24b
SM
3682020-08-17 Simon Marchi <simon.marchi@polymtl.ca>
369
370 * dwarf2/loc.c (dwarf2_loc_desc_get_symbol_read_needs): Use
371 bool.
372
53d5a2a5
TV
3732020-08-17 Tom de Vries <tdevries@suse.de>
374
375 PR gdb/26393
376 * gdbtypes.c (dump_dynamic_prop): New function.
377 (recursive_dump_type): Use dump_dynamic_prop for TYPE_CODE_RANGE.
378
547ce8f0
TV
3792020-08-15 Tom de Vries <tdevries@suse.de>
380
381 PR backtrace/26390
382 * stack.c (print_frame_args): Temporarily set the selected
383 frame to FRAME while printing the frame's arguments.
384
6ea815e7
PFC
3852020-08-14 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
386
387 PR breakpoints/26385
388 * ppc-linux-nat.c (ppc_linux_nat_target::low_prepare_to_resume):
389 Always clear watchpoint with PTRACE_SET_DEBUGREG.
390
6e562fa3
PFC
3912020-08-14 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
392
393 * ppc-linux-nat.c (ppc_linux_dreg_interface::detect)
394 (ppc_linux_nat_target::low_prepare_to_resume): Use ptrace () < 0
395 and >= to check return value instead of == -1 and != -1.
396
d369b608
SM
3972020-08-14 Simon Marchi <simon.marchi@polymtl.ca>
398
399 * utils.h (class gdb_argv) <as_array_view>: New method.
400 * utils.c (gdb_argv_as_array_view_test): New.
401 (_initialize_utils): Register selftest.
402 * maint.c (maintenance_selftest): Use the new method.
403
b31488a3
KR
4042020-08-13 Kamil Rytarowski <n54@gmx.com>
405
406 * target.h (supports_dumpcore, dumpcore): New
407 function declarations.
408 * target.c (supports_dumpcore, dumpcore): New
409 functions.
410 * target-delegates.c: Rebuild.
411 * gcore.c (gcore_command): Use target_supports_dumpcore ()
412 and target_dumpcore ().
413
002a3166
AM
4142020-08-13 Aaron Merey <amerey@redhat.com>
415
416 * debuginfod-support.c: Replace global variables with user_data.
417
ece5bc8a
SM
4182020-08-13 Simon Marchi <simon.marchi@polymtl.ca>
419
420 * maint.c (maintenance_selftest): Split args and pass array_view
421 to run_tests.
422
6d8a0a5e
LM
4232020-08-12 Luis Machado <luis.machado@linaro.org>
424
425 * value.c (check_type_length_before_alloc): Use ULONGEST to store a
426 type's length.
427 Use %s and pulongest to print the length.
428
7cf663a9
PA
4292020-08-12 Pedro Alves <palves@redhat.com>
430
431 * NEWS: Move "Multi-target debugging support" item to the
432 "Changes since GDB 9" section.
433
27c7b875
PA
4342020-08-12 Pedro Alves <palves@redhat.com>
435
436 PR gdb/26336
437 * progspace.c (program_space::remove_objfile): Invalidate the
438 frame cache.
439
1796a2a1
TV
4402020-08-11 Tom de Vries <tdevries@suse.de>
441
442 * MAINTAINERS: Mark ms1 as deleted.
443
f8e3fe0d
LM
4442020-08-10 Luis Machado <luis.machado@linaro.org>
445
446 PR gdb/26310
447
448 * aarch64-tdep.c (aarch64_analyze_prologue): Track use of SP/FP and
449 act accordingly.
450 (aarch64_analyze_prologue_test): Add more unit tests to exercise
451 movz/str/stur/stp skipping behavior.
452
cc308722
LM
4532020-08-10 Luis Machado <luis.machado@linaro.org>
454
455 * nat/aarch64-sve-linux-sigcontext.h (SVE_PT_REGS_OFFSET): Use
456 struct user_sve_header instead of struct sve_context.
457
041d9819
SM
4582020-08-09 Simon Marchi <simon.marchi@polymtl.ca>
459
460 * read.h (dwarf2_fetch_die_loc_sect_off,
461 dwarf2_fetch_die_loc_cu_off): Replace function pointer +
462 `void *` parameter with function_view.
463 * read.c (dwarf2_fetch_die_loc_sect_off,
464 dwarf2_fetch_die_loc_cu_off): Likewise.
465 * loc.c (get_frame_pc_for_per_cu_dwarf_call): Remove.
466 (per_cu_dwarf_call): Adjust.
467 (get_frame_address_in_block_wrapper): Remove.
468 (indirect_synthetic_pointer): Adjust.
469 (get_ax_pc): Remove.
470 (dwarf2_compile_expr_to_ax): Adjust.
471
38f8aa06
TV
4722020-08-08 Tom de Vries <tdevries@suse.de>
473
474 PR build/26344
475 * arch/riscv.c (riscv_lookup_target_description): Use an explicit
476 constructor.
477 * regcache.c (get_thread_arch_aspace_regcache): Same.
478
a52b3ae2
TT
4792020-08-07 Tom Tromey <tromey@adacore.com>
480
481 * ravenscar-thread.c
482 (ravenscar_thread_target::set_base_thread_from_ravenscar_task):
483 New method.
484 (ravenscar_thread_target::wait): Check
485 runtime_initialized.
486 (ravenscar_thread_target::prepare_to_store)
487 (ravenscar_thread_target::stopped_by_sw_breakpoint)
488 (ravenscar_thread_target::stopped_by_hw_breakpoint)
489 (ravenscar_thread_target::stopped_by_watchpoint)
490 (ravenscar_thread_target::stopped_data_address)
491 (ravenscar_thread_target::core_of_thread): Use
492 scoped_restore_current_thread and
493 set_base_thread_from_ravenscar_task.
494
0e29517d
TT
4952020-08-07 Tom Tromey <tromey@adacore.com>
496
497 * ravenscar-thread.c (update_thread_list): Set inferior_ptid.
498
592f9bd7
TT
4992020-08-07 Tom Tromey <tromey@adacore.com>
500
501 * ravenscar-thread.c (ravenscar_thread_target::wait): Call
502 update_inferior_ptid before update_thread_list.
503 (temporarily_change_regcache_ptid): New class.
504 (ravenscar_thread_target::fetch_registers)
505 (ravenscar_thread_target::store_registers)
506 (ravenscar_thread_target::prepare_to_store): Use base thread when
507 forwarding operation.
508
39e2018a
TT
5092020-08-07 Tom Tromey <tromey@adacore.com>
510
511 * ravenscar-thread.c (ravenscar_thread_target::resume): Handle
512 "is_pid" case.
513
2080266b
TT
5142020-08-07 Tom Tromey <tromey@adacore.com>
515
516 * ravenscar-thread.c (xfer_partial, enable_btrace, add_thread):
517 New methods.
518 (ravenscar_thread_target::get_thread_base_cpu): Check m_cpu_map
519 first.
520 (ravenscar_thread_target::add_thread): Rename from
521 ravenscar_add_thread.
522 (ravenscar_thread_target::update_thread_list): Use a lambda.
523 (ravenscar_thread_target::xfer_partial): New method.
524
78c02f21
TT
5252020-08-07 Tom Tromey <tromey@adacore.com>
526
527 * ada-lang.h (ada_task_list_iterator_ftype): Now a
528 gdb::function_view.
529 (iterate_over_live_ada_tasks): Change type of argument.
530 * ada-tasks.c (iterate_over_live_ada_tasks): Change type
531 of argument.
532
d5d833af
TT
5332020-08-07 Tom Tromey <tromey@adacore.com>
534
535 * ravenscar-thread.c (ravenscar_thread_target) <extra_thread_info>:
536 Remove.
537 (ravenscar_thread_target::extra_thread_info): Remove.
538 (ravenscar_thread_target::pid_to_str): Mention Ravenscar in result;
539 defer to target beneath for non-Ravenscar threads.
540
a8ac85bb
TT
5412020-08-07 Tom Tromey <tromey@adacore.com>
542
543 * ravenscar-thread.c (ravenscar_thread_target) <get_base_cpu,
544 get_base_thread_from_ravenscar_task>: Now methods.
545 <m_cpu_map>: New member.
546 (ravenscar_thread_target::get_thread_base_cpu): Rename from
547 ravenscar_get_thread_base_cpu. Check m_cpu_map.
548 (ravenscar_thread_target::task_is_currently_active): Update.
549 (ravenscar_thread_target::get_base_thread_from_ravenscar_task):
550 Now a method.
551 (ravenscar_thread_target::add_active_thread): Put initial thread
552 into the m_cpu_map.
553
550ab58d
TT
5542020-08-07 Tom Tromey <tromey@adacore.com>
555
556 * ravenscar-thread.c (ravenscar_thread_target::wait): Return
557 event_ptid.
558
e9546579
TT
5592020-08-07 Tom Tromey <tromey@adacore.com>
560
561 * ravenscar-thread.c (ravenscar_thread_target::wait): Check
562 runtime_initialized.
563
3d4470e5
TT
5642020-08-07 Tom Tromey <tromey@adacore.com>
565
566 * ravenscar-thread.c (ravenscar_thread_target): Don't call
567 add_active_thread.
568 (ravenscar_thread_target::add_active_thread): Now public.
569 (ravenscar_inferior_created): Call add_active_thread after pushing
570 the target.
571
888bdb2b
SM
5722020-08-07 Simon Marchi <simon.marchi@polymtl.ca>
573
574 * regcache.c (ptid_regcache_map): New type.
575 (target_ptid_regcache_map): New type.
576 (regcaches): Change type to target_ptid_regcache_map.
577 (get_thread_arch_aspace_regcache): Update to regcaches' new
578 type.
579 (regcache_thread_ptid_changed): Likewise.
580 (registers_changed_ptid): Likewise.
581 (regcaches_size): Likewise.
582 (regcaches_test): Update.
583 (regcache_thread_ptid_changed): Update.
584 * regcache.h (regcache_up): New type.
585 * gdbsupport/ptid.h (hash_ptid): New struct.
586
b161a60d
SM
5872020-08-07 Simon Marchi <simon.marchi@efficios.com>
588
589 * observable.h (thread_ptid_changed): Add parameter
590 `process_stratum_target *`.
591 * infrun.c (infrun_thread_ptid_changed): Add parameter
592 `process_stratum_target *` and use it.
593 (selftests): New namespace.
594 (infrun_thread_ptid_changed): New function.
595 (_initialize_infrun): Register selftest.
596 * regcache.c (regcache_thread_ptid_changed): Add parameter
597 `process_stratum_target *` and use it.
598 (regcache_thread_ptid_changed): New function.
599 (_initialize_regcache): Register selftest.
600 * thread.c (thread_change_ptid): Pass target to
601 thread_ptid_changed observable.
602
d2854d8d
CT
6032020-08-06 Caroline Tice <cmtice@google.com>
604
fe4c3d43
SM
605 * dwarf2/read.c (struct dwo_file): Update comment on 'sections' field.
606 (struct dwp_sections): Update field comments. Add loclists and
607 rnglists fields.
608 (struct virtual_v2_dwo_sections): Rename struct to
609 'virtual_v2_or_v5_dwo_sections'; update comments at top of struct; add
610 size & offset fields for loclists and rnglists.
611 (struct dwp_hash_table): Add a 'v5' struct field to the union section.
612 (create_debug_type_hash_table): Add 'DW_UT_split_type' to the check for
613 skipping dummy type units.
614 (create_dwp_hash_table): Update the large comment above the function to
615 discuss Version 5 DWP files as well, with references. Update all the
616 version checks in the function to check for version 5 as well. Add new
617 section at the end to create dwp hash table for version 5.
618 (create_dwp_v2_section): Rename function to
619 'create_dwp_v2_or_v5_section'. Update function comment appropriately.
620 Add V5 to error message text.
621 (create_dwo_unit_in_dwp_v2): Change calls to create_dwp_v2_section
622 into calls to create_dwp_v2_or_v5_section.
623 (create_dwo_unit_in_dwp_v5): New function.
624 (lookup_dwo_unit_in_dwp): Update conditional statement to explicitly
625 check for version2; add else clause to handle version 5.
626 (open_and_init_dwo_file): Add code to check dwarf version & only call
627 create_debug_types_hash_table (with sections.types) if version is not 5;
628 else call create_debug_type_hash_table, with sections.info.
629 (dwarf2_locate_v2_dwp_sections): Update function comment to mention
630 version 5.
631 (dwarf2_locate_v5_dwp_sections): New function.
632 (open_and_init_dwp_file): Add else-if clause for version 5 to call
633 bfd_map_over_sections with dwarf2_locate_v5_dwp_sections.
d2854d8d 634
159ed7d9
SM
6352020-08-06 Simon Marchi <simon.marchi@efficios.com>
636
637 * regcache.h (class regcache): Remove friend
638 registers_changed_ptid.
639 <regcache_thread_ptid_changed>: Remove.
640 <regcaches>: Remove.
641 * regcache.c (regcache::regcaches): Rename to...
642 (regcaches): ... this. Make static.
643 (get_thread_arch_aspace_regcache): Update.
644 (regcache::regcache_thread_ptid_changed): Rename to...
645 (regcache_thread_ptid_changed): ... this. Update.
646 (class regcache_access): Remove.
647 (regcaches_test): Update.
648 (_initialize_regcache): Update.
649 * sparc64-tdep.c, dwarf2/index-write.c, record-btrace.c: Include
650 <forward_list>.
651
174981ae
SM
6522020-08-06 Simon Marchi <simon.marchi@efficios.com>
653
654 * regcache.h (class regcache) <current_regcache>: Rename to...
655 <regcaches>: ... this. Move doc here.
656 * regcache.c (regcache::current_regcache) Rename to...
657 (regcache::regcaches): ... this. Move doc to header.
658 (get_thread_arch_aspace_regcache): Update.
659 (regcache::regcache_thread_ptid_changed): Update.
660 (registers_changed_ptid): Update.
661 (class regcache_access) <current_regcache_size>: Rename to...
662 <regcaches_size>: ... this.
663 (current_regcache_test): Rename to...
664 (regcaches_test): ... this.
665 (_initialize_regcache): Update.
666
ed908db6
VC
6672020-08-06 Victor Collod <vcollod@nvidia.com>
668
669 * amd64-tdep.c (amd64_analyze_prologue): Fix incorrect comment.
670
b5582ab7
KB
6712020-08-05 Kevin Buettner <kevinb@redhat.com>
672
673 * corelow.c (core_target::build_file_mappings): Don't output
674 null pathname in warning.
675
ea946b86
SM
6762020-08-05 Simon Marchi <simon.marchi@polymtl.ca>
677
678 * gdb.dwarf2/clztest.exp, gdb.dwarf2/dw2-common-block.exp,
679 gdb.dwarf2/dw2-dup-frame.exp, gdb.dwarf2/dw2-reg-undefined.exp,
680 gdb.dwarf2/dw2-single-line-discriminators.exp,
681 dw2-undefined-ret-addr.exp: Pass nopie to compilation options.
682
57d02173
TT
6832020-08-05 Tom Tromey <tromey@adacore.com>
684
685 PR rust/26197:
686 * dwarf2/read.c (alloc_rust_variant): Handle univariant case.
687 (quirk_rust_enum): Call alloc_rust_variant for univariant case.
688 Fix off-by-one and type size errors in ordinary case.
689
5555c86d
TV
6902020-08-05 Tom de Vries <tdevries@suse.de>
691
692 * gdbtypes.c (type_not_allocated, type_not_associated): Use
693 "prop->const_val () == 0" instead of "prop->const_val () != 0".
694
97916bfe
SM
6952020-08-04 Simon Marchi <simon.marchi@efficios.com>
696
697 * frame.h (frame_id_p): Return bool.
698 (frame_id_artificial_p): Return bool.
699 (frame_id_eq): Return bool.
700 (has_stack_frames): Return bool.
701 (get_selected_frame): Fix typo in comment.
702 (get_frame_pc_if_available): Return bool.
703 (get_frame_address_in_block_if_available): Return bool.
704 (get_frame_func_if_available): Return bool.
705 (read_frame_register_unsigned): Return bool.
706 (get_frame_register_bytes): Return bool.
707 (safe_frame_unwind_memory): Return bool.
708 (deprecated_frame_register_read): Return bool.
709 (frame_unwinder_is): Return bool.
710 * frame.c (struct frame_info) <prev_arch::p>: Change type to
711 bool.
712 <this_id::p>: Likewise.
713 <prev_p>: Likewise.
714 (frame_stash_add): Return bool.
715 (get_frame_id): Use bool.
716 (frame_id_build_special) Use bool.
717 (frame_id_build_unavailable_stack): Use bool.
718 (frame_id_build): Use bool.
719 (frame_id_p): Return bool, use true/false instead of 1/0.
720 (frame_id_artificial_p): Likewise.
721 (frame_id_eq): Likewise.
722 (frame_id_inner): Likewise.
723 (get_frame_func_if_available): Likewise.
724 (read_frame_register_unsigned): Likewise.
725 (deprecated_frame_register_read): Likewise.
726 (get_frame_register_bytes): Likewise.
727 (has_stack_frames): Likewise.
728 (inside_main_func): Likewise.
729 (inside_entry_func): Likewise.
730 (get_frame_pc_if_available): Likewise.
731 (get_frame_address_in_block_if_available): Likewise.
732 (frame_unwinder_is): Likewise.
733 (safe_frame_unwind_memory): Likewise.
734 (frame_unwind_arch): Likewise.
735
fedfee88
SM
7362020-08-04 Simon Marchi <simon.marchi@efficios.com>
737
738 * frame.c (frame_info) <prev_func> <p>: Rename to status, change
739 type to cached_copy_status.
740 (fprintf_frame): Adjust.
741 (get_frame_func_if_available): Adjust.
742 (frame_cleanup_after_sniffer): Adjust.
743
6cfa9b59
MW
7442020-08-04 Mark Wielaard <mark@klomp.org>
745
746 * MAINTAINERS (Write After Approval): Update email address.
747
66d6346b
SM
7482020-08-04 Simon Marchi <simon.marchi@polymtl.ca>
749
750 * gdbtypes.h (TYPE_DYN_PROP_ADDR): Remove, replace uses with
751 dynamic_prop::const_val.
752
8a6d5e35
SM
7532020-08-04 Simon Marchi <simon.marchi@polymtl.ca>
754
755 * gdbtypes.h (TYPE_DYN_PROP_KIND): Remove, replace uses with
756 dynamic_prop::kind.
757
51d6067d
SM
7582020-08-04 Simon Marchi <simon.marchi@polymtl.ca>
759
760 * gdbtypes.h (TYPE_DYN_PROP_BATON): Remove.
761
b26e2ae7
JM
7622020-08-04 Jose E. Marchesi <jose.marchesi@oracle.com>
763
764 * configure.tgt: Set gdb_sim for bpf-*-* targets.
765
39791af2
JM
7662020-08-04 Weimin Pan <weimin.pan@oracle.com>
767 Jose E. Marchesi <jose.marchesi@oracle.com>
768
769 * configure.tgt: Add entry for bpf-*-*.
770 * Makefile.in (ALL_TARGET_OBS): Add bpf-tdep.o
771 (ALLDEPFILES): Add bpf-tdep.c.
772 * bpf-tdep.c: New file.
773 * MAINTAINERS: Add bpf target and maintainer.
774 * NEWS: Mention the support for the new target.
775
521894aa
TV
7762020-08-04 Tom de Vries <tdevries@suse.de>
777
778 PR symtab/23270
779 * dwarf2/read.c (find_partial_die): Change internal error into Dwarf
780 Error.
781
5d6356e9
JB
7822020-08-03 John Baldwin <jhb@FreeBSD.org>
783
784 * syscalls/freebsd.xml: Regenerate.
785
0cf82b81
JB
7862020-08-03 John Baldwin <jhb@FreeBSD.org>
787
788 * syscalls/update-freebsd.sh: Fix usage and year range.
789
8f34b746
TV
7902020-08-03 Tom de Vries <tdevries@suse.de>
791
792 PR symtab/26333
793 * dwarf2/read.c (dwarf_decode_lines_1): Ignore
794 DW_LNE_lo_user/DW_LNE_hi_user range.
795
5e500d33
SM
7962020-07-30 Simon Marchi <simon.marchi@polymtl.ca>
797
798 PR ada/26318
799 * ada-lang.c (ada_modulus): Return 0 if property is not of const
800 kind.
801
78319c15
TBA
8022020-07-30 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
803
804 * breakpoint.c (set_breakpoint_condition): Do minor refactoring.
805
4c55e970
TBA
8062020-07-30 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
807
808 * breakpoint.c (set_breakpoint_condition): Update the condition
809 expressions after checking that the input condition string parses
810 successfully and does not contain junk at the end.
811
1e620590
TBA
8122020-07-30 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
813
814 * breakpoint.c (set_breakpoint_condition): Update the
815 condition string after parsing the new condition successfully.
816
c8693053
RO
8172020-07-30 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
818
819 * proc-api.c (_STRUCTURED_PROC): Don't define.
820 * proc-events.c: Likewise.
821 * proc-flags.c: Likewise.
822 * proc-why.c: Likewise.
823 * procfs.c: Likewise.
824
825 * Makefile.in (INTERNAL_CPPFLAGS): Add LARGEFILE_CPPFLAGS.
826 * configure, config.in: Regenerate.
827
5a99adb8
TV
8282020-07-30 Tom de Vries <tdevries@suse.de>
829
830 PR build/26320
831 * ui-style.h (struct ui_file_style::color): Wrap m_value and
832 m_red/m_green/m_blue in a union.
833
8ba83e91
TV
8342020-07-29 Tom de Vries <tdevries@suse.de>
835
836 PR tdep/26280
837 * s390-tdep.c (s390_displaced_step_fixup): Fix Wmaybe-uninitialized.
838
f75a0693
AB
8392020-07-28 Tom Tromey <tromey@adacore.com>
840
841 PR symtab/26270:
842 * symtab.h (find_pc_partial_function_sym): Declare.
843 * cli/cli-cmds.c (disassemble_command): Use
844 find_pc_partial_function_sym. Check asm_demangle.
845 * blockframe.c (cache_pc_function_sym): New global.
846 (cache_pc_function_name): Remove.
847 (clear_pc_function_cache): Update.
848 (find_pc_partial_function_sym): New function, from
849 find_pc_partial_function.
850 (find_pc_partial_function): Rewrite using
851 find_pc_partial_function_sym.
852
16f3242c
TT
8532020-07-28 Tom Tromey <tromey@adacore.com>
854
855 * cli/cli-cmds.c (_initialize_cli_cmds): Rearrange "disassemble"
856 help. Add usage.
857
4888741a
TT
8582020-07-28 Tom Tromey <tromey@adacore.com>
859
860 * dwarf2/expr.c (dwarf_expr_context::execute_stack_op)
861 <DW_OP_GNU_variable_value>: Cast to address type.
862
4d46f402
KR
8632020-07-28 Kamil Rytarowski <n54@gmx.com>
864
865 * nbsd-nat.h (nbsd_nat_target::xfer_partial): New declaration.
866 * nbsd-nat.c (nbsd_nat_target::xfer_partial): New function.
867 * nbsd-tdep.c (nbsd_gdbarch_data_handle, struct nbsd_gdbarch_data)
868 (init_nbsd_gdbarch_data, get_nbsd_gdbarch_data)
869 (nbsd_get_siginfo_type): New.
870 (nbsd_init_abi): Install gdbarch "get_siginfo_type" method.
871 (_initialize_nbsd_tdep): New.
872
d70f978b
L
8732020-07-28 H.J. Lu <hongjiu.lu@intel.com>
874
875 PR binutils/26301
876 * configure: Regenerated.
877
377170fa
L
8782020-07-28 H.J. Lu <hongjiu.lu@intel.com>
879
880 PR binutils/26301
881 * configure: Regenerated.
882
43d5901d
AB
8832020-07-28 Andrew Burgess <andrew.burgess@embecosm.com>
884
885 * python/py-frame.c: Remove 'user-regs.h' include.
886 (frapy_read_register): Rewrite to make use of
887 gdbpy_parse_register_id.
888 * python/py-registers.c (gdbpy_parse_register_id): New function,
889 moved here from python/py-unwind.c. Updated the return type, and
890 also accepts register descriptor objects.
891 * python/py-unwind.c: Remove 'user-regs.h' include.
892 (pyuw_parse_register_id): Moved to python/py-registers.c.
893 (unwind_infopy_add_saved_register): Update to use
894 gdbpy_parse_register_id.
895 (pending_framepy_read_register): Likewise.
896 * python/python-internal.h (gdbpy_parse_register_id): Declare.
897
14fa8fb3
AB
8982020-07-28 Andrew Burgess <andrew.burgess@embecosm.com>
899
900 * python/py-registers.c: Add 'user-regs.h' include.
901 (register_descriptor_iter_find): New function.
902 (register_descriptor_iterator_object_methods): New static global
903 methods array.
904 (register_descriptor_iterator_object_type): Add pointer to methods
905 array.
906
ddce1758
JB
9072020-07-27 John Baldwin <jhb@FreeBSD.org>
908
909 * fbsd-nat.h: Include <osreldate.h>. Define USE_SIGTRAP_SIGINFO
910 for all architectures on FreeBSD 11.3 and later.
911
a4089f52
TT
9122020-07-27 Tom Tromey <tromey@adacore.com>
913
914 * gcore.h (load_corefile): Don't declare.
915
95420d30
TV
9162020-07-27 Tom de Vries <tdevries@suse.de>
917
918 * configure.ac: Fix sys/sockets.h -> sys/socket.h typo.
919 * config.in: Regenerate.
920 * configure: Regenerate.
921
05a6b8c2
EZ
9222020-07-26 Eli Zaretskii <eliz@gnu.org>
923
924 * configure.ac (AC_CHECK_HEADERS): Check for sys/socket.h and
925 ws2tcpip.h. When checking whether socklen_t type is defined, use
926 ws2tcpip.h if it is available and sys/socket.h isn't.
927 * configure: Regenerate.
928 * config.in: Regenerate.
929
e79eb02f
AB
9302020-07-25 Andrew Burgess <andrew.burgess@embecosm.com>
931
932 PR fortran/23051
933 PR fortran/26139
934 * valops.c (value_ind): Pass address to
935 readjust_indirect_value_type.
936 * value.c (readjust_indirect_value_type): Make parameter
937 non-const, and add extra address parameter. Resolve original type
938 before using it.
939 * value.h (readjust_indirect_value_type): Update function
940 signature and comment.
941
876518dd
TV
9422020-07-25 Tom de Vries <tdevries@suse.de>
943
944 PR symtab/26243
945 * dwarf2/read.c (lnp_state_machine::record_line): Ignore zero line
946 entries.
947
f6720b1c
AM
9482020-07-24 Aaron Merey <amerey@redhat.com>
949
950 * Makefile.in: Replace LIBDEBUGINFOD with DEBUGINFOD_LIBS.
951 * configure: Rebuild.
952
513487e1
KB
9532020-07-23 Kevin Buettner <kevinb@redhat.com>
954
955 PR corefiles/26294
956 * corelow.c (_initialize_corelow): Add period to help text
957 for "maintenance print core-file-backed-mappings".
958
e7bc9db8
PA
9592020-07-23 Pedro Alves <pedro@palves.net>
960
961 * frame-unwind.c (frame_unwind_try_unwinder): On exception, don't
962 touch THIS_CACHE/THIS_FRAME if the frame cache was cleared
963 meanwhile.
964 * frame.c (frame_cache_generation, get_frame_cache_generation):
965 New.
966 (reinit_frame_cache): Increment FRAME_CACHE_GENERATION.
967 (get_prev_frame_if_no_cycle): On exception, don't touch
968 PREV_FRAME/THIS_FRAME if the frame cache was cleared meanwhile.
969 * frame.h (get_frame_cache_generation): Declare.
970
90fcc466
TV
9712020-07-23 Tom de Vries <tdevries@suse.de>
972
973 PR tui/26282
974 * tui/tui-winsource.h (struct tui_source_windows::tui_source_windows):
975 New default constructor.
976
78344df7
AB
9772020-07-23 Andrew Burgess <andrew.burgess@embecosm.com>
978
979 * disasm.c (do_mixed_source_and_assembly_deprecated): Don't
980 exclude non-statement entries.
981
b089853a
KB
9822020-07-22 Kevin Buettner <kevinb@redhat.com>
983
984 * NEWS (New commands): Mention new command
985 "maintenance print core-file-backed-mappings".
986
09c2f5d4
KB
9872020-07-22 Kevin Buettner <kevinb@redhat.com>
988
989 * corelow.c (gdbcmd.h): Include.
990 (core_target::info_proc_mappings): New method.
991 (get_current_core_target): New function.
992 (maintenance_print_core_file_backed_mappings): New function.
993 (_initialize_corelow): Add core-file-backed-mappings to
994 "maint print" commands.
995
9c5ec5c2 9962020-07-22 Kevin Buettner <kevinb@redhat.com>
fe4c3d43 997
9c5ec5c2
KB
998 * linux-tdep.c (dump_note_entry_p): New function.
999 (linux_dump_mapping_p_ftype): New typedef.
1000 (linux_find_memory_regions_full): Add new parameter,
1001 should_dump_mapping_p.
1002 (linux_find_memory_regions): Adjust call to
1003 linux_find_memory_regions_full.
1004 (linux_make_mappings_core_file_notes): Use dump_note_entry_p in
1005 call to linux_find_memory_regions_full.
1006
db082f59
KB
10072020-07-22 Kevin Buettner <kevinb@redhat.com>
1008
1009 * corelow.c (solist.h, unordered_map): Include.
1010 (class core_target): Add field m_core_file_mappings and
1011 method build_file_mappings.
1012 (core_target::core_target): Call build_file_mappings.
1013 (core_target::~core_target): Free memory associated with
1014 m_core_file_mappings.
1015 (core_target::build_file_mappings): New method.
1016 (core_target::xfer_partial): Use m_core_file_mappings
1017 for memory transfers.
1018 * linux-tdep.c (linux_read_core_file_mappings): New
1019 function.
1020 (linux_core_info_proc_mappings): Rewrite to use
1021 linux_read_core_file_mappings.
1022 (linux_init_abi): Register linux_read_core_file_mappings.
1023
7e183d27
KB
10242020-07-22 Kevin Buettner <kevinb@redhat.com>
1025
1026 * arch-utils.c (default_read_core_file_mappings): New function.
1027 * arch-utils.c (default_read_core_file_mappings): Declare.
1028 * gdbarch.sh (read_core_file_mappings): New gdbarch method.
1029 * gdbarch.h, gdbarch.c: Regenerate.
1030
2735d421
KB
10312020-07-22 Kevin Buettner <kevinb@redhat.com>
1032
1033 PR corefiles/25631
1034 * corelow.c (core_target:xfer_partial): Revise
1035 TARGET_OBJECT_MEMORY case to consider non-SEC_HAS_CONTENTS
1036 case after first checking the stratum beneath the core
1037 target.
1038 (has_all_memory): Return true.
1039 * target.c (raw_memory_xfer_partial): Revise comment
1040 regarding use of has_all_memory.
1041
e56cb451
KB
10422020-07-22 Kevin Buettner <kevinb@redhat.com>
1043
1044 * exec.h (section_table_xfer_memory): Revise declaration,
1045 replacing section name parameter with an optional callback
1046 predicate.
1047 * exec.c (section_table_xfer_memory): Likewise.
1048 * bfd-target.c, exec.c, target.c, corelow.c: Adjust all callers
1049 of section_table_xfer_memory.
1050
32fa152e
TT
10512020-07-22 Tom Tromey <tromey@adacore.com>
1052
1053 * mi/mi-cmd-stack.c (list_args_or_locals): Use
1054 lookup_symbol_search_name.
1055
a67a1c41
AB
10562020-07-22 Andrew Burgess <andrew.burgess@embecosm.com>
1057
1058 * python/py-registers.c (gdbpy_register_object_data_init): Remove
1059 redundant local variable.
1060 (gdbpy_get_register_descriptor): Extract descriptor vector as a
1061 reference, not pointer, update code accordingly.
1062
a7b4ff4f
SM
10632020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
1064 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1065
1066 * objfiles.h (struct objfile) <skip_jit_symbol_lookup>: New field.
1067 * jit.c (jit_breakpoint_re_set_internal): Use the
1068 `skip_jit_symbol_lookup` field.
1069
2340e834
SM
10702020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
1071 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1072
1073 * jit.c (jit_read_descriptor): Define the descriptor address once,
1074 use twice.
1075 (jit_breakpoint_deleted): Move the declaration of the loop variable
1076 `iter` into the loop header.
1077 (jit_breakpoint_re_set_internal): Move the declaration of the local
1078 variable `objf_data` to the first point of definition.
1079 (jit_event_handler): Move the declaration of local variables
1080 `code_entry`, `entry_addr`, and `objf` to their first point of use.
1081 Rename `objf` to `jited`.
1082
c1072906
SM
10832020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
1084
1085 * jit.h (struct jiter_objfile_data) <jiter_objfile_data, objfile>:
1086 Remove.
1087 * jit.c (get_jiter_objfile_data): Update.
1088
c8474dc3
TBA
10892020-07-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1090 Simon Marchi <simon.marchi@polymtl.ca>
1091
1092 * jit.c (struct jit_program_space_data): Remove.
1093 (jit_program_space_key): Remove.
1094 (jiter_objfile_data::~jiter_objfile_data): Remove program space
1095 stuff.
1096 (get_jit_program_space_data): Remove.
1097 (jit_breakpoint_deleted): Iterate on all of the program space's
1098 objfiles.
1099 (jit_inferior_init): Likewise.
1100 (jit_breakpoint_re_set_internal): Likewise. Also change return
1101 type to void.
1102 (jit_breakpoint_re_set): Pass current_program_space to
1103 jit_breakpoint_re_set_internal.
1104
77208eb7
SM
11052020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
1106
1107 * jit.h (struct jiter_objfile_data) <cached_code_address,
1108 jit_breakpoint>: Move to here from ...
1109 * jit.c (jit_program_space_data): ... here.
1110 (jiter_objfile_data::~jiter_objfile_data): Update.
1111 (jit_breakpoint_deleted): Update.
1112 (jit_breakpoint_re_set_internal): Update.
1113
8c1c720f
SM
11142020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
1115
1116 * jit.c (jiter_objfile_data::~jiter_objfile_data): Remove some
1117 checks.
1118 (jit_read_descriptor): Remove NULL check.
1119 (jit_event_handler): Add an assertion.
1120
0e74a041
SM
11212020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
1122
1123 * jit.h (struct jit_objfile_data): Split into...
1124 (struct jiter_objfile_data): ... this ...
1125 (struct jited_objfile_data): ... and this.
1126 * objfiles.h (struct objfile) <jit_data>: Remove.
1127 <jiter_data, jited_data>: New fields.
1128 * jit.c (jit_objfile_data::~jit_objfile_data): Rename to ...
1129 (jiter_objfile_data::~jiter_objfile_data): ... this.
1130 (get_jit_objfile_data): Rename to ...
1131 (get_jiter_objfile_data): ... this.
1132 (add_objfile_entry): Update.
1133 (jit_read_descriptor): Use get_jiter_objfile_data.
1134 (jit_find_objf_with_entry_addr): Use objfile's jited_data field.
1135 (jit_breakpoint_re_set_internal): Use get_jiter_objfile_data.
1136 (jit_inferior_exit_hook): Use objfile's jited_data field.
1137
238b5c9f
SM
11382020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
1139
1140 * jit.h: Forward-declare `struct minimal_symbol`.
1141 (struct jit_objfile_data): Migrate to here from jit.c; also add a
1142 constructor, destructor, and an objfile* field.
1143 * jit.c (jit_objfile_data): Remove.
1144 (struct jit_objfile_data): Migrate from here to jit.h.
1145 (jit_objfile_data::~jit_objfile_data): New destructor
1146 implementation with code moved from free_objfile_data.
1147 (free_objfile_data): Delete.
1148 (get_jit_objfile_data): Update to use the jit_data field of objfile.
1149 (jit_find_objf_with_entry_addr): Ditto.
1150 (jit_inferior_exit_hook): Ditto.
1151 (_initialize_jit): Remove the call to
1152 register_objfile_data_with_cleanup.
1153 * objfiles.h (struct objfile) <jit_data>: New field.
1154
fe053b9e
TBA
11552020-07-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1156
1157 * jit.h: Forward-declare `struct objfile`.
1158 (jit_event_handler): Add a second parameter, the JITer objfile.
1159 * jit.c (jit_read_descriptor): Change the signature to take the
1160 JITer objfile as an argument instead of the jit_program_space_data.
1161 (jit_inferior_init): Update the call to jit_read_descriptor.
1162 (jit_event_handler): Use the new JITer objfile argument when calling
1163 jit_read_descriptor.
1164 * breakpoint.c (handle_jit_event): Update the call to
1165 jit_event_handler to pass the JITer objfile.
1166
4cec0c66
JB
11672020-07-21 John Baldwin <jhb@FreeBSD.org>
1168
1169 * gdbarch.c: Regenerate.
1170 * gdbarch.h: Regenerate.
1171 * gdbarch.sh (handle_segmentation_fault): Remove method.
1172 * infrun.c (handle_segmentation_fault): Remove.
1173 (print_signal_received_reason): Remove call to
1174 handle_segmentation_fault.
1175
0e42f66a
JB
11762020-07-21 John Baldwin <jhb@FreeBSD.org>
1177
1178 * sparc64-linux-tdep.c (sparc64_linux_handle_segmentation_fault):
1179 Rename to sparc64_linux_report_signal_info and add siggnal
1180 argument.
1181 (sparc64_linux_init_abi): Use sparc64_linux_report_signal_info
1182 instead of sparc64_linux_handle_segmentation_fault.
1183
77bdfeb2
JB
11842020-07-21 John Baldwin <jhb@FreeBSD.org>
1185
1186 * amd64-linux-tdep.c (amd64_linux_init_abi_common): Use
1187 i386_linux_report_signal_info instead of
1188 i386_linux_handle_segmentation_fault.
1189 * i386-linux-tdep.c (i386_linux_handle_segmentation_fault): Rename
1190 to i386_linux_report_signal_info and add siggnal argument.
1191 (i386_linux_init_abi): Use i386_linux_report_signal_info instead
1192 of i386_linux_handle_segmentation_fault.
1193 * i386-linux-tdep.h (i386_linux_handle_segmentation_fault): Rename
1194 to i386_linux_report_signal_info and add siggnal argument.
1195
ad97bfc5
JB
11962020-07-21 John Baldwin <jhb@FreeBSD.org>
1197
1198 * corelow.c (core_target_open): Invoke gdbarch report_signal_info
1199 hook if present.
1200
272bb05c
JB
12012020-07-21 John Baldwin <jhb@FreeBSD.org>
1202
1203 * gdbarch.c: Regenerate.
1204 * gdbarch.h: Regenerate.
1205 * gdbarch.sh (report_signal_info): New method.
1206 * infrun.c (print_signal_received_reason): Invoke gdbarch
1207 report_signal_info hook if present.
1208
baf8791e
AB
12092020-07-21 Andrew Burgess <andrew.burgess@embecosm.com>
1210
1211 * python/py-registers.c : Add 'unordered_map' include.
1212 (gdbpy_new_reggroup): Renamed to...
1213 (gdbpy_get_reggroup): ...this. Update to only create register
1214 group descriptors when needed.
1215 (gdbpy_reggroup_iter_next): Update.
1216
f7306dac
AB
12172020-07-21 Andrew Burgess <andrew.burgess@embecosm.com>
1218
1219 * python/py-registers.c (gdbpy_register_object_data): New static
1220 global.
1221 (gdbpy_register_object_data_init): New function.
1222 (gdbpy_new_register_descriptor): Renamed to...
1223 (gdbpy_get_register_descriptor): ...this, and update to reuse
1224 existing register descriptors where possible.
1225 (gdbpy_register_descriptor_iter_next): Update.
1226 (gdbpy_initialize_registers): Register new gdbarch data.
1227
05c309a8
SM
12282020-07-21 Simon Marchi <simon.marchi@efficios.com>
1229
1230 * linux-nat.c (stopped_pids): Make static.
1231
d1fd641e
SM
12322020-07-21 Simon Marchi <simon.marchi@polymtl.ca>
1233
1234 PR ada/26235
1235 * gdbtypes.c (ada_discrete_type_low_bound,
1236 ada_discrete_type_high_bound): Handle undefined bounds.
1237
1de14d77
KR
12382020-07-21 Kamil Rytarowski <n54@gmx.com>
1239
1240 * nbsd-nat.h (nbsd_nat_target::supports_multi_process): New
1241 declaration.
1242 * nbsd-nat.c (nbsd_nat_target::supports_multi_process): New
1243 function.
1244
ed810cc7
JB
12452020-07-20 John Baldwin <jhb@FreeBSD.org>
1246
1247 * fbsd-tdep.c (fbsd_skip_solib_resolver): New function.
1248 (fbsd_init_abi): Install gdbarch "skip_solib_resolver" method.
1249 * fbsd-tdep.h (fbsd_skip_solib_resolver): New prototype.
1250 * mips-fbsd-tdep.c (mips_fbsd_skip_solib_resolver): New function.
1251 (mips_fbsd_init_abi): Install gdbarch "skip_solib_resolver"
1252 method.
1253
ae5369e7
LC
12542020-07-20 Ludovic Courtès <ludo@gnu.org>
1255
1256 * guile/scm-math.c (vlscm_integer_fits_p): Use 'uintmax_t'
1257 and 'intmax_t' instead of 'scm_t_uintmax' and 'scm_t_intmax',
1258 which are deprecated in Guile 3.0.
1259 * configure.ac (try_guile_versions): Add "guile-3.0".
1260 * configure (try_guile_versions): Regenerate.
1261 * NEWS: Update entry.
1262
68cf161c
LC
12632020-07-20 Ludovic Courtès <ludo@gnu.org>
1264 Doug Evans <dje@google.com>
1265
1266 PR gdb/21104
1267 * guile/scm-ports.c (USING_GUILE_BEFORE_2_2): New macro.
1268 (ioscm_memory_port)[read_buf_size, write_buf_size]: Wrap in #if
1269 USING_GUILE_BEFORE_2_2.
1270 (stdio_port_desc, memory_port_desc) [!USING_GUILE_BEFORE_2_2]:
1271 Change type to 'scm_t_port_type *'.
1272 (natural_buffer_size) [!USING_GUILE_BEFORE_2_2]: New variable.
1273 (ioscm_open_port) [USING_GUILE_BEFORE_2_2]: Add 'stream'
1274 parameter and honor it. Update callers.
1275 (ioscm_open_port) [!USING_GUILE_BEFORE_2_2]: New function.
1276 (ioscm_read_from_port, ioscm_write) [!USING_GUILE_BEFORE_2_2]: New
1277 functions.
1278 (ioscm_fill_input, ioscm_input_waiting, ioscm_flush): Wrap in #if
1279 USING_GUILE_BEFORE_2_2.
1280 (ioscm_init_gdb_stdio_port) [!USING_GUILE_BEFORE_2_2]: Use
1281 'ioscm_read_from_port'. Call 'scm_set_port_read_wait_fd'.
1282 (ioscm_init_stdio_buffers) [!USING_GUILE_BEFORE_2_2]: New function.
1283 (gdbscm_stdio_port_p) [!USING_GUILE_BEFORE_2_2]: Use 'SCM_PORTP'
1284 and 'SCM_PORT_TYPE'.
1285 (gdbscm_memory_port_end_input, gdbscm_memory_port_seek)
1286 (ioscm_reinit_memory_port): Wrap in #if USING_GUILE_BEFORE_2_2.
1287 (gdbscm_memory_port_read, gdbscm_memory_port_write)
1288 (gdbscm_memory_port_seek, gdbscm_memory_port_close)
1289 [!USING_GUILE_BEFORE_2_2]: New functions.
1290 (gdbscm_memory_port_print): Remove use of 'SCM_PTOB_NAME'.
1291 (ioscm_init_memory_port_type) [!USING_GUILE_BEFORE_2_2]: Use
1292 'gdbscm_memory_port_read'.
1293 Wrap 'scm_set_port_end_input', 'scm_set_port_flush', and
1294 'scm_set_port_free' calls in #if USING_GUILE_BEFORE_2_2.
1295 (gdbscm_get_natural_buffer_sizes) [!USING_GUILE_BEFORE_2_2]: New
1296 function.
1297 (ioscm_init_memory_port): Remove.
1298 (ioscm_init_memory_port_stream): New function
1299 (ioscm_init_memory_port_buffers) [USING_GUILE_BEFORE_2_2]: New
1300 function.
1301 (gdbscm_memory_port_read_buffer_size) [!USING_GUILE_BEFORE_2_2]:
1302 Return scm_from_uint (0).
1303 (gdbscm_set_memory_port_read_buffer_size_x)
1304 [!USING_GUILE_BEFORE_2_2]: Call 'scm_setvbuf'.
1305 (gdbscm_memory_port_write_buffer_size) [!USING_GUILE_BEFORE_2_2]:
1306 Return scm_from_uint (0).
1307 (gdbscm_set_memory_port_write_buffer_size_x)
1308 [!USING_GUILE_BEFORE_2_2]: Call 'scm_setvbuf'.
1309 * configure.ac (try_guile_versions): Add "guile-2.2".
1310 * configure: Regenerate.
1311 * NEWS: Add entry.
1312
aee91db3
TT
13132020-07-18 Tom Tromey <tom@tromey.com>
1314
1315 * linux-nat.c (linux_multi_process): Remove.
1316 (linux_nat_target::supports_multi_process): Return true.
1317
0e267416
AB
13182020-07-17 Andrew Burgess <andrew.burgess@embecosm.com>
1319
1320 * arch/riscv.c (riscv_tdesc_cache): Change map type.
1321 (riscv_lookup_target_description): Return pointer out of
1322 unique_ptr.
1323 * target-descriptions.c (allocate_target_description): Add
1324 comment.
1325 (target_desc_deleter::operator()): Likewise.
1326 * target-descriptions.h (struct target_desc_deleter): Moved to
1327 gdbsupport/tdesc.h.
1328 (target_desc_up): Likewise.
1329
f80c8ec4
TT
13302020-07-17 Tom Tromey <tromey@adacore.com>
1331
1332 * linux-nat.c (linux_nat_target::supports_non_stop)
1333 (linux_nat_target::always_non_stop_p): Use "true".
1334 (linux_nat_target::supports_disable_randomization): Use "true" and
1335 "false".
1336
d0ce17d8
CT
13372020-07-16 Caroline Tice <cmtice@google.com>
1338
1339 * dwarf2/read.c (RNGLIST_HEADER_SIZE32) New constant definition.
1340 (RNGLIST_HEADER_SIZE64): New constant definition.
1341 (struct dwop_section_names): Add rnglists_dwo.
1342 (dwop_section_names): Add .debug_rnglists.dwo, .zdebug_rnglists.dwo.
1343 (struct loclist_header): Rename to 'loclists_rnglists_header'.
1344 (struct dwo_sections): Add rnglists field.
1345 (read_attribut_reprocess): Add tag parameter.
1346 (dwarf2_ranges_read): Add tag parameter & remove forward function decl.
1347 (cu_debug_rnglists_section): New function (decl & definition).
1348 (dwarf2_locate_dwo_sections): Add code to read rnglists_dwo section.
1349 (dwarf2_rnglists_process): Add a dwarf_tag parameter, for the kind of
1350 die whose range is being checked; get rnglist section from
1351 cu_debug_rnglists_section, to get from either objfile or dwo file as
1352 appropriate. Add cases for DW_RLE_base_addressx,
1353 DW_RLE_startx_length, DW_RLE_startx_endx. Also, update to only add
1354 the base address to DW_RLE_offset_pairs (not to all ranges), moving
1355 test inside if-condition and updating complaint message.
1356 (dwarf2_ranges_process): Add dwarf tag parameter and pass it to
1357 dwarf2_rnglists_process.
1358 (dwarf2_ranges_read): Add dwarf tag parameter and pass it to
1359 dwarf2_ranges_process.
1360 (dwarf2_get_pc_bounds): Check for DW_FORM_rnglistx when setting
1361 need_ranges_base and update comment appropriately. Also pass die tag
1362 to dwarf2_ranges_read.
1363 (dwarf2_record_block_ranges): Check for DW_FORM_rnglistx when setting
1364 need_ranges_base and update comment appropriately. Also pass die tag
1365 to dwarf2_ranges_process.
1366 (read_full_die_1): Add code to read DW_AT_rnglists_base and assign to
1367 cu->ranges_base. Also pass die tag to read_attribute_reprocess.
1368 (partial_die_info::read): Check for DW_FORM_rnglistx when setting
1369 need_ranges_base and update comment appropriately. Also pass die tag
1370 to read_attribute_reprocess and dwarf2_ranges_read.
1371 (read_loclist_header): Rename function to read_loclists_rnglists_header,
1372 and update function comment appropriately.
1373 (read_loclist_index): Call read_loclists_rnglists_header instead of
1374 read_loclist_header.
1375 (read_rnglist_index): New function.
1376 (read_attribute_reprocess): Add tag parameter. Add code for
1377 DW_FORM_rnglistx, passing tag to read_rnglist_index.
1378 (read_attribute_value): Mark DW_FORM_rnglistx with need_reprocess.
1379
3dcc261c
AB
13802020-07-15 Andrew Burgess <andrew.burgess@embecosm.com>
1381
1382 * f-typeprint.c (f_type_print_base): Allow for dynamic types not
1383 being resolved.
1384
ccb9eba6
AB
13852020-07-14 Andrew Burgess <andrew.burgess@embecosm.com>
1386
1387 * arch-utils.c (show_architecture): Update formatting of messages.
1388
cf88be68
SM
13892020-07-12 Simon Marchi <simon.marchi@efficios.com>
1390
1391 * gdbtypes.h (struct type) <bounds>: Handle array and string
1392 types.
1393 * ada-lang.c (assign_aggregate): Use type::bounds on
1394 array/string type.
1395 * c-typeprint.c (c_type_print_varspec_suffix): Likewise.
1396 * c-varobj.c (c_number_of_children): Likewise.
1397 (c_describe_child): Likewise.
1398 * eval.c (evaluate_subexp_for_sizeof): Likewise.
1399 * f-typeprint.c (f_type_print_varspec_suffix): Likewise.
1400 (f_type_print_base): Likewise.
1401 * f-valprint.c (f77_array_offset_tbl): Likewise.
1402 (f77_get_upperbound): Likewise.
1403 (f77_print_array_1): Likewise.
1404 * guile/scm-type.c (gdbscm_type_range): Likewise.
1405 * m2-typeprint.c (m2_array): Likewise.
1406 (m2_is_long_set_of_type): Likewise.
1407 * m2-valprint.c (get_long_set_bounds): Likewise.
1408 * p-typeprint.c (pascal_type_print_varspec_prefix): Likewise.
1409 * python/py-type.c (typy_range): Likewise.
1410 * rust-lang.c (rust_internal_print_type): Likewise.
1411 * type-stack.c (type_stack::follow_types): Likewise.
1412 * valarith.c (value_subscripted_rvalue): Likewise.
1413 * valops.c (value_cast): Likewise.
1414
509971ae
SM
14152020-07-12 Simon Marchi <simon.marchi@efficios.com>
1416
1417 * gdbtypes.c (TYPE_ARRAY_BIT_STRIDE): Remove. Update all
1418 callers to use the equivalent accessor methods.
1419
107406b7
SM
14202020-07-12 Simon Marchi <simon.marchi@efficios.com>
1421
1422 * gdbtypes.h (struct range_bounds) <bit_stride>: New method.
1423 (struct type) <bit_stride>: New method.
1424 (TYPE_BIT_STRIDE): Remove.
1425 * gdbtypes.c (update_static_array_size): Use type::bit_stride.
1426
bb789949
SM
14272020-07-12 Simon Marchi <simon.marchi@efficios.com>
1428
1429 * gdbtypes.h (TYPE_ARRAY_LOWER_BOUND_VALUE,
1430 TYPE_ARRAY_UPPER_BOUND_VALUE): Remove. Update all
1431 callers to use the equivalent accessor methods instead.
1432
39498edb
SM
14332020-07-12 Simon Marchi <simon.marchi@efficios.com>
1434
1435 * gdbtypes.h (TYPE_ARRAY_UPPER_BOUND_IS_UNDEFINED,
1436 TYPE_ARRAY_LOWER_BOUND_IS_UNDEFINED): Remove. Update all
1437 callers to use the equivalent accessor methods instead.
1438
3b606f38
SM
14392020-07-12 Simon Marchi <simon.marchi@efficios.com>
1440
1441 * gdbtypes.h (TYPE_LOW_BOUND_KIND,
1442 TYPE_HIGH_BOUND_KIND): Remove. Update all callers
1443 to use dynamic_prop::kind.
1444
064d9cb9
SM
14452020-07-12 Simon Marchi <simon.marchi@efficios.com>
1446
1447 * gdbtypes.h (TYPE_LOW_BOUND_UNDEFINED,
1448 TYPE_HIGH_BOUND_UNDEFINED): Remove. Update all callers
1449 to get the bound property's kind and check against
1450 PROP_UNDEFINED.
1451
5537ddd0
SM
14522020-07-12 Simon Marchi <simon.marchi@efficios.com>
1453
1454 * gdbtypes.h (TYPE_LOW_BOUND, TYPE_HIGH_BOUND): Remove. Update
1455 all callers to use type::range_bounds followed by
1456 dynamic_prop::{low,high}.
1457
8c2e4e06
SM
14582020-07-12 Simon Marchi <simon.marchi@polymtl.ca>
1459
1460 * gdbtypes.h (struct dynamic_prop) <kind, set_undefined,
1461 const_val, set_const_val, baton, set_locexpr, set_loclist,
1462 set_addr_offset, variant_parts, set_variant_parts,
1463 original_type, set_original_type>: New methods.
1464 <kind>: Rename to...
1465 <m_kind>: ... this. Update all users to use the new methods
1466 instead.
1467 <data>: Rename to...
1468 <m_data>: ... this. Update all users to use the new methods
1469 instead.
1470
7c6f2712
SM
14712020-07-12 Simon Marchi <simon.marchi@efficios.com>
1472
1473 * gdbtypes.c (get_discrete_bounds): Return failure if
1474 the range type's bounds are not both defined and constant
1475 values.
1476 (get_array_bounds): Update comment. Remove undefined bound check.
1477
599088e3
SM
14782020-07-12 Simon Marchi <simon.marchi@polymtl.ca>
1479
1480 * gdbtypes.h (TYPE_RANGE_DATA): Remove. Update callers to use
1481 the type::bounds method directly.
1482
c4dfcb36
SM
14832020-07-12 Simon Marchi <simon.marchi@efficios.com>
1484
1485 * gdbtypes.h (struct type) <bounds, set_bounds>: New methods.
1486 (TYPE_RANGE_DATA): Use type::bounds. Change all uses that
1487 are used to set the range type's bounds to use set_bounds.
1488
0a278aa7
PW
14892020-07-11 Philippe Waroquiers <philippe.waroquiers@skynet.be>
1490
1491 * exec.c (_initialize_exec): Update exec-file-mismatch help.
1492
cce20f10
PA
14932020-07-10 Pedro Alves <pedro@palves.net>
1494
1495 * gdbthread.h (inferior_ref): Define.
1496 (scoped_restore_current_thread) <m_thread>: Now a thread_info_ref.
1497 (scoped_restore_current_thread) <m_inf>: Now an inferior_ref.
1498 * thread.c
1499 (scoped_restore_current_thread::restore):
1500 Adjust to gdb::ref_ptr.
1501 (scoped_restore_current_thread::~scoped_restore_current_thread):
1502 Remove manual decref handling.
1503 (scoped_restore_current_thread::scoped_restore_current_thread):
1504 Adjust to use
1505 inferior_ref::new_reference/thread_info_ref::new_reference.
1506 Incref the thread before calling get_frame_id instead of after.
1507 Let TARGET_CLOSE_ERROR propagate.
1508
6d7aa592
PA
15092020-07-10 Pedro Alves <pedro@palves.net>
1510
1511 * frame-tailcall.c (dwarf2_tailcall_sniffer_first): Only swallow
1512 NO_ENTRY_VALUE_ERROR / MEMORY_ERROR / OPTIMIZED_OUT_ERROR /
1513 NOT_AVAILABLE_ERROR.
1514 * value.c (value_optimized_out): Only swallow MEMORY_ERROR /
1515 OPTIMIZED_OUT_ERROR / NOT_AVAILABLE_ERROR.
1516
b3e3a4c1
SM
15172020-07-10 Simon Marchi <simon.marchi@polymtl.ca>
1518 Pedro Alves <pedro@palves.net>
1519
1520 PR gdb/26199
1521 * infrun.c (threads_are_resumed_pending_p): Delete.
1522 (do_target_wait): Remove threads_are_executing and
1523 threads_are_resumed_pending_p checks from the inferior_matches
1524 lambda. Update comments.
1525
d6cc5d98
PA
15262020-07-10 Pedro Alves <pedro@palves.net>
1527
1528 PR gdb/26199
1529 * infrun.c (handle_no_resumed): Transfer terminal to inferior with
1530 executing threads.
1531
7d3badc6
PA
15322020-07-10 Pedro Alves <pedro@palves.net>
1533
1534 PR gdb/26199
1535 * infrun.c (handle_no_resumed): Handle multiple targets.
1536
42bd97a6
PA
15372020-07-10 Pedro Alves <pedro@palves.net>
1538
1539 PR gdb/26199
1540 * infrun.c (prepare_to_wait): Check target_can_async_p instead of
1541 target_is_async_p.
1542
43667cc6
PA
15432020-07-10 Pedro Alves <pedro@palves.net>
1544
1545 PR gdb/26199
1546 * target.c (target_pass_ctrlc): Look at the inferior's non-exited
1547 threads, not all threads.
1548
96118d11
PA
15492020-07-10 Pedro Alves <pedro@palves.net>
1550
1551 PR gdb/26199
1552 * remote.c (remote_target::open_1): Pass remote target pointer as
1553 data to create_async_event_handler.
1554 (remote_async_inferior_event_handler): Mark async event handler
1555 before returning if the remote target still has either pending
1556 events or unacknowledged notifications.
1557
54904d81
JB
15582020-07-10 John Baldwin <jhb@FreeBSD.org>
1559
1560 * fbsd-nat.h (fbsd_nat_target::supports_multi_process): New
1561 declaration.
1562 * fbsd-nat.c (fbsd_nat_target::supports_multi_process): New
1563 function.
1564
f37e5866
JB
15652020-07-09 John Baldwin <jhb@FreeBSD.org>
1566
1567 * inf-ptrace.c (inf_ptrace_target::wait): Don't compare against
1568 inferior_ptid.
1569
fc238d4a
JB
15702020-07-09 John Baldwin <jhb@FreeBSD.org>
1571
1572 * fbsd-tdep.c (fbsd_print_auxv_entry): Handle AT_FREEBSD_ARGC,
1573 AT_FREEBSD_ARGV, AT_FREEBSD_ENVC, AT_FREEBSD_ENVV,
1574 AT_FREEBSD_PS_STRINGS.
1575
6e2469ff
HD
15762020-07-08 Hannes Domani <ssbssa@yahoo.de>
1577
1578 * auto-load.c (auto_load_objfile_script_1): Convert drive part
1579 of debugfile path on Windows.
1580
d1076c41
JB
15812020-07-08 John Baldwin <jhb@FreeBSD.org>
1582
1583 * fbsd-nat.c (fbsd_nat_target::find_memory_regions): Rename 'obfd'
1584 argument to 'data'.
1585
15f3b077
TT
15862020-07-08 Tom Tromey <tromey@adacore.com>
1587
1588 * ada-lang.c (ada_exception_message_1): Use read_memory.
1589
9fc501fd
AB
15902020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
1591
1592 PR python/22748
1593 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first): Remove
1594 special handling for inline frames.
1595 * findvar.c (value_of_register_lazy): Skip inline frames when
1596 creating lazy register values.
1597 * frame.c (frame_id_computed_p): Delete definition.
1598 * frame.h (frame_id_computed_p): Delete declaration.
1599
64cb3757
AB
16002020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
1601
1602 * NEWS: Mention additions to Python API.
1603 * python/py-arch.c (archpy_register_groups): New function.
1604 (arch_object_methods): Add 'register_groups' method.
1605 * python/py-registers.c (reggroup_iterator_object): New struct.
1606 (reggroup_object): New struct.
1607 (gdbpy_new_reggroup): New function.
1608 (gdbpy_reggroup_to_string): New function.
1609 (gdbpy_reggroup_name): New function.
1610 (gdbpy_reggroup_iter): New function.
1611 (gdbpy_reggroup_iter_next): New function.
1612 (gdbpy_new_reggroup_iterator): New function
1613 (gdbpy_initialize_registers): Register new types.
1614 (reggroup_iterator_object_type): Define new Python type.
1615 (gdbpy_reggroup_getset): New static global.
1616 (reggroup_object_type): Define new Python type.
1617 * python/python-internal.h
1618
0f767f94
AB
16192020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
1620
1621 * Makefile.in (SUBDIR_PYTHON_SRCS): Add py-registers.c
1622 * python/py-arch.c (archpy_registers): New function.
1623 (arch_object_methods): Add 'registers' method.
1624 * python/py-registers.c: New file.
1625 * python/python-internal.h
1626 (gdbpy_new_register_descriptor_iterator): Declare.
1627 (gdbpy_initialize_registers): Declare.
1628 * python/python.c (do_start_initialization): Call
1629 gdbpy_initialize_registers.
1630 * NEWS: Mention additions to the Python API.
1631
87dbc774
AB
16322020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
1633
1634 * NEWS: Mention new Python API method.
1635 * python/py-unwind.c (pending_framepy_architecture): New function.
1636 (pending_frame_object_methods): Add architecture method.
1637
3bc98c0c
AB
16382020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
1639
1640 * gdbarch.c: Regenerate.
1641 * gdbarch.h: Regenerate.
1642 * gdbarch.sh (deprecated_set_gdbarch_data): Delete.
1643 (gdbarch_data): Use internal_error for the case where
1644 deprecated_set_gdbarch_data was originally needed.
1645 * ia64-libunwind-tdep.c (libunwind_descr_init): Update parameters,
1646 and use passed in obstack.
1647 (libunwind_frame_set_descr): Should no longer get back NULL from
1648 gdbarch_data.
1649 (_initialize_libunwind_frame): Register as a pre-init gdbarch data
1650 type.
1651 * user-regs.c (user_regs_init): Update parameters, and use passed
1652 in obstack.
1653 (user_reg_add): Should no longer get back NULL from gdbarch_data.
1654 (_initialize_user_regs): Register as a pre-init gdbarch data type.
1655
d8cc8af6
TV
16562020-07-06 Tom de Vries <tdevries@suse.de>
1657
1658 * buildsym.c (buildsym_compunit::end_symtab_with_blockvector): Handle
1659 End-Of-Sequence in lte_is_less_than.
1660 * symtab.c (find_pc_sect_line): Revert change from commit 3d92a3e313
1661 "gdb: Don't reorder line table entries too much when sorting".
1662
947f7597
TV
16632020-07-06 Tom de Vries <tdevries@suse.de>
1664
1665 PR tui/26205
1666 * tui/tui-win.c (tui_partial_win_by_name): Don't test for NULL name.
1667
1e7c1b22
TV
16682020-07-05 Tom de Vries <tdevries@suse.de>
1669
1670 PR build/26187
1671 * inferior.h (struct infcall_suspend_state_deleter): If available, use
1672 std::uncaught_exceptions instead of deprecated
1673 std::uncaught_exception.
1674
a36158ec
SM
16752020-07-02 Simon Marchi <simon.marchi@polymtl.ca>
1676
1677 * macroexp.h (macro_stringify): Return
1678 gdb::unique_xmalloc_ptr<char>.
1679 * macroexp.c (macro_stringify): Likewise.
1680 * macrotab.c (fixup_definition): Update.
1681
14d960c8
SM
16822020-07-02 Simon Marchi <simon.marchi@polymtl.ca>
1683
1684 * c-exp.y (scan_macro_expansion): Don't free `expansion`.
1685 (lex_one_token): Update.
1686 * macroexp.c (struct macro_buffer) <release>: Return
1687 gdb::unique_xmalloc_ptr<char>.
1688 (macro_stringify): Update.
1689 (macro_expand): Update.
1690 (macro_expand_next): Return gdb::unique_xmalloc_ptr<char>.
1691 * macroexp.h (macro_expand_next): Likewise.
1692
211d5b1c
SM
16932020-07-02 Simon Marchi <simon.marchi@efficios.com>
1694
1695 * macroexp.h (macro_lookup_ftype): Remove.
1696 (macro_expand, macro_expand_once, macro_expand_next): Remove
1697 lookup function parameters, add scope parameter.
1698 * macroexp.c (scan, substitute_args, expand, maybe_expand,
1699 macro_expand, macro_expand_once, macro_expand_next): Likewise.
1700 * macroscope.h (standard_macro_lookup): Change parameter type
1701 to macro_scope.
1702 * macroscope.c (standard_macro_lookup): Likewise.
1703 * c-exp.y (lex_one_token): Update.
1704 * macrocmd.c (macro_expand_command): Likewise.
1705 (macro_expand_once_command): Likewise.
1706
b1a35af2
SM
17072020-07-02 Simon Marchi <simon.marchi@polymtl.ca>
1708
1709 * inf-loop.c (inferior_event_handler): Remove client_data param.
1710 * inf-loop.h (inferior_event_handler): Likewise.
1711 * infcmd.c (step_1): Adjust.
1712 * infrun.c (proceed): Adjust.
1713 (fetch_inferior_event): Remove client_data param.
1714 (infrun_async_inferior_event_handler): Adjust.
1715 * infrun.h (fetch_inferior_event): Remove `void *` param.
1716 * linux-nat.c (handle_target_event): Adjust.
1717 * record-btrace.c (record_btrace_handle_async_inferior_event):
1718 Adjust.
1719 * record-full.c (record_full_async_inferior_event_handler):
1720 Adjust.
1721 * remote.c (remote_async_inferior_event_handler): Adjust.
1722
1cdf9e33
TT
17232020-07-01 Tom Tromey <tom@tromey.com>
1724
1725 * tui/tui-data.h (struct tui_win_info) <name>: Now pure virtual.
1726 * tui/tui-stack.h (struct tui_locator_window) <name>: New method.
1727
32c1e210
TT
17282020-07-01 Tom Tromey <tom@tromey.com>
1729
1730 * tui/tui-wingeneral.c (tui_win_info::refresh_window): Move from
1731 tui_gen_win_info.
1732 (tui_win_info::make_window): Merge with
1733 tui_gen_win_info::make_window.
1734 (tui_win_info::make_visible): Move from tui_gen_win_info.
1735 * tui/tui-win.c (tui_win_info::max_width): Move from
1736 tui_gen_win_info.
1737 * tui/tui-layout.h (class tui_layout_window) <m_window>: Change
1738 type.
1739 <window_factory>: Likewise.
1740 * tui/tui-layout.c (tui_win_info::resize): Move from
1741 tui_gen_win_info.
1742 (make_standard_window): Change return type.
1743 (get_locator_window, tui_get_window_by_name): Likewise.
1744 (tui_layout_window::apply): Remove a cast.
1745 * tui/tui-data.h (MIN_WIN_HEIGHT): Move earlier.
1746 (struct tui_win_info): Merge with tui_gen_win_info.
1747 (struct tui_gen_win_info): Remove.
1748
a30cb6da
TT
17492020-07-01 Tom Tromey <tom@tromey.com>
1750
1751 * tui/tui-stack.h (struct tui_locator_window): Derive from
1752 tui_win_info.
1753 <do_scroll_horizontal, do_scroll_vertical>: New methods.
1754 <can_box>: New method.
1755
1eb2161f
TT
17562020-07-01 Tom Tromey <tom@tromey.com>
1757
1758 * tui/tui-stack.h (struct tui_locator_window): Remove body.
1759
7134f2eb
TT
17602020-07-01 Tom Tromey <tom@tromey.com>
1761
1762 * tui/tui-regs.c (tui_data_window::display_registers_from)
1763 (tui_data_window::display_registers_from)
1764 (tui_data_window::first_data_item_displayed)
1765 (tui_data_window::delete_data_content_windows): Update.
1766 (tui_data_window::refresh_window, tui_data_window::no_refresh):
1767 Remove.
1768 (tui_data_window::check_register_values): Update.
1769 (tui_data_item_window::rerender): Add parameters. Update.
1770 (tui_data_item_window::refresh_window): Remove.
1771 * tui/tui-data.h (struct tui_gen_win_info) <no_refresh>: No longer
1772 virtual.
1773 * tui/tui-regs.h (struct tui_data_item_window): Don't derive from
1774 tui_gen_win_info.
1775 <refresh_window, max_height, min_height>: Remove.
1776 <rerender>: Add parameters.
1777 <x, y, visible>: New members.
1778 (struct tui_data_window) <refresh_window, no_refresh>: Remove.
1779 <m_item_width>: New member.
1780
22b7b041
TT
17812020-07-01 Tom Tromey <tom@tromey.com>
1782
1783 * tui/tui-regs.c (tui_data_window::show_register_group)
1784 (tui_data_window::check_register_values): Update.
1785 * tui/tui-regs.h (struct tui_data_item_window) <regno>: Rename
1786 from item_no.
1787
c9753adb
TT
17882020-07-01 Tom Tromey <tom@tromey.com>
1789
1790 * tui/tui-regs.c (tui_data_window::show_register_group): Remove
1791 useless "if".
1792
9ab26b4a
TT
17932020-07-01 Tom Tromey <tom@tromey.com>
1794
1795 * tui/tui-regs.c (tui_data_window::show_register_group): Update.
1796 * tui/tui-regs.h (struct tui_data_item_window) <name>: Remove.
1797
e555083f
TT
17982020-07-01 Tom Tromey <tom@tromey.com>
1799
1800 * tui/tui-stack.c (SINGLE_KEY): Move from tui-data.h
1801 * tui/tui-winsource.h (enum tui_line_or_address_kind)
1802 (struct tui_line_or_address): Move from tui-data.h.
1803 * tui/tui-win.c (DEFAULT_TAB_LEN): Move from tui-data.h.
1804 * tui/tui-data.h (DEFAULT_TAB_LEN): Move to tui-win.c.
1805 (tui_cmd_window, tui_source_window_base, tui_source_window)
1806 (tui_disasm_window): Don't declare.
1807 (enum tui_line_or_address_kind, struct tui_line_or_address): Move
1808 to tui-winsource.h.
1809 (SINGLE_KEY): Move to tui-stack.c.
1810
7a02bab7
TT
18112020-07-01 Tom Tromey <tom@tromey.com>
1812
1813 * tui/tui-regs.h (struct tui_data_item_window) <content>: Now a
1814 std::string.
1815 * tui/tui-regs.c (class tab_expansion_file): New.
1816 (tab_expansion_file::write): New method.
1817 (tui_register_format): Change return type. Use
1818 tab_expansion_file.
1819 (tui_get_register, tui_data_window::display_registers_from)
1820 (tui_data_item_window::rerender): Update.
1821 * tui/tui-io.h (tui_expand_tabs): Don't declare.
1822 * tui/tui-io.c (tui_expand_tabs): Remove.
1823
ea68593b
TT
18242020-07-01 Tom Tromey <tom@tromey.com>
1825
1826 * tui/tui-regs.c (tui_reggroup_completer): Use complete_on_enum.
1827
a8caed5d
FS
18282020-07-01 Fangrui Song <maskray@google.com>
1829
1830 * dwarf2/read.c (lnp_state_machine::check_line_address): Test -1.
1831
9cdf9820
AKS
18322020-07-01 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
1833
1834 * dwarf2/read.c (set_die_type): Removed conditions to restrict
1835 forms for DW_AT_associated and DW_AT_allocated attributes,
1836 which is already checked in function attr_to_dynamic_prop.
1837
a1520ad8
TT
18382020-06-30 Tom Tromey <tromey@adacore.com>
1839
1840 * dwarf2/read.c (quirk_rust_enum): Correctly call
1841 alloc_rust_variant for default-less enum.
1842
5ac58899
TT
18432020-06-30 Tom Tromey <tromey@adacore.com>
1844
1845 PR build/26183:
1846 * ada-lang.c (ada_lookup_name_info::ada_lookup_name_info): Use
1847 gdb::to_string.
1848
19b187a9
SM
18492020-06-29 Simon Marchi <simon.marchi@efficios.com>
1850
1851 * gdbarch.sh (displaced_step_copy_insn): Update doc.
1852 * gdbarch.h: Re-generate.
1853
cd4c4c07
TT
18542020-06-28 Tom Tromey <tom@tromey.com>
1855
1856 * command.h (cmd_types): Remove.
1857 (cmd_type): Don't declare.
1858 * cli/cli-decode.h (enum cmd_types): Uncomment. No longer a
1859 typedef.
1860 * cli/cli-cmds.c (setting_cmd): Use cmd->type directly.
1861 * cli/cli-decode.c (cmd_type): Remove.
1862
05779d57
PA
18632020-06-27 Pedro Alves <palves@redhat.com>
1864
1865 * fork-child.c (prefork_hook): Adjust.
1866 * infcmd.c (set_inferior_io_terminal, get_inferior_io_terminal):
1867 Delete.
1868 (set_inferior_tty_command, show_inferior_tty_command): Adjust.
1869 * inferior.c (inferior::set_tty, inferior::tty): New methods.
1870 * inferior.h (set_inferior_io_terminal, get_inferior_io_terminal):
1871 Remove declarations.
1872 (struct inferior) <set_tty, tty>: New methods.
1873 (struct inferior) <terminal>: Rename to ...
1874 (struct inferior) <m_terminal>: ... this and make private.
1875 * main.c (captured_main_1): Adjust.
1876 * mi/mi-cmd-env.c (mi_cmd_inferior_tty_set): Adjust.
1877 (mi_cmd_inferior_tty_show): Adjust.
1878 * nto-procfs.c (nto_procfs_target::create_inferior): Adjust.
1879 * windows-nat.c (windows_nat_target::create_inferior): Adjust.
1880
1776e3e5
NA
18812020-06-26 Nick Alcock <nick.alcock@oracle.com>
1882
1883 * configure.ac: Add --enable-libctf: handle --disable-static
1884 properly.
1885 * acinclude.m4: sinclude ../config/enable.m4.
1886 * Makefile.in (aclocal_m4_deps): Adjust accordingly.
1887 (LIBCTF): Substitute in.
1888 (CTF_DEPS): New, likewise.
1889 (CLIBS): libctf needs symbols from libbfd: move earlier.
1890 (CDEPS): Use CTF_DEPS, not LIBCTF, now LIBCTF can include rpath
1891 flags.
1892 * ctfread.c: Surround in ENABLE_LIBCTF.
1893 (elfctf_build_psymtabs) [!ENABLE_LIBCTF]: New stub.
1894 * configure: Regenerate.
1895 * config.in: Likewise.
1896
58373b80
SM
18972020-06-25 Simon Marchi <simon.marchi@efficios.com>
1898
1899 * infcmd.c (set_inferior_io_terminal): Use make_unique_xstrdup.
1900
277474ee
SM
19012020-06-25 Simon Marchi <simon.marchi@efficios.com>
1902
1903 * inferior.h (struct inferior) <terminal>: Change type to
1904 gdb::unique_xmalloc_ptr<char>.
1905 * inferior.c (inferior::~inferior): Don't free inf->terminal.
1906 * infcmd.c (set_inferior_io_terminal): Don't free terminal
1907 field, adjust to unique pointer.
1908 (get_inferior_io_terminal): Adjust to unique pointer.
1909
6d74da72
AB
19102020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
1911
1912 * riscv-tdep.c (riscv_print_registers_info): Loop over all
1913 registers, not just the known core set of registers.
1914
2e52d038
AB
19152020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
1916
1917 * riscv-tdep.c (riscv_register_name): Return NULL for duplicate
1918 fflags, frm, and fcsr registers.
1919 (riscv_register_reggroup_p): Remove unknown CSRs from save and
1920 restore groups.
1921 (riscv_tdesc_unknown_reg): New function.
1922 (riscv_gdbarch_init): Pass riscv_tdesc_unknown_reg to
1923 tdesc_use_registers.
1924 * riscv-tdep.h (struct gdbarch_tdep): Add
1925 unknown_csrs_first_regnum, unknown_csrs_count,
1926 duplicate_fflags_regnum, duplicate_frm_regnum, and
1927 duplicate_fcsr_regnum fields.
1928
be64fd07
AB
19292020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
1930
1931 * target-descriptions.c (tdesc_use_registers): Add new parameter a
1932 callback, use the callback (when not null) to help number unknown
1933 registers.
1934 * target-descriptions.h (tdesc_unknown_register_ftype): New typedef.
1935 (tdesc_use_registers): Add extra parameter to declaration.
1936
3b9fce96
AB
19372020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
1938
1939 * riscv-tdep.c (value_of_riscv_user_reg): Moved to here from later
1940 in the file.
1941 (class riscv_pending_register_alias): Likewise.
1942 (riscv_register_feature::register_info): Change 'required_p' field
1943 to 'required', and change its type. Add 'check' member function.
1944 (riscv_register_feature::register_info::check): Define new member
1945 function.
1946 (riscv_xreg_feature): Change initialisation of 'required' field.
1947 (riscv_freg_feature): Likewise.
1948 (riscv_virtual_feature): Likewise.
1949 (riscv_csr_feature): Likewise.
1950 (riscv_check_tdesc_feature): Take extra parameter, the csr
1951 tdesc_feature, rewrite the function to use the new
1952 riscv_register_feature::register_info::check function.
1953 (riscv_gdbarch_init): Pass the csr tdesc_feature where needed.
1954
865bad26
AB
19552020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
1956
1957 * features/Makefile: Remove all references to the deleted files
1958 below.
1959 * features/riscv/32bit-csr.c: Deleted.
1960 * features/riscv/32bit-csr.xml: Deleted.
1961 * features/riscv/64bit-csr.c: Deleted.
1962 * features/riscv/64bit-csr.xml: Deleted.
1963 * features/riscv/rebuild-csr-xml.sh: Deleted.
1964
ed69cbc8
AB
19652020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
1966
1967 * riscv-tdep.c (struct riscv_register_feature::register_info): Fix
1968 whitespace error for declaration of names member variable.
1969 (struct riscv_register_feature): Add new prefer_first_name member
1970 variable, and fix whitespace error in declaration of registers.
1971 (riscv_xreg_feature): Initialize prefer_first_name field.
1972 (riscv_freg_feature): Likewise.
1973 (riscv_virtual_feature): Likewise.
1974 (riscv_csr_feature): Likewise.
1975 (riscv_register_name): Expand on comments. Remove register name
1976 modifications for CSR and virtual registers.
1977
4445e8f5
AB
19782020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
1979
1980 * riscv-tdep.c (struct riscv_register_feature): Fix whitespace
1981 errors.
1982
767a879e
AB
19832020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
1984
1985 * riscv-tdep.c (riscv_create_csr_aliases): Handle csr aliases from
1986 riscv-opc.h.
1987 (class riscv_pending_register_alias): New class.
1988 (riscv_check_tdesc_feature): Take vector of pending aliases and
1989 populate it as appropriate.
1990 (riscv_setup_register_aliases): Delete.
1991 (riscv_gdbarch_init): Create vector of pending aliases and pass it
1992 to riscv_check_tdesc_feature in all cases. Use the vector to
1993 create the register aliases.
1994
bb6e55f3
RO
19952020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1996
1997 * sol2-tdep.c (sol2_static_transform_name): Remove.
1998 (sol2_init_abi): Don't register it.
1999 * gdbarch.sh (static_transform_name): Remove.
2000 * gdbarch.c, gdbarch.h: Regenerate.
2001
2002 * dbxread.c (read_dbx_symtab) <'S'>: Remove call to
2003 gdbarch_static_transform_name.
2004 * mdebugread.c (parse_partial_symbols) <'S'>: Likewise.
2005 * stabsread.c (define_symbol) <'X'>: Remove.
2006 (define_symbol) <'S'>: Remove gdbarch_static_transform_name
2007 handling.
2008 <'V'>: Likewise.
2009 * xcoffread.c (scan_xcoff_symtab): Remove gdbarch.
2010 <'S'>: Remove call to gdbarch_static_transform_name.
2011
c6d36836
RO
20122020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2013
2014 * procfs.c (procfs_pre_trace): New function.
2015 (procfs_target::create_inferior): Pass it to fork_inferior.
2016
a7e6196b
RO
20172020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2018
2019 * configure.tgt <sparc-*-linux*> (gdb_target_obs): Remove
2020 sparc-sol2-tdep.o, sol2-tdep.o, sparc64-sol2-tdep.o.
2021 <sparc64-*-linux*> (gdb_target_obs): Remove sparc64-sol2-tdep.o,
2022 sol2-tdep.o, sparc-sol2-tdep.o.
2023 * sparc-sol2-tdep.c (sparc32_sol2_init_abi): Make static.
2024 * sparc-tdep.h (sparc32_sol2_init_abi): Remove.
2025 * sparc64-sol2-tdep.c (sparc64_sol2_init_abi): Make static.
2026 * sparc64-tdep.h (sparc64_sol2_init_abi): Remove.
2027
d412e696
RO
20282020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2029
2030 * amd64-sol2-tdep.c (amd64_sol2_sigtramp_p): Remove.
2031 (amd64_sol2_init_abi): Use sol2_sigtramp_p.
2032 Call sol2_init_abi.
2033 Remove calls to set_gdbarch_skip_solib_resolver,
2034 set_gdbarch_core_pid_to_str.
2035 * i386-sol2-tdep.c (i386_sol2_sigtramp_p): Remove.
2036 (i386_sol2_static_transform_name): Remove.
2037 (i386_sol2_init_abi): Call sol2_init_abi.
2038 Remove calls to set_gdbarch_sofun_address_maybe_missing,
2039 set_gdbarch_static_transform_name,
2040 set_gdbarch_skip_solib_resolver, set_gdbarch_core_pid_to_str.
2041 Use sol2_sigtramp_p.
2042 * sol2-tdep.c (sol2_pc_in_sigtramp): New function.
2043 (sol2_sigtramp_p): New function.
2044 (sol2_static_transform_name): New function.
2045 (sol2_skip_solib_resolver, sol2_core_pid_to_str): Make static.
2046 (sol2_init_abi): New function.
2047 * sol2-tdep.h (sol2_sigtramp_p, sol2_init_abi): Declare.
2048 (sol2_skip_solib_resolver, sol2_core_pid_to_str): Remove.
2049 * sparc-sol2-tdep.c (sparc_sol2_pc_in_sigtramp): Remove.
2050 (sparc32_sol2_sigtramp_frame_sniffer): Just call sol2_sigtramp_p.
2051 (sparc_sol2_static_transform_name): Remove.
2052 (sparc32_sol2_init_abi): Call sol2_init_abi.
2053 Remove calls to set_gdbarch_sofun_address_maybe_missing,
2054 set_gdbarch_static_transform_name,
2055 set_gdbarch_skip_solib_resolver,
2056 set_gdbarch_core_pid_to_str.
2057 * sparc-tdep.h (sparc_sol2_pc_in_sigtramp)
2058 (sparc_sol2_static_transform_name): Remove
2059 * sparc64-sol2-tdep.c (sparc64_sol2_sigtramp_frame_sniffer): Just
2060 call sol2_sigtramp_p.
2061 (sparc64_sol2_init_abi): Call sol2_init_abi.
2062 Remove calls to set_gdbarch_sofun_address_maybe_missing,
2063 set_gdbarch_static_transform_name,
2064 set_gdbarch_skip_solib_resolver, set_gdbarch_core_pid_to_str.
2065
a8654e7d
PW
20662020-06-24 Philippe Waroquiers <philippe.waroquiers@skynet.be>
2067
2068 * symfile-add-flags.h: New flag SYMFILE_ALWAYS_CONFIRM.
2069 * exec.c (validate_exec_file): If from_tty, set both
2070 SYMFILE_VERBOSE (== from_tty) and SYMFILE_ALWAYS_CONFIRM.
2071 * symfile.c (symbol_file_add_with_addrs): if always_confirm
2072 and from_tty, unconditionally ask a confirmation.
2073
caa7fd04
AB
20742020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
2075
2076 * target-descriptions.c (tdesc_architecture_name): Protect against
2077 NULL pointer dereference.
2078 (maint_print_xml_tdesc_cmd): New function.
2079 (_initialize_target_descriptions): Register new 'maint print
2080 xml-tdesc' command and give it the filename completer.
2081 * NEWS: Mention new 'maint print xml-tdesc' command.
2082
fbf42f4e
AB
20832020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
2084
2085 * target-descriptions.c (class tdesc_compatible_info): New class.
2086 (struct target_desc): Change type of compatible vector.
2087 (tdesc_compatible_p): Update for change in type of
2088 target_desc::compatible.
2089 (tdesc_compatible_info_list): New function.
2090 (tdesc_compatible_info_arch_name): New function.
2091 (tdesc_add_compatible): Update for change in type of
2092 target_desc::compatible.
2093 (print_c_tdesc::visit_pre): Likewise.
2094
20821f4e
AB
20952020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
2096
2097 * target-descriptions.c (print_c_tdesc::print_c_tdesc): Change
2098 whitespace to underscore.
2099 (maint_print_c_tdesc_cmd): Use fake filename for target
2100 descriptions that came from the target.
2101 (_initialize_target_descriptions): Add filename command completion
2102 for 'maint print c-tdesc'.
2103
1fb5ee62
SM
21042020-06-23 Simon Marchi <simon.marchi@efficios.com>
2105
2106 * dwarf2/loc.c (decode_debug_loclists_addresses): Add empty
2107 lines.
2108
fc3ecb3e
SM
21092020-06-23 Simon Marchi <simon.marchi@efficios.com>
2110
2111 * dwarf2/loc.c (decode_debug_loc_dwo_addresses): Add empty
2112 lines.
2113 (dwarf2_find_location_expression): Likewise.
2114 (call_site_parameter_matches): Likewise.
2115 (dwarf2_compile_expr_to_ax): Likewise.
2116 (disassemble_dwarf_expression): Likewise.
2117 (loclist_describe_location): Likewise.
2118
236ef034
PA
21192020-06-23 Pedro Alves <palves@redhat.com>
2120
2121 * gdbarch-selftests.c: Don't include inferior.h, gdbthread.h or
2122 progspace-and-thread.h. Include scoped-mock-context.h instead.
2123 (register_to_value_test): Use scoped_mock_context.
2124 * regcache.c: Include "scoped-mock-context.h".
2125 (cooked_read_test): Don't error out if a target is already pushed.
2126 Use scoped_mock_context. Adjust.
2127 * scoped-mock-context.h: New file.
2128
39e7ecca
AB
21292020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
2130
2131 * ada-lang.c (ada_language_data): Delete la_is_string_type_p
2132 initializer.
2133 (ada_language::is_string_type_p): New member function.
2134 * c-lang.c (c_language_data): Delete la_is_string_type_p
2135 initializer.
2136 (cplus_language_data): Likewise.
2137 (asm_language_data): Likewise.
2138 (minimal_language_data): Likewise.
2139 * d-lang.c (d_language_data): Likewise.
2140 * f-lang.c (f_is_string_type_p): Delete function, implementation
2141 moved to f_language::is_string_type_p.
2142 (f_language_data): Delete la_is_string_type_p initializer.
2143 (f_language::is_string_type_p): New member function,
2144 implementation from f_is_string_type_p.
2145 * go-lang.c (go_is_string_type_p): Delete function, implementation
2146 moved to go_language::is_string_type_p.
2147 (go_language_data): Delete la_is_string_type_p initializer.
2148 (go_language::is_string_type_p): New member function,
2149 implementation from go_is_string_type_p.
2150 * language.c (language_defn::is_string_type_p): Define new member
2151 function.
2152 (default_is_string_type_p): Make static, add comment copied from
2153 header file.
2154 (unknown_language_data): Delete la_is_string_type_p initializer.
2155 (unknown_language::is_string_type_p): New member function.
2156 (auto_language_data): Delete la_is_string_type_p initializer.
2157 (auto_language::is_string_type_p): New member function.
2158 * language.h (language_data): Delete la_is_string_type_p field.
2159 (language_defn::is_string_type_p): Declare new function.
2160 (default_is_string_type_p): Delete desclaration, move comment to
2161 definition.
2162 * m2-lang.c (m2_is_string_type_p): Delete function, implementation
2163 moved to m2_language::is_string_type_p.
2164 (m2_language_data): Delete la_is_string_type_p initializer.
2165 (m2_language::is_string_type_p): New member function,
2166 implementation from m2_is_string_type_p.
2167 * objc-lang.c (objc_language_data): Delete la_is_string_type_p
2168 initializer.
2169 * opencl-lang.c (opencl_language_data): Likewise.
2170 * p-lang.c (pascal_is_string_type_p): Delete function,
2171 implementation moved to pascal_language::is_string_type_p.
2172 (pascal_language_data): Delete la_is_string_type_p initializer.
2173 (pascal_language::is_string_type_p): New member function,
2174 implementation from pascal_is_string_type_p.
2175 * rust-lang.c (rust_is_string_type_p): Delete function,
2176 implementation moved to rust_language::is_string_type_p.
2177 (rust_language_data): Delete la_is_string_type_p initializer.
2178 (rust_language::is_string_type_p): New member function,
2179 implementation from rust_is_string_type_p.
2180 * valprint.c (val_print_scalar_or_string_type_p): Update call to
2181 is_string_type_p.
2182
4ffc13fb
AB
21832020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
2184
2185 * ada-lang.c (ada_language_data): Delete la_print_typedef
2186 initializer.
2187 (ada_language::print_typedef): New member function.
2188 * c-lang.c (c_language_data): Delete la_print_typedef initializer.
2189 (cplus_language_data): Likewise.
2190 (asm_language_data): Likewise.
2191 (minimal_language_data): Likewise.
2192 * d-lang.c (d_language_data): Likewise.
2193 * f-lang.c (f_language_data): Likewise.
2194 (f_language::print_typedef): New member function.
2195 * go-lang.c (go_language_data): Delete la_print_typedef
2196 initializer.
2197 * language.c (language_defn::print_typedef): Define member
2198 function.
2199 (unknown_language_data): Delete la_print_typedef initializer.
2200 (unknown_language::print_typedef): New member function.
2201 (auto_language_data): Delete la_print_typedef initializer.
2202 (auto_language::print_typedef): New member function.
2203 * language.h (language_data): Delete la_print_typedef field.
2204 (language_defn::print_typedef): Declare new member function.
2205 (LA_PRINT_TYPEDEF): Update call to print_typedef.
2206 (default_print_typedef): Delete declaration.
2207 * m2-lang.c (m2_language_data): Delete la_print_typedef
2208 initializer.
2209 (m2_language::print_typedef): New member function.
2210 * objc-lang.c (objc_language_data): Delete la_print_typedef
2211 initializer.
2212 * opencl-lang.c (opencl_language_data): Likewise.
2213 * p-lang.c (pascal_language_data): Likewise.
2214 (pascal_language::print_typedef): New member function.
2215 * rust-lang.c (rust_print_typedef): Delete function,
2216 implementation moved to rust_language::print_typedef.
2217 (rust_language): Delete la_print_typedef initializer.
2218 (rust_language::print_typedef): New member function,
2219 implementation from rust_print_typedef.
2220 * typeprint.c (default_print_typedef): Delete.
2221
d711ee67
AB
22222020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
2223
2224 * ada-lang.c (ada_language_data): Delete la_printstr initializer.
2225 (ada_language::printstr): New member function.
2226 * c-lang.c (c_language_data): Delete la_printstr initializer.
2227 (cplus_language_data): Likewise.
2228 (asm_language_data): Likewise.
2229 (minimal_language_data): Likewise.
2230 * d-lang.c (d_language_data): Likewise.
2231 * f-lang.c (f_printstr): Rename to f_language::printstr.
2232 (f_language_data): Delete la_printstr initializer.
2233 (f_language::printstr): New member function, implementation from
2234 f_printstr.
2235 * go-lang.c (go_language_data): Delete la_printstr initializer.
2236 * language.c (language_defn::printstr): Define new member
2237 function.
2238 (unk_lang_printstr): Delete.
2239 (unknown_language_data): Delete la_printstr initializer.
2240 (unknown_language::printstr): New member function.
2241 (auto_language_data): Delete la_printstr initializer.
2242 (auto_language::printstr): New member function.
2243 * language.h (language_data): Delete la_printstr field.
2244 (language_defn::printstr): Declare new member function.
2245 (LA_PRINT_STRING): Update call to printstr.
2246 * m2-lang.c (m2_printstr): Rename to m2_language::printstr.
2247 (m2_language_data): Delete la_printstr initializer.
2248 (m2_language::printstr): New member function, implementation from
2249 m2_printstr.
2250 * objc-lang.c (objc_language_data): Delete la_printstr
2251 initializer.
2252 * opencl-lang.c (opencl_language_data): Likewise.
2253 * p-lang.c (pascal_printstr): Rename to pascal_language::printstr.
2254 (pascal_language_data): Delete la_printstr initializer.
2255 (pascal_language::printstr): New member function, implementation
2256 from pascal_printstr.
2257 * p-lang.h (pascal_printstr): Delete declaration.
2258 * rust-lang.c (rust_printstr): Update header comment.
2259 (rust_language_data): Delete la_printstr initializer.
2260 (rust_language::printstr): New member function.
2261
52b50f2c
AB
22622020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
2263
2264 * ada-lang.c (ada_language_data): Delete la_printchar initializer.
2265 (ada_language::printchar): New member function.
2266 * c-lang.c (c_language_data): Delete la_printchar initializer.
2267 (cplus_language_data): Likewise.
2268 (asm_language_data): Likewise.
2269 (minimal_language_data): Likewise.
2270 * d-lang.c (d_language_data): Likewise.
2271 * f-lang.c (f_printchar): Rename to f_language::printchar.
2272 (f_language_data): Delete la_printchar initializer.
2273 (f_language::printchar): New member function, implementation from
2274 f_printchar.
2275 * go-lang.c (go_language_data): Delete la_printchar initializer.
2276 * language.c (unk_lang_printchar): Delete.
2277 (language_defn::printchar): Define new member function.
2278 (unknown_language_data): Delete la_printchar initializer.
2279 (unknown_language::printchar): New member function.
2280 (auto_language_data): Delete la_printchar initializer.
2281 (auto_language::printchar): New member function.
2282 * language.h (language_data): Delete la_printchar field.
2283 (language_defn::printchar): Declare new member function.
2284 (LA_PRINT_CHAR): Update call to printchar.
2285 * m2-lang.c (m2_language_data): Delete la_printchar initializer.
2286 (m2_language::printchar): New member function.
2287 * objc-lang.c (objc_language_data): Delete la_printchar
2288 initializer.
2289 * opencl-lang.c (opencl_language_data): Likewise.
2290 * p-lang.c (pascal_language_data): Delete la_printchar
2291 initializer.
2292 (pascal_language::printchar): New member function.
2293 * rust-lang.c (rust_printchar): Rename to
2294 rust_language::printchar.
2295 (rust_language_data): Delete la_printchar initializer.
2296 (rust_language::printchar): New member function, implementation
2297 from rust_printchar.
2298
ec8cec5b
AB
22992020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
2300
2301 * ada-lang.c (emit_char): Renamed to ada_language::emitchar.
2302 (ada_language_data): Delete la_emitchar initializer.
2303 (ada_language::emitchar): New member function, implementation from
2304 emit_char.
2305 * c-lang.c (c_language_data): Delete la_emitchar initializer.
2306 (cplus_language_data): Likewise.
2307 (asm_language_data): Likewise.
2308 (minimal_language_data): Likewise.
2309 * d-lang.c (d_language_data): Likewise.
2310 * f-lang.c (f_emit_char): Rename to f_language::emitchar.
2311 (f_language_data): Delete la_emitchar initializer.
2312 (f_language::emitchar): New member function, implementation from
2313 f_emit_char.
2314 * go-lang.c (go_language_data): Delete la_emitchar initializer.
2315 * language.c (unk_lang_emit_char): Delete.
2316 (language_defn::emitchar): New member function definition.
2317 (unknown_language_data): Delete la_emitchar initializer.
2318 (unknown_language::emitchar): New member function.
2319 (auto_language_data): Delete la_emitchar initializer.
2320 (auto_language::emitchar): New member function.
2321 * language.h (language_data): Delete la_emitchar field.
2322 (language_defn::emitchar): New member field declaration.
2323 (LA_EMIT_CHAR): Update call to emitchar.
2324 * m2-lang.c (m2_emit_char): Rename to m2_language::emitchar.
2325 (m2_language_data): Delete la_emitchar initializer.
2326 (m2_language::emitchar): New member function, implementation from
2327 m2_emit_char.
2328 * objc-lang.c (objc_language_data): Delete la_emitchar
2329 initializer.
2330 * opencl-lang.c (opencl_language_data): Likewise.
2331 * p-lang.c (pascal_emit_char): Rename to pascal_language::emitchar.
2332 (pascal_language_data): Delete la_emitchar initializer.
2333 (pascal_language::emitchar): New member function, implementation
2334 from pascal_emit_char.
2335 * rust-lang.c (rust_emitchar): Rename to rust_language::emitchar.
2336 (rust_language_data): Delete la_emitchar initializer.
2337 (rust_language::emitchar): New member function, implementation
2338 from rust_emitchar.
2339
1bf9c363
AB
23402020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
2341
2342 * ada-lang.c (resolve): Rename to ada_language::post_parser.
2343 (ada_language_data): Delete la_post_parser initializer.
2344 (ada_language::post_parser): New member function.
2345 * c-lang.c (c_language_data): Delete la_post_parser initializer.
2346 (cplus_language_data): Likewise.
2347 (asm_language_data): Likewise.
2348 (minimal_language_data): Likewise.
2349 * d-lang.c (d_language_data): Likewise.
2350 * f-lang.c (f_language_data): Likewise.
2351 * go-lang.c (go_language_data): Likewise.
2352 * language.c (unknown_language_data): Likewise.
2353 (auto_language_data): Likewise.
2354 * language.h (language_data): Delete la_post_parser field.
2355 (language_defn::post_parser): New member function.
2356 * m2-lang.c (m2_language_data): Delete la_post_parser initializer.
2357 * objc-lang.c (objc_language_data): Likewise.
2358 * opencl-lang.c (opencl_language_data): Likewise.
2359 * p-lang.c (pascal_language_data): Likewise.
2360 * parse.c (parse_exp_in_context): Update call to post_parser.
2361 (null_post_parser): Delete definition.
2362 * parser-defs.h (null_post_parser): Delete declaration.
2363 * rust-lang.c (rust_language_data): Delete la_post_parser
2364 initializer.
2365
87afa652
AB
23662020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
2367
2368 * ada-lang.c (parse): Rename to ada_language::parser.
2369 (ada_language_data): Delete la_parser initializer.
2370 (ada_language::parser): New member function, implementation from
2371 parse.
2372 * c-lang.c (c_language_data): Delete la_parser initializer.
2373 (cplus_language_data): Likewise.
2374 (asm_language_data): Likewise.
2375 (minimal_language_data): Likewise.
2376 * d-lang.c (d_language_data): Likewise.
2377 (d_language::parser): New member function.
2378 * f-lang.c (f_language_data): Delete la_parser initializer.
2379 (f_language::parser): New member function.
2380 * go-lang.c (go_language_data): Delete la_parser initializer.
2381 (go_language::parser): New member function.
2382 * language.c (unk_lang_parser): Delete.
2383 (language_defn::parser): Define new member function.
2384 (unknown_language_data): Delete la_parser initializer.
2385 (unknown_language::parser): New member function.
2386 (auto_language_data): Delete la_parser initializer.
2387 (auto_language::parser): New member function.
2388 * language.h (language_data): Delete la_parser field.
2389 (language_defn::parser): Declare new member function.
2390 * m2-lang.c (m2_language_data): Delete la_parser initializer.
2391 (m2_language::parser): New member function.
2392 * objc-lang.c (objc_language_data): Delete la_parser initializer.
2393 * opencl-lang.c (opencl_language_data): Likewise.
2394 * p-lang.c (pascal_language_data): Likewise.
2395 (pascal_language::parser): New member function.
2396 * parse.c (parse_exp_in_context): Update call to parser.
2397 * rust-lang.c (rust_language_data): Delete la_parser initializer.
2398 (rust_language::parser): New member function.
2399
37825800
AB
24002020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
2401
2402 * top.c (print_gdb_configuration): Print --with-python-libdir
2403 configuration value.
2404
5b860c93
PW
24052020-06-22 Philippe Waroquiers <philippe.waroquiers@skynet.be>
2406
2407 * NEWS: Mention change to the alias command.
2408
cf00cd6f
PW
24092020-06-22 Philippe Waroquiers <philippe.waroquiers@skynet.be>
2410
2411 * cli/cli-cmds.c (lookup_cmd_for_default_args)
2412 (alias_command_completer)
2413 (make_alias_options_def_group): New functions.
2414 (alias_opts, alias_option_defs): New struct and array.
2415 (alias_usage_error): Update usage.
2416 (alias_command): Handles optional DEFAULT-ARGS... arguments.
2417 Use option framework.
2418 (_initialize_cli_cmds): Update alias command help.
2419 Update aliases command help.
2420 (show_user):
2421 Add NULL for new default_args lookup_cmd argument.
2422 (valid_command_p): Rename to validate_aliased_command.
2423 Add NULL for new default_args lookup_cmd argument. Verify that the
2424 aliased_command has no default args.
2425 * cli/cli-decode.c (help_cmd): Show aliases definitions.
2426 (lookup_cmd_1, lookup_cmd): New argument default_args.
2427 (add_alias_cmd):
2428 Add NULL for new default_args lookup_cmd argument.
2429 (print_help_for_command): Show default args under the layout
2430 alias some_alias = some_aliased_cmd some_alias_default_arg.
2431 * cli/cli-decode.h (struct cmd_list_element): New member default_args.
2432 xfree default_args in destructor.
2433 * cli/cli-script.c (process_next_line, do_define_command):
2434 Add NULL for new default_args lookup_cmd argument.
2435 * command.h: Declare new default_args argument in lookup_cmd
2436 and lookup_cmd_1.
2437 * completer.c (complete_line_internal_1):
2438 Add NULL for new default_args lookup_cmd or lookup_cmd_1 argument.
2439 * guile/scm-cmd.c (gdbscm_parse_command_name): Likewise.
2440 * guile/scm-param.c (add_setshow_generic, pascm_parameter_defined_p):
2441 Likewise.
2442 * infcmd.c (_initialize_infcmd): Likewise.
2443 * python/py-auto-load.c (gdbpy_initialize_auto_load): Likewise.
2444 * python/py-cmd.c (gdbpy_parse_command_name): Likewise.
2445 * python/py-param.c (add_setshow_generic): Likewise.
2446 * remote.c (_initialize_remote): Likewise.
2447 * top.c (execute_command): Prepend default_args if command has some.
2448 (set_verbose):
2449 Add NULL for new default_args lookup_cmd or lookup_cmd_1 argument.
2450 * tracepoint.c (validate_actionline, encode_actions_1):
2451 Add NULL for new default_args lookup_cmd or lookup_cmd_1 argument.
2452
bd920864
TBA
24532020-06-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2454
2455 * jit.c (jit_read_descriptor): Use bool as the return type.
2456 (jit_breakpoint_re_set_internal): Use bool as the return type.
2457 Invert the return value logic; return true if the jit breakpoint
2458 has been successfully initialized.
2459 (jit_inferior_init): Update the call to
2460 jit_breakpoint_re_set_internal.
2461
f8098322
PA
24622020-06-22 Pedro Alves <palves@redhat.com>
2463
2464 PR gdb/25939
2465 * procfs.c (procfs_target::wait): Don't reference inferior_ptid.
2466 Use the current inferior instead. Don't return
2467 TARGET_WAITKIND_SPURIOUS/inferior_ptid -- instead continue and
2468 wait again.
2469 * sol-thread.c (sol_thread_target::wait): Don't reference
2470 inferior_ptid.
2471 (ps_lgetregs, ps_lsetregs, ps_lgetfpregs, ps_lsetfpregs)
2472 (sol_update_thread_list_callback): Use the current inferior's pid
2473 instead of inferior_ptid.
2474
196535a6
RO
24752020-06-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2476
2477 * procfs.c: Cleanup many comments.
2478
2479 (READ_WATCHFLAG, WRITE_WATCHFLAG, EXEC_WATCHFLAG)
2480 (AFTER_WATCHFLAG): Replace by value.
2481
2482 (MAIN_PROC_NAME_FORMAT): Inline ...
2483 (create_procinfo): ... here.
2484
2485 (procfs_debug_inferior): Remove SYS_exec handling.
2486 (syscall_is_exec): Likewise.
2487 (procfs_set_exec_trap): Likewise.
2488
2489 (syscall_is_lwp_exit): Inline in callers.
2490 (syscall_is_exit): Likewise.
2491 (syscall_is_exec): Likewise.
2492 (syscall_is_lwp_create): Likewise.
2493
2494 (invalidate_cache): Remove #if 0 code.
2495
2496 (make_signal_thread_runnable): Remove.
2497 (procfs_target::resume): Remove #if 0 code.
2498
cf6f3e86
RO
24992020-06-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2500
2501 PR gdb/25939
2502 * procfs.c (procfs_target::procfs_init_inferior): Move push_target
2503 call ...
2504 (procfs_target::create_inferior): ... here.
2505
48e9cc84
PW
25062020-06-21 Philippe Waroquiers <philippe.waroquiers@skynet.be>
2507
2508 * exec.c (validate_exec_file): Ensure the build-id is up to
2509 date by calling reopen_exec_file (that checks file timestamp
2510 to decide to re-read the file).
2511
3922b302
PA
25122020-06-18 Pedro Alves <palves@redhat.com>
2513
2514 PR gdb/25412
2515 * gdbthread.h (delete_thread, delete_thread_silent)
2516 (find_thread_ptid): Update comments.
2517 * thread.c (current_thread_): New global.
2518 (is_current_thread): Move higher, and reimplement.
2519 (inferior_thread): Reimplement.
2520 (set_thread_exited): Use bool. Add assertions.
2521 (add_thread_silent): Simplify thread-reuse handling by always
2522 calling delete_thread.
2523 (delete_thread): Remove intro comment.
2524 (find_thread_ptid): Skip exited threads.
2525 (switch_to_thread_no_regs): Write to current_thread_.
2526 (switch_to_no_thread): Check CURRENT_THREAD_ instead of
2527 INFERIOR_PTID. Clear current_thread_.
2528
6dbdab44
PA
25292020-06-18 Pedro Alves <palves@redhat.com>
2530
2531 * aix-thread.c (pd_update): Use switch_to_thread.
2532
2da4b788
PA
25332020-06-18 Pedro Alves <palves@redhat.com>
2534
2535 * ravenscar-thread.c (ravenscar_thread_target): Update.
2536 (ravenscar_thread_target::update_inferior_ptid): Rename to ...
2537 (ravenscar_thread_target::add_active_thread): ... this. Don't
2538 set m_base_ptid here. Update to avoid referencing inferior_ptid.
2539 (ravenscar_thread_target::wait): Don't write to inferior_ptid.
2540
50838d1b
PA
25412020-06-18 Pedro Alves <palves@redhat.com>
2542
2543 * nat/windows-nat.c (current_windows_thread): Remove.
2544 * nat/windows-nat.h (current_windows_thread): Remove.
2545 * windows-nat.c (windows_nat_target::stopped_by_sw_breakpoint):
2546 Adjust.
2547 (display_selectors): Adjust to fetch the current
2548 windows_thread_info based on inferior_ptid.
2549 (fake_create_process): No longer write to current_windows_thread.
2550 (windows_nat_target::get_windows_debug_event):
2551 Don't set inferior_ptid or current_windows_thread.
2552 (windows_nat_target::wait): Adjust to not rely on
2553 current_windows_thread.
2554 (do_initial_windows_stuff): Now a method of windows_nat_target.
2555 Switch to the last_ptid thread.
2556 (windows_nat_target::attach): Adjust.
2557 (windows_nat_target::detach): Use switch_to_no_thread instead of
2558 writing to inferior_ptid directly.
2559 (windows_nat_target::create_inferior): Adjust.
2560
31ce04e9
PA
25612020-06-18 Pedro Alves <palves@redhat.com>
2562
2563 * windows-nat.c (do_initial_windows_stuff): No longer set inferior_ptid.
2564
1ee1a363
PA
25652020-06-18 Pedro Alves <palves@redhat.com>
2566
2567 * go32-nat.c (go32_nat_target::create_inferior): Switch to thread
2568 after creating it, instead of writing to inferior_ptid. Don't
2569 write to inferior_ptid.
2570
6d350754
PA
25712020-06-18 Pedro Alves <palves@redhat.com>
2572
2573 * fork-child.c (postfork_hook): Don't write to inferior_ptid.
2574
5d971d48
PA
25752020-06-18 Pedro Alves <palves@redhat.com>
2576
2577 * bsd-kvm.c (bsd_kvm_target_open): Switch to thread after adding
2578 it, instead of writing to inferior_ptid.
2579
86e57d1b
PA
25802020-06-18 Pedro Alves <palves@redhat.com>
2581
2582 * btrace.c (btrace_fetch): Use switch_to_thread instead of writing
2583 to inferior_ptid.
2584
f2e1c129
PA
25852020-06-18 Pedro Alves <palves@redhat.com>
2586
2587 * bsd-kvm.c (bsd_kvm_target::close): Use switch_to_no_thread
2588 instead of writing to inferior_ptid directly.
2589
60db1b85
PA
25902020-06-18 Pedro Alves <palves@redhat.com>
2591
2592 * corelow.c (core_target::close): Use switch_to_no_thread instead
2593 of writing to inferior_ptid directly.
2594 (add_to_thread_list, core_target_open): Use switch_to_thread
2595 instead of writing to inferior_ptid directly.
2596
fe7d6a8d
PA
25972020-06-18 Pedro Alves <palves@redhat.com>
2598
2599 * darwin-nat.c (darwin_nat_target::decode_message): Don't write to
2600 inferior_ptid.
2601 (darwin_nat_target::stop_inferior, darwin_nat_target::kill): Avoid
2602 inferior_ptid.
2603 (darwin_attach_pid): Use switch_to_no_thread instead of writing to
2604 inferior_ptid directly.
2605 (darwin_nat_target::init_thread_list): Switch to thread, instead
2606 of writing to inferior_ptid.
2607 (darwin_nat_target::attach): Don't write to inferior_ptid.
2608 (darwin_nat_target::get_ada_task_ptid): Avoid inferior_ptid.
2609
975f8708
PA
26102020-06-18 Pedro Alves <palves@redhat.com>
2611
2612 * gnu-nat.c (gnu_nat_target::create_inferior): Switch to the added
2613 thread.
2614 (gnu_nat_target::attach): Don't write to inferior_ptid directly.
2615 Instead use switch_to_thread.
2616 (gnu_nat_target::detach): Use switch_to_no_thread
2617 instead of writing to inferior_ptid directly. Used passed-in
2618 inferior instead of looking up the inferior by pid.
2619
1a204730
PA
26202020-06-18 Pedro Alves <palves@redhat.com>
2621
2622 * go32-nat.c (go32_nat_target::create_inferior): Don't write to
2623 inferior_ptid.
2624
ebe84f23
PA
26252020-06-18 Pedro Alves <palves@redhat.com>
2626
2627 * nto-procfs.c (nto_procfs_target::update_thread_list): Avoid
2628 inferior_ptid.
2629 (nto_procfs_target::attach): Avoid inferior_ptid. Switch to
2630 thread.
2631 (nto_procfs_target::detach): Avoid referencing
2632 inferior_ptid. Use switch_to_no_thread instead of writing to
2633 inferior_ptid directly.
2634 (nto_procfs_target::mourn_inferior): Use switch_to_no_thread
2635 instead of writing to inferior_ptid directly.
2636 (nto_procfs_target::create_inferior): Avoid inferior_ptid. Switch
2637 to thread.
2638
191f02e5
PA
26392020-06-18 Pedro Alves <palves@redhat.com>
2640
2641 * remote-sim.c (gdbsim_target::create_inferior): Switch to thread
2642 after creating it, instead of writing to inferior_ptid.
2643 (gdbsim_target_open): Use switch_to_no_thread instead of writing
2644 to inferior_ptid directly.
2645 (gdbsim_target::wait): Don't write to inferior_ptid.
2646
0ac55310
PA
26472020-06-18 Pedro Alves <palves@redhat.com>
2648
2649 * remote.c (remote_target::remote_notice_new_inferior): Use
2650 switch_to_thread instead of writing to inferior_ptid directly.
2651 (remote_target::add_current_inferior_and_thread): Use
2652 switch_to_no_thread instead of writing to inferior_ptid directly.
2653 (extended_remote_target::attach): Use switch_to_inferior_no_thread
2654 and switch_to_thread instead of using set_current_inferior or
2655 writing to inferior_ptid directly.
2656
5233f39b
PA
26572020-06-18 Pedro Alves <palves@redhat.com>
2658
2659 * tracectf.c (ctf_target_open): Switch to added thread instead of
2660 writing to inferior_ptid directly.
2661 (ctf_target::close): Use switch_to_no_thread instead of writing to
2662 inferior_ptid directly.
2663
087e161b
PA
26642020-06-18 Pedro Alves <palves@redhat.com>
2665
2666 * tracefile-tfile.c (tfile_target_open): Don't write to
2667 inferior_ptid directly, instead switch to added thread.
2668 (tfile_target::close): Use switch_to_no_thread instead of writing
2669 to inferior_ptid directly.
2670
7fb43e53
PA
26712020-06-18 Pedro Alves <palves@redhat.com>
2672
2673 * procfs.c (procfs_target::attach): Don't write to inferior_ptid.
2674 (procfs_target::detach): Use switch_to_no_thread
2675 instead of writing to inferior_ptid directly.
2676 (do_attach): Change return type to void. Switch to the added
2677 thread.
2678 (procfs_target::create_inferior): Switch to the added thread.
2679 (procfs_do_thread_registers): Don't write to inferior_ptid.
2680
18493a00
PA
26812020-06-18 Pedro Alves <palves@redhat.com>
2682
2683 * infrun.c (generic_mourn_inferior): Use switch_to_thread instead
2684 of writing to inferior_ptid.
2685 (scoped_restore_exited_inferior): Delete.
2686 (handle_vfork_child_exec_or_exit): Simplify using
2687 scoped_restore_current_pspace_and_thread. Use switch_to_thread
2688 instead of writing to inferior_ptid.
2689 (THREAD_STOPPED_BY): Delete.
2690 (thread_stopped_by_watchpoint, thread_stopped_by_sw_breakpoint)
2691 (thread_stopped_by_hw_breakpoint): Delete.
2692 (save_waitstatus): Use
2693 scoped_restore_current_thread+switch_to_thread, and call
2694 target_stopped_by_watchpoint instead of
2695 thread_stopped_by_watchpoint, target_stopped_by_sw_breakpoint
2696 instead of thread_stopped_by_sw_breakpoint, and
2697 target_stopped_by_hw_breakpoint instead of
2698 thread_stopped_by_hw_breakpoint.
2699 (handle_inferior_event)
2700 <TARGET_WAITKIND_EXITED/TARGET_WAITKIND_SIGNALLED>: Don't write to
2701 inferior_ptid directly, nor
2702 set_current_inferior/set_current_program_space. Use
2703 switch_to_thread / switch_to_inferior_no_thread instead.
2704
a0776b13
PA
27052020-06-18 Pedro Alves <palves@redhat.com>
2706
2707 * target.c (generic_mourn_inferior): Use switch_to_no_thread
2708 instead of writing to inferior_ptid.
2709
6155c136
PA
27102020-06-18 Pedro Alves <palves@redhat.com>
2711
2712 * inf-ptrace.c (inf_ptrace_target::create_inferior): Switch to the
2713 added thread.
2714 (inf_ptrace_target::attach): Don't write to inferior_ptid. Switch
2715 to the added thread.
2716 (inf_ptrace_target::detach_success): Use switch_to_no_thread
2717 instead of writing to inferior_ptid.
2718
c5316fc6
PA
27192020-06-18 Pedro Alves <palves@redhat.com>
2720
2721 * gdbarch-selftests.c: Include "progspace-and-thread.h".
2722 (register_to_value_test): Mock a program_space too. Heap-allocate
2723 the address space. Don't write to inferior_ptid. Use
2724 switch_to_thread instead.
2725
8df01799
PA
27262020-06-18 Pedro Alves <palves@redhat.com>
2727
2728 * linux-tdep.c (find_signalled_thread(thread_info *,void *)):
2729 Delete.
2730 (find_signalled_thread()): New, factored out from
2731 linux_make_corefile_notes and adjusted to handle exited threads.
2732 (linux_make_corefile_notes): Adjust to use the new
2733 find_signalled_thread.
2734
41792d68
PA
27352020-06-18 Pedro Alves <palves@redhat.com>
2736
2737 * linux-tdep.c (btrace_fetch): Save/restore current thread instead
2738 of saving/restoring inferior_ptid.
2739
612f258a
TT
27402020-06-17 Tom Tromey <tom@tromey.com>
2741
2742 * tui/tui-win.h (tui_scroll_forward, tui_scroll_backward)
2743 (tui_scroll_left, tui_scroll_right, struct tui_win_info): Don't
2744 declare.
2745 * tui/tui-data.h (MIN_CMD_WIN_HEIGHT): Remove.
2746
efb763a5
SM
27472020-06-15 Simon Marchi <simon.marchi@efficios.com>
2748
2749 * dwarf2/read.c (dwarf2_initialize_objfile): Check for presence
2750 of partial symtabs.
2751
2951f6c0
SM
27522020-06-17 Simon Marchi <simon.marchi@efficios.com>
2753
2754 * regformats/reg-arm.dat: Remove.
2755 * regformats/reg-bfin.dat: Remove.
2756 * regformats/reg-cris.dat: Remove.
2757 * regformats/reg-crisv32.dat: Remove.
2758 * regformats/reg-m32r.dat: Remove.
2759 * regformats/reg-tilegx.dat: Remove.
2760 * regformats/reg-tilegx32.dat: Remove.
2761
7d458ea5
SM
27622020-06-17 Simon Marchi <simon.marchi@efficios.com>
2763
2764 * features/Makefile (WHICH): Remove arm files.
2765 * regformats/arm/arm-with-iwmmxt.dat: Remove.
2766 * regformats/arm/arm-with-neon.dat: Remove.
2767 * regformats/arm/arm-with-vfpv2.dat: Remove.
2768 * regformats/arm/arm-with-vfpv3.dat: Remove.
2769
3af96c0d
SM
27702020-06-17 Simon Marchi <simon.marchi@efficios.com>
2771
2772 * features/Makefile (XMLTOC): Remove rx.xml.
2773
b25e22fd
PA
27742020-06-17 Pedro Alves <palves@redhat.com>
2775
2776 * gdbthread.h (thread_control_state) <trap_expected> Update
2777 comments.
2778
a78a19b1
AB
27792020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
2780
2781 * ada-lang.c (ada_lookup_symbol_nonlocal): Rename to
2782 ada_language::lookup_symbol_nonlocal.
2783 (ada_language_data): Delete la_lookup_symbol_nonlocal initializer.
2784 (ada_language::lookup_symbol_nonlocal): New member function,
2785 implementation from ada_lookup_symbol_nonlocal.
2786 * c-lang.c (c_language_data): Delete la_lookup_symbol_nonlocal
2787 initializer.
2788 (cplus_language_data): Delete la_lookup_symbol_nonlocal
2789 initializer.
2790 (cplus_language::lookup_symbol_nonlocal): New member function.
2791 (asm_language_data): Delete la_lookup_symbol_nonlocal initializer.
2792 (minimal_language_data) Likewise.
2793 * cp-namespace.c (cp_lookup_nested_symbol): Update comment.
2794 * d-lang.c (d_language_data): Delete la_lookup_symbol_nonlocal
2795 initializer.
2796 (d_language::lookup_symbol_nonlocal): New member function.
2797 * f-lang.c (f_language_data): Delete la_lookup_symbol_nonlocal
2798 initializer.
2799 (f_language::lookup_symbol_nonlocal): New member function.
2800 * go-lang.c (go_language_data): Delete la_lookup_symbol_nonlocal
2801 initializer.
2802 * language.c (unknown_language_data): Likewise.
2803 (auto_language_data): Likewise.
2804 * language.h (language_data): Delete la_lookup_symbol_nonlocal
2805 field.
2806 (language_defn::lookup_symbol_nonlocal): New member function.
2807 * m2-lang.c (m2_language_data): Delete la_lookup_symbol_nonlocal
2808 initializer.
2809 * objc-lang.c (objc_language_data): Likewise.
2810 * opencl-lang.c (opencl_language_data): Likewise.
2811 * p-lang.c (pascal_language_data): Likewise.
2812 * rust-lang.c (rust_lookup_symbol_nonlocal): Rename to
2813 rust_language::lookup_symbol_nonlocal.
2814 (rust_language_data): Delete la_lookup_symbol_nonlocal
2815 initializer.
2816 (rust_language::lookup_symbol_nonlocal): New member function,
2817 implementation from rust_lookup_symbol_nonlocal.
2818 * symtab.c (lookup_symbol_aux): Update call to
2819 lookup_symbol_nonlocal.
2820 (basic_lookup_symbol_nonlocal): Rename to...
2821 (language_defn::lookup_symbol_nonlocal): ...this, and update
2822 header comment. Remove language_defn parameter, and replace with
2823 uses of `this'.
2824 * symtab.h (basic_lookup_symbol_nonlocal): Delete declaration.
2825
ebe2334e
AB
28262020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
2827
2828 * ada-lang.c (ada_language_data): Delete la_value_print_inner
2829 initializer.
2830 (ada_language::value_print_inner): New member function.
2831 * c-lang.c (c_language_data): Delete la_value_print_inner
2832 initializer.
2833 (cplus_language_data): Likewise.
2834 (asm_language_data): Likewise.
2835 (minimal_language_data): Likewise.
2836 * d-lang.c (d_language_data): Likewise.
2837 (d_language::value_print_inner): New member function.
2838 * f-lang.c (f_language_data): Delete la_value_print_inner
2839 initializer.
2840 (f_language::value_print_inner): New member function.
2841 * f-lang.h (f_value_print_innner): Rename to...
2842 (f_value_print_inner): ...this (note spelling of 'inner').
2843 * f-valprint.c (f_value_print_innner): Rename to...
2844 (f_value_print_inner): ...this (note spelling of 'inner').
2845 * go-lang.c (go_language_data): Delete la_value_print_inner
2846 initializer.
2847 (go_language::value_print_inner): New member function.
2848 * language.c (language_defn::value_print_inner): Define new member
2849 function.
2850 (unk_lang_value_print_inner): Delete.
2851 (unknown_language_data): Delete la_value_print_inner initializer.
2852 (unknown_language::value_print_inner): New member function.
2853 (auto_language_data): Delete la_value_print_inner initializer.
2854 (auto_language::value_print_inner): New member function.
2855 * language.h (language_data): Delete la_value_print_inner field.
2856 (language_defn::value_print_inner): Delcare new member function.
2857 * m2-lang.c (m2_language_data): Delete la_value_print_inner
2858 initializer.
2859 (m2_language::value_print_inner): New member function.
2860 * objc-lang.c (objc_language_data): Delete la_value_print_inner
2861 initializer.
2862 * opencl-lang.c (opencl_language_data): Likewise.
2863 * p-lang.c (pascal_language_data): Likewise.
2864 (pascal_language::value_print_inner): New member function.
2865 * rust-lang.c (rust_language_data): Delete la_value_print_inner
2866 initializer.
2867 (rust_language::value_print_inner): New member function.
2868 * valprint.c (do_val_print): Update call to value_print_inner.
2869
a1d1fa3e
AB
28702020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
2871
2872 * ada-lang.c (ada_language_data): Delete la_value_print
2873 initializer.
2874 (ada_language::value_print): New member function.
2875 * c-lang.c (c_language_data): Delete la_value_print initializer.
2876 (cplus_language_data): Likewise.
2877 (asm_language_data): Likewise.
2878 (minimal_language_data): Likewise.
2879 * d-lang.c (d_language_data): Likewise.
2880 * f-lang.c (f_language_data): Likewise.
2881 * go-lang.c (go_language_data): Likewise.
2882 * language.c (unk_lang_value_print): Delete.
2883 (language_defn::value_print): Define new member function.
2884 (unknown_language_data): Delete la_value_print initializer.
2885 (unknown_language::value_print): New member function.
2886 (auto_language_data): Delete la_value_print initializer.
2887 (auto_language::value_print): New member function.
2888 * language.h (language_data): Delete la_value_print field.
2889 (language_defn::value_print): Declare new member function.
2890 (LA_VALUE_PRINT): Update call to value_print.
2891 * m2-lang.c (m2_language_data): Delete la_value_print initializer.
2892 * objc-lang.c (objc_language_data): Likewise.
2893 * opencl-lang.c (opencl_language_data): Likewise.
2894 * p-lang.c (pascal_language_data): Likewise.
2895 (pascal_language::value_print): New member function.
2896 * rust-lang.c (rust_language_data): Delete la_value_print
2897 initializer.
2898
f16a9f57
AB
28992020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
2900
2901 * ada-lang.c (ada_watch_location_expression): Rename to
2902 ada_language::watch_location_expression.
2903 (ada_language_data): Delete la_watch_location_expression
2904 initializer.
2905 (ada_language::watch_location_expression): New member function,
2906 implementation from ada_watch_location_expression.
2907 * breakpoint.c (watch_command_1): Update call to
2908 watch_location_expression.
2909 * c-lang.c (c_watch_location_expression): Rename to
2910 language_defn::watch_location_expression.
2911 (c_language_data): Delete la_watch_location_expression
2912 initializer.
2913 (cplus_language_data): Likewise.
2914 (asm_language_data): Likewise.
2915 (minimal_language_data): Likewise.
2916 * c-lang.h (c_watch_location_expression): Delete declaration.
2917 * d-lang.c (d_language_data): Delete la_watch_location_expression
2918 initializer.
2919 * f-lang.c (f_language_data): Likewise.
2920 * go-lang.c (go_language_data): Likewise.
2921 * language.c (language_defn::watch_location_expression): Member
2922 function implementation from c_watch_location_expression.
2923 (unknown_language_data): Delete la_watch_location_expression
2924 initializer.
2925 (auto_language_data): Likewise.
2926 * language.h (language_data): Delete la_watch_location_expression
2927 field.
2928 (language_defn::watch_location_expression): Declare new member
2929 function.
2930 * m2-lang.c (m2_language_data): Delete
2931 la_watch_location_expression initializer.
2932 * objc-lang.c (objc_language_data): Likewise.
2933 * opencl-lang.c (opencl_language_data): Likewise.
2934 * p-lang.c (pascal_language_data): Likewise.
2935 * rust-lang.c (rust_watch_location_expression): Rename to
2936 rust_language::watch_location_expression.
2937 (rust_language_data): Delete la_watch_location_expression
2938 initializer.
2939 (rust_language::watch_location_expression): New member function,
2940 implementation from rust_watch_location_expression.
2941
7e56227d
AB
29422020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
2943
2944 * ada-lang.c (ada_collect_symbol_completion_matches): Rename to
2945 ada_language::collect_symbol_completion_matches.
2946 (ada_language_data): Delete la_collect_symbol_completion_matches
2947 initializer.
2948 (ada_language::collect_symbol_completion_matches): New member
2949 function, implementation from
2950 ada_collect_symbol_completion_matches.
2951 * c-lang.c (c_language_data): Delete
2952 la_collect_symbol_completion_matches initializer.
2953 (cplus_language_data): Likewise.
2954 (asm_language_data): Likewise.
2955 (minimal_language_data): Likewise.
2956 * d-lang.c (d_language_data): Likewise.
2957 * f-lang.c (f_collect_symbol_completion_matches): Rename to
2958 f_language::collect_symbol_completion_matches.
2959 (f_language_data): Delete la_collect_symbol_completion_matches
2960 initializer.
2961 (f_language::collect_symbol_completion_matches) New member
2962 function, implementation from f_collect_symbol_completion_matches.
2963 * go-lang.c (go_language_data): Delete
2964 la_collect_symbol_completion_matches initializer.
2965 * language.c (unknown_language_data): Likewise.
2966 (auto_language_data): Likewise.
2967 * language.h (language_data): Delete
2968 la_collect_symbol_completion_matches field.
2969 (language_defn::collect_symbol_completion_matches): New member
2970 function.
2971 * m2-lang.c (m2_language_data): Delete
2972 la_collect_symbol_completion_matches initializer.
2973 * objc-lang.c (objc_language_data): Likewise.
2974 * opencl-lang.c (opencl_language_data): Likewise.
2975 * p-lang.c (pascal_language_data): Likewise.
2976 * rust-lang.c (rust_language_data): Likewise.
2977 * symtab.c (default_collect_symbol_completion_matches): Delete.
2978 (collect_symbol_completion_matches): Update call to
2979 collect_symbol_completion_matches.
2980 (collect_symbol_completion_matches_type): Likewise.
2981 * symtab.h (default_collect_symbol_completion_matches): Delete
2982 declaration.
2983
53fc67f8
AB
29842020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
2985
2986 * ada-lang.c (ada_get_gdb_completer_word_break_characters): Delete.
2987 (ada_language_data): Delete la_word_break_characters initializer.
2988 (ada_language::word_break_characters): New member function.
2989 * c-lang.c (c_language_data): Delete la_word_break_characters
2990 initializer.
2991 (cplus_language_data): Likewise.
2992 (asm_language_data): Likewise.
2993 (minimal_language_data): Likewise.
2994 * completer.c: Update global comment.
2995 (advance_to_expression_complete_word_point): Update call to
2996 word_break_characters.
2997 (complete_files_symbols): Likewise.
2998 (complete_line_internal_1): Likewise.
2999 (default_completer_handle_brkchars): Likewise.
3000 (skip_quoted_chars): Likewise.
3001 * d-lang.c (d_language_data): Delete la_word_break_characters
3002 initializer.
3003 * f-lang.c (f_word_break_characters): Delete.
3004 (f_language_data): Delete la_word_break_characters initializer.
3005 (f_language::word_break_characters): New member function.
3006 * go-lang.c (go_language_data): Delete la_word_break_characters
3007 initializer.
3008 * language.c (unknown_language_data): Likewise.
3009 (auto_language_data): Likewise.
3010 * language.h (default_word_break_characters): Move declaration to
3011 earlier in the file.
3012 (language_data): Delete la_word_break_characters field.
3013 (language_defn::word_break_characters): New member function.
3014 * m2-lang.c (m2_language_data): Delete la_word_break_characters
3015 initializer.
3016 * objc-lang.c (objc_language_data): Likewise.
3017 * opencl-lang.c (opencl_language_data): Likewise.
3018 * p-lang.c (pascal_language_data): Likewise.
3019 * rust-lang.c (rust_language_data): Likewise.
3020
c9debfb9
AB
30212020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
3022
3023 * ada-lang.c (ada_get_symbol_name_matcher): Update header comment.
3024 (ada_language_data): Delete la_get_symbol_name_matcher
3025 initializer.
3026 (language_defn::get_symbol_name_matcher_inner): New member
3027 function.
3028 * c-lang.c (c_language_data): Delete la_get_symbol_name_matcher
3029 initializer.
3030 (cplus_language_data): Likewise.
3031 (cplus_language::get_symbol_name_matcher_inner): New member
3032 function.
3033 (asm_language_data): Delete la_get_symbol_name_matcher initializer.
3034 (minimal_language_data): Likewise.
3035 * cp-support.h (cp_get_symbol_name_matcher): Update header comment.
3036 * d-lang.c (d_language_data): Delete la_get_symbol_name_matcher
3037 initializer.
3038 * dictionary.c (iter_match_first_hashed): Update call to
3039 get_symbol_name_matcher.
3040 (iter_match_next_hashed): Likewise.
3041 (iter_match_next_linear): Likewise.
3042 * dwarf2/read.c (dw2_expand_symtabs_matching_symbol): Likewise.
3043 * f-lang.c (f_language_data): Delete la_get_symbol_name_matcher
3044 initializer.
3045 (f_language::get_symbol_name_matcher_inner): New member function.
3046 * go-lang.c (go_language_data): Delete la_get_symbol_name_matcher
3047 initializer.
3048 * language.c (default_symbol_name_matcher): Update header comment,
3049 make static.
3050 (language_defn::get_symbol_name_matcher): New definition.
3051 (language_defn::get_symbol_name_matcher_inner): Likewise.
3052 (get_symbol_name_matcher): Delete.
3053 (unknown_language_data): Delete la_get_symbol_name_matcher
3054 initializer.
3055 (auto_language_data): Likewise.
3056 * language.h (language_data): Delete la_get_symbol_name_matcher
3057 field.
3058 (language_defn::get_symbol_name_matcher): New member function.
3059 (language_defn::get_symbol_name_matcher_inner): Likewise.
3060 (default_symbol_name_matcher): Delete declaration.
3061 * linespec.c (find_methods): Update call to
3062 get_symbol_name_matcher.
3063 * m2-lang.c (m2_language_data): Delete la_get_symbol_name_matcher
3064 initializer.
3065 * minsyms.c (lookup_minimal_symbol): Update call to
3066 get_symbol_name_matcher.
3067 (iterate_over_minimal_symbols): Likewise.
3068 * objc-lang.c (objc_language_data): Delete
3069 la_get_symbol_name_matcher initializer.
3070 * opencl-lang.c (opencl_language_data): Likewise.
3071 * p-lang.c (pascal_language_data): Likewise.
3072 * psymtab.c (psymbol_name_matches): Update call to
3073 get_symbol_name_matcher.
3074 * rust-lang.c (rust_language_data): Delete
3075 la_get_symbol_name_matcher initializer.
3076 * symtab.c (symbol_matches_search_name): Update call to
3077 get_symbol_name_matcher.
3078 (compare_symbol_name): Likewise.
3079
9a49ad8c
AB
30802020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
3081
3082 * ada-lang.c (ada_language_data): Delete la_compute_program
3083 initializer.
3084 * c-lang.c (c_language_data): Likewise.
3085 (c_language::compute_program): New member function.
3086 (cplus_language_data): Delete la_compute_program initializer.
3087 (cplus_language::compute_program): New member function.
3088 (asm_language_data): Delete la_compute_program initializer.
3089 (minimal_language_data): Likewise.
3090 * c-lang.h (c_compute_program): Update comment.
3091 (cplus_compute_program): Likewise.
3092 * compile/compile-c-support.c (c_compute_program): Likewise.
3093 (cplus_compute_program): Likewise.
3094 * compile/compile.c (compile_to_object): Update call to
3095 la_compute_program.
3096 * d-lang.c (d_language_data): Delete la_compute_program
3097 initializer.
3098 * f-lang.c (f_language_data): Likewise.
3099 * go-lang.c (go_language_data): Likewise.
3100 * language.c (unknown_language_data): Likewise.
3101 (auto_language_data): Likewise.
3102 * language.h (language_data): Delete la_compute_program field.
3103 (language_defn::compute_program): New member function.
3104 * m2-lang.c (m2_language_data): Delete la_compute_program
3105 initializer.
3106 * objc-lang.c (objc_language_data): Likewise.
3107 * opencl-lang.c (opencl_language_data): Likewise.
3108 * p-lang.c (pascal_language_data): Likewise.
3109 * rust-lang.c (rust_language_data): Likewise.
3110
eff93b4d
AB
31112020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
3112
3113 * ada-lang.c (ada_language_data) Delete
3114 la_class_name_from_physname initializer.
3115 * c-lang.c (c_language_data): Likewise.
3116 (cplus_language_data): Likewise.
3117 (cplus_language::class_name_from_physname): New member function.
3118 (asm_language_data): Delete la_class_name_from_physname
3119 initializer.
3120 (minimal_language_data): Likewise.
3121 * d-lang.c (d_language_data): Likewise.
3122 * dwarf2/read.c (guess_partial_die_structure_name): Update to call
3123 method on language_defn class.
3124 (guess_full_die_structure_name): Likewise.
3125 * f-lang.c (f_language_data): Delete la_class_name_from_physname
3126 initializer.
3127 * go-lang.c (go_language_data): Likewise.
3128 * language.c (language_class_name_from_physname): Delete.
3129 (unk_lang_class_name): Delete.
3130 (unknown_language_data): Delete la_class_name_from_physname
3131 initializer.
3132 (auto_language_data): Likewise.
3133 * language.h (language_data): Delete la_class_name_from_physname
3134 field.
3135 (language_defn::class_name_from_physname): New function.
3136 (language_class_name_from_physname): Delete declaration.
3137 * m2-lang.c (m2_language_data): Delete la_class_name_from_physname
3138 initializer.
3139 * objc-lang.c (objc_language_data): Likewise.
3140 * opencl-lang.c (opencl_language_data): Likewise.
3141 * p-lang.c (pascal_language_data): Likewise.
3142 * rust-lang.c (rust_language_data): Likewise.
3143
de543742
TT
31442020-06-16 Tom Tromey <tom@tromey.com>
3145
3146 * tui/tui-data.h (STATUS_NAME): New macro.
3147 * tui/tui-layout.c (tui_remove_some_windows)
3148 (initialize_known_windows, tui_register_window)
3149 (tui_layout_split::remove_windows, initialize_layouts)
3150 (tui_new_layout_command): Don't use hard-coded window names.
3151
a350efd4
TT
31522020-06-16 Tom Tromey <tom@tromey.com>
3153
3154 PR tui/25348:
3155 * tui/tui.c (tui_ensure_readline_initialized): Rename from
3156 tui_initialize_readline. Only run once. Call rl_initialize.
3157 * tui/tui.h (tui_ensure_readline_initialized): Rename from
3158 tui_initialize_readline.
3159 * tui/tui-io.c (tui_setup_io): Call
3160 tui_ensure_readline_initialized.
3161 * tui/tui-interp.c (tui_interp::init): Update.
3162
39ec0490
TT
31632020-06-16 Tom Tromey <tom@tromey.com>
3164
3165 * tui/tui-layout.c (tui_layout_split::remove_windows): Fix logic.
3166 Also preserve the status window.
3167
d2d1ea20
TT
31682020-06-16 Tom Tromey <tom@tromey.com>
3169
3170 * python/py-tui.c (tui_py_window::~tui_py_window): Handle case
3171 where m_window==nullptr.
3172
66920317
TT
31732020-06-15 Tom Tromey <tromey@adacore.com>
3174
3175 * windows-nat.c (windows_nat::handle_output_debug_string):
3176 Update.
3177 (windows_nat::handle_ms_vc_exception): Update.
3178 * target.h (target_read_string): Change API.
3179 * target.c (target_read_string): Change API.
3180 * solib-svr4.c (open_symbol_file_object, svr4_read_so_list):
3181 Update.
3182 * solib-frv.c (frv_current_sos): Update.
3183 * solib-dsbt.c (dsbt_current_sos): Update.
3184 * solib-darwin.c (darwin_current_sos): Update.
3185 * linux-thread-db.c (inferior_has_bug): Update.
3186 * expprint.c (print_subexp_standard): Update.
3187 * ada-lang.c (ada_main_name, ada_tag_name_from_tsd)
3188 (ada_exception_message_1): Update.
3189
a5d871dd
TT
31902020-06-15 Tom Tromey <tromey@adacore.com>
3191
3192 * linux-tdep.c (dump_mapping_p): Use target_read_memory.
3193
670e35fa
TT
31942020-06-15 Tom Tromey <tromey@adacore.com>
3195
3196 * valprint.c (read_string): Update comment.
3197 * target.c (MIN): Remove.
3198 (target_read_string): Rewrite.
3199
f5272a3b
TT
32002020-06-15 Tom Tromey <tromey@adacore.com>
3201
3202 * corefile.c (read_memory_string): Remove.
3203 * ada-valprint.c (ada_value_print_ptr): Update.
3204 * ada-lang.h (ada_tag_name): Change return type.
3205 * ada-lang.c (type_from_tag): Update.
3206 (ada_tag_name_from_tsd): Change return type. Use
3207 target_read_string.
3208 (ada_tag_name): Likewise.
3209 * gdbcore.h (read_memory_string): Don't declare.
3210
2c074f49
HD
32112020-06-14 Hannes Domani <ssbssa@yahoo.de>
3212
3213 * symtab.c (rbreak_command): Ignore Windows drive colon.
3214
6a17d503
SM
32152020-06-12 Simon Marchi <simon.marchi@efficios.com>
3216
3217 * NEWS: Mention removed GDBserver host support.
3218
453c733f
NC
32192020-06-12 Nelson Chu <nelson.chu@sifive.com>
3220
3221 * features/riscv/rebuild-csr-xml.sh: Updated.
3222
2b4e6a3f
TT
32232020-06-11 Tom Tromey <tom@tromey.com>
3224
3225 PR gdb/18318:
3226 * c-exp.y (lex_one_token): Handle 'p' like 'e'.
3227
4412332f
JG
32282020-06-09 Jonny Grant <jg@jguk.org>
32292020-06-09 Simon Marchi <simon.marchi@polymtl.ca>
3230
3231 * main.c (captured_main_1): Don't print new line after help.
3232 (print_gdb_help): add mailing list and IRC channel information
3233 to --help. Add new lines between items in the footer. Remove
3234 quotes around bug url.
3235
2f33032a
KS
32362020-06-11 Keith Seitz <keiths@redhat.com>
3237
3238 PR gdb/21356
3239 * gdbtypes.c (resolve_dynamic_union, resolve_dynamic_struct):
3240 Resolve typedefs for type length calculations.
3241
7ab96794
TV
32422020-06-10 Tom de Vries <tdevries@suse.de>
3243
3244 PR ada/24713
3245 * dwarf2/index-write.c (struct mapped_symtab): Add m_string_obstack.
3246 (write_psymbols): Enable .gdb_index for ada.
3247 * dwarf2/read.c: Remove comment stating .gdb_index is unsupported for
3248 ada.
3249
e5f3ece2
TV
32502020-06-10 Tom de Vries <tdevries@suse.de>
3251
3252 * dwarf2/read.c (dw2_symtab_iter_init_common): Factor out of ...
3253 (dw2_symtab_iter_init): ... here. Add variant with "offset_type
3254 namei" instead of "const char *name" argument.
3255 (dw2_map_matching_symbols): Use "offset_type namei" variant of
3256 dw2_symtab_iter_init.
3257
940da03e
SM
32582020-06-08 Simon Marchi <simon.marchi@efficios.com>
3259
3260 * gdbtypes.h (TYPE_FIELD_TYPE): Remove. Change all call sites
3261 to use type::field and field::type instead.
3262
b6cdac4b
SM
32632020-06-08 Simon Marchi <simon.marchi@efficios.com>
3264
3265 * gdbtypes.h (FIELD_TYPE): Remove. Change all call sites
3266 to use field::type instead.
3267
5d14b6e5
SM
32682020-06-08 Simon Marchi <simon.marchi@efficios.com>
3269
3270 * gdbtypes.h (struct field) <type, set_type>: New methods.
3271 Rename `type` field to...
3272 <m_type>: ... this. Change references throughout to use type or
3273 set_type methods.
3274 (FIELD_TYPE): Use field::type. Change call sites that modify
3275 the field's type to use field::set_type instead.
3276
3d967001
SM
32772020-06-08 Simon Marchi <simon.marchi@efficios.com>
3278
3279 * gdbtypes.h (TYPE_INDEX_TYPE): Remove. Change all call sites
3280 to use type::index_type instead.
3281
262abc0d
SM
32822020-06-08 Simon Marchi <simon.marchi@efficios.com>
3283
3284 * gdbtypes.h (struct type) <index_type, set_index_type>: New
3285 methods.
3286 (TYPE_INDEX_TYPE): Use type::index_type.
3287 * gdbtypes.c (create_array_type_with_stride): Likewise.
3288
82836c92
TT
32892020-06-07 Tom Tromey <tom@tromey.com>
3290
3291 * valprint.c (generic_val_print_float): Remove "embedded_offset"
3292 parameter.
3293 (generic_value_print): Update.
3294
940dace9
AB
32952020-06-05 Andrew Burgess <andrew.burgess@embecosm.com>
3296
3297 Revert commit 982a38f60b0.
3298 * python/py-tui.c (gdbpy_tui_set_title): Restore use of get.
3299
982a38f6
AB
33002020-06-05 Andrew Burgess <andrew.burgess@embecosm.com>
3301
3302 * python/py-tui.c (gdbpy_tui_set_title): Use release, not get, to
3303 avoid use after free.
3304
82f06518
TV
33052020-06-05 Tom de Vries <tdevries@suse.de>
3306
3307 * NEWS: Fix typos.
3308
f8c41851
SM
33092020-06-04 Simon Marchi <simon.marchi@efficios.com>
3310
3311 * dwarf2/read.c (dwarf2_read_gdb_index): Save partial_symtabs in
3312 the per_bfd object.
3313 (dwarf2_read_debug_names): Likewise.
3314 (dwarf2_initialize_objfile): Use partial_symtabs from per_bfd
3315 object when re-using a per_bfd object with an index.
3316
f9b5d5ea
TV
33172020-06-03 Tom de Vries <tdevries@suse.de>
3318
3319 PR symtab/26046
3320 * dwarf2/read.c (scan_partial_symbols): Recurse into DW_TAG_subprogram
3321 children for C++.
3322 (load_partial_dies): Don't skip DW_TAG_inlined_subroutine child of
3323 DW_TAG_subprogram.
3324
f6eee2d0
AB
33252020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
3326
3327 * ada-lang.c (ada_language_data): Delete skip_trampoline
3328 initializer.
3329 * c-lang.c (c_language_data): Likewise.
3330 (cplus_language_data): Likewise.
3331 (cplus_language::skip_trampoline): New member function.
3332 (asm_language_data): Delete skip_trampoline initializer.
3333 (minimal_language_data): Likewise.
3334 * d-lang.c (d_language_data): Likewise.
3335 * f-lang.c (f_language_data): Likewise.
3336 * go-lang.c (go_language_data): Likewise.
3337 * language.c (unk_lang_trampoline): Delete function.
3338 (skip_language_trampoline): Update.
3339 (unknown_language_data): Delete skip_trampoline initializer.
3340 (auto_language_data): Likewise.
3341 * language.h (language_data): Delete skip_trampoline field.
3342 (language_defn::skip_trampoline): New function.
3343 * m2-lang.c (m2_language_data): Delete skip_trampoline
3344 initializer.
3345 * objc-lang.c (objc_skip_trampoline): Delete function, move
3346 implementation to objc_language::skip_trampoline.
3347 (objc_language_data): Delete skip_trampoline initializer.
3348 (objc_language::skip_trampoline): New member function with
3349 implementation from objc_skip_trampoline.
3350 * opencl-lang.c (opencl_language_data): Delete skip_trampoline
3351 initializer.
3352 * p-lang.c (pascal_language_data): Likewise.
3353 * rust-lang.c (rust_language_data): Likewise.
3354
0a50df5d
AB
33552020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
3356
3357 * ada-lang.c (ada_language_data): Delete la_demangle initializer.
3358 (ada_language::demangle): New member function.
3359 * c-lang.c (c_language_data): Delete la_demangle initializer.
3360 (cplus_language_data): Delete la_demangle initializer.
3361 (cplus_language::demangle): New member function.
3362 (asm_language_data): Delete la_demangle initializer.
3363 (minimal_language_data): Delete la_demangle initializer.
3364 * d-lang.c (d_language_data): Delete la_demangle initializer.
3365 (d_language::demangle): New member function.
3366 * f-lang.c (f_language_data): Delete la_demangle initializer.
3367 (f_language::demangle): New member function.
3368 * go-lang.c (go_language_data): Delete la_demangle initializer.
3369 (go_language::demangle): New member function.
3370 * language.c (language_demangle): Update.
3371 (unk_lang_demangle): Delete.
3372 (unknown_language_data): Delete la_demangle initializer.
3373 (unknown_language::demangle): New member function.
3374 (auto_language_data): Delete la_demangle initializer.
3375 (auto_language::demangle): New member function.
3376 * language.h (language_data): Delete la_demangle field.
3377 (language_defn::demangle): New function.
3378 * m2-lang.c (m2_language_data): Delete la_demangle initializer.
3379 * objc-lang.c (objc_language_data): Delete la_demangle
3380 initializer.
3381 (objc_language::demangle): New member function.
3382 * opencl-lang.c (opencl_language_data): Delete la_demangle
3383 initializer.
3384 * p-lang.c (pascal_language_data): Likewise.
3385 * rust-lang.c (rust_language_data): Likewise.
3386 (rust_language::demangle): New member function.
3387
fbfb0a46
AB
33882020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
3389
3390 * ada-lang.c (ada_language_data): Delete la_print_type
3391 initializer.
3392 (ada_language::print_type): New member function.
3393 * c-lang.c (c_language_data): Delete la_print_type initializer.
3394 (c_language::print_type): New member function.
3395 (cplus_language_data): Delete la_print_type initializer.
3396 (cplus_language::print_type): New member function.
3397 (asm_language_data): Delete la_print_type initializer.
3398 (asm_language::print_type): New member function.
3399 (minimal_language_data): Delete la_print_type initializer.
3400 (minimal_language::print_type): New member function.
3401 * d-lang.c (d_language_data): Delete la_print_type initializer.
3402 (d_language::print_type): New member function.
3403 * f-lang.c (f_language_data): Delete la_print_type initializer.
3404 (f_language::print_type): New member function.
3405 * go-lang.c (go_language_data): Delete la_print_type initializer.
3406 (go_language::print_type): New member function.
3407 * language.c (unk_lang_print_type): Delete.
3408 (unknown_language_data): Delete la_print_type initializer.
3409 (unknown_language::print_type): New member function.
3410 (auto_language_data): Delete la_print_type initializer.
3411 (auto_language::print_type): New member function.
3412 * language.h (language_data): Delete la_print_type field.
3413 (language_defn::print_type): New function.
3414 (LA_PRINT_TYPE): Update.
3415 * m2-lang.c (m2_language_data): Delete la_print_type initializer.
3416 (m2_language::print_type): New member function.
3417 * objc-lang.c (objc_language_data): Delete la_print_type
3418 initializer.
3419 (objc_language::print_type): New member function.
3420 * opencl-lang.c (opencl_print_type): Delete, implementation moved
3421 to opencl_language::print_type.
3422 (opencl_language_data): Delete la_print_type initializer.
3423 (opencl_language::print_type): New member function, implementation
3424 from opencl_print_type.
3425 * p-lang.c (pascal_language_data): Delete la_print_type
3426 initializer.
3427 (pascal_language::print_type): New member function.
3428 * rust-lang.c (rust_print_type): Delete, implementation moved to
3429 rust_language::print_type.
3430 (rust_language_data): Delete la_print_type initializer.
3431 (rust_language::print_type): New member function, implementation
3432 from rust_print_type.
3433
6f827019
AB
34342020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
3435
3436 * ada-lang.c (ada_sniff_from_mangled_name): Delete function,
3437 implementation moves to...
3438 (ada_language::sniff_from_mangled_name): ...here. Update return
3439 type.
3440 (ada_language_data): Delete la_sniff_from_mangled_name
3441 initializer.
3442 * c-lang.c (c_language_data): Likewise.
3443 (cplus_language_data): Likewise.
3444 (cplus_language::sniff_from_mangled_name): New member function,
3445 implementation taken from gdb_sniff_from_mangled_name.
3446 (asm_language_data): Delete la_sniff_from_mangled_name
3447 initializer.
3448 (minimal_language_data): Likewise.
3449 * cp-support.c (gdb_sniff_from_mangled_name): Delete,
3450 implementation moves to cplus_language::sniff_from_mangled_name.
3451 * cp-support.h (gdb_sniff_from_mangled_name): Delete declaration.
3452 * d-lang.c (d_sniff_from_mangled_name): Delete, implementation
3453 moves to...
3454 (d_language::sniff_from_mangled_name): ...here.
3455 (d_language_data): Delete la_sniff_from_mangled_name initializer.
3456 * f-lang.c (f_language_data): Likewise.
3457 * go-lang.c (go_sniff_from_mangled_name): Delete, implementation
3458 moves to...
3459 (go_language::sniff_from_mangled_name): ...here.
3460 (go_language_data): Delete la_sniff_from_mangled_name initializer.
3461 * language.c (language_sniff_from_mangled_name): Delete.
3462 (unknown_language_data): Delete la_sniff_from_mangled_name
3463 initializer.
3464 (auto_language_data): Likewise.
3465 * language.h (language_data): Delete la_sniff_from_mangled_name
3466 field.
3467 (language_defn::sniff_from_mangled_name): New function.
3468 (language_sniff_from_mangled_name): Delete declaration.
3469 * m2-lang.c (m2_language_data): Delete la_sniff_from_mangled_name
3470 field.
3471 * objc-lang.c (objc_sniff_from_mangled_name): Delete,
3472 implementation moves to...
3473 (objc_language::sniff_from_mangled_name): ...here.
3474 (objc_language_data): Delete la_sniff_from_mangled_name initializer.
3475 * opencl-lang.c (opencl_language_data): Likewise.
3476 * p-lang.c (pascal_language_data): Likewise.
3477 * rust-lang.c (rust_sniff_from_mangled_name): Delete,
3478 implementation moves to...
3479 (rust_language::sniff_from_mangled_name): ...here.
3480 (rust_language_data): Delete la_sniff_from_mangled_name
3481 initializer.
3482 * symtab.c (symbol_find_demangled_name): Call
3483 sniff_from_mangled_name member function.
3484
fb8006fd
AB
34852020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
3486
3487 * ada-lang.c (ada_language_data): Delete la_search_name_hash
3488 initializer.
3489 * c-lang.c (c_language_data): Likewise.
3490 (cplus_language_data): Likewise.
3491 (cplus_language::search_name_hash): New member function.
3492 (asm_language_data): Delete la_search_name_hash initializer.
3493 (minimal_language_data): Likewise.
3494 * d-lang.c (d_language_data): Likewise.
3495 * dictionary.c (default_search_name_hash): Rename to...
3496 (language_defn::search_name_hash): ...this.
3497 * f-lang.c (f_language_data): Likewise.
3498 (f_language::search_name_hash): New member function.
3499 * go-lang.c (go_language_data): Delete la_search_name_hash
3500 initializer.
3501 * language.c (unknown_language_data): Likewise.
3502 (auto_language_data): Likewise.
3503 * language.h (struct language_data): Delete la_search_name_hash
3504 field.
3505 (language_defn::search_name_hash): Declare new member function.
3506 (default_search_name_hash): Delete declaration.
3507 * m2-lang.c (m2_language_data): Delete la_search_name_hash
3508 initializer.
3509 * objc-lang.c (objc_language_data): Likewise.
3510 * opencl-lang.c (opencl_language_data): Likewise.
3511 * p-lang.c (pascal_language_data): Likewise.
3512 * rust-lang.c (rust_language_data): Likewise.
3513 * symtab.c (search_name_hash): Update call.
3514
8e25bafe
AB
35152020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
3516
3517 * ada-lang.c (ada_language_data): Delete la_get_compile_instance
3518 initializer.
3519 * c-lang.c (class compile_instance): Declare.
3520 (c_language_data): Delete la_get_compile_instance initializer.
3521 (c_language::get_compile_instance): New member function.
3522 (cplus_language_data): Delete la_get_compile_instance initializer.
3523 (cplus_language::get_compile_instance): New member function.
3524 (asm_language_data): Delete la_get_compile_instance initializer.
3525 (minimal_language_data): Likewise.
3526 * c-lang.h (c_get_compile_context): Update comment.
3527 (cplus_get_compile_context): Update comment.
3528 * compile/compile.c (compile_to_object): Update calls, don't rely
3529 on function pointer being NULL.
3530 * d-lang.c (d_language_data): Delete la_get_compile_instance
3531 initializer.
3532 * f-lang.c (f_language_data): Likewise.
3533 * go-lang.c (go_language_data): Likewise.
3534 * language.c (unknown_language_data): Likewise.
3535 (auto_language_data): Likewise.
3536 * language.h (language_data): Delete la_get_compile_instance field.
3537 (language_defn::get_compile_instance): New member function.
3538 * m2-lang.c (m2_language_data): Delete la_get_compile_instance
3539 initializer.
3540 * objc-lang.c (objc_language_data): Likewise.
3541 * opencl-lang.c (opencl_language_data): Likewise.
3542 * p-lang.c (pascal_language_data): Likewise.
3543 * rust-lang.c (rust_language_data): Likewise.
3544
4009ee92
AB
35452020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
3546
3547 * ada-lang.c (ada_add_all_symbols): Update comment.
3548 (ada_iterate_over_symbols): Delete, move implementation to...
3549 (ada_language::iterate_over_symbols): ...here, a new member
3550 function, rewrite to use range based for loop.
3551 (ada_language_data): Delete la_iterate_over_symbols initializer.
3552 * c-lang.c (c_language_data): Likewise.
3553 (cplus_language_data): Likewise.
3554 (asm_language_data): Likewise.
3555 (minimal_language_data): Likewise.
3556 * d-lang.c (d_language_data): Likewise.
3557 * f-lang.c (f_language_data): Likewise.
3558 * go-lang.c (go_language_data): Likewise.
3559 * language.c (unknown_language_data): Likewise.
3560 (auto_language_data): Likewise.
3561 * language.h (language_data): Delete la_iterate_over_symbols field.
3562 (language_defn::iterate_over_symbols): New member function.
3563 (LA_ITERATE_OVER_SYMBOLS): Update.
3564 * linespec.c (iterate_over_all_matching_symtabs): Update.
3565 * m2-lang.c (m2_language_data): Delete la_iterate_over_symbols
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
54f4ca46
AB
35722020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
3573
3574 * ada-lang.c (ada_language_data): Delete
3575 la_lookup_transparent_type initializer.
3576 * c-lang.c (c_language_data): Likewise.
3577 (cplus_language_data): Likewise.
3578 (cplus_language::lookup_transparent_type): New member function.
3579 (asm_language_data): Delete la_lookup_transparent_type
3580 initializer.
3581 (minimal_language_data): Likewise.
3582 * d-lang.c (d_language_data): Likewise.
3583 * f-lang.c (f_language_data): Likewise.
3584 * go-lang.c (go_language_data): Likewise.
3585 * language.c (unknown_language_data): Likewise.
3586 (auto_language_data): Likewise.
3587 * language.h (struct language_data): Delete
3588 la_lookup_transparent_type field.
3589 (language_defn::lookup_transparent_type): New member function.
3590 * m2-lang.c (m2_language_data): Delete la_lookup_transparent_type
3591 initializer.
3592 * objc-lang.c (objc_language_data): Likewise.
3593 * opencl-lang.c (opencl_language_data): Likewise.
3594 * p-lang.c (pascal_language_data): Likewise.
3595 * rust-lang.c (rust_language_data): Likewise.
3596 * symtab.c (symbol_matches_domain): Update call.
3597
1fb314aa
AB
35982020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
3599
3600 * ada-lang.c (ada_language_arch_info): Delete function, move
3601 implementation to...
3602 (ada_language::language_arch_info): ...here, a new member
3603 function.
3604 (ada_language_data): Delete la_language_arch_info.
3605 * c-lang.c (c_language_data): Likewise.
3606 (c_language::language_arch_info): New member function.
3607 (cplus_language_arch_info): Delete function, move
3608 implementation to...
3609 (cplus_language::language_arch_info): ...here, a new member
3610 function.
3611 (cplus_language_data): Delete la_language_arch_info.
3612 (asm_language_data): Likewise.
3613 (asm_language::language_arch_info): New member function.
3614 (minimal_language_data): Delete la_language_arch_info.
3615 (minimal_language::language_arch_info): New member function.
3616 * d-lang.c (d_language_arch_info): Delete function, move
3617 implementation to...
3618 (d_language::language_arch_info): ...here, a new member
3619 function.
3620 (d_language_data): Delete la_language_arch_info.
3621 * f-lang.c (f_language_arch_info): Delete function, move
3622 implementation to...
3623 (f_language::language_arch_info): ...here, a new member
3624 function.
3625 (f_language_data): Delete la_language_arch_info.
3626 * go-lang.c (go_language_arch_info): Delete function, move
3627 implementation to...
3628 (go_language::language_arch_info): ...here, a new member
3629 function.
3630 (go_language_data): Delete la_language_arch_info.
3631 * language.c (unknown_language_data): Likewise.
3632 (unknown_language::language_arch_info): New member function.
3633 (auto_language_data): Delete la_language_arch_info.
3634 (auto_language::language_arch_info): New member function.
3635 (language_gdbarch_post_init): Update call to
3636 la_language_arch_info.
3637 * language.h (language_data): Delete la_language_arch_info
3638 function pointer.
3639 (language_defn::language_arch_info): New function.
3640 * m2-lang.c (m2_language_arch_info): Delete function, move
3641 implementation to...
3642 (m2_language::language_arch_info): ...here, a new member
3643 function.
3644 (m2_language_data): Delete la_language_arch_info.
3645 * objc-lang.c (objc_language_arch_info): Delete function, move
3646 implementation to...
3647 (objc_language::language_arch_info): ...here, a new member
3648 function.
3649 (objc_language_data): Delete la_language_arch_info.
3650 * opencl-lang.c (opencl_language_arch_info): Delete function, move
3651 implementation to...
3652 (opencl_language::language_arch_info): ...here, a new member
3653 function.
3654 (opencl_language_data): Delete la_language_arch_info.
3655 * p-lang.c (pascal_language_arch_info): Delete function, move
3656 implementation to...
3657 (pascal_language::language_arch_info): ...here, a new member
3658 function.
3659 (pascal_language_data): Delete la_language_arch_info.
3660 * rust-lang.c (rust_language_arch_info): Delete function, move
3661 implementation to...
3662 (rust_language::language_arch_info): ...here, a new member
3663 function.
3664 (rust_language_data): Delete la_language_arch_info.
3665
48448202
AB
36662020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
3667
3668 * ada-lang.c (ada_language_data): Delete la_pass_by_reference
3669 initializer.
3670 * c-lang.c (c_language_data): Likewise.
3671 (cplus_language_data): Likewise.
3672 (cplus_language::pass_by_reference_info): New method.
3673 (asm_language_data): Delete la_pass_by_reference initializer.
3674 (minimal_language_data): Likewise.
3675 * cp-abi.c (cp_pass_by_reference): Remove use of
3676 default_pass_by_reference.
3677 * d-lang.c (d_language_data): Likewise.
3678 * f-lang.c (f_language_data): Likewise.
3679 * gnu-v3-abi.c (gnuv3_pass_by_reference): Remove use of
3680 default_pass_by_reference.
3681 * go-lang.c (go_language_data): Likewise.
3682 * language.c (language_pass_by_reference): Update.
3683 (default_pass_by_reference): Delete.
3684 (unknown_language_data): Delete la_pass_by_reference
3685 initializer.
3686 (auto_language_data): Likewise.
3687 * language.h (struct language_data): Delete la_pass_by_reference
3688 field.
3689 (language_defn::pass_by_reference_info): New member function.
3690 (default_pass_by_reference): Delete declaration.
3691 * m2-lang.c (m2_language_data): Delete la_pass_by_reference
3692 initializer.
3693 * objc-lang.c (objc_language_data): Likewise.
3694 * opencl-lang.c (opencl_language_data): Likewise.
3695 * p-lang.c (pascal_language_data): Likewise.
3696 * rust-lang.c (rust_language_data): Likewise.
3697
15e5fd35
AB
36982020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
3699
3700 * ada-lang.c (ada_read_var_value): Delete function, move
3701 implementation to...
3702 (ada_language::read_var_value): ...here.
3703 (ada_language_data): Delete la_read_var_value initializer.
3704 * c-lang.c (c_language_data): Likewise.
3705 (cplus_language_data): Likewise.
3706 (minimal_language_data): Likewise.
3707 * d-lang.c (d_language_data): Likewise.
3708 * f-lang.c (f_language_data): Likewise.
3709 * findvar.c (default_read_var_value): Rename to...
3710 (language_defn::read_var_value): ...this.
3711 * findvar.c (read_var_value): Update header comment, and change to
3712 call member function instead of function pointer.
3713 * go-lang.c (go_language_data): Likewise.
3714 * language.c (unknown_language_data): Delete la_read_var_value
3715 initializer.
3716 (auto_language_data): Likewise.
3717 * language.h (struct language_data): Delete la_read_var_value
3718 field.
3719 (language_defn::read_var_value): New member function.
3720 (default_read_var_value): Delete declaration.
3721 * m2-lang.c (m2_language_data): Delete la_read_var_value
3722 initializer.
3723 * objc-lang.c (objc_language_data): Likewise.
3724 * opencl-lang.c (opencl_language_data): Likewise.
3725 * p-lang.c (pascal_language_data): Likewise.
3726 * rust-lang.c (rust_language_data): Likewise.
3727 * value.h (default_read_var_value): Delete declaration.
3728
5bd40f2a
AB
37292020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
3730
3731 * ada-lang.c (ada_print_array_index): Delete function, move
3732 implementation to...
3733 (ada_language::print_array_index): ...here.
3734 (ada_language_data): Delete la_print_array_index initializer.
3735 * c-lang.c (c_language_data): Likewise.
3736 (cplus_language_data): Likewise.
3737 (minimal_language_data): Likewise.
3738 * d-lang.c (d_language_data): Likewise.
3739 * f-lang.c (f_language_data): Likewise.
3740 * go-lang.c (go_language_data): Likewise.
3741 * language.c (default_print_array_index): Delete function, move
3742 implementation to...
3743 (language_defn::print_array_index): ...here.
3744 (unknown_language_data): Delete la_print_array_index initializer.
3745 (auto_language_data): Likewise.
3746 * language.h (struct language_data): Delete la_print_array_index
3747 field.
3748 (language_defn::print_array_index): New member function.
3749 (LA_PRINT_ARRAY_INDEX): Update.
3750 (default_print_array_index): Delete declaration.
3751 * m2-lang.c (m2_language_data): Delete la_print_array_index
3752 initializer.
3753 * objc-lang.c (objc_language_data): Likewise.
3754 * opencl-lang.c (opencl_language_data): Likewise.
3755 * p-lang.c (pascal_language_data): Likewise.
3756 * rust-lang.c (rust_language_data): Likewise.
3757
0874fd07
AB
37582020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
3759
3760 * gdb/ada-lang.c (ada_language_defn): Convert to...
3761 (ada_language_data): ...this.
3762 (class ada_language): New class.
3763 (ada_language_defn): New static global.
3764 * gdb/c-lang.c (c_language_defn): Convert to...
3765 (c_language_data): ...this.
3766 (class c_language): New class.
3767 (c_language_defn): New static global.
3768 (cplus_language_defn): Convert to...
3769 (cplus_language_data): ...this.
3770 (class cplus_language): New class.
3771 (cplus_language_defn): New static global.
3772 (asm_language_defn): Convert to...
3773 (asm_language_data): ...this.
3774 (class asm_language): New class.
3775 (asm_language_defn): New static global.
3776 (minimal_language_defn): Convert to...
3777 (minimal_language_data): ...this.
3778 (class minimal_language): New class.
3779 (minimal_language_defn): New static global.
3780 * gdb/d-lang.c (d_language_defn): Convert to...
3781 (d_language_data): ...this.
3782 (class d_language): New class.
3783 (d_language_defn): New static global.
3784 * gdb/f-lang.c (f_language_defn): Convert to...
3785 (f_language_data): ...this.
3786 (class f_language): New class.
3787 (f_language_defn): New static global.
3788 * gdb/go-lang.c (go_language_defn): Convert to...
3789 (go_language_data): ...this.
3790 (class go_language): New class.
3791 (go_language_defn): New static global.
3792 * gdb/language.c (unknown_language_defn): Remove declaration.
3793 (current_language): Initialize to nullptr, real initialization is
3794 moved to _initialize_language.
3795 (languages): Delete global.
3796 (language_defn::languages): Define.
3797 (set_language_command): Use language_defn::languages.
3798 (set_language): Likewise.
3799 (range_error): Likewise.
3800 (language_enum): Likewise.
3801 (language_def): Likewise.
3802 (add_set_language_command): Use language_def::languages for the
3803 language list, and language_def to lookup language pointers.
3804 (skip_language_trampoline): Use language_defn::languages.
3805 (unknown_language_defn): Convert to...
3806 (unknown_language_data): ...this.
3807 (class unknown_language): New class.
3808 (unknown_language_defn): New static global.
3809 (auto_language_defn): Convert to...
3810 (auto_language_data): ...this.
3811 (class auto_language): New class.
3812 (auto_language_defn): New static global.
3813 (language_gdbarch_post_init): Use language_defn::languages.
3814 (_initialize_language): Initialize current_language.
3815 * gdb/language.h (struct language_defn): Rename to...
3816 (struct language_data): ...this.
3817 (struct language_defn): New.
3818 (auto_language_defn): Delete.
3819 (unknown_language_defn): Delete.
3820 (minimal_language_defn): Delete.
3821 (ada_language_defn): Delete.
3822 (asm_language_defn): Delete.
3823 (c_language_defn): Delete.
3824 (cplus_language_defn): Delete.
3825 (d_language_defn): Delete.
3826 (f_language_defn): Delete.
3827 (go_language_defn): Delete.
3828 (m2_language_defn): Delete.
3829 (objc_language_defn): Delete.
3830 (opencl_language_defn): Delete.
3831 (pascal_language_defn): Delete.
3832 (rust_language_defn): Delete.
3833 * gdb/m2-lang.c (m2_language_defn): Convert to...
3834 (m2_language_data): ...this.
3835 (class m2_language): New class.
3836 (m2_language_defn): New static global.
3837 * gdb/objc-lang.c (objc_language_defn): Convert to...
3838 (objc_language_data): ...this.
3839 (class objc_language): New class.
3840 (objc_language_defn): New static global.
3841 * gdb/opencl-lang.c (opencl_language_defn): Convert to...
3842 (opencl_language_data): ...this.
3843 (class opencl_language): New class.
3844 (opencl_language_defn): New static global.
3845 * gdb/p-lang.c (pascal_language_defn): Convert to...
3846 (pascal_language_data): ...this.
3847 (class pascal_language): New class.
3848 (pascal_language_defn): New static global.
3849 * gdb/rust-exp.y (rust_lex_tests): Use language_def to find
3850 language pointer, update comment format.
3851 * gdb/rust-lang.c (rust_language_defn): Convert to...
3852 (rust_language_data): ...this.
3853 (class rust_language): New class.
3854 (rust_language_defn): New static global.
3855
1313c56e
AB
38562020-06-01 Andrew Burgess <andrew.burgess@embecosm.com>
3857
3858 * dwarf2/read.c (class lnp_state_machine) <m_last_address>: New
3859 member variable.
3860 <m_stmt_at_address>: New member variable.
3861 (lnp_state_machine::record_line): Don't record some lines, update
3862 tracking of is_stmt at the same address.
3863 (lnp_state_machine::lnp_state_machine): Initialise new member
3864 variables.
3865
b7ed9f3d
ST
38662020-06-01 Samuel Thibault <samuel.thibault@ens-lyon.org>
3867
3868 * config/i386/i386gnu.mn [%_S.o %_U.o] (COMPILE.post): Add
3869 "-include gnu-nat-mig.h".
3870 * gnu-nat-mig.h: New file.
3871 * gnu-nat.c: Include "gnu-nat-mig.h".
3872 (exc_server, msg_reply_server, notify_server,
3873 process_reply_server): Remove declarations.
3874
14a8ad62
ST
38752020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
3876
3877 * gnu-nat.h (inf_validate_procs, inf_suspend, inf_set_traced,
3878 steal_exc_port, proc_get_state, inf_clear_wait, inf_cleanup,
3879 inf_startup, inf_update_suspends, inf_set_pid, inf_steal_exc_ports,
3880 inf_validate_procinfo, inf_validate_task_sc, inf_restore_exc_ports,
3881 inf_set_threads_resume_sc, inf_set_threads_resume_sc_for_signal_thread,
3882 inf_resume, inf_set_step_thread, inf_detach, inf_attach, inf_signal,
3883 inf_continue, make_proc, proc_abort, _proc_free, proc_update_sc,
3884 proc_get_exception_port, proc_set_exception_port, _proc_get_exc_port,
3885 proc_steal_exc_port, proc_restore_exc_port, proc_trace): Move functions
3886 to gnu_nat_target class.
3887 * gnu-nat.c: Likewise.
3888 (inf_update_procs, S_proc_wait_reply, set_task_pause_cmd,
3889 set_task_exc_port_cmd, set_signals_cmd, set_thread_pause_cmd,
3890 set_thread_exc_port_cmd): Call inf_validate_procs through gnu_target
3891 object.
3892 (gnu_nat_target::create_inferior, gnu_nat_target::detach): Pass `this'
3893 instead of `gnu_target'.
3894
0af5e106
ST
38952020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
3896
3897 * i386-gnu-tdep.c: Include "gdbcore.h"
3898 (gnu_sigtramp_code, i386_gnu_sc_reg_offset): New arrays.
3899 (GNU_SIGTRAMP_LEN, GNU_SIGTRAMP_TAIL,
3900 I386_GNU_SIGCONTEXT_THREAD_STATE_OFFSET): New macros
3901 (i386_gnu_sigtramp_start, i386_gnu_sigtramp_p,
3902 i386_gnu_sigcontext_addr): New functions
3903 (i386gnu_init_abi): Register i386_gnu_sigtramp_p,
3904 i386_gnu_sigcontext_addr, and i386_gnu_sc_reg_offset in the gdbarch
3905 tdep.
3906
078f2fc9
ST
39072020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
3908
3909 * gnu-nat.c (gnu_nat_target::create_inferior): Move push_target call
3910 before fork_inferior call. Avoid calling it if target_is_pushed returns
3911 true.
3912
53dff92c
ST
39132020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
3914
3915 * gnu-nat.h (gnu_target): New variable declaration.
3916 * i386-gnu-nat.c (_initialize_i386gnu_nat): Initialize
3917 gnu_target.
3918 * gnu-nat.c (gnu_target): New variable.
3919 (inf_validate_procs): Pass gnu_target to thread_change_ptid,
3920 add_thread_silent, and add_thread calls.
3921 (gnu_nat_target::create_inferior): Pass gnu_target to
3922 add_thread_silent, thread_change_ptid call.
3923 (gnu_nat_target::detach): Pass gnu_target to detach_inferior
3924 call.
3925
5a8b8627
ST
39262020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
3927
3928 * gnu-nat.c (gnu_xfer_auxv): Remove unused `res' variable.
3929 (gnu_nat_target::find_memory_regions): Remove unused
3930 `old_address' variable.
3931
366f550a
ST
39322020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
3933
3934 * gnu-nat.c: Include "gdbarch.h".
3935
f14871bf
ST
39362020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
3937
3938 * reply_mig_hack.awk (Error return): Cast function through
3939 void *, to bypass compiler function call check.
3940
c6887cfb
ST
39412020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
3942
3943 * config/i386/i386gnu.mn (%_reply_S.c): Add dependency on
3944 $(srcdir)/reply_mig_hack.awk.
3945
6930bffe
ST
39462020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
3947
3948 * gnu-nat.h (gnu_debug_flag): Set type to bool.
3949
112c22ed
JG
39502020-05-30 Jonny Grant <jg@jguk.org>
3951
3952 * configure.ac (ACX_BUGURL): change bug URL to https.
3953
f68f85b5
PA
39542020-05-30 Pedro Alves <palves@redhat.com>
3955
3956 * cp-support.c (replace_typedefs_template): New.
3957 (replace_typedefs_qualified_name): Handle
3958 DEMANGLE_COMPONENT_TEMPLATE.
3959
976ca316
SM
39602020-05-29 Simon Marchi <simon.marchi@efficios.com>
3961
3962 * dwarf2/comp-unit.c, dwarf2/comp-unit.h, dwarf2/index-cache.c,
3963 dwarf2/index-cache.h, dwarf2/index-write.c,
3964 dwarf2/index-write.h, dwarf2/line-header.c,
3965 dwarf2/line-header.h, dwarf2/macro.c, dwarf2/macro.h,
3966 dwarf2/read.c, dwarf2/read.h: Rename struct dwarf2_per_objfile
3967 variables and fields from `dwarf2_per_objfile` to just
3968 `per_objfile` throughout.
3969
989ade05
SM
39702020-05-28 Simon Marchi <simon.marchi@polymtl.ca>
3971
3972 * dwarf2/loc.c (class dwarf_evaluate_loc_desc)
3973 <push_dwarf_reg_entry_value>: Add comment.
3974
c47bae85
KB
39752020-05-28 Kevin Buettner <kevinb@redhat.com>
3976 Keith Seitz <keiths@redhat.com>
3977
3978 * python/python.c (do_start_initialization): Call PyEval_SaveThread
3979 instead of PyEval_ReleaseLock.
3980 (class gdbpy_gil): Move to earlier in file.
3981 (finalize_python): Set gdb_python_initialized.
3982 (gdbpy_check_quit_flag): Acquire GIL via gdbpy_gil. Return early
3983 when not initialized.
3984
44486dcf
SM
39852020-05-28 Simon Marchi <simon.marchi@efficios.com>
3986
3987 * dwarf2/loc.c (class dwarf_evaluate_loc_desc)
3988 <push_dwarf_reg_entry_value>: Remove assert. Override
3989 per_objfile with caller_per_objfile.
3990
f030440d
TV
39912020-05-28 Tom de Vries <tdevries@suse.de>
3992
3993 * dwarf2/read.c (dw2_symtab_iter_next, dw2_expand_marked_cus): Limit
3994 PR gold/15646 workaround to symbol kind "type".
3995
f0fbb768
TT
39962020-05-27 Tom Tromey <tromey@adacore.com>
3997
3998 * dwarf2/read.c (load_partial_dies): Use add_partial_symbol.
3999
af0b2a3e
TT
40002020-05-27 Tom Tromey <tromey@adacore.com>
4001
4002 * dwarf2/abbrev.h (struct abbrev_table) <lookup_abbrev>: Inline.
4003 Use htab_find_with_hash.
4004 <add_abbrev>: Remove "abbrev_number" parameter.
4005 * dwarf2/abbrev.c (abbrev_table::add_abbrev): Remove
4006 "abbrev_number" parameter. Use htab_find_slot_with_hash.
4007 (hash_abbrev): Add comment.
4008 (abbrev_table::lookup_abbrev): Move to header file.
4009 (abbrev_table::read): Update.
4010
7d00ffec
TT
40112020-05-27 Tom Tromey <tromey@adacore.com>
4012
4013 * dwarf2/read.c (struct partial_die_info) <name>: Declare new
4014 method.
4015 <canonical_name>: New member.
4016 <raw_name>: Rename from "name".
4017 (partial_die_info): Initialize canonical_name.
4018 (scan_partial_symbols): Check raw_name.
4019 (partial_die_parent_scope, partial_die_full_name)
4020 (add_partial_symbol, add_partial_subprogram)
4021 (add_partial_enumeration, load_partial_dies): Use "name" method.
4022 (partial_die_info::name): New method.
4023 (partial_die_info::read, guess_partial_die_structure_name)
4024 (partial_die_info::fixup): Update.
4025
697bba18
TT
40262020-05-27 Tom Tromey <tromey@adacore.com>
4027
4028 * dwarf2/attribute.h (struct attribute) <form_is_ref>: Inline.
4029 <get_ref_die_offset>: Inline.
4030 <get_ref_die_offset_complaint>: New method.
4031 * dwarf2/attribute.c (attribute::form_is_ref): Move to header.
4032 (attribute::get_ref_die_offset_complaint): Rename from
4033 get_ref_die_offset. Just issue complaint.
4034
c17ace43
HD
40352020-05-27 Hannes Domani <ssbssa@yahoo.de>
4036
4037 * cli/cli-cmds.c (shell_escape): Move exit_status_set_internal_vars.
4038
96445f0b
HD
40392020-05-27 Hannes Domani <ssbssa@yahoo.de>
4040
4041 * exec.c (exec_file_attach): Use errno value of first openp failure.
4042
ac637ec3
HD
40432020-05-27 Hannes Domani <ssbssa@yahoo.de>
4044
4045 * nat/windows-nat.c (windows_thread_info::~windows_thread_info):
4046 Don't close thread handle.
4047
17ee85fc
TT
40482020-05-27 Tom Tromey <tom@tromey.com>
4049 Simon Marchi <simon.marchi@efficios.com>
4050
4051 * objfiles.h (struct objfile) <partial_symtabs>: Now a
4052 shared_ptr.
4053 * dwarf2/read.h (struct dwarf2_per_objfile) <partial_symtabs>: New
4054 member.
4055 * dwarf2/read.c (dwarf2_per_bfd_bfd_data_key,
4056 dwarf2_per_bfd_objfile_data_key>: New globals.
4057 (dwarf2_has_info): Use shared dwarf2_per_bfd if possible.
4058 (dwarf2_get_section_info): Use get_dwarf2_per_objfile.
4059 (dwarf2_initialize_objfile): Consider cases where per_bfd can be
4060 shared.
4061 (dwarf2_build_psymtabs): Set objfile::partial_symtabs and
4062 short-circuit when sharing.
4063 (dwarf2_build_psymtabs): Set dwarf2_per_objfile::partial_symtabs.
4064 (dwarf2_psymtab::expand_psymtab): Use free_cached_comp_units.
4065
39b16f87
SM
40662020-05-27 Simon Marchi <simon.marchi@efficios.com>
4067
4068 * dwarf2/read.h (struct dwarf2_per_bfd) <line_header_hash>: Move
4069 to...
4070 (struct dwarf2_per_objfile) <line_header_hash>: ... here.
4071 * dwarf2/read.c (handle_DW_AT_stmt_list): Update.
4072
fcf23d5b
SM
40732020-05-27 Simon Marchi <simon.marchi@efficios.com>
4074
4075 * dwarf2/read.c (struct mapped_index_base) <symbol_name_at,
4076 build_name_components, find_name_components_bounds>:
4077 Add per_objfile parameter.
4078 (struct mapped_index) <symbol_name_at>: Likewise.
4079 (struct mapped_debug_names): Remove constructor.
4080 <dwarf2_per_objfile>: Remove field.
4081 <namei_to_name, symbol_name_at>: Add per_objfile parameter.
4082 (mapped_index_base::find_name_components_bounds,
4083 mapped_index_base::build_name_components,
4084 dw2_expand_symtabs_matching_symbol): Likewise.
4085 (class mock_mapped_index) <symbol_name_at>: Likewise.
4086 (check_match): Likewise.
4087 (check_find_bounds_finds): Likewise.
4088 (test_mapped_index_find_name_component_bounds): Update.
4089 (CHECK_MATCH): Update.
4090 (dw2_expand_symtabs_matching): Update.
4091 (class dw2_debug_names_iterator) <dw2_debug_names_iterator>: Add
4092 per_objfile parameter.
4093 <find_vec_in_debug_names>: Likewise.
4094 <m_per_objfile>: New field.
4095 (mapped_debug_names::namei_to_name): Add dwarf2_per_objfile
4096 parameter.
4097 (dw2_debug_names_iterator::find_vec_in_debug_names): Likewise.
4098 (dw2_debug_names_iterator::next): Update.
4099 (dw2_debug_names_lookup_symbol): Update.
4100 (dw2_debug_names_expand_symtabs_for_function): Update.
4101 (dw2_debug_names_map_matching_symbols): Update.
4102 (dw2_debug_names_expand_symtabs_matching): Update.
4103 (dwarf2_read_debug_names): Update.
4104
7188ed02
SM
41052020-05-27 Simon Marchi <simon.marchi@efficios.com>
4106
4107 * dwarf2/read.h (struct dwarf2_cu): Forward-declare.
4108 (struct dwarf2_per_bfd) <free_cached_comp_units>: Remove,
4109 move to dwarf2_per_objfile.
4110 <read_in_chain>: Remove.
4111 (struct dwarf2_per_objfile) <get_cu, set_cu, remove_cu,
4112 remove_all_cus, age_comp_units>: New methods.
4113 <m_dwarf2_cus>: New member.
4114 (struct dwarf2_per_cu_data) <cu>: Remove.
4115 * dwarf2/read.c (struct dwarf2_cu) <read_in_chain>: Remove.
4116 (age_cached_comp_units, free_one_cached_comp_unit): Remove,
4117 moved to methods of dwarf2_per_objfile.
4118 (dwarf2_clear_marks): Remove.
4119 (dwarf2_queue_item::~dwarf2_queue_item): Update.
4120 (dwarf2_per_bfd::~dwarf2_per_bfd): Don't free dwarf2_cus.
4121 (dwarf2_per_bfd::free_cached_comp_units): Remove.
4122 (dwarf2_per_objfile::remove_all_cus): New.
4123 (class free_cached_comp_units) <~free_cached_comp_units>:
4124 Update.
4125 (load_cu): Update.
4126 (dw2_do_instantiate_symtab): Adjust.
4127 (fill_in_sig_entry_from_dwo_entry): Adjust.
4128 (cutu_reader::init_tu_and_read_dwo_dies): Update.
4129 (cutu_reader::cutu_reader): Likewise.
4130 (cutu_reader::keep): Use dwarf2_per_objfile::set_cu.
4131 (cutu_reader::cutu_reader): Use dwarf2_per_objfile::get_cu.
4132 (process_psymtab_comp_unit): Use dwarf2_per_objfile::remove_cu
4133 and dwarf2_per_objfile::age_comp_units.
4134 (load_partial_comp_unit): Update.
4135 (maybe_queue_comp_unit): Use dwarf2_per_objfile::get_cu.
4136 (process_queue): Likewise.
4137 (find_partial_die): Use dwarf2_per_objfile::get_cu instead of cu
4138 backlink.
4139 (dwarf2_read_addr_index): Likewise.
4140 (follow_die_offset): Likewise.
4141 (dwarf2_fetch_die_loc_sect_off): Likewise.
4142 (dwarf2_fetch_constant_bytes): Likewise.
4143 (dwarf2_fetch_die_type_sect_off): Likewise.
4144 (follow_die_sig_1): Likewise.
4145 (load_full_type_unit): Likewise.
4146 (read_signatured_type): Likewise.
4147 (dwarf2_cu::dwarf2_cu): Don't set cu field.
4148 (dwarf2_cu::~dwarf2_cu): Remove.
4149 (dwarf2_per_objfile::get_cu): New.
4150 (dwarf2_per_objfile::set_cu): New.
4151 (age_cached_comp_units): Rename to...
4152 (dwarf2_per_objfile::age_comp_units): ... this. Adjust
4153 to std::unordered_map.
4154 (free_one_cached_comp_unit): Rename to...
4155 (dwarf2_per_objfile::remove_cu): ... this. Adjust
4156 to std::unordered_map.
4157 (dwarf2_per_objfile::~dwarf2_per_objfile): New.
4158 (dwarf2_mark_helper): Use dwarf2_per_objfile::get_cu, expect
4159 a dwarf2_per_objfile in data.
4160 (dwarf2_mark): Pass dwarf2_per_objfile in data to htab_traverse.
4161 (dwarf2_clear_marks): Remove.
4162
2e671100
SM
41632020-05-27 Simon Marchi <simon.marchi@efficios.com>
4164
4165 * dwarf2/read.c (class cutu_reader) <cutu_reader>: Replace
4166 `int use_existing_cu` parameter with `dwarf2_cu *existing_cu`.
4167 (init_tu_and_read_dwo_dies): Likewise.
4168 (cutu_reader::init_tu_and_read_dwo_dies): Likewise.
4169 (cutu_reader::cutu_reader): Likewise.
4170 (load_partial_comp_unit): Likewise.
4171 (process_psymtab_comp_unit): Update.
4172 (build_type_psymtabs_1): Update.
4173 (process_skeletonless_type_unit): Update.
4174 (load_full_comp_unit): Update.
4175 (find_partial_die): Update.
4176 (dwarf2_read_addr_index): Update.
4177 (read_signatured_type): Update.
4178
2e6a9f79
SM
41792020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
4180
4181 * dwarf2/read.h (struct dwarf2_per_cu_data) <m_header,
4182 m_header_read_in>: New fields.
4183 <get_header>: New method.
4184 * dwarf2/read.c (per_cu_header_read_in): Remove.
4185 (dwarf2_per_cu_data::get_header): New.
4186 (dwarf2_per_cu_data::addr_size): Update.
4187 (dwarf2_per_cu_data::offset_size): Update.
4188 (dwarf2_per_cu_data::ref_addr_size): Update.
4189
1b555f17
SM
41902020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
4191
4192 * dwarf2/read.c (load_cu): Return dwarf2_cu.
4193 (dw2_do_instantiate_symtab): Update.
4194 (queue_and_load_all_dwo_tus): Change parameter from
4195 dwarf2_per_cu_data to dwarf2_cu.
4196 (dwarf2_fetch_die_loc_sect_off): Update.
4197 (dwarf2_fetch_constant_bytes): Update.
4198 (dwarf2_fetch_die_type_sect_off): Update.
4199
8fc0b21d
SM
42002020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
4201
4202 * dwarf2/read.c (process_full_comp_unit,
4203 process_full_type_unit): Remove per_cu, per_objfile paramters.
4204 Add dwarf2_cu parameter.
4205 (process_queue): Update.
4206
168c9250
SM
42072020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
4208
4209 * dwarf2/read.c (create_cu_from_index_list): Replace
4210 dwarf2_per_objfile parameter with dwarf2_per_bfd.
4211 (create_cus_from_index_list): Likewise.
4212 (create_cus_from_index): Likewise.
4213 (create_signatured_type_table_from_index): Likewise.
4214 (create_cus_from_debug_names_list): Likewise.
4215 (create_cus_from_debug_names): Likewise.
4216 (dwarf2_read_gdb_index): Update.
4217 (dwarf2_read_debug_names): Update.
4218
e286671b
TT
42192020-05-27 Tom Tromey <tom@tromey.com>
4220 Simon Marchi <simon.marchi@efficios.com>
4221
4222 * dwarf2/read.h (struct dwarf2_per_objfile)
4223 <get_type_for_signatured_type, set_type_for_signatured_type>:
4224 New methods.
4225 <m_type_map>: New member.
4226 (struct signatured_type) <type>: Remove.
4227 * dwarf2/read.c
4228 (dwarf2_per_objfile::get_type_for_signatured_type,
4229 dwarf2_per_objfile::set_type_for_signatured_type): New.
4230 (get_signatured_type): Use new methods.
4231
8adb8487
TT
42322020-05-27 Tom Tromey <tom@tromey.com>
4233 Simon Marchi <simon.marchi@efficios.com>
4234
4235 * dwarf2/read.h (struct type_unit_group_unshareable): New.
4236 (struct dwarf2_per_objfile) <type_units>: New member.
4237 <get_type_unit_group_unshareable>: New method.
4238 * dwarf2/read.c (struct type_unit_group) <compunit_symtab,
4239 num_symtabs, symtabs>: Remove; move to
4240 type_unit_group_unshareable.
4241 (dwarf2_per_objfile::get_type_unit_group_unshareable): New.
4242 (process_full_type_unit, dwarf2_cu::setup_type_unit_groups)
4243 (dwarf2_cu::setup_type_unit_groups): Use type_unit_group_unshareable.
4244
127bbf4b
SM
42452020-05-27 Simon Marchi <simon.marchi@efficios.com>
4246
4247 * dwarf2/read.h (struct dwarf2_per_cu_data):
4248 <dwarf2_per_objfile>: Remove.
4249 * dwarf2/read.c (create_cu_from_index_list): Don't assign
4250 dwarf2_per_objfile.
4251 (create_signatured_type_table_from_index): Likewise.
4252 (create_signatured_type_table_from_debug_names): Likewise.
4253 (create_debug_type_hash_table): Likewise.
4254 (fill_in_sig_entry_from_dwo_entry): Likewise.
4255 (create_type_unit_group): Likewise.
4256 (read_comp_units_from_section): Likewise.
4257 (create_cus_hash_table): Likewise.
4258
f6e649dd
SM
42592020-05-27 Simon Marchi <simon.marchi@efficios.com>
4260
4261 * dwarf2/read.c (process_psymtab_comp_unit): Remove reference to
4262 dwarf2_per_cu_data::dwarf2_per_objfile.
4263 (compute_compunit_symtab_includes): Likewise.
4264 (dwarf2_cu::start_symtab): Likewise.
4265
aa66c379
SM
42662020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
4267
4268 * dwarf2/read.h (dwarf2_get_die_type): Add dwarf2_per_objfile
4269 parameter.
4270 * dwarf2/read.c (get_die_type_at_offset): Likewise.
4271 (read_namespace_alias): Update.
4272 (lookup_die_type): Update.
4273 (dwarf2_get_die_type): Add dwarf2_per_objfile parameter.
4274 * dwarf2/loc.c (class dwarf_evaluate_loc_desc) <get_base_type>:
4275 Update.
4276 (disassemble_dwarf_expression): Update.
4277
120ce1b5
SM
42782020-05-27 Simon Marchi <simon.marchi@efficios.com>
4279
4280 * dwarf2/read.h (struct dwarf2_queue_item): Add
4281 dwarf2_per_objfile parameter, assign new parameter.
4282 <per_objfile>: New field.
4283 * dwarf2/read.c (free_one_cached_comp_unit): Add
4284 dwarf2_per_objfile parameter.
4285 (queue_comp_unit): Likewise.
4286 (dw2_do_instantiate_symtab): Update.
4287 (process_psymtab_comp_unit): Update.
4288 (maybe_queue_comp_unit): Add dwarf2_per_objfile parameter.
4289 (process_imported_unit_die): Update.
4290 (queue_and_load_dwo_tu): Update.
4291 (follow_die_offset): Update.
4292 (follow_die_sig_1): Update.
4293
9f47c707
SM
42942020-05-27 Simon Marchi <simon.marchi@efficios.com>
4295
4296 * dwarf2/read.h (struct dwarf2_per_cu_data) <objfile>: Remove.
4297 * dwarf2/read.c (dwarf2_compute_name): Pass per_objfile down.
4298 (read_call_site_scope): Assign per_objfile.
4299 (dwarf2_per_cu_data::objfile): Remove.
4300 * gdbtypes.h (struct call_site) <per_objfile>: New member.
4301 * dwarf2/loc.h (dwarf2_evaluate_loc_desc): Add
4302 dwarf2_per_objfile parameter.
4303 * dwarf2/loc.c (dwarf2_evaluate_loc_desc_full): Add
4304 dwarf2_per_objfile parameter.
4305 (dwarf_expr_reg_to_entry_parameter): Add output
4306 dwarf2_per_objfile parameter.
4307 (locexpr_get_frame_base): Update.
4308 (class dwarf_evaluate_loc_desc) <get_tls_address>: Update.
4309 <push_dwarf_reg_entry_value>: Update.
4310 <call_site_to_target_addr>: Update.
4311 (dwarf_entry_parameter_to_value): Add dwarf2_per_objfile
4312 parameter.
4313 (value_of_dwarf_reg_entry): Update.
4314 (rw_pieced_value): Update.
4315 (indirect_synthetic_pointer): Update.
4316 (dwarf2_evaluate_property): Update.
4317 (dwarf2_loc_desc_get_symbol_read_needs): Add dwarf2_per_objfile
4318 parameter.
4319 (locexpr_read_variable): Update.
4320 (locexpr_get_symbol_read_needs): Update.
4321 (loclist_read_variable): Update.
4322
14095eb3
SM
43232020-05-27 Simon Marchi <simon.marchi@efficios.com>
4324
4325 * dwarf2/read.h (dwarf2_fetch_die_loc_sect_off,
4326 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
4327 dwarf2_fetch_die_type_sect_off): Add dwarf2_per_objfile
4328 parameter.
4329 * dwarf2/read.c (dwarf2_fetch_die_loc_sect_off,
4330 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
4331 dwarf2_fetch_die_type_sect_off): Add dwarf2_per_objfile
4332 parameter.
4333 * dwarf2/loc.c (indirect_synthetic_pointer, per_cu_dwarf_call,
4334 sect_variable_value): Add dwarf2_per_objfile parameter.
4335 (class dwarf_evaluate_loc_desc) <dwarf_call,
4336 dwarf_variable_value>: Update.
4337 (fetch_const_value_from_synthetic_pointer): Add
4338 dwarf2_per_objfile parameter.
4339 (fetch_const_value_from_synthetic_pointer): Update.
4340 (coerced_pieced_ref): Update.
4341 (class symbol_needs_eval_context) <dwarf_call,
4342 dwarf_variable_value>: Update.
4343 (dwarf2_compile_expr_to_ax): Update.
4344
3c3cd3d4
SM
43452020-05-27 Simon Marchi <simon.marchi@efficios.com>
4346
4347 * dwarf2/loc.c (allocate_piece_closure): Add dwarf2_per_objfile
4348 parameter.
4349 (dwarf2_evaluate_loc_desc_full): Update.
4350
82ca3f51
SM
43512020-05-27 Simon Marchi <simon.marchi@efficios.com>
4352
4353 * dwarf2/read.h (dwarf2_read_addr_index): Add dwarf2_per_objfile
4354 parameter.
4355 * dwarf2/read.c (dwarf2_read_addr_index): Likewise.
4356 * dwarf2/loc.c (decode_debug_loclists_addresses): Add
4357 dwarf2_per_objfile parameter.
4358 (decode_debug_loc_dwo_addresses): Likewise.
4359 (dwarf2_find_location_expression): Update.
4360 (class dwarf_evaluate_loc_desc) <get_addr_index>: Update.
4361 (locexpr_describe_location_piece): Add dwarf2_per_objfile
4362 parameter.
4363 (disassemble_dwarf_expression): Add dwarf2_per_objfile
4364 parameter.
4365 (locexpr_describe_location_1): Likewise.
4366 (locexpr_describe_location): Update.
4367
4b167ea1
SM
43682020-05-27 Simon Marchi <simon.marchi@efficios.com>
4369
4370 * dwarf2/read.h (struct dwarf2_per_cu_data) <text_offset>:
4371 Remove.
4372 * dwarf2/read.c (dwarf2_per_cu_data::text_offset): Remove.
4373 * dwarf2/loc.c (dwarf2_find_location_expression): Update.
4374 (dwarf2_compile_property_to_c): Update.
4375 (dwarf2_compile_expr_to_ax): Add dwarf2_per_objfile parameter,
4376 use text offset from objfile.
4377 (locexpr_tracepoint_var_ref): Update.
4378 (locexpr_generate_c_location): Update.
4379 (loclist_describe_location): Update.
4380 (loclist_tracepoint_var_ref): Update.
4381 * dwarf2/compile.h (compile_dwarf_bounds_to_c): Add
4382 dwarf2_per_objfile parameter.
4383 * dwarf2/loc2c.c (do_compile_dwarf_expr_to_c): Likewise,
4384 use text offset from objfile.
4385 (compile_dwarf_expr_to_c): Add dwarf2_per_objfile parameter.
4386
89b07335
SM
43872020-05-27 Simon Marchi <simon.marchi@efficios.com>
4388
4389 * dwarf2/expr.h (struct dwarf_expr_context)
4390 <dwarf_expr_context>: Add dwarf2_per_objfile parameter.
4391 <offset>: Remove.
4392 <per_objfile>: New member.
4393 * dwarf2/expr.c (dwarf_expr_context::dwarf_expr_context): Add
4394 dwarf2_per_objfile parameter. Don't set offset, set
4395 per_objfile.
4396 (dwarf_expr_context::execute_stack_op): Use offset from objfile.
4397 * dwarf2/frame.c (dwarf2_frame_find_fde): Return (by parameter)
4398 a dwarf2_per_objfile object instead of an offset.
4399 (class dwarf_expr_executor) <dwarf_expr_executor>: Add
4400 constructor.
4401 (execute_stack_op): Add dwarf2_per_objfile parameter, pass it
4402 to dwarf2_expr_executor constructor. Don't set offset.
4403 (dwarf2_fetch_cfa_info): Update.
4404 (struct dwarf2_frame_cache) <text_offset>: Remove.
4405 <per_objfile>: New field.
4406 (dwarf2_frame_cache): Update.
4407 (dwarf2_frame_prev_register): Update.
4408 * dwarf2/loc.c (class dwarf_evaluate_loc_desc)
4409 <dwarf_evaluate_loc_desc>: Add constructor.
4410 (dwarf2_evaluate_loc_desc_full): Update.
4411 (dwarf2_locexpr_baton_eval): Update.
4412 (class symbol_needs_eval_context) <symbol_needs_eval_context>:
4413 Add constructor.
4414 (dwarf2_loc_desc_get_symbol_read_needs): Update.
4415
293e7e51
SM
44162020-05-27 Simon Marchi <simon.marchi@efficios.com>
4417
4418 * dwarf2/read.h (struct dwarf2_per_cu_data) <addr_type,
4419 addr_sized_int_type>: Move to dwarf2_cu.
4420 <int_type>: Move to dwarf2_per_objfile.
4421 (struct dwarf2_per_objfile) <int_type>: Move here.
4422 * dwarf2/read.c (struct dwarf2_cu) <addr_type,
4423 addr_sized_int_type>: Move here.
4424 (read_func_scope): Update.
4425 (read_array_type): Update.
4426 (read_tag_string_type): Update.
4427 (attr_to_dynamic_prop): Update.
4428 (dwarf2_per_cu_data::int_type): Rename to...
4429 (dwarf2_per_objfile::int_type): ... this.
4430 (dwarf2_per_cu_data::addr_sized_int_type): Rename to...
4431 (dwarf2_cu::addr_sized_int_type): ... this.
4432 (read_subrange_type): Update.
4433 (dwarf2_per_cu_data::addr_type): Rename to...
4434 (dwarf2_cu::addr_type): ... this.
4435 (set_die_type): Update.
4436
64874a40
SM
44372020-05-27 Simon Marchi <simon.marchi@efficios.com>
4438
4439 * dwarf2/read.c (queue_and_load_all_dwo_tus): Access per_objfile
4440 data through per_cu->cu.
4441
4ab09049
SM
44422020-05-27 Simon Marchi <simon.marchi@efficios.com>
4443
4444 * dwarf2/read.c (lookup_dwo_comp_unit): Change
4445 dwarf2_per_cu_data parameter fo dwarf2_cu.
4446 (lookup_dwo_type_unit): Likewise.
4447 (read_cutu_die_from_dwo): Likewise.
4448 (lookup_dwo_unit): Likewise.
4449 (open_and_init_dwo_file): Likewise.
4450 (lookup_dwo_cutu): Likewise.
4451 (lookup_dwo_comp_unit): Likewise.
4452 (lookup_dwo_type_unit): Likewise.
4453 (cutu_reader::init_tu_and_read_dwo_dies): Update.
4454 (cutu_reader::cutu_reader): Update.
4455
47b14e86
SM
44562020-05-27 Simon Marchi <simon.marchi@efficios.com>
4457
4458 * dwarf2/read.c (process_full_comp_unit): Add dwarf2_per_objfile
4459 parameter.
4460 (process_full_type_unit): Likewise.
4461 (process_queue): Update.
4462
43182c09
SM
44632020-05-27 Simon Marchi <simon.marchi@efficios.com>
4464
4465 * dwarf2/read.c (recursively_compute_inclusions): Add
4466 dwarf2_per_objfile parameter.
4467 (compute_compunit_symtab_includes): Likewise.
4468 (process_cu_includes): Update.
4469
7aa104c4
SM
44702020-05-27 Simon Marchi <simon.marchi@efficios.com>
4471
4472 * dwarf2/read.c (create_partial_symtab): Add dwarf2_per_objfile
4473 parameter.
4474 (create_type_unit_group): Update.
4475 (process_psymtab_comp_unit_reader): Update.
4476 (build_type_psymtabs_reader): Update.
4477
e3beb21d
SM
44782020-05-27 Simon Marchi <simon.marchi@efficios.com>
4479
4480 * dwarf2/read.c (cutu_reader::keep): Access dwarf2_per_objfile
4481 object through m_this_cu->cu.
4482
d460f660
SM
44832020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
4484
4485 * dwarf2/read.c (queue_and_load_dwo_tu): Expect a dwarf2_cu as
4486 the info parameter.
4487 (queue_and_load_all_dwo_tus): Pass per_cu->cu.
4488
ab432490
SM
44892020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
4490
4491 * dwarf2/read.c (class cutu_reader) <cutu_reader>: Add
4492 per_objfile parameter.
4493 (load_full_type_unit): Add per_objfile parameter.
4494 (read_signatured_type): Likewise.
4495 (load_full_comp_unit): Likewise.
4496 (load_cu): Likewise.
4497 (dw2_do_instantiate_symtab): Likewise.
4498 (dw2_get_file_names): Likewise.
4499 (dw2_map_symtabs_matching_filename): Update.
4500 (dw_expand_symtabs_matching_file_matcher): Update.
4501 (dw2_map_symbol_filenames): Update.
4502 (process_psymtab_comp_unit): Add per_objfile parameter.
4503 (build_type_psymtabs_1): Update.
4504 (process_skeletonless_type_unit): Update.
4505 (dwarf2_build_psymtabs_hard): Update.
4506 (load_partial_comp_unit): Add per_objfile parameter.
4507 (scan_partial_symbols): Update.
4508 (load_full_comp_unit): Add per_objfile parameter.
4509 (process_imported_unit_die): Update.
4510 (create_cus_hash_table): Update.
4511 (find_partial_die): Update.
4512 (dwarf2_read_addr_index): Update.
4513 (follow_die_offset): Update.
4514 (dwarf2_fetch_die_loc_sect_off): Update.
4515 (dwarf2_fetch_constant_bytes): Update.
4516 (dwarf2_fetch_die_type_sect_off): Update.
4517 (follow_die_sig_1): Update.
4518 (load_full_type_unit): Add per_objfile parameter.
4519 (read_signatured_type): Likewise.
4520
313bad1b
SM
45212020-05-27 Simon Marchi <simon.marchi@efficios.com>
4522
4523 * dwarf2/read.c (lookup_dwo_unit): Use bfd_get_filename instead
4524 of objfile_name.
4525
c3699833
SM
45262020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
4527
4528 * dwarf2/read.h (struct dwarf2_per_bfd) <obfd>: New member.
4529 (dwarf2_get_dwz_file): Replace parameter with dwarf2_per_bfd.
4530 * dwarf2/read.c (dwarf2_per_bfd::dwarf2_per_bfd): Assign obfd
4531 field.
4532 (dwarf2_get_dwz_file): Replace parameter with dwarf2_per_bfd.
4533 (create_cus_from_index): Update.
4534 (dwarf2_read_gdb_index): Update.
4535 (create_cus_from_debug_names): Update.
4536 (dwarf2_read_debug_names): Update.
4537 (get_abbrev_section_for_cu): Update.
4538 (create_all_comp_units): Update.
4539 (read_attribute_value): Update.
4540 (get_debug_line_section): Update.
4541 * dwarf2/index-cache.c (index_cache::store): Update.
4542 * dwarf2/index-write.c (save_gdb_index_command): Update.
4543 * dwarf2/macro.c (dwarf_decode_macro_bytes): Update.
4544
1859c670
SM
45452020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
4546
4547 * dwarf2/read.h (struct dwarf2_per_cu_data) <per_bfd>: New
4548 member.
4549 * dwarf2/read.c (dwarf2_per_bfd::allocate_per_cu): Initialize
4550 dwarf2_per_cu_data::per_bfd.
4551 (dwarf2_per_bfd::allocate_signatured_type): Likewise.
4552 (create_type_unit_group): Likewise.
4553 (queue_comp_unit): Remove reference to
4554 per_cu->dwarf2_per_objfile.
4555 (maybe_queue_comp_unit): Likewise.
4556 (fill_in_sig_entry_from_dwo_entry): Assign new field.
4557 (create_cus_hash_table): Assign new field.
4558
5e22e966
SM
45592020-05-27 Simon Marchi <simon.marchi@efficios.com>
4560
4561 * dwarf2/read.c: Replace
4562 dwarf2_cu->per_cu->dwarf2_per_objfile references with
4563 dwarf2_cu->per_objfile throughout.
4564
97a1449a
SM
45652020-05-27 Simon Marchi <simon.marchi@efficios.com>
4566
4567 * dwarf2/read.c (dw2_do_instantiate_symtab): Add per_objfile
4568 parameter, don't use per_cu->dwarf2_per_objfile.
4569 (dw2_instantiate_symtab): Likewise.
4570 (dw2_find_last_source_symtab): Update.
4571 (dw2_map_expand_apply): Update.
4572 (dw2_lookup_symbol): Update.
4573 (dw2_expand_symtabs_for_function): Update.
4574 (dw2_expand_all_symtabs): Update.
4575 (dw2_expand_symtabs_with_fullname): Update.
4576 (dw2_expand_symtabs_matching_one): Add per_objfile parameter,
4577 don't use per_cu->dwarf2_per_objfile.
4578 (dw2_expand_marked_cus): Update.
4579 (dw2_find_pc_sect_compunit_symtab): Update.
4580 (dw2_debug_names_lookup_symbol): Update.
4581 (dw2_debug_names_expand_symtabs_for_function): Update.
4582 (dw2_debug_names_map_matching_symbols): Update.
4583 (dwarf2_psymtab::expand_psymtab): Update.
4584
9e021579
SM
45852020-05-27 Simon Marchi <simon.marchi@efficios.com>
4586
4587 * dwarf2/read.c (struct dwarf2_cu) <dwarf2_cu>: Add parameter.
4588 <per_objfile>: New member.
4589 (class cutu_reader) <init_tu_and_read_dwo_dies>: Add parameter.
4590 (cutu_reader::init_tu_and_read_dwo_dies): Add parameter, update
4591 call to dwarf2_cu.
4592 (cutu_reader::cutu_reader): Update.
4593 (dwarf2_cu::dwarf2_cu): Add parameter, initialize per_objfile.
4594
ae090bdb
SM
45952020-05-27 Simon Marchi <simon.marchi@efficios.com>
4596
4597 * dwarf2/read.h (struct dwarf2_per_bfd) <die_type_hash>: Move to
4598 struct dwarf2_per_objfile.
4599 (struct dwarf2_per_objfile) <die_type_hash>: Move from struct
4600 dwarf2_per_bfd.
4601 * dwarf2/read.c (set_die_type): Update.
4602 (get_die_type_at_offset): Update.
4603
af758d11
SM
46042020-05-27 Tom Tromey <tom@tromey.com>
4605 Simon Marchi <simon.marchi@efficios.com>
4606
4607 * dwarf2/read.h (struct dwarf2_per_bfd) <num_psymtabs>: New
4608 method.
4609 (struct dwarf2_per_objfile) <resize_symtabs, symtab_set_p,
4610 get_symtab, set_symtab>: New methods.
4611 <m_symtabs>: New field.
4612 (struct dwarf2_psymtab): Derive from partial_symtab.
4613 <readin_p, get_compunit_symtab>: Declare methods.
4614 * dwarf2/read.c (dwarf2_per_objfile::symtab_set_p,
4615 dwarf2_per_objfile::get_symtab, dwarf2_per_objfile::set_symtab):
4616 New methods.
4617 (struct dwarf2_per_cu_quick_data) <compunit_symtab>: Remove.
4618 (dw2_do_instantiate_symtab, dw2_instantiate_symtab)
4619 (dw2_map_expand_apply, dw2_map_symtabs_matching_filename)
4620 (dw2_symtab_iter_next, dw2_print_stats)
4621 (dw2_expand_symtabs_with_fullname)
4622 (dw2_expand_symtabs_matching_one)
4623 (dw_expand_symtabs_matching_file_matcher)
4624 (dw2_find_pc_sect_compunit_symtab, dw2_map_symbol_filenames)
4625 (dw2_debug_names_iterator::next)
4626 (dw2_debug_names_map_matching_symbols)
4627 (fill_in_sig_entry_from_dwo_entry, dwarf2_psymtab::read_symtab)
4628 (process_queue, dwarf2_psymtab::expand_psymtab): Update.
4629 (dwarf2_psymtab::readin_p, dwarf2_psymtab::get_compunit_symtab):
4630 New methods.
4631 (get_compunit_symtab, process_full_comp_unit)
4632 (process_full_type_unit): Update.
4633 (dwarf2_build_psymtabs, dwarf2_initialize_objfile, add_type_unit): Call
4634
5989a64e
SM
46352020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
4636
4637 * dwarf2/read.h (dwarf2_per_objfile): Rename to dwarf2_per_bfd,
4638 then introduce a new dwarf2_per_objfile type.
4639 <read_line_string>: Move to the new dwarf2_per_objfile type.
4640 <objfile>: Likewise.
4641 (dwarf2_per_bfd): Rename dwarf2_per_objfile to this.
4642 * dwarf2/read.c: Replace references to dwarf2_per_objfile with
4643 dwarf2_per_objfile->per_bfd.
4644 (dwarf2_per_objfile::dwarf2_per_objfile): Rename to...
4645 (dwarf2_per_bfd::dwarf2_per_bfd): ... this.
4646 (dwarf2_per_objfile::free_cached_comp_units): Rename to...
4647 (dwarf2_per_bfd::free_cached_comp_units): ... this.
4648 (dwarf2_has_info): Allocate dwarf2_per_bfd.
4649 (dwarf2_per_objfile::locate_sections): Rename to...
4650 (dwarf2_per_bfd::locate_sections): ... this.
4651 (dwarf2_per_objfile::get_cutu): Rename to...
4652 (dwarf2_per_bfd::get_cutu): ... this.
4653 (dwarf2_per_objfile::get_cu): Rename to...
4654 (dwarf2_per_bfd::get_cu): ... this.
4655 (dwarf2_per_objfile::get_tu): Rename to...
4656 (dwarf2_per_bfd::get_tu): ... this.
4657 (dwarf2_per_objfile::allocate_per_cu): Rename to...
4658 (dwarf2_per_bfd::allocate_per_cu): ... this.
4659 (dwarf2_per_objfile::allocate_signatured_type): Rename to...
4660 (dwarf2_per_bfd::allocate_signatured_type): ... this.
4661 (get_gdb_index_contents_ftype): Change parameter from
4662 dwarf2_per_objfile to dwarf2_per_bfd.
4663 * dwarf2/macro.c, dwarf2/index-write.c: Replace references to
4664 dwarf2_per_objfile with dwarf2_per_objfile->per_bfd.
4665
a50264ba
TT
46662020-05-27 Tom Tromey <tom@tromey.com>
4667 Simon Marchi <simon.marchi@efficios.com>
4668
4669 * dwarf2/loc.c (struct piece_closure) <per_objfile>: New member.
4670 (allocate_piece_closure): Set "per_objfile" member.
4671 (dwarf2_find_location_expression, dwarf2_locexpr_baton_eval)
4672 (locexpr_describe_location, loclist_describe_location): Use new
4673 member.
4674 * dwarf2/read.c (read_call_site_scope)
4675 (mark_common_block_symbol_computed, attr_to_dynamic_prop)
4676 (dwarf2_const_value_attr, dwarf2_fetch_die_loc_sect_off)
4677 (fill_in_loclist_baton, dwarf2_symbol_mark_computed,
4678 handle_data_member_location): Set per_objfile member.
4679 * dwarf2/loc.h (struct dwarf2_locexpr_baton) <per_objfile>: New
4680 member.
4681 (struct dwarf2_loclist_baton) <per_objfile>: New member.
4682
d3473f0c
TT
46832020-05-27 Tom Tromey <tom@tromey.com>
4684
4685 * dwarf2/read.h (struct dwarf2_per_objfile) <allocate_per_cu,
4686 allocate_signatured_type>: Declare new methods.
4687 <m_num_psymtabs>: New member.
4688 (struct dwarf2_per_cu_data) <index>: New member.
4689 * dwarf2/read.c (dwarf2_per_objfile::allocate_per_cu)
4690 (dwarf2_per_objfile::allocate_signatured_type): New methods.
4691 (create_cu_from_index_list): Use allocate_per_cu.
4692 (create_signatured_type_table_from_index)
4693 (create_signatured_type_table_from_debug_names)
4694 (create_debug_type_hash_table, add_type_unit)
4695 (read_comp_units_from_section): Use allocate_signatured_type.
4696
5717c425
TT
46972020-05-27 Tom Tromey <tom@tromey.com>
4698
4699 * psymtab.c (partial_map_expand_apply)
4700 (psym_find_pc_sect_compunit_symtab, psym_lookup_symbol)
4701 (psym_lookup_global_symbol_language)
4702 (psymtab_to_symtab, psym_find_last_source_symtab, dump_psymtab)
4703 (psym_print_stats, psym_expand_symtabs_for_function)
4704 (psym_map_symbol_filenames, psym_map_matching_symbols)
4705 (psym_expand_symtabs_matching)
4706 (partial_symtab::read_dependencies, maintenance_info_psymtabs)
4707 (maintenance_check_psymtabs): Update.
4708 * psympriv.h (struct partial_symtab) <readin_p,
4709 get_compunit_symtab>: Add objfile parameter.
4710 (struct standard_psymtab) <readin_p, get_compunit_symtab>:
4711 Likewise.
4712 * dwarf2/read.c (struct dwarf2_include_psymtab) <readin_p,
4713 get_compunit_symtab>: Likewise.
4714 (dwarf2_psymtab::expand_psymtab): Pass objfile argument.
4715
45940949
TT
47162020-05-27 Tom Tromey <tom@tromey.com>
4717
4718 * dwarf2/read.h (struct dwarf2_per_objfile) <obstack>: New
4719 member.
4720 * dwarf2/read.c (delete_file_name_entry): Fix comment.
4721 (create_cu_from_index_list)
4722 (create_signatured_type_table_from_index)
4723 (create_signatured_type_table_from_debug_names)
4724 (dw2_get_file_names_reader, dwarf2_initialize_objfile)
4725 (dwarf2_create_include_psymtab)
4726 (create_debug_type_hash_table, add_type_unit)
4727 (create_type_unit_group, read_comp_units_from_section)
4728 (dwarf2_compute_name, create_cus_hash_table)
4729 (create_dwp_hash_table, create_dwo_unit_in_dwp_v1)
4730 (create_dwo_unit_in_dwp_v2, open_and_init_dwp_file): Use new
4731 obstack.
4732 (dw2_get_real_path): Likewise. Change argument to
4733 dwarf2_per_objfile.
4734
f8c6d152
LM
47352020-05-27 Luis Machado <luis.machado@linaro.org>
4736
4737 PR tdep/26000
4738 * arm-tdep.c (thumb_analyze_prologue): Fix instruction matching
4739 for ldrd (immediate).
4740
e98d2e6d
PW
47412020-05-26 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4742
4743 * command.h: Add comment giving the name of class_tui.
4744 * cli/cli-cmds.c (_initialize_cli_cmds): If TUI defined,
4745 create the fake command for the help for class_tui.
4746
53a47a3e
TT
47472020-05-26 Tom Tromey <tromey@adacore.com>
4748
4749 * ada-lang.c (ada_print_array_index): Change type. Call val_atr.
4750 (ada_value_ptr_subscript): Don't call pos_atr on the lower bound.
4751 (val_atr): New function.
4752 (value_val_atr): Use it.
4753 * ada-valprint.c (print_optional_low_bound): Change low bound
4754 handling for enums.
4755 (val_print_packed_array_elements): Don't call discrete_position.
4756 * gdbtypes.c (get_discrete_bounds) <TYPE_CODE_RANGE>: Call
4757 discrete_position for enum types.
4758 * language.c (default_print_array_index): Change type.
4759 * language.h (struct language_defn) <la_print_array_index>: Add
4760 index_type parameter, change type of index_value.
4761 (LA_PRINT_ARRAY_INDEX): Add index_type parameter.
4762 (default_print_array_index): Update.
4763 * valprint.c (maybe_print_array_index): Don't call
4764 value_from_longest. Update.
4765 (value_print_array_elements): Don't call discrete_position.
4766
0bc2354b
TT
47672020-05-26 Tom Tromey <tromey@adacore.com>
4768
4769 * ada-lang.c (value_val_atr): Handle TYPE_CODE_RANGE.
4770 * gdbtypes.c (discrete_position): Handle TYPE_CODE_RANGE.
4771
1218a4bf
CDA
47722020-05-25 Cristiano De Alti <cristiano_dealti@hotmail.com>
4773
4774 PR gdb/13519
4775 * avr-tdep.c (avr_integer_to_address): Return data or code
4776 address accordingly to the second 'type' argument of the
4777 function.
4778
92651b1d
MW
47792020-05-25 Michael Weghorn <m.weghorn@posteo.de>
4780
4781 * infcmd.c, inferior.h: (construct_inferior_arguments):
4782 Moved function from here to gdbsupport/common-inferior.{h,cc}
4783
0a4f5f8c
TT
47842020-05-23 Tom Tromey <tom@tromey.com>
4785
4786 Revert commit eca1f90c:
4787 * NEWS: Remove entry for completion styling.
4788 * completer.c (_rl_completion_prefix_display_length): Move
4789 declaration later.
4790 (gdb_fnprint): Revert.
4791 (gdb_display_match_list_1): Likewise.
4792 * cli/cli-style.c (completion_prefix_style)
4793 (completion_difference_style, completion_suffix_style): Remove.
4794 (_initialize_cli_style): Revert.
4795 * cli/cli-style.h (completion_prefix_style)
4796 (completion_difference_style, completion_suffix_style): Don't
4797 declare.
4798
e08bd6c5
PA
47992020-05-24 Pedro Alves <palves@redhat.com>
4800
4801 * symtab.c (completion_list_add_name): Return boolean indication
4802 of whether the symbol matched.
4803 (completion_list_add_symbol): Don't try to remove C++ aliases if
4804 the symbol didn't match in the first place.
4805 * symtab.h (completion_list_add_name): Return bool.
4806
ceacbf6e
SM
48072020-05-23 Simon Marchi <simon.marchi@polymtl.ca>
4808
4809 * gdbtypes.h (TYPE_FIELD): Remove. Replace all uses with
4810 type::field.
4811
26f16254
JB
48122020-05-23 Joel Brobecker <brobecker@adacore.com>
4813
4814 GDB 9.2 released.
4815
eca1f90c
TT
48162020-05-23 Tom Tromey <tom@tromey.com>
4817
4818 * NEWS: Add entry for completion styling.
4819 * completer.c (_rl_completion_prefix_display_length): Move
4820 declaration earlier.
4821 (gdb_fnprint): Use completion_style.
4822 (gdb_display_match_list_1): Likewise.
4823 * cli/cli-style.c (completion_prefix_style)
4824 (completion_difference_style, completion_suffix_style): New
4825 globals.
4826 (_initialize_cli_style): Register new globals.
4827 * cli/cli-style.h (completion_prefix_style)
4828 (completion_difference_style, completion_suffix_style): Declare.
4829
51e2cfa2
PA
48302020-05-23 Pedro Alves <palves@redhat.com>
4831
4832 * utils.c: Include "gdbsupport/gdb-safe-ctype.h".
4833 (parse_escape): Use ISDIGIT instead of isdigit.
4834 (puts_debug): Use gdb_isprint instead of isprint.
4835 (fprintf_symbol_filtered): Use ISALNUM instead of isalnum.
4836 (cp_skip_operator_token, skip_ws, strncmp_iw_with_mode): Use
4837 ISSPACE instead of isspace.
4838 (strncmp_iw_with_mode): Use TOLOWER instead of tolower and ISSPACE
4839 instead of isspace.
4840 (strcmp_iw_ordered): Use ISSPACE instead of isspace.
4841 (string_to_core_addr): Use TOLOWER instead of tolower, ISXDIGIT
4842 instead of isxdigit and ISDIGIT instead of isdigit.
4843
80fc5e77
SM
48442020-05-22 Simon Marchi <simon.marchi@efficios.com>
4845
4846 * gdbtypes.h (struct type) <field>: New method.
4847 (TYPE_FIELDS): Remove, replace all uses with either type::fields
4848 or type::field.
4849
3cabb6b0
SM
48502020-05-22 Simon Marchi <simon.marchi@efficios.com>
4851
4852 * gdbtypes.h (struct type) <fields, set_fields>: New methods.
4853 (TYPE_FIELDS): Use type::fields. Change all call sites that
4854 modify the propery to use type::set_fields instead.
4855
1f704f76
SM
48562020-05-22 Simon Marchi <simon.marchi@efficios.com>
4857
4858 * gdbtypes.h (TYPE_NFIELDS): Remove. Change all cal sites to use
4859 type::num_fields instead.
4860
5e33d5f4
SM
48612020-05-22 Simon Marchi <simon.marchi@efficios.com>
4862
4863 * gdbtypes.h (struct type) <num_fields, set_num_fields>: New
4864 methods.
4865 (TYPE_NFIELDS): Use type::num_fields. Change all call sites
4866 that modify the number of fields to use type::set_num_fields
4867 instead.
4868
9392ebb3
TT
48692020-05-22 Tom Tromey <tromey@adacore.com>
4870
4871 * compile/compile-object-load.h (munmap_list_free): Don't
4872 declare.
4873
7c13f4e8
AB
48742020-05-22 Andrew Burgess <andrew.burgess@embecosm.com>
4875
4876 * annotate.c (annotate_source_line): Update return type, add call
4877 to update current symtab and line.
4878 * annotate.h (annotate_source_line): Update return type, and
4879 extend header comment.
4880 * source.c (info_line_command): Check annotation_level before
4881 calling annotate_source_line.
4882 * stack.c (print_frame_info): If calling annotate_source_line
4883 returns true, then don't print any other source line information.
4884
aa370940
SM
48852020-05-21 Simon Marchi <simon.marchi@efficios.com>
4886
4887 * lm32-tdep.c (lm32_register_reggroup_p): Fix condition.
4888
84d53fa9
SM
48892020-05-21 Simon Marchi <simon.marchi@efficios.com>
4890
4891 * coffread.c (patch_type): Remove NULL check before xfree.
4892 * corefile.c (set_gnutarget): Likewise.
4893 * cp-abi.c (set_cp_abi_as_auto_default): Likewise.
4894 * exec.c (build_section_table): Likewise.
4895 * remote.c (remote_target::pass_signals): Likewise.
4896 * utils.c (n_spaces): Likewise.
4897 * cli/cli-script.c (document_command): Likewise.
4898 * i386-windows-tdep.c (core_process_module_section): Likewise.
4899 * linux-fork.c (struct fork_info) <~fork_info>: Likewise.
4900
9d428aae
SM
49012020-05-20 Simon Marchi <simon.marchi@efficios.com>
4902
4903 * symfile.c (reread_symbols): Clear objfile's section_offsets
4904 vector and section indices, re-compute them by calling
4905 sym_offsets.
4906
250106a7
TT
49072020-05-20 Tom Tromey <tromey@adacore.com>
4908
4909 * ada-lang.c (bound_name, MAX_ADA_DIMENS): Remove.
ec16513e 4910 (desc_one_bound, desc_index_type): Compute field name.
250106a7 4911
9a0bacfb
TV
49122020-05-20 Tom de Vries <tdevries@suse.de>
4913
4914 PR symtab/25833
4915 * dwarf2/read.c (dw2_map_matching_symbols): Handle .gdb_index.
4916
7b958a48
AM
49172020-05-20 Alan Modra <amodra@gmail.com>
4918
4919 PR 25993
4920 * solib-darwin.c (darwin_bfd_open): Don't strdup pathname for
4921 bfd_set_filename.
4922 * solib-aix.c (solib_aix_bfd_open): Use std::string for name
4923 passed to bfd_set_filename.
4924 * symfile-mem.c (add_vsyscall_page): Likewise for string
4925 passed to symbol_file_add_from_memory.
4926 (symbol_file_add_from_memory): Make name param a const char* and
4927 don't strdup.
4928
c7e97679
AM
49292020-05-20 Alan Modra <amodra@gmail.com>
4930
4931 * coff-pe-read.c (read_pe_exported_syms): Use bfd_get_filename
4932 rather than accessing bfd->filename directly.
4933 * dtrace-probe.c (dtrace_static_probe_ops::get_probes): Likewise,
4934 and use bfd_section_name.
4935 * dwarf2/frame.c (decode_frame_entry): Likewise.
4936 * exec.c (exec_set_section_address): Likewise.
4937 * solib-aix.c (solib_aix_bfd_open): Likewise.
4938 * stap-probe.c (get_stap_base_address): Likewise.
4939 * symfile.c (reread_symbols): Likewise.
4940
563c591b
TT
49412020-05-19 Tom Tromey <tromey@adacore.com>
4942
4943 * sparc64-tdep.c (adi_tag_fd): Update call to target_fileio_open.
4944
f408d82c
SM
49452020-05-19 Simon Marchi <simon.marchi@efficios.com>
4946
4947 * dwarf2/read.c (quirk_rust_enum): Allocate enough fields.
4948
98c59b52
PA
49492020-05-19 Pedro Alves <palves@redhat.com>
4950
4951 * NEWS (set exec-file-mismatch): Adjust entry.
4952 * exec.c: Include "build-id.h".
4953 (validate_exec_file): Try to match build IDs instead of filenames.
4954 * gdb_bfd.c (struct gdb_bfd_open_closure): New.
4955 (gdb_bfd_iovec_fileio_open): Adjust to use gdb_bfd_open_closure
4956 and pass down 'warn_if_slow'.
4957 (gdb_bfd_open): Add 'warn_if_slow' parameter. Use
4958 gdb_bfd_open_closure to pass it down.
4959 * gdb_bfd.h (gdb_bfd_open): Add 'warn_if_slow' parameter.
4960
4111f652
PA
49612020-05-19 Pedro Alves <palves@redhat.com>
4962
4963 * gdb_bfd.c (gdb_bfd_iovec_fileio_open): Adjust.
4964 * target.c (target_fileio_open_1): Rename to target_fileio_open
4965 and make extern. Use bool.
4966 (target_fileio_open, target_fileio_open_warn_if_slow): Delete.
4967 (target_fileio_read_alloc_1): Adjust.
4968 * target.h (target_fileio_open): Add 'warn_if_slow' parameter.
4969 (target_fileio_open_warn_if_slow): Delete declaration.
4970
ad80db5b
PA
49712020-05-19 Pedro Alves <palves@redhat.com>
4972
4973 * gdb_bfd.h: (gdb_bfd_open): Default to 'fd' parameter to -1.
4974 Adjust all callers.
4975
1d6ce4d3
YS
49762020-05-19 Yoshinori Sato <ysato@users.sourceforge.jp>
4977
4978 * h8300-tdep.c (h8300_is_argument_spill): Change how we check
4979 whether disp is negative.
4980
9005fbbb
SM
49812020-05-19 Simon Marchi <simon.marchi@efficios.com>
4982
4983 * symfile.h (struct symfile_segment_data)
4984 <~symfile_segment_data>: Remove.
4985 <segment_info>: Change to std::vector.
4986 * symfile.c (default_symfile_segments): Update.
4987 * elfread.c (elf_symfile_segments): Update.
4988
68b888ff
SM
49892020-05-19 Simon Marchi <simon.marchi@efficios.com>
4990
4991 * symfile.h (struct symfile_segment_data) <struct segment>: New.
4992 <segments>: New.
4993 <segment_bases, segment_sizes>: Remove.
4994 * symfile.c (default_symfile_segments): Update.
4995 * elfread.c (elf_symfile_segments): Update.
4996 * remote.c (remote_target::get_offsets): Update.
4997 * solib-target.c (solib_target_relocate_section_addresses):
4998 Update.
4999
62982abd
SM
50002020-05-19 Simon Marchi <simon.marchi@efficios.com>
5001
5002 * symfile.h (struct symfile_segment_data): Initialize fields.
5003 <~symfile_segment_data>: Add.
5004 (symfile_segment_data_up): New.
5005 (struct sym_fns) <sym_segments>: Return a
5006 symfile_segment_data_up.
5007 (default_symfile_segments): Return a symfile_segment_data_up.
5008 (free_symfile_segment_data): Remove.
5009 (get_symfile_segment_data): Return a symfile_segment_data_up.
5010 * symfile.c (default_symfile_segments): Likewise.
5011 (get_symfile_segment_data): Likewise.
5012 (free_symfile_segment_data): Remove.
5013 (symfile_find_segment_sections): Update.
5014 * elfread.c (elf_symfile_segments): Return a
5015 symfile_segment_data_up.
5016 * remote.c (remote_target::get_offsets): Update.
5017 * solib-target.c (solib_target_relocate_section_addresses):
5018 Update.
5019 * symfile-debug.c (debug_sym_segments): Return a
5020 symfile_segment_data_up.
5021
7f204339
RO
50222020-05-18 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5023
e52a0f1b
RO
5024 PR build/25981
5025 * i386-sol2-nat.c [PR_MODEL_NATIVE != PR_MODEL_LP64] (regmap):
5026 Hardcode register numbers.
5027
7f204339
RO
5028 PR build/25981
5029 * procfs.c [(__i386__ || __x86_64__) && sun] (proc_get_LDT_entry,
5030 procfs_find_LDT_entry): Remove.
5031 * procfs.h [(__i386__ || __x86_64__) && sun] (struct ssd,
5032 procfs_find_LDT_entry): Remove.
5033 * sol-thread.c [(__i386__ || __x86_64__) && sun] (ps_lgetLDT):
5034 Remove.
5035
7f32a4d5
PA
50362020-05-17 Pedro Alves <palves@redhat.com>
5037 Andrew Burgess <andrew.burgess@embecosm.com>
5038 Keno Fischer <keno@juliacomputing.com>
5039
5040 PR gdb/25741
5041 * breakpoint.c (build_target_condition_list): Update comments.
5042 (build_target_command_list): Update comments and skip matching
5043 locations.
5044 (insert_bp_location): Move "set breakpoint auto-hw on" handling to
5045 a separate function. Simplify "set breakpoint auto-hw off"
5046 handling.
5047 (insert_breakpoints): Update comment.
5048 (tracepoint_locations_match): New parameter. For breakpoints,
5049 compare location types too, if the caller wants to.
5050 (handle_automatic_hardware_breakpoints): New functions.
5051 (bp_location_is_less_than): Also sort by location type and
5052 hardware breakpoint length.
5053 (update_global_location_list): Handle "set breakpoint auto-hw on"
5054 here.
5055 (update_breakpoint_locations): Ask breakpoint_locations_match to
5056 ignore location types.
5057
7d93a1e0
SM
50582020-05-16 Simon Marchi <simon.marchi@efficios.com>
5059
5060 * gdbtypes.h (TYPE_NAME): Remove. Change all cal sites to use
5061 type::name instead.
5062
d0e39ea2
SM
50632020-05-16 Simon Marchi <simon.marchi@efficios.com>
5064
5065 * gdbtypes.h (struct type) <name, set_name>: New methods.
5066 (TYPE_CODE): Use type::name. Change all call sites used to set
5067 the name to use type::set_name instead.
5068
2dab0c7b
TT
50692020-05-16 Tom Tromey <tom@tromey.com>
5070
5071 * top.c (quit_force): Update.
5072 * infrun.c (handle_no_resumed): Update.
5073 * top.h (all_uis): New function.
5074 (ALL_UIS): Remove.
5075
59f7bd8d
SM
50762020-05-16 Simon Marchi <simon.marchi@efficios.com>
5077
5078 * mips-linux-tdep.c (mips_linux_in_dynsym_stub): Fix condition.
5079
9bf058f0
PA
50802020-05-16 Pedro Alves <palves@redhat.com>
5081
5082 * ia64-linux-nat.c
5083 (ia64_linux_nat_target) <enable_watchpoints_in_psr(ptid_t)>:
5084 Declare method.
5085 (enable_watchpoints_in_psr): Now a method of ia64_linux_nat_target.
5086
8f86ae1a
SM
50872020-05-15 Simon Marchi <simon.marchi@efficios.com>
5088
5089 * sparc64-tdep.c (adi_stat_t): Remove typedef (leaving struct).
5090 (sparc64_adi_info): Likewise.
5091
d6bc0792
TT
50922020-05-15 Tom Tromey <tom@tromey.com>
5093
5094 * symtab.c (lookup_language_this, lookup_symbol_aux): Use
5095 block_objfile.
5096 (lookup_objfile_from_block): Remove.
5097 (lookup_symbol_in_block, lookup_symbol_in_static_block)
5098 (lookup_global_symbol): Use block_objfile.
5099 * symtab.h (lookup_objfile_from_block): Don't declare.
5100 * printcmd.c (clear_dangling_display_expressions): Use
5101 block_objfile.
5102 * parse.c (operator_check_standard): Use block_objfile.
5103
8c14c3a3
TT
51042020-05-15 Tom Tromey <tom@tromey.com>
5105
5106 * language.c (language_alloc_type_symbol): Set
5107 SYMBOL_SECTION.
5108 * symtab.c (initialize_objfile_symbol): Remove.
5109 (allocate_symbol): Remove.
5110 (allocate_template_symbol): Remove.
5111 * dwarf2/read.c (fixup_go_packaging): Use "new".
5112 (new_symbol): Use "new".
5113 (read_variable): Don't call initialize_objfile_symbol. Use
5114 "new".
5115 (read_func_scope): Use "new".
5116 * xcoffread.c (process_xcoff_symbol): Don't call
5117 initialize_objfile_symbol.
5118 (SYMBOL_DUP): Remove.
5119 * coffread.c (process_coff_symbol, coff_read_enum_type): Use
5120 "new".
5121 * symtab.h (allocate_symbol, initialize_objfile_symbol)
5122 (allocate_template_symbol): Don't declare.
5123 (struct symbol): Add copy constructor. Change defaults.
5124 * jit.c (finalize_symtab): Use "new".
5125 * ctfread.c (ctf_add_enum_member_cb, new_symbol, ctf_add_var_cb):
5126 Use "new".
5127 * stabsread.c (patch_block_stabs, define_symbol, read_enum_type)
5128 (common_block_end): Use "new".
5129 * mdebugread.c (parse_symbol): Use "new".
5130 (new_symbol): Likewise.
5131
5b4a1a8d
PW
51322020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5133
5134 * NEWS: Mention changes to help and apropos.
5135
57b4f16e
PW
51362020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5137
5138 * command.h (enum command_class): Improve comments, document
5139 that class_alias is for user-defined aliases, give the class
5140 name for each class, remove unused class_xdb.
5141 * cli/cli-decode.c (add_com_alias): Document THECLASS intended usage.
5142 * breakpoint.c (_initialize_breakpoint): Replace class_alias
5143 by a precise class.
5144 * infcmd.c (_initialize_infcmd): Likewise.
5145 * reverse.c (_initialize_reverse): Likewise.
5146 * stack.c (_initialize_stack): Likewise.
5147 * symfile.c (_initialize_symfile): Likewise.
5148 * tracepoint.c (_initialize_tracepoint): Likewise.
5149
7c05caf7
PW
51502020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5151
5152 * cli/cli-decode.c (apropos_cmd): Produce output for aliases
5153 when their aliased command is traversed.
5154 (help_cmd): Add fput_command_names_styled call to
5155 output command name and aliases when command has an alias.
5156
3b3aaacb
PW
51572020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5158
5159 * cli/cli-decode.h (help_cmd_list): Remove declaration.
5160 * cli/cli-decode.c (help_cmd_list): Declare as static,
5161 remove prefix argument, use bool for recurse arg, rework to show the aliases of
5162 a command together with the command.
5163 (fput_command_name_styled, fput_command_names_styled): New functions.
5164 (print_help_for_command): Remove prefix arg, use bool for recurse arg, use
5165 fput_command_name_styled.
5166 (help_list, help_all): Update callers to remove prefix arg and use bool recurse.
5167 * cli/cli-cmds.c (_initialize_cli_cmds): Update alias_command doc.
5168
7aa1b46f
PW
51692020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5170
5171 * cli/cli-setshow.h (cmd_show_list): Remove prefix argument.
5172 * cli/cli-decode.c (do_show_prefix_cmd): Likewise.
5173 * command.h (cmd_show_list): Likewise.
5174 * dwarf2/index-cache.c (show_index_cache_command): Likewise.
5175 * cli/cli-setshow.c (cmd_show_list): Use the prefix to produce the output. Skip aliases.
5176
89bcba74
PW
51772020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5178
5179 * unittests/command-def-selftests.c (traverse_command_structure):
5180 Verify all commands of a list have the same prefix command and
5181 that only the top cmdlist commands have a null prefix.
5182
3f4d92eb
PW
51832020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5184
5185 * cli/cli-decode.c (lookup_cmd_for_prefix): Return the aliased command
5186 as prefix, not one of its aliases.
5187 (set_cmd_prefix): Remove.
5188 (do_add_cmd): Centralize the setting of the prefix of a command, when
5189 command is defined after its full chain of prefix commands.
5190 (add_alias_cmd): Remove call to set_cmd_prefix, as do_add_cmd does it.
5191 (add_setshow_cmd_full): Likewise.
5192 (update_prefix_field_of_prefixed_commands): New function.
5193 (add_prefix_cmd): Replace non working call to set_cmd_prefix by
5194 update_prefix_field_of_prefixed_commands.
5195 * gdb/remote-fileio.c (initialize_remote_fileio): Use the real
5196 addresses of remote_set_cmdlist and remote_show_cmdlist given
5197 as argument, not the address of an argument.
5198 * gdb/remote-fileio.h (initialize_remote_fileio): Likewise.
5199 * gdb/remote.c (_initialize_remote): Likewise.
5200
0605465f
PW
52012020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5202
5203 * cli/cli-cmds.c (alias_command): Check for an existing alias
5204 using lookup_cmd_composition, as valid_command_p is too strict
5205 and forbids aliases that are the prefix of an existing alias
5206 or command.
5207 * cli/cli-decode.c (lookup_cmd_composition): Ensure a prefix
5208 command is properly recognised as a valid command.
5209
58e6ac70
PW
52102020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5211
5212 * unittests/help-doc-selftests.c: Rename to
5213 unittests/command-def-selftests.c
5214 * unittests/command-def-selftests.c (help_doc_tests): Update some
5215 comments.
5216 (command_structure_tests, traverse_command_structure): New namespace
5217 and function.
5218 (command_structure_invariants_tests): New function.
5219 (_initialize_command_def_selftests) Renamed from
5220 _initialize_help_doc_selftests, register command_structure_invariants
5221 selftest.
5222
a7b9ceb8
PW
52232020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5224
5225 * cli/cli-cmds.c (_initialize_cli_cmds): Define 'info set' as
5226 an alias of 'show'.
5227
b2188a06
JB
52282020-05-15 Joel Brobecker <brobecker@adacore.com>
5229
5230 * ada-lang.h: (ada_is_gnat_encoded_fixed_point_type): Renames
5231 ada_is_fixed_point_type. Update all callers.
5232 (gnat_encoded_fixed_point_delta): Renames ada_delta. Update
5233 all callers.
5234 * ada-lang.c (gnat_encoded_fixed_type_info): Renames fixed_type_info.
5235 Update all callers.
5236 * ada-typeprint.c (print_gnat_encoded_fixed_point_type): Renames
5237 print_fixed_point_type. Update all callers.
5238 * ada-valprint.c (ada_value_print_num): Replace call to
5239 ada_is_fixed_point_type by ada_is_gnat_encoded_fixed_point_type.
5240
a51951c2
KB
52412020-05-14 Kevin Buettner <kevinb@redhat.com>
5242
5243 * nat/linux-btrace.c (btrace_this_cpu): Add check for AMD
5244 processors.
5245 (cpu_supports_bts): Add CV_AMD case.
5246
29d6859f
LM
52472020-05-14 Laurent Morichetti <Laurent.Morichetti@amd.com>
5248 Simon Marchi <simon.marchi@efficios.com>
5249
5250 * infrun.c (stop_all_threads): Collect multiple wait events at
5251 each pass.
5252
78134374
SM
52532020-05-14 Simon Marchi <simon.marchi@efficios.com>
5254
5255 * gdbtypes.h (TYPE_CODE): Remove. Change all call sites to use
5256 type::code instead.
5257
67607e24
SM
52582020-05-14 Simon Marchi <simon.marchi@efficios.com>
5259
5260 * gdbtypes.h (struct type) <code, set_code>: New methods.
5261 (TYPE_CODE): Use type::code. Change all call sites used to set
5262 the code to use type::set_code instead.
5263
a05575d3
TBA
52642020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
5265 Tom de Vries <tdevries@suse.de>
5266 Pedro Alves <palves@redhat.com>
5267
5268 PR threads/25478
5269 * infrun.c (stop_all_threads): Do NOT ignore
5270 TARGET_WAITKIND_NO_RESUMED, TARGET_WAITKIND_THREAD_EXITED,
5271 TARGET_WAITKIND_EXITED, TARGET_WAITKIND_SIGNALLED wait statuses
5272 received.
5273 (handle_no_resumed): Remove code handling a live inferior with no
5274 threads.
5275 * remote.c (has_single_non_exited_thread): New.
5276 (remote_target::update_thread_list): Do not delete a thread if is
5277 the last thread of the process.
5278 * thread.c (thread_select): Call delete_exited_threads instead of
5279 prune_threads.
5280
6ad82919
TBA
52812020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
5282
5283 * infrun.c (stop_all_threads): Enable/disable thread events of all
5284 targets. Move a debug message denoting the end of the function
5285 into the SCOPED_EXIT block.
5286
d890404b
TBA
52872020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
5288
5289 * process-stratum-target.h: Include <set>.
5290 (all_non_exited_process_targets, switch_to_target_no_thread): New
5291 function declarations.
5292 * process-stratum-target.c (all_non_exited_process_targets)
5293 (switch_to_target_no_thread): New function implementations.
5294
293b3ebc
TBA
52952020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
5296
5297 * infrun.c (handle_inferior_event): Extract out a piece of code
5298 into...
5299 (mark_non_executing_threads): ...this new function.
5300
7ca9b62a
TBA
53012020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
5302
5303 * infrun.c (resume_1): Move a 'regcache_read_pc' call down to first
5304 use.
5305
fc75c28b
TBA
53062020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
5307
5308 * regcache.c (regcache_read_pc_protected): New function
5309 implementation that returns 0 if the PC cannot read via
5310 'regcache_read_pc'.
5311 * infrun.c (proceed): Call 'regcache_read_pc_protected'
5312 instead of 'regcache_read_pc'.
5313 (keep_going_pass_signal): Ditto.
5314
a89febbd
TT
53152020-05-13 Tom Tromey <tromey@adacore.com>
5316
5317 * ada-lang.c (align_value): Remove.
5318 (ada_template_to_fixed_record_type_1): Use align_up.
5319
f7e23710
TBA
53202020-05-13 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
5321
5322 * async-event.c: Update the copyright year.
5323 * async-event.h: Update the copyright year.
5324
02ff80c2
SM
53252020-05-12 Simon Marchi <simon.marchi@efficios.com>
5326
5327 * objfiles.h (is_addr_in_objfile,
5328 shared_objfile_contains_address_p): Return bool.
5329 * objfile.c (is_addr_in_objfile,
5330 shared_objfile_contains_address_p): Return bool.
5331
4fd6c7e8
TT
53322020-05-11 Tom Tromey <tromey@adacore.com>
5333
5334 * cli/cli-cmds.c (info_command): Restore.
5335 (_initialize_cli_cmds): Use add_prefix_command for "info".
5336 * gdb-gdb.gdb.in: Restore breakpoint on info_command.
5337
5eb68a39
TT
53382020-05-11 Tom Tromey <tromey@adacore.com>
5339
5340 * ada-lang.c (ada_value_primitive_field): Now public.
5341 * ada-lang.h (ada_value_primitive_field): Declare.
5342 * ada-valprint.c (print_field_values): Use
5343 ada_value_primitive_field for wrapper fields.
5344
7666722f
TV
53452020-05-11 Tom de Vries <tdevries@suse.de>
5346
5347 * dwarf2/index-write.c (debug_names::psymbol_tag): Handle
5348 MODULE_DOMAIN.
5349
3ee6bb11
TV
53502020-05-11 Tom de Vries <tdevries@suse.de>
5351
5352 PR symtab/25941
5353 * dwarf2/read.c (create_cus_from_debug_names_list): Initialize CUs
5354 with length 0, if not gdb-produced.
5355 (cutu_reader::cutu_reader): Set CU length to actual length if 0.
5356
43434996
TV
53572020-05-09 Tom de Vries <tdevries@suse.de>
5358
5359 PR gdb/25955
5360 * break-catch-throw.c (check_status_exception_catchpoint): Fix name
5361 calculation.
5362
2f78cffc
TT
53632020-05-09 Tom Tromey <tom@tromey.com>
5364
5365 * top.c (server_command): Now bool.
5366 * top.h (server_command): Now bool.
5367
4f7bc5ed
TT
53682020-05-08 Tom Tromey <tromey@adacore.com>
5369
5370 * dwarf2/read.c (read_lexical_block_scope): Don't process a DIE
5371 already being processed.
5372
8be4b118
TT
53732020-05-08 Tom Tromey <tom@tromey.com>
5374
5375 * printcmd.c (struct display) <next>: Remove.
5376 <display>: New constructor.
5377 <exp_string>: Now a std::string.
5378 <enabled_p>: Now a bool.
5379 (display_number): Move definition earlier.
5380 (displays): Rename from display_chain. Now a std::vector.
5381 (ALL_DISPLAYS, ALL_DISPLAYS_SAFE): Remove.
5382 (display_command): Update.
5383 (do_one_display, disable_display)
5384 (enable_disable_display_command, do_enable_disable_display):
5385 Update.
5386 (free_display): Remove.
5387 (clear_displays): Rewrite.
5388 (delete_display): Update.
5389 (map_display_numbers): Use function_view. Remove "data"
5390 parameter. Update.
5391 (do_delete_display): Remove.
5392 (undisplay_command): Update.
5393 (do_one_display, do_displays, disable_display)
5394 (info_display_command): Update.
5395 (do_enable_disable_display): Remove.
5396 (enable_disable_display_command)
5397 (clear_dangling_display_expressions): Update.
5398
94c93c35
TT
53992020-05-08 Tom Tromey <tom@tromey.com>
5400
5401 * symtab.c (set_symbol_cache_size)
5402 (maintenance_print_symbol_cache, maintenance_flush_symbol_cache)
5403 (maintenance_print_symbol_cache_statistics): Update.
5404 * symmisc.c (print_symbol_bcache_statistics)
5405 (print_objfile_statistics, maintenance_print_objfiles)
5406 (maintenance_info_symtabs, maintenance_check_symtabs)
5407 (maintenance_expand_symtabs, maintenance_info_line_tables):
5408 Update.
5409 * symfile-debug.c (set_debug_symfile): Update.
5410 * source.c (forget_cached_source_info): Update.
5411 * python/python.c (gdbpy_progspaces): Update.
5412 * psymtab.c (maintenance_info_psymtabs): Update.
5413 * probe.c (parse_probes): Update.
5414 * linespec.c (iterate_over_all_matching_symtabs)
5415 (collect_symtabs_from_filename, search_minsyms_for_name): Update.
5416 * guile/scm-progspace.c (gdbscm_progspaces): Update.
5417 * exec.c (exec_target::close): Update.
5418 * ada-tasks.c (ada_tasks_new_objfile_observer): Update.
5419 * breakpoint.c (print_one_breakpoint_location)
5420 (create_longjmp_master_breakpoint)
5421 (create_std_terminate_master_breakpoint): Update.
5422 * progspace.c (program_spaces): Now a std::vector.
5423 (maybe_new_address_space): Update.
5424 (add_program_space): Remove.
5425 (program_space::program_space): Update.
5426 (remove_program_space): Update.
5427 (number_of_program_spaces): Remove.
5428 (print_program_space, update_address_spaces): Update.
5429 * progspace.h (program_spaces): Change type.
5430 (ALL_PSPACES): Remove.
5431 (number_of_program_spaces): Don't declare.
5432 (struct program_space) <next>: Remove.
5433
a1fd1ac9
TT
54342020-05-08 Tom Tromey <tom@tromey.com>
5435
5436 * mi/mi-cmd-file.c (mi_cmd_file_list_shared_libraries): Update.
5437 * solib-svr4.c (svr4_fetch_objfile_link_map): Update.
5438 (enable_break): Update.
5439 * solib-frv.c (frv_fdpic_find_global_pointer): Update.
5440 (frv_fdpic_find_canonical_descriptor): Update.
5441 (frv_fetch_objfile_link_map): Update.
5442 * progspace.c (program_space::free_all_objfiles): Update.
5443 (program_space::solibs): New method.
5444 * progspace.h (struct program_space) <solibs>: New method.
5445 * solist.h (master_so_list): Don't declare.
5446 (ALL_SO_LIBS): Remove.
5447 * solib.h (so_list_head): Remove.
5448 (update_solib_list): Update comment.
5449 * solib.c (master_so_list): Remove.
5450 (solib_used, update_solib_list, solib_add)
5451 (info_sharedlibrary_command, clear_solib)
5452 (reload_shared_libraries_1, remove_user_added_objfile): Update.
5453
38eae084
TT
54542020-05-08 Tom Tromey <tom@tromey.com>
5455
5456 * extension.c (extension_languages): Now a std::array.
5457 (ALL_EXTENSION_LANGUAGES): Remove.
5458 (get_ext_lang_defn, get_ext_lang_of_file)
5459 (eval_ext_lang_from_control_command): Update.
5460 (finish_ext_lang_initialization)
5461 (auto_load_ext_lang_scripts_for_objfile)
5462 (ext_lang_type_printers::ext_lang_type_printers)
5463 (apply_ext_lang_type_printers)
5464 (ext_lang_type_printers::~ext_lang_type_printers)
5465 (apply_ext_lang_val_pretty_printer, apply_ext_lang_frame_filter)
5466 (preserve_ext_lang_values, get_breakpoint_cond_ext_lang)
5467 (breakpoint_ext_lang_cond_says_stop, check_quit_flag)
5468 (get_matching_xmethod_workers, ext_lang_colorize)
5469 (ext_lang_before_prompt): Update.
5470 (ALL_ENABLED_EXTENSION_LANGUAGES): Remove.
5471
596dc4ad
TT
54722020-05-08 Tom Tromey <tom@tromey.com>
5473
5474 * symtab.h (class demangle_result_storage) <set_malloc_ptr>: New
5475 overload.
5476 <swap_string, m_string>: Remove.
5477 * symtab.c (demangle_for_lookup, completion_list_add_symbol):
5478 Update.
5479 * stabsread.c (define_symbol, read_type): Update.
5480 * linespec.c (find_linespec_symbols): Update.
5481 * gnu-v3-abi.c (gnuv3_get_typeid): Update.
5482 * dwarf2/read.c (dwarf2_canonicalize_name): Update.
5483 * dbxread.c (read_dbx_symtab): Update.
5484 * cp-support.h (cp_canonicalize_string_full)
5485 (cp_canonicalize_string, cp_canonicalize_string_no_typedefs):
5486 Return unique_xmalloc_ptr.
5487 * cp-support.c (inspect_type): Update.
5488 (cp_canonicalize_string_full): Return unique_xmalloc_ptr.
5489 (cp_canonicalize_string_no_typedefs, cp_canonicalize_string):
5490 Likewise.
5491 * c-typeprint.c (print_name_maybe_canonical): Update.
5492 * break-catch-throw.c (check_status_exception_catchpoint):
5493 Update.
5494
bf4cb9be
TV
54952020-05-08 Tom de Vries <tdevries@suse.de>
5496
5497 * infrun.c (follow_fork): Copy current_line and current_symtab to
5498 child thread.
5499
a1b68f28
SM
55002020-05-07 Simon Marchi <simon.marchi@efficios.com>
5501
5502 * async-event.c (struct async_signal_handler, struct
5503 async_event_handler): Reformat, remove typedef.
5504
98d48915
SM
55052020-05-07 Simon Marchi <simon.marchi@efficios.com>
5506
5507 * gdbtypes.h (TYPE_DYN_PROP_LIST): Remove. Update all users
5508 access thistype->main_type->dyn_prop_list directly.
5509
7aa91313
SM
55102020-05-07 Simon Marchi <simon.marchi@efficios.com>
5511
5512 * gdbtypes.h (struct type) <remove_dyn_prop>: New method.
5513 (remove_dyn_prop): Remove. Update all users to use
5514 type::remove_dyn_prop.
5515 * gdbtypes.c (remove_dyn_prop): Rename to...
5516 (type::remove_dyn_prop): ... this.
5517
5c54719c
SM
55182020-05-07 Simon Marchi via Gdb-patches <gdb-patches@sourceware.org>
5519
5520 * gdbtypes.h (struct type) <add_dyn_prop>: New method.
5521 (add_dyn_prop): Remove. Update all users to use
5522 type::add_dyn_prop.
5523 * gdbtypes.c (add_dyn_prop): Rename to...
5524 (type::add_dyn_prop): ... this.
5525
24e99c6c
SM
55262020-05-07 Simon Marchi <simon.marchi@efficios.com>
5527
5528 * gdbtypes.h (struct type) <get_dyn_prop>: New method.
5529 (get_dyn_prop): Remove. Update all users to use
5530 type::dyn_prop.
5531 * gdbtypes.c (get_dyn_prop): Rename to...
5532 (type::dyn_prop): ... this.
5533
0d4bf016
SM
55342020-05-06 Simon Marchi <simon.marchi@efficios.com>
5535
5536 * gdbtypes.h (struct main_type) <flag_static>: Remove.
5537
ac4a4f1c
SM
55382020-05-06 Simon Marchi <simon.marchi@efficios.com>
5539
5540 * amd64-tdep.c (amd64_analyze_prologue): Check for `endbr64`
5541 instruction, skip it if it's there.
5542
a3bbacc1
SM
55432020-05-05 Simon Marchi <simon.marchi@efficios.com>
5544
5545 * gdbtypes.h (struct main_type) <flag_incomplete>: Remove.
5546
c3236f84
SM
55472020-05-04 Simon Marchi <simon.marchi@efficios.com>
5548
5549 * gdbtypes.h (TYPE_INCOMPLETE): Remove.
5550 * gdbtypes.c (recursive_dump_type): Remove use of
5551 TYPE_INCOMPLETE.
5552
3b6acaee
TT
55532020-05-03 Tom Tromey <tom@tromey.com>
5554
5555 * breakpoint.c (catch_command, tcatch_command): Remove.
5556 (_initialize_breakpoint): Use add_basic_prefix_cmd,
5557 add_show_prefix_cmd.
5558 (set_breakpoint_cmd, show_breakpoint_cmd): Remove
5559 * utils.c (set_internal_problem_cmd, show_internal_problem_cmd):
5560 Remove.
5561 (add_internal_problem_command): Use add_basic_prefix_cmd,
5562 add_show_prefix_cmd.
5563 * mips-tdep.c (set_mipsfpu_command): Remove.
5564 (_initialize_mips_tdep): Use add_basic_prefix_cmd.
5565 * dwarf2/index-cache.c (set_index_cache_command): Remove.
5566 (_initialize_index_cache): Use add_basic_prefix_cmd.
5567 * memattr.c (dummy_cmd): Remove.
5568 (_initialize_mem): Use add_basic_prefix_cmd, add_show_prefix_cmd.
5569 * tui/tui-win.c (set_tui_cmd, show_tui_cmd): Remove.
5570 (_initialize_tui_win): Use add_basic_prefix_cmd,
5571 add_show_prefix_cmd.
5572 * cli/cli-logging.c (set_logging_command): Remove.
5573 (_initialize_cli_logging): Use add_basic_prefix_cmd,
5574 add_show_prefix_cmd.
5575 (show_logging_command): Remove.
5576 * target.c (target_command): Remove.
5577 (add_target): Use add_basic_prefix_cmd.
5578
a51119cd
HD
55792020-05-02 Hannes Domani <ssbssa@yahoo.de>
5580
5581 * gdbtypes.h (enum dynamic_prop_node_kind): Fix typo.
5582
652fc23a 55832020-05-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6a6ea76a 5584
652fc23a
PW
5585 * gdb-gdb.gdb-in: Remove breakpoint on disappeared function
5586 info_command.
5587
117539e6
KR
55882020-04-30 Kamil Rytarowski <n54@gmx.com>
5589
5590 * nbsd-nat.c (nbsd_enable_proc_events)
5591 (nbsd_nat_target::post_startup_inferior): Add.
5592 (nbsd_nat_target::post_attach): Call `nbsd_enable_proc_events'.
5593 (nbsd_nat_target::update_thread_list): Rewrite.
5594 (nbsd_nat_target::wait): Handle "PTRACE_LWP_EXIT" and
5595 "PTRACE_LWP_CREATE".
5596 * nbsd-nat.h (nbsd_nat_target::post_startup_inferior): Add.
5597
102e38eb 55982020-04-30 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6a6ea76a 5599
102e38eb
PW
5600 * stack.c (_initialize_stack): Remove duplicated creation
5601 of "frame" command and "f" alias.
5602
ee9d1e5f
HD
56032020-04-30 Hannes Domani <ssbssa@yahoo.de>
5604
5605 PR gdb/18706
5606 * gdbtypes.c (check_typedef): Calculate size of array of
5607 stubbed type.
5608
627c7fb8
HD
56092020-04-30 Hannes Domani <ssbssa@yahoo.de>
5610
5611 PR gdb/15559
5612 * i386-tdep.c (i386_push_dummy_call): Call
5613 i386_thiscall_push_dummy_call.
5614 (i386_thiscall_push_dummy_call): New function.
5615 * i386-tdep.h (i386_thiscall_push_dummy_call): Declare.
5616 * i386-windows-tdep.c (i386_windows_push_dummy_call): New function.
5617 (i386_windows_init_abi): Call set_gdbarch_push_dummy_call.
5618
ffc2844e
SM
56192020-04-29 Simon Marchi <simon.marchi@efficios.com>
5620
5621 * gdbarch.sh (do_read): Add shellcheck disable directive for
5622 warning SC2162.
5623
1207375d
SM
56242020-04-29 Simon Marchi <simon.marchi@efficios.com>
5625
5626 * gdbarch.sh: Use ${foo:-} where shellcheck would report a
5627 "referenced but not assigned" warning.
5628
9fdb2916
SM
56292020-04-29 Simon Marchi <simon.marchi@efficios.com>
5630
5631 * gdbarch.sh: Remove code that sets fallbackdefault.
5632
759cea5e
SM
56332020-04-29 Simon Marchi <simon.marchi@efficios.com>
5634
5635 * gdbarch.sh: Use shell operators && and || instead of
5636 -a and -o.
5637
cb02ab24
SM
56382020-04-29 Simon Marchi <simon.marchi@efficios.com>
5639
5640 * gdbarch.sh: Use $(...) instead of `...`.
5641
a6fc5ffc
SM
56422020-04-29 Simon Marchi <simon.marchi@efficios.com>
5643
5644 * gdbarch.sh: Use double quotes around variables.
5645
8d113d13
SM
56462020-04-29 Simon Marchi <simon.marchi@efficios.com>
5647
5648 * gdbarch.sh: Use %s with printf, instead of variables in the
5649 format string.
5650
ed6acedd
TT
56512020-04-29 Tom Tromey <tromey@adacore.com>
5652
5653 PR ada/25875:
5654 * dwarf2/read.c (update_enumeration_type_from_children): Compute
5655 type fields here.
5656 (read_enumeration_type): Call
5657 update_enumeration_type_from_children later. Update comments.
5658 (process_enumeration_scope): Don't create type fields.
5659
b68b1b58
KR
56602020-04-29 Kamil Rytarowski <n54@gmx.com>
5661
5662 * nbsd-tdep.c: Include "xml-syscall.h".
5663 (nbsd_init_abi): Call `set_xml_syscall_file_name'.
5664
f94b2e03
KR
56652020-04-29 Kamil Rytarowski <n54@gmx.com>
5666
5667 * nbsd-nat.c: Include "sys/wait.h".
5668 (nbsd_resume, nbsd_nat_target::resume, nbsd_wait)
5669 (nbsd_nat_target::wait, nbsd_nat_target::insert_exec_catchpoint)
5670 (nbsd_nat_target::remove_exec_catchpoint)
5671 (nbsd_nat_target::set_syscall_catchpoint): Add.
5672 * nbsd-nat.h (nbsd_nat_target::resume, nbsd_nat_target::wait)
5673 (nbsd_nat_target::insert_exec_catchpoint)
5674 (nbsd_nat_target::remove_exec_catchpoint)
5675 (nbsd_nat_target::set_syscall_catchpoint): Add.
5676 * nbsd-tdep.c (nbsd_get_syscall_number): Add.
5677 (nbsd_init_abi): Call `set_gdbarch_get_syscall_number' and pass
5678 `nbsd_get_syscall_number'.
5679
fc49bc72
TT
56802020-04-29 Tom Tromey <tom@tromey.com>
5681
5682 * stack.c (print_block_frame_labels): Remove.
5683
d642b692
HD
56842020-04-29 Hannes Domani <ssbssa@yahoo.de>
5685
5686 PR gdb/17320
5687 * ada-valprint.c (val_print_packed_array_elements): Move array
5688 end bracket to new line.
5689 (ada_val_print_string): Remove extra spaces before first array
5690 element.
5691 * c-valprint.c (c_value_print_array): Likewise.
5692 * m2-valprint.c (m2_print_array_contents): Likewise.
5693 (m2_value_print_inner): Likewise.
5694 * p-valprint.c (pascal_value_print_inner): Likewise.
5695 * valprint.c (generic_val_print_array): Likewise.
5696 (value_print_array_elements): Move first array element and array
5697 end bracket to new line.
5698
ea90f227
TV
56992020-04-29 Tom de Vries <tdevries@suse.de>
5700
5701 PR symtab/25889
5702 * linespec.c (find_method): Fix ix calculation.
5703
4498ef4f
KR
57042020-04-28 Kamil Rytarowski <n54@gmx.com>
5705
5706 * syscalls/update-netbsd.sh: New file.
5707 * syscalls/netbsd.xml: Regenerate.
5708 * data-directory/Makefile.in: Register `netbsd.xml' in
5709 `SYSCALLS_FILES'.
5710
a55e30b5
SM
57112020-04-28 Simon Marchi <simon.marchi@efficios.com>
5712
5713 * syscalls/update-freebsd.sh: Add double quotes.
5714
2b2fbab8
TT
57152020-04-28 Tom Tromey <tom@tromey.com>
5716
5717 * NEWS: Update.
5718 * python/py-cmd.c (gdbpy_initialize_commands): Add COMMAND_TUI.
5719 (cmdpy_init): Allow class_tui.
5720
a65189c9
TV
57212020-04-28 Mark Williams <mark@myosotissp.com>
5722
5723 PR gdb/24480
5724 * dwarf2read.c: Add missing assingments to list_in_scope when
5725 start_symtab was already called.
5726
1b95cdb7
SM
57272020-04-28 Simon Marchi <simon.marchi@efficios.com>
5728
5729 PR gdb/25881
5730 * dwarf2/read.c (offset_map_type): Use
5731 gdb:hash_enum<sect_offset> as hash function.
5732
15cd93d0
TV
57332020-04-28 Tom de Vries <tdevries@suse.de>
5734
5735 * dwarf2/read.c (process_structure_scope): Add symbol for struct decl
5736 with DW_AT_signature.
5737
1eb39914
SM
57382020-04-27 Simon Marchi <simon.marchi@efficios.com>
5739
5740 * configure.ac: Remove check for fs_base/gs_base in
5741 user_regs_struct.
5742 * configure: Re-generate.
5743 * config.in: Re-generate.
5744 * amd64-nat.c (amd64_native_gregset_reg_offset): Adjust.
5745 * amd64-linux-nat.c (amd64_linux_nat_target::fetch_registers,
5746 amd64_linux_nat_target::store_registers, ps_get_thread_area, ): Adjust.
5747
991a3e2e
LM
57482020-04-27 Luis Machado <luis.machado@linaro.org>
5749
5750 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first): Handle
5751 problematic inline frame unwinding situation.
5752 * frame.c (frame_id_computed_p): New function.
5753 * frame.h (frame_id_computed_p): New prototype.
5754
361ba0e8
TT
57552020-04-26 Tom Tromey <tom@tromey.com>
5756
5757 * command.h (enum command_class) <class_pseudo>: Remove.
5758
bc3609fd
PW
57592020-04-26 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5760
5761 * cli/cli-decode.c (lookup_cmd_composition): Fix comments
5762 and whitespace.
5763
b9771db7
KR
57642020-04-25 Kamil Rytarowski <n54@gmx.com>
5765
ec16513e
SM
5766 * inf-ptrace.c (inf_ptrace_target::wait): Remove
5767 `PT_GET_PROCESS_STATE' block.
b9771db7 5768
7151c1af
TT
57692020-04-24 Tom Tromey <tom@tromey.com>
5770
5771 * symtab.h (symbol_get_demangled_name): Don't declare.
5772 * symtab.c (symbol_get_demangled_name): Remove.
5773 (general_symbol_info::natural_name)
5774 (general_symbol_info::demangled_name): Update.
5775
906bb4c5
TT
57762020-04-24 Tom Tromey <tom@tromey.com>
5777
5778 PR rust/25025:
5779 * dwarf2/read.c (dwarf2_physname): Do not demangle for Rust.
5780
bcfe6157
TT
57812020-04-24 Tom Tromey <tom@tromey.com>
5782
5783 PR symtab/12707:
5784 * dwarf2/read.c (add_partial_symbol): Use the linkage name if it
5785 exists.
5786 (new_symbol): Likewise.
5787 * compile/compile-object-load.c (get_out_value_type): Use
5788 symbol_matches_search_name.
5789
f049a313
TT
57902020-04-24 Tom Tromey <tom@tromey.com>
5791
5792 * dwarf2/read.c (add_partial_symbol): Do not call
5793 compute_and_set_names.
5794
76e288d1
TT
57952020-04-24 Tom Tromey <tom@tromey.com>
5796
5797 * dwarf2/read.c (add_partial_symbol): Use new add_psymbol_to_list
5798 overload.
5799
2467f4f6
TT
58002020-04-24 Tom Tromey <tom@tromey.com>
5801
5802 * psymtab.c (add_psymbol_to_bcache): Simplify calling convention.
5803 (add_psymbol_to_list): New overload. Make old overload call new
5804 one.
5805 * psympriv.h (add_psymbol_to_list): New overload.
5806
e61108c9
TT
58072020-04-24 Tom Tromey <tom@tromey.com>
5808
5809 * dwarf2/read.c (partial_die_info::read) <case
5810 DW_AT_linkage_name>: Use value_as_string.
5811 (dwarf2_string_attr): Use value_as_string.
5812 * dwarf2/attribute.h (struct attribute) <value_as_string>: Declare
5813 method.
5814 * dwarf2/attribute.c (attribute::value_as_string): New method.
5815
8c87a452
TT
58162020-04-24 Tom Tromey <tom@tromey.com>
5817
5818 * symtab.c (general_symbol_info::natural_name)
5819 (general_symbol_info::demangled_name): Check for language_rust.
5820
787de330
TT
58212020-04-24 Tom Tromey <tom@tromey.com>
5822
5823 * dwarf2/read.c (dw2_linkage_name): Move Rust "{" hack here...
5824 (dwarf2_physname): ... from here.
5825 (partial_die_info::read): Add Rust "{" hack.
5826
ff985671
TT
58272020-04-24 Tom Tromey <tom@tromey.com>
5828
5829 * symtab.h (struct general_symbol_info) <set_demangled_name>: New
5830 method.
5831 (symbol_set_demangled_name): Don't declare.
5832 * symtab.c (general_symbol_info::set_demangled_name): Rename from
5833 symbol_set_demangled_name.
5834 (general_symbol_info::set_language)
5835 (general_symbol_info::compute_and_set_names): Update.
5836 * minsyms.c (minimal_symbol_reader::install): Update.
5837 * dwarf2/read.c (new_symbol): Update.
5838
1acda803
TT
58392020-04-24 Tom Tromey <tromey@adacore.com>
5840
5841 PR python/23662:
5842 * python/py-type.c (convert_field): Handle
5843 FIELD_LOC_KIND_DWARF_BLOCK.
5844 (typy_get_sizeof): Handle TYPE_HAS_DYNAMIC_LENGTH.
5845 (typy_get_dynamic): Nw function.
5846 (type_object_getset): Add "dynamic".
5847 * NEWS: Add entry.
5848
d656f129
TT
58492020-04-24 Tom Tromey <tromey@adacore.com>
5850
5851 * ada-typeprint.c (print_choices, print_variant_part)
5852 (print_record_field_types_dynamic): New functions.
5853 (print_record_field_types): Use print_record_field_types_dynamic.
5854
7d79de9a
TT
58552020-04-24 Tom Tromey <tromey@adacore.com>
5856
5857 * dwarf2/read.c (handle_data_member_location): New overload.
5858 (dwarf2_add_field): Use it.
5859 (decode_locdesc): Add "computed" parameter. Update comment.
5860 * gdbtypes.c (is_dynamic_type_internal): Also look for
5861 FIELD_LOC_KIND_DWARF_BLOCK.
5862 (resolve_dynamic_struct): Handle FIELD_LOC_KIND_DWARF_BLOCK.
5863 * gdbtypes.c (is_dynamic_type_internal): Add special case for C++
5864 virtual base classes.
5865 * gnu-v3-abi.c (gnuv3_baseclass_offset): Handle
5866 FIELD_LOC_KIND_DWARF_BLOCK.
5867
f8e89861
TT
58682020-04-24 Tom Tromey <tromey@adacore.com>
5869
5870 * dwarf2/read.c (read_structure_type): Handle dynamic length.
5871 * gdbtypes.c (is_dynamic_type_internal): Check
5872 TYPE_HAS_DYNAMIC_LENGTH.
5873 (resolve_dynamic_type_internal): Use TYPE_DYNAMIC_LENGTH.
5874 * gdbtypes.h (TYPE_HAS_DYNAMIC_LENGTH, TYPE_DYNAMIC_LENGTH):
5875 New macros.
5876 (enum dynamic_prop_node_kind) <DYN_PROP_BYTE_SIZE>: New
5877 constant.
5878
9c6a1327
TT
58792020-04-24 Tom Tromey <tromey@adacore.com>
5880
5881 * dwarf2/read.c (struct variant_field): Rewrite.
5882 (struct variant_part_builder): New.
5883 (struct nextfield): Remove "variant" field. Add "offset".
5884 (struct field_info): Add "current_variant_part" and
5885 "variant_parts".
5886 (alloc_discriminant_info): Remove.
5887 (alloc_rust_variant): New function.
5888 (quirk_rust_enum): Update.
5889 (dwarf2_add_field): Set "offset" member. Don't handle
5890 DW_TAG_variant_part.
5891 (offset_map_type): New typedef.
5892 (convert_variant_range, create_one_variant)
5893 (create_one_variant_part, create_variant_parts)
5894 (add_variant_property): New functions.
5895 (dwarf2_attach_fields_to_type): Call add_variant_property.
5896 (read_structure_type): Don't handle DW_TAG_variant_part.
5897 (handle_variant_part, handle_variant): New functions.
5898 (handle_struct_member_die): Use them.
5899 (process_structure_scope): Don't handle variant parts.
5900 * gdbtypes.h (TYPE_FLAG_DISCRIMINATED_UNION): Remove.
5901 (struct discriminant_info): Remove.
5902 (enum dynamic_prop_node_kind) <DYN_PROP_DISCRIMINATED>: Remove.
5903 (struct main_type) <flag_discriminated_union>: Remove.
5904 * rust-lang.c (rust_enum_p, rust_empty_enum_p): Rewrite.
5905 (rust_enum_variant): Return int. Remove "contents". Rewrite.
5906 (rust_print_enum, rust_print_struct_def, rust_evaluate_subexp):
5907 Update.
5908 * valops.c (value_union_variant): Remove.
5909 * value.h (value_union_variant): Don't declare.
5910
b249d2c2
TT
59112020-04-24 Tom Tromey <tromey@adacore.com>
5912
5913 * ada-lang.c (ada_discrete_type_high_bound, ada_discrete_type_low)
5914 (ada_value_primitive_packed_val): Update.
5915 * ada-valprint.c (ada_value_print_1): Update.
5916 * dwarf2/loc.c (evaluate_for_locexpr_baton): New struct.
5917 (dwarf2_locexpr_baton_eval): Take a property_addr_info rather than
5918 just an address. Use evaluate_for_locexpr_baton.
5919 (dwarf2_evaluate_property): Update.
5920 * dwarf2/loc.h (struct property_addr_info) <valaddr>: Now an
5921 array_view.
5922 * findvar.c (default_read_var_value): Update.
5923 * gdbtypes.c (compute_variant_fields_inner)
5924 (resolve_dynamic_type_internal): Update.
5925 (resolve_dynamic_type): Change type of valaddr parameter.
5926 * gdbtypes.h (resolve_dynamic_type): Update.
5927 * valarith.c (value_subscripted_rvalue): Update.
5928 * value.c (value_from_contents_and_address): Update.
5929
61122aa9
TT
59302020-04-24 Tom Tromey <tromey@adacore.com>
5931
5932 * dwarf2/loc.c (dwarf2_locexpr_baton_eval): Add
5933 "push_initial_value" parameter.
5934 (dwarf2_evaluate_property): Likewise.
5935 * dwarf2/loc.h (dwarf2_evaluate_property): Update.
5936
ef83a141
TT
59372020-04-24 Tom Tromey <tromey@adacore.com>
5938
5939 * gdbtypes.c (is_dynamic_type_internal): Check for variant parts.
5940 (variant::matches, compute_variant_fields_recurse)
5941 (compute_variant_fields_inner, compute_variant_fields): New
5942 functions.
5943 (resolve_dynamic_struct): Check for DYN_PROP_VARIANT_PARTS.
5944 Use resolved_type after type is made.
5945 (operator==): Add new cases.
5946 * gdbtypes.h (TYPE_HAS_VARIANT_PARTS): New macro.
5947 (struct discriminant_range, struct variant, struct variant_part):
5948 New.
5949 (union dynamic_prop_data) <variant_parts, original_type>: New
5950 members.
5951 (enum dynamic_prop_node_kind) <DYN_PROP_VARIANT_PARTS>: New constant.
5952 (enum dynamic_prop_kind) <PROP_TYPE, PROP_VARIANT_PARTS>: New
5953 constants.
5954 * value.c (unpack_bits_as_long): Now public.
5955 * value.h (unpack_bits_as_long): Declare.
5956
675127ec
TT
59572020-04-24 Tom Tromey <tromey@adacore.com>
5958
5959 * rs6000-tdep.c (struct ppc_variant): Rename from "variant".
5960 (variants, find_variant_by_arch, rs6000_gdbarch_init): Update.
5961
9852ceef
HD
59622020-04-24 Hannes Domani <ssbssa@yahoo.de>
5963
5964 * windows-tdep.c (exception_values): Add WOW64 exception numbers.
5965
7632c6ce
KR
59662020-04-24 Kamil Rytarowski <n54@gmx.com>
5967
5968 * inf-ptrace.h (follow_fork, insert_fork_catchpoint)
5969 (remove_fork_catchpoint, post_startup_inferior)
5970 (post_attach): Move...
5971 * obsd-nat.h (follow_fork, insert_fork_catchpoint)
5972 (remove_fork_catchpoint, post_startup_inferior)
5973 (post_attach): ...here.
5974 * inf-ptrace.c (follow_fork, insert_fork_catchpoint)
5975 (remove_fork_catchpoint, post_startup_inferior)
5976 (post_attach): Move...
5977 * obsd-nat.c (follow_fork, insert_fork_catchpoint)
5978 (remove_fork_catchpoint, post_startup_inferior)
5979 (post_attach): ...here.
5980
7be2bb4f
TT
59812020-04-24 Tom Tromey <tromey@adacore.com>
5982
5983 * nat/windows-nat.h (struct windows_thread_info)
5984 <pc_adjusted>: New member.
5985 * windows-nat.c (windows_fetch_one_register): Check
5986 pc_adjusted.
5987 (windows_nat_target::get_windows_debug_event)
5988 (windows_nat_target::wait): Set pc_adjusted.
5989
f80cb3b4
TV
59902020-04-24 Tom de Vries <tdevries@suse.de>
5991
5992 * contrib/cc-with-tweaks.sh: Remove <exec>.gdb-index file handling.
5993 Run gdb-add-index inside temp dir.
5994
29514b87
TT
59952020-04-23 Tom Tromey <tromey@adacore.com>
5996
5997 * windows-tdep.c (is_linked_with_cygwin_dll): Always update "iter"
5998 in loop.
5999
5939967b
LM
60002020-04-23 Luis Machado <luis.machado@linaro.org>
6001
6002 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first): Use
6003 get_frame_register instead of gdbarch_unwind_pc.
6004
70bc38f5
TV
60052020-04-23 Tom de Vries <tdevries@suse.de>
6006
6007 * symtab.c (lookup_global_symbol): Prefer def over decl.
6008
de82891c
TV
60092020-04-23 Tom de Vries <tdevries@suse.de>
6010
6011 PR symtab/25807
6012 * block.c (best_symbol, better_symbol): Promote to external.
6013 * block.h (best_symbol, better_symbol): Declare.
6014 * symtab.c (lookup_symbol_in_objfile_symtabs): Prefer def over
6015 decl.
6016
ecc6c606
TT
60172020-04-23 Tom Tromey <tromey@adacore.com>
6018
6019 PR ada/25837:
6020 * dwarf2/read.c (dw2_expand_symtabs_matching_symbol): Store a
6021 "const char *", not a "const std::string &".
6022 <name_and_matcher::operator==>: Update.
6023 * unittests/lookup_name_info-selftests.c: Change type of
6024 "result".
6025
740480b8
TT
60262020-04-23 Tom Tromey <tom@tromey.com>
6027
6028 * inferior.h (iterate_over_inferiors): Don't declare.
6029 * inferior.c (iterate_over_inferiors): Remove.
6030 * darwin-nat.c (find_inferior_task_it, find_inferior_pid_it):
6031 Remove.
6032 (darwin_find_inferior_by_task, darwin_find_inferior_by_pid): Don't
6033 use iterate_over_inferiors.
6034 (darwin_resume_inferior_it)
6035 (struct resume_inferior_threads_param)
6036 (darwin_resume_inferior_threads_it): Remove.
6037 (darwin_nat_target::resume): Don't use iterate_over_inferiors.
6038
ae3ab1f0
TV
60392020-04-23 Tom de Vries <tdevries@suse.de>
6040
6041 * blockframe.c (find_pc_partial_function): Use
6042 find_pc_sect_compunit_symtab rather than
6043 objfile->sf->qf->find_pc_sect_compunit_symtab.
6044
317d2668
TV
60452020-04-22 Tom de Vries <tdevries@suse.de>
6046
6047 PR symtab/25764
6048 * dwarf2/read.c (scan_partial_symbols): Allow external variable decls
6049 in psymtabs.
6050
eea9e357
TV
60512020-04-22 Tom de Vries <tdevries@suse.de>
6052
6053 PR symtab/25801
6054 * psymtab.c (psym_map_symtabs_matching_filename): Don't skip shared
6055 symtabs.
6056
3d5afab3
TV
60572020-04-22 Tom de Vries <tdevries@suse.de>
6058
6059 PR symtab/25700
6060 * dwarf2/read.c (dwarf2_build_psymtabs_hard): Don't create psymtab for
6061 CU if already created.
6062
d43b7a2d
TBA
60632020-04-21 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
6064
6065 * infrun.c (displaced_step_fixup): Switch to the event_thread
6066 before calling displaced_step_restore, not after.
6067
d89edf9b
MM
60682020-04-21 Markus Metzger <markus.t.metzger@intel.com>
6069
6070 * record-btrace.c (record_btrace_enable_warn): Ignore thread if
6071 its inferior is not recorded by us.
6072 (record_btrace_target_open): Replace call to
6073 all_non_exited_threads () with call to current_inferior
6074 ()->non_exited_threads ().
6075 (record_btrace_target::stop_recording): Likewise.
6076 (record_btrace_target::close): Likewise.
6077 (record_btrace_target::wait): Likewise.
6078 (record_btrace_target::record_stop_replaying): Likewise.
6079
5897fd49
MM
60802020-04-21 Markus Metzger <markus.t.metzger@intel.com>
6081
6082 * btrace.c (btrace_enable): Throw an error on double enables and
6083 when enabling recording fails.
6084 (btrace_disable): Throw an error if the thread is not recorded.
6085
1a476b6d
MM
60862020-04-21 Markus Metzger <markus.t.metzger@intel.com>
6087
6088 * record-btrace.c (record_btrace_target::fetch_registers): Forward
6089 request if we do not have a thread_info.
6090
4778a5f8
TV
60912020-04-21 Tom de Vries <tdevries@suse.de>
6092
6093 PR gdb/25471
6094 * thread.c
6095 (scoped_restore_current_thread::scoped_restore_current_thread): Catch
6096 exception in get_frame_id.
6097
0fa7617d
TT
60982020-04-20 Tom Tromey <tromey@adacore.com>
6099
6100 * python/python.c (struct gdbpy_event): Mark move constructor as
6101 noexcept.
6102 * python/py-tui.c (class gdbpy_tui_window_maker): Mark move
6103 constructor as noexcept.
6104 * completer.h (struct completion_result): Mark move constructor as
6105 noexcept.
6106 * completer.c (completion_result::completion_result): Use
6107 initialization style. Don't call reset_match_list.
6108
ad23bda0
MS
61092020-04-20 Mihails Strasuns <mihails.strasuns@intel.com>
6110
6111 * MAINTAINERS (Write After Approval): Add myself.
6112
45e1f031
TT
61132020-04-18 Tom Tromey <tom@tromey.com>
6114
6115 * windows-tdep.c (init_w32_command_list)
6116 (w32_prefix_command_valid): Restore.
6117 (_initialize_windows_tdep): Call init_w32_command_list.
6118
08feed99
TT
61192020-04-18 Tom Tromey <tom@tromey.com>
6120
6121 * xcoffread.c (enter_line_range, scan_xcoff_symtab): Update.
6122 * value.c (value_fn_field): Update.
6123 * valops.c (find_function_in_inferior)
6124 (value_allocate_space_in_inferior): Update.
6125 * tui/tui-winsource.c (tui_update_source_windows_with_line):
6126 Update.
6127 * tui/tui-source.c (tui_source_window::set_contents): Update.
6128 * symtab.c (lookup_global_or_static_symbol)
6129 (find_function_start_sal_1, skip_prologue_sal)
6130 (print_msymbol_info, find_gnu_ifunc, symbol_arch): Update.
6131 * symmisc.c (dump_msymbols, dump_symtab_1)
6132 (maintenance_print_one_line_table): Update.
6133 * symfile.c (init_entry_point_info, section_is_mapped)
6134 (list_overlays_command, simple_read_overlay_table)
6135 (simple_overlay_update_1): Update.
6136 * stap-probe.c (handle_stap_probe): Update.
6137 * stabsread.c (dbx_init_float_type, define_symbol)
6138 (read_one_struct_field, read_enum_type, read_range_type): Update.
6139 * source.c (info_line_command): Update.
6140 * python/python.c (gdbpy_source_objfile_script)
6141 (gdbpy_execute_objfile_script): Update.
6142 * python/py-type.c (save_objfile_types): Update.
6143 * python/py-objfile.c (py_free_objfile): Update.
6144 * python/py-inferior.c (python_new_objfile): Update.
6145 * psymtab.c (psym_find_pc_sect_compunit_symtab, dump_psymtab)
6146 (dump_psymtab_addrmap_1, maintenance_info_psymtabs)
6147 (maintenance_check_psymtabs): Update.
6148 * printcmd.c (info_address_command): Update.
6149 * objfiles.h (struct objfile) <arch>: New method, from
6150 get_objfile_arch.
6151 (get_objfile_arch): Don't declare.
6152 * objfiles.c (get_objfile_arch): Remove.
6153 (filter_overlapping_sections): Update.
6154 * minsyms.c (msymbol_is_function): Update.
6155 * mi/mi-symbol-cmds.c (mi_cmd_symbol_list_lines)
6156 (output_nondebug_symbol): Update.
6157 * mdebugread.c (parse_symbol, basic_type, parse_partial_symbols)
6158 (mdebug_expand_psymtab): Update.
6159 * machoread.c (macho_add_oso_symfile): Update.
6160 * linux-tdep.c (linux_infcall_mmap, linux_infcall_munmap):
6161 Update.
6162 * linux-fork.c (checkpoint_command): Update.
6163 * linespec.c (convert_linespec_to_sals): Update.
6164 * jit.c (finalize_symtab): Update.
6165 * infrun.c (insert_exception_resume_from_probe): Update.
6166 * ia64-tdep.c (ia64_find_unwind_table): Update.
6167 * hppa-tdep.c (internalize_unwinds): Update.
6168 * gdbtypes.c (get_type_arch, init_float_type, objfile_type):
6169 Update.
6170 * gcore.c (call_target_sbrk): Update.
6171 * elfread.c (record_minimal_symbol, elf_symtab_read)
6172 (elf_rel_plt_read, elf_gnu_ifunc_record_cache)
6173 (elf_gnu_ifunc_resolve_by_got): Update.
6174 * dwarf2/read.c (create_addrmap_from_index)
6175 (create_addrmap_from_aranges, dw2_find_pc_sect_compunit_symtab)
6176 (read_debug_names_from_section)
6177 (process_psymtab_comp_unit_reader, add_partial_symbol)
6178 (add_partial_subprogram, process_full_comp_unit)
6179 (read_file_scope, read_func_scope, read_lexical_block_scope)
6180 (read_call_site_scope, dwarf2_ranges_read)
6181 (dwarf2_record_block_ranges, dwarf2_add_field)
6182 (mark_common_block_symbol_computed, read_tag_pointer_type)
6183 (read_tag_string_type, dwarf2_init_float_type)
6184 (dwarf2_init_complex_target_type, read_base_type)
6185 (partial_die_info::read, partial_die_info::read)
6186 (read_attribute_value, dwarf_decode_lines_1, new_symbol)
6187 (dwarf2_fetch_die_loc_sect_off): Update.
6188 * dwarf2/loc.c (dwarf2_find_location_expression)
6189 (class dwarf_evaluate_loc_desc, rw_pieced_value)
6190 (dwarf2_evaluate_loc_desc_full, dwarf2_locexpr_baton_eval)
6191 (dwarf2_loc_desc_get_symbol_read_needs)
6192 (locexpr_describe_location_piece, locexpr_describe_location_1)
6193 (loclist_describe_location): Update.
6194 * dwarf2/index-write.c (write_debug_names): Update.
6195 * dwarf2/frame.c (dwarf2_build_frame_info): Update.
6196 * dtrace-probe.c (dtrace_process_dof): Update.
6197 * dbxread.c (read_dbx_symtab, dbx_end_psymtab)
6198 (process_one_symbol): Update.
6199 * ctfread.c (ctf_init_float_type, read_base_type): Update.
6200 * coffread.c (coff_symtab_read, enter_linenos, decode_base_type)
6201 (coff_read_enum_type): Update.
6202 * cli/cli-cmds.c (edit_command, list_command): Update.
6203 * buildsym.c (buildsym_compunit::finish_block_internal): Update.
6204 * breakpoint.c (create_overlay_event_breakpoint)
6205 (create_longjmp_master_breakpoint)
6206 (create_std_terminate_master_breakpoint)
6207 (create_exception_master_breakpoint, get_sal_arch): Update.
6208 * block.c (block_gdbarch): Update.
6209 * annotate.c (annotate_source_line): Update.
6210
0743fc83
TT
62112020-04-17 Tom Tromey <tromey@adacore.com>
6212
6213 * auto-load.c (show_auto_load_cmd): Remove.
6214 (auto_load_show_cmdlist_get): Use add_show_prefix_cmd.
6215 * arc-tdep.c (_initialize_arc_tdep): Use add_show_prefix_cmd.
6216 (maintenance_print_arc_command): Remove.
6217 * tui/tui-win.c (tui_command): Remove.
6218 (tui_get_cmd_list): Use add_basic_prefix_cmd.
6219 * tui/tui-layout.c (tui_layout_command): Remove.
6220 (_initialize_tui_layout): Use add_basic_prefix_cmd.
6221 * python/python.c (user_set_python, user_show_python): Remove.
6222 (_initialize_python): Use add_basic_prefix_cmd,
6223 add_show_prefix_cmd.
6224 * guile/guile.c (set_guile_command, show_guile_command): Remove.
6225 (install_gdb_commands): Use add_basic_prefix_cmd,
6226 add_show_prefix_cmd.
6227 (info_guile_command): Remove.
6228 * dwarf2/read.c (set_dwarf_cmd, show_dwarf_cmd): Remove.
6229 (_initialize_dwarf2_read): Use add_basic_prefix_cmd,
6230 add_show_prefix_cmd.
6231 * cli/cli-style.h (class cli_style_option) <add_setshow_commands>:
6232 Remove do_set and do_show parameters.
6233 * cli/cli-style.c (set_style, show_style): Remove.
6234 (_initialize_cli_style): Use add_basic_prefix_cmd,
6235 add_show_prefix_cmd.
6236 (cli_style_option::add_setshow_commands): Remove do_set and
6237 do_show parameters.
6238 (cli_style_option::add_setshow_commands): Use
6239 add_basic_prefix_cmd, add_show_prefix_cmd.
6240 (STYLE_ADD_SETSHOW_COMMANDS): Remove macro.
6241 (set_style_name): Remove.
6242 * cli/cli-dump.c (dump_command, append_command): Remove.
6243 (srec_dump_command, ihex_dump_command, verilog_dump_command)
6244 (tekhex_dump_command, binary_dump_command)
6245 (binary_append_command): Remove.
6246 (_initialize_cli_dump): Use add_basic_prefix_cmd.
6247 * windows-tdep.c (w32_prefix_command_valid): Remove global.
6248 (init_w32_command_list): Remove; move into ...
6249 (_initialize_windows_tdep): ... here. Use add_basic_prefix_cmd.
6250 * valprint.c (set_print, show_print, set_print_raw)
6251 (show_print_raw): Remove.
6252 (_initialize_valprint): Use add_basic_prefix_cmd,
6253 add_show_prefix_cmd.
6254 * typeprint.c (set_print_type, show_print_type): Remove.
6255 (_initialize_typeprint): Use add_basic_prefix_cmd,
6256 add_show_prefix_cmd.
6257 * record.c (set_record_command, show_record_command): Remove.
6258 (_initialize_record): Use add_basic_prefix_cmd,
6259 add_show_prefix_cmd.
6260 * cli/cli-cmds.c (_initialize_cli_cmds): Use add_basic_prefix_cmd,
6261 add_show_prefix_cmd.
6262 (info_command, show_command, set_debug, show_debug): Remove.
6263 * top.h (set_history, show_history): Don't declare.
6264 * top.c (set_history, show_history): Remove.
6265 * target-descriptions.c (set_tdesc_cmd, show_tdesc_cmd)
6266 (unset_tdesc_cmd): Remove.
6267 (_initialize_target_descriptions): Use add_basic_prefix_cmd,
6268 add_show_prefix_cmd.
6269 * symtab.c (info_module_command): Remove.
6270 (_initialize_symtab): Use add_basic_prefix_cmd.
6271 * symfile.c (overlay_command): Remove.
6272 (_initialize_symfile): Use add_basic_prefix_cmd.
6273 * sparc64-tdep.c (info_adi_command): Remove.
6274 (_initialize_sparc64_adi_tdep): Use add_basic_prefix_cmd.
6275 * sh-tdep.c (show_sh_command, set_sh_command): Remove.
6276 (_initialize_sh_tdep): Use add_basic_prefix_cmd,
6277 add_show_prefix_cmd.
6278 * serial.c (serial_set_cmd, serial_show_cmd): Remove.
6279 (_initialize_serial): Use add_basic_prefix_cmd,
6280 add_show_prefix_cmd.
6281 * ser-tcp.c (set_tcp_cmd, show_tcp_cmd): Remove.
6282 (_initialize_ser_tcp): Use add_basic_prefix_cmd,
6283 add_show_prefix_cmd.
6284 * rs6000-tdep.c (set_powerpc_command, show_powerpc_command)
6285 (_initialize_rs6000_tdep): Use add_basic_prefix_cmd,
6286 add_show_prefix_cmd.
6287 * riscv-tdep.c (show_riscv_command, set_riscv_command)
6288 (show_debug_riscv_command, set_debug_riscv_command): Remove.
6289 (_initialize_riscv_tdep): Use add_basic_prefix_cmd,
6290 add_show_prefix_cmd.
6291 * remote.c (remote_command, set_remote_cmd): Remove.
6292 (_initialize_remote): Use add_basic_prefix_cmd.
6293 * record-full.c (set_record_full_command)
6294 (show_record_full_command): Remove.
6295 (_initialize_record_full): Use add_basic_prefix_cmd,
6296 add_show_prefix_cmd.
6297 * record-btrace.c (cmd_set_record_btrace)
6298 (cmd_show_record_btrace, cmd_set_record_btrace_bts)
6299 (cmd_show_record_btrace_bts, cmd_set_record_btrace_pt)
6300 (cmd_show_record_btrace_pt): Remove.
6301 (_initialize_record_btrace): Use add_basic_prefix_cmd,
6302 add_show_prefix_cmd.
6303 * ravenscar-thread.c (set_ravenscar_command)
6304 (show_ravenscar_command): Remove.
6305 (_initialize_ravenscar): Use add_basic_prefix_cmd,
6306 add_show_prefix_cmd.
6307 * mips-tdep.c (show_mips_command, set_mips_command)
6308 (_initialize_mips_tdep): Use add_basic_prefix_cmd,
6309 add_show_prefix_cmd.
6310 * maint.c (maintenance_command, maintenance_info_command)
6311 (maintenance_check_command, maintenance_print_command)
6312 (maintenance_set_cmd, maintenance_show_cmd): Remove.
6313 (_initialize_maint_cmds): Use add_basic_prefix_cmd,
6314 add_show_prefix_cmd.
6315 (show_per_command_cmd): Remove.
6316 * maint-test-settings.c (maintenance_set_test_settings_cmd):
6317 Remove.
6318 (maintenance_show_test_settings_cmd): Remove.
6319 (_initialize_maint_test_settings): Use add_basic_prefix_cmd,
6320 add_show_prefix_cmd.
6321 * maint-test-options.c (maintenance_test_options_command):
6322 Remove.
6323 (_initialize_maint_test_options): Use add_basic_prefix_cmd.
6324 * macrocmd.c (macro_command): Remove
6325 (_initialize_macrocmd): Use add_basic_prefix_cmd.
6326 * language.c (set_check, show_check): Remove.
6327 (_initialize_language): Use add_basic_prefix_cmd,
6328 add_show_prefix_cmd.
6329 * infcmd.c (unset_command): Remove.
6330 (_initialize_infcmd): Use add_basic_prefix_cmd.
6331 * i386-tdep.c (set_mpx_cmd, show_mpx_cmd): Remove.
6332 (_initialize_i386_tdep): Use add_basic_prefix_cmd,
6333 add_show_prefix_cmd.
6334 * go32-nat.c (go32_info_dos_command): Remove.
6335 (_initialize_go32_nat): Use add_basic_prefix_cmd.
6336 * cli/cli-decode.c (do_prefix_cmd, add_basic_prefix_cmd)
6337 (do_show_prefix_cmd, add_show_prefix_cmd): New functions.
6338 * frame.c (set_backtrace_cmd, show_backtrace_cmd): Remove.
6339 (_initialize_frame): Use add_basic_prefix_cmd,
6340 add_show_prefix_cmd.
6341 * dcache.c (set_dcache_command, show_dcache_command): Remove.
6342 (_initialize_dcache): Use add_basic_prefix_cmd,
6343 add_show_prefix_cmd.
6344 * cp-support.c (maint_cplus_command): Remove.
6345 (_initialize_cp_support): Use add_basic_prefix_cmd.
6346 * btrace.c (maint_btrace_cmd, maint_btrace_set_cmd)
6347 (maint_btrace_show_cmd, maint_btrace_pt_set_cmd)
6348 (maint_btrace_pt_show_cmd, _initialize_btrace): Use
6349 add_basic_prefix_cmd, add_show_prefix_cmd.
6350 * breakpoint.c (save_command): Remove.
6351 (_initialize_breakpoint): Use add_basic_prefix_cmd.
6352 * arm-tdep.c (set_arm_command, show_arm_command): Remove.
6353 (_initialize_arm_tdep): Use add_basic_prefix_cmd,
6354 add_show_prefix_cmd.
6355 * ada-lang.c (maint_set_ada_cmd, maint_show_ada_cmd)
6356 (set_ada_command, show_ada_command): Remove.
6357 (_initialize_ada_language): Use add_basic_prefix_cmd,
6358 add_show_prefix_cmd.
6359 * command.h (add_basic_prefix_cmd, add_show_prefix_cmd): Declare.
6360
3557f442
KR
63612020-04-16 Kamil Rytarowski <n54@gmx.com>
6362
6363 * nbsd-nat.c (inf_ptrace_target::auxv_parse): Remove.
6364 * nbsd-nat.h (inf_ptrace_target::auxv_parse): Likewise.
6365
16197208
SM
63662020-04-16 Simon Marchi <simon.marchi@polymtl.ca>
6367
6368 * windows-tdep.c (is_linked_with_cygwin_dll): Add filename to
6369 warning messages.
6370
00ac85d3
SM
63712020-04-16 Simon Marchi <simon.marchi@polymtl.ca>
6372
6373 * windows-tdep.c (is_linked_with_cygwin_dll): Consider case where
6374 import table is not at beginning of .idata section.
6375
381ce63f
PA
63762020-04-16 Pedro Alves <palves@redhat.com>
6377
6378 * inferior.c (delete_inferior): Use delete operator directly
6379 instead of delete_program_space.
6380 * progspace.c (add_program_space): New, factored out from
6381 program_space::program_space.
6382 (remove_program_space): New, factored out from
6383 delete_program_space.
6384 (program_space::program_space): Remove intro comment. Rewrite.
6385 (program_space::~program_space): Remove intro comment. Call
6386 remove_program_space.
6387 (delete_program_space): Delete.
6388 * progspace.h (program_space::program_space): Make explicit. Move
6389 intro comment here, adjusted.
6390 (program_space::~program_space): Move intro comment here,
6391 adjusted.
6392 (delete_program_space): Remove.
6393
a010605f
TT
63942020-04-16 Tom Tromey <tromey@adacore.com>
6395
6396 * windows-nat.c (windows_nat::handle_access_violation): New
6397 function.
6398 * nat/windows-nat.h (handle_access_violation): Declare.
6399 * nat/windows-nat.c (handle_exception): Move Cygwin code to
6400 windows-nat.c. Call handle_access_violation.
6401
efba5c23
TV
64022020-04-16 Tom de Vries <tdevries@suse.de>
6403
6404 PR symtab/25791
6405 * dwarf2/index-write.c (write_gdbindex): Generate CU table entries for
6406 CUs without psymtab.
6407
97ed802d
KB
64082020-04-16 Kevin Buettner <kevinb@redhat.com>
6409
6410 * python/python.c (do_start_initialization): Don't call
6411 PyEval_InitThreads for Python 3.9 and beyond.
6412
c7d64809
KR
64132020-04-15 Kamil Rytarowski <n54@gmx.com>
6414
6415 * obsd-nat.c (obsd_nat_target::update_thread_list): Pass "this" to
6416 thread functions.
6417 (obsd_nat_target::wait): Likewise.
6418
ce127a96
TT
64192020-04-15 Tom Tromey <tromey@adacore.com>
6420
6421 * windows-nat.c (DEBUG_EXEC, DEBUG_EVENTS, DEBUG_MEM)
6422 (DEBUG_EXCEPT): Use debug_printf.
6423
99f1bc6a
AB
64242020-04-15 Andrew Burgess <andrew.burgess@embecosm.com>
6425
6426 * completer.c (class completion_tracker::completion_hash_entry)
6427 <hash_name>: New member function.
6428 (completion_tracker::discard_completions): New callback to hash a
6429 completion_hash_entry, pass this to htab_create_alloc.
6430
a0e9b532
JT
64312016-01-20 Jon Turney <jon.turney@dronecode.org.uk>
6432
6433 * windows-nat.c (windows_make_so): Warn rather than stopping with
6434 an error if realpath() fails.
6435
06ca5dd4
KR
64362020-04-14 Kamil Rytarowski <n54@gmx.com>
6437
6438 * nbsd-nat.c (nbsd_pid_to_kinfo_proc2): New.
6439 (nbsd_nat_target::info_proc): Add do_status.
6440
194d088f
TV
64412020-04-14 Simon Marchi <simon.marchi@polymtl.ca>
6442 Tom de Vries <tdevries@suse.de>
6443
6444 PR symtab/25718
6445 * psympriv.h (struct partial_symtab::read_symtab)
6446 (struct partial_symtab::expand_psymtab)
6447 (struct partial_symtab::read_dependencies): Update comments.
6448 * dwarf2/read.c (struct dwarf2_include_psymtab::read_symtab): Call
6449 read_symtab for includer.
6450 (struct dwarf2_include_psymtab::expand_psymtab): Assert false.
6451 (struct dwarf2_include_psymtab::readin_p): Call readin_p () for includer.
6452 (struct dwarf2_include_psymtab::m_readin): Remove.
6453 (struct dwarf2_include_psymtab::includer): New member function.
6454 (dwarf2_psymtab::expand_psymtab): Assert !readin.
6455
c1a66c06
TV
64562020-04-14 Tom de Vries <tdevries@suse.de>
6457
6458 PR symtab/25720
6459 * symmisc.c (maintenance_expand_symtabs): Call expand_symtabs_matching
6460 with NULL symbol_matcher and lookup_name.
6461 * psymtab.c (psym_expand_symtabs_matching): Handle NULL symbol_matcher
6462 and lookup_name.
6463 * dwarf2/read.c (dw2_expand_symtabs_matching)
6464 (dw2_debug_names_expand_symtabs_matching): Same.
6465 * symfile.h (struct quick_symbol_functions::expand_symtabs_matching):
6466 Make lookup_name a pointer. Update comment.
6467 * symtab.c (global_symbol_searcher::expand_symtabs): Handle
6468 lookup_name being a pointer.
6469 * symfile.c (expand_symtabs_matching): Same.
6470 * symfile-debug.c (debug_qf_expand_symtabs_matching): Same.
6471 * linespec.c (iterate_over_all_matching_symtabs): Same.
6472
400b5eca
TT
64732020-04-13 Tom Tromey <tom@tromey.com>
6474
6475 * run-on-main-thread.c: Update include.
6476 * unittests/main-thread-selftests.c: Update include.
6477 * tui/tui-win.c: Update include.
6478 * tui/tui-io.c: Update include.
6479 * tui/tui-interp.c: Update include.
6480 * tui/tui-hooks.c: Update include.
6481 * top.h: Update include.
6482 * top.c: Update include.
6483 * ser-base.c: Update include.
6484 * remote.c: Update include.
6485 * remote-notif.c: Update include.
6486 * remote-fileio.c: Update include.
6487 * record-full.c: Update include.
6488 * record-btrace.c: Update include.
6489 * python/python.c: Update include.
6490 * posix-hdep.c: Update include.
6491 * mingw-hdep.c: Update include.
6492 * mi/mi-main.c: Update include.
6493 * mi/mi-interp.c: Update include.
6494 * main.c: Update include.
6495 * linux-nat.c: Update include.
6496 * interps.c: Update include.
6497 * infrun.c: Update include.
6498 * inf-loop.c: Update include.
6499 * event-top.c: Update include.
6500 * event-loop.c: Move to ../gdbsupport/.
6501 * event-loop.h: Move to ../gdbsupport/.
6502 * async-event.h: Update include.
6503 * Makefile.in (COMMON_SFILES, HFILES_NO_SRCDIR): Update.
6504
93b54c8e
TT
65052020-04-13 Tom Tromey <tom@tromey.com>
6506
6507 * tui/tui-win.c: Include async-event.h.
6508 * remote.c: Include async-event.h.
6509 * remote-notif.c: Include async-event.h.
6510 * record-full.c: Include async-event.h.
6511 * record-btrace.c: Include async-event.h.
6512 * infrun.c: Include async-event.h.
6513 * event-top.c: Include async-event.h.
6514 * event-loop.h: Move some declarations to async-event.h.
6515 * event-loop.c: Don't include ser-event.h or top.h. Move some
6516 code to async-event.c.
6517 * async-event.h: New file.
6518 * async-event.c: New file.
6519 * Makefile.in (COMMON_SFILES): Add async-event.c.
6520 (HFILES_NO_SRCDIR): Add async-event.h.
6521
c1cd3163
TT
65222020-04-13 Tom Tromey <tom@tromey.com>
6523
6524 * utils.c (flush_streams): New function.
6525 * event-loop.c (gdb_wait_for_event): Call flush_streams.
6526
29f2bf4f
TT
65272020-04-13 Tom Tromey <tom@tromey.com>
6528
6529 * event-loop.c (handle_file_event): Use warning, not
6530 printf_unfiltered.
6531
98029d02
TT
65322020-04-13 Tom Tromey <tom@tromey.com>
6533
6534 * event-loop.c: Include <chrono>.
6535
06cc9596
TT
65362020-04-13 Tom Tromey <tom@tromey.com>
6537
6538 * gdb_select.h: Move to ../gdbsupport/.
6539 * event-loop.c: Update include path.
6540 * top.c: Update include path.
6541 * ser-base.c: Update include path.
6542 * ui-file.c: Update include path.
6543 * ser-tcp.c: Update include path.
6544 * guile/scm-ports.c: Update include path.
6545 * posix-hdep.c: Update include path.
6546 * ser-unix.c: Update include path.
6547 * gdb_usleep.c: Update include path.
6548 * mingw-hdep.c: Update include path.
6549 * inflow.c: Update include path.
6550 * infrun.c: Update include path.
6551 * event-top.c: Update include path.
6552
8ae8e197
TT
65532020-04-13 Tom Tromey <tom@tromey.com>
6554
6555 * configure: Rebuild.
6556 * configure.ac: Remove checks that are now in GDB_AC_COMMON.
6557
58cf28e8
TT
65582020-04-13 Tom Tromey <tom@tromey.com>
6559
6560 * event-loop.h (start_event_loop): Don't declare.
6561 * event-loop.c (start_event_loop): Move...
6562 * main.c (start_event_loop): ...here. Now static.
6563
b7f999ae
SDJ
65642020-04-13 Sergio Durigan Junior <sergiodj@sergiodj.net>
6565
6566 * MAINTAINERS: Update my email address.
6567
1085dfd4
KR
65682020-04-12 Kamil Rytarowski <n54@gmx.com>
6569
6570 * nbsd-nat.c (nbsd_nat_target::info_proc): Add IP_MINIMAL and
6571 IP_ALL.
6572
49d1d1f5
KR
65732020-04-12 Kamil Rytarowski <n54@gmx.com>
6574
6575 * nbsd-nat.c (nbsd_pid_to_cmdline): Add.
aac66a4c 6576 (nbsd_nat_target::info_proc): Add do_cmdline.
49d1d1f5 6577
b4848d2a
KR
65782020-04-12 Kamil Rytarowski <n54@gmx.com>
6579
6580 * nbsd-nat.c (nbsd_pid_to_cwd): Add.
aac66a4c 6581 (nbsd_nat_target::info_proc): Add do_cwd.
b4848d2a 6582
51c133d5
KR
65832020-04-12 Kamil Rytarowski <n54@gmx.com>
6584
6585 * nbsd-nat.c (nbsd_nat_target::info_proc): Add do_exe.
6586
54b8cbd0
KR
65872020-04-11 Kamil Rytarowski <n54@gmx.com>
6588
6589 * nbsd-nat.c; Include "nbsd-tdep.h" and "gdbarch.h".
6590 * nbsd-nat.c (nbsd_nat_target::find_memory_regions)
6591 (nbsd_nat_target::info_proc): New functions.
6592 * nbsd-nat.c (kinfo_get_vmmap): New function.
6593 * nbsd-nat.c (nbsd_nat_target::info_proc) Use
6594 nbsd_info_proc_mappings_header and nbsd_info_proc_mappings_entry.
6595 * nbsd-tdep.c (nbsd_info_proc_mappings_header)
6596 (nbsd_info_proc_mappings_entry, nbsd_vm_map_entry_flags): New
6597 functions.
6598 * nbsd-tdep.c (KINFO_VME_PROT_READ, KINFO_VME_PROT_WRITE)
6599 (KINFO_VME_PROT_EXEC, KINFO_VME_FLAG_COW)
6600 (KINFO_VME_FLAG_NEEDS_COPY, KINFO_VME_FLAG_NOCOREDUMP)
6601 (KINFO_VME_FLAG_PAGEABLE, KINFO_VME_FLAG_GROWS_UP)
6602 (KINFO_VME_FLAG_GROWS_DOWN): New.
6603
cf83625d
AS
66042020-04-10 Artur Shepilko <nomadbyte@gmail.com>
6605
6606 * utils.c (copy_bitwise): Use unsigned 0 constant as operand of
6607 bit shift.
6608
0c4311ab
TT
66092020-04-10 Tom Tromey <tromey@adacore.com>
6610
6611 * symfile.c (symbol_file_add_separate): Preserve OBJF_MAINLINE.
6612
3e65b3e9
TT
66132020-04-10 Tom Tromey <tromey@adacore.com>
6614
6615 * symtab.c (get_symbol_address, get_msymbol_address): Skip
6616 separate debug files.
6617
13302e95
HD
66182020-04-10 Hannes Domani <ssbssa@yahoo.de>
6619
6620 * nat/windows-nat.c (STATUS_WX86_BREAKPOINT, STATUS_WX86_SINGLE_STEP):
6621 Move to...
6622 * nat/windows-nat.h (STATUS_WX86_BREAKPOINT, STATUS_WX86_SINGLE_STEP):
6623 ... here.
6624 * windows-nat.c (windows_nat_target::get_windows_debug_event):
6625 Check for STATUS_WX86_BREAKPOINT.
6626 (windows_nat_target::wait): Same.
6627
bdfc1e8a
TV
66282020-04-10 Tom de Vries <tdevries@suse.de>
6629
6630 PR cli/25808
6631 * python/lib/gdb/__init__.py: Initialize lexer with stripnl=False.
6632
f4460aec
SM
66332020-04-09 Simon Marchi <simon.marchi@polymtl.ca>
6634
6635 * MAINTAINERS (Global Maintainers): Add Tom de Vries.
6636 (Write After Approval): Remove Tom de Vries.
6637
a25198bb
BE
66382020-04-09 Bernd Edlinger <bernd.edlinger@hotmail.de>
6639
6640 revert partially:
6641 2020-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
6642
aac66a4c
SM
6643 * buildsym.c (record_line): Fix undefined behavior and preserve
6644 lines at eof.
a25198bb 6645
206c98a6
KR
66462020-04-09 Kamil Rytarowski <n54@gmx.com>
6647
6648 * auxv.h (svr4_auxv_parse): New.
6649 * auxv.c (default_auxv_parse): Split into default_auxv_parse
6650 and generic_auxv_parse.
6651 (svr4_auxv_parse): Add.
6652 * obsd-tdep.c: Include "auxv.h".
6653 (obsd_auxv_parse): Remove.
6654 (obsd_init_abi): Remove comment.
6655 (obsd_init_abi): Change set_gdbarch_auxv_parse passed argument
6656 from `obsd_auxv_parse' to `svr4_auxv_parse'.
6657 * nbsd-tdep.c: Include "auxv.h".
6658 (nbsd_init_abi): Call set_gdbarch_auxv_parse.
6659
71fbdbaf
TT
66602020-04-08 Tom Tromey <tromey@adacore.com>
6661
6662 * nat/windows-nat.h (last_wait_event): Don't declare.
6663 (wait_for_debug_event): Update comment.
6664 * nat/windows-nat.c (last_wait_event): Now static.
6665
2c1d95e8
TT
66662020-04-08 Tom Tromey <tromey@adacore.com>
6667
6668 * windows-nat.c (wait_for_debug_event): Move to
6669 nat/windows-nat.c.
6670 * nat/windows-nat.h (wait_for_debug_event): Declare.
6671 * nat/windows-nat.c (wait_for_debug_event): Move from
6672 windows-nat.c. No longer static.
6673
d2977bc4
TT
66742020-04-08 Tom Tromey <tromey@adacore.com>
6675
6676 * windows-nat.c (get_windows_debug_event): Use
6677 fetch_pending_stop.
6678 * nat/windows-nat.h (fetch_pending_stop): Declare.
6679 * nat/windows-nat.c (fetch_pending_stop): New function.
6680
e758e19c
TT
66812020-04-08 Tom Tromey <tromey@adacore.com>
6682
6683 * windows-nat.c (windows_continue): Use matching_pending_stop and
6684 continue_last_debug_event.
6685 * nat/windows-nat.h (matching_pending_stop)
6686 (continue_last_debug_event): Declare.
6687 * nat/windows-nat.c (DEBUG_EVENTS): New define.
6688 (matching_pending_stop, continue_last_debug_event): New
6689 functions.
6690
8d30e395
TT
66912020-04-08 Tom Tromey <tromey@adacore.com>
6692
6693 * windows-nat.c (MS_VC_EXCEPTION): Move to nat/windows-nat.c.
6694 (handle_exception_result): Move to nat/windows-nat.h.
6695 (DEBUG_EXCEPTION_SIMPLE): Remove.
6696 (windows_nat::handle_ms_vc_exception): New function.
6697 (handle_exception): Move to nat/windows-nat.c.
6698 (get_windows_debug_event): Update.
6699 (STATUS_WX86_BREAKPOINT, STATUS_WX86_SINGLE_STEP): Move to
6700 nat/windows-nat.c.
6701 * nat/windows-nat.h (handle_ms_vc_exception): Declare.
6702 (handle_exception_result): Move from windows-nat.c.
6703 (handle_exception): Declare.
6704 * nat/windows-nat.c (MS_VC_EXCEPTION, handle_exception)
6705 (STATUS_WX86_SINGLE_STEP, STATUS_WX86_BREAKPOINT): Move from
6706 windows-nat.c.
6707
29de418d
TT
67082020-04-08 Tom Tromey <tromey@adacore.com>
6709
6710 * windows-nat.c (exception_count, event_count): Remove.
6711 (handle_exception, get_windows_debug_event)
6712 (do_initial_windows_stuff): Update.
6713
a816ba18
TT
67142020-04-08 Tom Tromey <tromey@adacore.com>
6715
6716 * windows-nat.c (windows_nat::handle_load_dll)
6717 (windows_nat::handle_unload_dll): Rename. No longer static.
6718 * nat/windows-nat.h (handle_load_dll, handle_unload_dll):
6719 Declare.
6720
a00caa12
TT
67212020-04-08 Tom Tromey <tromey@adacore.com>
6722
6723 * complaints.h (stop_whining): Declare at top-level.
6724 (complaint): Don't declare stop_whining.
6725
d41b524f
TT
67262020-04-08 Tom Tromey <tromey@adacore.com>
6727
6728 * windows-nat.c (windows_nat::handle_output_debug_string):
6729 Rename. No longer static.
6730 * nat/windows-nat.h (handle_output_debug_string): Declare.
6731
3c76026d
TT
67322020-04-08 Tom Tromey <tromey@adacore.com>
6733
6734 * windows-nat.c (current_process_handle, current_process_id)
6735 (main_thread_id, last_sig, current_event, last_wait_event)
6736 (current_windows_thread, desired_stop_thread_id, pending_stops)
6737 (struct pending_stop, siginfo_er): Move to nat/windows-nat.c.
6738 (display_selectors, fake_create_process)
6739 (get_windows_debug_event): Update.
6740 * nat/windows-nat.h (current_process_handle, current_process_id)
6741 (main_thread_id, last_sig, current_event, last_wait_event)
6742 (current_windows_thread, desired_stop_thread_id, pending_stops)
6743 (struct pending_stop, siginfo_er): Move from windows-nat.c.
6744 * nat/windows-nat.c (current_process_handle, current_process_id)
6745 (main_thread_id, last_sig, current_event, last_wait_event)
6746 (current_windows_thread, desired_stop_thread_id, pending_stops)
6747 (siginfo_er): New globals. Move from windows-nat.c.
6748
9d8679cc
TT
67492020-04-08 Tom Tromey <tromey@adacore.com>
6750
6751 * windows-nat.c (get_image_name): Move to nat/windows-nat.c.
6752 (handle_load_dll): Update.
6753 * nat/windows-nat.c (get_image_name): Move from windows-nat.c.
6754
28688adf
TT
67552020-04-08 Tom Tromey <tromey@adacore.com>
6756
6757 * windows-nat.c (enum thread_disposition_type): Move to
6758 nat/windows-nat.h.
6759 (windows_nat::thread_rec): Rename from thread_rec. No longer
6760 static.
6761 (windows_add_thread, windows_nat_target::fetch_registers)
6762 (windows_nat_target::store_registers, handle_exception)
6763 (windows_nat_target::resume, get_windows_debug_event)
6764 (windows_nat_target::get_tib_address)
6765 (windows_nat_target::thread_name)
6766 (windows_nat_target::thread_alive): Update.
6767 * nat/windows-nat.h (enum thread_disposition_type): Move from
6768 windows-nat.c.
6769 (thread_rec): Declare.
6770
4834dad0
TT
67712020-04-08 Tom Tromey <tromey@adacore.com>
6772
6773 * windows-nat.c: Add "using namespace".
6774 * nat/windows-nat.h: Wrap contents in windows_nat namespace.
6775 * nat/windows-nat.c: Wrap contents in windows_nat namespace.
6776
65bafd5b
TT
67772020-04-08 Tom Tromey <tromey@adacore.com>
6778
6779 * nat/windows-nat.h (struct windows_thread_info): Declare
6780 destructor.
6781 * nat/windows-nat.c (~windows_thread_info): New.
6782
0a4afda3
TT
67832020-04-08 Tom Tromey <tromey@adacore.com>
6784
6785 PR gdb/22992
6786 * windows-nat.c (current_event): Update comment.
6787 (last_wait_event, desired_stop_thread_id): New globals.
6788 (struct pending_stop): New.
6789 (pending_stops): New global.
6790 (windows_nat_target) <stopped_by_sw_breakpoint>
6791 <supports_stopped_by_sw_breakpoint>: New methods.
6792 (windows_fetch_one_register): Add assertions. Adjust PC.
6793 (windows_continue): Handle pending stops. Suspend other threads
6794 when stepping. Use last_wait_event
6795 (wait_for_debug_event): New function.
6796 (get_windows_debug_event): Use wait_for_debug_event. Handle
6797 pending stops. Queue spurious stops.
6798 (windows_nat_target::wait): Set stopped_at_software_breakpoint.
6799 (windows_nat_target::kill): Use wait_for_debug_event.
6800 * nat/windows-nat.h (struct windows_thread_info)
6801 <stopped_at_software_breakpoint>: New field.
6802 * nat/windows-nat.c (windows_thread_info::resume): Clear
6803 stopped_at_software_breakpoint.
6804
8e61ebec
TT
68052020-04-08 Tom Tromey <tromey@adacore.com>
6806
6807 * windows-nat.c (enum thread_disposition_type): New.
6808 (thread_rec): Replace "get_context" parameter with "disposition";
6809 change type.
6810 (windows_add_thread, windows_nat_target::fetch_registers)
6811 (windows_nat_target::store_registers, handle_exception)
6812 (windows_nat_target::resume, get_windows_debug_event)
6813 (windows_nat_target::get_tib_address)
6814 (windows_nat_target::thread_name)
6815 (windows_nat_target::thread_alive): Update.
6816
98a03287
TT
68172020-04-08 Tom Tromey <tromey@adacore.com>
6818
6819 * windows-nat.c (thread_rec): Use windows_thread_info::suspend.
6820 (windows_continue): Use windows_continue::resume.
6821 * nat/windows-nat.h (struct windows_thread_info) <suspend,
6822 resume>: Declare new methods.
6823 * nat/windows-nat.c: New file.
6824 * configure.nat (NATDEPFILES): Add nat/windows-nat.o when needed.
6825
7c7411bc
TT
68262020-04-08 Tom Tromey <tromey@adacore.com>
6827
6828 * windows-nat.c (windows_add_thread, windows_delete_thread)
6829 (windows_nat_target::fetch_registers)
6830 (windows_nat_target::store_registers, fake_create_process)
6831 (windows_nat_target::resume, windows_nat_target::resume)
6832 (get_windows_debug_event, windows_nat_target::wait)
6833 (windows_nat_target::pid_to_str)
6834 (windows_nat_target::get_tib_address)
6835 (windows_nat_target::get_ada_task_ptid)
6836 (windows_nat_target::thread_name)
6837 (windows_nat_target::thread_alive): Use lwp, not tid.
6838
2950fdf7
TT
68392020-04-08 Tom Tromey <tromey@adacore.com>
6840
6841 * windows-nat.c (handle_exception)
6842 (windows_nat_target::thread_name): Update.
6843 * nat/windows-nat.h (windows_thread_info): Remove destructor.
6844 <name>: Now unique_xmalloc_ptr.
6845
62fe396b
TT
68462020-04-08 Tom Tromey <tromey@adacore.com>
6847
6848 * windows-nat.c (thread_rec)
6849 (windows_nat_target::fetch_registers): Update.
6850 * nat/windows-nat.h (struct windows_thread_info) <suspended>:
6851 Update comment.
6852 <debug_registers_changed, reload_context>: Now bool.
6853
e9534bd2
TT
68542020-04-08 Tom Tromey <tromey@adacore.com>
6855
6856 * windows-nat.c (windows_add_thread): Use new.
6857 (windows_init_thread_list, windows_delete_thread): Use delete.
6858 (get_windows_debug_event): Update.
6859 * nat/windows-nat.h (struct windows_thread_info): Add constructor,
6860 destructor, and initializers.
6861
ae1f8880
TT
68622020-04-08 Tom Tromey <tromey@adacore.com>
6863
6864 * windows-nat.c (struct windows_thread_info): Remove.
6865 * nat/windows-nat.h: New file.
6866
55a1e039
TT
68672020-04-08 Tom Tromey <tromey@adacore.com>
6868
6869 * windows-nat.c (struct windows_thread_info) <tid>: Rename from "id".
6870 (thread_rec, windows_add_thread, windows_delete_thread)
6871 (windows_continue): Update.
6872
93366324
TT
68732020-04-08 Tom Tromey <tromey@adacore.com>
6874
6875 * windows-nat.c (struct windows_thread_info): Remove typedef.
6876 (thread_head): Remove.
6877 (thread_list): New global.
6878 (thread_rec, windows_add_thread, windows_init_thread_list)
6879 (windows_delete_thread, windows_continue): Update.
6880
0f2265e2
SM
68812020-04-08 Simon Marchi <simon.marchi@polymtl.ca>
6882
6883 * windows-tdep.h (windows_init_abi): Add comment.
6884 (cygwin_init_abi): New declaration.
6885 * windows-tdep.c: Split signal enumeration in two, one for
6886 Windows and one for Cygwin.
6887 (windows_gdb_signal_to_target): Only deal with signal of the
6888 Windows OS ABI.
6889 (cygwin_gdb_signal_to_target): New function.
6890 (windows_init_abi): Rename to windows_init_abi_common, don't set
6891 gdb_signal_to_target gdbarch method. Add new new function with
6892 this name.
6893 (cygwin_init_abi): New function.
6894 * amd64-windows-tdep.c (amd64_windows_init_abi_common): Add
6895 comment. Don't call windows_init_abi.
6896 (amd64_windows_init_abi): Add comment, call windows_init_abi.
6897 (amd64_cygwin_init_abi): Add comment, call cygwin_init_abi.
6898 * i386-windows-tdep.c (i386_windows_init_abi): Rename to
6899 i386_windows_init_abi_common, don't call windows_init_abi. Add
6900 a new function of this name.
6901 (i386_cygwin_init_abi): New function.
6902 (_initialize_i386_windows_tdep): Bind i386_cygwin_init_abi to
6903 OS ABI Cygwin.
6904
3810f182
SM
69052020-04-08 Simon Marchi <simon.marchi@polymtl.ca>
6906
6907 * dwarf2/read.c (read_gdb_index_from_buffer): Remove objfile
6908 parameter.c.
6909 (dwarf2_read_gdb_index): Update.
6910
063f8e80
KR
69112020-04-07 Kamil Rytarowski <n54@gmx.com>
6912
6913 * nbsd-tdep.c: Include "objfiles.h".
6914 (nbsd_skip_solib_resolver): New.
6915 (nbsd_init_abi): Call set_gdbarch_skip_solib_resolver().
6916
85a9510c 69172020-04-07 Nitika Achra <Nitika.Achra@amd.com>
6918
6919 * dwarf2/loc.c (loclist_describe_location): Call the function decode_debug_loclists_
6920 addresses if DWARF version is 5 or more because DW_LLE_start* or DW_LLE_offset_pair
6921 with DW_LLE_base_addressx are being emitted in DWARFv5.
6922 Add the newly added kind DW_LOC_OFFSET_PAIR also.
6923 The length of location description is an unsigned ULEB integer in DWARFv5 instead of
6924 unsigned integer.
6925
9fc3eaae 69262020-04-07 Nitika Achra <Nitika.Achra@amd.com>
6927
6928 * dwarf2/loc.c (enum debug_loc_kind): Add a new kind DEBUG_LOC_OFFSET_PAIR.
6929 (dwarf2_find_location_expression): Call the function decode_debug_loclists_
6930 addresses if DWARF version is 5 or more. DW_LLE_start* or DW_LLE_offset_pair
6931 with DW_LLE_base_addressx are being emitted in DWARFv5 instead of DW_LLE_GNU*.
6932 Add applicable base address if the entry is DW_LLE_offset_pair from DWO.
6933 (decode_debug_loclists_addresses): Return DEBUG_LOC_OFFSET_PAIR instead of
6934 DEBUG_LOC_START_END in case of DW_LLE_offset_pair.
6935
6936
41144253 69372020-04-07 Nitika Achra <Nitika.Achra@amd.com>
6938
6939 * dwarf2/read.c (cu_debug_loc_section): Added the declaration for the function.
6940 (read_loclist_index): New function definition.
6941 (lookup_loclist_base): New function definition.
6942 (read_loclist_header): New function definition.
6943 (dwarf2_cu): Add loclist_base and loclist_header field.
6944 (dwarf2_locate_dwo_sections): Handle .debug_loclists.dwo section.
6945 (read_full_die_1): Read the value of DW_AT_loclists_base.
6946 (read_attribute_reprocess): Handle DW_FORM_loclistx.
6947 (read_attribute_value): Handle DW_FORM_loclistx.
6948 (skip_one_die): Handle DW_FORM_loclistx.
6949 (loclist_header): New structure declaration.
6950 * dwarf2/attribute.c (form_is_section_offset): Handle DW_FORM_loclistx.
6951
9f4e76a4
SM
69522020-04-07 Simon Marchi <simon.marchi@polymtl.ca>
6953
6954 * dwarf2/read.h (struct dwarf2_psymtab): Remove two-parameters
6955 constructor. Remove `addr` parameter from other constructor and
6956 add `per_cu` parameter.
6957 * dwarf2/read.c (create_partial_symtab): Update.
6958
25c11aca
TV
69592020-04-07 Tom de Vries <tdevries@suse.de>
6960
6961 PR symtab/25796
6962 * dwarf2/read.c (can_have_DW_AT_const_value_p): New function.
6963 (partial_die_info::fixup): Inherit has_const_value.
6964
5707e24b
TV
69652020-04-07 Tom de Vries <tdevries@suse.de>
6966
6967 * psymtab.c (maintenance_check_psymtabs): Skip static LOC_BLOCK
6968 symbols without address.
6969
05f00e22
KR
69702020-04-06 Kamil Rytarowski <n54@gmx.com>
6971
6972 * nbsd-nat.h (struct thread_info): Add forward declaration.
6973 (nbsd_nat_target::thread_alive): Add.
6974 (nbsd_nat_target::thread_name): Likewise.
6975 (nbsd_nat_target::update_thread_list): Likewise.
6976 (update_thread_list::post_attach): Likewise.
6977 (post_attach::pid_to_str): Likewise.
6978 * nbsd-nat.c: Include "gdbthread.h" and "inferior.h".
6979 (nbsd_thread_lister): Add.
6980 (nbsd_nat_target::thread_alive): Likewise.
6981 (nbsd_nat_target::thread_name): Likewise.
6982 (nbsd_add_threads): Likewise.
6983 (update_thread_list::post_attach): Likewise.
6984 (nbsd_nat_target::update_thread_list): Likewise.
6985 (post_attach::pid_to_str): Likewise.
6986
6ee448cc
TT
69872020-04-06 Tom Tromey <tromey@adacore.com>
6988
6989 * ada-valprint.c (print_variant_part): Extract the variant field.
6990 (print_field_values): Use the field as the outer value when
6991 recursing.
6992
dea34e8c
TT
69932020-04-06 Tom Tromey <tromey@adacore.com>
6994
6995 * sh-nbsd-tdep.c: Include nbsd-tdep.h.
6996 * ppc-nbsd-tdep.c: Include nbsd-tdep.h.
6997 * mips-nbsd-tdep.c (mipsnbsd_init_abi): Add missing ";".
6998 * arm-nbsd-tdep.c: Include nbsd-tdep.h.
6999 * hppa-nbsd-tdep.c: Include nbsd-tdep.h.
7000
93689ce9
TT
70012020-04-06 Tom Tromey <tromey@adacore.com>
7002
7003 * dwarf2/read.c (read_base_type) <DW_ATE_complex_float>: Handle
7004 TYPE_CODE_ERROR.
7005
79743962
KR
70062020-04-06 Kamil Rytarowski <n54@gmx.com>
7007
7008 * nbsd-tdep.c: Include "gdbarch.h".
7009 Define enum with NetBSD signal numbers.
7010 (nbsd_gdb_signal_from_target, nbsd_gdb_signal_to_target): New.
7011 * alpha-nbsd-tdep.c (alphanbsd_init_abi): Call nbsd_init_abi().
7012 * amd64-nbsd-tdep.c (amd64nbsd_init_abi): Likewise.
7013 * arm-nbsd-tdep.c (arm_netbsd_elf_init_abi): Likewise.
7014 * hppa-nbsd-tdep.c (hppanbsd_init_abi): Likewise.
7015 * i386-nbsd-tdep.c (i386nbsd_init_abi): Likewise.
7016 * mips-nbsd-tdep.c (nbsd_init_abi): Likewise.
7017 * ppc-nbsd-tdep.c (ppcnbsd_init_abi): Likewise.
7018 * sh-nbsd-tdep.c (shnbsd_init_abi): Likewise.
7019 * sparc-nbsd-tdep.c (sparc32nbsd_init_abi): Likewise.
7020 * sparc64-nbsd-tdep.c (sparc64nbsd_init_abi): Likewise.
7021 * vax-nbsd-tdep.c (vaxnbsd_elf_init_abi): Likewise.
7022
9e7c9a03
HD
70232020-04-03 Hannes Domani <ssbssa@yahoo.de>
7024
7025 PR gdb/25325
7026 * dwarf2/read.c (read_enumeration_type): Fix typed enum attributes.
7027
d9e49b61
TT
70282020-04-03 Tom Tromey <tromey@adacore.com>
7029
7030 * dwarf2/loc.c (disassemble_dwarf_expression) <DW_OP_const_type>:
7031 Read constant block.
7032
e0fc5c3f
SM
70332020-04-02 Simon Marchi <simon.marchi@polymtl.ca>
7034
7035 * gdb_bfd.h: Include gdbsupport/byte-vector.h.
7036 (gdb_bfd_get_full_section_contents): New declaration.
7037 * gdb_bfd.c (gdb_bfd_get_full_section_contents): New function.
7038 * windows-tdep.c (is_linked_with_cygwin_dll): Use
7039 gdb_bfd_get_full_section_contents.
7040
e2ff18a0
SM
70412020-04-02 Simon Marchi <simon.marchi@polymtl.ca>
7042
7043 * exec.c (build_section_table): Replace internal_error with
7044 gdb_assert.
7045 (section_table_xfer_memory_partial): Likewise.
7046 * mdebugread.c (parse_partial_symbols): Likewise.
7047 * psymtab.c (lookup_partial_symbol): Likewise.
7048 * utils.c (wrap_here): Likewise.
7049
0830d301
TT
70502020-04-02 Tom Tromey <tromey@adacore.com>
7051
7052 * f-lang.c (build_fortran_types): Use arch_type to initialize
7053 builtin_complex_s32 in the TYPE_CODE_ERROR case.
7054
e7da7f8f
TT
70552020-04-02 Tom Tromey <tromey@adacore.com>
7056
7057 * dwarf2/read.c (partial_die_info::read): Do not create a vector
7058 of attributes.
7059
c90d28ac
AB
70602020-04-02 Andrew Burgess <andrew.burgess@embecosm.com>
7061 Bernd Edlinger <bernd.edlinger@hotmail.de>
7062 Tom Tromey <tromey@adacore.com>
7063
7064 * buildsym.c (buildsym_compunit::record_line): Remove
7065 deduplication code.
7066
1aa98955
TV
70672020-04-02 Tom de Vries <tdevries@suse.de>
7068
7069 PR ada/24671
7070 * dwarf2/read.c (dw2_map_matching_symbols): Handle -readnow.
7071
d3214198
TV
70722020-04-02 Tom de Vries <tdevries@suse.de>
7073
7074 * dwarf2/read.c (dwarf2_gdb_index_functions,
7075 dwarf2_debug_names_functions): Init lookup_global_symbol_language with
7076 NULL.
7077 * psymtab.c (psym_lookup_global_symbol_language): New function.
7078 (psym_functions): Init psym_lookup_global_symbol_language with
7079 psym_lookup_global_symbol_language.
7080 * symfile-debug.c (debug_sym_quick_functions): Init
7081 lookup_global_symbol_language with NULL.
7082 * symfile.c (set_initial_language): Remove fixme comment.
7083 * symfile.h (struct quick_symbol_functions): Add
7084 lookup_global_symbol_language.
7085 * symtab.c (find_quick_global_symbol_language): New function.
7086 (find_main_name): Use find_quick_global_symbol_language.
7087
2836752f
SM
70882020-04-01 Simon Marchi <simon.marchi@polymtl.ca>
7089
7090 * windows-tdep.c (is_linked_with_cygwin_dll): Fix style.
7091
64dc2d4b
BE
70922020-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
7093
7094 * buildsym.c (record_line): Fix undefined behavior and preserve
7095 lines at eof.
7096
bbe3dc41
BE
70972020-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
7098
7099 * buildsym.c (record_line): Fix the resizing condition.
7100
6b4a335b
TT
71012020-04-01 Tom Tromey <tom@tromey.com>
7102
7103 * value.h (value_literal_complex): Add comment.
7104 * valops.c (value_literal_complex): Refer to value.h.
7105
3638a098
TT
71062020-04-01 Tom Tromey <tom@tromey.com>
7107
7108 * c-exp.y (FLOAT_KEYWORD, COMPLEX): New tokens.
7109 (scalar_type): New rule, from typebase.
7110 (typebase): Use scalar_type. Recognize complex types.
7111 (field_name): Handle FLOAT_KEYWORD.
7112 (ident_tokens): Add _Complex and __complex__.
7113
c34e8714
TT
71142020-04-01 Tom Tromey <tom@tromey.com>
7115
7116 PR exp/25299:
7117 * valarith.c (promotion_type, complex_binop): New functions.
7118 (scalar_binop): Handle complex numbers. Use promotion_type.
7119 (value_pos, value_neg, value_complement): Handle complex numbers.
7120
fa649bb7
TT
71212020-04-01 Tom Tromey <tom@tromey.com>
7122
7123 * c-exp.y (COMPLEX_INT, COMPLEX_FLOAT): New tokens.
7124 (exp) <COMPLEX_INT, COMPLEX_FLOAT>: New rules.
7125 (parse_number): Handle complex numbers.
7126
981c08ce
TT
71272020-04-01 Tom Tromey <tom@tromey.com>
7128
7129 * c-valprint.c (c_decorations): Change complex suffix to "i".
7130
4c99290d
TT
71312020-04-01 Tom Tromey <tom@tromey.com>
7132
7133 * valprint.c (generic_value_print_complex): Use accessors.
7134 * value.h (value_real_part, value_imaginary_part): Declare.
7135 * valops.c (value_real_part, value_imaginary_part): New
7136 functions.
7137 * value.c (creal_internal_fn, cimag_internal_fn): Use accessors.
7138
5b930b45
TT
71392020-04-01 Tom Tromey <tom@tromey.com>
7140
7141 * stabsread.c (rs6000_builtin_type, read_sun_floating_type)
7142 (read_range_type): Update.
7143 * mdebugread.c (basic_type): Update.
7144 * go-lang.c (build_go_types): Use init_complex_type.
7145 * gdbtypes.h (struct main_type) <complex_type>: New member.
7146 (init_complex_type): Update.
7147 (arch_complex_type): Don't declare.
7148 * gdbtypes.c (init_complex_type): Remove "objfile" parameter.
7149 Make name if none given. Use alloc_type_copy. Look for cached
7150 complex type.
7151 (arch_complex_type): Remove.
7152 (gdbtypes_post_init): Use init_complex_type.
7153 * f-lang.c (build_fortran_types): Use init_complex_type.
7154 * dwarf2/read.c (read_base_type): Update.
7155 * d-lang.c (build_d_types): Use init_complex_type.
7156 * ctfread.c (read_base_type): Update.
7157
53cccef1
TBA
71582020-04-01 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
7159
7160 * infrun.c (stop_all_threads): Update assertion, plus when
7161 stopping threads, take into account that we might be trying
7162 to stop an all-stop target.
7163 (stop_waiting): Call 'stop_all_threads' if there exists a
7164 non-stop target.
7165
a0714d30
TBA
71662020-04-01 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
7167
7168 * target.h (exists_non_stop_target): New function declaration.
7169 * target.c (exists_non_stop_target): New function.
7170
60e22c1e
HD
71712020-04-01 Hannes Domani <ssbssa@yahoo.de>
7172
7173 PR gdb/24789
7174 * eval.c (is_integral_or_integral_reference): New function.
7175 (evaluate_subexp_standard): Allow integer references in
7176 pointer arithmetic.
7177
e139a727
TBA
71782020-04-01 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
7179
7180 * remote.c (remote_target::remote_parse_stop_reply): Remove the
7181 check for no ptid in the stop reply when the target is non-stop.
7182
e0802d59
TT
71832020-04-01 Tom Tromey <tromey@adacore.com>
7184
7185 * symtab.h (class lookup_name_info) <lookup_name_info>: Change
7186 "name" parameter to rvalue reference. Initialize m_name_holder.
7187 <lookup_name_info>: New overloads.
7188 <name>: Return gdb::string_view.
7189 <c_str>: New method.
7190 <make_ignore_params>: Update.
7191 <search_name_hash>: Update.
7192 <language_lookup_name>: Return const char *.
7193 <m_name>: Change type.
7194 * symtab.c (demangle_for_lookup_info::demangle_for_lookup_info)
7195 (demangle_for_lookup_info::demangle_for_lookup_info): Update.
7196 (lookup_name_info::match_any): Update.
7197 * psymtab.c (match_partial_symbol, lookup_partial_symbol):
7198 Update.
7199 * minsyms.c (linkage_name_str): Update.
7200 * language.c (default_symbol_name_matcher): Update.
7201 * dwarf2/read.c (mapped_index_base::find_name_components_bounds):
7202 Update.
7203 * ada-lang.c (ada_fold_name): Change parameter to string_view.
7204 (ada_lookup_name_info::ada_lookup_name_info): Update.
7205 (literal_symbol_name_matcher): Update.
7206
8c072cb6
TT
72072020-04-01 Tom Tromey <tromey@adacore.com>
7208
7209 * psymtab.c (psymtab_search_name): Remove function.
7210 (psym_lookup_symbol): Create search name and lookup name here.
7211 (lookup_partial_symbol): Remove "name" parameter; add
7212 lookup_name.
7213 (psym_expand_symtabs_for_function): Update.
7214
6f29a534
TT
72152020-03-31 Joel Jones <joelkevinjones@gmail.com>
7216
7217 PR tui/25597:
7218 * python/py-tui.c: Include gdb_curses.h inside of #ifdef TUI.
7219
af62665e
TT
72202020-03-31 Tom Tromey <tromey@adacore.com>
7221
7222 * dwarf2/abbrev.c (abbrev_table::read): Conditionally call
7223 memcpy.
7224
d1a89da5
NC
72252020-03-30 Nelson Chu <nelson.chu@sifive.com>
7226
7227 * features/riscv/32bit-csr.xml: Regenerated.
7228 * features/riscv/64bit-csr.xml: Regenerated.
7229
d8af9068
TT
72302020-03-30 Tom Tromey <tromey@adacore.com>
7231
7232 * ada-valprint.c (print_variant_part): Update.
7233 * ada-lang.h (ada_which_variant_applies): Update.
7234 * ada-lang.c (ada_which_variant_applies): Remove outer_type and
7235 outer_valaddr parameters; replace with "outer" value parameter.
7236 (to_fixed_variant_branch_type): Update.
7237
227c0bf4
PFC
72382020-03-30 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
7239
7240 * ppc-linux-nat.c: Include <algorithm>, <unordered_map>, and
7241 <list>. Remove inclusion of observable.h.
7242 (PPC_DEBUG_CURRENT_VERSION): Move up define.
7243 (struct arch_lwp_info): New struct.
7244 (class ppc_linux_dreg_interface): New class.
7245 (struct ppc_linux_process_info): New struct.
7246 (struct ppc_linux_nat_target) <low_delete_thread, low_new_fork>
7247 <low_new_clone, low_forget_process, low_prepare_to_resume>
7248 <copy_thread_dreg_state, mark_thread_stale>
7249 <mark_debug_registers_changed, register_hw_breakpoint>
7250 <clear_hw_breakpoint, register_wp, clear_wp>
7251 <can_use_watchpoint_cond_accel, calculate_dvc, check_condition>
7252 <num_memory_accesses, get_trigger_type>
7253 <create_watchpoint_request, hwdebug_point_cmp>
7254 <init_arch_lwp_info, get_arch_lwp_info>
7255 <low_stopped_by_watchpoint, low_stopped_data_address>: Declare as
7256 methods.
7257 <struct ptid_hash>: New inner struct.
7258 <m_dreg_interface, m_process_info, m_installed_hw_bps>: Declare
7259 members.
7260 (saved_dabr_value, hwdebug_info, max_slots_number)
7261 (struct hw_break_tuple, struct thread_points, ppc_threads)
7262 (have_ptrace_hwdebug_interface)
7263 (hwdebug_find_thread_points_by_tid)
7264 (hwdebug_insert_point, hwdebug_remove_point): Remove.
7265 (ppc_linux_nat_target::can_use_hw_breakpoint): Use
7266 m_dreg_interface, remove call to PTRACE_SET_DEBUGREG.
7267 (ppc_linux_nat_target::region_ok_for_hw_watchpoint): Add comment,
7268 use m_dreg_interface.
7269 (hwdebug_point_cmp): Change to...
7270 (ppc_linux_nat_target::hwdebug_point_cmp): ...this method. Use
7271 reference arguments instead of pointers.
7272 (ppc_linux_nat_target::ranged_break_num_registers): Use
7273 m_dreg_interface.
7274 (ppc_linux_nat_target::insert_hw_breakpoint): Add comment, use
7275 m_dreg_interface. Call register_hw_breakpoint.
7276 (ppc_linux_nat_target::remove_hw_breakpoint): Add comment, use
7277 m_dreg_interface. Call clear_hw_breakpoint.
7278 (get_trigger_type): Change to...
7279 (ppc_linux_nat_target::get_trigger_type): ...this method. Add
7280 comment.
7281 (ppc_linux_nat_target::insert_mask_watchpoint): Update comment,
7282 use m_dreg_interface. Call register_hw_breakpoint.
7283 (ppc_linux_nat_target::remove_mask_watchpoint): Update comment,
7284 use m_dreg_interface. Call clear_hw_breakpoint.
7285 (can_use_watchpoint_cond_accel): Change to...
7286 (ppc_linux_nat_target::can_use_watchpoint_cond_accel): ...this
7287 method. Update comment, use m_dreg_interface and
7288 m_process_info.
7289 (calculate_dvc): Change to...
7290 (ppc_linux_nat_target::calculate_dvc): ...this method. Use
7291 m_dreg_interface.
7292 (num_memory_accesses): Change to...
7293 (ppc_linux_nat_target::num_memory_accesses): ...this method.
7294 (check_condition): Change to...
7295 (ppc_linux_nat_target::check_condition): ...this method.
7296 (ppc_linux_nat_target::can_accel_watchpoint_condition): Update
7297 comment, use m_dreg_interface.
7298 (create_watchpoint_request): Change to...
7299 (ppc_linux_nat_target::create_watchpoint_request): ...this
7300 method. Use m_dreg_interface.
7301 (ppc_linux_nat_target::insert_watchpoint): Add comment, use
7302 m_dreg_interface. Call register_hw_breakpoint or register_wp.
7303 (ppc_linux_nat_target::remove_watchpoint): Add comment, use
7304 m_dreg_interface. Call clear_hw_breakpoint or clear_wp.
7305 (ppc_linux_nat_target::low_forget_process)
7306 (ppc_linux_nat_target::low_new_fork)
7307 (ppc_linux_nat_target::low_new_clone)
7308 (ppc_linux_nat_target::low_delete_thread)
7309 (ppc_linux_nat_target::low_prepare_to_resume): New methods.
7310 (ppc_linux_nat_target::low_new_thread): Remove previous logic,
7311 only call mark_thread_stale.
7312 (ppc_linux_thread_exit): Remove.
7313 (ppc_linux_nat_target::stopped_data_address): Change to...
7314 (ppc_linux_nat_target::low_stopped_data_address): This. Add
7315 comment, use m_dreg_interface and m_thread_hw_breakpoints.
7316 (ppc_linux_nat_target::stopped_by_watchpoint): Change to...
7317 (ppc_linux_nat_target::stopped_by_watchpoint): This. Add
7318 comment. Call low_stopped_data_address.
7319 (ppc_linux_nat_target::watchpoint_addr_within_range): Use
7320 m_dreg_interface.
7321 (ppc_linux_nat_target::masked_watch_num_registers): Use
7322 m_dreg_interface.
7323 (ppc_linux_nat_target::copy_thread_dreg_state)
7324 (ppc_linux_nat_target::mark_thread_stale)
7325 (ppc_linux_nat_target::mark_debug_registers_changed)
7326 (ppc_linux_nat_target::register_hw_breakpoint)
7327 (ppc_linux_nat_target::clear_hw_breakpoint)
7328 (ppc_linux_nat_target::register_wp)
7329 (ppc_linux_nat_target::clear_wp)
7330 (ppc_linux_nat_target::init_arch_lwp_info)
7331 (ppc_linux_nat_target::get_arch_lwp_info): New methods.
7332 (_initialize_ppc_linux_nat): Remove observer callback.
7333
4db10d8f
PFC
73342020-03-30 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
7335
7336 * ppc-linux-nat.c (ppc_linux_nat_target::store_registers)
7337 (ppc_linux_nat_target::auxv_parse)
7338 (ppc_linux_nat_target::read_description)
7339 (supply_gregset, fill_gregset, supply_fpregset, fill_fpregset):
7340 Move up.
7341
1310c1b0
PFC
73422020-03-30 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
7343
7344 * linux-nat.h (low_new_clone): New method.
7345 * linux-nat.c (linux_handle_extended_wait): Call low_new_clone.
7346
69b037c3
SM
73472020-03-29 Simon Marchi <simon.marchi@polymtl.ca>
7348
7349 * dbxread.c (dbx_psymtab_to_symtab_1): Rename to...
7350 (dbx_expand_psymtab): ... this.
7351 (start_psymtab): Update.
7352 * mdebugread.c (psymtab_to_symtab_1): Rename to...
7353 (mdebug_expand_psymtab): ... this.
7354 (parse_partial_symbols): Update.
7355 (new_psymtab): Update.
7356 * xcoffread.c (xcoff_psymtab_to_symtab_1): Rename to...
7357 (xcoff_expand_psymtab): ... this.
7358 (xcoff_start_psymtab): Update.
7359
48993951
SM
73602020-03-29 Simon Marchi <simon.marchi@polymtl.ca>
7361
7362 * psympriv.h (partial_symtab) <read_dependencies>: Rename to...
7363 <expand_dependencies>: ... this.
7364 * psymtab.c (partial_symtab::read_dependencies): Rename to...
7365 (partial_symtab::expand_dependencies): ... this.
7366 * dwarf2/read.c (dwarf2_include_psymtab) <expand_psymtab>:
7367 Update.
7368 (dwarf2_psymtab::expand_psymtab): Update.
7369 * dbxread.c (dbx_psymtab_to_symtab_1): Update.
7370 * mdebugread.c (psymtab_to_symtab_1): Update.
7371 * xcoffread.c (xcoff_psymtab_to_symtab_1): Update.
7372
3ad83046
SM
73732020-03-29 Simon Marchi <simon.marchi@polymtl.ca>
7374
7375 * psympriv.h (discard_psymtab): Remove.
7376 * dbxread.c (dbx_end_psymtab): Update.
7377 * xcoffread.c (xcoff_end_psymtab): Update.
7378
4d1b9ab6
TT
73792020-03-28 Tom Tromey <tom@tromey.com>
7380
7381 * dwarf2/attribute.h (struct attribute) <form_is_constant>: Update
7382 comment.
7383
f1749218
TT
73842020-03-28 Tom Tromey <tom@tromey.com>
7385
7386 * dwarf2/read.c (read_attribute_reprocess): Fix formatting.
7387
ebea7626
HD
73882020-03-27 Hannes Domani <ssbssa@yahoo.de>
7389
7390 * windows-nat.c (windows_add_all_dlls): Fix system dll paths.
7391
a879b4d5
JB
73922020-03-26 John Baldwin <jhb@FreeBSD.org>
7393
7394 * fbsd-tdep.c (fbsd_print_auxv_entry): Handle AT_FREEBSD_BSDFLAGS.
7395
0826b30a
TT
73962020-03-26 Tom Tromey <tom@tromey.com>
7397
7398 * dwarf2/read.c (handle_data_member_location, dwarf2_add_field)
7399 (mark_common_block_symbol_computed, read_tag_string_type)
7400 (attr_to_dynamic_prop, read_subrange_type): Update.
7401 (dwarf2_get_ref_die_offset, dwarf2_get_attr_constant_value): Move
7402 to be methods on struct attribute.
7403 (skip_one_die, process_imported_unit_die, read_namespace_alias)
7404 (read_call_site_scope, partial_die_info::read)
7405 (partial_die_info::read, lookup_die_type, follow_die_ref):
7406 Update.
7407 * dwarf2/attribute.c (attribute::get_ref_die_offset): New method,
7408 from dwarf2_get_ref_die_offset.
7409 (attribute::constant_value): New method, from
7410 dwarf2_get_attr_constant_value.
7411 * dwarf2/attribute.h (struct attribute) <get_ref_die_offset>:
7412 Declare method.
7413 <constant_value>: New method.
7414
2b2558bf
TT
74152020-03-26 Tom Tromey <tom@tromey.com>
7416
7417 * dwarf2/read.c (dwarf_unit_type_name, dwarf_tag_name)
7418 (dwarf_attr_name, dwarf_form_name, dwarf_bool_name)
7419 (dwarf_type_encoding_name): Move to stringify.c.
7420 * Makefile.in (COMMON_SFILES): Add dwarf2/stringify.c.
7421 * dwarf2/stringify.c: New file.
7422 * dwarf2/stringify.h: New file.
7423
eeb64781
TT
74242020-03-26 Tom Tromey <tom@tromey.com>
7425
7426 * dwarf2/die.h (struct die_info) <addr_base, ranges_base>:
7427 Rewrite.
7428
a39fdb41
TT
74292020-03-26 Tom Tromey <tom@tromey.com>
7430
7431 * dwarf2/die.h (struct die_info) <addr_base, ranges_base>: New
7432 methods.
7433 * dwarf2/read.c (lookup_addr_base): Move to die.h.
7434 (lookup_ranges_base): Likewise.
7435 (read_cutu_die_from_dwo, read_full_die_1): Update.
7436
436c571c
TT
74372020-03-26 Tom Tromey <tom@tromey.com>
7438
7439 * dwarf2/read.c (read_import_statement, read_file_scope)
7440 (read_type_unit_scope, inherit_abstract_dies, read_func_scope)
7441 (read_lexical_block_scope, read_call_site_scope)
7442 (dwarf2_get_subprogram_pc_bounds, get_scope_pc_bounds)
7443 (handle_struct_member_die, process_structure_scope)
7444 (update_enumeration_type_from_children)
7445 (process_enumeration_scope, read_array_type, read_common_block)
7446 (read_namespace, read_module, read_subroutine_type): Update.
7447 (sibling_die): Remove.
7448
052c8bb8
TT
74492020-03-26 Tom Tromey <tom@tromey.com>
7450
7451 * dwarf2/read.c (lookup_addr_base, lookup_ranges_base)
7452 (build_type_psymtabs_reader, read_structure_type)
7453 (read_enumeration_type, read_full_die_1): Update.
7454 (dwarf2_attr_no_follow): Move to die.h.
7455 * dwarf2/die.h (struct die_info) <attr>: New method.
7456
2b24b6e4
TT
74572020-03-26 Tom Tromey <tom@tromey.com>
7458
7459 * dwarf2/read.c (struct dwarf2_cu) <base_known>: Remove.
7460 <base_address>: Now an optional.
7461 (dwarf2_find_base_address, dwarf2_rnglists_process)
7462 (dwarf2_ranges_process, fill_in_loclist_baton)
7463 (dwarf2_symbol_mark_computed): Update.
7464
c2d50fd0
TT
74652020-03-26 Tom Tromey <tom@tromey.com>
7466
7467 * dwarf2/read.c (struct die_info): Move to die.h.
7468 * dwarf2/die.h: New file.
7469
0df7ad3a
TT
74702020-03-26 Tom Tromey <tom@tromey.com>
7471
7472 * dwarf2/line-header.h (dwarf_decode_line_header): Declare.
7473 * dwarf2/read.c
7474 (dwarf2_statement_list_fits_in_line_number_section_complaint):
7475 Move to line-header.c.
7476 (read_checked_initial_length_and_offset, read_formatted_entries):
7477 Likewise.
7478 (dwarf_decode_line_header): Split into two.
7479 * dwarf2/line-header.c
7480 (dwarf2_statement_list_fits_in_line_number_section_complaint):
7481 Move from read.c.
7482 (read_checked_initial_length_and_offset, read_formatted_entries):
7483 Likewise.
7484 (dwarf_decode_line_header): New function, split from read.c.
7485
86c0bb4c
TT
74862020-03-26 Tom Tromey <tom@tromey.com>
7487
7488 * dwarf2/read.h (struct dwarf2_per_objfile) <read_line_string>:
7489 Declare method.
7490 * dwarf2/read.c (read_attribute_value): Update.
7491 (dwarf2_per_objfile::read_line_string): Rename from
7492 read_indirect_line_string.
7493 (read_formatted_entries): Update.
7494
2ef46c2f
TT
74952020-03-26 Tom Tromey <tom@tromey.com>
7496
7497 * dwarf2/macro.c (dwarf_decode_macro_bytes): Use objfile local
7498 variable.
7499
4f9c1eda
TT
75002020-03-26 Tom Tromey <tom@tromey.com>
7501
7502 * dwarf2/macro.h (dwarf_decode_macros): Make section parameter
7503 const.
7504 * dwarf2/macro.c (skip_form_bytes, skip_unknown_opcode)
7505 (dwarf_decode_macro_bytes, dwarf_decode_macros): Make section
7506 parameter const.
7507
5a0e026f
TT
75082020-03-26 Tom Tromey <tom@tromey.com>
7509
7510 * dwarf2/read.c (dwarf_decode_macros): Make "lh" const.
7511 * dwarf2/macro.h (dwarf_decode_macros): Constify "lh" parameter.
7512 * dwarf2/macro.c (macro_start_file): Constify "lh" parameter.
7513 (dwarf_decode_macro_bytes, dwarf_decode_macros): Likewise.
7514
8844c11b
TT
75152020-03-26 Tom Tromey <tom@tromey.com>
7516
7517 * dwarf2/line-header.h (struct line_header) <is_valid_file_index,
7518 file_names_size, file_full_name, file_file_name>: Use const.
7519 <file_name_at, file_names>: Add const overload.
7520 * dwarf2/line-header.c (line_header::file_file_name)
7521 (line_header::file_full_name): Update.
7522
c90ec28a
TT
75232020-03-26 Tom Tromey <tom@tromey.com>
7524
7525 * dwarf2/read.c (dwarf2_macro_malformed_definition_complaint)
7526 (macro_start_file, consume_improper_spaces)
7527 (parse_macro_definition, skip_form_bytes, skip_unknown_opcode)
7528 (dwarf_parse_macro_header, dwarf_decode_macro_bytes)
7529 (dwarf_decode_macros): Move to macro.c.
7530 * dwarf2/macro.c: New file.
7531 * dwarf2/macro.h: New file.
7532 * Makefile.in (COMMON_SFILES): Add dwarf2/macro.c.
7533
4f44ae6c
TT
75342020-03-26 Tom Tromey <tom@tromey.com>
7535
7536 * dwarf2/section.h (struct dwarf2_section_info) <read_string>: New
7537 method.
7538 * dwarf2/section.c: New method. From
7539 read_indirect_string_at_offset_from.
7540 * dwarf2/read.c (mapped_debug_names::namei_to_name): Update.
7541 (read_indirect_string_at_offset_from): Move to section.c.
7542 (read_indirect_string_at_offset): Rewrite.
7543 (read_indirect_line_string_at_offset): Remove.
7544 (read_indirect_string, read_indirect_line_string)
7545 (dwarf_decode_macro_bytes): Update.
7546
a0194fa8
TT
75472020-03-26 Tom Tromey <tom@tromey.com>
7548
7549 * dwarf2/section.h (struct dwarf2_section_info)
7550 <overload_complaint>: Declare.
7551 (dwarf2_section_buffer_overflow_complaint): Don't declare.
7552 * dwarf2/section.c (dwarf2_section_info::overflow_complaint):
7553 Rename from dwarf2_section_buffer_overflow_complaint.
7554 * dwarf2/read.c (skip_one_die, partial_die_info::read)
7555 (skip_form_bytes, dwarf_decode_macro_bytes): Update.
7556
3d27bbdb
TT
75572020-03-26 Tom Tromey <tom@tromey.com>
7558
7559 * dwarf2/section.h (dwarf2_section_buffer_overflow_complaint):
7560 Declare.
7561 * dwarf2/section.c (dwarf2_section_buffer_overflow_complaint):
7562 Move from read.c.
7563 * dwarf2/read.c (dwarf2_section_buffer_overflow_complaint): Move
7564 to section.c.
7565
9eac9650
TT
75662020-03-26 Tom Tromey <tom@tromey.com>
7567
7568 * dwarf2/read.c (dwarf_decode_macros): Split into two overloads.
7569
bf80d710
TT
75702020-03-26 Tom Tromey <tom@tromey.com>
7571
7572 * dwarf2/read.c (macro_start_file): Change "cu" parameter to
7573 "builder".
7574 (dwarf_decode_macro_bytes): Likewise. Add dwarf2_per_objfile
7575 parameter.
7576 (dwarf_decode_macros): Update.
7577
0314b390
TT
75782020-03-26 Tom Tromey <tom@tromey.com>
7579
7580 * dwarf2/read.c (read_attribute_value): Update.
7581 (read_indirect_string_from_dwz): Move to dwz.c; change into
7582 method.
7583 (dwarf_decode_macro_bytes): Update.
7584 * dwarf2/dwz.h (struct dwz_file) <read_string>: Declare method.
7585 * dwarf2/dwz.c: New file.
7586 * Makefile.in (COMMON_SFILES): Add dwz.c.
7587
9fda78b6
TT
75882020-03-26 Tom Tromey <tom@tromey.com>
7589
7590 * dwarf2/read.h (struct dwz_file): Move to dwz.h.
7591 * dwarf2/read.c: Add include.
7592 * dwarf2/index-write.c: Add include.
7593 * dwarf2/index-cache.c: Add include.
7594 * dwarf2/dwz.h: New file.
7595
33aa3c10
TT
75962020-03-25 Tom Tromey <tom@tromey.com>
7597
7598 * compile/compile-object-load.c (get_out_value_type): Mention
7599 correct symbol name in error message.
7600
d503b685
HD
76012020-03-25 Hannes Domani <ssbssa@yahoo.de>
7602
7603 * windows-nat.c (windows_add_all_dlls): Fix system dll paths.
7604
7b1eff95
TV
76052020-03-25 Tom de Vries <tdevries@suse.de>
7606
7607 * symtab.h (is_main_symtab_of_compunit_symtab): New function.
7608 * symmisc.c (dump_symtab_1): Print user and includes fields.
7609 (maintenance_info_symtabs): Same.
7610
dd895392
AB
76112020-03-25 Andrew Burgess <andrew.burgess@embecosm.com>
7612
7613 PR gdb/25534
7614 * riscv-tdep.c (riscv_arg_info::c_offset): Update comment.
7615 (riscv_regcache_cooked_write): New function.
7616 (riscv_push_dummy_call): Use new function.
7617 (riscv_return_value): Likewise.
7618
5ab2fbf1
SM
76192020-03-24 Simon Marchi <simon.marchi@polymtl.ca>
7620
7621 * fbsd-nat.c (fbsd_nat_target::follow_fork): Change bool to int.
7622 * fbsd-nat.h (class fbsd_nat_target) <follow_fork>: Likewise.
7623 * inf-ptrace.c (inf_ptrace_target::follow_fork): Likewise.
7624 * inf-ptrace.h (struct inf_ptrace_target) <follow_fork>: Likewise.
7625 * infrun.c (follow_fork): Likewise.
7626 (follow_fork_inferior): Likewise.
7627 * linux-nat.c (linux_nat_target::follow_fork): Likewise.
7628 * linux-nat.h (class linux_nat_target): Likewise.
7629 * remote.c (class remote_target) <follow_fork>: Likewise.
7630 (remote_target::follow_fork): Likewise.
7631 * target-delegates.c: Re-generate.
7632 * target.c (default_follow_fork): Likewise.
7633 (target_follow_fork): Likewise.
7634 * target.h (struct target_ops) <follow_fork>: Likewise.
7635 (target_follow_fork): Likewise.
7636
a64fafb5
TV
76372020-03-24 Tom de Vries <tdevries@suse.de>
7638
7639 * psymtab.c (maintenance_info_psymtabs): Print user field.
7640
fe26d3a3
TT
76412020-03-20 Tom Tromey <tromey@adacore.com>
7642
7643 * dwarf2/loc.h (dwarf2_evaluate_property): Make "addr_stack"
7644 const.
7645 * dwarf2/loc.c (dwarf2_evaluate_property): Make "addr_stack"
7646 const.
7647
c884cc46
SM
76482020-03-20 Simon Marchi <simon.marchi@efficios.com>
7649
7650 * ptrace.m4: Don't check for ptrace declaration.
7651 * config.in: Re-generate.
7652 * configure: Re-generate.
7653 * nat/gdb_ptrace.h: Don't declare ptrace if HAVE_DECL_PTRACE is
7654 not defined.
7655
1ff700c2
KR
76562020-03-20 Kamil Rytarowski <n54@gmx.com>
7657
7658 * amd64-bsd-nat.c (gdb_ptrace): Change return type from `int' to
7659 `PTRACE_TYPE_RET'.
7660 * i386-bsd-nat.c (gdb_ptrace): Likewise.
7661 * sparc-nat.c (gdb_ptrace): Likewise.
7662 * x86-bsd-nat.c (gdb_ptrace): Likewise.
7663
f7d4f0b1
TT
76642020-03-20 Tom Tromey <tromey@adacore.com>
7665
7666 * c-exp.y (lex_one_token): Fix assert.
7667
f67210ff
TT
76682020-03-20 Tom Tromey <tromey@adacore.com>
7669
7670 * ada-tasks.c (read_atcb): Use smaller length in strncpy call.
7671 * linux-tdep.c (linux_fill_prpsinfo): Use smaller length in
7672 strncpy call.
7673
1773be9e
TT
76742020-03-20 Tom Tromey <tromey@adacore.com>
7675
7676 * symmisc.c (maintenance_print_one_line_table): Use ui_out.
7677
70304be9
TT
76782020-03-20 Tom Tromey <tromey@adacore.com>
7679
7680 * ada-valprint.c (print_variant_part): Remove parameters; switch
7681 to value-based API.
7682 (print_field_values): Likewise.
7683 (ada_val_print_struct_union): Likewise.
7684 (ada_value_print_1): Update.
7685
9faa006d
KR
76862020-03-20 Kamil Rytarowski <n54@gmx.com>
7687
7688 * ppc-nbsd-nat.c (ppc_nbsd_nat_target): Inherit from
7689 nbsd_nat_target instead of inf_ptrace_target.
7690 * ppc-nbsd-nat.c: Include "nbsd-nat.h", as we are now using
7691 nbsd_nat_target.
7692
4a90f062
KR
76932020-03-20 Kamil Rytarowski <n54@gmx.com>
7694
7695 * hppa-nbsd-nat.c (fetch_registers): New variable lwp and pass
7696 it to the ptrace call.
7697 * (store_registers): Likewise.
7698
76992020-03-20 Kamil Rytarowski <n54@gmx.com>
c7da12c7
KR
7700
7701 * ppc-nbsd-nat.c (fetch_registers): New variable lwp and pass
7702 it to the ptrace call.
7703 * (store_registers): Likewise.
7704
2d07da27
LM
77052020-03-19 Luis Machado <luis.machado@linaro.org>
7706
7707 * nat/aarch64-sve-linux-ptrace.c (aarch64_sve_set_vq): If vg is not
7708 valid, fetch vg value from ptrace.
7709
f09db380
KR
77102020-03-19 Kamil Rytarowski <n54@gmx.com>
7711 * inf-ptrace.h: Disable get_ptrace_pid on NetBSD.
7712 * inf-ptrace.c: Likewise.
7713 * (gdb_ptrace): Add.
7714 * (inf_ptrace_target::resume): Update.
7715 * (inf_ptrace_target::xfer_partial): Likewise.
7716 * (inf_ptrace_peek_poke): Change argument `pid' to `ptid'.
7717 * (inf_ptrace_peek_poke): Update.
7718
fcc7376e
KR
77192020-03-19 Kamil Rytarowski <n54@gmx.com>
7720
7721 * x86-bsd-nat.c (gdb_ptrace): New.
7722 * (x86bsd_dr_set): Add new argument `ptid'.
7723 * (x86bsd_dr_get, x86bsd_dr_set, x86bsd_dr_set_control,
7724 x86bsd_dr_set_addr): Update.
7725
cada5fc9
AB
77262020-03-19 Andrew Burgess <andrew.burgess@embecosm.com>
7727
7728 * remote.c (remote_target::process_stop_reply): Handle events for
7729 all threads differently.
7730
19a2740f
AB
77312020-03-19 Andrew Burgess <andrew.burgess@embecosm.com>
7732
7733 * completer.c (completion_tracker::remove_completion): Define new
7734 function.
7735 * completer.h (completion_tracker::remove_completion): Declare new
7736 function.
7737 * symtab.c (completion_list_add_symbol): Remove aliasing msymbols
7738 when adding a C++ function symbol.
7739
724fd9ba
AB
77402020-03-19 Andrew Burgess <andrew.burgess@embecosm.com>
7741
7742 * completer.c (completion_tracker::completion_hash_entry): Define
7743 new class.
7744 (advance_to_filename_complete_word_point): Call
7745 recompute_lowest_common_denominator.
7746 (completion_tracker::completion_tracker): Call discard_completions
7747 to setup the hash table.
7748 (completion_tracker::discard_completions): Allow for being called
7749 from the constructor, pass new equal function, and element deleter
7750 when constructing the hash table. Initialise new class member
7751 variables.
7752 (completion_tracker::maybe_add_completion): Remove use of
7753 m_entries_vec, and store more information into m_entries_hash.
7754 (completion_tracker::recompute_lcd_visitor): New function, most
7755 content taken from...
7756 (completion_tracker::recompute_lowest_common_denominator):
7757 ...here, this now just visits each item in the hash calling the
7758 above visitor.
7759 (completion_tracker::build_completion_result): Remove use of
7760 m_entries_vec, call recompute_lowest_common_denominator.
7761 * completer.h (completion_tracker::have_completions): Remove use
7762 of m_entries_vec.
7763 (completion_tracker::completion_hash_entry): Declare new class.
7764 (completion_tracker::recompute_lowest_common_denominator): Change
7765 function signature.
7766 (completion_tracker::recompute_lcd_visitor): Declare new function.
7767 (completion_tracker::m_entries_vec): Delete.
7768 (completion_tracker::m_entries_hash): Initialize to NULL.
7769 (completion_tracker::m_lowest_common_denominator_valid): New
7770 member variable.
7771 (completion_tracker::m_lowest_common_denominator_max_length): New
7772 member variable.
7773
5a82b8a1
KR
77742020-03-17 Kamil Rytarowski <n54@gmx.com>
7775
7776 * regformats/regdef.h: Put reg in gdb namespace.
7777
fb516a69
KR
77782020-03-17 Kamil Rytarowski <n54@gmx.com>
7779
7780 * i386-bsd-nat.c (gdb_ptrace): New.
7781 * (i386bsd_fetch_inferior_registers,
7782 i386bsd_store_inferior_registers) Switch from pid_t to ptid_t.
7783 * (i386bsd_fetch_inferior_registers,
7784 i386bsd_store_inferior_registers) Use gdb_ptrace.
7785
1c0aa1fb
KR
77862020-03-17 Kamil Rytarowski <n54@gmx.com>
7787
7788 * amd64-bsd-nat.c (gdb_ptrace): New.
7789 * (amd64bsd_fetch_inferior_registers,
7790 amd64bsd_store_inferior_registers) Switch from pid_t to ptid_t.
7791 * (amd64bsd_fetch_inferior_registers,
7792 amd64bsd_store_inferior_registers) Use gdb_ptrace.
7793
5ccd2fb7
KR
77942020-03-17 Kamil Rytarowski <n54@gmx.com>
7795
7796 * user-regs.c (user_reg::read): Rename to...
7797 (user_reg::xread): ...this.
7798 * (append_user_reg): Rename argument `read' to `xread'.
7799 * (user_reg_add_builtin): Likewise.
7800 * (user_reg_add): Likewise.
7801 * (value_of_user_reg): Likewise.
7802
2108a63a
KR
78032020-03-17 Kamil Rytarowski <n54@gmx.com>
7804
7805 * sparc-nat.c (gdb_ptrace): New.
7806 * sparc-nat.c (sparc_fetch_inferior_registers)
7807 (sparc_store_inferior_registers) Remove obsolete comment.
7808 * sparc-nat.c (sparc_fetch_inferior_registers)
7809 (sparc_store_inferior_registers) Switch from pid_t to ptid_t.
7810 * sparc-nat.c (sparc_fetch_inferior_registers)
7811 (sparc_store_inferior_registers) Use gdb_ptrace.
7812
a225c9a8
KR
78132020-03-17 Kamil Rytarowski <n54@gmx.com>
7814
7815 * sh-nbsd-nat.c (fetch_registers): New variable lwp and pass
7816 it to the ptrace call.
7817 * sh-nbsd-nat.c (store_registers): Likewise.
7818
98097623
KR
78192020-03-17 Kamil Rytarowski <n54@gmx.com>
7820
7821 * sh-nbsd-nat.c (sh_nbsd_nat_target): Inherit from
7822 nbsd_nat_target instead of inf_ptrace_target.
7823 * sh-nbsd-nat.c: Include "nbsd-nat.h", as we are now using
7824 nbsd_nat_target.
7825
9e38d619
KR
78262020-03-17 Kamil Rytarowski <n54@gmx.com>
7827
7828 * amd64-bsd-nat.c: Include amd64-bsd-nat.h".
7829
a2ecbe9f
KR
78302020-03-17 Kamil Rytarowski <n54@gmx.com>
7831
7832 * nbsd-nat.c: Include <sys/types.h>, <sys/ptrace.h> and
7833 <sys/sysctl.h>.
7834 * nbsd-nat.c (nbsd_nat_target::pid_to_exec_file): Rewrite.
7835
58990295
TV
78362020-03-17 Tom de Vries <tdevries@suse.de>
7837
7838 PR gdb/23710
7839 * dwarf2/read.h (struct dwarf2_per_cu_data): Add unit_type and lang
7840 fields.
7841 * dwarf2/read.c (process_psymtab_comp_unit): Initialize unit_type and lang
7842 fields.
7843 (process_imported_unit_die): Skip import of c++ CUs.
7844
771dd3a8
TT
78452020-03-16 Tom Tromey <tom@tromey.com>
7846
7847 * p-valprint.c (pascal_object_print_value): Initialize
7848 base_value.
7849
817a7585
AK
78502020-03-16 Anton Kolesov <anton.kolesov@synopsys.com>
7851 Shahab Vahedi <shahab@synopsys.com>
7852
7853 * Makefile.in: Add arch/arc.o
7854 * configure.tgt: Likewise.
7855 * arc-tdep.c (arc_tdesc_init): Use arc_read_description.
7856 (_initialize_arc_tdep): Don't initialize old target descriptions.
aac66a4c 7857 (arc_read_description): New function to cache target descriptions.
817a7585
AK
7858 * arc-tdep.h (arc_read_description): Add proto type.
7859 * arch/arc.c: New file.
7860 * arch/arc.h: Likewise.
7861 * features/Makefile: Replace old target descriptions with new.
7862 * features/arc-arcompact.c: Remove.
7863 * features/arc-arcompact.xml: Likewise.
7864 * features/arc-v2.c: Likewise
7865 * features/arc-v2.xml: Likewise
7866 * features/arc/aux-arcompact.xml: New file.
7867 * features/arc/aux-v2.xml: Likewise.
7868 * features/arc/core-arcompact.xml: Likewise.
7869 * features/arc/core-v2.xml: Likewise.
7870 * features/arc/aux-arcompact.c: Generate.
7871 * features/arc/aux-v2.c: Likewise.
7872 * features/arc/core-arcompact.c: Likewise.
7873 * features/arc/core-v2.c: Likewise.
7874 * target-descriptions (maint_print_c_tdesc_cmd): Support ARC features.
7875
67430cd0
TT
78762020-03-16 Tom Tromey <tromey@adacore.com>
7877
7878 PR gdb/25663:
7879 * dwarf2/read.c (dwarf2_name): Strip leading namespaces after
7880 putting value into bcache.
7881
30efb6c7
SM
78822020-03-16 Simon Marchi <simon.marchi@efficios.com>
7883
7884 PR gdb/21500
7885 * amd64-windows-tdep.c (amd64_windows_init_abi): Rename
7886 to...
7887 (amd64_windows_init_abi_common): ... this. Don't set size of
7888 long type.
7889 (amd64_windows_init_abi): New function.
7890 (amd64_cygwin_init_abi): New function.
7891 (_initialize_amd64_windows_tdep): Use amd64_cygwin_init_abi for
7892 the Cygwin OS ABI.
7893 * i386-windows-tdep.c (_initialize_i386_windows_tdep): Clarify
7894 comment.
7895
8db52437
SM
78962020-03-16 Simon Marchi <simon.marchi@efficios.com>
7897
7898 * windows-tdep.h (is_linked_with_cygwin_dll): New declaration.
7899 * windows-tdep.c (CYGWIN_DLL_NAME): New.
7900 (pe_import_directory_entry): New struct type.
7901 (is_linked_with_cygwin_dll): New function.
7902 * amd64-windows-tdep.c (amd64_windows_osabi_sniffer): Select
7903 GDB_OSABI_CYGWIN if the BFD is linked with the Cygwin DLL.
7904 * i386-windows-tdep.c (i386_windows_osabi_sniffer): Likewise.
7905
5982a56a
SM
79062020-03-16 Simon Marchi <simon.marchi@efficios.com>
7907
7908 * i386-windows-tdep.c: Mass-rename "cygwin" to "windows", except
7909 i386_cygwin_core_osabi_sniffer.
7910
7a1998df
SM
79112020-03-16 Simon Marchi <simon.marchi@efficios.com>
7912
7913 * i386-cygwin-tdep.c: Rename to...
7914 * i386-windows-tdep.c: ... this.
7915 * Makefile.in (ALL_TARGET_OBS): Rename i386-cygwin-tdep.c to
7916 i386-windows-tdep.c.
7917 * configure.tgt: Likewise.
7918
053205cc
SM
79192020-03-16 Simon Marchi <simon.marchi@efficios.com>
7920
7921 * osabi.h (enum gdb_osabi): Add GDB_OSABI_WINDOWS.
7922 * osabi.c (gdb_osabi_names): Add "Windows".
7923 * i386-cygwin-tdep.c (i386_cygwin_osabi_sniffer): Return
7924 GDB_OSABI_WINDOWS when the binary's target is "pei-i386".
7925 (i386_cygwin_core_osabi_sniffer): New function, extracted from
7926 i386_cygwin_osabi_sniffer.
7927 (_initialize_i386_cygwin_tdep): Register OS ABI
7928 GDB_OSABI_WINDOWS for i386.
7929 * amd64-windows-tdep.c (amd64_windows_osabi_sniffer): Return
7930 GDB_OSABI_WINDOWS when the binary's target is "pei-x86-64".
7931 (_initialize_amd64_windows_tdep): Register OS ABI GDB_OSABI_WINDOWS
7932 for x86-64.
7933 * configure.tgt: Use GDB_OSABI_WINDOWS as the default OS ABI
7934 when the target matches '*-*-mingw*'.
7935
fe4b2ee6
SM
79362020-03-16 Simon Marchi <simon.marchi@efficios.com>
7937
7938 * defs.h (enum gdb_osabi): Move to...
7939 * osabi.h (enum gdb_osabi): ... here.
7940 * gdbarch.sh: Include osabi.h in gdbarch.h.
7941 * gdbarch.h: Re-generate.
7942
cb9b645d
SM
79432020-03-16 Simon Marchi <simon.marchi@efficios.com>
7944
7945 * amd64-windows-tdep.c (amd64_windows_osabi_sniffer): New
7946 function.
7947 (_initialize_amd64_windows_tdep): Register osabi sniffer.
7948
3293bbaf
TT
79492020-03-14 Tom Tromey <tom@tromey.com>
7950
7951 * c-typeprint.c (cp_type_print_method_args): Print "__restrict__"
7952 for C++.
7953 (c_type_print_modifier): Likewise. Add "language" parameter.
7954 (c_type_print_varspec_prefix, c_type_print_base_struct_union)
7955 (c_type_print_base_1): Update.
7956 * type-stack.h (enum type_pieces) <tp_atomic, tp_restrict>: New
7957 constants.
7958 * type-stack.c (type_stack::insert): Handle tp_atomic and
7959 tp_restrict.
7960 (type_stack::follow_type_instance_flags): Likewise.
7961 (type_stack::follow_types): Likewise. Merge type-following code.
7962 * c-exp.y (RESTRICT, ATOMIC): New tokens.
7963 (space_identifier, cv_with_space_id)
7964 (const_or_volatile_or_space_identifier_noopt)
7965 (const_or_volatile_or_space_identifier): Remove.
7966 (single_qualifier, qualifier_seq_noopt, qualifier_seq): New
7967 rules.
7968 (ptr_operator, typebase): Update.
7969 (enum token_flag) <FLAG_C>: New constant.
7970 (ident_tokens): Add "restrict", "__restrict__", "__restrict", and
7971 "_Atomic".
7972 (lex_one_token): Handle FLAG_C.
7973
154151a6
KR
79742020-03-14 Kamil Rytarowski <n54@gmx.com>
7975
7976 * m68k-bsd-nat.c (fetch_registers): New variable lwp and pass
7977 it to the ptrace call.
7978 * m68k-bsd-nat.c (store_registers): Likewise.
7979
bc107784
KR
79802020-03-14 Kamil Rytarowski <n54@gmx.com>
7981
7982 * m68k-bsd-nat.c (m68kbsd_supply_gregset): Change type of regs to
7983 gdb_byte *.
7984 * m68k-bsd-nat.c (m68kbsd_supply_fpregset): Likewise.
7985 * m68k-bsd-nat.c (m68kbsd_collect_gregset): Likewise.
7986 * m68k-bsd-nat.c (m68kbsd_supply_pcb): Cast &tmp to gdb_byte *.
7987
01a80117
KR
79882020-03-14 Kamil Rytarowski <n54@gmx.com>
7989
7990 * m68k-bsd-nat.c (m68k_bsd_nat_target): Inherit from
7991 nbsd_nat_target instead of inf_ptrace_target.
7992 * m68k-bsd-nat.c: Include "nbsd-nat.h", as we are now using
7993 nbsd_nat_target.
7994
f90280ca
KR
79952020-03-14 Kamil Rytarowski <n54@gmx.com>
7996
7997 * m68k-bsd-nat.c: Define _KERNTYPES to get the declaration of
7998 register_t.
7999
6def66f1
KR
80002020-03-14 Kamil Rytarowski <n54@gmx.com>
8001
8002 * alpha-bsd-nat.c (fetch_registers): New variable lwp and pass
8003 it to the ptrace call.
8004 * alpha-bsd-nat.c (store_registers): Likewise.
8005
66eaca97
KR
80062020-03-14 Kamil Rytarowski <n54@gmx.com>
8007
8008 * alpha-bsd-nat.c: Remove <sys/procfs.h> and "gregset.h" from
8009 includes.
8010 * alpha-bsd-nat.c (gregset_t, fpregset_t): Remove.
8011 * alpha-bsd-nat.c (supply_gregset, fill_gregset, supply_fpregset,
8012 fill_fpregset): Likewise.
8013
4fed520b
KR
80142020-03-14 Kamil Rytarowski <n54@gmx.com>
8015
8016 * alpha-bsd-nat.c (alpha_netbsd_nat_target): Inherit from
8017 nbsd_nat_target instead of inf_ptrace_target.
8018 * alpha-bsd-nat.c: Include "nbsd-nat.h", as we are now using
8019 nbsd_nat_target.
8020
2190cf06
KR
80212020-03-14 Kamil Rytarowski <n54@gmx.com>
8022
8023 * alpha-bsd-nat.c: Define _KERNTYPES to get the declaration of
8024 register_t.
8025
75c56d3d
KR
80262020-03-14 Kamil Rytarowski <n54@gmx.com>
8027
8028 * arm-nbsd-nat.c (fetch_register): New variable lwp and pass
8029 it to the ptrace call.
8030 * arm-nbsd-nat.c (fetch_fp_register): Likewise.
8031 * arm-nbsd-nat.c (fetch_fp_regs): Likewise.
8032 * arm-nbsd-nat.c (store_register): Likewise.
8033 * arm-nbsd-nat.c (store_regs): Likewise.
8034 * arm-nbsd-nat.c (store_fp_register): Likewise.
8035 * arm-nbsd-nat.c (store_fp_regs): Likewise.
8036
6018d381
KR
80372020-03-14 Kamil Rytarowski <n54@gmx.com>
8038
8039 * arm-nbsd-nat.c (arm_netbsd_nat_target): Inherit from
8040 nbsd_nat_target instead of inf_ptrace_target.
8041 * arm-nbsd-nat.c: Include "nbsd-nat.h", as we are now using
8042 nbsd_nat_target.
8043
013f99f0
KR
80442020-03-14 Kamil Rytarowski <n54@gmx.com>
8045
8046 * x86-bsd-nat.c (x86bsd_dr_get): New variable lwp and pass
8047 it to the ptrace call.
8048 * x86-bsd-nat.c (x86bsd_dr_set): Likewise.
8049
12753073
KR
80502020-03-14 Kamil Rytarowski <n54@gmx.com>
8051
6227b330
KR
8052 * vax-bsd-nat.c (vaxbsd_supply_gregset): New variable lwp and pass
8053 it to the ptrace call.
8054 * vax-bsd-nat.c (vaxbsd_collect_gregset): Likewise.
8055
80562020-03-14 Kamil Rytarowski <n54@gmx.com>
8057
8058 * vax-bsd-nat.c (vaxbsd_supply_gregset): Cast gregs to const
8059 gdb_byte *.
12753073
KR
8060 * vax-bsd-nat.c (vaxbsd_collect_gregset): Cast gregs to void *.
8061
d5be5fa4
KR
80622020-03-14 Kamil Rytarowski <n54@gmx.com>
8063
8064 * vax-bsd-nat.c (vax_bsd_nat_target): Inherit from nbsd_nat_target
8065 instead of inf_ptrace_target.
8066 * vax-bsd-nat.c: Include "nbsd-nat.h", as we are now using
8067 nbsd_nat_target.
8068
8110f842
KR
80692020-03-14 Kamil Rytarowski <n54@gmx.com>
8070
8071 * mips-nbsd-nat.c: Define _KERNTYPES to get the declaration of
8072 register_t.
8073
52feded7
KR
80742020-03-14 Kamil Rytarowski <n54@gmx.com>
8075
8076 * ppc-nbsd-nat.c: Define _KERNTYPES to get the declaration of
8077 register_t.
8078
25567eee
KR
80792020-03-14 Kamil Rytarowski <n54@gmx.com>
8080
8081 * vax-bsd-nat.c: Define _KERNTYPES to get the declaration of
8082 register_t.
8083
426a9c18
TT
80842020-03-13 Tom Tromey <tom@tromey.com>
8085
8086 * value.h (val_print): Don't declare.
8087 * valprint.h (val_print_array_elements)
8088 (val_print_scalar_formatted, generic_val_print): Don't declare.
8089 * valprint.c (generic_val_print_array): Take a struct value.
8090 (generic_val_print_ptr, generic_val_print_memberptr)
8091 (generic_val_print_bool, generic_val_print_int)
8092 (generic_val_print_char, generic_val_print_complex)
8093 (generic_val_print): Remove.
8094 (generic_value_print): Update.
8095 (do_val_print): Remove unused parameters. Don't call
8096 la_val_print.
8097 (val_print): Remove.
8098 (common_val_print): Update. Don't call value_check_printable.
8099 (val_print_scalar_formatted, val_print_array_elements): Remove.
8100 * rust-lang.c (rust_val_print): Remove.
8101 (rust_language_defn): Update.
8102 * p-valprint.c (pascal_val_print): Remove.
8103 (pascal_value_print_inner): Update.
8104 (pascal_object_print_val_fields, pascal_object_print_val):
8105 Remove.
8106 (pascal_object_print_static_field): Update.
8107 * p-lang.h (pascal_val_print): Don't declare.
8108 * p-lang.c (pascal_language_defn): Update.
8109 * opencl-lang.c (opencl_language_defn): Update.
8110 * objc-lang.c (objc_language_defn): Update.
8111 * m2-valprint.c (m2_print_unbounded_array, m2_val_print): Remove.
8112 * m2-lang.h (m2_val_print): Don't declare.
8113 * m2-lang.c (m2_language_defn): Update.
8114 * language.h (struct language_defn) <la_val_print>: Remove.
8115 * language.c (unk_lang_value_print_inner): Rename. Change
8116 argument types.
8117 (unknown_language_defn, auto_language_defn): Update.
8118 * go-valprint.c (go_val_print): Remove.
8119 * go-lang.h (go_val_print): Don't declare.
8120 * go-lang.c (go_language_defn): Update.
8121 * f-valprint.c (f_val_print): Remove.
8122 * f-lang.h (f_value_print): Don't declare.
8123 * f-lang.c (f_language_defn): Update.
8124 * d-valprint.c (d_val_print): Remove.
8125 * d-lang.h (d_value_print): Don't declare.
8126 * d-lang.c (d_language_defn): Update.
8127 * cp-valprint.c (cp_print_value_fields)
8128 (cp_print_value_fields_rtti, cp_print_value): Remove.
8129 (cp_print_static_field): Update.
8130 * c-valprint.c (c_val_print_array, c_val_print_ptr)
8131 (c_val_print_struct, c_val_print_union, c_val_print_int)
8132 (c_val_print_memberptr, c_val_print): Remove.
8133 * c-lang.h (c_val_print_array, cp_print_value_fields)
8134 (cp_print_value_fields_rtti): Don't declare.
8135 * c-lang.c (c_language_defn, cplus_language_defn)
8136 (asm_language_defn, minimal_language_defn): Update.
8137 * ada-valprint.c (ada_val_print_ptr, ada_val_print_num): Remove.
8138 (ada_val_print_enum): Take a struct value.
8139 (ada_val_print_flt, ada_val_print_array, ada_val_print_1)
8140 (ada_val_print): Remove.
8141 (ada_value_print_1): Update.
8142 (printable_val_type): Remove.
8143 * ada-lang.h (ada_val_print): Don't declare.
8144 * ada-lang.c (ada_language_defn): Update.
8145
42331a1e
TT
81462020-03-13 Tom Tromey <tom@tromey.com>
8147
8148 * valprint.c (do_val_print): Update.
8149 * python/python-internal.h (gdbpy_apply_val_pretty_printer): Take
8150 a struct value.
8151 (value_to_value_object_no_release): Declare.
8152 * python/py-value.c (value_to_value_object_no_release): New
8153 function.
8154 * python/py-prettyprint.c (gdbpy_apply_val_pretty_printer): Take a
8155 struct value.
8156 * guile/scm-value.c (vlscm_scm_from_value_no_release): New
8157 function.
8158 * guile/scm-pretty-print.c (gdbscm_apply_val_pretty_printer): Take
8159 a struct value.
8160 * guile/guile-internal.h (vlscm_scm_from_value_no_release):
8161 Declare.
8162 (gdbscm_apply_val_pretty_printer): Take a struct value.
8163 * extension.h (apply_ext_lang_val_pretty_printer): Take a struct
8164 value.
8165 * extension.c (apply_ext_lang_val_pretty_printer): Take a struct
8166 value.
8167 * extension-priv.h (struct extension_language_ops)
8168 <apply_val_pretty_printer>: Take a struct value.
8169 * cp-valprint.c (cp_print_value): Create a struct value.
8170 (cp_print_value): Update.
8171
3a916a97
TT
81722020-03-13 Tom Tromey <tom@tromey.com>
8173
8174 * ada-valprint.c (print_field_values): Call common_val_print.
8175
b59eac37
TT
81762020-03-13 Tom Tromey <tom@tromey.com>
8177
8178 * ada-valprint.c (val_print_packed_array_elements): Remove
8179 bitoffset and val parameters. Call common_val_print.
8180 (ada_val_print_string): Remove offset, address, and original_value
8181 parameters.
8182 (ada_val_print_array): Update.
8183 (ada_value_print_array): New function.
8184 (ada_value_print_1): Call it.
8185
03371129
TT
81862020-03-13 Tom Tromey <tom@tromey.com>
8187
8188 * ada-valprint.c (ada_value_print): Use common_val_print.
8189
2e088f8b
TT
81902020-03-13 Tom Tromey <tom@tromey.com>
8191
8192 * ada-valprint.c (ada_val_print_ref): Use common_val_print.
8193
39ef85a8
TT
81942020-03-13 Tom Tromey <tom@tromey.com>
8195
8196 * ada-valprint.c (ada_value_print_num): New function.
8197 (ada_value_print_1): Use it.
8198
b9fa6e07
TT
81992020-03-13 Tom Tromey <tom@tromey.com>
8200
8201 * ada-valprint.c (ada_value_print_1) <TYPE_CODE_FLT>: Rewrite.
8202
416595d6
TT
82032020-03-13 Tom Tromey <tom@tromey.com>
8204
8205 * ada-valprint.c (ada_value_print_ptr): New function.
8206 (ada_value_print_1): Use it.
8207
5b5e15ec
TT
82082020-03-13 Tom Tromey <tom@tromey.com>
8209
8210 * ada-valprint.c (ada_val_print_gnat_array): Take a struct value;
8211 call common_val_print.
8212 (ada_val_print_1): Update.
8213 (ada_value_print_1): New function.
8214 (ada_value_print_inner): Rewrite.
8215
fbf54e75
TT
82162020-03-13 Tom Tromey <tom@tromey.com>
8217
8218 * cp-valprint.c (cp_print_value_fields): Update.
8219 (cp_print_value): New function.
8220
64b653ca
TT
82212020-03-13 Tom Tromey <tom@tromey.com>
8222
8223 * m2-valprint.c (m2_value_print_inner): Use
8224 cp_print_value_fields.
8225 * cp-valprint.c (cp_print_value_fields): New function.
8226 * c-valprint.c (c_value_print_struct): New function.
8227 (c_value_print_inner): Use c_value_print_struct.
8228 * c-lang.h (cp_print_value_fields): Declare.
8229
6999f067
TT
82302020-03-13 Tom Tromey <tom@tromey.com>
8231
8232 * c-valprint.c (c_value_print_array): New function.
8233 (c_value_print_inner): Use it.
8234
ce80b8bd
TT
82352020-03-13 Tom Tromey <tom@tromey.com>
8236
8237 * c-valprint.c (c_value_print_memberptr): New function.
8238 (c_value_print_inner): Use it.
8239
2faac269
TT
82402020-03-13 Tom Tromey <tom@tromey.com>
8241
8242 * c-valprint.c (c_value_print_int): New function.
8243 (c_value_print_inner): Use it.
8244
da3e2c29
TT
82452020-03-13 Tom Tromey <tom@tromey.com>
8246
8247 * c-valprint.c (c_value_print_ptr): New function.
8248 (c_value_print_inner): Use it.
8249
50836231
TT
82502020-03-13 Tom Tromey <tom@tromey.com>
8251
8252 * c-valprint.c (c_value_print_inner): Rewrite.
8253
4f412b6e
TT
82542020-03-13 Tom Tromey <tom@tromey.com>
8255
8256 * valprint.c (generic_value_print_complex): New function.
8257 (generic_value_print): Use it.
8258
f5354008
TT
82592020-03-13 Tom Tromey <tom@tromey.com>
8260
8261 * valprint.c (generic_val_print_float): Don't call
8262 val_print_scalar_formatted.
8263 (generic_val_print, generic_value_print): Update.
8264
3eec3b05
TT
82652020-03-13 Tom Tromey <tom@tromey.com>
8266
8267 * valprint.c (generic_value_print_char): New function
8268 (generic_value_print): Use it.
8269
fdddfccb
TT
82702020-03-13 Tom Tromey <tom@tromey.com>
8271
8272 * valprint.c (generic_value_print_int): New function.
8273 (generic_value_print): Use it.
8274
6dde7521
TT
82752020-03-13 Tom Tromey <tom@tromey.com>
8276
8277 * valprint.c (generic_value_print_bool): New function.
8278 (generic_value_print): Use it.
8279
4112d2e6
TT
82802020-03-13 Tom Tromey <tom@tromey.com>
8281
8282 * valprint.c (generic_val_print_func): Simplify.
8283 (generic_val_print, generic_value_print): Update.
8284
65786af6
TT
82852020-03-13 Tom Tromey <tom@tromey.com>
8286
8287 * valprint.c (generic_val_print_flags): Remove.
8288 (generic_val_print, generic_value_print): Update.
8289 (val_print_type_code_flags): Add original_value parameter.
8290
40f3ce18
TT
82912020-03-13 Tom Tromey <tom@tromey.com>
8292
8293 * valprint.c (generic_val_print): Update.
8294 (generic_value_print): Update.
8295 * valprint.c (generic_val_print_enum): Don't call
8296 val_print_scalar_formatted.
8297
2a5b130b
TT
82982020-03-13 Tom Tromey <tom@tromey.com>
8299
8300 * valprint.c (generic_value_print): Call generic_value_print_ptr.
8301 * valprint.c (generic_value_print_ptr): New function.
8302
abc66ce9
TT
83032020-03-13 Tom Tromey <tom@tromey.com>
8304
8305 * valprint.c (generic_value_print): Rewrite.
8306
07a32858
TT
83072020-03-13 Tom Tromey <tom@tromey.com>
8308
8309 * p-valprint.c (pascal_object_print_value_fields)
8310 (pascal_object_print_value): New functions.
8311
64d64d3a
TT
83122020-03-13 Tom Tromey <tom@tromey.com>
8313
8314 * p-valprint.c (pascal_value_print_inner): Rewrite.
8315
6a95a1f5
TT
83162020-03-13 Tom Tromey <tom@tromey.com>
8317
8318 * f-valprint.c (f_value_print_innner): Rewrite.
8319
59fcdac6
TT
83202020-03-13 Tom Tromey <tom@tromey.com>
8321
8322 * m2-valprint.c (m2_print_unbounded_array): New overload.
8323 (m2_print_unbounded_array): Update.
8324 (m2_print_array_contents): Take a struct value.
8325 (m2_value_print_inner): Rewrite.
8326
d133c3e1
TT
83272020-03-13 Tom Tromey <tom@tromey.com>
8328
8329 * d-valprint.c (dynamic_array_type): Call d_value_print_inner.
8330 (d_value_print_inner): New function.
8331 * d-lang.h (d_value_print_inner): Declare.
8332 * d-lang.c (d_language_defn): Use d_value_print_inner.
8333
23b0f06b
TT
83342020-03-13 Tom Tromey <tom@tromey.com>
8335
8336 * go-valprint.c (go_value_print_inner): New function.
8337 * go-lang.h (go_value_print_inner): Declare.
8338 * go-lang.c (go_language_defn): Use go_value_print_inner.
8339
5f56f7cb
TT
83402020-03-13 Tom Tromey <tom@tromey.com>
8341
8342 * rust-lang.c (val_print_struct, rust_print_enum): Use the value
8343 API.
8344 (rust_val_print): Rewrite.
8345 (rust_value_print_inner): New function, from rust_val_print.
8346 (rust_language_defn): Use rust_value_print_inner.
8347
26792ee0
TT
83482020-03-13 Tom Tromey <tom@tromey.com>
8349
8350 * ada-valprint.c (ada_value_print_inner): New function.
8351 * ada-lang.h (ada_value_print_inner): Declare.
8352 * ada-lang.c (ada_language_defn): Use ada_value_print_inner.
8353
24051bbe
TT
83542020-03-13 Tom Tromey <tom@tromey.com>
8355
8356 * f-valprint.c (f_value_print_innner): New function.
8357 * f-lang.h (f_value_print_innner): Declare.
8358 * f-lang.c (f_language_defn): Use f_value_print_innner.
8359
c0941be6
TT
83602020-03-13 Tom Tromey <tom@tromey.com>
8361
8362 * p-valprint.c (pascal_value_print_inner): New function.
8363 * p-lang.h (pascal_value_print_inner): Declare.
8364 * p-lang.c (pascal_language_defn): Use pascal_value_print_inner.
8365
62c4663d
TT
83662020-03-13 Tom Tromey <tom@tromey.com>
8367
8368 * m2-valprint.c (m2_value_print_inner): New function.
8369 * m2-lang.h (m2_value_print_inner): Declare.
8370 * m2-lang.c (m2_language_defn): Use m2_value_print_inner.
8371
62182190
TT
83722020-03-13 Tom Tromey <tom@tromey.com>
8373
8374 * opencl-lang.c (opencl_language_defn): Use c_value_print_inner.
8375 * objc-lang.c (objc_language_defn): Use c_value_print_inner.
8376 * c-valprint.c (c_value_print_inner): New function.
8377 * c-lang.h (c_value_print_inner): Declare.
8378 * c-lang.c (c_language_defn, cplus_language_defn)
8379 (asm_language_defn, minimal_language_defn): Use
8380 c_value_print_inner.
8381
1e592a8a
TT
83822020-03-13 Tom Tromey <tom@tromey.com>
8383
8384 * p-valprint.c (pascal_object_print_value_fields): Now static.
8385 * p-lang.h (pascal_object_print_value_fields): Don't declare.
8386
7fe471e9
TT
83872020-03-13 Tom Tromey <tom@tromey.com>
8388
8389 * c-valprint.c (c_val_print_array): Simplify.
8390
d121c6ce
TT
83912020-03-13 Tom Tromey <tom@tromey.com>
8392
8393 * valprint.c (value_print_array_elements): New function.
8394 * valprint.h (value_print_array_elements): Declare.
8395
4dba70ee
TT
83962020-03-13 Tom Tromey <tom@tromey.com>
8397
8398 * printcmd.c (print_formatted): Use value_print_scalar_formatted.
8399 * mips-tdep.c (mips_print_register): Use
8400 value_print_scalar_formatted.
8401
4f9ae810
TT
84022020-03-13 Tom Tromey <tom@tromey.com>
8403
8404 * valprint.h (value_print_scalar_formatted): Declare.
8405 * valprint.c (value_print_scalar_formatted): New function.
8406
156bfec9
TT
84072020-03-13 Tom Tromey <tom@tromey.com>
8408
8409 * valprint.h (generic_value_print): Declare.
8410 * valprint.c (generic_value_print): New function.
8411
2b4e573d
TT
84122020-03-13 Tom Tromey <tom@tromey.com>
8413
8414 * valprint.c (do_val_print): Call la_value_print_inner, if
8415 available.
8416 * rust-lang.c (rust_language_defn): Update.
8417 * p-lang.c (pascal_language_defn): Update.
8418 * opencl-lang.c (opencl_language_defn): Update.
8419 * objc-lang.c (objc_language_defn): Update.
8420 * m2-lang.c (m2_language_defn): Update.
8421 * language.h (struct language_defn) <la_value_print_inner>: New
8422 member.
8423 * language.c (unknown_language_defn, auto_language_defn): Update.
8424 * go-lang.c (go_language_defn): Update.
8425 * f-lang.c (f_language_defn): Update.
8426 * d-lang.c (d_language_defn): Update.
8427 * c-lang.c (c_language_defn, cplus_language_defn)
8428 (asm_language_defn, minimal_language_defn): Update.
8429 * ada-lang.c (ada_language_defn): Update.
8430
a1f6a07c
TT
84312020-03-13 Tom Tromey <tom@tromey.com>
8432
8433 * c-valprint.c (c_value_print): Use common_val_print.
8434
410cf315
TT
84352020-03-13 Tom Tromey <tom@tromey.com>
8436
8437 * cp-valprint.c (cp_print_static_field): Use common_val_print.
8438
72a45c93
TT
84392020-03-13 Tom Tromey <tom@tromey.com>
8440
8441 * f-valprint.c (f77_print_array_1, f_val_print): Use
8442 common_val_print.
8443
040f66bd
TT
84442020-03-13 Tom Tromey <tom@tromey.com>
8445
8446 * riscv-tdep.c (riscv_print_one_register_info): Use
8447 common_val_print.
8448
a6e05a6c
TT
84492020-03-13 Tom Tromey <tom@tromey.com>
8450
8451 * mi/mi-main.c (output_register): Use common_val_print.
8452
3444c526
TT
84532020-03-13 Tom Tromey <tom@tromey.com>
8454
8455 * infcmd.c (default_print_one_register_info): Use
8456 common_val_print.
8457
c2a44efe
TT
84582020-03-13 Tom Tromey <tom@tromey.com>
8459
8460 * valprint.h (common_val_print_checked): Declare.
8461 * valprint.c (common_val_print_checked): New function.
8462 * stack.c (print_frame_arg): Use common_val_print_checked.
8463
b0c26e99
TT
84642020-03-13 Tom Tromey <tom@tromey.com>
8465
8466 * valprint.c (do_val_print): New function, from val_print.
8467 (val_print): Use do_val_print.
8468 (common_val_print): Use do_val_print.
8469
ce3acbe9
TT
84702020-03-13 Tom Tromey <tom@tromey.com>
8471
8472 * valprint.c (value_print): Use scoped_value_mark.
8473
96c7f873
TV
84742020-03-13 Tom de Vries <tdevries@suse.de>
8475
8476 PR symtab/25646
8477 * psymtab.c (partial_symtab::partial_symtab): Don't set
8478 globals_offset and statics_offset. Push element onto
8479 current_global_psymbols and current_static_psymbols stacks.
8480 (concat): New function.
8481 (end_psymtab_common): Set globals_offset and statics_offset. Pop
8482 element from current_global_psymbols and current_static_psymbols
8483 stacks. Concat popped elements to global_psymbols and
8484 static_symbols.
8485 (add_psymbol_to_list): Use current_global_psymbols and
8486 current_static_psymbols stacks.
8487 * psymtab.h (class psymtab_storage): Add current_global_psymbols and
8488 current_static_psymbols fields.
8489
6ba0a321
CB
84902020-03-12 Christian Biesinger <cbiesinger@google.com>
8491
8492 * corelow.c (sniff_core_bfd): Remove.
8493 (class core_target) <m_core_vec>: Remove.
8494 (core_target::core_target): Update.
8495 (core_file_fns): Remove.
8496 (deprecated_add_core_fns): Remove.
8497 (default_core_sniffer): Remove.
8498 (sniff_core_bfd): Remove.
8499 (default_check_format): Remove.
8500 (gdb_check_format): Remove.
8501 (core_target_open): Update.
8502 (core_target::get_core_register_section): Update.
8503 (get_core_registers_cb): Update.
8504 (core_target::fetch_registers): Update.
8505 * gdbcore.h (struct core_fns): Remove.
8506 (deprecated_add_core_fns): Remove.
8507 (default_core_sniffer): Remove.
8508 (default_check_format): Remove.
8509
227031b2
TT
85102020-03-12 Tom Tromey <tom@tromey.com>
8511
8512 * arm-tdep.c (struct arm_mapping_symbol) <value>: Now a
8513 CORE_ADDR.
8514 (struct arm_exidx_entry) <addr>: Now a CORE_ADDR.
8515
53807e9f
TT
85162020-03-12 Tom Tromey <tom@tromey.com>
8517
8518 * remote.c (remote_target::download_tracepoint)
8519 (remote_target::enable_tracepoint)
8520 (remote_target::disable_tracepoint): Use phex, not sprintf_vma.
8521 * breakpoint.c (print_recreate_masked_watchpoint): Use phex, not
8522 sprintf_vma.
8523
64f25102
TT
85242020-03-12 Tom Tromey <tom@tromey.com>
8525
8526 * symfile-mem.c: Update CORE_ADDR size assert.
8527
272cd5a3
SM
85282020-03-12 Simon Marchi <simon.marchi@efficios.com>
8529
8530 * selftest.m4: Move to gdbsupport/.
8531 * acinclude.m4: Update path to selftest.m4.
8532
74cd3f9d
SM
85332020-03-12 Simon Marchi <simon.marchi@efficios.com>
8534
8535 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Rename to...
8536 (SELFTESTS_SRCS): ... this. Add disasm-selftests.c,
8537 gdbarch-selfselftests.c and selftest-arch.c.
8538 (SUBDIR_UNITTESTS_OBS): Rename to...
8539 (SELFTESTS_OBS): ... this.
8540 (COMMON_SFILES): Remove disasm-selftests.c and
8541 gdbarch-selftests.c.
8542 * configure.ac: Don't add selftest-arch.{c,o} to
8543 CONFIG_{SRCS,OBS}.
8544 * disasm-selftests.c, gdbarch-selftests.c: Remove GDB_SELF_TEST
8545 preprocessor conditions.
8546
db6878ac
SM
85472020-03-12 Simon Marchi <simon.marchi@efficios.com>
8548
8549 * configure.ac: Don't source bfd/development.sh.
8550 * selftest.m4: Modify comment.
8551 * configure: Re-generate.
8552
4d696a5c
SM
85532020-03-12 Simon Marchi <simon.marchi@efficios.com>
8554
8555 * selftest.m4 (GDB_AC_SELFTEST): Error out if $development is
8556 not "true" or "false".
8557 * configure: Re-generate.
8558
8dd8e1c7
CB
85592020-03-12 Christian Biesinger <cbiesinger@google.com>
8560
8561 * Makefile.in (HFILES_NO_SRCDIR): Add new arm-nbsd-tdep.h file.
8562 * arm-nbsd-nat.c (arm_supply_gregset): Moved to arm-nbsd-tdep and
8563 renamed to arm_nbsd_supply_gregset.
8564 (fetch_register): Update to call arm_nbsd_supply_gregset.
8565 (fetch_regs): Remove in favor of fetch_register with a -1 regno.
8566 (arm_netbsd_nat_target::fetch_registers): Update.
8567 (fetch_elfcore_registers): Removed.
8568 (_initialize_arm_netbsd_nat): Removed call to deprecated_add_core_fns.
8569 * arm-nbsd-tdep.c (struct arm_nbsd_reg): New struct.
8570 (arm_nbsd_supply_gregset): Moved from arm-nbsd-nat.c and updated to
8571 not require NetBSD system headers.
8572 (arm_nbsd_regset): New struct.
8573 (arm_nbsd_iterate_over_regset_sections): New function.
8574 (arm_netbsd_init_abi_common): Updated to call
8575 set_gdbarch_iterate_over_regset_sections.
8576 * arm-nbsd-tdep.h: New file.
8577
dd69bf7a
KB
85782020-03-11 Kevin Buettner <kevinb@redhat.com>
8579
8580 * symtab.c (find_pc_sect_line): Add check which prevents infinite
8581 recursion.
8582
a0761e34
SM
85832020-03-11 Simon Marchi <simon.marchi@efficios.com>
8584
8585 * configure: Re-generate.
8586
e7a82140
TT
85872020-03-11 Tom Tromey <tromey@adacore.com>
8588
8589 * ada-typeprint.c (print_choices): Fix comment.
8590
dcc050c8
AB
85912020-03-11 Andrew Burgess <andrew.burgess@embecosm.com>
8592
8593 * buildsyms.c (buildsym_compunit::record_line): Avoid accessing
8594 previous item in the list, when the list has no items.
8595
1c33af77
TV
85962020-03-11 Tom de Vries <tdevries@suse.de>
8597
8598 * dwarf2/loc.c (dwarf2_evaluate_property): Handle NULL frame in
8599 PROP_LOCLIST handling code.
8600
8c95582d
AB
86012020-03-10 Andrew Burgess <andrew.burgess@embecosm.com>
8602
8603 * buildsym-legacy.c (record_line): Pass extra parameter to
8604 record_line.
8605 * buildsym.c (buildsym_compunit::record_line): Take an extra
8606 parameter, reduce duplication in the line table, and record the
8607 is_stmt flag in the line table.
8608 * buildsym.h (buildsym_compunit::record_line): Add extra
8609 parameter.
8610 * disasm.c (do_mixed_source_and_assembly_deprecated): Ignore
8611 non-statement lines.
8612 * dwarf2/read.c (dwarf_record_line_1): Add extra parameter, pass
8613 this to the symtab builder.
8614 (dwarf_finish_line): Pass extra parameter to dwarf_record_line_1.
8615 (lnp_state_machine::record_line): Pass a suitable is_stmt flag
8616 through to dwarf_record_line_1.
8617 * infrun.c (process_event_stop_test): When stepping, don't stop at
8618 a non-statement instruction, and only refresh the step info when
8619 we land in the middle of a line's range. Also add an extra
8620 comment.
8621 * jit.c (jit_symtab_line_mapping_add_impl): Initialise is_stmt
8622 field.
8623 * record-btrace.c (btrace_find_line_range): Only record lines
8624 marked as is-statement.
8625 * stack.c (frame_show_address): Show the frame address if we are
8626 in a non-statement sal.
8627 * symmisc.c (dump_symtab_1): Print the is_stmt flag.
8628 (maintenance_print_one_line_table): Print a header for the is_stmt
8629 column, and include is_stmt information in the output.
8630 * symtab.c (find_pc_sect_line): Find lines marked as statements in
8631 preference to non-statements.
8632 (find_pcs_for_symtab_line): Prefer is-statement entries.
8633 (find_line_common): Likewise.
8634 * symtab.h (struct linetable_entry): Add is_stmt field.
8635 (struct symtab_and_line): Likewise.
8636 * xcoffread.c (arrange_linetable): Initialise is_stmt field when
8637 arranging the line table.
8638
e4003a34
TV
86392020-03-07 Tom de Vries <tdevries@suse.de>
8640
8641 * dwarf2/read.c (read_typedef): Treat anonymous typedef as forwarder
8642 DIE.
8643
e8932576
TT
86442020-03-07 Tom Tromey <tom@tromey.com>
8645
8646 * valops.c (value_literal_complex): Remove obsolete comment.
8647 * gdbtypes.h (enum type_code) <TYPE_CODE_FLT>: Remove obsolete
8648 comment.
8649
29734269
SM
86502020-03-06 Simon Marchi <simon.marchi@polymtl.ca>
8651
8652 * infrun.h: Forward-declare thread_info.
8653 (set_step_info): Add thread_info parameter, add doc.
8654 * infrun.c (set_step_info): Add thread_info parameter, move doc
8655 to header.
8656 * infrun.c (process_event_stop_test): Pass thread to
8657 set_step_info call.
8658 * infcmd.c (set_step_frame): Add thread_info pointer, pass it to
8659 set_step_info.
8660 (prepare_one_step): Add thread_info parameter, pass it to
8661 set_step_frame and prepare_one_step (recursive) call.
8662 (step_1): Pass thread to prepare_one_step call.
8663 (step_command_fsm::should_stop): Pass thread to
8664 prepare_one_step.
8665 (until_next_fsm): Pass thread to set_step_frame call.
8666 (finish_command): Pass thread to set_step_info call.
8667
b7d64b29
HD
86682020-03-06 Hannes Domani <ssbssa@yahoo.de>
8669
8670 * windows-tdep.c (windows_solib_create_inferior_hook):
8671 Check if inferior is running.
8672
09f2921c
TV
86732020-03-06 Tom de Vries <tdevries@suse.de>
8674
8675 * NEWS: Fix "the the".
8676 * ctfread.c: Same.
8677
fd760e79
TV
86782020-03-06 Tom de Vries <tdevries@suse.de>
8679
8680 * psymtab.c (psymtab_to_symtab): Don't print "done.".
8681
20ea4a60
AB
86822020-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
8683
8684 * .dir-locals.el: Add a comment referencing the other copies of
8685 this file.
8686
0afbabf0
JB
86872020-03-05 John Baldwin <jhb@FreeBSD.org>
8688
8689 * fbsd-tdep.c (fbsd_make_corefile_notes): Use std::string for
8690 psargs.
8691
842806cb
TBA
86922020-03-05 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
8693
8694 * .gitattributes: New file.
8695
be1e3d3e
TT
86962020-03-04 Tom Tromey <tom@tromey.com>
8697
8698 * symmisc.c (print_symbol_bcache_statistics)
8699 (print_objfile_statistics): Update.
8700 * symfile.c (allocate_symtab): Use intern.
8701 * psymtab.c (partial_symtab::partial_symtab): Use intern.
8702 * objfiles.h (struct objfile_per_bfd_storage) <filename_cache,
8703 macro_cache>: Remove.
8704 <string_cache>: New member.
8705 (struct objfile) <intern>: New methods.
8706 * elfread.c (elf_symtab_read): Use intern.
8707 * dwarf2/read.c (fixup_go_packaging): Intern package name.
8708 (dwarf2_compute_name, dwarf2_physname)
8709 (create_dwo_unit_in_dwp_v1, create_dwo_unit_in_dwp_v2): Intern
8710 names.
8711 (guess_partial_die_structure_name): Update.
8712 (partial_die_info::fixup): Intern name.
8713 (dwarf2_canonicalize_name): Change parameter to objfile. Intern
8714 name.
8715 (dwarf2_name): Intern name. Update.
8716 * buildsym.c (buildsym_compunit::get_macro_table): Use
8717 string_cache.
8718
4e7625fd
TT
87192020-03-04 Tom Tromey <tom@tromey.com>
8720
8721 * jit.c (bfd_open_from_target_memory): Make "target" const.
8722 * corefile.c (gnutarget): Now const.
8723 * gdbcore.h (gnutarget): Now const.
8724
46f9f931
HD
87252020-03-04 Hannes Domani <ssbssa@yahoo.de>
8726
8727 * NEWS: Mention support for WOW64 processes.
8728 * amd64-windows-nat.c (amd64_mappings): Rename and remove static.
8729 (amd64_windows_segment_register_p): Remove static.
8730 (_initialize_amd64_windows_nat): Update.
8731 * configure.nat <windows> (NATDEPFILES): Add i386-windows-nat.o.
8732 * i386-windows-nat.c (context_offset): Update.
8733 (i386_mappings): Rename and remove static.
8734 (i386_windows_segment_register_p): Remove static.
8735 (_initialize_i386_windows_nat): Update.
8736 * windows-nat.c (STATUS_WX86_BREAKPOINT): New macro.
8737 (STATUS_WX86_SINGLE_STEP): New macro.
8738 (EnumProcessModulesEx): New macro.
8739 (Wow64SuspendThread): New macro.
8740 (Wow64GetThreadContext): New macro.
8741 (Wow64SetThreadContext): New macro.
8742 (Wow64GetThreadSelectorEntry): New macro.
8743 (windows_set_context_register_offsets): Add static.
8744 (windows_set_segment_register_p): Likewise.
8745 (windows_add_thread): Adapt for WOW64 processes.
8746 (windows_fetch_one_register): Likewise.
8747 (windows_nat_target::fetch_registers): Likewise.
8748 (windows_store_one_register): Likewise.
8749 (display_selector): Likewise.
8750 (display_selectors): Likewise.
8751 (handle_exception): Likewise.
8752 (windows_continue): Likewise.
8753 (windows_nat_target::resume): Likewise.
8754 (windows_add_all_dlls): Likewise.
8755 (do_initial_windows_stuff): Likewise.
8756 (windows_nat_target::attach): Likewise.
8757 (windows_get_exec_module_filename): Likewise.
8758 (windows_nat_target::create_inferior): Likewise.
8759 (windows_xfer_siginfo): Likewise.
8760 (_initialize_loadable): Initialize Wow64SuspendThread,
8761 Wow64GetThreadContext, Wow64SetThreadContext,
8762 Wow64GetThreadSelectorEntry and EnumProcessModulesEx.
8763 * windows-nat.h (windows_set_context_register_offsets):
8764 Remove declaration.
8765 (windows_set_segment_register_p): Likewise.
8766 (i386_windows_segment_register_p): Add declaration.
8767 (amd64_windows_segment_register_p): Likewise.
8768
440cf44e
LM
87692020-03-04 Luis Machado <luis.machado@linaro.org>
8770
8771 Revert aa66aac47b4dd38f9524ddb5546c08cc09930d37 due to regressions
8772 in "info registers" for AArch64/ARM.
8773
8774 The change caused "info registers" to not print GPR's.
8775
8776 gdb/ChangeLog:
8777
8778 2020-02-01 Shahab Vahedi <shahab@synopsys.com>
8779
8780 * target-descriptions.c (tdesc_register_in_reggroup_p): Return 0
8781 when reg->group is empty and reggroup is not.
8782
1009d92f
TT
87832020-03-03 Tom Tromey <tromey@adacore.com>
8784
8785 * dwarf2/frame.c (struct dwarf2_frame_cache)
8786 <checked_tailcall_bottom, entry_cfa_sp_offset,
8787 entry_cfa_sp_offset_p>: Remove members.
8788 (dwarf2_frame_cache): Call dwarf2_tailcall_sniffer_first.
8789 (dwarf2_frame_prev_register): Don't call
8790 dwarf2_tailcall_sniffer_first.
8791 (dwarf2_append_unwinders): Don't append tailcall unwinder.
8792 * frame-unwind.c (add_unwinder): New fuction.
8793 (frame_unwind_init): Use it. Add tailcall unwinder.
8794
5e5d66b6
AB
87952020-03-03 Andrew Burgess <andrew.burgess@embecosm.com>
8796 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
8797
8798 * f-valprint.c (f_val_print): Handle TYPE_CODE_BOOL, any non-zero
8799 value should be printed as true.
8800
584cf46d
HD
88012020-03-03 Hannes Domani <ssbssa@yahoo.de>
8802
8803 * windows-tdep.c (windows_solib_create_inferior_hook): New function.
8804 (windows_init_abi): Set and use windows_so_ops.
8805
7b973adc
SDJ
88062020-03-03 Sergio Durigan Junior <sergiodj@redhat.com>
8807
8808 * printcmd.c (print_c_string): Check also for TYPE_CODE_PTR
8809 when verifying if dealing with a convenience variable.
8810
bb7b70ab
LM
88112020-03-03 Luis Machado <luis.machado@linaro.org>
8812
8813 * auxv.c (default_print_auxv_entry): Add new AUXV entries.
8814
9822cb57
SM
88152020-03-02 Simon Marchi <simon.marchi@polymtl.ca>
8816
8817 * infrun.c (gdbarch_supports_displaced_stepping): New.
8818 (use_displaced_stepping): Break up conditions in smaller pieces.
8819 Use gdbarch_supports_displaced_stepping.
8820 (displaced_step_prepare_throw): Use
8821 gdbarch_supports_displaced_stepping.
8822
63e163f2
AB
88232020-03-02 Andrew Burgess <andrew.burgess@embecosm.com>
8824
8825 * NEWS: Mention new behaviour of the history filename.
8826 * top.c (write_history_p): Add comment.
8827 (show_write_history_p): Add header comment, give a different
8828 message when history writing is on, but the history filename is
8829 empty.
8830 (history_filename): Add comment.
8831 (history_filename_empty): New function.
8832 (show_history_filename): Add header comment, give a different
8833 message when the filename is empty.
8834 (init_history): Compare history_filename against nullptr, and only
8835 read history if the filename is not empty.
8836 (set_history_filename): Add header comment, and only make
8837 non-empty filenames absolute.
8838 (init_main): Make the filename argument to 'set history filename'
8839 optional.
8840
81b86b97
CB
88412020-03-02 Christian Biesinger <cbiesinger@google.com>
8842
8843 * arm-nbsd-nat.c (arm_supply_fparegset): Rename to...
8844 (arm_supply_vfpregset): ...this, and update to use VFP registers.
8845 (fetch_fp_register): Update.
8846 (fetch_fp_regs): Update.
8847 (store_fp_register): Update.
8848 (store_fp_regs): Update.
8849 (arm_netbsd_nat_target::read_description): New function.
8850 (fetch_elfcore_registers): Update.
8851
24ed6739
AB
88522020-03-02 Andrew Burgess <andrew.burgess@embecosm.com>
8853
8854 * remote.c (remote_target::remote_parse_stop_reply): Don't use the
8855 general_thread if the stop reply is missing a thread-id.
8856 (remote_target::process_stop_reply): Use the first non-exited
8857 thread if the target didn't pass a thread-id.
8858 * infrun.c (do_target_wait): Move call to
8859 switch_to_inferior_no_thread to ....
8860 (do_target_wait_1): ... here.
8861
a84bb2a0
JT
88622020-02-29 Jon Turney <jon.turney@dronecode.org.uk>
8863
8864 * debuginfod-support.c: Include defs.h first.
8865
658dadf0
TV
88662020-02-28 Tom de Vries <tdevries@suse.de>
8867
8868 * symfile.c (set_initial_language): Use default language for lookup.
8869
4ebe4877
SM
88702020-02-28 Simon Marchi <simon.marchi@efficios.com>
8871
8872 * dwarf2/read.c (cutu_reader::init_tu_and_read_dwo_dies): Remove
8873 reader variable, pass `this` to read_cutu_die_from_dwo.
8874
e5da1139
AM
88752020-02-27 Aaron Merey <amerey@redhat.com>
8876
8877 * source.c (open_source_file): Check for nullptr when computing
8878 srcpath.
8879
317f7127
TT
88802020-02-27 Tom Tromey <tromey@adacore.com>
8881
8882 * dwarf2/read.c (struct field_info) <nfields>: Now a method, not a
8883 member.
8884 (dwarf2_add_field): Don't update nfields.
8885 (dwarf2_attach_fields_to_type, process_structure_scope): Update.
8886
3104d9ee
AB
88872020-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
8888
8889 * gdbtypes.c (create_array_type_with_stride): Use std::abs not
8890 abs.
8891
b83470bf
TT
88922020-02-26 Tom Tromey <tom@tromey.com>
8893
8894 * dwarf2/read.c (struct dwarf2_include_psymtab): New.
8895 (dwarf2_create_include_psymtab): Use dwarf2_include_psymtab.
8896 (dwarf2_psymtab::expand_psymtab, dwarf2_psymtab::readin_p)
8897 (dwarf2_psymtab::get_compunit_symtab): Remove null checks for
8898 per_cu_data.
8899
edfe0a0c
TT
89002020-02-26 Tom Tromey <tom@tromey.com>
8901
8902 * dwarf2/index-write.c (psym_index_map): Change type.
8903 (add_address_entry_worker, write_one_signatured_type)
8904 (recursively_count_psymbols, recursively_write_psymbols)
8905 (class debug_names, psyms_seen_size, write_gdbindex)
8906 (write_debug_names): Use partial_symtab, not dwarf2_psymtab.
8907
0d79cdc4
AM
89082020-02-26 Aaron Merey <amerey@redhat.com>
8909
8910 * Makefile.in: Handle optional debuginfod support.
8911 * NEWS: Update.
8912 * README: Add --with-debuginfod summary.
8913 * config.in: Regenerate.
8914 * configure: Regenerate.
8915 * configure.ac: Handle optional debuginfod support.
8916 * debuginfod-support.c: debuginfod helper functions.
8917 * debuginfod-support.h: Ditto.
8918 * doc/gdb.texinfo: Add --with-debuginfod to configure options
8919 summary.
8920 * dwarf2/read.c (dwarf2_get_dwz_file): Query debuginfod servers
8921 when a dwz file cannot be found.
8922 * elfread.c (elf_symfile_read): Query debuginfod servers when a
8923 debuginfo file cannot be found.
8924 * source.c (open_source_file): Query debuginfod servers when a
8925 source file cannot be found.
8926 * top.c (print_gdb_configuration): Include
8927 --{with,without}-debuginfod in the output.
8928
b65ce565
JG
89292020-02-26 Jérémie Galarneau <jeremie.galarneau@efficios.com>
8930
8931 * thread.c (thr_try_catch_cmd): Print thread name.
8932
d4c9a4f8
SM
89332020-02-26 Simon Marchi <simon.marchi@efficios.com>
8934
8935 * dwarf2/loc.h (dwarf2_fetch_die_loc_sect_off,
8936 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
8937 dwarf2_fetch_die_type_sect_off): Move to...
8938 * dwarf2/read.h (dwarf2_fetch_die_loc_sect_off,
8939 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
8940 dwarf2_fetch_die_type_sect_off): ... here.
8941 * dwarf2/read.c (dwarf2_fetch_die_loc_sect_off,
8942 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
8943 dwarf2_fetch_die_type_sect_off): Move doc to header file.
8944
0dce4280
TV
89452020-02-26 Tom de Vries <tdevries@suse.de>
8946
8947 PR gdb/25603
8948 * symfile.c (set_initial_language): Exit-early if
8949 language_mode == language_mode_manual.
8950
450a1bfc
SM
89512020-02-25 Simon Marchi <simon.marchi@polymtl.ca>
8952
8953 * dwarf2/loc.h (dwarf2_read_addr_index): Move...
8954 * dwarf2/read.h (dwarf2_read_addr_index): ... here.
8955 * dwarf2/read.c (dwarf2_read_addr_index): Move doc to header.
8956
9e80cfa1
AB
89572020-02-25 Andrew Burgess <andrew.burgess@embecosm.com>
8958
8959 * gdbtypes.c (create_array_type_with_stride): Handle negative
8960 array strides.
8961 * valarith.c (value_subscripted_rvalue): Likewise.
8962
09624f1f
LM
89632020-02-25 Luis Machado <luis.machado@linaro.org>
8964
8965 * aarch64-tdep.c (aarch64_vnv_type): Fix comment typo.
8966
8cb5117c
SM
89672020-02-25 Simon Marchi <simon.marchi@polymtl.ca>
8968
8969 * loc.h (dwarf2_get_die_type): Move to...
8970 * read.h (dwarf2_get_die_type): ... here.
8971 * read.c (dwarf2_get_die_type): Move doc to header.
8972
c325c44e
JB
89732020-02-25 Joel Brobecker <brobecker@adacore.com>
8974
8975 * copypright.py (EXCLUDE_LIST): Add 'gnulib/config.in' and
8976 'gnulib/Makefile.in' to the list.
8977
4ac93832
TT
89782020-02-24 Tom Tromey <tom@tromey.com>
8979
8980 * dwarf2/read.h (struct type_unit_unshareable) <num_symtabs>:
8981 Remove.
8982 * dwarf2/read.c (dwarf2_cu::setup_type_unit_groups): Use
8983 XOBNEWVEC.
8984
197400e8
TT
89852020-02-24 Tom Tromey <tom@tromey.com>
8986
8987 * dwarf2/read.h (struct dwarf2_per_cu_data) <type_unit_group_p>:
8988 New method.
8989 * dwarf2/read.c (IS_TYPE_UNIT_GROUP): Remove.
8990 (dw2_do_instantiate_symtab, dw2_get_file_names)
8991 (build_type_psymtab_dependencies, load_full_type_unit): Update.
8992
76935768
TT
89932020-02-24 Tom Tromey <tom@tromey.com>
8994
8995 * dwarf2read.c (dwarf2_build_psymtabs_hard): Use
8996 make_scoped_restore.
8997 (dwarf2_psymtab::read_symtab): Don't clear
8998 reading_partial_symbols.
8999
a88ef40d
TV
90002020-02-24 Tom de Vries <tdevries@suse.de>
9001
9002 PR gdb/25592
9003 * stack.c (iterate_over_block_locals): Handle LOC_CONST.
9004
c9af6521
TV
90052020-02-24 Tom de Vries <tdevries@suse.de>
9006
9007 * tui/tui-layout.c (_initialize_tui_layout): Fix help messages for
9008 commands layout next/prev/regs.
9009
5707a07a
TT
90102020-02-22 Tom Tromey <tom@tromey.com>
9011
9012 * dwarf2/loc.h (dwarf2_compile_expr_to_ax): Don't declare.
9013 * dwarf2/loc.c (dwarf2_compile_expr_to_ax): Now static.
9014
3b0fb49e
TT
90152020-02-22 Tom Tromey <tom@tromey.com>
9016
9017 * tui/tui-data.h (TUI_DISASM_WIN): Cast to tui_disasm_window.
9018
283be8bf
TT
90192020-02-22 Tom Tromey <tom@tromey.com>
9020
9021 * tui/tui-win.c (_initialize_tui_win): Add usage text.
9022 * tui/tui-stack.c (_initialize_tui_stack): Add usage text.
9023 * tui/tui-regs.c (_initialize_tui_regs): Add usage text.
9024 * tui/tui.c (_initialize_tui): Add usage text.
9025
ca793b96
TT
90262020-02-22 Tom Tromey <tom@tromey.com>
9027
9028 * tui/tui-win.c (tui_set_focus_command)
9029 (tui_set_win_height_command): Use error_no_arg.
9030 (_initialize_tui_win): Update help text.
9031 (FOCUS_USAGE, WIN_HEIGHT_USAGE): Don't define.
9032
432b5c40
TT
90332020-02-22 Tom Tromey <tom@tromey.com>
9034
9035 * tui/tui-layout.c (extract_display_start_addr): Rewrite.
9036 * tui/tui-disasm.h (struct tui_disasm_window)
9037 <display_start_addr>: Declare.
9038 * tui/tui-source.h (struct tui_source_window)
9039 <display_start_addr>: Declare.
9040 * tui/tui-winsource.h (struct tui_source_window_base)
9041 <show_source_line, display_start_addr>: New methods.
9042 <m_horizontal_offset, m_start_line_or_addr, m_gdbarch, m_content>:
9043 Rename and move to protected section.
9044 * tui/tui-winsource.c (tui_source_window_base::update_source_window)
9045 (tui_source_window_base::do_erase_source_content): Update.
9046 (tui_source_window_base::show_source_line): Now a method.
9047 (tui_source_window_base::show_source_content)
9048 (tui_source_window_base::tui_source_window_base)
9049 (tui_source_window_base::rerender)
9050 (tui_source_window_base::refill)
9051 (tui_source_window_base::do_scroll_horizontal)
9052 (tui_source_window_base::set_is_exec_point_at)
9053 (tui_source_window_base::update_breakpoint_info)
9054 (tui_source_window_base::update_exec_info): Update.
9055 * tui/tui-source.c (tui_source_window::set_contents)
9056 (tui_source_window::showing_source_p)
9057 (tui_source_window::do_scroll_vertical)
9058 (tui_source_window::location_matches_p)
9059 (tui_source_window::line_is_displayed): Update.
9060 (tui_source_window::display_start_addr): New method.
9061 * tui/tui-disasm.c (tui_disasm_window::set_contents)
9062 (tui_disasm_window::do_scroll_vertical)
9063 (tui_disasm_window::location_matches_p): Update.
9064 (tui_disasm_window::display_start_addr): New method.
9065
01b1af32
TT
90662020-02-22 Tom Tromey <tom@tromey.com>
9067
9068 * NEWS: Add entry for gdb.register_window_type.
9069 * tui/tui-layout.h (window_factory): New typedef.
9070 (tui_register_window): Declare.
9071 * tui/tui-layout.c (saved_tui_windows): New global.
9072 (tui_apply_current_layout): Use it.
9073 (tui_register_window): New function.
9074 * python/python.c (do_start_initialization): Call
9075 gdbpy_initialize_tui.
9076 (python_GdbMethods): Add "register_window_type" function.
9077 * python/python-internal.h (gdbpy_register_tui_window)
9078 (gdbpy_initialize_tui): Declare.
9079 * python/py-tui.c: New file.
9080 * Makefile.in (SUBDIR_PYTHON_SRCS): Add py-tui.c.
9081
fc96d20b
TT
90822020-02-22 Tom Tromey <tom@tromey.com>
9083
9084 * tui/tui-io.c (do_tui_putc): Don't omit annotations.
9085
935c78c0
TT
90862020-02-22 Tom Tromey <tom@tromey.com>
9087
9088 * tui/tui-win.c (tui_set_win_focus_to): Move to tui-data.c.
9089 * tui/tui-data.h (tui_set_win_with_focus): Don't declare.
9090 * tui/tui-data.c (tui_set_win_with_focus): Remove.
9091 (tui_set_win_focus_to): Move from tui-win.c.
9092
0240c8f1
TT
90932020-02-22 Tom Tromey <tom@tromey.com>
9094
9095 * tui/tui-layout.c (make_standard_window, get_locator_window): New
9096 functions.
9097 (known_window_types): New global.
9098 (tui_get_window_by_name): Reimplement.
9099 (initialize_known_windows): New function.
9100 (validate_window_name): Rewrite.
9101 (_initialize_tui_layout): Call initialize_known_windows.
9102
fdb01f0c
TT
91032020-02-22 Tom Tromey <tom@tromey.com>
9104
9105 * tui/tui.h (enum tui_win_type) <LOCATOR_WIN, DATA_ITEM_WIN>:
9106 Remove constants.
9107 * tui/tui-winsource.h (struct tui_source_window_base)
9108 <tui_source_window_base>: Remove parameter.
9109 * tui/tui-winsource.c
9110 (tui_source_window_base::tui_source_window_base): Remove
9111 parameter.
9112 (tui_source_window_base::refill): Update.
9113 * tui/tui-stack.h (struct tui_locator_window)
9114 <tui_locator_window>: Update.
9115 * tui/tui-source.h (struct tui_source_window) <tui_source_window>:
9116 Default the constructor.
9117 * tui/tui-regs.h (struct tui_data_item_window)
9118 <tui_data_item_window>: Default the constructor.
9119 (struct tui_data_window) <tui_data_window>: Likewise.
9120 * tui/tui-disasm.h (struct tui_disasm_window) <tui_disasm_window>:
9121 Default the constructor.
9122 * tui/tui-data.h (struct tui_gen_win_info) <tui_gen_win_info>:
9123 Default the constructor.
9124 <type>: Remove.
9125 (struct tui_win_info) <tui_win_info>: Default the constructor.
9126 * tui/tui-data.c (tui_win_info::tui_win_info): Remove.
9127 * tui/tui-command.h (struct tui_cmd_window) <tui_cmd_window>:
9128 Default the constructor.
9129
865a5aec
TT
91302020-02-22 Tom Tromey <tom@tromey.com>
9131
9132 * tui/tui-wingeneral.h (tui_make_all_invisible): Don't declare.
9133 * tui/tui-wingeneral.c (tui_make_all_invisible): Remove.
9134 * tui/tui-win.c (tui_resize_all): Don't call
9135 tui_delete_invisible_windows.
9136 * tui/tui-layout.c (tui_apply_current_layout): Delete windows when
9137 done.
9138 (tui_set_layout): Update.
9139 (tui_add_win_to_layout): Don't call tui_delete_invisible_windows.
9140 * tui/tui-data.h (tui_delete_invisible_windows): Don't declare.
9141 * tui/tui-data.c (tui_delete_invisible_windows): Remove.
9142
e098d18c
TT
91432020-02-22 Tom Tromey <tom@tromey.com>
9144
9145 * tui/tui-win.c (tui_partial_win_by_name): Handle ambiguity
9146 correctly.
9147
eb9c8874
TT
91482020-02-22 Tom Tromey <tom@tromey.com>
9149
9150 * tui/tui-data.c (tui_next_win, tui_prev_win): Reimplement.
9151
7eed1a8e
TT
91522020-02-22 Tom Tromey <tom@tromey.com>
9153
9154 * tui/tui-winsource.h (struct tui_source_window_iterator)
9155 <inner_iterator>: New etytypedef.
9156 <tui_source_window_iterator>: Take "end" parameter.
9157 <tui_source_window_iterator>: Take iterator.
9158 <operator*, advance>: Update.
9159 <m_iter>: Change type.
9160 <m_end>: New field.
9161 (struct tui_source_windows) <begin, end>: Update.
9162 * tui/tui-layout.c (tui_windows): New global.
9163 (tui_apply_current_layout): Clear tui_windows.
9164 (tui_layout_window::apply): Update tui_windows.
9165 * tui/tui-data.h (tui_windows): Declare.
9166 (all_tui_windows): Now inline function.
9167 (class tui_window_iterator, struct all_tui_windows): Remove.
9168
7c043ba6
TT
91692020-02-22 Tom Tromey <tom@tromey.com>
9170
9171 PR tui/17850:
9172 * tui/tui-win.c (tui_gen_win_info::max_width): New method.
9173 * tui/tui-layout.h (class tui_layout_base) <get_sizes>: Add
9174 "height" argument.
9175 (class tui_layout_window) <get_sizes>: Likewise.
9176 (class tui_layout_split) <tui_layout_split>: Add "vertical"
9177 argument.
9178 <get_sizes>: Add "height" argument.
9179 <m_vertical>: New field.
9180 * tui/tui-layout.c (tui_layout_split::clone): Update.
9181 (tui_layout_split::get_sizes): Add "height" argument.
9182 (tui_layout_split::adjust_size, tui_layout_split::apply): Update.
9183 (tui_new_layout_command): Parse "-horizontal".
9184 (_initialize_tui_layout): Update help string.
9185 (tui_layout_split::specification): Add "-horizontal" when needed.
9186 * tui/tui-layout.c (tui_layout_window::get_sizes): Add "height"
9187 argument.
9188 * tui/tui-data.h (struct tui_gen_win_info) <max_width, min_width>:
9189 New methods.
9190
6bc56648
TT
91912020-02-22 Tom Tromey <tom@tromey.com>
9192
9193 * tui/tui-layout.h (enum tui_adjust_result): New.
9194 (class tui_layout_base) <adjust_size>: Return tui_adjust_result.
9195 (class tui_layout_window) <adjust_size>: Return
9196 tui_adjust_result. Rewrite.
9197 (class tui_layout_split) <adjust_size>: Return tui_adjust_result.
9198 * tui/tui-layout.c (tui_layout_split::adjust_size): Update.
9199
c22fef7e
TT
92002020-02-22 Tom Tromey <tom@tromey.com>
9201
9202 * tui/tui-layout.h (class tui_layout_split) <add_split>: Change
9203 parameter and return types.
9204 (class tui_layout_base) <specification>: Add "depth".
9205 (class tui_layout_window) <specification>: Add "depth".
9206 (class tui_layout_split) <specification>: Add "depth".
9207 * tui/tui-layout.c (tui_layout_split::add_split): Change parameter
9208 and return types.
9209 (tui_new_layout_command): Parse sub-layouts.
9210 (_initialize_tui_layout): Update help string.
9211 (tui_layout_window::specification): Add "depth".
9212 (add_layout_command): Update.
9213
ee325b61
TT
92142020-02-22 Tom Tromey <tom@tromey.com>
9215
9216 * NEWS: Add "tui new-layout" item.
9217 * tui/tui-layout.c (add_layout_command): Return cmd_list_element.
9218 Add new-layout command to help text.
9219 (validate_window_name): New function.
9220 (tui_new_layout_command): New function.
9221 (_initialize_tui_layout): Register "new-layout".
9222 (tui_layout_window::specification): New method.
9223 (tui_layout_window::specification): New method.
9224 * tui/tui-layout.h (class tui_layout_base) <specification>: New
9225 method.
9226 (class tui_layout_window) <specification>: New method.
9227 (class tui_layout_split) <specification>: New method.
9228
416eb92d
TT
92292020-02-22 Tom Tromey <tom@tromey.com>
9230
9231 * tui/tui.c (tui_enable): Call tui_set_initial_layout.
9232 * tui/tui-win.c (window_name_completer): Update comment.
9233 * tui/tui-layout.h (class tui_layout_base) <replace_window>:
9234 Declare method.
9235 (class tui_layout_window) <replace_window>: Likewise.
9236 (class tui_layout_split) <replace_window>: Likewise.
9237 (tui_set_layout): Don't declare.
9238 (tui_set_initial_layout): Declare function.
9239 * tui/tui-layout.c (layouts, applied_skeleton, src_regs_layout)
9240 (asm_regs_layout): New globals.
9241 (tui_current_layout, show_layout): Remove.
9242 (tui_set_layout, tui_add_win_to_layout): Rewrite.
9243 (find_layout, tui_apply_layout): New function.
9244 (layout_completer): Remove.
9245 (tui_next_layout): Reimplement.
9246 (tui_next_layout_command): New function.
9247 (tui_set_initial_layout, tui_prev_layout_command): New functions.
9248 (tui_regs_layout): Reimplement.
9249 (tui_regs_layout_command): New function.
9250 (extract_display_start_addr): Rewrite.
9251 (next_layout, prev_layout): Remove.
9252 (tui_layout_window::replace_window): New method.
9253 (tui_layout_split::replace_window): New method.
9254 (destroy_layout): New function.
9255 (layout_list): New global.
9256 (add_layout_command): New function.
9257 (initialize_layouts): Update.
9258 (tui_layout_command): New function.
9259 (_initialize_tui_layout): Install "layout" commands.
9260 * tui/tui-data.h (enum tui_layout_type): Remove.
9261 (tui_current_layout): Don't declare.
9262
0dbc2fc7
TT
92632020-02-22 Tom Tromey <tom@tromey.com>
9264
9265 * tui/tui-regs.c (tui_reg_layout): Remove.
9266 (tui_reg_command): Use tui_regs_layout.
9267 * tui/tui-layout.h (tui_reg_command): Declare.
9268 * tui/tui-layout.c (tui_reg_command): New function.
9269
5afe342e
TT
92702020-02-22 Tom Tromey <tom@tromey.com>
9271
9272 * tui/tui.c (tui_rl_delete_other_windows): Call
9273 tui_remove_some_windows.
9274 * tui/tui-layout.h (class tui_layout_base) <remove_windows>:
9275 Declare method.
9276 (class tui_layout_window) <remove_windows>: New method.
9277 (class tui_layout_split) <remove_windows>: Declare.
9278 (tui_remove_some_windows): Declare.
9279 * tui/tui-layout.c (tui_remove_some_windows): New function.
9280 (tui_layout_split::remove_windows): New method.
9281
427326a8
TT
92822020-02-22 Tom Tromey <tom@tromey.com>
9283
9284 * tui/tui.c (tui_rl_change_windows): Call tui_next_layout.
9285 * tui/tui-layout.h (tui_next_layout): Declare.
9286 * tui/tui-layout.c (tui_next_layout): New function.
9287
3fe12b6d
TT
92882020-02-22 Tom Tromey <tom@tromey.com>
9289
9290 * tui/tui-regs.c (tui_data_window::display_registers_from): Use
9291 correct coordinates.
9292
59b8b5d2
TT
92932020-02-22 Tom Tromey <tom@tromey.com>
9294
9295 * tui/tui-layout.h (tui_add_win_to_layout): Add comment.
9296 * tui/tui-layout.c (tui_add_win_to_layout): Add assert. Remove
9297 DATA_WIN case.
9298
2a3d458b
TT
92992020-02-22 Tom Tromey <tom@tromey.com>
9300
9301 * tui/tui-disasm.c (tui_get_low_disassembly_address): Use
9302 TUI_DISASM_WIN, not tui_win_list.
9303
3f0cbb04
TT
93042020-02-22 Tom Tromey <tom@tromey.com>
9305
9306 * valprint.c (generic_val_print_enum_1)
9307 (val_print_type_code_flags): Style member names.
9308 * rust-lang.c (val_print_struct, rust_print_enum)
9309 (rust_print_struct_def, rust_internal_print_type): Style member
9310 names.
9311 * p-valprint.c (pascal_object_print_value_fields): Style member
9312 names. Only call fprintf_symbol_filtered for static members.
9313 * m2-typeprint.c (m2_record_fields, m2_enum): Style member names.
9314 * f-valprint.c (f_val_print): Style member names.
9315 * f-typeprint.c (f_type_print_base): Style member names.
9316 * cp-valprint.c (cp_print_value_fields): Style member names. Only
9317 call fprintf_symbol_filtered for static members.
9318 (cp_print_class_member): Style member names.
9319 * c-typeprint.c (c_print_type_1, c_type_print_base_1): Style
9320 member names.
9321 * ada-valprint.c (ada_print_scalar): Style enum names.
9322 (ada_val_print_enum): Likewise.
9323 * ada-typeprint.c (print_enum_type): Style enum names.
9324
d4d947ae
TT
93252020-02-21 Tom Tromey <tom@tromey.com>
9326
9327 * psympriv.h (struct partial_symtab): Update comment.
9328
e94e944b
TT
93292020-02-21 Tom Tromey <tromey@adacore.com>
9330
9331 * mips-tdep.h (mips_pc_is_mips16, mips_pc_is_micromips): Parameter
9332 type is CORE_ADDR.
9333
1eb73179
TV
93342020-02-21 Tom de Vries <tdevries@suse.de>
9335
9336 PR gdb/25534
9337 * psymtab.c (partial_symtab::read_dependencies): Don't read dependency
9338 if dependencies[i]->user != NULL.
9339
4f180d53
AT
93402020-02-21 Ali Tamur <tamur@google.com>
9341
9342 * dwarf2/read.c (dwarf2_name): Add null check.
9343
22b6cd70
TT
93442020-02-20 Tom Tromey <tom@tromey.com>
9345
9346 * dwarf2/read.c (dwarf2_find_containing_comp_unit): Use ">", not
9347 ">=", in binary search.
9348 (dwarf2_find_containing_comp_unit): New overload.
9349 (run_test): New self-test.
9350 (_initialize_dwarf2_read): Register new test.
9351
bd0cf5a6
NC
93522020-02-20 Nelson Chu <nelson.chu@sifive.com>
9353
9354 * riscv-tdep.c: Updated since the DECLARE_CSR is changed.
9355 * riscv-tdep.h: Likewise.
9356 * features/riscv/rebuild-csr-xml.sh: Generate the 64bit-csr.xml without
9357 rv32-only CSR.
9358 * features/riscv/64bit-csr.xml: Regenerated.
9359
3f702acd
SDJ
93602020-02-20 Sergio Durigan Junior <sergiodj@redhat.com>
9361 Tom Tromey <tom@tromey.com>
9362
9363 * utils.c (fputs_maybe_filtered): Call 'stream->puts' instead
9364 of 'fputc_unfiltered'.
9365 (putchar_unfiltered): Call 'fputc_unfiltered'.
9366 (fputc_unfiltered): Call 'fputs_unfiltered'.
9367
d13c7322
AB
93682020-02-20 Andrew Burgess <andrew.burgess@embecosm.com>
9369
9370 * config.in: Regenerate.
9371 * configure: Regenerate.
9372 * configure.ac: Add --with-python-libdir option.
9373 * main.c: Use WITH_PYTHON_LIBDIR.
9374
869d8950
TT
93752020-02-19 Tom Tromey <tom@tromey.com>
9376
9377 * symtab.c (general_symbol_info::compute_and_set_names): Use
9378 obstack_strndup. Simplify call to symbol_set_demangled_name.
9379
298e9637
SM
93802020-02-19 Simon Marchi <simon.marchi@efficios.com>
9381
9382 * dwarf2/read.c (allocate_signatured_type_table,
9383 allocate_dwo_unit_table, allocate_type_unit_groups_table,
9384 allocate_dwo_file_hash_table, allocate_dwp_loaded_cutus_table):
9385 Remove objfile parameter, update all callers.
9386
08410482
DE
93872020-02-19 Doug Evans <dje@google.com>
9388
9389 PR rust/25535
9390 * rust-lang.c (rust_print_enum): Apply embedded_offset to
9391 rust_enum_variant calculation.
9392
dfdeeca1
TT
93932020-02-19 Tom Tromey <tromey@adacore.com>
9394
9395 * mips-tdep.h (mips_pc_is_mips): Parameter type is CORE_ADDR.
9396
2ef5453b
TT
93972020-02-19 Tom Tromey <tromey@adacore.com>
9398
9399 * ada-lang.c (cache_symbol): Use obstack_strdup.
9400
9f1528a1
AB
94012020-02-19 Andrew Burgess <andrew.burgess@embecosm.com>
9402
9403 * configure: Regenerate.
9404
d3c22fa8
TT
94052020-02-19 Tom Tromey <tromey@adacore.com>
9406
9407 * python/python.c (do_start_initialization): Use XNEWVEC. Remove
9408 NULL check.
9409
bf84f706
MR
94102020-02-19 Maciej W. Rozycki <macro@wdc.com>
9411
9412 * NEWS: Mention RISC-V GNU/Linux GDBserver support.
9413
d1c9b20f
AB
94142020-02-19 Andrew Burgess <andrew.burgess@embecosm.com>
9415
9416 * arch/riscv.c (struct riscv_gdbarch_features_hasher): Only define
9417 if GDBSERVER is not defined.
9418 (riscv_tdesc_cache): Likewise, also store const target_desc.
9419 (STATIC_IN_GDB): Define.
9420 (riscv_create_target_description): Update declaration with
9421 STATIC_IN_GDB.
9422 (riscv_lookup_target_description): New function, only define if
9423 GDBSERVER is not defined.
9424 * arch/riscv.h (riscv_create_target_description): Declare only
9425 when GDBSERVER is defined.
9426 (riscv_lookup_target_description): New declaration when GDBSERVER
9427 is not defined.
9428 * nat/riscv-linux-tdesc.c (riscv_linux_read_description): Rename to...
9429 (riscv_linux_read_features): ...this, and return
9430 riscv_gdbarch_features instead of target_desc.
9431 * nat/riscv-linux-tdesc.h: Include 'arch/riscv.h'.
9432 (riscv_linux_read_description): Rename to...
9433 (riscv_linux_read_features): ...this.
9434 * riscv-linux-nat.c (riscv_linux_nat_target::read_description):
9435 Update to use riscv_gdbarch_features and
9436 riscv_lookup_target_description.
9437 * riscv-tdep.c (riscv_find_default_target_description): Use
9438 riscv_lookup_target_description instead of
9439 riscv_create_target_description.
9440
373d7ac0
SM
94412020-02-18 Simon Marchi <simon.marchi@efficios.com>
9442
9443 * valprint.c (generic_val_print_enum_1): When printing a flag
9444 enum with value 0 and there is no enumerator with value 0, print
9445 just "0" instead of "(unknown: 0x0)".
9446
b29a2df0
SM
94472020-02-18 Simon Marchi <simon.marchi@efficios.com>
9448
9449 * valprint.c (generic_val_print_enum_1): Print unknown part of
9450 flag enum in hex.
9451
6740f0cc
SM
94522020-02-18 Simon Marchi <simon.marchi@efficios.com>
9453
9454 * dwarf2/read.c (update_enumeration_type_from_children): Allow
9455 flag enums to contain duplicate enumerators.
9456 * valprint.c (generic_val_print_enum_1): Update comment.
9457
edd45eb0
SM
94582020-02-18 Simon Marchi <simon.marchi@efficios.com>
9459
9460 * dwarf2/read.c: Include "count-one-bits.h".
9461 (update_enumeration_type_from_children): If an enumerator has
9462 multiple bits set, don't treat the enumeration as a "flag enum".
9463 * valprint.c (generic_val_print_enum_1): Assert that enumerators
9464 of flag enums have 0 or 1 bit set.
9465
6d0cf446
BE
94662020-02-18 Bernd Edlinger <bernd.edlinger@hotmail.de>
9467
9468 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Use an explicit
9469 conversion.
9470 * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise.
9471 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn): Likewise.
9472 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
9473 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Likewise.
9474 * s390-tdep.c (s390_displaced_step_copy_insn): Likewise.
9475
7001c1b7
SM
94762020-02-18 Simon Marchi <simon.marchi@efficios.com>
9477
9478 * MAINTAINERS: Change palmer@sifive.com to palmer@dabbelt.com.
9479
fdb61c6c
SM
94802020-02-14 Simon Marchi <simon.marchi@efficios.com>
9481
9482 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Use
9483 displaced_step_closure_up.
9484 * aarch64-tdep.h (aarch64_displaced_step_copy_insn): Likewise.
9485 (struct displaced_step_closure_up):
9486 * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise.
9487 * amd64-tdep.h (amd64_displaced_step_copy_insn): Likewise.
9488 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn):
9489 Likewise.
9490 * gdbarch.sh (displaced_step_copy_insn): Likewise.
9491 * gdbarch.c, gdbarch.h: Re-generate.
9492 * i386-linux-tdep.c (i386_linux_displaced_step_copy_insn): Use
9493 displaced_step_closure_up.
9494 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
9495 * i386-tdep.h (i386_displaced_step_copy_insn): Likewise.
9496 * infrun.h (displaced_step_closure_up): New type alias.
9497 (struct displaced_step_inferior_state) <step_closure>: Change
9498 type to displaced_step_closure_up.
9499 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Use
9500 displaced_step_closure_up.
9501 * s390-tdep.c (s390_displaced_step_copy_insn): Likewise.
9502
a4a38eb4
TT
95032020-02-14 Tom Tromey <tom@tromey.com>
9504
9505 * minidebug.c (gnu_debug_key): New global.
9506 (find_separate_debug_file_in_section): Use it.
9507
e8217e61
SM
95082020-02-14 Simon Marchi <simon.marchi@efficios.com>
9509
9510 * gdbarch.sh (displaced_step_copy_insn): Change return type to an
9511 std::unique_ptr.
9512 * gdbarch.c: Re-generate.
9513 * gdbarch.h: Re-generate.
9514 * infrun.c (displaced_step_prepare_throw): Adjust to std::unique_ptr
9515 change.
9516 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Change return
9517 type to std::unique_ptr.
9518 * aarch64-tdep.h (aarch64_displaced_step_copy_insn): Likewise.
9519 * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise.
9520 * amd64-tdep.h (amd64_displaced_step_copy_insn): Likewise.
9521 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn): Likewise.
9522 * i386-linux-tdep.c (i386_linux_displaced_step_copy_insn): Likewise.
9523 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
9524 * i386-tdep.h (i386_displaced_step_copy_insn): Likewise.
9525 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Likewise.
9526 * s390-tdep.c (s390_displaced_step_copy_insn): Likewise.
9527
d8d83535
SM
95282020-02-14 Simon Marchi <simon.marchi@efficios.com>
9529
9530 * infrun.c (get_displaced_step_closure_by_addr): Adjust to
9531 std::unique_ptr.
9532 (displaced_step_clear): Rename to...
9533 (displaced_step_reset): ... this. Just call displaced->reset ().
9534 (displaced_step_clear_cleanup): Rename to...
9535 (displaced_step_reset_cleanup): ... this.
9536 (displaced_step_prepare_throw): Adjust to std::unique_ptr.
9537 (displaced_step_fixup): Likewise.
9538 (resume_1): Likewise.
9539 (handle_inferior_event): Restore child's memory before calling
9540 displaced_step_fixup on the parent.
9541 * infrun.h (displaced_step_inferior_state) <reset>: Adjust
9542 to std::unique_ptr.
9543 <step_closure>: Change type to std::unique_ptr.
9544
5f661e03
SM
95452020-02-14 Simon Marchi <simon.marchi@efficios.com>
9546
9547 * arm-tdep.c: Include count-one-bits.h.
9548 (cleanup_block_store_pc): Use count_one_bits.
9549 (cleanup_block_load_pc): Use count_one_bits.
9550 (arm_copy_block_xfer): Use count_one_bits.
9551 (thumb2_copy_block_xfer): Use count_one_bits.
9552 (thumb_copy_pop_pc_16bit): Use count_one_bits.
9553 * arch/arm-get-next-pcs.c: Include count-one-bits.h.
9554 (thumb_get_next_pcs_raw): Use count_one_bits.
9555 (arm_get_next_pcs_raw): Use count_one_bits_l.
9556 * arch/arm.c (bitcount): Remove.
9557 * arch/arm.h (bitcount): Remove.
9558
8084e579
TT
95592020-02-14 Tom Tromey <tromey@adacore.com>
9560
9561 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first):
9562 Update.
9563 * dwarf2/loc.h (call_site_find_chain): Return unique_xmalloc_ptr.
9564 * dwarf2/loc.c (call_site_find_chain_1): Return
9565 unique_xmalloc_ptr.
9566 (call_site_find_chain): Likewise.
9567
258bf0ee
RB
95682020-02-14 Richard Biener <rguenther@suse.de>
9569
9570 * dwarf2/read.c (lnp_state_machine::handle_special_opcode): Apply CSE
9571 on expression with division operators.
9572
f98a8458
AKS
95732020-02-13 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
9574
9575 * MAINTAINERS (Write After Approval): Adding myself.
9576
d1437c0e
TT
95772020-02-12 Tom Tromey <tom@tromey.com>
9578
9579 * event-loop.c (event_data, gdb_event, event_handler_func):
9580 Remove.
9581
3d4560f7
TT
95822020-02-12 Tom Tromey <tom@tromey.com>
9583
9584 * dwarf2/frame.c (dwarf2_frame_bfd_data): New global.
9585 (dwarf2_frame_objfile_data): Add comment.
9586 (find_comp_unit, set_comp_unit): New functions.
9587 (dwarf2_frame_find_fde): Use find_comp_unit.
9588 (dwarf2_build_frame_info): Use set_comp_unit.
9589
21982304
TT
95902020-02-12 Tom Tromey <tom@tromey.com>
9591
9592 * dwarf2/frame.c (struct comp_unit) <objfile>: Remove.
9593 (comp_unit): Don't initialize objfile.
9594 (execute_cfa_program): Add text_offset parameter.
9595 (execute_cfa_program_test, dwarf2_fetch_cfa_info)
9596 (dwarf2_frame_cache): Update.
9597 (dwarf2_build_frame_info): Don't set "objfile" member.
9598
4debb237
TT
95992020-02-12 Tom Tromey <tom@tromey.com>
9600
9601 * dwarf2/frame.c (decode_frame_entry_1): Add gdbarch parameter.
9602 (decode_frame_entry): Likewise.
9603 (dwarf2_build_frame_info): Update.
9604
0d404d44
TT
96052020-02-12 Tom Tromey <tom@tromey.com>
9606
9607 * dwarf2/frame.c (struct comp_unit) <obstack>: New member.
9608 (decode_frame_entry_1): Use the comp_unit obstack.
9609
a7a3ae5c
TT
96102020-02-12 Tom Tromey <tom@tromey.com>
9611
9612 * dwarf2/frame.c (struct comp_unit): Add initializers and
9613 constructor.
9614 (dwarf2_frame_objfile_data): Store a comp_unit.
9615 (dwarf2_frame_find_fde): Update.
9616 (dwarf2_build_frame_info): Use "new".
9617
a9d65418
TT
96182020-02-12 Tom Tromey <tom@tromey.com>
9619
9620 * dwarf2/frame.c (struct dwarf2_fde_table): Remove.
9621 (dwarf2_fde_table): Typedef for std::vector.
9622 (dwarf2_frame_objfile_data): Remove the deleter. Now static.
9623 (dwarf2_frame_find_fde, add_fde, decode_frame_entry_1)
9624 (decode_frame_entry): Update.
9625 (dwarf2_build_frame_info): Use "new".
9626
7559c217
CB
96272020-02-12 Christian Biesinger <cbiesinger@google.com>
9628
9629 * arm-tdep.c (arm_gdbarch_init): Update.
9630 * arm-tdep.h (struct gdbarch_tdep) <have_fpa_registers,
9631 have_wmmx_registers, have_vfp_pseudos, have_neon_pseudos,
9632 have_neon, is_m>: Change to bool.
9633
aeefc73c
CB
96342020-02-12 Christian Biesinger <cbiesinger@google.com>
9635
9636 * arm-tdep.c (arm_dump_tdep): Print more fields of tdep.
9637
d27b8e5f
TT
96382020-02-12 Tom Tromey <tom@tromey.com>
9639
9640 * dwarf2/loc.c (struct dwarf_expr_baton): Remove.
9641
cd5900f3
HD
96422020-02-12 Hannes Domani <ssbssa@yahoo.de>
9643
9644 * windows-tdep.c (struct windows_gdbarch_data): Add tib_ptr_type.
9645 (windows_get_tlb_type): Use windows_gdbarch_data->tib_ptr_type.
9646
f056b22b
TT
96472020-02-11 Tom Tromey <tom@tromey.com>
9648
9649 * psymtab.h: Update comment.
9650
f92ff6b5
TT
96512020-02-11 Tom Tromey <tom@tromey.com>
9652
9653 * gdb_obstack.h (struct auto_obstack): Use
9654 DISABLE_COPY_AND_ASSIGN.
9655
3fd6912b
TT
96562020-02-11 Tom Tromey <tom@tromey.com>
9657
9658 * dwarf2/frame.h (struct objfile): Don't forward declare.
9659
69ed9b74
CB
96602020-02-11 Christian Biesinger <cbiesinger@google.com>
9661
9662 * cris-tdep.c (cris_supply_gregset): Change signature to match
9663 what struct regset expects.
9664 (cris_regset): New struct.
9665 (fetch_core_registers): Remove.
9666 (cris_iterate_over_regset_sections): New function.
9667 (_initialize_cris_tdep): Don't call deprecated_add_core_fns.
9668 (cris_gdbarch_init): Call set_gdbarch_iterate_over_regset_sections.
9669
bda874f6
CB
96702020-02-11 Christian Biesinger <cbiesinger@google.com>
9671
9672 * arch/arm.h (enum gdb_regnum): Add comment for the FP0..7
9673 registers.
9674
754e1564
CB
96752020-02-11 Christian Biesinger <cbiesinger@google.com>
9676
9677 * arm-tdep.c (arm_dump_tdep): Add \n in fprintf.
9678
8ddd8e0e
SM
96792020-02-11 Simon Marchi <simon.marchi@efficios.com>
9680
9681 * configure: Re-generate.
9682
898e7f60
SM
96832020-02-11 Simon Marchi <simon.marchi@efficios.com>
9684
9685 * configure: Re-generate.
9686
58df732b
SM
96872020-02-11 Simon Marchi <simon.marchi@efficios.com>
9688
9689 * acinclude: Update warning.m4 path.
9690 * warning.m4: Move to gdbsupport.
9691
da5bd37e
TT
96922020-02-11 Tom Tromey <tromey@adacore.com>
9693
9694 * remote.c (remote_console_output): Update.
9695 * printcmd.c (printf_command): Update.
9696 * event-loop.c (gdb_wait_for_event): Update.
9697 * linux-nat.c (sigchld_handler): Update.
9698 * remote-sim.c (gdb_os_write_stdout): Update.
9699 (gdb_os_flush_stdout): Update.
9700 (gdb_os_flush_stderr): Update.
9701 (gdb_os_write_stderr): Update.
9702 * exceptions.c (print_exception): Update.
9703 * remote-fileio.c (remote_fileio_func_read): Update.
9704 (remote_fileio_func_write): Update.
9705 * tui/tui.c (tui_enable): Update.
9706 * tui/tui-interp.c (tui_interp::init): Update.
9707 * utils.c (init_page_info): Update.
9708 (putchar_unfiltered, fputc_unfiltered): Update.
9709 (gdb_flush): Update.
9710 (emit_style_escape): Update.
9711 (flush_wrap_buffer, fputs_maybe_filtered): Update.
9712 * ui-file.c (ui_file_isatty, ui_file_read, ui_file_write)
9713 (ui_file_write_async_safe, ui_file_flush, ui_file_puts): Remove.
9714 (stderr_file::write): Update.
9715 (stderr_file::puts): Update.
9716 * ui-file.h (ui_file_isatty, ui_file_write)
9717 (ui_file_write_async_safe, ui_file_read, ui_file_flush)
9718 (ui_file_puts): Don't declare.
9719
85f0dd3c
TV
97202020-02-10 Tom de Vries <tdevries@suse.de>
9721
9722 * dwarf2/read.c (process_psymtab_comp_unit_reader): Cast concat NULL
9723 sentinel to char *.
9724
2e927613
TV
97252020-02-09 Tom de Vries <tdevries@suse.de>
9726
9727 * dwarf2read.c (process_psymtab_comp_unit_reader): Append CU offset to
9728 filename if it matches "<artificial>".
9729
6bafc845
HD
97302020-02-09 Hannes Domani <ssbssa@yahoo.de>
9731
9732 * windows-tdep.c (struct enum_value_name): New struct.
9733 (create_enum): New function.
9734 (windows_get_siginfo_type): Create and use enum types.
9735
7928d571
HD
97362020-02-09 Hannes Domani <ssbssa@yahoo.de>
9737
9738 * NEWS: Mention $_siginfo support for Windows.
9739 * windows-nat.c (handle_exception): Set siginfo_er.
9740 (windows_nat_target::mourn_inferior): Reset siginfo_er.
9741 (windows_xfer_siginfo): New function.
9742 (windows_nat_target::xfer_partial): Call windows_xfer_siginfo.
9743 * windows-tdep.c (struct windows_gdbarch_data): New struct.
9744 (init_windows_gdbarch_data): New function.
9745 (get_windows_gdbarch_data): New function.
9746 (windows_get_siginfo_type): New function.
9747 (windows_init_abi): Register windows_get_siginfo_type.
9748 (_initialize_windows_tdep): Register init_windows_gdbarch_data.
9749
6751ebae
TT
97502020-02-08 Tom Tromey <tom@tromey.com>
9751
9752 * dwarf2/read.c (class cutu_reader) <cutu_reader,
9753 init_tu_and_read_dwo_dies>: Remove "keep" parameter.
9754 <keep>: Declare method.
9755 <m_keep>: Remove member.
9756 <~cutu_reader>: Remove.
9757 (cutu_reader::init_tu_and_read_dwo_dies): Update.
9758 (cutu_reader::cutu_reader): Update.
9759 (cutu_reader::keep): Rename from ~cutu_reader.
9760 (process_psymtab_comp_unit, build_type_psymtabs_1)
9761 (process_skeletonless_type_unit, load_partial_comp_unit)
9762 (load_full_comp_unit, dwarf2_read_addr_index)
9763 (read_signatured_type): Update.
9764
135f5437
TT
97652020-02-08 Tom Tromey <tom@tromey.com>
9766
9767 * dwarf2/read.c (process_psymtab_comp_unit_reader): Remove
9768 "want_partial_unit" parameter.
9769 (process_psymtab_comp_unit): Change want_partial_unit to bool.
9770 Inline check for DW_TAG_partial_unit.
9771 (dwarf2_build_psymtabs_hard, scan_partial_symbols): Update.
9772
9f66ff1c
TT
97732020-02-08 Tom Tromey <tom@tromey.com>
9774
9775 * dwarf2/read.c (read_n_bytes, read_direct_string): Move to
9776 read.c.
9777 * dwarf2/leb.h (read_n_bytes, read_direct_string): Move from
9778 read.c.
9779
c8a7a66f
TT
97802020-02-08 Tom Tromey <tom@tromey.com>
9781
9782 * dwarf2/read.c (read_address): Move to comp-unit.c.
9783 (dwarf2_rnglists_process, dwarf2_ranges_process)
9784 (read_attribute_value, dwarf_decode_lines_1)
9785 (var_decode_location, decode_locdesc): Update.
9786 * dwarf2/comp-unit.c (comp_unit_head::read_address): Move from
9787 read.c. Remove "cu" parameter.
9788 * dwarf2/comp-unit.h (struct comp_unit_head) <read_address>: New
9789 method.
9790
8266302d
TT
97912020-02-08 Tom Tromey <tom@tromey.com>
9792
9793 * dwarf2/read.c (read_attribute_value, read_indirect_string)
9794 (read_indirect_line_string): Update.
9795 * dwarf2/comp-unit.c (read_offset): Remove.
9796 (read_comp_unit_head): Update.
9797 * dwarf2/comp-unit.h (struct comp_unit_head) <read_offset>: New
9798 method.
9799 (read_offset): Don't declare.
9800
4057dfde
TT
98012020-02-08 Tom Tromey <tom@tromey.com>
9802
9803 * Makefile.in (COMMON_SFILES): Add dwarf2/comp-unit.c.
9804 * dwarf2/read.c (struct comp_unit_head): Move to
9805 dwarf2/comp-unit.h.
9806 (enum class rcuh_kind): Move to comp-unit.h.
9807 (get_cu_length, offset_in_cu_p): Now methods on comp_unit_head.
9808 (read_comp_unit_head, error_check_comp_unit_head)
9809 (read_and_check_comp_unit_head): Move to comp-unit.c.
9810 (read_offset, dwarf_unit_type_name): Likewise.
9811 (create_debug_type_hash_table, read_cutu_die_from_dwo)
9812 (cutu_reader::cutu_reader, read_call_site_scope)
9813 (find_partial_die, follow_die_offset): Update.
9814 * dwarf2/comp-unit.h: New file, from dwarf2read.c.
9815
24aa364d
TT
98162020-02-08 Tom Tromey <tom@tromey.com>
9817
9818 * dwarf2/read.c (read_offset_1): Move to leb.c.
9819 (read_abbrev_offset, read_offset, dwarf_decode_line_header)
9820 (dwarf_decode_macro_bytes): Update.
9821 * dwarf2/leb.c (read_offset): Rename; move from read.c.
9822 * dwarf2/leb.h (read_offset): Declare.
9823
2c7d5afc
TT
98242020-02-08 Tom Tromey <tom@tromey.com>
9825
9826 * dwarf2/read.c (dwarf2_section_size): Remove.
9827 (error_check_comp_unit_head, dwarf2_symbol_mark_computed):
9828 Update.
9829 * dwarf2/section.h (struct dwarf2_section_info) <get_size>: New method.
9830
4075cb26
TT
98312020-02-08 Tom Tromey <tom@tromey.com>
9832
9833 * dwarf2/read.c (read_initial_length): Move to leb.c.
9834 * dwarf2/leb.h (read_initial_length): Declare.
9835 * dwarf2/leb.c (read_initial_length): Move from read.c. Add
9836 handle_nonstd parameter.
9837 * dwarf2/frame.c (read_initial_length): Remove.
9838 (decode_frame_entry_1): Update.
9839
09ba997f
TT
98402020-02-08 Tom Tromey <tom@tromey.com>
9841
9842 * dwarf2/loc.c (dwarf2_find_location_expression)
9843 (dwarf_evaluate_loc_desc::get_tls_address)
9844 (dwarf_evaluate_loc_desc::push_dwarf_reg_entry_value)
9845 (rw_pieced_value, dwarf2_evaluate_loc_desc_full)
9846 (dwarf2_locexpr_baton_eval, dwarf2_evaluate_property)
9847 (dwarf2_compile_property_to_c)
9848 (dwarf2_loc_desc_get_symbol_read_needs)
9849 (dwarf2_compile_expr_to_ax, locexpr_describe_location)
9850 (locexpr_tracepoint_var_ref, locexpr_generate_c_location)
9851 (loclist_describe_location, loclist_tracepoint_var_ref)
9852 (loclist_generate_c_location): Update.
9853 * compile/compile-loc2c.c (do_compile_dwarf_expr_to_c): Update.
9854 * dwarf2/loc.h (dwarf2_per_cu_objfile, dwarf2_per_cu_addr_size)
9855 (dwarf2_per_cu_ref_addr_size, dwarf2_per_cu_offset_size)
9856 (dwarf2_per_cu_text_offset, dwarf2_version): Don't declare.
9857 * dwarf2/read.c (dwarf2_per_cu_data::objfile)
9858 (dwarf2_per_cu_data::addr_size)
9859 (dwarf2_per_cu_data::ref_addr_size)
9860 (dwarf2_per_cu_data::text_offset)
9861 (dwarf2_per_cu_data::addr_type): Now methods.
9862 (per_cu_header_read_in): Make per_cu "const".
9863 (dwarf2_version): Remove.
9864 (dwarf2_per_cu_data::int_type): Now a method.
9865 (dwarf2_per_cu_data::_addr_sized_int_type): Likewise.
9866 (set_die_type, read_array_type, read_subrange_index_type)
9867 (read_tag_string_type, read_subrange_type): Update.
9868 * dwarf2/read.h (struct dwarf2_per_cu_data) <addr_size,
9869 offset_size, ref_addr_size, text_offset, addr_type, version,
9870 objfile, int_type, addr_sized_int_type>: Declare methods.
9871
96c738c0
TT
98722020-02-08 Tom Tromey <tom@tromey.com>
9873
9874 * dwarf2/read.h (struct dwarf2_per_cu_data) <imported_symtabs>:
9875 Move earlier.
9876
8fdd972c
TT
98772020-02-08 Tom Tromey <tom@tromey.com>
9878
9879 * dwarf2/read.h (dwarf_line_debug): Declare.
9880 * Makefile.in (COMMON_SFILES): Add dwarf2/line-header.c.
9881 * dwarf2/read.c: Move line_header code to new files.
9882 (dwarf_line_debug): No longer static.
9883 * dwarf2/line-header.c: New file.
9884 * dwarf2/line-header.h: New file.
9885
03075812
TT
98862020-02-08 Tom Tromey <tom@tromey.com>
9887
9888 * dwarf2/read.c (struct line_header) <file_full_name,
9889 file_file_name>: Return unique_xmalloc_ptr.
9890 (line_header::file_file_name): Update.
9891 (line_header::file_full_name): Update.
9892 (dw2_get_file_names_reader): Update.
9893 (macro_start_file): Update.
9894
bb822404
TT
98952020-02-08 Tom Tromey <tom@tromey.com>
9896
9897 * dwarf2/read.c (struct line_header) <file_full_name,
9898 file_file_name>: Declare methods.
9899 (dw2_get_file_names_reader): Update.
9900 (file_file_name): Now a method.
9901 (file_full_name): Likewise.
9902 (macro_start_file): Update.
9903
009b64fc
TT
99042020-02-08 Tom Tromey <tom@tromey.com>
9905
9906 * dwarf2/read.c (dwarf_always_disassemble)
9907 (show_dwarf_always_disassemble): Move to loc.c.
9908 (_initialize_dwarf2_read): Move "always-disassemble" registration
9909 to loc.c.
9910 * dwarf2/read.h (dwarf_always_disassemble): Don't declare.
9911 * dwarf2/loc.c (dwarf_always_disassemble): Move from read.c. Now
9912 static.
9913 (show_dwarf_always_disassemble): Move from read.c.
9914 (_initialize_dwarf2loc): Move always-disassemble from read.c.
9915
5895093f
TT
99162020-02-08 Tom Tromey <tom@tromey.com>
9917
9918 * dwarf2/read.c (~dwarf2_per_objfile): Update.
9919 (create_quick_file_names_table): Return htab_up.
9920 (dw2_get_file_names_reader, dw2_forget_cached_source_info):
9921 Update.
9922 * dwarf2/read.h (struct dwarf2_per_objfile)
9923 <quick_file_names_table>: Now htab_up.
9924
b3b32279
TT
99252020-02-08 Tom Tromey <tom@tromey.com>
9926
9927 * dwarf2/abbrev.c (abbrev_table::read): Simplify.
9928
1d33d811
TT
99292020-02-08 Tom Tromey <tom@tromey.com>
9930
9931 * dwarf2/abbrev.c (abbrev_table): Move constructor from header.
9932 Rewrite.
9933 (abbrev_table::add_abbrev, abbrev_table::lookup_abbrev): Rewrite.
9934 * dwarf2/abbrev.h (struct abbrev_info) <next>: Remove.
9935 (abbrev_table::abbrev_table): No longer inline.
9936 (ABBREV_HASH_SIZE): Remove.
9937 (abbrev_table::m_abbrevs): Now an htab_up.
9938
86de1d91
TT
99392020-02-08 Tom Tromey <tom@tromey.com>
9940
9941 * dwarf2/read.c (read_cutu_die_from_dwo): Update.
9942 (cutu_reader): Update.
9943 (build_type_psymtabs_1): Update.
9944 * dwarf2/abbrev.c (abbrev_table::read): Rename.
9945 (abbrev_table::alloc_abbrev): Update.
9946 * dwarf2/abbrev.h (abbrev_table_up): Move earlier.
9947 (abbrev_table::read): New static method, renamed from
9948 abbrev_table_read_table.
9949 (abbrev_table::alloc_abbrev)
9950 (abbrev_table::add_abbrev): Now private.
9951 (abbrev_table::abbrev_table): Now private.
9952 (abbrev_table::m_abbrev_obstack): Now private. Rename.
9953
0335378b
TT
99542020-02-08 Tom Tromey <tom@tromey.com>
9955
9956 * dwarf2/read.c (set_die_type, get_die_type_at_offset): Update.
9957 * dwarf2/read.h (struct dwarf2_per_objfile) <die_type_hash>: Now
9958 htab_up.
9959
48b490f2
TT
99602020-02-08 Tom Tromey <tom@tromey.com>
9961
9962 * dwarf2/read.c (struct dwp_file) <loaded_cus, loaded_tus>: Now
9963 htab_up.
9964 (lookup_dwo_unit_in_dwp): Update.
9965 (allocate_dwp_loaded_cutus_table): Return htab_up. Don't allocate
9966 on obstack.
9967
bc68fb19
TT
99682020-02-08 Tom Tromey <tom@tromey.com>
9969
9970 * dwarf2/read.c (allocate_dwo_file_hash_table): Don't allocate on
9971 obstack.
9972
d15acc42
TT
99732020-02-08 Tom Tromey <tom@tromey.com>
9974
9975 * dwarf2/read.c (~dwarf2_per_objfile): Don't delete
9976 line_header_hash.
9977 (handle_DW_AT_stmt_list): Update. Don't allocate on obstack.
9978 * dwarf2/read.h (struct dwarf2_per_objfile) <line_header_hash>:
9979 Change type to htab_up.
9980
eaa5fa8b
TT
99812020-02-08 Tom Tromey <tom@tromey.com>
9982
9983 * dwarf2/read.c (allocate_type_unit_groups_table): Return
9984 htab_up. Don't allocate on obstack.
9985 (get_type_unit_group, dwarf2_build_psymtabs_hard): Update.
9986 * dwarf2/read.h (struct dwarf2_per_objfile) <type_unit_groups>:
9987 Change type to htab_up.
9988
b0b6a987
TT
99892020-02-08 Tom Tromey <tom@tromey.com>
9990
9991 * dwarf2/read.h (struct dwarf2_per_objfile) <signatured_types>:
9992 Change type to htab_up.
9993 * dwarf2/read.c (create_signatured_type_table_from_index)
9994 (create_signatured_type_table_from_debug_names)
9995 (create_all_type_units, add_type_unit)
9996 (lookup_dwo_signatured_type, lookup_signatured_type)
9997 (process_skeletonless_type_unit): Update.
9998 (create_debug_type_hash_table, create_debug_types_hash_table):
9999 Change type of types_htab.
10000 (allocate_signatured_type_table, allocate_dwo_unit_table): Return
10001 htab_up. Don't allocate on obstack.
10002 (create_cus_hash_table): Change type of cus_htab parameter.
10003 (struct dwo_file) <cus, tus>: Now htab_up.
10004 (lookup_dwo_signatured_type, lookup_dwo_cutu)
10005 (process_dwo_file_for_skeletonless_type_units, lookup_dwo_cutu)
10006 (queue_and_load_all_dwo_tus): Update.
10007 * dwarf2/index-write.c (write_gdbindex): Update.
10008 (write_debug_names): Update.
10009
39856def
TT
100102020-02-08 Tom Tromey <tom@tromey.com>
10011
10012 * dwarf2/read.h (struct dwarf2_queue_item): Move from
10013 dwarf2/read.c. Remove "next" member. Add constructor ntad
10014 destructor.
10015 (struct dwarf2_per_objfile) <queue>: New member.
10016 * dwarf2/read.c (struct dwarf2_queue_item): Move to
10017 dwarf2/read.h.
10018 (dwarf2_queue, dwarf2_queue_tail): Remove.
10019 (class dwarf2_queue_guard): Add parameter to constructor. Use
10020 DISABLE_COPY_AND_ASSIGN.
10021 <m_per_objfile>: New member.
10022 <~dwarf2_queue_guard>: Rewrite.
10023 (dw2_do_instantiate_symtab, queue_comp_unit, process_queue):
10024 Update.
10025 (~dwarf2_queue_item): New.
10026
3e225074
TT
100272020-02-08 Tom Tromey <tom@tromey.com>
10028
10029 * dwarf2/read.c (struct die_info) <has_children>: New member.
10030 (dw2_get_file_names_reader): Remove has_children.
10031 (dw2_get_file_names): Update.
10032 (read_cutu_die_from_dwo): Remove has_children.
10033 (cutu_reader::init_tu_and_read_dwo_dies)
10034 (cutu_reader::cutu_reader): Update.
10035 (process_psymtab_comp_unit_reader, build_type_psymtabs_reader):
10036 Remove has_children.
10037 (build_type_psymtabs_1, process_skeletonless_type_unit)
10038 (load_partial_comp_unit, load_full_comp_unit): Update.
10039 (create_dwo_cu_reader): Remove has_children.
10040 (create_cus_hash_table, read_die_and_children): Update.
10041 (read_full_die_1,read_full_die): Remove has_children.
10042 (read_signatured_type): Update.
10043 (class cutu_reader) <has_children>: Remove.
10044
82ca8957
TT
100452020-02-08 Tom Tromey <tom@tromey.com>
10046
10047 * dwarf2/expr.c: Rename from dwarf2expr.c.
10048 * dwarf2/expr.h: Rename from dwarf2expr.h.
10049 * dwarf2/frame-tailcall.c: Rename from dwarf2-frame-tailcall.c.
10050 * dwarf2/frame-tailcall.h: Rename from dwarf2-frame-tailcall.h.
10051 * dwarf2/frame.c: Rename from dwarf2-frame.c.
10052 * dwarf2/frame.h: Rename from dwarf2-frame.h.
10053 * dwarf2/index-cache.c: Rename from dwarf-index-cache.c.
10054 * dwarf2/index-cache.h: Rename from dwarf-index-cache.h.
10055 * dwarf2/index-common.c: Rename from dwarf-index-common.c.
10056 * dwarf2/index-common.h: Rename from dwarf-index-common.h.
10057 * dwarf2/index-write.c: Rename from dwarf-index-write.c.
10058 * dwarf2/index-write.h: Rename from dwarf-index-write.h.
10059 * dwarf2/loc.c: Rename from dwarf2loc.c.
10060 * dwarf2/loc.h: Rename from dwarf2loc.h.
10061 * dwarf2/read.c: Rename from dwarf2read.c.
10062 * dwarf2/read.h: Rename from dwarf2read.h.
10063 * dwarf2/abbrev.c, aarch64-tdep.c, alpha-tdep.c,
10064 amd64-darwin-tdep.c, arc-tdep.c, arm-tdep.c, bfin-tdep.c,
10065 compile/compile-c-symbols.c, compile/compile-cplus-symbols.c,
10066 compile/compile-loc2c.c, cris-tdep.c, csky-tdep.c, findvar.c,
10067 gdbtypes.c, guile/scm-type.c, h8300-tdep.c, hppa-bsd-tdep.c,
10068 hppa-linux-tdep.c, i386-darwin-tdep.c, i386-linux-tdep.c,
10069 i386-tdep.c, iq2000-tdep.c, m32c-tdep.c, m68hc11-tdep.c,
10070 m68k-tdep.c, microblaze-tdep.c, mips-tdep.c, mn10300-tdep.c,
10071 msp430-tdep.c, nds32-tdep.c, nios2-tdep.c, or1k-tdep.c,
10072 riscv-tdep.c, rl78-tdep.c, rs6000-tdep.c, rx-tdep.c, s12z-tdep.c,
10073 s390-tdep.c, score-tdep.c, sh-tdep.c, sparc-linux-tdep.c,
10074 sparc-tdep.c, sparc64-linux-tdep.c, sparc64-tdep.c, tic6x-tdep.c,
10075 tilegx-tdep.c, v850-tdep.c, xstormy16-tdep.c, xtensa-tdep.c:
10076 Update.
10077 * Makefile.in (COMMON_SFILES): Update.
10078 (HFILES_NO_SRCDIR): Update.
10079
9e35d499
TT
100802020-02-08 Tom Tromey <tom@tromey.com>
10081
10082 * dwarf2read.c (struct die_reader_specs) <comp_dir>: Remove.
10083 (init_cu_die_reader, read_cutu_die_from_dwo): Update.
10084
1eba2311
TT
100852020-02-08 Tom Tromey <tom@tromey.com>
10086
10087 * dwarf2read.h (struct die_info): Don't declare.
10088
e41c2da2
TT
100892020-02-08 Tom Tromey <tom@tromey.com>
10090
10091 * dwarf2read.h (die_info_ptr): Remove typedef.
10092
4fc6c0d5
TT
100932020-02-08 Tom Tromey <tom@tromey.com>
10094
10095 * dwarf2read.c (read_call_site_scope)
10096 (handle_data_member_location, dwarf2_add_member_fn)
10097 (mark_common_block_symbol_computed, read_common_block)
10098 (attr_to_dynamic_prop, partial_die_info::read)
10099 (var_decode_location, dwarf2_fetch_die_loc_sect_off)
10100 (dwarf2_symbol_mark_computed, set_die_type): Update.
10101 * dwarf2/attribute.h (struct attribute) <form_is_block>: Declare
10102 method.
10103 (attr_form_is_block): Don't declare.
10104 * dwarf2/attribute.c (attribute::form_is_block): Now a method.
10105
cd6c91b4
TT
101062020-02-08 Tom Tromey <tom@tromey.com>
10107
10108 * dwarf2read.c (dwarf2_find_base_address, )
10109 (read_call_site_scope, rust_containing_type)
10110 (dwarf2_get_pc_bounds, dwarf2_record_block_ranges)
10111 (handle_data_member_location, dwarf2_add_member_fn)
10112 (get_alignment, read_structure_type, process_structure_scope)
10113 (mark_common_block_symbol_computed, read_common_block)
10114 (read_tag_string_type, attr_to_dynamic_prop, read_subrange_type)
10115 (partial_die_info::read, read_attribute_value, new_symbol)
10116 (lookup_die_type, dwarf2_get_ref_die_offset)
10117 (dwarf2_get_attr_constant_value, follow_die_ref_or_sig)
10118 (dwarf2_fetch_die_loc_sect_off, get_DW_AT_signature_type)
10119 (dwarf2_symbol_mark_computed): Update.
10120 * dwarf2/attribute.h (struct attribute) <value_as_address,
10121 form_is_section_offset, form_is_constant, form_is_ref>: Declare
10122 methods.
10123 (value_as_address, attr_form_is_section_offset)
10124 (attr_form_is_constant, attr_form_is_ref): Don't declare.
10125 * dwarf2/attribute.c (attribute::value_as_address)
10126 (attribute::form_is_section_offset, attribute::form_is_constant)
10127 (attribute::form_is_ref): Now methods.
10128
162dce55
TT
101292020-02-08 Tom Tromey <tom@tromey.com>
10130
10131 * dwarf2read.c (struct attribute, DW_STRING)
10132 (DW_STRING_IS_CANONICAL, DW_UNSND, DW_BLOCK, DW_SND, DW_ADDR)
10133 (DW_SIGNATURE, struct dwarf_block, attr_value_as_address)
10134 (attr_form_is_block, attr_form_is_section_offset)
10135 (attr_form_is_constant, attr_form_is_ref): Move.
10136 * dwarf2/attribute.h: New file.
10137 * dwarf2/attribute.c: New file, from dwarf2read.c.
10138 * Makefile.in (COMMON_SFILES): Add dwarf2/attribute.c.
10139
3054dd54
TT
101402020-02-08 Tom Tromey <tom@tromey.com>
10141
10142 * dwarf2read.c (abbrev_table_up, struct abbrev_info)
10143 (struct attr_abbrev, ABBREV_HASH_SIZE, struct abbrev_table):
10144 Move.
10145 (read_cutu_die_from_dwo, build_type_psymtabs_1): Update.
10146 (abbrev_table::alloc_abbrev, abbrev_table::add_abbrev)
10147 (abbrev_table::lookup_abbrev, abbrev_table_read_table): Move to
10148 abbrev.c.
10149 * dwarf2/abbrev.h: New file.
10150 * dwarf2/abbrev.c: New file, from dwarf2read.c.
10151 * Makefile.in (COMMON_SFILES): Add dwarf2/abbrev.c.
10152
96b79293
TT
101532020-02-08 Tom Tromey <tom@tromey.com>
10154
10155 * dwarf2read.c (dwarf2_section_buffer_overflow_complaint)
10156 (dwarf2_section_size, dwarf2_get_section_info)
10157 (create_signatured_type_table_from_debug_names)
10158 (create_addrmap_from_aranges, read_debug_names_from_section)
10159 (get_gdb_index_contents_from_section, read_comp_unit_head)
10160 (error_check_comp_unit_head, read_abbrev_offset)
10161 (create_debug_type_hash_table, init_cu_die_reader)
10162 (read_cutu_die_from_dwo, dwarf2_build_psymtabs_hard)
10163 (read_comp_units_from_section, create_cus_hash_table)
10164 (create_dwp_hash_table, create_dwo_unit_in_dwp_v1)
10165 (create_dwp_v2_section, dwarf2_rnglists_process)
10166 (dwarf2_ranges_process, read_die_and_siblings, read_full_die)
10167 (abbrev_table_read_table, read_indirect_string_at_offset_from)
10168 (read_indirect_string_from_dwz, read_addr_index_1)
10169 (read_str_index, dwarf_decode_line_header, skip_form_bytes)
10170 (dwarf_decode_macro_bytes, dwarf_decode_macros)
10171 (fill_in_loclist_baton): Update.
10172 * dwarf2/section.h (struct dwarf2_section_info) <get_name,
10173 get_containing_section, get_bfd_owner, get_bfd_section,
10174 get_file_name, get_id, get_flags, empty, read>: Declare methods.
10175 (dwarf2_read_section, get_section_name, get_section_file_name)
10176 (get_containing_section, get_section_bfd_owner)
10177 (get_section_bfd_section, get_section_name, get_section_file_name)
10178 (get_section_id, get_section_flags, dwarf2_section_empty_p): Don't
10179 declare.
10180 * dwarf2/section.c (dwarf2_section_info::get_containing_section)
10181 (dwarf2_section_info::get_bfd_owner)
10182 (dwarf2_section_info::get_bfd_section)
10183 (dwarf2_section_info::get_name)
10184 (dwarf2_section_info::get_file_name, dwarf2_section_info::get_id)
10185 (dwarf2_section_info::get_flags, dwarf2_section_info::empty)
10186 (dwarf2_section_info::read): Now methods.
10187 * dwarf-index-write.c (class debug_names): Update.
10188
2c86cff9
TT
101892020-02-08 Tom Tromey <tom@tromey.com>
10190
10191 * dwarf2read.h (struct dwarf2_section_info, dwarf2_read_section):
10192 Move to dwarf2/section.h.
10193 * dwarf2read.c (get_containing_section, get_section_bfd_owner)
10194 (get_section_bfd_section, get_section_name)
10195 (get_section_file_name, get_section_id, get_section_flags)
10196 (dwarf2_section_empty_p, dwarf2_read_section): Moe to
10197 dwarf2/section.c.
10198 * dwarf2/section.h: New file.
10199 * dwarf2/section.c: New file, from dwarf2read.c.
10200 * Makefile.in (COMMON_SFILES): Add dwarf2/section.c.
10201
f4382c45
TT
102022020-02-08 Tom Tromey <tom@tromey.com>
10203
10204 * dwarf2read.h (read_unsigned_leb128): Don't declare.
10205 * dwarf2read.c (read_1_byte, read_1_signed_byte, read_2_bytes)
10206 (read_2_signed_bytes, read_3_bytes, read_4_bytes)
10207 (read_4_signed_bytes, read_8_bytes): Move to dwarf2/leb.h.
10208 (read_unsigned_leb128, read_signed_leb128): Move to dwarf2/leb.c.
10209 * dwarf2/leb.h: New file, from dwarf2read.c.
10210 * dwarf2/leb.c: New file, from dwarf2read.c.
10211 * dwarf2-frame.c (read_1_byte, read_4_bytes, read_8_bytes):
10212 Remove.
10213 * Makefile.in (CONFIG_SRC_SUBDIR): Add dwarf2.
10214 (COMMON_SFILES): Add dwarf2/leb.c.
10215
01840b7a
JB
102162020-02-08 Joel Brobecker <brobecker@adacore.com>
10217
10218 GDB 9.1 released.
10219
dfcb27e4
IB
102202020-02-05 Iain Buclaw <ibuclaw@gdcproject.org>
10221
10222 PR gdb/25190:
aac66a4c
SM
10223 * gdb/remote-sim.c (gdb_os_write_stderr): Update.
10224 * gdb/remote.c (remote_console_output): Update.
10225 * gdb/ui-file.c (fputs_unfiltered): Rename to...
10226 (ui_file_puts): ...this.
10227 * gdb/ui-file.h (ui_file_puts): Add declaration.
10228 * gdb/utils.c (emit_style_escape): Update.
10229 (flush_wrap_buffer): Update.
10230 (fputs_maybe_filtered): Update.
10231 (fputs_unfiltered): Add function.
dfcb27e4 10232
faa17681
IB
102332020-02-05 Iain Buclaw <ibuclaw@gdcproject.org>
10234
aac66a4c
SM
10235 * gdb/event-loop.c (gdb_wait_for_event): Update.
10236 * gdb/printcmd.c (printf_command): Update.
10237 * gdb/remote-fileio.c (remote_fileio_func_write): Update.
10238 * gdb/remote-sim.c (gdb_os_flush_stdout): Update.
10239 (gdb_os_flush_stderr): Update.
10240 * gdb/remote.c (remote_console_output): Update.
10241 * gdb/ui-file.c (gdb_flush): Rename to...
10242 (ui_file_flush): ...this.
10243 (stderr_file::write): Update.
10244 (stderr_file::puts): Update.
10245 * gdb/ui-file.h (gdb_flush): Rename to...
10246 (ui_file_flush): ...this.
10247 * gdb/utils.c (gdb_flush): Add function.
10248 * gdb/utils.h (gdb_flush): Add declaration.
faa17681 10249
5abbbe1d
TT
102502020-02-07 Tom Tromey <tromey@adacore.com>
10251
10252 PR breakpoints/24915:
10253 * source.c (find_and_open_source): Do not check basenames_may_differ.
10254
919adfe8
TT
102552020-02-07 Tom Tromey <tom@tromey.com>
10256
10257 * README: Update gdbserver documentation.
10258 * gdbserver: Move to top level.
10259 * configure.tgt (build_gdbserver): Remove.
10260 * configure.ac: Remove --enable-gdbserver.
10261 * configure: Rebuild.
10262 * Makefile.in (distclean): Don't mention gdbserver.
10263
1d5d29e7
SV
102642020-02-06 Shahab Vahedi <shahab@synopsys.com>
10265
10266 * source-cache.c (source_cache::ensure): Surround
10267 get_plain_source_lines with a try/catch.
10268 (source_cache::get_line_charpos): Get rid of try/catch
10269 and only check for the return value of "ensure".
10270 * tui/tui-source.c (tui_source_window::set_contents):
10271 Simplify "nlines" calculation.
10272
6eb1129c
SV
102732020-02-06 Shahab Vahedi <shahab@synopsys.com>
10274
10275 * MAINTAINERS (Write After Approval): Add myself.
10276
c6a42d11
CB
102772020-02-05 Christian Biesinger <cbiesinger@google.com>
10278
10279 * sparc-nat.h (struct sparc_target) <xfer_partial>: Fix base class
10280 function call.
10281
c8ecdda6
CB
102822020-02-05 Christian Biesinger <cbiesinger@google.com>
10283
10284 * ppc-nbsd-tdep.h: Fix macro name in #endif comment.
10285
f6480e70
MR
102862020-02-05 Maciej W. Rozycki <macro@wdc.com>
10287
10288 * nat/riscv-linux-tdesc.h: New file.
10289 * nat/riscv-linux-tdesc.c: New file, taking code from...
10290 * riscv-linux-nat.c (riscv_linux_nat_target::read_description):
10291 ... here.
10292 * configure.nat <linux> <riscv*>: Add nat/riscv-linux-tdesc.o to
10293 NATDEPFILES.
10294
dcc9fbc6
AB
102952020-02-04 Andrew Burgess <andrew.burgess@embecosm.com>
10296
10297 * remote-sim.c (sim_inferior_data::sim_inferior_data): Assert that
10298 we don't set the fake simulator ptid to the null_ptid.
10299
719546c4
SM
103002020-02-03 Simon Marchi <simon.marchi@efficios.com>
10301
10302 * fork-child.c (gdb_startup_inferior): Use bool instead of int.
10303 * gdbthread.h (class thread_info) <resumed>: Likewise.
10304 * infrun.c (resume_1): Likewise.
10305 (proceed): Likewise.
10306 (infrun_thread_stop_requested): Likewise.
10307 (stop_all_threads): Likewise.
10308 (handle_inferior_event): Likewise.
10309 (restart_threads): Likewise.
10310 (finish_step_over): Likewise.
10311 (keep_going_stepped_thread): Likewise.
10312 * linux-nat.c (attach_proc_task_lwp_callback): Likewise.
10313 (linux_handle_extended_wait): Likewise.
10314 * record-btrace.c (get_thread_current_frame_id): Likewise.
10315 * record-full.c (record_full_wait_1): Likewise.
10316 * remote.c (remote_target::process_initial_stop_replies): Likewise.
10317 * target.c (target_resume): Likewise.
10318 * thread.c (set_running_thread): Likewise.
10319
e409c542
AKS
103202020-02-03 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
10321
10322 * f-valprint.c (f77_print_array_1): Changed datatype of index
10323 variable to LONGEST from int to enable it to contain bound
10324 values correctly.
10325
ee98c0da
MR
103262020-02-03 Maciej W. Rozycki <macro@wdc.com>
10327
10328 * riscv-linux-nat.c [!NFPREG] (NFPREG): New macro.
10329 (supply_fpregset_regnum, fill_fpregset): Handle regset buffer
10330 offsets according to FLEN determined.
10331 (riscv_linux_nat_target::read_description): Determine FLEN
10332 dynamically.
10333 (riscv_linux_nat_target::fetch_registers): Size regset buffer
10334 according to FLEN determined.
10335 (riscv_linux_nat_target::store_registers): Likewise.
10336
aa66aac4
SV
103372020-02-01 Shahab Vahedi <shahab@synopsys.com>
10338
10339 * target-descriptions.c (tdesc_register_in_reggroup_p): Return 0
10340 when reg->group is empty and reggroup is not.
10341
fd9faca8
TT
103422020-01-31 Tom Tromey <tromey@adacore.com>
10343
10344 * ravenscar-thread.c (ravenscar_thread_target::mourn_inferior):
10345 Call beneath target's mourn_inferior after unpushing.
10346
42330a68
AB
103472020-01-31 Andrew Burgess <andrew.burgess@embecosm.com>
10348
10349 PR tui/9765
10350 * tui/tui-disasm.c (tui_find_disassembly_address): If we don't
10351 have enough lines to fill the screen, still return the lowest
10352 address we found.
10353
7a27a45b
AB
103542020-01-31 Andrew Burgess <andrew.burgess@embecosm.com>
10355
10356 * tui/tui-win.c (_initialize_tui_win): Update help text for '+',
10357 '-', '<', and '>' commands.
10358
c47f70e2
PA
103592020-01-29 Pedro Alves <palves@redhat.com>
10360 Sergio Durigan Junior <sergiodj@redhat.com>
10361
10362 * infcmd.c (construct_inferior_arguments): Assert that
10363 'argc' is greater than 0.
10364
5133a315
LM
103652020-01-29 Luis Machado <luis.machado@linaro.org>
10366
10367 * aarch64-tdep.c (BRK_INSN_MASK): Define to 0xffe0001f.
10368 (BRK_INSN_MASK): Define to 0xd4200000.
10369 (aarch64_program_breakpoint_here_p): New function.
10370 (aarch64_gdbarch_init): Set gdbarch_program_breakpoint_here_p hook.
10371 * arch-utils.c (default_program_breakpoint_here_p): Moved from
10372 breakpoint.c.
10373 * arch-utils.h (default_program_breakpoint_here_p): Moved from
10374 breakpoint.h
10375 * breakpoint.c (bp_loc_is_permanent): Changed return type to bool and
10376 call gdbarch_program_breakpoint_here_p.
10377 (program_breakpoint_here): Moved to arch-utils.c, renamed to
10378 default_program_breakpoint_here_p, changed return type to bool and
10379 simplified.
10380 * breakpoint.h (program_breakpoint_here): Moved prototype to
10381 arch-utils.h, renamed to default_program_breakpoint_here_p and changed
10382 return type to bool.
10383 * gdbarch.c: Regenerate.
10384 * gdbarch.h: Regenerate.
10385 * gdbarch.sh (program_breakpoint_here_p): New method.
10386 * infrun.c (handle_signal_stop): Call
10387 gdbarch_program_breakpoint_here_p.
10388
168f8c6b
TT
103892020-01-26 Tom Tromey <tom@tromey.com>
10390
10391 * ctfread.c (struct ctf_fp_info): Reindent.
10392 (_initialize_ctfread): Remove.
10393
128a391f
TT
103942020-01-26 Tom Tromey <tom@tromey.com>
10395
10396 * psymtab.c (partial_map_expand_apply)
10397 (psym_find_pc_sect_compunit_symtab, psym_lookup_symbol)
10398 (psymtab_to_symtab, psym_find_last_source_symtab, dump_psymtab)
10399 (psym_print_stats, psym_expand_symtabs_for_function)
10400 (psym_map_symbol_filenames, psym_map_matching_symbols)
10401 (psym_expand_symtabs_matching)
10402 (partial_symtab::read_dependencies, maintenance_info_psymtabs)
10403 (maintenance_check_psymtabs): Use new methods.
10404 * psympriv.h (struct partial_symtab) <readin_p,
10405 get_compunit_symtab>: New methods.
10406 <readin, compunit_symtab>: Remove members.
10407 (struct standard_psymtab): New.
10408 (struct legacy_psymtab): Derive from standard_psymtab.
10409 * dwarf2read.h (struct dwarf2_psymtab): Derive from
10410 standard_psymtab.
10411 * ctfread.c (struct ctf_psymtab): Derive from standard_psymtab.
10412
0494dbec
TT
104132020-01-26 Tom Tromey <tom@tromey.com>
10414
10415 * xcoffread.c (xcoff_psymtab_to_symtab_1): Call
10416 read_dependencies. Add assert.
10417 * psymtab.c (partial_symtab::read_dependencies): New method.
10418 * psympriv.h (struct partial_symtab) <read_dependencies>: New
10419 method.
10420 * mdebugread.c (psymtab_to_symtab_1): Call read_dependencies.
10421 * dwarf2read.c (dwarf2_psymtab::expand_psymtab): Call
10422 read_dependencies.
10423 * dbxread.c (dbx_psymtab_to_symtab_1): Call read_dependencies.
10424 Add assert.
10425
8566b89b
TT
104262020-01-26 Tom Tromey <tom@tromey.com>
10427
10428 * xcoffread.c (xcoff_psymtab_to_symtab_1): Change argument order.
10429 Call expand_psymtab.
10430 (xcoff_read_symtab): Call expand_psymtab.
10431 (xcoff_start_psymtab, xcoff_end_psymtab): Set
10432 legacy_expand_psymtab.
10433 * psympriv.h (struct partial_symtab) <expand_psymtab>: New
10434 method.
10435 (struct legacy_psymtab) <expand_psymtab>: Implement.
10436 <legacy_expand_psymtab>: New member.
10437 * mdebugread.c (mdebug_read_symtab): Call expand_psymtab.
10438 (parse_partial_symbols): Set legacy_expand_psymtab.
10439 (psymtab_to_symtab_1): Change argument order. Call
10440 expand_psymtab.
10441 (new_psymtab): Set legacy_expand_psymtab.
10442 * dwarf2read.h (struct dwarf2_psymtab) <expand_psymtab>: Declare.
10443 * dwarf2read.c (dwarf2_psymtab::read_symtab): Call
10444 expand_psymtab.
10445 (dwarf2_psymtab::expand_psymtab): Rename from
10446 psymtab_to_symtab_1. Call expand_psymtab.
10447 * dbxread.c (start_psymtab): Set legacy_expand_psymtab.
10448 (dbx_end_psymtab): Likewise.
10449 (dbx_psymtab_to_symtab_1): Change argument order. Call
10450 expand_psymtab.
10451 (dbx_read_symtab): Call expand_psymtab.
10452 * ctfread.c (struct ctf_psymtab) <expand_psymtab>: Declare.
10453 (ctf_psymtab::expand_psymtab): Rename from psymtab_to_symtab.
10454 (ctf_psymtab::read_symtab): Call expand_psymtab.
10455
077cbab2
TT
104562020-01-26 Tom Tromey <tom@tromey.com>
10457
10458 * xcoffread.c (xcoff_read_symtab): Remove prints. Add assert.
10459 * psymtab.c (psymtab_to_symtab): Print verbose "Reading"
10460 messages.
10461 * mdebugread.c (mdebug_read_symtab): Remove prints.
10462 * dwarf2read.c (dwarf2_psymtab::read_symtab): Remove prints. Add
10463 assert.
10464 * dbxread.c (dbx_read_symtab): Remove prints. Add assert.
10465
891813be
TT
104662020-01-26 Tom Tromey <tom@tromey.com>
10467
10468 * xcoffread.c (this_symtab_psymtab, read_xcoff_symtab)
10469 (xcoff_psymtab_to_symtab_1, xcoff_read_symtab)
10470 (xcoff_start_psymtab, xcoff_end_psymtab, scan_xcoff_symtab): Use
10471 legacy_symtab.
10472 * stabsread.h (dbx_end_psymtab): Use legacy_symtab.
10473 * psymtab.c (psymtab_to_symtab): Call method.
10474 (dump_psymtab): Update.
10475 * psympriv.h (struct partial_symtab): Add virtual destructor.
10476 <read_symtab>: New method.
10477 (struct legacy_symtab): New.
10478 * mdebugread.c (mdebug_read_symtab): Use legacy_psymtab.
10479 (struct pst_map) <pst>: Now a legacy_psymtab.
10480 (parse_procedure, parse_partial_symbols, psymtab_to_symtab_1)
10481 (new_psymtab): Use legacy_psymtab.
10482 * dwarf2read.h (struct dwarf2_psymtab): New.
10483 (struct dwarf2_per_cu_data) <psymtab>: Use it.
10484 * dwarf2read.c (dwarf2_create_include_psymtab)
10485 (dwarf2_build_include_psymtabs, create_type_unit_group)
10486 (create_partial_symtab, process_psymtab_comp_unit_reader)
10487 (build_type_psymtabs_reader, build_type_psymtab_dependencies)
10488 (set_partial_user): Use dwarf2_psymtab.
10489 (dwarf2_psymtab::read_symtab): Rename from dwarf2_read_symtab.
10490 (psymtab_to_symtab_1, process_full_comp_unit)
10491 (process_full_type_unit, dwarf2_ranges_read)
10492 (dwarf2_get_pc_bounds, psymtab_include_file_name)
10493 (dwarf_decode_lines): Use dwarf2_psymtab.
10494 * dwarf-index-write.c (psym_index_map): Use dwarf2_psymtab.
10495 (add_address_entry_worker, write_one_signatured_type)
10496 (recursively_count_psymbols, recursively_write_psymbols)
10497 (write_one_signatured_type, psyms_seen_size, write_gdbindex)
10498 (write_debug_names): Likewise.
10499 * dbxread.c (struct header_file_location): Take a legacy_psymtab.
10500 <pst>: Now a legacy_psymtab.
10501 (find_corresponding_bincl_psymtab): Return a legacy_psymtab.
10502 (read_dbx_symtab, start_psymtab, dbx_end_psymtab)
10503 (dbx_psymtab_to_symtab_1, read_ofile_symtab): Use legacy_psymtab.
10504 * ctfread.c (struct ctf_psymtab): New.
10505 (ctf_start_symtab, ctf_end_symtab, psymtab_to_symtab): Take a
10506 ctf_psymtab.
10507 (ctf_psymtab::read_symtab): Rename from ctf_read_symtab.
10508 (create_partial_symtab): Return a ctf_psymtab.
10509 (scan_partial_symbols): Update.
10510
c3693a1d
TT
105112020-01-26 Tom Tromey <tom@tromey.com>
10512
10513 * xcoffread.c (xcoff_start_psymtab): Use new.
10514 * psymtab.c (partial_symtab::partial_symtab): New constructor,
10515 renamed from start_psymtab_common.
10516 * psympriv.h (struct partial_symtab): Add new constructor.
10517 (start_psymtab_common): Don't declare.
10518 * mdebugread.c (parse_partial_symbols): Use new.
10519 * dwarf2read.c (create_partial_symtab): Use new.
10520 * dbxread.c (start_psymtab): Use new.
10521 * ctfread.c (create_partial_symtab): Use new.
10522
32caafd0
TT
105232020-01-26 Tom Tromey <tom@tromey.com>
10524
10525 * xcoffread.c (xcoff_end_psymtab): Use new.
10526 * psymtab.c (start_psymtab_common): Use new.
10527 (partial_symtab::partial_symtab): Rename from allocate_psymtab.
10528 Update.
10529 * psympriv.h (struct partial_symtab): Add parameters to
10530 constructor. Don't inline.
10531 (allocate_psymtab): Don't declare.
10532 * mdebugread.c (new_psymtab): Use new.
10533 * dwarf2read.c (dwarf2_create_include_psymtab): Use new.
10534 * dbxread.c (dbx_end_psymtab): Use new.
10535
abaa2f23
TT
105362020-01-26 Tom Tromey <tom@tromey.com>
10537
10538 * psymtab.h (class psymtab_storage) <install_psymtab>: Rename from
10539 allocate_psymtab. Update documentation.
10540 * psymtab.c (psymtab_storage::install_psymtab): Rename from
10541 allocate_psymtab. Do not use new.
10542 (allocate_psymtab): Use new. Update.
10543
6d94535f
TT
105442020-01-26 Tom Tromey <tom@tromey.com>
10545
10546 * xcoffread.c (xcoff_psymtab_to_symtab_1): Update.
10547 * psymtab.c (psym_print_stats): Update.
10548 * psympriv.h (struct partial_symtab) <readin,
10549 psymtabs_addrmap_supported, anonymous>: Now bool.
10550 * mdebugread.c (psymtab_to_symtab_1): Update.
10551 * dwarf2read.c (create_type_unit_group, create_partial_symtab)
10552 (build_type_psymtabs_reader, psymtab_to_symtab_1)
10553 (process_full_comp_unit, process_full_type_unit): Update.
10554 * dbxread.c (dbx_psymtab_to_symtab_1): Update.
10555 * ctfread.c (psymtab_to_symtab): Update.
10556
6f17252b
TT
105572020-01-26 Tom Tromey <tom@tromey.com>
10558
10559 * mdebugread.c (parse_partial_symbols): Use discard_psymtab.
10560 * psymtab.h (class psymtab_storage) <free_psymtabs>: Remove.
10561 * psymtab.c (psymtab_storage): Delete psymtabs.
10562 (psymtab_storage::allocate_psymtab): Use new.
10563 (psymtab_storage::discard_psymtab): Use delete.
10564 * psympriv.h (struct partial_symtab): Add constructor and
10565 initializers.
10566
f6f1cebc
TT
105672020-01-26 Tom Tromey <tom@tromey.com>
10568
10569 * machoread.c: Do not include psympriv.h.
10570
e47e48f6
PW
105712020-01-25 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10572
10573 * NEWS: Mention the new option and the set/show commands.
10574
a2fedca9
PW
105752020-01-25 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10576
10577 * exec.c (exec_file_mismatch_names, exec_file_mismatch_mode)
10578 (show_exec_file_mismatch_command, set_exec_file_mismatch_command)
10579 (validate_exec_file): New variables, enums, functions.
10580 (exec_file_locate_attach, print_section_info): Style the filenames.
10581 (_initialize_exec): Install show_exec_file_mismatch_command and
10582 set_exec_file_mismatch_command.
10583 * gdbcore.h (validate_exec_file): Declare.
10584 * infcmd.c (attach_command): Call validate_exec_file.
10585 * remote.c ( remote_target::remote_add_inferior): Likewise.
10586
7ffa82e1
AB
105872020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
10588
10589 * frame.c (find_frame_sal): Move call to get_next_frame into more
10590 inner scope.
10591 * inline-frame.c (inilne_state) <inline_state>: Update argument
10592 types.
10593 (inilne_state) <skipped_symbol>: Rename to...
10594 (inilne_state) <skipped_symbols>: ...this, and change to a vector.
10595 (skip_inline_frames): Build vector of skipped symbols and use this
10596 to reate the inline_state.
10597 (inline_skipped_symbol): Add a comment and some assertions, fetch
10598 skipped symbol from the list.
10599
3d92a3e3
AB
106002020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
10601
10602 * buildsym.c (lte_is_less_than): Delete.
10603 (buildsym_compunit::end_symtab_with_blockvector): Create local
10604 lambda function to sort line table entries, and use
10605 std::stable_sort instead of std::sort.
10606 * symtab.c (find_pc_sect_line): Skip backward over end of sequence
10607 markers when looking for a previous line.
10608
94a72be7
AB
106092020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
10610
10611 * dwarf2read.c (lnp_state_machine::record_line): Include
10612 end_sequence parameter in debug print out. Record the line if we
10613 are at an end_sequence marker even if it's not the start of a
10614 statement.
10615 * symmisc.c (maintenance_print_one_line_table): Print end of
10616 sequence markers with 'END' not '0'.
10617
53af73bf
PA
106182020-01-24 Pedro Alves <palves@redhat.com>
10619
10620 PR gdb/25410
10621 * thread.c (scoped_restore_current_thread::restore): Use
10622 switch_to_inferior_no_thread.
10623 * exec.c: Include "progspace-and-thread.h".
10624 (add_target_sections, remove_target_sections):
10625 scoped_restore_current_pspace_and_thread instead of
10626 scoped_restore_current_thread.
10627 * infrun.c (handle_vfork_child_exec_or_exit): Assign the pspace
10628 and aspace to the inferior before calling clone_program_space.
10629 Remove stale comment.
10630
3050c6f4
CB
106312020-01-24 Christian Biesinger <cbiesinger@google.com>
10632
10633 * arm-nbsd-nat.c (arm_nbsd_nat_target::fetch_registers): Rename to...
10634 (arm_netbsd_nat_target::fetch_registers): ...this.
10635 (arm_nbsd_nat_target::store_registers): Rename to...
10636 (arm_netbsd_nat_target::store_registers): ...this.
10637
73685c7e
CB
106382020-01-24 Christian Biesinger <cbiesinger@google.com>
10639
10640 * arm-nbsd-nat.c: Define _KERNTYPES to get the declaration of
10641 register_t.
10642
89203d40
CB
106432020-01-24 Christian Biesinger <cbiesinger@google.com>
10644
10645 * aarch64-fbsd-tdep.c (aarch64_fbsd_iterate_over_regset_sections):
10646 Update comment.
10647 * aarch64-linux-tdep.c (aarch64_linux_iterate_over_regset_sections):
10648 Likewise.
10649 * arm-fbsd-tdep.c (arm_fbsd_iterate_over_regset_sections): Likewise.
10650 * gdbcore.h (deprecated_add_core_fns): Update comment to point to
10651 the correct replacement (iterate_over_regset_sections).
10652 * riscv-fbsd-tdep.c (riscv_fbsd_iterate_over_regset_sections):
10653 Update comment.
10654
1ba1ac88
AB
106552020-01-24 Graham Markall <graham.markall@embecosm.com>
10656
10657 PR gdb/23718
10658 * gdb/python/python.c (execute_gdb_command): Call
10659 async_enable_stdin in catch block.
10660
f3364a6d
AB
106612020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
10662
10663 * event-loop.c (start_event_loop): Wrap async_enable_stdin with
10664 SWITCH_THRU_ALL_UIS.
10665
733d0a67
AB
106662020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
10667
10668 PR tui/9765
10669 * minsyms.c (lookup_minimal_symbol_by_pc_section): Update header
10670 comment, add extra parameter, and update to store previous symbol
10671 when appropriate.
10672 * minsyms.h (lookup_minimal_symbol_by_pc_section): Update comment,
10673 add extra parameter.
10674 * tui/tui-disasm.c (tui_disassemble): Update header comment,
10675 remove unneeded parameter, add try/catch around gdb_print_insn,
10676 rewrite to add items to asm_lines vector.
10677 (tui_find_backward_disassembly_start_address): New function.
10678 (tui_find_disassembly_address): Updated throughout.
10679 (tui_disasm_window::set_contents): Update for changes to
10680 tui_disassemble.
10681 (tui_disasm_window::do_scroll_vertical): No need to adjust the
10682 number of lines to scroll.
10683
b3b3bada
SM
106842020-01-23 Simon Marchi <simon.marchi@polymtl.ca>
10685
10686 * objfiles.h (ALL_OBJFILE_OSECTIONS): Move up.
10687 (SECT_OFF_DATA): Likewise.
10688 (SECT_OFF_RODATA): Likewise.
10689 (SECT_OFF_TEXT): Likewise.
10690 (SECT_OFF_BSS): Likewise.
10691 (struct objfile) <text_section_offset, data_section_offset>: New
10692 methods.
10693 * amd64-windows-tdep.c (amd64_windows_find_unwind_info): Use
10694 objfile::text_section_offset.
10695 * coff-pe-read.c (add_pe_forwarded_sym): Likewise.
10696 * coffread.c (coff_symtab_read): Likewise.
10697 (enter_linenos): Likewise.
10698 (process_coff_symbol): Likewise.
10699 * ctfread.c (get_objfile_text_range): Likewise.
10700 * dtrace-probe.c (dtrace_probe::get_relocated_address):
10701 Use objfile::data_section_offset.
10702 * dwarf2-frame.c (execute_cfa_program): Use
10703 objfile::text_section_offset.
10704 (dwarf2_frame_find_fde): Likewise.
10705 * dwarf2read.c (create_addrmap_from_index): Likewise.
10706 (create_addrmap_from_aranges): Likewise.
10707 (dw2_find_pc_sect_compunit_symtab): Likewise.
10708 (process_psymtab_comp_unit_reader): Likewise.
10709 (add_partial_symbol): Likewise.
10710 (add_partial_subprogram): Likewise.
10711 (process_full_comp_unit): Likewise.
10712 (read_file_scope): Likewise.
10713 (read_func_scope): Likewise.
10714 (read_lexical_block_scope): Likewise.
10715 (read_call_site_scope): Likewise.
10716 (dwarf2_rnglists_process): Likewise.
10717 (dwarf2_ranges_process): Likewise.
10718 (dwarf2_ranges_read): Likewise.
10719 (dwarf_decode_lines_1): Likewise.
10720 (new_symbol): Likewise.
10721 (dwarf2_fetch_die_loc_sect_off): Likewise.
10722 (dwarf2_per_cu_text_offset): Likewise.
10723 * hppa-bsd-tdep.c (hppabsd_find_global_pointer): Likewise.
10724 * hppa-tdep.c (read_unwind_info): Likewise.
10725 * ia64-tdep.c (ia64_find_unwind_table): Likewise.
10726 * psympriv.h (struct partial_symtab): Likewise.
10727 * psymtab.c (find_pc_sect_psymtab): Likewise.
10728 * solib-svr4.c (enable_break): Likewise.
10729 * stap-probe.c (relocate_address): Use
10730 objfile::data_section_offset.
10731 * xcoffread.c (enter_line_range): Use
10732 objfile::text_section_offset.
10733 (read_xcoff_symtab): Likewise.
10734
ab53f382
SM
107352020-01-23 Simon Marchi <simon.marchi@efficios.com>
10736
10737 * darwin-nat.c (darwin_nat_target::wait_1): Move `inf`
10738 declaration to narrower scopes.
10739
e7eee665
SM
107402020-01-23 Simon Marchi <simon.marchi@efficios.com>
10741
10742 * darwin-nat.h (struct darwin_exception_msg, enum
10743 darwin_msg_state, struct darwin_thread_info, darwin_thread_t):
10744 Move up.
10745 (class darwin_nat_target) <wait_1, check_new_threads,
10746 decode_exception_message, decode_message, stop_inferior,
10747 init_thread_list, ptrace_him, cancel_breakpoint>: Declare.
10748 * darwin-nat.c (darwin_check_new_threads): Rename to...
10749 (darwin_nat_target::check_new_threads): ... this.
10750 (darwin_suspend_inferior_it): Remove.
10751 (darwin_decode_exception_message): Rename to...
10752 (darwin_nat_target::decode_exception_message): ... this.
10753 (darwin_nat_target::resume): Pass target to find_inferior_ptid.
10754 (darwin_decode_message): Rename to...
10755 (darwin_nat_target::decode_message): ... this.
10756 (cancel_breakpoint): Rename to...
10757 (darwin_nat_target::cancel_breakpoint): ... this.
10758 (darwin_wait): Rename to...
10759 (darwin_nat_target::wait_1): ... this. Use range-based for loop
10760 instead of iterate_over_inferiors.
10761 (darwin_nat_target::wait): Call wait_1 instead of darwin_wait.
10762 (darwin_stop_inferior): Rename to...
10763 (darwin_nat_target::stop_inferior): ... this.
10764 (darwin_nat_target::kill): Call wait_1 instead of darwin_wait.
10765 (darwin_init_thread_list): Rename to...
10766 (darwin_nat_target::init_thread_list): ... this.
10767 (darwin_ptrace_him): Rename to...
10768 (darwin_nat_target::ptrace_him): ... this.
10769 (darwin_nat_target::create_inferior): Pass lambda function to
10770 fork_inferior.
10771 (darwin_nat_target::detach): Call stop_inferior instead of
10772 darwin_stop_inferior.
10773 * fork-inferior.h (fork_inferior): Change init_trace_fun
10774 parameter to gdb::function_view.
10775 * fork-inferior.c (fork_inferior): Likewise.
10776
c162ed3e
HD
107772020-01-23 Hannes Domani <ssbssa@yahoo.de>
10778
10779 * i386-cygwin-tdep.c (core_process_module_section): Update.
10780 * windows-nat.c (struct lm_info_windows): Add text_offset.
10781 (windows_xfer_shared_libraries): Update.
10782 * windows-tdep.c (windows_xfer_shared_library):
10783 Add text_offset_cached argument.
10784 * windows-tdep.h (windows_xfer_shared_library): Update.
10785
a1237872
SM
107862020-01-21 Simon Marchi <simon.marchi@efficios.com>
10787
10788 * gdbarch.sh: Add declaration for _initialize_gdbarch.
10789
b3ee6dd9
SM
107902020-01-21 Simon Marchi <simon.marchi@efficios.com>
10791
10792 * remote-sim.c (check_for_duplicate_sim_descriptor): Remove.
10793 (get_sim_inferior_data): Remove use of iterate_over_inferiors,
10794 replace with range-based for.
10795 (gdbsim_interrupt_inferior): Remove.
10796 (gdbsim_target::interrupt): Replace iterate_over_inferiors use
10797 with a range-based for. Inline code from
10798 gdbsim_interrupt_inferior.
10799
f9fac3c8
SM
108002020-01-21 Simon Marchi <simon.marchi@efficios.com>
10801
10802 * infrun.c (proceed): Fix indentation.
10803
f6474de9
TT
108042020-01-21 Tom Tromey <tromey@adacore.com>
10805
10806 * source-cache.c (source_cache::ensure): Call ext_lang_colorize.
10807 * python/python.c (python_extension_ops): Update.
10808 (gdbpy_colorize): New function.
10809 * python/lib/gdb/__init__.py (colorize): New function.
10810 * extension.h (ext_lang_colorize): Declare.
10811 * extension.c (ext_lang_colorize): New function.
10812 * extension-priv.h (struct extension_language_ops) <colorize>: New
10813 member.
10814 * cli/cli-style.c (_initialize_cli_style): Update help text.
10815
f0c702d4
LM
108162020-01-21 Luis Machado <luis.machado@linaro.org>
10817
10818 * aarch64-tdep.c (struct aarch64_displaced_step_closure)
10819 <cond>: Change type to bool.
10820 (aarch64_displaced_step_b_cond): Update cond to use bool type.
10821 (aarch64_displaced_step_cb): Likewise.
10822 (aarch64_displaced_step_tb): Likewise.
10823
1ab139e5
LM
108242020-01-21 Luis Machado <luis.machado@linaro.org>
10825
10826 * aarch64-tdep.c (aarch64_displaced_step_fixup): Add more debugging
10827 output.
10828
0c271889
LM
108292020-01-21 Luis Machado <luis.machado@linaro.org>
10830
10831 * aarch64-tdep.c (struct aarch64_displaced_step_closure )
10832 <pc_adjust>: Adjust the documentation.
10833 (aarch64_displaced_step_fixup): Check if PC really moved before
10834 adjusting it.
10835
4d89c1c7
TT
108362020-01-19 Tom Tromey <tom@tromey.com>
10837
10838 * disasm.c (~gdb_disassembler): New destructor.
10839 (gdb_buffered_insn_length): Call disassemble_free_target.
10840 * disasm.h (class gdb_disassembler): Declare destructor. Use
10841 DISABLE_COPY_AND_ASSIGN.
10842
c0ab21c2
TT
108432020-01-19 Tom Tromey <tom@tromey.com>
10844
10845 * dwarf2read.c (abbrev_table_up): Move typedef earlier.
10846 (die_reader_func_ftype): Remove.
10847 (cutu_reader): New class.
10848 (dw2_get_file_names_reader): Remove "data" parameter.
10849 (dw2_get_file_names): Use cutu_reader.
10850 (create_debug_type_hash_table): Update.
10851 (read_cutu_die_from_dwo): Update comment.
10852 (lookup_dwo_unit): Add dwo_name parameter.
10853 (cutu_reader::init_tu_and_read_dwo_dies): Now a method. Remove
10854 die_reader_func_ftype and data parameters.
10855 (cutu_reader::cutu_reader): Rename from init_cutu_and_read_dies.
10856 Remove die_reader_func_ftype and data parameters.
10857 (~cutu_reader): New; from init_cutu_and_read_dies.
10858 (cutu_reader::cutu_reader): Rename from
10859 init_cutu_and_read_dies_no_follow. Remove die_reader_func_ftype
10860 and data parameters.
10861 (init_cutu_and_read_dies_simple): Remove.
10862 (struct process_psymtab_comp_unit_data): Remove.
10863 (process_psymtab_comp_unit_reader): Remove data parameter; add
10864 want_partial_unit and pretend_language parameters.
10865 (process_psymtab_comp_unit): Use cutu_reader.
10866 (build_type_psymtabs_reader): Remove data parameter.
10867 (build_type_psymtabs_1): Use cutu_reader.
10868 (process_skeletonless_type_unit): Likewise.
10869 (load_partial_comp_unit_reader): Remove.
10870 (load_partial_comp_unit): Use cutu_reader.
10871 (load_full_comp_unit_reader): Remove.
10872 (load_full_comp_unit): Use cutu_reader.
10873 (struct create_dwo_cu_data): Remove.
10874 (create_dwo_cu_reader): Remove datap parameter; add dwo_file and
10875 dwo_unit parameters.
10876 (create_cus_hash_table): Use cutu_reader.
10877 (struct dwarf2_read_addr_index_data): Remove.
10878 (dwarf2_read_addr_index_reader): Remove.
10879 (dwarf2_read_addr_index): Use cutu_reader.
10880 (read_signatured_type_reader): Remove.
10881 (read_signatured_type): Use cutu_reader.
10882
45bbae5c
TT
108832020-01-19 Tom Tromey <tom@tromey.com>
10884
10885 * tui/tui.c (tui_show_assembly): Use tui_suppress_output.
10886 * tui/tui-wingeneral.h (class tui_suppress_output): New.
10887 (tui_wrefresh): Declare.
10888 * tui/tui-wingeneral.c (suppress_output): New global.
10889 (tui_suppress_output, ~tui_suppress_output): New constructor and
10890 destructor.
10891 (tui_wrefresh): New function.
10892 (tui_gen_win_info::refresh_window): Use tui_wrefresh.
10893 (tui_gen_win_info::make_window): Call wnoutrefresh when needed.
10894 * tui/tui-regs.h (struct tui_data_window) <no_refresh>: Declare
10895 method.
10896 * tui/tui-regs.c (tui_data_window::erase_data_content): Call
10897 tui_wrefresh.
10898 (tui_data_window::no_refresh): New method.
10899 (tui_data_item_window::refresh_window): Call tui_wrefresh.
10900 (tui_reg_command): Use tui_suppress_output
10901 * tui/tui-layout.c (tui_set_layout): Use tui_suppress_output.
10902 * tui/tui-data.h (struct tui_gen_win_info) <no_refresh>: New
10903 method.
10904 * tui/tui-command.c (tui_refresh_cmd_win): Call tui_wrefresh.
10905
4f13c1c0
TT
109062020-01-19 Tom Tromey <tom@tromey.com>
10907
10908 * tui/tui-winsource.c (tui_update_source_windows_with_line):
10909 Handle case where symtab is null.
10910
fa47e446
SM
109112020-01-19 Simon Marchi <simon.marchi@polymtl.ca>
10912
10913 * linux-fork.c (one_fork_p): Simplify.
10914
26f42329
SM
109152020-01-17 Simon Marchi <simon.marchi@efficios.com>
10916
10917 * top.c (struct qt_args): Remove.
10918 (kill_or_detach): Change return type to void, replace `void *`
10919 parameter with a proper one.
10920 (print_inferior_quit_action): Likewise.
10921 (quit_confirm): Use range-based for loop to iterate over inferiors.
10922 (quit_force): Likewise.
10923
a9ac81b1
SM
109242020-01-17 Simon Marchi <simon.marchi@efficios.com>
10925
10926 * mi/mi-main.c (run_one_inferior): Change return type to void, replace
10927 `void *` parameter with proper parameters.
10928 (mi_cmd_exec_run): Use range-based loop to iterate over inferiors.
10929 (print_one_inferior): Change return type to void, replace `void *`
10930 parameter with proper parameters.
10931 (mi_cmd_list_thread_groups): Use range-based loop to iterate over
10932 inferiors.
10933 (get_other_inferior): Remove.
10934 (mi_cmd_remove_inferior): Use range-based loop to iterate over
10935 inferiors.
10936
788eca49
SM
109372020-01-17 Simon Marchi <simon.marchi@efficios.com>
10938
10939 * mi/mi-interp.c (report_initial_inferior): Remove.
10940 (mi_interp::init): Use range-based for to iterate over inferiors.
10941
d9bc85b6
SM
109422020-01-17 Simon Marchi <simon.marchi@efficios.com>
10943
10944 * python/py-inferior.c (build_inferior_list): Remove.
10945 (gdbpy_ref): Use range-based for loop to iterate over inferiors.
10946
40c94099
CB
109472020-01-16 Christian Biesinger <cbiesinger@google.com>
10948
10949 * btrace.c (btrace_compute_ftrace_1): Fix spelling error (Unkown).
10950 (btrace_stitch_trace): Likewise.
10951 * charset.c (intermediate_encoding): Likewise (vaild).
10952 * nat/linux-btrace.c (linux_read_pt): Likewise (Unkown).
10953 * python/py-record-btrace.c (struct PyMethodDef): Likewise (occurences).
10954 * record-btrace.c (record_btrace_print_conf): Likewise (unkown).
10955
e0cdfe3c
HD
109562020-01-16 Hannes Domani <ssbssa@yahoo.de>
10957
10958 * windows-tdep.c (windows_get_tlb_type):
10959 Add rtl_user_process_parameters type.
10960
790f1718 109612020-01-16 Pedro Alves <palves@redhat.com>
aac66a4c 10962 Norbert Lange <nolange79@gmail.com>
790f1718
PA
10963
10964 PR build/24805
10965 * gdbsupport/gdb_proc_service.h (PS_EXPORT): New.
10966 (ps_get_thread_area, ps_getpid, ps_lcontinue, ps_lgetfpregs)
10967 (ps_lgetregs, ps_lsetfpregs, ps_lsetregs, ps_lstop, ps_pcontinue)
10968 (ps_pdread, ps_pdwrite, ps_pglobal_lookup, ps_pstop, ps_ptread)
10969 (ps_ptwrite, ps_lgetxregs, ps_lgetxregsize, ps_lsetxregs)
10970 (ps_plog): Redeclare exported functions with default visibility.
10971
3112ed97
NA
109722020-01-16 Nitika Achra <Nitika.Achra@amd.com>
10973
10974 * dwarf2loc.c (decode_debug_loclists_addresses): Handle
10975 DW_LLE_base_addressx, DW_LLE_startx_length, DW_LLE_start_length.
10976
8dc3273e
SM
109772020-01-15 Simon Marchi <simon.marchi@efficios.com>
10978
10979 * infcmd.c (post_create_inferior): Use get_thread_regcache
10980 instead of get_current_regcache.
10981
ff47f4f0
TT
109822020-01-14 Tom Tromey <tom@tromey.com>
10983
10984 PR symtab/12535:
10985 * python/python.c (gdbpy_decode_line): Treat empty string the same
10986 as no argument.
10987
975f45b7
TT
109882020-01-14 Tom Tromey <tom@tromey.com>
10989
10990 * Makefile.in (CLIBS): Remove second use of $(LIBIBERTY).
10991
25e57356
TT
109922020-01-14 Tom Tromey <tom@tromey.com>
10993
10994 * nat/linux-btrace.c: Don't include <config.h>.
10995 * nat/linux-ptrace.c: Don't include <config.h>.
10996 * nat/x86-linux-dregs.c: Don't include <config.h>.
10997
05ea2a05
TT
109982020-01-14 Tom Tromey <tom@tromey.com>
10999
11000 * configure: Rebuild.
11001 * configure.ac: Move many checks to ../gdbsupport/common.m4.
11002
01027315
TT
110032020-01-14 Tom Tromey <tom@tromey.com>
11004
11005 * nat/x86-linux-dregs.c: Include configh.h.
11006 * nat/linux-ptrace.c: Include configh.h.
11007 * nat/linux-btrace.c: Include configh.h.
11008 * defs.h: Include config.h, bfd.h.
11009 * configure.ac: Don't source common.host.
11010 (CONFIG_OBS, CONFIG_SRCS): Remove gdbsupport files.
11011 * configure: Rebuild.
11012 * acinclude.m4: Update path.
11013 * Makefile.in (SUPPORT, LIBSUPPORT, INCSUPPORT): New variables.
11014 (CONFIG_SRC_SUBDIR): Remove gdbsupport.
11015 (INTERNAL_CFLAGS_BASE): Add INCSUPPORT.
11016 (CLIBS): Add LIBSUPPORT.
11017 (CDEPS): Likewise.
11018 (COMMON_SFILES): Remove gdbsupport files.
11019 (HFILES_NO_SRCDIR): Likewise.
11020 (stamp-version): Update path to create-version.sh.
11021 (ALLDEPFILES): Remove gdbsupport files.
11022
b2ceabe8
TT
110232020-01-14 Tom Tromey <tom@tromey.com>
11024
11025 * gdbsupport/common.m4 (GDB_AC_COMMON): Define WIN32APILIBS and
11026 USE_WIN32API when needed.
11027 * configure.ac (USE_WIN32API): Don't define.
11028 (WIN32LIBS): Use WIN32APILIBS.
11029 * configure: Rebuild.
11030
25c51f71
TT
110312020-01-14 Tom Tromey <tom@tromey.com>
11032
11033 * configure: Rebuild.
11034 * gdbsupport/common.m4 (GDB_AC_COMMON): Fix indentation.
11035
717c684d
BE
110362020-01-14 Bernd Edlinger <bernd.edlinger@hotmail.de>
11037
11038 * skip.c (skip_function_command): Make skip w/o arguments use the
11039 name of the inlined function if pc is inside any inlined function.
11040
7da6a5b9
LM
110412020-01-14 Luis Machado <luis.machado@linaro.org>
11042
11043 * inf-ptrace.c (inf_ptrace_target::resume): Update comments.
11044 * infrun.c (resume_1): Likewise.
11045 (handle_inferior_event): Remove stale comment.
11046 * linux-nat.c (linux_nat_target::resume): Update comments.
11047 (save_stop_reason): Likewise.
11048 (linux_nat_filter_event): Likewise.
11049 * linux-nat.h (struct lwp_info) <stop_pc>, <stop_reason>: Likewise.
11050
44e4c775
AB
110512020-01-13 Andrew Burgess <andrew.burgess@embecosm.com>
11052
11053 * elfread.c (record_minimal_symbol): Set section index to 0 for
11054 non-allocatable sections.
11055
18a8505e
AT
11056
110572020-01-13 Ali Tamur <tamur@google.com>
11058
11059 * dwarf2read.c (dwarf2_debug_sections): Add debug_str_offsets sections.
11060 (dwarf2_cu): Add str_offsets_base field. Change the type of addr_base
11061 to gdb::optional. Update comments.
11062 (dwo_file): Update comments.
11063 (read_attribute): Update API to take an additional out parameter,
11064 need_reprocess. This is used to mark attributes that need other
11065 attributes (e.g. str_offsets_base) for correct computation which may not
11066 have been read yet.
11067 (read_attribute_reprocess): New function declaration.
11068 (read_addr_index): Likewise.
11069 (read_dwo_str_index): Likewise.
11070 (read_stub_str_index): Likewise.
11071 (dwarf2_per_objfile::locate_sections): Handle debug_str_offsets section.
11072 (lookup_addr_base): New function definition.
11073 (lookup_ranges_base): Likewise.
11074 (read_cutu_die_from_dwo): Use the new functions: lookup_addr_base,
11075 lookup_ranges_base.
11076 (init_cutu_and_read_dies): Update comments.
11077 (init_cutu_and_read_dies_no_follow): Change API to take parent compile
11078 unit. This is used to inherit parent's str_offsets_base and addr_base.
11079 Update comments.
11080 (init_cutu_and_read_dies_simple): Reflect API changes.
11081 (skip_one_die): Reflect API changes. Handle DW_FORM_rnglistx.
11082 (create_cus_hash_table): Change API to take parent compile unit.
11083 Reflect API changes.
11084 (open_and_init_dwo_file): Reflect API changes.
11085 (dwarf2_get_pc_bounds): Update comments.
11086 (dwarf2_record_block_ranges): Likewise.
11087 (read_full_die_1): Change implementation to reprocess attributes that
11088 need str_offsets_base and addr_base.
11089 (partial_die_info::read): Likewise.
11090 (read_attribute_reprocess): New function definition.
11091 (read_attribute_value): Change API to take an additional out parameter,
11092 need_reprocess. Handle DW_FORM_rnglistx. No longer trigger an error
11093 when a non-dwo compile unit has index based attributes.
11094 (read_attribute): Reflect API changes.
11095 (read_addr_index_1): Reflect API changes. Update comments.
11096 (dwarf2_read_addr_index_data): Reflect API changes.
11097 (dwarf2_read_addr_index): Likewise.
11098 (read_str_index): Change API and implementation. This becomes a helper
11099 to be used by the new string index related methods. Update error
11100 message and comments.
11101 (read_dwo_str_index): New function definition.
11102 (read_stub_str_index): Likewise.
11103 * dwarf2read.h (dwarf2_per_objfile): Add str_offsets field.
11104 * symfile.h (dwarf2_debug_sections): Likewise.
11105 * xcoffread.c (dwarf2_debug_sections): Likewise.
11106
0cac9354
SM
111072020-01-13 Simon Marchi <simon.marchi@efficios.com>
11108
11109 * gdbcore.h (struct core_fns) <core_read_registers>: Change
11110 core_reg_sect type to gdb_byte *.
11111 * arm-nbsd-nat.c (fetch_elfcore_registers): Likewise.
11112 * cris-tdep.c (fetch_core_registers): Likewise.
11113 * corelow.c (core_target::get_core_register_section): Change
11114 type of `contents` to gdb::byte_vector.
11115
9a6d629c
AB
111162020-01-13 Andrew Burgess <andrew.burgess@embecosm.com>
11117
11118 * tui/tui-wingeneral.c (box_win): Position the title in the center
11119 of the border.
11120
d8b2f9e3
SM
111212020-01-13 Simon Marchi <simon.marchi@polymtl.ca>
11122
11123 * corelow.c (core_target::get_core_register_section): Use
11124 std::vector instead of alloca.
11125
bb564c58
SM
111262020-01-13 Simon Marchi <simon.marchi@efficios.com>
11127
11128 * warning.m4: Add -Wmissing-declarations to build_warnings.
11129 * configure: Re-generate.
11130
6b366111
SM
111312020-01-13 Simon Marchi <simon.marchi@efficios.com>
11132
11133 * python/python.c (init__gdb_module): Add declaration.
11134
6c265988
SM
111352020-01-13 Simon Marchi <simon.marchi@efficios.com>
11136
11137 * aarch64-fbsd-nat.c (_initialize_aarch64_fbsd_nat): Add declaration.
11138 * aarch64-fbsd-tdep.c (_initialize_aarch64_fbsd_tdep): Add declaration.
11139 * aarch64-linux-nat.c (_initialize_aarch64_linux_nat): Add declaration.
11140 * aarch64-linux-tdep.c (_initialize_aarch64_linux_tdep): Add declaration.
11141 * aarch64-newlib-tdep.c (_initialize_aarch64_newlib_tdep): Add declaration.
11142 * aarch64-tdep.c (_initialize_aarch64_tdep): Add declaration.
11143 * ada-exp.y (_initialize_ada_exp): Add declaration.
11144 * ada-lang.c (_initialize_ada_language): Add declaration.
11145 * ada-tasks.c (_initialize_tasks): Add declaration.
11146 * agent.c (_initialize_agent): Add declaration.
11147 * aix-thread.c (_initialize_aix_thread): Add declaration.
11148 * alpha-bsd-nat.c (_initialize_alphabsd_nat): Add declaration.
11149 * alpha-linux-nat.c (_initialize_alpha_linux_nat): Add declaration.
11150 * alpha-linux-tdep.c (_initialize_alpha_linux_tdep): Add declaration.
11151 * alpha-nbsd-tdep.c (_initialize_alphanbsd_tdep): Add declaration.
11152 * alpha-obsd-tdep.c (_initialize_alphaobsd_tdep): Add declaration.
11153 * alpha-tdep.c (_initialize_alpha_tdep): Add declaration.
11154 * amd64-darwin-tdep.c (_initialize_amd64_darwin_tdep): Add declaration.
11155 * amd64-dicos-tdep.c (_initialize_amd64_dicos_tdep): Add declaration.
11156 * amd64-fbsd-nat.c (_initialize_amd64fbsd_nat): Add declaration.
11157 * amd64-fbsd-tdep.c (_initialize_amd64fbsd_tdep): Add declaration.
11158 * amd64-linux-nat.c (_initialize_amd64_linux_nat): Add declaration.
11159 * amd64-linux-tdep.c (_initialize_amd64_linux_tdep): Add declaration.
11160 * amd64-nbsd-nat.c (_initialize_amd64nbsd_nat): Add declaration.
11161 * amd64-nbsd-tdep.c (_initialize_amd64nbsd_tdep): Add declaration.
11162 * amd64-obsd-nat.c (_initialize_amd64obsd_nat): Add declaration.
11163 * amd64-obsd-tdep.c (_initialize_amd64obsd_tdep): Add declaration.
11164 * amd64-sol2-tdep.c (_initialize_amd64_sol2_tdep): Add declaration.
11165 * amd64-tdep.c (_initialize_amd64_tdep): Add declaration.
11166 * amd64-windows-nat.c (_initialize_amd64_windows_nat): Add declaration.
11167 * amd64-windows-tdep.c (_initialize_amd64_windows_tdep): Add declaration.
11168 * annotate.c (_initialize_annotate): Add declaration.
11169 * arc-newlib-tdep.c (_initialize_arc_newlib_tdep): Add declaration.
11170 * arc-tdep.c (_initialize_arc_tdep): Add declaration.
11171 * arch-utils.c (_initialize_gdbarch_utils): Add declaration.
11172 * arm-fbsd-nat.c (_initialize_arm_fbsd_nat): Add declaration.
11173 * arm-fbsd-tdep.c (_initialize_arm_fbsd_tdep): Add declaration.
11174 * arm-linux-nat.c (_initialize_arm_linux_nat): Add declaration.
11175 * arm-linux-tdep.c (_initialize_arm_linux_tdep): Add declaration.
11176 * arm-nbsd-nat.c (_initialize_arm_netbsd_nat): Add declaration.
11177 * arm-nbsd-tdep.c (_initialize_arm_netbsd_tdep): Add declaration.
11178 * arm-obsd-tdep.c (_initialize_armobsd_tdep): Add declaration.
11179 * arm-pikeos-tdep.c (_initialize_arm_pikeos_tdep): Add declaration.
11180 * arm-symbian-tdep.c (_initialize_arm_symbian_tdep): Add declaration.
11181 * arm-tdep.c (_initialize_arm_tdep): Add declaration.
11182 * arm-wince-tdep.c (_initialize_arm_wince_tdep): Add declaration.
11183 * auto-load.c (_initialize_auto_load): Add declaration.
11184 * auxv.c (_initialize_auxv): Add declaration.
11185 * avr-tdep.c (_initialize_avr_tdep): Add declaration.
11186 * ax-gdb.c (_initialize_ax_gdb): Add declaration.
11187 * bfin-linux-tdep.c (_initialize_bfin_linux_tdep): Add declaration.
11188 * bfin-tdep.c (_initialize_bfin_tdep): Add declaration.
11189 * break-catch-sig.c (_initialize_break_catch_sig): Add declaration.
11190 * break-catch-syscall.c (_initialize_break_catch_syscall): Add declaration.
11191 * break-catch-throw.c (_initialize_break_catch_throw): Add declaration.
11192 * breakpoint.c (_initialize_breakpoint): Add declaration.
11193 * bsd-uthread.c (_initialize_bsd_uthread): Add declaration.
11194 * btrace.c (_initialize_btrace): Add declaration.
11195 * charset.c (_initialize_charset): Add declaration.
11196 * cli/cli-cmds.c (_initialize_cli_cmds): Add declaration.
11197 * cli/cli-dump.c (_initialize_cli_dump): Add declaration.
11198 * cli/cli-interp.c (_initialize_cli_interp): Add declaration.
11199 * cli/cli-logging.c (_initialize_cli_logging): Add declaration.
11200 * cli/cli-script.c (_initialize_cli_script): Add declaration.
11201 * cli/cli-style.c (_initialize_cli_style): Add declaration.
11202 * coff-pe-read.c (_initialize_coff_pe_read): Add declaration.
11203 * coffread.c (_initialize_coffread): Add declaration.
11204 * compile/compile-cplus-types.c (_initialize_compile_cplus_types): Add declaration.
11205 * compile/compile.c (_initialize_compile): Add declaration.
11206 * complaints.c (_initialize_complaints): Add declaration.
11207 * completer.c (_initialize_completer): Add declaration.
11208 * copying.c (_initialize_copying): Add declaration.
11209 * corefile.c (_initialize_core): Add declaration.
11210 * corelow.c (_initialize_corelow): Add declaration.
11211 * cp-abi.c (_initialize_cp_abi): Add declaration.
11212 * cp-namespace.c (_initialize_cp_namespace): Add declaration.
11213 * cp-support.c (_initialize_cp_support): Add declaration.
11214 * cp-valprint.c (_initialize_cp_valprint): Add declaration.
11215 * cris-linux-tdep.c (_initialize_cris_linux_tdep): Add declaration.
11216 * cris-tdep.c (_initialize_cris_tdep): Add declaration.
11217 * csky-linux-tdep.c (_initialize_csky_linux_tdep): Add declaration.
11218 * csky-tdep.c (_initialize_csky_tdep): Add declaration.
11219 * ctfread.c (_initialize_ctfread): Add declaration.
11220 * d-lang.c (_initialize_d_language): Add declaration.
11221 * darwin-nat-info.c (_initialize_darwin_info_commands): Add declaration.
11222 * darwin-nat.c (_initialize_darwin_nat): Add declaration.
11223 * dbxread.c (_initialize_dbxread): Add declaration.
11224 * dcache.c (_initialize_dcache): Add declaration.
11225 * disasm-selftests.c (_initialize_disasm_selftests): Add declaration.
11226 * disasm.c (_initialize_disasm): Add declaration.
11227 * dtrace-probe.c (_initialize_dtrace_probe): Add declaration.
11228 * dummy-frame.c (_initialize_dummy_frame): Add declaration.
11229 * dwarf-index-cache.c (_initialize_index_cache): Add declaration.
11230 * dwarf-index-write.c (_initialize_dwarf_index_write): Add declaration.
11231 * dwarf2-frame-tailcall.c (_initialize_tailcall_frame): Add declaration.
11232 * dwarf2-frame.c (_initialize_dwarf2_frame): Add declaration.
11233 * dwarf2expr.c (_initialize_dwarf2expr): Add declaration.
11234 * dwarf2loc.c (_initialize_dwarf2loc): Add declaration.
11235 * dwarf2read.c (_initialize_dwarf2_read): Add declaration.
11236 * elfread.c (_initialize_elfread): Add declaration.
11237 * exec.c (_initialize_exec): Add declaration.
11238 * extension.c (_initialize_extension): Add declaration.
11239 * f-lang.c (_initialize_f_language): Add declaration.
11240 * f-valprint.c (_initialize_f_valprint): Add declaration.
11241 * fbsd-nat.c (_initialize_fbsd_nat): Add declaration.
11242 * fbsd-tdep.c (_initialize_fbsd_tdep): Add declaration.
11243 * filesystem.c (_initialize_filesystem): Add declaration.
11244 * findcmd.c (_initialize_mem_search): Add declaration.
11245 * findvar.c (_initialize_findvar): Add declaration.
11246 * fork-child.c (_initialize_fork_child): Add declaration.
11247 * frame-base.c (_initialize_frame_base): Add declaration.
11248 * frame-unwind.c (_initialize_frame_unwind): Add declaration.
11249 * frame.c (_initialize_frame): Add declaration.
11250 * frv-linux-tdep.c (_initialize_frv_linux_tdep): Add declaration.
11251 * frv-tdep.c (_initialize_frv_tdep): Add declaration.
11252 * ft32-tdep.c (_initialize_ft32_tdep): Add declaration.
11253 * gcore.c (_initialize_gcore): Add declaration.
11254 * gdb-demangle.c (_initialize_gdb_demangle): Add declaration.
11255 * gdb_bfd.c (_initialize_gdb_bfd): Add declaration.
11256 * gdbarch-selftests.c (_initialize_gdbarch_selftests): Add declaration.
11257 * gdbarch.c (_initialize_gdbarch): Add declaration.
11258 * gdbtypes.c (_initialize_gdbtypes): Add declaration.
11259 * gnu-nat.c (_initialize_gnu_nat): Add declaration.
11260 * gnu-v2-abi.c (_initialize_gnu_v2_abi): Add declaration.
11261 * gnu-v3-abi.c (_initialize_gnu_v3_abi): Add declaration.
11262 * go-lang.c (_initialize_go_language): Add declaration.
11263 * go32-nat.c (_initialize_go32_nat): Add declaration.
11264 * guile/guile.c (_initialize_guile): Add declaration.
11265 * h8300-tdep.c (_initialize_h8300_tdep): Add declaration.
11266 * hppa-linux-nat.c (_initialize_hppa_linux_nat): Add declaration.
11267 * hppa-linux-tdep.c (_initialize_hppa_linux_tdep): Add declaration.
11268 * hppa-nbsd-nat.c (_initialize_hppanbsd_nat): Add declaration.
11269 * hppa-nbsd-tdep.c (_initialize_hppanbsd_tdep): Add declaration.
11270 * hppa-obsd-nat.c (_initialize_hppaobsd_nat): Add declaration.
11271 * hppa-obsd-tdep.c (_initialize_hppabsd_tdep): Add declaration.
11272 * hppa-tdep.c (_initialize_hppa_tdep): Add declaration.
11273 * i386-bsd-nat.c (_initialize_i386bsd_nat): Add declaration.
11274 * i386-cygwin-tdep.c (_initialize_i386_cygwin_tdep): Add declaration.
11275 * i386-darwin-nat.c (_initialize_i386_darwin_nat): Add declaration.
11276 * i386-darwin-tdep.c (_initialize_i386_darwin_tdep): Add declaration.
11277 * i386-dicos-tdep.c (_initialize_i386_dicos_tdep): Add declaration.
11278 * i386-fbsd-nat.c (_initialize_i386fbsd_nat): Add declaration.
11279 * i386-fbsd-tdep.c (_initialize_i386fbsd_tdep): Add declaration.
11280 * i386-gnu-nat.c (_initialize_i386gnu_nat): Add declaration.
11281 * i386-gnu-tdep.c (_initialize_i386gnu_tdep): Add declaration.
11282 * i386-go32-tdep.c (_initialize_i386_go32_tdep): Add declaration.
11283 * i386-linux-nat.c (_initialize_i386_linux_nat): Add declaration.
11284 * i386-linux-tdep.c (_initialize_i386_linux_tdep): Add declaration.
11285 * i386-nbsd-nat.c (_initialize_i386nbsd_nat): Add declaration.
11286 * i386-nbsd-tdep.c (_initialize_i386nbsd_tdep): Add declaration.
11287 * i386-nto-tdep.c (_initialize_i386nto_tdep): Add declaration.
11288 * i386-obsd-nat.c (_initialize_i386obsd_nat): Add declaration.
11289 * i386-obsd-tdep.c (_initialize_i386obsd_tdep): Add declaration.
11290 * i386-sol2-nat.c (_initialize_amd64_sol2_nat): Add declaration.
11291 * i386-sol2-tdep.c (_initialize_i386_sol2_tdep): Add declaration.
11292 * i386-tdep.c (_initialize_i386_tdep): Add declaration.
11293 * i386-windows-nat.c (_initialize_i386_windows_nat): Add declaration.
11294 * ia64-libunwind-tdep.c (_initialize_libunwind_frame): Add declaration.
11295 * ia64-linux-nat.c (_initialize_ia64_linux_nat): Add declaration.
11296 * ia64-linux-tdep.c (_initialize_ia64_linux_tdep): Add declaration.
11297 * ia64-tdep.c (_initialize_ia64_tdep): Add declaration.
11298 * ia64-vms-tdep.c (_initialize_ia64_vms_tdep): Add declaration.
11299 * infcall.c (_initialize_infcall): Add declaration.
11300 * infcmd.c (_initialize_infcmd): Add declaration.
11301 * inflow.c (_initialize_inflow): Add declaration.
11302 * infrun.c (_initialize_infrun): Add declaration.
11303 * interps.c (_initialize_interpreter): Add declaration.
11304 * iq2000-tdep.c (_initialize_iq2000_tdep): Add declaration.
11305 * jit.c (_initialize_jit): Add declaration.
11306 * language.c (_initialize_language): Add declaration.
11307 * linux-fork.c (_initialize_linux_fork): Add declaration.
11308 * linux-nat.c (_initialize_linux_nat): Add declaration.
11309 * linux-tdep.c (_initialize_linux_tdep): Add declaration.
11310 * linux-thread-db.c (_initialize_thread_db): Add declaration.
11311 * lm32-tdep.c (_initialize_lm32_tdep): Add declaration.
11312 * m2-lang.c (_initialize_m2_language): Add declaration.
11313 * m32c-tdep.c (_initialize_m32c_tdep): Add declaration.
11314 * m32r-linux-nat.c (_initialize_m32r_linux_nat): Add declaration.
11315 * m32r-linux-tdep.c (_initialize_m32r_linux_tdep): Add declaration.
11316 * m32r-tdep.c (_initialize_m32r_tdep): Add declaration.
11317 * m68hc11-tdep.c (_initialize_m68hc11_tdep): Add declaration.
11318 * m68k-bsd-nat.c (_initialize_m68kbsd_nat): Add declaration.
11319 * m68k-bsd-tdep.c (_initialize_m68kbsd_tdep): Add declaration.
11320 * m68k-linux-nat.c (_initialize_m68k_linux_nat): Add declaration.
11321 * m68k-linux-tdep.c (_initialize_m68k_linux_tdep): Add declaration.
11322 * m68k-tdep.c (_initialize_m68k_tdep): Add declaration.
11323 * machoread.c (_initialize_machoread): Add declaration.
11324 * macrocmd.c (_initialize_macrocmd): Add declaration.
11325 * macroscope.c (_initialize_macroscope): Add declaration.
11326 * maint-test-options.c (_initialize_maint_test_options): Add declaration.
11327 * maint-test-settings.c (_initialize_maint_test_settings): Add declaration.
11328 * maint.c (_initialize_maint_cmds): Add declaration.
11329 * mdebugread.c (_initialize_mdebugread): Add declaration.
11330 * memattr.c (_initialize_mem): Add declaration.
11331 * mep-tdep.c (_initialize_mep_tdep): Add declaration.
11332 * mi/mi-cmd-env.c (_initialize_mi_cmd_env): Add declaration.
11333 * mi/mi-cmds.c (_initialize_mi_cmds): Add declaration.
11334 * mi/mi-interp.c (_initialize_mi_interp): Add declaration.
11335 * mi/mi-main.c (_initialize_mi_main): Add declaration.
11336 * microblaze-linux-tdep.c (_initialize_microblaze_linux_tdep): Add declaration.
11337 * microblaze-tdep.c (_initialize_microblaze_tdep): Add declaration.
11338 * mips-fbsd-nat.c (_initialize_mips_fbsd_nat): Add declaration.
11339 * mips-fbsd-tdep.c (_initialize_mips_fbsd_tdep): Add declaration.
11340 * mips-linux-nat.c (_initialize_mips_linux_nat): Add declaration.
11341 * mips-linux-tdep.c (_initialize_mips_linux_tdep): Add declaration.
11342 * mips-nbsd-nat.c (_initialize_mipsnbsd_nat): Add declaration.
11343 * mips-nbsd-tdep.c (_initialize_mipsnbsd_tdep): Add declaration.
11344 * mips-sde-tdep.c (_initialize_mips_sde_tdep): Add declaration.
11345 * mips-tdep.c (_initialize_mips_tdep): Add declaration.
11346 * mips64-obsd-nat.c (_initialize_mips64obsd_nat): Add declaration.
11347 * mips64-obsd-tdep.c (_initialize_mips64obsd_tdep): Add declaration.
11348 * mipsread.c (_initialize_mipsread): Add declaration.
11349 * mn10300-linux-tdep.c (_initialize_mn10300_linux_tdep): Add declaration.
11350 * mn10300-tdep.c (_initialize_mn10300_tdep): Add declaration.
11351 * moxie-tdep.c (_initialize_moxie_tdep): Add declaration.
11352 * msp430-tdep.c (_initialize_msp430_tdep): Add declaration.
11353 * nds32-tdep.c (_initialize_nds32_tdep): Add declaration.
11354 * nios2-linux-tdep.c (_initialize_nios2_linux_tdep): Add declaration.
11355 * nios2-tdep.c (_initialize_nios2_tdep): Add declaration.
11356 * nto-procfs.c (_initialize_procfs): Add declaration.
11357 * objc-lang.c (_initialize_objc_language): Add declaration.
11358 * observable.c (_initialize_observer): Add declaration.
11359 * opencl-lang.c (_initialize_opencl_language): Add declaration.
11360 * or1k-linux-tdep.c (_initialize_or1k_linux_tdep): Add declaration.
11361 * or1k-tdep.c (_initialize_or1k_tdep): Add declaration.
11362 * osabi.c (_initialize_gdb_osabi): Add declaration.
11363 * osdata.c (_initialize_osdata): Add declaration.
11364 * p-valprint.c (_initialize_pascal_valprint): Add declaration.
11365 * parse.c (_initialize_parse): Add declaration.
11366 * ppc-fbsd-nat.c (_initialize_ppcfbsd_nat): Add declaration.
11367 * ppc-fbsd-tdep.c (_initialize_ppcfbsd_tdep): Add declaration.
11368 * ppc-linux-nat.c (_initialize_ppc_linux_nat): Add declaration.
11369 * ppc-linux-tdep.c (_initialize_ppc_linux_tdep): Add declaration.
11370 * ppc-nbsd-nat.c (_initialize_ppcnbsd_nat): Add declaration.
11371 * ppc-nbsd-tdep.c (_initialize_ppcnbsd_tdep): Add declaration.
11372 * ppc-obsd-nat.c (_initialize_ppcobsd_nat): Add declaration.
11373 * ppc-obsd-tdep.c (_initialize_ppcobsd_tdep): Add declaration.
11374 * printcmd.c (_initialize_printcmd): Add declaration.
11375 * probe.c (_initialize_probe): Add declaration.
11376 * proc-api.c (_initialize_proc_api): Add declaration.
11377 * proc-events.c (_initialize_proc_events): Add declaration.
11378 * proc-service.c (_initialize_proc_service): Add declaration.
11379 * procfs.c (_initialize_procfs): Add declaration.
11380 * producer.c (_initialize_producer): Add declaration.
11381 * psymtab.c (_initialize_psymtab): Add declaration.
11382 * python/python.c (_initialize_python): Add declaration.
11383 * ravenscar-thread.c (_initialize_ravenscar): Add declaration.
11384 * record-btrace.c (_initialize_record_btrace): Add declaration.
11385 * record-full.c (_initialize_record_full): Add declaration.
11386 * record.c (_initialize_record): Add declaration.
11387 * regcache-dump.c (_initialize_regcache_dump): Add declaration.
11388 * regcache.c (_initialize_regcache): Add declaration.
11389 * reggroups.c (_initialize_reggroup): Add declaration.
11390 * remote-notif.c (_initialize_notif): Add declaration.
11391 * remote-sim.c (_initialize_remote_sim): Add declaration.
11392 * remote.c (_initialize_remote): Add declaration.
11393 * reverse.c (_initialize_reverse): Add declaration.
11394 * riscv-fbsd-nat.c (_initialize_riscv_fbsd_nat): Add declaration.
11395 * riscv-fbsd-tdep.c (_initialize_riscv_fbsd_tdep): Add declaration.
11396 * riscv-linux-nat.c (_initialize_riscv_linux_nat): Add declaration.
11397 * riscv-linux-tdep.c (_initialize_riscv_linux_tdep): Add declaration.
11398 * riscv-tdep.c (_initialize_riscv_tdep): Add declaration.
11399 * rl78-tdep.c (_initialize_rl78_tdep): Add declaration.
11400 * rs6000-aix-tdep.c (_initialize_rs6000_aix_tdep): Add declaration.
11401 * rs6000-lynx178-tdep.c (_initialize_rs6000_lynx178_tdep):
11402 Add declaration.
11403 * rs6000-nat.c (_initialize_rs6000_nat): Add declaration.
11404 * rs6000-tdep.c (_initialize_rs6000_tdep): Add declaration.
11405 * run-on-main-thread.c (_initialize_run_on_main_thread): Add declaration.
11406 * rust-exp.y (_initialize_rust_exp): Add declaration.
11407 * rx-tdep.c (_initialize_rx_tdep): Add declaration.
11408 * s12z-tdep.c (_initialize_s12z_tdep): Add declaration.
11409 * s390-linux-nat.c (_initialize_s390_nat): Add declaration.
11410 * s390-linux-tdep.c (_initialize_s390_linux_tdep): Add declaration.
11411 * s390-tdep.c (_initialize_s390_tdep): Add declaration.
11412 * score-tdep.c (_initialize_score_tdep): Add declaration.
11413 * ser-go32.c (_initialize_ser_dos): Add declaration.
11414 * ser-mingw.c (_initialize_ser_windows): Add declaration.
11415 * ser-pipe.c (_initialize_ser_pipe): Add declaration.
11416 * ser-tcp.c (_initialize_ser_tcp): Add declaration.
11417 * ser-uds.c (_initialize_ser_socket): Add declaration.
11418 * ser-unix.c (_initialize_ser_hardwire): Add declaration.
11419 * serial.c (_initialize_serial): Add declaration.
11420 * sh-linux-tdep.c (_initialize_sh_linux_tdep): Add declaration.
11421 * sh-nbsd-nat.c (_initialize_shnbsd_nat): Add declaration.
11422 * sh-nbsd-tdep.c (_initialize_shnbsd_tdep): Add declaration.
11423 * sh-tdep.c (_initialize_sh_tdep): Add declaration.
11424 * skip.c (_initialize_step_skip): Add declaration.
11425 * sol-thread.c (_initialize_sol_thread): Add declaration.
11426 * solib-aix.c (_initialize_solib_aix): Add declaration.
11427 * solib-darwin.c (_initialize_darwin_solib): Add declaration.
11428 * solib-dsbt.c (_initialize_dsbt_solib): Add declaration.
11429 * solib-frv.c (_initialize_frv_solib): Add declaration.
11430 * solib-svr4.c (_initialize_svr4_solib): Add declaration.
11431 * solib-target.c (_initialize_solib_target): Add declaration.
11432 * solib.c (_initialize_solib): Add declaration.
11433 * source-cache.c (_initialize_source_cache): Add declaration.
11434 * source.c (_initialize_source): Add declaration.
11435 * sparc-linux-nat.c (_initialize_sparc_linux_nat): Add declaration.
11436 * sparc-linux-tdep.c (_initialize_sparc_linux_tdep): Add declaration.
11437 * sparc-nat.c (_initialize_sparc_nat): Add declaration.
11438 * sparc-nbsd-nat.c (_initialize_sparcnbsd_nat): Add declaration.
11439 * sparc-nbsd-tdep.c (_initialize_sparcnbsd_tdep): Add declaration.
11440 * sparc-obsd-tdep.c (_initialize_sparc32obsd_tdep): Add declaration.
11441 * sparc-sol2-tdep.c (_initialize_sparc_sol2_tdep): Add declaration.
11442 * sparc-tdep.c (_initialize_sparc_tdep): Add declaration.
11443 * sparc64-fbsd-nat.c (_initialize_sparc64fbsd_nat): Add declaration.
11444 * sparc64-fbsd-tdep.c (_initialize_sparc64fbsd_tdep): Add declaration.
11445 * sparc64-linux-nat.c (_initialize_sparc64_linux_nat): Add declaration.
11446 * sparc64-linux-tdep.c (_initialize_sparc64_linux_tdep): Add declaration.
11447 * sparc64-nat.c (_initialize_sparc64_nat): Add declaration.
11448 * sparc64-nbsd-nat.c (_initialize_sparc64nbsd_nat): Add declaration.
11449 * sparc64-nbsd-tdep.c (_initialize_sparc64nbsd_tdep): Add declaration.
11450 * sparc64-obsd-nat.c (_initialize_sparc64obsd_nat): Add declaration.
11451 * sparc64-obsd-tdep.c (_initialize_sparc64obsd_tdep): Add declaration.
11452 * sparc64-sol2-tdep.c (_initialize_sparc64_sol2_tdep): Add declaration.
11453 * sparc64-tdep.c (_initialize_sparc64_adi_tdep): Add declaration.
11454 * stabsread.c (_initialize_stabsread): Add declaration.
11455 * stack.c (_initialize_stack): Add declaration.
11456 * stap-probe.c (_initialize_stap_probe): Add declaration.
11457 * std-regs.c (_initialize_frame_reg): Add declaration.
11458 * symfile-debug.c (_initialize_symfile_debug): Add declaration.
11459 * symfile-mem.c (_initialize_symfile_mem): Add declaration.
11460 * symfile.c (_initialize_symfile): Add declaration.
11461 * symmisc.c (_initialize_symmisc): Add declaration.
11462 * symtab.c (_initialize_symtab): Add declaration.
11463 * target.c (_initialize_target): Add declaration.
11464 * target-connection.c (_initialize_target_connection): Add
11465 declaration.
11466 * target-dcache.c (_initialize_target_dcache): Add declaration.
11467 * target-descriptions.c (_initialize_target_descriptions): Add declaration.
11468 * thread.c (_initialize_thread): Add declaration.
11469 * tic6x-linux-tdep.c (_initialize_tic6x_linux_tdep): Add declaration.
11470 * tic6x-tdep.c (_initialize_tic6x_tdep): Add declaration.
11471 * tilegx-linux-nat.c (_initialize_tile_linux_nat): Add declaration.
11472 * tilegx-linux-tdep.c (_initialize_tilegx_linux_tdep): Add declaration.
11473 * tilegx-tdep.c (_initialize_tilegx_tdep): Add declaration.
11474 * tracectf.c (_initialize_ctf): Add declaration.
11475 * tracefile-tfile.c (_initialize_tracefile_tfile): Add declaration.
11476 * tracefile.c (_initialize_tracefile): Add declaration.
11477 * tracepoint.c (_initialize_tracepoint): Add declaration.
11478 * tui/tui-hooks.c (_initialize_tui_hooks): Add declaration.
11479 * tui/tui-interp.c (_initialize_tui_interp): Add declaration.
11480 * tui/tui-layout.c (_initialize_tui_layout): Add declaration.
11481 * tui/tui-regs.c (_initialize_tui_regs): Add declaration.
11482 * tui/tui-stack.c (_initialize_tui_stack): Add declaration.
11483 * tui/tui-win.c (_initialize_tui_win): Add declaration.
11484 * tui/tui.c (_initialize_tui): Add declaration.
11485 * typeprint.c (_initialize_typeprint): Add declaration.
11486 * ui-style.c (_initialize_ui_style): Add declaration.
11487 * unittests/array-view-selftests.c (_initialize_array_view_selftests): Add declaration.
11488 * unittests/child-path-selftests.c (_initialize_child_path_selftests): Add declaration.
11489 * unittests/cli-utils-selftests.c (_initialize_cli_utils_selftests): Add declaration.
11490 * unittests/common-utils-selftests.c (_initialize_common_utils_selftests): Add declaration.
11491 * unittests/copy_bitwise-selftests.c (_initialize_copy_bitwise_utils_selftests): Add declaration.
11492 * unittests/environ-selftests.c (_initialize_environ_selftests): Add declaration.
11493 * unittests/filtered_iterator-selftests.c
11494 (_initialize_filtered_iterator_selftests): Add declaration.
11495 * unittests/format_pieces-selftests.c (_initialize_format_pieces_selftests): Add declaration.
11496 * unittests/function-view-selftests.c (_initialize_function_view_selftests): Add declaration.
11497 * unittests/help-doc-selftests.c (_initialize_help_doc_selftests): Add declaration.
11498 * unittests/lookup_name_info-selftests.c (_initialize_lookup_name_info_selftests): Add declaration.
11499 * unittests/main-thread-selftests.c
11500 (_initialize_main_thread_selftests): Add declaration.
11501 * unittests/memory-map-selftests.c (_initialize_memory_map_selftests): Add declaration.
11502 * unittests/memrange-selftests.c (_initialize_memrange_selftests): Add declaration.
11503 * unittests/mkdir-recursive-selftests.c (_initialize_mkdir_recursive_selftests): Add declaration.
11504 * unittests/observable-selftests.c (_initialize_observer_selftest): Add declaration.
11505 * unittests/offset-type-selftests.c (_initialize_offset_type_selftests): Add declaration.
11506 * unittests/optional-selftests.c (_initialize_optional_selftests): Add declaration.
11507 * unittests/parse-connection-spec-selftests.c (_initialize_parse_connection_spec_selftests): Add declaration.
11508 * unittests/rsp-low-selftests.c (_initialize_rsp_low_selftests): Add declaration.
11509 * unittests/scoped_fd-selftests.c (_initialize_scoped_fd_selftests): Add declaration.
11510 * unittests/scoped_mmap-selftests.c (_initialize_scoped_mmap_selftests): Add declaration.
11511 * unittests/scoped_restore-selftests.c (_initialize_scoped_restore_selftests): Add declaration.
11512 * unittests/string_view-selftests.c (_initialize_string_view_selftests): Add declaration.
11513 * unittests/style-selftests.c (_initialize_style_selftest): Add declaration.
11514 * unittests/tracepoint-selftests.c (_initialize_tracepoint_selftests): Add declaration.
11515 * unittests/tui-selftests.c (_initialize_tui_selftest): Add
11516 declaration.
11517 * unittests/unpack-selftests.c (_initialize_unpack_selftests): Add declaration.
11518 * unittests/utils-selftests.c (_initialize_utils_selftests): Add declaration.
11519 * unittests/vec-utils-selftests.c (_initialize_vec_utils_selftests): Add declaration.
11520 * unittests/xml-utils-selftests.c (_initialize_xml_utils): Add declaration.
11521 * user-regs.c (_initialize_user_regs): Add declaration.
11522 * utils.c (_initialize_utils): Add declaration.
11523 * v850-tdep.c (_initialize_v850_tdep): Add declaration.
11524 * valops.c (_initialize_valops): Add declaration.
11525 * valprint.c (_initialize_valprint): Add declaration.
11526 * value.c (_initialize_values): Add declaration.
11527 * varobj.c (_initialize_varobj): Add declaration.
11528 * vax-bsd-nat.c (_initialize_vaxbsd_nat): Add declaration.
11529 * vax-nbsd-tdep.c (_initialize_vaxnbsd_tdep): Add declaration.
11530 * vax-tdep.c (_initialize_vax_tdep): Add declaration.
11531 * windows-nat.c (_initialize_windows_nat): Add declaration.
11532 (_initialize_check_for_gdb_ini): Add declaration.
11533 (_initialize_loadable): Add declaration.
11534 * windows-tdep.c (_initialize_windows_tdep): Add declaration.
11535 * x86-bsd-nat.c (_initialize_x86_bsd_nat): Add declaration.
11536 * x86-linux-nat.c (_initialize_x86_linux_nat): Add declaration.
11537 * xcoffread.c (_initialize_xcoffread): Add declaration.
11538 * xml-support.c (_initialize_xml_support): Add declaration.
11539 * xstormy16-tdep.c (_initialize_xstormy16_tdep): Add declaration.
11540 * xtensa-linux-nat.c (_initialize_xtensa_linux_nat): Add declaration.
11541 * xtensa-linux-tdep.c (_initialize_xtensa_linux_tdep): Add declaration.
11542 * xtensa-tdep.c (_initialize_xtensa_tdep): Add declaration.
11543
e2de1eec
SM
115442020-01-13 Simon Marchi <simon.marchi@polymtl.ca>
11545
11546 * regformats/regdat.sh: Generate declaration for init function.
11547
e0037b4c
SM
115482020-01-13 Simon Marchi <simon.marchi@polymtl.ca>
11549
11550 * remote-sim.c (next_pid, INITIAL_PID, sim_inferior_data): Move
11551 up.
11552 (gdbsim_target) <get_inferior_data_by_ptid, resume_one_inferior,
11553 close_one_inferior>: New methods.
11554 (get_sim_inferior_data_by_ptid): Move to gdbsim_target,
11555 pass down target to find_inferior_pid.
11556 (gdbsim_target::fetch_registers, gdbsim_target::store_registers):
11557 Pass down target to find_inferior_ptid.
11558 (gdbsim_target::create_inferior): Pass down target to
11559 add_thread_silent.
11560 (gdbsim_close_inferior): Move to gdbsim_close_inferior, pass
11561 target down to find_inferior_ptid and switch_to_thread.
11562 (gdbsim_target::close): Update to call close_one_inferior.
11563 (struct resume_data): Remove.
11564 (gdbsim_resume_inferior): Move to gdbsim_target. Take arguments
11565 directly, rather than through a void pointer.
11566 (gdbsim_target::resume): Update to call resume_one_inferior.
11567
58920b5b
SM
115682020-01-12 Simon Marchi <simon.marchi@polymtl.ca>
11569
11570 * gdbsupport/gdb_wait.c: Include gdb_wait.h.
11571
4ec89149
PA
115722020-01-12 Pedro Alves <palves@redhat.com>
11573
11574 * bsd-kvm.c (bsd_kvm_target::close): Call exit_inferior_silent
11575 directly for the current inferior instead of
11576 discard_all_inferiors.
11577 (discard_all_inferiors): Delete.
11578
7c392d1d
TT
115792020-01-11 Tom Tromey <tom@tromey.com>
11580
11581 * tui/tui-wingeneral.c (box_win): Check cli_styling.
11582 * tui/tui-winsource.c (tui_source_window_base::refill): Use
11583 deprecated_safe_get_selected_frame.
11584
d9ebdab7
TBA
115852020-01-10 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
11586
11587 * inferior.c (print_inferior): Switch inferior before printing it.
11588
f3c469b9
PA
115892020-01-10 Aleksandar Paunovic <aleksandar.paunovic@intel.com>
11590 Pedro Alves <palves@redhat.com>
11591
11592 * progspace-and-thread.c (switch_to_program_space_and_thread):
11593 Assert there's an inferior for PSPACE. Use
11594 switch_to_inferior_no_thread to switch the inferior too.
11595 * progspace.c (program_space::~program_space): Call
11596 clear_symtab_users here, with SYMFILE_DEFER_BP_RESET.
11597 (program_space::free_all_objfiles): Don't call clear_symtab_users
11598 here.
11599 * symfile.c (symbol_file_clear): Call clear_symtab_users here.
11600
65c574f6
PA
116012020-01-10 Pedro Alves <palves@redhat.com>
11602
11603 * NEWS: Mention multi-target debugging, "info connections", and
11604 "add-inferior -no-connection".
11605
2f4fcf00
PA
116062020-01-10 Pedro Alves <palves@redhat.com>
11607
11608 * infrun.c: Include "target-connection.h".
11609 (check_multi_target_resumption): New.
11610 (proceed): Call it.
11611 * target-connection.c (make_target_connection_string): Make
11612 extern.
11613 * target-connection.h (make_target_connection_string): Declare.
11614
121b3efd
PA
116152020-01-10 Pedro Alves <palves@redhat.com>
11616
11617 * Makefile.in (COMMON_SFILES): Add target-connection.c.
11618 * inferior.c (uiout_field_connection): New function.
11619 (print_inferior): Add new "connection-id" column.
11620 (add_inferior_command): Show connection number/string of added
11621 inferior.
11622 * process-stratum-target.h
11623 (process_stratum_target::connection_string): New virtual method.
11624 (process_stratum_target::connection_number): New field.
11625 * remote.c (remote_target::connection_string): New override.
11626 * target-connection.c: New file.
11627 * target-connection.h: New file.
11628 * target.c (decref_target): Remove process_stratum targets from
11629 the connection list.
11630 (target_stack::push): Add process_stratum targets to the
11631 connection list.
11632
4f837581
PA
116332020-01-10 Pedro Alves <palves@redhat.com>
11634
11635 Revert:
11636 2016-04-12 Pedro Alves <palves@redhat.com>
11637 * serial.c (serial_open, serial_fdopen_ops, do_serial_close):
11638 Remove references to name.
11639 * serial.h (struct serial) <name>: Delete.
11640
f4ec508e
PA
116412020-01-10 Pedro Alves <palves@redhat.com>
11642
11643 * gdbarch-selftests.c (register_to_value_test): Remove "target
11644 already pushed" check.
11645
5b6d1e4f
PA
116462020-01-10 Pedro Alves <palves@redhat.com>
11647 John Baldwin <jhb@FreeBSD.org>
11648
11649 * aarch64-linux-nat.c
11650 (aarch64_linux_nat_target::thread_architecture): Adjust.
11651 * ada-tasks.c (print_ada_task_info): Adjust find_thread_ptid call.
11652 (task_command_1): Likewise.
11653 * aix-thread.c (sync_threadlists, aix_thread_target::resume)
11654 (aix_thread_target::wait, aix_thread_target::fetch_registers)
11655 (aix_thread_target::store_registers)
11656 (aix_thread_target::thread_alive): Adjust.
11657 * amd64-fbsd-tdep.c: Include "inferior.h".
11658 (amd64fbsd_get_thread_local_address): Pass down target.
11659 * amd64-linux-nat.c (ps_get_thread_area): Use ps_prochandle
11660 thread's gdbarch instead of target_gdbarch.
11661 * break-catch-sig.c (signal_catchpoint_print_it): Adjust call to
11662 get_last_target_status.
11663 * break-catch-syscall.c (print_it_catch_syscall): Likewise.
11664 * breakpoint.c (breakpoints_should_be_inserted_now): Consider all
11665 inferiors.
11666 (update_inserted_breakpoint_locations): Skip if inferiors with no
11667 execution.
11668 (update_global_location_list): When handling moribund locations,
11669 find representative inferior for location's pspace, and use thread
11670 count of its process_stratum target.
11671 * bsd-kvm.c (bsd_kvm_target_open): Pass target down.
11672 * bsd-uthread.c (bsd_uthread_target::wait): Use
11673 as_process_stratum_target and adjust thread_change_ptid and
11674 add_thread calls.
11675 (bsd_uthread_target::update_thread_list): Use
11676 as_process_stratum_target and adjust find_thread_ptid,
11677 thread_change_ptid and add_thread calls.
11678 * btrace.c (maint_btrace_packet_history_cmd): Adjust
11679 find_thread_ptid call.
11680 * corelow.c (add_to_thread_list): Adjust add_thread call.
11681 (core_target_open): Adjust add_thread_silent and thread_count
11682 calls.
11683 (core_target::pid_to_str): Adjust find_inferior_ptid call.
11684 * ctf.c (ctf_target_open): Adjust add_thread_silent call.
11685 * event-top.c (async_disconnect): Pop targets from all inferiors.
11686 * exec.c (add_target_sections): Push exec target on all inferiors
11687 sharing the program space.
11688 (remove_target_sections): Remove the exec target from all
11689 inferiors sharing the program space.
11690 (exec_on_vfork): New.
11691 * exec.h (exec_on_vfork): Declare.
11692 * fbsd-nat.c (fbsd_add_threads): Add fbsd_nat_target parameter.
11693 Pass it down.
11694 (fbsd_nat_target::update_thread_list): Adjust.
11695 (fbsd_nat_target::resume): Adjust.
11696 (fbsd_handle_debug_trap): Add fbsd_nat_target parameter. Pass it
11697 down.
11698 (fbsd_nat_target::wait, fbsd_nat_target::post_attach): Adjust.
11699 * fbsd-tdep.c (fbsd_corefile_thread): Adjust
11700 get_thread_arch_regcache call.
11701 * fork-child.c (gdb_startup_inferior): Pass target down to
11702 startup_inferior and set_executing.
11703 * gdbthread.h (struct process_stratum_target): Forward declare.
11704 (add_thread, add_thread_silent, add_thread_with_info)
11705 (in_thread_list): Add process_stratum_target parameter.
11706 (find_thread_ptid(inferior*, ptid_t)): New overload.
11707 (find_thread_ptid, thread_change_ptid): Add process_stratum_target
11708 parameter.
11709 (all_threads()): Delete overload.
11710 (all_threads, all_non_exited_threads): Add process_stratum_target
11711 parameter.
11712 (all_threads_safe): Use brace initialization.
11713 (thread_count): Add process_stratum_target parameter.
11714 (set_resumed, set_running, set_stop_requested, set_executing)
11715 (threads_are_executing, finish_thread_state): Add
11716 process_stratum_target parameter.
11717 (switch_to_thread): Use is_current_thread.
11718 * i386-fbsd-tdep.c: Include "inferior.h".
11719 (i386fbsd_get_thread_local_address): Pass down target.
11720 * i386-linux-nat.c (i386_linux_nat_target::low_resume): Adjust.
11721 * inf-child.c (inf_child_target::maybe_unpush_target): Remove
11722 have_inferiors check.
11723 * inf-ptrace.c (inf_ptrace_target::create_inferior)
11724 (inf_ptrace_target::attach): Adjust.
11725 * infcall.c (run_inferior_call): Adjust.
11726 * infcmd.c (run_command_1): Pass target to
11727 scoped_finish_thread_state.
11728 (proceed_thread_callback): Skip inferiors with no execution.
11729 (continue_command): Rename 'all_threads' local to avoid hiding
11730 'all_threads' function. Adjust get_last_target_status call.
11731 (prepare_one_step): Adjust set_running call.
11732 (signal_command): Use user_visible_resume_target. Compare thread
11733 pointers instead of inferior_ptid.
11734 (info_program_command): Adjust to pass down target.
11735 (attach_command): Mark target's 'thread_executing' flag.
11736 (stop_current_target_threads_ns): New, factored out from ...
11737 (interrupt_target_1): ... this. Switch inferior before making
11738 target calls.
11739 * inferior-iter.h
11740 (struct all_inferiors_iterator, struct all_inferiors_range)
11741 (struct all_inferiors_safe_range)
11742 (struct all_non_exited_inferiors_range): Filter on
11743 process_stratum_target too. Remove explicit.
11744 * inferior.c (inferior::inferior): Push dummy target on target
11745 stack.
11746 (find_inferior_pid, find_inferior_ptid, number_of_live_inferiors):
11747 Add process_stratum_target parameter, and pass it down.
11748 (have_live_inferiors): Adjust.
11749 (switch_to_inferior_and_push_target): New.
11750 (add_inferior_command, clone_inferior_command): Handle
11751 "-no-connection" parameter. Use
11752 switch_to_inferior_and_push_target.
11753 (_initialize_inferior): Mention "-no-connection" option in
11754 the help of "add-inferior" and "clone-inferior" commands.
11755 * inferior.h: Include "process-stratum-target.h".
11756 (interrupt_target_1): Use bool.
11757 (struct inferior) <push_target, unpush_target, target_is_pushed,
11758 find_target_beneath, top_target, process_target, target_at,
11759 m_stack>: New.
11760 (discard_all_inferiors): Delete.
11761 (find_inferior_pid, find_inferior_ptid, number_of_live_inferiors)
11762 (all_inferiors, all_non_exited_inferiors): Add
11763 process_stratum_target parameter.
11764 * infrun.c: Include "gdb_select.h" and <unordered_map>.
11765 (target_last_proc_target): New global.
11766 (follow_fork_inferior): Push target on new inferior. Pass target
11767 to add_thread_silent. Call exec_on_vfork. Handle target's
11768 reference count.
11769 (follow_fork): Adjust get_last_target_status call. Also consider
11770 target.
11771 (follow_exec): Push target on new inferior.
11772 (struct execution_control_state) <target>: New field.
11773 (user_visible_resume_target): New.
11774 (do_target_resume): Call target_async.
11775 (resume_1): Set target's threads_executing flag. Consider resume
11776 target.
11777 (commit_resume_all_targets): New.
11778 (proceed): Also consider resume target. Skip threads of inferiors
11779 with no execution. Commit resumtion in all targets.
11780 (start_remote): Pass current inferior to wait_for_inferior.
11781 (infrun_thread_stop_requested): Consider target as well. Pass
11782 thread_info pointer to clear_inline_frame_state instead of ptid.
11783 (infrun_thread_thread_exit): Consider target as well.
11784 (random_pending_event_thread): New inferior parameter. Use it.
11785 (do_target_wait): Rename to ...
11786 (do_target_wait_1): ... this. Add inferior parameter, and pass it
11787 down.
11788 (threads_are_resumed_pending_p, do_target_wait): New.
11789 (prepare_for_detach): Adjust calls.
11790 (wait_for_inferior): New inferior parameter. Handle it. Use
11791 do_target_wait_1 instead of do_target_wait.
11792 (fetch_inferior_event): Adjust. Switch to representative
11793 inferior. Pass target down.
11794 (set_last_target_status): Add process_stratum_target parameter.
11795 Save target in global.
11796 (get_last_target_status): Add process_stratum_target parameter and
11797 handle it.
11798 (nullify_last_target_wait_ptid): Clear 'target_last_proc_target'.
11799 (context_switch): Check inferior_ptid == null_ptid before calling
11800 inferior_thread().
11801 (get_inferior_stop_soon): Pass down target.
11802 (wait_one): Rename to ...
11803 (poll_one_curr_target): ... this.
11804 (struct wait_one_event): New.
11805 (wait_one): New.
11806 (stop_all_threads): Adjust.
11807 (handle_no_resumed, handle_inferior_event): Adjust to consider the
11808 event's target.
11809 (switch_back_to_stepped_thread): Also consider target.
11810 (print_stop_event): Update.
11811 (normal_stop): Update. Also consider the resume target.
11812 * infrun.h (wait_for_inferior): Remove declaration.
11813 (user_visible_resume_target): New declaration.
11814 (get_last_target_status, set_last_target_status): New
11815 process_stratum_target parameter.
11816 * inline-frame.c (clear_inline_frame_state(ptid_t)): Add
11817 process_stratum_target parameter, and use it.
11818 (clear_inline_frame_state (thread_info*)): New.
11819 * inline-frame.c (clear_inline_frame_state(ptid_t)): Add
11820 process_stratum_target parameter.
11821 (clear_inline_frame_state (thread_info*)): Declare.
11822 * linux-fork.c (delete_checkpoint_command): Pass target down to
11823 find_thread_ptid.
11824 (checkpoint_command): Adjust.
11825 * linux-nat.c (linux_nat_target::follow_fork): Switch to thread
11826 instead of just tweaking inferior_ptid.
11827 (linux_nat_switch_fork): Pass target down to thread_change_ptid.
11828 (exit_lwp): Pass target down to find_thread_ptid.
11829 (attach_proc_task_lwp_callback): Pass target down to
11830 add_thread/set_running/set_executing.
11831 (linux_nat_target::attach): Pass target down to
11832 thread_change_ptid.
11833 (get_detach_signal): Pass target down to find_thread_ptid.
11834 Consider last target status's target.
11835 (linux_resume_one_lwp_throw, resume_lwp)
11836 (linux_handle_syscall_trap, linux_handle_extended_wait, wait_lwp)
11837 (stop_wait_callback, save_stop_reason, linux_nat_filter_event)
11838 (linux_nat_wait_1, resume_stopped_resumed_lwps): Pass target down.
11839 (linux_nat_target::async_wait_fd): New.
11840 (linux_nat_stop_lwp, linux_nat_target::thread_address_space): Pass
11841 target down.
11842 * linux-nat.h (linux_nat_target::async_wait_fd): Declare.
11843 * linux-tdep.c (get_thread_arch_regcache): Pass target down.
11844 * linux-thread-db.c (struct thread_db_info::process_target): New
11845 field.
11846 (add_thread_db_info): Save target.
11847 (get_thread_db_info): New process_stratum_target parameter. Also
11848 match target.
11849 (delete_thread_db_info): New process_stratum_target parameter.
11850 Also match target.
11851 (thread_from_lwp): Adjust to pass down target.
11852 (thread_db_notice_clone): Pass down target.
11853 (check_thread_db_callback): Pass down target.
11854 (try_thread_db_load_1): Always push the thread_db target.
11855 (try_thread_db_load, record_thread): Pass target down.
11856 (thread_db_target::detach): Pass target down. Always unpush the
11857 thread_db target.
11858 (thread_db_target::wait, thread_db_target::mourn_inferior): Pass
11859 target down. Always unpush the thread_db target.
11860 (find_new_threads_callback, thread_db_find_new_threads_2)
11861 (thread_db_target::update_thread_list): Pass target down.
11862 (thread_db_target::pid_to_str): Pass current inferior down.
11863 (thread_db_target::get_thread_local_address): Pass target down.
11864 (thread_db_target::resume, maintenance_check_libthread_db): Pass
11865 target down.
11866 * nto-procfs.c (nto_procfs_target::update_thread_list): Adjust.
11867 * procfs.c (procfs_target::procfs_init_inferior): Declare.
11868 (proc_set_current_signal, do_attach, procfs_target::wait): Adjust.
11869 (procfs_init_inferior): Rename to ...
11870 (procfs_target::procfs_init_inferior): ... this and adjust.
11871 (procfs_target::create_inferior, procfs_notice_thread)
11872 (procfs_do_thread_registers): Adjust.
11873 * ppc-fbsd-tdep.c: Include "inferior.h".
11874 (ppcfbsd_get_thread_local_address): Pass down target.
11875 * proc-service.c (ps_xfer_memory): Switch current inferior and
11876 program space as well.
11877 (get_ps_regcache): Pass target down.
11878 * process-stratum-target.c
11879 (process_stratum_target::thread_address_space)
11880 (process_stratum_target::thread_architecture): Pass target down.
11881 * process-stratum-target.h
11882 (process_stratum_target::threads_executing): New field.
11883 (as_process_stratum_target): New.
11884 * ravenscar-thread.c
11885 (ravenscar_thread_target::update_inferior_ptid): Pass target down.
11886 (ravenscar_thread_target::wait, ravenscar_add_thread): Pass target
11887 down.
11888 * record-btrace.c (record_btrace_target::info_record): Adjust.
11889 (record_btrace_target::record_method)
11890 (record_btrace_target::record_is_replaying)
11891 (record_btrace_target::fetch_registers)
11892 (get_thread_current_frame_id, record_btrace_target::resume)
11893 (record_btrace_target::wait, record_btrace_target::stop): Pass
11894 target down.
11895 * record-full.c (record_full_wait_1): Switch to event thread.
11896 Pass target down.
11897 * regcache.c (regcache::regcache)
11898 (get_thread_arch_aspace_regcache, get_thread_arch_regcache): Add
11899 process_stratum_target parameter and handle it.
11900 (current_thread_target): New global.
11901 (get_thread_regcache): Add process_stratum_target parameter and
11902 handle it. Switch inferior before calling target method.
11903 (get_thread_regcache): Pass target down.
11904 (get_thread_regcache_for_ptid): Pass target down.
11905 (registers_changed_ptid): Add process_stratum_target parameter and
11906 handle it.
11907 (registers_changed_thread, registers_changed): Pass target down.
11908 (test_get_thread_arch_aspace_regcache): New.
11909 (current_regcache_test): Define a couple local test_target_ops
11910 instances and use them for testing.
11911 (readwrite_regcache): Pass process_stratum_target parameter.
11912 (cooked_read_test, cooked_write_test): Pass mock_target down.
11913 * regcache.h (get_thread_regcache, get_thread_arch_regcache)
11914 (get_thread_arch_aspace_regcache): Add process_stratum_target
11915 parameter.
11916 (regcache::target): New method.
11917 (regcache::regcache, regcache::get_thread_arch_aspace_regcache)
11918 (regcache::registers_changed_ptid): Add process_stratum_target
11919 parameter.
11920 (regcache::m_target): New field.
11921 (registers_changed_ptid): Add process_stratum_target parameter.
11922 * remote.c (remote_state::supports_vCont_probed): New field.
11923 (remote_target::async_wait_fd): New method.
11924 (remote_unpush_and_throw): Add remote_target parameter.
11925 (get_current_remote_target): Adjust.
11926 (remote_target::remote_add_inferior): Push target.
11927 (remote_target::remote_add_thread)
11928 (remote_target::remote_notice_new_inferior)
11929 (get_remote_thread_info): Pass target down.
11930 (remote_target::update_thread_list): Skip threads of inferiors
11931 bound to other targets. (remote_target::close): Don't discard
11932 inferiors. (remote_target::add_current_inferior_and_thread)
11933 (remote_target::process_initial_stop_replies)
11934 (remote_target::start_remote)
11935 (remote_target::remote_serial_quit_handler): Pass down target.
11936 (remote_target::remote_unpush_target): New remote_target
11937 parameter. Unpush the target from all inferiors.
11938 (remote_target::remote_unpush_and_throw): New remote_target
11939 parameter. Pass it down.
11940 (remote_target::open_1): Check whether the current inferior has
11941 execution instead of checking whether any inferior is live. Pass
11942 target down.
11943 (remote_target::remote_detach_1): Pass down target. Use
11944 remote_unpush_target.
11945 (extended_remote_target::attach): Pass down target.
11946 (remote_target::remote_vcont_probe): Set supports_vCont_probed.
11947 (remote_target::append_resumption): Pass down target.
11948 (remote_target::append_pending_thread_resumptions)
11949 (remote_target::remote_resume_with_hc, remote_target::resume)
11950 (remote_target::commit_resume): Pass down target.
11951 (remote_target::remote_stop_ns): Check supports_vCont_probed.
11952 (remote_target::interrupt_query)
11953 (remote_target::remove_new_fork_children)
11954 (remote_target::check_pending_events_prevent_wildcard_vcont)
11955 (remote_target::remote_parse_stop_reply)
11956 (remote_target::process_stop_reply): Pass down target.
11957 (first_remote_resumed_thread): New remote_target parameter. Pass
11958 it down.
11959 (remote_target::wait_as): Pass down target.
11960 (unpush_and_perror): New remote_target parameter. Pass it down.
11961 (remote_target::readchar, remote_target::remote_serial_write)
11962 (remote_target::getpkt_or_notif_sane_1)
11963 (remote_target::kill_new_fork_children, remote_target::kill): Pass
11964 down target.
11965 (remote_target::mourn_inferior): Pass down target. Use
11966 remote_unpush_target.
11967 (remote_target::core_of_thread)
11968 (remote_target::remote_btrace_maybe_reopen): Pass down target.
11969 (remote_target::pid_to_exec_file)
11970 (remote_target::thread_handle_to_thread_info): Pass down target.
11971 (remote_target::async_wait_fd): New.
11972 * riscv-fbsd-tdep.c: Include "inferior.h".
11973 (riscv_fbsd_get_thread_local_address): Pass down target.
11974 * sol2-tdep.c (sol2_core_pid_to_str): Pass down target.
11975 * sol-thread.c (sol_thread_target::wait, ps_lgetregs, ps_lsetregs)
11976 (ps_lgetfpregs, ps_lsetfpregs, sol_update_thread_list_callback):
11977 Adjust.
11978 * solib-spu.c (spu_skip_standalone_loader): Pass down target.
11979 * solib-svr4.c (enable_break): Pass down target.
11980 * spu-multiarch.c (parse_spufs_run): Pass down target.
11981 * spu-tdep.c (spu2ppu_sniffer): Pass down target.
11982 * target-delegates.c: Regenerate.
11983 * target.c (g_target_stack): Delete.
11984 (current_top_target): Return the current inferior's top target.
11985 (target_has_execution_1): Refer to the passed-in inferior's top
11986 target.
11987 (target_supports_terminal_ours): Check whether the initial
11988 inferior was already created.
11989 (decref_target): New.
11990 (target_stack::push): Incref/decref the target.
11991 (push_target, push_target, unpush_target): Adjust.
11992 (target_stack::unpush): Defref target.
11993 (target_is_pushed): Return bool. Adjust to refer to the current
11994 inferior's target stack.
11995 (dispose_inferior): Delete, and inline parts ...
11996 (target_preopen): ... here. Only dispose of the current inferior.
11997 (target_detach): Hold strong target reference while detaching.
11998 Pass target down.
11999 (target_thread_name): Add assertion.
12000 (target_resume): Pass down target.
12001 (target_ops::beneath, find_target_at): Adjust to refer to the
12002 current inferior's target stack.
12003 (get_dummy_target): New.
12004 (target_pass_ctrlc): Pass the Ctrl-C to the first inferior that
12005 has a thread running.
12006 (initialize_targets): Rename to ...
12007 (_initialize_target): ... this.
12008 * target.h: Include "gdbsupport/refcounted-object.h".
12009 (struct target_ops): Inherit refcounted_object.
12010 (target_ops::shortname, target_ops::longname): Make const.
12011 (target_ops::async_wait_fd): New method.
12012 (decref_target): Declare.
12013 (struct target_ops_ref_policy): New.
12014 (target_ops_ref): New typedef.
12015 (get_dummy_target): Declare function.
12016 (target_is_pushed): Return bool.
12017 * thread-iter.c (all_matching_threads_iterator::m_inf_matches)
12018 (all_matching_threads_iterator::all_matching_threads_iterator):
12019 Handle filter target.
12020 * thread-iter.h (struct all_matching_threads_iterator, struct
12021 all_matching_threads_range, class all_non_exited_threads_range):
12022 Filter by target too. Remove explicit.
12023 * thread.c (threads_executing): Delete.
12024 (inferior_thread): Pass down current inferior.
12025 (clear_thread_inferior_resources): Pass down thread pointer
12026 instead of ptid_t.
12027 (add_thread_silent, add_thread_with_info, add_thread): Add
12028 process_stratum_target parameter. Use it for thread and inferior
12029 searches.
12030 (is_current_thread): New.
12031 (thread_info::deletable): Use it.
12032 (find_thread_ptid, thread_count, in_thread_list)
12033 (thread_change_ptid, set_resumed, set_running): New
12034 process_stratum_target parameter. Pass it down.
12035 (set_executing): New process_stratum_target parameter. Pass it
12036 down. Adjust reference to 'threads_executing'.
12037 (threads_are_executing): New process_stratum_target parameter.
12038 Adjust reference to 'threads_executing'.
12039 (set_stop_requested, finish_thread_state): New
12040 process_stratum_target parameter. Pass it down.
12041 (switch_to_thread): Also match inferior.
12042 (switch_to_thread): New process_stratum_target parameter. Pass it
12043 down.
12044 (update_threads_executing): Reimplement.
12045 * top.c (quit_force): Pop targets from all inferior.
12046 (gdb_init): Don't call initialize_targets.
12047 * windows-nat.c (windows_nat_target) <get_windows_debug_event>:
12048 Declare.
12049 (windows_add_thread, windows_delete_thread): Adjust.
12050 (get_windows_debug_event): Rename to ...
12051 (windows_nat_target::get_windows_debug_event): ... this. Adjust.
12052 * tracefile-tfile.c (tfile_target_open): Pass down target.
12053 * gdbsupport/common-gdbthread.h (struct process_stratum_target):
12054 Forward declare.
12055 (switch_to_thread): Add process_stratum_target parameter.
12056 * mi/mi-interp.c (mi_on_resume_1): Add process_stratum_target
12057 parameter. Use it.
12058 (mi_on_resume): Pass target down.
12059 * nat/fork-inferior.c (startup_inferior): Add
12060 process_stratum_target parameter. Pass it down.
12061 * nat/fork-inferior.h (startup_inferior): Add
12062 process_stratum_target parameter.
12063 * python/py-threadevent.c (py_get_event_thread): Pass target down.
12064
75c6c844
PA
120652020-01-10 Pedro Alves <palves@redhat.com>
12066
12067 * remote.c (remote_target::start_remote): Don't set inferior_ptid
12068 directly. Instead find the first thread in the thread list and
12069 use switch_to_thread.
12070
78f2c40a
PA
120712020-01-10 Pedro Alves <palves@redhat.com>
12072
12073 * remote.c (remote_target::remote_add_inferior): Don't bind a
12074 process to the current inferior if the current inferior is already
12075 bound to a process.
12076
e7af6c70
TBA
120772020-01-10 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
12078 Pedro Alves <palves@redhat.com>
12079
12080 * remote.c (remote_target::remote_parse_stop_reply) <W/X packets>:
12081 If no process is specified, return null_ptid instead of
12082 inferior_ptid.
12083 (remote_target::wait_as): Handle TARGET_WAITKIND_EXITED /
12084 TARGET_WAITKIND_SIGNALLED with no pid.
12085
31ba933e
PA
120862020-01-10 Pedro Alves <palves@redhat.com>
12087
12088 * remote.c (first_remote_resumed_thread): New.
12089 (remote_target::wait_as): Use it as default event_ptid instead of
12090 inferior_ptid.
12091
735fc2ca
PA
120922020-01-10 Pedro Alves <palves@redhat.com>
12093
12094 * infrun.c (handle_no_resumed): Use all_non_exited_inferiors.
12095
c17e02e1
PA
120962020-01-10 Pedro Alves <palves@redhat.com>
12097
12098 * tracefile-tfile.c (tfile_target::close): Assert that trace_fd is
12099 not -1.
12100
ab1ddbcf
PA
121012020-01-10 Pedro Alves <palves@redhat.com>
12102
12103 * break-catch-sig.c (signal_catchpoint_print_it): Don't pass a
12104 ptid to get_last_target_status.
12105 * break-catch-syscall.c (print_it_catch_syscall): Don't pass a
12106 ptid to get_last_target_status.
12107 * infcmd.c (continue_command): Don't pass a target_waitstatus to
12108 get_last_target_status.
12109 (info_program_command): Don't pass a target_waitstatus to
12110 get_last_target_status.
12111 * infrun.c (init_wait_for_inferior): Use
12112 nullify_last_target_wait_ptid.
12113 (get_last_target_status): Handle nullptr arguments.
12114 (nullify_last_target_wait_ptid): Clear target_last_waitstatus.
12115 (print_stop_event): Don't pass a ptid to get_last_target_status.
12116 (normal_stop): Don't pass a ptid to get_last_target_status.
12117 * infrun.h (get_last_target_status, set_last_target_status): Move
12118 comments here and update.
12119 (nullify_last_target_wait_ptid): Declare.
12120 * linux-fork.c (fork_load_infrun_state): Remove local extern
12121 declaration of nullify_last_target_wait_ptid.
12122 * linux-nat.c (get_detach_signal): Don't pass a target_waitstatus
12123 to get_last_target_status.
12124
f3f8ece4
PA
121252020-01-10 Pedro Alves <palves@redhat.com>
12126
12127 * gdbthread.h (scoped_restore_current_thread)
12128 <dont_restore, restore, m_dont_restore>: Declare.
12129 * thread.c (thread_alive): Add assertion. Return bool.
12130 (switch_to_thread_if_alive): New.
12131 (prune_threads): Switch inferior/thread.
12132 (print_thread_info_1): Switch thread before calling target methods.
12133 (scoped_restore_current_thread::restore): New, factored out from
12134 ...
12135 (scoped_restore_current_thread::~scoped_restore_current_thread):
12136 ... this.
12137 (scoped_restore_current_thread::scoped_restore_current_thread):
12138 Add assertion.
12139 (thread_apply_all_command, thread_select): Use
12140 switch_to_thread_if_alive.
12141 * infrun.c (proceed, restart_threads, handle_signal_stop)
12142 (switch_back_to_stepped_thread): Switch current thread before
12143 calling target methods.
12144
db2d40f7
PA
121452020-01-10 Pedro Alves <palves@redhat.com>
12146
12147 * inferior.c (switch_to_inferior_no_thread): New function,
12148 factored out from ...
12149 (inferior_command): ... here.
12150 * inferior.h (switch_to_inferior_no_thread): Declare.
12151 * mi/mi-main.c (run_one_inferior): Use
12152 switch_to_inferior_no_thread.
12153
bd420a2d
PA
121542020-01-10 Pedro Alves <palves@redhat.com>
12155
12156 * infcmd.c (kill_command): Remove dead code.
12157
ddf5db90
PA
121582020-01-10 Pedro Alves <palves@redhat.com>
12159
12160 * remote.c (remote_target::mourn_inferior): No longer check
12161 whether the target is running.
12162
5018ce90
PA
121632020-01-10 Pedro Alves <palves@redhat.com>
12164
12165 * corelow.c (core_target::has_execution): Change parameter type to
12166 inferior pointer.
12167 * inferior.c (number_of_live_inferiors): Use
12168 inferior::has_execution instead of target_has_execution_1.
12169 * inferior.h (inferior::has_execution): New.
12170 * linux-thread-db.c (thread_db_target::update_thread_list): Use
12171 inferior::has_execution instead of target_has_execution_1.
12172 * process-stratum-target.c
12173 (process_stratum_target::has_execution): Change parameter type to
12174 inferior pointer. Check the inferior's PID instead of
12175 inferior_ptid.
12176 * process-stratum-target.h
12177 (process_stratum_target::has_execution): Change parameter type to
12178 inferior pointer.
12179 * record-full.c (record_full_core_target::has_execution): Change
12180 parameter type to inferior pointer.
12181 * target.c (target_has_execution_1): Change parameter type to
12182 inferior pointer.
12183 (target_has_execution_current): Adjust.
12184 * target.h (target_ops::has_execution): Change parameter type to
12185 inferior pointer.
12186 (target_has_execution_1): Change parameter type to inferior
12187 pointer. Change return type to bool.
12188 * tracefile.h (tracefile_target::has_execution): Change parameter
12189 type to inferior pointer.
12190
74375d18
PA
121912020-01-10 Pedro Alves <palves@redhat.com>
12192
12193 * exceptions.c (print_flush): Remove current_top_target() check.
12194
acdf84a6
PA
121952020-01-10 Pedro Alves <palves@redhat.com>
12196
12197 * remote.c (show_remote_exec_file): Show the current inferior's
12198 exec-file instead of the command variable's value.
12199
ec506636
PA
122002020-01-10 Pedro Alves <palves@redhat.com>
12201
12202 * record-full.c (record_full_resume_ptid): New global.
12203 (record_full_target::resume): Set it.
12204 (record_full_wait_1): Use record_full_resume_ptid instead of
12205 inferior_ptid.
12206
873657b9
PA
122072020-01-10 Pedro Alves <palves@redhat.com>
12208
12209 * gdbthread.h (scoped_restore_current_thread)
12210 <dont_restore, restore, m_dont_restore>: Declare.
12211 * thread.c (thread_alive): Add assertion. Return bool.
12212 (switch_to_thread_if_alive): New.
12213 (prune_threads): Switch inferior/thread.
12214 (print_thread_info_1): Switch thread before calling target methods.
12215 (scoped_restore_current_thread::restore): New, factored out from
12216 ...
12217 (scoped_restore_current_thread::~scoped_restore_current_thread):
12218 ... this.
12219 (scoped_restore_current_thread::scoped_restore_current_thread):
12220 Add assertion.
12221 (thread_apply_all_command, thread_select): Use
12222 switch_to_thread_if_alive.
12223
7f0ae84c
GB
122242020-01-10 George Barrett <bob@bob131.so>
12225
12226 * stap-probe.c (stap_modify_semaphore): Don't check for null
12227 semaphores.
12228 (stap_probe::set_semaphore, stap_probe::clear_semaphore): Check
12229 for null semaphores.
12230
f5a7c406
AB
122312020-01-09 Andrew Burgess <andrew.burgess@embecosm.com>
12232
12233 * tui/tui-source.c (tui_source_window::do_scroll_vertical): Update
12234 all source windows, and maintain horizontal scroll status while
12235 doing so.
12236
9ae6bf64
TT
122372020-01-09 Tom Tromey <tom@tromey.com>
12238
12239 PR tui/18932:
12240 * tui/tui-source.c (tui_source_window::do_scroll_vertical): Call
12241 update_source_window, not print_source_lines.
12242
b2efe70c
AB
122432020-01-09 Andrew Burgess <andrew.burgess@embecosm.com>
12244
12245 * tui/tui.c (tui_enable): Register tui hooks after calling
12246 tui_display_main.
12247
5f23a082
CB
122482020-01-09 Christian Biesinger <cbiesinger@google.com>
12249
12250 * gdbsupport/common-defs.h: Don't define _FORTIFY_SOURCE on MinGW.
12251
3061113b
SM
122522020-01-08 Simon Marchi <simon.marchi@efficios.com>
12253
12254 * thread.c (print_thread_info_1): Fix indentation.
12255
57d75002
CB
122562020-01-09 Christian Biesinger <cbiesinger@google.com>
12257
12258 * symtab.c (general_symbol_info::compute_and_set_names): Move the
12259 unique_xmalloc_ptr outside the if to always free the demangled name.
12260
6a053cb1
TT
122612020-01-08 Tom Tromey <tromey@adacore.com>
12262
12263 * xcoffread.c (enter_line_range, read_xcoff_symtab)
12264 (process_xcoff_symbol, xcoff_symfile_offsets): Update.
12265 * symtab.h (MSYMBOL_VALUE_ADDRESS): Update.
12266 (struct section_offsets, ANOFFSET, SIZEOF_N_SECTION_OFFSETS):
12267 Remove.
12268 (section_offsets): New typedef.
12269 * symtab.c (fixup_section, get_msymbol_address): Update.
12270 * symmisc.c (dump_msymbols): Update.
12271 * symfile.h (relative_addr_info_to_section_offsets)
12272 (symfile_map_offsets_to_segments): Update.
12273 * symfile.c (build_section_addr_info_from_objfile)
12274 (init_objfile_sect_indices): Update.
12275 (struct place_section_arg): Change type of "offsets".
12276 (place_section): Update.
12277 (relative_addr_info_to_section_offsets): Change type of
12278 "section_offsets". Remove "num_sections" parameter.
12279 (default_symfile_offsets, syms_from_objfile_1)
12280 (set_objfile_default_section_offset): Update.
12281 (reread_symbols): No need to preserve section offsets by hand.
12282 (symfile_map_offsets_to_segments): Change type of "offsets".
12283 * stap-probe.c (relocate_address): Update.
12284 * stabsread.h (process_one_symbol): Update.
12285 * solib-target.c (struct lm_info_target) <offsets>: Change type.
12286 (solib_target_relocate_section_addresses): Update.
12287 * solib-svr4.c (enable_break, svr4_relocate_main_executable):
12288 Update.
12289 * solib-frv.c (frv_relocate_main_executable): Update.
12290 * solib-dsbt.c (dsbt_relocate_main_executable): Update.
12291 * solib-aix.c (solib_aix_get_section_offsets): Change return
12292 type.
12293 (solib_aix_solib_create_inferior_hook): Update.
12294 * remote.c (remote_target::get_offsets): Update.
12295 * psymtab.c (find_pc_sect_psymtab): Update.
12296 * psympriv.h (struct partial_symbol) <address, text_low,
12297 text_high>: Update.
12298 * objfiles.h (obj_section_offset): Update.
12299 (struct objfile) <section_offsets>: Change type.
12300 <num_sections>: Remove.
12301 (objfile_relocate): Update.
12302 * objfiles.c (entry_point_address_query): Update
12303 (relocate_one_symbol): Change type of "section_offsets".
12304 (objfile_relocate1, objfile_relocate1): Change type of
12305 "new_offsets".
12306 (objfile_rebase1): Update.
12307 * mipsread.c (mipscoff_symfile_read): Update.
12308 (read_alphacoff_dynamic_symtab): Remove "section_offsets"
12309 parameter.
12310 * mdebugread.c (parse_symbol): Change type of "section_offsets".
12311 (parse_external, psymtab_to_symtab_1): Update.
12312 * machoread.c (macho_symfile_offsets): Update.
12313 * ia64-tdep.c (ia64_find_unwind_table): Update.
12314 * hppa-tdep.c (read_unwind_info): Update.
12315 * hppa-bsd-tdep.c (hppabsd_find_global_pointer): Update.
12316 * dwarf2read.c (create_addrmap_from_index)
12317 (create_addrmap_from_aranges, dw2_find_pc_sect_compunit_symtab)
12318 (process_psymtab_comp_unit_reader, add_partial_symbol)
12319 (add_partial_subprogram, process_full_comp_unit)
12320 (read_file_scope, read_func_scope, read_lexical_block_scope)
12321 (read_call_site_scope, dwarf2_rnglists_process)
12322 (dwarf2_ranges_process, dwarf2_ranges_read)
12323 (dwarf_decode_lines_1, var_decode_location, new_symbol)
12324 (dwarf2_fetch_die_loc_sect_off, dwarf2_per_cu_text_offset):
12325 Update.
12326 * dwarf2-frame.c (execute_cfa_program, dwarf2_frame_find_fde):
12327 Update.
12328 * dtrace-probe.c (dtrace_probe::get_relocated_address): Update.
12329 * dbxread.c (read_dbx_symtab, read_ofile_symtab): Update.
12330 (process_one_symbol): Change type of "section_offsets".
12331 * ctfread.c (get_objfile_text_range): Update.
12332 * coffread.c (coff_symtab_read, enter_linenos)
12333 (process_coff_symbol): Update.
12334 * coff-pe-read.c (add_pe_forwarded_sym): Update.
12335 * amd64-windows-tdep.c (amd64_windows_find_unwind_info): Update.
12336
456e800a
TT
123372020-01-08 Tom Tromey <tromey@adacore.com>
12338
12339 * dwarf2read.c (parse_macro_definition): Use std::string.
12340 (parse_macro_definition): Likewise.
12341
6dfa2fc2
TT
123422020-01-08 Tom Tromey <tromey@adacore.com>
12343
12344 * dwarf2read.c (abbrev_table_read_table): Use std::vector.
12345 (ATTR_ALLOC_CHUNK): Remove.
12346
421d1616
TT
123472020-01-08 Tom Tromey <tromey@adacore.com>
12348
12349 * dwarf2read.c (fixup_go_packaging): Use unique_xmalloc_ptr.
12350
43816ebc
TT
123512020-01-08 Tom Tromey <tromey@adacore.com>
12352
12353 * dwarf2read.c (add_partial_symbol): Use unique_xmalloc_ptr.
12354 (dwarf2_compute_name, open_dwo_file): Likewise.
12355 (process_enumeration_scope): Use std::vector.
12356 (guess_partial_die_structure_name): Use unique_xmalloc_ptr.
12357 (partial_die_info::fixup, dwarf2_start_subfile)
12358 (guess_full_die_structure_name, dwarf2_name): Likewise.
12359 (determine_prefix): Update.
12360 (guess_full_die_structure_name): Make return type const.
12361 (partial_die_full_name): Return unique_xmalloc_ptr.
12362 (DW_FIELD_ALLOC_CHUNK): Remove.
12363
4212d509
TT
123642020-01-07 Tom Tromey <tromey@adacore.com>
12365
12366 PR build/24937:
12367 * stap-probe.c (class stap_static_probe_ops): Add constructor.
12368
06a6207a
JT
123692020-01-02 Jon Turney <jon.turney@dronecode.org.uk>
12370
12371 * cli/cli-style.c: Set cli_styling to 'true' in the Cygwin build.
12372
153d79c4
AB
123732020-01-06 Andrew Burgess <andrew.burgess@embecosm.com>
12374
12375 * stack.c (print_frame_info): Move disassemble_next_line code
12376 inside source_print block.
12377
66182876
EZ
123782020-01-06 Eli Zaretskii <eliz@gnu.org>
12379
12380 * gdbsupport/gdb_wait.c: Include <signal.h> instead of
12381 gdb/signals.h, as we are now using native signal symbols.
12382
cbfa8581
SV
123832020-01-06 Shahab Vahedi <shahab@synopsys.com>
12384
12385 * tui/tui-disasm.c (tui_disasm_window::addr_is_displayed): Avoid
12386 overflow by an early check of content vs threshold.
aac66a4c 12387 * tui/tui-source.c (tui_source_window::line_is_displayed):
cbfa8581
SV
12388 Likewise.
12389
3f602821
EZ
123902020-01-06 Eli Zaretskii <eliz@gnu.org>
12391
12392 * NEWS: Mention the recent fix of $_exitsignal on MS-Windows.
12393
a08c904d
JT
123942020-01-02 Jon Turney <jon.turney@dronecode.org.uk>
12395
12396 * coff-pe-read.c (read_pe_exported_syms): Don't try to read the
12397 export table if no section contains it's RVA.
12398
89a65580
EZ
123992020-01-06 Eli Zaretskii <eliz@gnu.org>
12400
12401 * windows-tdep.c: Fix a typo in WINDOWS_SIGABRT.
12402
8b7fcda2
HD
124032020-01-06 Hannes Domani <ssbssa@yahoo.de>
12404
12405 * source.c (print_source_lines_base): Set last_line_listed.
12406
a61b4f69
SV
124072020-01-06 Shahab Vahedi <shahab@synopsys.com>
12408
12409 * tui/tui-disasm.c: Remove trailing spaces.
12410
559e7e50
EZ
124112020-01-06 Eli Zaretskii <eliz@gnu.org>
12412 Pedro Alves <palves@redhat.com>
12413
12414 * Makefile.in (COMMON_SFILES): Add gdbsupport/gdb_wait.c.
12415 * windows-tdep.c: New enumeration of WINDOWS_SIG* signals.
12416 (windows_gdb_signal_to_target): New function, uses the above
12417 enumeration to convert GDB internal signal codes to equivalent
12418 Windows codes.
12419 (windows_init_abi): Call set_gdbarch_gdb_signal_to_target.
12420 * windows-nat.c: Include "gdb_wait.h".
12421 (get_windows_debug_event): Extract the fatal exception from the
12422 exit status and convert to the equivalent Posix signal number.
12423 * cli/cli-cmds.c (exit_status_set_internal_vars): Account for the
12424 possibility that WTERMSIG returns GDB_SIGNAL_UNKNOWN.
12425 * gdbsupport/gdb_wait.c: New file, implements
12426 windows_status_to_termsig.
12427 * gdbsupport/gdb_wait.h (WIFEXITED, WIFSIGNALED, WEXITSTATUS)
12428 (WTERMSIG) [__MINGW32__]: Separate definitions for MinGW.
12429
f2302a34
AB
124302020-01-05 Andrew Burgess <andrew.burgess@embecosm.com>
12431
12432 * tui/tui-layout.c (tui_add_win_to_layout): Use tui_set_layout not
12433 show_layout.
12434
6a5206eb
LM
124352020-01-05 Luis Machado <luis.machado@linaro.org>
12436
12437 * aarch64-linux-nat.c
12438 (aarch64_linux_nat_target::thread_architecture): Use bfd_arch_aarch64
12439 and bfd_mach_aarch64.
12440
6ec1d75e
PW
124412020-01-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
12442
12443 * ui-file.c (stdio_file::can_emit_style_escape)
12444 (tee_file::can_emit_style_escape): Ensure style is used also on
12445 gdb_stderr when gdb_stderr is a tty supporting styling, similarly
12446 to gdb_stdout.
12447 * main.c (set_gdb_data_directory): Use file style to output the
12448 warning that the given pathname is not a directory.
12449 * top.c (show_history_filename, gdb_safe_append_history)
12450 (show_gdb_datadir): Use file style.
12451
44f81a76
HD
124522020-01-03 Hannes Domani <ssbssa@yahoo.de>
12453
12454 * solib-target.c (struct lm_info_target):
12455 Change offsets to be a unique_xmalloc_ptr.
12456 (solib_target_relocate_section_addresses): Update.
12457
25057eb0
HD
124582020-01-03 Hannes Domani <ssbssa@yahoo.de>
12459
12460 * windows-nat.c (windows_clear_solib): Free so_list linked list.
12461
6e2118f5
BE
124622020-01-03 Bernd Edlinger <bernd.edlinger@hotmail.de>
12463
12464 * MAINTAINERS (Write After Approval): Add myself.
12465
8133c7dc
LM
124662020-01-02 Luis Machado <luis.machado@linaro.org>
12467
12468 * proc-service.c (get_ps_regcache): Remove reference to obsolete
12469 Cell BE architecture.
12470 * target.h (struct target_ops) <thread_architecture>: Likewise.
12471
48189bec
HD
124722020-01-01 Hannes Domani <ssbssa@yahoo.de>
12473
12474 * Makefile.in: Use INSTALL_PROGRAM_ENV.
12475
ead1063b
HD
124762020-01-01 Hannes Domani <ssbssa@yahoo.de>
12477
12478 * MAINTAINERS (Write After Approval): Add myself.
12479
e5d78223
JB
124802020-01-01 Joel Brobecker <brobecker@adacore.com>
12481
12482 * gdbarch.sh: Update copyright year range of generated files.
12483
b811d2c2
JB
124842020-01-01 Joel Brobecker <brobecker@adacore.com>
12485
12486 Update copyright year range in all GDB files.
12487
5f4def5c
JB
124882020-01-01 Joel Brobecker <brobecker@adacore.com>
12489
12490 * copyright.py: Convert to Python 3.
12491
51fd4002
JB
124922020-01-01 Joel Brobecker <brobecker@adacore.com>
12493
12494 * copyright.py: Adapt after move of gnulib directory from gdb
12495 directory to toplevel directory.
12496
5fb651f2
JB
124972020-01-01 Joel Brobecker <brobecker@adacore.com>
12498
12499 * copyright.py (main): Exit if run from the wrong directory.
12500
5dd8bf88
JB
125012020-01-01 Joel Brobecker <brobecker@adacore.com>
12502
12503 * top.c (print_gdb_version): Change copyright year to 2020.
12504
9f71dacb 125052020-01-01 Joel Brobecker <brobecker@adacore.com>
3d34df0a 12506
9f71dacb 12507 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2019.
3d34df0a 12508
9f71dacb 12509For older changes see ChangeLog-2019.
c906108c
SS
12510\f
12511Local Variables:
12512mode: change-log
12513left-margin: 8
12514fill-column: 74
12515version-control: never
57da7796 12516coding: utf-8
c906108c 12517End:
This page took 3.676752 seconds and 4 git commands to generate.