]> git.ipfire.org Git - thirdparty/binutils-gdb.git/blame - gdb/ChangeLog
Automatic date update in version.in
[thirdparty/binutils-gdb.git] / gdb / ChangeLog
CommitLineData
e56798df
AKS
12020-09-03 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
2
3 * gdb/i386-tdep.c (i386_floatformat_for_type): Added conditions
4 to match 16 byte real/complex type generated by Flang compiler.
5
8f5c6526
TV
62020-09-03 Tom de Vries <tdevries@suse.de>
7
8 PR breakpoint/26546
9 * dwarf2/read.c (new_symbol): Tag label symbol without DW_AT_low_pc as
10 LOC_OPTIMIZED_OUT instead of LOC_LABEL.
11
c5065df0
SM
122020-09-02 Simon Marchi <simon.marchi@polymtl.ca>
13
14 * maint.c (index_digits): New function.
15 (struct maint_print_section_data): Remove.
16 (print_bfd_section_info): Remove print_data parameter, add arg
17 and index_digits.
18 (print_objfile_section_info): Likewise.
19 (print_bfd_section_info_maybe_relocated): Likewise (plus
20 objfile).
21 (maintenance_info_sections): Adjust calls.
22
02c6f3f1
TT
232020-09-02 Tom Tromey <tromey@adacore.com>
24
25 * ada-varobj.c (ada_varobj_get_ptr_number_of_children): Return 0
26 for null pointers.
27 (ada_varobj_adjust_for_child_access): Special-case null pointers.
28
ef5e5b0b
SM
292020-09-01 Simon Marchi <simon.marchi@polymtl.ca>
30
31 * bcache.h (struct bcache) <insert>: Change type of `added` to
32 pointer to bool.
33 * bcache.c (bcache::insert): Likewise.
34 * gdbtypes.c (check_types_worklist): Adjust.
35 * psymtab.c (add_psymbol_to_bcache): Adjust.
36
973695d6
KB
372020-08-31 Kevin Buettner <kevinb@redhat.com>
38
39 * corelow.c (unordered_set): Include.
40 (class core_target): Add field 'm_core_unavailable_mappings'.
41 (core_target::build_file_mappings): Print only one warning
42 per inaccessible file. Add unavailable/broken mappings
43 to m_core_unavailable_mappings.
44 (core_target::xfer_partial): Call...
45 (core_target::xfer_memory_via_mappings): New method.
46
264fc0e2
SM
472020-08-31 Simon Marchi <simon.marchi@polymtl.ca>
48
49 * dwarf2/read.c (struct field_info) <non_public_fields>: Change
50 type to bool.
51
2de01bdb
SM
522020-08-31 Simon Marchi <simon.marchi@polymtl.ca>
53
54 * dwarf2/read.c (struct field_info): Fix indentation.
55
f3bd50f1
SM
562020-08-31 Simon Marchi <simon.marchi@efficios.com>
57
58 * frame-unwind.h (frame_prev_register_ftype): Fix adjective
59 ordering in comment.
60 * frame.c (frame_id_eq): Fix indentation.
61
22b9b4b0
SL
622020-08-31 Scott Linder <scott@scottlinder.com>
63 Simon Marchi <simon.marchi@efficios.com>
64
65 * inline-frame.c (inline_frame_this_id): Remove assert that prevents
66 inline frame ids in outer frame.
67
84154d16
SM
682020-08-31 Simon Marchi <simon.marchi@efficios.com>
69
70 * frame.h (enum frame_id_stack_status) <FID_STACK_OUTER>: New.
71 * frame.c (fprint_frame_id): Handle FID_STACK_OUTER.
72 (outer_frame_id): Use FID_STACK_OUTER instead of
73 FID_STACK_INVALID.
74 (frame_id_p): Don't check for outer_frame_id.
75
8efaf6b3
SM
762020-08-31 Simon Marchi <simon.marchi@efficios.com>
77
78 * frame-unwind.c (frame_unwind_got_optimized): Don't set
79 regnum/frame in value. Call allocate_value_lazy.
80 * frame.c (frame_unwind_register_value): Use
81 val_print_not_saved.
82
fe1fe7ea
SM
832020-08-31 Simon Marchi <simon.marchi@efficios.com>
84
85 * gdbtypes.h (NULL_TYPE): Remove, change all uses to nullptr.
86
f7c7700d
PA
872020-08-29 Pedro Alves <pedro@palves.net>
88
89 * progspace.c (print_program_space): Use all_inferiors. Switch to
90 the inferior before calling target_pid_to_str.
91
e0814aae
TT
922020-08-28 Tom Tromey <tom@tromey.com>
93
94 * xcoffread.c (xcoff_end_psymtab): Update comment.
95 * dbxread.c (dbx_end_psymtab): Update comment.
96
626d2320
TV
972020-08-28 Tom de Vries <tdevries@suse.de>
98
99 PR breakpoint/26544
100 * breakpoint.c (parse_breakpoint_sals): Remove const from struct
101 event_location.
102 (create_breakpoint): Same.
103 (base_breakpoint_decode_location): Same.
104 (bkpt_create_sals_from_location): Same.
105 (bkpt_decode_location): Same.
106 (bkpt_probe_create_sals_from_location): Same.
107 (bkpt_probe_decode_location): Same.
108 (tracepoint_create_sals_from_location): Same.
109 (tracepoint_decode_location): Same.
110 (tracepoint_probe_decode_location): Same.
111 (strace_marker_create_sals_from_location): Same.
112 (strace_marker_decode_location): Same.
113 (create_sals_from_location_default): Same.
114 (decode_location_default): Same.
115 * breakpoint.h (struct breakpoint_ops): Same.
116 (create_breakpoint): Same.
117 * linespec.h (decode_line_full): Same.
118 * linespec.c (decode_line_full): Same. Throw error if
119 result.size () == 0.
120
df631783
PA
1212020-08-27 Pedro Alves <pedro@palves.net>
122
123 PR gdb/26524
124 * breakpoint.c (until_break_fsm) <location_breakpoint,
125 caller_breakpoint>: Delete fields.
126 <breakpoints>: New field.
127 <until_break_fsm>: Adjust to save a breakpoint vector instead of
128 two individual breakpoints.
129 (until_break_fsm::should_stop): Loop over breakpoints in the
130 breakpoint vector.
131 (until_break_fsm::clean_up): Adjust to clear the breakpoints
132 vector.
133 (until_break_command): Handle location expanding into multiple
134 sals.
135
b2b38aa4
PA
1362020-08-27 Pedro Alves <pedro@palves.net>
137
138 PR gdb/26523
139 * inline-frame.c (stopped_by_user_bp_inline_frame): Also consider
140 bp_until breakpoints user-specified locations. Update intro
141 comment.
142
b886559f
SM
1432020-08-27 Simon Marchi <simon.marchi@polymtl.ca>
144
145 * gdb_bfd.h (gdb_bfd_section_iterator, gdb_bfd_section_range,
146 gdb_bfd_sections): New.
147 * maint.c (print_bfd_section_info): Change param type to
148 maint_print_section_data.
149 (print_objfile_section_info): Likewise.
150 (print_bfd_section_info_maybe_relocated): Likewise.
151 (maintenance_info_sections): Use gdb_bfd_sections.
152
4c6e63bf
SV
1532020-08-25 Shahab Vahedi <shahab@synopsys.com>
154
155 * MAINTAINERS: Add ARC target and maintainer.
156
8d7f0635
AK
1572020-08-25 Anton Kolesov <anton.kolesov@synopsys.com>
158
159 * configure.tgt: ARC support for GNU/Linux.
160 * Makefile.in (ALL_TARGET_OBJS): Likewise.
161 * arc-linux-tdep.c: New file.
162 * arc-tdep.h (ARC_STATUS32_L_MASK, ARC_STATUS32_DE_MASK): Declare.
163 * arc-tdep.c (arc_write_pc): Use it.
164
fdd8731b
SV
1652020-08-25 Shahab Vahedi <shahab@synopsys.com>
166
167 * arc-tdep.c (arc_check_for_hardware_loop): New.
168 * arc-tdep.h (gdbarch_tdep): New field has_hw_loops.
169
22459524
SV
1702020-08-25 Shahab Vahedi <shahab@synopsys.com>
171
172 * arc-tdep.h: Include "gdbarch.h".
173
995d3a19
SV
1742020-08-25 Shahab Vahedi <shahab@synopsys.com>
175
176 * arch/arc.h
177 (arc_gdbarch_features): New class to stir the selection of target XML.
178 (arc_create_target_description): Use FEATURES to choose XML target.
179 (arc_lookup_target_description): Use arc_create_target_description
180 to create _new_ target descriptions or return the already created
181 ones if the FEATURES is the same.
182 * arch/arc.c: Implementation of prototypes described above.
183 * gdb/arc-tdep.h (arc_regnum enum): Add more registers.
184 (arc_gdbarch_features_init): Initialize the FEATURES struct.
185 * arc-tdep.c (*_feature_name): Make feature names consistent.
186 (arc_register_feature): A new struct to hold information about
187 registers of a particular target/feature.
188 (arc_check_tdesc_feature): Check if XML provides registers in
189 compliance with ARC_REGISTER_FEATURE structs.
190 (arc_update_acc_reg_names): Add aliases for r58 and r59.
191 (determine_*_reg_feature_set): Which feature name to look for.
192 (arc_gdbarch_features_init): Given MACH and ABFD, initialize FEATURES.
193 (mach_type_to_arc_isa): Convert from a set of binutils machine types
194 to expected ISA enums to be used in arc_gdbarch_features structs.
195 * features/Makefile (FEATURE_XMLFILES): Add new files.
196 * gdb/features/arc/v1-aux.c: New file.
197 * gdb/features/arc/v1-aux.xml: Likewise.
198 * gdb/features/arc/v1-core.c: Likewise.
199 * gdb/features/arc/v1-core.xml: Likewise.
200 * gdb/features/arc/v2-aux.c: Likewise.
201 * gdb/features/arc/v2-aux.xml: Likewise.
202 * gdb/features/arc/v2-core.c: Likewise.
203 * gdb/features/arc/v2-core.xml: Likewise.
204 * NEWS (Changes since GDB 9): Announce obsolence of old feature names.
205
3945d2d7
GM
2062020-08-25 Gaius Mulley <gaiusmod2@gmail.com>
207 Andrew Burgess <andrew.burgess@embecosm.com>
208
209 PR m2/26372
fc5d6901 210 * m2-exp.y (exp): Improve comment for non_empty_arglist case, add
3945d2d7
GM
211 an assert. Remove single element array indexing pattern as the
212 MULTI_SUBSCRIPT support will handle this case too.
213
2677f2d3
SM
2142020-08-24 Simon Marchi <simon.marchi@polymtl.ca>
215
216 * value.h (valprint_check_validity): Move declaration from
217 here...
218 * valprint.h (valprint_check_validity): ... to here.
219
c426fddb
SM
2202020-08-24 Simon Marchi <simon.marchi@efficios.com>
221
222 * debug.h: New file.
223 * debug.c (debug_prefixed_vprintf): New function.
224 * infrun.c (infrun_debug_printf_1): Use debug_prefixed_vprintf.
225 * linux-nat.c (linux_nat_debug_printf_1): Likewise.
226
1eb8556f
SM
2272020-08-24 Simon Marchi <simon.marchi@efficios.com>
228
229 * infrun.h (infrun_debug_printf_1): New function declaration.
230 (infrun_debug_printf): New macro.
231 * infrun.c (infrun_debug_printf_1): Use infrun_debug_printf
232 throughout.
233 (infrun_debug_printf): New function.
234 * breakpoint.c (should_be_inserted): Use infrun_debug_printf.
235 (handle_jit_event): Likewise.
236
b8fff44e
MW
2372020-08-21 Mark Wielaard <mark@klomp.org>
238
239 * ada-lex.l: Extend register warnings diagnostics comment for g++.
240
d19c3068
SM
2412020-08-22 Simon Marchi <simon.marchi@efficios.com>
242
243 * frame.c (enum class frame_id_status): New.
244 (struct frame_info) <this_id::p>: Change type to frame_id_status.
245 (fprintf_frame): Update.
246 (compute_frame_id): Set frame id status to "computing" on entry.
247 Set it back to "not_computed" on failure and to "computed" on
248 success.
249 (get_frame_id): Assert the frame id is not being computed.
250 (create_sentinel_frame): Use frame_id_status::COMPUTED.
251 (create_new_frame): Likewise.
252 (frame_cleanup_after_sniffer): Update assert.
253
b70e516e
SM
2542020-08-20 Simon Marchi <simon.marchi@polymtl.ca>
255
256 * regcache.c (pid_ptid_regcache_map): New type.
257 (target_ptid_regcache_map): Remove.
258 (target_pid_ptid_regcache_map): New type.
259 (regcaches): Change type to target_pid_ptid_regcache_map.
260 (get_thread_arch_aspace_regcache): Update.
261 (regcache_thread_ptid_changed): Update, handle pid-like ptid
262 case.
263 (regcaches_size): Update.
264 (regcache_count): Update.
265 (registers_changed_ptid_target_pid_test): New.
266 (_initialize_regcache): Register new test.
267
cdd9148a
SM
2682020-08-20 Simon Marchi <simon.marchi@polymtl.ca>
269
270 * regcache.c (regcache_count): New.
271 (struct regcache_test_data): New.
272 (regcache_test_data_up): New.
273 (populate_regcaches_for_test): New.
274 (regcaches_test): Remove.
275 (get_thread_arch_aspace_regcache_test): New.
276 (registers_changed_ptid_all_test): New.
277 (registers_changed_ptid_target_test): New.
278 (registers_changed_ptid_target_ptid_test): New.
279 (regcache_thread_ptid_changed): Remove regcache_count lambda.
280 (_initialize_regcache): Register new tests.
281
dd125343
SM
2822020-08-20 Simon Marchi <simon.marchi@polymtl.ca>
283
284 * regcache.c (test_get_thread_arch_aspace_regcache): Rename to...
285 (get_thread_arch_aspace_regcache_and_check): ... this. Remove
286 gdbarch and aspace parameter. Use current inferior's aspace.
287 Validate regcache's arch value.
288 (regcaches_test): Update.
289
3ee93972
SM
2902020-08-20 Simon Marchi <simon.marchi@polymtl.ca>
291
292 * regcache.c (regcaches_test): Call registers_changed.
293
33bf4c5c
TBA
2942020-08-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
295
296 * infrun.c (process_event_stop_test): Fix typo "breapoint".
297
c2fd7fae
AKS
2982020-08-19 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
299
300 * amd64-tdep.c (amd64_skip_prologue): Using symbol table
301 to find the end of prologue for flang compiled binaries.
302 * arm-tdep.c (arm_skip_prologue): Likewise.
303 * i386-tdep.c (i386_skip_prologue): Likewise.
304 * producer.c (producer_is_llvm): New function.
305 (producer_parsing_tests): Added new tests for clang/flang.
306 * producer.h (producer_is_llvm): New declaration.
307
9327494e
SM
3082020-08-18 Simon Marchi <simon.marchi@efficios.com>
309
310 * linux-nat.c (linux_nat_debug_printf): New function.
311 (linux_nat_debug_printf_1): New macro. Use throughout the file.
312
d138725a
AM
3132020-08-18 Aaron Merey <amerey@redhat.com>
314
315 * Makefile.in (DEBUGINFOD_CFLAGS, DEBUGINFOD_LIBS): New variables.
316 (INTERNAL_CFLAGS_BASE): Add DEBUGINFOD_CFLAGS.
317 (CLIBS): Add DEBUGINFOD_LIBS.
318
f9b11e6b
ST
3192020-08-17 Sergei Trofimovich <siarheit@google.com>
320
321 * ia64-linux-nat.c: Include "gdbarch.h" to declare used
322 'gdbarch_num_regs'.
323
3ae7ab99
TT
3242020-08-17 Tom Tromey <tromey@adacore.com>
325
326 * ada-varobj.c (ada_varobj_decode_var): Handle case where
327 ada_get_decoded_value returns NULL.
328
b017825f
TT
3292020-08-17 Tom Tromey <tromey@adacore.com>
330
331 * python/py-inferior.c (infpy_search_memory): Use
332 gdb_py_object_from_ulongest.
333 * python/py-infevents.c (create_inferior_call_event_object)
334 (create_memory_changed_event_object): Use
335 gdb_py_object_from_ulongest.
336 * python/py-linetable.c (ltpy_entry_get_pc): Use
337 gdb_py_object_from_ulongest.
338
7635cf79
SM
3392020-08-17 Simon Marchi <simon.marchi@polymtl.ca>
340
341 * loc.c (class symbol_needs_eval_context): Fix indentation.
342
f54be24b
SM
3432020-08-17 Simon Marchi <simon.marchi@polymtl.ca>
344
345 * dwarf2/loc.c (dwarf2_loc_desc_get_symbol_read_needs): Use
346 bool.
347
53d5a2a5
TV
3482020-08-17 Tom de Vries <tdevries@suse.de>
349
350 PR gdb/26393
351 * gdbtypes.c (dump_dynamic_prop): New function.
352 (recursive_dump_type): Use dump_dynamic_prop for TYPE_CODE_RANGE.
353
547ce8f0
TV
3542020-08-15 Tom de Vries <tdevries@suse.de>
355
356 PR backtrace/26390
357 * stack.c (print_frame_args): Temporarily set the selected
358 frame to FRAME while printing the frame's arguments.
359
6ea815e7
PFC
3602020-08-14 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
361
362 PR breakpoints/26385
363 * ppc-linux-nat.c (ppc_linux_nat_target::low_prepare_to_resume):
364 Always clear watchpoint with PTRACE_SET_DEBUGREG.
365
6e562fa3
PFC
3662020-08-14 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
367
368 * ppc-linux-nat.c (ppc_linux_dreg_interface::detect)
369 (ppc_linux_nat_target::low_prepare_to_resume): Use ptrace () < 0
370 and >= to check return value instead of == -1 and != -1.
371
d369b608
SM
3722020-08-14 Simon Marchi <simon.marchi@polymtl.ca>
373
374 * utils.h (class gdb_argv) <as_array_view>: New method.
375 * utils.c (gdb_argv_as_array_view_test): New.
376 (_initialize_utils): Register selftest.
377 * maint.c (maintenance_selftest): Use the new method.
378
b31488a3
KR
3792020-08-13 Kamil Rytarowski <n54@gmx.com>
380
381 * target.h (supports_dumpcore, dumpcore): New
382 function declarations.
383 * target.c (supports_dumpcore, dumpcore): New
384 functions.
385 * target-delegates.c: Rebuild.
386 * gcore.c (gcore_command): Use target_supports_dumpcore ()
387 and target_dumpcore ().
388
002a3166
AM
3892020-08-13 Aaron Merey <amerey@redhat.com>
390
391 * debuginfod-support.c: Replace global variables with user_data.
392
ece5bc8a
SM
3932020-08-13 Simon Marchi <simon.marchi@polymtl.ca>
394
395 * maint.c (maintenance_selftest): Split args and pass array_view
396 to run_tests.
397
6d8a0a5e
LM
3982020-08-12 Luis Machado <luis.machado@linaro.org>
399
400 * value.c (check_type_length_before_alloc): Use ULONGEST to store a
401 type's length.
402 Use %s and pulongest to print the length.
403
7cf663a9
PA
4042020-08-12 Pedro Alves <palves@redhat.com>
405
406 * NEWS: Move "Multi-target debugging support" item to the
407 "Changes since GDB 9" section.
408
27c7b875
PA
4092020-08-12 Pedro Alves <palves@redhat.com>
410
411 PR gdb/26336
412 * progspace.c (program_space::remove_objfile): Invalidate the
413 frame cache.
414
1796a2a1
TV
4152020-08-11 Tom de Vries <tdevries@suse.de>
416
417 * MAINTAINERS: Mark ms1 as deleted.
418
f8e3fe0d
LM
4192020-08-10 Luis Machado <luis.machado@linaro.org>
420
421 PR gdb/26310
422
423 * aarch64-tdep.c (aarch64_analyze_prologue): Track use of SP/FP and
424 act accordingly.
425 (aarch64_analyze_prologue_test): Add more unit tests to exercise
426 movz/str/stur/stp skipping behavior.
427
cc308722
LM
4282020-08-10 Luis Machado <luis.machado@linaro.org>
429
430 * nat/aarch64-sve-linux-sigcontext.h (SVE_PT_REGS_OFFSET): Use
431 struct user_sve_header instead of struct sve_context.
432
041d9819
SM
4332020-08-09 Simon Marchi <simon.marchi@polymtl.ca>
434
435 * read.h (dwarf2_fetch_die_loc_sect_off,
436 dwarf2_fetch_die_loc_cu_off): Replace function pointer +
437 `void *` parameter with function_view.
438 * read.c (dwarf2_fetch_die_loc_sect_off,
439 dwarf2_fetch_die_loc_cu_off): Likewise.
440 * loc.c (get_frame_pc_for_per_cu_dwarf_call): Remove.
441 (per_cu_dwarf_call): Adjust.
442 (get_frame_address_in_block_wrapper): Remove.
443 (indirect_synthetic_pointer): Adjust.
444 (get_ax_pc): Remove.
445 (dwarf2_compile_expr_to_ax): Adjust.
446
38f8aa06
TV
4472020-08-08 Tom de Vries <tdevries@suse.de>
448
449 PR build/26344
450 * arch/riscv.c (riscv_lookup_target_description): Use an explicit
451 constructor.
452 * regcache.c (get_thread_arch_aspace_regcache): Same.
453
a52b3ae2
TT
4542020-08-07 Tom Tromey <tromey@adacore.com>
455
456 * ravenscar-thread.c
457 (ravenscar_thread_target::set_base_thread_from_ravenscar_task):
458 New method.
459 (ravenscar_thread_target::wait): Check
460 runtime_initialized.
461 (ravenscar_thread_target::prepare_to_store)
462 (ravenscar_thread_target::stopped_by_sw_breakpoint)
463 (ravenscar_thread_target::stopped_by_hw_breakpoint)
464 (ravenscar_thread_target::stopped_by_watchpoint)
465 (ravenscar_thread_target::stopped_data_address)
466 (ravenscar_thread_target::core_of_thread): Use
467 scoped_restore_current_thread and
468 set_base_thread_from_ravenscar_task.
469
0e29517d
TT
4702020-08-07 Tom Tromey <tromey@adacore.com>
471
472 * ravenscar-thread.c (update_thread_list): Set inferior_ptid.
473
592f9bd7
TT
4742020-08-07 Tom Tromey <tromey@adacore.com>
475
476 * ravenscar-thread.c (ravenscar_thread_target::wait): Call
477 update_inferior_ptid before update_thread_list.
478 (temporarily_change_regcache_ptid): New class.
479 (ravenscar_thread_target::fetch_registers)
480 (ravenscar_thread_target::store_registers)
481 (ravenscar_thread_target::prepare_to_store): Use base thread when
482 forwarding operation.
483
39e2018a
TT
4842020-08-07 Tom Tromey <tromey@adacore.com>
485
486 * ravenscar-thread.c (ravenscar_thread_target::resume): Handle
487 "is_pid" case.
488
2080266b
TT
4892020-08-07 Tom Tromey <tromey@adacore.com>
490
491 * ravenscar-thread.c (xfer_partial, enable_btrace, add_thread):
492 New methods.
493 (ravenscar_thread_target::get_thread_base_cpu): Check m_cpu_map
494 first.
495 (ravenscar_thread_target::add_thread): Rename from
496 ravenscar_add_thread.
497 (ravenscar_thread_target::update_thread_list): Use a lambda.
498 (ravenscar_thread_target::xfer_partial): New method.
499
78c02f21
TT
5002020-08-07 Tom Tromey <tromey@adacore.com>
501
502 * ada-lang.h (ada_task_list_iterator_ftype): Now a
503 gdb::function_view.
504 (iterate_over_live_ada_tasks): Change type of argument.
505 * ada-tasks.c (iterate_over_live_ada_tasks): Change type
506 of argument.
507
d5d833af
TT
5082020-08-07 Tom Tromey <tromey@adacore.com>
509
510 * ravenscar-thread.c (ravenscar_thread_target) <extra_thread_info>:
511 Remove.
512 (ravenscar_thread_target::extra_thread_info): Remove.
513 (ravenscar_thread_target::pid_to_str): Mention Ravenscar in result;
514 defer to target beneath for non-Ravenscar threads.
515
a8ac85bb
TT
5162020-08-07 Tom Tromey <tromey@adacore.com>
517
518 * ravenscar-thread.c (ravenscar_thread_target) <get_base_cpu,
519 get_base_thread_from_ravenscar_task>: Now methods.
520 <m_cpu_map>: New member.
521 (ravenscar_thread_target::get_thread_base_cpu): Rename from
522 ravenscar_get_thread_base_cpu. Check m_cpu_map.
523 (ravenscar_thread_target::task_is_currently_active): Update.
524 (ravenscar_thread_target::get_base_thread_from_ravenscar_task):
525 Now a method.
526 (ravenscar_thread_target::add_active_thread): Put initial thread
527 into the m_cpu_map.
528
550ab58d
TT
5292020-08-07 Tom Tromey <tromey@adacore.com>
530
531 * ravenscar-thread.c (ravenscar_thread_target::wait): Return
532 event_ptid.
533
e9546579
TT
5342020-08-07 Tom Tromey <tromey@adacore.com>
535
536 * ravenscar-thread.c (ravenscar_thread_target::wait): Check
537 runtime_initialized.
538
3d4470e5
TT
5392020-08-07 Tom Tromey <tromey@adacore.com>
540
541 * ravenscar-thread.c (ravenscar_thread_target): Don't call
542 add_active_thread.
543 (ravenscar_thread_target::add_active_thread): Now public.
544 (ravenscar_inferior_created): Call add_active_thread after pushing
545 the target.
546
888bdb2b
SM
5472020-08-07 Simon Marchi <simon.marchi@polymtl.ca>
548
549 * regcache.c (ptid_regcache_map): New type.
550 (target_ptid_regcache_map): New type.
551 (regcaches): Change type to target_ptid_regcache_map.
552 (get_thread_arch_aspace_regcache): Update to regcaches' new
553 type.
554 (regcache_thread_ptid_changed): Likewise.
555 (registers_changed_ptid): Likewise.
556 (regcaches_size): Likewise.
557 (regcaches_test): Update.
558 (regcache_thread_ptid_changed): Update.
559 * regcache.h (regcache_up): New type.
560 * gdbsupport/ptid.h (hash_ptid): New struct.
561
b161a60d
SM
5622020-08-07 Simon Marchi <simon.marchi@efficios.com>
563
564 * observable.h (thread_ptid_changed): Add parameter
565 `process_stratum_target *`.
566 * infrun.c (infrun_thread_ptid_changed): Add parameter
567 `process_stratum_target *` and use it.
568 (selftests): New namespace.
569 (infrun_thread_ptid_changed): New function.
570 (_initialize_infrun): Register selftest.
571 * regcache.c (regcache_thread_ptid_changed): Add parameter
572 `process_stratum_target *` and use it.
573 (regcache_thread_ptid_changed): New function.
574 (_initialize_regcache): Register selftest.
575 * thread.c (thread_change_ptid): Pass target to
576 thread_ptid_changed observable.
577
d2854d8d
CT
5782020-08-06 Caroline Tice <cmtice@google.com>
579
fe4c3d43
SM
580 * dwarf2/read.c (struct dwo_file): Update comment on 'sections' field.
581 (struct dwp_sections): Update field comments. Add loclists and
582 rnglists fields.
583 (struct virtual_v2_dwo_sections): Rename struct to
584 'virtual_v2_or_v5_dwo_sections'; update comments at top of struct; add
585 size & offset fields for loclists and rnglists.
586 (struct dwp_hash_table): Add a 'v5' struct field to the union section.
587 (create_debug_type_hash_table): Add 'DW_UT_split_type' to the check for
588 skipping dummy type units.
589 (create_dwp_hash_table): Update the large comment above the function to
590 discuss Version 5 DWP files as well, with references. Update all the
591 version checks in the function to check for version 5 as well. Add new
592 section at the end to create dwp hash table for version 5.
593 (create_dwp_v2_section): Rename function to
594 'create_dwp_v2_or_v5_section'. Update function comment appropriately.
595 Add V5 to error message text.
596 (create_dwo_unit_in_dwp_v2): Change calls to create_dwp_v2_section
597 into calls to create_dwp_v2_or_v5_section.
598 (create_dwo_unit_in_dwp_v5): New function.
599 (lookup_dwo_unit_in_dwp): Update conditional statement to explicitly
600 check for version2; add else clause to handle version 5.
601 (open_and_init_dwo_file): Add code to check dwarf version & only call
602 create_debug_types_hash_table (with sections.types) if version is not 5;
603 else call create_debug_type_hash_table, with sections.info.
604 (dwarf2_locate_v2_dwp_sections): Update function comment to mention
605 version 5.
606 (dwarf2_locate_v5_dwp_sections): New function.
607 (open_and_init_dwp_file): Add else-if clause for version 5 to call
608 bfd_map_over_sections with dwarf2_locate_v5_dwp_sections.
d2854d8d 609
159ed7d9
SM
6102020-08-06 Simon Marchi <simon.marchi@efficios.com>
611
612 * regcache.h (class regcache): Remove friend
613 registers_changed_ptid.
614 <regcache_thread_ptid_changed>: Remove.
615 <regcaches>: Remove.
616 * regcache.c (regcache::regcaches): Rename to...
617 (regcaches): ... this. Make static.
618 (get_thread_arch_aspace_regcache): Update.
619 (regcache::regcache_thread_ptid_changed): Rename to...
620 (regcache_thread_ptid_changed): ... this. Update.
621 (class regcache_access): Remove.
622 (regcaches_test): Update.
623 (_initialize_regcache): Update.
624 * sparc64-tdep.c, dwarf2/index-write.c, record-btrace.c: Include
625 <forward_list>.
626
174981ae
SM
6272020-08-06 Simon Marchi <simon.marchi@efficios.com>
628
629 * regcache.h (class regcache) <current_regcache>: Rename to...
630 <regcaches>: ... this. Move doc here.
631 * regcache.c (regcache::current_regcache) Rename to...
632 (regcache::regcaches): ... this. Move doc to header.
633 (get_thread_arch_aspace_regcache): Update.
634 (regcache::regcache_thread_ptid_changed): Update.
635 (registers_changed_ptid): Update.
636 (class regcache_access) <current_regcache_size>: Rename to...
637 <regcaches_size>: ... this.
638 (current_regcache_test): Rename to...
639 (regcaches_test): ... this.
640 (_initialize_regcache): Update.
641
ed908db6
VC
6422020-08-06 Victor Collod <vcollod@nvidia.com>
643
644 * amd64-tdep.c (amd64_analyze_prologue): Fix incorrect comment.
645
b5582ab7
KB
6462020-08-05 Kevin Buettner <kevinb@redhat.com>
647
648 * corelow.c (core_target::build_file_mappings): Don't output
649 null pathname in warning.
650
ea946b86
SM
6512020-08-05 Simon Marchi <simon.marchi@polymtl.ca>
652
653 * gdb.dwarf2/clztest.exp, gdb.dwarf2/dw2-common-block.exp,
654 gdb.dwarf2/dw2-dup-frame.exp, gdb.dwarf2/dw2-reg-undefined.exp,
655 gdb.dwarf2/dw2-single-line-discriminators.exp,
656 dw2-undefined-ret-addr.exp: Pass nopie to compilation options.
657
57d02173
TT
6582020-08-05 Tom Tromey <tromey@adacore.com>
659
660 PR rust/26197:
661 * dwarf2/read.c (alloc_rust_variant): Handle univariant case.
662 (quirk_rust_enum): Call alloc_rust_variant for univariant case.
663 Fix off-by-one and type size errors in ordinary case.
664
5555c86d
TV
6652020-08-05 Tom de Vries <tdevries@suse.de>
666
667 * gdbtypes.c (type_not_allocated, type_not_associated): Use
668 "prop->const_val () == 0" instead of "prop->const_val () != 0".
669
97916bfe
SM
6702020-08-04 Simon Marchi <simon.marchi@efficios.com>
671
672 * frame.h (frame_id_p): Return bool.
673 (frame_id_artificial_p): Return bool.
674 (frame_id_eq): Return bool.
675 (has_stack_frames): Return bool.
676 (get_selected_frame): Fix typo in comment.
677 (get_frame_pc_if_available): Return bool.
678 (get_frame_address_in_block_if_available): Return bool.
679 (get_frame_func_if_available): Return bool.
680 (read_frame_register_unsigned): Return bool.
681 (get_frame_register_bytes): Return bool.
682 (safe_frame_unwind_memory): Return bool.
683 (deprecated_frame_register_read): Return bool.
684 (frame_unwinder_is): Return bool.
685 * frame.c (struct frame_info) <prev_arch::p>: Change type to
686 bool.
687 <this_id::p>: Likewise.
688 <prev_p>: Likewise.
689 (frame_stash_add): Return bool.
690 (get_frame_id): Use bool.
691 (frame_id_build_special) Use bool.
692 (frame_id_build_unavailable_stack): Use bool.
693 (frame_id_build): Use bool.
694 (frame_id_p): Return bool, use true/false instead of 1/0.
695 (frame_id_artificial_p): Likewise.
696 (frame_id_eq): Likewise.
697 (frame_id_inner): Likewise.
698 (get_frame_func_if_available): Likewise.
699 (read_frame_register_unsigned): Likewise.
700 (deprecated_frame_register_read): Likewise.
701 (get_frame_register_bytes): Likewise.
702 (has_stack_frames): Likewise.
703 (inside_main_func): Likewise.
704 (inside_entry_func): Likewise.
705 (get_frame_pc_if_available): Likewise.
706 (get_frame_address_in_block_if_available): Likewise.
707 (frame_unwinder_is): Likewise.
708 (safe_frame_unwind_memory): Likewise.
709 (frame_unwind_arch): Likewise.
710
fedfee88
SM
7112020-08-04 Simon Marchi <simon.marchi@efficios.com>
712
713 * frame.c (frame_info) <prev_func> <p>: Rename to status, change
714 type to cached_copy_status.
715 (fprintf_frame): Adjust.
716 (get_frame_func_if_available): Adjust.
717 (frame_cleanup_after_sniffer): Adjust.
718
6cfa9b59
MW
7192020-08-04 Mark Wielaard <mark@klomp.org>
720
721 * MAINTAINERS (Write After Approval): Update email address.
722
66d6346b
SM
7232020-08-04 Simon Marchi <simon.marchi@polymtl.ca>
724
725 * gdbtypes.h (TYPE_DYN_PROP_ADDR): Remove, replace uses with
726 dynamic_prop::const_val.
727
8a6d5e35
SM
7282020-08-04 Simon Marchi <simon.marchi@polymtl.ca>
729
730 * gdbtypes.h (TYPE_DYN_PROP_KIND): Remove, replace uses with
731 dynamic_prop::kind.
732
51d6067d
SM
7332020-08-04 Simon Marchi <simon.marchi@polymtl.ca>
734
735 * gdbtypes.h (TYPE_DYN_PROP_BATON): Remove.
736
b26e2ae7
JM
7372020-08-04 Jose E. Marchesi <jose.marchesi@oracle.com>
738
739 * configure.tgt: Set gdb_sim for bpf-*-* targets.
740
39791af2
JM
7412020-08-04 Weimin Pan <weimin.pan@oracle.com>
742 Jose E. Marchesi <jose.marchesi@oracle.com>
743
744 * configure.tgt: Add entry for bpf-*-*.
745 * Makefile.in (ALL_TARGET_OBS): Add bpf-tdep.o
746 (ALLDEPFILES): Add bpf-tdep.c.
747 * bpf-tdep.c: New file.
748 * MAINTAINERS: Add bpf target and maintainer.
749 * NEWS: Mention the support for the new target.
750
521894aa
TV
7512020-08-04 Tom de Vries <tdevries@suse.de>
752
753 PR symtab/23270
754 * dwarf2/read.c (find_partial_die): Change internal error into Dwarf
755 Error.
756
5d6356e9
JB
7572020-08-03 John Baldwin <jhb@FreeBSD.org>
758
759 * syscalls/freebsd.xml: Regenerate.
760
0cf82b81
JB
7612020-08-03 John Baldwin <jhb@FreeBSD.org>
762
763 * syscalls/update-freebsd.sh: Fix usage and year range.
764
8f34b746
TV
7652020-08-03 Tom de Vries <tdevries@suse.de>
766
767 PR symtab/26333
768 * dwarf2/read.c (dwarf_decode_lines_1): Ignore
769 DW_LNE_lo_user/DW_LNE_hi_user range.
770
5e500d33
SM
7712020-07-30 Simon Marchi <simon.marchi@polymtl.ca>
772
773 PR ada/26318
774 * ada-lang.c (ada_modulus): Return 0 if property is not of const
775 kind.
776
78319c15
TBA
7772020-07-30 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
778
779 * breakpoint.c (set_breakpoint_condition): Do minor refactoring.
780
4c55e970
TBA
7812020-07-30 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
782
783 * breakpoint.c (set_breakpoint_condition): Update the condition
784 expressions after checking that the input condition string parses
785 successfully and does not contain junk at the end.
786
1e620590
TBA
7872020-07-30 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
788
789 * breakpoint.c (set_breakpoint_condition): Update the
790 condition string after parsing the new condition successfully.
791
c8693053
RO
7922020-07-30 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
793
794 * proc-api.c (_STRUCTURED_PROC): Don't define.
795 * proc-events.c: Likewise.
796 * proc-flags.c: Likewise.
797 * proc-why.c: Likewise.
798 * procfs.c: Likewise.
799
800 * Makefile.in (INTERNAL_CPPFLAGS): Add LARGEFILE_CPPFLAGS.
801 * configure, config.in: Regenerate.
802
5a99adb8
TV
8032020-07-30 Tom de Vries <tdevries@suse.de>
804
805 PR build/26320
806 * ui-style.h (struct ui_file_style::color): Wrap m_value and
807 m_red/m_green/m_blue in a union.
808
8ba83e91
TV
8092020-07-29 Tom de Vries <tdevries@suse.de>
810
811 PR tdep/26280
812 * s390-tdep.c (s390_displaced_step_fixup): Fix Wmaybe-uninitialized.
813
f75a0693
AB
8142020-07-28 Tom Tromey <tromey@adacore.com>
815
816 PR symtab/26270:
817 * symtab.h (find_pc_partial_function_sym): Declare.
818 * cli/cli-cmds.c (disassemble_command): Use
819 find_pc_partial_function_sym. Check asm_demangle.
820 * blockframe.c (cache_pc_function_sym): New global.
821 (cache_pc_function_name): Remove.
822 (clear_pc_function_cache): Update.
823 (find_pc_partial_function_sym): New function, from
824 find_pc_partial_function.
825 (find_pc_partial_function): Rewrite using
826 find_pc_partial_function_sym.
827
16f3242c
TT
8282020-07-28 Tom Tromey <tromey@adacore.com>
829
830 * cli/cli-cmds.c (_initialize_cli_cmds): Rearrange "disassemble"
831 help. Add usage.
832
4888741a
TT
8332020-07-28 Tom Tromey <tromey@adacore.com>
834
835 * dwarf2/expr.c (dwarf_expr_context::execute_stack_op)
836 <DW_OP_GNU_variable_value>: Cast to address type.
837
4d46f402
KR
8382020-07-28 Kamil Rytarowski <n54@gmx.com>
839
840 * nbsd-nat.h (nbsd_nat_target::xfer_partial): New declaration.
841 * nbsd-nat.c (nbsd_nat_target::xfer_partial): New function.
842 * nbsd-tdep.c (nbsd_gdbarch_data_handle, struct nbsd_gdbarch_data)
843 (init_nbsd_gdbarch_data, get_nbsd_gdbarch_data)
844 (nbsd_get_siginfo_type): New.
845 (nbsd_init_abi): Install gdbarch "get_siginfo_type" method.
846 (_initialize_nbsd_tdep): New.
847
d70f978b
L
8482020-07-28 H.J. Lu <hongjiu.lu@intel.com>
849
850 PR binutils/26301
851 * configure: Regenerated.
852
377170fa
L
8532020-07-28 H.J. Lu <hongjiu.lu@intel.com>
854
855 PR binutils/26301
856 * configure: Regenerated.
857
43d5901d
AB
8582020-07-28 Andrew Burgess <andrew.burgess@embecosm.com>
859
860 * python/py-frame.c: Remove 'user-regs.h' include.
861 (frapy_read_register): Rewrite to make use of
862 gdbpy_parse_register_id.
863 * python/py-registers.c (gdbpy_parse_register_id): New function,
864 moved here from python/py-unwind.c. Updated the return type, and
865 also accepts register descriptor objects.
866 * python/py-unwind.c: Remove 'user-regs.h' include.
867 (pyuw_parse_register_id): Moved to python/py-registers.c.
868 (unwind_infopy_add_saved_register): Update to use
869 gdbpy_parse_register_id.
870 (pending_framepy_read_register): Likewise.
871 * python/python-internal.h (gdbpy_parse_register_id): Declare.
872
14fa8fb3
AB
8732020-07-28 Andrew Burgess <andrew.burgess@embecosm.com>
874
875 * python/py-registers.c: Add 'user-regs.h' include.
876 (register_descriptor_iter_find): New function.
877 (register_descriptor_iterator_object_methods): New static global
878 methods array.
879 (register_descriptor_iterator_object_type): Add pointer to methods
880 array.
881
ddce1758
JB
8822020-07-27 John Baldwin <jhb@FreeBSD.org>
883
884 * fbsd-nat.h: Include <osreldate.h>. Define USE_SIGTRAP_SIGINFO
885 for all architectures on FreeBSD 11.3 and later.
886
a4089f52
TT
8872020-07-27 Tom Tromey <tromey@adacore.com>
888
889 * gcore.h (load_corefile): Don't declare.
890
95420d30
TV
8912020-07-27 Tom de Vries <tdevries@suse.de>
892
893 * configure.ac: Fix sys/sockets.h -> sys/socket.h typo.
894 * config.in: Regenerate.
895 * configure: Regenerate.
896
05a6b8c2
EZ
8972020-07-26 Eli Zaretskii <eliz@gnu.org>
898
899 * configure.ac (AC_CHECK_HEADERS): Check for sys/socket.h and
900 ws2tcpip.h. When checking whether socklen_t type is defined, use
901 ws2tcpip.h if it is available and sys/socket.h isn't.
902 * configure: Regenerate.
903 * config.in: Regenerate.
904
e79eb02f
AB
9052020-07-25 Andrew Burgess <andrew.burgess@embecosm.com>
906
907 PR fortran/23051
908 PR fortran/26139
909 * valops.c (value_ind): Pass address to
910 readjust_indirect_value_type.
911 * value.c (readjust_indirect_value_type): Make parameter
912 non-const, and add extra address parameter. Resolve original type
913 before using it.
914 * value.h (readjust_indirect_value_type): Update function
915 signature and comment.
916
876518dd
TV
9172020-07-25 Tom de Vries <tdevries@suse.de>
918
919 PR symtab/26243
920 * dwarf2/read.c (lnp_state_machine::record_line): Ignore zero line
921 entries.
922
f6720b1c
AM
9232020-07-24 Aaron Merey <amerey@redhat.com>
924
925 * Makefile.in: Replace LIBDEBUGINFOD with DEBUGINFOD_LIBS.
926 * configure: Rebuild.
927
513487e1
KB
9282020-07-23 Kevin Buettner <kevinb@redhat.com>
929
930 PR corefiles/26294
931 * corelow.c (_initialize_corelow): Add period to help text
932 for "maintenance print core-file-backed-mappings".
933
e7bc9db8
PA
9342020-07-23 Pedro Alves <pedro@palves.net>
935
936 * frame-unwind.c (frame_unwind_try_unwinder): On exception, don't
937 touch THIS_CACHE/THIS_FRAME if the frame cache was cleared
938 meanwhile.
939 * frame.c (frame_cache_generation, get_frame_cache_generation):
940 New.
941 (reinit_frame_cache): Increment FRAME_CACHE_GENERATION.
942 (get_prev_frame_if_no_cycle): On exception, don't touch
943 PREV_FRAME/THIS_FRAME if the frame cache was cleared meanwhile.
944 * frame.h (get_frame_cache_generation): Declare.
945
90fcc466
TV
9462020-07-23 Tom de Vries <tdevries@suse.de>
947
948 PR tui/26282
949 * tui/tui-winsource.h (struct tui_source_windows::tui_source_windows):
950 New default constructor.
951
78344df7
AB
9522020-07-23 Andrew Burgess <andrew.burgess@embecosm.com>
953
954 * disasm.c (do_mixed_source_and_assembly_deprecated): Don't
955 exclude non-statement entries.
956
b089853a
KB
9572020-07-22 Kevin Buettner <kevinb@redhat.com>
958
959 * NEWS (New commands): Mention new command
960 "maintenance print core-file-backed-mappings".
961
09c2f5d4
KB
9622020-07-22 Kevin Buettner <kevinb@redhat.com>
963
964 * corelow.c (gdbcmd.h): Include.
965 (core_target::info_proc_mappings): New method.
966 (get_current_core_target): New function.
967 (maintenance_print_core_file_backed_mappings): New function.
968 (_initialize_corelow): Add core-file-backed-mappings to
969 "maint print" commands.
970
9c5ec5c2 9712020-07-22 Kevin Buettner <kevinb@redhat.com>
fe4c3d43 972
9c5ec5c2
KB
973 * linux-tdep.c (dump_note_entry_p): New function.
974 (linux_dump_mapping_p_ftype): New typedef.
975 (linux_find_memory_regions_full): Add new parameter,
976 should_dump_mapping_p.
977 (linux_find_memory_regions): Adjust call to
978 linux_find_memory_regions_full.
979 (linux_make_mappings_core_file_notes): Use dump_note_entry_p in
980 call to linux_find_memory_regions_full.
981
db082f59
KB
9822020-07-22 Kevin Buettner <kevinb@redhat.com>
983
984 * corelow.c (solist.h, unordered_map): Include.
985 (class core_target): Add field m_core_file_mappings and
986 method build_file_mappings.
987 (core_target::core_target): Call build_file_mappings.
988 (core_target::~core_target): Free memory associated with
989 m_core_file_mappings.
990 (core_target::build_file_mappings): New method.
991 (core_target::xfer_partial): Use m_core_file_mappings
992 for memory transfers.
993 * linux-tdep.c (linux_read_core_file_mappings): New
994 function.
995 (linux_core_info_proc_mappings): Rewrite to use
996 linux_read_core_file_mappings.
997 (linux_init_abi): Register linux_read_core_file_mappings.
998
7e183d27
KB
9992020-07-22 Kevin Buettner <kevinb@redhat.com>
1000
1001 * arch-utils.c (default_read_core_file_mappings): New function.
1002 * arch-utils.c (default_read_core_file_mappings): Declare.
1003 * gdbarch.sh (read_core_file_mappings): New gdbarch method.
1004 * gdbarch.h, gdbarch.c: Regenerate.
1005
2735d421
KB
10062020-07-22 Kevin Buettner <kevinb@redhat.com>
1007
1008 PR corefiles/25631
1009 * corelow.c (core_target:xfer_partial): Revise
1010 TARGET_OBJECT_MEMORY case to consider non-SEC_HAS_CONTENTS
1011 case after first checking the stratum beneath the core
1012 target.
1013 (has_all_memory): Return true.
1014 * target.c (raw_memory_xfer_partial): Revise comment
1015 regarding use of has_all_memory.
1016
e56cb451
KB
10172020-07-22 Kevin Buettner <kevinb@redhat.com>
1018
1019 * exec.h (section_table_xfer_memory): Revise declaration,
1020 replacing section name parameter with an optional callback
1021 predicate.
1022 * exec.c (section_table_xfer_memory): Likewise.
1023 * bfd-target.c, exec.c, target.c, corelow.c: Adjust all callers
1024 of section_table_xfer_memory.
1025
32fa152e
TT
10262020-07-22 Tom Tromey <tromey@adacore.com>
1027
1028 * mi/mi-cmd-stack.c (list_args_or_locals): Use
1029 lookup_symbol_search_name.
1030
a67a1c41
AB
10312020-07-22 Andrew Burgess <andrew.burgess@embecosm.com>
1032
1033 * python/py-registers.c (gdbpy_register_object_data_init): Remove
1034 redundant local variable.
1035 (gdbpy_get_register_descriptor): Extract descriptor vector as a
1036 reference, not pointer, update code accordingly.
1037
a7b4ff4f
SM
10382020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
1039 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1040
1041 * objfiles.h (struct objfile) <skip_jit_symbol_lookup>: New field.
1042 * jit.c (jit_breakpoint_re_set_internal): Use the
1043 `skip_jit_symbol_lookup` field.
1044
2340e834
SM
10452020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
1046 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1047
1048 * jit.c (jit_read_descriptor): Define the descriptor address once,
1049 use twice.
1050 (jit_breakpoint_deleted): Move the declaration of the loop variable
1051 `iter` into the loop header.
1052 (jit_breakpoint_re_set_internal): Move the declaration of the local
1053 variable `objf_data` to the first point of definition.
1054 (jit_event_handler): Move the declaration of local variables
1055 `code_entry`, `entry_addr`, and `objf` to their first point of use.
1056 Rename `objf` to `jited`.
1057
c1072906
SM
10582020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
1059
1060 * jit.h (struct jiter_objfile_data) <jiter_objfile_data, objfile>:
1061 Remove.
1062 * jit.c (get_jiter_objfile_data): Update.
1063
c8474dc3
TBA
10642020-07-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1065 Simon Marchi <simon.marchi@polymtl.ca>
1066
1067 * jit.c (struct jit_program_space_data): Remove.
1068 (jit_program_space_key): Remove.
1069 (jiter_objfile_data::~jiter_objfile_data): Remove program space
1070 stuff.
1071 (get_jit_program_space_data): Remove.
1072 (jit_breakpoint_deleted): Iterate on all of the program space's
1073 objfiles.
1074 (jit_inferior_init): Likewise.
1075 (jit_breakpoint_re_set_internal): Likewise. Also change return
1076 type to void.
1077 (jit_breakpoint_re_set): Pass current_program_space to
1078 jit_breakpoint_re_set_internal.
1079
77208eb7
SM
10802020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
1081
1082 * jit.h (struct jiter_objfile_data) <cached_code_address,
1083 jit_breakpoint>: Move to here from ...
1084 * jit.c (jit_program_space_data): ... here.
1085 (jiter_objfile_data::~jiter_objfile_data): Update.
1086 (jit_breakpoint_deleted): Update.
1087 (jit_breakpoint_re_set_internal): Update.
1088
8c1c720f
SM
10892020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
1090
1091 * jit.c (jiter_objfile_data::~jiter_objfile_data): Remove some
1092 checks.
1093 (jit_read_descriptor): Remove NULL check.
1094 (jit_event_handler): Add an assertion.
1095
0e74a041
SM
10962020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
1097
1098 * jit.h (struct jit_objfile_data): Split into...
1099 (struct jiter_objfile_data): ... this ...
1100 (struct jited_objfile_data): ... and this.
1101 * objfiles.h (struct objfile) <jit_data>: Remove.
1102 <jiter_data, jited_data>: New fields.
1103 * jit.c (jit_objfile_data::~jit_objfile_data): Rename to ...
1104 (jiter_objfile_data::~jiter_objfile_data): ... this.
1105 (get_jit_objfile_data): Rename to ...
1106 (get_jiter_objfile_data): ... this.
1107 (add_objfile_entry): Update.
1108 (jit_read_descriptor): Use get_jiter_objfile_data.
1109 (jit_find_objf_with_entry_addr): Use objfile's jited_data field.
1110 (jit_breakpoint_re_set_internal): Use get_jiter_objfile_data.
1111 (jit_inferior_exit_hook): Use objfile's jited_data field.
1112
238b5c9f
SM
11132020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
1114
1115 * jit.h: Forward-declare `struct minimal_symbol`.
1116 (struct jit_objfile_data): Migrate to here from jit.c; also add a
1117 constructor, destructor, and an objfile* field.
1118 * jit.c (jit_objfile_data): Remove.
1119 (struct jit_objfile_data): Migrate from here to jit.h.
1120 (jit_objfile_data::~jit_objfile_data): New destructor
1121 implementation with code moved from free_objfile_data.
1122 (free_objfile_data): Delete.
1123 (get_jit_objfile_data): Update to use the jit_data field of objfile.
1124 (jit_find_objf_with_entry_addr): Ditto.
1125 (jit_inferior_exit_hook): Ditto.
1126 (_initialize_jit): Remove the call to
1127 register_objfile_data_with_cleanup.
1128 * objfiles.h (struct objfile) <jit_data>: New field.
1129
fe053b9e
TBA
11302020-07-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1131
1132 * jit.h: Forward-declare `struct objfile`.
1133 (jit_event_handler): Add a second parameter, the JITer objfile.
1134 * jit.c (jit_read_descriptor): Change the signature to take the
1135 JITer objfile as an argument instead of the jit_program_space_data.
1136 (jit_inferior_init): Update the call to jit_read_descriptor.
1137 (jit_event_handler): Use the new JITer objfile argument when calling
1138 jit_read_descriptor.
1139 * breakpoint.c (handle_jit_event): Update the call to
1140 jit_event_handler to pass the JITer objfile.
1141
4cec0c66
JB
11422020-07-21 John Baldwin <jhb@FreeBSD.org>
1143
1144 * gdbarch.c: Regenerate.
1145 * gdbarch.h: Regenerate.
1146 * gdbarch.sh (handle_segmentation_fault): Remove method.
1147 * infrun.c (handle_segmentation_fault): Remove.
1148 (print_signal_received_reason): Remove call to
1149 handle_segmentation_fault.
1150
0e42f66a
JB
11512020-07-21 John Baldwin <jhb@FreeBSD.org>
1152
1153 * sparc64-linux-tdep.c (sparc64_linux_handle_segmentation_fault):
1154 Rename to sparc64_linux_report_signal_info and add siggnal
1155 argument.
1156 (sparc64_linux_init_abi): Use sparc64_linux_report_signal_info
1157 instead of sparc64_linux_handle_segmentation_fault.
1158
77bdfeb2
JB
11592020-07-21 John Baldwin <jhb@FreeBSD.org>
1160
1161 * amd64-linux-tdep.c (amd64_linux_init_abi_common): Use
1162 i386_linux_report_signal_info instead of
1163 i386_linux_handle_segmentation_fault.
1164 * i386-linux-tdep.c (i386_linux_handle_segmentation_fault): Rename
1165 to i386_linux_report_signal_info and add siggnal argument.
1166 (i386_linux_init_abi): Use i386_linux_report_signal_info instead
1167 of i386_linux_handle_segmentation_fault.
1168 * i386-linux-tdep.h (i386_linux_handle_segmentation_fault): Rename
1169 to i386_linux_report_signal_info and add siggnal argument.
1170
ad97bfc5
JB
11712020-07-21 John Baldwin <jhb@FreeBSD.org>
1172
1173 * corelow.c (core_target_open): Invoke gdbarch report_signal_info
1174 hook if present.
1175
272bb05c
JB
11762020-07-21 John Baldwin <jhb@FreeBSD.org>
1177
1178 * gdbarch.c: Regenerate.
1179 * gdbarch.h: Regenerate.
1180 * gdbarch.sh (report_signal_info): New method.
1181 * infrun.c (print_signal_received_reason): Invoke gdbarch
1182 report_signal_info hook if present.
1183
baf8791e
AB
11842020-07-21 Andrew Burgess <andrew.burgess@embecosm.com>
1185
1186 * python/py-registers.c : Add 'unordered_map' include.
1187 (gdbpy_new_reggroup): Renamed to...
1188 (gdbpy_get_reggroup): ...this. Update to only create register
1189 group descriptors when needed.
1190 (gdbpy_reggroup_iter_next): Update.
1191
f7306dac
AB
11922020-07-21 Andrew Burgess <andrew.burgess@embecosm.com>
1193
1194 * python/py-registers.c (gdbpy_register_object_data): New static
1195 global.
1196 (gdbpy_register_object_data_init): New function.
1197 (gdbpy_new_register_descriptor): Renamed to...
1198 (gdbpy_get_register_descriptor): ...this, and update to reuse
1199 existing register descriptors where possible.
1200 (gdbpy_register_descriptor_iter_next): Update.
1201 (gdbpy_initialize_registers): Register new gdbarch data.
1202
05c309a8
SM
12032020-07-21 Simon Marchi <simon.marchi@efficios.com>
1204
1205 * linux-nat.c (stopped_pids): Make static.
1206
d1fd641e
SM
12072020-07-21 Simon Marchi <simon.marchi@polymtl.ca>
1208
1209 PR ada/26235
1210 * gdbtypes.c (ada_discrete_type_low_bound,
1211 ada_discrete_type_high_bound): Handle undefined bounds.
1212
1de14d77
KR
12132020-07-21 Kamil Rytarowski <n54@gmx.com>
1214
1215 * nbsd-nat.h (nbsd_nat_target::supports_multi_process): New
1216 declaration.
1217 * nbsd-nat.c (nbsd_nat_target::supports_multi_process): New
1218 function.
1219
ed810cc7
JB
12202020-07-20 John Baldwin <jhb@FreeBSD.org>
1221
1222 * fbsd-tdep.c (fbsd_skip_solib_resolver): New function.
1223 (fbsd_init_abi): Install gdbarch "skip_solib_resolver" method.
1224 * fbsd-tdep.h (fbsd_skip_solib_resolver): New prototype.
1225 * mips-fbsd-tdep.c (mips_fbsd_skip_solib_resolver): New function.
1226 (mips_fbsd_init_abi): Install gdbarch "skip_solib_resolver"
1227 method.
1228
ae5369e7
LC
12292020-07-20 Ludovic Courtès <ludo@gnu.org>
1230
1231 * guile/scm-math.c (vlscm_integer_fits_p): Use 'uintmax_t'
1232 and 'intmax_t' instead of 'scm_t_uintmax' and 'scm_t_intmax',
1233 which are deprecated in Guile 3.0.
1234 * configure.ac (try_guile_versions): Add "guile-3.0".
1235 * configure (try_guile_versions): Regenerate.
1236 * NEWS: Update entry.
1237
68cf161c
LC
12382020-07-20 Ludovic Courtès <ludo@gnu.org>
1239 Doug Evans <dje@google.com>
1240
1241 PR gdb/21104
1242 * guile/scm-ports.c (USING_GUILE_BEFORE_2_2): New macro.
1243 (ioscm_memory_port)[read_buf_size, write_buf_size]: Wrap in #if
1244 USING_GUILE_BEFORE_2_2.
1245 (stdio_port_desc, memory_port_desc) [!USING_GUILE_BEFORE_2_2]:
1246 Change type to 'scm_t_port_type *'.
1247 (natural_buffer_size) [!USING_GUILE_BEFORE_2_2]: New variable.
1248 (ioscm_open_port) [USING_GUILE_BEFORE_2_2]: Add 'stream'
1249 parameter and honor it. Update callers.
1250 (ioscm_open_port) [!USING_GUILE_BEFORE_2_2]: New function.
1251 (ioscm_read_from_port, ioscm_write) [!USING_GUILE_BEFORE_2_2]: New
1252 functions.
1253 (ioscm_fill_input, ioscm_input_waiting, ioscm_flush): Wrap in #if
1254 USING_GUILE_BEFORE_2_2.
1255 (ioscm_init_gdb_stdio_port) [!USING_GUILE_BEFORE_2_2]: Use
1256 'ioscm_read_from_port'. Call 'scm_set_port_read_wait_fd'.
1257 (ioscm_init_stdio_buffers) [!USING_GUILE_BEFORE_2_2]: New function.
1258 (gdbscm_stdio_port_p) [!USING_GUILE_BEFORE_2_2]: Use 'SCM_PORTP'
1259 and 'SCM_PORT_TYPE'.
1260 (gdbscm_memory_port_end_input, gdbscm_memory_port_seek)
1261 (ioscm_reinit_memory_port): Wrap in #if USING_GUILE_BEFORE_2_2.
1262 (gdbscm_memory_port_read, gdbscm_memory_port_write)
1263 (gdbscm_memory_port_seek, gdbscm_memory_port_close)
1264 [!USING_GUILE_BEFORE_2_2]: New functions.
1265 (gdbscm_memory_port_print): Remove use of 'SCM_PTOB_NAME'.
1266 (ioscm_init_memory_port_type) [!USING_GUILE_BEFORE_2_2]: Use
1267 'gdbscm_memory_port_read'.
1268 Wrap 'scm_set_port_end_input', 'scm_set_port_flush', and
1269 'scm_set_port_free' calls in #if USING_GUILE_BEFORE_2_2.
1270 (gdbscm_get_natural_buffer_sizes) [!USING_GUILE_BEFORE_2_2]: New
1271 function.
1272 (ioscm_init_memory_port): Remove.
1273 (ioscm_init_memory_port_stream): New function
1274 (ioscm_init_memory_port_buffers) [USING_GUILE_BEFORE_2_2]: New
1275 function.
1276 (gdbscm_memory_port_read_buffer_size) [!USING_GUILE_BEFORE_2_2]:
1277 Return scm_from_uint (0).
1278 (gdbscm_set_memory_port_read_buffer_size_x)
1279 [!USING_GUILE_BEFORE_2_2]: Call 'scm_setvbuf'.
1280 (gdbscm_memory_port_write_buffer_size) [!USING_GUILE_BEFORE_2_2]:
1281 Return scm_from_uint (0).
1282 (gdbscm_set_memory_port_write_buffer_size_x)
1283 [!USING_GUILE_BEFORE_2_2]: Call 'scm_setvbuf'.
1284 * configure.ac (try_guile_versions): Add "guile-2.2".
1285 * configure: Regenerate.
1286 * NEWS: Add entry.
1287
aee91db3
TT
12882020-07-18 Tom Tromey <tom@tromey.com>
1289
1290 * linux-nat.c (linux_multi_process): Remove.
1291 (linux_nat_target::supports_multi_process): Return true.
1292
0e267416
AB
12932020-07-17 Andrew Burgess <andrew.burgess@embecosm.com>
1294
1295 * arch/riscv.c (riscv_tdesc_cache): Change map type.
1296 (riscv_lookup_target_description): Return pointer out of
1297 unique_ptr.
1298 * target-descriptions.c (allocate_target_description): Add
1299 comment.
1300 (target_desc_deleter::operator()): Likewise.
1301 * target-descriptions.h (struct target_desc_deleter): Moved to
1302 gdbsupport/tdesc.h.
1303 (target_desc_up): Likewise.
1304
f80c8ec4
TT
13052020-07-17 Tom Tromey <tromey@adacore.com>
1306
1307 * linux-nat.c (linux_nat_target::supports_non_stop)
1308 (linux_nat_target::always_non_stop_p): Use "true".
1309 (linux_nat_target::supports_disable_randomization): Use "true" and
1310 "false".
1311
d0ce17d8
CT
13122020-07-16 Caroline Tice <cmtice@google.com>
1313
1314 * dwarf2/read.c (RNGLIST_HEADER_SIZE32) New constant definition.
1315 (RNGLIST_HEADER_SIZE64): New constant definition.
1316 (struct dwop_section_names): Add rnglists_dwo.
1317 (dwop_section_names): Add .debug_rnglists.dwo, .zdebug_rnglists.dwo.
1318 (struct loclist_header): Rename to 'loclists_rnglists_header'.
1319 (struct dwo_sections): Add rnglists field.
1320 (read_attribut_reprocess): Add tag parameter.
1321 (dwarf2_ranges_read): Add tag parameter & remove forward function decl.
1322 (cu_debug_rnglists_section): New function (decl & definition).
1323 (dwarf2_locate_dwo_sections): Add code to read rnglists_dwo section.
1324 (dwarf2_rnglists_process): Add a dwarf_tag parameter, for the kind of
1325 die whose range is being checked; get rnglist section from
1326 cu_debug_rnglists_section, to get from either objfile or dwo file as
1327 appropriate. Add cases for DW_RLE_base_addressx,
1328 DW_RLE_startx_length, DW_RLE_startx_endx. Also, update to only add
1329 the base address to DW_RLE_offset_pairs (not to all ranges), moving
1330 test inside if-condition and updating complaint message.
1331 (dwarf2_ranges_process): Add dwarf tag parameter and pass it to
1332 dwarf2_rnglists_process.
1333 (dwarf2_ranges_read): Add dwarf tag parameter and pass it to
1334 dwarf2_ranges_process.
1335 (dwarf2_get_pc_bounds): Check for DW_FORM_rnglistx when setting
1336 need_ranges_base and update comment appropriately. Also pass die tag
1337 to dwarf2_ranges_read.
1338 (dwarf2_record_block_ranges): Check for DW_FORM_rnglistx when setting
1339 need_ranges_base and update comment appropriately. Also pass die tag
1340 to dwarf2_ranges_process.
1341 (read_full_die_1): Add code to read DW_AT_rnglists_base and assign to
1342 cu->ranges_base. Also pass die tag to read_attribute_reprocess.
1343 (partial_die_info::read): Check for DW_FORM_rnglistx when setting
1344 need_ranges_base and update comment appropriately. Also pass die tag
1345 to read_attribute_reprocess and dwarf2_ranges_read.
1346 (read_loclist_header): Rename function to read_loclists_rnglists_header,
1347 and update function comment appropriately.
1348 (read_loclist_index): Call read_loclists_rnglists_header instead of
1349 read_loclist_header.
1350 (read_rnglist_index): New function.
1351 (read_attribute_reprocess): Add tag parameter. Add code for
1352 DW_FORM_rnglistx, passing tag to read_rnglist_index.
1353 (read_attribute_value): Mark DW_FORM_rnglistx with need_reprocess.
1354
3dcc261c
AB
13552020-07-15 Andrew Burgess <andrew.burgess@embecosm.com>
1356
1357 * f-typeprint.c (f_type_print_base): Allow for dynamic types not
1358 being resolved.
1359
ccb9eba6
AB
13602020-07-14 Andrew Burgess <andrew.burgess@embecosm.com>
1361
1362 * arch-utils.c (show_architecture): Update formatting of messages.
1363
cf88be68
SM
13642020-07-12 Simon Marchi <simon.marchi@efficios.com>
1365
1366 * gdbtypes.h (struct type) <bounds>: Handle array and string
1367 types.
1368 * ada-lang.c (assign_aggregate): Use type::bounds on
1369 array/string type.
1370 * c-typeprint.c (c_type_print_varspec_suffix): Likewise.
1371 * c-varobj.c (c_number_of_children): Likewise.
1372 (c_describe_child): Likewise.
1373 * eval.c (evaluate_subexp_for_sizeof): Likewise.
1374 * f-typeprint.c (f_type_print_varspec_suffix): Likewise.
1375 (f_type_print_base): Likewise.
1376 * f-valprint.c (f77_array_offset_tbl): Likewise.
1377 (f77_get_upperbound): Likewise.
1378 (f77_print_array_1): Likewise.
1379 * guile/scm-type.c (gdbscm_type_range): Likewise.
1380 * m2-typeprint.c (m2_array): Likewise.
1381 (m2_is_long_set_of_type): Likewise.
1382 * m2-valprint.c (get_long_set_bounds): Likewise.
1383 * p-typeprint.c (pascal_type_print_varspec_prefix): Likewise.
1384 * python/py-type.c (typy_range): Likewise.
1385 * rust-lang.c (rust_internal_print_type): Likewise.
1386 * type-stack.c (type_stack::follow_types): Likewise.
1387 * valarith.c (value_subscripted_rvalue): Likewise.
1388 * valops.c (value_cast): Likewise.
1389
509971ae
SM
13902020-07-12 Simon Marchi <simon.marchi@efficios.com>
1391
1392 * gdbtypes.c (TYPE_ARRAY_BIT_STRIDE): Remove. Update all
1393 callers to use the equivalent accessor methods.
1394
107406b7
SM
13952020-07-12 Simon Marchi <simon.marchi@efficios.com>
1396
1397 * gdbtypes.h (struct range_bounds) <bit_stride>: New method.
1398 (struct type) <bit_stride>: New method.
1399 (TYPE_BIT_STRIDE): Remove.
1400 * gdbtypes.c (update_static_array_size): Use type::bit_stride.
1401
bb789949
SM
14022020-07-12 Simon Marchi <simon.marchi@efficios.com>
1403
1404 * gdbtypes.h (TYPE_ARRAY_LOWER_BOUND_VALUE,
1405 TYPE_ARRAY_UPPER_BOUND_VALUE): Remove. Update all
1406 callers to use the equivalent accessor methods instead.
1407
39498edb
SM
14082020-07-12 Simon Marchi <simon.marchi@efficios.com>
1409
1410 * gdbtypes.h (TYPE_ARRAY_UPPER_BOUND_IS_UNDEFINED,
1411 TYPE_ARRAY_LOWER_BOUND_IS_UNDEFINED): Remove. Update all
1412 callers to use the equivalent accessor methods instead.
1413
3b606f38
SM
14142020-07-12 Simon Marchi <simon.marchi@efficios.com>
1415
1416 * gdbtypes.h (TYPE_LOW_BOUND_KIND,
1417 TYPE_HIGH_BOUND_KIND): Remove. Update all callers
1418 to use dynamic_prop::kind.
1419
064d9cb9
SM
14202020-07-12 Simon Marchi <simon.marchi@efficios.com>
1421
1422 * gdbtypes.h (TYPE_LOW_BOUND_UNDEFINED,
1423 TYPE_HIGH_BOUND_UNDEFINED): Remove. Update all callers
1424 to get the bound property's kind and check against
1425 PROP_UNDEFINED.
1426
5537ddd0
SM
14272020-07-12 Simon Marchi <simon.marchi@efficios.com>
1428
1429 * gdbtypes.h (TYPE_LOW_BOUND, TYPE_HIGH_BOUND): Remove. Update
1430 all callers to use type::range_bounds followed by
1431 dynamic_prop::{low,high}.
1432
8c2e4e06
SM
14332020-07-12 Simon Marchi <simon.marchi@polymtl.ca>
1434
1435 * gdbtypes.h (struct dynamic_prop) <kind, set_undefined,
1436 const_val, set_const_val, baton, set_locexpr, set_loclist,
1437 set_addr_offset, variant_parts, set_variant_parts,
1438 original_type, set_original_type>: New methods.
1439 <kind>: Rename to...
1440 <m_kind>: ... this. Update all users to use the new methods
1441 instead.
1442 <data>: Rename to...
1443 <m_data>: ... this. Update all users to use the new methods
1444 instead.
1445
7c6f2712
SM
14462020-07-12 Simon Marchi <simon.marchi@efficios.com>
1447
1448 * gdbtypes.c (get_discrete_bounds): Return failure if
1449 the range type's bounds are not both defined and constant
1450 values.
1451 (get_array_bounds): Update comment. Remove undefined bound check.
1452
599088e3
SM
14532020-07-12 Simon Marchi <simon.marchi@polymtl.ca>
1454
1455 * gdbtypes.h (TYPE_RANGE_DATA): Remove. Update callers to use
1456 the type::bounds method directly.
1457
c4dfcb36
SM
14582020-07-12 Simon Marchi <simon.marchi@efficios.com>
1459
1460 * gdbtypes.h (struct type) <bounds, set_bounds>: New methods.
1461 (TYPE_RANGE_DATA): Use type::bounds. Change all uses that
1462 are used to set the range type's bounds to use set_bounds.
1463
0a278aa7
PW
14642020-07-11 Philippe Waroquiers <philippe.waroquiers@skynet.be>
1465
1466 * exec.c (_initialize_exec): Update exec-file-mismatch help.
1467
cce20f10
PA
14682020-07-10 Pedro Alves <pedro@palves.net>
1469
1470 * gdbthread.h (inferior_ref): Define.
1471 (scoped_restore_current_thread) <m_thread>: Now a thread_info_ref.
1472 (scoped_restore_current_thread) <m_inf>: Now an inferior_ref.
1473 * thread.c
1474 (scoped_restore_current_thread::restore):
1475 Adjust to gdb::ref_ptr.
1476 (scoped_restore_current_thread::~scoped_restore_current_thread):
1477 Remove manual decref handling.
1478 (scoped_restore_current_thread::scoped_restore_current_thread):
1479 Adjust to use
1480 inferior_ref::new_reference/thread_info_ref::new_reference.
1481 Incref the thread before calling get_frame_id instead of after.
1482 Let TARGET_CLOSE_ERROR propagate.
1483
6d7aa592
PA
14842020-07-10 Pedro Alves <pedro@palves.net>
1485
1486 * frame-tailcall.c (dwarf2_tailcall_sniffer_first): Only swallow
1487 NO_ENTRY_VALUE_ERROR / MEMORY_ERROR / OPTIMIZED_OUT_ERROR /
1488 NOT_AVAILABLE_ERROR.
1489 * value.c (value_optimized_out): Only swallow MEMORY_ERROR /
1490 OPTIMIZED_OUT_ERROR / NOT_AVAILABLE_ERROR.
1491
b3e3a4c1
SM
14922020-07-10 Simon Marchi <simon.marchi@polymtl.ca>
1493 Pedro Alves <pedro@palves.net>
1494
1495 PR gdb/26199
1496 * infrun.c (threads_are_resumed_pending_p): Delete.
1497 (do_target_wait): Remove threads_are_executing and
1498 threads_are_resumed_pending_p checks from the inferior_matches
1499 lambda. Update comments.
1500
d6cc5d98
PA
15012020-07-10 Pedro Alves <pedro@palves.net>
1502
1503 PR gdb/26199
1504 * infrun.c (handle_no_resumed): Transfer terminal to inferior with
1505 executing threads.
1506
7d3badc6
PA
15072020-07-10 Pedro Alves <pedro@palves.net>
1508
1509 PR gdb/26199
1510 * infrun.c (handle_no_resumed): Handle multiple targets.
1511
42bd97a6
PA
15122020-07-10 Pedro Alves <pedro@palves.net>
1513
1514 PR gdb/26199
1515 * infrun.c (prepare_to_wait): Check target_can_async_p instead of
1516 target_is_async_p.
1517
43667cc6
PA
15182020-07-10 Pedro Alves <pedro@palves.net>
1519
1520 PR gdb/26199
1521 * target.c (target_pass_ctrlc): Look at the inferior's non-exited
1522 threads, not all threads.
1523
96118d11
PA
15242020-07-10 Pedro Alves <pedro@palves.net>
1525
1526 PR gdb/26199
1527 * remote.c (remote_target::open_1): Pass remote target pointer as
1528 data to create_async_event_handler.
1529 (remote_async_inferior_event_handler): Mark async event handler
1530 before returning if the remote target still has either pending
1531 events or unacknowledged notifications.
1532
54904d81
JB
15332020-07-10 John Baldwin <jhb@FreeBSD.org>
1534
1535 * fbsd-nat.h (fbsd_nat_target::supports_multi_process): New
1536 declaration.
1537 * fbsd-nat.c (fbsd_nat_target::supports_multi_process): New
1538 function.
1539
f37e5866
JB
15402020-07-09 John Baldwin <jhb@FreeBSD.org>
1541
1542 * inf-ptrace.c (inf_ptrace_target::wait): Don't compare against
1543 inferior_ptid.
1544
fc238d4a
JB
15452020-07-09 John Baldwin <jhb@FreeBSD.org>
1546
1547 * fbsd-tdep.c (fbsd_print_auxv_entry): Handle AT_FREEBSD_ARGC,
1548 AT_FREEBSD_ARGV, AT_FREEBSD_ENVC, AT_FREEBSD_ENVV,
1549 AT_FREEBSD_PS_STRINGS.
1550
6e2469ff
HD
15512020-07-08 Hannes Domani <ssbssa@yahoo.de>
1552
1553 * auto-load.c (auto_load_objfile_script_1): Convert drive part
1554 of debugfile path on Windows.
1555
d1076c41
JB
15562020-07-08 John Baldwin <jhb@FreeBSD.org>
1557
1558 * fbsd-nat.c (fbsd_nat_target::find_memory_regions): Rename 'obfd'
1559 argument to 'data'.
1560
15f3b077
TT
15612020-07-08 Tom Tromey <tromey@adacore.com>
1562
1563 * ada-lang.c (ada_exception_message_1): Use read_memory.
1564
9fc501fd
AB
15652020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
1566
1567 PR python/22748
1568 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first): Remove
1569 special handling for inline frames.
1570 * findvar.c (value_of_register_lazy): Skip inline frames when
1571 creating lazy register values.
1572 * frame.c (frame_id_computed_p): Delete definition.
1573 * frame.h (frame_id_computed_p): Delete declaration.
1574
64cb3757
AB
15752020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
1576
1577 * NEWS: Mention additions to Python API.
1578 * python/py-arch.c (archpy_register_groups): New function.
1579 (arch_object_methods): Add 'register_groups' method.
1580 * python/py-registers.c (reggroup_iterator_object): New struct.
1581 (reggroup_object): New struct.
1582 (gdbpy_new_reggroup): New function.
1583 (gdbpy_reggroup_to_string): New function.
1584 (gdbpy_reggroup_name): New function.
1585 (gdbpy_reggroup_iter): New function.
1586 (gdbpy_reggroup_iter_next): New function.
1587 (gdbpy_new_reggroup_iterator): New function
1588 (gdbpy_initialize_registers): Register new types.
1589 (reggroup_iterator_object_type): Define new Python type.
1590 (gdbpy_reggroup_getset): New static global.
1591 (reggroup_object_type): Define new Python type.
1592 * python/python-internal.h
1593
0f767f94
AB
15942020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
1595
1596 * Makefile.in (SUBDIR_PYTHON_SRCS): Add py-registers.c
1597 * python/py-arch.c (archpy_registers): New function.
1598 (arch_object_methods): Add 'registers' method.
1599 * python/py-registers.c: New file.
1600 * python/python-internal.h
1601 (gdbpy_new_register_descriptor_iterator): Declare.
1602 (gdbpy_initialize_registers): Declare.
1603 * python/python.c (do_start_initialization): Call
1604 gdbpy_initialize_registers.
1605 * NEWS: Mention additions to the Python API.
1606
87dbc774
AB
16072020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
1608
1609 * NEWS: Mention new Python API method.
1610 * python/py-unwind.c (pending_framepy_architecture): New function.
1611 (pending_frame_object_methods): Add architecture method.
1612
3bc98c0c
AB
16132020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
1614
1615 * gdbarch.c: Regenerate.
1616 * gdbarch.h: Regenerate.
1617 * gdbarch.sh (deprecated_set_gdbarch_data): Delete.
1618 (gdbarch_data): Use internal_error for the case where
1619 deprecated_set_gdbarch_data was originally needed.
1620 * ia64-libunwind-tdep.c (libunwind_descr_init): Update parameters,
1621 and use passed in obstack.
1622 (libunwind_frame_set_descr): Should no longer get back NULL from
1623 gdbarch_data.
1624 (_initialize_libunwind_frame): Register as a pre-init gdbarch data
1625 type.
1626 * user-regs.c (user_regs_init): Update parameters, and use passed
1627 in obstack.
1628 (user_reg_add): Should no longer get back NULL from gdbarch_data.
1629 (_initialize_user_regs): Register as a pre-init gdbarch data type.
1630
d8cc8af6
TV
16312020-07-06 Tom de Vries <tdevries@suse.de>
1632
1633 * buildsym.c (buildsym_compunit::end_symtab_with_blockvector): Handle
1634 End-Of-Sequence in lte_is_less_than.
1635 * symtab.c (find_pc_sect_line): Revert change from commit 3d92a3e313
1636 "gdb: Don't reorder line table entries too much when sorting".
1637
947f7597
TV
16382020-07-06 Tom de Vries <tdevries@suse.de>
1639
1640 PR tui/26205
1641 * tui/tui-win.c (tui_partial_win_by_name): Don't test for NULL name.
1642
1e7c1b22
TV
16432020-07-05 Tom de Vries <tdevries@suse.de>
1644
1645 PR build/26187
1646 * inferior.h (struct infcall_suspend_state_deleter): If available, use
1647 std::uncaught_exceptions instead of deprecated
1648 std::uncaught_exception.
1649
a36158ec
SM
16502020-07-02 Simon Marchi <simon.marchi@polymtl.ca>
1651
1652 * macroexp.h (macro_stringify): Return
1653 gdb::unique_xmalloc_ptr<char>.
1654 * macroexp.c (macro_stringify): Likewise.
1655 * macrotab.c (fixup_definition): Update.
1656
14d960c8
SM
16572020-07-02 Simon Marchi <simon.marchi@polymtl.ca>
1658
1659 * c-exp.y (scan_macro_expansion): Don't free `expansion`.
1660 (lex_one_token): Update.
1661 * macroexp.c (struct macro_buffer) <release>: Return
1662 gdb::unique_xmalloc_ptr<char>.
1663 (macro_stringify): Update.
1664 (macro_expand): Update.
1665 (macro_expand_next): Return gdb::unique_xmalloc_ptr<char>.
1666 * macroexp.h (macro_expand_next): Likewise.
1667
211d5b1c
SM
16682020-07-02 Simon Marchi <simon.marchi@efficios.com>
1669
1670 * macroexp.h (macro_lookup_ftype): Remove.
1671 (macro_expand, macro_expand_once, macro_expand_next): Remove
1672 lookup function parameters, add scope parameter.
1673 * macroexp.c (scan, substitute_args, expand, maybe_expand,
1674 macro_expand, macro_expand_once, macro_expand_next): Likewise.
1675 * macroscope.h (standard_macro_lookup): Change parameter type
1676 to macro_scope.
1677 * macroscope.c (standard_macro_lookup): Likewise.
1678 * c-exp.y (lex_one_token): Update.
1679 * macrocmd.c (macro_expand_command): Likewise.
1680 (macro_expand_once_command): Likewise.
1681
b1a35af2
SM
16822020-07-02 Simon Marchi <simon.marchi@polymtl.ca>
1683
1684 * inf-loop.c (inferior_event_handler): Remove client_data param.
1685 * inf-loop.h (inferior_event_handler): Likewise.
1686 * infcmd.c (step_1): Adjust.
1687 * infrun.c (proceed): Adjust.
1688 (fetch_inferior_event): Remove client_data param.
1689 (infrun_async_inferior_event_handler): Adjust.
1690 * infrun.h (fetch_inferior_event): Remove `void *` param.
1691 * linux-nat.c (handle_target_event): Adjust.
1692 * record-btrace.c (record_btrace_handle_async_inferior_event):
1693 Adjust.
1694 * record-full.c (record_full_async_inferior_event_handler):
1695 Adjust.
1696 * remote.c (remote_async_inferior_event_handler): Adjust.
1697
1cdf9e33
TT
16982020-07-01 Tom Tromey <tom@tromey.com>
1699
1700 * tui/tui-data.h (struct tui_win_info) <name>: Now pure virtual.
1701 * tui/tui-stack.h (struct tui_locator_window) <name>: New method.
1702
32c1e210
TT
17032020-07-01 Tom Tromey <tom@tromey.com>
1704
1705 * tui/tui-wingeneral.c (tui_win_info::refresh_window): Move from
1706 tui_gen_win_info.
1707 (tui_win_info::make_window): Merge with
1708 tui_gen_win_info::make_window.
1709 (tui_win_info::make_visible): Move from tui_gen_win_info.
1710 * tui/tui-win.c (tui_win_info::max_width): Move from
1711 tui_gen_win_info.
1712 * tui/tui-layout.h (class tui_layout_window) <m_window>: Change
1713 type.
1714 <window_factory>: Likewise.
1715 * tui/tui-layout.c (tui_win_info::resize): Move from
1716 tui_gen_win_info.
1717 (make_standard_window): Change return type.
1718 (get_locator_window, tui_get_window_by_name): Likewise.
1719 (tui_layout_window::apply): Remove a cast.
1720 * tui/tui-data.h (MIN_WIN_HEIGHT): Move earlier.
1721 (struct tui_win_info): Merge with tui_gen_win_info.
1722 (struct tui_gen_win_info): Remove.
1723
a30cb6da
TT
17242020-07-01 Tom Tromey <tom@tromey.com>
1725
1726 * tui/tui-stack.h (struct tui_locator_window): Derive from
1727 tui_win_info.
1728 <do_scroll_horizontal, do_scroll_vertical>: New methods.
1729 <can_box>: New method.
1730
1eb2161f
TT
17312020-07-01 Tom Tromey <tom@tromey.com>
1732
1733 * tui/tui-stack.h (struct tui_locator_window): Remove body.
1734
7134f2eb
TT
17352020-07-01 Tom Tromey <tom@tromey.com>
1736
1737 * tui/tui-regs.c (tui_data_window::display_registers_from)
1738 (tui_data_window::display_registers_from)
1739 (tui_data_window::first_data_item_displayed)
1740 (tui_data_window::delete_data_content_windows): Update.
1741 (tui_data_window::refresh_window, tui_data_window::no_refresh):
1742 Remove.
1743 (tui_data_window::check_register_values): Update.
1744 (tui_data_item_window::rerender): Add parameters. Update.
1745 (tui_data_item_window::refresh_window): Remove.
1746 * tui/tui-data.h (struct tui_gen_win_info) <no_refresh>: No longer
1747 virtual.
1748 * tui/tui-regs.h (struct tui_data_item_window): Don't derive from
1749 tui_gen_win_info.
1750 <refresh_window, max_height, min_height>: Remove.
1751 <rerender>: Add parameters.
1752 <x, y, visible>: New members.
1753 (struct tui_data_window) <refresh_window, no_refresh>: Remove.
1754 <m_item_width>: New member.
1755
22b7b041
TT
17562020-07-01 Tom Tromey <tom@tromey.com>
1757
1758 * tui/tui-regs.c (tui_data_window::show_register_group)
1759 (tui_data_window::check_register_values): Update.
1760 * tui/tui-regs.h (struct tui_data_item_window) <regno>: Rename
1761 from item_no.
1762
c9753adb
TT
17632020-07-01 Tom Tromey <tom@tromey.com>
1764
1765 * tui/tui-regs.c (tui_data_window::show_register_group): Remove
1766 useless "if".
1767
9ab26b4a
TT
17682020-07-01 Tom Tromey <tom@tromey.com>
1769
1770 * tui/tui-regs.c (tui_data_window::show_register_group): Update.
1771 * tui/tui-regs.h (struct tui_data_item_window) <name>: Remove.
1772
e555083f
TT
17732020-07-01 Tom Tromey <tom@tromey.com>
1774
1775 * tui/tui-stack.c (SINGLE_KEY): Move from tui-data.h
1776 * tui/tui-winsource.h (enum tui_line_or_address_kind)
1777 (struct tui_line_or_address): Move from tui-data.h.
1778 * tui/tui-win.c (DEFAULT_TAB_LEN): Move from tui-data.h.
1779 * tui/tui-data.h (DEFAULT_TAB_LEN): Move to tui-win.c.
1780 (tui_cmd_window, tui_source_window_base, tui_source_window)
1781 (tui_disasm_window): Don't declare.
1782 (enum tui_line_or_address_kind, struct tui_line_or_address): Move
1783 to tui-winsource.h.
1784 (SINGLE_KEY): Move to tui-stack.c.
1785
7a02bab7
TT
17862020-07-01 Tom Tromey <tom@tromey.com>
1787
1788 * tui/tui-regs.h (struct tui_data_item_window) <content>: Now a
1789 std::string.
1790 * tui/tui-regs.c (class tab_expansion_file): New.
1791 (tab_expansion_file::write): New method.
1792 (tui_register_format): Change return type. Use
1793 tab_expansion_file.
1794 (tui_get_register, tui_data_window::display_registers_from)
1795 (tui_data_item_window::rerender): Update.
1796 * tui/tui-io.h (tui_expand_tabs): Don't declare.
1797 * tui/tui-io.c (tui_expand_tabs): Remove.
1798
ea68593b
TT
17992020-07-01 Tom Tromey <tom@tromey.com>
1800
1801 * tui/tui-regs.c (tui_reggroup_completer): Use complete_on_enum.
1802
a8caed5d
FS
18032020-07-01 Fangrui Song <maskray@google.com>
1804
1805 * dwarf2/read.c (lnp_state_machine::check_line_address): Test -1.
1806
9cdf9820
AKS
18072020-07-01 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
1808
1809 * dwarf2/read.c (set_die_type): Removed conditions to restrict
1810 forms for DW_AT_associated and DW_AT_allocated attributes,
1811 which is already checked in function attr_to_dynamic_prop.
1812
a1520ad8
TT
18132020-06-30 Tom Tromey <tromey@adacore.com>
1814
1815 * dwarf2/read.c (quirk_rust_enum): Correctly call
1816 alloc_rust_variant for default-less enum.
1817
5ac58899
TT
18182020-06-30 Tom Tromey <tromey@adacore.com>
1819
1820 PR build/26183:
1821 * ada-lang.c (ada_lookup_name_info::ada_lookup_name_info): Use
1822 gdb::to_string.
1823
19b187a9
SM
18242020-06-29 Simon Marchi <simon.marchi@efficios.com>
1825
1826 * gdbarch.sh (displaced_step_copy_insn): Update doc.
1827 * gdbarch.h: Re-generate.
1828
cd4c4c07
TT
18292020-06-28 Tom Tromey <tom@tromey.com>
1830
1831 * command.h (cmd_types): Remove.
1832 (cmd_type): Don't declare.
1833 * cli/cli-decode.h (enum cmd_types): Uncomment. No longer a
1834 typedef.
1835 * cli/cli-cmds.c (setting_cmd): Use cmd->type directly.
1836 * cli/cli-decode.c (cmd_type): Remove.
1837
05779d57
PA
18382020-06-27 Pedro Alves <palves@redhat.com>
1839
1840 * fork-child.c (prefork_hook): Adjust.
1841 * infcmd.c (set_inferior_io_terminal, get_inferior_io_terminal):
1842 Delete.
1843 (set_inferior_tty_command, show_inferior_tty_command): Adjust.
1844 * inferior.c (inferior::set_tty, inferior::tty): New methods.
1845 * inferior.h (set_inferior_io_terminal, get_inferior_io_terminal):
1846 Remove declarations.
1847 (struct inferior) <set_tty, tty>: New methods.
1848 (struct inferior) <terminal>: Rename to ...
1849 (struct inferior) <m_terminal>: ... this and make private.
1850 * main.c (captured_main_1): Adjust.
1851 * mi/mi-cmd-env.c (mi_cmd_inferior_tty_set): Adjust.
1852 (mi_cmd_inferior_tty_show): Adjust.
1853 * nto-procfs.c (nto_procfs_target::create_inferior): Adjust.
1854 * windows-nat.c (windows_nat_target::create_inferior): Adjust.
1855
1776e3e5
NA
18562020-06-26 Nick Alcock <nick.alcock@oracle.com>
1857
1858 * configure.ac: Add --enable-libctf: handle --disable-static
1859 properly.
1860 * acinclude.m4: sinclude ../config/enable.m4.
1861 * Makefile.in (aclocal_m4_deps): Adjust accordingly.
1862 (LIBCTF): Substitute in.
1863 (CTF_DEPS): New, likewise.
1864 (CLIBS): libctf needs symbols from libbfd: move earlier.
1865 (CDEPS): Use CTF_DEPS, not LIBCTF, now LIBCTF can include rpath
1866 flags.
1867 * ctfread.c: Surround in ENABLE_LIBCTF.
1868 (elfctf_build_psymtabs) [!ENABLE_LIBCTF]: New stub.
1869 * configure: Regenerate.
1870 * config.in: Likewise.
1871
58373b80
SM
18722020-06-25 Simon Marchi <simon.marchi@efficios.com>
1873
1874 * infcmd.c (set_inferior_io_terminal): Use make_unique_xstrdup.
1875
277474ee
SM
18762020-06-25 Simon Marchi <simon.marchi@efficios.com>
1877
1878 * inferior.h (struct inferior) <terminal>: Change type to
1879 gdb::unique_xmalloc_ptr<char>.
1880 * inferior.c (inferior::~inferior): Don't free inf->terminal.
1881 * infcmd.c (set_inferior_io_terminal): Don't free terminal
1882 field, adjust to unique pointer.
1883 (get_inferior_io_terminal): Adjust to unique pointer.
1884
6d74da72
AB
18852020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
1886
1887 * riscv-tdep.c (riscv_print_registers_info): Loop over all
1888 registers, not just the known core set of registers.
1889
2e52d038
AB
18902020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
1891
1892 * riscv-tdep.c (riscv_register_name): Return NULL for duplicate
1893 fflags, frm, and fcsr registers.
1894 (riscv_register_reggroup_p): Remove unknown CSRs from save and
1895 restore groups.
1896 (riscv_tdesc_unknown_reg): New function.
1897 (riscv_gdbarch_init): Pass riscv_tdesc_unknown_reg to
1898 tdesc_use_registers.
1899 * riscv-tdep.h (struct gdbarch_tdep): Add
1900 unknown_csrs_first_regnum, unknown_csrs_count,
1901 duplicate_fflags_regnum, duplicate_frm_regnum, and
1902 duplicate_fcsr_regnum fields.
1903
be64fd07
AB
19042020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
1905
1906 * target-descriptions.c (tdesc_use_registers): Add new parameter a
1907 callback, use the callback (when not null) to help number unknown
1908 registers.
1909 * target-descriptions.h (tdesc_unknown_register_ftype): New typedef.
1910 (tdesc_use_registers): Add extra parameter to declaration.
1911
3b9fce96
AB
19122020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
1913
1914 * riscv-tdep.c (value_of_riscv_user_reg): Moved to here from later
1915 in the file.
1916 (class riscv_pending_register_alias): Likewise.
1917 (riscv_register_feature::register_info): Change 'required_p' field
1918 to 'required', and change its type. Add 'check' member function.
1919 (riscv_register_feature::register_info::check): Define new member
1920 function.
1921 (riscv_xreg_feature): Change initialisation of 'required' field.
1922 (riscv_freg_feature): Likewise.
1923 (riscv_virtual_feature): Likewise.
1924 (riscv_csr_feature): Likewise.
1925 (riscv_check_tdesc_feature): Take extra parameter, the csr
1926 tdesc_feature, rewrite the function to use the new
1927 riscv_register_feature::register_info::check function.
1928 (riscv_gdbarch_init): Pass the csr tdesc_feature where needed.
1929
865bad26
AB
19302020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
1931
1932 * features/Makefile: Remove all references to the deleted files
1933 below.
1934 * features/riscv/32bit-csr.c: Deleted.
1935 * features/riscv/32bit-csr.xml: Deleted.
1936 * features/riscv/64bit-csr.c: Deleted.
1937 * features/riscv/64bit-csr.xml: Deleted.
1938 * features/riscv/rebuild-csr-xml.sh: Deleted.
1939
ed69cbc8
AB
19402020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
1941
1942 * riscv-tdep.c (struct riscv_register_feature::register_info): Fix
1943 whitespace error for declaration of names member variable.
1944 (struct riscv_register_feature): Add new prefer_first_name member
1945 variable, and fix whitespace error in declaration of registers.
1946 (riscv_xreg_feature): Initialize prefer_first_name field.
1947 (riscv_freg_feature): Likewise.
1948 (riscv_virtual_feature): Likewise.
1949 (riscv_csr_feature): Likewise.
1950 (riscv_register_name): Expand on comments. Remove register name
1951 modifications for CSR and virtual registers.
1952
4445e8f5
AB
19532020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
1954
1955 * riscv-tdep.c (struct riscv_register_feature): Fix whitespace
1956 errors.
1957
767a879e
AB
19582020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
1959
1960 * riscv-tdep.c (riscv_create_csr_aliases): Handle csr aliases from
1961 riscv-opc.h.
1962 (class riscv_pending_register_alias): New class.
1963 (riscv_check_tdesc_feature): Take vector of pending aliases and
1964 populate it as appropriate.
1965 (riscv_setup_register_aliases): Delete.
1966 (riscv_gdbarch_init): Create vector of pending aliases and pass it
1967 to riscv_check_tdesc_feature in all cases. Use the vector to
1968 create the register aliases.
1969
bb6e55f3
RO
19702020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1971
1972 * sol2-tdep.c (sol2_static_transform_name): Remove.
1973 (sol2_init_abi): Don't register it.
1974 * gdbarch.sh (static_transform_name): Remove.
1975 * gdbarch.c, gdbarch.h: Regenerate.
1976
1977 * dbxread.c (read_dbx_symtab) <'S'>: Remove call to
1978 gdbarch_static_transform_name.
1979 * mdebugread.c (parse_partial_symbols) <'S'>: Likewise.
1980 * stabsread.c (define_symbol) <'X'>: Remove.
1981 (define_symbol) <'S'>: Remove gdbarch_static_transform_name
1982 handling.
1983 <'V'>: Likewise.
1984 * xcoffread.c (scan_xcoff_symtab): Remove gdbarch.
1985 <'S'>: Remove call to gdbarch_static_transform_name.
1986
c6d36836
RO
19872020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1988
1989 * procfs.c (procfs_pre_trace): New function.
1990 (procfs_target::create_inferior): Pass it to fork_inferior.
1991
a7e6196b
RO
19922020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1993
1994 * configure.tgt <sparc-*-linux*> (gdb_target_obs): Remove
1995 sparc-sol2-tdep.o, sol2-tdep.o, sparc64-sol2-tdep.o.
1996 <sparc64-*-linux*> (gdb_target_obs): Remove sparc64-sol2-tdep.o,
1997 sol2-tdep.o, sparc-sol2-tdep.o.
1998 * sparc-sol2-tdep.c (sparc32_sol2_init_abi): Make static.
1999 * sparc-tdep.h (sparc32_sol2_init_abi): Remove.
2000 * sparc64-sol2-tdep.c (sparc64_sol2_init_abi): Make static.
2001 * sparc64-tdep.h (sparc64_sol2_init_abi): Remove.
2002
d412e696
RO
20032020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2004
2005 * amd64-sol2-tdep.c (amd64_sol2_sigtramp_p): Remove.
2006 (amd64_sol2_init_abi): Use sol2_sigtramp_p.
2007 Call sol2_init_abi.
2008 Remove calls to set_gdbarch_skip_solib_resolver,
2009 set_gdbarch_core_pid_to_str.
2010 * i386-sol2-tdep.c (i386_sol2_sigtramp_p): Remove.
2011 (i386_sol2_static_transform_name): Remove.
2012 (i386_sol2_init_abi): Call sol2_init_abi.
2013 Remove calls to set_gdbarch_sofun_address_maybe_missing,
2014 set_gdbarch_static_transform_name,
2015 set_gdbarch_skip_solib_resolver, set_gdbarch_core_pid_to_str.
2016 Use sol2_sigtramp_p.
2017 * sol2-tdep.c (sol2_pc_in_sigtramp): New function.
2018 (sol2_sigtramp_p): New function.
2019 (sol2_static_transform_name): New function.
2020 (sol2_skip_solib_resolver, sol2_core_pid_to_str): Make static.
2021 (sol2_init_abi): New function.
2022 * sol2-tdep.h (sol2_sigtramp_p, sol2_init_abi): Declare.
2023 (sol2_skip_solib_resolver, sol2_core_pid_to_str): Remove.
2024 * sparc-sol2-tdep.c (sparc_sol2_pc_in_sigtramp): Remove.
2025 (sparc32_sol2_sigtramp_frame_sniffer): Just call sol2_sigtramp_p.
2026 (sparc_sol2_static_transform_name): Remove.
2027 (sparc32_sol2_init_abi): Call sol2_init_abi.
2028 Remove calls to set_gdbarch_sofun_address_maybe_missing,
2029 set_gdbarch_static_transform_name,
2030 set_gdbarch_skip_solib_resolver,
2031 set_gdbarch_core_pid_to_str.
2032 * sparc-tdep.h (sparc_sol2_pc_in_sigtramp)
2033 (sparc_sol2_static_transform_name): Remove
2034 * sparc64-sol2-tdep.c (sparc64_sol2_sigtramp_frame_sniffer): Just
2035 call sol2_sigtramp_p.
2036 (sparc64_sol2_init_abi): Call sol2_init_abi.
2037 Remove calls to set_gdbarch_sofun_address_maybe_missing,
2038 set_gdbarch_static_transform_name,
2039 set_gdbarch_skip_solib_resolver, set_gdbarch_core_pid_to_str.
2040
a8654e7d
PW
20412020-06-24 Philippe Waroquiers <philippe.waroquiers@skynet.be>
2042
2043 * symfile-add-flags.h: New flag SYMFILE_ALWAYS_CONFIRM.
2044 * exec.c (validate_exec_file): If from_tty, set both
2045 SYMFILE_VERBOSE (== from_tty) and SYMFILE_ALWAYS_CONFIRM.
2046 * symfile.c (symbol_file_add_with_addrs): if always_confirm
2047 and from_tty, unconditionally ask a confirmation.
2048
caa7fd04
AB
20492020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
2050
2051 * target-descriptions.c (tdesc_architecture_name): Protect against
2052 NULL pointer dereference.
2053 (maint_print_xml_tdesc_cmd): New function.
2054 (_initialize_target_descriptions): Register new 'maint print
2055 xml-tdesc' command and give it the filename completer.
2056 * NEWS: Mention new 'maint print xml-tdesc' command.
2057
fbf42f4e
AB
20582020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
2059
2060 * target-descriptions.c (class tdesc_compatible_info): New class.
2061 (struct target_desc): Change type of compatible vector.
2062 (tdesc_compatible_p): Update for change in type of
2063 target_desc::compatible.
2064 (tdesc_compatible_info_list): New function.
2065 (tdesc_compatible_info_arch_name): New function.
2066 (tdesc_add_compatible): Update for change in type of
2067 target_desc::compatible.
2068 (print_c_tdesc::visit_pre): Likewise.
2069
20821f4e
AB
20702020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
2071
2072 * target-descriptions.c (print_c_tdesc::print_c_tdesc): Change
2073 whitespace to underscore.
2074 (maint_print_c_tdesc_cmd): Use fake filename for target
2075 descriptions that came from the target.
2076 (_initialize_target_descriptions): Add filename command completion
2077 for 'maint print c-tdesc'.
2078
1fb5ee62
SM
20792020-06-23 Simon Marchi <simon.marchi@efficios.com>
2080
2081 * dwarf2/loc.c (decode_debug_loclists_addresses): Add empty
2082 lines.
2083
fc3ecb3e
SM
20842020-06-23 Simon Marchi <simon.marchi@efficios.com>
2085
2086 * dwarf2/loc.c (decode_debug_loc_dwo_addresses): Add empty
2087 lines.
2088 (dwarf2_find_location_expression): Likewise.
2089 (call_site_parameter_matches): Likewise.
2090 (dwarf2_compile_expr_to_ax): Likewise.
2091 (disassemble_dwarf_expression): Likewise.
2092 (loclist_describe_location): Likewise.
2093
236ef034
PA
20942020-06-23 Pedro Alves <palves@redhat.com>
2095
2096 * gdbarch-selftests.c: Don't include inferior.h, gdbthread.h or
2097 progspace-and-thread.h. Include scoped-mock-context.h instead.
2098 (register_to_value_test): Use scoped_mock_context.
2099 * regcache.c: Include "scoped-mock-context.h".
2100 (cooked_read_test): Don't error out if a target is already pushed.
2101 Use scoped_mock_context. Adjust.
2102 * scoped-mock-context.h: New file.
2103
39e7ecca
AB
21042020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
2105
2106 * ada-lang.c (ada_language_data): Delete la_is_string_type_p
2107 initializer.
2108 (ada_language::is_string_type_p): New member function.
2109 * c-lang.c (c_language_data): Delete la_is_string_type_p
2110 initializer.
2111 (cplus_language_data): Likewise.
2112 (asm_language_data): Likewise.
2113 (minimal_language_data): Likewise.
2114 * d-lang.c (d_language_data): Likewise.
2115 * f-lang.c (f_is_string_type_p): Delete function, implementation
2116 moved to f_language::is_string_type_p.
2117 (f_language_data): Delete la_is_string_type_p initializer.
2118 (f_language::is_string_type_p): New member function,
2119 implementation from f_is_string_type_p.
2120 * go-lang.c (go_is_string_type_p): Delete function, implementation
2121 moved to go_language::is_string_type_p.
2122 (go_language_data): Delete la_is_string_type_p initializer.
2123 (go_language::is_string_type_p): New member function,
2124 implementation from go_is_string_type_p.
2125 * language.c (language_defn::is_string_type_p): Define new member
2126 function.
2127 (default_is_string_type_p): Make static, add comment copied from
2128 header file.
2129 (unknown_language_data): Delete la_is_string_type_p initializer.
2130 (unknown_language::is_string_type_p): New member function.
2131 (auto_language_data): Delete la_is_string_type_p initializer.
2132 (auto_language::is_string_type_p): New member function.
2133 * language.h (language_data): Delete la_is_string_type_p field.
2134 (language_defn::is_string_type_p): Declare new function.
2135 (default_is_string_type_p): Delete desclaration, move comment to
2136 definition.
2137 * m2-lang.c (m2_is_string_type_p): Delete function, implementation
2138 moved to m2_language::is_string_type_p.
2139 (m2_language_data): Delete la_is_string_type_p initializer.
2140 (m2_language::is_string_type_p): New member function,
2141 implementation from m2_is_string_type_p.
2142 * objc-lang.c (objc_language_data): Delete la_is_string_type_p
2143 initializer.
2144 * opencl-lang.c (opencl_language_data): Likewise.
2145 * p-lang.c (pascal_is_string_type_p): Delete function,
2146 implementation moved to pascal_language::is_string_type_p.
2147 (pascal_language_data): Delete la_is_string_type_p initializer.
2148 (pascal_language::is_string_type_p): New member function,
2149 implementation from pascal_is_string_type_p.
2150 * rust-lang.c (rust_is_string_type_p): Delete function,
2151 implementation moved to rust_language::is_string_type_p.
2152 (rust_language_data): Delete la_is_string_type_p initializer.
2153 (rust_language::is_string_type_p): New member function,
2154 implementation from rust_is_string_type_p.
2155 * valprint.c (val_print_scalar_or_string_type_p): Update call to
2156 is_string_type_p.
2157
4ffc13fb
AB
21582020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
2159
2160 * ada-lang.c (ada_language_data): Delete la_print_typedef
2161 initializer.
2162 (ada_language::print_typedef): New member function.
2163 * c-lang.c (c_language_data): Delete la_print_typedef initializer.
2164 (cplus_language_data): Likewise.
2165 (asm_language_data): Likewise.
2166 (minimal_language_data): Likewise.
2167 * d-lang.c (d_language_data): Likewise.
2168 * f-lang.c (f_language_data): Likewise.
2169 (f_language::print_typedef): New member function.
2170 * go-lang.c (go_language_data): Delete la_print_typedef
2171 initializer.
2172 * language.c (language_defn::print_typedef): Define member
2173 function.
2174 (unknown_language_data): Delete la_print_typedef initializer.
2175 (unknown_language::print_typedef): New member function.
2176 (auto_language_data): Delete la_print_typedef initializer.
2177 (auto_language::print_typedef): New member function.
2178 * language.h (language_data): Delete la_print_typedef field.
2179 (language_defn::print_typedef): Declare new member function.
2180 (LA_PRINT_TYPEDEF): Update call to print_typedef.
2181 (default_print_typedef): Delete declaration.
2182 * m2-lang.c (m2_language_data): Delete la_print_typedef
2183 initializer.
2184 (m2_language::print_typedef): New member function.
2185 * objc-lang.c (objc_language_data): Delete la_print_typedef
2186 initializer.
2187 * opencl-lang.c (opencl_language_data): Likewise.
2188 * p-lang.c (pascal_language_data): Likewise.
2189 (pascal_language::print_typedef): New member function.
2190 * rust-lang.c (rust_print_typedef): Delete function,
2191 implementation moved to rust_language::print_typedef.
2192 (rust_language): Delete la_print_typedef initializer.
2193 (rust_language::print_typedef): New member function,
2194 implementation from rust_print_typedef.
2195 * typeprint.c (default_print_typedef): Delete.
2196
d711ee67
AB
21972020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
2198
2199 * ada-lang.c (ada_language_data): Delete la_printstr initializer.
2200 (ada_language::printstr): New member function.
2201 * c-lang.c (c_language_data): Delete la_printstr initializer.
2202 (cplus_language_data): Likewise.
2203 (asm_language_data): Likewise.
2204 (minimal_language_data): Likewise.
2205 * d-lang.c (d_language_data): Likewise.
2206 * f-lang.c (f_printstr): Rename to f_language::printstr.
2207 (f_language_data): Delete la_printstr initializer.
2208 (f_language::printstr): New member function, implementation from
2209 f_printstr.
2210 * go-lang.c (go_language_data): Delete la_printstr initializer.
2211 * language.c (language_defn::printstr): Define new member
2212 function.
2213 (unk_lang_printstr): Delete.
2214 (unknown_language_data): Delete la_printstr initializer.
2215 (unknown_language::printstr): New member function.
2216 (auto_language_data): Delete la_printstr initializer.
2217 (auto_language::printstr): New member function.
2218 * language.h (language_data): Delete la_printstr field.
2219 (language_defn::printstr): Declare new member function.
2220 (LA_PRINT_STRING): Update call to printstr.
2221 * m2-lang.c (m2_printstr): Rename to m2_language::printstr.
2222 (m2_language_data): Delete la_printstr initializer.
2223 (m2_language::printstr): New member function, implementation from
2224 m2_printstr.
2225 * objc-lang.c (objc_language_data): Delete la_printstr
2226 initializer.
2227 * opencl-lang.c (opencl_language_data): Likewise.
2228 * p-lang.c (pascal_printstr): Rename to pascal_language::printstr.
2229 (pascal_language_data): Delete la_printstr initializer.
2230 (pascal_language::printstr): New member function, implementation
2231 from pascal_printstr.
2232 * p-lang.h (pascal_printstr): Delete declaration.
2233 * rust-lang.c (rust_printstr): Update header comment.
2234 (rust_language_data): Delete la_printstr initializer.
2235 (rust_language::printstr): New member function.
2236
52b50f2c
AB
22372020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
2238
2239 * ada-lang.c (ada_language_data): Delete la_printchar initializer.
2240 (ada_language::printchar): New member function.
2241 * c-lang.c (c_language_data): Delete la_printchar initializer.
2242 (cplus_language_data): Likewise.
2243 (asm_language_data): Likewise.
2244 (minimal_language_data): Likewise.
2245 * d-lang.c (d_language_data): Likewise.
2246 * f-lang.c (f_printchar): Rename to f_language::printchar.
2247 (f_language_data): Delete la_printchar initializer.
2248 (f_language::printchar): New member function, implementation from
2249 f_printchar.
2250 * go-lang.c (go_language_data): Delete la_printchar initializer.
2251 * language.c (unk_lang_printchar): Delete.
2252 (language_defn::printchar): Define new member function.
2253 (unknown_language_data): Delete la_printchar initializer.
2254 (unknown_language::printchar): New member function.
2255 (auto_language_data): Delete la_printchar initializer.
2256 (auto_language::printchar): New member function.
2257 * language.h (language_data): Delete la_printchar field.
2258 (language_defn::printchar): Declare new member function.
2259 (LA_PRINT_CHAR): Update call to printchar.
2260 * m2-lang.c (m2_language_data): Delete la_printchar initializer.
2261 (m2_language::printchar): New member function.
2262 * objc-lang.c (objc_language_data): Delete la_printchar
2263 initializer.
2264 * opencl-lang.c (opencl_language_data): Likewise.
2265 * p-lang.c (pascal_language_data): Delete la_printchar
2266 initializer.
2267 (pascal_language::printchar): New member function.
2268 * rust-lang.c (rust_printchar): Rename to
2269 rust_language::printchar.
2270 (rust_language_data): Delete la_printchar initializer.
2271 (rust_language::printchar): New member function, implementation
2272 from rust_printchar.
2273
ec8cec5b
AB
22742020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
2275
2276 * ada-lang.c (emit_char): Renamed to ada_language::emitchar.
2277 (ada_language_data): Delete la_emitchar initializer.
2278 (ada_language::emitchar): New member function, implementation from
2279 emit_char.
2280 * c-lang.c (c_language_data): Delete la_emitchar initializer.
2281 (cplus_language_data): Likewise.
2282 (asm_language_data): Likewise.
2283 (minimal_language_data): Likewise.
2284 * d-lang.c (d_language_data): Likewise.
2285 * f-lang.c (f_emit_char): Rename to f_language::emitchar.
2286 (f_language_data): Delete la_emitchar initializer.
2287 (f_language::emitchar): New member function, implementation from
2288 f_emit_char.
2289 * go-lang.c (go_language_data): Delete la_emitchar initializer.
2290 * language.c (unk_lang_emit_char): Delete.
2291 (language_defn::emitchar): New member function definition.
2292 (unknown_language_data): Delete la_emitchar initializer.
2293 (unknown_language::emitchar): New member function.
2294 (auto_language_data): Delete la_emitchar initializer.
2295 (auto_language::emitchar): New member function.
2296 * language.h (language_data): Delete la_emitchar field.
2297 (language_defn::emitchar): New member field declaration.
2298 (LA_EMIT_CHAR): Update call to emitchar.
2299 * m2-lang.c (m2_emit_char): Rename to m2_language::emitchar.
2300 (m2_language_data): Delete la_emitchar initializer.
2301 (m2_language::emitchar): New member function, implementation from
2302 m2_emit_char.
2303 * objc-lang.c (objc_language_data): Delete la_emitchar
2304 initializer.
2305 * opencl-lang.c (opencl_language_data): Likewise.
2306 * p-lang.c (pascal_emit_char): Rename to pascal_language::emitchar.
2307 (pascal_language_data): Delete la_emitchar initializer.
2308 (pascal_language::emitchar): New member function, implementation
2309 from pascal_emit_char.
2310 * rust-lang.c (rust_emitchar): Rename to rust_language::emitchar.
2311 (rust_language_data): Delete la_emitchar initializer.
2312 (rust_language::emitchar): New member function, implementation
2313 from rust_emitchar.
2314
1bf9c363
AB
23152020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
2316
2317 * ada-lang.c (resolve): Rename to ada_language::post_parser.
2318 (ada_language_data): Delete la_post_parser initializer.
2319 (ada_language::post_parser): New member function.
2320 * c-lang.c (c_language_data): Delete la_post_parser initializer.
2321 (cplus_language_data): Likewise.
2322 (asm_language_data): Likewise.
2323 (minimal_language_data): Likewise.
2324 * d-lang.c (d_language_data): Likewise.
2325 * f-lang.c (f_language_data): Likewise.
2326 * go-lang.c (go_language_data): Likewise.
2327 * language.c (unknown_language_data): Likewise.
2328 (auto_language_data): Likewise.
2329 * language.h (language_data): Delete la_post_parser field.
2330 (language_defn::post_parser): New member function.
2331 * m2-lang.c (m2_language_data): Delete la_post_parser initializer.
2332 * objc-lang.c (objc_language_data): Likewise.
2333 * opencl-lang.c (opencl_language_data): Likewise.
2334 * p-lang.c (pascal_language_data): Likewise.
2335 * parse.c (parse_exp_in_context): Update call to post_parser.
2336 (null_post_parser): Delete definition.
2337 * parser-defs.h (null_post_parser): Delete declaration.
2338 * rust-lang.c (rust_language_data): Delete la_post_parser
2339 initializer.
2340
87afa652
AB
23412020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
2342
2343 * ada-lang.c (parse): Rename to ada_language::parser.
2344 (ada_language_data): Delete la_parser initializer.
2345 (ada_language::parser): New member function, implementation from
2346 parse.
2347 * c-lang.c (c_language_data): Delete la_parser initializer.
2348 (cplus_language_data): Likewise.
2349 (asm_language_data): Likewise.
2350 (minimal_language_data): Likewise.
2351 * d-lang.c (d_language_data): Likewise.
2352 (d_language::parser): New member function.
2353 * f-lang.c (f_language_data): Delete la_parser initializer.
2354 (f_language::parser): New member function.
2355 * go-lang.c (go_language_data): Delete la_parser initializer.
2356 (go_language::parser): New member function.
2357 * language.c (unk_lang_parser): Delete.
2358 (language_defn::parser): Define new member function.
2359 (unknown_language_data): Delete la_parser initializer.
2360 (unknown_language::parser): New member function.
2361 (auto_language_data): Delete la_parser initializer.
2362 (auto_language::parser): New member function.
2363 * language.h (language_data): Delete la_parser field.
2364 (language_defn::parser): Declare new member function.
2365 * m2-lang.c (m2_language_data): Delete la_parser initializer.
2366 (m2_language::parser): New member function.
2367 * objc-lang.c (objc_language_data): Delete la_parser initializer.
2368 * opencl-lang.c (opencl_language_data): Likewise.
2369 * p-lang.c (pascal_language_data): Likewise.
2370 (pascal_language::parser): New member function.
2371 * parse.c (parse_exp_in_context): Update call to parser.
2372 * rust-lang.c (rust_language_data): Delete la_parser initializer.
2373 (rust_language::parser): New member function.
2374
37825800
AB
23752020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
2376
2377 * top.c (print_gdb_configuration): Print --with-python-libdir
2378 configuration value.
2379
5b860c93
PW
23802020-06-22 Philippe Waroquiers <philippe.waroquiers@skynet.be>
2381
2382 * NEWS: Mention change to the alias command.
2383
cf00cd6f
PW
23842020-06-22 Philippe Waroquiers <philippe.waroquiers@skynet.be>
2385
2386 * cli/cli-cmds.c (lookup_cmd_for_default_args)
2387 (alias_command_completer)
2388 (make_alias_options_def_group): New functions.
2389 (alias_opts, alias_option_defs): New struct and array.
2390 (alias_usage_error): Update usage.
2391 (alias_command): Handles optional DEFAULT-ARGS... arguments.
2392 Use option framework.
2393 (_initialize_cli_cmds): Update alias command help.
2394 Update aliases command help.
2395 (show_user):
2396 Add NULL for new default_args lookup_cmd argument.
2397 (valid_command_p): Rename to validate_aliased_command.
2398 Add NULL for new default_args lookup_cmd argument. Verify that the
2399 aliased_command has no default args.
2400 * cli/cli-decode.c (help_cmd): Show aliases definitions.
2401 (lookup_cmd_1, lookup_cmd): New argument default_args.
2402 (add_alias_cmd):
2403 Add NULL for new default_args lookup_cmd argument.
2404 (print_help_for_command): Show default args under the layout
2405 alias some_alias = some_aliased_cmd some_alias_default_arg.
2406 * cli/cli-decode.h (struct cmd_list_element): New member default_args.
2407 xfree default_args in destructor.
2408 * cli/cli-script.c (process_next_line, do_define_command):
2409 Add NULL for new default_args lookup_cmd argument.
2410 * command.h: Declare new default_args argument in lookup_cmd
2411 and lookup_cmd_1.
2412 * completer.c (complete_line_internal_1):
2413 Add NULL for new default_args lookup_cmd or lookup_cmd_1 argument.
2414 * guile/scm-cmd.c (gdbscm_parse_command_name): Likewise.
2415 * guile/scm-param.c (add_setshow_generic, pascm_parameter_defined_p):
2416 Likewise.
2417 * infcmd.c (_initialize_infcmd): Likewise.
2418 * python/py-auto-load.c (gdbpy_initialize_auto_load): Likewise.
2419 * python/py-cmd.c (gdbpy_parse_command_name): Likewise.
2420 * python/py-param.c (add_setshow_generic): Likewise.
2421 * remote.c (_initialize_remote): Likewise.
2422 * top.c (execute_command): Prepend default_args if command has some.
2423 (set_verbose):
2424 Add NULL for new default_args lookup_cmd or lookup_cmd_1 argument.
2425 * tracepoint.c (validate_actionline, encode_actions_1):
2426 Add NULL for new default_args lookup_cmd or lookup_cmd_1 argument.
2427
bd920864
TBA
24282020-06-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2429
2430 * jit.c (jit_read_descriptor): Use bool as the return type.
2431 (jit_breakpoint_re_set_internal): Use bool as the return type.
2432 Invert the return value logic; return true if the jit breakpoint
2433 has been successfully initialized.
2434 (jit_inferior_init): Update the call to
2435 jit_breakpoint_re_set_internal.
2436
f8098322
PA
24372020-06-22 Pedro Alves <palves@redhat.com>
2438
2439 PR gdb/25939
2440 * procfs.c (procfs_target::wait): Don't reference inferior_ptid.
2441 Use the current inferior instead. Don't return
2442 TARGET_WAITKIND_SPURIOUS/inferior_ptid -- instead continue and
2443 wait again.
2444 * sol-thread.c (sol_thread_target::wait): Don't reference
2445 inferior_ptid.
2446 (ps_lgetregs, ps_lsetregs, ps_lgetfpregs, ps_lsetfpregs)
2447 (sol_update_thread_list_callback): Use the current inferior's pid
2448 instead of inferior_ptid.
2449
196535a6
RO
24502020-06-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2451
2452 * procfs.c: Cleanup many comments.
2453
2454 (READ_WATCHFLAG, WRITE_WATCHFLAG, EXEC_WATCHFLAG)
2455 (AFTER_WATCHFLAG): Replace by value.
2456
2457 (MAIN_PROC_NAME_FORMAT): Inline ...
2458 (create_procinfo): ... here.
2459
2460 (procfs_debug_inferior): Remove SYS_exec handling.
2461 (syscall_is_exec): Likewise.
2462 (procfs_set_exec_trap): Likewise.
2463
2464 (syscall_is_lwp_exit): Inline in callers.
2465 (syscall_is_exit): Likewise.
2466 (syscall_is_exec): Likewise.
2467 (syscall_is_lwp_create): Likewise.
2468
2469 (invalidate_cache): Remove #if 0 code.
2470
2471 (make_signal_thread_runnable): Remove.
2472 (procfs_target::resume): Remove #if 0 code.
2473
cf6f3e86
RO
24742020-06-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2475
2476 PR gdb/25939
2477 * procfs.c (procfs_target::procfs_init_inferior): Move push_target
2478 call ...
2479 (procfs_target::create_inferior): ... here.
2480
48e9cc84
PW
24812020-06-21 Philippe Waroquiers <philippe.waroquiers@skynet.be>
2482
2483 * exec.c (validate_exec_file): Ensure the build-id is up to
2484 date by calling reopen_exec_file (that checks file timestamp
2485 to decide to re-read the file).
2486
3922b302
PA
24872020-06-18 Pedro Alves <palves@redhat.com>
2488
2489 PR gdb/25412
2490 * gdbthread.h (delete_thread, delete_thread_silent)
2491 (find_thread_ptid): Update comments.
2492 * thread.c (current_thread_): New global.
2493 (is_current_thread): Move higher, and reimplement.
2494 (inferior_thread): Reimplement.
2495 (set_thread_exited): Use bool. Add assertions.
2496 (add_thread_silent): Simplify thread-reuse handling by always
2497 calling delete_thread.
2498 (delete_thread): Remove intro comment.
2499 (find_thread_ptid): Skip exited threads.
2500 (switch_to_thread_no_regs): Write to current_thread_.
2501 (switch_to_no_thread): Check CURRENT_THREAD_ instead of
2502 INFERIOR_PTID. Clear current_thread_.
2503
6dbdab44
PA
25042020-06-18 Pedro Alves <palves@redhat.com>
2505
2506 * aix-thread.c (pd_update): Use switch_to_thread.
2507
2da4b788
PA
25082020-06-18 Pedro Alves <palves@redhat.com>
2509
2510 * ravenscar-thread.c (ravenscar_thread_target): Update.
2511 (ravenscar_thread_target::update_inferior_ptid): Rename to ...
2512 (ravenscar_thread_target::add_active_thread): ... this. Don't
2513 set m_base_ptid here. Update to avoid referencing inferior_ptid.
2514 (ravenscar_thread_target::wait): Don't write to inferior_ptid.
2515
50838d1b
PA
25162020-06-18 Pedro Alves <palves@redhat.com>
2517
2518 * nat/windows-nat.c (current_windows_thread): Remove.
2519 * nat/windows-nat.h (current_windows_thread): Remove.
2520 * windows-nat.c (windows_nat_target::stopped_by_sw_breakpoint):
2521 Adjust.
2522 (display_selectors): Adjust to fetch the current
2523 windows_thread_info based on inferior_ptid.
2524 (fake_create_process): No longer write to current_windows_thread.
2525 (windows_nat_target::get_windows_debug_event):
2526 Don't set inferior_ptid or current_windows_thread.
2527 (windows_nat_target::wait): Adjust to not rely on
2528 current_windows_thread.
2529 (do_initial_windows_stuff): Now a method of windows_nat_target.
2530 Switch to the last_ptid thread.
2531 (windows_nat_target::attach): Adjust.
2532 (windows_nat_target::detach): Use switch_to_no_thread instead of
2533 writing to inferior_ptid directly.
2534 (windows_nat_target::create_inferior): Adjust.
2535
31ce04e9
PA
25362020-06-18 Pedro Alves <palves@redhat.com>
2537
2538 * windows-nat.c (do_initial_windows_stuff): No longer set inferior_ptid.
2539
1ee1a363
PA
25402020-06-18 Pedro Alves <palves@redhat.com>
2541
2542 * go32-nat.c (go32_nat_target::create_inferior): Switch to thread
2543 after creating it, instead of writing to inferior_ptid. Don't
2544 write to inferior_ptid.
2545
6d350754
PA
25462020-06-18 Pedro Alves <palves@redhat.com>
2547
2548 * fork-child.c (postfork_hook): Don't write to inferior_ptid.
2549
5d971d48
PA
25502020-06-18 Pedro Alves <palves@redhat.com>
2551
2552 * bsd-kvm.c (bsd_kvm_target_open): Switch to thread after adding
2553 it, instead of writing to inferior_ptid.
2554
86e57d1b
PA
25552020-06-18 Pedro Alves <palves@redhat.com>
2556
2557 * btrace.c (btrace_fetch): Use switch_to_thread instead of writing
2558 to inferior_ptid.
2559
f2e1c129
PA
25602020-06-18 Pedro Alves <palves@redhat.com>
2561
2562 * bsd-kvm.c (bsd_kvm_target::close): Use switch_to_no_thread
2563 instead of writing to inferior_ptid directly.
2564
60db1b85
PA
25652020-06-18 Pedro Alves <palves@redhat.com>
2566
2567 * corelow.c (core_target::close): Use switch_to_no_thread instead
2568 of writing to inferior_ptid directly.
2569 (add_to_thread_list, core_target_open): Use switch_to_thread
2570 instead of writing to inferior_ptid directly.
2571
fe7d6a8d
PA
25722020-06-18 Pedro Alves <palves@redhat.com>
2573
2574 * darwin-nat.c (darwin_nat_target::decode_message): Don't write to
2575 inferior_ptid.
2576 (darwin_nat_target::stop_inferior, darwin_nat_target::kill): Avoid
2577 inferior_ptid.
2578 (darwin_attach_pid): Use switch_to_no_thread instead of writing to
2579 inferior_ptid directly.
2580 (darwin_nat_target::init_thread_list): Switch to thread, instead
2581 of writing to inferior_ptid.
2582 (darwin_nat_target::attach): Don't write to inferior_ptid.
2583 (darwin_nat_target::get_ada_task_ptid): Avoid inferior_ptid.
2584
975f8708
PA
25852020-06-18 Pedro Alves <palves@redhat.com>
2586
2587 * gnu-nat.c (gnu_nat_target::create_inferior): Switch to the added
2588 thread.
2589 (gnu_nat_target::attach): Don't write to inferior_ptid directly.
2590 Instead use switch_to_thread.
2591 (gnu_nat_target::detach): Use switch_to_no_thread
2592 instead of writing to inferior_ptid directly. Used passed-in
2593 inferior instead of looking up the inferior by pid.
2594
1a204730
PA
25952020-06-18 Pedro Alves <palves@redhat.com>
2596
2597 * go32-nat.c (go32_nat_target::create_inferior): Don't write to
2598 inferior_ptid.
2599
ebe84f23
PA
26002020-06-18 Pedro Alves <palves@redhat.com>
2601
2602 * nto-procfs.c (nto_procfs_target::update_thread_list): Avoid
2603 inferior_ptid.
2604 (nto_procfs_target::attach): Avoid inferior_ptid. Switch to
2605 thread.
2606 (nto_procfs_target::detach): Avoid referencing
2607 inferior_ptid. Use switch_to_no_thread instead of writing to
2608 inferior_ptid directly.
2609 (nto_procfs_target::mourn_inferior): Use switch_to_no_thread
2610 instead of writing to inferior_ptid directly.
2611 (nto_procfs_target::create_inferior): Avoid inferior_ptid. Switch
2612 to thread.
2613
191f02e5
PA
26142020-06-18 Pedro Alves <palves@redhat.com>
2615
2616 * remote-sim.c (gdbsim_target::create_inferior): Switch to thread
2617 after creating it, instead of writing to inferior_ptid.
2618 (gdbsim_target_open): Use switch_to_no_thread instead of writing
2619 to inferior_ptid directly.
2620 (gdbsim_target::wait): Don't write to inferior_ptid.
2621
0ac55310
PA
26222020-06-18 Pedro Alves <palves@redhat.com>
2623
2624 * remote.c (remote_target::remote_notice_new_inferior): Use
2625 switch_to_thread instead of writing to inferior_ptid directly.
2626 (remote_target::add_current_inferior_and_thread): Use
2627 switch_to_no_thread instead of writing to inferior_ptid directly.
2628 (extended_remote_target::attach): Use switch_to_inferior_no_thread
2629 and switch_to_thread instead of using set_current_inferior or
2630 writing to inferior_ptid directly.
2631
5233f39b
PA
26322020-06-18 Pedro Alves <palves@redhat.com>
2633
2634 * tracectf.c (ctf_target_open): Switch to added thread instead of
2635 writing to inferior_ptid directly.
2636 (ctf_target::close): Use switch_to_no_thread instead of writing to
2637 inferior_ptid directly.
2638
087e161b
PA
26392020-06-18 Pedro Alves <palves@redhat.com>
2640
2641 * tracefile-tfile.c (tfile_target_open): Don't write to
2642 inferior_ptid directly, instead switch to added thread.
2643 (tfile_target::close): Use switch_to_no_thread instead of writing
2644 to inferior_ptid directly.
2645
7fb43e53
PA
26462020-06-18 Pedro Alves <palves@redhat.com>
2647
2648 * procfs.c (procfs_target::attach): Don't write to inferior_ptid.
2649 (procfs_target::detach): Use switch_to_no_thread
2650 instead of writing to inferior_ptid directly.
2651 (do_attach): Change return type to void. Switch to the added
2652 thread.
2653 (procfs_target::create_inferior): Switch to the added thread.
2654 (procfs_do_thread_registers): Don't write to inferior_ptid.
2655
18493a00
PA
26562020-06-18 Pedro Alves <palves@redhat.com>
2657
2658 * infrun.c (generic_mourn_inferior): Use switch_to_thread instead
2659 of writing to inferior_ptid.
2660 (scoped_restore_exited_inferior): Delete.
2661 (handle_vfork_child_exec_or_exit): Simplify using
2662 scoped_restore_current_pspace_and_thread. Use switch_to_thread
2663 instead of writing to inferior_ptid.
2664 (THREAD_STOPPED_BY): Delete.
2665 (thread_stopped_by_watchpoint, thread_stopped_by_sw_breakpoint)
2666 (thread_stopped_by_hw_breakpoint): Delete.
2667 (save_waitstatus): Use
2668 scoped_restore_current_thread+switch_to_thread, and call
2669 target_stopped_by_watchpoint instead of
2670 thread_stopped_by_watchpoint, target_stopped_by_sw_breakpoint
2671 instead of thread_stopped_by_sw_breakpoint, and
2672 target_stopped_by_hw_breakpoint instead of
2673 thread_stopped_by_hw_breakpoint.
2674 (handle_inferior_event)
2675 <TARGET_WAITKIND_EXITED/TARGET_WAITKIND_SIGNALLED>: Don't write to
2676 inferior_ptid directly, nor
2677 set_current_inferior/set_current_program_space. Use
2678 switch_to_thread / switch_to_inferior_no_thread instead.
2679
a0776b13
PA
26802020-06-18 Pedro Alves <palves@redhat.com>
2681
2682 * target.c (generic_mourn_inferior): Use switch_to_no_thread
2683 instead of writing to inferior_ptid.
2684
6155c136
PA
26852020-06-18 Pedro Alves <palves@redhat.com>
2686
2687 * inf-ptrace.c (inf_ptrace_target::create_inferior): Switch to the
2688 added thread.
2689 (inf_ptrace_target::attach): Don't write to inferior_ptid. Switch
2690 to the added thread.
2691 (inf_ptrace_target::detach_success): Use switch_to_no_thread
2692 instead of writing to inferior_ptid.
2693
c5316fc6
PA
26942020-06-18 Pedro Alves <palves@redhat.com>
2695
2696 * gdbarch-selftests.c: Include "progspace-and-thread.h".
2697 (register_to_value_test): Mock a program_space too. Heap-allocate
2698 the address space. Don't write to inferior_ptid. Use
2699 switch_to_thread instead.
2700
8df01799
PA
27012020-06-18 Pedro Alves <palves@redhat.com>
2702
2703 * linux-tdep.c (find_signalled_thread(thread_info *,void *)):
2704 Delete.
2705 (find_signalled_thread()): New, factored out from
2706 linux_make_corefile_notes and adjusted to handle exited threads.
2707 (linux_make_corefile_notes): Adjust to use the new
2708 find_signalled_thread.
2709
41792d68
PA
27102020-06-18 Pedro Alves <palves@redhat.com>
2711
2712 * linux-tdep.c (btrace_fetch): Save/restore current thread instead
2713 of saving/restoring inferior_ptid.
2714
612f258a
TT
27152020-06-17 Tom Tromey <tom@tromey.com>
2716
2717 * tui/tui-win.h (tui_scroll_forward, tui_scroll_backward)
2718 (tui_scroll_left, tui_scroll_right, struct tui_win_info): Don't
2719 declare.
2720 * tui/tui-data.h (MIN_CMD_WIN_HEIGHT): Remove.
2721
efb763a5
SM
27222020-06-15 Simon Marchi <simon.marchi@efficios.com>
2723
2724 * dwarf2/read.c (dwarf2_initialize_objfile): Check for presence
2725 of partial symtabs.
2726
2951f6c0
SM
27272020-06-17 Simon Marchi <simon.marchi@efficios.com>
2728
2729 * regformats/reg-arm.dat: Remove.
2730 * regformats/reg-bfin.dat: Remove.
2731 * regformats/reg-cris.dat: Remove.
2732 * regformats/reg-crisv32.dat: Remove.
2733 * regformats/reg-m32r.dat: Remove.
2734 * regformats/reg-tilegx.dat: Remove.
2735 * regformats/reg-tilegx32.dat: Remove.
2736
7d458ea5
SM
27372020-06-17 Simon Marchi <simon.marchi@efficios.com>
2738
2739 * features/Makefile (WHICH): Remove arm files.
2740 * regformats/arm/arm-with-iwmmxt.dat: Remove.
2741 * regformats/arm/arm-with-neon.dat: Remove.
2742 * regformats/arm/arm-with-vfpv2.dat: Remove.
2743 * regformats/arm/arm-with-vfpv3.dat: Remove.
2744
3af96c0d
SM
27452020-06-17 Simon Marchi <simon.marchi@efficios.com>
2746
2747 * features/Makefile (XMLTOC): Remove rx.xml.
2748
b25e22fd
PA
27492020-06-17 Pedro Alves <palves@redhat.com>
2750
2751 * gdbthread.h (thread_control_state) <trap_expected> Update
2752 comments.
2753
a78a19b1
AB
27542020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
2755
2756 * ada-lang.c (ada_lookup_symbol_nonlocal): Rename to
2757 ada_language::lookup_symbol_nonlocal.
2758 (ada_language_data): Delete la_lookup_symbol_nonlocal initializer.
2759 (ada_language::lookup_symbol_nonlocal): New member function,
2760 implementation from ada_lookup_symbol_nonlocal.
2761 * c-lang.c (c_language_data): Delete la_lookup_symbol_nonlocal
2762 initializer.
2763 (cplus_language_data): Delete la_lookup_symbol_nonlocal
2764 initializer.
2765 (cplus_language::lookup_symbol_nonlocal): New member function.
2766 (asm_language_data): Delete la_lookup_symbol_nonlocal initializer.
2767 (minimal_language_data) Likewise.
2768 * cp-namespace.c (cp_lookup_nested_symbol): Update comment.
2769 * d-lang.c (d_language_data): Delete la_lookup_symbol_nonlocal
2770 initializer.
2771 (d_language::lookup_symbol_nonlocal): New member function.
2772 * f-lang.c (f_language_data): Delete la_lookup_symbol_nonlocal
2773 initializer.
2774 (f_language::lookup_symbol_nonlocal): New member function.
2775 * go-lang.c (go_language_data): Delete la_lookup_symbol_nonlocal
2776 initializer.
2777 * language.c (unknown_language_data): Likewise.
2778 (auto_language_data): Likewise.
2779 * language.h (language_data): Delete la_lookup_symbol_nonlocal
2780 field.
2781 (language_defn::lookup_symbol_nonlocal): New member function.
2782 * m2-lang.c (m2_language_data): Delete la_lookup_symbol_nonlocal
2783 initializer.
2784 * objc-lang.c (objc_language_data): Likewise.
2785 * opencl-lang.c (opencl_language_data): Likewise.
2786 * p-lang.c (pascal_language_data): Likewise.
2787 * rust-lang.c (rust_lookup_symbol_nonlocal): Rename to
2788 rust_language::lookup_symbol_nonlocal.
2789 (rust_language_data): Delete la_lookup_symbol_nonlocal
2790 initializer.
2791 (rust_language::lookup_symbol_nonlocal): New member function,
2792 implementation from rust_lookup_symbol_nonlocal.
2793 * symtab.c (lookup_symbol_aux): Update call to
2794 lookup_symbol_nonlocal.
2795 (basic_lookup_symbol_nonlocal): Rename to...
2796 (language_defn::lookup_symbol_nonlocal): ...this, and update
2797 header comment. Remove language_defn parameter, and replace with
2798 uses of `this'.
2799 * symtab.h (basic_lookup_symbol_nonlocal): Delete declaration.
2800
ebe2334e
AB
28012020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
2802
2803 * ada-lang.c (ada_language_data): Delete la_value_print_inner
2804 initializer.
2805 (ada_language::value_print_inner): New member function.
2806 * c-lang.c (c_language_data): Delete la_value_print_inner
2807 initializer.
2808 (cplus_language_data): Likewise.
2809 (asm_language_data): Likewise.
2810 (minimal_language_data): Likewise.
2811 * d-lang.c (d_language_data): Likewise.
2812 (d_language::value_print_inner): New member function.
2813 * f-lang.c (f_language_data): Delete la_value_print_inner
2814 initializer.
2815 (f_language::value_print_inner): New member function.
2816 * f-lang.h (f_value_print_innner): Rename to...
2817 (f_value_print_inner): ...this (note spelling of 'inner').
2818 * f-valprint.c (f_value_print_innner): Rename to...
2819 (f_value_print_inner): ...this (note spelling of 'inner').
2820 * go-lang.c (go_language_data): Delete la_value_print_inner
2821 initializer.
2822 (go_language::value_print_inner): New member function.
2823 * language.c (language_defn::value_print_inner): Define new member
2824 function.
2825 (unk_lang_value_print_inner): Delete.
2826 (unknown_language_data): Delete la_value_print_inner initializer.
2827 (unknown_language::value_print_inner): New member function.
2828 (auto_language_data): Delete la_value_print_inner initializer.
2829 (auto_language::value_print_inner): New member function.
2830 * language.h (language_data): Delete la_value_print_inner field.
2831 (language_defn::value_print_inner): Delcare new member function.
2832 * m2-lang.c (m2_language_data): Delete la_value_print_inner
2833 initializer.
2834 (m2_language::value_print_inner): New member function.
2835 * objc-lang.c (objc_language_data): Delete la_value_print_inner
2836 initializer.
2837 * opencl-lang.c (opencl_language_data): Likewise.
2838 * p-lang.c (pascal_language_data): Likewise.
2839 (pascal_language::value_print_inner): New member function.
2840 * rust-lang.c (rust_language_data): Delete la_value_print_inner
2841 initializer.
2842 (rust_language::value_print_inner): New member function.
2843 * valprint.c (do_val_print): Update call to value_print_inner.
2844
a1d1fa3e
AB
28452020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
2846
2847 * ada-lang.c (ada_language_data): Delete la_value_print
2848 initializer.
2849 (ada_language::value_print): New member function.
2850 * c-lang.c (c_language_data): Delete la_value_print initializer.
2851 (cplus_language_data): Likewise.
2852 (asm_language_data): Likewise.
2853 (minimal_language_data): Likewise.
2854 * d-lang.c (d_language_data): Likewise.
2855 * f-lang.c (f_language_data): Likewise.
2856 * go-lang.c (go_language_data): Likewise.
2857 * language.c (unk_lang_value_print): Delete.
2858 (language_defn::value_print): Define new member function.
2859 (unknown_language_data): Delete la_value_print initializer.
2860 (unknown_language::value_print): New member function.
2861 (auto_language_data): Delete la_value_print initializer.
2862 (auto_language::value_print): New member function.
2863 * language.h (language_data): Delete la_value_print field.
2864 (language_defn::value_print): Declare new member function.
2865 (LA_VALUE_PRINT): Update call to value_print.
2866 * m2-lang.c (m2_language_data): Delete la_value_print initializer.
2867 * objc-lang.c (objc_language_data): Likewise.
2868 * opencl-lang.c (opencl_language_data): Likewise.
2869 * p-lang.c (pascal_language_data): Likewise.
2870 (pascal_language::value_print): New member function.
2871 * rust-lang.c (rust_language_data): Delete la_value_print
2872 initializer.
2873
f16a9f57
AB
28742020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
2875
2876 * ada-lang.c (ada_watch_location_expression): Rename to
2877 ada_language::watch_location_expression.
2878 (ada_language_data): Delete la_watch_location_expression
2879 initializer.
2880 (ada_language::watch_location_expression): New member function,
2881 implementation from ada_watch_location_expression.
2882 * breakpoint.c (watch_command_1): Update call to
2883 watch_location_expression.
2884 * c-lang.c (c_watch_location_expression): Rename to
2885 language_defn::watch_location_expression.
2886 (c_language_data): Delete la_watch_location_expression
2887 initializer.
2888 (cplus_language_data): Likewise.
2889 (asm_language_data): Likewise.
2890 (minimal_language_data): Likewise.
2891 * c-lang.h (c_watch_location_expression): Delete declaration.
2892 * d-lang.c (d_language_data): Delete la_watch_location_expression
2893 initializer.
2894 * f-lang.c (f_language_data): Likewise.
2895 * go-lang.c (go_language_data): Likewise.
2896 * language.c (language_defn::watch_location_expression): Member
2897 function implementation from c_watch_location_expression.
2898 (unknown_language_data): Delete la_watch_location_expression
2899 initializer.
2900 (auto_language_data): Likewise.
2901 * language.h (language_data): Delete la_watch_location_expression
2902 field.
2903 (language_defn::watch_location_expression): Declare new member
2904 function.
2905 * m2-lang.c (m2_language_data): Delete
2906 la_watch_location_expression initializer.
2907 * objc-lang.c (objc_language_data): Likewise.
2908 * opencl-lang.c (opencl_language_data): Likewise.
2909 * p-lang.c (pascal_language_data): Likewise.
2910 * rust-lang.c (rust_watch_location_expression): Rename to
2911 rust_language::watch_location_expression.
2912 (rust_language_data): Delete la_watch_location_expression
2913 initializer.
2914 (rust_language::watch_location_expression): New member function,
2915 implementation from rust_watch_location_expression.
2916
7e56227d
AB
29172020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
2918
2919 * ada-lang.c (ada_collect_symbol_completion_matches): Rename to
2920 ada_language::collect_symbol_completion_matches.
2921 (ada_language_data): Delete la_collect_symbol_completion_matches
2922 initializer.
2923 (ada_language::collect_symbol_completion_matches): New member
2924 function, implementation from
2925 ada_collect_symbol_completion_matches.
2926 * c-lang.c (c_language_data): Delete
2927 la_collect_symbol_completion_matches initializer.
2928 (cplus_language_data): Likewise.
2929 (asm_language_data): Likewise.
2930 (minimal_language_data): Likewise.
2931 * d-lang.c (d_language_data): Likewise.
2932 * f-lang.c (f_collect_symbol_completion_matches): Rename to
2933 f_language::collect_symbol_completion_matches.
2934 (f_language_data): Delete la_collect_symbol_completion_matches
2935 initializer.
2936 (f_language::collect_symbol_completion_matches) New member
2937 function, implementation from f_collect_symbol_completion_matches.
2938 * go-lang.c (go_language_data): Delete
2939 la_collect_symbol_completion_matches initializer.
2940 * language.c (unknown_language_data): Likewise.
2941 (auto_language_data): Likewise.
2942 * language.h (language_data): Delete
2943 la_collect_symbol_completion_matches field.
2944 (language_defn::collect_symbol_completion_matches): New member
2945 function.
2946 * m2-lang.c (m2_language_data): Delete
2947 la_collect_symbol_completion_matches initializer.
2948 * objc-lang.c (objc_language_data): Likewise.
2949 * opencl-lang.c (opencl_language_data): Likewise.
2950 * p-lang.c (pascal_language_data): Likewise.
2951 * rust-lang.c (rust_language_data): Likewise.
2952 * symtab.c (default_collect_symbol_completion_matches): Delete.
2953 (collect_symbol_completion_matches): Update call to
2954 collect_symbol_completion_matches.
2955 (collect_symbol_completion_matches_type): Likewise.
2956 * symtab.h (default_collect_symbol_completion_matches): Delete
2957 declaration.
2958
53fc67f8
AB
29592020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
2960
2961 * ada-lang.c (ada_get_gdb_completer_word_break_characters): Delete.
2962 (ada_language_data): Delete la_word_break_characters initializer.
2963 (ada_language::word_break_characters): New member function.
2964 * c-lang.c (c_language_data): Delete la_word_break_characters
2965 initializer.
2966 (cplus_language_data): Likewise.
2967 (asm_language_data): Likewise.
2968 (minimal_language_data): Likewise.
2969 * completer.c: Update global comment.
2970 (advance_to_expression_complete_word_point): Update call to
2971 word_break_characters.
2972 (complete_files_symbols): Likewise.
2973 (complete_line_internal_1): Likewise.
2974 (default_completer_handle_brkchars): Likewise.
2975 (skip_quoted_chars): Likewise.
2976 * d-lang.c (d_language_data): Delete la_word_break_characters
2977 initializer.
2978 * f-lang.c (f_word_break_characters): Delete.
2979 (f_language_data): Delete la_word_break_characters initializer.
2980 (f_language::word_break_characters): New member function.
2981 * go-lang.c (go_language_data): Delete la_word_break_characters
2982 initializer.
2983 * language.c (unknown_language_data): Likewise.
2984 (auto_language_data): Likewise.
2985 * language.h (default_word_break_characters): Move declaration to
2986 earlier in the file.
2987 (language_data): Delete la_word_break_characters field.
2988 (language_defn::word_break_characters): New member function.
2989 * m2-lang.c (m2_language_data): Delete la_word_break_characters
2990 initializer.
2991 * objc-lang.c (objc_language_data): Likewise.
2992 * opencl-lang.c (opencl_language_data): Likewise.
2993 * p-lang.c (pascal_language_data): Likewise.
2994 * rust-lang.c (rust_language_data): Likewise.
2995
c9debfb9
AB
29962020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
2997
2998 * ada-lang.c (ada_get_symbol_name_matcher): Update header comment.
2999 (ada_language_data): Delete la_get_symbol_name_matcher
3000 initializer.
3001 (language_defn::get_symbol_name_matcher_inner): New member
3002 function.
3003 * c-lang.c (c_language_data): Delete la_get_symbol_name_matcher
3004 initializer.
3005 (cplus_language_data): Likewise.
3006 (cplus_language::get_symbol_name_matcher_inner): New member
3007 function.
3008 (asm_language_data): Delete la_get_symbol_name_matcher initializer.
3009 (minimal_language_data): Likewise.
3010 * cp-support.h (cp_get_symbol_name_matcher): Update header comment.
3011 * d-lang.c (d_language_data): Delete la_get_symbol_name_matcher
3012 initializer.
3013 * dictionary.c (iter_match_first_hashed): Update call to
3014 get_symbol_name_matcher.
3015 (iter_match_next_hashed): Likewise.
3016 (iter_match_next_linear): Likewise.
3017 * dwarf2/read.c (dw2_expand_symtabs_matching_symbol): Likewise.
3018 * f-lang.c (f_language_data): Delete la_get_symbol_name_matcher
3019 initializer.
3020 (f_language::get_symbol_name_matcher_inner): New member function.
3021 * go-lang.c (go_language_data): Delete la_get_symbol_name_matcher
3022 initializer.
3023 * language.c (default_symbol_name_matcher): Update header comment,
3024 make static.
3025 (language_defn::get_symbol_name_matcher): New definition.
3026 (language_defn::get_symbol_name_matcher_inner): Likewise.
3027 (get_symbol_name_matcher): Delete.
3028 (unknown_language_data): Delete la_get_symbol_name_matcher
3029 initializer.
3030 (auto_language_data): Likewise.
3031 * language.h (language_data): Delete la_get_symbol_name_matcher
3032 field.
3033 (language_defn::get_symbol_name_matcher): New member function.
3034 (language_defn::get_symbol_name_matcher_inner): Likewise.
3035 (default_symbol_name_matcher): Delete declaration.
3036 * linespec.c (find_methods): Update call to
3037 get_symbol_name_matcher.
3038 * m2-lang.c (m2_language_data): Delete la_get_symbol_name_matcher
3039 initializer.
3040 * minsyms.c (lookup_minimal_symbol): Update call to
3041 get_symbol_name_matcher.
3042 (iterate_over_minimal_symbols): Likewise.
3043 * objc-lang.c (objc_language_data): Delete
3044 la_get_symbol_name_matcher initializer.
3045 * opencl-lang.c (opencl_language_data): Likewise.
3046 * p-lang.c (pascal_language_data): Likewise.
3047 * psymtab.c (psymbol_name_matches): Update call to
3048 get_symbol_name_matcher.
3049 * rust-lang.c (rust_language_data): Delete
3050 la_get_symbol_name_matcher initializer.
3051 * symtab.c (symbol_matches_search_name): Update call to
3052 get_symbol_name_matcher.
3053 (compare_symbol_name): Likewise.
3054
9a49ad8c
AB
30552020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
3056
3057 * ada-lang.c (ada_language_data): Delete la_compute_program
3058 initializer.
3059 * c-lang.c (c_language_data): Likewise.
3060 (c_language::compute_program): New member function.
3061 (cplus_language_data): Delete la_compute_program initializer.
3062 (cplus_language::compute_program): New member function.
3063 (asm_language_data): Delete la_compute_program initializer.
3064 (minimal_language_data): Likewise.
3065 * c-lang.h (c_compute_program): Update comment.
3066 (cplus_compute_program): Likewise.
3067 * compile/compile-c-support.c (c_compute_program): Likewise.
3068 (cplus_compute_program): Likewise.
3069 * compile/compile.c (compile_to_object): Update call to
3070 la_compute_program.
3071 * d-lang.c (d_language_data): Delete la_compute_program
3072 initializer.
3073 * f-lang.c (f_language_data): Likewise.
3074 * go-lang.c (go_language_data): Likewise.
3075 * language.c (unknown_language_data): Likewise.
3076 (auto_language_data): Likewise.
3077 * language.h (language_data): Delete la_compute_program field.
3078 (language_defn::compute_program): New member function.
3079 * m2-lang.c (m2_language_data): Delete la_compute_program
3080 initializer.
3081 * objc-lang.c (objc_language_data): Likewise.
3082 * opencl-lang.c (opencl_language_data): Likewise.
3083 * p-lang.c (pascal_language_data): Likewise.
3084 * rust-lang.c (rust_language_data): Likewise.
3085
eff93b4d
AB
30862020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
3087
3088 * ada-lang.c (ada_language_data) Delete
3089 la_class_name_from_physname initializer.
3090 * c-lang.c (c_language_data): Likewise.
3091 (cplus_language_data): Likewise.
3092 (cplus_language::class_name_from_physname): New member function.
3093 (asm_language_data): Delete la_class_name_from_physname
3094 initializer.
3095 (minimal_language_data): Likewise.
3096 * d-lang.c (d_language_data): Likewise.
3097 * dwarf2/read.c (guess_partial_die_structure_name): Update to call
3098 method on language_defn class.
3099 (guess_full_die_structure_name): Likewise.
3100 * f-lang.c (f_language_data): Delete la_class_name_from_physname
3101 initializer.
3102 * go-lang.c (go_language_data): Likewise.
3103 * language.c (language_class_name_from_physname): Delete.
3104 (unk_lang_class_name): Delete.
3105 (unknown_language_data): Delete la_class_name_from_physname
3106 initializer.
3107 (auto_language_data): Likewise.
3108 * language.h (language_data): Delete la_class_name_from_physname
3109 field.
3110 (language_defn::class_name_from_physname): New function.
3111 (language_class_name_from_physname): Delete declaration.
3112 * m2-lang.c (m2_language_data): Delete la_class_name_from_physname
3113 initializer.
3114 * objc-lang.c (objc_language_data): Likewise.
3115 * opencl-lang.c (opencl_language_data): Likewise.
3116 * p-lang.c (pascal_language_data): Likewise.
3117 * rust-lang.c (rust_language_data): Likewise.
3118
de543742
TT
31192020-06-16 Tom Tromey <tom@tromey.com>
3120
3121 * tui/tui-data.h (STATUS_NAME): New macro.
3122 * tui/tui-layout.c (tui_remove_some_windows)
3123 (initialize_known_windows, tui_register_window)
3124 (tui_layout_split::remove_windows, initialize_layouts)
3125 (tui_new_layout_command): Don't use hard-coded window names.
3126
a350efd4
TT
31272020-06-16 Tom Tromey <tom@tromey.com>
3128
3129 PR tui/25348:
3130 * tui/tui.c (tui_ensure_readline_initialized): Rename from
3131 tui_initialize_readline. Only run once. Call rl_initialize.
3132 * tui/tui.h (tui_ensure_readline_initialized): Rename from
3133 tui_initialize_readline.
3134 * tui/tui-io.c (tui_setup_io): Call
3135 tui_ensure_readline_initialized.
3136 * tui/tui-interp.c (tui_interp::init): Update.
3137
39ec0490
TT
31382020-06-16 Tom Tromey <tom@tromey.com>
3139
3140 * tui/tui-layout.c (tui_layout_split::remove_windows): Fix logic.
3141 Also preserve the status window.
3142
d2d1ea20
TT
31432020-06-16 Tom Tromey <tom@tromey.com>
3144
3145 * python/py-tui.c (tui_py_window::~tui_py_window): Handle case
3146 where m_window==nullptr.
3147
66920317
TT
31482020-06-15 Tom Tromey <tromey@adacore.com>
3149
3150 * windows-nat.c (windows_nat::handle_output_debug_string):
3151 Update.
3152 (windows_nat::handle_ms_vc_exception): Update.
3153 * target.h (target_read_string): Change API.
3154 * target.c (target_read_string): Change API.
3155 * solib-svr4.c (open_symbol_file_object, svr4_read_so_list):
3156 Update.
3157 * solib-frv.c (frv_current_sos): Update.
3158 * solib-dsbt.c (dsbt_current_sos): Update.
3159 * solib-darwin.c (darwin_current_sos): Update.
3160 * linux-thread-db.c (inferior_has_bug): Update.
3161 * expprint.c (print_subexp_standard): Update.
3162 * ada-lang.c (ada_main_name, ada_tag_name_from_tsd)
3163 (ada_exception_message_1): Update.
3164
a5d871dd
TT
31652020-06-15 Tom Tromey <tromey@adacore.com>
3166
3167 * linux-tdep.c (dump_mapping_p): Use target_read_memory.
3168
670e35fa
TT
31692020-06-15 Tom Tromey <tromey@adacore.com>
3170
3171 * valprint.c (read_string): Update comment.
3172 * target.c (MIN): Remove.
3173 (target_read_string): Rewrite.
3174
f5272a3b
TT
31752020-06-15 Tom Tromey <tromey@adacore.com>
3176
3177 * corefile.c (read_memory_string): Remove.
3178 * ada-valprint.c (ada_value_print_ptr): Update.
3179 * ada-lang.h (ada_tag_name): Change return type.
3180 * ada-lang.c (type_from_tag): Update.
3181 (ada_tag_name_from_tsd): Change return type. Use
3182 target_read_string.
3183 (ada_tag_name): Likewise.
3184 * gdbcore.h (read_memory_string): Don't declare.
3185
2c074f49
HD
31862020-06-14 Hannes Domani <ssbssa@yahoo.de>
3187
3188 * symtab.c (rbreak_command): Ignore Windows drive colon.
3189
6a17d503
SM
31902020-06-12 Simon Marchi <simon.marchi@efficios.com>
3191
3192 * NEWS: Mention removed GDBserver host support.
3193
453c733f
NC
31942020-06-12 Nelson Chu <nelson.chu@sifive.com>
3195
3196 * features/riscv/rebuild-csr-xml.sh: Updated.
3197
2b4e6a3f
TT
31982020-06-11 Tom Tromey <tom@tromey.com>
3199
3200 PR gdb/18318:
3201 * c-exp.y (lex_one_token): Handle 'p' like 'e'.
3202
4412332f
JG
32032020-06-09 Jonny Grant <jg@jguk.org>
32042020-06-09 Simon Marchi <simon.marchi@polymtl.ca>
3205
3206 * main.c (captured_main_1): Don't print new line after help.
3207 (print_gdb_help): add mailing list and IRC channel information
3208 to --help. Add new lines between items in the footer. Remove
3209 quotes around bug url.
3210
2f33032a
KS
32112020-06-11 Keith Seitz <keiths@redhat.com>
3212
3213 PR gdb/21356
3214 * gdbtypes.c (resolve_dynamic_union, resolve_dynamic_struct):
3215 Resolve typedefs for type length calculations.
3216
7ab96794
TV
32172020-06-10 Tom de Vries <tdevries@suse.de>
3218
3219 PR ada/24713
3220 * dwarf2/index-write.c (struct mapped_symtab): Add m_string_obstack.
3221 (write_psymbols): Enable .gdb_index for ada.
3222 * dwarf2/read.c: Remove comment stating .gdb_index is unsupported for
3223 ada.
3224
e5f3ece2
TV
32252020-06-10 Tom de Vries <tdevries@suse.de>
3226
3227 * dwarf2/read.c (dw2_symtab_iter_init_common): Factor out of ...
3228 (dw2_symtab_iter_init): ... here. Add variant with "offset_type
3229 namei" instead of "const char *name" argument.
3230 (dw2_map_matching_symbols): Use "offset_type namei" variant of
3231 dw2_symtab_iter_init.
3232
940da03e
SM
32332020-06-08 Simon Marchi <simon.marchi@efficios.com>
3234
3235 * gdbtypes.h (TYPE_FIELD_TYPE): Remove. Change all call sites
3236 to use type::field and field::type instead.
3237
b6cdac4b
SM
32382020-06-08 Simon Marchi <simon.marchi@efficios.com>
3239
3240 * gdbtypes.h (FIELD_TYPE): Remove. Change all call sites
3241 to use field::type instead.
3242
5d14b6e5
SM
32432020-06-08 Simon Marchi <simon.marchi@efficios.com>
3244
3245 * gdbtypes.h (struct field) <type, set_type>: New methods.
3246 Rename `type` field to...
3247 <m_type>: ... this. Change references throughout to use type or
3248 set_type methods.
3249 (FIELD_TYPE): Use field::type. Change call sites that modify
3250 the field's type to use field::set_type instead.
3251
3d967001
SM
32522020-06-08 Simon Marchi <simon.marchi@efficios.com>
3253
3254 * gdbtypes.h (TYPE_INDEX_TYPE): Remove. Change all call sites
3255 to use type::index_type instead.
3256
262abc0d
SM
32572020-06-08 Simon Marchi <simon.marchi@efficios.com>
3258
3259 * gdbtypes.h (struct type) <index_type, set_index_type>: New
3260 methods.
3261 (TYPE_INDEX_TYPE): Use type::index_type.
3262 * gdbtypes.c (create_array_type_with_stride): Likewise.
3263
82836c92
TT
32642020-06-07 Tom Tromey <tom@tromey.com>
3265
3266 * valprint.c (generic_val_print_float): Remove "embedded_offset"
3267 parameter.
3268 (generic_value_print): Update.
3269
940dace9
AB
32702020-06-05 Andrew Burgess <andrew.burgess@embecosm.com>
3271
3272 Revert commit 982a38f60b0.
3273 * python/py-tui.c (gdbpy_tui_set_title): Restore use of get.
3274
982a38f6
AB
32752020-06-05 Andrew Burgess <andrew.burgess@embecosm.com>
3276
3277 * python/py-tui.c (gdbpy_tui_set_title): Use release, not get, to
3278 avoid use after free.
3279
82f06518
TV
32802020-06-05 Tom de Vries <tdevries@suse.de>
3281
3282 * NEWS: Fix typos.
3283
f8c41851
SM
32842020-06-04 Simon Marchi <simon.marchi@efficios.com>
3285
3286 * dwarf2/read.c (dwarf2_read_gdb_index): Save partial_symtabs in
3287 the per_bfd object.
3288 (dwarf2_read_debug_names): Likewise.
3289 (dwarf2_initialize_objfile): Use partial_symtabs from per_bfd
3290 object when re-using a per_bfd object with an index.
3291
f9b5d5ea
TV
32922020-06-03 Tom de Vries <tdevries@suse.de>
3293
3294 PR symtab/26046
3295 * dwarf2/read.c (scan_partial_symbols): Recurse into DW_TAG_subprogram
3296 children for C++.
3297 (load_partial_dies): Don't skip DW_TAG_inlined_subroutine child of
3298 DW_TAG_subprogram.
3299
f6eee2d0
AB
33002020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
3301
3302 * ada-lang.c (ada_language_data): Delete skip_trampoline
3303 initializer.
3304 * c-lang.c (c_language_data): Likewise.
3305 (cplus_language_data): Likewise.
3306 (cplus_language::skip_trampoline): New member function.
3307 (asm_language_data): Delete skip_trampoline initializer.
3308 (minimal_language_data): Likewise.
3309 * d-lang.c (d_language_data): Likewise.
3310 * f-lang.c (f_language_data): Likewise.
3311 * go-lang.c (go_language_data): Likewise.
3312 * language.c (unk_lang_trampoline): Delete function.
3313 (skip_language_trampoline): Update.
3314 (unknown_language_data): Delete skip_trampoline initializer.
3315 (auto_language_data): Likewise.
3316 * language.h (language_data): Delete skip_trampoline field.
3317 (language_defn::skip_trampoline): New function.
3318 * m2-lang.c (m2_language_data): Delete skip_trampoline
3319 initializer.
3320 * objc-lang.c (objc_skip_trampoline): Delete function, move
3321 implementation to objc_language::skip_trampoline.
3322 (objc_language_data): Delete skip_trampoline initializer.
3323 (objc_language::skip_trampoline): New member function with
3324 implementation from objc_skip_trampoline.
3325 * opencl-lang.c (opencl_language_data): Delete skip_trampoline
3326 initializer.
3327 * p-lang.c (pascal_language_data): Likewise.
3328 * rust-lang.c (rust_language_data): Likewise.
3329
0a50df5d
AB
33302020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
3331
3332 * ada-lang.c (ada_language_data): Delete la_demangle initializer.
3333 (ada_language::demangle): New member function.
3334 * c-lang.c (c_language_data): Delete la_demangle initializer.
3335 (cplus_language_data): Delete la_demangle initializer.
3336 (cplus_language::demangle): New member function.
3337 (asm_language_data): Delete la_demangle initializer.
3338 (minimal_language_data): Delete la_demangle initializer.
3339 * d-lang.c (d_language_data): Delete la_demangle initializer.
3340 (d_language::demangle): New member function.
3341 * f-lang.c (f_language_data): Delete la_demangle initializer.
3342 (f_language::demangle): New member function.
3343 * go-lang.c (go_language_data): Delete la_demangle initializer.
3344 (go_language::demangle): New member function.
3345 * language.c (language_demangle): Update.
3346 (unk_lang_demangle): Delete.
3347 (unknown_language_data): Delete la_demangle initializer.
3348 (unknown_language::demangle): New member function.
3349 (auto_language_data): Delete la_demangle initializer.
3350 (auto_language::demangle): New member function.
3351 * language.h (language_data): Delete la_demangle field.
3352 (language_defn::demangle): New function.
3353 * m2-lang.c (m2_language_data): Delete la_demangle initializer.
3354 * objc-lang.c (objc_language_data): Delete la_demangle
3355 initializer.
3356 (objc_language::demangle): New member function.
3357 * opencl-lang.c (opencl_language_data): Delete la_demangle
3358 initializer.
3359 * p-lang.c (pascal_language_data): Likewise.
3360 * rust-lang.c (rust_language_data): Likewise.
3361 (rust_language::demangle): New member function.
3362
fbfb0a46
AB
33632020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
3364
3365 * ada-lang.c (ada_language_data): Delete la_print_type
3366 initializer.
3367 (ada_language::print_type): New member function.
3368 * c-lang.c (c_language_data): Delete la_print_type initializer.
3369 (c_language::print_type): New member function.
3370 (cplus_language_data): Delete la_print_type initializer.
3371 (cplus_language::print_type): New member function.
3372 (asm_language_data): Delete la_print_type initializer.
3373 (asm_language::print_type): New member function.
3374 (minimal_language_data): Delete la_print_type initializer.
3375 (minimal_language::print_type): New member function.
3376 * d-lang.c (d_language_data): Delete la_print_type initializer.
3377 (d_language::print_type): New member function.
3378 * f-lang.c (f_language_data): Delete la_print_type initializer.
3379 (f_language::print_type): New member function.
3380 * go-lang.c (go_language_data): Delete la_print_type initializer.
3381 (go_language::print_type): New member function.
3382 * language.c (unk_lang_print_type): Delete.
3383 (unknown_language_data): Delete la_print_type initializer.
3384 (unknown_language::print_type): New member function.
3385 (auto_language_data): Delete la_print_type initializer.
3386 (auto_language::print_type): New member function.
3387 * language.h (language_data): Delete la_print_type field.
3388 (language_defn::print_type): New function.
3389 (LA_PRINT_TYPE): Update.
3390 * m2-lang.c (m2_language_data): Delete la_print_type initializer.
3391 (m2_language::print_type): New member function.
3392 * objc-lang.c (objc_language_data): Delete la_print_type
3393 initializer.
3394 (objc_language::print_type): New member function.
3395 * opencl-lang.c (opencl_print_type): Delete, implementation moved
3396 to opencl_language::print_type.
3397 (opencl_language_data): Delete la_print_type initializer.
3398 (opencl_language::print_type): New member function, implementation
3399 from opencl_print_type.
3400 * p-lang.c (pascal_language_data): Delete la_print_type
3401 initializer.
3402 (pascal_language::print_type): New member function.
3403 * rust-lang.c (rust_print_type): Delete, implementation moved to
3404 rust_language::print_type.
3405 (rust_language_data): Delete la_print_type initializer.
3406 (rust_language::print_type): New member function, implementation
3407 from rust_print_type.
3408
6f827019
AB
34092020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
3410
3411 * ada-lang.c (ada_sniff_from_mangled_name): Delete function,
3412 implementation moves to...
3413 (ada_language::sniff_from_mangled_name): ...here. Update return
3414 type.
3415 (ada_language_data): Delete la_sniff_from_mangled_name
3416 initializer.
3417 * c-lang.c (c_language_data): Likewise.
3418 (cplus_language_data): Likewise.
3419 (cplus_language::sniff_from_mangled_name): New member function,
3420 implementation taken from gdb_sniff_from_mangled_name.
3421 (asm_language_data): Delete la_sniff_from_mangled_name
3422 initializer.
3423 (minimal_language_data): Likewise.
3424 * cp-support.c (gdb_sniff_from_mangled_name): Delete,
3425 implementation moves to cplus_language::sniff_from_mangled_name.
3426 * cp-support.h (gdb_sniff_from_mangled_name): Delete declaration.
3427 * d-lang.c (d_sniff_from_mangled_name): Delete, implementation
3428 moves to...
3429 (d_language::sniff_from_mangled_name): ...here.
3430 (d_language_data): Delete la_sniff_from_mangled_name initializer.
3431 * f-lang.c (f_language_data): Likewise.
3432 * go-lang.c (go_sniff_from_mangled_name): Delete, implementation
3433 moves to...
3434 (go_language::sniff_from_mangled_name): ...here.
3435 (go_language_data): Delete la_sniff_from_mangled_name initializer.
3436 * language.c (language_sniff_from_mangled_name): Delete.
3437 (unknown_language_data): Delete la_sniff_from_mangled_name
3438 initializer.
3439 (auto_language_data): Likewise.
3440 * language.h (language_data): Delete la_sniff_from_mangled_name
3441 field.
3442 (language_defn::sniff_from_mangled_name): New function.
3443 (language_sniff_from_mangled_name): Delete declaration.
3444 * m2-lang.c (m2_language_data): Delete la_sniff_from_mangled_name
3445 field.
3446 * objc-lang.c (objc_sniff_from_mangled_name): Delete,
3447 implementation moves to...
3448 (objc_language::sniff_from_mangled_name): ...here.
3449 (objc_language_data): Delete la_sniff_from_mangled_name initializer.
3450 * opencl-lang.c (opencl_language_data): Likewise.
3451 * p-lang.c (pascal_language_data): Likewise.
3452 * rust-lang.c (rust_sniff_from_mangled_name): Delete,
3453 implementation moves to...
3454 (rust_language::sniff_from_mangled_name): ...here.
3455 (rust_language_data): Delete la_sniff_from_mangled_name
3456 initializer.
3457 * symtab.c (symbol_find_demangled_name): Call
3458 sniff_from_mangled_name member function.
3459
fb8006fd
AB
34602020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
3461
3462 * ada-lang.c (ada_language_data): Delete la_search_name_hash
3463 initializer.
3464 * c-lang.c (c_language_data): Likewise.
3465 (cplus_language_data): Likewise.
3466 (cplus_language::search_name_hash): New member function.
3467 (asm_language_data): Delete la_search_name_hash initializer.
3468 (minimal_language_data): Likewise.
3469 * d-lang.c (d_language_data): Likewise.
3470 * dictionary.c (default_search_name_hash): Rename to...
3471 (language_defn::search_name_hash): ...this.
3472 * f-lang.c (f_language_data): Likewise.
3473 (f_language::search_name_hash): New member function.
3474 * go-lang.c (go_language_data): Delete la_search_name_hash
3475 initializer.
3476 * language.c (unknown_language_data): Likewise.
3477 (auto_language_data): Likewise.
3478 * language.h (struct language_data): Delete la_search_name_hash
3479 field.
3480 (language_defn::search_name_hash): Declare new member function.
3481 (default_search_name_hash): Delete declaration.
3482 * m2-lang.c (m2_language_data): Delete la_search_name_hash
3483 initializer.
3484 * objc-lang.c (objc_language_data): Likewise.
3485 * opencl-lang.c (opencl_language_data): Likewise.
3486 * p-lang.c (pascal_language_data): Likewise.
3487 * rust-lang.c (rust_language_data): Likewise.
3488 * symtab.c (search_name_hash): Update call.
3489
8e25bafe
AB
34902020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
3491
3492 * ada-lang.c (ada_language_data): Delete la_get_compile_instance
3493 initializer.
3494 * c-lang.c (class compile_instance): Declare.
3495 (c_language_data): Delete la_get_compile_instance initializer.
3496 (c_language::get_compile_instance): New member function.
3497 (cplus_language_data): Delete la_get_compile_instance initializer.
3498 (cplus_language::get_compile_instance): New member function.
3499 (asm_language_data): Delete la_get_compile_instance initializer.
3500 (minimal_language_data): Likewise.
3501 * c-lang.h (c_get_compile_context): Update comment.
3502 (cplus_get_compile_context): Update comment.
3503 * compile/compile.c (compile_to_object): Update calls, don't rely
3504 on function pointer being NULL.
3505 * d-lang.c (d_language_data): Delete la_get_compile_instance
3506 initializer.
3507 * f-lang.c (f_language_data): Likewise.
3508 * go-lang.c (go_language_data): Likewise.
3509 * language.c (unknown_language_data): Likewise.
3510 (auto_language_data): Likewise.
3511 * language.h (language_data): Delete la_get_compile_instance field.
3512 (language_defn::get_compile_instance): New member function.
3513 * m2-lang.c (m2_language_data): Delete la_get_compile_instance
3514 initializer.
3515 * objc-lang.c (objc_language_data): Likewise.
3516 * opencl-lang.c (opencl_language_data): Likewise.
3517 * p-lang.c (pascal_language_data): Likewise.
3518 * rust-lang.c (rust_language_data): Likewise.
3519
4009ee92
AB
35202020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
3521
3522 * ada-lang.c (ada_add_all_symbols): Update comment.
3523 (ada_iterate_over_symbols): Delete, move implementation to...
3524 (ada_language::iterate_over_symbols): ...here, a new member
3525 function, rewrite to use range based for loop.
3526 (ada_language_data): Delete la_iterate_over_symbols initializer.
3527 * c-lang.c (c_language_data): Likewise.
3528 (cplus_language_data): Likewise.
3529 (asm_language_data): Likewise.
3530 (minimal_language_data): Likewise.
3531 * d-lang.c (d_language_data): Likewise.
3532 * f-lang.c (f_language_data): Likewise.
3533 * go-lang.c (go_language_data): Likewise.
3534 * language.c (unknown_language_data): Likewise.
3535 (auto_language_data): Likewise.
3536 * language.h (language_data): Delete la_iterate_over_symbols field.
3537 (language_defn::iterate_over_symbols): New member function.
3538 (LA_ITERATE_OVER_SYMBOLS): Update.
3539 * linespec.c (iterate_over_all_matching_symtabs): Update.
3540 * m2-lang.c (m2_language_data): Delete la_iterate_over_symbols
3541 initializer.
3542 * objc-lang.c (objc_language_data): Likewise.
3543 * opencl-lang.c (opencl_language_data): Likewise.
3544 * p-lang.c (pascal_language_data): Likewise.
3545 * rust-lang.c (rust_language_data): Likewise.
3546
54f4ca46
AB
35472020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
3548
3549 * ada-lang.c (ada_language_data): Delete
3550 la_lookup_transparent_type initializer.
3551 * c-lang.c (c_language_data): Likewise.
3552 (cplus_language_data): Likewise.
3553 (cplus_language::lookup_transparent_type): New member function.
3554 (asm_language_data): Delete la_lookup_transparent_type
3555 initializer.
3556 (minimal_language_data): Likewise.
3557 * d-lang.c (d_language_data): Likewise.
3558 * f-lang.c (f_language_data): Likewise.
3559 * go-lang.c (go_language_data): Likewise.
3560 * language.c (unknown_language_data): Likewise.
3561 (auto_language_data): Likewise.
3562 * language.h (struct language_data): Delete
3563 la_lookup_transparent_type field.
3564 (language_defn::lookup_transparent_type): New member function.
3565 * m2-lang.c (m2_language_data): Delete la_lookup_transparent_type
3566 initializer.
3567 * objc-lang.c (objc_language_data): Likewise.
3568 * opencl-lang.c (opencl_language_data): Likewise.
3569 * p-lang.c (pascal_language_data): Likewise.
3570 * rust-lang.c (rust_language_data): Likewise.
3571 * symtab.c (symbol_matches_domain): Update call.
3572
1fb314aa
AB
35732020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
3574
3575 * ada-lang.c (ada_language_arch_info): Delete function, move
3576 implementation to...
3577 (ada_language::language_arch_info): ...here, a new member
3578 function.
3579 (ada_language_data): Delete la_language_arch_info.
3580 * c-lang.c (c_language_data): Likewise.
3581 (c_language::language_arch_info): New member function.
3582 (cplus_language_arch_info): Delete function, move
3583 implementation to...
3584 (cplus_language::language_arch_info): ...here, a new member
3585 function.
3586 (cplus_language_data): Delete la_language_arch_info.
3587 (asm_language_data): Likewise.
3588 (asm_language::language_arch_info): New member function.
3589 (minimal_language_data): Delete la_language_arch_info.
3590 (minimal_language::language_arch_info): New member function.
3591 * d-lang.c (d_language_arch_info): Delete function, move
3592 implementation to...
3593 (d_language::language_arch_info): ...here, a new member
3594 function.
3595 (d_language_data): Delete la_language_arch_info.
3596 * f-lang.c (f_language_arch_info): Delete function, move
3597 implementation to...
3598 (f_language::language_arch_info): ...here, a new member
3599 function.
3600 (f_language_data): Delete la_language_arch_info.
3601 * go-lang.c (go_language_arch_info): Delete function, move
3602 implementation to...
3603 (go_language::language_arch_info): ...here, a new member
3604 function.
3605 (go_language_data): Delete la_language_arch_info.
3606 * language.c (unknown_language_data): Likewise.
3607 (unknown_language::language_arch_info): New member function.
3608 (auto_language_data): Delete la_language_arch_info.
3609 (auto_language::language_arch_info): New member function.
3610 (language_gdbarch_post_init): Update call to
3611 la_language_arch_info.
3612 * language.h (language_data): Delete la_language_arch_info
3613 function pointer.
3614 (language_defn::language_arch_info): New function.
3615 * m2-lang.c (m2_language_arch_info): Delete function, move
3616 implementation to...
3617 (m2_language::language_arch_info): ...here, a new member
3618 function.
3619 (m2_language_data): Delete la_language_arch_info.
3620 * objc-lang.c (objc_language_arch_info): Delete function, move
3621 implementation to...
3622 (objc_language::language_arch_info): ...here, a new member
3623 function.
3624 (objc_language_data): Delete la_language_arch_info.
3625 * opencl-lang.c (opencl_language_arch_info): Delete function, move
3626 implementation to...
3627 (opencl_language::language_arch_info): ...here, a new member
3628 function.
3629 (opencl_language_data): Delete la_language_arch_info.
3630 * p-lang.c (pascal_language_arch_info): Delete function, move
3631 implementation to...
3632 (pascal_language::language_arch_info): ...here, a new member
3633 function.
3634 (pascal_language_data): Delete la_language_arch_info.
3635 * rust-lang.c (rust_language_arch_info): Delete function, move
3636 implementation to...
3637 (rust_language::language_arch_info): ...here, a new member
3638 function.
3639 (rust_language_data): Delete la_language_arch_info.
3640
48448202
AB
36412020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
3642
3643 * ada-lang.c (ada_language_data): Delete la_pass_by_reference
3644 initializer.
3645 * c-lang.c (c_language_data): Likewise.
3646 (cplus_language_data): Likewise.
3647 (cplus_language::pass_by_reference_info): New method.
3648 (asm_language_data): Delete la_pass_by_reference initializer.
3649 (minimal_language_data): Likewise.
3650 * cp-abi.c (cp_pass_by_reference): Remove use of
3651 default_pass_by_reference.
3652 * d-lang.c (d_language_data): Likewise.
3653 * f-lang.c (f_language_data): Likewise.
3654 * gnu-v3-abi.c (gnuv3_pass_by_reference): Remove use of
3655 default_pass_by_reference.
3656 * go-lang.c (go_language_data): Likewise.
3657 * language.c (language_pass_by_reference): Update.
3658 (default_pass_by_reference): Delete.
3659 (unknown_language_data): Delete la_pass_by_reference
3660 initializer.
3661 (auto_language_data): Likewise.
3662 * language.h (struct language_data): Delete la_pass_by_reference
3663 field.
3664 (language_defn::pass_by_reference_info): New member function.
3665 (default_pass_by_reference): Delete declaration.
3666 * m2-lang.c (m2_language_data): Delete la_pass_by_reference
3667 initializer.
3668 * objc-lang.c (objc_language_data): Likewise.
3669 * opencl-lang.c (opencl_language_data): Likewise.
3670 * p-lang.c (pascal_language_data): Likewise.
3671 * rust-lang.c (rust_language_data): Likewise.
3672
15e5fd35
AB
36732020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
3674
3675 * ada-lang.c (ada_read_var_value): Delete function, move
3676 implementation to...
3677 (ada_language::read_var_value): ...here.
3678 (ada_language_data): Delete la_read_var_value initializer.
3679 * c-lang.c (c_language_data): Likewise.
3680 (cplus_language_data): Likewise.
3681 (minimal_language_data): Likewise.
3682 * d-lang.c (d_language_data): Likewise.
3683 * f-lang.c (f_language_data): Likewise.
3684 * findvar.c (default_read_var_value): Rename to...
3685 (language_defn::read_var_value): ...this.
3686 * findvar.c (read_var_value): Update header comment, and change to
3687 call member function instead of function pointer.
3688 * go-lang.c (go_language_data): Likewise.
3689 * language.c (unknown_language_data): Delete la_read_var_value
3690 initializer.
3691 (auto_language_data): Likewise.
3692 * language.h (struct language_data): Delete la_read_var_value
3693 field.
3694 (language_defn::read_var_value): New member function.
3695 (default_read_var_value): Delete declaration.
3696 * m2-lang.c (m2_language_data): Delete la_read_var_value
3697 initializer.
3698 * objc-lang.c (objc_language_data): Likewise.
3699 * opencl-lang.c (opencl_language_data): Likewise.
3700 * p-lang.c (pascal_language_data): Likewise.
3701 * rust-lang.c (rust_language_data): Likewise.
3702 * value.h (default_read_var_value): Delete declaration.
3703
5bd40f2a
AB
37042020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
3705
3706 * ada-lang.c (ada_print_array_index): Delete function, move
3707 implementation to...
3708 (ada_language::print_array_index): ...here.
3709 (ada_language_data): Delete la_print_array_index initializer.
3710 * c-lang.c (c_language_data): Likewise.
3711 (cplus_language_data): Likewise.
3712 (minimal_language_data): Likewise.
3713 * d-lang.c (d_language_data): Likewise.
3714 * f-lang.c (f_language_data): Likewise.
3715 * go-lang.c (go_language_data): Likewise.
3716 * language.c (default_print_array_index): Delete function, move
3717 implementation to...
3718 (language_defn::print_array_index): ...here.
3719 (unknown_language_data): Delete la_print_array_index initializer.
3720 (auto_language_data): Likewise.
3721 * language.h (struct language_data): Delete la_print_array_index
3722 field.
3723 (language_defn::print_array_index): New member function.
3724 (LA_PRINT_ARRAY_INDEX): Update.
3725 (default_print_array_index): Delete declaration.
3726 * m2-lang.c (m2_language_data): Delete la_print_array_index
3727 initializer.
3728 * objc-lang.c (objc_language_data): Likewise.
3729 * opencl-lang.c (opencl_language_data): Likewise.
3730 * p-lang.c (pascal_language_data): Likewise.
3731 * rust-lang.c (rust_language_data): Likewise.
3732
0874fd07
AB
37332020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
3734
3735 * gdb/ada-lang.c (ada_language_defn): Convert to...
3736 (ada_language_data): ...this.
3737 (class ada_language): New class.
3738 (ada_language_defn): New static global.
3739 * gdb/c-lang.c (c_language_defn): Convert to...
3740 (c_language_data): ...this.
3741 (class c_language): New class.
3742 (c_language_defn): New static global.
3743 (cplus_language_defn): Convert to...
3744 (cplus_language_data): ...this.
3745 (class cplus_language): New class.
3746 (cplus_language_defn): New static global.
3747 (asm_language_defn): Convert to...
3748 (asm_language_data): ...this.
3749 (class asm_language): New class.
3750 (asm_language_defn): New static global.
3751 (minimal_language_defn): Convert to...
3752 (minimal_language_data): ...this.
3753 (class minimal_language): New class.
3754 (minimal_language_defn): New static global.
3755 * gdb/d-lang.c (d_language_defn): Convert to...
3756 (d_language_data): ...this.
3757 (class d_language): New class.
3758 (d_language_defn): New static global.
3759 * gdb/f-lang.c (f_language_defn): Convert to...
3760 (f_language_data): ...this.
3761 (class f_language): New class.
3762 (f_language_defn): New static global.
3763 * gdb/go-lang.c (go_language_defn): Convert to...
3764 (go_language_data): ...this.
3765 (class go_language): New class.
3766 (go_language_defn): New static global.
3767 * gdb/language.c (unknown_language_defn): Remove declaration.
3768 (current_language): Initialize to nullptr, real initialization is
3769 moved to _initialize_language.
3770 (languages): Delete global.
3771 (language_defn::languages): Define.
3772 (set_language_command): Use language_defn::languages.
3773 (set_language): Likewise.
3774 (range_error): Likewise.
3775 (language_enum): Likewise.
3776 (language_def): Likewise.
3777 (add_set_language_command): Use language_def::languages for the
3778 language list, and language_def to lookup language pointers.
3779 (skip_language_trampoline): Use language_defn::languages.
3780 (unknown_language_defn): Convert to...
3781 (unknown_language_data): ...this.
3782 (class unknown_language): New class.
3783 (unknown_language_defn): New static global.
3784 (auto_language_defn): Convert to...
3785 (auto_language_data): ...this.
3786 (class auto_language): New class.
3787 (auto_language_defn): New static global.
3788 (language_gdbarch_post_init): Use language_defn::languages.
3789 (_initialize_language): Initialize current_language.
3790 * gdb/language.h (struct language_defn): Rename to...
3791 (struct language_data): ...this.
3792 (struct language_defn): New.
3793 (auto_language_defn): Delete.
3794 (unknown_language_defn): Delete.
3795 (minimal_language_defn): Delete.
3796 (ada_language_defn): Delete.
3797 (asm_language_defn): Delete.
3798 (c_language_defn): Delete.
3799 (cplus_language_defn): Delete.
3800 (d_language_defn): Delete.
3801 (f_language_defn): Delete.
3802 (go_language_defn): Delete.
3803 (m2_language_defn): Delete.
3804 (objc_language_defn): Delete.
3805 (opencl_language_defn): Delete.
3806 (pascal_language_defn): Delete.
3807 (rust_language_defn): Delete.
3808 * gdb/m2-lang.c (m2_language_defn): Convert to...
3809 (m2_language_data): ...this.
3810 (class m2_language): New class.
3811 (m2_language_defn): New static global.
3812 * gdb/objc-lang.c (objc_language_defn): Convert to...
3813 (objc_language_data): ...this.
3814 (class objc_language): New class.
3815 (objc_language_defn): New static global.
3816 * gdb/opencl-lang.c (opencl_language_defn): Convert to...
3817 (opencl_language_data): ...this.
3818 (class opencl_language): New class.
3819 (opencl_language_defn): New static global.
3820 * gdb/p-lang.c (pascal_language_defn): Convert to...
3821 (pascal_language_data): ...this.
3822 (class pascal_language): New class.
3823 (pascal_language_defn): New static global.
3824 * gdb/rust-exp.y (rust_lex_tests): Use language_def to find
3825 language pointer, update comment format.
3826 * gdb/rust-lang.c (rust_language_defn): Convert to...
3827 (rust_language_data): ...this.
3828 (class rust_language): New class.
3829 (rust_language_defn): New static global.
3830
1313c56e
AB
38312020-06-01 Andrew Burgess <andrew.burgess@embecosm.com>
3832
3833 * dwarf2/read.c (class lnp_state_machine) <m_last_address>: New
3834 member variable.
3835 <m_stmt_at_address>: New member variable.
3836 (lnp_state_machine::record_line): Don't record some lines, update
3837 tracking of is_stmt at the same address.
3838 (lnp_state_machine::lnp_state_machine): Initialise new member
3839 variables.
3840
b7ed9f3d
ST
38412020-06-01 Samuel Thibault <samuel.thibault@ens-lyon.org>
3842
3843 * config/i386/i386gnu.mn [%_S.o %_U.o] (COMPILE.post): Add
3844 "-include gnu-nat-mig.h".
3845 * gnu-nat-mig.h: New file.
3846 * gnu-nat.c: Include "gnu-nat-mig.h".
3847 (exc_server, msg_reply_server, notify_server,
3848 process_reply_server): Remove declarations.
3849
14a8ad62
ST
38502020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
3851
3852 * gnu-nat.h (inf_validate_procs, inf_suspend, inf_set_traced,
3853 steal_exc_port, proc_get_state, inf_clear_wait, inf_cleanup,
3854 inf_startup, inf_update_suspends, inf_set_pid, inf_steal_exc_ports,
3855 inf_validate_procinfo, inf_validate_task_sc, inf_restore_exc_ports,
3856 inf_set_threads_resume_sc, inf_set_threads_resume_sc_for_signal_thread,
3857 inf_resume, inf_set_step_thread, inf_detach, inf_attach, inf_signal,
3858 inf_continue, make_proc, proc_abort, _proc_free, proc_update_sc,
3859 proc_get_exception_port, proc_set_exception_port, _proc_get_exc_port,
3860 proc_steal_exc_port, proc_restore_exc_port, proc_trace): Move functions
3861 to gnu_nat_target class.
3862 * gnu-nat.c: Likewise.
3863 (inf_update_procs, S_proc_wait_reply, set_task_pause_cmd,
3864 set_task_exc_port_cmd, set_signals_cmd, set_thread_pause_cmd,
3865 set_thread_exc_port_cmd): Call inf_validate_procs through gnu_target
3866 object.
3867 (gnu_nat_target::create_inferior, gnu_nat_target::detach): Pass `this'
3868 instead of `gnu_target'.
3869
0af5e106
ST
38702020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
3871
3872 * i386-gnu-tdep.c: Include "gdbcore.h"
3873 (gnu_sigtramp_code, i386_gnu_sc_reg_offset): New arrays.
3874 (GNU_SIGTRAMP_LEN, GNU_SIGTRAMP_TAIL,
3875 I386_GNU_SIGCONTEXT_THREAD_STATE_OFFSET): New macros
3876 (i386_gnu_sigtramp_start, i386_gnu_sigtramp_p,
3877 i386_gnu_sigcontext_addr): New functions
3878 (i386gnu_init_abi): Register i386_gnu_sigtramp_p,
3879 i386_gnu_sigcontext_addr, and i386_gnu_sc_reg_offset in the gdbarch
3880 tdep.
3881
078f2fc9
ST
38822020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
3883
3884 * gnu-nat.c (gnu_nat_target::create_inferior): Move push_target call
3885 before fork_inferior call. Avoid calling it if target_is_pushed returns
3886 true.
3887
53dff92c
ST
38882020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
3889
3890 * gnu-nat.h (gnu_target): New variable declaration.
3891 * i386-gnu-nat.c (_initialize_i386gnu_nat): Initialize
3892 gnu_target.
3893 * gnu-nat.c (gnu_target): New variable.
3894 (inf_validate_procs): Pass gnu_target to thread_change_ptid,
3895 add_thread_silent, and add_thread calls.
3896 (gnu_nat_target::create_inferior): Pass gnu_target to
3897 add_thread_silent, thread_change_ptid call.
3898 (gnu_nat_target::detach): Pass gnu_target to detach_inferior
3899 call.
3900
5a8b8627
ST
39012020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
3902
3903 * gnu-nat.c (gnu_xfer_auxv): Remove unused `res' variable.
3904 (gnu_nat_target::find_memory_regions): Remove unused
3905 `old_address' variable.
3906
366f550a
ST
39072020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
3908
3909 * gnu-nat.c: Include "gdbarch.h".
3910
f14871bf
ST
39112020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
3912
3913 * reply_mig_hack.awk (Error return): Cast function through
3914 void *, to bypass compiler function call check.
3915
c6887cfb
ST
39162020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
3917
3918 * config/i386/i386gnu.mn (%_reply_S.c): Add dependency on
3919 $(srcdir)/reply_mig_hack.awk.
3920
6930bffe
ST
39212020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
3922
3923 * gnu-nat.h (gnu_debug_flag): Set type to bool.
3924
112c22ed
JG
39252020-05-30 Jonny Grant <jg@jguk.org>
3926
3927 * configure.ac (ACX_BUGURL): change bug URL to https.
3928
f68f85b5
PA
39292020-05-30 Pedro Alves <palves@redhat.com>
3930
3931 * cp-support.c (replace_typedefs_template): New.
3932 (replace_typedefs_qualified_name): Handle
3933 DEMANGLE_COMPONENT_TEMPLATE.
3934
976ca316
SM
39352020-05-29 Simon Marchi <simon.marchi@efficios.com>
3936
3937 * dwarf2/comp-unit.c, dwarf2/comp-unit.h, dwarf2/index-cache.c,
3938 dwarf2/index-cache.h, dwarf2/index-write.c,
3939 dwarf2/index-write.h, dwarf2/line-header.c,
3940 dwarf2/line-header.h, dwarf2/macro.c, dwarf2/macro.h,
3941 dwarf2/read.c, dwarf2/read.h: Rename struct dwarf2_per_objfile
3942 variables and fields from `dwarf2_per_objfile` to just
3943 `per_objfile` throughout.
3944
989ade05
SM
39452020-05-28 Simon Marchi <simon.marchi@polymtl.ca>
3946
3947 * dwarf2/loc.c (class dwarf_evaluate_loc_desc)
3948 <push_dwarf_reg_entry_value>: Add comment.
3949
c47bae85
KB
39502020-05-28 Kevin Buettner <kevinb@redhat.com>
3951 Keith Seitz <keiths@redhat.com>
3952
3953 * python/python.c (do_start_initialization): Call PyEval_SaveThread
3954 instead of PyEval_ReleaseLock.
3955 (class gdbpy_gil): Move to earlier in file.
3956 (finalize_python): Set gdb_python_initialized.
3957 (gdbpy_check_quit_flag): Acquire GIL via gdbpy_gil. Return early
3958 when not initialized.
3959
44486dcf
SM
39602020-05-28 Simon Marchi <simon.marchi@efficios.com>
3961
3962 * dwarf2/loc.c (class dwarf_evaluate_loc_desc)
3963 <push_dwarf_reg_entry_value>: Remove assert. Override
3964 per_objfile with caller_per_objfile.
3965
f030440d
TV
39662020-05-28 Tom de Vries <tdevries@suse.de>
3967
3968 * dwarf2/read.c (dw2_symtab_iter_next, dw2_expand_marked_cus): Limit
3969 PR gold/15646 workaround to symbol kind "type".
3970
f0fbb768
TT
39712020-05-27 Tom Tromey <tromey@adacore.com>
3972
3973 * dwarf2/read.c (load_partial_dies): Use add_partial_symbol.
3974
af0b2a3e
TT
39752020-05-27 Tom Tromey <tromey@adacore.com>
3976
3977 * dwarf2/abbrev.h (struct abbrev_table) <lookup_abbrev>: Inline.
3978 Use htab_find_with_hash.
3979 <add_abbrev>: Remove "abbrev_number" parameter.
3980 * dwarf2/abbrev.c (abbrev_table::add_abbrev): Remove
3981 "abbrev_number" parameter. Use htab_find_slot_with_hash.
3982 (hash_abbrev): Add comment.
3983 (abbrev_table::lookup_abbrev): Move to header file.
3984 (abbrev_table::read): Update.
3985
7d00ffec
TT
39862020-05-27 Tom Tromey <tromey@adacore.com>
3987
3988 * dwarf2/read.c (struct partial_die_info) <name>: Declare new
3989 method.
3990 <canonical_name>: New member.
3991 <raw_name>: Rename from "name".
3992 (partial_die_info): Initialize canonical_name.
3993 (scan_partial_symbols): Check raw_name.
3994 (partial_die_parent_scope, partial_die_full_name)
3995 (add_partial_symbol, add_partial_subprogram)
3996 (add_partial_enumeration, load_partial_dies): Use "name" method.
3997 (partial_die_info::name): New method.
3998 (partial_die_info::read, guess_partial_die_structure_name)
3999 (partial_die_info::fixup): Update.
4000
697bba18
TT
40012020-05-27 Tom Tromey <tromey@adacore.com>
4002
4003 * dwarf2/attribute.h (struct attribute) <form_is_ref>: Inline.
4004 <get_ref_die_offset>: Inline.
4005 <get_ref_die_offset_complaint>: New method.
4006 * dwarf2/attribute.c (attribute::form_is_ref): Move to header.
4007 (attribute::get_ref_die_offset_complaint): Rename from
4008 get_ref_die_offset. Just issue complaint.
4009
c17ace43
HD
40102020-05-27 Hannes Domani <ssbssa@yahoo.de>
4011
4012 * cli/cli-cmds.c (shell_escape): Move exit_status_set_internal_vars.
4013
96445f0b
HD
40142020-05-27 Hannes Domani <ssbssa@yahoo.de>
4015
4016 * exec.c (exec_file_attach): Use errno value of first openp failure.
4017
ac637ec3
HD
40182020-05-27 Hannes Domani <ssbssa@yahoo.de>
4019
4020 * nat/windows-nat.c (windows_thread_info::~windows_thread_info):
4021 Don't close thread handle.
4022
17ee85fc
TT
40232020-05-27 Tom Tromey <tom@tromey.com>
4024 Simon Marchi <simon.marchi@efficios.com>
4025
4026 * objfiles.h (struct objfile) <partial_symtabs>: Now a
4027 shared_ptr.
4028 * dwarf2/read.h (struct dwarf2_per_objfile) <partial_symtabs>: New
4029 member.
4030 * dwarf2/read.c (dwarf2_per_bfd_bfd_data_key,
4031 dwarf2_per_bfd_objfile_data_key>: New globals.
4032 (dwarf2_has_info): Use shared dwarf2_per_bfd if possible.
4033 (dwarf2_get_section_info): Use get_dwarf2_per_objfile.
4034 (dwarf2_initialize_objfile): Consider cases where per_bfd can be
4035 shared.
4036 (dwarf2_build_psymtabs): Set objfile::partial_symtabs and
4037 short-circuit when sharing.
4038 (dwarf2_build_psymtabs): Set dwarf2_per_objfile::partial_symtabs.
4039 (dwarf2_psymtab::expand_psymtab): Use free_cached_comp_units.
4040
39b16f87
SM
40412020-05-27 Simon Marchi <simon.marchi@efficios.com>
4042
4043 * dwarf2/read.h (struct dwarf2_per_bfd) <line_header_hash>: Move
4044 to...
4045 (struct dwarf2_per_objfile) <line_header_hash>: ... here.
4046 * dwarf2/read.c (handle_DW_AT_stmt_list): Update.
4047
fcf23d5b
SM
40482020-05-27 Simon Marchi <simon.marchi@efficios.com>
4049
4050 * dwarf2/read.c (struct mapped_index_base) <symbol_name_at,
4051 build_name_components, find_name_components_bounds>:
4052 Add per_objfile parameter.
4053 (struct mapped_index) <symbol_name_at>: Likewise.
4054 (struct mapped_debug_names): Remove constructor.
4055 <dwarf2_per_objfile>: Remove field.
4056 <namei_to_name, symbol_name_at>: Add per_objfile parameter.
4057 (mapped_index_base::find_name_components_bounds,
4058 mapped_index_base::build_name_components,
4059 dw2_expand_symtabs_matching_symbol): Likewise.
4060 (class mock_mapped_index) <symbol_name_at>: Likewise.
4061 (check_match): Likewise.
4062 (check_find_bounds_finds): Likewise.
4063 (test_mapped_index_find_name_component_bounds): Update.
4064 (CHECK_MATCH): Update.
4065 (dw2_expand_symtabs_matching): Update.
4066 (class dw2_debug_names_iterator) <dw2_debug_names_iterator>: Add
4067 per_objfile parameter.
4068 <find_vec_in_debug_names>: Likewise.
4069 <m_per_objfile>: New field.
4070 (mapped_debug_names::namei_to_name): Add dwarf2_per_objfile
4071 parameter.
4072 (dw2_debug_names_iterator::find_vec_in_debug_names): Likewise.
4073 (dw2_debug_names_iterator::next): Update.
4074 (dw2_debug_names_lookup_symbol): Update.
4075 (dw2_debug_names_expand_symtabs_for_function): Update.
4076 (dw2_debug_names_map_matching_symbols): Update.
4077 (dw2_debug_names_expand_symtabs_matching): Update.
4078 (dwarf2_read_debug_names): Update.
4079
7188ed02
SM
40802020-05-27 Simon Marchi <simon.marchi@efficios.com>
4081
4082 * dwarf2/read.h (struct dwarf2_cu): Forward-declare.
4083 (struct dwarf2_per_bfd) <free_cached_comp_units>: Remove,
4084 move to dwarf2_per_objfile.
4085 <read_in_chain>: Remove.
4086 (struct dwarf2_per_objfile) <get_cu, set_cu, remove_cu,
4087 remove_all_cus, age_comp_units>: New methods.
4088 <m_dwarf2_cus>: New member.
4089 (struct dwarf2_per_cu_data) <cu>: Remove.
4090 * dwarf2/read.c (struct dwarf2_cu) <read_in_chain>: Remove.
4091 (age_cached_comp_units, free_one_cached_comp_unit): Remove,
4092 moved to methods of dwarf2_per_objfile.
4093 (dwarf2_clear_marks): Remove.
4094 (dwarf2_queue_item::~dwarf2_queue_item): Update.
4095 (dwarf2_per_bfd::~dwarf2_per_bfd): Don't free dwarf2_cus.
4096 (dwarf2_per_bfd::free_cached_comp_units): Remove.
4097 (dwarf2_per_objfile::remove_all_cus): New.
4098 (class free_cached_comp_units) <~free_cached_comp_units>:
4099 Update.
4100 (load_cu): Update.
4101 (dw2_do_instantiate_symtab): Adjust.
4102 (fill_in_sig_entry_from_dwo_entry): Adjust.
4103 (cutu_reader::init_tu_and_read_dwo_dies): Update.
4104 (cutu_reader::cutu_reader): Likewise.
4105 (cutu_reader::keep): Use dwarf2_per_objfile::set_cu.
4106 (cutu_reader::cutu_reader): Use dwarf2_per_objfile::get_cu.
4107 (process_psymtab_comp_unit): Use dwarf2_per_objfile::remove_cu
4108 and dwarf2_per_objfile::age_comp_units.
4109 (load_partial_comp_unit): Update.
4110 (maybe_queue_comp_unit): Use dwarf2_per_objfile::get_cu.
4111 (process_queue): Likewise.
4112 (find_partial_die): Use dwarf2_per_objfile::get_cu instead of cu
4113 backlink.
4114 (dwarf2_read_addr_index): Likewise.
4115 (follow_die_offset): Likewise.
4116 (dwarf2_fetch_die_loc_sect_off): Likewise.
4117 (dwarf2_fetch_constant_bytes): Likewise.
4118 (dwarf2_fetch_die_type_sect_off): Likewise.
4119 (follow_die_sig_1): Likewise.
4120 (load_full_type_unit): Likewise.
4121 (read_signatured_type): Likewise.
4122 (dwarf2_cu::dwarf2_cu): Don't set cu field.
4123 (dwarf2_cu::~dwarf2_cu): Remove.
4124 (dwarf2_per_objfile::get_cu): New.
4125 (dwarf2_per_objfile::set_cu): New.
4126 (age_cached_comp_units): Rename to...
4127 (dwarf2_per_objfile::age_comp_units): ... this. Adjust
4128 to std::unordered_map.
4129 (free_one_cached_comp_unit): Rename to...
4130 (dwarf2_per_objfile::remove_cu): ... this. Adjust
4131 to std::unordered_map.
4132 (dwarf2_per_objfile::~dwarf2_per_objfile): New.
4133 (dwarf2_mark_helper): Use dwarf2_per_objfile::get_cu, expect
4134 a dwarf2_per_objfile in data.
4135 (dwarf2_mark): Pass dwarf2_per_objfile in data to htab_traverse.
4136 (dwarf2_clear_marks): Remove.
4137
2e671100
SM
41382020-05-27 Simon Marchi <simon.marchi@efficios.com>
4139
4140 * dwarf2/read.c (class cutu_reader) <cutu_reader>: Replace
4141 `int use_existing_cu` parameter with `dwarf2_cu *existing_cu`.
4142 (init_tu_and_read_dwo_dies): Likewise.
4143 (cutu_reader::init_tu_and_read_dwo_dies): Likewise.
4144 (cutu_reader::cutu_reader): Likewise.
4145 (load_partial_comp_unit): Likewise.
4146 (process_psymtab_comp_unit): Update.
4147 (build_type_psymtabs_1): Update.
4148 (process_skeletonless_type_unit): Update.
4149 (load_full_comp_unit): Update.
4150 (find_partial_die): Update.
4151 (dwarf2_read_addr_index): Update.
4152 (read_signatured_type): Update.
4153
2e6a9f79
SM
41542020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
4155
4156 * dwarf2/read.h (struct dwarf2_per_cu_data) <m_header,
4157 m_header_read_in>: New fields.
4158 <get_header>: New method.
4159 * dwarf2/read.c (per_cu_header_read_in): Remove.
4160 (dwarf2_per_cu_data::get_header): New.
4161 (dwarf2_per_cu_data::addr_size): Update.
4162 (dwarf2_per_cu_data::offset_size): Update.
4163 (dwarf2_per_cu_data::ref_addr_size): Update.
4164
1b555f17
SM
41652020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
4166
4167 * dwarf2/read.c (load_cu): Return dwarf2_cu.
4168 (dw2_do_instantiate_symtab): Update.
4169 (queue_and_load_all_dwo_tus): Change parameter from
4170 dwarf2_per_cu_data to dwarf2_cu.
4171 (dwarf2_fetch_die_loc_sect_off): Update.
4172 (dwarf2_fetch_constant_bytes): Update.
4173 (dwarf2_fetch_die_type_sect_off): Update.
4174
8fc0b21d
SM
41752020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
4176
4177 * dwarf2/read.c (process_full_comp_unit,
4178 process_full_type_unit): Remove per_cu, per_objfile paramters.
4179 Add dwarf2_cu parameter.
4180 (process_queue): Update.
4181
168c9250
SM
41822020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
4183
4184 * dwarf2/read.c (create_cu_from_index_list): Replace
4185 dwarf2_per_objfile parameter with dwarf2_per_bfd.
4186 (create_cus_from_index_list): Likewise.
4187 (create_cus_from_index): Likewise.
4188 (create_signatured_type_table_from_index): Likewise.
4189 (create_cus_from_debug_names_list): Likewise.
4190 (create_cus_from_debug_names): Likewise.
4191 (dwarf2_read_gdb_index): Update.
4192 (dwarf2_read_debug_names): Update.
4193
e286671b
TT
41942020-05-27 Tom Tromey <tom@tromey.com>
4195 Simon Marchi <simon.marchi@efficios.com>
4196
4197 * dwarf2/read.h (struct dwarf2_per_objfile)
4198 <get_type_for_signatured_type, set_type_for_signatured_type>:
4199 New methods.
4200 <m_type_map>: New member.
4201 (struct signatured_type) <type>: Remove.
4202 * dwarf2/read.c
4203 (dwarf2_per_objfile::get_type_for_signatured_type,
4204 dwarf2_per_objfile::set_type_for_signatured_type): New.
4205 (get_signatured_type): Use new methods.
4206
8adb8487
TT
42072020-05-27 Tom Tromey <tom@tromey.com>
4208 Simon Marchi <simon.marchi@efficios.com>
4209
4210 * dwarf2/read.h (struct type_unit_group_unshareable): New.
4211 (struct dwarf2_per_objfile) <type_units>: New member.
4212 <get_type_unit_group_unshareable>: New method.
4213 * dwarf2/read.c (struct type_unit_group) <compunit_symtab,
4214 num_symtabs, symtabs>: Remove; move to
4215 type_unit_group_unshareable.
4216 (dwarf2_per_objfile::get_type_unit_group_unshareable): New.
4217 (process_full_type_unit, dwarf2_cu::setup_type_unit_groups)
4218 (dwarf2_cu::setup_type_unit_groups): Use type_unit_group_unshareable.
4219
127bbf4b
SM
42202020-05-27 Simon Marchi <simon.marchi@efficios.com>
4221
4222 * dwarf2/read.h (struct dwarf2_per_cu_data):
4223 <dwarf2_per_objfile>: Remove.
4224 * dwarf2/read.c (create_cu_from_index_list): Don't assign
4225 dwarf2_per_objfile.
4226 (create_signatured_type_table_from_index): Likewise.
4227 (create_signatured_type_table_from_debug_names): Likewise.
4228 (create_debug_type_hash_table): Likewise.
4229 (fill_in_sig_entry_from_dwo_entry): Likewise.
4230 (create_type_unit_group): Likewise.
4231 (read_comp_units_from_section): Likewise.
4232 (create_cus_hash_table): Likewise.
4233
f6e649dd
SM
42342020-05-27 Simon Marchi <simon.marchi@efficios.com>
4235
4236 * dwarf2/read.c (process_psymtab_comp_unit): Remove reference to
4237 dwarf2_per_cu_data::dwarf2_per_objfile.
4238 (compute_compunit_symtab_includes): Likewise.
4239 (dwarf2_cu::start_symtab): Likewise.
4240
aa66c379
SM
42412020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
4242
4243 * dwarf2/read.h (dwarf2_get_die_type): Add dwarf2_per_objfile
4244 parameter.
4245 * dwarf2/read.c (get_die_type_at_offset): Likewise.
4246 (read_namespace_alias): Update.
4247 (lookup_die_type): Update.
4248 (dwarf2_get_die_type): Add dwarf2_per_objfile parameter.
4249 * dwarf2/loc.c (class dwarf_evaluate_loc_desc) <get_base_type>:
4250 Update.
4251 (disassemble_dwarf_expression): Update.
4252
120ce1b5
SM
42532020-05-27 Simon Marchi <simon.marchi@efficios.com>
4254
4255 * dwarf2/read.h (struct dwarf2_queue_item): Add
4256 dwarf2_per_objfile parameter, assign new parameter.
4257 <per_objfile>: New field.
4258 * dwarf2/read.c (free_one_cached_comp_unit): Add
4259 dwarf2_per_objfile parameter.
4260 (queue_comp_unit): Likewise.
4261 (dw2_do_instantiate_symtab): Update.
4262 (process_psymtab_comp_unit): Update.
4263 (maybe_queue_comp_unit): Add dwarf2_per_objfile parameter.
4264 (process_imported_unit_die): Update.
4265 (queue_and_load_dwo_tu): Update.
4266 (follow_die_offset): Update.
4267 (follow_die_sig_1): Update.
4268
9f47c707
SM
42692020-05-27 Simon Marchi <simon.marchi@efficios.com>
4270
4271 * dwarf2/read.h (struct dwarf2_per_cu_data) <objfile>: Remove.
4272 * dwarf2/read.c (dwarf2_compute_name): Pass per_objfile down.
4273 (read_call_site_scope): Assign per_objfile.
4274 (dwarf2_per_cu_data::objfile): Remove.
4275 * gdbtypes.h (struct call_site) <per_objfile>: New member.
4276 * dwarf2/loc.h (dwarf2_evaluate_loc_desc): Add
4277 dwarf2_per_objfile parameter.
4278 * dwarf2/loc.c (dwarf2_evaluate_loc_desc_full): Add
4279 dwarf2_per_objfile parameter.
4280 (dwarf_expr_reg_to_entry_parameter): Add output
4281 dwarf2_per_objfile parameter.
4282 (locexpr_get_frame_base): Update.
4283 (class dwarf_evaluate_loc_desc) <get_tls_address>: Update.
4284 <push_dwarf_reg_entry_value>: Update.
4285 <call_site_to_target_addr>: Update.
4286 (dwarf_entry_parameter_to_value): Add dwarf2_per_objfile
4287 parameter.
4288 (value_of_dwarf_reg_entry): Update.
4289 (rw_pieced_value): Update.
4290 (indirect_synthetic_pointer): Update.
4291 (dwarf2_evaluate_property): Update.
4292 (dwarf2_loc_desc_get_symbol_read_needs): Add dwarf2_per_objfile
4293 parameter.
4294 (locexpr_read_variable): Update.
4295 (locexpr_get_symbol_read_needs): Update.
4296 (loclist_read_variable): Update.
4297
14095eb3
SM
42982020-05-27 Simon Marchi <simon.marchi@efficios.com>
4299
4300 * dwarf2/read.h (dwarf2_fetch_die_loc_sect_off,
4301 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
4302 dwarf2_fetch_die_type_sect_off): Add dwarf2_per_objfile
4303 parameter.
4304 * dwarf2/read.c (dwarf2_fetch_die_loc_sect_off,
4305 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
4306 dwarf2_fetch_die_type_sect_off): Add dwarf2_per_objfile
4307 parameter.
4308 * dwarf2/loc.c (indirect_synthetic_pointer, per_cu_dwarf_call,
4309 sect_variable_value): Add dwarf2_per_objfile parameter.
4310 (class dwarf_evaluate_loc_desc) <dwarf_call,
4311 dwarf_variable_value>: Update.
4312 (fetch_const_value_from_synthetic_pointer): Add
4313 dwarf2_per_objfile parameter.
4314 (fetch_const_value_from_synthetic_pointer): Update.
4315 (coerced_pieced_ref): Update.
4316 (class symbol_needs_eval_context) <dwarf_call,
4317 dwarf_variable_value>: Update.
4318 (dwarf2_compile_expr_to_ax): Update.
4319
3c3cd3d4
SM
43202020-05-27 Simon Marchi <simon.marchi@efficios.com>
4321
4322 * dwarf2/loc.c (allocate_piece_closure): Add dwarf2_per_objfile
4323 parameter.
4324 (dwarf2_evaluate_loc_desc_full): Update.
4325
82ca3f51
SM
43262020-05-27 Simon Marchi <simon.marchi@efficios.com>
4327
4328 * dwarf2/read.h (dwarf2_read_addr_index): Add dwarf2_per_objfile
4329 parameter.
4330 * dwarf2/read.c (dwarf2_read_addr_index): Likewise.
4331 * dwarf2/loc.c (decode_debug_loclists_addresses): Add
4332 dwarf2_per_objfile parameter.
4333 (decode_debug_loc_dwo_addresses): Likewise.
4334 (dwarf2_find_location_expression): Update.
4335 (class dwarf_evaluate_loc_desc) <get_addr_index>: Update.
4336 (locexpr_describe_location_piece): Add dwarf2_per_objfile
4337 parameter.
4338 (disassemble_dwarf_expression): Add dwarf2_per_objfile
4339 parameter.
4340 (locexpr_describe_location_1): Likewise.
4341 (locexpr_describe_location): Update.
4342
4b167ea1
SM
43432020-05-27 Simon Marchi <simon.marchi@efficios.com>
4344
4345 * dwarf2/read.h (struct dwarf2_per_cu_data) <text_offset>:
4346 Remove.
4347 * dwarf2/read.c (dwarf2_per_cu_data::text_offset): Remove.
4348 * dwarf2/loc.c (dwarf2_find_location_expression): Update.
4349 (dwarf2_compile_property_to_c): Update.
4350 (dwarf2_compile_expr_to_ax): Add dwarf2_per_objfile parameter,
4351 use text offset from objfile.
4352 (locexpr_tracepoint_var_ref): Update.
4353 (locexpr_generate_c_location): Update.
4354 (loclist_describe_location): Update.
4355 (loclist_tracepoint_var_ref): Update.
4356 * dwarf2/compile.h (compile_dwarf_bounds_to_c): Add
4357 dwarf2_per_objfile parameter.
4358 * dwarf2/loc2c.c (do_compile_dwarf_expr_to_c): Likewise,
4359 use text offset from objfile.
4360 (compile_dwarf_expr_to_c): Add dwarf2_per_objfile parameter.
4361
89b07335
SM
43622020-05-27 Simon Marchi <simon.marchi@efficios.com>
4363
4364 * dwarf2/expr.h (struct dwarf_expr_context)
4365 <dwarf_expr_context>: Add dwarf2_per_objfile parameter.
4366 <offset>: Remove.
4367 <per_objfile>: New member.
4368 * dwarf2/expr.c (dwarf_expr_context::dwarf_expr_context): Add
4369 dwarf2_per_objfile parameter. Don't set offset, set
4370 per_objfile.
4371 (dwarf_expr_context::execute_stack_op): Use offset from objfile.
4372 * dwarf2/frame.c (dwarf2_frame_find_fde): Return (by parameter)
4373 a dwarf2_per_objfile object instead of an offset.
4374 (class dwarf_expr_executor) <dwarf_expr_executor>: Add
4375 constructor.
4376 (execute_stack_op): Add dwarf2_per_objfile parameter, pass it
4377 to dwarf2_expr_executor constructor. Don't set offset.
4378 (dwarf2_fetch_cfa_info): Update.
4379 (struct dwarf2_frame_cache) <text_offset>: Remove.
4380 <per_objfile>: New field.
4381 (dwarf2_frame_cache): Update.
4382 (dwarf2_frame_prev_register): Update.
4383 * dwarf2/loc.c (class dwarf_evaluate_loc_desc)
4384 <dwarf_evaluate_loc_desc>: Add constructor.
4385 (dwarf2_evaluate_loc_desc_full): Update.
4386 (dwarf2_locexpr_baton_eval): Update.
4387 (class symbol_needs_eval_context) <symbol_needs_eval_context>:
4388 Add constructor.
4389 (dwarf2_loc_desc_get_symbol_read_needs): Update.
4390
293e7e51
SM
43912020-05-27 Simon Marchi <simon.marchi@efficios.com>
4392
4393 * dwarf2/read.h (struct dwarf2_per_cu_data) <addr_type,
4394 addr_sized_int_type>: Move to dwarf2_cu.
4395 <int_type>: Move to dwarf2_per_objfile.
4396 (struct dwarf2_per_objfile) <int_type>: Move here.
4397 * dwarf2/read.c (struct dwarf2_cu) <addr_type,
4398 addr_sized_int_type>: Move here.
4399 (read_func_scope): Update.
4400 (read_array_type): Update.
4401 (read_tag_string_type): Update.
4402 (attr_to_dynamic_prop): Update.
4403 (dwarf2_per_cu_data::int_type): Rename to...
4404 (dwarf2_per_objfile::int_type): ... this.
4405 (dwarf2_per_cu_data::addr_sized_int_type): Rename to...
4406 (dwarf2_cu::addr_sized_int_type): ... this.
4407 (read_subrange_type): Update.
4408 (dwarf2_per_cu_data::addr_type): Rename to...
4409 (dwarf2_cu::addr_type): ... this.
4410 (set_die_type): Update.
4411
64874a40
SM
44122020-05-27 Simon Marchi <simon.marchi@efficios.com>
4413
4414 * dwarf2/read.c (queue_and_load_all_dwo_tus): Access per_objfile
4415 data through per_cu->cu.
4416
4ab09049
SM
44172020-05-27 Simon Marchi <simon.marchi@efficios.com>
4418
4419 * dwarf2/read.c (lookup_dwo_comp_unit): Change
4420 dwarf2_per_cu_data parameter fo dwarf2_cu.
4421 (lookup_dwo_type_unit): Likewise.
4422 (read_cutu_die_from_dwo): Likewise.
4423 (lookup_dwo_unit): Likewise.
4424 (open_and_init_dwo_file): Likewise.
4425 (lookup_dwo_cutu): Likewise.
4426 (lookup_dwo_comp_unit): Likewise.
4427 (lookup_dwo_type_unit): Likewise.
4428 (cutu_reader::init_tu_and_read_dwo_dies): Update.
4429 (cutu_reader::cutu_reader): Update.
4430
47b14e86
SM
44312020-05-27 Simon Marchi <simon.marchi@efficios.com>
4432
4433 * dwarf2/read.c (process_full_comp_unit): Add dwarf2_per_objfile
4434 parameter.
4435 (process_full_type_unit): Likewise.
4436 (process_queue): Update.
4437
43182c09
SM
44382020-05-27 Simon Marchi <simon.marchi@efficios.com>
4439
4440 * dwarf2/read.c (recursively_compute_inclusions): Add
4441 dwarf2_per_objfile parameter.
4442 (compute_compunit_symtab_includes): Likewise.
4443 (process_cu_includes): Update.
4444
7aa104c4
SM
44452020-05-27 Simon Marchi <simon.marchi@efficios.com>
4446
4447 * dwarf2/read.c (create_partial_symtab): Add dwarf2_per_objfile
4448 parameter.
4449 (create_type_unit_group): Update.
4450 (process_psymtab_comp_unit_reader): Update.
4451 (build_type_psymtabs_reader): Update.
4452
e3beb21d
SM
44532020-05-27 Simon Marchi <simon.marchi@efficios.com>
4454
4455 * dwarf2/read.c (cutu_reader::keep): Access dwarf2_per_objfile
4456 object through m_this_cu->cu.
4457
d460f660
SM
44582020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
4459
4460 * dwarf2/read.c (queue_and_load_dwo_tu): Expect a dwarf2_cu as
4461 the info parameter.
4462 (queue_and_load_all_dwo_tus): Pass per_cu->cu.
4463
ab432490
SM
44642020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
4465
4466 * dwarf2/read.c (class cutu_reader) <cutu_reader>: Add
4467 per_objfile parameter.
4468 (load_full_type_unit): Add per_objfile parameter.
4469 (read_signatured_type): Likewise.
4470 (load_full_comp_unit): Likewise.
4471 (load_cu): Likewise.
4472 (dw2_do_instantiate_symtab): Likewise.
4473 (dw2_get_file_names): Likewise.
4474 (dw2_map_symtabs_matching_filename): Update.
4475 (dw_expand_symtabs_matching_file_matcher): Update.
4476 (dw2_map_symbol_filenames): Update.
4477 (process_psymtab_comp_unit): Add per_objfile parameter.
4478 (build_type_psymtabs_1): Update.
4479 (process_skeletonless_type_unit): Update.
4480 (dwarf2_build_psymtabs_hard): Update.
4481 (load_partial_comp_unit): Add per_objfile parameter.
4482 (scan_partial_symbols): Update.
4483 (load_full_comp_unit): Add per_objfile parameter.
4484 (process_imported_unit_die): Update.
4485 (create_cus_hash_table): Update.
4486 (find_partial_die): Update.
4487 (dwarf2_read_addr_index): Update.
4488 (follow_die_offset): Update.
4489 (dwarf2_fetch_die_loc_sect_off): Update.
4490 (dwarf2_fetch_constant_bytes): Update.
4491 (dwarf2_fetch_die_type_sect_off): Update.
4492 (follow_die_sig_1): Update.
4493 (load_full_type_unit): Add per_objfile parameter.
4494 (read_signatured_type): Likewise.
4495
313bad1b
SM
44962020-05-27 Simon Marchi <simon.marchi@efficios.com>
4497
4498 * dwarf2/read.c (lookup_dwo_unit): Use bfd_get_filename instead
4499 of objfile_name.
4500
c3699833
SM
45012020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
4502
4503 * dwarf2/read.h (struct dwarf2_per_bfd) <obfd>: New member.
4504 (dwarf2_get_dwz_file): Replace parameter with dwarf2_per_bfd.
4505 * dwarf2/read.c (dwarf2_per_bfd::dwarf2_per_bfd): Assign obfd
4506 field.
4507 (dwarf2_get_dwz_file): Replace parameter with dwarf2_per_bfd.
4508 (create_cus_from_index): Update.
4509 (dwarf2_read_gdb_index): Update.
4510 (create_cus_from_debug_names): Update.
4511 (dwarf2_read_debug_names): Update.
4512 (get_abbrev_section_for_cu): Update.
4513 (create_all_comp_units): Update.
4514 (read_attribute_value): Update.
4515 (get_debug_line_section): Update.
4516 * dwarf2/index-cache.c (index_cache::store): Update.
4517 * dwarf2/index-write.c (save_gdb_index_command): Update.
4518 * dwarf2/macro.c (dwarf_decode_macro_bytes): Update.
4519
1859c670
SM
45202020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
4521
4522 * dwarf2/read.h (struct dwarf2_per_cu_data) <per_bfd>: New
4523 member.
4524 * dwarf2/read.c (dwarf2_per_bfd::allocate_per_cu): Initialize
4525 dwarf2_per_cu_data::per_bfd.
4526 (dwarf2_per_bfd::allocate_signatured_type): Likewise.
4527 (create_type_unit_group): Likewise.
4528 (queue_comp_unit): Remove reference to
4529 per_cu->dwarf2_per_objfile.
4530 (maybe_queue_comp_unit): Likewise.
4531 (fill_in_sig_entry_from_dwo_entry): Assign new field.
4532 (create_cus_hash_table): Assign new field.
4533
5e22e966
SM
45342020-05-27 Simon Marchi <simon.marchi@efficios.com>
4535
4536 * dwarf2/read.c: Replace
4537 dwarf2_cu->per_cu->dwarf2_per_objfile references with
4538 dwarf2_cu->per_objfile throughout.
4539
97a1449a
SM
45402020-05-27 Simon Marchi <simon.marchi@efficios.com>
4541
4542 * dwarf2/read.c (dw2_do_instantiate_symtab): Add per_objfile
4543 parameter, don't use per_cu->dwarf2_per_objfile.
4544 (dw2_instantiate_symtab): Likewise.
4545 (dw2_find_last_source_symtab): Update.
4546 (dw2_map_expand_apply): Update.
4547 (dw2_lookup_symbol): Update.
4548 (dw2_expand_symtabs_for_function): Update.
4549 (dw2_expand_all_symtabs): Update.
4550 (dw2_expand_symtabs_with_fullname): Update.
4551 (dw2_expand_symtabs_matching_one): Add per_objfile parameter,
4552 don't use per_cu->dwarf2_per_objfile.
4553 (dw2_expand_marked_cus): Update.
4554 (dw2_find_pc_sect_compunit_symtab): Update.
4555 (dw2_debug_names_lookup_symbol): Update.
4556 (dw2_debug_names_expand_symtabs_for_function): Update.
4557 (dw2_debug_names_map_matching_symbols): Update.
4558 (dwarf2_psymtab::expand_psymtab): Update.
4559
9e021579
SM
45602020-05-27 Simon Marchi <simon.marchi@efficios.com>
4561
4562 * dwarf2/read.c (struct dwarf2_cu) <dwarf2_cu>: Add parameter.
4563 <per_objfile>: New member.
4564 (class cutu_reader) <init_tu_and_read_dwo_dies>: Add parameter.
4565 (cutu_reader::init_tu_and_read_dwo_dies): Add parameter, update
4566 call to dwarf2_cu.
4567 (cutu_reader::cutu_reader): Update.
4568 (dwarf2_cu::dwarf2_cu): Add parameter, initialize per_objfile.
4569
ae090bdb
SM
45702020-05-27 Simon Marchi <simon.marchi@efficios.com>
4571
4572 * dwarf2/read.h (struct dwarf2_per_bfd) <die_type_hash>: Move to
4573 struct dwarf2_per_objfile.
4574 (struct dwarf2_per_objfile) <die_type_hash>: Move from struct
4575 dwarf2_per_bfd.
4576 * dwarf2/read.c (set_die_type): Update.
4577 (get_die_type_at_offset): Update.
4578
af758d11
SM
45792020-05-27 Tom Tromey <tom@tromey.com>
4580 Simon Marchi <simon.marchi@efficios.com>
4581
4582 * dwarf2/read.h (struct dwarf2_per_bfd) <num_psymtabs>: New
4583 method.
4584 (struct dwarf2_per_objfile) <resize_symtabs, symtab_set_p,
4585 get_symtab, set_symtab>: New methods.
4586 <m_symtabs>: New field.
4587 (struct dwarf2_psymtab): Derive from partial_symtab.
4588 <readin_p, get_compunit_symtab>: Declare methods.
4589 * dwarf2/read.c (dwarf2_per_objfile::symtab_set_p,
4590 dwarf2_per_objfile::get_symtab, dwarf2_per_objfile::set_symtab):
4591 New methods.
4592 (struct dwarf2_per_cu_quick_data) <compunit_symtab>: Remove.
4593 (dw2_do_instantiate_symtab, dw2_instantiate_symtab)
4594 (dw2_map_expand_apply, dw2_map_symtabs_matching_filename)
4595 (dw2_symtab_iter_next, dw2_print_stats)
4596 (dw2_expand_symtabs_with_fullname)
4597 (dw2_expand_symtabs_matching_one)
4598 (dw_expand_symtabs_matching_file_matcher)
4599 (dw2_find_pc_sect_compunit_symtab, dw2_map_symbol_filenames)
4600 (dw2_debug_names_iterator::next)
4601 (dw2_debug_names_map_matching_symbols)
4602 (fill_in_sig_entry_from_dwo_entry, dwarf2_psymtab::read_symtab)
4603 (process_queue, dwarf2_psymtab::expand_psymtab): Update.
4604 (dwarf2_psymtab::readin_p, dwarf2_psymtab::get_compunit_symtab):
4605 New methods.
4606 (get_compunit_symtab, process_full_comp_unit)
4607 (process_full_type_unit): Update.
4608 (dwarf2_build_psymtabs, dwarf2_initialize_objfile, add_type_unit): Call
4609
5989a64e
SM
46102020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
4611
4612 * dwarf2/read.h (dwarf2_per_objfile): Rename to dwarf2_per_bfd,
4613 then introduce a new dwarf2_per_objfile type.
4614 <read_line_string>: Move to the new dwarf2_per_objfile type.
4615 <objfile>: Likewise.
4616 (dwarf2_per_bfd): Rename dwarf2_per_objfile to this.
4617 * dwarf2/read.c: Replace references to dwarf2_per_objfile with
4618 dwarf2_per_objfile->per_bfd.
4619 (dwarf2_per_objfile::dwarf2_per_objfile): Rename to...
4620 (dwarf2_per_bfd::dwarf2_per_bfd): ... this.
4621 (dwarf2_per_objfile::free_cached_comp_units): Rename to...
4622 (dwarf2_per_bfd::free_cached_comp_units): ... this.
4623 (dwarf2_has_info): Allocate dwarf2_per_bfd.
4624 (dwarf2_per_objfile::locate_sections): Rename to...
4625 (dwarf2_per_bfd::locate_sections): ... this.
4626 (dwarf2_per_objfile::get_cutu): Rename to...
4627 (dwarf2_per_bfd::get_cutu): ... this.
4628 (dwarf2_per_objfile::get_cu): Rename to...
4629 (dwarf2_per_bfd::get_cu): ... this.
4630 (dwarf2_per_objfile::get_tu): Rename to...
4631 (dwarf2_per_bfd::get_tu): ... this.
4632 (dwarf2_per_objfile::allocate_per_cu): Rename to...
4633 (dwarf2_per_bfd::allocate_per_cu): ... this.
4634 (dwarf2_per_objfile::allocate_signatured_type): Rename to...
4635 (dwarf2_per_bfd::allocate_signatured_type): ... this.
4636 (get_gdb_index_contents_ftype): Change parameter from
4637 dwarf2_per_objfile to dwarf2_per_bfd.
4638 * dwarf2/macro.c, dwarf2/index-write.c: Replace references to
4639 dwarf2_per_objfile with dwarf2_per_objfile->per_bfd.
4640
a50264ba
TT
46412020-05-27 Tom Tromey <tom@tromey.com>
4642 Simon Marchi <simon.marchi@efficios.com>
4643
4644 * dwarf2/loc.c (struct piece_closure) <per_objfile>: New member.
4645 (allocate_piece_closure): Set "per_objfile" member.
4646 (dwarf2_find_location_expression, dwarf2_locexpr_baton_eval)
4647 (locexpr_describe_location, loclist_describe_location): Use new
4648 member.
4649 * dwarf2/read.c (read_call_site_scope)
4650 (mark_common_block_symbol_computed, attr_to_dynamic_prop)
4651 (dwarf2_const_value_attr, dwarf2_fetch_die_loc_sect_off)
4652 (fill_in_loclist_baton, dwarf2_symbol_mark_computed,
4653 handle_data_member_location): Set per_objfile member.
4654 * dwarf2/loc.h (struct dwarf2_locexpr_baton) <per_objfile>: New
4655 member.
4656 (struct dwarf2_loclist_baton) <per_objfile>: New member.
4657
d3473f0c
TT
46582020-05-27 Tom Tromey <tom@tromey.com>
4659
4660 * dwarf2/read.h (struct dwarf2_per_objfile) <allocate_per_cu,
4661 allocate_signatured_type>: Declare new methods.
4662 <m_num_psymtabs>: New member.
4663 (struct dwarf2_per_cu_data) <index>: New member.
4664 * dwarf2/read.c (dwarf2_per_objfile::allocate_per_cu)
4665 (dwarf2_per_objfile::allocate_signatured_type): New methods.
4666 (create_cu_from_index_list): Use allocate_per_cu.
4667 (create_signatured_type_table_from_index)
4668 (create_signatured_type_table_from_debug_names)
4669 (create_debug_type_hash_table, add_type_unit)
4670 (read_comp_units_from_section): Use allocate_signatured_type.
4671
5717c425
TT
46722020-05-27 Tom Tromey <tom@tromey.com>
4673
4674 * psymtab.c (partial_map_expand_apply)
4675 (psym_find_pc_sect_compunit_symtab, psym_lookup_symbol)
4676 (psym_lookup_global_symbol_language)
4677 (psymtab_to_symtab, psym_find_last_source_symtab, dump_psymtab)
4678 (psym_print_stats, psym_expand_symtabs_for_function)
4679 (psym_map_symbol_filenames, psym_map_matching_symbols)
4680 (psym_expand_symtabs_matching)
4681 (partial_symtab::read_dependencies, maintenance_info_psymtabs)
4682 (maintenance_check_psymtabs): Update.
4683 * psympriv.h (struct partial_symtab) <readin_p,
4684 get_compunit_symtab>: Add objfile parameter.
4685 (struct standard_psymtab) <readin_p, get_compunit_symtab>:
4686 Likewise.
4687 * dwarf2/read.c (struct dwarf2_include_psymtab) <readin_p,
4688 get_compunit_symtab>: Likewise.
4689 (dwarf2_psymtab::expand_psymtab): Pass objfile argument.
4690
45940949
TT
46912020-05-27 Tom Tromey <tom@tromey.com>
4692
4693 * dwarf2/read.h (struct dwarf2_per_objfile) <obstack>: New
4694 member.
4695 * dwarf2/read.c (delete_file_name_entry): Fix comment.
4696 (create_cu_from_index_list)
4697 (create_signatured_type_table_from_index)
4698 (create_signatured_type_table_from_debug_names)
4699 (dw2_get_file_names_reader, dwarf2_initialize_objfile)
4700 (dwarf2_create_include_psymtab)
4701 (create_debug_type_hash_table, add_type_unit)
4702 (create_type_unit_group, read_comp_units_from_section)
4703 (dwarf2_compute_name, create_cus_hash_table)
4704 (create_dwp_hash_table, create_dwo_unit_in_dwp_v1)
4705 (create_dwo_unit_in_dwp_v2, open_and_init_dwp_file): Use new
4706 obstack.
4707 (dw2_get_real_path): Likewise. Change argument to
4708 dwarf2_per_objfile.
4709
f8c6d152
LM
47102020-05-27 Luis Machado <luis.machado@linaro.org>
4711
4712 PR tdep/26000
4713 * arm-tdep.c (thumb_analyze_prologue): Fix instruction matching
4714 for ldrd (immediate).
4715
e98d2e6d
PW
47162020-05-26 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4717
4718 * command.h: Add comment giving the name of class_tui.
4719 * cli/cli-cmds.c (_initialize_cli_cmds): If TUI defined,
4720 create the fake command for the help for class_tui.
4721
53a47a3e
TT
47222020-05-26 Tom Tromey <tromey@adacore.com>
4723
4724 * ada-lang.c (ada_print_array_index): Change type. Call val_atr.
4725 (ada_value_ptr_subscript): Don't call pos_atr on the lower bound.
4726 (val_atr): New function.
4727 (value_val_atr): Use it.
4728 * ada-valprint.c (print_optional_low_bound): Change low bound
4729 handling for enums.
4730 (val_print_packed_array_elements): Don't call discrete_position.
4731 * gdbtypes.c (get_discrete_bounds) <TYPE_CODE_RANGE>: Call
4732 discrete_position for enum types.
4733 * language.c (default_print_array_index): Change type.
4734 * language.h (struct language_defn) <la_print_array_index>: Add
4735 index_type parameter, change type of index_value.
4736 (LA_PRINT_ARRAY_INDEX): Add index_type parameter.
4737 (default_print_array_index): Update.
4738 * valprint.c (maybe_print_array_index): Don't call
4739 value_from_longest. Update.
4740 (value_print_array_elements): Don't call discrete_position.
4741
0bc2354b
TT
47422020-05-26 Tom Tromey <tromey@adacore.com>
4743
4744 * ada-lang.c (value_val_atr): Handle TYPE_CODE_RANGE.
4745 * gdbtypes.c (discrete_position): Handle TYPE_CODE_RANGE.
4746
1218a4bf
CDA
47472020-05-25 Cristiano De Alti <cristiano_dealti@hotmail.com>
4748
4749 PR gdb/13519
4750 * avr-tdep.c (avr_integer_to_address): Return data or code
4751 address accordingly to the second 'type' argument of the
4752 function.
4753
92651b1d
MW
47542020-05-25 Michael Weghorn <m.weghorn@posteo.de>
4755
4756 * infcmd.c, inferior.h: (construct_inferior_arguments):
4757 Moved function from here to gdbsupport/common-inferior.{h,cc}
4758
0a4f5f8c
TT
47592020-05-23 Tom Tromey <tom@tromey.com>
4760
4761 Revert commit eca1f90c:
4762 * NEWS: Remove entry for completion styling.
4763 * completer.c (_rl_completion_prefix_display_length): Move
4764 declaration later.
4765 (gdb_fnprint): Revert.
4766 (gdb_display_match_list_1): Likewise.
4767 * cli/cli-style.c (completion_prefix_style)
4768 (completion_difference_style, completion_suffix_style): Remove.
4769 (_initialize_cli_style): Revert.
4770 * cli/cli-style.h (completion_prefix_style)
4771 (completion_difference_style, completion_suffix_style): Don't
4772 declare.
4773
e08bd6c5
PA
47742020-05-24 Pedro Alves <palves@redhat.com>
4775
4776 * symtab.c (completion_list_add_name): Return boolean indication
4777 of whether the symbol matched.
4778 (completion_list_add_symbol): Don't try to remove C++ aliases if
4779 the symbol didn't match in the first place.
4780 * symtab.h (completion_list_add_name): Return bool.
4781
ceacbf6e
SM
47822020-05-23 Simon Marchi <simon.marchi@polymtl.ca>
4783
4784 * gdbtypes.h (TYPE_FIELD): Remove. Replace all uses with
4785 type::field.
4786
26f16254
JB
47872020-05-23 Joel Brobecker <brobecker@adacore.com>
4788
4789 GDB 9.2 released.
4790
eca1f90c
TT
47912020-05-23 Tom Tromey <tom@tromey.com>
4792
4793 * NEWS: Add entry for completion styling.
4794 * completer.c (_rl_completion_prefix_display_length): Move
4795 declaration earlier.
4796 (gdb_fnprint): Use completion_style.
4797 (gdb_display_match_list_1): Likewise.
4798 * cli/cli-style.c (completion_prefix_style)
4799 (completion_difference_style, completion_suffix_style): New
4800 globals.
4801 (_initialize_cli_style): Register new globals.
4802 * cli/cli-style.h (completion_prefix_style)
4803 (completion_difference_style, completion_suffix_style): Declare.
4804
51e2cfa2
PA
48052020-05-23 Pedro Alves <palves@redhat.com>
4806
4807 * utils.c: Include "gdbsupport/gdb-safe-ctype.h".
4808 (parse_escape): Use ISDIGIT instead of isdigit.
4809 (puts_debug): Use gdb_isprint instead of isprint.
4810 (fprintf_symbol_filtered): Use ISALNUM instead of isalnum.
4811 (cp_skip_operator_token, skip_ws, strncmp_iw_with_mode): Use
4812 ISSPACE instead of isspace.
4813 (strncmp_iw_with_mode): Use TOLOWER instead of tolower and ISSPACE
4814 instead of isspace.
4815 (strcmp_iw_ordered): Use ISSPACE instead of isspace.
4816 (string_to_core_addr): Use TOLOWER instead of tolower, ISXDIGIT
4817 instead of isxdigit and ISDIGIT instead of isdigit.
4818
80fc5e77
SM
48192020-05-22 Simon Marchi <simon.marchi@efficios.com>
4820
4821 * gdbtypes.h (struct type) <field>: New method.
4822 (TYPE_FIELDS): Remove, replace all uses with either type::fields
4823 or type::field.
4824
3cabb6b0
SM
48252020-05-22 Simon Marchi <simon.marchi@efficios.com>
4826
4827 * gdbtypes.h (struct type) <fields, set_fields>: New methods.
4828 (TYPE_FIELDS): Use type::fields. Change all call sites that
4829 modify the propery to use type::set_fields instead.
4830
1f704f76
SM
48312020-05-22 Simon Marchi <simon.marchi@efficios.com>
4832
4833 * gdbtypes.h (TYPE_NFIELDS): Remove. Change all cal sites to use
4834 type::num_fields instead.
4835
5e33d5f4
SM
48362020-05-22 Simon Marchi <simon.marchi@efficios.com>
4837
4838 * gdbtypes.h (struct type) <num_fields, set_num_fields>: New
4839 methods.
4840 (TYPE_NFIELDS): Use type::num_fields. Change all call sites
4841 that modify the number of fields to use type::set_num_fields
4842 instead.
4843
9392ebb3
TT
48442020-05-22 Tom Tromey <tromey@adacore.com>
4845
4846 * compile/compile-object-load.h (munmap_list_free): Don't
4847 declare.
4848
7c13f4e8
AB
48492020-05-22 Andrew Burgess <andrew.burgess@embecosm.com>
4850
4851 * annotate.c (annotate_source_line): Update return type, add call
4852 to update current symtab and line.
4853 * annotate.h (annotate_source_line): Update return type, and
4854 extend header comment.
4855 * source.c (info_line_command): Check annotation_level before
4856 calling annotate_source_line.
4857 * stack.c (print_frame_info): If calling annotate_source_line
4858 returns true, then don't print any other source line information.
4859
aa370940
SM
48602020-05-21 Simon Marchi <simon.marchi@efficios.com>
4861
4862 * lm32-tdep.c (lm32_register_reggroup_p): Fix condition.
4863
84d53fa9
SM
48642020-05-21 Simon Marchi <simon.marchi@efficios.com>
4865
4866 * coffread.c (patch_type): Remove NULL check before xfree.
4867 * corefile.c (set_gnutarget): Likewise.
4868 * cp-abi.c (set_cp_abi_as_auto_default): Likewise.
4869 * exec.c (build_section_table): Likewise.
4870 * remote.c (remote_target::pass_signals): Likewise.
4871 * utils.c (n_spaces): Likewise.
4872 * cli/cli-script.c (document_command): Likewise.
4873 * i386-windows-tdep.c (core_process_module_section): Likewise.
4874 * linux-fork.c (struct fork_info) <~fork_info>: Likewise.
4875
9d428aae
SM
48762020-05-20 Simon Marchi <simon.marchi@efficios.com>
4877
4878 * symfile.c (reread_symbols): Clear objfile's section_offsets
4879 vector and section indices, re-compute them by calling
4880 sym_offsets.
4881
250106a7
TT
48822020-05-20 Tom Tromey <tromey@adacore.com>
4883
4884 * ada-lang.c (bound_name, MAX_ADA_DIMENS): Remove.
ec16513e 4885 (desc_one_bound, desc_index_type): Compute field name.
250106a7 4886
9a0bacfb
TV
48872020-05-20 Tom de Vries <tdevries@suse.de>
4888
4889 PR symtab/25833
4890 * dwarf2/read.c (dw2_map_matching_symbols): Handle .gdb_index.
4891
7b958a48
AM
48922020-05-20 Alan Modra <amodra@gmail.com>
4893
4894 PR 25993
4895 * solib-darwin.c (darwin_bfd_open): Don't strdup pathname for
4896 bfd_set_filename.
4897 * solib-aix.c (solib_aix_bfd_open): Use std::string for name
4898 passed to bfd_set_filename.
4899 * symfile-mem.c (add_vsyscall_page): Likewise for string
4900 passed to symbol_file_add_from_memory.
4901 (symbol_file_add_from_memory): Make name param a const char* and
4902 don't strdup.
4903
c7e97679
AM
49042020-05-20 Alan Modra <amodra@gmail.com>
4905
4906 * coff-pe-read.c (read_pe_exported_syms): Use bfd_get_filename
4907 rather than accessing bfd->filename directly.
4908 * dtrace-probe.c (dtrace_static_probe_ops::get_probes): Likewise,
4909 and use bfd_section_name.
4910 * dwarf2/frame.c (decode_frame_entry): Likewise.
4911 * exec.c (exec_set_section_address): Likewise.
4912 * solib-aix.c (solib_aix_bfd_open): Likewise.
4913 * stap-probe.c (get_stap_base_address): Likewise.
4914 * symfile.c (reread_symbols): Likewise.
4915
563c591b
TT
49162020-05-19 Tom Tromey <tromey@adacore.com>
4917
4918 * sparc64-tdep.c (adi_tag_fd): Update call to target_fileio_open.
4919
f408d82c
SM
49202020-05-19 Simon Marchi <simon.marchi@efficios.com>
4921
4922 * dwarf2/read.c (quirk_rust_enum): Allocate enough fields.
4923
98c59b52
PA
49242020-05-19 Pedro Alves <palves@redhat.com>
4925
4926 * NEWS (set exec-file-mismatch): Adjust entry.
4927 * exec.c: Include "build-id.h".
4928 (validate_exec_file): Try to match build IDs instead of filenames.
4929 * gdb_bfd.c (struct gdb_bfd_open_closure): New.
4930 (gdb_bfd_iovec_fileio_open): Adjust to use gdb_bfd_open_closure
4931 and pass down 'warn_if_slow'.
4932 (gdb_bfd_open): Add 'warn_if_slow' parameter. Use
4933 gdb_bfd_open_closure to pass it down.
4934 * gdb_bfd.h (gdb_bfd_open): Add 'warn_if_slow' parameter.
4935
4111f652
PA
49362020-05-19 Pedro Alves <palves@redhat.com>
4937
4938 * gdb_bfd.c (gdb_bfd_iovec_fileio_open): Adjust.
4939 * target.c (target_fileio_open_1): Rename to target_fileio_open
4940 and make extern. Use bool.
4941 (target_fileio_open, target_fileio_open_warn_if_slow): Delete.
4942 (target_fileio_read_alloc_1): Adjust.
4943 * target.h (target_fileio_open): Add 'warn_if_slow' parameter.
4944 (target_fileio_open_warn_if_slow): Delete declaration.
4945
ad80db5b
PA
49462020-05-19 Pedro Alves <palves@redhat.com>
4947
4948 * gdb_bfd.h: (gdb_bfd_open): Default to 'fd' parameter to -1.
4949 Adjust all callers.
4950
1d6ce4d3
YS
49512020-05-19 Yoshinori Sato <ysato@users.sourceforge.jp>
4952
4953 * h8300-tdep.c (h8300_is_argument_spill): Change how we check
4954 whether disp is negative.
4955
9005fbbb
SM
49562020-05-19 Simon Marchi <simon.marchi@efficios.com>
4957
4958 * symfile.h (struct symfile_segment_data)
4959 <~symfile_segment_data>: Remove.
4960 <segment_info>: Change to std::vector.
4961 * symfile.c (default_symfile_segments): Update.
4962 * elfread.c (elf_symfile_segments): Update.
4963
68b888ff
SM
49642020-05-19 Simon Marchi <simon.marchi@efficios.com>
4965
4966 * symfile.h (struct symfile_segment_data) <struct segment>: New.
4967 <segments>: New.
4968 <segment_bases, segment_sizes>: Remove.
4969 * symfile.c (default_symfile_segments): Update.
4970 * elfread.c (elf_symfile_segments): Update.
4971 * remote.c (remote_target::get_offsets): Update.
4972 * solib-target.c (solib_target_relocate_section_addresses):
4973 Update.
4974
62982abd
SM
49752020-05-19 Simon Marchi <simon.marchi@efficios.com>
4976
4977 * symfile.h (struct symfile_segment_data): Initialize fields.
4978 <~symfile_segment_data>: Add.
4979 (symfile_segment_data_up): New.
4980 (struct sym_fns) <sym_segments>: Return a
4981 symfile_segment_data_up.
4982 (default_symfile_segments): Return a symfile_segment_data_up.
4983 (free_symfile_segment_data): Remove.
4984 (get_symfile_segment_data): Return a symfile_segment_data_up.
4985 * symfile.c (default_symfile_segments): Likewise.
4986 (get_symfile_segment_data): Likewise.
4987 (free_symfile_segment_data): Remove.
4988 (symfile_find_segment_sections): Update.
4989 * elfread.c (elf_symfile_segments): Return a
4990 symfile_segment_data_up.
4991 * remote.c (remote_target::get_offsets): Update.
4992 * solib-target.c (solib_target_relocate_section_addresses):
4993 Update.
4994 * symfile-debug.c (debug_sym_segments): Return a
4995 symfile_segment_data_up.
4996
7f204339
RO
49972020-05-18 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
4998
e52a0f1b
RO
4999 PR build/25981
5000 * i386-sol2-nat.c [PR_MODEL_NATIVE != PR_MODEL_LP64] (regmap):
5001 Hardcode register numbers.
5002
7f204339
RO
5003 PR build/25981
5004 * procfs.c [(__i386__ || __x86_64__) && sun] (proc_get_LDT_entry,
5005 procfs_find_LDT_entry): Remove.
5006 * procfs.h [(__i386__ || __x86_64__) && sun] (struct ssd,
5007 procfs_find_LDT_entry): Remove.
5008 * sol-thread.c [(__i386__ || __x86_64__) && sun] (ps_lgetLDT):
5009 Remove.
5010
7f32a4d5
PA
50112020-05-17 Pedro Alves <palves@redhat.com>
5012 Andrew Burgess <andrew.burgess@embecosm.com>
5013 Keno Fischer <keno@juliacomputing.com>
5014
5015 PR gdb/25741
5016 * breakpoint.c (build_target_condition_list): Update comments.
5017 (build_target_command_list): Update comments and skip matching
5018 locations.
5019 (insert_bp_location): Move "set breakpoint auto-hw on" handling to
5020 a separate function. Simplify "set breakpoint auto-hw off"
5021 handling.
5022 (insert_breakpoints): Update comment.
5023 (tracepoint_locations_match): New parameter. For breakpoints,
5024 compare location types too, if the caller wants to.
5025 (handle_automatic_hardware_breakpoints): New functions.
5026 (bp_location_is_less_than): Also sort by location type and
5027 hardware breakpoint length.
5028 (update_global_location_list): Handle "set breakpoint auto-hw on"
5029 here.
5030 (update_breakpoint_locations): Ask breakpoint_locations_match to
5031 ignore location types.
5032
7d93a1e0
SM
50332020-05-16 Simon Marchi <simon.marchi@efficios.com>
5034
5035 * gdbtypes.h (TYPE_NAME): Remove. Change all cal sites to use
5036 type::name instead.
5037
d0e39ea2
SM
50382020-05-16 Simon Marchi <simon.marchi@efficios.com>
5039
5040 * gdbtypes.h (struct type) <name, set_name>: New methods.
5041 (TYPE_CODE): Use type::name. Change all call sites used to set
5042 the name to use type::set_name instead.
5043
2dab0c7b
TT
50442020-05-16 Tom Tromey <tom@tromey.com>
5045
5046 * top.c (quit_force): Update.
5047 * infrun.c (handle_no_resumed): Update.
5048 * top.h (all_uis): New function.
5049 (ALL_UIS): Remove.
5050
59f7bd8d
SM
50512020-05-16 Simon Marchi <simon.marchi@efficios.com>
5052
5053 * mips-linux-tdep.c (mips_linux_in_dynsym_stub): Fix condition.
5054
9bf058f0
PA
50552020-05-16 Pedro Alves <palves@redhat.com>
5056
5057 * ia64-linux-nat.c
5058 (ia64_linux_nat_target) <enable_watchpoints_in_psr(ptid_t)>:
5059 Declare method.
5060 (enable_watchpoints_in_psr): Now a method of ia64_linux_nat_target.
5061
8f86ae1a
SM
50622020-05-15 Simon Marchi <simon.marchi@efficios.com>
5063
5064 * sparc64-tdep.c (adi_stat_t): Remove typedef (leaving struct).
5065 (sparc64_adi_info): Likewise.
5066
d6bc0792
TT
50672020-05-15 Tom Tromey <tom@tromey.com>
5068
5069 * symtab.c (lookup_language_this, lookup_symbol_aux): Use
5070 block_objfile.
5071 (lookup_objfile_from_block): Remove.
5072 (lookup_symbol_in_block, lookup_symbol_in_static_block)
5073 (lookup_global_symbol): Use block_objfile.
5074 * symtab.h (lookup_objfile_from_block): Don't declare.
5075 * printcmd.c (clear_dangling_display_expressions): Use
5076 block_objfile.
5077 * parse.c (operator_check_standard): Use block_objfile.
5078
8c14c3a3
TT
50792020-05-15 Tom Tromey <tom@tromey.com>
5080
5081 * language.c (language_alloc_type_symbol): Set
5082 SYMBOL_SECTION.
5083 * symtab.c (initialize_objfile_symbol): Remove.
5084 (allocate_symbol): Remove.
5085 (allocate_template_symbol): Remove.
5086 * dwarf2/read.c (fixup_go_packaging): Use "new".
5087 (new_symbol): Use "new".
5088 (read_variable): Don't call initialize_objfile_symbol. Use
5089 "new".
5090 (read_func_scope): Use "new".
5091 * xcoffread.c (process_xcoff_symbol): Don't call
5092 initialize_objfile_symbol.
5093 (SYMBOL_DUP): Remove.
5094 * coffread.c (process_coff_symbol, coff_read_enum_type): Use
5095 "new".
5096 * symtab.h (allocate_symbol, initialize_objfile_symbol)
5097 (allocate_template_symbol): Don't declare.
5098 (struct symbol): Add copy constructor. Change defaults.
5099 * jit.c (finalize_symtab): Use "new".
5100 * ctfread.c (ctf_add_enum_member_cb, new_symbol, ctf_add_var_cb):
5101 Use "new".
5102 * stabsread.c (patch_block_stabs, define_symbol, read_enum_type)
5103 (common_block_end): Use "new".
5104 * mdebugread.c (parse_symbol): Use "new".
5105 (new_symbol): Likewise.
5106
5b4a1a8d
PW
51072020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5108
5109 * NEWS: Mention changes to help and apropos.
5110
57b4f16e
PW
51112020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5112
5113 * command.h (enum command_class): Improve comments, document
5114 that class_alias is for user-defined aliases, give the class
5115 name for each class, remove unused class_xdb.
5116 * cli/cli-decode.c (add_com_alias): Document THECLASS intended usage.
5117 * breakpoint.c (_initialize_breakpoint): Replace class_alias
5118 by a precise class.
5119 * infcmd.c (_initialize_infcmd): Likewise.
5120 * reverse.c (_initialize_reverse): Likewise.
5121 * stack.c (_initialize_stack): Likewise.
5122 * symfile.c (_initialize_symfile): Likewise.
5123 * tracepoint.c (_initialize_tracepoint): Likewise.
5124
7c05caf7
PW
51252020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5126
5127 * cli/cli-decode.c (apropos_cmd): Produce output for aliases
5128 when their aliased command is traversed.
5129 (help_cmd): Add fput_command_names_styled call to
5130 output command name and aliases when command has an alias.
5131
3b3aaacb
PW
51322020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5133
5134 * cli/cli-decode.h (help_cmd_list): Remove declaration.
5135 * cli/cli-decode.c (help_cmd_list): Declare as static,
5136 remove prefix argument, use bool for recurse arg, rework to show the aliases of
5137 a command together with the command.
5138 (fput_command_name_styled, fput_command_names_styled): New functions.
5139 (print_help_for_command): Remove prefix arg, use bool for recurse arg, use
5140 fput_command_name_styled.
5141 (help_list, help_all): Update callers to remove prefix arg and use bool recurse.
5142 * cli/cli-cmds.c (_initialize_cli_cmds): Update alias_command doc.
5143
7aa1b46f
PW
51442020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5145
5146 * cli/cli-setshow.h (cmd_show_list): Remove prefix argument.
5147 * cli/cli-decode.c (do_show_prefix_cmd): Likewise.
5148 * command.h (cmd_show_list): Likewise.
5149 * dwarf2/index-cache.c (show_index_cache_command): Likewise.
5150 * cli/cli-setshow.c (cmd_show_list): Use the prefix to produce the output. Skip aliases.
5151
89bcba74
PW
51522020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5153
5154 * unittests/command-def-selftests.c (traverse_command_structure):
5155 Verify all commands of a list have the same prefix command and
5156 that only the top cmdlist commands have a null prefix.
5157
3f4d92eb
PW
51582020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5159
5160 * cli/cli-decode.c (lookup_cmd_for_prefix): Return the aliased command
5161 as prefix, not one of its aliases.
5162 (set_cmd_prefix): Remove.
5163 (do_add_cmd): Centralize the setting of the prefix of a command, when
5164 command is defined after its full chain of prefix commands.
5165 (add_alias_cmd): Remove call to set_cmd_prefix, as do_add_cmd does it.
5166 (add_setshow_cmd_full): Likewise.
5167 (update_prefix_field_of_prefixed_commands): New function.
5168 (add_prefix_cmd): Replace non working call to set_cmd_prefix by
5169 update_prefix_field_of_prefixed_commands.
5170 * gdb/remote-fileio.c (initialize_remote_fileio): Use the real
5171 addresses of remote_set_cmdlist and remote_show_cmdlist given
5172 as argument, not the address of an argument.
5173 * gdb/remote-fileio.h (initialize_remote_fileio): Likewise.
5174 * gdb/remote.c (_initialize_remote): Likewise.
5175
0605465f
PW
51762020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5177
5178 * cli/cli-cmds.c (alias_command): Check for an existing alias
5179 using lookup_cmd_composition, as valid_command_p is too strict
5180 and forbids aliases that are the prefix of an existing alias
5181 or command.
5182 * cli/cli-decode.c (lookup_cmd_composition): Ensure a prefix
5183 command is properly recognised as a valid command.
5184
58e6ac70
PW
51852020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5186
5187 * unittests/help-doc-selftests.c: Rename to
5188 unittests/command-def-selftests.c
5189 * unittests/command-def-selftests.c (help_doc_tests): Update some
5190 comments.
5191 (command_structure_tests, traverse_command_structure): New namespace
5192 and function.
5193 (command_structure_invariants_tests): New function.
5194 (_initialize_command_def_selftests) Renamed from
5195 _initialize_help_doc_selftests, register command_structure_invariants
5196 selftest.
5197
a7b9ceb8
PW
51982020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5199
5200 * cli/cli-cmds.c (_initialize_cli_cmds): Define 'info set' as
5201 an alias of 'show'.
5202
b2188a06
JB
52032020-05-15 Joel Brobecker <brobecker@adacore.com>
5204
5205 * ada-lang.h: (ada_is_gnat_encoded_fixed_point_type): Renames
5206 ada_is_fixed_point_type. Update all callers.
5207 (gnat_encoded_fixed_point_delta): Renames ada_delta. Update
5208 all callers.
5209 * ada-lang.c (gnat_encoded_fixed_type_info): Renames fixed_type_info.
5210 Update all callers.
5211 * ada-typeprint.c (print_gnat_encoded_fixed_point_type): Renames
5212 print_fixed_point_type. Update all callers.
5213 * ada-valprint.c (ada_value_print_num): Replace call to
5214 ada_is_fixed_point_type by ada_is_gnat_encoded_fixed_point_type.
5215
a51951c2
KB
52162020-05-14 Kevin Buettner <kevinb@redhat.com>
5217
5218 * nat/linux-btrace.c (btrace_this_cpu): Add check for AMD
5219 processors.
5220 (cpu_supports_bts): Add CV_AMD case.
5221
29d6859f
LM
52222020-05-14 Laurent Morichetti <Laurent.Morichetti@amd.com>
5223 Simon Marchi <simon.marchi@efficios.com>
5224
5225 * infrun.c (stop_all_threads): Collect multiple wait events at
5226 each pass.
5227
78134374
SM
52282020-05-14 Simon Marchi <simon.marchi@efficios.com>
5229
5230 * gdbtypes.h (TYPE_CODE): Remove. Change all call sites to use
5231 type::code instead.
5232
67607e24
SM
52332020-05-14 Simon Marchi <simon.marchi@efficios.com>
5234
5235 * gdbtypes.h (struct type) <code, set_code>: New methods.
5236 (TYPE_CODE): Use type::code. Change all call sites used to set
5237 the code to use type::set_code instead.
5238
a05575d3
TBA
52392020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
5240 Tom de Vries <tdevries@suse.de>
5241 Pedro Alves <palves@redhat.com>
5242
5243 PR threads/25478
5244 * infrun.c (stop_all_threads): Do NOT ignore
5245 TARGET_WAITKIND_NO_RESUMED, TARGET_WAITKIND_THREAD_EXITED,
5246 TARGET_WAITKIND_EXITED, TARGET_WAITKIND_SIGNALLED wait statuses
5247 received.
5248 (handle_no_resumed): Remove code handling a live inferior with no
5249 threads.
5250 * remote.c (has_single_non_exited_thread): New.
5251 (remote_target::update_thread_list): Do not delete a thread if is
5252 the last thread of the process.
5253 * thread.c (thread_select): Call delete_exited_threads instead of
5254 prune_threads.
5255
6ad82919
TBA
52562020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
5257
5258 * infrun.c (stop_all_threads): Enable/disable thread events of all
5259 targets. Move a debug message denoting the end of the function
5260 into the SCOPED_EXIT block.
5261
d890404b
TBA
52622020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
5263
5264 * process-stratum-target.h: Include <set>.
5265 (all_non_exited_process_targets, switch_to_target_no_thread): New
5266 function declarations.
5267 * process-stratum-target.c (all_non_exited_process_targets)
5268 (switch_to_target_no_thread): New function implementations.
5269
293b3ebc
TBA
52702020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
5271
5272 * infrun.c (handle_inferior_event): Extract out a piece of code
5273 into...
5274 (mark_non_executing_threads): ...this new function.
5275
7ca9b62a
TBA
52762020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
5277
5278 * infrun.c (resume_1): Move a 'regcache_read_pc' call down to first
5279 use.
5280
fc75c28b
TBA
52812020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
5282
5283 * regcache.c (regcache_read_pc_protected): New function
5284 implementation that returns 0 if the PC cannot read via
5285 'regcache_read_pc'.
5286 * infrun.c (proceed): Call 'regcache_read_pc_protected'
5287 instead of 'regcache_read_pc'.
5288 (keep_going_pass_signal): Ditto.
5289
a89febbd
TT
52902020-05-13 Tom Tromey <tromey@adacore.com>
5291
5292 * ada-lang.c (align_value): Remove.
5293 (ada_template_to_fixed_record_type_1): Use align_up.
5294
f7e23710
TBA
52952020-05-13 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
5296
5297 * async-event.c: Update the copyright year.
5298 * async-event.h: Update the copyright year.
5299
02ff80c2
SM
53002020-05-12 Simon Marchi <simon.marchi@efficios.com>
5301
5302 * objfiles.h (is_addr_in_objfile,
5303 shared_objfile_contains_address_p): Return bool.
5304 * objfile.c (is_addr_in_objfile,
5305 shared_objfile_contains_address_p): Return bool.
5306
4fd6c7e8
TT
53072020-05-11 Tom Tromey <tromey@adacore.com>
5308
5309 * cli/cli-cmds.c (info_command): Restore.
5310 (_initialize_cli_cmds): Use add_prefix_command for "info".
5311 * gdb-gdb.gdb.in: Restore breakpoint on info_command.
5312
5eb68a39
TT
53132020-05-11 Tom Tromey <tromey@adacore.com>
5314
5315 * ada-lang.c (ada_value_primitive_field): Now public.
5316 * ada-lang.h (ada_value_primitive_field): Declare.
5317 * ada-valprint.c (print_field_values): Use
5318 ada_value_primitive_field for wrapper fields.
5319
7666722f
TV
53202020-05-11 Tom de Vries <tdevries@suse.de>
5321
5322 * dwarf2/index-write.c (debug_names::psymbol_tag): Handle
5323 MODULE_DOMAIN.
5324
3ee6bb11
TV
53252020-05-11 Tom de Vries <tdevries@suse.de>
5326
5327 PR symtab/25941
5328 * dwarf2/read.c (create_cus_from_debug_names_list): Initialize CUs
5329 with length 0, if not gdb-produced.
5330 (cutu_reader::cutu_reader): Set CU length to actual length if 0.
5331
43434996
TV
53322020-05-09 Tom de Vries <tdevries@suse.de>
5333
5334 PR gdb/25955
5335 * break-catch-throw.c (check_status_exception_catchpoint): Fix name
5336 calculation.
5337
2f78cffc
TT
53382020-05-09 Tom Tromey <tom@tromey.com>
5339
5340 * top.c (server_command): Now bool.
5341 * top.h (server_command): Now bool.
5342
4f7bc5ed
TT
53432020-05-08 Tom Tromey <tromey@adacore.com>
5344
5345 * dwarf2/read.c (read_lexical_block_scope): Don't process a DIE
5346 already being processed.
5347
8be4b118
TT
53482020-05-08 Tom Tromey <tom@tromey.com>
5349
5350 * printcmd.c (struct display) <next>: Remove.
5351 <display>: New constructor.
5352 <exp_string>: Now a std::string.
5353 <enabled_p>: Now a bool.
5354 (display_number): Move definition earlier.
5355 (displays): Rename from display_chain. Now a std::vector.
5356 (ALL_DISPLAYS, ALL_DISPLAYS_SAFE): Remove.
5357 (display_command): Update.
5358 (do_one_display, disable_display)
5359 (enable_disable_display_command, do_enable_disable_display):
5360 Update.
5361 (free_display): Remove.
5362 (clear_displays): Rewrite.
5363 (delete_display): Update.
5364 (map_display_numbers): Use function_view. Remove "data"
5365 parameter. Update.
5366 (do_delete_display): Remove.
5367 (undisplay_command): Update.
5368 (do_one_display, do_displays, disable_display)
5369 (info_display_command): Update.
5370 (do_enable_disable_display): Remove.
5371 (enable_disable_display_command)
5372 (clear_dangling_display_expressions): Update.
5373
94c93c35
TT
53742020-05-08 Tom Tromey <tom@tromey.com>
5375
5376 * symtab.c (set_symbol_cache_size)
5377 (maintenance_print_symbol_cache, maintenance_flush_symbol_cache)
5378 (maintenance_print_symbol_cache_statistics): Update.
5379 * symmisc.c (print_symbol_bcache_statistics)
5380 (print_objfile_statistics, maintenance_print_objfiles)
5381 (maintenance_info_symtabs, maintenance_check_symtabs)
5382 (maintenance_expand_symtabs, maintenance_info_line_tables):
5383 Update.
5384 * symfile-debug.c (set_debug_symfile): Update.
5385 * source.c (forget_cached_source_info): Update.
5386 * python/python.c (gdbpy_progspaces): Update.
5387 * psymtab.c (maintenance_info_psymtabs): Update.
5388 * probe.c (parse_probes): Update.
5389 * linespec.c (iterate_over_all_matching_symtabs)
5390 (collect_symtabs_from_filename, search_minsyms_for_name): Update.
5391 * guile/scm-progspace.c (gdbscm_progspaces): Update.
5392 * exec.c (exec_target::close): Update.
5393 * ada-tasks.c (ada_tasks_new_objfile_observer): Update.
5394 * breakpoint.c (print_one_breakpoint_location)
5395 (create_longjmp_master_breakpoint)
5396 (create_std_terminate_master_breakpoint): Update.
5397 * progspace.c (program_spaces): Now a std::vector.
5398 (maybe_new_address_space): Update.
5399 (add_program_space): Remove.
5400 (program_space::program_space): Update.
5401 (remove_program_space): Update.
5402 (number_of_program_spaces): Remove.
5403 (print_program_space, update_address_spaces): Update.
5404 * progspace.h (program_spaces): Change type.
5405 (ALL_PSPACES): Remove.
5406 (number_of_program_spaces): Don't declare.
5407 (struct program_space) <next>: Remove.
5408
a1fd1ac9
TT
54092020-05-08 Tom Tromey <tom@tromey.com>
5410
5411 * mi/mi-cmd-file.c (mi_cmd_file_list_shared_libraries): Update.
5412 * solib-svr4.c (svr4_fetch_objfile_link_map): Update.
5413 (enable_break): Update.
5414 * solib-frv.c (frv_fdpic_find_global_pointer): Update.
5415 (frv_fdpic_find_canonical_descriptor): Update.
5416 (frv_fetch_objfile_link_map): Update.
5417 * progspace.c (program_space::free_all_objfiles): Update.
5418 (program_space::solibs): New method.
5419 * progspace.h (struct program_space) <solibs>: New method.
5420 * solist.h (master_so_list): Don't declare.
5421 (ALL_SO_LIBS): Remove.
5422 * solib.h (so_list_head): Remove.
5423 (update_solib_list): Update comment.
5424 * solib.c (master_so_list): Remove.
5425 (solib_used, update_solib_list, solib_add)
5426 (info_sharedlibrary_command, clear_solib)
5427 (reload_shared_libraries_1, remove_user_added_objfile): Update.
5428
38eae084
TT
54292020-05-08 Tom Tromey <tom@tromey.com>
5430
5431 * extension.c (extension_languages): Now a std::array.
5432 (ALL_EXTENSION_LANGUAGES): Remove.
5433 (get_ext_lang_defn, get_ext_lang_of_file)
5434 (eval_ext_lang_from_control_command): Update.
5435 (finish_ext_lang_initialization)
5436 (auto_load_ext_lang_scripts_for_objfile)
5437 (ext_lang_type_printers::ext_lang_type_printers)
5438 (apply_ext_lang_type_printers)
5439 (ext_lang_type_printers::~ext_lang_type_printers)
5440 (apply_ext_lang_val_pretty_printer, apply_ext_lang_frame_filter)
5441 (preserve_ext_lang_values, get_breakpoint_cond_ext_lang)
5442 (breakpoint_ext_lang_cond_says_stop, check_quit_flag)
5443 (get_matching_xmethod_workers, ext_lang_colorize)
5444 (ext_lang_before_prompt): Update.
5445 (ALL_ENABLED_EXTENSION_LANGUAGES): Remove.
5446
596dc4ad
TT
54472020-05-08 Tom Tromey <tom@tromey.com>
5448
5449 * symtab.h (class demangle_result_storage) <set_malloc_ptr>: New
5450 overload.
5451 <swap_string, m_string>: Remove.
5452 * symtab.c (demangle_for_lookup, completion_list_add_symbol):
5453 Update.
5454 * stabsread.c (define_symbol, read_type): Update.
5455 * linespec.c (find_linespec_symbols): Update.
5456 * gnu-v3-abi.c (gnuv3_get_typeid): Update.
5457 * dwarf2/read.c (dwarf2_canonicalize_name): Update.
5458 * dbxread.c (read_dbx_symtab): Update.
5459 * cp-support.h (cp_canonicalize_string_full)
5460 (cp_canonicalize_string, cp_canonicalize_string_no_typedefs):
5461 Return unique_xmalloc_ptr.
5462 * cp-support.c (inspect_type): Update.
5463 (cp_canonicalize_string_full): Return unique_xmalloc_ptr.
5464 (cp_canonicalize_string_no_typedefs, cp_canonicalize_string):
5465 Likewise.
5466 * c-typeprint.c (print_name_maybe_canonical): Update.
5467 * break-catch-throw.c (check_status_exception_catchpoint):
5468 Update.
5469
bf4cb9be
TV
54702020-05-08 Tom de Vries <tdevries@suse.de>
5471
5472 * infrun.c (follow_fork): Copy current_line and current_symtab to
5473 child thread.
5474
a1b68f28
SM
54752020-05-07 Simon Marchi <simon.marchi@efficios.com>
5476
5477 * async-event.c (struct async_signal_handler, struct
5478 async_event_handler): Reformat, remove typedef.
5479
98d48915
SM
54802020-05-07 Simon Marchi <simon.marchi@efficios.com>
5481
5482 * gdbtypes.h (TYPE_DYN_PROP_LIST): Remove. Update all users
5483 access thistype->main_type->dyn_prop_list directly.
5484
7aa91313
SM
54852020-05-07 Simon Marchi <simon.marchi@efficios.com>
5486
5487 * gdbtypes.h (struct type) <remove_dyn_prop>: New method.
5488 (remove_dyn_prop): Remove. Update all users to use
5489 type::remove_dyn_prop.
5490 * gdbtypes.c (remove_dyn_prop): Rename to...
5491 (type::remove_dyn_prop): ... this.
5492
5c54719c
SM
54932020-05-07 Simon Marchi via Gdb-patches <gdb-patches@sourceware.org>
5494
5495 * gdbtypes.h (struct type) <add_dyn_prop>: New method.
5496 (add_dyn_prop): Remove. Update all users to use
5497 type::add_dyn_prop.
5498 * gdbtypes.c (add_dyn_prop): Rename to...
5499 (type::add_dyn_prop): ... this.
5500
24e99c6c
SM
55012020-05-07 Simon Marchi <simon.marchi@efficios.com>
5502
5503 * gdbtypes.h (struct type) <get_dyn_prop>: New method.
5504 (get_dyn_prop): Remove. Update all users to use
5505 type::dyn_prop.
5506 * gdbtypes.c (get_dyn_prop): Rename to...
5507 (type::dyn_prop): ... this.
5508
0d4bf016
SM
55092020-05-06 Simon Marchi <simon.marchi@efficios.com>
5510
5511 * gdbtypes.h (struct main_type) <flag_static>: Remove.
5512
ac4a4f1c
SM
55132020-05-06 Simon Marchi <simon.marchi@efficios.com>
5514
5515 * amd64-tdep.c (amd64_analyze_prologue): Check for `endbr64`
5516 instruction, skip it if it's there.
5517
a3bbacc1
SM
55182020-05-05 Simon Marchi <simon.marchi@efficios.com>
5519
5520 * gdbtypes.h (struct main_type) <flag_incomplete>: Remove.
5521
c3236f84
SM
55222020-05-04 Simon Marchi <simon.marchi@efficios.com>
5523
5524 * gdbtypes.h (TYPE_INCOMPLETE): Remove.
5525 * gdbtypes.c (recursive_dump_type): Remove use of
5526 TYPE_INCOMPLETE.
5527
3b6acaee
TT
55282020-05-03 Tom Tromey <tom@tromey.com>
5529
5530 * breakpoint.c (catch_command, tcatch_command): Remove.
5531 (_initialize_breakpoint): Use add_basic_prefix_cmd,
5532 add_show_prefix_cmd.
5533 (set_breakpoint_cmd, show_breakpoint_cmd): Remove
5534 * utils.c (set_internal_problem_cmd, show_internal_problem_cmd):
5535 Remove.
5536 (add_internal_problem_command): Use add_basic_prefix_cmd,
5537 add_show_prefix_cmd.
5538 * mips-tdep.c (set_mipsfpu_command): Remove.
5539 (_initialize_mips_tdep): Use add_basic_prefix_cmd.
5540 * dwarf2/index-cache.c (set_index_cache_command): Remove.
5541 (_initialize_index_cache): Use add_basic_prefix_cmd.
5542 * memattr.c (dummy_cmd): Remove.
5543 (_initialize_mem): Use add_basic_prefix_cmd, add_show_prefix_cmd.
5544 * tui/tui-win.c (set_tui_cmd, show_tui_cmd): Remove.
5545 (_initialize_tui_win): Use add_basic_prefix_cmd,
5546 add_show_prefix_cmd.
5547 * cli/cli-logging.c (set_logging_command): Remove.
5548 (_initialize_cli_logging): Use add_basic_prefix_cmd,
5549 add_show_prefix_cmd.
5550 (show_logging_command): Remove.
5551 * target.c (target_command): Remove.
5552 (add_target): Use add_basic_prefix_cmd.
5553
a51119cd
HD
55542020-05-02 Hannes Domani <ssbssa@yahoo.de>
5555
5556 * gdbtypes.h (enum dynamic_prop_node_kind): Fix typo.
5557
652fc23a 55582020-05-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6a6ea76a 5559
652fc23a
PW
5560 * gdb-gdb.gdb-in: Remove breakpoint on disappeared function
5561 info_command.
5562
117539e6
KR
55632020-04-30 Kamil Rytarowski <n54@gmx.com>
5564
5565 * nbsd-nat.c (nbsd_enable_proc_events)
5566 (nbsd_nat_target::post_startup_inferior): Add.
5567 (nbsd_nat_target::post_attach): Call `nbsd_enable_proc_events'.
5568 (nbsd_nat_target::update_thread_list): Rewrite.
5569 (nbsd_nat_target::wait): Handle "PTRACE_LWP_EXIT" and
5570 "PTRACE_LWP_CREATE".
5571 * nbsd-nat.h (nbsd_nat_target::post_startup_inferior): Add.
5572
102e38eb 55732020-04-30 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6a6ea76a 5574
102e38eb
PW
5575 * stack.c (_initialize_stack): Remove duplicated creation
5576 of "frame" command and "f" alias.
5577
ee9d1e5f
HD
55782020-04-30 Hannes Domani <ssbssa@yahoo.de>
5579
5580 PR gdb/18706
5581 * gdbtypes.c (check_typedef): Calculate size of array of
5582 stubbed type.
5583
627c7fb8
HD
55842020-04-30 Hannes Domani <ssbssa@yahoo.de>
5585
5586 PR gdb/15559
5587 * i386-tdep.c (i386_push_dummy_call): Call
5588 i386_thiscall_push_dummy_call.
5589 (i386_thiscall_push_dummy_call): New function.
5590 * i386-tdep.h (i386_thiscall_push_dummy_call): Declare.
5591 * i386-windows-tdep.c (i386_windows_push_dummy_call): New function.
5592 (i386_windows_init_abi): Call set_gdbarch_push_dummy_call.
5593
ffc2844e
SM
55942020-04-29 Simon Marchi <simon.marchi@efficios.com>
5595
5596 * gdbarch.sh (do_read): Add shellcheck disable directive for
5597 warning SC2162.
5598
1207375d
SM
55992020-04-29 Simon Marchi <simon.marchi@efficios.com>
5600
5601 * gdbarch.sh: Use ${foo:-} where shellcheck would report a
5602 "referenced but not assigned" warning.
5603
9fdb2916
SM
56042020-04-29 Simon Marchi <simon.marchi@efficios.com>
5605
5606 * gdbarch.sh: Remove code that sets fallbackdefault.
5607
759cea5e
SM
56082020-04-29 Simon Marchi <simon.marchi@efficios.com>
5609
5610 * gdbarch.sh: Use shell operators && and || instead of
5611 -a and -o.
5612
cb02ab24
SM
56132020-04-29 Simon Marchi <simon.marchi@efficios.com>
5614
5615 * gdbarch.sh: Use $(...) instead of `...`.
5616
a6fc5ffc
SM
56172020-04-29 Simon Marchi <simon.marchi@efficios.com>
5618
5619 * gdbarch.sh: Use double quotes around variables.
5620
8d113d13
SM
56212020-04-29 Simon Marchi <simon.marchi@efficios.com>
5622
5623 * gdbarch.sh: Use %s with printf, instead of variables in the
5624 format string.
5625
ed6acedd
TT
56262020-04-29 Tom Tromey <tromey@adacore.com>
5627
5628 PR ada/25875:
5629 * dwarf2/read.c (update_enumeration_type_from_children): Compute
5630 type fields here.
5631 (read_enumeration_type): Call
5632 update_enumeration_type_from_children later. Update comments.
5633 (process_enumeration_scope): Don't create type fields.
5634
b68b1b58
KR
56352020-04-29 Kamil Rytarowski <n54@gmx.com>
5636
5637 * nbsd-tdep.c: Include "xml-syscall.h".
5638 (nbsd_init_abi): Call `set_xml_syscall_file_name'.
5639
f94b2e03
KR
56402020-04-29 Kamil Rytarowski <n54@gmx.com>
5641
5642 * nbsd-nat.c: Include "sys/wait.h".
5643 (nbsd_resume, nbsd_nat_target::resume, nbsd_wait)
5644 (nbsd_nat_target::wait, nbsd_nat_target::insert_exec_catchpoint)
5645 (nbsd_nat_target::remove_exec_catchpoint)
5646 (nbsd_nat_target::set_syscall_catchpoint): Add.
5647 * nbsd-nat.h (nbsd_nat_target::resume, nbsd_nat_target::wait)
5648 (nbsd_nat_target::insert_exec_catchpoint)
5649 (nbsd_nat_target::remove_exec_catchpoint)
5650 (nbsd_nat_target::set_syscall_catchpoint): Add.
5651 * nbsd-tdep.c (nbsd_get_syscall_number): Add.
5652 (nbsd_init_abi): Call `set_gdbarch_get_syscall_number' and pass
5653 `nbsd_get_syscall_number'.
5654
fc49bc72
TT
56552020-04-29 Tom Tromey <tom@tromey.com>
5656
5657 * stack.c (print_block_frame_labels): Remove.
5658
d642b692
HD
56592020-04-29 Hannes Domani <ssbssa@yahoo.de>
5660
5661 PR gdb/17320
5662 * ada-valprint.c (val_print_packed_array_elements): Move array
5663 end bracket to new line.
5664 (ada_val_print_string): Remove extra spaces before first array
5665 element.
5666 * c-valprint.c (c_value_print_array): Likewise.
5667 * m2-valprint.c (m2_print_array_contents): Likewise.
5668 (m2_value_print_inner): Likewise.
5669 * p-valprint.c (pascal_value_print_inner): Likewise.
5670 * valprint.c (generic_val_print_array): Likewise.
5671 (value_print_array_elements): Move first array element and array
5672 end bracket to new line.
5673
ea90f227
TV
56742020-04-29 Tom de Vries <tdevries@suse.de>
5675
5676 PR symtab/25889
5677 * linespec.c (find_method): Fix ix calculation.
5678
4498ef4f
KR
56792020-04-28 Kamil Rytarowski <n54@gmx.com>
5680
5681 * syscalls/update-netbsd.sh: New file.
5682 * syscalls/netbsd.xml: Regenerate.
5683 * data-directory/Makefile.in: Register `netbsd.xml' in
5684 `SYSCALLS_FILES'.
5685
a55e30b5
SM
56862020-04-28 Simon Marchi <simon.marchi@efficios.com>
5687
5688 * syscalls/update-freebsd.sh: Add double quotes.
5689
2b2fbab8
TT
56902020-04-28 Tom Tromey <tom@tromey.com>
5691
5692 * NEWS: Update.
5693 * python/py-cmd.c (gdbpy_initialize_commands): Add COMMAND_TUI.
5694 (cmdpy_init): Allow class_tui.
5695
a65189c9
TV
56962020-04-28 Mark Williams <mark@myosotissp.com>
5697
5698 PR gdb/24480
5699 * dwarf2read.c: Add missing assingments to list_in_scope when
5700 start_symtab was already called.
5701
1b95cdb7
SM
57022020-04-28 Simon Marchi <simon.marchi@efficios.com>
5703
5704 PR gdb/25881
5705 * dwarf2/read.c (offset_map_type): Use
5706 gdb:hash_enum<sect_offset> as hash function.
5707
15cd93d0
TV
57082020-04-28 Tom de Vries <tdevries@suse.de>
5709
5710 * dwarf2/read.c (process_structure_scope): Add symbol for struct decl
5711 with DW_AT_signature.
5712
1eb39914
SM
57132020-04-27 Simon Marchi <simon.marchi@efficios.com>
5714
5715 * configure.ac: Remove check for fs_base/gs_base in
5716 user_regs_struct.
5717 * configure: Re-generate.
5718 * config.in: Re-generate.
5719 * amd64-nat.c (amd64_native_gregset_reg_offset): Adjust.
5720 * amd64-linux-nat.c (amd64_linux_nat_target::fetch_registers,
5721 amd64_linux_nat_target::store_registers, ps_get_thread_area, ): Adjust.
5722
991a3e2e
LM
57232020-04-27 Luis Machado <luis.machado@linaro.org>
5724
5725 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first): Handle
5726 problematic inline frame unwinding situation.
5727 * frame.c (frame_id_computed_p): New function.
5728 * frame.h (frame_id_computed_p): New prototype.
5729
361ba0e8
TT
57302020-04-26 Tom Tromey <tom@tromey.com>
5731
5732 * command.h (enum command_class) <class_pseudo>: Remove.
5733
bc3609fd
PW
57342020-04-26 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5735
5736 * cli/cli-decode.c (lookup_cmd_composition): Fix comments
5737 and whitespace.
5738
b9771db7
KR
57392020-04-25 Kamil Rytarowski <n54@gmx.com>
5740
ec16513e
SM
5741 * inf-ptrace.c (inf_ptrace_target::wait): Remove
5742 `PT_GET_PROCESS_STATE' block.
b9771db7 5743
7151c1af
TT
57442020-04-24 Tom Tromey <tom@tromey.com>
5745
5746 * symtab.h (symbol_get_demangled_name): Don't declare.
5747 * symtab.c (symbol_get_demangled_name): Remove.
5748 (general_symbol_info::natural_name)
5749 (general_symbol_info::demangled_name): Update.
5750
906bb4c5
TT
57512020-04-24 Tom Tromey <tom@tromey.com>
5752
5753 PR rust/25025:
5754 * dwarf2/read.c (dwarf2_physname): Do not demangle for Rust.
5755
bcfe6157
TT
57562020-04-24 Tom Tromey <tom@tromey.com>
5757
5758 PR symtab/12707:
5759 * dwarf2/read.c (add_partial_symbol): Use the linkage name if it
5760 exists.
5761 (new_symbol): Likewise.
5762 * compile/compile-object-load.c (get_out_value_type): Use
5763 symbol_matches_search_name.
5764
f049a313
TT
57652020-04-24 Tom Tromey <tom@tromey.com>
5766
5767 * dwarf2/read.c (add_partial_symbol): Do not call
5768 compute_and_set_names.
5769
76e288d1
TT
57702020-04-24 Tom Tromey <tom@tromey.com>
5771
5772 * dwarf2/read.c (add_partial_symbol): Use new add_psymbol_to_list
5773 overload.
5774
2467f4f6
TT
57752020-04-24 Tom Tromey <tom@tromey.com>
5776
5777 * psymtab.c (add_psymbol_to_bcache): Simplify calling convention.
5778 (add_psymbol_to_list): New overload. Make old overload call new
5779 one.
5780 * psympriv.h (add_psymbol_to_list): New overload.
5781
e61108c9
TT
57822020-04-24 Tom Tromey <tom@tromey.com>
5783
5784 * dwarf2/read.c (partial_die_info::read) <case
5785 DW_AT_linkage_name>: Use value_as_string.
5786 (dwarf2_string_attr): Use value_as_string.
5787 * dwarf2/attribute.h (struct attribute) <value_as_string>: Declare
5788 method.
5789 * dwarf2/attribute.c (attribute::value_as_string): New method.
5790
8c87a452
TT
57912020-04-24 Tom Tromey <tom@tromey.com>
5792
5793 * symtab.c (general_symbol_info::natural_name)
5794 (general_symbol_info::demangled_name): Check for language_rust.
5795
787de330
TT
57962020-04-24 Tom Tromey <tom@tromey.com>
5797
5798 * dwarf2/read.c (dw2_linkage_name): Move Rust "{" hack here...
5799 (dwarf2_physname): ... from here.
5800 (partial_die_info::read): Add Rust "{" hack.
5801
ff985671
TT
58022020-04-24 Tom Tromey <tom@tromey.com>
5803
5804 * symtab.h (struct general_symbol_info) <set_demangled_name>: New
5805 method.
5806 (symbol_set_demangled_name): Don't declare.
5807 * symtab.c (general_symbol_info::set_demangled_name): Rename from
5808 symbol_set_demangled_name.
5809 (general_symbol_info::set_language)
5810 (general_symbol_info::compute_and_set_names): Update.
5811 * minsyms.c (minimal_symbol_reader::install): Update.
5812 * dwarf2/read.c (new_symbol): Update.
5813
1acda803
TT
58142020-04-24 Tom Tromey <tromey@adacore.com>
5815
5816 PR python/23662:
5817 * python/py-type.c (convert_field): Handle
5818 FIELD_LOC_KIND_DWARF_BLOCK.
5819 (typy_get_sizeof): Handle TYPE_HAS_DYNAMIC_LENGTH.
5820 (typy_get_dynamic): Nw function.
5821 (type_object_getset): Add "dynamic".
5822 * NEWS: Add entry.
5823
d656f129
TT
58242020-04-24 Tom Tromey <tromey@adacore.com>
5825
5826 * ada-typeprint.c (print_choices, print_variant_part)
5827 (print_record_field_types_dynamic): New functions.
5828 (print_record_field_types): Use print_record_field_types_dynamic.
5829
7d79de9a
TT
58302020-04-24 Tom Tromey <tromey@adacore.com>
5831
5832 * dwarf2/read.c (handle_data_member_location): New overload.
5833 (dwarf2_add_field): Use it.
5834 (decode_locdesc): Add "computed" parameter. Update comment.
5835 * gdbtypes.c (is_dynamic_type_internal): Also look for
5836 FIELD_LOC_KIND_DWARF_BLOCK.
5837 (resolve_dynamic_struct): Handle FIELD_LOC_KIND_DWARF_BLOCK.
5838 * gdbtypes.c (is_dynamic_type_internal): Add special case for C++
5839 virtual base classes.
5840 * gnu-v3-abi.c (gnuv3_baseclass_offset): Handle
5841 FIELD_LOC_KIND_DWARF_BLOCK.
5842
f8e89861
TT
58432020-04-24 Tom Tromey <tromey@adacore.com>
5844
5845 * dwarf2/read.c (read_structure_type): Handle dynamic length.
5846 * gdbtypes.c (is_dynamic_type_internal): Check
5847 TYPE_HAS_DYNAMIC_LENGTH.
5848 (resolve_dynamic_type_internal): Use TYPE_DYNAMIC_LENGTH.
5849 * gdbtypes.h (TYPE_HAS_DYNAMIC_LENGTH, TYPE_DYNAMIC_LENGTH):
5850 New macros.
5851 (enum dynamic_prop_node_kind) <DYN_PROP_BYTE_SIZE>: New
5852 constant.
5853
9c6a1327
TT
58542020-04-24 Tom Tromey <tromey@adacore.com>
5855
5856 * dwarf2/read.c (struct variant_field): Rewrite.
5857 (struct variant_part_builder): New.
5858 (struct nextfield): Remove "variant" field. Add "offset".
5859 (struct field_info): Add "current_variant_part" and
5860 "variant_parts".
5861 (alloc_discriminant_info): Remove.
5862 (alloc_rust_variant): New function.
5863 (quirk_rust_enum): Update.
5864 (dwarf2_add_field): Set "offset" member. Don't handle
5865 DW_TAG_variant_part.
5866 (offset_map_type): New typedef.
5867 (convert_variant_range, create_one_variant)
5868 (create_one_variant_part, create_variant_parts)
5869 (add_variant_property): New functions.
5870 (dwarf2_attach_fields_to_type): Call add_variant_property.
5871 (read_structure_type): Don't handle DW_TAG_variant_part.
5872 (handle_variant_part, handle_variant): New functions.
5873 (handle_struct_member_die): Use them.
5874 (process_structure_scope): Don't handle variant parts.
5875 * gdbtypes.h (TYPE_FLAG_DISCRIMINATED_UNION): Remove.
5876 (struct discriminant_info): Remove.
5877 (enum dynamic_prop_node_kind) <DYN_PROP_DISCRIMINATED>: Remove.
5878 (struct main_type) <flag_discriminated_union>: Remove.
5879 * rust-lang.c (rust_enum_p, rust_empty_enum_p): Rewrite.
5880 (rust_enum_variant): Return int. Remove "contents". Rewrite.
5881 (rust_print_enum, rust_print_struct_def, rust_evaluate_subexp):
5882 Update.
5883 * valops.c (value_union_variant): Remove.
5884 * value.h (value_union_variant): Don't declare.
5885
b249d2c2
TT
58862020-04-24 Tom Tromey <tromey@adacore.com>
5887
5888 * ada-lang.c (ada_discrete_type_high_bound, ada_discrete_type_low)
5889 (ada_value_primitive_packed_val): Update.
5890 * ada-valprint.c (ada_value_print_1): Update.
5891 * dwarf2/loc.c (evaluate_for_locexpr_baton): New struct.
5892 (dwarf2_locexpr_baton_eval): Take a property_addr_info rather than
5893 just an address. Use evaluate_for_locexpr_baton.
5894 (dwarf2_evaluate_property): Update.
5895 * dwarf2/loc.h (struct property_addr_info) <valaddr>: Now an
5896 array_view.
5897 * findvar.c (default_read_var_value): Update.
5898 * gdbtypes.c (compute_variant_fields_inner)
5899 (resolve_dynamic_type_internal): Update.
5900 (resolve_dynamic_type): Change type of valaddr parameter.
5901 * gdbtypes.h (resolve_dynamic_type): Update.
5902 * valarith.c (value_subscripted_rvalue): Update.
5903 * value.c (value_from_contents_and_address): Update.
5904
61122aa9
TT
59052020-04-24 Tom Tromey <tromey@adacore.com>
5906
5907 * dwarf2/loc.c (dwarf2_locexpr_baton_eval): Add
5908 "push_initial_value" parameter.
5909 (dwarf2_evaluate_property): Likewise.
5910 * dwarf2/loc.h (dwarf2_evaluate_property): Update.
5911
ef83a141
TT
59122020-04-24 Tom Tromey <tromey@adacore.com>
5913
5914 * gdbtypes.c (is_dynamic_type_internal): Check for variant parts.
5915 (variant::matches, compute_variant_fields_recurse)
5916 (compute_variant_fields_inner, compute_variant_fields): New
5917 functions.
5918 (resolve_dynamic_struct): Check for DYN_PROP_VARIANT_PARTS.
5919 Use resolved_type after type is made.
5920 (operator==): Add new cases.
5921 * gdbtypes.h (TYPE_HAS_VARIANT_PARTS): New macro.
5922 (struct discriminant_range, struct variant, struct variant_part):
5923 New.
5924 (union dynamic_prop_data) <variant_parts, original_type>: New
5925 members.
5926 (enum dynamic_prop_node_kind) <DYN_PROP_VARIANT_PARTS>: New constant.
5927 (enum dynamic_prop_kind) <PROP_TYPE, PROP_VARIANT_PARTS>: New
5928 constants.
5929 * value.c (unpack_bits_as_long): Now public.
5930 * value.h (unpack_bits_as_long): Declare.
5931
675127ec
TT
59322020-04-24 Tom Tromey <tromey@adacore.com>
5933
5934 * rs6000-tdep.c (struct ppc_variant): Rename from "variant".
5935 (variants, find_variant_by_arch, rs6000_gdbarch_init): Update.
5936
9852ceef
HD
59372020-04-24 Hannes Domani <ssbssa@yahoo.de>
5938
5939 * windows-tdep.c (exception_values): Add WOW64 exception numbers.
5940
7632c6ce
KR
59412020-04-24 Kamil Rytarowski <n54@gmx.com>
5942
5943 * inf-ptrace.h (follow_fork, insert_fork_catchpoint)
5944 (remove_fork_catchpoint, post_startup_inferior)
5945 (post_attach): Move...
5946 * obsd-nat.h (follow_fork, insert_fork_catchpoint)
5947 (remove_fork_catchpoint, post_startup_inferior)
5948 (post_attach): ...here.
5949 * inf-ptrace.c (follow_fork, insert_fork_catchpoint)
5950 (remove_fork_catchpoint, post_startup_inferior)
5951 (post_attach): Move...
5952 * obsd-nat.c (follow_fork, insert_fork_catchpoint)
5953 (remove_fork_catchpoint, post_startup_inferior)
5954 (post_attach): ...here.
5955
7be2bb4f
TT
59562020-04-24 Tom Tromey <tromey@adacore.com>
5957
5958 * nat/windows-nat.h (struct windows_thread_info)
5959 <pc_adjusted>: New member.
5960 * windows-nat.c (windows_fetch_one_register): Check
5961 pc_adjusted.
5962 (windows_nat_target::get_windows_debug_event)
5963 (windows_nat_target::wait): Set pc_adjusted.
5964
f80cb3b4
TV
59652020-04-24 Tom de Vries <tdevries@suse.de>
5966
5967 * contrib/cc-with-tweaks.sh: Remove <exec>.gdb-index file handling.
5968 Run gdb-add-index inside temp dir.
5969
29514b87
TT
59702020-04-23 Tom Tromey <tromey@adacore.com>
5971
5972 * windows-tdep.c (is_linked_with_cygwin_dll): Always update "iter"
5973 in loop.
5974
5939967b
LM
59752020-04-23 Luis Machado <luis.machado@linaro.org>
5976
5977 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first): Use
5978 get_frame_register instead of gdbarch_unwind_pc.
5979
70bc38f5
TV
59802020-04-23 Tom de Vries <tdevries@suse.de>
5981
5982 * symtab.c (lookup_global_symbol): Prefer def over decl.
5983
de82891c
TV
59842020-04-23 Tom de Vries <tdevries@suse.de>
5985
5986 PR symtab/25807
5987 * block.c (best_symbol, better_symbol): Promote to external.
5988 * block.h (best_symbol, better_symbol): Declare.
5989 * symtab.c (lookup_symbol_in_objfile_symtabs): Prefer def over
5990 decl.
5991
ecc6c606
TT
59922020-04-23 Tom Tromey <tromey@adacore.com>
5993
5994 PR ada/25837:
5995 * dwarf2/read.c (dw2_expand_symtabs_matching_symbol): Store a
5996 "const char *", not a "const std::string &".
5997 <name_and_matcher::operator==>: Update.
5998 * unittests/lookup_name_info-selftests.c: Change type of
5999 "result".
6000
740480b8
TT
60012020-04-23 Tom Tromey <tom@tromey.com>
6002
6003 * inferior.h (iterate_over_inferiors): Don't declare.
6004 * inferior.c (iterate_over_inferiors): Remove.
6005 * darwin-nat.c (find_inferior_task_it, find_inferior_pid_it):
6006 Remove.
6007 (darwin_find_inferior_by_task, darwin_find_inferior_by_pid): Don't
6008 use iterate_over_inferiors.
6009 (darwin_resume_inferior_it)
6010 (struct resume_inferior_threads_param)
6011 (darwin_resume_inferior_threads_it): Remove.
6012 (darwin_nat_target::resume): Don't use iterate_over_inferiors.
6013
ae3ab1f0
TV
60142020-04-23 Tom de Vries <tdevries@suse.de>
6015
6016 * blockframe.c (find_pc_partial_function): Use
6017 find_pc_sect_compunit_symtab rather than
6018 objfile->sf->qf->find_pc_sect_compunit_symtab.
6019
317d2668
TV
60202020-04-22 Tom de Vries <tdevries@suse.de>
6021
6022 PR symtab/25764
6023 * dwarf2/read.c (scan_partial_symbols): Allow external variable decls
6024 in psymtabs.
6025
eea9e357
TV
60262020-04-22 Tom de Vries <tdevries@suse.de>
6027
6028 PR symtab/25801
6029 * psymtab.c (psym_map_symtabs_matching_filename): Don't skip shared
6030 symtabs.
6031
3d5afab3
TV
60322020-04-22 Tom de Vries <tdevries@suse.de>
6033
6034 PR symtab/25700
6035 * dwarf2/read.c (dwarf2_build_psymtabs_hard): Don't create psymtab for
6036 CU if already created.
6037
d43b7a2d
TBA
60382020-04-21 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
6039
6040 * infrun.c (displaced_step_fixup): Switch to the event_thread
6041 before calling displaced_step_restore, not after.
6042
d89edf9b
MM
60432020-04-21 Markus Metzger <markus.t.metzger@intel.com>
6044
6045 * record-btrace.c (record_btrace_enable_warn): Ignore thread if
6046 its inferior is not recorded by us.
6047 (record_btrace_target_open): Replace call to
6048 all_non_exited_threads () with call to current_inferior
6049 ()->non_exited_threads ().
6050 (record_btrace_target::stop_recording): Likewise.
6051 (record_btrace_target::close): Likewise.
6052 (record_btrace_target::wait): Likewise.
6053 (record_btrace_target::record_stop_replaying): Likewise.
6054
5897fd49
MM
60552020-04-21 Markus Metzger <markus.t.metzger@intel.com>
6056
6057 * btrace.c (btrace_enable): Throw an error on double enables and
6058 when enabling recording fails.
6059 (btrace_disable): Throw an error if the thread is not recorded.
6060
1a476b6d
MM
60612020-04-21 Markus Metzger <markus.t.metzger@intel.com>
6062
6063 * record-btrace.c (record_btrace_target::fetch_registers): Forward
6064 request if we do not have a thread_info.
6065
4778a5f8
TV
60662020-04-21 Tom de Vries <tdevries@suse.de>
6067
6068 PR gdb/25471
6069 * thread.c
6070 (scoped_restore_current_thread::scoped_restore_current_thread): Catch
6071 exception in get_frame_id.
6072
0fa7617d
TT
60732020-04-20 Tom Tromey <tromey@adacore.com>
6074
6075 * python/python.c (struct gdbpy_event): Mark move constructor as
6076 noexcept.
6077 * python/py-tui.c (class gdbpy_tui_window_maker): Mark move
6078 constructor as noexcept.
6079 * completer.h (struct completion_result): Mark move constructor as
6080 noexcept.
6081 * completer.c (completion_result::completion_result): Use
6082 initialization style. Don't call reset_match_list.
6083
ad23bda0
MS
60842020-04-20 Mihails Strasuns <mihails.strasuns@intel.com>
6085
6086 * MAINTAINERS (Write After Approval): Add myself.
6087
45e1f031
TT
60882020-04-18 Tom Tromey <tom@tromey.com>
6089
6090 * windows-tdep.c (init_w32_command_list)
6091 (w32_prefix_command_valid): Restore.
6092 (_initialize_windows_tdep): Call init_w32_command_list.
6093
08feed99
TT
60942020-04-18 Tom Tromey <tom@tromey.com>
6095
6096 * xcoffread.c (enter_line_range, scan_xcoff_symtab): Update.
6097 * value.c (value_fn_field): Update.
6098 * valops.c (find_function_in_inferior)
6099 (value_allocate_space_in_inferior): Update.
6100 * tui/tui-winsource.c (tui_update_source_windows_with_line):
6101 Update.
6102 * tui/tui-source.c (tui_source_window::set_contents): Update.
6103 * symtab.c (lookup_global_or_static_symbol)
6104 (find_function_start_sal_1, skip_prologue_sal)
6105 (print_msymbol_info, find_gnu_ifunc, symbol_arch): Update.
6106 * symmisc.c (dump_msymbols, dump_symtab_1)
6107 (maintenance_print_one_line_table): Update.
6108 * symfile.c (init_entry_point_info, section_is_mapped)
6109 (list_overlays_command, simple_read_overlay_table)
6110 (simple_overlay_update_1): Update.
6111 * stap-probe.c (handle_stap_probe): Update.
6112 * stabsread.c (dbx_init_float_type, define_symbol)
6113 (read_one_struct_field, read_enum_type, read_range_type): Update.
6114 * source.c (info_line_command): Update.
6115 * python/python.c (gdbpy_source_objfile_script)
6116 (gdbpy_execute_objfile_script): Update.
6117 * python/py-type.c (save_objfile_types): Update.
6118 * python/py-objfile.c (py_free_objfile): Update.
6119 * python/py-inferior.c (python_new_objfile): Update.
6120 * psymtab.c (psym_find_pc_sect_compunit_symtab, dump_psymtab)
6121 (dump_psymtab_addrmap_1, maintenance_info_psymtabs)
6122 (maintenance_check_psymtabs): Update.
6123 * printcmd.c (info_address_command): Update.
6124 * objfiles.h (struct objfile) <arch>: New method, from
6125 get_objfile_arch.
6126 (get_objfile_arch): Don't declare.
6127 * objfiles.c (get_objfile_arch): Remove.
6128 (filter_overlapping_sections): Update.
6129 * minsyms.c (msymbol_is_function): Update.
6130 * mi/mi-symbol-cmds.c (mi_cmd_symbol_list_lines)
6131 (output_nondebug_symbol): Update.
6132 * mdebugread.c (parse_symbol, basic_type, parse_partial_symbols)
6133 (mdebug_expand_psymtab): Update.
6134 * machoread.c (macho_add_oso_symfile): Update.
6135 * linux-tdep.c (linux_infcall_mmap, linux_infcall_munmap):
6136 Update.
6137 * linux-fork.c (checkpoint_command): Update.
6138 * linespec.c (convert_linespec_to_sals): Update.
6139 * jit.c (finalize_symtab): Update.
6140 * infrun.c (insert_exception_resume_from_probe): Update.
6141 * ia64-tdep.c (ia64_find_unwind_table): Update.
6142 * hppa-tdep.c (internalize_unwinds): Update.
6143 * gdbtypes.c (get_type_arch, init_float_type, objfile_type):
6144 Update.
6145 * gcore.c (call_target_sbrk): Update.
6146 * elfread.c (record_minimal_symbol, elf_symtab_read)
6147 (elf_rel_plt_read, elf_gnu_ifunc_record_cache)
6148 (elf_gnu_ifunc_resolve_by_got): Update.
6149 * dwarf2/read.c (create_addrmap_from_index)
6150 (create_addrmap_from_aranges, dw2_find_pc_sect_compunit_symtab)
6151 (read_debug_names_from_section)
6152 (process_psymtab_comp_unit_reader, add_partial_symbol)
6153 (add_partial_subprogram, process_full_comp_unit)
6154 (read_file_scope, read_func_scope, read_lexical_block_scope)
6155 (read_call_site_scope, dwarf2_ranges_read)
6156 (dwarf2_record_block_ranges, dwarf2_add_field)
6157 (mark_common_block_symbol_computed, read_tag_pointer_type)
6158 (read_tag_string_type, dwarf2_init_float_type)
6159 (dwarf2_init_complex_target_type, read_base_type)
6160 (partial_die_info::read, partial_die_info::read)
6161 (read_attribute_value, dwarf_decode_lines_1, new_symbol)
6162 (dwarf2_fetch_die_loc_sect_off): Update.
6163 * dwarf2/loc.c (dwarf2_find_location_expression)
6164 (class dwarf_evaluate_loc_desc, rw_pieced_value)
6165 (dwarf2_evaluate_loc_desc_full, dwarf2_locexpr_baton_eval)
6166 (dwarf2_loc_desc_get_symbol_read_needs)
6167 (locexpr_describe_location_piece, locexpr_describe_location_1)
6168 (loclist_describe_location): Update.
6169 * dwarf2/index-write.c (write_debug_names): Update.
6170 * dwarf2/frame.c (dwarf2_build_frame_info): Update.
6171 * dtrace-probe.c (dtrace_process_dof): Update.
6172 * dbxread.c (read_dbx_symtab, dbx_end_psymtab)
6173 (process_one_symbol): Update.
6174 * ctfread.c (ctf_init_float_type, read_base_type): Update.
6175 * coffread.c (coff_symtab_read, enter_linenos, decode_base_type)
6176 (coff_read_enum_type): Update.
6177 * cli/cli-cmds.c (edit_command, list_command): Update.
6178 * buildsym.c (buildsym_compunit::finish_block_internal): Update.
6179 * breakpoint.c (create_overlay_event_breakpoint)
6180 (create_longjmp_master_breakpoint)
6181 (create_std_terminate_master_breakpoint)
6182 (create_exception_master_breakpoint, get_sal_arch): Update.
6183 * block.c (block_gdbarch): Update.
6184 * annotate.c (annotate_source_line): Update.
6185
0743fc83
TT
61862020-04-17 Tom Tromey <tromey@adacore.com>
6187
6188 * auto-load.c (show_auto_load_cmd): Remove.
6189 (auto_load_show_cmdlist_get): Use add_show_prefix_cmd.
6190 * arc-tdep.c (_initialize_arc_tdep): Use add_show_prefix_cmd.
6191 (maintenance_print_arc_command): Remove.
6192 * tui/tui-win.c (tui_command): Remove.
6193 (tui_get_cmd_list): Use add_basic_prefix_cmd.
6194 * tui/tui-layout.c (tui_layout_command): Remove.
6195 (_initialize_tui_layout): Use add_basic_prefix_cmd.
6196 * python/python.c (user_set_python, user_show_python): Remove.
6197 (_initialize_python): Use add_basic_prefix_cmd,
6198 add_show_prefix_cmd.
6199 * guile/guile.c (set_guile_command, show_guile_command): Remove.
6200 (install_gdb_commands): Use add_basic_prefix_cmd,
6201 add_show_prefix_cmd.
6202 (info_guile_command): Remove.
6203 * dwarf2/read.c (set_dwarf_cmd, show_dwarf_cmd): Remove.
6204 (_initialize_dwarf2_read): Use add_basic_prefix_cmd,
6205 add_show_prefix_cmd.
6206 * cli/cli-style.h (class cli_style_option) <add_setshow_commands>:
6207 Remove do_set and do_show parameters.
6208 * cli/cli-style.c (set_style, show_style): Remove.
6209 (_initialize_cli_style): Use add_basic_prefix_cmd,
6210 add_show_prefix_cmd.
6211 (cli_style_option::add_setshow_commands): Remove do_set and
6212 do_show parameters.
6213 (cli_style_option::add_setshow_commands): Use
6214 add_basic_prefix_cmd, add_show_prefix_cmd.
6215 (STYLE_ADD_SETSHOW_COMMANDS): Remove macro.
6216 (set_style_name): Remove.
6217 * cli/cli-dump.c (dump_command, append_command): Remove.
6218 (srec_dump_command, ihex_dump_command, verilog_dump_command)
6219 (tekhex_dump_command, binary_dump_command)
6220 (binary_append_command): Remove.
6221 (_initialize_cli_dump): Use add_basic_prefix_cmd.
6222 * windows-tdep.c (w32_prefix_command_valid): Remove global.
6223 (init_w32_command_list): Remove; move into ...
6224 (_initialize_windows_tdep): ... here. Use add_basic_prefix_cmd.
6225 * valprint.c (set_print, show_print, set_print_raw)
6226 (show_print_raw): Remove.
6227 (_initialize_valprint): Use add_basic_prefix_cmd,
6228 add_show_prefix_cmd.
6229 * typeprint.c (set_print_type, show_print_type): Remove.
6230 (_initialize_typeprint): Use add_basic_prefix_cmd,
6231 add_show_prefix_cmd.
6232 * record.c (set_record_command, show_record_command): Remove.
6233 (_initialize_record): Use add_basic_prefix_cmd,
6234 add_show_prefix_cmd.
6235 * cli/cli-cmds.c (_initialize_cli_cmds): Use add_basic_prefix_cmd,
6236 add_show_prefix_cmd.
6237 (info_command, show_command, set_debug, show_debug): Remove.
6238 * top.h (set_history, show_history): Don't declare.
6239 * top.c (set_history, show_history): Remove.
6240 * target-descriptions.c (set_tdesc_cmd, show_tdesc_cmd)
6241 (unset_tdesc_cmd): Remove.
6242 (_initialize_target_descriptions): Use add_basic_prefix_cmd,
6243 add_show_prefix_cmd.
6244 * symtab.c (info_module_command): Remove.
6245 (_initialize_symtab): Use add_basic_prefix_cmd.
6246 * symfile.c (overlay_command): Remove.
6247 (_initialize_symfile): Use add_basic_prefix_cmd.
6248 * sparc64-tdep.c (info_adi_command): Remove.
6249 (_initialize_sparc64_adi_tdep): Use add_basic_prefix_cmd.
6250 * sh-tdep.c (show_sh_command, set_sh_command): Remove.
6251 (_initialize_sh_tdep): Use add_basic_prefix_cmd,
6252 add_show_prefix_cmd.
6253 * serial.c (serial_set_cmd, serial_show_cmd): Remove.
6254 (_initialize_serial): Use add_basic_prefix_cmd,
6255 add_show_prefix_cmd.
6256 * ser-tcp.c (set_tcp_cmd, show_tcp_cmd): Remove.
6257 (_initialize_ser_tcp): Use add_basic_prefix_cmd,
6258 add_show_prefix_cmd.
6259 * rs6000-tdep.c (set_powerpc_command, show_powerpc_command)
6260 (_initialize_rs6000_tdep): Use add_basic_prefix_cmd,
6261 add_show_prefix_cmd.
6262 * riscv-tdep.c (show_riscv_command, set_riscv_command)
6263 (show_debug_riscv_command, set_debug_riscv_command): Remove.
6264 (_initialize_riscv_tdep): Use add_basic_prefix_cmd,
6265 add_show_prefix_cmd.
6266 * remote.c (remote_command, set_remote_cmd): Remove.
6267 (_initialize_remote): Use add_basic_prefix_cmd.
6268 * record-full.c (set_record_full_command)
6269 (show_record_full_command): Remove.
6270 (_initialize_record_full): Use add_basic_prefix_cmd,
6271 add_show_prefix_cmd.
6272 * record-btrace.c (cmd_set_record_btrace)
6273 (cmd_show_record_btrace, cmd_set_record_btrace_bts)
6274 (cmd_show_record_btrace_bts, cmd_set_record_btrace_pt)
6275 (cmd_show_record_btrace_pt): Remove.
6276 (_initialize_record_btrace): Use add_basic_prefix_cmd,
6277 add_show_prefix_cmd.
6278 * ravenscar-thread.c (set_ravenscar_command)
6279 (show_ravenscar_command): Remove.
6280 (_initialize_ravenscar): Use add_basic_prefix_cmd,
6281 add_show_prefix_cmd.
6282 * mips-tdep.c (show_mips_command, set_mips_command)
6283 (_initialize_mips_tdep): Use add_basic_prefix_cmd,
6284 add_show_prefix_cmd.
6285 * maint.c (maintenance_command, maintenance_info_command)
6286 (maintenance_check_command, maintenance_print_command)
6287 (maintenance_set_cmd, maintenance_show_cmd): Remove.
6288 (_initialize_maint_cmds): Use add_basic_prefix_cmd,
6289 add_show_prefix_cmd.
6290 (show_per_command_cmd): Remove.
6291 * maint-test-settings.c (maintenance_set_test_settings_cmd):
6292 Remove.
6293 (maintenance_show_test_settings_cmd): Remove.
6294 (_initialize_maint_test_settings): Use add_basic_prefix_cmd,
6295 add_show_prefix_cmd.
6296 * maint-test-options.c (maintenance_test_options_command):
6297 Remove.
6298 (_initialize_maint_test_options): Use add_basic_prefix_cmd.
6299 * macrocmd.c (macro_command): Remove
6300 (_initialize_macrocmd): Use add_basic_prefix_cmd.
6301 * language.c (set_check, show_check): Remove.
6302 (_initialize_language): Use add_basic_prefix_cmd,
6303 add_show_prefix_cmd.
6304 * infcmd.c (unset_command): Remove.
6305 (_initialize_infcmd): Use add_basic_prefix_cmd.
6306 * i386-tdep.c (set_mpx_cmd, show_mpx_cmd): Remove.
6307 (_initialize_i386_tdep): Use add_basic_prefix_cmd,
6308 add_show_prefix_cmd.
6309 * go32-nat.c (go32_info_dos_command): Remove.
6310 (_initialize_go32_nat): Use add_basic_prefix_cmd.
6311 * cli/cli-decode.c (do_prefix_cmd, add_basic_prefix_cmd)
6312 (do_show_prefix_cmd, add_show_prefix_cmd): New functions.
6313 * frame.c (set_backtrace_cmd, show_backtrace_cmd): Remove.
6314 (_initialize_frame): Use add_basic_prefix_cmd,
6315 add_show_prefix_cmd.
6316 * dcache.c (set_dcache_command, show_dcache_command): Remove.
6317 (_initialize_dcache): Use add_basic_prefix_cmd,
6318 add_show_prefix_cmd.
6319 * cp-support.c (maint_cplus_command): Remove.
6320 (_initialize_cp_support): Use add_basic_prefix_cmd.
6321 * btrace.c (maint_btrace_cmd, maint_btrace_set_cmd)
6322 (maint_btrace_show_cmd, maint_btrace_pt_set_cmd)
6323 (maint_btrace_pt_show_cmd, _initialize_btrace): Use
6324 add_basic_prefix_cmd, add_show_prefix_cmd.
6325 * breakpoint.c (save_command): Remove.
6326 (_initialize_breakpoint): Use add_basic_prefix_cmd.
6327 * arm-tdep.c (set_arm_command, show_arm_command): Remove.
6328 (_initialize_arm_tdep): Use add_basic_prefix_cmd,
6329 add_show_prefix_cmd.
6330 * ada-lang.c (maint_set_ada_cmd, maint_show_ada_cmd)
6331 (set_ada_command, show_ada_command): Remove.
6332 (_initialize_ada_language): Use add_basic_prefix_cmd,
6333 add_show_prefix_cmd.
6334 * command.h (add_basic_prefix_cmd, add_show_prefix_cmd): Declare.
6335
3557f442
KR
63362020-04-16 Kamil Rytarowski <n54@gmx.com>
6337
6338 * nbsd-nat.c (inf_ptrace_target::auxv_parse): Remove.
6339 * nbsd-nat.h (inf_ptrace_target::auxv_parse): Likewise.
6340
16197208
SM
63412020-04-16 Simon Marchi <simon.marchi@polymtl.ca>
6342
6343 * windows-tdep.c (is_linked_with_cygwin_dll): Add filename to
6344 warning messages.
6345
00ac85d3
SM
63462020-04-16 Simon Marchi <simon.marchi@polymtl.ca>
6347
6348 * windows-tdep.c (is_linked_with_cygwin_dll): Consider case where
6349 import table is not at beginning of .idata section.
6350
381ce63f
PA
63512020-04-16 Pedro Alves <palves@redhat.com>
6352
6353 * inferior.c (delete_inferior): Use delete operator directly
6354 instead of delete_program_space.
6355 * progspace.c (add_program_space): New, factored out from
6356 program_space::program_space.
6357 (remove_program_space): New, factored out from
6358 delete_program_space.
6359 (program_space::program_space): Remove intro comment. Rewrite.
6360 (program_space::~program_space): Remove intro comment. Call
6361 remove_program_space.
6362 (delete_program_space): Delete.
6363 * progspace.h (program_space::program_space): Make explicit. Move
6364 intro comment here, adjusted.
6365 (program_space::~program_space): Move intro comment here,
6366 adjusted.
6367 (delete_program_space): Remove.
6368
a010605f
TT
63692020-04-16 Tom Tromey <tromey@adacore.com>
6370
6371 * windows-nat.c (windows_nat::handle_access_violation): New
6372 function.
6373 * nat/windows-nat.h (handle_access_violation): Declare.
6374 * nat/windows-nat.c (handle_exception): Move Cygwin code to
6375 windows-nat.c. Call handle_access_violation.
6376
efba5c23
TV
63772020-04-16 Tom de Vries <tdevries@suse.de>
6378
6379 PR symtab/25791
6380 * dwarf2/index-write.c (write_gdbindex): Generate CU table entries for
6381 CUs without psymtab.
6382
97ed802d
KB
63832020-04-16 Kevin Buettner <kevinb@redhat.com>
6384
6385 * python/python.c (do_start_initialization): Don't call
6386 PyEval_InitThreads for Python 3.9 and beyond.
6387
c7d64809
KR
63882020-04-15 Kamil Rytarowski <n54@gmx.com>
6389
6390 * obsd-nat.c (obsd_nat_target::update_thread_list): Pass "this" to
6391 thread functions.
6392 (obsd_nat_target::wait): Likewise.
6393
ce127a96
TT
63942020-04-15 Tom Tromey <tromey@adacore.com>
6395
6396 * windows-nat.c (DEBUG_EXEC, DEBUG_EVENTS, DEBUG_MEM)
6397 (DEBUG_EXCEPT): Use debug_printf.
6398
99f1bc6a
AB
63992020-04-15 Andrew Burgess <andrew.burgess@embecosm.com>
6400
6401 * completer.c (class completion_tracker::completion_hash_entry)
6402 <hash_name>: New member function.
6403 (completion_tracker::discard_completions): New callback to hash a
6404 completion_hash_entry, pass this to htab_create_alloc.
6405
a0e9b532
JT
64062016-01-20 Jon Turney <jon.turney@dronecode.org.uk>
6407
6408 * windows-nat.c (windows_make_so): Warn rather than stopping with
6409 an error if realpath() fails.
6410
06ca5dd4
KR
64112020-04-14 Kamil Rytarowski <n54@gmx.com>
6412
6413 * nbsd-nat.c (nbsd_pid_to_kinfo_proc2): New.
6414 (nbsd_nat_target::info_proc): Add do_status.
6415
194d088f
TV
64162020-04-14 Simon Marchi <simon.marchi@polymtl.ca>
6417 Tom de Vries <tdevries@suse.de>
6418
6419 PR symtab/25718
6420 * psympriv.h (struct partial_symtab::read_symtab)
6421 (struct partial_symtab::expand_psymtab)
6422 (struct partial_symtab::read_dependencies): Update comments.
6423 * dwarf2/read.c (struct dwarf2_include_psymtab::read_symtab): Call
6424 read_symtab for includer.
6425 (struct dwarf2_include_psymtab::expand_psymtab): Assert false.
6426 (struct dwarf2_include_psymtab::readin_p): Call readin_p () for includer.
6427 (struct dwarf2_include_psymtab::m_readin): Remove.
6428 (struct dwarf2_include_psymtab::includer): New member function.
6429 (dwarf2_psymtab::expand_psymtab): Assert !readin.
6430
c1a66c06
TV
64312020-04-14 Tom de Vries <tdevries@suse.de>
6432
6433 PR symtab/25720
6434 * symmisc.c (maintenance_expand_symtabs): Call expand_symtabs_matching
6435 with NULL symbol_matcher and lookup_name.
6436 * psymtab.c (psym_expand_symtabs_matching): Handle NULL symbol_matcher
6437 and lookup_name.
6438 * dwarf2/read.c (dw2_expand_symtabs_matching)
6439 (dw2_debug_names_expand_symtabs_matching): Same.
6440 * symfile.h (struct quick_symbol_functions::expand_symtabs_matching):
6441 Make lookup_name a pointer. Update comment.
6442 * symtab.c (global_symbol_searcher::expand_symtabs): Handle
6443 lookup_name being a pointer.
6444 * symfile.c (expand_symtabs_matching): Same.
6445 * symfile-debug.c (debug_qf_expand_symtabs_matching): Same.
6446 * linespec.c (iterate_over_all_matching_symtabs): Same.
6447
400b5eca
TT
64482020-04-13 Tom Tromey <tom@tromey.com>
6449
6450 * run-on-main-thread.c: Update include.
6451 * unittests/main-thread-selftests.c: Update include.
6452 * tui/tui-win.c: Update include.
6453 * tui/tui-io.c: Update include.
6454 * tui/tui-interp.c: Update include.
6455 * tui/tui-hooks.c: Update include.
6456 * top.h: Update include.
6457 * top.c: Update include.
6458 * ser-base.c: Update include.
6459 * remote.c: Update include.
6460 * remote-notif.c: Update include.
6461 * remote-fileio.c: Update include.
6462 * record-full.c: Update include.
6463 * record-btrace.c: Update include.
6464 * python/python.c: Update include.
6465 * posix-hdep.c: Update include.
6466 * mingw-hdep.c: Update include.
6467 * mi/mi-main.c: Update include.
6468 * mi/mi-interp.c: Update include.
6469 * main.c: Update include.
6470 * linux-nat.c: Update include.
6471 * interps.c: Update include.
6472 * infrun.c: Update include.
6473 * inf-loop.c: Update include.
6474 * event-top.c: Update include.
6475 * event-loop.c: Move to ../gdbsupport/.
6476 * event-loop.h: Move to ../gdbsupport/.
6477 * async-event.h: Update include.
6478 * Makefile.in (COMMON_SFILES, HFILES_NO_SRCDIR): Update.
6479
93b54c8e
TT
64802020-04-13 Tom Tromey <tom@tromey.com>
6481
6482 * tui/tui-win.c: Include async-event.h.
6483 * remote.c: Include async-event.h.
6484 * remote-notif.c: Include async-event.h.
6485 * record-full.c: Include async-event.h.
6486 * record-btrace.c: Include async-event.h.
6487 * infrun.c: Include async-event.h.
6488 * event-top.c: Include async-event.h.
6489 * event-loop.h: Move some declarations to async-event.h.
6490 * event-loop.c: Don't include ser-event.h or top.h. Move some
6491 code to async-event.c.
6492 * async-event.h: New file.
6493 * async-event.c: New file.
6494 * Makefile.in (COMMON_SFILES): Add async-event.c.
6495 (HFILES_NO_SRCDIR): Add async-event.h.
6496
c1cd3163
TT
64972020-04-13 Tom Tromey <tom@tromey.com>
6498
6499 * utils.c (flush_streams): New function.
6500 * event-loop.c (gdb_wait_for_event): Call flush_streams.
6501
29f2bf4f
TT
65022020-04-13 Tom Tromey <tom@tromey.com>
6503
6504 * event-loop.c (handle_file_event): Use warning, not
6505 printf_unfiltered.
6506
98029d02
TT
65072020-04-13 Tom Tromey <tom@tromey.com>
6508
6509 * event-loop.c: Include <chrono>.
6510
06cc9596
TT
65112020-04-13 Tom Tromey <tom@tromey.com>
6512
6513 * gdb_select.h: Move to ../gdbsupport/.
6514 * event-loop.c: Update include path.
6515 * top.c: Update include path.
6516 * ser-base.c: Update include path.
6517 * ui-file.c: Update include path.
6518 * ser-tcp.c: Update include path.
6519 * guile/scm-ports.c: Update include path.
6520 * posix-hdep.c: Update include path.
6521 * ser-unix.c: Update include path.
6522 * gdb_usleep.c: Update include path.
6523 * mingw-hdep.c: Update include path.
6524 * inflow.c: Update include path.
6525 * infrun.c: Update include path.
6526 * event-top.c: Update include path.
6527
8ae8e197
TT
65282020-04-13 Tom Tromey <tom@tromey.com>
6529
6530 * configure: Rebuild.
6531 * configure.ac: Remove checks that are now in GDB_AC_COMMON.
6532
58cf28e8
TT
65332020-04-13 Tom Tromey <tom@tromey.com>
6534
6535 * event-loop.h (start_event_loop): Don't declare.
6536 * event-loop.c (start_event_loop): Move...
6537 * main.c (start_event_loop): ...here. Now static.
6538
b7f999ae
SDJ
65392020-04-13 Sergio Durigan Junior <sergiodj@sergiodj.net>
6540
6541 * MAINTAINERS: Update my email address.
6542
1085dfd4
KR
65432020-04-12 Kamil Rytarowski <n54@gmx.com>
6544
6545 * nbsd-nat.c (nbsd_nat_target::info_proc): Add IP_MINIMAL and
6546 IP_ALL.
6547
49d1d1f5
KR
65482020-04-12 Kamil Rytarowski <n54@gmx.com>
6549
6550 * nbsd-nat.c (nbsd_pid_to_cmdline): Add.
aac66a4c 6551 (nbsd_nat_target::info_proc): Add do_cmdline.
49d1d1f5 6552
b4848d2a
KR
65532020-04-12 Kamil Rytarowski <n54@gmx.com>
6554
6555 * nbsd-nat.c (nbsd_pid_to_cwd): Add.
aac66a4c 6556 (nbsd_nat_target::info_proc): Add do_cwd.
b4848d2a 6557
51c133d5
KR
65582020-04-12 Kamil Rytarowski <n54@gmx.com>
6559
6560 * nbsd-nat.c (nbsd_nat_target::info_proc): Add do_exe.
6561
54b8cbd0
KR
65622020-04-11 Kamil Rytarowski <n54@gmx.com>
6563
6564 * nbsd-nat.c; Include "nbsd-tdep.h" and "gdbarch.h".
6565 * nbsd-nat.c (nbsd_nat_target::find_memory_regions)
6566 (nbsd_nat_target::info_proc): New functions.
6567 * nbsd-nat.c (kinfo_get_vmmap): New function.
6568 * nbsd-nat.c (nbsd_nat_target::info_proc) Use
6569 nbsd_info_proc_mappings_header and nbsd_info_proc_mappings_entry.
6570 * nbsd-tdep.c (nbsd_info_proc_mappings_header)
6571 (nbsd_info_proc_mappings_entry, nbsd_vm_map_entry_flags): New
6572 functions.
6573 * nbsd-tdep.c (KINFO_VME_PROT_READ, KINFO_VME_PROT_WRITE)
6574 (KINFO_VME_PROT_EXEC, KINFO_VME_FLAG_COW)
6575 (KINFO_VME_FLAG_NEEDS_COPY, KINFO_VME_FLAG_NOCOREDUMP)
6576 (KINFO_VME_FLAG_PAGEABLE, KINFO_VME_FLAG_GROWS_UP)
6577 (KINFO_VME_FLAG_GROWS_DOWN): New.
6578
cf83625d
AS
65792020-04-10 Artur Shepilko <nomadbyte@gmail.com>
6580
6581 * utils.c (copy_bitwise): Use unsigned 0 constant as operand of
6582 bit shift.
6583
0c4311ab
TT
65842020-04-10 Tom Tromey <tromey@adacore.com>
6585
6586 * symfile.c (symbol_file_add_separate): Preserve OBJF_MAINLINE.
6587
3e65b3e9
TT
65882020-04-10 Tom Tromey <tromey@adacore.com>
6589
6590 * symtab.c (get_symbol_address, get_msymbol_address): Skip
6591 separate debug files.
6592
13302e95
HD
65932020-04-10 Hannes Domani <ssbssa@yahoo.de>
6594
6595 * nat/windows-nat.c (STATUS_WX86_BREAKPOINT, STATUS_WX86_SINGLE_STEP):
6596 Move to...
6597 * nat/windows-nat.h (STATUS_WX86_BREAKPOINT, STATUS_WX86_SINGLE_STEP):
6598 ... here.
6599 * windows-nat.c (windows_nat_target::get_windows_debug_event):
6600 Check for STATUS_WX86_BREAKPOINT.
6601 (windows_nat_target::wait): Same.
6602
bdfc1e8a
TV
66032020-04-10 Tom de Vries <tdevries@suse.de>
6604
6605 PR cli/25808
6606 * python/lib/gdb/__init__.py: Initialize lexer with stripnl=False.
6607
f4460aec
SM
66082020-04-09 Simon Marchi <simon.marchi@polymtl.ca>
6609
6610 * MAINTAINERS (Global Maintainers): Add Tom de Vries.
6611 (Write After Approval): Remove Tom de Vries.
6612
a25198bb
BE
66132020-04-09 Bernd Edlinger <bernd.edlinger@hotmail.de>
6614
6615 revert partially:
6616 2020-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
6617
aac66a4c
SM
6618 * buildsym.c (record_line): Fix undefined behavior and preserve
6619 lines at eof.
a25198bb 6620
206c98a6
KR
66212020-04-09 Kamil Rytarowski <n54@gmx.com>
6622
6623 * auxv.h (svr4_auxv_parse): New.
6624 * auxv.c (default_auxv_parse): Split into default_auxv_parse
6625 and generic_auxv_parse.
6626 (svr4_auxv_parse): Add.
6627 * obsd-tdep.c: Include "auxv.h".
6628 (obsd_auxv_parse): Remove.
6629 (obsd_init_abi): Remove comment.
6630 (obsd_init_abi): Change set_gdbarch_auxv_parse passed argument
6631 from `obsd_auxv_parse' to `svr4_auxv_parse'.
6632 * nbsd-tdep.c: Include "auxv.h".
6633 (nbsd_init_abi): Call set_gdbarch_auxv_parse.
6634
71fbdbaf
TT
66352020-04-08 Tom Tromey <tromey@adacore.com>
6636
6637 * nat/windows-nat.h (last_wait_event): Don't declare.
6638 (wait_for_debug_event): Update comment.
6639 * nat/windows-nat.c (last_wait_event): Now static.
6640
2c1d95e8
TT
66412020-04-08 Tom Tromey <tromey@adacore.com>
6642
6643 * windows-nat.c (wait_for_debug_event): Move to
6644 nat/windows-nat.c.
6645 * nat/windows-nat.h (wait_for_debug_event): Declare.
6646 * nat/windows-nat.c (wait_for_debug_event): Move from
6647 windows-nat.c. No longer static.
6648
d2977bc4
TT
66492020-04-08 Tom Tromey <tromey@adacore.com>
6650
6651 * windows-nat.c (get_windows_debug_event): Use
6652 fetch_pending_stop.
6653 * nat/windows-nat.h (fetch_pending_stop): Declare.
6654 * nat/windows-nat.c (fetch_pending_stop): New function.
6655
e758e19c
TT
66562020-04-08 Tom Tromey <tromey@adacore.com>
6657
6658 * windows-nat.c (windows_continue): Use matching_pending_stop and
6659 continue_last_debug_event.
6660 * nat/windows-nat.h (matching_pending_stop)
6661 (continue_last_debug_event): Declare.
6662 * nat/windows-nat.c (DEBUG_EVENTS): New define.
6663 (matching_pending_stop, continue_last_debug_event): New
6664 functions.
6665
8d30e395
TT
66662020-04-08 Tom Tromey <tromey@adacore.com>
6667
6668 * windows-nat.c (MS_VC_EXCEPTION): Move to nat/windows-nat.c.
6669 (handle_exception_result): Move to nat/windows-nat.h.
6670 (DEBUG_EXCEPTION_SIMPLE): Remove.
6671 (windows_nat::handle_ms_vc_exception): New function.
6672 (handle_exception): Move to nat/windows-nat.c.
6673 (get_windows_debug_event): Update.
6674 (STATUS_WX86_BREAKPOINT, STATUS_WX86_SINGLE_STEP): Move to
6675 nat/windows-nat.c.
6676 * nat/windows-nat.h (handle_ms_vc_exception): Declare.
6677 (handle_exception_result): Move from windows-nat.c.
6678 (handle_exception): Declare.
6679 * nat/windows-nat.c (MS_VC_EXCEPTION, handle_exception)
6680 (STATUS_WX86_SINGLE_STEP, STATUS_WX86_BREAKPOINT): Move from
6681 windows-nat.c.
6682
29de418d
TT
66832020-04-08 Tom Tromey <tromey@adacore.com>
6684
6685 * windows-nat.c (exception_count, event_count): Remove.
6686 (handle_exception, get_windows_debug_event)
6687 (do_initial_windows_stuff): Update.
6688
a816ba18
TT
66892020-04-08 Tom Tromey <tromey@adacore.com>
6690
6691 * windows-nat.c (windows_nat::handle_load_dll)
6692 (windows_nat::handle_unload_dll): Rename. No longer static.
6693 * nat/windows-nat.h (handle_load_dll, handle_unload_dll):
6694 Declare.
6695
a00caa12
TT
66962020-04-08 Tom Tromey <tromey@adacore.com>
6697
6698 * complaints.h (stop_whining): Declare at top-level.
6699 (complaint): Don't declare stop_whining.
6700
d41b524f
TT
67012020-04-08 Tom Tromey <tromey@adacore.com>
6702
6703 * windows-nat.c (windows_nat::handle_output_debug_string):
6704 Rename. No longer static.
6705 * nat/windows-nat.h (handle_output_debug_string): Declare.
6706
3c76026d
TT
67072020-04-08 Tom Tromey <tromey@adacore.com>
6708
6709 * windows-nat.c (current_process_handle, current_process_id)
6710 (main_thread_id, last_sig, current_event, last_wait_event)
6711 (current_windows_thread, desired_stop_thread_id, pending_stops)
6712 (struct pending_stop, siginfo_er): Move to nat/windows-nat.c.
6713 (display_selectors, fake_create_process)
6714 (get_windows_debug_event): Update.
6715 * nat/windows-nat.h (current_process_handle, current_process_id)
6716 (main_thread_id, last_sig, current_event, last_wait_event)
6717 (current_windows_thread, desired_stop_thread_id, pending_stops)
6718 (struct pending_stop, siginfo_er): Move from windows-nat.c.
6719 * nat/windows-nat.c (current_process_handle, current_process_id)
6720 (main_thread_id, last_sig, current_event, last_wait_event)
6721 (current_windows_thread, desired_stop_thread_id, pending_stops)
6722 (siginfo_er): New globals. Move from windows-nat.c.
6723
9d8679cc
TT
67242020-04-08 Tom Tromey <tromey@adacore.com>
6725
6726 * windows-nat.c (get_image_name): Move to nat/windows-nat.c.
6727 (handle_load_dll): Update.
6728 * nat/windows-nat.c (get_image_name): Move from windows-nat.c.
6729
28688adf
TT
67302020-04-08 Tom Tromey <tromey@adacore.com>
6731
6732 * windows-nat.c (enum thread_disposition_type): Move to
6733 nat/windows-nat.h.
6734 (windows_nat::thread_rec): Rename from thread_rec. No longer
6735 static.
6736 (windows_add_thread, windows_nat_target::fetch_registers)
6737 (windows_nat_target::store_registers, handle_exception)
6738 (windows_nat_target::resume, get_windows_debug_event)
6739 (windows_nat_target::get_tib_address)
6740 (windows_nat_target::thread_name)
6741 (windows_nat_target::thread_alive): Update.
6742 * nat/windows-nat.h (enum thread_disposition_type): Move from
6743 windows-nat.c.
6744 (thread_rec): Declare.
6745
4834dad0
TT
67462020-04-08 Tom Tromey <tromey@adacore.com>
6747
6748 * windows-nat.c: Add "using namespace".
6749 * nat/windows-nat.h: Wrap contents in windows_nat namespace.
6750 * nat/windows-nat.c: Wrap contents in windows_nat namespace.
6751
65bafd5b
TT
67522020-04-08 Tom Tromey <tromey@adacore.com>
6753
6754 * nat/windows-nat.h (struct windows_thread_info): Declare
6755 destructor.
6756 * nat/windows-nat.c (~windows_thread_info): New.
6757
0a4afda3
TT
67582020-04-08 Tom Tromey <tromey@adacore.com>
6759
6760 PR gdb/22992
6761 * windows-nat.c (current_event): Update comment.
6762 (last_wait_event, desired_stop_thread_id): New globals.
6763 (struct pending_stop): New.
6764 (pending_stops): New global.
6765 (windows_nat_target) <stopped_by_sw_breakpoint>
6766 <supports_stopped_by_sw_breakpoint>: New methods.
6767 (windows_fetch_one_register): Add assertions. Adjust PC.
6768 (windows_continue): Handle pending stops. Suspend other threads
6769 when stepping. Use last_wait_event
6770 (wait_for_debug_event): New function.
6771 (get_windows_debug_event): Use wait_for_debug_event. Handle
6772 pending stops. Queue spurious stops.
6773 (windows_nat_target::wait): Set stopped_at_software_breakpoint.
6774 (windows_nat_target::kill): Use wait_for_debug_event.
6775 * nat/windows-nat.h (struct windows_thread_info)
6776 <stopped_at_software_breakpoint>: New field.
6777 * nat/windows-nat.c (windows_thread_info::resume): Clear
6778 stopped_at_software_breakpoint.
6779
8e61ebec
TT
67802020-04-08 Tom Tromey <tromey@adacore.com>
6781
6782 * windows-nat.c (enum thread_disposition_type): New.
6783 (thread_rec): Replace "get_context" parameter with "disposition";
6784 change type.
6785 (windows_add_thread, windows_nat_target::fetch_registers)
6786 (windows_nat_target::store_registers, handle_exception)
6787 (windows_nat_target::resume, get_windows_debug_event)
6788 (windows_nat_target::get_tib_address)
6789 (windows_nat_target::thread_name)
6790 (windows_nat_target::thread_alive): Update.
6791
98a03287
TT
67922020-04-08 Tom Tromey <tromey@adacore.com>
6793
6794 * windows-nat.c (thread_rec): Use windows_thread_info::suspend.
6795 (windows_continue): Use windows_continue::resume.
6796 * nat/windows-nat.h (struct windows_thread_info) <suspend,
6797 resume>: Declare new methods.
6798 * nat/windows-nat.c: New file.
6799 * configure.nat (NATDEPFILES): Add nat/windows-nat.o when needed.
6800
7c7411bc
TT
68012020-04-08 Tom Tromey <tromey@adacore.com>
6802
6803 * windows-nat.c (windows_add_thread, windows_delete_thread)
6804 (windows_nat_target::fetch_registers)
6805 (windows_nat_target::store_registers, fake_create_process)
6806 (windows_nat_target::resume, windows_nat_target::resume)
6807 (get_windows_debug_event, windows_nat_target::wait)
6808 (windows_nat_target::pid_to_str)
6809 (windows_nat_target::get_tib_address)
6810 (windows_nat_target::get_ada_task_ptid)
6811 (windows_nat_target::thread_name)
6812 (windows_nat_target::thread_alive): Use lwp, not tid.
6813
2950fdf7
TT
68142020-04-08 Tom Tromey <tromey@adacore.com>
6815
6816 * windows-nat.c (handle_exception)
6817 (windows_nat_target::thread_name): Update.
6818 * nat/windows-nat.h (windows_thread_info): Remove destructor.
6819 <name>: Now unique_xmalloc_ptr.
6820
62fe396b
TT
68212020-04-08 Tom Tromey <tromey@adacore.com>
6822
6823 * windows-nat.c (thread_rec)
6824 (windows_nat_target::fetch_registers): Update.
6825 * nat/windows-nat.h (struct windows_thread_info) <suspended>:
6826 Update comment.
6827 <debug_registers_changed, reload_context>: Now bool.
6828
e9534bd2
TT
68292020-04-08 Tom Tromey <tromey@adacore.com>
6830
6831 * windows-nat.c (windows_add_thread): Use new.
6832 (windows_init_thread_list, windows_delete_thread): Use delete.
6833 (get_windows_debug_event): Update.
6834 * nat/windows-nat.h (struct windows_thread_info): Add constructor,
6835 destructor, and initializers.
6836
ae1f8880
TT
68372020-04-08 Tom Tromey <tromey@adacore.com>
6838
6839 * windows-nat.c (struct windows_thread_info): Remove.
6840 * nat/windows-nat.h: New file.
6841
55a1e039
TT
68422020-04-08 Tom Tromey <tromey@adacore.com>
6843
6844 * windows-nat.c (struct windows_thread_info) <tid>: Rename from "id".
6845 (thread_rec, windows_add_thread, windows_delete_thread)
6846 (windows_continue): Update.
6847
93366324
TT
68482020-04-08 Tom Tromey <tromey@adacore.com>
6849
6850 * windows-nat.c (struct windows_thread_info): Remove typedef.
6851 (thread_head): Remove.
6852 (thread_list): New global.
6853 (thread_rec, windows_add_thread, windows_init_thread_list)
6854 (windows_delete_thread, windows_continue): Update.
6855
0f2265e2
SM
68562020-04-08 Simon Marchi <simon.marchi@polymtl.ca>
6857
6858 * windows-tdep.h (windows_init_abi): Add comment.
6859 (cygwin_init_abi): New declaration.
6860 * windows-tdep.c: Split signal enumeration in two, one for
6861 Windows and one for Cygwin.
6862 (windows_gdb_signal_to_target): Only deal with signal of the
6863 Windows OS ABI.
6864 (cygwin_gdb_signal_to_target): New function.
6865 (windows_init_abi): Rename to windows_init_abi_common, don't set
6866 gdb_signal_to_target gdbarch method. Add new new function with
6867 this name.
6868 (cygwin_init_abi): New function.
6869 * amd64-windows-tdep.c (amd64_windows_init_abi_common): Add
6870 comment. Don't call windows_init_abi.
6871 (amd64_windows_init_abi): Add comment, call windows_init_abi.
6872 (amd64_cygwin_init_abi): Add comment, call cygwin_init_abi.
6873 * i386-windows-tdep.c (i386_windows_init_abi): Rename to
6874 i386_windows_init_abi_common, don't call windows_init_abi. Add
6875 a new function of this name.
6876 (i386_cygwin_init_abi): New function.
6877 (_initialize_i386_windows_tdep): Bind i386_cygwin_init_abi to
6878 OS ABI Cygwin.
6879
3810f182
SM
68802020-04-08 Simon Marchi <simon.marchi@polymtl.ca>
6881
6882 * dwarf2/read.c (read_gdb_index_from_buffer): Remove objfile
6883 parameter.c.
6884 (dwarf2_read_gdb_index): Update.
6885
063f8e80
KR
68862020-04-07 Kamil Rytarowski <n54@gmx.com>
6887
6888 * nbsd-tdep.c: Include "objfiles.h".
6889 (nbsd_skip_solib_resolver): New.
6890 (nbsd_init_abi): Call set_gdbarch_skip_solib_resolver().
6891
85a9510c 68922020-04-07 Nitika Achra <Nitika.Achra@amd.com>
6893
6894 * dwarf2/loc.c (loclist_describe_location): Call the function decode_debug_loclists_
6895 addresses if DWARF version is 5 or more because DW_LLE_start* or DW_LLE_offset_pair
6896 with DW_LLE_base_addressx are being emitted in DWARFv5.
6897 Add the newly added kind DW_LOC_OFFSET_PAIR also.
6898 The length of location description is an unsigned ULEB integer in DWARFv5 instead of
6899 unsigned integer.
6900
9fc3eaae 69012020-04-07 Nitika Achra <Nitika.Achra@amd.com>
6902
6903 * dwarf2/loc.c (enum debug_loc_kind): Add a new kind DEBUG_LOC_OFFSET_PAIR.
6904 (dwarf2_find_location_expression): Call the function decode_debug_loclists_
6905 addresses if DWARF version is 5 or more. DW_LLE_start* or DW_LLE_offset_pair
6906 with DW_LLE_base_addressx are being emitted in DWARFv5 instead of DW_LLE_GNU*.
6907 Add applicable base address if the entry is DW_LLE_offset_pair from DWO.
6908 (decode_debug_loclists_addresses): Return DEBUG_LOC_OFFSET_PAIR instead of
6909 DEBUG_LOC_START_END in case of DW_LLE_offset_pair.
6910
6911
41144253 69122020-04-07 Nitika Achra <Nitika.Achra@amd.com>
6913
6914 * dwarf2/read.c (cu_debug_loc_section): Added the declaration for the function.
6915 (read_loclist_index): New function definition.
6916 (lookup_loclist_base): New function definition.
6917 (read_loclist_header): New function definition.
6918 (dwarf2_cu): Add loclist_base and loclist_header field.
6919 (dwarf2_locate_dwo_sections): Handle .debug_loclists.dwo section.
6920 (read_full_die_1): Read the value of DW_AT_loclists_base.
6921 (read_attribute_reprocess): Handle DW_FORM_loclistx.
6922 (read_attribute_value): Handle DW_FORM_loclistx.
6923 (skip_one_die): Handle DW_FORM_loclistx.
6924 (loclist_header): New structure declaration.
6925 * dwarf2/attribute.c (form_is_section_offset): Handle DW_FORM_loclistx.
6926
9f4e76a4
SM
69272020-04-07 Simon Marchi <simon.marchi@polymtl.ca>
6928
6929 * dwarf2/read.h (struct dwarf2_psymtab): Remove two-parameters
6930 constructor. Remove `addr` parameter from other constructor and
6931 add `per_cu` parameter.
6932 * dwarf2/read.c (create_partial_symtab): Update.
6933
25c11aca
TV
69342020-04-07 Tom de Vries <tdevries@suse.de>
6935
6936 PR symtab/25796
6937 * dwarf2/read.c (can_have_DW_AT_const_value_p): New function.
6938 (partial_die_info::fixup): Inherit has_const_value.
6939
5707e24b
TV
69402020-04-07 Tom de Vries <tdevries@suse.de>
6941
6942 * psymtab.c (maintenance_check_psymtabs): Skip static LOC_BLOCK
6943 symbols without address.
6944
05f00e22
KR
69452020-04-06 Kamil Rytarowski <n54@gmx.com>
6946
6947 * nbsd-nat.h (struct thread_info): Add forward declaration.
6948 (nbsd_nat_target::thread_alive): Add.
6949 (nbsd_nat_target::thread_name): Likewise.
6950 (nbsd_nat_target::update_thread_list): Likewise.
6951 (update_thread_list::post_attach): Likewise.
6952 (post_attach::pid_to_str): Likewise.
6953 * nbsd-nat.c: Include "gdbthread.h" and "inferior.h".
6954 (nbsd_thread_lister): Add.
6955 (nbsd_nat_target::thread_alive): Likewise.
6956 (nbsd_nat_target::thread_name): Likewise.
6957 (nbsd_add_threads): Likewise.
6958 (update_thread_list::post_attach): Likewise.
6959 (nbsd_nat_target::update_thread_list): Likewise.
6960 (post_attach::pid_to_str): Likewise.
6961
6ee448cc
TT
69622020-04-06 Tom Tromey <tromey@adacore.com>
6963
6964 * ada-valprint.c (print_variant_part): Extract the variant field.
6965 (print_field_values): Use the field as the outer value when
6966 recursing.
6967
dea34e8c
TT
69682020-04-06 Tom Tromey <tromey@adacore.com>
6969
6970 * sh-nbsd-tdep.c: Include nbsd-tdep.h.
6971 * ppc-nbsd-tdep.c: Include nbsd-tdep.h.
6972 * mips-nbsd-tdep.c (mipsnbsd_init_abi): Add missing ";".
6973 * arm-nbsd-tdep.c: Include nbsd-tdep.h.
6974 * hppa-nbsd-tdep.c: Include nbsd-tdep.h.
6975
93689ce9
TT
69762020-04-06 Tom Tromey <tromey@adacore.com>
6977
6978 * dwarf2/read.c (read_base_type) <DW_ATE_complex_float>: Handle
6979 TYPE_CODE_ERROR.
6980
79743962
KR
69812020-04-06 Kamil Rytarowski <n54@gmx.com>
6982
6983 * nbsd-tdep.c: Include "gdbarch.h".
6984 Define enum with NetBSD signal numbers.
6985 (nbsd_gdb_signal_from_target, nbsd_gdb_signal_to_target): New.
6986 * alpha-nbsd-tdep.c (alphanbsd_init_abi): Call nbsd_init_abi().
6987 * amd64-nbsd-tdep.c (amd64nbsd_init_abi): Likewise.
6988 * arm-nbsd-tdep.c (arm_netbsd_elf_init_abi): Likewise.
6989 * hppa-nbsd-tdep.c (hppanbsd_init_abi): Likewise.
6990 * i386-nbsd-tdep.c (i386nbsd_init_abi): Likewise.
6991 * mips-nbsd-tdep.c (nbsd_init_abi): Likewise.
6992 * ppc-nbsd-tdep.c (ppcnbsd_init_abi): Likewise.
6993 * sh-nbsd-tdep.c (shnbsd_init_abi): Likewise.
6994 * sparc-nbsd-tdep.c (sparc32nbsd_init_abi): Likewise.
6995 * sparc64-nbsd-tdep.c (sparc64nbsd_init_abi): Likewise.
6996 * vax-nbsd-tdep.c (vaxnbsd_elf_init_abi): Likewise.
6997
9e7c9a03
HD
69982020-04-03 Hannes Domani <ssbssa@yahoo.de>
6999
7000 PR gdb/25325
7001 * dwarf2/read.c (read_enumeration_type): Fix typed enum attributes.
7002
d9e49b61
TT
70032020-04-03 Tom Tromey <tromey@adacore.com>
7004
7005 * dwarf2/loc.c (disassemble_dwarf_expression) <DW_OP_const_type>:
7006 Read constant block.
7007
e0fc5c3f
SM
70082020-04-02 Simon Marchi <simon.marchi@polymtl.ca>
7009
7010 * gdb_bfd.h: Include gdbsupport/byte-vector.h.
7011 (gdb_bfd_get_full_section_contents): New declaration.
7012 * gdb_bfd.c (gdb_bfd_get_full_section_contents): New function.
7013 * windows-tdep.c (is_linked_with_cygwin_dll): Use
7014 gdb_bfd_get_full_section_contents.
7015
e2ff18a0
SM
70162020-04-02 Simon Marchi <simon.marchi@polymtl.ca>
7017
7018 * exec.c (build_section_table): Replace internal_error with
7019 gdb_assert.
7020 (section_table_xfer_memory_partial): Likewise.
7021 * mdebugread.c (parse_partial_symbols): Likewise.
7022 * psymtab.c (lookup_partial_symbol): Likewise.
7023 * utils.c (wrap_here): Likewise.
7024
0830d301
TT
70252020-04-02 Tom Tromey <tromey@adacore.com>
7026
7027 * f-lang.c (build_fortran_types): Use arch_type to initialize
7028 builtin_complex_s32 in the TYPE_CODE_ERROR case.
7029
e7da7f8f
TT
70302020-04-02 Tom Tromey <tromey@adacore.com>
7031
7032 * dwarf2/read.c (partial_die_info::read): Do not create a vector
7033 of attributes.
7034
c90d28ac
AB
70352020-04-02 Andrew Burgess <andrew.burgess@embecosm.com>
7036 Bernd Edlinger <bernd.edlinger@hotmail.de>
7037 Tom Tromey <tromey@adacore.com>
7038
7039 * buildsym.c (buildsym_compunit::record_line): Remove
7040 deduplication code.
7041
1aa98955
TV
70422020-04-02 Tom de Vries <tdevries@suse.de>
7043
7044 PR ada/24671
7045 * dwarf2/read.c (dw2_map_matching_symbols): Handle -readnow.
7046
d3214198
TV
70472020-04-02 Tom de Vries <tdevries@suse.de>
7048
7049 * dwarf2/read.c (dwarf2_gdb_index_functions,
7050 dwarf2_debug_names_functions): Init lookup_global_symbol_language with
7051 NULL.
7052 * psymtab.c (psym_lookup_global_symbol_language): New function.
7053 (psym_functions): Init psym_lookup_global_symbol_language with
7054 psym_lookup_global_symbol_language.
7055 * symfile-debug.c (debug_sym_quick_functions): Init
7056 lookup_global_symbol_language with NULL.
7057 * symfile.c (set_initial_language): Remove fixme comment.
7058 * symfile.h (struct quick_symbol_functions): Add
7059 lookup_global_symbol_language.
7060 * symtab.c (find_quick_global_symbol_language): New function.
7061 (find_main_name): Use find_quick_global_symbol_language.
7062
2836752f
SM
70632020-04-01 Simon Marchi <simon.marchi@polymtl.ca>
7064
7065 * windows-tdep.c (is_linked_with_cygwin_dll): Fix style.
7066
64dc2d4b
BE
70672020-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
7068
7069 * buildsym.c (record_line): Fix undefined behavior and preserve
7070 lines at eof.
7071
bbe3dc41
BE
70722020-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
7073
7074 * buildsym.c (record_line): Fix the resizing condition.
7075
6b4a335b
TT
70762020-04-01 Tom Tromey <tom@tromey.com>
7077
7078 * value.h (value_literal_complex): Add comment.
7079 * valops.c (value_literal_complex): Refer to value.h.
7080
3638a098
TT
70812020-04-01 Tom Tromey <tom@tromey.com>
7082
7083 * c-exp.y (FLOAT_KEYWORD, COMPLEX): New tokens.
7084 (scalar_type): New rule, from typebase.
7085 (typebase): Use scalar_type. Recognize complex types.
7086 (field_name): Handle FLOAT_KEYWORD.
7087 (ident_tokens): Add _Complex and __complex__.
7088
c34e8714
TT
70892020-04-01 Tom Tromey <tom@tromey.com>
7090
7091 PR exp/25299:
7092 * valarith.c (promotion_type, complex_binop): New functions.
7093 (scalar_binop): Handle complex numbers. Use promotion_type.
7094 (value_pos, value_neg, value_complement): Handle complex numbers.
7095
fa649bb7
TT
70962020-04-01 Tom Tromey <tom@tromey.com>
7097
7098 * c-exp.y (COMPLEX_INT, COMPLEX_FLOAT): New tokens.
7099 (exp) <COMPLEX_INT, COMPLEX_FLOAT>: New rules.
7100 (parse_number): Handle complex numbers.
7101
981c08ce
TT
71022020-04-01 Tom Tromey <tom@tromey.com>
7103
7104 * c-valprint.c (c_decorations): Change complex suffix to "i".
7105
4c99290d
TT
71062020-04-01 Tom Tromey <tom@tromey.com>
7107
7108 * valprint.c (generic_value_print_complex): Use accessors.
7109 * value.h (value_real_part, value_imaginary_part): Declare.
7110 * valops.c (value_real_part, value_imaginary_part): New
7111 functions.
7112 * value.c (creal_internal_fn, cimag_internal_fn): Use accessors.
7113
5b930b45
TT
71142020-04-01 Tom Tromey <tom@tromey.com>
7115
7116 * stabsread.c (rs6000_builtin_type, read_sun_floating_type)
7117 (read_range_type): Update.
7118 * mdebugread.c (basic_type): Update.
7119 * go-lang.c (build_go_types): Use init_complex_type.
7120 * gdbtypes.h (struct main_type) <complex_type>: New member.
7121 (init_complex_type): Update.
7122 (arch_complex_type): Don't declare.
7123 * gdbtypes.c (init_complex_type): Remove "objfile" parameter.
7124 Make name if none given. Use alloc_type_copy. Look for cached
7125 complex type.
7126 (arch_complex_type): Remove.
7127 (gdbtypes_post_init): Use init_complex_type.
7128 * f-lang.c (build_fortran_types): Use init_complex_type.
7129 * dwarf2/read.c (read_base_type): Update.
7130 * d-lang.c (build_d_types): Use init_complex_type.
7131 * ctfread.c (read_base_type): Update.
7132
53cccef1
TBA
71332020-04-01 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
7134
7135 * infrun.c (stop_all_threads): Update assertion, plus when
7136 stopping threads, take into account that we might be trying
7137 to stop an all-stop target.
7138 (stop_waiting): Call 'stop_all_threads' if there exists a
7139 non-stop target.
7140
a0714d30
TBA
71412020-04-01 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
7142
7143 * target.h (exists_non_stop_target): New function declaration.
7144 * target.c (exists_non_stop_target): New function.
7145
60e22c1e
HD
71462020-04-01 Hannes Domani <ssbssa@yahoo.de>
7147
7148 PR gdb/24789
7149 * eval.c (is_integral_or_integral_reference): New function.
7150 (evaluate_subexp_standard): Allow integer references in
7151 pointer arithmetic.
7152
e139a727
TBA
71532020-04-01 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
7154
7155 * remote.c (remote_target::remote_parse_stop_reply): Remove the
7156 check for no ptid in the stop reply when the target is non-stop.
7157
e0802d59
TT
71582020-04-01 Tom Tromey <tromey@adacore.com>
7159
7160 * symtab.h (class lookup_name_info) <lookup_name_info>: Change
7161 "name" parameter to rvalue reference. Initialize m_name_holder.
7162 <lookup_name_info>: New overloads.
7163 <name>: Return gdb::string_view.
7164 <c_str>: New method.
7165 <make_ignore_params>: Update.
7166 <search_name_hash>: Update.
7167 <language_lookup_name>: Return const char *.
7168 <m_name>: Change type.
7169 * symtab.c (demangle_for_lookup_info::demangle_for_lookup_info)
7170 (demangle_for_lookup_info::demangle_for_lookup_info): Update.
7171 (lookup_name_info::match_any): Update.
7172 * psymtab.c (match_partial_symbol, lookup_partial_symbol):
7173 Update.
7174 * minsyms.c (linkage_name_str): Update.
7175 * language.c (default_symbol_name_matcher): Update.
7176 * dwarf2/read.c (mapped_index_base::find_name_components_bounds):
7177 Update.
7178 * ada-lang.c (ada_fold_name): Change parameter to string_view.
7179 (ada_lookup_name_info::ada_lookup_name_info): Update.
7180 (literal_symbol_name_matcher): Update.
7181
8c072cb6
TT
71822020-04-01 Tom Tromey <tromey@adacore.com>
7183
7184 * psymtab.c (psymtab_search_name): Remove function.
7185 (psym_lookup_symbol): Create search name and lookup name here.
7186 (lookup_partial_symbol): Remove "name" parameter; add
7187 lookup_name.
7188 (psym_expand_symtabs_for_function): Update.
7189
6f29a534
TT
71902020-03-31 Joel Jones <joelkevinjones@gmail.com>
7191
7192 PR tui/25597:
7193 * python/py-tui.c: Include gdb_curses.h inside of #ifdef TUI.
7194
af62665e
TT
71952020-03-31 Tom Tromey <tromey@adacore.com>
7196
7197 * dwarf2/abbrev.c (abbrev_table::read): Conditionally call
7198 memcpy.
7199
d1a89da5
NC
72002020-03-30 Nelson Chu <nelson.chu@sifive.com>
7201
7202 * features/riscv/32bit-csr.xml: Regenerated.
7203 * features/riscv/64bit-csr.xml: Regenerated.
7204
d8af9068
TT
72052020-03-30 Tom Tromey <tromey@adacore.com>
7206
7207 * ada-valprint.c (print_variant_part): Update.
7208 * ada-lang.h (ada_which_variant_applies): Update.
7209 * ada-lang.c (ada_which_variant_applies): Remove outer_type and
7210 outer_valaddr parameters; replace with "outer" value parameter.
7211 (to_fixed_variant_branch_type): Update.
7212
227c0bf4
PFC
72132020-03-30 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
7214
7215 * ppc-linux-nat.c: Include <algorithm>, <unordered_map>, and
7216 <list>. Remove inclusion of observable.h.
7217 (PPC_DEBUG_CURRENT_VERSION): Move up define.
7218 (struct arch_lwp_info): New struct.
7219 (class ppc_linux_dreg_interface): New class.
7220 (struct ppc_linux_process_info): New struct.
7221 (struct ppc_linux_nat_target) <low_delete_thread, low_new_fork>
7222 <low_new_clone, low_forget_process, low_prepare_to_resume>
7223 <copy_thread_dreg_state, mark_thread_stale>
7224 <mark_debug_registers_changed, register_hw_breakpoint>
7225 <clear_hw_breakpoint, register_wp, clear_wp>
7226 <can_use_watchpoint_cond_accel, calculate_dvc, check_condition>
7227 <num_memory_accesses, get_trigger_type>
7228 <create_watchpoint_request, hwdebug_point_cmp>
7229 <init_arch_lwp_info, get_arch_lwp_info>
7230 <low_stopped_by_watchpoint, low_stopped_data_address>: Declare as
7231 methods.
7232 <struct ptid_hash>: New inner struct.
7233 <m_dreg_interface, m_process_info, m_installed_hw_bps>: Declare
7234 members.
7235 (saved_dabr_value, hwdebug_info, max_slots_number)
7236 (struct hw_break_tuple, struct thread_points, ppc_threads)
7237 (have_ptrace_hwdebug_interface)
7238 (hwdebug_find_thread_points_by_tid)
7239 (hwdebug_insert_point, hwdebug_remove_point): Remove.
7240 (ppc_linux_nat_target::can_use_hw_breakpoint): Use
7241 m_dreg_interface, remove call to PTRACE_SET_DEBUGREG.
7242 (ppc_linux_nat_target::region_ok_for_hw_watchpoint): Add comment,
7243 use m_dreg_interface.
7244 (hwdebug_point_cmp): Change to...
7245 (ppc_linux_nat_target::hwdebug_point_cmp): ...this method. Use
7246 reference arguments instead of pointers.
7247 (ppc_linux_nat_target::ranged_break_num_registers): Use
7248 m_dreg_interface.
7249 (ppc_linux_nat_target::insert_hw_breakpoint): Add comment, use
7250 m_dreg_interface. Call register_hw_breakpoint.
7251 (ppc_linux_nat_target::remove_hw_breakpoint): Add comment, use
7252 m_dreg_interface. Call clear_hw_breakpoint.
7253 (get_trigger_type): Change to...
7254 (ppc_linux_nat_target::get_trigger_type): ...this method. Add
7255 comment.
7256 (ppc_linux_nat_target::insert_mask_watchpoint): Update comment,
7257 use m_dreg_interface. Call register_hw_breakpoint.
7258 (ppc_linux_nat_target::remove_mask_watchpoint): Update comment,
7259 use m_dreg_interface. Call clear_hw_breakpoint.
7260 (can_use_watchpoint_cond_accel): Change to...
7261 (ppc_linux_nat_target::can_use_watchpoint_cond_accel): ...this
7262 method. Update comment, use m_dreg_interface and
7263 m_process_info.
7264 (calculate_dvc): Change to...
7265 (ppc_linux_nat_target::calculate_dvc): ...this method. Use
7266 m_dreg_interface.
7267 (num_memory_accesses): Change to...
7268 (ppc_linux_nat_target::num_memory_accesses): ...this method.
7269 (check_condition): Change to...
7270 (ppc_linux_nat_target::check_condition): ...this method.
7271 (ppc_linux_nat_target::can_accel_watchpoint_condition): Update
7272 comment, use m_dreg_interface.
7273 (create_watchpoint_request): Change to...
7274 (ppc_linux_nat_target::create_watchpoint_request): ...this
7275 method. Use m_dreg_interface.
7276 (ppc_linux_nat_target::insert_watchpoint): Add comment, use
7277 m_dreg_interface. Call register_hw_breakpoint or register_wp.
7278 (ppc_linux_nat_target::remove_watchpoint): Add comment, use
7279 m_dreg_interface. Call clear_hw_breakpoint or clear_wp.
7280 (ppc_linux_nat_target::low_forget_process)
7281 (ppc_linux_nat_target::low_new_fork)
7282 (ppc_linux_nat_target::low_new_clone)
7283 (ppc_linux_nat_target::low_delete_thread)
7284 (ppc_linux_nat_target::low_prepare_to_resume): New methods.
7285 (ppc_linux_nat_target::low_new_thread): Remove previous logic,
7286 only call mark_thread_stale.
7287 (ppc_linux_thread_exit): Remove.
7288 (ppc_linux_nat_target::stopped_data_address): Change to...
7289 (ppc_linux_nat_target::low_stopped_data_address): This. Add
7290 comment, use m_dreg_interface and m_thread_hw_breakpoints.
7291 (ppc_linux_nat_target::stopped_by_watchpoint): Change to...
7292 (ppc_linux_nat_target::stopped_by_watchpoint): This. Add
7293 comment. Call low_stopped_data_address.
7294 (ppc_linux_nat_target::watchpoint_addr_within_range): Use
7295 m_dreg_interface.
7296 (ppc_linux_nat_target::masked_watch_num_registers): Use
7297 m_dreg_interface.
7298 (ppc_linux_nat_target::copy_thread_dreg_state)
7299 (ppc_linux_nat_target::mark_thread_stale)
7300 (ppc_linux_nat_target::mark_debug_registers_changed)
7301 (ppc_linux_nat_target::register_hw_breakpoint)
7302 (ppc_linux_nat_target::clear_hw_breakpoint)
7303 (ppc_linux_nat_target::register_wp)
7304 (ppc_linux_nat_target::clear_wp)
7305 (ppc_linux_nat_target::init_arch_lwp_info)
7306 (ppc_linux_nat_target::get_arch_lwp_info): New methods.
7307 (_initialize_ppc_linux_nat): Remove observer callback.
7308
4db10d8f
PFC
73092020-03-30 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
7310
7311 * ppc-linux-nat.c (ppc_linux_nat_target::store_registers)
7312 (ppc_linux_nat_target::auxv_parse)
7313 (ppc_linux_nat_target::read_description)
7314 (supply_gregset, fill_gregset, supply_fpregset, fill_fpregset):
7315 Move up.
7316
1310c1b0
PFC
73172020-03-30 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
7318
7319 * linux-nat.h (low_new_clone): New method.
7320 * linux-nat.c (linux_handle_extended_wait): Call low_new_clone.
7321
69b037c3
SM
73222020-03-29 Simon Marchi <simon.marchi@polymtl.ca>
7323
7324 * dbxread.c (dbx_psymtab_to_symtab_1): Rename to...
7325 (dbx_expand_psymtab): ... this.
7326 (start_psymtab): Update.
7327 * mdebugread.c (psymtab_to_symtab_1): Rename to...
7328 (mdebug_expand_psymtab): ... this.
7329 (parse_partial_symbols): Update.
7330 (new_psymtab): Update.
7331 * xcoffread.c (xcoff_psymtab_to_symtab_1): Rename to...
7332 (xcoff_expand_psymtab): ... this.
7333 (xcoff_start_psymtab): Update.
7334
48993951
SM
73352020-03-29 Simon Marchi <simon.marchi@polymtl.ca>
7336
7337 * psympriv.h (partial_symtab) <read_dependencies>: Rename to...
7338 <expand_dependencies>: ... this.
7339 * psymtab.c (partial_symtab::read_dependencies): Rename to...
7340 (partial_symtab::expand_dependencies): ... this.
7341 * dwarf2/read.c (dwarf2_include_psymtab) <expand_psymtab>:
7342 Update.
7343 (dwarf2_psymtab::expand_psymtab): Update.
7344 * dbxread.c (dbx_psymtab_to_symtab_1): Update.
7345 * mdebugread.c (psymtab_to_symtab_1): Update.
7346 * xcoffread.c (xcoff_psymtab_to_symtab_1): Update.
7347
3ad83046
SM
73482020-03-29 Simon Marchi <simon.marchi@polymtl.ca>
7349
7350 * psympriv.h (discard_psymtab): Remove.
7351 * dbxread.c (dbx_end_psymtab): Update.
7352 * xcoffread.c (xcoff_end_psymtab): Update.
7353
4d1b9ab6
TT
73542020-03-28 Tom Tromey <tom@tromey.com>
7355
7356 * dwarf2/attribute.h (struct attribute) <form_is_constant>: Update
7357 comment.
7358
f1749218
TT
73592020-03-28 Tom Tromey <tom@tromey.com>
7360
7361 * dwarf2/read.c (read_attribute_reprocess): Fix formatting.
7362
ebea7626
HD
73632020-03-27 Hannes Domani <ssbssa@yahoo.de>
7364
7365 * windows-nat.c (windows_add_all_dlls): Fix system dll paths.
7366
a879b4d5
JB
73672020-03-26 John Baldwin <jhb@FreeBSD.org>
7368
7369 * fbsd-tdep.c (fbsd_print_auxv_entry): Handle AT_FREEBSD_BSDFLAGS.
7370
0826b30a
TT
73712020-03-26 Tom Tromey <tom@tromey.com>
7372
7373 * dwarf2/read.c (handle_data_member_location, dwarf2_add_field)
7374 (mark_common_block_symbol_computed, read_tag_string_type)
7375 (attr_to_dynamic_prop, read_subrange_type): Update.
7376 (dwarf2_get_ref_die_offset, dwarf2_get_attr_constant_value): Move
7377 to be methods on struct attribute.
7378 (skip_one_die, process_imported_unit_die, read_namespace_alias)
7379 (read_call_site_scope, partial_die_info::read)
7380 (partial_die_info::read, lookup_die_type, follow_die_ref):
7381 Update.
7382 * dwarf2/attribute.c (attribute::get_ref_die_offset): New method,
7383 from dwarf2_get_ref_die_offset.
7384 (attribute::constant_value): New method, from
7385 dwarf2_get_attr_constant_value.
7386 * dwarf2/attribute.h (struct attribute) <get_ref_die_offset>:
7387 Declare method.
7388 <constant_value>: New method.
7389
2b2558bf
TT
73902020-03-26 Tom Tromey <tom@tromey.com>
7391
7392 * dwarf2/read.c (dwarf_unit_type_name, dwarf_tag_name)
7393 (dwarf_attr_name, dwarf_form_name, dwarf_bool_name)
7394 (dwarf_type_encoding_name): Move to stringify.c.
7395 * Makefile.in (COMMON_SFILES): Add dwarf2/stringify.c.
7396 * dwarf2/stringify.c: New file.
7397 * dwarf2/stringify.h: New file.
7398
eeb64781
TT
73992020-03-26 Tom Tromey <tom@tromey.com>
7400
7401 * dwarf2/die.h (struct die_info) <addr_base, ranges_base>:
7402 Rewrite.
7403
a39fdb41
TT
74042020-03-26 Tom Tromey <tom@tromey.com>
7405
7406 * dwarf2/die.h (struct die_info) <addr_base, ranges_base>: New
7407 methods.
7408 * dwarf2/read.c (lookup_addr_base): Move to die.h.
7409 (lookup_ranges_base): Likewise.
7410 (read_cutu_die_from_dwo, read_full_die_1): Update.
7411
436c571c
TT
74122020-03-26 Tom Tromey <tom@tromey.com>
7413
7414 * dwarf2/read.c (read_import_statement, read_file_scope)
7415 (read_type_unit_scope, inherit_abstract_dies, read_func_scope)
7416 (read_lexical_block_scope, read_call_site_scope)
7417 (dwarf2_get_subprogram_pc_bounds, get_scope_pc_bounds)
7418 (handle_struct_member_die, process_structure_scope)
7419 (update_enumeration_type_from_children)
7420 (process_enumeration_scope, read_array_type, read_common_block)
7421 (read_namespace, read_module, read_subroutine_type): Update.
7422 (sibling_die): Remove.
7423
052c8bb8
TT
74242020-03-26 Tom Tromey <tom@tromey.com>
7425
7426 * dwarf2/read.c (lookup_addr_base, lookup_ranges_base)
7427 (build_type_psymtabs_reader, read_structure_type)
7428 (read_enumeration_type, read_full_die_1): Update.
7429 (dwarf2_attr_no_follow): Move to die.h.
7430 * dwarf2/die.h (struct die_info) <attr>: New method.
7431
2b24b6e4
TT
74322020-03-26 Tom Tromey <tom@tromey.com>
7433
7434 * dwarf2/read.c (struct dwarf2_cu) <base_known>: Remove.
7435 <base_address>: Now an optional.
7436 (dwarf2_find_base_address, dwarf2_rnglists_process)
7437 (dwarf2_ranges_process, fill_in_loclist_baton)
7438 (dwarf2_symbol_mark_computed): Update.
7439
c2d50fd0
TT
74402020-03-26 Tom Tromey <tom@tromey.com>
7441
7442 * dwarf2/read.c (struct die_info): Move to die.h.
7443 * dwarf2/die.h: New file.
7444
0df7ad3a
TT
74452020-03-26 Tom Tromey <tom@tromey.com>
7446
7447 * dwarf2/line-header.h (dwarf_decode_line_header): Declare.
7448 * dwarf2/read.c
7449 (dwarf2_statement_list_fits_in_line_number_section_complaint):
7450 Move to line-header.c.
7451 (read_checked_initial_length_and_offset, read_formatted_entries):
7452 Likewise.
7453 (dwarf_decode_line_header): Split into two.
7454 * dwarf2/line-header.c
7455 (dwarf2_statement_list_fits_in_line_number_section_complaint):
7456 Move from read.c.
7457 (read_checked_initial_length_and_offset, read_formatted_entries):
7458 Likewise.
7459 (dwarf_decode_line_header): New function, split from read.c.
7460
86c0bb4c
TT
74612020-03-26 Tom Tromey <tom@tromey.com>
7462
7463 * dwarf2/read.h (struct dwarf2_per_objfile) <read_line_string>:
7464 Declare method.
7465 * dwarf2/read.c (read_attribute_value): Update.
7466 (dwarf2_per_objfile::read_line_string): Rename from
7467 read_indirect_line_string.
7468 (read_formatted_entries): Update.
7469
2ef46c2f
TT
74702020-03-26 Tom Tromey <tom@tromey.com>
7471
7472 * dwarf2/macro.c (dwarf_decode_macro_bytes): Use objfile local
7473 variable.
7474
4f9c1eda
TT
74752020-03-26 Tom Tromey <tom@tromey.com>
7476
7477 * dwarf2/macro.h (dwarf_decode_macros): Make section parameter
7478 const.
7479 * dwarf2/macro.c (skip_form_bytes, skip_unknown_opcode)
7480 (dwarf_decode_macro_bytes, dwarf_decode_macros): Make section
7481 parameter const.
7482
5a0e026f
TT
74832020-03-26 Tom Tromey <tom@tromey.com>
7484
7485 * dwarf2/read.c (dwarf_decode_macros): Make "lh" const.
7486 * dwarf2/macro.h (dwarf_decode_macros): Constify "lh" parameter.
7487 * dwarf2/macro.c (macro_start_file): Constify "lh" parameter.
7488 (dwarf_decode_macro_bytes, dwarf_decode_macros): Likewise.
7489
8844c11b
TT
74902020-03-26 Tom Tromey <tom@tromey.com>
7491
7492 * dwarf2/line-header.h (struct line_header) <is_valid_file_index,
7493 file_names_size, file_full_name, file_file_name>: Use const.
7494 <file_name_at, file_names>: Add const overload.
7495 * dwarf2/line-header.c (line_header::file_file_name)
7496 (line_header::file_full_name): Update.
7497
c90ec28a
TT
74982020-03-26 Tom Tromey <tom@tromey.com>
7499
7500 * dwarf2/read.c (dwarf2_macro_malformed_definition_complaint)
7501 (macro_start_file, consume_improper_spaces)
7502 (parse_macro_definition, skip_form_bytes, skip_unknown_opcode)
7503 (dwarf_parse_macro_header, dwarf_decode_macro_bytes)
7504 (dwarf_decode_macros): Move to macro.c.
7505 * dwarf2/macro.c: New file.
7506 * dwarf2/macro.h: New file.
7507 * Makefile.in (COMMON_SFILES): Add dwarf2/macro.c.
7508
4f44ae6c
TT
75092020-03-26 Tom Tromey <tom@tromey.com>
7510
7511 * dwarf2/section.h (struct dwarf2_section_info) <read_string>: New
7512 method.
7513 * dwarf2/section.c: New method. From
7514 read_indirect_string_at_offset_from.
7515 * dwarf2/read.c (mapped_debug_names::namei_to_name): Update.
7516 (read_indirect_string_at_offset_from): Move to section.c.
7517 (read_indirect_string_at_offset): Rewrite.
7518 (read_indirect_line_string_at_offset): Remove.
7519 (read_indirect_string, read_indirect_line_string)
7520 (dwarf_decode_macro_bytes): Update.
7521
a0194fa8
TT
75222020-03-26 Tom Tromey <tom@tromey.com>
7523
7524 * dwarf2/section.h (struct dwarf2_section_info)
7525 <overload_complaint>: Declare.
7526 (dwarf2_section_buffer_overflow_complaint): Don't declare.
7527 * dwarf2/section.c (dwarf2_section_info::overflow_complaint):
7528 Rename from dwarf2_section_buffer_overflow_complaint.
7529 * dwarf2/read.c (skip_one_die, partial_die_info::read)
7530 (skip_form_bytes, dwarf_decode_macro_bytes): Update.
7531
3d27bbdb
TT
75322020-03-26 Tom Tromey <tom@tromey.com>
7533
7534 * dwarf2/section.h (dwarf2_section_buffer_overflow_complaint):
7535 Declare.
7536 * dwarf2/section.c (dwarf2_section_buffer_overflow_complaint):
7537 Move from read.c.
7538 * dwarf2/read.c (dwarf2_section_buffer_overflow_complaint): Move
7539 to section.c.
7540
9eac9650
TT
75412020-03-26 Tom Tromey <tom@tromey.com>
7542
7543 * dwarf2/read.c (dwarf_decode_macros): Split into two overloads.
7544
bf80d710
TT
75452020-03-26 Tom Tromey <tom@tromey.com>
7546
7547 * dwarf2/read.c (macro_start_file): Change "cu" parameter to
7548 "builder".
7549 (dwarf_decode_macro_bytes): Likewise. Add dwarf2_per_objfile
7550 parameter.
7551 (dwarf_decode_macros): Update.
7552
0314b390
TT
75532020-03-26 Tom Tromey <tom@tromey.com>
7554
7555 * dwarf2/read.c (read_attribute_value): Update.
7556 (read_indirect_string_from_dwz): Move to dwz.c; change into
7557 method.
7558 (dwarf_decode_macro_bytes): Update.
7559 * dwarf2/dwz.h (struct dwz_file) <read_string>: Declare method.
7560 * dwarf2/dwz.c: New file.
7561 * Makefile.in (COMMON_SFILES): Add dwz.c.
7562
9fda78b6
TT
75632020-03-26 Tom Tromey <tom@tromey.com>
7564
7565 * dwarf2/read.h (struct dwz_file): Move to dwz.h.
7566 * dwarf2/read.c: Add include.
7567 * dwarf2/index-write.c: Add include.
7568 * dwarf2/index-cache.c: Add include.
7569 * dwarf2/dwz.h: New file.
7570
33aa3c10
TT
75712020-03-25 Tom Tromey <tom@tromey.com>
7572
7573 * compile/compile-object-load.c (get_out_value_type): Mention
7574 correct symbol name in error message.
7575
d503b685
HD
75762020-03-25 Hannes Domani <ssbssa@yahoo.de>
7577
7578 * windows-nat.c (windows_add_all_dlls): Fix system dll paths.
7579
7b1eff95
TV
75802020-03-25 Tom de Vries <tdevries@suse.de>
7581
7582 * symtab.h (is_main_symtab_of_compunit_symtab): New function.
7583 * symmisc.c (dump_symtab_1): Print user and includes fields.
7584 (maintenance_info_symtabs): Same.
7585
dd895392
AB
75862020-03-25 Andrew Burgess <andrew.burgess@embecosm.com>
7587
7588 PR gdb/25534
7589 * riscv-tdep.c (riscv_arg_info::c_offset): Update comment.
7590 (riscv_regcache_cooked_write): New function.
7591 (riscv_push_dummy_call): Use new function.
7592 (riscv_return_value): Likewise.
7593
5ab2fbf1
SM
75942020-03-24 Simon Marchi <simon.marchi@polymtl.ca>
7595
7596 * fbsd-nat.c (fbsd_nat_target::follow_fork): Change bool to int.
7597 * fbsd-nat.h (class fbsd_nat_target) <follow_fork>: Likewise.
7598 * inf-ptrace.c (inf_ptrace_target::follow_fork): Likewise.
7599 * inf-ptrace.h (struct inf_ptrace_target) <follow_fork>: Likewise.
7600 * infrun.c (follow_fork): Likewise.
7601 (follow_fork_inferior): Likewise.
7602 * linux-nat.c (linux_nat_target::follow_fork): Likewise.
7603 * linux-nat.h (class linux_nat_target): Likewise.
7604 * remote.c (class remote_target) <follow_fork>: Likewise.
7605 (remote_target::follow_fork): Likewise.
7606 * target-delegates.c: Re-generate.
7607 * target.c (default_follow_fork): Likewise.
7608 (target_follow_fork): Likewise.
7609 * target.h (struct target_ops) <follow_fork>: Likewise.
7610 (target_follow_fork): Likewise.
7611
a64fafb5
TV
76122020-03-24 Tom de Vries <tdevries@suse.de>
7613
7614 * psymtab.c (maintenance_info_psymtabs): Print user field.
7615
fe26d3a3
TT
76162020-03-20 Tom Tromey <tromey@adacore.com>
7617
7618 * dwarf2/loc.h (dwarf2_evaluate_property): Make "addr_stack"
7619 const.
7620 * dwarf2/loc.c (dwarf2_evaluate_property): Make "addr_stack"
7621 const.
7622
c884cc46
SM
76232020-03-20 Simon Marchi <simon.marchi@efficios.com>
7624
7625 * ptrace.m4: Don't check for ptrace declaration.
7626 * config.in: Re-generate.
7627 * configure: Re-generate.
7628 * nat/gdb_ptrace.h: Don't declare ptrace if HAVE_DECL_PTRACE is
7629 not defined.
7630
1ff700c2
KR
76312020-03-20 Kamil Rytarowski <n54@gmx.com>
7632
7633 * amd64-bsd-nat.c (gdb_ptrace): Change return type from `int' to
7634 `PTRACE_TYPE_RET'.
7635 * i386-bsd-nat.c (gdb_ptrace): Likewise.
7636 * sparc-nat.c (gdb_ptrace): Likewise.
7637 * x86-bsd-nat.c (gdb_ptrace): Likewise.
7638
f7d4f0b1
TT
76392020-03-20 Tom Tromey <tromey@adacore.com>
7640
7641 * c-exp.y (lex_one_token): Fix assert.
7642
f67210ff
TT
76432020-03-20 Tom Tromey <tromey@adacore.com>
7644
7645 * ada-tasks.c (read_atcb): Use smaller length in strncpy call.
7646 * linux-tdep.c (linux_fill_prpsinfo): Use smaller length in
7647 strncpy call.
7648
1773be9e
TT
76492020-03-20 Tom Tromey <tromey@adacore.com>
7650
7651 * symmisc.c (maintenance_print_one_line_table): Use ui_out.
7652
70304be9
TT
76532020-03-20 Tom Tromey <tromey@adacore.com>
7654
7655 * ada-valprint.c (print_variant_part): Remove parameters; switch
7656 to value-based API.
7657 (print_field_values): Likewise.
7658 (ada_val_print_struct_union): Likewise.
7659 (ada_value_print_1): Update.
7660
9faa006d
KR
76612020-03-20 Kamil Rytarowski <n54@gmx.com>
7662
7663 * ppc-nbsd-nat.c (ppc_nbsd_nat_target): Inherit from
7664 nbsd_nat_target instead of inf_ptrace_target.
7665 * ppc-nbsd-nat.c: Include "nbsd-nat.h", as we are now using
7666 nbsd_nat_target.
7667
4a90f062
KR
76682020-03-20 Kamil Rytarowski <n54@gmx.com>
7669
7670 * hppa-nbsd-nat.c (fetch_registers): New variable lwp and pass
7671 it to the ptrace call.
7672 * (store_registers): Likewise.
7673
76742020-03-20 Kamil Rytarowski <n54@gmx.com>
c7da12c7
KR
7675
7676 * ppc-nbsd-nat.c (fetch_registers): New variable lwp and pass
7677 it to the ptrace call.
7678 * (store_registers): Likewise.
7679
2d07da27
LM
76802020-03-19 Luis Machado <luis.machado@linaro.org>
7681
7682 * nat/aarch64-sve-linux-ptrace.c (aarch64_sve_set_vq): If vg is not
7683 valid, fetch vg value from ptrace.
7684
f09db380
KR
76852020-03-19 Kamil Rytarowski <n54@gmx.com>
7686 * inf-ptrace.h: Disable get_ptrace_pid on NetBSD.
7687 * inf-ptrace.c: Likewise.
7688 * (gdb_ptrace): Add.
7689 * (inf_ptrace_target::resume): Update.
7690 * (inf_ptrace_target::xfer_partial): Likewise.
7691 * (inf_ptrace_peek_poke): Change argument `pid' to `ptid'.
7692 * (inf_ptrace_peek_poke): Update.
7693
fcc7376e
KR
76942020-03-19 Kamil Rytarowski <n54@gmx.com>
7695
7696 * x86-bsd-nat.c (gdb_ptrace): New.
7697 * (x86bsd_dr_set): Add new argument `ptid'.
7698 * (x86bsd_dr_get, x86bsd_dr_set, x86bsd_dr_set_control,
7699 x86bsd_dr_set_addr): Update.
7700
cada5fc9
AB
77012020-03-19 Andrew Burgess <andrew.burgess@embecosm.com>
7702
7703 * remote.c (remote_target::process_stop_reply): Handle events for
7704 all threads differently.
7705
19a2740f
AB
77062020-03-19 Andrew Burgess <andrew.burgess@embecosm.com>
7707
7708 * completer.c (completion_tracker::remove_completion): Define new
7709 function.
7710 * completer.h (completion_tracker::remove_completion): Declare new
7711 function.
7712 * symtab.c (completion_list_add_symbol): Remove aliasing msymbols
7713 when adding a C++ function symbol.
7714
724fd9ba
AB
77152020-03-19 Andrew Burgess <andrew.burgess@embecosm.com>
7716
7717 * completer.c (completion_tracker::completion_hash_entry): Define
7718 new class.
7719 (advance_to_filename_complete_word_point): Call
7720 recompute_lowest_common_denominator.
7721 (completion_tracker::completion_tracker): Call discard_completions
7722 to setup the hash table.
7723 (completion_tracker::discard_completions): Allow for being called
7724 from the constructor, pass new equal function, and element deleter
7725 when constructing the hash table. Initialise new class member
7726 variables.
7727 (completion_tracker::maybe_add_completion): Remove use of
7728 m_entries_vec, and store more information into m_entries_hash.
7729 (completion_tracker::recompute_lcd_visitor): New function, most
7730 content taken from...
7731 (completion_tracker::recompute_lowest_common_denominator):
7732 ...here, this now just visits each item in the hash calling the
7733 above visitor.
7734 (completion_tracker::build_completion_result): Remove use of
7735 m_entries_vec, call recompute_lowest_common_denominator.
7736 * completer.h (completion_tracker::have_completions): Remove use
7737 of m_entries_vec.
7738 (completion_tracker::completion_hash_entry): Declare new class.
7739 (completion_tracker::recompute_lowest_common_denominator): Change
7740 function signature.
7741 (completion_tracker::recompute_lcd_visitor): Declare new function.
7742 (completion_tracker::m_entries_vec): Delete.
7743 (completion_tracker::m_entries_hash): Initialize to NULL.
7744 (completion_tracker::m_lowest_common_denominator_valid): New
7745 member variable.
7746 (completion_tracker::m_lowest_common_denominator_max_length): New
7747 member variable.
7748
5a82b8a1
KR
77492020-03-17 Kamil Rytarowski <n54@gmx.com>
7750
7751 * regformats/regdef.h: Put reg in gdb namespace.
7752
fb516a69
KR
77532020-03-17 Kamil Rytarowski <n54@gmx.com>
7754
7755 * i386-bsd-nat.c (gdb_ptrace): New.
7756 * (i386bsd_fetch_inferior_registers,
7757 i386bsd_store_inferior_registers) Switch from pid_t to ptid_t.
7758 * (i386bsd_fetch_inferior_registers,
7759 i386bsd_store_inferior_registers) Use gdb_ptrace.
7760
1c0aa1fb
KR
77612020-03-17 Kamil Rytarowski <n54@gmx.com>
7762
7763 * amd64-bsd-nat.c (gdb_ptrace): New.
7764 * (amd64bsd_fetch_inferior_registers,
7765 amd64bsd_store_inferior_registers) Switch from pid_t to ptid_t.
7766 * (amd64bsd_fetch_inferior_registers,
7767 amd64bsd_store_inferior_registers) Use gdb_ptrace.
7768
5ccd2fb7
KR
77692020-03-17 Kamil Rytarowski <n54@gmx.com>
7770
7771 * user-regs.c (user_reg::read): Rename to...
7772 (user_reg::xread): ...this.
7773 * (append_user_reg): Rename argument `read' to `xread'.
7774 * (user_reg_add_builtin): Likewise.
7775 * (user_reg_add): Likewise.
7776 * (value_of_user_reg): Likewise.
7777
2108a63a
KR
77782020-03-17 Kamil Rytarowski <n54@gmx.com>
7779
7780 * sparc-nat.c (gdb_ptrace): New.
7781 * sparc-nat.c (sparc_fetch_inferior_registers)
7782 (sparc_store_inferior_registers) Remove obsolete comment.
7783 * sparc-nat.c (sparc_fetch_inferior_registers)
7784 (sparc_store_inferior_registers) Switch from pid_t to ptid_t.
7785 * sparc-nat.c (sparc_fetch_inferior_registers)
7786 (sparc_store_inferior_registers) Use gdb_ptrace.
7787
a225c9a8
KR
77882020-03-17 Kamil Rytarowski <n54@gmx.com>
7789
7790 * sh-nbsd-nat.c (fetch_registers): New variable lwp and pass
7791 it to the ptrace call.
7792 * sh-nbsd-nat.c (store_registers): Likewise.
7793
98097623
KR
77942020-03-17 Kamil Rytarowski <n54@gmx.com>
7795
7796 * sh-nbsd-nat.c (sh_nbsd_nat_target): Inherit from
7797 nbsd_nat_target instead of inf_ptrace_target.
7798 * sh-nbsd-nat.c: Include "nbsd-nat.h", as we are now using
7799 nbsd_nat_target.
7800
9e38d619
KR
78012020-03-17 Kamil Rytarowski <n54@gmx.com>
7802
7803 * amd64-bsd-nat.c: Include amd64-bsd-nat.h".
7804
a2ecbe9f
KR
78052020-03-17 Kamil Rytarowski <n54@gmx.com>
7806
7807 * nbsd-nat.c: Include <sys/types.h>, <sys/ptrace.h> and
7808 <sys/sysctl.h>.
7809 * nbsd-nat.c (nbsd_nat_target::pid_to_exec_file): Rewrite.
7810
58990295
TV
78112020-03-17 Tom de Vries <tdevries@suse.de>
7812
7813 PR gdb/23710
7814 * dwarf2/read.h (struct dwarf2_per_cu_data): Add unit_type and lang
7815 fields.
7816 * dwarf2/read.c (process_psymtab_comp_unit): Initialize unit_type and lang
7817 fields.
7818 (process_imported_unit_die): Skip import of c++ CUs.
7819
771dd3a8
TT
78202020-03-16 Tom Tromey <tom@tromey.com>
7821
7822 * p-valprint.c (pascal_object_print_value): Initialize
7823 base_value.
7824
817a7585
AK
78252020-03-16 Anton Kolesov <anton.kolesov@synopsys.com>
7826 Shahab Vahedi <shahab@synopsys.com>
7827
7828 * Makefile.in: Add arch/arc.o
7829 * configure.tgt: Likewise.
7830 * arc-tdep.c (arc_tdesc_init): Use arc_read_description.
7831 (_initialize_arc_tdep): Don't initialize old target descriptions.
aac66a4c 7832 (arc_read_description): New function to cache target descriptions.
817a7585
AK
7833 * arc-tdep.h (arc_read_description): Add proto type.
7834 * arch/arc.c: New file.
7835 * arch/arc.h: Likewise.
7836 * features/Makefile: Replace old target descriptions with new.
7837 * features/arc-arcompact.c: Remove.
7838 * features/arc-arcompact.xml: Likewise.
7839 * features/arc-v2.c: Likewise
7840 * features/arc-v2.xml: Likewise
7841 * features/arc/aux-arcompact.xml: New file.
7842 * features/arc/aux-v2.xml: Likewise.
7843 * features/arc/core-arcompact.xml: Likewise.
7844 * features/arc/core-v2.xml: Likewise.
7845 * features/arc/aux-arcompact.c: Generate.
7846 * features/arc/aux-v2.c: Likewise.
7847 * features/arc/core-arcompact.c: Likewise.
7848 * features/arc/core-v2.c: Likewise.
7849 * target-descriptions (maint_print_c_tdesc_cmd): Support ARC features.
7850
67430cd0
TT
78512020-03-16 Tom Tromey <tromey@adacore.com>
7852
7853 PR gdb/25663:
7854 * dwarf2/read.c (dwarf2_name): Strip leading namespaces after
7855 putting value into bcache.
7856
30efb6c7
SM
78572020-03-16 Simon Marchi <simon.marchi@efficios.com>
7858
7859 PR gdb/21500
7860 * amd64-windows-tdep.c (amd64_windows_init_abi): Rename
7861 to...
7862 (amd64_windows_init_abi_common): ... this. Don't set size of
7863 long type.
7864 (amd64_windows_init_abi): New function.
7865 (amd64_cygwin_init_abi): New function.
7866 (_initialize_amd64_windows_tdep): Use amd64_cygwin_init_abi for
7867 the Cygwin OS ABI.
7868 * i386-windows-tdep.c (_initialize_i386_windows_tdep): Clarify
7869 comment.
7870
8db52437
SM
78712020-03-16 Simon Marchi <simon.marchi@efficios.com>
7872
7873 * windows-tdep.h (is_linked_with_cygwin_dll): New declaration.
7874 * windows-tdep.c (CYGWIN_DLL_NAME): New.
7875 (pe_import_directory_entry): New struct type.
7876 (is_linked_with_cygwin_dll): New function.
7877 * amd64-windows-tdep.c (amd64_windows_osabi_sniffer): Select
7878 GDB_OSABI_CYGWIN if the BFD is linked with the Cygwin DLL.
7879 * i386-windows-tdep.c (i386_windows_osabi_sniffer): Likewise.
7880
5982a56a
SM
78812020-03-16 Simon Marchi <simon.marchi@efficios.com>
7882
7883 * i386-windows-tdep.c: Mass-rename "cygwin" to "windows", except
7884 i386_cygwin_core_osabi_sniffer.
7885
7a1998df
SM
78862020-03-16 Simon Marchi <simon.marchi@efficios.com>
7887
7888 * i386-cygwin-tdep.c: Rename to...
7889 * i386-windows-tdep.c: ... this.
7890 * Makefile.in (ALL_TARGET_OBS): Rename i386-cygwin-tdep.c to
7891 i386-windows-tdep.c.
7892 * configure.tgt: Likewise.
7893
053205cc
SM
78942020-03-16 Simon Marchi <simon.marchi@efficios.com>
7895
7896 * osabi.h (enum gdb_osabi): Add GDB_OSABI_WINDOWS.
7897 * osabi.c (gdb_osabi_names): Add "Windows".
7898 * i386-cygwin-tdep.c (i386_cygwin_osabi_sniffer): Return
7899 GDB_OSABI_WINDOWS when the binary's target is "pei-i386".
7900 (i386_cygwin_core_osabi_sniffer): New function, extracted from
7901 i386_cygwin_osabi_sniffer.
7902 (_initialize_i386_cygwin_tdep): Register OS ABI
7903 GDB_OSABI_WINDOWS for i386.
7904 * amd64-windows-tdep.c (amd64_windows_osabi_sniffer): Return
7905 GDB_OSABI_WINDOWS when the binary's target is "pei-x86-64".
7906 (_initialize_amd64_windows_tdep): Register OS ABI GDB_OSABI_WINDOWS
7907 for x86-64.
7908 * configure.tgt: Use GDB_OSABI_WINDOWS as the default OS ABI
7909 when the target matches '*-*-mingw*'.
7910
fe4b2ee6
SM
79112020-03-16 Simon Marchi <simon.marchi@efficios.com>
7912
7913 * defs.h (enum gdb_osabi): Move to...
7914 * osabi.h (enum gdb_osabi): ... here.
7915 * gdbarch.sh: Include osabi.h in gdbarch.h.
7916 * gdbarch.h: Re-generate.
7917
cb9b645d
SM
79182020-03-16 Simon Marchi <simon.marchi@efficios.com>
7919
7920 * amd64-windows-tdep.c (amd64_windows_osabi_sniffer): New
7921 function.
7922 (_initialize_amd64_windows_tdep): Register osabi sniffer.
7923
3293bbaf
TT
79242020-03-14 Tom Tromey <tom@tromey.com>
7925
7926 * c-typeprint.c (cp_type_print_method_args): Print "__restrict__"
7927 for C++.
7928 (c_type_print_modifier): Likewise. Add "language" parameter.
7929 (c_type_print_varspec_prefix, c_type_print_base_struct_union)
7930 (c_type_print_base_1): Update.
7931 * type-stack.h (enum type_pieces) <tp_atomic, tp_restrict>: New
7932 constants.
7933 * type-stack.c (type_stack::insert): Handle tp_atomic and
7934 tp_restrict.
7935 (type_stack::follow_type_instance_flags): Likewise.
7936 (type_stack::follow_types): Likewise. Merge type-following code.
7937 * c-exp.y (RESTRICT, ATOMIC): New tokens.
7938 (space_identifier, cv_with_space_id)
7939 (const_or_volatile_or_space_identifier_noopt)
7940 (const_or_volatile_or_space_identifier): Remove.
7941 (single_qualifier, qualifier_seq_noopt, qualifier_seq): New
7942 rules.
7943 (ptr_operator, typebase): Update.
7944 (enum token_flag) <FLAG_C>: New constant.
7945 (ident_tokens): Add "restrict", "__restrict__", "__restrict", and
7946 "_Atomic".
7947 (lex_one_token): Handle FLAG_C.
7948
154151a6
KR
79492020-03-14 Kamil Rytarowski <n54@gmx.com>
7950
7951 * m68k-bsd-nat.c (fetch_registers): New variable lwp and pass
7952 it to the ptrace call.
7953 * m68k-bsd-nat.c (store_registers): Likewise.
7954
bc107784
KR
79552020-03-14 Kamil Rytarowski <n54@gmx.com>
7956
7957 * m68k-bsd-nat.c (m68kbsd_supply_gregset): Change type of regs to
7958 gdb_byte *.
7959 * m68k-bsd-nat.c (m68kbsd_supply_fpregset): Likewise.
7960 * m68k-bsd-nat.c (m68kbsd_collect_gregset): Likewise.
7961 * m68k-bsd-nat.c (m68kbsd_supply_pcb): Cast &tmp to gdb_byte *.
7962
01a80117
KR
79632020-03-14 Kamil Rytarowski <n54@gmx.com>
7964
7965 * m68k-bsd-nat.c (m68k_bsd_nat_target): Inherit from
7966 nbsd_nat_target instead of inf_ptrace_target.
7967 * m68k-bsd-nat.c: Include "nbsd-nat.h", as we are now using
7968 nbsd_nat_target.
7969
f90280ca
KR
79702020-03-14 Kamil Rytarowski <n54@gmx.com>
7971
7972 * m68k-bsd-nat.c: Define _KERNTYPES to get the declaration of
7973 register_t.
7974
6def66f1
KR
79752020-03-14 Kamil Rytarowski <n54@gmx.com>
7976
7977 * alpha-bsd-nat.c (fetch_registers): New variable lwp and pass
7978 it to the ptrace call.
7979 * alpha-bsd-nat.c (store_registers): Likewise.
7980
66eaca97
KR
79812020-03-14 Kamil Rytarowski <n54@gmx.com>
7982
7983 * alpha-bsd-nat.c: Remove <sys/procfs.h> and "gregset.h" from
7984 includes.
7985 * alpha-bsd-nat.c (gregset_t, fpregset_t): Remove.
7986 * alpha-bsd-nat.c (supply_gregset, fill_gregset, supply_fpregset,
7987 fill_fpregset): Likewise.
7988
4fed520b
KR
79892020-03-14 Kamil Rytarowski <n54@gmx.com>
7990
7991 * alpha-bsd-nat.c (alpha_netbsd_nat_target): Inherit from
7992 nbsd_nat_target instead of inf_ptrace_target.
7993 * alpha-bsd-nat.c: Include "nbsd-nat.h", as we are now using
7994 nbsd_nat_target.
7995
2190cf06
KR
79962020-03-14 Kamil Rytarowski <n54@gmx.com>
7997
7998 * alpha-bsd-nat.c: Define _KERNTYPES to get the declaration of
7999 register_t.
8000
75c56d3d
KR
80012020-03-14 Kamil Rytarowski <n54@gmx.com>
8002
8003 * arm-nbsd-nat.c (fetch_register): New variable lwp and pass
8004 it to the ptrace call.
8005 * arm-nbsd-nat.c (fetch_fp_register): Likewise.
8006 * arm-nbsd-nat.c (fetch_fp_regs): Likewise.
8007 * arm-nbsd-nat.c (store_register): Likewise.
8008 * arm-nbsd-nat.c (store_regs): Likewise.
8009 * arm-nbsd-nat.c (store_fp_register): Likewise.
8010 * arm-nbsd-nat.c (store_fp_regs): Likewise.
8011
6018d381
KR
80122020-03-14 Kamil Rytarowski <n54@gmx.com>
8013
8014 * arm-nbsd-nat.c (arm_netbsd_nat_target): Inherit from
8015 nbsd_nat_target instead of inf_ptrace_target.
8016 * arm-nbsd-nat.c: Include "nbsd-nat.h", as we are now using
8017 nbsd_nat_target.
8018
013f99f0
KR
80192020-03-14 Kamil Rytarowski <n54@gmx.com>
8020
8021 * x86-bsd-nat.c (x86bsd_dr_get): New variable lwp and pass
8022 it to the ptrace call.
8023 * x86-bsd-nat.c (x86bsd_dr_set): Likewise.
8024
12753073
KR
80252020-03-14 Kamil Rytarowski <n54@gmx.com>
8026
6227b330
KR
8027 * vax-bsd-nat.c (vaxbsd_supply_gregset): New variable lwp and pass
8028 it to the ptrace call.
8029 * vax-bsd-nat.c (vaxbsd_collect_gregset): Likewise.
8030
80312020-03-14 Kamil Rytarowski <n54@gmx.com>
8032
8033 * vax-bsd-nat.c (vaxbsd_supply_gregset): Cast gregs to const
8034 gdb_byte *.
12753073
KR
8035 * vax-bsd-nat.c (vaxbsd_collect_gregset): Cast gregs to void *.
8036
d5be5fa4
KR
80372020-03-14 Kamil Rytarowski <n54@gmx.com>
8038
8039 * vax-bsd-nat.c (vax_bsd_nat_target): Inherit from nbsd_nat_target
8040 instead of inf_ptrace_target.
8041 * vax-bsd-nat.c: Include "nbsd-nat.h", as we are now using
8042 nbsd_nat_target.
8043
8110f842
KR
80442020-03-14 Kamil Rytarowski <n54@gmx.com>
8045
8046 * mips-nbsd-nat.c: Define _KERNTYPES to get the declaration of
8047 register_t.
8048
52feded7
KR
80492020-03-14 Kamil Rytarowski <n54@gmx.com>
8050
8051 * ppc-nbsd-nat.c: Define _KERNTYPES to get the declaration of
8052 register_t.
8053
25567eee
KR
80542020-03-14 Kamil Rytarowski <n54@gmx.com>
8055
8056 * vax-bsd-nat.c: Define _KERNTYPES to get the declaration of
8057 register_t.
8058
426a9c18
TT
80592020-03-13 Tom Tromey <tom@tromey.com>
8060
8061 * value.h (val_print): Don't declare.
8062 * valprint.h (val_print_array_elements)
8063 (val_print_scalar_formatted, generic_val_print): Don't declare.
8064 * valprint.c (generic_val_print_array): Take a struct value.
8065 (generic_val_print_ptr, generic_val_print_memberptr)
8066 (generic_val_print_bool, generic_val_print_int)
8067 (generic_val_print_char, generic_val_print_complex)
8068 (generic_val_print): Remove.
8069 (generic_value_print): Update.
8070 (do_val_print): Remove unused parameters. Don't call
8071 la_val_print.
8072 (val_print): Remove.
8073 (common_val_print): Update. Don't call value_check_printable.
8074 (val_print_scalar_formatted, val_print_array_elements): Remove.
8075 * rust-lang.c (rust_val_print): Remove.
8076 (rust_language_defn): Update.
8077 * p-valprint.c (pascal_val_print): Remove.
8078 (pascal_value_print_inner): Update.
8079 (pascal_object_print_val_fields, pascal_object_print_val):
8080 Remove.
8081 (pascal_object_print_static_field): Update.
8082 * p-lang.h (pascal_val_print): Don't declare.
8083 * p-lang.c (pascal_language_defn): Update.
8084 * opencl-lang.c (opencl_language_defn): Update.
8085 * objc-lang.c (objc_language_defn): Update.
8086 * m2-valprint.c (m2_print_unbounded_array, m2_val_print): Remove.
8087 * m2-lang.h (m2_val_print): Don't declare.
8088 * m2-lang.c (m2_language_defn): Update.
8089 * language.h (struct language_defn) <la_val_print>: Remove.
8090 * language.c (unk_lang_value_print_inner): Rename. Change
8091 argument types.
8092 (unknown_language_defn, auto_language_defn): Update.
8093 * go-valprint.c (go_val_print): Remove.
8094 * go-lang.h (go_val_print): Don't declare.
8095 * go-lang.c (go_language_defn): Update.
8096 * f-valprint.c (f_val_print): Remove.
8097 * f-lang.h (f_value_print): Don't declare.
8098 * f-lang.c (f_language_defn): Update.
8099 * d-valprint.c (d_val_print): Remove.
8100 * d-lang.h (d_value_print): Don't declare.
8101 * d-lang.c (d_language_defn): Update.
8102 * cp-valprint.c (cp_print_value_fields)
8103 (cp_print_value_fields_rtti, cp_print_value): Remove.
8104 (cp_print_static_field): Update.
8105 * c-valprint.c (c_val_print_array, c_val_print_ptr)
8106 (c_val_print_struct, c_val_print_union, c_val_print_int)
8107 (c_val_print_memberptr, c_val_print): Remove.
8108 * c-lang.h (c_val_print_array, cp_print_value_fields)
8109 (cp_print_value_fields_rtti): Don't declare.
8110 * c-lang.c (c_language_defn, cplus_language_defn)
8111 (asm_language_defn, minimal_language_defn): Update.
8112 * ada-valprint.c (ada_val_print_ptr, ada_val_print_num): Remove.
8113 (ada_val_print_enum): Take a struct value.
8114 (ada_val_print_flt, ada_val_print_array, ada_val_print_1)
8115 (ada_val_print): Remove.
8116 (ada_value_print_1): Update.
8117 (printable_val_type): Remove.
8118 * ada-lang.h (ada_val_print): Don't declare.
8119 * ada-lang.c (ada_language_defn): Update.
8120
42331a1e
TT
81212020-03-13 Tom Tromey <tom@tromey.com>
8122
8123 * valprint.c (do_val_print): Update.
8124 * python/python-internal.h (gdbpy_apply_val_pretty_printer): Take
8125 a struct value.
8126 (value_to_value_object_no_release): Declare.
8127 * python/py-value.c (value_to_value_object_no_release): New
8128 function.
8129 * python/py-prettyprint.c (gdbpy_apply_val_pretty_printer): Take a
8130 struct value.
8131 * guile/scm-value.c (vlscm_scm_from_value_no_release): New
8132 function.
8133 * guile/scm-pretty-print.c (gdbscm_apply_val_pretty_printer): Take
8134 a struct value.
8135 * guile/guile-internal.h (vlscm_scm_from_value_no_release):
8136 Declare.
8137 (gdbscm_apply_val_pretty_printer): Take a struct value.
8138 * extension.h (apply_ext_lang_val_pretty_printer): Take a struct
8139 value.
8140 * extension.c (apply_ext_lang_val_pretty_printer): Take a struct
8141 value.
8142 * extension-priv.h (struct extension_language_ops)
8143 <apply_val_pretty_printer>: Take a struct value.
8144 * cp-valprint.c (cp_print_value): Create a struct value.
8145 (cp_print_value): Update.
8146
3a916a97
TT
81472020-03-13 Tom Tromey <tom@tromey.com>
8148
8149 * ada-valprint.c (print_field_values): Call common_val_print.
8150
b59eac37
TT
81512020-03-13 Tom Tromey <tom@tromey.com>
8152
8153 * ada-valprint.c (val_print_packed_array_elements): Remove
8154 bitoffset and val parameters. Call common_val_print.
8155 (ada_val_print_string): Remove offset, address, and original_value
8156 parameters.
8157 (ada_val_print_array): Update.
8158 (ada_value_print_array): New function.
8159 (ada_value_print_1): Call it.
8160
03371129
TT
81612020-03-13 Tom Tromey <tom@tromey.com>
8162
8163 * ada-valprint.c (ada_value_print): Use common_val_print.
8164
2e088f8b
TT
81652020-03-13 Tom Tromey <tom@tromey.com>
8166
8167 * ada-valprint.c (ada_val_print_ref): Use common_val_print.
8168
39ef85a8
TT
81692020-03-13 Tom Tromey <tom@tromey.com>
8170
8171 * ada-valprint.c (ada_value_print_num): New function.
8172 (ada_value_print_1): Use it.
8173
b9fa6e07
TT
81742020-03-13 Tom Tromey <tom@tromey.com>
8175
8176 * ada-valprint.c (ada_value_print_1) <TYPE_CODE_FLT>: Rewrite.
8177
416595d6
TT
81782020-03-13 Tom Tromey <tom@tromey.com>
8179
8180 * ada-valprint.c (ada_value_print_ptr): New function.
8181 (ada_value_print_1): Use it.
8182
5b5e15ec
TT
81832020-03-13 Tom Tromey <tom@tromey.com>
8184
8185 * ada-valprint.c (ada_val_print_gnat_array): Take a struct value;
8186 call common_val_print.
8187 (ada_val_print_1): Update.
8188 (ada_value_print_1): New function.
8189 (ada_value_print_inner): Rewrite.
8190
fbf54e75
TT
81912020-03-13 Tom Tromey <tom@tromey.com>
8192
8193 * cp-valprint.c (cp_print_value_fields): Update.
8194 (cp_print_value): New function.
8195
64b653ca
TT
81962020-03-13 Tom Tromey <tom@tromey.com>
8197
8198 * m2-valprint.c (m2_value_print_inner): Use
8199 cp_print_value_fields.
8200 * cp-valprint.c (cp_print_value_fields): New function.
8201 * c-valprint.c (c_value_print_struct): New function.
8202 (c_value_print_inner): Use c_value_print_struct.
8203 * c-lang.h (cp_print_value_fields): Declare.
8204
6999f067
TT
82052020-03-13 Tom Tromey <tom@tromey.com>
8206
8207 * c-valprint.c (c_value_print_array): New function.
8208 (c_value_print_inner): Use it.
8209
ce80b8bd
TT
82102020-03-13 Tom Tromey <tom@tromey.com>
8211
8212 * c-valprint.c (c_value_print_memberptr): New function.
8213 (c_value_print_inner): Use it.
8214
2faac269
TT
82152020-03-13 Tom Tromey <tom@tromey.com>
8216
8217 * c-valprint.c (c_value_print_int): New function.
8218 (c_value_print_inner): Use it.
8219
da3e2c29
TT
82202020-03-13 Tom Tromey <tom@tromey.com>
8221
8222 * c-valprint.c (c_value_print_ptr): New function.
8223 (c_value_print_inner): Use it.
8224
50836231
TT
82252020-03-13 Tom Tromey <tom@tromey.com>
8226
8227 * c-valprint.c (c_value_print_inner): Rewrite.
8228
4f412b6e
TT
82292020-03-13 Tom Tromey <tom@tromey.com>
8230
8231 * valprint.c (generic_value_print_complex): New function.
8232 (generic_value_print): Use it.
8233
f5354008
TT
82342020-03-13 Tom Tromey <tom@tromey.com>
8235
8236 * valprint.c (generic_val_print_float): Don't call
8237 val_print_scalar_formatted.
8238 (generic_val_print, generic_value_print): Update.
8239
3eec3b05
TT
82402020-03-13 Tom Tromey <tom@tromey.com>
8241
8242 * valprint.c (generic_value_print_char): New function
8243 (generic_value_print): Use it.
8244
fdddfccb
TT
82452020-03-13 Tom Tromey <tom@tromey.com>
8246
8247 * valprint.c (generic_value_print_int): New function.
8248 (generic_value_print): Use it.
8249
6dde7521
TT
82502020-03-13 Tom Tromey <tom@tromey.com>
8251
8252 * valprint.c (generic_value_print_bool): New function.
8253 (generic_value_print): Use it.
8254
4112d2e6
TT
82552020-03-13 Tom Tromey <tom@tromey.com>
8256
8257 * valprint.c (generic_val_print_func): Simplify.
8258 (generic_val_print, generic_value_print): Update.
8259
65786af6
TT
82602020-03-13 Tom Tromey <tom@tromey.com>
8261
8262 * valprint.c (generic_val_print_flags): Remove.
8263 (generic_val_print, generic_value_print): Update.
8264 (val_print_type_code_flags): Add original_value parameter.
8265
40f3ce18
TT
82662020-03-13 Tom Tromey <tom@tromey.com>
8267
8268 * valprint.c (generic_val_print): Update.
8269 (generic_value_print): Update.
8270 * valprint.c (generic_val_print_enum): Don't call
8271 val_print_scalar_formatted.
8272
2a5b130b
TT
82732020-03-13 Tom Tromey <tom@tromey.com>
8274
8275 * valprint.c (generic_value_print): Call generic_value_print_ptr.
8276 * valprint.c (generic_value_print_ptr): New function.
8277
abc66ce9
TT
82782020-03-13 Tom Tromey <tom@tromey.com>
8279
8280 * valprint.c (generic_value_print): Rewrite.
8281
07a32858
TT
82822020-03-13 Tom Tromey <tom@tromey.com>
8283
8284 * p-valprint.c (pascal_object_print_value_fields)
8285 (pascal_object_print_value): New functions.
8286
64d64d3a
TT
82872020-03-13 Tom Tromey <tom@tromey.com>
8288
8289 * p-valprint.c (pascal_value_print_inner): Rewrite.
8290
6a95a1f5
TT
82912020-03-13 Tom Tromey <tom@tromey.com>
8292
8293 * f-valprint.c (f_value_print_innner): Rewrite.
8294
59fcdac6
TT
82952020-03-13 Tom Tromey <tom@tromey.com>
8296
8297 * m2-valprint.c (m2_print_unbounded_array): New overload.
8298 (m2_print_unbounded_array): Update.
8299 (m2_print_array_contents): Take a struct value.
8300 (m2_value_print_inner): Rewrite.
8301
d133c3e1
TT
83022020-03-13 Tom Tromey <tom@tromey.com>
8303
8304 * d-valprint.c (dynamic_array_type): Call d_value_print_inner.
8305 (d_value_print_inner): New function.
8306 * d-lang.h (d_value_print_inner): Declare.
8307 * d-lang.c (d_language_defn): Use d_value_print_inner.
8308
23b0f06b
TT
83092020-03-13 Tom Tromey <tom@tromey.com>
8310
8311 * go-valprint.c (go_value_print_inner): New function.
8312 * go-lang.h (go_value_print_inner): Declare.
8313 * go-lang.c (go_language_defn): Use go_value_print_inner.
8314
5f56f7cb
TT
83152020-03-13 Tom Tromey <tom@tromey.com>
8316
8317 * rust-lang.c (val_print_struct, rust_print_enum): Use the value
8318 API.
8319 (rust_val_print): Rewrite.
8320 (rust_value_print_inner): New function, from rust_val_print.
8321 (rust_language_defn): Use rust_value_print_inner.
8322
26792ee0
TT
83232020-03-13 Tom Tromey <tom@tromey.com>
8324
8325 * ada-valprint.c (ada_value_print_inner): New function.
8326 * ada-lang.h (ada_value_print_inner): Declare.
8327 * ada-lang.c (ada_language_defn): Use ada_value_print_inner.
8328
24051bbe
TT
83292020-03-13 Tom Tromey <tom@tromey.com>
8330
8331 * f-valprint.c (f_value_print_innner): New function.
8332 * f-lang.h (f_value_print_innner): Declare.
8333 * f-lang.c (f_language_defn): Use f_value_print_innner.
8334
c0941be6
TT
83352020-03-13 Tom Tromey <tom@tromey.com>
8336
8337 * p-valprint.c (pascal_value_print_inner): New function.
8338 * p-lang.h (pascal_value_print_inner): Declare.
8339 * p-lang.c (pascal_language_defn): Use pascal_value_print_inner.
8340
62c4663d
TT
83412020-03-13 Tom Tromey <tom@tromey.com>
8342
8343 * m2-valprint.c (m2_value_print_inner): New function.
8344 * m2-lang.h (m2_value_print_inner): Declare.
8345 * m2-lang.c (m2_language_defn): Use m2_value_print_inner.
8346
62182190
TT
83472020-03-13 Tom Tromey <tom@tromey.com>
8348
8349 * opencl-lang.c (opencl_language_defn): Use c_value_print_inner.
8350 * objc-lang.c (objc_language_defn): Use c_value_print_inner.
8351 * c-valprint.c (c_value_print_inner): New function.
8352 * c-lang.h (c_value_print_inner): Declare.
8353 * c-lang.c (c_language_defn, cplus_language_defn)
8354 (asm_language_defn, minimal_language_defn): Use
8355 c_value_print_inner.
8356
1e592a8a
TT
83572020-03-13 Tom Tromey <tom@tromey.com>
8358
8359 * p-valprint.c (pascal_object_print_value_fields): Now static.
8360 * p-lang.h (pascal_object_print_value_fields): Don't declare.
8361
7fe471e9
TT
83622020-03-13 Tom Tromey <tom@tromey.com>
8363
8364 * c-valprint.c (c_val_print_array): Simplify.
8365
d121c6ce
TT
83662020-03-13 Tom Tromey <tom@tromey.com>
8367
8368 * valprint.c (value_print_array_elements): New function.
8369 * valprint.h (value_print_array_elements): Declare.
8370
4dba70ee
TT
83712020-03-13 Tom Tromey <tom@tromey.com>
8372
8373 * printcmd.c (print_formatted): Use value_print_scalar_formatted.
8374 * mips-tdep.c (mips_print_register): Use
8375 value_print_scalar_formatted.
8376
4f9ae810
TT
83772020-03-13 Tom Tromey <tom@tromey.com>
8378
8379 * valprint.h (value_print_scalar_formatted): Declare.
8380 * valprint.c (value_print_scalar_formatted): New function.
8381
156bfec9
TT
83822020-03-13 Tom Tromey <tom@tromey.com>
8383
8384 * valprint.h (generic_value_print): Declare.
8385 * valprint.c (generic_value_print): New function.
8386
2b4e573d
TT
83872020-03-13 Tom Tromey <tom@tromey.com>
8388
8389 * valprint.c (do_val_print): Call la_value_print_inner, if
8390 available.
8391 * rust-lang.c (rust_language_defn): Update.
8392 * p-lang.c (pascal_language_defn): Update.
8393 * opencl-lang.c (opencl_language_defn): Update.
8394 * objc-lang.c (objc_language_defn): Update.
8395 * m2-lang.c (m2_language_defn): Update.
8396 * language.h (struct language_defn) <la_value_print_inner>: New
8397 member.
8398 * language.c (unknown_language_defn, auto_language_defn): Update.
8399 * go-lang.c (go_language_defn): Update.
8400 * f-lang.c (f_language_defn): Update.
8401 * d-lang.c (d_language_defn): Update.
8402 * c-lang.c (c_language_defn, cplus_language_defn)
8403 (asm_language_defn, minimal_language_defn): Update.
8404 * ada-lang.c (ada_language_defn): Update.
8405
a1f6a07c
TT
84062020-03-13 Tom Tromey <tom@tromey.com>
8407
8408 * c-valprint.c (c_value_print): Use common_val_print.
8409
410cf315
TT
84102020-03-13 Tom Tromey <tom@tromey.com>
8411
8412 * cp-valprint.c (cp_print_static_field): Use common_val_print.
8413
72a45c93
TT
84142020-03-13 Tom Tromey <tom@tromey.com>
8415
8416 * f-valprint.c (f77_print_array_1, f_val_print): Use
8417 common_val_print.
8418
040f66bd
TT
84192020-03-13 Tom Tromey <tom@tromey.com>
8420
8421 * riscv-tdep.c (riscv_print_one_register_info): Use
8422 common_val_print.
8423
a6e05a6c
TT
84242020-03-13 Tom Tromey <tom@tromey.com>
8425
8426 * mi/mi-main.c (output_register): Use common_val_print.
8427
3444c526
TT
84282020-03-13 Tom Tromey <tom@tromey.com>
8429
8430 * infcmd.c (default_print_one_register_info): Use
8431 common_val_print.
8432
c2a44efe
TT
84332020-03-13 Tom Tromey <tom@tromey.com>
8434
8435 * valprint.h (common_val_print_checked): Declare.
8436 * valprint.c (common_val_print_checked): New function.
8437 * stack.c (print_frame_arg): Use common_val_print_checked.
8438
b0c26e99
TT
84392020-03-13 Tom Tromey <tom@tromey.com>
8440
8441 * valprint.c (do_val_print): New function, from val_print.
8442 (val_print): Use do_val_print.
8443 (common_val_print): Use do_val_print.
8444
ce3acbe9
TT
84452020-03-13 Tom Tromey <tom@tromey.com>
8446
8447 * valprint.c (value_print): Use scoped_value_mark.
8448
96c7f873
TV
84492020-03-13 Tom de Vries <tdevries@suse.de>
8450
8451 PR symtab/25646
8452 * psymtab.c (partial_symtab::partial_symtab): Don't set
8453 globals_offset and statics_offset. Push element onto
8454 current_global_psymbols and current_static_psymbols stacks.
8455 (concat): New function.
8456 (end_psymtab_common): Set globals_offset and statics_offset. Pop
8457 element from current_global_psymbols and current_static_psymbols
8458 stacks. Concat popped elements to global_psymbols and
8459 static_symbols.
8460 (add_psymbol_to_list): Use current_global_psymbols and
8461 current_static_psymbols stacks.
8462 * psymtab.h (class psymtab_storage): Add current_global_psymbols and
8463 current_static_psymbols fields.
8464
6ba0a321
CB
84652020-03-12 Christian Biesinger <cbiesinger@google.com>
8466
8467 * corelow.c (sniff_core_bfd): Remove.
8468 (class core_target) <m_core_vec>: Remove.
8469 (core_target::core_target): Update.
8470 (core_file_fns): Remove.
8471 (deprecated_add_core_fns): Remove.
8472 (default_core_sniffer): Remove.
8473 (sniff_core_bfd): Remove.
8474 (default_check_format): Remove.
8475 (gdb_check_format): Remove.
8476 (core_target_open): Update.
8477 (core_target::get_core_register_section): Update.
8478 (get_core_registers_cb): Update.
8479 (core_target::fetch_registers): Update.
8480 * gdbcore.h (struct core_fns): Remove.
8481 (deprecated_add_core_fns): Remove.
8482 (default_core_sniffer): Remove.
8483 (default_check_format): Remove.
8484
227031b2
TT
84852020-03-12 Tom Tromey <tom@tromey.com>
8486
8487 * arm-tdep.c (struct arm_mapping_symbol) <value>: Now a
8488 CORE_ADDR.
8489 (struct arm_exidx_entry) <addr>: Now a CORE_ADDR.
8490
53807e9f
TT
84912020-03-12 Tom Tromey <tom@tromey.com>
8492
8493 * remote.c (remote_target::download_tracepoint)
8494 (remote_target::enable_tracepoint)
8495 (remote_target::disable_tracepoint): Use phex, not sprintf_vma.
8496 * breakpoint.c (print_recreate_masked_watchpoint): Use phex, not
8497 sprintf_vma.
8498
64f25102
TT
84992020-03-12 Tom Tromey <tom@tromey.com>
8500
8501 * symfile-mem.c: Update CORE_ADDR size assert.
8502
272cd5a3
SM
85032020-03-12 Simon Marchi <simon.marchi@efficios.com>
8504
8505 * selftest.m4: Move to gdbsupport/.
8506 * acinclude.m4: Update path to selftest.m4.
8507
74cd3f9d
SM
85082020-03-12 Simon Marchi <simon.marchi@efficios.com>
8509
8510 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Rename to...
8511 (SELFTESTS_SRCS): ... this. Add disasm-selftests.c,
8512 gdbarch-selfselftests.c and selftest-arch.c.
8513 (SUBDIR_UNITTESTS_OBS): Rename to...
8514 (SELFTESTS_OBS): ... this.
8515 (COMMON_SFILES): Remove disasm-selftests.c and
8516 gdbarch-selftests.c.
8517 * configure.ac: Don't add selftest-arch.{c,o} to
8518 CONFIG_{SRCS,OBS}.
8519 * disasm-selftests.c, gdbarch-selftests.c: Remove GDB_SELF_TEST
8520 preprocessor conditions.
8521
db6878ac
SM
85222020-03-12 Simon Marchi <simon.marchi@efficios.com>
8523
8524 * configure.ac: Don't source bfd/development.sh.
8525 * selftest.m4: Modify comment.
8526 * configure: Re-generate.
8527
4d696a5c
SM
85282020-03-12 Simon Marchi <simon.marchi@efficios.com>
8529
8530 * selftest.m4 (GDB_AC_SELFTEST): Error out if $development is
8531 not "true" or "false".
8532 * configure: Re-generate.
8533
8dd8e1c7
CB
85342020-03-12 Christian Biesinger <cbiesinger@google.com>
8535
8536 * Makefile.in (HFILES_NO_SRCDIR): Add new arm-nbsd-tdep.h file.
8537 * arm-nbsd-nat.c (arm_supply_gregset): Moved to arm-nbsd-tdep and
8538 renamed to arm_nbsd_supply_gregset.
8539 (fetch_register): Update to call arm_nbsd_supply_gregset.
8540 (fetch_regs): Remove in favor of fetch_register with a -1 regno.
8541 (arm_netbsd_nat_target::fetch_registers): Update.
8542 (fetch_elfcore_registers): Removed.
8543 (_initialize_arm_netbsd_nat): Removed call to deprecated_add_core_fns.
8544 * arm-nbsd-tdep.c (struct arm_nbsd_reg): New struct.
8545 (arm_nbsd_supply_gregset): Moved from arm-nbsd-nat.c and updated to
8546 not require NetBSD system headers.
8547 (arm_nbsd_regset): New struct.
8548 (arm_nbsd_iterate_over_regset_sections): New function.
8549 (arm_netbsd_init_abi_common): Updated to call
8550 set_gdbarch_iterate_over_regset_sections.
8551 * arm-nbsd-tdep.h: New file.
8552
dd69bf7a
KB
85532020-03-11 Kevin Buettner <kevinb@redhat.com>
8554
8555 * symtab.c (find_pc_sect_line): Add check which prevents infinite
8556 recursion.
8557
a0761e34
SM
85582020-03-11 Simon Marchi <simon.marchi@efficios.com>
8559
8560 * configure: Re-generate.
8561
e7a82140
TT
85622020-03-11 Tom Tromey <tromey@adacore.com>
8563
8564 * ada-typeprint.c (print_choices): Fix comment.
8565
dcc050c8
AB
85662020-03-11 Andrew Burgess <andrew.burgess@embecosm.com>
8567
8568 * buildsyms.c (buildsym_compunit::record_line): Avoid accessing
8569 previous item in the list, when the list has no items.
8570
1c33af77
TV
85712020-03-11 Tom de Vries <tdevries@suse.de>
8572
8573 * dwarf2/loc.c (dwarf2_evaluate_property): Handle NULL frame in
8574 PROP_LOCLIST handling code.
8575
8c95582d
AB
85762020-03-10 Andrew Burgess <andrew.burgess@embecosm.com>
8577
8578 * buildsym-legacy.c (record_line): Pass extra parameter to
8579 record_line.
8580 * buildsym.c (buildsym_compunit::record_line): Take an extra
8581 parameter, reduce duplication in the line table, and record the
8582 is_stmt flag in the line table.
8583 * buildsym.h (buildsym_compunit::record_line): Add extra
8584 parameter.
8585 * disasm.c (do_mixed_source_and_assembly_deprecated): Ignore
8586 non-statement lines.
8587 * dwarf2/read.c (dwarf_record_line_1): Add extra parameter, pass
8588 this to the symtab builder.
8589 (dwarf_finish_line): Pass extra parameter to dwarf_record_line_1.
8590 (lnp_state_machine::record_line): Pass a suitable is_stmt flag
8591 through to dwarf_record_line_1.
8592 * infrun.c (process_event_stop_test): When stepping, don't stop at
8593 a non-statement instruction, and only refresh the step info when
8594 we land in the middle of a line's range. Also add an extra
8595 comment.
8596 * jit.c (jit_symtab_line_mapping_add_impl): Initialise is_stmt
8597 field.
8598 * record-btrace.c (btrace_find_line_range): Only record lines
8599 marked as is-statement.
8600 * stack.c (frame_show_address): Show the frame address if we are
8601 in a non-statement sal.
8602 * symmisc.c (dump_symtab_1): Print the is_stmt flag.
8603 (maintenance_print_one_line_table): Print a header for the is_stmt
8604 column, and include is_stmt information in the output.
8605 * symtab.c (find_pc_sect_line): Find lines marked as statements in
8606 preference to non-statements.
8607 (find_pcs_for_symtab_line): Prefer is-statement entries.
8608 (find_line_common): Likewise.
8609 * symtab.h (struct linetable_entry): Add is_stmt field.
8610 (struct symtab_and_line): Likewise.
8611 * xcoffread.c (arrange_linetable): Initialise is_stmt field when
8612 arranging the line table.
8613
e4003a34
TV
86142020-03-07 Tom de Vries <tdevries@suse.de>
8615
8616 * dwarf2/read.c (read_typedef): Treat anonymous typedef as forwarder
8617 DIE.
8618
e8932576
TT
86192020-03-07 Tom Tromey <tom@tromey.com>
8620
8621 * valops.c (value_literal_complex): Remove obsolete comment.
8622 * gdbtypes.h (enum type_code) <TYPE_CODE_FLT>: Remove obsolete
8623 comment.
8624
29734269
SM
86252020-03-06 Simon Marchi <simon.marchi@polymtl.ca>
8626
8627 * infrun.h: Forward-declare thread_info.
8628 (set_step_info): Add thread_info parameter, add doc.
8629 * infrun.c (set_step_info): Add thread_info parameter, move doc
8630 to header.
8631 * infrun.c (process_event_stop_test): Pass thread to
8632 set_step_info call.
8633 * infcmd.c (set_step_frame): Add thread_info pointer, pass it to
8634 set_step_info.
8635 (prepare_one_step): Add thread_info parameter, pass it to
8636 set_step_frame and prepare_one_step (recursive) call.
8637 (step_1): Pass thread to prepare_one_step call.
8638 (step_command_fsm::should_stop): Pass thread to
8639 prepare_one_step.
8640 (until_next_fsm): Pass thread to set_step_frame call.
8641 (finish_command): Pass thread to set_step_info call.
8642
b7d64b29
HD
86432020-03-06 Hannes Domani <ssbssa@yahoo.de>
8644
8645 * windows-tdep.c (windows_solib_create_inferior_hook):
8646 Check if inferior is running.
8647
09f2921c
TV
86482020-03-06 Tom de Vries <tdevries@suse.de>
8649
8650 * NEWS: Fix "the the".
8651 * ctfread.c: Same.
8652
fd760e79
TV
86532020-03-06 Tom de Vries <tdevries@suse.de>
8654
8655 * psymtab.c (psymtab_to_symtab): Don't print "done.".
8656
20ea4a60
AB
86572020-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
8658
8659 * .dir-locals.el: Add a comment referencing the other copies of
8660 this file.
8661
0afbabf0
JB
86622020-03-05 John Baldwin <jhb@FreeBSD.org>
8663
8664 * fbsd-tdep.c (fbsd_make_corefile_notes): Use std::string for
8665 psargs.
8666
842806cb
TBA
86672020-03-05 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
8668
8669 * .gitattributes: New file.
8670
be1e3d3e
TT
86712020-03-04 Tom Tromey <tom@tromey.com>
8672
8673 * symmisc.c (print_symbol_bcache_statistics)
8674 (print_objfile_statistics): Update.
8675 * symfile.c (allocate_symtab): Use intern.
8676 * psymtab.c (partial_symtab::partial_symtab): Use intern.
8677 * objfiles.h (struct objfile_per_bfd_storage) <filename_cache,
8678 macro_cache>: Remove.
8679 <string_cache>: New member.
8680 (struct objfile) <intern>: New methods.
8681 * elfread.c (elf_symtab_read): Use intern.
8682 * dwarf2/read.c (fixup_go_packaging): Intern package name.
8683 (dwarf2_compute_name, dwarf2_physname)
8684 (create_dwo_unit_in_dwp_v1, create_dwo_unit_in_dwp_v2): Intern
8685 names.
8686 (guess_partial_die_structure_name): Update.
8687 (partial_die_info::fixup): Intern name.
8688 (dwarf2_canonicalize_name): Change parameter to objfile. Intern
8689 name.
8690 (dwarf2_name): Intern name. Update.
8691 * buildsym.c (buildsym_compunit::get_macro_table): Use
8692 string_cache.
8693
4e7625fd
TT
86942020-03-04 Tom Tromey <tom@tromey.com>
8695
8696 * jit.c (bfd_open_from_target_memory): Make "target" const.
8697 * corefile.c (gnutarget): Now const.
8698 * gdbcore.h (gnutarget): Now const.
8699
46f9f931
HD
87002020-03-04 Hannes Domani <ssbssa@yahoo.de>
8701
8702 * NEWS: Mention support for WOW64 processes.
8703 * amd64-windows-nat.c (amd64_mappings): Rename and remove static.
8704 (amd64_windows_segment_register_p): Remove static.
8705 (_initialize_amd64_windows_nat): Update.
8706 * configure.nat <windows> (NATDEPFILES): Add i386-windows-nat.o.
8707 * i386-windows-nat.c (context_offset): Update.
8708 (i386_mappings): Rename and remove static.
8709 (i386_windows_segment_register_p): Remove static.
8710 (_initialize_i386_windows_nat): Update.
8711 * windows-nat.c (STATUS_WX86_BREAKPOINT): New macro.
8712 (STATUS_WX86_SINGLE_STEP): New macro.
8713 (EnumProcessModulesEx): New macro.
8714 (Wow64SuspendThread): New macro.
8715 (Wow64GetThreadContext): New macro.
8716 (Wow64SetThreadContext): New macro.
8717 (Wow64GetThreadSelectorEntry): New macro.
8718 (windows_set_context_register_offsets): Add static.
8719 (windows_set_segment_register_p): Likewise.
8720 (windows_add_thread): Adapt for WOW64 processes.
8721 (windows_fetch_one_register): Likewise.
8722 (windows_nat_target::fetch_registers): Likewise.
8723 (windows_store_one_register): Likewise.
8724 (display_selector): Likewise.
8725 (display_selectors): Likewise.
8726 (handle_exception): Likewise.
8727 (windows_continue): Likewise.
8728 (windows_nat_target::resume): Likewise.
8729 (windows_add_all_dlls): Likewise.
8730 (do_initial_windows_stuff): Likewise.
8731 (windows_nat_target::attach): Likewise.
8732 (windows_get_exec_module_filename): Likewise.
8733 (windows_nat_target::create_inferior): Likewise.
8734 (windows_xfer_siginfo): Likewise.
8735 (_initialize_loadable): Initialize Wow64SuspendThread,
8736 Wow64GetThreadContext, Wow64SetThreadContext,
8737 Wow64GetThreadSelectorEntry and EnumProcessModulesEx.
8738 * windows-nat.h (windows_set_context_register_offsets):
8739 Remove declaration.
8740 (windows_set_segment_register_p): Likewise.
8741 (i386_windows_segment_register_p): Add declaration.
8742 (amd64_windows_segment_register_p): Likewise.
8743
440cf44e
LM
87442020-03-04 Luis Machado <luis.machado@linaro.org>
8745
8746 Revert aa66aac47b4dd38f9524ddb5546c08cc09930d37 due to regressions
8747 in "info registers" for AArch64/ARM.
8748
8749 The change caused "info registers" to not print GPR's.
8750
8751 gdb/ChangeLog:
8752
8753 2020-02-01 Shahab Vahedi <shahab@synopsys.com>
8754
8755 * target-descriptions.c (tdesc_register_in_reggroup_p): Return 0
8756 when reg->group is empty and reggroup is not.
8757
1009d92f
TT
87582020-03-03 Tom Tromey <tromey@adacore.com>
8759
8760 * dwarf2/frame.c (struct dwarf2_frame_cache)
8761 <checked_tailcall_bottom, entry_cfa_sp_offset,
8762 entry_cfa_sp_offset_p>: Remove members.
8763 (dwarf2_frame_cache): Call dwarf2_tailcall_sniffer_first.
8764 (dwarf2_frame_prev_register): Don't call
8765 dwarf2_tailcall_sniffer_first.
8766 (dwarf2_append_unwinders): Don't append tailcall unwinder.
8767 * frame-unwind.c (add_unwinder): New fuction.
8768 (frame_unwind_init): Use it. Add tailcall unwinder.
8769
5e5d66b6
AB
87702020-03-03 Andrew Burgess <andrew.burgess@embecosm.com>
8771 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
8772
8773 * f-valprint.c (f_val_print): Handle TYPE_CODE_BOOL, any non-zero
8774 value should be printed as true.
8775
584cf46d
HD
87762020-03-03 Hannes Domani <ssbssa@yahoo.de>
8777
8778 * windows-tdep.c (windows_solib_create_inferior_hook): New function.
8779 (windows_init_abi): Set and use windows_so_ops.
8780
7b973adc
SDJ
87812020-03-03 Sergio Durigan Junior <sergiodj@redhat.com>
8782
8783 * printcmd.c (print_c_string): Check also for TYPE_CODE_PTR
8784 when verifying if dealing with a convenience variable.
8785
bb7b70ab
LM
87862020-03-03 Luis Machado <luis.machado@linaro.org>
8787
8788 * auxv.c (default_print_auxv_entry): Add new AUXV entries.
8789
9822cb57
SM
87902020-03-02 Simon Marchi <simon.marchi@polymtl.ca>
8791
8792 * infrun.c (gdbarch_supports_displaced_stepping): New.
8793 (use_displaced_stepping): Break up conditions in smaller pieces.
8794 Use gdbarch_supports_displaced_stepping.
8795 (displaced_step_prepare_throw): Use
8796 gdbarch_supports_displaced_stepping.
8797
63e163f2
AB
87982020-03-02 Andrew Burgess <andrew.burgess@embecosm.com>
8799
8800 * NEWS: Mention new behaviour of the history filename.
8801 * top.c (write_history_p): Add comment.
8802 (show_write_history_p): Add header comment, give a different
8803 message when history writing is on, but the history filename is
8804 empty.
8805 (history_filename): Add comment.
8806 (history_filename_empty): New function.
8807 (show_history_filename): Add header comment, give a different
8808 message when the filename is empty.
8809 (init_history): Compare history_filename against nullptr, and only
8810 read history if the filename is not empty.
8811 (set_history_filename): Add header comment, and only make
8812 non-empty filenames absolute.
8813 (init_main): Make the filename argument to 'set history filename'
8814 optional.
8815
81b86b97
CB
88162020-03-02 Christian Biesinger <cbiesinger@google.com>
8817
8818 * arm-nbsd-nat.c (arm_supply_fparegset): Rename to...
8819 (arm_supply_vfpregset): ...this, and update to use VFP registers.
8820 (fetch_fp_register): Update.
8821 (fetch_fp_regs): Update.
8822 (store_fp_register): Update.
8823 (store_fp_regs): Update.
8824 (arm_netbsd_nat_target::read_description): New function.
8825 (fetch_elfcore_registers): Update.
8826
24ed6739
AB
88272020-03-02 Andrew Burgess <andrew.burgess@embecosm.com>
8828
8829 * remote.c (remote_target::remote_parse_stop_reply): Don't use the
8830 general_thread if the stop reply is missing a thread-id.
8831 (remote_target::process_stop_reply): Use the first non-exited
8832 thread if the target didn't pass a thread-id.
8833 * infrun.c (do_target_wait): Move call to
8834 switch_to_inferior_no_thread to ....
8835 (do_target_wait_1): ... here.
8836
a84bb2a0
JT
88372020-02-29 Jon Turney <jon.turney@dronecode.org.uk>
8838
8839 * debuginfod-support.c: Include defs.h first.
8840
658dadf0
TV
88412020-02-28 Tom de Vries <tdevries@suse.de>
8842
8843 * symfile.c (set_initial_language): Use default language for lookup.
8844
4ebe4877
SM
88452020-02-28 Simon Marchi <simon.marchi@efficios.com>
8846
8847 * dwarf2/read.c (cutu_reader::init_tu_and_read_dwo_dies): Remove
8848 reader variable, pass `this` to read_cutu_die_from_dwo.
8849
e5da1139
AM
88502020-02-27 Aaron Merey <amerey@redhat.com>
8851
8852 * source.c (open_source_file): Check for nullptr when computing
8853 srcpath.
8854
317f7127
TT
88552020-02-27 Tom Tromey <tromey@adacore.com>
8856
8857 * dwarf2/read.c (struct field_info) <nfields>: Now a method, not a
8858 member.
8859 (dwarf2_add_field): Don't update nfields.
8860 (dwarf2_attach_fields_to_type, process_structure_scope): Update.
8861
3104d9ee
AB
88622020-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
8863
8864 * gdbtypes.c (create_array_type_with_stride): Use std::abs not
8865 abs.
8866
b83470bf
TT
88672020-02-26 Tom Tromey <tom@tromey.com>
8868
8869 * dwarf2/read.c (struct dwarf2_include_psymtab): New.
8870 (dwarf2_create_include_psymtab): Use dwarf2_include_psymtab.
8871 (dwarf2_psymtab::expand_psymtab, dwarf2_psymtab::readin_p)
8872 (dwarf2_psymtab::get_compunit_symtab): Remove null checks for
8873 per_cu_data.
8874
edfe0a0c
TT
88752020-02-26 Tom Tromey <tom@tromey.com>
8876
8877 * dwarf2/index-write.c (psym_index_map): Change type.
8878 (add_address_entry_worker, write_one_signatured_type)
8879 (recursively_count_psymbols, recursively_write_psymbols)
8880 (class debug_names, psyms_seen_size, write_gdbindex)
8881 (write_debug_names): Use partial_symtab, not dwarf2_psymtab.
8882
0d79cdc4
AM
88832020-02-26 Aaron Merey <amerey@redhat.com>
8884
8885 * Makefile.in: Handle optional debuginfod support.
8886 * NEWS: Update.
8887 * README: Add --with-debuginfod summary.
8888 * config.in: Regenerate.
8889 * configure: Regenerate.
8890 * configure.ac: Handle optional debuginfod support.
8891 * debuginfod-support.c: debuginfod helper functions.
8892 * debuginfod-support.h: Ditto.
8893 * doc/gdb.texinfo: Add --with-debuginfod to configure options
8894 summary.
8895 * dwarf2/read.c (dwarf2_get_dwz_file): Query debuginfod servers
8896 when a dwz file cannot be found.
8897 * elfread.c (elf_symfile_read): Query debuginfod servers when a
8898 debuginfo file cannot be found.
8899 * source.c (open_source_file): Query debuginfod servers when a
8900 source file cannot be found.
8901 * top.c (print_gdb_configuration): Include
8902 --{with,without}-debuginfod in the output.
8903
b65ce565
JG
89042020-02-26 Jérémie Galarneau <jeremie.galarneau@efficios.com>
8905
8906 * thread.c (thr_try_catch_cmd): Print thread name.
8907
d4c9a4f8
SM
89082020-02-26 Simon Marchi <simon.marchi@efficios.com>
8909
8910 * dwarf2/loc.h (dwarf2_fetch_die_loc_sect_off,
8911 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
8912 dwarf2_fetch_die_type_sect_off): Move to...
8913 * dwarf2/read.h (dwarf2_fetch_die_loc_sect_off,
8914 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
8915 dwarf2_fetch_die_type_sect_off): ... here.
8916 * dwarf2/read.c (dwarf2_fetch_die_loc_sect_off,
8917 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
8918 dwarf2_fetch_die_type_sect_off): Move doc to header file.
8919
0dce4280
TV
89202020-02-26 Tom de Vries <tdevries@suse.de>
8921
8922 PR gdb/25603
8923 * symfile.c (set_initial_language): Exit-early if
8924 language_mode == language_mode_manual.
8925
450a1bfc
SM
89262020-02-25 Simon Marchi <simon.marchi@polymtl.ca>
8927
8928 * dwarf2/loc.h (dwarf2_read_addr_index): Move...
8929 * dwarf2/read.h (dwarf2_read_addr_index): ... here.
8930 * dwarf2/read.c (dwarf2_read_addr_index): Move doc to header.
8931
9e80cfa1
AB
89322020-02-25 Andrew Burgess <andrew.burgess@embecosm.com>
8933
8934 * gdbtypes.c (create_array_type_with_stride): Handle negative
8935 array strides.
8936 * valarith.c (value_subscripted_rvalue): Likewise.
8937
09624f1f
LM
89382020-02-25 Luis Machado <luis.machado@linaro.org>
8939
8940 * aarch64-tdep.c (aarch64_vnv_type): Fix comment typo.
8941
8cb5117c
SM
89422020-02-25 Simon Marchi <simon.marchi@polymtl.ca>
8943
8944 * loc.h (dwarf2_get_die_type): Move to...
8945 * read.h (dwarf2_get_die_type): ... here.
8946 * read.c (dwarf2_get_die_type): Move doc to header.
8947
c325c44e
JB
89482020-02-25 Joel Brobecker <brobecker@adacore.com>
8949
8950 * copypright.py (EXCLUDE_LIST): Add 'gnulib/config.in' and
8951 'gnulib/Makefile.in' to the list.
8952
4ac93832
TT
89532020-02-24 Tom Tromey <tom@tromey.com>
8954
8955 * dwarf2/read.h (struct type_unit_unshareable) <num_symtabs>:
8956 Remove.
8957 * dwarf2/read.c (dwarf2_cu::setup_type_unit_groups): Use
8958 XOBNEWVEC.
8959
197400e8
TT
89602020-02-24 Tom Tromey <tom@tromey.com>
8961
8962 * dwarf2/read.h (struct dwarf2_per_cu_data) <type_unit_group_p>:
8963 New method.
8964 * dwarf2/read.c (IS_TYPE_UNIT_GROUP): Remove.
8965 (dw2_do_instantiate_symtab, dw2_get_file_names)
8966 (build_type_psymtab_dependencies, load_full_type_unit): Update.
8967
76935768
TT
89682020-02-24 Tom Tromey <tom@tromey.com>
8969
8970 * dwarf2read.c (dwarf2_build_psymtabs_hard): Use
8971 make_scoped_restore.
8972 (dwarf2_psymtab::read_symtab): Don't clear
8973 reading_partial_symbols.
8974
a88ef40d
TV
89752020-02-24 Tom de Vries <tdevries@suse.de>
8976
8977 PR gdb/25592
8978 * stack.c (iterate_over_block_locals): Handle LOC_CONST.
8979
c9af6521
TV
89802020-02-24 Tom de Vries <tdevries@suse.de>
8981
8982 * tui/tui-layout.c (_initialize_tui_layout): Fix help messages for
8983 commands layout next/prev/regs.
8984
5707a07a
TT
89852020-02-22 Tom Tromey <tom@tromey.com>
8986
8987 * dwarf2/loc.h (dwarf2_compile_expr_to_ax): Don't declare.
8988 * dwarf2/loc.c (dwarf2_compile_expr_to_ax): Now static.
8989
3b0fb49e
TT
89902020-02-22 Tom Tromey <tom@tromey.com>
8991
8992 * tui/tui-data.h (TUI_DISASM_WIN): Cast to tui_disasm_window.
8993
283be8bf
TT
89942020-02-22 Tom Tromey <tom@tromey.com>
8995
8996 * tui/tui-win.c (_initialize_tui_win): Add usage text.
8997 * tui/tui-stack.c (_initialize_tui_stack): Add usage text.
8998 * tui/tui-regs.c (_initialize_tui_regs): Add usage text.
8999 * tui/tui.c (_initialize_tui): Add usage text.
9000
ca793b96
TT
90012020-02-22 Tom Tromey <tom@tromey.com>
9002
9003 * tui/tui-win.c (tui_set_focus_command)
9004 (tui_set_win_height_command): Use error_no_arg.
9005 (_initialize_tui_win): Update help text.
9006 (FOCUS_USAGE, WIN_HEIGHT_USAGE): Don't define.
9007
432b5c40
TT
90082020-02-22 Tom Tromey <tom@tromey.com>
9009
9010 * tui/tui-layout.c (extract_display_start_addr): Rewrite.
9011 * tui/tui-disasm.h (struct tui_disasm_window)
9012 <display_start_addr>: Declare.
9013 * tui/tui-source.h (struct tui_source_window)
9014 <display_start_addr>: Declare.
9015 * tui/tui-winsource.h (struct tui_source_window_base)
9016 <show_source_line, display_start_addr>: New methods.
9017 <m_horizontal_offset, m_start_line_or_addr, m_gdbarch, m_content>:
9018 Rename and move to protected section.
9019 * tui/tui-winsource.c (tui_source_window_base::update_source_window)
9020 (tui_source_window_base::do_erase_source_content): Update.
9021 (tui_source_window_base::show_source_line): Now a method.
9022 (tui_source_window_base::show_source_content)
9023 (tui_source_window_base::tui_source_window_base)
9024 (tui_source_window_base::rerender)
9025 (tui_source_window_base::refill)
9026 (tui_source_window_base::do_scroll_horizontal)
9027 (tui_source_window_base::set_is_exec_point_at)
9028 (tui_source_window_base::update_breakpoint_info)
9029 (tui_source_window_base::update_exec_info): Update.
9030 * tui/tui-source.c (tui_source_window::set_contents)
9031 (tui_source_window::showing_source_p)
9032 (tui_source_window::do_scroll_vertical)
9033 (tui_source_window::location_matches_p)
9034 (tui_source_window::line_is_displayed): Update.
9035 (tui_source_window::display_start_addr): New method.
9036 * tui/tui-disasm.c (tui_disasm_window::set_contents)
9037 (tui_disasm_window::do_scroll_vertical)
9038 (tui_disasm_window::location_matches_p): Update.
9039 (tui_disasm_window::display_start_addr): New method.
9040
01b1af32
TT
90412020-02-22 Tom Tromey <tom@tromey.com>
9042
9043 * NEWS: Add entry for gdb.register_window_type.
9044 * tui/tui-layout.h (window_factory): New typedef.
9045 (tui_register_window): Declare.
9046 * tui/tui-layout.c (saved_tui_windows): New global.
9047 (tui_apply_current_layout): Use it.
9048 (tui_register_window): New function.
9049 * python/python.c (do_start_initialization): Call
9050 gdbpy_initialize_tui.
9051 (python_GdbMethods): Add "register_window_type" function.
9052 * python/python-internal.h (gdbpy_register_tui_window)
9053 (gdbpy_initialize_tui): Declare.
9054 * python/py-tui.c: New file.
9055 * Makefile.in (SUBDIR_PYTHON_SRCS): Add py-tui.c.
9056
fc96d20b
TT
90572020-02-22 Tom Tromey <tom@tromey.com>
9058
9059 * tui/tui-io.c (do_tui_putc): Don't omit annotations.
9060
935c78c0
TT
90612020-02-22 Tom Tromey <tom@tromey.com>
9062
9063 * tui/tui-win.c (tui_set_win_focus_to): Move to tui-data.c.
9064 * tui/tui-data.h (tui_set_win_with_focus): Don't declare.
9065 * tui/tui-data.c (tui_set_win_with_focus): Remove.
9066 (tui_set_win_focus_to): Move from tui-win.c.
9067
0240c8f1
TT
90682020-02-22 Tom Tromey <tom@tromey.com>
9069
9070 * tui/tui-layout.c (make_standard_window, get_locator_window): New
9071 functions.
9072 (known_window_types): New global.
9073 (tui_get_window_by_name): Reimplement.
9074 (initialize_known_windows): New function.
9075 (validate_window_name): Rewrite.
9076 (_initialize_tui_layout): Call initialize_known_windows.
9077
fdb01f0c
TT
90782020-02-22 Tom Tromey <tom@tromey.com>
9079
9080 * tui/tui.h (enum tui_win_type) <LOCATOR_WIN, DATA_ITEM_WIN>:
9081 Remove constants.
9082 * tui/tui-winsource.h (struct tui_source_window_base)
9083 <tui_source_window_base>: Remove parameter.
9084 * tui/tui-winsource.c
9085 (tui_source_window_base::tui_source_window_base): Remove
9086 parameter.
9087 (tui_source_window_base::refill): Update.
9088 * tui/tui-stack.h (struct tui_locator_window)
9089 <tui_locator_window>: Update.
9090 * tui/tui-source.h (struct tui_source_window) <tui_source_window>:
9091 Default the constructor.
9092 * tui/tui-regs.h (struct tui_data_item_window)
9093 <tui_data_item_window>: Default the constructor.
9094 (struct tui_data_window) <tui_data_window>: Likewise.
9095 * tui/tui-disasm.h (struct tui_disasm_window) <tui_disasm_window>:
9096 Default the constructor.
9097 * tui/tui-data.h (struct tui_gen_win_info) <tui_gen_win_info>:
9098 Default the constructor.
9099 <type>: Remove.
9100 (struct tui_win_info) <tui_win_info>: Default the constructor.
9101 * tui/tui-data.c (tui_win_info::tui_win_info): Remove.
9102 * tui/tui-command.h (struct tui_cmd_window) <tui_cmd_window>:
9103 Default the constructor.
9104
865a5aec
TT
91052020-02-22 Tom Tromey <tom@tromey.com>
9106
9107 * tui/tui-wingeneral.h (tui_make_all_invisible): Don't declare.
9108 * tui/tui-wingeneral.c (tui_make_all_invisible): Remove.
9109 * tui/tui-win.c (tui_resize_all): Don't call
9110 tui_delete_invisible_windows.
9111 * tui/tui-layout.c (tui_apply_current_layout): Delete windows when
9112 done.
9113 (tui_set_layout): Update.
9114 (tui_add_win_to_layout): Don't call tui_delete_invisible_windows.
9115 * tui/tui-data.h (tui_delete_invisible_windows): Don't declare.
9116 * tui/tui-data.c (tui_delete_invisible_windows): Remove.
9117
e098d18c
TT
91182020-02-22 Tom Tromey <tom@tromey.com>
9119
9120 * tui/tui-win.c (tui_partial_win_by_name): Handle ambiguity
9121 correctly.
9122
eb9c8874
TT
91232020-02-22 Tom Tromey <tom@tromey.com>
9124
9125 * tui/tui-data.c (tui_next_win, tui_prev_win): Reimplement.
9126
7eed1a8e
TT
91272020-02-22 Tom Tromey <tom@tromey.com>
9128
9129 * tui/tui-winsource.h (struct tui_source_window_iterator)
9130 <inner_iterator>: New etytypedef.
9131 <tui_source_window_iterator>: Take "end" parameter.
9132 <tui_source_window_iterator>: Take iterator.
9133 <operator*, advance>: Update.
9134 <m_iter>: Change type.
9135 <m_end>: New field.
9136 (struct tui_source_windows) <begin, end>: Update.
9137 * tui/tui-layout.c (tui_windows): New global.
9138 (tui_apply_current_layout): Clear tui_windows.
9139 (tui_layout_window::apply): Update tui_windows.
9140 * tui/tui-data.h (tui_windows): Declare.
9141 (all_tui_windows): Now inline function.
9142 (class tui_window_iterator, struct all_tui_windows): Remove.
9143
7c043ba6
TT
91442020-02-22 Tom Tromey <tom@tromey.com>
9145
9146 PR tui/17850:
9147 * tui/tui-win.c (tui_gen_win_info::max_width): New method.
9148 * tui/tui-layout.h (class tui_layout_base) <get_sizes>: Add
9149 "height" argument.
9150 (class tui_layout_window) <get_sizes>: Likewise.
9151 (class tui_layout_split) <tui_layout_split>: Add "vertical"
9152 argument.
9153 <get_sizes>: Add "height" argument.
9154 <m_vertical>: New field.
9155 * tui/tui-layout.c (tui_layout_split::clone): Update.
9156 (tui_layout_split::get_sizes): Add "height" argument.
9157 (tui_layout_split::adjust_size, tui_layout_split::apply): Update.
9158 (tui_new_layout_command): Parse "-horizontal".
9159 (_initialize_tui_layout): Update help string.
9160 (tui_layout_split::specification): Add "-horizontal" when needed.
9161 * tui/tui-layout.c (tui_layout_window::get_sizes): Add "height"
9162 argument.
9163 * tui/tui-data.h (struct tui_gen_win_info) <max_width, min_width>:
9164 New methods.
9165
6bc56648
TT
91662020-02-22 Tom Tromey <tom@tromey.com>
9167
9168 * tui/tui-layout.h (enum tui_adjust_result): New.
9169 (class tui_layout_base) <adjust_size>: Return tui_adjust_result.
9170 (class tui_layout_window) <adjust_size>: Return
9171 tui_adjust_result. Rewrite.
9172 (class tui_layout_split) <adjust_size>: Return tui_adjust_result.
9173 * tui/tui-layout.c (tui_layout_split::adjust_size): Update.
9174
c22fef7e
TT
91752020-02-22 Tom Tromey <tom@tromey.com>
9176
9177 * tui/tui-layout.h (class tui_layout_split) <add_split>: Change
9178 parameter and return types.
9179 (class tui_layout_base) <specification>: Add "depth".
9180 (class tui_layout_window) <specification>: Add "depth".
9181 (class tui_layout_split) <specification>: Add "depth".
9182 * tui/tui-layout.c (tui_layout_split::add_split): Change parameter
9183 and return types.
9184 (tui_new_layout_command): Parse sub-layouts.
9185 (_initialize_tui_layout): Update help string.
9186 (tui_layout_window::specification): Add "depth".
9187 (add_layout_command): Update.
9188
ee325b61
TT
91892020-02-22 Tom Tromey <tom@tromey.com>
9190
9191 * NEWS: Add "tui new-layout" item.
9192 * tui/tui-layout.c (add_layout_command): Return cmd_list_element.
9193 Add new-layout command to help text.
9194 (validate_window_name): New function.
9195 (tui_new_layout_command): New function.
9196 (_initialize_tui_layout): Register "new-layout".
9197 (tui_layout_window::specification): New method.
9198 (tui_layout_window::specification): New method.
9199 * tui/tui-layout.h (class tui_layout_base) <specification>: New
9200 method.
9201 (class tui_layout_window) <specification>: New method.
9202 (class tui_layout_split) <specification>: New method.
9203
416eb92d
TT
92042020-02-22 Tom Tromey <tom@tromey.com>
9205
9206 * tui/tui.c (tui_enable): Call tui_set_initial_layout.
9207 * tui/tui-win.c (window_name_completer): Update comment.
9208 * tui/tui-layout.h (class tui_layout_base) <replace_window>:
9209 Declare method.
9210 (class tui_layout_window) <replace_window>: Likewise.
9211 (class tui_layout_split) <replace_window>: Likewise.
9212 (tui_set_layout): Don't declare.
9213 (tui_set_initial_layout): Declare function.
9214 * tui/tui-layout.c (layouts, applied_skeleton, src_regs_layout)
9215 (asm_regs_layout): New globals.
9216 (tui_current_layout, show_layout): Remove.
9217 (tui_set_layout, tui_add_win_to_layout): Rewrite.
9218 (find_layout, tui_apply_layout): New function.
9219 (layout_completer): Remove.
9220 (tui_next_layout): Reimplement.
9221 (tui_next_layout_command): New function.
9222 (tui_set_initial_layout, tui_prev_layout_command): New functions.
9223 (tui_regs_layout): Reimplement.
9224 (tui_regs_layout_command): New function.
9225 (extract_display_start_addr): Rewrite.
9226 (next_layout, prev_layout): Remove.
9227 (tui_layout_window::replace_window): New method.
9228 (tui_layout_split::replace_window): New method.
9229 (destroy_layout): New function.
9230 (layout_list): New global.
9231 (add_layout_command): New function.
9232 (initialize_layouts): Update.
9233 (tui_layout_command): New function.
9234 (_initialize_tui_layout): Install "layout" commands.
9235 * tui/tui-data.h (enum tui_layout_type): Remove.
9236 (tui_current_layout): Don't declare.
9237
0dbc2fc7
TT
92382020-02-22 Tom Tromey <tom@tromey.com>
9239
9240 * tui/tui-regs.c (tui_reg_layout): Remove.
9241 (tui_reg_command): Use tui_regs_layout.
9242 * tui/tui-layout.h (tui_reg_command): Declare.
9243 * tui/tui-layout.c (tui_reg_command): New function.
9244
5afe342e
TT
92452020-02-22 Tom Tromey <tom@tromey.com>
9246
9247 * tui/tui.c (tui_rl_delete_other_windows): Call
9248 tui_remove_some_windows.
9249 * tui/tui-layout.h (class tui_layout_base) <remove_windows>:
9250 Declare method.
9251 (class tui_layout_window) <remove_windows>: New method.
9252 (class tui_layout_split) <remove_windows>: Declare.
9253 (tui_remove_some_windows): Declare.
9254 * tui/tui-layout.c (tui_remove_some_windows): New function.
9255 (tui_layout_split::remove_windows): New method.
9256
427326a8
TT
92572020-02-22 Tom Tromey <tom@tromey.com>
9258
9259 * tui/tui.c (tui_rl_change_windows): Call tui_next_layout.
9260 * tui/tui-layout.h (tui_next_layout): Declare.
9261 * tui/tui-layout.c (tui_next_layout): New function.
9262
3fe12b6d
TT
92632020-02-22 Tom Tromey <tom@tromey.com>
9264
9265 * tui/tui-regs.c (tui_data_window::display_registers_from): Use
9266 correct coordinates.
9267
59b8b5d2
TT
92682020-02-22 Tom Tromey <tom@tromey.com>
9269
9270 * tui/tui-layout.h (tui_add_win_to_layout): Add comment.
9271 * tui/tui-layout.c (tui_add_win_to_layout): Add assert. Remove
9272 DATA_WIN case.
9273
2a3d458b
TT
92742020-02-22 Tom Tromey <tom@tromey.com>
9275
9276 * tui/tui-disasm.c (tui_get_low_disassembly_address): Use
9277 TUI_DISASM_WIN, not tui_win_list.
9278
3f0cbb04
TT
92792020-02-22 Tom Tromey <tom@tromey.com>
9280
9281 * valprint.c (generic_val_print_enum_1)
9282 (val_print_type_code_flags): Style member names.
9283 * rust-lang.c (val_print_struct, rust_print_enum)
9284 (rust_print_struct_def, rust_internal_print_type): Style member
9285 names.
9286 * p-valprint.c (pascal_object_print_value_fields): Style member
9287 names. Only call fprintf_symbol_filtered for static members.
9288 * m2-typeprint.c (m2_record_fields, m2_enum): Style member names.
9289 * f-valprint.c (f_val_print): Style member names.
9290 * f-typeprint.c (f_type_print_base): Style member names.
9291 * cp-valprint.c (cp_print_value_fields): Style member names. Only
9292 call fprintf_symbol_filtered for static members.
9293 (cp_print_class_member): Style member names.
9294 * c-typeprint.c (c_print_type_1, c_type_print_base_1): Style
9295 member names.
9296 * ada-valprint.c (ada_print_scalar): Style enum names.
9297 (ada_val_print_enum): Likewise.
9298 * ada-typeprint.c (print_enum_type): Style enum names.
9299
d4d947ae
TT
93002020-02-21 Tom Tromey <tom@tromey.com>
9301
9302 * psympriv.h (struct partial_symtab): Update comment.
9303
e94e944b
TT
93042020-02-21 Tom Tromey <tromey@adacore.com>
9305
9306 * mips-tdep.h (mips_pc_is_mips16, mips_pc_is_micromips): Parameter
9307 type is CORE_ADDR.
9308
1eb73179
TV
93092020-02-21 Tom de Vries <tdevries@suse.de>
9310
9311 PR gdb/25534
9312 * psymtab.c (partial_symtab::read_dependencies): Don't read dependency
9313 if dependencies[i]->user != NULL.
9314
4f180d53
AT
93152020-02-21 Ali Tamur <tamur@google.com>
9316
9317 * dwarf2/read.c (dwarf2_name): Add null check.
9318
22b6cd70
TT
93192020-02-20 Tom Tromey <tom@tromey.com>
9320
9321 * dwarf2/read.c (dwarf2_find_containing_comp_unit): Use ">", not
9322 ">=", in binary search.
9323 (dwarf2_find_containing_comp_unit): New overload.
9324 (run_test): New self-test.
9325 (_initialize_dwarf2_read): Register new test.
9326
bd0cf5a6
NC
93272020-02-20 Nelson Chu <nelson.chu@sifive.com>
9328
9329 * riscv-tdep.c: Updated since the DECLARE_CSR is changed.
9330 * riscv-tdep.h: Likewise.
9331 * features/riscv/rebuild-csr-xml.sh: Generate the 64bit-csr.xml without
9332 rv32-only CSR.
9333 * features/riscv/64bit-csr.xml: Regenerated.
9334
3f702acd
SDJ
93352020-02-20 Sergio Durigan Junior <sergiodj@redhat.com>
9336 Tom Tromey <tom@tromey.com>
9337
9338 * utils.c (fputs_maybe_filtered): Call 'stream->puts' instead
9339 of 'fputc_unfiltered'.
9340 (putchar_unfiltered): Call 'fputc_unfiltered'.
9341 (fputc_unfiltered): Call 'fputs_unfiltered'.
9342
d13c7322
AB
93432020-02-20 Andrew Burgess <andrew.burgess@embecosm.com>
9344
9345 * config.in: Regenerate.
9346 * configure: Regenerate.
9347 * configure.ac: Add --with-python-libdir option.
9348 * main.c: Use WITH_PYTHON_LIBDIR.
9349
869d8950
TT
93502020-02-19 Tom Tromey <tom@tromey.com>
9351
9352 * symtab.c (general_symbol_info::compute_and_set_names): Use
9353 obstack_strndup. Simplify call to symbol_set_demangled_name.
9354
298e9637
SM
93552020-02-19 Simon Marchi <simon.marchi@efficios.com>
9356
9357 * dwarf2/read.c (allocate_signatured_type_table,
9358 allocate_dwo_unit_table, allocate_type_unit_groups_table,
9359 allocate_dwo_file_hash_table, allocate_dwp_loaded_cutus_table):
9360 Remove objfile parameter, update all callers.
9361
08410482
DE
93622020-02-19 Doug Evans <dje@google.com>
9363
9364 PR rust/25535
9365 * rust-lang.c (rust_print_enum): Apply embedded_offset to
9366 rust_enum_variant calculation.
9367
dfdeeca1
TT
93682020-02-19 Tom Tromey <tromey@adacore.com>
9369
9370 * mips-tdep.h (mips_pc_is_mips): Parameter type is CORE_ADDR.
9371
2ef5453b
TT
93722020-02-19 Tom Tromey <tromey@adacore.com>
9373
9374 * ada-lang.c (cache_symbol): Use obstack_strdup.
9375
9f1528a1
AB
93762020-02-19 Andrew Burgess <andrew.burgess@embecosm.com>
9377
9378 * configure: Regenerate.
9379
d3c22fa8
TT
93802020-02-19 Tom Tromey <tromey@adacore.com>
9381
9382 * python/python.c (do_start_initialization): Use XNEWVEC. Remove
9383 NULL check.
9384
bf84f706
MR
93852020-02-19 Maciej W. Rozycki <macro@wdc.com>
9386
9387 * NEWS: Mention RISC-V GNU/Linux GDBserver support.
9388
d1c9b20f
AB
93892020-02-19 Andrew Burgess <andrew.burgess@embecosm.com>
9390
9391 * arch/riscv.c (struct riscv_gdbarch_features_hasher): Only define
9392 if GDBSERVER is not defined.
9393 (riscv_tdesc_cache): Likewise, also store const target_desc.
9394 (STATIC_IN_GDB): Define.
9395 (riscv_create_target_description): Update declaration with
9396 STATIC_IN_GDB.
9397 (riscv_lookup_target_description): New function, only define if
9398 GDBSERVER is not defined.
9399 * arch/riscv.h (riscv_create_target_description): Declare only
9400 when GDBSERVER is defined.
9401 (riscv_lookup_target_description): New declaration when GDBSERVER
9402 is not defined.
9403 * nat/riscv-linux-tdesc.c (riscv_linux_read_description): Rename to...
9404 (riscv_linux_read_features): ...this, and return
9405 riscv_gdbarch_features instead of target_desc.
9406 * nat/riscv-linux-tdesc.h: Include 'arch/riscv.h'.
9407 (riscv_linux_read_description): Rename to...
9408 (riscv_linux_read_features): ...this.
9409 * riscv-linux-nat.c (riscv_linux_nat_target::read_description):
9410 Update to use riscv_gdbarch_features and
9411 riscv_lookup_target_description.
9412 * riscv-tdep.c (riscv_find_default_target_description): Use
9413 riscv_lookup_target_description instead of
9414 riscv_create_target_description.
9415
373d7ac0
SM
94162020-02-18 Simon Marchi <simon.marchi@efficios.com>
9417
9418 * valprint.c (generic_val_print_enum_1): When printing a flag
9419 enum with value 0 and there is no enumerator with value 0, print
9420 just "0" instead of "(unknown: 0x0)".
9421
b29a2df0
SM
94222020-02-18 Simon Marchi <simon.marchi@efficios.com>
9423
9424 * valprint.c (generic_val_print_enum_1): Print unknown part of
9425 flag enum in hex.
9426
6740f0cc
SM
94272020-02-18 Simon Marchi <simon.marchi@efficios.com>
9428
9429 * dwarf2/read.c (update_enumeration_type_from_children): Allow
9430 flag enums to contain duplicate enumerators.
9431 * valprint.c (generic_val_print_enum_1): Update comment.
9432
edd45eb0
SM
94332020-02-18 Simon Marchi <simon.marchi@efficios.com>
9434
9435 * dwarf2/read.c: Include "count-one-bits.h".
9436 (update_enumeration_type_from_children): If an enumerator has
9437 multiple bits set, don't treat the enumeration as a "flag enum".
9438 * valprint.c (generic_val_print_enum_1): Assert that enumerators
9439 of flag enums have 0 or 1 bit set.
9440
6d0cf446
BE
94412020-02-18 Bernd Edlinger <bernd.edlinger@hotmail.de>
9442
9443 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Use an explicit
9444 conversion.
9445 * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise.
9446 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn): Likewise.
9447 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
9448 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Likewise.
9449 * s390-tdep.c (s390_displaced_step_copy_insn): Likewise.
9450
7001c1b7
SM
94512020-02-18 Simon Marchi <simon.marchi@efficios.com>
9452
9453 * MAINTAINERS: Change palmer@sifive.com to palmer@dabbelt.com.
9454
fdb61c6c
SM
94552020-02-14 Simon Marchi <simon.marchi@efficios.com>
9456
9457 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Use
9458 displaced_step_closure_up.
9459 * aarch64-tdep.h (aarch64_displaced_step_copy_insn): Likewise.
9460 (struct displaced_step_closure_up):
9461 * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise.
9462 * amd64-tdep.h (amd64_displaced_step_copy_insn): Likewise.
9463 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn):
9464 Likewise.
9465 * gdbarch.sh (displaced_step_copy_insn): Likewise.
9466 * gdbarch.c, gdbarch.h: Re-generate.
9467 * i386-linux-tdep.c (i386_linux_displaced_step_copy_insn): Use
9468 displaced_step_closure_up.
9469 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
9470 * i386-tdep.h (i386_displaced_step_copy_insn): Likewise.
9471 * infrun.h (displaced_step_closure_up): New type alias.
9472 (struct displaced_step_inferior_state) <step_closure>: Change
9473 type to displaced_step_closure_up.
9474 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Use
9475 displaced_step_closure_up.
9476 * s390-tdep.c (s390_displaced_step_copy_insn): Likewise.
9477
a4a38eb4
TT
94782020-02-14 Tom Tromey <tom@tromey.com>
9479
9480 * minidebug.c (gnu_debug_key): New global.
9481 (find_separate_debug_file_in_section): Use it.
9482
e8217e61
SM
94832020-02-14 Simon Marchi <simon.marchi@efficios.com>
9484
9485 * gdbarch.sh (displaced_step_copy_insn): Change return type to an
9486 std::unique_ptr.
9487 * gdbarch.c: Re-generate.
9488 * gdbarch.h: Re-generate.
9489 * infrun.c (displaced_step_prepare_throw): Adjust to std::unique_ptr
9490 change.
9491 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Change return
9492 type to std::unique_ptr.
9493 * aarch64-tdep.h (aarch64_displaced_step_copy_insn): Likewise.
9494 * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise.
9495 * amd64-tdep.h (amd64_displaced_step_copy_insn): Likewise.
9496 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn): Likewise.
9497 * i386-linux-tdep.c (i386_linux_displaced_step_copy_insn): Likewise.
9498 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
9499 * i386-tdep.h (i386_displaced_step_copy_insn): Likewise.
9500 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Likewise.
9501 * s390-tdep.c (s390_displaced_step_copy_insn): Likewise.
9502
d8d83535
SM
95032020-02-14 Simon Marchi <simon.marchi@efficios.com>
9504
9505 * infrun.c (get_displaced_step_closure_by_addr): Adjust to
9506 std::unique_ptr.
9507 (displaced_step_clear): Rename to...
9508 (displaced_step_reset): ... this. Just call displaced->reset ().
9509 (displaced_step_clear_cleanup): Rename to...
9510 (displaced_step_reset_cleanup): ... this.
9511 (displaced_step_prepare_throw): Adjust to std::unique_ptr.
9512 (displaced_step_fixup): Likewise.
9513 (resume_1): Likewise.
9514 (handle_inferior_event): Restore child's memory before calling
9515 displaced_step_fixup on the parent.
9516 * infrun.h (displaced_step_inferior_state) <reset>: Adjust
9517 to std::unique_ptr.
9518 <step_closure>: Change type to std::unique_ptr.
9519
5f661e03
SM
95202020-02-14 Simon Marchi <simon.marchi@efficios.com>
9521
9522 * arm-tdep.c: Include count-one-bits.h.
9523 (cleanup_block_store_pc): Use count_one_bits.
9524 (cleanup_block_load_pc): Use count_one_bits.
9525 (arm_copy_block_xfer): Use count_one_bits.
9526 (thumb2_copy_block_xfer): Use count_one_bits.
9527 (thumb_copy_pop_pc_16bit): Use count_one_bits.
9528 * arch/arm-get-next-pcs.c: Include count-one-bits.h.
9529 (thumb_get_next_pcs_raw): Use count_one_bits.
9530 (arm_get_next_pcs_raw): Use count_one_bits_l.
9531 * arch/arm.c (bitcount): Remove.
9532 * arch/arm.h (bitcount): Remove.
9533
8084e579
TT
95342020-02-14 Tom Tromey <tromey@adacore.com>
9535
9536 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first):
9537 Update.
9538 * dwarf2/loc.h (call_site_find_chain): Return unique_xmalloc_ptr.
9539 * dwarf2/loc.c (call_site_find_chain_1): Return
9540 unique_xmalloc_ptr.
9541 (call_site_find_chain): Likewise.
9542
258bf0ee
RB
95432020-02-14 Richard Biener <rguenther@suse.de>
9544
9545 * dwarf2/read.c (lnp_state_machine::handle_special_opcode): Apply CSE
9546 on expression with division operators.
9547
f98a8458
AKS
95482020-02-13 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
9549
9550 * MAINTAINERS (Write After Approval): Adding myself.
9551
d1437c0e
TT
95522020-02-12 Tom Tromey <tom@tromey.com>
9553
9554 * event-loop.c (event_data, gdb_event, event_handler_func):
9555 Remove.
9556
3d4560f7
TT
95572020-02-12 Tom Tromey <tom@tromey.com>
9558
9559 * dwarf2/frame.c (dwarf2_frame_bfd_data): New global.
9560 (dwarf2_frame_objfile_data): Add comment.
9561 (find_comp_unit, set_comp_unit): New functions.
9562 (dwarf2_frame_find_fde): Use find_comp_unit.
9563 (dwarf2_build_frame_info): Use set_comp_unit.
9564
21982304
TT
95652020-02-12 Tom Tromey <tom@tromey.com>
9566
9567 * dwarf2/frame.c (struct comp_unit) <objfile>: Remove.
9568 (comp_unit): Don't initialize objfile.
9569 (execute_cfa_program): Add text_offset parameter.
9570 (execute_cfa_program_test, dwarf2_fetch_cfa_info)
9571 (dwarf2_frame_cache): Update.
9572 (dwarf2_build_frame_info): Don't set "objfile" member.
9573
4debb237
TT
95742020-02-12 Tom Tromey <tom@tromey.com>
9575
9576 * dwarf2/frame.c (decode_frame_entry_1): Add gdbarch parameter.
9577 (decode_frame_entry): Likewise.
9578 (dwarf2_build_frame_info): Update.
9579
0d404d44
TT
95802020-02-12 Tom Tromey <tom@tromey.com>
9581
9582 * dwarf2/frame.c (struct comp_unit) <obstack>: New member.
9583 (decode_frame_entry_1): Use the comp_unit obstack.
9584
a7a3ae5c
TT
95852020-02-12 Tom Tromey <tom@tromey.com>
9586
9587 * dwarf2/frame.c (struct comp_unit): Add initializers and
9588 constructor.
9589 (dwarf2_frame_objfile_data): Store a comp_unit.
9590 (dwarf2_frame_find_fde): Update.
9591 (dwarf2_build_frame_info): Use "new".
9592
a9d65418
TT
95932020-02-12 Tom Tromey <tom@tromey.com>
9594
9595 * dwarf2/frame.c (struct dwarf2_fde_table): Remove.
9596 (dwarf2_fde_table): Typedef for std::vector.
9597 (dwarf2_frame_objfile_data): Remove the deleter. Now static.
9598 (dwarf2_frame_find_fde, add_fde, decode_frame_entry_1)
9599 (decode_frame_entry): Update.
9600 (dwarf2_build_frame_info): Use "new".
9601
7559c217
CB
96022020-02-12 Christian Biesinger <cbiesinger@google.com>
9603
9604 * arm-tdep.c (arm_gdbarch_init): Update.
9605 * arm-tdep.h (struct gdbarch_tdep) <have_fpa_registers,
9606 have_wmmx_registers, have_vfp_pseudos, have_neon_pseudos,
9607 have_neon, is_m>: Change to bool.
9608
aeefc73c
CB
96092020-02-12 Christian Biesinger <cbiesinger@google.com>
9610
9611 * arm-tdep.c (arm_dump_tdep): Print more fields of tdep.
9612
d27b8e5f
TT
96132020-02-12 Tom Tromey <tom@tromey.com>
9614
9615 * dwarf2/loc.c (struct dwarf_expr_baton): Remove.
9616
cd5900f3
HD
96172020-02-12 Hannes Domani <ssbssa@yahoo.de>
9618
9619 * windows-tdep.c (struct windows_gdbarch_data): Add tib_ptr_type.
9620 (windows_get_tlb_type): Use windows_gdbarch_data->tib_ptr_type.
9621
f056b22b
TT
96222020-02-11 Tom Tromey <tom@tromey.com>
9623
9624 * psymtab.h: Update comment.
9625
f92ff6b5
TT
96262020-02-11 Tom Tromey <tom@tromey.com>
9627
9628 * gdb_obstack.h (struct auto_obstack): Use
9629 DISABLE_COPY_AND_ASSIGN.
9630
3fd6912b
TT
96312020-02-11 Tom Tromey <tom@tromey.com>
9632
9633 * dwarf2/frame.h (struct objfile): Don't forward declare.
9634
69ed9b74
CB
96352020-02-11 Christian Biesinger <cbiesinger@google.com>
9636
9637 * cris-tdep.c (cris_supply_gregset): Change signature to match
9638 what struct regset expects.
9639 (cris_regset): New struct.
9640 (fetch_core_registers): Remove.
9641 (cris_iterate_over_regset_sections): New function.
9642 (_initialize_cris_tdep): Don't call deprecated_add_core_fns.
9643 (cris_gdbarch_init): Call set_gdbarch_iterate_over_regset_sections.
9644
bda874f6
CB
96452020-02-11 Christian Biesinger <cbiesinger@google.com>
9646
9647 * arch/arm.h (enum gdb_regnum): Add comment for the FP0..7
9648 registers.
9649
754e1564
CB
96502020-02-11 Christian Biesinger <cbiesinger@google.com>
9651
9652 * arm-tdep.c (arm_dump_tdep): Add \n in fprintf.
9653
8ddd8e0e
SM
96542020-02-11 Simon Marchi <simon.marchi@efficios.com>
9655
9656 * configure: Re-generate.
9657
898e7f60
SM
96582020-02-11 Simon Marchi <simon.marchi@efficios.com>
9659
9660 * configure: Re-generate.
9661
58df732b
SM
96622020-02-11 Simon Marchi <simon.marchi@efficios.com>
9663
9664 * acinclude: Update warning.m4 path.
9665 * warning.m4: Move to gdbsupport.
9666
da5bd37e
TT
96672020-02-11 Tom Tromey <tromey@adacore.com>
9668
9669 * remote.c (remote_console_output): Update.
9670 * printcmd.c (printf_command): Update.
9671 * event-loop.c (gdb_wait_for_event): Update.
9672 * linux-nat.c (sigchld_handler): Update.
9673 * remote-sim.c (gdb_os_write_stdout): Update.
9674 (gdb_os_flush_stdout): Update.
9675 (gdb_os_flush_stderr): Update.
9676 (gdb_os_write_stderr): Update.
9677 * exceptions.c (print_exception): Update.
9678 * remote-fileio.c (remote_fileio_func_read): Update.
9679 (remote_fileio_func_write): Update.
9680 * tui/tui.c (tui_enable): Update.
9681 * tui/tui-interp.c (tui_interp::init): Update.
9682 * utils.c (init_page_info): Update.
9683 (putchar_unfiltered, fputc_unfiltered): Update.
9684 (gdb_flush): Update.
9685 (emit_style_escape): Update.
9686 (flush_wrap_buffer, fputs_maybe_filtered): Update.
9687 * ui-file.c (ui_file_isatty, ui_file_read, ui_file_write)
9688 (ui_file_write_async_safe, ui_file_flush, ui_file_puts): Remove.
9689 (stderr_file::write): Update.
9690 (stderr_file::puts): Update.
9691 * ui-file.h (ui_file_isatty, ui_file_write)
9692 (ui_file_write_async_safe, ui_file_read, ui_file_flush)
9693 (ui_file_puts): Don't declare.
9694
85f0dd3c
TV
96952020-02-10 Tom de Vries <tdevries@suse.de>
9696
9697 * dwarf2/read.c (process_psymtab_comp_unit_reader): Cast concat NULL
9698 sentinel to char *.
9699
2e927613
TV
97002020-02-09 Tom de Vries <tdevries@suse.de>
9701
9702 * dwarf2read.c (process_psymtab_comp_unit_reader): Append CU offset to
9703 filename if it matches "<artificial>".
9704
6bafc845
HD
97052020-02-09 Hannes Domani <ssbssa@yahoo.de>
9706
9707 * windows-tdep.c (struct enum_value_name): New struct.
9708 (create_enum): New function.
9709 (windows_get_siginfo_type): Create and use enum types.
9710
7928d571
HD
97112020-02-09 Hannes Domani <ssbssa@yahoo.de>
9712
9713 * NEWS: Mention $_siginfo support for Windows.
9714 * windows-nat.c (handle_exception): Set siginfo_er.
9715 (windows_nat_target::mourn_inferior): Reset siginfo_er.
9716 (windows_xfer_siginfo): New function.
9717 (windows_nat_target::xfer_partial): Call windows_xfer_siginfo.
9718 * windows-tdep.c (struct windows_gdbarch_data): New struct.
9719 (init_windows_gdbarch_data): New function.
9720 (get_windows_gdbarch_data): New function.
9721 (windows_get_siginfo_type): New function.
9722 (windows_init_abi): Register windows_get_siginfo_type.
9723 (_initialize_windows_tdep): Register init_windows_gdbarch_data.
9724
6751ebae
TT
97252020-02-08 Tom Tromey <tom@tromey.com>
9726
9727 * dwarf2/read.c (class cutu_reader) <cutu_reader,
9728 init_tu_and_read_dwo_dies>: Remove "keep" parameter.
9729 <keep>: Declare method.
9730 <m_keep>: Remove member.
9731 <~cutu_reader>: Remove.
9732 (cutu_reader::init_tu_and_read_dwo_dies): Update.
9733 (cutu_reader::cutu_reader): Update.
9734 (cutu_reader::keep): Rename from ~cutu_reader.
9735 (process_psymtab_comp_unit, build_type_psymtabs_1)
9736 (process_skeletonless_type_unit, load_partial_comp_unit)
9737 (load_full_comp_unit, dwarf2_read_addr_index)
9738 (read_signatured_type): Update.
9739
135f5437
TT
97402020-02-08 Tom Tromey <tom@tromey.com>
9741
9742 * dwarf2/read.c (process_psymtab_comp_unit_reader): Remove
9743 "want_partial_unit" parameter.
9744 (process_psymtab_comp_unit): Change want_partial_unit to bool.
9745 Inline check for DW_TAG_partial_unit.
9746 (dwarf2_build_psymtabs_hard, scan_partial_symbols): Update.
9747
9f66ff1c
TT
97482020-02-08 Tom Tromey <tom@tromey.com>
9749
9750 * dwarf2/read.c (read_n_bytes, read_direct_string): Move to
9751 read.c.
9752 * dwarf2/leb.h (read_n_bytes, read_direct_string): Move from
9753 read.c.
9754
c8a7a66f
TT
97552020-02-08 Tom Tromey <tom@tromey.com>
9756
9757 * dwarf2/read.c (read_address): Move to comp-unit.c.
9758 (dwarf2_rnglists_process, dwarf2_ranges_process)
9759 (read_attribute_value, dwarf_decode_lines_1)
9760 (var_decode_location, decode_locdesc): Update.
9761 * dwarf2/comp-unit.c (comp_unit_head::read_address): Move from
9762 read.c. Remove "cu" parameter.
9763 * dwarf2/comp-unit.h (struct comp_unit_head) <read_address>: New
9764 method.
9765
8266302d
TT
97662020-02-08 Tom Tromey <tom@tromey.com>
9767
9768 * dwarf2/read.c (read_attribute_value, read_indirect_string)
9769 (read_indirect_line_string): Update.
9770 * dwarf2/comp-unit.c (read_offset): Remove.
9771 (read_comp_unit_head): Update.
9772 * dwarf2/comp-unit.h (struct comp_unit_head) <read_offset>: New
9773 method.
9774 (read_offset): Don't declare.
9775
4057dfde
TT
97762020-02-08 Tom Tromey <tom@tromey.com>
9777
9778 * Makefile.in (COMMON_SFILES): Add dwarf2/comp-unit.c.
9779 * dwarf2/read.c (struct comp_unit_head): Move to
9780 dwarf2/comp-unit.h.
9781 (enum class rcuh_kind): Move to comp-unit.h.
9782 (get_cu_length, offset_in_cu_p): Now methods on comp_unit_head.
9783 (read_comp_unit_head, error_check_comp_unit_head)
9784 (read_and_check_comp_unit_head): Move to comp-unit.c.
9785 (read_offset, dwarf_unit_type_name): Likewise.
9786 (create_debug_type_hash_table, read_cutu_die_from_dwo)
9787 (cutu_reader::cutu_reader, read_call_site_scope)
9788 (find_partial_die, follow_die_offset): Update.
9789 * dwarf2/comp-unit.h: New file, from dwarf2read.c.
9790
24aa364d
TT
97912020-02-08 Tom Tromey <tom@tromey.com>
9792
9793 * dwarf2/read.c (read_offset_1): Move to leb.c.
9794 (read_abbrev_offset, read_offset, dwarf_decode_line_header)
9795 (dwarf_decode_macro_bytes): Update.
9796 * dwarf2/leb.c (read_offset): Rename; move from read.c.
9797 * dwarf2/leb.h (read_offset): Declare.
9798
2c7d5afc
TT
97992020-02-08 Tom Tromey <tom@tromey.com>
9800
9801 * dwarf2/read.c (dwarf2_section_size): Remove.
9802 (error_check_comp_unit_head, dwarf2_symbol_mark_computed):
9803 Update.
9804 * dwarf2/section.h (struct dwarf2_section_info) <get_size>: New method.
9805
4075cb26
TT
98062020-02-08 Tom Tromey <tom@tromey.com>
9807
9808 * dwarf2/read.c (read_initial_length): Move to leb.c.
9809 * dwarf2/leb.h (read_initial_length): Declare.
9810 * dwarf2/leb.c (read_initial_length): Move from read.c. Add
9811 handle_nonstd parameter.
9812 * dwarf2/frame.c (read_initial_length): Remove.
9813 (decode_frame_entry_1): Update.
9814
09ba997f
TT
98152020-02-08 Tom Tromey <tom@tromey.com>
9816
9817 * dwarf2/loc.c (dwarf2_find_location_expression)
9818 (dwarf_evaluate_loc_desc::get_tls_address)
9819 (dwarf_evaluate_loc_desc::push_dwarf_reg_entry_value)
9820 (rw_pieced_value, dwarf2_evaluate_loc_desc_full)
9821 (dwarf2_locexpr_baton_eval, dwarf2_evaluate_property)
9822 (dwarf2_compile_property_to_c)
9823 (dwarf2_loc_desc_get_symbol_read_needs)
9824 (dwarf2_compile_expr_to_ax, locexpr_describe_location)
9825 (locexpr_tracepoint_var_ref, locexpr_generate_c_location)
9826 (loclist_describe_location, loclist_tracepoint_var_ref)
9827 (loclist_generate_c_location): Update.
9828 * compile/compile-loc2c.c (do_compile_dwarf_expr_to_c): Update.
9829 * dwarf2/loc.h (dwarf2_per_cu_objfile, dwarf2_per_cu_addr_size)
9830 (dwarf2_per_cu_ref_addr_size, dwarf2_per_cu_offset_size)
9831 (dwarf2_per_cu_text_offset, dwarf2_version): Don't declare.
9832 * dwarf2/read.c (dwarf2_per_cu_data::objfile)
9833 (dwarf2_per_cu_data::addr_size)
9834 (dwarf2_per_cu_data::ref_addr_size)
9835 (dwarf2_per_cu_data::text_offset)
9836 (dwarf2_per_cu_data::addr_type): Now methods.
9837 (per_cu_header_read_in): Make per_cu "const".
9838 (dwarf2_version): Remove.
9839 (dwarf2_per_cu_data::int_type): Now a method.
9840 (dwarf2_per_cu_data::_addr_sized_int_type): Likewise.
9841 (set_die_type, read_array_type, read_subrange_index_type)
9842 (read_tag_string_type, read_subrange_type): Update.
9843 * dwarf2/read.h (struct dwarf2_per_cu_data) <addr_size,
9844 offset_size, ref_addr_size, text_offset, addr_type, version,
9845 objfile, int_type, addr_sized_int_type>: Declare methods.
9846
96c738c0
TT
98472020-02-08 Tom Tromey <tom@tromey.com>
9848
9849 * dwarf2/read.h (struct dwarf2_per_cu_data) <imported_symtabs>:
9850 Move earlier.
9851
8fdd972c
TT
98522020-02-08 Tom Tromey <tom@tromey.com>
9853
9854 * dwarf2/read.h (dwarf_line_debug): Declare.
9855 * Makefile.in (COMMON_SFILES): Add dwarf2/line-header.c.
9856 * dwarf2/read.c: Move line_header code to new files.
9857 (dwarf_line_debug): No longer static.
9858 * dwarf2/line-header.c: New file.
9859 * dwarf2/line-header.h: New file.
9860
03075812
TT
98612020-02-08 Tom Tromey <tom@tromey.com>
9862
9863 * dwarf2/read.c (struct line_header) <file_full_name,
9864 file_file_name>: Return unique_xmalloc_ptr.
9865 (line_header::file_file_name): Update.
9866 (line_header::file_full_name): Update.
9867 (dw2_get_file_names_reader): Update.
9868 (macro_start_file): Update.
9869
bb822404
TT
98702020-02-08 Tom Tromey <tom@tromey.com>
9871
9872 * dwarf2/read.c (struct line_header) <file_full_name,
9873 file_file_name>: Declare methods.
9874 (dw2_get_file_names_reader): Update.
9875 (file_file_name): Now a method.
9876 (file_full_name): Likewise.
9877 (macro_start_file): Update.
9878
009b64fc
TT
98792020-02-08 Tom Tromey <tom@tromey.com>
9880
9881 * dwarf2/read.c (dwarf_always_disassemble)
9882 (show_dwarf_always_disassemble): Move to loc.c.
9883 (_initialize_dwarf2_read): Move "always-disassemble" registration
9884 to loc.c.
9885 * dwarf2/read.h (dwarf_always_disassemble): Don't declare.
9886 * dwarf2/loc.c (dwarf_always_disassemble): Move from read.c. Now
9887 static.
9888 (show_dwarf_always_disassemble): Move from read.c.
9889 (_initialize_dwarf2loc): Move always-disassemble from read.c.
9890
5895093f
TT
98912020-02-08 Tom Tromey <tom@tromey.com>
9892
9893 * dwarf2/read.c (~dwarf2_per_objfile): Update.
9894 (create_quick_file_names_table): Return htab_up.
9895 (dw2_get_file_names_reader, dw2_forget_cached_source_info):
9896 Update.
9897 * dwarf2/read.h (struct dwarf2_per_objfile)
9898 <quick_file_names_table>: Now htab_up.
9899
b3b32279
TT
99002020-02-08 Tom Tromey <tom@tromey.com>
9901
9902 * dwarf2/abbrev.c (abbrev_table::read): Simplify.
9903
1d33d811
TT
99042020-02-08 Tom Tromey <tom@tromey.com>
9905
9906 * dwarf2/abbrev.c (abbrev_table): Move constructor from header.
9907 Rewrite.
9908 (abbrev_table::add_abbrev, abbrev_table::lookup_abbrev): Rewrite.
9909 * dwarf2/abbrev.h (struct abbrev_info) <next>: Remove.
9910 (abbrev_table::abbrev_table): No longer inline.
9911 (ABBREV_HASH_SIZE): Remove.
9912 (abbrev_table::m_abbrevs): Now an htab_up.
9913
86de1d91
TT
99142020-02-08 Tom Tromey <tom@tromey.com>
9915
9916 * dwarf2/read.c (read_cutu_die_from_dwo): Update.
9917 (cutu_reader): Update.
9918 (build_type_psymtabs_1): Update.
9919 * dwarf2/abbrev.c (abbrev_table::read): Rename.
9920 (abbrev_table::alloc_abbrev): Update.
9921 * dwarf2/abbrev.h (abbrev_table_up): Move earlier.
9922 (abbrev_table::read): New static method, renamed from
9923 abbrev_table_read_table.
9924 (abbrev_table::alloc_abbrev)
9925 (abbrev_table::add_abbrev): Now private.
9926 (abbrev_table::abbrev_table): Now private.
9927 (abbrev_table::m_abbrev_obstack): Now private. Rename.
9928
0335378b
TT
99292020-02-08 Tom Tromey <tom@tromey.com>
9930
9931 * dwarf2/read.c (set_die_type, get_die_type_at_offset): Update.
9932 * dwarf2/read.h (struct dwarf2_per_objfile) <die_type_hash>: Now
9933 htab_up.
9934
48b490f2
TT
99352020-02-08 Tom Tromey <tom@tromey.com>
9936
9937 * dwarf2/read.c (struct dwp_file) <loaded_cus, loaded_tus>: Now
9938 htab_up.
9939 (lookup_dwo_unit_in_dwp): Update.
9940 (allocate_dwp_loaded_cutus_table): Return htab_up. Don't allocate
9941 on obstack.
9942
bc68fb19
TT
99432020-02-08 Tom Tromey <tom@tromey.com>
9944
9945 * dwarf2/read.c (allocate_dwo_file_hash_table): Don't allocate on
9946 obstack.
9947
d15acc42
TT
99482020-02-08 Tom Tromey <tom@tromey.com>
9949
9950 * dwarf2/read.c (~dwarf2_per_objfile): Don't delete
9951 line_header_hash.
9952 (handle_DW_AT_stmt_list): Update. Don't allocate on obstack.
9953 * dwarf2/read.h (struct dwarf2_per_objfile) <line_header_hash>:
9954 Change type to htab_up.
9955
eaa5fa8b
TT
99562020-02-08 Tom Tromey <tom@tromey.com>
9957
9958 * dwarf2/read.c (allocate_type_unit_groups_table): Return
9959 htab_up. Don't allocate on obstack.
9960 (get_type_unit_group, dwarf2_build_psymtabs_hard): Update.
9961 * dwarf2/read.h (struct dwarf2_per_objfile) <type_unit_groups>:
9962 Change type to htab_up.
9963
b0b6a987
TT
99642020-02-08 Tom Tromey <tom@tromey.com>
9965
9966 * dwarf2/read.h (struct dwarf2_per_objfile) <signatured_types>:
9967 Change type to htab_up.
9968 * dwarf2/read.c (create_signatured_type_table_from_index)
9969 (create_signatured_type_table_from_debug_names)
9970 (create_all_type_units, add_type_unit)
9971 (lookup_dwo_signatured_type, lookup_signatured_type)
9972 (process_skeletonless_type_unit): Update.
9973 (create_debug_type_hash_table, create_debug_types_hash_table):
9974 Change type of types_htab.
9975 (allocate_signatured_type_table, allocate_dwo_unit_table): Return
9976 htab_up. Don't allocate on obstack.
9977 (create_cus_hash_table): Change type of cus_htab parameter.
9978 (struct dwo_file) <cus, tus>: Now htab_up.
9979 (lookup_dwo_signatured_type, lookup_dwo_cutu)
9980 (process_dwo_file_for_skeletonless_type_units, lookup_dwo_cutu)
9981 (queue_and_load_all_dwo_tus): Update.
9982 * dwarf2/index-write.c (write_gdbindex): Update.
9983 (write_debug_names): Update.
9984
39856def
TT
99852020-02-08 Tom Tromey <tom@tromey.com>
9986
9987 * dwarf2/read.h (struct dwarf2_queue_item): Move from
9988 dwarf2/read.c. Remove "next" member. Add constructor ntad
9989 destructor.
9990 (struct dwarf2_per_objfile) <queue>: New member.
9991 * dwarf2/read.c (struct dwarf2_queue_item): Move to
9992 dwarf2/read.h.
9993 (dwarf2_queue, dwarf2_queue_tail): Remove.
9994 (class dwarf2_queue_guard): Add parameter to constructor. Use
9995 DISABLE_COPY_AND_ASSIGN.
9996 <m_per_objfile>: New member.
9997 <~dwarf2_queue_guard>: Rewrite.
9998 (dw2_do_instantiate_symtab, queue_comp_unit, process_queue):
9999 Update.
10000 (~dwarf2_queue_item): New.
10001
3e225074
TT
100022020-02-08 Tom Tromey <tom@tromey.com>
10003
10004 * dwarf2/read.c (struct die_info) <has_children>: New member.
10005 (dw2_get_file_names_reader): Remove has_children.
10006 (dw2_get_file_names): Update.
10007 (read_cutu_die_from_dwo): Remove has_children.
10008 (cutu_reader::init_tu_and_read_dwo_dies)
10009 (cutu_reader::cutu_reader): Update.
10010 (process_psymtab_comp_unit_reader, build_type_psymtabs_reader):
10011 Remove has_children.
10012 (build_type_psymtabs_1, process_skeletonless_type_unit)
10013 (load_partial_comp_unit, load_full_comp_unit): Update.
10014 (create_dwo_cu_reader): Remove has_children.
10015 (create_cus_hash_table, read_die_and_children): Update.
10016 (read_full_die_1,read_full_die): Remove has_children.
10017 (read_signatured_type): Update.
10018 (class cutu_reader) <has_children>: Remove.
10019
82ca8957
TT
100202020-02-08 Tom Tromey <tom@tromey.com>
10021
10022 * dwarf2/expr.c: Rename from dwarf2expr.c.
10023 * dwarf2/expr.h: Rename from dwarf2expr.h.
10024 * dwarf2/frame-tailcall.c: Rename from dwarf2-frame-tailcall.c.
10025 * dwarf2/frame-tailcall.h: Rename from dwarf2-frame-tailcall.h.
10026 * dwarf2/frame.c: Rename from dwarf2-frame.c.
10027 * dwarf2/frame.h: Rename from dwarf2-frame.h.
10028 * dwarf2/index-cache.c: Rename from dwarf-index-cache.c.
10029 * dwarf2/index-cache.h: Rename from dwarf-index-cache.h.
10030 * dwarf2/index-common.c: Rename from dwarf-index-common.c.
10031 * dwarf2/index-common.h: Rename from dwarf-index-common.h.
10032 * dwarf2/index-write.c: Rename from dwarf-index-write.c.
10033 * dwarf2/index-write.h: Rename from dwarf-index-write.h.
10034 * dwarf2/loc.c: Rename from dwarf2loc.c.
10035 * dwarf2/loc.h: Rename from dwarf2loc.h.
10036 * dwarf2/read.c: Rename from dwarf2read.c.
10037 * dwarf2/read.h: Rename from dwarf2read.h.
10038 * dwarf2/abbrev.c, aarch64-tdep.c, alpha-tdep.c,
10039 amd64-darwin-tdep.c, arc-tdep.c, arm-tdep.c, bfin-tdep.c,
10040 compile/compile-c-symbols.c, compile/compile-cplus-symbols.c,
10041 compile/compile-loc2c.c, cris-tdep.c, csky-tdep.c, findvar.c,
10042 gdbtypes.c, guile/scm-type.c, h8300-tdep.c, hppa-bsd-tdep.c,
10043 hppa-linux-tdep.c, i386-darwin-tdep.c, i386-linux-tdep.c,
10044 i386-tdep.c, iq2000-tdep.c, m32c-tdep.c, m68hc11-tdep.c,
10045 m68k-tdep.c, microblaze-tdep.c, mips-tdep.c, mn10300-tdep.c,
10046 msp430-tdep.c, nds32-tdep.c, nios2-tdep.c, or1k-tdep.c,
10047 riscv-tdep.c, rl78-tdep.c, rs6000-tdep.c, rx-tdep.c, s12z-tdep.c,
10048 s390-tdep.c, score-tdep.c, sh-tdep.c, sparc-linux-tdep.c,
10049 sparc-tdep.c, sparc64-linux-tdep.c, sparc64-tdep.c, tic6x-tdep.c,
10050 tilegx-tdep.c, v850-tdep.c, xstormy16-tdep.c, xtensa-tdep.c:
10051 Update.
10052 * Makefile.in (COMMON_SFILES): Update.
10053 (HFILES_NO_SRCDIR): Update.
10054
9e35d499
TT
100552020-02-08 Tom Tromey <tom@tromey.com>
10056
10057 * dwarf2read.c (struct die_reader_specs) <comp_dir>: Remove.
10058 (init_cu_die_reader, read_cutu_die_from_dwo): Update.
10059
1eba2311
TT
100602020-02-08 Tom Tromey <tom@tromey.com>
10061
10062 * dwarf2read.h (struct die_info): Don't declare.
10063
e41c2da2
TT
100642020-02-08 Tom Tromey <tom@tromey.com>
10065
10066 * dwarf2read.h (die_info_ptr): Remove typedef.
10067
4fc6c0d5
TT
100682020-02-08 Tom Tromey <tom@tromey.com>
10069
10070 * dwarf2read.c (read_call_site_scope)
10071 (handle_data_member_location, dwarf2_add_member_fn)
10072 (mark_common_block_symbol_computed, read_common_block)
10073 (attr_to_dynamic_prop, partial_die_info::read)
10074 (var_decode_location, dwarf2_fetch_die_loc_sect_off)
10075 (dwarf2_symbol_mark_computed, set_die_type): Update.
10076 * dwarf2/attribute.h (struct attribute) <form_is_block>: Declare
10077 method.
10078 (attr_form_is_block): Don't declare.
10079 * dwarf2/attribute.c (attribute::form_is_block): Now a method.
10080
cd6c91b4
TT
100812020-02-08 Tom Tromey <tom@tromey.com>
10082
10083 * dwarf2read.c (dwarf2_find_base_address, )
10084 (read_call_site_scope, rust_containing_type)
10085 (dwarf2_get_pc_bounds, dwarf2_record_block_ranges)
10086 (handle_data_member_location, dwarf2_add_member_fn)
10087 (get_alignment, read_structure_type, process_structure_scope)
10088 (mark_common_block_symbol_computed, read_common_block)
10089 (read_tag_string_type, attr_to_dynamic_prop, read_subrange_type)
10090 (partial_die_info::read, read_attribute_value, new_symbol)
10091 (lookup_die_type, dwarf2_get_ref_die_offset)
10092 (dwarf2_get_attr_constant_value, follow_die_ref_or_sig)
10093 (dwarf2_fetch_die_loc_sect_off, get_DW_AT_signature_type)
10094 (dwarf2_symbol_mark_computed): Update.
10095 * dwarf2/attribute.h (struct attribute) <value_as_address,
10096 form_is_section_offset, form_is_constant, form_is_ref>: Declare
10097 methods.
10098 (value_as_address, attr_form_is_section_offset)
10099 (attr_form_is_constant, attr_form_is_ref): Don't declare.
10100 * dwarf2/attribute.c (attribute::value_as_address)
10101 (attribute::form_is_section_offset, attribute::form_is_constant)
10102 (attribute::form_is_ref): Now methods.
10103
162dce55
TT
101042020-02-08 Tom Tromey <tom@tromey.com>
10105
10106 * dwarf2read.c (struct attribute, DW_STRING)
10107 (DW_STRING_IS_CANONICAL, DW_UNSND, DW_BLOCK, DW_SND, DW_ADDR)
10108 (DW_SIGNATURE, struct dwarf_block, attr_value_as_address)
10109 (attr_form_is_block, attr_form_is_section_offset)
10110 (attr_form_is_constant, attr_form_is_ref): Move.
10111 * dwarf2/attribute.h: New file.
10112 * dwarf2/attribute.c: New file, from dwarf2read.c.
10113 * Makefile.in (COMMON_SFILES): Add dwarf2/attribute.c.
10114
3054dd54
TT
101152020-02-08 Tom Tromey <tom@tromey.com>
10116
10117 * dwarf2read.c (abbrev_table_up, struct abbrev_info)
10118 (struct attr_abbrev, ABBREV_HASH_SIZE, struct abbrev_table):
10119 Move.
10120 (read_cutu_die_from_dwo, build_type_psymtabs_1): Update.
10121 (abbrev_table::alloc_abbrev, abbrev_table::add_abbrev)
10122 (abbrev_table::lookup_abbrev, abbrev_table_read_table): Move to
10123 abbrev.c.
10124 * dwarf2/abbrev.h: New file.
10125 * dwarf2/abbrev.c: New file, from dwarf2read.c.
10126 * Makefile.in (COMMON_SFILES): Add dwarf2/abbrev.c.
10127
96b79293
TT
101282020-02-08 Tom Tromey <tom@tromey.com>
10129
10130 * dwarf2read.c (dwarf2_section_buffer_overflow_complaint)
10131 (dwarf2_section_size, dwarf2_get_section_info)
10132 (create_signatured_type_table_from_debug_names)
10133 (create_addrmap_from_aranges, read_debug_names_from_section)
10134 (get_gdb_index_contents_from_section, read_comp_unit_head)
10135 (error_check_comp_unit_head, read_abbrev_offset)
10136 (create_debug_type_hash_table, init_cu_die_reader)
10137 (read_cutu_die_from_dwo, dwarf2_build_psymtabs_hard)
10138 (read_comp_units_from_section, create_cus_hash_table)
10139 (create_dwp_hash_table, create_dwo_unit_in_dwp_v1)
10140 (create_dwp_v2_section, dwarf2_rnglists_process)
10141 (dwarf2_ranges_process, read_die_and_siblings, read_full_die)
10142 (abbrev_table_read_table, read_indirect_string_at_offset_from)
10143 (read_indirect_string_from_dwz, read_addr_index_1)
10144 (read_str_index, dwarf_decode_line_header, skip_form_bytes)
10145 (dwarf_decode_macro_bytes, dwarf_decode_macros)
10146 (fill_in_loclist_baton): Update.
10147 * dwarf2/section.h (struct dwarf2_section_info) <get_name,
10148 get_containing_section, get_bfd_owner, get_bfd_section,
10149 get_file_name, get_id, get_flags, empty, read>: Declare methods.
10150 (dwarf2_read_section, get_section_name, get_section_file_name)
10151 (get_containing_section, get_section_bfd_owner)
10152 (get_section_bfd_section, get_section_name, get_section_file_name)
10153 (get_section_id, get_section_flags, dwarf2_section_empty_p): Don't
10154 declare.
10155 * dwarf2/section.c (dwarf2_section_info::get_containing_section)
10156 (dwarf2_section_info::get_bfd_owner)
10157 (dwarf2_section_info::get_bfd_section)
10158 (dwarf2_section_info::get_name)
10159 (dwarf2_section_info::get_file_name, dwarf2_section_info::get_id)
10160 (dwarf2_section_info::get_flags, dwarf2_section_info::empty)
10161 (dwarf2_section_info::read): Now methods.
10162 * dwarf-index-write.c (class debug_names): Update.
10163
2c86cff9
TT
101642020-02-08 Tom Tromey <tom@tromey.com>
10165
10166 * dwarf2read.h (struct dwarf2_section_info, dwarf2_read_section):
10167 Move to dwarf2/section.h.
10168 * dwarf2read.c (get_containing_section, get_section_bfd_owner)
10169 (get_section_bfd_section, get_section_name)
10170 (get_section_file_name, get_section_id, get_section_flags)
10171 (dwarf2_section_empty_p, dwarf2_read_section): Moe to
10172 dwarf2/section.c.
10173 * dwarf2/section.h: New file.
10174 * dwarf2/section.c: New file, from dwarf2read.c.
10175 * Makefile.in (COMMON_SFILES): Add dwarf2/section.c.
10176
f4382c45
TT
101772020-02-08 Tom Tromey <tom@tromey.com>
10178
10179 * dwarf2read.h (read_unsigned_leb128): Don't declare.
10180 * dwarf2read.c (read_1_byte, read_1_signed_byte, read_2_bytes)
10181 (read_2_signed_bytes, read_3_bytes, read_4_bytes)
10182 (read_4_signed_bytes, read_8_bytes): Move to dwarf2/leb.h.
10183 (read_unsigned_leb128, read_signed_leb128): Move to dwarf2/leb.c.
10184 * dwarf2/leb.h: New file, from dwarf2read.c.
10185 * dwarf2/leb.c: New file, from dwarf2read.c.
10186 * dwarf2-frame.c (read_1_byte, read_4_bytes, read_8_bytes):
10187 Remove.
10188 * Makefile.in (CONFIG_SRC_SUBDIR): Add dwarf2.
10189 (COMMON_SFILES): Add dwarf2/leb.c.
10190
01840b7a
JB
101912020-02-08 Joel Brobecker <brobecker@adacore.com>
10192
10193 GDB 9.1 released.
10194
dfcb27e4
IB
101952020-02-05 Iain Buclaw <ibuclaw@gdcproject.org>
10196
10197 PR gdb/25190:
aac66a4c
SM
10198 * gdb/remote-sim.c (gdb_os_write_stderr): Update.
10199 * gdb/remote.c (remote_console_output): Update.
10200 * gdb/ui-file.c (fputs_unfiltered): Rename to...
10201 (ui_file_puts): ...this.
10202 * gdb/ui-file.h (ui_file_puts): Add declaration.
10203 * gdb/utils.c (emit_style_escape): Update.
10204 (flush_wrap_buffer): Update.
10205 (fputs_maybe_filtered): Update.
10206 (fputs_unfiltered): Add function.
dfcb27e4 10207
faa17681
IB
102082020-02-05 Iain Buclaw <ibuclaw@gdcproject.org>
10209
aac66a4c
SM
10210 * gdb/event-loop.c (gdb_wait_for_event): Update.
10211 * gdb/printcmd.c (printf_command): Update.
10212 * gdb/remote-fileio.c (remote_fileio_func_write): Update.
10213 * gdb/remote-sim.c (gdb_os_flush_stdout): Update.
10214 (gdb_os_flush_stderr): Update.
10215 * gdb/remote.c (remote_console_output): Update.
10216 * gdb/ui-file.c (gdb_flush): Rename to...
10217 (ui_file_flush): ...this.
10218 (stderr_file::write): Update.
10219 (stderr_file::puts): Update.
10220 * gdb/ui-file.h (gdb_flush): Rename to...
10221 (ui_file_flush): ...this.
10222 * gdb/utils.c (gdb_flush): Add function.
10223 * gdb/utils.h (gdb_flush): Add declaration.
faa17681 10224
5abbbe1d
TT
102252020-02-07 Tom Tromey <tromey@adacore.com>
10226
10227 PR breakpoints/24915:
10228 * source.c (find_and_open_source): Do not check basenames_may_differ.
10229
919adfe8
TT
102302020-02-07 Tom Tromey <tom@tromey.com>
10231
10232 * README: Update gdbserver documentation.
10233 * gdbserver: Move to top level.
10234 * configure.tgt (build_gdbserver): Remove.
10235 * configure.ac: Remove --enable-gdbserver.
10236 * configure: Rebuild.
10237 * Makefile.in (distclean): Don't mention gdbserver.
10238
1d5d29e7
SV
102392020-02-06 Shahab Vahedi <shahab@synopsys.com>
10240
10241 * source-cache.c (source_cache::ensure): Surround
10242 get_plain_source_lines with a try/catch.
10243 (source_cache::get_line_charpos): Get rid of try/catch
10244 and only check for the return value of "ensure".
10245 * tui/tui-source.c (tui_source_window::set_contents):
10246 Simplify "nlines" calculation.
10247
6eb1129c
SV
102482020-02-06 Shahab Vahedi <shahab@synopsys.com>
10249
10250 * MAINTAINERS (Write After Approval): Add myself.
10251
c6a42d11
CB
102522020-02-05 Christian Biesinger <cbiesinger@google.com>
10253
10254 * sparc-nat.h (struct sparc_target) <xfer_partial>: Fix base class
10255 function call.
10256
c8ecdda6
CB
102572020-02-05 Christian Biesinger <cbiesinger@google.com>
10258
10259 * ppc-nbsd-tdep.h: Fix macro name in #endif comment.
10260
f6480e70
MR
102612020-02-05 Maciej W. Rozycki <macro@wdc.com>
10262
10263 * nat/riscv-linux-tdesc.h: New file.
10264 * nat/riscv-linux-tdesc.c: New file, taking code from...
10265 * riscv-linux-nat.c (riscv_linux_nat_target::read_description):
10266 ... here.
10267 * configure.nat <linux> <riscv*>: Add nat/riscv-linux-tdesc.o to
10268 NATDEPFILES.
10269
dcc9fbc6
AB
102702020-02-04 Andrew Burgess <andrew.burgess@embecosm.com>
10271
10272 * remote-sim.c (sim_inferior_data::sim_inferior_data): Assert that
10273 we don't set the fake simulator ptid to the null_ptid.
10274
719546c4
SM
102752020-02-03 Simon Marchi <simon.marchi@efficios.com>
10276
10277 * fork-child.c (gdb_startup_inferior): Use bool instead of int.
10278 * gdbthread.h (class thread_info) <resumed>: Likewise.
10279 * infrun.c (resume_1): Likewise.
10280 (proceed): Likewise.
10281 (infrun_thread_stop_requested): Likewise.
10282 (stop_all_threads): Likewise.
10283 (handle_inferior_event): Likewise.
10284 (restart_threads): Likewise.
10285 (finish_step_over): Likewise.
10286 (keep_going_stepped_thread): Likewise.
10287 * linux-nat.c (attach_proc_task_lwp_callback): Likewise.
10288 (linux_handle_extended_wait): Likewise.
10289 * record-btrace.c (get_thread_current_frame_id): Likewise.
10290 * record-full.c (record_full_wait_1): Likewise.
10291 * remote.c (remote_target::process_initial_stop_replies): Likewise.
10292 * target.c (target_resume): Likewise.
10293 * thread.c (set_running_thread): Likewise.
10294
e409c542
AKS
102952020-02-03 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
10296
10297 * f-valprint.c (f77_print_array_1): Changed datatype of index
10298 variable to LONGEST from int to enable it to contain bound
10299 values correctly.
10300
ee98c0da
MR
103012020-02-03 Maciej W. Rozycki <macro@wdc.com>
10302
10303 * riscv-linux-nat.c [!NFPREG] (NFPREG): New macro.
10304 (supply_fpregset_regnum, fill_fpregset): Handle regset buffer
10305 offsets according to FLEN determined.
10306 (riscv_linux_nat_target::read_description): Determine FLEN
10307 dynamically.
10308 (riscv_linux_nat_target::fetch_registers): Size regset buffer
10309 according to FLEN determined.
10310 (riscv_linux_nat_target::store_registers): Likewise.
10311
aa66aac4
SV
103122020-02-01 Shahab Vahedi <shahab@synopsys.com>
10313
10314 * target-descriptions.c (tdesc_register_in_reggroup_p): Return 0
10315 when reg->group is empty and reggroup is not.
10316
fd9faca8
TT
103172020-01-31 Tom Tromey <tromey@adacore.com>
10318
10319 * ravenscar-thread.c (ravenscar_thread_target::mourn_inferior):
10320 Call beneath target's mourn_inferior after unpushing.
10321
42330a68
AB
103222020-01-31 Andrew Burgess <andrew.burgess@embecosm.com>
10323
10324 PR tui/9765
10325 * tui/tui-disasm.c (tui_find_disassembly_address): If we don't
10326 have enough lines to fill the screen, still return the lowest
10327 address we found.
10328
7a27a45b
AB
103292020-01-31 Andrew Burgess <andrew.burgess@embecosm.com>
10330
10331 * tui/tui-win.c (_initialize_tui_win): Update help text for '+',
10332 '-', '<', and '>' commands.
10333
c47f70e2
PA
103342020-01-29 Pedro Alves <palves@redhat.com>
10335 Sergio Durigan Junior <sergiodj@redhat.com>
10336
10337 * infcmd.c (construct_inferior_arguments): Assert that
10338 'argc' is greater than 0.
10339
5133a315
LM
103402020-01-29 Luis Machado <luis.machado@linaro.org>
10341
10342 * aarch64-tdep.c (BRK_INSN_MASK): Define to 0xffe0001f.
10343 (BRK_INSN_MASK): Define to 0xd4200000.
10344 (aarch64_program_breakpoint_here_p): New function.
10345 (aarch64_gdbarch_init): Set gdbarch_program_breakpoint_here_p hook.
10346 * arch-utils.c (default_program_breakpoint_here_p): Moved from
10347 breakpoint.c.
10348 * arch-utils.h (default_program_breakpoint_here_p): Moved from
10349 breakpoint.h
10350 * breakpoint.c (bp_loc_is_permanent): Changed return type to bool and
10351 call gdbarch_program_breakpoint_here_p.
10352 (program_breakpoint_here): Moved to arch-utils.c, renamed to
10353 default_program_breakpoint_here_p, changed return type to bool and
10354 simplified.
10355 * breakpoint.h (program_breakpoint_here): Moved prototype to
10356 arch-utils.h, renamed to default_program_breakpoint_here_p and changed
10357 return type to bool.
10358 * gdbarch.c: Regenerate.
10359 * gdbarch.h: Regenerate.
10360 * gdbarch.sh (program_breakpoint_here_p): New method.
10361 * infrun.c (handle_signal_stop): Call
10362 gdbarch_program_breakpoint_here_p.
10363
168f8c6b
TT
103642020-01-26 Tom Tromey <tom@tromey.com>
10365
10366 * ctfread.c (struct ctf_fp_info): Reindent.
10367 (_initialize_ctfread): Remove.
10368
128a391f
TT
103692020-01-26 Tom Tromey <tom@tromey.com>
10370
10371 * psymtab.c (partial_map_expand_apply)
10372 (psym_find_pc_sect_compunit_symtab, psym_lookup_symbol)
10373 (psymtab_to_symtab, psym_find_last_source_symtab, dump_psymtab)
10374 (psym_print_stats, psym_expand_symtabs_for_function)
10375 (psym_map_symbol_filenames, psym_map_matching_symbols)
10376 (psym_expand_symtabs_matching)
10377 (partial_symtab::read_dependencies, maintenance_info_psymtabs)
10378 (maintenance_check_psymtabs): Use new methods.
10379 * psympriv.h (struct partial_symtab) <readin_p,
10380 get_compunit_symtab>: New methods.
10381 <readin, compunit_symtab>: Remove members.
10382 (struct standard_psymtab): New.
10383 (struct legacy_psymtab): Derive from standard_psymtab.
10384 * dwarf2read.h (struct dwarf2_psymtab): Derive from
10385 standard_psymtab.
10386 * ctfread.c (struct ctf_psymtab): Derive from standard_psymtab.
10387
0494dbec
TT
103882020-01-26 Tom Tromey <tom@tromey.com>
10389
10390 * xcoffread.c (xcoff_psymtab_to_symtab_1): Call
10391 read_dependencies. Add assert.
10392 * psymtab.c (partial_symtab::read_dependencies): New method.
10393 * psympriv.h (struct partial_symtab) <read_dependencies>: New
10394 method.
10395 * mdebugread.c (psymtab_to_symtab_1): Call read_dependencies.
10396 * dwarf2read.c (dwarf2_psymtab::expand_psymtab): Call
10397 read_dependencies.
10398 * dbxread.c (dbx_psymtab_to_symtab_1): Call read_dependencies.
10399 Add assert.
10400
8566b89b
TT
104012020-01-26 Tom Tromey <tom@tromey.com>
10402
10403 * xcoffread.c (xcoff_psymtab_to_symtab_1): Change argument order.
10404 Call expand_psymtab.
10405 (xcoff_read_symtab): Call expand_psymtab.
10406 (xcoff_start_psymtab, xcoff_end_psymtab): Set
10407 legacy_expand_psymtab.
10408 * psympriv.h (struct partial_symtab) <expand_psymtab>: New
10409 method.
10410 (struct legacy_psymtab) <expand_psymtab>: Implement.
10411 <legacy_expand_psymtab>: New member.
10412 * mdebugread.c (mdebug_read_symtab): Call expand_psymtab.
10413 (parse_partial_symbols): Set legacy_expand_psymtab.
10414 (psymtab_to_symtab_1): Change argument order. Call
10415 expand_psymtab.
10416 (new_psymtab): Set legacy_expand_psymtab.
10417 * dwarf2read.h (struct dwarf2_psymtab) <expand_psymtab>: Declare.
10418 * dwarf2read.c (dwarf2_psymtab::read_symtab): Call
10419 expand_psymtab.
10420 (dwarf2_psymtab::expand_psymtab): Rename from
10421 psymtab_to_symtab_1. Call expand_psymtab.
10422 * dbxread.c (start_psymtab): Set legacy_expand_psymtab.
10423 (dbx_end_psymtab): Likewise.
10424 (dbx_psymtab_to_symtab_1): Change argument order. Call
10425 expand_psymtab.
10426 (dbx_read_symtab): Call expand_psymtab.
10427 * ctfread.c (struct ctf_psymtab) <expand_psymtab>: Declare.
10428 (ctf_psymtab::expand_psymtab): Rename from psymtab_to_symtab.
10429 (ctf_psymtab::read_symtab): Call expand_psymtab.
10430
077cbab2
TT
104312020-01-26 Tom Tromey <tom@tromey.com>
10432
10433 * xcoffread.c (xcoff_read_symtab): Remove prints. Add assert.
10434 * psymtab.c (psymtab_to_symtab): Print verbose "Reading"
10435 messages.
10436 * mdebugread.c (mdebug_read_symtab): Remove prints.
10437 * dwarf2read.c (dwarf2_psymtab::read_symtab): Remove prints. Add
10438 assert.
10439 * dbxread.c (dbx_read_symtab): Remove prints. Add assert.
10440
891813be
TT
104412020-01-26 Tom Tromey <tom@tromey.com>
10442
10443 * xcoffread.c (this_symtab_psymtab, read_xcoff_symtab)
10444 (xcoff_psymtab_to_symtab_1, xcoff_read_symtab)
10445 (xcoff_start_psymtab, xcoff_end_psymtab, scan_xcoff_symtab): Use
10446 legacy_symtab.
10447 * stabsread.h (dbx_end_psymtab): Use legacy_symtab.
10448 * psymtab.c (psymtab_to_symtab): Call method.
10449 (dump_psymtab): Update.
10450 * psympriv.h (struct partial_symtab): Add virtual destructor.
10451 <read_symtab>: New method.
10452 (struct legacy_symtab): New.
10453 * mdebugread.c (mdebug_read_symtab): Use legacy_psymtab.
10454 (struct pst_map) <pst>: Now a legacy_psymtab.
10455 (parse_procedure, parse_partial_symbols, psymtab_to_symtab_1)
10456 (new_psymtab): Use legacy_psymtab.
10457 * dwarf2read.h (struct dwarf2_psymtab): New.
10458 (struct dwarf2_per_cu_data) <psymtab>: Use it.
10459 * dwarf2read.c (dwarf2_create_include_psymtab)
10460 (dwarf2_build_include_psymtabs, create_type_unit_group)
10461 (create_partial_symtab, process_psymtab_comp_unit_reader)
10462 (build_type_psymtabs_reader, build_type_psymtab_dependencies)
10463 (set_partial_user): Use dwarf2_psymtab.
10464 (dwarf2_psymtab::read_symtab): Rename from dwarf2_read_symtab.
10465 (psymtab_to_symtab_1, process_full_comp_unit)
10466 (process_full_type_unit, dwarf2_ranges_read)
10467 (dwarf2_get_pc_bounds, psymtab_include_file_name)
10468 (dwarf_decode_lines): Use dwarf2_psymtab.
10469 * dwarf-index-write.c (psym_index_map): Use dwarf2_psymtab.
10470 (add_address_entry_worker, write_one_signatured_type)
10471 (recursively_count_psymbols, recursively_write_psymbols)
10472 (write_one_signatured_type, psyms_seen_size, write_gdbindex)
10473 (write_debug_names): Likewise.
10474 * dbxread.c (struct header_file_location): Take a legacy_psymtab.
10475 <pst>: Now a legacy_psymtab.
10476 (find_corresponding_bincl_psymtab): Return a legacy_psymtab.
10477 (read_dbx_symtab, start_psymtab, dbx_end_psymtab)
10478 (dbx_psymtab_to_symtab_1, read_ofile_symtab): Use legacy_psymtab.
10479 * ctfread.c (struct ctf_psymtab): New.
10480 (ctf_start_symtab, ctf_end_symtab, psymtab_to_symtab): Take a
10481 ctf_psymtab.
10482 (ctf_psymtab::read_symtab): Rename from ctf_read_symtab.
10483 (create_partial_symtab): Return a ctf_psymtab.
10484 (scan_partial_symbols): Update.
10485
c3693a1d
TT
104862020-01-26 Tom Tromey <tom@tromey.com>
10487
10488 * xcoffread.c (xcoff_start_psymtab): Use new.
10489 * psymtab.c (partial_symtab::partial_symtab): New constructor,
10490 renamed from start_psymtab_common.
10491 * psympriv.h (struct partial_symtab): Add new constructor.
10492 (start_psymtab_common): Don't declare.
10493 * mdebugread.c (parse_partial_symbols): Use new.
10494 * dwarf2read.c (create_partial_symtab): Use new.
10495 * dbxread.c (start_psymtab): Use new.
10496 * ctfread.c (create_partial_symtab): Use new.
10497
32caafd0
TT
104982020-01-26 Tom Tromey <tom@tromey.com>
10499
10500 * xcoffread.c (xcoff_end_psymtab): Use new.
10501 * psymtab.c (start_psymtab_common): Use new.
10502 (partial_symtab::partial_symtab): Rename from allocate_psymtab.
10503 Update.
10504 * psympriv.h (struct partial_symtab): Add parameters to
10505 constructor. Don't inline.
10506 (allocate_psymtab): Don't declare.
10507 * mdebugread.c (new_psymtab): Use new.
10508 * dwarf2read.c (dwarf2_create_include_psymtab): Use new.
10509 * dbxread.c (dbx_end_psymtab): Use new.
10510
abaa2f23
TT
105112020-01-26 Tom Tromey <tom@tromey.com>
10512
10513 * psymtab.h (class psymtab_storage) <install_psymtab>: Rename from
10514 allocate_psymtab. Update documentation.
10515 * psymtab.c (psymtab_storage::install_psymtab): Rename from
10516 allocate_psymtab. Do not use new.
10517 (allocate_psymtab): Use new. Update.
10518
6d94535f
TT
105192020-01-26 Tom Tromey <tom@tromey.com>
10520
10521 * xcoffread.c (xcoff_psymtab_to_symtab_1): Update.
10522 * psymtab.c (psym_print_stats): Update.
10523 * psympriv.h (struct partial_symtab) <readin,
10524 psymtabs_addrmap_supported, anonymous>: Now bool.
10525 * mdebugread.c (psymtab_to_symtab_1): Update.
10526 * dwarf2read.c (create_type_unit_group, create_partial_symtab)
10527 (build_type_psymtabs_reader, psymtab_to_symtab_1)
10528 (process_full_comp_unit, process_full_type_unit): Update.
10529 * dbxread.c (dbx_psymtab_to_symtab_1): Update.
10530 * ctfread.c (psymtab_to_symtab): Update.
10531
6f17252b
TT
105322020-01-26 Tom Tromey <tom@tromey.com>
10533
10534 * mdebugread.c (parse_partial_symbols): Use discard_psymtab.
10535 * psymtab.h (class psymtab_storage) <free_psymtabs>: Remove.
10536 * psymtab.c (psymtab_storage): Delete psymtabs.
10537 (psymtab_storage::allocate_psymtab): Use new.
10538 (psymtab_storage::discard_psymtab): Use delete.
10539 * psympriv.h (struct partial_symtab): Add constructor and
10540 initializers.
10541
f6f1cebc
TT
105422020-01-26 Tom Tromey <tom@tromey.com>
10543
10544 * machoread.c: Do not include psympriv.h.
10545
e47e48f6
PW
105462020-01-25 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10547
10548 * NEWS: Mention the new option and the set/show commands.
10549
a2fedca9
PW
105502020-01-25 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10551
10552 * exec.c (exec_file_mismatch_names, exec_file_mismatch_mode)
10553 (show_exec_file_mismatch_command, set_exec_file_mismatch_command)
10554 (validate_exec_file): New variables, enums, functions.
10555 (exec_file_locate_attach, print_section_info): Style the filenames.
10556 (_initialize_exec): Install show_exec_file_mismatch_command and
10557 set_exec_file_mismatch_command.
10558 * gdbcore.h (validate_exec_file): Declare.
10559 * infcmd.c (attach_command): Call validate_exec_file.
10560 * remote.c ( remote_target::remote_add_inferior): Likewise.
10561
7ffa82e1
AB
105622020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
10563
10564 * frame.c (find_frame_sal): Move call to get_next_frame into more
10565 inner scope.
10566 * inline-frame.c (inilne_state) <inline_state>: Update argument
10567 types.
10568 (inilne_state) <skipped_symbol>: Rename to...
10569 (inilne_state) <skipped_symbols>: ...this, and change to a vector.
10570 (skip_inline_frames): Build vector of skipped symbols and use this
10571 to reate the inline_state.
10572 (inline_skipped_symbol): Add a comment and some assertions, fetch
10573 skipped symbol from the list.
10574
3d92a3e3
AB
105752020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
10576
10577 * buildsym.c (lte_is_less_than): Delete.
10578 (buildsym_compunit::end_symtab_with_blockvector): Create local
10579 lambda function to sort line table entries, and use
10580 std::stable_sort instead of std::sort.
10581 * symtab.c (find_pc_sect_line): Skip backward over end of sequence
10582 markers when looking for a previous line.
10583
94a72be7
AB
105842020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
10585
10586 * dwarf2read.c (lnp_state_machine::record_line): Include
10587 end_sequence parameter in debug print out. Record the line if we
10588 are at an end_sequence marker even if it's not the start of a
10589 statement.
10590 * symmisc.c (maintenance_print_one_line_table): Print end of
10591 sequence markers with 'END' not '0'.
10592
53af73bf
PA
105932020-01-24 Pedro Alves <palves@redhat.com>
10594
10595 PR gdb/25410
10596 * thread.c (scoped_restore_current_thread::restore): Use
10597 switch_to_inferior_no_thread.
10598 * exec.c: Include "progspace-and-thread.h".
10599 (add_target_sections, remove_target_sections):
10600 scoped_restore_current_pspace_and_thread instead of
10601 scoped_restore_current_thread.
10602 * infrun.c (handle_vfork_child_exec_or_exit): Assign the pspace
10603 and aspace to the inferior before calling clone_program_space.
10604 Remove stale comment.
10605
3050c6f4
CB
106062020-01-24 Christian Biesinger <cbiesinger@google.com>
10607
10608 * arm-nbsd-nat.c (arm_nbsd_nat_target::fetch_registers): Rename to...
10609 (arm_netbsd_nat_target::fetch_registers): ...this.
10610 (arm_nbsd_nat_target::store_registers): Rename to...
10611 (arm_netbsd_nat_target::store_registers): ...this.
10612
73685c7e
CB
106132020-01-24 Christian Biesinger <cbiesinger@google.com>
10614
10615 * arm-nbsd-nat.c: Define _KERNTYPES to get the declaration of
10616 register_t.
10617
89203d40
CB
106182020-01-24 Christian Biesinger <cbiesinger@google.com>
10619
10620 * aarch64-fbsd-tdep.c (aarch64_fbsd_iterate_over_regset_sections):
10621 Update comment.
10622 * aarch64-linux-tdep.c (aarch64_linux_iterate_over_regset_sections):
10623 Likewise.
10624 * arm-fbsd-tdep.c (arm_fbsd_iterate_over_regset_sections): Likewise.
10625 * gdbcore.h (deprecated_add_core_fns): Update comment to point to
10626 the correct replacement (iterate_over_regset_sections).
10627 * riscv-fbsd-tdep.c (riscv_fbsd_iterate_over_regset_sections):
10628 Update comment.
10629
1ba1ac88
AB
106302020-01-24 Graham Markall <graham.markall@embecosm.com>
10631
10632 PR gdb/23718
10633 * gdb/python/python.c (execute_gdb_command): Call
10634 async_enable_stdin in catch block.
10635
f3364a6d
AB
106362020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
10637
10638 * event-loop.c (start_event_loop): Wrap async_enable_stdin with
10639 SWITCH_THRU_ALL_UIS.
10640
733d0a67
AB
106412020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
10642
10643 PR tui/9765
10644 * minsyms.c (lookup_minimal_symbol_by_pc_section): Update header
10645 comment, add extra parameter, and update to store previous symbol
10646 when appropriate.
10647 * minsyms.h (lookup_minimal_symbol_by_pc_section): Update comment,
10648 add extra parameter.
10649 * tui/tui-disasm.c (tui_disassemble): Update header comment,
10650 remove unneeded parameter, add try/catch around gdb_print_insn,
10651 rewrite to add items to asm_lines vector.
10652 (tui_find_backward_disassembly_start_address): New function.
10653 (tui_find_disassembly_address): Updated throughout.
10654 (tui_disasm_window::set_contents): Update for changes to
10655 tui_disassemble.
10656 (tui_disasm_window::do_scroll_vertical): No need to adjust the
10657 number of lines to scroll.
10658
b3b3bada
SM
106592020-01-23 Simon Marchi <simon.marchi@polymtl.ca>
10660
10661 * objfiles.h (ALL_OBJFILE_OSECTIONS): Move up.
10662 (SECT_OFF_DATA): Likewise.
10663 (SECT_OFF_RODATA): Likewise.
10664 (SECT_OFF_TEXT): Likewise.
10665 (SECT_OFF_BSS): Likewise.
10666 (struct objfile) <text_section_offset, data_section_offset>: New
10667 methods.
10668 * amd64-windows-tdep.c (amd64_windows_find_unwind_info): Use
10669 objfile::text_section_offset.
10670 * coff-pe-read.c (add_pe_forwarded_sym): Likewise.
10671 * coffread.c (coff_symtab_read): Likewise.
10672 (enter_linenos): Likewise.
10673 (process_coff_symbol): Likewise.
10674 * ctfread.c (get_objfile_text_range): Likewise.
10675 * dtrace-probe.c (dtrace_probe::get_relocated_address):
10676 Use objfile::data_section_offset.
10677 * dwarf2-frame.c (execute_cfa_program): Use
10678 objfile::text_section_offset.
10679 (dwarf2_frame_find_fde): Likewise.
10680 * dwarf2read.c (create_addrmap_from_index): Likewise.
10681 (create_addrmap_from_aranges): Likewise.
10682 (dw2_find_pc_sect_compunit_symtab): Likewise.
10683 (process_psymtab_comp_unit_reader): Likewise.
10684 (add_partial_symbol): Likewise.
10685 (add_partial_subprogram): Likewise.
10686 (process_full_comp_unit): Likewise.
10687 (read_file_scope): Likewise.
10688 (read_func_scope): Likewise.
10689 (read_lexical_block_scope): Likewise.
10690 (read_call_site_scope): Likewise.
10691 (dwarf2_rnglists_process): Likewise.
10692 (dwarf2_ranges_process): Likewise.
10693 (dwarf2_ranges_read): Likewise.
10694 (dwarf_decode_lines_1): Likewise.
10695 (new_symbol): Likewise.
10696 (dwarf2_fetch_die_loc_sect_off): Likewise.
10697 (dwarf2_per_cu_text_offset): Likewise.
10698 * hppa-bsd-tdep.c (hppabsd_find_global_pointer): Likewise.
10699 * hppa-tdep.c (read_unwind_info): Likewise.
10700 * ia64-tdep.c (ia64_find_unwind_table): Likewise.
10701 * psympriv.h (struct partial_symtab): Likewise.
10702 * psymtab.c (find_pc_sect_psymtab): Likewise.
10703 * solib-svr4.c (enable_break): Likewise.
10704 * stap-probe.c (relocate_address): Use
10705 objfile::data_section_offset.
10706 * xcoffread.c (enter_line_range): Use
10707 objfile::text_section_offset.
10708 (read_xcoff_symtab): Likewise.
10709
ab53f382
SM
107102020-01-23 Simon Marchi <simon.marchi@efficios.com>
10711
10712 * darwin-nat.c (darwin_nat_target::wait_1): Move `inf`
10713 declaration to narrower scopes.
10714
e7eee665
SM
107152020-01-23 Simon Marchi <simon.marchi@efficios.com>
10716
10717 * darwin-nat.h (struct darwin_exception_msg, enum
10718 darwin_msg_state, struct darwin_thread_info, darwin_thread_t):
10719 Move up.
10720 (class darwin_nat_target) <wait_1, check_new_threads,
10721 decode_exception_message, decode_message, stop_inferior,
10722 init_thread_list, ptrace_him, cancel_breakpoint>: Declare.
10723 * darwin-nat.c (darwin_check_new_threads): Rename to...
10724 (darwin_nat_target::check_new_threads): ... this.
10725 (darwin_suspend_inferior_it): Remove.
10726 (darwin_decode_exception_message): Rename to...
10727 (darwin_nat_target::decode_exception_message): ... this.
10728 (darwin_nat_target::resume): Pass target to find_inferior_ptid.
10729 (darwin_decode_message): Rename to...
10730 (darwin_nat_target::decode_message): ... this.
10731 (cancel_breakpoint): Rename to...
10732 (darwin_nat_target::cancel_breakpoint): ... this.
10733 (darwin_wait): Rename to...
10734 (darwin_nat_target::wait_1): ... this. Use range-based for loop
10735 instead of iterate_over_inferiors.
10736 (darwin_nat_target::wait): Call wait_1 instead of darwin_wait.
10737 (darwin_stop_inferior): Rename to...
10738 (darwin_nat_target::stop_inferior): ... this.
10739 (darwin_nat_target::kill): Call wait_1 instead of darwin_wait.
10740 (darwin_init_thread_list): Rename to...
10741 (darwin_nat_target::init_thread_list): ... this.
10742 (darwin_ptrace_him): Rename to...
10743 (darwin_nat_target::ptrace_him): ... this.
10744 (darwin_nat_target::create_inferior): Pass lambda function to
10745 fork_inferior.
10746 (darwin_nat_target::detach): Call stop_inferior instead of
10747 darwin_stop_inferior.
10748 * fork-inferior.h (fork_inferior): Change init_trace_fun
10749 parameter to gdb::function_view.
10750 * fork-inferior.c (fork_inferior): Likewise.
10751
c162ed3e
HD
107522020-01-23 Hannes Domani <ssbssa@yahoo.de>
10753
10754 * i386-cygwin-tdep.c (core_process_module_section): Update.
10755 * windows-nat.c (struct lm_info_windows): Add text_offset.
10756 (windows_xfer_shared_libraries): Update.
10757 * windows-tdep.c (windows_xfer_shared_library):
10758 Add text_offset_cached argument.
10759 * windows-tdep.h (windows_xfer_shared_library): Update.
10760
a1237872
SM
107612020-01-21 Simon Marchi <simon.marchi@efficios.com>
10762
10763 * gdbarch.sh: Add declaration for _initialize_gdbarch.
10764
b3ee6dd9
SM
107652020-01-21 Simon Marchi <simon.marchi@efficios.com>
10766
10767 * remote-sim.c (check_for_duplicate_sim_descriptor): Remove.
10768 (get_sim_inferior_data): Remove use of iterate_over_inferiors,
10769 replace with range-based for.
10770 (gdbsim_interrupt_inferior): Remove.
10771 (gdbsim_target::interrupt): Replace iterate_over_inferiors use
10772 with a range-based for. Inline code from
10773 gdbsim_interrupt_inferior.
10774
f9fac3c8
SM
107752020-01-21 Simon Marchi <simon.marchi@efficios.com>
10776
10777 * infrun.c (proceed): Fix indentation.
10778
f6474de9
TT
107792020-01-21 Tom Tromey <tromey@adacore.com>
10780
10781 * source-cache.c (source_cache::ensure): Call ext_lang_colorize.
10782 * python/python.c (python_extension_ops): Update.
10783 (gdbpy_colorize): New function.
10784 * python/lib/gdb/__init__.py (colorize): New function.
10785 * extension.h (ext_lang_colorize): Declare.
10786 * extension.c (ext_lang_colorize): New function.
10787 * extension-priv.h (struct extension_language_ops) <colorize>: New
10788 member.
10789 * cli/cli-style.c (_initialize_cli_style): Update help text.
10790
f0c702d4
LM
107912020-01-21 Luis Machado <luis.machado@linaro.org>
10792
10793 * aarch64-tdep.c (struct aarch64_displaced_step_closure)
10794 <cond>: Change type to bool.
10795 (aarch64_displaced_step_b_cond): Update cond to use bool type.
10796 (aarch64_displaced_step_cb): Likewise.
10797 (aarch64_displaced_step_tb): Likewise.
10798
1ab139e5
LM
107992020-01-21 Luis Machado <luis.machado@linaro.org>
10800
10801 * aarch64-tdep.c (aarch64_displaced_step_fixup): Add more debugging
10802 output.
10803
0c271889
LM
108042020-01-21 Luis Machado <luis.machado@linaro.org>
10805
10806 * aarch64-tdep.c (struct aarch64_displaced_step_closure )
10807 <pc_adjust>: Adjust the documentation.
10808 (aarch64_displaced_step_fixup): Check if PC really moved before
10809 adjusting it.
10810
4d89c1c7
TT
108112020-01-19 Tom Tromey <tom@tromey.com>
10812
10813 * disasm.c (~gdb_disassembler): New destructor.
10814 (gdb_buffered_insn_length): Call disassemble_free_target.
10815 * disasm.h (class gdb_disassembler): Declare destructor. Use
10816 DISABLE_COPY_AND_ASSIGN.
10817
c0ab21c2
TT
108182020-01-19 Tom Tromey <tom@tromey.com>
10819
10820 * dwarf2read.c (abbrev_table_up): Move typedef earlier.
10821 (die_reader_func_ftype): Remove.
10822 (cutu_reader): New class.
10823 (dw2_get_file_names_reader): Remove "data" parameter.
10824 (dw2_get_file_names): Use cutu_reader.
10825 (create_debug_type_hash_table): Update.
10826 (read_cutu_die_from_dwo): Update comment.
10827 (lookup_dwo_unit): Add dwo_name parameter.
10828 (cutu_reader::init_tu_and_read_dwo_dies): Now a method. Remove
10829 die_reader_func_ftype and data parameters.
10830 (cutu_reader::cutu_reader): Rename from init_cutu_and_read_dies.
10831 Remove die_reader_func_ftype and data parameters.
10832 (~cutu_reader): New; from init_cutu_and_read_dies.
10833 (cutu_reader::cutu_reader): Rename from
10834 init_cutu_and_read_dies_no_follow. Remove die_reader_func_ftype
10835 and data parameters.
10836 (init_cutu_and_read_dies_simple): Remove.
10837 (struct process_psymtab_comp_unit_data): Remove.
10838 (process_psymtab_comp_unit_reader): Remove data parameter; add
10839 want_partial_unit and pretend_language parameters.
10840 (process_psymtab_comp_unit): Use cutu_reader.
10841 (build_type_psymtabs_reader): Remove data parameter.
10842 (build_type_psymtabs_1): Use cutu_reader.
10843 (process_skeletonless_type_unit): Likewise.
10844 (load_partial_comp_unit_reader): Remove.
10845 (load_partial_comp_unit): Use cutu_reader.
10846 (load_full_comp_unit_reader): Remove.
10847 (load_full_comp_unit): Use cutu_reader.
10848 (struct create_dwo_cu_data): Remove.
10849 (create_dwo_cu_reader): Remove datap parameter; add dwo_file and
10850 dwo_unit parameters.
10851 (create_cus_hash_table): Use cutu_reader.
10852 (struct dwarf2_read_addr_index_data): Remove.
10853 (dwarf2_read_addr_index_reader): Remove.
10854 (dwarf2_read_addr_index): Use cutu_reader.
10855 (read_signatured_type_reader): Remove.
10856 (read_signatured_type): Use cutu_reader.
10857
45bbae5c
TT
108582020-01-19 Tom Tromey <tom@tromey.com>
10859
10860 * tui/tui.c (tui_show_assembly): Use tui_suppress_output.
10861 * tui/tui-wingeneral.h (class tui_suppress_output): New.
10862 (tui_wrefresh): Declare.
10863 * tui/tui-wingeneral.c (suppress_output): New global.
10864 (tui_suppress_output, ~tui_suppress_output): New constructor and
10865 destructor.
10866 (tui_wrefresh): New function.
10867 (tui_gen_win_info::refresh_window): Use tui_wrefresh.
10868 (tui_gen_win_info::make_window): Call wnoutrefresh when needed.
10869 * tui/tui-regs.h (struct tui_data_window) <no_refresh>: Declare
10870 method.
10871 * tui/tui-regs.c (tui_data_window::erase_data_content): Call
10872 tui_wrefresh.
10873 (tui_data_window::no_refresh): New method.
10874 (tui_data_item_window::refresh_window): Call tui_wrefresh.
10875 (tui_reg_command): Use tui_suppress_output
10876 * tui/tui-layout.c (tui_set_layout): Use tui_suppress_output.
10877 * tui/tui-data.h (struct tui_gen_win_info) <no_refresh>: New
10878 method.
10879 * tui/tui-command.c (tui_refresh_cmd_win): Call tui_wrefresh.
10880
4f13c1c0
TT
108812020-01-19 Tom Tromey <tom@tromey.com>
10882
10883 * tui/tui-winsource.c (tui_update_source_windows_with_line):
10884 Handle case where symtab is null.
10885
fa47e446
SM
108862020-01-19 Simon Marchi <simon.marchi@polymtl.ca>
10887
10888 * linux-fork.c (one_fork_p): Simplify.
10889
26f42329
SM
108902020-01-17 Simon Marchi <simon.marchi@efficios.com>
10891
10892 * top.c (struct qt_args): Remove.
10893 (kill_or_detach): Change return type to void, replace `void *`
10894 parameter with a proper one.
10895 (print_inferior_quit_action): Likewise.
10896 (quit_confirm): Use range-based for loop to iterate over inferiors.
10897 (quit_force): Likewise.
10898
a9ac81b1
SM
108992020-01-17 Simon Marchi <simon.marchi@efficios.com>
10900
10901 * mi/mi-main.c (run_one_inferior): Change return type to void, replace
10902 `void *` parameter with proper parameters.
10903 (mi_cmd_exec_run): Use range-based loop to iterate over inferiors.
10904 (print_one_inferior): Change return type to void, replace `void *`
10905 parameter with proper parameters.
10906 (mi_cmd_list_thread_groups): Use range-based loop to iterate over
10907 inferiors.
10908 (get_other_inferior): Remove.
10909 (mi_cmd_remove_inferior): Use range-based loop to iterate over
10910 inferiors.
10911
788eca49
SM
109122020-01-17 Simon Marchi <simon.marchi@efficios.com>
10913
10914 * mi/mi-interp.c (report_initial_inferior): Remove.
10915 (mi_interp::init): Use range-based for to iterate over inferiors.
10916
d9bc85b6
SM
109172020-01-17 Simon Marchi <simon.marchi@efficios.com>
10918
10919 * python/py-inferior.c (build_inferior_list): Remove.
10920 (gdbpy_ref): Use range-based for loop to iterate over inferiors.
10921
40c94099
CB
109222020-01-16 Christian Biesinger <cbiesinger@google.com>
10923
10924 * btrace.c (btrace_compute_ftrace_1): Fix spelling error (Unkown).
10925 (btrace_stitch_trace): Likewise.
10926 * charset.c (intermediate_encoding): Likewise (vaild).
10927 * nat/linux-btrace.c (linux_read_pt): Likewise (Unkown).
10928 * python/py-record-btrace.c (struct PyMethodDef): Likewise (occurences).
10929 * record-btrace.c (record_btrace_print_conf): Likewise (unkown).
10930
e0cdfe3c
HD
109312020-01-16 Hannes Domani <ssbssa@yahoo.de>
10932
10933 * windows-tdep.c (windows_get_tlb_type):
10934 Add rtl_user_process_parameters type.
10935
790f1718 109362020-01-16 Pedro Alves <palves@redhat.com>
aac66a4c 10937 Norbert Lange <nolange79@gmail.com>
790f1718
PA
10938
10939 PR build/24805
10940 * gdbsupport/gdb_proc_service.h (PS_EXPORT): New.
10941 (ps_get_thread_area, ps_getpid, ps_lcontinue, ps_lgetfpregs)
10942 (ps_lgetregs, ps_lsetfpregs, ps_lsetregs, ps_lstop, ps_pcontinue)
10943 (ps_pdread, ps_pdwrite, ps_pglobal_lookup, ps_pstop, ps_ptread)
10944 (ps_ptwrite, ps_lgetxregs, ps_lgetxregsize, ps_lsetxregs)
10945 (ps_plog): Redeclare exported functions with default visibility.
10946
3112ed97
NA
109472020-01-16 Nitika Achra <Nitika.Achra@amd.com>
10948
10949 * dwarf2loc.c (decode_debug_loclists_addresses): Handle
10950 DW_LLE_base_addressx, DW_LLE_startx_length, DW_LLE_start_length.
10951
8dc3273e
SM
109522020-01-15 Simon Marchi <simon.marchi@efficios.com>
10953
10954 * infcmd.c (post_create_inferior): Use get_thread_regcache
10955 instead of get_current_regcache.
10956
ff47f4f0
TT
109572020-01-14 Tom Tromey <tom@tromey.com>
10958
10959 PR symtab/12535:
10960 * python/python.c (gdbpy_decode_line): Treat empty string the same
10961 as no argument.
10962
975f45b7
TT
109632020-01-14 Tom Tromey <tom@tromey.com>
10964
10965 * Makefile.in (CLIBS): Remove second use of $(LIBIBERTY).
10966
25e57356
TT
109672020-01-14 Tom Tromey <tom@tromey.com>
10968
10969 * nat/linux-btrace.c: Don't include <config.h>.
10970 * nat/linux-ptrace.c: Don't include <config.h>.
10971 * nat/x86-linux-dregs.c: Don't include <config.h>.
10972
05ea2a05
TT
109732020-01-14 Tom Tromey <tom@tromey.com>
10974
10975 * configure: Rebuild.
10976 * configure.ac: Move many checks to ../gdbsupport/common.m4.
10977
01027315
TT
109782020-01-14 Tom Tromey <tom@tromey.com>
10979
10980 * nat/x86-linux-dregs.c: Include configh.h.
10981 * nat/linux-ptrace.c: Include configh.h.
10982 * nat/linux-btrace.c: Include configh.h.
10983 * defs.h: Include config.h, bfd.h.
10984 * configure.ac: Don't source common.host.
10985 (CONFIG_OBS, CONFIG_SRCS): Remove gdbsupport files.
10986 * configure: Rebuild.
10987 * acinclude.m4: Update path.
10988 * Makefile.in (SUPPORT, LIBSUPPORT, INCSUPPORT): New variables.
10989 (CONFIG_SRC_SUBDIR): Remove gdbsupport.
10990 (INTERNAL_CFLAGS_BASE): Add INCSUPPORT.
10991 (CLIBS): Add LIBSUPPORT.
10992 (CDEPS): Likewise.
10993 (COMMON_SFILES): Remove gdbsupport files.
10994 (HFILES_NO_SRCDIR): Likewise.
10995 (stamp-version): Update path to create-version.sh.
10996 (ALLDEPFILES): Remove gdbsupport files.
10997
b2ceabe8
TT
109982020-01-14 Tom Tromey <tom@tromey.com>
10999
11000 * gdbsupport/common.m4 (GDB_AC_COMMON): Define WIN32APILIBS and
11001 USE_WIN32API when needed.
11002 * configure.ac (USE_WIN32API): Don't define.
11003 (WIN32LIBS): Use WIN32APILIBS.
11004 * configure: Rebuild.
11005
25c51f71
TT
110062020-01-14 Tom Tromey <tom@tromey.com>
11007
11008 * configure: Rebuild.
11009 * gdbsupport/common.m4 (GDB_AC_COMMON): Fix indentation.
11010
717c684d
BE
110112020-01-14 Bernd Edlinger <bernd.edlinger@hotmail.de>
11012
11013 * skip.c (skip_function_command): Make skip w/o arguments use the
11014 name of the inlined function if pc is inside any inlined function.
11015
7da6a5b9
LM
110162020-01-14 Luis Machado <luis.machado@linaro.org>
11017
11018 * inf-ptrace.c (inf_ptrace_target::resume): Update comments.
11019 * infrun.c (resume_1): Likewise.
11020 (handle_inferior_event): Remove stale comment.
11021 * linux-nat.c (linux_nat_target::resume): Update comments.
11022 (save_stop_reason): Likewise.
11023 (linux_nat_filter_event): Likewise.
11024 * linux-nat.h (struct lwp_info) <stop_pc>, <stop_reason>: Likewise.
11025
44e4c775
AB
110262020-01-13 Andrew Burgess <andrew.burgess@embecosm.com>
11027
11028 * elfread.c (record_minimal_symbol): Set section index to 0 for
11029 non-allocatable sections.
11030
18a8505e
AT
11031
110322020-01-13 Ali Tamur <tamur@google.com>
11033
11034 * dwarf2read.c (dwarf2_debug_sections): Add debug_str_offsets sections.
11035 (dwarf2_cu): Add str_offsets_base field. Change the type of addr_base
11036 to gdb::optional. Update comments.
11037 (dwo_file): Update comments.
11038 (read_attribute): Update API to take an additional out parameter,
11039 need_reprocess. This is used to mark attributes that need other
11040 attributes (e.g. str_offsets_base) for correct computation which may not
11041 have been read yet.
11042 (read_attribute_reprocess): New function declaration.
11043 (read_addr_index): Likewise.
11044 (read_dwo_str_index): Likewise.
11045 (read_stub_str_index): Likewise.
11046 (dwarf2_per_objfile::locate_sections): Handle debug_str_offsets section.
11047 (lookup_addr_base): New function definition.
11048 (lookup_ranges_base): Likewise.
11049 (read_cutu_die_from_dwo): Use the new functions: lookup_addr_base,
11050 lookup_ranges_base.
11051 (init_cutu_and_read_dies): Update comments.
11052 (init_cutu_and_read_dies_no_follow): Change API to take parent compile
11053 unit. This is used to inherit parent's str_offsets_base and addr_base.
11054 Update comments.
11055 (init_cutu_and_read_dies_simple): Reflect API changes.
11056 (skip_one_die): Reflect API changes. Handle DW_FORM_rnglistx.
11057 (create_cus_hash_table): Change API to take parent compile unit.
11058 Reflect API changes.
11059 (open_and_init_dwo_file): Reflect API changes.
11060 (dwarf2_get_pc_bounds): Update comments.
11061 (dwarf2_record_block_ranges): Likewise.
11062 (read_full_die_1): Change implementation to reprocess attributes that
11063 need str_offsets_base and addr_base.
11064 (partial_die_info::read): Likewise.
11065 (read_attribute_reprocess): New function definition.
11066 (read_attribute_value): Change API to take an additional out parameter,
11067 need_reprocess. Handle DW_FORM_rnglistx. No longer trigger an error
11068 when a non-dwo compile unit has index based attributes.
11069 (read_attribute): Reflect API changes.
11070 (read_addr_index_1): Reflect API changes. Update comments.
11071 (dwarf2_read_addr_index_data): Reflect API changes.
11072 (dwarf2_read_addr_index): Likewise.
11073 (read_str_index): Change API and implementation. This becomes a helper
11074 to be used by the new string index related methods. Update error
11075 message and comments.
11076 (read_dwo_str_index): New function definition.
11077 (read_stub_str_index): Likewise.
11078 * dwarf2read.h (dwarf2_per_objfile): Add str_offsets field.
11079 * symfile.h (dwarf2_debug_sections): Likewise.
11080 * xcoffread.c (dwarf2_debug_sections): Likewise.
11081
0cac9354
SM
110822020-01-13 Simon Marchi <simon.marchi@efficios.com>
11083
11084 * gdbcore.h (struct core_fns) <core_read_registers>: Change
11085 core_reg_sect type to gdb_byte *.
11086 * arm-nbsd-nat.c (fetch_elfcore_registers): Likewise.
11087 * cris-tdep.c (fetch_core_registers): Likewise.
11088 * corelow.c (core_target::get_core_register_section): Change
11089 type of `contents` to gdb::byte_vector.
11090
9a6d629c
AB
110912020-01-13 Andrew Burgess <andrew.burgess@embecosm.com>
11092
11093 * tui/tui-wingeneral.c (box_win): Position the title in the center
11094 of the border.
11095
d8b2f9e3
SM
110962020-01-13 Simon Marchi <simon.marchi@polymtl.ca>
11097
11098 * corelow.c (core_target::get_core_register_section): Use
11099 std::vector instead of alloca.
11100
bb564c58
SM
111012020-01-13 Simon Marchi <simon.marchi@efficios.com>
11102
11103 * warning.m4: Add -Wmissing-declarations to build_warnings.
11104 * configure: Re-generate.
11105
6b366111
SM
111062020-01-13 Simon Marchi <simon.marchi@efficios.com>
11107
11108 * python/python.c (init__gdb_module): Add declaration.
11109
6c265988
SM
111102020-01-13 Simon Marchi <simon.marchi@efficios.com>
11111
11112 * aarch64-fbsd-nat.c (_initialize_aarch64_fbsd_nat): Add declaration.
11113 * aarch64-fbsd-tdep.c (_initialize_aarch64_fbsd_tdep): Add declaration.
11114 * aarch64-linux-nat.c (_initialize_aarch64_linux_nat): Add declaration.
11115 * aarch64-linux-tdep.c (_initialize_aarch64_linux_tdep): Add declaration.
11116 * aarch64-newlib-tdep.c (_initialize_aarch64_newlib_tdep): Add declaration.
11117 * aarch64-tdep.c (_initialize_aarch64_tdep): Add declaration.
11118 * ada-exp.y (_initialize_ada_exp): Add declaration.
11119 * ada-lang.c (_initialize_ada_language): Add declaration.
11120 * ada-tasks.c (_initialize_tasks): Add declaration.
11121 * agent.c (_initialize_agent): Add declaration.
11122 * aix-thread.c (_initialize_aix_thread): Add declaration.
11123 * alpha-bsd-nat.c (_initialize_alphabsd_nat): Add declaration.
11124 * alpha-linux-nat.c (_initialize_alpha_linux_nat): Add declaration.
11125 * alpha-linux-tdep.c (_initialize_alpha_linux_tdep): Add declaration.
11126 * alpha-nbsd-tdep.c (_initialize_alphanbsd_tdep): Add declaration.
11127 * alpha-obsd-tdep.c (_initialize_alphaobsd_tdep): Add declaration.
11128 * alpha-tdep.c (_initialize_alpha_tdep): Add declaration.
11129 * amd64-darwin-tdep.c (_initialize_amd64_darwin_tdep): Add declaration.
11130 * amd64-dicos-tdep.c (_initialize_amd64_dicos_tdep): Add declaration.
11131 * amd64-fbsd-nat.c (_initialize_amd64fbsd_nat): Add declaration.
11132 * amd64-fbsd-tdep.c (_initialize_amd64fbsd_tdep): Add declaration.
11133 * amd64-linux-nat.c (_initialize_amd64_linux_nat): Add declaration.
11134 * amd64-linux-tdep.c (_initialize_amd64_linux_tdep): Add declaration.
11135 * amd64-nbsd-nat.c (_initialize_amd64nbsd_nat): Add declaration.
11136 * amd64-nbsd-tdep.c (_initialize_amd64nbsd_tdep): Add declaration.
11137 * amd64-obsd-nat.c (_initialize_amd64obsd_nat): Add declaration.
11138 * amd64-obsd-tdep.c (_initialize_amd64obsd_tdep): Add declaration.
11139 * amd64-sol2-tdep.c (_initialize_amd64_sol2_tdep): Add declaration.
11140 * amd64-tdep.c (_initialize_amd64_tdep): Add declaration.
11141 * amd64-windows-nat.c (_initialize_amd64_windows_nat): Add declaration.
11142 * amd64-windows-tdep.c (_initialize_amd64_windows_tdep): Add declaration.
11143 * annotate.c (_initialize_annotate): Add declaration.
11144 * arc-newlib-tdep.c (_initialize_arc_newlib_tdep): Add declaration.
11145 * arc-tdep.c (_initialize_arc_tdep): Add declaration.
11146 * arch-utils.c (_initialize_gdbarch_utils): Add declaration.
11147 * arm-fbsd-nat.c (_initialize_arm_fbsd_nat): Add declaration.
11148 * arm-fbsd-tdep.c (_initialize_arm_fbsd_tdep): Add declaration.
11149 * arm-linux-nat.c (_initialize_arm_linux_nat): Add declaration.
11150 * arm-linux-tdep.c (_initialize_arm_linux_tdep): Add declaration.
11151 * arm-nbsd-nat.c (_initialize_arm_netbsd_nat): Add declaration.
11152 * arm-nbsd-tdep.c (_initialize_arm_netbsd_tdep): Add declaration.
11153 * arm-obsd-tdep.c (_initialize_armobsd_tdep): Add declaration.
11154 * arm-pikeos-tdep.c (_initialize_arm_pikeos_tdep): Add declaration.
11155 * arm-symbian-tdep.c (_initialize_arm_symbian_tdep): Add declaration.
11156 * arm-tdep.c (_initialize_arm_tdep): Add declaration.
11157 * arm-wince-tdep.c (_initialize_arm_wince_tdep): Add declaration.
11158 * auto-load.c (_initialize_auto_load): Add declaration.
11159 * auxv.c (_initialize_auxv): Add declaration.
11160 * avr-tdep.c (_initialize_avr_tdep): Add declaration.
11161 * ax-gdb.c (_initialize_ax_gdb): Add declaration.
11162 * bfin-linux-tdep.c (_initialize_bfin_linux_tdep): Add declaration.
11163 * bfin-tdep.c (_initialize_bfin_tdep): Add declaration.
11164 * break-catch-sig.c (_initialize_break_catch_sig): Add declaration.
11165 * break-catch-syscall.c (_initialize_break_catch_syscall): Add declaration.
11166 * break-catch-throw.c (_initialize_break_catch_throw): Add declaration.
11167 * breakpoint.c (_initialize_breakpoint): Add declaration.
11168 * bsd-uthread.c (_initialize_bsd_uthread): Add declaration.
11169 * btrace.c (_initialize_btrace): Add declaration.
11170 * charset.c (_initialize_charset): Add declaration.
11171 * cli/cli-cmds.c (_initialize_cli_cmds): Add declaration.
11172 * cli/cli-dump.c (_initialize_cli_dump): Add declaration.
11173 * cli/cli-interp.c (_initialize_cli_interp): Add declaration.
11174 * cli/cli-logging.c (_initialize_cli_logging): Add declaration.
11175 * cli/cli-script.c (_initialize_cli_script): Add declaration.
11176 * cli/cli-style.c (_initialize_cli_style): Add declaration.
11177 * coff-pe-read.c (_initialize_coff_pe_read): Add declaration.
11178 * coffread.c (_initialize_coffread): Add declaration.
11179 * compile/compile-cplus-types.c (_initialize_compile_cplus_types): Add declaration.
11180 * compile/compile.c (_initialize_compile): Add declaration.
11181 * complaints.c (_initialize_complaints): Add declaration.
11182 * completer.c (_initialize_completer): Add declaration.
11183 * copying.c (_initialize_copying): Add declaration.
11184 * corefile.c (_initialize_core): Add declaration.
11185 * corelow.c (_initialize_corelow): Add declaration.
11186 * cp-abi.c (_initialize_cp_abi): Add declaration.
11187 * cp-namespace.c (_initialize_cp_namespace): Add declaration.
11188 * cp-support.c (_initialize_cp_support): Add declaration.
11189 * cp-valprint.c (_initialize_cp_valprint): Add declaration.
11190 * cris-linux-tdep.c (_initialize_cris_linux_tdep): Add declaration.
11191 * cris-tdep.c (_initialize_cris_tdep): Add declaration.
11192 * csky-linux-tdep.c (_initialize_csky_linux_tdep): Add declaration.
11193 * csky-tdep.c (_initialize_csky_tdep): Add declaration.
11194 * ctfread.c (_initialize_ctfread): Add declaration.
11195 * d-lang.c (_initialize_d_language): Add declaration.
11196 * darwin-nat-info.c (_initialize_darwin_info_commands): Add declaration.
11197 * darwin-nat.c (_initialize_darwin_nat): Add declaration.
11198 * dbxread.c (_initialize_dbxread): Add declaration.
11199 * dcache.c (_initialize_dcache): Add declaration.
11200 * disasm-selftests.c (_initialize_disasm_selftests): Add declaration.
11201 * disasm.c (_initialize_disasm): Add declaration.
11202 * dtrace-probe.c (_initialize_dtrace_probe): Add declaration.
11203 * dummy-frame.c (_initialize_dummy_frame): Add declaration.
11204 * dwarf-index-cache.c (_initialize_index_cache): Add declaration.
11205 * dwarf-index-write.c (_initialize_dwarf_index_write): Add declaration.
11206 * dwarf2-frame-tailcall.c (_initialize_tailcall_frame): Add declaration.
11207 * dwarf2-frame.c (_initialize_dwarf2_frame): Add declaration.
11208 * dwarf2expr.c (_initialize_dwarf2expr): Add declaration.
11209 * dwarf2loc.c (_initialize_dwarf2loc): Add declaration.
11210 * dwarf2read.c (_initialize_dwarf2_read): Add declaration.
11211 * elfread.c (_initialize_elfread): Add declaration.
11212 * exec.c (_initialize_exec): Add declaration.
11213 * extension.c (_initialize_extension): Add declaration.
11214 * f-lang.c (_initialize_f_language): Add declaration.
11215 * f-valprint.c (_initialize_f_valprint): Add declaration.
11216 * fbsd-nat.c (_initialize_fbsd_nat): Add declaration.
11217 * fbsd-tdep.c (_initialize_fbsd_tdep): Add declaration.
11218 * filesystem.c (_initialize_filesystem): Add declaration.
11219 * findcmd.c (_initialize_mem_search): Add declaration.
11220 * findvar.c (_initialize_findvar): Add declaration.
11221 * fork-child.c (_initialize_fork_child): Add declaration.
11222 * frame-base.c (_initialize_frame_base): Add declaration.
11223 * frame-unwind.c (_initialize_frame_unwind): Add declaration.
11224 * frame.c (_initialize_frame): Add declaration.
11225 * frv-linux-tdep.c (_initialize_frv_linux_tdep): Add declaration.
11226 * frv-tdep.c (_initialize_frv_tdep): Add declaration.
11227 * ft32-tdep.c (_initialize_ft32_tdep): Add declaration.
11228 * gcore.c (_initialize_gcore): Add declaration.
11229 * gdb-demangle.c (_initialize_gdb_demangle): Add declaration.
11230 * gdb_bfd.c (_initialize_gdb_bfd): Add declaration.
11231 * gdbarch-selftests.c (_initialize_gdbarch_selftests): Add declaration.
11232 * gdbarch.c (_initialize_gdbarch): Add declaration.
11233 * gdbtypes.c (_initialize_gdbtypes): Add declaration.
11234 * gnu-nat.c (_initialize_gnu_nat): Add declaration.
11235 * gnu-v2-abi.c (_initialize_gnu_v2_abi): Add declaration.
11236 * gnu-v3-abi.c (_initialize_gnu_v3_abi): Add declaration.
11237 * go-lang.c (_initialize_go_language): Add declaration.
11238 * go32-nat.c (_initialize_go32_nat): Add declaration.
11239 * guile/guile.c (_initialize_guile): Add declaration.
11240 * h8300-tdep.c (_initialize_h8300_tdep): Add declaration.
11241 * hppa-linux-nat.c (_initialize_hppa_linux_nat): Add declaration.
11242 * hppa-linux-tdep.c (_initialize_hppa_linux_tdep): Add declaration.
11243 * hppa-nbsd-nat.c (_initialize_hppanbsd_nat): Add declaration.
11244 * hppa-nbsd-tdep.c (_initialize_hppanbsd_tdep): Add declaration.
11245 * hppa-obsd-nat.c (_initialize_hppaobsd_nat): Add declaration.
11246 * hppa-obsd-tdep.c (_initialize_hppabsd_tdep): Add declaration.
11247 * hppa-tdep.c (_initialize_hppa_tdep): Add declaration.
11248 * i386-bsd-nat.c (_initialize_i386bsd_nat): Add declaration.
11249 * i386-cygwin-tdep.c (_initialize_i386_cygwin_tdep): Add declaration.
11250 * i386-darwin-nat.c (_initialize_i386_darwin_nat): Add declaration.
11251 * i386-darwin-tdep.c (_initialize_i386_darwin_tdep): Add declaration.
11252 * i386-dicos-tdep.c (_initialize_i386_dicos_tdep): Add declaration.
11253 * i386-fbsd-nat.c (_initialize_i386fbsd_nat): Add declaration.
11254 * i386-fbsd-tdep.c (_initialize_i386fbsd_tdep): Add declaration.
11255 * i386-gnu-nat.c (_initialize_i386gnu_nat): Add declaration.
11256 * i386-gnu-tdep.c (_initialize_i386gnu_tdep): Add declaration.
11257 * i386-go32-tdep.c (_initialize_i386_go32_tdep): Add declaration.
11258 * i386-linux-nat.c (_initialize_i386_linux_nat): Add declaration.
11259 * i386-linux-tdep.c (_initialize_i386_linux_tdep): Add declaration.
11260 * i386-nbsd-nat.c (_initialize_i386nbsd_nat): Add declaration.
11261 * i386-nbsd-tdep.c (_initialize_i386nbsd_tdep): Add declaration.
11262 * i386-nto-tdep.c (_initialize_i386nto_tdep): Add declaration.
11263 * i386-obsd-nat.c (_initialize_i386obsd_nat): Add declaration.
11264 * i386-obsd-tdep.c (_initialize_i386obsd_tdep): Add declaration.
11265 * i386-sol2-nat.c (_initialize_amd64_sol2_nat): Add declaration.
11266 * i386-sol2-tdep.c (_initialize_i386_sol2_tdep): Add declaration.
11267 * i386-tdep.c (_initialize_i386_tdep): Add declaration.
11268 * i386-windows-nat.c (_initialize_i386_windows_nat): Add declaration.
11269 * ia64-libunwind-tdep.c (_initialize_libunwind_frame): Add declaration.
11270 * ia64-linux-nat.c (_initialize_ia64_linux_nat): Add declaration.
11271 * ia64-linux-tdep.c (_initialize_ia64_linux_tdep): Add declaration.
11272 * ia64-tdep.c (_initialize_ia64_tdep): Add declaration.
11273 * ia64-vms-tdep.c (_initialize_ia64_vms_tdep): Add declaration.
11274 * infcall.c (_initialize_infcall): Add declaration.
11275 * infcmd.c (_initialize_infcmd): Add declaration.
11276 * inflow.c (_initialize_inflow): Add declaration.
11277 * infrun.c (_initialize_infrun): Add declaration.
11278 * interps.c (_initialize_interpreter): Add declaration.
11279 * iq2000-tdep.c (_initialize_iq2000_tdep): Add declaration.
11280 * jit.c (_initialize_jit): Add declaration.
11281 * language.c (_initialize_language): Add declaration.
11282 * linux-fork.c (_initialize_linux_fork): Add declaration.
11283 * linux-nat.c (_initialize_linux_nat): Add declaration.
11284 * linux-tdep.c (_initialize_linux_tdep): Add declaration.
11285 * linux-thread-db.c (_initialize_thread_db): Add declaration.
11286 * lm32-tdep.c (_initialize_lm32_tdep): Add declaration.
11287 * m2-lang.c (_initialize_m2_language): Add declaration.
11288 * m32c-tdep.c (_initialize_m32c_tdep): Add declaration.
11289 * m32r-linux-nat.c (_initialize_m32r_linux_nat): Add declaration.
11290 * m32r-linux-tdep.c (_initialize_m32r_linux_tdep): Add declaration.
11291 * m32r-tdep.c (_initialize_m32r_tdep): Add declaration.
11292 * m68hc11-tdep.c (_initialize_m68hc11_tdep): Add declaration.
11293 * m68k-bsd-nat.c (_initialize_m68kbsd_nat): Add declaration.
11294 * m68k-bsd-tdep.c (_initialize_m68kbsd_tdep): Add declaration.
11295 * m68k-linux-nat.c (_initialize_m68k_linux_nat): Add declaration.
11296 * m68k-linux-tdep.c (_initialize_m68k_linux_tdep): Add declaration.
11297 * m68k-tdep.c (_initialize_m68k_tdep): Add declaration.
11298 * machoread.c (_initialize_machoread): Add declaration.
11299 * macrocmd.c (_initialize_macrocmd): Add declaration.
11300 * macroscope.c (_initialize_macroscope): Add declaration.
11301 * maint-test-options.c (_initialize_maint_test_options): Add declaration.
11302 * maint-test-settings.c (_initialize_maint_test_settings): Add declaration.
11303 * maint.c (_initialize_maint_cmds): Add declaration.
11304 * mdebugread.c (_initialize_mdebugread): Add declaration.
11305 * memattr.c (_initialize_mem): Add declaration.
11306 * mep-tdep.c (_initialize_mep_tdep): Add declaration.
11307 * mi/mi-cmd-env.c (_initialize_mi_cmd_env): Add declaration.
11308 * mi/mi-cmds.c (_initialize_mi_cmds): Add declaration.
11309 * mi/mi-interp.c (_initialize_mi_interp): Add declaration.
11310 * mi/mi-main.c (_initialize_mi_main): Add declaration.
11311 * microblaze-linux-tdep.c (_initialize_microblaze_linux_tdep): Add declaration.
11312 * microblaze-tdep.c (_initialize_microblaze_tdep): Add declaration.
11313 * mips-fbsd-nat.c (_initialize_mips_fbsd_nat): Add declaration.
11314 * mips-fbsd-tdep.c (_initialize_mips_fbsd_tdep): Add declaration.
11315 * mips-linux-nat.c (_initialize_mips_linux_nat): Add declaration.
11316 * mips-linux-tdep.c (_initialize_mips_linux_tdep): Add declaration.
11317 * mips-nbsd-nat.c (_initialize_mipsnbsd_nat): Add declaration.
11318 * mips-nbsd-tdep.c (_initialize_mipsnbsd_tdep): Add declaration.
11319 * mips-sde-tdep.c (_initialize_mips_sde_tdep): Add declaration.
11320 * mips-tdep.c (_initialize_mips_tdep): Add declaration.
11321 * mips64-obsd-nat.c (_initialize_mips64obsd_nat): Add declaration.
11322 * mips64-obsd-tdep.c (_initialize_mips64obsd_tdep): Add declaration.
11323 * mipsread.c (_initialize_mipsread): Add declaration.
11324 * mn10300-linux-tdep.c (_initialize_mn10300_linux_tdep): Add declaration.
11325 * mn10300-tdep.c (_initialize_mn10300_tdep): Add declaration.
11326 * moxie-tdep.c (_initialize_moxie_tdep): Add declaration.
11327 * msp430-tdep.c (_initialize_msp430_tdep): Add declaration.
11328 * nds32-tdep.c (_initialize_nds32_tdep): Add declaration.
11329 * nios2-linux-tdep.c (_initialize_nios2_linux_tdep): Add declaration.
11330 * nios2-tdep.c (_initialize_nios2_tdep): Add declaration.
11331 * nto-procfs.c (_initialize_procfs): Add declaration.
11332 * objc-lang.c (_initialize_objc_language): Add declaration.
11333 * observable.c (_initialize_observer): Add declaration.
11334 * opencl-lang.c (_initialize_opencl_language): Add declaration.
11335 * or1k-linux-tdep.c (_initialize_or1k_linux_tdep): Add declaration.
11336 * or1k-tdep.c (_initialize_or1k_tdep): Add declaration.
11337 * osabi.c (_initialize_gdb_osabi): Add declaration.
11338 * osdata.c (_initialize_osdata): Add declaration.
11339 * p-valprint.c (_initialize_pascal_valprint): Add declaration.
11340 * parse.c (_initialize_parse): Add declaration.
11341 * ppc-fbsd-nat.c (_initialize_ppcfbsd_nat): Add declaration.
11342 * ppc-fbsd-tdep.c (_initialize_ppcfbsd_tdep): Add declaration.
11343 * ppc-linux-nat.c (_initialize_ppc_linux_nat): Add declaration.
11344 * ppc-linux-tdep.c (_initialize_ppc_linux_tdep): Add declaration.
11345 * ppc-nbsd-nat.c (_initialize_ppcnbsd_nat): Add declaration.
11346 * ppc-nbsd-tdep.c (_initialize_ppcnbsd_tdep): Add declaration.
11347 * ppc-obsd-nat.c (_initialize_ppcobsd_nat): Add declaration.
11348 * ppc-obsd-tdep.c (_initialize_ppcobsd_tdep): Add declaration.
11349 * printcmd.c (_initialize_printcmd): Add declaration.
11350 * probe.c (_initialize_probe): Add declaration.
11351 * proc-api.c (_initialize_proc_api): Add declaration.
11352 * proc-events.c (_initialize_proc_events): Add declaration.
11353 * proc-service.c (_initialize_proc_service): Add declaration.
11354 * procfs.c (_initialize_procfs): Add declaration.
11355 * producer.c (_initialize_producer): Add declaration.
11356 * psymtab.c (_initialize_psymtab): Add declaration.
11357 * python/python.c (_initialize_python): Add declaration.
11358 * ravenscar-thread.c (_initialize_ravenscar): Add declaration.
11359 * record-btrace.c (_initialize_record_btrace): Add declaration.
11360 * record-full.c (_initialize_record_full): Add declaration.
11361 * record.c (_initialize_record): Add declaration.
11362 * regcache-dump.c (_initialize_regcache_dump): Add declaration.
11363 * regcache.c (_initialize_regcache): Add declaration.
11364 * reggroups.c (_initialize_reggroup): Add declaration.
11365 * remote-notif.c (_initialize_notif): Add declaration.
11366 * remote-sim.c (_initialize_remote_sim): Add declaration.
11367 * remote.c (_initialize_remote): Add declaration.
11368 * reverse.c (_initialize_reverse): Add declaration.
11369 * riscv-fbsd-nat.c (_initialize_riscv_fbsd_nat): Add declaration.
11370 * riscv-fbsd-tdep.c (_initialize_riscv_fbsd_tdep): Add declaration.
11371 * riscv-linux-nat.c (_initialize_riscv_linux_nat): Add declaration.
11372 * riscv-linux-tdep.c (_initialize_riscv_linux_tdep): Add declaration.
11373 * riscv-tdep.c (_initialize_riscv_tdep): Add declaration.
11374 * rl78-tdep.c (_initialize_rl78_tdep): Add declaration.
11375 * rs6000-aix-tdep.c (_initialize_rs6000_aix_tdep): Add declaration.
11376 * rs6000-lynx178-tdep.c (_initialize_rs6000_lynx178_tdep):
11377 Add declaration.
11378 * rs6000-nat.c (_initialize_rs6000_nat): Add declaration.
11379 * rs6000-tdep.c (_initialize_rs6000_tdep): Add declaration.
11380 * run-on-main-thread.c (_initialize_run_on_main_thread): Add declaration.
11381 * rust-exp.y (_initialize_rust_exp): Add declaration.
11382 * rx-tdep.c (_initialize_rx_tdep): Add declaration.
11383 * s12z-tdep.c (_initialize_s12z_tdep): Add declaration.
11384 * s390-linux-nat.c (_initialize_s390_nat): Add declaration.
11385 * s390-linux-tdep.c (_initialize_s390_linux_tdep): Add declaration.
11386 * s390-tdep.c (_initialize_s390_tdep): Add declaration.
11387 * score-tdep.c (_initialize_score_tdep): Add declaration.
11388 * ser-go32.c (_initialize_ser_dos): Add declaration.
11389 * ser-mingw.c (_initialize_ser_windows): Add declaration.
11390 * ser-pipe.c (_initialize_ser_pipe): Add declaration.
11391 * ser-tcp.c (_initialize_ser_tcp): Add declaration.
11392 * ser-uds.c (_initialize_ser_socket): Add declaration.
11393 * ser-unix.c (_initialize_ser_hardwire): Add declaration.
11394 * serial.c (_initialize_serial): Add declaration.
11395 * sh-linux-tdep.c (_initialize_sh_linux_tdep): Add declaration.
11396 * sh-nbsd-nat.c (_initialize_shnbsd_nat): Add declaration.
11397 * sh-nbsd-tdep.c (_initialize_shnbsd_tdep): Add declaration.
11398 * sh-tdep.c (_initialize_sh_tdep): Add declaration.
11399 * skip.c (_initialize_step_skip): Add declaration.
11400 * sol-thread.c (_initialize_sol_thread): Add declaration.
11401 * solib-aix.c (_initialize_solib_aix): Add declaration.
11402 * solib-darwin.c (_initialize_darwin_solib): Add declaration.
11403 * solib-dsbt.c (_initialize_dsbt_solib): Add declaration.
11404 * solib-frv.c (_initialize_frv_solib): Add declaration.
11405 * solib-svr4.c (_initialize_svr4_solib): Add declaration.
11406 * solib-target.c (_initialize_solib_target): Add declaration.
11407 * solib.c (_initialize_solib): Add declaration.
11408 * source-cache.c (_initialize_source_cache): Add declaration.
11409 * source.c (_initialize_source): Add declaration.
11410 * sparc-linux-nat.c (_initialize_sparc_linux_nat): Add declaration.
11411 * sparc-linux-tdep.c (_initialize_sparc_linux_tdep): Add declaration.
11412 * sparc-nat.c (_initialize_sparc_nat): Add declaration.
11413 * sparc-nbsd-nat.c (_initialize_sparcnbsd_nat): Add declaration.
11414 * sparc-nbsd-tdep.c (_initialize_sparcnbsd_tdep): Add declaration.
11415 * sparc-obsd-tdep.c (_initialize_sparc32obsd_tdep): Add declaration.
11416 * sparc-sol2-tdep.c (_initialize_sparc_sol2_tdep): Add declaration.
11417 * sparc-tdep.c (_initialize_sparc_tdep): Add declaration.
11418 * sparc64-fbsd-nat.c (_initialize_sparc64fbsd_nat): Add declaration.
11419 * sparc64-fbsd-tdep.c (_initialize_sparc64fbsd_tdep): Add declaration.
11420 * sparc64-linux-nat.c (_initialize_sparc64_linux_nat): Add declaration.
11421 * sparc64-linux-tdep.c (_initialize_sparc64_linux_tdep): Add declaration.
11422 * sparc64-nat.c (_initialize_sparc64_nat): Add declaration.
11423 * sparc64-nbsd-nat.c (_initialize_sparc64nbsd_nat): Add declaration.
11424 * sparc64-nbsd-tdep.c (_initialize_sparc64nbsd_tdep): Add declaration.
11425 * sparc64-obsd-nat.c (_initialize_sparc64obsd_nat): Add declaration.
11426 * sparc64-obsd-tdep.c (_initialize_sparc64obsd_tdep): Add declaration.
11427 * sparc64-sol2-tdep.c (_initialize_sparc64_sol2_tdep): Add declaration.
11428 * sparc64-tdep.c (_initialize_sparc64_adi_tdep): Add declaration.
11429 * stabsread.c (_initialize_stabsread): Add declaration.
11430 * stack.c (_initialize_stack): Add declaration.
11431 * stap-probe.c (_initialize_stap_probe): Add declaration.
11432 * std-regs.c (_initialize_frame_reg): Add declaration.
11433 * symfile-debug.c (_initialize_symfile_debug): Add declaration.
11434 * symfile-mem.c (_initialize_symfile_mem): Add declaration.
11435 * symfile.c (_initialize_symfile): Add declaration.
11436 * symmisc.c (_initialize_symmisc): Add declaration.
11437 * symtab.c (_initialize_symtab): Add declaration.
11438 * target.c (_initialize_target): Add declaration.
11439 * target-connection.c (_initialize_target_connection): Add
11440 declaration.
11441 * target-dcache.c (_initialize_target_dcache): Add declaration.
11442 * target-descriptions.c (_initialize_target_descriptions): Add declaration.
11443 * thread.c (_initialize_thread): Add declaration.
11444 * tic6x-linux-tdep.c (_initialize_tic6x_linux_tdep): Add declaration.
11445 * tic6x-tdep.c (_initialize_tic6x_tdep): Add declaration.
11446 * tilegx-linux-nat.c (_initialize_tile_linux_nat): Add declaration.
11447 * tilegx-linux-tdep.c (_initialize_tilegx_linux_tdep): Add declaration.
11448 * tilegx-tdep.c (_initialize_tilegx_tdep): Add declaration.
11449 * tracectf.c (_initialize_ctf): Add declaration.
11450 * tracefile-tfile.c (_initialize_tracefile_tfile): Add declaration.
11451 * tracefile.c (_initialize_tracefile): Add declaration.
11452 * tracepoint.c (_initialize_tracepoint): Add declaration.
11453 * tui/tui-hooks.c (_initialize_tui_hooks): Add declaration.
11454 * tui/tui-interp.c (_initialize_tui_interp): Add declaration.
11455 * tui/tui-layout.c (_initialize_tui_layout): Add declaration.
11456 * tui/tui-regs.c (_initialize_tui_regs): Add declaration.
11457 * tui/tui-stack.c (_initialize_tui_stack): Add declaration.
11458 * tui/tui-win.c (_initialize_tui_win): Add declaration.
11459 * tui/tui.c (_initialize_tui): Add declaration.
11460 * typeprint.c (_initialize_typeprint): Add declaration.
11461 * ui-style.c (_initialize_ui_style): Add declaration.
11462 * unittests/array-view-selftests.c (_initialize_array_view_selftests): Add declaration.
11463 * unittests/child-path-selftests.c (_initialize_child_path_selftests): Add declaration.
11464 * unittests/cli-utils-selftests.c (_initialize_cli_utils_selftests): Add declaration.
11465 * unittests/common-utils-selftests.c (_initialize_common_utils_selftests): Add declaration.
11466 * unittests/copy_bitwise-selftests.c (_initialize_copy_bitwise_utils_selftests): Add declaration.
11467 * unittests/environ-selftests.c (_initialize_environ_selftests): Add declaration.
11468 * unittests/filtered_iterator-selftests.c
11469 (_initialize_filtered_iterator_selftests): Add declaration.
11470 * unittests/format_pieces-selftests.c (_initialize_format_pieces_selftests): Add declaration.
11471 * unittests/function-view-selftests.c (_initialize_function_view_selftests): Add declaration.
11472 * unittests/help-doc-selftests.c (_initialize_help_doc_selftests): Add declaration.
11473 * unittests/lookup_name_info-selftests.c (_initialize_lookup_name_info_selftests): Add declaration.
11474 * unittests/main-thread-selftests.c
11475 (_initialize_main_thread_selftests): Add declaration.
11476 * unittests/memory-map-selftests.c (_initialize_memory_map_selftests): Add declaration.
11477 * unittests/memrange-selftests.c (_initialize_memrange_selftests): Add declaration.
11478 * unittests/mkdir-recursive-selftests.c (_initialize_mkdir_recursive_selftests): Add declaration.
11479 * unittests/observable-selftests.c (_initialize_observer_selftest): Add declaration.
11480 * unittests/offset-type-selftests.c (_initialize_offset_type_selftests): Add declaration.
11481 * unittests/optional-selftests.c (_initialize_optional_selftests): Add declaration.
11482 * unittests/parse-connection-spec-selftests.c (_initialize_parse_connection_spec_selftests): Add declaration.
11483 * unittests/rsp-low-selftests.c (_initialize_rsp_low_selftests): Add declaration.
11484 * unittests/scoped_fd-selftests.c (_initialize_scoped_fd_selftests): Add declaration.
11485 * unittests/scoped_mmap-selftests.c (_initialize_scoped_mmap_selftests): Add declaration.
11486 * unittests/scoped_restore-selftests.c (_initialize_scoped_restore_selftests): Add declaration.
11487 * unittests/string_view-selftests.c (_initialize_string_view_selftests): Add declaration.
11488 * unittests/style-selftests.c (_initialize_style_selftest): Add declaration.
11489 * unittests/tracepoint-selftests.c (_initialize_tracepoint_selftests): Add declaration.
11490 * unittests/tui-selftests.c (_initialize_tui_selftest): Add
11491 declaration.
11492 * unittests/unpack-selftests.c (_initialize_unpack_selftests): Add declaration.
11493 * unittests/utils-selftests.c (_initialize_utils_selftests): Add declaration.
11494 * unittests/vec-utils-selftests.c (_initialize_vec_utils_selftests): Add declaration.
11495 * unittests/xml-utils-selftests.c (_initialize_xml_utils): Add declaration.
11496 * user-regs.c (_initialize_user_regs): Add declaration.
11497 * utils.c (_initialize_utils): Add declaration.
11498 * v850-tdep.c (_initialize_v850_tdep): Add declaration.
11499 * valops.c (_initialize_valops): Add declaration.
11500 * valprint.c (_initialize_valprint): Add declaration.
11501 * value.c (_initialize_values): Add declaration.
11502 * varobj.c (_initialize_varobj): Add declaration.
11503 * vax-bsd-nat.c (_initialize_vaxbsd_nat): Add declaration.
11504 * vax-nbsd-tdep.c (_initialize_vaxnbsd_tdep): Add declaration.
11505 * vax-tdep.c (_initialize_vax_tdep): Add declaration.
11506 * windows-nat.c (_initialize_windows_nat): Add declaration.
11507 (_initialize_check_for_gdb_ini): Add declaration.
11508 (_initialize_loadable): Add declaration.
11509 * windows-tdep.c (_initialize_windows_tdep): Add declaration.
11510 * x86-bsd-nat.c (_initialize_x86_bsd_nat): Add declaration.
11511 * x86-linux-nat.c (_initialize_x86_linux_nat): Add declaration.
11512 * xcoffread.c (_initialize_xcoffread): Add declaration.
11513 * xml-support.c (_initialize_xml_support): Add declaration.
11514 * xstormy16-tdep.c (_initialize_xstormy16_tdep): Add declaration.
11515 * xtensa-linux-nat.c (_initialize_xtensa_linux_nat): Add declaration.
11516 * xtensa-linux-tdep.c (_initialize_xtensa_linux_tdep): Add declaration.
11517 * xtensa-tdep.c (_initialize_xtensa_tdep): Add declaration.
11518
e2de1eec
SM
115192020-01-13 Simon Marchi <simon.marchi@polymtl.ca>
11520
11521 * regformats/regdat.sh: Generate declaration for init function.
11522
e0037b4c
SM
115232020-01-13 Simon Marchi <simon.marchi@polymtl.ca>
11524
11525 * remote-sim.c (next_pid, INITIAL_PID, sim_inferior_data): Move
11526 up.
11527 (gdbsim_target) <get_inferior_data_by_ptid, resume_one_inferior,
11528 close_one_inferior>: New methods.
11529 (get_sim_inferior_data_by_ptid): Move to gdbsim_target,
11530 pass down target to find_inferior_pid.
11531 (gdbsim_target::fetch_registers, gdbsim_target::store_registers):
11532 Pass down target to find_inferior_ptid.
11533 (gdbsim_target::create_inferior): Pass down target to
11534 add_thread_silent.
11535 (gdbsim_close_inferior): Move to gdbsim_close_inferior, pass
11536 target down to find_inferior_ptid and switch_to_thread.
11537 (gdbsim_target::close): Update to call close_one_inferior.
11538 (struct resume_data): Remove.
11539 (gdbsim_resume_inferior): Move to gdbsim_target. Take arguments
11540 directly, rather than through a void pointer.
11541 (gdbsim_target::resume): Update to call resume_one_inferior.
11542
58920b5b
SM
115432020-01-12 Simon Marchi <simon.marchi@polymtl.ca>
11544
11545 * gdbsupport/gdb_wait.c: Include gdb_wait.h.
11546
4ec89149
PA
115472020-01-12 Pedro Alves <palves@redhat.com>
11548
11549 * bsd-kvm.c (bsd_kvm_target::close): Call exit_inferior_silent
11550 directly for the current inferior instead of
11551 discard_all_inferiors.
11552 (discard_all_inferiors): Delete.
11553
7c392d1d
TT
115542020-01-11 Tom Tromey <tom@tromey.com>
11555
11556 * tui/tui-wingeneral.c (box_win): Check cli_styling.
11557 * tui/tui-winsource.c (tui_source_window_base::refill): Use
11558 deprecated_safe_get_selected_frame.
11559
d9ebdab7
TBA
115602020-01-10 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
11561
11562 * inferior.c (print_inferior): Switch inferior before printing it.
11563
f3c469b9
PA
115642020-01-10 Aleksandar Paunovic <aleksandar.paunovic@intel.com>
11565 Pedro Alves <palves@redhat.com>
11566
11567 * progspace-and-thread.c (switch_to_program_space_and_thread):
11568 Assert there's an inferior for PSPACE. Use
11569 switch_to_inferior_no_thread to switch the inferior too.
11570 * progspace.c (program_space::~program_space): Call
11571 clear_symtab_users here, with SYMFILE_DEFER_BP_RESET.
11572 (program_space::free_all_objfiles): Don't call clear_symtab_users
11573 here.
11574 * symfile.c (symbol_file_clear): Call clear_symtab_users here.
11575
65c574f6
PA
115762020-01-10 Pedro Alves <palves@redhat.com>
11577
11578 * NEWS: Mention multi-target debugging, "info connections", and
11579 "add-inferior -no-connection".
11580
2f4fcf00
PA
115812020-01-10 Pedro Alves <palves@redhat.com>
11582
11583 * infrun.c: Include "target-connection.h".
11584 (check_multi_target_resumption): New.
11585 (proceed): Call it.
11586 * target-connection.c (make_target_connection_string): Make
11587 extern.
11588 * target-connection.h (make_target_connection_string): Declare.
11589
121b3efd
PA
115902020-01-10 Pedro Alves <palves@redhat.com>
11591
11592 * Makefile.in (COMMON_SFILES): Add target-connection.c.
11593 * inferior.c (uiout_field_connection): New function.
11594 (print_inferior): Add new "connection-id" column.
11595 (add_inferior_command): Show connection number/string of added
11596 inferior.
11597 * process-stratum-target.h
11598 (process_stratum_target::connection_string): New virtual method.
11599 (process_stratum_target::connection_number): New field.
11600 * remote.c (remote_target::connection_string): New override.
11601 * target-connection.c: New file.
11602 * target-connection.h: New file.
11603 * target.c (decref_target): Remove process_stratum targets from
11604 the connection list.
11605 (target_stack::push): Add process_stratum targets to the
11606 connection list.
11607
4f837581
PA
116082020-01-10 Pedro Alves <palves@redhat.com>
11609
11610 Revert:
11611 2016-04-12 Pedro Alves <palves@redhat.com>
11612 * serial.c (serial_open, serial_fdopen_ops, do_serial_close):
11613 Remove references to name.
11614 * serial.h (struct serial) <name>: Delete.
11615
f4ec508e
PA
116162020-01-10 Pedro Alves <palves@redhat.com>
11617
11618 * gdbarch-selftests.c (register_to_value_test): Remove "target
11619 already pushed" check.
11620
5b6d1e4f
PA
116212020-01-10 Pedro Alves <palves@redhat.com>
11622 John Baldwin <jhb@FreeBSD.org>
11623
11624 * aarch64-linux-nat.c
11625 (aarch64_linux_nat_target::thread_architecture): Adjust.
11626 * ada-tasks.c (print_ada_task_info): Adjust find_thread_ptid call.
11627 (task_command_1): Likewise.
11628 * aix-thread.c (sync_threadlists, aix_thread_target::resume)
11629 (aix_thread_target::wait, aix_thread_target::fetch_registers)
11630 (aix_thread_target::store_registers)
11631 (aix_thread_target::thread_alive): Adjust.
11632 * amd64-fbsd-tdep.c: Include "inferior.h".
11633 (amd64fbsd_get_thread_local_address): Pass down target.
11634 * amd64-linux-nat.c (ps_get_thread_area): Use ps_prochandle
11635 thread's gdbarch instead of target_gdbarch.
11636 * break-catch-sig.c (signal_catchpoint_print_it): Adjust call to
11637 get_last_target_status.
11638 * break-catch-syscall.c (print_it_catch_syscall): Likewise.
11639 * breakpoint.c (breakpoints_should_be_inserted_now): Consider all
11640 inferiors.
11641 (update_inserted_breakpoint_locations): Skip if inferiors with no
11642 execution.
11643 (update_global_location_list): When handling moribund locations,
11644 find representative inferior for location's pspace, and use thread
11645 count of its process_stratum target.
11646 * bsd-kvm.c (bsd_kvm_target_open): Pass target down.
11647 * bsd-uthread.c (bsd_uthread_target::wait): Use
11648 as_process_stratum_target and adjust thread_change_ptid and
11649 add_thread calls.
11650 (bsd_uthread_target::update_thread_list): Use
11651 as_process_stratum_target and adjust find_thread_ptid,
11652 thread_change_ptid and add_thread calls.
11653 * btrace.c (maint_btrace_packet_history_cmd): Adjust
11654 find_thread_ptid call.
11655 * corelow.c (add_to_thread_list): Adjust add_thread call.
11656 (core_target_open): Adjust add_thread_silent and thread_count
11657 calls.
11658 (core_target::pid_to_str): Adjust find_inferior_ptid call.
11659 * ctf.c (ctf_target_open): Adjust add_thread_silent call.
11660 * event-top.c (async_disconnect): Pop targets from all inferiors.
11661 * exec.c (add_target_sections): Push exec target on all inferiors
11662 sharing the program space.
11663 (remove_target_sections): Remove the exec target from all
11664 inferiors sharing the program space.
11665 (exec_on_vfork): New.
11666 * exec.h (exec_on_vfork): Declare.
11667 * fbsd-nat.c (fbsd_add_threads): Add fbsd_nat_target parameter.
11668 Pass it down.
11669 (fbsd_nat_target::update_thread_list): Adjust.
11670 (fbsd_nat_target::resume): Adjust.
11671 (fbsd_handle_debug_trap): Add fbsd_nat_target parameter. Pass it
11672 down.
11673 (fbsd_nat_target::wait, fbsd_nat_target::post_attach): Adjust.
11674 * fbsd-tdep.c (fbsd_corefile_thread): Adjust
11675 get_thread_arch_regcache call.
11676 * fork-child.c (gdb_startup_inferior): Pass target down to
11677 startup_inferior and set_executing.
11678 * gdbthread.h (struct process_stratum_target): Forward declare.
11679 (add_thread, add_thread_silent, add_thread_with_info)
11680 (in_thread_list): Add process_stratum_target parameter.
11681 (find_thread_ptid(inferior*, ptid_t)): New overload.
11682 (find_thread_ptid, thread_change_ptid): Add process_stratum_target
11683 parameter.
11684 (all_threads()): Delete overload.
11685 (all_threads, all_non_exited_threads): Add process_stratum_target
11686 parameter.
11687 (all_threads_safe): Use brace initialization.
11688 (thread_count): Add process_stratum_target parameter.
11689 (set_resumed, set_running, set_stop_requested, set_executing)
11690 (threads_are_executing, finish_thread_state): Add
11691 process_stratum_target parameter.
11692 (switch_to_thread): Use is_current_thread.
11693 * i386-fbsd-tdep.c: Include "inferior.h".
11694 (i386fbsd_get_thread_local_address): Pass down target.
11695 * i386-linux-nat.c (i386_linux_nat_target::low_resume): Adjust.
11696 * inf-child.c (inf_child_target::maybe_unpush_target): Remove
11697 have_inferiors check.
11698 * inf-ptrace.c (inf_ptrace_target::create_inferior)
11699 (inf_ptrace_target::attach): Adjust.
11700 * infcall.c (run_inferior_call): Adjust.
11701 * infcmd.c (run_command_1): Pass target to
11702 scoped_finish_thread_state.
11703 (proceed_thread_callback): Skip inferiors with no execution.
11704 (continue_command): Rename 'all_threads' local to avoid hiding
11705 'all_threads' function. Adjust get_last_target_status call.
11706 (prepare_one_step): Adjust set_running call.
11707 (signal_command): Use user_visible_resume_target. Compare thread
11708 pointers instead of inferior_ptid.
11709 (info_program_command): Adjust to pass down target.
11710 (attach_command): Mark target's 'thread_executing' flag.
11711 (stop_current_target_threads_ns): New, factored out from ...
11712 (interrupt_target_1): ... this. Switch inferior before making
11713 target calls.
11714 * inferior-iter.h
11715 (struct all_inferiors_iterator, struct all_inferiors_range)
11716 (struct all_inferiors_safe_range)
11717 (struct all_non_exited_inferiors_range): Filter on
11718 process_stratum_target too. Remove explicit.
11719 * inferior.c (inferior::inferior): Push dummy target on target
11720 stack.
11721 (find_inferior_pid, find_inferior_ptid, number_of_live_inferiors):
11722 Add process_stratum_target parameter, and pass it down.
11723 (have_live_inferiors): Adjust.
11724 (switch_to_inferior_and_push_target): New.
11725 (add_inferior_command, clone_inferior_command): Handle
11726 "-no-connection" parameter. Use
11727 switch_to_inferior_and_push_target.
11728 (_initialize_inferior): Mention "-no-connection" option in
11729 the help of "add-inferior" and "clone-inferior" commands.
11730 * inferior.h: Include "process-stratum-target.h".
11731 (interrupt_target_1): Use bool.
11732 (struct inferior) <push_target, unpush_target, target_is_pushed,
11733 find_target_beneath, top_target, process_target, target_at,
11734 m_stack>: New.
11735 (discard_all_inferiors): Delete.
11736 (find_inferior_pid, find_inferior_ptid, number_of_live_inferiors)
11737 (all_inferiors, all_non_exited_inferiors): Add
11738 process_stratum_target parameter.
11739 * infrun.c: Include "gdb_select.h" and <unordered_map>.
11740 (target_last_proc_target): New global.
11741 (follow_fork_inferior): Push target on new inferior. Pass target
11742 to add_thread_silent. Call exec_on_vfork. Handle target's
11743 reference count.
11744 (follow_fork): Adjust get_last_target_status call. Also consider
11745 target.
11746 (follow_exec): Push target on new inferior.
11747 (struct execution_control_state) <target>: New field.
11748 (user_visible_resume_target): New.
11749 (do_target_resume): Call target_async.
11750 (resume_1): Set target's threads_executing flag. Consider resume
11751 target.
11752 (commit_resume_all_targets): New.
11753 (proceed): Also consider resume target. Skip threads of inferiors
11754 with no execution. Commit resumtion in all targets.
11755 (start_remote): Pass current inferior to wait_for_inferior.
11756 (infrun_thread_stop_requested): Consider target as well. Pass
11757 thread_info pointer to clear_inline_frame_state instead of ptid.
11758 (infrun_thread_thread_exit): Consider target as well.
11759 (random_pending_event_thread): New inferior parameter. Use it.
11760 (do_target_wait): Rename to ...
11761 (do_target_wait_1): ... this. Add inferior parameter, and pass it
11762 down.
11763 (threads_are_resumed_pending_p, do_target_wait): New.
11764 (prepare_for_detach): Adjust calls.
11765 (wait_for_inferior): New inferior parameter. Handle it. Use
11766 do_target_wait_1 instead of do_target_wait.
11767 (fetch_inferior_event): Adjust. Switch to representative
11768 inferior. Pass target down.
11769 (set_last_target_status): Add process_stratum_target parameter.
11770 Save target in global.
11771 (get_last_target_status): Add process_stratum_target parameter and
11772 handle it.
11773 (nullify_last_target_wait_ptid): Clear 'target_last_proc_target'.
11774 (context_switch): Check inferior_ptid == null_ptid before calling
11775 inferior_thread().
11776 (get_inferior_stop_soon): Pass down target.
11777 (wait_one): Rename to ...
11778 (poll_one_curr_target): ... this.
11779 (struct wait_one_event): New.
11780 (wait_one): New.
11781 (stop_all_threads): Adjust.
11782 (handle_no_resumed, handle_inferior_event): Adjust to consider the
11783 event's target.
11784 (switch_back_to_stepped_thread): Also consider target.
11785 (print_stop_event): Update.
11786 (normal_stop): Update. Also consider the resume target.
11787 * infrun.h (wait_for_inferior): Remove declaration.
11788 (user_visible_resume_target): New declaration.
11789 (get_last_target_status, set_last_target_status): New
11790 process_stratum_target parameter.
11791 * inline-frame.c (clear_inline_frame_state(ptid_t)): Add
11792 process_stratum_target parameter, and use it.
11793 (clear_inline_frame_state (thread_info*)): New.
11794 * inline-frame.c (clear_inline_frame_state(ptid_t)): Add
11795 process_stratum_target parameter.
11796 (clear_inline_frame_state (thread_info*)): Declare.
11797 * linux-fork.c (delete_checkpoint_command): Pass target down to
11798 find_thread_ptid.
11799 (checkpoint_command): Adjust.
11800 * linux-nat.c (linux_nat_target::follow_fork): Switch to thread
11801 instead of just tweaking inferior_ptid.
11802 (linux_nat_switch_fork): Pass target down to thread_change_ptid.
11803 (exit_lwp): Pass target down to find_thread_ptid.
11804 (attach_proc_task_lwp_callback): Pass target down to
11805 add_thread/set_running/set_executing.
11806 (linux_nat_target::attach): Pass target down to
11807 thread_change_ptid.
11808 (get_detach_signal): Pass target down to find_thread_ptid.
11809 Consider last target status's target.
11810 (linux_resume_one_lwp_throw, resume_lwp)
11811 (linux_handle_syscall_trap, linux_handle_extended_wait, wait_lwp)
11812 (stop_wait_callback, save_stop_reason, linux_nat_filter_event)
11813 (linux_nat_wait_1, resume_stopped_resumed_lwps): Pass target down.
11814 (linux_nat_target::async_wait_fd): New.
11815 (linux_nat_stop_lwp, linux_nat_target::thread_address_space): Pass
11816 target down.
11817 * linux-nat.h (linux_nat_target::async_wait_fd): Declare.
11818 * linux-tdep.c (get_thread_arch_regcache): Pass target down.
11819 * linux-thread-db.c (struct thread_db_info::process_target): New
11820 field.
11821 (add_thread_db_info): Save target.
11822 (get_thread_db_info): New process_stratum_target parameter. Also
11823 match target.
11824 (delete_thread_db_info): New process_stratum_target parameter.
11825 Also match target.
11826 (thread_from_lwp): Adjust to pass down target.
11827 (thread_db_notice_clone): Pass down target.
11828 (check_thread_db_callback): Pass down target.
11829 (try_thread_db_load_1): Always push the thread_db target.
11830 (try_thread_db_load, record_thread): Pass target down.
11831 (thread_db_target::detach): Pass target down. Always unpush the
11832 thread_db target.
11833 (thread_db_target::wait, thread_db_target::mourn_inferior): Pass
11834 target down. Always unpush the thread_db target.
11835 (find_new_threads_callback, thread_db_find_new_threads_2)
11836 (thread_db_target::update_thread_list): Pass target down.
11837 (thread_db_target::pid_to_str): Pass current inferior down.
11838 (thread_db_target::get_thread_local_address): Pass target down.
11839 (thread_db_target::resume, maintenance_check_libthread_db): Pass
11840 target down.
11841 * nto-procfs.c (nto_procfs_target::update_thread_list): Adjust.
11842 * procfs.c (procfs_target::procfs_init_inferior): Declare.
11843 (proc_set_current_signal, do_attach, procfs_target::wait): Adjust.
11844 (procfs_init_inferior): Rename to ...
11845 (procfs_target::procfs_init_inferior): ... this and adjust.
11846 (procfs_target::create_inferior, procfs_notice_thread)
11847 (procfs_do_thread_registers): Adjust.
11848 * ppc-fbsd-tdep.c: Include "inferior.h".
11849 (ppcfbsd_get_thread_local_address): Pass down target.
11850 * proc-service.c (ps_xfer_memory): Switch current inferior and
11851 program space as well.
11852 (get_ps_regcache): Pass target down.
11853 * process-stratum-target.c
11854 (process_stratum_target::thread_address_space)
11855 (process_stratum_target::thread_architecture): Pass target down.
11856 * process-stratum-target.h
11857 (process_stratum_target::threads_executing): New field.
11858 (as_process_stratum_target): New.
11859 * ravenscar-thread.c
11860 (ravenscar_thread_target::update_inferior_ptid): Pass target down.
11861 (ravenscar_thread_target::wait, ravenscar_add_thread): Pass target
11862 down.
11863 * record-btrace.c (record_btrace_target::info_record): Adjust.
11864 (record_btrace_target::record_method)
11865 (record_btrace_target::record_is_replaying)
11866 (record_btrace_target::fetch_registers)
11867 (get_thread_current_frame_id, record_btrace_target::resume)
11868 (record_btrace_target::wait, record_btrace_target::stop): Pass
11869 target down.
11870 * record-full.c (record_full_wait_1): Switch to event thread.
11871 Pass target down.
11872 * regcache.c (regcache::regcache)
11873 (get_thread_arch_aspace_regcache, get_thread_arch_regcache): Add
11874 process_stratum_target parameter and handle it.
11875 (current_thread_target): New global.
11876 (get_thread_regcache): Add process_stratum_target parameter and
11877 handle it. Switch inferior before calling target method.
11878 (get_thread_regcache): Pass target down.
11879 (get_thread_regcache_for_ptid): Pass target down.
11880 (registers_changed_ptid): Add process_stratum_target parameter and
11881 handle it.
11882 (registers_changed_thread, registers_changed): Pass target down.
11883 (test_get_thread_arch_aspace_regcache): New.
11884 (current_regcache_test): Define a couple local test_target_ops
11885 instances and use them for testing.
11886 (readwrite_regcache): Pass process_stratum_target parameter.
11887 (cooked_read_test, cooked_write_test): Pass mock_target down.
11888 * regcache.h (get_thread_regcache, get_thread_arch_regcache)
11889 (get_thread_arch_aspace_regcache): Add process_stratum_target
11890 parameter.
11891 (regcache::target): New method.
11892 (regcache::regcache, regcache::get_thread_arch_aspace_regcache)
11893 (regcache::registers_changed_ptid): Add process_stratum_target
11894 parameter.
11895 (regcache::m_target): New field.
11896 (registers_changed_ptid): Add process_stratum_target parameter.
11897 * remote.c (remote_state::supports_vCont_probed): New field.
11898 (remote_target::async_wait_fd): New method.
11899 (remote_unpush_and_throw): Add remote_target parameter.
11900 (get_current_remote_target): Adjust.
11901 (remote_target::remote_add_inferior): Push target.
11902 (remote_target::remote_add_thread)
11903 (remote_target::remote_notice_new_inferior)
11904 (get_remote_thread_info): Pass target down.
11905 (remote_target::update_thread_list): Skip threads of inferiors
11906 bound to other targets. (remote_target::close): Don't discard
11907 inferiors. (remote_target::add_current_inferior_and_thread)
11908 (remote_target::process_initial_stop_replies)
11909 (remote_target::start_remote)
11910 (remote_target::remote_serial_quit_handler): Pass down target.
11911 (remote_target::remote_unpush_target): New remote_target
11912 parameter. Unpush the target from all inferiors.
11913 (remote_target::remote_unpush_and_throw): New remote_target
11914 parameter. Pass it down.
11915 (remote_target::open_1): Check whether the current inferior has
11916 execution instead of checking whether any inferior is live. Pass
11917 target down.
11918 (remote_target::remote_detach_1): Pass down target. Use
11919 remote_unpush_target.
11920 (extended_remote_target::attach): Pass down target.
11921 (remote_target::remote_vcont_probe): Set supports_vCont_probed.
11922 (remote_target::append_resumption): Pass down target.
11923 (remote_target::append_pending_thread_resumptions)
11924 (remote_target::remote_resume_with_hc, remote_target::resume)
11925 (remote_target::commit_resume): Pass down target.
11926 (remote_target::remote_stop_ns): Check supports_vCont_probed.
11927 (remote_target::interrupt_query)
11928 (remote_target::remove_new_fork_children)
11929 (remote_target::check_pending_events_prevent_wildcard_vcont)
11930 (remote_target::remote_parse_stop_reply)
11931 (remote_target::process_stop_reply): Pass down target.
11932 (first_remote_resumed_thread): New remote_target parameter. Pass
11933 it down.
11934 (remote_target::wait_as): Pass down target.
11935 (unpush_and_perror): New remote_target parameter. Pass it down.
11936 (remote_target::readchar, remote_target::remote_serial_write)
11937 (remote_target::getpkt_or_notif_sane_1)
11938 (remote_target::kill_new_fork_children, remote_target::kill): Pass
11939 down target.
11940 (remote_target::mourn_inferior): Pass down target. Use
11941 remote_unpush_target.
11942 (remote_target::core_of_thread)
11943 (remote_target::remote_btrace_maybe_reopen): Pass down target.
11944 (remote_target::pid_to_exec_file)
11945 (remote_target::thread_handle_to_thread_info): Pass down target.
11946 (remote_target::async_wait_fd): New.
11947 * riscv-fbsd-tdep.c: Include "inferior.h".
11948 (riscv_fbsd_get_thread_local_address): Pass down target.
11949 * sol2-tdep.c (sol2_core_pid_to_str): Pass down target.
11950 * sol-thread.c (sol_thread_target::wait, ps_lgetregs, ps_lsetregs)
11951 (ps_lgetfpregs, ps_lsetfpregs, sol_update_thread_list_callback):
11952 Adjust.
11953 * solib-spu.c (spu_skip_standalone_loader): Pass down target.
11954 * solib-svr4.c (enable_break): Pass down target.
11955 * spu-multiarch.c (parse_spufs_run): Pass down target.
11956 * spu-tdep.c (spu2ppu_sniffer): Pass down target.
11957 * target-delegates.c: Regenerate.
11958 * target.c (g_target_stack): Delete.
11959 (current_top_target): Return the current inferior's top target.
11960 (target_has_execution_1): Refer to the passed-in inferior's top
11961 target.
11962 (target_supports_terminal_ours): Check whether the initial
11963 inferior was already created.
11964 (decref_target): New.
11965 (target_stack::push): Incref/decref the target.
11966 (push_target, push_target, unpush_target): Adjust.
11967 (target_stack::unpush): Defref target.
11968 (target_is_pushed): Return bool. Adjust to refer to the current
11969 inferior's target stack.
11970 (dispose_inferior): Delete, and inline parts ...
11971 (target_preopen): ... here. Only dispose of the current inferior.
11972 (target_detach): Hold strong target reference while detaching.
11973 Pass target down.
11974 (target_thread_name): Add assertion.
11975 (target_resume): Pass down target.
11976 (target_ops::beneath, find_target_at): Adjust to refer to the
11977 current inferior's target stack.
11978 (get_dummy_target): New.
11979 (target_pass_ctrlc): Pass the Ctrl-C to the first inferior that
11980 has a thread running.
11981 (initialize_targets): Rename to ...
11982 (_initialize_target): ... this.
11983 * target.h: Include "gdbsupport/refcounted-object.h".
11984 (struct target_ops): Inherit refcounted_object.
11985 (target_ops::shortname, target_ops::longname): Make const.
11986 (target_ops::async_wait_fd): New method.
11987 (decref_target): Declare.
11988 (struct target_ops_ref_policy): New.
11989 (target_ops_ref): New typedef.
11990 (get_dummy_target): Declare function.
11991 (target_is_pushed): Return bool.
11992 * thread-iter.c (all_matching_threads_iterator::m_inf_matches)
11993 (all_matching_threads_iterator::all_matching_threads_iterator):
11994 Handle filter target.
11995 * thread-iter.h (struct all_matching_threads_iterator, struct
11996 all_matching_threads_range, class all_non_exited_threads_range):
11997 Filter by target too. Remove explicit.
11998 * thread.c (threads_executing): Delete.
11999 (inferior_thread): Pass down current inferior.
12000 (clear_thread_inferior_resources): Pass down thread pointer
12001 instead of ptid_t.
12002 (add_thread_silent, add_thread_with_info, add_thread): Add
12003 process_stratum_target parameter. Use it for thread and inferior
12004 searches.
12005 (is_current_thread): New.
12006 (thread_info::deletable): Use it.
12007 (find_thread_ptid, thread_count, in_thread_list)
12008 (thread_change_ptid, set_resumed, set_running): New
12009 process_stratum_target parameter. Pass it down.
12010 (set_executing): New process_stratum_target parameter. Pass it
12011 down. Adjust reference to 'threads_executing'.
12012 (threads_are_executing): New process_stratum_target parameter.
12013 Adjust reference to 'threads_executing'.
12014 (set_stop_requested, finish_thread_state): New
12015 process_stratum_target parameter. Pass it down.
12016 (switch_to_thread): Also match inferior.
12017 (switch_to_thread): New process_stratum_target parameter. Pass it
12018 down.
12019 (update_threads_executing): Reimplement.
12020 * top.c (quit_force): Pop targets from all inferior.
12021 (gdb_init): Don't call initialize_targets.
12022 * windows-nat.c (windows_nat_target) <get_windows_debug_event>:
12023 Declare.
12024 (windows_add_thread, windows_delete_thread): Adjust.
12025 (get_windows_debug_event): Rename to ...
12026 (windows_nat_target::get_windows_debug_event): ... this. Adjust.
12027 * tracefile-tfile.c (tfile_target_open): Pass down target.
12028 * gdbsupport/common-gdbthread.h (struct process_stratum_target):
12029 Forward declare.
12030 (switch_to_thread): Add process_stratum_target parameter.
12031 * mi/mi-interp.c (mi_on_resume_1): Add process_stratum_target
12032 parameter. Use it.
12033 (mi_on_resume): Pass target down.
12034 * nat/fork-inferior.c (startup_inferior): Add
12035 process_stratum_target parameter. Pass it down.
12036 * nat/fork-inferior.h (startup_inferior): Add
12037 process_stratum_target parameter.
12038 * python/py-threadevent.c (py_get_event_thread): Pass target down.
12039
75c6c844
PA
120402020-01-10 Pedro Alves <palves@redhat.com>
12041
12042 * remote.c (remote_target::start_remote): Don't set inferior_ptid
12043 directly. Instead find the first thread in the thread list and
12044 use switch_to_thread.
12045
78f2c40a
PA
120462020-01-10 Pedro Alves <palves@redhat.com>
12047
12048 * remote.c (remote_target::remote_add_inferior): Don't bind a
12049 process to the current inferior if the current inferior is already
12050 bound to a process.
12051
e7af6c70
TBA
120522020-01-10 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
12053 Pedro Alves <palves@redhat.com>
12054
12055 * remote.c (remote_target::remote_parse_stop_reply) <W/X packets>:
12056 If no process is specified, return null_ptid instead of
12057 inferior_ptid.
12058 (remote_target::wait_as): Handle TARGET_WAITKIND_EXITED /
12059 TARGET_WAITKIND_SIGNALLED with no pid.
12060
31ba933e
PA
120612020-01-10 Pedro Alves <palves@redhat.com>
12062
12063 * remote.c (first_remote_resumed_thread): New.
12064 (remote_target::wait_as): Use it as default event_ptid instead of
12065 inferior_ptid.
12066
735fc2ca
PA
120672020-01-10 Pedro Alves <palves@redhat.com>
12068
12069 * infrun.c (handle_no_resumed): Use all_non_exited_inferiors.
12070
c17e02e1
PA
120712020-01-10 Pedro Alves <palves@redhat.com>
12072
12073 * tracefile-tfile.c (tfile_target::close): Assert that trace_fd is
12074 not -1.
12075
ab1ddbcf
PA
120762020-01-10 Pedro Alves <palves@redhat.com>
12077
12078 * break-catch-sig.c (signal_catchpoint_print_it): Don't pass a
12079 ptid to get_last_target_status.
12080 * break-catch-syscall.c (print_it_catch_syscall): Don't pass a
12081 ptid to get_last_target_status.
12082 * infcmd.c (continue_command): Don't pass a target_waitstatus to
12083 get_last_target_status.
12084 (info_program_command): Don't pass a target_waitstatus to
12085 get_last_target_status.
12086 * infrun.c (init_wait_for_inferior): Use
12087 nullify_last_target_wait_ptid.
12088 (get_last_target_status): Handle nullptr arguments.
12089 (nullify_last_target_wait_ptid): Clear target_last_waitstatus.
12090 (print_stop_event): Don't pass a ptid to get_last_target_status.
12091 (normal_stop): Don't pass a ptid to get_last_target_status.
12092 * infrun.h (get_last_target_status, set_last_target_status): Move
12093 comments here and update.
12094 (nullify_last_target_wait_ptid): Declare.
12095 * linux-fork.c (fork_load_infrun_state): Remove local extern
12096 declaration of nullify_last_target_wait_ptid.
12097 * linux-nat.c (get_detach_signal): Don't pass a target_waitstatus
12098 to get_last_target_status.
12099
f3f8ece4
PA
121002020-01-10 Pedro Alves <palves@redhat.com>
12101
12102 * gdbthread.h (scoped_restore_current_thread)
12103 <dont_restore, restore, m_dont_restore>: Declare.
12104 * thread.c (thread_alive): Add assertion. Return bool.
12105 (switch_to_thread_if_alive): New.
12106 (prune_threads): Switch inferior/thread.
12107 (print_thread_info_1): Switch thread before calling target methods.
12108 (scoped_restore_current_thread::restore): New, factored out from
12109 ...
12110 (scoped_restore_current_thread::~scoped_restore_current_thread):
12111 ... this.
12112 (scoped_restore_current_thread::scoped_restore_current_thread):
12113 Add assertion.
12114 (thread_apply_all_command, thread_select): Use
12115 switch_to_thread_if_alive.
12116 * infrun.c (proceed, restart_threads, handle_signal_stop)
12117 (switch_back_to_stepped_thread): Switch current thread before
12118 calling target methods.
12119
db2d40f7
PA
121202020-01-10 Pedro Alves <palves@redhat.com>
12121
12122 * inferior.c (switch_to_inferior_no_thread): New function,
12123 factored out from ...
12124 (inferior_command): ... here.
12125 * inferior.h (switch_to_inferior_no_thread): Declare.
12126 * mi/mi-main.c (run_one_inferior): Use
12127 switch_to_inferior_no_thread.
12128
bd420a2d
PA
121292020-01-10 Pedro Alves <palves@redhat.com>
12130
12131 * infcmd.c (kill_command): Remove dead code.
12132
ddf5db90
PA
121332020-01-10 Pedro Alves <palves@redhat.com>
12134
12135 * remote.c (remote_target::mourn_inferior): No longer check
12136 whether the target is running.
12137
5018ce90
PA
121382020-01-10 Pedro Alves <palves@redhat.com>
12139
12140 * corelow.c (core_target::has_execution): Change parameter type to
12141 inferior pointer.
12142 * inferior.c (number_of_live_inferiors): Use
12143 inferior::has_execution instead of target_has_execution_1.
12144 * inferior.h (inferior::has_execution): New.
12145 * linux-thread-db.c (thread_db_target::update_thread_list): Use
12146 inferior::has_execution instead of target_has_execution_1.
12147 * process-stratum-target.c
12148 (process_stratum_target::has_execution): Change parameter type to
12149 inferior pointer. Check the inferior's PID instead of
12150 inferior_ptid.
12151 * process-stratum-target.h
12152 (process_stratum_target::has_execution): Change parameter type to
12153 inferior pointer.
12154 * record-full.c (record_full_core_target::has_execution): Change
12155 parameter type to inferior pointer.
12156 * target.c (target_has_execution_1): Change parameter type to
12157 inferior pointer.
12158 (target_has_execution_current): Adjust.
12159 * target.h (target_ops::has_execution): Change parameter type to
12160 inferior pointer.
12161 (target_has_execution_1): Change parameter type to inferior
12162 pointer. Change return type to bool.
12163 * tracefile.h (tracefile_target::has_execution): Change parameter
12164 type to inferior pointer.
12165
74375d18
PA
121662020-01-10 Pedro Alves <palves@redhat.com>
12167
12168 * exceptions.c (print_flush): Remove current_top_target() check.
12169
acdf84a6
PA
121702020-01-10 Pedro Alves <palves@redhat.com>
12171
12172 * remote.c (show_remote_exec_file): Show the current inferior's
12173 exec-file instead of the command variable's value.
12174
ec506636
PA
121752020-01-10 Pedro Alves <palves@redhat.com>
12176
12177 * record-full.c (record_full_resume_ptid): New global.
12178 (record_full_target::resume): Set it.
12179 (record_full_wait_1): Use record_full_resume_ptid instead of
12180 inferior_ptid.
12181
873657b9
PA
121822020-01-10 Pedro Alves <palves@redhat.com>
12183
12184 * gdbthread.h (scoped_restore_current_thread)
12185 <dont_restore, restore, m_dont_restore>: Declare.
12186 * thread.c (thread_alive): Add assertion. Return bool.
12187 (switch_to_thread_if_alive): New.
12188 (prune_threads): Switch inferior/thread.
12189 (print_thread_info_1): Switch thread before calling target methods.
12190 (scoped_restore_current_thread::restore): New, factored out from
12191 ...
12192 (scoped_restore_current_thread::~scoped_restore_current_thread):
12193 ... this.
12194 (scoped_restore_current_thread::scoped_restore_current_thread):
12195 Add assertion.
12196 (thread_apply_all_command, thread_select): Use
12197 switch_to_thread_if_alive.
12198
7f0ae84c
GB
121992020-01-10 George Barrett <bob@bob131.so>
12200
12201 * stap-probe.c (stap_modify_semaphore): Don't check for null
12202 semaphores.
12203 (stap_probe::set_semaphore, stap_probe::clear_semaphore): Check
12204 for null semaphores.
12205
f5a7c406
AB
122062020-01-09 Andrew Burgess <andrew.burgess@embecosm.com>
12207
12208 * tui/tui-source.c (tui_source_window::do_scroll_vertical): Update
12209 all source windows, and maintain horizontal scroll status while
12210 doing so.
12211
9ae6bf64
TT
122122020-01-09 Tom Tromey <tom@tromey.com>
12213
12214 PR tui/18932:
12215 * tui/tui-source.c (tui_source_window::do_scroll_vertical): Call
12216 update_source_window, not print_source_lines.
12217
b2efe70c
AB
122182020-01-09 Andrew Burgess <andrew.burgess@embecosm.com>
12219
12220 * tui/tui.c (tui_enable): Register tui hooks after calling
12221 tui_display_main.
12222
5f23a082
CB
122232020-01-09 Christian Biesinger <cbiesinger@google.com>
12224
12225 * gdbsupport/common-defs.h: Don't define _FORTIFY_SOURCE on MinGW.
12226
3061113b
SM
122272020-01-08 Simon Marchi <simon.marchi@efficios.com>
12228
12229 * thread.c (print_thread_info_1): Fix indentation.
12230
57d75002
CB
122312020-01-09 Christian Biesinger <cbiesinger@google.com>
12232
12233 * symtab.c (general_symbol_info::compute_and_set_names): Move the
12234 unique_xmalloc_ptr outside the if to always free the demangled name.
12235
6a053cb1
TT
122362020-01-08 Tom Tromey <tromey@adacore.com>
12237
12238 * xcoffread.c (enter_line_range, read_xcoff_symtab)
12239 (process_xcoff_symbol, xcoff_symfile_offsets): Update.
12240 * symtab.h (MSYMBOL_VALUE_ADDRESS): Update.
12241 (struct section_offsets, ANOFFSET, SIZEOF_N_SECTION_OFFSETS):
12242 Remove.
12243 (section_offsets): New typedef.
12244 * symtab.c (fixup_section, get_msymbol_address): Update.
12245 * symmisc.c (dump_msymbols): Update.
12246 * symfile.h (relative_addr_info_to_section_offsets)
12247 (symfile_map_offsets_to_segments): Update.
12248 * symfile.c (build_section_addr_info_from_objfile)
12249 (init_objfile_sect_indices): Update.
12250 (struct place_section_arg): Change type of "offsets".
12251 (place_section): Update.
12252 (relative_addr_info_to_section_offsets): Change type of
12253 "section_offsets". Remove "num_sections" parameter.
12254 (default_symfile_offsets, syms_from_objfile_1)
12255 (set_objfile_default_section_offset): Update.
12256 (reread_symbols): No need to preserve section offsets by hand.
12257 (symfile_map_offsets_to_segments): Change type of "offsets".
12258 * stap-probe.c (relocate_address): Update.
12259 * stabsread.h (process_one_symbol): Update.
12260 * solib-target.c (struct lm_info_target) <offsets>: Change type.
12261 (solib_target_relocate_section_addresses): Update.
12262 * solib-svr4.c (enable_break, svr4_relocate_main_executable):
12263 Update.
12264 * solib-frv.c (frv_relocate_main_executable): Update.
12265 * solib-dsbt.c (dsbt_relocate_main_executable): Update.
12266 * solib-aix.c (solib_aix_get_section_offsets): Change return
12267 type.
12268 (solib_aix_solib_create_inferior_hook): Update.
12269 * remote.c (remote_target::get_offsets): Update.
12270 * psymtab.c (find_pc_sect_psymtab): Update.
12271 * psympriv.h (struct partial_symbol) <address, text_low,
12272 text_high>: Update.
12273 * objfiles.h (obj_section_offset): Update.
12274 (struct objfile) <section_offsets>: Change type.
12275 <num_sections>: Remove.
12276 (objfile_relocate): Update.
12277 * objfiles.c (entry_point_address_query): Update
12278 (relocate_one_symbol): Change type of "section_offsets".
12279 (objfile_relocate1, objfile_relocate1): Change type of
12280 "new_offsets".
12281 (objfile_rebase1): Update.
12282 * mipsread.c (mipscoff_symfile_read): Update.
12283 (read_alphacoff_dynamic_symtab): Remove "section_offsets"
12284 parameter.
12285 * mdebugread.c (parse_symbol): Change type of "section_offsets".
12286 (parse_external, psymtab_to_symtab_1): Update.
12287 * machoread.c (macho_symfile_offsets): Update.
12288 * ia64-tdep.c (ia64_find_unwind_table): Update.
12289 * hppa-tdep.c (read_unwind_info): Update.
12290 * hppa-bsd-tdep.c (hppabsd_find_global_pointer): Update.
12291 * dwarf2read.c (create_addrmap_from_index)
12292 (create_addrmap_from_aranges, dw2_find_pc_sect_compunit_symtab)
12293 (process_psymtab_comp_unit_reader, add_partial_symbol)
12294 (add_partial_subprogram, process_full_comp_unit)
12295 (read_file_scope, read_func_scope, read_lexical_block_scope)
12296 (read_call_site_scope, dwarf2_rnglists_process)
12297 (dwarf2_ranges_process, dwarf2_ranges_read)
12298 (dwarf_decode_lines_1, var_decode_location, new_symbol)
12299 (dwarf2_fetch_die_loc_sect_off, dwarf2_per_cu_text_offset):
12300 Update.
12301 * dwarf2-frame.c (execute_cfa_program, dwarf2_frame_find_fde):
12302 Update.
12303 * dtrace-probe.c (dtrace_probe::get_relocated_address): Update.
12304 * dbxread.c (read_dbx_symtab, read_ofile_symtab): Update.
12305 (process_one_symbol): Change type of "section_offsets".
12306 * ctfread.c (get_objfile_text_range): Update.
12307 * coffread.c (coff_symtab_read, enter_linenos)
12308 (process_coff_symbol): Update.
12309 * coff-pe-read.c (add_pe_forwarded_sym): Update.
12310 * amd64-windows-tdep.c (amd64_windows_find_unwind_info): Update.
12311
456e800a
TT
123122020-01-08 Tom Tromey <tromey@adacore.com>
12313
12314 * dwarf2read.c (parse_macro_definition): Use std::string.
12315 (parse_macro_definition): Likewise.
12316
6dfa2fc2
TT
123172020-01-08 Tom Tromey <tromey@adacore.com>
12318
12319 * dwarf2read.c (abbrev_table_read_table): Use std::vector.
12320 (ATTR_ALLOC_CHUNK): Remove.
12321
421d1616
TT
123222020-01-08 Tom Tromey <tromey@adacore.com>
12323
12324 * dwarf2read.c (fixup_go_packaging): Use unique_xmalloc_ptr.
12325
43816ebc
TT
123262020-01-08 Tom Tromey <tromey@adacore.com>
12327
12328 * dwarf2read.c (add_partial_symbol): Use unique_xmalloc_ptr.
12329 (dwarf2_compute_name, open_dwo_file): Likewise.
12330 (process_enumeration_scope): Use std::vector.
12331 (guess_partial_die_structure_name): Use unique_xmalloc_ptr.
12332 (partial_die_info::fixup, dwarf2_start_subfile)
12333 (guess_full_die_structure_name, dwarf2_name): Likewise.
12334 (determine_prefix): Update.
12335 (guess_full_die_structure_name): Make return type const.
12336 (partial_die_full_name): Return unique_xmalloc_ptr.
12337 (DW_FIELD_ALLOC_CHUNK): Remove.
12338
4212d509
TT
123392020-01-07 Tom Tromey <tromey@adacore.com>
12340
12341 PR build/24937:
12342 * stap-probe.c (class stap_static_probe_ops): Add constructor.
12343
06a6207a
JT
123442020-01-02 Jon Turney <jon.turney@dronecode.org.uk>
12345
12346 * cli/cli-style.c: Set cli_styling to 'true' in the Cygwin build.
12347
153d79c4
AB
123482020-01-06 Andrew Burgess <andrew.burgess@embecosm.com>
12349
12350 * stack.c (print_frame_info): Move disassemble_next_line code
12351 inside source_print block.
12352
66182876
EZ
123532020-01-06 Eli Zaretskii <eliz@gnu.org>
12354
12355 * gdbsupport/gdb_wait.c: Include <signal.h> instead of
12356 gdb/signals.h, as we are now using native signal symbols.
12357
cbfa8581
SV
123582020-01-06 Shahab Vahedi <shahab@synopsys.com>
12359
12360 * tui/tui-disasm.c (tui_disasm_window::addr_is_displayed): Avoid
12361 overflow by an early check of content vs threshold.
aac66a4c 12362 * tui/tui-source.c (tui_source_window::line_is_displayed):
cbfa8581
SV
12363 Likewise.
12364
3f602821
EZ
123652020-01-06 Eli Zaretskii <eliz@gnu.org>
12366
12367 * NEWS: Mention the recent fix of $_exitsignal on MS-Windows.
12368
a08c904d
JT
123692020-01-02 Jon Turney <jon.turney@dronecode.org.uk>
12370
12371 * coff-pe-read.c (read_pe_exported_syms): Don't try to read the
12372 export table if no section contains it's RVA.
12373
89a65580
EZ
123742020-01-06 Eli Zaretskii <eliz@gnu.org>
12375
12376 * windows-tdep.c: Fix a typo in WINDOWS_SIGABRT.
12377
8b7fcda2
HD
123782020-01-06 Hannes Domani <ssbssa@yahoo.de>
12379
12380 * source.c (print_source_lines_base): Set last_line_listed.
12381
a61b4f69
SV
123822020-01-06 Shahab Vahedi <shahab@synopsys.com>
12383
12384 * tui/tui-disasm.c: Remove trailing spaces.
12385
559e7e50
EZ
123862020-01-06 Eli Zaretskii <eliz@gnu.org>
12387 Pedro Alves <palves@redhat.com>
12388
12389 * Makefile.in (COMMON_SFILES): Add gdbsupport/gdb_wait.c.
12390 * windows-tdep.c: New enumeration of WINDOWS_SIG* signals.
12391 (windows_gdb_signal_to_target): New function, uses the above
12392 enumeration to convert GDB internal signal codes to equivalent
12393 Windows codes.
12394 (windows_init_abi): Call set_gdbarch_gdb_signal_to_target.
12395 * windows-nat.c: Include "gdb_wait.h".
12396 (get_windows_debug_event): Extract the fatal exception from the
12397 exit status and convert to the equivalent Posix signal number.
12398 * cli/cli-cmds.c (exit_status_set_internal_vars): Account for the
12399 possibility that WTERMSIG returns GDB_SIGNAL_UNKNOWN.
12400 * gdbsupport/gdb_wait.c: New file, implements
12401 windows_status_to_termsig.
12402 * gdbsupport/gdb_wait.h (WIFEXITED, WIFSIGNALED, WEXITSTATUS)
12403 (WTERMSIG) [__MINGW32__]: Separate definitions for MinGW.
12404
f2302a34
AB
124052020-01-05 Andrew Burgess <andrew.burgess@embecosm.com>
12406
12407 * tui/tui-layout.c (tui_add_win_to_layout): Use tui_set_layout not
12408 show_layout.
12409
6a5206eb
LM
124102020-01-05 Luis Machado <luis.machado@linaro.org>
12411
12412 * aarch64-linux-nat.c
12413 (aarch64_linux_nat_target::thread_architecture): Use bfd_arch_aarch64
12414 and bfd_mach_aarch64.
12415
6ec1d75e
PW
124162020-01-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
12417
12418 * ui-file.c (stdio_file::can_emit_style_escape)
12419 (tee_file::can_emit_style_escape): Ensure style is used also on
12420 gdb_stderr when gdb_stderr is a tty supporting styling, similarly
12421 to gdb_stdout.
12422 * main.c (set_gdb_data_directory): Use file style to output the
12423 warning that the given pathname is not a directory.
12424 * top.c (show_history_filename, gdb_safe_append_history)
12425 (show_gdb_datadir): Use file style.
12426
44f81a76
HD
124272020-01-03 Hannes Domani <ssbssa@yahoo.de>
12428
12429 * solib-target.c (struct lm_info_target):
12430 Change offsets to be a unique_xmalloc_ptr.
12431 (solib_target_relocate_section_addresses): Update.
12432
25057eb0
HD
124332020-01-03 Hannes Domani <ssbssa@yahoo.de>
12434
12435 * windows-nat.c (windows_clear_solib): Free so_list linked list.
12436
6e2118f5
BE
124372020-01-03 Bernd Edlinger <bernd.edlinger@hotmail.de>
12438
12439 * MAINTAINERS (Write After Approval): Add myself.
12440
8133c7dc
LM
124412020-01-02 Luis Machado <luis.machado@linaro.org>
12442
12443 * proc-service.c (get_ps_regcache): Remove reference to obsolete
12444 Cell BE architecture.
12445 * target.h (struct target_ops) <thread_architecture>: Likewise.
12446
48189bec
HD
124472020-01-01 Hannes Domani <ssbssa@yahoo.de>
12448
12449 * Makefile.in: Use INSTALL_PROGRAM_ENV.
12450
ead1063b
HD
124512020-01-01 Hannes Domani <ssbssa@yahoo.de>
12452
12453 * MAINTAINERS (Write After Approval): Add myself.
12454
e5d78223
JB
124552020-01-01 Joel Brobecker <brobecker@adacore.com>
12456
12457 * gdbarch.sh: Update copyright year range of generated files.
12458
b811d2c2
JB
124592020-01-01 Joel Brobecker <brobecker@adacore.com>
12460
12461 Update copyright year range in all GDB files.
12462
5f4def5c
JB
124632020-01-01 Joel Brobecker <brobecker@adacore.com>
12464
12465 * copyright.py: Convert to Python 3.
12466
51fd4002
JB
124672020-01-01 Joel Brobecker <brobecker@adacore.com>
12468
12469 * copyright.py: Adapt after move of gnulib directory from gdb
12470 directory to toplevel directory.
12471
5fb651f2
JB
124722020-01-01 Joel Brobecker <brobecker@adacore.com>
12473
12474 * copyright.py (main): Exit if run from the wrong directory.
12475
5dd8bf88
JB
124762020-01-01 Joel Brobecker <brobecker@adacore.com>
12477
12478 * top.c (print_gdb_version): Change copyright year to 2020.
12479
9f71dacb 124802020-01-01 Joel Brobecker <brobecker@adacore.com>
3d34df0a 12481
9f71dacb 12482 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2019.
3d34df0a 12483
9f71dacb 12484For older changes see ChangeLog-2019.
c906108c
SS
12485\f
12486Local Variables:
12487mode: change-log
12488left-margin: 8
12489fill-column: 74
12490version-control: never
57da7796 12491coding: utf-8
c906108c 12492End: