gdb: make frame_unwind_got_optimized return a not_lval value
[deliverable/binutils-gdb.git] / gdb / ChangeLog
CommitLineData
8efaf6b3
SM
12020-08-31 Simon Marchi <simon.marchi@efficios.com>
2
3 * frame-unwind.c (frame_unwind_got_optimized): Don't set
4 regnum/frame in value. Call allocate_value_lazy.
5 * frame.c (frame_unwind_register_value): Use
6 val_print_not_saved.
7
fe1fe7ea
SM
82020-08-31 Simon Marchi <simon.marchi@efficios.com>
9
10 * gdbtypes.h (NULL_TYPE): Remove, change all uses to nullptr.
11
f7c7700d
PA
122020-08-29 Pedro Alves <pedro@palves.net>
13
14 * progspace.c (print_program_space): Use all_inferiors. Switch to
15 the inferior before calling target_pid_to_str.
16
e0814aae
TT
172020-08-28 Tom Tromey <tom@tromey.com>
18
19 * xcoffread.c (xcoff_end_psymtab): Update comment.
20 * dbxread.c (dbx_end_psymtab): Update comment.
21
626d2320
TV
222020-08-28 Tom de Vries <tdevries@suse.de>
23
24 PR breakpoint/26544
25 * breakpoint.c (parse_breakpoint_sals): Remove const from struct
26 event_location.
27 (create_breakpoint): Same.
28 (base_breakpoint_decode_location): Same.
29 (bkpt_create_sals_from_location): Same.
30 (bkpt_decode_location): Same.
31 (bkpt_probe_create_sals_from_location): Same.
32 (bkpt_probe_decode_location): Same.
33 (tracepoint_create_sals_from_location): Same.
34 (tracepoint_decode_location): Same.
35 (tracepoint_probe_decode_location): Same.
36 (strace_marker_create_sals_from_location): Same.
37 (strace_marker_decode_location): Same.
38 (create_sals_from_location_default): Same.
39 (decode_location_default): Same.
40 * breakpoint.h (struct breakpoint_ops): Same.
41 (create_breakpoint): Same.
42 * linespec.h (decode_line_full): Same.
43 * linespec.c (decode_line_full): Same. Throw error if
44 result.size () == 0.
45
df631783
PA
462020-08-27 Pedro Alves <pedro@palves.net>
47
48 PR gdb/26524
49 * breakpoint.c (until_break_fsm) <location_breakpoint,
50 caller_breakpoint>: Delete fields.
51 <breakpoints>: New field.
52 <until_break_fsm>: Adjust to save a breakpoint vector instead of
53 two individual breakpoints.
54 (until_break_fsm::should_stop): Loop over breakpoints in the
55 breakpoint vector.
56 (until_break_fsm::clean_up): Adjust to clear the breakpoints
57 vector.
58 (until_break_command): Handle location expanding into multiple
59 sals.
60
b2b38aa4
PA
612020-08-27 Pedro Alves <pedro@palves.net>
62
63 PR gdb/26523
64 * inline-frame.c (stopped_by_user_bp_inline_frame): Also consider
65 bp_until breakpoints user-specified locations. Update intro
66 comment.
67
b886559f
SM
682020-08-27 Simon Marchi <simon.marchi@polymtl.ca>
69
70 * gdb_bfd.h (gdb_bfd_section_iterator, gdb_bfd_section_range,
71 gdb_bfd_sections): New.
72 * maint.c (print_bfd_section_info): Change param type to
73 maint_print_section_data.
74 (print_objfile_section_info): Likewise.
75 (print_bfd_section_info_maybe_relocated): Likewise.
76 (maintenance_info_sections): Use gdb_bfd_sections.
77
4c6e63bf
SV
782020-08-25 Shahab Vahedi <shahab@synopsys.com>
79
80 * MAINTAINERS: Add ARC target and maintainer.
81
8d7f0635
AK
822020-08-25 Anton Kolesov <anton.kolesov@synopsys.com>
83
84 * configure.tgt: ARC support for GNU/Linux.
85 * Makefile.in (ALL_TARGET_OBJS): Likewise.
86 * arc-linux-tdep.c: New file.
87 * arc-tdep.h (ARC_STATUS32_L_MASK, ARC_STATUS32_DE_MASK): Declare.
88 * arc-tdep.c (arc_write_pc): Use it.
89
fdd8731b
SV
902020-08-25 Shahab Vahedi <shahab@synopsys.com>
91
92 * arc-tdep.c (arc_check_for_hardware_loop): New.
93 * arc-tdep.h (gdbarch_tdep): New field has_hw_loops.
94
22459524
SV
952020-08-25 Shahab Vahedi <shahab@synopsys.com>
96
97 * arc-tdep.h: Include "gdbarch.h".
98
995d3a19
SV
992020-08-25 Shahab Vahedi <shahab@synopsys.com>
100
101 * arch/arc.h
102 (arc_gdbarch_features): New class to stir the selection of target XML.
103 (arc_create_target_description): Use FEATURES to choose XML target.
104 (arc_lookup_target_description): Use arc_create_target_description
105 to create _new_ target descriptions or return the already created
106 ones if the FEATURES is the same.
107 * arch/arc.c: Implementation of prototypes described above.
108 * gdb/arc-tdep.h (arc_regnum enum): Add more registers.
109 (arc_gdbarch_features_init): Initialize the FEATURES struct.
110 * arc-tdep.c (*_feature_name): Make feature names consistent.
111 (arc_register_feature): A new struct to hold information about
112 registers of a particular target/feature.
113 (arc_check_tdesc_feature): Check if XML provides registers in
114 compliance with ARC_REGISTER_FEATURE structs.
115 (arc_update_acc_reg_names): Add aliases for r58 and r59.
116 (determine_*_reg_feature_set): Which feature name to look for.
117 (arc_gdbarch_features_init): Given MACH and ABFD, initialize FEATURES.
118 (mach_type_to_arc_isa): Convert from a set of binutils machine types
119 to expected ISA enums to be used in arc_gdbarch_features structs.
120 * features/Makefile (FEATURE_XMLFILES): Add new files.
121 * gdb/features/arc/v1-aux.c: New file.
122 * gdb/features/arc/v1-aux.xml: Likewise.
123 * gdb/features/arc/v1-core.c: Likewise.
124 * gdb/features/arc/v1-core.xml: Likewise.
125 * gdb/features/arc/v2-aux.c: Likewise.
126 * gdb/features/arc/v2-aux.xml: Likewise.
127 * gdb/features/arc/v2-core.c: Likewise.
128 * gdb/features/arc/v2-core.xml: Likewise.
129 * NEWS (Changes since GDB 9): Announce obsolence of old feature names.
130
3945d2d7
GM
1312020-08-25 Gaius Mulley <gaiusmod2@gmail.com>
132 Andrew Burgess <andrew.burgess@embecosm.com>
133
134 PR m2/26372
fc5d6901 135 * m2-exp.y (exp): Improve comment for non_empty_arglist case, add
3945d2d7
GM
136 an assert. Remove single element array indexing pattern as the
137 MULTI_SUBSCRIPT support will handle this case too.
138
2677f2d3
SM
1392020-08-24 Simon Marchi <simon.marchi@polymtl.ca>
140
141 * value.h (valprint_check_validity): Move declaration from
142 here...
143 * valprint.h (valprint_check_validity): ... to here.
144
c426fddb
SM
1452020-08-24 Simon Marchi <simon.marchi@efficios.com>
146
147 * debug.h: New file.
148 * debug.c (debug_prefixed_vprintf): New function.
149 * infrun.c (infrun_debug_printf_1): Use debug_prefixed_vprintf.
150 * linux-nat.c (linux_nat_debug_printf_1): Likewise.
151
1eb8556f
SM
1522020-08-24 Simon Marchi <simon.marchi@efficios.com>
153
154 * infrun.h (infrun_debug_printf_1): New function declaration.
155 (infrun_debug_printf): New macro.
156 * infrun.c (infrun_debug_printf_1): Use infrun_debug_printf
157 throughout.
158 (infrun_debug_printf): New function.
159 * breakpoint.c (should_be_inserted): Use infrun_debug_printf.
160 (handle_jit_event): Likewise.
161
b8fff44e
MW
1622020-08-21 Mark Wielaard <mark@klomp.org>
163
164 * ada-lex.l: Extend register warnings diagnostics comment for g++.
165
d19c3068
SM
1662020-08-22 Simon Marchi <simon.marchi@efficios.com>
167
168 * frame.c (enum class frame_id_status): New.
169 (struct frame_info) <this_id::p>: Change type to frame_id_status.
170 (fprintf_frame): Update.
171 (compute_frame_id): Set frame id status to "computing" on entry.
172 Set it back to "not_computed" on failure and to "computed" on
173 success.
174 (get_frame_id): Assert the frame id is not being computed.
175 (create_sentinel_frame): Use frame_id_status::COMPUTED.
176 (create_new_frame): Likewise.
177 (frame_cleanup_after_sniffer): Update assert.
178
b70e516e
SM
1792020-08-20 Simon Marchi <simon.marchi@polymtl.ca>
180
181 * regcache.c (pid_ptid_regcache_map): New type.
182 (target_ptid_regcache_map): Remove.
183 (target_pid_ptid_regcache_map): New type.
184 (regcaches): Change type to target_pid_ptid_regcache_map.
185 (get_thread_arch_aspace_regcache): Update.
186 (regcache_thread_ptid_changed): Update, handle pid-like ptid
187 case.
188 (regcaches_size): Update.
189 (regcache_count): Update.
190 (registers_changed_ptid_target_pid_test): New.
191 (_initialize_regcache): Register new test.
192
cdd9148a
SM
1932020-08-20 Simon Marchi <simon.marchi@polymtl.ca>
194
195 * regcache.c (regcache_count): New.
196 (struct regcache_test_data): New.
197 (regcache_test_data_up): New.
198 (populate_regcaches_for_test): New.
199 (regcaches_test): Remove.
200 (get_thread_arch_aspace_regcache_test): New.
201 (registers_changed_ptid_all_test): New.
202 (registers_changed_ptid_target_test): New.
203 (registers_changed_ptid_target_ptid_test): New.
204 (regcache_thread_ptid_changed): Remove regcache_count lambda.
205 (_initialize_regcache): Register new tests.
206
dd125343
SM
2072020-08-20 Simon Marchi <simon.marchi@polymtl.ca>
208
209 * regcache.c (test_get_thread_arch_aspace_regcache): Rename to...
210 (get_thread_arch_aspace_regcache_and_check): ... this. Remove
211 gdbarch and aspace parameter. Use current inferior's aspace.
212 Validate regcache's arch value.
213 (regcaches_test): Update.
214
3ee93972
SM
2152020-08-20 Simon Marchi <simon.marchi@polymtl.ca>
216
217 * regcache.c (regcaches_test): Call registers_changed.
218
33bf4c5c
TBA
2192020-08-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
220
221 * infrun.c (process_event_stop_test): Fix typo "breapoint".
222
c2fd7fae
AKS
2232020-08-19 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
224
225 * amd64-tdep.c (amd64_skip_prologue): Using symbol table
226 to find the end of prologue for flang compiled binaries.
227 * arm-tdep.c (arm_skip_prologue): Likewise.
228 * i386-tdep.c (i386_skip_prologue): Likewise.
229 * producer.c (producer_is_llvm): New function.
230 (producer_parsing_tests): Added new tests for clang/flang.
231 * producer.h (producer_is_llvm): New declaration.
232
9327494e
SM
2332020-08-18 Simon Marchi <simon.marchi@efficios.com>
234
235 * linux-nat.c (linux_nat_debug_printf): New function.
236 (linux_nat_debug_printf_1): New macro. Use throughout the file.
237
d138725a
AM
2382020-08-18 Aaron Merey <amerey@redhat.com>
239
240 * Makefile.in (DEBUGINFOD_CFLAGS, DEBUGINFOD_LIBS): New variables.
241 (INTERNAL_CFLAGS_BASE): Add DEBUGINFOD_CFLAGS.
242 (CLIBS): Add DEBUGINFOD_LIBS.
243
f9b11e6b
ST
2442020-08-17 Sergei Trofimovich <siarheit@google.com>
245
246 * ia64-linux-nat.c: Include "gdbarch.h" to declare used
247 'gdbarch_num_regs'.
248
3ae7ab99
TT
2492020-08-17 Tom Tromey <tromey@adacore.com>
250
251 * ada-varobj.c (ada_varobj_decode_var): Handle case where
252 ada_get_decoded_value returns NULL.
253
b017825f
TT
2542020-08-17 Tom Tromey <tromey@adacore.com>
255
256 * python/py-inferior.c (infpy_search_memory): Use
257 gdb_py_object_from_ulongest.
258 * python/py-infevents.c (create_inferior_call_event_object)
259 (create_memory_changed_event_object): Use
260 gdb_py_object_from_ulongest.
261 * python/py-linetable.c (ltpy_entry_get_pc): Use
262 gdb_py_object_from_ulongest.
263
7635cf79
SM
2642020-08-17 Simon Marchi <simon.marchi@polymtl.ca>
265
266 * loc.c (class symbol_needs_eval_context): Fix indentation.
267
f54be24b
SM
2682020-08-17 Simon Marchi <simon.marchi@polymtl.ca>
269
270 * dwarf2/loc.c (dwarf2_loc_desc_get_symbol_read_needs): Use
271 bool.
272
53d5a2a5
TV
2732020-08-17 Tom de Vries <tdevries@suse.de>
274
275 PR gdb/26393
276 * gdbtypes.c (dump_dynamic_prop): New function.
277 (recursive_dump_type): Use dump_dynamic_prop for TYPE_CODE_RANGE.
278
547ce8f0
TV
2792020-08-15 Tom de Vries <tdevries@suse.de>
280
281 PR backtrace/26390
282 * stack.c (print_frame_args): Temporarily set the selected
283 frame to FRAME while printing the frame's arguments.
284
6ea815e7
PFC
2852020-08-14 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
286
287 PR breakpoints/26385
288 * ppc-linux-nat.c (ppc_linux_nat_target::low_prepare_to_resume):
289 Always clear watchpoint with PTRACE_SET_DEBUGREG.
290
6e562fa3
PFC
2912020-08-14 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
292
293 * ppc-linux-nat.c (ppc_linux_dreg_interface::detect)
294 (ppc_linux_nat_target::low_prepare_to_resume): Use ptrace () < 0
295 and >= to check return value instead of == -1 and != -1.
296
d369b608
SM
2972020-08-14 Simon Marchi <simon.marchi@polymtl.ca>
298
299 * utils.h (class gdb_argv) <as_array_view>: New method.
300 * utils.c (gdb_argv_as_array_view_test): New.
301 (_initialize_utils): Register selftest.
302 * maint.c (maintenance_selftest): Use the new method.
303
b31488a3
KR
3042020-08-13 Kamil Rytarowski <n54@gmx.com>
305
306 * target.h (supports_dumpcore, dumpcore): New
307 function declarations.
308 * target.c (supports_dumpcore, dumpcore): New
309 functions.
310 * target-delegates.c: Rebuild.
311 * gcore.c (gcore_command): Use target_supports_dumpcore ()
312 and target_dumpcore ().
313
002a3166
AM
3142020-08-13 Aaron Merey <amerey@redhat.com>
315
316 * debuginfod-support.c: Replace global variables with user_data.
317
ece5bc8a
SM
3182020-08-13 Simon Marchi <simon.marchi@polymtl.ca>
319
320 * maint.c (maintenance_selftest): Split args and pass array_view
321 to run_tests.
322
6d8a0a5e
LM
3232020-08-12 Luis Machado <luis.machado@linaro.org>
324
325 * value.c (check_type_length_before_alloc): Use ULONGEST to store a
326 type's length.
327 Use %s and pulongest to print the length.
328
7cf663a9
PA
3292020-08-12 Pedro Alves <palves@redhat.com>
330
331 * NEWS: Move "Multi-target debugging support" item to the
332 "Changes since GDB 9" section.
333
27c7b875
PA
3342020-08-12 Pedro Alves <palves@redhat.com>
335
336 PR gdb/26336
337 * progspace.c (program_space::remove_objfile): Invalidate the
338 frame cache.
339
1796a2a1
TV
3402020-08-11 Tom de Vries <tdevries@suse.de>
341
342 * MAINTAINERS: Mark ms1 as deleted.
343
f8e3fe0d
LM
3442020-08-10 Luis Machado <luis.machado@linaro.org>
345
346 PR gdb/26310
347
348 * aarch64-tdep.c (aarch64_analyze_prologue): Track use of SP/FP and
349 act accordingly.
350 (aarch64_analyze_prologue_test): Add more unit tests to exercise
351 movz/str/stur/stp skipping behavior.
352
cc308722
LM
3532020-08-10 Luis Machado <luis.machado@linaro.org>
354
355 * nat/aarch64-sve-linux-sigcontext.h (SVE_PT_REGS_OFFSET): Use
356 struct user_sve_header instead of struct sve_context.
357
041d9819
SM
3582020-08-09 Simon Marchi <simon.marchi@polymtl.ca>
359
360 * read.h (dwarf2_fetch_die_loc_sect_off,
361 dwarf2_fetch_die_loc_cu_off): Replace function pointer +
362 `void *` parameter with function_view.
363 * read.c (dwarf2_fetch_die_loc_sect_off,
364 dwarf2_fetch_die_loc_cu_off): Likewise.
365 * loc.c (get_frame_pc_for_per_cu_dwarf_call): Remove.
366 (per_cu_dwarf_call): Adjust.
367 (get_frame_address_in_block_wrapper): Remove.
368 (indirect_synthetic_pointer): Adjust.
369 (get_ax_pc): Remove.
370 (dwarf2_compile_expr_to_ax): Adjust.
371
38f8aa06
TV
3722020-08-08 Tom de Vries <tdevries@suse.de>
373
374 PR build/26344
375 * arch/riscv.c (riscv_lookup_target_description): Use an explicit
376 constructor.
377 * regcache.c (get_thread_arch_aspace_regcache): Same.
378
a52b3ae2
TT
3792020-08-07 Tom Tromey <tromey@adacore.com>
380
381 * ravenscar-thread.c
382 (ravenscar_thread_target::set_base_thread_from_ravenscar_task):
383 New method.
384 (ravenscar_thread_target::wait): Check
385 runtime_initialized.
386 (ravenscar_thread_target::prepare_to_store)
387 (ravenscar_thread_target::stopped_by_sw_breakpoint)
388 (ravenscar_thread_target::stopped_by_hw_breakpoint)
389 (ravenscar_thread_target::stopped_by_watchpoint)
390 (ravenscar_thread_target::stopped_data_address)
391 (ravenscar_thread_target::core_of_thread): Use
392 scoped_restore_current_thread and
393 set_base_thread_from_ravenscar_task.
394
0e29517d
TT
3952020-08-07 Tom Tromey <tromey@adacore.com>
396
397 * ravenscar-thread.c (update_thread_list): Set inferior_ptid.
398
592f9bd7
TT
3992020-08-07 Tom Tromey <tromey@adacore.com>
400
401 * ravenscar-thread.c (ravenscar_thread_target::wait): Call
402 update_inferior_ptid before update_thread_list.
403 (temporarily_change_regcache_ptid): New class.
404 (ravenscar_thread_target::fetch_registers)
405 (ravenscar_thread_target::store_registers)
406 (ravenscar_thread_target::prepare_to_store): Use base thread when
407 forwarding operation.
408
39e2018a
TT
4092020-08-07 Tom Tromey <tromey@adacore.com>
410
411 * ravenscar-thread.c (ravenscar_thread_target::resume): Handle
412 "is_pid" case.
413
2080266b
TT
4142020-08-07 Tom Tromey <tromey@adacore.com>
415
416 * ravenscar-thread.c (xfer_partial, enable_btrace, add_thread):
417 New methods.
418 (ravenscar_thread_target::get_thread_base_cpu): Check m_cpu_map
419 first.
420 (ravenscar_thread_target::add_thread): Rename from
421 ravenscar_add_thread.
422 (ravenscar_thread_target::update_thread_list): Use a lambda.
423 (ravenscar_thread_target::xfer_partial): New method.
424
78c02f21
TT
4252020-08-07 Tom Tromey <tromey@adacore.com>
426
427 * ada-lang.h (ada_task_list_iterator_ftype): Now a
428 gdb::function_view.
429 (iterate_over_live_ada_tasks): Change type of argument.
430 * ada-tasks.c (iterate_over_live_ada_tasks): Change type
431 of argument.
432
d5d833af
TT
4332020-08-07 Tom Tromey <tromey@adacore.com>
434
435 * ravenscar-thread.c (ravenscar_thread_target) <extra_thread_info>:
436 Remove.
437 (ravenscar_thread_target::extra_thread_info): Remove.
438 (ravenscar_thread_target::pid_to_str): Mention Ravenscar in result;
439 defer to target beneath for non-Ravenscar threads.
440
a8ac85bb
TT
4412020-08-07 Tom Tromey <tromey@adacore.com>
442
443 * ravenscar-thread.c (ravenscar_thread_target) <get_base_cpu,
444 get_base_thread_from_ravenscar_task>: Now methods.
445 <m_cpu_map>: New member.
446 (ravenscar_thread_target::get_thread_base_cpu): Rename from
447 ravenscar_get_thread_base_cpu. Check m_cpu_map.
448 (ravenscar_thread_target::task_is_currently_active): Update.
449 (ravenscar_thread_target::get_base_thread_from_ravenscar_task):
450 Now a method.
451 (ravenscar_thread_target::add_active_thread): Put initial thread
452 into the m_cpu_map.
453
550ab58d
TT
4542020-08-07 Tom Tromey <tromey@adacore.com>
455
456 * ravenscar-thread.c (ravenscar_thread_target::wait): Return
457 event_ptid.
458
e9546579
TT
4592020-08-07 Tom Tromey <tromey@adacore.com>
460
461 * ravenscar-thread.c (ravenscar_thread_target::wait): Check
462 runtime_initialized.
463
3d4470e5
TT
4642020-08-07 Tom Tromey <tromey@adacore.com>
465
466 * ravenscar-thread.c (ravenscar_thread_target): Don't call
467 add_active_thread.
468 (ravenscar_thread_target::add_active_thread): Now public.
469 (ravenscar_inferior_created): Call add_active_thread after pushing
470 the target.
471
888bdb2b
SM
4722020-08-07 Simon Marchi <simon.marchi@polymtl.ca>
473
474 * regcache.c (ptid_regcache_map): New type.
475 (target_ptid_regcache_map): New type.
476 (regcaches): Change type to target_ptid_regcache_map.
477 (get_thread_arch_aspace_regcache): Update to regcaches' new
478 type.
479 (regcache_thread_ptid_changed): Likewise.
480 (registers_changed_ptid): Likewise.
481 (regcaches_size): Likewise.
482 (regcaches_test): Update.
483 (regcache_thread_ptid_changed): Update.
484 * regcache.h (regcache_up): New type.
485 * gdbsupport/ptid.h (hash_ptid): New struct.
486
b161a60d
SM
4872020-08-07 Simon Marchi <simon.marchi@efficios.com>
488
489 * observable.h (thread_ptid_changed): Add parameter
490 `process_stratum_target *`.
491 * infrun.c (infrun_thread_ptid_changed): Add parameter
492 `process_stratum_target *` and use it.
493 (selftests): New namespace.
494 (infrun_thread_ptid_changed): New function.
495 (_initialize_infrun): Register selftest.
496 * regcache.c (regcache_thread_ptid_changed): Add parameter
497 `process_stratum_target *` and use it.
498 (regcache_thread_ptid_changed): New function.
499 (_initialize_regcache): Register selftest.
500 * thread.c (thread_change_ptid): Pass target to
501 thread_ptid_changed observable.
502
d2854d8d
CT
5032020-08-06 Caroline Tice <cmtice@google.com>
504
fe4c3d43
SM
505 * dwarf2/read.c (struct dwo_file): Update comment on 'sections' field.
506 (struct dwp_sections): Update field comments. Add loclists and
507 rnglists fields.
508 (struct virtual_v2_dwo_sections): Rename struct to
509 'virtual_v2_or_v5_dwo_sections'; update comments at top of struct; add
510 size & offset fields for loclists and rnglists.
511 (struct dwp_hash_table): Add a 'v5' struct field to the union section.
512 (create_debug_type_hash_table): Add 'DW_UT_split_type' to the check for
513 skipping dummy type units.
514 (create_dwp_hash_table): Update the large comment above the function to
515 discuss Version 5 DWP files as well, with references. Update all the
516 version checks in the function to check for version 5 as well. Add new
517 section at the end to create dwp hash table for version 5.
518 (create_dwp_v2_section): Rename function to
519 'create_dwp_v2_or_v5_section'. Update function comment appropriately.
520 Add V5 to error message text.
521 (create_dwo_unit_in_dwp_v2): Change calls to create_dwp_v2_section
522 into calls to create_dwp_v2_or_v5_section.
523 (create_dwo_unit_in_dwp_v5): New function.
524 (lookup_dwo_unit_in_dwp): Update conditional statement to explicitly
525 check for version2; add else clause to handle version 5.
526 (open_and_init_dwo_file): Add code to check dwarf version & only call
527 create_debug_types_hash_table (with sections.types) if version is not 5;
528 else call create_debug_type_hash_table, with sections.info.
529 (dwarf2_locate_v2_dwp_sections): Update function comment to mention
530 version 5.
531 (dwarf2_locate_v5_dwp_sections): New function.
532 (open_and_init_dwp_file): Add else-if clause for version 5 to call
533 bfd_map_over_sections with dwarf2_locate_v5_dwp_sections.
d2854d8d 534
159ed7d9
SM
5352020-08-06 Simon Marchi <simon.marchi@efficios.com>
536
537 * regcache.h (class regcache): Remove friend
538 registers_changed_ptid.
539 <regcache_thread_ptid_changed>: Remove.
540 <regcaches>: Remove.
541 * regcache.c (regcache::regcaches): Rename to...
542 (regcaches): ... this. Make static.
543 (get_thread_arch_aspace_regcache): Update.
544 (regcache::regcache_thread_ptid_changed): Rename to...
545 (regcache_thread_ptid_changed): ... this. Update.
546 (class regcache_access): Remove.
547 (regcaches_test): Update.
548 (_initialize_regcache): Update.
549 * sparc64-tdep.c, dwarf2/index-write.c, record-btrace.c: Include
550 <forward_list>.
551
174981ae
SM
5522020-08-06 Simon Marchi <simon.marchi@efficios.com>
553
554 * regcache.h (class regcache) <current_regcache>: Rename to...
555 <regcaches>: ... this. Move doc here.
556 * regcache.c (regcache::current_regcache) Rename to...
557 (regcache::regcaches): ... this. Move doc to header.
558 (get_thread_arch_aspace_regcache): Update.
559 (regcache::regcache_thread_ptid_changed): Update.
560 (registers_changed_ptid): Update.
561 (class regcache_access) <current_regcache_size>: Rename to...
562 <regcaches_size>: ... this.
563 (current_regcache_test): Rename to...
564 (regcaches_test): ... this.
565 (_initialize_regcache): Update.
566
ed908db6
VC
5672020-08-06 Victor Collod <vcollod@nvidia.com>
568
569 * amd64-tdep.c (amd64_analyze_prologue): Fix incorrect comment.
570
b5582ab7
KB
5712020-08-05 Kevin Buettner <kevinb@redhat.com>
572
573 * corelow.c (core_target::build_file_mappings): Don't output
574 null pathname in warning.
575
ea946b86
SM
5762020-08-05 Simon Marchi <simon.marchi@polymtl.ca>
577
578 * gdb.dwarf2/clztest.exp, gdb.dwarf2/dw2-common-block.exp,
579 gdb.dwarf2/dw2-dup-frame.exp, gdb.dwarf2/dw2-reg-undefined.exp,
580 gdb.dwarf2/dw2-single-line-discriminators.exp,
581 dw2-undefined-ret-addr.exp: Pass nopie to compilation options.
582
57d02173
TT
5832020-08-05 Tom Tromey <tromey@adacore.com>
584
585 PR rust/26197:
586 * dwarf2/read.c (alloc_rust_variant): Handle univariant case.
587 (quirk_rust_enum): Call alloc_rust_variant for univariant case.
588 Fix off-by-one and type size errors in ordinary case.
589
5555c86d
TV
5902020-08-05 Tom de Vries <tdevries@suse.de>
591
592 * gdbtypes.c (type_not_allocated, type_not_associated): Use
593 "prop->const_val () == 0" instead of "prop->const_val () != 0".
594
97916bfe
SM
5952020-08-04 Simon Marchi <simon.marchi@efficios.com>
596
597 * frame.h (frame_id_p): Return bool.
598 (frame_id_artificial_p): Return bool.
599 (frame_id_eq): Return bool.
600 (has_stack_frames): Return bool.
601 (get_selected_frame): Fix typo in comment.
602 (get_frame_pc_if_available): Return bool.
603 (get_frame_address_in_block_if_available): Return bool.
604 (get_frame_func_if_available): Return bool.
605 (read_frame_register_unsigned): Return bool.
606 (get_frame_register_bytes): Return bool.
607 (safe_frame_unwind_memory): Return bool.
608 (deprecated_frame_register_read): Return bool.
609 (frame_unwinder_is): Return bool.
610 * frame.c (struct frame_info) <prev_arch::p>: Change type to
611 bool.
612 <this_id::p>: Likewise.
613 <prev_p>: Likewise.
614 (frame_stash_add): Return bool.
615 (get_frame_id): Use bool.
616 (frame_id_build_special) Use bool.
617 (frame_id_build_unavailable_stack): Use bool.
618 (frame_id_build): Use bool.
619 (frame_id_p): Return bool, use true/false instead of 1/0.
620 (frame_id_artificial_p): Likewise.
621 (frame_id_eq): Likewise.
622 (frame_id_inner): Likewise.
623 (get_frame_func_if_available): Likewise.
624 (read_frame_register_unsigned): Likewise.
625 (deprecated_frame_register_read): Likewise.
626 (get_frame_register_bytes): Likewise.
627 (has_stack_frames): Likewise.
628 (inside_main_func): Likewise.
629 (inside_entry_func): Likewise.
630 (get_frame_pc_if_available): Likewise.
631 (get_frame_address_in_block_if_available): Likewise.
632 (frame_unwinder_is): Likewise.
633 (safe_frame_unwind_memory): Likewise.
634 (frame_unwind_arch): Likewise.
635
fedfee88
SM
6362020-08-04 Simon Marchi <simon.marchi@efficios.com>
637
638 * frame.c (frame_info) <prev_func> <p>: Rename to status, change
639 type to cached_copy_status.
640 (fprintf_frame): Adjust.
641 (get_frame_func_if_available): Adjust.
642 (frame_cleanup_after_sniffer): Adjust.
643
6cfa9b59
MW
6442020-08-04 Mark Wielaard <mark@klomp.org>
645
646 * MAINTAINERS (Write After Approval): Update email address.
647
66d6346b
SM
6482020-08-04 Simon Marchi <simon.marchi@polymtl.ca>
649
650 * gdbtypes.h (TYPE_DYN_PROP_ADDR): Remove, replace uses with
651 dynamic_prop::const_val.
652
8a6d5e35
SM
6532020-08-04 Simon Marchi <simon.marchi@polymtl.ca>
654
655 * gdbtypes.h (TYPE_DYN_PROP_KIND): Remove, replace uses with
656 dynamic_prop::kind.
657
51d6067d
SM
6582020-08-04 Simon Marchi <simon.marchi@polymtl.ca>
659
660 * gdbtypes.h (TYPE_DYN_PROP_BATON): Remove.
661
b26e2ae7
JM
6622020-08-04 Jose E. Marchesi <jose.marchesi@oracle.com>
663
664 * configure.tgt: Set gdb_sim for bpf-*-* targets.
665
39791af2
JM
6662020-08-04 Weimin Pan <weimin.pan@oracle.com>
667 Jose E. Marchesi <jose.marchesi@oracle.com>
668
669 * configure.tgt: Add entry for bpf-*-*.
670 * Makefile.in (ALL_TARGET_OBS): Add bpf-tdep.o
671 (ALLDEPFILES): Add bpf-tdep.c.
672 * bpf-tdep.c: New file.
673 * MAINTAINERS: Add bpf target and maintainer.
674 * NEWS: Mention the support for the new target.
675
521894aa
TV
6762020-08-04 Tom de Vries <tdevries@suse.de>
677
678 PR symtab/23270
679 * dwarf2/read.c (find_partial_die): Change internal error into Dwarf
680 Error.
681
5d6356e9
JB
6822020-08-03 John Baldwin <jhb@FreeBSD.org>
683
684 * syscalls/freebsd.xml: Regenerate.
685
0cf82b81
JB
6862020-08-03 John Baldwin <jhb@FreeBSD.org>
687
688 * syscalls/update-freebsd.sh: Fix usage and year range.
689
8f34b746
TV
6902020-08-03 Tom de Vries <tdevries@suse.de>
691
692 PR symtab/26333
693 * dwarf2/read.c (dwarf_decode_lines_1): Ignore
694 DW_LNE_lo_user/DW_LNE_hi_user range.
695
5e500d33
SM
6962020-07-30 Simon Marchi <simon.marchi@polymtl.ca>
697
698 PR ada/26318
699 * ada-lang.c (ada_modulus): Return 0 if property is not of const
700 kind.
701
78319c15
TBA
7022020-07-30 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
703
704 * breakpoint.c (set_breakpoint_condition): Do minor refactoring.
705
4c55e970
TBA
7062020-07-30 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
707
708 * breakpoint.c (set_breakpoint_condition): Update the condition
709 expressions after checking that the input condition string parses
710 successfully and does not contain junk at the end.
711
1e620590
TBA
7122020-07-30 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
713
714 * breakpoint.c (set_breakpoint_condition): Update the
715 condition string after parsing the new condition successfully.
716
c8693053
RO
7172020-07-30 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
718
719 * proc-api.c (_STRUCTURED_PROC): Don't define.
720 * proc-events.c: Likewise.
721 * proc-flags.c: Likewise.
722 * proc-why.c: Likewise.
723 * procfs.c: Likewise.
724
725 * Makefile.in (INTERNAL_CPPFLAGS): Add LARGEFILE_CPPFLAGS.
726 * configure, config.in: Regenerate.
727
5a99adb8
TV
7282020-07-30 Tom de Vries <tdevries@suse.de>
729
730 PR build/26320
731 * ui-style.h (struct ui_file_style::color): Wrap m_value and
732 m_red/m_green/m_blue in a union.
733
8ba83e91
TV
7342020-07-29 Tom de Vries <tdevries@suse.de>
735
736 PR tdep/26280
737 * s390-tdep.c (s390_displaced_step_fixup): Fix Wmaybe-uninitialized.
738
f75a0693
AB
7392020-07-28 Tom Tromey <tromey@adacore.com>
740
741 PR symtab/26270:
742 * symtab.h (find_pc_partial_function_sym): Declare.
743 * cli/cli-cmds.c (disassemble_command): Use
744 find_pc_partial_function_sym. Check asm_demangle.
745 * blockframe.c (cache_pc_function_sym): New global.
746 (cache_pc_function_name): Remove.
747 (clear_pc_function_cache): Update.
748 (find_pc_partial_function_sym): New function, from
749 find_pc_partial_function.
750 (find_pc_partial_function): Rewrite using
751 find_pc_partial_function_sym.
752
16f3242c
TT
7532020-07-28 Tom Tromey <tromey@adacore.com>
754
755 * cli/cli-cmds.c (_initialize_cli_cmds): Rearrange "disassemble"
756 help. Add usage.
757
4888741a
TT
7582020-07-28 Tom Tromey <tromey@adacore.com>
759
760 * dwarf2/expr.c (dwarf_expr_context::execute_stack_op)
761 <DW_OP_GNU_variable_value>: Cast to address type.
762
4d46f402
KR
7632020-07-28 Kamil Rytarowski <n54@gmx.com>
764
765 * nbsd-nat.h (nbsd_nat_target::xfer_partial): New declaration.
766 * nbsd-nat.c (nbsd_nat_target::xfer_partial): New function.
767 * nbsd-tdep.c (nbsd_gdbarch_data_handle, struct nbsd_gdbarch_data)
768 (init_nbsd_gdbarch_data, get_nbsd_gdbarch_data)
769 (nbsd_get_siginfo_type): New.
770 (nbsd_init_abi): Install gdbarch "get_siginfo_type" method.
771 (_initialize_nbsd_tdep): New.
772
d70f978b
L
7732020-07-28 H.J. Lu <hongjiu.lu@intel.com>
774
775 PR binutils/26301
776 * configure: Regenerated.
777
377170fa
L
7782020-07-28 H.J. Lu <hongjiu.lu@intel.com>
779
780 PR binutils/26301
781 * configure: Regenerated.
782
43d5901d
AB
7832020-07-28 Andrew Burgess <andrew.burgess@embecosm.com>
784
785 * python/py-frame.c: Remove 'user-regs.h' include.
786 (frapy_read_register): Rewrite to make use of
787 gdbpy_parse_register_id.
788 * python/py-registers.c (gdbpy_parse_register_id): New function,
789 moved here from python/py-unwind.c. Updated the return type, and
790 also accepts register descriptor objects.
791 * python/py-unwind.c: Remove 'user-regs.h' include.
792 (pyuw_parse_register_id): Moved to python/py-registers.c.
793 (unwind_infopy_add_saved_register): Update to use
794 gdbpy_parse_register_id.
795 (pending_framepy_read_register): Likewise.
796 * python/python-internal.h (gdbpy_parse_register_id): Declare.
797
14fa8fb3
AB
7982020-07-28 Andrew Burgess <andrew.burgess@embecosm.com>
799
800 * python/py-registers.c: Add 'user-regs.h' include.
801 (register_descriptor_iter_find): New function.
802 (register_descriptor_iterator_object_methods): New static global
803 methods array.
804 (register_descriptor_iterator_object_type): Add pointer to methods
805 array.
806
ddce1758
JB
8072020-07-27 John Baldwin <jhb@FreeBSD.org>
808
809 * fbsd-nat.h: Include <osreldate.h>. Define USE_SIGTRAP_SIGINFO
810 for all architectures on FreeBSD 11.3 and later.
811
a4089f52
TT
8122020-07-27 Tom Tromey <tromey@adacore.com>
813
814 * gcore.h (load_corefile): Don't declare.
815
95420d30
TV
8162020-07-27 Tom de Vries <tdevries@suse.de>
817
818 * configure.ac: Fix sys/sockets.h -> sys/socket.h typo.
819 * config.in: Regenerate.
820 * configure: Regenerate.
821
05a6b8c2
EZ
8222020-07-26 Eli Zaretskii <eliz@gnu.org>
823
824 * configure.ac (AC_CHECK_HEADERS): Check for sys/socket.h and
825 ws2tcpip.h. When checking whether socklen_t type is defined, use
826 ws2tcpip.h if it is available and sys/socket.h isn't.
827 * configure: Regenerate.
828 * config.in: Regenerate.
829
e79eb02f
AB
8302020-07-25 Andrew Burgess <andrew.burgess@embecosm.com>
831
832 PR fortran/23051
833 PR fortran/26139
834 * valops.c (value_ind): Pass address to
835 readjust_indirect_value_type.
836 * value.c (readjust_indirect_value_type): Make parameter
837 non-const, and add extra address parameter. Resolve original type
838 before using it.
839 * value.h (readjust_indirect_value_type): Update function
840 signature and comment.
841
876518dd
TV
8422020-07-25 Tom de Vries <tdevries@suse.de>
843
844 PR symtab/26243
845 * dwarf2/read.c (lnp_state_machine::record_line): Ignore zero line
846 entries.
847
f6720b1c
AM
8482020-07-24 Aaron Merey <amerey@redhat.com>
849
850 * Makefile.in: Replace LIBDEBUGINFOD with DEBUGINFOD_LIBS.
851 * configure: Rebuild.
852
513487e1
KB
8532020-07-23 Kevin Buettner <kevinb@redhat.com>
854
855 PR corefiles/26294
856 * corelow.c (_initialize_corelow): Add period to help text
857 for "maintenance print core-file-backed-mappings".
858
e7bc9db8
PA
8592020-07-23 Pedro Alves <pedro@palves.net>
860
861 * frame-unwind.c (frame_unwind_try_unwinder): On exception, don't
862 touch THIS_CACHE/THIS_FRAME if the frame cache was cleared
863 meanwhile.
864 * frame.c (frame_cache_generation, get_frame_cache_generation):
865 New.
866 (reinit_frame_cache): Increment FRAME_CACHE_GENERATION.
867 (get_prev_frame_if_no_cycle): On exception, don't touch
868 PREV_FRAME/THIS_FRAME if the frame cache was cleared meanwhile.
869 * frame.h (get_frame_cache_generation): Declare.
870
90fcc466
TV
8712020-07-23 Tom de Vries <tdevries@suse.de>
872
873 PR tui/26282
874 * tui/tui-winsource.h (struct tui_source_windows::tui_source_windows):
875 New default constructor.
876
78344df7
AB
8772020-07-23 Andrew Burgess <andrew.burgess@embecosm.com>
878
879 * disasm.c (do_mixed_source_and_assembly_deprecated): Don't
880 exclude non-statement entries.
881
b089853a
KB
8822020-07-22 Kevin Buettner <kevinb@redhat.com>
883
884 * NEWS (New commands): Mention new command
885 "maintenance print core-file-backed-mappings".
886
09c2f5d4
KB
8872020-07-22 Kevin Buettner <kevinb@redhat.com>
888
889 * corelow.c (gdbcmd.h): Include.
890 (core_target::info_proc_mappings): New method.
891 (get_current_core_target): New function.
892 (maintenance_print_core_file_backed_mappings): New function.
893 (_initialize_corelow): Add core-file-backed-mappings to
894 "maint print" commands.
895
9c5ec5c2 8962020-07-22 Kevin Buettner <kevinb@redhat.com>
fe4c3d43 897
9c5ec5c2
KB
898 * linux-tdep.c (dump_note_entry_p): New function.
899 (linux_dump_mapping_p_ftype): New typedef.
900 (linux_find_memory_regions_full): Add new parameter,
901 should_dump_mapping_p.
902 (linux_find_memory_regions): Adjust call to
903 linux_find_memory_regions_full.
904 (linux_make_mappings_core_file_notes): Use dump_note_entry_p in
905 call to linux_find_memory_regions_full.
906
db082f59
KB
9072020-07-22 Kevin Buettner <kevinb@redhat.com>
908
909 * corelow.c (solist.h, unordered_map): Include.
910 (class core_target): Add field m_core_file_mappings and
911 method build_file_mappings.
912 (core_target::core_target): Call build_file_mappings.
913 (core_target::~core_target): Free memory associated with
914 m_core_file_mappings.
915 (core_target::build_file_mappings): New method.
916 (core_target::xfer_partial): Use m_core_file_mappings
917 for memory transfers.
918 * linux-tdep.c (linux_read_core_file_mappings): New
919 function.
920 (linux_core_info_proc_mappings): Rewrite to use
921 linux_read_core_file_mappings.
922 (linux_init_abi): Register linux_read_core_file_mappings.
923
7e183d27
KB
9242020-07-22 Kevin Buettner <kevinb@redhat.com>
925
926 * arch-utils.c (default_read_core_file_mappings): New function.
927 * arch-utils.c (default_read_core_file_mappings): Declare.
928 * gdbarch.sh (read_core_file_mappings): New gdbarch method.
929 * gdbarch.h, gdbarch.c: Regenerate.
930
2735d421
KB
9312020-07-22 Kevin Buettner <kevinb@redhat.com>
932
933 PR corefiles/25631
934 * corelow.c (core_target:xfer_partial): Revise
935 TARGET_OBJECT_MEMORY case to consider non-SEC_HAS_CONTENTS
936 case after first checking the stratum beneath the core
937 target.
938 (has_all_memory): Return true.
939 * target.c (raw_memory_xfer_partial): Revise comment
940 regarding use of has_all_memory.
941
e56cb451
KB
9422020-07-22 Kevin Buettner <kevinb@redhat.com>
943
944 * exec.h (section_table_xfer_memory): Revise declaration,
945 replacing section name parameter with an optional callback
946 predicate.
947 * exec.c (section_table_xfer_memory): Likewise.
948 * bfd-target.c, exec.c, target.c, corelow.c: Adjust all callers
949 of section_table_xfer_memory.
950
32fa152e
TT
9512020-07-22 Tom Tromey <tromey@adacore.com>
952
953 * mi/mi-cmd-stack.c (list_args_or_locals): Use
954 lookup_symbol_search_name.
955
a67a1c41
AB
9562020-07-22 Andrew Burgess <andrew.burgess@embecosm.com>
957
958 * python/py-registers.c (gdbpy_register_object_data_init): Remove
959 redundant local variable.
960 (gdbpy_get_register_descriptor): Extract descriptor vector as a
961 reference, not pointer, update code accordingly.
962
a7b4ff4f
SM
9632020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
964 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
965
966 * objfiles.h (struct objfile) <skip_jit_symbol_lookup>: New field.
967 * jit.c (jit_breakpoint_re_set_internal): Use the
968 `skip_jit_symbol_lookup` field.
969
2340e834
SM
9702020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
971 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
972
973 * jit.c (jit_read_descriptor): Define the descriptor address once,
974 use twice.
975 (jit_breakpoint_deleted): Move the declaration of the loop variable
976 `iter` into the loop header.
977 (jit_breakpoint_re_set_internal): Move the declaration of the local
978 variable `objf_data` to the first point of definition.
979 (jit_event_handler): Move the declaration of local variables
980 `code_entry`, `entry_addr`, and `objf` to their first point of use.
981 Rename `objf` to `jited`.
982
c1072906
SM
9832020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
984
985 * jit.h (struct jiter_objfile_data) <jiter_objfile_data, objfile>:
986 Remove.
987 * jit.c (get_jiter_objfile_data): Update.
988
c8474dc3
TBA
9892020-07-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
990 Simon Marchi <simon.marchi@polymtl.ca>
991
992 * jit.c (struct jit_program_space_data): Remove.
993 (jit_program_space_key): Remove.
994 (jiter_objfile_data::~jiter_objfile_data): Remove program space
995 stuff.
996 (get_jit_program_space_data): Remove.
997 (jit_breakpoint_deleted): Iterate on all of the program space's
998 objfiles.
999 (jit_inferior_init): Likewise.
1000 (jit_breakpoint_re_set_internal): Likewise. Also change return
1001 type to void.
1002 (jit_breakpoint_re_set): Pass current_program_space to
1003 jit_breakpoint_re_set_internal.
1004
77208eb7
SM
10052020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
1006
1007 * jit.h (struct jiter_objfile_data) <cached_code_address,
1008 jit_breakpoint>: Move to here from ...
1009 * jit.c (jit_program_space_data): ... here.
1010 (jiter_objfile_data::~jiter_objfile_data): Update.
1011 (jit_breakpoint_deleted): Update.
1012 (jit_breakpoint_re_set_internal): Update.
1013
8c1c720f
SM
10142020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
1015
1016 * jit.c (jiter_objfile_data::~jiter_objfile_data): Remove some
1017 checks.
1018 (jit_read_descriptor): Remove NULL check.
1019 (jit_event_handler): Add an assertion.
1020
0e74a041
SM
10212020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
1022
1023 * jit.h (struct jit_objfile_data): Split into...
1024 (struct jiter_objfile_data): ... this ...
1025 (struct jited_objfile_data): ... and this.
1026 * objfiles.h (struct objfile) <jit_data>: Remove.
1027 <jiter_data, jited_data>: New fields.
1028 * jit.c (jit_objfile_data::~jit_objfile_data): Rename to ...
1029 (jiter_objfile_data::~jiter_objfile_data): ... this.
1030 (get_jit_objfile_data): Rename to ...
1031 (get_jiter_objfile_data): ... this.
1032 (add_objfile_entry): Update.
1033 (jit_read_descriptor): Use get_jiter_objfile_data.
1034 (jit_find_objf_with_entry_addr): Use objfile's jited_data field.
1035 (jit_breakpoint_re_set_internal): Use get_jiter_objfile_data.
1036 (jit_inferior_exit_hook): Use objfile's jited_data field.
1037
238b5c9f
SM
10382020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
1039
1040 * jit.h: Forward-declare `struct minimal_symbol`.
1041 (struct jit_objfile_data): Migrate to here from jit.c; also add a
1042 constructor, destructor, and an objfile* field.
1043 * jit.c (jit_objfile_data): Remove.
1044 (struct jit_objfile_data): Migrate from here to jit.h.
1045 (jit_objfile_data::~jit_objfile_data): New destructor
1046 implementation with code moved from free_objfile_data.
1047 (free_objfile_data): Delete.
1048 (get_jit_objfile_data): Update to use the jit_data field of objfile.
1049 (jit_find_objf_with_entry_addr): Ditto.
1050 (jit_inferior_exit_hook): Ditto.
1051 (_initialize_jit): Remove the call to
1052 register_objfile_data_with_cleanup.
1053 * objfiles.h (struct objfile) <jit_data>: New field.
1054
fe053b9e
TBA
10552020-07-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1056
1057 * jit.h: Forward-declare `struct objfile`.
1058 (jit_event_handler): Add a second parameter, the JITer objfile.
1059 * jit.c (jit_read_descriptor): Change the signature to take the
1060 JITer objfile as an argument instead of the jit_program_space_data.
1061 (jit_inferior_init): Update the call to jit_read_descriptor.
1062 (jit_event_handler): Use the new JITer objfile argument when calling
1063 jit_read_descriptor.
1064 * breakpoint.c (handle_jit_event): Update the call to
1065 jit_event_handler to pass the JITer objfile.
1066
4cec0c66
JB
10672020-07-21 John Baldwin <jhb@FreeBSD.org>
1068
1069 * gdbarch.c: Regenerate.
1070 * gdbarch.h: Regenerate.
1071 * gdbarch.sh (handle_segmentation_fault): Remove method.
1072 * infrun.c (handle_segmentation_fault): Remove.
1073 (print_signal_received_reason): Remove call to
1074 handle_segmentation_fault.
1075
0e42f66a
JB
10762020-07-21 John Baldwin <jhb@FreeBSD.org>
1077
1078 * sparc64-linux-tdep.c (sparc64_linux_handle_segmentation_fault):
1079 Rename to sparc64_linux_report_signal_info and add siggnal
1080 argument.
1081 (sparc64_linux_init_abi): Use sparc64_linux_report_signal_info
1082 instead of sparc64_linux_handle_segmentation_fault.
1083
77bdfeb2
JB
10842020-07-21 John Baldwin <jhb@FreeBSD.org>
1085
1086 * amd64-linux-tdep.c (amd64_linux_init_abi_common): Use
1087 i386_linux_report_signal_info instead of
1088 i386_linux_handle_segmentation_fault.
1089 * i386-linux-tdep.c (i386_linux_handle_segmentation_fault): Rename
1090 to i386_linux_report_signal_info and add siggnal argument.
1091 (i386_linux_init_abi): Use i386_linux_report_signal_info instead
1092 of i386_linux_handle_segmentation_fault.
1093 * i386-linux-tdep.h (i386_linux_handle_segmentation_fault): Rename
1094 to i386_linux_report_signal_info and add siggnal argument.
1095
ad97bfc5
JB
10962020-07-21 John Baldwin <jhb@FreeBSD.org>
1097
1098 * corelow.c (core_target_open): Invoke gdbarch report_signal_info
1099 hook if present.
1100
272bb05c
JB
11012020-07-21 John Baldwin <jhb@FreeBSD.org>
1102
1103 * gdbarch.c: Regenerate.
1104 * gdbarch.h: Regenerate.
1105 * gdbarch.sh (report_signal_info): New method.
1106 * infrun.c (print_signal_received_reason): Invoke gdbarch
1107 report_signal_info hook if present.
1108
baf8791e
AB
11092020-07-21 Andrew Burgess <andrew.burgess@embecosm.com>
1110
1111 * python/py-registers.c : Add 'unordered_map' include.
1112 (gdbpy_new_reggroup): Renamed to...
1113 (gdbpy_get_reggroup): ...this. Update to only create register
1114 group descriptors when needed.
1115 (gdbpy_reggroup_iter_next): Update.
1116
f7306dac
AB
11172020-07-21 Andrew Burgess <andrew.burgess@embecosm.com>
1118
1119 * python/py-registers.c (gdbpy_register_object_data): New static
1120 global.
1121 (gdbpy_register_object_data_init): New function.
1122 (gdbpy_new_register_descriptor): Renamed to...
1123 (gdbpy_get_register_descriptor): ...this, and update to reuse
1124 existing register descriptors where possible.
1125 (gdbpy_register_descriptor_iter_next): Update.
1126 (gdbpy_initialize_registers): Register new gdbarch data.
1127
05c309a8
SM
11282020-07-21 Simon Marchi <simon.marchi@efficios.com>
1129
1130 * linux-nat.c (stopped_pids): Make static.
1131
d1fd641e
SM
11322020-07-21 Simon Marchi <simon.marchi@polymtl.ca>
1133
1134 PR ada/26235
1135 * gdbtypes.c (ada_discrete_type_low_bound,
1136 ada_discrete_type_high_bound): Handle undefined bounds.
1137
1de14d77
KR
11382020-07-21 Kamil Rytarowski <n54@gmx.com>
1139
1140 * nbsd-nat.h (nbsd_nat_target::supports_multi_process): New
1141 declaration.
1142 * nbsd-nat.c (nbsd_nat_target::supports_multi_process): New
1143 function.
1144
ed810cc7
JB
11452020-07-20 John Baldwin <jhb@FreeBSD.org>
1146
1147 * fbsd-tdep.c (fbsd_skip_solib_resolver): New function.
1148 (fbsd_init_abi): Install gdbarch "skip_solib_resolver" method.
1149 * fbsd-tdep.h (fbsd_skip_solib_resolver): New prototype.
1150 * mips-fbsd-tdep.c (mips_fbsd_skip_solib_resolver): New function.
1151 (mips_fbsd_init_abi): Install gdbarch "skip_solib_resolver"
1152 method.
1153
ae5369e7
LC
11542020-07-20 Ludovic Courtès <ludo@gnu.org>
1155
1156 * guile/scm-math.c (vlscm_integer_fits_p): Use 'uintmax_t'
1157 and 'intmax_t' instead of 'scm_t_uintmax' and 'scm_t_intmax',
1158 which are deprecated in Guile 3.0.
1159 * configure.ac (try_guile_versions): Add "guile-3.0".
1160 * configure (try_guile_versions): Regenerate.
1161 * NEWS: Update entry.
1162
68cf161c
LC
11632020-07-20 Ludovic Courtès <ludo@gnu.org>
1164 Doug Evans <dje@google.com>
1165
1166 PR gdb/21104
1167 * guile/scm-ports.c (USING_GUILE_BEFORE_2_2): New macro.
1168 (ioscm_memory_port)[read_buf_size, write_buf_size]: Wrap in #if
1169 USING_GUILE_BEFORE_2_2.
1170 (stdio_port_desc, memory_port_desc) [!USING_GUILE_BEFORE_2_2]:
1171 Change type to 'scm_t_port_type *'.
1172 (natural_buffer_size) [!USING_GUILE_BEFORE_2_2]: New variable.
1173 (ioscm_open_port) [USING_GUILE_BEFORE_2_2]: Add 'stream'
1174 parameter and honor it. Update callers.
1175 (ioscm_open_port) [!USING_GUILE_BEFORE_2_2]: New function.
1176 (ioscm_read_from_port, ioscm_write) [!USING_GUILE_BEFORE_2_2]: New
1177 functions.
1178 (ioscm_fill_input, ioscm_input_waiting, ioscm_flush): Wrap in #if
1179 USING_GUILE_BEFORE_2_2.
1180 (ioscm_init_gdb_stdio_port) [!USING_GUILE_BEFORE_2_2]: Use
1181 'ioscm_read_from_port'. Call 'scm_set_port_read_wait_fd'.
1182 (ioscm_init_stdio_buffers) [!USING_GUILE_BEFORE_2_2]: New function.
1183 (gdbscm_stdio_port_p) [!USING_GUILE_BEFORE_2_2]: Use 'SCM_PORTP'
1184 and 'SCM_PORT_TYPE'.
1185 (gdbscm_memory_port_end_input, gdbscm_memory_port_seek)
1186 (ioscm_reinit_memory_port): Wrap in #if USING_GUILE_BEFORE_2_2.
1187 (gdbscm_memory_port_read, gdbscm_memory_port_write)
1188 (gdbscm_memory_port_seek, gdbscm_memory_port_close)
1189 [!USING_GUILE_BEFORE_2_2]: New functions.
1190 (gdbscm_memory_port_print): Remove use of 'SCM_PTOB_NAME'.
1191 (ioscm_init_memory_port_type) [!USING_GUILE_BEFORE_2_2]: Use
1192 'gdbscm_memory_port_read'.
1193 Wrap 'scm_set_port_end_input', 'scm_set_port_flush', and
1194 'scm_set_port_free' calls in #if USING_GUILE_BEFORE_2_2.
1195 (gdbscm_get_natural_buffer_sizes) [!USING_GUILE_BEFORE_2_2]: New
1196 function.
1197 (ioscm_init_memory_port): Remove.
1198 (ioscm_init_memory_port_stream): New function
1199 (ioscm_init_memory_port_buffers) [USING_GUILE_BEFORE_2_2]: New
1200 function.
1201 (gdbscm_memory_port_read_buffer_size) [!USING_GUILE_BEFORE_2_2]:
1202 Return scm_from_uint (0).
1203 (gdbscm_set_memory_port_read_buffer_size_x)
1204 [!USING_GUILE_BEFORE_2_2]: Call 'scm_setvbuf'.
1205 (gdbscm_memory_port_write_buffer_size) [!USING_GUILE_BEFORE_2_2]:
1206 Return scm_from_uint (0).
1207 (gdbscm_set_memory_port_write_buffer_size_x)
1208 [!USING_GUILE_BEFORE_2_2]: Call 'scm_setvbuf'.
1209 * configure.ac (try_guile_versions): Add "guile-2.2".
1210 * configure: Regenerate.
1211 * NEWS: Add entry.
1212
aee91db3
TT
12132020-07-18 Tom Tromey <tom@tromey.com>
1214
1215 * linux-nat.c (linux_multi_process): Remove.
1216 (linux_nat_target::supports_multi_process): Return true.
1217
0e267416
AB
12182020-07-17 Andrew Burgess <andrew.burgess@embecosm.com>
1219
1220 * arch/riscv.c (riscv_tdesc_cache): Change map type.
1221 (riscv_lookup_target_description): Return pointer out of
1222 unique_ptr.
1223 * target-descriptions.c (allocate_target_description): Add
1224 comment.
1225 (target_desc_deleter::operator()): Likewise.
1226 * target-descriptions.h (struct target_desc_deleter): Moved to
1227 gdbsupport/tdesc.h.
1228 (target_desc_up): Likewise.
1229
f80c8ec4
TT
12302020-07-17 Tom Tromey <tromey@adacore.com>
1231
1232 * linux-nat.c (linux_nat_target::supports_non_stop)
1233 (linux_nat_target::always_non_stop_p): Use "true".
1234 (linux_nat_target::supports_disable_randomization): Use "true" and
1235 "false".
1236
d0ce17d8
CT
12372020-07-16 Caroline Tice <cmtice@google.com>
1238
1239 * dwarf2/read.c (RNGLIST_HEADER_SIZE32) New constant definition.
1240 (RNGLIST_HEADER_SIZE64): New constant definition.
1241 (struct dwop_section_names): Add rnglists_dwo.
1242 (dwop_section_names): Add .debug_rnglists.dwo, .zdebug_rnglists.dwo.
1243 (struct loclist_header): Rename to 'loclists_rnglists_header'.
1244 (struct dwo_sections): Add rnglists field.
1245 (read_attribut_reprocess): Add tag parameter.
1246 (dwarf2_ranges_read): Add tag parameter & remove forward function decl.
1247 (cu_debug_rnglists_section): New function (decl & definition).
1248 (dwarf2_locate_dwo_sections): Add code to read rnglists_dwo section.
1249 (dwarf2_rnglists_process): Add a dwarf_tag parameter, for the kind of
1250 die whose range is being checked; get rnglist section from
1251 cu_debug_rnglists_section, to get from either objfile or dwo file as
1252 appropriate. Add cases for DW_RLE_base_addressx,
1253 DW_RLE_startx_length, DW_RLE_startx_endx. Also, update to only add
1254 the base address to DW_RLE_offset_pairs (not to all ranges), moving
1255 test inside if-condition and updating complaint message.
1256 (dwarf2_ranges_process): Add dwarf tag parameter and pass it to
1257 dwarf2_rnglists_process.
1258 (dwarf2_ranges_read): Add dwarf tag parameter and pass it to
1259 dwarf2_ranges_process.
1260 (dwarf2_get_pc_bounds): Check for DW_FORM_rnglistx when setting
1261 need_ranges_base and update comment appropriately. Also pass die tag
1262 to dwarf2_ranges_read.
1263 (dwarf2_record_block_ranges): Check for DW_FORM_rnglistx when setting
1264 need_ranges_base and update comment appropriately. Also pass die tag
1265 to dwarf2_ranges_process.
1266 (read_full_die_1): Add code to read DW_AT_rnglists_base and assign to
1267 cu->ranges_base. Also pass die tag to read_attribute_reprocess.
1268 (partial_die_info::read): Check for DW_FORM_rnglistx when setting
1269 need_ranges_base and update comment appropriately. Also pass die tag
1270 to read_attribute_reprocess and dwarf2_ranges_read.
1271 (read_loclist_header): Rename function to read_loclists_rnglists_header,
1272 and update function comment appropriately.
1273 (read_loclist_index): Call read_loclists_rnglists_header instead of
1274 read_loclist_header.
1275 (read_rnglist_index): New function.
1276 (read_attribute_reprocess): Add tag parameter. Add code for
1277 DW_FORM_rnglistx, passing tag to read_rnglist_index.
1278 (read_attribute_value): Mark DW_FORM_rnglistx with need_reprocess.
1279
3dcc261c
AB
12802020-07-15 Andrew Burgess <andrew.burgess@embecosm.com>
1281
1282 * f-typeprint.c (f_type_print_base): Allow for dynamic types not
1283 being resolved.
1284
ccb9eba6
AB
12852020-07-14 Andrew Burgess <andrew.burgess@embecosm.com>
1286
1287 * arch-utils.c (show_architecture): Update formatting of messages.
1288
cf88be68
SM
12892020-07-12 Simon Marchi <simon.marchi@efficios.com>
1290
1291 * gdbtypes.h (struct type) <bounds>: Handle array and string
1292 types.
1293 * ada-lang.c (assign_aggregate): Use type::bounds on
1294 array/string type.
1295 * c-typeprint.c (c_type_print_varspec_suffix): Likewise.
1296 * c-varobj.c (c_number_of_children): Likewise.
1297 (c_describe_child): Likewise.
1298 * eval.c (evaluate_subexp_for_sizeof): Likewise.
1299 * f-typeprint.c (f_type_print_varspec_suffix): Likewise.
1300 (f_type_print_base): Likewise.
1301 * f-valprint.c (f77_array_offset_tbl): Likewise.
1302 (f77_get_upperbound): Likewise.
1303 (f77_print_array_1): Likewise.
1304 * guile/scm-type.c (gdbscm_type_range): Likewise.
1305 * m2-typeprint.c (m2_array): Likewise.
1306 (m2_is_long_set_of_type): Likewise.
1307 * m2-valprint.c (get_long_set_bounds): Likewise.
1308 * p-typeprint.c (pascal_type_print_varspec_prefix): Likewise.
1309 * python/py-type.c (typy_range): Likewise.
1310 * rust-lang.c (rust_internal_print_type): Likewise.
1311 * type-stack.c (type_stack::follow_types): Likewise.
1312 * valarith.c (value_subscripted_rvalue): Likewise.
1313 * valops.c (value_cast): Likewise.
1314
509971ae
SM
13152020-07-12 Simon Marchi <simon.marchi@efficios.com>
1316
1317 * gdbtypes.c (TYPE_ARRAY_BIT_STRIDE): Remove. Update all
1318 callers to use the equivalent accessor methods.
1319
107406b7
SM
13202020-07-12 Simon Marchi <simon.marchi@efficios.com>
1321
1322 * gdbtypes.h (struct range_bounds) <bit_stride>: New method.
1323 (struct type) <bit_stride>: New method.
1324 (TYPE_BIT_STRIDE): Remove.
1325 * gdbtypes.c (update_static_array_size): Use type::bit_stride.
1326
bb789949
SM
13272020-07-12 Simon Marchi <simon.marchi@efficios.com>
1328
1329 * gdbtypes.h (TYPE_ARRAY_LOWER_BOUND_VALUE,
1330 TYPE_ARRAY_UPPER_BOUND_VALUE): Remove. Update all
1331 callers to use the equivalent accessor methods instead.
1332
39498edb
SM
13332020-07-12 Simon Marchi <simon.marchi@efficios.com>
1334
1335 * gdbtypes.h (TYPE_ARRAY_UPPER_BOUND_IS_UNDEFINED,
1336 TYPE_ARRAY_LOWER_BOUND_IS_UNDEFINED): Remove. Update all
1337 callers to use the equivalent accessor methods instead.
1338
3b606f38
SM
13392020-07-12 Simon Marchi <simon.marchi@efficios.com>
1340
1341 * gdbtypes.h (TYPE_LOW_BOUND_KIND,
1342 TYPE_HIGH_BOUND_KIND): Remove. Update all callers
1343 to use dynamic_prop::kind.
1344
064d9cb9
SM
13452020-07-12 Simon Marchi <simon.marchi@efficios.com>
1346
1347 * gdbtypes.h (TYPE_LOW_BOUND_UNDEFINED,
1348 TYPE_HIGH_BOUND_UNDEFINED): Remove. Update all callers
1349 to get the bound property's kind and check against
1350 PROP_UNDEFINED.
1351
5537ddd0
SM
13522020-07-12 Simon Marchi <simon.marchi@efficios.com>
1353
1354 * gdbtypes.h (TYPE_LOW_BOUND, TYPE_HIGH_BOUND): Remove. Update
1355 all callers to use type::range_bounds followed by
1356 dynamic_prop::{low,high}.
1357
8c2e4e06
SM
13582020-07-12 Simon Marchi <simon.marchi@polymtl.ca>
1359
1360 * gdbtypes.h (struct dynamic_prop) <kind, set_undefined,
1361 const_val, set_const_val, baton, set_locexpr, set_loclist,
1362 set_addr_offset, variant_parts, set_variant_parts,
1363 original_type, set_original_type>: New methods.
1364 <kind>: Rename to...
1365 <m_kind>: ... this. Update all users to use the new methods
1366 instead.
1367 <data>: Rename to...
1368 <m_data>: ... this. Update all users to use the new methods
1369 instead.
1370
7c6f2712
SM
13712020-07-12 Simon Marchi <simon.marchi@efficios.com>
1372
1373 * gdbtypes.c (get_discrete_bounds): Return failure if
1374 the range type's bounds are not both defined and constant
1375 values.
1376 (get_array_bounds): Update comment. Remove undefined bound check.
1377
599088e3
SM
13782020-07-12 Simon Marchi <simon.marchi@polymtl.ca>
1379
1380 * gdbtypes.h (TYPE_RANGE_DATA): Remove. Update callers to use
1381 the type::bounds method directly.
1382
c4dfcb36
SM
13832020-07-12 Simon Marchi <simon.marchi@efficios.com>
1384
1385 * gdbtypes.h (struct type) <bounds, set_bounds>: New methods.
1386 (TYPE_RANGE_DATA): Use type::bounds. Change all uses that
1387 are used to set the range type's bounds to use set_bounds.
1388
0a278aa7
PW
13892020-07-11 Philippe Waroquiers <philippe.waroquiers@skynet.be>
1390
1391 * exec.c (_initialize_exec): Update exec-file-mismatch help.
1392
cce20f10
PA
13932020-07-10 Pedro Alves <pedro@palves.net>
1394
1395 * gdbthread.h (inferior_ref): Define.
1396 (scoped_restore_current_thread) <m_thread>: Now a thread_info_ref.
1397 (scoped_restore_current_thread) <m_inf>: Now an inferior_ref.
1398 * thread.c
1399 (scoped_restore_current_thread::restore):
1400 Adjust to gdb::ref_ptr.
1401 (scoped_restore_current_thread::~scoped_restore_current_thread):
1402 Remove manual decref handling.
1403 (scoped_restore_current_thread::scoped_restore_current_thread):
1404 Adjust to use
1405 inferior_ref::new_reference/thread_info_ref::new_reference.
1406 Incref the thread before calling get_frame_id instead of after.
1407 Let TARGET_CLOSE_ERROR propagate.
1408
6d7aa592
PA
14092020-07-10 Pedro Alves <pedro@palves.net>
1410
1411 * frame-tailcall.c (dwarf2_tailcall_sniffer_first): Only swallow
1412 NO_ENTRY_VALUE_ERROR / MEMORY_ERROR / OPTIMIZED_OUT_ERROR /
1413 NOT_AVAILABLE_ERROR.
1414 * value.c (value_optimized_out): Only swallow MEMORY_ERROR /
1415 OPTIMIZED_OUT_ERROR / NOT_AVAILABLE_ERROR.
1416
b3e3a4c1
SM
14172020-07-10 Simon Marchi <simon.marchi@polymtl.ca>
1418 Pedro Alves <pedro@palves.net>
1419
1420 PR gdb/26199
1421 * infrun.c (threads_are_resumed_pending_p): Delete.
1422 (do_target_wait): Remove threads_are_executing and
1423 threads_are_resumed_pending_p checks from the inferior_matches
1424 lambda. Update comments.
1425
d6cc5d98
PA
14262020-07-10 Pedro Alves <pedro@palves.net>
1427
1428 PR gdb/26199
1429 * infrun.c (handle_no_resumed): Transfer terminal to inferior with
1430 executing threads.
1431
7d3badc6
PA
14322020-07-10 Pedro Alves <pedro@palves.net>
1433
1434 PR gdb/26199
1435 * infrun.c (handle_no_resumed): Handle multiple targets.
1436
42bd97a6
PA
14372020-07-10 Pedro Alves <pedro@palves.net>
1438
1439 PR gdb/26199
1440 * infrun.c (prepare_to_wait): Check target_can_async_p instead of
1441 target_is_async_p.
1442
43667cc6
PA
14432020-07-10 Pedro Alves <pedro@palves.net>
1444
1445 PR gdb/26199
1446 * target.c (target_pass_ctrlc): Look at the inferior's non-exited
1447 threads, not all threads.
1448
96118d11
PA
14492020-07-10 Pedro Alves <pedro@palves.net>
1450
1451 PR gdb/26199
1452 * remote.c (remote_target::open_1): Pass remote target pointer as
1453 data to create_async_event_handler.
1454 (remote_async_inferior_event_handler): Mark async event handler
1455 before returning if the remote target still has either pending
1456 events or unacknowledged notifications.
1457
54904d81
JB
14582020-07-10 John Baldwin <jhb@FreeBSD.org>
1459
1460 * fbsd-nat.h (fbsd_nat_target::supports_multi_process): New
1461 declaration.
1462 * fbsd-nat.c (fbsd_nat_target::supports_multi_process): New
1463 function.
1464
f37e5866
JB
14652020-07-09 John Baldwin <jhb@FreeBSD.org>
1466
1467 * inf-ptrace.c (inf_ptrace_target::wait): Don't compare against
1468 inferior_ptid.
1469
fc238d4a
JB
14702020-07-09 John Baldwin <jhb@FreeBSD.org>
1471
1472 * fbsd-tdep.c (fbsd_print_auxv_entry): Handle AT_FREEBSD_ARGC,
1473 AT_FREEBSD_ARGV, AT_FREEBSD_ENVC, AT_FREEBSD_ENVV,
1474 AT_FREEBSD_PS_STRINGS.
1475
6e2469ff
HD
14762020-07-08 Hannes Domani <ssbssa@yahoo.de>
1477
1478 * auto-load.c (auto_load_objfile_script_1): Convert drive part
1479 of debugfile path on Windows.
1480
d1076c41
JB
14812020-07-08 John Baldwin <jhb@FreeBSD.org>
1482
1483 * fbsd-nat.c (fbsd_nat_target::find_memory_regions): Rename 'obfd'
1484 argument to 'data'.
1485
15f3b077
TT
14862020-07-08 Tom Tromey <tromey@adacore.com>
1487
1488 * ada-lang.c (ada_exception_message_1): Use read_memory.
1489
9fc501fd
AB
14902020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
1491
1492 PR python/22748
1493 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first): Remove
1494 special handling for inline frames.
1495 * findvar.c (value_of_register_lazy): Skip inline frames when
1496 creating lazy register values.
1497 * frame.c (frame_id_computed_p): Delete definition.
1498 * frame.h (frame_id_computed_p): Delete declaration.
1499
64cb3757
AB
15002020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
1501
1502 * NEWS: Mention additions to Python API.
1503 * python/py-arch.c (archpy_register_groups): New function.
1504 (arch_object_methods): Add 'register_groups' method.
1505 * python/py-registers.c (reggroup_iterator_object): New struct.
1506 (reggroup_object): New struct.
1507 (gdbpy_new_reggroup): New function.
1508 (gdbpy_reggroup_to_string): New function.
1509 (gdbpy_reggroup_name): New function.
1510 (gdbpy_reggroup_iter): New function.
1511 (gdbpy_reggroup_iter_next): New function.
1512 (gdbpy_new_reggroup_iterator): New function
1513 (gdbpy_initialize_registers): Register new types.
1514 (reggroup_iterator_object_type): Define new Python type.
1515 (gdbpy_reggroup_getset): New static global.
1516 (reggroup_object_type): Define new Python type.
1517 * python/python-internal.h
1518
0f767f94
AB
15192020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
1520
1521 * Makefile.in (SUBDIR_PYTHON_SRCS): Add py-registers.c
1522 * python/py-arch.c (archpy_registers): New function.
1523 (arch_object_methods): Add 'registers' method.
1524 * python/py-registers.c: New file.
1525 * python/python-internal.h
1526 (gdbpy_new_register_descriptor_iterator): Declare.
1527 (gdbpy_initialize_registers): Declare.
1528 * python/python.c (do_start_initialization): Call
1529 gdbpy_initialize_registers.
1530 * NEWS: Mention additions to the Python API.
1531
87dbc774
AB
15322020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
1533
1534 * NEWS: Mention new Python API method.
1535 * python/py-unwind.c (pending_framepy_architecture): New function.
1536 (pending_frame_object_methods): Add architecture method.
1537
3bc98c0c
AB
15382020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
1539
1540 * gdbarch.c: Regenerate.
1541 * gdbarch.h: Regenerate.
1542 * gdbarch.sh (deprecated_set_gdbarch_data): Delete.
1543 (gdbarch_data): Use internal_error for the case where
1544 deprecated_set_gdbarch_data was originally needed.
1545 * ia64-libunwind-tdep.c (libunwind_descr_init): Update parameters,
1546 and use passed in obstack.
1547 (libunwind_frame_set_descr): Should no longer get back NULL from
1548 gdbarch_data.
1549 (_initialize_libunwind_frame): Register as a pre-init gdbarch data
1550 type.
1551 * user-regs.c (user_regs_init): Update parameters, and use passed
1552 in obstack.
1553 (user_reg_add): Should no longer get back NULL from gdbarch_data.
1554 (_initialize_user_regs): Register as a pre-init gdbarch data type.
1555
d8cc8af6
TV
15562020-07-06 Tom de Vries <tdevries@suse.de>
1557
1558 * buildsym.c (buildsym_compunit::end_symtab_with_blockvector): Handle
1559 End-Of-Sequence in lte_is_less_than.
1560 * symtab.c (find_pc_sect_line): Revert change from commit 3d92a3e313
1561 "gdb: Don't reorder line table entries too much when sorting".
1562
947f7597
TV
15632020-07-06 Tom de Vries <tdevries@suse.de>
1564
1565 PR tui/26205
1566 * tui/tui-win.c (tui_partial_win_by_name): Don't test for NULL name.
1567
1e7c1b22
TV
15682020-07-05 Tom de Vries <tdevries@suse.de>
1569
1570 PR build/26187
1571 * inferior.h (struct infcall_suspend_state_deleter): If available, use
1572 std::uncaught_exceptions instead of deprecated
1573 std::uncaught_exception.
1574
a36158ec
SM
15752020-07-02 Simon Marchi <simon.marchi@polymtl.ca>
1576
1577 * macroexp.h (macro_stringify): Return
1578 gdb::unique_xmalloc_ptr<char>.
1579 * macroexp.c (macro_stringify): Likewise.
1580 * macrotab.c (fixup_definition): Update.
1581
14d960c8
SM
15822020-07-02 Simon Marchi <simon.marchi@polymtl.ca>
1583
1584 * c-exp.y (scan_macro_expansion): Don't free `expansion`.
1585 (lex_one_token): Update.
1586 * macroexp.c (struct macro_buffer) <release>: Return
1587 gdb::unique_xmalloc_ptr<char>.
1588 (macro_stringify): Update.
1589 (macro_expand): Update.
1590 (macro_expand_next): Return gdb::unique_xmalloc_ptr<char>.
1591 * macroexp.h (macro_expand_next): Likewise.
1592
211d5b1c
SM
15932020-07-02 Simon Marchi <simon.marchi@efficios.com>
1594
1595 * macroexp.h (macro_lookup_ftype): Remove.
1596 (macro_expand, macro_expand_once, macro_expand_next): Remove
1597 lookup function parameters, add scope parameter.
1598 * macroexp.c (scan, substitute_args, expand, maybe_expand,
1599 macro_expand, macro_expand_once, macro_expand_next): Likewise.
1600 * macroscope.h (standard_macro_lookup): Change parameter type
1601 to macro_scope.
1602 * macroscope.c (standard_macro_lookup): Likewise.
1603 * c-exp.y (lex_one_token): Update.
1604 * macrocmd.c (macro_expand_command): Likewise.
1605 (macro_expand_once_command): Likewise.
1606
b1a35af2
SM
16072020-07-02 Simon Marchi <simon.marchi@polymtl.ca>
1608
1609 * inf-loop.c (inferior_event_handler): Remove client_data param.
1610 * inf-loop.h (inferior_event_handler): Likewise.
1611 * infcmd.c (step_1): Adjust.
1612 * infrun.c (proceed): Adjust.
1613 (fetch_inferior_event): Remove client_data param.
1614 (infrun_async_inferior_event_handler): Adjust.
1615 * infrun.h (fetch_inferior_event): Remove `void *` param.
1616 * linux-nat.c (handle_target_event): Adjust.
1617 * record-btrace.c (record_btrace_handle_async_inferior_event):
1618 Adjust.
1619 * record-full.c (record_full_async_inferior_event_handler):
1620 Adjust.
1621 * remote.c (remote_async_inferior_event_handler): Adjust.
1622
1cdf9e33
TT
16232020-07-01 Tom Tromey <tom@tromey.com>
1624
1625 * tui/tui-data.h (struct tui_win_info) <name>: Now pure virtual.
1626 * tui/tui-stack.h (struct tui_locator_window) <name>: New method.
1627
32c1e210
TT
16282020-07-01 Tom Tromey <tom@tromey.com>
1629
1630 * tui/tui-wingeneral.c (tui_win_info::refresh_window): Move from
1631 tui_gen_win_info.
1632 (tui_win_info::make_window): Merge with
1633 tui_gen_win_info::make_window.
1634 (tui_win_info::make_visible): Move from tui_gen_win_info.
1635 * tui/tui-win.c (tui_win_info::max_width): Move from
1636 tui_gen_win_info.
1637 * tui/tui-layout.h (class tui_layout_window) <m_window>: Change
1638 type.
1639 <window_factory>: Likewise.
1640 * tui/tui-layout.c (tui_win_info::resize): Move from
1641 tui_gen_win_info.
1642 (make_standard_window): Change return type.
1643 (get_locator_window, tui_get_window_by_name): Likewise.
1644 (tui_layout_window::apply): Remove a cast.
1645 * tui/tui-data.h (MIN_WIN_HEIGHT): Move earlier.
1646 (struct tui_win_info): Merge with tui_gen_win_info.
1647 (struct tui_gen_win_info): Remove.
1648
a30cb6da
TT
16492020-07-01 Tom Tromey <tom@tromey.com>
1650
1651 * tui/tui-stack.h (struct tui_locator_window): Derive from
1652 tui_win_info.
1653 <do_scroll_horizontal, do_scroll_vertical>: New methods.
1654 <can_box>: New method.
1655
1eb2161f
TT
16562020-07-01 Tom Tromey <tom@tromey.com>
1657
1658 * tui/tui-stack.h (struct tui_locator_window): Remove body.
1659
7134f2eb
TT
16602020-07-01 Tom Tromey <tom@tromey.com>
1661
1662 * tui/tui-regs.c (tui_data_window::display_registers_from)
1663 (tui_data_window::display_registers_from)
1664 (tui_data_window::first_data_item_displayed)
1665 (tui_data_window::delete_data_content_windows): Update.
1666 (tui_data_window::refresh_window, tui_data_window::no_refresh):
1667 Remove.
1668 (tui_data_window::check_register_values): Update.
1669 (tui_data_item_window::rerender): Add parameters. Update.
1670 (tui_data_item_window::refresh_window): Remove.
1671 * tui/tui-data.h (struct tui_gen_win_info) <no_refresh>: No longer
1672 virtual.
1673 * tui/tui-regs.h (struct tui_data_item_window): Don't derive from
1674 tui_gen_win_info.
1675 <refresh_window, max_height, min_height>: Remove.
1676 <rerender>: Add parameters.
1677 <x, y, visible>: New members.
1678 (struct tui_data_window) <refresh_window, no_refresh>: Remove.
1679 <m_item_width>: New member.
1680
22b7b041
TT
16812020-07-01 Tom Tromey <tom@tromey.com>
1682
1683 * tui/tui-regs.c (tui_data_window::show_register_group)
1684 (tui_data_window::check_register_values): Update.
1685 * tui/tui-regs.h (struct tui_data_item_window) <regno>: Rename
1686 from item_no.
1687
c9753adb
TT
16882020-07-01 Tom Tromey <tom@tromey.com>
1689
1690 * tui/tui-regs.c (tui_data_window::show_register_group): Remove
1691 useless "if".
1692
9ab26b4a
TT
16932020-07-01 Tom Tromey <tom@tromey.com>
1694
1695 * tui/tui-regs.c (tui_data_window::show_register_group): Update.
1696 * tui/tui-regs.h (struct tui_data_item_window) <name>: Remove.
1697
e555083f
TT
16982020-07-01 Tom Tromey <tom@tromey.com>
1699
1700 * tui/tui-stack.c (SINGLE_KEY): Move from tui-data.h
1701 * tui/tui-winsource.h (enum tui_line_or_address_kind)
1702 (struct tui_line_or_address): Move from tui-data.h.
1703 * tui/tui-win.c (DEFAULT_TAB_LEN): Move from tui-data.h.
1704 * tui/tui-data.h (DEFAULT_TAB_LEN): Move to tui-win.c.
1705 (tui_cmd_window, tui_source_window_base, tui_source_window)
1706 (tui_disasm_window): Don't declare.
1707 (enum tui_line_or_address_kind, struct tui_line_or_address): Move
1708 to tui-winsource.h.
1709 (SINGLE_KEY): Move to tui-stack.c.
1710
7a02bab7
TT
17112020-07-01 Tom Tromey <tom@tromey.com>
1712
1713 * tui/tui-regs.h (struct tui_data_item_window) <content>: Now a
1714 std::string.
1715 * tui/tui-regs.c (class tab_expansion_file): New.
1716 (tab_expansion_file::write): New method.
1717 (tui_register_format): Change return type. Use
1718 tab_expansion_file.
1719 (tui_get_register, tui_data_window::display_registers_from)
1720 (tui_data_item_window::rerender): Update.
1721 * tui/tui-io.h (tui_expand_tabs): Don't declare.
1722 * tui/tui-io.c (tui_expand_tabs): Remove.
1723
ea68593b
TT
17242020-07-01 Tom Tromey <tom@tromey.com>
1725
1726 * tui/tui-regs.c (tui_reggroup_completer): Use complete_on_enum.
1727
a8caed5d
FS
17282020-07-01 Fangrui Song <maskray@google.com>
1729
1730 * dwarf2/read.c (lnp_state_machine::check_line_address): Test -1.
1731
9cdf9820
AKS
17322020-07-01 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
1733
1734 * dwarf2/read.c (set_die_type): Removed conditions to restrict
1735 forms for DW_AT_associated and DW_AT_allocated attributes,
1736 which is already checked in function attr_to_dynamic_prop.
1737
a1520ad8
TT
17382020-06-30 Tom Tromey <tromey@adacore.com>
1739
1740 * dwarf2/read.c (quirk_rust_enum): Correctly call
1741 alloc_rust_variant for default-less enum.
1742
5ac58899
TT
17432020-06-30 Tom Tromey <tromey@adacore.com>
1744
1745 PR build/26183:
1746 * ada-lang.c (ada_lookup_name_info::ada_lookup_name_info): Use
1747 gdb::to_string.
1748
19b187a9
SM
17492020-06-29 Simon Marchi <simon.marchi@efficios.com>
1750
1751 * gdbarch.sh (displaced_step_copy_insn): Update doc.
1752 * gdbarch.h: Re-generate.
1753
cd4c4c07
TT
17542020-06-28 Tom Tromey <tom@tromey.com>
1755
1756 * command.h (cmd_types): Remove.
1757 (cmd_type): Don't declare.
1758 * cli/cli-decode.h (enum cmd_types): Uncomment. No longer a
1759 typedef.
1760 * cli/cli-cmds.c (setting_cmd): Use cmd->type directly.
1761 * cli/cli-decode.c (cmd_type): Remove.
1762
05779d57
PA
17632020-06-27 Pedro Alves <palves@redhat.com>
1764
1765 * fork-child.c (prefork_hook): Adjust.
1766 * infcmd.c (set_inferior_io_terminal, get_inferior_io_terminal):
1767 Delete.
1768 (set_inferior_tty_command, show_inferior_tty_command): Adjust.
1769 * inferior.c (inferior::set_tty, inferior::tty): New methods.
1770 * inferior.h (set_inferior_io_terminal, get_inferior_io_terminal):
1771 Remove declarations.
1772 (struct inferior) <set_tty, tty>: New methods.
1773 (struct inferior) <terminal>: Rename to ...
1774 (struct inferior) <m_terminal>: ... this and make private.
1775 * main.c (captured_main_1): Adjust.
1776 * mi/mi-cmd-env.c (mi_cmd_inferior_tty_set): Adjust.
1777 (mi_cmd_inferior_tty_show): Adjust.
1778 * nto-procfs.c (nto_procfs_target::create_inferior): Adjust.
1779 * windows-nat.c (windows_nat_target::create_inferior): Adjust.
1780
1776e3e5
NA
17812020-06-26 Nick Alcock <nick.alcock@oracle.com>
1782
1783 * configure.ac: Add --enable-libctf: handle --disable-static
1784 properly.
1785 * acinclude.m4: sinclude ../config/enable.m4.
1786 * Makefile.in (aclocal_m4_deps): Adjust accordingly.
1787 (LIBCTF): Substitute in.
1788 (CTF_DEPS): New, likewise.
1789 (CLIBS): libctf needs symbols from libbfd: move earlier.
1790 (CDEPS): Use CTF_DEPS, not LIBCTF, now LIBCTF can include rpath
1791 flags.
1792 * ctfread.c: Surround in ENABLE_LIBCTF.
1793 (elfctf_build_psymtabs) [!ENABLE_LIBCTF]: New stub.
1794 * configure: Regenerate.
1795 * config.in: Likewise.
1796
58373b80
SM
17972020-06-25 Simon Marchi <simon.marchi@efficios.com>
1798
1799 * infcmd.c (set_inferior_io_terminal): Use make_unique_xstrdup.
1800
277474ee
SM
18012020-06-25 Simon Marchi <simon.marchi@efficios.com>
1802
1803 * inferior.h (struct inferior) <terminal>: Change type to
1804 gdb::unique_xmalloc_ptr<char>.
1805 * inferior.c (inferior::~inferior): Don't free inf->terminal.
1806 * infcmd.c (set_inferior_io_terminal): Don't free terminal
1807 field, adjust to unique pointer.
1808 (get_inferior_io_terminal): Adjust to unique pointer.
1809
6d74da72
AB
18102020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
1811
1812 * riscv-tdep.c (riscv_print_registers_info): Loop over all
1813 registers, not just the known core set of registers.
1814
2e52d038
AB
18152020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
1816
1817 * riscv-tdep.c (riscv_register_name): Return NULL for duplicate
1818 fflags, frm, and fcsr registers.
1819 (riscv_register_reggroup_p): Remove unknown CSRs from save and
1820 restore groups.
1821 (riscv_tdesc_unknown_reg): New function.
1822 (riscv_gdbarch_init): Pass riscv_tdesc_unknown_reg to
1823 tdesc_use_registers.
1824 * riscv-tdep.h (struct gdbarch_tdep): Add
1825 unknown_csrs_first_regnum, unknown_csrs_count,
1826 duplicate_fflags_regnum, duplicate_frm_regnum, and
1827 duplicate_fcsr_regnum fields.
1828
be64fd07
AB
18292020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
1830
1831 * target-descriptions.c (tdesc_use_registers): Add new parameter a
1832 callback, use the callback (when not null) to help number unknown
1833 registers.
1834 * target-descriptions.h (tdesc_unknown_register_ftype): New typedef.
1835 (tdesc_use_registers): Add extra parameter to declaration.
1836
3b9fce96
AB
18372020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
1838
1839 * riscv-tdep.c (value_of_riscv_user_reg): Moved to here from later
1840 in the file.
1841 (class riscv_pending_register_alias): Likewise.
1842 (riscv_register_feature::register_info): Change 'required_p' field
1843 to 'required', and change its type. Add 'check' member function.
1844 (riscv_register_feature::register_info::check): Define new member
1845 function.
1846 (riscv_xreg_feature): Change initialisation of 'required' field.
1847 (riscv_freg_feature): Likewise.
1848 (riscv_virtual_feature): Likewise.
1849 (riscv_csr_feature): Likewise.
1850 (riscv_check_tdesc_feature): Take extra parameter, the csr
1851 tdesc_feature, rewrite the function to use the new
1852 riscv_register_feature::register_info::check function.
1853 (riscv_gdbarch_init): Pass the csr tdesc_feature where needed.
1854
865bad26
AB
18552020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
1856
1857 * features/Makefile: Remove all references to the deleted files
1858 below.
1859 * features/riscv/32bit-csr.c: Deleted.
1860 * features/riscv/32bit-csr.xml: Deleted.
1861 * features/riscv/64bit-csr.c: Deleted.
1862 * features/riscv/64bit-csr.xml: Deleted.
1863 * features/riscv/rebuild-csr-xml.sh: Deleted.
1864
ed69cbc8
AB
18652020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
1866
1867 * riscv-tdep.c (struct riscv_register_feature::register_info): Fix
1868 whitespace error for declaration of names member variable.
1869 (struct riscv_register_feature): Add new prefer_first_name member
1870 variable, and fix whitespace error in declaration of registers.
1871 (riscv_xreg_feature): Initialize prefer_first_name field.
1872 (riscv_freg_feature): Likewise.
1873 (riscv_virtual_feature): Likewise.
1874 (riscv_csr_feature): Likewise.
1875 (riscv_register_name): Expand on comments. Remove register name
1876 modifications for CSR and virtual registers.
1877
4445e8f5
AB
18782020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
1879
1880 * riscv-tdep.c (struct riscv_register_feature): Fix whitespace
1881 errors.
1882
767a879e
AB
18832020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
1884
1885 * riscv-tdep.c (riscv_create_csr_aliases): Handle csr aliases from
1886 riscv-opc.h.
1887 (class riscv_pending_register_alias): New class.
1888 (riscv_check_tdesc_feature): Take vector of pending aliases and
1889 populate it as appropriate.
1890 (riscv_setup_register_aliases): Delete.
1891 (riscv_gdbarch_init): Create vector of pending aliases and pass it
1892 to riscv_check_tdesc_feature in all cases. Use the vector to
1893 create the register aliases.
1894
bb6e55f3
RO
18952020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1896
1897 * sol2-tdep.c (sol2_static_transform_name): Remove.
1898 (sol2_init_abi): Don't register it.
1899 * gdbarch.sh (static_transform_name): Remove.
1900 * gdbarch.c, gdbarch.h: Regenerate.
1901
1902 * dbxread.c (read_dbx_symtab) <'S'>: Remove call to
1903 gdbarch_static_transform_name.
1904 * mdebugread.c (parse_partial_symbols) <'S'>: Likewise.
1905 * stabsread.c (define_symbol) <'X'>: Remove.
1906 (define_symbol) <'S'>: Remove gdbarch_static_transform_name
1907 handling.
1908 <'V'>: Likewise.
1909 * xcoffread.c (scan_xcoff_symtab): Remove gdbarch.
1910 <'S'>: Remove call to gdbarch_static_transform_name.
1911
c6d36836
RO
19122020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1913
1914 * procfs.c (procfs_pre_trace): New function.
1915 (procfs_target::create_inferior): Pass it to fork_inferior.
1916
a7e6196b
RO
19172020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1918
1919 * configure.tgt <sparc-*-linux*> (gdb_target_obs): Remove
1920 sparc-sol2-tdep.o, sol2-tdep.o, sparc64-sol2-tdep.o.
1921 <sparc64-*-linux*> (gdb_target_obs): Remove sparc64-sol2-tdep.o,
1922 sol2-tdep.o, sparc-sol2-tdep.o.
1923 * sparc-sol2-tdep.c (sparc32_sol2_init_abi): Make static.
1924 * sparc-tdep.h (sparc32_sol2_init_abi): Remove.
1925 * sparc64-sol2-tdep.c (sparc64_sol2_init_abi): Make static.
1926 * sparc64-tdep.h (sparc64_sol2_init_abi): Remove.
1927
d412e696
RO
19282020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1929
1930 * amd64-sol2-tdep.c (amd64_sol2_sigtramp_p): Remove.
1931 (amd64_sol2_init_abi): Use sol2_sigtramp_p.
1932 Call sol2_init_abi.
1933 Remove calls to set_gdbarch_skip_solib_resolver,
1934 set_gdbarch_core_pid_to_str.
1935 * i386-sol2-tdep.c (i386_sol2_sigtramp_p): Remove.
1936 (i386_sol2_static_transform_name): Remove.
1937 (i386_sol2_init_abi): Call sol2_init_abi.
1938 Remove calls to set_gdbarch_sofun_address_maybe_missing,
1939 set_gdbarch_static_transform_name,
1940 set_gdbarch_skip_solib_resolver, set_gdbarch_core_pid_to_str.
1941 Use sol2_sigtramp_p.
1942 * sol2-tdep.c (sol2_pc_in_sigtramp): New function.
1943 (sol2_sigtramp_p): New function.
1944 (sol2_static_transform_name): New function.
1945 (sol2_skip_solib_resolver, sol2_core_pid_to_str): Make static.
1946 (sol2_init_abi): New function.
1947 * sol2-tdep.h (sol2_sigtramp_p, sol2_init_abi): Declare.
1948 (sol2_skip_solib_resolver, sol2_core_pid_to_str): Remove.
1949 * sparc-sol2-tdep.c (sparc_sol2_pc_in_sigtramp): Remove.
1950 (sparc32_sol2_sigtramp_frame_sniffer): Just call sol2_sigtramp_p.
1951 (sparc_sol2_static_transform_name): Remove.
1952 (sparc32_sol2_init_abi): Call sol2_init_abi.
1953 Remove calls to set_gdbarch_sofun_address_maybe_missing,
1954 set_gdbarch_static_transform_name,
1955 set_gdbarch_skip_solib_resolver,
1956 set_gdbarch_core_pid_to_str.
1957 * sparc-tdep.h (sparc_sol2_pc_in_sigtramp)
1958 (sparc_sol2_static_transform_name): Remove
1959 * sparc64-sol2-tdep.c (sparc64_sol2_sigtramp_frame_sniffer): Just
1960 call sol2_sigtramp_p.
1961 (sparc64_sol2_init_abi): Call sol2_init_abi.
1962 Remove calls to set_gdbarch_sofun_address_maybe_missing,
1963 set_gdbarch_static_transform_name,
1964 set_gdbarch_skip_solib_resolver, set_gdbarch_core_pid_to_str.
1965
a8654e7d
PW
19662020-06-24 Philippe Waroquiers <philippe.waroquiers@skynet.be>
1967
1968 * symfile-add-flags.h: New flag SYMFILE_ALWAYS_CONFIRM.
1969 * exec.c (validate_exec_file): If from_tty, set both
1970 SYMFILE_VERBOSE (== from_tty) and SYMFILE_ALWAYS_CONFIRM.
1971 * symfile.c (symbol_file_add_with_addrs): if always_confirm
1972 and from_tty, unconditionally ask a confirmation.
1973
caa7fd04
AB
19742020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
1975
1976 * target-descriptions.c (tdesc_architecture_name): Protect against
1977 NULL pointer dereference.
1978 (maint_print_xml_tdesc_cmd): New function.
1979 (_initialize_target_descriptions): Register new 'maint print
1980 xml-tdesc' command and give it the filename completer.
1981 * NEWS: Mention new 'maint print xml-tdesc' command.
1982
fbf42f4e
AB
19832020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
1984
1985 * target-descriptions.c (class tdesc_compatible_info): New class.
1986 (struct target_desc): Change type of compatible vector.
1987 (tdesc_compatible_p): Update for change in type of
1988 target_desc::compatible.
1989 (tdesc_compatible_info_list): New function.
1990 (tdesc_compatible_info_arch_name): New function.
1991 (tdesc_add_compatible): Update for change in type of
1992 target_desc::compatible.
1993 (print_c_tdesc::visit_pre): Likewise.
1994
20821f4e
AB
19952020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
1996
1997 * target-descriptions.c (print_c_tdesc::print_c_tdesc): Change
1998 whitespace to underscore.
1999 (maint_print_c_tdesc_cmd): Use fake filename for target
2000 descriptions that came from the target.
2001 (_initialize_target_descriptions): Add filename command completion
2002 for 'maint print c-tdesc'.
2003
1fb5ee62
SM
20042020-06-23 Simon Marchi <simon.marchi@efficios.com>
2005
2006 * dwarf2/loc.c (decode_debug_loclists_addresses): Add empty
2007 lines.
2008
fc3ecb3e
SM
20092020-06-23 Simon Marchi <simon.marchi@efficios.com>
2010
2011 * dwarf2/loc.c (decode_debug_loc_dwo_addresses): Add empty
2012 lines.
2013 (dwarf2_find_location_expression): Likewise.
2014 (call_site_parameter_matches): Likewise.
2015 (dwarf2_compile_expr_to_ax): Likewise.
2016 (disassemble_dwarf_expression): Likewise.
2017 (loclist_describe_location): Likewise.
2018
236ef034
PA
20192020-06-23 Pedro Alves <palves@redhat.com>
2020
2021 * gdbarch-selftests.c: Don't include inferior.h, gdbthread.h or
2022 progspace-and-thread.h. Include scoped-mock-context.h instead.
2023 (register_to_value_test): Use scoped_mock_context.
2024 * regcache.c: Include "scoped-mock-context.h".
2025 (cooked_read_test): Don't error out if a target is already pushed.
2026 Use scoped_mock_context. Adjust.
2027 * scoped-mock-context.h: New file.
2028
39e7ecca
AB
20292020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
2030
2031 * ada-lang.c (ada_language_data): Delete la_is_string_type_p
2032 initializer.
2033 (ada_language::is_string_type_p): New member function.
2034 * c-lang.c (c_language_data): Delete la_is_string_type_p
2035 initializer.
2036 (cplus_language_data): Likewise.
2037 (asm_language_data): Likewise.
2038 (minimal_language_data): Likewise.
2039 * d-lang.c (d_language_data): Likewise.
2040 * f-lang.c (f_is_string_type_p): Delete function, implementation
2041 moved to f_language::is_string_type_p.
2042 (f_language_data): Delete la_is_string_type_p initializer.
2043 (f_language::is_string_type_p): New member function,
2044 implementation from f_is_string_type_p.
2045 * go-lang.c (go_is_string_type_p): Delete function, implementation
2046 moved to go_language::is_string_type_p.
2047 (go_language_data): Delete la_is_string_type_p initializer.
2048 (go_language::is_string_type_p): New member function,
2049 implementation from go_is_string_type_p.
2050 * language.c (language_defn::is_string_type_p): Define new member
2051 function.
2052 (default_is_string_type_p): Make static, add comment copied from
2053 header file.
2054 (unknown_language_data): Delete la_is_string_type_p initializer.
2055 (unknown_language::is_string_type_p): New member function.
2056 (auto_language_data): Delete la_is_string_type_p initializer.
2057 (auto_language::is_string_type_p): New member function.
2058 * language.h (language_data): Delete la_is_string_type_p field.
2059 (language_defn::is_string_type_p): Declare new function.
2060 (default_is_string_type_p): Delete desclaration, move comment to
2061 definition.
2062 * m2-lang.c (m2_is_string_type_p): Delete function, implementation
2063 moved to m2_language::is_string_type_p.
2064 (m2_language_data): Delete la_is_string_type_p initializer.
2065 (m2_language::is_string_type_p): New member function,
2066 implementation from m2_is_string_type_p.
2067 * objc-lang.c (objc_language_data): Delete la_is_string_type_p
2068 initializer.
2069 * opencl-lang.c (opencl_language_data): Likewise.
2070 * p-lang.c (pascal_is_string_type_p): Delete function,
2071 implementation moved to pascal_language::is_string_type_p.
2072 (pascal_language_data): Delete la_is_string_type_p initializer.
2073 (pascal_language::is_string_type_p): New member function,
2074 implementation from pascal_is_string_type_p.
2075 * rust-lang.c (rust_is_string_type_p): Delete function,
2076 implementation moved to rust_language::is_string_type_p.
2077 (rust_language_data): Delete la_is_string_type_p initializer.
2078 (rust_language::is_string_type_p): New member function,
2079 implementation from rust_is_string_type_p.
2080 * valprint.c (val_print_scalar_or_string_type_p): Update call to
2081 is_string_type_p.
2082
4ffc13fb
AB
20832020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
2084
2085 * ada-lang.c (ada_language_data): Delete la_print_typedef
2086 initializer.
2087 (ada_language::print_typedef): New member function.
2088 * c-lang.c (c_language_data): Delete la_print_typedef initializer.
2089 (cplus_language_data): Likewise.
2090 (asm_language_data): Likewise.
2091 (minimal_language_data): Likewise.
2092 * d-lang.c (d_language_data): Likewise.
2093 * f-lang.c (f_language_data): Likewise.
2094 (f_language::print_typedef): New member function.
2095 * go-lang.c (go_language_data): Delete la_print_typedef
2096 initializer.
2097 * language.c (language_defn::print_typedef): Define member
2098 function.
2099 (unknown_language_data): Delete la_print_typedef initializer.
2100 (unknown_language::print_typedef): New member function.
2101 (auto_language_data): Delete la_print_typedef initializer.
2102 (auto_language::print_typedef): New member function.
2103 * language.h (language_data): Delete la_print_typedef field.
2104 (language_defn::print_typedef): Declare new member function.
2105 (LA_PRINT_TYPEDEF): Update call to print_typedef.
2106 (default_print_typedef): Delete declaration.
2107 * m2-lang.c (m2_language_data): Delete la_print_typedef
2108 initializer.
2109 (m2_language::print_typedef): New member function.
2110 * objc-lang.c (objc_language_data): Delete la_print_typedef
2111 initializer.
2112 * opencl-lang.c (opencl_language_data): Likewise.
2113 * p-lang.c (pascal_language_data): Likewise.
2114 (pascal_language::print_typedef): New member function.
2115 * rust-lang.c (rust_print_typedef): Delete function,
2116 implementation moved to rust_language::print_typedef.
2117 (rust_language): Delete la_print_typedef initializer.
2118 (rust_language::print_typedef): New member function,
2119 implementation from rust_print_typedef.
2120 * typeprint.c (default_print_typedef): Delete.
2121
d711ee67
AB
21222020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
2123
2124 * ada-lang.c (ada_language_data): Delete la_printstr initializer.
2125 (ada_language::printstr): New member function.
2126 * c-lang.c (c_language_data): Delete la_printstr initializer.
2127 (cplus_language_data): Likewise.
2128 (asm_language_data): Likewise.
2129 (minimal_language_data): Likewise.
2130 * d-lang.c (d_language_data): Likewise.
2131 * f-lang.c (f_printstr): Rename to f_language::printstr.
2132 (f_language_data): Delete la_printstr initializer.
2133 (f_language::printstr): New member function, implementation from
2134 f_printstr.
2135 * go-lang.c (go_language_data): Delete la_printstr initializer.
2136 * language.c (language_defn::printstr): Define new member
2137 function.
2138 (unk_lang_printstr): Delete.
2139 (unknown_language_data): Delete la_printstr initializer.
2140 (unknown_language::printstr): New member function.
2141 (auto_language_data): Delete la_printstr initializer.
2142 (auto_language::printstr): New member function.
2143 * language.h (language_data): Delete la_printstr field.
2144 (language_defn::printstr): Declare new member function.
2145 (LA_PRINT_STRING): Update call to printstr.
2146 * m2-lang.c (m2_printstr): Rename to m2_language::printstr.
2147 (m2_language_data): Delete la_printstr initializer.
2148 (m2_language::printstr): New member function, implementation from
2149 m2_printstr.
2150 * objc-lang.c (objc_language_data): Delete la_printstr
2151 initializer.
2152 * opencl-lang.c (opencl_language_data): Likewise.
2153 * p-lang.c (pascal_printstr): Rename to pascal_language::printstr.
2154 (pascal_language_data): Delete la_printstr initializer.
2155 (pascal_language::printstr): New member function, implementation
2156 from pascal_printstr.
2157 * p-lang.h (pascal_printstr): Delete declaration.
2158 * rust-lang.c (rust_printstr): Update header comment.
2159 (rust_language_data): Delete la_printstr initializer.
2160 (rust_language::printstr): New member function.
2161
52b50f2c
AB
21622020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
2163
2164 * ada-lang.c (ada_language_data): Delete la_printchar initializer.
2165 (ada_language::printchar): New member function.
2166 * c-lang.c (c_language_data): Delete la_printchar initializer.
2167 (cplus_language_data): Likewise.
2168 (asm_language_data): Likewise.
2169 (minimal_language_data): Likewise.
2170 * d-lang.c (d_language_data): Likewise.
2171 * f-lang.c (f_printchar): Rename to f_language::printchar.
2172 (f_language_data): Delete la_printchar initializer.
2173 (f_language::printchar): New member function, implementation from
2174 f_printchar.
2175 * go-lang.c (go_language_data): Delete la_printchar initializer.
2176 * language.c (unk_lang_printchar): Delete.
2177 (language_defn::printchar): Define new member function.
2178 (unknown_language_data): Delete la_printchar initializer.
2179 (unknown_language::printchar): New member function.
2180 (auto_language_data): Delete la_printchar initializer.
2181 (auto_language::printchar): New member function.
2182 * language.h (language_data): Delete la_printchar field.
2183 (language_defn::printchar): Declare new member function.
2184 (LA_PRINT_CHAR): Update call to printchar.
2185 * m2-lang.c (m2_language_data): Delete la_printchar initializer.
2186 (m2_language::printchar): New member function.
2187 * objc-lang.c (objc_language_data): Delete la_printchar
2188 initializer.
2189 * opencl-lang.c (opencl_language_data): Likewise.
2190 * p-lang.c (pascal_language_data): Delete la_printchar
2191 initializer.
2192 (pascal_language::printchar): New member function.
2193 * rust-lang.c (rust_printchar): Rename to
2194 rust_language::printchar.
2195 (rust_language_data): Delete la_printchar initializer.
2196 (rust_language::printchar): New member function, implementation
2197 from rust_printchar.
2198
ec8cec5b
AB
21992020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
2200
2201 * ada-lang.c (emit_char): Renamed to ada_language::emitchar.
2202 (ada_language_data): Delete la_emitchar initializer.
2203 (ada_language::emitchar): New member function, implementation from
2204 emit_char.
2205 * c-lang.c (c_language_data): Delete la_emitchar initializer.
2206 (cplus_language_data): Likewise.
2207 (asm_language_data): Likewise.
2208 (minimal_language_data): Likewise.
2209 * d-lang.c (d_language_data): Likewise.
2210 * f-lang.c (f_emit_char): Rename to f_language::emitchar.
2211 (f_language_data): Delete la_emitchar initializer.
2212 (f_language::emitchar): New member function, implementation from
2213 f_emit_char.
2214 * go-lang.c (go_language_data): Delete la_emitchar initializer.
2215 * language.c (unk_lang_emit_char): Delete.
2216 (language_defn::emitchar): New member function definition.
2217 (unknown_language_data): Delete la_emitchar initializer.
2218 (unknown_language::emitchar): New member function.
2219 (auto_language_data): Delete la_emitchar initializer.
2220 (auto_language::emitchar): New member function.
2221 * language.h (language_data): Delete la_emitchar field.
2222 (language_defn::emitchar): New member field declaration.
2223 (LA_EMIT_CHAR): Update call to emitchar.
2224 * m2-lang.c (m2_emit_char): Rename to m2_language::emitchar.
2225 (m2_language_data): Delete la_emitchar initializer.
2226 (m2_language::emitchar): New member function, implementation from
2227 m2_emit_char.
2228 * objc-lang.c (objc_language_data): Delete la_emitchar
2229 initializer.
2230 * opencl-lang.c (opencl_language_data): Likewise.
2231 * p-lang.c (pascal_emit_char): Rename to pascal_language::emitchar.
2232 (pascal_language_data): Delete la_emitchar initializer.
2233 (pascal_language::emitchar): New member function, implementation
2234 from pascal_emit_char.
2235 * rust-lang.c (rust_emitchar): Rename to rust_language::emitchar.
2236 (rust_language_data): Delete la_emitchar initializer.
2237 (rust_language::emitchar): New member function, implementation
2238 from rust_emitchar.
2239
1bf9c363
AB
22402020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
2241
2242 * ada-lang.c (resolve): Rename to ada_language::post_parser.
2243 (ada_language_data): Delete la_post_parser initializer.
2244 (ada_language::post_parser): New member function.
2245 * c-lang.c (c_language_data): Delete la_post_parser initializer.
2246 (cplus_language_data): Likewise.
2247 (asm_language_data): Likewise.
2248 (minimal_language_data): Likewise.
2249 * d-lang.c (d_language_data): Likewise.
2250 * f-lang.c (f_language_data): Likewise.
2251 * go-lang.c (go_language_data): Likewise.
2252 * language.c (unknown_language_data): Likewise.
2253 (auto_language_data): Likewise.
2254 * language.h (language_data): Delete la_post_parser field.
2255 (language_defn::post_parser): New member function.
2256 * m2-lang.c (m2_language_data): Delete la_post_parser initializer.
2257 * objc-lang.c (objc_language_data): Likewise.
2258 * opencl-lang.c (opencl_language_data): Likewise.
2259 * p-lang.c (pascal_language_data): Likewise.
2260 * parse.c (parse_exp_in_context): Update call to post_parser.
2261 (null_post_parser): Delete definition.
2262 * parser-defs.h (null_post_parser): Delete declaration.
2263 * rust-lang.c (rust_language_data): Delete la_post_parser
2264 initializer.
2265
87afa652
AB
22662020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
2267
2268 * ada-lang.c (parse): Rename to ada_language::parser.
2269 (ada_language_data): Delete la_parser initializer.
2270 (ada_language::parser): New member function, implementation from
2271 parse.
2272 * c-lang.c (c_language_data): Delete la_parser initializer.
2273 (cplus_language_data): Likewise.
2274 (asm_language_data): Likewise.
2275 (minimal_language_data): Likewise.
2276 * d-lang.c (d_language_data): Likewise.
2277 (d_language::parser): New member function.
2278 * f-lang.c (f_language_data): Delete la_parser initializer.
2279 (f_language::parser): New member function.
2280 * go-lang.c (go_language_data): Delete la_parser initializer.
2281 (go_language::parser): New member function.
2282 * language.c (unk_lang_parser): Delete.
2283 (language_defn::parser): Define new member function.
2284 (unknown_language_data): Delete la_parser initializer.
2285 (unknown_language::parser): New member function.
2286 (auto_language_data): Delete la_parser initializer.
2287 (auto_language::parser): New member function.
2288 * language.h (language_data): Delete la_parser field.
2289 (language_defn::parser): Declare new member function.
2290 * m2-lang.c (m2_language_data): Delete la_parser initializer.
2291 (m2_language::parser): New member function.
2292 * objc-lang.c (objc_language_data): Delete la_parser initializer.
2293 * opencl-lang.c (opencl_language_data): Likewise.
2294 * p-lang.c (pascal_language_data): Likewise.
2295 (pascal_language::parser): New member function.
2296 * parse.c (parse_exp_in_context): Update call to parser.
2297 * rust-lang.c (rust_language_data): Delete la_parser initializer.
2298 (rust_language::parser): New member function.
2299
37825800
AB
23002020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
2301
2302 * top.c (print_gdb_configuration): Print --with-python-libdir
2303 configuration value.
2304
5b860c93
PW
23052020-06-22 Philippe Waroquiers <philippe.waroquiers@skynet.be>
2306
2307 * NEWS: Mention change to the alias command.
2308
cf00cd6f
PW
23092020-06-22 Philippe Waroquiers <philippe.waroquiers@skynet.be>
2310
2311 * cli/cli-cmds.c (lookup_cmd_for_default_args)
2312 (alias_command_completer)
2313 (make_alias_options_def_group): New functions.
2314 (alias_opts, alias_option_defs): New struct and array.
2315 (alias_usage_error): Update usage.
2316 (alias_command): Handles optional DEFAULT-ARGS... arguments.
2317 Use option framework.
2318 (_initialize_cli_cmds): Update alias command help.
2319 Update aliases command help.
2320 (show_user):
2321 Add NULL for new default_args lookup_cmd argument.
2322 (valid_command_p): Rename to validate_aliased_command.
2323 Add NULL for new default_args lookup_cmd argument. Verify that the
2324 aliased_command has no default args.
2325 * cli/cli-decode.c (help_cmd): Show aliases definitions.
2326 (lookup_cmd_1, lookup_cmd): New argument default_args.
2327 (add_alias_cmd):
2328 Add NULL for new default_args lookup_cmd argument.
2329 (print_help_for_command): Show default args under the layout
2330 alias some_alias = some_aliased_cmd some_alias_default_arg.
2331 * cli/cli-decode.h (struct cmd_list_element): New member default_args.
2332 xfree default_args in destructor.
2333 * cli/cli-script.c (process_next_line, do_define_command):
2334 Add NULL for new default_args lookup_cmd argument.
2335 * command.h: Declare new default_args argument in lookup_cmd
2336 and lookup_cmd_1.
2337 * completer.c (complete_line_internal_1):
2338 Add NULL for new default_args lookup_cmd or lookup_cmd_1 argument.
2339 * guile/scm-cmd.c (gdbscm_parse_command_name): Likewise.
2340 * guile/scm-param.c (add_setshow_generic, pascm_parameter_defined_p):
2341 Likewise.
2342 * infcmd.c (_initialize_infcmd): Likewise.
2343 * python/py-auto-load.c (gdbpy_initialize_auto_load): Likewise.
2344 * python/py-cmd.c (gdbpy_parse_command_name): Likewise.
2345 * python/py-param.c (add_setshow_generic): Likewise.
2346 * remote.c (_initialize_remote): Likewise.
2347 * top.c (execute_command): Prepend default_args if command has some.
2348 (set_verbose):
2349 Add NULL for new default_args lookup_cmd or lookup_cmd_1 argument.
2350 * tracepoint.c (validate_actionline, encode_actions_1):
2351 Add NULL for new default_args lookup_cmd or lookup_cmd_1 argument.
2352
bd920864
TBA
23532020-06-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2354
2355 * jit.c (jit_read_descriptor): Use bool as the return type.
2356 (jit_breakpoint_re_set_internal): Use bool as the return type.
2357 Invert the return value logic; return true if the jit breakpoint
2358 has been successfully initialized.
2359 (jit_inferior_init): Update the call to
2360 jit_breakpoint_re_set_internal.
2361
f8098322
PA
23622020-06-22 Pedro Alves <palves@redhat.com>
2363
2364 PR gdb/25939
2365 * procfs.c (procfs_target::wait): Don't reference inferior_ptid.
2366 Use the current inferior instead. Don't return
2367 TARGET_WAITKIND_SPURIOUS/inferior_ptid -- instead continue and
2368 wait again.
2369 * sol-thread.c (sol_thread_target::wait): Don't reference
2370 inferior_ptid.
2371 (ps_lgetregs, ps_lsetregs, ps_lgetfpregs, ps_lsetfpregs)
2372 (sol_update_thread_list_callback): Use the current inferior's pid
2373 instead of inferior_ptid.
2374
196535a6
RO
23752020-06-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2376
2377 * procfs.c: Cleanup many comments.
2378
2379 (READ_WATCHFLAG, WRITE_WATCHFLAG, EXEC_WATCHFLAG)
2380 (AFTER_WATCHFLAG): Replace by value.
2381
2382 (MAIN_PROC_NAME_FORMAT): Inline ...
2383 (create_procinfo): ... here.
2384
2385 (procfs_debug_inferior): Remove SYS_exec handling.
2386 (syscall_is_exec): Likewise.
2387 (procfs_set_exec_trap): Likewise.
2388
2389 (syscall_is_lwp_exit): Inline in callers.
2390 (syscall_is_exit): Likewise.
2391 (syscall_is_exec): Likewise.
2392 (syscall_is_lwp_create): Likewise.
2393
2394 (invalidate_cache): Remove #if 0 code.
2395
2396 (make_signal_thread_runnable): Remove.
2397 (procfs_target::resume): Remove #if 0 code.
2398
cf6f3e86
RO
23992020-06-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2400
2401 PR gdb/25939
2402 * procfs.c (procfs_target::procfs_init_inferior): Move push_target
2403 call ...
2404 (procfs_target::create_inferior): ... here.
2405
48e9cc84
PW
24062020-06-21 Philippe Waroquiers <philippe.waroquiers@skynet.be>
2407
2408 * exec.c (validate_exec_file): Ensure the build-id is up to
2409 date by calling reopen_exec_file (that checks file timestamp
2410 to decide to re-read the file).
2411
3922b302
PA
24122020-06-18 Pedro Alves <palves@redhat.com>
2413
2414 PR gdb/25412
2415 * gdbthread.h (delete_thread, delete_thread_silent)
2416 (find_thread_ptid): Update comments.
2417 * thread.c (current_thread_): New global.
2418 (is_current_thread): Move higher, and reimplement.
2419 (inferior_thread): Reimplement.
2420 (set_thread_exited): Use bool. Add assertions.
2421 (add_thread_silent): Simplify thread-reuse handling by always
2422 calling delete_thread.
2423 (delete_thread): Remove intro comment.
2424 (find_thread_ptid): Skip exited threads.
2425 (switch_to_thread_no_regs): Write to current_thread_.
2426 (switch_to_no_thread): Check CURRENT_THREAD_ instead of
2427 INFERIOR_PTID. Clear current_thread_.
2428
6dbdab44
PA
24292020-06-18 Pedro Alves <palves@redhat.com>
2430
2431 * aix-thread.c (pd_update): Use switch_to_thread.
2432
2da4b788
PA
24332020-06-18 Pedro Alves <palves@redhat.com>
2434
2435 * ravenscar-thread.c (ravenscar_thread_target): Update.
2436 (ravenscar_thread_target::update_inferior_ptid): Rename to ...
2437 (ravenscar_thread_target::add_active_thread): ... this. Don't
2438 set m_base_ptid here. Update to avoid referencing inferior_ptid.
2439 (ravenscar_thread_target::wait): Don't write to inferior_ptid.
2440
50838d1b
PA
24412020-06-18 Pedro Alves <palves@redhat.com>
2442
2443 * nat/windows-nat.c (current_windows_thread): Remove.
2444 * nat/windows-nat.h (current_windows_thread): Remove.
2445 * windows-nat.c (windows_nat_target::stopped_by_sw_breakpoint):
2446 Adjust.
2447 (display_selectors): Adjust to fetch the current
2448 windows_thread_info based on inferior_ptid.
2449 (fake_create_process): No longer write to current_windows_thread.
2450 (windows_nat_target::get_windows_debug_event):
2451 Don't set inferior_ptid or current_windows_thread.
2452 (windows_nat_target::wait): Adjust to not rely on
2453 current_windows_thread.
2454 (do_initial_windows_stuff): Now a method of windows_nat_target.
2455 Switch to the last_ptid thread.
2456 (windows_nat_target::attach): Adjust.
2457 (windows_nat_target::detach): Use switch_to_no_thread instead of
2458 writing to inferior_ptid directly.
2459 (windows_nat_target::create_inferior): Adjust.
2460
31ce04e9
PA
24612020-06-18 Pedro Alves <palves@redhat.com>
2462
2463 * windows-nat.c (do_initial_windows_stuff): No longer set inferior_ptid.
2464
1ee1a363
PA
24652020-06-18 Pedro Alves <palves@redhat.com>
2466
2467 * go32-nat.c (go32_nat_target::create_inferior): Switch to thread
2468 after creating it, instead of writing to inferior_ptid. Don't
2469 write to inferior_ptid.
2470
6d350754
PA
24712020-06-18 Pedro Alves <palves@redhat.com>
2472
2473 * fork-child.c (postfork_hook): Don't write to inferior_ptid.
2474
5d971d48
PA
24752020-06-18 Pedro Alves <palves@redhat.com>
2476
2477 * bsd-kvm.c (bsd_kvm_target_open): Switch to thread after adding
2478 it, instead of writing to inferior_ptid.
2479
86e57d1b
PA
24802020-06-18 Pedro Alves <palves@redhat.com>
2481
2482 * btrace.c (btrace_fetch): Use switch_to_thread instead of writing
2483 to inferior_ptid.
2484
f2e1c129
PA
24852020-06-18 Pedro Alves <palves@redhat.com>
2486
2487 * bsd-kvm.c (bsd_kvm_target::close): Use switch_to_no_thread
2488 instead of writing to inferior_ptid directly.
2489
60db1b85
PA
24902020-06-18 Pedro Alves <palves@redhat.com>
2491
2492 * corelow.c (core_target::close): Use switch_to_no_thread instead
2493 of writing to inferior_ptid directly.
2494 (add_to_thread_list, core_target_open): Use switch_to_thread
2495 instead of writing to inferior_ptid directly.
2496
fe7d6a8d
PA
24972020-06-18 Pedro Alves <palves@redhat.com>
2498
2499 * darwin-nat.c (darwin_nat_target::decode_message): Don't write to
2500 inferior_ptid.
2501 (darwin_nat_target::stop_inferior, darwin_nat_target::kill): Avoid
2502 inferior_ptid.
2503 (darwin_attach_pid): Use switch_to_no_thread instead of writing to
2504 inferior_ptid directly.
2505 (darwin_nat_target::init_thread_list): Switch to thread, instead
2506 of writing to inferior_ptid.
2507 (darwin_nat_target::attach): Don't write to inferior_ptid.
2508 (darwin_nat_target::get_ada_task_ptid): Avoid inferior_ptid.
2509
975f8708
PA
25102020-06-18 Pedro Alves <palves@redhat.com>
2511
2512 * gnu-nat.c (gnu_nat_target::create_inferior): Switch to the added
2513 thread.
2514 (gnu_nat_target::attach): Don't write to inferior_ptid directly.
2515 Instead use switch_to_thread.
2516 (gnu_nat_target::detach): Use switch_to_no_thread
2517 instead of writing to inferior_ptid directly. Used passed-in
2518 inferior instead of looking up the inferior by pid.
2519
1a204730
PA
25202020-06-18 Pedro Alves <palves@redhat.com>
2521
2522 * go32-nat.c (go32_nat_target::create_inferior): Don't write to
2523 inferior_ptid.
2524
ebe84f23
PA
25252020-06-18 Pedro Alves <palves@redhat.com>
2526
2527 * nto-procfs.c (nto_procfs_target::update_thread_list): Avoid
2528 inferior_ptid.
2529 (nto_procfs_target::attach): Avoid inferior_ptid. Switch to
2530 thread.
2531 (nto_procfs_target::detach): Avoid referencing
2532 inferior_ptid. Use switch_to_no_thread instead of writing to
2533 inferior_ptid directly.
2534 (nto_procfs_target::mourn_inferior): Use switch_to_no_thread
2535 instead of writing to inferior_ptid directly.
2536 (nto_procfs_target::create_inferior): Avoid inferior_ptid. Switch
2537 to thread.
2538
191f02e5
PA
25392020-06-18 Pedro Alves <palves@redhat.com>
2540
2541 * remote-sim.c (gdbsim_target::create_inferior): Switch to thread
2542 after creating it, instead of writing to inferior_ptid.
2543 (gdbsim_target_open): Use switch_to_no_thread instead of writing
2544 to inferior_ptid directly.
2545 (gdbsim_target::wait): Don't write to inferior_ptid.
2546
0ac55310
PA
25472020-06-18 Pedro Alves <palves@redhat.com>
2548
2549 * remote.c (remote_target::remote_notice_new_inferior): Use
2550 switch_to_thread instead of writing to inferior_ptid directly.
2551 (remote_target::add_current_inferior_and_thread): Use
2552 switch_to_no_thread instead of writing to inferior_ptid directly.
2553 (extended_remote_target::attach): Use switch_to_inferior_no_thread
2554 and switch_to_thread instead of using set_current_inferior or
2555 writing to inferior_ptid directly.
2556
5233f39b
PA
25572020-06-18 Pedro Alves <palves@redhat.com>
2558
2559 * tracectf.c (ctf_target_open): Switch to added thread instead of
2560 writing to inferior_ptid directly.
2561 (ctf_target::close): Use switch_to_no_thread instead of writing to
2562 inferior_ptid directly.
2563
087e161b
PA
25642020-06-18 Pedro Alves <palves@redhat.com>
2565
2566 * tracefile-tfile.c (tfile_target_open): Don't write to
2567 inferior_ptid directly, instead switch to added thread.
2568 (tfile_target::close): Use switch_to_no_thread instead of writing
2569 to inferior_ptid directly.
2570
7fb43e53
PA
25712020-06-18 Pedro Alves <palves@redhat.com>
2572
2573 * procfs.c (procfs_target::attach): Don't write to inferior_ptid.
2574 (procfs_target::detach): Use switch_to_no_thread
2575 instead of writing to inferior_ptid directly.
2576 (do_attach): Change return type to void. Switch to the added
2577 thread.
2578 (procfs_target::create_inferior): Switch to the added thread.
2579 (procfs_do_thread_registers): Don't write to inferior_ptid.
2580
18493a00
PA
25812020-06-18 Pedro Alves <palves@redhat.com>
2582
2583 * infrun.c (generic_mourn_inferior): Use switch_to_thread instead
2584 of writing to inferior_ptid.
2585 (scoped_restore_exited_inferior): Delete.
2586 (handle_vfork_child_exec_or_exit): Simplify using
2587 scoped_restore_current_pspace_and_thread. Use switch_to_thread
2588 instead of writing to inferior_ptid.
2589 (THREAD_STOPPED_BY): Delete.
2590 (thread_stopped_by_watchpoint, thread_stopped_by_sw_breakpoint)
2591 (thread_stopped_by_hw_breakpoint): Delete.
2592 (save_waitstatus): Use
2593 scoped_restore_current_thread+switch_to_thread, and call
2594 target_stopped_by_watchpoint instead of
2595 thread_stopped_by_watchpoint, target_stopped_by_sw_breakpoint
2596 instead of thread_stopped_by_sw_breakpoint, and
2597 target_stopped_by_hw_breakpoint instead of
2598 thread_stopped_by_hw_breakpoint.
2599 (handle_inferior_event)
2600 <TARGET_WAITKIND_EXITED/TARGET_WAITKIND_SIGNALLED>: Don't write to
2601 inferior_ptid directly, nor
2602 set_current_inferior/set_current_program_space. Use
2603 switch_to_thread / switch_to_inferior_no_thread instead.
2604
a0776b13
PA
26052020-06-18 Pedro Alves <palves@redhat.com>
2606
2607 * target.c (generic_mourn_inferior): Use switch_to_no_thread
2608 instead of writing to inferior_ptid.
2609
6155c136
PA
26102020-06-18 Pedro Alves <palves@redhat.com>
2611
2612 * inf-ptrace.c (inf_ptrace_target::create_inferior): Switch to the
2613 added thread.
2614 (inf_ptrace_target::attach): Don't write to inferior_ptid. Switch
2615 to the added thread.
2616 (inf_ptrace_target::detach_success): Use switch_to_no_thread
2617 instead of writing to inferior_ptid.
2618
c5316fc6
PA
26192020-06-18 Pedro Alves <palves@redhat.com>
2620
2621 * gdbarch-selftests.c: Include "progspace-and-thread.h".
2622 (register_to_value_test): Mock a program_space too. Heap-allocate
2623 the address space. Don't write to inferior_ptid. Use
2624 switch_to_thread instead.
2625
8df01799
PA
26262020-06-18 Pedro Alves <palves@redhat.com>
2627
2628 * linux-tdep.c (find_signalled_thread(thread_info *,void *)):
2629 Delete.
2630 (find_signalled_thread()): New, factored out from
2631 linux_make_corefile_notes and adjusted to handle exited threads.
2632 (linux_make_corefile_notes): Adjust to use the new
2633 find_signalled_thread.
2634
41792d68
PA
26352020-06-18 Pedro Alves <palves@redhat.com>
2636
2637 * linux-tdep.c (btrace_fetch): Save/restore current thread instead
2638 of saving/restoring inferior_ptid.
2639
612f258a
TT
26402020-06-17 Tom Tromey <tom@tromey.com>
2641
2642 * tui/tui-win.h (tui_scroll_forward, tui_scroll_backward)
2643 (tui_scroll_left, tui_scroll_right, struct tui_win_info): Don't
2644 declare.
2645 * tui/tui-data.h (MIN_CMD_WIN_HEIGHT): Remove.
2646
efb763a5
SM
26472020-06-15 Simon Marchi <simon.marchi@efficios.com>
2648
2649 * dwarf2/read.c (dwarf2_initialize_objfile): Check for presence
2650 of partial symtabs.
2651
2951f6c0
SM
26522020-06-17 Simon Marchi <simon.marchi@efficios.com>
2653
2654 * regformats/reg-arm.dat: Remove.
2655 * regformats/reg-bfin.dat: Remove.
2656 * regformats/reg-cris.dat: Remove.
2657 * regformats/reg-crisv32.dat: Remove.
2658 * regformats/reg-m32r.dat: Remove.
2659 * regformats/reg-tilegx.dat: Remove.
2660 * regformats/reg-tilegx32.dat: Remove.
2661
7d458ea5
SM
26622020-06-17 Simon Marchi <simon.marchi@efficios.com>
2663
2664 * features/Makefile (WHICH): Remove arm files.
2665 * regformats/arm/arm-with-iwmmxt.dat: Remove.
2666 * regformats/arm/arm-with-neon.dat: Remove.
2667 * regformats/arm/arm-with-vfpv2.dat: Remove.
2668 * regformats/arm/arm-with-vfpv3.dat: Remove.
2669
3af96c0d
SM
26702020-06-17 Simon Marchi <simon.marchi@efficios.com>
2671
2672 * features/Makefile (XMLTOC): Remove rx.xml.
2673
b25e22fd
PA
26742020-06-17 Pedro Alves <palves@redhat.com>
2675
2676 * gdbthread.h (thread_control_state) <trap_expected> Update
2677 comments.
2678
a78a19b1
AB
26792020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
2680
2681 * ada-lang.c (ada_lookup_symbol_nonlocal): Rename to
2682 ada_language::lookup_symbol_nonlocal.
2683 (ada_language_data): Delete la_lookup_symbol_nonlocal initializer.
2684 (ada_language::lookup_symbol_nonlocal): New member function,
2685 implementation from ada_lookup_symbol_nonlocal.
2686 * c-lang.c (c_language_data): Delete la_lookup_symbol_nonlocal
2687 initializer.
2688 (cplus_language_data): Delete la_lookup_symbol_nonlocal
2689 initializer.
2690 (cplus_language::lookup_symbol_nonlocal): New member function.
2691 (asm_language_data): Delete la_lookup_symbol_nonlocal initializer.
2692 (minimal_language_data) Likewise.
2693 * cp-namespace.c (cp_lookup_nested_symbol): Update comment.
2694 * d-lang.c (d_language_data): Delete la_lookup_symbol_nonlocal
2695 initializer.
2696 (d_language::lookup_symbol_nonlocal): New member function.
2697 * f-lang.c (f_language_data): Delete la_lookup_symbol_nonlocal
2698 initializer.
2699 (f_language::lookup_symbol_nonlocal): New member function.
2700 * go-lang.c (go_language_data): Delete la_lookup_symbol_nonlocal
2701 initializer.
2702 * language.c (unknown_language_data): Likewise.
2703 (auto_language_data): Likewise.
2704 * language.h (language_data): Delete la_lookup_symbol_nonlocal
2705 field.
2706 (language_defn::lookup_symbol_nonlocal): New member function.
2707 * m2-lang.c (m2_language_data): Delete la_lookup_symbol_nonlocal
2708 initializer.
2709 * objc-lang.c (objc_language_data): Likewise.
2710 * opencl-lang.c (opencl_language_data): Likewise.
2711 * p-lang.c (pascal_language_data): Likewise.
2712 * rust-lang.c (rust_lookup_symbol_nonlocal): Rename to
2713 rust_language::lookup_symbol_nonlocal.
2714 (rust_language_data): Delete la_lookup_symbol_nonlocal
2715 initializer.
2716 (rust_language::lookup_symbol_nonlocal): New member function,
2717 implementation from rust_lookup_symbol_nonlocal.
2718 * symtab.c (lookup_symbol_aux): Update call to
2719 lookup_symbol_nonlocal.
2720 (basic_lookup_symbol_nonlocal): Rename to...
2721 (language_defn::lookup_symbol_nonlocal): ...this, and update
2722 header comment. Remove language_defn parameter, and replace with
2723 uses of `this'.
2724 * symtab.h (basic_lookup_symbol_nonlocal): Delete declaration.
2725
ebe2334e
AB
27262020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
2727
2728 * ada-lang.c (ada_language_data): Delete la_value_print_inner
2729 initializer.
2730 (ada_language::value_print_inner): New member function.
2731 * c-lang.c (c_language_data): Delete la_value_print_inner
2732 initializer.
2733 (cplus_language_data): Likewise.
2734 (asm_language_data): Likewise.
2735 (minimal_language_data): Likewise.
2736 * d-lang.c (d_language_data): Likewise.
2737 (d_language::value_print_inner): New member function.
2738 * f-lang.c (f_language_data): Delete la_value_print_inner
2739 initializer.
2740 (f_language::value_print_inner): New member function.
2741 * f-lang.h (f_value_print_innner): Rename to...
2742 (f_value_print_inner): ...this (note spelling of 'inner').
2743 * f-valprint.c (f_value_print_innner): Rename to...
2744 (f_value_print_inner): ...this (note spelling of 'inner').
2745 * go-lang.c (go_language_data): Delete la_value_print_inner
2746 initializer.
2747 (go_language::value_print_inner): New member function.
2748 * language.c (language_defn::value_print_inner): Define new member
2749 function.
2750 (unk_lang_value_print_inner): Delete.
2751 (unknown_language_data): Delete la_value_print_inner initializer.
2752 (unknown_language::value_print_inner): New member function.
2753 (auto_language_data): Delete la_value_print_inner initializer.
2754 (auto_language::value_print_inner): New member function.
2755 * language.h (language_data): Delete la_value_print_inner field.
2756 (language_defn::value_print_inner): Delcare new member function.
2757 * m2-lang.c (m2_language_data): Delete la_value_print_inner
2758 initializer.
2759 (m2_language::value_print_inner): New member function.
2760 * objc-lang.c (objc_language_data): Delete la_value_print_inner
2761 initializer.
2762 * opencl-lang.c (opencl_language_data): Likewise.
2763 * p-lang.c (pascal_language_data): Likewise.
2764 (pascal_language::value_print_inner): New member function.
2765 * rust-lang.c (rust_language_data): Delete la_value_print_inner
2766 initializer.
2767 (rust_language::value_print_inner): New member function.
2768 * valprint.c (do_val_print): Update call to value_print_inner.
2769
a1d1fa3e
AB
27702020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
2771
2772 * ada-lang.c (ada_language_data): Delete la_value_print
2773 initializer.
2774 (ada_language::value_print): New member function.
2775 * c-lang.c (c_language_data): Delete la_value_print initializer.
2776 (cplus_language_data): Likewise.
2777 (asm_language_data): Likewise.
2778 (minimal_language_data): Likewise.
2779 * d-lang.c (d_language_data): Likewise.
2780 * f-lang.c (f_language_data): Likewise.
2781 * go-lang.c (go_language_data): Likewise.
2782 * language.c (unk_lang_value_print): Delete.
2783 (language_defn::value_print): Define new member function.
2784 (unknown_language_data): Delete la_value_print initializer.
2785 (unknown_language::value_print): New member function.
2786 (auto_language_data): Delete la_value_print initializer.
2787 (auto_language::value_print): New member function.
2788 * language.h (language_data): Delete la_value_print field.
2789 (language_defn::value_print): Declare new member function.
2790 (LA_VALUE_PRINT): Update call to value_print.
2791 * m2-lang.c (m2_language_data): Delete la_value_print initializer.
2792 * objc-lang.c (objc_language_data): Likewise.
2793 * opencl-lang.c (opencl_language_data): Likewise.
2794 * p-lang.c (pascal_language_data): Likewise.
2795 (pascal_language::value_print): New member function.
2796 * rust-lang.c (rust_language_data): Delete la_value_print
2797 initializer.
2798
f16a9f57
AB
27992020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
2800
2801 * ada-lang.c (ada_watch_location_expression): Rename to
2802 ada_language::watch_location_expression.
2803 (ada_language_data): Delete la_watch_location_expression
2804 initializer.
2805 (ada_language::watch_location_expression): New member function,
2806 implementation from ada_watch_location_expression.
2807 * breakpoint.c (watch_command_1): Update call to
2808 watch_location_expression.
2809 * c-lang.c (c_watch_location_expression): Rename to
2810 language_defn::watch_location_expression.
2811 (c_language_data): Delete la_watch_location_expression
2812 initializer.
2813 (cplus_language_data): Likewise.
2814 (asm_language_data): Likewise.
2815 (minimal_language_data): Likewise.
2816 * c-lang.h (c_watch_location_expression): Delete declaration.
2817 * d-lang.c (d_language_data): Delete la_watch_location_expression
2818 initializer.
2819 * f-lang.c (f_language_data): Likewise.
2820 * go-lang.c (go_language_data): Likewise.
2821 * language.c (language_defn::watch_location_expression): Member
2822 function implementation from c_watch_location_expression.
2823 (unknown_language_data): Delete la_watch_location_expression
2824 initializer.
2825 (auto_language_data): Likewise.
2826 * language.h (language_data): Delete la_watch_location_expression
2827 field.
2828 (language_defn::watch_location_expression): Declare new member
2829 function.
2830 * m2-lang.c (m2_language_data): Delete
2831 la_watch_location_expression initializer.
2832 * objc-lang.c (objc_language_data): Likewise.
2833 * opencl-lang.c (opencl_language_data): Likewise.
2834 * p-lang.c (pascal_language_data): Likewise.
2835 * rust-lang.c (rust_watch_location_expression): Rename to
2836 rust_language::watch_location_expression.
2837 (rust_language_data): Delete la_watch_location_expression
2838 initializer.
2839 (rust_language::watch_location_expression): New member function,
2840 implementation from rust_watch_location_expression.
2841
7e56227d
AB
28422020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
2843
2844 * ada-lang.c (ada_collect_symbol_completion_matches): Rename to
2845 ada_language::collect_symbol_completion_matches.
2846 (ada_language_data): Delete la_collect_symbol_completion_matches
2847 initializer.
2848 (ada_language::collect_symbol_completion_matches): New member
2849 function, implementation from
2850 ada_collect_symbol_completion_matches.
2851 * c-lang.c (c_language_data): Delete
2852 la_collect_symbol_completion_matches initializer.
2853 (cplus_language_data): Likewise.
2854 (asm_language_data): Likewise.
2855 (minimal_language_data): Likewise.
2856 * d-lang.c (d_language_data): Likewise.
2857 * f-lang.c (f_collect_symbol_completion_matches): Rename to
2858 f_language::collect_symbol_completion_matches.
2859 (f_language_data): Delete la_collect_symbol_completion_matches
2860 initializer.
2861 (f_language::collect_symbol_completion_matches) New member
2862 function, implementation from f_collect_symbol_completion_matches.
2863 * go-lang.c (go_language_data): Delete
2864 la_collect_symbol_completion_matches initializer.
2865 * language.c (unknown_language_data): Likewise.
2866 (auto_language_data): Likewise.
2867 * language.h (language_data): Delete
2868 la_collect_symbol_completion_matches field.
2869 (language_defn::collect_symbol_completion_matches): New member
2870 function.
2871 * m2-lang.c (m2_language_data): Delete
2872 la_collect_symbol_completion_matches initializer.
2873 * objc-lang.c (objc_language_data): Likewise.
2874 * opencl-lang.c (opencl_language_data): Likewise.
2875 * p-lang.c (pascal_language_data): Likewise.
2876 * rust-lang.c (rust_language_data): Likewise.
2877 * symtab.c (default_collect_symbol_completion_matches): Delete.
2878 (collect_symbol_completion_matches): Update call to
2879 collect_symbol_completion_matches.
2880 (collect_symbol_completion_matches_type): Likewise.
2881 * symtab.h (default_collect_symbol_completion_matches): Delete
2882 declaration.
2883
53fc67f8
AB
28842020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
2885
2886 * ada-lang.c (ada_get_gdb_completer_word_break_characters): Delete.
2887 (ada_language_data): Delete la_word_break_characters initializer.
2888 (ada_language::word_break_characters): New member function.
2889 * c-lang.c (c_language_data): Delete la_word_break_characters
2890 initializer.
2891 (cplus_language_data): Likewise.
2892 (asm_language_data): Likewise.
2893 (minimal_language_data): Likewise.
2894 * completer.c: Update global comment.
2895 (advance_to_expression_complete_word_point): Update call to
2896 word_break_characters.
2897 (complete_files_symbols): Likewise.
2898 (complete_line_internal_1): Likewise.
2899 (default_completer_handle_brkchars): Likewise.
2900 (skip_quoted_chars): Likewise.
2901 * d-lang.c (d_language_data): Delete la_word_break_characters
2902 initializer.
2903 * f-lang.c (f_word_break_characters): Delete.
2904 (f_language_data): Delete la_word_break_characters initializer.
2905 (f_language::word_break_characters): New member function.
2906 * go-lang.c (go_language_data): Delete la_word_break_characters
2907 initializer.
2908 * language.c (unknown_language_data): Likewise.
2909 (auto_language_data): Likewise.
2910 * language.h (default_word_break_characters): Move declaration to
2911 earlier in the file.
2912 (language_data): Delete la_word_break_characters field.
2913 (language_defn::word_break_characters): New member function.
2914 * m2-lang.c (m2_language_data): Delete la_word_break_characters
2915 initializer.
2916 * objc-lang.c (objc_language_data): Likewise.
2917 * opencl-lang.c (opencl_language_data): Likewise.
2918 * p-lang.c (pascal_language_data): Likewise.
2919 * rust-lang.c (rust_language_data): Likewise.
2920
c9debfb9
AB
29212020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
2922
2923 * ada-lang.c (ada_get_symbol_name_matcher): Update header comment.
2924 (ada_language_data): Delete la_get_symbol_name_matcher
2925 initializer.
2926 (language_defn::get_symbol_name_matcher_inner): New member
2927 function.
2928 * c-lang.c (c_language_data): Delete la_get_symbol_name_matcher
2929 initializer.
2930 (cplus_language_data): Likewise.
2931 (cplus_language::get_symbol_name_matcher_inner): New member
2932 function.
2933 (asm_language_data): Delete la_get_symbol_name_matcher initializer.
2934 (minimal_language_data): Likewise.
2935 * cp-support.h (cp_get_symbol_name_matcher): Update header comment.
2936 * d-lang.c (d_language_data): Delete la_get_symbol_name_matcher
2937 initializer.
2938 * dictionary.c (iter_match_first_hashed): Update call to
2939 get_symbol_name_matcher.
2940 (iter_match_next_hashed): Likewise.
2941 (iter_match_next_linear): Likewise.
2942 * dwarf2/read.c (dw2_expand_symtabs_matching_symbol): Likewise.
2943 * f-lang.c (f_language_data): Delete la_get_symbol_name_matcher
2944 initializer.
2945 (f_language::get_symbol_name_matcher_inner): New member function.
2946 * go-lang.c (go_language_data): Delete la_get_symbol_name_matcher
2947 initializer.
2948 * language.c (default_symbol_name_matcher): Update header comment,
2949 make static.
2950 (language_defn::get_symbol_name_matcher): New definition.
2951 (language_defn::get_symbol_name_matcher_inner): Likewise.
2952 (get_symbol_name_matcher): Delete.
2953 (unknown_language_data): Delete la_get_symbol_name_matcher
2954 initializer.
2955 (auto_language_data): Likewise.
2956 * language.h (language_data): Delete la_get_symbol_name_matcher
2957 field.
2958 (language_defn::get_symbol_name_matcher): New member function.
2959 (language_defn::get_symbol_name_matcher_inner): Likewise.
2960 (default_symbol_name_matcher): Delete declaration.
2961 * linespec.c (find_methods): Update call to
2962 get_symbol_name_matcher.
2963 * m2-lang.c (m2_language_data): Delete la_get_symbol_name_matcher
2964 initializer.
2965 * minsyms.c (lookup_minimal_symbol): Update call to
2966 get_symbol_name_matcher.
2967 (iterate_over_minimal_symbols): Likewise.
2968 * objc-lang.c (objc_language_data): Delete
2969 la_get_symbol_name_matcher initializer.
2970 * opencl-lang.c (opencl_language_data): Likewise.
2971 * p-lang.c (pascal_language_data): Likewise.
2972 * psymtab.c (psymbol_name_matches): Update call to
2973 get_symbol_name_matcher.
2974 * rust-lang.c (rust_language_data): Delete
2975 la_get_symbol_name_matcher initializer.
2976 * symtab.c (symbol_matches_search_name): Update call to
2977 get_symbol_name_matcher.
2978 (compare_symbol_name): Likewise.
2979
9a49ad8c
AB
29802020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
2981
2982 * ada-lang.c (ada_language_data): Delete la_compute_program
2983 initializer.
2984 * c-lang.c (c_language_data): Likewise.
2985 (c_language::compute_program): New member function.
2986 (cplus_language_data): Delete la_compute_program initializer.
2987 (cplus_language::compute_program): New member function.
2988 (asm_language_data): Delete la_compute_program initializer.
2989 (minimal_language_data): Likewise.
2990 * c-lang.h (c_compute_program): Update comment.
2991 (cplus_compute_program): Likewise.
2992 * compile/compile-c-support.c (c_compute_program): Likewise.
2993 (cplus_compute_program): Likewise.
2994 * compile/compile.c (compile_to_object): Update call to
2995 la_compute_program.
2996 * d-lang.c (d_language_data): Delete la_compute_program
2997 initializer.
2998 * f-lang.c (f_language_data): Likewise.
2999 * go-lang.c (go_language_data): Likewise.
3000 * language.c (unknown_language_data): Likewise.
3001 (auto_language_data): Likewise.
3002 * language.h (language_data): Delete la_compute_program field.
3003 (language_defn::compute_program): New member function.
3004 * m2-lang.c (m2_language_data): Delete la_compute_program
3005 initializer.
3006 * objc-lang.c (objc_language_data): Likewise.
3007 * opencl-lang.c (opencl_language_data): Likewise.
3008 * p-lang.c (pascal_language_data): Likewise.
3009 * rust-lang.c (rust_language_data): Likewise.
3010
eff93b4d
AB
30112020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
3012
3013 * ada-lang.c (ada_language_data) Delete
3014 la_class_name_from_physname initializer.
3015 * c-lang.c (c_language_data): Likewise.
3016 (cplus_language_data): Likewise.
3017 (cplus_language::class_name_from_physname): New member function.
3018 (asm_language_data): Delete la_class_name_from_physname
3019 initializer.
3020 (minimal_language_data): Likewise.
3021 * d-lang.c (d_language_data): Likewise.
3022 * dwarf2/read.c (guess_partial_die_structure_name): Update to call
3023 method on language_defn class.
3024 (guess_full_die_structure_name): Likewise.
3025 * f-lang.c (f_language_data): Delete la_class_name_from_physname
3026 initializer.
3027 * go-lang.c (go_language_data): Likewise.
3028 * language.c (language_class_name_from_physname): Delete.
3029 (unk_lang_class_name): Delete.
3030 (unknown_language_data): Delete la_class_name_from_physname
3031 initializer.
3032 (auto_language_data): Likewise.
3033 * language.h (language_data): Delete la_class_name_from_physname
3034 field.
3035 (language_defn::class_name_from_physname): New function.
3036 (language_class_name_from_physname): Delete declaration.
3037 * m2-lang.c (m2_language_data): Delete la_class_name_from_physname
3038 initializer.
3039 * objc-lang.c (objc_language_data): Likewise.
3040 * opencl-lang.c (opencl_language_data): Likewise.
3041 * p-lang.c (pascal_language_data): Likewise.
3042 * rust-lang.c (rust_language_data): Likewise.
3043
de543742
TT
30442020-06-16 Tom Tromey <tom@tromey.com>
3045
3046 * tui/tui-data.h (STATUS_NAME): New macro.
3047 * tui/tui-layout.c (tui_remove_some_windows)
3048 (initialize_known_windows, tui_register_window)
3049 (tui_layout_split::remove_windows, initialize_layouts)
3050 (tui_new_layout_command): Don't use hard-coded window names.
3051
a350efd4
TT
30522020-06-16 Tom Tromey <tom@tromey.com>
3053
3054 PR tui/25348:
3055 * tui/tui.c (tui_ensure_readline_initialized): Rename from
3056 tui_initialize_readline. Only run once. Call rl_initialize.
3057 * tui/tui.h (tui_ensure_readline_initialized): Rename from
3058 tui_initialize_readline.
3059 * tui/tui-io.c (tui_setup_io): Call
3060 tui_ensure_readline_initialized.
3061 * tui/tui-interp.c (tui_interp::init): Update.
3062
39ec0490
TT
30632020-06-16 Tom Tromey <tom@tromey.com>
3064
3065 * tui/tui-layout.c (tui_layout_split::remove_windows): Fix logic.
3066 Also preserve the status window.
3067
d2d1ea20
TT
30682020-06-16 Tom Tromey <tom@tromey.com>
3069
3070 * python/py-tui.c (tui_py_window::~tui_py_window): Handle case
3071 where m_window==nullptr.
3072
66920317
TT
30732020-06-15 Tom Tromey <tromey@adacore.com>
3074
3075 * windows-nat.c (windows_nat::handle_output_debug_string):
3076 Update.
3077 (windows_nat::handle_ms_vc_exception): Update.
3078 * target.h (target_read_string): Change API.
3079 * target.c (target_read_string): Change API.
3080 * solib-svr4.c (open_symbol_file_object, svr4_read_so_list):
3081 Update.
3082 * solib-frv.c (frv_current_sos): Update.
3083 * solib-dsbt.c (dsbt_current_sos): Update.
3084 * solib-darwin.c (darwin_current_sos): Update.
3085 * linux-thread-db.c (inferior_has_bug): Update.
3086 * expprint.c (print_subexp_standard): Update.
3087 * ada-lang.c (ada_main_name, ada_tag_name_from_tsd)
3088 (ada_exception_message_1): Update.
3089
a5d871dd
TT
30902020-06-15 Tom Tromey <tromey@adacore.com>
3091
3092 * linux-tdep.c (dump_mapping_p): Use target_read_memory.
3093
670e35fa
TT
30942020-06-15 Tom Tromey <tromey@adacore.com>
3095
3096 * valprint.c (read_string): Update comment.
3097 * target.c (MIN): Remove.
3098 (target_read_string): Rewrite.
3099
f5272a3b
TT
31002020-06-15 Tom Tromey <tromey@adacore.com>
3101
3102 * corefile.c (read_memory_string): Remove.
3103 * ada-valprint.c (ada_value_print_ptr): Update.
3104 * ada-lang.h (ada_tag_name): Change return type.
3105 * ada-lang.c (type_from_tag): Update.
3106 (ada_tag_name_from_tsd): Change return type. Use
3107 target_read_string.
3108 (ada_tag_name): Likewise.
3109 * gdbcore.h (read_memory_string): Don't declare.
3110
2c074f49
HD
31112020-06-14 Hannes Domani <ssbssa@yahoo.de>
3112
3113 * symtab.c (rbreak_command): Ignore Windows drive colon.
3114
6a17d503
SM
31152020-06-12 Simon Marchi <simon.marchi@efficios.com>
3116
3117 * NEWS: Mention removed GDBserver host support.
3118
453c733f
NC
31192020-06-12 Nelson Chu <nelson.chu@sifive.com>
3120
3121 * features/riscv/rebuild-csr-xml.sh: Updated.
3122
2b4e6a3f
TT
31232020-06-11 Tom Tromey <tom@tromey.com>
3124
3125 PR gdb/18318:
3126 * c-exp.y (lex_one_token): Handle 'p' like 'e'.
3127
4412332f
JG
31282020-06-09 Jonny Grant <jg@jguk.org>
31292020-06-09 Simon Marchi <simon.marchi@polymtl.ca>
3130
3131 * main.c (captured_main_1): Don't print new line after help.
3132 (print_gdb_help): add mailing list and IRC channel information
3133 to --help. Add new lines between items in the footer. Remove
3134 quotes around bug url.
3135
2f33032a
KS
31362020-06-11 Keith Seitz <keiths@redhat.com>
3137
3138 PR gdb/21356
3139 * gdbtypes.c (resolve_dynamic_union, resolve_dynamic_struct):
3140 Resolve typedefs for type length calculations.
3141
7ab96794
TV
31422020-06-10 Tom de Vries <tdevries@suse.de>
3143
3144 PR ada/24713
3145 * dwarf2/index-write.c (struct mapped_symtab): Add m_string_obstack.
3146 (write_psymbols): Enable .gdb_index for ada.
3147 * dwarf2/read.c: Remove comment stating .gdb_index is unsupported for
3148 ada.
3149
e5f3ece2
TV
31502020-06-10 Tom de Vries <tdevries@suse.de>
3151
3152 * dwarf2/read.c (dw2_symtab_iter_init_common): Factor out of ...
3153 (dw2_symtab_iter_init): ... here. Add variant with "offset_type
3154 namei" instead of "const char *name" argument.
3155 (dw2_map_matching_symbols): Use "offset_type namei" variant of
3156 dw2_symtab_iter_init.
3157
940da03e
SM
31582020-06-08 Simon Marchi <simon.marchi@efficios.com>
3159
3160 * gdbtypes.h (TYPE_FIELD_TYPE): Remove. Change all call sites
3161 to use type::field and field::type instead.
3162
b6cdac4b
SM
31632020-06-08 Simon Marchi <simon.marchi@efficios.com>
3164
3165 * gdbtypes.h (FIELD_TYPE): Remove. Change all call sites
3166 to use field::type instead.
3167
5d14b6e5
SM
31682020-06-08 Simon Marchi <simon.marchi@efficios.com>
3169
3170 * gdbtypes.h (struct field) <type, set_type>: New methods.
3171 Rename `type` field to...
3172 <m_type>: ... this. Change references throughout to use type or
3173 set_type methods.
3174 (FIELD_TYPE): Use field::type. Change call sites that modify
3175 the field's type to use field::set_type instead.
3176
3d967001
SM
31772020-06-08 Simon Marchi <simon.marchi@efficios.com>
3178
3179 * gdbtypes.h (TYPE_INDEX_TYPE): Remove. Change all call sites
3180 to use type::index_type instead.
3181
262abc0d
SM
31822020-06-08 Simon Marchi <simon.marchi@efficios.com>
3183
3184 * gdbtypes.h (struct type) <index_type, set_index_type>: New
3185 methods.
3186 (TYPE_INDEX_TYPE): Use type::index_type.
3187 * gdbtypes.c (create_array_type_with_stride): Likewise.
3188
82836c92
TT
31892020-06-07 Tom Tromey <tom@tromey.com>
3190
3191 * valprint.c (generic_val_print_float): Remove "embedded_offset"
3192 parameter.
3193 (generic_value_print): Update.
3194
940dace9
AB
31952020-06-05 Andrew Burgess <andrew.burgess@embecosm.com>
3196
3197 Revert commit 982a38f60b0.
3198 * python/py-tui.c (gdbpy_tui_set_title): Restore use of get.
3199
982a38f6
AB
32002020-06-05 Andrew Burgess <andrew.burgess@embecosm.com>
3201
3202 * python/py-tui.c (gdbpy_tui_set_title): Use release, not get, to
3203 avoid use after free.
3204
82f06518
TV
32052020-06-05 Tom de Vries <tdevries@suse.de>
3206
3207 * NEWS: Fix typos.
3208
f8c41851
SM
32092020-06-04 Simon Marchi <simon.marchi@efficios.com>
3210
3211 * dwarf2/read.c (dwarf2_read_gdb_index): Save partial_symtabs in
3212 the per_bfd object.
3213 (dwarf2_read_debug_names): Likewise.
3214 (dwarf2_initialize_objfile): Use partial_symtabs from per_bfd
3215 object when re-using a per_bfd object with an index.
3216
f9b5d5ea
TV
32172020-06-03 Tom de Vries <tdevries@suse.de>
3218
3219 PR symtab/26046
3220 * dwarf2/read.c (scan_partial_symbols): Recurse into DW_TAG_subprogram
3221 children for C++.
3222 (load_partial_dies): Don't skip DW_TAG_inlined_subroutine child of
3223 DW_TAG_subprogram.
3224
f6eee2d0
AB
32252020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
3226
3227 * ada-lang.c (ada_language_data): Delete skip_trampoline
3228 initializer.
3229 * c-lang.c (c_language_data): Likewise.
3230 (cplus_language_data): Likewise.
3231 (cplus_language::skip_trampoline): New member function.
3232 (asm_language_data): Delete skip_trampoline initializer.
3233 (minimal_language_data): Likewise.
3234 * d-lang.c (d_language_data): Likewise.
3235 * f-lang.c (f_language_data): Likewise.
3236 * go-lang.c (go_language_data): Likewise.
3237 * language.c (unk_lang_trampoline): Delete function.
3238 (skip_language_trampoline): Update.
3239 (unknown_language_data): Delete skip_trampoline initializer.
3240 (auto_language_data): Likewise.
3241 * language.h (language_data): Delete skip_trampoline field.
3242 (language_defn::skip_trampoline): New function.
3243 * m2-lang.c (m2_language_data): Delete skip_trampoline
3244 initializer.
3245 * objc-lang.c (objc_skip_trampoline): Delete function, move
3246 implementation to objc_language::skip_trampoline.
3247 (objc_language_data): Delete skip_trampoline initializer.
3248 (objc_language::skip_trampoline): New member function with
3249 implementation from objc_skip_trampoline.
3250 * opencl-lang.c (opencl_language_data): Delete skip_trampoline
3251 initializer.
3252 * p-lang.c (pascal_language_data): Likewise.
3253 * rust-lang.c (rust_language_data): Likewise.
3254
0a50df5d
AB
32552020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
3256
3257 * ada-lang.c (ada_language_data): Delete la_demangle initializer.
3258 (ada_language::demangle): New member function.
3259 * c-lang.c (c_language_data): Delete la_demangle initializer.
3260 (cplus_language_data): Delete la_demangle initializer.
3261 (cplus_language::demangle): New member function.
3262 (asm_language_data): Delete la_demangle initializer.
3263 (minimal_language_data): Delete la_demangle initializer.
3264 * d-lang.c (d_language_data): Delete la_demangle initializer.
3265 (d_language::demangle): New member function.
3266 * f-lang.c (f_language_data): Delete la_demangle initializer.
3267 (f_language::demangle): New member function.
3268 * go-lang.c (go_language_data): Delete la_demangle initializer.
3269 (go_language::demangle): New member function.
3270 * language.c (language_demangle): Update.
3271 (unk_lang_demangle): Delete.
3272 (unknown_language_data): Delete la_demangle initializer.
3273 (unknown_language::demangle): New member function.
3274 (auto_language_data): Delete la_demangle initializer.
3275 (auto_language::demangle): New member function.
3276 * language.h (language_data): Delete la_demangle field.
3277 (language_defn::demangle): New function.
3278 * m2-lang.c (m2_language_data): Delete la_demangle initializer.
3279 * objc-lang.c (objc_language_data): Delete la_demangle
3280 initializer.
3281 (objc_language::demangle): New member function.
3282 * opencl-lang.c (opencl_language_data): Delete la_demangle
3283 initializer.
3284 * p-lang.c (pascal_language_data): Likewise.
3285 * rust-lang.c (rust_language_data): Likewise.
3286 (rust_language::demangle): New member function.
3287
fbfb0a46
AB
32882020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
3289
3290 * ada-lang.c (ada_language_data): Delete la_print_type
3291 initializer.
3292 (ada_language::print_type): New member function.
3293 * c-lang.c (c_language_data): Delete la_print_type initializer.
3294 (c_language::print_type): New member function.
3295 (cplus_language_data): Delete la_print_type initializer.
3296 (cplus_language::print_type): New member function.
3297 (asm_language_data): Delete la_print_type initializer.
3298 (asm_language::print_type): New member function.
3299 (minimal_language_data): Delete la_print_type initializer.
3300 (minimal_language::print_type): New member function.
3301 * d-lang.c (d_language_data): Delete la_print_type initializer.
3302 (d_language::print_type): New member function.
3303 * f-lang.c (f_language_data): Delete la_print_type initializer.
3304 (f_language::print_type): New member function.
3305 * go-lang.c (go_language_data): Delete la_print_type initializer.
3306 (go_language::print_type): New member function.
3307 * language.c (unk_lang_print_type): Delete.
3308 (unknown_language_data): Delete la_print_type initializer.
3309 (unknown_language::print_type): New member function.
3310 (auto_language_data): Delete la_print_type initializer.
3311 (auto_language::print_type): New member function.
3312 * language.h (language_data): Delete la_print_type field.
3313 (language_defn::print_type): New function.
3314 (LA_PRINT_TYPE): Update.
3315 * m2-lang.c (m2_language_data): Delete la_print_type initializer.
3316 (m2_language::print_type): New member function.
3317 * objc-lang.c (objc_language_data): Delete la_print_type
3318 initializer.
3319 (objc_language::print_type): New member function.
3320 * opencl-lang.c (opencl_print_type): Delete, implementation moved
3321 to opencl_language::print_type.
3322 (opencl_language_data): Delete la_print_type initializer.
3323 (opencl_language::print_type): New member function, implementation
3324 from opencl_print_type.
3325 * p-lang.c (pascal_language_data): Delete la_print_type
3326 initializer.
3327 (pascal_language::print_type): New member function.
3328 * rust-lang.c (rust_print_type): Delete, implementation moved to
3329 rust_language::print_type.
3330 (rust_language_data): Delete la_print_type initializer.
3331 (rust_language::print_type): New member function, implementation
3332 from rust_print_type.
3333
6f827019
AB
33342020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
3335
3336 * ada-lang.c (ada_sniff_from_mangled_name): Delete function,
3337 implementation moves to...
3338 (ada_language::sniff_from_mangled_name): ...here. Update return
3339 type.
3340 (ada_language_data): Delete la_sniff_from_mangled_name
3341 initializer.
3342 * c-lang.c (c_language_data): Likewise.
3343 (cplus_language_data): Likewise.
3344 (cplus_language::sniff_from_mangled_name): New member function,
3345 implementation taken from gdb_sniff_from_mangled_name.
3346 (asm_language_data): Delete la_sniff_from_mangled_name
3347 initializer.
3348 (minimal_language_data): Likewise.
3349 * cp-support.c (gdb_sniff_from_mangled_name): Delete,
3350 implementation moves to cplus_language::sniff_from_mangled_name.
3351 * cp-support.h (gdb_sniff_from_mangled_name): Delete declaration.
3352 * d-lang.c (d_sniff_from_mangled_name): Delete, implementation
3353 moves to...
3354 (d_language::sniff_from_mangled_name): ...here.
3355 (d_language_data): Delete la_sniff_from_mangled_name initializer.
3356 * f-lang.c (f_language_data): Likewise.
3357 * go-lang.c (go_sniff_from_mangled_name): Delete, implementation
3358 moves to...
3359 (go_language::sniff_from_mangled_name): ...here.
3360 (go_language_data): Delete la_sniff_from_mangled_name initializer.
3361 * language.c (language_sniff_from_mangled_name): Delete.
3362 (unknown_language_data): Delete la_sniff_from_mangled_name
3363 initializer.
3364 (auto_language_data): Likewise.
3365 * language.h (language_data): Delete la_sniff_from_mangled_name
3366 field.
3367 (language_defn::sniff_from_mangled_name): New function.
3368 (language_sniff_from_mangled_name): Delete declaration.
3369 * m2-lang.c (m2_language_data): Delete la_sniff_from_mangled_name
3370 field.
3371 * objc-lang.c (objc_sniff_from_mangled_name): Delete,
3372 implementation moves to...
3373 (objc_language::sniff_from_mangled_name): ...here.
3374 (objc_language_data): Delete la_sniff_from_mangled_name initializer.
3375 * opencl-lang.c (opencl_language_data): Likewise.
3376 * p-lang.c (pascal_language_data): Likewise.
3377 * rust-lang.c (rust_sniff_from_mangled_name): Delete,
3378 implementation moves to...
3379 (rust_language::sniff_from_mangled_name): ...here.
3380 (rust_language_data): Delete la_sniff_from_mangled_name
3381 initializer.
3382 * symtab.c (symbol_find_demangled_name): Call
3383 sniff_from_mangled_name member function.
3384
fb8006fd
AB
33852020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
3386
3387 * ada-lang.c (ada_language_data): Delete la_search_name_hash
3388 initializer.
3389 * c-lang.c (c_language_data): Likewise.
3390 (cplus_language_data): Likewise.
3391 (cplus_language::search_name_hash): New member function.
3392 (asm_language_data): Delete la_search_name_hash initializer.
3393 (minimal_language_data): Likewise.
3394 * d-lang.c (d_language_data): Likewise.
3395 * dictionary.c (default_search_name_hash): Rename to...
3396 (language_defn::search_name_hash): ...this.
3397 * f-lang.c (f_language_data): Likewise.
3398 (f_language::search_name_hash): New member function.
3399 * go-lang.c (go_language_data): Delete la_search_name_hash
3400 initializer.
3401 * language.c (unknown_language_data): Likewise.
3402 (auto_language_data): Likewise.
3403 * language.h (struct language_data): Delete la_search_name_hash
3404 field.
3405 (language_defn::search_name_hash): Declare new member function.
3406 (default_search_name_hash): Delete declaration.
3407 * m2-lang.c (m2_language_data): Delete la_search_name_hash
3408 initializer.
3409 * objc-lang.c (objc_language_data): Likewise.
3410 * opencl-lang.c (opencl_language_data): Likewise.
3411 * p-lang.c (pascal_language_data): Likewise.
3412 * rust-lang.c (rust_language_data): Likewise.
3413 * symtab.c (search_name_hash): Update call.
3414
8e25bafe
AB
34152020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
3416
3417 * ada-lang.c (ada_language_data): Delete la_get_compile_instance
3418 initializer.
3419 * c-lang.c (class compile_instance): Declare.
3420 (c_language_data): Delete la_get_compile_instance initializer.
3421 (c_language::get_compile_instance): New member function.
3422 (cplus_language_data): Delete la_get_compile_instance initializer.
3423 (cplus_language::get_compile_instance): New member function.
3424 (asm_language_data): Delete la_get_compile_instance initializer.
3425 (minimal_language_data): Likewise.
3426 * c-lang.h (c_get_compile_context): Update comment.
3427 (cplus_get_compile_context): Update comment.
3428 * compile/compile.c (compile_to_object): Update calls, don't rely
3429 on function pointer being NULL.
3430 * d-lang.c (d_language_data): Delete la_get_compile_instance
3431 initializer.
3432 * f-lang.c (f_language_data): Likewise.
3433 * go-lang.c (go_language_data): Likewise.
3434 * language.c (unknown_language_data): Likewise.
3435 (auto_language_data): Likewise.
3436 * language.h (language_data): Delete la_get_compile_instance field.
3437 (language_defn::get_compile_instance): New member function.
3438 * m2-lang.c (m2_language_data): Delete la_get_compile_instance
3439 initializer.
3440 * objc-lang.c (objc_language_data): Likewise.
3441 * opencl-lang.c (opencl_language_data): Likewise.
3442 * p-lang.c (pascal_language_data): Likewise.
3443 * rust-lang.c (rust_language_data): Likewise.
3444
4009ee92
AB
34452020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
3446
3447 * ada-lang.c (ada_add_all_symbols): Update comment.
3448 (ada_iterate_over_symbols): Delete, move implementation to...
3449 (ada_language::iterate_over_symbols): ...here, a new member
3450 function, rewrite to use range based for loop.
3451 (ada_language_data): Delete la_iterate_over_symbols initializer.
3452 * c-lang.c (c_language_data): Likewise.
3453 (cplus_language_data): Likewise.
3454 (asm_language_data): Likewise.
3455 (minimal_language_data): Likewise.
3456 * d-lang.c (d_language_data): Likewise.
3457 * f-lang.c (f_language_data): Likewise.
3458 * go-lang.c (go_language_data): Likewise.
3459 * language.c (unknown_language_data): Likewise.
3460 (auto_language_data): Likewise.
3461 * language.h (language_data): Delete la_iterate_over_symbols field.
3462 (language_defn::iterate_over_symbols): New member function.
3463 (LA_ITERATE_OVER_SYMBOLS): Update.
3464 * linespec.c (iterate_over_all_matching_symtabs): Update.
3465 * m2-lang.c (m2_language_data): Delete la_iterate_over_symbols
3466 initializer.
3467 * objc-lang.c (objc_language_data): Likewise.
3468 * opencl-lang.c (opencl_language_data): Likewise.
3469 * p-lang.c (pascal_language_data): Likewise.
3470 * rust-lang.c (rust_language_data): Likewise.
3471
54f4ca46
AB
34722020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
3473
3474 * ada-lang.c (ada_language_data): Delete
3475 la_lookup_transparent_type initializer.
3476 * c-lang.c (c_language_data): Likewise.
3477 (cplus_language_data): Likewise.
3478 (cplus_language::lookup_transparent_type): New member function.
3479 (asm_language_data): Delete la_lookup_transparent_type
3480 initializer.
3481 (minimal_language_data): Likewise.
3482 * d-lang.c (d_language_data): Likewise.
3483 * f-lang.c (f_language_data): Likewise.
3484 * go-lang.c (go_language_data): Likewise.
3485 * language.c (unknown_language_data): Likewise.
3486 (auto_language_data): Likewise.
3487 * language.h (struct language_data): Delete
3488 la_lookup_transparent_type field.
3489 (language_defn::lookup_transparent_type): New member function.
3490 * m2-lang.c (m2_language_data): Delete la_lookup_transparent_type
3491 initializer.
3492 * objc-lang.c (objc_language_data): Likewise.
3493 * opencl-lang.c (opencl_language_data): Likewise.
3494 * p-lang.c (pascal_language_data): Likewise.
3495 * rust-lang.c (rust_language_data): Likewise.
3496 * symtab.c (symbol_matches_domain): Update call.
3497
1fb314aa
AB
34982020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
3499
3500 * ada-lang.c (ada_language_arch_info): Delete function, move
3501 implementation to...
3502 (ada_language::language_arch_info): ...here, a new member
3503 function.
3504 (ada_language_data): Delete la_language_arch_info.
3505 * c-lang.c (c_language_data): Likewise.
3506 (c_language::language_arch_info): New member function.
3507 (cplus_language_arch_info): Delete function, move
3508 implementation to...
3509 (cplus_language::language_arch_info): ...here, a new member
3510 function.
3511 (cplus_language_data): Delete la_language_arch_info.
3512 (asm_language_data): Likewise.
3513 (asm_language::language_arch_info): New member function.
3514 (minimal_language_data): Delete la_language_arch_info.
3515 (minimal_language::language_arch_info): New member function.
3516 * d-lang.c (d_language_arch_info): Delete function, move
3517 implementation to...
3518 (d_language::language_arch_info): ...here, a new member
3519 function.
3520 (d_language_data): Delete la_language_arch_info.
3521 * f-lang.c (f_language_arch_info): Delete function, move
3522 implementation to...
3523 (f_language::language_arch_info): ...here, a new member
3524 function.
3525 (f_language_data): Delete la_language_arch_info.
3526 * go-lang.c (go_language_arch_info): Delete function, move
3527 implementation to...
3528 (go_language::language_arch_info): ...here, a new member
3529 function.
3530 (go_language_data): Delete la_language_arch_info.
3531 * language.c (unknown_language_data): Likewise.
3532 (unknown_language::language_arch_info): New member function.
3533 (auto_language_data): Delete la_language_arch_info.
3534 (auto_language::language_arch_info): New member function.
3535 (language_gdbarch_post_init): Update call to
3536 la_language_arch_info.
3537 * language.h (language_data): Delete la_language_arch_info
3538 function pointer.
3539 (language_defn::language_arch_info): New function.
3540 * m2-lang.c (m2_language_arch_info): Delete function, move
3541 implementation to...
3542 (m2_language::language_arch_info): ...here, a new member
3543 function.
3544 (m2_language_data): Delete la_language_arch_info.
3545 * objc-lang.c (objc_language_arch_info): Delete function, move
3546 implementation to...
3547 (objc_language::language_arch_info): ...here, a new member
3548 function.
3549 (objc_language_data): Delete la_language_arch_info.
3550 * opencl-lang.c (opencl_language_arch_info): Delete function, move
3551 implementation to...
3552 (opencl_language::language_arch_info): ...here, a new member
3553 function.
3554 (opencl_language_data): Delete la_language_arch_info.
3555 * p-lang.c (pascal_language_arch_info): Delete function, move
3556 implementation to...
3557 (pascal_language::language_arch_info): ...here, a new member
3558 function.
3559 (pascal_language_data): Delete la_language_arch_info.
3560 * rust-lang.c (rust_language_arch_info): Delete function, move
3561 implementation to...
3562 (rust_language::language_arch_info): ...here, a new member
3563 function.
3564 (rust_language_data): Delete la_language_arch_info.
3565
48448202
AB
35662020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
3567
3568 * ada-lang.c (ada_language_data): Delete la_pass_by_reference
3569 initializer.
3570 * c-lang.c (c_language_data): Likewise.
3571 (cplus_language_data): Likewise.
3572 (cplus_language::pass_by_reference_info): New method.
3573 (asm_language_data): Delete la_pass_by_reference initializer.
3574 (minimal_language_data): Likewise.
3575 * cp-abi.c (cp_pass_by_reference): Remove use of
3576 default_pass_by_reference.
3577 * d-lang.c (d_language_data): Likewise.
3578 * f-lang.c (f_language_data): Likewise.
3579 * gnu-v3-abi.c (gnuv3_pass_by_reference): Remove use of
3580 default_pass_by_reference.
3581 * go-lang.c (go_language_data): Likewise.
3582 * language.c (language_pass_by_reference): Update.
3583 (default_pass_by_reference): Delete.
3584 (unknown_language_data): Delete la_pass_by_reference
3585 initializer.
3586 (auto_language_data): Likewise.
3587 * language.h (struct language_data): Delete la_pass_by_reference
3588 field.
3589 (language_defn::pass_by_reference_info): New member function.
3590 (default_pass_by_reference): Delete declaration.
3591 * m2-lang.c (m2_language_data): Delete la_pass_by_reference
3592 initializer.
3593 * objc-lang.c (objc_language_data): Likewise.
3594 * opencl-lang.c (opencl_language_data): Likewise.
3595 * p-lang.c (pascal_language_data): Likewise.
3596 * rust-lang.c (rust_language_data): Likewise.
3597
15e5fd35
AB
35982020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
3599
3600 * ada-lang.c (ada_read_var_value): Delete function, move
3601 implementation to...
3602 (ada_language::read_var_value): ...here.
3603 (ada_language_data): Delete la_read_var_value initializer.
3604 * c-lang.c (c_language_data): Likewise.
3605 (cplus_language_data): Likewise.
3606 (minimal_language_data): Likewise.
3607 * d-lang.c (d_language_data): Likewise.
3608 * f-lang.c (f_language_data): Likewise.
3609 * findvar.c (default_read_var_value): Rename to...
3610 (language_defn::read_var_value): ...this.
3611 * findvar.c (read_var_value): Update header comment, and change to
3612 call member function instead of function pointer.
3613 * go-lang.c (go_language_data): Likewise.
3614 * language.c (unknown_language_data): Delete la_read_var_value
3615 initializer.
3616 (auto_language_data): Likewise.
3617 * language.h (struct language_data): Delete la_read_var_value
3618 field.
3619 (language_defn::read_var_value): New member function.
3620 (default_read_var_value): Delete declaration.
3621 * m2-lang.c (m2_language_data): Delete la_read_var_value
3622 initializer.
3623 * objc-lang.c (objc_language_data): Likewise.
3624 * opencl-lang.c (opencl_language_data): Likewise.
3625 * p-lang.c (pascal_language_data): Likewise.
3626 * rust-lang.c (rust_language_data): Likewise.
3627 * value.h (default_read_var_value): Delete declaration.
3628
5bd40f2a
AB
36292020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
3630
3631 * ada-lang.c (ada_print_array_index): Delete function, move
3632 implementation to...
3633 (ada_language::print_array_index): ...here.
3634 (ada_language_data): Delete la_print_array_index initializer.
3635 * c-lang.c (c_language_data): Likewise.
3636 (cplus_language_data): Likewise.
3637 (minimal_language_data): Likewise.
3638 * d-lang.c (d_language_data): Likewise.
3639 * f-lang.c (f_language_data): Likewise.
3640 * go-lang.c (go_language_data): Likewise.
3641 * language.c (default_print_array_index): Delete function, move
3642 implementation to...
3643 (language_defn::print_array_index): ...here.
3644 (unknown_language_data): Delete la_print_array_index initializer.
3645 (auto_language_data): Likewise.
3646 * language.h (struct language_data): Delete la_print_array_index
3647 field.
3648 (language_defn::print_array_index): New member function.
3649 (LA_PRINT_ARRAY_INDEX): Update.
3650 (default_print_array_index): Delete declaration.
3651 * m2-lang.c (m2_language_data): Delete la_print_array_index
3652 initializer.
3653 * objc-lang.c (objc_language_data): Likewise.
3654 * opencl-lang.c (opencl_language_data): Likewise.
3655 * p-lang.c (pascal_language_data): Likewise.
3656 * rust-lang.c (rust_language_data): Likewise.
3657
0874fd07
AB
36582020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
3659
3660 * gdb/ada-lang.c (ada_language_defn): Convert to...
3661 (ada_language_data): ...this.
3662 (class ada_language): New class.
3663 (ada_language_defn): New static global.
3664 * gdb/c-lang.c (c_language_defn): Convert to...
3665 (c_language_data): ...this.
3666 (class c_language): New class.
3667 (c_language_defn): New static global.
3668 (cplus_language_defn): Convert to...
3669 (cplus_language_data): ...this.
3670 (class cplus_language): New class.
3671 (cplus_language_defn): New static global.
3672 (asm_language_defn): Convert to...
3673 (asm_language_data): ...this.
3674 (class asm_language): New class.
3675 (asm_language_defn): New static global.
3676 (minimal_language_defn): Convert to...
3677 (minimal_language_data): ...this.
3678 (class minimal_language): New class.
3679 (minimal_language_defn): New static global.
3680 * gdb/d-lang.c (d_language_defn): Convert to...
3681 (d_language_data): ...this.
3682 (class d_language): New class.
3683 (d_language_defn): New static global.
3684 * gdb/f-lang.c (f_language_defn): Convert to...
3685 (f_language_data): ...this.
3686 (class f_language): New class.
3687 (f_language_defn): New static global.
3688 * gdb/go-lang.c (go_language_defn): Convert to...
3689 (go_language_data): ...this.
3690 (class go_language): New class.
3691 (go_language_defn): New static global.
3692 * gdb/language.c (unknown_language_defn): Remove declaration.
3693 (current_language): Initialize to nullptr, real initialization is
3694 moved to _initialize_language.
3695 (languages): Delete global.
3696 (language_defn::languages): Define.
3697 (set_language_command): Use language_defn::languages.
3698 (set_language): Likewise.
3699 (range_error): Likewise.
3700 (language_enum): Likewise.
3701 (language_def): Likewise.
3702 (add_set_language_command): Use language_def::languages for the
3703 language list, and language_def to lookup language pointers.
3704 (skip_language_trampoline): Use language_defn::languages.
3705 (unknown_language_defn): Convert to...
3706 (unknown_language_data): ...this.
3707 (class unknown_language): New class.
3708 (unknown_language_defn): New static global.
3709 (auto_language_defn): Convert to...
3710 (auto_language_data): ...this.
3711 (class auto_language): New class.
3712 (auto_language_defn): New static global.
3713 (language_gdbarch_post_init): Use language_defn::languages.
3714 (_initialize_language): Initialize current_language.
3715 * gdb/language.h (struct language_defn): Rename to...
3716 (struct language_data): ...this.
3717 (struct language_defn): New.
3718 (auto_language_defn): Delete.
3719 (unknown_language_defn): Delete.
3720 (minimal_language_defn): Delete.
3721 (ada_language_defn): Delete.
3722 (asm_language_defn): Delete.
3723 (c_language_defn): Delete.
3724 (cplus_language_defn): Delete.
3725 (d_language_defn): Delete.
3726 (f_language_defn): Delete.
3727 (go_language_defn): Delete.
3728 (m2_language_defn): Delete.
3729 (objc_language_defn): Delete.
3730 (opencl_language_defn): Delete.
3731 (pascal_language_defn): Delete.
3732 (rust_language_defn): Delete.
3733 * gdb/m2-lang.c (m2_language_defn): Convert to...
3734 (m2_language_data): ...this.
3735 (class m2_language): New class.
3736 (m2_language_defn): New static global.
3737 * gdb/objc-lang.c (objc_language_defn): Convert to...
3738 (objc_language_data): ...this.
3739 (class objc_language): New class.
3740 (objc_language_defn): New static global.
3741 * gdb/opencl-lang.c (opencl_language_defn): Convert to...
3742 (opencl_language_data): ...this.
3743 (class opencl_language): New class.
3744 (opencl_language_defn): New static global.
3745 * gdb/p-lang.c (pascal_language_defn): Convert to...
3746 (pascal_language_data): ...this.
3747 (class pascal_language): New class.
3748 (pascal_language_defn): New static global.
3749 * gdb/rust-exp.y (rust_lex_tests): Use language_def to find
3750 language pointer, update comment format.
3751 * gdb/rust-lang.c (rust_language_defn): Convert to...
3752 (rust_language_data): ...this.
3753 (class rust_language): New class.
3754 (rust_language_defn): New static global.
3755
1313c56e
AB
37562020-06-01 Andrew Burgess <andrew.burgess@embecosm.com>
3757
3758 * dwarf2/read.c (class lnp_state_machine) <m_last_address>: New
3759 member variable.
3760 <m_stmt_at_address>: New member variable.
3761 (lnp_state_machine::record_line): Don't record some lines, update
3762 tracking of is_stmt at the same address.
3763 (lnp_state_machine::lnp_state_machine): Initialise new member
3764 variables.
3765
b7ed9f3d
ST
37662020-06-01 Samuel Thibault <samuel.thibault@ens-lyon.org>
3767
3768 * config/i386/i386gnu.mn [%_S.o %_U.o] (COMPILE.post): Add
3769 "-include gnu-nat-mig.h".
3770 * gnu-nat-mig.h: New file.
3771 * gnu-nat.c: Include "gnu-nat-mig.h".
3772 (exc_server, msg_reply_server, notify_server,
3773 process_reply_server): Remove declarations.
3774
14a8ad62
ST
37752020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
3776
3777 * gnu-nat.h (inf_validate_procs, inf_suspend, inf_set_traced,
3778 steal_exc_port, proc_get_state, inf_clear_wait, inf_cleanup,
3779 inf_startup, inf_update_suspends, inf_set_pid, inf_steal_exc_ports,
3780 inf_validate_procinfo, inf_validate_task_sc, inf_restore_exc_ports,
3781 inf_set_threads_resume_sc, inf_set_threads_resume_sc_for_signal_thread,
3782 inf_resume, inf_set_step_thread, inf_detach, inf_attach, inf_signal,
3783 inf_continue, make_proc, proc_abort, _proc_free, proc_update_sc,
3784 proc_get_exception_port, proc_set_exception_port, _proc_get_exc_port,
3785 proc_steal_exc_port, proc_restore_exc_port, proc_trace): Move functions
3786 to gnu_nat_target class.
3787 * gnu-nat.c: Likewise.
3788 (inf_update_procs, S_proc_wait_reply, set_task_pause_cmd,
3789 set_task_exc_port_cmd, set_signals_cmd, set_thread_pause_cmd,
3790 set_thread_exc_port_cmd): Call inf_validate_procs through gnu_target
3791 object.
3792 (gnu_nat_target::create_inferior, gnu_nat_target::detach): Pass `this'
3793 instead of `gnu_target'.
3794
0af5e106
ST
37952020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
3796
3797 * i386-gnu-tdep.c: Include "gdbcore.h"
3798 (gnu_sigtramp_code, i386_gnu_sc_reg_offset): New arrays.
3799 (GNU_SIGTRAMP_LEN, GNU_SIGTRAMP_TAIL,
3800 I386_GNU_SIGCONTEXT_THREAD_STATE_OFFSET): New macros
3801 (i386_gnu_sigtramp_start, i386_gnu_sigtramp_p,
3802 i386_gnu_sigcontext_addr): New functions
3803 (i386gnu_init_abi): Register i386_gnu_sigtramp_p,
3804 i386_gnu_sigcontext_addr, and i386_gnu_sc_reg_offset in the gdbarch
3805 tdep.
3806
078f2fc9
ST
38072020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
3808
3809 * gnu-nat.c (gnu_nat_target::create_inferior): Move push_target call
3810 before fork_inferior call. Avoid calling it if target_is_pushed returns
3811 true.
3812
53dff92c
ST
38132020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
3814
3815 * gnu-nat.h (gnu_target): New variable declaration.
3816 * i386-gnu-nat.c (_initialize_i386gnu_nat): Initialize
3817 gnu_target.
3818 * gnu-nat.c (gnu_target): New variable.
3819 (inf_validate_procs): Pass gnu_target to thread_change_ptid,
3820 add_thread_silent, and add_thread calls.
3821 (gnu_nat_target::create_inferior): Pass gnu_target to
3822 add_thread_silent, thread_change_ptid call.
3823 (gnu_nat_target::detach): Pass gnu_target to detach_inferior
3824 call.
3825
5a8b8627
ST
38262020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
3827
3828 * gnu-nat.c (gnu_xfer_auxv): Remove unused `res' variable.
3829 (gnu_nat_target::find_memory_regions): Remove unused
3830 `old_address' variable.
3831
366f550a
ST
38322020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
3833
3834 * gnu-nat.c: Include "gdbarch.h".
3835
f14871bf
ST
38362020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
3837
3838 * reply_mig_hack.awk (Error return): Cast function through
3839 void *, to bypass compiler function call check.
3840
c6887cfb
ST
38412020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
3842
3843 * config/i386/i386gnu.mn (%_reply_S.c): Add dependency on
3844 $(srcdir)/reply_mig_hack.awk.
3845
6930bffe
ST
38462020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
3847
3848 * gnu-nat.h (gnu_debug_flag): Set type to bool.
3849
112c22ed
JG
38502020-05-30 Jonny Grant <jg@jguk.org>
3851
3852 * configure.ac (ACX_BUGURL): change bug URL to https.
3853
f68f85b5
PA
38542020-05-30 Pedro Alves <palves@redhat.com>
3855
3856 * cp-support.c (replace_typedefs_template): New.
3857 (replace_typedefs_qualified_name): Handle
3858 DEMANGLE_COMPONENT_TEMPLATE.
3859
976ca316
SM
38602020-05-29 Simon Marchi <simon.marchi@efficios.com>
3861
3862 * dwarf2/comp-unit.c, dwarf2/comp-unit.h, dwarf2/index-cache.c,
3863 dwarf2/index-cache.h, dwarf2/index-write.c,
3864 dwarf2/index-write.h, dwarf2/line-header.c,
3865 dwarf2/line-header.h, dwarf2/macro.c, dwarf2/macro.h,
3866 dwarf2/read.c, dwarf2/read.h: Rename struct dwarf2_per_objfile
3867 variables and fields from `dwarf2_per_objfile` to just
3868 `per_objfile` throughout.
3869
989ade05
SM
38702020-05-28 Simon Marchi <simon.marchi@polymtl.ca>
3871
3872 * dwarf2/loc.c (class dwarf_evaluate_loc_desc)
3873 <push_dwarf_reg_entry_value>: Add comment.
3874
c47bae85
KB
38752020-05-28 Kevin Buettner <kevinb@redhat.com>
3876 Keith Seitz <keiths@redhat.com>
3877
3878 * python/python.c (do_start_initialization): Call PyEval_SaveThread
3879 instead of PyEval_ReleaseLock.
3880 (class gdbpy_gil): Move to earlier in file.
3881 (finalize_python): Set gdb_python_initialized.
3882 (gdbpy_check_quit_flag): Acquire GIL via gdbpy_gil. Return early
3883 when not initialized.
3884
44486dcf
SM
38852020-05-28 Simon Marchi <simon.marchi@efficios.com>
3886
3887 * dwarf2/loc.c (class dwarf_evaluate_loc_desc)
3888 <push_dwarf_reg_entry_value>: Remove assert. Override
3889 per_objfile with caller_per_objfile.
3890
f030440d
TV
38912020-05-28 Tom de Vries <tdevries@suse.de>
3892
3893 * dwarf2/read.c (dw2_symtab_iter_next, dw2_expand_marked_cus): Limit
3894 PR gold/15646 workaround to symbol kind "type".
3895
f0fbb768
TT
38962020-05-27 Tom Tromey <tromey@adacore.com>
3897
3898 * dwarf2/read.c (load_partial_dies): Use add_partial_symbol.
3899
af0b2a3e
TT
39002020-05-27 Tom Tromey <tromey@adacore.com>
3901
3902 * dwarf2/abbrev.h (struct abbrev_table) <lookup_abbrev>: Inline.
3903 Use htab_find_with_hash.
3904 <add_abbrev>: Remove "abbrev_number" parameter.
3905 * dwarf2/abbrev.c (abbrev_table::add_abbrev): Remove
3906 "abbrev_number" parameter. Use htab_find_slot_with_hash.
3907 (hash_abbrev): Add comment.
3908 (abbrev_table::lookup_abbrev): Move to header file.
3909 (abbrev_table::read): Update.
3910
7d00ffec
TT
39112020-05-27 Tom Tromey <tromey@adacore.com>
3912
3913 * dwarf2/read.c (struct partial_die_info) <name>: Declare new
3914 method.
3915 <canonical_name>: New member.
3916 <raw_name>: Rename from "name".
3917 (partial_die_info): Initialize canonical_name.
3918 (scan_partial_symbols): Check raw_name.
3919 (partial_die_parent_scope, partial_die_full_name)
3920 (add_partial_symbol, add_partial_subprogram)
3921 (add_partial_enumeration, load_partial_dies): Use "name" method.
3922 (partial_die_info::name): New method.
3923 (partial_die_info::read, guess_partial_die_structure_name)
3924 (partial_die_info::fixup): Update.
3925
697bba18
TT
39262020-05-27 Tom Tromey <tromey@adacore.com>
3927
3928 * dwarf2/attribute.h (struct attribute) <form_is_ref>: Inline.
3929 <get_ref_die_offset>: Inline.
3930 <get_ref_die_offset_complaint>: New method.
3931 * dwarf2/attribute.c (attribute::form_is_ref): Move to header.
3932 (attribute::get_ref_die_offset_complaint): Rename from
3933 get_ref_die_offset. Just issue complaint.
3934
c17ace43
HD
39352020-05-27 Hannes Domani <ssbssa@yahoo.de>
3936
3937 * cli/cli-cmds.c (shell_escape): Move exit_status_set_internal_vars.
3938
96445f0b
HD
39392020-05-27 Hannes Domani <ssbssa@yahoo.de>
3940
3941 * exec.c (exec_file_attach): Use errno value of first openp failure.
3942
ac637ec3
HD
39432020-05-27 Hannes Domani <ssbssa@yahoo.de>
3944
3945 * nat/windows-nat.c (windows_thread_info::~windows_thread_info):
3946 Don't close thread handle.
3947
17ee85fc
TT
39482020-05-27 Tom Tromey <tom@tromey.com>
3949 Simon Marchi <simon.marchi@efficios.com>
3950
3951 * objfiles.h (struct objfile) <partial_symtabs>: Now a
3952 shared_ptr.
3953 * dwarf2/read.h (struct dwarf2_per_objfile) <partial_symtabs>: New
3954 member.
3955 * dwarf2/read.c (dwarf2_per_bfd_bfd_data_key,
3956 dwarf2_per_bfd_objfile_data_key>: New globals.
3957 (dwarf2_has_info): Use shared dwarf2_per_bfd if possible.
3958 (dwarf2_get_section_info): Use get_dwarf2_per_objfile.
3959 (dwarf2_initialize_objfile): Consider cases where per_bfd can be
3960 shared.
3961 (dwarf2_build_psymtabs): Set objfile::partial_symtabs and
3962 short-circuit when sharing.
3963 (dwarf2_build_psymtabs): Set dwarf2_per_objfile::partial_symtabs.
3964 (dwarf2_psymtab::expand_psymtab): Use free_cached_comp_units.
3965
39b16f87
SM
39662020-05-27 Simon Marchi <simon.marchi@efficios.com>
3967
3968 * dwarf2/read.h (struct dwarf2_per_bfd) <line_header_hash>: Move
3969 to...
3970 (struct dwarf2_per_objfile) <line_header_hash>: ... here.
3971 * dwarf2/read.c (handle_DW_AT_stmt_list): Update.
3972
fcf23d5b
SM
39732020-05-27 Simon Marchi <simon.marchi@efficios.com>
3974
3975 * dwarf2/read.c (struct mapped_index_base) <symbol_name_at,
3976 build_name_components, find_name_components_bounds>:
3977 Add per_objfile parameter.
3978 (struct mapped_index) <symbol_name_at>: Likewise.
3979 (struct mapped_debug_names): Remove constructor.
3980 <dwarf2_per_objfile>: Remove field.
3981 <namei_to_name, symbol_name_at>: Add per_objfile parameter.
3982 (mapped_index_base::find_name_components_bounds,
3983 mapped_index_base::build_name_components,
3984 dw2_expand_symtabs_matching_symbol): Likewise.
3985 (class mock_mapped_index) <symbol_name_at>: Likewise.
3986 (check_match): Likewise.
3987 (check_find_bounds_finds): Likewise.
3988 (test_mapped_index_find_name_component_bounds): Update.
3989 (CHECK_MATCH): Update.
3990 (dw2_expand_symtabs_matching): Update.
3991 (class dw2_debug_names_iterator) <dw2_debug_names_iterator>: Add
3992 per_objfile parameter.
3993 <find_vec_in_debug_names>: Likewise.
3994 <m_per_objfile>: New field.
3995 (mapped_debug_names::namei_to_name): Add dwarf2_per_objfile
3996 parameter.
3997 (dw2_debug_names_iterator::find_vec_in_debug_names): Likewise.
3998 (dw2_debug_names_iterator::next): Update.
3999 (dw2_debug_names_lookup_symbol): Update.
4000 (dw2_debug_names_expand_symtabs_for_function): Update.
4001 (dw2_debug_names_map_matching_symbols): Update.
4002 (dw2_debug_names_expand_symtabs_matching): Update.
4003 (dwarf2_read_debug_names): Update.
4004
7188ed02
SM
40052020-05-27 Simon Marchi <simon.marchi@efficios.com>
4006
4007 * dwarf2/read.h (struct dwarf2_cu): Forward-declare.
4008 (struct dwarf2_per_bfd) <free_cached_comp_units>: Remove,
4009 move to dwarf2_per_objfile.
4010 <read_in_chain>: Remove.
4011 (struct dwarf2_per_objfile) <get_cu, set_cu, remove_cu,
4012 remove_all_cus, age_comp_units>: New methods.
4013 <m_dwarf2_cus>: New member.
4014 (struct dwarf2_per_cu_data) <cu>: Remove.
4015 * dwarf2/read.c (struct dwarf2_cu) <read_in_chain>: Remove.
4016 (age_cached_comp_units, free_one_cached_comp_unit): Remove,
4017 moved to methods of dwarf2_per_objfile.
4018 (dwarf2_clear_marks): Remove.
4019 (dwarf2_queue_item::~dwarf2_queue_item): Update.
4020 (dwarf2_per_bfd::~dwarf2_per_bfd): Don't free dwarf2_cus.
4021 (dwarf2_per_bfd::free_cached_comp_units): Remove.
4022 (dwarf2_per_objfile::remove_all_cus): New.
4023 (class free_cached_comp_units) <~free_cached_comp_units>:
4024 Update.
4025 (load_cu): Update.
4026 (dw2_do_instantiate_symtab): Adjust.
4027 (fill_in_sig_entry_from_dwo_entry): Adjust.
4028 (cutu_reader::init_tu_and_read_dwo_dies): Update.
4029 (cutu_reader::cutu_reader): Likewise.
4030 (cutu_reader::keep): Use dwarf2_per_objfile::set_cu.
4031 (cutu_reader::cutu_reader): Use dwarf2_per_objfile::get_cu.
4032 (process_psymtab_comp_unit): Use dwarf2_per_objfile::remove_cu
4033 and dwarf2_per_objfile::age_comp_units.
4034 (load_partial_comp_unit): Update.
4035 (maybe_queue_comp_unit): Use dwarf2_per_objfile::get_cu.
4036 (process_queue): Likewise.
4037 (find_partial_die): Use dwarf2_per_objfile::get_cu instead of cu
4038 backlink.
4039 (dwarf2_read_addr_index): Likewise.
4040 (follow_die_offset): Likewise.
4041 (dwarf2_fetch_die_loc_sect_off): Likewise.
4042 (dwarf2_fetch_constant_bytes): Likewise.
4043 (dwarf2_fetch_die_type_sect_off): Likewise.
4044 (follow_die_sig_1): Likewise.
4045 (load_full_type_unit): Likewise.
4046 (read_signatured_type): Likewise.
4047 (dwarf2_cu::dwarf2_cu): Don't set cu field.
4048 (dwarf2_cu::~dwarf2_cu): Remove.
4049 (dwarf2_per_objfile::get_cu): New.
4050 (dwarf2_per_objfile::set_cu): New.
4051 (age_cached_comp_units): Rename to...
4052 (dwarf2_per_objfile::age_comp_units): ... this. Adjust
4053 to std::unordered_map.
4054 (free_one_cached_comp_unit): Rename to...
4055 (dwarf2_per_objfile::remove_cu): ... this. Adjust
4056 to std::unordered_map.
4057 (dwarf2_per_objfile::~dwarf2_per_objfile): New.
4058 (dwarf2_mark_helper): Use dwarf2_per_objfile::get_cu, expect
4059 a dwarf2_per_objfile in data.
4060 (dwarf2_mark): Pass dwarf2_per_objfile in data to htab_traverse.
4061 (dwarf2_clear_marks): Remove.
4062
2e671100
SM
40632020-05-27 Simon Marchi <simon.marchi@efficios.com>
4064
4065 * dwarf2/read.c (class cutu_reader) <cutu_reader>: Replace
4066 `int use_existing_cu` parameter with `dwarf2_cu *existing_cu`.
4067 (init_tu_and_read_dwo_dies): Likewise.
4068 (cutu_reader::init_tu_and_read_dwo_dies): Likewise.
4069 (cutu_reader::cutu_reader): Likewise.
4070 (load_partial_comp_unit): Likewise.
4071 (process_psymtab_comp_unit): Update.
4072 (build_type_psymtabs_1): Update.
4073 (process_skeletonless_type_unit): Update.
4074 (load_full_comp_unit): Update.
4075 (find_partial_die): Update.
4076 (dwarf2_read_addr_index): Update.
4077 (read_signatured_type): Update.
4078
2e6a9f79
SM
40792020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
4080
4081 * dwarf2/read.h (struct dwarf2_per_cu_data) <m_header,
4082 m_header_read_in>: New fields.
4083 <get_header>: New method.
4084 * dwarf2/read.c (per_cu_header_read_in): Remove.
4085 (dwarf2_per_cu_data::get_header): New.
4086 (dwarf2_per_cu_data::addr_size): Update.
4087 (dwarf2_per_cu_data::offset_size): Update.
4088 (dwarf2_per_cu_data::ref_addr_size): Update.
4089
1b555f17
SM
40902020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
4091
4092 * dwarf2/read.c (load_cu): Return dwarf2_cu.
4093 (dw2_do_instantiate_symtab): Update.
4094 (queue_and_load_all_dwo_tus): Change parameter from
4095 dwarf2_per_cu_data to dwarf2_cu.
4096 (dwarf2_fetch_die_loc_sect_off): Update.
4097 (dwarf2_fetch_constant_bytes): Update.
4098 (dwarf2_fetch_die_type_sect_off): Update.
4099
8fc0b21d
SM
41002020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
4101
4102 * dwarf2/read.c (process_full_comp_unit,
4103 process_full_type_unit): Remove per_cu, per_objfile paramters.
4104 Add dwarf2_cu parameter.
4105 (process_queue): Update.
4106
168c9250
SM
41072020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
4108
4109 * dwarf2/read.c (create_cu_from_index_list): Replace
4110 dwarf2_per_objfile parameter with dwarf2_per_bfd.
4111 (create_cus_from_index_list): Likewise.
4112 (create_cus_from_index): Likewise.
4113 (create_signatured_type_table_from_index): Likewise.
4114 (create_cus_from_debug_names_list): Likewise.
4115 (create_cus_from_debug_names): Likewise.
4116 (dwarf2_read_gdb_index): Update.
4117 (dwarf2_read_debug_names): Update.
4118
e286671b
TT
41192020-05-27 Tom Tromey <tom@tromey.com>
4120 Simon Marchi <simon.marchi@efficios.com>
4121
4122 * dwarf2/read.h (struct dwarf2_per_objfile)
4123 <get_type_for_signatured_type, set_type_for_signatured_type>:
4124 New methods.
4125 <m_type_map>: New member.
4126 (struct signatured_type) <type>: Remove.
4127 * dwarf2/read.c
4128 (dwarf2_per_objfile::get_type_for_signatured_type,
4129 dwarf2_per_objfile::set_type_for_signatured_type): New.
4130 (get_signatured_type): Use new methods.
4131
8adb8487
TT
41322020-05-27 Tom Tromey <tom@tromey.com>
4133 Simon Marchi <simon.marchi@efficios.com>
4134
4135 * dwarf2/read.h (struct type_unit_group_unshareable): New.
4136 (struct dwarf2_per_objfile) <type_units>: New member.
4137 <get_type_unit_group_unshareable>: New method.
4138 * dwarf2/read.c (struct type_unit_group) <compunit_symtab,
4139 num_symtabs, symtabs>: Remove; move to
4140 type_unit_group_unshareable.
4141 (dwarf2_per_objfile::get_type_unit_group_unshareable): New.
4142 (process_full_type_unit, dwarf2_cu::setup_type_unit_groups)
4143 (dwarf2_cu::setup_type_unit_groups): Use type_unit_group_unshareable.
4144
127bbf4b
SM
41452020-05-27 Simon Marchi <simon.marchi@efficios.com>
4146
4147 * dwarf2/read.h (struct dwarf2_per_cu_data):
4148 <dwarf2_per_objfile>: Remove.
4149 * dwarf2/read.c (create_cu_from_index_list): Don't assign
4150 dwarf2_per_objfile.
4151 (create_signatured_type_table_from_index): Likewise.
4152 (create_signatured_type_table_from_debug_names): Likewise.
4153 (create_debug_type_hash_table): Likewise.
4154 (fill_in_sig_entry_from_dwo_entry): Likewise.
4155 (create_type_unit_group): Likewise.
4156 (read_comp_units_from_section): Likewise.
4157 (create_cus_hash_table): Likewise.
4158
f6e649dd
SM
41592020-05-27 Simon Marchi <simon.marchi@efficios.com>
4160
4161 * dwarf2/read.c (process_psymtab_comp_unit): Remove reference to
4162 dwarf2_per_cu_data::dwarf2_per_objfile.
4163 (compute_compunit_symtab_includes): Likewise.
4164 (dwarf2_cu::start_symtab): Likewise.
4165
aa66c379
SM
41662020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
4167
4168 * dwarf2/read.h (dwarf2_get_die_type): Add dwarf2_per_objfile
4169 parameter.
4170 * dwarf2/read.c (get_die_type_at_offset): Likewise.
4171 (read_namespace_alias): Update.
4172 (lookup_die_type): Update.
4173 (dwarf2_get_die_type): Add dwarf2_per_objfile parameter.
4174 * dwarf2/loc.c (class dwarf_evaluate_loc_desc) <get_base_type>:
4175 Update.
4176 (disassemble_dwarf_expression): Update.
4177
120ce1b5
SM
41782020-05-27 Simon Marchi <simon.marchi@efficios.com>
4179
4180 * dwarf2/read.h (struct dwarf2_queue_item): Add
4181 dwarf2_per_objfile parameter, assign new parameter.
4182 <per_objfile>: New field.
4183 * dwarf2/read.c (free_one_cached_comp_unit): Add
4184 dwarf2_per_objfile parameter.
4185 (queue_comp_unit): Likewise.
4186 (dw2_do_instantiate_symtab): Update.
4187 (process_psymtab_comp_unit): Update.
4188 (maybe_queue_comp_unit): Add dwarf2_per_objfile parameter.
4189 (process_imported_unit_die): Update.
4190 (queue_and_load_dwo_tu): Update.
4191 (follow_die_offset): Update.
4192 (follow_die_sig_1): Update.
4193
9f47c707
SM
41942020-05-27 Simon Marchi <simon.marchi@efficios.com>
4195
4196 * dwarf2/read.h (struct dwarf2_per_cu_data) <objfile>: Remove.
4197 * dwarf2/read.c (dwarf2_compute_name): Pass per_objfile down.
4198 (read_call_site_scope): Assign per_objfile.
4199 (dwarf2_per_cu_data::objfile): Remove.
4200 * gdbtypes.h (struct call_site) <per_objfile>: New member.
4201 * dwarf2/loc.h (dwarf2_evaluate_loc_desc): Add
4202 dwarf2_per_objfile parameter.
4203 * dwarf2/loc.c (dwarf2_evaluate_loc_desc_full): Add
4204 dwarf2_per_objfile parameter.
4205 (dwarf_expr_reg_to_entry_parameter): Add output
4206 dwarf2_per_objfile parameter.
4207 (locexpr_get_frame_base): Update.
4208 (class dwarf_evaluate_loc_desc) <get_tls_address>: Update.
4209 <push_dwarf_reg_entry_value>: Update.
4210 <call_site_to_target_addr>: Update.
4211 (dwarf_entry_parameter_to_value): Add dwarf2_per_objfile
4212 parameter.
4213 (value_of_dwarf_reg_entry): Update.
4214 (rw_pieced_value): Update.
4215 (indirect_synthetic_pointer): Update.
4216 (dwarf2_evaluate_property): Update.
4217 (dwarf2_loc_desc_get_symbol_read_needs): Add dwarf2_per_objfile
4218 parameter.
4219 (locexpr_read_variable): Update.
4220 (locexpr_get_symbol_read_needs): Update.
4221 (loclist_read_variable): Update.
4222
14095eb3
SM
42232020-05-27 Simon Marchi <simon.marchi@efficios.com>
4224
4225 * dwarf2/read.h (dwarf2_fetch_die_loc_sect_off,
4226 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
4227 dwarf2_fetch_die_type_sect_off): Add dwarf2_per_objfile
4228 parameter.
4229 * dwarf2/read.c (dwarf2_fetch_die_loc_sect_off,
4230 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
4231 dwarf2_fetch_die_type_sect_off): Add dwarf2_per_objfile
4232 parameter.
4233 * dwarf2/loc.c (indirect_synthetic_pointer, per_cu_dwarf_call,
4234 sect_variable_value): Add dwarf2_per_objfile parameter.
4235 (class dwarf_evaluate_loc_desc) <dwarf_call,
4236 dwarf_variable_value>: Update.
4237 (fetch_const_value_from_synthetic_pointer): Add
4238 dwarf2_per_objfile parameter.
4239 (fetch_const_value_from_synthetic_pointer): Update.
4240 (coerced_pieced_ref): Update.
4241 (class symbol_needs_eval_context) <dwarf_call,
4242 dwarf_variable_value>: Update.
4243 (dwarf2_compile_expr_to_ax): Update.
4244
3c3cd3d4
SM
42452020-05-27 Simon Marchi <simon.marchi@efficios.com>
4246
4247 * dwarf2/loc.c (allocate_piece_closure): Add dwarf2_per_objfile
4248 parameter.
4249 (dwarf2_evaluate_loc_desc_full): Update.
4250
82ca3f51
SM
42512020-05-27 Simon Marchi <simon.marchi@efficios.com>
4252
4253 * dwarf2/read.h (dwarf2_read_addr_index): Add dwarf2_per_objfile
4254 parameter.
4255 * dwarf2/read.c (dwarf2_read_addr_index): Likewise.
4256 * dwarf2/loc.c (decode_debug_loclists_addresses): Add
4257 dwarf2_per_objfile parameter.
4258 (decode_debug_loc_dwo_addresses): Likewise.
4259 (dwarf2_find_location_expression): Update.
4260 (class dwarf_evaluate_loc_desc) <get_addr_index>: Update.
4261 (locexpr_describe_location_piece): Add dwarf2_per_objfile
4262 parameter.
4263 (disassemble_dwarf_expression): Add dwarf2_per_objfile
4264 parameter.
4265 (locexpr_describe_location_1): Likewise.
4266 (locexpr_describe_location): Update.
4267
4b167ea1
SM
42682020-05-27 Simon Marchi <simon.marchi@efficios.com>
4269
4270 * dwarf2/read.h (struct dwarf2_per_cu_data) <text_offset>:
4271 Remove.
4272 * dwarf2/read.c (dwarf2_per_cu_data::text_offset): Remove.
4273 * dwarf2/loc.c (dwarf2_find_location_expression): Update.
4274 (dwarf2_compile_property_to_c): Update.
4275 (dwarf2_compile_expr_to_ax): Add dwarf2_per_objfile parameter,
4276 use text offset from objfile.
4277 (locexpr_tracepoint_var_ref): Update.
4278 (locexpr_generate_c_location): Update.
4279 (loclist_describe_location): Update.
4280 (loclist_tracepoint_var_ref): Update.
4281 * dwarf2/compile.h (compile_dwarf_bounds_to_c): Add
4282 dwarf2_per_objfile parameter.
4283 * dwarf2/loc2c.c (do_compile_dwarf_expr_to_c): Likewise,
4284 use text offset from objfile.
4285 (compile_dwarf_expr_to_c): Add dwarf2_per_objfile parameter.
4286
89b07335
SM
42872020-05-27 Simon Marchi <simon.marchi@efficios.com>
4288
4289 * dwarf2/expr.h (struct dwarf_expr_context)
4290 <dwarf_expr_context>: Add dwarf2_per_objfile parameter.
4291 <offset>: Remove.
4292 <per_objfile>: New member.
4293 * dwarf2/expr.c (dwarf_expr_context::dwarf_expr_context): Add
4294 dwarf2_per_objfile parameter. Don't set offset, set
4295 per_objfile.
4296 (dwarf_expr_context::execute_stack_op): Use offset from objfile.
4297 * dwarf2/frame.c (dwarf2_frame_find_fde): Return (by parameter)
4298 a dwarf2_per_objfile object instead of an offset.
4299 (class dwarf_expr_executor) <dwarf_expr_executor>: Add
4300 constructor.
4301 (execute_stack_op): Add dwarf2_per_objfile parameter, pass it
4302 to dwarf2_expr_executor constructor. Don't set offset.
4303 (dwarf2_fetch_cfa_info): Update.
4304 (struct dwarf2_frame_cache) <text_offset>: Remove.
4305 <per_objfile>: New field.
4306 (dwarf2_frame_cache): Update.
4307 (dwarf2_frame_prev_register): Update.
4308 * dwarf2/loc.c (class dwarf_evaluate_loc_desc)
4309 <dwarf_evaluate_loc_desc>: Add constructor.
4310 (dwarf2_evaluate_loc_desc_full): Update.
4311 (dwarf2_locexpr_baton_eval): Update.
4312 (class symbol_needs_eval_context) <symbol_needs_eval_context>:
4313 Add constructor.
4314 (dwarf2_loc_desc_get_symbol_read_needs): Update.
4315
293e7e51
SM
43162020-05-27 Simon Marchi <simon.marchi@efficios.com>
4317
4318 * dwarf2/read.h (struct dwarf2_per_cu_data) <addr_type,
4319 addr_sized_int_type>: Move to dwarf2_cu.
4320 <int_type>: Move to dwarf2_per_objfile.
4321 (struct dwarf2_per_objfile) <int_type>: Move here.
4322 * dwarf2/read.c (struct dwarf2_cu) <addr_type,
4323 addr_sized_int_type>: Move here.
4324 (read_func_scope): Update.
4325 (read_array_type): Update.
4326 (read_tag_string_type): Update.
4327 (attr_to_dynamic_prop): Update.
4328 (dwarf2_per_cu_data::int_type): Rename to...
4329 (dwarf2_per_objfile::int_type): ... this.
4330 (dwarf2_per_cu_data::addr_sized_int_type): Rename to...
4331 (dwarf2_cu::addr_sized_int_type): ... this.
4332 (read_subrange_type): Update.
4333 (dwarf2_per_cu_data::addr_type): Rename to...
4334 (dwarf2_cu::addr_type): ... this.
4335 (set_die_type): Update.
4336
64874a40
SM
43372020-05-27 Simon Marchi <simon.marchi@efficios.com>
4338
4339 * dwarf2/read.c (queue_and_load_all_dwo_tus): Access per_objfile
4340 data through per_cu->cu.
4341
4ab09049
SM
43422020-05-27 Simon Marchi <simon.marchi@efficios.com>
4343
4344 * dwarf2/read.c (lookup_dwo_comp_unit): Change
4345 dwarf2_per_cu_data parameter fo dwarf2_cu.
4346 (lookup_dwo_type_unit): Likewise.
4347 (read_cutu_die_from_dwo): Likewise.
4348 (lookup_dwo_unit): Likewise.
4349 (open_and_init_dwo_file): Likewise.
4350 (lookup_dwo_cutu): Likewise.
4351 (lookup_dwo_comp_unit): Likewise.
4352 (lookup_dwo_type_unit): Likewise.
4353 (cutu_reader::init_tu_and_read_dwo_dies): Update.
4354 (cutu_reader::cutu_reader): Update.
4355
47b14e86
SM
43562020-05-27 Simon Marchi <simon.marchi@efficios.com>
4357
4358 * dwarf2/read.c (process_full_comp_unit): Add dwarf2_per_objfile
4359 parameter.
4360 (process_full_type_unit): Likewise.
4361 (process_queue): Update.
4362
43182c09
SM
43632020-05-27 Simon Marchi <simon.marchi@efficios.com>
4364
4365 * dwarf2/read.c (recursively_compute_inclusions): Add
4366 dwarf2_per_objfile parameter.
4367 (compute_compunit_symtab_includes): Likewise.
4368 (process_cu_includes): Update.
4369
7aa104c4
SM
43702020-05-27 Simon Marchi <simon.marchi@efficios.com>
4371
4372 * dwarf2/read.c (create_partial_symtab): Add dwarf2_per_objfile
4373 parameter.
4374 (create_type_unit_group): Update.
4375 (process_psymtab_comp_unit_reader): Update.
4376 (build_type_psymtabs_reader): Update.
4377
e3beb21d
SM
43782020-05-27 Simon Marchi <simon.marchi@efficios.com>
4379
4380 * dwarf2/read.c (cutu_reader::keep): Access dwarf2_per_objfile
4381 object through m_this_cu->cu.
4382
d460f660
SM
43832020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
4384
4385 * dwarf2/read.c (queue_and_load_dwo_tu): Expect a dwarf2_cu as
4386 the info parameter.
4387 (queue_and_load_all_dwo_tus): Pass per_cu->cu.
4388
ab432490
SM
43892020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
4390
4391 * dwarf2/read.c (class cutu_reader) <cutu_reader>: Add
4392 per_objfile parameter.
4393 (load_full_type_unit): Add per_objfile parameter.
4394 (read_signatured_type): Likewise.
4395 (load_full_comp_unit): Likewise.
4396 (load_cu): Likewise.
4397 (dw2_do_instantiate_symtab): Likewise.
4398 (dw2_get_file_names): Likewise.
4399 (dw2_map_symtabs_matching_filename): Update.
4400 (dw_expand_symtabs_matching_file_matcher): Update.
4401 (dw2_map_symbol_filenames): Update.
4402 (process_psymtab_comp_unit): Add per_objfile parameter.
4403 (build_type_psymtabs_1): Update.
4404 (process_skeletonless_type_unit): Update.
4405 (dwarf2_build_psymtabs_hard): Update.
4406 (load_partial_comp_unit): Add per_objfile parameter.
4407 (scan_partial_symbols): Update.
4408 (load_full_comp_unit): Add per_objfile parameter.
4409 (process_imported_unit_die): Update.
4410 (create_cus_hash_table): Update.
4411 (find_partial_die): Update.
4412 (dwarf2_read_addr_index): Update.
4413 (follow_die_offset): Update.
4414 (dwarf2_fetch_die_loc_sect_off): Update.
4415 (dwarf2_fetch_constant_bytes): Update.
4416 (dwarf2_fetch_die_type_sect_off): Update.
4417 (follow_die_sig_1): Update.
4418 (load_full_type_unit): Add per_objfile parameter.
4419 (read_signatured_type): Likewise.
4420
313bad1b
SM
44212020-05-27 Simon Marchi <simon.marchi@efficios.com>
4422
4423 * dwarf2/read.c (lookup_dwo_unit): Use bfd_get_filename instead
4424 of objfile_name.
4425
c3699833
SM
44262020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
4427
4428 * dwarf2/read.h (struct dwarf2_per_bfd) <obfd>: New member.
4429 (dwarf2_get_dwz_file): Replace parameter with dwarf2_per_bfd.
4430 * dwarf2/read.c (dwarf2_per_bfd::dwarf2_per_bfd): Assign obfd
4431 field.
4432 (dwarf2_get_dwz_file): Replace parameter with dwarf2_per_bfd.
4433 (create_cus_from_index): Update.
4434 (dwarf2_read_gdb_index): Update.
4435 (create_cus_from_debug_names): Update.
4436 (dwarf2_read_debug_names): Update.
4437 (get_abbrev_section_for_cu): Update.
4438 (create_all_comp_units): Update.
4439 (read_attribute_value): Update.
4440 (get_debug_line_section): Update.
4441 * dwarf2/index-cache.c (index_cache::store): Update.
4442 * dwarf2/index-write.c (save_gdb_index_command): Update.
4443 * dwarf2/macro.c (dwarf_decode_macro_bytes): Update.
4444
1859c670
SM
44452020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
4446
4447 * dwarf2/read.h (struct dwarf2_per_cu_data) <per_bfd>: New
4448 member.
4449 * dwarf2/read.c (dwarf2_per_bfd::allocate_per_cu): Initialize
4450 dwarf2_per_cu_data::per_bfd.
4451 (dwarf2_per_bfd::allocate_signatured_type): Likewise.
4452 (create_type_unit_group): Likewise.
4453 (queue_comp_unit): Remove reference to
4454 per_cu->dwarf2_per_objfile.
4455 (maybe_queue_comp_unit): Likewise.
4456 (fill_in_sig_entry_from_dwo_entry): Assign new field.
4457 (create_cus_hash_table): Assign new field.
4458
5e22e966
SM
44592020-05-27 Simon Marchi <simon.marchi@efficios.com>
4460
4461 * dwarf2/read.c: Replace
4462 dwarf2_cu->per_cu->dwarf2_per_objfile references with
4463 dwarf2_cu->per_objfile throughout.
4464
97a1449a
SM
44652020-05-27 Simon Marchi <simon.marchi@efficios.com>
4466
4467 * dwarf2/read.c (dw2_do_instantiate_symtab): Add per_objfile
4468 parameter, don't use per_cu->dwarf2_per_objfile.
4469 (dw2_instantiate_symtab): Likewise.
4470 (dw2_find_last_source_symtab): Update.
4471 (dw2_map_expand_apply): Update.
4472 (dw2_lookup_symbol): Update.
4473 (dw2_expand_symtabs_for_function): Update.
4474 (dw2_expand_all_symtabs): Update.
4475 (dw2_expand_symtabs_with_fullname): Update.
4476 (dw2_expand_symtabs_matching_one): Add per_objfile parameter,
4477 don't use per_cu->dwarf2_per_objfile.
4478 (dw2_expand_marked_cus): Update.
4479 (dw2_find_pc_sect_compunit_symtab): Update.
4480 (dw2_debug_names_lookup_symbol): Update.
4481 (dw2_debug_names_expand_symtabs_for_function): Update.
4482 (dw2_debug_names_map_matching_symbols): Update.
4483 (dwarf2_psymtab::expand_psymtab): Update.
4484
9e021579
SM
44852020-05-27 Simon Marchi <simon.marchi@efficios.com>
4486
4487 * dwarf2/read.c (struct dwarf2_cu) <dwarf2_cu>: Add parameter.
4488 <per_objfile>: New member.
4489 (class cutu_reader) <init_tu_and_read_dwo_dies>: Add parameter.
4490 (cutu_reader::init_tu_and_read_dwo_dies): Add parameter, update
4491 call to dwarf2_cu.
4492 (cutu_reader::cutu_reader): Update.
4493 (dwarf2_cu::dwarf2_cu): Add parameter, initialize per_objfile.
4494
ae090bdb
SM
44952020-05-27 Simon Marchi <simon.marchi@efficios.com>
4496
4497 * dwarf2/read.h (struct dwarf2_per_bfd) <die_type_hash>: Move to
4498 struct dwarf2_per_objfile.
4499 (struct dwarf2_per_objfile) <die_type_hash>: Move from struct
4500 dwarf2_per_bfd.
4501 * dwarf2/read.c (set_die_type): Update.
4502 (get_die_type_at_offset): Update.
4503
af758d11
SM
45042020-05-27 Tom Tromey <tom@tromey.com>
4505 Simon Marchi <simon.marchi@efficios.com>
4506
4507 * dwarf2/read.h (struct dwarf2_per_bfd) <num_psymtabs>: New
4508 method.
4509 (struct dwarf2_per_objfile) <resize_symtabs, symtab_set_p,
4510 get_symtab, set_symtab>: New methods.
4511 <m_symtabs>: New field.
4512 (struct dwarf2_psymtab): Derive from partial_symtab.
4513 <readin_p, get_compunit_symtab>: Declare methods.
4514 * dwarf2/read.c (dwarf2_per_objfile::symtab_set_p,
4515 dwarf2_per_objfile::get_symtab, dwarf2_per_objfile::set_symtab):
4516 New methods.
4517 (struct dwarf2_per_cu_quick_data) <compunit_symtab>: Remove.
4518 (dw2_do_instantiate_symtab, dw2_instantiate_symtab)
4519 (dw2_map_expand_apply, dw2_map_symtabs_matching_filename)
4520 (dw2_symtab_iter_next, dw2_print_stats)
4521 (dw2_expand_symtabs_with_fullname)
4522 (dw2_expand_symtabs_matching_one)
4523 (dw_expand_symtabs_matching_file_matcher)
4524 (dw2_find_pc_sect_compunit_symtab, dw2_map_symbol_filenames)
4525 (dw2_debug_names_iterator::next)
4526 (dw2_debug_names_map_matching_symbols)
4527 (fill_in_sig_entry_from_dwo_entry, dwarf2_psymtab::read_symtab)
4528 (process_queue, dwarf2_psymtab::expand_psymtab): Update.
4529 (dwarf2_psymtab::readin_p, dwarf2_psymtab::get_compunit_symtab):
4530 New methods.
4531 (get_compunit_symtab, process_full_comp_unit)
4532 (process_full_type_unit): Update.
4533 (dwarf2_build_psymtabs, dwarf2_initialize_objfile, add_type_unit): Call
4534
5989a64e
SM
45352020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
4536
4537 * dwarf2/read.h (dwarf2_per_objfile): Rename to dwarf2_per_bfd,
4538 then introduce a new dwarf2_per_objfile type.
4539 <read_line_string>: Move to the new dwarf2_per_objfile type.
4540 <objfile>: Likewise.
4541 (dwarf2_per_bfd): Rename dwarf2_per_objfile to this.
4542 * dwarf2/read.c: Replace references to dwarf2_per_objfile with
4543 dwarf2_per_objfile->per_bfd.
4544 (dwarf2_per_objfile::dwarf2_per_objfile): Rename to...
4545 (dwarf2_per_bfd::dwarf2_per_bfd): ... this.
4546 (dwarf2_per_objfile::free_cached_comp_units): Rename to...
4547 (dwarf2_per_bfd::free_cached_comp_units): ... this.
4548 (dwarf2_has_info): Allocate dwarf2_per_bfd.
4549 (dwarf2_per_objfile::locate_sections): Rename to...
4550 (dwarf2_per_bfd::locate_sections): ... this.
4551 (dwarf2_per_objfile::get_cutu): Rename to...
4552 (dwarf2_per_bfd::get_cutu): ... this.
4553 (dwarf2_per_objfile::get_cu): Rename to...
4554 (dwarf2_per_bfd::get_cu): ... this.
4555 (dwarf2_per_objfile::get_tu): Rename to...
4556 (dwarf2_per_bfd::get_tu): ... this.
4557 (dwarf2_per_objfile::allocate_per_cu): Rename to...
4558 (dwarf2_per_bfd::allocate_per_cu): ... this.
4559 (dwarf2_per_objfile::allocate_signatured_type): Rename to...
4560 (dwarf2_per_bfd::allocate_signatured_type): ... this.
4561 (get_gdb_index_contents_ftype): Change parameter from
4562 dwarf2_per_objfile to dwarf2_per_bfd.
4563 * dwarf2/macro.c, dwarf2/index-write.c: Replace references to
4564 dwarf2_per_objfile with dwarf2_per_objfile->per_bfd.
4565
a50264ba
TT
45662020-05-27 Tom Tromey <tom@tromey.com>
4567 Simon Marchi <simon.marchi@efficios.com>
4568
4569 * dwarf2/loc.c (struct piece_closure) <per_objfile>: New member.
4570 (allocate_piece_closure): Set "per_objfile" member.
4571 (dwarf2_find_location_expression, dwarf2_locexpr_baton_eval)
4572 (locexpr_describe_location, loclist_describe_location): Use new
4573 member.
4574 * dwarf2/read.c (read_call_site_scope)
4575 (mark_common_block_symbol_computed, attr_to_dynamic_prop)
4576 (dwarf2_const_value_attr, dwarf2_fetch_die_loc_sect_off)
4577 (fill_in_loclist_baton, dwarf2_symbol_mark_computed,
4578 handle_data_member_location): Set per_objfile member.
4579 * dwarf2/loc.h (struct dwarf2_locexpr_baton) <per_objfile>: New
4580 member.
4581 (struct dwarf2_loclist_baton) <per_objfile>: New member.
4582
d3473f0c
TT
45832020-05-27 Tom Tromey <tom@tromey.com>
4584
4585 * dwarf2/read.h (struct dwarf2_per_objfile) <allocate_per_cu,
4586 allocate_signatured_type>: Declare new methods.
4587 <m_num_psymtabs>: New member.
4588 (struct dwarf2_per_cu_data) <index>: New member.
4589 * dwarf2/read.c (dwarf2_per_objfile::allocate_per_cu)
4590 (dwarf2_per_objfile::allocate_signatured_type): New methods.
4591 (create_cu_from_index_list): Use allocate_per_cu.
4592 (create_signatured_type_table_from_index)
4593 (create_signatured_type_table_from_debug_names)
4594 (create_debug_type_hash_table, add_type_unit)
4595 (read_comp_units_from_section): Use allocate_signatured_type.
4596
5717c425
TT
45972020-05-27 Tom Tromey <tom@tromey.com>
4598
4599 * psymtab.c (partial_map_expand_apply)
4600 (psym_find_pc_sect_compunit_symtab, psym_lookup_symbol)
4601 (psym_lookup_global_symbol_language)
4602 (psymtab_to_symtab, psym_find_last_source_symtab, dump_psymtab)
4603 (psym_print_stats, psym_expand_symtabs_for_function)
4604 (psym_map_symbol_filenames, psym_map_matching_symbols)
4605 (psym_expand_symtabs_matching)
4606 (partial_symtab::read_dependencies, maintenance_info_psymtabs)
4607 (maintenance_check_psymtabs): Update.
4608 * psympriv.h (struct partial_symtab) <readin_p,
4609 get_compunit_symtab>: Add objfile parameter.
4610 (struct standard_psymtab) <readin_p, get_compunit_symtab>:
4611 Likewise.
4612 * dwarf2/read.c (struct dwarf2_include_psymtab) <readin_p,
4613 get_compunit_symtab>: Likewise.
4614 (dwarf2_psymtab::expand_psymtab): Pass objfile argument.
4615
45940949
TT
46162020-05-27 Tom Tromey <tom@tromey.com>
4617
4618 * dwarf2/read.h (struct dwarf2_per_objfile) <obstack>: New
4619 member.
4620 * dwarf2/read.c (delete_file_name_entry): Fix comment.
4621 (create_cu_from_index_list)
4622 (create_signatured_type_table_from_index)
4623 (create_signatured_type_table_from_debug_names)
4624 (dw2_get_file_names_reader, dwarf2_initialize_objfile)
4625 (dwarf2_create_include_psymtab)
4626 (create_debug_type_hash_table, add_type_unit)
4627 (create_type_unit_group, read_comp_units_from_section)
4628 (dwarf2_compute_name, create_cus_hash_table)
4629 (create_dwp_hash_table, create_dwo_unit_in_dwp_v1)
4630 (create_dwo_unit_in_dwp_v2, open_and_init_dwp_file): Use new
4631 obstack.
4632 (dw2_get_real_path): Likewise. Change argument to
4633 dwarf2_per_objfile.
4634
f8c6d152
LM
46352020-05-27 Luis Machado <luis.machado@linaro.org>
4636
4637 PR tdep/26000
4638 * arm-tdep.c (thumb_analyze_prologue): Fix instruction matching
4639 for ldrd (immediate).
4640
e98d2e6d
PW
46412020-05-26 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4642
4643 * command.h: Add comment giving the name of class_tui.
4644 * cli/cli-cmds.c (_initialize_cli_cmds): If TUI defined,
4645 create the fake command for the help for class_tui.
4646
53a47a3e
TT
46472020-05-26 Tom Tromey <tromey@adacore.com>
4648
4649 * ada-lang.c (ada_print_array_index): Change type. Call val_atr.
4650 (ada_value_ptr_subscript): Don't call pos_atr on the lower bound.
4651 (val_atr): New function.
4652 (value_val_atr): Use it.
4653 * ada-valprint.c (print_optional_low_bound): Change low bound
4654 handling for enums.
4655 (val_print_packed_array_elements): Don't call discrete_position.
4656 * gdbtypes.c (get_discrete_bounds) <TYPE_CODE_RANGE>: Call
4657 discrete_position for enum types.
4658 * language.c (default_print_array_index): Change type.
4659 * language.h (struct language_defn) <la_print_array_index>: Add
4660 index_type parameter, change type of index_value.
4661 (LA_PRINT_ARRAY_INDEX): Add index_type parameter.
4662 (default_print_array_index): Update.
4663 * valprint.c (maybe_print_array_index): Don't call
4664 value_from_longest. Update.
4665 (value_print_array_elements): Don't call discrete_position.
4666
0bc2354b
TT
46672020-05-26 Tom Tromey <tromey@adacore.com>
4668
4669 * ada-lang.c (value_val_atr): Handle TYPE_CODE_RANGE.
4670 * gdbtypes.c (discrete_position): Handle TYPE_CODE_RANGE.
4671
1218a4bf
CDA
46722020-05-25 Cristiano De Alti <cristiano_dealti@hotmail.com>
4673
4674 PR gdb/13519
4675 * avr-tdep.c (avr_integer_to_address): Return data or code
4676 address accordingly to the second 'type' argument of the
4677 function.
4678
92651b1d
MW
46792020-05-25 Michael Weghorn <m.weghorn@posteo.de>
4680
4681 * infcmd.c, inferior.h: (construct_inferior_arguments):
4682 Moved function from here to gdbsupport/common-inferior.{h,cc}
4683
0a4f5f8c
TT
46842020-05-23 Tom Tromey <tom@tromey.com>
4685
4686 Revert commit eca1f90c:
4687 * NEWS: Remove entry for completion styling.
4688 * completer.c (_rl_completion_prefix_display_length): Move
4689 declaration later.
4690 (gdb_fnprint): Revert.
4691 (gdb_display_match_list_1): Likewise.
4692 * cli/cli-style.c (completion_prefix_style)
4693 (completion_difference_style, completion_suffix_style): Remove.
4694 (_initialize_cli_style): Revert.
4695 * cli/cli-style.h (completion_prefix_style)
4696 (completion_difference_style, completion_suffix_style): Don't
4697 declare.
4698
e08bd6c5
PA
46992020-05-24 Pedro Alves <palves@redhat.com>
4700
4701 * symtab.c (completion_list_add_name): Return boolean indication
4702 of whether the symbol matched.
4703 (completion_list_add_symbol): Don't try to remove C++ aliases if
4704 the symbol didn't match in the first place.
4705 * symtab.h (completion_list_add_name): Return bool.
4706
ceacbf6e
SM
47072020-05-23 Simon Marchi <simon.marchi@polymtl.ca>
4708
4709 * gdbtypes.h (TYPE_FIELD): Remove. Replace all uses with
4710 type::field.
4711
26f16254
JB
47122020-05-23 Joel Brobecker <brobecker@adacore.com>
4713
4714 GDB 9.2 released.
4715
eca1f90c
TT
47162020-05-23 Tom Tromey <tom@tromey.com>
4717
4718 * NEWS: Add entry for completion styling.
4719 * completer.c (_rl_completion_prefix_display_length): Move
4720 declaration earlier.
4721 (gdb_fnprint): Use completion_style.
4722 (gdb_display_match_list_1): Likewise.
4723 * cli/cli-style.c (completion_prefix_style)
4724 (completion_difference_style, completion_suffix_style): New
4725 globals.
4726 (_initialize_cli_style): Register new globals.
4727 * cli/cli-style.h (completion_prefix_style)
4728 (completion_difference_style, completion_suffix_style): Declare.
4729
51e2cfa2
PA
47302020-05-23 Pedro Alves <palves@redhat.com>
4731
4732 * utils.c: Include "gdbsupport/gdb-safe-ctype.h".
4733 (parse_escape): Use ISDIGIT instead of isdigit.
4734 (puts_debug): Use gdb_isprint instead of isprint.
4735 (fprintf_symbol_filtered): Use ISALNUM instead of isalnum.
4736 (cp_skip_operator_token, skip_ws, strncmp_iw_with_mode): Use
4737 ISSPACE instead of isspace.
4738 (strncmp_iw_with_mode): Use TOLOWER instead of tolower and ISSPACE
4739 instead of isspace.
4740 (strcmp_iw_ordered): Use ISSPACE instead of isspace.
4741 (string_to_core_addr): Use TOLOWER instead of tolower, ISXDIGIT
4742 instead of isxdigit and ISDIGIT instead of isdigit.
4743
80fc5e77
SM
47442020-05-22 Simon Marchi <simon.marchi@efficios.com>
4745
4746 * gdbtypes.h (struct type) <field>: New method.
4747 (TYPE_FIELDS): Remove, replace all uses with either type::fields
4748 or type::field.
4749
3cabb6b0
SM
47502020-05-22 Simon Marchi <simon.marchi@efficios.com>
4751
4752 * gdbtypes.h (struct type) <fields, set_fields>: New methods.
4753 (TYPE_FIELDS): Use type::fields. Change all call sites that
4754 modify the propery to use type::set_fields instead.
4755
1f704f76
SM
47562020-05-22 Simon Marchi <simon.marchi@efficios.com>
4757
4758 * gdbtypes.h (TYPE_NFIELDS): Remove. Change all cal sites to use
4759 type::num_fields instead.
4760
5e33d5f4
SM
47612020-05-22 Simon Marchi <simon.marchi@efficios.com>
4762
4763 * gdbtypes.h (struct type) <num_fields, set_num_fields>: New
4764 methods.
4765 (TYPE_NFIELDS): Use type::num_fields. Change all call sites
4766 that modify the number of fields to use type::set_num_fields
4767 instead.
4768
9392ebb3
TT
47692020-05-22 Tom Tromey <tromey@adacore.com>
4770
4771 * compile/compile-object-load.h (munmap_list_free): Don't
4772 declare.
4773
7c13f4e8
AB
47742020-05-22 Andrew Burgess <andrew.burgess@embecosm.com>
4775
4776 * annotate.c (annotate_source_line): Update return type, add call
4777 to update current symtab and line.
4778 * annotate.h (annotate_source_line): Update return type, and
4779 extend header comment.
4780 * source.c (info_line_command): Check annotation_level before
4781 calling annotate_source_line.
4782 * stack.c (print_frame_info): If calling annotate_source_line
4783 returns true, then don't print any other source line information.
4784
aa370940
SM
47852020-05-21 Simon Marchi <simon.marchi@efficios.com>
4786
4787 * lm32-tdep.c (lm32_register_reggroup_p): Fix condition.
4788
84d53fa9
SM
47892020-05-21 Simon Marchi <simon.marchi@efficios.com>
4790
4791 * coffread.c (patch_type): Remove NULL check before xfree.
4792 * corefile.c (set_gnutarget): Likewise.
4793 * cp-abi.c (set_cp_abi_as_auto_default): Likewise.
4794 * exec.c (build_section_table): Likewise.
4795 * remote.c (remote_target::pass_signals): Likewise.
4796 * utils.c (n_spaces): Likewise.
4797 * cli/cli-script.c (document_command): Likewise.
4798 * i386-windows-tdep.c (core_process_module_section): Likewise.
4799 * linux-fork.c (struct fork_info) <~fork_info>: Likewise.
4800
9d428aae
SM
48012020-05-20 Simon Marchi <simon.marchi@efficios.com>
4802
4803 * symfile.c (reread_symbols): Clear objfile's section_offsets
4804 vector and section indices, re-compute them by calling
4805 sym_offsets.
4806
250106a7
TT
48072020-05-20 Tom Tromey <tromey@adacore.com>
4808
4809 * ada-lang.c (bound_name, MAX_ADA_DIMENS): Remove.
ec16513e 4810 (desc_one_bound, desc_index_type): Compute field name.
250106a7 4811
9a0bacfb
TV
48122020-05-20 Tom de Vries <tdevries@suse.de>
4813
4814 PR symtab/25833
4815 * dwarf2/read.c (dw2_map_matching_symbols): Handle .gdb_index.
4816
7b958a48
AM
48172020-05-20 Alan Modra <amodra@gmail.com>
4818
4819 PR 25993
4820 * solib-darwin.c (darwin_bfd_open): Don't strdup pathname for
4821 bfd_set_filename.
4822 * solib-aix.c (solib_aix_bfd_open): Use std::string for name
4823 passed to bfd_set_filename.
4824 * symfile-mem.c (add_vsyscall_page): Likewise for string
4825 passed to symbol_file_add_from_memory.
4826 (symbol_file_add_from_memory): Make name param a const char* and
4827 don't strdup.
4828
c7e97679
AM
48292020-05-20 Alan Modra <amodra@gmail.com>
4830
4831 * coff-pe-read.c (read_pe_exported_syms): Use bfd_get_filename
4832 rather than accessing bfd->filename directly.
4833 * dtrace-probe.c (dtrace_static_probe_ops::get_probes): Likewise,
4834 and use bfd_section_name.
4835 * dwarf2/frame.c (decode_frame_entry): Likewise.
4836 * exec.c (exec_set_section_address): Likewise.
4837 * solib-aix.c (solib_aix_bfd_open): Likewise.
4838 * stap-probe.c (get_stap_base_address): Likewise.
4839 * symfile.c (reread_symbols): Likewise.
4840
563c591b
TT
48412020-05-19 Tom Tromey <tromey@adacore.com>
4842
4843 * sparc64-tdep.c (adi_tag_fd): Update call to target_fileio_open.
4844
f408d82c
SM
48452020-05-19 Simon Marchi <simon.marchi@efficios.com>
4846
4847 * dwarf2/read.c (quirk_rust_enum): Allocate enough fields.
4848
98c59b52
PA
48492020-05-19 Pedro Alves <palves@redhat.com>
4850
4851 * NEWS (set exec-file-mismatch): Adjust entry.
4852 * exec.c: Include "build-id.h".
4853 (validate_exec_file): Try to match build IDs instead of filenames.
4854 * gdb_bfd.c (struct gdb_bfd_open_closure): New.
4855 (gdb_bfd_iovec_fileio_open): Adjust to use gdb_bfd_open_closure
4856 and pass down 'warn_if_slow'.
4857 (gdb_bfd_open): Add 'warn_if_slow' parameter. Use
4858 gdb_bfd_open_closure to pass it down.
4859 * gdb_bfd.h (gdb_bfd_open): Add 'warn_if_slow' parameter.
4860
4111f652
PA
48612020-05-19 Pedro Alves <palves@redhat.com>
4862
4863 * gdb_bfd.c (gdb_bfd_iovec_fileio_open): Adjust.
4864 * target.c (target_fileio_open_1): Rename to target_fileio_open
4865 and make extern. Use bool.
4866 (target_fileio_open, target_fileio_open_warn_if_slow): Delete.
4867 (target_fileio_read_alloc_1): Adjust.
4868 * target.h (target_fileio_open): Add 'warn_if_slow' parameter.
4869 (target_fileio_open_warn_if_slow): Delete declaration.
4870
ad80db5b
PA
48712020-05-19 Pedro Alves <palves@redhat.com>
4872
4873 * gdb_bfd.h: (gdb_bfd_open): Default to 'fd' parameter to -1.
4874 Adjust all callers.
4875
1d6ce4d3
YS
48762020-05-19 Yoshinori Sato <ysato@users.sourceforge.jp>
4877
4878 * h8300-tdep.c (h8300_is_argument_spill): Change how we check
4879 whether disp is negative.
4880
9005fbbb
SM
48812020-05-19 Simon Marchi <simon.marchi@efficios.com>
4882
4883 * symfile.h (struct symfile_segment_data)
4884 <~symfile_segment_data>: Remove.
4885 <segment_info>: Change to std::vector.
4886 * symfile.c (default_symfile_segments): Update.
4887 * elfread.c (elf_symfile_segments): Update.
4888
68b888ff
SM
48892020-05-19 Simon Marchi <simon.marchi@efficios.com>
4890
4891 * symfile.h (struct symfile_segment_data) <struct segment>: New.
4892 <segments>: New.
4893 <segment_bases, segment_sizes>: Remove.
4894 * symfile.c (default_symfile_segments): Update.
4895 * elfread.c (elf_symfile_segments): Update.
4896 * remote.c (remote_target::get_offsets): Update.
4897 * solib-target.c (solib_target_relocate_section_addresses):
4898 Update.
4899
62982abd
SM
49002020-05-19 Simon Marchi <simon.marchi@efficios.com>
4901
4902 * symfile.h (struct symfile_segment_data): Initialize fields.
4903 <~symfile_segment_data>: Add.
4904 (symfile_segment_data_up): New.
4905 (struct sym_fns) <sym_segments>: Return a
4906 symfile_segment_data_up.
4907 (default_symfile_segments): Return a symfile_segment_data_up.
4908 (free_symfile_segment_data): Remove.
4909 (get_symfile_segment_data): Return a symfile_segment_data_up.
4910 * symfile.c (default_symfile_segments): Likewise.
4911 (get_symfile_segment_data): Likewise.
4912 (free_symfile_segment_data): Remove.
4913 (symfile_find_segment_sections): Update.
4914 * elfread.c (elf_symfile_segments): Return a
4915 symfile_segment_data_up.
4916 * remote.c (remote_target::get_offsets): Update.
4917 * solib-target.c (solib_target_relocate_section_addresses):
4918 Update.
4919 * symfile-debug.c (debug_sym_segments): Return a
4920 symfile_segment_data_up.
4921
7f204339
RO
49222020-05-18 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
4923
e52a0f1b
RO
4924 PR build/25981
4925 * i386-sol2-nat.c [PR_MODEL_NATIVE != PR_MODEL_LP64] (regmap):
4926 Hardcode register numbers.
4927
7f204339
RO
4928 PR build/25981
4929 * procfs.c [(__i386__ || __x86_64__) && sun] (proc_get_LDT_entry,
4930 procfs_find_LDT_entry): Remove.
4931 * procfs.h [(__i386__ || __x86_64__) && sun] (struct ssd,
4932 procfs_find_LDT_entry): Remove.
4933 * sol-thread.c [(__i386__ || __x86_64__) && sun] (ps_lgetLDT):
4934 Remove.
4935
7f32a4d5
PA
49362020-05-17 Pedro Alves <palves@redhat.com>
4937 Andrew Burgess <andrew.burgess@embecosm.com>
4938 Keno Fischer <keno@juliacomputing.com>
4939
4940 PR gdb/25741
4941 * breakpoint.c (build_target_condition_list): Update comments.
4942 (build_target_command_list): Update comments and skip matching
4943 locations.
4944 (insert_bp_location): Move "set breakpoint auto-hw on" handling to
4945 a separate function. Simplify "set breakpoint auto-hw off"
4946 handling.
4947 (insert_breakpoints): Update comment.
4948 (tracepoint_locations_match): New parameter. For breakpoints,
4949 compare location types too, if the caller wants to.
4950 (handle_automatic_hardware_breakpoints): New functions.
4951 (bp_location_is_less_than): Also sort by location type and
4952 hardware breakpoint length.
4953 (update_global_location_list): Handle "set breakpoint auto-hw on"
4954 here.
4955 (update_breakpoint_locations): Ask breakpoint_locations_match to
4956 ignore location types.
4957
7d93a1e0
SM
49582020-05-16 Simon Marchi <simon.marchi@efficios.com>
4959
4960 * gdbtypes.h (TYPE_NAME): Remove. Change all cal sites to use
4961 type::name instead.
4962
d0e39ea2
SM
49632020-05-16 Simon Marchi <simon.marchi@efficios.com>
4964
4965 * gdbtypes.h (struct type) <name, set_name>: New methods.
4966 (TYPE_CODE): Use type::name. Change all call sites used to set
4967 the name to use type::set_name instead.
4968
2dab0c7b
TT
49692020-05-16 Tom Tromey <tom@tromey.com>
4970
4971 * top.c (quit_force): Update.
4972 * infrun.c (handle_no_resumed): Update.
4973 * top.h (all_uis): New function.
4974 (ALL_UIS): Remove.
4975
59f7bd8d
SM
49762020-05-16 Simon Marchi <simon.marchi@efficios.com>
4977
4978 * mips-linux-tdep.c (mips_linux_in_dynsym_stub): Fix condition.
4979
9bf058f0
PA
49802020-05-16 Pedro Alves <palves@redhat.com>
4981
4982 * ia64-linux-nat.c
4983 (ia64_linux_nat_target) <enable_watchpoints_in_psr(ptid_t)>:
4984 Declare method.
4985 (enable_watchpoints_in_psr): Now a method of ia64_linux_nat_target.
4986
8f86ae1a
SM
49872020-05-15 Simon Marchi <simon.marchi@efficios.com>
4988
4989 * sparc64-tdep.c (adi_stat_t): Remove typedef (leaving struct).
4990 (sparc64_adi_info): Likewise.
4991
d6bc0792
TT
49922020-05-15 Tom Tromey <tom@tromey.com>
4993
4994 * symtab.c (lookup_language_this, lookup_symbol_aux): Use
4995 block_objfile.
4996 (lookup_objfile_from_block): Remove.
4997 (lookup_symbol_in_block, lookup_symbol_in_static_block)
4998 (lookup_global_symbol): Use block_objfile.
4999 * symtab.h (lookup_objfile_from_block): Don't declare.
5000 * printcmd.c (clear_dangling_display_expressions): Use
5001 block_objfile.
5002 * parse.c (operator_check_standard): Use block_objfile.
5003
8c14c3a3
TT
50042020-05-15 Tom Tromey <tom@tromey.com>
5005
5006 * language.c (language_alloc_type_symbol): Set
5007 SYMBOL_SECTION.
5008 * symtab.c (initialize_objfile_symbol): Remove.
5009 (allocate_symbol): Remove.
5010 (allocate_template_symbol): Remove.
5011 * dwarf2/read.c (fixup_go_packaging): Use "new".
5012 (new_symbol): Use "new".
5013 (read_variable): Don't call initialize_objfile_symbol. Use
5014 "new".
5015 (read_func_scope): Use "new".
5016 * xcoffread.c (process_xcoff_symbol): Don't call
5017 initialize_objfile_symbol.
5018 (SYMBOL_DUP): Remove.
5019 * coffread.c (process_coff_symbol, coff_read_enum_type): Use
5020 "new".
5021 * symtab.h (allocate_symbol, initialize_objfile_symbol)
5022 (allocate_template_symbol): Don't declare.
5023 (struct symbol): Add copy constructor. Change defaults.
5024 * jit.c (finalize_symtab): Use "new".
5025 * ctfread.c (ctf_add_enum_member_cb, new_symbol, ctf_add_var_cb):
5026 Use "new".
5027 * stabsread.c (patch_block_stabs, define_symbol, read_enum_type)
5028 (common_block_end): Use "new".
5029 * mdebugread.c (parse_symbol): Use "new".
5030 (new_symbol): Likewise.
5031
5b4a1a8d
PW
50322020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5033
5034 * NEWS: Mention changes to help and apropos.
5035
57b4f16e
PW
50362020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5037
5038 * command.h (enum command_class): Improve comments, document
5039 that class_alias is for user-defined aliases, give the class
5040 name for each class, remove unused class_xdb.
5041 * cli/cli-decode.c (add_com_alias): Document THECLASS intended usage.
5042 * breakpoint.c (_initialize_breakpoint): Replace class_alias
5043 by a precise class.
5044 * infcmd.c (_initialize_infcmd): Likewise.
5045 * reverse.c (_initialize_reverse): Likewise.
5046 * stack.c (_initialize_stack): Likewise.
5047 * symfile.c (_initialize_symfile): Likewise.
5048 * tracepoint.c (_initialize_tracepoint): Likewise.
5049
7c05caf7
PW
50502020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5051
5052 * cli/cli-decode.c (apropos_cmd): Produce output for aliases
5053 when their aliased command is traversed.
5054 (help_cmd): Add fput_command_names_styled call to
5055 output command name and aliases when command has an alias.
5056
3b3aaacb
PW
50572020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5058
5059 * cli/cli-decode.h (help_cmd_list): Remove declaration.
5060 * cli/cli-decode.c (help_cmd_list): Declare as static,
5061 remove prefix argument, use bool for recurse arg, rework to show the aliases of
5062 a command together with the command.
5063 (fput_command_name_styled, fput_command_names_styled): New functions.
5064 (print_help_for_command): Remove prefix arg, use bool for recurse arg, use
5065 fput_command_name_styled.
5066 (help_list, help_all): Update callers to remove prefix arg and use bool recurse.
5067 * cli/cli-cmds.c (_initialize_cli_cmds): Update alias_command doc.
5068
7aa1b46f
PW
50692020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5070
5071 * cli/cli-setshow.h (cmd_show_list): Remove prefix argument.
5072 * cli/cli-decode.c (do_show_prefix_cmd): Likewise.
5073 * command.h (cmd_show_list): Likewise.
5074 * dwarf2/index-cache.c (show_index_cache_command): Likewise.
5075 * cli/cli-setshow.c (cmd_show_list): Use the prefix to produce the output. Skip aliases.
5076
89bcba74
PW
50772020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5078
5079 * unittests/command-def-selftests.c (traverse_command_structure):
5080 Verify all commands of a list have the same prefix command and
5081 that only the top cmdlist commands have a null prefix.
5082
3f4d92eb
PW
50832020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5084
5085 * cli/cli-decode.c (lookup_cmd_for_prefix): Return the aliased command
5086 as prefix, not one of its aliases.
5087 (set_cmd_prefix): Remove.
5088 (do_add_cmd): Centralize the setting of the prefix of a command, when
5089 command is defined after its full chain of prefix commands.
5090 (add_alias_cmd): Remove call to set_cmd_prefix, as do_add_cmd does it.
5091 (add_setshow_cmd_full): Likewise.
5092 (update_prefix_field_of_prefixed_commands): New function.
5093 (add_prefix_cmd): Replace non working call to set_cmd_prefix by
5094 update_prefix_field_of_prefixed_commands.
5095 * gdb/remote-fileio.c (initialize_remote_fileio): Use the real
5096 addresses of remote_set_cmdlist and remote_show_cmdlist given
5097 as argument, not the address of an argument.
5098 * gdb/remote-fileio.h (initialize_remote_fileio): Likewise.
5099 * gdb/remote.c (_initialize_remote): Likewise.
5100
0605465f
PW
51012020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5102
5103 * cli/cli-cmds.c (alias_command): Check for an existing alias
5104 using lookup_cmd_composition, as valid_command_p is too strict
5105 and forbids aliases that are the prefix of an existing alias
5106 or command.
5107 * cli/cli-decode.c (lookup_cmd_composition): Ensure a prefix
5108 command is properly recognised as a valid command.
5109
58e6ac70
PW
51102020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5111
5112 * unittests/help-doc-selftests.c: Rename to
5113 unittests/command-def-selftests.c
5114 * unittests/command-def-selftests.c (help_doc_tests): Update some
5115 comments.
5116 (command_structure_tests, traverse_command_structure): New namespace
5117 and function.
5118 (command_structure_invariants_tests): New function.
5119 (_initialize_command_def_selftests) Renamed from
5120 _initialize_help_doc_selftests, register command_structure_invariants
5121 selftest.
5122
a7b9ceb8
PW
51232020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5124
5125 * cli/cli-cmds.c (_initialize_cli_cmds): Define 'info set' as
5126 an alias of 'show'.
5127
b2188a06
JB
51282020-05-15 Joel Brobecker <brobecker@adacore.com>
5129
5130 * ada-lang.h: (ada_is_gnat_encoded_fixed_point_type): Renames
5131 ada_is_fixed_point_type. Update all callers.
5132 (gnat_encoded_fixed_point_delta): Renames ada_delta. Update
5133 all callers.
5134 * ada-lang.c (gnat_encoded_fixed_type_info): Renames fixed_type_info.
5135 Update all callers.
5136 * ada-typeprint.c (print_gnat_encoded_fixed_point_type): Renames
5137 print_fixed_point_type. Update all callers.
5138 * ada-valprint.c (ada_value_print_num): Replace call to
5139 ada_is_fixed_point_type by ada_is_gnat_encoded_fixed_point_type.
5140
a51951c2
KB
51412020-05-14 Kevin Buettner <kevinb@redhat.com>
5142
5143 * nat/linux-btrace.c (btrace_this_cpu): Add check for AMD
5144 processors.
5145 (cpu_supports_bts): Add CV_AMD case.
5146
29d6859f
LM
51472020-05-14 Laurent Morichetti <Laurent.Morichetti@amd.com>
5148 Simon Marchi <simon.marchi@efficios.com>
5149
5150 * infrun.c (stop_all_threads): Collect multiple wait events at
5151 each pass.
5152
78134374
SM
51532020-05-14 Simon Marchi <simon.marchi@efficios.com>
5154
5155 * gdbtypes.h (TYPE_CODE): Remove. Change all call sites to use
5156 type::code instead.
5157
67607e24
SM
51582020-05-14 Simon Marchi <simon.marchi@efficios.com>
5159
5160 * gdbtypes.h (struct type) <code, set_code>: New methods.
5161 (TYPE_CODE): Use type::code. Change all call sites used to set
5162 the code to use type::set_code instead.
5163
a05575d3
TBA
51642020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
5165 Tom de Vries <tdevries@suse.de>
5166 Pedro Alves <palves@redhat.com>
5167
5168 PR threads/25478
5169 * infrun.c (stop_all_threads): Do NOT ignore
5170 TARGET_WAITKIND_NO_RESUMED, TARGET_WAITKIND_THREAD_EXITED,
5171 TARGET_WAITKIND_EXITED, TARGET_WAITKIND_SIGNALLED wait statuses
5172 received.
5173 (handle_no_resumed): Remove code handling a live inferior with no
5174 threads.
5175 * remote.c (has_single_non_exited_thread): New.
5176 (remote_target::update_thread_list): Do not delete a thread if is
5177 the last thread of the process.
5178 * thread.c (thread_select): Call delete_exited_threads instead of
5179 prune_threads.
5180
6ad82919
TBA
51812020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
5182
5183 * infrun.c (stop_all_threads): Enable/disable thread events of all
5184 targets. Move a debug message denoting the end of the function
5185 into the SCOPED_EXIT block.
5186
d890404b
TBA
51872020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
5188
5189 * process-stratum-target.h: Include <set>.
5190 (all_non_exited_process_targets, switch_to_target_no_thread): New
5191 function declarations.
5192 * process-stratum-target.c (all_non_exited_process_targets)
5193 (switch_to_target_no_thread): New function implementations.
5194
293b3ebc
TBA
51952020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
5196
5197 * infrun.c (handle_inferior_event): Extract out a piece of code
5198 into...
5199 (mark_non_executing_threads): ...this new function.
5200
7ca9b62a
TBA
52012020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
5202
5203 * infrun.c (resume_1): Move a 'regcache_read_pc' call down to first
5204 use.
5205
fc75c28b
TBA
52062020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
5207
5208 * regcache.c (regcache_read_pc_protected): New function
5209 implementation that returns 0 if the PC cannot read via
5210 'regcache_read_pc'.
5211 * infrun.c (proceed): Call 'regcache_read_pc_protected'
5212 instead of 'regcache_read_pc'.
5213 (keep_going_pass_signal): Ditto.
5214
a89febbd
TT
52152020-05-13 Tom Tromey <tromey@adacore.com>
5216
5217 * ada-lang.c (align_value): Remove.
5218 (ada_template_to_fixed_record_type_1): Use align_up.
5219
f7e23710
TBA
52202020-05-13 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
5221
5222 * async-event.c: Update the copyright year.
5223 * async-event.h: Update the copyright year.
5224
02ff80c2
SM
52252020-05-12 Simon Marchi <simon.marchi@efficios.com>
5226
5227 * objfiles.h (is_addr_in_objfile,
5228 shared_objfile_contains_address_p): Return bool.
5229 * objfile.c (is_addr_in_objfile,
5230 shared_objfile_contains_address_p): Return bool.
5231
4fd6c7e8
TT
52322020-05-11 Tom Tromey <tromey@adacore.com>
5233
5234 * cli/cli-cmds.c (info_command): Restore.
5235 (_initialize_cli_cmds): Use add_prefix_command for "info".
5236 * gdb-gdb.gdb.in: Restore breakpoint on info_command.
5237
5eb68a39
TT
52382020-05-11 Tom Tromey <tromey@adacore.com>
5239
5240 * ada-lang.c (ada_value_primitive_field): Now public.
5241 * ada-lang.h (ada_value_primitive_field): Declare.
5242 * ada-valprint.c (print_field_values): Use
5243 ada_value_primitive_field for wrapper fields.
5244
7666722f
TV
52452020-05-11 Tom de Vries <tdevries@suse.de>
5246
5247 * dwarf2/index-write.c (debug_names::psymbol_tag): Handle
5248 MODULE_DOMAIN.
5249
3ee6bb11
TV
52502020-05-11 Tom de Vries <tdevries@suse.de>
5251
5252 PR symtab/25941
5253 * dwarf2/read.c (create_cus_from_debug_names_list): Initialize CUs
5254 with length 0, if not gdb-produced.
5255 (cutu_reader::cutu_reader): Set CU length to actual length if 0.
5256
43434996
TV
52572020-05-09 Tom de Vries <tdevries@suse.de>
5258
5259 PR gdb/25955
5260 * break-catch-throw.c (check_status_exception_catchpoint): Fix name
5261 calculation.
5262
2f78cffc
TT
52632020-05-09 Tom Tromey <tom@tromey.com>
5264
5265 * top.c (server_command): Now bool.
5266 * top.h (server_command): Now bool.
5267
4f7bc5ed
TT
52682020-05-08 Tom Tromey <tromey@adacore.com>
5269
5270 * dwarf2/read.c (read_lexical_block_scope): Don't process a DIE
5271 already being processed.
5272
8be4b118
TT
52732020-05-08 Tom Tromey <tom@tromey.com>
5274
5275 * printcmd.c (struct display) <next>: Remove.
5276 <display>: New constructor.
5277 <exp_string>: Now a std::string.
5278 <enabled_p>: Now a bool.
5279 (display_number): Move definition earlier.
5280 (displays): Rename from display_chain. Now a std::vector.
5281 (ALL_DISPLAYS, ALL_DISPLAYS_SAFE): Remove.
5282 (display_command): Update.
5283 (do_one_display, disable_display)
5284 (enable_disable_display_command, do_enable_disable_display):
5285 Update.
5286 (free_display): Remove.
5287 (clear_displays): Rewrite.
5288 (delete_display): Update.
5289 (map_display_numbers): Use function_view. Remove "data"
5290 parameter. Update.
5291 (do_delete_display): Remove.
5292 (undisplay_command): Update.
5293 (do_one_display, do_displays, disable_display)
5294 (info_display_command): Update.
5295 (do_enable_disable_display): Remove.
5296 (enable_disable_display_command)
5297 (clear_dangling_display_expressions): Update.
5298
94c93c35
TT
52992020-05-08 Tom Tromey <tom@tromey.com>
5300
5301 * symtab.c (set_symbol_cache_size)
5302 (maintenance_print_symbol_cache, maintenance_flush_symbol_cache)
5303 (maintenance_print_symbol_cache_statistics): Update.
5304 * symmisc.c (print_symbol_bcache_statistics)
5305 (print_objfile_statistics, maintenance_print_objfiles)
5306 (maintenance_info_symtabs, maintenance_check_symtabs)
5307 (maintenance_expand_symtabs, maintenance_info_line_tables):
5308 Update.
5309 * symfile-debug.c (set_debug_symfile): Update.
5310 * source.c (forget_cached_source_info): Update.
5311 * python/python.c (gdbpy_progspaces): Update.
5312 * psymtab.c (maintenance_info_psymtabs): Update.
5313 * probe.c (parse_probes): Update.
5314 * linespec.c (iterate_over_all_matching_symtabs)
5315 (collect_symtabs_from_filename, search_minsyms_for_name): Update.
5316 * guile/scm-progspace.c (gdbscm_progspaces): Update.
5317 * exec.c (exec_target::close): Update.
5318 * ada-tasks.c (ada_tasks_new_objfile_observer): Update.
5319 * breakpoint.c (print_one_breakpoint_location)
5320 (create_longjmp_master_breakpoint)
5321 (create_std_terminate_master_breakpoint): Update.
5322 * progspace.c (program_spaces): Now a std::vector.
5323 (maybe_new_address_space): Update.
5324 (add_program_space): Remove.
5325 (program_space::program_space): Update.
5326 (remove_program_space): Update.
5327 (number_of_program_spaces): Remove.
5328 (print_program_space, update_address_spaces): Update.
5329 * progspace.h (program_spaces): Change type.
5330 (ALL_PSPACES): Remove.
5331 (number_of_program_spaces): Don't declare.
5332 (struct program_space) <next>: Remove.
5333
a1fd1ac9
TT
53342020-05-08 Tom Tromey <tom@tromey.com>
5335
5336 * mi/mi-cmd-file.c (mi_cmd_file_list_shared_libraries): Update.
5337 * solib-svr4.c (svr4_fetch_objfile_link_map): Update.
5338 (enable_break): Update.
5339 * solib-frv.c (frv_fdpic_find_global_pointer): Update.
5340 (frv_fdpic_find_canonical_descriptor): Update.
5341 (frv_fetch_objfile_link_map): Update.
5342 * progspace.c (program_space::free_all_objfiles): Update.
5343 (program_space::solibs): New method.
5344 * progspace.h (struct program_space) <solibs>: New method.
5345 * solist.h (master_so_list): Don't declare.
5346 (ALL_SO_LIBS): Remove.
5347 * solib.h (so_list_head): Remove.
5348 (update_solib_list): Update comment.
5349 * solib.c (master_so_list): Remove.
5350 (solib_used, update_solib_list, solib_add)
5351 (info_sharedlibrary_command, clear_solib)
5352 (reload_shared_libraries_1, remove_user_added_objfile): Update.
5353
38eae084
TT
53542020-05-08 Tom Tromey <tom@tromey.com>
5355
5356 * extension.c (extension_languages): Now a std::array.
5357 (ALL_EXTENSION_LANGUAGES): Remove.
5358 (get_ext_lang_defn, get_ext_lang_of_file)
5359 (eval_ext_lang_from_control_command): Update.
5360 (finish_ext_lang_initialization)
5361 (auto_load_ext_lang_scripts_for_objfile)
5362 (ext_lang_type_printers::ext_lang_type_printers)
5363 (apply_ext_lang_type_printers)
5364 (ext_lang_type_printers::~ext_lang_type_printers)
5365 (apply_ext_lang_val_pretty_printer, apply_ext_lang_frame_filter)
5366 (preserve_ext_lang_values, get_breakpoint_cond_ext_lang)
5367 (breakpoint_ext_lang_cond_says_stop, check_quit_flag)
5368 (get_matching_xmethod_workers, ext_lang_colorize)
5369 (ext_lang_before_prompt): Update.
5370 (ALL_ENABLED_EXTENSION_LANGUAGES): Remove.
5371
596dc4ad
TT
53722020-05-08 Tom Tromey <tom@tromey.com>
5373
5374 * symtab.h (class demangle_result_storage) <set_malloc_ptr>: New
5375 overload.
5376 <swap_string, m_string>: Remove.
5377 * symtab.c (demangle_for_lookup, completion_list_add_symbol):
5378 Update.
5379 * stabsread.c (define_symbol, read_type): Update.
5380 * linespec.c (find_linespec_symbols): Update.
5381 * gnu-v3-abi.c (gnuv3_get_typeid): Update.
5382 * dwarf2/read.c (dwarf2_canonicalize_name): Update.
5383 * dbxread.c (read_dbx_symtab): Update.
5384 * cp-support.h (cp_canonicalize_string_full)
5385 (cp_canonicalize_string, cp_canonicalize_string_no_typedefs):
5386 Return unique_xmalloc_ptr.
5387 * cp-support.c (inspect_type): Update.
5388 (cp_canonicalize_string_full): Return unique_xmalloc_ptr.
5389 (cp_canonicalize_string_no_typedefs, cp_canonicalize_string):
5390 Likewise.
5391 * c-typeprint.c (print_name_maybe_canonical): Update.
5392 * break-catch-throw.c (check_status_exception_catchpoint):
5393 Update.
5394
bf4cb9be
TV
53952020-05-08 Tom de Vries <tdevries@suse.de>
5396
5397 * infrun.c (follow_fork): Copy current_line and current_symtab to
5398 child thread.
5399
a1b68f28
SM
54002020-05-07 Simon Marchi <simon.marchi@efficios.com>
5401
5402 * async-event.c (struct async_signal_handler, struct
5403 async_event_handler): Reformat, remove typedef.
5404
98d48915
SM
54052020-05-07 Simon Marchi <simon.marchi@efficios.com>
5406
5407 * gdbtypes.h (TYPE_DYN_PROP_LIST): Remove. Update all users
5408 access thistype->main_type->dyn_prop_list directly.
5409
7aa91313
SM
54102020-05-07 Simon Marchi <simon.marchi@efficios.com>
5411
5412 * gdbtypes.h (struct type) <remove_dyn_prop>: New method.
5413 (remove_dyn_prop): Remove. Update all users to use
5414 type::remove_dyn_prop.
5415 * gdbtypes.c (remove_dyn_prop): Rename to...
5416 (type::remove_dyn_prop): ... this.
5417
5c54719c
SM
54182020-05-07 Simon Marchi via Gdb-patches <gdb-patches@sourceware.org>
5419
5420 * gdbtypes.h (struct type) <add_dyn_prop>: New method.
5421 (add_dyn_prop): Remove. Update all users to use
5422 type::add_dyn_prop.
5423 * gdbtypes.c (add_dyn_prop): Rename to...
5424 (type::add_dyn_prop): ... this.
5425
24e99c6c
SM
54262020-05-07 Simon Marchi <simon.marchi@efficios.com>
5427
5428 * gdbtypes.h (struct type) <get_dyn_prop>: New method.
5429 (get_dyn_prop): Remove. Update all users to use
5430 type::dyn_prop.
5431 * gdbtypes.c (get_dyn_prop): Rename to...
5432 (type::dyn_prop): ... this.
5433
0d4bf016
SM
54342020-05-06 Simon Marchi <simon.marchi@efficios.com>
5435
5436 * gdbtypes.h (struct main_type) <flag_static>: Remove.
5437
ac4a4f1c
SM
54382020-05-06 Simon Marchi <simon.marchi@efficios.com>
5439
5440 * amd64-tdep.c (amd64_analyze_prologue): Check for `endbr64`
5441 instruction, skip it if it's there.
5442
a3bbacc1
SM
54432020-05-05 Simon Marchi <simon.marchi@efficios.com>
5444
5445 * gdbtypes.h (struct main_type) <flag_incomplete>: Remove.
5446
c3236f84
SM
54472020-05-04 Simon Marchi <simon.marchi@efficios.com>
5448
5449 * gdbtypes.h (TYPE_INCOMPLETE): Remove.
5450 * gdbtypes.c (recursive_dump_type): Remove use of
5451 TYPE_INCOMPLETE.
5452
3b6acaee
TT
54532020-05-03 Tom Tromey <tom@tromey.com>
5454
5455 * breakpoint.c (catch_command, tcatch_command): Remove.
5456 (_initialize_breakpoint): Use add_basic_prefix_cmd,
5457 add_show_prefix_cmd.
5458 (set_breakpoint_cmd, show_breakpoint_cmd): Remove
5459 * utils.c (set_internal_problem_cmd, show_internal_problem_cmd):
5460 Remove.
5461 (add_internal_problem_command): Use add_basic_prefix_cmd,
5462 add_show_prefix_cmd.
5463 * mips-tdep.c (set_mipsfpu_command): Remove.
5464 (_initialize_mips_tdep): Use add_basic_prefix_cmd.
5465 * dwarf2/index-cache.c (set_index_cache_command): Remove.
5466 (_initialize_index_cache): Use add_basic_prefix_cmd.
5467 * memattr.c (dummy_cmd): Remove.
5468 (_initialize_mem): Use add_basic_prefix_cmd, add_show_prefix_cmd.
5469 * tui/tui-win.c (set_tui_cmd, show_tui_cmd): Remove.
5470 (_initialize_tui_win): Use add_basic_prefix_cmd,
5471 add_show_prefix_cmd.
5472 * cli/cli-logging.c (set_logging_command): Remove.
5473 (_initialize_cli_logging): Use add_basic_prefix_cmd,
5474 add_show_prefix_cmd.
5475 (show_logging_command): Remove.
5476 * target.c (target_command): Remove.
5477 (add_target): Use add_basic_prefix_cmd.
5478
a51119cd
HD
54792020-05-02 Hannes Domani <ssbssa@yahoo.de>
5480
5481 * gdbtypes.h (enum dynamic_prop_node_kind): Fix typo.
5482
652fc23a 54832020-05-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6a6ea76a 5484
652fc23a
PW
5485 * gdb-gdb.gdb-in: Remove breakpoint on disappeared function
5486 info_command.
5487
117539e6
KR
54882020-04-30 Kamil Rytarowski <n54@gmx.com>
5489
5490 * nbsd-nat.c (nbsd_enable_proc_events)
5491 (nbsd_nat_target::post_startup_inferior): Add.
5492 (nbsd_nat_target::post_attach): Call `nbsd_enable_proc_events'.
5493 (nbsd_nat_target::update_thread_list): Rewrite.
5494 (nbsd_nat_target::wait): Handle "PTRACE_LWP_EXIT" and
5495 "PTRACE_LWP_CREATE".
5496 * nbsd-nat.h (nbsd_nat_target::post_startup_inferior): Add.
5497
102e38eb 54982020-04-30 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6a6ea76a 5499
102e38eb
PW
5500 * stack.c (_initialize_stack): Remove duplicated creation
5501 of "frame" command and "f" alias.
5502
ee9d1e5f
HD
55032020-04-30 Hannes Domani <ssbssa@yahoo.de>
5504
5505 PR gdb/18706
5506 * gdbtypes.c (check_typedef): Calculate size of array of
5507 stubbed type.
5508
627c7fb8
HD
55092020-04-30 Hannes Domani <ssbssa@yahoo.de>
5510
5511 PR gdb/15559
5512 * i386-tdep.c (i386_push_dummy_call): Call
5513 i386_thiscall_push_dummy_call.
5514 (i386_thiscall_push_dummy_call): New function.
5515 * i386-tdep.h (i386_thiscall_push_dummy_call): Declare.
5516 * i386-windows-tdep.c (i386_windows_push_dummy_call): New function.
5517 (i386_windows_init_abi): Call set_gdbarch_push_dummy_call.
5518
ffc2844e
SM
55192020-04-29 Simon Marchi <simon.marchi@efficios.com>
5520
5521 * gdbarch.sh (do_read): Add shellcheck disable directive for
5522 warning SC2162.
5523
1207375d
SM
55242020-04-29 Simon Marchi <simon.marchi@efficios.com>
5525
5526 * gdbarch.sh: Use ${foo:-} where shellcheck would report a
5527 "referenced but not assigned" warning.
5528
9fdb2916
SM
55292020-04-29 Simon Marchi <simon.marchi@efficios.com>
5530
5531 * gdbarch.sh: Remove code that sets fallbackdefault.
5532
759cea5e
SM
55332020-04-29 Simon Marchi <simon.marchi@efficios.com>
5534
5535 * gdbarch.sh: Use shell operators && and || instead of
5536 -a and -o.
5537
cb02ab24
SM
55382020-04-29 Simon Marchi <simon.marchi@efficios.com>
5539
5540 * gdbarch.sh: Use $(...) instead of `...`.
5541
a6fc5ffc
SM
55422020-04-29 Simon Marchi <simon.marchi@efficios.com>
5543
5544 * gdbarch.sh: Use double quotes around variables.
5545
8d113d13
SM
55462020-04-29 Simon Marchi <simon.marchi@efficios.com>
5547
5548 * gdbarch.sh: Use %s with printf, instead of variables in the
5549 format string.
5550
ed6acedd
TT
55512020-04-29 Tom Tromey <tromey@adacore.com>
5552
5553 PR ada/25875:
5554 * dwarf2/read.c (update_enumeration_type_from_children): Compute
5555 type fields here.
5556 (read_enumeration_type): Call
5557 update_enumeration_type_from_children later. Update comments.
5558 (process_enumeration_scope): Don't create type fields.
5559
b68b1b58
KR
55602020-04-29 Kamil Rytarowski <n54@gmx.com>
5561
5562 * nbsd-tdep.c: Include "xml-syscall.h".
5563 (nbsd_init_abi): Call `set_xml_syscall_file_name'.
5564
f94b2e03
KR
55652020-04-29 Kamil Rytarowski <n54@gmx.com>
5566
5567 * nbsd-nat.c: Include "sys/wait.h".
5568 (nbsd_resume, nbsd_nat_target::resume, nbsd_wait)
5569 (nbsd_nat_target::wait, nbsd_nat_target::insert_exec_catchpoint)
5570 (nbsd_nat_target::remove_exec_catchpoint)
5571 (nbsd_nat_target::set_syscall_catchpoint): Add.
5572 * nbsd-nat.h (nbsd_nat_target::resume, nbsd_nat_target::wait)
5573 (nbsd_nat_target::insert_exec_catchpoint)
5574 (nbsd_nat_target::remove_exec_catchpoint)
5575 (nbsd_nat_target::set_syscall_catchpoint): Add.
5576 * nbsd-tdep.c (nbsd_get_syscall_number): Add.
5577 (nbsd_init_abi): Call `set_gdbarch_get_syscall_number' and pass
5578 `nbsd_get_syscall_number'.
5579
fc49bc72
TT
55802020-04-29 Tom Tromey <tom@tromey.com>
5581
5582 * stack.c (print_block_frame_labels): Remove.
5583
d642b692
HD
55842020-04-29 Hannes Domani <ssbssa@yahoo.de>
5585
5586 PR gdb/17320
5587 * ada-valprint.c (val_print_packed_array_elements): Move array
5588 end bracket to new line.
5589 (ada_val_print_string): Remove extra spaces before first array
5590 element.
5591 * c-valprint.c (c_value_print_array): Likewise.
5592 * m2-valprint.c (m2_print_array_contents): Likewise.
5593 (m2_value_print_inner): Likewise.
5594 * p-valprint.c (pascal_value_print_inner): Likewise.
5595 * valprint.c (generic_val_print_array): Likewise.
5596 (value_print_array_elements): Move first array element and array
5597 end bracket to new line.
5598
ea90f227
TV
55992020-04-29 Tom de Vries <tdevries@suse.de>
5600
5601 PR symtab/25889
5602 * linespec.c (find_method): Fix ix calculation.
5603
4498ef4f
KR
56042020-04-28 Kamil Rytarowski <n54@gmx.com>
5605
5606 * syscalls/update-netbsd.sh: New file.
5607 * syscalls/netbsd.xml: Regenerate.
5608 * data-directory/Makefile.in: Register `netbsd.xml' in
5609 `SYSCALLS_FILES'.
5610
a55e30b5
SM
56112020-04-28 Simon Marchi <simon.marchi@efficios.com>
5612
5613 * syscalls/update-freebsd.sh: Add double quotes.
5614
2b2fbab8
TT
56152020-04-28 Tom Tromey <tom@tromey.com>
5616
5617 * NEWS: Update.
5618 * python/py-cmd.c (gdbpy_initialize_commands): Add COMMAND_TUI.
5619 (cmdpy_init): Allow class_tui.
5620
a65189c9
TV
56212020-04-28 Mark Williams <mark@myosotissp.com>
5622
5623 PR gdb/24480
5624 * dwarf2read.c: Add missing assingments to list_in_scope when
5625 start_symtab was already called.
5626
1b95cdb7
SM
56272020-04-28 Simon Marchi <simon.marchi@efficios.com>
5628
5629 PR gdb/25881
5630 * dwarf2/read.c (offset_map_type): Use
5631 gdb:hash_enum<sect_offset> as hash function.
5632
15cd93d0
TV
56332020-04-28 Tom de Vries <tdevries@suse.de>
5634
5635 * dwarf2/read.c (process_structure_scope): Add symbol for struct decl
5636 with DW_AT_signature.
5637
1eb39914
SM
56382020-04-27 Simon Marchi <simon.marchi@efficios.com>
5639
5640 * configure.ac: Remove check for fs_base/gs_base in
5641 user_regs_struct.
5642 * configure: Re-generate.
5643 * config.in: Re-generate.
5644 * amd64-nat.c (amd64_native_gregset_reg_offset): Adjust.
5645 * amd64-linux-nat.c (amd64_linux_nat_target::fetch_registers,
5646 amd64_linux_nat_target::store_registers, ps_get_thread_area, ): Adjust.
5647
991a3e2e
LM
56482020-04-27 Luis Machado <luis.machado@linaro.org>
5649
5650 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first): Handle
5651 problematic inline frame unwinding situation.
5652 * frame.c (frame_id_computed_p): New function.
5653 * frame.h (frame_id_computed_p): New prototype.
5654
361ba0e8
TT
56552020-04-26 Tom Tromey <tom@tromey.com>
5656
5657 * command.h (enum command_class) <class_pseudo>: Remove.
5658
bc3609fd
PW
56592020-04-26 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5660
5661 * cli/cli-decode.c (lookup_cmd_composition): Fix comments
5662 and whitespace.
5663
b9771db7
KR
56642020-04-25 Kamil Rytarowski <n54@gmx.com>
5665
ec16513e
SM
5666 * inf-ptrace.c (inf_ptrace_target::wait): Remove
5667 `PT_GET_PROCESS_STATE' block.
b9771db7 5668
7151c1af
TT
56692020-04-24 Tom Tromey <tom@tromey.com>
5670
5671 * symtab.h (symbol_get_demangled_name): Don't declare.
5672 * symtab.c (symbol_get_demangled_name): Remove.
5673 (general_symbol_info::natural_name)
5674 (general_symbol_info::demangled_name): Update.
5675
906bb4c5
TT
56762020-04-24 Tom Tromey <tom@tromey.com>
5677
5678 PR rust/25025:
5679 * dwarf2/read.c (dwarf2_physname): Do not demangle for Rust.
5680
bcfe6157
TT
56812020-04-24 Tom Tromey <tom@tromey.com>
5682
5683 PR symtab/12707:
5684 * dwarf2/read.c (add_partial_symbol): Use the linkage name if it
5685 exists.
5686 (new_symbol): Likewise.
5687 * compile/compile-object-load.c (get_out_value_type): Use
5688 symbol_matches_search_name.
5689
f049a313
TT
56902020-04-24 Tom Tromey <tom@tromey.com>
5691
5692 * dwarf2/read.c (add_partial_symbol): Do not call
5693 compute_and_set_names.
5694
76e288d1
TT
56952020-04-24 Tom Tromey <tom@tromey.com>
5696
5697 * dwarf2/read.c (add_partial_symbol): Use new add_psymbol_to_list
5698 overload.
5699
2467f4f6
TT
57002020-04-24 Tom Tromey <tom@tromey.com>
5701
5702 * psymtab.c (add_psymbol_to_bcache): Simplify calling convention.
5703 (add_psymbol_to_list): New overload. Make old overload call new
5704 one.
5705 * psympriv.h (add_psymbol_to_list): New overload.
5706
e61108c9
TT
57072020-04-24 Tom Tromey <tom@tromey.com>
5708
5709 * dwarf2/read.c (partial_die_info::read) <case
5710 DW_AT_linkage_name>: Use value_as_string.
5711 (dwarf2_string_attr): Use value_as_string.
5712 * dwarf2/attribute.h (struct attribute) <value_as_string>: Declare
5713 method.
5714 * dwarf2/attribute.c (attribute::value_as_string): New method.
5715
8c87a452
TT
57162020-04-24 Tom Tromey <tom@tromey.com>
5717
5718 * symtab.c (general_symbol_info::natural_name)
5719 (general_symbol_info::demangled_name): Check for language_rust.
5720
787de330
TT
57212020-04-24 Tom Tromey <tom@tromey.com>
5722
5723 * dwarf2/read.c (dw2_linkage_name): Move Rust "{" hack here...
5724 (dwarf2_physname): ... from here.
5725 (partial_die_info::read): Add Rust "{" hack.
5726
ff985671
TT
57272020-04-24 Tom Tromey <tom@tromey.com>
5728
5729 * symtab.h (struct general_symbol_info) <set_demangled_name>: New
5730 method.
5731 (symbol_set_demangled_name): Don't declare.
5732 * symtab.c (general_symbol_info::set_demangled_name): Rename from
5733 symbol_set_demangled_name.
5734 (general_symbol_info::set_language)
5735 (general_symbol_info::compute_and_set_names): Update.
5736 * minsyms.c (minimal_symbol_reader::install): Update.
5737 * dwarf2/read.c (new_symbol): Update.
5738
1acda803
TT
57392020-04-24 Tom Tromey <tromey@adacore.com>
5740
5741 PR python/23662:
5742 * python/py-type.c (convert_field): Handle
5743 FIELD_LOC_KIND_DWARF_BLOCK.
5744 (typy_get_sizeof): Handle TYPE_HAS_DYNAMIC_LENGTH.
5745 (typy_get_dynamic): Nw function.
5746 (type_object_getset): Add "dynamic".
5747 * NEWS: Add entry.
5748
d656f129
TT
57492020-04-24 Tom Tromey <tromey@adacore.com>
5750
5751 * ada-typeprint.c (print_choices, print_variant_part)
5752 (print_record_field_types_dynamic): New functions.
5753 (print_record_field_types): Use print_record_field_types_dynamic.
5754
7d79de9a
TT
57552020-04-24 Tom Tromey <tromey@adacore.com>
5756
5757 * dwarf2/read.c (handle_data_member_location): New overload.
5758 (dwarf2_add_field): Use it.
5759 (decode_locdesc): Add "computed" parameter. Update comment.
5760 * gdbtypes.c (is_dynamic_type_internal): Also look for
5761 FIELD_LOC_KIND_DWARF_BLOCK.
5762 (resolve_dynamic_struct): Handle FIELD_LOC_KIND_DWARF_BLOCK.
5763 * gdbtypes.c (is_dynamic_type_internal): Add special case for C++
5764 virtual base classes.
5765 * gnu-v3-abi.c (gnuv3_baseclass_offset): Handle
5766 FIELD_LOC_KIND_DWARF_BLOCK.
5767
f8e89861
TT
57682020-04-24 Tom Tromey <tromey@adacore.com>
5769
5770 * dwarf2/read.c (read_structure_type): Handle dynamic length.
5771 * gdbtypes.c (is_dynamic_type_internal): Check
5772 TYPE_HAS_DYNAMIC_LENGTH.
5773 (resolve_dynamic_type_internal): Use TYPE_DYNAMIC_LENGTH.
5774 * gdbtypes.h (TYPE_HAS_DYNAMIC_LENGTH, TYPE_DYNAMIC_LENGTH):
5775 New macros.
5776 (enum dynamic_prop_node_kind) <DYN_PROP_BYTE_SIZE>: New
5777 constant.
5778
9c6a1327
TT
57792020-04-24 Tom Tromey <tromey@adacore.com>
5780
5781 * dwarf2/read.c (struct variant_field): Rewrite.
5782 (struct variant_part_builder): New.
5783 (struct nextfield): Remove "variant" field. Add "offset".
5784 (struct field_info): Add "current_variant_part" and
5785 "variant_parts".
5786 (alloc_discriminant_info): Remove.
5787 (alloc_rust_variant): New function.
5788 (quirk_rust_enum): Update.
5789 (dwarf2_add_field): Set "offset" member. Don't handle
5790 DW_TAG_variant_part.
5791 (offset_map_type): New typedef.
5792 (convert_variant_range, create_one_variant)
5793 (create_one_variant_part, create_variant_parts)
5794 (add_variant_property): New functions.
5795 (dwarf2_attach_fields_to_type): Call add_variant_property.
5796 (read_structure_type): Don't handle DW_TAG_variant_part.
5797 (handle_variant_part, handle_variant): New functions.
5798 (handle_struct_member_die): Use them.
5799 (process_structure_scope): Don't handle variant parts.
5800 * gdbtypes.h (TYPE_FLAG_DISCRIMINATED_UNION): Remove.
5801 (struct discriminant_info): Remove.
5802 (enum dynamic_prop_node_kind) <DYN_PROP_DISCRIMINATED>: Remove.
5803 (struct main_type) <flag_discriminated_union>: Remove.
5804 * rust-lang.c (rust_enum_p, rust_empty_enum_p): Rewrite.
5805 (rust_enum_variant): Return int. Remove "contents". Rewrite.
5806 (rust_print_enum, rust_print_struct_def, rust_evaluate_subexp):
5807 Update.
5808 * valops.c (value_union_variant): Remove.
5809 * value.h (value_union_variant): Don't declare.
5810
b249d2c2
TT
58112020-04-24 Tom Tromey <tromey@adacore.com>
5812
5813 * ada-lang.c (ada_discrete_type_high_bound, ada_discrete_type_low)
5814 (ada_value_primitive_packed_val): Update.
5815 * ada-valprint.c (ada_value_print_1): Update.
5816 * dwarf2/loc.c (evaluate_for_locexpr_baton): New struct.
5817 (dwarf2_locexpr_baton_eval): Take a property_addr_info rather than
5818 just an address. Use evaluate_for_locexpr_baton.
5819 (dwarf2_evaluate_property): Update.
5820 * dwarf2/loc.h (struct property_addr_info) <valaddr>: Now an
5821 array_view.
5822 * findvar.c (default_read_var_value): Update.
5823 * gdbtypes.c (compute_variant_fields_inner)
5824 (resolve_dynamic_type_internal): Update.
5825 (resolve_dynamic_type): Change type of valaddr parameter.
5826 * gdbtypes.h (resolve_dynamic_type): Update.
5827 * valarith.c (value_subscripted_rvalue): Update.
5828 * value.c (value_from_contents_and_address): Update.
5829
61122aa9
TT
58302020-04-24 Tom Tromey <tromey@adacore.com>
5831
5832 * dwarf2/loc.c (dwarf2_locexpr_baton_eval): Add
5833 "push_initial_value" parameter.
5834 (dwarf2_evaluate_property): Likewise.
5835 * dwarf2/loc.h (dwarf2_evaluate_property): Update.
5836
ef83a141
TT
58372020-04-24 Tom Tromey <tromey@adacore.com>
5838
5839 * gdbtypes.c (is_dynamic_type_internal): Check for variant parts.
5840 (variant::matches, compute_variant_fields_recurse)
5841 (compute_variant_fields_inner, compute_variant_fields): New
5842 functions.
5843 (resolve_dynamic_struct): Check for DYN_PROP_VARIANT_PARTS.
5844 Use resolved_type after type is made.
5845 (operator==): Add new cases.
5846 * gdbtypes.h (TYPE_HAS_VARIANT_PARTS): New macro.
5847 (struct discriminant_range, struct variant, struct variant_part):
5848 New.
5849 (union dynamic_prop_data) <variant_parts, original_type>: New
5850 members.
5851 (enum dynamic_prop_node_kind) <DYN_PROP_VARIANT_PARTS>: New constant.
5852 (enum dynamic_prop_kind) <PROP_TYPE, PROP_VARIANT_PARTS>: New
5853 constants.
5854 * value.c (unpack_bits_as_long): Now public.
5855 * value.h (unpack_bits_as_long): Declare.
5856
675127ec
TT
58572020-04-24 Tom Tromey <tromey@adacore.com>
5858
5859 * rs6000-tdep.c (struct ppc_variant): Rename from "variant".
5860 (variants, find_variant_by_arch, rs6000_gdbarch_init): Update.
5861
9852ceef
HD
58622020-04-24 Hannes Domani <ssbssa@yahoo.de>
5863
5864 * windows-tdep.c (exception_values): Add WOW64 exception numbers.
5865
7632c6ce
KR
58662020-04-24 Kamil Rytarowski <n54@gmx.com>
5867
5868 * inf-ptrace.h (follow_fork, insert_fork_catchpoint)
5869 (remove_fork_catchpoint, post_startup_inferior)
5870 (post_attach): Move...
5871 * obsd-nat.h (follow_fork, insert_fork_catchpoint)
5872 (remove_fork_catchpoint, post_startup_inferior)
5873 (post_attach): ...here.
5874 * inf-ptrace.c (follow_fork, insert_fork_catchpoint)
5875 (remove_fork_catchpoint, post_startup_inferior)
5876 (post_attach): Move...
5877 * obsd-nat.c (follow_fork, insert_fork_catchpoint)
5878 (remove_fork_catchpoint, post_startup_inferior)
5879 (post_attach): ...here.
5880
7be2bb4f
TT
58812020-04-24 Tom Tromey <tromey@adacore.com>
5882
5883 * nat/windows-nat.h (struct windows_thread_info)
5884 <pc_adjusted>: New member.
5885 * windows-nat.c (windows_fetch_one_register): Check
5886 pc_adjusted.
5887 (windows_nat_target::get_windows_debug_event)
5888 (windows_nat_target::wait): Set pc_adjusted.
5889
f80cb3b4
TV
58902020-04-24 Tom de Vries <tdevries@suse.de>
5891
5892 * contrib/cc-with-tweaks.sh: Remove <exec>.gdb-index file handling.
5893 Run gdb-add-index inside temp dir.
5894
29514b87
TT
58952020-04-23 Tom Tromey <tromey@adacore.com>
5896
5897 * windows-tdep.c (is_linked_with_cygwin_dll): Always update "iter"
5898 in loop.
5899
5939967b
LM
59002020-04-23 Luis Machado <luis.machado@linaro.org>
5901
5902 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first): Use
5903 get_frame_register instead of gdbarch_unwind_pc.
5904
70bc38f5
TV
59052020-04-23 Tom de Vries <tdevries@suse.de>
5906
5907 * symtab.c (lookup_global_symbol): Prefer def over decl.
5908
de82891c
TV
59092020-04-23 Tom de Vries <tdevries@suse.de>
5910
5911 PR symtab/25807
5912 * block.c (best_symbol, better_symbol): Promote to external.
5913 * block.h (best_symbol, better_symbol): Declare.
5914 * symtab.c (lookup_symbol_in_objfile_symtabs): Prefer def over
5915 decl.
5916
ecc6c606
TT
59172020-04-23 Tom Tromey <tromey@adacore.com>
5918
5919 PR ada/25837:
5920 * dwarf2/read.c (dw2_expand_symtabs_matching_symbol): Store a
5921 "const char *", not a "const std::string &".
5922 <name_and_matcher::operator==>: Update.
5923 * unittests/lookup_name_info-selftests.c: Change type of
5924 "result".
5925
740480b8
TT
59262020-04-23 Tom Tromey <tom@tromey.com>
5927
5928 * inferior.h (iterate_over_inferiors): Don't declare.
5929 * inferior.c (iterate_over_inferiors): Remove.
5930 * darwin-nat.c (find_inferior_task_it, find_inferior_pid_it):
5931 Remove.
5932 (darwin_find_inferior_by_task, darwin_find_inferior_by_pid): Don't
5933 use iterate_over_inferiors.
5934 (darwin_resume_inferior_it)
5935 (struct resume_inferior_threads_param)
5936 (darwin_resume_inferior_threads_it): Remove.
5937 (darwin_nat_target::resume): Don't use iterate_over_inferiors.
5938
ae3ab1f0
TV
59392020-04-23 Tom de Vries <tdevries@suse.de>
5940
5941 * blockframe.c (find_pc_partial_function): Use
5942 find_pc_sect_compunit_symtab rather than
5943 objfile->sf->qf->find_pc_sect_compunit_symtab.
5944
317d2668
TV
59452020-04-22 Tom de Vries <tdevries@suse.de>
5946
5947 PR symtab/25764
5948 * dwarf2/read.c (scan_partial_symbols): Allow external variable decls
5949 in psymtabs.
5950
eea9e357
TV
59512020-04-22 Tom de Vries <tdevries@suse.de>
5952
5953 PR symtab/25801
5954 * psymtab.c (psym_map_symtabs_matching_filename): Don't skip shared
5955 symtabs.
5956
3d5afab3
TV
59572020-04-22 Tom de Vries <tdevries@suse.de>
5958
5959 PR symtab/25700
5960 * dwarf2/read.c (dwarf2_build_psymtabs_hard): Don't create psymtab for
5961 CU if already created.
5962
d43b7a2d
TBA
59632020-04-21 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
5964
5965 * infrun.c (displaced_step_fixup): Switch to the event_thread
5966 before calling displaced_step_restore, not after.
5967
d89edf9b
MM
59682020-04-21 Markus Metzger <markus.t.metzger@intel.com>
5969
5970 * record-btrace.c (record_btrace_enable_warn): Ignore thread if
5971 its inferior is not recorded by us.
5972 (record_btrace_target_open): Replace call to
5973 all_non_exited_threads () with call to current_inferior
5974 ()->non_exited_threads ().
5975 (record_btrace_target::stop_recording): Likewise.
5976 (record_btrace_target::close): Likewise.
5977 (record_btrace_target::wait): Likewise.
5978 (record_btrace_target::record_stop_replaying): Likewise.
5979
5897fd49
MM
59802020-04-21 Markus Metzger <markus.t.metzger@intel.com>
5981
5982 * btrace.c (btrace_enable): Throw an error on double enables and
5983 when enabling recording fails.
5984 (btrace_disable): Throw an error if the thread is not recorded.
5985
1a476b6d
MM
59862020-04-21 Markus Metzger <markus.t.metzger@intel.com>
5987
5988 * record-btrace.c (record_btrace_target::fetch_registers): Forward
5989 request if we do not have a thread_info.
5990
4778a5f8
TV
59912020-04-21 Tom de Vries <tdevries@suse.de>
5992
5993 PR gdb/25471
5994 * thread.c
5995 (scoped_restore_current_thread::scoped_restore_current_thread): Catch
5996 exception in get_frame_id.
5997
0fa7617d
TT
59982020-04-20 Tom Tromey <tromey@adacore.com>
5999
6000 * python/python.c (struct gdbpy_event): Mark move constructor as
6001 noexcept.
6002 * python/py-tui.c (class gdbpy_tui_window_maker): Mark move
6003 constructor as noexcept.
6004 * completer.h (struct completion_result): Mark move constructor as
6005 noexcept.
6006 * completer.c (completion_result::completion_result): Use
6007 initialization style. Don't call reset_match_list.
6008
ad23bda0
MS
60092020-04-20 Mihails Strasuns <mihails.strasuns@intel.com>
6010
6011 * MAINTAINERS (Write After Approval): Add myself.
6012
45e1f031
TT
60132020-04-18 Tom Tromey <tom@tromey.com>
6014
6015 * windows-tdep.c (init_w32_command_list)
6016 (w32_prefix_command_valid): Restore.
6017 (_initialize_windows_tdep): Call init_w32_command_list.
6018
08feed99
TT
60192020-04-18 Tom Tromey <tom@tromey.com>
6020
6021 * xcoffread.c (enter_line_range, scan_xcoff_symtab): Update.
6022 * value.c (value_fn_field): Update.
6023 * valops.c (find_function_in_inferior)
6024 (value_allocate_space_in_inferior): Update.
6025 * tui/tui-winsource.c (tui_update_source_windows_with_line):
6026 Update.
6027 * tui/tui-source.c (tui_source_window::set_contents): Update.
6028 * symtab.c (lookup_global_or_static_symbol)
6029 (find_function_start_sal_1, skip_prologue_sal)
6030 (print_msymbol_info, find_gnu_ifunc, symbol_arch): Update.
6031 * symmisc.c (dump_msymbols, dump_symtab_1)
6032 (maintenance_print_one_line_table): Update.
6033 * symfile.c (init_entry_point_info, section_is_mapped)
6034 (list_overlays_command, simple_read_overlay_table)
6035 (simple_overlay_update_1): Update.
6036 * stap-probe.c (handle_stap_probe): Update.
6037 * stabsread.c (dbx_init_float_type, define_symbol)
6038 (read_one_struct_field, read_enum_type, read_range_type): Update.
6039 * source.c (info_line_command): Update.
6040 * python/python.c (gdbpy_source_objfile_script)
6041 (gdbpy_execute_objfile_script): Update.
6042 * python/py-type.c (save_objfile_types): Update.
6043 * python/py-objfile.c (py_free_objfile): Update.
6044 * python/py-inferior.c (python_new_objfile): Update.
6045 * psymtab.c (psym_find_pc_sect_compunit_symtab, dump_psymtab)
6046 (dump_psymtab_addrmap_1, maintenance_info_psymtabs)
6047 (maintenance_check_psymtabs): Update.
6048 * printcmd.c (info_address_command): Update.
6049 * objfiles.h (struct objfile) <arch>: New method, from
6050 get_objfile_arch.
6051 (get_objfile_arch): Don't declare.
6052 * objfiles.c (get_objfile_arch): Remove.
6053 (filter_overlapping_sections): Update.
6054 * minsyms.c (msymbol_is_function): Update.
6055 * mi/mi-symbol-cmds.c (mi_cmd_symbol_list_lines)
6056 (output_nondebug_symbol): Update.
6057 * mdebugread.c (parse_symbol, basic_type, parse_partial_symbols)
6058 (mdebug_expand_psymtab): Update.
6059 * machoread.c (macho_add_oso_symfile): Update.
6060 * linux-tdep.c (linux_infcall_mmap, linux_infcall_munmap):
6061 Update.
6062 * linux-fork.c (checkpoint_command): Update.
6063 * linespec.c (convert_linespec_to_sals): Update.
6064 * jit.c (finalize_symtab): Update.
6065 * infrun.c (insert_exception_resume_from_probe): Update.
6066 * ia64-tdep.c (ia64_find_unwind_table): Update.
6067 * hppa-tdep.c (internalize_unwinds): Update.
6068 * gdbtypes.c (get_type_arch, init_float_type, objfile_type):
6069 Update.
6070 * gcore.c (call_target_sbrk): Update.
6071 * elfread.c (record_minimal_symbol, elf_symtab_read)
6072 (elf_rel_plt_read, elf_gnu_ifunc_record_cache)
6073 (elf_gnu_ifunc_resolve_by_got): Update.
6074 * dwarf2/read.c (create_addrmap_from_index)
6075 (create_addrmap_from_aranges, dw2_find_pc_sect_compunit_symtab)
6076 (read_debug_names_from_section)
6077 (process_psymtab_comp_unit_reader, add_partial_symbol)
6078 (add_partial_subprogram, process_full_comp_unit)
6079 (read_file_scope, read_func_scope, read_lexical_block_scope)
6080 (read_call_site_scope, dwarf2_ranges_read)
6081 (dwarf2_record_block_ranges, dwarf2_add_field)
6082 (mark_common_block_symbol_computed, read_tag_pointer_type)
6083 (read_tag_string_type, dwarf2_init_float_type)
6084 (dwarf2_init_complex_target_type, read_base_type)
6085 (partial_die_info::read, partial_die_info::read)
6086 (read_attribute_value, dwarf_decode_lines_1, new_symbol)
6087 (dwarf2_fetch_die_loc_sect_off): Update.
6088 * dwarf2/loc.c (dwarf2_find_location_expression)
6089 (class dwarf_evaluate_loc_desc, rw_pieced_value)
6090 (dwarf2_evaluate_loc_desc_full, dwarf2_locexpr_baton_eval)
6091 (dwarf2_loc_desc_get_symbol_read_needs)
6092 (locexpr_describe_location_piece, locexpr_describe_location_1)
6093 (loclist_describe_location): Update.
6094 * dwarf2/index-write.c (write_debug_names): Update.
6095 * dwarf2/frame.c (dwarf2_build_frame_info): Update.
6096 * dtrace-probe.c (dtrace_process_dof): Update.
6097 * dbxread.c (read_dbx_symtab, dbx_end_psymtab)
6098 (process_one_symbol): Update.
6099 * ctfread.c (ctf_init_float_type, read_base_type): Update.
6100 * coffread.c (coff_symtab_read, enter_linenos, decode_base_type)
6101 (coff_read_enum_type): Update.
6102 * cli/cli-cmds.c (edit_command, list_command): Update.
6103 * buildsym.c (buildsym_compunit::finish_block_internal): Update.
6104 * breakpoint.c (create_overlay_event_breakpoint)
6105 (create_longjmp_master_breakpoint)
6106 (create_std_terminate_master_breakpoint)
6107 (create_exception_master_breakpoint, get_sal_arch): Update.
6108 * block.c (block_gdbarch): Update.
6109 * annotate.c (annotate_source_line): Update.
6110
0743fc83
TT
61112020-04-17 Tom Tromey <tromey@adacore.com>
6112
6113 * auto-load.c (show_auto_load_cmd): Remove.
6114 (auto_load_show_cmdlist_get): Use add_show_prefix_cmd.
6115 * arc-tdep.c (_initialize_arc_tdep): Use add_show_prefix_cmd.
6116 (maintenance_print_arc_command): Remove.
6117 * tui/tui-win.c (tui_command): Remove.
6118 (tui_get_cmd_list): Use add_basic_prefix_cmd.
6119 * tui/tui-layout.c (tui_layout_command): Remove.
6120 (_initialize_tui_layout): Use add_basic_prefix_cmd.
6121 * python/python.c (user_set_python, user_show_python): Remove.
6122 (_initialize_python): Use add_basic_prefix_cmd,
6123 add_show_prefix_cmd.
6124 * guile/guile.c (set_guile_command, show_guile_command): Remove.
6125 (install_gdb_commands): Use add_basic_prefix_cmd,
6126 add_show_prefix_cmd.
6127 (info_guile_command): Remove.
6128 * dwarf2/read.c (set_dwarf_cmd, show_dwarf_cmd): Remove.
6129 (_initialize_dwarf2_read): Use add_basic_prefix_cmd,
6130 add_show_prefix_cmd.
6131 * cli/cli-style.h (class cli_style_option) <add_setshow_commands>:
6132 Remove do_set and do_show parameters.
6133 * cli/cli-style.c (set_style, show_style): Remove.
6134 (_initialize_cli_style): Use add_basic_prefix_cmd,
6135 add_show_prefix_cmd.
6136 (cli_style_option::add_setshow_commands): Remove do_set and
6137 do_show parameters.
6138 (cli_style_option::add_setshow_commands): Use
6139 add_basic_prefix_cmd, add_show_prefix_cmd.
6140 (STYLE_ADD_SETSHOW_COMMANDS): Remove macro.
6141 (set_style_name): Remove.
6142 * cli/cli-dump.c (dump_command, append_command): Remove.
6143 (srec_dump_command, ihex_dump_command, verilog_dump_command)
6144 (tekhex_dump_command, binary_dump_command)
6145 (binary_append_command): Remove.
6146 (_initialize_cli_dump): Use add_basic_prefix_cmd.
6147 * windows-tdep.c (w32_prefix_command_valid): Remove global.
6148 (init_w32_command_list): Remove; move into ...
6149 (_initialize_windows_tdep): ... here. Use add_basic_prefix_cmd.
6150 * valprint.c (set_print, show_print, set_print_raw)
6151 (show_print_raw): Remove.
6152 (_initialize_valprint): Use add_basic_prefix_cmd,
6153 add_show_prefix_cmd.
6154 * typeprint.c (set_print_type, show_print_type): Remove.
6155 (_initialize_typeprint): Use add_basic_prefix_cmd,
6156 add_show_prefix_cmd.
6157 * record.c (set_record_command, show_record_command): Remove.
6158 (_initialize_record): Use add_basic_prefix_cmd,
6159 add_show_prefix_cmd.
6160 * cli/cli-cmds.c (_initialize_cli_cmds): Use add_basic_prefix_cmd,
6161 add_show_prefix_cmd.
6162 (info_command, show_command, set_debug, show_debug): Remove.
6163 * top.h (set_history, show_history): Don't declare.
6164 * top.c (set_history, show_history): Remove.
6165 * target-descriptions.c (set_tdesc_cmd, show_tdesc_cmd)
6166 (unset_tdesc_cmd): Remove.
6167 (_initialize_target_descriptions): Use add_basic_prefix_cmd,
6168 add_show_prefix_cmd.
6169 * symtab.c (info_module_command): Remove.
6170 (_initialize_symtab): Use add_basic_prefix_cmd.
6171 * symfile.c (overlay_command): Remove.
6172 (_initialize_symfile): Use add_basic_prefix_cmd.
6173 * sparc64-tdep.c (info_adi_command): Remove.
6174 (_initialize_sparc64_adi_tdep): Use add_basic_prefix_cmd.
6175 * sh-tdep.c (show_sh_command, set_sh_command): Remove.
6176 (_initialize_sh_tdep): Use add_basic_prefix_cmd,
6177 add_show_prefix_cmd.
6178 * serial.c (serial_set_cmd, serial_show_cmd): Remove.
6179 (_initialize_serial): Use add_basic_prefix_cmd,
6180 add_show_prefix_cmd.
6181 * ser-tcp.c (set_tcp_cmd, show_tcp_cmd): Remove.
6182 (_initialize_ser_tcp): Use add_basic_prefix_cmd,
6183 add_show_prefix_cmd.
6184 * rs6000-tdep.c (set_powerpc_command, show_powerpc_command)
6185 (_initialize_rs6000_tdep): Use add_basic_prefix_cmd,
6186 add_show_prefix_cmd.
6187 * riscv-tdep.c (show_riscv_command, set_riscv_command)
6188 (show_debug_riscv_command, set_debug_riscv_command): Remove.
6189 (_initialize_riscv_tdep): Use add_basic_prefix_cmd,
6190 add_show_prefix_cmd.
6191 * remote.c (remote_command, set_remote_cmd): Remove.
6192 (_initialize_remote): Use add_basic_prefix_cmd.
6193 * record-full.c (set_record_full_command)
6194 (show_record_full_command): Remove.
6195 (_initialize_record_full): Use add_basic_prefix_cmd,
6196 add_show_prefix_cmd.
6197 * record-btrace.c (cmd_set_record_btrace)
6198 (cmd_show_record_btrace, cmd_set_record_btrace_bts)
6199 (cmd_show_record_btrace_bts, cmd_set_record_btrace_pt)
6200 (cmd_show_record_btrace_pt): Remove.
6201 (_initialize_record_btrace): Use add_basic_prefix_cmd,
6202 add_show_prefix_cmd.
6203 * ravenscar-thread.c (set_ravenscar_command)
6204 (show_ravenscar_command): Remove.
6205 (_initialize_ravenscar): Use add_basic_prefix_cmd,
6206 add_show_prefix_cmd.
6207 * mips-tdep.c (show_mips_command, set_mips_command)
6208 (_initialize_mips_tdep): Use add_basic_prefix_cmd,
6209 add_show_prefix_cmd.
6210 * maint.c (maintenance_command, maintenance_info_command)
6211 (maintenance_check_command, maintenance_print_command)
6212 (maintenance_set_cmd, maintenance_show_cmd): Remove.
6213 (_initialize_maint_cmds): Use add_basic_prefix_cmd,
6214 add_show_prefix_cmd.
6215 (show_per_command_cmd): Remove.
6216 * maint-test-settings.c (maintenance_set_test_settings_cmd):
6217 Remove.
6218 (maintenance_show_test_settings_cmd): Remove.
6219 (_initialize_maint_test_settings): Use add_basic_prefix_cmd,
6220 add_show_prefix_cmd.
6221 * maint-test-options.c (maintenance_test_options_command):
6222 Remove.
6223 (_initialize_maint_test_options): Use add_basic_prefix_cmd.
6224 * macrocmd.c (macro_command): Remove
6225 (_initialize_macrocmd): Use add_basic_prefix_cmd.
6226 * language.c (set_check, show_check): Remove.
6227 (_initialize_language): Use add_basic_prefix_cmd,
6228 add_show_prefix_cmd.
6229 * infcmd.c (unset_command): Remove.
6230 (_initialize_infcmd): Use add_basic_prefix_cmd.
6231 * i386-tdep.c (set_mpx_cmd, show_mpx_cmd): Remove.
6232 (_initialize_i386_tdep): Use add_basic_prefix_cmd,
6233 add_show_prefix_cmd.
6234 * go32-nat.c (go32_info_dos_command): Remove.
6235 (_initialize_go32_nat): Use add_basic_prefix_cmd.
6236 * cli/cli-decode.c (do_prefix_cmd, add_basic_prefix_cmd)
6237 (do_show_prefix_cmd, add_show_prefix_cmd): New functions.
6238 * frame.c (set_backtrace_cmd, show_backtrace_cmd): Remove.
6239 (_initialize_frame): Use add_basic_prefix_cmd,
6240 add_show_prefix_cmd.
6241 * dcache.c (set_dcache_command, show_dcache_command): Remove.
6242 (_initialize_dcache): Use add_basic_prefix_cmd,
6243 add_show_prefix_cmd.
6244 * cp-support.c (maint_cplus_command): Remove.
6245 (_initialize_cp_support): Use add_basic_prefix_cmd.
6246 * btrace.c (maint_btrace_cmd, maint_btrace_set_cmd)
6247 (maint_btrace_show_cmd, maint_btrace_pt_set_cmd)
6248 (maint_btrace_pt_show_cmd, _initialize_btrace): Use
6249 add_basic_prefix_cmd, add_show_prefix_cmd.
6250 * breakpoint.c (save_command): Remove.
6251 (_initialize_breakpoint): Use add_basic_prefix_cmd.
6252 * arm-tdep.c (set_arm_command, show_arm_command): Remove.
6253 (_initialize_arm_tdep): Use add_basic_prefix_cmd,
6254 add_show_prefix_cmd.
6255 * ada-lang.c (maint_set_ada_cmd, maint_show_ada_cmd)
6256 (set_ada_command, show_ada_command): Remove.
6257 (_initialize_ada_language): Use add_basic_prefix_cmd,
6258 add_show_prefix_cmd.
6259 * command.h (add_basic_prefix_cmd, add_show_prefix_cmd): Declare.
6260
3557f442
KR
62612020-04-16 Kamil Rytarowski <n54@gmx.com>
6262
6263 * nbsd-nat.c (inf_ptrace_target::auxv_parse): Remove.
6264 * nbsd-nat.h (inf_ptrace_target::auxv_parse): Likewise.
6265
16197208
SM
62662020-04-16 Simon Marchi <simon.marchi@polymtl.ca>
6267
6268 * windows-tdep.c (is_linked_with_cygwin_dll): Add filename to
6269 warning messages.
6270
00ac85d3
SM
62712020-04-16 Simon Marchi <simon.marchi@polymtl.ca>
6272
6273 * windows-tdep.c (is_linked_with_cygwin_dll): Consider case where
6274 import table is not at beginning of .idata section.
6275
381ce63f
PA
62762020-04-16 Pedro Alves <palves@redhat.com>
6277
6278 * inferior.c (delete_inferior): Use delete operator directly
6279 instead of delete_program_space.
6280 * progspace.c (add_program_space): New, factored out from
6281 program_space::program_space.
6282 (remove_program_space): New, factored out from
6283 delete_program_space.
6284 (program_space::program_space): Remove intro comment. Rewrite.
6285 (program_space::~program_space): Remove intro comment. Call
6286 remove_program_space.
6287 (delete_program_space): Delete.
6288 * progspace.h (program_space::program_space): Make explicit. Move
6289 intro comment here, adjusted.
6290 (program_space::~program_space): Move intro comment here,
6291 adjusted.
6292 (delete_program_space): Remove.
6293
a010605f
TT
62942020-04-16 Tom Tromey <tromey@adacore.com>
6295
6296 * windows-nat.c (windows_nat::handle_access_violation): New
6297 function.
6298 * nat/windows-nat.h (handle_access_violation): Declare.
6299 * nat/windows-nat.c (handle_exception): Move Cygwin code to
6300 windows-nat.c. Call handle_access_violation.
6301
efba5c23
TV
63022020-04-16 Tom de Vries <tdevries@suse.de>
6303
6304 PR symtab/25791
6305 * dwarf2/index-write.c (write_gdbindex): Generate CU table entries for
6306 CUs without psymtab.
6307
97ed802d
KB
63082020-04-16 Kevin Buettner <kevinb@redhat.com>
6309
6310 * python/python.c (do_start_initialization): Don't call
6311 PyEval_InitThreads for Python 3.9 and beyond.
6312
c7d64809
KR
63132020-04-15 Kamil Rytarowski <n54@gmx.com>
6314
6315 * obsd-nat.c (obsd_nat_target::update_thread_list): Pass "this" to
6316 thread functions.
6317 (obsd_nat_target::wait): Likewise.
6318
ce127a96
TT
63192020-04-15 Tom Tromey <tromey@adacore.com>
6320
6321 * windows-nat.c (DEBUG_EXEC, DEBUG_EVENTS, DEBUG_MEM)
6322 (DEBUG_EXCEPT): Use debug_printf.
6323
99f1bc6a
AB
63242020-04-15 Andrew Burgess <andrew.burgess@embecosm.com>
6325
6326 * completer.c (class completion_tracker::completion_hash_entry)
6327 <hash_name>: New member function.
6328 (completion_tracker::discard_completions): New callback to hash a
6329 completion_hash_entry, pass this to htab_create_alloc.
6330
a0e9b532
JT
63312016-01-20 Jon Turney <jon.turney@dronecode.org.uk>
6332
6333 * windows-nat.c (windows_make_so): Warn rather than stopping with
6334 an error if realpath() fails.
6335
06ca5dd4
KR
63362020-04-14 Kamil Rytarowski <n54@gmx.com>
6337
6338 * nbsd-nat.c (nbsd_pid_to_kinfo_proc2): New.
6339 (nbsd_nat_target::info_proc): Add do_status.
6340
194d088f
TV
63412020-04-14 Simon Marchi <simon.marchi@polymtl.ca>
6342 Tom de Vries <tdevries@suse.de>
6343
6344 PR symtab/25718
6345 * psympriv.h (struct partial_symtab::read_symtab)
6346 (struct partial_symtab::expand_psymtab)
6347 (struct partial_symtab::read_dependencies): Update comments.
6348 * dwarf2/read.c (struct dwarf2_include_psymtab::read_symtab): Call
6349 read_symtab for includer.
6350 (struct dwarf2_include_psymtab::expand_psymtab): Assert false.
6351 (struct dwarf2_include_psymtab::readin_p): Call readin_p () for includer.
6352 (struct dwarf2_include_psymtab::m_readin): Remove.
6353 (struct dwarf2_include_psymtab::includer): New member function.
6354 (dwarf2_psymtab::expand_psymtab): Assert !readin.
6355
c1a66c06
TV
63562020-04-14 Tom de Vries <tdevries@suse.de>
6357
6358 PR symtab/25720
6359 * symmisc.c (maintenance_expand_symtabs): Call expand_symtabs_matching
6360 with NULL symbol_matcher and lookup_name.
6361 * psymtab.c (psym_expand_symtabs_matching): Handle NULL symbol_matcher
6362 and lookup_name.
6363 * dwarf2/read.c (dw2_expand_symtabs_matching)
6364 (dw2_debug_names_expand_symtabs_matching): Same.
6365 * symfile.h (struct quick_symbol_functions::expand_symtabs_matching):
6366 Make lookup_name a pointer. Update comment.
6367 * symtab.c (global_symbol_searcher::expand_symtabs): Handle
6368 lookup_name being a pointer.
6369 * symfile.c (expand_symtabs_matching): Same.
6370 * symfile-debug.c (debug_qf_expand_symtabs_matching): Same.
6371 * linespec.c (iterate_over_all_matching_symtabs): Same.
6372
400b5eca
TT
63732020-04-13 Tom Tromey <tom@tromey.com>
6374
6375 * run-on-main-thread.c: Update include.
6376 * unittests/main-thread-selftests.c: Update include.
6377 * tui/tui-win.c: Update include.
6378 * tui/tui-io.c: Update include.
6379 * tui/tui-interp.c: Update include.
6380 * tui/tui-hooks.c: Update include.
6381 * top.h: Update include.
6382 * top.c: Update include.
6383 * ser-base.c: Update include.
6384 * remote.c: Update include.
6385 * remote-notif.c: Update include.
6386 * remote-fileio.c: Update include.
6387 * record-full.c: Update include.
6388 * record-btrace.c: Update include.
6389 * python/python.c: Update include.
6390 * posix-hdep.c: Update include.
6391 * mingw-hdep.c: Update include.
6392 * mi/mi-main.c: Update include.
6393 * mi/mi-interp.c: Update include.
6394 * main.c: Update include.
6395 * linux-nat.c: Update include.
6396 * interps.c: Update include.
6397 * infrun.c: Update include.
6398 * inf-loop.c: Update include.
6399 * event-top.c: Update include.
6400 * event-loop.c: Move to ../gdbsupport/.
6401 * event-loop.h: Move to ../gdbsupport/.
6402 * async-event.h: Update include.
6403 * Makefile.in (COMMON_SFILES, HFILES_NO_SRCDIR): Update.
6404
93b54c8e
TT
64052020-04-13 Tom Tromey <tom@tromey.com>
6406
6407 * tui/tui-win.c: Include async-event.h.
6408 * remote.c: Include async-event.h.
6409 * remote-notif.c: Include async-event.h.
6410 * record-full.c: Include async-event.h.
6411 * record-btrace.c: Include async-event.h.
6412 * infrun.c: Include async-event.h.
6413 * event-top.c: Include async-event.h.
6414 * event-loop.h: Move some declarations to async-event.h.
6415 * event-loop.c: Don't include ser-event.h or top.h. Move some
6416 code to async-event.c.
6417 * async-event.h: New file.
6418 * async-event.c: New file.
6419 * Makefile.in (COMMON_SFILES): Add async-event.c.
6420 (HFILES_NO_SRCDIR): Add async-event.h.
6421
c1cd3163
TT
64222020-04-13 Tom Tromey <tom@tromey.com>
6423
6424 * utils.c (flush_streams): New function.
6425 * event-loop.c (gdb_wait_for_event): Call flush_streams.
6426
29f2bf4f
TT
64272020-04-13 Tom Tromey <tom@tromey.com>
6428
6429 * event-loop.c (handle_file_event): Use warning, not
6430 printf_unfiltered.
6431
98029d02
TT
64322020-04-13 Tom Tromey <tom@tromey.com>
6433
6434 * event-loop.c: Include <chrono>.
6435
06cc9596
TT
64362020-04-13 Tom Tromey <tom@tromey.com>
6437
6438 * gdb_select.h: Move to ../gdbsupport/.
6439 * event-loop.c: Update include path.
6440 * top.c: Update include path.
6441 * ser-base.c: Update include path.
6442 * ui-file.c: Update include path.
6443 * ser-tcp.c: Update include path.
6444 * guile/scm-ports.c: Update include path.
6445 * posix-hdep.c: Update include path.
6446 * ser-unix.c: Update include path.
6447 * gdb_usleep.c: Update include path.
6448 * mingw-hdep.c: Update include path.
6449 * inflow.c: Update include path.
6450 * infrun.c: Update include path.
6451 * event-top.c: Update include path.
6452
8ae8e197
TT
64532020-04-13 Tom Tromey <tom@tromey.com>
6454
6455 * configure: Rebuild.
6456 * configure.ac: Remove checks that are now in GDB_AC_COMMON.
6457
58cf28e8
TT
64582020-04-13 Tom Tromey <tom@tromey.com>
6459
6460 * event-loop.h (start_event_loop): Don't declare.
6461 * event-loop.c (start_event_loop): Move...
6462 * main.c (start_event_loop): ...here. Now static.
6463
b7f999ae
SDJ
64642020-04-13 Sergio Durigan Junior <sergiodj@sergiodj.net>
6465
6466 * MAINTAINERS: Update my email address.
6467
1085dfd4
KR
64682020-04-12 Kamil Rytarowski <n54@gmx.com>
6469
6470 * nbsd-nat.c (nbsd_nat_target::info_proc): Add IP_MINIMAL and
6471 IP_ALL.
6472
49d1d1f5
KR
64732020-04-12 Kamil Rytarowski <n54@gmx.com>
6474
6475 * nbsd-nat.c (nbsd_pid_to_cmdline): Add.
aac66a4c 6476 (nbsd_nat_target::info_proc): Add do_cmdline.
49d1d1f5 6477
b4848d2a
KR
64782020-04-12 Kamil Rytarowski <n54@gmx.com>
6479
6480 * nbsd-nat.c (nbsd_pid_to_cwd): Add.
aac66a4c 6481 (nbsd_nat_target::info_proc): Add do_cwd.
b4848d2a 6482
51c133d5
KR
64832020-04-12 Kamil Rytarowski <n54@gmx.com>
6484
6485 * nbsd-nat.c (nbsd_nat_target::info_proc): Add do_exe.
6486
54b8cbd0
KR
64872020-04-11 Kamil Rytarowski <n54@gmx.com>
6488
6489 * nbsd-nat.c; Include "nbsd-tdep.h" and "gdbarch.h".
6490 * nbsd-nat.c (nbsd_nat_target::find_memory_regions)
6491 (nbsd_nat_target::info_proc): New functions.
6492 * nbsd-nat.c (kinfo_get_vmmap): New function.
6493 * nbsd-nat.c (nbsd_nat_target::info_proc) Use
6494 nbsd_info_proc_mappings_header and nbsd_info_proc_mappings_entry.
6495 * nbsd-tdep.c (nbsd_info_proc_mappings_header)
6496 (nbsd_info_proc_mappings_entry, nbsd_vm_map_entry_flags): New
6497 functions.
6498 * nbsd-tdep.c (KINFO_VME_PROT_READ, KINFO_VME_PROT_WRITE)
6499 (KINFO_VME_PROT_EXEC, KINFO_VME_FLAG_COW)
6500 (KINFO_VME_FLAG_NEEDS_COPY, KINFO_VME_FLAG_NOCOREDUMP)
6501 (KINFO_VME_FLAG_PAGEABLE, KINFO_VME_FLAG_GROWS_UP)
6502 (KINFO_VME_FLAG_GROWS_DOWN): New.
6503
cf83625d
AS
65042020-04-10 Artur Shepilko <nomadbyte@gmail.com>
6505
6506 * utils.c (copy_bitwise): Use unsigned 0 constant as operand of
6507 bit shift.
6508
0c4311ab
TT
65092020-04-10 Tom Tromey <tromey@adacore.com>
6510
6511 * symfile.c (symbol_file_add_separate): Preserve OBJF_MAINLINE.
6512
3e65b3e9
TT
65132020-04-10 Tom Tromey <tromey@adacore.com>
6514
6515 * symtab.c (get_symbol_address, get_msymbol_address): Skip
6516 separate debug files.
6517
13302e95
HD
65182020-04-10 Hannes Domani <ssbssa@yahoo.de>
6519
6520 * nat/windows-nat.c (STATUS_WX86_BREAKPOINT, STATUS_WX86_SINGLE_STEP):
6521 Move to...
6522 * nat/windows-nat.h (STATUS_WX86_BREAKPOINT, STATUS_WX86_SINGLE_STEP):
6523 ... here.
6524 * windows-nat.c (windows_nat_target::get_windows_debug_event):
6525 Check for STATUS_WX86_BREAKPOINT.
6526 (windows_nat_target::wait): Same.
6527
bdfc1e8a
TV
65282020-04-10 Tom de Vries <tdevries@suse.de>
6529
6530 PR cli/25808
6531 * python/lib/gdb/__init__.py: Initialize lexer with stripnl=False.
6532
f4460aec
SM
65332020-04-09 Simon Marchi <simon.marchi@polymtl.ca>
6534
6535 * MAINTAINERS (Global Maintainers): Add Tom de Vries.
6536 (Write After Approval): Remove Tom de Vries.
6537
a25198bb
BE
65382020-04-09 Bernd Edlinger <bernd.edlinger@hotmail.de>
6539
6540 revert partially:
6541 2020-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
6542
aac66a4c
SM
6543 * buildsym.c (record_line): Fix undefined behavior and preserve
6544 lines at eof.
a25198bb 6545
206c98a6
KR
65462020-04-09 Kamil Rytarowski <n54@gmx.com>
6547
6548 * auxv.h (svr4_auxv_parse): New.
6549 * auxv.c (default_auxv_parse): Split into default_auxv_parse
6550 and generic_auxv_parse.
6551 (svr4_auxv_parse): Add.
6552 * obsd-tdep.c: Include "auxv.h".
6553 (obsd_auxv_parse): Remove.
6554 (obsd_init_abi): Remove comment.
6555 (obsd_init_abi): Change set_gdbarch_auxv_parse passed argument
6556 from `obsd_auxv_parse' to `svr4_auxv_parse'.
6557 * nbsd-tdep.c: Include "auxv.h".
6558 (nbsd_init_abi): Call set_gdbarch_auxv_parse.
6559
71fbdbaf
TT
65602020-04-08 Tom Tromey <tromey@adacore.com>
6561
6562 * nat/windows-nat.h (last_wait_event): Don't declare.
6563 (wait_for_debug_event): Update comment.
6564 * nat/windows-nat.c (last_wait_event): Now static.
6565
2c1d95e8
TT
65662020-04-08 Tom Tromey <tromey@adacore.com>
6567
6568 * windows-nat.c (wait_for_debug_event): Move to
6569 nat/windows-nat.c.
6570 * nat/windows-nat.h (wait_for_debug_event): Declare.
6571 * nat/windows-nat.c (wait_for_debug_event): Move from
6572 windows-nat.c. No longer static.
6573
d2977bc4
TT
65742020-04-08 Tom Tromey <tromey@adacore.com>
6575
6576 * windows-nat.c (get_windows_debug_event): Use
6577 fetch_pending_stop.
6578 * nat/windows-nat.h (fetch_pending_stop): Declare.
6579 * nat/windows-nat.c (fetch_pending_stop): New function.
6580
e758e19c
TT
65812020-04-08 Tom Tromey <tromey@adacore.com>
6582
6583 * windows-nat.c (windows_continue): Use matching_pending_stop and
6584 continue_last_debug_event.
6585 * nat/windows-nat.h (matching_pending_stop)
6586 (continue_last_debug_event): Declare.
6587 * nat/windows-nat.c (DEBUG_EVENTS): New define.
6588 (matching_pending_stop, continue_last_debug_event): New
6589 functions.
6590
8d30e395
TT
65912020-04-08 Tom Tromey <tromey@adacore.com>
6592
6593 * windows-nat.c (MS_VC_EXCEPTION): Move to nat/windows-nat.c.
6594 (handle_exception_result): Move to nat/windows-nat.h.
6595 (DEBUG_EXCEPTION_SIMPLE): Remove.
6596 (windows_nat::handle_ms_vc_exception): New function.
6597 (handle_exception): Move to nat/windows-nat.c.
6598 (get_windows_debug_event): Update.
6599 (STATUS_WX86_BREAKPOINT, STATUS_WX86_SINGLE_STEP): Move to
6600 nat/windows-nat.c.
6601 * nat/windows-nat.h (handle_ms_vc_exception): Declare.
6602 (handle_exception_result): Move from windows-nat.c.
6603 (handle_exception): Declare.
6604 * nat/windows-nat.c (MS_VC_EXCEPTION, handle_exception)
6605 (STATUS_WX86_SINGLE_STEP, STATUS_WX86_BREAKPOINT): Move from
6606 windows-nat.c.
6607
29de418d
TT
66082020-04-08 Tom Tromey <tromey@adacore.com>
6609
6610 * windows-nat.c (exception_count, event_count): Remove.
6611 (handle_exception, get_windows_debug_event)
6612 (do_initial_windows_stuff): Update.
6613
a816ba18
TT
66142020-04-08 Tom Tromey <tromey@adacore.com>
6615
6616 * windows-nat.c (windows_nat::handle_load_dll)
6617 (windows_nat::handle_unload_dll): Rename. No longer static.
6618 * nat/windows-nat.h (handle_load_dll, handle_unload_dll):
6619 Declare.
6620
a00caa12
TT
66212020-04-08 Tom Tromey <tromey@adacore.com>
6622
6623 * complaints.h (stop_whining): Declare at top-level.
6624 (complaint): Don't declare stop_whining.
6625
d41b524f
TT
66262020-04-08 Tom Tromey <tromey@adacore.com>
6627
6628 * windows-nat.c (windows_nat::handle_output_debug_string):
6629 Rename. No longer static.
6630 * nat/windows-nat.h (handle_output_debug_string): Declare.
6631
3c76026d
TT
66322020-04-08 Tom Tromey <tromey@adacore.com>
6633
6634 * windows-nat.c (current_process_handle, current_process_id)
6635 (main_thread_id, last_sig, current_event, last_wait_event)
6636 (current_windows_thread, desired_stop_thread_id, pending_stops)
6637 (struct pending_stop, siginfo_er): Move to nat/windows-nat.c.
6638 (display_selectors, fake_create_process)
6639 (get_windows_debug_event): Update.
6640 * nat/windows-nat.h (current_process_handle, current_process_id)
6641 (main_thread_id, last_sig, current_event, last_wait_event)
6642 (current_windows_thread, desired_stop_thread_id, pending_stops)
6643 (struct pending_stop, siginfo_er): Move from windows-nat.c.
6644 * nat/windows-nat.c (current_process_handle, current_process_id)
6645 (main_thread_id, last_sig, current_event, last_wait_event)
6646 (current_windows_thread, desired_stop_thread_id, pending_stops)
6647 (siginfo_er): New globals. Move from windows-nat.c.
6648
9d8679cc
TT
66492020-04-08 Tom Tromey <tromey@adacore.com>
6650
6651 * windows-nat.c (get_image_name): Move to nat/windows-nat.c.
6652 (handle_load_dll): Update.
6653 * nat/windows-nat.c (get_image_name): Move from windows-nat.c.
6654
28688adf
TT
66552020-04-08 Tom Tromey <tromey@adacore.com>
6656
6657 * windows-nat.c (enum thread_disposition_type): Move to
6658 nat/windows-nat.h.
6659 (windows_nat::thread_rec): Rename from thread_rec. No longer
6660 static.
6661 (windows_add_thread, windows_nat_target::fetch_registers)
6662 (windows_nat_target::store_registers, handle_exception)
6663 (windows_nat_target::resume, get_windows_debug_event)
6664 (windows_nat_target::get_tib_address)
6665 (windows_nat_target::thread_name)
6666 (windows_nat_target::thread_alive): Update.
6667 * nat/windows-nat.h (enum thread_disposition_type): Move from
6668 windows-nat.c.
6669 (thread_rec): Declare.
6670
4834dad0
TT
66712020-04-08 Tom Tromey <tromey@adacore.com>
6672
6673 * windows-nat.c: Add "using namespace".
6674 * nat/windows-nat.h: Wrap contents in windows_nat namespace.
6675 * nat/windows-nat.c: Wrap contents in windows_nat namespace.
6676
65bafd5b
TT
66772020-04-08 Tom Tromey <tromey@adacore.com>
6678
6679 * nat/windows-nat.h (struct windows_thread_info): Declare
6680 destructor.
6681 * nat/windows-nat.c (~windows_thread_info): New.
6682
0a4afda3
TT
66832020-04-08 Tom Tromey <tromey@adacore.com>
6684
6685 PR gdb/22992
6686 * windows-nat.c (current_event): Update comment.
6687 (last_wait_event, desired_stop_thread_id): New globals.
6688 (struct pending_stop): New.
6689 (pending_stops): New global.
6690 (windows_nat_target) <stopped_by_sw_breakpoint>
6691 <supports_stopped_by_sw_breakpoint>: New methods.
6692 (windows_fetch_one_register): Add assertions. Adjust PC.
6693 (windows_continue): Handle pending stops. Suspend other threads
6694 when stepping. Use last_wait_event
6695 (wait_for_debug_event): New function.
6696 (get_windows_debug_event): Use wait_for_debug_event. Handle
6697 pending stops. Queue spurious stops.
6698 (windows_nat_target::wait): Set stopped_at_software_breakpoint.
6699 (windows_nat_target::kill): Use wait_for_debug_event.
6700 * nat/windows-nat.h (struct windows_thread_info)
6701 <stopped_at_software_breakpoint>: New field.
6702 * nat/windows-nat.c (windows_thread_info::resume): Clear
6703 stopped_at_software_breakpoint.
6704
8e61ebec
TT
67052020-04-08 Tom Tromey <tromey@adacore.com>
6706
6707 * windows-nat.c (enum thread_disposition_type): New.
6708 (thread_rec): Replace "get_context" parameter with "disposition";
6709 change type.
6710 (windows_add_thread, windows_nat_target::fetch_registers)
6711 (windows_nat_target::store_registers, handle_exception)
6712 (windows_nat_target::resume, get_windows_debug_event)
6713 (windows_nat_target::get_tib_address)
6714 (windows_nat_target::thread_name)
6715 (windows_nat_target::thread_alive): Update.
6716
98a03287
TT
67172020-04-08 Tom Tromey <tromey@adacore.com>
6718
6719 * windows-nat.c (thread_rec): Use windows_thread_info::suspend.
6720 (windows_continue): Use windows_continue::resume.
6721 * nat/windows-nat.h (struct windows_thread_info) <suspend,
6722 resume>: Declare new methods.
6723 * nat/windows-nat.c: New file.
6724 * configure.nat (NATDEPFILES): Add nat/windows-nat.o when needed.
6725
7c7411bc
TT
67262020-04-08 Tom Tromey <tromey@adacore.com>
6727
6728 * windows-nat.c (windows_add_thread, windows_delete_thread)
6729 (windows_nat_target::fetch_registers)
6730 (windows_nat_target::store_registers, fake_create_process)
6731 (windows_nat_target::resume, windows_nat_target::resume)
6732 (get_windows_debug_event, windows_nat_target::wait)
6733 (windows_nat_target::pid_to_str)
6734 (windows_nat_target::get_tib_address)
6735 (windows_nat_target::get_ada_task_ptid)
6736 (windows_nat_target::thread_name)
6737 (windows_nat_target::thread_alive): Use lwp, not tid.
6738
2950fdf7
TT
67392020-04-08 Tom Tromey <tromey@adacore.com>
6740
6741 * windows-nat.c (handle_exception)
6742 (windows_nat_target::thread_name): Update.
6743 * nat/windows-nat.h (windows_thread_info): Remove destructor.
6744 <name>: Now unique_xmalloc_ptr.
6745
62fe396b
TT
67462020-04-08 Tom Tromey <tromey@adacore.com>
6747
6748 * windows-nat.c (thread_rec)
6749 (windows_nat_target::fetch_registers): Update.
6750 * nat/windows-nat.h (struct windows_thread_info) <suspended>:
6751 Update comment.
6752 <debug_registers_changed, reload_context>: Now bool.
6753
e9534bd2
TT
67542020-04-08 Tom Tromey <tromey@adacore.com>
6755
6756 * windows-nat.c (windows_add_thread): Use new.
6757 (windows_init_thread_list, windows_delete_thread): Use delete.
6758 (get_windows_debug_event): Update.
6759 * nat/windows-nat.h (struct windows_thread_info): Add constructor,
6760 destructor, and initializers.
6761
ae1f8880
TT
67622020-04-08 Tom Tromey <tromey@adacore.com>
6763
6764 * windows-nat.c (struct windows_thread_info): Remove.
6765 * nat/windows-nat.h: New file.
6766
55a1e039
TT
67672020-04-08 Tom Tromey <tromey@adacore.com>
6768
6769 * windows-nat.c (struct windows_thread_info) <tid>: Rename from "id".
6770 (thread_rec, windows_add_thread, windows_delete_thread)
6771 (windows_continue): Update.
6772
93366324
TT
67732020-04-08 Tom Tromey <tromey@adacore.com>
6774
6775 * windows-nat.c (struct windows_thread_info): Remove typedef.
6776 (thread_head): Remove.
6777 (thread_list): New global.
6778 (thread_rec, windows_add_thread, windows_init_thread_list)
6779 (windows_delete_thread, windows_continue): Update.
6780
0f2265e2
SM
67812020-04-08 Simon Marchi <simon.marchi@polymtl.ca>
6782
6783 * windows-tdep.h (windows_init_abi): Add comment.
6784 (cygwin_init_abi): New declaration.
6785 * windows-tdep.c: Split signal enumeration in two, one for
6786 Windows and one for Cygwin.
6787 (windows_gdb_signal_to_target): Only deal with signal of the
6788 Windows OS ABI.
6789 (cygwin_gdb_signal_to_target): New function.
6790 (windows_init_abi): Rename to windows_init_abi_common, don't set
6791 gdb_signal_to_target gdbarch method. Add new new function with
6792 this name.
6793 (cygwin_init_abi): New function.
6794 * amd64-windows-tdep.c (amd64_windows_init_abi_common): Add
6795 comment. Don't call windows_init_abi.
6796 (amd64_windows_init_abi): Add comment, call windows_init_abi.
6797 (amd64_cygwin_init_abi): Add comment, call cygwin_init_abi.
6798 * i386-windows-tdep.c (i386_windows_init_abi): Rename to
6799 i386_windows_init_abi_common, don't call windows_init_abi. Add
6800 a new function of this name.
6801 (i386_cygwin_init_abi): New function.
6802 (_initialize_i386_windows_tdep): Bind i386_cygwin_init_abi to
6803 OS ABI Cygwin.
6804
3810f182
SM
68052020-04-08 Simon Marchi <simon.marchi@polymtl.ca>
6806
6807 * dwarf2/read.c (read_gdb_index_from_buffer): Remove objfile
6808 parameter.c.
6809 (dwarf2_read_gdb_index): Update.
6810
063f8e80
KR
68112020-04-07 Kamil Rytarowski <n54@gmx.com>
6812
6813 * nbsd-tdep.c: Include "objfiles.h".
6814 (nbsd_skip_solib_resolver): New.
6815 (nbsd_init_abi): Call set_gdbarch_skip_solib_resolver().
6816
85a9510c 68172020-04-07 Nitika Achra <Nitika.Achra@amd.com>
6818
6819 * dwarf2/loc.c (loclist_describe_location): Call the function decode_debug_loclists_
6820 addresses if DWARF version is 5 or more because DW_LLE_start* or DW_LLE_offset_pair
6821 with DW_LLE_base_addressx are being emitted in DWARFv5.
6822 Add the newly added kind DW_LOC_OFFSET_PAIR also.
6823 The length of location description is an unsigned ULEB integer in DWARFv5 instead of
6824 unsigned integer.
6825
9fc3eaae 68262020-04-07 Nitika Achra <Nitika.Achra@amd.com>
6827
6828 * dwarf2/loc.c (enum debug_loc_kind): Add a new kind DEBUG_LOC_OFFSET_PAIR.
6829 (dwarf2_find_location_expression): Call the function decode_debug_loclists_
6830 addresses if DWARF version is 5 or more. DW_LLE_start* or DW_LLE_offset_pair
6831 with DW_LLE_base_addressx are being emitted in DWARFv5 instead of DW_LLE_GNU*.
6832 Add applicable base address if the entry is DW_LLE_offset_pair from DWO.
6833 (decode_debug_loclists_addresses): Return DEBUG_LOC_OFFSET_PAIR instead of
6834 DEBUG_LOC_START_END in case of DW_LLE_offset_pair.
6835
6836
41144253 68372020-04-07 Nitika Achra <Nitika.Achra@amd.com>
6838
6839 * dwarf2/read.c (cu_debug_loc_section): Added the declaration for the function.
6840 (read_loclist_index): New function definition.
6841 (lookup_loclist_base): New function definition.
6842 (read_loclist_header): New function definition.
6843 (dwarf2_cu): Add loclist_base and loclist_header field.
6844 (dwarf2_locate_dwo_sections): Handle .debug_loclists.dwo section.
6845 (read_full_die_1): Read the value of DW_AT_loclists_base.
6846 (read_attribute_reprocess): Handle DW_FORM_loclistx.
6847 (read_attribute_value): Handle DW_FORM_loclistx.
6848 (skip_one_die): Handle DW_FORM_loclistx.
6849 (loclist_header): New structure declaration.
6850 * dwarf2/attribute.c (form_is_section_offset): Handle DW_FORM_loclistx.
6851
9f4e76a4
SM
68522020-04-07 Simon Marchi <simon.marchi@polymtl.ca>
6853
6854 * dwarf2/read.h (struct dwarf2_psymtab): Remove two-parameters
6855 constructor. Remove `addr` parameter from other constructor and
6856 add `per_cu` parameter.
6857 * dwarf2/read.c (create_partial_symtab): Update.
6858
25c11aca
TV
68592020-04-07 Tom de Vries <tdevries@suse.de>
6860
6861 PR symtab/25796
6862 * dwarf2/read.c (can_have_DW_AT_const_value_p): New function.
6863 (partial_die_info::fixup): Inherit has_const_value.
6864
5707e24b
TV
68652020-04-07 Tom de Vries <tdevries@suse.de>
6866
6867 * psymtab.c (maintenance_check_psymtabs): Skip static LOC_BLOCK
6868 symbols without address.
6869
05f00e22
KR
68702020-04-06 Kamil Rytarowski <n54@gmx.com>
6871
6872 * nbsd-nat.h (struct thread_info): Add forward declaration.
6873 (nbsd_nat_target::thread_alive): Add.
6874 (nbsd_nat_target::thread_name): Likewise.
6875 (nbsd_nat_target::update_thread_list): Likewise.
6876 (update_thread_list::post_attach): Likewise.
6877 (post_attach::pid_to_str): Likewise.
6878 * nbsd-nat.c: Include "gdbthread.h" and "inferior.h".
6879 (nbsd_thread_lister): Add.
6880 (nbsd_nat_target::thread_alive): Likewise.
6881 (nbsd_nat_target::thread_name): Likewise.
6882 (nbsd_add_threads): Likewise.
6883 (update_thread_list::post_attach): Likewise.
6884 (nbsd_nat_target::update_thread_list): Likewise.
6885 (post_attach::pid_to_str): Likewise.
6886
6ee448cc
TT
68872020-04-06 Tom Tromey <tromey@adacore.com>
6888
6889 * ada-valprint.c (print_variant_part): Extract the variant field.
6890 (print_field_values): Use the field as the outer value when
6891 recursing.
6892
dea34e8c
TT
68932020-04-06 Tom Tromey <tromey@adacore.com>
6894
6895 * sh-nbsd-tdep.c: Include nbsd-tdep.h.
6896 * ppc-nbsd-tdep.c: Include nbsd-tdep.h.
6897 * mips-nbsd-tdep.c (mipsnbsd_init_abi): Add missing ";".
6898 * arm-nbsd-tdep.c: Include nbsd-tdep.h.
6899 * hppa-nbsd-tdep.c: Include nbsd-tdep.h.
6900
93689ce9
TT
69012020-04-06 Tom Tromey <tromey@adacore.com>
6902
6903 * dwarf2/read.c (read_base_type) <DW_ATE_complex_float>: Handle
6904 TYPE_CODE_ERROR.
6905
79743962
KR
69062020-04-06 Kamil Rytarowski <n54@gmx.com>
6907
6908 * nbsd-tdep.c: Include "gdbarch.h".
6909 Define enum with NetBSD signal numbers.
6910 (nbsd_gdb_signal_from_target, nbsd_gdb_signal_to_target): New.
6911 * alpha-nbsd-tdep.c (alphanbsd_init_abi): Call nbsd_init_abi().
6912 * amd64-nbsd-tdep.c (amd64nbsd_init_abi): Likewise.
6913 * arm-nbsd-tdep.c (arm_netbsd_elf_init_abi): Likewise.
6914 * hppa-nbsd-tdep.c (hppanbsd_init_abi): Likewise.
6915 * i386-nbsd-tdep.c (i386nbsd_init_abi): Likewise.
6916 * mips-nbsd-tdep.c (nbsd_init_abi): Likewise.
6917 * ppc-nbsd-tdep.c (ppcnbsd_init_abi): Likewise.
6918 * sh-nbsd-tdep.c (shnbsd_init_abi): Likewise.
6919 * sparc-nbsd-tdep.c (sparc32nbsd_init_abi): Likewise.
6920 * sparc64-nbsd-tdep.c (sparc64nbsd_init_abi): Likewise.
6921 * vax-nbsd-tdep.c (vaxnbsd_elf_init_abi): Likewise.
6922
9e7c9a03
HD
69232020-04-03 Hannes Domani <ssbssa@yahoo.de>
6924
6925 PR gdb/25325
6926 * dwarf2/read.c (read_enumeration_type): Fix typed enum attributes.
6927
d9e49b61
TT
69282020-04-03 Tom Tromey <tromey@adacore.com>
6929
6930 * dwarf2/loc.c (disassemble_dwarf_expression) <DW_OP_const_type>:
6931 Read constant block.
6932
e0fc5c3f
SM
69332020-04-02 Simon Marchi <simon.marchi@polymtl.ca>
6934
6935 * gdb_bfd.h: Include gdbsupport/byte-vector.h.
6936 (gdb_bfd_get_full_section_contents): New declaration.
6937 * gdb_bfd.c (gdb_bfd_get_full_section_contents): New function.
6938 * windows-tdep.c (is_linked_with_cygwin_dll): Use
6939 gdb_bfd_get_full_section_contents.
6940
e2ff18a0
SM
69412020-04-02 Simon Marchi <simon.marchi@polymtl.ca>
6942
6943 * exec.c (build_section_table): Replace internal_error with
6944 gdb_assert.
6945 (section_table_xfer_memory_partial): Likewise.
6946 * mdebugread.c (parse_partial_symbols): Likewise.
6947 * psymtab.c (lookup_partial_symbol): Likewise.
6948 * utils.c (wrap_here): Likewise.
6949
0830d301
TT
69502020-04-02 Tom Tromey <tromey@adacore.com>
6951
6952 * f-lang.c (build_fortran_types): Use arch_type to initialize
6953 builtin_complex_s32 in the TYPE_CODE_ERROR case.
6954
e7da7f8f
TT
69552020-04-02 Tom Tromey <tromey@adacore.com>
6956
6957 * dwarf2/read.c (partial_die_info::read): Do not create a vector
6958 of attributes.
6959
c90d28ac
AB
69602020-04-02 Andrew Burgess <andrew.burgess@embecosm.com>
6961 Bernd Edlinger <bernd.edlinger@hotmail.de>
6962 Tom Tromey <tromey@adacore.com>
6963
6964 * buildsym.c (buildsym_compunit::record_line): Remove
6965 deduplication code.
6966
1aa98955
TV
69672020-04-02 Tom de Vries <tdevries@suse.de>
6968
6969 PR ada/24671
6970 * dwarf2/read.c (dw2_map_matching_symbols): Handle -readnow.
6971
d3214198
TV
69722020-04-02 Tom de Vries <tdevries@suse.de>
6973
6974 * dwarf2/read.c (dwarf2_gdb_index_functions,
6975 dwarf2_debug_names_functions): Init lookup_global_symbol_language with
6976 NULL.
6977 * psymtab.c (psym_lookup_global_symbol_language): New function.
6978 (psym_functions): Init psym_lookup_global_symbol_language with
6979 psym_lookup_global_symbol_language.
6980 * symfile-debug.c (debug_sym_quick_functions): Init
6981 lookup_global_symbol_language with NULL.
6982 * symfile.c (set_initial_language): Remove fixme comment.
6983 * symfile.h (struct quick_symbol_functions): Add
6984 lookup_global_symbol_language.
6985 * symtab.c (find_quick_global_symbol_language): New function.
6986 (find_main_name): Use find_quick_global_symbol_language.
6987
2836752f
SM
69882020-04-01 Simon Marchi <simon.marchi@polymtl.ca>
6989
6990 * windows-tdep.c (is_linked_with_cygwin_dll): Fix style.
6991
64dc2d4b
BE
69922020-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
6993
6994 * buildsym.c (record_line): Fix undefined behavior and preserve
6995 lines at eof.
6996
bbe3dc41
BE
69972020-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
6998
6999 * buildsym.c (record_line): Fix the resizing condition.
7000
6b4a335b
TT
70012020-04-01 Tom Tromey <tom@tromey.com>
7002
7003 * value.h (value_literal_complex): Add comment.
7004 * valops.c (value_literal_complex): Refer to value.h.
7005
3638a098
TT
70062020-04-01 Tom Tromey <tom@tromey.com>
7007
7008 * c-exp.y (FLOAT_KEYWORD, COMPLEX): New tokens.
7009 (scalar_type): New rule, from typebase.
7010 (typebase): Use scalar_type. Recognize complex types.
7011 (field_name): Handle FLOAT_KEYWORD.
7012 (ident_tokens): Add _Complex and __complex__.
7013
c34e8714
TT
70142020-04-01 Tom Tromey <tom@tromey.com>
7015
7016 PR exp/25299:
7017 * valarith.c (promotion_type, complex_binop): New functions.
7018 (scalar_binop): Handle complex numbers. Use promotion_type.
7019 (value_pos, value_neg, value_complement): Handle complex numbers.
7020
fa649bb7
TT
70212020-04-01 Tom Tromey <tom@tromey.com>
7022
7023 * c-exp.y (COMPLEX_INT, COMPLEX_FLOAT): New tokens.
7024 (exp) <COMPLEX_INT, COMPLEX_FLOAT>: New rules.
7025 (parse_number): Handle complex numbers.
7026
981c08ce
TT
70272020-04-01 Tom Tromey <tom@tromey.com>
7028
7029 * c-valprint.c (c_decorations): Change complex suffix to "i".
7030
4c99290d
TT
70312020-04-01 Tom Tromey <tom@tromey.com>
7032
7033 * valprint.c (generic_value_print_complex): Use accessors.
7034 * value.h (value_real_part, value_imaginary_part): Declare.
7035 * valops.c (value_real_part, value_imaginary_part): New
7036 functions.
7037 * value.c (creal_internal_fn, cimag_internal_fn): Use accessors.
7038
5b930b45
TT
70392020-04-01 Tom Tromey <tom@tromey.com>
7040
7041 * stabsread.c (rs6000_builtin_type, read_sun_floating_type)
7042 (read_range_type): Update.
7043 * mdebugread.c (basic_type): Update.
7044 * go-lang.c (build_go_types): Use init_complex_type.
7045 * gdbtypes.h (struct main_type) <complex_type>: New member.
7046 (init_complex_type): Update.
7047 (arch_complex_type): Don't declare.
7048 * gdbtypes.c (init_complex_type): Remove "objfile" parameter.
7049 Make name if none given. Use alloc_type_copy. Look for cached
7050 complex type.
7051 (arch_complex_type): Remove.
7052 (gdbtypes_post_init): Use init_complex_type.
7053 * f-lang.c (build_fortran_types): Use init_complex_type.
7054 * dwarf2/read.c (read_base_type): Update.
7055 * d-lang.c (build_d_types): Use init_complex_type.
7056 * ctfread.c (read_base_type): Update.
7057
53cccef1
TBA
70582020-04-01 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
7059
7060 * infrun.c (stop_all_threads): Update assertion, plus when
7061 stopping threads, take into account that we might be trying
7062 to stop an all-stop target.
7063 (stop_waiting): Call 'stop_all_threads' if there exists a
7064 non-stop target.
7065
a0714d30
TBA
70662020-04-01 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
7067
7068 * target.h (exists_non_stop_target): New function declaration.
7069 * target.c (exists_non_stop_target): New function.
7070
60e22c1e
HD
70712020-04-01 Hannes Domani <ssbssa@yahoo.de>
7072
7073 PR gdb/24789
7074 * eval.c (is_integral_or_integral_reference): New function.
7075 (evaluate_subexp_standard): Allow integer references in
7076 pointer arithmetic.
7077
e139a727
TBA
70782020-04-01 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
7079
7080 * remote.c (remote_target::remote_parse_stop_reply): Remove the
7081 check for no ptid in the stop reply when the target is non-stop.
7082
e0802d59
TT
70832020-04-01 Tom Tromey <tromey@adacore.com>
7084
7085 * symtab.h (class lookup_name_info) <lookup_name_info>: Change
7086 "name" parameter to rvalue reference. Initialize m_name_holder.
7087 <lookup_name_info>: New overloads.
7088 <name>: Return gdb::string_view.
7089 <c_str>: New method.
7090 <make_ignore_params>: Update.
7091 <search_name_hash>: Update.
7092 <language_lookup_name>: Return const char *.
7093 <m_name>: Change type.
7094 * symtab.c (demangle_for_lookup_info::demangle_for_lookup_info)
7095 (demangle_for_lookup_info::demangle_for_lookup_info): Update.
7096 (lookup_name_info::match_any): Update.
7097 * psymtab.c (match_partial_symbol, lookup_partial_symbol):
7098 Update.
7099 * minsyms.c (linkage_name_str): Update.
7100 * language.c (default_symbol_name_matcher): Update.
7101 * dwarf2/read.c (mapped_index_base::find_name_components_bounds):
7102 Update.
7103 * ada-lang.c (ada_fold_name): Change parameter to string_view.
7104 (ada_lookup_name_info::ada_lookup_name_info): Update.
7105 (literal_symbol_name_matcher): Update.
7106
8c072cb6
TT
71072020-04-01 Tom Tromey <tromey@adacore.com>
7108
7109 * psymtab.c (psymtab_search_name): Remove function.
7110 (psym_lookup_symbol): Create search name and lookup name here.
7111 (lookup_partial_symbol): Remove "name" parameter; add
7112 lookup_name.
7113 (psym_expand_symtabs_for_function): Update.
7114
6f29a534
TT
71152020-03-31 Joel Jones <joelkevinjones@gmail.com>
7116
7117 PR tui/25597:
7118 * python/py-tui.c: Include gdb_curses.h inside of #ifdef TUI.
7119
af62665e
TT
71202020-03-31 Tom Tromey <tromey@adacore.com>
7121
7122 * dwarf2/abbrev.c (abbrev_table::read): Conditionally call
7123 memcpy.
7124
d1a89da5
NC
71252020-03-30 Nelson Chu <nelson.chu@sifive.com>
7126
7127 * features/riscv/32bit-csr.xml: Regenerated.
7128 * features/riscv/64bit-csr.xml: Regenerated.
7129
d8af9068
TT
71302020-03-30 Tom Tromey <tromey@adacore.com>
7131
7132 * ada-valprint.c (print_variant_part): Update.
7133 * ada-lang.h (ada_which_variant_applies): Update.
7134 * ada-lang.c (ada_which_variant_applies): Remove outer_type and
7135 outer_valaddr parameters; replace with "outer" value parameter.
7136 (to_fixed_variant_branch_type): Update.
7137
227c0bf4
PFC
71382020-03-30 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
7139
7140 * ppc-linux-nat.c: Include <algorithm>, <unordered_map>, and
7141 <list>. Remove inclusion of observable.h.
7142 (PPC_DEBUG_CURRENT_VERSION): Move up define.
7143 (struct arch_lwp_info): New struct.
7144 (class ppc_linux_dreg_interface): New class.
7145 (struct ppc_linux_process_info): New struct.
7146 (struct ppc_linux_nat_target) <low_delete_thread, low_new_fork>
7147 <low_new_clone, low_forget_process, low_prepare_to_resume>
7148 <copy_thread_dreg_state, mark_thread_stale>
7149 <mark_debug_registers_changed, register_hw_breakpoint>
7150 <clear_hw_breakpoint, register_wp, clear_wp>
7151 <can_use_watchpoint_cond_accel, calculate_dvc, check_condition>
7152 <num_memory_accesses, get_trigger_type>
7153 <create_watchpoint_request, hwdebug_point_cmp>
7154 <init_arch_lwp_info, get_arch_lwp_info>
7155 <low_stopped_by_watchpoint, low_stopped_data_address>: Declare as
7156 methods.
7157 <struct ptid_hash>: New inner struct.
7158 <m_dreg_interface, m_process_info, m_installed_hw_bps>: Declare
7159 members.
7160 (saved_dabr_value, hwdebug_info, max_slots_number)
7161 (struct hw_break_tuple, struct thread_points, ppc_threads)
7162 (have_ptrace_hwdebug_interface)
7163 (hwdebug_find_thread_points_by_tid)
7164 (hwdebug_insert_point, hwdebug_remove_point): Remove.
7165 (ppc_linux_nat_target::can_use_hw_breakpoint): Use
7166 m_dreg_interface, remove call to PTRACE_SET_DEBUGREG.
7167 (ppc_linux_nat_target::region_ok_for_hw_watchpoint): Add comment,
7168 use m_dreg_interface.
7169 (hwdebug_point_cmp): Change to...
7170 (ppc_linux_nat_target::hwdebug_point_cmp): ...this method. Use
7171 reference arguments instead of pointers.
7172 (ppc_linux_nat_target::ranged_break_num_registers): Use
7173 m_dreg_interface.
7174 (ppc_linux_nat_target::insert_hw_breakpoint): Add comment, use
7175 m_dreg_interface. Call register_hw_breakpoint.
7176 (ppc_linux_nat_target::remove_hw_breakpoint): Add comment, use
7177 m_dreg_interface. Call clear_hw_breakpoint.
7178 (get_trigger_type): Change to...
7179 (ppc_linux_nat_target::get_trigger_type): ...this method. Add
7180 comment.
7181 (ppc_linux_nat_target::insert_mask_watchpoint): Update comment,
7182 use m_dreg_interface. Call register_hw_breakpoint.
7183 (ppc_linux_nat_target::remove_mask_watchpoint): Update comment,
7184 use m_dreg_interface. Call clear_hw_breakpoint.
7185 (can_use_watchpoint_cond_accel): Change to...
7186 (ppc_linux_nat_target::can_use_watchpoint_cond_accel): ...this
7187 method. Update comment, use m_dreg_interface and
7188 m_process_info.
7189 (calculate_dvc): Change to...
7190 (ppc_linux_nat_target::calculate_dvc): ...this method. Use
7191 m_dreg_interface.
7192 (num_memory_accesses): Change to...
7193 (ppc_linux_nat_target::num_memory_accesses): ...this method.
7194 (check_condition): Change to...
7195 (ppc_linux_nat_target::check_condition): ...this method.
7196 (ppc_linux_nat_target::can_accel_watchpoint_condition): Update
7197 comment, use m_dreg_interface.
7198 (create_watchpoint_request): Change to...
7199 (ppc_linux_nat_target::create_watchpoint_request): ...this
7200 method. Use m_dreg_interface.
7201 (ppc_linux_nat_target::insert_watchpoint): Add comment, use
7202 m_dreg_interface. Call register_hw_breakpoint or register_wp.
7203 (ppc_linux_nat_target::remove_watchpoint): Add comment, use
7204 m_dreg_interface. Call clear_hw_breakpoint or clear_wp.
7205 (ppc_linux_nat_target::low_forget_process)
7206 (ppc_linux_nat_target::low_new_fork)
7207 (ppc_linux_nat_target::low_new_clone)
7208 (ppc_linux_nat_target::low_delete_thread)
7209 (ppc_linux_nat_target::low_prepare_to_resume): New methods.
7210 (ppc_linux_nat_target::low_new_thread): Remove previous logic,
7211 only call mark_thread_stale.
7212 (ppc_linux_thread_exit): Remove.
7213 (ppc_linux_nat_target::stopped_data_address): Change to...
7214 (ppc_linux_nat_target::low_stopped_data_address): This. Add
7215 comment, use m_dreg_interface and m_thread_hw_breakpoints.
7216 (ppc_linux_nat_target::stopped_by_watchpoint): Change to...
7217 (ppc_linux_nat_target::stopped_by_watchpoint): This. Add
7218 comment. Call low_stopped_data_address.
7219 (ppc_linux_nat_target::watchpoint_addr_within_range): Use
7220 m_dreg_interface.
7221 (ppc_linux_nat_target::masked_watch_num_registers): Use
7222 m_dreg_interface.
7223 (ppc_linux_nat_target::copy_thread_dreg_state)
7224 (ppc_linux_nat_target::mark_thread_stale)
7225 (ppc_linux_nat_target::mark_debug_registers_changed)
7226 (ppc_linux_nat_target::register_hw_breakpoint)
7227 (ppc_linux_nat_target::clear_hw_breakpoint)
7228 (ppc_linux_nat_target::register_wp)
7229 (ppc_linux_nat_target::clear_wp)
7230 (ppc_linux_nat_target::init_arch_lwp_info)
7231 (ppc_linux_nat_target::get_arch_lwp_info): New methods.
7232 (_initialize_ppc_linux_nat): Remove observer callback.
7233
4db10d8f
PFC
72342020-03-30 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
7235
7236 * ppc-linux-nat.c (ppc_linux_nat_target::store_registers)
7237 (ppc_linux_nat_target::auxv_parse)
7238 (ppc_linux_nat_target::read_description)
7239 (supply_gregset, fill_gregset, supply_fpregset, fill_fpregset):
7240 Move up.
7241
1310c1b0
PFC
72422020-03-30 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
7243
7244 * linux-nat.h (low_new_clone): New method.
7245 * linux-nat.c (linux_handle_extended_wait): Call low_new_clone.
7246
69b037c3
SM
72472020-03-29 Simon Marchi <simon.marchi@polymtl.ca>
7248
7249 * dbxread.c (dbx_psymtab_to_symtab_1): Rename to...
7250 (dbx_expand_psymtab): ... this.
7251 (start_psymtab): Update.
7252 * mdebugread.c (psymtab_to_symtab_1): Rename to...
7253 (mdebug_expand_psymtab): ... this.
7254 (parse_partial_symbols): Update.
7255 (new_psymtab): Update.
7256 * xcoffread.c (xcoff_psymtab_to_symtab_1): Rename to...
7257 (xcoff_expand_psymtab): ... this.
7258 (xcoff_start_psymtab): Update.
7259
48993951
SM
72602020-03-29 Simon Marchi <simon.marchi@polymtl.ca>
7261
7262 * psympriv.h (partial_symtab) <read_dependencies>: Rename to...
7263 <expand_dependencies>: ... this.
7264 * psymtab.c (partial_symtab::read_dependencies): Rename to...
7265 (partial_symtab::expand_dependencies): ... this.
7266 * dwarf2/read.c (dwarf2_include_psymtab) <expand_psymtab>:
7267 Update.
7268 (dwarf2_psymtab::expand_psymtab): Update.
7269 * dbxread.c (dbx_psymtab_to_symtab_1): Update.
7270 * mdebugread.c (psymtab_to_symtab_1): Update.
7271 * xcoffread.c (xcoff_psymtab_to_symtab_1): Update.
7272
3ad83046
SM
72732020-03-29 Simon Marchi <simon.marchi@polymtl.ca>
7274
7275 * psympriv.h (discard_psymtab): Remove.
7276 * dbxread.c (dbx_end_psymtab): Update.
7277 * xcoffread.c (xcoff_end_psymtab): Update.
7278
4d1b9ab6
TT
72792020-03-28 Tom Tromey <tom@tromey.com>
7280
7281 * dwarf2/attribute.h (struct attribute) <form_is_constant>: Update
7282 comment.
7283
f1749218
TT
72842020-03-28 Tom Tromey <tom@tromey.com>
7285
7286 * dwarf2/read.c (read_attribute_reprocess): Fix formatting.
7287
ebea7626
HD
72882020-03-27 Hannes Domani <ssbssa@yahoo.de>
7289
7290 * windows-nat.c (windows_add_all_dlls): Fix system dll paths.
7291
a879b4d5
JB
72922020-03-26 John Baldwin <jhb@FreeBSD.org>
7293
7294 * fbsd-tdep.c (fbsd_print_auxv_entry): Handle AT_FREEBSD_BSDFLAGS.
7295
0826b30a
TT
72962020-03-26 Tom Tromey <tom@tromey.com>
7297
7298 * dwarf2/read.c (handle_data_member_location, dwarf2_add_field)
7299 (mark_common_block_symbol_computed, read_tag_string_type)
7300 (attr_to_dynamic_prop, read_subrange_type): Update.
7301 (dwarf2_get_ref_die_offset, dwarf2_get_attr_constant_value): Move
7302 to be methods on struct attribute.
7303 (skip_one_die, process_imported_unit_die, read_namespace_alias)
7304 (read_call_site_scope, partial_die_info::read)
7305 (partial_die_info::read, lookup_die_type, follow_die_ref):
7306 Update.
7307 * dwarf2/attribute.c (attribute::get_ref_die_offset): New method,
7308 from dwarf2_get_ref_die_offset.
7309 (attribute::constant_value): New method, from
7310 dwarf2_get_attr_constant_value.
7311 * dwarf2/attribute.h (struct attribute) <get_ref_die_offset>:
7312 Declare method.
7313 <constant_value>: New method.
7314
2b2558bf
TT
73152020-03-26 Tom Tromey <tom@tromey.com>
7316
7317 * dwarf2/read.c (dwarf_unit_type_name, dwarf_tag_name)
7318 (dwarf_attr_name, dwarf_form_name, dwarf_bool_name)
7319 (dwarf_type_encoding_name): Move to stringify.c.
7320 * Makefile.in (COMMON_SFILES): Add dwarf2/stringify.c.
7321 * dwarf2/stringify.c: New file.
7322 * dwarf2/stringify.h: New file.
7323
eeb64781
TT
73242020-03-26 Tom Tromey <tom@tromey.com>
7325
7326 * dwarf2/die.h (struct die_info) <addr_base, ranges_base>:
7327 Rewrite.
7328
a39fdb41
TT
73292020-03-26 Tom Tromey <tom@tromey.com>
7330
7331 * dwarf2/die.h (struct die_info) <addr_base, ranges_base>: New
7332 methods.
7333 * dwarf2/read.c (lookup_addr_base): Move to die.h.
7334 (lookup_ranges_base): Likewise.
7335 (read_cutu_die_from_dwo, read_full_die_1): Update.
7336
436c571c
TT
73372020-03-26 Tom Tromey <tom@tromey.com>
7338
7339 * dwarf2/read.c (read_import_statement, read_file_scope)
7340 (read_type_unit_scope, inherit_abstract_dies, read_func_scope)
7341 (read_lexical_block_scope, read_call_site_scope)
7342 (dwarf2_get_subprogram_pc_bounds, get_scope_pc_bounds)
7343 (handle_struct_member_die, process_structure_scope)
7344 (update_enumeration_type_from_children)
7345 (process_enumeration_scope, read_array_type, read_common_block)
7346 (read_namespace, read_module, read_subroutine_type): Update.
7347 (sibling_die): Remove.
7348
052c8bb8
TT
73492020-03-26 Tom Tromey <tom@tromey.com>
7350
7351 * dwarf2/read.c (lookup_addr_base, lookup_ranges_base)
7352 (build_type_psymtabs_reader, read_structure_type)
7353 (read_enumeration_type, read_full_die_1): Update.
7354 (dwarf2_attr_no_follow): Move to die.h.
7355 * dwarf2/die.h (struct die_info) <attr>: New method.
7356
2b24b6e4
TT
73572020-03-26 Tom Tromey <tom@tromey.com>
7358
7359 * dwarf2/read.c (struct dwarf2_cu) <base_known>: Remove.
7360 <base_address>: Now an optional.
7361 (dwarf2_find_base_address, dwarf2_rnglists_process)
7362 (dwarf2_ranges_process, fill_in_loclist_baton)
7363 (dwarf2_symbol_mark_computed): Update.
7364
c2d50fd0
TT
73652020-03-26 Tom Tromey <tom@tromey.com>
7366
7367 * dwarf2/read.c (struct die_info): Move to die.h.
7368 * dwarf2/die.h: New file.
7369
0df7ad3a
TT
73702020-03-26 Tom Tromey <tom@tromey.com>
7371
7372 * dwarf2/line-header.h (dwarf_decode_line_header): Declare.
7373 * dwarf2/read.c
7374 (dwarf2_statement_list_fits_in_line_number_section_complaint):
7375 Move to line-header.c.
7376 (read_checked_initial_length_and_offset, read_formatted_entries):
7377 Likewise.
7378 (dwarf_decode_line_header): Split into two.
7379 * dwarf2/line-header.c
7380 (dwarf2_statement_list_fits_in_line_number_section_complaint):
7381 Move from read.c.
7382 (read_checked_initial_length_and_offset, read_formatted_entries):
7383 Likewise.
7384 (dwarf_decode_line_header): New function, split from read.c.
7385
86c0bb4c
TT
73862020-03-26 Tom Tromey <tom@tromey.com>
7387
7388 * dwarf2/read.h (struct dwarf2_per_objfile) <read_line_string>:
7389 Declare method.
7390 * dwarf2/read.c (read_attribute_value): Update.
7391 (dwarf2_per_objfile::read_line_string): Rename from
7392 read_indirect_line_string.
7393 (read_formatted_entries): Update.
7394
2ef46c2f
TT
73952020-03-26 Tom Tromey <tom@tromey.com>
7396
7397 * dwarf2/macro.c (dwarf_decode_macro_bytes): Use objfile local
7398 variable.
7399
4f9c1eda
TT
74002020-03-26 Tom Tromey <tom@tromey.com>
7401
7402 * dwarf2/macro.h (dwarf_decode_macros): Make section parameter
7403 const.
7404 * dwarf2/macro.c (skip_form_bytes, skip_unknown_opcode)
7405 (dwarf_decode_macro_bytes, dwarf_decode_macros): Make section
7406 parameter const.
7407
5a0e026f
TT
74082020-03-26 Tom Tromey <tom@tromey.com>
7409
7410 * dwarf2/read.c (dwarf_decode_macros): Make "lh" const.
7411 * dwarf2/macro.h (dwarf_decode_macros): Constify "lh" parameter.
7412 * dwarf2/macro.c (macro_start_file): Constify "lh" parameter.
7413 (dwarf_decode_macro_bytes, dwarf_decode_macros): Likewise.
7414
8844c11b
TT
74152020-03-26 Tom Tromey <tom@tromey.com>
7416
7417 * dwarf2/line-header.h (struct line_header) <is_valid_file_index,
7418 file_names_size, file_full_name, file_file_name>: Use const.
7419 <file_name_at, file_names>: Add const overload.
7420 * dwarf2/line-header.c (line_header::file_file_name)
7421 (line_header::file_full_name): Update.
7422
c90ec28a
TT
74232020-03-26 Tom Tromey <tom@tromey.com>
7424
7425 * dwarf2/read.c (dwarf2_macro_malformed_definition_complaint)
7426 (macro_start_file, consume_improper_spaces)
7427 (parse_macro_definition, skip_form_bytes, skip_unknown_opcode)
7428 (dwarf_parse_macro_header, dwarf_decode_macro_bytes)
7429 (dwarf_decode_macros): Move to macro.c.
7430 * dwarf2/macro.c: New file.
7431 * dwarf2/macro.h: New file.
7432 * Makefile.in (COMMON_SFILES): Add dwarf2/macro.c.
7433
4f44ae6c
TT
74342020-03-26 Tom Tromey <tom@tromey.com>
7435
7436 * dwarf2/section.h (struct dwarf2_section_info) <read_string>: New
7437 method.
7438 * dwarf2/section.c: New method. From
7439 read_indirect_string_at_offset_from.
7440 * dwarf2/read.c (mapped_debug_names::namei_to_name): Update.
7441 (read_indirect_string_at_offset_from): Move to section.c.
7442 (read_indirect_string_at_offset): Rewrite.
7443 (read_indirect_line_string_at_offset): Remove.
7444 (read_indirect_string, read_indirect_line_string)
7445 (dwarf_decode_macro_bytes): Update.
7446
a0194fa8
TT
74472020-03-26 Tom Tromey <tom@tromey.com>
7448
7449 * dwarf2/section.h (struct dwarf2_section_info)
7450 <overload_complaint>: Declare.
7451 (dwarf2_section_buffer_overflow_complaint): Don't declare.
7452 * dwarf2/section.c (dwarf2_section_info::overflow_complaint):
7453 Rename from dwarf2_section_buffer_overflow_complaint.
7454 * dwarf2/read.c (skip_one_die, partial_die_info::read)
7455 (skip_form_bytes, dwarf_decode_macro_bytes): Update.
7456
3d27bbdb
TT
74572020-03-26 Tom Tromey <tom@tromey.com>
7458
7459 * dwarf2/section.h (dwarf2_section_buffer_overflow_complaint):
7460 Declare.
7461 * dwarf2/section.c (dwarf2_section_buffer_overflow_complaint):
7462 Move from read.c.
7463 * dwarf2/read.c (dwarf2_section_buffer_overflow_complaint): Move
7464 to section.c.
7465
9eac9650
TT
74662020-03-26 Tom Tromey <tom@tromey.com>
7467
7468 * dwarf2/read.c (dwarf_decode_macros): Split into two overloads.
7469
bf80d710
TT
74702020-03-26 Tom Tromey <tom@tromey.com>
7471
7472 * dwarf2/read.c (macro_start_file): Change "cu" parameter to
7473 "builder".
7474 (dwarf_decode_macro_bytes): Likewise. Add dwarf2_per_objfile
7475 parameter.
7476 (dwarf_decode_macros): Update.
7477
0314b390
TT
74782020-03-26 Tom Tromey <tom@tromey.com>
7479
7480 * dwarf2/read.c (read_attribute_value): Update.
7481 (read_indirect_string_from_dwz): Move to dwz.c; change into
7482 method.
7483 (dwarf_decode_macro_bytes): Update.
7484 * dwarf2/dwz.h (struct dwz_file) <read_string>: Declare method.
7485 * dwarf2/dwz.c: New file.
7486 * Makefile.in (COMMON_SFILES): Add dwz.c.
7487
9fda78b6
TT
74882020-03-26 Tom Tromey <tom@tromey.com>
7489
7490 * dwarf2/read.h (struct dwz_file): Move to dwz.h.
7491 * dwarf2/read.c: Add include.
7492 * dwarf2/index-write.c: Add include.
7493 * dwarf2/index-cache.c: Add include.
7494 * dwarf2/dwz.h: New file.
7495
33aa3c10
TT
74962020-03-25 Tom Tromey <tom@tromey.com>
7497
7498 * compile/compile-object-load.c (get_out_value_type): Mention
7499 correct symbol name in error message.
7500
d503b685
HD
75012020-03-25 Hannes Domani <ssbssa@yahoo.de>
7502
7503 * windows-nat.c (windows_add_all_dlls): Fix system dll paths.
7504
7b1eff95
TV
75052020-03-25 Tom de Vries <tdevries@suse.de>
7506
7507 * symtab.h (is_main_symtab_of_compunit_symtab): New function.
7508 * symmisc.c (dump_symtab_1): Print user and includes fields.
7509 (maintenance_info_symtabs): Same.
7510
dd895392
AB
75112020-03-25 Andrew Burgess <andrew.burgess@embecosm.com>
7512
7513 PR gdb/25534
7514 * riscv-tdep.c (riscv_arg_info::c_offset): Update comment.
7515 (riscv_regcache_cooked_write): New function.
7516 (riscv_push_dummy_call): Use new function.
7517 (riscv_return_value): Likewise.
7518
5ab2fbf1
SM
75192020-03-24 Simon Marchi <simon.marchi@polymtl.ca>
7520
7521 * fbsd-nat.c (fbsd_nat_target::follow_fork): Change bool to int.
7522 * fbsd-nat.h (class fbsd_nat_target) <follow_fork>: Likewise.
7523 * inf-ptrace.c (inf_ptrace_target::follow_fork): Likewise.
7524 * inf-ptrace.h (struct inf_ptrace_target) <follow_fork>: Likewise.
7525 * infrun.c (follow_fork): Likewise.
7526 (follow_fork_inferior): Likewise.
7527 * linux-nat.c (linux_nat_target::follow_fork): Likewise.
7528 * linux-nat.h (class linux_nat_target): Likewise.
7529 * remote.c (class remote_target) <follow_fork>: Likewise.
7530 (remote_target::follow_fork): Likewise.
7531 * target-delegates.c: Re-generate.
7532 * target.c (default_follow_fork): Likewise.
7533 (target_follow_fork): Likewise.
7534 * target.h (struct target_ops) <follow_fork>: Likewise.
7535 (target_follow_fork): Likewise.
7536
a64fafb5
TV
75372020-03-24 Tom de Vries <tdevries@suse.de>
7538
7539 * psymtab.c (maintenance_info_psymtabs): Print user field.
7540
fe26d3a3
TT
75412020-03-20 Tom Tromey <tromey@adacore.com>
7542
7543 * dwarf2/loc.h (dwarf2_evaluate_property): Make "addr_stack"
7544 const.
7545 * dwarf2/loc.c (dwarf2_evaluate_property): Make "addr_stack"
7546 const.
7547
c884cc46
SM
75482020-03-20 Simon Marchi <simon.marchi@efficios.com>
7549
7550 * ptrace.m4: Don't check for ptrace declaration.
7551 * config.in: Re-generate.
7552 * configure: Re-generate.
7553 * nat/gdb_ptrace.h: Don't declare ptrace if HAVE_DECL_PTRACE is
7554 not defined.
7555
1ff700c2
KR
75562020-03-20 Kamil Rytarowski <n54@gmx.com>
7557
7558 * amd64-bsd-nat.c (gdb_ptrace): Change return type from `int' to
7559 `PTRACE_TYPE_RET'.
7560 * i386-bsd-nat.c (gdb_ptrace): Likewise.
7561 * sparc-nat.c (gdb_ptrace): Likewise.
7562 * x86-bsd-nat.c (gdb_ptrace): Likewise.
7563
f7d4f0b1
TT
75642020-03-20 Tom Tromey <tromey@adacore.com>
7565
7566 * c-exp.y (lex_one_token): Fix assert.
7567
f67210ff
TT
75682020-03-20 Tom Tromey <tromey@adacore.com>
7569
7570 * ada-tasks.c (read_atcb): Use smaller length in strncpy call.
7571 * linux-tdep.c (linux_fill_prpsinfo): Use smaller length in
7572 strncpy call.
7573
1773be9e
TT
75742020-03-20 Tom Tromey <tromey@adacore.com>
7575
7576 * symmisc.c (maintenance_print_one_line_table): Use ui_out.
7577
70304be9
TT
75782020-03-20 Tom Tromey <tromey@adacore.com>
7579
7580 * ada-valprint.c (print_variant_part): Remove parameters; switch
7581 to value-based API.
7582 (print_field_values): Likewise.
7583 (ada_val_print_struct_union): Likewise.
7584 (ada_value_print_1): Update.
7585
9faa006d
KR
75862020-03-20 Kamil Rytarowski <n54@gmx.com>
7587
7588 * ppc-nbsd-nat.c (ppc_nbsd_nat_target): Inherit from
7589 nbsd_nat_target instead of inf_ptrace_target.
7590 * ppc-nbsd-nat.c: Include "nbsd-nat.h", as we are now using
7591 nbsd_nat_target.
7592
4a90f062
KR
75932020-03-20 Kamil Rytarowski <n54@gmx.com>
7594
7595 * hppa-nbsd-nat.c (fetch_registers): New variable lwp and pass
7596 it to the ptrace call.
7597 * (store_registers): Likewise.
7598
75992020-03-20 Kamil Rytarowski <n54@gmx.com>
c7da12c7
KR
7600
7601 * ppc-nbsd-nat.c (fetch_registers): New variable lwp and pass
7602 it to the ptrace call.
7603 * (store_registers): Likewise.
7604
2d07da27
LM
76052020-03-19 Luis Machado <luis.machado@linaro.org>
7606
7607 * nat/aarch64-sve-linux-ptrace.c (aarch64_sve_set_vq): If vg is not
7608 valid, fetch vg value from ptrace.
7609
f09db380
KR
76102020-03-19 Kamil Rytarowski <n54@gmx.com>
7611 * inf-ptrace.h: Disable get_ptrace_pid on NetBSD.
7612 * inf-ptrace.c: Likewise.
7613 * (gdb_ptrace): Add.
7614 * (inf_ptrace_target::resume): Update.
7615 * (inf_ptrace_target::xfer_partial): Likewise.
7616 * (inf_ptrace_peek_poke): Change argument `pid' to `ptid'.
7617 * (inf_ptrace_peek_poke): Update.
7618
fcc7376e
KR
76192020-03-19 Kamil Rytarowski <n54@gmx.com>
7620
7621 * x86-bsd-nat.c (gdb_ptrace): New.
7622 * (x86bsd_dr_set): Add new argument `ptid'.
7623 * (x86bsd_dr_get, x86bsd_dr_set, x86bsd_dr_set_control,
7624 x86bsd_dr_set_addr): Update.
7625
cada5fc9
AB
76262020-03-19 Andrew Burgess <andrew.burgess@embecosm.com>
7627
7628 * remote.c (remote_target::process_stop_reply): Handle events for
7629 all threads differently.
7630
19a2740f
AB
76312020-03-19 Andrew Burgess <andrew.burgess@embecosm.com>
7632
7633 * completer.c (completion_tracker::remove_completion): Define new
7634 function.
7635 * completer.h (completion_tracker::remove_completion): Declare new
7636 function.
7637 * symtab.c (completion_list_add_symbol): Remove aliasing msymbols
7638 when adding a C++ function symbol.
7639
724fd9ba
AB
76402020-03-19 Andrew Burgess <andrew.burgess@embecosm.com>
7641
7642 * completer.c (completion_tracker::completion_hash_entry): Define
7643 new class.
7644 (advance_to_filename_complete_word_point): Call
7645 recompute_lowest_common_denominator.
7646 (completion_tracker::completion_tracker): Call discard_completions
7647 to setup the hash table.
7648 (completion_tracker::discard_completions): Allow for being called
7649 from the constructor, pass new equal function, and element deleter
7650 when constructing the hash table. Initialise new class member
7651 variables.
7652 (completion_tracker::maybe_add_completion): Remove use of
7653 m_entries_vec, and store more information into m_entries_hash.
7654 (completion_tracker::recompute_lcd_visitor): New function, most
7655 content taken from...
7656 (completion_tracker::recompute_lowest_common_denominator):
7657 ...here, this now just visits each item in the hash calling the
7658 above visitor.
7659 (completion_tracker::build_completion_result): Remove use of
7660 m_entries_vec, call recompute_lowest_common_denominator.
7661 * completer.h (completion_tracker::have_completions): Remove use
7662 of m_entries_vec.
7663 (completion_tracker::completion_hash_entry): Declare new class.
7664 (completion_tracker::recompute_lowest_common_denominator): Change
7665 function signature.
7666 (completion_tracker::recompute_lcd_visitor): Declare new function.
7667 (completion_tracker::m_entries_vec): Delete.
7668 (completion_tracker::m_entries_hash): Initialize to NULL.
7669 (completion_tracker::m_lowest_common_denominator_valid): New
7670 member variable.
7671 (completion_tracker::m_lowest_common_denominator_max_length): New
7672 member variable.
7673
5a82b8a1
KR
76742020-03-17 Kamil Rytarowski <n54@gmx.com>
7675
7676 * regformats/regdef.h: Put reg in gdb namespace.
7677
fb516a69
KR
76782020-03-17 Kamil Rytarowski <n54@gmx.com>
7679
7680 * i386-bsd-nat.c (gdb_ptrace): New.
7681 * (i386bsd_fetch_inferior_registers,
7682 i386bsd_store_inferior_registers) Switch from pid_t to ptid_t.
7683 * (i386bsd_fetch_inferior_registers,
7684 i386bsd_store_inferior_registers) Use gdb_ptrace.
7685
1c0aa1fb
KR
76862020-03-17 Kamil Rytarowski <n54@gmx.com>
7687
7688 * amd64-bsd-nat.c (gdb_ptrace): New.
7689 * (amd64bsd_fetch_inferior_registers,
7690 amd64bsd_store_inferior_registers) Switch from pid_t to ptid_t.
7691 * (amd64bsd_fetch_inferior_registers,
7692 amd64bsd_store_inferior_registers) Use gdb_ptrace.
7693
5ccd2fb7
KR
76942020-03-17 Kamil Rytarowski <n54@gmx.com>
7695
7696 * user-regs.c (user_reg::read): Rename to...
7697 (user_reg::xread): ...this.
7698 * (append_user_reg): Rename argument `read' to `xread'.
7699 * (user_reg_add_builtin): Likewise.
7700 * (user_reg_add): Likewise.
7701 * (value_of_user_reg): Likewise.
7702
2108a63a
KR
77032020-03-17 Kamil Rytarowski <n54@gmx.com>
7704
7705 * sparc-nat.c (gdb_ptrace): New.
7706 * sparc-nat.c (sparc_fetch_inferior_registers)
7707 (sparc_store_inferior_registers) Remove obsolete comment.
7708 * sparc-nat.c (sparc_fetch_inferior_registers)
7709 (sparc_store_inferior_registers) Switch from pid_t to ptid_t.
7710 * sparc-nat.c (sparc_fetch_inferior_registers)
7711 (sparc_store_inferior_registers) Use gdb_ptrace.
7712
a225c9a8
KR
77132020-03-17 Kamil Rytarowski <n54@gmx.com>
7714
7715 * sh-nbsd-nat.c (fetch_registers): New variable lwp and pass
7716 it to the ptrace call.
7717 * sh-nbsd-nat.c (store_registers): Likewise.
7718
98097623
KR
77192020-03-17 Kamil Rytarowski <n54@gmx.com>
7720
7721 * sh-nbsd-nat.c (sh_nbsd_nat_target): Inherit from
7722 nbsd_nat_target instead of inf_ptrace_target.
7723 * sh-nbsd-nat.c: Include "nbsd-nat.h", as we are now using
7724 nbsd_nat_target.
7725
9e38d619
KR
77262020-03-17 Kamil Rytarowski <n54@gmx.com>
7727
7728 * amd64-bsd-nat.c: Include amd64-bsd-nat.h".
7729
a2ecbe9f
KR
77302020-03-17 Kamil Rytarowski <n54@gmx.com>
7731
7732 * nbsd-nat.c: Include <sys/types.h>, <sys/ptrace.h> and
7733 <sys/sysctl.h>.
7734 * nbsd-nat.c (nbsd_nat_target::pid_to_exec_file): Rewrite.
7735
58990295
TV
77362020-03-17 Tom de Vries <tdevries@suse.de>
7737
7738 PR gdb/23710
7739 * dwarf2/read.h (struct dwarf2_per_cu_data): Add unit_type and lang
7740 fields.
7741 * dwarf2/read.c (process_psymtab_comp_unit): Initialize unit_type and lang
7742 fields.
7743 (process_imported_unit_die): Skip import of c++ CUs.
7744
771dd3a8
TT
77452020-03-16 Tom Tromey <tom@tromey.com>
7746
7747 * p-valprint.c (pascal_object_print_value): Initialize
7748 base_value.
7749
817a7585
AK
77502020-03-16 Anton Kolesov <anton.kolesov@synopsys.com>
7751 Shahab Vahedi <shahab@synopsys.com>
7752
7753 * Makefile.in: Add arch/arc.o
7754 * configure.tgt: Likewise.
7755 * arc-tdep.c (arc_tdesc_init): Use arc_read_description.
7756 (_initialize_arc_tdep): Don't initialize old target descriptions.
aac66a4c 7757 (arc_read_description): New function to cache target descriptions.
817a7585
AK
7758 * arc-tdep.h (arc_read_description): Add proto type.
7759 * arch/arc.c: New file.
7760 * arch/arc.h: Likewise.
7761 * features/Makefile: Replace old target descriptions with new.
7762 * features/arc-arcompact.c: Remove.
7763 * features/arc-arcompact.xml: Likewise.
7764 * features/arc-v2.c: Likewise
7765 * features/arc-v2.xml: Likewise
7766 * features/arc/aux-arcompact.xml: New file.
7767 * features/arc/aux-v2.xml: Likewise.
7768 * features/arc/core-arcompact.xml: Likewise.
7769 * features/arc/core-v2.xml: Likewise.
7770 * features/arc/aux-arcompact.c: Generate.
7771 * features/arc/aux-v2.c: Likewise.
7772 * features/arc/core-arcompact.c: Likewise.
7773 * features/arc/core-v2.c: Likewise.
7774 * target-descriptions (maint_print_c_tdesc_cmd): Support ARC features.
7775
67430cd0
TT
77762020-03-16 Tom Tromey <tromey@adacore.com>
7777
7778 PR gdb/25663:
7779 * dwarf2/read.c (dwarf2_name): Strip leading namespaces after
7780 putting value into bcache.
7781
30efb6c7
SM
77822020-03-16 Simon Marchi <simon.marchi@efficios.com>
7783
7784 PR gdb/21500
7785 * amd64-windows-tdep.c (amd64_windows_init_abi): Rename
7786 to...
7787 (amd64_windows_init_abi_common): ... this. Don't set size of
7788 long type.
7789 (amd64_windows_init_abi): New function.
7790 (amd64_cygwin_init_abi): New function.
7791 (_initialize_amd64_windows_tdep): Use amd64_cygwin_init_abi for
7792 the Cygwin OS ABI.
7793 * i386-windows-tdep.c (_initialize_i386_windows_tdep): Clarify
7794 comment.
7795
8db52437
SM
77962020-03-16 Simon Marchi <simon.marchi@efficios.com>
7797
7798 * windows-tdep.h (is_linked_with_cygwin_dll): New declaration.
7799 * windows-tdep.c (CYGWIN_DLL_NAME): New.
7800 (pe_import_directory_entry): New struct type.
7801 (is_linked_with_cygwin_dll): New function.
7802 * amd64-windows-tdep.c (amd64_windows_osabi_sniffer): Select
7803 GDB_OSABI_CYGWIN if the BFD is linked with the Cygwin DLL.
7804 * i386-windows-tdep.c (i386_windows_osabi_sniffer): Likewise.
7805
5982a56a
SM
78062020-03-16 Simon Marchi <simon.marchi@efficios.com>
7807
7808 * i386-windows-tdep.c: Mass-rename "cygwin" to "windows", except
7809 i386_cygwin_core_osabi_sniffer.
7810
7a1998df
SM
78112020-03-16 Simon Marchi <simon.marchi@efficios.com>
7812
7813 * i386-cygwin-tdep.c: Rename to...
7814 * i386-windows-tdep.c: ... this.
7815 * Makefile.in (ALL_TARGET_OBS): Rename i386-cygwin-tdep.c to
7816 i386-windows-tdep.c.
7817 * configure.tgt: Likewise.
7818
053205cc
SM
78192020-03-16 Simon Marchi <simon.marchi@efficios.com>
7820
7821 * osabi.h (enum gdb_osabi): Add GDB_OSABI_WINDOWS.
7822 * osabi.c (gdb_osabi_names): Add "Windows".
7823 * i386-cygwin-tdep.c (i386_cygwin_osabi_sniffer): Return
7824 GDB_OSABI_WINDOWS when the binary's target is "pei-i386".
7825 (i386_cygwin_core_osabi_sniffer): New function, extracted from
7826 i386_cygwin_osabi_sniffer.
7827 (_initialize_i386_cygwin_tdep): Register OS ABI
7828 GDB_OSABI_WINDOWS for i386.
7829 * amd64-windows-tdep.c (amd64_windows_osabi_sniffer): Return
7830 GDB_OSABI_WINDOWS when the binary's target is "pei-x86-64".
7831 (_initialize_amd64_windows_tdep): Register OS ABI GDB_OSABI_WINDOWS
7832 for x86-64.
7833 * configure.tgt: Use GDB_OSABI_WINDOWS as the default OS ABI
7834 when the target matches '*-*-mingw*'.
7835
fe4b2ee6
SM
78362020-03-16 Simon Marchi <simon.marchi@efficios.com>
7837
7838 * defs.h (enum gdb_osabi): Move to...
7839 * osabi.h (enum gdb_osabi): ... here.
7840 * gdbarch.sh: Include osabi.h in gdbarch.h.
7841 * gdbarch.h: Re-generate.
7842
cb9b645d
SM
78432020-03-16 Simon Marchi <simon.marchi@efficios.com>
7844
7845 * amd64-windows-tdep.c (amd64_windows_osabi_sniffer): New
7846 function.
7847 (_initialize_amd64_windows_tdep): Register osabi sniffer.
7848
3293bbaf
TT
78492020-03-14 Tom Tromey <tom@tromey.com>
7850
7851 * c-typeprint.c (cp_type_print_method_args): Print "__restrict__"
7852 for C++.
7853 (c_type_print_modifier): Likewise. Add "language" parameter.
7854 (c_type_print_varspec_prefix, c_type_print_base_struct_union)
7855 (c_type_print_base_1): Update.
7856 * type-stack.h (enum type_pieces) <tp_atomic, tp_restrict>: New
7857 constants.
7858 * type-stack.c (type_stack::insert): Handle tp_atomic and
7859 tp_restrict.
7860 (type_stack::follow_type_instance_flags): Likewise.
7861 (type_stack::follow_types): Likewise. Merge type-following code.
7862 * c-exp.y (RESTRICT, ATOMIC): New tokens.
7863 (space_identifier, cv_with_space_id)
7864 (const_or_volatile_or_space_identifier_noopt)
7865 (const_or_volatile_or_space_identifier): Remove.
7866 (single_qualifier, qualifier_seq_noopt, qualifier_seq): New
7867 rules.
7868 (ptr_operator, typebase): Update.
7869 (enum token_flag) <FLAG_C>: New constant.
7870 (ident_tokens): Add "restrict", "__restrict__", "__restrict", and
7871 "_Atomic".
7872 (lex_one_token): Handle FLAG_C.
7873
154151a6
KR
78742020-03-14 Kamil Rytarowski <n54@gmx.com>
7875
7876 * m68k-bsd-nat.c (fetch_registers): New variable lwp and pass
7877 it to the ptrace call.
7878 * m68k-bsd-nat.c (store_registers): Likewise.
7879
bc107784
KR
78802020-03-14 Kamil Rytarowski <n54@gmx.com>
7881
7882 * m68k-bsd-nat.c (m68kbsd_supply_gregset): Change type of regs to
7883 gdb_byte *.
7884 * m68k-bsd-nat.c (m68kbsd_supply_fpregset): Likewise.
7885 * m68k-bsd-nat.c (m68kbsd_collect_gregset): Likewise.
7886 * m68k-bsd-nat.c (m68kbsd_supply_pcb): Cast &tmp to gdb_byte *.
7887
01a80117
KR
78882020-03-14 Kamil Rytarowski <n54@gmx.com>
7889
7890 * m68k-bsd-nat.c (m68k_bsd_nat_target): Inherit from
7891 nbsd_nat_target instead of inf_ptrace_target.
7892 * m68k-bsd-nat.c: Include "nbsd-nat.h", as we are now using
7893 nbsd_nat_target.
7894
f90280ca
KR
78952020-03-14 Kamil Rytarowski <n54@gmx.com>
7896
7897 * m68k-bsd-nat.c: Define _KERNTYPES to get the declaration of
7898 register_t.
7899
6def66f1
KR
79002020-03-14 Kamil Rytarowski <n54@gmx.com>
7901
7902 * alpha-bsd-nat.c (fetch_registers): New variable lwp and pass
7903 it to the ptrace call.
7904 * alpha-bsd-nat.c (store_registers): Likewise.
7905
66eaca97
KR
79062020-03-14 Kamil Rytarowski <n54@gmx.com>
7907
7908 * alpha-bsd-nat.c: Remove <sys/procfs.h> and "gregset.h" from
7909 includes.
7910 * alpha-bsd-nat.c (gregset_t, fpregset_t): Remove.
7911 * alpha-bsd-nat.c (supply_gregset, fill_gregset, supply_fpregset,
7912 fill_fpregset): Likewise.
7913
4fed520b
KR
79142020-03-14 Kamil Rytarowski <n54@gmx.com>
7915
7916 * alpha-bsd-nat.c (alpha_netbsd_nat_target): Inherit from
7917 nbsd_nat_target instead of inf_ptrace_target.
7918 * alpha-bsd-nat.c: Include "nbsd-nat.h", as we are now using
7919 nbsd_nat_target.
7920
2190cf06
KR
79212020-03-14 Kamil Rytarowski <n54@gmx.com>
7922
7923 * alpha-bsd-nat.c: Define _KERNTYPES to get the declaration of
7924 register_t.
7925
75c56d3d
KR
79262020-03-14 Kamil Rytarowski <n54@gmx.com>
7927
7928 * arm-nbsd-nat.c (fetch_register): New variable lwp and pass
7929 it to the ptrace call.
7930 * arm-nbsd-nat.c (fetch_fp_register): Likewise.
7931 * arm-nbsd-nat.c (fetch_fp_regs): Likewise.
7932 * arm-nbsd-nat.c (store_register): Likewise.
7933 * arm-nbsd-nat.c (store_regs): Likewise.
7934 * arm-nbsd-nat.c (store_fp_register): Likewise.
7935 * arm-nbsd-nat.c (store_fp_regs): Likewise.
7936
6018d381
KR
79372020-03-14 Kamil Rytarowski <n54@gmx.com>
7938
7939 * arm-nbsd-nat.c (arm_netbsd_nat_target): Inherit from
7940 nbsd_nat_target instead of inf_ptrace_target.
7941 * arm-nbsd-nat.c: Include "nbsd-nat.h", as we are now using
7942 nbsd_nat_target.
7943
013f99f0
KR
79442020-03-14 Kamil Rytarowski <n54@gmx.com>
7945
7946 * x86-bsd-nat.c (x86bsd_dr_get): New variable lwp and pass
7947 it to the ptrace call.
7948 * x86-bsd-nat.c (x86bsd_dr_set): Likewise.
7949
12753073
KR
79502020-03-14 Kamil Rytarowski <n54@gmx.com>
7951
6227b330
KR
7952 * vax-bsd-nat.c (vaxbsd_supply_gregset): New variable lwp and pass
7953 it to the ptrace call.
7954 * vax-bsd-nat.c (vaxbsd_collect_gregset): Likewise.
7955
79562020-03-14 Kamil Rytarowski <n54@gmx.com>
7957
7958 * vax-bsd-nat.c (vaxbsd_supply_gregset): Cast gregs to const
7959 gdb_byte *.
12753073
KR
7960 * vax-bsd-nat.c (vaxbsd_collect_gregset): Cast gregs to void *.
7961
d5be5fa4
KR
79622020-03-14 Kamil Rytarowski <n54@gmx.com>
7963
7964 * vax-bsd-nat.c (vax_bsd_nat_target): Inherit from nbsd_nat_target
7965 instead of inf_ptrace_target.
7966 * vax-bsd-nat.c: Include "nbsd-nat.h", as we are now using
7967 nbsd_nat_target.
7968
8110f842
KR
79692020-03-14 Kamil Rytarowski <n54@gmx.com>
7970
7971 * mips-nbsd-nat.c: Define _KERNTYPES to get the declaration of
7972 register_t.
7973
52feded7
KR
79742020-03-14 Kamil Rytarowski <n54@gmx.com>
7975
7976 * ppc-nbsd-nat.c: Define _KERNTYPES to get the declaration of
7977 register_t.
7978
25567eee
KR
79792020-03-14 Kamil Rytarowski <n54@gmx.com>
7980
7981 * vax-bsd-nat.c: Define _KERNTYPES to get the declaration of
7982 register_t.
7983
426a9c18
TT
79842020-03-13 Tom Tromey <tom@tromey.com>
7985
7986 * value.h (val_print): Don't declare.
7987 * valprint.h (val_print_array_elements)
7988 (val_print_scalar_formatted, generic_val_print): Don't declare.
7989 * valprint.c (generic_val_print_array): Take a struct value.
7990 (generic_val_print_ptr, generic_val_print_memberptr)
7991 (generic_val_print_bool, generic_val_print_int)
7992 (generic_val_print_char, generic_val_print_complex)
7993 (generic_val_print): Remove.
7994 (generic_value_print): Update.
7995 (do_val_print): Remove unused parameters. Don't call
7996 la_val_print.
7997 (val_print): Remove.
7998 (common_val_print): Update. Don't call value_check_printable.
7999 (val_print_scalar_formatted, val_print_array_elements): Remove.
8000 * rust-lang.c (rust_val_print): Remove.
8001 (rust_language_defn): Update.
8002 * p-valprint.c (pascal_val_print): Remove.
8003 (pascal_value_print_inner): Update.
8004 (pascal_object_print_val_fields, pascal_object_print_val):
8005 Remove.
8006 (pascal_object_print_static_field): Update.
8007 * p-lang.h (pascal_val_print): Don't declare.
8008 * p-lang.c (pascal_language_defn): Update.
8009 * opencl-lang.c (opencl_language_defn): Update.
8010 * objc-lang.c (objc_language_defn): Update.
8011 * m2-valprint.c (m2_print_unbounded_array, m2_val_print): Remove.
8012 * m2-lang.h (m2_val_print): Don't declare.
8013 * m2-lang.c (m2_language_defn): Update.
8014 * language.h (struct language_defn) <la_val_print>: Remove.
8015 * language.c (unk_lang_value_print_inner): Rename. Change
8016 argument types.
8017 (unknown_language_defn, auto_language_defn): Update.
8018 * go-valprint.c (go_val_print): Remove.
8019 * go-lang.h (go_val_print): Don't declare.
8020 * go-lang.c (go_language_defn): Update.
8021 * f-valprint.c (f_val_print): Remove.
8022 * f-lang.h (f_value_print): Don't declare.
8023 * f-lang.c (f_language_defn): Update.
8024 * d-valprint.c (d_val_print): Remove.
8025 * d-lang.h (d_value_print): Don't declare.
8026 * d-lang.c (d_language_defn): Update.
8027 * cp-valprint.c (cp_print_value_fields)
8028 (cp_print_value_fields_rtti, cp_print_value): Remove.
8029 (cp_print_static_field): Update.
8030 * c-valprint.c (c_val_print_array, c_val_print_ptr)
8031 (c_val_print_struct, c_val_print_union, c_val_print_int)
8032 (c_val_print_memberptr, c_val_print): Remove.
8033 * c-lang.h (c_val_print_array, cp_print_value_fields)
8034 (cp_print_value_fields_rtti): Don't declare.
8035 * c-lang.c (c_language_defn, cplus_language_defn)
8036 (asm_language_defn, minimal_language_defn): Update.
8037 * ada-valprint.c (ada_val_print_ptr, ada_val_print_num): Remove.
8038 (ada_val_print_enum): Take a struct value.
8039 (ada_val_print_flt, ada_val_print_array, ada_val_print_1)
8040 (ada_val_print): Remove.
8041 (ada_value_print_1): Update.
8042 (printable_val_type): Remove.
8043 * ada-lang.h (ada_val_print): Don't declare.
8044 * ada-lang.c (ada_language_defn): Update.
8045
42331a1e
TT
80462020-03-13 Tom Tromey <tom@tromey.com>
8047
8048 * valprint.c (do_val_print): Update.
8049 * python/python-internal.h (gdbpy_apply_val_pretty_printer): Take
8050 a struct value.
8051 (value_to_value_object_no_release): Declare.
8052 * python/py-value.c (value_to_value_object_no_release): New
8053 function.
8054 * python/py-prettyprint.c (gdbpy_apply_val_pretty_printer): Take a
8055 struct value.
8056 * guile/scm-value.c (vlscm_scm_from_value_no_release): New
8057 function.
8058 * guile/scm-pretty-print.c (gdbscm_apply_val_pretty_printer): Take
8059 a struct value.
8060 * guile/guile-internal.h (vlscm_scm_from_value_no_release):
8061 Declare.
8062 (gdbscm_apply_val_pretty_printer): Take a struct value.
8063 * extension.h (apply_ext_lang_val_pretty_printer): Take a struct
8064 value.
8065 * extension.c (apply_ext_lang_val_pretty_printer): Take a struct
8066 value.
8067 * extension-priv.h (struct extension_language_ops)
8068 <apply_val_pretty_printer>: Take a struct value.
8069 * cp-valprint.c (cp_print_value): Create a struct value.
8070 (cp_print_value): Update.
8071
3a916a97
TT
80722020-03-13 Tom Tromey <tom@tromey.com>
8073
8074 * ada-valprint.c (print_field_values): Call common_val_print.
8075
b59eac37
TT
80762020-03-13 Tom Tromey <tom@tromey.com>
8077
8078 * ada-valprint.c (val_print_packed_array_elements): Remove
8079 bitoffset and val parameters. Call common_val_print.
8080 (ada_val_print_string): Remove offset, address, and original_value
8081 parameters.
8082 (ada_val_print_array): Update.
8083 (ada_value_print_array): New function.
8084 (ada_value_print_1): Call it.
8085
03371129
TT
80862020-03-13 Tom Tromey <tom@tromey.com>
8087
8088 * ada-valprint.c (ada_value_print): Use common_val_print.
8089
2e088f8b
TT
80902020-03-13 Tom Tromey <tom@tromey.com>
8091
8092 * ada-valprint.c (ada_val_print_ref): Use common_val_print.
8093
39ef85a8
TT
80942020-03-13 Tom Tromey <tom@tromey.com>
8095
8096 * ada-valprint.c (ada_value_print_num): New function.
8097 (ada_value_print_1): Use it.
8098
b9fa6e07
TT
80992020-03-13 Tom Tromey <tom@tromey.com>
8100
8101 * ada-valprint.c (ada_value_print_1) <TYPE_CODE_FLT>: Rewrite.
8102
416595d6
TT
81032020-03-13 Tom Tromey <tom@tromey.com>
8104
8105 * ada-valprint.c (ada_value_print_ptr): New function.
8106 (ada_value_print_1): Use it.
8107
5b5e15ec
TT
81082020-03-13 Tom Tromey <tom@tromey.com>
8109
8110 * ada-valprint.c (ada_val_print_gnat_array): Take a struct value;
8111 call common_val_print.
8112 (ada_val_print_1): Update.
8113 (ada_value_print_1): New function.
8114 (ada_value_print_inner): Rewrite.
8115
fbf54e75
TT
81162020-03-13 Tom Tromey <tom@tromey.com>
8117
8118 * cp-valprint.c (cp_print_value_fields): Update.
8119 (cp_print_value): New function.
8120
64b653ca
TT
81212020-03-13 Tom Tromey <tom@tromey.com>
8122
8123 * m2-valprint.c (m2_value_print_inner): Use
8124 cp_print_value_fields.
8125 * cp-valprint.c (cp_print_value_fields): New function.
8126 * c-valprint.c (c_value_print_struct): New function.
8127 (c_value_print_inner): Use c_value_print_struct.
8128 * c-lang.h (cp_print_value_fields): Declare.
8129
6999f067
TT
81302020-03-13 Tom Tromey <tom@tromey.com>
8131
8132 * c-valprint.c (c_value_print_array): New function.
8133 (c_value_print_inner): Use it.
8134
ce80b8bd
TT
81352020-03-13 Tom Tromey <tom@tromey.com>
8136
8137 * c-valprint.c (c_value_print_memberptr): New function.
8138 (c_value_print_inner): Use it.
8139
2faac269
TT
81402020-03-13 Tom Tromey <tom@tromey.com>
8141
8142 * c-valprint.c (c_value_print_int): New function.
8143 (c_value_print_inner): Use it.
8144
da3e2c29
TT
81452020-03-13 Tom Tromey <tom@tromey.com>
8146
8147 * c-valprint.c (c_value_print_ptr): New function.
8148 (c_value_print_inner): Use it.
8149
50836231
TT
81502020-03-13 Tom Tromey <tom@tromey.com>
8151
8152 * c-valprint.c (c_value_print_inner): Rewrite.
8153
4f412b6e
TT
81542020-03-13 Tom Tromey <tom@tromey.com>
8155
8156 * valprint.c (generic_value_print_complex): New function.
8157 (generic_value_print): Use it.
8158
f5354008
TT
81592020-03-13 Tom Tromey <tom@tromey.com>
8160
8161 * valprint.c (generic_val_print_float): Don't call
8162 val_print_scalar_formatted.
8163 (generic_val_print, generic_value_print): Update.
8164
3eec3b05
TT
81652020-03-13 Tom Tromey <tom@tromey.com>
8166
8167 * valprint.c (generic_value_print_char): New function
8168 (generic_value_print): Use it.
8169
fdddfccb
TT
81702020-03-13 Tom Tromey <tom@tromey.com>
8171
8172 * valprint.c (generic_value_print_int): New function.
8173 (generic_value_print): Use it.
8174
6dde7521
TT
81752020-03-13 Tom Tromey <tom@tromey.com>
8176
8177 * valprint.c (generic_value_print_bool): New function.
8178 (generic_value_print): Use it.
8179
4112d2e6
TT
81802020-03-13 Tom Tromey <tom@tromey.com>
8181
8182 * valprint.c (generic_val_print_func): Simplify.
8183 (generic_val_print, generic_value_print): Update.
8184
65786af6
TT
81852020-03-13 Tom Tromey <tom@tromey.com>
8186
8187 * valprint.c (generic_val_print_flags): Remove.
8188 (generic_val_print, generic_value_print): Update.
8189 (val_print_type_code_flags): Add original_value parameter.
8190
40f3ce18
TT
81912020-03-13 Tom Tromey <tom@tromey.com>
8192
8193 * valprint.c (generic_val_print): Update.
8194 (generic_value_print): Update.
8195 * valprint.c (generic_val_print_enum): Don't call
8196 val_print_scalar_formatted.
8197
2a5b130b
TT
81982020-03-13 Tom Tromey <tom@tromey.com>
8199
8200 * valprint.c (generic_value_print): Call generic_value_print_ptr.
8201 * valprint.c (generic_value_print_ptr): New function.
8202
abc66ce9
TT
82032020-03-13 Tom Tromey <tom@tromey.com>
8204
8205 * valprint.c (generic_value_print): Rewrite.
8206
07a32858
TT
82072020-03-13 Tom Tromey <tom@tromey.com>
8208
8209 * p-valprint.c (pascal_object_print_value_fields)
8210 (pascal_object_print_value): New functions.
8211
64d64d3a
TT
82122020-03-13 Tom Tromey <tom@tromey.com>
8213
8214 * p-valprint.c (pascal_value_print_inner): Rewrite.
8215
6a95a1f5
TT
82162020-03-13 Tom Tromey <tom@tromey.com>
8217
8218 * f-valprint.c (f_value_print_innner): Rewrite.
8219
59fcdac6
TT
82202020-03-13 Tom Tromey <tom@tromey.com>
8221
8222 * m2-valprint.c (m2_print_unbounded_array): New overload.
8223 (m2_print_unbounded_array): Update.
8224 (m2_print_array_contents): Take a struct value.
8225 (m2_value_print_inner): Rewrite.
8226
d133c3e1
TT
82272020-03-13 Tom Tromey <tom@tromey.com>
8228
8229 * d-valprint.c (dynamic_array_type): Call d_value_print_inner.
8230 (d_value_print_inner): New function.
8231 * d-lang.h (d_value_print_inner): Declare.
8232 * d-lang.c (d_language_defn): Use d_value_print_inner.
8233
23b0f06b
TT
82342020-03-13 Tom Tromey <tom@tromey.com>
8235
8236 * go-valprint.c (go_value_print_inner): New function.
8237 * go-lang.h (go_value_print_inner): Declare.
8238 * go-lang.c (go_language_defn): Use go_value_print_inner.
8239
5f56f7cb
TT
82402020-03-13 Tom Tromey <tom@tromey.com>
8241
8242 * rust-lang.c (val_print_struct, rust_print_enum): Use the value
8243 API.
8244 (rust_val_print): Rewrite.
8245 (rust_value_print_inner): New function, from rust_val_print.
8246 (rust_language_defn): Use rust_value_print_inner.
8247
26792ee0
TT
82482020-03-13 Tom Tromey <tom@tromey.com>
8249
8250 * ada-valprint.c (ada_value_print_inner): New function.
8251 * ada-lang.h (ada_value_print_inner): Declare.
8252 * ada-lang.c (ada_language_defn): Use ada_value_print_inner.
8253
24051bbe
TT
82542020-03-13 Tom Tromey <tom@tromey.com>
8255
8256 * f-valprint.c (f_value_print_innner): New function.
8257 * f-lang.h (f_value_print_innner): Declare.
8258 * f-lang.c (f_language_defn): Use f_value_print_innner.
8259
c0941be6
TT
82602020-03-13 Tom Tromey <tom@tromey.com>
8261
8262 * p-valprint.c (pascal_value_print_inner): New function.
8263 * p-lang.h (pascal_value_print_inner): Declare.
8264 * p-lang.c (pascal_language_defn): Use pascal_value_print_inner.
8265
62c4663d
TT
82662020-03-13 Tom Tromey <tom@tromey.com>
8267
8268 * m2-valprint.c (m2_value_print_inner): New function.
8269 * m2-lang.h (m2_value_print_inner): Declare.
8270 * m2-lang.c (m2_language_defn): Use m2_value_print_inner.
8271
62182190
TT
82722020-03-13 Tom Tromey <tom@tromey.com>
8273
8274 * opencl-lang.c (opencl_language_defn): Use c_value_print_inner.
8275 * objc-lang.c (objc_language_defn): Use c_value_print_inner.
8276 * c-valprint.c (c_value_print_inner): New function.
8277 * c-lang.h (c_value_print_inner): Declare.
8278 * c-lang.c (c_language_defn, cplus_language_defn)
8279 (asm_language_defn, minimal_language_defn): Use
8280 c_value_print_inner.
8281
1e592a8a
TT
82822020-03-13 Tom Tromey <tom@tromey.com>
8283
8284 * p-valprint.c (pascal_object_print_value_fields): Now static.
8285 * p-lang.h (pascal_object_print_value_fields): Don't declare.
8286
7fe471e9
TT
82872020-03-13 Tom Tromey <tom@tromey.com>
8288
8289 * c-valprint.c (c_val_print_array): Simplify.
8290
d121c6ce
TT
82912020-03-13 Tom Tromey <tom@tromey.com>
8292
8293 * valprint.c (value_print_array_elements): New function.
8294 * valprint.h (value_print_array_elements): Declare.
8295
4dba70ee
TT
82962020-03-13 Tom Tromey <tom@tromey.com>
8297
8298 * printcmd.c (print_formatted): Use value_print_scalar_formatted.
8299 * mips-tdep.c (mips_print_register): Use
8300 value_print_scalar_formatted.
8301
4f9ae810
TT
83022020-03-13 Tom Tromey <tom@tromey.com>
8303
8304 * valprint.h (value_print_scalar_formatted): Declare.
8305 * valprint.c (value_print_scalar_formatted): New function.
8306
156bfec9
TT
83072020-03-13 Tom Tromey <tom@tromey.com>
8308
8309 * valprint.h (generic_value_print): Declare.
8310 * valprint.c (generic_value_print): New function.
8311
2b4e573d
TT
83122020-03-13 Tom Tromey <tom@tromey.com>
8313
8314 * valprint.c (do_val_print): Call la_value_print_inner, if
8315 available.
8316 * rust-lang.c (rust_language_defn): Update.
8317 * p-lang.c (pascal_language_defn): Update.
8318 * opencl-lang.c (opencl_language_defn): Update.
8319 * objc-lang.c (objc_language_defn): Update.
8320 * m2-lang.c (m2_language_defn): Update.
8321 * language.h (struct language_defn) <la_value_print_inner>: New
8322 member.
8323 * language.c (unknown_language_defn, auto_language_defn): Update.
8324 * go-lang.c (go_language_defn): Update.
8325 * f-lang.c (f_language_defn): Update.
8326 * d-lang.c (d_language_defn): Update.
8327 * c-lang.c (c_language_defn, cplus_language_defn)
8328 (asm_language_defn, minimal_language_defn): Update.
8329 * ada-lang.c (ada_language_defn): Update.
8330
a1f6a07c
TT
83312020-03-13 Tom Tromey <tom@tromey.com>
8332
8333 * c-valprint.c (c_value_print): Use common_val_print.
8334
410cf315
TT
83352020-03-13 Tom Tromey <tom@tromey.com>
8336
8337 * cp-valprint.c (cp_print_static_field): Use common_val_print.
8338
72a45c93
TT
83392020-03-13 Tom Tromey <tom@tromey.com>
8340
8341 * f-valprint.c (f77_print_array_1, f_val_print): Use
8342 common_val_print.
8343
040f66bd
TT
83442020-03-13 Tom Tromey <tom@tromey.com>
8345
8346 * riscv-tdep.c (riscv_print_one_register_info): Use
8347 common_val_print.
8348
a6e05a6c
TT
83492020-03-13 Tom Tromey <tom@tromey.com>
8350
8351 * mi/mi-main.c (output_register): Use common_val_print.
8352
3444c526
TT
83532020-03-13 Tom Tromey <tom@tromey.com>
8354
8355 * infcmd.c (default_print_one_register_info): Use
8356 common_val_print.
8357
c2a44efe
TT
83582020-03-13 Tom Tromey <tom@tromey.com>
8359
8360 * valprint.h (common_val_print_checked): Declare.
8361 * valprint.c (common_val_print_checked): New function.
8362 * stack.c (print_frame_arg): Use common_val_print_checked.
8363
b0c26e99
TT
83642020-03-13 Tom Tromey <tom@tromey.com>
8365
8366 * valprint.c (do_val_print): New function, from val_print.
8367 (val_print): Use do_val_print.
8368 (common_val_print): Use do_val_print.
8369
ce3acbe9
TT
83702020-03-13 Tom Tromey <tom@tromey.com>
8371
8372 * valprint.c (value_print): Use scoped_value_mark.
8373
96c7f873
TV
83742020-03-13 Tom de Vries <tdevries@suse.de>
8375
8376 PR symtab/25646
8377 * psymtab.c (partial_symtab::partial_symtab): Don't set
8378 globals_offset and statics_offset. Push element onto
8379 current_global_psymbols and current_static_psymbols stacks.
8380 (concat): New function.
8381 (end_psymtab_common): Set globals_offset and statics_offset. Pop
8382 element from current_global_psymbols and current_static_psymbols
8383 stacks. Concat popped elements to global_psymbols and
8384 static_symbols.
8385 (add_psymbol_to_list): Use current_global_psymbols and
8386 current_static_psymbols stacks.
8387 * psymtab.h (class psymtab_storage): Add current_global_psymbols and
8388 current_static_psymbols fields.
8389
6ba0a321
CB
83902020-03-12 Christian Biesinger <cbiesinger@google.com>
8391
8392 * corelow.c (sniff_core_bfd): Remove.
8393 (class core_target) <m_core_vec>: Remove.
8394 (core_target::core_target): Update.
8395 (core_file_fns): Remove.
8396 (deprecated_add_core_fns): Remove.
8397 (default_core_sniffer): Remove.
8398 (sniff_core_bfd): Remove.
8399 (default_check_format): Remove.
8400 (gdb_check_format): Remove.
8401 (core_target_open): Update.
8402 (core_target::get_core_register_section): Update.
8403 (get_core_registers_cb): Update.
8404 (core_target::fetch_registers): Update.
8405 * gdbcore.h (struct core_fns): Remove.
8406 (deprecated_add_core_fns): Remove.
8407 (default_core_sniffer): Remove.
8408 (default_check_format): Remove.
8409
227031b2
TT
84102020-03-12 Tom Tromey <tom@tromey.com>
8411
8412 * arm-tdep.c (struct arm_mapping_symbol) <value>: Now a
8413 CORE_ADDR.
8414 (struct arm_exidx_entry) <addr>: Now a CORE_ADDR.
8415
53807e9f
TT
84162020-03-12 Tom Tromey <tom@tromey.com>
8417
8418 * remote.c (remote_target::download_tracepoint)
8419 (remote_target::enable_tracepoint)
8420 (remote_target::disable_tracepoint): Use phex, not sprintf_vma.
8421 * breakpoint.c (print_recreate_masked_watchpoint): Use phex, not
8422 sprintf_vma.
8423
64f25102
TT
84242020-03-12 Tom Tromey <tom@tromey.com>
8425
8426 * symfile-mem.c: Update CORE_ADDR size assert.
8427
272cd5a3
SM
84282020-03-12 Simon Marchi <simon.marchi@efficios.com>
8429
8430 * selftest.m4: Move to gdbsupport/.
8431 * acinclude.m4: Update path to selftest.m4.
8432
74cd3f9d
SM
84332020-03-12 Simon Marchi <simon.marchi@efficios.com>
8434
8435 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Rename to...
8436 (SELFTESTS_SRCS): ... this. Add disasm-selftests.c,
8437 gdbarch-selfselftests.c and selftest-arch.c.
8438 (SUBDIR_UNITTESTS_OBS): Rename to...
8439 (SELFTESTS_OBS): ... this.
8440 (COMMON_SFILES): Remove disasm-selftests.c and
8441 gdbarch-selftests.c.
8442 * configure.ac: Don't add selftest-arch.{c,o} to
8443 CONFIG_{SRCS,OBS}.
8444 * disasm-selftests.c, gdbarch-selftests.c: Remove GDB_SELF_TEST
8445 preprocessor conditions.
8446
db6878ac
SM
84472020-03-12 Simon Marchi <simon.marchi@efficios.com>
8448
8449 * configure.ac: Don't source bfd/development.sh.
8450 * selftest.m4: Modify comment.
8451 * configure: Re-generate.
8452
4d696a5c
SM
84532020-03-12 Simon Marchi <simon.marchi@efficios.com>
8454
8455 * selftest.m4 (GDB_AC_SELFTEST): Error out if $development is
8456 not "true" or "false".
8457 * configure: Re-generate.
8458
8dd8e1c7
CB
84592020-03-12 Christian Biesinger <cbiesinger@google.com>
8460
8461 * Makefile.in (HFILES_NO_SRCDIR): Add new arm-nbsd-tdep.h file.
8462 * arm-nbsd-nat.c (arm_supply_gregset): Moved to arm-nbsd-tdep and
8463 renamed to arm_nbsd_supply_gregset.
8464 (fetch_register): Update to call arm_nbsd_supply_gregset.
8465 (fetch_regs): Remove in favor of fetch_register with a -1 regno.
8466 (arm_netbsd_nat_target::fetch_registers): Update.
8467 (fetch_elfcore_registers): Removed.
8468 (_initialize_arm_netbsd_nat): Removed call to deprecated_add_core_fns.
8469 * arm-nbsd-tdep.c (struct arm_nbsd_reg): New struct.
8470 (arm_nbsd_supply_gregset): Moved from arm-nbsd-nat.c and updated to
8471 not require NetBSD system headers.
8472 (arm_nbsd_regset): New struct.
8473 (arm_nbsd_iterate_over_regset_sections): New function.
8474 (arm_netbsd_init_abi_common): Updated to call
8475 set_gdbarch_iterate_over_regset_sections.
8476 * arm-nbsd-tdep.h: New file.
8477
dd69bf7a
KB
84782020-03-11 Kevin Buettner <kevinb@redhat.com>
8479
8480 * symtab.c (find_pc_sect_line): Add check which prevents infinite
8481 recursion.
8482
a0761e34
SM
84832020-03-11 Simon Marchi <simon.marchi@efficios.com>
8484
8485 * configure: Re-generate.
8486
e7a82140
TT
84872020-03-11 Tom Tromey <tromey@adacore.com>
8488
8489 * ada-typeprint.c (print_choices): Fix comment.
8490
dcc050c8
AB
84912020-03-11 Andrew Burgess <andrew.burgess@embecosm.com>
8492
8493 * buildsyms.c (buildsym_compunit::record_line): Avoid accessing
8494 previous item in the list, when the list has no items.
8495
1c33af77
TV
84962020-03-11 Tom de Vries <tdevries@suse.de>
8497
8498 * dwarf2/loc.c (dwarf2_evaluate_property): Handle NULL frame in
8499 PROP_LOCLIST handling code.
8500
8c95582d
AB
85012020-03-10 Andrew Burgess <andrew.burgess@embecosm.com>
8502
8503 * buildsym-legacy.c (record_line): Pass extra parameter to
8504 record_line.
8505 * buildsym.c (buildsym_compunit::record_line): Take an extra
8506 parameter, reduce duplication in the line table, and record the
8507 is_stmt flag in the line table.
8508 * buildsym.h (buildsym_compunit::record_line): Add extra
8509 parameter.
8510 * disasm.c (do_mixed_source_and_assembly_deprecated): Ignore
8511 non-statement lines.
8512 * dwarf2/read.c (dwarf_record_line_1): Add extra parameter, pass
8513 this to the symtab builder.
8514 (dwarf_finish_line): Pass extra parameter to dwarf_record_line_1.
8515 (lnp_state_machine::record_line): Pass a suitable is_stmt flag
8516 through to dwarf_record_line_1.
8517 * infrun.c (process_event_stop_test): When stepping, don't stop at
8518 a non-statement instruction, and only refresh the step info when
8519 we land in the middle of a line's range. Also add an extra
8520 comment.
8521 * jit.c (jit_symtab_line_mapping_add_impl): Initialise is_stmt
8522 field.
8523 * record-btrace.c (btrace_find_line_range): Only record lines
8524 marked as is-statement.
8525 * stack.c (frame_show_address): Show the frame address if we are
8526 in a non-statement sal.
8527 * symmisc.c (dump_symtab_1): Print the is_stmt flag.
8528 (maintenance_print_one_line_table): Print a header for the is_stmt
8529 column, and include is_stmt information in the output.
8530 * symtab.c (find_pc_sect_line): Find lines marked as statements in
8531 preference to non-statements.
8532 (find_pcs_for_symtab_line): Prefer is-statement entries.
8533 (find_line_common): Likewise.
8534 * symtab.h (struct linetable_entry): Add is_stmt field.
8535 (struct symtab_and_line): Likewise.
8536 * xcoffread.c (arrange_linetable): Initialise is_stmt field when
8537 arranging the line table.
8538
e4003a34
TV
85392020-03-07 Tom de Vries <tdevries@suse.de>
8540
8541 * dwarf2/read.c (read_typedef): Treat anonymous typedef as forwarder
8542 DIE.
8543
e8932576
TT
85442020-03-07 Tom Tromey <tom@tromey.com>
8545
8546 * valops.c (value_literal_complex): Remove obsolete comment.
8547 * gdbtypes.h (enum type_code) <TYPE_CODE_FLT>: Remove obsolete
8548 comment.
8549
29734269
SM
85502020-03-06 Simon Marchi <simon.marchi@polymtl.ca>
8551
8552 * infrun.h: Forward-declare thread_info.
8553 (set_step_info): Add thread_info parameter, add doc.
8554 * infrun.c (set_step_info): Add thread_info parameter, move doc
8555 to header.
8556 * infrun.c (process_event_stop_test): Pass thread to
8557 set_step_info call.
8558 * infcmd.c (set_step_frame): Add thread_info pointer, pass it to
8559 set_step_info.
8560 (prepare_one_step): Add thread_info parameter, pass it to
8561 set_step_frame and prepare_one_step (recursive) call.
8562 (step_1): Pass thread to prepare_one_step call.
8563 (step_command_fsm::should_stop): Pass thread to
8564 prepare_one_step.
8565 (until_next_fsm): Pass thread to set_step_frame call.
8566 (finish_command): Pass thread to set_step_info call.
8567
b7d64b29
HD
85682020-03-06 Hannes Domani <ssbssa@yahoo.de>
8569
8570 * windows-tdep.c (windows_solib_create_inferior_hook):
8571 Check if inferior is running.
8572
09f2921c
TV
85732020-03-06 Tom de Vries <tdevries@suse.de>
8574
8575 * NEWS: Fix "the the".
8576 * ctfread.c: Same.
8577
fd760e79
TV
85782020-03-06 Tom de Vries <tdevries@suse.de>
8579
8580 * psymtab.c (psymtab_to_symtab): Don't print "done.".
8581
20ea4a60
AB
85822020-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
8583
8584 * .dir-locals.el: Add a comment referencing the other copies of
8585 this file.
8586
0afbabf0
JB
85872020-03-05 John Baldwin <jhb@FreeBSD.org>
8588
8589 * fbsd-tdep.c (fbsd_make_corefile_notes): Use std::string for
8590 psargs.
8591
842806cb
TBA
85922020-03-05 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
8593
8594 * .gitattributes: New file.
8595
be1e3d3e
TT
85962020-03-04 Tom Tromey <tom@tromey.com>
8597
8598 * symmisc.c (print_symbol_bcache_statistics)
8599 (print_objfile_statistics): Update.
8600 * symfile.c (allocate_symtab): Use intern.
8601 * psymtab.c (partial_symtab::partial_symtab): Use intern.
8602 * objfiles.h (struct objfile_per_bfd_storage) <filename_cache,
8603 macro_cache>: Remove.
8604 <string_cache>: New member.
8605 (struct objfile) <intern>: New methods.
8606 * elfread.c (elf_symtab_read): Use intern.
8607 * dwarf2/read.c (fixup_go_packaging): Intern package name.
8608 (dwarf2_compute_name, dwarf2_physname)
8609 (create_dwo_unit_in_dwp_v1, create_dwo_unit_in_dwp_v2): Intern
8610 names.
8611 (guess_partial_die_structure_name): Update.
8612 (partial_die_info::fixup): Intern name.
8613 (dwarf2_canonicalize_name): Change parameter to objfile. Intern
8614 name.
8615 (dwarf2_name): Intern name. Update.
8616 * buildsym.c (buildsym_compunit::get_macro_table): Use
8617 string_cache.
8618
4e7625fd
TT
86192020-03-04 Tom Tromey <tom@tromey.com>
8620
8621 * jit.c (bfd_open_from_target_memory): Make "target" const.
8622 * corefile.c (gnutarget): Now const.
8623 * gdbcore.h (gnutarget): Now const.
8624
46f9f931
HD
86252020-03-04 Hannes Domani <ssbssa@yahoo.de>
8626
8627 * NEWS: Mention support for WOW64 processes.
8628 * amd64-windows-nat.c (amd64_mappings): Rename and remove static.
8629 (amd64_windows_segment_register_p): Remove static.
8630 (_initialize_amd64_windows_nat): Update.
8631 * configure.nat <windows> (NATDEPFILES): Add i386-windows-nat.o.
8632 * i386-windows-nat.c (context_offset): Update.
8633 (i386_mappings): Rename and remove static.
8634 (i386_windows_segment_register_p): Remove static.
8635 (_initialize_i386_windows_nat): Update.
8636 * windows-nat.c (STATUS_WX86_BREAKPOINT): New macro.
8637 (STATUS_WX86_SINGLE_STEP): New macro.
8638 (EnumProcessModulesEx): New macro.
8639 (Wow64SuspendThread): New macro.
8640 (Wow64GetThreadContext): New macro.
8641 (Wow64SetThreadContext): New macro.
8642 (Wow64GetThreadSelectorEntry): New macro.
8643 (windows_set_context_register_offsets): Add static.
8644 (windows_set_segment_register_p): Likewise.
8645 (windows_add_thread): Adapt for WOW64 processes.
8646 (windows_fetch_one_register): Likewise.
8647 (windows_nat_target::fetch_registers): Likewise.
8648 (windows_store_one_register): Likewise.
8649 (display_selector): Likewise.
8650 (display_selectors): Likewise.
8651 (handle_exception): Likewise.
8652 (windows_continue): Likewise.
8653 (windows_nat_target::resume): Likewise.
8654 (windows_add_all_dlls): Likewise.
8655 (do_initial_windows_stuff): Likewise.
8656 (windows_nat_target::attach): Likewise.
8657 (windows_get_exec_module_filename): Likewise.
8658 (windows_nat_target::create_inferior): Likewise.
8659 (windows_xfer_siginfo): Likewise.
8660 (_initialize_loadable): Initialize Wow64SuspendThread,
8661 Wow64GetThreadContext, Wow64SetThreadContext,
8662 Wow64GetThreadSelectorEntry and EnumProcessModulesEx.
8663 * windows-nat.h (windows_set_context_register_offsets):
8664 Remove declaration.
8665 (windows_set_segment_register_p): Likewise.
8666 (i386_windows_segment_register_p): Add declaration.
8667 (amd64_windows_segment_register_p): Likewise.
8668
440cf44e
LM
86692020-03-04 Luis Machado <luis.machado@linaro.org>
8670
8671 Revert aa66aac47b4dd38f9524ddb5546c08cc09930d37 due to regressions
8672 in "info registers" for AArch64/ARM.
8673
8674 The change caused "info registers" to not print GPR's.
8675
8676 gdb/ChangeLog:
8677
8678 2020-02-01 Shahab Vahedi <shahab@synopsys.com>
8679
8680 * target-descriptions.c (tdesc_register_in_reggroup_p): Return 0
8681 when reg->group is empty and reggroup is not.
8682
1009d92f
TT
86832020-03-03 Tom Tromey <tromey@adacore.com>
8684
8685 * dwarf2/frame.c (struct dwarf2_frame_cache)
8686 <checked_tailcall_bottom, entry_cfa_sp_offset,
8687 entry_cfa_sp_offset_p>: Remove members.
8688 (dwarf2_frame_cache): Call dwarf2_tailcall_sniffer_first.
8689 (dwarf2_frame_prev_register): Don't call
8690 dwarf2_tailcall_sniffer_first.
8691 (dwarf2_append_unwinders): Don't append tailcall unwinder.
8692 * frame-unwind.c (add_unwinder): New fuction.
8693 (frame_unwind_init): Use it. Add tailcall unwinder.
8694
5e5d66b6
AB
86952020-03-03 Andrew Burgess <andrew.burgess@embecosm.com>
8696 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
8697
8698 * f-valprint.c (f_val_print): Handle TYPE_CODE_BOOL, any non-zero
8699 value should be printed as true.
8700
584cf46d
HD
87012020-03-03 Hannes Domani <ssbssa@yahoo.de>
8702
8703 * windows-tdep.c (windows_solib_create_inferior_hook): New function.
8704 (windows_init_abi): Set and use windows_so_ops.
8705
7b973adc
SDJ
87062020-03-03 Sergio Durigan Junior <sergiodj@redhat.com>
8707
8708 * printcmd.c (print_c_string): Check also for TYPE_CODE_PTR
8709 when verifying if dealing with a convenience variable.
8710
bb7b70ab
LM
87112020-03-03 Luis Machado <luis.machado@linaro.org>
8712
8713 * auxv.c (default_print_auxv_entry): Add new AUXV entries.
8714
9822cb57
SM
87152020-03-02 Simon Marchi <simon.marchi@polymtl.ca>
8716
8717 * infrun.c (gdbarch_supports_displaced_stepping): New.
8718 (use_displaced_stepping): Break up conditions in smaller pieces.
8719 Use gdbarch_supports_displaced_stepping.
8720 (displaced_step_prepare_throw): Use
8721 gdbarch_supports_displaced_stepping.
8722
63e163f2
AB
87232020-03-02 Andrew Burgess <andrew.burgess@embecosm.com>
8724
8725 * NEWS: Mention new behaviour of the history filename.
8726 * top.c (write_history_p): Add comment.
8727 (show_write_history_p): Add header comment, give a different
8728 message when history writing is on, but the history filename is
8729 empty.
8730 (history_filename): Add comment.
8731 (history_filename_empty): New function.
8732 (show_history_filename): Add header comment, give a different
8733 message when the filename is empty.
8734 (init_history): Compare history_filename against nullptr, and only
8735 read history if the filename is not empty.
8736 (set_history_filename): Add header comment, and only make
8737 non-empty filenames absolute.
8738 (init_main): Make the filename argument to 'set history filename'
8739 optional.
8740
81b86b97
CB
87412020-03-02 Christian Biesinger <cbiesinger@google.com>
8742
8743 * arm-nbsd-nat.c (arm_supply_fparegset): Rename to...
8744 (arm_supply_vfpregset): ...this, and update to use VFP registers.
8745 (fetch_fp_register): Update.
8746 (fetch_fp_regs): Update.
8747 (store_fp_register): Update.
8748 (store_fp_regs): Update.
8749 (arm_netbsd_nat_target::read_description): New function.
8750 (fetch_elfcore_registers): Update.
8751
24ed6739
AB
87522020-03-02 Andrew Burgess <andrew.burgess@embecosm.com>
8753
8754 * remote.c (remote_target::remote_parse_stop_reply): Don't use the
8755 general_thread if the stop reply is missing a thread-id.
8756 (remote_target::process_stop_reply): Use the first non-exited
8757 thread if the target didn't pass a thread-id.
8758 * infrun.c (do_target_wait): Move call to
8759 switch_to_inferior_no_thread to ....
8760 (do_target_wait_1): ... here.
8761
a84bb2a0
JT
87622020-02-29 Jon Turney <jon.turney@dronecode.org.uk>
8763
8764 * debuginfod-support.c: Include defs.h first.
8765
658dadf0
TV
87662020-02-28 Tom de Vries <tdevries@suse.de>
8767
8768 * symfile.c (set_initial_language): Use default language for lookup.
8769
4ebe4877
SM
87702020-02-28 Simon Marchi <simon.marchi@efficios.com>
8771
8772 * dwarf2/read.c (cutu_reader::init_tu_and_read_dwo_dies): Remove
8773 reader variable, pass `this` to read_cutu_die_from_dwo.
8774
e5da1139
AM
87752020-02-27 Aaron Merey <amerey@redhat.com>
8776
8777 * source.c (open_source_file): Check for nullptr when computing
8778 srcpath.
8779
317f7127
TT
87802020-02-27 Tom Tromey <tromey@adacore.com>
8781
8782 * dwarf2/read.c (struct field_info) <nfields>: Now a method, not a
8783 member.
8784 (dwarf2_add_field): Don't update nfields.
8785 (dwarf2_attach_fields_to_type, process_structure_scope): Update.
8786
3104d9ee
AB
87872020-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
8788
8789 * gdbtypes.c (create_array_type_with_stride): Use std::abs not
8790 abs.
8791
b83470bf
TT
87922020-02-26 Tom Tromey <tom@tromey.com>
8793
8794 * dwarf2/read.c (struct dwarf2_include_psymtab): New.
8795 (dwarf2_create_include_psymtab): Use dwarf2_include_psymtab.
8796 (dwarf2_psymtab::expand_psymtab, dwarf2_psymtab::readin_p)
8797 (dwarf2_psymtab::get_compunit_symtab): Remove null checks for
8798 per_cu_data.
8799
edfe0a0c
TT
88002020-02-26 Tom Tromey <tom@tromey.com>
8801
8802 * dwarf2/index-write.c (psym_index_map): Change type.
8803 (add_address_entry_worker, write_one_signatured_type)
8804 (recursively_count_psymbols, recursively_write_psymbols)
8805 (class debug_names, psyms_seen_size, write_gdbindex)
8806 (write_debug_names): Use partial_symtab, not dwarf2_psymtab.
8807
0d79cdc4
AM
88082020-02-26 Aaron Merey <amerey@redhat.com>
8809
8810 * Makefile.in: Handle optional debuginfod support.
8811 * NEWS: Update.
8812 * README: Add --with-debuginfod summary.
8813 * config.in: Regenerate.
8814 * configure: Regenerate.
8815 * configure.ac: Handle optional debuginfod support.
8816 * debuginfod-support.c: debuginfod helper functions.
8817 * debuginfod-support.h: Ditto.
8818 * doc/gdb.texinfo: Add --with-debuginfod to configure options
8819 summary.
8820 * dwarf2/read.c (dwarf2_get_dwz_file): Query debuginfod servers
8821 when a dwz file cannot be found.
8822 * elfread.c (elf_symfile_read): Query debuginfod servers when a
8823 debuginfo file cannot be found.
8824 * source.c (open_source_file): Query debuginfod servers when a
8825 source file cannot be found.
8826 * top.c (print_gdb_configuration): Include
8827 --{with,without}-debuginfod in the output.
8828
b65ce565
JG
88292020-02-26 Jérémie Galarneau <jeremie.galarneau@efficios.com>
8830
8831 * thread.c (thr_try_catch_cmd): Print thread name.
8832
d4c9a4f8
SM
88332020-02-26 Simon Marchi <simon.marchi@efficios.com>
8834
8835 * dwarf2/loc.h (dwarf2_fetch_die_loc_sect_off,
8836 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
8837 dwarf2_fetch_die_type_sect_off): Move to...
8838 * dwarf2/read.h (dwarf2_fetch_die_loc_sect_off,
8839 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
8840 dwarf2_fetch_die_type_sect_off): ... here.
8841 * dwarf2/read.c (dwarf2_fetch_die_loc_sect_off,
8842 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
8843 dwarf2_fetch_die_type_sect_off): Move doc to header file.
8844
0dce4280
TV
88452020-02-26 Tom de Vries <tdevries@suse.de>
8846
8847 PR gdb/25603
8848 * symfile.c (set_initial_language): Exit-early if
8849 language_mode == language_mode_manual.
8850
450a1bfc
SM
88512020-02-25 Simon Marchi <simon.marchi@polymtl.ca>
8852
8853 * dwarf2/loc.h (dwarf2_read_addr_index): Move...
8854 * dwarf2/read.h (dwarf2_read_addr_index): ... here.
8855 * dwarf2/read.c (dwarf2_read_addr_index): Move doc to header.
8856
9e80cfa1
AB
88572020-02-25 Andrew Burgess <andrew.burgess@embecosm.com>
8858
8859 * gdbtypes.c (create_array_type_with_stride): Handle negative
8860 array strides.
8861 * valarith.c (value_subscripted_rvalue): Likewise.
8862
09624f1f
LM
88632020-02-25 Luis Machado <luis.machado@linaro.org>
8864
8865 * aarch64-tdep.c (aarch64_vnv_type): Fix comment typo.
8866
8cb5117c
SM
88672020-02-25 Simon Marchi <simon.marchi@polymtl.ca>
8868
8869 * loc.h (dwarf2_get_die_type): Move to...
8870 * read.h (dwarf2_get_die_type): ... here.
8871 * read.c (dwarf2_get_die_type): Move doc to header.
8872
c325c44e
JB
88732020-02-25 Joel Brobecker <brobecker@adacore.com>
8874
8875 * copypright.py (EXCLUDE_LIST): Add 'gnulib/config.in' and
8876 'gnulib/Makefile.in' to the list.
8877
4ac93832
TT
88782020-02-24 Tom Tromey <tom@tromey.com>
8879
8880 * dwarf2/read.h (struct type_unit_unshareable) <num_symtabs>:
8881 Remove.
8882 * dwarf2/read.c (dwarf2_cu::setup_type_unit_groups): Use
8883 XOBNEWVEC.
8884
197400e8
TT
88852020-02-24 Tom Tromey <tom@tromey.com>
8886
8887 * dwarf2/read.h (struct dwarf2_per_cu_data) <type_unit_group_p>:
8888 New method.
8889 * dwarf2/read.c (IS_TYPE_UNIT_GROUP): Remove.
8890 (dw2_do_instantiate_symtab, dw2_get_file_names)
8891 (build_type_psymtab_dependencies, load_full_type_unit): Update.
8892
76935768
TT
88932020-02-24 Tom Tromey <tom@tromey.com>
8894
8895 * dwarf2read.c (dwarf2_build_psymtabs_hard): Use
8896 make_scoped_restore.
8897 (dwarf2_psymtab::read_symtab): Don't clear
8898 reading_partial_symbols.
8899
a88ef40d
TV
89002020-02-24 Tom de Vries <tdevries@suse.de>
8901
8902 PR gdb/25592
8903 * stack.c (iterate_over_block_locals): Handle LOC_CONST.
8904
c9af6521
TV
89052020-02-24 Tom de Vries <tdevries@suse.de>
8906
8907 * tui/tui-layout.c (_initialize_tui_layout): Fix help messages for
8908 commands layout next/prev/regs.
8909
5707a07a
TT
89102020-02-22 Tom Tromey <tom@tromey.com>
8911
8912 * dwarf2/loc.h (dwarf2_compile_expr_to_ax): Don't declare.
8913 * dwarf2/loc.c (dwarf2_compile_expr_to_ax): Now static.
8914
3b0fb49e
TT
89152020-02-22 Tom Tromey <tom@tromey.com>
8916
8917 * tui/tui-data.h (TUI_DISASM_WIN): Cast to tui_disasm_window.
8918
283be8bf
TT
89192020-02-22 Tom Tromey <tom@tromey.com>
8920
8921 * tui/tui-win.c (_initialize_tui_win): Add usage text.
8922 * tui/tui-stack.c (_initialize_tui_stack): Add usage text.
8923 * tui/tui-regs.c (_initialize_tui_regs): Add usage text.
8924 * tui/tui.c (_initialize_tui): Add usage text.
8925
ca793b96
TT
89262020-02-22 Tom Tromey <tom@tromey.com>
8927
8928 * tui/tui-win.c (tui_set_focus_command)
8929 (tui_set_win_height_command): Use error_no_arg.
8930 (_initialize_tui_win): Update help text.
8931 (FOCUS_USAGE, WIN_HEIGHT_USAGE): Don't define.
8932
432b5c40
TT
89332020-02-22 Tom Tromey <tom@tromey.com>
8934
8935 * tui/tui-layout.c (extract_display_start_addr): Rewrite.
8936 * tui/tui-disasm.h (struct tui_disasm_window)
8937 <display_start_addr>: Declare.
8938 * tui/tui-source.h (struct tui_source_window)
8939 <display_start_addr>: Declare.
8940 * tui/tui-winsource.h (struct tui_source_window_base)
8941 <show_source_line, display_start_addr>: New methods.
8942 <m_horizontal_offset, m_start_line_or_addr, m_gdbarch, m_content>:
8943 Rename and move to protected section.
8944 * tui/tui-winsource.c (tui_source_window_base::update_source_window)
8945 (tui_source_window_base::do_erase_source_content): Update.
8946 (tui_source_window_base::show_source_line): Now a method.
8947 (tui_source_window_base::show_source_content)
8948 (tui_source_window_base::tui_source_window_base)
8949 (tui_source_window_base::rerender)
8950 (tui_source_window_base::refill)
8951 (tui_source_window_base::do_scroll_horizontal)
8952 (tui_source_window_base::set_is_exec_point_at)
8953 (tui_source_window_base::update_breakpoint_info)
8954 (tui_source_window_base::update_exec_info): Update.
8955 * tui/tui-source.c (tui_source_window::set_contents)
8956 (tui_source_window::showing_source_p)
8957 (tui_source_window::do_scroll_vertical)
8958 (tui_source_window::location_matches_p)
8959 (tui_source_window::line_is_displayed): Update.
8960 (tui_source_window::display_start_addr): New method.
8961 * tui/tui-disasm.c (tui_disasm_window::set_contents)
8962 (tui_disasm_window::do_scroll_vertical)
8963 (tui_disasm_window::location_matches_p): Update.
8964 (tui_disasm_window::display_start_addr): New method.
8965
01b1af32
TT
89662020-02-22 Tom Tromey <tom@tromey.com>
8967
8968 * NEWS: Add entry for gdb.register_window_type.
8969 * tui/tui-layout.h (window_factory): New typedef.
8970 (tui_register_window): Declare.
8971 * tui/tui-layout.c (saved_tui_windows): New global.
8972 (tui_apply_current_layout): Use it.
8973 (tui_register_window): New function.
8974 * python/python.c (do_start_initialization): Call
8975 gdbpy_initialize_tui.
8976 (python_GdbMethods): Add "register_window_type" function.
8977 * python/python-internal.h (gdbpy_register_tui_window)
8978 (gdbpy_initialize_tui): Declare.
8979 * python/py-tui.c: New file.
8980 * Makefile.in (SUBDIR_PYTHON_SRCS): Add py-tui.c.
8981
fc96d20b
TT
89822020-02-22 Tom Tromey <tom@tromey.com>
8983
8984 * tui/tui-io.c (do_tui_putc): Don't omit annotations.
8985
935c78c0
TT
89862020-02-22 Tom Tromey <tom@tromey.com>
8987
8988 * tui/tui-win.c (tui_set_win_focus_to): Move to tui-data.c.
8989 * tui/tui-data.h (tui_set_win_with_focus): Don't declare.
8990 * tui/tui-data.c (tui_set_win_with_focus): Remove.
8991 (tui_set_win_focus_to): Move from tui-win.c.
8992
0240c8f1
TT
89932020-02-22 Tom Tromey <tom@tromey.com>
8994
8995 * tui/tui-layout.c (make_standard_window, get_locator_window): New
8996 functions.
8997 (known_window_types): New global.
8998 (tui_get_window_by_name): Reimplement.
8999 (initialize_known_windows): New function.
9000 (validate_window_name): Rewrite.
9001 (_initialize_tui_layout): Call initialize_known_windows.
9002
fdb01f0c
TT
90032020-02-22 Tom Tromey <tom@tromey.com>
9004
9005 * tui/tui.h (enum tui_win_type) <LOCATOR_WIN, DATA_ITEM_WIN>:
9006 Remove constants.
9007 * tui/tui-winsource.h (struct tui_source_window_base)
9008 <tui_source_window_base>: Remove parameter.
9009 * tui/tui-winsource.c
9010 (tui_source_window_base::tui_source_window_base): Remove
9011 parameter.
9012 (tui_source_window_base::refill): Update.
9013 * tui/tui-stack.h (struct tui_locator_window)
9014 <tui_locator_window>: Update.
9015 * tui/tui-source.h (struct tui_source_window) <tui_source_window>:
9016 Default the constructor.
9017 * tui/tui-regs.h (struct tui_data_item_window)
9018 <tui_data_item_window>: Default the constructor.
9019 (struct tui_data_window) <tui_data_window>: Likewise.
9020 * tui/tui-disasm.h (struct tui_disasm_window) <tui_disasm_window>:
9021 Default the constructor.
9022 * tui/tui-data.h (struct tui_gen_win_info) <tui_gen_win_info>:
9023 Default the constructor.
9024 <type>: Remove.
9025 (struct tui_win_info) <tui_win_info>: Default the constructor.
9026 * tui/tui-data.c (tui_win_info::tui_win_info): Remove.
9027 * tui/tui-command.h (struct tui_cmd_window) <tui_cmd_window>:
9028 Default the constructor.
9029
865a5aec
TT
90302020-02-22 Tom Tromey <tom@tromey.com>
9031
9032 * tui/tui-wingeneral.h (tui_make_all_invisible): Don't declare.
9033 * tui/tui-wingeneral.c (tui_make_all_invisible): Remove.
9034 * tui/tui-win.c (tui_resize_all): Don't call
9035 tui_delete_invisible_windows.
9036 * tui/tui-layout.c (tui_apply_current_layout): Delete windows when
9037 done.
9038 (tui_set_layout): Update.
9039 (tui_add_win_to_layout): Don't call tui_delete_invisible_windows.
9040 * tui/tui-data.h (tui_delete_invisible_windows): Don't declare.
9041 * tui/tui-data.c (tui_delete_invisible_windows): Remove.
9042
e098d18c
TT
90432020-02-22 Tom Tromey <tom@tromey.com>
9044
9045 * tui/tui-win.c (tui_partial_win_by_name): Handle ambiguity
9046 correctly.
9047
eb9c8874
TT
90482020-02-22 Tom Tromey <tom@tromey.com>
9049
9050 * tui/tui-data.c (tui_next_win, tui_prev_win): Reimplement.
9051
7eed1a8e
TT
90522020-02-22 Tom Tromey <tom@tromey.com>
9053
9054 * tui/tui-winsource.h (struct tui_source_window_iterator)
9055 <inner_iterator>: New etytypedef.
9056 <tui_source_window_iterator>: Take "end" parameter.
9057 <tui_source_window_iterator>: Take iterator.
9058 <operator*, advance>: Update.
9059 <m_iter>: Change type.
9060 <m_end>: New field.
9061 (struct tui_source_windows) <begin, end>: Update.
9062 * tui/tui-layout.c (tui_windows): New global.
9063 (tui_apply_current_layout): Clear tui_windows.
9064 (tui_layout_window::apply): Update tui_windows.
9065 * tui/tui-data.h (tui_windows): Declare.
9066 (all_tui_windows): Now inline function.
9067 (class tui_window_iterator, struct all_tui_windows): Remove.
9068
7c043ba6
TT
90692020-02-22 Tom Tromey <tom@tromey.com>
9070
9071 PR tui/17850:
9072 * tui/tui-win.c (tui_gen_win_info::max_width): New method.
9073 * tui/tui-layout.h (class tui_layout_base) <get_sizes>: Add
9074 "height" argument.
9075 (class tui_layout_window) <get_sizes>: Likewise.
9076 (class tui_layout_split) <tui_layout_split>: Add "vertical"
9077 argument.
9078 <get_sizes>: Add "height" argument.
9079 <m_vertical>: New field.
9080 * tui/tui-layout.c (tui_layout_split::clone): Update.
9081 (tui_layout_split::get_sizes): Add "height" argument.
9082 (tui_layout_split::adjust_size, tui_layout_split::apply): Update.
9083 (tui_new_layout_command): Parse "-horizontal".
9084 (_initialize_tui_layout): Update help string.
9085 (tui_layout_split::specification): Add "-horizontal" when needed.
9086 * tui/tui-layout.c (tui_layout_window::get_sizes): Add "height"
9087 argument.
9088 * tui/tui-data.h (struct tui_gen_win_info) <max_width, min_width>:
9089 New methods.
9090
6bc56648
TT
90912020-02-22 Tom Tromey <tom@tromey.com>
9092
9093 * tui/tui-layout.h (enum tui_adjust_result): New.
9094 (class tui_layout_base) <adjust_size>: Return tui_adjust_result.
9095 (class tui_layout_window) <adjust_size>: Return
9096 tui_adjust_result. Rewrite.
9097 (class tui_layout_split) <adjust_size>: Return tui_adjust_result.
9098 * tui/tui-layout.c (tui_layout_split::adjust_size): Update.
9099
c22fef7e
TT
91002020-02-22 Tom Tromey <tom@tromey.com>
9101
9102 * tui/tui-layout.h (class tui_layout_split) <add_split>: Change
9103 parameter and return types.
9104 (class tui_layout_base) <specification>: Add "depth".
9105 (class tui_layout_window) <specification>: Add "depth".
9106 (class tui_layout_split) <specification>: Add "depth".
9107 * tui/tui-layout.c (tui_layout_split::add_split): Change parameter
9108 and return types.
9109 (tui_new_layout_command): Parse sub-layouts.
9110 (_initialize_tui_layout): Update help string.
9111 (tui_layout_window::specification): Add "depth".
9112 (add_layout_command): Update.
9113
ee325b61
TT
91142020-02-22 Tom Tromey <tom@tromey.com>
9115
9116 * NEWS: Add "tui new-layout" item.
9117 * tui/tui-layout.c (add_layout_command): Return cmd_list_element.
9118 Add new-layout command to help text.
9119 (validate_window_name): New function.
9120 (tui_new_layout_command): New function.
9121 (_initialize_tui_layout): Register "new-layout".
9122 (tui_layout_window::specification): New method.
9123 (tui_layout_window::specification): New method.
9124 * tui/tui-layout.h (class tui_layout_base) <specification>: New
9125 method.
9126 (class tui_layout_window) <specification>: New method.
9127 (class tui_layout_split) <specification>: New method.
9128
416eb92d
TT
91292020-02-22 Tom Tromey <tom@tromey.com>
9130
9131 * tui/tui.c (tui_enable): Call tui_set_initial_layout.
9132 * tui/tui-win.c (window_name_completer): Update comment.
9133 * tui/tui-layout.h (class tui_layout_base) <replace_window>:
9134 Declare method.
9135 (class tui_layout_window) <replace_window>: Likewise.
9136 (class tui_layout_split) <replace_window>: Likewise.
9137 (tui_set_layout): Don't declare.
9138 (tui_set_initial_layout): Declare function.
9139 * tui/tui-layout.c (layouts, applied_skeleton, src_regs_layout)
9140 (asm_regs_layout): New globals.
9141 (tui_current_layout, show_layout): Remove.
9142 (tui_set_layout, tui_add_win_to_layout): Rewrite.
9143 (find_layout, tui_apply_layout): New function.
9144 (layout_completer): Remove.
9145 (tui_next_layout): Reimplement.
9146 (tui_next_layout_command): New function.
9147 (tui_set_initial_layout, tui_prev_layout_command): New functions.
9148 (tui_regs_layout): Reimplement.
9149 (tui_regs_layout_command): New function.
9150 (extract_display_start_addr): Rewrite.
9151 (next_layout, prev_layout): Remove.
9152 (tui_layout_window::replace_window): New method.
9153 (tui_layout_split::replace_window): New method.
9154 (destroy_layout): New function.
9155 (layout_list): New global.
9156 (add_layout_command): New function.
9157 (initialize_layouts): Update.
9158 (tui_layout_command): New function.
9159 (_initialize_tui_layout): Install "layout" commands.
9160 * tui/tui-data.h (enum tui_layout_type): Remove.
9161 (tui_current_layout): Don't declare.
9162
0dbc2fc7
TT
91632020-02-22 Tom Tromey <tom@tromey.com>
9164
9165 * tui/tui-regs.c (tui_reg_layout): Remove.
9166 (tui_reg_command): Use tui_regs_layout.
9167 * tui/tui-layout.h (tui_reg_command): Declare.
9168 * tui/tui-layout.c (tui_reg_command): New function.
9169
5afe342e
TT
91702020-02-22 Tom Tromey <tom@tromey.com>
9171
9172 * tui/tui.c (tui_rl_delete_other_windows): Call
9173 tui_remove_some_windows.
9174 * tui/tui-layout.h (class tui_layout_base) <remove_windows>:
9175 Declare method.
9176 (class tui_layout_window) <remove_windows>: New method.
9177 (class tui_layout_split) <remove_windows>: Declare.
9178 (tui_remove_some_windows): Declare.
9179 * tui/tui-layout.c (tui_remove_some_windows): New function.
9180 (tui_layout_split::remove_windows): New method.
9181
427326a8
TT
91822020-02-22 Tom Tromey <tom@tromey.com>
9183
9184 * tui/tui.c (tui_rl_change_windows): Call tui_next_layout.
9185 * tui/tui-layout.h (tui_next_layout): Declare.
9186 * tui/tui-layout.c (tui_next_layout): New function.
9187
3fe12b6d
TT
91882020-02-22 Tom Tromey <tom@tromey.com>
9189
9190 * tui/tui-regs.c (tui_data_window::display_registers_from): Use
9191 correct coordinates.
9192
59b8b5d2
TT
91932020-02-22 Tom Tromey <tom@tromey.com>
9194
9195 * tui/tui-layout.h (tui_add_win_to_layout): Add comment.
9196 * tui/tui-layout.c (tui_add_win_to_layout): Add assert. Remove
9197 DATA_WIN case.
9198
2a3d458b
TT
91992020-02-22 Tom Tromey <tom@tromey.com>
9200
9201 * tui/tui-disasm.c (tui_get_low_disassembly_address): Use
9202 TUI_DISASM_WIN, not tui_win_list.
9203
3f0cbb04
TT
92042020-02-22 Tom Tromey <tom@tromey.com>
9205
9206 * valprint.c (generic_val_print_enum_1)
9207 (val_print_type_code_flags): Style member names.
9208 * rust-lang.c (val_print_struct, rust_print_enum)
9209 (rust_print_struct_def, rust_internal_print_type): Style member
9210 names.
9211 * p-valprint.c (pascal_object_print_value_fields): Style member
9212 names. Only call fprintf_symbol_filtered for static members.
9213 * m2-typeprint.c (m2_record_fields, m2_enum): Style member names.
9214 * f-valprint.c (f_val_print): Style member names.
9215 * f-typeprint.c (f_type_print_base): Style member names.
9216 * cp-valprint.c (cp_print_value_fields): Style member names. Only
9217 call fprintf_symbol_filtered for static members.
9218 (cp_print_class_member): Style member names.
9219 * c-typeprint.c (c_print_type_1, c_type_print_base_1): Style
9220 member names.
9221 * ada-valprint.c (ada_print_scalar): Style enum names.
9222 (ada_val_print_enum): Likewise.
9223 * ada-typeprint.c (print_enum_type): Style enum names.
9224
d4d947ae
TT
92252020-02-21 Tom Tromey <tom@tromey.com>
9226
9227 * psympriv.h (struct partial_symtab): Update comment.
9228
e94e944b
TT
92292020-02-21 Tom Tromey <tromey@adacore.com>
9230
9231 * mips-tdep.h (mips_pc_is_mips16, mips_pc_is_micromips): Parameter
9232 type is CORE_ADDR.
9233
1eb73179
TV
92342020-02-21 Tom de Vries <tdevries@suse.de>
9235
9236 PR gdb/25534
9237 * psymtab.c (partial_symtab::read_dependencies): Don't read dependency
9238 if dependencies[i]->user != NULL.
9239
4f180d53
AT
92402020-02-21 Ali Tamur <tamur@google.com>
9241
9242 * dwarf2/read.c (dwarf2_name): Add null check.
9243
22b6cd70
TT
92442020-02-20 Tom Tromey <tom@tromey.com>
9245
9246 * dwarf2/read.c (dwarf2_find_containing_comp_unit): Use ">", not
9247 ">=", in binary search.
9248 (dwarf2_find_containing_comp_unit): New overload.
9249 (run_test): New self-test.
9250 (_initialize_dwarf2_read): Register new test.
9251
bd0cf5a6
NC
92522020-02-20 Nelson Chu <nelson.chu@sifive.com>
9253
9254 * riscv-tdep.c: Updated since the DECLARE_CSR is changed.
9255 * riscv-tdep.h: Likewise.
9256 * features/riscv/rebuild-csr-xml.sh: Generate the 64bit-csr.xml without
9257 rv32-only CSR.
9258 * features/riscv/64bit-csr.xml: Regenerated.
9259
3f702acd
SDJ
92602020-02-20 Sergio Durigan Junior <sergiodj@redhat.com>
9261 Tom Tromey <tom@tromey.com>
9262
9263 * utils.c (fputs_maybe_filtered): Call 'stream->puts' instead
9264 of 'fputc_unfiltered'.
9265 (putchar_unfiltered): Call 'fputc_unfiltered'.
9266 (fputc_unfiltered): Call 'fputs_unfiltered'.
9267
d13c7322
AB
92682020-02-20 Andrew Burgess <andrew.burgess@embecosm.com>
9269
9270 * config.in: Regenerate.
9271 * configure: Regenerate.
9272 * configure.ac: Add --with-python-libdir option.
9273 * main.c: Use WITH_PYTHON_LIBDIR.
9274
869d8950
TT
92752020-02-19 Tom Tromey <tom@tromey.com>
9276
9277 * symtab.c (general_symbol_info::compute_and_set_names): Use
9278 obstack_strndup. Simplify call to symbol_set_demangled_name.
9279
298e9637
SM
92802020-02-19 Simon Marchi <simon.marchi@efficios.com>
9281
9282 * dwarf2/read.c (allocate_signatured_type_table,
9283 allocate_dwo_unit_table, allocate_type_unit_groups_table,
9284 allocate_dwo_file_hash_table, allocate_dwp_loaded_cutus_table):
9285 Remove objfile parameter, update all callers.
9286
08410482
DE
92872020-02-19 Doug Evans <dje@google.com>
9288
9289 PR rust/25535
9290 * rust-lang.c (rust_print_enum): Apply embedded_offset to
9291 rust_enum_variant calculation.
9292
dfdeeca1
TT
92932020-02-19 Tom Tromey <tromey@adacore.com>
9294
9295 * mips-tdep.h (mips_pc_is_mips): Parameter type is CORE_ADDR.
9296
2ef5453b
TT
92972020-02-19 Tom Tromey <tromey@adacore.com>
9298
9299 * ada-lang.c (cache_symbol): Use obstack_strdup.
9300
9f1528a1
AB
93012020-02-19 Andrew Burgess <andrew.burgess@embecosm.com>
9302
9303 * configure: Regenerate.
9304
d3c22fa8
TT
93052020-02-19 Tom Tromey <tromey@adacore.com>
9306
9307 * python/python.c (do_start_initialization): Use XNEWVEC. Remove
9308 NULL check.
9309
bf84f706
MR
93102020-02-19 Maciej W. Rozycki <macro@wdc.com>
9311
9312 * NEWS: Mention RISC-V GNU/Linux GDBserver support.
9313
d1c9b20f
AB
93142020-02-19 Andrew Burgess <andrew.burgess@embecosm.com>
9315
9316 * arch/riscv.c (struct riscv_gdbarch_features_hasher): Only define
9317 if GDBSERVER is not defined.
9318 (riscv_tdesc_cache): Likewise, also store const target_desc.
9319 (STATIC_IN_GDB): Define.
9320 (riscv_create_target_description): Update declaration with
9321 STATIC_IN_GDB.
9322 (riscv_lookup_target_description): New function, only define if
9323 GDBSERVER is not defined.
9324 * arch/riscv.h (riscv_create_target_description): Declare only
9325 when GDBSERVER is defined.
9326 (riscv_lookup_target_description): New declaration when GDBSERVER
9327 is not defined.
9328 * nat/riscv-linux-tdesc.c (riscv_linux_read_description): Rename to...
9329 (riscv_linux_read_features): ...this, and return
9330 riscv_gdbarch_features instead of target_desc.
9331 * nat/riscv-linux-tdesc.h: Include 'arch/riscv.h'.
9332 (riscv_linux_read_description): Rename to...
9333 (riscv_linux_read_features): ...this.
9334 * riscv-linux-nat.c (riscv_linux_nat_target::read_description):
9335 Update to use riscv_gdbarch_features and
9336 riscv_lookup_target_description.
9337 * riscv-tdep.c (riscv_find_default_target_description): Use
9338 riscv_lookup_target_description instead of
9339 riscv_create_target_description.
9340
373d7ac0
SM
93412020-02-18 Simon Marchi <simon.marchi@efficios.com>
9342
9343 * valprint.c (generic_val_print_enum_1): When printing a flag
9344 enum with value 0 and there is no enumerator with value 0, print
9345 just "0" instead of "(unknown: 0x0)".
9346
b29a2df0
SM
93472020-02-18 Simon Marchi <simon.marchi@efficios.com>
9348
9349 * valprint.c (generic_val_print_enum_1): Print unknown part of
9350 flag enum in hex.
9351
6740f0cc
SM
93522020-02-18 Simon Marchi <simon.marchi@efficios.com>
9353
9354 * dwarf2/read.c (update_enumeration_type_from_children): Allow
9355 flag enums to contain duplicate enumerators.
9356 * valprint.c (generic_val_print_enum_1): Update comment.
9357
edd45eb0
SM
93582020-02-18 Simon Marchi <simon.marchi@efficios.com>
9359
9360 * dwarf2/read.c: Include "count-one-bits.h".
9361 (update_enumeration_type_from_children): If an enumerator has
9362 multiple bits set, don't treat the enumeration as a "flag enum".
9363 * valprint.c (generic_val_print_enum_1): Assert that enumerators
9364 of flag enums have 0 or 1 bit set.
9365
6d0cf446
BE
93662020-02-18 Bernd Edlinger <bernd.edlinger@hotmail.de>
9367
9368 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Use an explicit
9369 conversion.
9370 * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise.
9371 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn): Likewise.
9372 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
9373 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Likewise.
9374 * s390-tdep.c (s390_displaced_step_copy_insn): Likewise.
9375
7001c1b7
SM
93762020-02-18 Simon Marchi <simon.marchi@efficios.com>
9377
9378 * MAINTAINERS: Change palmer@sifive.com to palmer@dabbelt.com.
9379
fdb61c6c
SM
93802020-02-14 Simon Marchi <simon.marchi@efficios.com>
9381
9382 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Use
9383 displaced_step_closure_up.
9384 * aarch64-tdep.h (aarch64_displaced_step_copy_insn): Likewise.
9385 (struct displaced_step_closure_up):
9386 * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise.
9387 * amd64-tdep.h (amd64_displaced_step_copy_insn): Likewise.
9388 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn):
9389 Likewise.
9390 * gdbarch.sh (displaced_step_copy_insn): Likewise.
9391 * gdbarch.c, gdbarch.h: Re-generate.
9392 * i386-linux-tdep.c (i386_linux_displaced_step_copy_insn): Use
9393 displaced_step_closure_up.
9394 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
9395 * i386-tdep.h (i386_displaced_step_copy_insn): Likewise.
9396 * infrun.h (displaced_step_closure_up): New type alias.
9397 (struct displaced_step_inferior_state) <step_closure>: Change
9398 type to displaced_step_closure_up.
9399 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Use
9400 displaced_step_closure_up.
9401 * s390-tdep.c (s390_displaced_step_copy_insn): Likewise.
9402
a4a38eb4
TT
94032020-02-14 Tom Tromey <tom@tromey.com>
9404
9405 * minidebug.c (gnu_debug_key): New global.
9406 (find_separate_debug_file_in_section): Use it.
9407
e8217e61
SM
94082020-02-14 Simon Marchi <simon.marchi@efficios.com>
9409
9410 * gdbarch.sh (displaced_step_copy_insn): Change return type to an
9411 std::unique_ptr.
9412 * gdbarch.c: Re-generate.
9413 * gdbarch.h: Re-generate.
9414 * infrun.c (displaced_step_prepare_throw): Adjust to std::unique_ptr
9415 change.
9416 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Change return
9417 type to std::unique_ptr.
9418 * aarch64-tdep.h (aarch64_displaced_step_copy_insn): Likewise.
9419 * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise.
9420 * amd64-tdep.h (amd64_displaced_step_copy_insn): Likewise.
9421 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn): Likewise.
9422 * i386-linux-tdep.c (i386_linux_displaced_step_copy_insn): Likewise.
9423 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
9424 * i386-tdep.h (i386_displaced_step_copy_insn): Likewise.
9425 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Likewise.
9426 * s390-tdep.c (s390_displaced_step_copy_insn): Likewise.
9427
d8d83535
SM
94282020-02-14 Simon Marchi <simon.marchi@efficios.com>
9429
9430 * infrun.c (get_displaced_step_closure_by_addr): Adjust to
9431 std::unique_ptr.
9432 (displaced_step_clear): Rename to...
9433 (displaced_step_reset): ... this. Just call displaced->reset ().
9434 (displaced_step_clear_cleanup): Rename to...
9435 (displaced_step_reset_cleanup): ... this.
9436 (displaced_step_prepare_throw): Adjust to std::unique_ptr.
9437 (displaced_step_fixup): Likewise.
9438 (resume_1): Likewise.
9439 (handle_inferior_event): Restore child's memory before calling
9440 displaced_step_fixup on the parent.
9441 * infrun.h (displaced_step_inferior_state) <reset>: Adjust
9442 to std::unique_ptr.
9443 <step_closure>: Change type to std::unique_ptr.
9444
5f661e03
SM
94452020-02-14 Simon Marchi <simon.marchi@efficios.com>
9446
9447 * arm-tdep.c: Include count-one-bits.h.
9448 (cleanup_block_store_pc): Use count_one_bits.
9449 (cleanup_block_load_pc): Use count_one_bits.
9450 (arm_copy_block_xfer): Use count_one_bits.
9451 (thumb2_copy_block_xfer): Use count_one_bits.
9452 (thumb_copy_pop_pc_16bit): Use count_one_bits.
9453 * arch/arm-get-next-pcs.c: Include count-one-bits.h.
9454 (thumb_get_next_pcs_raw): Use count_one_bits.
9455 (arm_get_next_pcs_raw): Use count_one_bits_l.
9456 * arch/arm.c (bitcount): Remove.
9457 * arch/arm.h (bitcount): Remove.
9458
8084e579
TT
94592020-02-14 Tom Tromey <tromey@adacore.com>
9460
9461 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first):
9462 Update.
9463 * dwarf2/loc.h (call_site_find_chain): Return unique_xmalloc_ptr.
9464 * dwarf2/loc.c (call_site_find_chain_1): Return
9465 unique_xmalloc_ptr.
9466 (call_site_find_chain): Likewise.
9467
258bf0ee
RB
94682020-02-14 Richard Biener <rguenther@suse.de>
9469
9470 * dwarf2/read.c (lnp_state_machine::handle_special_opcode): Apply CSE
9471 on expression with division operators.
9472
f98a8458
AKS
94732020-02-13 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
9474
9475 * MAINTAINERS (Write After Approval): Adding myself.
9476
d1437c0e
TT
94772020-02-12 Tom Tromey <tom@tromey.com>
9478
9479 * event-loop.c (event_data, gdb_event, event_handler_func):
9480 Remove.
9481
3d4560f7
TT
94822020-02-12 Tom Tromey <tom@tromey.com>
9483
9484 * dwarf2/frame.c (dwarf2_frame_bfd_data): New global.
9485 (dwarf2_frame_objfile_data): Add comment.
9486 (find_comp_unit, set_comp_unit): New functions.
9487 (dwarf2_frame_find_fde): Use find_comp_unit.
9488 (dwarf2_build_frame_info): Use set_comp_unit.
9489
21982304
TT
94902020-02-12 Tom Tromey <tom@tromey.com>
9491
9492 * dwarf2/frame.c (struct comp_unit) <objfile>: Remove.
9493 (comp_unit): Don't initialize objfile.
9494 (execute_cfa_program): Add text_offset parameter.
9495 (execute_cfa_program_test, dwarf2_fetch_cfa_info)
9496 (dwarf2_frame_cache): Update.
9497 (dwarf2_build_frame_info): Don't set "objfile" member.
9498
4debb237
TT
94992020-02-12 Tom Tromey <tom@tromey.com>
9500
9501 * dwarf2/frame.c (decode_frame_entry_1): Add gdbarch parameter.
9502 (decode_frame_entry): Likewise.
9503 (dwarf2_build_frame_info): Update.
9504
0d404d44
TT
95052020-02-12 Tom Tromey <tom@tromey.com>
9506
9507 * dwarf2/frame.c (struct comp_unit) <obstack>: New member.
9508 (decode_frame_entry_1): Use the comp_unit obstack.
9509
a7a3ae5c
TT
95102020-02-12 Tom Tromey <tom@tromey.com>
9511
9512 * dwarf2/frame.c (struct comp_unit): Add initializers and
9513 constructor.
9514 (dwarf2_frame_objfile_data): Store a comp_unit.
9515 (dwarf2_frame_find_fde): Update.
9516 (dwarf2_build_frame_info): Use "new".
9517
a9d65418
TT
95182020-02-12 Tom Tromey <tom@tromey.com>
9519
9520 * dwarf2/frame.c (struct dwarf2_fde_table): Remove.
9521 (dwarf2_fde_table): Typedef for std::vector.
9522 (dwarf2_frame_objfile_data): Remove the deleter. Now static.
9523 (dwarf2_frame_find_fde, add_fde, decode_frame_entry_1)
9524 (decode_frame_entry): Update.
9525 (dwarf2_build_frame_info): Use "new".
9526
7559c217
CB
95272020-02-12 Christian Biesinger <cbiesinger@google.com>
9528
9529 * arm-tdep.c (arm_gdbarch_init): Update.
9530 * arm-tdep.h (struct gdbarch_tdep) <have_fpa_registers,
9531 have_wmmx_registers, have_vfp_pseudos, have_neon_pseudos,
9532 have_neon, is_m>: Change to bool.
9533
aeefc73c
CB
95342020-02-12 Christian Biesinger <cbiesinger@google.com>
9535
9536 * arm-tdep.c (arm_dump_tdep): Print more fields of tdep.
9537
d27b8e5f
TT
95382020-02-12 Tom Tromey <tom@tromey.com>
9539
9540 * dwarf2/loc.c (struct dwarf_expr_baton): Remove.
9541
cd5900f3
HD
95422020-02-12 Hannes Domani <ssbssa@yahoo.de>
9543
9544 * windows-tdep.c (struct windows_gdbarch_data): Add tib_ptr_type.
9545 (windows_get_tlb_type): Use windows_gdbarch_data->tib_ptr_type.
9546
f056b22b
TT
95472020-02-11 Tom Tromey <tom@tromey.com>
9548
9549 * psymtab.h: Update comment.
9550
f92ff6b5
TT
95512020-02-11 Tom Tromey <tom@tromey.com>
9552
9553 * gdb_obstack.h (struct auto_obstack): Use
9554 DISABLE_COPY_AND_ASSIGN.
9555
3fd6912b
TT
95562020-02-11 Tom Tromey <tom@tromey.com>
9557
9558 * dwarf2/frame.h (struct objfile): Don't forward declare.
9559
69ed9b74
CB
95602020-02-11 Christian Biesinger <cbiesinger@google.com>
9561
9562 * cris-tdep.c (cris_supply_gregset): Change signature to match
9563 what struct regset expects.
9564 (cris_regset): New struct.
9565 (fetch_core_registers): Remove.
9566 (cris_iterate_over_regset_sections): New function.
9567 (_initialize_cris_tdep): Don't call deprecated_add_core_fns.
9568 (cris_gdbarch_init): Call set_gdbarch_iterate_over_regset_sections.
9569
bda874f6
CB
95702020-02-11 Christian Biesinger <cbiesinger@google.com>
9571
9572 * arch/arm.h (enum gdb_regnum): Add comment for the FP0..7
9573 registers.
9574
754e1564
CB
95752020-02-11 Christian Biesinger <cbiesinger@google.com>
9576
9577 * arm-tdep.c (arm_dump_tdep): Add \n in fprintf.
9578
8ddd8e0e
SM
95792020-02-11 Simon Marchi <simon.marchi@efficios.com>
9580
9581 * configure: Re-generate.
9582
898e7f60
SM
95832020-02-11 Simon Marchi <simon.marchi@efficios.com>
9584
9585 * configure: Re-generate.
9586
58df732b
SM
95872020-02-11 Simon Marchi <simon.marchi@efficios.com>
9588
9589 * acinclude: Update warning.m4 path.
9590 * warning.m4: Move to gdbsupport.
9591
da5bd37e
TT
95922020-02-11 Tom Tromey <tromey@adacore.com>
9593
9594 * remote.c (remote_console_output): Update.
9595 * printcmd.c (printf_command): Update.
9596 * event-loop.c (gdb_wait_for_event): Update.
9597 * linux-nat.c (sigchld_handler): Update.
9598 * remote-sim.c (gdb_os_write_stdout): Update.
9599 (gdb_os_flush_stdout): Update.
9600 (gdb_os_flush_stderr): Update.
9601 (gdb_os_write_stderr): Update.
9602 * exceptions.c (print_exception): Update.
9603 * remote-fileio.c (remote_fileio_func_read): Update.
9604 (remote_fileio_func_write): Update.
9605 * tui/tui.c (tui_enable): Update.
9606 * tui/tui-interp.c (tui_interp::init): Update.
9607 * utils.c (init_page_info): Update.
9608 (putchar_unfiltered, fputc_unfiltered): Update.
9609 (gdb_flush): Update.
9610 (emit_style_escape): Update.
9611 (flush_wrap_buffer, fputs_maybe_filtered): Update.
9612 * ui-file.c (ui_file_isatty, ui_file_read, ui_file_write)
9613 (ui_file_write_async_safe, ui_file_flush, ui_file_puts): Remove.
9614 (stderr_file::write): Update.
9615 (stderr_file::puts): Update.
9616 * ui-file.h (ui_file_isatty, ui_file_write)
9617 (ui_file_write_async_safe, ui_file_read, ui_file_flush)
9618 (ui_file_puts): Don't declare.
9619
85f0dd3c
TV
96202020-02-10 Tom de Vries <tdevries@suse.de>
9621
9622 * dwarf2/read.c (process_psymtab_comp_unit_reader): Cast concat NULL
9623 sentinel to char *.
9624
2e927613
TV
96252020-02-09 Tom de Vries <tdevries@suse.de>
9626
9627 * dwarf2read.c (process_psymtab_comp_unit_reader): Append CU offset to
9628 filename if it matches "<artificial>".
9629
6bafc845
HD
96302020-02-09 Hannes Domani <ssbssa@yahoo.de>
9631
9632 * windows-tdep.c (struct enum_value_name): New struct.
9633 (create_enum): New function.
9634 (windows_get_siginfo_type): Create and use enum types.
9635
7928d571
HD
96362020-02-09 Hannes Domani <ssbssa@yahoo.de>
9637
9638 * NEWS: Mention $_siginfo support for Windows.
9639 * windows-nat.c (handle_exception): Set siginfo_er.
9640 (windows_nat_target::mourn_inferior): Reset siginfo_er.
9641 (windows_xfer_siginfo): New function.
9642 (windows_nat_target::xfer_partial): Call windows_xfer_siginfo.
9643 * windows-tdep.c (struct windows_gdbarch_data): New struct.
9644 (init_windows_gdbarch_data): New function.
9645 (get_windows_gdbarch_data): New function.
9646 (windows_get_siginfo_type): New function.
9647 (windows_init_abi): Register windows_get_siginfo_type.
9648 (_initialize_windows_tdep): Register init_windows_gdbarch_data.
9649
6751ebae
TT
96502020-02-08 Tom Tromey <tom@tromey.com>
9651
9652 * dwarf2/read.c (class cutu_reader) <cutu_reader,
9653 init_tu_and_read_dwo_dies>: Remove "keep" parameter.
9654 <keep>: Declare method.
9655 <m_keep>: Remove member.
9656 <~cutu_reader>: Remove.
9657 (cutu_reader::init_tu_and_read_dwo_dies): Update.
9658 (cutu_reader::cutu_reader): Update.
9659 (cutu_reader::keep): Rename from ~cutu_reader.
9660 (process_psymtab_comp_unit, build_type_psymtabs_1)
9661 (process_skeletonless_type_unit, load_partial_comp_unit)
9662 (load_full_comp_unit, dwarf2_read_addr_index)
9663 (read_signatured_type): Update.
9664
135f5437
TT
96652020-02-08 Tom Tromey <tom@tromey.com>
9666
9667 * dwarf2/read.c (process_psymtab_comp_unit_reader): Remove
9668 "want_partial_unit" parameter.
9669 (process_psymtab_comp_unit): Change want_partial_unit to bool.
9670 Inline check for DW_TAG_partial_unit.
9671 (dwarf2_build_psymtabs_hard, scan_partial_symbols): Update.
9672
9f66ff1c
TT
96732020-02-08 Tom Tromey <tom@tromey.com>
9674
9675 * dwarf2/read.c (read_n_bytes, read_direct_string): Move to
9676 read.c.
9677 * dwarf2/leb.h (read_n_bytes, read_direct_string): Move from
9678 read.c.
9679
c8a7a66f
TT
96802020-02-08 Tom Tromey <tom@tromey.com>
9681
9682 * dwarf2/read.c (read_address): Move to comp-unit.c.
9683 (dwarf2_rnglists_process, dwarf2_ranges_process)
9684 (read_attribute_value, dwarf_decode_lines_1)
9685 (var_decode_location, decode_locdesc): Update.
9686 * dwarf2/comp-unit.c (comp_unit_head::read_address): Move from
9687 read.c. Remove "cu" parameter.
9688 * dwarf2/comp-unit.h (struct comp_unit_head) <read_address>: New
9689 method.
9690
8266302d
TT
96912020-02-08 Tom Tromey <tom@tromey.com>
9692
9693 * dwarf2/read.c (read_attribute_value, read_indirect_string)
9694 (read_indirect_line_string): Update.
9695 * dwarf2/comp-unit.c (read_offset): Remove.
9696 (read_comp_unit_head): Update.
9697 * dwarf2/comp-unit.h (struct comp_unit_head) <read_offset>: New
9698 method.
9699 (read_offset): Don't declare.
9700
4057dfde
TT
97012020-02-08 Tom Tromey <tom@tromey.com>
9702
9703 * Makefile.in (COMMON_SFILES): Add dwarf2/comp-unit.c.
9704 * dwarf2/read.c (struct comp_unit_head): Move to
9705 dwarf2/comp-unit.h.
9706 (enum class rcuh_kind): Move to comp-unit.h.
9707 (get_cu_length, offset_in_cu_p): Now methods on comp_unit_head.
9708 (read_comp_unit_head, error_check_comp_unit_head)
9709 (read_and_check_comp_unit_head): Move to comp-unit.c.
9710 (read_offset, dwarf_unit_type_name): Likewise.
9711 (create_debug_type_hash_table, read_cutu_die_from_dwo)
9712 (cutu_reader::cutu_reader, read_call_site_scope)
9713 (find_partial_die, follow_die_offset): Update.
9714 * dwarf2/comp-unit.h: New file, from dwarf2read.c.
9715
24aa364d
TT
97162020-02-08 Tom Tromey <tom@tromey.com>
9717
9718 * dwarf2/read.c (read_offset_1): Move to leb.c.
9719 (read_abbrev_offset, read_offset, dwarf_decode_line_header)
9720 (dwarf_decode_macro_bytes): Update.
9721 * dwarf2/leb.c (read_offset): Rename; move from read.c.
9722 * dwarf2/leb.h (read_offset): Declare.
9723
2c7d5afc
TT
97242020-02-08 Tom Tromey <tom@tromey.com>
9725
9726 * dwarf2/read.c (dwarf2_section_size): Remove.
9727 (error_check_comp_unit_head, dwarf2_symbol_mark_computed):
9728 Update.
9729 * dwarf2/section.h (struct dwarf2_section_info) <get_size>: New method.
9730
4075cb26
TT
97312020-02-08 Tom Tromey <tom@tromey.com>
9732
9733 * dwarf2/read.c (read_initial_length): Move to leb.c.
9734 * dwarf2/leb.h (read_initial_length): Declare.
9735 * dwarf2/leb.c (read_initial_length): Move from read.c. Add
9736 handle_nonstd parameter.
9737 * dwarf2/frame.c (read_initial_length): Remove.
9738 (decode_frame_entry_1): Update.
9739
09ba997f
TT
97402020-02-08 Tom Tromey <tom@tromey.com>
9741
9742 * dwarf2/loc.c (dwarf2_find_location_expression)
9743 (dwarf_evaluate_loc_desc::get_tls_address)
9744 (dwarf_evaluate_loc_desc::push_dwarf_reg_entry_value)
9745 (rw_pieced_value, dwarf2_evaluate_loc_desc_full)
9746 (dwarf2_locexpr_baton_eval, dwarf2_evaluate_property)
9747 (dwarf2_compile_property_to_c)
9748 (dwarf2_loc_desc_get_symbol_read_needs)
9749 (dwarf2_compile_expr_to_ax, locexpr_describe_location)
9750 (locexpr_tracepoint_var_ref, locexpr_generate_c_location)
9751 (loclist_describe_location, loclist_tracepoint_var_ref)
9752 (loclist_generate_c_location): Update.
9753 * compile/compile-loc2c.c (do_compile_dwarf_expr_to_c): Update.
9754 * dwarf2/loc.h (dwarf2_per_cu_objfile, dwarf2_per_cu_addr_size)
9755 (dwarf2_per_cu_ref_addr_size, dwarf2_per_cu_offset_size)
9756 (dwarf2_per_cu_text_offset, dwarf2_version): Don't declare.
9757 * dwarf2/read.c (dwarf2_per_cu_data::objfile)
9758 (dwarf2_per_cu_data::addr_size)
9759 (dwarf2_per_cu_data::ref_addr_size)
9760 (dwarf2_per_cu_data::text_offset)
9761 (dwarf2_per_cu_data::addr_type): Now methods.
9762 (per_cu_header_read_in): Make per_cu "const".
9763 (dwarf2_version): Remove.
9764 (dwarf2_per_cu_data::int_type): Now a method.
9765 (dwarf2_per_cu_data::_addr_sized_int_type): Likewise.
9766 (set_die_type, read_array_type, read_subrange_index_type)
9767 (read_tag_string_type, read_subrange_type): Update.
9768 * dwarf2/read.h (struct dwarf2_per_cu_data) <addr_size,
9769 offset_size, ref_addr_size, text_offset, addr_type, version,
9770 objfile, int_type, addr_sized_int_type>: Declare methods.
9771
96c738c0
TT
97722020-02-08 Tom Tromey <tom@tromey.com>
9773
9774 * dwarf2/read.h (struct dwarf2_per_cu_data) <imported_symtabs>:
9775 Move earlier.
9776
8fdd972c
TT
97772020-02-08 Tom Tromey <tom@tromey.com>
9778
9779 * dwarf2/read.h (dwarf_line_debug): Declare.
9780 * Makefile.in (COMMON_SFILES): Add dwarf2/line-header.c.
9781 * dwarf2/read.c: Move line_header code to new files.
9782 (dwarf_line_debug): No longer static.
9783 * dwarf2/line-header.c: New file.
9784 * dwarf2/line-header.h: New file.
9785
03075812
TT
97862020-02-08 Tom Tromey <tom@tromey.com>
9787
9788 * dwarf2/read.c (struct line_header) <file_full_name,
9789 file_file_name>: Return unique_xmalloc_ptr.
9790 (line_header::file_file_name): Update.
9791 (line_header::file_full_name): Update.
9792 (dw2_get_file_names_reader): Update.
9793 (macro_start_file): Update.
9794
bb822404
TT
97952020-02-08 Tom Tromey <tom@tromey.com>
9796
9797 * dwarf2/read.c (struct line_header) <file_full_name,
9798 file_file_name>: Declare methods.
9799 (dw2_get_file_names_reader): Update.
9800 (file_file_name): Now a method.
9801 (file_full_name): Likewise.
9802 (macro_start_file): Update.
9803
009b64fc
TT
98042020-02-08 Tom Tromey <tom@tromey.com>
9805
9806 * dwarf2/read.c (dwarf_always_disassemble)
9807 (show_dwarf_always_disassemble): Move to loc.c.
9808 (_initialize_dwarf2_read): Move "always-disassemble" registration
9809 to loc.c.
9810 * dwarf2/read.h (dwarf_always_disassemble): Don't declare.
9811 * dwarf2/loc.c (dwarf_always_disassemble): Move from read.c. Now
9812 static.
9813 (show_dwarf_always_disassemble): Move from read.c.
9814 (_initialize_dwarf2loc): Move always-disassemble from read.c.
9815
5895093f
TT
98162020-02-08 Tom Tromey <tom@tromey.com>
9817
9818 * dwarf2/read.c (~dwarf2_per_objfile): Update.
9819 (create_quick_file_names_table): Return htab_up.
9820 (dw2_get_file_names_reader, dw2_forget_cached_source_info):
9821 Update.
9822 * dwarf2/read.h (struct dwarf2_per_objfile)
9823 <quick_file_names_table>: Now htab_up.
9824
b3b32279
TT
98252020-02-08 Tom Tromey <tom@tromey.com>
9826
9827 * dwarf2/abbrev.c (abbrev_table::read): Simplify.
9828
1d33d811
TT
98292020-02-08 Tom Tromey <tom@tromey.com>
9830
9831 * dwarf2/abbrev.c (abbrev_table): Move constructor from header.
9832 Rewrite.
9833 (abbrev_table::add_abbrev, abbrev_table::lookup_abbrev): Rewrite.
9834 * dwarf2/abbrev.h (struct abbrev_info) <next>: Remove.
9835 (abbrev_table::abbrev_table): No longer inline.
9836 (ABBREV_HASH_SIZE): Remove.
9837 (abbrev_table::m_abbrevs): Now an htab_up.
9838
86de1d91
TT
98392020-02-08 Tom Tromey <tom@tromey.com>
9840
9841 * dwarf2/read.c (read_cutu_die_from_dwo): Update.
9842 (cutu_reader): Update.
9843 (build_type_psymtabs_1): Update.
9844 * dwarf2/abbrev.c (abbrev_table::read): Rename.
9845 (abbrev_table::alloc_abbrev): Update.
9846 * dwarf2/abbrev.h (abbrev_table_up): Move earlier.
9847 (abbrev_table::read): New static method, renamed from
9848 abbrev_table_read_table.
9849 (abbrev_table::alloc_abbrev)
9850 (abbrev_table::add_abbrev): Now private.
9851 (abbrev_table::abbrev_table): Now private.
9852 (abbrev_table::m_abbrev_obstack): Now private. Rename.
9853
0335378b
TT
98542020-02-08 Tom Tromey <tom@tromey.com>
9855
9856 * dwarf2/read.c (set_die_type, get_die_type_at_offset): Update.
9857 * dwarf2/read.h (struct dwarf2_per_objfile) <die_type_hash>: Now
9858 htab_up.
9859
48b490f2
TT
98602020-02-08 Tom Tromey <tom@tromey.com>
9861
9862 * dwarf2/read.c (struct dwp_file) <loaded_cus, loaded_tus>: Now
9863 htab_up.
9864 (lookup_dwo_unit_in_dwp): Update.
9865 (allocate_dwp_loaded_cutus_table): Return htab_up. Don't allocate
9866 on obstack.
9867
bc68fb19
TT
98682020-02-08 Tom Tromey <tom@tromey.com>
9869
9870 * dwarf2/read.c (allocate_dwo_file_hash_table): Don't allocate on
9871 obstack.
9872
d15acc42
TT
98732020-02-08 Tom Tromey <tom@tromey.com>
9874
9875 * dwarf2/read.c (~dwarf2_per_objfile): Don't delete
9876 line_header_hash.
9877 (handle_DW_AT_stmt_list): Update. Don't allocate on obstack.
9878 * dwarf2/read.h (struct dwarf2_per_objfile) <line_header_hash>:
9879 Change type to htab_up.
9880
eaa5fa8b
TT
98812020-02-08 Tom Tromey <tom@tromey.com>
9882
9883 * dwarf2/read.c (allocate_type_unit_groups_table): Return
9884 htab_up. Don't allocate on obstack.
9885 (get_type_unit_group, dwarf2_build_psymtabs_hard): Update.
9886 * dwarf2/read.h (struct dwarf2_per_objfile) <type_unit_groups>:
9887 Change type to htab_up.
9888
b0b6a987
TT
98892020-02-08 Tom Tromey <tom@tromey.com>
9890
9891 * dwarf2/read.h (struct dwarf2_per_objfile) <signatured_types>:
9892 Change type to htab_up.
9893 * dwarf2/read.c (create_signatured_type_table_from_index)
9894 (create_signatured_type_table_from_debug_names)
9895 (create_all_type_units, add_type_unit)
9896 (lookup_dwo_signatured_type, lookup_signatured_type)
9897 (process_skeletonless_type_unit): Update.
9898 (create_debug_type_hash_table, create_debug_types_hash_table):
9899 Change type of types_htab.
9900 (allocate_signatured_type_table, allocate_dwo_unit_table): Return
9901 htab_up. Don't allocate on obstack.
9902 (create_cus_hash_table): Change type of cus_htab parameter.
9903 (struct dwo_file) <cus, tus>: Now htab_up.
9904 (lookup_dwo_signatured_type, lookup_dwo_cutu)
9905 (process_dwo_file_for_skeletonless_type_units, lookup_dwo_cutu)
9906 (queue_and_load_all_dwo_tus): Update.
9907 * dwarf2/index-write.c (write_gdbindex): Update.
9908 (write_debug_names): Update.
9909
39856def
TT
99102020-02-08 Tom Tromey <tom@tromey.com>
9911
9912 * dwarf2/read.h (struct dwarf2_queue_item): Move from
9913 dwarf2/read.c. Remove "next" member. Add constructor ntad
9914 destructor.
9915 (struct dwarf2_per_objfile) <queue>: New member.
9916 * dwarf2/read.c (struct dwarf2_queue_item): Move to
9917 dwarf2/read.h.
9918 (dwarf2_queue, dwarf2_queue_tail): Remove.
9919 (class dwarf2_queue_guard): Add parameter to constructor. Use
9920 DISABLE_COPY_AND_ASSIGN.
9921 <m_per_objfile>: New member.
9922 <~dwarf2_queue_guard>: Rewrite.
9923 (dw2_do_instantiate_symtab, queue_comp_unit, process_queue):
9924 Update.
9925 (~dwarf2_queue_item): New.
9926
3e225074
TT
99272020-02-08 Tom Tromey <tom@tromey.com>
9928
9929 * dwarf2/read.c (struct die_info) <has_children>: New member.
9930 (dw2_get_file_names_reader): Remove has_children.
9931 (dw2_get_file_names): Update.
9932 (read_cutu_die_from_dwo): Remove has_children.
9933 (cutu_reader::init_tu_and_read_dwo_dies)
9934 (cutu_reader::cutu_reader): Update.
9935 (process_psymtab_comp_unit_reader, build_type_psymtabs_reader):
9936 Remove has_children.
9937 (build_type_psymtabs_1, process_skeletonless_type_unit)
9938 (load_partial_comp_unit, load_full_comp_unit): Update.
9939 (create_dwo_cu_reader): Remove has_children.
9940 (create_cus_hash_table, read_die_and_children): Update.
9941 (read_full_die_1,read_full_die): Remove has_children.
9942 (read_signatured_type): Update.
9943 (class cutu_reader) <has_children>: Remove.
9944
82ca8957
TT
99452020-02-08 Tom Tromey <tom@tromey.com>
9946
9947 * dwarf2/expr.c: Rename from dwarf2expr.c.
9948 * dwarf2/expr.h: Rename from dwarf2expr.h.
9949 * dwarf2/frame-tailcall.c: Rename from dwarf2-frame-tailcall.c.
9950 * dwarf2/frame-tailcall.h: Rename from dwarf2-frame-tailcall.h.
9951 * dwarf2/frame.c: Rename from dwarf2-frame.c.
9952 * dwarf2/frame.h: Rename from dwarf2-frame.h.
9953 * dwarf2/index-cache.c: Rename from dwarf-index-cache.c.
9954 * dwarf2/index-cache.h: Rename from dwarf-index-cache.h.
9955 * dwarf2/index-common.c: Rename from dwarf-index-common.c.
9956 * dwarf2/index-common.h: Rename from dwarf-index-common.h.
9957 * dwarf2/index-write.c: Rename from dwarf-index-write.c.
9958 * dwarf2/index-write.h: Rename from dwarf-index-write.h.
9959 * dwarf2/loc.c: Rename from dwarf2loc.c.
9960 * dwarf2/loc.h: Rename from dwarf2loc.h.
9961 * dwarf2/read.c: Rename from dwarf2read.c.
9962 * dwarf2/read.h: Rename from dwarf2read.h.
9963 * dwarf2/abbrev.c, aarch64-tdep.c, alpha-tdep.c,
9964 amd64-darwin-tdep.c, arc-tdep.c, arm-tdep.c, bfin-tdep.c,
9965 compile/compile-c-symbols.c, compile/compile-cplus-symbols.c,
9966 compile/compile-loc2c.c, cris-tdep.c, csky-tdep.c, findvar.c,
9967 gdbtypes.c, guile/scm-type.c, h8300-tdep.c, hppa-bsd-tdep.c,
9968 hppa-linux-tdep.c, i386-darwin-tdep.c, i386-linux-tdep.c,
9969 i386-tdep.c, iq2000-tdep.c, m32c-tdep.c, m68hc11-tdep.c,
9970 m68k-tdep.c, microblaze-tdep.c, mips-tdep.c, mn10300-tdep.c,
9971 msp430-tdep.c, nds32-tdep.c, nios2-tdep.c, or1k-tdep.c,
9972 riscv-tdep.c, rl78-tdep.c, rs6000-tdep.c, rx-tdep.c, s12z-tdep.c,
9973 s390-tdep.c, score-tdep.c, sh-tdep.c, sparc-linux-tdep.c,
9974 sparc-tdep.c, sparc64-linux-tdep.c, sparc64-tdep.c, tic6x-tdep.c,
9975 tilegx-tdep.c, v850-tdep.c, xstormy16-tdep.c, xtensa-tdep.c:
9976 Update.
9977 * Makefile.in (COMMON_SFILES): Update.
9978 (HFILES_NO_SRCDIR): Update.
9979
9e35d499
TT
99802020-02-08 Tom Tromey <tom@tromey.com>
9981
9982 * dwarf2read.c (struct die_reader_specs) <comp_dir>: Remove.
9983 (init_cu_die_reader, read_cutu_die_from_dwo): Update.
9984
1eba2311
TT
99852020-02-08 Tom Tromey <tom@tromey.com>
9986
9987 * dwarf2read.h (struct die_info): Don't declare.
9988
e41c2da2
TT
99892020-02-08 Tom Tromey <tom@tromey.com>
9990
9991 * dwarf2read.h (die_info_ptr): Remove typedef.
9992
4fc6c0d5
TT
99932020-02-08 Tom Tromey <tom@tromey.com>
9994
9995 * dwarf2read.c (read_call_site_scope)
9996 (handle_data_member_location, dwarf2_add_member_fn)
9997 (mark_common_block_symbol_computed, read_common_block)
9998 (attr_to_dynamic_prop, partial_die_info::read)
9999 (var_decode_location, dwarf2_fetch_die_loc_sect_off)
10000 (dwarf2_symbol_mark_computed, set_die_type): Update.
10001 * dwarf2/attribute.h (struct attribute) <form_is_block>: Declare
10002 method.
10003 (attr_form_is_block): Don't declare.
10004 * dwarf2/attribute.c (attribute::form_is_block): Now a method.
10005
cd6c91b4
TT
100062020-02-08 Tom Tromey <tom@tromey.com>
10007
10008 * dwarf2read.c (dwarf2_find_base_address, )
10009 (read_call_site_scope, rust_containing_type)
10010 (dwarf2_get_pc_bounds, dwarf2_record_block_ranges)
10011 (handle_data_member_location, dwarf2_add_member_fn)
10012 (get_alignment, read_structure_type, process_structure_scope)
10013 (mark_common_block_symbol_computed, read_common_block)
10014 (read_tag_string_type, attr_to_dynamic_prop, read_subrange_type)
10015 (partial_die_info::read, read_attribute_value, new_symbol)
10016 (lookup_die_type, dwarf2_get_ref_die_offset)
10017 (dwarf2_get_attr_constant_value, follow_die_ref_or_sig)
10018 (dwarf2_fetch_die_loc_sect_off, get_DW_AT_signature_type)
10019 (dwarf2_symbol_mark_computed): Update.
10020 * dwarf2/attribute.h (struct attribute) <value_as_address,
10021 form_is_section_offset, form_is_constant, form_is_ref>: Declare
10022 methods.
10023 (value_as_address, attr_form_is_section_offset)
10024 (attr_form_is_constant, attr_form_is_ref): Don't declare.
10025 * dwarf2/attribute.c (attribute::value_as_address)
10026 (attribute::form_is_section_offset, attribute::form_is_constant)
10027 (attribute::form_is_ref): Now methods.
10028
162dce55
TT
100292020-02-08 Tom Tromey <tom@tromey.com>
10030
10031 * dwarf2read.c (struct attribute, DW_STRING)
10032 (DW_STRING_IS_CANONICAL, DW_UNSND, DW_BLOCK, DW_SND, DW_ADDR)
10033 (DW_SIGNATURE, struct dwarf_block, attr_value_as_address)
10034 (attr_form_is_block, attr_form_is_section_offset)
10035 (attr_form_is_constant, attr_form_is_ref): Move.
10036 * dwarf2/attribute.h: New file.
10037 * dwarf2/attribute.c: New file, from dwarf2read.c.
10038 * Makefile.in (COMMON_SFILES): Add dwarf2/attribute.c.
10039
3054dd54
TT
100402020-02-08 Tom Tromey <tom@tromey.com>
10041
10042 * dwarf2read.c (abbrev_table_up, struct abbrev_info)
10043 (struct attr_abbrev, ABBREV_HASH_SIZE, struct abbrev_table):
10044 Move.
10045 (read_cutu_die_from_dwo, build_type_psymtabs_1): Update.
10046 (abbrev_table::alloc_abbrev, abbrev_table::add_abbrev)
10047 (abbrev_table::lookup_abbrev, abbrev_table_read_table): Move to
10048 abbrev.c.
10049 * dwarf2/abbrev.h: New file.
10050 * dwarf2/abbrev.c: New file, from dwarf2read.c.
10051 * Makefile.in (COMMON_SFILES): Add dwarf2/abbrev.c.
10052
96b79293
TT
100532020-02-08 Tom Tromey <tom@tromey.com>
10054
10055 * dwarf2read.c (dwarf2_section_buffer_overflow_complaint)
10056 (dwarf2_section_size, dwarf2_get_section_info)
10057 (create_signatured_type_table_from_debug_names)
10058 (create_addrmap_from_aranges, read_debug_names_from_section)
10059 (get_gdb_index_contents_from_section, read_comp_unit_head)
10060 (error_check_comp_unit_head, read_abbrev_offset)
10061 (create_debug_type_hash_table, init_cu_die_reader)
10062 (read_cutu_die_from_dwo, dwarf2_build_psymtabs_hard)
10063 (read_comp_units_from_section, create_cus_hash_table)
10064 (create_dwp_hash_table, create_dwo_unit_in_dwp_v1)
10065 (create_dwp_v2_section, dwarf2_rnglists_process)
10066 (dwarf2_ranges_process, read_die_and_siblings, read_full_die)
10067 (abbrev_table_read_table, read_indirect_string_at_offset_from)
10068 (read_indirect_string_from_dwz, read_addr_index_1)
10069 (read_str_index, dwarf_decode_line_header, skip_form_bytes)
10070 (dwarf_decode_macro_bytes, dwarf_decode_macros)
10071 (fill_in_loclist_baton): Update.
10072 * dwarf2/section.h (struct dwarf2_section_info) <get_name,
10073 get_containing_section, get_bfd_owner, get_bfd_section,
10074 get_file_name, get_id, get_flags, empty, read>: Declare methods.
10075 (dwarf2_read_section, get_section_name, get_section_file_name)
10076 (get_containing_section, get_section_bfd_owner)
10077 (get_section_bfd_section, get_section_name, get_section_file_name)
10078 (get_section_id, get_section_flags, dwarf2_section_empty_p): Don't
10079 declare.
10080 * dwarf2/section.c (dwarf2_section_info::get_containing_section)
10081 (dwarf2_section_info::get_bfd_owner)
10082 (dwarf2_section_info::get_bfd_section)
10083 (dwarf2_section_info::get_name)
10084 (dwarf2_section_info::get_file_name, dwarf2_section_info::get_id)
10085 (dwarf2_section_info::get_flags, dwarf2_section_info::empty)
10086 (dwarf2_section_info::read): Now methods.
10087 * dwarf-index-write.c (class debug_names): Update.
10088
2c86cff9
TT
100892020-02-08 Tom Tromey <tom@tromey.com>
10090
10091 * dwarf2read.h (struct dwarf2_section_info, dwarf2_read_section):
10092 Move to dwarf2/section.h.
10093 * dwarf2read.c (get_containing_section, get_section_bfd_owner)
10094 (get_section_bfd_section, get_section_name)
10095 (get_section_file_name, get_section_id, get_section_flags)
10096 (dwarf2_section_empty_p, dwarf2_read_section): Moe to
10097 dwarf2/section.c.
10098 * dwarf2/section.h: New file.
10099 * dwarf2/section.c: New file, from dwarf2read.c.
10100 * Makefile.in (COMMON_SFILES): Add dwarf2/section.c.
10101
f4382c45
TT
101022020-02-08 Tom Tromey <tom@tromey.com>
10103
10104 * dwarf2read.h (read_unsigned_leb128): Don't declare.
10105 * dwarf2read.c (read_1_byte, read_1_signed_byte, read_2_bytes)
10106 (read_2_signed_bytes, read_3_bytes, read_4_bytes)
10107 (read_4_signed_bytes, read_8_bytes): Move to dwarf2/leb.h.
10108 (read_unsigned_leb128, read_signed_leb128): Move to dwarf2/leb.c.
10109 * dwarf2/leb.h: New file, from dwarf2read.c.
10110 * dwarf2/leb.c: New file, from dwarf2read.c.
10111 * dwarf2-frame.c (read_1_byte, read_4_bytes, read_8_bytes):
10112 Remove.
10113 * Makefile.in (CONFIG_SRC_SUBDIR): Add dwarf2.
10114 (COMMON_SFILES): Add dwarf2/leb.c.
10115
01840b7a
JB
101162020-02-08 Joel Brobecker <brobecker@adacore.com>
10117
10118 GDB 9.1 released.
10119
dfcb27e4
IB
101202020-02-05 Iain Buclaw <ibuclaw@gdcproject.org>
10121
10122 PR gdb/25190:
aac66a4c
SM
10123 * gdb/remote-sim.c (gdb_os_write_stderr): Update.
10124 * gdb/remote.c (remote_console_output): Update.
10125 * gdb/ui-file.c (fputs_unfiltered): Rename to...
10126 (ui_file_puts): ...this.
10127 * gdb/ui-file.h (ui_file_puts): Add declaration.
10128 * gdb/utils.c (emit_style_escape): Update.
10129 (flush_wrap_buffer): Update.
10130 (fputs_maybe_filtered): Update.
10131 (fputs_unfiltered): Add function.
dfcb27e4 10132
faa17681
IB
101332020-02-05 Iain Buclaw <ibuclaw@gdcproject.org>
10134
aac66a4c
SM
10135 * gdb/event-loop.c (gdb_wait_for_event): Update.
10136 * gdb/printcmd.c (printf_command): Update.
10137 * gdb/remote-fileio.c (remote_fileio_func_write): Update.
10138 * gdb/remote-sim.c (gdb_os_flush_stdout): Update.
10139 (gdb_os_flush_stderr): Update.
10140 * gdb/remote.c (remote_console_output): Update.
10141 * gdb/ui-file.c (gdb_flush): Rename to...
10142 (ui_file_flush): ...this.
10143 (stderr_file::write): Update.
10144 (stderr_file::puts): Update.
10145 * gdb/ui-file.h (gdb_flush): Rename to...
10146 (ui_file_flush): ...this.
10147 * gdb/utils.c (gdb_flush): Add function.
10148 * gdb/utils.h (gdb_flush): Add declaration.
faa17681 10149
5abbbe1d
TT
101502020-02-07 Tom Tromey <tromey@adacore.com>
10151
10152 PR breakpoints/24915:
10153 * source.c (find_and_open_source): Do not check basenames_may_differ.
10154
919adfe8
TT
101552020-02-07 Tom Tromey <tom@tromey.com>
10156
10157 * README: Update gdbserver documentation.
10158 * gdbserver: Move to top level.
10159 * configure.tgt (build_gdbserver): Remove.
10160 * configure.ac: Remove --enable-gdbserver.
10161 * configure: Rebuild.
10162 * Makefile.in (distclean): Don't mention gdbserver.
10163
1d5d29e7
SV
101642020-02-06 Shahab Vahedi <shahab@synopsys.com>
10165
10166 * source-cache.c (source_cache::ensure): Surround
10167 get_plain_source_lines with a try/catch.
10168 (source_cache::get_line_charpos): Get rid of try/catch
10169 and only check for the return value of "ensure".
10170 * tui/tui-source.c (tui_source_window::set_contents):
10171 Simplify "nlines" calculation.
10172
6eb1129c
SV
101732020-02-06 Shahab Vahedi <shahab@synopsys.com>
10174
10175 * MAINTAINERS (Write After Approval): Add myself.
10176
c6a42d11
CB
101772020-02-05 Christian Biesinger <cbiesinger@google.com>
10178
10179 * sparc-nat.h (struct sparc_target) <xfer_partial>: Fix base class
10180 function call.
10181
c8ecdda6
CB
101822020-02-05 Christian Biesinger <cbiesinger@google.com>
10183
10184 * ppc-nbsd-tdep.h: Fix macro name in #endif comment.
10185
f6480e70
MR
101862020-02-05 Maciej W. Rozycki <macro@wdc.com>
10187
10188 * nat/riscv-linux-tdesc.h: New file.
10189 * nat/riscv-linux-tdesc.c: New file, taking code from...
10190 * riscv-linux-nat.c (riscv_linux_nat_target::read_description):
10191 ... here.
10192 * configure.nat <linux> <riscv*>: Add nat/riscv-linux-tdesc.o to
10193 NATDEPFILES.
10194
dcc9fbc6
AB
101952020-02-04 Andrew Burgess <andrew.burgess@embecosm.com>
10196
10197 * remote-sim.c (sim_inferior_data::sim_inferior_data): Assert that
10198 we don't set the fake simulator ptid to the null_ptid.
10199
719546c4
SM
102002020-02-03 Simon Marchi <simon.marchi@efficios.com>
10201
10202 * fork-child.c (gdb_startup_inferior): Use bool instead of int.
10203 * gdbthread.h (class thread_info) <resumed>: Likewise.
10204 * infrun.c (resume_1): Likewise.
10205 (proceed): Likewise.
10206 (infrun_thread_stop_requested): Likewise.
10207 (stop_all_threads): Likewise.
10208 (handle_inferior_event): Likewise.
10209 (restart_threads): Likewise.
10210 (finish_step_over): Likewise.
10211 (keep_going_stepped_thread): Likewise.
10212 * linux-nat.c (attach_proc_task_lwp_callback): Likewise.
10213 (linux_handle_extended_wait): Likewise.
10214 * record-btrace.c (get_thread_current_frame_id): Likewise.
10215 * record-full.c (record_full_wait_1): Likewise.
10216 * remote.c (remote_target::process_initial_stop_replies): Likewise.
10217 * target.c (target_resume): Likewise.
10218 * thread.c (set_running_thread): Likewise.
10219
e409c542
AKS
102202020-02-03 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
10221
10222 * f-valprint.c (f77_print_array_1): Changed datatype of index
10223 variable to LONGEST from int to enable it to contain bound
10224 values correctly.
10225
ee98c0da
MR
102262020-02-03 Maciej W. Rozycki <macro@wdc.com>
10227
10228 * riscv-linux-nat.c [!NFPREG] (NFPREG): New macro.
10229 (supply_fpregset_regnum, fill_fpregset): Handle regset buffer
10230 offsets according to FLEN determined.
10231 (riscv_linux_nat_target::read_description): Determine FLEN
10232 dynamically.
10233 (riscv_linux_nat_target::fetch_registers): Size regset buffer
10234 according to FLEN determined.
10235 (riscv_linux_nat_target::store_registers): Likewise.
10236
aa66aac4
SV
102372020-02-01 Shahab Vahedi <shahab@synopsys.com>
10238
10239 * target-descriptions.c (tdesc_register_in_reggroup_p): Return 0
10240 when reg->group is empty and reggroup is not.
10241
fd9faca8
TT
102422020-01-31 Tom Tromey <tromey@adacore.com>
10243
10244 * ravenscar-thread.c (ravenscar_thread_target::mourn_inferior):
10245 Call beneath target's mourn_inferior after unpushing.
10246
42330a68
AB
102472020-01-31 Andrew Burgess <andrew.burgess@embecosm.com>
10248
10249 PR tui/9765
10250 * tui/tui-disasm.c (tui_find_disassembly_address): If we don't
10251 have enough lines to fill the screen, still return the lowest
10252 address we found.
10253
7a27a45b
AB
102542020-01-31 Andrew Burgess <andrew.burgess@embecosm.com>
10255
10256 * tui/tui-win.c (_initialize_tui_win): Update help text for '+',
10257 '-', '<', and '>' commands.
10258
c47f70e2
PA
102592020-01-29 Pedro Alves <palves@redhat.com>
10260 Sergio Durigan Junior <sergiodj@redhat.com>
10261
10262 * infcmd.c (construct_inferior_arguments): Assert that
10263 'argc' is greater than 0.
10264
5133a315
LM
102652020-01-29 Luis Machado <luis.machado@linaro.org>
10266
10267 * aarch64-tdep.c (BRK_INSN_MASK): Define to 0xffe0001f.
10268 (BRK_INSN_MASK): Define to 0xd4200000.
10269 (aarch64_program_breakpoint_here_p): New function.
10270 (aarch64_gdbarch_init): Set gdbarch_program_breakpoint_here_p hook.
10271 * arch-utils.c (default_program_breakpoint_here_p): Moved from
10272 breakpoint.c.
10273 * arch-utils.h (default_program_breakpoint_here_p): Moved from
10274 breakpoint.h
10275 * breakpoint.c (bp_loc_is_permanent): Changed return type to bool and
10276 call gdbarch_program_breakpoint_here_p.
10277 (program_breakpoint_here): Moved to arch-utils.c, renamed to
10278 default_program_breakpoint_here_p, changed return type to bool and
10279 simplified.
10280 * breakpoint.h (program_breakpoint_here): Moved prototype to
10281 arch-utils.h, renamed to default_program_breakpoint_here_p and changed
10282 return type to bool.
10283 * gdbarch.c: Regenerate.
10284 * gdbarch.h: Regenerate.
10285 * gdbarch.sh (program_breakpoint_here_p): New method.
10286 * infrun.c (handle_signal_stop): Call
10287 gdbarch_program_breakpoint_here_p.
10288
168f8c6b
TT
102892020-01-26 Tom Tromey <tom@tromey.com>
10290
10291 * ctfread.c (struct ctf_fp_info): Reindent.
10292 (_initialize_ctfread): Remove.
10293
128a391f
TT
102942020-01-26 Tom Tromey <tom@tromey.com>
10295
10296 * psymtab.c (partial_map_expand_apply)
10297 (psym_find_pc_sect_compunit_symtab, psym_lookup_symbol)
10298 (psymtab_to_symtab, psym_find_last_source_symtab, dump_psymtab)
10299 (psym_print_stats, psym_expand_symtabs_for_function)
10300 (psym_map_symbol_filenames, psym_map_matching_symbols)
10301 (psym_expand_symtabs_matching)
10302 (partial_symtab::read_dependencies, maintenance_info_psymtabs)
10303 (maintenance_check_psymtabs): Use new methods.
10304 * psympriv.h (struct partial_symtab) <readin_p,
10305 get_compunit_symtab>: New methods.
10306 <readin, compunit_symtab>: Remove members.
10307 (struct standard_psymtab): New.
10308 (struct legacy_psymtab): Derive from standard_psymtab.
10309 * dwarf2read.h (struct dwarf2_psymtab): Derive from
10310 standard_psymtab.
10311 * ctfread.c (struct ctf_psymtab): Derive from standard_psymtab.
10312
0494dbec
TT
103132020-01-26 Tom Tromey <tom@tromey.com>
10314
10315 * xcoffread.c (xcoff_psymtab_to_symtab_1): Call
10316 read_dependencies. Add assert.
10317 * psymtab.c (partial_symtab::read_dependencies): New method.
10318 * psympriv.h (struct partial_symtab) <read_dependencies>: New
10319 method.
10320 * mdebugread.c (psymtab_to_symtab_1): Call read_dependencies.
10321 * dwarf2read.c (dwarf2_psymtab::expand_psymtab): Call
10322 read_dependencies.
10323 * dbxread.c (dbx_psymtab_to_symtab_1): Call read_dependencies.
10324 Add assert.
10325
8566b89b
TT
103262020-01-26 Tom Tromey <tom@tromey.com>
10327
10328 * xcoffread.c (xcoff_psymtab_to_symtab_1): Change argument order.
10329 Call expand_psymtab.
10330 (xcoff_read_symtab): Call expand_psymtab.
10331 (xcoff_start_psymtab, xcoff_end_psymtab): Set
10332 legacy_expand_psymtab.
10333 * psympriv.h (struct partial_symtab) <expand_psymtab>: New
10334 method.
10335 (struct legacy_psymtab) <expand_psymtab>: Implement.
10336 <legacy_expand_psymtab>: New member.
10337 * mdebugread.c (mdebug_read_symtab): Call expand_psymtab.
10338 (parse_partial_symbols): Set legacy_expand_psymtab.
10339 (psymtab_to_symtab_1): Change argument order. Call
10340 expand_psymtab.
10341 (new_psymtab): Set legacy_expand_psymtab.
10342 * dwarf2read.h (struct dwarf2_psymtab) <expand_psymtab>: Declare.
10343 * dwarf2read.c (dwarf2_psymtab::read_symtab): Call
10344 expand_psymtab.
10345 (dwarf2_psymtab::expand_psymtab): Rename from
10346 psymtab_to_symtab_1. Call expand_psymtab.
10347 * dbxread.c (start_psymtab): Set legacy_expand_psymtab.
10348 (dbx_end_psymtab): Likewise.
10349 (dbx_psymtab_to_symtab_1): Change argument order. Call
10350 expand_psymtab.
10351 (dbx_read_symtab): Call expand_psymtab.
10352 * ctfread.c (struct ctf_psymtab) <expand_psymtab>: Declare.
10353 (ctf_psymtab::expand_psymtab): Rename from psymtab_to_symtab.
10354 (ctf_psymtab::read_symtab): Call expand_psymtab.
10355
077cbab2
TT
103562020-01-26 Tom Tromey <tom@tromey.com>
10357
10358 * xcoffread.c (xcoff_read_symtab): Remove prints. Add assert.
10359 * psymtab.c (psymtab_to_symtab): Print verbose "Reading"
10360 messages.
10361 * mdebugread.c (mdebug_read_symtab): Remove prints.
10362 * dwarf2read.c (dwarf2_psymtab::read_symtab): Remove prints. Add
10363 assert.
10364 * dbxread.c (dbx_read_symtab): Remove prints. Add assert.
10365
891813be
TT
103662020-01-26 Tom Tromey <tom@tromey.com>
10367
10368 * xcoffread.c (this_symtab_psymtab, read_xcoff_symtab)
10369 (xcoff_psymtab_to_symtab_1, xcoff_read_symtab)
10370 (xcoff_start_psymtab, xcoff_end_psymtab, scan_xcoff_symtab): Use
10371 legacy_symtab.
10372 * stabsread.h (dbx_end_psymtab): Use legacy_symtab.
10373 * psymtab.c (psymtab_to_symtab): Call method.
10374 (dump_psymtab): Update.
10375 * psympriv.h (struct partial_symtab): Add virtual destructor.
10376 <read_symtab>: New method.
10377 (struct legacy_symtab): New.
10378 * mdebugread.c (mdebug_read_symtab): Use legacy_psymtab.
10379 (struct pst_map) <pst>: Now a legacy_psymtab.
10380 (parse_procedure, parse_partial_symbols, psymtab_to_symtab_1)
10381 (new_psymtab): Use legacy_psymtab.
10382 * dwarf2read.h (struct dwarf2_psymtab): New.
10383 (struct dwarf2_per_cu_data) <psymtab>: Use it.
10384 * dwarf2read.c (dwarf2_create_include_psymtab)
10385 (dwarf2_build_include_psymtabs, create_type_unit_group)
10386 (create_partial_symtab, process_psymtab_comp_unit_reader)
10387 (build_type_psymtabs_reader, build_type_psymtab_dependencies)
10388 (set_partial_user): Use dwarf2_psymtab.
10389 (dwarf2_psymtab::read_symtab): Rename from dwarf2_read_symtab.
10390 (psymtab_to_symtab_1, process_full_comp_unit)
10391 (process_full_type_unit, dwarf2_ranges_read)
10392 (dwarf2_get_pc_bounds, psymtab_include_file_name)
10393 (dwarf_decode_lines): Use dwarf2_psymtab.
10394 * dwarf-index-write.c (psym_index_map): Use dwarf2_psymtab.
10395 (add_address_entry_worker, write_one_signatured_type)
10396 (recursively_count_psymbols, recursively_write_psymbols)
10397 (write_one_signatured_type, psyms_seen_size, write_gdbindex)
10398 (write_debug_names): Likewise.
10399 * dbxread.c (struct header_file_location): Take a legacy_psymtab.
10400 <pst>: Now a legacy_psymtab.
10401 (find_corresponding_bincl_psymtab): Return a legacy_psymtab.
10402 (read_dbx_symtab, start_psymtab, dbx_end_psymtab)
10403 (dbx_psymtab_to_symtab_1, read_ofile_symtab): Use legacy_psymtab.
10404 * ctfread.c (struct ctf_psymtab): New.
10405 (ctf_start_symtab, ctf_end_symtab, psymtab_to_symtab): Take a
10406 ctf_psymtab.
10407 (ctf_psymtab::read_symtab): Rename from ctf_read_symtab.
10408 (create_partial_symtab): Return a ctf_psymtab.
10409 (scan_partial_symbols): Update.
10410
c3693a1d
TT
104112020-01-26 Tom Tromey <tom@tromey.com>
10412
10413 * xcoffread.c (xcoff_start_psymtab): Use new.
10414 * psymtab.c (partial_symtab::partial_symtab): New constructor,
10415 renamed from start_psymtab_common.
10416 * psympriv.h (struct partial_symtab): Add new constructor.
10417 (start_psymtab_common): Don't declare.
10418 * mdebugread.c (parse_partial_symbols): Use new.
10419 * dwarf2read.c (create_partial_symtab): Use new.
10420 * dbxread.c (start_psymtab): Use new.
10421 * ctfread.c (create_partial_symtab): Use new.
10422
32caafd0
TT
104232020-01-26 Tom Tromey <tom@tromey.com>
10424
10425 * xcoffread.c (xcoff_end_psymtab): Use new.
10426 * psymtab.c (start_psymtab_common): Use new.
10427 (partial_symtab::partial_symtab): Rename from allocate_psymtab.
10428 Update.
10429 * psympriv.h (struct partial_symtab): Add parameters to
10430 constructor. Don't inline.
10431 (allocate_psymtab): Don't declare.
10432 * mdebugread.c (new_psymtab): Use new.
10433 * dwarf2read.c (dwarf2_create_include_psymtab): Use new.
10434 * dbxread.c (dbx_end_psymtab): Use new.
10435
abaa2f23
TT
104362020-01-26 Tom Tromey <tom@tromey.com>
10437
10438 * psymtab.h (class psymtab_storage) <install_psymtab>: Rename from
10439 allocate_psymtab. Update documentation.
10440 * psymtab.c (psymtab_storage::install_psymtab): Rename from
10441 allocate_psymtab. Do not use new.
10442 (allocate_psymtab): Use new. Update.
10443
6d94535f
TT
104442020-01-26 Tom Tromey <tom@tromey.com>
10445
10446 * xcoffread.c (xcoff_psymtab_to_symtab_1): Update.
10447 * psymtab.c (psym_print_stats): Update.
10448 * psympriv.h (struct partial_symtab) <readin,
10449 psymtabs_addrmap_supported, anonymous>: Now bool.
10450 * mdebugread.c (psymtab_to_symtab_1): Update.
10451 * dwarf2read.c (create_type_unit_group, create_partial_symtab)
10452 (build_type_psymtabs_reader, psymtab_to_symtab_1)
10453 (process_full_comp_unit, process_full_type_unit): Update.
10454 * dbxread.c (dbx_psymtab_to_symtab_1): Update.
10455 * ctfread.c (psymtab_to_symtab): Update.
10456
6f17252b
TT
104572020-01-26 Tom Tromey <tom@tromey.com>
10458
10459 * mdebugread.c (parse_partial_symbols): Use discard_psymtab.
10460 * psymtab.h (class psymtab_storage) <free_psymtabs>: Remove.
10461 * psymtab.c (psymtab_storage): Delete psymtabs.
10462 (psymtab_storage::allocate_psymtab): Use new.
10463 (psymtab_storage::discard_psymtab): Use delete.
10464 * psympriv.h (struct partial_symtab): Add constructor and
10465 initializers.
10466
f6f1cebc
TT
104672020-01-26 Tom Tromey <tom@tromey.com>
10468
10469 * machoread.c: Do not include psympriv.h.
10470
e47e48f6
PW
104712020-01-25 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10472
10473 * NEWS: Mention the new option and the set/show commands.
10474
a2fedca9
PW
104752020-01-25 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10476
10477 * exec.c (exec_file_mismatch_names, exec_file_mismatch_mode)
10478 (show_exec_file_mismatch_command, set_exec_file_mismatch_command)
10479 (validate_exec_file): New variables, enums, functions.
10480 (exec_file_locate_attach, print_section_info): Style the filenames.
10481 (_initialize_exec): Install show_exec_file_mismatch_command and
10482 set_exec_file_mismatch_command.
10483 * gdbcore.h (validate_exec_file): Declare.
10484 * infcmd.c (attach_command): Call validate_exec_file.
10485 * remote.c ( remote_target::remote_add_inferior): Likewise.
10486
7ffa82e1
AB
104872020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
10488
10489 * frame.c (find_frame_sal): Move call to get_next_frame into more
10490 inner scope.
10491 * inline-frame.c (inilne_state) <inline_state>: Update argument
10492 types.
10493 (inilne_state) <skipped_symbol>: Rename to...
10494 (inilne_state) <skipped_symbols>: ...this, and change to a vector.
10495 (skip_inline_frames): Build vector of skipped symbols and use this
10496 to reate the inline_state.
10497 (inline_skipped_symbol): Add a comment and some assertions, fetch
10498 skipped symbol from the list.
10499
3d92a3e3
AB
105002020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
10501
10502 * buildsym.c (lte_is_less_than): Delete.
10503 (buildsym_compunit::end_symtab_with_blockvector): Create local
10504 lambda function to sort line table entries, and use
10505 std::stable_sort instead of std::sort.
10506 * symtab.c (find_pc_sect_line): Skip backward over end of sequence
10507 markers when looking for a previous line.
10508
94a72be7
AB
105092020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
10510
10511 * dwarf2read.c (lnp_state_machine::record_line): Include
10512 end_sequence parameter in debug print out. Record the line if we
10513 are at an end_sequence marker even if it's not the start of a
10514 statement.
10515 * symmisc.c (maintenance_print_one_line_table): Print end of
10516 sequence markers with 'END' not '0'.
10517
53af73bf
PA
105182020-01-24 Pedro Alves <palves@redhat.com>
10519
10520 PR gdb/25410
10521 * thread.c (scoped_restore_current_thread::restore): Use
10522 switch_to_inferior_no_thread.
10523 * exec.c: Include "progspace-and-thread.h".
10524 (add_target_sections, remove_target_sections):
10525 scoped_restore_current_pspace_and_thread instead of
10526 scoped_restore_current_thread.
10527 * infrun.c (handle_vfork_child_exec_or_exit): Assign the pspace
10528 and aspace to the inferior before calling clone_program_space.
10529 Remove stale comment.
10530
3050c6f4
CB
105312020-01-24 Christian Biesinger <cbiesinger@google.com>
10532
10533 * arm-nbsd-nat.c (arm_nbsd_nat_target::fetch_registers): Rename to...
10534 (arm_netbsd_nat_target::fetch_registers): ...this.
10535 (arm_nbsd_nat_target::store_registers): Rename to...
10536 (arm_netbsd_nat_target::store_registers): ...this.
10537
73685c7e
CB
105382020-01-24 Christian Biesinger <cbiesinger@google.com>
10539
10540 * arm-nbsd-nat.c: Define _KERNTYPES to get the declaration of
10541 register_t.
10542
89203d40
CB
105432020-01-24 Christian Biesinger <cbiesinger@google.com>
10544
10545 * aarch64-fbsd-tdep.c (aarch64_fbsd_iterate_over_regset_sections):
10546 Update comment.
10547 * aarch64-linux-tdep.c (aarch64_linux_iterate_over_regset_sections):
10548 Likewise.
10549 * arm-fbsd-tdep.c (arm_fbsd_iterate_over_regset_sections): Likewise.
10550 * gdbcore.h (deprecated_add_core_fns): Update comment to point to
10551 the correct replacement (iterate_over_regset_sections).
10552 * riscv-fbsd-tdep.c (riscv_fbsd_iterate_over_regset_sections):
10553 Update comment.
10554
1ba1ac88
AB
105552020-01-24 Graham Markall <graham.markall@embecosm.com>
10556
10557 PR gdb/23718
10558 * gdb/python/python.c (execute_gdb_command): Call
10559 async_enable_stdin in catch block.
10560
f3364a6d
AB
105612020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
10562
10563 * event-loop.c (start_event_loop): Wrap async_enable_stdin with
10564 SWITCH_THRU_ALL_UIS.
10565
733d0a67
AB
105662020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
10567
10568 PR tui/9765
10569 * minsyms.c (lookup_minimal_symbol_by_pc_section): Update header
10570 comment, add extra parameter, and update to store previous symbol
10571 when appropriate.
10572 * minsyms.h (lookup_minimal_symbol_by_pc_section): Update comment,
10573 add extra parameter.
10574 * tui/tui-disasm.c (tui_disassemble): Update header comment,
10575 remove unneeded parameter, add try/catch around gdb_print_insn,
10576 rewrite to add items to asm_lines vector.
10577 (tui_find_backward_disassembly_start_address): New function.
10578 (tui_find_disassembly_address): Updated throughout.
10579 (tui_disasm_window::set_contents): Update for changes to
10580 tui_disassemble.
10581 (tui_disasm_window::do_scroll_vertical): No need to adjust the
10582 number of lines to scroll.
10583
b3b3bada
SM
105842020-01-23 Simon Marchi <simon.marchi@polymtl.ca>
10585
10586 * objfiles.h (ALL_OBJFILE_OSECTIONS): Move up.
10587 (SECT_OFF_DATA): Likewise.
10588 (SECT_OFF_RODATA): Likewise.
10589 (SECT_OFF_TEXT): Likewise.
10590 (SECT_OFF_BSS): Likewise.
10591 (struct objfile) <text_section_offset, data_section_offset>: New
10592 methods.
10593 * amd64-windows-tdep.c (amd64_windows_find_unwind_info): Use
10594 objfile::text_section_offset.
10595 * coff-pe-read.c (add_pe_forwarded_sym): Likewise.
10596 * coffread.c (coff_symtab_read): Likewise.
10597 (enter_linenos): Likewise.
10598 (process_coff_symbol): Likewise.
10599 * ctfread.c (get_objfile_text_range): Likewise.
10600 * dtrace-probe.c (dtrace_probe::get_relocated_address):
10601 Use objfile::data_section_offset.
10602 * dwarf2-frame.c (execute_cfa_program): Use
10603 objfile::text_section_offset.
10604 (dwarf2_frame_find_fde): Likewise.
10605 * dwarf2read.c (create_addrmap_from_index): Likewise.
10606 (create_addrmap_from_aranges): Likewise.
10607 (dw2_find_pc_sect_compunit_symtab): Likewise.
10608 (process_psymtab_comp_unit_reader): Likewise.
10609 (add_partial_symbol): Likewise.
10610 (add_partial_subprogram): Likewise.
10611 (process_full_comp_unit): Likewise.
10612 (read_file_scope): Likewise.
10613 (read_func_scope): Likewise.
10614 (read_lexical_block_scope): Likewise.
10615 (read_call_site_scope): Likewise.
10616 (dwarf2_rnglists_process): Likewise.
10617 (dwarf2_ranges_process): Likewise.
10618 (dwarf2_ranges_read): Likewise.
10619 (dwarf_decode_lines_1): Likewise.
10620 (new_symbol): Likewise.
10621 (dwarf2_fetch_die_loc_sect_off): Likewise.
10622 (dwarf2_per_cu_text_offset): Likewise.
10623 * hppa-bsd-tdep.c (hppabsd_find_global_pointer): Likewise.
10624 * hppa-tdep.c (read_unwind_info): Likewise.
10625 * ia64-tdep.c (ia64_find_unwind_table): Likewise.
10626 * psympriv.h (struct partial_symtab): Likewise.
10627 * psymtab.c (find_pc_sect_psymtab): Likewise.
10628 * solib-svr4.c (enable_break): Likewise.
10629 * stap-probe.c (relocate_address): Use
10630 objfile::data_section_offset.
10631 * xcoffread.c (enter_line_range): Use
10632 objfile::text_section_offset.
10633 (read_xcoff_symtab): Likewise.
10634
ab53f382
SM
106352020-01-23 Simon Marchi <simon.marchi@efficios.com>
10636
10637 * darwin-nat.c (darwin_nat_target::wait_1): Move `inf`
10638 declaration to narrower scopes.
10639
e7eee665
SM
106402020-01-23 Simon Marchi <simon.marchi@efficios.com>
10641
10642 * darwin-nat.h (struct darwin_exception_msg, enum
10643 darwin_msg_state, struct darwin_thread_info, darwin_thread_t):
10644 Move up.
10645 (class darwin_nat_target) <wait_1, check_new_threads,
10646 decode_exception_message, decode_message, stop_inferior,
10647 init_thread_list, ptrace_him, cancel_breakpoint>: Declare.
10648 * darwin-nat.c (darwin_check_new_threads): Rename to...
10649 (darwin_nat_target::check_new_threads): ... this.
10650 (darwin_suspend_inferior_it): Remove.
10651 (darwin_decode_exception_message): Rename to...
10652 (darwin_nat_target::decode_exception_message): ... this.
10653 (darwin_nat_target::resume): Pass target to find_inferior_ptid.
10654 (darwin_decode_message): Rename to...
10655 (darwin_nat_target::decode_message): ... this.
10656 (cancel_breakpoint): Rename to...
10657 (darwin_nat_target::cancel_breakpoint): ... this.
10658 (darwin_wait): Rename to...
10659 (darwin_nat_target::wait_1): ... this. Use range-based for loop
10660 instead of iterate_over_inferiors.
10661 (darwin_nat_target::wait): Call wait_1 instead of darwin_wait.
10662 (darwin_stop_inferior): Rename to...
10663 (darwin_nat_target::stop_inferior): ... this.
10664 (darwin_nat_target::kill): Call wait_1 instead of darwin_wait.
10665 (darwin_init_thread_list): Rename to...
10666 (darwin_nat_target::init_thread_list): ... this.
10667 (darwin_ptrace_him): Rename to...
10668 (darwin_nat_target::ptrace_him): ... this.
10669 (darwin_nat_target::create_inferior): Pass lambda function to
10670 fork_inferior.
10671 (darwin_nat_target::detach): Call stop_inferior instead of
10672 darwin_stop_inferior.
10673 * fork-inferior.h (fork_inferior): Change init_trace_fun
10674 parameter to gdb::function_view.
10675 * fork-inferior.c (fork_inferior): Likewise.
10676
c162ed3e
HD
106772020-01-23 Hannes Domani <ssbssa@yahoo.de>
10678
10679 * i386-cygwin-tdep.c (core_process_module_section): Update.
10680 * windows-nat.c (struct lm_info_windows): Add text_offset.
10681 (windows_xfer_shared_libraries): Update.
10682 * windows-tdep.c (windows_xfer_shared_library):
10683 Add text_offset_cached argument.
10684 * windows-tdep.h (windows_xfer_shared_library): Update.
10685
a1237872
SM
106862020-01-21 Simon Marchi <simon.marchi@efficios.com>
10687
10688 * gdbarch.sh: Add declaration for _initialize_gdbarch.
10689
b3ee6dd9
SM
106902020-01-21 Simon Marchi <simon.marchi@efficios.com>
10691
10692 * remote-sim.c (check_for_duplicate_sim_descriptor): Remove.
10693 (get_sim_inferior_data): Remove use of iterate_over_inferiors,
10694 replace with range-based for.
10695 (gdbsim_interrupt_inferior): Remove.
10696 (gdbsim_target::interrupt): Replace iterate_over_inferiors use
10697 with a range-based for. Inline code from
10698 gdbsim_interrupt_inferior.
10699
f9fac3c8
SM
107002020-01-21 Simon Marchi <simon.marchi@efficios.com>
10701
10702 * infrun.c (proceed): Fix indentation.
10703
f6474de9
TT
107042020-01-21 Tom Tromey <tromey@adacore.com>
10705
10706 * source-cache.c (source_cache::ensure): Call ext_lang_colorize.
10707 * python/python.c (python_extension_ops): Update.
10708 (gdbpy_colorize): New function.
10709 * python/lib/gdb/__init__.py (colorize): New function.
10710 * extension.h (ext_lang_colorize): Declare.
10711 * extension.c (ext_lang_colorize): New function.
10712 * extension-priv.h (struct extension_language_ops) <colorize>: New
10713 member.
10714 * cli/cli-style.c (_initialize_cli_style): Update help text.
10715
f0c702d4
LM
107162020-01-21 Luis Machado <luis.machado@linaro.org>
10717
10718 * aarch64-tdep.c (struct aarch64_displaced_step_closure)
10719 <cond>: Change type to bool.
10720 (aarch64_displaced_step_b_cond): Update cond to use bool type.
10721 (aarch64_displaced_step_cb): Likewise.
10722 (aarch64_displaced_step_tb): Likewise.
10723
1ab139e5
LM
107242020-01-21 Luis Machado <luis.machado@linaro.org>
10725
10726 * aarch64-tdep.c (aarch64_displaced_step_fixup): Add more debugging
10727 output.
10728
0c271889
LM
107292020-01-21 Luis Machado <luis.machado@linaro.org>
10730
10731 * aarch64-tdep.c (struct aarch64_displaced_step_closure )
10732 <pc_adjust>: Adjust the documentation.
10733 (aarch64_displaced_step_fixup): Check if PC really moved before
10734 adjusting it.
10735
4d89c1c7
TT
107362020-01-19 Tom Tromey <tom@tromey.com>
10737
10738 * disasm.c (~gdb_disassembler): New destructor.
10739 (gdb_buffered_insn_length): Call disassemble_free_target.
10740 * disasm.h (class gdb_disassembler): Declare destructor. Use
10741 DISABLE_COPY_AND_ASSIGN.
10742
c0ab21c2
TT
107432020-01-19 Tom Tromey <tom@tromey.com>
10744
10745 * dwarf2read.c (abbrev_table_up): Move typedef earlier.
10746 (die_reader_func_ftype): Remove.
10747 (cutu_reader): New class.
10748 (dw2_get_file_names_reader): Remove "data" parameter.
10749 (dw2_get_file_names): Use cutu_reader.
10750 (create_debug_type_hash_table): Update.
10751 (read_cutu_die_from_dwo): Update comment.
10752 (lookup_dwo_unit): Add dwo_name parameter.
10753 (cutu_reader::init_tu_and_read_dwo_dies): Now a method. Remove
10754 die_reader_func_ftype and data parameters.
10755 (cutu_reader::cutu_reader): Rename from init_cutu_and_read_dies.
10756 Remove die_reader_func_ftype and data parameters.
10757 (~cutu_reader): New; from init_cutu_and_read_dies.
10758 (cutu_reader::cutu_reader): Rename from
10759 init_cutu_and_read_dies_no_follow. Remove die_reader_func_ftype
10760 and data parameters.
10761 (init_cutu_and_read_dies_simple): Remove.
10762 (struct process_psymtab_comp_unit_data): Remove.
10763 (process_psymtab_comp_unit_reader): Remove data parameter; add
10764 want_partial_unit and pretend_language parameters.
10765 (process_psymtab_comp_unit): Use cutu_reader.
10766 (build_type_psymtabs_reader): Remove data parameter.
10767 (build_type_psymtabs_1): Use cutu_reader.
10768 (process_skeletonless_type_unit): Likewise.
10769 (load_partial_comp_unit_reader): Remove.
10770 (load_partial_comp_unit): Use cutu_reader.
10771 (load_full_comp_unit_reader): Remove.
10772 (load_full_comp_unit): Use cutu_reader.
10773 (struct create_dwo_cu_data): Remove.
10774 (create_dwo_cu_reader): Remove datap parameter; add dwo_file and
10775 dwo_unit parameters.
10776 (create_cus_hash_table): Use cutu_reader.
10777 (struct dwarf2_read_addr_index_data): Remove.
10778 (dwarf2_read_addr_index_reader): Remove.
10779 (dwarf2_read_addr_index): Use cutu_reader.
10780 (read_signatured_type_reader): Remove.
10781 (read_signatured_type): Use cutu_reader.
10782
45bbae5c
TT
107832020-01-19 Tom Tromey <tom@tromey.com>
10784
10785 * tui/tui.c (tui_show_assembly): Use tui_suppress_output.
10786 * tui/tui-wingeneral.h (class tui_suppress_output): New.
10787 (tui_wrefresh): Declare.
10788 * tui/tui-wingeneral.c (suppress_output): New global.
10789 (tui_suppress_output, ~tui_suppress_output): New constructor and
10790 destructor.
10791 (tui_wrefresh): New function.
10792 (tui_gen_win_info::refresh_window): Use tui_wrefresh.
10793 (tui_gen_win_info::make_window): Call wnoutrefresh when needed.
10794 * tui/tui-regs.h (struct tui_data_window) <no_refresh>: Declare
10795 method.
10796 * tui/tui-regs.c (tui_data_window::erase_data_content): Call
10797 tui_wrefresh.
10798 (tui_data_window::no_refresh): New method.
10799 (tui_data_item_window::refresh_window): Call tui_wrefresh.
10800 (tui_reg_command): Use tui_suppress_output
10801 * tui/tui-layout.c (tui_set_layout): Use tui_suppress_output.
10802 * tui/tui-data.h (struct tui_gen_win_info) <no_refresh>: New
10803 method.
10804 * tui/tui-command.c (tui_refresh_cmd_win): Call tui_wrefresh.
10805
4f13c1c0
TT
108062020-01-19 Tom Tromey <tom@tromey.com>
10807
10808 * tui/tui-winsource.c (tui_update_source_windows_with_line):
10809 Handle case where symtab is null.
10810
fa47e446
SM
108112020-01-19 Simon Marchi <simon.marchi@polymtl.ca>
10812
10813 * linux-fork.c (one_fork_p): Simplify.
10814
26f42329
SM
108152020-01-17 Simon Marchi <simon.marchi@efficios.com>
10816
10817 * top.c (struct qt_args): Remove.
10818 (kill_or_detach): Change return type to void, replace `void *`
10819 parameter with a proper one.
10820 (print_inferior_quit_action): Likewise.
10821 (quit_confirm): Use range-based for loop to iterate over inferiors.
10822 (quit_force): Likewise.
10823
a9ac81b1
SM
108242020-01-17 Simon Marchi <simon.marchi@efficios.com>
10825
10826 * mi/mi-main.c (run_one_inferior): Change return type to void, replace
10827 `void *` parameter with proper parameters.
10828 (mi_cmd_exec_run): Use range-based loop to iterate over inferiors.
10829 (print_one_inferior): Change return type to void, replace `void *`
10830 parameter with proper parameters.
10831 (mi_cmd_list_thread_groups): Use range-based loop to iterate over
10832 inferiors.
10833 (get_other_inferior): Remove.
10834 (mi_cmd_remove_inferior): Use range-based loop to iterate over
10835 inferiors.
10836
788eca49
SM
108372020-01-17 Simon Marchi <simon.marchi@efficios.com>
10838
10839 * mi/mi-interp.c (report_initial_inferior): Remove.
10840 (mi_interp::init): Use range-based for to iterate over inferiors.
10841
d9bc85b6
SM
108422020-01-17 Simon Marchi <simon.marchi@efficios.com>
10843
10844 * python/py-inferior.c (build_inferior_list): Remove.
10845 (gdbpy_ref): Use range-based for loop to iterate over inferiors.
10846
40c94099
CB
108472020-01-16 Christian Biesinger <cbiesinger@google.com>
10848
10849 * btrace.c (btrace_compute_ftrace_1): Fix spelling error (Unkown).
10850 (btrace_stitch_trace): Likewise.
10851 * charset.c (intermediate_encoding): Likewise (vaild).
10852 * nat/linux-btrace.c (linux_read_pt): Likewise (Unkown).
10853 * python/py-record-btrace.c (struct PyMethodDef): Likewise (occurences).
10854 * record-btrace.c (record_btrace_print_conf): Likewise (unkown).
10855
e0cdfe3c
HD
108562020-01-16 Hannes Domani <ssbssa@yahoo.de>
10857
10858 * windows-tdep.c (windows_get_tlb_type):
10859 Add rtl_user_process_parameters type.
10860
790f1718 108612020-01-16 Pedro Alves <palves@redhat.com>
aac66a4c 10862 Norbert Lange <nolange79@gmail.com>
790f1718
PA
10863
10864 PR build/24805
10865 * gdbsupport/gdb_proc_service.h (PS_EXPORT): New.
10866 (ps_get_thread_area, ps_getpid, ps_lcontinue, ps_lgetfpregs)
10867 (ps_lgetregs, ps_lsetfpregs, ps_lsetregs, ps_lstop, ps_pcontinue)
10868 (ps_pdread, ps_pdwrite, ps_pglobal_lookup, ps_pstop, ps_ptread)
10869 (ps_ptwrite, ps_lgetxregs, ps_lgetxregsize, ps_lsetxregs)
10870 (ps_plog): Redeclare exported functions with default visibility.
10871
3112ed97
NA
108722020-01-16 Nitika Achra <Nitika.Achra@amd.com>
10873
10874 * dwarf2loc.c (decode_debug_loclists_addresses): Handle
10875 DW_LLE_base_addressx, DW_LLE_startx_length, DW_LLE_start_length.
10876
8dc3273e
SM
108772020-01-15 Simon Marchi <simon.marchi@efficios.com>
10878
10879 * infcmd.c (post_create_inferior): Use get_thread_regcache
10880 instead of get_current_regcache.
10881
ff47f4f0
TT
108822020-01-14 Tom Tromey <tom@tromey.com>
10883
10884 PR symtab/12535:
10885 * python/python.c (gdbpy_decode_line): Treat empty string the same
10886 as no argument.
10887
975f45b7
TT
108882020-01-14 Tom Tromey <tom@tromey.com>
10889
10890 * Makefile.in (CLIBS): Remove second use of $(LIBIBERTY).
10891
25e57356
TT
108922020-01-14 Tom Tromey <tom@tromey.com>
10893
10894 * nat/linux-btrace.c: Don't include <config.h>.
10895 * nat/linux-ptrace.c: Don't include <config.h>.
10896 * nat/x86-linux-dregs.c: Don't include <config.h>.
10897
05ea2a05
TT
108982020-01-14 Tom Tromey <tom@tromey.com>
10899
10900 * configure: Rebuild.
10901 * configure.ac: Move many checks to ../gdbsupport/common.m4.
10902
01027315
TT
109032020-01-14 Tom Tromey <tom@tromey.com>
10904
10905 * nat/x86-linux-dregs.c: Include configh.h.
10906 * nat/linux-ptrace.c: Include configh.h.
10907 * nat/linux-btrace.c: Include configh.h.
10908 * defs.h: Include config.h, bfd.h.
10909 * configure.ac: Don't source common.host.
10910 (CONFIG_OBS, CONFIG_SRCS): Remove gdbsupport files.
10911 * configure: Rebuild.
10912 * acinclude.m4: Update path.
10913 * Makefile.in (SUPPORT, LIBSUPPORT, INCSUPPORT): New variables.
10914 (CONFIG_SRC_SUBDIR): Remove gdbsupport.
10915 (INTERNAL_CFLAGS_BASE): Add INCSUPPORT.
10916 (CLIBS): Add LIBSUPPORT.
10917 (CDEPS): Likewise.
10918 (COMMON_SFILES): Remove gdbsupport files.
10919 (HFILES_NO_SRCDIR): Likewise.
10920 (stamp-version): Update path to create-version.sh.
10921 (ALLDEPFILES): Remove gdbsupport files.
10922
b2ceabe8
TT
109232020-01-14 Tom Tromey <tom@tromey.com>
10924
10925 * gdbsupport/common.m4 (GDB_AC_COMMON): Define WIN32APILIBS and
10926 USE_WIN32API when needed.
10927 * configure.ac (USE_WIN32API): Don't define.
10928 (WIN32LIBS): Use WIN32APILIBS.
10929 * configure: Rebuild.
10930
25c51f71
TT
109312020-01-14 Tom Tromey <tom@tromey.com>
10932
10933 * configure: Rebuild.
10934 * gdbsupport/common.m4 (GDB_AC_COMMON): Fix indentation.
10935
717c684d
BE
109362020-01-14 Bernd Edlinger <bernd.edlinger@hotmail.de>
10937
10938 * skip.c (skip_function_command): Make skip w/o arguments use the
10939 name of the inlined function if pc is inside any inlined function.
10940
7da6a5b9
LM
109412020-01-14 Luis Machado <luis.machado@linaro.org>
10942
10943 * inf-ptrace.c (inf_ptrace_target::resume): Update comments.
10944 * infrun.c (resume_1): Likewise.
10945 (handle_inferior_event): Remove stale comment.
10946 * linux-nat.c (linux_nat_target::resume): Update comments.
10947 (save_stop_reason): Likewise.
10948 (linux_nat_filter_event): Likewise.
10949 * linux-nat.h (struct lwp_info) <stop_pc>, <stop_reason>: Likewise.
10950
44e4c775
AB
109512020-01-13 Andrew Burgess <andrew.burgess@embecosm.com>
10952
10953 * elfread.c (record_minimal_symbol): Set section index to 0 for
10954 non-allocatable sections.
10955
18a8505e
AT
10956
109572020-01-13 Ali Tamur <tamur@google.com>
10958
10959 * dwarf2read.c (dwarf2_debug_sections): Add debug_str_offsets sections.
10960 (dwarf2_cu): Add str_offsets_base field. Change the type of addr_base
10961 to gdb::optional. Update comments.
10962 (dwo_file): Update comments.
10963 (read_attribute): Update API to take an additional out parameter,
10964 need_reprocess. This is used to mark attributes that need other
10965 attributes (e.g. str_offsets_base) for correct computation which may not
10966 have been read yet.
10967 (read_attribute_reprocess): New function declaration.
10968 (read_addr_index): Likewise.
10969 (read_dwo_str_index): Likewise.
10970 (read_stub_str_index): Likewise.
10971 (dwarf2_per_objfile::locate_sections): Handle debug_str_offsets section.
10972 (lookup_addr_base): New function definition.
10973 (lookup_ranges_base): Likewise.
10974 (read_cutu_die_from_dwo): Use the new functions: lookup_addr_base,
10975 lookup_ranges_base.
10976 (init_cutu_and_read_dies): Update comments.
10977 (init_cutu_and_read_dies_no_follow): Change API to take parent compile
10978 unit. This is used to inherit parent's str_offsets_base and addr_base.
10979 Update comments.
10980 (init_cutu_and_read_dies_simple): Reflect API changes.
10981 (skip_one_die): Reflect API changes. Handle DW_FORM_rnglistx.
10982 (create_cus_hash_table): Change API to take parent compile unit.
10983 Reflect API changes.
10984 (open_and_init_dwo_file): Reflect API changes.
10985 (dwarf2_get_pc_bounds): Update comments.
10986 (dwarf2_record_block_ranges): Likewise.
10987 (read_full_die_1): Change implementation to reprocess attributes that
10988 need str_offsets_base and addr_base.
10989 (partial_die_info::read): Likewise.
10990 (read_attribute_reprocess): New function definition.
10991 (read_attribute_value): Change API to take an additional out parameter,
10992 need_reprocess. Handle DW_FORM_rnglistx. No longer trigger an error
10993 when a non-dwo compile unit has index based attributes.
10994 (read_attribute): Reflect API changes.
10995 (read_addr_index_1): Reflect API changes. Update comments.
10996 (dwarf2_read_addr_index_data): Reflect API changes.
10997 (dwarf2_read_addr_index): Likewise.
10998 (read_str_index): Change API and implementation. This becomes a helper
10999 to be used by the new string index related methods. Update error
11000 message and comments.
11001 (read_dwo_str_index): New function definition.
11002 (read_stub_str_index): Likewise.
11003 * dwarf2read.h (dwarf2_per_objfile): Add str_offsets field.
11004 * symfile.h (dwarf2_debug_sections): Likewise.
11005 * xcoffread.c (dwarf2_debug_sections): Likewise.
11006
0cac9354
SM
110072020-01-13 Simon Marchi <simon.marchi@efficios.com>
11008
11009 * gdbcore.h (struct core_fns) <core_read_registers>: Change
11010 core_reg_sect type to gdb_byte *.
11011 * arm-nbsd-nat.c (fetch_elfcore_registers): Likewise.
11012 * cris-tdep.c (fetch_core_registers): Likewise.
11013 * corelow.c (core_target::get_core_register_section): Change
11014 type of `contents` to gdb::byte_vector.
11015
9a6d629c
AB
110162020-01-13 Andrew Burgess <andrew.burgess@embecosm.com>
11017
11018 * tui/tui-wingeneral.c (box_win): Position the title in the center
11019 of the border.
11020
d8b2f9e3
SM
110212020-01-13 Simon Marchi <simon.marchi@polymtl.ca>
11022
11023 * corelow.c (core_target::get_core_register_section): Use
11024 std::vector instead of alloca.
11025
bb564c58
SM
110262020-01-13 Simon Marchi <simon.marchi@efficios.com>
11027
11028 * warning.m4: Add -Wmissing-declarations to build_warnings.
11029 * configure: Re-generate.
11030
6b366111
SM
110312020-01-13 Simon Marchi <simon.marchi@efficios.com>
11032
11033 * python/python.c (init__gdb_module): Add declaration.
11034
6c265988
SM
110352020-01-13 Simon Marchi <simon.marchi@efficios.com>
11036
11037 * aarch64-fbsd-nat.c (_initialize_aarch64_fbsd_nat): Add declaration.
11038 * aarch64-fbsd-tdep.c (_initialize_aarch64_fbsd_tdep): Add declaration.
11039 * aarch64-linux-nat.c (_initialize_aarch64_linux_nat): Add declaration.
11040 * aarch64-linux-tdep.c (_initialize_aarch64_linux_tdep): Add declaration.
11041 * aarch64-newlib-tdep.c (_initialize_aarch64_newlib_tdep): Add declaration.
11042 * aarch64-tdep.c (_initialize_aarch64_tdep): Add declaration.
11043 * ada-exp.y (_initialize_ada_exp): Add declaration.
11044 * ada-lang.c (_initialize_ada_language): Add declaration.
11045 * ada-tasks.c (_initialize_tasks): Add declaration.
11046 * agent.c (_initialize_agent): Add declaration.
11047 * aix-thread.c (_initialize_aix_thread): Add declaration.
11048 * alpha-bsd-nat.c (_initialize_alphabsd_nat): Add declaration.
11049 * alpha-linux-nat.c (_initialize_alpha_linux_nat): Add declaration.
11050 * alpha-linux-tdep.c (_initialize_alpha_linux_tdep): Add declaration.
11051 * alpha-nbsd-tdep.c (_initialize_alphanbsd_tdep): Add declaration.
11052 * alpha-obsd-tdep.c (_initialize_alphaobsd_tdep): Add declaration.
11053 * alpha-tdep.c (_initialize_alpha_tdep): Add declaration.
11054 * amd64-darwin-tdep.c (_initialize_amd64_darwin_tdep): Add declaration.
11055 * amd64-dicos-tdep.c (_initialize_amd64_dicos_tdep): Add declaration.
11056 * amd64-fbsd-nat.c (_initialize_amd64fbsd_nat): Add declaration.
11057 * amd64-fbsd-tdep.c (_initialize_amd64fbsd_tdep): Add declaration.
11058 * amd64-linux-nat.c (_initialize_amd64_linux_nat): Add declaration.
11059 * amd64-linux-tdep.c (_initialize_amd64_linux_tdep): Add declaration.
11060 * amd64-nbsd-nat.c (_initialize_amd64nbsd_nat): Add declaration.
11061 * amd64-nbsd-tdep.c (_initialize_amd64nbsd_tdep): Add declaration.
11062 * amd64-obsd-nat.c (_initialize_amd64obsd_nat): Add declaration.
11063 * amd64-obsd-tdep.c (_initialize_amd64obsd_tdep): Add declaration.
11064 * amd64-sol2-tdep.c (_initialize_amd64_sol2_tdep): Add declaration.
11065 * amd64-tdep.c (_initialize_amd64_tdep): Add declaration.
11066 * amd64-windows-nat.c (_initialize_amd64_windows_nat): Add declaration.
11067 * amd64-windows-tdep.c (_initialize_amd64_windows_tdep): Add declaration.
11068 * annotate.c (_initialize_annotate): Add declaration.
11069 * arc-newlib-tdep.c (_initialize_arc_newlib_tdep): Add declaration.
11070 * arc-tdep.c (_initialize_arc_tdep): Add declaration.
11071 * arch-utils.c (_initialize_gdbarch_utils): Add declaration.
11072 * arm-fbsd-nat.c (_initialize_arm_fbsd_nat): Add declaration.
11073 * arm-fbsd-tdep.c (_initialize_arm_fbsd_tdep): Add declaration.
11074 * arm-linux-nat.c (_initialize_arm_linux_nat): Add declaration.
11075 * arm-linux-tdep.c (_initialize_arm_linux_tdep): Add declaration.
11076 * arm-nbsd-nat.c (_initialize_arm_netbsd_nat): Add declaration.
11077 * arm-nbsd-tdep.c (_initialize_arm_netbsd_tdep): Add declaration.
11078 * arm-obsd-tdep.c (_initialize_armobsd_tdep): Add declaration.
11079 * arm-pikeos-tdep.c (_initialize_arm_pikeos_tdep): Add declaration.
11080 * arm-symbian-tdep.c (_initialize_arm_symbian_tdep): Add declaration.
11081 * arm-tdep.c (_initialize_arm_tdep): Add declaration.
11082 * arm-wince-tdep.c (_initialize_arm_wince_tdep): Add declaration.
11083 * auto-load.c (_initialize_auto_load): Add declaration.
11084 * auxv.c (_initialize_auxv): Add declaration.
11085 * avr-tdep.c (_initialize_avr_tdep): Add declaration.
11086 * ax-gdb.c (_initialize_ax_gdb): Add declaration.
11087 * bfin-linux-tdep.c (_initialize_bfin_linux_tdep): Add declaration.
11088 * bfin-tdep.c (_initialize_bfin_tdep): Add declaration.
11089 * break-catch-sig.c (_initialize_break_catch_sig): Add declaration.
11090 * break-catch-syscall.c (_initialize_break_catch_syscall): Add declaration.
11091 * break-catch-throw.c (_initialize_break_catch_throw): Add declaration.
11092 * breakpoint.c (_initialize_breakpoint): Add declaration.
11093 * bsd-uthread.c (_initialize_bsd_uthread): Add declaration.
11094 * btrace.c (_initialize_btrace): Add declaration.
11095 * charset.c (_initialize_charset): Add declaration.
11096 * cli/cli-cmds.c (_initialize_cli_cmds): Add declaration.
11097 * cli/cli-dump.c (_initialize_cli_dump): Add declaration.
11098 * cli/cli-interp.c (_initialize_cli_interp): Add declaration.
11099 * cli/cli-logging.c (_initialize_cli_logging): Add declaration.
11100 * cli/cli-script.c (_initialize_cli_script): Add declaration.
11101 * cli/cli-style.c (_initialize_cli_style): Add declaration.
11102 * coff-pe-read.c (_initialize_coff_pe_read): Add declaration.
11103 * coffread.c (_initialize_coffread): Add declaration.
11104 * compile/compile-cplus-types.c (_initialize_compile_cplus_types): Add declaration.
11105 * compile/compile.c (_initialize_compile): Add declaration.
11106 * complaints.c (_initialize_complaints): Add declaration.
11107 * completer.c (_initialize_completer): Add declaration.
11108 * copying.c (_initialize_copying): Add declaration.
11109 * corefile.c (_initialize_core): Add declaration.
11110 * corelow.c (_initialize_corelow): Add declaration.
11111 * cp-abi.c (_initialize_cp_abi): Add declaration.
11112 * cp-namespace.c (_initialize_cp_namespace): Add declaration.
11113 * cp-support.c (_initialize_cp_support): Add declaration.
11114 * cp-valprint.c (_initialize_cp_valprint): Add declaration.
11115 * cris-linux-tdep.c (_initialize_cris_linux_tdep): Add declaration.
11116 * cris-tdep.c (_initialize_cris_tdep): Add declaration.
11117 * csky-linux-tdep.c (_initialize_csky_linux_tdep): Add declaration.
11118 * csky-tdep.c (_initialize_csky_tdep): Add declaration.
11119 * ctfread.c (_initialize_ctfread): Add declaration.
11120 * d-lang.c (_initialize_d_language): Add declaration.
11121 * darwin-nat-info.c (_initialize_darwin_info_commands): Add declaration.
11122 * darwin-nat.c (_initialize_darwin_nat): Add declaration.
11123 * dbxread.c (_initialize_dbxread): Add declaration.
11124 * dcache.c (_initialize_dcache): Add declaration.
11125 * disasm-selftests.c (_initialize_disasm_selftests): Add declaration.
11126 * disasm.c (_initialize_disasm): Add declaration.
11127 * dtrace-probe.c (_initialize_dtrace_probe): Add declaration.
11128 * dummy-frame.c (_initialize_dummy_frame): Add declaration.
11129 * dwarf-index-cache.c (_initialize_index_cache): Add declaration.
11130 * dwarf-index-write.c (_initialize_dwarf_index_write): Add declaration.
11131 * dwarf2-frame-tailcall.c (_initialize_tailcall_frame): Add declaration.
11132 * dwarf2-frame.c (_initialize_dwarf2_frame): Add declaration.
11133 * dwarf2expr.c (_initialize_dwarf2expr): Add declaration.
11134 * dwarf2loc.c (_initialize_dwarf2loc): Add declaration.
11135 * dwarf2read.c (_initialize_dwarf2_read): Add declaration.
11136 * elfread.c (_initialize_elfread): Add declaration.
11137 * exec.c (_initialize_exec): Add declaration.
11138 * extension.c (_initialize_extension): Add declaration.
11139 * f-lang.c (_initialize_f_language): Add declaration.
11140 * f-valprint.c (_initialize_f_valprint): Add declaration.
11141 * fbsd-nat.c (_initialize_fbsd_nat): Add declaration.
11142 * fbsd-tdep.c (_initialize_fbsd_tdep): Add declaration.
11143 * filesystem.c (_initialize_filesystem): Add declaration.
11144 * findcmd.c (_initialize_mem_search): Add declaration.
11145 * findvar.c (_initialize_findvar): Add declaration.
11146 * fork-child.c (_initialize_fork_child): Add declaration.
11147 * frame-base.c (_initialize_frame_base): Add declaration.
11148 * frame-unwind.c (_initialize_frame_unwind): Add declaration.
11149 * frame.c (_initialize_frame): Add declaration.
11150 * frv-linux-tdep.c (_initialize_frv_linux_tdep): Add declaration.
11151 * frv-tdep.c (_initialize_frv_tdep): Add declaration.
11152 * ft32-tdep.c (_initialize_ft32_tdep): Add declaration.
11153 * gcore.c (_initialize_gcore): Add declaration.
11154 * gdb-demangle.c (_initialize_gdb_demangle): Add declaration.
11155 * gdb_bfd.c (_initialize_gdb_bfd): Add declaration.
11156 * gdbarch-selftests.c (_initialize_gdbarch_selftests): Add declaration.
11157 * gdbarch.c (_initialize_gdbarch): Add declaration.
11158 * gdbtypes.c (_initialize_gdbtypes): Add declaration.
11159 * gnu-nat.c (_initialize_gnu_nat): Add declaration.
11160 * gnu-v2-abi.c (_initialize_gnu_v2_abi): Add declaration.
11161 * gnu-v3-abi.c (_initialize_gnu_v3_abi): Add declaration.
11162 * go-lang.c (_initialize_go_language): Add declaration.
11163 * go32-nat.c (_initialize_go32_nat): Add declaration.
11164 * guile/guile.c (_initialize_guile): Add declaration.
11165 * h8300-tdep.c (_initialize_h8300_tdep): Add declaration.
11166 * hppa-linux-nat.c (_initialize_hppa_linux_nat): Add declaration.
11167 * hppa-linux-tdep.c (_initialize_hppa_linux_tdep): Add declaration.
11168 * hppa-nbsd-nat.c (_initialize_hppanbsd_nat): Add declaration.
11169 * hppa-nbsd-tdep.c (_initialize_hppanbsd_tdep): Add declaration.
11170 * hppa-obsd-nat.c (_initialize_hppaobsd_nat): Add declaration.
11171 * hppa-obsd-tdep.c (_initialize_hppabsd_tdep): Add declaration.
11172 * hppa-tdep.c (_initialize_hppa_tdep): Add declaration.
11173 * i386-bsd-nat.c (_initialize_i386bsd_nat): Add declaration.
11174 * i386-cygwin-tdep.c (_initialize_i386_cygwin_tdep): Add declaration.
11175 * i386-darwin-nat.c (_initialize_i386_darwin_nat): Add declaration.
11176 * i386-darwin-tdep.c (_initialize_i386_darwin_tdep): Add declaration.
11177 * i386-dicos-tdep.c (_initialize_i386_dicos_tdep): Add declaration.
11178 * i386-fbsd-nat.c (_initialize_i386fbsd_nat): Add declaration.
11179 * i386-fbsd-tdep.c (_initialize_i386fbsd_tdep): Add declaration.
11180 * i386-gnu-nat.c (_initialize_i386gnu_nat): Add declaration.
11181 * i386-gnu-tdep.c (_initialize_i386gnu_tdep): Add declaration.
11182 * i386-go32-tdep.c (_initialize_i386_go32_tdep): Add declaration.
11183 * i386-linux-nat.c (_initialize_i386_linux_nat): Add declaration.
11184 * i386-linux-tdep.c (_initialize_i386_linux_tdep): Add declaration.
11185 * i386-nbsd-nat.c (_initialize_i386nbsd_nat): Add declaration.
11186 * i386-nbsd-tdep.c (_initialize_i386nbsd_tdep): Add declaration.
11187 * i386-nto-tdep.c (_initialize_i386nto_tdep): Add declaration.
11188 * i386-obsd-nat.c (_initialize_i386obsd_nat): Add declaration.
11189 * i386-obsd-tdep.c (_initialize_i386obsd_tdep): Add declaration.
11190 * i386-sol2-nat.c (_initialize_amd64_sol2_nat): Add declaration.
11191 * i386-sol2-tdep.c (_initialize_i386_sol2_tdep): Add declaration.
11192 * i386-tdep.c (_initialize_i386_tdep): Add declaration.
11193 * i386-windows-nat.c (_initialize_i386_windows_nat): Add declaration.
11194 * ia64-libunwind-tdep.c (_initialize_libunwind_frame): Add declaration.
11195 * ia64-linux-nat.c (_initialize_ia64_linux_nat): Add declaration.
11196 * ia64-linux-tdep.c (_initialize_ia64_linux_tdep): Add declaration.
11197 * ia64-tdep.c (_initialize_ia64_tdep): Add declaration.
11198 * ia64-vms-tdep.c (_initialize_ia64_vms_tdep): Add declaration.
11199 * infcall.c (_initialize_infcall): Add declaration.
11200 * infcmd.c (_initialize_infcmd): Add declaration.
11201 * inflow.c (_initialize_inflow): Add declaration.
11202 * infrun.c (_initialize_infrun): Add declaration.
11203 * interps.c (_initialize_interpreter): Add declaration.
11204 * iq2000-tdep.c (_initialize_iq2000_tdep): Add declaration.
11205 * jit.c (_initialize_jit): Add declaration.
11206 * language.c (_initialize_language): Add declaration.
11207 * linux-fork.c (_initialize_linux_fork): Add declaration.
11208 * linux-nat.c (_initialize_linux_nat): Add declaration.
11209 * linux-tdep.c (_initialize_linux_tdep): Add declaration.
11210 * linux-thread-db.c (_initialize_thread_db): Add declaration.
11211 * lm32-tdep.c (_initialize_lm32_tdep): Add declaration.
11212 * m2-lang.c (_initialize_m2_language): Add declaration.
11213 * m32c-tdep.c (_initialize_m32c_tdep): Add declaration.
11214 * m32r-linux-nat.c (_initialize_m32r_linux_nat): Add declaration.
11215 * m32r-linux-tdep.c (_initialize_m32r_linux_tdep): Add declaration.
11216 * m32r-tdep.c (_initialize_m32r_tdep): Add declaration.
11217 * m68hc11-tdep.c (_initialize_m68hc11_tdep): Add declaration.
11218 * m68k-bsd-nat.c (_initialize_m68kbsd_nat): Add declaration.
11219 * m68k-bsd-tdep.c (_initialize_m68kbsd_tdep): Add declaration.
11220 * m68k-linux-nat.c (_initialize_m68k_linux_nat): Add declaration.
11221 * m68k-linux-tdep.c (_initialize_m68k_linux_tdep): Add declaration.
11222 * m68k-tdep.c (_initialize_m68k_tdep): Add declaration.
11223 * machoread.c (_initialize_machoread): Add declaration.
11224 * macrocmd.c (_initialize_macrocmd): Add declaration.
11225 * macroscope.c (_initialize_macroscope): Add declaration.
11226 * maint-test-options.c (_initialize_maint_test_options): Add declaration.
11227 * maint-test-settings.c (_initialize_maint_test_settings): Add declaration.
11228 * maint.c (_initialize_maint_cmds): Add declaration.
11229 * mdebugread.c (_initialize_mdebugread): Add declaration.
11230 * memattr.c (_initialize_mem): Add declaration.
11231 * mep-tdep.c (_initialize_mep_tdep): Add declaration.
11232 * mi/mi-cmd-env.c (_initialize_mi_cmd_env): Add declaration.
11233 * mi/mi-cmds.c (_initialize_mi_cmds): Add declaration.
11234 * mi/mi-interp.c (_initialize_mi_interp): Add declaration.
11235 * mi/mi-main.c (_initialize_mi_main): Add declaration.
11236 * microblaze-linux-tdep.c (_initialize_microblaze_linux_tdep): Add declaration.
11237 * microblaze-tdep.c (_initialize_microblaze_tdep): Add declaration.
11238 * mips-fbsd-nat.c (_initialize_mips_fbsd_nat): Add declaration.
11239 * mips-fbsd-tdep.c (_initialize_mips_fbsd_tdep): Add declaration.
11240 * mips-linux-nat.c (_initialize_mips_linux_nat): Add declaration.
11241 * mips-linux-tdep.c (_initialize_mips_linux_tdep): Add declaration.
11242 * mips-nbsd-nat.c (_initialize_mipsnbsd_nat): Add declaration.
11243 * mips-nbsd-tdep.c (_initialize_mipsnbsd_tdep): Add declaration.
11244 * mips-sde-tdep.c (_initialize_mips_sde_tdep): Add declaration.
11245 * mips-tdep.c (_initialize_mips_tdep): Add declaration.
11246 * mips64-obsd-nat.c (_initialize_mips64obsd_nat): Add declaration.
11247 * mips64-obsd-tdep.c (_initialize_mips64obsd_tdep): Add declaration.
11248 * mipsread.c (_initialize_mipsread): Add declaration.
11249 * mn10300-linux-tdep.c (_initialize_mn10300_linux_tdep): Add declaration.
11250 * mn10300-tdep.c (_initialize_mn10300_tdep): Add declaration.
11251 * moxie-tdep.c (_initialize_moxie_tdep): Add declaration.
11252 * msp430-tdep.c (_initialize_msp430_tdep): Add declaration.
11253 * nds32-tdep.c (_initialize_nds32_tdep): Add declaration.
11254 * nios2-linux-tdep.c (_initialize_nios2_linux_tdep): Add declaration.
11255 * nios2-tdep.c (_initialize_nios2_tdep): Add declaration.
11256 * nto-procfs.c (_initialize_procfs): Add declaration.
11257 * objc-lang.c (_initialize_objc_language): Add declaration.
11258 * observable.c (_initialize_observer): Add declaration.
11259 * opencl-lang.c (_initialize_opencl_language): Add declaration.
11260 * or1k-linux-tdep.c (_initialize_or1k_linux_tdep): Add declaration.
11261 * or1k-tdep.c (_initialize_or1k_tdep): Add declaration.
11262 * osabi.c (_initialize_gdb_osabi): Add declaration.
11263 * osdata.c (_initialize_osdata): Add declaration.
11264 * p-valprint.c (_initialize_pascal_valprint): Add declaration.
11265 * parse.c (_initialize_parse): Add declaration.
11266 * ppc-fbsd-nat.c (_initialize_ppcfbsd_nat): Add declaration.
11267 * ppc-fbsd-tdep.c (_initialize_ppcfbsd_tdep): Add declaration.
11268 * ppc-linux-nat.c (_initialize_ppc_linux_nat): Add declaration.
11269 * ppc-linux-tdep.c (_initialize_ppc_linux_tdep): Add declaration.
11270 * ppc-nbsd-nat.c (_initialize_ppcnbsd_nat): Add declaration.
11271 * ppc-nbsd-tdep.c (_initialize_ppcnbsd_tdep): Add declaration.
11272 * ppc-obsd-nat.c (_initialize_ppcobsd_nat): Add declaration.
11273 * ppc-obsd-tdep.c (_initialize_ppcobsd_tdep): Add declaration.
11274 * printcmd.c (_initialize_printcmd): Add declaration.
11275 * probe.c (_initialize_probe): Add declaration.
11276 * proc-api.c (_initialize_proc_api): Add declaration.
11277 * proc-events.c (_initialize_proc_events): Add declaration.
11278 * proc-service.c (_initialize_proc_service): Add declaration.
11279 * procfs.c (_initialize_procfs): Add declaration.
11280 * producer.c (_initialize_producer): Add declaration.
11281 * psymtab.c (_initialize_psymtab): Add declaration.
11282 * python/python.c (_initialize_python): Add declaration.
11283 * ravenscar-thread.c (_initialize_ravenscar): Add declaration.
11284 * record-btrace.c (_initialize_record_btrace): Add declaration.
11285 * record-full.c (_initialize_record_full): Add declaration.
11286 * record.c (_initialize_record): Add declaration.
11287 * regcache-dump.c (_initialize_regcache_dump): Add declaration.
11288 * regcache.c (_initialize_regcache): Add declaration.
11289 * reggroups.c (_initialize_reggroup): Add declaration.
11290 * remote-notif.c (_initialize_notif): Add declaration.
11291 * remote-sim.c (_initialize_remote_sim): Add declaration.
11292 * remote.c (_initialize_remote): Add declaration.
11293 * reverse.c (_initialize_reverse): Add declaration.
11294 * riscv-fbsd-nat.c (_initialize_riscv_fbsd_nat): Add declaration.
11295 * riscv-fbsd-tdep.c (_initialize_riscv_fbsd_tdep): Add declaration.
11296 * riscv-linux-nat.c (_initialize_riscv_linux_nat): Add declaration.
11297 * riscv-linux-tdep.c (_initialize_riscv_linux_tdep): Add declaration.
11298 * riscv-tdep.c (_initialize_riscv_tdep): Add declaration.
11299 * rl78-tdep.c (_initialize_rl78_tdep): Add declaration.
11300 * rs6000-aix-tdep.c (_initialize_rs6000_aix_tdep): Add declaration.
11301 * rs6000-lynx178-tdep.c (_initialize_rs6000_lynx178_tdep):
11302 Add declaration.
11303 * rs6000-nat.c (_initialize_rs6000_nat): Add declaration.
11304 * rs6000-tdep.c (_initialize_rs6000_tdep): Add declaration.
11305 * run-on-main-thread.c (_initialize_run_on_main_thread): Add declaration.
11306 * rust-exp.y (_initialize_rust_exp): Add declaration.
11307 * rx-tdep.c (_initialize_rx_tdep): Add declaration.
11308 * s12z-tdep.c (_initialize_s12z_tdep): Add declaration.
11309 * s390-linux-nat.c (_initialize_s390_nat): Add declaration.
11310 * s390-linux-tdep.c (_initialize_s390_linux_tdep): Add declaration.
11311 * s390-tdep.c (_initialize_s390_tdep): Add declaration.
11312 * score-tdep.c (_initialize_score_tdep): Add declaration.
11313 * ser-go32.c (_initialize_ser_dos): Add declaration.
11314 * ser-mingw.c (_initialize_ser_windows): Add declaration.
11315 * ser-pipe.c (_initialize_ser_pipe): Add declaration.
11316 * ser-tcp.c (_initialize_ser_tcp): Add declaration.
11317 * ser-uds.c (_initialize_ser_socket): Add declaration.
11318 * ser-unix.c (_initialize_ser_hardwire): Add declaration.
11319 * serial.c (_initialize_serial): Add declaration.
11320 * sh-linux-tdep.c (_initialize_sh_linux_tdep): Add declaration.
11321 * sh-nbsd-nat.c (_initialize_shnbsd_nat): Add declaration.
11322 * sh-nbsd-tdep.c (_initialize_shnbsd_tdep): Add declaration.
11323 * sh-tdep.c (_initialize_sh_tdep): Add declaration.
11324 * skip.c (_initialize_step_skip): Add declaration.
11325 * sol-thread.c (_initialize_sol_thread): Add declaration.
11326 * solib-aix.c (_initialize_solib_aix): Add declaration.
11327 * solib-darwin.c (_initialize_darwin_solib): Add declaration.
11328 * solib-dsbt.c (_initialize_dsbt_solib): Add declaration.
11329 * solib-frv.c (_initialize_frv_solib): Add declaration.
11330 * solib-svr4.c (_initialize_svr4_solib): Add declaration.
11331 * solib-target.c (_initialize_solib_target): Add declaration.
11332 * solib.c (_initialize_solib): Add declaration.
11333 * source-cache.c (_initialize_source_cache): Add declaration.
11334 * source.c (_initialize_source): Add declaration.
11335 * sparc-linux-nat.c (_initialize_sparc_linux_nat): Add declaration.
11336 * sparc-linux-tdep.c (_initialize_sparc_linux_tdep): Add declaration.
11337 * sparc-nat.c (_initialize_sparc_nat): Add declaration.
11338 * sparc-nbsd-nat.c (_initialize_sparcnbsd_nat): Add declaration.
11339 * sparc-nbsd-tdep.c (_initialize_sparcnbsd_tdep): Add declaration.
11340 * sparc-obsd-tdep.c (_initialize_sparc32obsd_tdep): Add declaration.
11341 * sparc-sol2-tdep.c (_initialize_sparc_sol2_tdep): Add declaration.
11342 * sparc-tdep.c (_initialize_sparc_tdep): Add declaration.
11343 * sparc64-fbsd-nat.c (_initialize_sparc64fbsd_nat): Add declaration.
11344 * sparc64-fbsd-tdep.c (_initialize_sparc64fbsd_tdep): Add declaration.
11345 * sparc64-linux-nat.c (_initialize_sparc64_linux_nat): Add declaration.
11346 * sparc64-linux-tdep.c (_initialize_sparc64_linux_tdep): Add declaration.
11347 * sparc64-nat.c (_initialize_sparc64_nat): Add declaration.
11348 * sparc64-nbsd-nat.c (_initialize_sparc64nbsd_nat): Add declaration.
11349 * sparc64-nbsd-tdep.c (_initialize_sparc64nbsd_tdep): Add declaration.
11350 * sparc64-obsd-nat.c (_initialize_sparc64obsd_nat): Add declaration.
11351 * sparc64-obsd-tdep.c (_initialize_sparc64obsd_tdep): Add declaration.
11352 * sparc64-sol2-tdep.c (_initialize_sparc64_sol2_tdep): Add declaration.
11353 * sparc64-tdep.c (_initialize_sparc64_adi_tdep): Add declaration.
11354 * stabsread.c (_initialize_stabsread): Add declaration.
11355 * stack.c (_initialize_stack): Add declaration.
11356 * stap-probe.c (_initialize_stap_probe): Add declaration.
11357 * std-regs.c (_initialize_frame_reg): Add declaration.
11358 * symfile-debug.c (_initialize_symfile_debug): Add declaration.
11359 * symfile-mem.c (_initialize_symfile_mem): Add declaration.
11360 * symfile.c (_initialize_symfile): Add declaration.
11361 * symmisc.c (_initialize_symmisc): Add declaration.
11362 * symtab.c (_initialize_symtab): Add declaration.
11363 * target.c (_initialize_target): Add declaration.
11364 * target-connection.c (_initialize_target_connection): Add
11365 declaration.
11366 * target-dcache.c (_initialize_target_dcache): Add declaration.
11367 * target-descriptions.c (_initialize_target_descriptions): Add declaration.
11368 * thread.c (_initialize_thread): Add declaration.
11369 * tic6x-linux-tdep.c (_initialize_tic6x_linux_tdep): Add declaration.
11370 * tic6x-tdep.c (_initialize_tic6x_tdep): Add declaration.
11371 * tilegx-linux-nat.c (_initialize_tile_linux_nat): Add declaration.
11372 * tilegx-linux-tdep.c (_initialize_tilegx_linux_tdep): Add declaration.
11373 * tilegx-tdep.c (_initialize_tilegx_tdep): Add declaration.
11374 * tracectf.c (_initialize_ctf): Add declaration.
11375 * tracefile-tfile.c (_initialize_tracefile_tfile): Add declaration.
11376 * tracefile.c (_initialize_tracefile): Add declaration.
11377 * tracepoint.c (_initialize_tracepoint): Add declaration.
11378 * tui/tui-hooks.c (_initialize_tui_hooks): Add declaration.
11379 * tui/tui-interp.c (_initialize_tui_interp): Add declaration.
11380 * tui/tui-layout.c (_initialize_tui_layout): Add declaration.
11381 * tui/tui-regs.c (_initialize_tui_regs): Add declaration.
11382 * tui/tui-stack.c (_initialize_tui_stack): Add declaration.
11383 * tui/tui-win.c (_initialize_tui_win): Add declaration.
11384 * tui/tui.c (_initialize_tui): Add declaration.
11385 * typeprint.c (_initialize_typeprint): Add declaration.
11386 * ui-style.c (_initialize_ui_style): Add declaration.
11387 * unittests/array-view-selftests.c (_initialize_array_view_selftests): Add declaration.
11388 * unittests/child-path-selftests.c (_initialize_child_path_selftests): Add declaration.
11389 * unittests/cli-utils-selftests.c (_initialize_cli_utils_selftests): Add declaration.
11390 * unittests/common-utils-selftests.c (_initialize_common_utils_selftests): Add declaration.
11391 * unittests/copy_bitwise-selftests.c (_initialize_copy_bitwise_utils_selftests): Add declaration.
11392 * unittests/environ-selftests.c (_initialize_environ_selftests): Add declaration.
11393 * unittests/filtered_iterator-selftests.c
11394 (_initialize_filtered_iterator_selftests): Add declaration.
11395 * unittests/format_pieces-selftests.c (_initialize_format_pieces_selftests): Add declaration.
11396 * unittests/function-view-selftests.c (_initialize_function_view_selftests): Add declaration.
11397 * unittests/help-doc-selftests.c (_initialize_help_doc_selftests): Add declaration.
11398 * unittests/lookup_name_info-selftests.c (_initialize_lookup_name_info_selftests): Add declaration.
11399 * unittests/main-thread-selftests.c
11400 (_initialize_main_thread_selftests): Add declaration.
11401 * unittests/memory-map-selftests.c (_initialize_memory_map_selftests): Add declaration.
11402 * unittests/memrange-selftests.c (_initialize_memrange_selftests): Add declaration.
11403 * unittests/mkdir-recursive-selftests.c (_initialize_mkdir_recursive_selftests): Add declaration.
11404 * unittests/observable-selftests.c (_initialize_observer_selftest): Add declaration.
11405 * unittests/offset-type-selftests.c (_initialize_offset_type_selftests): Add declaration.
11406 * unittests/optional-selftests.c (_initialize_optional_selftests): Add declaration.
11407 * unittests/parse-connection-spec-selftests.c (_initialize_parse_connection_spec_selftests): Add declaration.
11408 * unittests/rsp-low-selftests.c (_initialize_rsp_low_selftests): Add declaration.
11409 * unittests/scoped_fd-selftests.c (_initialize_scoped_fd_selftests): Add declaration.
11410 * unittests/scoped_mmap-selftests.c (_initialize_scoped_mmap_selftests): Add declaration.
11411 * unittests/scoped_restore-selftests.c (_initialize_scoped_restore_selftests): Add declaration.
11412 * unittests/string_view-selftests.c (_initialize_string_view_selftests): Add declaration.
11413 * unittests/style-selftests.c (_initialize_style_selftest): Add declaration.
11414 * unittests/tracepoint-selftests.c (_initialize_tracepoint_selftests): Add declaration.
11415 * unittests/tui-selftests.c (_initialize_tui_selftest): Add
11416 declaration.
11417 * unittests/unpack-selftests.c (_initialize_unpack_selftests): Add declaration.
11418 * unittests/utils-selftests.c (_initialize_utils_selftests): Add declaration.
11419 * unittests/vec-utils-selftests.c (_initialize_vec_utils_selftests): Add declaration.
11420 * unittests/xml-utils-selftests.c (_initialize_xml_utils): Add declaration.
11421 * user-regs.c (_initialize_user_regs): Add declaration.
11422 * utils.c (_initialize_utils): Add declaration.
11423 * v850-tdep.c (_initialize_v850_tdep): Add declaration.
11424 * valops.c (_initialize_valops): Add declaration.
11425 * valprint.c (_initialize_valprint): Add declaration.
11426 * value.c (_initialize_values): Add declaration.
11427 * varobj.c (_initialize_varobj): Add declaration.
11428 * vax-bsd-nat.c (_initialize_vaxbsd_nat): Add declaration.
11429 * vax-nbsd-tdep.c (_initialize_vaxnbsd_tdep): Add declaration.
11430 * vax-tdep.c (_initialize_vax_tdep): Add declaration.
11431 * windows-nat.c (_initialize_windows_nat): Add declaration.
11432 (_initialize_check_for_gdb_ini): Add declaration.
11433 (_initialize_loadable): Add declaration.
11434 * windows-tdep.c (_initialize_windows_tdep): Add declaration.
11435 * x86-bsd-nat.c (_initialize_x86_bsd_nat): Add declaration.
11436 * x86-linux-nat.c (_initialize_x86_linux_nat): Add declaration.
11437 * xcoffread.c (_initialize_xcoffread): Add declaration.
11438 * xml-support.c (_initialize_xml_support): Add declaration.
11439 * xstormy16-tdep.c (_initialize_xstormy16_tdep): Add declaration.
11440 * xtensa-linux-nat.c (_initialize_xtensa_linux_nat): Add declaration.
11441 * xtensa-linux-tdep.c (_initialize_xtensa_linux_tdep): Add declaration.
11442 * xtensa-tdep.c (_initialize_xtensa_tdep): Add declaration.
11443
e2de1eec
SM
114442020-01-13 Simon Marchi <simon.marchi@polymtl.ca>
11445
11446 * regformats/regdat.sh: Generate declaration for init function.
11447
e0037b4c
SM
114482020-01-13 Simon Marchi <simon.marchi@polymtl.ca>
11449
11450 * remote-sim.c (next_pid, INITIAL_PID, sim_inferior_data): Move
11451 up.
11452 (gdbsim_target) <get_inferior_data_by_ptid, resume_one_inferior,
11453 close_one_inferior>: New methods.
11454 (get_sim_inferior_data_by_ptid): Move to gdbsim_target,
11455 pass down target to find_inferior_pid.
11456 (gdbsim_target::fetch_registers, gdbsim_target::store_registers):
11457 Pass down target to find_inferior_ptid.
11458 (gdbsim_target::create_inferior): Pass down target to
11459 add_thread_silent.
11460 (gdbsim_close_inferior): Move to gdbsim_close_inferior, pass
11461 target down to find_inferior_ptid and switch_to_thread.
11462 (gdbsim_target::close): Update to call close_one_inferior.
11463 (struct resume_data): Remove.
11464 (gdbsim_resume_inferior): Move to gdbsim_target. Take arguments
11465 directly, rather than through a void pointer.
11466 (gdbsim_target::resume): Update to call resume_one_inferior.
11467
58920b5b
SM
114682020-01-12 Simon Marchi <simon.marchi@polymtl.ca>
11469
11470 * gdbsupport/gdb_wait.c: Include gdb_wait.h.
11471
4ec89149
PA
114722020-01-12 Pedro Alves <palves@redhat.com>
11473
11474 * bsd-kvm.c (bsd_kvm_target::close): Call exit_inferior_silent
11475 directly for the current inferior instead of
11476 discard_all_inferiors.
11477 (discard_all_inferiors): Delete.
11478
7c392d1d
TT
114792020-01-11 Tom Tromey <tom@tromey.com>
11480
11481 * tui/tui-wingeneral.c (box_win): Check cli_styling.
11482 * tui/tui-winsource.c (tui_source_window_base::refill): Use
11483 deprecated_safe_get_selected_frame.
11484
d9ebdab7
TBA
114852020-01-10 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
11486
11487 * inferior.c (print_inferior): Switch inferior before printing it.
11488
f3c469b9
PA
114892020-01-10 Aleksandar Paunovic <aleksandar.paunovic@intel.com>
11490 Pedro Alves <palves@redhat.com>
11491
11492 * progspace-and-thread.c (switch_to_program_space_and_thread):
11493 Assert there's an inferior for PSPACE. Use
11494 switch_to_inferior_no_thread to switch the inferior too.
11495 * progspace.c (program_space::~program_space): Call
11496 clear_symtab_users here, with SYMFILE_DEFER_BP_RESET.
11497 (program_space::free_all_objfiles): Don't call clear_symtab_users
11498 here.
11499 * symfile.c (symbol_file_clear): Call clear_symtab_users here.
11500
65c574f6
PA
115012020-01-10 Pedro Alves <palves@redhat.com>
11502
11503 * NEWS: Mention multi-target debugging, "info connections", and
11504 "add-inferior -no-connection".
11505
2f4fcf00
PA
115062020-01-10 Pedro Alves <palves@redhat.com>
11507
11508 * infrun.c: Include "target-connection.h".
11509 (check_multi_target_resumption): New.
11510 (proceed): Call it.
11511 * target-connection.c (make_target_connection_string): Make
11512 extern.
11513 * target-connection.h (make_target_connection_string): Declare.
11514
121b3efd
PA
115152020-01-10 Pedro Alves <palves@redhat.com>
11516
11517 * Makefile.in (COMMON_SFILES): Add target-connection.c.
11518 * inferior.c (uiout_field_connection): New function.
11519 (print_inferior): Add new "connection-id" column.
11520 (add_inferior_command): Show connection number/string of added
11521 inferior.
11522 * process-stratum-target.h
11523 (process_stratum_target::connection_string): New virtual method.
11524 (process_stratum_target::connection_number): New field.
11525 * remote.c (remote_target::connection_string): New override.
11526 * target-connection.c: New file.
11527 * target-connection.h: New file.
11528 * target.c (decref_target): Remove process_stratum targets from
11529 the connection list.
11530 (target_stack::push): Add process_stratum targets to the
11531 connection list.
11532
4f837581
PA
115332020-01-10 Pedro Alves <palves@redhat.com>
11534
11535 Revert:
11536 2016-04-12 Pedro Alves <palves@redhat.com>
11537 * serial.c (serial_open, serial_fdopen_ops, do_serial_close):
11538 Remove references to name.
11539 * serial.h (struct serial) <name>: Delete.
11540
f4ec508e
PA
115412020-01-10 Pedro Alves <palves@redhat.com>
11542
11543 * gdbarch-selftests.c (register_to_value_test): Remove "target
11544 already pushed" check.
11545
5b6d1e4f
PA
115462020-01-10 Pedro Alves <palves@redhat.com>
11547 John Baldwin <jhb@FreeBSD.org>
11548
11549 * aarch64-linux-nat.c
11550 (aarch64_linux_nat_target::thread_architecture): Adjust.
11551 * ada-tasks.c (print_ada_task_info): Adjust find_thread_ptid call.
11552 (task_command_1): Likewise.
11553 * aix-thread.c (sync_threadlists, aix_thread_target::resume)
11554 (aix_thread_target::wait, aix_thread_target::fetch_registers)
11555 (aix_thread_target::store_registers)
11556 (aix_thread_target::thread_alive): Adjust.
11557 * amd64-fbsd-tdep.c: Include "inferior.h".
11558 (amd64fbsd_get_thread_local_address): Pass down target.
11559 * amd64-linux-nat.c (ps_get_thread_area): Use ps_prochandle
11560 thread's gdbarch instead of target_gdbarch.
11561 * break-catch-sig.c (signal_catchpoint_print_it): Adjust call to
11562 get_last_target_status.
11563 * break-catch-syscall.c (print_it_catch_syscall): Likewise.
11564 * breakpoint.c (breakpoints_should_be_inserted_now): Consider all
11565 inferiors.
11566 (update_inserted_breakpoint_locations): Skip if inferiors with no
11567 execution.
11568 (update_global_location_list): When handling moribund locations,
11569 find representative inferior for location's pspace, and use thread
11570 count of its process_stratum target.
11571 * bsd-kvm.c (bsd_kvm_target_open): Pass target down.
11572 * bsd-uthread.c (bsd_uthread_target::wait): Use
11573 as_process_stratum_target and adjust thread_change_ptid and
11574 add_thread calls.
11575 (bsd_uthread_target::update_thread_list): Use
11576 as_process_stratum_target and adjust find_thread_ptid,
11577 thread_change_ptid and add_thread calls.
11578 * btrace.c (maint_btrace_packet_history_cmd): Adjust
11579 find_thread_ptid call.
11580 * corelow.c (add_to_thread_list): Adjust add_thread call.
11581 (core_target_open): Adjust add_thread_silent and thread_count
11582 calls.
11583 (core_target::pid_to_str): Adjust find_inferior_ptid call.
11584 * ctf.c (ctf_target_open): Adjust add_thread_silent call.
11585 * event-top.c (async_disconnect): Pop targets from all inferiors.
11586 * exec.c (add_target_sections): Push exec target on all inferiors
11587 sharing the program space.
11588 (remove_target_sections): Remove the exec target from all
11589 inferiors sharing the program space.
11590 (exec_on_vfork): New.
11591 * exec.h (exec_on_vfork): Declare.
11592 * fbsd-nat.c (fbsd_add_threads): Add fbsd_nat_target parameter.
11593 Pass it down.
11594 (fbsd_nat_target::update_thread_list): Adjust.
11595 (fbsd_nat_target::resume): Adjust.
11596 (fbsd_handle_debug_trap): Add fbsd_nat_target parameter. Pass it
11597 down.
11598 (fbsd_nat_target::wait, fbsd_nat_target::post_attach): Adjust.
11599 * fbsd-tdep.c (fbsd_corefile_thread): Adjust
11600 get_thread_arch_regcache call.
11601 * fork-child.c (gdb_startup_inferior): Pass target down to
11602 startup_inferior and set_executing.
11603 * gdbthread.h (struct process_stratum_target): Forward declare.
11604 (add_thread, add_thread_silent, add_thread_with_info)
11605 (in_thread_list): Add process_stratum_target parameter.
11606 (find_thread_ptid(inferior*, ptid_t)): New overload.
11607 (find_thread_ptid, thread_change_ptid): Add process_stratum_target
11608 parameter.
11609 (all_threads()): Delete overload.
11610 (all_threads, all_non_exited_threads): Add process_stratum_target
11611 parameter.
11612 (all_threads_safe): Use brace initialization.
11613 (thread_count): Add process_stratum_target parameter.
11614 (set_resumed, set_running, set_stop_requested, set_executing)
11615 (threads_are_executing, finish_thread_state): Add
11616 process_stratum_target parameter.
11617 (switch_to_thread): Use is_current_thread.
11618 * i386-fbsd-tdep.c: Include "inferior.h".
11619 (i386fbsd_get_thread_local_address): Pass down target.
11620 * i386-linux-nat.c (i386_linux_nat_target::low_resume): Adjust.
11621 * inf-child.c (inf_child_target::maybe_unpush_target): Remove
11622 have_inferiors check.
11623 * inf-ptrace.c (inf_ptrace_target::create_inferior)
11624 (inf_ptrace_target::attach): Adjust.
11625 * infcall.c (run_inferior_call): Adjust.
11626 * infcmd.c (run_command_1): Pass target to
11627 scoped_finish_thread_state.
11628 (proceed_thread_callback): Skip inferiors with no execution.
11629 (continue_command): Rename 'all_threads' local to avoid hiding
11630 'all_threads' function. Adjust get_last_target_status call.
11631 (prepare_one_step): Adjust set_running call.
11632 (signal_command): Use user_visible_resume_target. Compare thread
11633 pointers instead of inferior_ptid.
11634 (info_program_command): Adjust to pass down target.
11635 (attach_command): Mark target's 'thread_executing' flag.
11636 (stop_current_target_threads_ns): New, factored out from ...
11637 (interrupt_target_1): ... this. Switch inferior before making
11638 target calls.
11639 * inferior-iter.h
11640 (struct all_inferiors_iterator, struct all_inferiors_range)
11641 (struct all_inferiors_safe_range)
11642 (struct all_non_exited_inferiors_range): Filter on
11643 process_stratum_target too. Remove explicit.
11644 * inferior.c (inferior::inferior): Push dummy target on target
11645 stack.
11646 (find_inferior_pid, find_inferior_ptid, number_of_live_inferiors):
11647 Add process_stratum_target parameter, and pass it down.
11648 (have_live_inferiors): Adjust.
11649 (switch_to_inferior_and_push_target): New.
11650 (add_inferior_command, clone_inferior_command): Handle
11651 "-no-connection" parameter. Use
11652 switch_to_inferior_and_push_target.
11653 (_initialize_inferior): Mention "-no-connection" option in
11654 the help of "add-inferior" and "clone-inferior" commands.
11655 * inferior.h: Include "process-stratum-target.h".
11656 (interrupt_target_1): Use bool.
11657 (struct inferior) <push_target, unpush_target, target_is_pushed,
11658 find_target_beneath, top_target, process_target, target_at,
11659 m_stack>: New.
11660 (discard_all_inferiors): Delete.
11661 (find_inferior_pid, find_inferior_ptid, number_of_live_inferiors)
11662 (all_inferiors, all_non_exited_inferiors): Add
11663 process_stratum_target parameter.
11664 * infrun.c: Include "gdb_select.h" and <unordered_map>.
11665 (target_last_proc_target): New global.
11666 (follow_fork_inferior): Push target on new inferior. Pass target
11667 to add_thread_silent. Call exec_on_vfork. Handle target's
11668 reference count.
11669 (follow_fork): Adjust get_last_target_status call. Also consider
11670 target.
11671 (follow_exec): Push target on new inferior.
11672 (struct execution_control_state) <target>: New field.
11673 (user_visible_resume_target): New.
11674 (do_target_resume): Call target_async.
11675 (resume_1): Set target's threads_executing flag. Consider resume
11676 target.
11677 (commit_resume_all_targets): New.
11678 (proceed): Also consider resume target. Skip threads of inferiors
11679 with no execution. Commit resumtion in all targets.
11680 (start_remote): Pass current inferior to wait_for_inferior.
11681 (infrun_thread_stop_requested): Consider target as well. Pass
11682 thread_info pointer to clear_inline_frame_state instead of ptid.
11683 (infrun_thread_thread_exit): Consider target as well.
11684 (random_pending_event_thread): New inferior parameter. Use it.
11685 (do_target_wait): Rename to ...
11686 (do_target_wait_1): ... this. Add inferior parameter, and pass it
11687 down.
11688 (threads_are_resumed_pending_p, do_target_wait): New.
11689 (prepare_for_detach): Adjust calls.
11690 (wait_for_inferior): New inferior parameter. Handle it. Use
11691 do_target_wait_1 instead of do_target_wait.
11692 (fetch_inferior_event): Adjust. Switch to representative
11693 inferior. Pass target down.
11694 (set_last_target_status): Add process_stratum_target parameter.
11695 Save target in global.
11696 (get_last_target_status): Add process_stratum_target parameter and
11697 handle it.
11698 (nullify_last_target_wait_ptid): Clear 'target_last_proc_target'.
11699 (context_switch): Check inferior_ptid == null_ptid before calling
11700 inferior_thread().
11701 (get_inferior_stop_soon): Pass down target.
11702 (wait_one): Rename to ...
11703 (poll_one_curr_target): ... this.
11704 (struct wait_one_event): New.
11705 (wait_one): New.
11706 (stop_all_threads): Adjust.
11707 (handle_no_resumed, handle_inferior_event): Adjust to consider the
11708 event's target.
11709 (switch_back_to_stepped_thread): Also consider target.
11710 (print_stop_event): Update.
11711 (normal_stop): Update. Also consider the resume target.
11712 * infrun.h (wait_for_inferior): Remove declaration.
11713 (user_visible_resume_target): New declaration.
11714 (get_last_target_status, set_last_target_status): New
11715 process_stratum_target parameter.
11716 * inline-frame.c (clear_inline_frame_state(ptid_t)): Add
11717 process_stratum_target parameter, and use it.
11718 (clear_inline_frame_state (thread_info*)): New.
11719 * inline-frame.c (clear_inline_frame_state(ptid_t)): Add
11720 process_stratum_target parameter.
11721 (clear_inline_frame_state (thread_info*)): Declare.
11722 * linux-fork.c (delete_checkpoint_command): Pass target down to
11723 find_thread_ptid.
11724 (checkpoint_command): Adjust.
11725 * linux-nat.c (linux_nat_target::follow_fork): Switch to thread
11726 instead of just tweaking inferior_ptid.
11727 (linux_nat_switch_fork): Pass target down to thread_change_ptid.
11728 (exit_lwp): Pass target down to find_thread_ptid.
11729 (attach_proc_task_lwp_callback): Pass target down to
11730 add_thread/set_running/set_executing.
11731 (linux_nat_target::attach): Pass target down to
11732 thread_change_ptid.
11733 (get_detach_signal): Pass target down to find_thread_ptid.
11734 Consider last target status's target.
11735 (linux_resume_one_lwp_throw, resume_lwp)
11736 (linux_handle_syscall_trap, linux_handle_extended_wait, wait_lwp)
11737 (stop_wait_callback, save_stop_reason, linux_nat_filter_event)
11738 (linux_nat_wait_1, resume_stopped_resumed_lwps): Pass target down.
11739 (linux_nat_target::async_wait_fd): New.
11740 (linux_nat_stop_lwp, linux_nat_target::thread_address_space): Pass
11741 target down.
11742 * linux-nat.h (linux_nat_target::async_wait_fd): Declare.
11743 * linux-tdep.c (get_thread_arch_regcache): Pass target down.
11744 * linux-thread-db.c (struct thread_db_info::process_target): New
11745 field.
11746 (add_thread_db_info): Save target.
11747 (get_thread_db_info): New process_stratum_target parameter. Also
11748 match target.
11749 (delete_thread_db_info): New process_stratum_target parameter.
11750 Also match target.
11751 (thread_from_lwp): Adjust to pass down target.
11752 (thread_db_notice_clone): Pass down target.
11753 (check_thread_db_callback): Pass down target.
11754 (try_thread_db_load_1): Always push the thread_db target.
11755 (try_thread_db_load, record_thread): Pass target down.
11756 (thread_db_target::detach): Pass target down. Always unpush the
11757 thread_db target.
11758 (thread_db_target::wait, thread_db_target::mourn_inferior): Pass
11759 target down. Always unpush the thread_db target.
11760 (find_new_threads_callback, thread_db_find_new_threads_2)
11761 (thread_db_target::update_thread_list): Pass target down.
11762 (thread_db_target::pid_to_str): Pass current inferior down.
11763 (thread_db_target::get_thread_local_address): Pass target down.
11764 (thread_db_target::resume, maintenance_check_libthread_db): Pass
11765 target down.
11766 * nto-procfs.c (nto_procfs_target::update_thread_list): Adjust.
11767 * procfs.c (procfs_target::procfs_init_inferior): Declare.
11768 (proc_set_current_signal, do_attach, procfs_target::wait): Adjust.
11769 (procfs_init_inferior): Rename to ...
11770 (procfs_target::procfs_init_inferior): ... this and adjust.
11771 (procfs_target::create_inferior, procfs_notice_thread)
11772 (procfs_do_thread_registers): Adjust.
11773 * ppc-fbsd-tdep.c: Include "inferior.h".
11774 (ppcfbsd_get_thread_local_address): Pass down target.
11775 * proc-service.c (ps_xfer_memory): Switch current inferior and
11776 program space as well.
11777 (get_ps_regcache): Pass target down.
11778 * process-stratum-target.c
11779 (process_stratum_target::thread_address_space)
11780 (process_stratum_target::thread_architecture): Pass target down.
11781 * process-stratum-target.h
11782 (process_stratum_target::threads_executing): New field.
11783 (as_process_stratum_target): New.
11784 * ravenscar-thread.c
11785 (ravenscar_thread_target::update_inferior_ptid): Pass target down.
11786 (ravenscar_thread_target::wait, ravenscar_add_thread): Pass target
11787 down.
11788 * record-btrace.c (record_btrace_target::info_record): Adjust.
11789 (record_btrace_target::record_method)
11790 (record_btrace_target::record_is_replaying)
11791 (record_btrace_target::fetch_registers)
11792 (get_thread_current_frame_id, record_btrace_target::resume)
11793 (record_btrace_target::wait, record_btrace_target::stop): Pass
11794 target down.
11795 * record-full.c (record_full_wait_1): Switch to event thread.
11796 Pass target down.
11797 * regcache.c (regcache::regcache)
11798 (get_thread_arch_aspace_regcache, get_thread_arch_regcache): Add
11799 process_stratum_target parameter and handle it.
11800 (current_thread_target): New global.
11801 (get_thread_regcache): Add process_stratum_target parameter and
11802 handle it. Switch inferior before calling target method.
11803 (get_thread_regcache): Pass target down.
11804 (get_thread_regcache_for_ptid): Pass target down.
11805 (registers_changed_ptid): Add process_stratum_target parameter and
11806 handle it.
11807 (registers_changed_thread, registers_changed): Pass target down.
11808 (test_get_thread_arch_aspace_regcache): New.
11809 (current_regcache_test): Define a couple local test_target_ops
11810 instances and use them for testing.
11811 (readwrite_regcache): Pass process_stratum_target parameter.
11812 (cooked_read_test, cooked_write_test): Pass mock_target down.
11813 * regcache.h (get_thread_regcache, get_thread_arch_regcache)
11814 (get_thread_arch_aspace_regcache): Add process_stratum_target
11815 parameter.
11816 (regcache::target): New method.
11817 (regcache::regcache, regcache::get_thread_arch_aspace_regcache)
11818 (regcache::registers_changed_ptid): Add process_stratum_target
11819 parameter.
11820 (regcache::m_target): New field.
11821 (registers_changed_ptid): Add process_stratum_target parameter.
11822 * remote.c (remote_state::supports_vCont_probed): New field.
11823 (remote_target::async_wait_fd): New method.
11824 (remote_unpush_and_throw): Add remote_target parameter.
11825 (get_current_remote_target): Adjust.
11826 (remote_target::remote_add_inferior): Push target.
11827 (remote_target::remote_add_thread)
11828 (remote_target::remote_notice_new_inferior)
11829 (get_remote_thread_info): Pass target down.
11830 (remote_target::update_thread_list): Skip threads of inferiors
11831 bound to other targets. (remote_target::close): Don't discard
11832 inferiors. (remote_target::add_current_inferior_and_thread)
11833 (remote_target::process_initial_stop_replies)
11834 (remote_target::start_remote)
11835 (remote_target::remote_serial_quit_handler): Pass down target.
11836 (remote_target::remote_unpush_target): New remote_target
11837 parameter. Unpush the target from all inferiors.
11838 (remote_target::remote_unpush_and_throw): New remote_target
11839 parameter. Pass it down.
11840 (remote_target::open_1): Check whether the current inferior has
11841 execution instead of checking whether any inferior is live. Pass
11842 target down.
11843 (remote_target::remote_detach_1): Pass down target. Use
11844 remote_unpush_target.
11845 (extended_remote_target::attach): Pass down target.
11846 (remote_target::remote_vcont_probe): Set supports_vCont_probed.
11847 (remote_target::append_resumption): Pass down target.
11848 (remote_target::append_pending_thread_resumptions)
11849 (remote_target::remote_resume_with_hc, remote_target::resume)
11850 (remote_target::commit_resume): Pass down target.
11851 (remote_target::remote_stop_ns): Check supports_vCont_probed.
11852 (remote_target::interrupt_query)
11853 (remote_target::remove_new_fork_children)
11854 (remote_target::check_pending_events_prevent_wildcard_vcont)
11855 (remote_target::remote_parse_stop_reply)
11856 (remote_target::process_stop_reply): Pass down target.
11857 (first_remote_resumed_thread): New remote_target parameter. Pass
11858 it down.
11859 (remote_target::wait_as): Pass down target.
11860 (unpush_and_perror): New remote_target parameter. Pass it down.
11861 (remote_target::readchar, remote_target::remote_serial_write)
11862 (remote_target::getpkt_or_notif_sane_1)
11863 (remote_target::kill_new_fork_children, remote_target::kill): Pass
11864 down target.
11865 (remote_target::mourn_inferior): Pass down target. Use
11866 remote_unpush_target.
11867 (remote_target::core_of_thread)
11868 (remote_target::remote_btrace_maybe_reopen): Pass down target.
11869 (remote_target::pid_to_exec_file)
11870 (remote_target::thread_handle_to_thread_info): Pass down target.
11871 (remote_target::async_wait_fd): New.
11872 * riscv-fbsd-tdep.c: Include "inferior.h".
11873 (riscv_fbsd_get_thread_local_address): Pass down target.
11874 * sol2-tdep.c (sol2_core_pid_to_str): Pass down target.
11875 * sol-thread.c (sol_thread_target::wait, ps_lgetregs, ps_lsetregs)
11876 (ps_lgetfpregs, ps_lsetfpregs, sol_update_thread_list_callback):
11877 Adjust.
11878 * solib-spu.c (spu_skip_standalone_loader): Pass down target.
11879 * solib-svr4.c (enable_break): Pass down target.
11880 * spu-multiarch.c (parse_spufs_run): Pass down target.
11881 * spu-tdep.c (spu2ppu_sniffer): Pass down target.
11882 * target-delegates.c: Regenerate.
11883 * target.c (g_target_stack): Delete.
11884 (current_top_target): Return the current inferior's top target.
11885 (target_has_execution_1): Refer to the passed-in inferior's top
11886 target.
11887 (target_supports_terminal_ours): Check whether the initial
11888 inferior was already created.
11889 (decref_target): New.
11890 (target_stack::push): Incref/decref the target.
11891 (push_target, push_target, unpush_target): Adjust.
11892 (target_stack::unpush): Defref target.
11893 (target_is_pushed): Return bool. Adjust to refer to the current
11894 inferior's target stack.
11895 (dispose_inferior): Delete, and inline parts ...
11896 (target_preopen): ... here. Only dispose of the current inferior.
11897 (target_detach): Hold strong target reference while detaching.
11898 Pass target down.
11899 (target_thread_name): Add assertion.
11900 (target_resume): Pass down target.
11901 (target_ops::beneath, find_target_at): Adjust to refer to the
11902 current inferior's target stack.
11903 (get_dummy_target): New.
11904 (target_pass_ctrlc): Pass the Ctrl-C to the first inferior that
11905 has a thread running.
11906 (initialize_targets): Rename to ...
11907 (_initialize_target): ... this.
11908 * target.h: Include "gdbsupport/refcounted-object.h".
11909 (struct target_ops): Inherit refcounted_object.
11910 (target_ops::shortname, target_ops::longname): Make const.
11911 (target_ops::async_wait_fd): New method.
11912 (decref_target): Declare.
11913 (struct target_ops_ref_policy): New.
11914 (target_ops_ref): New typedef.
11915 (get_dummy_target): Declare function.
11916 (target_is_pushed): Return bool.
11917 * thread-iter.c (all_matching_threads_iterator::m_inf_matches)
11918 (all_matching_threads_iterator::all_matching_threads_iterator):
11919 Handle filter target.
11920 * thread-iter.h (struct all_matching_threads_iterator, struct
11921 all_matching_threads_range, class all_non_exited_threads_range):
11922 Filter by target too. Remove explicit.
11923 * thread.c (threads_executing): Delete.
11924 (inferior_thread): Pass down current inferior.
11925 (clear_thread_inferior_resources): Pass down thread pointer
11926 instead of ptid_t.
11927 (add_thread_silent, add_thread_with_info, add_thread): Add
11928 process_stratum_target parameter. Use it for thread and inferior
11929 searches.
11930 (is_current_thread): New.
11931 (thread_info::deletable): Use it.
11932 (find_thread_ptid, thread_count, in_thread_list)
11933 (thread_change_ptid, set_resumed, set_running): New
11934 process_stratum_target parameter. Pass it down.
11935 (set_executing): New process_stratum_target parameter. Pass it
11936 down. Adjust reference to 'threads_executing'.
11937 (threads_are_executing): New process_stratum_target parameter.
11938 Adjust reference to 'threads_executing'.
11939 (set_stop_requested, finish_thread_state): New
11940 process_stratum_target parameter. Pass it down.
11941 (switch_to_thread): Also match inferior.
11942 (switch_to_thread): New process_stratum_target parameter. Pass it
11943 down.
11944 (update_threads_executing): Reimplement.
11945 * top.c (quit_force): Pop targets from all inferior.
11946 (gdb_init): Don't call initialize_targets.
11947 * windows-nat.c (windows_nat_target) <get_windows_debug_event>:
11948 Declare.
11949 (windows_add_thread, windows_delete_thread): Adjust.
11950 (get_windows_debug_event): Rename to ...
11951 (windows_nat_target::get_windows_debug_event): ... this. Adjust.
11952 * tracefile-tfile.c (tfile_target_open): Pass down target.
11953 * gdbsupport/common-gdbthread.h (struct process_stratum_target):
11954 Forward declare.
11955 (switch_to_thread): Add process_stratum_target parameter.
11956 * mi/mi-interp.c (mi_on_resume_1): Add process_stratum_target
11957 parameter. Use it.
11958 (mi_on_resume): Pass target down.
11959 * nat/fork-inferior.c (startup_inferior): Add
11960 process_stratum_target parameter. Pass it down.
11961 * nat/fork-inferior.h (startup_inferior): Add
11962 process_stratum_target parameter.
11963 * python/py-threadevent.c (py_get_event_thread): Pass target down.
11964
75c6c844
PA
119652020-01-10 Pedro Alves <palves@redhat.com>
11966
11967 * remote.c (remote_target::start_remote): Don't set inferior_ptid
11968 directly. Instead find the first thread in the thread list and
11969 use switch_to_thread.
11970
78f2c40a
PA
119712020-01-10 Pedro Alves <palves@redhat.com>
11972
11973 * remote.c (remote_target::remote_add_inferior): Don't bind a
11974 process to the current inferior if the current inferior is already
11975 bound to a process.
11976
e7af6c70
TBA
119772020-01-10 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
11978 Pedro Alves <palves@redhat.com>
11979
11980 * remote.c (remote_target::remote_parse_stop_reply) <W/X packets>:
11981 If no process is specified, return null_ptid instead of
11982 inferior_ptid.
11983 (remote_target::wait_as): Handle TARGET_WAITKIND_EXITED /
11984 TARGET_WAITKIND_SIGNALLED with no pid.
11985
31ba933e
PA
119862020-01-10 Pedro Alves <palves@redhat.com>
11987
11988 * remote.c (first_remote_resumed_thread): New.
11989 (remote_target::wait_as): Use it as default event_ptid instead of
11990 inferior_ptid.
11991
735fc2ca
PA
119922020-01-10 Pedro Alves <palves@redhat.com>
11993
11994 * infrun.c (handle_no_resumed): Use all_non_exited_inferiors.
11995
c17e02e1
PA
119962020-01-10 Pedro Alves <palves@redhat.com>
11997
11998 * tracefile-tfile.c (tfile_target::close): Assert that trace_fd is
11999 not -1.
12000
ab1ddbcf
PA
120012020-01-10 Pedro Alves <palves@redhat.com>
12002
12003 * break-catch-sig.c (signal_catchpoint_print_it): Don't pass a
12004 ptid to get_last_target_status.
12005 * break-catch-syscall.c (print_it_catch_syscall): Don't pass a
12006 ptid to get_last_target_status.
12007 * infcmd.c (continue_command): Don't pass a target_waitstatus to
12008 get_last_target_status.
12009 (info_program_command): Don't pass a target_waitstatus to
12010 get_last_target_status.
12011 * infrun.c (init_wait_for_inferior): Use
12012 nullify_last_target_wait_ptid.
12013 (get_last_target_status): Handle nullptr arguments.
12014 (nullify_last_target_wait_ptid): Clear target_last_waitstatus.
12015 (print_stop_event): Don't pass a ptid to get_last_target_status.
12016 (normal_stop): Don't pass a ptid to get_last_target_status.
12017 * infrun.h (get_last_target_status, set_last_target_status): Move
12018 comments here and update.
12019 (nullify_last_target_wait_ptid): Declare.
12020 * linux-fork.c (fork_load_infrun_state): Remove local extern
12021 declaration of nullify_last_target_wait_ptid.
12022 * linux-nat.c (get_detach_signal): Don't pass a target_waitstatus
12023 to get_last_target_status.
12024
f3f8ece4
PA
120252020-01-10 Pedro Alves <palves@redhat.com>
12026
12027 * gdbthread.h (scoped_restore_current_thread)
12028 <dont_restore, restore, m_dont_restore>: Declare.
12029 * thread.c (thread_alive): Add assertion. Return bool.
12030 (switch_to_thread_if_alive): New.
12031 (prune_threads): Switch inferior/thread.
12032 (print_thread_info_1): Switch thread before calling target methods.
12033 (scoped_restore_current_thread::restore): New, factored out from
12034 ...
12035 (scoped_restore_current_thread::~scoped_restore_current_thread):
12036 ... this.
12037 (scoped_restore_current_thread::scoped_restore_current_thread):
12038 Add assertion.
12039 (thread_apply_all_command, thread_select): Use
12040 switch_to_thread_if_alive.
12041 * infrun.c (proceed, restart_threads, handle_signal_stop)
12042 (switch_back_to_stepped_thread): Switch current thread before
12043 calling target methods.
12044
db2d40f7
PA
120452020-01-10 Pedro Alves <palves@redhat.com>
12046
12047 * inferior.c (switch_to_inferior_no_thread): New function,
12048 factored out from ...
12049 (inferior_command): ... here.
12050 * inferior.h (switch_to_inferior_no_thread): Declare.
12051 * mi/mi-main.c (run_one_inferior): Use
12052 switch_to_inferior_no_thread.
12053
bd420a2d
PA
120542020-01-10 Pedro Alves <palves@redhat.com>
12055
12056 * infcmd.c (kill_command): Remove dead code.
12057
ddf5db90
PA
120582020-01-10 Pedro Alves <palves@redhat.com>
12059
12060 * remote.c (remote_target::mourn_inferior): No longer check
12061 whether the target is running.
12062
5018ce90
PA
120632020-01-10 Pedro Alves <palves@redhat.com>
12064
12065 * corelow.c (core_target::has_execution): Change parameter type to
12066 inferior pointer.
12067 * inferior.c (number_of_live_inferiors): Use
12068 inferior::has_execution instead of target_has_execution_1.
12069 * inferior.h (inferior::has_execution): New.
12070 * linux-thread-db.c (thread_db_target::update_thread_list): Use
12071 inferior::has_execution instead of target_has_execution_1.
12072 * process-stratum-target.c
12073 (process_stratum_target::has_execution): Change parameter type to
12074 inferior pointer. Check the inferior's PID instead of
12075 inferior_ptid.
12076 * process-stratum-target.h
12077 (process_stratum_target::has_execution): Change parameter type to
12078 inferior pointer.
12079 * record-full.c (record_full_core_target::has_execution): Change
12080 parameter type to inferior pointer.
12081 * target.c (target_has_execution_1): Change parameter type to
12082 inferior pointer.
12083 (target_has_execution_current): Adjust.
12084 * target.h (target_ops::has_execution): Change parameter type to
12085 inferior pointer.
12086 (target_has_execution_1): Change parameter type to inferior
12087 pointer. Change return type to bool.
12088 * tracefile.h (tracefile_target::has_execution): Change parameter
12089 type to inferior pointer.
12090
74375d18
PA
120912020-01-10 Pedro Alves <palves@redhat.com>
12092
12093 * exceptions.c (print_flush): Remove current_top_target() check.
12094
acdf84a6
PA
120952020-01-10 Pedro Alves <palves@redhat.com>
12096
12097 * remote.c (show_remote_exec_file): Show the current inferior's
12098 exec-file instead of the command variable's value.
12099
ec506636
PA
121002020-01-10 Pedro Alves <palves@redhat.com>
12101
12102 * record-full.c (record_full_resume_ptid): New global.
12103 (record_full_target::resume): Set it.
12104 (record_full_wait_1): Use record_full_resume_ptid instead of
12105 inferior_ptid.
12106
873657b9
PA
121072020-01-10 Pedro Alves <palves@redhat.com>
12108
12109 * gdbthread.h (scoped_restore_current_thread)
12110 <dont_restore, restore, m_dont_restore>: Declare.
12111 * thread.c (thread_alive): Add assertion. Return bool.
12112 (switch_to_thread_if_alive): New.
12113 (prune_threads): Switch inferior/thread.
12114 (print_thread_info_1): Switch thread before calling target methods.
12115 (scoped_restore_current_thread::restore): New, factored out from
12116 ...
12117 (scoped_restore_current_thread::~scoped_restore_current_thread):
12118 ... this.
12119 (scoped_restore_current_thread::scoped_restore_current_thread):
12120 Add assertion.
12121 (thread_apply_all_command, thread_select): Use
12122 switch_to_thread_if_alive.
12123
7f0ae84c
GB
121242020-01-10 George Barrett <bob@bob131.so>
12125
12126 * stap-probe.c (stap_modify_semaphore): Don't check for null
12127 semaphores.
12128 (stap_probe::set_semaphore, stap_probe::clear_semaphore): Check
12129 for null semaphores.
12130
f5a7c406
AB
121312020-01-09 Andrew Burgess <andrew.burgess@embecosm.com>
12132
12133 * tui/tui-source.c (tui_source_window::do_scroll_vertical): Update
12134 all source windows, and maintain horizontal scroll status while
12135 doing so.
12136
9ae6bf64
TT
121372020-01-09 Tom Tromey <tom@tromey.com>
12138
12139 PR tui/18932:
12140 * tui/tui-source.c (tui_source_window::do_scroll_vertical): Call
12141 update_source_window, not print_source_lines.
12142
b2efe70c
AB
121432020-01-09 Andrew Burgess <andrew.burgess@embecosm.com>
12144
12145 * tui/tui.c (tui_enable): Register tui hooks after calling
12146 tui_display_main.
12147
5f23a082
CB
121482020-01-09 Christian Biesinger <cbiesinger@google.com>
12149
12150 * gdbsupport/common-defs.h: Don't define _FORTIFY_SOURCE on MinGW.
12151
3061113b
SM
121522020-01-08 Simon Marchi <simon.marchi@efficios.com>
12153
12154 * thread.c (print_thread_info_1): Fix indentation.
12155
57d75002
CB
121562020-01-09 Christian Biesinger <cbiesinger@google.com>
12157
12158 * symtab.c (general_symbol_info::compute_and_set_names): Move the
12159 unique_xmalloc_ptr outside the if to always free the demangled name.
12160
6a053cb1
TT
121612020-01-08 Tom Tromey <tromey@adacore.com>
12162
12163 * xcoffread.c (enter_line_range, read_xcoff_symtab)
12164 (process_xcoff_symbol, xcoff_symfile_offsets): Update.
12165 * symtab.h (MSYMBOL_VALUE_ADDRESS): Update.
12166 (struct section_offsets, ANOFFSET, SIZEOF_N_SECTION_OFFSETS):
12167 Remove.
12168 (section_offsets): New typedef.
12169 * symtab.c (fixup_section, get_msymbol_address): Update.
12170 * symmisc.c (dump_msymbols): Update.
12171 * symfile.h (relative_addr_info_to_section_offsets)
12172 (symfile_map_offsets_to_segments): Update.
12173 * symfile.c (build_section_addr_info_from_objfile)
12174 (init_objfile_sect_indices): Update.
12175 (struct place_section_arg): Change type of "offsets".
12176 (place_section): Update.
12177 (relative_addr_info_to_section_offsets): Change type of
12178 "section_offsets". Remove "num_sections" parameter.
12179 (default_symfile_offsets, syms_from_objfile_1)
12180 (set_objfile_default_section_offset): Update.
12181 (reread_symbols): No need to preserve section offsets by hand.
12182 (symfile_map_offsets_to_segments): Change type of "offsets".
12183 * stap-probe.c (relocate_address): Update.
12184 * stabsread.h (process_one_symbol): Update.
12185 * solib-target.c (struct lm_info_target) <offsets>: Change type.
12186 (solib_target_relocate_section_addresses): Update.
12187 * solib-svr4.c (enable_break, svr4_relocate_main_executable):
12188 Update.
12189 * solib-frv.c (frv_relocate_main_executable): Update.
12190 * solib-dsbt.c (dsbt_relocate_main_executable): Update.
12191 * solib-aix.c (solib_aix_get_section_offsets): Change return
12192 type.
12193 (solib_aix_solib_create_inferior_hook): Update.
12194 * remote.c (remote_target::get_offsets): Update.
12195 * psymtab.c (find_pc_sect_psymtab): Update.
12196 * psympriv.h (struct partial_symbol) <address, text_low,
12197 text_high>: Update.
12198 * objfiles.h (obj_section_offset): Update.
12199 (struct objfile) <section_offsets>: Change type.
12200 <num_sections>: Remove.
12201 (objfile_relocate): Update.
12202 * objfiles.c (entry_point_address_query): Update
12203 (relocate_one_symbol): Change type of "section_offsets".
12204 (objfile_relocate1, objfile_relocate1): Change type of
12205 "new_offsets".
12206 (objfile_rebase1): Update.
12207 * mipsread.c (mipscoff_symfile_read): Update.
12208 (read_alphacoff_dynamic_symtab): Remove "section_offsets"
12209 parameter.
12210 * mdebugread.c (parse_symbol): Change type of "section_offsets".
12211 (parse_external, psymtab_to_symtab_1): Update.
12212 * machoread.c (macho_symfile_offsets): Update.
12213 * ia64-tdep.c (ia64_find_unwind_table): Update.
12214 * hppa-tdep.c (read_unwind_info): Update.
12215 * hppa-bsd-tdep.c (hppabsd_find_global_pointer): Update.
12216 * dwarf2read.c (create_addrmap_from_index)
12217 (create_addrmap_from_aranges, dw2_find_pc_sect_compunit_symtab)
12218 (process_psymtab_comp_unit_reader, add_partial_symbol)
12219 (add_partial_subprogram, process_full_comp_unit)
12220 (read_file_scope, read_func_scope, read_lexical_block_scope)
12221 (read_call_site_scope, dwarf2_rnglists_process)
12222 (dwarf2_ranges_process, dwarf2_ranges_read)
12223 (dwarf_decode_lines_1, var_decode_location, new_symbol)
12224 (dwarf2_fetch_die_loc_sect_off, dwarf2_per_cu_text_offset):
12225 Update.
12226 * dwarf2-frame.c (execute_cfa_program, dwarf2_frame_find_fde):
12227 Update.
12228 * dtrace-probe.c (dtrace_probe::get_relocated_address): Update.
12229 * dbxread.c (read_dbx_symtab, read_ofile_symtab): Update.
12230 (process_one_symbol): Change type of "section_offsets".
12231 * ctfread.c (get_objfile_text_range): Update.
12232 * coffread.c (coff_symtab_read, enter_linenos)
12233 (process_coff_symbol): Update.
12234 * coff-pe-read.c (add_pe_forwarded_sym): Update.
12235 * amd64-windows-tdep.c (amd64_windows_find_unwind_info): Update.
12236
456e800a
TT
122372020-01-08 Tom Tromey <tromey@adacore.com>
12238
12239 * dwarf2read.c (parse_macro_definition): Use std::string.
12240 (parse_macro_definition): Likewise.
12241
6dfa2fc2
TT
122422020-01-08 Tom Tromey <tromey@adacore.com>
12243
12244 * dwarf2read.c (abbrev_table_read_table): Use std::vector.
12245 (ATTR_ALLOC_CHUNK): Remove.
12246
421d1616
TT
122472020-01-08 Tom Tromey <tromey@adacore.com>
12248
12249 * dwarf2read.c (fixup_go_packaging): Use unique_xmalloc_ptr.
12250
43816ebc
TT
122512020-01-08 Tom Tromey <tromey@adacore.com>
12252
12253 * dwarf2read.c (add_partial_symbol): Use unique_xmalloc_ptr.
12254 (dwarf2_compute_name, open_dwo_file): Likewise.
12255 (process_enumeration_scope): Use std::vector.
12256 (guess_partial_die_structure_name): Use unique_xmalloc_ptr.
12257 (partial_die_info::fixup, dwarf2_start_subfile)
12258 (guess_full_die_structure_name, dwarf2_name): Likewise.
12259 (determine_prefix): Update.
12260 (guess_full_die_structure_name): Make return type const.
12261 (partial_die_full_name): Return unique_xmalloc_ptr.
12262 (DW_FIELD_ALLOC_CHUNK): Remove.
12263
4212d509
TT
122642020-01-07 Tom Tromey <tromey@adacore.com>
12265
12266 PR build/24937:
12267 * stap-probe.c (class stap_static_probe_ops): Add constructor.
12268
06a6207a
JT
122692020-01-02 Jon Turney <jon.turney@dronecode.org.uk>
12270
12271 * cli/cli-style.c: Set cli_styling to 'true' in the Cygwin build.
12272
153d79c4
AB
122732020-01-06 Andrew Burgess <andrew.burgess@embecosm.com>
12274
12275 * stack.c (print_frame_info): Move disassemble_next_line code
12276 inside source_print block.
12277
66182876
EZ
122782020-01-06 Eli Zaretskii <eliz@gnu.org>
12279
12280 * gdbsupport/gdb_wait.c: Include <signal.h> instead of
12281 gdb/signals.h, as we are now using native signal symbols.
12282
cbfa8581
SV
122832020-01-06 Shahab Vahedi <shahab@synopsys.com>
12284
12285 * tui/tui-disasm.c (tui_disasm_window::addr_is_displayed): Avoid
12286 overflow by an early check of content vs threshold.
aac66a4c 12287 * tui/tui-source.c (tui_source_window::line_is_displayed):
cbfa8581
SV
12288 Likewise.
12289
3f602821
EZ
122902020-01-06 Eli Zaretskii <eliz@gnu.org>
12291
12292 * NEWS: Mention the recent fix of $_exitsignal on MS-Windows.
12293
a08c904d
JT
122942020-01-02 Jon Turney <jon.turney@dronecode.org.uk>
12295
12296 * coff-pe-read.c (read_pe_exported_syms): Don't try to read the
12297 export table if no section contains it's RVA.
12298
89a65580
EZ
122992020-01-06 Eli Zaretskii <eliz@gnu.org>
12300
12301 * windows-tdep.c: Fix a typo in WINDOWS_SIGABRT.
12302
8b7fcda2
HD
123032020-01-06 Hannes Domani <ssbssa@yahoo.de>
12304
12305 * source.c (print_source_lines_base): Set last_line_listed.
12306
a61b4f69
SV
123072020-01-06 Shahab Vahedi <shahab@synopsys.com>
12308
12309 * tui/tui-disasm.c: Remove trailing spaces.
12310
559e7e50
EZ
123112020-01-06 Eli Zaretskii <eliz@gnu.org>
12312 Pedro Alves <palves@redhat.com>
12313
12314 * Makefile.in (COMMON_SFILES): Add gdbsupport/gdb_wait.c.
12315 * windows-tdep.c: New enumeration of WINDOWS_SIG* signals.
12316 (windows_gdb_signal_to_target): New function, uses the above
12317 enumeration to convert GDB internal signal codes to equivalent
12318 Windows codes.
12319 (windows_init_abi): Call set_gdbarch_gdb_signal_to_target.
12320 * windows-nat.c: Include "gdb_wait.h".
12321 (get_windows_debug_event): Extract the fatal exception from the
12322 exit status and convert to the equivalent Posix signal number.
12323 * cli/cli-cmds.c (exit_status_set_internal_vars): Account for the
12324 possibility that WTERMSIG returns GDB_SIGNAL_UNKNOWN.
12325 * gdbsupport/gdb_wait.c: New file, implements
12326 windows_status_to_termsig.
12327 * gdbsupport/gdb_wait.h (WIFEXITED, WIFSIGNALED, WEXITSTATUS)
12328 (WTERMSIG) [__MINGW32__]: Separate definitions for MinGW.
12329
f2302a34
AB
123302020-01-05 Andrew Burgess <andrew.burgess@embecosm.com>
12331
12332 * tui/tui-layout.c (tui_add_win_to_layout): Use tui_set_layout not
12333 show_layout.
12334
6a5206eb
LM
123352020-01-05 Luis Machado <luis.machado@linaro.org>
12336
12337 * aarch64-linux-nat.c
12338 (aarch64_linux_nat_target::thread_architecture): Use bfd_arch_aarch64
12339 and bfd_mach_aarch64.
12340
6ec1d75e
PW
123412020-01-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
12342
12343 * ui-file.c (stdio_file::can_emit_style_escape)
12344 (tee_file::can_emit_style_escape): Ensure style is used also on
12345 gdb_stderr when gdb_stderr is a tty supporting styling, similarly
12346 to gdb_stdout.
12347 * main.c (set_gdb_data_directory): Use file style to output the
12348 warning that the given pathname is not a directory.
12349 * top.c (show_history_filename, gdb_safe_append_history)
12350 (show_gdb_datadir): Use file style.
12351
44f81a76
HD
123522020-01-03 Hannes Domani <ssbssa@yahoo.de>
12353
12354 * solib-target.c (struct lm_info_target):
12355 Change offsets to be a unique_xmalloc_ptr.
12356 (solib_target_relocate_section_addresses): Update.
12357
25057eb0
HD
123582020-01-03 Hannes Domani <ssbssa@yahoo.de>
12359
12360 * windows-nat.c (windows_clear_solib): Free so_list linked list.
12361
6e2118f5
BE
123622020-01-03 Bernd Edlinger <bernd.edlinger@hotmail.de>
12363
12364 * MAINTAINERS (Write After Approval): Add myself.
12365
8133c7dc
LM
123662020-01-02 Luis Machado <luis.machado@linaro.org>
12367
12368 * proc-service.c (get_ps_regcache): Remove reference to obsolete
12369 Cell BE architecture.
12370 * target.h (struct target_ops) <thread_architecture>: Likewise.
12371
48189bec
HD
123722020-01-01 Hannes Domani <ssbssa@yahoo.de>
12373
12374 * Makefile.in: Use INSTALL_PROGRAM_ENV.
12375
ead1063b
HD
123762020-01-01 Hannes Domani <ssbssa@yahoo.de>
12377
12378 * MAINTAINERS (Write After Approval): Add myself.
12379
e5d78223
JB
123802020-01-01 Joel Brobecker <brobecker@adacore.com>
12381
12382 * gdbarch.sh: Update copyright year range of generated files.
12383
b811d2c2
JB
123842020-01-01 Joel Brobecker <brobecker@adacore.com>
12385
12386 Update copyright year range in all GDB files.
12387
5f4def5c
JB
123882020-01-01 Joel Brobecker <brobecker@adacore.com>
12389
12390 * copyright.py: Convert to Python 3.
12391
51fd4002
JB
123922020-01-01 Joel Brobecker <brobecker@adacore.com>
12393
12394 * copyright.py: Adapt after move of gnulib directory from gdb
12395 directory to toplevel directory.
12396
5fb651f2
JB
123972020-01-01 Joel Brobecker <brobecker@adacore.com>
12398
12399 * copyright.py (main): Exit if run from the wrong directory.
12400
5dd8bf88
JB
124012020-01-01 Joel Brobecker <brobecker@adacore.com>
12402
12403 * top.c (print_gdb_version): Change copyright year to 2020.
12404
9f71dacb 124052020-01-01 Joel Brobecker <brobecker@adacore.com>
3d34df0a 12406
9f71dacb 12407 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2019.
3d34df0a 12408
9f71dacb 12409For older changes see ChangeLog-2019.
c906108c
SS
12410\f
12411Local Variables:
12412mode: change-log
12413left-margin: 8
12414fill-column: 74
12415version-control: never
57da7796 12416coding: utf-8
c906108c 12417End:
This page took 2.958089 seconds and 4 git commands to generate.