]> git.ipfire.org Git - thirdparty/binutils-gdb.git/blame - gdb/ChangeLog
gdb: change type of field_info::non_public_fields to bool
[thirdparty/binutils-gdb.git] / gdb / ChangeLog
CommitLineData
264fc0e2
SM
12020-08-31 Simon Marchi <simon.marchi@polymtl.ca>
2
3 * dwarf2/read.c (struct field_info) <non_public_fields>: Change
4 type to bool.
5
2de01bdb
SM
62020-08-31 Simon Marchi <simon.marchi@polymtl.ca>
7
8 * dwarf2/read.c (struct field_info): Fix indentation.
9
f3bd50f1
SM
102020-08-31 Simon Marchi <simon.marchi@efficios.com>
11
12 * frame-unwind.h (frame_prev_register_ftype): Fix adjective
13 ordering in comment.
14 * frame.c (frame_id_eq): Fix indentation.
15
22b9b4b0
SL
162020-08-31 Scott Linder <scott@scottlinder.com>
17 Simon Marchi <simon.marchi@efficios.com>
18
19 * inline-frame.c (inline_frame_this_id): Remove assert that prevents
20 inline frame ids in outer frame.
21
84154d16
SM
222020-08-31 Simon Marchi <simon.marchi@efficios.com>
23
24 * frame.h (enum frame_id_stack_status) <FID_STACK_OUTER>: New.
25 * frame.c (fprint_frame_id): Handle FID_STACK_OUTER.
26 (outer_frame_id): Use FID_STACK_OUTER instead of
27 FID_STACK_INVALID.
28 (frame_id_p): Don't check for outer_frame_id.
29
8efaf6b3
SM
302020-08-31 Simon Marchi <simon.marchi@efficios.com>
31
32 * frame-unwind.c (frame_unwind_got_optimized): Don't set
33 regnum/frame in value. Call allocate_value_lazy.
34 * frame.c (frame_unwind_register_value): Use
35 val_print_not_saved.
36
fe1fe7ea
SM
372020-08-31 Simon Marchi <simon.marchi@efficios.com>
38
39 * gdbtypes.h (NULL_TYPE): Remove, change all uses to nullptr.
40
f7c7700d
PA
412020-08-29 Pedro Alves <pedro@palves.net>
42
43 * progspace.c (print_program_space): Use all_inferiors. Switch to
44 the inferior before calling target_pid_to_str.
45
e0814aae
TT
462020-08-28 Tom Tromey <tom@tromey.com>
47
48 * xcoffread.c (xcoff_end_psymtab): Update comment.
49 * dbxread.c (dbx_end_psymtab): Update comment.
50
626d2320
TV
512020-08-28 Tom de Vries <tdevries@suse.de>
52
53 PR breakpoint/26544
54 * breakpoint.c (parse_breakpoint_sals): Remove const from struct
55 event_location.
56 (create_breakpoint): Same.
57 (base_breakpoint_decode_location): Same.
58 (bkpt_create_sals_from_location): Same.
59 (bkpt_decode_location): Same.
60 (bkpt_probe_create_sals_from_location): Same.
61 (bkpt_probe_decode_location): Same.
62 (tracepoint_create_sals_from_location): Same.
63 (tracepoint_decode_location): Same.
64 (tracepoint_probe_decode_location): Same.
65 (strace_marker_create_sals_from_location): Same.
66 (strace_marker_decode_location): Same.
67 (create_sals_from_location_default): Same.
68 (decode_location_default): Same.
69 * breakpoint.h (struct breakpoint_ops): Same.
70 (create_breakpoint): Same.
71 * linespec.h (decode_line_full): Same.
72 * linespec.c (decode_line_full): Same. Throw error if
73 result.size () == 0.
74
df631783
PA
752020-08-27 Pedro Alves <pedro@palves.net>
76
77 PR gdb/26524
78 * breakpoint.c (until_break_fsm) <location_breakpoint,
79 caller_breakpoint>: Delete fields.
80 <breakpoints>: New field.
81 <until_break_fsm>: Adjust to save a breakpoint vector instead of
82 two individual breakpoints.
83 (until_break_fsm::should_stop): Loop over breakpoints in the
84 breakpoint vector.
85 (until_break_fsm::clean_up): Adjust to clear the breakpoints
86 vector.
87 (until_break_command): Handle location expanding into multiple
88 sals.
89
b2b38aa4
PA
902020-08-27 Pedro Alves <pedro@palves.net>
91
92 PR gdb/26523
93 * inline-frame.c (stopped_by_user_bp_inline_frame): Also consider
94 bp_until breakpoints user-specified locations. Update intro
95 comment.
96
b886559f
SM
972020-08-27 Simon Marchi <simon.marchi@polymtl.ca>
98
99 * gdb_bfd.h (gdb_bfd_section_iterator, gdb_bfd_section_range,
100 gdb_bfd_sections): New.
101 * maint.c (print_bfd_section_info): Change param type to
102 maint_print_section_data.
103 (print_objfile_section_info): Likewise.
104 (print_bfd_section_info_maybe_relocated): Likewise.
105 (maintenance_info_sections): Use gdb_bfd_sections.
106
4c6e63bf
SV
1072020-08-25 Shahab Vahedi <shahab@synopsys.com>
108
109 * MAINTAINERS: Add ARC target and maintainer.
110
8d7f0635
AK
1112020-08-25 Anton Kolesov <anton.kolesov@synopsys.com>
112
113 * configure.tgt: ARC support for GNU/Linux.
114 * Makefile.in (ALL_TARGET_OBJS): Likewise.
115 * arc-linux-tdep.c: New file.
116 * arc-tdep.h (ARC_STATUS32_L_MASK, ARC_STATUS32_DE_MASK): Declare.
117 * arc-tdep.c (arc_write_pc): Use it.
118
fdd8731b
SV
1192020-08-25 Shahab Vahedi <shahab@synopsys.com>
120
121 * arc-tdep.c (arc_check_for_hardware_loop): New.
122 * arc-tdep.h (gdbarch_tdep): New field has_hw_loops.
123
22459524
SV
1242020-08-25 Shahab Vahedi <shahab@synopsys.com>
125
126 * arc-tdep.h: Include "gdbarch.h".
127
995d3a19
SV
1282020-08-25 Shahab Vahedi <shahab@synopsys.com>
129
130 * arch/arc.h
131 (arc_gdbarch_features): New class to stir the selection of target XML.
132 (arc_create_target_description): Use FEATURES to choose XML target.
133 (arc_lookup_target_description): Use arc_create_target_description
134 to create _new_ target descriptions or return the already created
135 ones if the FEATURES is the same.
136 * arch/arc.c: Implementation of prototypes described above.
137 * gdb/arc-tdep.h (arc_regnum enum): Add more registers.
138 (arc_gdbarch_features_init): Initialize the FEATURES struct.
139 * arc-tdep.c (*_feature_name): Make feature names consistent.
140 (arc_register_feature): A new struct to hold information about
141 registers of a particular target/feature.
142 (arc_check_tdesc_feature): Check if XML provides registers in
143 compliance with ARC_REGISTER_FEATURE structs.
144 (arc_update_acc_reg_names): Add aliases for r58 and r59.
145 (determine_*_reg_feature_set): Which feature name to look for.
146 (arc_gdbarch_features_init): Given MACH and ABFD, initialize FEATURES.
147 (mach_type_to_arc_isa): Convert from a set of binutils machine types
148 to expected ISA enums to be used in arc_gdbarch_features structs.
149 * features/Makefile (FEATURE_XMLFILES): Add new files.
150 * gdb/features/arc/v1-aux.c: New file.
151 * gdb/features/arc/v1-aux.xml: Likewise.
152 * gdb/features/arc/v1-core.c: Likewise.
153 * gdb/features/arc/v1-core.xml: Likewise.
154 * gdb/features/arc/v2-aux.c: Likewise.
155 * gdb/features/arc/v2-aux.xml: Likewise.
156 * gdb/features/arc/v2-core.c: Likewise.
157 * gdb/features/arc/v2-core.xml: Likewise.
158 * NEWS (Changes since GDB 9): Announce obsolence of old feature names.
159
3945d2d7
GM
1602020-08-25 Gaius Mulley <gaiusmod2@gmail.com>
161 Andrew Burgess <andrew.burgess@embecosm.com>
162
163 PR m2/26372
fc5d6901 164 * m2-exp.y (exp): Improve comment for non_empty_arglist case, add
3945d2d7
GM
165 an assert. Remove single element array indexing pattern as the
166 MULTI_SUBSCRIPT support will handle this case too.
167
2677f2d3
SM
1682020-08-24 Simon Marchi <simon.marchi@polymtl.ca>
169
170 * value.h (valprint_check_validity): Move declaration from
171 here...
172 * valprint.h (valprint_check_validity): ... to here.
173
c426fddb
SM
1742020-08-24 Simon Marchi <simon.marchi@efficios.com>
175
176 * debug.h: New file.
177 * debug.c (debug_prefixed_vprintf): New function.
178 * infrun.c (infrun_debug_printf_1): Use debug_prefixed_vprintf.
179 * linux-nat.c (linux_nat_debug_printf_1): Likewise.
180
1eb8556f
SM
1812020-08-24 Simon Marchi <simon.marchi@efficios.com>
182
183 * infrun.h (infrun_debug_printf_1): New function declaration.
184 (infrun_debug_printf): New macro.
185 * infrun.c (infrun_debug_printf_1): Use infrun_debug_printf
186 throughout.
187 (infrun_debug_printf): New function.
188 * breakpoint.c (should_be_inserted): Use infrun_debug_printf.
189 (handle_jit_event): Likewise.
190
b8fff44e
MW
1912020-08-21 Mark Wielaard <mark@klomp.org>
192
193 * ada-lex.l: Extend register warnings diagnostics comment for g++.
194
d19c3068
SM
1952020-08-22 Simon Marchi <simon.marchi@efficios.com>
196
197 * frame.c (enum class frame_id_status): New.
198 (struct frame_info) <this_id::p>: Change type to frame_id_status.
199 (fprintf_frame): Update.
200 (compute_frame_id): Set frame id status to "computing" on entry.
201 Set it back to "not_computed" on failure and to "computed" on
202 success.
203 (get_frame_id): Assert the frame id is not being computed.
204 (create_sentinel_frame): Use frame_id_status::COMPUTED.
205 (create_new_frame): Likewise.
206 (frame_cleanup_after_sniffer): Update assert.
207
b70e516e
SM
2082020-08-20 Simon Marchi <simon.marchi@polymtl.ca>
209
210 * regcache.c (pid_ptid_regcache_map): New type.
211 (target_ptid_regcache_map): Remove.
212 (target_pid_ptid_regcache_map): New type.
213 (regcaches): Change type to target_pid_ptid_regcache_map.
214 (get_thread_arch_aspace_regcache): Update.
215 (regcache_thread_ptid_changed): Update, handle pid-like ptid
216 case.
217 (regcaches_size): Update.
218 (regcache_count): Update.
219 (registers_changed_ptid_target_pid_test): New.
220 (_initialize_regcache): Register new test.
221
cdd9148a
SM
2222020-08-20 Simon Marchi <simon.marchi@polymtl.ca>
223
224 * regcache.c (regcache_count): New.
225 (struct regcache_test_data): New.
226 (regcache_test_data_up): New.
227 (populate_regcaches_for_test): New.
228 (regcaches_test): Remove.
229 (get_thread_arch_aspace_regcache_test): New.
230 (registers_changed_ptid_all_test): New.
231 (registers_changed_ptid_target_test): New.
232 (registers_changed_ptid_target_ptid_test): New.
233 (regcache_thread_ptid_changed): Remove regcache_count lambda.
234 (_initialize_regcache): Register new tests.
235
dd125343
SM
2362020-08-20 Simon Marchi <simon.marchi@polymtl.ca>
237
238 * regcache.c (test_get_thread_arch_aspace_regcache): Rename to...
239 (get_thread_arch_aspace_regcache_and_check): ... this. Remove
240 gdbarch and aspace parameter. Use current inferior's aspace.
241 Validate regcache's arch value.
242 (regcaches_test): Update.
243
3ee93972
SM
2442020-08-20 Simon Marchi <simon.marchi@polymtl.ca>
245
246 * regcache.c (regcaches_test): Call registers_changed.
247
33bf4c5c
TBA
2482020-08-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
249
250 * infrun.c (process_event_stop_test): Fix typo "breapoint".
251
c2fd7fae
AKS
2522020-08-19 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
253
254 * amd64-tdep.c (amd64_skip_prologue): Using symbol table
255 to find the end of prologue for flang compiled binaries.
256 * arm-tdep.c (arm_skip_prologue): Likewise.
257 * i386-tdep.c (i386_skip_prologue): Likewise.
258 * producer.c (producer_is_llvm): New function.
259 (producer_parsing_tests): Added new tests for clang/flang.
260 * producer.h (producer_is_llvm): New declaration.
261
9327494e
SM
2622020-08-18 Simon Marchi <simon.marchi@efficios.com>
263
264 * linux-nat.c (linux_nat_debug_printf): New function.
265 (linux_nat_debug_printf_1): New macro. Use throughout the file.
266
d138725a
AM
2672020-08-18 Aaron Merey <amerey@redhat.com>
268
269 * Makefile.in (DEBUGINFOD_CFLAGS, DEBUGINFOD_LIBS): New variables.
270 (INTERNAL_CFLAGS_BASE): Add DEBUGINFOD_CFLAGS.
271 (CLIBS): Add DEBUGINFOD_LIBS.
272
f9b11e6b
ST
2732020-08-17 Sergei Trofimovich <siarheit@google.com>
274
275 * ia64-linux-nat.c: Include "gdbarch.h" to declare used
276 'gdbarch_num_regs'.
277
3ae7ab99
TT
2782020-08-17 Tom Tromey <tromey@adacore.com>
279
280 * ada-varobj.c (ada_varobj_decode_var): Handle case where
281 ada_get_decoded_value returns NULL.
282
b017825f
TT
2832020-08-17 Tom Tromey <tromey@adacore.com>
284
285 * python/py-inferior.c (infpy_search_memory): Use
286 gdb_py_object_from_ulongest.
287 * python/py-infevents.c (create_inferior_call_event_object)
288 (create_memory_changed_event_object): Use
289 gdb_py_object_from_ulongest.
290 * python/py-linetable.c (ltpy_entry_get_pc): Use
291 gdb_py_object_from_ulongest.
292
7635cf79
SM
2932020-08-17 Simon Marchi <simon.marchi@polymtl.ca>
294
295 * loc.c (class symbol_needs_eval_context): Fix indentation.
296
f54be24b
SM
2972020-08-17 Simon Marchi <simon.marchi@polymtl.ca>
298
299 * dwarf2/loc.c (dwarf2_loc_desc_get_symbol_read_needs): Use
300 bool.
301
53d5a2a5
TV
3022020-08-17 Tom de Vries <tdevries@suse.de>
303
304 PR gdb/26393
305 * gdbtypes.c (dump_dynamic_prop): New function.
306 (recursive_dump_type): Use dump_dynamic_prop for TYPE_CODE_RANGE.
307
547ce8f0
TV
3082020-08-15 Tom de Vries <tdevries@suse.de>
309
310 PR backtrace/26390
311 * stack.c (print_frame_args): Temporarily set the selected
312 frame to FRAME while printing the frame's arguments.
313
6ea815e7
PFC
3142020-08-14 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
315
316 PR breakpoints/26385
317 * ppc-linux-nat.c (ppc_linux_nat_target::low_prepare_to_resume):
318 Always clear watchpoint with PTRACE_SET_DEBUGREG.
319
6e562fa3
PFC
3202020-08-14 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
321
322 * ppc-linux-nat.c (ppc_linux_dreg_interface::detect)
323 (ppc_linux_nat_target::low_prepare_to_resume): Use ptrace () < 0
324 and >= to check return value instead of == -1 and != -1.
325
d369b608
SM
3262020-08-14 Simon Marchi <simon.marchi@polymtl.ca>
327
328 * utils.h (class gdb_argv) <as_array_view>: New method.
329 * utils.c (gdb_argv_as_array_view_test): New.
330 (_initialize_utils): Register selftest.
331 * maint.c (maintenance_selftest): Use the new method.
332
b31488a3
KR
3332020-08-13 Kamil Rytarowski <n54@gmx.com>
334
335 * target.h (supports_dumpcore, dumpcore): New
336 function declarations.
337 * target.c (supports_dumpcore, dumpcore): New
338 functions.
339 * target-delegates.c: Rebuild.
340 * gcore.c (gcore_command): Use target_supports_dumpcore ()
341 and target_dumpcore ().
342
002a3166
AM
3432020-08-13 Aaron Merey <amerey@redhat.com>
344
345 * debuginfod-support.c: Replace global variables with user_data.
346
ece5bc8a
SM
3472020-08-13 Simon Marchi <simon.marchi@polymtl.ca>
348
349 * maint.c (maintenance_selftest): Split args and pass array_view
350 to run_tests.
351
6d8a0a5e
LM
3522020-08-12 Luis Machado <luis.machado@linaro.org>
353
354 * value.c (check_type_length_before_alloc): Use ULONGEST to store a
355 type's length.
356 Use %s and pulongest to print the length.
357
7cf663a9
PA
3582020-08-12 Pedro Alves <palves@redhat.com>
359
360 * NEWS: Move "Multi-target debugging support" item to the
361 "Changes since GDB 9" section.
362
27c7b875
PA
3632020-08-12 Pedro Alves <palves@redhat.com>
364
365 PR gdb/26336
366 * progspace.c (program_space::remove_objfile): Invalidate the
367 frame cache.
368
1796a2a1
TV
3692020-08-11 Tom de Vries <tdevries@suse.de>
370
371 * MAINTAINERS: Mark ms1 as deleted.
372
f8e3fe0d
LM
3732020-08-10 Luis Machado <luis.machado@linaro.org>
374
375 PR gdb/26310
376
377 * aarch64-tdep.c (aarch64_analyze_prologue): Track use of SP/FP and
378 act accordingly.
379 (aarch64_analyze_prologue_test): Add more unit tests to exercise
380 movz/str/stur/stp skipping behavior.
381
cc308722
LM
3822020-08-10 Luis Machado <luis.machado@linaro.org>
383
384 * nat/aarch64-sve-linux-sigcontext.h (SVE_PT_REGS_OFFSET): Use
385 struct user_sve_header instead of struct sve_context.
386
041d9819
SM
3872020-08-09 Simon Marchi <simon.marchi@polymtl.ca>
388
389 * read.h (dwarf2_fetch_die_loc_sect_off,
390 dwarf2_fetch_die_loc_cu_off): Replace function pointer +
391 `void *` parameter with function_view.
392 * read.c (dwarf2_fetch_die_loc_sect_off,
393 dwarf2_fetch_die_loc_cu_off): Likewise.
394 * loc.c (get_frame_pc_for_per_cu_dwarf_call): Remove.
395 (per_cu_dwarf_call): Adjust.
396 (get_frame_address_in_block_wrapper): Remove.
397 (indirect_synthetic_pointer): Adjust.
398 (get_ax_pc): Remove.
399 (dwarf2_compile_expr_to_ax): Adjust.
400
38f8aa06
TV
4012020-08-08 Tom de Vries <tdevries@suse.de>
402
403 PR build/26344
404 * arch/riscv.c (riscv_lookup_target_description): Use an explicit
405 constructor.
406 * regcache.c (get_thread_arch_aspace_regcache): Same.
407
a52b3ae2
TT
4082020-08-07 Tom Tromey <tromey@adacore.com>
409
410 * ravenscar-thread.c
411 (ravenscar_thread_target::set_base_thread_from_ravenscar_task):
412 New method.
413 (ravenscar_thread_target::wait): Check
414 runtime_initialized.
415 (ravenscar_thread_target::prepare_to_store)
416 (ravenscar_thread_target::stopped_by_sw_breakpoint)
417 (ravenscar_thread_target::stopped_by_hw_breakpoint)
418 (ravenscar_thread_target::stopped_by_watchpoint)
419 (ravenscar_thread_target::stopped_data_address)
420 (ravenscar_thread_target::core_of_thread): Use
421 scoped_restore_current_thread and
422 set_base_thread_from_ravenscar_task.
423
0e29517d
TT
4242020-08-07 Tom Tromey <tromey@adacore.com>
425
426 * ravenscar-thread.c (update_thread_list): Set inferior_ptid.
427
592f9bd7
TT
4282020-08-07 Tom Tromey <tromey@adacore.com>
429
430 * ravenscar-thread.c (ravenscar_thread_target::wait): Call
431 update_inferior_ptid before update_thread_list.
432 (temporarily_change_regcache_ptid): New class.
433 (ravenscar_thread_target::fetch_registers)
434 (ravenscar_thread_target::store_registers)
435 (ravenscar_thread_target::prepare_to_store): Use base thread when
436 forwarding operation.
437
39e2018a
TT
4382020-08-07 Tom Tromey <tromey@adacore.com>
439
440 * ravenscar-thread.c (ravenscar_thread_target::resume): Handle
441 "is_pid" case.
442
2080266b
TT
4432020-08-07 Tom Tromey <tromey@adacore.com>
444
445 * ravenscar-thread.c (xfer_partial, enable_btrace, add_thread):
446 New methods.
447 (ravenscar_thread_target::get_thread_base_cpu): Check m_cpu_map
448 first.
449 (ravenscar_thread_target::add_thread): Rename from
450 ravenscar_add_thread.
451 (ravenscar_thread_target::update_thread_list): Use a lambda.
452 (ravenscar_thread_target::xfer_partial): New method.
453
78c02f21
TT
4542020-08-07 Tom Tromey <tromey@adacore.com>
455
456 * ada-lang.h (ada_task_list_iterator_ftype): Now a
457 gdb::function_view.
458 (iterate_over_live_ada_tasks): Change type of argument.
459 * ada-tasks.c (iterate_over_live_ada_tasks): Change type
460 of argument.
461
d5d833af
TT
4622020-08-07 Tom Tromey <tromey@adacore.com>
463
464 * ravenscar-thread.c (ravenscar_thread_target) <extra_thread_info>:
465 Remove.
466 (ravenscar_thread_target::extra_thread_info): Remove.
467 (ravenscar_thread_target::pid_to_str): Mention Ravenscar in result;
468 defer to target beneath for non-Ravenscar threads.
469
a8ac85bb
TT
4702020-08-07 Tom Tromey <tromey@adacore.com>
471
472 * ravenscar-thread.c (ravenscar_thread_target) <get_base_cpu,
473 get_base_thread_from_ravenscar_task>: Now methods.
474 <m_cpu_map>: New member.
475 (ravenscar_thread_target::get_thread_base_cpu): Rename from
476 ravenscar_get_thread_base_cpu. Check m_cpu_map.
477 (ravenscar_thread_target::task_is_currently_active): Update.
478 (ravenscar_thread_target::get_base_thread_from_ravenscar_task):
479 Now a method.
480 (ravenscar_thread_target::add_active_thread): Put initial thread
481 into the m_cpu_map.
482
550ab58d
TT
4832020-08-07 Tom Tromey <tromey@adacore.com>
484
485 * ravenscar-thread.c (ravenscar_thread_target::wait): Return
486 event_ptid.
487
e9546579
TT
4882020-08-07 Tom Tromey <tromey@adacore.com>
489
490 * ravenscar-thread.c (ravenscar_thread_target::wait): Check
491 runtime_initialized.
492
3d4470e5
TT
4932020-08-07 Tom Tromey <tromey@adacore.com>
494
495 * ravenscar-thread.c (ravenscar_thread_target): Don't call
496 add_active_thread.
497 (ravenscar_thread_target::add_active_thread): Now public.
498 (ravenscar_inferior_created): Call add_active_thread after pushing
499 the target.
500
888bdb2b
SM
5012020-08-07 Simon Marchi <simon.marchi@polymtl.ca>
502
503 * regcache.c (ptid_regcache_map): New type.
504 (target_ptid_regcache_map): New type.
505 (regcaches): Change type to target_ptid_regcache_map.
506 (get_thread_arch_aspace_regcache): Update to regcaches' new
507 type.
508 (regcache_thread_ptid_changed): Likewise.
509 (registers_changed_ptid): Likewise.
510 (regcaches_size): Likewise.
511 (regcaches_test): Update.
512 (regcache_thread_ptid_changed): Update.
513 * regcache.h (regcache_up): New type.
514 * gdbsupport/ptid.h (hash_ptid): New struct.
515
b161a60d
SM
5162020-08-07 Simon Marchi <simon.marchi@efficios.com>
517
518 * observable.h (thread_ptid_changed): Add parameter
519 `process_stratum_target *`.
520 * infrun.c (infrun_thread_ptid_changed): Add parameter
521 `process_stratum_target *` and use it.
522 (selftests): New namespace.
523 (infrun_thread_ptid_changed): New function.
524 (_initialize_infrun): Register selftest.
525 * regcache.c (regcache_thread_ptid_changed): Add parameter
526 `process_stratum_target *` and use it.
527 (regcache_thread_ptid_changed): New function.
528 (_initialize_regcache): Register selftest.
529 * thread.c (thread_change_ptid): Pass target to
530 thread_ptid_changed observable.
531
d2854d8d
CT
5322020-08-06 Caroline Tice <cmtice@google.com>
533
fe4c3d43
SM
534 * dwarf2/read.c (struct dwo_file): Update comment on 'sections' field.
535 (struct dwp_sections): Update field comments. Add loclists and
536 rnglists fields.
537 (struct virtual_v2_dwo_sections): Rename struct to
538 'virtual_v2_or_v5_dwo_sections'; update comments at top of struct; add
539 size & offset fields for loclists and rnglists.
540 (struct dwp_hash_table): Add a 'v5' struct field to the union section.
541 (create_debug_type_hash_table): Add 'DW_UT_split_type' to the check for
542 skipping dummy type units.
543 (create_dwp_hash_table): Update the large comment above the function to
544 discuss Version 5 DWP files as well, with references. Update all the
545 version checks in the function to check for version 5 as well. Add new
546 section at the end to create dwp hash table for version 5.
547 (create_dwp_v2_section): Rename function to
548 'create_dwp_v2_or_v5_section'. Update function comment appropriately.
549 Add V5 to error message text.
550 (create_dwo_unit_in_dwp_v2): Change calls to create_dwp_v2_section
551 into calls to create_dwp_v2_or_v5_section.
552 (create_dwo_unit_in_dwp_v5): New function.
553 (lookup_dwo_unit_in_dwp): Update conditional statement to explicitly
554 check for version2; add else clause to handle version 5.
555 (open_and_init_dwo_file): Add code to check dwarf version & only call
556 create_debug_types_hash_table (with sections.types) if version is not 5;
557 else call create_debug_type_hash_table, with sections.info.
558 (dwarf2_locate_v2_dwp_sections): Update function comment to mention
559 version 5.
560 (dwarf2_locate_v5_dwp_sections): New function.
561 (open_and_init_dwp_file): Add else-if clause for version 5 to call
562 bfd_map_over_sections with dwarf2_locate_v5_dwp_sections.
d2854d8d 563
159ed7d9
SM
5642020-08-06 Simon Marchi <simon.marchi@efficios.com>
565
566 * regcache.h (class regcache): Remove friend
567 registers_changed_ptid.
568 <regcache_thread_ptid_changed>: Remove.
569 <regcaches>: Remove.
570 * regcache.c (regcache::regcaches): Rename to...
571 (regcaches): ... this. Make static.
572 (get_thread_arch_aspace_regcache): Update.
573 (regcache::regcache_thread_ptid_changed): Rename to...
574 (regcache_thread_ptid_changed): ... this. Update.
575 (class regcache_access): Remove.
576 (regcaches_test): Update.
577 (_initialize_regcache): Update.
578 * sparc64-tdep.c, dwarf2/index-write.c, record-btrace.c: Include
579 <forward_list>.
580
174981ae
SM
5812020-08-06 Simon Marchi <simon.marchi@efficios.com>
582
583 * regcache.h (class regcache) <current_regcache>: Rename to...
584 <regcaches>: ... this. Move doc here.
585 * regcache.c (regcache::current_regcache) Rename to...
586 (regcache::regcaches): ... this. Move doc to header.
587 (get_thread_arch_aspace_regcache): Update.
588 (regcache::regcache_thread_ptid_changed): Update.
589 (registers_changed_ptid): Update.
590 (class regcache_access) <current_regcache_size>: Rename to...
591 <regcaches_size>: ... this.
592 (current_regcache_test): Rename to...
593 (regcaches_test): ... this.
594 (_initialize_regcache): Update.
595
ed908db6
VC
5962020-08-06 Victor Collod <vcollod@nvidia.com>
597
598 * amd64-tdep.c (amd64_analyze_prologue): Fix incorrect comment.
599
b5582ab7
KB
6002020-08-05 Kevin Buettner <kevinb@redhat.com>
601
602 * corelow.c (core_target::build_file_mappings): Don't output
603 null pathname in warning.
604
ea946b86
SM
6052020-08-05 Simon Marchi <simon.marchi@polymtl.ca>
606
607 * gdb.dwarf2/clztest.exp, gdb.dwarf2/dw2-common-block.exp,
608 gdb.dwarf2/dw2-dup-frame.exp, gdb.dwarf2/dw2-reg-undefined.exp,
609 gdb.dwarf2/dw2-single-line-discriminators.exp,
610 dw2-undefined-ret-addr.exp: Pass nopie to compilation options.
611
57d02173
TT
6122020-08-05 Tom Tromey <tromey@adacore.com>
613
614 PR rust/26197:
615 * dwarf2/read.c (alloc_rust_variant): Handle univariant case.
616 (quirk_rust_enum): Call alloc_rust_variant for univariant case.
617 Fix off-by-one and type size errors in ordinary case.
618
5555c86d
TV
6192020-08-05 Tom de Vries <tdevries@suse.de>
620
621 * gdbtypes.c (type_not_allocated, type_not_associated): Use
622 "prop->const_val () == 0" instead of "prop->const_val () != 0".
623
97916bfe
SM
6242020-08-04 Simon Marchi <simon.marchi@efficios.com>
625
626 * frame.h (frame_id_p): Return bool.
627 (frame_id_artificial_p): Return bool.
628 (frame_id_eq): Return bool.
629 (has_stack_frames): Return bool.
630 (get_selected_frame): Fix typo in comment.
631 (get_frame_pc_if_available): Return bool.
632 (get_frame_address_in_block_if_available): Return bool.
633 (get_frame_func_if_available): Return bool.
634 (read_frame_register_unsigned): Return bool.
635 (get_frame_register_bytes): Return bool.
636 (safe_frame_unwind_memory): Return bool.
637 (deprecated_frame_register_read): Return bool.
638 (frame_unwinder_is): Return bool.
639 * frame.c (struct frame_info) <prev_arch::p>: Change type to
640 bool.
641 <this_id::p>: Likewise.
642 <prev_p>: Likewise.
643 (frame_stash_add): Return bool.
644 (get_frame_id): Use bool.
645 (frame_id_build_special) Use bool.
646 (frame_id_build_unavailable_stack): Use bool.
647 (frame_id_build): Use bool.
648 (frame_id_p): Return bool, use true/false instead of 1/0.
649 (frame_id_artificial_p): Likewise.
650 (frame_id_eq): Likewise.
651 (frame_id_inner): Likewise.
652 (get_frame_func_if_available): Likewise.
653 (read_frame_register_unsigned): Likewise.
654 (deprecated_frame_register_read): Likewise.
655 (get_frame_register_bytes): Likewise.
656 (has_stack_frames): Likewise.
657 (inside_main_func): Likewise.
658 (inside_entry_func): Likewise.
659 (get_frame_pc_if_available): Likewise.
660 (get_frame_address_in_block_if_available): Likewise.
661 (frame_unwinder_is): Likewise.
662 (safe_frame_unwind_memory): Likewise.
663 (frame_unwind_arch): Likewise.
664
fedfee88
SM
6652020-08-04 Simon Marchi <simon.marchi@efficios.com>
666
667 * frame.c (frame_info) <prev_func> <p>: Rename to status, change
668 type to cached_copy_status.
669 (fprintf_frame): Adjust.
670 (get_frame_func_if_available): Adjust.
671 (frame_cleanup_after_sniffer): Adjust.
672
6cfa9b59
MW
6732020-08-04 Mark Wielaard <mark@klomp.org>
674
675 * MAINTAINERS (Write After Approval): Update email address.
676
66d6346b
SM
6772020-08-04 Simon Marchi <simon.marchi@polymtl.ca>
678
679 * gdbtypes.h (TYPE_DYN_PROP_ADDR): Remove, replace uses with
680 dynamic_prop::const_val.
681
8a6d5e35
SM
6822020-08-04 Simon Marchi <simon.marchi@polymtl.ca>
683
684 * gdbtypes.h (TYPE_DYN_PROP_KIND): Remove, replace uses with
685 dynamic_prop::kind.
686
51d6067d
SM
6872020-08-04 Simon Marchi <simon.marchi@polymtl.ca>
688
689 * gdbtypes.h (TYPE_DYN_PROP_BATON): Remove.
690
b26e2ae7
JM
6912020-08-04 Jose E. Marchesi <jose.marchesi@oracle.com>
692
693 * configure.tgt: Set gdb_sim for bpf-*-* targets.
694
39791af2
JM
6952020-08-04 Weimin Pan <weimin.pan@oracle.com>
696 Jose E. Marchesi <jose.marchesi@oracle.com>
697
698 * configure.tgt: Add entry for bpf-*-*.
699 * Makefile.in (ALL_TARGET_OBS): Add bpf-tdep.o
700 (ALLDEPFILES): Add bpf-tdep.c.
701 * bpf-tdep.c: New file.
702 * MAINTAINERS: Add bpf target and maintainer.
703 * NEWS: Mention the support for the new target.
704
521894aa
TV
7052020-08-04 Tom de Vries <tdevries@suse.de>
706
707 PR symtab/23270
708 * dwarf2/read.c (find_partial_die): Change internal error into Dwarf
709 Error.
710
5d6356e9
JB
7112020-08-03 John Baldwin <jhb@FreeBSD.org>
712
713 * syscalls/freebsd.xml: Regenerate.
714
0cf82b81
JB
7152020-08-03 John Baldwin <jhb@FreeBSD.org>
716
717 * syscalls/update-freebsd.sh: Fix usage and year range.
718
8f34b746
TV
7192020-08-03 Tom de Vries <tdevries@suse.de>
720
721 PR symtab/26333
722 * dwarf2/read.c (dwarf_decode_lines_1): Ignore
723 DW_LNE_lo_user/DW_LNE_hi_user range.
724
5e500d33
SM
7252020-07-30 Simon Marchi <simon.marchi@polymtl.ca>
726
727 PR ada/26318
728 * ada-lang.c (ada_modulus): Return 0 if property is not of const
729 kind.
730
78319c15
TBA
7312020-07-30 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
732
733 * breakpoint.c (set_breakpoint_condition): Do minor refactoring.
734
4c55e970
TBA
7352020-07-30 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
736
737 * breakpoint.c (set_breakpoint_condition): Update the condition
738 expressions after checking that the input condition string parses
739 successfully and does not contain junk at the end.
740
1e620590
TBA
7412020-07-30 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
742
743 * breakpoint.c (set_breakpoint_condition): Update the
744 condition string after parsing the new condition successfully.
745
c8693053
RO
7462020-07-30 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
747
748 * proc-api.c (_STRUCTURED_PROC): Don't define.
749 * proc-events.c: Likewise.
750 * proc-flags.c: Likewise.
751 * proc-why.c: Likewise.
752 * procfs.c: Likewise.
753
754 * Makefile.in (INTERNAL_CPPFLAGS): Add LARGEFILE_CPPFLAGS.
755 * configure, config.in: Regenerate.
756
5a99adb8
TV
7572020-07-30 Tom de Vries <tdevries@suse.de>
758
759 PR build/26320
760 * ui-style.h (struct ui_file_style::color): Wrap m_value and
761 m_red/m_green/m_blue in a union.
762
8ba83e91
TV
7632020-07-29 Tom de Vries <tdevries@suse.de>
764
765 PR tdep/26280
766 * s390-tdep.c (s390_displaced_step_fixup): Fix Wmaybe-uninitialized.
767
f75a0693
AB
7682020-07-28 Tom Tromey <tromey@adacore.com>
769
770 PR symtab/26270:
771 * symtab.h (find_pc_partial_function_sym): Declare.
772 * cli/cli-cmds.c (disassemble_command): Use
773 find_pc_partial_function_sym. Check asm_demangle.
774 * blockframe.c (cache_pc_function_sym): New global.
775 (cache_pc_function_name): Remove.
776 (clear_pc_function_cache): Update.
777 (find_pc_partial_function_sym): New function, from
778 find_pc_partial_function.
779 (find_pc_partial_function): Rewrite using
780 find_pc_partial_function_sym.
781
16f3242c
TT
7822020-07-28 Tom Tromey <tromey@adacore.com>
783
784 * cli/cli-cmds.c (_initialize_cli_cmds): Rearrange "disassemble"
785 help. Add usage.
786
4888741a
TT
7872020-07-28 Tom Tromey <tromey@adacore.com>
788
789 * dwarf2/expr.c (dwarf_expr_context::execute_stack_op)
790 <DW_OP_GNU_variable_value>: Cast to address type.
791
4d46f402
KR
7922020-07-28 Kamil Rytarowski <n54@gmx.com>
793
794 * nbsd-nat.h (nbsd_nat_target::xfer_partial): New declaration.
795 * nbsd-nat.c (nbsd_nat_target::xfer_partial): New function.
796 * nbsd-tdep.c (nbsd_gdbarch_data_handle, struct nbsd_gdbarch_data)
797 (init_nbsd_gdbarch_data, get_nbsd_gdbarch_data)
798 (nbsd_get_siginfo_type): New.
799 (nbsd_init_abi): Install gdbarch "get_siginfo_type" method.
800 (_initialize_nbsd_tdep): New.
801
d70f978b
L
8022020-07-28 H.J. Lu <hongjiu.lu@intel.com>
803
804 PR binutils/26301
805 * configure: Regenerated.
806
377170fa
L
8072020-07-28 H.J. Lu <hongjiu.lu@intel.com>
808
809 PR binutils/26301
810 * configure: Regenerated.
811
43d5901d
AB
8122020-07-28 Andrew Burgess <andrew.burgess@embecosm.com>
813
814 * python/py-frame.c: Remove 'user-regs.h' include.
815 (frapy_read_register): Rewrite to make use of
816 gdbpy_parse_register_id.
817 * python/py-registers.c (gdbpy_parse_register_id): New function,
818 moved here from python/py-unwind.c. Updated the return type, and
819 also accepts register descriptor objects.
820 * python/py-unwind.c: Remove 'user-regs.h' include.
821 (pyuw_parse_register_id): Moved to python/py-registers.c.
822 (unwind_infopy_add_saved_register): Update to use
823 gdbpy_parse_register_id.
824 (pending_framepy_read_register): Likewise.
825 * python/python-internal.h (gdbpy_parse_register_id): Declare.
826
14fa8fb3
AB
8272020-07-28 Andrew Burgess <andrew.burgess@embecosm.com>
828
829 * python/py-registers.c: Add 'user-regs.h' include.
830 (register_descriptor_iter_find): New function.
831 (register_descriptor_iterator_object_methods): New static global
832 methods array.
833 (register_descriptor_iterator_object_type): Add pointer to methods
834 array.
835
ddce1758
JB
8362020-07-27 John Baldwin <jhb@FreeBSD.org>
837
838 * fbsd-nat.h: Include <osreldate.h>. Define USE_SIGTRAP_SIGINFO
839 for all architectures on FreeBSD 11.3 and later.
840
a4089f52
TT
8412020-07-27 Tom Tromey <tromey@adacore.com>
842
843 * gcore.h (load_corefile): Don't declare.
844
95420d30
TV
8452020-07-27 Tom de Vries <tdevries@suse.de>
846
847 * configure.ac: Fix sys/sockets.h -> sys/socket.h typo.
848 * config.in: Regenerate.
849 * configure: Regenerate.
850
05a6b8c2
EZ
8512020-07-26 Eli Zaretskii <eliz@gnu.org>
852
853 * configure.ac (AC_CHECK_HEADERS): Check for sys/socket.h and
854 ws2tcpip.h. When checking whether socklen_t type is defined, use
855 ws2tcpip.h if it is available and sys/socket.h isn't.
856 * configure: Regenerate.
857 * config.in: Regenerate.
858
e79eb02f
AB
8592020-07-25 Andrew Burgess <andrew.burgess@embecosm.com>
860
861 PR fortran/23051
862 PR fortran/26139
863 * valops.c (value_ind): Pass address to
864 readjust_indirect_value_type.
865 * value.c (readjust_indirect_value_type): Make parameter
866 non-const, and add extra address parameter. Resolve original type
867 before using it.
868 * value.h (readjust_indirect_value_type): Update function
869 signature and comment.
870
876518dd
TV
8712020-07-25 Tom de Vries <tdevries@suse.de>
872
873 PR symtab/26243
874 * dwarf2/read.c (lnp_state_machine::record_line): Ignore zero line
875 entries.
876
f6720b1c
AM
8772020-07-24 Aaron Merey <amerey@redhat.com>
878
879 * Makefile.in: Replace LIBDEBUGINFOD with DEBUGINFOD_LIBS.
880 * configure: Rebuild.
881
513487e1
KB
8822020-07-23 Kevin Buettner <kevinb@redhat.com>
883
884 PR corefiles/26294
885 * corelow.c (_initialize_corelow): Add period to help text
886 for "maintenance print core-file-backed-mappings".
887
e7bc9db8
PA
8882020-07-23 Pedro Alves <pedro@palves.net>
889
890 * frame-unwind.c (frame_unwind_try_unwinder): On exception, don't
891 touch THIS_CACHE/THIS_FRAME if the frame cache was cleared
892 meanwhile.
893 * frame.c (frame_cache_generation, get_frame_cache_generation):
894 New.
895 (reinit_frame_cache): Increment FRAME_CACHE_GENERATION.
896 (get_prev_frame_if_no_cycle): On exception, don't touch
897 PREV_FRAME/THIS_FRAME if the frame cache was cleared meanwhile.
898 * frame.h (get_frame_cache_generation): Declare.
899
90fcc466
TV
9002020-07-23 Tom de Vries <tdevries@suse.de>
901
902 PR tui/26282
903 * tui/tui-winsource.h (struct tui_source_windows::tui_source_windows):
904 New default constructor.
905
78344df7
AB
9062020-07-23 Andrew Burgess <andrew.burgess@embecosm.com>
907
908 * disasm.c (do_mixed_source_and_assembly_deprecated): Don't
909 exclude non-statement entries.
910
b089853a
KB
9112020-07-22 Kevin Buettner <kevinb@redhat.com>
912
913 * NEWS (New commands): Mention new command
914 "maintenance print core-file-backed-mappings".
915
09c2f5d4
KB
9162020-07-22 Kevin Buettner <kevinb@redhat.com>
917
918 * corelow.c (gdbcmd.h): Include.
919 (core_target::info_proc_mappings): New method.
920 (get_current_core_target): New function.
921 (maintenance_print_core_file_backed_mappings): New function.
922 (_initialize_corelow): Add core-file-backed-mappings to
923 "maint print" commands.
924
9c5ec5c2 9252020-07-22 Kevin Buettner <kevinb@redhat.com>
fe4c3d43 926
9c5ec5c2
KB
927 * linux-tdep.c (dump_note_entry_p): New function.
928 (linux_dump_mapping_p_ftype): New typedef.
929 (linux_find_memory_regions_full): Add new parameter,
930 should_dump_mapping_p.
931 (linux_find_memory_regions): Adjust call to
932 linux_find_memory_regions_full.
933 (linux_make_mappings_core_file_notes): Use dump_note_entry_p in
934 call to linux_find_memory_regions_full.
935
db082f59
KB
9362020-07-22 Kevin Buettner <kevinb@redhat.com>
937
938 * corelow.c (solist.h, unordered_map): Include.
939 (class core_target): Add field m_core_file_mappings and
940 method build_file_mappings.
941 (core_target::core_target): Call build_file_mappings.
942 (core_target::~core_target): Free memory associated with
943 m_core_file_mappings.
944 (core_target::build_file_mappings): New method.
945 (core_target::xfer_partial): Use m_core_file_mappings
946 for memory transfers.
947 * linux-tdep.c (linux_read_core_file_mappings): New
948 function.
949 (linux_core_info_proc_mappings): Rewrite to use
950 linux_read_core_file_mappings.
951 (linux_init_abi): Register linux_read_core_file_mappings.
952
7e183d27
KB
9532020-07-22 Kevin Buettner <kevinb@redhat.com>
954
955 * arch-utils.c (default_read_core_file_mappings): New function.
956 * arch-utils.c (default_read_core_file_mappings): Declare.
957 * gdbarch.sh (read_core_file_mappings): New gdbarch method.
958 * gdbarch.h, gdbarch.c: Regenerate.
959
2735d421
KB
9602020-07-22 Kevin Buettner <kevinb@redhat.com>
961
962 PR corefiles/25631
963 * corelow.c (core_target:xfer_partial): Revise
964 TARGET_OBJECT_MEMORY case to consider non-SEC_HAS_CONTENTS
965 case after first checking the stratum beneath the core
966 target.
967 (has_all_memory): Return true.
968 * target.c (raw_memory_xfer_partial): Revise comment
969 regarding use of has_all_memory.
970
e56cb451
KB
9712020-07-22 Kevin Buettner <kevinb@redhat.com>
972
973 * exec.h (section_table_xfer_memory): Revise declaration,
974 replacing section name parameter with an optional callback
975 predicate.
976 * exec.c (section_table_xfer_memory): Likewise.
977 * bfd-target.c, exec.c, target.c, corelow.c: Adjust all callers
978 of section_table_xfer_memory.
979
32fa152e
TT
9802020-07-22 Tom Tromey <tromey@adacore.com>
981
982 * mi/mi-cmd-stack.c (list_args_or_locals): Use
983 lookup_symbol_search_name.
984
a67a1c41
AB
9852020-07-22 Andrew Burgess <andrew.burgess@embecosm.com>
986
987 * python/py-registers.c (gdbpy_register_object_data_init): Remove
988 redundant local variable.
989 (gdbpy_get_register_descriptor): Extract descriptor vector as a
990 reference, not pointer, update code accordingly.
991
a7b4ff4f
SM
9922020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
993 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
994
995 * objfiles.h (struct objfile) <skip_jit_symbol_lookup>: New field.
996 * jit.c (jit_breakpoint_re_set_internal): Use the
997 `skip_jit_symbol_lookup` field.
998
2340e834
SM
9992020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
1000 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1001
1002 * jit.c (jit_read_descriptor): Define the descriptor address once,
1003 use twice.
1004 (jit_breakpoint_deleted): Move the declaration of the loop variable
1005 `iter` into the loop header.
1006 (jit_breakpoint_re_set_internal): Move the declaration of the local
1007 variable `objf_data` to the first point of definition.
1008 (jit_event_handler): Move the declaration of local variables
1009 `code_entry`, `entry_addr`, and `objf` to their first point of use.
1010 Rename `objf` to `jited`.
1011
c1072906
SM
10122020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
1013
1014 * jit.h (struct jiter_objfile_data) <jiter_objfile_data, objfile>:
1015 Remove.
1016 * jit.c (get_jiter_objfile_data): Update.
1017
c8474dc3
TBA
10182020-07-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1019 Simon Marchi <simon.marchi@polymtl.ca>
1020
1021 * jit.c (struct jit_program_space_data): Remove.
1022 (jit_program_space_key): Remove.
1023 (jiter_objfile_data::~jiter_objfile_data): Remove program space
1024 stuff.
1025 (get_jit_program_space_data): Remove.
1026 (jit_breakpoint_deleted): Iterate on all of the program space's
1027 objfiles.
1028 (jit_inferior_init): Likewise.
1029 (jit_breakpoint_re_set_internal): Likewise. Also change return
1030 type to void.
1031 (jit_breakpoint_re_set): Pass current_program_space to
1032 jit_breakpoint_re_set_internal.
1033
77208eb7
SM
10342020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
1035
1036 * jit.h (struct jiter_objfile_data) <cached_code_address,
1037 jit_breakpoint>: Move to here from ...
1038 * jit.c (jit_program_space_data): ... here.
1039 (jiter_objfile_data::~jiter_objfile_data): Update.
1040 (jit_breakpoint_deleted): Update.
1041 (jit_breakpoint_re_set_internal): Update.
1042
8c1c720f
SM
10432020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
1044
1045 * jit.c (jiter_objfile_data::~jiter_objfile_data): Remove some
1046 checks.
1047 (jit_read_descriptor): Remove NULL check.
1048 (jit_event_handler): Add an assertion.
1049
0e74a041
SM
10502020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
1051
1052 * jit.h (struct jit_objfile_data): Split into...
1053 (struct jiter_objfile_data): ... this ...
1054 (struct jited_objfile_data): ... and this.
1055 * objfiles.h (struct objfile) <jit_data>: Remove.
1056 <jiter_data, jited_data>: New fields.
1057 * jit.c (jit_objfile_data::~jit_objfile_data): Rename to ...
1058 (jiter_objfile_data::~jiter_objfile_data): ... this.
1059 (get_jit_objfile_data): Rename to ...
1060 (get_jiter_objfile_data): ... this.
1061 (add_objfile_entry): Update.
1062 (jit_read_descriptor): Use get_jiter_objfile_data.
1063 (jit_find_objf_with_entry_addr): Use objfile's jited_data field.
1064 (jit_breakpoint_re_set_internal): Use get_jiter_objfile_data.
1065 (jit_inferior_exit_hook): Use objfile's jited_data field.
1066
238b5c9f
SM
10672020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
1068
1069 * jit.h: Forward-declare `struct minimal_symbol`.
1070 (struct jit_objfile_data): Migrate to here from jit.c; also add a
1071 constructor, destructor, and an objfile* field.
1072 * jit.c (jit_objfile_data): Remove.
1073 (struct jit_objfile_data): Migrate from here to jit.h.
1074 (jit_objfile_data::~jit_objfile_data): New destructor
1075 implementation with code moved from free_objfile_data.
1076 (free_objfile_data): Delete.
1077 (get_jit_objfile_data): Update to use the jit_data field of objfile.
1078 (jit_find_objf_with_entry_addr): Ditto.
1079 (jit_inferior_exit_hook): Ditto.
1080 (_initialize_jit): Remove the call to
1081 register_objfile_data_with_cleanup.
1082 * objfiles.h (struct objfile) <jit_data>: New field.
1083
fe053b9e
TBA
10842020-07-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1085
1086 * jit.h: Forward-declare `struct objfile`.
1087 (jit_event_handler): Add a second parameter, the JITer objfile.
1088 * jit.c (jit_read_descriptor): Change the signature to take the
1089 JITer objfile as an argument instead of the jit_program_space_data.
1090 (jit_inferior_init): Update the call to jit_read_descriptor.
1091 (jit_event_handler): Use the new JITer objfile argument when calling
1092 jit_read_descriptor.
1093 * breakpoint.c (handle_jit_event): Update the call to
1094 jit_event_handler to pass the JITer objfile.
1095
4cec0c66
JB
10962020-07-21 John Baldwin <jhb@FreeBSD.org>
1097
1098 * gdbarch.c: Regenerate.
1099 * gdbarch.h: Regenerate.
1100 * gdbarch.sh (handle_segmentation_fault): Remove method.
1101 * infrun.c (handle_segmentation_fault): Remove.
1102 (print_signal_received_reason): Remove call to
1103 handle_segmentation_fault.
1104
0e42f66a
JB
11052020-07-21 John Baldwin <jhb@FreeBSD.org>
1106
1107 * sparc64-linux-tdep.c (sparc64_linux_handle_segmentation_fault):
1108 Rename to sparc64_linux_report_signal_info and add siggnal
1109 argument.
1110 (sparc64_linux_init_abi): Use sparc64_linux_report_signal_info
1111 instead of sparc64_linux_handle_segmentation_fault.
1112
77bdfeb2
JB
11132020-07-21 John Baldwin <jhb@FreeBSD.org>
1114
1115 * amd64-linux-tdep.c (amd64_linux_init_abi_common): Use
1116 i386_linux_report_signal_info instead of
1117 i386_linux_handle_segmentation_fault.
1118 * i386-linux-tdep.c (i386_linux_handle_segmentation_fault): Rename
1119 to i386_linux_report_signal_info and add siggnal argument.
1120 (i386_linux_init_abi): Use i386_linux_report_signal_info instead
1121 of i386_linux_handle_segmentation_fault.
1122 * i386-linux-tdep.h (i386_linux_handle_segmentation_fault): Rename
1123 to i386_linux_report_signal_info and add siggnal argument.
1124
ad97bfc5
JB
11252020-07-21 John Baldwin <jhb@FreeBSD.org>
1126
1127 * corelow.c (core_target_open): Invoke gdbarch report_signal_info
1128 hook if present.
1129
272bb05c
JB
11302020-07-21 John Baldwin <jhb@FreeBSD.org>
1131
1132 * gdbarch.c: Regenerate.
1133 * gdbarch.h: Regenerate.
1134 * gdbarch.sh (report_signal_info): New method.
1135 * infrun.c (print_signal_received_reason): Invoke gdbarch
1136 report_signal_info hook if present.
1137
baf8791e
AB
11382020-07-21 Andrew Burgess <andrew.burgess@embecosm.com>
1139
1140 * python/py-registers.c : Add 'unordered_map' include.
1141 (gdbpy_new_reggroup): Renamed to...
1142 (gdbpy_get_reggroup): ...this. Update to only create register
1143 group descriptors when needed.
1144 (gdbpy_reggroup_iter_next): Update.
1145
f7306dac
AB
11462020-07-21 Andrew Burgess <andrew.burgess@embecosm.com>
1147
1148 * python/py-registers.c (gdbpy_register_object_data): New static
1149 global.
1150 (gdbpy_register_object_data_init): New function.
1151 (gdbpy_new_register_descriptor): Renamed to...
1152 (gdbpy_get_register_descriptor): ...this, and update to reuse
1153 existing register descriptors where possible.
1154 (gdbpy_register_descriptor_iter_next): Update.
1155 (gdbpy_initialize_registers): Register new gdbarch data.
1156
05c309a8
SM
11572020-07-21 Simon Marchi <simon.marchi@efficios.com>
1158
1159 * linux-nat.c (stopped_pids): Make static.
1160
d1fd641e
SM
11612020-07-21 Simon Marchi <simon.marchi@polymtl.ca>
1162
1163 PR ada/26235
1164 * gdbtypes.c (ada_discrete_type_low_bound,
1165 ada_discrete_type_high_bound): Handle undefined bounds.
1166
1de14d77
KR
11672020-07-21 Kamil Rytarowski <n54@gmx.com>
1168
1169 * nbsd-nat.h (nbsd_nat_target::supports_multi_process): New
1170 declaration.
1171 * nbsd-nat.c (nbsd_nat_target::supports_multi_process): New
1172 function.
1173
ed810cc7
JB
11742020-07-20 John Baldwin <jhb@FreeBSD.org>
1175
1176 * fbsd-tdep.c (fbsd_skip_solib_resolver): New function.
1177 (fbsd_init_abi): Install gdbarch "skip_solib_resolver" method.
1178 * fbsd-tdep.h (fbsd_skip_solib_resolver): New prototype.
1179 * mips-fbsd-tdep.c (mips_fbsd_skip_solib_resolver): New function.
1180 (mips_fbsd_init_abi): Install gdbarch "skip_solib_resolver"
1181 method.
1182
ae5369e7
LC
11832020-07-20 Ludovic Courtès <ludo@gnu.org>
1184
1185 * guile/scm-math.c (vlscm_integer_fits_p): Use 'uintmax_t'
1186 and 'intmax_t' instead of 'scm_t_uintmax' and 'scm_t_intmax',
1187 which are deprecated in Guile 3.0.
1188 * configure.ac (try_guile_versions): Add "guile-3.0".
1189 * configure (try_guile_versions): Regenerate.
1190 * NEWS: Update entry.
1191
68cf161c
LC
11922020-07-20 Ludovic Courtès <ludo@gnu.org>
1193 Doug Evans <dje@google.com>
1194
1195 PR gdb/21104
1196 * guile/scm-ports.c (USING_GUILE_BEFORE_2_2): New macro.
1197 (ioscm_memory_port)[read_buf_size, write_buf_size]: Wrap in #if
1198 USING_GUILE_BEFORE_2_2.
1199 (stdio_port_desc, memory_port_desc) [!USING_GUILE_BEFORE_2_2]:
1200 Change type to 'scm_t_port_type *'.
1201 (natural_buffer_size) [!USING_GUILE_BEFORE_2_2]: New variable.
1202 (ioscm_open_port) [USING_GUILE_BEFORE_2_2]: Add 'stream'
1203 parameter and honor it. Update callers.
1204 (ioscm_open_port) [!USING_GUILE_BEFORE_2_2]: New function.
1205 (ioscm_read_from_port, ioscm_write) [!USING_GUILE_BEFORE_2_2]: New
1206 functions.
1207 (ioscm_fill_input, ioscm_input_waiting, ioscm_flush): Wrap in #if
1208 USING_GUILE_BEFORE_2_2.
1209 (ioscm_init_gdb_stdio_port) [!USING_GUILE_BEFORE_2_2]: Use
1210 'ioscm_read_from_port'. Call 'scm_set_port_read_wait_fd'.
1211 (ioscm_init_stdio_buffers) [!USING_GUILE_BEFORE_2_2]: New function.
1212 (gdbscm_stdio_port_p) [!USING_GUILE_BEFORE_2_2]: Use 'SCM_PORTP'
1213 and 'SCM_PORT_TYPE'.
1214 (gdbscm_memory_port_end_input, gdbscm_memory_port_seek)
1215 (ioscm_reinit_memory_port): Wrap in #if USING_GUILE_BEFORE_2_2.
1216 (gdbscm_memory_port_read, gdbscm_memory_port_write)
1217 (gdbscm_memory_port_seek, gdbscm_memory_port_close)
1218 [!USING_GUILE_BEFORE_2_2]: New functions.
1219 (gdbscm_memory_port_print): Remove use of 'SCM_PTOB_NAME'.
1220 (ioscm_init_memory_port_type) [!USING_GUILE_BEFORE_2_2]: Use
1221 'gdbscm_memory_port_read'.
1222 Wrap 'scm_set_port_end_input', 'scm_set_port_flush', and
1223 'scm_set_port_free' calls in #if USING_GUILE_BEFORE_2_2.
1224 (gdbscm_get_natural_buffer_sizes) [!USING_GUILE_BEFORE_2_2]: New
1225 function.
1226 (ioscm_init_memory_port): Remove.
1227 (ioscm_init_memory_port_stream): New function
1228 (ioscm_init_memory_port_buffers) [USING_GUILE_BEFORE_2_2]: New
1229 function.
1230 (gdbscm_memory_port_read_buffer_size) [!USING_GUILE_BEFORE_2_2]:
1231 Return scm_from_uint (0).
1232 (gdbscm_set_memory_port_read_buffer_size_x)
1233 [!USING_GUILE_BEFORE_2_2]: Call 'scm_setvbuf'.
1234 (gdbscm_memory_port_write_buffer_size) [!USING_GUILE_BEFORE_2_2]:
1235 Return scm_from_uint (0).
1236 (gdbscm_set_memory_port_write_buffer_size_x)
1237 [!USING_GUILE_BEFORE_2_2]: Call 'scm_setvbuf'.
1238 * configure.ac (try_guile_versions): Add "guile-2.2".
1239 * configure: Regenerate.
1240 * NEWS: Add entry.
1241
aee91db3
TT
12422020-07-18 Tom Tromey <tom@tromey.com>
1243
1244 * linux-nat.c (linux_multi_process): Remove.
1245 (linux_nat_target::supports_multi_process): Return true.
1246
0e267416
AB
12472020-07-17 Andrew Burgess <andrew.burgess@embecosm.com>
1248
1249 * arch/riscv.c (riscv_tdesc_cache): Change map type.
1250 (riscv_lookup_target_description): Return pointer out of
1251 unique_ptr.
1252 * target-descriptions.c (allocate_target_description): Add
1253 comment.
1254 (target_desc_deleter::operator()): Likewise.
1255 * target-descriptions.h (struct target_desc_deleter): Moved to
1256 gdbsupport/tdesc.h.
1257 (target_desc_up): Likewise.
1258
f80c8ec4
TT
12592020-07-17 Tom Tromey <tromey@adacore.com>
1260
1261 * linux-nat.c (linux_nat_target::supports_non_stop)
1262 (linux_nat_target::always_non_stop_p): Use "true".
1263 (linux_nat_target::supports_disable_randomization): Use "true" and
1264 "false".
1265
d0ce17d8
CT
12662020-07-16 Caroline Tice <cmtice@google.com>
1267
1268 * dwarf2/read.c (RNGLIST_HEADER_SIZE32) New constant definition.
1269 (RNGLIST_HEADER_SIZE64): New constant definition.
1270 (struct dwop_section_names): Add rnglists_dwo.
1271 (dwop_section_names): Add .debug_rnglists.dwo, .zdebug_rnglists.dwo.
1272 (struct loclist_header): Rename to 'loclists_rnglists_header'.
1273 (struct dwo_sections): Add rnglists field.
1274 (read_attribut_reprocess): Add tag parameter.
1275 (dwarf2_ranges_read): Add tag parameter & remove forward function decl.
1276 (cu_debug_rnglists_section): New function (decl & definition).
1277 (dwarf2_locate_dwo_sections): Add code to read rnglists_dwo section.
1278 (dwarf2_rnglists_process): Add a dwarf_tag parameter, for the kind of
1279 die whose range is being checked; get rnglist section from
1280 cu_debug_rnglists_section, to get from either objfile or dwo file as
1281 appropriate. Add cases for DW_RLE_base_addressx,
1282 DW_RLE_startx_length, DW_RLE_startx_endx. Also, update to only add
1283 the base address to DW_RLE_offset_pairs (not to all ranges), moving
1284 test inside if-condition and updating complaint message.
1285 (dwarf2_ranges_process): Add dwarf tag parameter and pass it to
1286 dwarf2_rnglists_process.
1287 (dwarf2_ranges_read): Add dwarf tag parameter and pass it to
1288 dwarf2_ranges_process.
1289 (dwarf2_get_pc_bounds): Check for DW_FORM_rnglistx when setting
1290 need_ranges_base and update comment appropriately. Also pass die tag
1291 to dwarf2_ranges_read.
1292 (dwarf2_record_block_ranges): Check for DW_FORM_rnglistx when setting
1293 need_ranges_base and update comment appropriately. Also pass die tag
1294 to dwarf2_ranges_process.
1295 (read_full_die_1): Add code to read DW_AT_rnglists_base and assign to
1296 cu->ranges_base. Also pass die tag to read_attribute_reprocess.
1297 (partial_die_info::read): Check for DW_FORM_rnglistx when setting
1298 need_ranges_base and update comment appropriately. Also pass die tag
1299 to read_attribute_reprocess and dwarf2_ranges_read.
1300 (read_loclist_header): Rename function to read_loclists_rnglists_header,
1301 and update function comment appropriately.
1302 (read_loclist_index): Call read_loclists_rnglists_header instead of
1303 read_loclist_header.
1304 (read_rnglist_index): New function.
1305 (read_attribute_reprocess): Add tag parameter. Add code for
1306 DW_FORM_rnglistx, passing tag to read_rnglist_index.
1307 (read_attribute_value): Mark DW_FORM_rnglistx with need_reprocess.
1308
3dcc261c
AB
13092020-07-15 Andrew Burgess <andrew.burgess@embecosm.com>
1310
1311 * f-typeprint.c (f_type_print_base): Allow for dynamic types not
1312 being resolved.
1313
ccb9eba6
AB
13142020-07-14 Andrew Burgess <andrew.burgess@embecosm.com>
1315
1316 * arch-utils.c (show_architecture): Update formatting of messages.
1317
cf88be68
SM
13182020-07-12 Simon Marchi <simon.marchi@efficios.com>
1319
1320 * gdbtypes.h (struct type) <bounds>: Handle array and string
1321 types.
1322 * ada-lang.c (assign_aggregate): Use type::bounds on
1323 array/string type.
1324 * c-typeprint.c (c_type_print_varspec_suffix): Likewise.
1325 * c-varobj.c (c_number_of_children): Likewise.
1326 (c_describe_child): Likewise.
1327 * eval.c (evaluate_subexp_for_sizeof): Likewise.
1328 * f-typeprint.c (f_type_print_varspec_suffix): Likewise.
1329 (f_type_print_base): Likewise.
1330 * f-valprint.c (f77_array_offset_tbl): Likewise.
1331 (f77_get_upperbound): Likewise.
1332 (f77_print_array_1): Likewise.
1333 * guile/scm-type.c (gdbscm_type_range): Likewise.
1334 * m2-typeprint.c (m2_array): Likewise.
1335 (m2_is_long_set_of_type): Likewise.
1336 * m2-valprint.c (get_long_set_bounds): Likewise.
1337 * p-typeprint.c (pascal_type_print_varspec_prefix): Likewise.
1338 * python/py-type.c (typy_range): Likewise.
1339 * rust-lang.c (rust_internal_print_type): Likewise.
1340 * type-stack.c (type_stack::follow_types): Likewise.
1341 * valarith.c (value_subscripted_rvalue): Likewise.
1342 * valops.c (value_cast): Likewise.
1343
509971ae
SM
13442020-07-12 Simon Marchi <simon.marchi@efficios.com>
1345
1346 * gdbtypes.c (TYPE_ARRAY_BIT_STRIDE): Remove. Update all
1347 callers to use the equivalent accessor methods.
1348
107406b7
SM
13492020-07-12 Simon Marchi <simon.marchi@efficios.com>
1350
1351 * gdbtypes.h (struct range_bounds) <bit_stride>: New method.
1352 (struct type) <bit_stride>: New method.
1353 (TYPE_BIT_STRIDE): Remove.
1354 * gdbtypes.c (update_static_array_size): Use type::bit_stride.
1355
bb789949
SM
13562020-07-12 Simon Marchi <simon.marchi@efficios.com>
1357
1358 * gdbtypes.h (TYPE_ARRAY_LOWER_BOUND_VALUE,
1359 TYPE_ARRAY_UPPER_BOUND_VALUE): Remove. Update all
1360 callers to use the equivalent accessor methods instead.
1361
39498edb
SM
13622020-07-12 Simon Marchi <simon.marchi@efficios.com>
1363
1364 * gdbtypes.h (TYPE_ARRAY_UPPER_BOUND_IS_UNDEFINED,
1365 TYPE_ARRAY_LOWER_BOUND_IS_UNDEFINED): Remove. Update all
1366 callers to use the equivalent accessor methods instead.
1367
3b606f38
SM
13682020-07-12 Simon Marchi <simon.marchi@efficios.com>
1369
1370 * gdbtypes.h (TYPE_LOW_BOUND_KIND,
1371 TYPE_HIGH_BOUND_KIND): Remove. Update all callers
1372 to use dynamic_prop::kind.
1373
064d9cb9
SM
13742020-07-12 Simon Marchi <simon.marchi@efficios.com>
1375
1376 * gdbtypes.h (TYPE_LOW_BOUND_UNDEFINED,
1377 TYPE_HIGH_BOUND_UNDEFINED): Remove. Update all callers
1378 to get the bound property's kind and check against
1379 PROP_UNDEFINED.
1380
5537ddd0
SM
13812020-07-12 Simon Marchi <simon.marchi@efficios.com>
1382
1383 * gdbtypes.h (TYPE_LOW_BOUND, TYPE_HIGH_BOUND): Remove. Update
1384 all callers to use type::range_bounds followed by
1385 dynamic_prop::{low,high}.
1386
8c2e4e06
SM
13872020-07-12 Simon Marchi <simon.marchi@polymtl.ca>
1388
1389 * gdbtypes.h (struct dynamic_prop) <kind, set_undefined,
1390 const_val, set_const_val, baton, set_locexpr, set_loclist,
1391 set_addr_offset, variant_parts, set_variant_parts,
1392 original_type, set_original_type>: New methods.
1393 <kind>: Rename to...
1394 <m_kind>: ... this. Update all users to use the new methods
1395 instead.
1396 <data>: Rename to...
1397 <m_data>: ... this. Update all users to use the new methods
1398 instead.
1399
7c6f2712
SM
14002020-07-12 Simon Marchi <simon.marchi@efficios.com>
1401
1402 * gdbtypes.c (get_discrete_bounds): Return failure if
1403 the range type's bounds are not both defined and constant
1404 values.
1405 (get_array_bounds): Update comment. Remove undefined bound check.
1406
599088e3
SM
14072020-07-12 Simon Marchi <simon.marchi@polymtl.ca>
1408
1409 * gdbtypes.h (TYPE_RANGE_DATA): Remove. Update callers to use
1410 the type::bounds method directly.
1411
c4dfcb36
SM
14122020-07-12 Simon Marchi <simon.marchi@efficios.com>
1413
1414 * gdbtypes.h (struct type) <bounds, set_bounds>: New methods.
1415 (TYPE_RANGE_DATA): Use type::bounds. Change all uses that
1416 are used to set the range type's bounds to use set_bounds.
1417
0a278aa7
PW
14182020-07-11 Philippe Waroquiers <philippe.waroquiers@skynet.be>
1419
1420 * exec.c (_initialize_exec): Update exec-file-mismatch help.
1421
cce20f10
PA
14222020-07-10 Pedro Alves <pedro@palves.net>
1423
1424 * gdbthread.h (inferior_ref): Define.
1425 (scoped_restore_current_thread) <m_thread>: Now a thread_info_ref.
1426 (scoped_restore_current_thread) <m_inf>: Now an inferior_ref.
1427 * thread.c
1428 (scoped_restore_current_thread::restore):
1429 Adjust to gdb::ref_ptr.
1430 (scoped_restore_current_thread::~scoped_restore_current_thread):
1431 Remove manual decref handling.
1432 (scoped_restore_current_thread::scoped_restore_current_thread):
1433 Adjust to use
1434 inferior_ref::new_reference/thread_info_ref::new_reference.
1435 Incref the thread before calling get_frame_id instead of after.
1436 Let TARGET_CLOSE_ERROR propagate.
1437
6d7aa592
PA
14382020-07-10 Pedro Alves <pedro@palves.net>
1439
1440 * frame-tailcall.c (dwarf2_tailcall_sniffer_first): Only swallow
1441 NO_ENTRY_VALUE_ERROR / MEMORY_ERROR / OPTIMIZED_OUT_ERROR /
1442 NOT_AVAILABLE_ERROR.
1443 * value.c (value_optimized_out): Only swallow MEMORY_ERROR /
1444 OPTIMIZED_OUT_ERROR / NOT_AVAILABLE_ERROR.
1445
b3e3a4c1
SM
14462020-07-10 Simon Marchi <simon.marchi@polymtl.ca>
1447 Pedro Alves <pedro@palves.net>
1448
1449 PR gdb/26199
1450 * infrun.c (threads_are_resumed_pending_p): Delete.
1451 (do_target_wait): Remove threads_are_executing and
1452 threads_are_resumed_pending_p checks from the inferior_matches
1453 lambda. Update comments.
1454
d6cc5d98
PA
14552020-07-10 Pedro Alves <pedro@palves.net>
1456
1457 PR gdb/26199
1458 * infrun.c (handle_no_resumed): Transfer terminal to inferior with
1459 executing threads.
1460
7d3badc6
PA
14612020-07-10 Pedro Alves <pedro@palves.net>
1462
1463 PR gdb/26199
1464 * infrun.c (handle_no_resumed): Handle multiple targets.
1465
42bd97a6
PA
14662020-07-10 Pedro Alves <pedro@palves.net>
1467
1468 PR gdb/26199
1469 * infrun.c (prepare_to_wait): Check target_can_async_p instead of
1470 target_is_async_p.
1471
43667cc6
PA
14722020-07-10 Pedro Alves <pedro@palves.net>
1473
1474 PR gdb/26199
1475 * target.c (target_pass_ctrlc): Look at the inferior's non-exited
1476 threads, not all threads.
1477
96118d11
PA
14782020-07-10 Pedro Alves <pedro@palves.net>
1479
1480 PR gdb/26199
1481 * remote.c (remote_target::open_1): Pass remote target pointer as
1482 data to create_async_event_handler.
1483 (remote_async_inferior_event_handler): Mark async event handler
1484 before returning if the remote target still has either pending
1485 events or unacknowledged notifications.
1486
54904d81
JB
14872020-07-10 John Baldwin <jhb@FreeBSD.org>
1488
1489 * fbsd-nat.h (fbsd_nat_target::supports_multi_process): New
1490 declaration.
1491 * fbsd-nat.c (fbsd_nat_target::supports_multi_process): New
1492 function.
1493
f37e5866
JB
14942020-07-09 John Baldwin <jhb@FreeBSD.org>
1495
1496 * inf-ptrace.c (inf_ptrace_target::wait): Don't compare against
1497 inferior_ptid.
1498
fc238d4a
JB
14992020-07-09 John Baldwin <jhb@FreeBSD.org>
1500
1501 * fbsd-tdep.c (fbsd_print_auxv_entry): Handle AT_FREEBSD_ARGC,
1502 AT_FREEBSD_ARGV, AT_FREEBSD_ENVC, AT_FREEBSD_ENVV,
1503 AT_FREEBSD_PS_STRINGS.
1504
6e2469ff
HD
15052020-07-08 Hannes Domani <ssbssa@yahoo.de>
1506
1507 * auto-load.c (auto_load_objfile_script_1): Convert drive part
1508 of debugfile path on Windows.
1509
d1076c41
JB
15102020-07-08 John Baldwin <jhb@FreeBSD.org>
1511
1512 * fbsd-nat.c (fbsd_nat_target::find_memory_regions): Rename 'obfd'
1513 argument to 'data'.
1514
15f3b077
TT
15152020-07-08 Tom Tromey <tromey@adacore.com>
1516
1517 * ada-lang.c (ada_exception_message_1): Use read_memory.
1518
9fc501fd
AB
15192020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
1520
1521 PR python/22748
1522 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first): Remove
1523 special handling for inline frames.
1524 * findvar.c (value_of_register_lazy): Skip inline frames when
1525 creating lazy register values.
1526 * frame.c (frame_id_computed_p): Delete definition.
1527 * frame.h (frame_id_computed_p): Delete declaration.
1528
64cb3757
AB
15292020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
1530
1531 * NEWS: Mention additions to Python API.
1532 * python/py-arch.c (archpy_register_groups): New function.
1533 (arch_object_methods): Add 'register_groups' method.
1534 * python/py-registers.c (reggroup_iterator_object): New struct.
1535 (reggroup_object): New struct.
1536 (gdbpy_new_reggroup): New function.
1537 (gdbpy_reggroup_to_string): New function.
1538 (gdbpy_reggroup_name): New function.
1539 (gdbpy_reggroup_iter): New function.
1540 (gdbpy_reggroup_iter_next): New function.
1541 (gdbpy_new_reggroup_iterator): New function
1542 (gdbpy_initialize_registers): Register new types.
1543 (reggroup_iterator_object_type): Define new Python type.
1544 (gdbpy_reggroup_getset): New static global.
1545 (reggroup_object_type): Define new Python type.
1546 * python/python-internal.h
1547
0f767f94
AB
15482020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
1549
1550 * Makefile.in (SUBDIR_PYTHON_SRCS): Add py-registers.c
1551 * python/py-arch.c (archpy_registers): New function.
1552 (arch_object_methods): Add 'registers' method.
1553 * python/py-registers.c: New file.
1554 * python/python-internal.h
1555 (gdbpy_new_register_descriptor_iterator): Declare.
1556 (gdbpy_initialize_registers): Declare.
1557 * python/python.c (do_start_initialization): Call
1558 gdbpy_initialize_registers.
1559 * NEWS: Mention additions to the Python API.
1560
87dbc774
AB
15612020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
1562
1563 * NEWS: Mention new Python API method.
1564 * python/py-unwind.c (pending_framepy_architecture): New function.
1565 (pending_frame_object_methods): Add architecture method.
1566
3bc98c0c
AB
15672020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
1568
1569 * gdbarch.c: Regenerate.
1570 * gdbarch.h: Regenerate.
1571 * gdbarch.sh (deprecated_set_gdbarch_data): Delete.
1572 (gdbarch_data): Use internal_error for the case where
1573 deprecated_set_gdbarch_data was originally needed.
1574 * ia64-libunwind-tdep.c (libunwind_descr_init): Update parameters,
1575 and use passed in obstack.
1576 (libunwind_frame_set_descr): Should no longer get back NULL from
1577 gdbarch_data.
1578 (_initialize_libunwind_frame): Register as a pre-init gdbarch data
1579 type.
1580 * user-regs.c (user_regs_init): Update parameters, and use passed
1581 in obstack.
1582 (user_reg_add): Should no longer get back NULL from gdbarch_data.
1583 (_initialize_user_regs): Register as a pre-init gdbarch data type.
1584
d8cc8af6
TV
15852020-07-06 Tom de Vries <tdevries@suse.de>
1586
1587 * buildsym.c (buildsym_compunit::end_symtab_with_blockvector): Handle
1588 End-Of-Sequence in lte_is_less_than.
1589 * symtab.c (find_pc_sect_line): Revert change from commit 3d92a3e313
1590 "gdb: Don't reorder line table entries too much when sorting".
1591
947f7597
TV
15922020-07-06 Tom de Vries <tdevries@suse.de>
1593
1594 PR tui/26205
1595 * tui/tui-win.c (tui_partial_win_by_name): Don't test for NULL name.
1596
1e7c1b22
TV
15972020-07-05 Tom de Vries <tdevries@suse.de>
1598
1599 PR build/26187
1600 * inferior.h (struct infcall_suspend_state_deleter): If available, use
1601 std::uncaught_exceptions instead of deprecated
1602 std::uncaught_exception.
1603
a36158ec
SM
16042020-07-02 Simon Marchi <simon.marchi@polymtl.ca>
1605
1606 * macroexp.h (macro_stringify): Return
1607 gdb::unique_xmalloc_ptr<char>.
1608 * macroexp.c (macro_stringify): Likewise.
1609 * macrotab.c (fixup_definition): Update.
1610
14d960c8
SM
16112020-07-02 Simon Marchi <simon.marchi@polymtl.ca>
1612
1613 * c-exp.y (scan_macro_expansion): Don't free `expansion`.
1614 (lex_one_token): Update.
1615 * macroexp.c (struct macro_buffer) <release>: Return
1616 gdb::unique_xmalloc_ptr<char>.
1617 (macro_stringify): Update.
1618 (macro_expand): Update.
1619 (macro_expand_next): Return gdb::unique_xmalloc_ptr<char>.
1620 * macroexp.h (macro_expand_next): Likewise.
1621
211d5b1c
SM
16222020-07-02 Simon Marchi <simon.marchi@efficios.com>
1623
1624 * macroexp.h (macro_lookup_ftype): Remove.
1625 (macro_expand, macro_expand_once, macro_expand_next): Remove
1626 lookup function parameters, add scope parameter.
1627 * macroexp.c (scan, substitute_args, expand, maybe_expand,
1628 macro_expand, macro_expand_once, macro_expand_next): Likewise.
1629 * macroscope.h (standard_macro_lookup): Change parameter type
1630 to macro_scope.
1631 * macroscope.c (standard_macro_lookup): Likewise.
1632 * c-exp.y (lex_one_token): Update.
1633 * macrocmd.c (macro_expand_command): Likewise.
1634 (macro_expand_once_command): Likewise.
1635
b1a35af2
SM
16362020-07-02 Simon Marchi <simon.marchi@polymtl.ca>
1637
1638 * inf-loop.c (inferior_event_handler): Remove client_data param.
1639 * inf-loop.h (inferior_event_handler): Likewise.
1640 * infcmd.c (step_1): Adjust.
1641 * infrun.c (proceed): Adjust.
1642 (fetch_inferior_event): Remove client_data param.
1643 (infrun_async_inferior_event_handler): Adjust.
1644 * infrun.h (fetch_inferior_event): Remove `void *` param.
1645 * linux-nat.c (handle_target_event): Adjust.
1646 * record-btrace.c (record_btrace_handle_async_inferior_event):
1647 Adjust.
1648 * record-full.c (record_full_async_inferior_event_handler):
1649 Adjust.
1650 * remote.c (remote_async_inferior_event_handler): Adjust.
1651
1cdf9e33
TT
16522020-07-01 Tom Tromey <tom@tromey.com>
1653
1654 * tui/tui-data.h (struct tui_win_info) <name>: Now pure virtual.
1655 * tui/tui-stack.h (struct tui_locator_window) <name>: New method.
1656
32c1e210
TT
16572020-07-01 Tom Tromey <tom@tromey.com>
1658
1659 * tui/tui-wingeneral.c (tui_win_info::refresh_window): Move from
1660 tui_gen_win_info.
1661 (tui_win_info::make_window): Merge with
1662 tui_gen_win_info::make_window.
1663 (tui_win_info::make_visible): Move from tui_gen_win_info.
1664 * tui/tui-win.c (tui_win_info::max_width): Move from
1665 tui_gen_win_info.
1666 * tui/tui-layout.h (class tui_layout_window) <m_window>: Change
1667 type.
1668 <window_factory>: Likewise.
1669 * tui/tui-layout.c (tui_win_info::resize): Move from
1670 tui_gen_win_info.
1671 (make_standard_window): Change return type.
1672 (get_locator_window, tui_get_window_by_name): Likewise.
1673 (tui_layout_window::apply): Remove a cast.
1674 * tui/tui-data.h (MIN_WIN_HEIGHT): Move earlier.
1675 (struct tui_win_info): Merge with tui_gen_win_info.
1676 (struct tui_gen_win_info): Remove.
1677
a30cb6da
TT
16782020-07-01 Tom Tromey <tom@tromey.com>
1679
1680 * tui/tui-stack.h (struct tui_locator_window): Derive from
1681 tui_win_info.
1682 <do_scroll_horizontal, do_scroll_vertical>: New methods.
1683 <can_box>: New method.
1684
1eb2161f
TT
16852020-07-01 Tom Tromey <tom@tromey.com>
1686
1687 * tui/tui-stack.h (struct tui_locator_window): Remove body.
1688
7134f2eb
TT
16892020-07-01 Tom Tromey <tom@tromey.com>
1690
1691 * tui/tui-regs.c (tui_data_window::display_registers_from)
1692 (tui_data_window::display_registers_from)
1693 (tui_data_window::first_data_item_displayed)
1694 (tui_data_window::delete_data_content_windows): Update.
1695 (tui_data_window::refresh_window, tui_data_window::no_refresh):
1696 Remove.
1697 (tui_data_window::check_register_values): Update.
1698 (tui_data_item_window::rerender): Add parameters. Update.
1699 (tui_data_item_window::refresh_window): Remove.
1700 * tui/tui-data.h (struct tui_gen_win_info) <no_refresh>: No longer
1701 virtual.
1702 * tui/tui-regs.h (struct tui_data_item_window): Don't derive from
1703 tui_gen_win_info.
1704 <refresh_window, max_height, min_height>: Remove.
1705 <rerender>: Add parameters.
1706 <x, y, visible>: New members.
1707 (struct tui_data_window) <refresh_window, no_refresh>: Remove.
1708 <m_item_width>: New member.
1709
22b7b041
TT
17102020-07-01 Tom Tromey <tom@tromey.com>
1711
1712 * tui/tui-regs.c (tui_data_window::show_register_group)
1713 (tui_data_window::check_register_values): Update.
1714 * tui/tui-regs.h (struct tui_data_item_window) <regno>: Rename
1715 from item_no.
1716
c9753adb
TT
17172020-07-01 Tom Tromey <tom@tromey.com>
1718
1719 * tui/tui-regs.c (tui_data_window::show_register_group): Remove
1720 useless "if".
1721
9ab26b4a
TT
17222020-07-01 Tom Tromey <tom@tromey.com>
1723
1724 * tui/tui-regs.c (tui_data_window::show_register_group): Update.
1725 * tui/tui-regs.h (struct tui_data_item_window) <name>: Remove.
1726
e555083f
TT
17272020-07-01 Tom Tromey <tom@tromey.com>
1728
1729 * tui/tui-stack.c (SINGLE_KEY): Move from tui-data.h
1730 * tui/tui-winsource.h (enum tui_line_or_address_kind)
1731 (struct tui_line_or_address): Move from tui-data.h.
1732 * tui/tui-win.c (DEFAULT_TAB_LEN): Move from tui-data.h.
1733 * tui/tui-data.h (DEFAULT_TAB_LEN): Move to tui-win.c.
1734 (tui_cmd_window, tui_source_window_base, tui_source_window)
1735 (tui_disasm_window): Don't declare.
1736 (enum tui_line_or_address_kind, struct tui_line_or_address): Move
1737 to tui-winsource.h.
1738 (SINGLE_KEY): Move to tui-stack.c.
1739
7a02bab7
TT
17402020-07-01 Tom Tromey <tom@tromey.com>
1741
1742 * tui/tui-regs.h (struct tui_data_item_window) <content>: Now a
1743 std::string.
1744 * tui/tui-regs.c (class tab_expansion_file): New.
1745 (tab_expansion_file::write): New method.
1746 (tui_register_format): Change return type. Use
1747 tab_expansion_file.
1748 (tui_get_register, tui_data_window::display_registers_from)
1749 (tui_data_item_window::rerender): Update.
1750 * tui/tui-io.h (tui_expand_tabs): Don't declare.
1751 * tui/tui-io.c (tui_expand_tabs): Remove.
1752
ea68593b
TT
17532020-07-01 Tom Tromey <tom@tromey.com>
1754
1755 * tui/tui-regs.c (tui_reggroup_completer): Use complete_on_enum.
1756
a8caed5d
FS
17572020-07-01 Fangrui Song <maskray@google.com>
1758
1759 * dwarf2/read.c (lnp_state_machine::check_line_address): Test -1.
1760
9cdf9820
AKS
17612020-07-01 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
1762
1763 * dwarf2/read.c (set_die_type): Removed conditions to restrict
1764 forms for DW_AT_associated and DW_AT_allocated attributes,
1765 which is already checked in function attr_to_dynamic_prop.
1766
a1520ad8
TT
17672020-06-30 Tom Tromey <tromey@adacore.com>
1768
1769 * dwarf2/read.c (quirk_rust_enum): Correctly call
1770 alloc_rust_variant for default-less enum.
1771
5ac58899
TT
17722020-06-30 Tom Tromey <tromey@adacore.com>
1773
1774 PR build/26183:
1775 * ada-lang.c (ada_lookup_name_info::ada_lookup_name_info): Use
1776 gdb::to_string.
1777
19b187a9
SM
17782020-06-29 Simon Marchi <simon.marchi@efficios.com>
1779
1780 * gdbarch.sh (displaced_step_copy_insn): Update doc.
1781 * gdbarch.h: Re-generate.
1782
cd4c4c07
TT
17832020-06-28 Tom Tromey <tom@tromey.com>
1784
1785 * command.h (cmd_types): Remove.
1786 (cmd_type): Don't declare.
1787 * cli/cli-decode.h (enum cmd_types): Uncomment. No longer a
1788 typedef.
1789 * cli/cli-cmds.c (setting_cmd): Use cmd->type directly.
1790 * cli/cli-decode.c (cmd_type): Remove.
1791
05779d57
PA
17922020-06-27 Pedro Alves <palves@redhat.com>
1793
1794 * fork-child.c (prefork_hook): Adjust.
1795 * infcmd.c (set_inferior_io_terminal, get_inferior_io_terminal):
1796 Delete.
1797 (set_inferior_tty_command, show_inferior_tty_command): Adjust.
1798 * inferior.c (inferior::set_tty, inferior::tty): New methods.
1799 * inferior.h (set_inferior_io_terminal, get_inferior_io_terminal):
1800 Remove declarations.
1801 (struct inferior) <set_tty, tty>: New methods.
1802 (struct inferior) <terminal>: Rename to ...
1803 (struct inferior) <m_terminal>: ... this and make private.
1804 * main.c (captured_main_1): Adjust.
1805 * mi/mi-cmd-env.c (mi_cmd_inferior_tty_set): Adjust.
1806 (mi_cmd_inferior_tty_show): Adjust.
1807 * nto-procfs.c (nto_procfs_target::create_inferior): Adjust.
1808 * windows-nat.c (windows_nat_target::create_inferior): Adjust.
1809
1776e3e5
NA
18102020-06-26 Nick Alcock <nick.alcock@oracle.com>
1811
1812 * configure.ac: Add --enable-libctf: handle --disable-static
1813 properly.
1814 * acinclude.m4: sinclude ../config/enable.m4.
1815 * Makefile.in (aclocal_m4_deps): Adjust accordingly.
1816 (LIBCTF): Substitute in.
1817 (CTF_DEPS): New, likewise.
1818 (CLIBS): libctf needs symbols from libbfd: move earlier.
1819 (CDEPS): Use CTF_DEPS, not LIBCTF, now LIBCTF can include rpath
1820 flags.
1821 * ctfread.c: Surround in ENABLE_LIBCTF.
1822 (elfctf_build_psymtabs) [!ENABLE_LIBCTF]: New stub.
1823 * configure: Regenerate.
1824 * config.in: Likewise.
1825
58373b80
SM
18262020-06-25 Simon Marchi <simon.marchi@efficios.com>
1827
1828 * infcmd.c (set_inferior_io_terminal): Use make_unique_xstrdup.
1829
277474ee
SM
18302020-06-25 Simon Marchi <simon.marchi@efficios.com>
1831
1832 * inferior.h (struct inferior) <terminal>: Change type to
1833 gdb::unique_xmalloc_ptr<char>.
1834 * inferior.c (inferior::~inferior): Don't free inf->terminal.
1835 * infcmd.c (set_inferior_io_terminal): Don't free terminal
1836 field, adjust to unique pointer.
1837 (get_inferior_io_terminal): Adjust to unique pointer.
1838
6d74da72
AB
18392020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
1840
1841 * riscv-tdep.c (riscv_print_registers_info): Loop over all
1842 registers, not just the known core set of registers.
1843
2e52d038
AB
18442020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
1845
1846 * riscv-tdep.c (riscv_register_name): Return NULL for duplicate
1847 fflags, frm, and fcsr registers.
1848 (riscv_register_reggroup_p): Remove unknown CSRs from save and
1849 restore groups.
1850 (riscv_tdesc_unknown_reg): New function.
1851 (riscv_gdbarch_init): Pass riscv_tdesc_unknown_reg to
1852 tdesc_use_registers.
1853 * riscv-tdep.h (struct gdbarch_tdep): Add
1854 unknown_csrs_first_regnum, unknown_csrs_count,
1855 duplicate_fflags_regnum, duplicate_frm_regnum, and
1856 duplicate_fcsr_regnum fields.
1857
be64fd07
AB
18582020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
1859
1860 * target-descriptions.c (tdesc_use_registers): Add new parameter a
1861 callback, use the callback (when not null) to help number unknown
1862 registers.
1863 * target-descriptions.h (tdesc_unknown_register_ftype): New typedef.
1864 (tdesc_use_registers): Add extra parameter to declaration.
1865
3b9fce96
AB
18662020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
1867
1868 * riscv-tdep.c (value_of_riscv_user_reg): Moved to here from later
1869 in the file.
1870 (class riscv_pending_register_alias): Likewise.
1871 (riscv_register_feature::register_info): Change 'required_p' field
1872 to 'required', and change its type. Add 'check' member function.
1873 (riscv_register_feature::register_info::check): Define new member
1874 function.
1875 (riscv_xreg_feature): Change initialisation of 'required' field.
1876 (riscv_freg_feature): Likewise.
1877 (riscv_virtual_feature): Likewise.
1878 (riscv_csr_feature): Likewise.
1879 (riscv_check_tdesc_feature): Take extra parameter, the csr
1880 tdesc_feature, rewrite the function to use the new
1881 riscv_register_feature::register_info::check function.
1882 (riscv_gdbarch_init): Pass the csr tdesc_feature where needed.
1883
865bad26
AB
18842020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
1885
1886 * features/Makefile: Remove all references to the deleted files
1887 below.
1888 * features/riscv/32bit-csr.c: Deleted.
1889 * features/riscv/32bit-csr.xml: Deleted.
1890 * features/riscv/64bit-csr.c: Deleted.
1891 * features/riscv/64bit-csr.xml: Deleted.
1892 * features/riscv/rebuild-csr-xml.sh: Deleted.
1893
ed69cbc8
AB
18942020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
1895
1896 * riscv-tdep.c (struct riscv_register_feature::register_info): Fix
1897 whitespace error for declaration of names member variable.
1898 (struct riscv_register_feature): Add new prefer_first_name member
1899 variable, and fix whitespace error in declaration of registers.
1900 (riscv_xreg_feature): Initialize prefer_first_name field.
1901 (riscv_freg_feature): Likewise.
1902 (riscv_virtual_feature): Likewise.
1903 (riscv_csr_feature): Likewise.
1904 (riscv_register_name): Expand on comments. Remove register name
1905 modifications for CSR and virtual registers.
1906
4445e8f5
AB
19072020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
1908
1909 * riscv-tdep.c (struct riscv_register_feature): Fix whitespace
1910 errors.
1911
767a879e
AB
19122020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
1913
1914 * riscv-tdep.c (riscv_create_csr_aliases): Handle csr aliases from
1915 riscv-opc.h.
1916 (class riscv_pending_register_alias): New class.
1917 (riscv_check_tdesc_feature): Take vector of pending aliases and
1918 populate it as appropriate.
1919 (riscv_setup_register_aliases): Delete.
1920 (riscv_gdbarch_init): Create vector of pending aliases and pass it
1921 to riscv_check_tdesc_feature in all cases. Use the vector to
1922 create the register aliases.
1923
bb6e55f3
RO
19242020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1925
1926 * sol2-tdep.c (sol2_static_transform_name): Remove.
1927 (sol2_init_abi): Don't register it.
1928 * gdbarch.sh (static_transform_name): Remove.
1929 * gdbarch.c, gdbarch.h: Regenerate.
1930
1931 * dbxread.c (read_dbx_symtab) <'S'>: Remove call to
1932 gdbarch_static_transform_name.
1933 * mdebugread.c (parse_partial_symbols) <'S'>: Likewise.
1934 * stabsread.c (define_symbol) <'X'>: Remove.
1935 (define_symbol) <'S'>: Remove gdbarch_static_transform_name
1936 handling.
1937 <'V'>: Likewise.
1938 * xcoffread.c (scan_xcoff_symtab): Remove gdbarch.
1939 <'S'>: Remove call to gdbarch_static_transform_name.
1940
c6d36836
RO
19412020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1942
1943 * procfs.c (procfs_pre_trace): New function.
1944 (procfs_target::create_inferior): Pass it to fork_inferior.
1945
a7e6196b
RO
19462020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1947
1948 * configure.tgt <sparc-*-linux*> (gdb_target_obs): Remove
1949 sparc-sol2-tdep.o, sol2-tdep.o, sparc64-sol2-tdep.o.
1950 <sparc64-*-linux*> (gdb_target_obs): Remove sparc64-sol2-tdep.o,
1951 sol2-tdep.o, sparc-sol2-tdep.o.
1952 * sparc-sol2-tdep.c (sparc32_sol2_init_abi): Make static.
1953 * sparc-tdep.h (sparc32_sol2_init_abi): Remove.
1954 * sparc64-sol2-tdep.c (sparc64_sol2_init_abi): Make static.
1955 * sparc64-tdep.h (sparc64_sol2_init_abi): Remove.
1956
d412e696
RO
19572020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1958
1959 * amd64-sol2-tdep.c (amd64_sol2_sigtramp_p): Remove.
1960 (amd64_sol2_init_abi): Use sol2_sigtramp_p.
1961 Call sol2_init_abi.
1962 Remove calls to set_gdbarch_skip_solib_resolver,
1963 set_gdbarch_core_pid_to_str.
1964 * i386-sol2-tdep.c (i386_sol2_sigtramp_p): Remove.
1965 (i386_sol2_static_transform_name): Remove.
1966 (i386_sol2_init_abi): Call sol2_init_abi.
1967 Remove calls to set_gdbarch_sofun_address_maybe_missing,
1968 set_gdbarch_static_transform_name,
1969 set_gdbarch_skip_solib_resolver, set_gdbarch_core_pid_to_str.
1970 Use sol2_sigtramp_p.
1971 * sol2-tdep.c (sol2_pc_in_sigtramp): New function.
1972 (sol2_sigtramp_p): New function.
1973 (sol2_static_transform_name): New function.
1974 (sol2_skip_solib_resolver, sol2_core_pid_to_str): Make static.
1975 (sol2_init_abi): New function.
1976 * sol2-tdep.h (sol2_sigtramp_p, sol2_init_abi): Declare.
1977 (sol2_skip_solib_resolver, sol2_core_pid_to_str): Remove.
1978 * sparc-sol2-tdep.c (sparc_sol2_pc_in_sigtramp): Remove.
1979 (sparc32_sol2_sigtramp_frame_sniffer): Just call sol2_sigtramp_p.
1980 (sparc_sol2_static_transform_name): Remove.
1981 (sparc32_sol2_init_abi): Call sol2_init_abi.
1982 Remove calls to set_gdbarch_sofun_address_maybe_missing,
1983 set_gdbarch_static_transform_name,
1984 set_gdbarch_skip_solib_resolver,
1985 set_gdbarch_core_pid_to_str.
1986 * sparc-tdep.h (sparc_sol2_pc_in_sigtramp)
1987 (sparc_sol2_static_transform_name): Remove
1988 * sparc64-sol2-tdep.c (sparc64_sol2_sigtramp_frame_sniffer): Just
1989 call sol2_sigtramp_p.
1990 (sparc64_sol2_init_abi): Call sol2_init_abi.
1991 Remove calls to set_gdbarch_sofun_address_maybe_missing,
1992 set_gdbarch_static_transform_name,
1993 set_gdbarch_skip_solib_resolver, set_gdbarch_core_pid_to_str.
1994
a8654e7d
PW
19952020-06-24 Philippe Waroquiers <philippe.waroquiers@skynet.be>
1996
1997 * symfile-add-flags.h: New flag SYMFILE_ALWAYS_CONFIRM.
1998 * exec.c (validate_exec_file): If from_tty, set both
1999 SYMFILE_VERBOSE (== from_tty) and SYMFILE_ALWAYS_CONFIRM.
2000 * symfile.c (symbol_file_add_with_addrs): if always_confirm
2001 and from_tty, unconditionally ask a confirmation.
2002
caa7fd04
AB
20032020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
2004
2005 * target-descriptions.c (tdesc_architecture_name): Protect against
2006 NULL pointer dereference.
2007 (maint_print_xml_tdesc_cmd): New function.
2008 (_initialize_target_descriptions): Register new 'maint print
2009 xml-tdesc' command and give it the filename completer.
2010 * NEWS: Mention new 'maint print xml-tdesc' command.
2011
fbf42f4e
AB
20122020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
2013
2014 * target-descriptions.c (class tdesc_compatible_info): New class.
2015 (struct target_desc): Change type of compatible vector.
2016 (tdesc_compatible_p): Update for change in type of
2017 target_desc::compatible.
2018 (tdesc_compatible_info_list): New function.
2019 (tdesc_compatible_info_arch_name): New function.
2020 (tdesc_add_compatible): Update for change in type of
2021 target_desc::compatible.
2022 (print_c_tdesc::visit_pre): Likewise.
2023
20821f4e
AB
20242020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
2025
2026 * target-descriptions.c (print_c_tdesc::print_c_tdesc): Change
2027 whitespace to underscore.
2028 (maint_print_c_tdesc_cmd): Use fake filename for target
2029 descriptions that came from the target.
2030 (_initialize_target_descriptions): Add filename command completion
2031 for 'maint print c-tdesc'.
2032
1fb5ee62
SM
20332020-06-23 Simon Marchi <simon.marchi@efficios.com>
2034
2035 * dwarf2/loc.c (decode_debug_loclists_addresses): Add empty
2036 lines.
2037
fc3ecb3e
SM
20382020-06-23 Simon Marchi <simon.marchi@efficios.com>
2039
2040 * dwarf2/loc.c (decode_debug_loc_dwo_addresses): Add empty
2041 lines.
2042 (dwarf2_find_location_expression): Likewise.
2043 (call_site_parameter_matches): Likewise.
2044 (dwarf2_compile_expr_to_ax): Likewise.
2045 (disassemble_dwarf_expression): Likewise.
2046 (loclist_describe_location): Likewise.
2047
236ef034
PA
20482020-06-23 Pedro Alves <palves@redhat.com>
2049
2050 * gdbarch-selftests.c: Don't include inferior.h, gdbthread.h or
2051 progspace-and-thread.h. Include scoped-mock-context.h instead.
2052 (register_to_value_test): Use scoped_mock_context.
2053 * regcache.c: Include "scoped-mock-context.h".
2054 (cooked_read_test): Don't error out if a target is already pushed.
2055 Use scoped_mock_context. Adjust.
2056 * scoped-mock-context.h: New file.
2057
39e7ecca
AB
20582020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
2059
2060 * ada-lang.c (ada_language_data): Delete la_is_string_type_p
2061 initializer.
2062 (ada_language::is_string_type_p): New member function.
2063 * c-lang.c (c_language_data): Delete la_is_string_type_p
2064 initializer.
2065 (cplus_language_data): Likewise.
2066 (asm_language_data): Likewise.
2067 (minimal_language_data): Likewise.
2068 * d-lang.c (d_language_data): Likewise.
2069 * f-lang.c (f_is_string_type_p): Delete function, implementation
2070 moved to f_language::is_string_type_p.
2071 (f_language_data): Delete la_is_string_type_p initializer.
2072 (f_language::is_string_type_p): New member function,
2073 implementation from f_is_string_type_p.
2074 * go-lang.c (go_is_string_type_p): Delete function, implementation
2075 moved to go_language::is_string_type_p.
2076 (go_language_data): Delete la_is_string_type_p initializer.
2077 (go_language::is_string_type_p): New member function,
2078 implementation from go_is_string_type_p.
2079 * language.c (language_defn::is_string_type_p): Define new member
2080 function.
2081 (default_is_string_type_p): Make static, add comment copied from
2082 header file.
2083 (unknown_language_data): Delete la_is_string_type_p initializer.
2084 (unknown_language::is_string_type_p): New member function.
2085 (auto_language_data): Delete la_is_string_type_p initializer.
2086 (auto_language::is_string_type_p): New member function.
2087 * language.h (language_data): Delete la_is_string_type_p field.
2088 (language_defn::is_string_type_p): Declare new function.
2089 (default_is_string_type_p): Delete desclaration, move comment to
2090 definition.
2091 * m2-lang.c (m2_is_string_type_p): Delete function, implementation
2092 moved to m2_language::is_string_type_p.
2093 (m2_language_data): Delete la_is_string_type_p initializer.
2094 (m2_language::is_string_type_p): New member function,
2095 implementation from m2_is_string_type_p.
2096 * objc-lang.c (objc_language_data): Delete la_is_string_type_p
2097 initializer.
2098 * opencl-lang.c (opencl_language_data): Likewise.
2099 * p-lang.c (pascal_is_string_type_p): Delete function,
2100 implementation moved to pascal_language::is_string_type_p.
2101 (pascal_language_data): Delete la_is_string_type_p initializer.
2102 (pascal_language::is_string_type_p): New member function,
2103 implementation from pascal_is_string_type_p.
2104 * rust-lang.c (rust_is_string_type_p): Delete function,
2105 implementation moved to rust_language::is_string_type_p.
2106 (rust_language_data): Delete la_is_string_type_p initializer.
2107 (rust_language::is_string_type_p): New member function,
2108 implementation from rust_is_string_type_p.
2109 * valprint.c (val_print_scalar_or_string_type_p): Update call to
2110 is_string_type_p.
2111
4ffc13fb
AB
21122020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
2113
2114 * ada-lang.c (ada_language_data): Delete la_print_typedef
2115 initializer.
2116 (ada_language::print_typedef): New member function.
2117 * c-lang.c (c_language_data): Delete la_print_typedef initializer.
2118 (cplus_language_data): Likewise.
2119 (asm_language_data): Likewise.
2120 (minimal_language_data): Likewise.
2121 * d-lang.c (d_language_data): Likewise.
2122 * f-lang.c (f_language_data): Likewise.
2123 (f_language::print_typedef): New member function.
2124 * go-lang.c (go_language_data): Delete la_print_typedef
2125 initializer.
2126 * language.c (language_defn::print_typedef): Define member
2127 function.
2128 (unknown_language_data): Delete la_print_typedef initializer.
2129 (unknown_language::print_typedef): New member function.
2130 (auto_language_data): Delete la_print_typedef initializer.
2131 (auto_language::print_typedef): New member function.
2132 * language.h (language_data): Delete la_print_typedef field.
2133 (language_defn::print_typedef): Declare new member function.
2134 (LA_PRINT_TYPEDEF): Update call to print_typedef.
2135 (default_print_typedef): Delete declaration.
2136 * m2-lang.c (m2_language_data): Delete la_print_typedef
2137 initializer.
2138 (m2_language::print_typedef): New member function.
2139 * objc-lang.c (objc_language_data): Delete la_print_typedef
2140 initializer.
2141 * opencl-lang.c (opencl_language_data): Likewise.
2142 * p-lang.c (pascal_language_data): Likewise.
2143 (pascal_language::print_typedef): New member function.
2144 * rust-lang.c (rust_print_typedef): Delete function,
2145 implementation moved to rust_language::print_typedef.
2146 (rust_language): Delete la_print_typedef initializer.
2147 (rust_language::print_typedef): New member function,
2148 implementation from rust_print_typedef.
2149 * typeprint.c (default_print_typedef): Delete.
2150
d711ee67
AB
21512020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
2152
2153 * ada-lang.c (ada_language_data): Delete la_printstr initializer.
2154 (ada_language::printstr): New member function.
2155 * c-lang.c (c_language_data): Delete la_printstr initializer.
2156 (cplus_language_data): Likewise.
2157 (asm_language_data): Likewise.
2158 (minimal_language_data): Likewise.
2159 * d-lang.c (d_language_data): Likewise.
2160 * f-lang.c (f_printstr): Rename to f_language::printstr.
2161 (f_language_data): Delete la_printstr initializer.
2162 (f_language::printstr): New member function, implementation from
2163 f_printstr.
2164 * go-lang.c (go_language_data): Delete la_printstr initializer.
2165 * language.c (language_defn::printstr): Define new member
2166 function.
2167 (unk_lang_printstr): Delete.
2168 (unknown_language_data): Delete la_printstr initializer.
2169 (unknown_language::printstr): New member function.
2170 (auto_language_data): Delete la_printstr initializer.
2171 (auto_language::printstr): New member function.
2172 * language.h (language_data): Delete la_printstr field.
2173 (language_defn::printstr): Declare new member function.
2174 (LA_PRINT_STRING): Update call to printstr.
2175 * m2-lang.c (m2_printstr): Rename to m2_language::printstr.
2176 (m2_language_data): Delete la_printstr initializer.
2177 (m2_language::printstr): New member function, implementation from
2178 m2_printstr.
2179 * objc-lang.c (objc_language_data): Delete la_printstr
2180 initializer.
2181 * opencl-lang.c (opencl_language_data): Likewise.
2182 * p-lang.c (pascal_printstr): Rename to pascal_language::printstr.
2183 (pascal_language_data): Delete la_printstr initializer.
2184 (pascal_language::printstr): New member function, implementation
2185 from pascal_printstr.
2186 * p-lang.h (pascal_printstr): Delete declaration.
2187 * rust-lang.c (rust_printstr): Update header comment.
2188 (rust_language_data): Delete la_printstr initializer.
2189 (rust_language::printstr): New member function.
2190
52b50f2c
AB
21912020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
2192
2193 * ada-lang.c (ada_language_data): Delete la_printchar initializer.
2194 (ada_language::printchar): New member function.
2195 * c-lang.c (c_language_data): Delete la_printchar initializer.
2196 (cplus_language_data): Likewise.
2197 (asm_language_data): Likewise.
2198 (minimal_language_data): Likewise.
2199 * d-lang.c (d_language_data): Likewise.
2200 * f-lang.c (f_printchar): Rename to f_language::printchar.
2201 (f_language_data): Delete la_printchar initializer.
2202 (f_language::printchar): New member function, implementation from
2203 f_printchar.
2204 * go-lang.c (go_language_data): Delete la_printchar initializer.
2205 * language.c (unk_lang_printchar): Delete.
2206 (language_defn::printchar): Define new member function.
2207 (unknown_language_data): Delete la_printchar initializer.
2208 (unknown_language::printchar): New member function.
2209 (auto_language_data): Delete la_printchar initializer.
2210 (auto_language::printchar): New member function.
2211 * language.h (language_data): Delete la_printchar field.
2212 (language_defn::printchar): Declare new member function.
2213 (LA_PRINT_CHAR): Update call to printchar.
2214 * m2-lang.c (m2_language_data): Delete la_printchar initializer.
2215 (m2_language::printchar): New member function.
2216 * objc-lang.c (objc_language_data): Delete la_printchar
2217 initializer.
2218 * opencl-lang.c (opencl_language_data): Likewise.
2219 * p-lang.c (pascal_language_data): Delete la_printchar
2220 initializer.
2221 (pascal_language::printchar): New member function.
2222 * rust-lang.c (rust_printchar): Rename to
2223 rust_language::printchar.
2224 (rust_language_data): Delete la_printchar initializer.
2225 (rust_language::printchar): New member function, implementation
2226 from rust_printchar.
2227
ec8cec5b
AB
22282020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
2229
2230 * ada-lang.c (emit_char): Renamed to ada_language::emitchar.
2231 (ada_language_data): Delete la_emitchar initializer.
2232 (ada_language::emitchar): New member function, implementation from
2233 emit_char.
2234 * c-lang.c (c_language_data): Delete la_emitchar initializer.
2235 (cplus_language_data): Likewise.
2236 (asm_language_data): Likewise.
2237 (minimal_language_data): Likewise.
2238 * d-lang.c (d_language_data): Likewise.
2239 * f-lang.c (f_emit_char): Rename to f_language::emitchar.
2240 (f_language_data): Delete la_emitchar initializer.
2241 (f_language::emitchar): New member function, implementation from
2242 f_emit_char.
2243 * go-lang.c (go_language_data): Delete la_emitchar initializer.
2244 * language.c (unk_lang_emit_char): Delete.
2245 (language_defn::emitchar): New member function definition.
2246 (unknown_language_data): Delete la_emitchar initializer.
2247 (unknown_language::emitchar): New member function.
2248 (auto_language_data): Delete la_emitchar initializer.
2249 (auto_language::emitchar): New member function.
2250 * language.h (language_data): Delete la_emitchar field.
2251 (language_defn::emitchar): New member field declaration.
2252 (LA_EMIT_CHAR): Update call to emitchar.
2253 * m2-lang.c (m2_emit_char): Rename to m2_language::emitchar.
2254 (m2_language_data): Delete la_emitchar initializer.
2255 (m2_language::emitchar): New member function, implementation from
2256 m2_emit_char.
2257 * objc-lang.c (objc_language_data): Delete la_emitchar
2258 initializer.
2259 * opencl-lang.c (opencl_language_data): Likewise.
2260 * p-lang.c (pascal_emit_char): Rename to pascal_language::emitchar.
2261 (pascal_language_data): Delete la_emitchar initializer.
2262 (pascal_language::emitchar): New member function, implementation
2263 from pascal_emit_char.
2264 * rust-lang.c (rust_emitchar): Rename to rust_language::emitchar.
2265 (rust_language_data): Delete la_emitchar initializer.
2266 (rust_language::emitchar): New member function, implementation
2267 from rust_emitchar.
2268
1bf9c363
AB
22692020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
2270
2271 * ada-lang.c (resolve): Rename to ada_language::post_parser.
2272 (ada_language_data): Delete la_post_parser initializer.
2273 (ada_language::post_parser): New member function.
2274 * c-lang.c (c_language_data): Delete la_post_parser initializer.
2275 (cplus_language_data): Likewise.
2276 (asm_language_data): Likewise.
2277 (minimal_language_data): Likewise.
2278 * d-lang.c (d_language_data): Likewise.
2279 * f-lang.c (f_language_data): Likewise.
2280 * go-lang.c (go_language_data): Likewise.
2281 * language.c (unknown_language_data): Likewise.
2282 (auto_language_data): Likewise.
2283 * language.h (language_data): Delete la_post_parser field.
2284 (language_defn::post_parser): New member function.
2285 * m2-lang.c (m2_language_data): Delete la_post_parser initializer.
2286 * objc-lang.c (objc_language_data): Likewise.
2287 * opencl-lang.c (opencl_language_data): Likewise.
2288 * p-lang.c (pascal_language_data): Likewise.
2289 * parse.c (parse_exp_in_context): Update call to post_parser.
2290 (null_post_parser): Delete definition.
2291 * parser-defs.h (null_post_parser): Delete declaration.
2292 * rust-lang.c (rust_language_data): Delete la_post_parser
2293 initializer.
2294
87afa652
AB
22952020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
2296
2297 * ada-lang.c (parse): Rename to ada_language::parser.
2298 (ada_language_data): Delete la_parser initializer.
2299 (ada_language::parser): New member function, implementation from
2300 parse.
2301 * c-lang.c (c_language_data): Delete la_parser initializer.
2302 (cplus_language_data): Likewise.
2303 (asm_language_data): Likewise.
2304 (minimal_language_data): Likewise.
2305 * d-lang.c (d_language_data): Likewise.
2306 (d_language::parser): New member function.
2307 * f-lang.c (f_language_data): Delete la_parser initializer.
2308 (f_language::parser): New member function.
2309 * go-lang.c (go_language_data): Delete la_parser initializer.
2310 (go_language::parser): New member function.
2311 * language.c (unk_lang_parser): Delete.
2312 (language_defn::parser): Define new member function.
2313 (unknown_language_data): Delete la_parser initializer.
2314 (unknown_language::parser): New member function.
2315 (auto_language_data): Delete la_parser initializer.
2316 (auto_language::parser): New member function.
2317 * language.h (language_data): Delete la_parser field.
2318 (language_defn::parser): Declare new member function.
2319 * m2-lang.c (m2_language_data): Delete la_parser initializer.
2320 (m2_language::parser): New member function.
2321 * objc-lang.c (objc_language_data): Delete la_parser initializer.
2322 * opencl-lang.c (opencl_language_data): Likewise.
2323 * p-lang.c (pascal_language_data): Likewise.
2324 (pascal_language::parser): New member function.
2325 * parse.c (parse_exp_in_context): Update call to parser.
2326 * rust-lang.c (rust_language_data): Delete la_parser initializer.
2327 (rust_language::parser): New member function.
2328
37825800
AB
23292020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
2330
2331 * top.c (print_gdb_configuration): Print --with-python-libdir
2332 configuration value.
2333
5b860c93
PW
23342020-06-22 Philippe Waroquiers <philippe.waroquiers@skynet.be>
2335
2336 * NEWS: Mention change to the alias command.
2337
cf00cd6f
PW
23382020-06-22 Philippe Waroquiers <philippe.waroquiers@skynet.be>
2339
2340 * cli/cli-cmds.c (lookup_cmd_for_default_args)
2341 (alias_command_completer)
2342 (make_alias_options_def_group): New functions.
2343 (alias_opts, alias_option_defs): New struct and array.
2344 (alias_usage_error): Update usage.
2345 (alias_command): Handles optional DEFAULT-ARGS... arguments.
2346 Use option framework.
2347 (_initialize_cli_cmds): Update alias command help.
2348 Update aliases command help.
2349 (show_user):
2350 Add NULL for new default_args lookup_cmd argument.
2351 (valid_command_p): Rename to validate_aliased_command.
2352 Add NULL for new default_args lookup_cmd argument. Verify that the
2353 aliased_command has no default args.
2354 * cli/cli-decode.c (help_cmd): Show aliases definitions.
2355 (lookup_cmd_1, lookup_cmd): New argument default_args.
2356 (add_alias_cmd):
2357 Add NULL for new default_args lookup_cmd argument.
2358 (print_help_for_command): Show default args under the layout
2359 alias some_alias = some_aliased_cmd some_alias_default_arg.
2360 * cli/cli-decode.h (struct cmd_list_element): New member default_args.
2361 xfree default_args in destructor.
2362 * cli/cli-script.c (process_next_line, do_define_command):
2363 Add NULL for new default_args lookup_cmd argument.
2364 * command.h: Declare new default_args argument in lookup_cmd
2365 and lookup_cmd_1.
2366 * completer.c (complete_line_internal_1):
2367 Add NULL for new default_args lookup_cmd or lookup_cmd_1 argument.
2368 * guile/scm-cmd.c (gdbscm_parse_command_name): Likewise.
2369 * guile/scm-param.c (add_setshow_generic, pascm_parameter_defined_p):
2370 Likewise.
2371 * infcmd.c (_initialize_infcmd): Likewise.
2372 * python/py-auto-load.c (gdbpy_initialize_auto_load): Likewise.
2373 * python/py-cmd.c (gdbpy_parse_command_name): Likewise.
2374 * python/py-param.c (add_setshow_generic): Likewise.
2375 * remote.c (_initialize_remote): Likewise.
2376 * top.c (execute_command): Prepend default_args if command has some.
2377 (set_verbose):
2378 Add NULL for new default_args lookup_cmd or lookup_cmd_1 argument.
2379 * tracepoint.c (validate_actionline, encode_actions_1):
2380 Add NULL for new default_args lookup_cmd or lookup_cmd_1 argument.
2381
bd920864
TBA
23822020-06-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2383
2384 * jit.c (jit_read_descriptor): Use bool as the return type.
2385 (jit_breakpoint_re_set_internal): Use bool as the return type.
2386 Invert the return value logic; return true if the jit breakpoint
2387 has been successfully initialized.
2388 (jit_inferior_init): Update the call to
2389 jit_breakpoint_re_set_internal.
2390
f8098322
PA
23912020-06-22 Pedro Alves <palves@redhat.com>
2392
2393 PR gdb/25939
2394 * procfs.c (procfs_target::wait): Don't reference inferior_ptid.
2395 Use the current inferior instead. Don't return
2396 TARGET_WAITKIND_SPURIOUS/inferior_ptid -- instead continue and
2397 wait again.
2398 * sol-thread.c (sol_thread_target::wait): Don't reference
2399 inferior_ptid.
2400 (ps_lgetregs, ps_lsetregs, ps_lgetfpregs, ps_lsetfpregs)
2401 (sol_update_thread_list_callback): Use the current inferior's pid
2402 instead of inferior_ptid.
2403
196535a6
RO
24042020-06-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2405
2406 * procfs.c: Cleanup many comments.
2407
2408 (READ_WATCHFLAG, WRITE_WATCHFLAG, EXEC_WATCHFLAG)
2409 (AFTER_WATCHFLAG): Replace by value.
2410
2411 (MAIN_PROC_NAME_FORMAT): Inline ...
2412 (create_procinfo): ... here.
2413
2414 (procfs_debug_inferior): Remove SYS_exec handling.
2415 (syscall_is_exec): Likewise.
2416 (procfs_set_exec_trap): Likewise.
2417
2418 (syscall_is_lwp_exit): Inline in callers.
2419 (syscall_is_exit): Likewise.
2420 (syscall_is_exec): Likewise.
2421 (syscall_is_lwp_create): Likewise.
2422
2423 (invalidate_cache): Remove #if 0 code.
2424
2425 (make_signal_thread_runnable): Remove.
2426 (procfs_target::resume): Remove #if 0 code.
2427
cf6f3e86
RO
24282020-06-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2429
2430 PR gdb/25939
2431 * procfs.c (procfs_target::procfs_init_inferior): Move push_target
2432 call ...
2433 (procfs_target::create_inferior): ... here.
2434
48e9cc84
PW
24352020-06-21 Philippe Waroquiers <philippe.waroquiers@skynet.be>
2436
2437 * exec.c (validate_exec_file): Ensure the build-id is up to
2438 date by calling reopen_exec_file (that checks file timestamp
2439 to decide to re-read the file).
2440
3922b302
PA
24412020-06-18 Pedro Alves <palves@redhat.com>
2442
2443 PR gdb/25412
2444 * gdbthread.h (delete_thread, delete_thread_silent)
2445 (find_thread_ptid): Update comments.
2446 * thread.c (current_thread_): New global.
2447 (is_current_thread): Move higher, and reimplement.
2448 (inferior_thread): Reimplement.
2449 (set_thread_exited): Use bool. Add assertions.
2450 (add_thread_silent): Simplify thread-reuse handling by always
2451 calling delete_thread.
2452 (delete_thread): Remove intro comment.
2453 (find_thread_ptid): Skip exited threads.
2454 (switch_to_thread_no_regs): Write to current_thread_.
2455 (switch_to_no_thread): Check CURRENT_THREAD_ instead of
2456 INFERIOR_PTID. Clear current_thread_.
2457
6dbdab44
PA
24582020-06-18 Pedro Alves <palves@redhat.com>
2459
2460 * aix-thread.c (pd_update): Use switch_to_thread.
2461
2da4b788
PA
24622020-06-18 Pedro Alves <palves@redhat.com>
2463
2464 * ravenscar-thread.c (ravenscar_thread_target): Update.
2465 (ravenscar_thread_target::update_inferior_ptid): Rename to ...
2466 (ravenscar_thread_target::add_active_thread): ... this. Don't
2467 set m_base_ptid here. Update to avoid referencing inferior_ptid.
2468 (ravenscar_thread_target::wait): Don't write to inferior_ptid.
2469
50838d1b
PA
24702020-06-18 Pedro Alves <palves@redhat.com>
2471
2472 * nat/windows-nat.c (current_windows_thread): Remove.
2473 * nat/windows-nat.h (current_windows_thread): Remove.
2474 * windows-nat.c (windows_nat_target::stopped_by_sw_breakpoint):
2475 Adjust.
2476 (display_selectors): Adjust to fetch the current
2477 windows_thread_info based on inferior_ptid.
2478 (fake_create_process): No longer write to current_windows_thread.
2479 (windows_nat_target::get_windows_debug_event):
2480 Don't set inferior_ptid or current_windows_thread.
2481 (windows_nat_target::wait): Adjust to not rely on
2482 current_windows_thread.
2483 (do_initial_windows_stuff): Now a method of windows_nat_target.
2484 Switch to the last_ptid thread.
2485 (windows_nat_target::attach): Adjust.
2486 (windows_nat_target::detach): Use switch_to_no_thread instead of
2487 writing to inferior_ptid directly.
2488 (windows_nat_target::create_inferior): Adjust.
2489
31ce04e9
PA
24902020-06-18 Pedro Alves <palves@redhat.com>
2491
2492 * windows-nat.c (do_initial_windows_stuff): No longer set inferior_ptid.
2493
1ee1a363
PA
24942020-06-18 Pedro Alves <palves@redhat.com>
2495
2496 * go32-nat.c (go32_nat_target::create_inferior): Switch to thread
2497 after creating it, instead of writing to inferior_ptid. Don't
2498 write to inferior_ptid.
2499
6d350754
PA
25002020-06-18 Pedro Alves <palves@redhat.com>
2501
2502 * fork-child.c (postfork_hook): Don't write to inferior_ptid.
2503
5d971d48
PA
25042020-06-18 Pedro Alves <palves@redhat.com>
2505
2506 * bsd-kvm.c (bsd_kvm_target_open): Switch to thread after adding
2507 it, instead of writing to inferior_ptid.
2508
86e57d1b
PA
25092020-06-18 Pedro Alves <palves@redhat.com>
2510
2511 * btrace.c (btrace_fetch): Use switch_to_thread instead of writing
2512 to inferior_ptid.
2513
f2e1c129
PA
25142020-06-18 Pedro Alves <palves@redhat.com>
2515
2516 * bsd-kvm.c (bsd_kvm_target::close): Use switch_to_no_thread
2517 instead of writing to inferior_ptid directly.
2518
60db1b85
PA
25192020-06-18 Pedro Alves <palves@redhat.com>
2520
2521 * corelow.c (core_target::close): Use switch_to_no_thread instead
2522 of writing to inferior_ptid directly.
2523 (add_to_thread_list, core_target_open): Use switch_to_thread
2524 instead of writing to inferior_ptid directly.
2525
fe7d6a8d
PA
25262020-06-18 Pedro Alves <palves@redhat.com>
2527
2528 * darwin-nat.c (darwin_nat_target::decode_message): Don't write to
2529 inferior_ptid.
2530 (darwin_nat_target::stop_inferior, darwin_nat_target::kill): Avoid
2531 inferior_ptid.
2532 (darwin_attach_pid): Use switch_to_no_thread instead of writing to
2533 inferior_ptid directly.
2534 (darwin_nat_target::init_thread_list): Switch to thread, instead
2535 of writing to inferior_ptid.
2536 (darwin_nat_target::attach): Don't write to inferior_ptid.
2537 (darwin_nat_target::get_ada_task_ptid): Avoid inferior_ptid.
2538
975f8708
PA
25392020-06-18 Pedro Alves <palves@redhat.com>
2540
2541 * gnu-nat.c (gnu_nat_target::create_inferior): Switch to the added
2542 thread.
2543 (gnu_nat_target::attach): Don't write to inferior_ptid directly.
2544 Instead use switch_to_thread.
2545 (gnu_nat_target::detach): Use switch_to_no_thread
2546 instead of writing to inferior_ptid directly. Used passed-in
2547 inferior instead of looking up the inferior by pid.
2548
1a204730
PA
25492020-06-18 Pedro Alves <palves@redhat.com>
2550
2551 * go32-nat.c (go32_nat_target::create_inferior): Don't write to
2552 inferior_ptid.
2553
ebe84f23
PA
25542020-06-18 Pedro Alves <palves@redhat.com>
2555
2556 * nto-procfs.c (nto_procfs_target::update_thread_list): Avoid
2557 inferior_ptid.
2558 (nto_procfs_target::attach): Avoid inferior_ptid. Switch to
2559 thread.
2560 (nto_procfs_target::detach): Avoid referencing
2561 inferior_ptid. Use switch_to_no_thread instead of writing to
2562 inferior_ptid directly.
2563 (nto_procfs_target::mourn_inferior): Use switch_to_no_thread
2564 instead of writing to inferior_ptid directly.
2565 (nto_procfs_target::create_inferior): Avoid inferior_ptid. Switch
2566 to thread.
2567
191f02e5
PA
25682020-06-18 Pedro Alves <palves@redhat.com>
2569
2570 * remote-sim.c (gdbsim_target::create_inferior): Switch to thread
2571 after creating it, instead of writing to inferior_ptid.
2572 (gdbsim_target_open): Use switch_to_no_thread instead of writing
2573 to inferior_ptid directly.
2574 (gdbsim_target::wait): Don't write to inferior_ptid.
2575
0ac55310
PA
25762020-06-18 Pedro Alves <palves@redhat.com>
2577
2578 * remote.c (remote_target::remote_notice_new_inferior): Use
2579 switch_to_thread instead of writing to inferior_ptid directly.
2580 (remote_target::add_current_inferior_and_thread): Use
2581 switch_to_no_thread instead of writing to inferior_ptid directly.
2582 (extended_remote_target::attach): Use switch_to_inferior_no_thread
2583 and switch_to_thread instead of using set_current_inferior or
2584 writing to inferior_ptid directly.
2585
5233f39b
PA
25862020-06-18 Pedro Alves <palves@redhat.com>
2587
2588 * tracectf.c (ctf_target_open): Switch to added thread instead of
2589 writing to inferior_ptid directly.
2590 (ctf_target::close): Use switch_to_no_thread instead of writing to
2591 inferior_ptid directly.
2592
087e161b
PA
25932020-06-18 Pedro Alves <palves@redhat.com>
2594
2595 * tracefile-tfile.c (tfile_target_open): Don't write to
2596 inferior_ptid directly, instead switch to added thread.
2597 (tfile_target::close): Use switch_to_no_thread instead of writing
2598 to inferior_ptid directly.
2599
7fb43e53
PA
26002020-06-18 Pedro Alves <palves@redhat.com>
2601
2602 * procfs.c (procfs_target::attach): Don't write to inferior_ptid.
2603 (procfs_target::detach): Use switch_to_no_thread
2604 instead of writing to inferior_ptid directly.
2605 (do_attach): Change return type to void. Switch to the added
2606 thread.
2607 (procfs_target::create_inferior): Switch to the added thread.
2608 (procfs_do_thread_registers): Don't write to inferior_ptid.
2609
18493a00
PA
26102020-06-18 Pedro Alves <palves@redhat.com>
2611
2612 * infrun.c (generic_mourn_inferior): Use switch_to_thread instead
2613 of writing to inferior_ptid.
2614 (scoped_restore_exited_inferior): Delete.
2615 (handle_vfork_child_exec_or_exit): Simplify using
2616 scoped_restore_current_pspace_and_thread. Use switch_to_thread
2617 instead of writing to inferior_ptid.
2618 (THREAD_STOPPED_BY): Delete.
2619 (thread_stopped_by_watchpoint, thread_stopped_by_sw_breakpoint)
2620 (thread_stopped_by_hw_breakpoint): Delete.
2621 (save_waitstatus): Use
2622 scoped_restore_current_thread+switch_to_thread, and call
2623 target_stopped_by_watchpoint instead of
2624 thread_stopped_by_watchpoint, target_stopped_by_sw_breakpoint
2625 instead of thread_stopped_by_sw_breakpoint, and
2626 target_stopped_by_hw_breakpoint instead of
2627 thread_stopped_by_hw_breakpoint.
2628 (handle_inferior_event)
2629 <TARGET_WAITKIND_EXITED/TARGET_WAITKIND_SIGNALLED>: Don't write to
2630 inferior_ptid directly, nor
2631 set_current_inferior/set_current_program_space. Use
2632 switch_to_thread / switch_to_inferior_no_thread instead.
2633
a0776b13
PA
26342020-06-18 Pedro Alves <palves@redhat.com>
2635
2636 * target.c (generic_mourn_inferior): Use switch_to_no_thread
2637 instead of writing to inferior_ptid.
2638
6155c136
PA
26392020-06-18 Pedro Alves <palves@redhat.com>
2640
2641 * inf-ptrace.c (inf_ptrace_target::create_inferior): Switch to the
2642 added thread.
2643 (inf_ptrace_target::attach): Don't write to inferior_ptid. Switch
2644 to the added thread.
2645 (inf_ptrace_target::detach_success): Use switch_to_no_thread
2646 instead of writing to inferior_ptid.
2647
c5316fc6
PA
26482020-06-18 Pedro Alves <palves@redhat.com>
2649
2650 * gdbarch-selftests.c: Include "progspace-and-thread.h".
2651 (register_to_value_test): Mock a program_space too. Heap-allocate
2652 the address space. Don't write to inferior_ptid. Use
2653 switch_to_thread instead.
2654
8df01799
PA
26552020-06-18 Pedro Alves <palves@redhat.com>
2656
2657 * linux-tdep.c (find_signalled_thread(thread_info *,void *)):
2658 Delete.
2659 (find_signalled_thread()): New, factored out from
2660 linux_make_corefile_notes and adjusted to handle exited threads.
2661 (linux_make_corefile_notes): Adjust to use the new
2662 find_signalled_thread.
2663
41792d68
PA
26642020-06-18 Pedro Alves <palves@redhat.com>
2665
2666 * linux-tdep.c (btrace_fetch): Save/restore current thread instead
2667 of saving/restoring inferior_ptid.
2668
612f258a
TT
26692020-06-17 Tom Tromey <tom@tromey.com>
2670
2671 * tui/tui-win.h (tui_scroll_forward, tui_scroll_backward)
2672 (tui_scroll_left, tui_scroll_right, struct tui_win_info): Don't
2673 declare.
2674 * tui/tui-data.h (MIN_CMD_WIN_HEIGHT): Remove.
2675
efb763a5
SM
26762020-06-15 Simon Marchi <simon.marchi@efficios.com>
2677
2678 * dwarf2/read.c (dwarf2_initialize_objfile): Check for presence
2679 of partial symtabs.
2680
2951f6c0
SM
26812020-06-17 Simon Marchi <simon.marchi@efficios.com>
2682
2683 * regformats/reg-arm.dat: Remove.
2684 * regformats/reg-bfin.dat: Remove.
2685 * regformats/reg-cris.dat: Remove.
2686 * regformats/reg-crisv32.dat: Remove.
2687 * regformats/reg-m32r.dat: Remove.
2688 * regformats/reg-tilegx.dat: Remove.
2689 * regformats/reg-tilegx32.dat: Remove.
2690
7d458ea5
SM
26912020-06-17 Simon Marchi <simon.marchi@efficios.com>
2692
2693 * features/Makefile (WHICH): Remove arm files.
2694 * regformats/arm/arm-with-iwmmxt.dat: Remove.
2695 * regformats/arm/arm-with-neon.dat: Remove.
2696 * regformats/arm/arm-with-vfpv2.dat: Remove.
2697 * regformats/arm/arm-with-vfpv3.dat: Remove.
2698
3af96c0d
SM
26992020-06-17 Simon Marchi <simon.marchi@efficios.com>
2700
2701 * features/Makefile (XMLTOC): Remove rx.xml.
2702
b25e22fd
PA
27032020-06-17 Pedro Alves <palves@redhat.com>
2704
2705 * gdbthread.h (thread_control_state) <trap_expected> Update
2706 comments.
2707
a78a19b1
AB
27082020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
2709
2710 * ada-lang.c (ada_lookup_symbol_nonlocal): Rename to
2711 ada_language::lookup_symbol_nonlocal.
2712 (ada_language_data): Delete la_lookup_symbol_nonlocal initializer.
2713 (ada_language::lookup_symbol_nonlocal): New member function,
2714 implementation from ada_lookup_symbol_nonlocal.
2715 * c-lang.c (c_language_data): Delete la_lookup_symbol_nonlocal
2716 initializer.
2717 (cplus_language_data): Delete la_lookup_symbol_nonlocal
2718 initializer.
2719 (cplus_language::lookup_symbol_nonlocal): New member function.
2720 (asm_language_data): Delete la_lookup_symbol_nonlocal initializer.
2721 (minimal_language_data) Likewise.
2722 * cp-namespace.c (cp_lookup_nested_symbol): Update comment.
2723 * d-lang.c (d_language_data): Delete la_lookup_symbol_nonlocal
2724 initializer.
2725 (d_language::lookup_symbol_nonlocal): New member function.
2726 * f-lang.c (f_language_data): Delete la_lookup_symbol_nonlocal
2727 initializer.
2728 (f_language::lookup_symbol_nonlocal): New member function.
2729 * go-lang.c (go_language_data): Delete la_lookup_symbol_nonlocal
2730 initializer.
2731 * language.c (unknown_language_data): Likewise.
2732 (auto_language_data): Likewise.
2733 * language.h (language_data): Delete la_lookup_symbol_nonlocal
2734 field.
2735 (language_defn::lookup_symbol_nonlocal): New member function.
2736 * m2-lang.c (m2_language_data): Delete la_lookup_symbol_nonlocal
2737 initializer.
2738 * objc-lang.c (objc_language_data): Likewise.
2739 * opencl-lang.c (opencl_language_data): Likewise.
2740 * p-lang.c (pascal_language_data): Likewise.
2741 * rust-lang.c (rust_lookup_symbol_nonlocal): Rename to
2742 rust_language::lookup_symbol_nonlocal.
2743 (rust_language_data): Delete la_lookup_symbol_nonlocal
2744 initializer.
2745 (rust_language::lookup_symbol_nonlocal): New member function,
2746 implementation from rust_lookup_symbol_nonlocal.
2747 * symtab.c (lookup_symbol_aux): Update call to
2748 lookup_symbol_nonlocal.
2749 (basic_lookup_symbol_nonlocal): Rename to...
2750 (language_defn::lookup_symbol_nonlocal): ...this, and update
2751 header comment. Remove language_defn parameter, and replace with
2752 uses of `this'.
2753 * symtab.h (basic_lookup_symbol_nonlocal): Delete declaration.
2754
ebe2334e
AB
27552020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
2756
2757 * ada-lang.c (ada_language_data): Delete la_value_print_inner
2758 initializer.
2759 (ada_language::value_print_inner): New member function.
2760 * c-lang.c (c_language_data): Delete la_value_print_inner
2761 initializer.
2762 (cplus_language_data): Likewise.
2763 (asm_language_data): Likewise.
2764 (minimal_language_data): Likewise.
2765 * d-lang.c (d_language_data): Likewise.
2766 (d_language::value_print_inner): New member function.
2767 * f-lang.c (f_language_data): Delete la_value_print_inner
2768 initializer.
2769 (f_language::value_print_inner): New member function.
2770 * f-lang.h (f_value_print_innner): Rename to...
2771 (f_value_print_inner): ...this (note spelling of 'inner').
2772 * f-valprint.c (f_value_print_innner): Rename to...
2773 (f_value_print_inner): ...this (note spelling of 'inner').
2774 * go-lang.c (go_language_data): Delete la_value_print_inner
2775 initializer.
2776 (go_language::value_print_inner): New member function.
2777 * language.c (language_defn::value_print_inner): Define new member
2778 function.
2779 (unk_lang_value_print_inner): Delete.
2780 (unknown_language_data): Delete la_value_print_inner initializer.
2781 (unknown_language::value_print_inner): New member function.
2782 (auto_language_data): Delete la_value_print_inner initializer.
2783 (auto_language::value_print_inner): New member function.
2784 * language.h (language_data): Delete la_value_print_inner field.
2785 (language_defn::value_print_inner): Delcare new member function.
2786 * m2-lang.c (m2_language_data): Delete la_value_print_inner
2787 initializer.
2788 (m2_language::value_print_inner): New member function.
2789 * objc-lang.c (objc_language_data): Delete la_value_print_inner
2790 initializer.
2791 * opencl-lang.c (opencl_language_data): Likewise.
2792 * p-lang.c (pascal_language_data): Likewise.
2793 (pascal_language::value_print_inner): New member function.
2794 * rust-lang.c (rust_language_data): Delete la_value_print_inner
2795 initializer.
2796 (rust_language::value_print_inner): New member function.
2797 * valprint.c (do_val_print): Update call to value_print_inner.
2798
a1d1fa3e
AB
27992020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
2800
2801 * ada-lang.c (ada_language_data): Delete la_value_print
2802 initializer.
2803 (ada_language::value_print): New member function.
2804 * c-lang.c (c_language_data): Delete la_value_print initializer.
2805 (cplus_language_data): Likewise.
2806 (asm_language_data): Likewise.
2807 (minimal_language_data): Likewise.
2808 * d-lang.c (d_language_data): Likewise.
2809 * f-lang.c (f_language_data): Likewise.
2810 * go-lang.c (go_language_data): Likewise.
2811 * language.c (unk_lang_value_print): Delete.
2812 (language_defn::value_print): Define new member function.
2813 (unknown_language_data): Delete la_value_print initializer.
2814 (unknown_language::value_print): New member function.
2815 (auto_language_data): Delete la_value_print initializer.
2816 (auto_language::value_print): New member function.
2817 * language.h (language_data): Delete la_value_print field.
2818 (language_defn::value_print): Declare new member function.
2819 (LA_VALUE_PRINT): Update call to value_print.
2820 * m2-lang.c (m2_language_data): Delete la_value_print initializer.
2821 * objc-lang.c (objc_language_data): Likewise.
2822 * opencl-lang.c (opencl_language_data): Likewise.
2823 * p-lang.c (pascal_language_data): Likewise.
2824 (pascal_language::value_print): New member function.
2825 * rust-lang.c (rust_language_data): Delete la_value_print
2826 initializer.
2827
f16a9f57
AB
28282020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
2829
2830 * ada-lang.c (ada_watch_location_expression): Rename to
2831 ada_language::watch_location_expression.
2832 (ada_language_data): Delete la_watch_location_expression
2833 initializer.
2834 (ada_language::watch_location_expression): New member function,
2835 implementation from ada_watch_location_expression.
2836 * breakpoint.c (watch_command_1): Update call to
2837 watch_location_expression.
2838 * c-lang.c (c_watch_location_expression): Rename to
2839 language_defn::watch_location_expression.
2840 (c_language_data): Delete la_watch_location_expression
2841 initializer.
2842 (cplus_language_data): Likewise.
2843 (asm_language_data): Likewise.
2844 (minimal_language_data): Likewise.
2845 * c-lang.h (c_watch_location_expression): Delete declaration.
2846 * d-lang.c (d_language_data): Delete la_watch_location_expression
2847 initializer.
2848 * f-lang.c (f_language_data): Likewise.
2849 * go-lang.c (go_language_data): Likewise.
2850 * language.c (language_defn::watch_location_expression): Member
2851 function implementation from c_watch_location_expression.
2852 (unknown_language_data): Delete la_watch_location_expression
2853 initializer.
2854 (auto_language_data): Likewise.
2855 * language.h (language_data): Delete la_watch_location_expression
2856 field.
2857 (language_defn::watch_location_expression): Declare new member
2858 function.
2859 * m2-lang.c (m2_language_data): Delete
2860 la_watch_location_expression initializer.
2861 * objc-lang.c (objc_language_data): Likewise.
2862 * opencl-lang.c (opencl_language_data): Likewise.
2863 * p-lang.c (pascal_language_data): Likewise.
2864 * rust-lang.c (rust_watch_location_expression): Rename to
2865 rust_language::watch_location_expression.
2866 (rust_language_data): Delete la_watch_location_expression
2867 initializer.
2868 (rust_language::watch_location_expression): New member function,
2869 implementation from rust_watch_location_expression.
2870
7e56227d
AB
28712020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
2872
2873 * ada-lang.c (ada_collect_symbol_completion_matches): Rename to
2874 ada_language::collect_symbol_completion_matches.
2875 (ada_language_data): Delete la_collect_symbol_completion_matches
2876 initializer.
2877 (ada_language::collect_symbol_completion_matches): New member
2878 function, implementation from
2879 ada_collect_symbol_completion_matches.
2880 * c-lang.c (c_language_data): Delete
2881 la_collect_symbol_completion_matches initializer.
2882 (cplus_language_data): Likewise.
2883 (asm_language_data): Likewise.
2884 (minimal_language_data): Likewise.
2885 * d-lang.c (d_language_data): Likewise.
2886 * f-lang.c (f_collect_symbol_completion_matches): Rename to
2887 f_language::collect_symbol_completion_matches.
2888 (f_language_data): Delete la_collect_symbol_completion_matches
2889 initializer.
2890 (f_language::collect_symbol_completion_matches) New member
2891 function, implementation from f_collect_symbol_completion_matches.
2892 * go-lang.c (go_language_data): Delete
2893 la_collect_symbol_completion_matches initializer.
2894 * language.c (unknown_language_data): Likewise.
2895 (auto_language_data): Likewise.
2896 * language.h (language_data): Delete
2897 la_collect_symbol_completion_matches field.
2898 (language_defn::collect_symbol_completion_matches): New member
2899 function.
2900 * m2-lang.c (m2_language_data): Delete
2901 la_collect_symbol_completion_matches initializer.
2902 * objc-lang.c (objc_language_data): Likewise.
2903 * opencl-lang.c (opencl_language_data): Likewise.
2904 * p-lang.c (pascal_language_data): Likewise.
2905 * rust-lang.c (rust_language_data): Likewise.
2906 * symtab.c (default_collect_symbol_completion_matches): Delete.
2907 (collect_symbol_completion_matches): Update call to
2908 collect_symbol_completion_matches.
2909 (collect_symbol_completion_matches_type): Likewise.
2910 * symtab.h (default_collect_symbol_completion_matches): Delete
2911 declaration.
2912
53fc67f8
AB
29132020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
2914
2915 * ada-lang.c (ada_get_gdb_completer_word_break_characters): Delete.
2916 (ada_language_data): Delete la_word_break_characters initializer.
2917 (ada_language::word_break_characters): New member function.
2918 * c-lang.c (c_language_data): Delete la_word_break_characters
2919 initializer.
2920 (cplus_language_data): Likewise.
2921 (asm_language_data): Likewise.
2922 (minimal_language_data): Likewise.
2923 * completer.c: Update global comment.
2924 (advance_to_expression_complete_word_point): Update call to
2925 word_break_characters.
2926 (complete_files_symbols): Likewise.
2927 (complete_line_internal_1): Likewise.
2928 (default_completer_handle_brkchars): Likewise.
2929 (skip_quoted_chars): Likewise.
2930 * d-lang.c (d_language_data): Delete la_word_break_characters
2931 initializer.
2932 * f-lang.c (f_word_break_characters): Delete.
2933 (f_language_data): Delete la_word_break_characters initializer.
2934 (f_language::word_break_characters): New member function.
2935 * go-lang.c (go_language_data): Delete la_word_break_characters
2936 initializer.
2937 * language.c (unknown_language_data): Likewise.
2938 (auto_language_data): Likewise.
2939 * language.h (default_word_break_characters): Move declaration to
2940 earlier in the file.
2941 (language_data): Delete la_word_break_characters field.
2942 (language_defn::word_break_characters): New member function.
2943 * m2-lang.c (m2_language_data): Delete la_word_break_characters
2944 initializer.
2945 * objc-lang.c (objc_language_data): Likewise.
2946 * opencl-lang.c (opencl_language_data): Likewise.
2947 * p-lang.c (pascal_language_data): Likewise.
2948 * rust-lang.c (rust_language_data): Likewise.
2949
c9debfb9
AB
29502020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
2951
2952 * ada-lang.c (ada_get_symbol_name_matcher): Update header comment.
2953 (ada_language_data): Delete la_get_symbol_name_matcher
2954 initializer.
2955 (language_defn::get_symbol_name_matcher_inner): New member
2956 function.
2957 * c-lang.c (c_language_data): Delete la_get_symbol_name_matcher
2958 initializer.
2959 (cplus_language_data): Likewise.
2960 (cplus_language::get_symbol_name_matcher_inner): New member
2961 function.
2962 (asm_language_data): Delete la_get_symbol_name_matcher initializer.
2963 (minimal_language_data): Likewise.
2964 * cp-support.h (cp_get_symbol_name_matcher): Update header comment.
2965 * d-lang.c (d_language_data): Delete la_get_symbol_name_matcher
2966 initializer.
2967 * dictionary.c (iter_match_first_hashed): Update call to
2968 get_symbol_name_matcher.
2969 (iter_match_next_hashed): Likewise.
2970 (iter_match_next_linear): Likewise.
2971 * dwarf2/read.c (dw2_expand_symtabs_matching_symbol): Likewise.
2972 * f-lang.c (f_language_data): Delete la_get_symbol_name_matcher
2973 initializer.
2974 (f_language::get_symbol_name_matcher_inner): New member function.
2975 * go-lang.c (go_language_data): Delete la_get_symbol_name_matcher
2976 initializer.
2977 * language.c (default_symbol_name_matcher): Update header comment,
2978 make static.
2979 (language_defn::get_symbol_name_matcher): New definition.
2980 (language_defn::get_symbol_name_matcher_inner): Likewise.
2981 (get_symbol_name_matcher): Delete.
2982 (unknown_language_data): Delete la_get_symbol_name_matcher
2983 initializer.
2984 (auto_language_data): Likewise.
2985 * language.h (language_data): Delete la_get_symbol_name_matcher
2986 field.
2987 (language_defn::get_symbol_name_matcher): New member function.
2988 (language_defn::get_symbol_name_matcher_inner): Likewise.
2989 (default_symbol_name_matcher): Delete declaration.
2990 * linespec.c (find_methods): Update call to
2991 get_symbol_name_matcher.
2992 * m2-lang.c (m2_language_data): Delete la_get_symbol_name_matcher
2993 initializer.
2994 * minsyms.c (lookup_minimal_symbol): Update call to
2995 get_symbol_name_matcher.
2996 (iterate_over_minimal_symbols): Likewise.
2997 * objc-lang.c (objc_language_data): Delete
2998 la_get_symbol_name_matcher initializer.
2999 * opencl-lang.c (opencl_language_data): Likewise.
3000 * p-lang.c (pascal_language_data): Likewise.
3001 * psymtab.c (psymbol_name_matches): Update call to
3002 get_symbol_name_matcher.
3003 * rust-lang.c (rust_language_data): Delete
3004 la_get_symbol_name_matcher initializer.
3005 * symtab.c (symbol_matches_search_name): Update call to
3006 get_symbol_name_matcher.
3007 (compare_symbol_name): Likewise.
3008
9a49ad8c
AB
30092020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
3010
3011 * ada-lang.c (ada_language_data): Delete la_compute_program
3012 initializer.
3013 * c-lang.c (c_language_data): Likewise.
3014 (c_language::compute_program): New member function.
3015 (cplus_language_data): Delete la_compute_program initializer.
3016 (cplus_language::compute_program): New member function.
3017 (asm_language_data): Delete la_compute_program initializer.
3018 (minimal_language_data): Likewise.
3019 * c-lang.h (c_compute_program): Update comment.
3020 (cplus_compute_program): Likewise.
3021 * compile/compile-c-support.c (c_compute_program): Likewise.
3022 (cplus_compute_program): Likewise.
3023 * compile/compile.c (compile_to_object): Update call to
3024 la_compute_program.
3025 * d-lang.c (d_language_data): Delete la_compute_program
3026 initializer.
3027 * f-lang.c (f_language_data): Likewise.
3028 * go-lang.c (go_language_data): Likewise.
3029 * language.c (unknown_language_data): Likewise.
3030 (auto_language_data): Likewise.
3031 * language.h (language_data): Delete la_compute_program field.
3032 (language_defn::compute_program): New member function.
3033 * m2-lang.c (m2_language_data): Delete la_compute_program
3034 initializer.
3035 * objc-lang.c (objc_language_data): Likewise.
3036 * opencl-lang.c (opencl_language_data): Likewise.
3037 * p-lang.c (pascal_language_data): Likewise.
3038 * rust-lang.c (rust_language_data): Likewise.
3039
eff93b4d
AB
30402020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
3041
3042 * ada-lang.c (ada_language_data) Delete
3043 la_class_name_from_physname initializer.
3044 * c-lang.c (c_language_data): Likewise.
3045 (cplus_language_data): Likewise.
3046 (cplus_language::class_name_from_physname): New member function.
3047 (asm_language_data): Delete la_class_name_from_physname
3048 initializer.
3049 (minimal_language_data): Likewise.
3050 * d-lang.c (d_language_data): Likewise.
3051 * dwarf2/read.c (guess_partial_die_structure_name): Update to call
3052 method on language_defn class.
3053 (guess_full_die_structure_name): Likewise.
3054 * f-lang.c (f_language_data): Delete la_class_name_from_physname
3055 initializer.
3056 * go-lang.c (go_language_data): Likewise.
3057 * language.c (language_class_name_from_physname): Delete.
3058 (unk_lang_class_name): Delete.
3059 (unknown_language_data): Delete la_class_name_from_physname
3060 initializer.
3061 (auto_language_data): Likewise.
3062 * language.h (language_data): Delete la_class_name_from_physname
3063 field.
3064 (language_defn::class_name_from_physname): New function.
3065 (language_class_name_from_physname): Delete declaration.
3066 * m2-lang.c (m2_language_data): Delete la_class_name_from_physname
3067 initializer.
3068 * objc-lang.c (objc_language_data): Likewise.
3069 * opencl-lang.c (opencl_language_data): Likewise.
3070 * p-lang.c (pascal_language_data): Likewise.
3071 * rust-lang.c (rust_language_data): Likewise.
3072
de543742
TT
30732020-06-16 Tom Tromey <tom@tromey.com>
3074
3075 * tui/tui-data.h (STATUS_NAME): New macro.
3076 * tui/tui-layout.c (tui_remove_some_windows)
3077 (initialize_known_windows, tui_register_window)
3078 (tui_layout_split::remove_windows, initialize_layouts)
3079 (tui_new_layout_command): Don't use hard-coded window names.
3080
a350efd4
TT
30812020-06-16 Tom Tromey <tom@tromey.com>
3082
3083 PR tui/25348:
3084 * tui/tui.c (tui_ensure_readline_initialized): Rename from
3085 tui_initialize_readline. Only run once. Call rl_initialize.
3086 * tui/tui.h (tui_ensure_readline_initialized): Rename from
3087 tui_initialize_readline.
3088 * tui/tui-io.c (tui_setup_io): Call
3089 tui_ensure_readline_initialized.
3090 * tui/tui-interp.c (tui_interp::init): Update.
3091
39ec0490
TT
30922020-06-16 Tom Tromey <tom@tromey.com>
3093
3094 * tui/tui-layout.c (tui_layout_split::remove_windows): Fix logic.
3095 Also preserve the status window.
3096
d2d1ea20
TT
30972020-06-16 Tom Tromey <tom@tromey.com>
3098
3099 * python/py-tui.c (tui_py_window::~tui_py_window): Handle case
3100 where m_window==nullptr.
3101
66920317
TT
31022020-06-15 Tom Tromey <tromey@adacore.com>
3103
3104 * windows-nat.c (windows_nat::handle_output_debug_string):
3105 Update.
3106 (windows_nat::handle_ms_vc_exception): Update.
3107 * target.h (target_read_string): Change API.
3108 * target.c (target_read_string): Change API.
3109 * solib-svr4.c (open_symbol_file_object, svr4_read_so_list):
3110 Update.
3111 * solib-frv.c (frv_current_sos): Update.
3112 * solib-dsbt.c (dsbt_current_sos): Update.
3113 * solib-darwin.c (darwin_current_sos): Update.
3114 * linux-thread-db.c (inferior_has_bug): Update.
3115 * expprint.c (print_subexp_standard): Update.
3116 * ada-lang.c (ada_main_name, ada_tag_name_from_tsd)
3117 (ada_exception_message_1): Update.
3118
a5d871dd
TT
31192020-06-15 Tom Tromey <tromey@adacore.com>
3120
3121 * linux-tdep.c (dump_mapping_p): Use target_read_memory.
3122
670e35fa
TT
31232020-06-15 Tom Tromey <tromey@adacore.com>
3124
3125 * valprint.c (read_string): Update comment.
3126 * target.c (MIN): Remove.
3127 (target_read_string): Rewrite.
3128
f5272a3b
TT
31292020-06-15 Tom Tromey <tromey@adacore.com>
3130
3131 * corefile.c (read_memory_string): Remove.
3132 * ada-valprint.c (ada_value_print_ptr): Update.
3133 * ada-lang.h (ada_tag_name): Change return type.
3134 * ada-lang.c (type_from_tag): Update.
3135 (ada_tag_name_from_tsd): Change return type. Use
3136 target_read_string.
3137 (ada_tag_name): Likewise.
3138 * gdbcore.h (read_memory_string): Don't declare.
3139
2c074f49
HD
31402020-06-14 Hannes Domani <ssbssa@yahoo.de>
3141
3142 * symtab.c (rbreak_command): Ignore Windows drive colon.
3143
6a17d503
SM
31442020-06-12 Simon Marchi <simon.marchi@efficios.com>
3145
3146 * NEWS: Mention removed GDBserver host support.
3147
453c733f
NC
31482020-06-12 Nelson Chu <nelson.chu@sifive.com>
3149
3150 * features/riscv/rebuild-csr-xml.sh: Updated.
3151
2b4e6a3f
TT
31522020-06-11 Tom Tromey <tom@tromey.com>
3153
3154 PR gdb/18318:
3155 * c-exp.y (lex_one_token): Handle 'p' like 'e'.
3156
4412332f
JG
31572020-06-09 Jonny Grant <jg@jguk.org>
31582020-06-09 Simon Marchi <simon.marchi@polymtl.ca>
3159
3160 * main.c (captured_main_1): Don't print new line after help.
3161 (print_gdb_help): add mailing list and IRC channel information
3162 to --help. Add new lines between items in the footer. Remove
3163 quotes around bug url.
3164
2f33032a
KS
31652020-06-11 Keith Seitz <keiths@redhat.com>
3166
3167 PR gdb/21356
3168 * gdbtypes.c (resolve_dynamic_union, resolve_dynamic_struct):
3169 Resolve typedefs for type length calculations.
3170
7ab96794
TV
31712020-06-10 Tom de Vries <tdevries@suse.de>
3172
3173 PR ada/24713
3174 * dwarf2/index-write.c (struct mapped_symtab): Add m_string_obstack.
3175 (write_psymbols): Enable .gdb_index for ada.
3176 * dwarf2/read.c: Remove comment stating .gdb_index is unsupported for
3177 ada.
3178
e5f3ece2
TV
31792020-06-10 Tom de Vries <tdevries@suse.de>
3180
3181 * dwarf2/read.c (dw2_symtab_iter_init_common): Factor out of ...
3182 (dw2_symtab_iter_init): ... here. Add variant with "offset_type
3183 namei" instead of "const char *name" argument.
3184 (dw2_map_matching_symbols): Use "offset_type namei" variant of
3185 dw2_symtab_iter_init.
3186
940da03e
SM
31872020-06-08 Simon Marchi <simon.marchi@efficios.com>
3188
3189 * gdbtypes.h (TYPE_FIELD_TYPE): Remove. Change all call sites
3190 to use type::field and field::type instead.
3191
b6cdac4b
SM
31922020-06-08 Simon Marchi <simon.marchi@efficios.com>
3193
3194 * gdbtypes.h (FIELD_TYPE): Remove. Change all call sites
3195 to use field::type instead.
3196
5d14b6e5
SM
31972020-06-08 Simon Marchi <simon.marchi@efficios.com>
3198
3199 * gdbtypes.h (struct field) <type, set_type>: New methods.
3200 Rename `type` field to...
3201 <m_type>: ... this. Change references throughout to use type or
3202 set_type methods.
3203 (FIELD_TYPE): Use field::type. Change call sites that modify
3204 the field's type to use field::set_type instead.
3205
3d967001
SM
32062020-06-08 Simon Marchi <simon.marchi@efficios.com>
3207
3208 * gdbtypes.h (TYPE_INDEX_TYPE): Remove. Change all call sites
3209 to use type::index_type instead.
3210
262abc0d
SM
32112020-06-08 Simon Marchi <simon.marchi@efficios.com>
3212
3213 * gdbtypes.h (struct type) <index_type, set_index_type>: New
3214 methods.
3215 (TYPE_INDEX_TYPE): Use type::index_type.
3216 * gdbtypes.c (create_array_type_with_stride): Likewise.
3217
82836c92
TT
32182020-06-07 Tom Tromey <tom@tromey.com>
3219
3220 * valprint.c (generic_val_print_float): Remove "embedded_offset"
3221 parameter.
3222 (generic_value_print): Update.
3223
940dace9
AB
32242020-06-05 Andrew Burgess <andrew.burgess@embecosm.com>
3225
3226 Revert commit 982a38f60b0.
3227 * python/py-tui.c (gdbpy_tui_set_title): Restore use of get.
3228
982a38f6
AB
32292020-06-05 Andrew Burgess <andrew.burgess@embecosm.com>
3230
3231 * python/py-tui.c (gdbpy_tui_set_title): Use release, not get, to
3232 avoid use after free.
3233
82f06518
TV
32342020-06-05 Tom de Vries <tdevries@suse.de>
3235
3236 * NEWS: Fix typos.
3237
f8c41851
SM
32382020-06-04 Simon Marchi <simon.marchi@efficios.com>
3239
3240 * dwarf2/read.c (dwarf2_read_gdb_index): Save partial_symtabs in
3241 the per_bfd object.
3242 (dwarf2_read_debug_names): Likewise.
3243 (dwarf2_initialize_objfile): Use partial_symtabs from per_bfd
3244 object when re-using a per_bfd object with an index.
3245
f9b5d5ea
TV
32462020-06-03 Tom de Vries <tdevries@suse.de>
3247
3248 PR symtab/26046
3249 * dwarf2/read.c (scan_partial_symbols): Recurse into DW_TAG_subprogram
3250 children for C++.
3251 (load_partial_dies): Don't skip DW_TAG_inlined_subroutine child of
3252 DW_TAG_subprogram.
3253
f6eee2d0
AB
32542020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
3255
3256 * ada-lang.c (ada_language_data): Delete skip_trampoline
3257 initializer.
3258 * c-lang.c (c_language_data): Likewise.
3259 (cplus_language_data): Likewise.
3260 (cplus_language::skip_trampoline): New member function.
3261 (asm_language_data): Delete skip_trampoline initializer.
3262 (minimal_language_data): Likewise.
3263 * d-lang.c (d_language_data): Likewise.
3264 * f-lang.c (f_language_data): Likewise.
3265 * go-lang.c (go_language_data): Likewise.
3266 * language.c (unk_lang_trampoline): Delete function.
3267 (skip_language_trampoline): Update.
3268 (unknown_language_data): Delete skip_trampoline initializer.
3269 (auto_language_data): Likewise.
3270 * language.h (language_data): Delete skip_trampoline field.
3271 (language_defn::skip_trampoline): New function.
3272 * m2-lang.c (m2_language_data): Delete skip_trampoline
3273 initializer.
3274 * objc-lang.c (objc_skip_trampoline): Delete function, move
3275 implementation to objc_language::skip_trampoline.
3276 (objc_language_data): Delete skip_trampoline initializer.
3277 (objc_language::skip_trampoline): New member function with
3278 implementation from objc_skip_trampoline.
3279 * opencl-lang.c (opencl_language_data): Delete skip_trampoline
3280 initializer.
3281 * p-lang.c (pascal_language_data): Likewise.
3282 * rust-lang.c (rust_language_data): Likewise.
3283
0a50df5d
AB
32842020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
3285
3286 * ada-lang.c (ada_language_data): Delete la_demangle initializer.
3287 (ada_language::demangle): New member function.
3288 * c-lang.c (c_language_data): Delete la_demangle initializer.
3289 (cplus_language_data): Delete la_demangle initializer.
3290 (cplus_language::demangle): New member function.
3291 (asm_language_data): Delete la_demangle initializer.
3292 (minimal_language_data): Delete la_demangle initializer.
3293 * d-lang.c (d_language_data): Delete la_demangle initializer.
3294 (d_language::demangle): New member function.
3295 * f-lang.c (f_language_data): Delete la_demangle initializer.
3296 (f_language::demangle): New member function.
3297 * go-lang.c (go_language_data): Delete la_demangle initializer.
3298 (go_language::demangle): New member function.
3299 * language.c (language_demangle): Update.
3300 (unk_lang_demangle): Delete.
3301 (unknown_language_data): Delete la_demangle initializer.
3302 (unknown_language::demangle): New member function.
3303 (auto_language_data): Delete la_demangle initializer.
3304 (auto_language::demangle): New member function.
3305 * language.h (language_data): Delete la_demangle field.
3306 (language_defn::demangle): New function.
3307 * m2-lang.c (m2_language_data): Delete la_demangle initializer.
3308 * objc-lang.c (objc_language_data): Delete la_demangle
3309 initializer.
3310 (objc_language::demangle): New member function.
3311 * opencl-lang.c (opencl_language_data): Delete la_demangle
3312 initializer.
3313 * p-lang.c (pascal_language_data): Likewise.
3314 * rust-lang.c (rust_language_data): Likewise.
3315 (rust_language::demangle): New member function.
3316
fbfb0a46
AB
33172020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
3318
3319 * ada-lang.c (ada_language_data): Delete la_print_type
3320 initializer.
3321 (ada_language::print_type): New member function.
3322 * c-lang.c (c_language_data): Delete la_print_type initializer.
3323 (c_language::print_type): New member function.
3324 (cplus_language_data): Delete la_print_type initializer.
3325 (cplus_language::print_type): New member function.
3326 (asm_language_data): Delete la_print_type initializer.
3327 (asm_language::print_type): New member function.
3328 (minimal_language_data): Delete la_print_type initializer.
3329 (minimal_language::print_type): New member function.
3330 * d-lang.c (d_language_data): Delete la_print_type initializer.
3331 (d_language::print_type): New member function.
3332 * f-lang.c (f_language_data): Delete la_print_type initializer.
3333 (f_language::print_type): New member function.
3334 * go-lang.c (go_language_data): Delete la_print_type initializer.
3335 (go_language::print_type): New member function.
3336 * language.c (unk_lang_print_type): Delete.
3337 (unknown_language_data): Delete la_print_type initializer.
3338 (unknown_language::print_type): New member function.
3339 (auto_language_data): Delete la_print_type initializer.
3340 (auto_language::print_type): New member function.
3341 * language.h (language_data): Delete la_print_type field.
3342 (language_defn::print_type): New function.
3343 (LA_PRINT_TYPE): Update.
3344 * m2-lang.c (m2_language_data): Delete la_print_type initializer.
3345 (m2_language::print_type): New member function.
3346 * objc-lang.c (objc_language_data): Delete la_print_type
3347 initializer.
3348 (objc_language::print_type): New member function.
3349 * opencl-lang.c (opencl_print_type): Delete, implementation moved
3350 to opencl_language::print_type.
3351 (opencl_language_data): Delete la_print_type initializer.
3352 (opencl_language::print_type): New member function, implementation
3353 from opencl_print_type.
3354 * p-lang.c (pascal_language_data): Delete la_print_type
3355 initializer.
3356 (pascal_language::print_type): New member function.
3357 * rust-lang.c (rust_print_type): Delete, implementation moved to
3358 rust_language::print_type.
3359 (rust_language_data): Delete la_print_type initializer.
3360 (rust_language::print_type): New member function, implementation
3361 from rust_print_type.
3362
6f827019
AB
33632020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
3364
3365 * ada-lang.c (ada_sniff_from_mangled_name): Delete function,
3366 implementation moves to...
3367 (ada_language::sniff_from_mangled_name): ...here. Update return
3368 type.
3369 (ada_language_data): Delete la_sniff_from_mangled_name
3370 initializer.
3371 * c-lang.c (c_language_data): Likewise.
3372 (cplus_language_data): Likewise.
3373 (cplus_language::sniff_from_mangled_name): New member function,
3374 implementation taken from gdb_sniff_from_mangled_name.
3375 (asm_language_data): Delete la_sniff_from_mangled_name
3376 initializer.
3377 (minimal_language_data): Likewise.
3378 * cp-support.c (gdb_sniff_from_mangled_name): Delete,
3379 implementation moves to cplus_language::sniff_from_mangled_name.
3380 * cp-support.h (gdb_sniff_from_mangled_name): Delete declaration.
3381 * d-lang.c (d_sniff_from_mangled_name): Delete, implementation
3382 moves to...
3383 (d_language::sniff_from_mangled_name): ...here.
3384 (d_language_data): Delete la_sniff_from_mangled_name initializer.
3385 * f-lang.c (f_language_data): Likewise.
3386 * go-lang.c (go_sniff_from_mangled_name): Delete, implementation
3387 moves to...
3388 (go_language::sniff_from_mangled_name): ...here.
3389 (go_language_data): Delete la_sniff_from_mangled_name initializer.
3390 * language.c (language_sniff_from_mangled_name): Delete.
3391 (unknown_language_data): Delete la_sniff_from_mangled_name
3392 initializer.
3393 (auto_language_data): Likewise.
3394 * language.h (language_data): Delete la_sniff_from_mangled_name
3395 field.
3396 (language_defn::sniff_from_mangled_name): New function.
3397 (language_sniff_from_mangled_name): Delete declaration.
3398 * m2-lang.c (m2_language_data): Delete la_sniff_from_mangled_name
3399 field.
3400 * objc-lang.c (objc_sniff_from_mangled_name): Delete,
3401 implementation moves to...
3402 (objc_language::sniff_from_mangled_name): ...here.
3403 (objc_language_data): Delete la_sniff_from_mangled_name initializer.
3404 * opencl-lang.c (opencl_language_data): Likewise.
3405 * p-lang.c (pascal_language_data): Likewise.
3406 * rust-lang.c (rust_sniff_from_mangled_name): Delete,
3407 implementation moves to...
3408 (rust_language::sniff_from_mangled_name): ...here.
3409 (rust_language_data): Delete la_sniff_from_mangled_name
3410 initializer.
3411 * symtab.c (symbol_find_demangled_name): Call
3412 sniff_from_mangled_name member function.
3413
fb8006fd
AB
34142020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
3415
3416 * ada-lang.c (ada_language_data): Delete la_search_name_hash
3417 initializer.
3418 * c-lang.c (c_language_data): Likewise.
3419 (cplus_language_data): Likewise.
3420 (cplus_language::search_name_hash): New member function.
3421 (asm_language_data): Delete la_search_name_hash initializer.
3422 (minimal_language_data): Likewise.
3423 * d-lang.c (d_language_data): Likewise.
3424 * dictionary.c (default_search_name_hash): Rename to...
3425 (language_defn::search_name_hash): ...this.
3426 * f-lang.c (f_language_data): Likewise.
3427 (f_language::search_name_hash): New member function.
3428 * go-lang.c (go_language_data): Delete la_search_name_hash
3429 initializer.
3430 * language.c (unknown_language_data): Likewise.
3431 (auto_language_data): Likewise.
3432 * language.h (struct language_data): Delete la_search_name_hash
3433 field.
3434 (language_defn::search_name_hash): Declare new member function.
3435 (default_search_name_hash): Delete declaration.
3436 * m2-lang.c (m2_language_data): Delete la_search_name_hash
3437 initializer.
3438 * objc-lang.c (objc_language_data): Likewise.
3439 * opencl-lang.c (opencl_language_data): Likewise.
3440 * p-lang.c (pascal_language_data): Likewise.
3441 * rust-lang.c (rust_language_data): Likewise.
3442 * symtab.c (search_name_hash): Update call.
3443
8e25bafe
AB
34442020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
3445
3446 * ada-lang.c (ada_language_data): Delete la_get_compile_instance
3447 initializer.
3448 * c-lang.c (class compile_instance): Declare.
3449 (c_language_data): Delete la_get_compile_instance initializer.
3450 (c_language::get_compile_instance): New member function.
3451 (cplus_language_data): Delete la_get_compile_instance initializer.
3452 (cplus_language::get_compile_instance): New member function.
3453 (asm_language_data): Delete la_get_compile_instance initializer.
3454 (minimal_language_data): Likewise.
3455 * c-lang.h (c_get_compile_context): Update comment.
3456 (cplus_get_compile_context): Update comment.
3457 * compile/compile.c (compile_to_object): Update calls, don't rely
3458 on function pointer being NULL.
3459 * d-lang.c (d_language_data): Delete la_get_compile_instance
3460 initializer.
3461 * f-lang.c (f_language_data): Likewise.
3462 * go-lang.c (go_language_data): Likewise.
3463 * language.c (unknown_language_data): Likewise.
3464 (auto_language_data): Likewise.
3465 * language.h (language_data): Delete la_get_compile_instance field.
3466 (language_defn::get_compile_instance): New member function.
3467 * m2-lang.c (m2_language_data): Delete la_get_compile_instance
3468 initializer.
3469 * objc-lang.c (objc_language_data): Likewise.
3470 * opencl-lang.c (opencl_language_data): Likewise.
3471 * p-lang.c (pascal_language_data): Likewise.
3472 * rust-lang.c (rust_language_data): Likewise.
3473
4009ee92
AB
34742020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
3475
3476 * ada-lang.c (ada_add_all_symbols): Update comment.
3477 (ada_iterate_over_symbols): Delete, move implementation to...
3478 (ada_language::iterate_over_symbols): ...here, a new member
3479 function, rewrite to use range based for loop.
3480 (ada_language_data): Delete la_iterate_over_symbols initializer.
3481 * c-lang.c (c_language_data): Likewise.
3482 (cplus_language_data): Likewise.
3483 (asm_language_data): Likewise.
3484 (minimal_language_data): Likewise.
3485 * d-lang.c (d_language_data): Likewise.
3486 * f-lang.c (f_language_data): Likewise.
3487 * go-lang.c (go_language_data): Likewise.
3488 * language.c (unknown_language_data): Likewise.
3489 (auto_language_data): Likewise.
3490 * language.h (language_data): Delete la_iterate_over_symbols field.
3491 (language_defn::iterate_over_symbols): New member function.
3492 (LA_ITERATE_OVER_SYMBOLS): Update.
3493 * linespec.c (iterate_over_all_matching_symtabs): Update.
3494 * m2-lang.c (m2_language_data): Delete la_iterate_over_symbols
3495 initializer.
3496 * objc-lang.c (objc_language_data): Likewise.
3497 * opencl-lang.c (opencl_language_data): Likewise.
3498 * p-lang.c (pascal_language_data): Likewise.
3499 * rust-lang.c (rust_language_data): Likewise.
3500
54f4ca46
AB
35012020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
3502
3503 * ada-lang.c (ada_language_data): Delete
3504 la_lookup_transparent_type initializer.
3505 * c-lang.c (c_language_data): Likewise.
3506 (cplus_language_data): Likewise.
3507 (cplus_language::lookup_transparent_type): New member function.
3508 (asm_language_data): Delete la_lookup_transparent_type
3509 initializer.
3510 (minimal_language_data): Likewise.
3511 * d-lang.c (d_language_data): Likewise.
3512 * f-lang.c (f_language_data): Likewise.
3513 * go-lang.c (go_language_data): Likewise.
3514 * language.c (unknown_language_data): Likewise.
3515 (auto_language_data): Likewise.
3516 * language.h (struct language_data): Delete
3517 la_lookup_transparent_type field.
3518 (language_defn::lookup_transparent_type): New member function.
3519 * m2-lang.c (m2_language_data): Delete la_lookup_transparent_type
3520 initializer.
3521 * objc-lang.c (objc_language_data): Likewise.
3522 * opencl-lang.c (opencl_language_data): Likewise.
3523 * p-lang.c (pascal_language_data): Likewise.
3524 * rust-lang.c (rust_language_data): Likewise.
3525 * symtab.c (symbol_matches_domain): Update call.
3526
1fb314aa
AB
35272020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
3528
3529 * ada-lang.c (ada_language_arch_info): Delete function, move
3530 implementation to...
3531 (ada_language::language_arch_info): ...here, a new member
3532 function.
3533 (ada_language_data): Delete la_language_arch_info.
3534 * c-lang.c (c_language_data): Likewise.
3535 (c_language::language_arch_info): New member function.
3536 (cplus_language_arch_info): Delete function, move
3537 implementation to...
3538 (cplus_language::language_arch_info): ...here, a new member
3539 function.
3540 (cplus_language_data): Delete la_language_arch_info.
3541 (asm_language_data): Likewise.
3542 (asm_language::language_arch_info): New member function.
3543 (minimal_language_data): Delete la_language_arch_info.
3544 (minimal_language::language_arch_info): New member function.
3545 * d-lang.c (d_language_arch_info): Delete function, move
3546 implementation to...
3547 (d_language::language_arch_info): ...here, a new member
3548 function.
3549 (d_language_data): Delete la_language_arch_info.
3550 * f-lang.c (f_language_arch_info): Delete function, move
3551 implementation to...
3552 (f_language::language_arch_info): ...here, a new member
3553 function.
3554 (f_language_data): Delete la_language_arch_info.
3555 * go-lang.c (go_language_arch_info): Delete function, move
3556 implementation to...
3557 (go_language::language_arch_info): ...here, a new member
3558 function.
3559 (go_language_data): Delete la_language_arch_info.
3560 * language.c (unknown_language_data): Likewise.
3561 (unknown_language::language_arch_info): New member function.
3562 (auto_language_data): Delete la_language_arch_info.
3563 (auto_language::language_arch_info): New member function.
3564 (language_gdbarch_post_init): Update call to
3565 la_language_arch_info.
3566 * language.h (language_data): Delete la_language_arch_info
3567 function pointer.
3568 (language_defn::language_arch_info): New function.
3569 * m2-lang.c (m2_language_arch_info): Delete function, move
3570 implementation to...
3571 (m2_language::language_arch_info): ...here, a new member
3572 function.
3573 (m2_language_data): Delete la_language_arch_info.
3574 * objc-lang.c (objc_language_arch_info): Delete function, move
3575 implementation to...
3576 (objc_language::language_arch_info): ...here, a new member
3577 function.
3578 (objc_language_data): Delete la_language_arch_info.
3579 * opencl-lang.c (opencl_language_arch_info): Delete function, move
3580 implementation to...
3581 (opencl_language::language_arch_info): ...here, a new member
3582 function.
3583 (opencl_language_data): Delete la_language_arch_info.
3584 * p-lang.c (pascal_language_arch_info): Delete function, move
3585 implementation to...
3586 (pascal_language::language_arch_info): ...here, a new member
3587 function.
3588 (pascal_language_data): Delete la_language_arch_info.
3589 * rust-lang.c (rust_language_arch_info): Delete function, move
3590 implementation to...
3591 (rust_language::language_arch_info): ...here, a new member
3592 function.
3593 (rust_language_data): Delete la_language_arch_info.
3594
48448202
AB
35952020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
3596
3597 * ada-lang.c (ada_language_data): Delete la_pass_by_reference
3598 initializer.
3599 * c-lang.c (c_language_data): Likewise.
3600 (cplus_language_data): Likewise.
3601 (cplus_language::pass_by_reference_info): New method.
3602 (asm_language_data): Delete la_pass_by_reference initializer.
3603 (minimal_language_data): Likewise.
3604 * cp-abi.c (cp_pass_by_reference): Remove use of
3605 default_pass_by_reference.
3606 * d-lang.c (d_language_data): Likewise.
3607 * f-lang.c (f_language_data): Likewise.
3608 * gnu-v3-abi.c (gnuv3_pass_by_reference): Remove use of
3609 default_pass_by_reference.
3610 * go-lang.c (go_language_data): Likewise.
3611 * language.c (language_pass_by_reference): Update.
3612 (default_pass_by_reference): Delete.
3613 (unknown_language_data): Delete la_pass_by_reference
3614 initializer.
3615 (auto_language_data): Likewise.
3616 * language.h (struct language_data): Delete la_pass_by_reference
3617 field.
3618 (language_defn::pass_by_reference_info): New member function.
3619 (default_pass_by_reference): Delete declaration.
3620 * m2-lang.c (m2_language_data): Delete la_pass_by_reference
3621 initializer.
3622 * objc-lang.c (objc_language_data): Likewise.
3623 * opencl-lang.c (opencl_language_data): Likewise.
3624 * p-lang.c (pascal_language_data): Likewise.
3625 * rust-lang.c (rust_language_data): Likewise.
3626
15e5fd35
AB
36272020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
3628
3629 * ada-lang.c (ada_read_var_value): Delete function, move
3630 implementation to...
3631 (ada_language::read_var_value): ...here.
3632 (ada_language_data): Delete la_read_var_value initializer.
3633 * c-lang.c (c_language_data): Likewise.
3634 (cplus_language_data): Likewise.
3635 (minimal_language_data): Likewise.
3636 * d-lang.c (d_language_data): Likewise.
3637 * f-lang.c (f_language_data): Likewise.
3638 * findvar.c (default_read_var_value): Rename to...
3639 (language_defn::read_var_value): ...this.
3640 * findvar.c (read_var_value): Update header comment, and change to
3641 call member function instead of function pointer.
3642 * go-lang.c (go_language_data): Likewise.
3643 * language.c (unknown_language_data): Delete la_read_var_value
3644 initializer.
3645 (auto_language_data): Likewise.
3646 * language.h (struct language_data): Delete la_read_var_value
3647 field.
3648 (language_defn::read_var_value): New member function.
3649 (default_read_var_value): Delete declaration.
3650 * m2-lang.c (m2_language_data): Delete la_read_var_value
3651 initializer.
3652 * objc-lang.c (objc_language_data): Likewise.
3653 * opencl-lang.c (opencl_language_data): Likewise.
3654 * p-lang.c (pascal_language_data): Likewise.
3655 * rust-lang.c (rust_language_data): Likewise.
3656 * value.h (default_read_var_value): Delete declaration.
3657
5bd40f2a
AB
36582020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
3659
3660 * ada-lang.c (ada_print_array_index): Delete function, move
3661 implementation to...
3662 (ada_language::print_array_index): ...here.
3663 (ada_language_data): Delete la_print_array_index initializer.
3664 * c-lang.c (c_language_data): Likewise.
3665 (cplus_language_data): Likewise.
3666 (minimal_language_data): Likewise.
3667 * d-lang.c (d_language_data): Likewise.
3668 * f-lang.c (f_language_data): Likewise.
3669 * go-lang.c (go_language_data): Likewise.
3670 * language.c (default_print_array_index): Delete function, move
3671 implementation to...
3672 (language_defn::print_array_index): ...here.
3673 (unknown_language_data): Delete la_print_array_index initializer.
3674 (auto_language_data): Likewise.
3675 * language.h (struct language_data): Delete la_print_array_index
3676 field.
3677 (language_defn::print_array_index): New member function.
3678 (LA_PRINT_ARRAY_INDEX): Update.
3679 (default_print_array_index): Delete declaration.
3680 * m2-lang.c (m2_language_data): Delete la_print_array_index
3681 initializer.
3682 * objc-lang.c (objc_language_data): Likewise.
3683 * opencl-lang.c (opencl_language_data): Likewise.
3684 * p-lang.c (pascal_language_data): Likewise.
3685 * rust-lang.c (rust_language_data): Likewise.
3686
0874fd07
AB
36872020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
3688
3689 * gdb/ada-lang.c (ada_language_defn): Convert to...
3690 (ada_language_data): ...this.
3691 (class ada_language): New class.
3692 (ada_language_defn): New static global.
3693 * gdb/c-lang.c (c_language_defn): Convert to...
3694 (c_language_data): ...this.
3695 (class c_language): New class.
3696 (c_language_defn): New static global.
3697 (cplus_language_defn): Convert to...
3698 (cplus_language_data): ...this.
3699 (class cplus_language): New class.
3700 (cplus_language_defn): New static global.
3701 (asm_language_defn): Convert to...
3702 (asm_language_data): ...this.
3703 (class asm_language): New class.
3704 (asm_language_defn): New static global.
3705 (minimal_language_defn): Convert to...
3706 (minimal_language_data): ...this.
3707 (class minimal_language): New class.
3708 (minimal_language_defn): New static global.
3709 * gdb/d-lang.c (d_language_defn): Convert to...
3710 (d_language_data): ...this.
3711 (class d_language): New class.
3712 (d_language_defn): New static global.
3713 * gdb/f-lang.c (f_language_defn): Convert to...
3714 (f_language_data): ...this.
3715 (class f_language): New class.
3716 (f_language_defn): New static global.
3717 * gdb/go-lang.c (go_language_defn): Convert to...
3718 (go_language_data): ...this.
3719 (class go_language): New class.
3720 (go_language_defn): New static global.
3721 * gdb/language.c (unknown_language_defn): Remove declaration.
3722 (current_language): Initialize to nullptr, real initialization is
3723 moved to _initialize_language.
3724 (languages): Delete global.
3725 (language_defn::languages): Define.
3726 (set_language_command): Use language_defn::languages.
3727 (set_language): Likewise.
3728 (range_error): Likewise.
3729 (language_enum): Likewise.
3730 (language_def): Likewise.
3731 (add_set_language_command): Use language_def::languages for the
3732 language list, and language_def to lookup language pointers.
3733 (skip_language_trampoline): Use language_defn::languages.
3734 (unknown_language_defn): Convert to...
3735 (unknown_language_data): ...this.
3736 (class unknown_language): New class.
3737 (unknown_language_defn): New static global.
3738 (auto_language_defn): Convert to...
3739 (auto_language_data): ...this.
3740 (class auto_language): New class.
3741 (auto_language_defn): New static global.
3742 (language_gdbarch_post_init): Use language_defn::languages.
3743 (_initialize_language): Initialize current_language.
3744 * gdb/language.h (struct language_defn): Rename to...
3745 (struct language_data): ...this.
3746 (struct language_defn): New.
3747 (auto_language_defn): Delete.
3748 (unknown_language_defn): Delete.
3749 (minimal_language_defn): Delete.
3750 (ada_language_defn): Delete.
3751 (asm_language_defn): Delete.
3752 (c_language_defn): Delete.
3753 (cplus_language_defn): Delete.
3754 (d_language_defn): Delete.
3755 (f_language_defn): Delete.
3756 (go_language_defn): Delete.
3757 (m2_language_defn): Delete.
3758 (objc_language_defn): Delete.
3759 (opencl_language_defn): Delete.
3760 (pascal_language_defn): Delete.
3761 (rust_language_defn): Delete.
3762 * gdb/m2-lang.c (m2_language_defn): Convert to...
3763 (m2_language_data): ...this.
3764 (class m2_language): New class.
3765 (m2_language_defn): New static global.
3766 * gdb/objc-lang.c (objc_language_defn): Convert to...
3767 (objc_language_data): ...this.
3768 (class objc_language): New class.
3769 (objc_language_defn): New static global.
3770 * gdb/opencl-lang.c (opencl_language_defn): Convert to...
3771 (opencl_language_data): ...this.
3772 (class opencl_language): New class.
3773 (opencl_language_defn): New static global.
3774 * gdb/p-lang.c (pascal_language_defn): Convert to...
3775 (pascal_language_data): ...this.
3776 (class pascal_language): New class.
3777 (pascal_language_defn): New static global.
3778 * gdb/rust-exp.y (rust_lex_tests): Use language_def to find
3779 language pointer, update comment format.
3780 * gdb/rust-lang.c (rust_language_defn): Convert to...
3781 (rust_language_data): ...this.
3782 (class rust_language): New class.
3783 (rust_language_defn): New static global.
3784
1313c56e
AB
37852020-06-01 Andrew Burgess <andrew.burgess@embecosm.com>
3786
3787 * dwarf2/read.c (class lnp_state_machine) <m_last_address>: New
3788 member variable.
3789 <m_stmt_at_address>: New member variable.
3790 (lnp_state_machine::record_line): Don't record some lines, update
3791 tracking of is_stmt at the same address.
3792 (lnp_state_machine::lnp_state_machine): Initialise new member
3793 variables.
3794
b7ed9f3d
ST
37952020-06-01 Samuel Thibault <samuel.thibault@ens-lyon.org>
3796
3797 * config/i386/i386gnu.mn [%_S.o %_U.o] (COMPILE.post): Add
3798 "-include gnu-nat-mig.h".
3799 * gnu-nat-mig.h: New file.
3800 * gnu-nat.c: Include "gnu-nat-mig.h".
3801 (exc_server, msg_reply_server, notify_server,
3802 process_reply_server): Remove declarations.
3803
14a8ad62
ST
38042020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
3805
3806 * gnu-nat.h (inf_validate_procs, inf_suspend, inf_set_traced,
3807 steal_exc_port, proc_get_state, inf_clear_wait, inf_cleanup,
3808 inf_startup, inf_update_suspends, inf_set_pid, inf_steal_exc_ports,
3809 inf_validate_procinfo, inf_validate_task_sc, inf_restore_exc_ports,
3810 inf_set_threads_resume_sc, inf_set_threads_resume_sc_for_signal_thread,
3811 inf_resume, inf_set_step_thread, inf_detach, inf_attach, inf_signal,
3812 inf_continue, make_proc, proc_abort, _proc_free, proc_update_sc,
3813 proc_get_exception_port, proc_set_exception_port, _proc_get_exc_port,
3814 proc_steal_exc_port, proc_restore_exc_port, proc_trace): Move functions
3815 to gnu_nat_target class.
3816 * gnu-nat.c: Likewise.
3817 (inf_update_procs, S_proc_wait_reply, set_task_pause_cmd,
3818 set_task_exc_port_cmd, set_signals_cmd, set_thread_pause_cmd,
3819 set_thread_exc_port_cmd): Call inf_validate_procs through gnu_target
3820 object.
3821 (gnu_nat_target::create_inferior, gnu_nat_target::detach): Pass `this'
3822 instead of `gnu_target'.
3823
0af5e106
ST
38242020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
3825
3826 * i386-gnu-tdep.c: Include "gdbcore.h"
3827 (gnu_sigtramp_code, i386_gnu_sc_reg_offset): New arrays.
3828 (GNU_SIGTRAMP_LEN, GNU_SIGTRAMP_TAIL,
3829 I386_GNU_SIGCONTEXT_THREAD_STATE_OFFSET): New macros
3830 (i386_gnu_sigtramp_start, i386_gnu_sigtramp_p,
3831 i386_gnu_sigcontext_addr): New functions
3832 (i386gnu_init_abi): Register i386_gnu_sigtramp_p,
3833 i386_gnu_sigcontext_addr, and i386_gnu_sc_reg_offset in the gdbarch
3834 tdep.
3835
078f2fc9
ST
38362020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
3837
3838 * gnu-nat.c (gnu_nat_target::create_inferior): Move push_target call
3839 before fork_inferior call. Avoid calling it if target_is_pushed returns
3840 true.
3841
53dff92c
ST
38422020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
3843
3844 * gnu-nat.h (gnu_target): New variable declaration.
3845 * i386-gnu-nat.c (_initialize_i386gnu_nat): Initialize
3846 gnu_target.
3847 * gnu-nat.c (gnu_target): New variable.
3848 (inf_validate_procs): Pass gnu_target to thread_change_ptid,
3849 add_thread_silent, and add_thread calls.
3850 (gnu_nat_target::create_inferior): Pass gnu_target to
3851 add_thread_silent, thread_change_ptid call.
3852 (gnu_nat_target::detach): Pass gnu_target to detach_inferior
3853 call.
3854
5a8b8627
ST
38552020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
3856
3857 * gnu-nat.c (gnu_xfer_auxv): Remove unused `res' variable.
3858 (gnu_nat_target::find_memory_regions): Remove unused
3859 `old_address' variable.
3860
366f550a
ST
38612020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
3862
3863 * gnu-nat.c: Include "gdbarch.h".
3864
f14871bf
ST
38652020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
3866
3867 * reply_mig_hack.awk (Error return): Cast function through
3868 void *, to bypass compiler function call check.
3869
c6887cfb
ST
38702020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
3871
3872 * config/i386/i386gnu.mn (%_reply_S.c): Add dependency on
3873 $(srcdir)/reply_mig_hack.awk.
3874
6930bffe
ST
38752020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
3876
3877 * gnu-nat.h (gnu_debug_flag): Set type to bool.
3878
112c22ed
JG
38792020-05-30 Jonny Grant <jg@jguk.org>
3880
3881 * configure.ac (ACX_BUGURL): change bug URL to https.
3882
f68f85b5
PA
38832020-05-30 Pedro Alves <palves@redhat.com>
3884
3885 * cp-support.c (replace_typedefs_template): New.
3886 (replace_typedefs_qualified_name): Handle
3887 DEMANGLE_COMPONENT_TEMPLATE.
3888
976ca316
SM
38892020-05-29 Simon Marchi <simon.marchi@efficios.com>
3890
3891 * dwarf2/comp-unit.c, dwarf2/comp-unit.h, dwarf2/index-cache.c,
3892 dwarf2/index-cache.h, dwarf2/index-write.c,
3893 dwarf2/index-write.h, dwarf2/line-header.c,
3894 dwarf2/line-header.h, dwarf2/macro.c, dwarf2/macro.h,
3895 dwarf2/read.c, dwarf2/read.h: Rename struct dwarf2_per_objfile
3896 variables and fields from `dwarf2_per_objfile` to just
3897 `per_objfile` throughout.
3898
989ade05
SM
38992020-05-28 Simon Marchi <simon.marchi@polymtl.ca>
3900
3901 * dwarf2/loc.c (class dwarf_evaluate_loc_desc)
3902 <push_dwarf_reg_entry_value>: Add comment.
3903
c47bae85
KB
39042020-05-28 Kevin Buettner <kevinb@redhat.com>
3905 Keith Seitz <keiths@redhat.com>
3906
3907 * python/python.c (do_start_initialization): Call PyEval_SaveThread
3908 instead of PyEval_ReleaseLock.
3909 (class gdbpy_gil): Move to earlier in file.
3910 (finalize_python): Set gdb_python_initialized.
3911 (gdbpy_check_quit_flag): Acquire GIL via gdbpy_gil. Return early
3912 when not initialized.
3913
44486dcf
SM
39142020-05-28 Simon Marchi <simon.marchi@efficios.com>
3915
3916 * dwarf2/loc.c (class dwarf_evaluate_loc_desc)
3917 <push_dwarf_reg_entry_value>: Remove assert. Override
3918 per_objfile with caller_per_objfile.
3919
f030440d
TV
39202020-05-28 Tom de Vries <tdevries@suse.de>
3921
3922 * dwarf2/read.c (dw2_symtab_iter_next, dw2_expand_marked_cus): Limit
3923 PR gold/15646 workaround to symbol kind "type".
3924
f0fbb768
TT
39252020-05-27 Tom Tromey <tromey@adacore.com>
3926
3927 * dwarf2/read.c (load_partial_dies): Use add_partial_symbol.
3928
af0b2a3e
TT
39292020-05-27 Tom Tromey <tromey@adacore.com>
3930
3931 * dwarf2/abbrev.h (struct abbrev_table) <lookup_abbrev>: Inline.
3932 Use htab_find_with_hash.
3933 <add_abbrev>: Remove "abbrev_number" parameter.
3934 * dwarf2/abbrev.c (abbrev_table::add_abbrev): Remove
3935 "abbrev_number" parameter. Use htab_find_slot_with_hash.
3936 (hash_abbrev): Add comment.
3937 (abbrev_table::lookup_abbrev): Move to header file.
3938 (abbrev_table::read): Update.
3939
7d00ffec
TT
39402020-05-27 Tom Tromey <tromey@adacore.com>
3941
3942 * dwarf2/read.c (struct partial_die_info) <name>: Declare new
3943 method.
3944 <canonical_name>: New member.
3945 <raw_name>: Rename from "name".
3946 (partial_die_info): Initialize canonical_name.
3947 (scan_partial_symbols): Check raw_name.
3948 (partial_die_parent_scope, partial_die_full_name)
3949 (add_partial_symbol, add_partial_subprogram)
3950 (add_partial_enumeration, load_partial_dies): Use "name" method.
3951 (partial_die_info::name): New method.
3952 (partial_die_info::read, guess_partial_die_structure_name)
3953 (partial_die_info::fixup): Update.
3954
697bba18
TT
39552020-05-27 Tom Tromey <tromey@adacore.com>
3956
3957 * dwarf2/attribute.h (struct attribute) <form_is_ref>: Inline.
3958 <get_ref_die_offset>: Inline.
3959 <get_ref_die_offset_complaint>: New method.
3960 * dwarf2/attribute.c (attribute::form_is_ref): Move to header.
3961 (attribute::get_ref_die_offset_complaint): Rename from
3962 get_ref_die_offset. Just issue complaint.
3963
c17ace43
HD
39642020-05-27 Hannes Domani <ssbssa@yahoo.de>
3965
3966 * cli/cli-cmds.c (shell_escape): Move exit_status_set_internal_vars.
3967
96445f0b
HD
39682020-05-27 Hannes Domani <ssbssa@yahoo.de>
3969
3970 * exec.c (exec_file_attach): Use errno value of first openp failure.
3971
ac637ec3
HD
39722020-05-27 Hannes Domani <ssbssa@yahoo.de>
3973
3974 * nat/windows-nat.c (windows_thread_info::~windows_thread_info):
3975 Don't close thread handle.
3976
17ee85fc
TT
39772020-05-27 Tom Tromey <tom@tromey.com>
3978 Simon Marchi <simon.marchi@efficios.com>
3979
3980 * objfiles.h (struct objfile) <partial_symtabs>: Now a
3981 shared_ptr.
3982 * dwarf2/read.h (struct dwarf2_per_objfile) <partial_symtabs>: New
3983 member.
3984 * dwarf2/read.c (dwarf2_per_bfd_bfd_data_key,
3985 dwarf2_per_bfd_objfile_data_key>: New globals.
3986 (dwarf2_has_info): Use shared dwarf2_per_bfd if possible.
3987 (dwarf2_get_section_info): Use get_dwarf2_per_objfile.
3988 (dwarf2_initialize_objfile): Consider cases where per_bfd can be
3989 shared.
3990 (dwarf2_build_psymtabs): Set objfile::partial_symtabs and
3991 short-circuit when sharing.
3992 (dwarf2_build_psymtabs): Set dwarf2_per_objfile::partial_symtabs.
3993 (dwarf2_psymtab::expand_psymtab): Use free_cached_comp_units.
3994
39b16f87
SM
39952020-05-27 Simon Marchi <simon.marchi@efficios.com>
3996
3997 * dwarf2/read.h (struct dwarf2_per_bfd) <line_header_hash>: Move
3998 to...
3999 (struct dwarf2_per_objfile) <line_header_hash>: ... here.
4000 * dwarf2/read.c (handle_DW_AT_stmt_list): Update.
4001
fcf23d5b
SM
40022020-05-27 Simon Marchi <simon.marchi@efficios.com>
4003
4004 * dwarf2/read.c (struct mapped_index_base) <symbol_name_at,
4005 build_name_components, find_name_components_bounds>:
4006 Add per_objfile parameter.
4007 (struct mapped_index) <symbol_name_at>: Likewise.
4008 (struct mapped_debug_names): Remove constructor.
4009 <dwarf2_per_objfile>: Remove field.
4010 <namei_to_name, symbol_name_at>: Add per_objfile parameter.
4011 (mapped_index_base::find_name_components_bounds,
4012 mapped_index_base::build_name_components,
4013 dw2_expand_symtabs_matching_symbol): Likewise.
4014 (class mock_mapped_index) <symbol_name_at>: Likewise.
4015 (check_match): Likewise.
4016 (check_find_bounds_finds): Likewise.
4017 (test_mapped_index_find_name_component_bounds): Update.
4018 (CHECK_MATCH): Update.
4019 (dw2_expand_symtabs_matching): Update.
4020 (class dw2_debug_names_iterator) <dw2_debug_names_iterator>: Add
4021 per_objfile parameter.
4022 <find_vec_in_debug_names>: Likewise.
4023 <m_per_objfile>: New field.
4024 (mapped_debug_names::namei_to_name): Add dwarf2_per_objfile
4025 parameter.
4026 (dw2_debug_names_iterator::find_vec_in_debug_names): Likewise.
4027 (dw2_debug_names_iterator::next): Update.
4028 (dw2_debug_names_lookup_symbol): Update.
4029 (dw2_debug_names_expand_symtabs_for_function): Update.
4030 (dw2_debug_names_map_matching_symbols): Update.
4031 (dw2_debug_names_expand_symtabs_matching): Update.
4032 (dwarf2_read_debug_names): Update.
4033
7188ed02
SM
40342020-05-27 Simon Marchi <simon.marchi@efficios.com>
4035
4036 * dwarf2/read.h (struct dwarf2_cu): Forward-declare.
4037 (struct dwarf2_per_bfd) <free_cached_comp_units>: Remove,
4038 move to dwarf2_per_objfile.
4039 <read_in_chain>: Remove.
4040 (struct dwarf2_per_objfile) <get_cu, set_cu, remove_cu,
4041 remove_all_cus, age_comp_units>: New methods.
4042 <m_dwarf2_cus>: New member.
4043 (struct dwarf2_per_cu_data) <cu>: Remove.
4044 * dwarf2/read.c (struct dwarf2_cu) <read_in_chain>: Remove.
4045 (age_cached_comp_units, free_one_cached_comp_unit): Remove,
4046 moved to methods of dwarf2_per_objfile.
4047 (dwarf2_clear_marks): Remove.
4048 (dwarf2_queue_item::~dwarf2_queue_item): Update.
4049 (dwarf2_per_bfd::~dwarf2_per_bfd): Don't free dwarf2_cus.
4050 (dwarf2_per_bfd::free_cached_comp_units): Remove.
4051 (dwarf2_per_objfile::remove_all_cus): New.
4052 (class free_cached_comp_units) <~free_cached_comp_units>:
4053 Update.
4054 (load_cu): Update.
4055 (dw2_do_instantiate_symtab): Adjust.
4056 (fill_in_sig_entry_from_dwo_entry): Adjust.
4057 (cutu_reader::init_tu_and_read_dwo_dies): Update.
4058 (cutu_reader::cutu_reader): Likewise.
4059 (cutu_reader::keep): Use dwarf2_per_objfile::set_cu.
4060 (cutu_reader::cutu_reader): Use dwarf2_per_objfile::get_cu.
4061 (process_psymtab_comp_unit): Use dwarf2_per_objfile::remove_cu
4062 and dwarf2_per_objfile::age_comp_units.
4063 (load_partial_comp_unit): Update.
4064 (maybe_queue_comp_unit): Use dwarf2_per_objfile::get_cu.
4065 (process_queue): Likewise.
4066 (find_partial_die): Use dwarf2_per_objfile::get_cu instead of cu
4067 backlink.
4068 (dwarf2_read_addr_index): Likewise.
4069 (follow_die_offset): Likewise.
4070 (dwarf2_fetch_die_loc_sect_off): Likewise.
4071 (dwarf2_fetch_constant_bytes): Likewise.
4072 (dwarf2_fetch_die_type_sect_off): Likewise.
4073 (follow_die_sig_1): Likewise.
4074 (load_full_type_unit): Likewise.
4075 (read_signatured_type): Likewise.
4076 (dwarf2_cu::dwarf2_cu): Don't set cu field.
4077 (dwarf2_cu::~dwarf2_cu): Remove.
4078 (dwarf2_per_objfile::get_cu): New.
4079 (dwarf2_per_objfile::set_cu): New.
4080 (age_cached_comp_units): Rename to...
4081 (dwarf2_per_objfile::age_comp_units): ... this. Adjust
4082 to std::unordered_map.
4083 (free_one_cached_comp_unit): Rename to...
4084 (dwarf2_per_objfile::remove_cu): ... this. Adjust
4085 to std::unordered_map.
4086 (dwarf2_per_objfile::~dwarf2_per_objfile): New.
4087 (dwarf2_mark_helper): Use dwarf2_per_objfile::get_cu, expect
4088 a dwarf2_per_objfile in data.
4089 (dwarf2_mark): Pass dwarf2_per_objfile in data to htab_traverse.
4090 (dwarf2_clear_marks): Remove.
4091
2e671100
SM
40922020-05-27 Simon Marchi <simon.marchi@efficios.com>
4093
4094 * dwarf2/read.c (class cutu_reader) <cutu_reader>: Replace
4095 `int use_existing_cu` parameter with `dwarf2_cu *existing_cu`.
4096 (init_tu_and_read_dwo_dies): Likewise.
4097 (cutu_reader::init_tu_and_read_dwo_dies): Likewise.
4098 (cutu_reader::cutu_reader): Likewise.
4099 (load_partial_comp_unit): Likewise.
4100 (process_psymtab_comp_unit): Update.
4101 (build_type_psymtabs_1): Update.
4102 (process_skeletonless_type_unit): Update.
4103 (load_full_comp_unit): Update.
4104 (find_partial_die): Update.
4105 (dwarf2_read_addr_index): Update.
4106 (read_signatured_type): Update.
4107
2e6a9f79
SM
41082020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
4109
4110 * dwarf2/read.h (struct dwarf2_per_cu_data) <m_header,
4111 m_header_read_in>: New fields.
4112 <get_header>: New method.
4113 * dwarf2/read.c (per_cu_header_read_in): Remove.
4114 (dwarf2_per_cu_data::get_header): New.
4115 (dwarf2_per_cu_data::addr_size): Update.
4116 (dwarf2_per_cu_data::offset_size): Update.
4117 (dwarf2_per_cu_data::ref_addr_size): Update.
4118
1b555f17
SM
41192020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
4120
4121 * dwarf2/read.c (load_cu): Return dwarf2_cu.
4122 (dw2_do_instantiate_symtab): Update.
4123 (queue_and_load_all_dwo_tus): Change parameter from
4124 dwarf2_per_cu_data to dwarf2_cu.
4125 (dwarf2_fetch_die_loc_sect_off): Update.
4126 (dwarf2_fetch_constant_bytes): Update.
4127 (dwarf2_fetch_die_type_sect_off): Update.
4128
8fc0b21d
SM
41292020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
4130
4131 * dwarf2/read.c (process_full_comp_unit,
4132 process_full_type_unit): Remove per_cu, per_objfile paramters.
4133 Add dwarf2_cu parameter.
4134 (process_queue): Update.
4135
168c9250
SM
41362020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
4137
4138 * dwarf2/read.c (create_cu_from_index_list): Replace
4139 dwarf2_per_objfile parameter with dwarf2_per_bfd.
4140 (create_cus_from_index_list): Likewise.
4141 (create_cus_from_index): Likewise.
4142 (create_signatured_type_table_from_index): Likewise.
4143 (create_cus_from_debug_names_list): Likewise.
4144 (create_cus_from_debug_names): Likewise.
4145 (dwarf2_read_gdb_index): Update.
4146 (dwarf2_read_debug_names): Update.
4147
e286671b
TT
41482020-05-27 Tom Tromey <tom@tromey.com>
4149 Simon Marchi <simon.marchi@efficios.com>
4150
4151 * dwarf2/read.h (struct dwarf2_per_objfile)
4152 <get_type_for_signatured_type, set_type_for_signatured_type>:
4153 New methods.
4154 <m_type_map>: New member.
4155 (struct signatured_type) <type>: Remove.
4156 * dwarf2/read.c
4157 (dwarf2_per_objfile::get_type_for_signatured_type,
4158 dwarf2_per_objfile::set_type_for_signatured_type): New.
4159 (get_signatured_type): Use new methods.
4160
8adb8487
TT
41612020-05-27 Tom Tromey <tom@tromey.com>
4162 Simon Marchi <simon.marchi@efficios.com>
4163
4164 * dwarf2/read.h (struct type_unit_group_unshareable): New.
4165 (struct dwarf2_per_objfile) <type_units>: New member.
4166 <get_type_unit_group_unshareable>: New method.
4167 * dwarf2/read.c (struct type_unit_group) <compunit_symtab,
4168 num_symtabs, symtabs>: Remove; move to
4169 type_unit_group_unshareable.
4170 (dwarf2_per_objfile::get_type_unit_group_unshareable): New.
4171 (process_full_type_unit, dwarf2_cu::setup_type_unit_groups)
4172 (dwarf2_cu::setup_type_unit_groups): Use type_unit_group_unshareable.
4173
127bbf4b
SM
41742020-05-27 Simon Marchi <simon.marchi@efficios.com>
4175
4176 * dwarf2/read.h (struct dwarf2_per_cu_data):
4177 <dwarf2_per_objfile>: Remove.
4178 * dwarf2/read.c (create_cu_from_index_list): Don't assign
4179 dwarf2_per_objfile.
4180 (create_signatured_type_table_from_index): Likewise.
4181 (create_signatured_type_table_from_debug_names): Likewise.
4182 (create_debug_type_hash_table): Likewise.
4183 (fill_in_sig_entry_from_dwo_entry): Likewise.
4184 (create_type_unit_group): Likewise.
4185 (read_comp_units_from_section): Likewise.
4186 (create_cus_hash_table): Likewise.
4187
f6e649dd
SM
41882020-05-27 Simon Marchi <simon.marchi@efficios.com>
4189
4190 * dwarf2/read.c (process_psymtab_comp_unit): Remove reference to
4191 dwarf2_per_cu_data::dwarf2_per_objfile.
4192 (compute_compunit_symtab_includes): Likewise.
4193 (dwarf2_cu::start_symtab): Likewise.
4194
aa66c379
SM
41952020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
4196
4197 * dwarf2/read.h (dwarf2_get_die_type): Add dwarf2_per_objfile
4198 parameter.
4199 * dwarf2/read.c (get_die_type_at_offset): Likewise.
4200 (read_namespace_alias): Update.
4201 (lookup_die_type): Update.
4202 (dwarf2_get_die_type): Add dwarf2_per_objfile parameter.
4203 * dwarf2/loc.c (class dwarf_evaluate_loc_desc) <get_base_type>:
4204 Update.
4205 (disassemble_dwarf_expression): Update.
4206
120ce1b5
SM
42072020-05-27 Simon Marchi <simon.marchi@efficios.com>
4208
4209 * dwarf2/read.h (struct dwarf2_queue_item): Add
4210 dwarf2_per_objfile parameter, assign new parameter.
4211 <per_objfile>: New field.
4212 * dwarf2/read.c (free_one_cached_comp_unit): Add
4213 dwarf2_per_objfile parameter.
4214 (queue_comp_unit): Likewise.
4215 (dw2_do_instantiate_symtab): Update.
4216 (process_psymtab_comp_unit): Update.
4217 (maybe_queue_comp_unit): Add dwarf2_per_objfile parameter.
4218 (process_imported_unit_die): Update.
4219 (queue_and_load_dwo_tu): Update.
4220 (follow_die_offset): Update.
4221 (follow_die_sig_1): Update.
4222
9f47c707
SM
42232020-05-27 Simon Marchi <simon.marchi@efficios.com>
4224
4225 * dwarf2/read.h (struct dwarf2_per_cu_data) <objfile>: Remove.
4226 * dwarf2/read.c (dwarf2_compute_name): Pass per_objfile down.
4227 (read_call_site_scope): Assign per_objfile.
4228 (dwarf2_per_cu_data::objfile): Remove.
4229 * gdbtypes.h (struct call_site) <per_objfile>: New member.
4230 * dwarf2/loc.h (dwarf2_evaluate_loc_desc): Add
4231 dwarf2_per_objfile parameter.
4232 * dwarf2/loc.c (dwarf2_evaluate_loc_desc_full): Add
4233 dwarf2_per_objfile parameter.
4234 (dwarf_expr_reg_to_entry_parameter): Add output
4235 dwarf2_per_objfile parameter.
4236 (locexpr_get_frame_base): Update.
4237 (class dwarf_evaluate_loc_desc) <get_tls_address>: Update.
4238 <push_dwarf_reg_entry_value>: Update.
4239 <call_site_to_target_addr>: Update.
4240 (dwarf_entry_parameter_to_value): Add dwarf2_per_objfile
4241 parameter.
4242 (value_of_dwarf_reg_entry): Update.
4243 (rw_pieced_value): Update.
4244 (indirect_synthetic_pointer): Update.
4245 (dwarf2_evaluate_property): Update.
4246 (dwarf2_loc_desc_get_symbol_read_needs): Add dwarf2_per_objfile
4247 parameter.
4248 (locexpr_read_variable): Update.
4249 (locexpr_get_symbol_read_needs): Update.
4250 (loclist_read_variable): Update.
4251
14095eb3
SM
42522020-05-27 Simon Marchi <simon.marchi@efficios.com>
4253
4254 * dwarf2/read.h (dwarf2_fetch_die_loc_sect_off,
4255 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
4256 dwarf2_fetch_die_type_sect_off): Add dwarf2_per_objfile
4257 parameter.
4258 * dwarf2/read.c (dwarf2_fetch_die_loc_sect_off,
4259 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
4260 dwarf2_fetch_die_type_sect_off): Add dwarf2_per_objfile
4261 parameter.
4262 * dwarf2/loc.c (indirect_synthetic_pointer, per_cu_dwarf_call,
4263 sect_variable_value): Add dwarf2_per_objfile parameter.
4264 (class dwarf_evaluate_loc_desc) <dwarf_call,
4265 dwarf_variable_value>: Update.
4266 (fetch_const_value_from_synthetic_pointer): Add
4267 dwarf2_per_objfile parameter.
4268 (fetch_const_value_from_synthetic_pointer): Update.
4269 (coerced_pieced_ref): Update.
4270 (class symbol_needs_eval_context) <dwarf_call,
4271 dwarf_variable_value>: Update.
4272 (dwarf2_compile_expr_to_ax): Update.
4273
3c3cd3d4
SM
42742020-05-27 Simon Marchi <simon.marchi@efficios.com>
4275
4276 * dwarf2/loc.c (allocate_piece_closure): Add dwarf2_per_objfile
4277 parameter.
4278 (dwarf2_evaluate_loc_desc_full): Update.
4279
82ca3f51
SM
42802020-05-27 Simon Marchi <simon.marchi@efficios.com>
4281
4282 * dwarf2/read.h (dwarf2_read_addr_index): Add dwarf2_per_objfile
4283 parameter.
4284 * dwarf2/read.c (dwarf2_read_addr_index): Likewise.
4285 * dwarf2/loc.c (decode_debug_loclists_addresses): Add
4286 dwarf2_per_objfile parameter.
4287 (decode_debug_loc_dwo_addresses): Likewise.
4288 (dwarf2_find_location_expression): Update.
4289 (class dwarf_evaluate_loc_desc) <get_addr_index>: Update.
4290 (locexpr_describe_location_piece): Add dwarf2_per_objfile
4291 parameter.
4292 (disassemble_dwarf_expression): Add dwarf2_per_objfile
4293 parameter.
4294 (locexpr_describe_location_1): Likewise.
4295 (locexpr_describe_location): Update.
4296
4b167ea1
SM
42972020-05-27 Simon Marchi <simon.marchi@efficios.com>
4298
4299 * dwarf2/read.h (struct dwarf2_per_cu_data) <text_offset>:
4300 Remove.
4301 * dwarf2/read.c (dwarf2_per_cu_data::text_offset): Remove.
4302 * dwarf2/loc.c (dwarf2_find_location_expression): Update.
4303 (dwarf2_compile_property_to_c): Update.
4304 (dwarf2_compile_expr_to_ax): Add dwarf2_per_objfile parameter,
4305 use text offset from objfile.
4306 (locexpr_tracepoint_var_ref): Update.
4307 (locexpr_generate_c_location): Update.
4308 (loclist_describe_location): Update.
4309 (loclist_tracepoint_var_ref): Update.
4310 * dwarf2/compile.h (compile_dwarf_bounds_to_c): Add
4311 dwarf2_per_objfile parameter.
4312 * dwarf2/loc2c.c (do_compile_dwarf_expr_to_c): Likewise,
4313 use text offset from objfile.
4314 (compile_dwarf_expr_to_c): Add dwarf2_per_objfile parameter.
4315
89b07335
SM
43162020-05-27 Simon Marchi <simon.marchi@efficios.com>
4317
4318 * dwarf2/expr.h (struct dwarf_expr_context)
4319 <dwarf_expr_context>: Add dwarf2_per_objfile parameter.
4320 <offset>: Remove.
4321 <per_objfile>: New member.
4322 * dwarf2/expr.c (dwarf_expr_context::dwarf_expr_context): Add
4323 dwarf2_per_objfile parameter. Don't set offset, set
4324 per_objfile.
4325 (dwarf_expr_context::execute_stack_op): Use offset from objfile.
4326 * dwarf2/frame.c (dwarf2_frame_find_fde): Return (by parameter)
4327 a dwarf2_per_objfile object instead of an offset.
4328 (class dwarf_expr_executor) <dwarf_expr_executor>: Add
4329 constructor.
4330 (execute_stack_op): Add dwarf2_per_objfile parameter, pass it
4331 to dwarf2_expr_executor constructor. Don't set offset.
4332 (dwarf2_fetch_cfa_info): Update.
4333 (struct dwarf2_frame_cache) <text_offset>: Remove.
4334 <per_objfile>: New field.
4335 (dwarf2_frame_cache): Update.
4336 (dwarf2_frame_prev_register): Update.
4337 * dwarf2/loc.c (class dwarf_evaluate_loc_desc)
4338 <dwarf_evaluate_loc_desc>: Add constructor.
4339 (dwarf2_evaluate_loc_desc_full): Update.
4340 (dwarf2_locexpr_baton_eval): Update.
4341 (class symbol_needs_eval_context) <symbol_needs_eval_context>:
4342 Add constructor.
4343 (dwarf2_loc_desc_get_symbol_read_needs): Update.
4344
293e7e51
SM
43452020-05-27 Simon Marchi <simon.marchi@efficios.com>
4346
4347 * dwarf2/read.h (struct dwarf2_per_cu_data) <addr_type,
4348 addr_sized_int_type>: Move to dwarf2_cu.
4349 <int_type>: Move to dwarf2_per_objfile.
4350 (struct dwarf2_per_objfile) <int_type>: Move here.
4351 * dwarf2/read.c (struct dwarf2_cu) <addr_type,
4352 addr_sized_int_type>: Move here.
4353 (read_func_scope): Update.
4354 (read_array_type): Update.
4355 (read_tag_string_type): Update.
4356 (attr_to_dynamic_prop): Update.
4357 (dwarf2_per_cu_data::int_type): Rename to...
4358 (dwarf2_per_objfile::int_type): ... this.
4359 (dwarf2_per_cu_data::addr_sized_int_type): Rename to...
4360 (dwarf2_cu::addr_sized_int_type): ... this.
4361 (read_subrange_type): Update.
4362 (dwarf2_per_cu_data::addr_type): Rename to...
4363 (dwarf2_cu::addr_type): ... this.
4364 (set_die_type): Update.
4365
64874a40
SM
43662020-05-27 Simon Marchi <simon.marchi@efficios.com>
4367
4368 * dwarf2/read.c (queue_and_load_all_dwo_tus): Access per_objfile
4369 data through per_cu->cu.
4370
4ab09049
SM
43712020-05-27 Simon Marchi <simon.marchi@efficios.com>
4372
4373 * dwarf2/read.c (lookup_dwo_comp_unit): Change
4374 dwarf2_per_cu_data parameter fo dwarf2_cu.
4375 (lookup_dwo_type_unit): Likewise.
4376 (read_cutu_die_from_dwo): Likewise.
4377 (lookup_dwo_unit): Likewise.
4378 (open_and_init_dwo_file): Likewise.
4379 (lookup_dwo_cutu): Likewise.
4380 (lookup_dwo_comp_unit): Likewise.
4381 (lookup_dwo_type_unit): Likewise.
4382 (cutu_reader::init_tu_and_read_dwo_dies): Update.
4383 (cutu_reader::cutu_reader): Update.
4384
47b14e86
SM
43852020-05-27 Simon Marchi <simon.marchi@efficios.com>
4386
4387 * dwarf2/read.c (process_full_comp_unit): Add dwarf2_per_objfile
4388 parameter.
4389 (process_full_type_unit): Likewise.
4390 (process_queue): Update.
4391
43182c09
SM
43922020-05-27 Simon Marchi <simon.marchi@efficios.com>
4393
4394 * dwarf2/read.c (recursively_compute_inclusions): Add
4395 dwarf2_per_objfile parameter.
4396 (compute_compunit_symtab_includes): Likewise.
4397 (process_cu_includes): Update.
4398
7aa104c4
SM
43992020-05-27 Simon Marchi <simon.marchi@efficios.com>
4400
4401 * dwarf2/read.c (create_partial_symtab): Add dwarf2_per_objfile
4402 parameter.
4403 (create_type_unit_group): Update.
4404 (process_psymtab_comp_unit_reader): Update.
4405 (build_type_psymtabs_reader): Update.
4406
e3beb21d
SM
44072020-05-27 Simon Marchi <simon.marchi@efficios.com>
4408
4409 * dwarf2/read.c (cutu_reader::keep): Access dwarf2_per_objfile
4410 object through m_this_cu->cu.
4411
d460f660
SM
44122020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
4413
4414 * dwarf2/read.c (queue_and_load_dwo_tu): Expect a dwarf2_cu as
4415 the info parameter.
4416 (queue_and_load_all_dwo_tus): Pass per_cu->cu.
4417
ab432490
SM
44182020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
4419
4420 * dwarf2/read.c (class cutu_reader) <cutu_reader>: Add
4421 per_objfile parameter.
4422 (load_full_type_unit): Add per_objfile parameter.
4423 (read_signatured_type): Likewise.
4424 (load_full_comp_unit): Likewise.
4425 (load_cu): Likewise.
4426 (dw2_do_instantiate_symtab): Likewise.
4427 (dw2_get_file_names): Likewise.
4428 (dw2_map_symtabs_matching_filename): Update.
4429 (dw_expand_symtabs_matching_file_matcher): Update.
4430 (dw2_map_symbol_filenames): Update.
4431 (process_psymtab_comp_unit): Add per_objfile parameter.
4432 (build_type_psymtabs_1): Update.
4433 (process_skeletonless_type_unit): Update.
4434 (dwarf2_build_psymtabs_hard): Update.
4435 (load_partial_comp_unit): Add per_objfile parameter.
4436 (scan_partial_symbols): Update.
4437 (load_full_comp_unit): Add per_objfile parameter.
4438 (process_imported_unit_die): Update.
4439 (create_cus_hash_table): Update.
4440 (find_partial_die): Update.
4441 (dwarf2_read_addr_index): Update.
4442 (follow_die_offset): Update.
4443 (dwarf2_fetch_die_loc_sect_off): Update.
4444 (dwarf2_fetch_constant_bytes): Update.
4445 (dwarf2_fetch_die_type_sect_off): Update.
4446 (follow_die_sig_1): Update.
4447 (load_full_type_unit): Add per_objfile parameter.
4448 (read_signatured_type): Likewise.
4449
313bad1b
SM
44502020-05-27 Simon Marchi <simon.marchi@efficios.com>
4451
4452 * dwarf2/read.c (lookup_dwo_unit): Use bfd_get_filename instead
4453 of objfile_name.
4454
c3699833
SM
44552020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
4456
4457 * dwarf2/read.h (struct dwarf2_per_bfd) <obfd>: New member.
4458 (dwarf2_get_dwz_file): Replace parameter with dwarf2_per_bfd.
4459 * dwarf2/read.c (dwarf2_per_bfd::dwarf2_per_bfd): Assign obfd
4460 field.
4461 (dwarf2_get_dwz_file): Replace parameter with dwarf2_per_bfd.
4462 (create_cus_from_index): Update.
4463 (dwarf2_read_gdb_index): Update.
4464 (create_cus_from_debug_names): Update.
4465 (dwarf2_read_debug_names): Update.
4466 (get_abbrev_section_for_cu): Update.
4467 (create_all_comp_units): Update.
4468 (read_attribute_value): Update.
4469 (get_debug_line_section): Update.
4470 * dwarf2/index-cache.c (index_cache::store): Update.
4471 * dwarf2/index-write.c (save_gdb_index_command): Update.
4472 * dwarf2/macro.c (dwarf_decode_macro_bytes): Update.
4473
1859c670
SM
44742020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
4475
4476 * dwarf2/read.h (struct dwarf2_per_cu_data) <per_bfd>: New
4477 member.
4478 * dwarf2/read.c (dwarf2_per_bfd::allocate_per_cu): Initialize
4479 dwarf2_per_cu_data::per_bfd.
4480 (dwarf2_per_bfd::allocate_signatured_type): Likewise.
4481 (create_type_unit_group): Likewise.
4482 (queue_comp_unit): Remove reference to
4483 per_cu->dwarf2_per_objfile.
4484 (maybe_queue_comp_unit): Likewise.
4485 (fill_in_sig_entry_from_dwo_entry): Assign new field.
4486 (create_cus_hash_table): Assign new field.
4487
5e22e966
SM
44882020-05-27 Simon Marchi <simon.marchi@efficios.com>
4489
4490 * dwarf2/read.c: Replace
4491 dwarf2_cu->per_cu->dwarf2_per_objfile references with
4492 dwarf2_cu->per_objfile throughout.
4493
97a1449a
SM
44942020-05-27 Simon Marchi <simon.marchi@efficios.com>
4495
4496 * dwarf2/read.c (dw2_do_instantiate_symtab): Add per_objfile
4497 parameter, don't use per_cu->dwarf2_per_objfile.
4498 (dw2_instantiate_symtab): Likewise.
4499 (dw2_find_last_source_symtab): Update.
4500 (dw2_map_expand_apply): Update.
4501 (dw2_lookup_symbol): Update.
4502 (dw2_expand_symtabs_for_function): Update.
4503 (dw2_expand_all_symtabs): Update.
4504 (dw2_expand_symtabs_with_fullname): Update.
4505 (dw2_expand_symtabs_matching_one): Add per_objfile parameter,
4506 don't use per_cu->dwarf2_per_objfile.
4507 (dw2_expand_marked_cus): Update.
4508 (dw2_find_pc_sect_compunit_symtab): Update.
4509 (dw2_debug_names_lookup_symbol): Update.
4510 (dw2_debug_names_expand_symtabs_for_function): Update.
4511 (dw2_debug_names_map_matching_symbols): Update.
4512 (dwarf2_psymtab::expand_psymtab): Update.
4513
9e021579
SM
45142020-05-27 Simon Marchi <simon.marchi@efficios.com>
4515
4516 * dwarf2/read.c (struct dwarf2_cu) <dwarf2_cu>: Add parameter.
4517 <per_objfile>: New member.
4518 (class cutu_reader) <init_tu_and_read_dwo_dies>: Add parameter.
4519 (cutu_reader::init_tu_and_read_dwo_dies): Add parameter, update
4520 call to dwarf2_cu.
4521 (cutu_reader::cutu_reader): Update.
4522 (dwarf2_cu::dwarf2_cu): Add parameter, initialize per_objfile.
4523
ae090bdb
SM
45242020-05-27 Simon Marchi <simon.marchi@efficios.com>
4525
4526 * dwarf2/read.h (struct dwarf2_per_bfd) <die_type_hash>: Move to
4527 struct dwarf2_per_objfile.
4528 (struct dwarf2_per_objfile) <die_type_hash>: Move from struct
4529 dwarf2_per_bfd.
4530 * dwarf2/read.c (set_die_type): Update.
4531 (get_die_type_at_offset): Update.
4532
af758d11
SM
45332020-05-27 Tom Tromey <tom@tromey.com>
4534 Simon Marchi <simon.marchi@efficios.com>
4535
4536 * dwarf2/read.h (struct dwarf2_per_bfd) <num_psymtabs>: New
4537 method.
4538 (struct dwarf2_per_objfile) <resize_symtabs, symtab_set_p,
4539 get_symtab, set_symtab>: New methods.
4540 <m_symtabs>: New field.
4541 (struct dwarf2_psymtab): Derive from partial_symtab.
4542 <readin_p, get_compunit_symtab>: Declare methods.
4543 * dwarf2/read.c (dwarf2_per_objfile::symtab_set_p,
4544 dwarf2_per_objfile::get_symtab, dwarf2_per_objfile::set_symtab):
4545 New methods.
4546 (struct dwarf2_per_cu_quick_data) <compunit_symtab>: Remove.
4547 (dw2_do_instantiate_symtab, dw2_instantiate_symtab)
4548 (dw2_map_expand_apply, dw2_map_symtabs_matching_filename)
4549 (dw2_symtab_iter_next, dw2_print_stats)
4550 (dw2_expand_symtabs_with_fullname)
4551 (dw2_expand_symtabs_matching_one)
4552 (dw_expand_symtabs_matching_file_matcher)
4553 (dw2_find_pc_sect_compunit_symtab, dw2_map_symbol_filenames)
4554 (dw2_debug_names_iterator::next)
4555 (dw2_debug_names_map_matching_symbols)
4556 (fill_in_sig_entry_from_dwo_entry, dwarf2_psymtab::read_symtab)
4557 (process_queue, dwarf2_psymtab::expand_psymtab): Update.
4558 (dwarf2_psymtab::readin_p, dwarf2_psymtab::get_compunit_symtab):
4559 New methods.
4560 (get_compunit_symtab, process_full_comp_unit)
4561 (process_full_type_unit): Update.
4562 (dwarf2_build_psymtabs, dwarf2_initialize_objfile, add_type_unit): Call
4563
5989a64e
SM
45642020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
4565
4566 * dwarf2/read.h (dwarf2_per_objfile): Rename to dwarf2_per_bfd,
4567 then introduce a new dwarf2_per_objfile type.
4568 <read_line_string>: Move to the new dwarf2_per_objfile type.
4569 <objfile>: Likewise.
4570 (dwarf2_per_bfd): Rename dwarf2_per_objfile to this.
4571 * dwarf2/read.c: Replace references to dwarf2_per_objfile with
4572 dwarf2_per_objfile->per_bfd.
4573 (dwarf2_per_objfile::dwarf2_per_objfile): Rename to...
4574 (dwarf2_per_bfd::dwarf2_per_bfd): ... this.
4575 (dwarf2_per_objfile::free_cached_comp_units): Rename to...
4576 (dwarf2_per_bfd::free_cached_comp_units): ... this.
4577 (dwarf2_has_info): Allocate dwarf2_per_bfd.
4578 (dwarf2_per_objfile::locate_sections): Rename to...
4579 (dwarf2_per_bfd::locate_sections): ... this.
4580 (dwarf2_per_objfile::get_cutu): Rename to...
4581 (dwarf2_per_bfd::get_cutu): ... this.
4582 (dwarf2_per_objfile::get_cu): Rename to...
4583 (dwarf2_per_bfd::get_cu): ... this.
4584 (dwarf2_per_objfile::get_tu): Rename to...
4585 (dwarf2_per_bfd::get_tu): ... this.
4586 (dwarf2_per_objfile::allocate_per_cu): Rename to...
4587 (dwarf2_per_bfd::allocate_per_cu): ... this.
4588 (dwarf2_per_objfile::allocate_signatured_type): Rename to...
4589 (dwarf2_per_bfd::allocate_signatured_type): ... this.
4590 (get_gdb_index_contents_ftype): Change parameter from
4591 dwarf2_per_objfile to dwarf2_per_bfd.
4592 * dwarf2/macro.c, dwarf2/index-write.c: Replace references to
4593 dwarf2_per_objfile with dwarf2_per_objfile->per_bfd.
4594
a50264ba
TT
45952020-05-27 Tom Tromey <tom@tromey.com>
4596 Simon Marchi <simon.marchi@efficios.com>
4597
4598 * dwarf2/loc.c (struct piece_closure) <per_objfile>: New member.
4599 (allocate_piece_closure): Set "per_objfile" member.
4600 (dwarf2_find_location_expression, dwarf2_locexpr_baton_eval)
4601 (locexpr_describe_location, loclist_describe_location): Use new
4602 member.
4603 * dwarf2/read.c (read_call_site_scope)
4604 (mark_common_block_symbol_computed, attr_to_dynamic_prop)
4605 (dwarf2_const_value_attr, dwarf2_fetch_die_loc_sect_off)
4606 (fill_in_loclist_baton, dwarf2_symbol_mark_computed,
4607 handle_data_member_location): Set per_objfile member.
4608 * dwarf2/loc.h (struct dwarf2_locexpr_baton) <per_objfile>: New
4609 member.
4610 (struct dwarf2_loclist_baton) <per_objfile>: New member.
4611
d3473f0c
TT
46122020-05-27 Tom Tromey <tom@tromey.com>
4613
4614 * dwarf2/read.h (struct dwarf2_per_objfile) <allocate_per_cu,
4615 allocate_signatured_type>: Declare new methods.
4616 <m_num_psymtabs>: New member.
4617 (struct dwarf2_per_cu_data) <index>: New member.
4618 * dwarf2/read.c (dwarf2_per_objfile::allocate_per_cu)
4619 (dwarf2_per_objfile::allocate_signatured_type): New methods.
4620 (create_cu_from_index_list): Use allocate_per_cu.
4621 (create_signatured_type_table_from_index)
4622 (create_signatured_type_table_from_debug_names)
4623 (create_debug_type_hash_table, add_type_unit)
4624 (read_comp_units_from_section): Use allocate_signatured_type.
4625
5717c425
TT
46262020-05-27 Tom Tromey <tom@tromey.com>
4627
4628 * psymtab.c (partial_map_expand_apply)
4629 (psym_find_pc_sect_compunit_symtab, psym_lookup_symbol)
4630 (psym_lookup_global_symbol_language)
4631 (psymtab_to_symtab, psym_find_last_source_symtab, dump_psymtab)
4632 (psym_print_stats, psym_expand_symtabs_for_function)
4633 (psym_map_symbol_filenames, psym_map_matching_symbols)
4634 (psym_expand_symtabs_matching)
4635 (partial_symtab::read_dependencies, maintenance_info_psymtabs)
4636 (maintenance_check_psymtabs): Update.
4637 * psympriv.h (struct partial_symtab) <readin_p,
4638 get_compunit_symtab>: Add objfile parameter.
4639 (struct standard_psymtab) <readin_p, get_compunit_symtab>:
4640 Likewise.
4641 * dwarf2/read.c (struct dwarf2_include_psymtab) <readin_p,
4642 get_compunit_symtab>: Likewise.
4643 (dwarf2_psymtab::expand_psymtab): Pass objfile argument.
4644
45940949
TT
46452020-05-27 Tom Tromey <tom@tromey.com>
4646
4647 * dwarf2/read.h (struct dwarf2_per_objfile) <obstack>: New
4648 member.
4649 * dwarf2/read.c (delete_file_name_entry): Fix comment.
4650 (create_cu_from_index_list)
4651 (create_signatured_type_table_from_index)
4652 (create_signatured_type_table_from_debug_names)
4653 (dw2_get_file_names_reader, dwarf2_initialize_objfile)
4654 (dwarf2_create_include_psymtab)
4655 (create_debug_type_hash_table, add_type_unit)
4656 (create_type_unit_group, read_comp_units_from_section)
4657 (dwarf2_compute_name, create_cus_hash_table)
4658 (create_dwp_hash_table, create_dwo_unit_in_dwp_v1)
4659 (create_dwo_unit_in_dwp_v2, open_and_init_dwp_file): Use new
4660 obstack.
4661 (dw2_get_real_path): Likewise. Change argument to
4662 dwarf2_per_objfile.
4663
f8c6d152
LM
46642020-05-27 Luis Machado <luis.machado@linaro.org>
4665
4666 PR tdep/26000
4667 * arm-tdep.c (thumb_analyze_prologue): Fix instruction matching
4668 for ldrd (immediate).
4669
e98d2e6d
PW
46702020-05-26 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4671
4672 * command.h: Add comment giving the name of class_tui.
4673 * cli/cli-cmds.c (_initialize_cli_cmds): If TUI defined,
4674 create the fake command for the help for class_tui.
4675
53a47a3e
TT
46762020-05-26 Tom Tromey <tromey@adacore.com>
4677
4678 * ada-lang.c (ada_print_array_index): Change type. Call val_atr.
4679 (ada_value_ptr_subscript): Don't call pos_atr on the lower bound.
4680 (val_atr): New function.
4681 (value_val_atr): Use it.
4682 * ada-valprint.c (print_optional_low_bound): Change low bound
4683 handling for enums.
4684 (val_print_packed_array_elements): Don't call discrete_position.
4685 * gdbtypes.c (get_discrete_bounds) <TYPE_CODE_RANGE>: Call
4686 discrete_position for enum types.
4687 * language.c (default_print_array_index): Change type.
4688 * language.h (struct language_defn) <la_print_array_index>: Add
4689 index_type parameter, change type of index_value.
4690 (LA_PRINT_ARRAY_INDEX): Add index_type parameter.
4691 (default_print_array_index): Update.
4692 * valprint.c (maybe_print_array_index): Don't call
4693 value_from_longest. Update.
4694 (value_print_array_elements): Don't call discrete_position.
4695
0bc2354b
TT
46962020-05-26 Tom Tromey <tromey@adacore.com>
4697
4698 * ada-lang.c (value_val_atr): Handle TYPE_CODE_RANGE.
4699 * gdbtypes.c (discrete_position): Handle TYPE_CODE_RANGE.
4700
1218a4bf
CDA
47012020-05-25 Cristiano De Alti <cristiano_dealti@hotmail.com>
4702
4703 PR gdb/13519
4704 * avr-tdep.c (avr_integer_to_address): Return data or code
4705 address accordingly to the second 'type' argument of the
4706 function.
4707
92651b1d
MW
47082020-05-25 Michael Weghorn <m.weghorn@posteo.de>
4709
4710 * infcmd.c, inferior.h: (construct_inferior_arguments):
4711 Moved function from here to gdbsupport/common-inferior.{h,cc}
4712
0a4f5f8c
TT
47132020-05-23 Tom Tromey <tom@tromey.com>
4714
4715 Revert commit eca1f90c:
4716 * NEWS: Remove entry for completion styling.
4717 * completer.c (_rl_completion_prefix_display_length): Move
4718 declaration later.
4719 (gdb_fnprint): Revert.
4720 (gdb_display_match_list_1): Likewise.
4721 * cli/cli-style.c (completion_prefix_style)
4722 (completion_difference_style, completion_suffix_style): Remove.
4723 (_initialize_cli_style): Revert.
4724 * cli/cli-style.h (completion_prefix_style)
4725 (completion_difference_style, completion_suffix_style): Don't
4726 declare.
4727
e08bd6c5
PA
47282020-05-24 Pedro Alves <palves@redhat.com>
4729
4730 * symtab.c (completion_list_add_name): Return boolean indication
4731 of whether the symbol matched.
4732 (completion_list_add_symbol): Don't try to remove C++ aliases if
4733 the symbol didn't match in the first place.
4734 * symtab.h (completion_list_add_name): Return bool.
4735
ceacbf6e
SM
47362020-05-23 Simon Marchi <simon.marchi@polymtl.ca>
4737
4738 * gdbtypes.h (TYPE_FIELD): Remove. Replace all uses with
4739 type::field.
4740
26f16254
JB
47412020-05-23 Joel Brobecker <brobecker@adacore.com>
4742
4743 GDB 9.2 released.
4744
eca1f90c
TT
47452020-05-23 Tom Tromey <tom@tromey.com>
4746
4747 * NEWS: Add entry for completion styling.
4748 * completer.c (_rl_completion_prefix_display_length): Move
4749 declaration earlier.
4750 (gdb_fnprint): Use completion_style.
4751 (gdb_display_match_list_1): Likewise.
4752 * cli/cli-style.c (completion_prefix_style)
4753 (completion_difference_style, completion_suffix_style): New
4754 globals.
4755 (_initialize_cli_style): Register new globals.
4756 * cli/cli-style.h (completion_prefix_style)
4757 (completion_difference_style, completion_suffix_style): Declare.
4758
51e2cfa2
PA
47592020-05-23 Pedro Alves <palves@redhat.com>
4760
4761 * utils.c: Include "gdbsupport/gdb-safe-ctype.h".
4762 (parse_escape): Use ISDIGIT instead of isdigit.
4763 (puts_debug): Use gdb_isprint instead of isprint.
4764 (fprintf_symbol_filtered): Use ISALNUM instead of isalnum.
4765 (cp_skip_operator_token, skip_ws, strncmp_iw_with_mode): Use
4766 ISSPACE instead of isspace.
4767 (strncmp_iw_with_mode): Use TOLOWER instead of tolower and ISSPACE
4768 instead of isspace.
4769 (strcmp_iw_ordered): Use ISSPACE instead of isspace.
4770 (string_to_core_addr): Use TOLOWER instead of tolower, ISXDIGIT
4771 instead of isxdigit and ISDIGIT instead of isdigit.
4772
80fc5e77
SM
47732020-05-22 Simon Marchi <simon.marchi@efficios.com>
4774
4775 * gdbtypes.h (struct type) <field>: New method.
4776 (TYPE_FIELDS): Remove, replace all uses with either type::fields
4777 or type::field.
4778
3cabb6b0
SM
47792020-05-22 Simon Marchi <simon.marchi@efficios.com>
4780
4781 * gdbtypes.h (struct type) <fields, set_fields>: New methods.
4782 (TYPE_FIELDS): Use type::fields. Change all call sites that
4783 modify the propery to use type::set_fields instead.
4784
1f704f76
SM
47852020-05-22 Simon Marchi <simon.marchi@efficios.com>
4786
4787 * gdbtypes.h (TYPE_NFIELDS): Remove. Change all cal sites to use
4788 type::num_fields instead.
4789
5e33d5f4
SM
47902020-05-22 Simon Marchi <simon.marchi@efficios.com>
4791
4792 * gdbtypes.h (struct type) <num_fields, set_num_fields>: New
4793 methods.
4794 (TYPE_NFIELDS): Use type::num_fields. Change all call sites
4795 that modify the number of fields to use type::set_num_fields
4796 instead.
4797
9392ebb3
TT
47982020-05-22 Tom Tromey <tromey@adacore.com>
4799
4800 * compile/compile-object-load.h (munmap_list_free): Don't
4801 declare.
4802
7c13f4e8
AB
48032020-05-22 Andrew Burgess <andrew.burgess@embecosm.com>
4804
4805 * annotate.c (annotate_source_line): Update return type, add call
4806 to update current symtab and line.
4807 * annotate.h (annotate_source_line): Update return type, and
4808 extend header comment.
4809 * source.c (info_line_command): Check annotation_level before
4810 calling annotate_source_line.
4811 * stack.c (print_frame_info): If calling annotate_source_line
4812 returns true, then don't print any other source line information.
4813
aa370940
SM
48142020-05-21 Simon Marchi <simon.marchi@efficios.com>
4815
4816 * lm32-tdep.c (lm32_register_reggroup_p): Fix condition.
4817
84d53fa9
SM
48182020-05-21 Simon Marchi <simon.marchi@efficios.com>
4819
4820 * coffread.c (patch_type): Remove NULL check before xfree.
4821 * corefile.c (set_gnutarget): Likewise.
4822 * cp-abi.c (set_cp_abi_as_auto_default): Likewise.
4823 * exec.c (build_section_table): Likewise.
4824 * remote.c (remote_target::pass_signals): Likewise.
4825 * utils.c (n_spaces): Likewise.
4826 * cli/cli-script.c (document_command): Likewise.
4827 * i386-windows-tdep.c (core_process_module_section): Likewise.
4828 * linux-fork.c (struct fork_info) <~fork_info>: Likewise.
4829
9d428aae
SM
48302020-05-20 Simon Marchi <simon.marchi@efficios.com>
4831
4832 * symfile.c (reread_symbols): Clear objfile's section_offsets
4833 vector and section indices, re-compute them by calling
4834 sym_offsets.
4835
250106a7
TT
48362020-05-20 Tom Tromey <tromey@adacore.com>
4837
4838 * ada-lang.c (bound_name, MAX_ADA_DIMENS): Remove.
ec16513e 4839 (desc_one_bound, desc_index_type): Compute field name.
250106a7 4840
9a0bacfb
TV
48412020-05-20 Tom de Vries <tdevries@suse.de>
4842
4843 PR symtab/25833
4844 * dwarf2/read.c (dw2_map_matching_symbols): Handle .gdb_index.
4845
7b958a48
AM
48462020-05-20 Alan Modra <amodra@gmail.com>
4847
4848 PR 25993
4849 * solib-darwin.c (darwin_bfd_open): Don't strdup pathname for
4850 bfd_set_filename.
4851 * solib-aix.c (solib_aix_bfd_open): Use std::string for name
4852 passed to bfd_set_filename.
4853 * symfile-mem.c (add_vsyscall_page): Likewise for string
4854 passed to symbol_file_add_from_memory.
4855 (symbol_file_add_from_memory): Make name param a const char* and
4856 don't strdup.
4857
c7e97679
AM
48582020-05-20 Alan Modra <amodra@gmail.com>
4859
4860 * coff-pe-read.c (read_pe_exported_syms): Use bfd_get_filename
4861 rather than accessing bfd->filename directly.
4862 * dtrace-probe.c (dtrace_static_probe_ops::get_probes): Likewise,
4863 and use bfd_section_name.
4864 * dwarf2/frame.c (decode_frame_entry): Likewise.
4865 * exec.c (exec_set_section_address): Likewise.
4866 * solib-aix.c (solib_aix_bfd_open): Likewise.
4867 * stap-probe.c (get_stap_base_address): Likewise.
4868 * symfile.c (reread_symbols): Likewise.
4869
563c591b
TT
48702020-05-19 Tom Tromey <tromey@adacore.com>
4871
4872 * sparc64-tdep.c (adi_tag_fd): Update call to target_fileio_open.
4873
f408d82c
SM
48742020-05-19 Simon Marchi <simon.marchi@efficios.com>
4875
4876 * dwarf2/read.c (quirk_rust_enum): Allocate enough fields.
4877
98c59b52
PA
48782020-05-19 Pedro Alves <palves@redhat.com>
4879
4880 * NEWS (set exec-file-mismatch): Adjust entry.
4881 * exec.c: Include "build-id.h".
4882 (validate_exec_file): Try to match build IDs instead of filenames.
4883 * gdb_bfd.c (struct gdb_bfd_open_closure): New.
4884 (gdb_bfd_iovec_fileio_open): Adjust to use gdb_bfd_open_closure
4885 and pass down 'warn_if_slow'.
4886 (gdb_bfd_open): Add 'warn_if_slow' parameter. Use
4887 gdb_bfd_open_closure to pass it down.
4888 * gdb_bfd.h (gdb_bfd_open): Add 'warn_if_slow' parameter.
4889
4111f652
PA
48902020-05-19 Pedro Alves <palves@redhat.com>
4891
4892 * gdb_bfd.c (gdb_bfd_iovec_fileio_open): Adjust.
4893 * target.c (target_fileio_open_1): Rename to target_fileio_open
4894 and make extern. Use bool.
4895 (target_fileio_open, target_fileio_open_warn_if_slow): Delete.
4896 (target_fileio_read_alloc_1): Adjust.
4897 * target.h (target_fileio_open): Add 'warn_if_slow' parameter.
4898 (target_fileio_open_warn_if_slow): Delete declaration.
4899
ad80db5b
PA
49002020-05-19 Pedro Alves <palves@redhat.com>
4901
4902 * gdb_bfd.h: (gdb_bfd_open): Default to 'fd' parameter to -1.
4903 Adjust all callers.
4904
1d6ce4d3
YS
49052020-05-19 Yoshinori Sato <ysato@users.sourceforge.jp>
4906
4907 * h8300-tdep.c (h8300_is_argument_spill): Change how we check
4908 whether disp is negative.
4909
9005fbbb
SM
49102020-05-19 Simon Marchi <simon.marchi@efficios.com>
4911
4912 * symfile.h (struct symfile_segment_data)
4913 <~symfile_segment_data>: Remove.
4914 <segment_info>: Change to std::vector.
4915 * symfile.c (default_symfile_segments): Update.
4916 * elfread.c (elf_symfile_segments): Update.
4917
68b888ff
SM
49182020-05-19 Simon Marchi <simon.marchi@efficios.com>
4919
4920 * symfile.h (struct symfile_segment_data) <struct segment>: New.
4921 <segments>: New.
4922 <segment_bases, segment_sizes>: Remove.
4923 * symfile.c (default_symfile_segments): Update.
4924 * elfread.c (elf_symfile_segments): Update.
4925 * remote.c (remote_target::get_offsets): Update.
4926 * solib-target.c (solib_target_relocate_section_addresses):
4927 Update.
4928
62982abd
SM
49292020-05-19 Simon Marchi <simon.marchi@efficios.com>
4930
4931 * symfile.h (struct symfile_segment_data): Initialize fields.
4932 <~symfile_segment_data>: Add.
4933 (symfile_segment_data_up): New.
4934 (struct sym_fns) <sym_segments>: Return a
4935 symfile_segment_data_up.
4936 (default_symfile_segments): Return a symfile_segment_data_up.
4937 (free_symfile_segment_data): Remove.
4938 (get_symfile_segment_data): Return a symfile_segment_data_up.
4939 * symfile.c (default_symfile_segments): Likewise.
4940 (get_symfile_segment_data): Likewise.
4941 (free_symfile_segment_data): Remove.
4942 (symfile_find_segment_sections): Update.
4943 * elfread.c (elf_symfile_segments): Return a
4944 symfile_segment_data_up.
4945 * remote.c (remote_target::get_offsets): Update.
4946 * solib-target.c (solib_target_relocate_section_addresses):
4947 Update.
4948 * symfile-debug.c (debug_sym_segments): Return a
4949 symfile_segment_data_up.
4950
7f204339
RO
49512020-05-18 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
4952
e52a0f1b
RO
4953 PR build/25981
4954 * i386-sol2-nat.c [PR_MODEL_NATIVE != PR_MODEL_LP64] (regmap):
4955 Hardcode register numbers.
4956
7f204339
RO
4957 PR build/25981
4958 * procfs.c [(__i386__ || __x86_64__) && sun] (proc_get_LDT_entry,
4959 procfs_find_LDT_entry): Remove.
4960 * procfs.h [(__i386__ || __x86_64__) && sun] (struct ssd,
4961 procfs_find_LDT_entry): Remove.
4962 * sol-thread.c [(__i386__ || __x86_64__) && sun] (ps_lgetLDT):
4963 Remove.
4964
7f32a4d5
PA
49652020-05-17 Pedro Alves <palves@redhat.com>
4966 Andrew Burgess <andrew.burgess@embecosm.com>
4967 Keno Fischer <keno@juliacomputing.com>
4968
4969 PR gdb/25741
4970 * breakpoint.c (build_target_condition_list): Update comments.
4971 (build_target_command_list): Update comments and skip matching
4972 locations.
4973 (insert_bp_location): Move "set breakpoint auto-hw on" handling to
4974 a separate function. Simplify "set breakpoint auto-hw off"
4975 handling.
4976 (insert_breakpoints): Update comment.
4977 (tracepoint_locations_match): New parameter. For breakpoints,
4978 compare location types too, if the caller wants to.
4979 (handle_automatic_hardware_breakpoints): New functions.
4980 (bp_location_is_less_than): Also sort by location type and
4981 hardware breakpoint length.
4982 (update_global_location_list): Handle "set breakpoint auto-hw on"
4983 here.
4984 (update_breakpoint_locations): Ask breakpoint_locations_match to
4985 ignore location types.
4986
7d93a1e0
SM
49872020-05-16 Simon Marchi <simon.marchi@efficios.com>
4988
4989 * gdbtypes.h (TYPE_NAME): Remove. Change all cal sites to use
4990 type::name instead.
4991
d0e39ea2
SM
49922020-05-16 Simon Marchi <simon.marchi@efficios.com>
4993
4994 * gdbtypes.h (struct type) <name, set_name>: New methods.
4995 (TYPE_CODE): Use type::name. Change all call sites used to set
4996 the name to use type::set_name instead.
4997
2dab0c7b
TT
49982020-05-16 Tom Tromey <tom@tromey.com>
4999
5000 * top.c (quit_force): Update.
5001 * infrun.c (handle_no_resumed): Update.
5002 * top.h (all_uis): New function.
5003 (ALL_UIS): Remove.
5004
59f7bd8d
SM
50052020-05-16 Simon Marchi <simon.marchi@efficios.com>
5006
5007 * mips-linux-tdep.c (mips_linux_in_dynsym_stub): Fix condition.
5008
9bf058f0
PA
50092020-05-16 Pedro Alves <palves@redhat.com>
5010
5011 * ia64-linux-nat.c
5012 (ia64_linux_nat_target) <enable_watchpoints_in_psr(ptid_t)>:
5013 Declare method.
5014 (enable_watchpoints_in_psr): Now a method of ia64_linux_nat_target.
5015
8f86ae1a
SM
50162020-05-15 Simon Marchi <simon.marchi@efficios.com>
5017
5018 * sparc64-tdep.c (adi_stat_t): Remove typedef (leaving struct).
5019 (sparc64_adi_info): Likewise.
5020
d6bc0792
TT
50212020-05-15 Tom Tromey <tom@tromey.com>
5022
5023 * symtab.c (lookup_language_this, lookup_symbol_aux): Use
5024 block_objfile.
5025 (lookup_objfile_from_block): Remove.
5026 (lookup_symbol_in_block, lookup_symbol_in_static_block)
5027 (lookup_global_symbol): Use block_objfile.
5028 * symtab.h (lookup_objfile_from_block): Don't declare.
5029 * printcmd.c (clear_dangling_display_expressions): Use
5030 block_objfile.
5031 * parse.c (operator_check_standard): Use block_objfile.
5032
8c14c3a3
TT
50332020-05-15 Tom Tromey <tom@tromey.com>
5034
5035 * language.c (language_alloc_type_symbol): Set
5036 SYMBOL_SECTION.
5037 * symtab.c (initialize_objfile_symbol): Remove.
5038 (allocate_symbol): Remove.
5039 (allocate_template_symbol): Remove.
5040 * dwarf2/read.c (fixup_go_packaging): Use "new".
5041 (new_symbol): Use "new".
5042 (read_variable): Don't call initialize_objfile_symbol. Use
5043 "new".
5044 (read_func_scope): Use "new".
5045 * xcoffread.c (process_xcoff_symbol): Don't call
5046 initialize_objfile_symbol.
5047 (SYMBOL_DUP): Remove.
5048 * coffread.c (process_coff_symbol, coff_read_enum_type): Use
5049 "new".
5050 * symtab.h (allocate_symbol, initialize_objfile_symbol)
5051 (allocate_template_symbol): Don't declare.
5052 (struct symbol): Add copy constructor. Change defaults.
5053 * jit.c (finalize_symtab): Use "new".
5054 * ctfread.c (ctf_add_enum_member_cb, new_symbol, ctf_add_var_cb):
5055 Use "new".
5056 * stabsread.c (patch_block_stabs, define_symbol, read_enum_type)
5057 (common_block_end): Use "new".
5058 * mdebugread.c (parse_symbol): Use "new".
5059 (new_symbol): Likewise.
5060
5b4a1a8d
PW
50612020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5062
5063 * NEWS: Mention changes to help and apropos.
5064
57b4f16e
PW
50652020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5066
5067 * command.h (enum command_class): Improve comments, document
5068 that class_alias is for user-defined aliases, give the class
5069 name for each class, remove unused class_xdb.
5070 * cli/cli-decode.c (add_com_alias): Document THECLASS intended usage.
5071 * breakpoint.c (_initialize_breakpoint): Replace class_alias
5072 by a precise class.
5073 * infcmd.c (_initialize_infcmd): Likewise.
5074 * reverse.c (_initialize_reverse): Likewise.
5075 * stack.c (_initialize_stack): Likewise.
5076 * symfile.c (_initialize_symfile): Likewise.
5077 * tracepoint.c (_initialize_tracepoint): Likewise.
5078
7c05caf7
PW
50792020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5080
5081 * cli/cli-decode.c (apropos_cmd): Produce output for aliases
5082 when their aliased command is traversed.
5083 (help_cmd): Add fput_command_names_styled call to
5084 output command name and aliases when command has an alias.
5085
3b3aaacb
PW
50862020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5087
5088 * cli/cli-decode.h (help_cmd_list): Remove declaration.
5089 * cli/cli-decode.c (help_cmd_list): Declare as static,
5090 remove prefix argument, use bool for recurse arg, rework to show the aliases of
5091 a command together with the command.
5092 (fput_command_name_styled, fput_command_names_styled): New functions.
5093 (print_help_for_command): Remove prefix arg, use bool for recurse arg, use
5094 fput_command_name_styled.
5095 (help_list, help_all): Update callers to remove prefix arg and use bool recurse.
5096 * cli/cli-cmds.c (_initialize_cli_cmds): Update alias_command doc.
5097
7aa1b46f
PW
50982020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5099
5100 * cli/cli-setshow.h (cmd_show_list): Remove prefix argument.
5101 * cli/cli-decode.c (do_show_prefix_cmd): Likewise.
5102 * command.h (cmd_show_list): Likewise.
5103 * dwarf2/index-cache.c (show_index_cache_command): Likewise.
5104 * cli/cli-setshow.c (cmd_show_list): Use the prefix to produce the output. Skip aliases.
5105
89bcba74
PW
51062020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5107
5108 * unittests/command-def-selftests.c (traverse_command_structure):
5109 Verify all commands of a list have the same prefix command and
5110 that only the top cmdlist commands have a null prefix.
5111
3f4d92eb
PW
51122020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5113
5114 * cli/cli-decode.c (lookup_cmd_for_prefix): Return the aliased command
5115 as prefix, not one of its aliases.
5116 (set_cmd_prefix): Remove.
5117 (do_add_cmd): Centralize the setting of the prefix of a command, when
5118 command is defined after its full chain of prefix commands.
5119 (add_alias_cmd): Remove call to set_cmd_prefix, as do_add_cmd does it.
5120 (add_setshow_cmd_full): Likewise.
5121 (update_prefix_field_of_prefixed_commands): New function.
5122 (add_prefix_cmd): Replace non working call to set_cmd_prefix by
5123 update_prefix_field_of_prefixed_commands.
5124 * gdb/remote-fileio.c (initialize_remote_fileio): Use the real
5125 addresses of remote_set_cmdlist and remote_show_cmdlist given
5126 as argument, not the address of an argument.
5127 * gdb/remote-fileio.h (initialize_remote_fileio): Likewise.
5128 * gdb/remote.c (_initialize_remote): Likewise.
5129
0605465f
PW
51302020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5131
5132 * cli/cli-cmds.c (alias_command): Check for an existing alias
5133 using lookup_cmd_composition, as valid_command_p is too strict
5134 and forbids aliases that are the prefix of an existing alias
5135 or command.
5136 * cli/cli-decode.c (lookup_cmd_composition): Ensure a prefix
5137 command is properly recognised as a valid command.
5138
58e6ac70
PW
51392020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5140
5141 * unittests/help-doc-selftests.c: Rename to
5142 unittests/command-def-selftests.c
5143 * unittests/command-def-selftests.c (help_doc_tests): Update some
5144 comments.
5145 (command_structure_tests, traverse_command_structure): New namespace
5146 and function.
5147 (command_structure_invariants_tests): New function.
5148 (_initialize_command_def_selftests) Renamed from
5149 _initialize_help_doc_selftests, register command_structure_invariants
5150 selftest.
5151
a7b9ceb8
PW
51522020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5153
5154 * cli/cli-cmds.c (_initialize_cli_cmds): Define 'info set' as
5155 an alias of 'show'.
5156
b2188a06
JB
51572020-05-15 Joel Brobecker <brobecker@adacore.com>
5158
5159 * ada-lang.h: (ada_is_gnat_encoded_fixed_point_type): Renames
5160 ada_is_fixed_point_type. Update all callers.
5161 (gnat_encoded_fixed_point_delta): Renames ada_delta. Update
5162 all callers.
5163 * ada-lang.c (gnat_encoded_fixed_type_info): Renames fixed_type_info.
5164 Update all callers.
5165 * ada-typeprint.c (print_gnat_encoded_fixed_point_type): Renames
5166 print_fixed_point_type. Update all callers.
5167 * ada-valprint.c (ada_value_print_num): Replace call to
5168 ada_is_fixed_point_type by ada_is_gnat_encoded_fixed_point_type.
5169
a51951c2
KB
51702020-05-14 Kevin Buettner <kevinb@redhat.com>
5171
5172 * nat/linux-btrace.c (btrace_this_cpu): Add check for AMD
5173 processors.
5174 (cpu_supports_bts): Add CV_AMD case.
5175
29d6859f
LM
51762020-05-14 Laurent Morichetti <Laurent.Morichetti@amd.com>
5177 Simon Marchi <simon.marchi@efficios.com>
5178
5179 * infrun.c (stop_all_threads): Collect multiple wait events at
5180 each pass.
5181
78134374
SM
51822020-05-14 Simon Marchi <simon.marchi@efficios.com>
5183
5184 * gdbtypes.h (TYPE_CODE): Remove. Change all call sites to use
5185 type::code instead.
5186
67607e24
SM
51872020-05-14 Simon Marchi <simon.marchi@efficios.com>
5188
5189 * gdbtypes.h (struct type) <code, set_code>: New methods.
5190 (TYPE_CODE): Use type::code. Change all call sites used to set
5191 the code to use type::set_code instead.
5192
a05575d3
TBA
51932020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
5194 Tom de Vries <tdevries@suse.de>
5195 Pedro Alves <palves@redhat.com>
5196
5197 PR threads/25478
5198 * infrun.c (stop_all_threads): Do NOT ignore
5199 TARGET_WAITKIND_NO_RESUMED, TARGET_WAITKIND_THREAD_EXITED,
5200 TARGET_WAITKIND_EXITED, TARGET_WAITKIND_SIGNALLED wait statuses
5201 received.
5202 (handle_no_resumed): Remove code handling a live inferior with no
5203 threads.
5204 * remote.c (has_single_non_exited_thread): New.
5205 (remote_target::update_thread_list): Do not delete a thread if is
5206 the last thread of the process.
5207 * thread.c (thread_select): Call delete_exited_threads instead of
5208 prune_threads.
5209
6ad82919
TBA
52102020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
5211
5212 * infrun.c (stop_all_threads): Enable/disable thread events of all
5213 targets. Move a debug message denoting the end of the function
5214 into the SCOPED_EXIT block.
5215
d890404b
TBA
52162020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
5217
5218 * process-stratum-target.h: Include <set>.
5219 (all_non_exited_process_targets, switch_to_target_no_thread): New
5220 function declarations.
5221 * process-stratum-target.c (all_non_exited_process_targets)
5222 (switch_to_target_no_thread): New function implementations.
5223
293b3ebc
TBA
52242020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
5225
5226 * infrun.c (handle_inferior_event): Extract out a piece of code
5227 into...
5228 (mark_non_executing_threads): ...this new function.
5229
7ca9b62a
TBA
52302020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
5231
5232 * infrun.c (resume_1): Move a 'regcache_read_pc' call down to first
5233 use.
5234
fc75c28b
TBA
52352020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
5236
5237 * regcache.c (regcache_read_pc_protected): New function
5238 implementation that returns 0 if the PC cannot read via
5239 'regcache_read_pc'.
5240 * infrun.c (proceed): Call 'regcache_read_pc_protected'
5241 instead of 'regcache_read_pc'.
5242 (keep_going_pass_signal): Ditto.
5243
a89febbd
TT
52442020-05-13 Tom Tromey <tromey@adacore.com>
5245
5246 * ada-lang.c (align_value): Remove.
5247 (ada_template_to_fixed_record_type_1): Use align_up.
5248
f7e23710
TBA
52492020-05-13 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
5250
5251 * async-event.c: Update the copyright year.
5252 * async-event.h: Update the copyright year.
5253
02ff80c2
SM
52542020-05-12 Simon Marchi <simon.marchi@efficios.com>
5255
5256 * objfiles.h (is_addr_in_objfile,
5257 shared_objfile_contains_address_p): Return bool.
5258 * objfile.c (is_addr_in_objfile,
5259 shared_objfile_contains_address_p): Return bool.
5260
4fd6c7e8
TT
52612020-05-11 Tom Tromey <tromey@adacore.com>
5262
5263 * cli/cli-cmds.c (info_command): Restore.
5264 (_initialize_cli_cmds): Use add_prefix_command for "info".
5265 * gdb-gdb.gdb.in: Restore breakpoint on info_command.
5266
5eb68a39
TT
52672020-05-11 Tom Tromey <tromey@adacore.com>
5268
5269 * ada-lang.c (ada_value_primitive_field): Now public.
5270 * ada-lang.h (ada_value_primitive_field): Declare.
5271 * ada-valprint.c (print_field_values): Use
5272 ada_value_primitive_field for wrapper fields.
5273
7666722f
TV
52742020-05-11 Tom de Vries <tdevries@suse.de>
5275
5276 * dwarf2/index-write.c (debug_names::psymbol_tag): Handle
5277 MODULE_DOMAIN.
5278
3ee6bb11
TV
52792020-05-11 Tom de Vries <tdevries@suse.de>
5280
5281 PR symtab/25941
5282 * dwarf2/read.c (create_cus_from_debug_names_list): Initialize CUs
5283 with length 0, if not gdb-produced.
5284 (cutu_reader::cutu_reader): Set CU length to actual length if 0.
5285
43434996
TV
52862020-05-09 Tom de Vries <tdevries@suse.de>
5287
5288 PR gdb/25955
5289 * break-catch-throw.c (check_status_exception_catchpoint): Fix name
5290 calculation.
5291
2f78cffc
TT
52922020-05-09 Tom Tromey <tom@tromey.com>
5293
5294 * top.c (server_command): Now bool.
5295 * top.h (server_command): Now bool.
5296
4f7bc5ed
TT
52972020-05-08 Tom Tromey <tromey@adacore.com>
5298
5299 * dwarf2/read.c (read_lexical_block_scope): Don't process a DIE
5300 already being processed.
5301
8be4b118
TT
53022020-05-08 Tom Tromey <tom@tromey.com>
5303
5304 * printcmd.c (struct display) <next>: Remove.
5305 <display>: New constructor.
5306 <exp_string>: Now a std::string.
5307 <enabled_p>: Now a bool.
5308 (display_number): Move definition earlier.
5309 (displays): Rename from display_chain. Now a std::vector.
5310 (ALL_DISPLAYS, ALL_DISPLAYS_SAFE): Remove.
5311 (display_command): Update.
5312 (do_one_display, disable_display)
5313 (enable_disable_display_command, do_enable_disable_display):
5314 Update.
5315 (free_display): Remove.
5316 (clear_displays): Rewrite.
5317 (delete_display): Update.
5318 (map_display_numbers): Use function_view. Remove "data"
5319 parameter. Update.
5320 (do_delete_display): Remove.
5321 (undisplay_command): Update.
5322 (do_one_display, do_displays, disable_display)
5323 (info_display_command): Update.
5324 (do_enable_disable_display): Remove.
5325 (enable_disable_display_command)
5326 (clear_dangling_display_expressions): Update.
5327
94c93c35
TT
53282020-05-08 Tom Tromey <tom@tromey.com>
5329
5330 * symtab.c (set_symbol_cache_size)
5331 (maintenance_print_symbol_cache, maintenance_flush_symbol_cache)
5332 (maintenance_print_symbol_cache_statistics): Update.
5333 * symmisc.c (print_symbol_bcache_statistics)
5334 (print_objfile_statistics, maintenance_print_objfiles)
5335 (maintenance_info_symtabs, maintenance_check_symtabs)
5336 (maintenance_expand_symtabs, maintenance_info_line_tables):
5337 Update.
5338 * symfile-debug.c (set_debug_symfile): Update.
5339 * source.c (forget_cached_source_info): Update.
5340 * python/python.c (gdbpy_progspaces): Update.
5341 * psymtab.c (maintenance_info_psymtabs): Update.
5342 * probe.c (parse_probes): Update.
5343 * linespec.c (iterate_over_all_matching_symtabs)
5344 (collect_symtabs_from_filename, search_minsyms_for_name): Update.
5345 * guile/scm-progspace.c (gdbscm_progspaces): Update.
5346 * exec.c (exec_target::close): Update.
5347 * ada-tasks.c (ada_tasks_new_objfile_observer): Update.
5348 * breakpoint.c (print_one_breakpoint_location)
5349 (create_longjmp_master_breakpoint)
5350 (create_std_terminate_master_breakpoint): Update.
5351 * progspace.c (program_spaces): Now a std::vector.
5352 (maybe_new_address_space): Update.
5353 (add_program_space): Remove.
5354 (program_space::program_space): Update.
5355 (remove_program_space): Update.
5356 (number_of_program_spaces): Remove.
5357 (print_program_space, update_address_spaces): Update.
5358 * progspace.h (program_spaces): Change type.
5359 (ALL_PSPACES): Remove.
5360 (number_of_program_spaces): Don't declare.
5361 (struct program_space) <next>: Remove.
5362
a1fd1ac9
TT
53632020-05-08 Tom Tromey <tom@tromey.com>
5364
5365 * mi/mi-cmd-file.c (mi_cmd_file_list_shared_libraries): Update.
5366 * solib-svr4.c (svr4_fetch_objfile_link_map): Update.
5367 (enable_break): Update.
5368 * solib-frv.c (frv_fdpic_find_global_pointer): Update.
5369 (frv_fdpic_find_canonical_descriptor): Update.
5370 (frv_fetch_objfile_link_map): Update.
5371 * progspace.c (program_space::free_all_objfiles): Update.
5372 (program_space::solibs): New method.
5373 * progspace.h (struct program_space) <solibs>: New method.
5374 * solist.h (master_so_list): Don't declare.
5375 (ALL_SO_LIBS): Remove.
5376 * solib.h (so_list_head): Remove.
5377 (update_solib_list): Update comment.
5378 * solib.c (master_so_list): Remove.
5379 (solib_used, update_solib_list, solib_add)
5380 (info_sharedlibrary_command, clear_solib)
5381 (reload_shared_libraries_1, remove_user_added_objfile): Update.
5382
38eae084
TT
53832020-05-08 Tom Tromey <tom@tromey.com>
5384
5385 * extension.c (extension_languages): Now a std::array.
5386 (ALL_EXTENSION_LANGUAGES): Remove.
5387 (get_ext_lang_defn, get_ext_lang_of_file)
5388 (eval_ext_lang_from_control_command): Update.
5389 (finish_ext_lang_initialization)
5390 (auto_load_ext_lang_scripts_for_objfile)
5391 (ext_lang_type_printers::ext_lang_type_printers)
5392 (apply_ext_lang_type_printers)
5393 (ext_lang_type_printers::~ext_lang_type_printers)
5394 (apply_ext_lang_val_pretty_printer, apply_ext_lang_frame_filter)
5395 (preserve_ext_lang_values, get_breakpoint_cond_ext_lang)
5396 (breakpoint_ext_lang_cond_says_stop, check_quit_flag)
5397 (get_matching_xmethod_workers, ext_lang_colorize)
5398 (ext_lang_before_prompt): Update.
5399 (ALL_ENABLED_EXTENSION_LANGUAGES): Remove.
5400
596dc4ad
TT
54012020-05-08 Tom Tromey <tom@tromey.com>
5402
5403 * symtab.h (class demangle_result_storage) <set_malloc_ptr>: New
5404 overload.
5405 <swap_string, m_string>: Remove.
5406 * symtab.c (demangle_for_lookup, completion_list_add_symbol):
5407 Update.
5408 * stabsread.c (define_symbol, read_type): Update.
5409 * linespec.c (find_linespec_symbols): Update.
5410 * gnu-v3-abi.c (gnuv3_get_typeid): Update.
5411 * dwarf2/read.c (dwarf2_canonicalize_name): Update.
5412 * dbxread.c (read_dbx_symtab): Update.
5413 * cp-support.h (cp_canonicalize_string_full)
5414 (cp_canonicalize_string, cp_canonicalize_string_no_typedefs):
5415 Return unique_xmalloc_ptr.
5416 * cp-support.c (inspect_type): Update.
5417 (cp_canonicalize_string_full): Return unique_xmalloc_ptr.
5418 (cp_canonicalize_string_no_typedefs, cp_canonicalize_string):
5419 Likewise.
5420 * c-typeprint.c (print_name_maybe_canonical): Update.
5421 * break-catch-throw.c (check_status_exception_catchpoint):
5422 Update.
5423
bf4cb9be
TV
54242020-05-08 Tom de Vries <tdevries@suse.de>
5425
5426 * infrun.c (follow_fork): Copy current_line and current_symtab to
5427 child thread.
5428
a1b68f28
SM
54292020-05-07 Simon Marchi <simon.marchi@efficios.com>
5430
5431 * async-event.c (struct async_signal_handler, struct
5432 async_event_handler): Reformat, remove typedef.
5433
98d48915
SM
54342020-05-07 Simon Marchi <simon.marchi@efficios.com>
5435
5436 * gdbtypes.h (TYPE_DYN_PROP_LIST): Remove. Update all users
5437 access thistype->main_type->dyn_prop_list directly.
5438
7aa91313
SM
54392020-05-07 Simon Marchi <simon.marchi@efficios.com>
5440
5441 * gdbtypes.h (struct type) <remove_dyn_prop>: New method.
5442 (remove_dyn_prop): Remove. Update all users to use
5443 type::remove_dyn_prop.
5444 * gdbtypes.c (remove_dyn_prop): Rename to...
5445 (type::remove_dyn_prop): ... this.
5446
5c54719c
SM
54472020-05-07 Simon Marchi via Gdb-patches <gdb-patches@sourceware.org>
5448
5449 * gdbtypes.h (struct type) <add_dyn_prop>: New method.
5450 (add_dyn_prop): Remove. Update all users to use
5451 type::add_dyn_prop.
5452 * gdbtypes.c (add_dyn_prop): Rename to...
5453 (type::add_dyn_prop): ... this.
5454
24e99c6c
SM
54552020-05-07 Simon Marchi <simon.marchi@efficios.com>
5456
5457 * gdbtypes.h (struct type) <get_dyn_prop>: New method.
5458 (get_dyn_prop): Remove. Update all users to use
5459 type::dyn_prop.
5460 * gdbtypes.c (get_dyn_prop): Rename to...
5461 (type::dyn_prop): ... this.
5462
0d4bf016
SM
54632020-05-06 Simon Marchi <simon.marchi@efficios.com>
5464
5465 * gdbtypes.h (struct main_type) <flag_static>: Remove.
5466
ac4a4f1c
SM
54672020-05-06 Simon Marchi <simon.marchi@efficios.com>
5468
5469 * amd64-tdep.c (amd64_analyze_prologue): Check for `endbr64`
5470 instruction, skip it if it's there.
5471
a3bbacc1
SM
54722020-05-05 Simon Marchi <simon.marchi@efficios.com>
5473
5474 * gdbtypes.h (struct main_type) <flag_incomplete>: Remove.
5475
c3236f84
SM
54762020-05-04 Simon Marchi <simon.marchi@efficios.com>
5477
5478 * gdbtypes.h (TYPE_INCOMPLETE): Remove.
5479 * gdbtypes.c (recursive_dump_type): Remove use of
5480 TYPE_INCOMPLETE.
5481
3b6acaee
TT
54822020-05-03 Tom Tromey <tom@tromey.com>
5483
5484 * breakpoint.c (catch_command, tcatch_command): Remove.
5485 (_initialize_breakpoint): Use add_basic_prefix_cmd,
5486 add_show_prefix_cmd.
5487 (set_breakpoint_cmd, show_breakpoint_cmd): Remove
5488 * utils.c (set_internal_problem_cmd, show_internal_problem_cmd):
5489 Remove.
5490 (add_internal_problem_command): Use add_basic_prefix_cmd,
5491 add_show_prefix_cmd.
5492 * mips-tdep.c (set_mipsfpu_command): Remove.
5493 (_initialize_mips_tdep): Use add_basic_prefix_cmd.
5494 * dwarf2/index-cache.c (set_index_cache_command): Remove.
5495 (_initialize_index_cache): Use add_basic_prefix_cmd.
5496 * memattr.c (dummy_cmd): Remove.
5497 (_initialize_mem): Use add_basic_prefix_cmd, add_show_prefix_cmd.
5498 * tui/tui-win.c (set_tui_cmd, show_tui_cmd): Remove.
5499 (_initialize_tui_win): Use add_basic_prefix_cmd,
5500 add_show_prefix_cmd.
5501 * cli/cli-logging.c (set_logging_command): Remove.
5502 (_initialize_cli_logging): Use add_basic_prefix_cmd,
5503 add_show_prefix_cmd.
5504 (show_logging_command): Remove.
5505 * target.c (target_command): Remove.
5506 (add_target): Use add_basic_prefix_cmd.
5507
a51119cd
HD
55082020-05-02 Hannes Domani <ssbssa@yahoo.de>
5509
5510 * gdbtypes.h (enum dynamic_prop_node_kind): Fix typo.
5511
652fc23a 55122020-05-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6a6ea76a 5513
652fc23a
PW
5514 * gdb-gdb.gdb-in: Remove breakpoint on disappeared function
5515 info_command.
5516
117539e6
KR
55172020-04-30 Kamil Rytarowski <n54@gmx.com>
5518
5519 * nbsd-nat.c (nbsd_enable_proc_events)
5520 (nbsd_nat_target::post_startup_inferior): Add.
5521 (nbsd_nat_target::post_attach): Call `nbsd_enable_proc_events'.
5522 (nbsd_nat_target::update_thread_list): Rewrite.
5523 (nbsd_nat_target::wait): Handle "PTRACE_LWP_EXIT" and
5524 "PTRACE_LWP_CREATE".
5525 * nbsd-nat.h (nbsd_nat_target::post_startup_inferior): Add.
5526
102e38eb 55272020-04-30 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6a6ea76a 5528
102e38eb
PW
5529 * stack.c (_initialize_stack): Remove duplicated creation
5530 of "frame" command and "f" alias.
5531
ee9d1e5f
HD
55322020-04-30 Hannes Domani <ssbssa@yahoo.de>
5533
5534 PR gdb/18706
5535 * gdbtypes.c (check_typedef): Calculate size of array of
5536 stubbed type.
5537
627c7fb8
HD
55382020-04-30 Hannes Domani <ssbssa@yahoo.de>
5539
5540 PR gdb/15559
5541 * i386-tdep.c (i386_push_dummy_call): Call
5542 i386_thiscall_push_dummy_call.
5543 (i386_thiscall_push_dummy_call): New function.
5544 * i386-tdep.h (i386_thiscall_push_dummy_call): Declare.
5545 * i386-windows-tdep.c (i386_windows_push_dummy_call): New function.
5546 (i386_windows_init_abi): Call set_gdbarch_push_dummy_call.
5547
ffc2844e
SM
55482020-04-29 Simon Marchi <simon.marchi@efficios.com>
5549
5550 * gdbarch.sh (do_read): Add shellcheck disable directive for
5551 warning SC2162.
5552
1207375d
SM
55532020-04-29 Simon Marchi <simon.marchi@efficios.com>
5554
5555 * gdbarch.sh: Use ${foo:-} where shellcheck would report a
5556 "referenced but not assigned" warning.
5557
9fdb2916
SM
55582020-04-29 Simon Marchi <simon.marchi@efficios.com>
5559
5560 * gdbarch.sh: Remove code that sets fallbackdefault.
5561
759cea5e
SM
55622020-04-29 Simon Marchi <simon.marchi@efficios.com>
5563
5564 * gdbarch.sh: Use shell operators && and || instead of
5565 -a and -o.
5566
cb02ab24
SM
55672020-04-29 Simon Marchi <simon.marchi@efficios.com>
5568
5569 * gdbarch.sh: Use $(...) instead of `...`.
5570
a6fc5ffc
SM
55712020-04-29 Simon Marchi <simon.marchi@efficios.com>
5572
5573 * gdbarch.sh: Use double quotes around variables.
5574
8d113d13
SM
55752020-04-29 Simon Marchi <simon.marchi@efficios.com>
5576
5577 * gdbarch.sh: Use %s with printf, instead of variables in the
5578 format string.
5579
ed6acedd
TT
55802020-04-29 Tom Tromey <tromey@adacore.com>
5581
5582 PR ada/25875:
5583 * dwarf2/read.c (update_enumeration_type_from_children): Compute
5584 type fields here.
5585 (read_enumeration_type): Call
5586 update_enumeration_type_from_children later. Update comments.
5587 (process_enumeration_scope): Don't create type fields.
5588
b68b1b58
KR
55892020-04-29 Kamil Rytarowski <n54@gmx.com>
5590
5591 * nbsd-tdep.c: Include "xml-syscall.h".
5592 (nbsd_init_abi): Call `set_xml_syscall_file_name'.
5593
f94b2e03
KR
55942020-04-29 Kamil Rytarowski <n54@gmx.com>
5595
5596 * nbsd-nat.c: Include "sys/wait.h".
5597 (nbsd_resume, nbsd_nat_target::resume, nbsd_wait)
5598 (nbsd_nat_target::wait, nbsd_nat_target::insert_exec_catchpoint)
5599 (nbsd_nat_target::remove_exec_catchpoint)
5600 (nbsd_nat_target::set_syscall_catchpoint): Add.
5601 * nbsd-nat.h (nbsd_nat_target::resume, nbsd_nat_target::wait)
5602 (nbsd_nat_target::insert_exec_catchpoint)
5603 (nbsd_nat_target::remove_exec_catchpoint)
5604 (nbsd_nat_target::set_syscall_catchpoint): Add.
5605 * nbsd-tdep.c (nbsd_get_syscall_number): Add.
5606 (nbsd_init_abi): Call `set_gdbarch_get_syscall_number' and pass
5607 `nbsd_get_syscall_number'.
5608
fc49bc72
TT
56092020-04-29 Tom Tromey <tom@tromey.com>
5610
5611 * stack.c (print_block_frame_labels): Remove.
5612
d642b692
HD
56132020-04-29 Hannes Domani <ssbssa@yahoo.de>
5614
5615 PR gdb/17320
5616 * ada-valprint.c (val_print_packed_array_elements): Move array
5617 end bracket to new line.
5618 (ada_val_print_string): Remove extra spaces before first array
5619 element.
5620 * c-valprint.c (c_value_print_array): Likewise.
5621 * m2-valprint.c (m2_print_array_contents): Likewise.
5622 (m2_value_print_inner): Likewise.
5623 * p-valprint.c (pascal_value_print_inner): Likewise.
5624 * valprint.c (generic_val_print_array): Likewise.
5625 (value_print_array_elements): Move first array element and array
5626 end bracket to new line.
5627
ea90f227
TV
56282020-04-29 Tom de Vries <tdevries@suse.de>
5629
5630 PR symtab/25889
5631 * linespec.c (find_method): Fix ix calculation.
5632
4498ef4f
KR
56332020-04-28 Kamil Rytarowski <n54@gmx.com>
5634
5635 * syscalls/update-netbsd.sh: New file.
5636 * syscalls/netbsd.xml: Regenerate.
5637 * data-directory/Makefile.in: Register `netbsd.xml' in
5638 `SYSCALLS_FILES'.
5639
a55e30b5
SM
56402020-04-28 Simon Marchi <simon.marchi@efficios.com>
5641
5642 * syscalls/update-freebsd.sh: Add double quotes.
5643
2b2fbab8
TT
56442020-04-28 Tom Tromey <tom@tromey.com>
5645
5646 * NEWS: Update.
5647 * python/py-cmd.c (gdbpy_initialize_commands): Add COMMAND_TUI.
5648 (cmdpy_init): Allow class_tui.
5649
a65189c9
TV
56502020-04-28 Mark Williams <mark@myosotissp.com>
5651
5652 PR gdb/24480
5653 * dwarf2read.c: Add missing assingments to list_in_scope when
5654 start_symtab was already called.
5655
1b95cdb7
SM
56562020-04-28 Simon Marchi <simon.marchi@efficios.com>
5657
5658 PR gdb/25881
5659 * dwarf2/read.c (offset_map_type): Use
5660 gdb:hash_enum<sect_offset> as hash function.
5661
15cd93d0
TV
56622020-04-28 Tom de Vries <tdevries@suse.de>
5663
5664 * dwarf2/read.c (process_structure_scope): Add symbol for struct decl
5665 with DW_AT_signature.
5666
1eb39914
SM
56672020-04-27 Simon Marchi <simon.marchi@efficios.com>
5668
5669 * configure.ac: Remove check for fs_base/gs_base in
5670 user_regs_struct.
5671 * configure: Re-generate.
5672 * config.in: Re-generate.
5673 * amd64-nat.c (amd64_native_gregset_reg_offset): Adjust.
5674 * amd64-linux-nat.c (amd64_linux_nat_target::fetch_registers,
5675 amd64_linux_nat_target::store_registers, ps_get_thread_area, ): Adjust.
5676
991a3e2e
LM
56772020-04-27 Luis Machado <luis.machado@linaro.org>
5678
5679 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first): Handle
5680 problematic inline frame unwinding situation.
5681 * frame.c (frame_id_computed_p): New function.
5682 * frame.h (frame_id_computed_p): New prototype.
5683
361ba0e8
TT
56842020-04-26 Tom Tromey <tom@tromey.com>
5685
5686 * command.h (enum command_class) <class_pseudo>: Remove.
5687
bc3609fd
PW
56882020-04-26 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5689
5690 * cli/cli-decode.c (lookup_cmd_composition): Fix comments
5691 and whitespace.
5692
b9771db7
KR
56932020-04-25 Kamil Rytarowski <n54@gmx.com>
5694
ec16513e
SM
5695 * inf-ptrace.c (inf_ptrace_target::wait): Remove
5696 `PT_GET_PROCESS_STATE' block.
b9771db7 5697
7151c1af
TT
56982020-04-24 Tom Tromey <tom@tromey.com>
5699
5700 * symtab.h (symbol_get_demangled_name): Don't declare.
5701 * symtab.c (symbol_get_demangled_name): Remove.
5702 (general_symbol_info::natural_name)
5703 (general_symbol_info::demangled_name): Update.
5704
906bb4c5
TT
57052020-04-24 Tom Tromey <tom@tromey.com>
5706
5707 PR rust/25025:
5708 * dwarf2/read.c (dwarf2_physname): Do not demangle for Rust.
5709
bcfe6157
TT
57102020-04-24 Tom Tromey <tom@tromey.com>
5711
5712 PR symtab/12707:
5713 * dwarf2/read.c (add_partial_symbol): Use the linkage name if it
5714 exists.
5715 (new_symbol): Likewise.
5716 * compile/compile-object-load.c (get_out_value_type): Use
5717 symbol_matches_search_name.
5718
f049a313
TT
57192020-04-24 Tom Tromey <tom@tromey.com>
5720
5721 * dwarf2/read.c (add_partial_symbol): Do not call
5722 compute_and_set_names.
5723
76e288d1
TT
57242020-04-24 Tom Tromey <tom@tromey.com>
5725
5726 * dwarf2/read.c (add_partial_symbol): Use new add_psymbol_to_list
5727 overload.
5728
2467f4f6
TT
57292020-04-24 Tom Tromey <tom@tromey.com>
5730
5731 * psymtab.c (add_psymbol_to_bcache): Simplify calling convention.
5732 (add_psymbol_to_list): New overload. Make old overload call new
5733 one.
5734 * psympriv.h (add_psymbol_to_list): New overload.
5735
e61108c9
TT
57362020-04-24 Tom Tromey <tom@tromey.com>
5737
5738 * dwarf2/read.c (partial_die_info::read) <case
5739 DW_AT_linkage_name>: Use value_as_string.
5740 (dwarf2_string_attr): Use value_as_string.
5741 * dwarf2/attribute.h (struct attribute) <value_as_string>: Declare
5742 method.
5743 * dwarf2/attribute.c (attribute::value_as_string): New method.
5744
8c87a452
TT
57452020-04-24 Tom Tromey <tom@tromey.com>
5746
5747 * symtab.c (general_symbol_info::natural_name)
5748 (general_symbol_info::demangled_name): Check for language_rust.
5749
787de330
TT
57502020-04-24 Tom Tromey <tom@tromey.com>
5751
5752 * dwarf2/read.c (dw2_linkage_name): Move Rust "{" hack here...
5753 (dwarf2_physname): ... from here.
5754 (partial_die_info::read): Add Rust "{" hack.
5755
ff985671
TT
57562020-04-24 Tom Tromey <tom@tromey.com>
5757
5758 * symtab.h (struct general_symbol_info) <set_demangled_name>: New
5759 method.
5760 (symbol_set_demangled_name): Don't declare.
5761 * symtab.c (general_symbol_info::set_demangled_name): Rename from
5762 symbol_set_demangled_name.
5763 (general_symbol_info::set_language)
5764 (general_symbol_info::compute_and_set_names): Update.
5765 * minsyms.c (minimal_symbol_reader::install): Update.
5766 * dwarf2/read.c (new_symbol): Update.
5767
1acda803
TT
57682020-04-24 Tom Tromey <tromey@adacore.com>
5769
5770 PR python/23662:
5771 * python/py-type.c (convert_field): Handle
5772 FIELD_LOC_KIND_DWARF_BLOCK.
5773 (typy_get_sizeof): Handle TYPE_HAS_DYNAMIC_LENGTH.
5774 (typy_get_dynamic): Nw function.
5775 (type_object_getset): Add "dynamic".
5776 * NEWS: Add entry.
5777
d656f129
TT
57782020-04-24 Tom Tromey <tromey@adacore.com>
5779
5780 * ada-typeprint.c (print_choices, print_variant_part)
5781 (print_record_field_types_dynamic): New functions.
5782 (print_record_field_types): Use print_record_field_types_dynamic.
5783
7d79de9a
TT
57842020-04-24 Tom Tromey <tromey@adacore.com>
5785
5786 * dwarf2/read.c (handle_data_member_location): New overload.
5787 (dwarf2_add_field): Use it.
5788 (decode_locdesc): Add "computed" parameter. Update comment.
5789 * gdbtypes.c (is_dynamic_type_internal): Also look for
5790 FIELD_LOC_KIND_DWARF_BLOCK.
5791 (resolve_dynamic_struct): Handle FIELD_LOC_KIND_DWARF_BLOCK.
5792 * gdbtypes.c (is_dynamic_type_internal): Add special case for C++
5793 virtual base classes.
5794 * gnu-v3-abi.c (gnuv3_baseclass_offset): Handle
5795 FIELD_LOC_KIND_DWARF_BLOCK.
5796
f8e89861
TT
57972020-04-24 Tom Tromey <tromey@adacore.com>
5798
5799 * dwarf2/read.c (read_structure_type): Handle dynamic length.
5800 * gdbtypes.c (is_dynamic_type_internal): Check
5801 TYPE_HAS_DYNAMIC_LENGTH.
5802 (resolve_dynamic_type_internal): Use TYPE_DYNAMIC_LENGTH.
5803 * gdbtypes.h (TYPE_HAS_DYNAMIC_LENGTH, TYPE_DYNAMIC_LENGTH):
5804 New macros.
5805 (enum dynamic_prop_node_kind) <DYN_PROP_BYTE_SIZE>: New
5806 constant.
5807
9c6a1327
TT
58082020-04-24 Tom Tromey <tromey@adacore.com>
5809
5810 * dwarf2/read.c (struct variant_field): Rewrite.
5811 (struct variant_part_builder): New.
5812 (struct nextfield): Remove "variant" field. Add "offset".
5813 (struct field_info): Add "current_variant_part" and
5814 "variant_parts".
5815 (alloc_discriminant_info): Remove.
5816 (alloc_rust_variant): New function.
5817 (quirk_rust_enum): Update.
5818 (dwarf2_add_field): Set "offset" member. Don't handle
5819 DW_TAG_variant_part.
5820 (offset_map_type): New typedef.
5821 (convert_variant_range, create_one_variant)
5822 (create_one_variant_part, create_variant_parts)
5823 (add_variant_property): New functions.
5824 (dwarf2_attach_fields_to_type): Call add_variant_property.
5825 (read_structure_type): Don't handle DW_TAG_variant_part.
5826 (handle_variant_part, handle_variant): New functions.
5827 (handle_struct_member_die): Use them.
5828 (process_structure_scope): Don't handle variant parts.
5829 * gdbtypes.h (TYPE_FLAG_DISCRIMINATED_UNION): Remove.
5830 (struct discriminant_info): Remove.
5831 (enum dynamic_prop_node_kind) <DYN_PROP_DISCRIMINATED>: Remove.
5832 (struct main_type) <flag_discriminated_union>: Remove.
5833 * rust-lang.c (rust_enum_p, rust_empty_enum_p): Rewrite.
5834 (rust_enum_variant): Return int. Remove "contents". Rewrite.
5835 (rust_print_enum, rust_print_struct_def, rust_evaluate_subexp):
5836 Update.
5837 * valops.c (value_union_variant): Remove.
5838 * value.h (value_union_variant): Don't declare.
5839
b249d2c2
TT
58402020-04-24 Tom Tromey <tromey@adacore.com>
5841
5842 * ada-lang.c (ada_discrete_type_high_bound, ada_discrete_type_low)
5843 (ada_value_primitive_packed_val): Update.
5844 * ada-valprint.c (ada_value_print_1): Update.
5845 * dwarf2/loc.c (evaluate_for_locexpr_baton): New struct.
5846 (dwarf2_locexpr_baton_eval): Take a property_addr_info rather than
5847 just an address. Use evaluate_for_locexpr_baton.
5848 (dwarf2_evaluate_property): Update.
5849 * dwarf2/loc.h (struct property_addr_info) <valaddr>: Now an
5850 array_view.
5851 * findvar.c (default_read_var_value): Update.
5852 * gdbtypes.c (compute_variant_fields_inner)
5853 (resolve_dynamic_type_internal): Update.
5854 (resolve_dynamic_type): Change type of valaddr parameter.
5855 * gdbtypes.h (resolve_dynamic_type): Update.
5856 * valarith.c (value_subscripted_rvalue): Update.
5857 * value.c (value_from_contents_and_address): Update.
5858
61122aa9
TT
58592020-04-24 Tom Tromey <tromey@adacore.com>
5860
5861 * dwarf2/loc.c (dwarf2_locexpr_baton_eval): Add
5862 "push_initial_value" parameter.
5863 (dwarf2_evaluate_property): Likewise.
5864 * dwarf2/loc.h (dwarf2_evaluate_property): Update.
5865
ef83a141
TT
58662020-04-24 Tom Tromey <tromey@adacore.com>
5867
5868 * gdbtypes.c (is_dynamic_type_internal): Check for variant parts.
5869 (variant::matches, compute_variant_fields_recurse)
5870 (compute_variant_fields_inner, compute_variant_fields): New
5871 functions.
5872 (resolve_dynamic_struct): Check for DYN_PROP_VARIANT_PARTS.
5873 Use resolved_type after type is made.
5874 (operator==): Add new cases.
5875 * gdbtypes.h (TYPE_HAS_VARIANT_PARTS): New macro.
5876 (struct discriminant_range, struct variant, struct variant_part):
5877 New.
5878 (union dynamic_prop_data) <variant_parts, original_type>: New
5879 members.
5880 (enum dynamic_prop_node_kind) <DYN_PROP_VARIANT_PARTS>: New constant.
5881 (enum dynamic_prop_kind) <PROP_TYPE, PROP_VARIANT_PARTS>: New
5882 constants.
5883 * value.c (unpack_bits_as_long): Now public.
5884 * value.h (unpack_bits_as_long): Declare.
5885
675127ec
TT
58862020-04-24 Tom Tromey <tromey@adacore.com>
5887
5888 * rs6000-tdep.c (struct ppc_variant): Rename from "variant".
5889 (variants, find_variant_by_arch, rs6000_gdbarch_init): Update.
5890
9852ceef
HD
58912020-04-24 Hannes Domani <ssbssa@yahoo.de>
5892
5893 * windows-tdep.c (exception_values): Add WOW64 exception numbers.
5894
7632c6ce
KR
58952020-04-24 Kamil Rytarowski <n54@gmx.com>
5896
5897 * inf-ptrace.h (follow_fork, insert_fork_catchpoint)
5898 (remove_fork_catchpoint, post_startup_inferior)
5899 (post_attach): Move...
5900 * obsd-nat.h (follow_fork, insert_fork_catchpoint)
5901 (remove_fork_catchpoint, post_startup_inferior)
5902 (post_attach): ...here.
5903 * inf-ptrace.c (follow_fork, insert_fork_catchpoint)
5904 (remove_fork_catchpoint, post_startup_inferior)
5905 (post_attach): Move...
5906 * obsd-nat.c (follow_fork, insert_fork_catchpoint)
5907 (remove_fork_catchpoint, post_startup_inferior)
5908 (post_attach): ...here.
5909
7be2bb4f
TT
59102020-04-24 Tom Tromey <tromey@adacore.com>
5911
5912 * nat/windows-nat.h (struct windows_thread_info)
5913 <pc_adjusted>: New member.
5914 * windows-nat.c (windows_fetch_one_register): Check
5915 pc_adjusted.
5916 (windows_nat_target::get_windows_debug_event)
5917 (windows_nat_target::wait): Set pc_adjusted.
5918
f80cb3b4
TV
59192020-04-24 Tom de Vries <tdevries@suse.de>
5920
5921 * contrib/cc-with-tweaks.sh: Remove <exec>.gdb-index file handling.
5922 Run gdb-add-index inside temp dir.
5923
29514b87
TT
59242020-04-23 Tom Tromey <tromey@adacore.com>
5925
5926 * windows-tdep.c (is_linked_with_cygwin_dll): Always update "iter"
5927 in loop.
5928
5939967b
LM
59292020-04-23 Luis Machado <luis.machado@linaro.org>
5930
5931 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first): Use
5932 get_frame_register instead of gdbarch_unwind_pc.
5933
70bc38f5
TV
59342020-04-23 Tom de Vries <tdevries@suse.de>
5935
5936 * symtab.c (lookup_global_symbol): Prefer def over decl.
5937
de82891c
TV
59382020-04-23 Tom de Vries <tdevries@suse.de>
5939
5940 PR symtab/25807
5941 * block.c (best_symbol, better_symbol): Promote to external.
5942 * block.h (best_symbol, better_symbol): Declare.
5943 * symtab.c (lookup_symbol_in_objfile_symtabs): Prefer def over
5944 decl.
5945
ecc6c606
TT
59462020-04-23 Tom Tromey <tromey@adacore.com>
5947
5948 PR ada/25837:
5949 * dwarf2/read.c (dw2_expand_symtabs_matching_symbol): Store a
5950 "const char *", not a "const std::string &".
5951 <name_and_matcher::operator==>: Update.
5952 * unittests/lookup_name_info-selftests.c: Change type of
5953 "result".
5954
740480b8
TT
59552020-04-23 Tom Tromey <tom@tromey.com>
5956
5957 * inferior.h (iterate_over_inferiors): Don't declare.
5958 * inferior.c (iterate_over_inferiors): Remove.
5959 * darwin-nat.c (find_inferior_task_it, find_inferior_pid_it):
5960 Remove.
5961 (darwin_find_inferior_by_task, darwin_find_inferior_by_pid): Don't
5962 use iterate_over_inferiors.
5963 (darwin_resume_inferior_it)
5964 (struct resume_inferior_threads_param)
5965 (darwin_resume_inferior_threads_it): Remove.
5966 (darwin_nat_target::resume): Don't use iterate_over_inferiors.
5967
ae3ab1f0
TV
59682020-04-23 Tom de Vries <tdevries@suse.de>
5969
5970 * blockframe.c (find_pc_partial_function): Use
5971 find_pc_sect_compunit_symtab rather than
5972 objfile->sf->qf->find_pc_sect_compunit_symtab.
5973
317d2668
TV
59742020-04-22 Tom de Vries <tdevries@suse.de>
5975
5976 PR symtab/25764
5977 * dwarf2/read.c (scan_partial_symbols): Allow external variable decls
5978 in psymtabs.
5979
eea9e357
TV
59802020-04-22 Tom de Vries <tdevries@suse.de>
5981
5982 PR symtab/25801
5983 * psymtab.c (psym_map_symtabs_matching_filename): Don't skip shared
5984 symtabs.
5985
3d5afab3
TV
59862020-04-22 Tom de Vries <tdevries@suse.de>
5987
5988 PR symtab/25700
5989 * dwarf2/read.c (dwarf2_build_psymtabs_hard): Don't create psymtab for
5990 CU if already created.
5991
d43b7a2d
TBA
59922020-04-21 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
5993
5994 * infrun.c (displaced_step_fixup): Switch to the event_thread
5995 before calling displaced_step_restore, not after.
5996
d89edf9b
MM
59972020-04-21 Markus Metzger <markus.t.metzger@intel.com>
5998
5999 * record-btrace.c (record_btrace_enable_warn): Ignore thread if
6000 its inferior is not recorded by us.
6001 (record_btrace_target_open): Replace call to
6002 all_non_exited_threads () with call to current_inferior
6003 ()->non_exited_threads ().
6004 (record_btrace_target::stop_recording): Likewise.
6005 (record_btrace_target::close): Likewise.
6006 (record_btrace_target::wait): Likewise.
6007 (record_btrace_target::record_stop_replaying): Likewise.
6008
5897fd49
MM
60092020-04-21 Markus Metzger <markus.t.metzger@intel.com>
6010
6011 * btrace.c (btrace_enable): Throw an error on double enables and
6012 when enabling recording fails.
6013 (btrace_disable): Throw an error if the thread is not recorded.
6014
1a476b6d
MM
60152020-04-21 Markus Metzger <markus.t.metzger@intel.com>
6016
6017 * record-btrace.c (record_btrace_target::fetch_registers): Forward
6018 request if we do not have a thread_info.
6019
4778a5f8
TV
60202020-04-21 Tom de Vries <tdevries@suse.de>
6021
6022 PR gdb/25471
6023 * thread.c
6024 (scoped_restore_current_thread::scoped_restore_current_thread): Catch
6025 exception in get_frame_id.
6026
0fa7617d
TT
60272020-04-20 Tom Tromey <tromey@adacore.com>
6028
6029 * python/python.c (struct gdbpy_event): Mark move constructor as
6030 noexcept.
6031 * python/py-tui.c (class gdbpy_tui_window_maker): Mark move
6032 constructor as noexcept.
6033 * completer.h (struct completion_result): Mark move constructor as
6034 noexcept.
6035 * completer.c (completion_result::completion_result): Use
6036 initialization style. Don't call reset_match_list.
6037
ad23bda0
MS
60382020-04-20 Mihails Strasuns <mihails.strasuns@intel.com>
6039
6040 * MAINTAINERS (Write After Approval): Add myself.
6041
45e1f031
TT
60422020-04-18 Tom Tromey <tom@tromey.com>
6043
6044 * windows-tdep.c (init_w32_command_list)
6045 (w32_prefix_command_valid): Restore.
6046 (_initialize_windows_tdep): Call init_w32_command_list.
6047
08feed99
TT
60482020-04-18 Tom Tromey <tom@tromey.com>
6049
6050 * xcoffread.c (enter_line_range, scan_xcoff_symtab): Update.
6051 * value.c (value_fn_field): Update.
6052 * valops.c (find_function_in_inferior)
6053 (value_allocate_space_in_inferior): Update.
6054 * tui/tui-winsource.c (tui_update_source_windows_with_line):
6055 Update.
6056 * tui/tui-source.c (tui_source_window::set_contents): Update.
6057 * symtab.c (lookup_global_or_static_symbol)
6058 (find_function_start_sal_1, skip_prologue_sal)
6059 (print_msymbol_info, find_gnu_ifunc, symbol_arch): Update.
6060 * symmisc.c (dump_msymbols, dump_symtab_1)
6061 (maintenance_print_one_line_table): Update.
6062 * symfile.c (init_entry_point_info, section_is_mapped)
6063 (list_overlays_command, simple_read_overlay_table)
6064 (simple_overlay_update_1): Update.
6065 * stap-probe.c (handle_stap_probe): Update.
6066 * stabsread.c (dbx_init_float_type, define_symbol)
6067 (read_one_struct_field, read_enum_type, read_range_type): Update.
6068 * source.c (info_line_command): Update.
6069 * python/python.c (gdbpy_source_objfile_script)
6070 (gdbpy_execute_objfile_script): Update.
6071 * python/py-type.c (save_objfile_types): Update.
6072 * python/py-objfile.c (py_free_objfile): Update.
6073 * python/py-inferior.c (python_new_objfile): Update.
6074 * psymtab.c (psym_find_pc_sect_compunit_symtab, dump_psymtab)
6075 (dump_psymtab_addrmap_1, maintenance_info_psymtabs)
6076 (maintenance_check_psymtabs): Update.
6077 * printcmd.c (info_address_command): Update.
6078 * objfiles.h (struct objfile) <arch>: New method, from
6079 get_objfile_arch.
6080 (get_objfile_arch): Don't declare.
6081 * objfiles.c (get_objfile_arch): Remove.
6082 (filter_overlapping_sections): Update.
6083 * minsyms.c (msymbol_is_function): Update.
6084 * mi/mi-symbol-cmds.c (mi_cmd_symbol_list_lines)
6085 (output_nondebug_symbol): Update.
6086 * mdebugread.c (parse_symbol, basic_type, parse_partial_symbols)
6087 (mdebug_expand_psymtab): Update.
6088 * machoread.c (macho_add_oso_symfile): Update.
6089 * linux-tdep.c (linux_infcall_mmap, linux_infcall_munmap):
6090 Update.
6091 * linux-fork.c (checkpoint_command): Update.
6092 * linespec.c (convert_linespec_to_sals): Update.
6093 * jit.c (finalize_symtab): Update.
6094 * infrun.c (insert_exception_resume_from_probe): Update.
6095 * ia64-tdep.c (ia64_find_unwind_table): Update.
6096 * hppa-tdep.c (internalize_unwinds): Update.
6097 * gdbtypes.c (get_type_arch, init_float_type, objfile_type):
6098 Update.
6099 * gcore.c (call_target_sbrk): Update.
6100 * elfread.c (record_minimal_symbol, elf_symtab_read)
6101 (elf_rel_plt_read, elf_gnu_ifunc_record_cache)
6102 (elf_gnu_ifunc_resolve_by_got): Update.
6103 * dwarf2/read.c (create_addrmap_from_index)
6104 (create_addrmap_from_aranges, dw2_find_pc_sect_compunit_symtab)
6105 (read_debug_names_from_section)
6106 (process_psymtab_comp_unit_reader, add_partial_symbol)
6107 (add_partial_subprogram, process_full_comp_unit)
6108 (read_file_scope, read_func_scope, read_lexical_block_scope)
6109 (read_call_site_scope, dwarf2_ranges_read)
6110 (dwarf2_record_block_ranges, dwarf2_add_field)
6111 (mark_common_block_symbol_computed, read_tag_pointer_type)
6112 (read_tag_string_type, dwarf2_init_float_type)
6113 (dwarf2_init_complex_target_type, read_base_type)
6114 (partial_die_info::read, partial_die_info::read)
6115 (read_attribute_value, dwarf_decode_lines_1, new_symbol)
6116 (dwarf2_fetch_die_loc_sect_off): Update.
6117 * dwarf2/loc.c (dwarf2_find_location_expression)
6118 (class dwarf_evaluate_loc_desc, rw_pieced_value)
6119 (dwarf2_evaluate_loc_desc_full, dwarf2_locexpr_baton_eval)
6120 (dwarf2_loc_desc_get_symbol_read_needs)
6121 (locexpr_describe_location_piece, locexpr_describe_location_1)
6122 (loclist_describe_location): Update.
6123 * dwarf2/index-write.c (write_debug_names): Update.
6124 * dwarf2/frame.c (dwarf2_build_frame_info): Update.
6125 * dtrace-probe.c (dtrace_process_dof): Update.
6126 * dbxread.c (read_dbx_symtab, dbx_end_psymtab)
6127 (process_one_symbol): Update.
6128 * ctfread.c (ctf_init_float_type, read_base_type): Update.
6129 * coffread.c (coff_symtab_read, enter_linenos, decode_base_type)
6130 (coff_read_enum_type): Update.
6131 * cli/cli-cmds.c (edit_command, list_command): Update.
6132 * buildsym.c (buildsym_compunit::finish_block_internal): Update.
6133 * breakpoint.c (create_overlay_event_breakpoint)
6134 (create_longjmp_master_breakpoint)
6135 (create_std_terminate_master_breakpoint)
6136 (create_exception_master_breakpoint, get_sal_arch): Update.
6137 * block.c (block_gdbarch): Update.
6138 * annotate.c (annotate_source_line): Update.
6139
0743fc83
TT
61402020-04-17 Tom Tromey <tromey@adacore.com>
6141
6142 * auto-load.c (show_auto_load_cmd): Remove.
6143 (auto_load_show_cmdlist_get): Use add_show_prefix_cmd.
6144 * arc-tdep.c (_initialize_arc_tdep): Use add_show_prefix_cmd.
6145 (maintenance_print_arc_command): Remove.
6146 * tui/tui-win.c (tui_command): Remove.
6147 (tui_get_cmd_list): Use add_basic_prefix_cmd.
6148 * tui/tui-layout.c (tui_layout_command): Remove.
6149 (_initialize_tui_layout): Use add_basic_prefix_cmd.
6150 * python/python.c (user_set_python, user_show_python): Remove.
6151 (_initialize_python): Use add_basic_prefix_cmd,
6152 add_show_prefix_cmd.
6153 * guile/guile.c (set_guile_command, show_guile_command): Remove.
6154 (install_gdb_commands): Use add_basic_prefix_cmd,
6155 add_show_prefix_cmd.
6156 (info_guile_command): Remove.
6157 * dwarf2/read.c (set_dwarf_cmd, show_dwarf_cmd): Remove.
6158 (_initialize_dwarf2_read): Use add_basic_prefix_cmd,
6159 add_show_prefix_cmd.
6160 * cli/cli-style.h (class cli_style_option) <add_setshow_commands>:
6161 Remove do_set and do_show parameters.
6162 * cli/cli-style.c (set_style, show_style): Remove.
6163 (_initialize_cli_style): Use add_basic_prefix_cmd,
6164 add_show_prefix_cmd.
6165 (cli_style_option::add_setshow_commands): Remove do_set and
6166 do_show parameters.
6167 (cli_style_option::add_setshow_commands): Use
6168 add_basic_prefix_cmd, add_show_prefix_cmd.
6169 (STYLE_ADD_SETSHOW_COMMANDS): Remove macro.
6170 (set_style_name): Remove.
6171 * cli/cli-dump.c (dump_command, append_command): Remove.
6172 (srec_dump_command, ihex_dump_command, verilog_dump_command)
6173 (tekhex_dump_command, binary_dump_command)
6174 (binary_append_command): Remove.
6175 (_initialize_cli_dump): Use add_basic_prefix_cmd.
6176 * windows-tdep.c (w32_prefix_command_valid): Remove global.
6177 (init_w32_command_list): Remove; move into ...
6178 (_initialize_windows_tdep): ... here. Use add_basic_prefix_cmd.
6179 * valprint.c (set_print, show_print, set_print_raw)
6180 (show_print_raw): Remove.
6181 (_initialize_valprint): Use add_basic_prefix_cmd,
6182 add_show_prefix_cmd.
6183 * typeprint.c (set_print_type, show_print_type): Remove.
6184 (_initialize_typeprint): Use add_basic_prefix_cmd,
6185 add_show_prefix_cmd.
6186 * record.c (set_record_command, show_record_command): Remove.
6187 (_initialize_record): Use add_basic_prefix_cmd,
6188 add_show_prefix_cmd.
6189 * cli/cli-cmds.c (_initialize_cli_cmds): Use add_basic_prefix_cmd,
6190 add_show_prefix_cmd.
6191 (info_command, show_command, set_debug, show_debug): Remove.
6192 * top.h (set_history, show_history): Don't declare.
6193 * top.c (set_history, show_history): Remove.
6194 * target-descriptions.c (set_tdesc_cmd, show_tdesc_cmd)
6195 (unset_tdesc_cmd): Remove.
6196 (_initialize_target_descriptions): Use add_basic_prefix_cmd,
6197 add_show_prefix_cmd.
6198 * symtab.c (info_module_command): Remove.
6199 (_initialize_symtab): Use add_basic_prefix_cmd.
6200 * symfile.c (overlay_command): Remove.
6201 (_initialize_symfile): Use add_basic_prefix_cmd.
6202 * sparc64-tdep.c (info_adi_command): Remove.
6203 (_initialize_sparc64_adi_tdep): Use add_basic_prefix_cmd.
6204 * sh-tdep.c (show_sh_command, set_sh_command): Remove.
6205 (_initialize_sh_tdep): Use add_basic_prefix_cmd,
6206 add_show_prefix_cmd.
6207 * serial.c (serial_set_cmd, serial_show_cmd): Remove.
6208 (_initialize_serial): Use add_basic_prefix_cmd,
6209 add_show_prefix_cmd.
6210 * ser-tcp.c (set_tcp_cmd, show_tcp_cmd): Remove.
6211 (_initialize_ser_tcp): Use add_basic_prefix_cmd,
6212 add_show_prefix_cmd.
6213 * rs6000-tdep.c (set_powerpc_command, show_powerpc_command)
6214 (_initialize_rs6000_tdep): Use add_basic_prefix_cmd,
6215 add_show_prefix_cmd.
6216 * riscv-tdep.c (show_riscv_command, set_riscv_command)
6217 (show_debug_riscv_command, set_debug_riscv_command): Remove.
6218 (_initialize_riscv_tdep): Use add_basic_prefix_cmd,
6219 add_show_prefix_cmd.
6220 * remote.c (remote_command, set_remote_cmd): Remove.
6221 (_initialize_remote): Use add_basic_prefix_cmd.
6222 * record-full.c (set_record_full_command)
6223 (show_record_full_command): Remove.
6224 (_initialize_record_full): Use add_basic_prefix_cmd,
6225 add_show_prefix_cmd.
6226 * record-btrace.c (cmd_set_record_btrace)
6227 (cmd_show_record_btrace, cmd_set_record_btrace_bts)
6228 (cmd_show_record_btrace_bts, cmd_set_record_btrace_pt)
6229 (cmd_show_record_btrace_pt): Remove.
6230 (_initialize_record_btrace): Use add_basic_prefix_cmd,
6231 add_show_prefix_cmd.
6232 * ravenscar-thread.c (set_ravenscar_command)
6233 (show_ravenscar_command): Remove.
6234 (_initialize_ravenscar): Use add_basic_prefix_cmd,
6235 add_show_prefix_cmd.
6236 * mips-tdep.c (show_mips_command, set_mips_command)
6237 (_initialize_mips_tdep): Use add_basic_prefix_cmd,
6238 add_show_prefix_cmd.
6239 * maint.c (maintenance_command, maintenance_info_command)
6240 (maintenance_check_command, maintenance_print_command)
6241 (maintenance_set_cmd, maintenance_show_cmd): Remove.
6242 (_initialize_maint_cmds): Use add_basic_prefix_cmd,
6243 add_show_prefix_cmd.
6244 (show_per_command_cmd): Remove.
6245 * maint-test-settings.c (maintenance_set_test_settings_cmd):
6246 Remove.
6247 (maintenance_show_test_settings_cmd): Remove.
6248 (_initialize_maint_test_settings): Use add_basic_prefix_cmd,
6249 add_show_prefix_cmd.
6250 * maint-test-options.c (maintenance_test_options_command):
6251 Remove.
6252 (_initialize_maint_test_options): Use add_basic_prefix_cmd.
6253 * macrocmd.c (macro_command): Remove
6254 (_initialize_macrocmd): Use add_basic_prefix_cmd.
6255 * language.c (set_check, show_check): Remove.
6256 (_initialize_language): Use add_basic_prefix_cmd,
6257 add_show_prefix_cmd.
6258 * infcmd.c (unset_command): Remove.
6259 (_initialize_infcmd): Use add_basic_prefix_cmd.
6260 * i386-tdep.c (set_mpx_cmd, show_mpx_cmd): Remove.
6261 (_initialize_i386_tdep): Use add_basic_prefix_cmd,
6262 add_show_prefix_cmd.
6263 * go32-nat.c (go32_info_dos_command): Remove.
6264 (_initialize_go32_nat): Use add_basic_prefix_cmd.
6265 * cli/cli-decode.c (do_prefix_cmd, add_basic_prefix_cmd)
6266 (do_show_prefix_cmd, add_show_prefix_cmd): New functions.
6267 * frame.c (set_backtrace_cmd, show_backtrace_cmd): Remove.
6268 (_initialize_frame): Use add_basic_prefix_cmd,
6269 add_show_prefix_cmd.
6270 * dcache.c (set_dcache_command, show_dcache_command): Remove.
6271 (_initialize_dcache): Use add_basic_prefix_cmd,
6272 add_show_prefix_cmd.
6273 * cp-support.c (maint_cplus_command): Remove.
6274 (_initialize_cp_support): Use add_basic_prefix_cmd.
6275 * btrace.c (maint_btrace_cmd, maint_btrace_set_cmd)
6276 (maint_btrace_show_cmd, maint_btrace_pt_set_cmd)
6277 (maint_btrace_pt_show_cmd, _initialize_btrace): Use
6278 add_basic_prefix_cmd, add_show_prefix_cmd.
6279 * breakpoint.c (save_command): Remove.
6280 (_initialize_breakpoint): Use add_basic_prefix_cmd.
6281 * arm-tdep.c (set_arm_command, show_arm_command): Remove.
6282 (_initialize_arm_tdep): Use add_basic_prefix_cmd,
6283 add_show_prefix_cmd.
6284 * ada-lang.c (maint_set_ada_cmd, maint_show_ada_cmd)
6285 (set_ada_command, show_ada_command): Remove.
6286 (_initialize_ada_language): Use add_basic_prefix_cmd,
6287 add_show_prefix_cmd.
6288 * command.h (add_basic_prefix_cmd, add_show_prefix_cmd): Declare.
6289
3557f442
KR
62902020-04-16 Kamil Rytarowski <n54@gmx.com>
6291
6292 * nbsd-nat.c (inf_ptrace_target::auxv_parse): Remove.
6293 * nbsd-nat.h (inf_ptrace_target::auxv_parse): Likewise.
6294
16197208
SM
62952020-04-16 Simon Marchi <simon.marchi@polymtl.ca>
6296
6297 * windows-tdep.c (is_linked_with_cygwin_dll): Add filename to
6298 warning messages.
6299
00ac85d3
SM
63002020-04-16 Simon Marchi <simon.marchi@polymtl.ca>
6301
6302 * windows-tdep.c (is_linked_with_cygwin_dll): Consider case where
6303 import table is not at beginning of .idata section.
6304
381ce63f
PA
63052020-04-16 Pedro Alves <palves@redhat.com>
6306
6307 * inferior.c (delete_inferior): Use delete operator directly
6308 instead of delete_program_space.
6309 * progspace.c (add_program_space): New, factored out from
6310 program_space::program_space.
6311 (remove_program_space): New, factored out from
6312 delete_program_space.
6313 (program_space::program_space): Remove intro comment. Rewrite.
6314 (program_space::~program_space): Remove intro comment. Call
6315 remove_program_space.
6316 (delete_program_space): Delete.
6317 * progspace.h (program_space::program_space): Make explicit. Move
6318 intro comment here, adjusted.
6319 (program_space::~program_space): Move intro comment here,
6320 adjusted.
6321 (delete_program_space): Remove.
6322
a010605f
TT
63232020-04-16 Tom Tromey <tromey@adacore.com>
6324
6325 * windows-nat.c (windows_nat::handle_access_violation): New
6326 function.
6327 * nat/windows-nat.h (handle_access_violation): Declare.
6328 * nat/windows-nat.c (handle_exception): Move Cygwin code to
6329 windows-nat.c. Call handle_access_violation.
6330
efba5c23
TV
63312020-04-16 Tom de Vries <tdevries@suse.de>
6332
6333 PR symtab/25791
6334 * dwarf2/index-write.c (write_gdbindex): Generate CU table entries for
6335 CUs without psymtab.
6336
97ed802d
KB
63372020-04-16 Kevin Buettner <kevinb@redhat.com>
6338
6339 * python/python.c (do_start_initialization): Don't call
6340 PyEval_InitThreads for Python 3.9 and beyond.
6341
c7d64809
KR
63422020-04-15 Kamil Rytarowski <n54@gmx.com>
6343
6344 * obsd-nat.c (obsd_nat_target::update_thread_list): Pass "this" to
6345 thread functions.
6346 (obsd_nat_target::wait): Likewise.
6347
ce127a96
TT
63482020-04-15 Tom Tromey <tromey@adacore.com>
6349
6350 * windows-nat.c (DEBUG_EXEC, DEBUG_EVENTS, DEBUG_MEM)
6351 (DEBUG_EXCEPT): Use debug_printf.
6352
99f1bc6a
AB
63532020-04-15 Andrew Burgess <andrew.burgess@embecosm.com>
6354
6355 * completer.c (class completion_tracker::completion_hash_entry)
6356 <hash_name>: New member function.
6357 (completion_tracker::discard_completions): New callback to hash a
6358 completion_hash_entry, pass this to htab_create_alloc.
6359
a0e9b532
JT
63602016-01-20 Jon Turney <jon.turney@dronecode.org.uk>
6361
6362 * windows-nat.c (windows_make_so): Warn rather than stopping with
6363 an error if realpath() fails.
6364
06ca5dd4
KR
63652020-04-14 Kamil Rytarowski <n54@gmx.com>
6366
6367 * nbsd-nat.c (nbsd_pid_to_kinfo_proc2): New.
6368 (nbsd_nat_target::info_proc): Add do_status.
6369
194d088f
TV
63702020-04-14 Simon Marchi <simon.marchi@polymtl.ca>
6371 Tom de Vries <tdevries@suse.de>
6372
6373 PR symtab/25718
6374 * psympriv.h (struct partial_symtab::read_symtab)
6375 (struct partial_symtab::expand_psymtab)
6376 (struct partial_symtab::read_dependencies): Update comments.
6377 * dwarf2/read.c (struct dwarf2_include_psymtab::read_symtab): Call
6378 read_symtab for includer.
6379 (struct dwarf2_include_psymtab::expand_psymtab): Assert false.
6380 (struct dwarf2_include_psymtab::readin_p): Call readin_p () for includer.
6381 (struct dwarf2_include_psymtab::m_readin): Remove.
6382 (struct dwarf2_include_psymtab::includer): New member function.
6383 (dwarf2_psymtab::expand_psymtab): Assert !readin.
6384
c1a66c06
TV
63852020-04-14 Tom de Vries <tdevries@suse.de>
6386
6387 PR symtab/25720
6388 * symmisc.c (maintenance_expand_symtabs): Call expand_symtabs_matching
6389 with NULL symbol_matcher and lookup_name.
6390 * psymtab.c (psym_expand_symtabs_matching): Handle NULL symbol_matcher
6391 and lookup_name.
6392 * dwarf2/read.c (dw2_expand_symtabs_matching)
6393 (dw2_debug_names_expand_symtabs_matching): Same.
6394 * symfile.h (struct quick_symbol_functions::expand_symtabs_matching):
6395 Make lookup_name a pointer. Update comment.
6396 * symtab.c (global_symbol_searcher::expand_symtabs): Handle
6397 lookup_name being a pointer.
6398 * symfile.c (expand_symtabs_matching): Same.
6399 * symfile-debug.c (debug_qf_expand_symtabs_matching): Same.
6400 * linespec.c (iterate_over_all_matching_symtabs): Same.
6401
400b5eca
TT
64022020-04-13 Tom Tromey <tom@tromey.com>
6403
6404 * run-on-main-thread.c: Update include.
6405 * unittests/main-thread-selftests.c: Update include.
6406 * tui/tui-win.c: Update include.
6407 * tui/tui-io.c: Update include.
6408 * tui/tui-interp.c: Update include.
6409 * tui/tui-hooks.c: Update include.
6410 * top.h: Update include.
6411 * top.c: Update include.
6412 * ser-base.c: Update include.
6413 * remote.c: Update include.
6414 * remote-notif.c: Update include.
6415 * remote-fileio.c: Update include.
6416 * record-full.c: Update include.
6417 * record-btrace.c: Update include.
6418 * python/python.c: Update include.
6419 * posix-hdep.c: Update include.
6420 * mingw-hdep.c: Update include.
6421 * mi/mi-main.c: Update include.
6422 * mi/mi-interp.c: Update include.
6423 * main.c: Update include.
6424 * linux-nat.c: Update include.
6425 * interps.c: Update include.
6426 * infrun.c: Update include.
6427 * inf-loop.c: Update include.
6428 * event-top.c: Update include.
6429 * event-loop.c: Move to ../gdbsupport/.
6430 * event-loop.h: Move to ../gdbsupport/.
6431 * async-event.h: Update include.
6432 * Makefile.in (COMMON_SFILES, HFILES_NO_SRCDIR): Update.
6433
93b54c8e
TT
64342020-04-13 Tom Tromey <tom@tromey.com>
6435
6436 * tui/tui-win.c: Include async-event.h.
6437 * remote.c: Include async-event.h.
6438 * remote-notif.c: Include async-event.h.
6439 * record-full.c: Include async-event.h.
6440 * record-btrace.c: Include async-event.h.
6441 * infrun.c: Include async-event.h.
6442 * event-top.c: Include async-event.h.
6443 * event-loop.h: Move some declarations to async-event.h.
6444 * event-loop.c: Don't include ser-event.h or top.h. Move some
6445 code to async-event.c.
6446 * async-event.h: New file.
6447 * async-event.c: New file.
6448 * Makefile.in (COMMON_SFILES): Add async-event.c.
6449 (HFILES_NO_SRCDIR): Add async-event.h.
6450
c1cd3163
TT
64512020-04-13 Tom Tromey <tom@tromey.com>
6452
6453 * utils.c (flush_streams): New function.
6454 * event-loop.c (gdb_wait_for_event): Call flush_streams.
6455
29f2bf4f
TT
64562020-04-13 Tom Tromey <tom@tromey.com>
6457
6458 * event-loop.c (handle_file_event): Use warning, not
6459 printf_unfiltered.
6460
98029d02
TT
64612020-04-13 Tom Tromey <tom@tromey.com>
6462
6463 * event-loop.c: Include <chrono>.
6464
06cc9596
TT
64652020-04-13 Tom Tromey <tom@tromey.com>
6466
6467 * gdb_select.h: Move to ../gdbsupport/.
6468 * event-loop.c: Update include path.
6469 * top.c: Update include path.
6470 * ser-base.c: Update include path.
6471 * ui-file.c: Update include path.
6472 * ser-tcp.c: Update include path.
6473 * guile/scm-ports.c: Update include path.
6474 * posix-hdep.c: Update include path.
6475 * ser-unix.c: Update include path.
6476 * gdb_usleep.c: Update include path.
6477 * mingw-hdep.c: Update include path.
6478 * inflow.c: Update include path.
6479 * infrun.c: Update include path.
6480 * event-top.c: Update include path.
6481
8ae8e197
TT
64822020-04-13 Tom Tromey <tom@tromey.com>
6483
6484 * configure: Rebuild.
6485 * configure.ac: Remove checks that are now in GDB_AC_COMMON.
6486
58cf28e8
TT
64872020-04-13 Tom Tromey <tom@tromey.com>
6488
6489 * event-loop.h (start_event_loop): Don't declare.
6490 * event-loop.c (start_event_loop): Move...
6491 * main.c (start_event_loop): ...here. Now static.
6492
b7f999ae
SDJ
64932020-04-13 Sergio Durigan Junior <sergiodj@sergiodj.net>
6494
6495 * MAINTAINERS: Update my email address.
6496
1085dfd4
KR
64972020-04-12 Kamil Rytarowski <n54@gmx.com>
6498
6499 * nbsd-nat.c (nbsd_nat_target::info_proc): Add IP_MINIMAL and
6500 IP_ALL.
6501
49d1d1f5
KR
65022020-04-12 Kamil Rytarowski <n54@gmx.com>
6503
6504 * nbsd-nat.c (nbsd_pid_to_cmdline): Add.
aac66a4c 6505 (nbsd_nat_target::info_proc): Add do_cmdline.
49d1d1f5 6506
b4848d2a
KR
65072020-04-12 Kamil Rytarowski <n54@gmx.com>
6508
6509 * nbsd-nat.c (nbsd_pid_to_cwd): Add.
aac66a4c 6510 (nbsd_nat_target::info_proc): Add do_cwd.
b4848d2a 6511
51c133d5
KR
65122020-04-12 Kamil Rytarowski <n54@gmx.com>
6513
6514 * nbsd-nat.c (nbsd_nat_target::info_proc): Add do_exe.
6515
54b8cbd0
KR
65162020-04-11 Kamil Rytarowski <n54@gmx.com>
6517
6518 * nbsd-nat.c; Include "nbsd-tdep.h" and "gdbarch.h".
6519 * nbsd-nat.c (nbsd_nat_target::find_memory_regions)
6520 (nbsd_nat_target::info_proc): New functions.
6521 * nbsd-nat.c (kinfo_get_vmmap): New function.
6522 * nbsd-nat.c (nbsd_nat_target::info_proc) Use
6523 nbsd_info_proc_mappings_header and nbsd_info_proc_mappings_entry.
6524 * nbsd-tdep.c (nbsd_info_proc_mappings_header)
6525 (nbsd_info_proc_mappings_entry, nbsd_vm_map_entry_flags): New
6526 functions.
6527 * nbsd-tdep.c (KINFO_VME_PROT_READ, KINFO_VME_PROT_WRITE)
6528 (KINFO_VME_PROT_EXEC, KINFO_VME_FLAG_COW)
6529 (KINFO_VME_FLAG_NEEDS_COPY, KINFO_VME_FLAG_NOCOREDUMP)
6530 (KINFO_VME_FLAG_PAGEABLE, KINFO_VME_FLAG_GROWS_UP)
6531 (KINFO_VME_FLAG_GROWS_DOWN): New.
6532
cf83625d
AS
65332020-04-10 Artur Shepilko <nomadbyte@gmail.com>
6534
6535 * utils.c (copy_bitwise): Use unsigned 0 constant as operand of
6536 bit shift.
6537
0c4311ab
TT
65382020-04-10 Tom Tromey <tromey@adacore.com>
6539
6540 * symfile.c (symbol_file_add_separate): Preserve OBJF_MAINLINE.
6541
3e65b3e9
TT
65422020-04-10 Tom Tromey <tromey@adacore.com>
6543
6544 * symtab.c (get_symbol_address, get_msymbol_address): Skip
6545 separate debug files.
6546
13302e95
HD
65472020-04-10 Hannes Domani <ssbssa@yahoo.de>
6548
6549 * nat/windows-nat.c (STATUS_WX86_BREAKPOINT, STATUS_WX86_SINGLE_STEP):
6550 Move to...
6551 * nat/windows-nat.h (STATUS_WX86_BREAKPOINT, STATUS_WX86_SINGLE_STEP):
6552 ... here.
6553 * windows-nat.c (windows_nat_target::get_windows_debug_event):
6554 Check for STATUS_WX86_BREAKPOINT.
6555 (windows_nat_target::wait): Same.
6556
bdfc1e8a
TV
65572020-04-10 Tom de Vries <tdevries@suse.de>
6558
6559 PR cli/25808
6560 * python/lib/gdb/__init__.py: Initialize lexer with stripnl=False.
6561
f4460aec
SM
65622020-04-09 Simon Marchi <simon.marchi@polymtl.ca>
6563
6564 * MAINTAINERS (Global Maintainers): Add Tom de Vries.
6565 (Write After Approval): Remove Tom de Vries.
6566
a25198bb
BE
65672020-04-09 Bernd Edlinger <bernd.edlinger@hotmail.de>
6568
6569 revert partially:
6570 2020-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
6571
aac66a4c
SM
6572 * buildsym.c (record_line): Fix undefined behavior and preserve
6573 lines at eof.
a25198bb 6574
206c98a6
KR
65752020-04-09 Kamil Rytarowski <n54@gmx.com>
6576
6577 * auxv.h (svr4_auxv_parse): New.
6578 * auxv.c (default_auxv_parse): Split into default_auxv_parse
6579 and generic_auxv_parse.
6580 (svr4_auxv_parse): Add.
6581 * obsd-tdep.c: Include "auxv.h".
6582 (obsd_auxv_parse): Remove.
6583 (obsd_init_abi): Remove comment.
6584 (obsd_init_abi): Change set_gdbarch_auxv_parse passed argument
6585 from `obsd_auxv_parse' to `svr4_auxv_parse'.
6586 * nbsd-tdep.c: Include "auxv.h".
6587 (nbsd_init_abi): Call set_gdbarch_auxv_parse.
6588
71fbdbaf
TT
65892020-04-08 Tom Tromey <tromey@adacore.com>
6590
6591 * nat/windows-nat.h (last_wait_event): Don't declare.
6592 (wait_for_debug_event): Update comment.
6593 * nat/windows-nat.c (last_wait_event): Now static.
6594
2c1d95e8
TT
65952020-04-08 Tom Tromey <tromey@adacore.com>
6596
6597 * windows-nat.c (wait_for_debug_event): Move to
6598 nat/windows-nat.c.
6599 * nat/windows-nat.h (wait_for_debug_event): Declare.
6600 * nat/windows-nat.c (wait_for_debug_event): Move from
6601 windows-nat.c. No longer static.
6602
d2977bc4
TT
66032020-04-08 Tom Tromey <tromey@adacore.com>
6604
6605 * windows-nat.c (get_windows_debug_event): Use
6606 fetch_pending_stop.
6607 * nat/windows-nat.h (fetch_pending_stop): Declare.
6608 * nat/windows-nat.c (fetch_pending_stop): New function.
6609
e758e19c
TT
66102020-04-08 Tom Tromey <tromey@adacore.com>
6611
6612 * windows-nat.c (windows_continue): Use matching_pending_stop and
6613 continue_last_debug_event.
6614 * nat/windows-nat.h (matching_pending_stop)
6615 (continue_last_debug_event): Declare.
6616 * nat/windows-nat.c (DEBUG_EVENTS): New define.
6617 (matching_pending_stop, continue_last_debug_event): New
6618 functions.
6619
8d30e395
TT
66202020-04-08 Tom Tromey <tromey@adacore.com>
6621
6622 * windows-nat.c (MS_VC_EXCEPTION): Move to nat/windows-nat.c.
6623 (handle_exception_result): Move to nat/windows-nat.h.
6624 (DEBUG_EXCEPTION_SIMPLE): Remove.
6625 (windows_nat::handle_ms_vc_exception): New function.
6626 (handle_exception): Move to nat/windows-nat.c.
6627 (get_windows_debug_event): Update.
6628 (STATUS_WX86_BREAKPOINT, STATUS_WX86_SINGLE_STEP): Move to
6629 nat/windows-nat.c.
6630 * nat/windows-nat.h (handle_ms_vc_exception): Declare.
6631 (handle_exception_result): Move from windows-nat.c.
6632 (handle_exception): Declare.
6633 * nat/windows-nat.c (MS_VC_EXCEPTION, handle_exception)
6634 (STATUS_WX86_SINGLE_STEP, STATUS_WX86_BREAKPOINT): Move from
6635 windows-nat.c.
6636
29de418d
TT
66372020-04-08 Tom Tromey <tromey@adacore.com>
6638
6639 * windows-nat.c (exception_count, event_count): Remove.
6640 (handle_exception, get_windows_debug_event)
6641 (do_initial_windows_stuff): Update.
6642
a816ba18
TT
66432020-04-08 Tom Tromey <tromey@adacore.com>
6644
6645 * windows-nat.c (windows_nat::handle_load_dll)
6646 (windows_nat::handle_unload_dll): Rename. No longer static.
6647 * nat/windows-nat.h (handle_load_dll, handle_unload_dll):
6648 Declare.
6649
a00caa12
TT
66502020-04-08 Tom Tromey <tromey@adacore.com>
6651
6652 * complaints.h (stop_whining): Declare at top-level.
6653 (complaint): Don't declare stop_whining.
6654
d41b524f
TT
66552020-04-08 Tom Tromey <tromey@adacore.com>
6656
6657 * windows-nat.c (windows_nat::handle_output_debug_string):
6658 Rename. No longer static.
6659 * nat/windows-nat.h (handle_output_debug_string): Declare.
6660
3c76026d
TT
66612020-04-08 Tom Tromey <tromey@adacore.com>
6662
6663 * windows-nat.c (current_process_handle, current_process_id)
6664 (main_thread_id, last_sig, current_event, last_wait_event)
6665 (current_windows_thread, desired_stop_thread_id, pending_stops)
6666 (struct pending_stop, siginfo_er): Move to nat/windows-nat.c.
6667 (display_selectors, fake_create_process)
6668 (get_windows_debug_event): Update.
6669 * nat/windows-nat.h (current_process_handle, current_process_id)
6670 (main_thread_id, last_sig, current_event, last_wait_event)
6671 (current_windows_thread, desired_stop_thread_id, pending_stops)
6672 (struct pending_stop, siginfo_er): Move from windows-nat.c.
6673 * nat/windows-nat.c (current_process_handle, current_process_id)
6674 (main_thread_id, last_sig, current_event, last_wait_event)
6675 (current_windows_thread, desired_stop_thread_id, pending_stops)
6676 (siginfo_er): New globals. Move from windows-nat.c.
6677
9d8679cc
TT
66782020-04-08 Tom Tromey <tromey@adacore.com>
6679
6680 * windows-nat.c (get_image_name): Move to nat/windows-nat.c.
6681 (handle_load_dll): Update.
6682 * nat/windows-nat.c (get_image_name): Move from windows-nat.c.
6683
28688adf
TT
66842020-04-08 Tom Tromey <tromey@adacore.com>
6685
6686 * windows-nat.c (enum thread_disposition_type): Move to
6687 nat/windows-nat.h.
6688 (windows_nat::thread_rec): Rename from thread_rec. No longer
6689 static.
6690 (windows_add_thread, windows_nat_target::fetch_registers)
6691 (windows_nat_target::store_registers, handle_exception)
6692 (windows_nat_target::resume, get_windows_debug_event)
6693 (windows_nat_target::get_tib_address)
6694 (windows_nat_target::thread_name)
6695 (windows_nat_target::thread_alive): Update.
6696 * nat/windows-nat.h (enum thread_disposition_type): Move from
6697 windows-nat.c.
6698 (thread_rec): Declare.
6699
4834dad0
TT
67002020-04-08 Tom Tromey <tromey@adacore.com>
6701
6702 * windows-nat.c: Add "using namespace".
6703 * nat/windows-nat.h: Wrap contents in windows_nat namespace.
6704 * nat/windows-nat.c: Wrap contents in windows_nat namespace.
6705
65bafd5b
TT
67062020-04-08 Tom Tromey <tromey@adacore.com>
6707
6708 * nat/windows-nat.h (struct windows_thread_info): Declare
6709 destructor.
6710 * nat/windows-nat.c (~windows_thread_info): New.
6711
0a4afda3
TT
67122020-04-08 Tom Tromey <tromey@adacore.com>
6713
6714 PR gdb/22992
6715 * windows-nat.c (current_event): Update comment.
6716 (last_wait_event, desired_stop_thread_id): New globals.
6717 (struct pending_stop): New.
6718 (pending_stops): New global.
6719 (windows_nat_target) <stopped_by_sw_breakpoint>
6720 <supports_stopped_by_sw_breakpoint>: New methods.
6721 (windows_fetch_one_register): Add assertions. Adjust PC.
6722 (windows_continue): Handle pending stops. Suspend other threads
6723 when stepping. Use last_wait_event
6724 (wait_for_debug_event): New function.
6725 (get_windows_debug_event): Use wait_for_debug_event. Handle
6726 pending stops. Queue spurious stops.
6727 (windows_nat_target::wait): Set stopped_at_software_breakpoint.
6728 (windows_nat_target::kill): Use wait_for_debug_event.
6729 * nat/windows-nat.h (struct windows_thread_info)
6730 <stopped_at_software_breakpoint>: New field.
6731 * nat/windows-nat.c (windows_thread_info::resume): Clear
6732 stopped_at_software_breakpoint.
6733
8e61ebec
TT
67342020-04-08 Tom Tromey <tromey@adacore.com>
6735
6736 * windows-nat.c (enum thread_disposition_type): New.
6737 (thread_rec): Replace "get_context" parameter with "disposition";
6738 change type.
6739 (windows_add_thread, windows_nat_target::fetch_registers)
6740 (windows_nat_target::store_registers, handle_exception)
6741 (windows_nat_target::resume, get_windows_debug_event)
6742 (windows_nat_target::get_tib_address)
6743 (windows_nat_target::thread_name)
6744 (windows_nat_target::thread_alive): Update.
6745
98a03287
TT
67462020-04-08 Tom Tromey <tromey@adacore.com>
6747
6748 * windows-nat.c (thread_rec): Use windows_thread_info::suspend.
6749 (windows_continue): Use windows_continue::resume.
6750 * nat/windows-nat.h (struct windows_thread_info) <suspend,
6751 resume>: Declare new methods.
6752 * nat/windows-nat.c: New file.
6753 * configure.nat (NATDEPFILES): Add nat/windows-nat.o when needed.
6754
7c7411bc
TT
67552020-04-08 Tom Tromey <tromey@adacore.com>
6756
6757 * windows-nat.c (windows_add_thread, windows_delete_thread)
6758 (windows_nat_target::fetch_registers)
6759 (windows_nat_target::store_registers, fake_create_process)
6760 (windows_nat_target::resume, windows_nat_target::resume)
6761 (get_windows_debug_event, windows_nat_target::wait)
6762 (windows_nat_target::pid_to_str)
6763 (windows_nat_target::get_tib_address)
6764 (windows_nat_target::get_ada_task_ptid)
6765 (windows_nat_target::thread_name)
6766 (windows_nat_target::thread_alive): Use lwp, not tid.
6767
2950fdf7
TT
67682020-04-08 Tom Tromey <tromey@adacore.com>
6769
6770 * windows-nat.c (handle_exception)
6771 (windows_nat_target::thread_name): Update.
6772 * nat/windows-nat.h (windows_thread_info): Remove destructor.
6773 <name>: Now unique_xmalloc_ptr.
6774
62fe396b
TT
67752020-04-08 Tom Tromey <tromey@adacore.com>
6776
6777 * windows-nat.c (thread_rec)
6778 (windows_nat_target::fetch_registers): Update.
6779 * nat/windows-nat.h (struct windows_thread_info) <suspended>:
6780 Update comment.
6781 <debug_registers_changed, reload_context>: Now bool.
6782
e9534bd2
TT
67832020-04-08 Tom Tromey <tromey@adacore.com>
6784
6785 * windows-nat.c (windows_add_thread): Use new.
6786 (windows_init_thread_list, windows_delete_thread): Use delete.
6787 (get_windows_debug_event): Update.
6788 * nat/windows-nat.h (struct windows_thread_info): Add constructor,
6789 destructor, and initializers.
6790
ae1f8880
TT
67912020-04-08 Tom Tromey <tromey@adacore.com>
6792
6793 * windows-nat.c (struct windows_thread_info): Remove.
6794 * nat/windows-nat.h: New file.
6795
55a1e039
TT
67962020-04-08 Tom Tromey <tromey@adacore.com>
6797
6798 * windows-nat.c (struct windows_thread_info) <tid>: Rename from "id".
6799 (thread_rec, windows_add_thread, windows_delete_thread)
6800 (windows_continue): Update.
6801
93366324
TT
68022020-04-08 Tom Tromey <tromey@adacore.com>
6803
6804 * windows-nat.c (struct windows_thread_info): Remove typedef.
6805 (thread_head): Remove.
6806 (thread_list): New global.
6807 (thread_rec, windows_add_thread, windows_init_thread_list)
6808 (windows_delete_thread, windows_continue): Update.
6809
0f2265e2
SM
68102020-04-08 Simon Marchi <simon.marchi@polymtl.ca>
6811
6812 * windows-tdep.h (windows_init_abi): Add comment.
6813 (cygwin_init_abi): New declaration.
6814 * windows-tdep.c: Split signal enumeration in two, one for
6815 Windows and one for Cygwin.
6816 (windows_gdb_signal_to_target): Only deal with signal of the
6817 Windows OS ABI.
6818 (cygwin_gdb_signal_to_target): New function.
6819 (windows_init_abi): Rename to windows_init_abi_common, don't set
6820 gdb_signal_to_target gdbarch method. Add new new function with
6821 this name.
6822 (cygwin_init_abi): New function.
6823 * amd64-windows-tdep.c (amd64_windows_init_abi_common): Add
6824 comment. Don't call windows_init_abi.
6825 (amd64_windows_init_abi): Add comment, call windows_init_abi.
6826 (amd64_cygwin_init_abi): Add comment, call cygwin_init_abi.
6827 * i386-windows-tdep.c (i386_windows_init_abi): Rename to
6828 i386_windows_init_abi_common, don't call windows_init_abi. Add
6829 a new function of this name.
6830 (i386_cygwin_init_abi): New function.
6831 (_initialize_i386_windows_tdep): Bind i386_cygwin_init_abi to
6832 OS ABI Cygwin.
6833
3810f182
SM
68342020-04-08 Simon Marchi <simon.marchi@polymtl.ca>
6835
6836 * dwarf2/read.c (read_gdb_index_from_buffer): Remove objfile
6837 parameter.c.
6838 (dwarf2_read_gdb_index): Update.
6839
063f8e80
KR
68402020-04-07 Kamil Rytarowski <n54@gmx.com>
6841
6842 * nbsd-tdep.c: Include "objfiles.h".
6843 (nbsd_skip_solib_resolver): New.
6844 (nbsd_init_abi): Call set_gdbarch_skip_solib_resolver().
6845
85a9510c 68462020-04-07 Nitika Achra <Nitika.Achra@amd.com>
6847
6848 * dwarf2/loc.c (loclist_describe_location): Call the function decode_debug_loclists_
6849 addresses if DWARF version is 5 or more because DW_LLE_start* or DW_LLE_offset_pair
6850 with DW_LLE_base_addressx are being emitted in DWARFv5.
6851 Add the newly added kind DW_LOC_OFFSET_PAIR also.
6852 The length of location description is an unsigned ULEB integer in DWARFv5 instead of
6853 unsigned integer.
6854
9fc3eaae 68552020-04-07 Nitika Achra <Nitika.Achra@amd.com>
6856
6857 * dwarf2/loc.c (enum debug_loc_kind): Add a new kind DEBUG_LOC_OFFSET_PAIR.
6858 (dwarf2_find_location_expression): Call the function decode_debug_loclists_
6859 addresses if DWARF version is 5 or more. DW_LLE_start* or DW_LLE_offset_pair
6860 with DW_LLE_base_addressx are being emitted in DWARFv5 instead of DW_LLE_GNU*.
6861 Add applicable base address if the entry is DW_LLE_offset_pair from DWO.
6862 (decode_debug_loclists_addresses): Return DEBUG_LOC_OFFSET_PAIR instead of
6863 DEBUG_LOC_START_END in case of DW_LLE_offset_pair.
6864
6865
41144253 68662020-04-07 Nitika Achra <Nitika.Achra@amd.com>
6867
6868 * dwarf2/read.c (cu_debug_loc_section): Added the declaration for the function.
6869 (read_loclist_index): New function definition.
6870 (lookup_loclist_base): New function definition.
6871 (read_loclist_header): New function definition.
6872 (dwarf2_cu): Add loclist_base and loclist_header field.
6873 (dwarf2_locate_dwo_sections): Handle .debug_loclists.dwo section.
6874 (read_full_die_1): Read the value of DW_AT_loclists_base.
6875 (read_attribute_reprocess): Handle DW_FORM_loclistx.
6876 (read_attribute_value): Handle DW_FORM_loclistx.
6877 (skip_one_die): Handle DW_FORM_loclistx.
6878 (loclist_header): New structure declaration.
6879 * dwarf2/attribute.c (form_is_section_offset): Handle DW_FORM_loclistx.
6880
9f4e76a4
SM
68812020-04-07 Simon Marchi <simon.marchi@polymtl.ca>
6882
6883 * dwarf2/read.h (struct dwarf2_psymtab): Remove two-parameters
6884 constructor. Remove `addr` parameter from other constructor and
6885 add `per_cu` parameter.
6886 * dwarf2/read.c (create_partial_symtab): Update.
6887
25c11aca
TV
68882020-04-07 Tom de Vries <tdevries@suse.de>
6889
6890 PR symtab/25796
6891 * dwarf2/read.c (can_have_DW_AT_const_value_p): New function.
6892 (partial_die_info::fixup): Inherit has_const_value.
6893
5707e24b
TV
68942020-04-07 Tom de Vries <tdevries@suse.de>
6895
6896 * psymtab.c (maintenance_check_psymtabs): Skip static LOC_BLOCK
6897 symbols without address.
6898
05f00e22
KR
68992020-04-06 Kamil Rytarowski <n54@gmx.com>
6900
6901 * nbsd-nat.h (struct thread_info): Add forward declaration.
6902 (nbsd_nat_target::thread_alive): Add.
6903 (nbsd_nat_target::thread_name): Likewise.
6904 (nbsd_nat_target::update_thread_list): Likewise.
6905 (update_thread_list::post_attach): Likewise.
6906 (post_attach::pid_to_str): Likewise.
6907 * nbsd-nat.c: Include "gdbthread.h" and "inferior.h".
6908 (nbsd_thread_lister): Add.
6909 (nbsd_nat_target::thread_alive): Likewise.
6910 (nbsd_nat_target::thread_name): Likewise.
6911 (nbsd_add_threads): Likewise.
6912 (update_thread_list::post_attach): Likewise.
6913 (nbsd_nat_target::update_thread_list): Likewise.
6914 (post_attach::pid_to_str): Likewise.
6915
6ee448cc
TT
69162020-04-06 Tom Tromey <tromey@adacore.com>
6917
6918 * ada-valprint.c (print_variant_part): Extract the variant field.
6919 (print_field_values): Use the field as the outer value when
6920 recursing.
6921
dea34e8c
TT
69222020-04-06 Tom Tromey <tromey@adacore.com>
6923
6924 * sh-nbsd-tdep.c: Include nbsd-tdep.h.
6925 * ppc-nbsd-tdep.c: Include nbsd-tdep.h.
6926 * mips-nbsd-tdep.c (mipsnbsd_init_abi): Add missing ";".
6927 * arm-nbsd-tdep.c: Include nbsd-tdep.h.
6928 * hppa-nbsd-tdep.c: Include nbsd-tdep.h.
6929
93689ce9
TT
69302020-04-06 Tom Tromey <tromey@adacore.com>
6931
6932 * dwarf2/read.c (read_base_type) <DW_ATE_complex_float>: Handle
6933 TYPE_CODE_ERROR.
6934
79743962
KR
69352020-04-06 Kamil Rytarowski <n54@gmx.com>
6936
6937 * nbsd-tdep.c: Include "gdbarch.h".
6938 Define enum with NetBSD signal numbers.
6939 (nbsd_gdb_signal_from_target, nbsd_gdb_signal_to_target): New.
6940 * alpha-nbsd-tdep.c (alphanbsd_init_abi): Call nbsd_init_abi().
6941 * amd64-nbsd-tdep.c (amd64nbsd_init_abi): Likewise.
6942 * arm-nbsd-tdep.c (arm_netbsd_elf_init_abi): Likewise.
6943 * hppa-nbsd-tdep.c (hppanbsd_init_abi): Likewise.
6944 * i386-nbsd-tdep.c (i386nbsd_init_abi): Likewise.
6945 * mips-nbsd-tdep.c (nbsd_init_abi): Likewise.
6946 * ppc-nbsd-tdep.c (ppcnbsd_init_abi): Likewise.
6947 * sh-nbsd-tdep.c (shnbsd_init_abi): Likewise.
6948 * sparc-nbsd-tdep.c (sparc32nbsd_init_abi): Likewise.
6949 * sparc64-nbsd-tdep.c (sparc64nbsd_init_abi): Likewise.
6950 * vax-nbsd-tdep.c (vaxnbsd_elf_init_abi): Likewise.
6951
9e7c9a03
HD
69522020-04-03 Hannes Domani <ssbssa@yahoo.de>
6953
6954 PR gdb/25325
6955 * dwarf2/read.c (read_enumeration_type): Fix typed enum attributes.
6956
d9e49b61
TT
69572020-04-03 Tom Tromey <tromey@adacore.com>
6958
6959 * dwarf2/loc.c (disassemble_dwarf_expression) <DW_OP_const_type>:
6960 Read constant block.
6961
e0fc5c3f
SM
69622020-04-02 Simon Marchi <simon.marchi@polymtl.ca>
6963
6964 * gdb_bfd.h: Include gdbsupport/byte-vector.h.
6965 (gdb_bfd_get_full_section_contents): New declaration.
6966 * gdb_bfd.c (gdb_bfd_get_full_section_contents): New function.
6967 * windows-tdep.c (is_linked_with_cygwin_dll): Use
6968 gdb_bfd_get_full_section_contents.
6969
e2ff18a0
SM
69702020-04-02 Simon Marchi <simon.marchi@polymtl.ca>
6971
6972 * exec.c (build_section_table): Replace internal_error with
6973 gdb_assert.
6974 (section_table_xfer_memory_partial): Likewise.
6975 * mdebugread.c (parse_partial_symbols): Likewise.
6976 * psymtab.c (lookup_partial_symbol): Likewise.
6977 * utils.c (wrap_here): Likewise.
6978
0830d301
TT
69792020-04-02 Tom Tromey <tromey@adacore.com>
6980
6981 * f-lang.c (build_fortran_types): Use arch_type to initialize
6982 builtin_complex_s32 in the TYPE_CODE_ERROR case.
6983
e7da7f8f
TT
69842020-04-02 Tom Tromey <tromey@adacore.com>
6985
6986 * dwarf2/read.c (partial_die_info::read): Do not create a vector
6987 of attributes.
6988
c90d28ac
AB
69892020-04-02 Andrew Burgess <andrew.burgess@embecosm.com>
6990 Bernd Edlinger <bernd.edlinger@hotmail.de>
6991 Tom Tromey <tromey@adacore.com>
6992
6993 * buildsym.c (buildsym_compunit::record_line): Remove
6994 deduplication code.
6995
1aa98955
TV
69962020-04-02 Tom de Vries <tdevries@suse.de>
6997
6998 PR ada/24671
6999 * dwarf2/read.c (dw2_map_matching_symbols): Handle -readnow.
7000
d3214198
TV
70012020-04-02 Tom de Vries <tdevries@suse.de>
7002
7003 * dwarf2/read.c (dwarf2_gdb_index_functions,
7004 dwarf2_debug_names_functions): Init lookup_global_symbol_language with
7005 NULL.
7006 * psymtab.c (psym_lookup_global_symbol_language): New function.
7007 (psym_functions): Init psym_lookup_global_symbol_language with
7008 psym_lookup_global_symbol_language.
7009 * symfile-debug.c (debug_sym_quick_functions): Init
7010 lookup_global_symbol_language with NULL.
7011 * symfile.c (set_initial_language): Remove fixme comment.
7012 * symfile.h (struct quick_symbol_functions): Add
7013 lookup_global_symbol_language.
7014 * symtab.c (find_quick_global_symbol_language): New function.
7015 (find_main_name): Use find_quick_global_symbol_language.
7016
2836752f
SM
70172020-04-01 Simon Marchi <simon.marchi@polymtl.ca>
7018
7019 * windows-tdep.c (is_linked_with_cygwin_dll): Fix style.
7020
64dc2d4b
BE
70212020-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
7022
7023 * buildsym.c (record_line): Fix undefined behavior and preserve
7024 lines at eof.
7025
bbe3dc41
BE
70262020-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
7027
7028 * buildsym.c (record_line): Fix the resizing condition.
7029
6b4a335b
TT
70302020-04-01 Tom Tromey <tom@tromey.com>
7031
7032 * value.h (value_literal_complex): Add comment.
7033 * valops.c (value_literal_complex): Refer to value.h.
7034
3638a098
TT
70352020-04-01 Tom Tromey <tom@tromey.com>
7036
7037 * c-exp.y (FLOAT_KEYWORD, COMPLEX): New tokens.
7038 (scalar_type): New rule, from typebase.
7039 (typebase): Use scalar_type. Recognize complex types.
7040 (field_name): Handle FLOAT_KEYWORD.
7041 (ident_tokens): Add _Complex and __complex__.
7042
c34e8714
TT
70432020-04-01 Tom Tromey <tom@tromey.com>
7044
7045 PR exp/25299:
7046 * valarith.c (promotion_type, complex_binop): New functions.
7047 (scalar_binop): Handle complex numbers. Use promotion_type.
7048 (value_pos, value_neg, value_complement): Handle complex numbers.
7049
fa649bb7
TT
70502020-04-01 Tom Tromey <tom@tromey.com>
7051
7052 * c-exp.y (COMPLEX_INT, COMPLEX_FLOAT): New tokens.
7053 (exp) <COMPLEX_INT, COMPLEX_FLOAT>: New rules.
7054 (parse_number): Handle complex numbers.
7055
981c08ce
TT
70562020-04-01 Tom Tromey <tom@tromey.com>
7057
7058 * c-valprint.c (c_decorations): Change complex suffix to "i".
7059
4c99290d
TT
70602020-04-01 Tom Tromey <tom@tromey.com>
7061
7062 * valprint.c (generic_value_print_complex): Use accessors.
7063 * value.h (value_real_part, value_imaginary_part): Declare.
7064 * valops.c (value_real_part, value_imaginary_part): New
7065 functions.
7066 * value.c (creal_internal_fn, cimag_internal_fn): Use accessors.
7067
5b930b45
TT
70682020-04-01 Tom Tromey <tom@tromey.com>
7069
7070 * stabsread.c (rs6000_builtin_type, read_sun_floating_type)
7071 (read_range_type): Update.
7072 * mdebugread.c (basic_type): Update.
7073 * go-lang.c (build_go_types): Use init_complex_type.
7074 * gdbtypes.h (struct main_type) <complex_type>: New member.
7075 (init_complex_type): Update.
7076 (arch_complex_type): Don't declare.
7077 * gdbtypes.c (init_complex_type): Remove "objfile" parameter.
7078 Make name if none given. Use alloc_type_copy. Look for cached
7079 complex type.
7080 (arch_complex_type): Remove.
7081 (gdbtypes_post_init): Use init_complex_type.
7082 * f-lang.c (build_fortran_types): Use init_complex_type.
7083 * dwarf2/read.c (read_base_type): Update.
7084 * d-lang.c (build_d_types): Use init_complex_type.
7085 * ctfread.c (read_base_type): Update.
7086
53cccef1
TBA
70872020-04-01 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
7088
7089 * infrun.c (stop_all_threads): Update assertion, plus when
7090 stopping threads, take into account that we might be trying
7091 to stop an all-stop target.
7092 (stop_waiting): Call 'stop_all_threads' if there exists a
7093 non-stop target.
7094
a0714d30
TBA
70952020-04-01 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
7096
7097 * target.h (exists_non_stop_target): New function declaration.
7098 * target.c (exists_non_stop_target): New function.
7099
60e22c1e
HD
71002020-04-01 Hannes Domani <ssbssa@yahoo.de>
7101
7102 PR gdb/24789
7103 * eval.c (is_integral_or_integral_reference): New function.
7104 (evaluate_subexp_standard): Allow integer references in
7105 pointer arithmetic.
7106
e139a727
TBA
71072020-04-01 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
7108
7109 * remote.c (remote_target::remote_parse_stop_reply): Remove the
7110 check for no ptid in the stop reply when the target is non-stop.
7111
e0802d59
TT
71122020-04-01 Tom Tromey <tromey@adacore.com>
7113
7114 * symtab.h (class lookup_name_info) <lookup_name_info>: Change
7115 "name" parameter to rvalue reference. Initialize m_name_holder.
7116 <lookup_name_info>: New overloads.
7117 <name>: Return gdb::string_view.
7118 <c_str>: New method.
7119 <make_ignore_params>: Update.
7120 <search_name_hash>: Update.
7121 <language_lookup_name>: Return const char *.
7122 <m_name>: Change type.
7123 * symtab.c (demangle_for_lookup_info::demangle_for_lookup_info)
7124 (demangle_for_lookup_info::demangle_for_lookup_info): Update.
7125 (lookup_name_info::match_any): Update.
7126 * psymtab.c (match_partial_symbol, lookup_partial_symbol):
7127 Update.
7128 * minsyms.c (linkage_name_str): Update.
7129 * language.c (default_symbol_name_matcher): Update.
7130 * dwarf2/read.c (mapped_index_base::find_name_components_bounds):
7131 Update.
7132 * ada-lang.c (ada_fold_name): Change parameter to string_view.
7133 (ada_lookup_name_info::ada_lookup_name_info): Update.
7134 (literal_symbol_name_matcher): Update.
7135
8c072cb6
TT
71362020-04-01 Tom Tromey <tromey@adacore.com>
7137
7138 * psymtab.c (psymtab_search_name): Remove function.
7139 (psym_lookup_symbol): Create search name and lookup name here.
7140 (lookup_partial_symbol): Remove "name" parameter; add
7141 lookup_name.
7142 (psym_expand_symtabs_for_function): Update.
7143
6f29a534
TT
71442020-03-31 Joel Jones <joelkevinjones@gmail.com>
7145
7146 PR tui/25597:
7147 * python/py-tui.c: Include gdb_curses.h inside of #ifdef TUI.
7148
af62665e
TT
71492020-03-31 Tom Tromey <tromey@adacore.com>
7150
7151 * dwarf2/abbrev.c (abbrev_table::read): Conditionally call
7152 memcpy.
7153
d1a89da5
NC
71542020-03-30 Nelson Chu <nelson.chu@sifive.com>
7155
7156 * features/riscv/32bit-csr.xml: Regenerated.
7157 * features/riscv/64bit-csr.xml: Regenerated.
7158
d8af9068
TT
71592020-03-30 Tom Tromey <tromey@adacore.com>
7160
7161 * ada-valprint.c (print_variant_part): Update.
7162 * ada-lang.h (ada_which_variant_applies): Update.
7163 * ada-lang.c (ada_which_variant_applies): Remove outer_type and
7164 outer_valaddr parameters; replace with "outer" value parameter.
7165 (to_fixed_variant_branch_type): Update.
7166
227c0bf4
PFC
71672020-03-30 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
7168
7169 * ppc-linux-nat.c: Include <algorithm>, <unordered_map>, and
7170 <list>. Remove inclusion of observable.h.
7171 (PPC_DEBUG_CURRENT_VERSION): Move up define.
7172 (struct arch_lwp_info): New struct.
7173 (class ppc_linux_dreg_interface): New class.
7174 (struct ppc_linux_process_info): New struct.
7175 (struct ppc_linux_nat_target) <low_delete_thread, low_new_fork>
7176 <low_new_clone, low_forget_process, low_prepare_to_resume>
7177 <copy_thread_dreg_state, mark_thread_stale>
7178 <mark_debug_registers_changed, register_hw_breakpoint>
7179 <clear_hw_breakpoint, register_wp, clear_wp>
7180 <can_use_watchpoint_cond_accel, calculate_dvc, check_condition>
7181 <num_memory_accesses, get_trigger_type>
7182 <create_watchpoint_request, hwdebug_point_cmp>
7183 <init_arch_lwp_info, get_arch_lwp_info>
7184 <low_stopped_by_watchpoint, low_stopped_data_address>: Declare as
7185 methods.
7186 <struct ptid_hash>: New inner struct.
7187 <m_dreg_interface, m_process_info, m_installed_hw_bps>: Declare
7188 members.
7189 (saved_dabr_value, hwdebug_info, max_slots_number)
7190 (struct hw_break_tuple, struct thread_points, ppc_threads)
7191 (have_ptrace_hwdebug_interface)
7192 (hwdebug_find_thread_points_by_tid)
7193 (hwdebug_insert_point, hwdebug_remove_point): Remove.
7194 (ppc_linux_nat_target::can_use_hw_breakpoint): Use
7195 m_dreg_interface, remove call to PTRACE_SET_DEBUGREG.
7196 (ppc_linux_nat_target::region_ok_for_hw_watchpoint): Add comment,
7197 use m_dreg_interface.
7198 (hwdebug_point_cmp): Change to...
7199 (ppc_linux_nat_target::hwdebug_point_cmp): ...this method. Use
7200 reference arguments instead of pointers.
7201 (ppc_linux_nat_target::ranged_break_num_registers): Use
7202 m_dreg_interface.
7203 (ppc_linux_nat_target::insert_hw_breakpoint): Add comment, use
7204 m_dreg_interface. Call register_hw_breakpoint.
7205 (ppc_linux_nat_target::remove_hw_breakpoint): Add comment, use
7206 m_dreg_interface. Call clear_hw_breakpoint.
7207 (get_trigger_type): Change to...
7208 (ppc_linux_nat_target::get_trigger_type): ...this method. Add
7209 comment.
7210 (ppc_linux_nat_target::insert_mask_watchpoint): Update comment,
7211 use m_dreg_interface. Call register_hw_breakpoint.
7212 (ppc_linux_nat_target::remove_mask_watchpoint): Update comment,
7213 use m_dreg_interface. Call clear_hw_breakpoint.
7214 (can_use_watchpoint_cond_accel): Change to...
7215 (ppc_linux_nat_target::can_use_watchpoint_cond_accel): ...this
7216 method. Update comment, use m_dreg_interface and
7217 m_process_info.
7218 (calculate_dvc): Change to...
7219 (ppc_linux_nat_target::calculate_dvc): ...this method. Use
7220 m_dreg_interface.
7221 (num_memory_accesses): Change to...
7222 (ppc_linux_nat_target::num_memory_accesses): ...this method.
7223 (check_condition): Change to...
7224 (ppc_linux_nat_target::check_condition): ...this method.
7225 (ppc_linux_nat_target::can_accel_watchpoint_condition): Update
7226 comment, use m_dreg_interface.
7227 (create_watchpoint_request): Change to...
7228 (ppc_linux_nat_target::create_watchpoint_request): ...this
7229 method. Use m_dreg_interface.
7230 (ppc_linux_nat_target::insert_watchpoint): Add comment, use
7231 m_dreg_interface. Call register_hw_breakpoint or register_wp.
7232 (ppc_linux_nat_target::remove_watchpoint): Add comment, use
7233 m_dreg_interface. Call clear_hw_breakpoint or clear_wp.
7234 (ppc_linux_nat_target::low_forget_process)
7235 (ppc_linux_nat_target::low_new_fork)
7236 (ppc_linux_nat_target::low_new_clone)
7237 (ppc_linux_nat_target::low_delete_thread)
7238 (ppc_linux_nat_target::low_prepare_to_resume): New methods.
7239 (ppc_linux_nat_target::low_new_thread): Remove previous logic,
7240 only call mark_thread_stale.
7241 (ppc_linux_thread_exit): Remove.
7242 (ppc_linux_nat_target::stopped_data_address): Change to...
7243 (ppc_linux_nat_target::low_stopped_data_address): This. Add
7244 comment, use m_dreg_interface and m_thread_hw_breakpoints.
7245 (ppc_linux_nat_target::stopped_by_watchpoint): Change to...
7246 (ppc_linux_nat_target::stopped_by_watchpoint): This. Add
7247 comment. Call low_stopped_data_address.
7248 (ppc_linux_nat_target::watchpoint_addr_within_range): Use
7249 m_dreg_interface.
7250 (ppc_linux_nat_target::masked_watch_num_registers): Use
7251 m_dreg_interface.
7252 (ppc_linux_nat_target::copy_thread_dreg_state)
7253 (ppc_linux_nat_target::mark_thread_stale)
7254 (ppc_linux_nat_target::mark_debug_registers_changed)
7255 (ppc_linux_nat_target::register_hw_breakpoint)
7256 (ppc_linux_nat_target::clear_hw_breakpoint)
7257 (ppc_linux_nat_target::register_wp)
7258 (ppc_linux_nat_target::clear_wp)
7259 (ppc_linux_nat_target::init_arch_lwp_info)
7260 (ppc_linux_nat_target::get_arch_lwp_info): New methods.
7261 (_initialize_ppc_linux_nat): Remove observer callback.
7262
4db10d8f
PFC
72632020-03-30 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
7264
7265 * ppc-linux-nat.c (ppc_linux_nat_target::store_registers)
7266 (ppc_linux_nat_target::auxv_parse)
7267 (ppc_linux_nat_target::read_description)
7268 (supply_gregset, fill_gregset, supply_fpregset, fill_fpregset):
7269 Move up.
7270
1310c1b0
PFC
72712020-03-30 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
7272
7273 * linux-nat.h (low_new_clone): New method.
7274 * linux-nat.c (linux_handle_extended_wait): Call low_new_clone.
7275
69b037c3
SM
72762020-03-29 Simon Marchi <simon.marchi@polymtl.ca>
7277
7278 * dbxread.c (dbx_psymtab_to_symtab_1): Rename to...
7279 (dbx_expand_psymtab): ... this.
7280 (start_psymtab): Update.
7281 * mdebugread.c (psymtab_to_symtab_1): Rename to...
7282 (mdebug_expand_psymtab): ... this.
7283 (parse_partial_symbols): Update.
7284 (new_psymtab): Update.
7285 * xcoffread.c (xcoff_psymtab_to_symtab_1): Rename to...
7286 (xcoff_expand_psymtab): ... this.
7287 (xcoff_start_psymtab): Update.
7288
48993951
SM
72892020-03-29 Simon Marchi <simon.marchi@polymtl.ca>
7290
7291 * psympriv.h (partial_symtab) <read_dependencies>: Rename to...
7292 <expand_dependencies>: ... this.
7293 * psymtab.c (partial_symtab::read_dependencies): Rename to...
7294 (partial_symtab::expand_dependencies): ... this.
7295 * dwarf2/read.c (dwarf2_include_psymtab) <expand_psymtab>:
7296 Update.
7297 (dwarf2_psymtab::expand_psymtab): Update.
7298 * dbxread.c (dbx_psymtab_to_symtab_1): Update.
7299 * mdebugread.c (psymtab_to_symtab_1): Update.
7300 * xcoffread.c (xcoff_psymtab_to_symtab_1): Update.
7301
3ad83046
SM
73022020-03-29 Simon Marchi <simon.marchi@polymtl.ca>
7303
7304 * psympriv.h (discard_psymtab): Remove.
7305 * dbxread.c (dbx_end_psymtab): Update.
7306 * xcoffread.c (xcoff_end_psymtab): Update.
7307
4d1b9ab6
TT
73082020-03-28 Tom Tromey <tom@tromey.com>
7309
7310 * dwarf2/attribute.h (struct attribute) <form_is_constant>: Update
7311 comment.
7312
f1749218
TT
73132020-03-28 Tom Tromey <tom@tromey.com>
7314
7315 * dwarf2/read.c (read_attribute_reprocess): Fix formatting.
7316
ebea7626
HD
73172020-03-27 Hannes Domani <ssbssa@yahoo.de>
7318
7319 * windows-nat.c (windows_add_all_dlls): Fix system dll paths.
7320
a879b4d5
JB
73212020-03-26 John Baldwin <jhb@FreeBSD.org>
7322
7323 * fbsd-tdep.c (fbsd_print_auxv_entry): Handle AT_FREEBSD_BSDFLAGS.
7324
0826b30a
TT
73252020-03-26 Tom Tromey <tom@tromey.com>
7326
7327 * dwarf2/read.c (handle_data_member_location, dwarf2_add_field)
7328 (mark_common_block_symbol_computed, read_tag_string_type)
7329 (attr_to_dynamic_prop, read_subrange_type): Update.
7330 (dwarf2_get_ref_die_offset, dwarf2_get_attr_constant_value): Move
7331 to be methods on struct attribute.
7332 (skip_one_die, process_imported_unit_die, read_namespace_alias)
7333 (read_call_site_scope, partial_die_info::read)
7334 (partial_die_info::read, lookup_die_type, follow_die_ref):
7335 Update.
7336 * dwarf2/attribute.c (attribute::get_ref_die_offset): New method,
7337 from dwarf2_get_ref_die_offset.
7338 (attribute::constant_value): New method, from
7339 dwarf2_get_attr_constant_value.
7340 * dwarf2/attribute.h (struct attribute) <get_ref_die_offset>:
7341 Declare method.
7342 <constant_value>: New method.
7343
2b2558bf
TT
73442020-03-26 Tom Tromey <tom@tromey.com>
7345
7346 * dwarf2/read.c (dwarf_unit_type_name, dwarf_tag_name)
7347 (dwarf_attr_name, dwarf_form_name, dwarf_bool_name)
7348 (dwarf_type_encoding_name): Move to stringify.c.
7349 * Makefile.in (COMMON_SFILES): Add dwarf2/stringify.c.
7350 * dwarf2/stringify.c: New file.
7351 * dwarf2/stringify.h: New file.
7352
eeb64781
TT
73532020-03-26 Tom Tromey <tom@tromey.com>
7354
7355 * dwarf2/die.h (struct die_info) <addr_base, ranges_base>:
7356 Rewrite.
7357
a39fdb41
TT
73582020-03-26 Tom Tromey <tom@tromey.com>
7359
7360 * dwarf2/die.h (struct die_info) <addr_base, ranges_base>: New
7361 methods.
7362 * dwarf2/read.c (lookup_addr_base): Move to die.h.
7363 (lookup_ranges_base): Likewise.
7364 (read_cutu_die_from_dwo, read_full_die_1): Update.
7365
436c571c
TT
73662020-03-26 Tom Tromey <tom@tromey.com>
7367
7368 * dwarf2/read.c (read_import_statement, read_file_scope)
7369 (read_type_unit_scope, inherit_abstract_dies, read_func_scope)
7370 (read_lexical_block_scope, read_call_site_scope)
7371 (dwarf2_get_subprogram_pc_bounds, get_scope_pc_bounds)
7372 (handle_struct_member_die, process_structure_scope)
7373 (update_enumeration_type_from_children)
7374 (process_enumeration_scope, read_array_type, read_common_block)
7375 (read_namespace, read_module, read_subroutine_type): Update.
7376 (sibling_die): Remove.
7377
052c8bb8
TT
73782020-03-26 Tom Tromey <tom@tromey.com>
7379
7380 * dwarf2/read.c (lookup_addr_base, lookup_ranges_base)
7381 (build_type_psymtabs_reader, read_structure_type)
7382 (read_enumeration_type, read_full_die_1): Update.
7383 (dwarf2_attr_no_follow): Move to die.h.
7384 * dwarf2/die.h (struct die_info) <attr>: New method.
7385
2b24b6e4
TT
73862020-03-26 Tom Tromey <tom@tromey.com>
7387
7388 * dwarf2/read.c (struct dwarf2_cu) <base_known>: Remove.
7389 <base_address>: Now an optional.
7390 (dwarf2_find_base_address, dwarf2_rnglists_process)
7391 (dwarf2_ranges_process, fill_in_loclist_baton)
7392 (dwarf2_symbol_mark_computed): Update.
7393
c2d50fd0
TT
73942020-03-26 Tom Tromey <tom@tromey.com>
7395
7396 * dwarf2/read.c (struct die_info): Move to die.h.
7397 * dwarf2/die.h: New file.
7398
0df7ad3a
TT
73992020-03-26 Tom Tromey <tom@tromey.com>
7400
7401 * dwarf2/line-header.h (dwarf_decode_line_header): Declare.
7402 * dwarf2/read.c
7403 (dwarf2_statement_list_fits_in_line_number_section_complaint):
7404 Move to line-header.c.
7405 (read_checked_initial_length_and_offset, read_formatted_entries):
7406 Likewise.
7407 (dwarf_decode_line_header): Split into two.
7408 * dwarf2/line-header.c
7409 (dwarf2_statement_list_fits_in_line_number_section_complaint):
7410 Move from read.c.
7411 (read_checked_initial_length_and_offset, read_formatted_entries):
7412 Likewise.
7413 (dwarf_decode_line_header): New function, split from read.c.
7414
86c0bb4c
TT
74152020-03-26 Tom Tromey <tom@tromey.com>
7416
7417 * dwarf2/read.h (struct dwarf2_per_objfile) <read_line_string>:
7418 Declare method.
7419 * dwarf2/read.c (read_attribute_value): Update.
7420 (dwarf2_per_objfile::read_line_string): Rename from
7421 read_indirect_line_string.
7422 (read_formatted_entries): Update.
7423
2ef46c2f
TT
74242020-03-26 Tom Tromey <tom@tromey.com>
7425
7426 * dwarf2/macro.c (dwarf_decode_macro_bytes): Use objfile local
7427 variable.
7428
4f9c1eda
TT
74292020-03-26 Tom Tromey <tom@tromey.com>
7430
7431 * dwarf2/macro.h (dwarf_decode_macros): Make section parameter
7432 const.
7433 * dwarf2/macro.c (skip_form_bytes, skip_unknown_opcode)
7434 (dwarf_decode_macro_bytes, dwarf_decode_macros): Make section
7435 parameter const.
7436
5a0e026f
TT
74372020-03-26 Tom Tromey <tom@tromey.com>
7438
7439 * dwarf2/read.c (dwarf_decode_macros): Make "lh" const.
7440 * dwarf2/macro.h (dwarf_decode_macros): Constify "lh" parameter.
7441 * dwarf2/macro.c (macro_start_file): Constify "lh" parameter.
7442 (dwarf_decode_macro_bytes, dwarf_decode_macros): Likewise.
7443
8844c11b
TT
74442020-03-26 Tom Tromey <tom@tromey.com>
7445
7446 * dwarf2/line-header.h (struct line_header) <is_valid_file_index,
7447 file_names_size, file_full_name, file_file_name>: Use const.
7448 <file_name_at, file_names>: Add const overload.
7449 * dwarf2/line-header.c (line_header::file_file_name)
7450 (line_header::file_full_name): Update.
7451
c90ec28a
TT
74522020-03-26 Tom Tromey <tom@tromey.com>
7453
7454 * dwarf2/read.c (dwarf2_macro_malformed_definition_complaint)
7455 (macro_start_file, consume_improper_spaces)
7456 (parse_macro_definition, skip_form_bytes, skip_unknown_opcode)
7457 (dwarf_parse_macro_header, dwarf_decode_macro_bytes)
7458 (dwarf_decode_macros): Move to macro.c.
7459 * dwarf2/macro.c: New file.
7460 * dwarf2/macro.h: New file.
7461 * Makefile.in (COMMON_SFILES): Add dwarf2/macro.c.
7462
4f44ae6c
TT
74632020-03-26 Tom Tromey <tom@tromey.com>
7464
7465 * dwarf2/section.h (struct dwarf2_section_info) <read_string>: New
7466 method.
7467 * dwarf2/section.c: New method. From
7468 read_indirect_string_at_offset_from.
7469 * dwarf2/read.c (mapped_debug_names::namei_to_name): Update.
7470 (read_indirect_string_at_offset_from): Move to section.c.
7471 (read_indirect_string_at_offset): Rewrite.
7472 (read_indirect_line_string_at_offset): Remove.
7473 (read_indirect_string, read_indirect_line_string)
7474 (dwarf_decode_macro_bytes): Update.
7475
a0194fa8
TT
74762020-03-26 Tom Tromey <tom@tromey.com>
7477
7478 * dwarf2/section.h (struct dwarf2_section_info)
7479 <overload_complaint>: Declare.
7480 (dwarf2_section_buffer_overflow_complaint): Don't declare.
7481 * dwarf2/section.c (dwarf2_section_info::overflow_complaint):
7482 Rename from dwarf2_section_buffer_overflow_complaint.
7483 * dwarf2/read.c (skip_one_die, partial_die_info::read)
7484 (skip_form_bytes, dwarf_decode_macro_bytes): Update.
7485
3d27bbdb
TT
74862020-03-26 Tom Tromey <tom@tromey.com>
7487
7488 * dwarf2/section.h (dwarf2_section_buffer_overflow_complaint):
7489 Declare.
7490 * dwarf2/section.c (dwarf2_section_buffer_overflow_complaint):
7491 Move from read.c.
7492 * dwarf2/read.c (dwarf2_section_buffer_overflow_complaint): Move
7493 to section.c.
7494
9eac9650
TT
74952020-03-26 Tom Tromey <tom@tromey.com>
7496
7497 * dwarf2/read.c (dwarf_decode_macros): Split into two overloads.
7498
bf80d710
TT
74992020-03-26 Tom Tromey <tom@tromey.com>
7500
7501 * dwarf2/read.c (macro_start_file): Change "cu" parameter to
7502 "builder".
7503 (dwarf_decode_macro_bytes): Likewise. Add dwarf2_per_objfile
7504 parameter.
7505 (dwarf_decode_macros): Update.
7506
0314b390
TT
75072020-03-26 Tom Tromey <tom@tromey.com>
7508
7509 * dwarf2/read.c (read_attribute_value): Update.
7510 (read_indirect_string_from_dwz): Move to dwz.c; change into
7511 method.
7512 (dwarf_decode_macro_bytes): Update.
7513 * dwarf2/dwz.h (struct dwz_file) <read_string>: Declare method.
7514 * dwarf2/dwz.c: New file.
7515 * Makefile.in (COMMON_SFILES): Add dwz.c.
7516
9fda78b6
TT
75172020-03-26 Tom Tromey <tom@tromey.com>
7518
7519 * dwarf2/read.h (struct dwz_file): Move to dwz.h.
7520 * dwarf2/read.c: Add include.
7521 * dwarf2/index-write.c: Add include.
7522 * dwarf2/index-cache.c: Add include.
7523 * dwarf2/dwz.h: New file.
7524
33aa3c10
TT
75252020-03-25 Tom Tromey <tom@tromey.com>
7526
7527 * compile/compile-object-load.c (get_out_value_type): Mention
7528 correct symbol name in error message.
7529
d503b685
HD
75302020-03-25 Hannes Domani <ssbssa@yahoo.de>
7531
7532 * windows-nat.c (windows_add_all_dlls): Fix system dll paths.
7533
7b1eff95
TV
75342020-03-25 Tom de Vries <tdevries@suse.de>
7535
7536 * symtab.h (is_main_symtab_of_compunit_symtab): New function.
7537 * symmisc.c (dump_symtab_1): Print user and includes fields.
7538 (maintenance_info_symtabs): Same.
7539
dd895392
AB
75402020-03-25 Andrew Burgess <andrew.burgess@embecosm.com>
7541
7542 PR gdb/25534
7543 * riscv-tdep.c (riscv_arg_info::c_offset): Update comment.
7544 (riscv_regcache_cooked_write): New function.
7545 (riscv_push_dummy_call): Use new function.
7546 (riscv_return_value): Likewise.
7547
5ab2fbf1
SM
75482020-03-24 Simon Marchi <simon.marchi@polymtl.ca>
7549
7550 * fbsd-nat.c (fbsd_nat_target::follow_fork): Change bool to int.
7551 * fbsd-nat.h (class fbsd_nat_target) <follow_fork>: Likewise.
7552 * inf-ptrace.c (inf_ptrace_target::follow_fork): Likewise.
7553 * inf-ptrace.h (struct inf_ptrace_target) <follow_fork>: Likewise.
7554 * infrun.c (follow_fork): Likewise.
7555 (follow_fork_inferior): Likewise.
7556 * linux-nat.c (linux_nat_target::follow_fork): Likewise.
7557 * linux-nat.h (class linux_nat_target): Likewise.
7558 * remote.c (class remote_target) <follow_fork>: Likewise.
7559 (remote_target::follow_fork): Likewise.
7560 * target-delegates.c: Re-generate.
7561 * target.c (default_follow_fork): Likewise.
7562 (target_follow_fork): Likewise.
7563 * target.h (struct target_ops) <follow_fork>: Likewise.
7564 (target_follow_fork): Likewise.
7565
a64fafb5
TV
75662020-03-24 Tom de Vries <tdevries@suse.de>
7567
7568 * psymtab.c (maintenance_info_psymtabs): Print user field.
7569
fe26d3a3
TT
75702020-03-20 Tom Tromey <tromey@adacore.com>
7571
7572 * dwarf2/loc.h (dwarf2_evaluate_property): Make "addr_stack"
7573 const.
7574 * dwarf2/loc.c (dwarf2_evaluate_property): Make "addr_stack"
7575 const.
7576
c884cc46
SM
75772020-03-20 Simon Marchi <simon.marchi@efficios.com>
7578
7579 * ptrace.m4: Don't check for ptrace declaration.
7580 * config.in: Re-generate.
7581 * configure: Re-generate.
7582 * nat/gdb_ptrace.h: Don't declare ptrace if HAVE_DECL_PTRACE is
7583 not defined.
7584
1ff700c2
KR
75852020-03-20 Kamil Rytarowski <n54@gmx.com>
7586
7587 * amd64-bsd-nat.c (gdb_ptrace): Change return type from `int' to
7588 `PTRACE_TYPE_RET'.
7589 * i386-bsd-nat.c (gdb_ptrace): Likewise.
7590 * sparc-nat.c (gdb_ptrace): Likewise.
7591 * x86-bsd-nat.c (gdb_ptrace): Likewise.
7592
f7d4f0b1
TT
75932020-03-20 Tom Tromey <tromey@adacore.com>
7594
7595 * c-exp.y (lex_one_token): Fix assert.
7596
f67210ff
TT
75972020-03-20 Tom Tromey <tromey@adacore.com>
7598
7599 * ada-tasks.c (read_atcb): Use smaller length in strncpy call.
7600 * linux-tdep.c (linux_fill_prpsinfo): Use smaller length in
7601 strncpy call.
7602
1773be9e
TT
76032020-03-20 Tom Tromey <tromey@adacore.com>
7604
7605 * symmisc.c (maintenance_print_one_line_table): Use ui_out.
7606
70304be9
TT
76072020-03-20 Tom Tromey <tromey@adacore.com>
7608
7609 * ada-valprint.c (print_variant_part): Remove parameters; switch
7610 to value-based API.
7611 (print_field_values): Likewise.
7612 (ada_val_print_struct_union): Likewise.
7613 (ada_value_print_1): Update.
7614
9faa006d
KR
76152020-03-20 Kamil Rytarowski <n54@gmx.com>
7616
7617 * ppc-nbsd-nat.c (ppc_nbsd_nat_target): Inherit from
7618 nbsd_nat_target instead of inf_ptrace_target.
7619 * ppc-nbsd-nat.c: Include "nbsd-nat.h", as we are now using
7620 nbsd_nat_target.
7621
4a90f062
KR
76222020-03-20 Kamil Rytarowski <n54@gmx.com>
7623
7624 * hppa-nbsd-nat.c (fetch_registers): New variable lwp and pass
7625 it to the ptrace call.
7626 * (store_registers): Likewise.
7627
76282020-03-20 Kamil Rytarowski <n54@gmx.com>
c7da12c7
KR
7629
7630 * ppc-nbsd-nat.c (fetch_registers): New variable lwp and pass
7631 it to the ptrace call.
7632 * (store_registers): Likewise.
7633
2d07da27
LM
76342020-03-19 Luis Machado <luis.machado@linaro.org>
7635
7636 * nat/aarch64-sve-linux-ptrace.c (aarch64_sve_set_vq): If vg is not
7637 valid, fetch vg value from ptrace.
7638
f09db380
KR
76392020-03-19 Kamil Rytarowski <n54@gmx.com>
7640 * inf-ptrace.h: Disable get_ptrace_pid on NetBSD.
7641 * inf-ptrace.c: Likewise.
7642 * (gdb_ptrace): Add.
7643 * (inf_ptrace_target::resume): Update.
7644 * (inf_ptrace_target::xfer_partial): Likewise.
7645 * (inf_ptrace_peek_poke): Change argument `pid' to `ptid'.
7646 * (inf_ptrace_peek_poke): Update.
7647
fcc7376e
KR
76482020-03-19 Kamil Rytarowski <n54@gmx.com>
7649
7650 * x86-bsd-nat.c (gdb_ptrace): New.
7651 * (x86bsd_dr_set): Add new argument `ptid'.
7652 * (x86bsd_dr_get, x86bsd_dr_set, x86bsd_dr_set_control,
7653 x86bsd_dr_set_addr): Update.
7654
cada5fc9
AB
76552020-03-19 Andrew Burgess <andrew.burgess@embecosm.com>
7656
7657 * remote.c (remote_target::process_stop_reply): Handle events for
7658 all threads differently.
7659
19a2740f
AB
76602020-03-19 Andrew Burgess <andrew.burgess@embecosm.com>
7661
7662 * completer.c (completion_tracker::remove_completion): Define new
7663 function.
7664 * completer.h (completion_tracker::remove_completion): Declare new
7665 function.
7666 * symtab.c (completion_list_add_symbol): Remove aliasing msymbols
7667 when adding a C++ function symbol.
7668
724fd9ba
AB
76692020-03-19 Andrew Burgess <andrew.burgess@embecosm.com>
7670
7671 * completer.c (completion_tracker::completion_hash_entry): Define
7672 new class.
7673 (advance_to_filename_complete_word_point): Call
7674 recompute_lowest_common_denominator.
7675 (completion_tracker::completion_tracker): Call discard_completions
7676 to setup the hash table.
7677 (completion_tracker::discard_completions): Allow for being called
7678 from the constructor, pass new equal function, and element deleter
7679 when constructing the hash table. Initialise new class member
7680 variables.
7681 (completion_tracker::maybe_add_completion): Remove use of
7682 m_entries_vec, and store more information into m_entries_hash.
7683 (completion_tracker::recompute_lcd_visitor): New function, most
7684 content taken from...
7685 (completion_tracker::recompute_lowest_common_denominator):
7686 ...here, this now just visits each item in the hash calling the
7687 above visitor.
7688 (completion_tracker::build_completion_result): Remove use of
7689 m_entries_vec, call recompute_lowest_common_denominator.
7690 * completer.h (completion_tracker::have_completions): Remove use
7691 of m_entries_vec.
7692 (completion_tracker::completion_hash_entry): Declare new class.
7693 (completion_tracker::recompute_lowest_common_denominator): Change
7694 function signature.
7695 (completion_tracker::recompute_lcd_visitor): Declare new function.
7696 (completion_tracker::m_entries_vec): Delete.
7697 (completion_tracker::m_entries_hash): Initialize to NULL.
7698 (completion_tracker::m_lowest_common_denominator_valid): New
7699 member variable.
7700 (completion_tracker::m_lowest_common_denominator_max_length): New
7701 member variable.
7702
5a82b8a1
KR
77032020-03-17 Kamil Rytarowski <n54@gmx.com>
7704
7705 * regformats/regdef.h: Put reg in gdb namespace.
7706
fb516a69
KR
77072020-03-17 Kamil Rytarowski <n54@gmx.com>
7708
7709 * i386-bsd-nat.c (gdb_ptrace): New.
7710 * (i386bsd_fetch_inferior_registers,
7711 i386bsd_store_inferior_registers) Switch from pid_t to ptid_t.
7712 * (i386bsd_fetch_inferior_registers,
7713 i386bsd_store_inferior_registers) Use gdb_ptrace.
7714
1c0aa1fb
KR
77152020-03-17 Kamil Rytarowski <n54@gmx.com>
7716
7717 * amd64-bsd-nat.c (gdb_ptrace): New.
7718 * (amd64bsd_fetch_inferior_registers,
7719 amd64bsd_store_inferior_registers) Switch from pid_t to ptid_t.
7720 * (amd64bsd_fetch_inferior_registers,
7721 amd64bsd_store_inferior_registers) Use gdb_ptrace.
7722
5ccd2fb7
KR
77232020-03-17 Kamil Rytarowski <n54@gmx.com>
7724
7725 * user-regs.c (user_reg::read): Rename to...
7726 (user_reg::xread): ...this.
7727 * (append_user_reg): Rename argument `read' to `xread'.
7728 * (user_reg_add_builtin): Likewise.
7729 * (user_reg_add): Likewise.
7730 * (value_of_user_reg): Likewise.
7731
2108a63a
KR
77322020-03-17 Kamil Rytarowski <n54@gmx.com>
7733
7734 * sparc-nat.c (gdb_ptrace): New.
7735 * sparc-nat.c (sparc_fetch_inferior_registers)
7736 (sparc_store_inferior_registers) Remove obsolete comment.
7737 * sparc-nat.c (sparc_fetch_inferior_registers)
7738 (sparc_store_inferior_registers) Switch from pid_t to ptid_t.
7739 * sparc-nat.c (sparc_fetch_inferior_registers)
7740 (sparc_store_inferior_registers) Use gdb_ptrace.
7741
a225c9a8
KR
77422020-03-17 Kamil Rytarowski <n54@gmx.com>
7743
7744 * sh-nbsd-nat.c (fetch_registers): New variable lwp and pass
7745 it to the ptrace call.
7746 * sh-nbsd-nat.c (store_registers): Likewise.
7747
98097623
KR
77482020-03-17 Kamil Rytarowski <n54@gmx.com>
7749
7750 * sh-nbsd-nat.c (sh_nbsd_nat_target): Inherit from
7751 nbsd_nat_target instead of inf_ptrace_target.
7752 * sh-nbsd-nat.c: Include "nbsd-nat.h", as we are now using
7753 nbsd_nat_target.
7754
9e38d619
KR
77552020-03-17 Kamil Rytarowski <n54@gmx.com>
7756
7757 * amd64-bsd-nat.c: Include amd64-bsd-nat.h".
7758
a2ecbe9f
KR
77592020-03-17 Kamil Rytarowski <n54@gmx.com>
7760
7761 * nbsd-nat.c: Include <sys/types.h>, <sys/ptrace.h> and
7762 <sys/sysctl.h>.
7763 * nbsd-nat.c (nbsd_nat_target::pid_to_exec_file): Rewrite.
7764
58990295
TV
77652020-03-17 Tom de Vries <tdevries@suse.de>
7766
7767 PR gdb/23710
7768 * dwarf2/read.h (struct dwarf2_per_cu_data): Add unit_type and lang
7769 fields.
7770 * dwarf2/read.c (process_psymtab_comp_unit): Initialize unit_type and lang
7771 fields.
7772 (process_imported_unit_die): Skip import of c++ CUs.
7773
771dd3a8
TT
77742020-03-16 Tom Tromey <tom@tromey.com>
7775
7776 * p-valprint.c (pascal_object_print_value): Initialize
7777 base_value.
7778
817a7585
AK
77792020-03-16 Anton Kolesov <anton.kolesov@synopsys.com>
7780 Shahab Vahedi <shahab@synopsys.com>
7781
7782 * Makefile.in: Add arch/arc.o
7783 * configure.tgt: Likewise.
7784 * arc-tdep.c (arc_tdesc_init): Use arc_read_description.
7785 (_initialize_arc_tdep): Don't initialize old target descriptions.
aac66a4c 7786 (arc_read_description): New function to cache target descriptions.
817a7585
AK
7787 * arc-tdep.h (arc_read_description): Add proto type.
7788 * arch/arc.c: New file.
7789 * arch/arc.h: Likewise.
7790 * features/Makefile: Replace old target descriptions with new.
7791 * features/arc-arcompact.c: Remove.
7792 * features/arc-arcompact.xml: Likewise.
7793 * features/arc-v2.c: Likewise
7794 * features/arc-v2.xml: Likewise
7795 * features/arc/aux-arcompact.xml: New file.
7796 * features/arc/aux-v2.xml: Likewise.
7797 * features/arc/core-arcompact.xml: Likewise.
7798 * features/arc/core-v2.xml: Likewise.
7799 * features/arc/aux-arcompact.c: Generate.
7800 * features/arc/aux-v2.c: Likewise.
7801 * features/arc/core-arcompact.c: Likewise.
7802 * features/arc/core-v2.c: Likewise.
7803 * target-descriptions (maint_print_c_tdesc_cmd): Support ARC features.
7804
67430cd0
TT
78052020-03-16 Tom Tromey <tromey@adacore.com>
7806
7807 PR gdb/25663:
7808 * dwarf2/read.c (dwarf2_name): Strip leading namespaces after
7809 putting value into bcache.
7810
30efb6c7
SM
78112020-03-16 Simon Marchi <simon.marchi@efficios.com>
7812
7813 PR gdb/21500
7814 * amd64-windows-tdep.c (amd64_windows_init_abi): Rename
7815 to...
7816 (amd64_windows_init_abi_common): ... this. Don't set size of
7817 long type.
7818 (amd64_windows_init_abi): New function.
7819 (amd64_cygwin_init_abi): New function.
7820 (_initialize_amd64_windows_tdep): Use amd64_cygwin_init_abi for
7821 the Cygwin OS ABI.
7822 * i386-windows-tdep.c (_initialize_i386_windows_tdep): Clarify
7823 comment.
7824
8db52437
SM
78252020-03-16 Simon Marchi <simon.marchi@efficios.com>
7826
7827 * windows-tdep.h (is_linked_with_cygwin_dll): New declaration.
7828 * windows-tdep.c (CYGWIN_DLL_NAME): New.
7829 (pe_import_directory_entry): New struct type.
7830 (is_linked_with_cygwin_dll): New function.
7831 * amd64-windows-tdep.c (amd64_windows_osabi_sniffer): Select
7832 GDB_OSABI_CYGWIN if the BFD is linked with the Cygwin DLL.
7833 * i386-windows-tdep.c (i386_windows_osabi_sniffer): Likewise.
7834
5982a56a
SM
78352020-03-16 Simon Marchi <simon.marchi@efficios.com>
7836
7837 * i386-windows-tdep.c: Mass-rename "cygwin" to "windows", except
7838 i386_cygwin_core_osabi_sniffer.
7839
7a1998df
SM
78402020-03-16 Simon Marchi <simon.marchi@efficios.com>
7841
7842 * i386-cygwin-tdep.c: Rename to...
7843 * i386-windows-tdep.c: ... this.
7844 * Makefile.in (ALL_TARGET_OBS): Rename i386-cygwin-tdep.c to
7845 i386-windows-tdep.c.
7846 * configure.tgt: Likewise.
7847
053205cc
SM
78482020-03-16 Simon Marchi <simon.marchi@efficios.com>
7849
7850 * osabi.h (enum gdb_osabi): Add GDB_OSABI_WINDOWS.
7851 * osabi.c (gdb_osabi_names): Add "Windows".
7852 * i386-cygwin-tdep.c (i386_cygwin_osabi_sniffer): Return
7853 GDB_OSABI_WINDOWS when the binary's target is "pei-i386".
7854 (i386_cygwin_core_osabi_sniffer): New function, extracted from
7855 i386_cygwin_osabi_sniffer.
7856 (_initialize_i386_cygwin_tdep): Register OS ABI
7857 GDB_OSABI_WINDOWS for i386.
7858 * amd64-windows-tdep.c (amd64_windows_osabi_sniffer): Return
7859 GDB_OSABI_WINDOWS when the binary's target is "pei-x86-64".
7860 (_initialize_amd64_windows_tdep): Register OS ABI GDB_OSABI_WINDOWS
7861 for x86-64.
7862 * configure.tgt: Use GDB_OSABI_WINDOWS as the default OS ABI
7863 when the target matches '*-*-mingw*'.
7864
fe4b2ee6
SM
78652020-03-16 Simon Marchi <simon.marchi@efficios.com>
7866
7867 * defs.h (enum gdb_osabi): Move to...
7868 * osabi.h (enum gdb_osabi): ... here.
7869 * gdbarch.sh: Include osabi.h in gdbarch.h.
7870 * gdbarch.h: Re-generate.
7871
cb9b645d
SM
78722020-03-16 Simon Marchi <simon.marchi@efficios.com>
7873
7874 * amd64-windows-tdep.c (amd64_windows_osabi_sniffer): New
7875 function.
7876 (_initialize_amd64_windows_tdep): Register osabi sniffer.
7877
3293bbaf
TT
78782020-03-14 Tom Tromey <tom@tromey.com>
7879
7880 * c-typeprint.c (cp_type_print_method_args): Print "__restrict__"
7881 for C++.
7882 (c_type_print_modifier): Likewise. Add "language" parameter.
7883 (c_type_print_varspec_prefix, c_type_print_base_struct_union)
7884 (c_type_print_base_1): Update.
7885 * type-stack.h (enum type_pieces) <tp_atomic, tp_restrict>: New
7886 constants.
7887 * type-stack.c (type_stack::insert): Handle tp_atomic and
7888 tp_restrict.
7889 (type_stack::follow_type_instance_flags): Likewise.
7890 (type_stack::follow_types): Likewise. Merge type-following code.
7891 * c-exp.y (RESTRICT, ATOMIC): New tokens.
7892 (space_identifier, cv_with_space_id)
7893 (const_or_volatile_or_space_identifier_noopt)
7894 (const_or_volatile_or_space_identifier): Remove.
7895 (single_qualifier, qualifier_seq_noopt, qualifier_seq): New
7896 rules.
7897 (ptr_operator, typebase): Update.
7898 (enum token_flag) <FLAG_C>: New constant.
7899 (ident_tokens): Add "restrict", "__restrict__", "__restrict", and
7900 "_Atomic".
7901 (lex_one_token): Handle FLAG_C.
7902
154151a6
KR
79032020-03-14 Kamil Rytarowski <n54@gmx.com>
7904
7905 * m68k-bsd-nat.c (fetch_registers): New variable lwp and pass
7906 it to the ptrace call.
7907 * m68k-bsd-nat.c (store_registers): Likewise.
7908
bc107784
KR
79092020-03-14 Kamil Rytarowski <n54@gmx.com>
7910
7911 * m68k-bsd-nat.c (m68kbsd_supply_gregset): Change type of regs to
7912 gdb_byte *.
7913 * m68k-bsd-nat.c (m68kbsd_supply_fpregset): Likewise.
7914 * m68k-bsd-nat.c (m68kbsd_collect_gregset): Likewise.
7915 * m68k-bsd-nat.c (m68kbsd_supply_pcb): Cast &tmp to gdb_byte *.
7916
01a80117
KR
79172020-03-14 Kamil Rytarowski <n54@gmx.com>
7918
7919 * m68k-bsd-nat.c (m68k_bsd_nat_target): Inherit from
7920 nbsd_nat_target instead of inf_ptrace_target.
7921 * m68k-bsd-nat.c: Include "nbsd-nat.h", as we are now using
7922 nbsd_nat_target.
7923
f90280ca
KR
79242020-03-14 Kamil Rytarowski <n54@gmx.com>
7925
7926 * m68k-bsd-nat.c: Define _KERNTYPES to get the declaration of
7927 register_t.
7928
6def66f1
KR
79292020-03-14 Kamil Rytarowski <n54@gmx.com>
7930
7931 * alpha-bsd-nat.c (fetch_registers): New variable lwp and pass
7932 it to the ptrace call.
7933 * alpha-bsd-nat.c (store_registers): Likewise.
7934
66eaca97
KR
79352020-03-14 Kamil Rytarowski <n54@gmx.com>
7936
7937 * alpha-bsd-nat.c: Remove <sys/procfs.h> and "gregset.h" from
7938 includes.
7939 * alpha-bsd-nat.c (gregset_t, fpregset_t): Remove.
7940 * alpha-bsd-nat.c (supply_gregset, fill_gregset, supply_fpregset,
7941 fill_fpregset): Likewise.
7942
4fed520b
KR
79432020-03-14 Kamil Rytarowski <n54@gmx.com>
7944
7945 * alpha-bsd-nat.c (alpha_netbsd_nat_target): Inherit from
7946 nbsd_nat_target instead of inf_ptrace_target.
7947 * alpha-bsd-nat.c: Include "nbsd-nat.h", as we are now using
7948 nbsd_nat_target.
7949
2190cf06
KR
79502020-03-14 Kamil Rytarowski <n54@gmx.com>
7951
7952 * alpha-bsd-nat.c: Define _KERNTYPES to get the declaration of
7953 register_t.
7954
75c56d3d
KR
79552020-03-14 Kamil Rytarowski <n54@gmx.com>
7956
7957 * arm-nbsd-nat.c (fetch_register): New variable lwp and pass
7958 it to the ptrace call.
7959 * arm-nbsd-nat.c (fetch_fp_register): Likewise.
7960 * arm-nbsd-nat.c (fetch_fp_regs): Likewise.
7961 * arm-nbsd-nat.c (store_register): Likewise.
7962 * arm-nbsd-nat.c (store_regs): Likewise.
7963 * arm-nbsd-nat.c (store_fp_register): Likewise.
7964 * arm-nbsd-nat.c (store_fp_regs): Likewise.
7965
6018d381
KR
79662020-03-14 Kamil Rytarowski <n54@gmx.com>
7967
7968 * arm-nbsd-nat.c (arm_netbsd_nat_target): Inherit from
7969 nbsd_nat_target instead of inf_ptrace_target.
7970 * arm-nbsd-nat.c: Include "nbsd-nat.h", as we are now using
7971 nbsd_nat_target.
7972
013f99f0
KR
79732020-03-14 Kamil Rytarowski <n54@gmx.com>
7974
7975 * x86-bsd-nat.c (x86bsd_dr_get): New variable lwp and pass
7976 it to the ptrace call.
7977 * x86-bsd-nat.c (x86bsd_dr_set): Likewise.
7978
12753073
KR
79792020-03-14 Kamil Rytarowski <n54@gmx.com>
7980
6227b330
KR
7981 * vax-bsd-nat.c (vaxbsd_supply_gregset): New variable lwp and pass
7982 it to the ptrace call.
7983 * vax-bsd-nat.c (vaxbsd_collect_gregset): Likewise.
7984
79852020-03-14 Kamil Rytarowski <n54@gmx.com>
7986
7987 * vax-bsd-nat.c (vaxbsd_supply_gregset): Cast gregs to const
7988 gdb_byte *.
12753073
KR
7989 * vax-bsd-nat.c (vaxbsd_collect_gregset): Cast gregs to void *.
7990
d5be5fa4
KR
79912020-03-14 Kamil Rytarowski <n54@gmx.com>
7992
7993 * vax-bsd-nat.c (vax_bsd_nat_target): Inherit from nbsd_nat_target
7994 instead of inf_ptrace_target.
7995 * vax-bsd-nat.c: Include "nbsd-nat.h", as we are now using
7996 nbsd_nat_target.
7997
8110f842
KR
79982020-03-14 Kamil Rytarowski <n54@gmx.com>
7999
8000 * mips-nbsd-nat.c: Define _KERNTYPES to get the declaration of
8001 register_t.
8002
52feded7
KR
80032020-03-14 Kamil Rytarowski <n54@gmx.com>
8004
8005 * ppc-nbsd-nat.c: Define _KERNTYPES to get the declaration of
8006 register_t.
8007
25567eee
KR
80082020-03-14 Kamil Rytarowski <n54@gmx.com>
8009
8010 * vax-bsd-nat.c: Define _KERNTYPES to get the declaration of
8011 register_t.
8012
426a9c18
TT
80132020-03-13 Tom Tromey <tom@tromey.com>
8014
8015 * value.h (val_print): Don't declare.
8016 * valprint.h (val_print_array_elements)
8017 (val_print_scalar_formatted, generic_val_print): Don't declare.
8018 * valprint.c (generic_val_print_array): Take a struct value.
8019 (generic_val_print_ptr, generic_val_print_memberptr)
8020 (generic_val_print_bool, generic_val_print_int)
8021 (generic_val_print_char, generic_val_print_complex)
8022 (generic_val_print): Remove.
8023 (generic_value_print): Update.
8024 (do_val_print): Remove unused parameters. Don't call
8025 la_val_print.
8026 (val_print): Remove.
8027 (common_val_print): Update. Don't call value_check_printable.
8028 (val_print_scalar_formatted, val_print_array_elements): Remove.
8029 * rust-lang.c (rust_val_print): Remove.
8030 (rust_language_defn): Update.
8031 * p-valprint.c (pascal_val_print): Remove.
8032 (pascal_value_print_inner): Update.
8033 (pascal_object_print_val_fields, pascal_object_print_val):
8034 Remove.
8035 (pascal_object_print_static_field): Update.
8036 * p-lang.h (pascal_val_print): Don't declare.
8037 * p-lang.c (pascal_language_defn): Update.
8038 * opencl-lang.c (opencl_language_defn): Update.
8039 * objc-lang.c (objc_language_defn): Update.
8040 * m2-valprint.c (m2_print_unbounded_array, m2_val_print): Remove.
8041 * m2-lang.h (m2_val_print): Don't declare.
8042 * m2-lang.c (m2_language_defn): Update.
8043 * language.h (struct language_defn) <la_val_print>: Remove.
8044 * language.c (unk_lang_value_print_inner): Rename. Change
8045 argument types.
8046 (unknown_language_defn, auto_language_defn): Update.
8047 * go-valprint.c (go_val_print): Remove.
8048 * go-lang.h (go_val_print): Don't declare.
8049 * go-lang.c (go_language_defn): Update.
8050 * f-valprint.c (f_val_print): Remove.
8051 * f-lang.h (f_value_print): Don't declare.
8052 * f-lang.c (f_language_defn): Update.
8053 * d-valprint.c (d_val_print): Remove.
8054 * d-lang.h (d_value_print): Don't declare.
8055 * d-lang.c (d_language_defn): Update.
8056 * cp-valprint.c (cp_print_value_fields)
8057 (cp_print_value_fields_rtti, cp_print_value): Remove.
8058 (cp_print_static_field): Update.
8059 * c-valprint.c (c_val_print_array, c_val_print_ptr)
8060 (c_val_print_struct, c_val_print_union, c_val_print_int)
8061 (c_val_print_memberptr, c_val_print): Remove.
8062 * c-lang.h (c_val_print_array, cp_print_value_fields)
8063 (cp_print_value_fields_rtti): Don't declare.
8064 * c-lang.c (c_language_defn, cplus_language_defn)
8065 (asm_language_defn, minimal_language_defn): Update.
8066 * ada-valprint.c (ada_val_print_ptr, ada_val_print_num): Remove.
8067 (ada_val_print_enum): Take a struct value.
8068 (ada_val_print_flt, ada_val_print_array, ada_val_print_1)
8069 (ada_val_print): Remove.
8070 (ada_value_print_1): Update.
8071 (printable_val_type): Remove.
8072 * ada-lang.h (ada_val_print): Don't declare.
8073 * ada-lang.c (ada_language_defn): Update.
8074
42331a1e
TT
80752020-03-13 Tom Tromey <tom@tromey.com>
8076
8077 * valprint.c (do_val_print): Update.
8078 * python/python-internal.h (gdbpy_apply_val_pretty_printer): Take
8079 a struct value.
8080 (value_to_value_object_no_release): Declare.
8081 * python/py-value.c (value_to_value_object_no_release): New
8082 function.
8083 * python/py-prettyprint.c (gdbpy_apply_val_pretty_printer): Take a
8084 struct value.
8085 * guile/scm-value.c (vlscm_scm_from_value_no_release): New
8086 function.
8087 * guile/scm-pretty-print.c (gdbscm_apply_val_pretty_printer): Take
8088 a struct value.
8089 * guile/guile-internal.h (vlscm_scm_from_value_no_release):
8090 Declare.
8091 (gdbscm_apply_val_pretty_printer): Take a struct value.
8092 * extension.h (apply_ext_lang_val_pretty_printer): Take a struct
8093 value.
8094 * extension.c (apply_ext_lang_val_pretty_printer): Take a struct
8095 value.
8096 * extension-priv.h (struct extension_language_ops)
8097 <apply_val_pretty_printer>: Take a struct value.
8098 * cp-valprint.c (cp_print_value): Create a struct value.
8099 (cp_print_value): Update.
8100
3a916a97
TT
81012020-03-13 Tom Tromey <tom@tromey.com>
8102
8103 * ada-valprint.c (print_field_values): Call common_val_print.
8104
b59eac37
TT
81052020-03-13 Tom Tromey <tom@tromey.com>
8106
8107 * ada-valprint.c (val_print_packed_array_elements): Remove
8108 bitoffset and val parameters. Call common_val_print.
8109 (ada_val_print_string): Remove offset, address, and original_value
8110 parameters.
8111 (ada_val_print_array): Update.
8112 (ada_value_print_array): New function.
8113 (ada_value_print_1): Call it.
8114
03371129
TT
81152020-03-13 Tom Tromey <tom@tromey.com>
8116
8117 * ada-valprint.c (ada_value_print): Use common_val_print.
8118
2e088f8b
TT
81192020-03-13 Tom Tromey <tom@tromey.com>
8120
8121 * ada-valprint.c (ada_val_print_ref): Use common_val_print.
8122
39ef85a8
TT
81232020-03-13 Tom Tromey <tom@tromey.com>
8124
8125 * ada-valprint.c (ada_value_print_num): New function.
8126 (ada_value_print_1): Use it.
8127
b9fa6e07
TT
81282020-03-13 Tom Tromey <tom@tromey.com>
8129
8130 * ada-valprint.c (ada_value_print_1) <TYPE_CODE_FLT>: Rewrite.
8131
416595d6
TT
81322020-03-13 Tom Tromey <tom@tromey.com>
8133
8134 * ada-valprint.c (ada_value_print_ptr): New function.
8135 (ada_value_print_1): Use it.
8136
5b5e15ec
TT
81372020-03-13 Tom Tromey <tom@tromey.com>
8138
8139 * ada-valprint.c (ada_val_print_gnat_array): Take a struct value;
8140 call common_val_print.
8141 (ada_val_print_1): Update.
8142 (ada_value_print_1): New function.
8143 (ada_value_print_inner): Rewrite.
8144
fbf54e75
TT
81452020-03-13 Tom Tromey <tom@tromey.com>
8146
8147 * cp-valprint.c (cp_print_value_fields): Update.
8148 (cp_print_value): New function.
8149
64b653ca
TT
81502020-03-13 Tom Tromey <tom@tromey.com>
8151
8152 * m2-valprint.c (m2_value_print_inner): Use
8153 cp_print_value_fields.
8154 * cp-valprint.c (cp_print_value_fields): New function.
8155 * c-valprint.c (c_value_print_struct): New function.
8156 (c_value_print_inner): Use c_value_print_struct.
8157 * c-lang.h (cp_print_value_fields): Declare.
8158
6999f067
TT
81592020-03-13 Tom Tromey <tom@tromey.com>
8160
8161 * c-valprint.c (c_value_print_array): New function.
8162 (c_value_print_inner): Use it.
8163
ce80b8bd
TT
81642020-03-13 Tom Tromey <tom@tromey.com>
8165
8166 * c-valprint.c (c_value_print_memberptr): New function.
8167 (c_value_print_inner): Use it.
8168
2faac269
TT
81692020-03-13 Tom Tromey <tom@tromey.com>
8170
8171 * c-valprint.c (c_value_print_int): New function.
8172 (c_value_print_inner): Use it.
8173
da3e2c29
TT
81742020-03-13 Tom Tromey <tom@tromey.com>
8175
8176 * c-valprint.c (c_value_print_ptr): New function.
8177 (c_value_print_inner): Use it.
8178
50836231
TT
81792020-03-13 Tom Tromey <tom@tromey.com>
8180
8181 * c-valprint.c (c_value_print_inner): Rewrite.
8182
4f412b6e
TT
81832020-03-13 Tom Tromey <tom@tromey.com>
8184
8185 * valprint.c (generic_value_print_complex): New function.
8186 (generic_value_print): Use it.
8187
f5354008
TT
81882020-03-13 Tom Tromey <tom@tromey.com>
8189
8190 * valprint.c (generic_val_print_float): Don't call
8191 val_print_scalar_formatted.
8192 (generic_val_print, generic_value_print): Update.
8193
3eec3b05
TT
81942020-03-13 Tom Tromey <tom@tromey.com>
8195
8196 * valprint.c (generic_value_print_char): New function
8197 (generic_value_print): Use it.
8198
fdddfccb
TT
81992020-03-13 Tom Tromey <tom@tromey.com>
8200
8201 * valprint.c (generic_value_print_int): New function.
8202 (generic_value_print): Use it.
8203
6dde7521
TT
82042020-03-13 Tom Tromey <tom@tromey.com>
8205
8206 * valprint.c (generic_value_print_bool): New function.
8207 (generic_value_print): Use it.
8208
4112d2e6
TT
82092020-03-13 Tom Tromey <tom@tromey.com>
8210
8211 * valprint.c (generic_val_print_func): Simplify.
8212 (generic_val_print, generic_value_print): Update.
8213
65786af6
TT
82142020-03-13 Tom Tromey <tom@tromey.com>
8215
8216 * valprint.c (generic_val_print_flags): Remove.
8217 (generic_val_print, generic_value_print): Update.
8218 (val_print_type_code_flags): Add original_value parameter.
8219
40f3ce18
TT
82202020-03-13 Tom Tromey <tom@tromey.com>
8221
8222 * valprint.c (generic_val_print): Update.
8223 (generic_value_print): Update.
8224 * valprint.c (generic_val_print_enum): Don't call
8225 val_print_scalar_formatted.
8226
2a5b130b
TT
82272020-03-13 Tom Tromey <tom@tromey.com>
8228
8229 * valprint.c (generic_value_print): Call generic_value_print_ptr.
8230 * valprint.c (generic_value_print_ptr): New function.
8231
abc66ce9
TT
82322020-03-13 Tom Tromey <tom@tromey.com>
8233
8234 * valprint.c (generic_value_print): Rewrite.
8235
07a32858
TT
82362020-03-13 Tom Tromey <tom@tromey.com>
8237
8238 * p-valprint.c (pascal_object_print_value_fields)
8239 (pascal_object_print_value): New functions.
8240
64d64d3a
TT
82412020-03-13 Tom Tromey <tom@tromey.com>
8242
8243 * p-valprint.c (pascal_value_print_inner): Rewrite.
8244
6a95a1f5
TT
82452020-03-13 Tom Tromey <tom@tromey.com>
8246
8247 * f-valprint.c (f_value_print_innner): Rewrite.
8248
59fcdac6
TT
82492020-03-13 Tom Tromey <tom@tromey.com>
8250
8251 * m2-valprint.c (m2_print_unbounded_array): New overload.
8252 (m2_print_unbounded_array): Update.
8253 (m2_print_array_contents): Take a struct value.
8254 (m2_value_print_inner): Rewrite.
8255
d133c3e1
TT
82562020-03-13 Tom Tromey <tom@tromey.com>
8257
8258 * d-valprint.c (dynamic_array_type): Call d_value_print_inner.
8259 (d_value_print_inner): New function.
8260 * d-lang.h (d_value_print_inner): Declare.
8261 * d-lang.c (d_language_defn): Use d_value_print_inner.
8262
23b0f06b
TT
82632020-03-13 Tom Tromey <tom@tromey.com>
8264
8265 * go-valprint.c (go_value_print_inner): New function.
8266 * go-lang.h (go_value_print_inner): Declare.
8267 * go-lang.c (go_language_defn): Use go_value_print_inner.
8268
5f56f7cb
TT
82692020-03-13 Tom Tromey <tom@tromey.com>
8270
8271 * rust-lang.c (val_print_struct, rust_print_enum): Use the value
8272 API.
8273 (rust_val_print): Rewrite.
8274 (rust_value_print_inner): New function, from rust_val_print.
8275 (rust_language_defn): Use rust_value_print_inner.
8276
26792ee0
TT
82772020-03-13 Tom Tromey <tom@tromey.com>
8278
8279 * ada-valprint.c (ada_value_print_inner): New function.
8280 * ada-lang.h (ada_value_print_inner): Declare.
8281 * ada-lang.c (ada_language_defn): Use ada_value_print_inner.
8282
24051bbe
TT
82832020-03-13 Tom Tromey <tom@tromey.com>
8284
8285 * f-valprint.c (f_value_print_innner): New function.
8286 * f-lang.h (f_value_print_innner): Declare.
8287 * f-lang.c (f_language_defn): Use f_value_print_innner.
8288
c0941be6
TT
82892020-03-13 Tom Tromey <tom@tromey.com>
8290
8291 * p-valprint.c (pascal_value_print_inner): New function.
8292 * p-lang.h (pascal_value_print_inner): Declare.
8293 * p-lang.c (pascal_language_defn): Use pascal_value_print_inner.
8294
62c4663d
TT
82952020-03-13 Tom Tromey <tom@tromey.com>
8296
8297 * m2-valprint.c (m2_value_print_inner): New function.
8298 * m2-lang.h (m2_value_print_inner): Declare.
8299 * m2-lang.c (m2_language_defn): Use m2_value_print_inner.
8300
62182190
TT
83012020-03-13 Tom Tromey <tom@tromey.com>
8302
8303 * opencl-lang.c (opencl_language_defn): Use c_value_print_inner.
8304 * objc-lang.c (objc_language_defn): Use c_value_print_inner.
8305 * c-valprint.c (c_value_print_inner): New function.
8306 * c-lang.h (c_value_print_inner): Declare.
8307 * c-lang.c (c_language_defn, cplus_language_defn)
8308 (asm_language_defn, minimal_language_defn): Use
8309 c_value_print_inner.
8310
1e592a8a
TT
83112020-03-13 Tom Tromey <tom@tromey.com>
8312
8313 * p-valprint.c (pascal_object_print_value_fields): Now static.
8314 * p-lang.h (pascal_object_print_value_fields): Don't declare.
8315
7fe471e9
TT
83162020-03-13 Tom Tromey <tom@tromey.com>
8317
8318 * c-valprint.c (c_val_print_array): Simplify.
8319
d121c6ce
TT
83202020-03-13 Tom Tromey <tom@tromey.com>
8321
8322 * valprint.c (value_print_array_elements): New function.
8323 * valprint.h (value_print_array_elements): Declare.
8324
4dba70ee
TT
83252020-03-13 Tom Tromey <tom@tromey.com>
8326
8327 * printcmd.c (print_formatted): Use value_print_scalar_formatted.
8328 * mips-tdep.c (mips_print_register): Use
8329 value_print_scalar_formatted.
8330
4f9ae810
TT
83312020-03-13 Tom Tromey <tom@tromey.com>
8332
8333 * valprint.h (value_print_scalar_formatted): Declare.
8334 * valprint.c (value_print_scalar_formatted): New function.
8335
156bfec9
TT
83362020-03-13 Tom Tromey <tom@tromey.com>
8337
8338 * valprint.h (generic_value_print): Declare.
8339 * valprint.c (generic_value_print): New function.
8340
2b4e573d
TT
83412020-03-13 Tom Tromey <tom@tromey.com>
8342
8343 * valprint.c (do_val_print): Call la_value_print_inner, if
8344 available.
8345 * rust-lang.c (rust_language_defn): Update.
8346 * p-lang.c (pascal_language_defn): Update.
8347 * opencl-lang.c (opencl_language_defn): Update.
8348 * objc-lang.c (objc_language_defn): Update.
8349 * m2-lang.c (m2_language_defn): Update.
8350 * language.h (struct language_defn) <la_value_print_inner>: New
8351 member.
8352 * language.c (unknown_language_defn, auto_language_defn): Update.
8353 * go-lang.c (go_language_defn): Update.
8354 * f-lang.c (f_language_defn): Update.
8355 * d-lang.c (d_language_defn): Update.
8356 * c-lang.c (c_language_defn, cplus_language_defn)
8357 (asm_language_defn, minimal_language_defn): Update.
8358 * ada-lang.c (ada_language_defn): Update.
8359
a1f6a07c
TT
83602020-03-13 Tom Tromey <tom@tromey.com>
8361
8362 * c-valprint.c (c_value_print): Use common_val_print.
8363
410cf315
TT
83642020-03-13 Tom Tromey <tom@tromey.com>
8365
8366 * cp-valprint.c (cp_print_static_field): Use common_val_print.
8367
72a45c93
TT
83682020-03-13 Tom Tromey <tom@tromey.com>
8369
8370 * f-valprint.c (f77_print_array_1, f_val_print): Use
8371 common_val_print.
8372
040f66bd
TT
83732020-03-13 Tom Tromey <tom@tromey.com>
8374
8375 * riscv-tdep.c (riscv_print_one_register_info): Use
8376 common_val_print.
8377
a6e05a6c
TT
83782020-03-13 Tom Tromey <tom@tromey.com>
8379
8380 * mi/mi-main.c (output_register): Use common_val_print.
8381
3444c526
TT
83822020-03-13 Tom Tromey <tom@tromey.com>
8383
8384 * infcmd.c (default_print_one_register_info): Use
8385 common_val_print.
8386
c2a44efe
TT
83872020-03-13 Tom Tromey <tom@tromey.com>
8388
8389 * valprint.h (common_val_print_checked): Declare.
8390 * valprint.c (common_val_print_checked): New function.
8391 * stack.c (print_frame_arg): Use common_val_print_checked.
8392
b0c26e99
TT
83932020-03-13 Tom Tromey <tom@tromey.com>
8394
8395 * valprint.c (do_val_print): New function, from val_print.
8396 (val_print): Use do_val_print.
8397 (common_val_print): Use do_val_print.
8398
ce3acbe9
TT
83992020-03-13 Tom Tromey <tom@tromey.com>
8400
8401 * valprint.c (value_print): Use scoped_value_mark.
8402
96c7f873
TV
84032020-03-13 Tom de Vries <tdevries@suse.de>
8404
8405 PR symtab/25646
8406 * psymtab.c (partial_symtab::partial_symtab): Don't set
8407 globals_offset and statics_offset. Push element onto
8408 current_global_psymbols and current_static_psymbols stacks.
8409 (concat): New function.
8410 (end_psymtab_common): Set globals_offset and statics_offset. Pop
8411 element from current_global_psymbols and current_static_psymbols
8412 stacks. Concat popped elements to global_psymbols and
8413 static_symbols.
8414 (add_psymbol_to_list): Use current_global_psymbols and
8415 current_static_psymbols stacks.
8416 * psymtab.h (class psymtab_storage): Add current_global_psymbols and
8417 current_static_psymbols fields.
8418
6ba0a321
CB
84192020-03-12 Christian Biesinger <cbiesinger@google.com>
8420
8421 * corelow.c (sniff_core_bfd): Remove.
8422 (class core_target) <m_core_vec>: Remove.
8423 (core_target::core_target): Update.
8424 (core_file_fns): Remove.
8425 (deprecated_add_core_fns): Remove.
8426 (default_core_sniffer): Remove.
8427 (sniff_core_bfd): Remove.
8428 (default_check_format): Remove.
8429 (gdb_check_format): Remove.
8430 (core_target_open): Update.
8431 (core_target::get_core_register_section): Update.
8432 (get_core_registers_cb): Update.
8433 (core_target::fetch_registers): Update.
8434 * gdbcore.h (struct core_fns): Remove.
8435 (deprecated_add_core_fns): Remove.
8436 (default_core_sniffer): Remove.
8437 (default_check_format): Remove.
8438
227031b2
TT
84392020-03-12 Tom Tromey <tom@tromey.com>
8440
8441 * arm-tdep.c (struct arm_mapping_symbol) <value>: Now a
8442 CORE_ADDR.
8443 (struct arm_exidx_entry) <addr>: Now a CORE_ADDR.
8444
53807e9f
TT
84452020-03-12 Tom Tromey <tom@tromey.com>
8446
8447 * remote.c (remote_target::download_tracepoint)
8448 (remote_target::enable_tracepoint)
8449 (remote_target::disable_tracepoint): Use phex, not sprintf_vma.
8450 * breakpoint.c (print_recreate_masked_watchpoint): Use phex, not
8451 sprintf_vma.
8452
64f25102
TT
84532020-03-12 Tom Tromey <tom@tromey.com>
8454
8455 * symfile-mem.c: Update CORE_ADDR size assert.
8456
272cd5a3
SM
84572020-03-12 Simon Marchi <simon.marchi@efficios.com>
8458
8459 * selftest.m4: Move to gdbsupport/.
8460 * acinclude.m4: Update path to selftest.m4.
8461
74cd3f9d
SM
84622020-03-12 Simon Marchi <simon.marchi@efficios.com>
8463
8464 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Rename to...
8465 (SELFTESTS_SRCS): ... this. Add disasm-selftests.c,
8466 gdbarch-selfselftests.c and selftest-arch.c.
8467 (SUBDIR_UNITTESTS_OBS): Rename to...
8468 (SELFTESTS_OBS): ... this.
8469 (COMMON_SFILES): Remove disasm-selftests.c and
8470 gdbarch-selftests.c.
8471 * configure.ac: Don't add selftest-arch.{c,o} to
8472 CONFIG_{SRCS,OBS}.
8473 * disasm-selftests.c, gdbarch-selftests.c: Remove GDB_SELF_TEST
8474 preprocessor conditions.
8475
db6878ac
SM
84762020-03-12 Simon Marchi <simon.marchi@efficios.com>
8477
8478 * configure.ac: Don't source bfd/development.sh.
8479 * selftest.m4: Modify comment.
8480 * configure: Re-generate.
8481
4d696a5c
SM
84822020-03-12 Simon Marchi <simon.marchi@efficios.com>
8483
8484 * selftest.m4 (GDB_AC_SELFTEST): Error out if $development is
8485 not "true" or "false".
8486 * configure: Re-generate.
8487
8dd8e1c7
CB
84882020-03-12 Christian Biesinger <cbiesinger@google.com>
8489
8490 * Makefile.in (HFILES_NO_SRCDIR): Add new arm-nbsd-tdep.h file.
8491 * arm-nbsd-nat.c (arm_supply_gregset): Moved to arm-nbsd-tdep and
8492 renamed to arm_nbsd_supply_gregset.
8493 (fetch_register): Update to call arm_nbsd_supply_gregset.
8494 (fetch_regs): Remove in favor of fetch_register with a -1 regno.
8495 (arm_netbsd_nat_target::fetch_registers): Update.
8496 (fetch_elfcore_registers): Removed.
8497 (_initialize_arm_netbsd_nat): Removed call to deprecated_add_core_fns.
8498 * arm-nbsd-tdep.c (struct arm_nbsd_reg): New struct.
8499 (arm_nbsd_supply_gregset): Moved from arm-nbsd-nat.c and updated to
8500 not require NetBSD system headers.
8501 (arm_nbsd_regset): New struct.
8502 (arm_nbsd_iterate_over_regset_sections): New function.
8503 (arm_netbsd_init_abi_common): Updated to call
8504 set_gdbarch_iterate_over_regset_sections.
8505 * arm-nbsd-tdep.h: New file.
8506
dd69bf7a
KB
85072020-03-11 Kevin Buettner <kevinb@redhat.com>
8508
8509 * symtab.c (find_pc_sect_line): Add check which prevents infinite
8510 recursion.
8511
a0761e34
SM
85122020-03-11 Simon Marchi <simon.marchi@efficios.com>
8513
8514 * configure: Re-generate.
8515
e7a82140
TT
85162020-03-11 Tom Tromey <tromey@adacore.com>
8517
8518 * ada-typeprint.c (print_choices): Fix comment.
8519
dcc050c8
AB
85202020-03-11 Andrew Burgess <andrew.burgess@embecosm.com>
8521
8522 * buildsyms.c (buildsym_compunit::record_line): Avoid accessing
8523 previous item in the list, when the list has no items.
8524
1c33af77
TV
85252020-03-11 Tom de Vries <tdevries@suse.de>
8526
8527 * dwarf2/loc.c (dwarf2_evaluate_property): Handle NULL frame in
8528 PROP_LOCLIST handling code.
8529
8c95582d
AB
85302020-03-10 Andrew Burgess <andrew.burgess@embecosm.com>
8531
8532 * buildsym-legacy.c (record_line): Pass extra parameter to
8533 record_line.
8534 * buildsym.c (buildsym_compunit::record_line): Take an extra
8535 parameter, reduce duplication in the line table, and record the
8536 is_stmt flag in the line table.
8537 * buildsym.h (buildsym_compunit::record_line): Add extra
8538 parameter.
8539 * disasm.c (do_mixed_source_and_assembly_deprecated): Ignore
8540 non-statement lines.
8541 * dwarf2/read.c (dwarf_record_line_1): Add extra parameter, pass
8542 this to the symtab builder.
8543 (dwarf_finish_line): Pass extra parameter to dwarf_record_line_1.
8544 (lnp_state_machine::record_line): Pass a suitable is_stmt flag
8545 through to dwarf_record_line_1.
8546 * infrun.c (process_event_stop_test): When stepping, don't stop at
8547 a non-statement instruction, and only refresh the step info when
8548 we land in the middle of a line's range. Also add an extra
8549 comment.
8550 * jit.c (jit_symtab_line_mapping_add_impl): Initialise is_stmt
8551 field.
8552 * record-btrace.c (btrace_find_line_range): Only record lines
8553 marked as is-statement.
8554 * stack.c (frame_show_address): Show the frame address if we are
8555 in a non-statement sal.
8556 * symmisc.c (dump_symtab_1): Print the is_stmt flag.
8557 (maintenance_print_one_line_table): Print a header for the is_stmt
8558 column, and include is_stmt information in the output.
8559 * symtab.c (find_pc_sect_line): Find lines marked as statements in
8560 preference to non-statements.
8561 (find_pcs_for_symtab_line): Prefer is-statement entries.
8562 (find_line_common): Likewise.
8563 * symtab.h (struct linetable_entry): Add is_stmt field.
8564 (struct symtab_and_line): Likewise.
8565 * xcoffread.c (arrange_linetable): Initialise is_stmt field when
8566 arranging the line table.
8567
e4003a34
TV
85682020-03-07 Tom de Vries <tdevries@suse.de>
8569
8570 * dwarf2/read.c (read_typedef): Treat anonymous typedef as forwarder
8571 DIE.
8572
e8932576
TT
85732020-03-07 Tom Tromey <tom@tromey.com>
8574
8575 * valops.c (value_literal_complex): Remove obsolete comment.
8576 * gdbtypes.h (enum type_code) <TYPE_CODE_FLT>: Remove obsolete
8577 comment.
8578
29734269
SM
85792020-03-06 Simon Marchi <simon.marchi@polymtl.ca>
8580
8581 * infrun.h: Forward-declare thread_info.
8582 (set_step_info): Add thread_info parameter, add doc.
8583 * infrun.c (set_step_info): Add thread_info parameter, move doc
8584 to header.
8585 * infrun.c (process_event_stop_test): Pass thread to
8586 set_step_info call.
8587 * infcmd.c (set_step_frame): Add thread_info pointer, pass it to
8588 set_step_info.
8589 (prepare_one_step): Add thread_info parameter, pass it to
8590 set_step_frame and prepare_one_step (recursive) call.
8591 (step_1): Pass thread to prepare_one_step call.
8592 (step_command_fsm::should_stop): Pass thread to
8593 prepare_one_step.
8594 (until_next_fsm): Pass thread to set_step_frame call.
8595 (finish_command): Pass thread to set_step_info call.
8596
b7d64b29
HD
85972020-03-06 Hannes Domani <ssbssa@yahoo.de>
8598
8599 * windows-tdep.c (windows_solib_create_inferior_hook):
8600 Check if inferior is running.
8601
09f2921c
TV
86022020-03-06 Tom de Vries <tdevries@suse.de>
8603
8604 * NEWS: Fix "the the".
8605 * ctfread.c: Same.
8606
fd760e79
TV
86072020-03-06 Tom de Vries <tdevries@suse.de>
8608
8609 * psymtab.c (psymtab_to_symtab): Don't print "done.".
8610
20ea4a60
AB
86112020-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
8612
8613 * .dir-locals.el: Add a comment referencing the other copies of
8614 this file.
8615
0afbabf0
JB
86162020-03-05 John Baldwin <jhb@FreeBSD.org>
8617
8618 * fbsd-tdep.c (fbsd_make_corefile_notes): Use std::string for
8619 psargs.
8620
842806cb
TBA
86212020-03-05 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
8622
8623 * .gitattributes: New file.
8624
be1e3d3e
TT
86252020-03-04 Tom Tromey <tom@tromey.com>
8626
8627 * symmisc.c (print_symbol_bcache_statistics)
8628 (print_objfile_statistics): Update.
8629 * symfile.c (allocate_symtab): Use intern.
8630 * psymtab.c (partial_symtab::partial_symtab): Use intern.
8631 * objfiles.h (struct objfile_per_bfd_storage) <filename_cache,
8632 macro_cache>: Remove.
8633 <string_cache>: New member.
8634 (struct objfile) <intern>: New methods.
8635 * elfread.c (elf_symtab_read): Use intern.
8636 * dwarf2/read.c (fixup_go_packaging): Intern package name.
8637 (dwarf2_compute_name, dwarf2_physname)
8638 (create_dwo_unit_in_dwp_v1, create_dwo_unit_in_dwp_v2): Intern
8639 names.
8640 (guess_partial_die_structure_name): Update.
8641 (partial_die_info::fixup): Intern name.
8642 (dwarf2_canonicalize_name): Change parameter to objfile. Intern
8643 name.
8644 (dwarf2_name): Intern name. Update.
8645 * buildsym.c (buildsym_compunit::get_macro_table): Use
8646 string_cache.
8647
4e7625fd
TT
86482020-03-04 Tom Tromey <tom@tromey.com>
8649
8650 * jit.c (bfd_open_from_target_memory): Make "target" const.
8651 * corefile.c (gnutarget): Now const.
8652 * gdbcore.h (gnutarget): Now const.
8653
46f9f931
HD
86542020-03-04 Hannes Domani <ssbssa@yahoo.de>
8655
8656 * NEWS: Mention support for WOW64 processes.
8657 * amd64-windows-nat.c (amd64_mappings): Rename and remove static.
8658 (amd64_windows_segment_register_p): Remove static.
8659 (_initialize_amd64_windows_nat): Update.
8660 * configure.nat <windows> (NATDEPFILES): Add i386-windows-nat.o.
8661 * i386-windows-nat.c (context_offset): Update.
8662 (i386_mappings): Rename and remove static.
8663 (i386_windows_segment_register_p): Remove static.
8664 (_initialize_i386_windows_nat): Update.
8665 * windows-nat.c (STATUS_WX86_BREAKPOINT): New macro.
8666 (STATUS_WX86_SINGLE_STEP): New macro.
8667 (EnumProcessModulesEx): New macro.
8668 (Wow64SuspendThread): New macro.
8669 (Wow64GetThreadContext): New macro.
8670 (Wow64SetThreadContext): New macro.
8671 (Wow64GetThreadSelectorEntry): New macro.
8672 (windows_set_context_register_offsets): Add static.
8673 (windows_set_segment_register_p): Likewise.
8674 (windows_add_thread): Adapt for WOW64 processes.
8675 (windows_fetch_one_register): Likewise.
8676 (windows_nat_target::fetch_registers): Likewise.
8677 (windows_store_one_register): Likewise.
8678 (display_selector): Likewise.
8679 (display_selectors): Likewise.
8680 (handle_exception): Likewise.
8681 (windows_continue): Likewise.
8682 (windows_nat_target::resume): Likewise.
8683 (windows_add_all_dlls): Likewise.
8684 (do_initial_windows_stuff): Likewise.
8685 (windows_nat_target::attach): Likewise.
8686 (windows_get_exec_module_filename): Likewise.
8687 (windows_nat_target::create_inferior): Likewise.
8688 (windows_xfer_siginfo): Likewise.
8689 (_initialize_loadable): Initialize Wow64SuspendThread,
8690 Wow64GetThreadContext, Wow64SetThreadContext,
8691 Wow64GetThreadSelectorEntry and EnumProcessModulesEx.
8692 * windows-nat.h (windows_set_context_register_offsets):
8693 Remove declaration.
8694 (windows_set_segment_register_p): Likewise.
8695 (i386_windows_segment_register_p): Add declaration.
8696 (amd64_windows_segment_register_p): Likewise.
8697
440cf44e
LM
86982020-03-04 Luis Machado <luis.machado@linaro.org>
8699
8700 Revert aa66aac47b4dd38f9524ddb5546c08cc09930d37 due to regressions
8701 in "info registers" for AArch64/ARM.
8702
8703 The change caused "info registers" to not print GPR's.
8704
8705 gdb/ChangeLog:
8706
8707 2020-02-01 Shahab Vahedi <shahab@synopsys.com>
8708
8709 * target-descriptions.c (tdesc_register_in_reggroup_p): Return 0
8710 when reg->group is empty and reggroup is not.
8711
1009d92f
TT
87122020-03-03 Tom Tromey <tromey@adacore.com>
8713
8714 * dwarf2/frame.c (struct dwarf2_frame_cache)
8715 <checked_tailcall_bottom, entry_cfa_sp_offset,
8716 entry_cfa_sp_offset_p>: Remove members.
8717 (dwarf2_frame_cache): Call dwarf2_tailcall_sniffer_first.
8718 (dwarf2_frame_prev_register): Don't call
8719 dwarf2_tailcall_sniffer_first.
8720 (dwarf2_append_unwinders): Don't append tailcall unwinder.
8721 * frame-unwind.c (add_unwinder): New fuction.
8722 (frame_unwind_init): Use it. Add tailcall unwinder.
8723
5e5d66b6
AB
87242020-03-03 Andrew Burgess <andrew.burgess@embecosm.com>
8725 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
8726
8727 * f-valprint.c (f_val_print): Handle TYPE_CODE_BOOL, any non-zero
8728 value should be printed as true.
8729
584cf46d
HD
87302020-03-03 Hannes Domani <ssbssa@yahoo.de>
8731
8732 * windows-tdep.c (windows_solib_create_inferior_hook): New function.
8733 (windows_init_abi): Set and use windows_so_ops.
8734
7b973adc
SDJ
87352020-03-03 Sergio Durigan Junior <sergiodj@redhat.com>
8736
8737 * printcmd.c (print_c_string): Check also for TYPE_CODE_PTR
8738 when verifying if dealing with a convenience variable.
8739
bb7b70ab
LM
87402020-03-03 Luis Machado <luis.machado@linaro.org>
8741
8742 * auxv.c (default_print_auxv_entry): Add new AUXV entries.
8743
9822cb57
SM
87442020-03-02 Simon Marchi <simon.marchi@polymtl.ca>
8745
8746 * infrun.c (gdbarch_supports_displaced_stepping): New.
8747 (use_displaced_stepping): Break up conditions in smaller pieces.
8748 Use gdbarch_supports_displaced_stepping.
8749 (displaced_step_prepare_throw): Use
8750 gdbarch_supports_displaced_stepping.
8751
63e163f2
AB
87522020-03-02 Andrew Burgess <andrew.burgess@embecosm.com>
8753
8754 * NEWS: Mention new behaviour of the history filename.
8755 * top.c (write_history_p): Add comment.
8756 (show_write_history_p): Add header comment, give a different
8757 message when history writing is on, but the history filename is
8758 empty.
8759 (history_filename): Add comment.
8760 (history_filename_empty): New function.
8761 (show_history_filename): Add header comment, give a different
8762 message when the filename is empty.
8763 (init_history): Compare history_filename against nullptr, and only
8764 read history if the filename is not empty.
8765 (set_history_filename): Add header comment, and only make
8766 non-empty filenames absolute.
8767 (init_main): Make the filename argument to 'set history filename'
8768 optional.
8769
81b86b97
CB
87702020-03-02 Christian Biesinger <cbiesinger@google.com>
8771
8772 * arm-nbsd-nat.c (arm_supply_fparegset): Rename to...
8773 (arm_supply_vfpregset): ...this, and update to use VFP registers.
8774 (fetch_fp_register): Update.
8775 (fetch_fp_regs): Update.
8776 (store_fp_register): Update.
8777 (store_fp_regs): Update.
8778 (arm_netbsd_nat_target::read_description): New function.
8779 (fetch_elfcore_registers): Update.
8780
24ed6739
AB
87812020-03-02 Andrew Burgess <andrew.burgess@embecosm.com>
8782
8783 * remote.c (remote_target::remote_parse_stop_reply): Don't use the
8784 general_thread if the stop reply is missing a thread-id.
8785 (remote_target::process_stop_reply): Use the first non-exited
8786 thread if the target didn't pass a thread-id.
8787 * infrun.c (do_target_wait): Move call to
8788 switch_to_inferior_no_thread to ....
8789 (do_target_wait_1): ... here.
8790
a84bb2a0
JT
87912020-02-29 Jon Turney <jon.turney@dronecode.org.uk>
8792
8793 * debuginfod-support.c: Include defs.h first.
8794
658dadf0
TV
87952020-02-28 Tom de Vries <tdevries@suse.de>
8796
8797 * symfile.c (set_initial_language): Use default language for lookup.
8798
4ebe4877
SM
87992020-02-28 Simon Marchi <simon.marchi@efficios.com>
8800
8801 * dwarf2/read.c (cutu_reader::init_tu_and_read_dwo_dies): Remove
8802 reader variable, pass `this` to read_cutu_die_from_dwo.
8803
e5da1139
AM
88042020-02-27 Aaron Merey <amerey@redhat.com>
8805
8806 * source.c (open_source_file): Check for nullptr when computing
8807 srcpath.
8808
317f7127
TT
88092020-02-27 Tom Tromey <tromey@adacore.com>
8810
8811 * dwarf2/read.c (struct field_info) <nfields>: Now a method, not a
8812 member.
8813 (dwarf2_add_field): Don't update nfields.
8814 (dwarf2_attach_fields_to_type, process_structure_scope): Update.
8815
3104d9ee
AB
88162020-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
8817
8818 * gdbtypes.c (create_array_type_with_stride): Use std::abs not
8819 abs.
8820
b83470bf
TT
88212020-02-26 Tom Tromey <tom@tromey.com>
8822
8823 * dwarf2/read.c (struct dwarf2_include_psymtab): New.
8824 (dwarf2_create_include_psymtab): Use dwarf2_include_psymtab.
8825 (dwarf2_psymtab::expand_psymtab, dwarf2_psymtab::readin_p)
8826 (dwarf2_psymtab::get_compunit_symtab): Remove null checks for
8827 per_cu_data.
8828
edfe0a0c
TT
88292020-02-26 Tom Tromey <tom@tromey.com>
8830
8831 * dwarf2/index-write.c (psym_index_map): Change type.
8832 (add_address_entry_worker, write_one_signatured_type)
8833 (recursively_count_psymbols, recursively_write_psymbols)
8834 (class debug_names, psyms_seen_size, write_gdbindex)
8835 (write_debug_names): Use partial_symtab, not dwarf2_psymtab.
8836
0d79cdc4
AM
88372020-02-26 Aaron Merey <amerey@redhat.com>
8838
8839 * Makefile.in: Handle optional debuginfod support.
8840 * NEWS: Update.
8841 * README: Add --with-debuginfod summary.
8842 * config.in: Regenerate.
8843 * configure: Regenerate.
8844 * configure.ac: Handle optional debuginfod support.
8845 * debuginfod-support.c: debuginfod helper functions.
8846 * debuginfod-support.h: Ditto.
8847 * doc/gdb.texinfo: Add --with-debuginfod to configure options
8848 summary.
8849 * dwarf2/read.c (dwarf2_get_dwz_file): Query debuginfod servers
8850 when a dwz file cannot be found.
8851 * elfread.c (elf_symfile_read): Query debuginfod servers when a
8852 debuginfo file cannot be found.
8853 * source.c (open_source_file): Query debuginfod servers when a
8854 source file cannot be found.
8855 * top.c (print_gdb_configuration): Include
8856 --{with,without}-debuginfod in the output.
8857
b65ce565
JG
88582020-02-26 Jérémie Galarneau <jeremie.galarneau@efficios.com>
8859
8860 * thread.c (thr_try_catch_cmd): Print thread name.
8861
d4c9a4f8
SM
88622020-02-26 Simon Marchi <simon.marchi@efficios.com>
8863
8864 * dwarf2/loc.h (dwarf2_fetch_die_loc_sect_off,
8865 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
8866 dwarf2_fetch_die_type_sect_off): Move to...
8867 * dwarf2/read.h (dwarf2_fetch_die_loc_sect_off,
8868 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
8869 dwarf2_fetch_die_type_sect_off): ... here.
8870 * dwarf2/read.c (dwarf2_fetch_die_loc_sect_off,
8871 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
8872 dwarf2_fetch_die_type_sect_off): Move doc to header file.
8873
0dce4280
TV
88742020-02-26 Tom de Vries <tdevries@suse.de>
8875
8876 PR gdb/25603
8877 * symfile.c (set_initial_language): Exit-early if
8878 language_mode == language_mode_manual.
8879
450a1bfc
SM
88802020-02-25 Simon Marchi <simon.marchi@polymtl.ca>
8881
8882 * dwarf2/loc.h (dwarf2_read_addr_index): Move...
8883 * dwarf2/read.h (dwarf2_read_addr_index): ... here.
8884 * dwarf2/read.c (dwarf2_read_addr_index): Move doc to header.
8885
9e80cfa1
AB
88862020-02-25 Andrew Burgess <andrew.burgess@embecosm.com>
8887
8888 * gdbtypes.c (create_array_type_with_stride): Handle negative
8889 array strides.
8890 * valarith.c (value_subscripted_rvalue): Likewise.
8891
09624f1f
LM
88922020-02-25 Luis Machado <luis.machado@linaro.org>
8893
8894 * aarch64-tdep.c (aarch64_vnv_type): Fix comment typo.
8895
8cb5117c
SM
88962020-02-25 Simon Marchi <simon.marchi@polymtl.ca>
8897
8898 * loc.h (dwarf2_get_die_type): Move to...
8899 * read.h (dwarf2_get_die_type): ... here.
8900 * read.c (dwarf2_get_die_type): Move doc to header.
8901
c325c44e
JB
89022020-02-25 Joel Brobecker <brobecker@adacore.com>
8903
8904 * copypright.py (EXCLUDE_LIST): Add 'gnulib/config.in' and
8905 'gnulib/Makefile.in' to the list.
8906
4ac93832
TT
89072020-02-24 Tom Tromey <tom@tromey.com>
8908
8909 * dwarf2/read.h (struct type_unit_unshareable) <num_symtabs>:
8910 Remove.
8911 * dwarf2/read.c (dwarf2_cu::setup_type_unit_groups): Use
8912 XOBNEWVEC.
8913
197400e8
TT
89142020-02-24 Tom Tromey <tom@tromey.com>
8915
8916 * dwarf2/read.h (struct dwarf2_per_cu_data) <type_unit_group_p>:
8917 New method.
8918 * dwarf2/read.c (IS_TYPE_UNIT_GROUP): Remove.
8919 (dw2_do_instantiate_symtab, dw2_get_file_names)
8920 (build_type_psymtab_dependencies, load_full_type_unit): Update.
8921
76935768
TT
89222020-02-24 Tom Tromey <tom@tromey.com>
8923
8924 * dwarf2read.c (dwarf2_build_psymtabs_hard): Use
8925 make_scoped_restore.
8926 (dwarf2_psymtab::read_symtab): Don't clear
8927 reading_partial_symbols.
8928
a88ef40d
TV
89292020-02-24 Tom de Vries <tdevries@suse.de>
8930
8931 PR gdb/25592
8932 * stack.c (iterate_over_block_locals): Handle LOC_CONST.
8933
c9af6521
TV
89342020-02-24 Tom de Vries <tdevries@suse.de>
8935
8936 * tui/tui-layout.c (_initialize_tui_layout): Fix help messages for
8937 commands layout next/prev/regs.
8938
5707a07a
TT
89392020-02-22 Tom Tromey <tom@tromey.com>
8940
8941 * dwarf2/loc.h (dwarf2_compile_expr_to_ax): Don't declare.
8942 * dwarf2/loc.c (dwarf2_compile_expr_to_ax): Now static.
8943
3b0fb49e
TT
89442020-02-22 Tom Tromey <tom@tromey.com>
8945
8946 * tui/tui-data.h (TUI_DISASM_WIN): Cast to tui_disasm_window.
8947
283be8bf
TT
89482020-02-22 Tom Tromey <tom@tromey.com>
8949
8950 * tui/tui-win.c (_initialize_tui_win): Add usage text.
8951 * tui/tui-stack.c (_initialize_tui_stack): Add usage text.
8952 * tui/tui-regs.c (_initialize_tui_regs): Add usage text.
8953 * tui/tui.c (_initialize_tui): Add usage text.
8954
ca793b96
TT
89552020-02-22 Tom Tromey <tom@tromey.com>
8956
8957 * tui/tui-win.c (tui_set_focus_command)
8958 (tui_set_win_height_command): Use error_no_arg.
8959 (_initialize_tui_win): Update help text.
8960 (FOCUS_USAGE, WIN_HEIGHT_USAGE): Don't define.
8961
432b5c40
TT
89622020-02-22 Tom Tromey <tom@tromey.com>
8963
8964 * tui/tui-layout.c (extract_display_start_addr): Rewrite.
8965 * tui/tui-disasm.h (struct tui_disasm_window)
8966 <display_start_addr>: Declare.
8967 * tui/tui-source.h (struct tui_source_window)
8968 <display_start_addr>: Declare.
8969 * tui/tui-winsource.h (struct tui_source_window_base)
8970 <show_source_line, display_start_addr>: New methods.
8971 <m_horizontal_offset, m_start_line_or_addr, m_gdbarch, m_content>:
8972 Rename and move to protected section.
8973 * tui/tui-winsource.c (tui_source_window_base::update_source_window)
8974 (tui_source_window_base::do_erase_source_content): Update.
8975 (tui_source_window_base::show_source_line): Now a method.
8976 (tui_source_window_base::show_source_content)
8977 (tui_source_window_base::tui_source_window_base)
8978 (tui_source_window_base::rerender)
8979 (tui_source_window_base::refill)
8980 (tui_source_window_base::do_scroll_horizontal)
8981 (tui_source_window_base::set_is_exec_point_at)
8982 (tui_source_window_base::update_breakpoint_info)
8983 (tui_source_window_base::update_exec_info): Update.
8984 * tui/tui-source.c (tui_source_window::set_contents)
8985 (tui_source_window::showing_source_p)
8986 (tui_source_window::do_scroll_vertical)
8987 (tui_source_window::location_matches_p)
8988 (tui_source_window::line_is_displayed): Update.
8989 (tui_source_window::display_start_addr): New method.
8990 * tui/tui-disasm.c (tui_disasm_window::set_contents)
8991 (tui_disasm_window::do_scroll_vertical)
8992 (tui_disasm_window::location_matches_p): Update.
8993 (tui_disasm_window::display_start_addr): New method.
8994
01b1af32
TT
89952020-02-22 Tom Tromey <tom@tromey.com>
8996
8997 * NEWS: Add entry for gdb.register_window_type.
8998 * tui/tui-layout.h (window_factory): New typedef.
8999 (tui_register_window): Declare.
9000 * tui/tui-layout.c (saved_tui_windows): New global.
9001 (tui_apply_current_layout): Use it.
9002 (tui_register_window): New function.
9003 * python/python.c (do_start_initialization): Call
9004 gdbpy_initialize_tui.
9005 (python_GdbMethods): Add "register_window_type" function.
9006 * python/python-internal.h (gdbpy_register_tui_window)
9007 (gdbpy_initialize_tui): Declare.
9008 * python/py-tui.c: New file.
9009 * Makefile.in (SUBDIR_PYTHON_SRCS): Add py-tui.c.
9010
fc96d20b
TT
90112020-02-22 Tom Tromey <tom@tromey.com>
9012
9013 * tui/tui-io.c (do_tui_putc): Don't omit annotations.
9014
935c78c0
TT
90152020-02-22 Tom Tromey <tom@tromey.com>
9016
9017 * tui/tui-win.c (tui_set_win_focus_to): Move to tui-data.c.
9018 * tui/tui-data.h (tui_set_win_with_focus): Don't declare.
9019 * tui/tui-data.c (tui_set_win_with_focus): Remove.
9020 (tui_set_win_focus_to): Move from tui-win.c.
9021
0240c8f1
TT
90222020-02-22 Tom Tromey <tom@tromey.com>
9023
9024 * tui/tui-layout.c (make_standard_window, get_locator_window): New
9025 functions.
9026 (known_window_types): New global.
9027 (tui_get_window_by_name): Reimplement.
9028 (initialize_known_windows): New function.
9029 (validate_window_name): Rewrite.
9030 (_initialize_tui_layout): Call initialize_known_windows.
9031
fdb01f0c
TT
90322020-02-22 Tom Tromey <tom@tromey.com>
9033
9034 * tui/tui.h (enum tui_win_type) <LOCATOR_WIN, DATA_ITEM_WIN>:
9035 Remove constants.
9036 * tui/tui-winsource.h (struct tui_source_window_base)
9037 <tui_source_window_base>: Remove parameter.
9038 * tui/tui-winsource.c
9039 (tui_source_window_base::tui_source_window_base): Remove
9040 parameter.
9041 (tui_source_window_base::refill): Update.
9042 * tui/tui-stack.h (struct tui_locator_window)
9043 <tui_locator_window>: Update.
9044 * tui/tui-source.h (struct tui_source_window) <tui_source_window>:
9045 Default the constructor.
9046 * tui/tui-regs.h (struct tui_data_item_window)
9047 <tui_data_item_window>: Default the constructor.
9048 (struct tui_data_window) <tui_data_window>: Likewise.
9049 * tui/tui-disasm.h (struct tui_disasm_window) <tui_disasm_window>:
9050 Default the constructor.
9051 * tui/tui-data.h (struct tui_gen_win_info) <tui_gen_win_info>:
9052 Default the constructor.
9053 <type>: Remove.
9054 (struct tui_win_info) <tui_win_info>: Default the constructor.
9055 * tui/tui-data.c (tui_win_info::tui_win_info): Remove.
9056 * tui/tui-command.h (struct tui_cmd_window) <tui_cmd_window>:
9057 Default the constructor.
9058
865a5aec
TT
90592020-02-22 Tom Tromey <tom@tromey.com>
9060
9061 * tui/tui-wingeneral.h (tui_make_all_invisible): Don't declare.
9062 * tui/tui-wingeneral.c (tui_make_all_invisible): Remove.
9063 * tui/tui-win.c (tui_resize_all): Don't call
9064 tui_delete_invisible_windows.
9065 * tui/tui-layout.c (tui_apply_current_layout): Delete windows when
9066 done.
9067 (tui_set_layout): Update.
9068 (tui_add_win_to_layout): Don't call tui_delete_invisible_windows.
9069 * tui/tui-data.h (tui_delete_invisible_windows): Don't declare.
9070 * tui/tui-data.c (tui_delete_invisible_windows): Remove.
9071
e098d18c
TT
90722020-02-22 Tom Tromey <tom@tromey.com>
9073
9074 * tui/tui-win.c (tui_partial_win_by_name): Handle ambiguity
9075 correctly.
9076
eb9c8874
TT
90772020-02-22 Tom Tromey <tom@tromey.com>
9078
9079 * tui/tui-data.c (tui_next_win, tui_prev_win): Reimplement.
9080
7eed1a8e
TT
90812020-02-22 Tom Tromey <tom@tromey.com>
9082
9083 * tui/tui-winsource.h (struct tui_source_window_iterator)
9084 <inner_iterator>: New etytypedef.
9085 <tui_source_window_iterator>: Take "end" parameter.
9086 <tui_source_window_iterator>: Take iterator.
9087 <operator*, advance>: Update.
9088 <m_iter>: Change type.
9089 <m_end>: New field.
9090 (struct tui_source_windows) <begin, end>: Update.
9091 * tui/tui-layout.c (tui_windows): New global.
9092 (tui_apply_current_layout): Clear tui_windows.
9093 (tui_layout_window::apply): Update tui_windows.
9094 * tui/tui-data.h (tui_windows): Declare.
9095 (all_tui_windows): Now inline function.
9096 (class tui_window_iterator, struct all_tui_windows): Remove.
9097
7c043ba6
TT
90982020-02-22 Tom Tromey <tom@tromey.com>
9099
9100 PR tui/17850:
9101 * tui/tui-win.c (tui_gen_win_info::max_width): New method.
9102 * tui/tui-layout.h (class tui_layout_base) <get_sizes>: Add
9103 "height" argument.
9104 (class tui_layout_window) <get_sizes>: Likewise.
9105 (class tui_layout_split) <tui_layout_split>: Add "vertical"
9106 argument.
9107 <get_sizes>: Add "height" argument.
9108 <m_vertical>: New field.
9109 * tui/tui-layout.c (tui_layout_split::clone): Update.
9110 (tui_layout_split::get_sizes): Add "height" argument.
9111 (tui_layout_split::adjust_size, tui_layout_split::apply): Update.
9112 (tui_new_layout_command): Parse "-horizontal".
9113 (_initialize_tui_layout): Update help string.
9114 (tui_layout_split::specification): Add "-horizontal" when needed.
9115 * tui/tui-layout.c (tui_layout_window::get_sizes): Add "height"
9116 argument.
9117 * tui/tui-data.h (struct tui_gen_win_info) <max_width, min_width>:
9118 New methods.
9119
6bc56648
TT
91202020-02-22 Tom Tromey <tom@tromey.com>
9121
9122 * tui/tui-layout.h (enum tui_adjust_result): New.
9123 (class tui_layout_base) <adjust_size>: Return tui_adjust_result.
9124 (class tui_layout_window) <adjust_size>: Return
9125 tui_adjust_result. Rewrite.
9126 (class tui_layout_split) <adjust_size>: Return tui_adjust_result.
9127 * tui/tui-layout.c (tui_layout_split::adjust_size): Update.
9128
c22fef7e
TT
91292020-02-22 Tom Tromey <tom@tromey.com>
9130
9131 * tui/tui-layout.h (class tui_layout_split) <add_split>: Change
9132 parameter and return types.
9133 (class tui_layout_base) <specification>: Add "depth".
9134 (class tui_layout_window) <specification>: Add "depth".
9135 (class tui_layout_split) <specification>: Add "depth".
9136 * tui/tui-layout.c (tui_layout_split::add_split): Change parameter
9137 and return types.
9138 (tui_new_layout_command): Parse sub-layouts.
9139 (_initialize_tui_layout): Update help string.
9140 (tui_layout_window::specification): Add "depth".
9141 (add_layout_command): Update.
9142
ee325b61
TT
91432020-02-22 Tom Tromey <tom@tromey.com>
9144
9145 * NEWS: Add "tui new-layout" item.
9146 * tui/tui-layout.c (add_layout_command): Return cmd_list_element.
9147 Add new-layout command to help text.
9148 (validate_window_name): New function.
9149 (tui_new_layout_command): New function.
9150 (_initialize_tui_layout): Register "new-layout".
9151 (tui_layout_window::specification): New method.
9152 (tui_layout_window::specification): New method.
9153 * tui/tui-layout.h (class tui_layout_base) <specification>: New
9154 method.
9155 (class tui_layout_window) <specification>: New method.
9156 (class tui_layout_split) <specification>: New method.
9157
416eb92d
TT
91582020-02-22 Tom Tromey <tom@tromey.com>
9159
9160 * tui/tui.c (tui_enable): Call tui_set_initial_layout.
9161 * tui/tui-win.c (window_name_completer): Update comment.
9162 * tui/tui-layout.h (class tui_layout_base) <replace_window>:
9163 Declare method.
9164 (class tui_layout_window) <replace_window>: Likewise.
9165 (class tui_layout_split) <replace_window>: Likewise.
9166 (tui_set_layout): Don't declare.
9167 (tui_set_initial_layout): Declare function.
9168 * tui/tui-layout.c (layouts, applied_skeleton, src_regs_layout)
9169 (asm_regs_layout): New globals.
9170 (tui_current_layout, show_layout): Remove.
9171 (tui_set_layout, tui_add_win_to_layout): Rewrite.
9172 (find_layout, tui_apply_layout): New function.
9173 (layout_completer): Remove.
9174 (tui_next_layout): Reimplement.
9175 (tui_next_layout_command): New function.
9176 (tui_set_initial_layout, tui_prev_layout_command): New functions.
9177 (tui_regs_layout): Reimplement.
9178 (tui_regs_layout_command): New function.
9179 (extract_display_start_addr): Rewrite.
9180 (next_layout, prev_layout): Remove.
9181 (tui_layout_window::replace_window): New method.
9182 (tui_layout_split::replace_window): New method.
9183 (destroy_layout): New function.
9184 (layout_list): New global.
9185 (add_layout_command): New function.
9186 (initialize_layouts): Update.
9187 (tui_layout_command): New function.
9188 (_initialize_tui_layout): Install "layout" commands.
9189 * tui/tui-data.h (enum tui_layout_type): Remove.
9190 (tui_current_layout): Don't declare.
9191
0dbc2fc7
TT
91922020-02-22 Tom Tromey <tom@tromey.com>
9193
9194 * tui/tui-regs.c (tui_reg_layout): Remove.
9195 (tui_reg_command): Use tui_regs_layout.
9196 * tui/tui-layout.h (tui_reg_command): Declare.
9197 * tui/tui-layout.c (tui_reg_command): New function.
9198
5afe342e
TT
91992020-02-22 Tom Tromey <tom@tromey.com>
9200
9201 * tui/tui.c (tui_rl_delete_other_windows): Call
9202 tui_remove_some_windows.
9203 * tui/tui-layout.h (class tui_layout_base) <remove_windows>:
9204 Declare method.
9205 (class tui_layout_window) <remove_windows>: New method.
9206 (class tui_layout_split) <remove_windows>: Declare.
9207 (tui_remove_some_windows): Declare.
9208 * tui/tui-layout.c (tui_remove_some_windows): New function.
9209 (tui_layout_split::remove_windows): New method.
9210
427326a8
TT
92112020-02-22 Tom Tromey <tom@tromey.com>
9212
9213 * tui/tui.c (tui_rl_change_windows): Call tui_next_layout.
9214 * tui/tui-layout.h (tui_next_layout): Declare.
9215 * tui/tui-layout.c (tui_next_layout): New function.
9216
3fe12b6d
TT
92172020-02-22 Tom Tromey <tom@tromey.com>
9218
9219 * tui/tui-regs.c (tui_data_window::display_registers_from): Use
9220 correct coordinates.
9221
59b8b5d2
TT
92222020-02-22 Tom Tromey <tom@tromey.com>
9223
9224 * tui/tui-layout.h (tui_add_win_to_layout): Add comment.
9225 * tui/tui-layout.c (tui_add_win_to_layout): Add assert. Remove
9226 DATA_WIN case.
9227
2a3d458b
TT
92282020-02-22 Tom Tromey <tom@tromey.com>
9229
9230 * tui/tui-disasm.c (tui_get_low_disassembly_address): Use
9231 TUI_DISASM_WIN, not tui_win_list.
9232
3f0cbb04
TT
92332020-02-22 Tom Tromey <tom@tromey.com>
9234
9235 * valprint.c (generic_val_print_enum_1)
9236 (val_print_type_code_flags): Style member names.
9237 * rust-lang.c (val_print_struct, rust_print_enum)
9238 (rust_print_struct_def, rust_internal_print_type): Style member
9239 names.
9240 * p-valprint.c (pascal_object_print_value_fields): Style member
9241 names. Only call fprintf_symbol_filtered for static members.
9242 * m2-typeprint.c (m2_record_fields, m2_enum): Style member names.
9243 * f-valprint.c (f_val_print): Style member names.
9244 * f-typeprint.c (f_type_print_base): Style member names.
9245 * cp-valprint.c (cp_print_value_fields): Style member names. Only
9246 call fprintf_symbol_filtered for static members.
9247 (cp_print_class_member): Style member names.
9248 * c-typeprint.c (c_print_type_1, c_type_print_base_1): Style
9249 member names.
9250 * ada-valprint.c (ada_print_scalar): Style enum names.
9251 (ada_val_print_enum): Likewise.
9252 * ada-typeprint.c (print_enum_type): Style enum names.
9253
d4d947ae
TT
92542020-02-21 Tom Tromey <tom@tromey.com>
9255
9256 * psympriv.h (struct partial_symtab): Update comment.
9257
e94e944b
TT
92582020-02-21 Tom Tromey <tromey@adacore.com>
9259
9260 * mips-tdep.h (mips_pc_is_mips16, mips_pc_is_micromips): Parameter
9261 type is CORE_ADDR.
9262
1eb73179
TV
92632020-02-21 Tom de Vries <tdevries@suse.de>
9264
9265 PR gdb/25534
9266 * psymtab.c (partial_symtab::read_dependencies): Don't read dependency
9267 if dependencies[i]->user != NULL.
9268
4f180d53
AT
92692020-02-21 Ali Tamur <tamur@google.com>
9270
9271 * dwarf2/read.c (dwarf2_name): Add null check.
9272
22b6cd70
TT
92732020-02-20 Tom Tromey <tom@tromey.com>
9274
9275 * dwarf2/read.c (dwarf2_find_containing_comp_unit): Use ">", not
9276 ">=", in binary search.
9277 (dwarf2_find_containing_comp_unit): New overload.
9278 (run_test): New self-test.
9279 (_initialize_dwarf2_read): Register new test.
9280
bd0cf5a6
NC
92812020-02-20 Nelson Chu <nelson.chu@sifive.com>
9282
9283 * riscv-tdep.c: Updated since the DECLARE_CSR is changed.
9284 * riscv-tdep.h: Likewise.
9285 * features/riscv/rebuild-csr-xml.sh: Generate the 64bit-csr.xml without
9286 rv32-only CSR.
9287 * features/riscv/64bit-csr.xml: Regenerated.
9288
3f702acd
SDJ
92892020-02-20 Sergio Durigan Junior <sergiodj@redhat.com>
9290 Tom Tromey <tom@tromey.com>
9291
9292 * utils.c (fputs_maybe_filtered): Call 'stream->puts' instead
9293 of 'fputc_unfiltered'.
9294 (putchar_unfiltered): Call 'fputc_unfiltered'.
9295 (fputc_unfiltered): Call 'fputs_unfiltered'.
9296
d13c7322
AB
92972020-02-20 Andrew Burgess <andrew.burgess@embecosm.com>
9298
9299 * config.in: Regenerate.
9300 * configure: Regenerate.
9301 * configure.ac: Add --with-python-libdir option.
9302 * main.c: Use WITH_PYTHON_LIBDIR.
9303
869d8950
TT
93042020-02-19 Tom Tromey <tom@tromey.com>
9305
9306 * symtab.c (general_symbol_info::compute_and_set_names): Use
9307 obstack_strndup. Simplify call to symbol_set_demangled_name.
9308
298e9637
SM
93092020-02-19 Simon Marchi <simon.marchi@efficios.com>
9310
9311 * dwarf2/read.c (allocate_signatured_type_table,
9312 allocate_dwo_unit_table, allocate_type_unit_groups_table,
9313 allocate_dwo_file_hash_table, allocate_dwp_loaded_cutus_table):
9314 Remove objfile parameter, update all callers.
9315
08410482
DE
93162020-02-19 Doug Evans <dje@google.com>
9317
9318 PR rust/25535
9319 * rust-lang.c (rust_print_enum): Apply embedded_offset to
9320 rust_enum_variant calculation.
9321
dfdeeca1
TT
93222020-02-19 Tom Tromey <tromey@adacore.com>
9323
9324 * mips-tdep.h (mips_pc_is_mips): Parameter type is CORE_ADDR.
9325
2ef5453b
TT
93262020-02-19 Tom Tromey <tromey@adacore.com>
9327
9328 * ada-lang.c (cache_symbol): Use obstack_strdup.
9329
9f1528a1
AB
93302020-02-19 Andrew Burgess <andrew.burgess@embecosm.com>
9331
9332 * configure: Regenerate.
9333
d3c22fa8
TT
93342020-02-19 Tom Tromey <tromey@adacore.com>
9335
9336 * python/python.c (do_start_initialization): Use XNEWVEC. Remove
9337 NULL check.
9338
bf84f706
MR
93392020-02-19 Maciej W. Rozycki <macro@wdc.com>
9340
9341 * NEWS: Mention RISC-V GNU/Linux GDBserver support.
9342
d1c9b20f
AB
93432020-02-19 Andrew Burgess <andrew.burgess@embecosm.com>
9344
9345 * arch/riscv.c (struct riscv_gdbarch_features_hasher): Only define
9346 if GDBSERVER is not defined.
9347 (riscv_tdesc_cache): Likewise, also store const target_desc.
9348 (STATIC_IN_GDB): Define.
9349 (riscv_create_target_description): Update declaration with
9350 STATIC_IN_GDB.
9351 (riscv_lookup_target_description): New function, only define if
9352 GDBSERVER is not defined.
9353 * arch/riscv.h (riscv_create_target_description): Declare only
9354 when GDBSERVER is defined.
9355 (riscv_lookup_target_description): New declaration when GDBSERVER
9356 is not defined.
9357 * nat/riscv-linux-tdesc.c (riscv_linux_read_description): Rename to...
9358 (riscv_linux_read_features): ...this, and return
9359 riscv_gdbarch_features instead of target_desc.
9360 * nat/riscv-linux-tdesc.h: Include 'arch/riscv.h'.
9361 (riscv_linux_read_description): Rename to...
9362 (riscv_linux_read_features): ...this.
9363 * riscv-linux-nat.c (riscv_linux_nat_target::read_description):
9364 Update to use riscv_gdbarch_features and
9365 riscv_lookup_target_description.
9366 * riscv-tdep.c (riscv_find_default_target_description): Use
9367 riscv_lookup_target_description instead of
9368 riscv_create_target_description.
9369
373d7ac0
SM
93702020-02-18 Simon Marchi <simon.marchi@efficios.com>
9371
9372 * valprint.c (generic_val_print_enum_1): When printing a flag
9373 enum with value 0 and there is no enumerator with value 0, print
9374 just "0" instead of "(unknown: 0x0)".
9375
b29a2df0
SM
93762020-02-18 Simon Marchi <simon.marchi@efficios.com>
9377
9378 * valprint.c (generic_val_print_enum_1): Print unknown part of
9379 flag enum in hex.
9380
6740f0cc
SM
93812020-02-18 Simon Marchi <simon.marchi@efficios.com>
9382
9383 * dwarf2/read.c (update_enumeration_type_from_children): Allow
9384 flag enums to contain duplicate enumerators.
9385 * valprint.c (generic_val_print_enum_1): Update comment.
9386
edd45eb0
SM
93872020-02-18 Simon Marchi <simon.marchi@efficios.com>
9388
9389 * dwarf2/read.c: Include "count-one-bits.h".
9390 (update_enumeration_type_from_children): If an enumerator has
9391 multiple bits set, don't treat the enumeration as a "flag enum".
9392 * valprint.c (generic_val_print_enum_1): Assert that enumerators
9393 of flag enums have 0 or 1 bit set.
9394
6d0cf446
BE
93952020-02-18 Bernd Edlinger <bernd.edlinger@hotmail.de>
9396
9397 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Use an explicit
9398 conversion.
9399 * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise.
9400 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn): Likewise.
9401 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
9402 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Likewise.
9403 * s390-tdep.c (s390_displaced_step_copy_insn): Likewise.
9404
7001c1b7
SM
94052020-02-18 Simon Marchi <simon.marchi@efficios.com>
9406
9407 * MAINTAINERS: Change palmer@sifive.com to palmer@dabbelt.com.
9408
fdb61c6c
SM
94092020-02-14 Simon Marchi <simon.marchi@efficios.com>
9410
9411 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Use
9412 displaced_step_closure_up.
9413 * aarch64-tdep.h (aarch64_displaced_step_copy_insn): Likewise.
9414 (struct displaced_step_closure_up):
9415 * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise.
9416 * amd64-tdep.h (amd64_displaced_step_copy_insn): Likewise.
9417 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn):
9418 Likewise.
9419 * gdbarch.sh (displaced_step_copy_insn): Likewise.
9420 * gdbarch.c, gdbarch.h: Re-generate.
9421 * i386-linux-tdep.c (i386_linux_displaced_step_copy_insn): Use
9422 displaced_step_closure_up.
9423 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
9424 * i386-tdep.h (i386_displaced_step_copy_insn): Likewise.
9425 * infrun.h (displaced_step_closure_up): New type alias.
9426 (struct displaced_step_inferior_state) <step_closure>: Change
9427 type to displaced_step_closure_up.
9428 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Use
9429 displaced_step_closure_up.
9430 * s390-tdep.c (s390_displaced_step_copy_insn): Likewise.
9431
a4a38eb4
TT
94322020-02-14 Tom Tromey <tom@tromey.com>
9433
9434 * minidebug.c (gnu_debug_key): New global.
9435 (find_separate_debug_file_in_section): Use it.
9436
e8217e61
SM
94372020-02-14 Simon Marchi <simon.marchi@efficios.com>
9438
9439 * gdbarch.sh (displaced_step_copy_insn): Change return type to an
9440 std::unique_ptr.
9441 * gdbarch.c: Re-generate.
9442 * gdbarch.h: Re-generate.
9443 * infrun.c (displaced_step_prepare_throw): Adjust to std::unique_ptr
9444 change.
9445 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Change return
9446 type to std::unique_ptr.
9447 * aarch64-tdep.h (aarch64_displaced_step_copy_insn): Likewise.
9448 * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise.
9449 * amd64-tdep.h (amd64_displaced_step_copy_insn): Likewise.
9450 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn): Likewise.
9451 * i386-linux-tdep.c (i386_linux_displaced_step_copy_insn): Likewise.
9452 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
9453 * i386-tdep.h (i386_displaced_step_copy_insn): Likewise.
9454 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Likewise.
9455 * s390-tdep.c (s390_displaced_step_copy_insn): Likewise.
9456
d8d83535
SM
94572020-02-14 Simon Marchi <simon.marchi@efficios.com>
9458
9459 * infrun.c (get_displaced_step_closure_by_addr): Adjust to
9460 std::unique_ptr.
9461 (displaced_step_clear): Rename to...
9462 (displaced_step_reset): ... this. Just call displaced->reset ().
9463 (displaced_step_clear_cleanup): Rename to...
9464 (displaced_step_reset_cleanup): ... this.
9465 (displaced_step_prepare_throw): Adjust to std::unique_ptr.
9466 (displaced_step_fixup): Likewise.
9467 (resume_1): Likewise.
9468 (handle_inferior_event): Restore child's memory before calling
9469 displaced_step_fixup on the parent.
9470 * infrun.h (displaced_step_inferior_state) <reset>: Adjust
9471 to std::unique_ptr.
9472 <step_closure>: Change type to std::unique_ptr.
9473
5f661e03
SM
94742020-02-14 Simon Marchi <simon.marchi@efficios.com>
9475
9476 * arm-tdep.c: Include count-one-bits.h.
9477 (cleanup_block_store_pc): Use count_one_bits.
9478 (cleanup_block_load_pc): Use count_one_bits.
9479 (arm_copy_block_xfer): Use count_one_bits.
9480 (thumb2_copy_block_xfer): Use count_one_bits.
9481 (thumb_copy_pop_pc_16bit): Use count_one_bits.
9482 * arch/arm-get-next-pcs.c: Include count-one-bits.h.
9483 (thumb_get_next_pcs_raw): Use count_one_bits.
9484 (arm_get_next_pcs_raw): Use count_one_bits_l.
9485 * arch/arm.c (bitcount): Remove.
9486 * arch/arm.h (bitcount): Remove.
9487
8084e579
TT
94882020-02-14 Tom Tromey <tromey@adacore.com>
9489
9490 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first):
9491 Update.
9492 * dwarf2/loc.h (call_site_find_chain): Return unique_xmalloc_ptr.
9493 * dwarf2/loc.c (call_site_find_chain_1): Return
9494 unique_xmalloc_ptr.
9495 (call_site_find_chain): Likewise.
9496
258bf0ee
RB
94972020-02-14 Richard Biener <rguenther@suse.de>
9498
9499 * dwarf2/read.c (lnp_state_machine::handle_special_opcode): Apply CSE
9500 on expression with division operators.
9501
f98a8458
AKS
95022020-02-13 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
9503
9504 * MAINTAINERS (Write After Approval): Adding myself.
9505
d1437c0e
TT
95062020-02-12 Tom Tromey <tom@tromey.com>
9507
9508 * event-loop.c (event_data, gdb_event, event_handler_func):
9509 Remove.
9510
3d4560f7
TT
95112020-02-12 Tom Tromey <tom@tromey.com>
9512
9513 * dwarf2/frame.c (dwarf2_frame_bfd_data): New global.
9514 (dwarf2_frame_objfile_data): Add comment.
9515 (find_comp_unit, set_comp_unit): New functions.
9516 (dwarf2_frame_find_fde): Use find_comp_unit.
9517 (dwarf2_build_frame_info): Use set_comp_unit.
9518
21982304
TT
95192020-02-12 Tom Tromey <tom@tromey.com>
9520
9521 * dwarf2/frame.c (struct comp_unit) <objfile>: Remove.
9522 (comp_unit): Don't initialize objfile.
9523 (execute_cfa_program): Add text_offset parameter.
9524 (execute_cfa_program_test, dwarf2_fetch_cfa_info)
9525 (dwarf2_frame_cache): Update.
9526 (dwarf2_build_frame_info): Don't set "objfile" member.
9527
4debb237
TT
95282020-02-12 Tom Tromey <tom@tromey.com>
9529
9530 * dwarf2/frame.c (decode_frame_entry_1): Add gdbarch parameter.
9531 (decode_frame_entry): Likewise.
9532 (dwarf2_build_frame_info): Update.
9533
0d404d44
TT
95342020-02-12 Tom Tromey <tom@tromey.com>
9535
9536 * dwarf2/frame.c (struct comp_unit) <obstack>: New member.
9537 (decode_frame_entry_1): Use the comp_unit obstack.
9538
a7a3ae5c
TT
95392020-02-12 Tom Tromey <tom@tromey.com>
9540
9541 * dwarf2/frame.c (struct comp_unit): Add initializers and
9542 constructor.
9543 (dwarf2_frame_objfile_data): Store a comp_unit.
9544 (dwarf2_frame_find_fde): Update.
9545 (dwarf2_build_frame_info): Use "new".
9546
a9d65418
TT
95472020-02-12 Tom Tromey <tom@tromey.com>
9548
9549 * dwarf2/frame.c (struct dwarf2_fde_table): Remove.
9550 (dwarf2_fde_table): Typedef for std::vector.
9551 (dwarf2_frame_objfile_data): Remove the deleter. Now static.
9552 (dwarf2_frame_find_fde, add_fde, decode_frame_entry_1)
9553 (decode_frame_entry): Update.
9554 (dwarf2_build_frame_info): Use "new".
9555
7559c217
CB
95562020-02-12 Christian Biesinger <cbiesinger@google.com>
9557
9558 * arm-tdep.c (arm_gdbarch_init): Update.
9559 * arm-tdep.h (struct gdbarch_tdep) <have_fpa_registers,
9560 have_wmmx_registers, have_vfp_pseudos, have_neon_pseudos,
9561 have_neon, is_m>: Change to bool.
9562
aeefc73c
CB
95632020-02-12 Christian Biesinger <cbiesinger@google.com>
9564
9565 * arm-tdep.c (arm_dump_tdep): Print more fields of tdep.
9566
d27b8e5f
TT
95672020-02-12 Tom Tromey <tom@tromey.com>
9568
9569 * dwarf2/loc.c (struct dwarf_expr_baton): Remove.
9570
cd5900f3
HD
95712020-02-12 Hannes Domani <ssbssa@yahoo.de>
9572
9573 * windows-tdep.c (struct windows_gdbarch_data): Add tib_ptr_type.
9574 (windows_get_tlb_type): Use windows_gdbarch_data->tib_ptr_type.
9575
f056b22b
TT
95762020-02-11 Tom Tromey <tom@tromey.com>
9577
9578 * psymtab.h: Update comment.
9579
f92ff6b5
TT
95802020-02-11 Tom Tromey <tom@tromey.com>
9581
9582 * gdb_obstack.h (struct auto_obstack): Use
9583 DISABLE_COPY_AND_ASSIGN.
9584
3fd6912b
TT
95852020-02-11 Tom Tromey <tom@tromey.com>
9586
9587 * dwarf2/frame.h (struct objfile): Don't forward declare.
9588
69ed9b74
CB
95892020-02-11 Christian Biesinger <cbiesinger@google.com>
9590
9591 * cris-tdep.c (cris_supply_gregset): Change signature to match
9592 what struct regset expects.
9593 (cris_regset): New struct.
9594 (fetch_core_registers): Remove.
9595 (cris_iterate_over_regset_sections): New function.
9596 (_initialize_cris_tdep): Don't call deprecated_add_core_fns.
9597 (cris_gdbarch_init): Call set_gdbarch_iterate_over_regset_sections.
9598
bda874f6
CB
95992020-02-11 Christian Biesinger <cbiesinger@google.com>
9600
9601 * arch/arm.h (enum gdb_regnum): Add comment for the FP0..7
9602 registers.
9603
754e1564
CB
96042020-02-11 Christian Biesinger <cbiesinger@google.com>
9605
9606 * arm-tdep.c (arm_dump_tdep): Add \n in fprintf.
9607
8ddd8e0e
SM
96082020-02-11 Simon Marchi <simon.marchi@efficios.com>
9609
9610 * configure: Re-generate.
9611
898e7f60
SM
96122020-02-11 Simon Marchi <simon.marchi@efficios.com>
9613
9614 * configure: Re-generate.
9615
58df732b
SM
96162020-02-11 Simon Marchi <simon.marchi@efficios.com>
9617
9618 * acinclude: Update warning.m4 path.
9619 * warning.m4: Move to gdbsupport.
9620
da5bd37e
TT
96212020-02-11 Tom Tromey <tromey@adacore.com>
9622
9623 * remote.c (remote_console_output): Update.
9624 * printcmd.c (printf_command): Update.
9625 * event-loop.c (gdb_wait_for_event): Update.
9626 * linux-nat.c (sigchld_handler): Update.
9627 * remote-sim.c (gdb_os_write_stdout): Update.
9628 (gdb_os_flush_stdout): Update.
9629 (gdb_os_flush_stderr): Update.
9630 (gdb_os_write_stderr): Update.
9631 * exceptions.c (print_exception): Update.
9632 * remote-fileio.c (remote_fileio_func_read): Update.
9633 (remote_fileio_func_write): Update.
9634 * tui/tui.c (tui_enable): Update.
9635 * tui/tui-interp.c (tui_interp::init): Update.
9636 * utils.c (init_page_info): Update.
9637 (putchar_unfiltered, fputc_unfiltered): Update.
9638 (gdb_flush): Update.
9639 (emit_style_escape): Update.
9640 (flush_wrap_buffer, fputs_maybe_filtered): Update.
9641 * ui-file.c (ui_file_isatty, ui_file_read, ui_file_write)
9642 (ui_file_write_async_safe, ui_file_flush, ui_file_puts): Remove.
9643 (stderr_file::write): Update.
9644 (stderr_file::puts): Update.
9645 * ui-file.h (ui_file_isatty, ui_file_write)
9646 (ui_file_write_async_safe, ui_file_read, ui_file_flush)
9647 (ui_file_puts): Don't declare.
9648
85f0dd3c
TV
96492020-02-10 Tom de Vries <tdevries@suse.de>
9650
9651 * dwarf2/read.c (process_psymtab_comp_unit_reader): Cast concat NULL
9652 sentinel to char *.
9653
2e927613
TV
96542020-02-09 Tom de Vries <tdevries@suse.de>
9655
9656 * dwarf2read.c (process_psymtab_comp_unit_reader): Append CU offset to
9657 filename if it matches "<artificial>".
9658
6bafc845
HD
96592020-02-09 Hannes Domani <ssbssa@yahoo.de>
9660
9661 * windows-tdep.c (struct enum_value_name): New struct.
9662 (create_enum): New function.
9663 (windows_get_siginfo_type): Create and use enum types.
9664
7928d571
HD
96652020-02-09 Hannes Domani <ssbssa@yahoo.de>
9666
9667 * NEWS: Mention $_siginfo support for Windows.
9668 * windows-nat.c (handle_exception): Set siginfo_er.
9669 (windows_nat_target::mourn_inferior): Reset siginfo_er.
9670 (windows_xfer_siginfo): New function.
9671 (windows_nat_target::xfer_partial): Call windows_xfer_siginfo.
9672 * windows-tdep.c (struct windows_gdbarch_data): New struct.
9673 (init_windows_gdbarch_data): New function.
9674 (get_windows_gdbarch_data): New function.
9675 (windows_get_siginfo_type): New function.
9676 (windows_init_abi): Register windows_get_siginfo_type.
9677 (_initialize_windows_tdep): Register init_windows_gdbarch_data.
9678
6751ebae
TT
96792020-02-08 Tom Tromey <tom@tromey.com>
9680
9681 * dwarf2/read.c (class cutu_reader) <cutu_reader,
9682 init_tu_and_read_dwo_dies>: Remove "keep" parameter.
9683 <keep>: Declare method.
9684 <m_keep>: Remove member.
9685 <~cutu_reader>: Remove.
9686 (cutu_reader::init_tu_and_read_dwo_dies): Update.
9687 (cutu_reader::cutu_reader): Update.
9688 (cutu_reader::keep): Rename from ~cutu_reader.
9689 (process_psymtab_comp_unit, build_type_psymtabs_1)
9690 (process_skeletonless_type_unit, load_partial_comp_unit)
9691 (load_full_comp_unit, dwarf2_read_addr_index)
9692 (read_signatured_type): Update.
9693
135f5437
TT
96942020-02-08 Tom Tromey <tom@tromey.com>
9695
9696 * dwarf2/read.c (process_psymtab_comp_unit_reader): Remove
9697 "want_partial_unit" parameter.
9698 (process_psymtab_comp_unit): Change want_partial_unit to bool.
9699 Inline check for DW_TAG_partial_unit.
9700 (dwarf2_build_psymtabs_hard, scan_partial_symbols): Update.
9701
9f66ff1c
TT
97022020-02-08 Tom Tromey <tom@tromey.com>
9703
9704 * dwarf2/read.c (read_n_bytes, read_direct_string): Move to
9705 read.c.
9706 * dwarf2/leb.h (read_n_bytes, read_direct_string): Move from
9707 read.c.
9708
c8a7a66f
TT
97092020-02-08 Tom Tromey <tom@tromey.com>
9710
9711 * dwarf2/read.c (read_address): Move to comp-unit.c.
9712 (dwarf2_rnglists_process, dwarf2_ranges_process)
9713 (read_attribute_value, dwarf_decode_lines_1)
9714 (var_decode_location, decode_locdesc): Update.
9715 * dwarf2/comp-unit.c (comp_unit_head::read_address): Move from
9716 read.c. Remove "cu" parameter.
9717 * dwarf2/comp-unit.h (struct comp_unit_head) <read_address>: New
9718 method.
9719
8266302d
TT
97202020-02-08 Tom Tromey <tom@tromey.com>
9721
9722 * dwarf2/read.c (read_attribute_value, read_indirect_string)
9723 (read_indirect_line_string): Update.
9724 * dwarf2/comp-unit.c (read_offset): Remove.
9725 (read_comp_unit_head): Update.
9726 * dwarf2/comp-unit.h (struct comp_unit_head) <read_offset>: New
9727 method.
9728 (read_offset): Don't declare.
9729
4057dfde
TT
97302020-02-08 Tom Tromey <tom@tromey.com>
9731
9732 * Makefile.in (COMMON_SFILES): Add dwarf2/comp-unit.c.
9733 * dwarf2/read.c (struct comp_unit_head): Move to
9734 dwarf2/comp-unit.h.
9735 (enum class rcuh_kind): Move to comp-unit.h.
9736 (get_cu_length, offset_in_cu_p): Now methods on comp_unit_head.
9737 (read_comp_unit_head, error_check_comp_unit_head)
9738 (read_and_check_comp_unit_head): Move to comp-unit.c.
9739 (read_offset, dwarf_unit_type_name): Likewise.
9740 (create_debug_type_hash_table, read_cutu_die_from_dwo)
9741 (cutu_reader::cutu_reader, read_call_site_scope)
9742 (find_partial_die, follow_die_offset): Update.
9743 * dwarf2/comp-unit.h: New file, from dwarf2read.c.
9744
24aa364d
TT
97452020-02-08 Tom Tromey <tom@tromey.com>
9746
9747 * dwarf2/read.c (read_offset_1): Move to leb.c.
9748 (read_abbrev_offset, read_offset, dwarf_decode_line_header)
9749 (dwarf_decode_macro_bytes): Update.
9750 * dwarf2/leb.c (read_offset): Rename; move from read.c.
9751 * dwarf2/leb.h (read_offset): Declare.
9752
2c7d5afc
TT
97532020-02-08 Tom Tromey <tom@tromey.com>
9754
9755 * dwarf2/read.c (dwarf2_section_size): Remove.
9756 (error_check_comp_unit_head, dwarf2_symbol_mark_computed):
9757 Update.
9758 * dwarf2/section.h (struct dwarf2_section_info) <get_size>: New method.
9759
4075cb26
TT
97602020-02-08 Tom Tromey <tom@tromey.com>
9761
9762 * dwarf2/read.c (read_initial_length): Move to leb.c.
9763 * dwarf2/leb.h (read_initial_length): Declare.
9764 * dwarf2/leb.c (read_initial_length): Move from read.c. Add
9765 handle_nonstd parameter.
9766 * dwarf2/frame.c (read_initial_length): Remove.
9767 (decode_frame_entry_1): Update.
9768
09ba997f
TT
97692020-02-08 Tom Tromey <tom@tromey.com>
9770
9771 * dwarf2/loc.c (dwarf2_find_location_expression)
9772 (dwarf_evaluate_loc_desc::get_tls_address)
9773 (dwarf_evaluate_loc_desc::push_dwarf_reg_entry_value)
9774 (rw_pieced_value, dwarf2_evaluate_loc_desc_full)
9775 (dwarf2_locexpr_baton_eval, dwarf2_evaluate_property)
9776 (dwarf2_compile_property_to_c)
9777 (dwarf2_loc_desc_get_symbol_read_needs)
9778 (dwarf2_compile_expr_to_ax, locexpr_describe_location)
9779 (locexpr_tracepoint_var_ref, locexpr_generate_c_location)
9780 (loclist_describe_location, loclist_tracepoint_var_ref)
9781 (loclist_generate_c_location): Update.
9782 * compile/compile-loc2c.c (do_compile_dwarf_expr_to_c): Update.
9783 * dwarf2/loc.h (dwarf2_per_cu_objfile, dwarf2_per_cu_addr_size)
9784 (dwarf2_per_cu_ref_addr_size, dwarf2_per_cu_offset_size)
9785 (dwarf2_per_cu_text_offset, dwarf2_version): Don't declare.
9786 * dwarf2/read.c (dwarf2_per_cu_data::objfile)
9787 (dwarf2_per_cu_data::addr_size)
9788 (dwarf2_per_cu_data::ref_addr_size)
9789 (dwarf2_per_cu_data::text_offset)
9790 (dwarf2_per_cu_data::addr_type): Now methods.
9791 (per_cu_header_read_in): Make per_cu "const".
9792 (dwarf2_version): Remove.
9793 (dwarf2_per_cu_data::int_type): Now a method.
9794 (dwarf2_per_cu_data::_addr_sized_int_type): Likewise.
9795 (set_die_type, read_array_type, read_subrange_index_type)
9796 (read_tag_string_type, read_subrange_type): Update.
9797 * dwarf2/read.h (struct dwarf2_per_cu_data) <addr_size,
9798 offset_size, ref_addr_size, text_offset, addr_type, version,
9799 objfile, int_type, addr_sized_int_type>: Declare methods.
9800
96c738c0
TT
98012020-02-08 Tom Tromey <tom@tromey.com>
9802
9803 * dwarf2/read.h (struct dwarf2_per_cu_data) <imported_symtabs>:
9804 Move earlier.
9805
8fdd972c
TT
98062020-02-08 Tom Tromey <tom@tromey.com>
9807
9808 * dwarf2/read.h (dwarf_line_debug): Declare.
9809 * Makefile.in (COMMON_SFILES): Add dwarf2/line-header.c.
9810 * dwarf2/read.c: Move line_header code to new files.
9811 (dwarf_line_debug): No longer static.
9812 * dwarf2/line-header.c: New file.
9813 * dwarf2/line-header.h: New file.
9814
03075812
TT
98152020-02-08 Tom Tromey <tom@tromey.com>
9816
9817 * dwarf2/read.c (struct line_header) <file_full_name,
9818 file_file_name>: Return unique_xmalloc_ptr.
9819 (line_header::file_file_name): Update.
9820 (line_header::file_full_name): Update.
9821 (dw2_get_file_names_reader): Update.
9822 (macro_start_file): Update.
9823
bb822404
TT
98242020-02-08 Tom Tromey <tom@tromey.com>
9825
9826 * dwarf2/read.c (struct line_header) <file_full_name,
9827 file_file_name>: Declare methods.
9828 (dw2_get_file_names_reader): Update.
9829 (file_file_name): Now a method.
9830 (file_full_name): Likewise.
9831 (macro_start_file): Update.
9832
009b64fc
TT
98332020-02-08 Tom Tromey <tom@tromey.com>
9834
9835 * dwarf2/read.c (dwarf_always_disassemble)
9836 (show_dwarf_always_disassemble): Move to loc.c.
9837 (_initialize_dwarf2_read): Move "always-disassemble" registration
9838 to loc.c.
9839 * dwarf2/read.h (dwarf_always_disassemble): Don't declare.
9840 * dwarf2/loc.c (dwarf_always_disassemble): Move from read.c. Now
9841 static.
9842 (show_dwarf_always_disassemble): Move from read.c.
9843 (_initialize_dwarf2loc): Move always-disassemble from read.c.
9844
5895093f
TT
98452020-02-08 Tom Tromey <tom@tromey.com>
9846
9847 * dwarf2/read.c (~dwarf2_per_objfile): Update.
9848 (create_quick_file_names_table): Return htab_up.
9849 (dw2_get_file_names_reader, dw2_forget_cached_source_info):
9850 Update.
9851 * dwarf2/read.h (struct dwarf2_per_objfile)
9852 <quick_file_names_table>: Now htab_up.
9853
b3b32279
TT
98542020-02-08 Tom Tromey <tom@tromey.com>
9855
9856 * dwarf2/abbrev.c (abbrev_table::read): Simplify.
9857
1d33d811
TT
98582020-02-08 Tom Tromey <tom@tromey.com>
9859
9860 * dwarf2/abbrev.c (abbrev_table): Move constructor from header.
9861 Rewrite.
9862 (abbrev_table::add_abbrev, abbrev_table::lookup_abbrev): Rewrite.
9863 * dwarf2/abbrev.h (struct abbrev_info) <next>: Remove.
9864 (abbrev_table::abbrev_table): No longer inline.
9865 (ABBREV_HASH_SIZE): Remove.
9866 (abbrev_table::m_abbrevs): Now an htab_up.
9867
86de1d91
TT
98682020-02-08 Tom Tromey <tom@tromey.com>
9869
9870 * dwarf2/read.c (read_cutu_die_from_dwo): Update.
9871 (cutu_reader): Update.
9872 (build_type_psymtabs_1): Update.
9873 * dwarf2/abbrev.c (abbrev_table::read): Rename.
9874 (abbrev_table::alloc_abbrev): Update.
9875 * dwarf2/abbrev.h (abbrev_table_up): Move earlier.
9876 (abbrev_table::read): New static method, renamed from
9877 abbrev_table_read_table.
9878 (abbrev_table::alloc_abbrev)
9879 (abbrev_table::add_abbrev): Now private.
9880 (abbrev_table::abbrev_table): Now private.
9881 (abbrev_table::m_abbrev_obstack): Now private. Rename.
9882
0335378b
TT
98832020-02-08 Tom Tromey <tom@tromey.com>
9884
9885 * dwarf2/read.c (set_die_type, get_die_type_at_offset): Update.
9886 * dwarf2/read.h (struct dwarf2_per_objfile) <die_type_hash>: Now
9887 htab_up.
9888
48b490f2
TT
98892020-02-08 Tom Tromey <tom@tromey.com>
9890
9891 * dwarf2/read.c (struct dwp_file) <loaded_cus, loaded_tus>: Now
9892 htab_up.
9893 (lookup_dwo_unit_in_dwp): Update.
9894 (allocate_dwp_loaded_cutus_table): Return htab_up. Don't allocate
9895 on obstack.
9896
bc68fb19
TT
98972020-02-08 Tom Tromey <tom@tromey.com>
9898
9899 * dwarf2/read.c (allocate_dwo_file_hash_table): Don't allocate on
9900 obstack.
9901
d15acc42
TT
99022020-02-08 Tom Tromey <tom@tromey.com>
9903
9904 * dwarf2/read.c (~dwarf2_per_objfile): Don't delete
9905 line_header_hash.
9906 (handle_DW_AT_stmt_list): Update. Don't allocate on obstack.
9907 * dwarf2/read.h (struct dwarf2_per_objfile) <line_header_hash>:
9908 Change type to htab_up.
9909
eaa5fa8b
TT
99102020-02-08 Tom Tromey <tom@tromey.com>
9911
9912 * dwarf2/read.c (allocate_type_unit_groups_table): Return
9913 htab_up. Don't allocate on obstack.
9914 (get_type_unit_group, dwarf2_build_psymtabs_hard): Update.
9915 * dwarf2/read.h (struct dwarf2_per_objfile) <type_unit_groups>:
9916 Change type to htab_up.
9917
b0b6a987
TT
99182020-02-08 Tom Tromey <tom@tromey.com>
9919
9920 * dwarf2/read.h (struct dwarf2_per_objfile) <signatured_types>:
9921 Change type to htab_up.
9922 * dwarf2/read.c (create_signatured_type_table_from_index)
9923 (create_signatured_type_table_from_debug_names)
9924 (create_all_type_units, add_type_unit)
9925 (lookup_dwo_signatured_type, lookup_signatured_type)
9926 (process_skeletonless_type_unit): Update.
9927 (create_debug_type_hash_table, create_debug_types_hash_table):
9928 Change type of types_htab.
9929 (allocate_signatured_type_table, allocate_dwo_unit_table): Return
9930 htab_up. Don't allocate on obstack.
9931 (create_cus_hash_table): Change type of cus_htab parameter.
9932 (struct dwo_file) <cus, tus>: Now htab_up.
9933 (lookup_dwo_signatured_type, lookup_dwo_cutu)
9934 (process_dwo_file_for_skeletonless_type_units, lookup_dwo_cutu)
9935 (queue_and_load_all_dwo_tus): Update.
9936 * dwarf2/index-write.c (write_gdbindex): Update.
9937 (write_debug_names): Update.
9938
39856def
TT
99392020-02-08 Tom Tromey <tom@tromey.com>
9940
9941 * dwarf2/read.h (struct dwarf2_queue_item): Move from
9942 dwarf2/read.c. Remove "next" member. Add constructor ntad
9943 destructor.
9944 (struct dwarf2_per_objfile) <queue>: New member.
9945 * dwarf2/read.c (struct dwarf2_queue_item): Move to
9946 dwarf2/read.h.
9947 (dwarf2_queue, dwarf2_queue_tail): Remove.
9948 (class dwarf2_queue_guard): Add parameter to constructor. Use
9949 DISABLE_COPY_AND_ASSIGN.
9950 <m_per_objfile>: New member.
9951 <~dwarf2_queue_guard>: Rewrite.
9952 (dw2_do_instantiate_symtab, queue_comp_unit, process_queue):
9953 Update.
9954 (~dwarf2_queue_item): New.
9955
3e225074
TT
99562020-02-08 Tom Tromey <tom@tromey.com>
9957
9958 * dwarf2/read.c (struct die_info) <has_children>: New member.
9959 (dw2_get_file_names_reader): Remove has_children.
9960 (dw2_get_file_names): Update.
9961 (read_cutu_die_from_dwo): Remove has_children.
9962 (cutu_reader::init_tu_and_read_dwo_dies)
9963 (cutu_reader::cutu_reader): Update.
9964 (process_psymtab_comp_unit_reader, build_type_psymtabs_reader):
9965 Remove has_children.
9966 (build_type_psymtabs_1, process_skeletonless_type_unit)
9967 (load_partial_comp_unit, load_full_comp_unit): Update.
9968 (create_dwo_cu_reader): Remove has_children.
9969 (create_cus_hash_table, read_die_and_children): Update.
9970 (read_full_die_1,read_full_die): Remove has_children.
9971 (read_signatured_type): Update.
9972 (class cutu_reader) <has_children>: Remove.
9973
82ca8957
TT
99742020-02-08 Tom Tromey <tom@tromey.com>
9975
9976 * dwarf2/expr.c: Rename from dwarf2expr.c.
9977 * dwarf2/expr.h: Rename from dwarf2expr.h.
9978 * dwarf2/frame-tailcall.c: Rename from dwarf2-frame-tailcall.c.
9979 * dwarf2/frame-tailcall.h: Rename from dwarf2-frame-tailcall.h.
9980 * dwarf2/frame.c: Rename from dwarf2-frame.c.
9981 * dwarf2/frame.h: Rename from dwarf2-frame.h.
9982 * dwarf2/index-cache.c: Rename from dwarf-index-cache.c.
9983 * dwarf2/index-cache.h: Rename from dwarf-index-cache.h.
9984 * dwarf2/index-common.c: Rename from dwarf-index-common.c.
9985 * dwarf2/index-common.h: Rename from dwarf-index-common.h.
9986 * dwarf2/index-write.c: Rename from dwarf-index-write.c.
9987 * dwarf2/index-write.h: Rename from dwarf-index-write.h.
9988 * dwarf2/loc.c: Rename from dwarf2loc.c.
9989 * dwarf2/loc.h: Rename from dwarf2loc.h.
9990 * dwarf2/read.c: Rename from dwarf2read.c.
9991 * dwarf2/read.h: Rename from dwarf2read.h.
9992 * dwarf2/abbrev.c, aarch64-tdep.c, alpha-tdep.c,
9993 amd64-darwin-tdep.c, arc-tdep.c, arm-tdep.c, bfin-tdep.c,
9994 compile/compile-c-symbols.c, compile/compile-cplus-symbols.c,
9995 compile/compile-loc2c.c, cris-tdep.c, csky-tdep.c, findvar.c,
9996 gdbtypes.c, guile/scm-type.c, h8300-tdep.c, hppa-bsd-tdep.c,
9997 hppa-linux-tdep.c, i386-darwin-tdep.c, i386-linux-tdep.c,
9998 i386-tdep.c, iq2000-tdep.c, m32c-tdep.c, m68hc11-tdep.c,
9999 m68k-tdep.c, microblaze-tdep.c, mips-tdep.c, mn10300-tdep.c,
10000 msp430-tdep.c, nds32-tdep.c, nios2-tdep.c, or1k-tdep.c,
10001 riscv-tdep.c, rl78-tdep.c, rs6000-tdep.c, rx-tdep.c, s12z-tdep.c,
10002 s390-tdep.c, score-tdep.c, sh-tdep.c, sparc-linux-tdep.c,
10003 sparc-tdep.c, sparc64-linux-tdep.c, sparc64-tdep.c, tic6x-tdep.c,
10004 tilegx-tdep.c, v850-tdep.c, xstormy16-tdep.c, xtensa-tdep.c:
10005 Update.
10006 * Makefile.in (COMMON_SFILES): Update.
10007 (HFILES_NO_SRCDIR): Update.
10008
9e35d499
TT
100092020-02-08 Tom Tromey <tom@tromey.com>
10010
10011 * dwarf2read.c (struct die_reader_specs) <comp_dir>: Remove.
10012 (init_cu_die_reader, read_cutu_die_from_dwo): Update.
10013
1eba2311
TT
100142020-02-08 Tom Tromey <tom@tromey.com>
10015
10016 * dwarf2read.h (struct die_info): Don't declare.
10017
e41c2da2
TT
100182020-02-08 Tom Tromey <tom@tromey.com>
10019
10020 * dwarf2read.h (die_info_ptr): Remove typedef.
10021
4fc6c0d5
TT
100222020-02-08 Tom Tromey <tom@tromey.com>
10023
10024 * dwarf2read.c (read_call_site_scope)
10025 (handle_data_member_location, dwarf2_add_member_fn)
10026 (mark_common_block_symbol_computed, read_common_block)
10027 (attr_to_dynamic_prop, partial_die_info::read)
10028 (var_decode_location, dwarf2_fetch_die_loc_sect_off)
10029 (dwarf2_symbol_mark_computed, set_die_type): Update.
10030 * dwarf2/attribute.h (struct attribute) <form_is_block>: Declare
10031 method.
10032 (attr_form_is_block): Don't declare.
10033 * dwarf2/attribute.c (attribute::form_is_block): Now a method.
10034
cd6c91b4
TT
100352020-02-08 Tom Tromey <tom@tromey.com>
10036
10037 * dwarf2read.c (dwarf2_find_base_address, )
10038 (read_call_site_scope, rust_containing_type)
10039 (dwarf2_get_pc_bounds, dwarf2_record_block_ranges)
10040 (handle_data_member_location, dwarf2_add_member_fn)
10041 (get_alignment, read_structure_type, process_structure_scope)
10042 (mark_common_block_symbol_computed, read_common_block)
10043 (read_tag_string_type, attr_to_dynamic_prop, read_subrange_type)
10044 (partial_die_info::read, read_attribute_value, new_symbol)
10045 (lookup_die_type, dwarf2_get_ref_die_offset)
10046 (dwarf2_get_attr_constant_value, follow_die_ref_or_sig)
10047 (dwarf2_fetch_die_loc_sect_off, get_DW_AT_signature_type)
10048 (dwarf2_symbol_mark_computed): Update.
10049 * dwarf2/attribute.h (struct attribute) <value_as_address,
10050 form_is_section_offset, form_is_constant, form_is_ref>: Declare
10051 methods.
10052 (value_as_address, attr_form_is_section_offset)
10053 (attr_form_is_constant, attr_form_is_ref): Don't declare.
10054 * dwarf2/attribute.c (attribute::value_as_address)
10055 (attribute::form_is_section_offset, attribute::form_is_constant)
10056 (attribute::form_is_ref): Now methods.
10057
162dce55
TT
100582020-02-08 Tom Tromey <tom@tromey.com>
10059
10060 * dwarf2read.c (struct attribute, DW_STRING)
10061 (DW_STRING_IS_CANONICAL, DW_UNSND, DW_BLOCK, DW_SND, DW_ADDR)
10062 (DW_SIGNATURE, struct dwarf_block, attr_value_as_address)
10063 (attr_form_is_block, attr_form_is_section_offset)
10064 (attr_form_is_constant, attr_form_is_ref): Move.
10065 * dwarf2/attribute.h: New file.
10066 * dwarf2/attribute.c: New file, from dwarf2read.c.
10067 * Makefile.in (COMMON_SFILES): Add dwarf2/attribute.c.
10068
3054dd54
TT
100692020-02-08 Tom Tromey <tom@tromey.com>
10070
10071 * dwarf2read.c (abbrev_table_up, struct abbrev_info)
10072 (struct attr_abbrev, ABBREV_HASH_SIZE, struct abbrev_table):
10073 Move.
10074 (read_cutu_die_from_dwo, build_type_psymtabs_1): Update.
10075 (abbrev_table::alloc_abbrev, abbrev_table::add_abbrev)
10076 (abbrev_table::lookup_abbrev, abbrev_table_read_table): Move to
10077 abbrev.c.
10078 * dwarf2/abbrev.h: New file.
10079 * dwarf2/abbrev.c: New file, from dwarf2read.c.
10080 * Makefile.in (COMMON_SFILES): Add dwarf2/abbrev.c.
10081
96b79293
TT
100822020-02-08 Tom Tromey <tom@tromey.com>
10083
10084 * dwarf2read.c (dwarf2_section_buffer_overflow_complaint)
10085 (dwarf2_section_size, dwarf2_get_section_info)
10086 (create_signatured_type_table_from_debug_names)
10087 (create_addrmap_from_aranges, read_debug_names_from_section)
10088 (get_gdb_index_contents_from_section, read_comp_unit_head)
10089 (error_check_comp_unit_head, read_abbrev_offset)
10090 (create_debug_type_hash_table, init_cu_die_reader)
10091 (read_cutu_die_from_dwo, dwarf2_build_psymtabs_hard)
10092 (read_comp_units_from_section, create_cus_hash_table)
10093 (create_dwp_hash_table, create_dwo_unit_in_dwp_v1)
10094 (create_dwp_v2_section, dwarf2_rnglists_process)
10095 (dwarf2_ranges_process, read_die_and_siblings, read_full_die)
10096 (abbrev_table_read_table, read_indirect_string_at_offset_from)
10097 (read_indirect_string_from_dwz, read_addr_index_1)
10098 (read_str_index, dwarf_decode_line_header, skip_form_bytes)
10099 (dwarf_decode_macro_bytes, dwarf_decode_macros)
10100 (fill_in_loclist_baton): Update.
10101 * dwarf2/section.h (struct dwarf2_section_info) <get_name,
10102 get_containing_section, get_bfd_owner, get_bfd_section,
10103 get_file_name, get_id, get_flags, empty, read>: Declare methods.
10104 (dwarf2_read_section, get_section_name, get_section_file_name)
10105 (get_containing_section, get_section_bfd_owner)
10106 (get_section_bfd_section, get_section_name, get_section_file_name)
10107 (get_section_id, get_section_flags, dwarf2_section_empty_p): Don't
10108 declare.
10109 * dwarf2/section.c (dwarf2_section_info::get_containing_section)
10110 (dwarf2_section_info::get_bfd_owner)
10111 (dwarf2_section_info::get_bfd_section)
10112 (dwarf2_section_info::get_name)
10113 (dwarf2_section_info::get_file_name, dwarf2_section_info::get_id)
10114 (dwarf2_section_info::get_flags, dwarf2_section_info::empty)
10115 (dwarf2_section_info::read): Now methods.
10116 * dwarf-index-write.c (class debug_names): Update.
10117
2c86cff9
TT
101182020-02-08 Tom Tromey <tom@tromey.com>
10119
10120 * dwarf2read.h (struct dwarf2_section_info, dwarf2_read_section):
10121 Move to dwarf2/section.h.
10122 * dwarf2read.c (get_containing_section, get_section_bfd_owner)
10123 (get_section_bfd_section, get_section_name)
10124 (get_section_file_name, get_section_id, get_section_flags)
10125 (dwarf2_section_empty_p, dwarf2_read_section): Moe to
10126 dwarf2/section.c.
10127 * dwarf2/section.h: New file.
10128 * dwarf2/section.c: New file, from dwarf2read.c.
10129 * Makefile.in (COMMON_SFILES): Add dwarf2/section.c.
10130
f4382c45
TT
101312020-02-08 Tom Tromey <tom@tromey.com>
10132
10133 * dwarf2read.h (read_unsigned_leb128): Don't declare.
10134 * dwarf2read.c (read_1_byte, read_1_signed_byte, read_2_bytes)
10135 (read_2_signed_bytes, read_3_bytes, read_4_bytes)
10136 (read_4_signed_bytes, read_8_bytes): Move to dwarf2/leb.h.
10137 (read_unsigned_leb128, read_signed_leb128): Move to dwarf2/leb.c.
10138 * dwarf2/leb.h: New file, from dwarf2read.c.
10139 * dwarf2/leb.c: New file, from dwarf2read.c.
10140 * dwarf2-frame.c (read_1_byte, read_4_bytes, read_8_bytes):
10141 Remove.
10142 * Makefile.in (CONFIG_SRC_SUBDIR): Add dwarf2.
10143 (COMMON_SFILES): Add dwarf2/leb.c.
10144
01840b7a
JB
101452020-02-08 Joel Brobecker <brobecker@adacore.com>
10146
10147 GDB 9.1 released.
10148
dfcb27e4
IB
101492020-02-05 Iain Buclaw <ibuclaw@gdcproject.org>
10150
10151 PR gdb/25190:
aac66a4c
SM
10152 * gdb/remote-sim.c (gdb_os_write_stderr): Update.
10153 * gdb/remote.c (remote_console_output): Update.
10154 * gdb/ui-file.c (fputs_unfiltered): Rename to...
10155 (ui_file_puts): ...this.
10156 * gdb/ui-file.h (ui_file_puts): Add declaration.
10157 * gdb/utils.c (emit_style_escape): Update.
10158 (flush_wrap_buffer): Update.
10159 (fputs_maybe_filtered): Update.
10160 (fputs_unfiltered): Add function.
dfcb27e4 10161
faa17681
IB
101622020-02-05 Iain Buclaw <ibuclaw@gdcproject.org>
10163
aac66a4c
SM
10164 * gdb/event-loop.c (gdb_wait_for_event): Update.
10165 * gdb/printcmd.c (printf_command): Update.
10166 * gdb/remote-fileio.c (remote_fileio_func_write): Update.
10167 * gdb/remote-sim.c (gdb_os_flush_stdout): Update.
10168 (gdb_os_flush_stderr): Update.
10169 * gdb/remote.c (remote_console_output): Update.
10170 * gdb/ui-file.c (gdb_flush): Rename to...
10171 (ui_file_flush): ...this.
10172 (stderr_file::write): Update.
10173 (stderr_file::puts): Update.
10174 * gdb/ui-file.h (gdb_flush): Rename to...
10175 (ui_file_flush): ...this.
10176 * gdb/utils.c (gdb_flush): Add function.
10177 * gdb/utils.h (gdb_flush): Add declaration.
faa17681 10178
5abbbe1d
TT
101792020-02-07 Tom Tromey <tromey@adacore.com>
10180
10181 PR breakpoints/24915:
10182 * source.c (find_and_open_source): Do not check basenames_may_differ.
10183
919adfe8
TT
101842020-02-07 Tom Tromey <tom@tromey.com>
10185
10186 * README: Update gdbserver documentation.
10187 * gdbserver: Move to top level.
10188 * configure.tgt (build_gdbserver): Remove.
10189 * configure.ac: Remove --enable-gdbserver.
10190 * configure: Rebuild.
10191 * Makefile.in (distclean): Don't mention gdbserver.
10192
1d5d29e7
SV
101932020-02-06 Shahab Vahedi <shahab@synopsys.com>
10194
10195 * source-cache.c (source_cache::ensure): Surround
10196 get_plain_source_lines with a try/catch.
10197 (source_cache::get_line_charpos): Get rid of try/catch
10198 and only check for the return value of "ensure".
10199 * tui/tui-source.c (tui_source_window::set_contents):
10200 Simplify "nlines" calculation.
10201
6eb1129c
SV
102022020-02-06 Shahab Vahedi <shahab@synopsys.com>
10203
10204 * MAINTAINERS (Write After Approval): Add myself.
10205
c6a42d11
CB
102062020-02-05 Christian Biesinger <cbiesinger@google.com>
10207
10208 * sparc-nat.h (struct sparc_target) <xfer_partial>: Fix base class
10209 function call.
10210
c8ecdda6
CB
102112020-02-05 Christian Biesinger <cbiesinger@google.com>
10212
10213 * ppc-nbsd-tdep.h: Fix macro name in #endif comment.
10214
f6480e70
MR
102152020-02-05 Maciej W. Rozycki <macro@wdc.com>
10216
10217 * nat/riscv-linux-tdesc.h: New file.
10218 * nat/riscv-linux-tdesc.c: New file, taking code from...
10219 * riscv-linux-nat.c (riscv_linux_nat_target::read_description):
10220 ... here.
10221 * configure.nat <linux> <riscv*>: Add nat/riscv-linux-tdesc.o to
10222 NATDEPFILES.
10223
dcc9fbc6
AB
102242020-02-04 Andrew Burgess <andrew.burgess@embecosm.com>
10225
10226 * remote-sim.c (sim_inferior_data::sim_inferior_data): Assert that
10227 we don't set the fake simulator ptid to the null_ptid.
10228
719546c4
SM
102292020-02-03 Simon Marchi <simon.marchi@efficios.com>
10230
10231 * fork-child.c (gdb_startup_inferior): Use bool instead of int.
10232 * gdbthread.h (class thread_info) <resumed>: Likewise.
10233 * infrun.c (resume_1): Likewise.
10234 (proceed): Likewise.
10235 (infrun_thread_stop_requested): Likewise.
10236 (stop_all_threads): Likewise.
10237 (handle_inferior_event): Likewise.
10238 (restart_threads): Likewise.
10239 (finish_step_over): Likewise.
10240 (keep_going_stepped_thread): Likewise.
10241 * linux-nat.c (attach_proc_task_lwp_callback): Likewise.
10242 (linux_handle_extended_wait): Likewise.
10243 * record-btrace.c (get_thread_current_frame_id): Likewise.
10244 * record-full.c (record_full_wait_1): Likewise.
10245 * remote.c (remote_target::process_initial_stop_replies): Likewise.
10246 * target.c (target_resume): Likewise.
10247 * thread.c (set_running_thread): Likewise.
10248
e409c542
AKS
102492020-02-03 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
10250
10251 * f-valprint.c (f77_print_array_1): Changed datatype of index
10252 variable to LONGEST from int to enable it to contain bound
10253 values correctly.
10254
ee98c0da
MR
102552020-02-03 Maciej W. Rozycki <macro@wdc.com>
10256
10257 * riscv-linux-nat.c [!NFPREG] (NFPREG): New macro.
10258 (supply_fpregset_regnum, fill_fpregset): Handle regset buffer
10259 offsets according to FLEN determined.
10260 (riscv_linux_nat_target::read_description): Determine FLEN
10261 dynamically.
10262 (riscv_linux_nat_target::fetch_registers): Size regset buffer
10263 according to FLEN determined.
10264 (riscv_linux_nat_target::store_registers): Likewise.
10265
aa66aac4
SV
102662020-02-01 Shahab Vahedi <shahab@synopsys.com>
10267
10268 * target-descriptions.c (tdesc_register_in_reggroup_p): Return 0
10269 when reg->group is empty and reggroup is not.
10270
fd9faca8
TT
102712020-01-31 Tom Tromey <tromey@adacore.com>
10272
10273 * ravenscar-thread.c (ravenscar_thread_target::mourn_inferior):
10274 Call beneath target's mourn_inferior after unpushing.
10275
42330a68
AB
102762020-01-31 Andrew Burgess <andrew.burgess@embecosm.com>
10277
10278 PR tui/9765
10279 * tui/tui-disasm.c (tui_find_disassembly_address): If we don't
10280 have enough lines to fill the screen, still return the lowest
10281 address we found.
10282
7a27a45b
AB
102832020-01-31 Andrew Burgess <andrew.burgess@embecosm.com>
10284
10285 * tui/tui-win.c (_initialize_tui_win): Update help text for '+',
10286 '-', '<', and '>' commands.
10287
c47f70e2
PA
102882020-01-29 Pedro Alves <palves@redhat.com>
10289 Sergio Durigan Junior <sergiodj@redhat.com>
10290
10291 * infcmd.c (construct_inferior_arguments): Assert that
10292 'argc' is greater than 0.
10293
5133a315
LM
102942020-01-29 Luis Machado <luis.machado@linaro.org>
10295
10296 * aarch64-tdep.c (BRK_INSN_MASK): Define to 0xffe0001f.
10297 (BRK_INSN_MASK): Define to 0xd4200000.
10298 (aarch64_program_breakpoint_here_p): New function.
10299 (aarch64_gdbarch_init): Set gdbarch_program_breakpoint_here_p hook.
10300 * arch-utils.c (default_program_breakpoint_here_p): Moved from
10301 breakpoint.c.
10302 * arch-utils.h (default_program_breakpoint_here_p): Moved from
10303 breakpoint.h
10304 * breakpoint.c (bp_loc_is_permanent): Changed return type to bool and
10305 call gdbarch_program_breakpoint_here_p.
10306 (program_breakpoint_here): Moved to arch-utils.c, renamed to
10307 default_program_breakpoint_here_p, changed return type to bool and
10308 simplified.
10309 * breakpoint.h (program_breakpoint_here): Moved prototype to
10310 arch-utils.h, renamed to default_program_breakpoint_here_p and changed
10311 return type to bool.
10312 * gdbarch.c: Regenerate.
10313 * gdbarch.h: Regenerate.
10314 * gdbarch.sh (program_breakpoint_here_p): New method.
10315 * infrun.c (handle_signal_stop): Call
10316 gdbarch_program_breakpoint_here_p.
10317
168f8c6b
TT
103182020-01-26 Tom Tromey <tom@tromey.com>
10319
10320 * ctfread.c (struct ctf_fp_info): Reindent.
10321 (_initialize_ctfread): Remove.
10322
128a391f
TT
103232020-01-26 Tom Tromey <tom@tromey.com>
10324
10325 * psymtab.c (partial_map_expand_apply)
10326 (psym_find_pc_sect_compunit_symtab, psym_lookup_symbol)
10327 (psymtab_to_symtab, psym_find_last_source_symtab, dump_psymtab)
10328 (psym_print_stats, psym_expand_symtabs_for_function)
10329 (psym_map_symbol_filenames, psym_map_matching_symbols)
10330 (psym_expand_symtabs_matching)
10331 (partial_symtab::read_dependencies, maintenance_info_psymtabs)
10332 (maintenance_check_psymtabs): Use new methods.
10333 * psympriv.h (struct partial_symtab) <readin_p,
10334 get_compunit_symtab>: New methods.
10335 <readin, compunit_symtab>: Remove members.
10336 (struct standard_psymtab): New.
10337 (struct legacy_psymtab): Derive from standard_psymtab.
10338 * dwarf2read.h (struct dwarf2_psymtab): Derive from
10339 standard_psymtab.
10340 * ctfread.c (struct ctf_psymtab): Derive from standard_psymtab.
10341
0494dbec
TT
103422020-01-26 Tom Tromey <tom@tromey.com>
10343
10344 * xcoffread.c (xcoff_psymtab_to_symtab_1): Call
10345 read_dependencies. Add assert.
10346 * psymtab.c (partial_symtab::read_dependencies): New method.
10347 * psympriv.h (struct partial_symtab) <read_dependencies>: New
10348 method.
10349 * mdebugread.c (psymtab_to_symtab_1): Call read_dependencies.
10350 * dwarf2read.c (dwarf2_psymtab::expand_psymtab): Call
10351 read_dependencies.
10352 * dbxread.c (dbx_psymtab_to_symtab_1): Call read_dependencies.
10353 Add assert.
10354
8566b89b
TT
103552020-01-26 Tom Tromey <tom@tromey.com>
10356
10357 * xcoffread.c (xcoff_psymtab_to_symtab_1): Change argument order.
10358 Call expand_psymtab.
10359 (xcoff_read_symtab): Call expand_psymtab.
10360 (xcoff_start_psymtab, xcoff_end_psymtab): Set
10361 legacy_expand_psymtab.
10362 * psympriv.h (struct partial_symtab) <expand_psymtab>: New
10363 method.
10364 (struct legacy_psymtab) <expand_psymtab>: Implement.
10365 <legacy_expand_psymtab>: New member.
10366 * mdebugread.c (mdebug_read_symtab): Call expand_psymtab.
10367 (parse_partial_symbols): Set legacy_expand_psymtab.
10368 (psymtab_to_symtab_1): Change argument order. Call
10369 expand_psymtab.
10370 (new_psymtab): Set legacy_expand_psymtab.
10371 * dwarf2read.h (struct dwarf2_psymtab) <expand_psymtab>: Declare.
10372 * dwarf2read.c (dwarf2_psymtab::read_symtab): Call
10373 expand_psymtab.
10374 (dwarf2_psymtab::expand_psymtab): Rename from
10375 psymtab_to_symtab_1. Call expand_psymtab.
10376 * dbxread.c (start_psymtab): Set legacy_expand_psymtab.
10377 (dbx_end_psymtab): Likewise.
10378 (dbx_psymtab_to_symtab_1): Change argument order. Call
10379 expand_psymtab.
10380 (dbx_read_symtab): Call expand_psymtab.
10381 * ctfread.c (struct ctf_psymtab) <expand_psymtab>: Declare.
10382 (ctf_psymtab::expand_psymtab): Rename from psymtab_to_symtab.
10383 (ctf_psymtab::read_symtab): Call expand_psymtab.
10384
077cbab2
TT
103852020-01-26 Tom Tromey <tom@tromey.com>
10386
10387 * xcoffread.c (xcoff_read_symtab): Remove prints. Add assert.
10388 * psymtab.c (psymtab_to_symtab): Print verbose "Reading"
10389 messages.
10390 * mdebugread.c (mdebug_read_symtab): Remove prints.
10391 * dwarf2read.c (dwarf2_psymtab::read_symtab): Remove prints. Add
10392 assert.
10393 * dbxread.c (dbx_read_symtab): Remove prints. Add assert.
10394
891813be
TT
103952020-01-26 Tom Tromey <tom@tromey.com>
10396
10397 * xcoffread.c (this_symtab_psymtab, read_xcoff_symtab)
10398 (xcoff_psymtab_to_symtab_1, xcoff_read_symtab)
10399 (xcoff_start_psymtab, xcoff_end_psymtab, scan_xcoff_symtab): Use
10400 legacy_symtab.
10401 * stabsread.h (dbx_end_psymtab): Use legacy_symtab.
10402 * psymtab.c (psymtab_to_symtab): Call method.
10403 (dump_psymtab): Update.
10404 * psympriv.h (struct partial_symtab): Add virtual destructor.
10405 <read_symtab>: New method.
10406 (struct legacy_symtab): New.
10407 * mdebugread.c (mdebug_read_symtab): Use legacy_psymtab.
10408 (struct pst_map) <pst>: Now a legacy_psymtab.
10409 (parse_procedure, parse_partial_symbols, psymtab_to_symtab_1)
10410 (new_psymtab): Use legacy_psymtab.
10411 * dwarf2read.h (struct dwarf2_psymtab): New.
10412 (struct dwarf2_per_cu_data) <psymtab>: Use it.
10413 * dwarf2read.c (dwarf2_create_include_psymtab)
10414 (dwarf2_build_include_psymtabs, create_type_unit_group)
10415 (create_partial_symtab, process_psymtab_comp_unit_reader)
10416 (build_type_psymtabs_reader, build_type_psymtab_dependencies)
10417 (set_partial_user): Use dwarf2_psymtab.
10418 (dwarf2_psymtab::read_symtab): Rename from dwarf2_read_symtab.
10419 (psymtab_to_symtab_1, process_full_comp_unit)
10420 (process_full_type_unit, dwarf2_ranges_read)
10421 (dwarf2_get_pc_bounds, psymtab_include_file_name)
10422 (dwarf_decode_lines): Use dwarf2_psymtab.
10423 * dwarf-index-write.c (psym_index_map): Use dwarf2_psymtab.
10424 (add_address_entry_worker, write_one_signatured_type)
10425 (recursively_count_psymbols, recursively_write_psymbols)
10426 (write_one_signatured_type, psyms_seen_size, write_gdbindex)
10427 (write_debug_names): Likewise.
10428 * dbxread.c (struct header_file_location): Take a legacy_psymtab.
10429 <pst>: Now a legacy_psymtab.
10430 (find_corresponding_bincl_psymtab): Return a legacy_psymtab.
10431 (read_dbx_symtab, start_psymtab, dbx_end_psymtab)
10432 (dbx_psymtab_to_symtab_1, read_ofile_symtab): Use legacy_psymtab.
10433 * ctfread.c (struct ctf_psymtab): New.
10434 (ctf_start_symtab, ctf_end_symtab, psymtab_to_symtab): Take a
10435 ctf_psymtab.
10436 (ctf_psymtab::read_symtab): Rename from ctf_read_symtab.
10437 (create_partial_symtab): Return a ctf_psymtab.
10438 (scan_partial_symbols): Update.
10439
c3693a1d
TT
104402020-01-26 Tom Tromey <tom@tromey.com>
10441
10442 * xcoffread.c (xcoff_start_psymtab): Use new.
10443 * psymtab.c (partial_symtab::partial_symtab): New constructor,
10444 renamed from start_psymtab_common.
10445 * psympriv.h (struct partial_symtab): Add new constructor.
10446 (start_psymtab_common): Don't declare.
10447 * mdebugread.c (parse_partial_symbols): Use new.
10448 * dwarf2read.c (create_partial_symtab): Use new.
10449 * dbxread.c (start_psymtab): Use new.
10450 * ctfread.c (create_partial_symtab): Use new.
10451
32caafd0
TT
104522020-01-26 Tom Tromey <tom@tromey.com>
10453
10454 * xcoffread.c (xcoff_end_psymtab): Use new.
10455 * psymtab.c (start_psymtab_common): Use new.
10456 (partial_symtab::partial_symtab): Rename from allocate_psymtab.
10457 Update.
10458 * psympriv.h (struct partial_symtab): Add parameters to
10459 constructor. Don't inline.
10460 (allocate_psymtab): Don't declare.
10461 * mdebugread.c (new_psymtab): Use new.
10462 * dwarf2read.c (dwarf2_create_include_psymtab): Use new.
10463 * dbxread.c (dbx_end_psymtab): Use new.
10464
abaa2f23
TT
104652020-01-26 Tom Tromey <tom@tromey.com>
10466
10467 * psymtab.h (class psymtab_storage) <install_psymtab>: Rename from
10468 allocate_psymtab. Update documentation.
10469 * psymtab.c (psymtab_storage::install_psymtab): Rename from
10470 allocate_psymtab. Do not use new.
10471 (allocate_psymtab): Use new. Update.
10472
6d94535f
TT
104732020-01-26 Tom Tromey <tom@tromey.com>
10474
10475 * xcoffread.c (xcoff_psymtab_to_symtab_1): Update.
10476 * psymtab.c (psym_print_stats): Update.
10477 * psympriv.h (struct partial_symtab) <readin,
10478 psymtabs_addrmap_supported, anonymous>: Now bool.
10479 * mdebugread.c (psymtab_to_symtab_1): Update.
10480 * dwarf2read.c (create_type_unit_group, create_partial_symtab)
10481 (build_type_psymtabs_reader, psymtab_to_symtab_1)
10482 (process_full_comp_unit, process_full_type_unit): Update.
10483 * dbxread.c (dbx_psymtab_to_symtab_1): Update.
10484 * ctfread.c (psymtab_to_symtab): Update.
10485
6f17252b
TT
104862020-01-26 Tom Tromey <tom@tromey.com>
10487
10488 * mdebugread.c (parse_partial_symbols): Use discard_psymtab.
10489 * psymtab.h (class psymtab_storage) <free_psymtabs>: Remove.
10490 * psymtab.c (psymtab_storage): Delete psymtabs.
10491 (psymtab_storage::allocate_psymtab): Use new.
10492 (psymtab_storage::discard_psymtab): Use delete.
10493 * psympriv.h (struct partial_symtab): Add constructor and
10494 initializers.
10495
f6f1cebc
TT
104962020-01-26 Tom Tromey <tom@tromey.com>
10497
10498 * machoread.c: Do not include psympriv.h.
10499
e47e48f6
PW
105002020-01-25 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10501
10502 * NEWS: Mention the new option and the set/show commands.
10503
a2fedca9
PW
105042020-01-25 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10505
10506 * exec.c (exec_file_mismatch_names, exec_file_mismatch_mode)
10507 (show_exec_file_mismatch_command, set_exec_file_mismatch_command)
10508 (validate_exec_file): New variables, enums, functions.
10509 (exec_file_locate_attach, print_section_info): Style the filenames.
10510 (_initialize_exec): Install show_exec_file_mismatch_command and
10511 set_exec_file_mismatch_command.
10512 * gdbcore.h (validate_exec_file): Declare.
10513 * infcmd.c (attach_command): Call validate_exec_file.
10514 * remote.c ( remote_target::remote_add_inferior): Likewise.
10515
7ffa82e1
AB
105162020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
10517
10518 * frame.c (find_frame_sal): Move call to get_next_frame into more
10519 inner scope.
10520 * inline-frame.c (inilne_state) <inline_state>: Update argument
10521 types.
10522 (inilne_state) <skipped_symbol>: Rename to...
10523 (inilne_state) <skipped_symbols>: ...this, and change to a vector.
10524 (skip_inline_frames): Build vector of skipped symbols and use this
10525 to reate the inline_state.
10526 (inline_skipped_symbol): Add a comment and some assertions, fetch
10527 skipped symbol from the list.
10528
3d92a3e3
AB
105292020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
10530
10531 * buildsym.c (lte_is_less_than): Delete.
10532 (buildsym_compunit::end_symtab_with_blockvector): Create local
10533 lambda function to sort line table entries, and use
10534 std::stable_sort instead of std::sort.
10535 * symtab.c (find_pc_sect_line): Skip backward over end of sequence
10536 markers when looking for a previous line.
10537
94a72be7
AB
105382020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
10539
10540 * dwarf2read.c (lnp_state_machine::record_line): Include
10541 end_sequence parameter in debug print out. Record the line if we
10542 are at an end_sequence marker even if it's not the start of a
10543 statement.
10544 * symmisc.c (maintenance_print_one_line_table): Print end of
10545 sequence markers with 'END' not '0'.
10546
53af73bf
PA
105472020-01-24 Pedro Alves <palves@redhat.com>
10548
10549 PR gdb/25410
10550 * thread.c (scoped_restore_current_thread::restore): Use
10551 switch_to_inferior_no_thread.
10552 * exec.c: Include "progspace-and-thread.h".
10553 (add_target_sections, remove_target_sections):
10554 scoped_restore_current_pspace_and_thread instead of
10555 scoped_restore_current_thread.
10556 * infrun.c (handle_vfork_child_exec_or_exit): Assign the pspace
10557 and aspace to the inferior before calling clone_program_space.
10558 Remove stale comment.
10559
3050c6f4
CB
105602020-01-24 Christian Biesinger <cbiesinger@google.com>
10561
10562 * arm-nbsd-nat.c (arm_nbsd_nat_target::fetch_registers): Rename to...
10563 (arm_netbsd_nat_target::fetch_registers): ...this.
10564 (arm_nbsd_nat_target::store_registers): Rename to...
10565 (arm_netbsd_nat_target::store_registers): ...this.
10566
73685c7e
CB
105672020-01-24 Christian Biesinger <cbiesinger@google.com>
10568
10569 * arm-nbsd-nat.c: Define _KERNTYPES to get the declaration of
10570 register_t.
10571
89203d40
CB
105722020-01-24 Christian Biesinger <cbiesinger@google.com>
10573
10574 * aarch64-fbsd-tdep.c (aarch64_fbsd_iterate_over_regset_sections):
10575 Update comment.
10576 * aarch64-linux-tdep.c (aarch64_linux_iterate_over_regset_sections):
10577 Likewise.
10578 * arm-fbsd-tdep.c (arm_fbsd_iterate_over_regset_sections): Likewise.
10579 * gdbcore.h (deprecated_add_core_fns): Update comment to point to
10580 the correct replacement (iterate_over_regset_sections).
10581 * riscv-fbsd-tdep.c (riscv_fbsd_iterate_over_regset_sections):
10582 Update comment.
10583
1ba1ac88
AB
105842020-01-24 Graham Markall <graham.markall@embecosm.com>
10585
10586 PR gdb/23718
10587 * gdb/python/python.c (execute_gdb_command): Call
10588 async_enable_stdin in catch block.
10589
f3364a6d
AB
105902020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
10591
10592 * event-loop.c (start_event_loop): Wrap async_enable_stdin with
10593 SWITCH_THRU_ALL_UIS.
10594
733d0a67
AB
105952020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
10596
10597 PR tui/9765
10598 * minsyms.c (lookup_minimal_symbol_by_pc_section): Update header
10599 comment, add extra parameter, and update to store previous symbol
10600 when appropriate.
10601 * minsyms.h (lookup_minimal_symbol_by_pc_section): Update comment,
10602 add extra parameter.
10603 * tui/tui-disasm.c (tui_disassemble): Update header comment,
10604 remove unneeded parameter, add try/catch around gdb_print_insn,
10605 rewrite to add items to asm_lines vector.
10606 (tui_find_backward_disassembly_start_address): New function.
10607 (tui_find_disassembly_address): Updated throughout.
10608 (tui_disasm_window::set_contents): Update for changes to
10609 tui_disassemble.
10610 (tui_disasm_window::do_scroll_vertical): No need to adjust the
10611 number of lines to scroll.
10612
b3b3bada
SM
106132020-01-23 Simon Marchi <simon.marchi@polymtl.ca>
10614
10615 * objfiles.h (ALL_OBJFILE_OSECTIONS): Move up.
10616 (SECT_OFF_DATA): Likewise.
10617 (SECT_OFF_RODATA): Likewise.
10618 (SECT_OFF_TEXT): Likewise.
10619 (SECT_OFF_BSS): Likewise.
10620 (struct objfile) <text_section_offset, data_section_offset>: New
10621 methods.
10622 * amd64-windows-tdep.c (amd64_windows_find_unwind_info): Use
10623 objfile::text_section_offset.
10624 * coff-pe-read.c (add_pe_forwarded_sym): Likewise.
10625 * coffread.c (coff_symtab_read): Likewise.
10626 (enter_linenos): Likewise.
10627 (process_coff_symbol): Likewise.
10628 * ctfread.c (get_objfile_text_range): Likewise.
10629 * dtrace-probe.c (dtrace_probe::get_relocated_address):
10630 Use objfile::data_section_offset.
10631 * dwarf2-frame.c (execute_cfa_program): Use
10632 objfile::text_section_offset.
10633 (dwarf2_frame_find_fde): Likewise.
10634 * dwarf2read.c (create_addrmap_from_index): Likewise.
10635 (create_addrmap_from_aranges): Likewise.
10636 (dw2_find_pc_sect_compunit_symtab): Likewise.
10637 (process_psymtab_comp_unit_reader): Likewise.
10638 (add_partial_symbol): Likewise.
10639 (add_partial_subprogram): Likewise.
10640 (process_full_comp_unit): Likewise.
10641 (read_file_scope): Likewise.
10642 (read_func_scope): Likewise.
10643 (read_lexical_block_scope): Likewise.
10644 (read_call_site_scope): Likewise.
10645 (dwarf2_rnglists_process): Likewise.
10646 (dwarf2_ranges_process): Likewise.
10647 (dwarf2_ranges_read): Likewise.
10648 (dwarf_decode_lines_1): Likewise.
10649 (new_symbol): Likewise.
10650 (dwarf2_fetch_die_loc_sect_off): Likewise.
10651 (dwarf2_per_cu_text_offset): Likewise.
10652 * hppa-bsd-tdep.c (hppabsd_find_global_pointer): Likewise.
10653 * hppa-tdep.c (read_unwind_info): Likewise.
10654 * ia64-tdep.c (ia64_find_unwind_table): Likewise.
10655 * psympriv.h (struct partial_symtab): Likewise.
10656 * psymtab.c (find_pc_sect_psymtab): Likewise.
10657 * solib-svr4.c (enable_break): Likewise.
10658 * stap-probe.c (relocate_address): Use
10659 objfile::data_section_offset.
10660 * xcoffread.c (enter_line_range): Use
10661 objfile::text_section_offset.
10662 (read_xcoff_symtab): Likewise.
10663
ab53f382
SM
106642020-01-23 Simon Marchi <simon.marchi@efficios.com>
10665
10666 * darwin-nat.c (darwin_nat_target::wait_1): Move `inf`
10667 declaration to narrower scopes.
10668
e7eee665
SM
106692020-01-23 Simon Marchi <simon.marchi@efficios.com>
10670
10671 * darwin-nat.h (struct darwin_exception_msg, enum
10672 darwin_msg_state, struct darwin_thread_info, darwin_thread_t):
10673 Move up.
10674 (class darwin_nat_target) <wait_1, check_new_threads,
10675 decode_exception_message, decode_message, stop_inferior,
10676 init_thread_list, ptrace_him, cancel_breakpoint>: Declare.
10677 * darwin-nat.c (darwin_check_new_threads): Rename to...
10678 (darwin_nat_target::check_new_threads): ... this.
10679 (darwin_suspend_inferior_it): Remove.
10680 (darwin_decode_exception_message): Rename to...
10681 (darwin_nat_target::decode_exception_message): ... this.
10682 (darwin_nat_target::resume): Pass target to find_inferior_ptid.
10683 (darwin_decode_message): Rename to...
10684 (darwin_nat_target::decode_message): ... this.
10685 (cancel_breakpoint): Rename to...
10686 (darwin_nat_target::cancel_breakpoint): ... this.
10687 (darwin_wait): Rename to...
10688 (darwin_nat_target::wait_1): ... this. Use range-based for loop
10689 instead of iterate_over_inferiors.
10690 (darwin_nat_target::wait): Call wait_1 instead of darwin_wait.
10691 (darwin_stop_inferior): Rename to...
10692 (darwin_nat_target::stop_inferior): ... this.
10693 (darwin_nat_target::kill): Call wait_1 instead of darwin_wait.
10694 (darwin_init_thread_list): Rename to...
10695 (darwin_nat_target::init_thread_list): ... this.
10696 (darwin_ptrace_him): Rename to...
10697 (darwin_nat_target::ptrace_him): ... this.
10698 (darwin_nat_target::create_inferior): Pass lambda function to
10699 fork_inferior.
10700 (darwin_nat_target::detach): Call stop_inferior instead of
10701 darwin_stop_inferior.
10702 * fork-inferior.h (fork_inferior): Change init_trace_fun
10703 parameter to gdb::function_view.
10704 * fork-inferior.c (fork_inferior): Likewise.
10705
c162ed3e
HD
107062020-01-23 Hannes Domani <ssbssa@yahoo.de>
10707
10708 * i386-cygwin-tdep.c (core_process_module_section): Update.
10709 * windows-nat.c (struct lm_info_windows): Add text_offset.
10710 (windows_xfer_shared_libraries): Update.
10711 * windows-tdep.c (windows_xfer_shared_library):
10712 Add text_offset_cached argument.
10713 * windows-tdep.h (windows_xfer_shared_library): Update.
10714
a1237872
SM
107152020-01-21 Simon Marchi <simon.marchi@efficios.com>
10716
10717 * gdbarch.sh: Add declaration for _initialize_gdbarch.
10718
b3ee6dd9
SM
107192020-01-21 Simon Marchi <simon.marchi@efficios.com>
10720
10721 * remote-sim.c (check_for_duplicate_sim_descriptor): Remove.
10722 (get_sim_inferior_data): Remove use of iterate_over_inferiors,
10723 replace with range-based for.
10724 (gdbsim_interrupt_inferior): Remove.
10725 (gdbsim_target::interrupt): Replace iterate_over_inferiors use
10726 with a range-based for. Inline code from
10727 gdbsim_interrupt_inferior.
10728
f9fac3c8
SM
107292020-01-21 Simon Marchi <simon.marchi@efficios.com>
10730
10731 * infrun.c (proceed): Fix indentation.
10732
f6474de9
TT
107332020-01-21 Tom Tromey <tromey@adacore.com>
10734
10735 * source-cache.c (source_cache::ensure): Call ext_lang_colorize.
10736 * python/python.c (python_extension_ops): Update.
10737 (gdbpy_colorize): New function.
10738 * python/lib/gdb/__init__.py (colorize): New function.
10739 * extension.h (ext_lang_colorize): Declare.
10740 * extension.c (ext_lang_colorize): New function.
10741 * extension-priv.h (struct extension_language_ops) <colorize>: New
10742 member.
10743 * cli/cli-style.c (_initialize_cli_style): Update help text.
10744
f0c702d4
LM
107452020-01-21 Luis Machado <luis.machado@linaro.org>
10746
10747 * aarch64-tdep.c (struct aarch64_displaced_step_closure)
10748 <cond>: Change type to bool.
10749 (aarch64_displaced_step_b_cond): Update cond to use bool type.
10750 (aarch64_displaced_step_cb): Likewise.
10751 (aarch64_displaced_step_tb): Likewise.
10752
1ab139e5
LM
107532020-01-21 Luis Machado <luis.machado@linaro.org>
10754
10755 * aarch64-tdep.c (aarch64_displaced_step_fixup): Add more debugging
10756 output.
10757
0c271889
LM
107582020-01-21 Luis Machado <luis.machado@linaro.org>
10759
10760 * aarch64-tdep.c (struct aarch64_displaced_step_closure )
10761 <pc_adjust>: Adjust the documentation.
10762 (aarch64_displaced_step_fixup): Check if PC really moved before
10763 adjusting it.
10764
4d89c1c7
TT
107652020-01-19 Tom Tromey <tom@tromey.com>
10766
10767 * disasm.c (~gdb_disassembler): New destructor.
10768 (gdb_buffered_insn_length): Call disassemble_free_target.
10769 * disasm.h (class gdb_disassembler): Declare destructor. Use
10770 DISABLE_COPY_AND_ASSIGN.
10771
c0ab21c2
TT
107722020-01-19 Tom Tromey <tom@tromey.com>
10773
10774 * dwarf2read.c (abbrev_table_up): Move typedef earlier.
10775 (die_reader_func_ftype): Remove.
10776 (cutu_reader): New class.
10777 (dw2_get_file_names_reader): Remove "data" parameter.
10778 (dw2_get_file_names): Use cutu_reader.
10779 (create_debug_type_hash_table): Update.
10780 (read_cutu_die_from_dwo): Update comment.
10781 (lookup_dwo_unit): Add dwo_name parameter.
10782 (cutu_reader::init_tu_and_read_dwo_dies): Now a method. Remove
10783 die_reader_func_ftype and data parameters.
10784 (cutu_reader::cutu_reader): Rename from init_cutu_and_read_dies.
10785 Remove die_reader_func_ftype and data parameters.
10786 (~cutu_reader): New; from init_cutu_and_read_dies.
10787 (cutu_reader::cutu_reader): Rename from
10788 init_cutu_and_read_dies_no_follow. Remove die_reader_func_ftype
10789 and data parameters.
10790 (init_cutu_and_read_dies_simple): Remove.
10791 (struct process_psymtab_comp_unit_data): Remove.
10792 (process_psymtab_comp_unit_reader): Remove data parameter; add
10793 want_partial_unit and pretend_language parameters.
10794 (process_psymtab_comp_unit): Use cutu_reader.
10795 (build_type_psymtabs_reader): Remove data parameter.
10796 (build_type_psymtabs_1): Use cutu_reader.
10797 (process_skeletonless_type_unit): Likewise.
10798 (load_partial_comp_unit_reader): Remove.
10799 (load_partial_comp_unit): Use cutu_reader.
10800 (load_full_comp_unit_reader): Remove.
10801 (load_full_comp_unit): Use cutu_reader.
10802 (struct create_dwo_cu_data): Remove.
10803 (create_dwo_cu_reader): Remove datap parameter; add dwo_file and
10804 dwo_unit parameters.
10805 (create_cus_hash_table): Use cutu_reader.
10806 (struct dwarf2_read_addr_index_data): Remove.
10807 (dwarf2_read_addr_index_reader): Remove.
10808 (dwarf2_read_addr_index): Use cutu_reader.
10809 (read_signatured_type_reader): Remove.
10810 (read_signatured_type): Use cutu_reader.
10811
45bbae5c
TT
108122020-01-19 Tom Tromey <tom@tromey.com>
10813
10814 * tui/tui.c (tui_show_assembly): Use tui_suppress_output.
10815 * tui/tui-wingeneral.h (class tui_suppress_output): New.
10816 (tui_wrefresh): Declare.
10817 * tui/tui-wingeneral.c (suppress_output): New global.
10818 (tui_suppress_output, ~tui_suppress_output): New constructor and
10819 destructor.
10820 (tui_wrefresh): New function.
10821 (tui_gen_win_info::refresh_window): Use tui_wrefresh.
10822 (tui_gen_win_info::make_window): Call wnoutrefresh when needed.
10823 * tui/tui-regs.h (struct tui_data_window) <no_refresh>: Declare
10824 method.
10825 * tui/tui-regs.c (tui_data_window::erase_data_content): Call
10826 tui_wrefresh.
10827 (tui_data_window::no_refresh): New method.
10828 (tui_data_item_window::refresh_window): Call tui_wrefresh.
10829 (tui_reg_command): Use tui_suppress_output
10830 * tui/tui-layout.c (tui_set_layout): Use tui_suppress_output.
10831 * tui/tui-data.h (struct tui_gen_win_info) <no_refresh>: New
10832 method.
10833 * tui/tui-command.c (tui_refresh_cmd_win): Call tui_wrefresh.
10834
4f13c1c0
TT
108352020-01-19 Tom Tromey <tom@tromey.com>
10836
10837 * tui/tui-winsource.c (tui_update_source_windows_with_line):
10838 Handle case where symtab is null.
10839
fa47e446
SM
108402020-01-19 Simon Marchi <simon.marchi@polymtl.ca>
10841
10842 * linux-fork.c (one_fork_p): Simplify.
10843
26f42329
SM
108442020-01-17 Simon Marchi <simon.marchi@efficios.com>
10845
10846 * top.c (struct qt_args): Remove.
10847 (kill_or_detach): Change return type to void, replace `void *`
10848 parameter with a proper one.
10849 (print_inferior_quit_action): Likewise.
10850 (quit_confirm): Use range-based for loop to iterate over inferiors.
10851 (quit_force): Likewise.
10852
a9ac81b1
SM
108532020-01-17 Simon Marchi <simon.marchi@efficios.com>
10854
10855 * mi/mi-main.c (run_one_inferior): Change return type to void, replace
10856 `void *` parameter with proper parameters.
10857 (mi_cmd_exec_run): Use range-based loop to iterate over inferiors.
10858 (print_one_inferior): Change return type to void, replace `void *`
10859 parameter with proper parameters.
10860 (mi_cmd_list_thread_groups): Use range-based loop to iterate over
10861 inferiors.
10862 (get_other_inferior): Remove.
10863 (mi_cmd_remove_inferior): Use range-based loop to iterate over
10864 inferiors.
10865
788eca49
SM
108662020-01-17 Simon Marchi <simon.marchi@efficios.com>
10867
10868 * mi/mi-interp.c (report_initial_inferior): Remove.
10869 (mi_interp::init): Use range-based for to iterate over inferiors.
10870
d9bc85b6
SM
108712020-01-17 Simon Marchi <simon.marchi@efficios.com>
10872
10873 * python/py-inferior.c (build_inferior_list): Remove.
10874 (gdbpy_ref): Use range-based for loop to iterate over inferiors.
10875
40c94099
CB
108762020-01-16 Christian Biesinger <cbiesinger@google.com>
10877
10878 * btrace.c (btrace_compute_ftrace_1): Fix spelling error (Unkown).
10879 (btrace_stitch_trace): Likewise.
10880 * charset.c (intermediate_encoding): Likewise (vaild).
10881 * nat/linux-btrace.c (linux_read_pt): Likewise (Unkown).
10882 * python/py-record-btrace.c (struct PyMethodDef): Likewise (occurences).
10883 * record-btrace.c (record_btrace_print_conf): Likewise (unkown).
10884
e0cdfe3c
HD
108852020-01-16 Hannes Domani <ssbssa@yahoo.de>
10886
10887 * windows-tdep.c (windows_get_tlb_type):
10888 Add rtl_user_process_parameters type.
10889
790f1718 108902020-01-16 Pedro Alves <palves@redhat.com>
aac66a4c 10891 Norbert Lange <nolange79@gmail.com>
790f1718
PA
10892
10893 PR build/24805
10894 * gdbsupport/gdb_proc_service.h (PS_EXPORT): New.
10895 (ps_get_thread_area, ps_getpid, ps_lcontinue, ps_lgetfpregs)
10896 (ps_lgetregs, ps_lsetfpregs, ps_lsetregs, ps_lstop, ps_pcontinue)
10897 (ps_pdread, ps_pdwrite, ps_pglobal_lookup, ps_pstop, ps_ptread)
10898 (ps_ptwrite, ps_lgetxregs, ps_lgetxregsize, ps_lsetxregs)
10899 (ps_plog): Redeclare exported functions with default visibility.
10900
3112ed97
NA
109012020-01-16 Nitika Achra <Nitika.Achra@amd.com>
10902
10903 * dwarf2loc.c (decode_debug_loclists_addresses): Handle
10904 DW_LLE_base_addressx, DW_LLE_startx_length, DW_LLE_start_length.
10905
8dc3273e
SM
109062020-01-15 Simon Marchi <simon.marchi@efficios.com>
10907
10908 * infcmd.c (post_create_inferior): Use get_thread_regcache
10909 instead of get_current_regcache.
10910
ff47f4f0
TT
109112020-01-14 Tom Tromey <tom@tromey.com>
10912
10913 PR symtab/12535:
10914 * python/python.c (gdbpy_decode_line): Treat empty string the same
10915 as no argument.
10916
975f45b7
TT
109172020-01-14 Tom Tromey <tom@tromey.com>
10918
10919 * Makefile.in (CLIBS): Remove second use of $(LIBIBERTY).
10920
25e57356
TT
109212020-01-14 Tom Tromey <tom@tromey.com>
10922
10923 * nat/linux-btrace.c: Don't include <config.h>.
10924 * nat/linux-ptrace.c: Don't include <config.h>.
10925 * nat/x86-linux-dregs.c: Don't include <config.h>.
10926
05ea2a05
TT
109272020-01-14 Tom Tromey <tom@tromey.com>
10928
10929 * configure: Rebuild.
10930 * configure.ac: Move many checks to ../gdbsupport/common.m4.
10931
01027315
TT
109322020-01-14 Tom Tromey <tom@tromey.com>
10933
10934 * nat/x86-linux-dregs.c: Include configh.h.
10935 * nat/linux-ptrace.c: Include configh.h.
10936 * nat/linux-btrace.c: Include configh.h.
10937 * defs.h: Include config.h, bfd.h.
10938 * configure.ac: Don't source common.host.
10939 (CONFIG_OBS, CONFIG_SRCS): Remove gdbsupport files.
10940 * configure: Rebuild.
10941 * acinclude.m4: Update path.
10942 * Makefile.in (SUPPORT, LIBSUPPORT, INCSUPPORT): New variables.
10943 (CONFIG_SRC_SUBDIR): Remove gdbsupport.
10944 (INTERNAL_CFLAGS_BASE): Add INCSUPPORT.
10945 (CLIBS): Add LIBSUPPORT.
10946 (CDEPS): Likewise.
10947 (COMMON_SFILES): Remove gdbsupport files.
10948 (HFILES_NO_SRCDIR): Likewise.
10949 (stamp-version): Update path to create-version.sh.
10950 (ALLDEPFILES): Remove gdbsupport files.
10951
b2ceabe8
TT
109522020-01-14 Tom Tromey <tom@tromey.com>
10953
10954 * gdbsupport/common.m4 (GDB_AC_COMMON): Define WIN32APILIBS and
10955 USE_WIN32API when needed.
10956 * configure.ac (USE_WIN32API): Don't define.
10957 (WIN32LIBS): Use WIN32APILIBS.
10958 * configure: Rebuild.
10959
25c51f71
TT
109602020-01-14 Tom Tromey <tom@tromey.com>
10961
10962 * configure: Rebuild.
10963 * gdbsupport/common.m4 (GDB_AC_COMMON): Fix indentation.
10964
717c684d
BE
109652020-01-14 Bernd Edlinger <bernd.edlinger@hotmail.de>
10966
10967 * skip.c (skip_function_command): Make skip w/o arguments use the
10968 name of the inlined function if pc is inside any inlined function.
10969
7da6a5b9
LM
109702020-01-14 Luis Machado <luis.machado@linaro.org>
10971
10972 * inf-ptrace.c (inf_ptrace_target::resume): Update comments.
10973 * infrun.c (resume_1): Likewise.
10974 (handle_inferior_event): Remove stale comment.
10975 * linux-nat.c (linux_nat_target::resume): Update comments.
10976 (save_stop_reason): Likewise.
10977 (linux_nat_filter_event): Likewise.
10978 * linux-nat.h (struct lwp_info) <stop_pc>, <stop_reason>: Likewise.
10979
44e4c775
AB
109802020-01-13 Andrew Burgess <andrew.burgess@embecosm.com>
10981
10982 * elfread.c (record_minimal_symbol): Set section index to 0 for
10983 non-allocatable sections.
10984
18a8505e
AT
10985
109862020-01-13 Ali Tamur <tamur@google.com>
10987
10988 * dwarf2read.c (dwarf2_debug_sections): Add debug_str_offsets sections.
10989 (dwarf2_cu): Add str_offsets_base field. Change the type of addr_base
10990 to gdb::optional. Update comments.
10991 (dwo_file): Update comments.
10992 (read_attribute): Update API to take an additional out parameter,
10993 need_reprocess. This is used to mark attributes that need other
10994 attributes (e.g. str_offsets_base) for correct computation which may not
10995 have been read yet.
10996 (read_attribute_reprocess): New function declaration.
10997 (read_addr_index): Likewise.
10998 (read_dwo_str_index): Likewise.
10999 (read_stub_str_index): Likewise.
11000 (dwarf2_per_objfile::locate_sections): Handle debug_str_offsets section.
11001 (lookup_addr_base): New function definition.
11002 (lookup_ranges_base): Likewise.
11003 (read_cutu_die_from_dwo): Use the new functions: lookup_addr_base,
11004 lookup_ranges_base.
11005 (init_cutu_and_read_dies): Update comments.
11006 (init_cutu_and_read_dies_no_follow): Change API to take parent compile
11007 unit. This is used to inherit parent's str_offsets_base and addr_base.
11008 Update comments.
11009 (init_cutu_and_read_dies_simple): Reflect API changes.
11010 (skip_one_die): Reflect API changes. Handle DW_FORM_rnglistx.
11011 (create_cus_hash_table): Change API to take parent compile unit.
11012 Reflect API changes.
11013 (open_and_init_dwo_file): Reflect API changes.
11014 (dwarf2_get_pc_bounds): Update comments.
11015 (dwarf2_record_block_ranges): Likewise.
11016 (read_full_die_1): Change implementation to reprocess attributes that
11017 need str_offsets_base and addr_base.
11018 (partial_die_info::read): Likewise.
11019 (read_attribute_reprocess): New function definition.
11020 (read_attribute_value): Change API to take an additional out parameter,
11021 need_reprocess. Handle DW_FORM_rnglistx. No longer trigger an error
11022 when a non-dwo compile unit has index based attributes.
11023 (read_attribute): Reflect API changes.
11024 (read_addr_index_1): Reflect API changes. Update comments.
11025 (dwarf2_read_addr_index_data): Reflect API changes.
11026 (dwarf2_read_addr_index): Likewise.
11027 (read_str_index): Change API and implementation. This becomes a helper
11028 to be used by the new string index related methods. Update error
11029 message and comments.
11030 (read_dwo_str_index): New function definition.
11031 (read_stub_str_index): Likewise.
11032 * dwarf2read.h (dwarf2_per_objfile): Add str_offsets field.
11033 * symfile.h (dwarf2_debug_sections): Likewise.
11034 * xcoffread.c (dwarf2_debug_sections): Likewise.
11035
0cac9354
SM
110362020-01-13 Simon Marchi <simon.marchi@efficios.com>
11037
11038 * gdbcore.h (struct core_fns) <core_read_registers>: Change
11039 core_reg_sect type to gdb_byte *.
11040 * arm-nbsd-nat.c (fetch_elfcore_registers): Likewise.
11041 * cris-tdep.c (fetch_core_registers): Likewise.
11042 * corelow.c (core_target::get_core_register_section): Change
11043 type of `contents` to gdb::byte_vector.
11044
9a6d629c
AB
110452020-01-13 Andrew Burgess <andrew.burgess@embecosm.com>
11046
11047 * tui/tui-wingeneral.c (box_win): Position the title in the center
11048 of the border.
11049
d8b2f9e3
SM
110502020-01-13 Simon Marchi <simon.marchi@polymtl.ca>
11051
11052 * corelow.c (core_target::get_core_register_section): Use
11053 std::vector instead of alloca.
11054
bb564c58
SM
110552020-01-13 Simon Marchi <simon.marchi@efficios.com>
11056
11057 * warning.m4: Add -Wmissing-declarations to build_warnings.
11058 * configure: Re-generate.
11059
6b366111
SM
110602020-01-13 Simon Marchi <simon.marchi@efficios.com>
11061
11062 * python/python.c (init__gdb_module): Add declaration.
11063
6c265988
SM
110642020-01-13 Simon Marchi <simon.marchi@efficios.com>
11065
11066 * aarch64-fbsd-nat.c (_initialize_aarch64_fbsd_nat): Add declaration.
11067 * aarch64-fbsd-tdep.c (_initialize_aarch64_fbsd_tdep): Add declaration.
11068 * aarch64-linux-nat.c (_initialize_aarch64_linux_nat): Add declaration.
11069 * aarch64-linux-tdep.c (_initialize_aarch64_linux_tdep): Add declaration.
11070 * aarch64-newlib-tdep.c (_initialize_aarch64_newlib_tdep): Add declaration.
11071 * aarch64-tdep.c (_initialize_aarch64_tdep): Add declaration.
11072 * ada-exp.y (_initialize_ada_exp): Add declaration.
11073 * ada-lang.c (_initialize_ada_language): Add declaration.
11074 * ada-tasks.c (_initialize_tasks): Add declaration.
11075 * agent.c (_initialize_agent): Add declaration.
11076 * aix-thread.c (_initialize_aix_thread): Add declaration.
11077 * alpha-bsd-nat.c (_initialize_alphabsd_nat): Add declaration.
11078 * alpha-linux-nat.c (_initialize_alpha_linux_nat): Add declaration.
11079 * alpha-linux-tdep.c (_initialize_alpha_linux_tdep): Add declaration.
11080 * alpha-nbsd-tdep.c (_initialize_alphanbsd_tdep): Add declaration.
11081 * alpha-obsd-tdep.c (_initialize_alphaobsd_tdep): Add declaration.
11082 * alpha-tdep.c (_initialize_alpha_tdep): Add declaration.
11083 * amd64-darwin-tdep.c (_initialize_amd64_darwin_tdep): Add declaration.
11084 * amd64-dicos-tdep.c (_initialize_amd64_dicos_tdep): Add declaration.
11085 * amd64-fbsd-nat.c (_initialize_amd64fbsd_nat): Add declaration.
11086 * amd64-fbsd-tdep.c (_initialize_amd64fbsd_tdep): Add declaration.
11087 * amd64-linux-nat.c (_initialize_amd64_linux_nat): Add declaration.
11088 * amd64-linux-tdep.c (_initialize_amd64_linux_tdep): Add declaration.
11089 * amd64-nbsd-nat.c (_initialize_amd64nbsd_nat): Add declaration.
11090 * amd64-nbsd-tdep.c (_initialize_amd64nbsd_tdep): Add declaration.
11091 * amd64-obsd-nat.c (_initialize_amd64obsd_nat): Add declaration.
11092 * amd64-obsd-tdep.c (_initialize_amd64obsd_tdep): Add declaration.
11093 * amd64-sol2-tdep.c (_initialize_amd64_sol2_tdep): Add declaration.
11094 * amd64-tdep.c (_initialize_amd64_tdep): Add declaration.
11095 * amd64-windows-nat.c (_initialize_amd64_windows_nat): Add declaration.
11096 * amd64-windows-tdep.c (_initialize_amd64_windows_tdep): Add declaration.
11097 * annotate.c (_initialize_annotate): Add declaration.
11098 * arc-newlib-tdep.c (_initialize_arc_newlib_tdep): Add declaration.
11099 * arc-tdep.c (_initialize_arc_tdep): Add declaration.
11100 * arch-utils.c (_initialize_gdbarch_utils): Add declaration.
11101 * arm-fbsd-nat.c (_initialize_arm_fbsd_nat): Add declaration.
11102 * arm-fbsd-tdep.c (_initialize_arm_fbsd_tdep): Add declaration.
11103 * arm-linux-nat.c (_initialize_arm_linux_nat): Add declaration.
11104 * arm-linux-tdep.c (_initialize_arm_linux_tdep): Add declaration.
11105 * arm-nbsd-nat.c (_initialize_arm_netbsd_nat): Add declaration.
11106 * arm-nbsd-tdep.c (_initialize_arm_netbsd_tdep): Add declaration.
11107 * arm-obsd-tdep.c (_initialize_armobsd_tdep): Add declaration.
11108 * arm-pikeos-tdep.c (_initialize_arm_pikeos_tdep): Add declaration.
11109 * arm-symbian-tdep.c (_initialize_arm_symbian_tdep): Add declaration.
11110 * arm-tdep.c (_initialize_arm_tdep): Add declaration.
11111 * arm-wince-tdep.c (_initialize_arm_wince_tdep): Add declaration.
11112 * auto-load.c (_initialize_auto_load): Add declaration.
11113 * auxv.c (_initialize_auxv): Add declaration.
11114 * avr-tdep.c (_initialize_avr_tdep): Add declaration.
11115 * ax-gdb.c (_initialize_ax_gdb): Add declaration.
11116 * bfin-linux-tdep.c (_initialize_bfin_linux_tdep): Add declaration.
11117 * bfin-tdep.c (_initialize_bfin_tdep): Add declaration.
11118 * break-catch-sig.c (_initialize_break_catch_sig): Add declaration.
11119 * break-catch-syscall.c (_initialize_break_catch_syscall): Add declaration.
11120 * break-catch-throw.c (_initialize_break_catch_throw): Add declaration.
11121 * breakpoint.c (_initialize_breakpoint): Add declaration.
11122 * bsd-uthread.c (_initialize_bsd_uthread): Add declaration.
11123 * btrace.c (_initialize_btrace): Add declaration.
11124 * charset.c (_initialize_charset): Add declaration.
11125 * cli/cli-cmds.c (_initialize_cli_cmds): Add declaration.
11126 * cli/cli-dump.c (_initialize_cli_dump): Add declaration.
11127 * cli/cli-interp.c (_initialize_cli_interp): Add declaration.
11128 * cli/cli-logging.c (_initialize_cli_logging): Add declaration.
11129 * cli/cli-script.c (_initialize_cli_script): Add declaration.
11130 * cli/cli-style.c (_initialize_cli_style): Add declaration.
11131 * coff-pe-read.c (_initialize_coff_pe_read): Add declaration.
11132 * coffread.c (_initialize_coffread): Add declaration.
11133 * compile/compile-cplus-types.c (_initialize_compile_cplus_types): Add declaration.
11134 * compile/compile.c (_initialize_compile): Add declaration.
11135 * complaints.c (_initialize_complaints): Add declaration.
11136 * completer.c (_initialize_completer): Add declaration.
11137 * copying.c (_initialize_copying): Add declaration.
11138 * corefile.c (_initialize_core): Add declaration.
11139 * corelow.c (_initialize_corelow): Add declaration.
11140 * cp-abi.c (_initialize_cp_abi): Add declaration.
11141 * cp-namespace.c (_initialize_cp_namespace): Add declaration.
11142 * cp-support.c (_initialize_cp_support): Add declaration.
11143 * cp-valprint.c (_initialize_cp_valprint): Add declaration.
11144 * cris-linux-tdep.c (_initialize_cris_linux_tdep): Add declaration.
11145 * cris-tdep.c (_initialize_cris_tdep): Add declaration.
11146 * csky-linux-tdep.c (_initialize_csky_linux_tdep): Add declaration.
11147 * csky-tdep.c (_initialize_csky_tdep): Add declaration.
11148 * ctfread.c (_initialize_ctfread): Add declaration.
11149 * d-lang.c (_initialize_d_language): Add declaration.
11150 * darwin-nat-info.c (_initialize_darwin_info_commands): Add declaration.
11151 * darwin-nat.c (_initialize_darwin_nat): Add declaration.
11152 * dbxread.c (_initialize_dbxread): Add declaration.
11153 * dcache.c (_initialize_dcache): Add declaration.
11154 * disasm-selftests.c (_initialize_disasm_selftests): Add declaration.
11155 * disasm.c (_initialize_disasm): Add declaration.
11156 * dtrace-probe.c (_initialize_dtrace_probe): Add declaration.
11157 * dummy-frame.c (_initialize_dummy_frame): Add declaration.
11158 * dwarf-index-cache.c (_initialize_index_cache): Add declaration.
11159 * dwarf-index-write.c (_initialize_dwarf_index_write): Add declaration.
11160 * dwarf2-frame-tailcall.c (_initialize_tailcall_frame): Add declaration.
11161 * dwarf2-frame.c (_initialize_dwarf2_frame): Add declaration.
11162 * dwarf2expr.c (_initialize_dwarf2expr): Add declaration.
11163 * dwarf2loc.c (_initialize_dwarf2loc): Add declaration.
11164 * dwarf2read.c (_initialize_dwarf2_read): Add declaration.
11165 * elfread.c (_initialize_elfread): Add declaration.
11166 * exec.c (_initialize_exec): Add declaration.
11167 * extension.c (_initialize_extension): Add declaration.
11168 * f-lang.c (_initialize_f_language): Add declaration.
11169 * f-valprint.c (_initialize_f_valprint): Add declaration.
11170 * fbsd-nat.c (_initialize_fbsd_nat): Add declaration.
11171 * fbsd-tdep.c (_initialize_fbsd_tdep): Add declaration.
11172 * filesystem.c (_initialize_filesystem): Add declaration.
11173 * findcmd.c (_initialize_mem_search): Add declaration.
11174 * findvar.c (_initialize_findvar): Add declaration.
11175 * fork-child.c (_initialize_fork_child): Add declaration.
11176 * frame-base.c (_initialize_frame_base): Add declaration.
11177 * frame-unwind.c (_initialize_frame_unwind): Add declaration.
11178 * frame.c (_initialize_frame): Add declaration.
11179 * frv-linux-tdep.c (_initialize_frv_linux_tdep): Add declaration.
11180 * frv-tdep.c (_initialize_frv_tdep): Add declaration.
11181 * ft32-tdep.c (_initialize_ft32_tdep): Add declaration.
11182 * gcore.c (_initialize_gcore): Add declaration.
11183 * gdb-demangle.c (_initialize_gdb_demangle): Add declaration.
11184 * gdb_bfd.c (_initialize_gdb_bfd): Add declaration.
11185 * gdbarch-selftests.c (_initialize_gdbarch_selftests): Add declaration.
11186 * gdbarch.c (_initialize_gdbarch): Add declaration.
11187 * gdbtypes.c (_initialize_gdbtypes): Add declaration.
11188 * gnu-nat.c (_initialize_gnu_nat): Add declaration.
11189 * gnu-v2-abi.c (_initialize_gnu_v2_abi): Add declaration.
11190 * gnu-v3-abi.c (_initialize_gnu_v3_abi): Add declaration.
11191 * go-lang.c (_initialize_go_language): Add declaration.
11192 * go32-nat.c (_initialize_go32_nat): Add declaration.
11193 * guile/guile.c (_initialize_guile): Add declaration.
11194 * h8300-tdep.c (_initialize_h8300_tdep): Add declaration.
11195 * hppa-linux-nat.c (_initialize_hppa_linux_nat): Add declaration.
11196 * hppa-linux-tdep.c (_initialize_hppa_linux_tdep): Add declaration.
11197 * hppa-nbsd-nat.c (_initialize_hppanbsd_nat): Add declaration.
11198 * hppa-nbsd-tdep.c (_initialize_hppanbsd_tdep): Add declaration.
11199 * hppa-obsd-nat.c (_initialize_hppaobsd_nat): Add declaration.
11200 * hppa-obsd-tdep.c (_initialize_hppabsd_tdep): Add declaration.
11201 * hppa-tdep.c (_initialize_hppa_tdep): Add declaration.
11202 * i386-bsd-nat.c (_initialize_i386bsd_nat): Add declaration.
11203 * i386-cygwin-tdep.c (_initialize_i386_cygwin_tdep): Add declaration.
11204 * i386-darwin-nat.c (_initialize_i386_darwin_nat): Add declaration.
11205 * i386-darwin-tdep.c (_initialize_i386_darwin_tdep): Add declaration.
11206 * i386-dicos-tdep.c (_initialize_i386_dicos_tdep): Add declaration.
11207 * i386-fbsd-nat.c (_initialize_i386fbsd_nat): Add declaration.
11208 * i386-fbsd-tdep.c (_initialize_i386fbsd_tdep): Add declaration.
11209 * i386-gnu-nat.c (_initialize_i386gnu_nat): Add declaration.
11210 * i386-gnu-tdep.c (_initialize_i386gnu_tdep): Add declaration.
11211 * i386-go32-tdep.c (_initialize_i386_go32_tdep): Add declaration.
11212 * i386-linux-nat.c (_initialize_i386_linux_nat): Add declaration.
11213 * i386-linux-tdep.c (_initialize_i386_linux_tdep): Add declaration.
11214 * i386-nbsd-nat.c (_initialize_i386nbsd_nat): Add declaration.
11215 * i386-nbsd-tdep.c (_initialize_i386nbsd_tdep): Add declaration.
11216 * i386-nto-tdep.c (_initialize_i386nto_tdep): Add declaration.
11217 * i386-obsd-nat.c (_initialize_i386obsd_nat): Add declaration.
11218 * i386-obsd-tdep.c (_initialize_i386obsd_tdep): Add declaration.
11219 * i386-sol2-nat.c (_initialize_amd64_sol2_nat): Add declaration.
11220 * i386-sol2-tdep.c (_initialize_i386_sol2_tdep): Add declaration.
11221 * i386-tdep.c (_initialize_i386_tdep): Add declaration.
11222 * i386-windows-nat.c (_initialize_i386_windows_nat): Add declaration.
11223 * ia64-libunwind-tdep.c (_initialize_libunwind_frame): Add declaration.
11224 * ia64-linux-nat.c (_initialize_ia64_linux_nat): Add declaration.
11225 * ia64-linux-tdep.c (_initialize_ia64_linux_tdep): Add declaration.
11226 * ia64-tdep.c (_initialize_ia64_tdep): Add declaration.
11227 * ia64-vms-tdep.c (_initialize_ia64_vms_tdep): Add declaration.
11228 * infcall.c (_initialize_infcall): Add declaration.
11229 * infcmd.c (_initialize_infcmd): Add declaration.
11230 * inflow.c (_initialize_inflow): Add declaration.
11231 * infrun.c (_initialize_infrun): Add declaration.
11232 * interps.c (_initialize_interpreter): Add declaration.
11233 * iq2000-tdep.c (_initialize_iq2000_tdep): Add declaration.
11234 * jit.c (_initialize_jit): Add declaration.
11235 * language.c (_initialize_language): Add declaration.
11236 * linux-fork.c (_initialize_linux_fork): Add declaration.
11237 * linux-nat.c (_initialize_linux_nat): Add declaration.
11238 * linux-tdep.c (_initialize_linux_tdep): Add declaration.
11239 * linux-thread-db.c (_initialize_thread_db): Add declaration.
11240 * lm32-tdep.c (_initialize_lm32_tdep): Add declaration.
11241 * m2-lang.c (_initialize_m2_language): Add declaration.
11242 * m32c-tdep.c (_initialize_m32c_tdep): Add declaration.
11243 * m32r-linux-nat.c (_initialize_m32r_linux_nat): Add declaration.
11244 * m32r-linux-tdep.c (_initialize_m32r_linux_tdep): Add declaration.
11245 * m32r-tdep.c (_initialize_m32r_tdep): Add declaration.
11246 * m68hc11-tdep.c (_initialize_m68hc11_tdep): Add declaration.
11247 * m68k-bsd-nat.c (_initialize_m68kbsd_nat): Add declaration.
11248 * m68k-bsd-tdep.c (_initialize_m68kbsd_tdep): Add declaration.
11249 * m68k-linux-nat.c (_initialize_m68k_linux_nat): Add declaration.
11250 * m68k-linux-tdep.c (_initialize_m68k_linux_tdep): Add declaration.
11251 * m68k-tdep.c (_initialize_m68k_tdep): Add declaration.
11252 * machoread.c (_initialize_machoread): Add declaration.
11253 * macrocmd.c (_initialize_macrocmd): Add declaration.
11254 * macroscope.c (_initialize_macroscope): Add declaration.
11255 * maint-test-options.c (_initialize_maint_test_options): Add declaration.
11256 * maint-test-settings.c (_initialize_maint_test_settings): Add declaration.
11257 * maint.c (_initialize_maint_cmds): Add declaration.
11258 * mdebugread.c (_initialize_mdebugread): Add declaration.
11259 * memattr.c (_initialize_mem): Add declaration.
11260 * mep-tdep.c (_initialize_mep_tdep): Add declaration.
11261 * mi/mi-cmd-env.c (_initialize_mi_cmd_env): Add declaration.
11262 * mi/mi-cmds.c (_initialize_mi_cmds): Add declaration.
11263 * mi/mi-interp.c (_initialize_mi_interp): Add declaration.
11264 * mi/mi-main.c (_initialize_mi_main): Add declaration.
11265 * microblaze-linux-tdep.c (_initialize_microblaze_linux_tdep): Add declaration.
11266 * microblaze-tdep.c (_initialize_microblaze_tdep): Add declaration.
11267 * mips-fbsd-nat.c (_initialize_mips_fbsd_nat): Add declaration.
11268 * mips-fbsd-tdep.c (_initialize_mips_fbsd_tdep): Add declaration.
11269 * mips-linux-nat.c (_initialize_mips_linux_nat): Add declaration.
11270 * mips-linux-tdep.c (_initialize_mips_linux_tdep): Add declaration.
11271 * mips-nbsd-nat.c (_initialize_mipsnbsd_nat): Add declaration.
11272 * mips-nbsd-tdep.c (_initialize_mipsnbsd_tdep): Add declaration.
11273 * mips-sde-tdep.c (_initialize_mips_sde_tdep): Add declaration.
11274 * mips-tdep.c (_initialize_mips_tdep): Add declaration.
11275 * mips64-obsd-nat.c (_initialize_mips64obsd_nat): Add declaration.
11276 * mips64-obsd-tdep.c (_initialize_mips64obsd_tdep): Add declaration.
11277 * mipsread.c (_initialize_mipsread): Add declaration.
11278 * mn10300-linux-tdep.c (_initialize_mn10300_linux_tdep): Add declaration.
11279 * mn10300-tdep.c (_initialize_mn10300_tdep): Add declaration.
11280 * moxie-tdep.c (_initialize_moxie_tdep): Add declaration.
11281 * msp430-tdep.c (_initialize_msp430_tdep): Add declaration.
11282 * nds32-tdep.c (_initialize_nds32_tdep): Add declaration.
11283 * nios2-linux-tdep.c (_initialize_nios2_linux_tdep): Add declaration.
11284 * nios2-tdep.c (_initialize_nios2_tdep): Add declaration.
11285 * nto-procfs.c (_initialize_procfs): Add declaration.
11286 * objc-lang.c (_initialize_objc_language): Add declaration.
11287 * observable.c (_initialize_observer): Add declaration.
11288 * opencl-lang.c (_initialize_opencl_language): Add declaration.
11289 * or1k-linux-tdep.c (_initialize_or1k_linux_tdep): Add declaration.
11290 * or1k-tdep.c (_initialize_or1k_tdep): Add declaration.
11291 * osabi.c (_initialize_gdb_osabi): Add declaration.
11292 * osdata.c (_initialize_osdata): Add declaration.
11293 * p-valprint.c (_initialize_pascal_valprint): Add declaration.
11294 * parse.c (_initialize_parse): Add declaration.
11295 * ppc-fbsd-nat.c (_initialize_ppcfbsd_nat): Add declaration.
11296 * ppc-fbsd-tdep.c (_initialize_ppcfbsd_tdep): Add declaration.
11297 * ppc-linux-nat.c (_initialize_ppc_linux_nat): Add declaration.
11298 * ppc-linux-tdep.c (_initialize_ppc_linux_tdep): Add declaration.
11299 * ppc-nbsd-nat.c (_initialize_ppcnbsd_nat): Add declaration.
11300 * ppc-nbsd-tdep.c (_initialize_ppcnbsd_tdep): Add declaration.
11301 * ppc-obsd-nat.c (_initialize_ppcobsd_nat): Add declaration.
11302 * ppc-obsd-tdep.c (_initialize_ppcobsd_tdep): Add declaration.
11303 * printcmd.c (_initialize_printcmd): Add declaration.
11304 * probe.c (_initialize_probe): Add declaration.
11305 * proc-api.c (_initialize_proc_api): Add declaration.
11306 * proc-events.c (_initialize_proc_events): Add declaration.
11307 * proc-service.c (_initialize_proc_service): Add declaration.
11308 * procfs.c (_initialize_procfs): Add declaration.
11309 * producer.c (_initialize_producer): Add declaration.
11310 * psymtab.c (_initialize_psymtab): Add declaration.
11311 * python/python.c (_initialize_python): Add declaration.
11312 * ravenscar-thread.c (_initialize_ravenscar): Add declaration.
11313 * record-btrace.c (_initialize_record_btrace): Add declaration.
11314 * record-full.c (_initialize_record_full): Add declaration.
11315 * record.c (_initialize_record): Add declaration.
11316 * regcache-dump.c (_initialize_regcache_dump): Add declaration.
11317 * regcache.c (_initialize_regcache): Add declaration.
11318 * reggroups.c (_initialize_reggroup): Add declaration.
11319 * remote-notif.c (_initialize_notif): Add declaration.
11320 * remote-sim.c (_initialize_remote_sim): Add declaration.
11321 * remote.c (_initialize_remote): Add declaration.
11322 * reverse.c (_initialize_reverse): Add declaration.
11323 * riscv-fbsd-nat.c (_initialize_riscv_fbsd_nat): Add declaration.
11324 * riscv-fbsd-tdep.c (_initialize_riscv_fbsd_tdep): Add declaration.
11325 * riscv-linux-nat.c (_initialize_riscv_linux_nat): Add declaration.
11326 * riscv-linux-tdep.c (_initialize_riscv_linux_tdep): Add declaration.
11327 * riscv-tdep.c (_initialize_riscv_tdep): Add declaration.
11328 * rl78-tdep.c (_initialize_rl78_tdep): Add declaration.
11329 * rs6000-aix-tdep.c (_initialize_rs6000_aix_tdep): Add declaration.
11330 * rs6000-lynx178-tdep.c (_initialize_rs6000_lynx178_tdep):
11331 Add declaration.
11332 * rs6000-nat.c (_initialize_rs6000_nat): Add declaration.
11333 * rs6000-tdep.c (_initialize_rs6000_tdep): Add declaration.
11334 * run-on-main-thread.c (_initialize_run_on_main_thread): Add declaration.
11335 * rust-exp.y (_initialize_rust_exp): Add declaration.
11336 * rx-tdep.c (_initialize_rx_tdep): Add declaration.
11337 * s12z-tdep.c (_initialize_s12z_tdep): Add declaration.
11338 * s390-linux-nat.c (_initialize_s390_nat): Add declaration.
11339 * s390-linux-tdep.c (_initialize_s390_linux_tdep): Add declaration.
11340 * s390-tdep.c (_initialize_s390_tdep): Add declaration.
11341 * score-tdep.c (_initialize_score_tdep): Add declaration.
11342 * ser-go32.c (_initialize_ser_dos): Add declaration.
11343 * ser-mingw.c (_initialize_ser_windows): Add declaration.
11344 * ser-pipe.c (_initialize_ser_pipe): Add declaration.
11345 * ser-tcp.c (_initialize_ser_tcp): Add declaration.
11346 * ser-uds.c (_initialize_ser_socket): Add declaration.
11347 * ser-unix.c (_initialize_ser_hardwire): Add declaration.
11348 * serial.c (_initialize_serial): Add declaration.
11349 * sh-linux-tdep.c (_initialize_sh_linux_tdep): Add declaration.
11350 * sh-nbsd-nat.c (_initialize_shnbsd_nat): Add declaration.
11351 * sh-nbsd-tdep.c (_initialize_shnbsd_tdep): Add declaration.
11352 * sh-tdep.c (_initialize_sh_tdep): Add declaration.
11353 * skip.c (_initialize_step_skip): Add declaration.
11354 * sol-thread.c (_initialize_sol_thread): Add declaration.
11355 * solib-aix.c (_initialize_solib_aix): Add declaration.
11356 * solib-darwin.c (_initialize_darwin_solib): Add declaration.
11357 * solib-dsbt.c (_initialize_dsbt_solib): Add declaration.
11358 * solib-frv.c (_initialize_frv_solib): Add declaration.
11359 * solib-svr4.c (_initialize_svr4_solib): Add declaration.
11360 * solib-target.c (_initialize_solib_target): Add declaration.
11361 * solib.c (_initialize_solib): Add declaration.
11362 * source-cache.c (_initialize_source_cache): Add declaration.
11363 * source.c (_initialize_source): Add declaration.
11364 * sparc-linux-nat.c (_initialize_sparc_linux_nat): Add declaration.
11365 * sparc-linux-tdep.c (_initialize_sparc_linux_tdep): Add declaration.
11366 * sparc-nat.c (_initialize_sparc_nat): Add declaration.
11367 * sparc-nbsd-nat.c (_initialize_sparcnbsd_nat): Add declaration.
11368 * sparc-nbsd-tdep.c (_initialize_sparcnbsd_tdep): Add declaration.
11369 * sparc-obsd-tdep.c (_initialize_sparc32obsd_tdep): Add declaration.
11370 * sparc-sol2-tdep.c (_initialize_sparc_sol2_tdep): Add declaration.
11371 * sparc-tdep.c (_initialize_sparc_tdep): Add declaration.
11372 * sparc64-fbsd-nat.c (_initialize_sparc64fbsd_nat): Add declaration.
11373 * sparc64-fbsd-tdep.c (_initialize_sparc64fbsd_tdep): Add declaration.
11374 * sparc64-linux-nat.c (_initialize_sparc64_linux_nat): Add declaration.
11375 * sparc64-linux-tdep.c (_initialize_sparc64_linux_tdep): Add declaration.
11376 * sparc64-nat.c (_initialize_sparc64_nat): Add declaration.
11377 * sparc64-nbsd-nat.c (_initialize_sparc64nbsd_nat): Add declaration.
11378 * sparc64-nbsd-tdep.c (_initialize_sparc64nbsd_tdep): Add declaration.
11379 * sparc64-obsd-nat.c (_initialize_sparc64obsd_nat): Add declaration.
11380 * sparc64-obsd-tdep.c (_initialize_sparc64obsd_tdep): Add declaration.
11381 * sparc64-sol2-tdep.c (_initialize_sparc64_sol2_tdep): Add declaration.
11382 * sparc64-tdep.c (_initialize_sparc64_adi_tdep): Add declaration.
11383 * stabsread.c (_initialize_stabsread): Add declaration.
11384 * stack.c (_initialize_stack): Add declaration.
11385 * stap-probe.c (_initialize_stap_probe): Add declaration.
11386 * std-regs.c (_initialize_frame_reg): Add declaration.
11387 * symfile-debug.c (_initialize_symfile_debug): Add declaration.
11388 * symfile-mem.c (_initialize_symfile_mem): Add declaration.
11389 * symfile.c (_initialize_symfile): Add declaration.
11390 * symmisc.c (_initialize_symmisc): Add declaration.
11391 * symtab.c (_initialize_symtab): Add declaration.
11392 * target.c (_initialize_target): Add declaration.
11393 * target-connection.c (_initialize_target_connection): Add
11394 declaration.
11395 * target-dcache.c (_initialize_target_dcache): Add declaration.
11396 * target-descriptions.c (_initialize_target_descriptions): Add declaration.
11397 * thread.c (_initialize_thread): Add declaration.
11398 * tic6x-linux-tdep.c (_initialize_tic6x_linux_tdep): Add declaration.
11399 * tic6x-tdep.c (_initialize_tic6x_tdep): Add declaration.
11400 * tilegx-linux-nat.c (_initialize_tile_linux_nat): Add declaration.
11401 * tilegx-linux-tdep.c (_initialize_tilegx_linux_tdep): Add declaration.
11402 * tilegx-tdep.c (_initialize_tilegx_tdep): Add declaration.
11403 * tracectf.c (_initialize_ctf): Add declaration.
11404 * tracefile-tfile.c (_initialize_tracefile_tfile): Add declaration.
11405 * tracefile.c (_initialize_tracefile): Add declaration.
11406 * tracepoint.c (_initialize_tracepoint): Add declaration.
11407 * tui/tui-hooks.c (_initialize_tui_hooks): Add declaration.
11408 * tui/tui-interp.c (_initialize_tui_interp): Add declaration.
11409 * tui/tui-layout.c (_initialize_tui_layout): Add declaration.
11410 * tui/tui-regs.c (_initialize_tui_regs): Add declaration.
11411 * tui/tui-stack.c (_initialize_tui_stack): Add declaration.
11412 * tui/tui-win.c (_initialize_tui_win): Add declaration.
11413 * tui/tui.c (_initialize_tui): Add declaration.
11414 * typeprint.c (_initialize_typeprint): Add declaration.
11415 * ui-style.c (_initialize_ui_style): Add declaration.
11416 * unittests/array-view-selftests.c (_initialize_array_view_selftests): Add declaration.
11417 * unittests/child-path-selftests.c (_initialize_child_path_selftests): Add declaration.
11418 * unittests/cli-utils-selftests.c (_initialize_cli_utils_selftests): Add declaration.
11419 * unittests/common-utils-selftests.c (_initialize_common_utils_selftests): Add declaration.
11420 * unittests/copy_bitwise-selftests.c (_initialize_copy_bitwise_utils_selftests): Add declaration.
11421 * unittests/environ-selftests.c (_initialize_environ_selftests): Add declaration.
11422 * unittests/filtered_iterator-selftests.c
11423 (_initialize_filtered_iterator_selftests): Add declaration.
11424 * unittests/format_pieces-selftests.c (_initialize_format_pieces_selftests): Add declaration.
11425 * unittests/function-view-selftests.c (_initialize_function_view_selftests): Add declaration.
11426 * unittests/help-doc-selftests.c (_initialize_help_doc_selftests): Add declaration.
11427 * unittests/lookup_name_info-selftests.c (_initialize_lookup_name_info_selftests): Add declaration.
11428 * unittests/main-thread-selftests.c
11429 (_initialize_main_thread_selftests): Add declaration.
11430 * unittests/memory-map-selftests.c (_initialize_memory_map_selftests): Add declaration.
11431 * unittests/memrange-selftests.c (_initialize_memrange_selftests): Add declaration.
11432 * unittests/mkdir-recursive-selftests.c (_initialize_mkdir_recursive_selftests): Add declaration.
11433 * unittests/observable-selftests.c (_initialize_observer_selftest): Add declaration.
11434 * unittests/offset-type-selftests.c (_initialize_offset_type_selftests): Add declaration.
11435 * unittests/optional-selftests.c (_initialize_optional_selftests): Add declaration.
11436 * unittests/parse-connection-spec-selftests.c (_initialize_parse_connection_spec_selftests): Add declaration.
11437 * unittests/rsp-low-selftests.c (_initialize_rsp_low_selftests): Add declaration.
11438 * unittests/scoped_fd-selftests.c (_initialize_scoped_fd_selftests): Add declaration.
11439 * unittests/scoped_mmap-selftests.c (_initialize_scoped_mmap_selftests): Add declaration.
11440 * unittests/scoped_restore-selftests.c (_initialize_scoped_restore_selftests): Add declaration.
11441 * unittests/string_view-selftests.c (_initialize_string_view_selftests): Add declaration.
11442 * unittests/style-selftests.c (_initialize_style_selftest): Add declaration.
11443 * unittests/tracepoint-selftests.c (_initialize_tracepoint_selftests): Add declaration.
11444 * unittests/tui-selftests.c (_initialize_tui_selftest): Add
11445 declaration.
11446 * unittests/unpack-selftests.c (_initialize_unpack_selftests): Add declaration.
11447 * unittests/utils-selftests.c (_initialize_utils_selftests): Add declaration.
11448 * unittests/vec-utils-selftests.c (_initialize_vec_utils_selftests): Add declaration.
11449 * unittests/xml-utils-selftests.c (_initialize_xml_utils): Add declaration.
11450 * user-regs.c (_initialize_user_regs): Add declaration.
11451 * utils.c (_initialize_utils): Add declaration.
11452 * v850-tdep.c (_initialize_v850_tdep): Add declaration.
11453 * valops.c (_initialize_valops): Add declaration.
11454 * valprint.c (_initialize_valprint): Add declaration.
11455 * value.c (_initialize_values): Add declaration.
11456 * varobj.c (_initialize_varobj): Add declaration.
11457 * vax-bsd-nat.c (_initialize_vaxbsd_nat): Add declaration.
11458 * vax-nbsd-tdep.c (_initialize_vaxnbsd_tdep): Add declaration.
11459 * vax-tdep.c (_initialize_vax_tdep): Add declaration.
11460 * windows-nat.c (_initialize_windows_nat): Add declaration.
11461 (_initialize_check_for_gdb_ini): Add declaration.
11462 (_initialize_loadable): Add declaration.
11463 * windows-tdep.c (_initialize_windows_tdep): Add declaration.
11464 * x86-bsd-nat.c (_initialize_x86_bsd_nat): Add declaration.
11465 * x86-linux-nat.c (_initialize_x86_linux_nat): Add declaration.
11466 * xcoffread.c (_initialize_xcoffread): Add declaration.
11467 * xml-support.c (_initialize_xml_support): Add declaration.
11468 * xstormy16-tdep.c (_initialize_xstormy16_tdep): Add declaration.
11469 * xtensa-linux-nat.c (_initialize_xtensa_linux_nat): Add declaration.
11470 * xtensa-linux-tdep.c (_initialize_xtensa_linux_tdep): Add declaration.
11471 * xtensa-tdep.c (_initialize_xtensa_tdep): Add declaration.
11472
e2de1eec
SM
114732020-01-13 Simon Marchi <simon.marchi@polymtl.ca>
11474
11475 * regformats/regdat.sh: Generate declaration for init function.
11476
e0037b4c
SM
114772020-01-13 Simon Marchi <simon.marchi@polymtl.ca>
11478
11479 * remote-sim.c (next_pid, INITIAL_PID, sim_inferior_data): Move
11480 up.
11481 (gdbsim_target) <get_inferior_data_by_ptid, resume_one_inferior,
11482 close_one_inferior>: New methods.
11483 (get_sim_inferior_data_by_ptid): Move to gdbsim_target,
11484 pass down target to find_inferior_pid.
11485 (gdbsim_target::fetch_registers, gdbsim_target::store_registers):
11486 Pass down target to find_inferior_ptid.
11487 (gdbsim_target::create_inferior): Pass down target to
11488 add_thread_silent.
11489 (gdbsim_close_inferior): Move to gdbsim_close_inferior, pass
11490 target down to find_inferior_ptid and switch_to_thread.
11491 (gdbsim_target::close): Update to call close_one_inferior.
11492 (struct resume_data): Remove.
11493 (gdbsim_resume_inferior): Move to gdbsim_target. Take arguments
11494 directly, rather than through a void pointer.
11495 (gdbsim_target::resume): Update to call resume_one_inferior.
11496
58920b5b
SM
114972020-01-12 Simon Marchi <simon.marchi@polymtl.ca>
11498
11499 * gdbsupport/gdb_wait.c: Include gdb_wait.h.
11500
4ec89149
PA
115012020-01-12 Pedro Alves <palves@redhat.com>
11502
11503 * bsd-kvm.c (bsd_kvm_target::close): Call exit_inferior_silent
11504 directly for the current inferior instead of
11505 discard_all_inferiors.
11506 (discard_all_inferiors): Delete.
11507
7c392d1d
TT
115082020-01-11 Tom Tromey <tom@tromey.com>
11509
11510 * tui/tui-wingeneral.c (box_win): Check cli_styling.
11511 * tui/tui-winsource.c (tui_source_window_base::refill): Use
11512 deprecated_safe_get_selected_frame.
11513
d9ebdab7
TBA
115142020-01-10 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
11515
11516 * inferior.c (print_inferior): Switch inferior before printing it.
11517
f3c469b9
PA
115182020-01-10 Aleksandar Paunovic <aleksandar.paunovic@intel.com>
11519 Pedro Alves <palves@redhat.com>
11520
11521 * progspace-and-thread.c (switch_to_program_space_and_thread):
11522 Assert there's an inferior for PSPACE. Use
11523 switch_to_inferior_no_thread to switch the inferior too.
11524 * progspace.c (program_space::~program_space): Call
11525 clear_symtab_users here, with SYMFILE_DEFER_BP_RESET.
11526 (program_space::free_all_objfiles): Don't call clear_symtab_users
11527 here.
11528 * symfile.c (symbol_file_clear): Call clear_symtab_users here.
11529
65c574f6
PA
115302020-01-10 Pedro Alves <palves@redhat.com>
11531
11532 * NEWS: Mention multi-target debugging, "info connections", and
11533 "add-inferior -no-connection".
11534
2f4fcf00
PA
115352020-01-10 Pedro Alves <palves@redhat.com>
11536
11537 * infrun.c: Include "target-connection.h".
11538 (check_multi_target_resumption): New.
11539 (proceed): Call it.
11540 * target-connection.c (make_target_connection_string): Make
11541 extern.
11542 * target-connection.h (make_target_connection_string): Declare.
11543
121b3efd
PA
115442020-01-10 Pedro Alves <palves@redhat.com>
11545
11546 * Makefile.in (COMMON_SFILES): Add target-connection.c.
11547 * inferior.c (uiout_field_connection): New function.
11548 (print_inferior): Add new "connection-id" column.
11549 (add_inferior_command): Show connection number/string of added
11550 inferior.
11551 * process-stratum-target.h
11552 (process_stratum_target::connection_string): New virtual method.
11553 (process_stratum_target::connection_number): New field.
11554 * remote.c (remote_target::connection_string): New override.
11555 * target-connection.c: New file.
11556 * target-connection.h: New file.
11557 * target.c (decref_target): Remove process_stratum targets from
11558 the connection list.
11559 (target_stack::push): Add process_stratum targets to the
11560 connection list.
11561
4f837581
PA
115622020-01-10 Pedro Alves <palves@redhat.com>
11563
11564 Revert:
11565 2016-04-12 Pedro Alves <palves@redhat.com>
11566 * serial.c (serial_open, serial_fdopen_ops, do_serial_close):
11567 Remove references to name.
11568 * serial.h (struct serial) <name>: Delete.
11569
f4ec508e
PA
115702020-01-10 Pedro Alves <palves@redhat.com>
11571
11572 * gdbarch-selftests.c (register_to_value_test): Remove "target
11573 already pushed" check.
11574
5b6d1e4f
PA
115752020-01-10 Pedro Alves <palves@redhat.com>
11576 John Baldwin <jhb@FreeBSD.org>
11577
11578 * aarch64-linux-nat.c
11579 (aarch64_linux_nat_target::thread_architecture): Adjust.
11580 * ada-tasks.c (print_ada_task_info): Adjust find_thread_ptid call.
11581 (task_command_1): Likewise.
11582 * aix-thread.c (sync_threadlists, aix_thread_target::resume)
11583 (aix_thread_target::wait, aix_thread_target::fetch_registers)
11584 (aix_thread_target::store_registers)
11585 (aix_thread_target::thread_alive): Adjust.
11586 * amd64-fbsd-tdep.c: Include "inferior.h".
11587 (amd64fbsd_get_thread_local_address): Pass down target.
11588 * amd64-linux-nat.c (ps_get_thread_area): Use ps_prochandle
11589 thread's gdbarch instead of target_gdbarch.
11590 * break-catch-sig.c (signal_catchpoint_print_it): Adjust call to
11591 get_last_target_status.
11592 * break-catch-syscall.c (print_it_catch_syscall): Likewise.
11593 * breakpoint.c (breakpoints_should_be_inserted_now): Consider all
11594 inferiors.
11595 (update_inserted_breakpoint_locations): Skip if inferiors with no
11596 execution.
11597 (update_global_location_list): When handling moribund locations,
11598 find representative inferior for location's pspace, and use thread
11599 count of its process_stratum target.
11600 * bsd-kvm.c (bsd_kvm_target_open): Pass target down.
11601 * bsd-uthread.c (bsd_uthread_target::wait): Use
11602 as_process_stratum_target and adjust thread_change_ptid and
11603 add_thread calls.
11604 (bsd_uthread_target::update_thread_list): Use
11605 as_process_stratum_target and adjust find_thread_ptid,
11606 thread_change_ptid and add_thread calls.
11607 * btrace.c (maint_btrace_packet_history_cmd): Adjust
11608 find_thread_ptid call.
11609 * corelow.c (add_to_thread_list): Adjust add_thread call.
11610 (core_target_open): Adjust add_thread_silent and thread_count
11611 calls.
11612 (core_target::pid_to_str): Adjust find_inferior_ptid call.
11613 * ctf.c (ctf_target_open): Adjust add_thread_silent call.
11614 * event-top.c (async_disconnect): Pop targets from all inferiors.
11615 * exec.c (add_target_sections): Push exec target on all inferiors
11616 sharing the program space.
11617 (remove_target_sections): Remove the exec target from all
11618 inferiors sharing the program space.
11619 (exec_on_vfork): New.
11620 * exec.h (exec_on_vfork): Declare.
11621 * fbsd-nat.c (fbsd_add_threads): Add fbsd_nat_target parameter.
11622 Pass it down.
11623 (fbsd_nat_target::update_thread_list): Adjust.
11624 (fbsd_nat_target::resume): Adjust.
11625 (fbsd_handle_debug_trap): Add fbsd_nat_target parameter. Pass it
11626 down.
11627 (fbsd_nat_target::wait, fbsd_nat_target::post_attach): Adjust.
11628 * fbsd-tdep.c (fbsd_corefile_thread): Adjust
11629 get_thread_arch_regcache call.
11630 * fork-child.c (gdb_startup_inferior): Pass target down to
11631 startup_inferior and set_executing.
11632 * gdbthread.h (struct process_stratum_target): Forward declare.
11633 (add_thread, add_thread_silent, add_thread_with_info)
11634 (in_thread_list): Add process_stratum_target parameter.
11635 (find_thread_ptid(inferior*, ptid_t)): New overload.
11636 (find_thread_ptid, thread_change_ptid): Add process_stratum_target
11637 parameter.
11638 (all_threads()): Delete overload.
11639 (all_threads, all_non_exited_threads): Add process_stratum_target
11640 parameter.
11641 (all_threads_safe): Use brace initialization.
11642 (thread_count): Add process_stratum_target parameter.
11643 (set_resumed, set_running, set_stop_requested, set_executing)
11644 (threads_are_executing, finish_thread_state): Add
11645 process_stratum_target parameter.
11646 (switch_to_thread): Use is_current_thread.
11647 * i386-fbsd-tdep.c: Include "inferior.h".
11648 (i386fbsd_get_thread_local_address): Pass down target.
11649 * i386-linux-nat.c (i386_linux_nat_target::low_resume): Adjust.
11650 * inf-child.c (inf_child_target::maybe_unpush_target): Remove
11651 have_inferiors check.
11652 * inf-ptrace.c (inf_ptrace_target::create_inferior)
11653 (inf_ptrace_target::attach): Adjust.
11654 * infcall.c (run_inferior_call): Adjust.
11655 * infcmd.c (run_command_1): Pass target to
11656 scoped_finish_thread_state.
11657 (proceed_thread_callback): Skip inferiors with no execution.
11658 (continue_command): Rename 'all_threads' local to avoid hiding
11659 'all_threads' function. Adjust get_last_target_status call.
11660 (prepare_one_step): Adjust set_running call.
11661 (signal_command): Use user_visible_resume_target. Compare thread
11662 pointers instead of inferior_ptid.
11663 (info_program_command): Adjust to pass down target.
11664 (attach_command): Mark target's 'thread_executing' flag.
11665 (stop_current_target_threads_ns): New, factored out from ...
11666 (interrupt_target_1): ... this. Switch inferior before making
11667 target calls.
11668 * inferior-iter.h
11669 (struct all_inferiors_iterator, struct all_inferiors_range)
11670 (struct all_inferiors_safe_range)
11671 (struct all_non_exited_inferiors_range): Filter on
11672 process_stratum_target too. Remove explicit.
11673 * inferior.c (inferior::inferior): Push dummy target on target
11674 stack.
11675 (find_inferior_pid, find_inferior_ptid, number_of_live_inferiors):
11676 Add process_stratum_target parameter, and pass it down.
11677 (have_live_inferiors): Adjust.
11678 (switch_to_inferior_and_push_target): New.
11679 (add_inferior_command, clone_inferior_command): Handle
11680 "-no-connection" parameter. Use
11681 switch_to_inferior_and_push_target.
11682 (_initialize_inferior): Mention "-no-connection" option in
11683 the help of "add-inferior" and "clone-inferior" commands.
11684 * inferior.h: Include "process-stratum-target.h".
11685 (interrupt_target_1): Use bool.
11686 (struct inferior) <push_target, unpush_target, target_is_pushed,
11687 find_target_beneath, top_target, process_target, target_at,
11688 m_stack>: New.
11689 (discard_all_inferiors): Delete.
11690 (find_inferior_pid, find_inferior_ptid, number_of_live_inferiors)
11691 (all_inferiors, all_non_exited_inferiors): Add
11692 process_stratum_target parameter.
11693 * infrun.c: Include "gdb_select.h" and <unordered_map>.
11694 (target_last_proc_target): New global.
11695 (follow_fork_inferior): Push target on new inferior. Pass target
11696 to add_thread_silent. Call exec_on_vfork. Handle target's
11697 reference count.
11698 (follow_fork): Adjust get_last_target_status call. Also consider
11699 target.
11700 (follow_exec): Push target on new inferior.
11701 (struct execution_control_state) <target>: New field.
11702 (user_visible_resume_target): New.
11703 (do_target_resume): Call target_async.
11704 (resume_1): Set target's threads_executing flag. Consider resume
11705 target.
11706 (commit_resume_all_targets): New.
11707 (proceed): Also consider resume target. Skip threads of inferiors
11708 with no execution. Commit resumtion in all targets.
11709 (start_remote): Pass current inferior to wait_for_inferior.
11710 (infrun_thread_stop_requested): Consider target as well. Pass
11711 thread_info pointer to clear_inline_frame_state instead of ptid.
11712 (infrun_thread_thread_exit): Consider target as well.
11713 (random_pending_event_thread): New inferior parameter. Use it.
11714 (do_target_wait): Rename to ...
11715 (do_target_wait_1): ... this. Add inferior parameter, and pass it
11716 down.
11717 (threads_are_resumed_pending_p, do_target_wait): New.
11718 (prepare_for_detach): Adjust calls.
11719 (wait_for_inferior): New inferior parameter. Handle it. Use
11720 do_target_wait_1 instead of do_target_wait.
11721 (fetch_inferior_event): Adjust. Switch to representative
11722 inferior. Pass target down.
11723 (set_last_target_status): Add process_stratum_target parameter.
11724 Save target in global.
11725 (get_last_target_status): Add process_stratum_target parameter and
11726 handle it.
11727 (nullify_last_target_wait_ptid): Clear 'target_last_proc_target'.
11728 (context_switch): Check inferior_ptid == null_ptid before calling
11729 inferior_thread().
11730 (get_inferior_stop_soon): Pass down target.
11731 (wait_one): Rename to ...
11732 (poll_one_curr_target): ... this.
11733 (struct wait_one_event): New.
11734 (wait_one): New.
11735 (stop_all_threads): Adjust.
11736 (handle_no_resumed, handle_inferior_event): Adjust to consider the
11737 event's target.
11738 (switch_back_to_stepped_thread): Also consider target.
11739 (print_stop_event): Update.
11740 (normal_stop): Update. Also consider the resume target.
11741 * infrun.h (wait_for_inferior): Remove declaration.
11742 (user_visible_resume_target): New declaration.
11743 (get_last_target_status, set_last_target_status): New
11744 process_stratum_target parameter.
11745 * inline-frame.c (clear_inline_frame_state(ptid_t)): Add
11746 process_stratum_target parameter, and use it.
11747 (clear_inline_frame_state (thread_info*)): New.
11748 * inline-frame.c (clear_inline_frame_state(ptid_t)): Add
11749 process_stratum_target parameter.
11750 (clear_inline_frame_state (thread_info*)): Declare.
11751 * linux-fork.c (delete_checkpoint_command): Pass target down to
11752 find_thread_ptid.
11753 (checkpoint_command): Adjust.
11754 * linux-nat.c (linux_nat_target::follow_fork): Switch to thread
11755 instead of just tweaking inferior_ptid.
11756 (linux_nat_switch_fork): Pass target down to thread_change_ptid.
11757 (exit_lwp): Pass target down to find_thread_ptid.
11758 (attach_proc_task_lwp_callback): Pass target down to
11759 add_thread/set_running/set_executing.
11760 (linux_nat_target::attach): Pass target down to
11761 thread_change_ptid.
11762 (get_detach_signal): Pass target down to find_thread_ptid.
11763 Consider last target status's target.
11764 (linux_resume_one_lwp_throw, resume_lwp)
11765 (linux_handle_syscall_trap, linux_handle_extended_wait, wait_lwp)
11766 (stop_wait_callback, save_stop_reason, linux_nat_filter_event)
11767 (linux_nat_wait_1, resume_stopped_resumed_lwps): Pass target down.
11768 (linux_nat_target::async_wait_fd): New.
11769 (linux_nat_stop_lwp, linux_nat_target::thread_address_space): Pass
11770 target down.
11771 * linux-nat.h (linux_nat_target::async_wait_fd): Declare.
11772 * linux-tdep.c (get_thread_arch_regcache): Pass target down.
11773 * linux-thread-db.c (struct thread_db_info::process_target): New
11774 field.
11775 (add_thread_db_info): Save target.
11776 (get_thread_db_info): New process_stratum_target parameter. Also
11777 match target.
11778 (delete_thread_db_info): New process_stratum_target parameter.
11779 Also match target.
11780 (thread_from_lwp): Adjust to pass down target.
11781 (thread_db_notice_clone): Pass down target.
11782 (check_thread_db_callback): Pass down target.
11783 (try_thread_db_load_1): Always push the thread_db target.
11784 (try_thread_db_load, record_thread): Pass target down.
11785 (thread_db_target::detach): Pass target down. Always unpush the
11786 thread_db target.
11787 (thread_db_target::wait, thread_db_target::mourn_inferior): Pass
11788 target down. Always unpush the thread_db target.
11789 (find_new_threads_callback, thread_db_find_new_threads_2)
11790 (thread_db_target::update_thread_list): Pass target down.
11791 (thread_db_target::pid_to_str): Pass current inferior down.
11792 (thread_db_target::get_thread_local_address): Pass target down.
11793 (thread_db_target::resume, maintenance_check_libthread_db): Pass
11794 target down.
11795 * nto-procfs.c (nto_procfs_target::update_thread_list): Adjust.
11796 * procfs.c (procfs_target::procfs_init_inferior): Declare.
11797 (proc_set_current_signal, do_attach, procfs_target::wait): Adjust.
11798 (procfs_init_inferior): Rename to ...
11799 (procfs_target::procfs_init_inferior): ... this and adjust.
11800 (procfs_target::create_inferior, procfs_notice_thread)
11801 (procfs_do_thread_registers): Adjust.
11802 * ppc-fbsd-tdep.c: Include "inferior.h".
11803 (ppcfbsd_get_thread_local_address): Pass down target.
11804 * proc-service.c (ps_xfer_memory): Switch current inferior and
11805 program space as well.
11806 (get_ps_regcache): Pass target down.
11807 * process-stratum-target.c
11808 (process_stratum_target::thread_address_space)
11809 (process_stratum_target::thread_architecture): Pass target down.
11810 * process-stratum-target.h
11811 (process_stratum_target::threads_executing): New field.
11812 (as_process_stratum_target): New.
11813 * ravenscar-thread.c
11814 (ravenscar_thread_target::update_inferior_ptid): Pass target down.
11815 (ravenscar_thread_target::wait, ravenscar_add_thread): Pass target
11816 down.
11817 * record-btrace.c (record_btrace_target::info_record): Adjust.
11818 (record_btrace_target::record_method)
11819 (record_btrace_target::record_is_replaying)
11820 (record_btrace_target::fetch_registers)
11821 (get_thread_current_frame_id, record_btrace_target::resume)
11822 (record_btrace_target::wait, record_btrace_target::stop): Pass
11823 target down.
11824 * record-full.c (record_full_wait_1): Switch to event thread.
11825 Pass target down.
11826 * regcache.c (regcache::regcache)
11827 (get_thread_arch_aspace_regcache, get_thread_arch_regcache): Add
11828 process_stratum_target parameter and handle it.
11829 (current_thread_target): New global.
11830 (get_thread_regcache): Add process_stratum_target parameter and
11831 handle it. Switch inferior before calling target method.
11832 (get_thread_regcache): Pass target down.
11833 (get_thread_regcache_for_ptid): Pass target down.
11834 (registers_changed_ptid): Add process_stratum_target parameter and
11835 handle it.
11836 (registers_changed_thread, registers_changed): Pass target down.
11837 (test_get_thread_arch_aspace_regcache): New.
11838 (current_regcache_test): Define a couple local test_target_ops
11839 instances and use them for testing.
11840 (readwrite_regcache): Pass process_stratum_target parameter.
11841 (cooked_read_test, cooked_write_test): Pass mock_target down.
11842 * regcache.h (get_thread_regcache, get_thread_arch_regcache)
11843 (get_thread_arch_aspace_regcache): Add process_stratum_target
11844 parameter.
11845 (regcache::target): New method.
11846 (regcache::regcache, regcache::get_thread_arch_aspace_regcache)
11847 (regcache::registers_changed_ptid): Add process_stratum_target
11848 parameter.
11849 (regcache::m_target): New field.
11850 (registers_changed_ptid): Add process_stratum_target parameter.
11851 * remote.c (remote_state::supports_vCont_probed): New field.
11852 (remote_target::async_wait_fd): New method.
11853 (remote_unpush_and_throw): Add remote_target parameter.
11854 (get_current_remote_target): Adjust.
11855 (remote_target::remote_add_inferior): Push target.
11856 (remote_target::remote_add_thread)
11857 (remote_target::remote_notice_new_inferior)
11858 (get_remote_thread_info): Pass target down.
11859 (remote_target::update_thread_list): Skip threads of inferiors
11860 bound to other targets. (remote_target::close): Don't discard
11861 inferiors. (remote_target::add_current_inferior_and_thread)
11862 (remote_target::process_initial_stop_replies)
11863 (remote_target::start_remote)
11864 (remote_target::remote_serial_quit_handler): Pass down target.
11865 (remote_target::remote_unpush_target): New remote_target
11866 parameter. Unpush the target from all inferiors.
11867 (remote_target::remote_unpush_and_throw): New remote_target
11868 parameter. Pass it down.
11869 (remote_target::open_1): Check whether the current inferior has
11870 execution instead of checking whether any inferior is live. Pass
11871 target down.
11872 (remote_target::remote_detach_1): Pass down target. Use
11873 remote_unpush_target.
11874 (extended_remote_target::attach): Pass down target.
11875 (remote_target::remote_vcont_probe): Set supports_vCont_probed.
11876 (remote_target::append_resumption): Pass down target.
11877 (remote_target::append_pending_thread_resumptions)
11878 (remote_target::remote_resume_with_hc, remote_target::resume)
11879 (remote_target::commit_resume): Pass down target.
11880 (remote_target::remote_stop_ns): Check supports_vCont_probed.
11881 (remote_target::interrupt_query)
11882 (remote_target::remove_new_fork_children)
11883 (remote_target::check_pending_events_prevent_wildcard_vcont)
11884 (remote_target::remote_parse_stop_reply)
11885 (remote_target::process_stop_reply): Pass down target.
11886 (first_remote_resumed_thread): New remote_target parameter. Pass
11887 it down.
11888 (remote_target::wait_as): Pass down target.
11889 (unpush_and_perror): New remote_target parameter. Pass it down.
11890 (remote_target::readchar, remote_target::remote_serial_write)
11891 (remote_target::getpkt_or_notif_sane_1)
11892 (remote_target::kill_new_fork_children, remote_target::kill): Pass
11893 down target.
11894 (remote_target::mourn_inferior): Pass down target. Use
11895 remote_unpush_target.
11896 (remote_target::core_of_thread)
11897 (remote_target::remote_btrace_maybe_reopen): Pass down target.
11898 (remote_target::pid_to_exec_file)
11899 (remote_target::thread_handle_to_thread_info): Pass down target.
11900 (remote_target::async_wait_fd): New.
11901 * riscv-fbsd-tdep.c: Include "inferior.h".
11902 (riscv_fbsd_get_thread_local_address): Pass down target.
11903 * sol2-tdep.c (sol2_core_pid_to_str): Pass down target.
11904 * sol-thread.c (sol_thread_target::wait, ps_lgetregs, ps_lsetregs)
11905 (ps_lgetfpregs, ps_lsetfpregs, sol_update_thread_list_callback):
11906 Adjust.
11907 * solib-spu.c (spu_skip_standalone_loader): Pass down target.
11908 * solib-svr4.c (enable_break): Pass down target.
11909 * spu-multiarch.c (parse_spufs_run): Pass down target.
11910 * spu-tdep.c (spu2ppu_sniffer): Pass down target.
11911 * target-delegates.c: Regenerate.
11912 * target.c (g_target_stack): Delete.
11913 (current_top_target): Return the current inferior's top target.
11914 (target_has_execution_1): Refer to the passed-in inferior's top
11915 target.
11916 (target_supports_terminal_ours): Check whether the initial
11917 inferior was already created.
11918 (decref_target): New.
11919 (target_stack::push): Incref/decref the target.
11920 (push_target, push_target, unpush_target): Adjust.
11921 (target_stack::unpush): Defref target.
11922 (target_is_pushed): Return bool. Adjust to refer to the current
11923 inferior's target stack.
11924 (dispose_inferior): Delete, and inline parts ...
11925 (target_preopen): ... here. Only dispose of the current inferior.
11926 (target_detach): Hold strong target reference while detaching.
11927 Pass target down.
11928 (target_thread_name): Add assertion.
11929 (target_resume): Pass down target.
11930 (target_ops::beneath, find_target_at): Adjust to refer to the
11931 current inferior's target stack.
11932 (get_dummy_target): New.
11933 (target_pass_ctrlc): Pass the Ctrl-C to the first inferior that
11934 has a thread running.
11935 (initialize_targets): Rename to ...
11936 (_initialize_target): ... this.
11937 * target.h: Include "gdbsupport/refcounted-object.h".
11938 (struct target_ops): Inherit refcounted_object.
11939 (target_ops::shortname, target_ops::longname): Make const.
11940 (target_ops::async_wait_fd): New method.
11941 (decref_target): Declare.
11942 (struct target_ops_ref_policy): New.
11943 (target_ops_ref): New typedef.
11944 (get_dummy_target): Declare function.
11945 (target_is_pushed): Return bool.
11946 * thread-iter.c (all_matching_threads_iterator::m_inf_matches)
11947 (all_matching_threads_iterator::all_matching_threads_iterator):
11948 Handle filter target.
11949 * thread-iter.h (struct all_matching_threads_iterator, struct
11950 all_matching_threads_range, class all_non_exited_threads_range):
11951 Filter by target too. Remove explicit.
11952 * thread.c (threads_executing): Delete.
11953 (inferior_thread): Pass down current inferior.
11954 (clear_thread_inferior_resources): Pass down thread pointer
11955 instead of ptid_t.
11956 (add_thread_silent, add_thread_with_info, add_thread): Add
11957 process_stratum_target parameter. Use it for thread and inferior
11958 searches.
11959 (is_current_thread): New.
11960 (thread_info::deletable): Use it.
11961 (find_thread_ptid, thread_count, in_thread_list)
11962 (thread_change_ptid, set_resumed, set_running): New
11963 process_stratum_target parameter. Pass it down.
11964 (set_executing): New process_stratum_target parameter. Pass it
11965 down. Adjust reference to 'threads_executing'.
11966 (threads_are_executing): New process_stratum_target parameter.
11967 Adjust reference to 'threads_executing'.
11968 (set_stop_requested, finish_thread_state): New
11969 process_stratum_target parameter. Pass it down.
11970 (switch_to_thread): Also match inferior.
11971 (switch_to_thread): New process_stratum_target parameter. Pass it
11972 down.
11973 (update_threads_executing): Reimplement.
11974 * top.c (quit_force): Pop targets from all inferior.
11975 (gdb_init): Don't call initialize_targets.
11976 * windows-nat.c (windows_nat_target) <get_windows_debug_event>:
11977 Declare.
11978 (windows_add_thread, windows_delete_thread): Adjust.
11979 (get_windows_debug_event): Rename to ...
11980 (windows_nat_target::get_windows_debug_event): ... this. Adjust.
11981 * tracefile-tfile.c (tfile_target_open): Pass down target.
11982 * gdbsupport/common-gdbthread.h (struct process_stratum_target):
11983 Forward declare.
11984 (switch_to_thread): Add process_stratum_target parameter.
11985 * mi/mi-interp.c (mi_on_resume_1): Add process_stratum_target
11986 parameter. Use it.
11987 (mi_on_resume): Pass target down.
11988 * nat/fork-inferior.c (startup_inferior): Add
11989 process_stratum_target parameter. Pass it down.
11990 * nat/fork-inferior.h (startup_inferior): Add
11991 process_stratum_target parameter.
11992 * python/py-threadevent.c (py_get_event_thread): Pass target down.
11993
75c6c844
PA
119942020-01-10 Pedro Alves <palves@redhat.com>
11995
11996 * remote.c (remote_target::start_remote): Don't set inferior_ptid
11997 directly. Instead find the first thread in the thread list and
11998 use switch_to_thread.
11999
78f2c40a
PA
120002020-01-10 Pedro Alves <palves@redhat.com>
12001
12002 * remote.c (remote_target::remote_add_inferior): Don't bind a
12003 process to the current inferior if the current inferior is already
12004 bound to a process.
12005
e7af6c70
TBA
120062020-01-10 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
12007 Pedro Alves <palves@redhat.com>
12008
12009 * remote.c (remote_target::remote_parse_stop_reply) <W/X packets>:
12010 If no process is specified, return null_ptid instead of
12011 inferior_ptid.
12012 (remote_target::wait_as): Handle TARGET_WAITKIND_EXITED /
12013 TARGET_WAITKIND_SIGNALLED with no pid.
12014
31ba933e
PA
120152020-01-10 Pedro Alves <palves@redhat.com>
12016
12017 * remote.c (first_remote_resumed_thread): New.
12018 (remote_target::wait_as): Use it as default event_ptid instead of
12019 inferior_ptid.
12020
735fc2ca
PA
120212020-01-10 Pedro Alves <palves@redhat.com>
12022
12023 * infrun.c (handle_no_resumed): Use all_non_exited_inferiors.
12024
c17e02e1
PA
120252020-01-10 Pedro Alves <palves@redhat.com>
12026
12027 * tracefile-tfile.c (tfile_target::close): Assert that trace_fd is
12028 not -1.
12029
ab1ddbcf
PA
120302020-01-10 Pedro Alves <palves@redhat.com>
12031
12032 * break-catch-sig.c (signal_catchpoint_print_it): Don't pass a
12033 ptid to get_last_target_status.
12034 * break-catch-syscall.c (print_it_catch_syscall): Don't pass a
12035 ptid to get_last_target_status.
12036 * infcmd.c (continue_command): Don't pass a target_waitstatus to
12037 get_last_target_status.
12038 (info_program_command): Don't pass a target_waitstatus to
12039 get_last_target_status.
12040 * infrun.c (init_wait_for_inferior): Use
12041 nullify_last_target_wait_ptid.
12042 (get_last_target_status): Handle nullptr arguments.
12043 (nullify_last_target_wait_ptid): Clear target_last_waitstatus.
12044 (print_stop_event): Don't pass a ptid to get_last_target_status.
12045 (normal_stop): Don't pass a ptid to get_last_target_status.
12046 * infrun.h (get_last_target_status, set_last_target_status): Move
12047 comments here and update.
12048 (nullify_last_target_wait_ptid): Declare.
12049 * linux-fork.c (fork_load_infrun_state): Remove local extern
12050 declaration of nullify_last_target_wait_ptid.
12051 * linux-nat.c (get_detach_signal): Don't pass a target_waitstatus
12052 to get_last_target_status.
12053
f3f8ece4
PA
120542020-01-10 Pedro Alves <palves@redhat.com>
12055
12056 * gdbthread.h (scoped_restore_current_thread)
12057 <dont_restore, restore, m_dont_restore>: Declare.
12058 * thread.c (thread_alive): Add assertion. Return bool.
12059 (switch_to_thread_if_alive): New.
12060 (prune_threads): Switch inferior/thread.
12061 (print_thread_info_1): Switch thread before calling target methods.
12062 (scoped_restore_current_thread::restore): New, factored out from
12063 ...
12064 (scoped_restore_current_thread::~scoped_restore_current_thread):
12065 ... this.
12066 (scoped_restore_current_thread::scoped_restore_current_thread):
12067 Add assertion.
12068 (thread_apply_all_command, thread_select): Use
12069 switch_to_thread_if_alive.
12070 * infrun.c (proceed, restart_threads, handle_signal_stop)
12071 (switch_back_to_stepped_thread): Switch current thread before
12072 calling target methods.
12073
db2d40f7
PA
120742020-01-10 Pedro Alves <palves@redhat.com>
12075
12076 * inferior.c (switch_to_inferior_no_thread): New function,
12077 factored out from ...
12078 (inferior_command): ... here.
12079 * inferior.h (switch_to_inferior_no_thread): Declare.
12080 * mi/mi-main.c (run_one_inferior): Use
12081 switch_to_inferior_no_thread.
12082
bd420a2d
PA
120832020-01-10 Pedro Alves <palves@redhat.com>
12084
12085 * infcmd.c (kill_command): Remove dead code.
12086
ddf5db90
PA
120872020-01-10 Pedro Alves <palves@redhat.com>
12088
12089 * remote.c (remote_target::mourn_inferior): No longer check
12090 whether the target is running.
12091
5018ce90
PA
120922020-01-10 Pedro Alves <palves@redhat.com>
12093
12094 * corelow.c (core_target::has_execution): Change parameter type to
12095 inferior pointer.
12096 * inferior.c (number_of_live_inferiors): Use
12097 inferior::has_execution instead of target_has_execution_1.
12098 * inferior.h (inferior::has_execution): New.
12099 * linux-thread-db.c (thread_db_target::update_thread_list): Use
12100 inferior::has_execution instead of target_has_execution_1.
12101 * process-stratum-target.c
12102 (process_stratum_target::has_execution): Change parameter type to
12103 inferior pointer. Check the inferior's PID instead of
12104 inferior_ptid.
12105 * process-stratum-target.h
12106 (process_stratum_target::has_execution): Change parameter type to
12107 inferior pointer.
12108 * record-full.c (record_full_core_target::has_execution): Change
12109 parameter type to inferior pointer.
12110 * target.c (target_has_execution_1): Change parameter type to
12111 inferior pointer.
12112 (target_has_execution_current): Adjust.
12113 * target.h (target_ops::has_execution): Change parameter type to
12114 inferior pointer.
12115 (target_has_execution_1): Change parameter type to inferior
12116 pointer. Change return type to bool.
12117 * tracefile.h (tracefile_target::has_execution): Change parameter
12118 type to inferior pointer.
12119
74375d18
PA
121202020-01-10 Pedro Alves <palves@redhat.com>
12121
12122 * exceptions.c (print_flush): Remove current_top_target() check.
12123
acdf84a6
PA
121242020-01-10 Pedro Alves <palves@redhat.com>
12125
12126 * remote.c (show_remote_exec_file): Show the current inferior's
12127 exec-file instead of the command variable's value.
12128
ec506636
PA
121292020-01-10 Pedro Alves <palves@redhat.com>
12130
12131 * record-full.c (record_full_resume_ptid): New global.
12132 (record_full_target::resume): Set it.
12133 (record_full_wait_1): Use record_full_resume_ptid instead of
12134 inferior_ptid.
12135
873657b9
PA
121362020-01-10 Pedro Alves <palves@redhat.com>
12137
12138 * gdbthread.h (scoped_restore_current_thread)
12139 <dont_restore, restore, m_dont_restore>: Declare.
12140 * thread.c (thread_alive): Add assertion. Return bool.
12141 (switch_to_thread_if_alive): New.
12142 (prune_threads): Switch inferior/thread.
12143 (print_thread_info_1): Switch thread before calling target methods.
12144 (scoped_restore_current_thread::restore): New, factored out from
12145 ...
12146 (scoped_restore_current_thread::~scoped_restore_current_thread):
12147 ... this.
12148 (scoped_restore_current_thread::scoped_restore_current_thread):
12149 Add assertion.
12150 (thread_apply_all_command, thread_select): Use
12151 switch_to_thread_if_alive.
12152
7f0ae84c
GB
121532020-01-10 George Barrett <bob@bob131.so>
12154
12155 * stap-probe.c (stap_modify_semaphore): Don't check for null
12156 semaphores.
12157 (stap_probe::set_semaphore, stap_probe::clear_semaphore): Check
12158 for null semaphores.
12159
f5a7c406
AB
121602020-01-09 Andrew Burgess <andrew.burgess@embecosm.com>
12161
12162 * tui/tui-source.c (tui_source_window::do_scroll_vertical): Update
12163 all source windows, and maintain horizontal scroll status while
12164 doing so.
12165
9ae6bf64
TT
121662020-01-09 Tom Tromey <tom@tromey.com>
12167
12168 PR tui/18932:
12169 * tui/tui-source.c (tui_source_window::do_scroll_vertical): Call
12170 update_source_window, not print_source_lines.
12171
b2efe70c
AB
121722020-01-09 Andrew Burgess <andrew.burgess@embecosm.com>
12173
12174 * tui/tui.c (tui_enable): Register tui hooks after calling
12175 tui_display_main.
12176
5f23a082
CB
121772020-01-09 Christian Biesinger <cbiesinger@google.com>
12178
12179 * gdbsupport/common-defs.h: Don't define _FORTIFY_SOURCE on MinGW.
12180
3061113b
SM
121812020-01-08 Simon Marchi <simon.marchi@efficios.com>
12182
12183 * thread.c (print_thread_info_1): Fix indentation.
12184
57d75002
CB
121852020-01-09 Christian Biesinger <cbiesinger@google.com>
12186
12187 * symtab.c (general_symbol_info::compute_and_set_names): Move the
12188 unique_xmalloc_ptr outside the if to always free the demangled name.
12189
6a053cb1
TT
121902020-01-08 Tom Tromey <tromey@adacore.com>
12191
12192 * xcoffread.c (enter_line_range, read_xcoff_symtab)
12193 (process_xcoff_symbol, xcoff_symfile_offsets): Update.
12194 * symtab.h (MSYMBOL_VALUE_ADDRESS): Update.
12195 (struct section_offsets, ANOFFSET, SIZEOF_N_SECTION_OFFSETS):
12196 Remove.
12197 (section_offsets): New typedef.
12198 * symtab.c (fixup_section, get_msymbol_address): Update.
12199 * symmisc.c (dump_msymbols): Update.
12200 * symfile.h (relative_addr_info_to_section_offsets)
12201 (symfile_map_offsets_to_segments): Update.
12202 * symfile.c (build_section_addr_info_from_objfile)
12203 (init_objfile_sect_indices): Update.
12204 (struct place_section_arg): Change type of "offsets".
12205 (place_section): Update.
12206 (relative_addr_info_to_section_offsets): Change type of
12207 "section_offsets". Remove "num_sections" parameter.
12208 (default_symfile_offsets, syms_from_objfile_1)
12209 (set_objfile_default_section_offset): Update.
12210 (reread_symbols): No need to preserve section offsets by hand.
12211 (symfile_map_offsets_to_segments): Change type of "offsets".
12212 * stap-probe.c (relocate_address): Update.
12213 * stabsread.h (process_one_symbol): Update.
12214 * solib-target.c (struct lm_info_target) <offsets>: Change type.
12215 (solib_target_relocate_section_addresses): Update.
12216 * solib-svr4.c (enable_break, svr4_relocate_main_executable):
12217 Update.
12218 * solib-frv.c (frv_relocate_main_executable): Update.
12219 * solib-dsbt.c (dsbt_relocate_main_executable): Update.
12220 * solib-aix.c (solib_aix_get_section_offsets): Change return
12221 type.
12222 (solib_aix_solib_create_inferior_hook): Update.
12223 * remote.c (remote_target::get_offsets): Update.
12224 * psymtab.c (find_pc_sect_psymtab): Update.
12225 * psympriv.h (struct partial_symbol) <address, text_low,
12226 text_high>: Update.
12227 * objfiles.h (obj_section_offset): Update.
12228 (struct objfile) <section_offsets>: Change type.
12229 <num_sections>: Remove.
12230 (objfile_relocate): Update.
12231 * objfiles.c (entry_point_address_query): Update
12232 (relocate_one_symbol): Change type of "section_offsets".
12233 (objfile_relocate1, objfile_relocate1): Change type of
12234 "new_offsets".
12235 (objfile_rebase1): Update.
12236 * mipsread.c (mipscoff_symfile_read): Update.
12237 (read_alphacoff_dynamic_symtab): Remove "section_offsets"
12238 parameter.
12239 * mdebugread.c (parse_symbol): Change type of "section_offsets".
12240 (parse_external, psymtab_to_symtab_1): Update.
12241 * machoread.c (macho_symfile_offsets): Update.
12242 * ia64-tdep.c (ia64_find_unwind_table): Update.
12243 * hppa-tdep.c (read_unwind_info): Update.
12244 * hppa-bsd-tdep.c (hppabsd_find_global_pointer): Update.
12245 * dwarf2read.c (create_addrmap_from_index)
12246 (create_addrmap_from_aranges, dw2_find_pc_sect_compunit_symtab)
12247 (process_psymtab_comp_unit_reader, add_partial_symbol)
12248 (add_partial_subprogram, process_full_comp_unit)
12249 (read_file_scope, read_func_scope, read_lexical_block_scope)
12250 (read_call_site_scope, dwarf2_rnglists_process)
12251 (dwarf2_ranges_process, dwarf2_ranges_read)
12252 (dwarf_decode_lines_1, var_decode_location, new_symbol)
12253 (dwarf2_fetch_die_loc_sect_off, dwarf2_per_cu_text_offset):
12254 Update.
12255 * dwarf2-frame.c (execute_cfa_program, dwarf2_frame_find_fde):
12256 Update.
12257 * dtrace-probe.c (dtrace_probe::get_relocated_address): Update.
12258 * dbxread.c (read_dbx_symtab, read_ofile_symtab): Update.
12259 (process_one_symbol): Change type of "section_offsets".
12260 * ctfread.c (get_objfile_text_range): Update.
12261 * coffread.c (coff_symtab_read, enter_linenos)
12262 (process_coff_symbol): Update.
12263 * coff-pe-read.c (add_pe_forwarded_sym): Update.
12264 * amd64-windows-tdep.c (amd64_windows_find_unwind_info): Update.
12265
456e800a
TT
122662020-01-08 Tom Tromey <tromey@adacore.com>
12267
12268 * dwarf2read.c (parse_macro_definition): Use std::string.
12269 (parse_macro_definition): Likewise.
12270
6dfa2fc2
TT
122712020-01-08 Tom Tromey <tromey@adacore.com>
12272
12273 * dwarf2read.c (abbrev_table_read_table): Use std::vector.
12274 (ATTR_ALLOC_CHUNK): Remove.
12275
421d1616
TT
122762020-01-08 Tom Tromey <tromey@adacore.com>
12277
12278 * dwarf2read.c (fixup_go_packaging): Use unique_xmalloc_ptr.
12279
43816ebc
TT
122802020-01-08 Tom Tromey <tromey@adacore.com>
12281
12282 * dwarf2read.c (add_partial_symbol): Use unique_xmalloc_ptr.
12283 (dwarf2_compute_name, open_dwo_file): Likewise.
12284 (process_enumeration_scope): Use std::vector.
12285 (guess_partial_die_structure_name): Use unique_xmalloc_ptr.
12286 (partial_die_info::fixup, dwarf2_start_subfile)
12287 (guess_full_die_structure_name, dwarf2_name): Likewise.
12288 (determine_prefix): Update.
12289 (guess_full_die_structure_name): Make return type const.
12290 (partial_die_full_name): Return unique_xmalloc_ptr.
12291 (DW_FIELD_ALLOC_CHUNK): Remove.
12292
4212d509
TT
122932020-01-07 Tom Tromey <tromey@adacore.com>
12294
12295 PR build/24937:
12296 * stap-probe.c (class stap_static_probe_ops): Add constructor.
12297
06a6207a
JT
122982020-01-02 Jon Turney <jon.turney@dronecode.org.uk>
12299
12300 * cli/cli-style.c: Set cli_styling to 'true' in the Cygwin build.
12301
153d79c4
AB
123022020-01-06 Andrew Burgess <andrew.burgess@embecosm.com>
12303
12304 * stack.c (print_frame_info): Move disassemble_next_line code
12305 inside source_print block.
12306
66182876
EZ
123072020-01-06 Eli Zaretskii <eliz@gnu.org>
12308
12309 * gdbsupport/gdb_wait.c: Include <signal.h> instead of
12310 gdb/signals.h, as we are now using native signal symbols.
12311
cbfa8581
SV
123122020-01-06 Shahab Vahedi <shahab@synopsys.com>
12313
12314 * tui/tui-disasm.c (tui_disasm_window::addr_is_displayed): Avoid
12315 overflow by an early check of content vs threshold.
aac66a4c 12316 * tui/tui-source.c (tui_source_window::line_is_displayed):
cbfa8581
SV
12317 Likewise.
12318
3f602821
EZ
123192020-01-06 Eli Zaretskii <eliz@gnu.org>
12320
12321 * NEWS: Mention the recent fix of $_exitsignal on MS-Windows.
12322
a08c904d
JT
123232020-01-02 Jon Turney <jon.turney@dronecode.org.uk>
12324
12325 * coff-pe-read.c (read_pe_exported_syms): Don't try to read the
12326 export table if no section contains it's RVA.
12327
89a65580
EZ
123282020-01-06 Eli Zaretskii <eliz@gnu.org>
12329
12330 * windows-tdep.c: Fix a typo in WINDOWS_SIGABRT.
12331
8b7fcda2
HD
123322020-01-06 Hannes Domani <ssbssa@yahoo.de>
12333
12334 * source.c (print_source_lines_base): Set last_line_listed.
12335
a61b4f69
SV
123362020-01-06 Shahab Vahedi <shahab@synopsys.com>
12337
12338 * tui/tui-disasm.c: Remove trailing spaces.
12339
559e7e50
EZ
123402020-01-06 Eli Zaretskii <eliz@gnu.org>
12341 Pedro Alves <palves@redhat.com>
12342
12343 * Makefile.in (COMMON_SFILES): Add gdbsupport/gdb_wait.c.
12344 * windows-tdep.c: New enumeration of WINDOWS_SIG* signals.
12345 (windows_gdb_signal_to_target): New function, uses the above
12346 enumeration to convert GDB internal signal codes to equivalent
12347 Windows codes.
12348 (windows_init_abi): Call set_gdbarch_gdb_signal_to_target.
12349 * windows-nat.c: Include "gdb_wait.h".
12350 (get_windows_debug_event): Extract the fatal exception from the
12351 exit status and convert to the equivalent Posix signal number.
12352 * cli/cli-cmds.c (exit_status_set_internal_vars): Account for the
12353 possibility that WTERMSIG returns GDB_SIGNAL_UNKNOWN.
12354 * gdbsupport/gdb_wait.c: New file, implements
12355 windows_status_to_termsig.
12356 * gdbsupport/gdb_wait.h (WIFEXITED, WIFSIGNALED, WEXITSTATUS)
12357 (WTERMSIG) [__MINGW32__]: Separate definitions for MinGW.
12358
f2302a34
AB
123592020-01-05 Andrew Burgess <andrew.burgess@embecosm.com>
12360
12361 * tui/tui-layout.c (tui_add_win_to_layout): Use tui_set_layout not
12362 show_layout.
12363
6a5206eb
LM
123642020-01-05 Luis Machado <luis.machado@linaro.org>
12365
12366 * aarch64-linux-nat.c
12367 (aarch64_linux_nat_target::thread_architecture): Use bfd_arch_aarch64
12368 and bfd_mach_aarch64.
12369
6ec1d75e
PW
123702020-01-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
12371
12372 * ui-file.c (stdio_file::can_emit_style_escape)
12373 (tee_file::can_emit_style_escape): Ensure style is used also on
12374 gdb_stderr when gdb_stderr is a tty supporting styling, similarly
12375 to gdb_stdout.
12376 * main.c (set_gdb_data_directory): Use file style to output the
12377 warning that the given pathname is not a directory.
12378 * top.c (show_history_filename, gdb_safe_append_history)
12379 (show_gdb_datadir): Use file style.
12380
44f81a76
HD
123812020-01-03 Hannes Domani <ssbssa@yahoo.de>
12382
12383 * solib-target.c (struct lm_info_target):
12384 Change offsets to be a unique_xmalloc_ptr.
12385 (solib_target_relocate_section_addresses): Update.
12386
25057eb0
HD
123872020-01-03 Hannes Domani <ssbssa@yahoo.de>
12388
12389 * windows-nat.c (windows_clear_solib): Free so_list linked list.
12390
6e2118f5
BE
123912020-01-03 Bernd Edlinger <bernd.edlinger@hotmail.de>
12392
12393 * MAINTAINERS (Write After Approval): Add myself.
12394
8133c7dc
LM
123952020-01-02 Luis Machado <luis.machado@linaro.org>
12396
12397 * proc-service.c (get_ps_regcache): Remove reference to obsolete
12398 Cell BE architecture.
12399 * target.h (struct target_ops) <thread_architecture>: Likewise.
12400
48189bec
HD
124012020-01-01 Hannes Domani <ssbssa@yahoo.de>
12402
12403 * Makefile.in: Use INSTALL_PROGRAM_ENV.
12404
ead1063b
HD
124052020-01-01 Hannes Domani <ssbssa@yahoo.de>
12406
12407 * MAINTAINERS (Write After Approval): Add myself.
12408
e5d78223
JB
124092020-01-01 Joel Brobecker <brobecker@adacore.com>
12410
12411 * gdbarch.sh: Update copyright year range of generated files.
12412
b811d2c2
JB
124132020-01-01 Joel Brobecker <brobecker@adacore.com>
12414
12415 Update copyright year range in all GDB files.
12416
5f4def5c
JB
124172020-01-01 Joel Brobecker <brobecker@adacore.com>
12418
12419 * copyright.py: Convert to Python 3.
12420
51fd4002
JB
124212020-01-01 Joel Brobecker <brobecker@adacore.com>
12422
12423 * copyright.py: Adapt after move of gnulib directory from gdb
12424 directory to toplevel directory.
12425
5fb651f2
JB
124262020-01-01 Joel Brobecker <brobecker@adacore.com>
12427
12428 * copyright.py (main): Exit if run from the wrong directory.
12429
5dd8bf88
JB
124302020-01-01 Joel Brobecker <brobecker@adacore.com>
12431
12432 * top.c (print_gdb_version): Change copyright year to 2020.
12433
9f71dacb 124342020-01-01 Joel Brobecker <brobecker@adacore.com>
3d34df0a 12435
9f71dacb 12436 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2019.
3d34df0a 12437
9f71dacb 12438For older changes see ChangeLog-2019.
c906108c
SS
12439\f
12440Local Variables:
12441mode: change-log
12442left-margin: 8
12443fill-column: 74
12444version-control: never
57da7796 12445coding: utf-8
c906108c 12446End: