]> git.ipfire.org Git - thirdparty/binutils-gdb.git/blame - gdb/ChangeLog
Fix thinko in the code to check coff archive elements.
[thirdparty/binutils-gdb.git] / gdb / ChangeLog
CommitLineData
03b0a45f
TT
12020-09-08 Tom Tromey <tromey@adacore.com>
2
3 * gdb_bfd.c (gdb_bfd_open): Call bfd_fopen when fstat fails.
4
3cae4447
TT
52020-09-08 Tom Tromey <tromey@adacore.com>
6
7 PR win32/25302:
8 * gdb_bfd.c (gdb_bfd_data): Add "st" parameter.
9 (gdb_bfd_init_data): New function.
10 (gdb_bfd_open, gdb_bfd_ref): Use gdb_bfd_init_data.
11
7f08fd51
TBA
122020-09-07 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
13
14 * infrun.c (fetch_inferior_event): Use
15 `switch_to_target_no_thread` to switch the target.
16
3e6ff933
TT
172020-09-06 Tom Tromey <tom@tromey.com>
18
19 * symfile.h (dwarf2_free_objfile): Don't declare.
20
e56798df
AKS
212020-09-03 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
22
23 * gdb/i386-tdep.c (i386_floatformat_for_type): Added conditions
24 to match 16 byte real/complex type generated by Flang compiler.
25
8f5c6526
TV
262020-09-03 Tom de Vries <tdevries@suse.de>
27
28 PR breakpoint/26546
29 * dwarf2/read.c (new_symbol): Tag label symbol without DW_AT_low_pc as
30 LOC_OPTIMIZED_OUT instead of LOC_LABEL.
31
c5065df0
SM
322020-09-02 Simon Marchi <simon.marchi@polymtl.ca>
33
34 * maint.c (index_digits): New function.
35 (struct maint_print_section_data): Remove.
36 (print_bfd_section_info): Remove print_data parameter, add arg
37 and index_digits.
38 (print_objfile_section_info): Likewise.
39 (print_bfd_section_info_maybe_relocated): Likewise (plus
40 objfile).
41 (maintenance_info_sections): Adjust calls.
42
02c6f3f1
TT
432020-09-02 Tom Tromey <tromey@adacore.com>
44
45 * ada-varobj.c (ada_varobj_get_ptr_number_of_children): Return 0
46 for null pointers.
47 (ada_varobj_adjust_for_child_access): Special-case null pointers.
48
ef5e5b0b
SM
492020-09-01 Simon Marchi <simon.marchi@polymtl.ca>
50
51 * bcache.h (struct bcache) <insert>: Change type of `added` to
52 pointer to bool.
53 * bcache.c (bcache::insert): Likewise.
54 * gdbtypes.c (check_types_worklist): Adjust.
55 * psymtab.c (add_psymbol_to_bcache): Adjust.
56
973695d6
KB
572020-08-31 Kevin Buettner <kevinb@redhat.com>
58
59 * corelow.c (unordered_set): Include.
60 (class core_target): Add field 'm_core_unavailable_mappings'.
61 (core_target::build_file_mappings): Print only one warning
62 per inaccessible file. Add unavailable/broken mappings
63 to m_core_unavailable_mappings.
64 (core_target::xfer_partial): Call...
65 (core_target::xfer_memory_via_mappings): New method.
66
264fc0e2
SM
672020-08-31 Simon Marchi <simon.marchi@polymtl.ca>
68
69 * dwarf2/read.c (struct field_info) <non_public_fields>: Change
70 type to bool.
71
2de01bdb
SM
722020-08-31 Simon Marchi <simon.marchi@polymtl.ca>
73
74 * dwarf2/read.c (struct field_info): Fix indentation.
75
f3bd50f1
SM
762020-08-31 Simon Marchi <simon.marchi@efficios.com>
77
78 * frame-unwind.h (frame_prev_register_ftype): Fix adjective
79 ordering in comment.
80 * frame.c (frame_id_eq): Fix indentation.
81
22b9b4b0
SL
822020-08-31 Scott Linder <scott@scottlinder.com>
83 Simon Marchi <simon.marchi@efficios.com>
84
85 * inline-frame.c (inline_frame_this_id): Remove assert that prevents
86 inline frame ids in outer frame.
87
84154d16
SM
882020-08-31 Simon Marchi <simon.marchi@efficios.com>
89
90 * frame.h (enum frame_id_stack_status) <FID_STACK_OUTER>: New.
91 * frame.c (fprint_frame_id): Handle FID_STACK_OUTER.
92 (outer_frame_id): Use FID_STACK_OUTER instead of
93 FID_STACK_INVALID.
94 (frame_id_p): Don't check for outer_frame_id.
95
8efaf6b3
SM
962020-08-31 Simon Marchi <simon.marchi@efficios.com>
97
98 * frame-unwind.c (frame_unwind_got_optimized): Don't set
99 regnum/frame in value. Call allocate_value_lazy.
100 * frame.c (frame_unwind_register_value): Use
101 val_print_not_saved.
102
fe1fe7ea
SM
1032020-08-31 Simon Marchi <simon.marchi@efficios.com>
104
105 * gdbtypes.h (NULL_TYPE): Remove, change all uses to nullptr.
106
f7c7700d
PA
1072020-08-29 Pedro Alves <pedro@palves.net>
108
109 * progspace.c (print_program_space): Use all_inferiors. Switch to
110 the inferior before calling target_pid_to_str.
111
e0814aae
TT
1122020-08-28 Tom Tromey <tom@tromey.com>
113
114 * xcoffread.c (xcoff_end_psymtab): Update comment.
115 * dbxread.c (dbx_end_psymtab): Update comment.
116
626d2320
TV
1172020-08-28 Tom de Vries <tdevries@suse.de>
118
119 PR breakpoint/26544
120 * breakpoint.c (parse_breakpoint_sals): Remove const from struct
121 event_location.
122 (create_breakpoint): Same.
123 (base_breakpoint_decode_location): Same.
124 (bkpt_create_sals_from_location): Same.
125 (bkpt_decode_location): Same.
126 (bkpt_probe_create_sals_from_location): Same.
127 (bkpt_probe_decode_location): Same.
128 (tracepoint_create_sals_from_location): Same.
129 (tracepoint_decode_location): Same.
130 (tracepoint_probe_decode_location): Same.
131 (strace_marker_create_sals_from_location): Same.
132 (strace_marker_decode_location): Same.
133 (create_sals_from_location_default): Same.
134 (decode_location_default): Same.
135 * breakpoint.h (struct breakpoint_ops): Same.
136 (create_breakpoint): Same.
137 * linespec.h (decode_line_full): Same.
138 * linespec.c (decode_line_full): Same. Throw error if
139 result.size () == 0.
140
df631783
PA
1412020-08-27 Pedro Alves <pedro@palves.net>
142
143 PR gdb/26524
144 * breakpoint.c (until_break_fsm) <location_breakpoint,
145 caller_breakpoint>: Delete fields.
146 <breakpoints>: New field.
147 <until_break_fsm>: Adjust to save a breakpoint vector instead of
148 two individual breakpoints.
149 (until_break_fsm::should_stop): Loop over breakpoints in the
150 breakpoint vector.
151 (until_break_fsm::clean_up): Adjust to clear the breakpoints
152 vector.
153 (until_break_command): Handle location expanding into multiple
154 sals.
155
b2b38aa4
PA
1562020-08-27 Pedro Alves <pedro@palves.net>
157
158 PR gdb/26523
159 * inline-frame.c (stopped_by_user_bp_inline_frame): Also consider
160 bp_until breakpoints user-specified locations. Update intro
161 comment.
162
b886559f
SM
1632020-08-27 Simon Marchi <simon.marchi@polymtl.ca>
164
165 * gdb_bfd.h (gdb_bfd_section_iterator, gdb_bfd_section_range,
166 gdb_bfd_sections): New.
167 * maint.c (print_bfd_section_info): Change param type to
168 maint_print_section_data.
169 (print_objfile_section_info): Likewise.
170 (print_bfd_section_info_maybe_relocated): Likewise.
171 (maintenance_info_sections): Use gdb_bfd_sections.
172
4c6e63bf
SV
1732020-08-25 Shahab Vahedi <shahab@synopsys.com>
174
175 * MAINTAINERS: Add ARC target and maintainer.
176
8d7f0635
AK
1772020-08-25 Anton Kolesov <anton.kolesov@synopsys.com>
178
179 * configure.tgt: ARC support for GNU/Linux.
180 * Makefile.in (ALL_TARGET_OBJS): Likewise.
181 * arc-linux-tdep.c: New file.
182 * arc-tdep.h (ARC_STATUS32_L_MASK, ARC_STATUS32_DE_MASK): Declare.
183 * arc-tdep.c (arc_write_pc): Use it.
184
fdd8731b
SV
1852020-08-25 Shahab Vahedi <shahab@synopsys.com>
186
187 * arc-tdep.c (arc_check_for_hardware_loop): New.
188 * arc-tdep.h (gdbarch_tdep): New field has_hw_loops.
189
22459524
SV
1902020-08-25 Shahab Vahedi <shahab@synopsys.com>
191
192 * arc-tdep.h: Include "gdbarch.h".
193
995d3a19
SV
1942020-08-25 Shahab Vahedi <shahab@synopsys.com>
195
196 * arch/arc.h
197 (arc_gdbarch_features): New class to stir the selection of target XML.
198 (arc_create_target_description): Use FEATURES to choose XML target.
199 (arc_lookup_target_description): Use arc_create_target_description
200 to create _new_ target descriptions or return the already created
201 ones if the FEATURES is the same.
202 * arch/arc.c: Implementation of prototypes described above.
203 * gdb/arc-tdep.h (arc_regnum enum): Add more registers.
204 (arc_gdbarch_features_init): Initialize the FEATURES struct.
205 * arc-tdep.c (*_feature_name): Make feature names consistent.
206 (arc_register_feature): A new struct to hold information about
207 registers of a particular target/feature.
208 (arc_check_tdesc_feature): Check if XML provides registers in
209 compliance with ARC_REGISTER_FEATURE structs.
210 (arc_update_acc_reg_names): Add aliases for r58 and r59.
211 (determine_*_reg_feature_set): Which feature name to look for.
212 (arc_gdbarch_features_init): Given MACH and ABFD, initialize FEATURES.
213 (mach_type_to_arc_isa): Convert from a set of binutils machine types
214 to expected ISA enums to be used in arc_gdbarch_features structs.
215 * features/Makefile (FEATURE_XMLFILES): Add new files.
216 * gdb/features/arc/v1-aux.c: New file.
217 * gdb/features/arc/v1-aux.xml: Likewise.
218 * gdb/features/arc/v1-core.c: Likewise.
219 * gdb/features/arc/v1-core.xml: Likewise.
220 * gdb/features/arc/v2-aux.c: Likewise.
221 * gdb/features/arc/v2-aux.xml: Likewise.
222 * gdb/features/arc/v2-core.c: Likewise.
223 * gdb/features/arc/v2-core.xml: Likewise.
224 * NEWS (Changes since GDB 9): Announce obsolence of old feature names.
225
3945d2d7
GM
2262020-08-25 Gaius Mulley <gaiusmod2@gmail.com>
227 Andrew Burgess <andrew.burgess@embecosm.com>
228
229 PR m2/26372
fc5d6901 230 * m2-exp.y (exp): Improve comment for non_empty_arglist case, add
3945d2d7
GM
231 an assert. Remove single element array indexing pattern as the
232 MULTI_SUBSCRIPT support will handle this case too.
233
2677f2d3
SM
2342020-08-24 Simon Marchi <simon.marchi@polymtl.ca>
235
236 * value.h (valprint_check_validity): Move declaration from
237 here...
238 * valprint.h (valprint_check_validity): ... to here.
239
c426fddb
SM
2402020-08-24 Simon Marchi <simon.marchi@efficios.com>
241
242 * debug.h: New file.
243 * debug.c (debug_prefixed_vprintf): New function.
244 * infrun.c (infrun_debug_printf_1): Use debug_prefixed_vprintf.
245 * linux-nat.c (linux_nat_debug_printf_1): Likewise.
246
1eb8556f
SM
2472020-08-24 Simon Marchi <simon.marchi@efficios.com>
248
249 * infrun.h (infrun_debug_printf_1): New function declaration.
250 (infrun_debug_printf): New macro.
251 * infrun.c (infrun_debug_printf_1): Use infrun_debug_printf
252 throughout.
253 (infrun_debug_printf): New function.
254 * breakpoint.c (should_be_inserted): Use infrun_debug_printf.
255 (handle_jit_event): Likewise.
256
b8fff44e
MW
2572020-08-21 Mark Wielaard <mark@klomp.org>
258
259 * ada-lex.l: Extend register warnings diagnostics comment for g++.
260
d19c3068
SM
2612020-08-22 Simon Marchi <simon.marchi@efficios.com>
262
263 * frame.c (enum class frame_id_status): New.
264 (struct frame_info) <this_id::p>: Change type to frame_id_status.
265 (fprintf_frame): Update.
266 (compute_frame_id): Set frame id status to "computing" on entry.
267 Set it back to "not_computed" on failure and to "computed" on
268 success.
269 (get_frame_id): Assert the frame id is not being computed.
270 (create_sentinel_frame): Use frame_id_status::COMPUTED.
271 (create_new_frame): Likewise.
272 (frame_cleanup_after_sniffer): Update assert.
273
b70e516e
SM
2742020-08-20 Simon Marchi <simon.marchi@polymtl.ca>
275
276 * regcache.c (pid_ptid_regcache_map): New type.
277 (target_ptid_regcache_map): Remove.
278 (target_pid_ptid_regcache_map): New type.
279 (regcaches): Change type to target_pid_ptid_regcache_map.
280 (get_thread_arch_aspace_regcache): Update.
281 (regcache_thread_ptid_changed): Update, handle pid-like ptid
282 case.
283 (regcaches_size): Update.
284 (regcache_count): Update.
285 (registers_changed_ptid_target_pid_test): New.
286 (_initialize_regcache): Register new test.
287
cdd9148a
SM
2882020-08-20 Simon Marchi <simon.marchi@polymtl.ca>
289
290 * regcache.c (regcache_count): New.
291 (struct regcache_test_data): New.
292 (regcache_test_data_up): New.
293 (populate_regcaches_for_test): New.
294 (regcaches_test): Remove.
295 (get_thread_arch_aspace_regcache_test): New.
296 (registers_changed_ptid_all_test): New.
297 (registers_changed_ptid_target_test): New.
298 (registers_changed_ptid_target_ptid_test): New.
299 (regcache_thread_ptid_changed): Remove regcache_count lambda.
300 (_initialize_regcache): Register new tests.
301
dd125343
SM
3022020-08-20 Simon Marchi <simon.marchi@polymtl.ca>
303
304 * regcache.c (test_get_thread_arch_aspace_regcache): Rename to...
305 (get_thread_arch_aspace_regcache_and_check): ... this. Remove
306 gdbarch and aspace parameter. Use current inferior's aspace.
307 Validate regcache's arch value.
308 (regcaches_test): Update.
309
3ee93972
SM
3102020-08-20 Simon Marchi <simon.marchi@polymtl.ca>
311
312 * regcache.c (regcaches_test): Call registers_changed.
313
33bf4c5c
TBA
3142020-08-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
315
316 * infrun.c (process_event_stop_test): Fix typo "breapoint".
317
c2fd7fae
AKS
3182020-08-19 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
319
320 * amd64-tdep.c (amd64_skip_prologue): Using symbol table
321 to find the end of prologue for flang compiled binaries.
322 * arm-tdep.c (arm_skip_prologue): Likewise.
323 * i386-tdep.c (i386_skip_prologue): Likewise.
324 * producer.c (producer_is_llvm): New function.
325 (producer_parsing_tests): Added new tests for clang/flang.
326 * producer.h (producer_is_llvm): New declaration.
327
9327494e
SM
3282020-08-18 Simon Marchi <simon.marchi@efficios.com>
329
330 * linux-nat.c (linux_nat_debug_printf): New function.
331 (linux_nat_debug_printf_1): New macro. Use throughout the file.
332
d138725a
AM
3332020-08-18 Aaron Merey <amerey@redhat.com>
334
335 * Makefile.in (DEBUGINFOD_CFLAGS, DEBUGINFOD_LIBS): New variables.
336 (INTERNAL_CFLAGS_BASE): Add DEBUGINFOD_CFLAGS.
337 (CLIBS): Add DEBUGINFOD_LIBS.
338
f9b11e6b
ST
3392020-08-17 Sergei Trofimovich <siarheit@google.com>
340
341 * ia64-linux-nat.c: Include "gdbarch.h" to declare used
342 'gdbarch_num_regs'.
343
3ae7ab99
TT
3442020-08-17 Tom Tromey <tromey@adacore.com>
345
346 * ada-varobj.c (ada_varobj_decode_var): Handle case where
347 ada_get_decoded_value returns NULL.
348
b017825f
TT
3492020-08-17 Tom Tromey <tromey@adacore.com>
350
351 * python/py-inferior.c (infpy_search_memory): Use
352 gdb_py_object_from_ulongest.
353 * python/py-infevents.c (create_inferior_call_event_object)
354 (create_memory_changed_event_object): Use
355 gdb_py_object_from_ulongest.
356 * python/py-linetable.c (ltpy_entry_get_pc): Use
357 gdb_py_object_from_ulongest.
358
7635cf79
SM
3592020-08-17 Simon Marchi <simon.marchi@polymtl.ca>
360
361 * loc.c (class symbol_needs_eval_context): Fix indentation.
362
f54be24b
SM
3632020-08-17 Simon Marchi <simon.marchi@polymtl.ca>
364
365 * dwarf2/loc.c (dwarf2_loc_desc_get_symbol_read_needs): Use
366 bool.
367
53d5a2a5
TV
3682020-08-17 Tom de Vries <tdevries@suse.de>
369
370 PR gdb/26393
371 * gdbtypes.c (dump_dynamic_prop): New function.
372 (recursive_dump_type): Use dump_dynamic_prop for TYPE_CODE_RANGE.
373
547ce8f0
TV
3742020-08-15 Tom de Vries <tdevries@suse.de>
375
376 PR backtrace/26390
377 * stack.c (print_frame_args): Temporarily set the selected
378 frame to FRAME while printing the frame's arguments.
379
6ea815e7
PFC
3802020-08-14 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
381
382 PR breakpoints/26385
383 * ppc-linux-nat.c (ppc_linux_nat_target::low_prepare_to_resume):
384 Always clear watchpoint with PTRACE_SET_DEBUGREG.
385
6e562fa3
PFC
3862020-08-14 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
387
388 * ppc-linux-nat.c (ppc_linux_dreg_interface::detect)
389 (ppc_linux_nat_target::low_prepare_to_resume): Use ptrace () < 0
390 and >= to check return value instead of == -1 and != -1.
391
d369b608
SM
3922020-08-14 Simon Marchi <simon.marchi@polymtl.ca>
393
394 * utils.h (class gdb_argv) <as_array_view>: New method.
395 * utils.c (gdb_argv_as_array_view_test): New.
396 (_initialize_utils): Register selftest.
397 * maint.c (maintenance_selftest): Use the new method.
398
b31488a3
KR
3992020-08-13 Kamil Rytarowski <n54@gmx.com>
400
401 * target.h (supports_dumpcore, dumpcore): New
402 function declarations.
403 * target.c (supports_dumpcore, dumpcore): New
404 functions.
405 * target-delegates.c: Rebuild.
406 * gcore.c (gcore_command): Use target_supports_dumpcore ()
407 and target_dumpcore ().
408
002a3166
AM
4092020-08-13 Aaron Merey <amerey@redhat.com>
410
411 * debuginfod-support.c: Replace global variables with user_data.
412
ece5bc8a
SM
4132020-08-13 Simon Marchi <simon.marchi@polymtl.ca>
414
415 * maint.c (maintenance_selftest): Split args and pass array_view
416 to run_tests.
417
6d8a0a5e
LM
4182020-08-12 Luis Machado <luis.machado@linaro.org>
419
420 * value.c (check_type_length_before_alloc): Use ULONGEST to store a
421 type's length.
422 Use %s and pulongest to print the length.
423
7cf663a9
PA
4242020-08-12 Pedro Alves <palves@redhat.com>
425
426 * NEWS: Move "Multi-target debugging support" item to the
427 "Changes since GDB 9" section.
428
27c7b875
PA
4292020-08-12 Pedro Alves <palves@redhat.com>
430
431 PR gdb/26336
432 * progspace.c (program_space::remove_objfile): Invalidate the
433 frame cache.
434
1796a2a1
TV
4352020-08-11 Tom de Vries <tdevries@suse.de>
436
437 * MAINTAINERS: Mark ms1 as deleted.
438
f8e3fe0d
LM
4392020-08-10 Luis Machado <luis.machado@linaro.org>
440
441 PR gdb/26310
442
443 * aarch64-tdep.c (aarch64_analyze_prologue): Track use of SP/FP and
444 act accordingly.
445 (aarch64_analyze_prologue_test): Add more unit tests to exercise
446 movz/str/stur/stp skipping behavior.
447
cc308722
LM
4482020-08-10 Luis Machado <luis.machado@linaro.org>
449
450 * nat/aarch64-sve-linux-sigcontext.h (SVE_PT_REGS_OFFSET): Use
451 struct user_sve_header instead of struct sve_context.
452
041d9819
SM
4532020-08-09 Simon Marchi <simon.marchi@polymtl.ca>
454
455 * read.h (dwarf2_fetch_die_loc_sect_off,
456 dwarf2_fetch_die_loc_cu_off): Replace function pointer +
457 `void *` parameter with function_view.
458 * read.c (dwarf2_fetch_die_loc_sect_off,
459 dwarf2_fetch_die_loc_cu_off): Likewise.
460 * loc.c (get_frame_pc_for_per_cu_dwarf_call): Remove.
461 (per_cu_dwarf_call): Adjust.
462 (get_frame_address_in_block_wrapper): Remove.
463 (indirect_synthetic_pointer): Adjust.
464 (get_ax_pc): Remove.
465 (dwarf2_compile_expr_to_ax): Adjust.
466
38f8aa06
TV
4672020-08-08 Tom de Vries <tdevries@suse.de>
468
469 PR build/26344
470 * arch/riscv.c (riscv_lookup_target_description): Use an explicit
471 constructor.
472 * regcache.c (get_thread_arch_aspace_regcache): Same.
473
a52b3ae2
TT
4742020-08-07 Tom Tromey <tromey@adacore.com>
475
476 * ravenscar-thread.c
477 (ravenscar_thread_target::set_base_thread_from_ravenscar_task):
478 New method.
479 (ravenscar_thread_target::wait): Check
480 runtime_initialized.
481 (ravenscar_thread_target::prepare_to_store)
482 (ravenscar_thread_target::stopped_by_sw_breakpoint)
483 (ravenscar_thread_target::stopped_by_hw_breakpoint)
484 (ravenscar_thread_target::stopped_by_watchpoint)
485 (ravenscar_thread_target::stopped_data_address)
486 (ravenscar_thread_target::core_of_thread): Use
487 scoped_restore_current_thread and
488 set_base_thread_from_ravenscar_task.
489
0e29517d
TT
4902020-08-07 Tom Tromey <tromey@adacore.com>
491
492 * ravenscar-thread.c (update_thread_list): Set inferior_ptid.
493
592f9bd7
TT
4942020-08-07 Tom Tromey <tromey@adacore.com>
495
496 * ravenscar-thread.c (ravenscar_thread_target::wait): Call
497 update_inferior_ptid before update_thread_list.
498 (temporarily_change_regcache_ptid): New class.
499 (ravenscar_thread_target::fetch_registers)
500 (ravenscar_thread_target::store_registers)
501 (ravenscar_thread_target::prepare_to_store): Use base thread when
502 forwarding operation.
503
39e2018a
TT
5042020-08-07 Tom Tromey <tromey@adacore.com>
505
506 * ravenscar-thread.c (ravenscar_thread_target::resume): Handle
507 "is_pid" case.
508
2080266b
TT
5092020-08-07 Tom Tromey <tromey@adacore.com>
510
511 * ravenscar-thread.c (xfer_partial, enable_btrace, add_thread):
512 New methods.
513 (ravenscar_thread_target::get_thread_base_cpu): Check m_cpu_map
514 first.
515 (ravenscar_thread_target::add_thread): Rename from
516 ravenscar_add_thread.
517 (ravenscar_thread_target::update_thread_list): Use a lambda.
518 (ravenscar_thread_target::xfer_partial): New method.
519
78c02f21
TT
5202020-08-07 Tom Tromey <tromey@adacore.com>
521
522 * ada-lang.h (ada_task_list_iterator_ftype): Now a
523 gdb::function_view.
524 (iterate_over_live_ada_tasks): Change type of argument.
525 * ada-tasks.c (iterate_over_live_ada_tasks): Change type
526 of argument.
527
d5d833af
TT
5282020-08-07 Tom Tromey <tromey@adacore.com>
529
530 * ravenscar-thread.c (ravenscar_thread_target) <extra_thread_info>:
531 Remove.
532 (ravenscar_thread_target::extra_thread_info): Remove.
533 (ravenscar_thread_target::pid_to_str): Mention Ravenscar in result;
534 defer to target beneath for non-Ravenscar threads.
535
a8ac85bb
TT
5362020-08-07 Tom Tromey <tromey@adacore.com>
537
538 * ravenscar-thread.c (ravenscar_thread_target) <get_base_cpu,
539 get_base_thread_from_ravenscar_task>: Now methods.
540 <m_cpu_map>: New member.
541 (ravenscar_thread_target::get_thread_base_cpu): Rename from
542 ravenscar_get_thread_base_cpu. Check m_cpu_map.
543 (ravenscar_thread_target::task_is_currently_active): Update.
544 (ravenscar_thread_target::get_base_thread_from_ravenscar_task):
545 Now a method.
546 (ravenscar_thread_target::add_active_thread): Put initial thread
547 into the m_cpu_map.
548
550ab58d
TT
5492020-08-07 Tom Tromey <tromey@adacore.com>
550
551 * ravenscar-thread.c (ravenscar_thread_target::wait): Return
552 event_ptid.
553
e9546579
TT
5542020-08-07 Tom Tromey <tromey@adacore.com>
555
556 * ravenscar-thread.c (ravenscar_thread_target::wait): Check
557 runtime_initialized.
558
3d4470e5
TT
5592020-08-07 Tom Tromey <tromey@adacore.com>
560
561 * ravenscar-thread.c (ravenscar_thread_target): Don't call
562 add_active_thread.
563 (ravenscar_thread_target::add_active_thread): Now public.
564 (ravenscar_inferior_created): Call add_active_thread after pushing
565 the target.
566
888bdb2b
SM
5672020-08-07 Simon Marchi <simon.marchi@polymtl.ca>
568
569 * regcache.c (ptid_regcache_map): New type.
570 (target_ptid_regcache_map): New type.
571 (regcaches): Change type to target_ptid_regcache_map.
572 (get_thread_arch_aspace_regcache): Update to regcaches' new
573 type.
574 (regcache_thread_ptid_changed): Likewise.
575 (registers_changed_ptid): Likewise.
576 (regcaches_size): Likewise.
577 (regcaches_test): Update.
578 (regcache_thread_ptid_changed): Update.
579 * regcache.h (regcache_up): New type.
580 * gdbsupport/ptid.h (hash_ptid): New struct.
581
b161a60d
SM
5822020-08-07 Simon Marchi <simon.marchi@efficios.com>
583
584 * observable.h (thread_ptid_changed): Add parameter
585 `process_stratum_target *`.
586 * infrun.c (infrun_thread_ptid_changed): Add parameter
587 `process_stratum_target *` and use it.
588 (selftests): New namespace.
589 (infrun_thread_ptid_changed): New function.
590 (_initialize_infrun): Register selftest.
591 * regcache.c (regcache_thread_ptid_changed): Add parameter
592 `process_stratum_target *` and use it.
593 (regcache_thread_ptid_changed): New function.
594 (_initialize_regcache): Register selftest.
595 * thread.c (thread_change_ptid): Pass target to
596 thread_ptid_changed observable.
597
d2854d8d
CT
5982020-08-06 Caroline Tice <cmtice@google.com>
599
fe4c3d43
SM
600 * dwarf2/read.c (struct dwo_file): Update comment on 'sections' field.
601 (struct dwp_sections): Update field comments. Add loclists and
602 rnglists fields.
603 (struct virtual_v2_dwo_sections): Rename struct to
604 'virtual_v2_or_v5_dwo_sections'; update comments at top of struct; add
605 size & offset fields for loclists and rnglists.
606 (struct dwp_hash_table): Add a 'v5' struct field to the union section.
607 (create_debug_type_hash_table): Add 'DW_UT_split_type' to the check for
608 skipping dummy type units.
609 (create_dwp_hash_table): Update the large comment above the function to
610 discuss Version 5 DWP files as well, with references. Update all the
611 version checks in the function to check for version 5 as well. Add new
612 section at the end to create dwp hash table for version 5.
613 (create_dwp_v2_section): Rename function to
614 'create_dwp_v2_or_v5_section'. Update function comment appropriately.
615 Add V5 to error message text.
616 (create_dwo_unit_in_dwp_v2): Change calls to create_dwp_v2_section
617 into calls to create_dwp_v2_or_v5_section.
618 (create_dwo_unit_in_dwp_v5): New function.
619 (lookup_dwo_unit_in_dwp): Update conditional statement to explicitly
620 check for version2; add else clause to handle version 5.
621 (open_and_init_dwo_file): Add code to check dwarf version & only call
622 create_debug_types_hash_table (with sections.types) if version is not 5;
623 else call create_debug_type_hash_table, with sections.info.
624 (dwarf2_locate_v2_dwp_sections): Update function comment to mention
625 version 5.
626 (dwarf2_locate_v5_dwp_sections): New function.
627 (open_and_init_dwp_file): Add else-if clause for version 5 to call
628 bfd_map_over_sections with dwarf2_locate_v5_dwp_sections.
d2854d8d 629
159ed7d9
SM
6302020-08-06 Simon Marchi <simon.marchi@efficios.com>
631
632 * regcache.h (class regcache): Remove friend
633 registers_changed_ptid.
634 <regcache_thread_ptid_changed>: Remove.
635 <regcaches>: Remove.
636 * regcache.c (regcache::regcaches): Rename to...
637 (regcaches): ... this. Make static.
638 (get_thread_arch_aspace_regcache): Update.
639 (regcache::regcache_thread_ptid_changed): Rename to...
640 (regcache_thread_ptid_changed): ... this. Update.
641 (class regcache_access): Remove.
642 (regcaches_test): Update.
643 (_initialize_regcache): Update.
644 * sparc64-tdep.c, dwarf2/index-write.c, record-btrace.c: Include
645 <forward_list>.
646
174981ae
SM
6472020-08-06 Simon Marchi <simon.marchi@efficios.com>
648
649 * regcache.h (class regcache) <current_regcache>: Rename to...
650 <regcaches>: ... this. Move doc here.
651 * regcache.c (regcache::current_regcache) Rename to...
652 (regcache::regcaches): ... this. Move doc to header.
653 (get_thread_arch_aspace_regcache): Update.
654 (regcache::regcache_thread_ptid_changed): Update.
655 (registers_changed_ptid): Update.
656 (class regcache_access) <current_regcache_size>: Rename to...
657 <regcaches_size>: ... this.
658 (current_regcache_test): Rename to...
659 (regcaches_test): ... this.
660 (_initialize_regcache): Update.
661
ed908db6
VC
6622020-08-06 Victor Collod <vcollod@nvidia.com>
663
664 * amd64-tdep.c (amd64_analyze_prologue): Fix incorrect comment.
665
b5582ab7
KB
6662020-08-05 Kevin Buettner <kevinb@redhat.com>
667
668 * corelow.c (core_target::build_file_mappings): Don't output
669 null pathname in warning.
670
ea946b86
SM
6712020-08-05 Simon Marchi <simon.marchi@polymtl.ca>
672
673 * gdb.dwarf2/clztest.exp, gdb.dwarf2/dw2-common-block.exp,
674 gdb.dwarf2/dw2-dup-frame.exp, gdb.dwarf2/dw2-reg-undefined.exp,
675 gdb.dwarf2/dw2-single-line-discriminators.exp,
676 dw2-undefined-ret-addr.exp: Pass nopie to compilation options.
677
57d02173
TT
6782020-08-05 Tom Tromey <tromey@adacore.com>
679
680 PR rust/26197:
681 * dwarf2/read.c (alloc_rust_variant): Handle univariant case.
682 (quirk_rust_enum): Call alloc_rust_variant for univariant case.
683 Fix off-by-one and type size errors in ordinary case.
684
5555c86d
TV
6852020-08-05 Tom de Vries <tdevries@suse.de>
686
687 * gdbtypes.c (type_not_allocated, type_not_associated): Use
688 "prop->const_val () == 0" instead of "prop->const_val () != 0".
689
97916bfe
SM
6902020-08-04 Simon Marchi <simon.marchi@efficios.com>
691
692 * frame.h (frame_id_p): Return bool.
693 (frame_id_artificial_p): Return bool.
694 (frame_id_eq): Return bool.
695 (has_stack_frames): Return bool.
696 (get_selected_frame): Fix typo in comment.
697 (get_frame_pc_if_available): Return bool.
698 (get_frame_address_in_block_if_available): Return bool.
699 (get_frame_func_if_available): Return bool.
700 (read_frame_register_unsigned): Return bool.
701 (get_frame_register_bytes): Return bool.
702 (safe_frame_unwind_memory): Return bool.
703 (deprecated_frame_register_read): Return bool.
704 (frame_unwinder_is): Return bool.
705 * frame.c (struct frame_info) <prev_arch::p>: Change type to
706 bool.
707 <this_id::p>: Likewise.
708 <prev_p>: Likewise.
709 (frame_stash_add): Return bool.
710 (get_frame_id): Use bool.
711 (frame_id_build_special) Use bool.
712 (frame_id_build_unavailable_stack): Use bool.
713 (frame_id_build): Use bool.
714 (frame_id_p): Return bool, use true/false instead of 1/0.
715 (frame_id_artificial_p): Likewise.
716 (frame_id_eq): Likewise.
717 (frame_id_inner): Likewise.
718 (get_frame_func_if_available): Likewise.
719 (read_frame_register_unsigned): Likewise.
720 (deprecated_frame_register_read): Likewise.
721 (get_frame_register_bytes): Likewise.
722 (has_stack_frames): Likewise.
723 (inside_main_func): Likewise.
724 (inside_entry_func): Likewise.
725 (get_frame_pc_if_available): Likewise.
726 (get_frame_address_in_block_if_available): Likewise.
727 (frame_unwinder_is): Likewise.
728 (safe_frame_unwind_memory): Likewise.
729 (frame_unwind_arch): Likewise.
730
fedfee88
SM
7312020-08-04 Simon Marchi <simon.marchi@efficios.com>
732
733 * frame.c (frame_info) <prev_func> <p>: Rename to status, change
734 type to cached_copy_status.
735 (fprintf_frame): Adjust.
736 (get_frame_func_if_available): Adjust.
737 (frame_cleanup_after_sniffer): Adjust.
738
6cfa9b59
MW
7392020-08-04 Mark Wielaard <mark@klomp.org>
740
741 * MAINTAINERS (Write After Approval): Update email address.
742
66d6346b
SM
7432020-08-04 Simon Marchi <simon.marchi@polymtl.ca>
744
745 * gdbtypes.h (TYPE_DYN_PROP_ADDR): Remove, replace uses with
746 dynamic_prop::const_val.
747
8a6d5e35
SM
7482020-08-04 Simon Marchi <simon.marchi@polymtl.ca>
749
750 * gdbtypes.h (TYPE_DYN_PROP_KIND): Remove, replace uses with
751 dynamic_prop::kind.
752
51d6067d
SM
7532020-08-04 Simon Marchi <simon.marchi@polymtl.ca>
754
755 * gdbtypes.h (TYPE_DYN_PROP_BATON): Remove.
756
b26e2ae7
JM
7572020-08-04 Jose E. Marchesi <jose.marchesi@oracle.com>
758
759 * configure.tgt: Set gdb_sim for bpf-*-* targets.
760
39791af2
JM
7612020-08-04 Weimin Pan <weimin.pan@oracle.com>
762 Jose E. Marchesi <jose.marchesi@oracle.com>
763
764 * configure.tgt: Add entry for bpf-*-*.
765 * Makefile.in (ALL_TARGET_OBS): Add bpf-tdep.o
766 (ALLDEPFILES): Add bpf-tdep.c.
767 * bpf-tdep.c: New file.
768 * MAINTAINERS: Add bpf target and maintainer.
769 * NEWS: Mention the support for the new target.
770
521894aa
TV
7712020-08-04 Tom de Vries <tdevries@suse.de>
772
773 PR symtab/23270
774 * dwarf2/read.c (find_partial_die): Change internal error into Dwarf
775 Error.
776
5d6356e9
JB
7772020-08-03 John Baldwin <jhb@FreeBSD.org>
778
779 * syscalls/freebsd.xml: Regenerate.
780
0cf82b81
JB
7812020-08-03 John Baldwin <jhb@FreeBSD.org>
782
783 * syscalls/update-freebsd.sh: Fix usage and year range.
784
8f34b746
TV
7852020-08-03 Tom de Vries <tdevries@suse.de>
786
787 PR symtab/26333
788 * dwarf2/read.c (dwarf_decode_lines_1): Ignore
789 DW_LNE_lo_user/DW_LNE_hi_user range.
790
5e500d33
SM
7912020-07-30 Simon Marchi <simon.marchi@polymtl.ca>
792
793 PR ada/26318
794 * ada-lang.c (ada_modulus): Return 0 if property is not of const
795 kind.
796
78319c15
TBA
7972020-07-30 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
798
799 * breakpoint.c (set_breakpoint_condition): Do minor refactoring.
800
4c55e970
TBA
8012020-07-30 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
802
803 * breakpoint.c (set_breakpoint_condition): Update the condition
804 expressions after checking that the input condition string parses
805 successfully and does not contain junk at the end.
806
1e620590
TBA
8072020-07-30 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
808
809 * breakpoint.c (set_breakpoint_condition): Update the
810 condition string after parsing the new condition successfully.
811
c8693053
RO
8122020-07-30 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
813
814 * proc-api.c (_STRUCTURED_PROC): Don't define.
815 * proc-events.c: Likewise.
816 * proc-flags.c: Likewise.
817 * proc-why.c: Likewise.
818 * procfs.c: Likewise.
819
820 * Makefile.in (INTERNAL_CPPFLAGS): Add LARGEFILE_CPPFLAGS.
821 * configure, config.in: Regenerate.
822
5a99adb8
TV
8232020-07-30 Tom de Vries <tdevries@suse.de>
824
825 PR build/26320
826 * ui-style.h (struct ui_file_style::color): Wrap m_value and
827 m_red/m_green/m_blue in a union.
828
8ba83e91
TV
8292020-07-29 Tom de Vries <tdevries@suse.de>
830
831 PR tdep/26280
832 * s390-tdep.c (s390_displaced_step_fixup): Fix Wmaybe-uninitialized.
833
f75a0693
AB
8342020-07-28 Tom Tromey <tromey@adacore.com>
835
836 PR symtab/26270:
837 * symtab.h (find_pc_partial_function_sym): Declare.
838 * cli/cli-cmds.c (disassemble_command): Use
839 find_pc_partial_function_sym. Check asm_demangle.
840 * blockframe.c (cache_pc_function_sym): New global.
841 (cache_pc_function_name): Remove.
842 (clear_pc_function_cache): Update.
843 (find_pc_partial_function_sym): New function, from
844 find_pc_partial_function.
845 (find_pc_partial_function): Rewrite using
846 find_pc_partial_function_sym.
847
16f3242c
TT
8482020-07-28 Tom Tromey <tromey@adacore.com>
849
850 * cli/cli-cmds.c (_initialize_cli_cmds): Rearrange "disassemble"
851 help. Add usage.
852
4888741a
TT
8532020-07-28 Tom Tromey <tromey@adacore.com>
854
855 * dwarf2/expr.c (dwarf_expr_context::execute_stack_op)
856 <DW_OP_GNU_variable_value>: Cast to address type.
857
4d46f402
KR
8582020-07-28 Kamil Rytarowski <n54@gmx.com>
859
860 * nbsd-nat.h (nbsd_nat_target::xfer_partial): New declaration.
861 * nbsd-nat.c (nbsd_nat_target::xfer_partial): New function.
862 * nbsd-tdep.c (nbsd_gdbarch_data_handle, struct nbsd_gdbarch_data)
863 (init_nbsd_gdbarch_data, get_nbsd_gdbarch_data)
864 (nbsd_get_siginfo_type): New.
865 (nbsd_init_abi): Install gdbarch "get_siginfo_type" method.
866 (_initialize_nbsd_tdep): New.
867
d70f978b
L
8682020-07-28 H.J. Lu <hongjiu.lu@intel.com>
869
870 PR binutils/26301
871 * configure: Regenerated.
872
377170fa
L
8732020-07-28 H.J. Lu <hongjiu.lu@intel.com>
874
875 PR binutils/26301
876 * configure: Regenerated.
877
43d5901d
AB
8782020-07-28 Andrew Burgess <andrew.burgess@embecosm.com>
879
880 * python/py-frame.c: Remove 'user-regs.h' include.
881 (frapy_read_register): Rewrite to make use of
882 gdbpy_parse_register_id.
883 * python/py-registers.c (gdbpy_parse_register_id): New function,
884 moved here from python/py-unwind.c. Updated the return type, and
885 also accepts register descriptor objects.
886 * python/py-unwind.c: Remove 'user-regs.h' include.
887 (pyuw_parse_register_id): Moved to python/py-registers.c.
888 (unwind_infopy_add_saved_register): Update to use
889 gdbpy_parse_register_id.
890 (pending_framepy_read_register): Likewise.
891 * python/python-internal.h (gdbpy_parse_register_id): Declare.
892
14fa8fb3
AB
8932020-07-28 Andrew Burgess <andrew.burgess@embecosm.com>
894
895 * python/py-registers.c: Add 'user-regs.h' include.
896 (register_descriptor_iter_find): New function.
897 (register_descriptor_iterator_object_methods): New static global
898 methods array.
899 (register_descriptor_iterator_object_type): Add pointer to methods
900 array.
901
ddce1758
JB
9022020-07-27 John Baldwin <jhb@FreeBSD.org>
903
904 * fbsd-nat.h: Include <osreldate.h>. Define USE_SIGTRAP_SIGINFO
905 for all architectures on FreeBSD 11.3 and later.
906
a4089f52
TT
9072020-07-27 Tom Tromey <tromey@adacore.com>
908
909 * gcore.h (load_corefile): Don't declare.
910
95420d30
TV
9112020-07-27 Tom de Vries <tdevries@suse.de>
912
913 * configure.ac: Fix sys/sockets.h -> sys/socket.h typo.
914 * config.in: Regenerate.
915 * configure: Regenerate.
916
05a6b8c2
EZ
9172020-07-26 Eli Zaretskii <eliz@gnu.org>
918
919 * configure.ac (AC_CHECK_HEADERS): Check for sys/socket.h and
920 ws2tcpip.h. When checking whether socklen_t type is defined, use
921 ws2tcpip.h if it is available and sys/socket.h isn't.
922 * configure: Regenerate.
923 * config.in: Regenerate.
924
e79eb02f
AB
9252020-07-25 Andrew Burgess <andrew.burgess@embecosm.com>
926
927 PR fortran/23051
928 PR fortran/26139
929 * valops.c (value_ind): Pass address to
930 readjust_indirect_value_type.
931 * value.c (readjust_indirect_value_type): Make parameter
932 non-const, and add extra address parameter. Resolve original type
933 before using it.
934 * value.h (readjust_indirect_value_type): Update function
935 signature and comment.
936
876518dd
TV
9372020-07-25 Tom de Vries <tdevries@suse.de>
938
939 PR symtab/26243
940 * dwarf2/read.c (lnp_state_machine::record_line): Ignore zero line
941 entries.
942
f6720b1c
AM
9432020-07-24 Aaron Merey <amerey@redhat.com>
944
945 * Makefile.in: Replace LIBDEBUGINFOD with DEBUGINFOD_LIBS.
946 * configure: Rebuild.
947
513487e1
KB
9482020-07-23 Kevin Buettner <kevinb@redhat.com>
949
950 PR corefiles/26294
951 * corelow.c (_initialize_corelow): Add period to help text
952 for "maintenance print core-file-backed-mappings".
953
e7bc9db8
PA
9542020-07-23 Pedro Alves <pedro@palves.net>
955
956 * frame-unwind.c (frame_unwind_try_unwinder): On exception, don't
957 touch THIS_CACHE/THIS_FRAME if the frame cache was cleared
958 meanwhile.
959 * frame.c (frame_cache_generation, get_frame_cache_generation):
960 New.
961 (reinit_frame_cache): Increment FRAME_CACHE_GENERATION.
962 (get_prev_frame_if_no_cycle): On exception, don't touch
963 PREV_FRAME/THIS_FRAME if the frame cache was cleared meanwhile.
964 * frame.h (get_frame_cache_generation): Declare.
965
90fcc466
TV
9662020-07-23 Tom de Vries <tdevries@suse.de>
967
968 PR tui/26282
969 * tui/tui-winsource.h (struct tui_source_windows::tui_source_windows):
970 New default constructor.
971
78344df7
AB
9722020-07-23 Andrew Burgess <andrew.burgess@embecosm.com>
973
974 * disasm.c (do_mixed_source_and_assembly_deprecated): Don't
975 exclude non-statement entries.
976
b089853a
KB
9772020-07-22 Kevin Buettner <kevinb@redhat.com>
978
979 * NEWS (New commands): Mention new command
980 "maintenance print core-file-backed-mappings".
981
09c2f5d4
KB
9822020-07-22 Kevin Buettner <kevinb@redhat.com>
983
984 * corelow.c (gdbcmd.h): Include.
985 (core_target::info_proc_mappings): New method.
986 (get_current_core_target): New function.
987 (maintenance_print_core_file_backed_mappings): New function.
988 (_initialize_corelow): Add core-file-backed-mappings to
989 "maint print" commands.
990
9c5ec5c2 9912020-07-22 Kevin Buettner <kevinb@redhat.com>
fe4c3d43 992
9c5ec5c2
KB
993 * linux-tdep.c (dump_note_entry_p): New function.
994 (linux_dump_mapping_p_ftype): New typedef.
995 (linux_find_memory_regions_full): Add new parameter,
996 should_dump_mapping_p.
997 (linux_find_memory_regions): Adjust call to
998 linux_find_memory_regions_full.
999 (linux_make_mappings_core_file_notes): Use dump_note_entry_p in
1000 call to linux_find_memory_regions_full.
1001
db082f59
KB
10022020-07-22 Kevin Buettner <kevinb@redhat.com>
1003
1004 * corelow.c (solist.h, unordered_map): Include.
1005 (class core_target): Add field m_core_file_mappings and
1006 method build_file_mappings.
1007 (core_target::core_target): Call build_file_mappings.
1008 (core_target::~core_target): Free memory associated with
1009 m_core_file_mappings.
1010 (core_target::build_file_mappings): New method.
1011 (core_target::xfer_partial): Use m_core_file_mappings
1012 for memory transfers.
1013 * linux-tdep.c (linux_read_core_file_mappings): New
1014 function.
1015 (linux_core_info_proc_mappings): Rewrite to use
1016 linux_read_core_file_mappings.
1017 (linux_init_abi): Register linux_read_core_file_mappings.
1018
7e183d27
KB
10192020-07-22 Kevin Buettner <kevinb@redhat.com>
1020
1021 * arch-utils.c (default_read_core_file_mappings): New function.
1022 * arch-utils.c (default_read_core_file_mappings): Declare.
1023 * gdbarch.sh (read_core_file_mappings): New gdbarch method.
1024 * gdbarch.h, gdbarch.c: Regenerate.
1025
2735d421
KB
10262020-07-22 Kevin Buettner <kevinb@redhat.com>
1027
1028 PR corefiles/25631
1029 * corelow.c (core_target:xfer_partial): Revise
1030 TARGET_OBJECT_MEMORY case to consider non-SEC_HAS_CONTENTS
1031 case after first checking the stratum beneath the core
1032 target.
1033 (has_all_memory): Return true.
1034 * target.c (raw_memory_xfer_partial): Revise comment
1035 regarding use of has_all_memory.
1036
e56cb451
KB
10372020-07-22 Kevin Buettner <kevinb@redhat.com>
1038
1039 * exec.h (section_table_xfer_memory): Revise declaration,
1040 replacing section name parameter with an optional callback
1041 predicate.
1042 * exec.c (section_table_xfer_memory): Likewise.
1043 * bfd-target.c, exec.c, target.c, corelow.c: Adjust all callers
1044 of section_table_xfer_memory.
1045
32fa152e
TT
10462020-07-22 Tom Tromey <tromey@adacore.com>
1047
1048 * mi/mi-cmd-stack.c (list_args_or_locals): Use
1049 lookup_symbol_search_name.
1050
a67a1c41
AB
10512020-07-22 Andrew Burgess <andrew.burgess@embecosm.com>
1052
1053 * python/py-registers.c (gdbpy_register_object_data_init): Remove
1054 redundant local variable.
1055 (gdbpy_get_register_descriptor): Extract descriptor vector as a
1056 reference, not pointer, update code accordingly.
1057
a7b4ff4f
SM
10582020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
1059 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1060
1061 * objfiles.h (struct objfile) <skip_jit_symbol_lookup>: New field.
1062 * jit.c (jit_breakpoint_re_set_internal): Use the
1063 `skip_jit_symbol_lookup` field.
1064
2340e834
SM
10652020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
1066 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1067
1068 * jit.c (jit_read_descriptor): Define the descriptor address once,
1069 use twice.
1070 (jit_breakpoint_deleted): Move the declaration of the loop variable
1071 `iter` into the loop header.
1072 (jit_breakpoint_re_set_internal): Move the declaration of the local
1073 variable `objf_data` to the first point of definition.
1074 (jit_event_handler): Move the declaration of local variables
1075 `code_entry`, `entry_addr`, and `objf` to their first point of use.
1076 Rename `objf` to `jited`.
1077
c1072906
SM
10782020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
1079
1080 * jit.h (struct jiter_objfile_data) <jiter_objfile_data, objfile>:
1081 Remove.
1082 * jit.c (get_jiter_objfile_data): Update.
1083
c8474dc3
TBA
10842020-07-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1085 Simon Marchi <simon.marchi@polymtl.ca>
1086
1087 * jit.c (struct jit_program_space_data): Remove.
1088 (jit_program_space_key): Remove.
1089 (jiter_objfile_data::~jiter_objfile_data): Remove program space
1090 stuff.
1091 (get_jit_program_space_data): Remove.
1092 (jit_breakpoint_deleted): Iterate on all of the program space's
1093 objfiles.
1094 (jit_inferior_init): Likewise.
1095 (jit_breakpoint_re_set_internal): Likewise. Also change return
1096 type to void.
1097 (jit_breakpoint_re_set): Pass current_program_space to
1098 jit_breakpoint_re_set_internal.
1099
77208eb7
SM
11002020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
1101
1102 * jit.h (struct jiter_objfile_data) <cached_code_address,
1103 jit_breakpoint>: Move to here from ...
1104 * jit.c (jit_program_space_data): ... here.
1105 (jiter_objfile_data::~jiter_objfile_data): Update.
1106 (jit_breakpoint_deleted): Update.
1107 (jit_breakpoint_re_set_internal): Update.
1108
8c1c720f
SM
11092020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
1110
1111 * jit.c (jiter_objfile_data::~jiter_objfile_data): Remove some
1112 checks.
1113 (jit_read_descriptor): Remove NULL check.
1114 (jit_event_handler): Add an assertion.
1115
0e74a041
SM
11162020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
1117
1118 * jit.h (struct jit_objfile_data): Split into...
1119 (struct jiter_objfile_data): ... this ...
1120 (struct jited_objfile_data): ... and this.
1121 * objfiles.h (struct objfile) <jit_data>: Remove.
1122 <jiter_data, jited_data>: New fields.
1123 * jit.c (jit_objfile_data::~jit_objfile_data): Rename to ...
1124 (jiter_objfile_data::~jiter_objfile_data): ... this.
1125 (get_jit_objfile_data): Rename to ...
1126 (get_jiter_objfile_data): ... this.
1127 (add_objfile_entry): Update.
1128 (jit_read_descriptor): Use get_jiter_objfile_data.
1129 (jit_find_objf_with_entry_addr): Use objfile's jited_data field.
1130 (jit_breakpoint_re_set_internal): Use get_jiter_objfile_data.
1131 (jit_inferior_exit_hook): Use objfile's jited_data field.
1132
238b5c9f
SM
11332020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
1134
1135 * jit.h: Forward-declare `struct minimal_symbol`.
1136 (struct jit_objfile_data): Migrate to here from jit.c; also add a
1137 constructor, destructor, and an objfile* field.
1138 * jit.c (jit_objfile_data): Remove.
1139 (struct jit_objfile_data): Migrate from here to jit.h.
1140 (jit_objfile_data::~jit_objfile_data): New destructor
1141 implementation with code moved from free_objfile_data.
1142 (free_objfile_data): Delete.
1143 (get_jit_objfile_data): Update to use the jit_data field of objfile.
1144 (jit_find_objf_with_entry_addr): Ditto.
1145 (jit_inferior_exit_hook): Ditto.
1146 (_initialize_jit): Remove the call to
1147 register_objfile_data_with_cleanup.
1148 * objfiles.h (struct objfile) <jit_data>: New field.
1149
fe053b9e
TBA
11502020-07-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1151
1152 * jit.h: Forward-declare `struct objfile`.
1153 (jit_event_handler): Add a second parameter, the JITer objfile.
1154 * jit.c (jit_read_descriptor): Change the signature to take the
1155 JITer objfile as an argument instead of the jit_program_space_data.
1156 (jit_inferior_init): Update the call to jit_read_descriptor.
1157 (jit_event_handler): Use the new JITer objfile argument when calling
1158 jit_read_descriptor.
1159 * breakpoint.c (handle_jit_event): Update the call to
1160 jit_event_handler to pass the JITer objfile.
1161
4cec0c66
JB
11622020-07-21 John Baldwin <jhb@FreeBSD.org>
1163
1164 * gdbarch.c: Regenerate.
1165 * gdbarch.h: Regenerate.
1166 * gdbarch.sh (handle_segmentation_fault): Remove method.
1167 * infrun.c (handle_segmentation_fault): Remove.
1168 (print_signal_received_reason): Remove call to
1169 handle_segmentation_fault.
1170
0e42f66a
JB
11712020-07-21 John Baldwin <jhb@FreeBSD.org>
1172
1173 * sparc64-linux-tdep.c (sparc64_linux_handle_segmentation_fault):
1174 Rename to sparc64_linux_report_signal_info and add siggnal
1175 argument.
1176 (sparc64_linux_init_abi): Use sparc64_linux_report_signal_info
1177 instead of sparc64_linux_handle_segmentation_fault.
1178
77bdfeb2
JB
11792020-07-21 John Baldwin <jhb@FreeBSD.org>
1180
1181 * amd64-linux-tdep.c (amd64_linux_init_abi_common): Use
1182 i386_linux_report_signal_info instead of
1183 i386_linux_handle_segmentation_fault.
1184 * i386-linux-tdep.c (i386_linux_handle_segmentation_fault): Rename
1185 to i386_linux_report_signal_info and add siggnal argument.
1186 (i386_linux_init_abi): Use i386_linux_report_signal_info instead
1187 of i386_linux_handle_segmentation_fault.
1188 * i386-linux-tdep.h (i386_linux_handle_segmentation_fault): Rename
1189 to i386_linux_report_signal_info and add siggnal argument.
1190
ad97bfc5
JB
11912020-07-21 John Baldwin <jhb@FreeBSD.org>
1192
1193 * corelow.c (core_target_open): Invoke gdbarch report_signal_info
1194 hook if present.
1195
272bb05c
JB
11962020-07-21 John Baldwin <jhb@FreeBSD.org>
1197
1198 * gdbarch.c: Regenerate.
1199 * gdbarch.h: Regenerate.
1200 * gdbarch.sh (report_signal_info): New method.
1201 * infrun.c (print_signal_received_reason): Invoke gdbarch
1202 report_signal_info hook if present.
1203
baf8791e
AB
12042020-07-21 Andrew Burgess <andrew.burgess@embecosm.com>
1205
1206 * python/py-registers.c : Add 'unordered_map' include.
1207 (gdbpy_new_reggroup): Renamed to...
1208 (gdbpy_get_reggroup): ...this. Update to only create register
1209 group descriptors when needed.
1210 (gdbpy_reggroup_iter_next): Update.
1211
f7306dac
AB
12122020-07-21 Andrew Burgess <andrew.burgess@embecosm.com>
1213
1214 * python/py-registers.c (gdbpy_register_object_data): New static
1215 global.
1216 (gdbpy_register_object_data_init): New function.
1217 (gdbpy_new_register_descriptor): Renamed to...
1218 (gdbpy_get_register_descriptor): ...this, and update to reuse
1219 existing register descriptors where possible.
1220 (gdbpy_register_descriptor_iter_next): Update.
1221 (gdbpy_initialize_registers): Register new gdbarch data.
1222
05c309a8
SM
12232020-07-21 Simon Marchi <simon.marchi@efficios.com>
1224
1225 * linux-nat.c (stopped_pids): Make static.
1226
d1fd641e
SM
12272020-07-21 Simon Marchi <simon.marchi@polymtl.ca>
1228
1229 PR ada/26235
1230 * gdbtypes.c (ada_discrete_type_low_bound,
1231 ada_discrete_type_high_bound): Handle undefined bounds.
1232
1de14d77
KR
12332020-07-21 Kamil Rytarowski <n54@gmx.com>
1234
1235 * nbsd-nat.h (nbsd_nat_target::supports_multi_process): New
1236 declaration.
1237 * nbsd-nat.c (nbsd_nat_target::supports_multi_process): New
1238 function.
1239
ed810cc7
JB
12402020-07-20 John Baldwin <jhb@FreeBSD.org>
1241
1242 * fbsd-tdep.c (fbsd_skip_solib_resolver): New function.
1243 (fbsd_init_abi): Install gdbarch "skip_solib_resolver" method.
1244 * fbsd-tdep.h (fbsd_skip_solib_resolver): New prototype.
1245 * mips-fbsd-tdep.c (mips_fbsd_skip_solib_resolver): New function.
1246 (mips_fbsd_init_abi): Install gdbarch "skip_solib_resolver"
1247 method.
1248
ae5369e7
LC
12492020-07-20 Ludovic Courtès <ludo@gnu.org>
1250
1251 * guile/scm-math.c (vlscm_integer_fits_p): Use 'uintmax_t'
1252 and 'intmax_t' instead of 'scm_t_uintmax' and 'scm_t_intmax',
1253 which are deprecated in Guile 3.0.
1254 * configure.ac (try_guile_versions): Add "guile-3.0".
1255 * configure (try_guile_versions): Regenerate.
1256 * NEWS: Update entry.
1257
68cf161c
LC
12582020-07-20 Ludovic Courtès <ludo@gnu.org>
1259 Doug Evans <dje@google.com>
1260
1261 PR gdb/21104
1262 * guile/scm-ports.c (USING_GUILE_BEFORE_2_2): New macro.
1263 (ioscm_memory_port)[read_buf_size, write_buf_size]: Wrap in #if
1264 USING_GUILE_BEFORE_2_2.
1265 (stdio_port_desc, memory_port_desc) [!USING_GUILE_BEFORE_2_2]:
1266 Change type to 'scm_t_port_type *'.
1267 (natural_buffer_size) [!USING_GUILE_BEFORE_2_2]: New variable.
1268 (ioscm_open_port) [USING_GUILE_BEFORE_2_2]: Add 'stream'
1269 parameter and honor it. Update callers.
1270 (ioscm_open_port) [!USING_GUILE_BEFORE_2_2]: New function.
1271 (ioscm_read_from_port, ioscm_write) [!USING_GUILE_BEFORE_2_2]: New
1272 functions.
1273 (ioscm_fill_input, ioscm_input_waiting, ioscm_flush): Wrap in #if
1274 USING_GUILE_BEFORE_2_2.
1275 (ioscm_init_gdb_stdio_port) [!USING_GUILE_BEFORE_2_2]: Use
1276 'ioscm_read_from_port'. Call 'scm_set_port_read_wait_fd'.
1277 (ioscm_init_stdio_buffers) [!USING_GUILE_BEFORE_2_2]: New function.
1278 (gdbscm_stdio_port_p) [!USING_GUILE_BEFORE_2_2]: Use 'SCM_PORTP'
1279 and 'SCM_PORT_TYPE'.
1280 (gdbscm_memory_port_end_input, gdbscm_memory_port_seek)
1281 (ioscm_reinit_memory_port): Wrap in #if USING_GUILE_BEFORE_2_2.
1282 (gdbscm_memory_port_read, gdbscm_memory_port_write)
1283 (gdbscm_memory_port_seek, gdbscm_memory_port_close)
1284 [!USING_GUILE_BEFORE_2_2]: New functions.
1285 (gdbscm_memory_port_print): Remove use of 'SCM_PTOB_NAME'.
1286 (ioscm_init_memory_port_type) [!USING_GUILE_BEFORE_2_2]: Use
1287 'gdbscm_memory_port_read'.
1288 Wrap 'scm_set_port_end_input', 'scm_set_port_flush', and
1289 'scm_set_port_free' calls in #if USING_GUILE_BEFORE_2_2.
1290 (gdbscm_get_natural_buffer_sizes) [!USING_GUILE_BEFORE_2_2]: New
1291 function.
1292 (ioscm_init_memory_port): Remove.
1293 (ioscm_init_memory_port_stream): New function
1294 (ioscm_init_memory_port_buffers) [USING_GUILE_BEFORE_2_2]: New
1295 function.
1296 (gdbscm_memory_port_read_buffer_size) [!USING_GUILE_BEFORE_2_2]:
1297 Return scm_from_uint (0).
1298 (gdbscm_set_memory_port_read_buffer_size_x)
1299 [!USING_GUILE_BEFORE_2_2]: Call 'scm_setvbuf'.
1300 (gdbscm_memory_port_write_buffer_size) [!USING_GUILE_BEFORE_2_2]:
1301 Return scm_from_uint (0).
1302 (gdbscm_set_memory_port_write_buffer_size_x)
1303 [!USING_GUILE_BEFORE_2_2]: Call 'scm_setvbuf'.
1304 * configure.ac (try_guile_versions): Add "guile-2.2".
1305 * configure: Regenerate.
1306 * NEWS: Add entry.
1307
aee91db3
TT
13082020-07-18 Tom Tromey <tom@tromey.com>
1309
1310 * linux-nat.c (linux_multi_process): Remove.
1311 (linux_nat_target::supports_multi_process): Return true.
1312
0e267416
AB
13132020-07-17 Andrew Burgess <andrew.burgess@embecosm.com>
1314
1315 * arch/riscv.c (riscv_tdesc_cache): Change map type.
1316 (riscv_lookup_target_description): Return pointer out of
1317 unique_ptr.
1318 * target-descriptions.c (allocate_target_description): Add
1319 comment.
1320 (target_desc_deleter::operator()): Likewise.
1321 * target-descriptions.h (struct target_desc_deleter): Moved to
1322 gdbsupport/tdesc.h.
1323 (target_desc_up): Likewise.
1324
f80c8ec4
TT
13252020-07-17 Tom Tromey <tromey@adacore.com>
1326
1327 * linux-nat.c (linux_nat_target::supports_non_stop)
1328 (linux_nat_target::always_non_stop_p): Use "true".
1329 (linux_nat_target::supports_disable_randomization): Use "true" and
1330 "false".
1331
d0ce17d8
CT
13322020-07-16 Caroline Tice <cmtice@google.com>
1333
1334 * dwarf2/read.c (RNGLIST_HEADER_SIZE32) New constant definition.
1335 (RNGLIST_HEADER_SIZE64): New constant definition.
1336 (struct dwop_section_names): Add rnglists_dwo.
1337 (dwop_section_names): Add .debug_rnglists.dwo, .zdebug_rnglists.dwo.
1338 (struct loclist_header): Rename to 'loclists_rnglists_header'.
1339 (struct dwo_sections): Add rnglists field.
1340 (read_attribut_reprocess): Add tag parameter.
1341 (dwarf2_ranges_read): Add tag parameter & remove forward function decl.
1342 (cu_debug_rnglists_section): New function (decl & definition).
1343 (dwarf2_locate_dwo_sections): Add code to read rnglists_dwo section.
1344 (dwarf2_rnglists_process): Add a dwarf_tag parameter, for the kind of
1345 die whose range is being checked; get rnglist section from
1346 cu_debug_rnglists_section, to get from either objfile or dwo file as
1347 appropriate. Add cases for DW_RLE_base_addressx,
1348 DW_RLE_startx_length, DW_RLE_startx_endx. Also, update to only add
1349 the base address to DW_RLE_offset_pairs (not to all ranges), moving
1350 test inside if-condition and updating complaint message.
1351 (dwarf2_ranges_process): Add dwarf tag parameter and pass it to
1352 dwarf2_rnglists_process.
1353 (dwarf2_ranges_read): Add dwarf tag parameter and pass it to
1354 dwarf2_ranges_process.
1355 (dwarf2_get_pc_bounds): Check for DW_FORM_rnglistx when setting
1356 need_ranges_base and update comment appropriately. Also pass die tag
1357 to dwarf2_ranges_read.
1358 (dwarf2_record_block_ranges): Check for DW_FORM_rnglistx when setting
1359 need_ranges_base and update comment appropriately. Also pass die tag
1360 to dwarf2_ranges_process.
1361 (read_full_die_1): Add code to read DW_AT_rnglists_base and assign to
1362 cu->ranges_base. Also pass die tag to read_attribute_reprocess.
1363 (partial_die_info::read): Check for DW_FORM_rnglistx when setting
1364 need_ranges_base and update comment appropriately. Also pass die tag
1365 to read_attribute_reprocess and dwarf2_ranges_read.
1366 (read_loclist_header): Rename function to read_loclists_rnglists_header,
1367 and update function comment appropriately.
1368 (read_loclist_index): Call read_loclists_rnglists_header instead of
1369 read_loclist_header.
1370 (read_rnglist_index): New function.
1371 (read_attribute_reprocess): Add tag parameter. Add code for
1372 DW_FORM_rnglistx, passing tag to read_rnglist_index.
1373 (read_attribute_value): Mark DW_FORM_rnglistx with need_reprocess.
1374
3dcc261c
AB
13752020-07-15 Andrew Burgess <andrew.burgess@embecosm.com>
1376
1377 * f-typeprint.c (f_type_print_base): Allow for dynamic types not
1378 being resolved.
1379
ccb9eba6
AB
13802020-07-14 Andrew Burgess <andrew.burgess@embecosm.com>
1381
1382 * arch-utils.c (show_architecture): Update formatting of messages.
1383
cf88be68
SM
13842020-07-12 Simon Marchi <simon.marchi@efficios.com>
1385
1386 * gdbtypes.h (struct type) <bounds>: Handle array and string
1387 types.
1388 * ada-lang.c (assign_aggregate): Use type::bounds on
1389 array/string type.
1390 * c-typeprint.c (c_type_print_varspec_suffix): Likewise.
1391 * c-varobj.c (c_number_of_children): Likewise.
1392 (c_describe_child): Likewise.
1393 * eval.c (evaluate_subexp_for_sizeof): Likewise.
1394 * f-typeprint.c (f_type_print_varspec_suffix): Likewise.
1395 (f_type_print_base): Likewise.
1396 * f-valprint.c (f77_array_offset_tbl): Likewise.
1397 (f77_get_upperbound): Likewise.
1398 (f77_print_array_1): Likewise.
1399 * guile/scm-type.c (gdbscm_type_range): Likewise.
1400 * m2-typeprint.c (m2_array): Likewise.
1401 (m2_is_long_set_of_type): Likewise.
1402 * m2-valprint.c (get_long_set_bounds): Likewise.
1403 * p-typeprint.c (pascal_type_print_varspec_prefix): Likewise.
1404 * python/py-type.c (typy_range): Likewise.
1405 * rust-lang.c (rust_internal_print_type): Likewise.
1406 * type-stack.c (type_stack::follow_types): Likewise.
1407 * valarith.c (value_subscripted_rvalue): Likewise.
1408 * valops.c (value_cast): Likewise.
1409
509971ae
SM
14102020-07-12 Simon Marchi <simon.marchi@efficios.com>
1411
1412 * gdbtypes.c (TYPE_ARRAY_BIT_STRIDE): Remove. Update all
1413 callers to use the equivalent accessor methods.
1414
107406b7
SM
14152020-07-12 Simon Marchi <simon.marchi@efficios.com>
1416
1417 * gdbtypes.h (struct range_bounds) <bit_stride>: New method.
1418 (struct type) <bit_stride>: New method.
1419 (TYPE_BIT_STRIDE): Remove.
1420 * gdbtypes.c (update_static_array_size): Use type::bit_stride.
1421
bb789949
SM
14222020-07-12 Simon Marchi <simon.marchi@efficios.com>
1423
1424 * gdbtypes.h (TYPE_ARRAY_LOWER_BOUND_VALUE,
1425 TYPE_ARRAY_UPPER_BOUND_VALUE): Remove. Update all
1426 callers to use the equivalent accessor methods instead.
1427
39498edb
SM
14282020-07-12 Simon Marchi <simon.marchi@efficios.com>
1429
1430 * gdbtypes.h (TYPE_ARRAY_UPPER_BOUND_IS_UNDEFINED,
1431 TYPE_ARRAY_LOWER_BOUND_IS_UNDEFINED): Remove. Update all
1432 callers to use the equivalent accessor methods instead.
1433
3b606f38
SM
14342020-07-12 Simon Marchi <simon.marchi@efficios.com>
1435
1436 * gdbtypes.h (TYPE_LOW_BOUND_KIND,
1437 TYPE_HIGH_BOUND_KIND): Remove. Update all callers
1438 to use dynamic_prop::kind.
1439
064d9cb9
SM
14402020-07-12 Simon Marchi <simon.marchi@efficios.com>
1441
1442 * gdbtypes.h (TYPE_LOW_BOUND_UNDEFINED,
1443 TYPE_HIGH_BOUND_UNDEFINED): Remove. Update all callers
1444 to get the bound property's kind and check against
1445 PROP_UNDEFINED.
1446
5537ddd0
SM
14472020-07-12 Simon Marchi <simon.marchi@efficios.com>
1448
1449 * gdbtypes.h (TYPE_LOW_BOUND, TYPE_HIGH_BOUND): Remove. Update
1450 all callers to use type::range_bounds followed by
1451 dynamic_prop::{low,high}.
1452
8c2e4e06
SM
14532020-07-12 Simon Marchi <simon.marchi@polymtl.ca>
1454
1455 * gdbtypes.h (struct dynamic_prop) <kind, set_undefined,
1456 const_val, set_const_val, baton, set_locexpr, set_loclist,
1457 set_addr_offset, variant_parts, set_variant_parts,
1458 original_type, set_original_type>: New methods.
1459 <kind>: Rename to...
1460 <m_kind>: ... this. Update all users to use the new methods
1461 instead.
1462 <data>: Rename to...
1463 <m_data>: ... this. Update all users to use the new methods
1464 instead.
1465
7c6f2712
SM
14662020-07-12 Simon Marchi <simon.marchi@efficios.com>
1467
1468 * gdbtypes.c (get_discrete_bounds): Return failure if
1469 the range type's bounds are not both defined and constant
1470 values.
1471 (get_array_bounds): Update comment. Remove undefined bound check.
1472
599088e3
SM
14732020-07-12 Simon Marchi <simon.marchi@polymtl.ca>
1474
1475 * gdbtypes.h (TYPE_RANGE_DATA): Remove. Update callers to use
1476 the type::bounds method directly.
1477
c4dfcb36
SM
14782020-07-12 Simon Marchi <simon.marchi@efficios.com>
1479
1480 * gdbtypes.h (struct type) <bounds, set_bounds>: New methods.
1481 (TYPE_RANGE_DATA): Use type::bounds. Change all uses that
1482 are used to set the range type's bounds to use set_bounds.
1483
0a278aa7
PW
14842020-07-11 Philippe Waroquiers <philippe.waroquiers@skynet.be>
1485
1486 * exec.c (_initialize_exec): Update exec-file-mismatch help.
1487
cce20f10
PA
14882020-07-10 Pedro Alves <pedro@palves.net>
1489
1490 * gdbthread.h (inferior_ref): Define.
1491 (scoped_restore_current_thread) <m_thread>: Now a thread_info_ref.
1492 (scoped_restore_current_thread) <m_inf>: Now an inferior_ref.
1493 * thread.c
1494 (scoped_restore_current_thread::restore):
1495 Adjust to gdb::ref_ptr.
1496 (scoped_restore_current_thread::~scoped_restore_current_thread):
1497 Remove manual decref handling.
1498 (scoped_restore_current_thread::scoped_restore_current_thread):
1499 Adjust to use
1500 inferior_ref::new_reference/thread_info_ref::new_reference.
1501 Incref the thread before calling get_frame_id instead of after.
1502 Let TARGET_CLOSE_ERROR propagate.
1503
6d7aa592
PA
15042020-07-10 Pedro Alves <pedro@palves.net>
1505
1506 * frame-tailcall.c (dwarf2_tailcall_sniffer_first): Only swallow
1507 NO_ENTRY_VALUE_ERROR / MEMORY_ERROR / OPTIMIZED_OUT_ERROR /
1508 NOT_AVAILABLE_ERROR.
1509 * value.c (value_optimized_out): Only swallow MEMORY_ERROR /
1510 OPTIMIZED_OUT_ERROR / NOT_AVAILABLE_ERROR.
1511
b3e3a4c1
SM
15122020-07-10 Simon Marchi <simon.marchi@polymtl.ca>
1513 Pedro Alves <pedro@palves.net>
1514
1515 PR gdb/26199
1516 * infrun.c (threads_are_resumed_pending_p): Delete.
1517 (do_target_wait): Remove threads_are_executing and
1518 threads_are_resumed_pending_p checks from the inferior_matches
1519 lambda. Update comments.
1520
d6cc5d98
PA
15212020-07-10 Pedro Alves <pedro@palves.net>
1522
1523 PR gdb/26199
1524 * infrun.c (handle_no_resumed): Transfer terminal to inferior with
1525 executing threads.
1526
7d3badc6
PA
15272020-07-10 Pedro Alves <pedro@palves.net>
1528
1529 PR gdb/26199
1530 * infrun.c (handle_no_resumed): Handle multiple targets.
1531
42bd97a6
PA
15322020-07-10 Pedro Alves <pedro@palves.net>
1533
1534 PR gdb/26199
1535 * infrun.c (prepare_to_wait): Check target_can_async_p instead of
1536 target_is_async_p.
1537
43667cc6
PA
15382020-07-10 Pedro Alves <pedro@palves.net>
1539
1540 PR gdb/26199
1541 * target.c (target_pass_ctrlc): Look at the inferior's non-exited
1542 threads, not all threads.
1543
96118d11
PA
15442020-07-10 Pedro Alves <pedro@palves.net>
1545
1546 PR gdb/26199
1547 * remote.c (remote_target::open_1): Pass remote target pointer as
1548 data to create_async_event_handler.
1549 (remote_async_inferior_event_handler): Mark async event handler
1550 before returning if the remote target still has either pending
1551 events or unacknowledged notifications.
1552
54904d81
JB
15532020-07-10 John Baldwin <jhb@FreeBSD.org>
1554
1555 * fbsd-nat.h (fbsd_nat_target::supports_multi_process): New
1556 declaration.
1557 * fbsd-nat.c (fbsd_nat_target::supports_multi_process): New
1558 function.
1559
f37e5866
JB
15602020-07-09 John Baldwin <jhb@FreeBSD.org>
1561
1562 * inf-ptrace.c (inf_ptrace_target::wait): Don't compare against
1563 inferior_ptid.
1564
fc238d4a
JB
15652020-07-09 John Baldwin <jhb@FreeBSD.org>
1566
1567 * fbsd-tdep.c (fbsd_print_auxv_entry): Handle AT_FREEBSD_ARGC,
1568 AT_FREEBSD_ARGV, AT_FREEBSD_ENVC, AT_FREEBSD_ENVV,
1569 AT_FREEBSD_PS_STRINGS.
1570
6e2469ff
HD
15712020-07-08 Hannes Domani <ssbssa@yahoo.de>
1572
1573 * auto-load.c (auto_load_objfile_script_1): Convert drive part
1574 of debugfile path on Windows.
1575
d1076c41
JB
15762020-07-08 John Baldwin <jhb@FreeBSD.org>
1577
1578 * fbsd-nat.c (fbsd_nat_target::find_memory_regions): Rename 'obfd'
1579 argument to 'data'.
1580
15f3b077
TT
15812020-07-08 Tom Tromey <tromey@adacore.com>
1582
1583 * ada-lang.c (ada_exception_message_1): Use read_memory.
1584
9fc501fd
AB
15852020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
1586
1587 PR python/22748
1588 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first): Remove
1589 special handling for inline frames.
1590 * findvar.c (value_of_register_lazy): Skip inline frames when
1591 creating lazy register values.
1592 * frame.c (frame_id_computed_p): Delete definition.
1593 * frame.h (frame_id_computed_p): Delete declaration.
1594
64cb3757
AB
15952020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
1596
1597 * NEWS: Mention additions to Python API.
1598 * python/py-arch.c (archpy_register_groups): New function.
1599 (arch_object_methods): Add 'register_groups' method.
1600 * python/py-registers.c (reggroup_iterator_object): New struct.
1601 (reggroup_object): New struct.
1602 (gdbpy_new_reggroup): New function.
1603 (gdbpy_reggroup_to_string): New function.
1604 (gdbpy_reggroup_name): New function.
1605 (gdbpy_reggroup_iter): New function.
1606 (gdbpy_reggroup_iter_next): New function.
1607 (gdbpy_new_reggroup_iterator): New function
1608 (gdbpy_initialize_registers): Register new types.
1609 (reggroup_iterator_object_type): Define new Python type.
1610 (gdbpy_reggroup_getset): New static global.
1611 (reggroup_object_type): Define new Python type.
1612 * python/python-internal.h
1613
0f767f94
AB
16142020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
1615
1616 * Makefile.in (SUBDIR_PYTHON_SRCS): Add py-registers.c
1617 * python/py-arch.c (archpy_registers): New function.
1618 (arch_object_methods): Add 'registers' method.
1619 * python/py-registers.c: New file.
1620 * python/python-internal.h
1621 (gdbpy_new_register_descriptor_iterator): Declare.
1622 (gdbpy_initialize_registers): Declare.
1623 * python/python.c (do_start_initialization): Call
1624 gdbpy_initialize_registers.
1625 * NEWS: Mention additions to the Python API.
1626
87dbc774
AB
16272020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
1628
1629 * NEWS: Mention new Python API method.
1630 * python/py-unwind.c (pending_framepy_architecture): New function.
1631 (pending_frame_object_methods): Add architecture method.
1632
3bc98c0c
AB
16332020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
1634
1635 * gdbarch.c: Regenerate.
1636 * gdbarch.h: Regenerate.
1637 * gdbarch.sh (deprecated_set_gdbarch_data): Delete.
1638 (gdbarch_data): Use internal_error for the case where
1639 deprecated_set_gdbarch_data was originally needed.
1640 * ia64-libunwind-tdep.c (libunwind_descr_init): Update parameters,
1641 and use passed in obstack.
1642 (libunwind_frame_set_descr): Should no longer get back NULL from
1643 gdbarch_data.
1644 (_initialize_libunwind_frame): Register as a pre-init gdbarch data
1645 type.
1646 * user-regs.c (user_regs_init): Update parameters, and use passed
1647 in obstack.
1648 (user_reg_add): Should no longer get back NULL from gdbarch_data.
1649 (_initialize_user_regs): Register as a pre-init gdbarch data type.
1650
d8cc8af6
TV
16512020-07-06 Tom de Vries <tdevries@suse.de>
1652
1653 * buildsym.c (buildsym_compunit::end_symtab_with_blockvector): Handle
1654 End-Of-Sequence in lte_is_less_than.
1655 * symtab.c (find_pc_sect_line): Revert change from commit 3d92a3e313
1656 "gdb: Don't reorder line table entries too much when sorting".
1657
947f7597
TV
16582020-07-06 Tom de Vries <tdevries@suse.de>
1659
1660 PR tui/26205
1661 * tui/tui-win.c (tui_partial_win_by_name): Don't test for NULL name.
1662
1e7c1b22
TV
16632020-07-05 Tom de Vries <tdevries@suse.de>
1664
1665 PR build/26187
1666 * inferior.h (struct infcall_suspend_state_deleter): If available, use
1667 std::uncaught_exceptions instead of deprecated
1668 std::uncaught_exception.
1669
a36158ec
SM
16702020-07-02 Simon Marchi <simon.marchi@polymtl.ca>
1671
1672 * macroexp.h (macro_stringify): Return
1673 gdb::unique_xmalloc_ptr<char>.
1674 * macroexp.c (macro_stringify): Likewise.
1675 * macrotab.c (fixup_definition): Update.
1676
14d960c8
SM
16772020-07-02 Simon Marchi <simon.marchi@polymtl.ca>
1678
1679 * c-exp.y (scan_macro_expansion): Don't free `expansion`.
1680 (lex_one_token): Update.
1681 * macroexp.c (struct macro_buffer) <release>: Return
1682 gdb::unique_xmalloc_ptr<char>.
1683 (macro_stringify): Update.
1684 (macro_expand): Update.
1685 (macro_expand_next): Return gdb::unique_xmalloc_ptr<char>.
1686 * macroexp.h (macro_expand_next): Likewise.
1687
211d5b1c
SM
16882020-07-02 Simon Marchi <simon.marchi@efficios.com>
1689
1690 * macroexp.h (macro_lookup_ftype): Remove.
1691 (macro_expand, macro_expand_once, macro_expand_next): Remove
1692 lookup function parameters, add scope parameter.
1693 * macroexp.c (scan, substitute_args, expand, maybe_expand,
1694 macro_expand, macro_expand_once, macro_expand_next): Likewise.
1695 * macroscope.h (standard_macro_lookup): Change parameter type
1696 to macro_scope.
1697 * macroscope.c (standard_macro_lookup): Likewise.
1698 * c-exp.y (lex_one_token): Update.
1699 * macrocmd.c (macro_expand_command): Likewise.
1700 (macro_expand_once_command): Likewise.
1701
b1a35af2
SM
17022020-07-02 Simon Marchi <simon.marchi@polymtl.ca>
1703
1704 * inf-loop.c (inferior_event_handler): Remove client_data param.
1705 * inf-loop.h (inferior_event_handler): Likewise.
1706 * infcmd.c (step_1): Adjust.
1707 * infrun.c (proceed): Adjust.
1708 (fetch_inferior_event): Remove client_data param.
1709 (infrun_async_inferior_event_handler): Adjust.
1710 * infrun.h (fetch_inferior_event): Remove `void *` param.
1711 * linux-nat.c (handle_target_event): Adjust.
1712 * record-btrace.c (record_btrace_handle_async_inferior_event):
1713 Adjust.
1714 * record-full.c (record_full_async_inferior_event_handler):
1715 Adjust.
1716 * remote.c (remote_async_inferior_event_handler): Adjust.
1717
1cdf9e33
TT
17182020-07-01 Tom Tromey <tom@tromey.com>
1719
1720 * tui/tui-data.h (struct tui_win_info) <name>: Now pure virtual.
1721 * tui/tui-stack.h (struct tui_locator_window) <name>: New method.
1722
32c1e210
TT
17232020-07-01 Tom Tromey <tom@tromey.com>
1724
1725 * tui/tui-wingeneral.c (tui_win_info::refresh_window): Move from
1726 tui_gen_win_info.
1727 (tui_win_info::make_window): Merge with
1728 tui_gen_win_info::make_window.
1729 (tui_win_info::make_visible): Move from tui_gen_win_info.
1730 * tui/tui-win.c (tui_win_info::max_width): Move from
1731 tui_gen_win_info.
1732 * tui/tui-layout.h (class tui_layout_window) <m_window>: Change
1733 type.
1734 <window_factory>: Likewise.
1735 * tui/tui-layout.c (tui_win_info::resize): Move from
1736 tui_gen_win_info.
1737 (make_standard_window): Change return type.
1738 (get_locator_window, tui_get_window_by_name): Likewise.
1739 (tui_layout_window::apply): Remove a cast.
1740 * tui/tui-data.h (MIN_WIN_HEIGHT): Move earlier.
1741 (struct tui_win_info): Merge with tui_gen_win_info.
1742 (struct tui_gen_win_info): Remove.
1743
a30cb6da
TT
17442020-07-01 Tom Tromey <tom@tromey.com>
1745
1746 * tui/tui-stack.h (struct tui_locator_window): Derive from
1747 tui_win_info.
1748 <do_scroll_horizontal, do_scroll_vertical>: New methods.
1749 <can_box>: New method.
1750
1eb2161f
TT
17512020-07-01 Tom Tromey <tom@tromey.com>
1752
1753 * tui/tui-stack.h (struct tui_locator_window): Remove body.
1754
7134f2eb
TT
17552020-07-01 Tom Tromey <tom@tromey.com>
1756
1757 * tui/tui-regs.c (tui_data_window::display_registers_from)
1758 (tui_data_window::display_registers_from)
1759 (tui_data_window::first_data_item_displayed)
1760 (tui_data_window::delete_data_content_windows): Update.
1761 (tui_data_window::refresh_window, tui_data_window::no_refresh):
1762 Remove.
1763 (tui_data_window::check_register_values): Update.
1764 (tui_data_item_window::rerender): Add parameters. Update.
1765 (tui_data_item_window::refresh_window): Remove.
1766 * tui/tui-data.h (struct tui_gen_win_info) <no_refresh>: No longer
1767 virtual.
1768 * tui/tui-regs.h (struct tui_data_item_window): Don't derive from
1769 tui_gen_win_info.
1770 <refresh_window, max_height, min_height>: Remove.
1771 <rerender>: Add parameters.
1772 <x, y, visible>: New members.
1773 (struct tui_data_window) <refresh_window, no_refresh>: Remove.
1774 <m_item_width>: New member.
1775
22b7b041
TT
17762020-07-01 Tom Tromey <tom@tromey.com>
1777
1778 * tui/tui-regs.c (tui_data_window::show_register_group)
1779 (tui_data_window::check_register_values): Update.
1780 * tui/tui-regs.h (struct tui_data_item_window) <regno>: Rename
1781 from item_no.
1782
c9753adb
TT
17832020-07-01 Tom Tromey <tom@tromey.com>
1784
1785 * tui/tui-regs.c (tui_data_window::show_register_group): Remove
1786 useless "if".
1787
9ab26b4a
TT
17882020-07-01 Tom Tromey <tom@tromey.com>
1789
1790 * tui/tui-regs.c (tui_data_window::show_register_group): Update.
1791 * tui/tui-regs.h (struct tui_data_item_window) <name>: Remove.
1792
e555083f
TT
17932020-07-01 Tom Tromey <tom@tromey.com>
1794
1795 * tui/tui-stack.c (SINGLE_KEY): Move from tui-data.h
1796 * tui/tui-winsource.h (enum tui_line_or_address_kind)
1797 (struct tui_line_or_address): Move from tui-data.h.
1798 * tui/tui-win.c (DEFAULT_TAB_LEN): Move from tui-data.h.
1799 * tui/tui-data.h (DEFAULT_TAB_LEN): Move to tui-win.c.
1800 (tui_cmd_window, tui_source_window_base, tui_source_window)
1801 (tui_disasm_window): Don't declare.
1802 (enum tui_line_or_address_kind, struct tui_line_or_address): Move
1803 to tui-winsource.h.
1804 (SINGLE_KEY): Move to tui-stack.c.
1805
7a02bab7
TT
18062020-07-01 Tom Tromey <tom@tromey.com>
1807
1808 * tui/tui-regs.h (struct tui_data_item_window) <content>: Now a
1809 std::string.
1810 * tui/tui-regs.c (class tab_expansion_file): New.
1811 (tab_expansion_file::write): New method.
1812 (tui_register_format): Change return type. Use
1813 tab_expansion_file.
1814 (tui_get_register, tui_data_window::display_registers_from)
1815 (tui_data_item_window::rerender): Update.
1816 * tui/tui-io.h (tui_expand_tabs): Don't declare.
1817 * tui/tui-io.c (tui_expand_tabs): Remove.
1818
ea68593b
TT
18192020-07-01 Tom Tromey <tom@tromey.com>
1820
1821 * tui/tui-regs.c (tui_reggroup_completer): Use complete_on_enum.
1822
a8caed5d
FS
18232020-07-01 Fangrui Song <maskray@google.com>
1824
1825 * dwarf2/read.c (lnp_state_machine::check_line_address): Test -1.
1826
9cdf9820
AKS
18272020-07-01 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
1828
1829 * dwarf2/read.c (set_die_type): Removed conditions to restrict
1830 forms for DW_AT_associated and DW_AT_allocated attributes,
1831 which is already checked in function attr_to_dynamic_prop.
1832
a1520ad8
TT
18332020-06-30 Tom Tromey <tromey@adacore.com>
1834
1835 * dwarf2/read.c (quirk_rust_enum): Correctly call
1836 alloc_rust_variant for default-less enum.
1837
5ac58899
TT
18382020-06-30 Tom Tromey <tromey@adacore.com>
1839
1840 PR build/26183:
1841 * ada-lang.c (ada_lookup_name_info::ada_lookup_name_info): Use
1842 gdb::to_string.
1843
19b187a9
SM
18442020-06-29 Simon Marchi <simon.marchi@efficios.com>
1845
1846 * gdbarch.sh (displaced_step_copy_insn): Update doc.
1847 * gdbarch.h: Re-generate.
1848
cd4c4c07
TT
18492020-06-28 Tom Tromey <tom@tromey.com>
1850
1851 * command.h (cmd_types): Remove.
1852 (cmd_type): Don't declare.
1853 * cli/cli-decode.h (enum cmd_types): Uncomment. No longer a
1854 typedef.
1855 * cli/cli-cmds.c (setting_cmd): Use cmd->type directly.
1856 * cli/cli-decode.c (cmd_type): Remove.
1857
05779d57
PA
18582020-06-27 Pedro Alves <palves@redhat.com>
1859
1860 * fork-child.c (prefork_hook): Adjust.
1861 * infcmd.c (set_inferior_io_terminal, get_inferior_io_terminal):
1862 Delete.
1863 (set_inferior_tty_command, show_inferior_tty_command): Adjust.
1864 * inferior.c (inferior::set_tty, inferior::tty): New methods.
1865 * inferior.h (set_inferior_io_terminal, get_inferior_io_terminal):
1866 Remove declarations.
1867 (struct inferior) <set_tty, tty>: New methods.
1868 (struct inferior) <terminal>: Rename to ...
1869 (struct inferior) <m_terminal>: ... this and make private.
1870 * main.c (captured_main_1): Adjust.
1871 * mi/mi-cmd-env.c (mi_cmd_inferior_tty_set): Adjust.
1872 (mi_cmd_inferior_tty_show): Adjust.
1873 * nto-procfs.c (nto_procfs_target::create_inferior): Adjust.
1874 * windows-nat.c (windows_nat_target::create_inferior): Adjust.
1875
1776e3e5
NA
18762020-06-26 Nick Alcock <nick.alcock@oracle.com>
1877
1878 * configure.ac: Add --enable-libctf: handle --disable-static
1879 properly.
1880 * acinclude.m4: sinclude ../config/enable.m4.
1881 * Makefile.in (aclocal_m4_deps): Adjust accordingly.
1882 (LIBCTF): Substitute in.
1883 (CTF_DEPS): New, likewise.
1884 (CLIBS): libctf needs symbols from libbfd: move earlier.
1885 (CDEPS): Use CTF_DEPS, not LIBCTF, now LIBCTF can include rpath
1886 flags.
1887 * ctfread.c: Surround in ENABLE_LIBCTF.
1888 (elfctf_build_psymtabs) [!ENABLE_LIBCTF]: New stub.
1889 * configure: Regenerate.
1890 * config.in: Likewise.
1891
58373b80
SM
18922020-06-25 Simon Marchi <simon.marchi@efficios.com>
1893
1894 * infcmd.c (set_inferior_io_terminal): Use make_unique_xstrdup.
1895
277474ee
SM
18962020-06-25 Simon Marchi <simon.marchi@efficios.com>
1897
1898 * inferior.h (struct inferior) <terminal>: Change type to
1899 gdb::unique_xmalloc_ptr<char>.
1900 * inferior.c (inferior::~inferior): Don't free inf->terminal.
1901 * infcmd.c (set_inferior_io_terminal): Don't free terminal
1902 field, adjust to unique pointer.
1903 (get_inferior_io_terminal): Adjust to unique pointer.
1904
6d74da72
AB
19052020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
1906
1907 * riscv-tdep.c (riscv_print_registers_info): Loop over all
1908 registers, not just the known core set of registers.
1909
2e52d038
AB
19102020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
1911
1912 * riscv-tdep.c (riscv_register_name): Return NULL for duplicate
1913 fflags, frm, and fcsr registers.
1914 (riscv_register_reggroup_p): Remove unknown CSRs from save and
1915 restore groups.
1916 (riscv_tdesc_unknown_reg): New function.
1917 (riscv_gdbarch_init): Pass riscv_tdesc_unknown_reg to
1918 tdesc_use_registers.
1919 * riscv-tdep.h (struct gdbarch_tdep): Add
1920 unknown_csrs_first_regnum, unknown_csrs_count,
1921 duplicate_fflags_regnum, duplicate_frm_regnum, and
1922 duplicate_fcsr_regnum fields.
1923
be64fd07
AB
19242020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
1925
1926 * target-descriptions.c (tdesc_use_registers): Add new parameter a
1927 callback, use the callback (when not null) to help number unknown
1928 registers.
1929 * target-descriptions.h (tdesc_unknown_register_ftype): New typedef.
1930 (tdesc_use_registers): Add extra parameter to declaration.
1931
3b9fce96
AB
19322020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
1933
1934 * riscv-tdep.c (value_of_riscv_user_reg): Moved to here from later
1935 in the file.
1936 (class riscv_pending_register_alias): Likewise.
1937 (riscv_register_feature::register_info): Change 'required_p' field
1938 to 'required', and change its type. Add 'check' member function.
1939 (riscv_register_feature::register_info::check): Define new member
1940 function.
1941 (riscv_xreg_feature): Change initialisation of 'required' field.
1942 (riscv_freg_feature): Likewise.
1943 (riscv_virtual_feature): Likewise.
1944 (riscv_csr_feature): Likewise.
1945 (riscv_check_tdesc_feature): Take extra parameter, the csr
1946 tdesc_feature, rewrite the function to use the new
1947 riscv_register_feature::register_info::check function.
1948 (riscv_gdbarch_init): Pass the csr tdesc_feature where needed.
1949
865bad26
AB
19502020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
1951
1952 * features/Makefile: Remove all references to the deleted files
1953 below.
1954 * features/riscv/32bit-csr.c: Deleted.
1955 * features/riscv/32bit-csr.xml: Deleted.
1956 * features/riscv/64bit-csr.c: Deleted.
1957 * features/riscv/64bit-csr.xml: Deleted.
1958 * features/riscv/rebuild-csr-xml.sh: Deleted.
1959
ed69cbc8
AB
19602020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
1961
1962 * riscv-tdep.c (struct riscv_register_feature::register_info): Fix
1963 whitespace error for declaration of names member variable.
1964 (struct riscv_register_feature): Add new prefer_first_name member
1965 variable, and fix whitespace error in declaration of registers.
1966 (riscv_xreg_feature): Initialize prefer_first_name field.
1967 (riscv_freg_feature): Likewise.
1968 (riscv_virtual_feature): Likewise.
1969 (riscv_csr_feature): Likewise.
1970 (riscv_register_name): Expand on comments. Remove register name
1971 modifications for CSR and virtual registers.
1972
4445e8f5
AB
19732020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
1974
1975 * riscv-tdep.c (struct riscv_register_feature): Fix whitespace
1976 errors.
1977
767a879e
AB
19782020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
1979
1980 * riscv-tdep.c (riscv_create_csr_aliases): Handle csr aliases from
1981 riscv-opc.h.
1982 (class riscv_pending_register_alias): New class.
1983 (riscv_check_tdesc_feature): Take vector of pending aliases and
1984 populate it as appropriate.
1985 (riscv_setup_register_aliases): Delete.
1986 (riscv_gdbarch_init): Create vector of pending aliases and pass it
1987 to riscv_check_tdesc_feature in all cases. Use the vector to
1988 create the register aliases.
1989
bb6e55f3
RO
19902020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1991
1992 * sol2-tdep.c (sol2_static_transform_name): Remove.
1993 (sol2_init_abi): Don't register it.
1994 * gdbarch.sh (static_transform_name): Remove.
1995 * gdbarch.c, gdbarch.h: Regenerate.
1996
1997 * dbxread.c (read_dbx_symtab) <'S'>: Remove call to
1998 gdbarch_static_transform_name.
1999 * mdebugread.c (parse_partial_symbols) <'S'>: Likewise.
2000 * stabsread.c (define_symbol) <'X'>: Remove.
2001 (define_symbol) <'S'>: Remove gdbarch_static_transform_name
2002 handling.
2003 <'V'>: Likewise.
2004 * xcoffread.c (scan_xcoff_symtab): Remove gdbarch.
2005 <'S'>: Remove call to gdbarch_static_transform_name.
2006
c6d36836
RO
20072020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2008
2009 * procfs.c (procfs_pre_trace): New function.
2010 (procfs_target::create_inferior): Pass it to fork_inferior.
2011
a7e6196b
RO
20122020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2013
2014 * configure.tgt <sparc-*-linux*> (gdb_target_obs): Remove
2015 sparc-sol2-tdep.o, sol2-tdep.o, sparc64-sol2-tdep.o.
2016 <sparc64-*-linux*> (gdb_target_obs): Remove sparc64-sol2-tdep.o,
2017 sol2-tdep.o, sparc-sol2-tdep.o.
2018 * sparc-sol2-tdep.c (sparc32_sol2_init_abi): Make static.
2019 * sparc-tdep.h (sparc32_sol2_init_abi): Remove.
2020 * sparc64-sol2-tdep.c (sparc64_sol2_init_abi): Make static.
2021 * sparc64-tdep.h (sparc64_sol2_init_abi): Remove.
2022
d412e696
RO
20232020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2024
2025 * amd64-sol2-tdep.c (amd64_sol2_sigtramp_p): Remove.
2026 (amd64_sol2_init_abi): Use sol2_sigtramp_p.
2027 Call sol2_init_abi.
2028 Remove calls to set_gdbarch_skip_solib_resolver,
2029 set_gdbarch_core_pid_to_str.
2030 * i386-sol2-tdep.c (i386_sol2_sigtramp_p): Remove.
2031 (i386_sol2_static_transform_name): Remove.
2032 (i386_sol2_init_abi): Call sol2_init_abi.
2033 Remove calls to set_gdbarch_sofun_address_maybe_missing,
2034 set_gdbarch_static_transform_name,
2035 set_gdbarch_skip_solib_resolver, set_gdbarch_core_pid_to_str.
2036 Use sol2_sigtramp_p.
2037 * sol2-tdep.c (sol2_pc_in_sigtramp): New function.
2038 (sol2_sigtramp_p): New function.
2039 (sol2_static_transform_name): New function.
2040 (sol2_skip_solib_resolver, sol2_core_pid_to_str): Make static.
2041 (sol2_init_abi): New function.
2042 * sol2-tdep.h (sol2_sigtramp_p, sol2_init_abi): Declare.
2043 (sol2_skip_solib_resolver, sol2_core_pid_to_str): Remove.
2044 * sparc-sol2-tdep.c (sparc_sol2_pc_in_sigtramp): Remove.
2045 (sparc32_sol2_sigtramp_frame_sniffer): Just call sol2_sigtramp_p.
2046 (sparc_sol2_static_transform_name): Remove.
2047 (sparc32_sol2_init_abi): Call sol2_init_abi.
2048 Remove calls to set_gdbarch_sofun_address_maybe_missing,
2049 set_gdbarch_static_transform_name,
2050 set_gdbarch_skip_solib_resolver,
2051 set_gdbarch_core_pid_to_str.
2052 * sparc-tdep.h (sparc_sol2_pc_in_sigtramp)
2053 (sparc_sol2_static_transform_name): Remove
2054 * sparc64-sol2-tdep.c (sparc64_sol2_sigtramp_frame_sniffer): Just
2055 call sol2_sigtramp_p.
2056 (sparc64_sol2_init_abi): Call sol2_init_abi.
2057 Remove calls to set_gdbarch_sofun_address_maybe_missing,
2058 set_gdbarch_static_transform_name,
2059 set_gdbarch_skip_solib_resolver, set_gdbarch_core_pid_to_str.
2060
a8654e7d
PW
20612020-06-24 Philippe Waroquiers <philippe.waroquiers@skynet.be>
2062
2063 * symfile-add-flags.h: New flag SYMFILE_ALWAYS_CONFIRM.
2064 * exec.c (validate_exec_file): If from_tty, set both
2065 SYMFILE_VERBOSE (== from_tty) and SYMFILE_ALWAYS_CONFIRM.
2066 * symfile.c (symbol_file_add_with_addrs): if always_confirm
2067 and from_tty, unconditionally ask a confirmation.
2068
caa7fd04
AB
20692020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
2070
2071 * target-descriptions.c (tdesc_architecture_name): Protect against
2072 NULL pointer dereference.
2073 (maint_print_xml_tdesc_cmd): New function.
2074 (_initialize_target_descriptions): Register new 'maint print
2075 xml-tdesc' command and give it the filename completer.
2076 * NEWS: Mention new 'maint print xml-tdesc' command.
2077
fbf42f4e
AB
20782020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
2079
2080 * target-descriptions.c (class tdesc_compatible_info): New class.
2081 (struct target_desc): Change type of compatible vector.
2082 (tdesc_compatible_p): Update for change in type of
2083 target_desc::compatible.
2084 (tdesc_compatible_info_list): New function.
2085 (tdesc_compatible_info_arch_name): New function.
2086 (tdesc_add_compatible): Update for change in type of
2087 target_desc::compatible.
2088 (print_c_tdesc::visit_pre): Likewise.
2089
20821f4e
AB
20902020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
2091
2092 * target-descriptions.c (print_c_tdesc::print_c_tdesc): Change
2093 whitespace to underscore.
2094 (maint_print_c_tdesc_cmd): Use fake filename for target
2095 descriptions that came from the target.
2096 (_initialize_target_descriptions): Add filename command completion
2097 for 'maint print c-tdesc'.
2098
1fb5ee62
SM
20992020-06-23 Simon Marchi <simon.marchi@efficios.com>
2100
2101 * dwarf2/loc.c (decode_debug_loclists_addresses): Add empty
2102 lines.
2103
fc3ecb3e
SM
21042020-06-23 Simon Marchi <simon.marchi@efficios.com>
2105
2106 * dwarf2/loc.c (decode_debug_loc_dwo_addresses): Add empty
2107 lines.
2108 (dwarf2_find_location_expression): Likewise.
2109 (call_site_parameter_matches): Likewise.
2110 (dwarf2_compile_expr_to_ax): Likewise.
2111 (disassemble_dwarf_expression): Likewise.
2112 (loclist_describe_location): Likewise.
2113
236ef034
PA
21142020-06-23 Pedro Alves <palves@redhat.com>
2115
2116 * gdbarch-selftests.c: Don't include inferior.h, gdbthread.h or
2117 progspace-and-thread.h. Include scoped-mock-context.h instead.
2118 (register_to_value_test): Use scoped_mock_context.
2119 * regcache.c: Include "scoped-mock-context.h".
2120 (cooked_read_test): Don't error out if a target is already pushed.
2121 Use scoped_mock_context. Adjust.
2122 * scoped-mock-context.h: New file.
2123
39e7ecca
AB
21242020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
2125
2126 * ada-lang.c (ada_language_data): Delete la_is_string_type_p
2127 initializer.
2128 (ada_language::is_string_type_p): New member function.
2129 * c-lang.c (c_language_data): Delete la_is_string_type_p
2130 initializer.
2131 (cplus_language_data): Likewise.
2132 (asm_language_data): Likewise.
2133 (minimal_language_data): Likewise.
2134 * d-lang.c (d_language_data): Likewise.
2135 * f-lang.c (f_is_string_type_p): Delete function, implementation
2136 moved to f_language::is_string_type_p.
2137 (f_language_data): Delete la_is_string_type_p initializer.
2138 (f_language::is_string_type_p): New member function,
2139 implementation from f_is_string_type_p.
2140 * go-lang.c (go_is_string_type_p): Delete function, implementation
2141 moved to go_language::is_string_type_p.
2142 (go_language_data): Delete la_is_string_type_p initializer.
2143 (go_language::is_string_type_p): New member function,
2144 implementation from go_is_string_type_p.
2145 * language.c (language_defn::is_string_type_p): Define new member
2146 function.
2147 (default_is_string_type_p): Make static, add comment copied from
2148 header file.
2149 (unknown_language_data): Delete la_is_string_type_p initializer.
2150 (unknown_language::is_string_type_p): New member function.
2151 (auto_language_data): Delete la_is_string_type_p initializer.
2152 (auto_language::is_string_type_p): New member function.
2153 * language.h (language_data): Delete la_is_string_type_p field.
2154 (language_defn::is_string_type_p): Declare new function.
2155 (default_is_string_type_p): Delete desclaration, move comment to
2156 definition.
2157 * m2-lang.c (m2_is_string_type_p): Delete function, implementation
2158 moved to m2_language::is_string_type_p.
2159 (m2_language_data): Delete la_is_string_type_p initializer.
2160 (m2_language::is_string_type_p): New member function,
2161 implementation from m2_is_string_type_p.
2162 * objc-lang.c (objc_language_data): Delete la_is_string_type_p
2163 initializer.
2164 * opencl-lang.c (opencl_language_data): Likewise.
2165 * p-lang.c (pascal_is_string_type_p): Delete function,
2166 implementation moved to pascal_language::is_string_type_p.
2167 (pascal_language_data): Delete la_is_string_type_p initializer.
2168 (pascal_language::is_string_type_p): New member function,
2169 implementation from pascal_is_string_type_p.
2170 * rust-lang.c (rust_is_string_type_p): Delete function,
2171 implementation moved to rust_language::is_string_type_p.
2172 (rust_language_data): Delete la_is_string_type_p initializer.
2173 (rust_language::is_string_type_p): New member function,
2174 implementation from rust_is_string_type_p.
2175 * valprint.c (val_print_scalar_or_string_type_p): Update call to
2176 is_string_type_p.
2177
4ffc13fb
AB
21782020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
2179
2180 * ada-lang.c (ada_language_data): Delete la_print_typedef
2181 initializer.
2182 (ada_language::print_typedef): New member function.
2183 * c-lang.c (c_language_data): Delete la_print_typedef initializer.
2184 (cplus_language_data): Likewise.
2185 (asm_language_data): Likewise.
2186 (minimal_language_data): Likewise.
2187 * d-lang.c (d_language_data): Likewise.
2188 * f-lang.c (f_language_data): Likewise.
2189 (f_language::print_typedef): New member function.
2190 * go-lang.c (go_language_data): Delete la_print_typedef
2191 initializer.
2192 * language.c (language_defn::print_typedef): Define member
2193 function.
2194 (unknown_language_data): Delete la_print_typedef initializer.
2195 (unknown_language::print_typedef): New member function.
2196 (auto_language_data): Delete la_print_typedef initializer.
2197 (auto_language::print_typedef): New member function.
2198 * language.h (language_data): Delete la_print_typedef field.
2199 (language_defn::print_typedef): Declare new member function.
2200 (LA_PRINT_TYPEDEF): Update call to print_typedef.
2201 (default_print_typedef): Delete declaration.
2202 * m2-lang.c (m2_language_data): Delete la_print_typedef
2203 initializer.
2204 (m2_language::print_typedef): New member function.
2205 * objc-lang.c (objc_language_data): Delete la_print_typedef
2206 initializer.
2207 * opencl-lang.c (opencl_language_data): Likewise.
2208 * p-lang.c (pascal_language_data): Likewise.
2209 (pascal_language::print_typedef): New member function.
2210 * rust-lang.c (rust_print_typedef): Delete function,
2211 implementation moved to rust_language::print_typedef.
2212 (rust_language): Delete la_print_typedef initializer.
2213 (rust_language::print_typedef): New member function,
2214 implementation from rust_print_typedef.
2215 * typeprint.c (default_print_typedef): Delete.
2216
d711ee67
AB
22172020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
2218
2219 * ada-lang.c (ada_language_data): Delete la_printstr initializer.
2220 (ada_language::printstr): New member function.
2221 * c-lang.c (c_language_data): Delete la_printstr initializer.
2222 (cplus_language_data): Likewise.
2223 (asm_language_data): Likewise.
2224 (minimal_language_data): Likewise.
2225 * d-lang.c (d_language_data): Likewise.
2226 * f-lang.c (f_printstr): Rename to f_language::printstr.
2227 (f_language_data): Delete la_printstr initializer.
2228 (f_language::printstr): New member function, implementation from
2229 f_printstr.
2230 * go-lang.c (go_language_data): Delete la_printstr initializer.
2231 * language.c (language_defn::printstr): Define new member
2232 function.
2233 (unk_lang_printstr): Delete.
2234 (unknown_language_data): Delete la_printstr initializer.
2235 (unknown_language::printstr): New member function.
2236 (auto_language_data): Delete la_printstr initializer.
2237 (auto_language::printstr): New member function.
2238 * language.h (language_data): Delete la_printstr field.
2239 (language_defn::printstr): Declare new member function.
2240 (LA_PRINT_STRING): Update call to printstr.
2241 * m2-lang.c (m2_printstr): Rename to m2_language::printstr.
2242 (m2_language_data): Delete la_printstr initializer.
2243 (m2_language::printstr): New member function, implementation from
2244 m2_printstr.
2245 * objc-lang.c (objc_language_data): Delete la_printstr
2246 initializer.
2247 * opencl-lang.c (opencl_language_data): Likewise.
2248 * p-lang.c (pascal_printstr): Rename to pascal_language::printstr.
2249 (pascal_language_data): Delete la_printstr initializer.
2250 (pascal_language::printstr): New member function, implementation
2251 from pascal_printstr.
2252 * p-lang.h (pascal_printstr): Delete declaration.
2253 * rust-lang.c (rust_printstr): Update header comment.
2254 (rust_language_data): Delete la_printstr initializer.
2255 (rust_language::printstr): New member function.
2256
52b50f2c
AB
22572020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
2258
2259 * ada-lang.c (ada_language_data): Delete la_printchar initializer.
2260 (ada_language::printchar): New member function.
2261 * c-lang.c (c_language_data): Delete la_printchar initializer.
2262 (cplus_language_data): Likewise.
2263 (asm_language_data): Likewise.
2264 (minimal_language_data): Likewise.
2265 * d-lang.c (d_language_data): Likewise.
2266 * f-lang.c (f_printchar): Rename to f_language::printchar.
2267 (f_language_data): Delete la_printchar initializer.
2268 (f_language::printchar): New member function, implementation from
2269 f_printchar.
2270 * go-lang.c (go_language_data): Delete la_printchar initializer.
2271 * language.c (unk_lang_printchar): Delete.
2272 (language_defn::printchar): Define new member function.
2273 (unknown_language_data): Delete la_printchar initializer.
2274 (unknown_language::printchar): New member function.
2275 (auto_language_data): Delete la_printchar initializer.
2276 (auto_language::printchar): New member function.
2277 * language.h (language_data): Delete la_printchar field.
2278 (language_defn::printchar): Declare new member function.
2279 (LA_PRINT_CHAR): Update call to printchar.
2280 * m2-lang.c (m2_language_data): Delete la_printchar initializer.
2281 (m2_language::printchar): New member function.
2282 * objc-lang.c (objc_language_data): Delete la_printchar
2283 initializer.
2284 * opencl-lang.c (opencl_language_data): Likewise.
2285 * p-lang.c (pascal_language_data): Delete la_printchar
2286 initializer.
2287 (pascal_language::printchar): New member function.
2288 * rust-lang.c (rust_printchar): Rename to
2289 rust_language::printchar.
2290 (rust_language_data): Delete la_printchar initializer.
2291 (rust_language::printchar): New member function, implementation
2292 from rust_printchar.
2293
ec8cec5b
AB
22942020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
2295
2296 * ada-lang.c (emit_char): Renamed to ada_language::emitchar.
2297 (ada_language_data): Delete la_emitchar initializer.
2298 (ada_language::emitchar): New member function, implementation from
2299 emit_char.
2300 * c-lang.c (c_language_data): Delete la_emitchar initializer.
2301 (cplus_language_data): Likewise.
2302 (asm_language_data): Likewise.
2303 (minimal_language_data): Likewise.
2304 * d-lang.c (d_language_data): Likewise.
2305 * f-lang.c (f_emit_char): Rename to f_language::emitchar.
2306 (f_language_data): Delete la_emitchar initializer.
2307 (f_language::emitchar): New member function, implementation from
2308 f_emit_char.
2309 * go-lang.c (go_language_data): Delete la_emitchar initializer.
2310 * language.c (unk_lang_emit_char): Delete.
2311 (language_defn::emitchar): New member function definition.
2312 (unknown_language_data): Delete la_emitchar initializer.
2313 (unknown_language::emitchar): New member function.
2314 (auto_language_data): Delete la_emitchar initializer.
2315 (auto_language::emitchar): New member function.
2316 * language.h (language_data): Delete la_emitchar field.
2317 (language_defn::emitchar): New member field declaration.
2318 (LA_EMIT_CHAR): Update call to emitchar.
2319 * m2-lang.c (m2_emit_char): Rename to m2_language::emitchar.
2320 (m2_language_data): Delete la_emitchar initializer.
2321 (m2_language::emitchar): New member function, implementation from
2322 m2_emit_char.
2323 * objc-lang.c (objc_language_data): Delete la_emitchar
2324 initializer.
2325 * opencl-lang.c (opencl_language_data): Likewise.
2326 * p-lang.c (pascal_emit_char): Rename to pascal_language::emitchar.
2327 (pascal_language_data): Delete la_emitchar initializer.
2328 (pascal_language::emitchar): New member function, implementation
2329 from pascal_emit_char.
2330 * rust-lang.c (rust_emitchar): Rename to rust_language::emitchar.
2331 (rust_language_data): Delete la_emitchar initializer.
2332 (rust_language::emitchar): New member function, implementation
2333 from rust_emitchar.
2334
1bf9c363
AB
23352020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
2336
2337 * ada-lang.c (resolve): Rename to ada_language::post_parser.
2338 (ada_language_data): Delete la_post_parser initializer.
2339 (ada_language::post_parser): New member function.
2340 * c-lang.c (c_language_data): Delete la_post_parser initializer.
2341 (cplus_language_data): Likewise.
2342 (asm_language_data): Likewise.
2343 (minimal_language_data): Likewise.
2344 * d-lang.c (d_language_data): Likewise.
2345 * f-lang.c (f_language_data): Likewise.
2346 * go-lang.c (go_language_data): Likewise.
2347 * language.c (unknown_language_data): Likewise.
2348 (auto_language_data): Likewise.
2349 * language.h (language_data): Delete la_post_parser field.
2350 (language_defn::post_parser): New member function.
2351 * m2-lang.c (m2_language_data): Delete la_post_parser initializer.
2352 * objc-lang.c (objc_language_data): Likewise.
2353 * opencl-lang.c (opencl_language_data): Likewise.
2354 * p-lang.c (pascal_language_data): Likewise.
2355 * parse.c (parse_exp_in_context): Update call to post_parser.
2356 (null_post_parser): Delete definition.
2357 * parser-defs.h (null_post_parser): Delete declaration.
2358 * rust-lang.c (rust_language_data): Delete la_post_parser
2359 initializer.
2360
87afa652
AB
23612020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
2362
2363 * ada-lang.c (parse): Rename to ada_language::parser.
2364 (ada_language_data): Delete la_parser initializer.
2365 (ada_language::parser): New member function, implementation from
2366 parse.
2367 * c-lang.c (c_language_data): Delete la_parser initializer.
2368 (cplus_language_data): Likewise.
2369 (asm_language_data): Likewise.
2370 (minimal_language_data): Likewise.
2371 * d-lang.c (d_language_data): Likewise.
2372 (d_language::parser): New member function.
2373 * f-lang.c (f_language_data): Delete la_parser initializer.
2374 (f_language::parser): New member function.
2375 * go-lang.c (go_language_data): Delete la_parser initializer.
2376 (go_language::parser): New member function.
2377 * language.c (unk_lang_parser): Delete.
2378 (language_defn::parser): Define new member function.
2379 (unknown_language_data): Delete la_parser initializer.
2380 (unknown_language::parser): New member function.
2381 (auto_language_data): Delete la_parser initializer.
2382 (auto_language::parser): New member function.
2383 * language.h (language_data): Delete la_parser field.
2384 (language_defn::parser): Declare new member function.
2385 * m2-lang.c (m2_language_data): Delete la_parser initializer.
2386 (m2_language::parser): New member function.
2387 * objc-lang.c (objc_language_data): Delete la_parser initializer.
2388 * opencl-lang.c (opencl_language_data): Likewise.
2389 * p-lang.c (pascal_language_data): Likewise.
2390 (pascal_language::parser): New member function.
2391 * parse.c (parse_exp_in_context): Update call to parser.
2392 * rust-lang.c (rust_language_data): Delete la_parser initializer.
2393 (rust_language::parser): New member function.
2394
37825800
AB
23952020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
2396
2397 * top.c (print_gdb_configuration): Print --with-python-libdir
2398 configuration value.
2399
5b860c93
PW
24002020-06-22 Philippe Waroquiers <philippe.waroquiers@skynet.be>
2401
2402 * NEWS: Mention change to the alias command.
2403
cf00cd6f
PW
24042020-06-22 Philippe Waroquiers <philippe.waroquiers@skynet.be>
2405
2406 * cli/cli-cmds.c (lookup_cmd_for_default_args)
2407 (alias_command_completer)
2408 (make_alias_options_def_group): New functions.
2409 (alias_opts, alias_option_defs): New struct and array.
2410 (alias_usage_error): Update usage.
2411 (alias_command): Handles optional DEFAULT-ARGS... arguments.
2412 Use option framework.
2413 (_initialize_cli_cmds): Update alias command help.
2414 Update aliases command help.
2415 (show_user):
2416 Add NULL for new default_args lookup_cmd argument.
2417 (valid_command_p): Rename to validate_aliased_command.
2418 Add NULL for new default_args lookup_cmd argument. Verify that the
2419 aliased_command has no default args.
2420 * cli/cli-decode.c (help_cmd): Show aliases definitions.
2421 (lookup_cmd_1, lookup_cmd): New argument default_args.
2422 (add_alias_cmd):
2423 Add NULL for new default_args lookup_cmd argument.
2424 (print_help_for_command): Show default args under the layout
2425 alias some_alias = some_aliased_cmd some_alias_default_arg.
2426 * cli/cli-decode.h (struct cmd_list_element): New member default_args.
2427 xfree default_args in destructor.
2428 * cli/cli-script.c (process_next_line, do_define_command):
2429 Add NULL for new default_args lookup_cmd argument.
2430 * command.h: Declare new default_args argument in lookup_cmd
2431 and lookup_cmd_1.
2432 * completer.c (complete_line_internal_1):
2433 Add NULL for new default_args lookup_cmd or lookup_cmd_1 argument.
2434 * guile/scm-cmd.c (gdbscm_parse_command_name): Likewise.
2435 * guile/scm-param.c (add_setshow_generic, pascm_parameter_defined_p):
2436 Likewise.
2437 * infcmd.c (_initialize_infcmd): Likewise.
2438 * python/py-auto-load.c (gdbpy_initialize_auto_load): Likewise.
2439 * python/py-cmd.c (gdbpy_parse_command_name): Likewise.
2440 * python/py-param.c (add_setshow_generic): Likewise.
2441 * remote.c (_initialize_remote): Likewise.
2442 * top.c (execute_command): Prepend default_args if command has some.
2443 (set_verbose):
2444 Add NULL for new default_args lookup_cmd or lookup_cmd_1 argument.
2445 * tracepoint.c (validate_actionline, encode_actions_1):
2446 Add NULL for new default_args lookup_cmd or lookup_cmd_1 argument.
2447
bd920864
TBA
24482020-06-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2449
2450 * jit.c (jit_read_descriptor): Use bool as the return type.
2451 (jit_breakpoint_re_set_internal): Use bool as the return type.
2452 Invert the return value logic; return true if the jit breakpoint
2453 has been successfully initialized.
2454 (jit_inferior_init): Update the call to
2455 jit_breakpoint_re_set_internal.
2456
f8098322
PA
24572020-06-22 Pedro Alves <palves@redhat.com>
2458
2459 PR gdb/25939
2460 * procfs.c (procfs_target::wait): Don't reference inferior_ptid.
2461 Use the current inferior instead. Don't return
2462 TARGET_WAITKIND_SPURIOUS/inferior_ptid -- instead continue and
2463 wait again.
2464 * sol-thread.c (sol_thread_target::wait): Don't reference
2465 inferior_ptid.
2466 (ps_lgetregs, ps_lsetregs, ps_lgetfpregs, ps_lsetfpregs)
2467 (sol_update_thread_list_callback): Use the current inferior's pid
2468 instead of inferior_ptid.
2469
196535a6
RO
24702020-06-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2471
2472 * procfs.c: Cleanup many comments.
2473
2474 (READ_WATCHFLAG, WRITE_WATCHFLAG, EXEC_WATCHFLAG)
2475 (AFTER_WATCHFLAG): Replace by value.
2476
2477 (MAIN_PROC_NAME_FORMAT): Inline ...
2478 (create_procinfo): ... here.
2479
2480 (procfs_debug_inferior): Remove SYS_exec handling.
2481 (syscall_is_exec): Likewise.
2482 (procfs_set_exec_trap): Likewise.
2483
2484 (syscall_is_lwp_exit): Inline in callers.
2485 (syscall_is_exit): Likewise.
2486 (syscall_is_exec): Likewise.
2487 (syscall_is_lwp_create): Likewise.
2488
2489 (invalidate_cache): Remove #if 0 code.
2490
2491 (make_signal_thread_runnable): Remove.
2492 (procfs_target::resume): Remove #if 0 code.
2493
cf6f3e86
RO
24942020-06-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2495
2496 PR gdb/25939
2497 * procfs.c (procfs_target::procfs_init_inferior): Move push_target
2498 call ...
2499 (procfs_target::create_inferior): ... here.
2500
48e9cc84
PW
25012020-06-21 Philippe Waroquiers <philippe.waroquiers@skynet.be>
2502
2503 * exec.c (validate_exec_file): Ensure the build-id is up to
2504 date by calling reopen_exec_file (that checks file timestamp
2505 to decide to re-read the file).
2506
3922b302
PA
25072020-06-18 Pedro Alves <palves@redhat.com>
2508
2509 PR gdb/25412
2510 * gdbthread.h (delete_thread, delete_thread_silent)
2511 (find_thread_ptid): Update comments.
2512 * thread.c (current_thread_): New global.
2513 (is_current_thread): Move higher, and reimplement.
2514 (inferior_thread): Reimplement.
2515 (set_thread_exited): Use bool. Add assertions.
2516 (add_thread_silent): Simplify thread-reuse handling by always
2517 calling delete_thread.
2518 (delete_thread): Remove intro comment.
2519 (find_thread_ptid): Skip exited threads.
2520 (switch_to_thread_no_regs): Write to current_thread_.
2521 (switch_to_no_thread): Check CURRENT_THREAD_ instead of
2522 INFERIOR_PTID. Clear current_thread_.
2523
6dbdab44
PA
25242020-06-18 Pedro Alves <palves@redhat.com>
2525
2526 * aix-thread.c (pd_update): Use switch_to_thread.
2527
2da4b788
PA
25282020-06-18 Pedro Alves <palves@redhat.com>
2529
2530 * ravenscar-thread.c (ravenscar_thread_target): Update.
2531 (ravenscar_thread_target::update_inferior_ptid): Rename to ...
2532 (ravenscar_thread_target::add_active_thread): ... this. Don't
2533 set m_base_ptid here. Update to avoid referencing inferior_ptid.
2534 (ravenscar_thread_target::wait): Don't write to inferior_ptid.
2535
50838d1b
PA
25362020-06-18 Pedro Alves <palves@redhat.com>
2537
2538 * nat/windows-nat.c (current_windows_thread): Remove.
2539 * nat/windows-nat.h (current_windows_thread): Remove.
2540 * windows-nat.c (windows_nat_target::stopped_by_sw_breakpoint):
2541 Adjust.
2542 (display_selectors): Adjust to fetch the current
2543 windows_thread_info based on inferior_ptid.
2544 (fake_create_process): No longer write to current_windows_thread.
2545 (windows_nat_target::get_windows_debug_event):
2546 Don't set inferior_ptid or current_windows_thread.
2547 (windows_nat_target::wait): Adjust to not rely on
2548 current_windows_thread.
2549 (do_initial_windows_stuff): Now a method of windows_nat_target.
2550 Switch to the last_ptid thread.
2551 (windows_nat_target::attach): Adjust.
2552 (windows_nat_target::detach): Use switch_to_no_thread instead of
2553 writing to inferior_ptid directly.
2554 (windows_nat_target::create_inferior): Adjust.
2555
31ce04e9
PA
25562020-06-18 Pedro Alves <palves@redhat.com>
2557
2558 * windows-nat.c (do_initial_windows_stuff): No longer set inferior_ptid.
2559
1ee1a363
PA
25602020-06-18 Pedro Alves <palves@redhat.com>
2561
2562 * go32-nat.c (go32_nat_target::create_inferior): Switch to thread
2563 after creating it, instead of writing to inferior_ptid. Don't
2564 write to inferior_ptid.
2565
6d350754
PA
25662020-06-18 Pedro Alves <palves@redhat.com>
2567
2568 * fork-child.c (postfork_hook): Don't write to inferior_ptid.
2569
5d971d48
PA
25702020-06-18 Pedro Alves <palves@redhat.com>
2571
2572 * bsd-kvm.c (bsd_kvm_target_open): Switch to thread after adding
2573 it, instead of writing to inferior_ptid.
2574
86e57d1b
PA
25752020-06-18 Pedro Alves <palves@redhat.com>
2576
2577 * btrace.c (btrace_fetch): Use switch_to_thread instead of writing
2578 to inferior_ptid.
2579
f2e1c129
PA
25802020-06-18 Pedro Alves <palves@redhat.com>
2581
2582 * bsd-kvm.c (bsd_kvm_target::close): Use switch_to_no_thread
2583 instead of writing to inferior_ptid directly.
2584
60db1b85
PA
25852020-06-18 Pedro Alves <palves@redhat.com>
2586
2587 * corelow.c (core_target::close): Use switch_to_no_thread instead
2588 of writing to inferior_ptid directly.
2589 (add_to_thread_list, core_target_open): Use switch_to_thread
2590 instead of writing to inferior_ptid directly.
2591
fe7d6a8d
PA
25922020-06-18 Pedro Alves <palves@redhat.com>
2593
2594 * darwin-nat.c (darwin_nat_target::decode_message): Don't write to
2595 inferior_ptid.
2596 (darwin_nat_target::stop_inferior, darwin_nat_target::kill): Avoid
2597 inferior_ptid.
2598 (darwin_attach_pid): Use switch_to_no_thread instead of writing to
2599 inferior_ptid directly.
2600 (darwin_nat_target::init_thread_list): Switch to thread, instead
2601 of writing to inferior_ptid.
2602 (darwin_nat_target::attach): Don't write to inferior_ptid.
2603 (darwin_nat_target::get_ada_task_ptid): Avoid inferior_ptid.
2604
975f8708
PA
26052020-06-18 Pedro Alves <palves@redhat.com>
2606
2607 * gnu-nat.c (gnu_nat_target::create_inferior): Switch to the added
2608 thread.
2609 (gnu_nat_target::attach): Don't write to inferior_ptid directly.
2610 Instead use switch_to_thread.
2611 (gnu_nat_target::detach): Use switch_to_no_thread
2612 instead of writing to inferior_ptid directly. Used passed-in
2613 inferior instead of looking up the inferior by pid.
2614
1a204730
PA
26152020-06-18 Pedro Alves <palves@redhat.com>
2616
2617 * go32-nat.c (go32_nat_target::create_inferior): Don't write to
2618 inferior_ptid.
2619
ebe84f23
PA
26202020-06-18 Pedro Alves <palves@redhat.com>
2621
2622 * nto-procfs.c (nto_procfs_target::update_thread_list): Avoid
2623 inferior_ptid.
2624 (nto_procfs_target::attach): Avoid inferior_ptid. Switch to
2625 thread.
2626 (nto_procfs_target::detach): Avoid referencing
2627 inferior_ptid. Use switch_to_no_thread instead of writing to
2628 inferior_ptid directly.
2629 (nto_procfs_target::mourn_inferior): Use switch_to_no_thread
2630 instead of writing to inferior_ptid directly.
2631 (nto_procfs_target::create_inferior): Avoid inferior_ptid. Switch
2632 to thread.
2633
191f02e5
PA
26342020-06-18 Pedro Alves <palves@redhat.com>
2635
2636 * remote-sim.c (gdbsim_target::create_inferior): Switch to thread
2637 after creating it, instead of writing to inferior_ptid.
2638 (gdbsim_target_open): Use switch_to_no_thread instead of writing
2639 to inferior_ptid directly.
2640 (gdbsim_target::wait): Don't write to inferior_ptid.
2641
0ac55310
PA
26422020-06-18 Pedro Alves <palves@redhat.com>
2643
2644 * remote.c (remote_target::remote_notice_new_inferior): Use
2645 switch_to_thread instead of writing to inferior_ptid directly.
2646 (remote_target::add_current_inferior_and_thread): Use
2647 switch_to_no_thread instead of writing to inferior_ptid directly.
2648 (extended_remote_target::attach): Use switch_to_inferior_no_thread
2649 and switch_to_thread instead of using set_current_inferior or
2650 writing to inferior_ptid directly.
2651
5233f39b
PA
26522020-06-18 Pedro Alves <palves@redhat.com>
2653
2654 * tracectf.c (ctf_target_open): Switch to added thread instead of
2655 writing to inferior_ptid directly.
2656 (ctf_target::close): Use switch_to_no_thread instead of writing to
2657 inferior_ptid directly.
2658
087e161b
PA
26592020-06-18 Pedro Alves <palves@redhat.com>
2660
2661 * tracefile-tfile.c (tfile_target_open): Don't write to
2662 inferior_ptid directly, instead switch to added thread.
2663 (tfile_target::close): Use switch_to_no_thread instead of writing
2664 to inferior_ptid directly.
2665
7fb43e53
PA
26662020-06-18 Pedro Alves <palves@redhat.com>
2667
2668 * procfs.c (procfs_target::attach): Don't write to inferior_ptid.
2669 (procfs_target::detach): Use switch_to_no_thread
2670 instead of writing to inferior_ptid directly.
2671 (do_attach): Change return type to void. Switch to the added
2672 thread.
2673 (procfs_target::create_inferior): Switch to the added thread.
2674 (procfs_do_thread_registers): Don't write to inferior_ptid.
2675
18493a00
PA
26762020-06-18 Pedro Alves <palves@redhat.com>
2677
2678 * infrun.c (generic_mourn_inferior): Use switch_to_thread instead
2679 of writing to inferior_ptid.
2680 (scoped_restore_exited_inferior): Delete.
2681 (handle_vfork_child_exec_or_exit): Simplify using
2682 scoped_restore_current_pspace_and_thread. Use switch_to_thread
2683 instead of writing to inferior_ptid.
2684 (THREAD_STOPPED_BY): Delete.
2685 (thread_stopped_by_watchpoint, thread_stopped_by_sw_breakpoint)
2686 (thread_stopped_by_hw_breakpoint): Delete.
2687 (save_waitstatus): Use
2688 scoped_restore_current_thread+switch_to_thread, and call
2689 target_stopped_by_watchpoint instead of
2690 thread_stopped_by_watchpoint, target_stopped_by_sw_breakpoint
2691 instead of thread_stopped_by_sw_breakpoint, and
2692 target_stopped_by_hw_breakpoint instead of
2693 thread_stopped_by_hw_breakpoint.
2694 (handle_inferior_event)
2695 <TARGET_WAITKIND_EXITED/TARGET_WAITKIND_SIGNALLED>: Don't write to
2696 inferior_ptid directly, nor
2697 set_current_inferior/set_current_program_space. Use
2698 switch_to_thread / switch_to_inferior_no_thread instead.
2699
a0776b13
PA
27002020-06-18 Pedro Alves <palves@redhat.com>
2701
2702 * target.c (generic_mourn_inferior): Use switch_to_no_thread
2703 instead of writing to inferior_ptid.
2704
6155c136
PA
27052020-06-18 Pedro Alves <palves@redhat.com>
2706
2707 * inf-ptrace.c (inf_ptrace_target::create_inferior): Switch to the
2708 added thread.
2709 (inf_ptrace_target::attach): Don't write to inferior_ptid. Switch
2710 to the added thread.
2711 (inf_ptrace_target::detach_success): Use switch_to_no_thread
2712 instead of writing to inferior_ptid.
2713
c5316fc6
PA
27142020-06-18 Pedro Alves <palves@redhat.com>
2715
2716 * gdbarch-selftests.c: Include "progspace-and-thread.h".
2717 (register_to_value_test): Mock a program_space too. Heap-allocate
2718 the address space. Don't write to inferior_ptid. Use
2719 switch_to_thread instead.
2720
8df01799
PA
27212020-06-18 Pedro Alves <palves@redhat.com>
2722
2723 * linux-tdep.c (find_signalled_thread(thread_info *,void *)):
2724 Delete.
2725 (find_signalled_thread()): New, factored out from
2726 linux_make_corefile_notes and adjusted to handle exited threads.
2727 (linux_make_corefile_notes): Adjust to use the new
2728 find_signalled_thread.
2729
41792d68
PA
27302020-06-18 Pedro Alves <palves@redhat.com>
2731
2732 * linux-tdep.c (btrace_fetch): Save/restore current thread instead
2733 of saving/restoring inferior_ptid.
2734
612f258a
TT
27352020-06-17 Tom Tromey <tom@tromey.com>
2736
2737 * tui/tui-win.h (tui_scroll_forward, tui_scroll_backward)
2738 (tui_scroll_left, tui_scroll_right, struct tui_win_info): Don't
2739 declare.
2740 * tui/tui-data.h (MIN_CMD_WIN_HEIGHT): Remove.
2741
efb763a5
SM
27422020-06-15 Simon Marchi <simon.marchi@efficios.com>
2743
2744 * dwarf2/read.c (dwarf2_initialize_objfile): Check for presence
2745 of partial symtabs.
2746
2951f6c0
SM
27472020-06-17 Simon Marchi <simon.marchi@efficios.com>
2748
2749 * regformats/reg-arm.dat: Remove.
2750 * regformats/reg-bfin.dat: Remove.
2751 * regformats/reg-cris.dat: Remove.
2752 * regformats/reg-crisv32.dat: Remove.
2753 * regformats/reg-m32r.dat: Remove.
2754 * regformats/reg-tilegx.dat: Remove.
2755 * regformats/reg-tilegx32.dat: Remove.
2756
7d458ea5
SM
27572020-06-17 Simon Marchi <simon.marchi@efficios.com>
2758
2759 * features/Makefile (WHICH): Remove arm files.
2760 * regformats/arm/arm-with-iwmmxt.dat: Remove.
2761 * regformats/arm/arm-with-neon.dat: Remove.
2762 * regformats/arm/arm-with-vfpv2.dat: Remove.
2763 * regformats/arm/arm-with-vfpv3.dat: Remove.
2764
3af96c0d
SM
27652020-06-17 Simon Marchi <simon.marchi@efficios.com>
2766
2767 * features/Makefile (XMLTOC): Remove rx.xml.
2768
b25e22fd
PA
27692020-06-17 Pedro Alves <palves@redhat.com>
2770
2771 * gdbthread.h (thread_control_state) <trap_expected> Update
2772 comments.
2773
a78a19b1
AB
27742020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
2775
2776 * ada-lang.c (ada_lookup_symbol_nonlocal): Rename to
2777 ada_language::lookup_symbol_nonlocal.
2778 (ada_language_data): Delete la_lookup_symbol_nonlocal initializer.
2779 (ada_language::lookup_symbol_nonlocal): New member function,
2780 implementation from ada_lookup_symbol_nonlocal.
2781 * c-lang.c (c_language_data): Delete la_lookup_symbol_nonlocal
2782 initializer.
2783 (cplus_language_data): Delete la_lookup_symbol_nonlocal
2784 initializer.
2785 (cplus_language::lookup_symbol_nonlocal): New member function.
2786 (asm_language_data): Delete la_lookup_symbol_nonlocal initializer.
2787 (minimal_language_data) Likewise.
2788 * cp-namespace.c (cp_lookup_nested_symbol): Update comment.
2789 * d-lang.c (d_language_data): Delete la_lookup_symbol_nonlocal
2790 initializer.
2791 (d_language::lookup_symbol_nonlocal): New member function.
2792 * f-lang.c (f_language_data): Delete la_lookup_symbol_nonlocal
2793 initializer.
2794 (f_language::lookup_symbol_nonlocal): New member function.
2795 * go-lang.c (go_language_data): Delete la_lookup_symbol_nonlocal
2796 initializer.
2797 * language.c (unknown_language_data): Likewise.
2798 (auto_language_data): Likewise.
2799 * language.h (language_data): Delete la_lookup_symbol_nonlocal
2800 field.
2801 (language_defn::lookup_symbol_nonlocal): New member function.
2802 * m2-lang.c (m2_language_data): Delete la_lookup_symbol_nonlocal
2803 initializer.
2804 * objc-lang.c (objc_language_data): Likewise.
2805 * opencl-lang.c (opencl_language_data): Likewise.
2806 * p-lang.c (pascal_language_data): Likewise.
2807 * rust-lang.c (rust_lookup_symbol_nonlocal): Rename to
2808 rust_language::lookup_symbol_nonlocal.
2809 (rust_language_data): Delete la_lookup_symbol_nonlocal
2810 initializer.
2811 (rust_language::lookup_symbol_nonlocal): New member function,
2812 implementation from rust_lookup_symbol_nonlocal.
2813 * symtab.c (lookup_symbol_aux): Update call to
2814 lookup_symbol_nonlocal.
2815 (basic_lookup_symbol_nonlocal): Rename to...
2816 (language_defn::lookup_symbol_nonlocal): ...this, and update
2817 header comment. Remove language_defn parameter, and replace with
2818 uses of `this'.
2819 * symtab.h (basic_lookup_symbol_nonlocal): Delete declaration.
2820
ebe2334e
AB
28212020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
2822
2823 * ada-lang.c (ada_language_data): Delete la_value_print_inner
2824 initializer.
2825 (ada_language::value_print_inner): New member function.
2826 * c-lang.c (c_language_data): Delete la_value_print_inner
2827 initializer.
2828 (cplus_language_data): Likewise.
2829 (asm_language_data): Likewise.
2830 (minimal_language_data): Likewise.
2831 * d-lang.c (d_language_data): Likewise.
2832 (d_language::value_print_inner): New member function.
2833 * f-lang.c (f_language_data): Delete la_value_print_inner
2834 initializer.
2835 (f_language::value_print_inner): New member function.
2836 * f-lang.h (f_value_print_innner): Rename to...
2837 (f_value_print_inner): ...this (note spelling of 'inner').
2838 * f-valprint.c (f_value_print_innner): Rename to...
2839 (f_value_print_inner): ...this (note spelling of 'inner').
2840 * go-lang.c (go_language_data): Delete la_value_print_inner
2841 initializer.
2842 (go_language::value_print_inner): New member function.
2843 * language.c (language_defn::value_print_inner): Define new member
2844 function.
2845 (unk_lang_value_print_inner): Delete.
2846 (unknown_language_data): Delete la_value_print_inner initializer.
2847 (unknown_language::value_print_inner): New member function.
2848 (auto_language_data): Delete la_value_print_inner initializer.
2849 (auto_language::value_print_inner): New member function.
2850 * language.h (language_data): Delete la_value_print_inner field.
2851 (language_defn::value_print_inner): Delcare new member function.
2852 * m2-lang.c (m2_language_data): Delete la_value_print_inner
2853 initializer.
2854 (m2_language::value_print_inner): New member function.
2855 * objc-lang.c (objc_language_data): Delete la_value_print_inner
2856 initializer.
2857 * opencl-lang.c (opencl_language_data): Likewise.
2858 * p-lang.c (pascal_language_data): Likewise.
2859 (pascal_language::value_print_inner): New member function.
2860 * rust-lang.c (rust_language_data): Delete la_value_print_inner
2861 initializer.
2862 (rust_language::value_print_inner): New member function.
2863 * valprint.c (do_val_print): Update call to value_print_inner.
2864
a1d1fa3e
AB
28652020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
2866
2867 * ada-lang.c (ada_language_data): Delete la_value_print
2868 initializer.
2869 (ada_language::value_print): New member function.
2870 * c-lang.c (c_language_data): Delete la_value_print initializer.
2871 (cplus_language_data): Likewise.
2872 (asm_language_data): Likewise.
2873 (minimal_language_data): Likewise.
2874 * d-lang.c (d_language_data): Likewise.
2875 * f-lang.c (f_language_data): Likewise.
2876 * go-lang.c (go_language_data): Likewise.
2877 * language.c (unk_lang_value_print): Delete.
2878 (language_defn::value_print): Define new member function.
2879 (unknown_language_data): Delete la_value_print initializer.
2880 (unknown_language::value_print): New member function.
2881 (auto_language_data): Delete la_value_print initializer.
2882 (auto_language::value_print): New member function.
2883 * language.h (language_data): Delete la_value_print field.
2884 (language_defn::value_print): Declare new member function.
2885 (LA_VALUE_PRINT): Update call to value_print.
2886 * m2-lang.c (m2_language_data): Delete la_value_print initializer.
2887 * objc-lang.c (objc_language_data): Likewise.
2888 * opencl-lang.c (opencl_language_data): Likewise.
2889 * p-lang.c (pascal_language_data): Likewise.
2890 (pascal_language::value_print): New member function.
2891 * rust-lang.c (rust_language_data): Delete la_value_print
2892 initializer.
2893
f16a9f57
AB
28942020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
2895
2896 * ada-lang.c (ada_watch_location_expression): Rename to
2897 ada_language::watch_location_expression.
2898 (ada_language_data): Delete la_watch_location_expression
2899 initializer.
2900 (ada_language::watch_location_expression): New member function,
2901 implementation from ada_watch_location_expression.
2902 * breakpoint.c (watch_command_1): Update call to
2903 watch_location_expression.
2904 * c-lang.c (c_watch_location_expression): Rename to
2905 language_defn::watch_location_expression.
2906 (c_language_data): Delete la_watch_location_expression
2907 initializer.
2908 (cplus_language_data): Likewise.
2909 (asm_language_data): Likewise.
2910 (minimal_language_data): Likewise.
2911 * c-lang.h (c_watch_location_expression): Delete declaration.
2912 * d-lang.c (d_language_data): Delete la_watch_location_expression
2913 initializer.
2914 * f-lang.c (f_language_data): Likewise.
2915 * go-lang.c (go_language_data): Likewise.
2916 * language.c (language_defn::watch_location_expression): Member
2917 function implementation from c_watch_location_expression.
2918 (unknown_language_data): Delete la_watch_location_expression
2919 initializer.
2920 (auto_language_data): Likewise.
2921 * language.h (language_data): Delete la_watch_location_expression
2922 field.
2923 (language_defn::watch_location_expression): Declare new member
2924 function.
2925 * m2-lang.c (m2_language_data): Delete
2926 la_watch_location_expression initializer.
2927 * objc-lang.c (objc_language_data): Likewise.
2928 * opencl-lang.c (opencl_language_data): Likewise.
2929 * p-lang.c (pascal_language_data): Likewise.
2930 * rust-lang.c (rust_watch_location_expression): Rename to
2931 rust_language::watch_location_expression.
2932 (rust_language_data): Delete la_watch_location_expression
2933 initializer.
2934 (rust_language::watch_location_expression): New member function,
2935 implementation from rust_watch_location_expression.
2936
7e56227d
AB
29372020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
2938
2939 * ada-lang.c (ada_collect_symbol_completion_matches): Rename to
2940 ada_language::collect_symbol_completion_matches.
2941 (ada_language_data): Delete la_collect_symbol_completion_matches
2942 initializer.
2943 (ada_language::collect_symbol_completion_matches): New member
2944 function, implementation from
2945 ada_collect_symbol_completion_matches.
2946 * c-lang.c (c_language_data): Delete
2947 la_collect_symbol_completion_matches initializer.
2948 (cplus_language_data): Likewise.
2949 (asm_language_data): Likewise.
2950 (minimal_language_data): Likewise.
2951 * d-lang.c (d_language_data): Likewise.
2952 * f-lang.c (f_collect_symbol_completion_matches): Rename to
2953 f_language::collect_symbol_completion_matches.
2954 (f_language_data): Delete la_collect_symbol_completion_matches
2955 initializer.
2956 (f_language::collect_symbol_completion_matches) New member
2957 function, implementation from f_collect_symbol_completion_matches.
2958 * go-lang.c (go_language_data): Delete
2959 la_collect_symbol_completion_matches initializer.
2960 * language.c (unknown_language_data): Likewise.
2961 (auto_language_data): Likewise.
2962 * language.h (language_data): Delete
2963 la_collect_symbol_completion_matches field.
2964 (language_defn::collect_symbol_completion_matches): New member
2965 function.
2966 * m2-lang.c (m2_language_data): Delete
2967 la_collect_symbol_completion_matches initializer.
2968 * objc-lang.c (objc_language_data): Likewise.
2969 * opencl-lang.c (opencl_language_data): Likewise.
2970 * p-lang.c (pascal_language_data): Likewise.
2971 * rust-lang.c (rust_language_data): Likewise.
2972 * symtab.c (default_collect_symbol_completion_matches): Delete.
2973 (collect_symbol_completion_matches): Update call to
2974 collect_symbol_completion_matches.
2975 (collect_symbol_completion_matches_type): Likewise.
2976 * symtab.h (default_collect_symbol_completion_matches): Delete
2977 declaration.
2978
53fc67f8
AB
29792020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
2980
2981 * ada-lang.c (ada_get_gdb_completer_word_break_characters): Delete.
2982 (ada_language_data): Delete la_word_break_characters initializer.
2983 (ada_language::word_break_characters): New member function.
2984 * c-lang.c (c_language_data): Delete la_word_break_characters
2985 initializer.
2986 (cplus_language_data): Likewise.
2987 (asm_language_data): Likewise.
2988 (minimal_language_data): Likewise.
2989 * completer.c: Update global comment.
2990 (advance_to_expression_complete_word_point): Update call to
2991 word_break_characters.
2992 (complete_files_symbols): Likewise.
2993 (complete_line_internal_1): Likewise.
2994 (default_completer_handle_brkchars): Likewise.
2995 (skip_quoted_chars): Likewise.
2996 * d-lang.c (d_language_data): Delete la_word_break_characters
2997 initializer.
2998 * f-lang.c (f_word_break_characters): Delete.
2999 (f_language_data): Delete la_word_break_characters initializer.
3000 (f_language::word_break_characters): New member function.
3001 * go-lang.c (go_language_data): Delete la_word_break_characters
3002 initializer.
3003 * language.c (unknown_language_data): Likewise.
3004 (auto_language_data): Likewise.
3005 * language.h (default_word_break_characters): Move declaration to
3006 earlier in the file.
3007 (language_data): Delete la_word_break_characters field.
3008 (language_defn::word_break_characters): New member function.
3009 * m2-lang.c (m2_language_data): Delete la_word_break_characters
3010 initializer.
3011 * objc-lang.c (objc_language_data): Likewise.
3012 * opencl-lang.c (opencl_language_data): Likewise.
3013 * p-lang.c (pascal_language_data): Likewise.
3014 * rust-lang.c (rust_language_data): Likewise.
3015
c9debfb9
AB
30162020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
3017
3018 * ada-lang.c (ada_get_symbol_name_matcher): Update header comment.
3019 (ada_language_data): Delete la_get_symbol_name_matcher
3020 initializer.
3021 (language_defn::get_symbol_name_matcher_inner): New member
3022 function.
3023 * c-lang.c (c_language_data): Delete la_get_symbol_name_matcher
3024 initializer.
3025 (cplus_language_data): Likewise.
3026 (cplus_language::get_symbol_name_matcher_inner): New member
3027 function.
3028 (asm_language_data): Delete la_get_symbol_name_matcher initializer.
3029 (minimal_language_data): Likewise.
3030 * cp-support.h (cp_get_symbol_name_matcher): Update header comment.
3031 * d-lang.c (d_language_data): Delete la_get_symbol_name_matcher
3032 initializer.
3033 * dictionary.c (iter_match_first_hashed): Update call to
3034 get_symbol_name_matcher.
3035 (iter_match_next_hashed): Likewise.
3036 (iter_match_next_linear): Likewise.
3037 * dwarf2/read.c (dw2_expand_symtabs_matching_symbol): Likewise.
3038 * f-lang.c (f_language_data): Delete la_get_symbol_name_matcher
3039 initializer.
3040 (f_language::get_symbol_name_matcher_inner): New member function.
3041 * go-lang.c (go_language_data): Delete la_get_symbol_name_matcher
3042 initializer.
3043 * language.c (default_symbol_name_matcher): Update header comment,
3044 make static.
3045 (language_defn::get_symbol_name_matcher): New definition.
3046 (language_defn::get_symbol_name_matcher_inner): Likewise.
3047 (get_symbol_name_matcher): Delete.
3048 (unknown_language_data): Delete la_get_symbol_name_matcher
3049 initializer.
3050 (auto_language_data): Likewise.
3051 * language.h (language_data): Delete la_get_symbol_name_matcher
3052 field.
3053 (language_defn::get_symbol_name_matcher): New member function.
3054 (language_defn::get_symbol_name_matcher_inner): Likewise.
3055 (default_symbol_name_matcher): Delete declaration.
3056 * linespec.c (find_methods): Update call to
3057 get_symbol_name_matcher.
3058 * m2-lang.c (m2_language_data): Delete la_get_symbol_name_matcher
3059 initializer.
3060 * minsyms.c (lookup_minimal_symbol): Update call to
3061 get_symbol_name_matcher.
3062 (iterate_over_minimal_symbols): Likewise.
3063 * objc-lang.c (objc_language_data): Delete
3064 la_get_symbol_name_matcher initializer.
3065 * opencl-lang.c (opencl_language_data): Likewise.
3066 * p-lang.c (pascal_language_data): Likewise.
3067 * psymtab.c (psymbol_name_matches): Update call to
3068 get_symbol_name_matcher.
3069 * rust-lang.c (rust_language_data): Delete
3070 la_get_symbol_name_matcher initializer.
3071 * symtab.c (symbol_matches_search_name): Update call to
3072 get_symbol_name_matcher.
3073 (compare_symbol_name): Likewise.
3074
9a49ad8c
AB
30752020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
3076
3077 * ada-lang.c (ada_language_data): Delete la_compute_program
3078 initializer.
3079 * c-lang.c (c_language_data): Likewise.
3080 (c_language::compute_program): New member function.
3081 (cplus_language_data): Delete la_compute_program initializer.
3082 (cplus_language::compute_program): New member function.
3083 (asm_language_data): Delete la_compute_program initializer.
3084 (minimal_language_data): Likewise.
3085 * c-lang.h (c_compute_program): Update comment.
3086 (cplus_compute_program): Likewise.
3087 * compile/compile-c-support.c (c_compute_program): Likewise.
3088 (cplus_compute_program): Likewise.
3089 * compile/compile.c (compile_to_object): Update call to
3090 la_compute_program.
3091 * d-lang.c (d_language_data): Delete la_compute_program
3092 initializer.
3093 * f-lang.c (f_language_data): Likewise.
3094 * go-lang.c (go_language_data): Likewise.
3095 * language.c (unknown_language_data): Likewise.
3096 (auto_language_data): Likewise.
3097 * language.h (language_data): Delete la_compute_program field.
3098 (language_defn::compute_program): New member function.
3099 * m2-lang.c (m2_language_data): Delete la_compute_program
3100 initializer.
3101 * objc-lang.c (objc_language_data): Likewise.
3102 * opencl-lang.c (opencl_language_data): Likewise.
3103 * p-lang.c (pascal_language_data): Likewise.
3104 * rust-lang.c (rust_language_data): Likewise.
3105
eff93b4d
AB
31062020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
3107
3108 * ada-lang.c (ada_language_data) Delete
3109 la_class_name_from_physname initializer.
3110 * c-lang.c (c_language_data): Likewise.
3111 (cplus_language_data): Likewise.
3112 (cplus_language::class_name_from_physname): New member function.
3113 (asm_language_data): Delete la_class_name_from_physname
3114 initializer.
3115 (minimal_language_data): Likewise.
3116 * d-lang.c (d_language_data): Likewise.
3117 * dwarf2/read.c (guess_partial_die_structure_name): Update to call
3118 method on language_defn class.
3119 (guess_full_die_structure_name): Likewise.
3120 * f-lang.c (f_language_data): Delete la_class_name_from_physname
3121 initializer.
3122 * go-lang.c (go_language_data): Likewise.
3123 * language.c (language_class_name_from_physname): Delete.
3124 (unk_lang_class_name): Delete.
3125 (unknown_language_data): Delete la_class_name_from_physname
3126 initializer.
3127 (auto_language_data): Likewise.
3128 * language.h (language_data): Delete la_class_name_from_physname
3129 field.
3130 (language_defn::class_name_from_physname): New function.
3131 (language_class_name_from_physname): Delete declaration.
3132 * m2-lang.c (m2_language_data): Delete la_class_name_from_physname
3133 initializer.
3134 * objc-lang.c (objc_language_data): Likewise.
3135 * opencl-lang.c (opencl_language_data): Likewise.
3136 * p-lang.c (pascal_language_data): Likewise.
3137 * rust-lang.c (rust_language_data): Likewise.
3138
de543742
TT
31392020-06-16 Tom Tromey <tom@tromey.com>
3140
3141 * tui/tui-data.h (STATUS_NAME): New macro.
3142 * tui/tui-layout.c (tui_remove_some_windows)
3143 (initialize_known_windows, tui_register_window)
3144 (tui_layout_split::remove_windows, initialize_layouts)
3145 (tui_new_layout_command): Don't use hard-coded window names.
3146
a350efd4
TT
31472020-06-16 Tom Tromey <tom@tromey.com>
3148
3149 PR tui/25348:
3150 * tui/tui.c (tui_ensure_readline_initialized): Rename from
3151 tui_initialize_readline. Only run once. Call rl_initialize.
3152 * tui/tui.h (tui_ensure_readline_initialized): Rename from
3153 tui_initialize_readline.
3154 * tui/tui-io.c (tui_setup_io): Call
3155 tui_ensure_readline_initialized.
3156 * tui/tui-interp.c (tui_interp::init): Update.
3157
39ec0490
TT
31582020-06-16 Tom Tromey <tom@tromey.com>
3159
3160 * tui/tui-layout.c (tui_layout_split::remove_windows): Fix logic.
3161 Also preserve the status window.
3162
d2d1ea20
TT
31632020-06-16 Tom Tromey <tom@tromey.com>
3164
3165 * python/py-tui.c (tui_py_window::~tui_py_window): Handle case
3166 where m_window==nullptr.
3167
66920317
TT
31682020-06-15 Tom Tromey <tromey@adacore.com>
3169
3170 * windows-nat.c (windows_nat::handle_output_debug_string):
3171 Update.
3172 (windows_nat::handle_ms_vc_exception): Update.
3173 * target.h (target_read_string): Change API.
3174 * target.c (target_read_string): Change API.
3175 * solib-svr4.c (open_symbol_file_object, svr4_read_so_list):
3176 Update.
3177 * solib-frv.c (frv_current_sos): Update.
3178 * solib-dsbt.c (dsbt_current_sos): Update.
3179 * solib-darwin.c (darwin_current_sos): Update.
3180 * linux-thread-db.c (inferior_has_bug): Update.
3181 * expprint.c (print_subexp_standard): Update.
3182 * ada-lang.c (ada_main_name, ada_tag_name_from_tsd)
3183 (ada_exception_message_1): Update.
3184
a5d871dd
TT
31852020-06-15 Tom Tromey <tromey@adacore.com>
3186
3187 * linux-tdep.c (dump_mapping_p): Use target_read_memory.
3188
670e35fa
TT
31892020-06-15 Tom Tromey <tromey@adacore.com>
3190
3191 * valprint.c (read_string): Update comment.
3192 * target.c (MIN): Remove.
3193 (target_read_string): Rewrite.
3194
f5272a3b
TT
31952020-06-15 Tom Tromey <tromey@adacore.com>
3196
3197 * corefile.c (read_memory_string): Remove.
3198 * ada-valprint.c (ada_value_print_ptr): Update.
3199 * ada-lang.h (ada_tag_name): Change return type.
3200 * ada-lang.c (type_from_tag): Update.
3201 (ada_tag_name_from_tsd): Change return type. Use
3202 target_read_string.
3203 (ada_tag_name): Likewise.
3204 * gdbcore.h (read_memory_string): Don't declare.
3205
2c074f49
HD
32062020-06-14 Hannes Domani <ssbssa@yahoo.de>
3207
3208 * symtab.c (rbreak_command): Ignore Windows drive colon.
3209
6a17d503
SM
32102020-06-12 Simon Marchi <simon.marchi@efficios.com>
3211
3212 * NEWS: Mention removed GDBserver host support.
3213
453c733f
NC
32142020-06-12 Nelson Chu <nelson.chu@sifive.com>
3215
3216 * features/riscv/rebuild-csr-xml.sh: Updated.
3217
2b4e6a3f
TT
32182020-06-11 Tom Tromey <tom@tromey.com>
3219
3220 PR gdb/18318:
3221 * c-exp.y (lex_one_token): Handle 'p' like 'e'.
3222
4412332f
JG
32232020-06-09 Jonny Grant <jg@jguk.org>
32242020-06-09 Simon Marchi <simon.marchi@polymtl.ca>
3225
3226 * main.c (captured_main_1): Don't print new line after help.
3227 (print_gdb_help): add mailing list and IRC channel information
3228 to --help. Add new lines between items in the footer. Remove
3229 quotes around bug url.
3230
2f33032a
KS
32312020-06-11 Keith Seitz <keiths@redhat.com>
3232
3233 PR gdb/21356
3234 * gdbtypes.c (resolve_dynamic_union, resolve_dynamic_struct):
3235 Resolve typedefs for type length calculations.
3236
7ab96794
TV
32372020-06-10 Tom de Vries <tdevries@suse.de>
3238
3239 PR ada/24713
3240 * dwarf2/index-write.c (struct mapped_symtab): Add m_string_obstack.
3241 (write_psymbols): Enable .gdb_index for ada.
3242 * dwarf2/read.c: Remove comment stating .gdb_index is unsupported for
3243 ada.
3244
e5f3ece2
TV
32452020-06-10 Tom de Vries <tdevries@suse.de>
3246
3247 * dwarf2/read.c (dw2_symtab_iter_init_common): Factor out of ...
3248 (dw2_symtab_iter_init): ... here. Add variant with "offset_type
3249 namei" instead of "const char *name" argument.
3250 (dw2_map_matching_symbols): Use "offset_type namei" variant of
3251 dw2_symtab_iter_init.
3252
940da03e
SM
32532020-06-08 Simon Marchi <simon.marchi@efficios.com>
3254
3255 * gdbtypes.h (TYPE_FIELD_TYPE): Remove. Change all call sites
3256 to use type::field and field::type instead.
3257
b6cdac4b
SM
32582020-06-08 Simon Marchi <simon.marchi@efficios.com>
3259
3260 * gdbtypes.h (FIELD_TYPE): Remove. Change all call sites
3261 to use field::type instead.
3262
5d14b6e5
SM
32632020-06-08 Simon Marchi <simon.marchi@efficios.com>
3264
3265 * gdbtypes.h (struct field) <type, set_type>: New methods.
3266 Rename `type` field to...
3267 <m_type>: ... this. Change references throughout to use type or
3268 set_type methods.
3269 (FIELD_TYPE): Use field::type. Change call sites that modify
3270 the field's type to use field::set_type instead.
3271
3d967001
SM
32722020-06-08 Simon Marchi <simon.marchi@efficios.com>
3273
3274 * gdbtypes.h (TYPE_INDEX_TYPE): Remove. Change all call sites
3275 to use type::index_type instead.
3276
262abc0d
SM
32772020-06-08 Simon Marchi <simon.marchi@efficios.com>
3278
3279 * gdbtypes.h (struct type) <index_type, set_index_type>: New
3280 methods.
3281 (TYPE_INDEX_TYPE): Use type::index_type.
3282 * gdbtypes.c (create_array_type_with_stride): Likewise.
3283
82836c92
TT
32842020-06-07 Tom Tromey <tom@tromey.com>
3285
3286 * valprint.c (generic_val_print_float): Remove "embedded_offset"
3287 parameter.
3288 (generic_value_print): Update.
3289
940dace9
AB
32902020-06-05 Andrew Burgess <andrew.burgess@embecosm.com>
3291
3292 Revert commit 982a38f60b0.
3293 * python/py-tui.c (gdbpy_tui_set_title): Restore use of get.
3294
982a38f6
AB
32952020-06-05 Andrew Burgess <andrew.burgess@embecosm.com>
3296
3297 * python/py-tui.c (gdbpy_tui_set_title): Use release, not get, to
3298 avoid use after free.
3299
82f06518
TV
33002020-06-05 Tom de Vries <tdevries@suse.de>
3301
3302 * NEWS: Fix typos.
3303
f8c41851
SM
33042020-06-04 Simon Marchi <simon.marchi@efficios.com>
3305
3306 * dwarf2/read.c (dwarf2_read_gdb_index): Save partial_symtabs in
3307 the per_bfd object.
3308 (dwarf2_read_debug_names): Likewise.
3309 (dwarf2_initialize_objfile): Use partial_symtabs from per_bfd
3310 object when re-using a per_bfd object with an index.
3311
f9b5d5ea
TV
33122020-06-03 Tom de Vries <tdevries@suse.de>
3313
3314 PR symtab/26046
3315 * dwarf2/read.c (scan_partial_symbols): Recurse into DW_TAG_subprogram
3316 children for C++.
3317 (load_partial_dies): Don't skip DW_TAG_inlined_subroutine child of
3318 DW_TAG_subprogram.
3319
f6eee2d0
AB
33202020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
3321
3322 * ada-lang.c (ada_language_data): Delete skip_trampoline
3323 initializer.
3324 * c-lang.c (c_language_data): Likewise.
3325 (cplus_language_data): Likewise.
3326 (cplus_language::skip_trampoline): New member function.
3327 (asm_language_data): Delete skip_trampoline initializer.
3328 (minimal_language_data): Likewise.
3329 * d-lang.c (d_language_data): Likewise.
3330 * f-lang.c (f_language_data): Likewise.
3331 * go-lang.c (go_language_data): Likewise.
3332 * language.c (unk_lang_trampoline): Delete function.
3333 (skip_language_trampoline): Update.
3334 (unknown_language_data): Delete skip_trampoline initializer.
3335 (auto_language_data): Likewise.
3336 * language.h (language_data): Delete skip_trampoline field.
3337 (language_defn::skip_trampoline): New function.
3338 * m2-lang.c (m2_language_data): Delete skip_trampoline
3339 initializer.
3340 * objc-lang.c (objc_skip_trampoline): Delete function, move
3341 implementation to objc_language::skip_trampoline.
3342 (objc_language_data): Delete skip_trampoline initializer.
3343 (objc_language::skip_trampoline): New member function with
3344 implementation from objc_skip_trampoline.
3345 * opencl-lang.c (opencl_language_data): Delete skip_trampoline
3346 initializer.
3347 * p-lang.c (pascal_language_data): Likewise.
3348 * rust-lang.c (rust_language_data): Likewise.
3349
0a50df5d
AB
33502020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
3351
3352 * ada-lang.c (ada_language_data): Delete la_demangle initializer.
3353 (ada_language::demangle): New member function.
3354 * c-lang.c (c_language_data): Delete la_demangle initializer.
3355 (cplus_language_data): Delete la_demangle initializer.
3356 (cplus_language::demangle): New member function.
3357 (asm_language_data): Delete la_demangle initializer.
3358 (minimal_language_data): Delete la_demangle initializer.
3359 * d-lang.c (d_language_data): Delete la_demangle initializer.
3360 (d_language::demangle): New member function.
3361 * f-lang.c (f_language_data): Delete la_demangle initializer.
3362 (f_language::demangle): New member function.
3363 * go-lang.c (go_language_data): Delete la_demangle initializer.
3364 (go_language::demangle): New member function.
3365 * language.c (language_demangle): Update.
3366 (unk_lang_demangle): Delete.
3367 (unknown_language_data): Delete la_demangle initializer.
3368 (unknown_language::demangle): New member function.
3369 (auto_language_data): Delete la_demangle initializer.
3370 (auto_language::demangle): New member function.
3371 * language.h (language_data): Delete la_demangle field.
3372 (language_defn::demangle): New function.
3373 * m2-lang.c (m2_language_data): Delete la_demangle initializer.
3374 * objc-lang.c (objc_language_data): Delete la_demangle
3375 initializer.
3376 (objc_language::demangle): New member function.
3377 * opencl-lang.c (opencl_language_data): Delete la_demangle
3378 initializer.
3379 * p-lang.c (pascal_language_data): Likewise.
3380 * rust-lang.c (rust_language_data): Likewise.
3381 (rust_language::demangle): New member function.
3382
fbfb0a46
AB
33832020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
3384
3385 * ada-lang.c (ada_language_data): Delete la_print_type
3386 initializer.
3387 (ada_language::print_type): New member function.
3388 * c-lang.c (c_language_data): Delete la_print_type initializer.
3389 (c_language::print_type): New member function.
3390 (cplus_language_data): Delete la_print_type initializer.
3391 (cplus_language::print_type): New member function.
3392 (asm_language_data): Delete la_print_type initializer.
3393 (asm_language::print_type): New member function.
3394 (minimal_language_data): Delete la_print_type initializer.
3395 (minimal_language::print_type): New member function.
3396 * d-lang.c (d_language_data): Delete la_print_type initializer.
3397 (d_language::print_type): New member function.
3398 * f-lang.c (f_language_data): Delete la_print_type initializer.
3399 (f_language::print_type): New member function.
3400 * go-lang.c (go_language_data): Delete la_print_type initializer.
3401 (go_language::print_type): New member function.
3402 * language.c (unk_lang_print_type): Delete.
3403 (unknown_language_data): Delete la_print_type initializer.
3404 (unknown_language::print_type): New member function.
3405 (auto_language_data): Delete la_print_type initializer.
3406 (auto_language::print_type): New member function.
3407 * language.h (language_data): Delete la_print_type field.
3408 (language_defn::print_type): New function.
3409 (LA_PRINT_TYPE): Update.
3410 * m2-lang.c (m2_language_data): Delete la_print_type initializer.
3411 (m2_language::print_type): New member function.
3412 * objc-lang.c (objc_language_data): Delete la_print_type
3413 initializer.
3414 (objc_language::print_type): New member function.
3415 * opencl-lang.c (opencl_print_type): Delete, implementation moved
3416 to opencl_language::print_type.
3417 (opencl_language_data): Delete la_print_type initializer.
3418 (opencl_language::print_type): New member function, implementation
3419 from opencl_print_type.
3420 * p-lang.c (pascal_language_data): Delete la_print_type
3421 initializer.
3422 (pascal_language::print_type): New member function.
3423 * rust-lang.c (rust_print_type): Delete, implementation moved to
3424 rust_language::print_type.
3425 (rust_language_data): Delete la_print_type initializer.
3426 (rust_language::print_type): New member function, implementation
3427 from rust_print_type.
3428
6f827019
AB
34292020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
3430
3431 * ada-lang.c (ada_sniff_from_mangled_name): Delete function,
3432 implementation moves to...
3433 (ada_language::sniff_from_mangled_name): ...here. Update return
3434 type.
3435 (ada_language_data): Delete la_sniff_from_mangled_name
3436 initializer.
3437 * c-lang.c (c_language_data): Likewise.
3438 (cplus_language_data): Likewise.
3439 (cplus_language::sniff_from_mangled_name): New member function,
3440 implementation taken from gdb_sniff_from_mangled_name.
3441 (asm_language_data): Delete la_sniff_from_mangled_name
3442 initializer.
3443 (minimal_language_data): Likewise.
3444 * cp-support.c (gdb_sniff_from_mangled_name): Delete,
3445 implementation moves to cplus_language::sniff_from_mangled_name.
3446 * cp-support.h (gdb_sniff_from_mangled_name): Delete declaration.
3447 * d-lang.c (d_sniff_from_mangled_name): Delete, implementation
3448 moves to...
3449 (d_language::sniff_from_mangled_name): ...here.
3450 (d_language_data): Delete la_sniff_from_mangled_name initializer.
3451 * f-lang.c (f_language_data): Likewise.
3452 * go-lang.c (go_sniff_from_mangled_name): Delete, implementation
3453 moves to...
3454 (go_language::sniff_from_mangled_name): ...here.
3455 (go_language_data): Delete la_sniff_from_mangled_name initializer.
3456 * language.c (language_sniff_from_mangled_name): Delete.
3457 (unknown_language_data): Delete la_sniff_from_mangled_name
3458 initializer.
3459 (auto_language_data): Likewise.
3460 * language.h (language_data): Delete la_sniff_from_mangled_name
3461 field.
3462 (language_defn::sniff_from_mangled_name): New function.
3463 (language_sniff_from_mangled_name): Delete declaration.
3464 * m2-lang.c (m2_language_data): Delete la_sniff_from_mangled_name
3465 field.
3466 * objc-lang.c (objc_sniff_from_mangled_name): Delete,
3467 implementation moves to...
3468 (objc_language::sniff_from_mangled_name): ...here.
3469 (objc_language_data): Delete la_sniff_from_mangled_name initializer.
3470 * opencl-lang.c (opencl_language_data): Likewise.
3471 * p-lang.c (pascal_language_data): Likewise.
3472 * rust-lang.c (rust_sniff_from_mangled_name): Delete,
3473 implementation moves to...
3474 (rust_language::sniff_from_mangled_name): ...here.
3475 (rust_language_data): Delete la_sniff_from_mangled_name
3476 initializer.
3477 * symtab.c (symbol_find_demangled_name): Call
3478 sniff_from_mangled_name member function.
3479
fb8006fd
AB
34802020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
3481
3482 * ada-lang.c (ada_language_data): Delete la_search_name_hash
3483 initializer.
3484 * c-lang.c (c_language_data): Likewise.
3485 (cplus_language_data): Likewise.
3486 (cplus_language::search_name_hash): New member function.
3487 (asm_language_data): Delete la_search_name_hash initializer.
3488 (minimal_language_data): Likewise.
3489 * d-lang.c (d_language_data): Likewise.
3490 * dictionary.c (default_search_name_hash): Rename to...
3491 (language_defn::search_name_hash): ...this.
3492 * f-lang.c (f_language_data): Likewise.
3493 (f_language::search_name_hash): New member function.
3494 * go-lang.c (go_language_data): Delete la_search_name_hash
3495 initializer.
3496 * language.c (unknown_language_data): Likewise.
3497 (auto_language_data): Likewise.
3498 * language.h (struct language_data): Delete la_search_name_hash
3499 field.
3500 (language_defn::search_name_hash): Declare new member function.
3501 (default_search_name_hash): Delete declaration.
3502 * m2-lang.c (m2_language_data): Delete la_search_name_hash
3503 initializer.
3504 * objc-lang.c (objc_language_data): Likewise.
3505 * opencl-lang.c (opencl_language_data): Likewise.
3506 * p-lang.c (pascal_language_data): Likewise.
3507 * rust-lang.c (rust_language_data): Likewise.
3508 * symtab.c (search_name_hash): Update call.
3509
8e25bafe
AB
35102020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
3511
3512 * ada-lang.c (ada_language_data): Delete la_get_compile_instance
3513 initializer.
3514 * c-lang.c (class compile_instance): Declare.
3515 (c_language_data): Delete la_get_compile_instance initializer.
3516 (c_language::get_compile_instance): New member function.
3517 (cplus_language_data): Delete la_get_compile_instance initializer.
3518 (cplus_language::get_compile_instance): New member function.
3519 (asm_language_data): Delete la_get_compile_instance initializer.
3520 (minimal_language_data): Likewise.
3521 * c-lang.h (c_get_compile_context): Update comment.
3522 (cplus_get_compile_context): Update comment.
3523 * compile/compile.c (compile_to_object): Update calls, don't rely
3524 on function pointer being NULL.
3525 * d-lang.c (d_language_data): Delete la_get_compile_instance
3526 initializer.
3527 * f-lang.c (f_language_data): Likewise.
3528 * go-lang.c (go_language_data): Likewise.
3529 * language.c (unknown_language_data): Likewise.
3530 (auto_language_data): Likewise.
3531 * language.h (language_data): Delete la_get_compile_instance field.
3532 (language_defn::get_compile_instance): New member function.
3533 * m2-lang.c (m2_language_data): Delete la_get_compile_instance
3534 initializer.
3535 * objc-lang.c (objc_language_data): Likewise.
3536 * opencl-lang.c (opencl_language_data): Likewise.
3537 * p-lang.c (pascal_language_data): Likewise.
3538 * rust-lang.c (rust_language_data): Likewise.
3539
4009ee92
AB
35402020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
3541
3542 * ada-lang.c (ada_add_all_symbols): Update comment.
3543 (ada_iterate_over_symbols): Delete, move implementation to...
3544 (ada_language::iterate_over_symbols): ...here, a new member
3545 function, rewrite to use range based for loop.
3546 (ada_language_data): Delete la_iterate_over_symbols initializer.
3547 * c-lang.c (c_language_data): Likewise.
3548 (cplus_language_data): Likewise.
3549 (asm_language_data): Likewise.
3550 (minimal_language_data): Likewise.
3551 * d-lang.c (d_language_data): Likewise.
3552 * f-lang.c (f_language_data): Likewise.
3553 * go-lang.c (go_language_data): Likewise.
3554 * language.c (unknown_language_data): Likewise.
3555 (auto_language_data): Likewise.
3556 * language.h (language_data): Delete la_iterate_over_symbols field.
3557 (language_defn::iterate_over_symbols): New member function.
3558 (LA_ITERATE_OVER_SYMBOLS): Update.
3559 * linespec.c (iterate_over_all_matching_symtabs): Update.
3560 * m2-lang.c (m2_language_data): Delete la_iterate_over_symbols
3561 initializer.
3562 * objc-lang.c (objc_language_data): Likewise.
3563 * opencl-lang.c (opencl_language_data): Likewise.
3564 * p-lang.c (pascal_language_data): Likewise.
3565 * rust-lang.c (rust_language_data): Likewise.
3566
54f4ca46
AB
35672020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
3568
3569 * ada-lang.c (ada_language_data): Delete
3570 la_lookup_transparent_type initializer.
3571 * c-lang.c (c_language_data): Likewise.
3572 (cplus_language_data): Likewise.
3573 (cplus_language::lookup_transparent_type): New member function.
3574 (asm_language_data): Delete la_lookup_transparent_type
3575 initializer.
3576 (minimal_language_data): Likewise.
3577 * d-lang.c (d_language_data): Likewise.
3578 * f-lang.c (f_language_data): Likewise.
3579 * go-lang.c (go_language_data): Likewise.
3580 * language.c (unknown_language_data): Likewise.
3581 (auto_language_data): Likewise.
3582 * language.h (struct language_data): Delete
3583 la_lookup_transparent_type field.
3584 (language_defn::lookup_transparent_type): New member function.
3585 * m2-lang.c (m2_language_data): Delete la_lookup_transparent_type
3586 initializer.
3587 * objc-lang.c (objc_language_data): Likewise.
3588 * opencl-lang.c (opencl_language_data): Likewise.
3589 * p-lang.c (pascal_language_data): Likewise.
3590 * rust-lang.c (rust_language_data): Likewise.
3591 * symtab.c (symbol_matches_domain): Update call.
3592
1fb314aa
AB
35932020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
3594
3595 * ada-lang.c (ada_language_arch_info): Delete function, move
3596 implementation to...
3597 (ada_language::language_arch_info): ...here, a new member
3598 function.
3599 (ada_language_data): Delete la_language_arch_info.
3600 * c-lang.c (c_language_data): Likewise.
3601 (c_language::language_arch_info): New member function.
3602 (cplus_language_arch_info): Delete function, move
3603 implementation to...
3604 (cplus_language::language_arch_info): ...here, a new member
3605 function.
3606 (cplus_language_data): Delete la_language_arch_info.
3607 (asm_language_data): Likewise.
3608 (asm_language::language_arch_info): New member function.
3609 (minimal_language_data): Delete la_language_arch_info.
3610 (minimal_language::language_arch_info): New member function.
3611 * d-lang.c (d_language_arch_info): Delete function, move
3612 implementation to...
3613 (d_language::language_arch_info): ...here, a new member
3614 function.
3615 (d_language_data): Delete la_language_arch_info.
3616 * f-lang.c (f_language_arch_info): Delete function, move
3617 implementation to...
3618 (f_language::language_arch_info): ...here, a new member
3619 function.
3620 (f_language_data): Delete la_language_arch_info.
3621 * go-lang.c (go_language_arch_info): Delete function, move
3622 implementation to...
3623 (go_language::language_arch_info): ...here, a new member
3624 function.
3625 (go_language_data): Delete la_language_arch_info.
3626 * language.c (unknown_language_data): Likewise.
3627 (unknown_language::language_arch_info): New member function.
3628 (auto_language_data): Delete la_language_arch_info.
3629 (auto_language::language_arch_info): New member function.
3630 (language_gdbarch_post_init): Update call to
3631 la_language_arch_info.
3632 * language.h (language_data): Delete la_language_arch_info
3633 function pointer.
3634 (language_defn::language_arch_info): New function.
3635 * m2-lang.c (m2_language_arch_info): Delete function, move
3636 implementation to...
3637 (m2_language::language_arch_info): ...here, a new member
3638 function.
3639 (m2_language_data): Delete la_language_arch_info.
3640 * objc-lang.c (objc_language_arch_info): Delete function, move
3641 implementation to...
3642 (objc_language::language_arch_info): ...here, a new member
3643 function.
3644 (objc_language_data): Delete la_language_arch_info.
3645 * opencl-lang.c (opencl_language_arch_info): Delete function, move
3646 implementation to...
3647 (opencl_language::language_arch_info): ...here, a new member
3648 function.
3649 (opencl_language_data): Delete la_language_arch_info.
3650 * p-lang.c (pascal_language_arch_info): Delete function, move
3651 implementation to...
3652 (pascal_language::language_arch_info): ...here, a new member
3653 function.
3654 (pascal_language_data): Delete la_language_arch_info.
3655 * rust-lang.c (rust_language_arch_info): Delete function, move
3656 implementation to...
3657 (rust_language::language_arch_info): ...here, a new member
3658 function.
3659 (rust_language_data): Delete la_language_arch_info.
3660
48448202
AB
36612020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
3662
3663 * ada-lang.c (ada_language_data): Delete la_pass_by_reference
3664 initializer.
3665 * c-lang.c (c_language_data): Likewise.
3666 (cplus_language_data): Likewise.
3667 (cplus_language::pass_by_reference_info): New method.
3668 (asm_language_data): Delete la_pass_by_reference initializer.
3669 (minimal_language_data): Likewise.
3670 * cp-abi.c (cp_pass_by_reference): Remove use of
3671 default_pass_by_reference.
3672 * d-lang.c (d_language_data): Likewise.
3673 * f-lang.c (f_language_data): Likewise.
3674 * gnu-v3-abi.c (gnuv3_pass_by_reference): Remove use of
3675 default_pass_by_reference.
3676 * go-lang.c (go_language_data): Likewise.
3677 * language.c (language_pass_by_reference): Update.
3678 (default_pass_by_reference): Delete.
3679 (unknown_language_data): Delete la_pass_by_reference
3680 initializer.
3681 (auto_language_data): Likewise.
3682 * language.h (struct language_data): Delete la_pass_by_reference
3683 field.
3684 (language_defn::pass_by_reference_info): New member function.
3685 (default_pass_by_reference): Delete declaration.
3686 * m2-lang.c (m2_language_data): Delete la_pass_by_reference
3687 initializer.
3688 * objc-lang.c (objc_language_data): Likewise.
3689 * opencl-lang.c (opencl_language_data): Likewise.
3690 * p-lang.c (pascal_language_data): Likewise.
3691 * rust-lang.c (rust_language_data): Likewise.
3692
15e5fd35
AB
36932020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
3694
3695 * ada-lang.c (ada_read_var_value): Delete function, move
3696 implementation to...
3697 (ada_language::read_var_value): ...here.
3698 (ada_language_data): Delete la_read_var_value initializer.
3699 * c-lang.c (c_language_data): Likewise.
3700 (cplus_language_data): Likewise.
3701 (minimal_language_data): Likewise.
3702 * d-lang.c (d_language_data): Likewise.
3703 * f-lang.c (f_language_data): Likewise.
3704 * findvar.c (default_read_var_value): Rename to...
3705 (language_defn::read_var_value): ...this.
3706 * findvar.c (read_var_value): Update header comment, and change to
3707 call member function instead of function pointer.
3708 * go-lang.c (go_language_data): Likewise.
3709 * language.c (unknown_language_data): Delete la_read_var_value
3710 initializer.
3711 (auto_language_data): Likewise.
3712 * language.h (struct language_data): Delete la_read_var_value
3713 field.
3714 (language_defn::read_var_value): New member function.
3715 (default_read_var_value): Delete declaration.
3716 * m2-lang.c (m2_language_data): Delete la_read_var_value
3717 initializer.
3718 * objc-lang.c (objc_language_data): Likewise.
3719 * opencl-lang.c (opencl_language_data): Likewise.
3720 * p-lang.c (pascal_language_data): Likewise.
3721 * rust-lang.c (rust_language_data): Likewise.
3722 * value.h (default_read_var_value): Delete declaration.
3723
5bd40f2a
AB
37242020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
3725
3726 * ada-lang.c (ada_print_array_index): Delete function, move
3727 implementation to...
3728 (ada_language::print_array_index): ...here.
3729 (ada_language_data): Delete la_print_array_index initializer.
3730 * c-lang.c (c_language_data): Likewise.
3731 (cplus_language_data): Likewise.
3732 (minimal_language_data): Likewise.
3733 * d-lang.c (d_language_data): Likewise.
3734 * f-lang.c (f_language_data): Likewise.
3735 * go-lang.c (go_language_data): Likewise.
3736 * language.c (default_print_array_index): Delete function, move
3737 implementation to...
3738 (language_defn::print_array_index): ...here.
3739 (unknown_language_data): Delete la_print_array_index initializer.
3740 (auto_language_data): Likewise.
3741 * language.h (struct language_data): Delete la_print_array_index
3742 field.
3743 (language_defn::print_array_index): New member function.
3744 (LA_PRINT_ARRAY_INDEX): Update.
3745 (default_print_array_index): Delete declaration.
3746 * m2-lang.c (m2_language_data): Delete la_print_array_index
3747 initializer.
3748 * objc-lang.c (objc_language_data): Likewise.
3749 * opencl-lang.c (opencl_language_data): Likewise.
3750 * p-lang.c (pascal_language_data): Likewise.
3751 * rust-lang.c (rust_language_data): Likewise.
3752
0874fd07
AB
37532020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
3754
3755 * gdb/ada-lang.c (ada_language_defn): Convert to...
3756 (ada_language_data): ...this.
3757 (class ada_language): New class.
3758 (ada_language_defn): New static global.
3759 * gdb/c-lang.c (c_language_defn): Convert to...
3760 (c_language_data): ...this.
3761 (class c_language): New class.
3762 (c_language_defn): New static global.
3763 (cplus_language_defn): Convert to...
3764 (cplus_language_data): ...this.
3765 (class cplus_language): New class.
3766 (cplus_language_defn): New static global.
3767 (asm_language_defn): Convert to...
3768 (asm_language_data): ...this.
3769 (class asm_language): New class.
3770 (asm_language_defn): New static global.
3771 (minimal_language_defn): Convert to...
3772 (minimal_language_data): ...this.
3773 (class minimal_language): New class.
3774 (minimal_language_defn): New static global.
3775 * gdb/d-lang.c (d_language_defn): Convert to...
3776 (d_language_data): ...this.
3777 (class d_language): New class.
3778 (d_language_defn): New static global.
3779 * gdb/f-lang.c (f_language_defn): Convert to...
3780 (f_language_data): ...this.
3781 (class f_language): New class.
3782 (f_language_defn): New static global.
3783 * gdb/go-lang.c (go_language_defn): Convert to...
3784 (go_language_data): ...this.
3785 (class go_language): New class.
3786 (go_language_defn): New static global.
3787 * gdb/language.c (unknown_language_defn): Remove declaration.
3788 (current_language): Initialize to nullptr, real initialization is
3789 moved to _initialize_language.
3790 (languages): Delete global.
3791 (language_defn::languages): Define.
3792 (set_language_command): Use language_defn::languages.
3793 (set_language): Likewise.
3794 (range_error): Likewise.
3795 (language_enum): Likewise.
3796 (language_def): Likewise.
3797 (add_set_language_command): Use language_def::languages for the
3798 language list, and language_def to lookup language pointers.
3799 (skip_language_trampoline): Use language_defn::languages.
3800 (unknown_language_defn): Convert to...
3801 (unknown_language_data): ...this.
3802 (class unknown_language): New class.
3803 (unknown_language_defn): New static global.
3804 (auto_language_defn): Convert to...
3805 (auto_language_data): ...this.
3806 (class auto_language): New class.
3807 (auto_language_defn): New static global.
3808 (language_gdbarch_post_init): Use language_defn::languages.
3809 (_initialize_language): Initialize current_language.
3810 * gdb/language.h (struct language_defn): Rename to...
3811 (struct language_data): ...this.
3812 (struct language_defn): New.
3813 (auto_language_defn): Delete.
3814 (unknown_language_defn): Delete.
3815 (minimal_language_defn): Delete.
3816 (ada_language_defn): Delete.
3817 (asm_language_defn): Delete.
3818 (c_language_defn): Delete.
3819 (cplus_language_defn): Delete.
3820 (d_language_defn): Delete.
3821 (f_language_defn): Delete.
3822 (go_language_defn): Delete.
3823 (m2_language_defn): Delete.
3824 (objc_language_defn): Delete.
3825 (opencl_language_defn): Delete.
3826 (pascal_language_defn): Delete.
3827 (rust_language_defn): Delete.
3828 * gdb/m2-lang.c (m2_language_defn): Convert to...
3829 (m2_language_data): ...this.
3830 (class m2_language): New class.
3831 (m2_language_defn): New static global.
3832 * gdb/objc-lang.c (objc_language_defn): Convert to...
3833 (objc_language_data): ...this.
3834 (class objc_language): New class.
3835 (objc_language_defn): New static global.
3836 * gdb/opencl-lang.c (opencl_language_defn): Convert to...
3837 (opencl_language_data): ...this.
3838 (class opencl_language): New class.
3839 (opencl_language_defn): New static global.
3840 * gdb/p-lang.c (pascal_language_defn): Convert to...
3841 (pascal_language_data): ...this.
3842 (class pascal_language): New class.
3843 (pascal_language_defn): New static global.
3844 * gdb/rust-exp.y (rust_lex_tests): Use language_def to find
3845 language pointer, update comment format.
3846 * gdb/rust-lang.c (rust_language_defn): Convert to...
3847 (rust_language_data): ...this.
3848 (class rust_language): New class.
3849 (rust_language_defn): New static global.
3850
1313c56e
AB
38512020-06-01 Andrew Burgess <andrew.burgess@embecosm.com>
3852
3853 * dwarf2/read.c (class lnp_state_machine) <m_last_address>: New
3854 member variable.
3855 <m_stmt_at_address>: New member variable.
3856 (lnp_state_machine::record_line): Don't record some lines, update
3857 tracking of is_stmt at the same address.
3858 (lnp_state_machine::lnp_state_machine): Initialise new member
3859 variables.
3860
b7ed9f3d
ST
38612020-06-01 Samuel Thibault <samuel.thibault@ens-lyon.org>
3862
3863 * config/i386/i386gnu.mn [%_S.o %_U.o] (COMPILE.post): Add
3864 "-include gnu-nat-mig.h".
3865 * gnu-nat-mig.h: New file.
3866 * gnu-nat.c: Include "gnu-nat-mig.h".
3867 (exc_server, msg_reply_server, notify_server,
3868 process_reply_server): Remove declarations.
3869
14a8ad62
ST
38702020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
3871
3872 * gnu-nat.h (inf_validate_procs, inf_suspend, inf_set_traced,
3873 steal_exc_port, proc_get_state, inf_clear_wait, inf_cleanup,
3874 inf_startup, inf_update_suspends, inf_set_pid, inf_steal_exc_ports,
3875 inf_validate_procinfo, inf_validate_task_sc, inf_restore_exc_ports,
3876 inf_set_threads_resume_sc, inf_set_threads_resume_sc_for_signal_thread,
3877 inf_resume, inf_set_step_thread, inf_detach, inf_attach, inf_signal,
3878 inf_continue, make_proc, proc_abort, _proc_free, proc_update_sc,
3879 proc_get_exception_port, proc_set_exception_port, _proc_get_exc_port,
3880 proc_steal_exc_port, proc_restore_exc_port, proc_trace): Move functions
3881 to gnu_nat_target class.
3882 * gnu-nat.c: Likewise.
3883 (inf_update_procs, S_proc_wait_reply, set_task_pause_cmd,
3884 set_task_exc_port_cmd, set_signals_cmd, set_thread_pause_cmd,
3885 set_thread_exc_port_cmd): Call inf_validate_procs through gnu_target
3886 object.
3887 (gnu_nat_target::create_inferior, gnu_nat_target::detach): Pass `this'
3888 instead of `gnu_target'.
3889
0af5e106
ST
38902020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
3891
3892 * i386-gnu-tdep.c: Include "gdbcore.h"
3893 (gnu_sigtramp_code, i386_gnu_sc_reg_offset): New arrays.
3894 (GNU_SIGTRAMP_LEN, GNU_SIGTRAMP_TAIL,
3895 I386_GNU_SIGCONTEXT_THREAD_STATE_OFFSET): New macros
3896 (i386_gnu_sigtramp_start, i386_gnu_sigtramp_p,
3897 i386_gnu_sigcontext_addr): New functions
3898 (i386gnu_init_abi): Register i386_gnu_sigtramp_p,
3899 i386_gnu_sigcontext_addr, and i386_gnu_sc_reg_offset in the gdbarch
3900 tdep.
3901
078f2fc9
ST
39022020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
3903
3904 * gnu-nat.c (gnu_nat_target::create_inferior): Move push_target call
3905 before fork_inferior call. Avoid calling it if target_is_pushed returns
3906 true.
3907
53dff92c
ST
39082020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
3909
3910 * gnu-nat.h (gnu_target): New variable declaration.
3911 * i386-gnu-nat.c (_initialize_i386gnu_nat): Initialize
3912 gnu_target.
3913 * gnu-nat.c (gnu_target): New variable.
3914 (inf_validate_procs): Pass gnu_target to thread_change_ptid,
3915 add_thread_silent, and add_thread calls.
3916 (gnu_nat_target::create_inferior): Pass gnu_target to
3917 add_thread_silent, thread_change_ptid call.
3918 (gnu_nat_target::detach): Pass gnu_target to detach_inferior
3919 call.
3920
5a8b8627
ST
39212020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
3922
3923 * gnu-nat.c (gnu_xfer_auxv): Remove unused `res' variable.
3924 (gnu_nat_target::find_memory_regions): Remove unused
3925 `old_address' variable.
3926
366f550a
ST
39272020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
3928
3929 * gnu-nat.c: Include "gdbarch.h".
3930
f14871bf
ST
39312020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
3932
3933 * reply_mig_hack.awk (Error return): Cast function through
3934 void *, to bypass compiler function call check.
3935
c6887cfb
ST
39362020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
3937
3938 * config/i386/i386gnu.mn (%_reply_S.c): Add dependency on
3939 $(srcdir)/reply_mig_hack.awk.
3940
6930bffe
ST
39412020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
3942
3943 * gnu-nat.h (gnu_debug_flag): Set type to bool.
3944
112c22ed
JG
39452020-05-30 Jonny Grant <jg@jguk.org>
3946
3947 * configure.ac (ACX_BUGURL): change bug URL to https.
3948
f68f85b5
PA
39492020-05-30 Pedro Alves <palves@redhat.com>
3950
3951 * cp-support.c (replace_typedefs_template): New.
3952 (replace_typedefs_qualified_name): Handle
3953 DEMANGLE_COMPONENT_TEMPLATE.
3954
976ca316
SM
39552020-05-29 Simon Marchi <simon.marchi@efficios.com>
3956
3957 * dwarf2/comp-unit.c, dwarf2/comp-unit.h, dwarf2/index-cache.c,
3958 dwarf2/index-cache.h, dwarf2/index-write.c,
3959 dwarf2/index-write.h, dwarf2/line-header.c,
3960 dwarf2/line-header.h, dwarf2/macro.c, dwarf2/macro.h,
3961 dwarf2/read.c, dwarf2/read.h: Rename struct dwarf2_per_objfile
3962 variables and fields from `dwarf2_per_objfile` to just
3963 `per_objfile` throughout.
3964
989ade05
SM
39652020-05-28 Simon Marchi <simon.marchi@polymtl.ca>
3966
3967 * dwarf2/loc.c (class dwarf_evaluate_loc_desc)
3968 <push_dwarf_reg_entry_value>: Add comment.
3969
c47bae85
KB
39702020-05-28 Kevin Buettner <kevinb@redhat.com>
3971 Keith Seitz <keiths@redhat.com>
3972
3973 * python/python.c (do_start_initialization): Call PyEval_SaveThread
3974 instead of PyEval_ReleaseLock.
3975 (class gdbpy_gil): Move to earlier in file.
3976 (finalize_python): Set gdb_python_initialized.
3977 (gdbpy_check_quit_flag): Acquire GIL via gdbpy_gil. Return early
3978 when not initialized.
3979
44486dcf
SM
39802020-05-28 Simon Marchi <simon.marchi@efficios.com>
3981
3982 * dwarf2/loc.c (class dwarf_evaluate_loc_desc)
3983 <push_dwarf_reg_entry_value>: Remove assert. Override
3984 per_objfile with caller_per_objfile.
3985
f030440d
TV
39862020-05-28 Tom de Vries <tdevries@suse.de>
3987
3988 * dwarf2/read.c (dw2_symtab_iter_next, dw2_expand_marked_cus): Limit
3989 PR gold/15646 workaround to symbol kind "type".
3990
f0fbb768
TT
39912020-05-27 Tom Tromey <tromey@adacore.com>
3992
3993 * dwarf2/read.c (load_partial_dies): Use add_partial_symbol.
3994
af0b2a3e
TT
39952020-05-27 Tom Tromey <tromey@adacore.com>
3996
3997 * dwarf2/abbrev.h (struct abbrev_table) <lookup_abbrev>: Inline.
3998 Use htab_find_with_hash.
3999 <add_abbrev>: Remove "abbrev_number" parameter.
4000 * dwarf2/abbrev.c (abbrev_table::add_abbrev): Remove
4001 "abbrev_number" parameter. Use htab_find_slot_with_hash.
4002 (hash_abbrev): Add comment.
4003 (abbrev_table::lookup_abbrev): Move to header file.
4004 (abbrev_table::read): Update.
4005
7d00ffec
TT
40062020-05-27 Tom Tromey <tromey@adacore.com>
4007
4008 * dwarf2/read.c (struct partial_die_info) <name>: Declare new
4009 method.
4010 <canonical_name>: New member.
4011 <raw_name>: Rename from "name".
4012 (partial_die_info): Initialize canonical_name.
4013 (scan_partial_symbols): Check raw_name.
4014 (partial_die_parent_scope, partial_die_full_name)
4015 (add_partial_symbol, add_partial_subprogram)
4016 (add_partial_enumeration, load_partial_dies): Use "name" method.
4017 (partial_die_info::name): New method.
4018 (partial_die_info::read, guess_partial_die_structure_name)
4019 (partial_die_info::fixup): Update.
4020
697bba18
TT
40212020-05-27 Tom Tromey <tromey@adacore.com>
4022
4023 * dwarf2/attribute.h (struct attribute) <form_is_ref>: Inline.
4024 <get_ref_die_offset>: Inline.
4025 <get_ref_die_offset_complaint>: New method.
4026 * dwarf2/attribute.c (attribute::form_is_ref): Move to header.
4027 (attribute::get_ref_die_offset_complaint): Rename from
4028 get_ref_die_offset. Just issue complaint.
4029
c17ace43
HD
40302020-05-27 Hannes Domani <ssbssa@yahoo.de>
4031
4032 * cli/cli-cmds.c (shell_escape): Move exit_status_set_internal_vars.
4033
96445f0b
HD
40342020-05-27 Hannes Domani <ssbssa@yahoo.de>
4035
4036 * exec.c (exec_file_attach): Use errno value of first openp failure.
4037
ac637ec3
HD
40382020-05-27 Hannes Domani <ssbssa@yahoo.de>
4039
4040 * nat/windows-nat.c (windows_thread_info::~windows_thread_info):
4041 Don't close thread handle.
4042
17ee85fc
TT
40432020-05-27 Tom Tromey <tom@tromey.com>
4044 Simon Marchi <simon.marchi@efficios.com>
4045
4046 * objfiles.h (struct objfile) <partial_symtabs>: Now a
4047 shared_ptr.
4048 * dwarf2/read.h (struct dwarf2_per_objfile) <partial_symtabs>: New
4049 member.
4050 * dwarf2/read.c (dwarf2_per_bfd_bfd_data_key,
4051 dwarf2_per_bfd_objfile_data_key>: New globals.
4052 (dwarf2_has_info): Use shared dwarf2_per_bfd if possible.
4053 (dwarf2_get_section_info): Use get_dwarf2_per_objfile.
4054 (dwarf2_initialize_objfile): Consider cases where per_bfd can be
4055 shared.
4056 (dwarf2_build_psymtabs): Set objfile::partial_symtabs and
4057 short-circuit when sharing.
4058 (dwarf2_build_psymtabs): Set dwarf2_per_objfile::partial_symtabs.
4059 (dwarf2_psymtab::expand_psymtab): Use free_cached_comp_units.
4060
39b16f87
SM
40612020-05-27 Simon Marchi <simon.marchi@efficios.com>
4062
4063 * dwarf2/read.h (struct dwarf2_per_bfd) <line_header_hash>: Move
4064 to...
4065 (struct dwarf2_per_objfile) <line_header_hash>: ... here.
4066 * dwarf2/read.c (handle_DW_AT_stmt_list): Update.
4067
fcf23d5b
SM
40682020-05-27 Simon Marchi <simon.marchi@efficios.com>
4069
4070 * dwarf2/read.c (struct mapped_index_base) <symbol_name_at,
4071 build_name_components, find_name_components_bounds>:
4072 Add per_objfile parameter.
4073 (struct mapped_index) <symbol_name_at>: Likewise.
4074 (struct mapped_debug_names): Remove constructor.
4075 <dwarf2_per_objfile>: Remove field.
4076 <namei_to_name, symbol_name_at>: Add per_objfile parameter.
4077 (mapped_index_base::find_name_components_bounds,
4078 mapped_index_base::build_name_components,
4079 dw2_expand_symtabs_matching_symbol): Likewise.
4080 (class mock_mapped_index) <symbol_name_at>: Likewise.
4081 (check_match): Likewise.
4082 (check_find_bounds_finds): Likewise.
4083 (test_mapped_index_find_name_component_bounds): Update.
4084 (CHECK_MATCH): Update.
4085 (dw2_expand_symtabs_matching): Update.
4086 (class dw2_debug_names_iterator) <dw2_debug_names_iterator>: Add
4087 per_objfile parameter.
4088 <find_vec_in_debug_names>: Likewise.
4089 <m_per_objfile>: New field.
4090 (mapped_debug_names::namei_to_name): Add dwarf2_per_objfile
4091 parameter.
4092 (dw2_debug_names_iterator::find_vec_in_debug_names): Likewise.
4093 (dw2_debug_names_iterator::next): Update.
4094 (dw2_debug_names_lookup_symbol): Update.
4095 (dw2_debug_names_expand_symtabs_for_function): Update.
4096 (dw2_debug_names_map_matching_symbols): Update.
4097 (dw2_debug_names_expand_symtabs_matching): Update.
4098 (dwarf2_read_debug_names): Update.
4099
7188ed02
SM
41002020-05-27 Simon Marchi <simon.marchi@efficios.com>
4101
4102 * dwarf2/read.h (struct dwarf2_cu): Forward-declare.
4103 (struct dwarf2_per_bfd) <free_cached_comp_units>: Remove,
4104 move to dwarf2_per_objfile.
4105 <read_in_chain>: Remove.
4106 (struct dwarf2_per_objfile) <get_cu, set_cu, remove_cu,
4107 remove_all_cus, age_comp_units>: New methods.
4108 <m_dwarf2_cus>: New member.
4109 (struct dwarf2_per_cu_data) <cu>: Remove.
4110 * dwarf2/read.c (struct dwarf2_cu) <read_in_chain>: Remove.
4111 (age_cached_comp_units, free_one_cached_comp_unit): Remove,
4112 moved to methods of dwarf2_per_objfile.
4113 (dwarf2_clear_marks): Remove.
4114 (dwarf2_queue_item::~dwarf2_queue_item): Update.
4115 (dwarf2_per_bfd::~dwarf2_per_bfd): Don't free dwarf2_cus.
4116 (dwarf2_per_bfd::free_cached_comp_units): Remove.
4117 (dwarf2_per_objfile::remove_all_cus): New.
4118 (class free_cached_comp_units) <~free_cached_comp_units>:
4119 Update.
4120 (load_cu): Update.
4121 (dw2_do_instantiate_symtab): Adjust.
4122 (fill_in_sig_entry_from_dwo_entry): Adjust.
4123 (cutu_reader::init_tu_and_read_dwo_dies): Update.
4124 (cutu_reader::cutu_reader): Likewise.
4125 (cutu_reader::keep): Use dwarf2_per_objfile::set_cu.
4126 (cutu_reader::cutu_reader): Use dwarf2_per_objfile::get_cu.
4127 (process_psymtab_comp_unit): Use dwarf2_per_objfile::remove_cu
4128 and dwarf2_per_objfile::age_comp_units.
4129 (load_partial_comp_unit): Update.
4130 (maybe_queue_comp_unit): Use dwarf2_per_objfile::get_cu.
4131 (process_queue): Likewise.
4132 (find_partial_die): Use dwarf2_per_objfile::get_cu instead of cu
4133 backlink.
4134 (dwarf2_read_addr_index): Likewise.
4135 (follow_die_offset): Likewise.
4136 (dwarf2_fetch_die_loc_sect_off): Likewise.
4137 (dwarf2_fetch_constant_bytes): Likewise.
4138 (dwarf2_fetch_die_type_sect_off): Likewise.
4139 (follow_die_sig_1): Likewise.
4140 (load_full_type_unit): Likewise.
4141 (read_signatured_type): Likewise.
4142 (dwarf2_cu::dwarf2_cu): Don't set cu field.
4143 (dwarf2_cu::~dwarf2_cu): Remove.
4144 (dwarf2_per_objfile::get_cu): New.
4145 (dwarf2_per_objfile::set_cu): New.
4146 (age_cached_comp_units): Rename to...
4147 (dwarf2_per_objfile::age_comp_units): ... this. Adjust
4148 to std::unordered_map.
4149 (free_one_cached_comp_unit): Rename to...
4150 (dwarf2_per_objfile::remove_cu): ... this. Adjust
4151 to std::unordered_map.
4152 (dwarf2_per_objfile::~dwarf2_per_objfile): New.
4153 (dwarf2_mark_helper): Use dwarf2_per_objfile::get_cu, expect
4154 a dwarf2_per_objfile in data.
4155 (dwarf2_mark): Pass dwarf2_per_objfile in data to htab_traverse.
4156 (dwarf2_clear_marks): Remove.
4157
2e671100
SM
41582020-05-27 Simon Marchi <simon.marchi@efficios.com>
4159
4160 * dwarf2/read.c (class cutu_reader) <cutu_reader>: Replace
4161 `int use_existing_cu` parameter with `dwarf2_cu *existing_cu`.
4162 (init_tu_and_read_dwo_dies): Likewise.
4163 (cutu_reader::init_tu_and_read_dwo_dies): Likewise.
4164 (cutu_reader::cutu_reader): Likewise.
4165 (load_partial_comp_unit): Likewise.
4166 (process_psymtab_comp_unit): Update.
4167 (build_type_psymtabs_1): Update.
4168 (process_skeletonless_type_unit): Update.
4169 (load_full_comp_unit): Update.
4170 (find_partial_die): Update.
4171 (dwarf2_read_addr_index): Update.
4172 (read_signatured_type): Update.
4173
2e6a9f79
SM
41742020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
4175
4176 * dwarf2/read.h (struct dwarf2_per_cu_data) <m_header,
4177 m_header_read_in>: New fields.
4178 <get_header>: New method.
4179 * dwarf2/read.c (per_cu_header_read_in): Remove.
4180 (dwarf2_per_cu_data::get_header): New.
4181 (dwarf2_per_cu_data::addr_size): Update.
4182 (dwarf2_per_cu_data::offset_size): Update.
4183 (dwarf2_per_cu_data::ref_addr_size): Update.
4184
1b555f17
SM
41852020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
4186
4187 * dwarf2/read.c (load_cu): Return dwarf2_cu.
4188 (dw2_do_instantiate_symtab): Update.
4189 (queue_and_load_all_dwo_tus): Change parameter from
4190 dwarf2_per_cu_data to dwarf2_cu.
4191 (dwarf2_fetch_die_loc_sect_off): Update.
4192 (dwarf2_fetch_constant_bytes): Update.
4193 (dwarf2_fetch_die_type_sect_off): Update.
4194
8fc0b21d
SM
41952020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
4196
4197 * dwarf2/read.c (process_full_comp_unit,
4198 process_full_type_unit): Remove per_cu, per_objfile paramters.
4199 Add dwarf2_cu parameter.
4200 (process_queue): Update.
4201
168c9250
SM
42022020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
4203
4204 * dwarf2/read.c (create_cu_from_index_list): Replace
4205 dwarf2_per_objfile parameter with dwarf2_per_bfd.
4206 (create_cus_from_index_list): Likewise.
4207 (create_cus_from_index): Likewise.
4208 (create_signatured_type_table_from_index): Likewise.
4209 (create_cus_from_debug_names_list): Likewise.
4210 (create_cus_from_debug_names): Likewise.
4211 (dwarf2_read_gdb_index): Update.
4212 (dwarf2_read_debug_names): Update.
4213
e286671b
TT
42142020-05-27 Tom Tromey <tom@tromey.com>
4215 Simon Marchi <simon.marchi@efficios.com>
4216
4217 * dwarf2/read.h (struct dwarf2_per_objfile)
4218 <get_type_for_signatured_type, set_type_for_signatured_type>:
4219 New methods.
4220 <m_type_map>: New member.
4221 (struct signatured_type) <type>: Remove.
4222 * dwarf2/read.c
4223 (dwarf2_per_objfile::get_type_for_signatured_type,
4224 dwarf2_per_objfile::set_type_for_signatured_type): New.
4225 (get_signatured_type): Use new methods.
4226
8adb8487
TT
42272020-05-27 Tom Tromey <tom@tromey.com>
4228 Simon Marchi <simon.marchi@efficios.com>
4229
4230 * dwarf2/read.h (struct type_unit_group_unshareable): New.
4231 (struct dwarf2_per_objfile) <type_units>: New member.
4232 <get_type_unit_group_unshareable>: New method.
4233 * dwarf2/read.c (struct type_unit_group) <compunit_symtab,
4234 num_symtabs, symtabs>: Remove; move to
4235 type_unit_group_unshareable.
4236 (dwarf2_per_objfile::get_type_unit_group_unshareable): New.
4237 (process_full_type_unit, dwarf2_cu::setup_type_unit_groups)
4238 (dwarf2_cu::setup_type_unit_groups): Use type_unit_group_unshareable.
4239
127bbf4b
SM
42402020-05-27 Simon Marchi <simon.marchi@efficios.com>
4241
4242 * dwarf2/read.h (struct dwarf2_per_cu_data):
4243 <dwarf2_per_objfile>: Remove.
4244 * dwarf2/read.c (create_cu_from_index_list): Don't assign
4245 dwarf2_per_objfile.
4246 (create_signatured_type_table_from_index): Likewise.
4247 (create_signatured_type_table_from_debug_names): Likewise.
4248 (create_debug_type_hash_table): Likewise.
4249 (fill_in_sig_entry_from_dwo_entry): Likewise.
4250 (create_type_unit_group): Likewise.
4251 (read_comp_units_from_section): Likewise.
4252 (create_cus_hash_table): Likewise.
4253
f6e649dd
SM
42542020-05-27 Simon Marchi <simon.marchi@efficios.com>
4255
4256 * dwarf2/read.c (process_psymtab_comp_unit): Remove reference to
4257 dwarf2_per_cu_data::dwarf2_per_objfile.
4258 (compute_compunit_symtab_includes): Likewise.
4259 (dwarf2_cu::start_symtab): Likewise.
4260
aa66c379
SM
42612020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
4262
4263 * dwarf2/read.h (dwarf2_get_die_type): Add dwarf2_per_objfile
4264 parameter.
4265 * dwarf2/read.c (get_die_type_at_offset): Likewise.
4266 (read_namespace_alias): Update.
4267 (lookup_die_type): Update.
4268 (dwarf2_get_die_type): Add dwarf2_per_objfile parameter.
4269 * dwarf2/loc.c (class dwarf_evaluate_loc_desc) <get_base_type>:
4270 Update.
4271 (disassemble_dwarf_expression): Update.
4272
120ce1b5
SM
42732020-05-27 Simon Marchi <simon.marchi@efficios.com>
4274
4275 * dwarf2/read.h (struct dwarf2_queue_item): Add
4276 dwarf2_per_objfile parameter, assign new parameter.
4277 <per_objfile>: New field.
4278 * dwarf2/read.c (free_one_cached_comp_unit): Add
4279 dwarf2_per_objfile parameter.
4280 (queue_comp_unit): Likewise.
4281 (dw2_do_instantiate_symtab): Update.
4282 (process_psymtab_comp_unit): Update.
4283 (maybe_queue_comp_unit): Add dwarf2_per_objfile parameter.
4284 (process_imported_unit_die): Update.
4285 (queue_and_load_dwo_tu): Update.
4286 (follow_die_offset): Update.
4287 (follow_die_sig_1): Update.
4288
9f47c707
SM
42892020-05-27 Simon Marchi <simon.marchi@efficios.com>
4290
4291 * dwarf2/read.h (struct dwarf2_per_cu_data) <objfile>: Remove.
4292 * dwarf2/read.c (dwarf2_compute_name): Pass per_objfile down.
4293 (read_call_site_scope): Assign per_objfile.
4294 (dwarf2_per_cu_data::objfile): Remove.
4295 * gdbtypes.h (struct call_site) <per_objfile>: New member.
4296 * dwarf2/loc.h (dwarf2_evaluate_loc_desc): Add
4297 dwarf2_per_objfile parameter.
4298 * dwarf2/loc.c (dwarf2_evaluate_loc_desc_full): Add
4299 dwarf2_per_objfile parameter.
4300 (dwarf_expr_reg_to_entry_parameter): Add output
4301 dwarf2_per_objfile parameter.
4302 (locexpr_get_frame_base): Update.
4303 (class dwarf_evaluate_loc_desc) <get_tls_address>: Update.
4304 <push_dwarf_reg_entry_value>: Update.
4305 <call_site_to_target_addr>: Update.
4306 (dwarf_entry_parameter_to_value): Add dwarf2_per_objfile
4307 parameter.
4308 (value_of_dwarf_reg_entry): Update.
4309 (rw_pieced_value): Update.
4310 (indirect_synthetic_pointer): Update.
4311 (dwarf2_evaluate_property): Update.
4312 (dwarf2_loc_desc_get_symbol_read_needs): Add dwarf2_per_objfile
4313 parameter.
4314 (locexpr_read_variable): Update.
4315 (locexpr_get_symbol_read_needs): Update.
4316 (loclist_read_variable): Update.
4317
14095eb3
SM
43182020-05-27 Simon Marchi <simon.marchi@efficios.com>
4319
4320 * dwarf2/read.h (dwarf2_fetch_die_loc_sect_off,
4321 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
4322 dwarf2_fetch_die_type_sect_off): Add dwarf2_per_objfile
4323 parameter.
4324 * dwarf2/read.c (dwarf2_fetch_die_loc_sect_off,
4325 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
4326 dwarf2_fetch_die_type_sect_off): Add dwarf2_per_objfile
4327 parameter.
4328 * dwarf2/loc.c (indirect_synthetic_pointer, per_cu_dwarf_call,
4329 sect_variable_value): Add dwarf2_per_objfile parameter.
4330 (class dwarf_evaluate_loc_desc) <dwarf_call,
4331 dwarf_variable_value>: Update.
4332 (fetch_const_value_from_synthetic_pointer): Add
4333 dwarf2_per_objfile parameter.
4334 (fetch_const_value_from_synthetic_pointer): Update.
4335 (coerced_pieced_ref): Update.
4336 (class symbol_needs_eval_context) <dwarf_call,
4337 dwarf_variable_value>: Update.
4338 (dwarf2_compile_expr_to_ax): Update.
4339
3c3cd3d4
SM
43402020-05-27 Simon Marchi <simon.marchi@efficios.com>
4341
4342 * dwarf2/loc.c (allocate_piece_closure): Add dwarf2_per_objfile
4343 parameter.
4344 (dwarf2_evaluate_loc_desc_full): Update.
4345
82ca3f51
SM
43462020-05-27 Simon Marchi <simon.marchi@efficios.com>
4347
4348 * dwarf2/read.h (dwarf2_read_addr_index): Add dwarf2_per_objfile
4349 parameter.
4350 * dwarf2/read.c (dwarf2_read_addr_index): Likewise.
4351 * dwarf2/loc.c (decode_debug_loclists_addresses): Add
4352 dwarf2_per_objfile parameter.
4353 (decode_debug_loc_dwo_addresses): Likewise.
4354 (dwarf2_find_location_expression): Update.
4355 (class dwarf_evaluate_loc_desc) <get_addr_index>: Update.
4356 (locexpr_describe_location_piece): Add dwarf2_per_objfile
4357 parameter.
4358 (disassemble_dwarf_expression): Add dwarf2_per_objfile
4359 parameter.
4360 (locexpr_describe_location_1): Likewise.
4361 (locexpr_describe_location): Update.
4362
4b167ea1
SM
43632020-05-27 Simon Marchi <simon.marchi@efficios.com>
4364
4365 * dwarf2/read.h (struct dwarf2_per_cu_data) <text_offset>:
4366 Remove.
4367 * dwarf2/read.c (dwarf2_per_cu_data::text_offset): Remove.
4368 * dwarf2/loc.c (dwarf2_find_location_expression): Update.
4369 (dwarf2_compile_property_to_c): Update.
4370 (dwarf2_compile_expr_to_ax): Add dwarf2_per_objfile parameter,
4371 use text offset from objfile.
4372 (locexpr_tracepoint_var_ref): Update.
4373 (locexpr_generate_c_location): Update.
4374 (loclist_describe_location): Update.
4375 (loclist_tracepoint_var_ref): Update.
4376 * dwarf2/compile.h (compile_dwarf_bounds_to_c): Add
4377 dwarf2_per_objfile parameter.
4378 * dwarf2/loc2c.c (do_compile_dwarf_expr_to_c): Likewise,
4379 use text offset from objfile.
4380 (compile_dwarf_expr_to_c): Add dwarf2_per_objfile parameter.
4381
89b07335
SM
43822020-05-27 Simon Marchi <simon.marchi@efficios.com>
4383
4384 * dwarf2/expr.h (struct dwarf_expr_context)
4385 <dwarf_expr_context>: Add dwarf2_per_objfile parameter.
4386 <offset>: Remove.
4387 <per_objfile>: New member.
4388 * dwarf2/expr.c (dwarf_expr_context::dwarf_expr_context): Add
4389 dwarf2_per_objfile parameter. Don't set offset, set
4390 per_objfile.
4391 (dwarf_expr_context::execute_stack_op): Use offset from objfile.
4392 * dwarf2/frame.c (dwarf2_frame_find_fde): Return (by parameter)
4393 a dwarf2_per_objfile object instead of an offset.
4394 (class dwarf_expr_executor) <dwarf_expr_executor>: Add
4395 constructor.
4396 (execute_stack_op): Add dwarf2_per_objfile parameter, pass it
4397 to dwarf2_expr_executor constructor. Don't set offset.
4398 (dwarf2_fetch_cfa_info): Update.
4399 (struct dwarf2_frame_cache) <text_offset>: Remove.
4400 <per_objfile>: New field.
4401 (dwarf2_frame_cache): Update.
4402 (dwarf2_frame_prev_register): Update.
4403 * dwarf2/loc.c (class dwarf_evaluate_loc_desc)
4404 <dwarf_evaluate_loc_desc>: Add constructor.
4405 (dwarf2_evaluate_loc_desc_full): Update.
4406 (dwarf2_locexpr_baton_eval): Update.
4407 (class symbol_needs_eval_context) <symbol_needs_eval_context>:
4408 Add constructor.
4409 (dwarf2_loc_desc_get_symbol_read_needs): Update.
4410
293e7e51
SM
44112020-05-27 Simon Marchi <simon.marchi@efficios.com>
4412
4413 * dwarf2/read.h (struct dwarf2_per_cu_data) <addr_type,
4414 addr_sized_int_type>: Move to dwarf2_cu.
4415 <int_type>: Move to dwarf2_per_objfile.
4416 (struct dwarf2_per_objfile) <int_type>: Move here.
4417 * dwarf2/read.c (struct dwarf2_cu) <addr_type,
4418 addr_sized_int_type>: Move here.
4419 (read_func_scope): Update.
4420 (read_array_type): Update.
4421 (read_tag_string_type): Update.
4422 (attr_to_dynamic_prop): Update.
4423 (dwarf2_per_cu_data::int_type): Rename to...
4424 (dwarf2_per_objfile::int_type): ... this.
4425 (dwarf2_per_cu_data::addr_sized_int_type): Rename to...
4426 (dwarf2_cu::addr_sized_int_type): ... this.
4427 (read_subrange_type): Update.
4428 (dwarf2_per_cu_data::addr_type): Rename to...
4429 (dwarf2_cu::addr_type): ... this.
4430 (set_die_type): Update.
4431
64874a40
SM
44322020-05-27 Simon Marchi <simon.marchi@efficios.com>
4433
4434 * dwarf2/read.c (queue_and_load_all_dwo_tus): Access per_objfile
4435 data through per_cu->cu.
4436
4ab09049
SM
44372020-05-27 Simon Marchi <simon.marchi@efficios.com>
4438
4439 * dwarf2/read.c (lookup_dwo_comp_unit): Change
4440 dwarf2_per_cu_data parameter fo dwarf2_cu.
4441 (lookup_dwo_type_unit): Likewise.
4442 (read_cutu_die_from_dwo): Likewise.
4443 (lookup_dwo_unit): Likewise.
4444 (open_and_init_dwo_file): Likewise.
4445 (lookup_dwo_cutu): Likewise.
4446 (lookup_dwo_comp_unit): Likewise.
4447 (lookup_dwo_type_unit): Likewise.
4448 (cutu_reader::init_tu_and_read_dwo_dies): Update.
4449 (cutu_reader::cutu_reader): Update.
4450
47b14e86
SM
44512020-05-27 Simon Marchi <simon.marchi@efficios.com>
4452
4453 * dwarf2/read.c (process_full_comp_unit): Add dwarf2_per_objfile
4454 parameter.
4455 (process_full_type_unit): Likewise.
4456 (process_queue): Update.
4457
43182c09
SM
44582020-05-27 Simon Marchi <simon.marchi@efficios.com>
4459
4460 * dwarf2/read.c (recursively_compute_inclusions): Add
4461 dwarf2_per_objfile parameter.
4462 (compute_compunit_symtab_includes): Likewise.
4463 (process_cu_includes): Update.
4464
7aa104c4
SM
44652020-05-27 Simon Marchi <simon.marchi@efficios.com>
4466
4467 * dwarf2/read.c (create_partial_symtab): Add dwarf2_per_objfile
4468 parameter.
4469 (create_type_unit_group): Update.
4470 (process_psymtab_comp_unit_reader): Update.
4471 (build_type_psymtabs_reader): Update.
4472
e3beb21d
SM
44732020-05-27 Simon Marchi <simon.marchi@efficios.com>
4474
4475 * dwarf2/read.c (cutu_reader::keep): Access dwarf2_per_objfile
4476 object through m_this_cu->cu.
4477
d460f660
SM
44782020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
4479
4480 * dwarf2/read.c (queue_and_load_dwo_tu): Expect a dwarf2_cu as
4481 the info parameter.
4482 (queue_and_load_all_dwo_tus): Pass per_cu->cu.
4483
ab432490
SM
44842020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
4485
4486 * dwarf2/read.c (class cutu_reader) <cutu_reader>: Add
4487 per_objfile parameter.
4488 (load_full_type_unit): Add per_objfile parameter.
4489 (read_signatured_type): Likewise.
4490 (load_full_comp_unit): Likewise.
4491 (load_cu): Likewise.
4492 (dw2_do_instantiate_symtab): Likewise.
4493 (dw2_get_file_names): Likewise.
4494 (dw2_map_symtabs_matching_filename): Update.
4495 (dw_expand_symtabs_matching_file_matcher): Update.
4496 (dw2_map_symbol_filenames): Update.
4497 (process_psymtab_comp_unit): Add per_objfile parameter.
4498 (build_type_psymtabs_1): Update.
4499 (process_skeletonless_type_unit): Update.
4500 (dwarf2_build_psymtabs_hard): Update.
4501 (load_partial_comp_unit): Add per_objfile parameter.
4502 (scan_partial_symbols): Update.
4503 (load_full_comp_unit): Add per_objfile parameter.
4504 (process_imported_unit_die): Update.
4505 (create_cus_hash_table): Update.
4506 (find_partial_die): Update.
4507 (dwarf2_read_addr_index): Update.
4508 (follow_die_offset): Update.
4509 (dwarf2_fetch_die_loc_sect_off): Update.
4510 (dwarf2_fetch_constant_bytes): Update.
4511 (dwarf2_fetch_die_type_sect_off): Update.
4512 (follow_die_sig_1): Update.
4513 (load_full_type_unit): Add per_objfile parameter.
4514 (read_signatured_type): Likewise.
4515
313bad1b
SM
45162020-05-27 Simon Marchi <simon.marchi@efficios.com>
4517
4518 * dwarf2/read.c (lookup_dwo_unit): Use bfd_get_filename instead
4519 of objfile_name.
4520
c3699833
SM
45212020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
4522
4523 * dwarf2/read.h (struct dwarf2_per_bfd) <obfd>: New member.
4524 (dwarf2_get_dwz_file): Replace parameter with dwarf2_per_bfd.
4525 * dwarf2/read.c (dwarf2_per_bfd::dwarf2_per_bfd): Assign obfd
4526 field.
4527 (dwarf2_get_dwz_file): Replace parameter with dwarf2_per_bfd.
4528 (create_cus_from_index): Update.
4529 (dwarf2_read_gdb_index): Update.
4530 (create_cus_from_debug_names): Update.
4531 (dwarf2_read_debug_names): Update.
4532 (get_abbrev_section_for_cu): Update.
4533 (create_all_comp_units): Update.
4534 (read_attribute_value): Update.
4535 (get_debug_line_section): Update.
4536 * dwarf2/index-cache.c (index_cache::store): Update.
4537 * dwarf2/index-write.c (save_gdb_index_command): Update.
4538 * dwarf2/macro.c (dwarf_decode_macro_bytes): Update.
4539
1859c670
SM
45402020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
4541
4542 * dwarf2/read.h (struct dwarf2_per_cu_data) <per_bfd>: New
4543 member.
4544 * dwarf2/read.c (dwarf2_per_bfd::allocate_per_cu): Initialize
4545 dwarf2_per_cu_data::per_bfd.
4546 (dwarf2_per_bfd::allocate_signatured_type): Likewise.
4547 (create_type_unit_group): Likewise.
4548 (queue_comp_unit): Remove reference to
4549 per_cu->dwarf2_per_objfile.
4550 (maybe_queue_comp_unit): Likewise.
4551 (fill_in_sig_entry_from_dwo_entry): Assign new field.
4552 (create_cus_hash_table): Assign new field.
4553
5e22e966
SM
45542020-05-27 Simon Marchi <simon.marchi@efficios.com>
4555
4556 * dwarf2/read.c: Replace
4557 dwarf2_cu->per_cu->dwarf2_per_objfile references with
4558 dwarf2_cu->per_objfile throughout.
4559
97a1449a
SM
45602020-05-27 Simon Marchi <simon.marchi@efficios.com>
4561
4562 * dwarf2/read.c (dw2_do_instantiate_symtab): Add per_objfile
4563 parameter, don't use per_cu->dwarf2_per_objfile.
4564 (dw2_instantiate_symtab): Likewise.
4565 (dw2_find_last_source_symtab): Update.
4566 (dw2_map_expand_apply): Update.
4567 (dw2_lookup_symbol): Update.
4568 (dw2_expand_symtabs_for_function): Update.
4569 (dw2_expand_all_symtabs): Update.
4570 (dw2_expand_symtabs_with_fullname): Update.
4571 (dw2_expand_symtabs_matching_one): Add per_objfile parameter,
4572 don't use per_cu->dwarf2_per_objfile.
4573 (dw2_expand_marked_cus): Update.
4574 (dw2_find_pc_sect_compunit_symtab): Update.
4575 (dw2_debug_names_lookup_symbol): Update.
4576 (dw2_debug_names_expand_symtabs_for_function): Update.
4577 (dw2_debug_names_map_matching_symbols): Update.
4578 (dwarf2_psymtab::expand_psymtab): Update.
4579
9e021579
SM
45802020-05-27 Simon Marchi <simon.marchi@efficios.com>
4581
4582 * dwarf2/read.c (struct dwarf2_cu) <dwarf2_cu>: Add parameter.
4583 <per_objfile>: New member.
4584 (class cutu_reader) <init_tu_and_read_dwo_dies>: Add parameter.
4585 (cutu_reader::init_tu_and_read_dwo_dies): Add parameter, update
4586 call to dwarf2_cu.
4587 (cutu_reader::cutu_reader): Update.
4588 (dwarf2_cu::dwarf2_cu): Add parameter, initialize per_objfile.
4589
ae090bdb
SM
45902020-05-27 Simon Marchi <simon.marchi@efficios.com>
4591
4592 * dwarf2/read.h (struct dwarf2_per_bfd) <die_type_hash>: Move to
4593 struct dwarf2_per_objfile.
4594 (struct dwarf2_per_objfile) <die_type_hash>: Move from struct
4595 dwarf2_per_bfd.
4596 * dwarf2/read.c (set_die_type): Update.
4597 (get_die_type_at_offset): Update.
4598
af758d11
SM
45992020-05-27 Tom Tromey <tom@tromey.com>
4600 Simon Marchi <simon.marchi@efficios.com>
4601
4602 * dwarf2/read.h (struct dwarf2_per_bfd) <num_psymtabs>: New
4603 method.
4604 (struct dwarf2_per_objfile) <resize_symtabs, symtab_set_p,
4605 get_symtab, set_symtab>: New methods.
4606 <m_symtabs>: New field.
4607 (struct dwarf2_psymtab): Derive from partial_symtab.
4608 <readin_p, get_compunit_symtab>: Declare methods.
4609 * dwarf2/read.c (dwarf2_per_objfile::symtab_set_p,
4610 dwarf2_per_objfile::get_symtab, dwarf2_per_objfile::set_symtab):
4611 New methods.
4612 (struct dwarf2_per_cu_quick_data) <compunit_symtab>: Remove.
4613 (dw2_do_instantiate_symtab, dw2_instantiate_symtab)
4614 (dw2_map_expand_apply, dw2_map_symtabs_matching_filename)
4615 (dw2_symtab_iter_next, dw2_print_stats)
4616 (dw2_expand_symtabs_with_fullname)
4617 (dw2_expand_symtabs_matching_one)
4618 (dw_expand_symtabs_matching_file_matcher)
4619 (dw2_find_pc_sect_compunit_symtab, dw2_map_symbol_filenames)
4620 (dw2_debug_names_iterator::next)
4621 (dw2_debug_names_map_matching_symbols)
4622 (fill_in_sig_entry_from_dwo_entry, dwarf2_psymtab::read_symtab)
4623 (process_queue, dwarf2_psymtab::expand_psymtab): Update.
4624 (dwarf2_psymtab::readin_p, dwarf2_psymtab::get_compunit_symtab):
4625 New methods.
4626 (get_compunit_symtab, process_full_comp_unit)
4627 (process_full_type_unit): Update.
4628 (dwarf2_build_psymtabs, dwarf2_initialize_objfile, add_type_unit): Call
4629
5989a64e
SM
46302020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
4631
4632 * dwarf2/read.h (dwarf2_per_objfile): Rename to dwarf2_per_bfd,
4633 then introduce a new dwarf2_per_objfile type.
4634 <read_line_string>: Move to the new dwarf2_per_objfile type.
4635 <objfile>: Likewise.
4636 (dwarf2_per_bfd): Rename dwarf2_per_objfile to this.
4637 * dwarf2/read.c: Replace references to dwarf2_per_objfile with
4638 dwarf2_per_objfile->per_bfd.
4639 (dwarf2_per_objfile::dwarf2_per_objfile): Rename to...
4640 (dwarf2_per_bfd::dwarf2_per_bfd): ... this.
4641 (dwarf2_per_objfile::free_cached_comp_units): Rename to...
4642 (dwarf2_per_bfd::free_cached_comp_units): ... this.
4643 (dwarf2_has_info): Allocate dwarf2_per_bfd.
4644 (dwarf2_per_objfile::locate_sections): Rename to...
4645 (dwarf2_per_bfd::locate_sections): ... this.
4646 (dwarf2_per_objfile::get_cutu): Rename to...
4647 (dwarf2_per_bfd::get_cutu): ... this.
4648 (dwarf2_per_objfile::get_cu): Rename to...
4649 (dwarf2_per_bfd::get_cu): ... this.
4650 (dwarf2_per_objfile::get_tu): Rename to...
4651 (dwarf2_per_bfd::get_tu): ... this.
4652 (dwarf2_per_objfile::allocate_per_cu): Rename to...
4653 (dwarf2_per_bfd::allocate_per_cu): ... this.
4654 (dwarf2_per_objfile::allocate_signatured_type): Rename to...
4655 (dwarf2_per_bfd::allocate_signatured_type): ... this.
4656 (get_gdb_index_contents_ftype): Change parameter from
4657 dwarf2_per_objfile to dwarf2_per_bfd.
4658 * dwarf2/macro.c, dwarf2/index-write.c: Replace references to
4659 dwarf2_per_objfile with dwarf2_per_objfile->per_bfd.
4660
a50264ba
TT
46612020-05-27 Tom Tromey <tom@tromey.com>
4662 Simon Marchi <simon.marchi@efficios.com>
4663
4664 * dwarf2/loc.c (struct piece_closure) <per_objfile>: New member.
4665 (allocate_piece_closure): Set "per_objfile" member.
4666 (dwarf2_find_location_expression, dwarf2_locexpr_baton_eval)
4667 (locexpr_describe_location, loclist_describe_location): Use new
4668 member.
4669 * dwarf2/read.c (read_call_site_scope)
4670 (mark_common_block_symbol_computed, attr_to_dynamic_prop)
4671 (dwarf2_const_value_attr, dwarf2_fetch_die_loc_sect_off)
4672 (fill_in_loclist_baton, dwarf2_symbol_mark_computed,
4673 handle_data_member_location): Set per_objfile member.
4674 * dwarf2/loc.h (struct dwarf2_locexpr_baton) <per_objfile>: New
4675 member.
4676 (struct dwarf2_loclist_baton) <per_objfile>: New member.
4677
d3473f0c
TT
46782020-05-27 Tom Tromey <tom@tromey.com>
4679
4680 * dwarf2/read.h (struct dwarf2_per_objfile) <allocate_per_cu,
4681 allocate_signatured_type>: Declare new methods.
4682 <m_num_psymtabs>: New member.
4683 (struct dwarf2_per_cu_data) <index>: New member.
4684 * dwarf2/read.c (dwarf2_per_objfile::allocate_per_cu)
4685 (dwarf2_per_objfile::allocate_signatured_type): New methods.
4686 (create_cu_from_index_list): Use allocate_per_cu.
4687 (create_signatured_type_table_from_index)
4688 (create_signatured_type_table_from_debug_names)
4689 (create_debug_type_hash_table, add_type_unit)
4690 (read_comp_units_from_section): Use allocate_signatured_type.
4691
5717c425
TT
46922020-05-27 Tom Tromey <tom@tromey.com>
4693
4694 * psymtab.c (partial_map_expand_apply)
4695 (psym_find_pc_sect_compunit_symtab, psym_lookup_symbol)
4696 (psym_lookup_global_symbol_language)
4697 (psymtab_to_symtab, psym_find_last_source_symtab, dump_psymtab)
4698 (psym_print_stats, psym_expand_symtabs_for_function)
4699 (psym_map_symbol_filenames, psym_map_matching_symbols)
4700 (psym_expand_symtabs_matching)
4701 (partial_symtab::read_dependencies, maintenance_info_psymtabs)
4702 (maintenance_check_psymtabs): Update.
4703 * psympriv.h (struct partial_symtab) <readin_p,
4704 get_compunit_symtab>: Add objfile parameter.
4705 (struct standard_psymtab) <readin_p, get_compunit_symtab>:
4706 Likewise.
4707 * dwarf2/read.c (struct dwarf2_include_psymtab) <readin_p,
4708 get_compunit_symtab>: Likewise.
4709 (dwarf2_psymtab::expand_psymtab): Pass objfile argument.
4710
45940949
TT
47112020-05-27 Tom Tromey <tom@tromey.com>
4712
4713 * dwarf2/read.h (struct dwarf2_per_objfile) <obstack>: New
4714 member.
4715 * dwarf2/read.c (delete_file_name_entry): Fix comment.
4716 (create_cu_from_index_list)
4717 (create_signatured_type_table_from_index)
4718 (create_signatured_type_table_from_debug_names)
4719 (dw2_get_file_names_reader, dwarf2_initialize_objfile)
4720 (dwarf2_create_include_psymtab)
4721 (create_debug_type_hash_table, add_type_unit)
4722 (create_type_unit_group, read_comp_units_from_section)
4723 (dwarf2_compute_name, create_cus_hash_table)
4724 (create_dwp_hash_table, create_dwo_unit_in_dwp_v1)
4725 (create_dwo_unit_in_dwp_v2, open_and_init_dwp_file): Use new
4726 obstack.
4727 (dw2_get_real_path): Likewise. Change argument to
4728 dwarf2_per_objfile.
4729
f8c6d152
LM
47302020-05-27 Luis Machado <luis.machado@linaro.org>
4731
4732 PR tdep/26000
4733 * arm-tdep.c (thumb_analyze_prologue): Fix instruction matching
4734 for ldrd (immediate).
4735
e98d2e6d
PW
47362020-05-26 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4737
4738 * command.h: Add comment giving the name of class_tui.
4739 * cli/cli-cmds.c (_initialize_cli_cmds): If TUI defined,
4740 create the fake command for the help for class_tui.
4741
53a47a3e
TT
47422020-05-26 Tom Tromey <tromey@adacore.com>
4743
4744 * ada-lang.c (ada_print_array_index): Change type. Call val_atr.
4745 (ada_value_ptr_subscript): Don't call pos_atr on the lower bound.
4746 (val_atr): New function.
4747 (value_val_atr): Use it.
4748 * ada-valprint.c (print_optional_low_bound): Change low bound
4749 handling for enums.
4750 (val_print_packed_array_elements): Don't call discrete_position.
4751 * gdbtypes.c (get_discrete_bounds) <TYPE_CODE_RANGE>: Call
4752 discrete_position for enum types.
4753 * language.c (default_print_array_index): Change type.
4754 * language.h (struct language_defn) <la_print_array_index>: Add
4755 index_type parameter, change type of index_value.
4756 (LA_PRINT_ARRAY_INDEX): Add index_type parameter.
4757 (default_print_array_index): Update.
4758 * valprint.c (maybe_print_array_index): Don't call
4759 value_from_longest. Update.
4760 (value_print_array_elements): Don't call discrete_position.
4761
0bc2354b
TT
47622020-05-26 Tom Tromey <tromey@adacore.com>
4763
4764 * ada-lang.c (value_val_atr): Handle TYPE_CODE_RANGE.
4765 * gdbtypes.c (discrete_position): Handle TYPE_CODE_RANGE.
4766
1218a4bf
CDA
47672020-05-25 Cristiano De Alti <cristiano_dealti@hotmail.com>
4768
4769 PR gdb/13519
4770 * avr-tdep.c (avr_integer_to_address): Return data or code
4771 address accordingly to the second 'type' argument of the
4772 function.
4773
92651b1d
MW
47742020-05-25 Michael Weghorn <m.weghorn@posteo.de>
4775
4776 * infcmd.c, inferior.h: (construct_inferior_arguments):
4777 Moved function from here to gdbsupport/common-inferior.{h,cc}
4778
0a4f5f8c
TT
47792020-05-23 Tom Tromey <tom@tromey.com>
4780
4781 Revert commit eca1f90c:
4782 * NEWS: Remove entry for completion styling.
4783 * completer.c (_rl_completion_prefix_display_length): Move
4784 declaration later.
4785 (gdb_fnprint): Revert.
4786 (gdb_display_match_list_1): Likewise.
4787 * cli/cli-style.c (completion_prefix_style)
4788 (completion_difference_style, completion_suffix_style): Remove.
4789 (_initialize_cli_style): Revert.
4790 * cli/cli-style.h (completion_prefix_style)
4791 (completion_difference_style, completion_suffix_style): Don't
4792 declare.
4793
e08bd6c5
PA
47942020-05-24 Pedro Alves <palves@redhat.com>
4795
4796 * symtab.c (completion_list_add_name): Return boolean indication
4797 of whether the symbol matched.
4798 (completion_list_add_symbol): Don't try to remove C++ aliases if
4799 the symbol didn't match in the first place.
4800 * symtab.h (completion_list_add_name): Return bool.
4801
ceacbf6e
SM
48022020-05-23 Simon Marchi <simon.marchi@polymtl.ca>
4803
4804 * gdbtypes.h (TYPE_FIELD): Remove. Replace all uses with
4805 type::field.
4806
26f16254
JB
48072020-05-23 Joel Brobecker <brobecker@adacore.com>
4808
4809 GDB 9.2 released.
4810
eca1f90c
TT
48112020-05-23 Tom Tromey <tom@tromey.com>
4812
4813 * NEWS: Add entry for completion styling.
4814 * completer.c (_rl_completion_prefix_display_length): Move
4815 declaration earlier.
4816 (gdb_fnprint): Use completion_style.
4817 (gdb_display_match_list_1): Likewise.
4818 * cli/cli-style.c (completion_prefix_style)
4819 (completion_difference_style, completion_suffix_style): New
4820 globals.
4821 (_initialize_cli_style): Register new globals.
4822 * cli/cli-style.h (completion_prefix_style)
4823 (completion_difference_style, completion_suffix_style): Declare.
4824
51e2cfa2
PA
48252020-05-23 Pedro Alves <palves@redhat.com>
4826
4827 * utils.c: Include "gdbsupport/gdb-safe-ctype.h".
4828 (parse_escape): Use ISDIGIT instead of isdigit.
4829 (puts_debug): Use gdb_isprint instead of isprint.
4830 (fprintf_symbol_filtered): Use ISALNUM instead of isalnum.
4831 (cp_skip_operator_token, skip_ws, strncmp_iw_with_mode): Use
4832 ISSPACE instead of isspace.
4833 (strncmp_iw_with_mode): Use TOLOWER instead of tolower and ISSPACE
4834 instead of isspace.
4835 (strcmp_iw_ordered): Use ISSPACE instead of isspace.
4836 (string_to_core_addr): Use TOLOWER instead of tolower, ISXDIGIT
4837 instead of isxdigit and ISDIGIT instead of isdigit.
4838
80fc5e77
SM
48392020-05-22 Simon Marchi <simon.marchi@efficios.com>
4840
4841 * gdbtypes.h (struct type) <field>: New method.
4842 (TYPE_FIELDS): Remove, replace all uses with either type::fields
4843 or type::field.
4844
3cabb6b0
SM
48452020-05-22 Simon Marchi <simon.marchi@efficios.com>
4846
4847 * gdbtypes.h (struct type) <fields, set_fields>: New methods.
4848 (TYPE_FIELDS): Use type::fields. Change all call sites that
4849 modify the propery to use type::set_fields instead.
4850
1f704f76
SM
48512020-05-22 Simon Marchi <simon.marchi@efficios.com>
4852
4853 * gdbtypes.h (TYPE_NFIELDS): Remove. Change all cal sites to use
4854 type::num_fields instead.
4855
5e33d5f4
SM
48562020-05-22 Simon Marchi <simon.marchi@efficios.com>
4857
4858 * gdbtypes.h (struct type) <num_fields, set_num_fields>: New
4859 methods.
4860 (TYPE_NFIELDS): Use type::num_fields. Change all call sites
4861 that modify the number of fields to use type::set_num_fields
4862 instead.
4863
9392ebb3
TT
48642020-05-22 Tom Tromey <tromey@adacore.com>
4865
4866 * compile/compile-object-load.h (munmap_list_free): Don't
4867 declare.
4868
7c13f4e8
AB
48692020-05-22 Andrew Burgess <andrew.burgess@embecosm.com>
4870
4871 * annotate.c (annotate_source_line): Update return type, add call
4872 to update current symtab and line.
4873 * annotate.h (annotate_source_line): Update return type, and
4874 extend header comment.
4875 * source.c (info_line_command): Check annotation_level before
4876 calling annotate_source_line.
4877 * stack.c (print_frame_info): If calling annotate_source_line
4878 returns true, then don't print any other source line information.
4879
aa370940
SM
48802020-05-21 Simon Marchi <simon.marchi@efficios.com>
4881
4882 * lm32-tdep.c (lm32_register_reggroup_p): Fix condition.
4883
84d53fa9
SM
48842020-05-21 Simon Marchi <simon.marchi@efficios.com>
4885
4886 * coffread.c (patch_type): Remove NULL check before xfree.
4887 * corefile.c (set_gnutarget): Likewise.
4888 * cp-abi.c (set_cp_abi_as_auto_default): Likewise.
4889 * exec.c (build_section_table): Likewise.
4890 * remote.c (remote_target::pass_signals): Likewise.
4891 * utils.c (n_spaces): Likewise.
4892 * cli/cli-script.c (document_command): Likewise.
4893 * i386-windows-tdep.c (core_process_module_section): Likewise.
4894 * linux-fork.c (struct fork_info) <~fork_info>: Likewise.
4895
9d428aae
SM
48962020-05-20 Simon Marchi <simon.marchi@efficios.com>
4897
4898 * symfile.c (reread_symbols): Clear objfile's section_offsets
4899 vector and section indices, re-compute them by calling
4900 sym_offsets.
4901
250106a7
TT
49022020-05-20 Tom Tromey <tromey@adacore.com>
4903
4904 * ada-lang.c (bound_name, MAX_ADA_DIMENS): Remove.
ec16513e 4905 (desc_one_bound, desc_index_type): Compute field name.
250106a7 4906
9a0bacfb
TV
49072020-05-20 Tom de Vries <tdevries@suse.de>
4908
4909 PR symtab/25833
4910 * dwarf2/read.c (dw2_map_matching_symbols): Handle .gdb_index.
4911
7b958a48
AM
49122020-05-20 Alan Modra <amodra@gmail.com>
4913
4914 PR 25993
4915 * solib-darwin.c (darwin_bfd_open): Don't strdup pathname for
4916 bfd_set_filename.
4917 * solib-aix.c (solib_aix_bfd_open): Use std::string for name
4918 passed to bfd_set_filename.
4919 * symfile-mem.c (add_vsyscall_page): Likewise for string
4920 passed to symbol_file_add_from_memory.
4921 (symbol_file_add_from_memory): Make name param a const char* and
4922 don't strdup.
4923
c7e97679
AM
49242020-05-20 Alan Modra <amodra@gmail.com>
4925
4926 * coff-pe-read.c (read_pe_exported_syms): Use bfd_get_filename
4927 rather than accessing bfd->filename directly.
4928 * dtrace-probe.c (dtrace_static_probe_ops::get_probes): Likewise,
4929 and use bfd_section_name.
4930 * dwarf2/frame.c (decode_frame_entry): Likewise.
4931 * exec.c (exec_set_section_address): Likewise.
4932 * solib-aix.c (solib_aix_bfd_open): Likewise.
4933 * stap-probe.c (get_stap_base_address): Likewise.
4934 * symfile.c (reread_symbols): Likewise.
4935
563c591b
TT
49362020-05-19 Tom Tromey <tromey@adacore.com>
4937
4938 * sparc64-tdep.c (adi_tag_fd): Update call to target_fileio_open.
4939
f408d82c
SM
49402020-05-19 Simon Marchi <simon.marchi@efficios.com>
4941
4942 * dwarf2/read.c (quirk_rust_enum): Allocate enough fields.
4943
98c59b52
PA
49442020-05-19 Pedro Alves <palves@redhat.com>
4945
4946 * NEWS (set exec-file-mismatch): Adjust entry.
4947 * exec.c: Include "build-id.h".
4948 (validate_exec_file): Try to match build IDs instead of filenames.
4949 * gdb_bfd.c (struct gdb_bfd_open_closure): New.
4950 (gdb_bfd_iovec_fileio_open): Adjust to use gdb_bfd_open_closure
4951 and pass down 'warn_if_slow'.
4952 (gdb_bfd_open): Add 'warn_if_slow' parameter. Use
4953 gdb_bfd_open_closure to pass it down.
4954 * gdb_bfd.h (gdb_bfd_open): Add 'warn_if_slow' parameter.
4955
4111f652
PA
49562020-05-19 Pedro Alves <palves@redhat.com>
4957
4958 * gdb_bfd.c (gdb_bfd_iovec_fileio_open): Adjust.
4959 * target.c (target_fileio_open_1): Rename to target_fileio_open
4960 and make extern. Use bool.
4961 (target_fileio_open, target_fileio_open_warn_if_slow): Delete.
4962 (target_fileio_read_alloc_1): Adjust.
4963 * target.h (target_fileio_open): Add 'warn_if_slow' parameter.
4964 (target_fileio_open_warn_if_slow): Delete declaration.
4965
ad80db5b
PA
49662020-05-19 Pedro Alves <palves@redhat.com>
4967
4968 * gdb_bfd.h: (gdb_bfd_open): Default to 'fd' parameter to -1.
4969 Adjust all callers.
4970
1d6ce4d3
YS
49712020-05-19 Yoshinori Sato <ysato@users.sourceforge.jp>
4972
4973 * h8300-tdep.c (h8300_is_argument_spill): Change how we check
4974 whether disp is negative.
4975
9005fbbb
SM
49762020-05-19 Simon Marchi <simon.marchi@efficios.com>
4977
4978 * symfile.h (struct symfile_segment_data)
4979 <~symfile_segment_data>: Remove.
4980 <segment_info>: Change to std::vector.
4981 * symfile.c (default_symfile_segments): Update.
4982 * elfread.c (elf_symfile_segments): Update.
4983
68b888ff
SM
49842020-05-19 Simon Marchi <simon.marchi@efficios.com>
4985
4986 * symfile.h (struct symfile_segment_data) <struct segment>: New.
4987 <segments>: New.
4988 <segment_bases, segment_sizes>: Remove.
4989 * symfile.c (default_symfile_segments): Update.
4990 * elfread.c (elf_symfile_segments): Update.
4991 * remote.c (remote_target::get_offsets): Update.
4992 * solib-target.c (solib_target_relocate_section_addresses):
4993 Update.
4994
62982abd
SM
49952020-05-19 Simon Marchi <simon.marchi@efficios.com>
4996
4997 * symfile.h (struct symfile_segment_data): Initialize fields.
4998 <~symfile_segment_data>: Add.
4999 (symfile_segment_data_up): New.
5000 (struct sym_fns) <sym_segments>: Return a
5001 symfile_segment_data_up.
5002 (default_symfile_segments): Return a symfile_segment_data_up.
5003 (free_symfile_segment_data): Remove.
5004 (get_symfile_segment_data): Return a symfile_segment_data_up.
5005 * symfile.c (default_symfile_segments): Likewise.
5006 (get_symfile_segment_data): Likewise.
5007 (free_symfile_segment_data): Remove.
5008 (symfile_find_segment_sections): Update.
5009 * elfread.c (elf_symfile_segments): Return a
5010 symfile_segment_data_up.
5011 * remote.c (remote_target::get_offsets): Update.
5012 * solib-target.c (solib_target_relocate_section_addresses):
5013 Update.
5014 * symfile-debug.c (debug_sym_segments): Return a
5015 symfile_segment_data_up.
5016
7f204339
RO
50172020-05-18 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5018
e52a0f1b
RO
5019 PR build/25981
5020 * i386-sol2-nat.c [PR_MODEL_NATIVE != PR_MODEL_LP64] (regmap):
5021 Hardcode register numbers.
5022
7f204339
RO
5023 PR build/25981
5024 * procfs.c [(__i386__ || __x86_64__) && sun] (proc_get_LDT_entry,
5025 procfs_find_LDT_entry): Remove.
5026 * procfs.h [(__i386__ || __x86_64__) && sun] (struct ssd,
5027 procfs_find_LDT_entry): Remove.
5028 * sol-thread.c [(__i386__ || __x86_64__) && sun] (ps_lgetLDT):
5029 Remove.
5030
7f32a4d5
PA
50312020-05-17 Pedro Alves <palves@redhat.com>
5032 Andrew Burgess <andrew.burgess@embecosm.com>
5033 Keno Fischer <keno@juliacomputing.com>
5034
5035 PR gdb/25741
5036 * breakpoint.c (build_target_condition_list): Update comments.
5037 (build_target_command_list): Update comments and skip matching
5038 locations.
5039 (insert_bp_location): Move "set breakpoint auto-hw on" handling to
5040 a separate function. Simplify "set breakpoint auto-hw off"
5041 handling.
5042 (insert_breakpoints): Update comment.
5043 (tracepoint_locations_match): New parameter. For breakpoints,
5044 compare location types too, if the caller wants to.
5045 (handle_automatic_hardware_breakpoints): New functions.
5046 (bp_location_is_less_than): Also sort by location type and
5047 hardware breakpoint length.
5048 (update_global_location_list): Handle "set breakpoint auto-hw on"
5049 here.
5050 (update_breakpoint_locations): Ask breakpoint_locations_match to
5051 ignore location types.
5052
7d93a1e0
SM
50532020-05-16 Simon Marchi <simon.marchi@efficios.com>
5054
5055 * gdbtypes.h (TYPE_NAME): Remove. Change all cal sites to use
5056 type::name instead.
5057
d0e39ea2
SM
50582020-05-16 Simon Marchi <simon.marchi@efficios.com>
5059
5060 * gdbtypes.h (struct type) <name, set_name>: New methods.
5061 (TYPE_CODE): Use type::name. Change all call sites used to set
5062 the name to use type::set_name instead.
5063
2dab0c7b
TT
50642020-05-16 Tom Tromey <tom@tromey.com>
5065
5066 * top.c (quit_force): Update.
5067 * infrun.c (handle_no_resumed): Update.
5068 * top.h (all_uis): New function.
5069 (ALL_UIS): Remove.
5070
59f7bd8d
SM
50712020-05-16 Simon Marchi <simon.marchi@efficios.com>
5072
5073 * mips-linux-tdep.c (mips_linux_in_dynsym_stub): Fix condition.
5074
9bf058f0
PA
50752020-05-16 Pedro Alves <palves@redhat.com>
5076
5077 * ia64-linux-nat.c
5078 (ia64_linux_nat_target) <enable_watchpoints_in_psr(ptid_t)>:
5079 Declare method.
5080 (enable_watchpoints_in_psr): Now a method of ia64_linux_nat_target.
5081
8f86ae1a
SM
50822020-05-15 Simon Marchi <simon.marchi@efficios.com>
5083
5084 * sparc64-tdep.c (adi_stat_t): Remove typedef (leaving struct).
5085 (sparc64_adi_info): Likewise.
5086
d6bc0792
TT
50872020-05-15 Tom Tromey <tom@tromey.com>
5088
5089 * symtab.c (lookup_language_this, lookup_symbol_aux): Use
5090 block_objfile.
5091 (lookup_objfile_from_block): Remove.
5092 (lookup_symbol_in_block, lookup_symbol_in_static_block)
5093 (lookup_global_symbol): Use block_objfile.
5094 * symtab.h (lookup_objfile_from_block): Don't declare.
5095 * printcmd.c (clear_dangling_display_expressions): Use
5096 block_objfile.
5097 * parse.c (operator_check_standard): Use block_objfile.
5098
8c14c3a3
TT
50992020-05-15 Tom Tromey <tom@tromey.com>
5100
5101 * language.c (language_alloc_type_symbol): Set
5102 SYMBOL_SECTION.
5103 * symtab.c (initialize_objfile_symbol): Remove.
5104 (allocate_symbol): Remove.
5105 (allocate_template_symbol): Remove.
5106 * dwarf2/read.c (fixup_go_packaging): Use "new".
5107 (new_symbol): Use "new".
5108 (read_variable): Don't call initialize_objfile_symbol. Use
5109 "new".
5110 (read_func_scope): Use "new".
5111 * xcoffread.c (process_xcoff_symbol): Don't call
5112 initialize_objfile_symbol.
5113 (SYMBOL_DUP): Remove.
5114 * coffread.c (process_coff_symbol, coff_read_enum_type): Use
5115 "new".
5116 * symtab.h (allocate_symbol, initialize_objfile_symbol)
5117 (allocate_template_symbol): Don't declare.
5118 (struct symbol): Add copy constructor. Change defaults.
5119 * jit.c (finalize_symtab): Use "new".
5120 * ctfread.c (ctf_add_enum_member_cb, new_symbol, ctf_add_var_cb):
5121 Use "new".
5122 * stabsread.c (patch_block_stabs, define_symbol, read_enum_type)
5123 (common_block_end): Use "new".
5124 * mdebugread.c (parse_symbol): Use "new".
5125 (new_symbol): Likewise.
5126
5b4a1a8d
PW
51272020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5128
5129 * NEWS: Mention changes to help and apropos.
5130
57b4f16e
PW
51312020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5132
5133 * command.h (enum command_class): Improve comments, document
5134 that class_alias is for user-defined aliases, give the class
5135 name for each class, remove unused class_xdb.
5136 * cli/cli-decode.c (add_com_alias): Document THECLASS intended usage.
5137 * breakpoint.c (_initialize_breakpoint): Replace class_alias
5138 by a precise class.
5139 * infcmd.c (_initialize_infcmd): Likewise.
5140 * reverse.c (_initialize_reverse): Likewise.
5141 * stack.c (_initialize_stack): Likewise.
5142 * symfile.c (_initialize_symfile): Likewise.
5143 * tracepoint.c (_initialize_tracepoint): Likewise.
5144
7c05caf7
PW
51452020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5146
5147 * cli/cli-decode.c (apropos_cmd): Produce output for aliases
5148 when their aliased command is traversed.
5149 (help_cmd): Add fput_command_names_styled call to
5150 output command name and aliases when command has an alias.
5151
3b3aaacb
PW
51522020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5153
5154 * cli/cli-decode.h (help_cmd_list): Remove declaration.
5155 * cli/cli-decode.c (help_cmd_list): Declare as static,
5156 remove prefix argument, use bool for recurse arg, rework to show the aliases of
5157 a command together with the command.
5158 (fput_command_name_styled, fput_command_names_styled): New functions.
5159 (print_help_for_command): Remove prefix arg, use bool for recurse arg, use
5160 fput_command_name_styled.
5161 (help_list, help_all): Update callers to remove prefix arg and use bool recurse.
5162 * cli/cli-cmds.c (_initialize_cli_cmds): Update alias_command doc.
5163
7aa1b46f
PW
51642020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5165
5166 * cli/cli-setshow.h (cmd_show_list): Remove prefix argument.
5167 * cli/cli-decode.c (do_show_prefix_cmd): Likewise.
5168 * command.h (cmd_show_list): Likewise.
5169 * dwarf2/index-cache.c (show_index_cache_command): Likewise.
5170 * cli/cli-setshow.c (cmd_show_list): Use the prefix to produce the output. Skip aliases.
5171
89bcba74
PW
51722020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5173
5174 * unittests/command-def-selftests.c (traverse_command_structure):
5175 Verify all commands of a list have the same prefix command and
5176 that only the top cmdlist commands have a null prefix.
5177
3f4d92eb
PW
51782020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5179
5180 * cli/cli-decode.c (lookup_cmd_for_prefix): Return the aliased command
5181 as prefix, not one of its aliases.
5182 (set_cmd_prefix): Remove.
5183 (do_add_cmd): Centralize the setting of the prefix of a command, when
5184 command is defined after its full chain of prefix commands.
5185 (add_alias_cmd): Remove call to set_cmd_prefix, as do_add_cmd does it.
5186 (add_setshow_cmd_full): Likewise.
5187 (update_prefix_field_of_prefixed_commands): New function.
5188 (add_prefix_cmd): Replace non working call to set_cmd_prefix by
5189 update_prefix_field_of_prefixed_commands.
5190 * gdb/remote-fileio.c (initialize_remote_fileio): Use the real
5191 addresses of remote_set_cmdlist and remote_show_cmdlist given
5192 as argument, not the address of an argument.
5193 * gdb/remote-fileio.h (initialize_remote_fileio): Likewise.
5194 * gdb/remote.c (_initialize_remote): Likewise.
5195
0605465f
PW
51962020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5197
5198 * cli/cli-cmds.c (alias_command): Check for an existing alias
5199 using lookup_cmd_composition, as valid_command_p is too strict
5200 and forbids aliases that are the prefix of an existing alias
5201 or command.
5202 * cli/cli-decode.c (lookup_cmd_composition): Ensure a prefix
5203 command is properly recognised as a valid command.
5204
58e6ac70
PW
52052020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5206
5207 * unittests/help-doc-selftests.c: Rename to
5208 unittests/command-def-selftests.c
5209 * unittests/command-def-selftests.c (help_doc_tests): Update some
5210 comments.
5211 (command_structure_tests, traverse_command_structure): New namespace
5212 and function.
5213 (command_structure_invariants_tests): New function.
5214 (_initialize_command_def_selftests) Renamed from
5215 _initialize_help_doc_selftests, register command_structure_invariants
5216 selftest.
5217
a7b9ceb8
PW
52182020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5219
5220 * cli/cli-cmds.c (_initialize_cli_cmds): Define 'info set' as
5221 an alias of 'show'.
5222
b2188a06
JB
52232020-05-15 Joel Brobecker <brobecker@adacore.com>
5224
5225 * ada-lang.h: (ada_is_gnat_encoded_fixed_point_type): Renames
5226 ada_is_fixed_point_type. Update all callers.
5227 (gnat_encoded_fixed_point_delta): Renames ada_delta. Update
5228 all callers.
5229 * ada-lang.c (gnat_encoded_fixed_type_info): Renames fixed_type_info.
5230 Update all callers.
5231 * ada-typeprint.c (print_gnat_encoded_fixed_point_type): Renames
5232 print_fixed_point_type. Update all callers.
5233 * ada-valprint.c (ada_value_print_num): Replace call to
5234 ada_is_fixed_point_type by ada_is_gnat_encoded_fixed_point_type.
5235
a51951c2
KB
52362020-05-14 Kevin Buettner <kevinb@redhat.com>
5237
5238 * nat/linux-btrace.c (btrace_this_cpu): Add check for AMD
5239 processors.
5240 (cpu_supports_bts): Add CV_AMD case.
5241
29d6859f
LM
52422020-05-14 Laurent Morichetti <Laurent.Morichetti@amd.com>
5243 Simon Marchi <simon.marchi@efficios.com>
5244
5245 * infrun.c (stop_all_threads): Collect multiple wait events at
5246 each pass.
5247
78134374
SM
52482020-05-14 Simon Marchi <simon.marchi@efficios.com>
5249
5250 * gdbtypes.h (TYPE_CODE): Remove. Change all call sites to use
5251 type::code instead.
5252
67607e24
SM
52532020-05-14 Simon Marchi <simon.marchi@efficios.com>
5254
5255 * gdbtypes.h (struct type) <code, set_code>: New methods.
5256 (TYPE_CODE): Use type::code. Change all call sites used to set
5257 the code to use type::set_code instead.
5258
a05575d3
TBA
52592020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
5260 Tom de Vries <tdevries@suse.de>
5261 Pedro Alves <palves@redhat.com>
5262
5263 PR threads/25478
5264 * infrun.c (stop_all_threads): Do NOT ignore
5265 TARGET_WAITKIND_NO_RESUMED, TARGET_WAITKIND_THREAD_EXITED,
5266 TARGET_WAITKIND_EXITED, TARGET_WAITKIND_SIGNALLED wait statuses
5267 received.
5268 (handle_no_resumed): Remove code handling a live inferior with no
5269 threads.
5270 * remote.c (has_single_non_exited_thread): New.
5271 (remote_target::update_thread_list): Do not delete a thread if is
5272 the last thread of the process.
5273 * thread.c (thread_select): Call delete_exited_threads instead of
5274 prune_threads.
5275
6ad82919
TBA
52762020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
5277
5278 * infrun.c (stop_all_threads): Enable/disable thread events of all
5279 targets. Move a debug message denoting the end of the function
5280 into the SCOPED_EXIT block.
5281
d890404b
TBA
52822020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
5283
5284 * process-stratum-target.h: Include <set>.
5285 (all_non_exited_process_targets, switch_to_target_no_thread): New
5286 function declarations.
5287 * process-stratum-target.c (all_non_exited_process_targets)
5288 (switch_to_target_no_thread): New function implementations.
5289
293b3ebc
TBA
52902020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
5291
5292 * infrun.c (handle_inferior_event): Extract out a piece of code
5293 into...
5294 (mark_non_executing_threads): ...this new function.
5295
7ca9b62a
TBA
52962020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
5297
5298 * infrun.c (resume_1): Move a 'regcache_read_pc' call down to first
5299 use.
5300
fc75c28b
TBA
53012020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
5302
5303 * regcache.c (regcache_read_pc_protected): New function
5304 implementation that returns 0 if the PC cannot read via
5305 'regcache_read_pc'.
5306 * infrun.c (proceed): Call 'regcache_read_pc_protected'
5307 instead of 'regcache_read_pc'.
5308 (keep_going_pass_signal): Ditto.
5309
a89febbd
TT
53102020-05-13 Tom Tromey <tromey@adacore.com>
5311
5312 * ada-lang.c (align_value): Remove.
5313 (ada_template_to_fixed_record_type_1): Use align_up.
5314
f7e23710
TBA
53152020-05-13 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
5316
5317 * async-event.c: Update the copyright year.
5318 * async-event.h: Update the copyright year.
5319
02ff80c2
SM
53202020-05-12 Simon Marchi <simon.marchi@efficios.com>
5321
5322 * objfiles.h (is_addr_in_objfile,
5323 shared_objfile_contains_address_p): Return bool.
5324 * objfile.c (is_addr_in_objfile,
5325 shared_objfile_contains_address_p): Return bool.
5326
4fd6c7e8
TT
53272020-05-11 Tom Tromey <tromey@adacore.com>
5328
5329 * cli/cli-cmds.c (info_command): Restore.
5330 (_initialize_cli_cmds): Use add_prefix_command for "info".
5331 * gdb-gdb.gdb.in: Restore breakpoint on info_command.
5332
5eb68a39
TT
53332020-05-11 Tom Tromey <tromey@adacore.com>
5334
5335 * ada-lang.c (ada_value_primitive_field): Now public.
5336 * ada-lang.h (ada_value_primitive_field): Declare.
5337 * ada-valprint.c (print_field_values): Use
5338 ada_value_primitive_field for wrapper fields.
5339
7666722f
TV
53402020-05-11 Tom de Vries <tdevries@suse.de>
5341
5342 * dwarf2/index-write.c (debug_names::psymbol_tag): Handle
5343 MODULE_DOMAIN.
5344
3ee6bb11
TV
53452020-05-11 Tom de Vries <tdevries@suse.de>
5346
5347 PR symtab/25941
5348 * dwarf2/read.c (create_cus_from_debug_names_list): Initialize CUs
5349 with length 0, if not gdb-produced.
5350 (cutu_reader::cutu_reader): Set CU length to actual length if 0.
5351
43434996
TV
53522020-05-09 Tom de Vries <tdevries@suse.de>
5353
5354 PR gdb/25955
5355 * break-catch-throw.c (check_status_exception_catchpoint): Fix name
5356 calculation.
5357
2f78cffc
TT
53582020-05-09 Tom Tromey <tom@tromey.com>
5359
5360 * top.c (server_command): Now bool.
5361 * top.h (server_command): Now bool.
5362
4f7bc5ed
TT
53632020-05-08 Tom Tromey <tromey@adacore.com>
5364
5365 * dwarf2/read.c (read_lexical_block_scope): Don't process a DIE
5366 already being processed.
5367
8be4b118
TT
53682020-05-08 Tom Tromey <tom@tromey.com>
5369
5370 * printcmd.c (struct display) <next>: Remove.
5371 <display>: New constructor.
5372 <exp_string>: Now a std::string.
5373 <enabled_p>: Now a bool.
5374 (display_number): Move definition earlier.
5375 (displays): Rename from display_chain. Now a std::vector.
5376 (ALL_DISPLAYS, ALL_DISPLAYS_SAFE): Remove.
5377 (display_command): Update.
5378 (do_one_display, disable_display)
5379 (enable_disable_display_command, do_enable_disable_display):
5380 Update.
5381 (free_display): Remove.
5382 (clear_displays): Rewrite.
5383 (delete_display): Update.
5384 (map_display_numbers): Use function_view. Remove "data"
5385 parameter. Update.
5386 (do_delete_display): Remove.
5387 (undisplay_command): Update.
5388 (do_one_display, do_displays, disable_display)
5389 (info_display_command): Update.
5390 (do_enable_disable_display): Remove.
5391 (enable_disable_display_command)
5392 (clear_dangling_display_expressions): Update.
5393
94c93c35
TT
53942020-05-08 Tom Tromey <tom@tromey.com>
5395
5396 * symtab.c (set_symbol_cache_size)
5397 (maintenance_print_symbol_cache, maintenance_flush_symbol_cache)
5398 (maintenance_print_symbol_cache_statistics): Update.
5399 * symmisc.c (print_symbol_bcache_statistics)
5400 (print_objfile_statistics, maintenance_print_objfiles)
5401 (maintenance_info_symtabs, maintenance_check_symtabs)
5402 (maintenance_expand_symtabs, maintenance_info_line_tables):
5403 Update.
5404 * symfile-debug.c (set_debug_symfile): Update.
5405 * source.c (forget_cached_source_info): Update.
5406 * python/python.c (gdbpy_progspaces): Update.
5407 * psymtab.c (maintenance_info_psymtabs): Update.
5408 * probe.c (parse_probes): Update.
5409 * linespec.c (iterate_over_all_matching_symtabs)
5410 (collect_symtabs_from_filename, search_minsyms_for_name): Update.
5411 * guile/scm-progspace.c (gdbscm_progspaces): Update.
5412 * exec.c (exec_target::close): Update.
5413 * ada-tasks.c (ada_tasks_new_objfile_observer): Update.
5414 * breakpoint.c (print_one_breakpoint_location)
5415 (create_longjmp_master_breakpoint)
5416 (create_std_terminate_master_breakpoint): Update.
5417 * progspace.c (program_spaces): Now a std::vector.
5418 (maybe_new_address_space): Update.
5419 (add_program_space): Remove.
5420 (program_space::program_space): Update.
5421 (remove_program_space): Update.
5422 (number_of_program_spaces): Remove.
5423 (print_program_space, update_address_spaces): Update.
5424 * progspace.h (program_spaces): Change type.
5425 (ALL_PSPACES): Remove.
5426 (number_of_program_spaces): Don't declare.
5427 (struct program_space) <next>: Remove.
5428
a1fd1ac9
TT
54292020-05-08 Tom Tromey <tom@tromey.com>
5430
5431 * mi/mi-cmd-file.c (mi_cmd_file_list_shared_libraries): Update.
5432 * solib-svr4.c (svr4_fetch_objfile_link_map): Update.
5433 (enable_break): Update.
5434 * solib-frv.c (frv_fdpic_find_global_pointer): Update.
5435 (frv_fdpic_find_canonical_descriptor): Update.
5436 (frv_fetch_objfile_link_map): Update.
5437 * progspace.c (program_space::free_all_objfiles): Update.
5438 (program_space::solibs): New method.
5439 * progspace.h (struct program_space) <solibs>: New method.
5440 * solist.h (master_so_list): Don't declare.
5441 (ALL_SO_LIBS): Remove.
5442 * solib.h (so_list_head): Remove.
5443 (update_solib_list): Update comment.
5444 * solib.c (master_so_list): Remove.
5445 (solib_used, update_solib_list, solib_add)
5446 (info_sharedlibrary_command, clear_solib)
5447 (reload_shared_libraries_1, remove_user_added_objfile): Update.
5448
38eae084
TT
54492020-05-08 Tom Tromey <tom@tromey.com>
5450
5451 * extension.c (extension_languages): Now a std::array.
5452 (ALL_EXTENSION_LANGUAGES): Remove.
5453 (get_ext_lang_defn, get_ext_lang_of_file)
5454 (eval_ext_lang_from_control_command): Update.
5455 (finish_ext_lang_initialization)
5456 (auto_load_ext_lang_scripts_for_objfile)
5457 (ext_lang_type_printers::ext_lang_type_printers)
5458 (apply_ext_lang_type_printers)
5459 (ext_lang_type_printers::~ext_lang_type_printers)
5460 (apply_ext_lang_val_pretty_printer, apply_ext_lang_frame_filter)
5461 (preserve_ext_lang_values, get_breakpoint_cond_ext_lang)
5462 (breakpoint_ext_lang_cond_says_stop, check_quit_flag)
5463 (get_matching_xmethod_workers, ext_lang_colorize)
5464 (ext_lang_before_prompt): Update.
5465 (ALL_ENABLED_EXTENSION_LANGUAGES): Remove.
5466
596dc4ad
TT
54672020-05-08 Tom Tromey <tom@tromey.com>
5468
5469 * symtab.h (class demangle_result_storage) <set_malloc_ptr>: New
5470 overload.
5471 <swap_string, m_string>: Remove.
5472 * symtab.c (demangle_for_lookup, completion_list_add_symbol):
5473 Update.
5474 * stabsread.c (define_symbol, read_type): Update.
5475 * linespec.c (find_linespec_symbols): Update.
5476 * gnu-v3-abi.c (gnuv3_get_typeid): Update.
5477 * dwarf2/read.c (dwarf2_canonicalize_name): Update.
5478 * dbxread.c (read_dbx_symtab): Update.
5479 * cp-support.h (cp_canonicalize_string_full)
5480 (cp_canonicalize_string, cp_canonicalize_string_no_typedefs):
5481 Return unique_xmalloc_ptr.
5482 * cp-support.c (inspect_type): Update.
5483 (cp_canonicalize_string_full): Return unique_xmalloc_ptr.
5484 (cp_canonicalize_string_no_typedefs, cp_canonicalize_string):
5485 Likewise.
5486 * c-typeprint.c (print_name_maybe_canonical): Update.
5487 * break-catch-throw.c (check_status_exception_catchpoint):
5488 Update.
5489
bf4cb9be
TV
54902020-05-08 Tom de Vries <tdevries@suse.de>
5491
5492 * infrun.c (follow_fork): Copy current_line and current_symtab to
5493 child thread.
5494
a1b68f28
SM
54952020-05-07 Simon Marchi <simon.marchi@efficios.com>
5496
5497 * async-event.c (struct async_signal_handler, struct
5498 async_event_handler): Reformat, remove typedef.
5499
98d48915
SM
55002020-05-07 Simon Marchi <simon.marchi@efficios.com>
5501
5502 * gdbtypes.h (TYPE_DYN_PROP_LIST): Remove. Update all users
5503 access thistype->main_type->dyn_prop_list directly.
5504
7aa91313
SM
55052020-05-07 Simon Marchi <simon.marchi@efficios.com>
5506
5507 * gdbtypes.h (struct type) <remove_dyn_prop>: New method.
5508 (remove_dyn_prop): Remove. Update all users to use
5509 type::remove_dyn_prop.
5510 * gdbtypes.c (remove_dyn_prop): Rename to...
5511 (type::remove_dyn_prop): ... this.
5512
5c54719c
SM
55132020-05-07 Simon Marchi via Gdb-patches <gdb-patches@sourceware.org>
5514
5515 * gdbtypes.h (struct type) <add_dyn_prop>: New method.
5516 (add_dyn_prop): Remove. Update all users to use
5517 type::add_dyn_prop.
5518 * gdbtypes.c (add_dyn_prop): Rename to...
5519 (type::add_dyn_prop): ... this.
5520
24e99c6c
SM
55212020-05-07 Simon Marchi <simon.marchi@efficios.com>
5522
5523 * gdbtypes.h (struct type) <get_dyn_prop>: New method.
5524 (get_dyn_prop): Remove. Update all users to use
5525 type::dyn_prop.
5526 * gdbtypes.c (get_dyn_prop): Rename to...
5527 (type::dyn_prop): ... this.
5528
0d4bf016
SM
55292020-05-06 Simon Marchi <simon.marchi@efficios.com>
5530
5531 * gdbtypes.h (struct main_type) <flag_static>: Remove.
5532
ac4a4f1c
SM
55332020-05-06 Simon Marchi <simon.marchi@efficios.com>
5534
5535 * amd64-tdep.c (amd64_analyze_prologue): Check for `endbr64`
5536 instruction, skip it if it's there.
5537
a3bbacc1
SM
55382020-05-05 Simon Marchi <simon.marchi@efficios.com>
5539
5540 * gdbtypes.h (struct main_type) <flag_incomplete>: Remove.
5541
c3236f84
SM
55422020-05-04 Simon Marchi <simon.marchi@efficios.com>
5543
5544 * gdbtypes.h (TYPE_INCOMPLETE): Remove.
5545 * gdbtypes.c (recursive_dump_type): Remove use of
5546 TYPE_INCOMPLETE.
5547
3b6acaee
TT
55482020-05-03 Tom Tromey <tom@tromey.com>
5549
5550 * breakpoint.c (catch_command, tcatch_command): Remove.
5551 (_initialize_breakpoint): Use add_basic_prefix_cmd,
5552 add_show_prefix_cmd.
5553 (set_breakpoint_cmd, show_breakpoint_cmd): Remove
5554 * utils.c (set_internal_problem_cmd, show_internal_problem_cmd):
5555 Remove.
5556 (add_internal_problem_command): Use add_basic_prefix_cmd,
5557 add_show_prefix_cmd.
5558 * mips-tdep.c (set_mipsfpu_command): Remove.
5559 (_initialize_mips_tdep): Use add_basic_prefix_cmd.
5560 * dwarf2/index-cache.c (set_index_cache_command): Remove.
5561 (_initialize_index_cache): Use add_basic_prefix_cmd.
5562 * memattr.c (dummy_cmd): Remove.
5563 (_initialize_mem): Use add_basic_prefix_cmd, add_show_prefix_cmd.
5564 * tui/tui-win.c (set_tui_cmd, show_tui_cmd): Remove.
5565 (_initialize_tui_win): Use add_basic_prefix_cmd,
5566 add_show_prefix_cmd.
5567 * cli/cli-logging.c (set_logging_command): Remove.
5568 (_initialize_cli_logging): Use add_basic_prefix_cmd,
5569 add_show_prefix_cmd.
5570 (show_logging_command): Remove.
5571 * target.c (target_command): Remove.
5572 (add_target): Use add_basic_prefix_cmd.
5573
a51119cd
HD
55742020-05-02 Hannes Domani <ssbssa@yahoo.de>
5575
5576 * gdbtypes.h (enum dynamic_prop_node_kind): Fix typo.
5577
652fc23a 55782020-05-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6a6ea76a 5579
652fc23a
PW
5580 * gdb-gdb.gdb-in: Remove breakpoint on disappeared function
5581 info_command.
5582
117539e6
KR
55832020-04-30 Kamil Rytarowski <n54@gmx.com>
5584
5585 * nbsd-nat.c (nbsd_enable_proc_events)
5586 (nbsd_nat_target::post_startup_inferior): Add.
5587 (nbsd_nat_target::post_attach): Call `nbsd_enable_proc_events'.
5588 (nbsd_nat_target::update_thread_list): Rewrite.
5589 (nbsd_nat_target::wait): Handle "PTRACE_LWP_EXIT" and
5590 "PTRACE_LWP_CREATE".
5591 * nbsd-nat.h (nbsd_nat_target::post_startup_inferior): Add.
5592
102e38eb 55932020-04-30 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6a6ea76a 5594
102e38eb
PW
5595 * stack.c (_initialize_stack): Remove duplicated creation
5596 of "frame" command and "f" alias.
5597
ee9d1e5f
HD
55982020-04-30 Hannes Domani <ssbssa@yahoo.de>
5599
5600 PR gdb/18706
5601 * gdbtypes.c (check_typedef): Calculate size of array of
5602 stubbed type.
5603
627c7fb8
HD
56042020-04-30 Hannes Domani <ssbssa@yahoo.de>
5605
5606 PR gdb/15559
5607 * i386-tdep.c (i386_push_dummy_call): Call
5608 i386_thiscall_push_dummy_call.
5609 (i386_thiscall_push_dummy_call): New function.
5610 * i386-tdep.h (i386_thiscall_push_dummy_call): Declare.
5611 * i386-windows-tdep.c (i386_windows_push_dummy_call): New function.
5612 (i386_windows_init_abi): Call set_gdbarch_push_dummy_call.
5613
ffc2844e
SM
56142020-04-29 Simon Marchi <simon.marchi@efficios.com>
5615
5616 * gdbarch.sh (do_read): Add shellcheck disable directive for
5617 warning SC2162.
5618
1207375d
SM
56192020-04-29 Simon Marchi <simon.marchi@efficios.com>
5620
5621 * gdbarch.sh: Use ${foo:-} where shellcheck would report a
5622 "referenced but not assigned" warning.
5623
9fdb2916
SM
56242020-04-29 Simon Marchi <simon.marchi@efficios.com>
5625
5626 * gdbarch.sh: Remove code that sets fallbackdefault.
5627
759cea5e
SM
56282020-04-29 Simon Marchi <simon.marchi@efficios.com>
5629
5630 * gdbarch.sh: Use shell operators && and || instead of
5631 -a and -o.
5632
cb02ab24
SM
56332020-04-29 Simon Marchi <simon.marchi@efficios.com>
5634
5635 * gdbarch.sh: Use $(...) instead of `...`.
5636
a6fc5ffc
SM
56372020-04-29 Simon Marchi <simon.marchi@efficios.com>
5638
5639 * gdbarch.sh: Use double quotes around variables.
5640
8d113d13
SM
56412020-04-29 Simon Marchi <simon.marchi@efficios.com>
5642
5643 * gdbarch.sh: Use %s with printf, instead of variables in the
5644 format string.
5645
ed6acedd
TT
56462020-04-29 Tom Tromey <tromey@adacore.com>
5647
5648 PR ada/25875:
5649 * dwarf2/read.c (update_enumeration_type_from_children): Compute
5650 type fields here.
5651 (read_enumeration_type): Call
5652 update_enumeration_type_from_children later. Update comments.
5653 (process_enumeration_scope): Don't create type fields.
5654
b68b1b58
KR
56552020-04-29 Kamil Rytarowski <n54@gmx.com>
5656
5657 * nbsd-tdep.c: Include "xml-syscall.h".
5658 (nbsd_init_abi): Call `set_xml_syscall_file_name'.
5659
f94b2e03
KR
56602020-04-29 Kamil Rytarowski <n54@gmx.com>
5661
5662 * nbsd-nat.c: Include "sys/wait.h".
5663 (nbsd_resume, nbsd_nat_target::resume, nbsd_wait)
5664 (nbsd_nat_target::wait, nbsd_nat_target::insert_exec_catchpoint)
5665 (nbsd_nat_target::remove_exec_catchpoint)
5666 (nbsd_nat_target::set_syscall_catchpoint): Add.
5667 * nbsd-nat.h (nbsd_nat_target::resume, nbsd_nat_target::wait)
5668 (nbsd_nat_target::insert_exec_catchpoint)
5669 (nbsd_nat_target::remove_exec_catchpoint)
5670 (nbsd_nat_target::set_syscall_catchpoint): Add.
5671 * nbsd-tdep.c (nbsd_get_syscall_number): Add.
5672 (nbsd_init_abi): Call `set_gdbarch_get_syscall_number' and pass
5673 `nbsd_get_syscall_number'.
5674
fc49bc72
TT
56752020-04-29 Tom Tromey <tom@tromey.com>
5676
5677 * stack.c (print_block_frame_labels): Remove.
5678
d642b692
HD
56792020-04-29 Hannes Domani <ssbssa@yahoo.de>
5680
5681 PR gdb/17320
5682 * ada-valprint.c (val_print_packed_array_elements): Move array
5683 end bracket to new line.
5684 (ada_val_print_string): Remove extra spaces before first array
5685 element.
5686 * c-valprint.c (c_value_print_array): Likewise.
5687 * m2-valprint.c (m2_print_array_contents): Likewise.
5688 (m2_value_print_inner): Likewise.
5689 * p-valprint.c (pascal_value_print_inner): Likewise.
5690 * valprint.c (generic_val_print_array): Likewise.
5691 (value_print_array_elements): Move first array element and array
5692 end bracket to new line.
5693
ea90f227
TV
56942020-04-29 Tom de Vries <tdevries@suse.de>
5695
5696 PR symtab/25889
5697 * linespec.c (find_method): Fix ix calculation.
5698
4498ef4f
KR
56992020-04-28 Kamil Rytarowski <n54@gmx.com>
5700
5701 * syscalls/update-netbsd.sh: New file.
5702 * syscalls/netbsd.xml: Regenerate.
5703 * data-directory/Makefile.in: Register `netbsd.xml' in
5704 `SYSCALLS_FILES'.
5705
a55e30b5
SM
57062020-04-28 Simon Marchi <simon.marchi@efficios.com>
5707
5708 * syscalls/update-freebsd.sh: Add double quotes.
5709
2b2fbab8
TT
57102020-04-28 Tom Tromey <tom@tromey.com>
5711
5712 * NEWS: Update.
5713 * python/py-cmd.c (gdbpy_initialize_commands): Add COMMAND_TUI.
5714 (cmdpy_init): Allow class_tui.
5715
a65189c9
TV
57162020-04-28 Mark Williams <mark@myosotissp.com>
5717
5718 PR gdb/24480
5719 * dwarf2read.c: Add missing assingments to list_in_scope when
5720 start_symtab was already called.
5721
1b95cdb7
SM
57222020-04-28 Simon Marchi <simon.marchi@efficios.com>
5723
5724 PR gdb/25881
5725 * dwarf2/read.c (offset_map_type): Use
5726 gdb:hash_enum<sect_offset> as hash function.
5727
15cd93d0
TV
57282020-04-28 Tom de Vries <tdevries@suse.de>
5729
5730 * dwarf2/read.c (process_structure_scope): Add symbol for struct decl
5731 with DW_AT_signature.
5732
1eb39914
SM
57332020-04-27 Simon Marchi <simon.marchi@efficios.com>
5734
5735 * configure.ac: Remove check for fs_base/gs_base in
5736 user_regs_struct.
5737 * configure: Re-generate.
5738 * config.in: Re-generate.
5739 * amd64-nat.c (amd64_native_gregset_reg_offset): Adjust.
5740 * amd64-linux-nat.c (amd64_linux_nat_target::fetch_registers,
5741 amd64_linux_nat_target::store_registers, ps_get_thread_area, ): Adjust.
5742
991a3e2e
LM
57432020-04-27 Luis Machado <luis.machado@linaro.org>
5744
5745 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first): Handle
5746 problematic inline frame unwinding situation.
5747 * frame.c (frame_id_computed_p): New function.
5748 * frame.h (frame_id_computed_p): New prototype.
5749
361ba0e8
TT
57502020-04-26 Tom Tromey <tom@tromey.com>
5751
5752 * command.h (enum command_class) <class_pseudo>: Remove.
5753
bc3609fd
PW
57542020-04-26 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5755
5756 * cli/cli-decode.c (lookup_cmd_composition): Fix comments
5757 and whitespace.
5758
b9771db7
KR
57592020-04-25 Kamil Rytarowski <n54@gmx.com>
5760
ec16513e
SM
5761 * inf-ptrace.c (inf_ptrace_target::wait): Remove
5762 `PT_GET_PROCESS_STATE' block.
b9771db7 5763
7151c1af
TT
57642020-04-24 Tom Tromey <tom@tromey.com>
5765
5766 * symtab.h (symbol_get_demangled_name): Don't declare.
5767 * symtab.c (symbol_get_demangled_name): Remove.
5768 (general_symbol_info::natural_name)
5769 (general_symbol_info::demangled_name): Update.
5770
906bb4c5
TT
57712020-04-24 Tom Tromey <tom@tromey.com>
5772
5773 PR rust/25025:
5774 * dwarf2/read.c (dwarf2_physname): Do not demangle for Rust.
5775
bcfe6157
TT
57762020-04-24 Tom Tromey <tom@tromey.com>
5777
5778 PR symtab/12707:
5779 * dwarf2/read.c (add_partial_symbol): Use the linkage name if it
5780 exists.
5781 (new_symbol): Likewise.
5782 * compile/compile-object-load.c (get_out_value_type): Use
5783 symbol_matches_search_name.
5784
f049a313
TT
57852020-04-24 Tom Tromey <tom@tromey.com>
5786
5787 * dwarf2/read.c (add_partial_symbol): Do not call
5788 compute_and_set_names.
5789
76e288d1
TT
57902020-04-24 Tom Tromey <tom@tromey.com>
5791
5792 * dwarf2/read.c (add_partial_symbol): Use new add_psymbol_to_list
5793 overload.
5794
2467f4f6
TT
57952020-04-24 Tom Tromey <tom@tromey.com>
5796
5797 * psymtab.c (add_psymbol_to_bcache): Simplify calling convention.
5798 (add_psymbol_to_list): New overload. Make old overload call new
5799 one.
5800 * psympriv.h (add_psymbol_to_list): New overload.
5801
e61108c9
TT
58022020-04-24 Tom Tromey <tom@tromey.com>
5803
5804 * dwarf2/read.c (partial_die_info::read) <case
5805 DW_AT_linkage_name>: Use value_as_string.
5806 (dwarf2_string_attr): Use value_as_string.
5807 * dwarf2/attribute.h (struct attribute) <value_as_string>: Declare
5808 method.
5809 * dwarf2/attribute.c (attribute::value_as_string): New method.
5810
8c87a452
TT
58112020-04-24 Tom Tromey <tom@tromey.com>
5812
5813 * symtab.c (general_symbol_info::natural_name)
5814 (general_symbol_info::demangled_name): Check for language_rust.
5815
787de330
TT
58162020-04-24 Tom Tromey <tom@tromey.com>
5817
5818 * dwarf2/read.c (dw2_linkage_name): Move Rust "{" hack here...
5819 (dwarf2_physname): ... from here.
5820 (partial_die_info::read): Add Rust "{" hack.
5821
ff985671
TT
58222020-04-24 Tom Tromey <tom@tromey.com>
5823
5824 * symtab.h (struct general_symbol_info) <set_demangled_name>: New
5825 method.
5826 (symbol_set_demangled_name): Don't declare.
5827 * symtab.c (general_symbol_info::set_demangled_name): Rename from
5828 symbol_set_demangled_name.
5829 (general_symbol_info::set_language)
5830 (general_symbol_info::compute_and_set_names): Update.
5831 * minsyms.c (minimal_symbol_reader::install): Update.
5832 * dwarf2/read.c (new_symbol): Update.
5833
1acda803
TT
58342020-04-24 Tom Tromey <tromey@adacore.com>
5835
5836 PR python/23662:
5837 * python/py-type.c (convert_field): Handle
5838 FIELD_LOC_KIND_DWARF_BLOCK.
5839 (typy_get_sizeof): Handle TYPE_HAS_DYNAMIC_LENGTH.
5840 (typy_get_dynamic): Nw function.
5841 (type_object_getset): Add "dynamic".
5842 * NEWS: Add entry.
5843
d656f129
TT
58442020-04-24 Tom Tromey <tromey@adacore.com>
5845
5846 * ada-typeprint.c (print_choices, print_variant_part)
5847 (print_record_field_types_dynamic): New functions.
5848 (print_record_field_types): Use print_record_field_types_dynamic.
5849
7d79de9a
TT
58502020-04-24 Tom Tromey <tromey@adacore.com>
5851
5852 * dwarf2/read.c (handle_data_member_location): New overload.
5853 (dwarf2_add_field): Use it.
5854 (decode_locdesc): Add "computed" parameter. Update comment.
5855 * gdbtypes.c (is_dynamic_type_internal): Also look for
5856 FIELD_LOC_KIND_DWARF_BLOCK.
5857 (resolve_dynamic_struct): Handle FIELD_LOC_KIND_DWARF_BLOCK.
5858 * gdbtypes.c (is_dynamic_type_internal): Add special case for C++
5859 virtual base classes.
5860 * gnu-v3-abi.c (gnuv3_baseclass_offset): Handle
5861 FIELD_LOC_KIND_DWARF_BLOCK.
5862
f8e89861
TT
58632020-04-24 Tom Tromey <tromey@adacore.com>
5864
5865 * dwarf2/read.c (read_structure_type): Handle dynamic length.
5866 * gdbtypes.c (is_dynamic_type_internal): Check
5867 TYPE_HAS_DYNAMIC_LENGTH.
5868 (resolve_dynamic_type_internal): Use TYPE_DYNAMIC_LENGTH.
5869 * gdbtypes.h (TYPE_HAS_DYNAMIC_LENGTH, TYPE_DYNAMIC_LENGTH):
5870 New macros.
5871 (enum dynamic_prop_node_kind) <DYN_PROP_BYTE_SIZE>: New
5872 constant.
5873
9c6a1327
TT
58742020-04-24 Tom Tromey <tromey@adacore.com>
5875
5876 * dwarf2/read.c (struct variant_field): Rewrite.
5877 (struct variant_part_builder): New.
5878 (struct nextfield): Remove "variant" field. Add "offset".
5879 (struct field_info): Add "current_variant_part" and
5880 "variant_parts".
5881 (alloc_discriminant_info): Remove.
5882 (alloc_rust_variant): New function.
5883 (quirk_rust_enum): Update.
5884 (dwarf2_add_field): Set "offset" member. Don't handle
5885 DW_TAG_variant_part.
5886 (offset_map_type): New typedef.
5887 (convert_variant_range, create_one_variant)
5888 (create_one_variant_part, create_variant_parts)
5889 (add_variant_property): New functions.
5890 (dwarf2_attach_fields_to_type): Call add_variant_property.
5891 (read_structure_type): Don't handle DW_TAG_variant_part.
5892 (handle_variant_part, handle_variant): New functions.
5893 (handle_struct_member_die): Use them.
5894 (process_structure_scope): Don't handle variant parts.
5895 * gdbtypes.h (TYPE_FLAG_DISCRIMINATED_UNION): Remove.
5896 (struct discriminant_info): Remove.
5897 (enum dynamic_prop_node_kind) <DYN_PROP_DISCRIMINATED>: Remove.
5898 (struct main_type) <flag_discriminated_union>: Remove.
5899 * rust-lang.c (rust_enum_p, rust_empty_enum_p): Rewrite.
5900 (rust_enum_variant): Return int. Remove "contents". Rewrite.
5901 (rust_print_enum, rust_print_struct_def, rust_evaluate_subexp):
5902 Update.
5903 * valops.c (value_union_variant): Remove.
5904 * value.h (value_union_variant): Don't declare.
5905
b249d2c2
TT
59062020-04-24 Tom Tromey <tromey@adacore.com>
5907
5908 * ada-lang.c (ada_discrete_type_high_bound, ada_discrete_type_low)
5909 (ada_value_primitive_packed_val): Update.
5910 * ada-valprint.c (ada_value_print_1): Update.
5911 * dwarf2/loc.c (evaluate_for_locexpr_baton): New struct.
5912 (dwarf2_locexpr_baton_eval): Take a property_addr_info rather than
5913 just an address. Use evaluate_for_locexpr_baton.
5914 (dwarf2_evaluate_property): Update.
5915 * dwarf2/loc.h (struct property_addr_info) <valaddr>: Now an
5916 array_view.
5917 * findvar.c (default_read_var_value): Update.
5918 * gdbtypes.c (compute_variant_fields_inner)
5919 (resolve_dynamic_type_internal): Update.
5920 (resolve_dynamic_type): Change type of valaddr parameter.
5921 * gdbtypes.h (resolve_dynamic_type): Update.
5922 * valarith.c (value_subscripted_rvalue): Update.
5923 * value.c (value_from_contents_and_address): Update.
5924
61122aa9
TT
59252020-04-24 Tom Tromey <tromey@adacore.com>
5926
5927 * dwarf2/loc.c (dwarf2_locexpr_baton_eval): Add
5928 "push_initial_value" parameter.
5929 (dwarf2_evaluate_property): Likewise.
5930 * dwarf2/loc.h (dwarf2_evaluate_property): Update.
5931
ef83a141
TT
59322020-04-24 Tom Tromey <tromey@adacore.com>
5933
5934 * gdbtypes.c (is_dynamic_type_internal): Check for variant parts.
5935 (variant::matches, compute_variant_fields_recurse)
5936 (compute_variant_fields_inner, compute_variant_fields): New
5937 functions.
5938 (resolve_dynamic_struct): Check for DYN_PROP_VARIANT_PARTS.
5939 Use resolved_type after type is made.
5940 (operator==): Add new cases.
5941 * gdbtypes.h (TYPE_HAS_VARIANT_PARTS): New macro.
5942 (struct discriminant_range, struct variant, struct variant_part):
5943 New.
5944 (union dynamic_prop_data) <variant_parts, original_type>: New
5945 members.
5946 (enum dynamic_prop_node_kind) <DYN_PROP_VARIANT_PARTS>: New constant.
5947 (enum dynamic_prop_kind) <PROP_TYPE, PROP_VARIANT_PARTS>: New
5948 constants.
5949 * value.c (unpack_bits_as_long): Now public.
5950 * value.h (unpack_bits_as_long): Declare.
5951
675127ec
TT
59522020-04-24 Tom Tromey <tromey@adacore.com>
5953
5954 * rs6000-tdep.c (struct ppc_variant): Rename from "variant".
5955 (variants, find_variant_by_arch, rs6000_gdbarch_init): Update.
5956
9852ceef
HD
59572020-04-24 Hannes Domani <ssbssa@yahoo.de>
5958
5959 * windows-tdep.c (exception_values): Add WOW64 exception numbers.
5960
7632c6ce
KR
59612020-04-24 Kamil Rytarowski <n54@gmx.com>
5962
5963 * inf-ptrace.h (follow_fork, insert_fork_catchpoint)
5964 (remove_fork_catchpoint, post_startup_inferior)
5965 (post_attach): Move...
5966 * obsd-nat.h (follow_fork, insert_fork_catchpoint)
5967 (remove_fork_catchpoint, post_startup_inferior)
5968 (post_attach): ...here.
5969 * inf-ptrace.c (follow_fork, insert_fork_catchpoint)
5970 (remove_fork_catchpoint, post_startup_inferior)
5971 (post_attach): Move...
5972 * obsd-nat.c (follow_fork, insert_fork_catchpoint)
5973 (remove_fork_catchpoint, post_startup_inferior)
5974 (post_attach): ...here.
5975
7be2bb4f
TT
59762020-04-24 Tom Tromey <tromey@adacore.com>
5977
5978 * nat/windows-nat.h (struct windows_thread_info)
5979 <pc_adjusted>: New member.
5980 * windows-nat.c (windows_fetch_one_register): Check
5981 pc_adjusted.
5982 (windows_nat_target::get_windows_debug_event)
5983 (windows_nat_target::wait): Set pc_adjusted.
5984
f80cb3b4
TV
59852020-04-24 Tom de Vries <tdevries@suse.de>
5986
5987 * contrib/cc-with-tweaks.sh: Remove <exec>.gdb-index file handling.
5988 Run gdb-add-index inside temp dir.
5989
29514b87
TT
59902020-04-23 Tom Tromey <tromey@adacore.com>
5991
5992 * windows-tdep.c (is_linked_with_cygwin_dll): Always update "iter"
5993 in loop.
5994
5939967b
LM
59952020-04-23 Luis Machado <luis.machado@linaro.org>
5996
5997 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first): Use
5998 get_frame_register instead of gdbarch_unwind_pc.
5999
70bc38f5
TV
60002020-04-23 Tom de Vries <tdevries@suse.de>
6001
6002 * symtab.c (lookup_global_symbol): Prefer def over decl.
6003
de82891c
TV
60042020-04-23 Tom de Vries <tdevries@suse.de>
6005
6006 PR symtab/25807
6007 * block.c (best_symbol, better_symbol): Promote to external.
6008 * block.h (best_symbol, better_symbol): Declare.
6009 * symtab.c (lookup_symbol_in_objfile_symtabs): Prefer def over
6010 decl.
6011
ecc6c606
TT
60122020-04-23 Tom Tromey <tromey@adacore.com>
6013
6014 PR ada/25837:
6015 * dwarf2/read.c (dw2_expand_symtabs_matching_symbol): Store a
6016 "const char *", not a "const std::string &".
6017 <name_and_matcher::operator==>: Update.
6018 * unittests/lookup_name_info-selftests.c: Change type of
6019 "result".
6020
740480b8
TT
60212020-04-23 Tom Tromey <tom@tromey.com>
6022
6023 * inferior.h (iterate_over_inferiors): Don't declare.
6024 * inferior.c (iterate_over_inferiors): Remove.
6025 * darwin-nat.c (find_inferior_task_it, find_inferior_pid_it):
6026 Remove.
6027 (darwin_find_inferior_by_task, darwin_find_inferior_by_pid): Don't
6028 use iterate_over_inferiors.
6029 (darwin_resume_inferior_it)
6030 (struct resume_inferior_threads_param)
6031 (darwin_resume_inferior_threads_it): Remove.
6032 (darwin_nat_target::resume): Don't use iterate_over_inferiors.
6033
ae3ab1f0
TV
60342020-04-23 Tom de Vries <tdevries@suse.de>
6035
6036 * blockframe.c (find_pc_partial_function): Use
6037 find_pc_sect_compunit_symtab rather than
6038 objfile->sf->qf->find_pc_sect_compunit_symtab.
6039
317d2668
TV
60402020-04-22 Tom de Vries <tdevries@suse.de>
6041
6042 PR symtab/25764
6043 * dwarf2/read.c (scan_partial_symbols): Allow external variable decls
6044 in psymtabs.
6045
eea9e357
TV
60462020-04-22 Tom de Vries <tdevries@suse.de>
6047
6048 PR symtab/25801
6049 * psymtab.c (psym_map_symtabs_matching_filename): Don't skip shared
6050 symtabs.
6051
3d5afab3
TV
60522020-04-22 Tom de Vries <tdevries@suse.de>
6053
6054 PR symtab/25700
6055 * dwarf2/read.c (dwarf2_build_psymtabs_hard): Don't create psymtab for
6056 CU if already created.
6057
d43b7a2d
TBA
60582020-04-21 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
6059
6060 * infrun.c (displaced_step_fixup): Switch to the event_thread
6061 before calling displaced_step_restore, not after.
6062
d89edf9b
MM
60632020-04-21 Markus Metzger <markus.t.metzger@intel.com>
6064
6065 * record-btrace.c (record_btrace_enable_warn): Ignore thread if
6066 its inferior is not recorded by us.
6067 (record_btrace_target_open): Replace call to
6068 all_non_exited_threads () with call to current_inferior
6069 ()->non_exited_threads ().
6070 (record_btrace_target::stop_recording): Likewise.
6071 (record_btrace_target::close): Likewise.
6072 (record_btrace_target::wait): Likewise.
6073 (record_btrace_target::record_stop_replaying): Likewise.
6074
5897fd49
MM
60752020-04-21 Markus Metzger <markus.t.metzger@intel.com>
6076
6077 * btrace.c (btrace_enable): Throw an error on double enables and
6078 when enabling recording fails.
6079 (btrace_disable): Throw an error if the thread is not recorded.
6080
1a476b6d
MM
60812020-04-21 Markus Metzger <markus.t.metzger@intel.com>
6082
6083 * record-btrace.c (record_btrace_target::fetch_registers): Forward
6084 request if we do not have a thread_info.
6085
4778a5f8
TV
60862020-04-21 Tom de Vries <tdevries@suse.de>
6087
6088 PR gdb/25471
6089 * thread.c
6090 (scoped_restore_current_thread::scoped_restore_current_thread): Catch
6091 exception in get_frame_id.
6092
0fa7617d
TT
60932020-04-20 Tom Tromey <tromey@adacore.com>
6094
6095 * python/python.c (struct gdbpy_event): Mark move constructor as
6096 noexcept.
6097 * python/py-tui.c (class gdbpy_tui_window_maker): Mark move
6098 constructor as noexcept.
6099 * completer.h (struct completion_result): Mark move constructor as
6100 noexcept.
6101 * completer.c (completion_result::completion_result): Use
6102 initialization style. Don't call reset_match_list.
6103
ad23bda0
MS
61042020-04-20 Mihails Strasuns <mihails.strasuns@intel.com>
6105
6106 * MAINTAINERS (Write After Approval): Add myself.
6107
45e1f031
TT
61082020-04-18 Tom Tromey <tom@tromey.com>
6109
6110 * windows-tdep.c (init_w32_command_list)
6111 (w32_prefix_command_valid): Restore.
6112 (_initialize_windows_tdep): Call init_w32_command_list.
6113
08feed99
TT
61142020-04-18 Tom Tromey <tom@tromey.com>
6115
6116 * xcoffread.c (enter_line_range, scan_xcoff_symtab): Update.
6117 * value.c (value_fn_field): Update.
6118 * valops.c (find_function_in_inferior)
6119 (value_allocate_space_in_inferior): Update.
6120 * tui/tui-winsource.c (tui_update_source_windows_with_line):
6121 Update.
6122 * tui/tui-source.c (tui_source_window::set_contents): Update.
6123 * symtab.c (lookup_global_or_static_symbol)
6124 (find_function_start_sal_1, skip_prologue_sal)
6125 (print_msymbol_info, find_gnu_ifunc, symbol_arch): Update.
6126 * symmisc.c (dump_msymbols, dump_symtab_1)
6127 (maintenance_print_one_line_table): Update.
6128 * symfile.c (init_entry_point_info, section_is_mapped)
6129 (list_overlays_command, simple_read_overlay_table)
6130 (simple_overlay_update_1): Update.
6131 * stap-probe.c (handle_stap_probe): Update.
6132 * stabsread.c (dbx_init_float_type, define_symbol)
6133 (read_one_struct_field, read_enum_type, read_range_type): Update.
6134 * source.c (info_line_command): Update.
6135 * python/python.c (gdbpy_source_objfile_script)
6136 (gdbpy_execute_objfile_script): Update.
6137 * python/py-type.c (save_objfile_types): Update.
6138 * python/py-objfile.c (py_free_objfile): Update.
6139 * python/py-inferior.c (python_new_objfile): Update.
6140 * psymtab.c (psym_find_pc_sect_compunit_symtab, dump_psymtab)
6141 (dump_psymtab_addrmap_1, maintenance_info_psymtabs)
6142 (maintenance_check_psymtabs): Update.
6143 * printcmd.c (info_address_command): Update.
6144 * objfiles.h (struct objfile) <arch>: New method, from
6145 get_objfile_arch.
6146 (get_objfile_arch): Don't declare.
6147 * objfiles.c (get_objfile_arch): Remove.
6148 (filter_overlapping_sections): Update.
6149 * minsyms.c (msymbol_is_function): Update.
6150 * mi/mi-symbol-cmds.c (mi_cmd_symbol_list_lines)
6151 (output_nondebug_symbol): Update.
6152 * mdebugread.c (parse_symbol, basic_type, parse_partial_symbols)
6153 (mdebug_expand_psymtab): Update.
6154 * machoread.c (macho_add_oso_symfile): Update.
6155 * linux-tdep.c (linux_infcall_mmap, linux_infcall_munmap):
6156 Update.
6157 * linux-fork.c (checkpoint_command): Update.
6158 * linespec.c (convert_linespec_to_sals): Update.
6159 * jit.c (finalize_symtab): Update.
6160 * infrun.c (insert_exception_resume_from_probe): Update.
6161 * ia64-tdep.c (ia64_find_unwind_table): Update.
6162 * hppa-tdep.c (internalize_unwinds): Update.
6163 * gdbtypes.c (get_type_arch, init_float_type, objfile_type):
6164 Update.
6165 * gcore.c (call_target_sbrk): Update.
6166 * elfread.c (record_minimal_symbol, elf_symtab_read)
6167 (elf_rel_plt_read, elf_gnu_ifunc_record_cache)
6168 (elf_gnu_ifunc_resolve_by_got): Update.
6169 * dwarf2/read.c (create_addrmap_from_index)
6170 (create_addrmap_from_aranges, dw2_find_pc_sect_compunit_symtab)
6171 (read_debug_names_from_section)
6172 (process_psymtab_comp_unit_reader, add_partial_symbol)
6173 (add_partial_subprogram, process_full_comp_unit)
6174 (read_file_scope, read_func_scope, read_lexical_block_scope)
6175 (read_call_site_scope, dwarf2_ranges_read)
6176 (dwarf2_record_block_ranges, dwarf2_add_field)
6177 (mark_common_block_symbol_computed, read_tag_pointer_type)
6178 (read_tag_string_type, dwarf2_init_float_type)
6179 (dwarf2_init_complex_target_type, read_base_type)
6180 (partial_die_info::read, partial_die_info::read)
6181 (read_attribute_value, dwarf_decode_lines_1, new_symbol)
6182 (dwarf2_fetch_die_loc_sect_off): Update.
6183 * dwarf2/loc.c (dwarf2_find_location_expression)
6184 (class dwarf_evaluate_loc_desc, rw_pieced_value)
6185 (dwarf2_evaluate_loc_desc_full, dwarf2_locexpr_baton_eval)
6186 (dwarf2_loc_desc_get_symbol_read_needs)
6187 (locexpr_describe_location_piece, locexpr_describe_location_1)
6188 (loclist_describe_location): Update.
6189 * dwarf2/index-write.c (write_debug_names): Update.
6190 * dwarf2/frame.c (dwarf2_build_frame_info): Update.
6191 * dtrace-probe.c (dtrace_process_dof): Update.
6192 * dbxread.c (read_dbx_symtab, dbx_end_psymtab)
6193 (process_one_symbol): Update.
6194 * ctfread.c (ctf_init_float_type, read_base_type): Update.
6195 * coffread.c (coff_symtab_read, enter_linenos, decode_base_type)
6196 (coff_read_enum_type): Update.
6197 * cli/cli-cmds.c (edit_command, list_command): Update.
6198 * buildsym.c (buildsym_compunit::finish_block_internal): Update.
6199 * breakpoint.c (create_overlay_event_breakpoint)
6200 (create_longjmp_master_breakpoint)
6201 (create_std_terminate_master_breakpoint)
6202 (create_exception_master_breakpoint, get_sal_arch): Update.
6203 * block.c (block_gdbarch): Update.
6204 * annotate.c (annotate_source_line): Update.
6205
0743fc83
TT
62062020-04-17 Tom Tromey <tromey@adacore.com>
6207
6208 * auto-load.c (show_auto_load_cmd): Remove.
6209 (auto_load_show_cmdlist_get): Use add_show_prefix_cmd.
6210 * arc-tdep.c (_initialize_arc_tdep): Use add_show_prefix_cmd.
6211 (maintenance_print_arc_command): Remove.
6212 * tui/tui-win.c (tui_command): Remove.
6213 (tui_get_cmd_list): Use add_basic_prefix_cmd.
6214 * tui/tui-layout.c (tui_layout_command): Remove.
6215 (_initialize_tui_layout): Use add_basic_prefix_cmd.
6216 * python/python.c (user_set_python, user_show_python): Remove.
6217 (_initialize_python): Use add_basic_prefix_cmd,
6218 add_show_prefix_cmd.
6219 * guile/guile.c (set_guile_command, show_guile_command): Remove.
6220 (install_gdb_commands): Use add_basic_prefix_cmd,
6221 add_show_prefix_cmd.
6222 (info_guile_command): Remove.
6223 * dwarf2/read.c (set_dwarf_cmd, show_dwarf_cmd): Remove.
6224 (_initialize_dwarf2_read): Use add_basic_prefix_cmd,
6225 add_show_prefix_cmd.
6226 * cli/cli-style.h (class cli_style_option) <add_setshow_commands>:
6227 Remove do_set and do_show parameters.
6228 * cli/cli-style.c (set_style, show_style): Remove.
6229 (_initialize_cli_style): Use add_basic_prefix_cmd,
6230 add_show_prefix_cmd.
6231 (cli_style_option::add_setshow_commands): Remove do_set and
6232 do_show parameters.
6233 (cli_style_option::add_setshow_commands): Use
6234 add_basic_prefix_cmd, add_show_prefix_cmd.
6235 (STYLE_ADD_SETSHOW_COMMANDS): Remove macro.
6236 (set_style_name): Remove.
6237 * cli/cli-dump.c (dump_command, append_command): Remove.
6238 (srec_dump_command, ihex_dump_command, verilog_dump_command)
6239 (tekhex_dump_command, binary_dump_command)
6240 (binary_append_command): Remove.
6241 (_initialize_cli_dump): Use add_basic_prefix_cmd.
6242 * windows-tdep.c (w32_prefix_command_valid): Remove global.
6243 (init_w32_command_list): Remove; move into ...
6244 (_initialize_windows_tdep): ... here. Use add_basic_prefix_cmd.
6245 * valprint.c (set_print, show_print, set_print_raw)
6246 (show_print_raw): Remove.
6247 (_initialize_valprint): Use add_basic_prefix_cmd,
6248 add_show_prefix_cmd.
6249 * typeprint.c (set_print_type, show_print_type): Remove.
6250 (_initialize_typeprint): Use add_basic_prefix_cmd,
6251 add_show_prefix_cmd.
6252 * record.c (set_record_command, show_record_command): Remove.
6253 (_initialize_record): Use add_basic_prefix_cmd,
6254 add_show_prefix_cmd.
6255 * cli/cli-cmds.c (_initialize_cli_cmds): Use add_basic_prefix_cmd,
6256 add_show_prefix_cmd.
6257 (info_command, show_command, set_debug, show_debug): Remove.
6258 * top.h (set_history, show_history): Don't declare.
6259 * top.c (set_history, show_history): Remove.
6260 * target-descriptions.c (set_tdesc_cmd, show_tdesc_cmd)
6261 (unset_tdesc_cmd): Remove.
6262 (_initialize_target_descriptions): Use add_basic_prefix_cmd,
6263 add_show_prefix_cmd.
6264 * symtab.c (info_module_command): Remove.
6265 (_initialize_symtab): Use add_basic_prefix_cmd.
6266 * symfile.c (overlay_command): Remove.
6267 (_initialize_symfile): Use add_basic_prefix_cmd.
6268 * sparc64-tdep.c (info_adi_command): Remove.
6269 (_initialize_sparc64_adi_tdep): Use add_basic_prefix_cmd.
6270 * sh-tdep.c (show_sh_command, set_sh_command): Remove.
6271 (_initialize_sh_tdep): Use add_basic_prefix_cmd,
6272 add_show_prefix_cmd.
6273 * serial.c (serial_set_cmd, serial_show_cmd): Remove.
6274 (_initialize_serial): Use add_basic_prefix_cmd,
6275 add_show_prefix_cmd.
6276 * ser-tcp.c (set_tcp_cmd, show_tcp_cmd): Remove.
6277 (_initialize_ser_tcp): Use add_basic_prefix_cmd,
6278 add_show_prefix_cmd.
6279 * rs6000-tdep.c (set_powerpc_command, show_powerpc_command)
6280 (_initialize_rs6000_tdep): Use add_basic_prefix_cmd,
6281 add_show_prefix_cmd.
6282 * riscv-tdep.c (show_riscv_command, set_riscv_command)
6283 (show_debug_riscv_command, set_debug_riscv_command): Remove.
6284 (_initialize_riscv_tdep): Use add_basic_prefix_cmd,
6285 add_show_prefix_cmd.
6286 * remote.c (remote_command, set_remote_cmd): Remove.
6287 (_initialize_remote): Use add_basic_prefix_cmd.
6288 * record-full.c (set_record_full_command)
6289 (show_record_full_command): Remove.
6290 (_initialize_record_full): Use add_basic_prefix_cmd,
6291 add_show_prefix_cmd.
6292 * record-btrace.c (cmd_set_record_btrace)
6293 (cmd_show_record_btrace, cmd_set_record_btrace_bts)
6294 (cmd_show_record_btrace_bts, cmd_set_record_btrace_pt)
6295 (cmd_show_record_btrace_pt): Remove.
6296 (_initialize_record_btrace): Use add_basic_prefix_cmd,
6297 add_show_prefix_cmd.
6298 * ravenscar-thread.c (set_ravenscar_command)
6299 (show_ravenscar_command): Remove.
6300 (_initialize_ravenscar): Use add_basic_prefix_cmd,
6301 add_show_prefix_cmd.
6302 * mips-tdep.c (show_mips_command, set_mips_command)
6303 (_initialize_mips_tdep): Use add_basic_prefix_cmd,
6304 add_show_prefix_cmd.
6305 * maint.c (maintenance_command, maintenance_info_command)
6306 (maintenance_check_command, maintenance_print_command)
6307 (maintenance_set_cmd, maintenance_show_cmd): Remove.
6308 (_initialize_maint_cmds): Use add_basic_prefix_cmd,
6309 add_show_prefix_cmd.
6310 (show_per_command_cmd): Remove.
6311 * maint-test-settings.c (maintenance_set_test_settings_cmd):
6312 Remove.
6313 (maintenance_show_test_settings_cmd): Remove.
6314 (_initialize_maint_test_settings): Use add_basic_prefix_cmd,
6315 add_show_prefix_cmd.
6316 * maint-test-options.c (maintenance_test_options_command):
6317 Remove.
6318 (_initialize_maint_test_options): Use add_basic_prefix_cmd.
6319 * macrocmd.c (macro_command): Remove
6320 (_initialize_macrocmd): Use add_basic_prefix_cmd.
6321 * language.c (set_check, show_check): Remove.
6322 (_initialize_language): Use add_basic_prefix_cmd,
6323 add_show_prefix_cmd.
6324 * infcmd.c (unset_command): Remove.
6325 (_initialize_infcmd): Use add_basic_prefix_cmd.
6326 * i386-tdep.c (set_mpx_cmd, show_mpx_cmd): Remove.
6327 (_initialize_i386_tdep): Use add_basic_prefix_cmd,
6328 add_show_prefix_cmd.
6329 * go32-nat.c (go32_info_dos_command): Remove.
6330 (_initialize_go32_nat): Use add_basic_prefix_cmd.
6331 * cli/cli-decode.c (do_prefix_cmd, add_basic_prefix_cmd)
6332 (do_show_prefix_cmd, add_show_prefix_cmd): New functions.
6333 * frame.c (set_backtrace_cmd, show_backtrace_cmd): Remove.
6334 (_initialize_frame): Use add_basic_prefix_cmd,
6335 add_show_prefix_cmd.
6336 * dcache.c (set_dcache_command, show_dcache_command): Remove.
6337 (_initialize_dcache): Use add_basic_prefix_cmd,
6338 add_show_prefix_cmd.
6339 * cp-support.c (maint_cplus_command): Remove.
6340 (_initialize_cp_support): Use add_basic_prefix_cmd.
6341 * btrace.c (maint_btrace_cmd, maint_btrace_set_cmd)
6342 (maint_btrace_show_cmd, maint_btrace_pt_set_cmd)
6343 (maint_btrace_pt_show_cmd, _initialize_btrace): Use
6344 add_basic_prefix_cmd, add_show_prefix_cmd.
6345 * breakpoint.c (save_command): Remove.
6346 (_initialize_breakpoint): Use add_basic_prefix_cmd.
6347 * arm-tdep.c (set_arm_command, show_arm_command): Remove.
6348 (_initialize_arm_tdep): Use add_basic_prefix_cmd,
6349 add_show_prefix_cmd.
6350 * ada-lang.c (maint_set_ada_cmd, maint_show_ada_cmd)
6351 (set_ada_command, show_ada_command): Remove.
6352 (_initialize_ada_language): Use add_basic_prefix_cmd,
6353 add_show_prefix_cmd.
6354 * command.h (add_basic_prefix_cmd, add_show_prefix_cmd): Declare.
6355
3557f442
KR
63562020-04-16 Kamil Rytarowski <n54@gmx.com>
6357
6358 * nbsd-nat.c (inf_ptrace_target::auxv_parse): Remove.
6359 * nbsd-nat.h (inf_ptrace_target::auxv_parse): Likewise.
6360
16197208
SM
63612020-04-16 Simon Marchi <simon.marchi@polymtl.ca>
6362
6363 * windows-tdep.c (is_linked_with_cygwin_dll): Add filename to
6364 warning messages.
6365
00ac85d3
SM
63662020-04-16 Simon Marchi <simon.marchi@polymtl.ca>
6367
6368 * windows-tdep.c (is_linked_with_cygwin_dll): Consider case where
6369 import table is not at beginning of .idata section.
6370
381ce63f
PA
63712020-04-16 Pedro Alves <palves@redhat.com>
6372
6373 * inferior.c (delete_inferior): Use delete operator directly
6374 instead of delete_program_space.
6375 * progspace.c (add_program_space): New, factored out from
6376 program_space::program_space.
6377 (remove_program_space): New, factored out from
6378 delete_program_space.
6379 (program_space::program_space): Remove intro comment. Rewrite.
6380 (program_space::~program_space): Remove intro comment. Call
6381 remove_program_space.
6382 (delete_program_space): Delete.
6383 * progspace.h (program_space::program_space): Make explicit. Move
6384 intro comment here, adjusted.
6385 (program_space::~program_space): Move intro comment here,
6386 adjusted.
6387 (delete_program_space): Remove.
6388
a010605f
TT
63892020-04-16 Tom Tromey <tromey@adacore.com>
6390
6391 * windows-nat.c (windows_nat::handle_access_violation): New
6392 function.
6393 * nat/windows-nat.h (handle_access_violation): Declare.
6394 * nat/windows-nat.c (handle_exception): Move Cygwin code to
6395 windows-nat.c. Call handle_access_violation.
6396
efba5c23
TV
63972020-04-16 Tom de Vries <tdevries@suse.de>
6398
6399 PR symtab/25791
6400 * dwarf2/index-write.c (write_gdbindex): Generate CU table entries for
6401 CUs without psymtab.
6402
97ed802d
KB
64032020-04-16 Kevin Buettner <kevinb@redhat.com>
6404
6405 * python/python.c (do_start_initialization): Don't call
6406 PyEval_InitThreads for Python 3.9 and beyond.
6407
c7d64809
KR
64082020-04-15 Kamil Rytarowski <n54@gmx.com>
6409
6410 * obsd-nat.c (obsd_nat_target::update_thread_list): Pass "this" to
6411 thread functions.
6412 (obsd_nat_target::wait): Likewise.
6413
ce127a96
TT
64142020-04-15 Tom Tromey <tromey@adacore.com>
6415
6416 * windows-nat.c (DEBUG_EXEC, DEBUG_EVENTS, DEBUG_MEM)
6417 (DEBUG_EXCEPT): Use debug_printf.
6418
99f1bc6a
AB
64192020-04-15 Andrew Burgess <andrew.burgess@embecosm.com>
6420
6421 * completer.c (class completion_tracker::completion_hash_entry)
6422 <hash_name>: New member function.
6423 (completion_tracker::discard_completions): New callback to hash a
6424 completion_hash_entry, pass this to htab_create_alloc.
6425
a0e9b532
JT
64262016-01-20 Jon Turney <jon.turney@dronecode.org.uk>
6427
6428 * windows-nat.c (windows_make_so): Warn rather than stopping with
6429 an error if realpath() fails.
6430
06ca5dd4
KR
64312020-04-14 Kamil Rytarowski <n54@gmx.com>
6432
6433 * nbsd-nat.c (nbsd_pid_to_kinfo_proc2): New.
6434 (nbsd_nat_target::info_proc): Add do_status.
6435
194d088f
TV
64362020-04-14 Simon Marchi <simon.marchi@polymtl.ca>
6437 Tom de Vries <tdevries@suse.de>
6438
6439 PR symtab/25718
6440 * psympriv.h (struct partial_symtab::read_symtab)
6441 (struct partial_symtab::expand_psymtab)
6442 (struct partial_symtab::read_dependencies): Update comments.
6443 * dwarf2/read.c (struct dwarf2_include_psymtab::read_symtab): Call
6444 read_symtab for includer.
6445 (struct dwarf2_include_psymtab::expand_psymtab): Assert false.
6446 (struct dwarf2_include_psymtab::readin_p): Call readin_p () for includer.
6447 (struct dwarf2_include_psymtab::m_readin): Remove.
6448 (struct dwarf2_include_psymtab::includer): New member function.
6449 (dwarf2_psymtab::expand_psymtab): Assert !readin.
6450
c1a66c06
TV
64512020-04-14 Tom de Vries <tdevries@suse.de>
6452
6453 PR symtab/25720
6454 * symmisc.c (maintenance_expand_symtabs): Call expand_symtabs_matching
6455 with NULL symbol_matcher and lookup_name.
6456 * psymtab.c (psym_expand_symtabs_matching): Handle NULL symbol_matcher
6457 and lookup_name.
6458 * dwarf2/read.c (dw2_expand_symtabs_matching)
6459 (dw2_debug_names_expand_symtabs_matching): Same.
6460 * symfile.h (struct quick_symbol_functions::expand_symtabs_matching):
6461 Make lookup_name a pointer. Update comment.
6462 * symtab.c (global_symbol_searcher::expand_symtabs): Handle
6463 lookup_name being a pointer.
6464 * symfile.c (expand_symtabs_matching): Same.
6465 * symfile-debug.c (debug_qf_expand_symtabs_matching): Same.
6466 * linespec.c (iterate_over_all_matching_symtabs): Same.
6467
400b5eca
TT
64682020-04-13 Tom Tromey <tom@tromey.com>
6469
6470 * run-on-main-thread.c: Update include.
6471 * unittests/main-thread-selftests.c: Update include.
6472 * tui/tui-win.c: Update include.
6473 * tui/tui-io.c: Update include.
6474 * tui/tui-interp.c: Update include.
6475 * tui/tui-hooks.c: Update include.
6476 * top.h: Update include.
6477 * top.c: Update include.
6478 * ser-base.c: Update include.
6479 * remote.c: Update include.
6480 * remote-notif.c: Update include.
6481 * remote-fileio.c: Update include.
6482 * record-full.c: Update include.
6483 * record-btrace.c: Update include.
6484 * python/python.c: Update include.
6485 * posix-hdep.c: Update include.
6486 * mingw-hdep.c: Update include.
6487 * mi/mi-main.c: Update include.
6488 * mi/mi-interp.c: Update include.
6489 * main.c: Update include.
6490 * linux-nat.c: Update include.
6491 * interps.c: Update include.
6492 * infrun.c: Update include.
6493 * inf-loop.c: Update include.
6494 * event-top.c: Update include.
6495 * event-loop.c: Move to ../gdbsupport/.
6496 * event-loop.h: Move to ../gdbsupport/.
6497 * async-event.h: Update include.
6498 * Makefile.in (COMMON_SFILES, HFILES_NO_SRCDIR): Update.
6499
93b54c8e
TT
65002020-04-13 Tom Tromey <tom@tromey.com>
6501
6502 * tui/tui-win.c: Include async-event.h.
6503 * remote.c: Include async-event.h.
6504 * remote-notif.c: Include async-event.h.
6505 * record-full.c: Include async-event.h.
6506 * record-btrace.c: Include async-event.h.
6507 * infrun.c: Include async-event.h.
6508 * event-top.c: Include async-event.h.
6509 * event-loop.h: Move some declarations to async-event.h.
6510 * event-loop.c: Don't include ser-event.h or top.h. Move some
6511 code to async-event.c.
6512 * async-event.h: New file.
6513 * async-event.c: New file.
6514 * Makefile.in (COMMON_SFILES): Add async-event.c.
6515 (HFILES_NO_SRCDIR): Add async-event.h.
6516
c1cd3163
TT
65172020-04-13 Tom Tromey <tom@tromey.com>
6518
6519 * utils.c (flush_streams): New function.
6520 * event-loop.c (gdb_wait_for_event): Call flush_streams.
6521
29f2bf4f
TT
65222020-04-13 Tom Tromey <tom@tromey.com>
6523
6524 * event-loop.c (handle_file_event): Use warning, not
6525 printf_unfiltered.
6526
98029d02
TT
65272020-04-13 Tom Tromey <tom@tromey.com>
6528
6529 * event-loop.c: Include <chrono>.
6530
06cc9596
TT
65312020-04-13 Tom Tromey <tom@tromey.com>
6532
6533 * gdb_select.h: Move to ../gdbsupport/.
6534 * event-loop.c: Update include path.
6535 * top.c: Update include path.
6536 * ser-base.c: Update include path.
6537 * ui-file.c: Update include path.
6538 * ser-tcp.c: Update include path.
6539 * guile/scm-ports.c: Update include path.
6540 * posix-hdep.c: Update include path.
6541 * ser-unix.c: Update include path.
6542 * gdb_usleep.c: Update include path.
6543 * mingw-hdep.c: Update include path.
6544 * inflow.c: Update include path.
6545 * infrun.c: Update include path.
6546 * event-top.c: Update include path.
6547
8ae8e197
TT
65482020-04-13 Tom Tromey <tom@tromey.com>
6549
6550 * configure: Rebuild.
6551 * configure.ac: Remove checks that are now in GDB_AC_COMMON.
6552
58cf28e8
TT
65532020-04-13 Tom Tromey <tom@tromey.com>
6554
6555 * event-loop.h (start_event_loop): Don't declare.
6556 * event-loop.c (start_event_loop): Move...
6557 * main.c (start_event_loop): ...here. Now static.
6558
b7f999ae
SDJ
65592020-04-13 Sergio Durigan Junior <sergiodj@sergiodj.net>
6560
6561 * MAINTAINERS: Update my email address.
6562
1085dfd4
KR
65632020-04-12 Kamil Rytarowski <n54@gmx.com>
6564
6565 * nbsd-nat.c (nbsd_nat_target::info_proc): Add IP_MINIMAL and
6566 IP_ALL.
6567
49d1d1f5
KR
65682020-04-12 Kamil Rytarowski <n54@gmx.com>
6569
6570 * nbsd-nat.c (nbsd_pid_to_cmdline): Add.
aac66a4c 6571 (nbsd_nat_target::info_proc): Add do_cmdline.
49d1d1f5 6572
b4848d2a
KR
65732020-04-12 Kamil Rytarowski <n54@gmx.com>
6574
6575 * nbsd-nat.c (nbsd_pid_to_cwd): Add.
aac66a4c 6576 (nbsd_nat_target::info_proc): Add do_cwd.
b4848d2a 6577
51c133d5
KR
65782020-04-12 Kamil Rytarowski <n54@gmx.com>
6579
6580 * nbsd-nat.c (nbsd_nat_target::info_proc): Add do_exe.
6581
54b8cbd0
KR
65822020-04-11 Kamil Rytarowski <n54@gmx.com>
6583
6584 * nbsd-nat.c; Include "nbsd-tdep.h" and "gdbarch.h".
6585 * nbsd-nat.c (nbsd_nat_target::find_memory_regions)
6586 (nbsd_nat_target::info_proc): New functions.
6587 * nbsd-nat.c (kinfo_get_vmmap): New function.
6588 * nbsd-nat.c (nbsd_nat_target::info_proc) Use
6589 nbsd_info_proc_mappings_header and nbsd_info_proc_mappings_entry.
6590 * nbsd-tdep.c (nbsd_info_proc_mappings_header)
6591 (nbsd_info_proc_mappings_entry, nbsd_vm_map_entry_flags): New
6592 functions.
6593 * nbsd-tdep.c (KINFO_VME_PROT_READ, KINFO_VME_PROT_WRITE)
6594 (KINFO_VME_PROT_EXEC, KINFO_VME_FLAG_COW)
6595 (KINFO_VME_FLAG_NEEDS_COPY, KINFO_VME_FLAG_NOCOREDUMP)
6596 (KINFO_VME_FLAG_PAGEABLE, KINFO_VME_FLAG_GROWS_UP)
6597 (KINFO_VME_FLAG_GROWS_DOWN): New.
6598
cf83625d
AS
65992020-04-10 Artur Shepilko <nomadbyte@gmail.com>
6600
6601 * utils.c (copy_bitwise): Use unsigned 0 constant as operand of
6602 bit shift.
6603
0c4311ab
TT
66042020-04-10 Tom Tromey <tromey@adacore.com>
6605
6606 * symfile.c (symbol_file_add_separate): Preserve OBJF_MAINLINE.
6607
3e65b3e9
TT
66082020-04-10 Tom Tromey <tromey@adacore.com>
6609
6610 * symtab.c (get_symbol_address, get_msymbol_address): Skip
6611 separate debug files.
6612
13302e95
HD
66132020-04-10 Hannes Domani <ssbssa@yahoo.de>
6614
6615 * nat/windows-nat.c (STATUS_WX86_BREAKPOINT, STATUS_WX86_SINGLE_STEP):
6616 Move to...
6617 * nat/windows-nat.h (STATUS_WX86_BREAKPOINT, STATUS_WX86_SINGLE_STEP):
6618 ... here.
6619 * windows-nat.c (windows_nat_target::get_windows_debug_event):
6620 Check for STATUS_WX86_BREAKPOINT.
6621 (windows_nat_target::wait): Same.
6622
bdfc1e8a
TV
66232020-04-10 Tom de Vries <tdevries@suse.de>
6624
6625 PR cli/25808
6626 * python/lib/gdb/__init__.py: Initialize lexer with stripnl=False.
6627
f4460aec
SM
66282020-04-09 Simon Marchi <simon.marchi@polymtl.ca>
6629
6630 * MAINTAINERS (Global Maintainers): Add Tom de Vries.
6631 (Write After Approval): Remove Tom de Vries.
6632
a25198bb
BE
66332020-04-09 Bernd Edlinger <bernd.edlinger@hotmail.de>
6634
6635 revert partially:
6636 2020-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
6637
aac66a4c
SM
6638 * buildsym.c (record_line): Fix undefined behavior and preserve
6639 lines at eof.
a25198bb 6640
206c98a6
KR
66412020-04-09 Kamil Rytarowski <n54@gmx.com>
6642
6643 * auxv.h (svr4_auxv_parse): New.
6644 * auxv.c (default_auxv_parse): Split into default_auxv_parse
6645 and generic_auxv_parse.
6646 (svr4_auxv_parse): Add.
6647 * obsd-tdep.c: Include "auxv.h".
6648 (obsd_auxv_parse): Remove.
6649 (obsd_init_abi): Remove comment.
6650 (obsd_init_abi): Change set_gdbarch_auxv_parse passed argument
6651 from `obsd_auxv_parse' to `svr4_auxv_parse'.
6652 * nbsd-tdep.c: Include "auxv.h".
6653 (nbsd_init_abi): Call set_gdbarch_auxv_parse.
6654
71fbdbaf
TT
66552020-04-08 Tom Tromey <tromey@adacore.com>
6656
6657 * nat/windows-nat.h (last_wait_event): Don't declare.
6658 (wait_for_debug_event): Update comment.
6659 * nat/windows-nat.c (last_wait_event): Now static.
6660
2c1d95e8
TT
66612020-04-08 Tom Tromey <tromey@adacore.com>
6662
6663 * windows-nat.c (wait_for_debug_event): Move to
6664 nat/windows-nat.c.
6665 * nat/windows-nat.h (wait_for_debug_event): Declare.
6666 * nat/windows-nat.c (wait_for_debug_event): Move from
6667 windows-nat.c. No longer static.
6668
d2977bc4
TT
66692020-04-08 Tom Tromey <tromey@adacore.com>
6670
6671 * windows-nat.c (get_windows_debug_event): Use
6672 fetch_pending_stop.
6673 * nat/windows-nat.h (fetch_pending_stop): Declare.
6674 * nat/windows-nat.c (fetch_pending_stop): New function.
6675
e758e19c
TT
66762020-04-08 Tom Tromey <tromey@adacore.com>
6677
6678 * windows-nat.c (windows_continue): Use matching_pending_stop and
6679 continue_last_debug_event.
6680 * nat/windows-nat.h (matching_pending_stop)
6681 (continue_last_debug_event): Declare.
6682 * nat/windows-nat.c (DEBUG_EVENTS): New define.
6683 (matching_pending_stop, continue_last_debug_event): New
6684 functions.
6685
8d30e395
TT
66862020-04-08 Tom Tromey <tromey@adacore.com>
6687
6688 * windows-nat.c (MS_VC_EXCEPTION): Move to nat/windows-nat.c.
6689 (handle_exception_result): Move to nat/windows-nat.h.
6690 (DEBUG_EXCEPTION_SIMPLE): Remove.
6691 (windows_nat::handle_ms_vc_exception): New function.
6692 (handle_exception): Move to nat/windows-nat.c.
6693 (get_windows_debug_event): Update.
6694 (STATUS_WX86_BREAKPOINT, STATUS_WX86_SINGLE_STEP): Move to
6695 nat/windows-nat.c.
6696 * nat/windows-nat.h (handle_ms_vc_exception): Declare.
6697 (handle_exception_result): Move from windows-nat.c.
6698 (handle_exception): Declare.
6699 * nat/windows-nat.c (MS_VC_EXCEPTION, handle_exception)
6700 (STATUS_WX86_SINGLE_STEP, STATUS_WX86_BREAKPOINT): Move from
6701 windows-nat.c.
6702
29de418d
TT
67032020-04-08 Tom Tromey <tromey@adacore.com>
6704
6705 * windows-nat.c (exception_count, event_count): Remove.
6706 (handle_exception, get_windows_debug_event)
6707 (do_initial_windows_stuff): Update.
6708
a816ba18
TT
67092020-04-08 Tom Tromey <tromey@adacore.com>
6710
6711 * windows-nat.c (windows_nat::handle_load_dll)
6712 (windows_nat::handle_unload_dll): Rename. No longer static.
6713 * nat/windows-nat.h (handle_load_dll, handle_unload_dll):
6714 Declare.
6715
a00caa12
TT
67162020-04-08 Tom Tromey <tromey@adacore.com>
6717
6718 * complaints.h (stop_whining): Declare at top-level.
6719 (complaint): Don't declare stop_whining.
6720
d41b524f
TT
67212020-04-08 Tom Tromey <tromey@adacore.com>
6722
6723 * windows-nat.c (windows_nat::handle_output_debug_string):
6724 Rename. No longer static.
6725 * nat/windows-nat.h (handle_output_debug_string): Declare.
6726
3c76026d
TT
67272020-04-08 Tom Tromey <tromey@adacore.com>
6728
6729 * windows-nat.c (current_process_handle, current_process_id)
6730 (main_thread_id, last_sig, current_event, last_wait_event)
6731 (current_windows_thread, desired_stop_thread_id, pending_stops)
6732 (struct pending_stop, siginfo_er): Move to nat/windows-nat.c.
6733 (display_selectors, fake_create_process)
6734 (get_windows_debug_event): Update.
6735 * nat/windows-nat.h (current_process_handle, current_process_id)
6736 (main_thread_id, last_sig, current_event, last_wait_event)
6737 (current_windows_thread, desired_stop_thread_id, pending_stops)
6738 (struct pending_stop, siginfo_er): Move from windows-nat.c.
6739 * nat/windows-nat.c (current_process_handle, current_process_id)
6740 (main_thread_id, last_sig, current_event, last_wait_event)
6741 (current_windows_thread, desired_stop_thread_id, pending_stops)
6742 (siginfo_er): New globals. Move from windows-nat.c.
6743
9d8679cc
TT
67442020-04-08 Tom Tromey <tromey@adacore.com>
6745
6746 * windows-nat.c (get_image_name): Move to nat/windows-nat.c.
6747 (handle_load_dll): Update.
6748 * nat/windows-nat.c (get_image_name): Move from windows-nat.c.
6749
28688adf
TT
67502020-04-08 Tom Tromey <tromey@adacore.com>
6751
6752 * windows-nat.c (enum thread_disposition_type): Move to
6753 nat/windows-nat.h.
6754 (windows_nat::thread_rec): Rename from thread_rec. No longer
6755 static.
6756 (windows_add_thread, windows_nat_target::fetch_registers)
6757 (windows_nat_target::store_registers, handle_exception)
6758 (windows_nat_target::resume, get_windows_debug_event)
6759 (windows_nat_target::get_tib_address)
6760 (windows_nat_target::thread_name)
6761 (windows_nat_target::thread_alive): Update.
6762 * nat/windows-nat.h (enum thread_disposition_type): Move from
6763 windows-nat.c.
6764 (thread_rec): Declare.
6765
4834dad0
TT
67662020-04-08 Tom Tromey <tromey@adacore.com>
6767
6768 * windows-nat.c: Add "using namespace".
6769 * nat/windows-nat.h: Wrap contents in windows_nat namespace.
6770 * nat/windows-nat.c: Wrap contents in windows_nat namespace.
6771
65bafd5b
TT
67722020-04-08 Tom Tromey <tromey@adacore.com>
6773
6774 * nat/windows-nat.h (struct windows_thread_info): Declare
6775 destructor.
6776 * nat/windows-nat.c (~windows_thread_info): New.
6777
0a4afda3
TT
67782020-04-08 Tom Tromey <tromey@adacore.com>
6779
6780 PR gdb/22992
6781 * windows-nat.c (current_event): Update comment.
6782 (last_wait_event, desired_stop_thread_id): New globals.
6783 (struct pending_stop): New.
6784 (pending_stops): New global.
6785 (windows_nat_target) <stopped_by_sw_breakpoint>
6786 <supports_stopped_by_sw_breakpoint>: New methods.
6787 (windows_fetch_one_register): Add assertions. Adjust PC.
6788 (windows_continue): Handle pending stops. Suspend other threads
6789 when stepping. Use last_wait_event
6790 (wait_for_debug_event): New function.
6791 (get_windows_debug_event): Use wait_for_debug_event. Handle
6792 pending stops. Queue spurious stops.
6793 (windows_nat_target::wait): Set stopped_at_software_breakpoint.
6794 (windows_nat_target::kill): Use wait_for_debug_event.
6795 * nat/windows-nat.h (struct windows_thread_info)
6796 <stopped_at_software_breakpoint>: New field.
6797 * nat/windows-nat.c (windows_thread_info::resume): Clear
6798 stopped_at_software_breakpoint.
6799
8e61ebec
TT
68002020-04-08 Tom Tromey <tromey@adacore.com>
6801
6802 * windows-nat.c (enum thread_disposition_type): New.
6803 (thread_rec): Replace "get_context" parameter with "disposition";
6804 change type.
6805 (windows_add_thread, windows_nat_target::fetch_registers)
6806 (windows_nat_target::store_registers, handle_exception)
6807 (windows_nat_target::resume, get_windows_debug_event)
6808 (windows_nat_target::get_tib_address)
6809 (windows_nat_target::thread_name)
6810 (windows_nat_target::thread_alive): Update.
6811
98a03287
TT
68122020-04-08 Tom Tromey <tromey@adacore.com>
6813
6814 * windows-nat.c (thread_rec): Use windows_thread_info::suspend.
6815 (windows_continue): Use windows_continue::resume.
6816 * nat/windows-nat.h (struct windows_thread_info) <suspend,
6817 resume>: Declare new methods.
6818 * nat/windows-nat.c: New file.
6819 * configure.nat (NATDEPFILES): Add nat/windows-nat.o when needed.
6820
7c7411bc
TT
68212020-04-08 Tom Tromey <tromey@adacore.com>
6822
6823 * windows-nat.c (windows_add_thread, windows_delete_thread)
6824 (windows_nat_target::fetch_registers)
6825 (windows_nat_target::store_registers, fake_create_process)
6826 (windows_nat_target::resume, windows_nat_target::resume)
6827 (get_windows_debug_event, windows_nat_target::wait)
6828 (windows_nat_target::pid_to_str)
6829 (windows_nat_target::get_tib_address)
6830 (windows_nat_target::get_ada_task_ptid)
6831 (windows_nat_target::thread_name)
6832 (windows_nat_target::thread_alive): Use lwp, not tid.
6833
2950fdf7
TT
68342020-04-08 Tom Tromey <tromey@adacore.com>
6835
6836 * windows-nat.c (handle_exception)
6837 (windows_nat_target::thread_name): Update.
6838 * nat/windows-nat.h (windows_thread_info): Remove destructor.
6839 <name>: Now unique_xmalloc_ptr.
6840
62fe396b
TT
68412020-04-08 Tom Tromey <tromey@adacore.com>
6842
6843 * windows-nat.c (thread_rec)
6844 (windows_nat_target::fetch_registers): Update.
6845 * nat/windows-nat.h (struct windows_thread_info) <suspended>:
6846 Update comment.
6847 <debug_registers_changed, reload_context>: Now bool.
6848
e9534bd2
TT
68492020-04-08 Tom Tromey <tromey@adacore.com>
6850
6851 * windows-nat.c (windows_add_thread): Use new.
6852 (windows_init_thread_list, windows_delete_thread): Use delete.
6853 (get_windows_debug_event): Update.
6854 * nat/windows-nat.h (struct windows_thread_info): Add constructor,
6855 destructor, and initializers.
6856
ae1f8880
TT
68572020-04-08 Tom Tromey <tromey@adacore.com>
6858
6859 * windows-nat.c (struct windows_thread_info): Remove.
6860 * nat/windows-nat.h: New file.
6861
55a1e039
TT
68622020-04-08 Tom Tromey <tromey@adacore.com>
6863
6864 * windows-nat.c (struct windows_thread_info) <tid>: Rename from "id".
6865 (thread_rec, windows_add_thread, windows_delete_thread)
6866 (windows_continue): Update.
6867
93366324
TT
68682020-04-08 Tom Tromey <tromey@adacore.com>
6869
6870 * windows-nat.c (struct windows_thread_info): Remove typedef.
6871 (thread_head): Remove.
6872 (thread_list): New global.
6873 (thread_rec, windows_add_thread, windows_init_thread_list)
6874 (windows_delete_thread, windows_continue): Update.
6875
0f2265e2
SM
68762020-04-08 Simon Marchi <simon.marchi@polymtl.ca>
6877
6878 * windows-tdep.h (windows_init_abi): Add comment.
6879 (cygwin_init_abi): New declaration.
6880 * windows-tdep.c: Split signal enumeration in two, one for
6881 Windows and one for Cygwin.
6882 (windows_gdb_signal_to_target): Only deal with signal of the
6883 Windows OS ABI.
6884 (cygwin_gdb_signal_to_target): New function.
6885 (windows_init_abi): Rename to windows_init_abi_common, don't set
6886 gdb_signal_to_target gdbarch method. Add new new function with
6887 this name.
6888 (cygwin_init_abi): New function.
6889 * amd64-windows-tdep.c (amd64_windows_init_abi_common): Add
6890 comment. Don't call windows_init_abi.
6891 (amd64_windows_init_abi): Add comment, call windows_init_abi.
6892 (amd64_cygwin_init_abi): Add comment, call cygwin_init_abi.
6893 * i386-windows-tdep.c (i386_windows_init_abi): Rename to
6894 i386_windows_init_abi_common, don't call windows_init_abi. Add
6895 a new function of this name.
6896 (i386_cygwin_init_abi): New function.
6897 (_initialize_i386_windows_tdep): Bind i386_cygwin_init_abi to
6898 OS ABI Cygwin.
6899
3810f182
SM
69002020-04-08 Simon Marchi <simon.marchi@polymtl.ca>
6901
6902 * dwarf2/read.c (read_gdb_index_from_buffer): Remove objfile
6903 parameter.c.
6904 (dwarf2_read_gdb_index): Update.
6905
063f8e80
KR
69062020-04-07 Kamil Rytarowski <n54@gmx.com>
6907
6908 * nbsd-tdep.c: Include "objfiles.h".
6909 (nbsd_skip_solib_resolver): New.
6910 (nbsd_init_abi): Call set_gdbarch_skip_solib_resolver().
6911
85a9510c 69122020-04-07 Nitika Achra <Nitika.Achra@amd.com>
6913
6914 * dwarf2/loc.c (loclist_describe_location): Call the function decode_debug_loclists_
6915 addresses if DWARF version is 5 or more because DW_LLE_start* or DW_LLE_offset_pair
6916 with DW_LLE_base_addressx are being emitted in DWARFv5.
6917 Add the newly added kind DW_LOC_OFFSET_PAIR also.
6918 The length of location description is an unsigned ULEB integer in DWARFv5 instead of
6919 unsigned integer.
6920
9fc3eaae 69212020-04-07 Nitika Achra <Nitika.Achra@amd.com>
6922
6923 * dwarf2/loc.c (enum debug_loc_kind): Add a new kind DEBUG_LOC_OFFSET_PAIR.
6924 (dwarf2_find_location_expression): Call the function decode_debug_loclists_
6925 addresses if DWARF version is 5 or more. DW_LLE_start* or DW_LLE_offset_pair
6926 with DW_LLE_base_addressx are being emitted in DWARFv5 instead of DW_LLE_GNU*.
6927 Add applicable base address if the entry is DW_LLE_offset_pair from DWO.
6928 (decode_debug_loclists_addresses): Return DEBUG_LOC_OFFSET_PAIR instead of
6929 DEBUG_LOC_START_END in case of DW_LLE_offset_pair.
6930
6931
41144253 69322020-04-07 Nitika Achra <Nitika.Achra@amd.com>
6933
6934 * dwarf2/read.c (cu_debug_loc_section): Added the declaration for the function.
6935 (read_loclist_index): New function definition.
6936 (lookup_loclist_base): New function definition.
6937 (read_loclist_header): New function definition.
6938 (dwarf2_cu): Add loclist_base and loclist_header field.
6939 (dwarf2_locate_dwo_sections): Handle .debug_loclists.dwo section.
6940 (read_full_die_1): Read the value of DW_AT_loclists_base.
6941 (read_attribute_reprocess): Handle DW_FORM_loclistx.
6942 (read_attribute_value): Handle DW_FORM_loclistx.
6943 (skip_one_die): Handle DW_FORM_loclistx.
6944 (loclist_header): New structure declaration.
6945 * dwarf2/attribute.c (form_is_section_offset): Handle DW_FORM_loclistx.
6946
9f4e76a4
SM
69472020-04-07 Simon Marchi <simon.marchi@polymtl.ca>
6948
6949 * dwarf2/read.h (struct dwarf2_psymtab): Remove two-parameters
6950 constructor. Remove `addr` parameter from other constructor and
6951 add `per_cu` parameter.
6952 * dwarf2/read.c (create_partial_symtab): Update.
6953
25c11aca
TV
69542020-04-07 Tom de Vries <tdevries@suse.de>
6955
6956 PR symtab/25796
6957 * dwarf2/read.c (can_have_DW_AT_const_value_p): New function.
6958 (partial_die_info::fixup): Inherit has_const_value.
6959
5707e24b
TV
69602020-04-07 Tom de Vries <tdevries@suse.de>
6961
6962 * psymtab.c (maintenance_check_psymtabs): Skip static LOC_BLOCK
6963 symbols without address.
6964
05f00e22
KR
69652020-04-06 Kamil Rytarowski <n54@gmx.com>
6966
6967 * nbsd-nat.h (struct thread_info): Add forward declaration.
6968 (nbsd_nat_target::thread_alive): Add.
6969 (nbsd_nat_target::thread_name): Likewise.
6970 (nbsd_nat_target::update_thread_list): Likewise.
6971 (update_thread_list::post_attach): Likewise.
6972 (post_attach::pid_to_str): Likewise.
6973 * nbsd-nat.c: Include "gdbthread.h" and "inferior.h".
6974 (nbsd_thread_lister): Add.
6975 (nbsd_nat_target::thread_alive): Likewise.
6976 (nbsd_nat_target::thread_name): Likewise.
6977 (nbsd_add_threads): Likewise.
6978 (update_thread_list::post_attach): Likewise.
6979 (nbsd_nat_target::update_thread_list): Likewise.
6980 (post_attach::pid_to_str): Likewise.
6981
6ee448cc
TT
69822020-04-06 Tom Tromey <tromey@adacore.com>
6983
6984 * ada-valprint.c (print_variant_part): Extract the variant field.
6985 (print_field_values): Use the field as the outer value when
6986 recursing.
6987
dea34e8c
TT
69882020-04-06 Tom Tromey <tromey@adacore.com>
6989
6990 * sh-nbsd-tdep.c: Include nbsd-tdep.h.
6991 * ppc-nbsd-tdep.c: Include nbsd-tdep.h.
6992 * mips-nbsd-tdep.c (mipsnbsd_init_abi): Add missing ";".
6993 * arm-nbsd-tdep.c: Include nbsd-tdep.h.
6994 * hppa-nbsd-tdep.c: Include nbsd-tdep.h.
6995
93689ce9
TT
69962020-04-06 Tom Tromey <tromey@adacore.com>
6997
6998 * dwarf2/read.c (read_base_type) <DW_ATE_complex_float>: Handle
6999 TYPE_CODE_ERROR.
7000
79743962
KR
70012020-04-06 Kamil Rytarowski <n54@gmx.com>
7002
7003 * nbsd-tdep.c: Include "gdbarch.h".
7004 Define enum with NetBSD signal numbers.
7005 (nbsd_gdb_signal_from_target, nbsd_gdb_signal_to_target): New.
7006 * alpha-nbsd-tdep.c (alphanbsd_init_abi): Call nbsd_init_abi().
7007 * amd64-nbsd-tdep.c (amd64nbsd_init_abi): Likewise.
7008 * arm-nbsd-tdep.c (arm_netbsd_elf_init_abi): Likewise.
7009 * hppa-nbsd-tdep.c (hppanbsd_init_abi): Likewise.
7010 * i386-nbsd-tdep.c (i386nbsd_init_abi): Likewise.
7011 * mips-nbsd-tdep.c (nbsd_init_abi): Likewise.
7012 * ppc-nbsd-tdep.c (ppcnbsd_init_abi): Likewise.
7013 * sh-nbsd-tdep.c (shnbsd_init_abi): Likewise.
7014 * sparc-nbsd-tdep.c (sparc32nbsd_init_abi): Likewise.
7015 * sparc64-nbsd-tdep.c (sparc64nbsd_init_abi): Likewise.
7016 * vax-nbsd-tdep.c (vaxnbsd_elf_init_abi): Likewise.
7017
9e7c9a03
HD
70182020-04-03 Hannes Domani <ssbssa@yahoo.de>
7019
7020 PR gdb/25325
7021 * dwarf2/read.c (read_enumeration_type): Fix typed enum attributes.
7022
d9e49b61
TT
70232020-04-03 Tom Tromey <tromey@adacore.com>
7024
7025 * dwarf2/loc.c (disassemble_dwarf_expression) <DW_OP_const_type>:
7026 Read constant block.
7027
e0fc5c3f
SM
70282020-04-02 Simon Marchi <simon.marchi@polymtl.ca>
7029
7030 * gdb_bfd.h: Include gdbsupport/byte-vector.h.
7031 (gdb_bfd_get_full_section_contents): New declaration.
7032 * gdb_bfd.c (gdb_bfd_get_full_section_contents): New function.
7033 * windows-tdep.c (is_linked_with_cygwin_dll): Use
7034 gdb_bfd_get_full_section_contents.
7035
e2ff18a0
SM
70362020-04-02 Simon Marchi <simon.marchi@polymtl.ca>
7037
7038 * exec.c (build_section_table): Replace internal_error with
7039 gdb_assert.
7040 (section_table_xfer_memory_partial): Likewise.
7041 * mdebugread.c (parse_partial_symbols): Likewise.
7042 * psymtab.c (lookup_partial_symbol): Likewise.
7043 * utils.c (wrap_here): Likewise.
7044
0830d301
TT
70452020-04-02 Tom Tromey <tromey@adacore.com>
7046
7047 * f-lang.c (build_fortran_types): Use arch_type to initialize
7048 builtin_complex_s32 in the TYPE_CODE_ERROR case.
7049
e7da7f8f
TT
70502020-04-02 Tom Tromey <tromey@adacore.com>
7051
7052 * dwarf2/read.c (partial_die_info::read): Do not create a vector
7053 of attributes.
7054
c90d28ac
AB
70552020-04-02 Andrew Burgess <andrew.burgess@embecosm.com>
7056 Bernd Edlinger <bernd.edlinger@hotmail.de>
7057 Tom Tromey <tromey@adacore.com>
7058
7059 * buildsym.c (buildsym_compunit::record_line): Remove
7060 deduplication code.
7061
1aa98955
TV
70622020-04-02 Tom de Vries <tdevries@suse.de>
7063
7064 PR ada/24671
7065 * dwarf2/read.c (dw2_map_matching_symbols): Handle -readnow.
7066
d3214198
TV
70672020-04-02 Tom de Vries <tdevries@suse.de>
7068
7069 * dwarf2/read.c (dwarf2_gdb_index_functions,
7070 dwarf2_debug_names_functions): Init lookup_global_symbol_language with
7071 NULL.
7072 * psymtab.c (psym_lookup_global_symbol_language): New function.
7073 (psym_functions): Init psym_lookup_global_symbol_language with
7074 psym_lookup_global_symbol_language.
7075 * symfile-debug.c (debug_sym_quick_functions): Init
7076 lookup_global_symbol_language with NULL.
7077 * symfile.c (set_initial_language): Remove fixme comment.
7078 * symfile.h (struct quick_symbol_functions): Add
7079 lookup_global_symbol_language.
7080 * symtab.c (find_quick_global_symbol_language): New function.
7081 (find_main_name): Use find_quick_global_symbol_language.
7082
2836752f
SM
70832020-04-01 Simon Marchi <simon.marchi@polymtl.ca>
7084
7085 * windows-tdep.c (is_linked_with_cygwin_dll): Fix style.
7086
64dc2d4b
BE
70872020-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
7088
7089 * buildsym.c (record_line): Fix undefined behavior and preserve
7090 lines at eof.
7091
bbe3dc41
BE
70922020-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
7093
7094 * buildsym.c (record_line): Fix the resizing condition.
7095
6b4a335b
TT
70962020-04-01 Tom Tromey <tom@tromey.com>
7097
7098 * value.h (value_literal_complex): Add comment.
7099 * valops.c (value_literal_complex): Refer to value.h.
7100
3638a098
TT
71012020-04-01 Tom Tromey <tom@tromey.com>
7102
7103 * c-exp.y (FLOAT_KEYWORD, COMPLEX): New tokens.
7104 (scalar_type): New rule, from typebase.
7105 (typebase): Use scalar_type. Recognize complex types.
7106 (field_name): Handle FLOAT_KEYWORD.
7107 (ident_tokens): Add _Complex and __complex__.
7108
c34e8714
TT
71092020-04-01 Tom Tromey <tom@tromey.com>
7110
7111 PR exp/25299:
7112 * valarith.c (promotion_type, complex_binop): New functions.
7113 (scalar_binop): Handle complex numbers. Use promotion_type.
7114 (value_pos, value_neg, value_complement): Handle complex numbers.
7115
fa649bb7
TT
71162020-04-01 Tom Tromey <tom@tromey.com>
7117
7118 * c-exp.y (COMPLEX_INT, COMPLEX_FLOAT): New tokens.
7119 (exp) <COMPLEX_INT, COMPLEX_FLOAT>: New rules.
7120 (parse_number): Handle complex numbers.
7121
981c08ce
TT
71222020-04-01 Tom Tromey <tom@tromey.com>
7123
7124 * c-valprint.c (c_decorations): Change complex suffix to "i".
7125
4c99290d
TT
71262020-04-01 Tom Tromey <tom@tromey.com>
7127
7128 * valprint.c (generic_value_print_complex): Use accessors.
7129 * value.h (value_real_part, value_imaginary_part): Declare.
7130 * valops.c (value_real_part, value_imaginary_part): New
7131 functions.
7132 * value.c (creal_internal_fn, cimag_internal_fn): Use accessors.
7133
5b930b45
TT
71342020-04-01 Tom Tromey <tom@tromey.com>
7135
7136 * stabsread.c (rs6000_builtin_type, read_sun_floating_type)
7137 (read_range_type): Update.
7138 * mdebugread.c (basic_type): Update.
7139 * go-lang.c (build_go_types): Use init_complex_type.
7140 * gdbtypes.h (struct main_type) <complex_type>: New member.
7141 (init_complex_type): Update.
7142 (arch_complex_type): Don't declare.
7143 * gdbtypes.c (init_complex_type): Remove "objfile" parameter.
7144 Make name if none given. Use alloc_type_copy. Look for cached
7145 complex type.
7146 (arch_complex_type): Remove.
7147 (gdbtypes_post_init): Use init_complex_type.
7148 * f-lang.c (build_fortran_types): Use init_complex_type.
7149 * dwarf2/read.c (read_base_type): Update.
7150 * d-lang.c (build_d_types): Use init_complex_type.
7151 * ctfread.c (read_base_type): Update.
7152
53cccef1
TBA
71532020-04-01 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
7154
7155 * infrun.c (stop_all_threads): Update assertion, plus when
7156 stopping threads, take into account that we might be trying
7157 to stop an all-stop target.
7158 (stop_waiting): Call 'stop_all_threads' if there exists a
7159 non-stop target.
7160
a0714d30
TBA
71612020-04-01 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
7162
7163 * target.h (exists_non_stop_target): New function declaration.
7164 * target.c (exists_non_stop_target): New function.
7165
60e22c1e
HD
71662020-04-01 Hannes Domani <ssbssa@yahoo.de>
7167
7168 PR gdb/24789
7169 * eval.c (is_integral_or_integral_reference): New function.
7170 (evaluate_subexp_standard): Allow integer references in
7171 pointer arithmetic.
7172
e139a727
TBA
71732020-04-01 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
7174
7175 * remote.c (remote_target::remote_parse_stop_reply): Remove the
7176 check for no ptid in the stop reply when the target is non-stop.
7177
e0802d59
TT
71782020-04-01 Tom Tromey <tromey@adacore.com>
7179
7180 * symtab.h (class lookup_name_info) <lookup_name_info>: Change
7181 "name" parameter to rvalue reference. Initialize m_name_holder.
7182 <lookup_name_info>: New overloads.
7183 <name>: Return gdb::string_view.
7184 <c_str>: New method.
7185 <make_ignore_params>: Update.
7186 <search_name_hash>: Update.
7187 <language_lookup_name>: Return const char *.
7188 <m_name>: Change type.
7189 * symtab.c (demangle_for_lookup_info::demangle_for_lookup_info)
7190 (demangle_for_lookup_info::demangle_for_lookup_info): Update.
7191 (lookup_name_info::match_any): Update.
7192 * psymtab.c (match_partial_symbol, lookup_partial_symbol):
7193 Update.
7194 * minsyms.c (linkage_name_str): Update.
7195 * language.c (default_symbol_name_matcher): Update.
7196 * dwarf2/read.c (mapped_index_base::find_name_components_bounds):
7197 Update.
7198 * ada-lang.c (ada_fold_name): Change parameter to string_view.
7199 (ada_lookup_name_info::ada_lookup_name_info): Update.
7200 (literal_symbol_name_matcher): Update.
7201
8c072cb6
TT
72022020-04-01 Tom Tromey <tromey@adacore.com>
7203
7204 * psymtab.c (psymtab_search_name): Remove function.
7205 (psym_lookup_symbol): Create search name and lookup name here.
7206 (lookup_partial_symbol): Remove "name" parameter; add
7207 lookup_name.
7208 (psym_expand_symtabs_for_function): Update.
7209
6f29a534
TT
72102020-03-31 Joel Jones <joelkevinjones@gmail.com>
7211
7212 PR tui/25597:
7213 * python/py-tui.c: Include gdb_curses.h inside of #ifdef TUI.
7214
af62665e
TT
72152020-03-31 Tom Tromey <tromey@adacore.com>
7216
7217 * dwarf2/abbrev.c (abbrev_table::read): Conditionally call
7218 memcpy.
7219
d1a89da5
NC
72202020-03-30 Nelson Chu <nelson.chu@sifive.com>
7221
7222 * features/riscv/32bit-csr.xml: Regenerated.
7223 * features/riscv/64bit-csr.xml: Regenerated.
7224
d8af9068
TT
72252020-03-30 Tom Tromey <tromey@adacore.com>
7226
7227 * ada-valprint.c (print_variant_part): Update.
7228 * ada-lang.h (ada_which_variant_applies): Update.
7229 * ada-lang.c (ada_which_variant_applies): Remove outer_type and
7230 outer_valaddr parameters; replace with "outer" value parameter.
7231 (to_fixed_variant_branch_type): Update.
7232
227c0bf4
PFC
72332020-03-30 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
7234
7235 * ppc-linux-nat.c: Include <algorithm>, <unordered_map>, and
7236 <list>. Remove inclusion of observable.h.
7237 (PPC_DEBUG_CURRENT_VERSION): Move up define.
7238 (struct arch_lwp_info): New struct.
7239 (class ppc_linux_dreg_interface): New class.
7240 (struct ppc_linux_process_info): New struct.
7241 (struct ppc_linux_nat_target) <low_delete_thread, low_new_fork>
7242 <low_new_clone, low_forget_process, low_prepare_to_resume>
7243 <copy_thread_dreg_state, mark_thread_stale>
7244 <mark_debug_registers_changed, register_hw_breakpoint>
7245 <clear_hw_breakpoint, register_wp, clear_wp>
7246 <can_use_watchpoint_cond_accel, calculate_dvc, check_condition>
7247 <num_memory_accesses, get_trigger_type>
7248 <create_watchpoint_request, hwdebug_point_cmp>
7249 <init_arch_lwp_info, get_arch_lwp_info>
7250 <low_stopped_by_watchpoint, low_stopped_data_address>: Declare as
7251 methods.
7252 <struct ptid_hash>: New inner struct.
7253 <m_dreg_interface, m_process_info, m_installed_hw_bps>: Declare
7254 members.
7255 (saved_dabr_value, hwdebug_info, max_slots_number)
7256 (struct hw_break_tuple, struct thread_points, ppc_threads)
7257 (have_ptrace_hwdebug_interface)
7258 (hwdebug_find_thread_points_by_tid)
7259 (hwdebug_insert_point, hwdebug_remove_point): Remove.
7260 (ppc_linux_nat_target::can_use_hw_breakpoint): Use
7261 m_dreg_interface, remove call to PTRACE_SET_DEBUGREG.
7262 (ppc_linux_nat_target::region_ok_for_hw_watchpoint): Add comment,
7263 use m_dreg_interface.
7264 (hwdebug_point_cmp): Change to...
7265 (ppc_linux_nat_target::hwdebug_point_cmp): ...this method. Use
7266 reference arguments instead of pointers.
7267 (ppc_linux_nat_target::ranged_break_num_registers): Use
7268 m_dreg_interface.
7269 (ppc_linux_nat_target::insert_hw_breakpoint): Add comment, use
7270 m_dreg_interface. Call register_hw_breakpoint.
7271 (ppc_linux_nat_target::remove_hw_breakpoint): Add comment, use
7272 m_dreg_interface. Call clear_hw_breakpoint.
7273 (get_trigger_type): Change to...
7274 (ppc_linux_nat_target::get_trigger_type): ...this method. Add
7275 comment.
7276 (ppc_linux_nat_target::insert_mask_watchpoint): Update comment,
7277 use m_dreg_interface. Call register_hw_breakpoint.
7278 (ppc_linux_nat_target::remove_mask_watchpoint): Update comment,
7279 use m_dreg_interface. Call clear_hw_breakpoint.
7280 (can_use_watchpoint_cond_accel): Change to...
7281 (ppc_linux_nat_target::can_use_watchpoint_cond_accel): ...this
7282 method. Update comment, use m_dreg_interface and
7283 m_process_info.
7284 (calculate_dvc): Change to...
7285 (ppc_linux_nat_target::calculate_dvc): ...this method. Use
7286 m_dreg_interface.
7287 (num_memory_accesses): Change to...
7288 (ppc_linux_nat_target::num_memory_accesses): ...this method.
7289 (check_condition): Change to...
7290 (ppc_linux_nat_target::check_condition): ...this method.
7291 (ppc_linux_nat_target::can_accel_watchpoint_condition): Update
7292 comment, use m_dreg_interface.
7293 (create_watchpoint_request): Change to...
7294 (ppc_linux_nat_target::create_watchpoint_request): ...this
7295 method. Use m_dreg_interface.
7296 (ppc_linux_nat_target::insert_watchpoint): Add comment, use
7297 m_dreg_interface. Call register_hw_breakpoint or register_wp.
7298 (ppc_linux_nat_target::remove_watchpoint): Add comment, use
7299 m_dreg_interface. Call clear_hw_breakpoint or clear_wp.
7300 (ppc_linux_nat_target::low_forget_process)
7301 (ppc_linux_nat_target::low_new_fork)
7302 (ppc_linux_nat_target::low_new_clone)
7303 (ppc_linux_nat_target::low_delete_thread)
7304 (ppc_linux_nat_target::low_prepare_to_resume): New methods.
7305 (ppc_linux_nat_target::low_new_thread): Remove previous logic,
7306 only call mark_thread_stale.
7307 (ppc_linux_thread_exit): Remove.
7308 (ppc_linux_nat_target::stopped_data_address): Change to...
7309 (ppc_linux_nat_target::low_stopped_data_address): This. Add
7310 comment, use m_dreg_interface and m_thread_hw_breakpoints.
7311 (ppc_linux_nat_target::stopped_by_watchpoint): Change to...
7312 (ppc_linux_nat_target::stopped_by_watchpoint): This. Add
7313 comment. Call low_stopped_data_address.
7314 (ppc_linux_nat_target::watchpoint_addr_within_range): Use
7315 m_dreg_interface.
7316 (ppc_linux_nat_target::masked_watch_num_registers): Use
7317 m_dreg_interface.
7318 (ppc_linux_nat_target::copy_thread_dreg_state)
7319 (ppc_linux_nat_target::mark_thread_stale)
7320 (ppc_linux_nat_target::mark_debug_registers_changed)
7321 (ppc_linux_nat_target::register_hw_breakpoint)
7322 (ppc_linux_nat_target::clear_hw_breakpoint)
7323 (ppc_linux_nat_target::register_wp)
7324 (ppc_linux_nat_target::clear_wp)
7325 (ppc_linux_nat_target::init_arch_lwp_info)
7326 (ppc_linux_nat_target::get_arch_lwp_info): New methods.
7327 (_initialize_ppc_linux_nat): Remove observer callback.
7328
4db10d8f
PFC
73292020-03-30 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
7330
7331 * ppc-linux-nat.c (ppc_linux_nat_target::store_registers)
7332 (ppc_linux_nat_target::auxv_parse)
7333 (ppc_linux_nat_target::read_description)
7334 (supply_gregset, fill_gregset, supply_fpregset, fill_fpregset):
7335 Move up.
7336
1310c1b0
PFC
73372020-03-30 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
7338
7339 * linux-nat.h (low_new_clone): New method.
7340 * linux-nat.c (linux_handle_extended_wait): Call low_new_clone.
7341
69b037c3
SM
73422020-03-29 Simon Marchi <simon.marchi@polymtl.ca>
7343
7344 * dbxread.c (dbx_psymtab_to_symtab_1): Rename to...
7345 (dbx_expand_psymtab): ... this.
7346 (start_psymtab): Update.
7347 * mdebugread.c (psymtab_to_symtab_1): Rename to...
7348 (mdebug_expand_psymtab): ... this.
7349 (parse_partial_symbols): Update.
7350 (new_psymtab): Update.
7351 * xcoffread.c (xcoff_psymtab_to_symtab_1): Rename to...
7352 (xcoff_expand_psymtab): ... this.
7353 (xcoff_start_psymtab): Update.
7354
48993951
SM
73552020-03-29 Simon Marchi <simon.marchi@polymtl.ca>
7356
7357 * psympriv.h (partial_symtab) <read_dependencies>: Rename to...
7358 <expand_dependencies>: ... this.
7359 * psymtab.c (partial_symtab::read_dependencies): Rename to...
7360 (partial_symtab::expand_dependencies): ... this.
7361 * dwarf2/read.c (dwarf2_include_psymtab) <expand_psymtab>:
7362 Update.
7363 (dwarf2_psymtab::expand_psymtab): Update.
7364 * dbxread.c (dbx_psymtab_to_symtab_1): Update.
7365 * mdebugread.c (psymtab_to_symtab_1): Update.
7366 * xcoffread.c (xcoff_psymtab_to_symtab_1): Update.
7367
3ad83046
SM
73682020-03-29 Simon Marchi <simon.marchi@polymtl.ca>
7369
7370 * psympriv.h (discard_psymtab): Remove.
7371 * dbxread.c (dbx_end_psymtab): Update.
7372 * xcoffread.c (xcoff_end_psymtab): Update.
7373
4d1b9ab6
TT
73742020-03-28 Tom Tromey <tom@tromey.com>
7375
7376 * dwarf2/attribute.h (struct attribute) <form_is_constant>: Update
7377 comment.
7378
f1749218
TT
73792020-03-28 Tom Tromey <tom@tromey.com>
7380
7381 * dwarf2/read.c (read_attribute_reprocess): Fix formatting.
7382
ebea7626
HD
73832020-03-27 Hannes Domani <ssbssa@yahoo.de>
7384
7385 * windows-nat.c (windows_add_all_dlls): Fix system dll paths.
7386
a879b4d5
JB
73872020-03-26 John Baldwin <jhb@FreeBSD.org>
7388
7389 * fbsd-tdep.c (fbsd_print_auxv_entry): Handle AT_FREEBSD_BSDFLAGS.
7390
0826b30a
TT
73912020-03-26 Tom Tromey <tom@tromey.com>
7392
7393 * dwarf2/read.c (handle_data_member_location, dwarf2_add_field)
7394 (mark_common_block_symbol_computed, read_tag_string_type)
7395 (attr_to_dynamic_prop, read_subrange_type): Update.
7396 (dwarf2_get_ref_die_offset, dwarf2_get_attr_constant_value): Move
7397 to be methods on struct attribute.
7398 (skip_one_die, process_imported_unit_die, read_namespace_alias)
7399 (read_call_site_scope, partial_die_info::read)
7400 (partial_die_info::read, lookup_die_type, follow_die_ref):
7401 Update.
7402 * dwarf2/attribute.c (attribute::get_ref_die_offset): New method,
7403 from dwarf2_get_ref_die_offset.
7404 (attribute::constant_value): New method, from
7405 dwarf2_get_attr_constant_value.
7406 * dwarf2/attribute.h (struct attribute) <get_ref_die_offset>:
7407 Declare method.
7408 <constant_value>: New method.
7409
2b2558bf
TT
74102020-03-26 Tom Tromey <tom@tromey.com>
7411
7412 * dwarf2/read.c (dwarf_unit_type_name, dwarf_tag_name)
7413 (dwarf_attr_name, dwarf_form_name, dwarf_bool_name)
7414 (dwarf_type_encoding_name): Move to stringify.c.
7415 * Makefile.in (COMMON_SFILES): Add dwarf2/stringify.c.
7416 * dwarf2/stringify.c: New file.
7417 * dwarf2/stringify.h: New file.
7418
eeb64781
TT
74192020-03-26 Tom Tromey <tom@tromey.com>
7420
7421 * dwarf2/die.h (struct die_info) <addr_base, ranges_base>:
7422 Rewrite.
7423
a39fdb41
TT
74242020-03-26 Tom Tromey <tom@tromey.com>
7425
7426 * dwarf2/die.h (struct die_info) <addr_base, ranges_base>: New
7427 methods.
7428 * dwarf2/read.c (lookup_addr_base): Move to die.h.
7429 (lookup_ranges_base): Likewise.
7430 (read_cutu_die_from_dwo, read_full_die_1): Update.
7431
436c571c
TT
74322020-03-26 Tom Tromey <tom@tromey.com>
7433
7434 * dwarf2/read.c (read_import_statement, read_file_scope)
7435 (read_type_unit_scope, inherit_abstract_dies, read_func_scope)
7436 (read_lexical_block_scope, read_call_site_scope)
7437 (dwarf2_get_subprogram_pc_bounds, get_scope_pc_bounds)
7438 (handle_struct_member_die, process_structure_scope)
7439 (update_enumeration_type_from_children)
7440 (process_enumeration_scope, read_array_type, read_common_block)
7441 (read_namespace, read_module, read_subroutine_type): Update.
7442 (sibling_die): Remove.
7443
052c8bb8
TT
74442020-03-26 Tom Tromey <tom@tromey.com>
7445
7446 * dwarf2/read.c (lookup_addr_base, lookup_ranges_base)
7447 (build_type_psymtabs_reader, read_structure_type)
7448 (read_enumeration_type, read_full_die_1): Update.
7449 (dwarf2_attr_no_follow): Move to die.h.
7450 * dwarf2/die.h (struct die_info) <attr>: New method.
7451
2b24b6e4
TT
74522020-03-26 Tom Tromey <tom@tromey.com>
7453
7454 * dwarf2/read.c (struct dwarf2_cu) <base_known>: Remove.
7455 <base_address>: Now an optional.
7456 (dwarf2_find_base_address, dwarf2_rnglists_process)
7457 (dwarf2_ranges_process, fill_in_loclist_baton)
7458 (dwarf2_symbol_mark_computed): Update.
7459
c2d50fd0
TT
74602020-03-26 Tom Tromey <tom@tromey.com>
7461
7462 * dwarf2/read.c (struct die_info): Move to die.h.
7463 * dwarf2/die.h: New file.
7464
0df7ad3a
TT
74652020-03-26 Tom Tromey <tom@tromey.com>
7466
7467 * dwarf2/line-header.h (dwarf_decode_line_header): Declare.
7468 * dwarf2/read.c
7469 (dwarf2_statement_list_fits_in_line_number_section_complaint):
7470 Move to line-header.c.
7471 (read_checked_initial_length_and_offset, read_formatted_entries):
7472 Likewise.
7473 (dwarf_decode_line_header): Split into two.
7474 * dwarf2/line-header.c
7475 (dwarf2_statement_list_fits_in_line_number_section_complaint):
7476 Move from read.c.
7477 (read_checked_initial_length_and_offset, read_formatted_entries):
7478 Likewise.
7479 (dwarf_decode_line_header): New function, split from read.c.
7480
86c0bb4c
TT
74812020-03-26 Tom Tromey <tom@tromey.com>
7482
7483 * dwarf2/read.h (struct dwarf2_per_objfile) <read_line_string>:
7484 Declare method.
7485 * dwarf2/read.c (read_attribute_value): Update.
7486 (dwarf2_per_objfile::read_line_string): Rename from
7487 read_indirect_line_string.
7488 (read_formatted_entries): Update.
7489
2ef46c2f
TT
74902020-03-26 Tom Tromey <tom@tromey.com>
7491
7492 * dwarf2/macro.c (dwarf_decode_macro_bytes): Use objfile local
7493 variable.
7494
4f9c1eda
TT
74952020-03-26 Tom Tromey <tom@tromey.com>
7496
7497 * dwarf2/macro.h (dwarf_decode_macros): Make section parameter
7498 const.
7499 * dwarf2/macro.c (skip_form_bytes, skip_unknown_opcode)
7500 (dwarf_decode_macro_bytes, dwarf_decode_macros): Make section
7501 parameter const.
7502
5a0e026f
TT
75032020-03-26 Tom Tromey <tom@tromey.com>
7504
7505 * dwarf2/read.c (dwarf_decode_macros): Make "lh" const.
7506 * dwarf2/macro.h (dwarf_decode_macros): Constify "lh" parameter.
7507 * dwarf2/macro.c (macro_start_file): Constify "lh" parameter.
7508 (dwarf_decode_macro_bytes, dwarf_decode_macros): Likewise.
7509
8844c11b
TT
75102020-03-26 Tom Tromey <tom@tromey.com>
7511
7512 * dwarf2/line-header.h (struct line_header) <is_valid_file_index,
7513 file_names_size, file_full_name, file_file_name>: Use const.
7514 <file_name_at, file_names>: Add const overload.
7515 * dwarf2/line-header.c (line_header::file_file_name)
7516 (line_header::file_full_name): Update.
7517
c90ec28a
TT
75182020-03-26 Tom Tromey <tom@tromey.com>
7519
7520 * dwarf2/read.c (dwarf2_macro_malformed_definition_complaint)
7521 (macro_start_file, consume_improper_spaces)
7522 (parse_macro_definition, skip_form_bytes, skip_unknown_opcode)
7523 (dwarf_parse_macro_header, dwarf_decode_macro_bytes)
7524 (dwarf_decode_macros): Move to macro.c.
7525 * dwarf2/macro.c: New file.
7526 * dwarf2/macro.h: New file.
7527 * Makefile.in (COMMON_SFILES): Add dwarf2/macro.c.
7528
4f44ae6c
TT
75292020-03-26 Tom Tromey <tom@tromey.com>
7530
7531 * dwarf2/section.h (struct dwarf2_section_info) <read_string>: New
7532 method.
7533 * dwarf2/section.c: New method. From
7534 read_indirect_string_at_offset_from.
7535 * dwarf2/read.c (mapped_debug_names::namei_to_name): Update.
7536 (read_indirect_string_at_offset_from): Move to section.c.
7537 (read_indirect_string_at_offset): Rewrite.
7538 (read_indirect_line_string_at_offset): Remove.
7539 (read_indirect_string, read_indirect_line_string)
7540 (dwarf_decode_macro_bytes): Update.
7541
a0194fa8
TT
75422020-03-26 Tom Tromey <tom@tromey.com>
7543
7544 * dwarf2/section.h (struct dwarf2_section_info)
7545 <overload_complaint>: Declare.
7546 (dwarf2_section_buffer_overflow_complaint): Don't declare.
7547 * dwarf2/section.c (dwarf2_section_info::overflow_complaint):
7548 Rename from dwarf2_section_buffer_overflow_complaint.
7549 * dwarf2/read.c (skip_one_die, partial_die_info::read)
7550 (skip_form_bytes, dwarf_decode_macro_bytes): Update.
7551
3d27bbdb
TT
75522020-03-26 Tom Tromey <tom@tromey.com>
7553
7554 * dwarf2/section.h (dwarf2_section_buffer_overflow_complaint):
7555 Declare.
7556 * dwarf2/section.c (dwarf2_section_buffer_overflow_complaint):
7557 Move from read.c.
7558 * dwarf2/read.c (dwarf2_section_buffer_overflow_complaint): Move
7559 to section.c.
7560
9eac9650
TT
75612020-03-26 Tom Tromey <tom@tromey.com>
7562
7563 * dwarf2/read.c (dwarf_decode_macros): Split into two overloads.
7564
bf80d710
TT
75652020-03-26 Tom Tromey <tom@tromey.com>
7566
7567 * dwarf2/read.c (macro_start_file): Change "cu" parameter to
7568 "builder".
7569 (dwarf_decode_macro_bytes): Likewise. Add dwarf2_per_objfile
7570 parameter.
7571 (dwarf_decode_macros): Update.
7572
0314b390
TT
75732020-03-26 Tom Tromey <tom@tromey.com>
7574
7575 * dwarf2/read.c (read_attribute_value): Update.
7576 (read_indirect_string_from_dwz): Move to dwz.c; change into
7577 method.
7578 (dwarf_decode_macro_bytes): Update.
7579 * dwarf2/dwz.h (struct dwz_file) <read_string>: Declare method.
7580 * dwarf2/dwz.c: New file.
7581 * Makefile.in (COMMON_SFILES): Add dwz.c.
7582
9fda78b6
TT
75832020-03-26 Tom Tromey <tom@tromey.com>
7584
7585 * dwarf2/read.h (struct dwz_file): Move to dwz.h.
7586 * dwarf2/read.c: Add include.
7587 * dwarf2/index-write.c: Add include.
7588 * dwarf2/index-cache.c: Add include.
7589 * dwarf2/dwz.h: New file.
7590
33aa3c10
TT
75912020-03-25 Tom Tromey <tom@tromey.com>
7592
7593 * compile/compile-object-load.c (get_out_value_type): Mention
7594 correct symbol name in error message.
7595
d503b685
HD
75962020-03-25 Hannes Domani <ssbssa@yahoo.de>
7597
7598 * windows-nat.c (windows_add_all_dlls): Fix system dll paths.
7599
7b1eff95
TV
76002020-03-25 Tom de Vries <tdevries@suse.de>
7601
7602 * symtab.h (is_main_symtab_of_compunit_symtab): New function.
7603 * symmisc.c (dump_symtab_1): Print user and includes fields.
7604 (maintenance_info_symtabs): Same.
7605
dd895392
AB
76062020-03-25 Andrew Burgess <andrew.burgess@embecosm.com>
7607
7608 PR gdb/25534
7609 * riscv-tdep.c (riscv_arg_info::c_offset): Update comment.
7610 (riscv_regcache_cooked_write): New function.
7611 (riscv_push_dummy_call): Use new function.
7612 (riscv_return_value): Likewise.
7613
5ab2fbf1
SM
76142020-03-24 Simon Marchi <simon.marchi@polymtl.ca>
7615
7616 * fbsd-nat.c (fbsd_nat_target::follow_fork): Change bool to int.
7617 * fbsd-nat.h (class fbsd_nat_target) <follow_fork>: Likewise.
7618 * inf-ptrace.c (inf_ptrace_target::follow_fork): Likewise.
7619 * inf-ptrace.h (struct inf_ptrace_target) <follow_fork>: Likewise.
7620 * infrun.c (follow_fork): Likewise.
7621 (follow_fork_inferior): Likewise.
7622 * linux-nat.c (linux_nat_target::follow_fork): Likewise.
7623 * linux-nat.h (class linux_nat_target): Likewise.
7624 * remote.c (class remote_target) <follow_fork>: Likewise.
7625 (remote_target::follow_fork): Likewise.
7626 * target-delegates.c: Re-generate.
7627 * target.c (default_follow_fork): Likewise.
7628 (target_follow_fork): Likewise.
7629 * target.h (struct target_ops) <follow_fork>: Likewise.
7630 (target_follow_fork): Likewise.
7631
a64fafb5
TV
76322020-03-24 Tom de Vries <tdevries@suse.de>
7633
7634 * psymtab.c (maintenance_info_psymtabs): Print user field.
7635
fe26d3a3
TT
76362020-03-20 Tom Tromey <tromey@adacore.com>
7637
7638 * dwarf2/loc.h (dwarf2_evaluate_property): Make "addr_stack"
7639 const.
7640 * dwarf2/loc.c (dwarf2_evaluate_property): Make "addr_stack"
7641 const.
7642
c884cc46
SM
76432020-03-20 Simon Marchi <simon.marchi@efficios.com>
7644
7645 * ptrace.m4: Don't check for ptrace declaration.
7646 * config.in: Re-generate.
7647 * configure: Re-generate.
7648 * nat/gdb_ptrace.h: Don't declare ptrace if HAVE_DECL_PTRACE is
7649 not defined.
7650
1ff700c2
KR
76512020-03-20 Kamil Rytarowski <n54@gmx.com>
7652
7653 * amd64-bsd-nat.c (gdb_ptrace): Change return type from `int' to
7654 `PTRACE_TYPE_RET'.
7655 * i386-bsd-nat.c (gdb_ptrace): Likewise.
7656 * sparc-nat.c (gdb_ptrace): Likewise.
7657 * x86-bsd-nat.c (gdb_ptrace): Likewise.
7658
f7d4f0b1
TT
76592020-03-20 Tom Tromey <tromey@adacore.com>
7660
7661 * c-exp.y (lex_one_token): Fix assert.
7662
f67210ff
TT
76632020-03-20 Tom Tromey <tromey@adacore.com>
7664
7665 * ada-tasks.c (read_atcb): Use smaller length in strncpy call.
7666 * linux-tdep.c (linux_fill_prpsinfo): Use smaller length in
7667 strncpy call.
7668
1773be9e
TT
76692020-03-20 Tom Tromey <tromey@adacore.com>
7670
7671 * symmisc.c (maintenance_print_one_line_table): Use ui_out.
7672
70304be9
TT
76732020-03-20 Tom Tromey <tromey@adacore.com>
7674
7675 * ada-valprint.c (print_variant_part): Remove parameters; switch
7676 to value-based API.
7677 (print_field_values): Likewise.
7678 (ada_val_print_struct_union): Likewise.
7679 (ada_value_print_1): Update.
7680
9faa006d
KR
76812020-03-20 Kamil Rytarowski <n54@gmx.com>
7682
7683 * ppc-nbsd-nat.c (ppc_nbsd_nat_target): Inherit from
7684 nbsd_nat_target instead of inf_ptrace_target.
7685 * ppc-nbsd-nat.c: Include "nbsd-nat.h", as we are now using
7686 nbsd_nat_target.
7687
4a90f062
KR
76882020-03-20 Kamil Rytarowski <n54@gmx.com>
7689
7690 * hppa-nbsd-nat.c (fetch_registers): New variable lwp and pass
7691 it to the ptrace call.
7692 * (store_registers): Likewise.
7693
76942020-03-20 Kamil Rytarowski <n54@gmx.com>
c7da12c7
KR
7695
7696 * ppc-nbsd-nat.c (fetch_registers): New variable lwp and pass
7697 it to the ptrace call.
7698 * (store_registers): Likewise.
7699
2d07da27
LM
77002020-03-19 Luis Machado <luis.machado@linaro.org>
7701
7702 * nat/aarch64-sve-linux-ptrace.c (aarch64_sve_set_vq): If vg is not
7703 valid, fetch vg value from ptrace.
7704
f09db380
KR
77052020-03-19 Kamil Rytarowski <n54@gmx.com>
7706 * inf-ptrace.h: Disable get_ptrace_pid on NetBSD.
7707 * inf-ptrace.c: Likewise.
7708 * (gdb_ptrace): Add.
7709 * (inf_ptrace_target::resume): Update.
7710 * (inf_ptrace_target::xfer_partial): Likewise.
7711 * (inf_ptrace_peek_poke): Change argument `pid' to `ptid'.
7712 * (inf_ptrace_peek_poke): Update.
7713
fcc7376e
KR
77142020-03-19 Kamil Rytarowski <n54@gmx.com>
7715
7716 * x86-bsd-nat.c (gdb_ptrace): New.
7717 * (x86bsd_dr_set): Add new argument `ptid'.
7718 * (x86bsd_dr_get, x86bsd_dr_set, x86bsd_dr_set_control,
7719 x86bsd_dr_set_addr): Update.
7720
cada5fc9
AB
77212020-03-19 Andrew Burgess <andrew.burgess@embecosm.com>
7722
7723 * remote.c (remote_target::process_stop_reply): Handle events for
7724 all threads differently.
7725
19a2740f
AB
77262020-03-19 Andrew Burgess <andrew.burgess@embecosm.com>
7727
7728 * completer.c (completion_tracker::remove_completion): Define new
7729 function.
7730 * completer.h (completion_tracker::remove_completion): Declare new
7731 function.
7732 * symtab.c (completion_list_add_symbol): Remove aliasing msymbols
7733 when adding a C++ function symbol.
7734
724fd9ba
AB
77352020-03-19 Andrew Burgess <andrew.burgess@embecosm.com>
7736
7737 * completer.c (completion_tracker::completion_hash_entry): Define
7738 new class.
7739 (advance_to_filename_complete_word_point): Call
7740 recompute_lowest_common_denominator.
7741 (completion_tracker::completion_tracker): Call discard_completions
7742 to setup the hash table.
7743 (completion_tracker::discard_completions): Allow for being called
7744 from the constructor, pass new equal function, and element deleter
7745 when constructing the hash table. Initialise new class member
7746 variables.
7747 (completion_tracker::maybe_add_completion): Remove use of
7748 m_entries_vec, and store more information into m_entries_hash.
7749 (completion_tracker::recompute_lcd_visitor): New function, most
7750 content taken from...
7751 (completion_tracker::recompute_lowest_common_denominator):
7752 ...here, this now just visits each item in the hash calling the
7753 above visitor.
7754 (completion_tracker::build_completion_result): Remove use of
7755 m_entries_vec, call recompute_lowest_common_denominator.
7756 * completer.h (completion_tracker::have_completions): Remove use
7757 of m_entries_vec.
7758 (completion_tracker::completion_hash_entry): Declare new class.
7759 (completion_tracker::recompute_lowest_common_denominator): Change
7760 function signature.
7761 (completion_tracker::recompute_lcd_visitor): Declare new function.
7762 (completion_tracker::m_entries_vec): Delete.
7763 (completion_tracker::m_entries_hash): Initialize to NULL.
7764 (completion_tracker::m_lowest_common_denominator_valid): New
7765 member variable.
7766 (completion_tracker::m_lowest_common_denominator_max_length): New
7767 member variable.
7768
5a82b8a1
KR
77692020-03-17 Kamil Rytarowski <n54@gmx.com>
7770
7771 * regformats/regdef.h: Put reg in gdb namespace.
7772
fb516a69
KR
77732020-03-17 Kamil Rytarowski <n54@gmx.com>
7774
7775 * i386-bsd-nat.c (gdb_ptrace): New.
7776 * (i386bsd_fetch_inferior_registers,
7777 i386bsd_store_inferior_registers) Switch from pid_t to ptid_t.
7778 * (i386bsd_fetch_inferior_registers,
7779 i386bsd_store_inferior_registers) Use gdb_ptrace.
7780
1c0aa1fb
KR
77812020-03-17 Kamil Rytarowski <n54@gmx.com>
7782
7783 * amd64-bsd-nat.c (gdb_ptrace): New.
7784 * (amd64bsd_fetch_inferior_registers,
7785 amd64bsd_store_inferior_registers) Switch from pid_t to ptid_t.
7786 * (amd64bsd_fetch_inferior_registers,
7787 amd64bsd_store_inferior_registers) Use gdb_ptrace.
7788
5ccd2fb7
KR
77892020-03-17 Kamil Rytarowski <n54@gmx.com>
7790
7791 * user-regs.c (user_reg::read): Rename to...
7792 (user_reg::xread): ...this.
7793 * (append_user_reg): Rename argument `read' to `xread'.
7794 * (user_reg_add_builtin): Likewise.
7795 * (user_reg_add): Likewise.
7796 * (value_of_user_reg): Likewise.
7797
2108a63a
KR
77982020-03-17 Kamil Rytarowski <n54@gmx.com>
7799
7800 * sparc-nat.c (gdb_ptrace): New.
7801 * sparc-nat.c (sparc_fetch_inferior_registers)
7802 (sparc_store_inferior_registers) Remove obsolete comment.
7803 * sparc-nat.c (sparc_fetch_inferior_registers)
7804 (sparc_store_inferior_registers) Switch from pid_t to ptid_t.
7805 * sparc-nat.c (sparc_fetch_inferior_registers)
7806 (sparc_store_inferior_registers) Use gdb_ptrace.
7807
a225c9a8
KR
78082020-03-17 Kamil Rytarowski <n54@gmx.com>
7809
7810 * sh-nbsd-nat.c (fetch_registers): New variable lwp and pass
7811 it to the ptrace call.
7812 * sh-nbsd-nat.c (store_registers): Likewise.
7813
98097623
KR
78142020-03-17 Kamil Rytarowski <n54@gmx.com>
7815
7816 * sh-nbsd-nat.c (sh_nbsd_nat_target): Inherit from
7817 nbsd_nat_target instead of inf_ptrace_target.
7818 * sh-nbsd-nat.c: Include "nbsd-nat.h", as we are now using
7819 nbsd_nat_target.
7820
9e38d619
KR
78212020-03-17 Kamil Rytarowski <n54@gmx.com>
7822
7823 * amd64-bsd-nat.c: Include amd64-bsd-nat.h".
7824
a2ecbe9f
KR
78252020-03-17 Kamil Rytarowski <n54@gmx.com>
7826
7827 * nbsd-nat.c: Include <sys/types.h>, <sys/ptrace.h> and
7828 <sys/sysctl.h>.
7829 * nbsd-nat.c (nbsd_nat_target::pid_to_exec_file): Rewrite.
7830
58990295
TV
78312020-03-17 Tom de Vries <tdevries@suse.de>
7832
7833 PR gdb/23710
7834 * dwarf2/read.h (struct dwarf2_per_cu_data): Add unit_type and lang
7835 fields.
7836 * dwarf2/read.c (process_psymtab_comp_unit): Initialize unit_type and lang
7837 fields.
7838 (process_imported_unit_die): Skip import of c++ CUs.
7839
771dd3a8
TT
78402020-03-16 Tom Tromey <tom@tromey.com>
7841
7842 * p-valprint.c (pascal_object_print_value): Initialize
7843 base_value.
7844
817a7585
AK
78452020-03-16 Anton Kolesov <anton.kolesov@synopsys.com>
7846 Shahab Vahedi <shahab@synopsys.com>
7847
7848 * Makefile.in: Add arch/arc.o
7849 * configure.tgt: Likewise.
7850 * arc-tdep.c (arc_tdesc_init): Use arc_read_description.
7851 (_initialize_arc_tdep): Don't initialize old target descriptions.
aac66a4c 7852 (arc_read_description): New function to cache target descriptions.
817a7585
AK
7853 * arc-tdep.h (arc_read_description): Add proto type.
7854 * arch/arc.c: New file.
7855 * arch/arc.h: Likewise.
7856 * features/Makefile: Replace old target descriptions with new.
7857 * features/arc-arcompact.c: Remove.
7858 * features/arc-arcompact.xml: Likewise.
7859 * features/arc-v2.c: Likewise
7860 * features/arc-v2.xml: Likewise
7861 * features/arc/aux-arcompact.xml: New file.
7862 * features/arc/aux-v2.xml: Likewise.
7863 * features/arc/core-arcompact.xml: Likewise.
7864 * features/arc/core-v2.xml: Likewise.
7865 * features/arc/aux-arcompact.c: Generate.
7866 * features/arc/aux-v2.c: Likewise.
7867 * features/arc/core-arcompact.c: Likewise.
7868 * features/arc/core-v2.c: Likewise.
7869 * target-descriptions (maint_print_c_tdesc_cmd): Support ARC features.
7870
67430cd0
TT
78712020-03-16 Tom Tromey <tromey@adacore.com>
7872
7873 PR gdb/25663:
7874 * dwarf2/read.c (dwarf2_name): Strip leading namespaces after
7875 putting value into bcache.
7876
30efb6c7
SM
78772020-03-16 Simon Marchi <simon.marchi@efficios.com>
7878
7879 PR gdb/21500
7880 * amd64-windows-tdep.c (amd64_windows_init_abi): Rename
7881 to...
7882 (amd64_windows_init_abi_common): ... this. Don't set size of
7883 long type.
7884 (amd64_windows_init_abi): New function.
7885 (amd64_cygwin_init_abi): New function.
7886 (_initialize_amd64_windows_tdep): Use amd64_cygwin_init_abi for
7887 the Cygwin OS ABI.
7888 * i386-windows-tdep.c (_initialize_i386_windows_tdep): Clarify
7889 comment.
7890
8db52437
SM
78912020-03-16 Simon Marchi <simon.marchi@efficios.com>
7892
7893 * windows-tdep.h (is_linked_with_cygwin_dll): New declaration.
7894 * windows-tdep.c (CYGWIN_DLL_NAME): New.
7895 (pe_import_directory_entry): New struct type.
7896 (is_linked_with_cygwin_dll): New function.
7897 * amd64-windows-tdep.c (amd64_windows_osabi_sniffer): Select
7898 GDB_OSABI_CYGWIN if the BFD is linked with the Cygwin DLL.
7899 * i386-windows-tdep.c (i386_windows_osabi_sniffer): Likewise.
7900
5982a56a
SM
79012020-03-16 Simon Marchi <simon.marchi@efficios.com>
7902
7903 * i386-windows-tdep.c: Mass-rename "cygwin" to "windows", except
7904 i386_cygwin_core_osabi_sniffer.
7905
7a1998df
SM
79062020-03-16 Simon Marchi <simon.marchi@efficios.com>
7907
7908 * i386-cygwin-tdep.c: Rename to...
7909 * i386-windows-tdep.c: ... this.
7910 * Makefile.in (ALL_TARGET_OBS): Rename i386-cygwin-tdep.c to
7911 i386-windows-tdep.c.
7912 * configure.tgt: Likewise.
7913
053205cc
SM
79142020-03-16 Simon Marchi <simon.marchi@efficios.com>
7915
7916 * osabi.h (enum gdb_osabi): Add GDB_OSABI_WINDOWS.
7917 * osabi.c (gdb_osabi_names): Add "Windows".
7918 * i386-cygwin-tdep.c (i386_cygwin_osabi_sniffer): Return
7919 GDB_OSABI_WINDOWS when the binary's target is "pei-i386".
7920 (i386_cygwin_core_osabi_sniffer): New function, extracted from
7921 i386_cygwin_osabi_sniffer.
7922 (_initialize_i386_cygwin_tdep): Register OS ABI
7923 GDB_OSABI_WINDOWS for i386.
7924 * amd64-windows-tdep.c (amd64_windows_osabi_sniffer): Return
7925 GDB_OSABI_WINDOWS when the binary's target is "pei-x86-64".
7926 (_initialize_amd64_windows_tdep): Register OS ABI GDB_OSABI_WINDOWS
7927 for x86-64.
7928 * configure.tgt: Use GDB_OSABI_WINDOWS as the default OS ABI
7929 when the target matches '*-*-mingw*'.
7930
fe4b2ee6
SM
79312020-03-16 Simon Marchi <simon.marchi@efficios.com>
7932
7933 * defs.h (enum gdb_osabi): Move to...
7934 * osabi.h (enum gdb_osabi): ... here.
7935 * gdbarch.sh: Include osabi.h in gdbarch.h.
7936 * gdbarch.h: Re-generate.
7937
cb9b645d
SM
79382020-03-16 Simon Marchi <simon.marchi@efficios.com>
7939
7940 * amd64-windows-tdep.c (amd64_windows_osabi_sniffer): New
7941 function.
7942 (_initialize_amd64_windows_tdep): Register osabi sniffer.
7943
3293bbaf
TT
79442020-03-14 Tom Tromey <tom@tromey.com>
7945
7946 * c-typeprint.c (cp_type_print_method_args): Print "__restrict__"
7947 for C++.
7948 (c_type_print_modifier): Likewise. Add "language" parameter.
7949 (c_type_print_varspec_prefix, c_type_print_base_struct_union)
7950 (c_type_print_base_1): Update.
7951 * type-stack.h (enum type_pieces) <tp_atomic, tp_restrict>: New
7952 constants.
7953 * type-stack.c (type_stack::insert): Handle tp_atomic and
7954 tp_restrict.
7955 (type_stack::follow_type_instance_flags): Likewise.
7956 (type_stack::follow_types): Likewise. Merge type-following code.
7957 * c-exp.y (RESTRICT, ATOMIC): New tokens.
7958 (space_identifier, cv_with_space_id)
7959 (const_or_volatile_or_space_identifier_noopt)
7960 (const_or_volatile_or_space_identifier): Remove.
7961 (single_qualifier, qualifier_seq_noopt, qualifier_seq): New
7962 rules.
7963 (ptr_operator, typebase): Update.
7964 (enum token_flag) <FLAG_C>: New constant.
7965 (ident_tokens): Add "restrict", "__restrict__", "__restrict", and
7966 "_Atomic".
7967 (lex_one_token): Handle FLAG_C.
7968
154151a6
KR
79692020-03-14 Kamil Rytarowski <n54@gmx.com>
7970
7971 * m68k-bsd-nat.c (fetch_registers): New variable lwp and pass
7972 it to the ptrace call.
7973 * m68k-bsd-nat.c (store_registers): Likewise.
7974
bc107784
KR
79752020-03-14 Kamil Rytarowski <n54@gmx.com>
7976
7977 * m68k-bsd-nat.c (m68kbsd_supply_gregset): Change type of regs to
7978 gdb_byte *.
7979 * m68k-bsd-nat.c (m68kbsd_supply_fpregset): Likewise.
7980 * m68k-bsd-nat.c (m68kbsd_collect_gregset): Likewise.
7981 * m68k-bsd-nat.c (m68kbsd_supply_pcb): Cast &tmp to gdb_byte *.
7982
01a80117
KR
79832020-03-14 Kamil Rytarowski <n54@gmx.com>
7984
7985 * m68k-bsd-nat.c (m68k_bsd_nat_target): Inherit from
7986 nbsd_nat_target instead of inf_ptrace_target.
7987 * m68k-bsd-nat.c: Include "nbsd-nat.h", as we are now using
7988 nbsd_nat_target.
7989
f90280ca
KR
79902020-03-14 Kamil Rytarowski <n54@gmx.com>
7991
7992 * m68k-bsd-nat.c: Define _KERNTYPES to get the declaration of
7993 register_t.
7994
6def66f1
KR
79952020-03-14 Kamil Rytarowski <n54@gmx.com>
7996
7997 * alpha-bsd-nat.c (fetch_registers): New variable lwp and pass
7998 it to the ptrace call.
7999 * alpha-bsd-nat.c (store_registers): Likewise.
8000
66eaca97
KR
80012020-03-14 Kamil Rytarowski <n54@gmx.com>
8002
8003 * alpha-bsd-nat.c: Remove <sys/procfs.h> and "gregset.h" from
8004 includes.
8005 * alpha-bsd-nat.c (gregset_t, fpregset_t): Remove.
8006 * alpha-bsd-nat.c (supply_gregset, fill_gregset, supply_fpregset,
8007 fill_fpregset): Likewise.
8008
4fed520b
KR
80092020-03-14 Kamil Rytarowski <n54@gmx.com>
8010
8011 * alpha-bsd-nat.c (alpha_netbsd_nat_target): Inherit from
8012 nbsd_nat_target instead of inf_ptrace_target.
8013 * alpha-bsd-nat.c: Include "nbsd-nat.h", as we are now using
8014 nbsd_nat_target.
8015
2190cf06
KR
80162020-03-14 Kamil Rytarowski <n54@gmx.com>
8017
8018 * alpha-bsd-nat.c: Define _KERNTYPES to get the declaration of
8019 register_t.
8020
75c56d3d
KR
80212020-03-14 Kamil Rytarowski <n54@gmx.com>
8022
8023 * arm-nbsd-nat.c (fetch_register): New variable lwp and pass
8024 it to the ptrace call.
8025 * arm-nbsd-nat.c (fetch_fp_register): Likewise.
8026 * arm-nbsd-nat.c (fetch_fp_regs): Likewise.
8027 * arm-nbsd-nat.c (store_register): Likewise.
8028 * arm-nbsd-nat.c (store_regs): Likewise.
8029 * arm-nbsd-nat.c (store_fp_register): Likewise.
8030 * arm-nbsd-nat.c (store_fp_regs): Likewise.
8031
6018d381
KR
80322020-03-14 Kamil Rytarowski <n54@gmx.com>
8033
8034 * arm-nbsd-nat.c (arm_netbsd_nat_target): Inherit from
8035 nbsd_nat_target instead of inf_ptrace_target.
8036 * arm-nbsd-nat.c: Include "nbsd-nat.h", as we are now using
8037 nbsd_nat_target.
8038
013f99f0
KR
80392020-03-14 Kamil Rytarowski <n54@gmx.com>
8040
8041 * x86-bsd-nat.c (x86bsd_dr_get): New variable lwp and pass
8042 it to the ptrace call.
8043 * x86-bsd-nat.c (x86bsd_dr_set): Likewise.
8044
12753073
KR
80452020-03-14 Kamil Rytarowski <n54@gmx.com>
8046
6227b330
KR
8047 * vax-bsd-nat.c (vaxbsd_supply_gregset): New variable lwp and pass
8048 it to the ptrace call.
8049 * vax-bsd-nat.c (vaxbsd_collect_gregset): Likewise.
8050
80512020-03-14 Kamil Rytarowski <n54@gmx.com>
8052
8053 * vax-bsd-nat.c (vaxbsd_supply_gregset): Cast gregs to const
8054 gdb_byte *.
12753073
KR
8055 * vax-bsd-nat.c (vaxbsd_collect_gregset): Cast gregs to void *.
8056
d5be5fa4
KR
80572020-03-14 Kamil Rytarowski <n54@gmx.com>
8058
8059 * vax-bsd-nat.c (vax_bsd_nat_target): Inherit from nbsd_nat_target
8060 instead of inf_ptrace_target.
8061 * vax-bsd-nat.c: Include "nbsd-nat.h", as we are now using
8062 nbsd_nat_target.
8063
8110f842
KR
80642020-03-14 Kamil Rytarowski <n54@gmx.com>
8065
8066 * mips-nbsd-nat.c: Define _KERNTYPES to get the declaration of
8067 register_t.
8068
52feded7
KR
80692020-03-14 Kamil Rytarowski <n54@gmx.com>
8070
8071 * ppc-nbsd-nat.c: Define _KERNTYPES to get the declaration of
8072 register_t.
8073
25567eee
KR
80742020-03-14 Kamil Rytarowski <n54@gmx.com>
8075
8076 * vax-bsd-nat.c: Define _KERNTYPES to get the declaration of
8077 register_t.
8078
426a9c18
TT
80792020-03-13 Tom Tromey <tom@tromey.com>
8080
8081 * value.h (val_print): Don't declare.
8082 * valprint.h (val_print_array_elements)
8083 (val_print_scalar_formatted, generic_val_print): Don't declare.
8084 * valprint.c (generic_val_print_array): Take a struct value.
8085 (generic_val_print_ptr, generic_val_print_memberptr)
8086 (generic_val_print_bool, generic_val_print_int)
8087 (generic_val_print_char, generic_val_print_complex)
8088 (generic_val_print): Remove.
8089 (generic_value_print): Update.
8090 (do_val_print): Remove unused parameters. Don't call
8091 la_val_print.
8092 (val_print): Remove.
8093 (common_val_print): Update. Don't call value_check_printable.
8094 (val_print_scalar_formatted, val_print_array_elements): Remove.
8095 * rust-lang.c (rust_val_print): Remove.
8096 (rust_language_defn): Update.
8097 * p-valprint.c (pascal_val_print): Remove.
8098 (pascal_value_print_inner): Update.
8099 (pascal_object_print_val_fields, pascal_object_print_val):
8100 Remove.
8101 (pascal_object_print_static_field): Update.
8102 * p-lang.h (pascal_val_print): Don't declare.
8103 * p-lang.c (pascal_language_defn): Update.
8104 * opencl-lang.c (opencl_language_defn): Update.
8105 * objc-lang.c (objc_language_defn): Update.
8106 * m2-valprint.c (m2_print_unbounded_array, m2_val_print): Remove.
8107 * m2-lang.h (m2_val_print): Don't declare.
8108 * m2-lang.c (m2_language_defn): Update.
8109 * language.h (struct language_defn) <la_val_print>: Remove.
8110 * language.c (unk_lang_value_print_inner): Rename. Change
8111 argument types.
8112 (unknown_language_defn, auto_language_defn): Update.
8113 * go-valprint.c (go_val_print): Remove.
8114 * go-lang.h (go_val_print): Don't declare.
8115 * go-lang.c (go_language_defn): Update.
8116 * f-valprint.c (f_val_print): Remove.
8117 * f-lang.h (f_value_print): Don't declare.
8118 * f-lang.c (f_language_defn): Update.
8119 * d-valprint.c (d_val_print): Remove.
8120 * d-lang.h (d_value_print): Don't declare.
8121 * d-lang.c (d_language_defn): Update.
8122 * cp-valprint.c (cp_print_value_fields)
8123 (cp_print_value_fields_rtti, cp_print_value): Remove.
8124 (cp_print_static_field): Update.
8125 * c-valprint.c (c_val_print_array, c_val_print_ptr)
8126 (c_val_print_struct, c_val_print_union, c_val_print_int)
8127 (c_val_print_memberptr, c_val_print): Remove.
8128 * c-lang.h (c_val_print_array, cp_print_value_fields)
8129 (cp_print_value_fields_rtti): Don't declare.
8130 * c-lang.c (c_language_defn, cplus_language_defn)
8131 (asm_language_defn, minimal_language_defn): Update.
8132 * ada-valprint.c (ada_val_print_ptr, ada_val_print_num): Remove.
8133 (ada_val_print_enum): Take a struct value.
8134 (ada_val_print_flt, ada_val_print_array, ada_val_print_1)
8135 (ada_val_print): Remove.
8136 (ada_value_print_1): Update.
8137 (printable_val_type): Remove.
8138 * ada-lang.h (ada_val_print): Don't declare.
8139 * ada-lang.c (ada_language_defn): Update.
8140
42331a1e
TT
81412020-03-13 Tom Tromey <tom@tromey.com>
8142
8143 * valprint.c (do_val_print): Update.
8144 * python/python-internal.h (gdbpy_apply_val_pretty_printer): Take
8145 a struct value.
8146 (value_to_value_object_no_release): Declare.
8147 * python/py-value.c (value_to_value_object_no_release): New
8148 function.
8149 * python/py-prettyprint.c (gdbpy_apply_val_pretty_printer): Take a
8150 struct value.
8151 * guile/scm-value.c (vlscm_scm_from_value_no_release): New
8152 function.
8153 * guile/scm-pretty-print.c (gdbscm_apply_val_pretty_printer): Take
8154 a struct value.
8155 * guile/guile-internal.h (vlscm_scm_from_value_no_release):
8156 Declare.
8157 (gdbscm_apply_val_pretty_printer): Take a struct value.
8158 * extension.h (apply_ext_lang_val_pretty_printer): Take a struct
8159 value.
8160 * extension.c (apply_ext_lang_val_pretty_printer): Take a struct
8161 value.
8162 * extension-priv.h (struct extension_language_ops)
8163 <apply_val_pretty_printer>: Take a struct value.
8164 * cp-valprint.c (cp_print_value): Create a struct value.
8165 (cp_print_value): Update.
8166
3a916a97
TT
81672020-03-13 Tom Tromey <tom@tromey.com>
8168
8169 * ada-valprint.c (print_field_values): Call common_val_print.
8170
b59eac37
TT
81712020-03-13 Tom Tromey <tom@tromey.com>
8172
8173 * ada-valprint.c (val_print_packed_array_elements): Remove
8174 bitoffset and val parameters. Call common_val_print.
8175 (ada_val_print_string): Remove offset, address, and original_value
8176 parameters.
8177 (ada_val_print_array): Update.
8178 (ada_value_print_array): New function.
8179 (ada_value_print_1): Call it.
8180
03371129
TT
81812020-03-13 Tom Tromey <tom@tromey.com>
8182
8183 * ada-valprint.c (ada_value_print): Use common_val_print.
8184
2e088f8b
TT
81852020-03-13 Tom Tromey <tom@tromey.com>
8186
8187 * ada-valprint.c (ada_val_print_ref): Use common_val_print.
8188
39ef85a8
TT
81892020-03-13 Tom Tromey <tom@tromey.com>
8190
8191 * ada-valprint.c (ada_value_print_num): New function.
8192 (ada_value_print_1): Use it.
8193
b9fa6e07
TT
81942020-03-13 Tom Tromey <tom@tromey.com>
8195
8196 * ada-valprint.c (ada_value_print_1) <TYPE_CODE_FLT>: Rewrite.
8197
416595d6
TT
81982020-03-13 Tom Tromey <tom@tromey.com>
8199
8200 * ada-valprint.c (ada_value_print_ptr): New function.
8201 (ada_value_print_1): Use it.
8202
5b5e15ec
TT
82032020-03-13 Tom Tromey <tom@tromey.com>
8204
8205 * ada-valprint.c (ada_val_print_gnat_array): Take a struct value;
8206 call common_val_print.
8207 (ada_val_print_1): Update.
8208 (ada_value_print_1): New function.
8209 (ada_value_print_inner): Rewrite.
8210
fbf54e75
TT
82112020-03-13 Tom Tromey <tom@tromey.com>
8212
8213 * cp-valprint.c (cp_print_value_fields): Update.
8214 (cp_print_value): New function.
8215
64b653ca
TT
82162020-03-13 Tom Tromey <tom@tromey.com>
8217
8218 * m2-valprint.c (m2_value_print_inner): Use
8219 cp_print_value_fields.
8220 * cp-valprint.c (cp_print_value_fields): New function.
8221 * c-valprint.c (c_value_print_struct): New function.
8222 (c_value_print_inner): Use c_value_print_struct.
8223 * c-lang.h (cp_print_value_fields): Declare.
8224
6999f067
TT
82252020-03-13 Tom Tromey <tom@tromey.com>
8226
8227 * c-valprint.c (c_value_print_array): New function.
8228 (c_value_print_inner): Use it.
8229
ce80b8bd
TT
82302020-03-13 Tom Tromey <tom@tromey.com>
8231
8232 * c-valprint.c (c_value_print_memberptr): New function.
8233 (c_value_print_inner): Use it.
8234
2faac269
TT
82352020-03-13 Tom Tromey <tom@tromey.com>
8236
8237 * c-valprint.c (c_value_print_int): New function.
8238 (c_value_print_inner): Use it.
8239
da3e2c29
TT
82402020-03-13 Tom Tromey <tom@tromey.com>
8241
8242 * c-valprint.c (c_value_print_ptr): New function.
8243 (c_value_print_inner): Use it.
8244
50836231
TT
82452020-03-13 Tom Tromey <tom@tromey.com>
8246
8247 * c-valprint.c (c_value_print_inner): Rewrite.
8248
4f412b6e
TT
82492020-03-13 Tom Tromey <tom@tromey.com>
8250
8251 * valprint.c (generic_value_print_complex): New function.
8252 (generic_value_print): Use it.
8253
f5354008
TT
82542020-03-13 Tom Tromey <tom@tromey.com>
8255
8256 * valprint.c (generic_val_print_float): Don't call
8257 val_print_scalar_formatted.
8258 (generic_val_print, generic_value_print): Update.
8259
3eec3b05
TT
82602020-03-13 Tom Tromey <tom@tromey.com>
8261
8262 * valprint.c (generic_value_print_char): New function
8263 (generic_value_print): Use it.
8264
fdddfccb
TT
82652020-03-13 Tom Tromey <tom@tromey.com>
8266
8267 * valprint.c (generic_value_print_int): New function.
8268 (generic_value_print): Use it.
8269
6dde7521
TT
82702020-03-13 Tom Tromey <tom@tromey.com>
8271
8272 * valprint.c (generic_value_print_bool): New function.
8273 (generic_value_print): Use it.
8274
4112d2e6
TT
82752020-03-13 Tom Tromey <tom@tromey.com>
8276
8277 * valprint.c (generic_val_print_func): Simplify.
8278 (generic_val_print, generic_value_print): Update.
8279
65786af6
TT
82802020-03-13 Tom Tromey <tom@tromey.com>
8281
8282 * valprint.c (generic_val_print_flags): Remove.
8283 (generic_val_print, generic_value_print): Update.
8284 (val_print_type_code_flags): Add original_value parameter.
8285
40f3ce18
TT
82862020-03-13 Tom Tromey <tom@tromey.com>
8287
8288 * valprint.c (generic_val_print): Update.
8289 (generic_value_print): Update.
8290 * valprint.c (generic_val_print_enum): Don't call
8291 val_print_scalar_formatted.
8292
2a5b130b
TT
82932020-03-13 Tom Tromey <tom@tromey.com>
8294
8295 * valprint.c (generic_value_print): Call generic_value_print_ptr.
8296 * valprint.c (generic_value_print_ptr): New function.
8297
abc66ce9
TT
82982020-03-13 Tom Tromey <tom@tromey.com>
8299
8300 * valprint.c (generic_value_print): Rewrite.
8301
07a32858
TT
83022020-03-13 Tom Tromey <tom@tromey.com>
8303
8304 * p-valprint.c (pascal_object_print_value_fields)
8305 (pascal_object_print_value): New functions.
8306
64d64d3a
TT
83072020-03-13 Tom Tromey <tom@tromey.com>
8308
8309 * p-valprint.c (pascal_value_print_inner): Rewrite.
8310
6a95a1f5
TT
83112020-03-13 Tom Tromey <tom@tromey.com>
8312
8313 * f-valprint.c (f_value_print_innner): Rewrite.
8314
59fcdac6
TT
83152020-03-13 Tom Tromey <tom@tromey.com>
8316
8317 * m2-valprint.c (m2_print_unbounded_array): New overload.
8318 (m2_print_unbounded_array): Update.
8319 (m2_print_array_contents): Take a struct value.
8320 (m2_value_print_inner): Rewrite.
8321
d133c3e1
TT
83222020-03-13 Tom Tromey <tom@tromey.com>
8323
8324 * d-valprint.c (dynamic_array_type): Call d_value_print_inner.
8325 (d_value_print_inner): New function.
8326 * d-lang.h (d_value_print_inner): Declare.
8327 * d-lang.c (d_language_defn): Use d_value_print_inner.
8328
23b0f06b
TT
83292020-03-13 Tom Tromey <tom@tromey.com>
8330
8331 * go-valprint.c (go_value_print_inner): New function.
8332 * go-lang.h (go_value_print_inner): Declare.
8333 * go-lang.c (go_language_defn): Use go_value_print_inner.
8334
5f56f7cb
TT
83352020-03-13 Tom Tromey <tom@tromey.com>
8336
8337 * rust-lang.c (val_print_struct, rust_print_enum): Use the value
8338 API.
8339 (rust_val_print): Rewrite.
8340 (rust_value_print_inner): New function, from rust_val_print.
8341 (rust_language_defn): Use rust_value_print_inner.
8342
26792ee0
TT
83432020-03-13 Tom Tromey <tom@tromey.com>
8344
8345 * ada-valprint.c (ada_value_print_inner): New function.
8346 * ada-lang.h (ada_value_print_inner): Declare.
8347 * ada-lang.c (ada_language_defn): Use ada_value_print_inner.
8348
24051bbe
TT
83492020-03-13 Tom Tromey <tom@tromey.com>
8350
8351 * f-valprint.c (f_value_print_innner): New function.
8352 * f-lang.h (f_value_print_innner): Declare.
8353 * f-lang.c (f_language_defn): Use f_value_print_innner.
8354
c0941be6
TT
83552020-03-13 Tom Tromey <tom@tromey.com>
8356
8357 * p-valprint.c (pascal_value_print_inner): New function.
8358 * p-lang.h (pascal_value_print_inner): Declare.
8359 * p-lang.c (pascal_language_defn): Use pascal_value_print_inner.
8360
62c4663d
TT
83612020-03-13 Tom Tromey <tom@tromey.com>
8362
8363 * m2-valprint.c (m2_value_print_inner): New function.
8364 * m2-lang.h (m2_value_print_inner): Declare.
8365 * m2-lang.c (m2_language_defn): Use m2_value_print_inner.
8366
62182190
TT
83672020-03-13 Tom Tromey <tom@tromey.com>
8368
8369 * opencl-lang.c (opencl_language_defn): Use c_value_print_inner.
8370 * objc-lang.c (objc_language_defn): Use c_value_print_inner.
8371 * c-valprint.c (c_value_print_inner): New function.
8372 * c-lang.h (c_value_print_inner): Declare.
8373 * c-lang.c (c_language_defn, cplus_language_defn)
8374 (asm_language_defn, minimal_language_defn): Use
8375 c_value_print_inner.
8376
1e592a8a
TT
83772020-03-13 Tom Tromey <tom@tromey.com>
8378
8379 * p-valprint.c (pascal_object_print_value_fields): Now static.
8380 * p-lang.h (pascal_object_print_value_fields): Don't declare.
8381
7fe471e9
TT
83822020-03-13 Tom Tromey <tom@tromey.com>
8383
8384 * c-valprint.c (c_val_print_array): Simplify.
8385
d121c6ce
TT
83862020-03-13 Tom Tromey <tom@tromey.com>
8387
8388 * valprint.c (value_print_array_elements): New function.
8389 * valprint.h (value_print_array_elements): Declare.
8390
4dba70ee
TT
83912020-03-13 Tom Tromey <tom@tromey.com>
8392
8393 * printcmd.c (print_formatted): Use value_print_scalar_formatted.
8394 * mips-tdep.c (mips_print_register): Use
8395 value_print_scalar_formatted.
8396
4f9ae810
TT
83972020-03-13 Tom Tromey <tom@tromey.com>
8398
8399 * valprint.h (value_print_scalar_formatted): Declare.
8400 * valprint.c (value_print_scalar_formatted): New function.
8401
156bfec9
TT
84022020-03-13 Tom Tromey <tom@tromey.com>
8403
8404 * valprint.h (generic_value_print): Declare.
8405 * valprint.c (generic_value_print): New function.
8406
2b4e573d
TT
84072020-03-13 Tom Tromey <tom@tromey.com>
8408
8409 * valprint.c (do_val_print): Call la_value_print_inner, if
8410 available.
8411 * rust-lang.c (rust_language_defn): Update.
8412 * p-lang.c (pascal_language_defn): Update.
8413 * opencl-lang.c (opencl_language_defn): Update.
8414 * objc-lang.c (objc_language_defn): Update.
8415 * m2-lang.c (m2_language_defn): Update.
8416 * language.h (struct language_defn) <la_value_print_inner>: New
8417 member.
8418 * language.c (unknown_language_defn, auto_language_defn): Update.
8419 * go-lang.c (go_language_defn): Update.
8420 * f-lang.c (f_language_defn): Update.
8421 * d-lang.c (d_language_defn): Update.
8422 * c-lang.c (c_language_defn, cplus_language_defn)
8423 (asm_language_defn, minimal_language_defn): Update.
8424 * ada-lang.c (ada_language_defn): Update.
8425
a1f6a07c
TT
84262020-03-13 Tom Tromey <tom@tromey.com>
8427
8428 * c-valprint.c (c_value_print): Use common_val_print.
8429
410cf315
TT
84302020-03-13 Tom Tromey <tom@tromey.com>
8431
8432 * cp-valprint.c (cp_print_static_field): Use common_val_print.
8433
72a45c93
TT
84342020-03-13 Tom Tromey <tom@tromey.com>
8435
8436 * f-valprint.c (f77_print_array_1, f_val_print): Use
8437 common_val_print.
8438
040f66bd
TT
84392020-03-13 Tom Tromey <tom@tromey.com>
8440
8441 * riscv-tdep.c (riscv_print_one_register_info): Use
8442 common_val_print.
8443
a6e05a6c
TT
84442020-03-13 Tom Tromey <tom@tromey.com>
8445
8446 * mi/mi-main.c (output_register): Use common_val_print.
8447
3444c526
TT
84482020-03-13 Tom Tromey <tom@tromey.com>
8449
8450 * infcmd.c (default_print_one_register_info): Use
8451 common_val_print.
8452
c2a44efe
TT
84532020-03-13 Tom Tromey <tom@tromey.com>
8454
8455 * valprint.h (common_val_print_checked): Declare.
8456 * valprint.c (common_val_print_checked): New function.
8457 * stack.c (print_frame_arg): Use common_val_print_checked.
8458
b0c26e99
TT
84592020-03-13 Tom Tromey <tom@tromey.com>
8460
8461 * valprint.c (do_val_print): New function, from val_print.
8462 (val_print): Use do_val_print.
8463 (common_val_print): Use do_val_print.
8464
ce3acbe9
TT
84652020-03-13 Tom Tromey <tom@tromey.com>
8466
8467 * valprint.c (value_print): Use scoped_value_mark.
8468
96c7f873
TV
84692020-03-13 Tom de Vries <tdevries@suse.de>
8470
8471 PR symtab/25646
8472 * psymtab.c (partial_symtab::partial_symtab): Don't set
8473 globals_offset and statics_offset. Push element onto
8474 current_global_psymbols and current_static_psymbols stacks.
8475 (concat): New function.
8476 (end_psymtab_common): Set globals_offset and statics_offset. Pop
8477 element from current_global_psymbols and current_static_psymbols
8478 stacks. Concat popped elements to global_psymbols and
8479 static_symbols.
8480 (add_psymbol_to_list): Use current_global_psymbols and
8481 current_static_psymbols stacks.
8482 * psymtab.h (class psymtab_storage): Add current_global_psymbols and
8483 current_static_psymbols fields.
8484
6ba0a321
CB
84852020-03-12 Christian Biesinger <cbiesinger@google.com>
8486
8487 * corelow.c (sniff_core_bfd): Remove.
8488 (class core_target) <m_core_vec>: Remove.
8489 (core_target::core_target): Update.
8490 (core_file_fns): Remove.
8491 (deprecated_add_core_fns): Remove.
8492 (default_core_sniffer): Remove.
8493 (sniff_core_bfd): Remove.
8494 (default_check_format): Remove.
8495 (gdb_check_format): Remove.
8496 (core_target_open): Update.
8497 (core_target::get_core_register_section): Update.
8498 (get_core_registers_cb): Update.
8499 (core_target::fetch_registers): Update.
8500 * gdbcore.h (struct core_fns): Remove.
8501 (deprecated_add_core_fns): Remove.
8502 (default_core_sniffer): Remove.
8503 (default_check_format): Remove.
8504
227031b2
TT
85052020-03-12 Tom Tromey <tom@tromey.com>
8506
8507 * arm-tdep.c (struct arm_mapping_symbol) <value>: Now a
8508 CORE_ADDR.
8509 (struct arm_exidx_entry) <addr>: Now a CORE_ADDR.
8510
53807e9f
TT
85112020-03-12 Tom Tromey <tom@tromey.com>
8512
8513 * remote.c (remote_target::download_tracepoint)
8514 (remote_target::enable_tracepoint)
8515 (remote_target::disable_tracepoint): Use phex, not sprintf_vma.
8516 * breakpoint.c (print_recreate_masked_watchpoint): Use phex, not
8517 sprintf_vma.
8518
64f25102
TT
85192020-03-12 Tom Tromey <tom@tromey.com>
8520
8521 * symfile-mem.c: Update CORE_ADDR size assert.
8522
272cd5a3
SM
85232020-03-12 Simon Marchi <simon.marchi@efficios.com>
8524
8525 * selftest.m4: Move to gdbsupport/.
8526 * acinclude.m4: Update path to selftest.m4.
8527
74cd3f9d
SM
85282020-03-12 Simon Marchi <simon.marchi@efficios.com>
8529
8530 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Rename to...
8531 (SELFTESTS_SRCS): ... this. Add disasm-selftests.c,
8532 gdbarch-selfselftests.c and selftest-arch.c.
8533 (SUBDIR_UNITTESTS_OBS): Rename to...
8534 (SELFTESTS_OBS): ... this.
8535 (COMMON_SFILES): Remove disasm-selftests.c and
8536 gdbarch-selftests.c.
8537 * configure.ac: Don't add selftest-arch.{c,o} to
8538 CONFIG_{SRCS,OBS}.
8539 * disasm-selftests.c, gdbarch-selftests.c: Remove GDB_SELF_TEST
8540 preprocessor conditions.
8541
db6878ac
SM
85422020-03-12 Simon Marchi <simon.marchi@efficios.com>
8543
8544 * configure.ac: Don't source bfd/development.sh.
8545 * selftest.m4: Modify comment.
8546 * configure: Re-generate.
8547
4d696a5c
SM
85482020-03-12 Simon Marchi <simon.marchi@efficios.com>
8549
8550 * selftest.m4 (GDB_AC_SELFTEST): Error out if $development is
8551 not "true" or "false".
8552 * configure: Re-generate.
8553
8dd8e1c7
CB
85542020-03-12 Christian Biesinger <cbiesinger@google.com>
8555
8556 * Makefile.in (HFILES_NO_SRCDIR): Add new arm-nbsd-tdep.h file.
8557 * arm-nbsd-nat.c (arm_supply_gregset): Moved to arm-nbsd-tdep and
8558 renamed to arm_nbsd_supply_gregset.
8559 (fetch_register): Update to call arm_nbsd_supply_gregset.
8560 (fetch_regs): Remove in favor of fetch_register with a -1 regno.
8561 (arm_netbsd_nat_target::fetch_registers): Update.
8562 (fetch_elfcore_registers): Removed.
8563 (_initialize_arm_netbsd_nat): Removed call to deprecated_add_core_fns.
8564 * arm-nbsd-tdep.c (struct arm_nbsd_reg): New struct.
8565 (arm_nbsd_supply_gregset): Moved from arm-nbsd-nat.c and updated to
8566 not require NetBSD system headers.
8567 (arm_nbsd_regset): New struct.
8568 (arm_nbsd_iterate_over_regset_sections): New function.
8569 (arm_netbsd_init_abi_common): Updated to call
8570 set_gdbarch_iterate_over_regset_sections.
8571 * arm-nbsd-tdep.h: New file.
8572
dd69bf7a
KB
85732020-03-11 Kevin Buettner <kevinb@redhat.com>
8574
8575 * symtab.c (find_pc_sect_line): Add check which prevents infinite
8576 recursion.
8577
a0761e34
SM
85782020-03-11 Simon Marchi <simon.marchi@efficios.com>
8579
8580 * configure: Re-generate.
8581
e7a82140
TT
85822020-03-11 Tom Tromey <tromey@adacore.com>
8583
8584 * ada-typeprint.c (print_choices): Fix comment.
8585
dcc050c8
AB
85862020-03-11 Andrew Burgess <andrew.burgess@embecosm.com>
8587
8588 * buildsyms.c (buildsym_compunit::record_line): Avoid accessing
8589 previous item in the list, when the list has no items.
8590
1c33af77
TV
85912020-03-11 Tom de Vries <tdevries@suse.de>
8592
8593 * dwarf2/loc.c (dwarf2_evaluate_property): Handle NULL frame in
8594 PROP_LOCLIST handling code.
8595
8c95582d
AB
85962020-03-10 Andrew Burgess <andrew.burgess@embecosm.com>
8597
8598 * buildsym-legacy.c (record_line): Pass extra parameter to
8599 record_line.
8600 * buildsym.c (buildsym_compunit::record_line): Take an extra
8601 parameter, reduce duplication in the line table, and record the
8602 is_stmt flag in the line table.
8603 * buildsym.h (buildsym_compunit::record_line): Add extra
8604 parameter.
8605 * disasm.c (do_mixed_source_and_assembly_deprecated): Ignore
8606 non-statement lines.
8607 * dwarf2/read.c (dwarf_record_line_1): Add extra parameter, pass
8608 this to the symtab builder.
8609 (dwarf_finish_line): Pass extra parameter to dwarf_record_line_1.
8610 (lnp_state_machine::record_line): Pass a suitable is_stmt flag
8611 through to dwarf_record_line_1.
8612 * infrun.c (process_event_stop_test): When stepping, don't stop at
8613 a non-statement instruction, and only refresh the step info when
8614 we land in the middle of a line's range. Also add an extra
8615 comment.
8616 * jit.c (jit_symtab_line_mapping_add_impl): Initialise is_stmt
8617 field.
8618 * record-btrace.c (btrace_find_line_range): Only record lines
8619 marked as is-statement.
8620 * stack.c (frame_show_address): Show the frame address if we are
8621 in a non-statement sal.
8622 * symmisc.c (dump_symtab_1): Print the is_stmt flag.
8623 (maintenance_print_one_line_table): Print a header for the is_stmt
8624 column, and include is_stmt information in the output.
8625 * symtab.c (find_pc_sect_line): Find lines marked as statements in
8626 preference to non-statements.
8627 (find_pcs_for_symtab_line): Prefer is-statement entries.
8628 (find_line_common): Likewise.
8629 * symtab.h (struct linetable_entry): Add is_stmt field.
8630 (struct symtab_and_line): Likewise.
8631 * xcoffread.c (arrange_linetable): Initialise is_stmt field when
8632 arranging the line table.
8633
e4003a34
TV
86342020-03-07 Tom de Vries <tdevries@suse.de>
8635
8636 * dwarf2/read.c (read_typedef): Treat anonymous typedef as forwarder
8637 DIE.
8638
e8932576
TT
86392020-03-07 Tom Tromey <tom@tromey.com>
8640
8641 * valops.c (value_literal_complex): Remove obsolete comment.
8642 * gdbtypes.h (enum type_code) <TYPE_CODE_FLT>: Remove obsolete
8643 comment.
8644
29734269
SM
86452020-03-06 Simon Marchi <simon.marchi@polymtl.ca>
8646
8647 * infrun.h: Forward-declare thread_info.
8648 (set_step_info): Add thread_info parameter, add doc.
8649 * infrun.c (set_step_info): Add thread_info parameter, move doc
8650 to header.
8651 * infrun.c (process_event_stop_test): Pass thread to
8652 set_step_info call.
8653 * infcmd.c (set_step_frame): Add thread_info pointer, pass it to
8654 set_step_info.
8655 (prepare_one_step): Add thread_info parameter, pass it to
8656 set_step_frame and prepare_one_step (recursive) call.
8657 (step_1): Pass thread to prepare_one_step call.
8658 (step_command_fsm::should_stop): Pass thread to
8659 prepare_one_step.
8660 (until_next_fsm): Pass thread to set_step_frame call.
8661 (finish_command): Pass thread to set_step_info call.
8662
b7d64b29
HD
86632020-03-06 Hannes Domani <ssbssa@yahoo.de>
8664
8665 * windows-tdep.c (windows_solib_create_inferior_hook):
8666 Check if inferior is running.
8667
09f2921c
TV
86682020-03-06 Tom de Vries <tdevries@suse.de>
8669
8670 * NEWS: Fix "the the".
8671 * ctfread.c: Same.
8672
fd760e79
TV
86732020-03-06 Tom de Vries <tdevries@suse.de>
8674
8675 * psymtab.c (psymtab_to_symtab): Don't print "done.".
8676
20ea4a60
AB
86772020-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
8678
8679 * .dir-locals.el: Add a comment referencing the other copies of
8680 this file.
8681
0afbabf0
JB
86822020-03-05 John Baldwin <jhb@FreeBSD.org>
8683
8684 * fbsd-tdep.c (fbsd_make_corefile_notes): Use std::string for
8685 psargs.
8686
842806cb
TBA
86872020-03-05 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
8688
8689 * .gitattributes: New file.
8690
be1e3d3e
TT
86912020-03-04 Tom Tromey <tom@tromey.com>
8692
8693 * symmisc.c (print_symbol_bcache_statistics)
8694 (print_objfile_statistics): Update.
8695 * symfile.c (allocate_symtab): Use intern.
8696 * psymtab.c (partial_symtab::partial_symtab): Use intern.
8697 * objfiles.h (struct objfile_per_bfd_storage) <filename_cache,
8698 macro_cache>: Remove.
8699 <string_cache>: New member.
8700 (struct objfile) <intern>: New methods.
8701 * elfread.c (elf_symtab_read): Use intern.
8702 * dwarf2/read.c (fixup_go_packaging): Intern package name.
8703 (dwarf2_compute_name, dwarf2_physname)
8704 (create_dwo_unit_in_dwp_v1, create_dwo_unit_in_dwp_v2): Intern
8705 names.
8706 (guess_partial_die_structure_name): Update.
8707 (partial_die_info::fixup): Intern name.
8708 (dwarf2_canonicalize_name): Change parameter to objfile. Intern
8709 name.
8710 (dwarf2_name): Intern name. Update.
8711 * buildsym.c (buildsym_compunit::get_macro_table): Use
8712 string_cache.
8713
4e7625fd
TT
87142020-03-04 Tom Tromey <tom@tromey.com>
8715
8716 * jit.c (bfd_open_from_target_memory): Make "target" const.
8717 * corefile.c (gnutarget): Now const.
8718 * gdbcore.h (gnutarget): Now const.
8719
46f9f931
HD
87202020-03-04 Hannes Domani <ssbssa@yahoo.de>
8721
8722 * NEWS: Mention support for WOW64 processes.
8723 * amd64-windows-nat.c (amd64_mappings): Rename and remove static.
8724 (amd64_windows_segment_register_p): Remove static.
8725 (_initialize_amd64_windows_nat): Update.
8726 * configure.nat <windows> (NATDEPFILES): Add i386-windows-nat.o.
8727 * i386-windows-nat.c (context_offset): Update.
8728 (i386_mappings): Rename and remove static.
8729 (i386_windows_segment_register_p): Remove static.
8730 (_initialize_i386_windows_nat): Update.
8731 * windows-nat.c (STATUS_WX86_BREAKPOINT): New macro.
8732 (STATUS_WX86_SINGLE_STEP): New macro.
8733 (EnumProcessModulesEx): New macro.
8734 (Wow64SuspendThread): New macro.
8735 (Wow64GetThreadContext): New macro.
8736 (Wow64SetThreadContext): New macro.
8737 (Wow64GetThreadSelectorEntry): New macro.
8738 (windows_set_context_register_offsets): Add static.
8739 (windows_set_segment_register_p): Likewise.
8740 (windows_add_thread): Adapt for WOW64 processes.
8741 (windows_fetch_one_register): Likewise.
8742 (windows_nat_target::fetch_registers): Likewise.
8743 (windows_store_one_register): Likewise.
8744 (display_selector): Likewise.
8745 (display_selectors): Likewise.
8746 (handle_exception): Likewise.
8747 (windows_continue): Likewise.
8748 (windows_nat_target::resume): Likewise.
8749 (windows_add_all_dlls): Likewise.
8750 (do_initial_windows_stuff): Likewise.
8751 (windows_nat_target::attach): Likewise.
8752 (windows_get_exec_module_filename): Likewise.
8753 (windows_nat_target::create_inferior): Likewise.
8754 (windows_xfer_siginfo): Likewise.
8755 (_initialize_loadable): Initialize Wow64SuspendThread,
8756 Wow64GetThreadContext, Wow64SetThreadContext,
8757 Wow64GetThreadSelectorEntry and EnumProcessModulesEx.
8758 * windows-nat.h (windows_set_context_register_offsets):
8759 Remove declaration.
8760 (windows_set_segment_register_p): Likewise.
8761 (i386_windows_segment_register_p): Add declaration.
8762 (amd64_windows_segment_register_p): Likewise.
8763
440cf44e
LM
87642020-03-04 Luis Machado <luis.machado@linaro.org>
8765
8766 Revert aa66aac47b4dd38f9524ddb5546c08cc09930d37 due to regressions
8767 in "info registers" for AArch64/ARM.
8768
8769 The change caused "info registers" to not print GPR's.
8770
8771 gdb/ChangeLog:
8772
8773 2020-02-01 Shahab Vahedi <shahab@synopsys.com>
8774
8775 * target-descriptions.c (tdesc_register_in_reggroup_p): Return 0
8776 when reg->group is empty and reggroup is not.
8777
1009d92f
TT
87782020-03-03 Tom Tromey <tromey@adacore.com>
8779
8780 * dwarf2/frame.c (struct dwarf2_frame_cache)
8781 <checked_tailcall_bottom, entry_cfa_sp_offset,
8782 entry_cfa_sp_offset_p>: Remove members.
8783 (dwarf2_frame_cache): Call dwarf2_tailcall_sniffer_first.
8784 (dwarf2_frame_prev_register): Don't call
8785 dwarf2_tailcall_sniffer_first.
8786 (dwarf2_append_unwinders): Don't append tailcall unwinder.
8787 * frame-unwind.c (add_unwinder): New fuction.
8788 (frame_unwind_init): Use it. Add tailcall unwinder.
8789
5e5d66b6
AB
87902020-03-03 Andrew Burgess <andrew.burgess@embecosm.com>
8791 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
8792
8793 * f-valprint.c (f_val_print): Handle TYPE_CODE_BOOL, any non-zero
8794 value should be printed as true.
8795
584cf46d
HD
87962020-03-03 Hannes Domani <ssbssa@yahoo.de>
8797
8798 * windows-tdep.c (windows_solib_create_inferior_hook): New function.
8799 (windows_init_abi): Set and use windows_so_ops.
8800
7b973adc
SDJ
88012020-03-03 Sergio Durigan Junior <sergiodj@redhat.com>
8802
8803 * printcmd.c (print_c_string): Check also for TYPE_CODE_PTR
8804 when verifying if dealing with a convenience variable.
8805
bb7b70ab
LM
88062020-03-03 Luis Machado <luis.machado@linaro.org>
8807
8808 * auxv.c (default_print_auxv_entry): Add new AUXV entries.
8809
9822cb57
SM
88102020-03-02 Simon Marchi <simon.marchi@polymtl.ca>
8811
8812 * infrun.c (gdbarch_supports_displaced_stepping): New.
8813 (use_displaced_stepping): Break up conditions in smaller pieces.
8814 Use gdbarch_supports_displaced_stepping.
8815 (displaced_step_prepare_throw): Use
8816 gdbarch_supports_displaced_stepping.
8817
63e163f2
AB
88182020-03-02 Andrew Burgess <andrew.burgess@embecosm.com>
8819
8820 * NEWS: Mention new behaviour of the history filename.
8821 * top.c (write_history_p): Add comment.
8822 (show_write_history_p): Add header comment, give a different
8823 message when history writing is on, but the history filename is
8824 empty.
8825 (history_filename): Add comment.
8826 (history_filename_empty): New function.
8827 (show_history_filename): Add header comment, give a different
8828 message when the filename is empty.
8829 (init_history): Compare history_filename against nullptr, and only
8830 read history if the filename is not empty.
8831 (set_history_filename): Add header comment, and only make
8832 non-empty filenames absolute.
8833 (init_main): Make the filename argument to 'set history filename'
8834 optional.
8835
81b86b97
CB
88362020-03-02 Christian Biesinger <cbiesinger@google.com>
8837
8838 * arm-nbsd-nat.c (arm_supply_fparegset): Rename to...
8839 (arm_supply_vfpregset): ...this, and update to use VFP registers.
8840 (fetch_fp_register): Update.
8841 (fetch_fp_regs): Update.
8842 (store_fp_register): Update.
8843 (store_fp_regs): Update.
8844 (arm_netbsd_nat_target::read_description): New function.
8845 (fetch_elfcore_registers): Update.
8846
24ed6739
AB
88472020-03-02 Andrew Burgess <andrew.burgess@embecosm.com>
8848
8849 * remote.c (remote_target::remote_parse_stop_reply): Don't use the
8850 general_thread if the stop reply is missing a thread-id.
8851 (remote_target::process_stop_reply): Use the first non-exited
8852 thread if the target didn't pass a thread-id.
8853 * infrun.c (do_target_wait): Move call to
8854 switch_to_inferior_no_thread to ....
8855 (do_target_wait_1): ... here.
8856
a84bb2a0
JT
88572020-02-29 Jon Turney <jon.turney@dronecode.org.uk>
8858
8859 * debuginfod-support.c: Include defs.h first.
8860
658dadf0
TV
88612020-02-28 Tom de Vries <tdevries@suse.de>
8862
8863 * symfile.c (set_initial_language): Use default language for lookup.
8864
4ebe4877
SM
88652020-02-28 Simon Marchi <simon.marchi@efficios.com>
8866
8867 * dwarf2/read.c (cutu_reader::init_tu_and_read_dwo_dies): Remove
8868 reader variable, pass `this` to read_cutu_die_from_dwo.
8869
e5da1139
AM
88702020-02-27 Aaron Merey <amerey@redhat.com>
8871
8872 * source.c (open_source_file): Check for nullptr when computing
8873 srcpath.
8874
317f7127
TT
88752020-02-27 Tom Tromey <tromey@adacore.com>
8876
8877 * dwarf2/read.c (struct field_info) <nfields>: Now a method, not a
8878 member.
8879 (dwarf2_add_field): Don't update nfields.
8880 (dwarf2_attach_fields_to_type, process_structure_scope): Update.
8881
3104d9ee
AB
88822020-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
8883
8884 * gdbtypes.c (create_array_type_with_stride): Use std::abs not
8885 abs.
8886
b83470bf
TT
88872020-02-26 Tom Tromey <tom@tromey.com>
8888
8889 * dwarf2/read.c (struct dwarf2_include_psymtab): New.
8890 (dwarf2_create_include_psymtab): Use dwarf2_include_psymtab.
8891 (dwarf2_psymtab::expand_psymtab, dwarf2_psymtab::readin_p)
8892 (dwarf2_psymtab::get_compunit_symtab): Remove null checks for
8893 per_cu_data.
8894
edfe0a0c
TT
88952020-02-26 Tom Tromey <tom@tromey.com>
8896
8897 * dwarf2/index-write.c (psym_index_map): Change type.
8898 (add_address_entry_worker, write_one_signatured_type)
8899 (recursively_count_psymbols, recursively_write_psymbols)
8900 (class debug_names, psyms_seen_size, write_gdbindex)
8901 (write_debug_names): Use partial_symtab, not dwarf2_psymtab.
8902
0d79cdc4
AM
89032020-02-26 Aaron Merey <amerey@redhat.com>
8904
8905 * Makefile.in: Handle optional debuginfod support.
8906 * NEWS: Update.
8907 * README: Add --with-debuginfod summary.
8908 * config.in: Regenerate.
8909 * configure: Regenerate.
8910 * configure.ac: Handle optional debuginfod support.
8911 * debuginfod-support.c: debuginfod helper functions.
8912 * debuginfod-support.h: Ditto.
8913 * doc/gdb.texinfo: Add --with-debuginfod to configure options
8914 summary.
8915 * dwarf2/read.c (dwarf2_get_dwz_file): Query debuginfod servers
8916 when a dwz file cannot be found.
8917 * elfread.c (elf_symfile_read): Query debuginfod servers when a
8918 debuginfo file cannot be found.
8919 * source.c (open_source_file): Query debuginfod servers when a
8920 source file cannot be found.
8921 * top.c (print_gdb_configuration): Include
8922 --{with,without}-debuginfod in the output.
8923
b65ce565
JG
89242020-02-26 Jérémie Galarneau <jeremie.galarneau@efficios.com>
8925
8926 * thread.c (thr_try_catch_cmd): Print thread name.
8927
d4c9a4f8
SM
89282020-02-26 Simon Marchi <simon.marchi@efficios.com>
8929
8930 * dwarf2/loc.h (dwarf2_fetch_die_loc_sect_off,
8931 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
8932 dwarf2_fetch_die_type_sect_off): Move to...
8933 * dwarf2/read.h (dwarf2_fetch_die_loc_sect_off,
8934 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
8935 dwarf2_fetch_die_type_sect_off): ... here.
8936 * dwarf2/read.c (dwarf2_fetch_die_loc_sect_off,
8937 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
8938 dwarf2_fetch_die_type_sect_off): Move doc to header file.
8939
0dce4280
TV
89402020-02-26 Tom de Vries <tdevries@suse.de>
8941
8942 PR gdb/25603
8943 * symfile.c (set_initial_language): Exit-early if
8944 language_mode == language_mode_manual.
8945
450a1bfc
SM
89462020-02-25 Simon Marchi <simon.marchi@polymtl.ca>
8947
8948 * dwarf2/loc.h (dwarf2_read_addr_index): Move...
8949 * dwarf2/read.h (dwarf2_read_addr_index): ... here.
8950 * dwarf2/read.c (dwarf2_read_addr_index): Move doc to header.
8951
9e80cfa1
AB
89522020-02-25 Andrew Burgess <andrew.burgess@embecosm.com>
8953
8954 * gdbtypes.c (create_array_type_with_stride): Handle negative
8955 array strides.
8956 * valarith.c (value_subscripted_rvalue): Likewise.
8957
09624f1f
LM
89582020-02-25 Luis Machado <luis.machado@linaro.org>
8959
8960 * aarch64-tdep.c (aarch64_vnv_type): Fix comment typo.
8961
8cb5117c
SM
89622020-02-25 Simon Marchi <simon.marchi@polymtl.ca>
8963
8964 * loc.h (dwarf2_get_die_type): Move to...
8965 * read.h (dwarf2_get_die_type): ... here.
8966 * read.c (dwarf2_get_die_type): Move doc to header.
8967
c325c44e
JB
89682020-02-25 Joel Brobecker <brobecker@adacore.com>
8969
8970 * copypright.py (EXCLUDE_LIST): Add 'gnulib/config.in' and
8971 'gnulib/Makefile.in' to the list.
8972
4ac93832
TT
89732020-02-24 Tom Tromey <tom@tromey.com>
8974
8975 * dwarf2/read.h (struct type_unit_unshareable) <num_symtabs>:
8976 Remove.
8977 * dwarf2/read.c (dwarf2_cu::setup_type_unit_groups): Use
8978 XOBNEWVEC.
8979
197400e8
TT
89802020-02-24 Tom Tromey <tom@tromey.com>
8981
8982 * dwarf2/read.h (struct dwarf2_per_cu_data) <type_unit_group_p>:
8983 New method.
8984 * dwarf2/read.c (IS_TYPE_UNIT_GROUP): Remove.
8985 (dw2_do_instantiate_symtab, dw2_get_file_names)
8986 (build_type_psymtab_dependencies, load_full_type_unit): Update.
8987
76935768
TT
89882020-02-24 Tom Tromey <tom@tromey.com>
8989
8990 * dwarf2read.c (dwarf2_build_psymtabs_hard): Use
8991 make_scoped_restore.
8992 (dwarf2_psymtab::read_symtab): Don't clear
8993 reading_partial_symbols.
8994
a88ef40d
TV
89952020-02-24 Tom de Vries <tdevries@suse.de>
8996
8997 PR gdb/25592
8998 * stack.c (iterate_over_block_locals): Handle LOC_CONST.
8999
c9af6521
TV
90002020-02-24 Tom de Vries <tdevries@suse.de>
9001
9002 * tui/tui-layout.c (_initialize_tui_layout): Fix help messages for
9003 commands layout next/prev/regs.
9004
5707a07a
TT
90052020-02-22 Tom Tromey <tom@tromey.com>
9006
9007 * dwarf2/loc.h (dwarf2_compile_expr_to_ax): Don't declare.
9008 * dwarf2/loc.c (dwarf2_compile_expr_to_ax): Now static.
9009
3b0fb49e
TT
90102020-02-22 Tom Tromey <tom@tromey.com>
9011
9012 * tui/tui-data.h (TUI_DISASM_WIN): Cast to tui_disasm_window.
9013
283be8bf
TT
90142020-02-22 Tom Tromey <tom@tromey.com>
9015
9016 * tui/tui-win.c (_initialize_tui_win): Add usage text.
9017 * tui/tui-stack.c (_initialize_tui_stack): Add usage text.
9018 * tui/tui-regs.c (_initialize_tui_regs): Add usage text.
9019 * tui/tui.c (_initialize_tui): Add usage text.
9020
ca793b96
TT
90212020-02-22 Tom Tromey <tom@tromey.com>
9022
9023 * tui/tui-win.c (tui_set_focus_command)
9024 (tui_set_win_height_command): Use error_no_arg.
9025 (_initialize_tui_win): Update help text.
9026 (FOCUS_USAGE, WIN_HEIGHT_USAGE): Don't define.
9027
432b5c40
TT
90282020-02-22 Tom Tromey <tom@tromey.com>
9029
9030 * tui/tui-layout.c (extract_display_start_addr): Rewrite.
9031 * tui/tui-disasm.h (struct tui_disasm_window)
9032 <display_start_addr>: Declare.
9033 * tui/tui-source.h (struct tui_source_window)
9034 <display_start_addr>: Declare.
9035 * tui/tui-winsource.h (struct tui_source_window_base)
9036 <show_source_line, display_start_addr>: New methods.
9037 <m_horizontal_offset, m_start_line_or_addr, m_gdbarch, m_content>:
9038 Rename and move to protected section.
9039 * tui/tui-winsource.c (tui_source_window_base::update_source_window)
9040 (tui_source_window_base::do_erase_source_content): Update.
9041 (tui_source_window_base::show_source_line): Now a method.
9042 (tui_source_window_base::show_source_content)
9043 (tui_source_window_base::tui_source_window_base)
9044 (tui_source_window_base::rerender)
9045 (tui_source_window_base::refill)
9046 (tui_source_window_base::do_scroll_horizontal)
9047 (tui_source_window_base::set_is_exec_point_at)
9048 (tui_source_window_base::update_breakpoint_info)
9049 (tui_source_window_base::update_exec_info): Update.
9050 * tui/tui-source.c (tui_source_window::set_contents)
9051 (tui_source_window::showing_source_p)
9052 (tui_source_window::do_scroll_vertical)
9053 (tui_source_window::location_matches_p)
9054 (tui_source_window::line_is_displayed): Update.
9055 (tui_source_window::display_start_addr): New method.
9056 * tui/tui-disasm.c (tui_disasm_window::set_contents)
9057 (tui_disasm_window::do_scroll_vertical)
9058 (tui_disasm_window::location_matches_p): Update.
9059 (tui_disasm_window::display_start_addr): New method.
9060
01b1af32
TT
90612020-02-22 Tom Tromey <tom@tromey.com>
9062
9063 * NEWS: Add entry for gdb.register_window_type.
9064 * tui/tui-layout.h (window_factory): New typedef.
9065 (tui_register_window): Declare.
9066 * tui/tui-layout.c (saved_tui_windows): New global.
9067 (tui_apply_current_layout): Use it.
9068 (tui_register_window): New function.
9069 * python/python.c (do_start_initialization): Call
9070 gdbpy_initialize_tui.
9071 (python_GdbMethods): Add "register_window_type" function.
9072 * python/python-internal.h (gdbpy_register_tui_window)
9073 (gdbpy_initialize_tui): Declare.
9074 * python/py-tui.c: New file.
9075 * Makefile.in (SUBDIR_PYTHON_SRCS): Add py-tui.c.
9076
fc96d20b
TT
90772020-02-22 Tom Tromey <tom@tromey.com>
9078
9079 * tui/tui-io.c (do_tui_putc): Don't omit annotations.
9080
935c78c0
TT
90812020-02-22 Tom Tromey <tom@tromey.com>
9082
9083 * tui/tui-win.c (tui_set_win_focus_to): Move to tui-data.c.
9084 * tui/tui-data.h (tui_set_win_with_focus): Don't declare.
9085 * tui/tui-data.c (tui_set_win_with_focus): Remove.
9086 (tui_set_win_focus_to): Move from tui-win.c.
9087
0240c8f1
TT
90882020-02-22 Tom Tromey <tom@tromey.com>
9089
9090 * tui/tui-layout.c (make_standard_window, get_locator_window): New
9091 functions.
9092 (known_window_types): New global.
9093 (tui_get_window_by_name): Reimplement.
9094 (initialize_known_windows): New function.
9095 (validate_window_name): Rewrite.
9096 (_initialize_tui_layout): Call initialize_known_windows.
9097
fdb01f0c
TT
90982020-02-22 Tom Tromey <tom@tromey.com>
9099
9100 * tui/tui.h (enum tui_win_type) <LOCATOR_WIN, DATA_ITEM_WIN>:
9101 Remove constants.
9102 * tui/tui-winsource.h (struct tui_source_window_base)
9103 <tui_source_window_base>: Remove parameter.
9104 * tui/tui-winsource.c
9105 (tui_source_window_base::tui_source_window_base): Remove
9106 parameter.
9107 (tui_source_window_base::refill): Update.
9108 * tui/tui-stack.h (struct tui_locator_window)
9109 <tui_locator_window>: Update.
9110 * tui/tui-source.h (struct tui_source_window) <tui_source_window>:
9111 Default the constructor.
9112 * tui/tui-regs.h (struct tui_data_item_window)
9113 <tui_data_item_window>: Default the constructor.
9114 (struct tui_data_window) <tui_data_window>: Likewise.
9115 * tui/tui-disasm.h (struct tui_disasm_window) <tui_disasm_window>:
9116 Default the constructor.
9117 * tui/tui-data.h (struct tui_gen_win_info) <tui_gen_win_info>:
9118 Default the constructor.
9119 <type>: Remove.
9120 (struct tui_win_info) <tui_win_info>: Default the constructor.
9121 * tui/tui-data.c (tui_win_info::tui_win_info): Remove.
9122 * tui/tui-command.h (struct tui_cmd_window) <tui_cmd_window>:
9123 Default the constructor.
9124
865a5aec
TT
91252020-02-22 Tom Tromey <tom@tromey.com>
9126
9127 * tui/tui-wingeneral.h (tui_make_all_invisible): Don't declare.
9128 * tui/tui-wingeneral.c (tui_make_all_invisible): Remove.
9129 * tui/tui-win.c (tui_resize_all): Don't call
9130 tui_delete_invisible_windows.
9131 * tui/tui-layout.c (tui_apply_current_layout): Delete windows when
9132 done.
9133 (tui_set_layout): Update.
9134 (tui_add_win_to_layout): Don't call tui_delete_invisible_windows.
9135 * tui/tui-data.h (tui_delete_invisible_windows): Don't declare.
9136 * tui/tui-data.c (tui_delete_invisible_windows): Remove.
9137
e098d18c
TT
91382020-02-22 Tom Tromey <tom@tromey.com>
9139
9140 * tui/tui-win.c (tui_partial_win_by_name): Handle ambiguity
9141 correctly.
9142
eb9c8874
TT
91432020-02-22 Tom Tromey <tom@tromey.com>
9144
9145 * tui/tui-data.c (tui_next_win, tui_prev_win): Reimplement.
9146
7eed1a8e
TT
91472020-02-22 Tom Tromey <tom@tromey.com>
9148
9149 * tui/tui-winsource.h (struct tui_source_window_iterator)
9150 <inner_iterator>: New etytypedef.
9151 <tui_source_window_iterator>: Take "end" parameter.
9152 <tui_source_window_iterator>: Take iterator.
9153 <operator*, advance>: Update.
9154 <m_iter>: Change type.
9155 <m_end>: New field.
9156 (struct tui_source_windows) <begin, end>: Update.
9157 * tui/tui-layout.c (tui_windows): New global.
9158 (tui_apply_current_layout): Clear tui_windows.
9159 (tui_layout_window::apply): Update tui_windows.
9160 * tui/tui-data.h (tui_windows): Declare.
9161 (all_tui_windows): Now inline function.
9162 (class tui_window_iterator, struct all_tui_windows): Remove.
9163
7c043ba6
TT
91642020-02-22 Tom Tromey <tom@tromey.com>
9165
9166 PR tui/17850:
9167 * tui/tui-win.c (tui_gen_win_info::max_width): New method.
9168 * tui/tui-layout.h (class tui_layout_base) <get_sizes>: Add
9169 "height" argument.
9170 (class tui_layout_window) <get_sizes>: Likewise.
9171 (class tui_layout_split) <tui_layout_split>: Add "vertical"
9172 argument.
9173 <get_sizes>: Add "height" argument.
9174 <m_vertical>: New field.
9175 * tui/tui-layout.c (tui_layout_split::clone): Update.
9176 (tui_layout_split::get_sizes): Add "height" argument.
9177 (tui_layout_split::adjust_size, tui_layout_split::apply): Update.
9178 (tui_new_layout_command): Parse "-horizontal".
9179 (_initialize_tui_layout): Update help string.
9180 (tui_layout_split::specification): Add "-horizontal" when needed.
9181 * tui/tui-layout.c (tui_layout_window::get_sizes): Add "height"
9182 argument.
9183 * tui/tui-data.h (struct tui_gen_win_info) <max_width, min_width>:
9184 New methods.
9185
6bc56648
TT
91862020-02-22 Tom Tromey <tom@tromey.com>
9187
9188 * tui/tui-layout.h (enum tui_adjust_result): New.
9189 (class tui_layout_base) <adjust_size>: Return tui_adjust_result.
9190 (class tui_layout_window) <adjust_size>: Return
9191 tui_adjust_result. Rewrite.
9192 (class tui_layout_split) <adjust_size>: Return tui_adjust_result.
9193 * tui/tui-layout.c (tui_layout_split::adjust_size): Update.
9194
c22fef7e
TT
91952020-02-22 Tom Tromey <tom@tromey.com>
9196
9197 * tui/tui-layout.h (class tui_layout_split) <add_split>: Change
9198 parameter and return types.
9199 (class tui_layout_base) <specification>: Add "depth".
9200 (class tui_layout_window) <specification>: Add "depth".
9201 (class tui_layout_split) <specification>: Add "depth".
9202 * tui/tui-layout.c (tui_layout_split::add_split): Change parameter
9203 and return types.
9204 (tui_new_layout_command): Parse sub-layouts.
9205 (_initialize_tui_layout): Update help string.
9206 (tui_layout_window::specification): Add "depth".
9207 (add_layout_command): Update.
9208
ee325b61
TT
92092020-02-22 Tom Tromey <tom@tromey.com>
9210
9211 * NEWS: Add "tui new-layout" item.
9212 * tui/tui-layout.c (add_layout_command): Return cmd_list_element.
9213 Add new-layout command to help text.
9214 (validate_window_name): New function.
9215 (tui_new_layout_command): New function.
9216 (_initialize_tui_layout): Register "new-layout".
9217 (tui_layout_window::specification): New method.
9218 (tui_layout_window::specification): New method.
9219 * tui/tui-layout.h (class tui_layout_base) <specification>: New
9220 method.
9221 (class tui_layout_window) <specification>: New method.
9222 (class tui_layout_split) <specification>: New method.
9223
416eb92d
TT
92242020-02-22 Tom Tromey <tom@tromey.com>
9225
9226 * tui/tui.c (tui_enable): Call tui_set_initial_layout.
9227 * tui/tui-win.c (window_name_completer): Update comment.
9228 * tui/tui-layout.h (class tui_layout_base) <replace_window>:
9229 Declare method.
9230 (class tui_layout_window) <replace_window>: Likewise.
9231 (class tui_layout_split) <replace_window>: Likewise.
9232 (tui_set_layout): Don't declare.
9233 (tui_set_initial_layout): Declare function.
9234 * tui/tui-layout.c (layouts, applied_skeleton, src_regs_layout)
9235 (asm_regs_layout): New globals.
9236 (tui_current_layout, show_layout): Remove.
9237 (tui_set_layout, tui_add_win_to_layout): Rewrite.
9238 (find_layout, tui_apply_layout): New function.
9239 (layout_completer): Remove.
9240 (tui_next_layout): Reimplement.
9241 (tui_next_layout_command): New function.
9242 (tui_set_initial_layout, tui_prev_layout_command): New functions.
9243 (tui_regs_layout): Reimplement.
9244 (tui_regs_layout_command): New function.
9245 (extract_display_start_addr): Rewrite.
9246 (next_layout, prev_layout): Remove.
9247 (tui_layout_window::replace_window): New method.
9248 (tui_layout_split::replace_window): New method.
9249 (destroy_layout): New function.
9250 (layout_list): New global.
9251 (add_layout_command): New function.
9252 (initialize_layouts): Update.
9253 (tui_layout_command): New function.
9254 (_initialize_tui_layout): Install "layout" commands.
9255 * tui/tui-data.h (enum tui_layout_type): Remove.
9256 (tui_current_layout): Don't declare.
9257
0dbc2fc7
TT
92582020-02-22 Tom Tromey <tom@tromey.com>
9259
9260 * tui/tui-regs.c (tui_reg_layout): Remove.
9261 (tui_reg_command): Use tui_regs_layout.
9262 * tui/tui-layout.h (tui_reg_command): Declare.
9263 * tui/tui-layout.c (tui_reg_command): New function.
9264
5afe342e
TT
92652020-02-22 Tom Tromey <tom@tromey.com>
9266
9267 * tui/tui.c (tui_rl_delete_other_windows): Call
9268 tui_remove_some_windows.
9269 * tui/tui-layout.h (class tui_layout_base) <remove_windows>:
9270 Declare method.
9271 (class tui_layout_window) <remove_windows>: New method.
9272 (class tui_layout_split) <remove_windows>: Declare.
9273 (tui_remove_some_windows): Declare.
9274 * tui/tui-layout.c (tui_remove_some_windows): New function.
9275 (tui_layout_split::remove_windows): New method.
9276
427326a8
TT
92772020-02-22 Tom Tromey <tom@tromey.com>
9278
9279 * tui/tui.c (tui_rl_change_windows): Call tui_next_layout.
9280 * tui/tui-layout.h (tui_next_layout): Declare.
9281 * tui/tui-layout.c (tui_next_layout): New function.
9282
3fe12b6d
TT
92832020-02-22 Tom Tromey <tom@tromey.com>
9284
9285 * tui/tui-regs.c (tui_data_window::display_registers_from): Use
9286 correct coordinates.
9287
59b8b5d2
TT
92882020-02-22 Tom Tromey <tom@tromey.com>
9289
9290 * tui/tui-layout.h (tui_add_win_to_layout): Add comment.
9291 * tui/tui-layout.c (tui_add_win_to_layout): Add assert. Remove
9292 DATA_WIN case.
9293
2a3d458b
TT
92942020-02-22 Tom Tromey <tom@tromey.com>
9295
9296 * tui/tui-disasm.c (tui_get_low_disassembly_address): Use
9297 TUI_DISASM_WIN, not tui_win_list.
9298
3f0cbb04
TT
92992020-02-22 Tom Tromey <tom@tromey.com>
9300
9301 * valprint.c (generic_val_print_enum_1)
9302 (val_print_type_code_flags): Style member names.
9303 * rust-lang.c (val_print_struct, rust_print_enum)
9304 (rust_print_struct_def, rust_internal_print_type): Style member
9305 names.
9306 * p-valprint.c (pascal_object_print_value_fields): Style member
9307 names. Only call fprintf_symbol_filtered for static members.
9308 * m2-typeprint.c (m2_record_fields, m2_enum): Style member names.
9309 * f-valprint.c (f_val_print): Style member names.
9310 * f-typeprint.c (f_type_print_base): Style member names.
9311 * cp-valprint.c (cp_print_value_fields): Style member names. Only
9312 call fprintf_symbol_filtered for static members.
9313 (cp_print_class_member): Style member names.
9314 * c-typeprint.c (c_print_type_1, c_type_print_base_1): Style
9315 member names.
9316 * ada-valprint.c (ada_print_scalar): Style enum names.
9317 (ada_val_print_enum): Likewise.
9318 * ada-typeprint.c (print_enum_type): Style enum names.
9319
d4d947ae
TT
93202020-02-21 Tom Tromey <tom@tromey.com>
9321
9322 * psympriv.h (struct partial_symtab): Update comment.
9323
e94e944b
TT
93242020-02-21 Tom Tromey <tromey@adacore.com>
9325
9326 * mips-tdep.h (mips_pc_is_mips16, mips_pc_is_micromips): Parameter
9327 type is CORE_ADDR.
9328
1eb73179
TV
93292020-02-21 Tom de Vries <tdevries@suse.de>
9330
9331 PR gdb/25534
9332 * psymtab.c (partial_symtab::read_dependencies): Don't read dependency
9333 if dependencies[i]->user != NULL.
9334
4f180d53
AT
93352020-02-21 Ali Tamur <tamur@google.com>
9336
9337 * dwarf2/read.c (dwarf2_name): Add null check.
9338
22b6cd70
TT
93392020-02-20 Tom Tromey <tom@tromey.com>
9340
9341 * dwarf2/read.c (dwarf2_find_containing_comp_unit): Use ">", not
9342 ">=", in binary search.
9343 (dwarf2_find_containing_comp_unit): New overload.
9344 (run_test): New self-test.
9345 (_initialize_dwarf2_read): Register new test.
9346
bd0cf5a6
NC
93472020-02-20 Nelson Chu <nelson.chu@sifive.com>
9348
9349 * riscv-tdep.c: Updated since the DECLARE_CSR is changed.
9350 * riscv-tdep.h: Likewise.
9351 * features/riscv/rebuild-csr-xml.sh: Generate the 64bit-csr.xml without
9352 rv32-only CSR.
9353 * features/riscv/64bit-csr.xml: Regenerated.
9354
3f702acd
SDJ
93552020-02-20 Sergio Durigan Junior <sergiodj@redhat.com>
9356 Tom Tromey <tom@tromey.com>
9357
9358 * utils.c (fputs_maybe_filtered): Call 'stream->puts' instead
9359 of 'fputc_unfiltered'.
9360 (putchar_unfiltered): Call 'fputc_unfiltered'.
9361 (fputc_unfiltered): Call 'fputs_unfiltered'.
9362
d13c7322
AB
93632020-02-20 Andrew Burgess <andrew.burgess@embecosm.com>
9364
9365 * config.in: Regenerate.
9366 * configure: Regenerate.
9367 * configure.ac: Add --with-python-libdir option.
9368 * main.c: Use WITH_PYTHON_LIBDIR.
9369
869d8950
TT
93702020-02-19 Tom Tromey <tom@tromey.com>
9371
9372 * symtab.c (general_symbol_info::compute_and_set_names): Use
9373 obstack_strndup. Simplify call to symbol_set_demangled_name.
9374
298e9637
SM
93752020-02-19 Simon Marchi <simon.marchi@efficios.com>
9376
9377 * dwarf2/read.c (allocate_signatured_type_table,
9378 allocate_dwo_unit_table, allocate_type_unit_groups_table,
9379 allocate_dwo_file_hash_table, allocate_dwp_loaded_cutus_table):
9380 Remove objfile parameter, update all callers.
9381
08410482
DE
93822020-02-19 Doug Evans <dje@google.com>
9383
9384 PR rust/25535
9385 * rust-lang.c (rust_print_enum): Apply embedded_offset to
9386 rust_enum_variant calculation.
9387
dfdeeca1
TT
93882020-02-19 Tom Tromey <tromey@adacore.com>
9389
9390 * mips-tdep.h (mips_pc_is_mips): Parameter type is CORE_ADDR.
9391
2ef5453b
TT
93922020-02-19 Tom Tromey <tromey@adacore.com>
9393
9394 * ada-lang.c (cache_symbol): Use obstack_strdup.
9395
9f1528a1
AB
93962020-02-19 Andrew Burgess <andrew.burgess@embecosm.com>
9397
9398 * configure: Regenerate.
9399
d3c22fa8
TT
94002020-02-19 Tom Tromey <tromey@adacore.com>
9401
9402 * python/python.c (do_start_initialization): Use XNEWVEC. Remove
9403 NULL check.
9404
bf84f706
MR
94052020-02-19 Maciej W. Rozycki <macro@wdc.com>
9406
9407 * NEWS: Mention RISC-V GNU/Linux GDBserver support.
9408
d1c9b20f
AB
94092020-02-19 Andrew Burgess <andrew.burgess@embecosm.com>
9410
9411 * arch/riscv.c (struct riscv_gdbarch_features_hasher): Only define
9412 if GDBSERVER is not defined.
9413 (riscv_tdesc_cache): Likewise, also store const target_desc.
9414 (STATIC_IN_GDB): Define.
9415 (riscv_create_target_description): Update declaration with
9416 STATIC_IN_GDB.
9417 (riscv_lookup_target_description): New function, only define if
9418 GDBSERVER is not defined.
9419 * arch/riscv.h (riscv_create_target_description): Declare only
9420 when GDBSERVER is defined.
9421 (riscv_lookup_target_description): New declaration when GDBSERVER
9422 is not defined.
9423 * nat/riscv-linux-tdesc.c (riscv_linux_read_description): Rename to...
9424 (riscv_linux_read_features): ...this, and return
9425 riscv_gdbarch_features instead of target_desc.
9426 * nat/riscv-linux-tdesc.h: Include 'arch/riscv.h'.
9427 (riscv_linux_read_description): Rename to...
9428 (riscv_linux_read_features): ...this.
9429 * riscv-linux-nat.c (riscv_linux_nat_target::read_description):
9430 Update to use riscv_gdbarch_features and
9431 riscv_lookup_target_description.
9432 * riscv-tdep.c (riscv_find_default_target_description): Use
9433 riscv_lookup_target_description instead of
9434 riscv_create_target_description.
9435
373d7ac0
SM
94362020-02-18 Simon Marchi <simon.marchi@efficios.com>
9437
9438 * valprint.c (generic_val_print_enum_1): When printing a flag
9439 enum with value 0 and there is no enumerator with value 0, print
9440 just "0" instead of "(unknown: 0x0)".
9441
b29a2df0
SM
94422020-02-18 Simon Marchi <simon.marchi@efficios.com>
9443
9444 * valprint.c (generic_val_print_enum_1): Print unknown part of
9445 flag enum in hex.
9446
6740f0cc
SM
94472020-02-18 Simon Marchi <simon.marchi@efficios.com>
9448
9449 * dwarf2/read.c (update_enumeration_type_from_children): Allow
9450 flag enums to contain duplicate enumerators.
9451 * valprint.c (generic_val_print_enum_1): Update comment.
9452
edd45eb0
SM
94532020-02-18 Simon Marchi <simon.marchi@efficios.com>
9454
9455 * dwarf2/read.c: Include "count-one-bits.h".
9456 (update_enumeration_type_from_children): If an enumerator has
9457 multiple bits set, don't treat the enumeration as a "flag enum".
9458 * valprint.c (generic_val_print_enum_1): Assert that enumerators
9459 of flag enums have 0 or 1 bit set.
9460
6d0cf446
BE
94612020-02-18 Bernd Edlinger <bernd.edlinger@hotmail.de>
9462
9463 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Use an explicit
9464 conversion.
9465 * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise.
9466 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn): Likewise.
9467 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
9468 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Likewise.
9469 * s390-tdep.c (s390_displaced_step_copy_insn): Likewise.
9470
7001c1b7
SM
94712020-02-18 Simon Marchi <simon.marchi@efficios.com>
9472
9473 * MAINTAINERS: Change palmer@sifive.com to palmer@dabbelt.com.
9474
fdb61c6c
SM
94752020-02-14 Simon Marchi <simon.marchi@efficios.com>
9476
9477 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Use
9478 displaced_step_closure_up.
9479 * aarch64-tdep.h (aarch64_displaced_step_copy_insn): Likewise.
9480 (struct displaced_step_closure_up):
9481 * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise.
9482 * amd64-tdep.h (amd64_displaced_step_copy_insn): Likewise.
9483 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn):
9484 Likewise.
9485 * gdbarch.sh (displaced_step_copy_insn): Likewise.
9486 * gdbarch.c, gdbarch.h: Re-generate.
9487 * i386-linux-tdep.c (i386_linux_displaced_step_copy_insn): Use
9488 displaced_step_closure_up.
9489 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
9490 * i386-tdep.h (i386_displaced_step_copy_insn): Likewise.
9491 * infrun.h (displaced_step_closure_up): New type alias.
9492 (struct displaced_step_inferior_state) <step_closure>: Change
9493 type to displaced_step_closure_up.
9494 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Use
9495 displaced_step_closure_up.
9496 * s390-tdep.c (s390_displaced_step_copy_insn): Likewise.
9497
a4a38eb4
TT
94982020-02-14 Tom Tromey <tom@tromey.com>
9499
9500 * minidebug.c (gnu_debug_key): New global.
9501 (find_separate_debug_file_in_section): Use it.
9502
e8217e61
SM
95032020-02-14 Simon Marchi <simon.marchi@efficios.com>
9504
9505 * gdbarch.sh (displaced_step_copy_insn): Change return type to an
9506 std::unique_ptr.
9507 * gdbarch.c: Re-generate.
9508 * gdbarch.h: Re-generate.
9509 * infrun.c (displaced_step_prepare_throw): Adjust to std::unique_ptr
9510 change.
9511 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Change return
9512 type to std::unique_ptr.
9513 * aarch64-tdep.h (aarch64_displaced_step_copy_insn): Likewise.
9514 * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise.
9515 * amd64-tdep.h (amd64_displaced_step_copy_insn): Likewise.
9516 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn): Likewise.
9517 * i386-linux-tdep.c (i386_linux_displaced_step_copy_insn): Likewise.
9518 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
9519 * i386-tdep.h (i386_displaced_step_copy_insn): Likewise.
9520 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Likewise.
9521 * s390-tdep.c (s390_displaced_step_copy_insn): Likewise.
9522
d8d83535
SM
95232020-02-14 Simon Marchi <simon.marchi@efficios.com>
9524
9525 * infrun.c (get_displaced_step_closure_by_addr): Adjust to
9526 std::unique_ptr.
9527 (displaced_step_clear): Rename to...
9528 (displaced_step_reset): ... this. Just call displaced->reset ().
9529 (displaced_step_clear_cleanup): Rename to...
9530 (displaced_step_reset_cleanup): ... this.
9531 (displaced_step_prepare_throw): Adjust to std::unique_ptr.
9532 (displaced_step_fixup): Likewise.
9533 (resume_1): Likewise.
9534 (handle_inferior_event): Restore child's memory before calling
9535 displaced_step_fixup on the parent.
9536 * infrun.h (displaced_step_inferior_state) <reset>: Adjust
9537 to std::unique_ptr.
9538 <step_closure>: Change type to std::unique_ptr.
9539
5f661e03
SM
95402020-02-14 Simon Marchi <simon.marchi@efficios.com>
9541
9542 * arm-tdep.c: Include count-one-bits.h.
9543 (cleanup_block_store_pc): Use count_one_bits.
9544 (cleanup_block_load_pc): Use count_one_bits.
9545 (arm_copy_block_xfer): Use count_one_bits.
9546 (thumb2_copy_block_xfer): Use count_one_bits.
9547 (thumb_copy_pop_pc_16bit): Use count_one_bits.
9548 * arch/arm-get-next-pcs.c: Include count-one-bits.h.
9549 (thumb_get_next_pcs_raw): Use count_one_bits.
9550 (arm_get_next_pcs_raw): Use count_one_bits_l.
9551 * arch/arm.c (bitcount): Remove.
9552 * arch/arm.h (bitcount): Remove.
9553
8084e579
TT
95542020-02-14 Tom Tromey <tromey@adacore.com>
9555
9556 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first):
9557 Update.
9558 * dwarf2/loc.h (call_site_find_chain): Return unique_xmalloc_ptr.
9559 * dwarf2/loc.c (call_site_find_chain_1): Return
9560 unique_xmalloc_ptr.
9561 (call_site_find_chain): Likewise.
9562
258bf0ee
RB
95632020-02-14 Richard Biener <rguenther@suse.de>
9564
9565 * dwarf2/read.c (lnp_state_machine::handle_special_opcode): Apply CSE
9566 on expression with division operators.
9567
f98a8458
AKS
95682020-02-13 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
9569
9570 * MAINTAINERS (Write After Approval): Adding myself.
9571
d1437c0e
TT
95722020-02-12 Tom Tromey <tom@tromey.com>
9573
9574 * event-loop.c (event_data, gdb_event, event_handler_func):
9575 Remove.
9576
3d4560f7
TT
95772020-02-12 Tom Tromey <tom@tromey.com>
9578
9579 * dwarf2/frame.c (dwarf2_frame_bfd_data): New global.
9580 (dwarf2_frame_objfile_data): Add comment.
9581 (find_comp_unit, set_comp_unit): New functions.
9582 (dwarf2_frame_find_fde): Use find_comp_unit.
9583 (dwarf2_build_frame_info): Use set_comp_unit.
9584
21982304
TT
95852020-02-12 Tom Tromey <tom@tromey.com>
9586
9587 * dwarf2/frame.c (struct comp_unit) <objfile>: Remove.
9588 (comp_unit): Don't initialize objfile.
9589 (execute_cfa_program): Add text_offset parameter.
9590 (execute_cfa_program_test, dwarf2_fetch_cfa_info)
9591 (dwarf2_frame_cache): Update.
9592 (dwarf2_build_frame_info): Don't set "objfile" member.
9593
4debb237
TT
95942020-02-12 Tom Tromey <tom@tromey.com>
9595
9596 * dwarf2/frame.c (decode_frame_entry_1): Add gdbarch parameter.
9597 (decode_frame_entry): Likewise.
9598 (dwarf2_build_frame_info): Update.
9599
0d404d44
TT
96002020-02-12 Tom Tromey <tom@tromey.com>
9601
9602 * dwarf2/frame.c (struct comp_unit) <obstack>: New member.
9603 (decode_frame_entry_1): Use the comp_unit obstack.
9604
a7a3ae5c
TT
96052020-02-12 Tom Tromey <tom@tromey.com>
9606
9607 * dwarf2/frame.c (struct comp_unit): Add initializers and
9608 constructor.
9609 (dwarf2_frame_objfile_data): Store a comp_unit.
9610 (dwarf2_frame_find_fde): Update.
9611 (dwarf2_build_frame_info): Use "new".
9612
a9d65418
TT
96132020-02-12 Tom Tromey <tom@tromey.com>
9614
9615 * dwarf2/frame.c (struct dwarf2_fde_table): Remove.
9616 (dwarf2_fde_table): Typedef for std::vector.
9617 (dwarf2_frame_objfile_data): Remove the deleter. Now static.
9618 (dwarf2_frame_find_fde, add_fde, decode_frame_entry_1)
9619 (decode_frame_entry): Update.
9620 (dwarf2_build_frame_info): Use "new".
9621
7559c217
CB
96222020-02-12 Christian Biesinger <cbiesinger@google.com>
9623
9624 * arm-tdep.c (arm_gdbarch_init): Update.
9625 * arm-tdep.h (struct gdbarch_tdep) <have_fpa_registers,
9626 have_wmmx_registers, have_vfp_pseudos, have_neon_pseudos,
9627 have_neon, is_m>: Change to bool.
9628
aeefc73c
CB
96292020-02-12 Christian Biesinger <cbiesinger@google.com>
9630
9631 * arm-tdep.c (arm_dump_tdep): Print more fields of tdep.
9632
d27b8e5f
TT
96332020-02-12 Tom Tromey <tom@tromey.com>
9634
9635 * dwarf2/loc.c (struct dwarf_expr_baton): Remove.
9636
cd5900f3
HD
96372020-02-12 Hannes Domani <ssbssa@yahoo.de>
9638
9639 * windows-tdep.c (struct windows_gdbarch_data): Add tib_ptr_type.
9640 (windows_get_tlb_type): Use windows_gdbarch_data->tib_ptr_type.
9641
f056b22b
TT
96422020-02-11 Tom Tromey <tom@tromey.com>
9643
9644 * psymtab.h: Update comment.
9645
f92ff6b5
TT
96462020-02-11 Tom Tromey <tom@tromey.com>
9647
9648 * gdb_obstack.h (struct auto_obstack): Use
9649 DISABLE_COPY_AND_ASSIGN.
9650
3fd6912b
TT
96512020-02-11 Tom Tromey <tom@tromey.com>
9652
9653 * dwarf2/frame.h (struct objfile): Don't forward declare.
9654
69ed9b74
CB
96552020-02-11 Christian Biesinger <cbiesinger@google.com>
9656
9657 * cris-tdep.c (cris_supply_gregset): Change signature to match
9658 what struct regset expects.
9659 (cris_regset): New struct.
9660 (fetch_core_registers): Remove.
9661 (cris_iterate_over_regset_sections): New function.
9662 (_initialize_cris_tdep): Don't call deprecated_add_core_fns.
9663 (cris_gdbarch_init): Call set_gdbarch_iterate_over_regset_sections.
9664
bda874f6
CB
96652020-02-11 Christian Biesinger <cbiesinger@google.com>
9666
9667 * arch/arm.h (enum gdb_regnum): Add comment for the FP0..7
9668 registers.
9669
754e1564
CB
96702020-02-11 Christian Biesinger <cbiesinger@google.com>
9671
9672 * arm-tdep.c (arm_dump_tdep): Add \n in fprintf.
9673
8ddd8e0e
SM
96742020-02-11 Simon Marchi <simon.marchi@efficios.com>
9675
9676 * configure: Re-generate.
9677
898e7f60
SM
96782020-02-11 Simon Marchi <simon.marchi@efficios.com>
9679
9680 * configure: Re-generate.
9681
58df732b
SM
96822020-02-11 Simon Marchi <simon.marchi@efficios.com>
9683
9684 * acinclude: Update warning.m4 path.
9685 * warning.m4: Move to gdbsupport.
9686
da5bd37e
TT
96872020-02-11 Tom Tromey <tromey@adacore.com>
9688
9689 * remote.c (remote_console_output): Update.
9690 * printcmd.c (printf_command): Update.
9691 * event-loop.c (gdb_wait_for_event): Update.
9692 * linux-nat.c (sigchld_handler): Update.
9693 * remote-sim.c (gdb_os_write_stdout): Update.
9694 (gdb_os_flush_stdout): Update.
9695 (gdb_os_flush_stderr): Update.
9696 (gdb_os_write_stderr): Update.
9697 * exceptions.c (print_exception): Update.
9698 * remote-fileio.c (remote_fileio_func_read): Update.
9699 (remote_fileio_func_write): Update.
9700 * tui/tui.c (tui_enable): Update.
9701 * tui/tui-interp.c (tui_interp::init): Update.
9702 * utils.c (init_page_info): Update.
9703 (putchar_unfiltered, fputc_unfiltered): Update.
9704 (gdb_flush): Update.
9705 (emit_style_escape): Update.
9706 (flush_wrap_buffer, fputs_maybe_filtered): Update.
9707 * ui-file.c (ui_file_isatty, ui_file_read, ui_file_write)
9708 (ui_file_write_async_safe, ui_file_flush, ui_file_puts): Remove.
9709 (stderr_file::write): Update.
9710 (stderr_file::puts): Update.
9711 * ui-file.h (ui_file_isatty, ui_file_write)
9712 (ui_file_write_async_safe, ui_file_read, ui_file_flush)
9713 (ui_file_puts): Don't declare.
9714
85f0dd3c
TV
97152020-02-10 Tom de Vries <tdevries@suse.de>
9716
9717 * dwarf2/read.c (process_psymtab_comp_unit_reader): Cast concat NULL
9718 sentinel to char *.
9719
2e927613
TV
97202020-02-09 Tom de Vries <tdevries@suse.de>
9721
9722 * dwarf2read.c (process_psymtab_comp_unit_reader): Append CU offset to
9723 filename if it matches "<artificial>".
9724
6bafc845
HD
97252020-02-09 Hannes Domani <ssbssa@yahoo.de>
9726
9727 * windows-tdep.c (struct enum_value_name): New struct.
9728 (create_enum): New function.
9729 (windows_get_siginfo_type): Create and use enum types.
9730
7928d571
HD
97312020-02-09 Hannes Domani <ssbssa@yahoo.de>
9732
9733 * NEWS: Mention $_siginfo support for Windows.
9734 * windows-nat.c (handle_exception): Set siginfo_er.
9735 (windows_nat_target::mourn_inferior): Reset siginfo_er.
9736 (windows_xfer_siginfo): New function.
9737 (windows_nat_target::xfer_partial): Call windows_xfer_siginfo.
9738 * windows-tdep.c (struct windows_gdbarch_data): New struct.
9739 (init_windows_gdbarch_data): New function.
9740 (get_windows_gdbarch_data): New function.
9741 (windows_get_siginfo_type): New function.
9742 (windows_init_abi): Register windows_get_siginfo_type.
9743 (_initialize_windows_tdep): Register init_windows_gdbarch_data.
9744
6751ebae
TT
97452020-02-08 Tom Tromey <tom@tromey.com>
9746
9747 * dwarf2/read.c (class cutu_reader) <cutu_reader,
9748 init_tu_and_read_dwo_dies>: Remove "keep" parameter.
9749 <keep>: Declare method.
9750 <m_keep>: Remove member.
9751 <~cutu_reader>: Remove.
9752 (cutu_reader::init_tu_and_read_dwo_dies): Update.
9753 (cutu_reader::cutu_reader): Update.
9754 (cutu_reader::keep): Rename from ~cutu_reader.
9755 (process_psymtab_comp_unit, build_type_psymtabs_1)
9756 (process_skeletonless_type_unit, load_partial_comp_unit)
9757 (load_full_comp_unit, dwarf2_read_addr_index)
9758 (read_signatured_type): Update.
9759
135f5437
TT
97602020-02-08 Tom Tromey <tom@tromey.com>
9761
9762 * dwarf2/read.c (process_psymtab_comp_unit_reader): Remove
9763 "want_partial_unit" parameter.
9764 (process_psymtab_comp_unit): Change want_partial_unit to bool.
9765 Inline check for DW_TAG_partial_unit.
9766 (dwarf2_build_psymtabs_hard, scan_partial_symbols): Update.
9767
9f66ff1c
TT
97682020-02-08 Tom Tromey <tom@tromey.com>
9769
9770 * dwarf2/read.c (read_n_bytes, read_direct_string): Move to
9771 read.c.
9772 * dwarf2/leb.h (read_n_bytes, read_direct_string): Move from
9773 read.c.
9774
c8a7a66f
TT
97752020-02-08 Tom Tromey <tom@tromey.com>
9776
9777 * dwarf2/read.c (read_address): Move to comp-unit.c.
9778 (dwarf2_rnglists_process, dwarf2_ranges_process)
9779 (read_attribute_value, dwarf_decode_lines_1)
9780 (var_decode_location, decode_locdesc): Update.
9781 * dwarf2/comp-unit.c (comp_unit_head::read_address): Move from
9782 read.c. Remove "cu" parameter.
9783 * dwarf2/comp-unit.h (struct comp_unit_head) <read_address>: New
9784 method.
9785
8266302d
TT
97862020-02-08 Tom Tromey <tom@tromey.com>
9787
9788 * dwarf2/read.c (read_attribute_value, read_indirect_string)
9789 (read_indirect_line_string): Update.
9790 * dwarf2/comp-unit.c (read_offset): Remove.
9791 (read_comp_unit_head): Update.
9792 * dwarf2/comp-unit.h (struct comp_unit_head) <read_offset>: New
9793 method.
9794 (read_offset): Don't declare.
9795
4057dfde
TT
97962020-02-08 Tom Tromey <tom@tromey.com>
9797
9798 * Makefile.in (COMMON_SFILES): Add dwarf2/comp-unit.c.
9799 * dwarf2/read.c (struct comp_unit_head): Move to
9800 dwarf2/comp-unit.h.
9801 (enum class rcuh_kind): Move to comp-unit.h.
9802 (get_cu_length, offset_in_cu_p): Now methods on comp_unit_head.
9803 (read_comp_unit_head, error_check_comp_unit_head)
9804 (read_and_check_comp_unit_head): Move to comp-unit.c.
9805 (read_offset, dwarf_unit_type_name): Likewise.
9806 (create_debug_type_hash_table, read_cutu_die_from_dwo)
9807 (cutu_reader::cutu_reader, read_call_site_scope)
9808 (find_partial_die, follow_die_offset): Update.
9809 * dwarf2/comp-unit.h: New file, from dwarf2read.c.
9810
24aa364d
TT
98112020-02-08 Tom Tromey <tom@tromey.com>
9812
9813 * dwarf2/read.c (read_offset_1): Move to leb.c.
9814 (read_abbrev_offset, read_offset, dwarf_decode_line_header)
9815 (dwarf_decode_macro_bytes): Update.
9816 * dwarf2/leb.c (read_offset): Rename; move from read.c.
9817 * dwarf2/leb.h (read_offset): Declare.
9818
2c7d5afc
TT
98192020-02-08 Tom Tromey <tom@tromey.com>
9820
9821 * dwarf2/read.c (dwarf2_section_size): Remove.
9822 (error_check_comp_unit_head, dwarf2_symbol_mark_computed):
9823 Update.
9824 * dwarf2/section.h (struct dwarf2_section_info) <get_size>: New method.
9825
4075cb26
TT
98262020-02-08 Tom Tromey <tom@tromey.com>
9827
9828 * dwarf2/read.c (read_initial_length): Move to leb.c.
9829 * dwarf2/leb.h (read_initial_length): Declare.
9830 * dwarf2/leb.c (read_initial_length): Move from read.c. Add
9831 handle_nonstd parameter.
9832 * dwarf2/frame.c (read_initial_length): Remove.
9833 (decode_frame_entry_1): Update.
9834
09ba997f
TT
98352020-02-08 Tom Tromey <tom@tromey.com>
9836
9837 * dwarf2/loc.c (dwarf2_find_location_expression)
9838 (dwarf_evaluate_loc_desc::get_tls_address)
9839 (dwarf_evaluate_loc_desc::push_dwarf_reg_entry_value)
9840 (rw_pieced_value, dwarf2_evaluate_loc_desc_full)
9841 (dwarf2_locexpr_baton_eval, dwarf2_evaluate_property)
9842 (dwarf2_compile_property_to_c)
9843 (dwarf2_loc_desc_get_symbol_read_needs)
9844 (dwarf2_compile_expr_to_ax, locexpr_describe_location)
9845 (locexpr_tracepoint_var_ref, locexpr_generate_c_location)
9846 (loclist_describe_location, loclist_tracepoint_var_ref)
9847 (loclist_generate_c_location): Update.
9848 * compile/compile-loc2c.c (do_compile_dwarf_expr_to_c): Update.
9849 * dwarf2/loc.h (dwarf2_per_cu_objfile, dwarf2_per_cu_addr_size)
9850 (dwarf2_per_cu_ref_addr_size, dwarf2_per_cu_offset_size)
9851 (dwarf2_per_cu_text_offset, dwarf2_version): Don't declare.
9852 * dwarf2/read.c (dwarf2_per_cu_data::objfile)
9853 (dwarf2_per_cu_data::addr_size)
9854 (dwarf2_per_cu_data::ref_addr_size)
9855 (dwarf2_per_cu_data::text_offset)
9856 (dwarf2_per_cu_data::addr_type): Now methods.
9857 (per_cu_header_read_in): Make per_cu "const".
9858 (dwarf2_version): Remove.
9859 (dwarf2_per_cu_data::int_type): Now a method.
9860 (dwarf2_per_cu_data::_addr_sized_int_type): Likewise.
9861 (set_die_type, read_array_type, read_subrange_index_type)
9862 (read_tag_string_type, read_subrange_type): Update.
9863 * dwarf2/read.h (struct dwarf2_per_cu_data) <addr_size,
9864 offset_size, ref_addr_size, text_offset, addr_type, version,
9865 objfile, int_type, addr_sized_int_type>: Declare methods.
9866
96c738c0
TT
98672020-02-08 Tom Tromey <tom@tromey.com>
9868
9869 * dwarf2/read.h (struct dwarf2_per_cu_data) <imported_symtabs>:
9870 Move earlier.
9871
8fdd972c
TT
98722020-02-08 Tom Tromey <tom@tromey.com>
9873
9874 * dwarf2/read.h (dwarf_line_debug): Declare.
9875 * Makefile.in (COMMON_SFILES): Add dwarf2/line-header.c.
9876 * dwarf2/read.c: Move line_header code to new files.
9877 (dwarf_line_debug): No longer static.
9878 * dwarf2/line-header.c: New file.
9879 * dwarf2/line-header.h: New file.
9880
03075812
TT
98812020-02-08 Tom Tromey <tom@tromey.com>
9882
9883 * dwarf2/read.c (struct line_header) <file_full_name,
9884 file_file_name>: Return unique_xmalloc_ptr.
9885 (line_header::file_file_name): Update.
9886 (line_header::file_full_name): Update.
9887 (dw2_get_file_names_reader): Update.
9888 (macro_start_file): Update.
9889
bb822404
TT
98902020-02-08 Tom Tromey <tom@tromey.com>
9891
9892 * dwarf2/read.c (struct line_header) <file_full_name,
9893 file_file_name>: Declare methods.
9894 (dw2_get_file_names_reader): Update.
9895 (file_file_name): Now a method.
9896 (file_full_name): Likewise.
9897 (macro_start_file): Update.
9898
009b64fc
TT
98992020-02-08 Tom Tromey <tom@tromey.com>
9900
9901 * dwarf2/read.c (dwarf_always_disassemble)
9902 (show_dwarf_always_disassemble): Move to loc.c.
9903 (_initialize_dwarf2_read): Move "always-disassemble" registration
9904 to loc.c.
9905 * dwarf2/read.h (dwarf_always_disassemble): Don't declare.
9906 * dwarf2/loc.c (dwarf_always_disassemble): Move from read.c. Now
9907 static.
9908 (show_dwarf_always_disassemble): Move from read.c.
9909 (_initialize_dwarf2loc): Move always-disassemble from read.c.
9910
5895093f
TT
99112020-02-08 Tom Tromey <tom@tromey.com>
9912
9913 * dwarf2/read.c (~dwarf2_per_objfile): Update.
9914 (create_quick_file_names_table): Return htab_up.
9915 (dw2_get_file_names_reader, dw2_forget_cached_source_info):
9916 Update.
9917 * dwarf2/read.h (struct dwarf2_per_objfile)
9918 <quick_file_names_table>: Now htab_up.
9919
b3b32279
TT
99202020-02-08 Tom Tromey <tom@tromey.com>
9921
9922 * dwarf2/abbrev.c (abbrev_table::read): Simplify.
9923
1d33d811
TT
99242020-02-08 Tom Tromey <tom@tromey.com>
9925
9926 * dwarf2/abbrev.c (abbrev_table): Move constructor from header.
9927 Rewrite.
9928 (abbrev_table::add_abbrev, abbrev_table::lookup_abbrev): Rewrite.
9929 * dwarf2/abbrev.h (struct abbrev_info) <next>: Remove.
9930 (abbrev_table::abbrev_table): No longer inline.
9931 (ABBREV_HASH_SIZE): Remove.
9932 (abbrev_table::m_abbrevs): Now an htab_up.
9933
86de1d91
TT
99342020-02-08 Tom Tromey <tom@tromey.com>
9935
9936 * dwarf2/read.c (read_cutu_die_from_dwo): Update.
9937 (cutu_reader): Update.
9938 (build_type_psymtabs_1): Update.
9939 * dwarf2/abbrev.c (abbrev_table::read): Rename.
9940 (abbrev_table::alloc_abbrev): Update.
9941 * dwarf2/abbrev.h (abbrev_table_up): Move earlier.
9942 (abbrev_table::read): New static method, renamed from
9943 abbrev_table_read_table.
9944 (abbrev_table::alloc_abbrev)
9945 (abbrev_table::add_abbrev): Now private.
9946 (abbrev_table::abbrev_table): Now private.
9947 (abbrev_table::m_abbrev_obstack): Now private. Rename.
9948
0335378b
TT
99492020-02-08 Tom Tromey <tom@tromey.com>
9950
9951 * dwarf2/read.c (set_die_type, get_die_type_at_offset): Update.
9952 * dwarf2/read.h (struct dwarf2_per_objfile) <die_type_hash>: Now
9953 htab_up.
9954
48b490f2
TT
99552020-02-08 Tom Tromey <tom@tromey.com>
9956
9957 * dwarf2/read.c (struct dwp_file) <loaded_cus, loaded_tus>: Now
9958 htab_up.
9959 (lookup_dwo_unit_in_dwp): Update.
9960 (allocate_dwp_loaded_cutus_table): Return htab_up. Don't allocate
9961 on obstack.
9962
bc68fb19
TT
99632020-02-08 Tom Tromey <tom@tromey.com>
9964
9965 * dwarf2/read.c (allocate_dwo_file_hash_table): Don't allocate on
9966 obstack.
9967
d15acc42
TT
99682020-02-08 Tom Tromey <tom@tromey.com>
9969
9970 * dwarf2/read.c (~dwarf2_per_objfile): Don't delete
9971 line_header_hash.
9972 (handle_DW_AT_stmt_list): Update. Don't allocate on obstack.
9973 * dwarf2/read.h (struct dwarf2_per_objfile) <line_header_hash>:
9974 Change type to htab_up.
9975
eaa5fa8b
TT
99762020-02-08 Tom Tromey <tom@tromey.com>
9977
9978 * dwarf2/read.c (allocate_type_unit_groups_table): Return
9979 htab_up. Don't allocate on obstack.
9980 (get_type_unit_group, dwarf2_build_psymtabs_hard): Update.
9981 * dwarf2/read.h (struct dwarf2_per_objfile) <type_unit_groups>:
9982 Change type to htab_up.
9983
b0b6a987
TT
99842020-02-08 Tom Tromey <tom@tromey.com>
9985
9986 * dwarf2/read.h (struct dwarf2_per_objfile) <signatured_types>:
9987 Change type to htab_up.
9988 * dwarf2/read.c (create_signatured_type_table_from_index)
9989 (create_signatured_type_table_from_debug_names)
9990 (create_all_type_units, add_type_unit)
9991 (lookup_dwo_signatured_type, lookup_signatured_type)
9992 (process_skeletonless_type_unit): Update.
9993 (create_debug_type_hash_table, create_debug_types_hash_table):
9994 Change type of types_htab.
9995 (allocate_signatured_type_table, allocate_dwo_unit_table): Return
9996 htab_up. Don't allocate on obstack.
9997 (create_cus_hash_table): Change type of cus_htab parameter.
9998 (struct dwo_file) <cus, tus>: Now htab_up.
9999 (lookup_dwo_signatured_type, lookup_dwo_cutu)
10000 (process_dwo_file_for_skeletonless_type_units, lookup_dwo_cutu)
10001 (queue_and_load_all_dwo_tus): Update.
10002 * dwarf2/index-write.c (write_gdbindex): Update.
10003 (write_debug_names): Update.
10004
39856def
TT
100052020-02-08 Tom Tromey <tom@tromey.com>
10006
10007 * dwarf2/read.h (struct dwarf2_queue_item): Move from
10008 dwarf2/read.c. Remove "next" member. Add constructor ntad
10009 destructor.
10010 (struct dwarf2_per_objfile) <queue>: New member.
10011 * dwarf2/read.c (struct dwarf2_queue_item): Move to
10012 dwarf2/read.h.
10013 (dwarf2_queue, dwarf2_queue_tail): Remove.
10014 (class dwarf2_queue_guard): Add parameter to constructor. Use
10015 DISABLE_COPY_AND_ASSIGN.
10016 <m_per_objfile>: New member.
10017 <~dwarf2_queue_guard>: Rewrite.
10018 (dw2_do_instantiate_symtab, queue_comp_unit, process_queue):
10019 Update.
10020 (~dwarf2_queue_item): New.
10021
3e225074
TT
100222020-02-08 Tom Tromey <tom@tromey.com>
10023
10024 * dwarf2/read.c (struct die_info) <has_children>: New member.
10025 (dw2_get_file_names_reader): Remove has_children.
10026 (dw2_get_file_names): Update.
10027 (read_cutu_die_from_dwo): Remove has_children.
10028 (cutu_reader::init_tu_and_read_dwo_dies)
10029 (cutu_reader::cutu_reader): Update.
10030 (process_psymtab_comp_unit_reader, build_type_psymtabs_reader):
10031 Remove has_children.
10032 (build_type_psymtabs_1, process_skeletonless_type_unit)
10033 (load_partial_comp_unit, load_full_comp_unit): Update.
10034 (create_dwo_cu_reader): Remove has_children.
10035 (create_cus_hash_table, read_die_and_children): Update.
10036 (read_full_die_1,read_full_die): Remove has_children.
10037 (read_signatured_type): Update.
10038 (class cutu_reader) <has_children>: Remove.
10039
82ca8957
TT
100402020-02-08 Tom Tromey <tom@tromey.com>
10041
10042 * dwarf2/expr.c: Rename from dwarf2expr.c.
10043 * dwarf2/expr.h: Rename from dwarf2expr.h.
10044 * dwarf2/frame-tailcall.c: Rename from dwarf2-frame-tailcall.c.
10045 * dwarf2/frame-tailcall.h: Rename from dwarf2-frame-tailcall.h.
10046 * dwarf2/frame.c: Rename from dwarf2-frame.c.
10047 * dwarf2/frame.h: Rename from dwarf2-frame.h.
10048 * dwarf2/index-cache.c: Rename from dwarf-index-cache.c.
10049 * dwarf2/index-cache.h: Rename from dwarf-index-cache.h.
10050 * dwarf2/index-common.c: Rename from dwarf-index-common.c.
10051 * dwarf2/index-common.h: Rename from dwarf-index-common.h.
10052 * dwarf2/index-write.c: Rename from dwarf-index-write.c.
10053 * dwarf2/index-write.h: Rename from dwarf-index-write.h.
10054 * dwarf2/loc.c: Rename from dwarf2loc.c.
10055 * dwarf2/loc.h: Rename from dwarf2loc.h.
10056 * dwarf2/read.c: Rename from dwarf2read.c.
10057 * dwarf2/read.h: Rename from dwarf2read.h.
10058 * dwarf2/abbrev.c, aarch64-tdep.c, alpha-tdep.c,
10059 amd64-darwin-tdep.c, arc-tdep.c, arm-tdep.c, bfin-tdep.c,
10060 compile/compile-c-symbols.c, compile/compile-cplus-symbols.c,
10061 compile/compile-loc2c.c, cris-tdep.c, csky-tdep.c, findvar.c,
10062 gdbtypes.c, guile/scm-type.c, h8300-tdep.c, hppa-bsd-tdep.c,
10063 hppa-linux-tdep.c, i386-darwin-tdep.c, i386-linux-tdep.c,
10064 i386-tdep.c, iq2000-tdep.c, m32c-tdep.c, m68hc11-tdep.c,
10065 m68k-tdep.c, microblaze-tdep.c, mips-tdep.c, mn10300-tdep.c,
10066 msp430-tdep.c, nds32-tdep.c, nios2-tdep.c, or1k-tdep.c,
10067 riscv-tdep.c, rl78-tdep.c, rs6000-tdep.c, rx-tdep.c, s12z-tdep.c,
10068 s390-tdep.c, score-tdep.c, sh-tdep.c, sparc-linux-tdep.c,
10069 sparc-tdep.c, sparc64-linux-tdep.c, sparc64-tdep.c, tic6x-tdep.c,
10070 tilegx-tdep.c, v850-tdep.c, xstormy16-tdep.c, xtensa-tdep.c:
10071 Update.
10072 * Makefile.in (COMMON_SFILES): Update.
10073 (HFILES_NO_SRCDIR): Update.
10074
9e35d499
TT
100752020-02-08 Tom Tromey <tom@tromey.com>
10076
10077 * dwarf2read.c (struct die_reader_specs) <comp_dir>: Remove.
10078 (init_cu_die_reader, read_cutu_die_from_dwo): Update.
10079
1eba2311
TT
100802020-02-08 Tom Tromey <tom@tromey.com>
10081
10082 * dwarf2read.h (struct die_info): Don't declare.
10083
e41c2da2
TT
100842020-02-08 Tom Tromey <tom@tromey.com>
10085
10086 * dwarf2read.h (die_info_ptr): Remove typedef.
10087
4fc6c0d5
TT
100882020-02-08 Tom Tromey <tom@tromey.com>
10089
10090 * dwarf2read.c (read_call_site_scope)
10091 (handle_data_member_location, dwarf2_add_member_fn)
10092 (mark_common_block_symbol_computed, read_common_block)
10093 (attr_to_dynamic_prop, partial_die_info::read)
10094 (var_decode_location, dwarf2_fetch_die_loc_sect_off)
10095 (dwarf2_symbol_mark_computed, set_die_type): Update.
10096 * dwarf2/attribute.h (struct attribute) <form_is_block>: Declare
10097 method.
10098 (attr_form_is_block): Don't declare.
10099 * dwarf2/attribute.c (attribute::form_is_block): Now a method.
10100
cd6c91b4
TT
101012020-02-08 Tom Tromey <tom@tromey.com>
10102
10103 * dwarf2read.c (dwarf2_find_base_address, )
10104 (read_call_site_scope, rust_containing_type)
10105 (dwarf2_get_pc_bounds, dwarf2_record_block_ranges)
10106 (handle_data_member_location, dwarf2_add_member_fn)
10107 (get_alignment, read_structure_type, process_structure_scope)
10108 (mark_common_block_symbol_computed, read_common_block)
10109 (read_tag_string_type, attr_to_dynamic_prop, read_subrange_type)
10110 (partial_die_info::read, read_attribute_value, new_symbol)
10111 (lookup_die_type, dwarf2_get_ref_die_offset)
10112 (dwarf2_get_attr_constant_value, follow_die_ref_or_sig)
10113 (dwarf2_fetch_die_loc_sect_off, get_DW_AT_signature_type)
10114 (dwarf2_symbol_mark_computed): Update.
10115 * dwarf2/attribute.h (struct attribute) <value_as_address,
10116 form_is_section_offset, form_is_constant, form_is_ref>: Declare
10117 methods.
10118 (value_as_address, attr_form_is_section_offset)
10119 (attr_form_is_constant, attr_form_is_ref): Don't declare.
10120 * dwarf2/attribute.c (attribute::value_as_address)
10121 (attribute::form_is_section_offset, attribute::form_is_constant)
10122 (attribute::form_is_ref): Now methods.
10123
162dce55
TT
101242020-02-08 Tom Tromey <tom@tromey.com>
10125
10126 * dwarf2read.c (struct attribute, DW_STRING)
10127 (DW_STRING_IS_CANONICAL, DW_UNSND, DW_BLOCK, DW_SND, DW_ADDR)
10128 (DW_SIGNATURE, struct dwarf_block, attr_value_as_address)
10129 (attr_form_is_block, attr_form_is_section_offset)
10130 (attr_form_is_constant, attr_form_is_ref): Move.
10131 * dwarf2/attribute.h: New file.
10132 * dwarf2/attribute.c: New file, from dwarf2read.c.
10133 * Makefile.in (COMMON_SFILES): Add dwarf2/attribute.c.
10134
3054dd54
TT
101352020-02-08 Tom Tromey <tom@tromey.com>
10136
10137 * dwarf2read.c (abbrev_table_up, struct abbrev_info)
10138 (struct attr_abbrev, ABBREV_HASH_SIZE, struct abbrev_table):
10139 Move.
10140 (read_cutu_die_from_dwo, build_type_psymtabs_1): Update.
10141 (abbrev_table::alloc_abbrev, abbrev_table::add_abbrev)
10142 (abbrev_table::lookup_abbrev, abbrev_table_read_table): Move to
10143 abbrev.c.
10144 * dwarf2/abbrev.h: New file.
10145 * dwarf2/abbrev.c: New file, from dwarf2read.c.
10146 * Makefile.in (COMMON_SFILES): Add dwarf2/abbrev.c.
10147
96b79293
TT
101482020-02-08 Tom Tromey <tom@tromey.com>
10149
10150 * dwarf2read.c (dwarf2_section_buffer_overflow_complaint)
10151 (dwarf2_section_size, dwarf2_get_section_info)
10152 (create_signatured_type_table_from_debug_names)
10153 (create_addrmap_from_aranges, read_debug_names_from_section)
10154 (get_gdb_index_contents_from_section, read_comp_unit_head)
10155 (error_check_comp_unit_head, read_abbrev_offset)
10156 (create_debug_type_hash_table, init_cu_die_reader)
10157 (read_cutu_die_from_dwo, dwarf2_build_psymtabs_hard)
10158 (read_comp_units_from_section, create_cus_hash_table)
10159 (create_dwp_hash_table, create_dwo_unit_in_dwp_v1)
10160 (create_dwp_v2_section, dwarf2_rnglists_process)
10161 (dwarf2_ranges_process, read_die_and_siblings, read_full_die)
10162 (abbrev_table_read_table, read_indirect_string_at_offset_from)
10163 (read_indirect_string_from_dwz, read_addr_index_1)
10164 (read_str_index, dwarf_decode_line_header, skip_form_bytes)
10165 (dwarf_decode_macro_bytes, dwarf_decode_macros)
10166 (fill_in_loclist_baton): Update.
10167 * dwarf2/section.h (struct dwarf2_section_info) <get_name,
10168 get_containing_section, get_bfd_owner, get_bfd_section,
10169 get_file_name, get_id, get_flags, empty, read>: Declare methods.
10170 (dwarf2_read_section, get_section_name, get_section_file_name)
10171 (get_containing_section, get_section_bfd_owner)
10172 (get_section_bfd_section, get_section_name, get_section_file_name)
10173 (get_section_id, get_section_flags, dwarf2_section_empty_p): Don't
10174 declare.
10175 * dwarf2/section.c (dwarf2_section_info::get_containing_section)
10176 (dwarf2_section_info::get_bfd_owner)
10177 (dwarf2_section_info::get_bfd_section)
10178 (dwarf2_section_info::get_name)
10179 (dwarf2_section_info::get_file_name, dwarf2_section_info::get_id)
10180 (dwarf2_section_info::get_flags, dwarf2_section_info::empty)
10181 (dwarf2_section_info::read): Now methods.
10182 * dwarf-index-write.c (class debug_names): Update.
10183
2c86cff9
TT
101842020-02-08 Tom Tromey <tom@tromey.com>
10185
10186 * dwarf2read.h (struct dwarf2_section_info, dwarf2_read_section):
10187 Move to dwarf2/section.h.
10188 * dwarf2read.c (get_containing_section, get_section_bfd_owner)
10189 (get_section_bfd_section, get_section_name)
10190 (get_section_file_name, get_section_id, get_section_flags)
10191 (dwarf2_section_empty_p, dwarf2_read_section): Moe to
10192 dwarf2/section.c.
10193 * dwarf2/section.h: New file.
10194 * dwarf2/section.c: New file, from dwarf2read.c.
10195 * Makefile.in (COMMON_SFILES): Add dwarf2/section.c.
10196
f4382c45
TT
101972020-02-08 Tom Tromey <tom@tromey.com>
10198
10199 * dwarf2read.h (read_unsigned_leb128): Don't declare.
10200 * dwarf2read.c (read_1_byte, read_1_signed_byte, read_2_bytes)
10201 (read_2_signed_bytes, read_3_bytes, read_4_bytes)
10202 (read_4_signed_bytes, read_8_bytes): Move to dwarf2/leb.h.
10203 (read_unsigned_leb128, read_signed_leb128): Move to dwarf2/leb.c.
10204 * dwarf2/leb.h: New file, from dwarf2read.c.
10205 * dwarf2/leb.c: New file, from dwarf2read.c.
10206 * dwarf2-frame.c (read_1_byte, read_4_bytes, read_8_bytes):
10207 Remove.
10208 * Makefile.in (CONFIG_SRC_SUBDIR): Add dwarf2.
10209 (COMMON_SFILES): Add dwarf2/leb.c.
10210
01840b7a
JB
102112020-02-08 Joel Brobecker <brobecker@adacore.com>
10212
10213 GDB 9.1 released.
10214
dfcb27e4
IB
102152020-02-05 Iain Buclaw <ibuclaw@gdcproject.org>
10216
10217 PR gdb/25190:
aac66a4c
SM
10218 * gdb/remote-sim.c (gdb_os_write_stderr): Update.
10219 * gdb/remote.c (remote_console_output): Update.
10220 * gdb/ui-file.c (fputs_unfiltered): Rename to...
10221 (ui_file_puts): ...this.
10222 * gdb/ui-file.h (ui_file_puts): Add declaration.
10223 * gdb/utils.c (emit_style_escape): Update.
10224 (flush_wrap_buffer): Update.
10225 (fputs_maybe_filtered): Update.
10226 (fputs_unfiltered): Add function.
dfcb27e4 10227
faa17681
IB
102282020-02-05 Iain Buclaw <ibuclaw@gdcproject.org>
10229
aac66a4c
SM
10230 * gdb/event-loop.c (gdb_wait_for_event): Update.
10231 * gdb/printcmd.c (printf_command): Update.
10232 * gdb/remote-fileio.c (remote_fileio_func_write): Update.
10233 * gdb/remote-sim.c (gdb_os_flush_stdout): Update.
10234 (gdb_os_flush_stderr): Update.
10235 * gdb/remote.c (remote_console_output): Update.
10236 * gdb/ui-file.c (gdb_flush): Rename to...
10237 (ui_file_flush): ...this.
10238 (stderr_file::write): Update.
10239 (stderr_file::puts): Update.
10240 * gdb/ui-file.h (gdb_flush): Rename to...
10241 (ui_file_flush): ...this.
10242 * gdb/utils.c (gdb_flush): Add function.
10243 * gdb/utils.h (gdb_flush): Add declaration.
faa17681 10244
5abbbe1d
TT
102452020-02-07 Tom Tromey <tromey@adacore.com>
10246
10247 PR breakpoints/24915:
10248 * source.c (find_and_open_source): Do not check basenames_may_differ.
10249
919adfe8
TT
102502020-02-07 Tom Tromey <tom@tromey.com>
10251
10252 * README: Update gdbserver documentation.
10253 * gdbserver: Move to top level.
10254 * configure.tgt (build_gdbserver): Remove.
10255 * configure.ac: Remove --enable-gdbserver.
10256 * configure: Rebuild.
10257 * Makefile.in (distclean): Don't mention gdbserver.
10258
1d5d29e7
SV
102592020-02-06 Shahab Vahedi <shahab@synopsys.com>
10260
10261 * source-cache.c (source_cache::ensure): Surround
10262 get_plain_source_lines with a try/catch.
10263 (source_cache::get_line_charpos): Get rid of try/catch
10264 and only check for the return value of "ensure".
10265 * tui/tui-source.c (tui_source_window::set_contents):
10266 Simplify "nlines" calculation.
10267
6eb1129c
SV
102682020-02-06 Shahab Vahedi <shahab@synopsys.com>
10269
10270 * MAINTAINERS (Write After Approval): Add myself.
10271
c6a42d11
CB
102722020-02-05 Christian Biesinger <cbiesinger@google.com>
10273
10274 * sparc-nat.h (struct sparc_target) <xfer_partial>: Fix base class
10275 function call.
10276
c8ecdda6
CB
102772020-02-05 Christian Biesinger <cbiesinger@google.com>
10278
10279 * ppc-nbsd-tdep.h: Fix macro name in #endif comment.
10280
f6480e70
MR
102812020-02-05 Maciej W. Rozycki <macro@wdc.com>
10282
10283 * nat/riscv-linux-tdesc.h: New file.
10284 * nat/riscv-linux-tdesc.c: New file, taking code from...
10285 * riscv-linux-nat.c (riscv_linux_nat_target::read_description):
10286 ... here.
10287 * configure.nat <linux> <riscv*>: Add nat/riscv-linux-tdesc.o to
10288 NATDEPFILES.
10289
dcc9fbc6
AB
102902020-02-04 Andrew Burgess <andrew.burgess@embecosm.com>
10291
10292 * remote-sim.c (sim_inferior_data::sim_inferior_data): Assert that
10293 we don't set the fake simulator ptid to the null_ptid.
10294
719546c4
SM
102952020-02-03 Simon Marchi <simon.marchi@efficios.com>
10296
10297 * fork-child.c (gdb_startup_inferior): Use bool instead of int.
10298 * gdbthread.h (class thread_info) <resumed>: Likewise.
10299 * infrun.c (resume_1): Likewise.
10300 (proceed): Likewise.
10301 (infrun_thread_stop_requested): Likewise.
10302 (stop_all_threads): Likewise.
10303 (handle_inferior_event): Likewise.
10304 (restart_threads): Likewise.
10305 (finish_step_over): Likewise.
10306 (keep_going_stepped_thread): Likewise.
10307 * linux-nat.c (attach_proc_task_lwp_callback): Likewise.
10308 (linux_handle_extended_wait): Likewise.
10309 * record-btrace.c (get_thread_current_frame_id): Likewise.
10310 * record-full.c (record_full_wait_1): Likewise.
10311 * remote.c (remote_target::process_initial_stop_replies): Likewise.
10312 * target.c (target_resume): Likewise.
10313 * thread.c (set_running_thread): Likewise.
10314
e409c542
AKS
103152020-02-03 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
10316
10317 * f-valprint.c (f77_print_array_1): Changed datatype of index
10318 variable to LONGEST from int to enable it to contain bound
10319 values correctly.
10320
ee98c0da
MR
103212020-02-03 Maciej W. Rozycki <macro@wdc.com>
10322
10323 * riscv-linux-nat.c [!NFPREG] (NFPREG): New macro.
10324 (supply_fpregset_regnum, fill_fpregset): Handle regset buffer
10325 offsets according to FLEN determined.
10326 (riscv_linux_nat_target::read_description): Determine FLEN
10327 dynamically.
10328 (riscv_linux_nat_target::fetch_registers): Size regset buffer
10329 according to FLEN determined.
10330 (riscv_linux_nat_target::store_registers): Likewise.
10331
aa66aac4
SV
103322020-02-01 Shahab Vahedi <shahab@synopsys.com>
10333
10334 * target-descriptions.c (tdesc_register_in_reggroup_p): Return 0
10335 when reg->group is empty and reggroup is not.
10336
fd9faca8
TT
103372020-01-31 Tom Tromey <tromey@adacore.com>
10338
10339 * ravenscar-thread.c (ravenscar_thread_target::mourn_inferior):
10340 Call beneath target's mourn_inferior after unpushing.
10341
42330a68
AB
103422020-01-31 Andrew Burgess <andrew.burgess@embecosm.com>
10343
10344 PR tui/9765
10345 * tui/tui-disasm.c (tui_find_disassembly_address): If we don't
10346 have enough lines to fill the screen, still return the lowest
10347 address we found.
10348
7a27a45b
AB
103492020-01-31 Andrew Burgess <andrew.burgess@embecosm.com>
10350
10351 * tui/tui-win.c (_initialize_tui_win): Update help text for '+',
10352 '-', '<', and '>' commands.
10353
c47f70e2
PA
103542020-01-29 Pedro Alves <palves@redhat.com>
10355 Sergio Durigan Junior <sergiodj@redhat.com>
10356
10357 * infcmd.c (construct_inferior_arguments): Assert that
10358 'argc' is greater than 0.
10359
5133a315
LM
103602020-01-29 Luis Machado <luis.machado@linaro.org>
10361
10362 * aarch64-tdep.c (BRK_INSN_MASK): Define to 0xffe0001f.
10363 (BRK_INSN_MASK): Define to 0xd4200000.
10364 (aarch64_program_breakpoint_here_p): New function.
10365 (aarch64_gdbarch_init): Set gdbarch_program_breakpoint_here_p hook.
10366 * arch-utils.c (default_program_breakpoint_here_p): Moved from
10367 breakpoint.c.
10368 * arch-utils.h (default_program_breakpoint_here_p): Moved from
10369 breakpoint.h
10370 * breakpoint.c (bp_loc_is_permanent): Changed return type to bool and
10371 call gdbarch_program_breakpoint_here_p.
10372 (program_breakpoint_here): Moved to arch-utils.c, renamed to
10373 default_program_breakpoint_here_p, changed return type to bool and
10374 simplified.
10375 * breakpoint.h (program_breakpoint_here): Moved prototype to
10376 arch-utils.h, renamed to default_program_breakpoint_here_p and changed
10377 return type to bool.
10378 * gdbarch.c: Regenerate.
10379 * gdbarch.h: Regenerate.
10380 * gdbarch.sh (program_breakpoint_here_p): New method.
10381 * infrun.c (handle_signal_stop): Call
10382 gdbarch_program_breakpoint_here_p.
10383
168f8c6b
TT
103842020-01-26 Tom Tromey <tom@tromey.com>
10385
10386 * ctfread.c (struct ctf_fp_info): Reindent.
10387 (_initialize_ctfread): Remove.
10388
128a391f
TT
103892020-01-26 Tom Tromey <tom@tromey.com>
10390
10391 * psymtab.c (partial_map_expand_apply)
10392 (psym_find_pc_sect_compunit_symtab, psym_lookup_symbol)
10393 (psymtab_to_symtab, psym_find_last_source_symtab, dump_psymtab)
10394 (psym_print_stats, psym_expand_symtabs_for_function)
10395 (psym_map_symbol_filenames, psym_map_matching_symbols)
10396 (psym_expand_symtabs_matching)
10397 (partial_symtab::read_dependencies, maintenance_info_psymtabs)
10398 (maintenance_check_psymtabs): Use new methods.
10399 * psympriv.h (struct partial_symtab) <readin_p,
10400 get_compunit_symtab>: New methods.
10401 <readin, compunit_symtab>: Remove members.
10402 (struct standard_psymtab): New.
10403 (struct legacy_psymtab): Derive from standard_psymtab.
10404 * dwarf2read.h (struct dwarf2_psymtab): Derive from
10405 standard_psymtab.
10406 * ctfread.c (struct ctf_psymtab): Derive from standard_psymtab.
10407
0494dbec
TT
104082020-01-26 Tom Tromey <tom@tromey.com>
10409
10410 * xcoffread.c (xcoff_psymtab_to_symtab_1): Call
10411 read_dependencies. Add assert.
10412 * psymtab.c (partial_symtab::read_dependencies): New method.
10413 * psympriv.h (struct partial_symtab) <read_dependencies>: New
10414 method.
10415 * mdebugread.c (psymtab_to_symtab_1): Call read_dependencies.
10416 * dwarf2read.c (dwarf2_psymtab::expand_psymtab): Call
10417 read_dependencies.
10418 * dbxread.c (dbx_psymtab_to_symtab_1): Call read_dependencies.
10419 Add assert.
10420
8566b89b
TT
104212020-01-26 Tom Tromey <tom@tromey.com>
10422
10423 * xcoffread.c (xcoff_psymtab_to_symtab_1): Change argument order.
10424 Call expand_psymtab.
10425 (xcoff_read_symtab): Call expand_psymtab.
10426 (xcoff_start_psymtab, xcoff_end_psymtab): Set
10427 legacy_expand_psymtab.
10428 * psympriv.h (struct partial_symtab) <expand_psymtab>: New
10429 method.
10430 (struct legacy_psymtab) <expand_psymtab>: Implement.
10431 <legacy_expand_psymtab>: New member.
10432 * mdebugread.c (mdebug_read_symtab): Call expand_psymtab.
10433 (parse_partial_symbols): Set legacy_expand_psymtab.
10434 (psymtab_to_symtab_1): Change argument order. Call
10435 expand_psymtab.
10436 (new_psymtab): Set legacy_expand_psymtab.
10437 * dwarf2read.h (struct dwarf2_psymtab) <expand_psymtab>: Declare.
10438 * dwarf2read.c (dwarf2_psymtab::read_symtab): Call
10439 expand_psymtab.
10440 (dwarf2_psymtab::expand_psymtab): Rename from
10441 psymtab_to_symtab_1. Call expand_psymtab.
10442 * dbxread.c (start_psymtab): Set legacy_expand_psymtab.
10443 (dbx_end_psymtab): Likewise.
10444 (dbx_psymtab_to_symtab_1): Change argument order. Call
10445 expand_psymtab.
10446 (dbx_read_symtab): Call expand_psymtab.
10447 * ctfread.c (struct ctf_psymtab) <expand_psymtab>: Declare.
10448 (ctf_psymtab::expand_psymtab): Rename from psymtab_to_symtab.
10449 (ctf_psymtab::read_symtab): Call expand_psymtab.
10450
077cbab2
TT
104512020-01-26 Tom Tromey <tom@tromey.com>
10452
10453 * xcoffread.c (xcoff_read_symtab): Remove prints. Add assert.
10454 * psymtab.c (psymtab_to_symtab): Print verbose "Reading"
10455 messages.
10456 * mdebugread.c (mdebug_read_symtab): Remove prints.
10457 * dwarf2read.c (dwarf2_psymtab::read_symtab): Remove prints. Add
10458 assert.
10459 * dbxread.c (dbx_read_symtab): Remove prints. Add assert.
10460
891813be
TT
104612020-01-26 Tom Tromey <tom@tromey.com>
10462
10463 * xcoffread.c (this_symtab_psymtab, read_xcoff_symtab)
10464 (xcoff_psymtab_to_symtab_1, xcoff_read_symtab)
10465 (xcoff_start_psymtab, xcoff_end_psymtab, scan_xcoff_symtab): Use
10466 legacy_symtab.
10467 * stabsread.h (dbx_end_psymtab): Use legacy_symtab.
10468 * psymtab.c (psymtab_to_symtab): Call method.
10469 (dump_psymtab): Update.
10470 * psympriv.h (struct partial_symtab): Add virtual destructor.
10471 <read_symtab>: New method.
10472 (struct legacy_symtab): New.
10473 * mdebugread.c (mdebug_read_symtab): Use legacy_psymtab.
10474 (struct pst_map) <pst>: Now a legacy_psymtab.
10475 (parse_procedure, parse_partial_symbols, psymtab_to_symtab_1)
10476 (new_psymtab): Use legacy_psymtab.
10477 * dwarf2read.h (struct dwarf2_psymtab): New.
10478 (struct dwarf2_per_cu_data) <psymtab>: Use it.
10479 * dwarf2read.c (dwarf2_create_include_psymtab)
10480 (dwarf2_build_include_psymtabs, create_type_unit_group)
10481 (create_partial_symtab, process_psymtab_comp_unit_reader)
10482 (build_type_psymtabs_reader, build_type_psymtab_dependencies)
10483 (set_partial_user): Use dwarf2_psymtab.
10484 (dwarf2_psymtab::read_symtab): Rename from dwarf2_read_symtab.
10485 (psymtab_to_symtab_1, process_full_comp_unit)
10486 (process_full_type_unit, dwarf2_ranges_read)
10487 (dwarf2_get_pc_bounds, psymtab_include_file_name)
10488 (dwarf_decode_lines): Use dwarf2_psymtab.
10489 * dwarf-index-write.c (psym_index_map): Use dwarf2_psymtab.
10490 (add_address_entry_worker, write_one_signatured_type)
10491 (recursively_count_psymbols, recursively_write_psymbols)
10492 (write_one_signatured_type, psyms_seen_size, write_gdbindex)
10493 (write_debug_names): Likewise.
10494 * dbxread.c (struct header_file_location): Take a legacy_psymtab.
10495 <pst>: Now a legacy_psymtab.
10496 (find_corresponding_bincl_psymtab): Return a legacy_psymtab.
10497 (read_dbx_symtab, start_psymtab, dbx_end_psymtab)
10498 (dbx_psymtab_to_symtab_1, read_ofile_symtab): Use legacy_psymtab.
10499 * ctfread.c (struct ctf_psymtab): New.
10500 (ctf_start_symtab, ctf_end_symtab, psymtab_to_symtab): Take a
10501 ctf_psymtab.
10502 (ctf_psymtab::read_symtab): Rename from ctf_read_symtab.
10503 (create_partial_symtab): Return a ctf_psymtab.
10504 (scan_partial_symbols): Update.
10505
c3693a1d
TT
105062020-01-26 Tom Tromey <tom@tromey.com>
10507
10508 * xcoffread.c (xcoff_start_psymtab): Use new.
10509 * psymtab.c (partial_symtab::partial_symtab): New constructor,
10510 renamed from start_psymtab_common.
10511 * psympriv.h (struct partial_symtab): Add new constructor.
10512 (start_psymtab_common): Don't declare.
10513 * mdebugread.c (parse_partial_symbols): Use new.
10514 * dwarf2read.c (create_partial_symtab): Use new.
10515 * dbxread.c (start_psymtab): Use new.
10516 * ctfread.c (create_partial_symtab): Use new.
10517
32caafd0
TT
105182020-01-26 Tom Tromey <tom@tromey.com>
10519
10520 * xcoffread.c (xcoff_end_psymtab): Use new.
10521 * psymtab.c (start_psymtab_common): Use new.
10522 (partial_symtab::partial_symtab): Rename from allocate_psymtab.
10523 Update.
10524 * psympriv.h (struct partial_symtab): Add parameters to
10525 constructor. Don't inline.
10526 (allocate_psymtab): Don't declare.
10527 * mdebugread.c (new_psymtab): Use new.
10528 * dwarf2read.c (dwarf2_create_include_psymtab): Use new.
10529 * dbxread.c (dbx_end_psymtab): Use new.
10530
abaa2f23
TT
105312020-01-26 Tom Tromey <tom@tromey.com>
10532
10533 * psymtab.h (class psymtab_storage) <install_psymtab>: Rename from
10534 allocate_psymtab. Update documentation.
10535 * psymtab.c (psymtab_storage::install_psymtab): Rename from
10536 allocate_psymtab. Do not use new.
10537 (allocate_psymtab): Use new. Update.
10538
6d94535f
TT
105392020-01-26 Tom Tromey <tom@tromey.com>
10540
10541 * xcoffread.c (xcoff_psymtab_to_symtab_1): Update.
10542 * psymtab.c (psym_print_stats): Update.
10543 * psympriv.h (struct partial_symtab) <readin,
10544 psymtabs_addrmap_supported, anonymous>: Now bool.
10545 * mdebugread.c (psymtab_to_symtab_1): Update.
10546 * dwarf2read.c (create_type_unit_group, create_partial_symtab)
10547 (build_type_psymtabs_reader, psymtab_to_symtab_1)
10548 (process_full_comp_unit, process_full_type_unit): Update.
10549 * dbxread.c (dbx_psymtab_to_symtab_1): Update.
10550 * ctfread.c (psymtab_to_symtab): Update.
10551
6f17252b
TT
105522020-01-26 Tom Tromey <tom@tromey.com>
10553
10554 * mdebugread.c (parse_partial_symbols): Use discard_psymtab.
10555 * psymtab.h (class psymtab_storage) <free_psymtabs>: Remove.
10556 * psymtab.c (psymtab_storage): Delete psymtabs.
10557 (psymtab_storage::allocate_psymtab): Use new.
10558 (psymtab_storage::discard_psymtab): Use delete.
10559 * psympriv.h (struct partial_symtab): Add constructor and
10560 initializers.
10561
f6f1cebc
TT
105622020-01-26 Tom Tromey <tom@tromey.com>
10563
10564 * machoread.c: Do not include psympriv.h.
10565
e47e48f6
PW
105662020-01-25 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10567
10568 * NEWS: Mention the new option and the set/show commands.
10569
a2fedca9
PW
105702020-01-25 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10571
10572 * exec.c (exec_file_mismatch_names, exec_file_mismatch_mode)
10573 (show_exec_file_mismatch_command, set_exec_file_mismatch_command)
10574 (validate_exec_file): New variables, enums, functions.
10575 (exec_file_locate_attach, print_section_info): Style the filenames.
10576 (_initialize_exec): Install show_exec_file_mismatch_command and
10577 set_exec_file_mismatch_command.
10578 * gdbcore.h (validate_exec_file): Declare.
10579 * infcmd.c (attach_command): Call validate_exec_file.
10580 * remote.c ( remote_target::remote_add_inferior): Likewise.
10581
7ffa82e1
AB
105822020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
10583
10584 * frame.c (find_frame_sal): Move call to get_next_frame into more
10585 inner scope.
10586 * inline-frame.c (inilne_state) <inline_state>: Update argument
10587 types.
10588 (inilne_state) <skipped_symbol>: Rename to...
10589 (inilne_state) <skipped_symbols>: ...this, and change to a vector.
10590 (skip_inline_frames): Build vector of skipped symbols and use this
10591 to reate the inline_state.
10592 (inline_skipped_symbol): Add a comment and some assertions, fetch
10593 skipped symbol from the list.
10594
3d92a3e3
AB
105952020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
10596
10597 * buildsym.c (lte_is_less_than): Delete.
10598 (buildsym_compunit::end_symtab_with_blockvector): Create local
10599 lambda function to sort line table entries, and use
10600 std::stable_sort instead of std::sort.
10601 * symtab.c (find_pc_sect_line): Skip backward over end of sequence
10602 markers when looking for a previous line.
10603
94a72be7
AB
106042020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
10605
10606 * dwarf2read.c (lnp_state_machine::record_line): Include
10607 end_sequence parameter in debug print out. Record the line if we
10608 are at an end_sequence marker even if it's not the start of a
10609 statement.
10610 * symmisc.c (maintenance_print_one_line_table): Print end of
10611 sequence markers with 'END' not '0'.
10612
53af73bf
PA
106132020-01-24 Pedro Alves <palves@redhat.com>
10614
10615 PR gdb/25410
10616 * thread.c (scoped_restore_current_thread::restore): Use
10617 switch_to_inferior_no_thread.
10618 * exec.c: Include "progspace-and-thread.h".
10619 (add_target_sections, remove_target_sections):
10620 scoped_restore_current_pspace_and_thread instead of
10621 scoped_restore_current_thread.
10622 * infrun.c (handle_vfork_child_exec_or_exit): Assign the pspace
10623 and aspace to the inferior before calling clone_program_space.
10624 Remove stale comment.
10625
3050c6f4
CB
106262020-01-24 Christian Biesinger <cbiesinger@google.com>
10627
10628 * arm-nbsd-nat.c (arm_nbsd_nat_target::fetch_registers): Rename to...
10629 (arm_netbsd_nat_target::fetch_registers): ...this.
10630 (arm_nbsd_nat_target::store_registers): Rename to...
10631 (arm_netbsd_nat_target::store_registers): ...this.
10632
73685c7e
CB
106332020-01-24 Christian Biesinger <cbiesinger@google.com>
10634
10635 * arm-nbsd-nat.c: Define _KERNTYPES to get the declaration of
10636 register_t.
10637
89203d40
CB
106382020-01-24 Christian Biesinger <cbiesinger@google.com>
10639
10640 * aarch64-fbsd-tdep.c (aarch64_fbsd_iterate_over_regset_sections):
10641 Update comment.
10642 * aarch64-linux-tdep.c (aarch64_linux_iterate_over_regset_sections):
10643 Likewise.
10644 * arm-fbsd-tdep.c (arm_fbsd_iterate_over_regset_sections): Likewise.
10645 * gdbcore.h (deprecated_add_core_fns): Update comment to point to
10646 the correct replacement (iterate_over_regset_sections).
10647 * riscv-fbsd-tdep.c (riscv_fbsd_iterate_over_regset_sections):
10648 Update comment.
10649
1ba1ac88
AB
106502020-01-24 Graham Markall <graham.markall@embecosm.com>
10651
10652 PR gdb/23718
10653 * gdb/python/python.c (execute_gdb_command): Call
10654 async_enable_stdin in catch block.
10655
f3364a6d
AB
106562020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
10657
10658 * event-loop.c (start_event_loop): Wrap async_enable_stdin with
10659 SWITCH_THRU_ALL_UIS.
10660
733d0a67
AB
106612020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
10662
10663 PR tui/9765
10664 * minsyms.c (lookup_minimal_symbol_by_pc_section): Update header
10665 comment, add extra parameter, and update to store previous symbol
10666 when appropriate.
10667 * minsyms.h (lookup_minimal_symbol_by_pc_section): Update comment,
10668 add extra parameter.
10669 * tui/tui-disasm.c (tui_disassemble): Update header comment,
10670 remove unneeded parameter, add try/catch around gdb_print_insn,
10671 rewrite to add items to asm_lines vector.
10672 (tui_find_backward_disassembly_start_address): New function.
10673 (tui_find_disassembly_address): Updated throughout.
10674 (tui_disasm_window::set_contents): Update for changes to
10675 tui_disassemble.
10676 (tui_disasm_window::do_scroll_vertical): No need to adjust the
10677 number of lines to scroll.
10678
b3b3bada
SM
106792020-01-23 Simon Marchi <simon.marchi@polymtl.ca>
10680
10681 * objfiles.h (ALL_OBJFILE_OSECTIONS): Move up.
10682 (SECT_OFF_DATA): Likewise.
10683 (SECT_OFF_RODATA): Likewise.
10684 (SECT_OFF_TEXT): Likewise.
10685 (SECT_OFF_BSS): Likewise.
10686 (struct objfile) <text_section_offset, data_section_offset>: New
10687 methods.
10688 * amd64-windows-tdep.c (amd64_windows_find_unwind_info): Use
10689 objfile::text_section_offset.
10690 * coff-pe-read.c (add_pe_forwarded_sym): Likewise.
10691 * coffread.c (coff_symtab_read): Likewise.
10692 (enter_linenos): Likewise.
10693 (process_coff_symbol): Likewise.
10694 * ctfread.c (get_objfile_text_range): Likewise.
10695 * dtrace-probe.c (dtrace_probe::get_relocated_address):
10696 Use objfile::data_section_offset.
10697 * dwarf2-frame.c (execute_cfa_program): Use
10698 objfile::text_section_offset.
10699 (dwarf2_frame_find_fde): Likewise.
10700 * dwarf2read.c (create_addrmap_from_index): Likewise.
10701 (create_addrmap_from_aranges): Likewise.
10702 (dw2_find_pc_sect_compunit_symtab): Likewise.
10703 (process_psymtab_comp_unit_reader): Likewise.
10704 (add_partial_symbol): Likewise.
10705 (add_partial_subprogram): Likewise.
10706 (process_full_comp_unit): Likewise.
10707 (read_file_scope): Likewise.
10708 (read_func_scope): Likewise.
10709 (read_lexical_block_scope): Likewise.
10710 (read_call_site_scope): Likewise.
10711 (dwarf2_rnglists_process): Likewise.
10712 (dwarf2_ranges_process): Likewise.
10713 (dwarf2_ranges_read): Likewise.
10714 (dwarf_decode_lines_1): Likewise.
10715 (new_symbol): Likewise.
10716 (dwarf2_fetch_die_loc_sect_off): Likewise.
10717 (dwarf2_per_cu_text_offset): Likewise.
10718 * hppa-bsd-tdep.c (hppabsd_find_global_pointer): Likewise.
10719 * hppa-tdep.c (read_unwind_info): Likewise.
10720 * ia64-tdep.c (ia64_find_unwind_table): Likewise.
10721 * psympriv.h (struct partial_symtab): Likewise.
10722 * psymtab.c (find_pc_sect_psymtab): Likewise.
10723 * solib-svr4.c (enable_break): Likewise.
10724 * stap-probe.c (relocate_address): Use
10725 objfile::data_section_offset.
10726 * xcoffread.c (enter_line_range): Use
10727 objfile::text_section_offset.
10728 (read_xcoff_symtab): Likewise.
10729
ab53f382
SM
107302020-01-23 Simon Marchi <simon.marchi@efficios.com>
10731
10732 * darwin-nat.c (darwin_nat_target::wait_1): Move `inf`
10733 declaration to narrower scopes.
10734
e7eee665
SM
107352020-01-23 Simon Marchi <simon.marchi@efficios.com>
10736
10737 * darwin-nat.h (struct darwin_exception_msg, enum
10738 darwin_msg_state, struct darwin_thread_info, darwin_thread_t):
10739 Move up.
10740 (class darwin_nat_target) <wait_1, check_new_threads,
10741 decode_exception_message, decode_message, stop_inferior,
10742 init_thread_list, ptrace_him, cancel_breakpoint>: Declare.
10743 * darwin-nat.c (darwin_check_new_threads): Rename to...
10744 (darwin_nat_target::check_new_threads): ... this.
10745 (darwin_suspend_inferior_it): Remove.
10746 (darwin_decode_exception_message): Rename to...
10747 (darwin_nat_target::decode_exception_message): ... this.
10748 (darwin_nat_target::resume): Pass target to find_inferior_ptid.
10749 (darwin_decode_message): Rename to...
10750 (darwin_nat_target::decode_message): ... this.
10751 (cancel_breakpoint): Rename to...
10752 (darwin_nat_target::cancel_breakpoint): ... this.
10753 (darwin_wait): Rename to...
10754 (darwin_nat_target::wait_1): ... this. Use range-based for loop
10755 instead of iterate_over_inferiors.
10756 (darwin_nat_target::wait): Call wait_1 instead of darwin_wait.
10757 (darwin_stop_inferior): Rename to...
10758 (darwin_nat_target::stop_inferior): ... this.
10759 (darwin_nat_target::kill): Call wait_1 instead of darwin_wait.
10760 (darwin_init_thread_list): Rename to...
10761 (darwin_nat_target::init_thread_list): ... this.
10762 (darwin_ptrace_him): Rename to...
10763 (darwin_nat_target::ptrace_him): ... this.
10764 (darwin_nat_target::create_inferior): Pass lambda function to
10765 fork_inferior.
10766 (darwin_nat_target::detach): Call stop_inferior instead of
10767 darwin_stop_inferior.
10768 * fork-inferior.h (fork_inferior): Change init_trace_fun
10769 parameter to gdb::function_view.
10770 * fork-inferior.c (fork_inferior): Likewise.
10771
c162ed3e
HD
107722020-01-23 Hannes Domani <ssbssa@yahoo.de>
10773
10774 * i386-cygwin-tdep.c (core_process_module_section): Update.
10775 * windows-nat.c (struct lm_info_windows): Add text_offset.
10776 (windows_xfer_shared_libraries): Update.
10777 * windows-tdep.c (windows_xfer_shared_library):
10778 Add text_offset_cached argument.
10779 * windows-tdep.h (windows_xfer_shared_library): Update.
10780
a1237872
SM
107812020-01-21 Simon Marchi <simon.marchi@efficios.com>
10782
10783 * gdbarch.sh: Add declaration for _initialize_gdbarch.
10784
b3ee6dd9
SM
107852020-01-21 Simon Marchi <simon.marchi@efficios.com>
10786
10787 * remote-sim.c (check_for_duplicate_sim_descriptor): Remove.
10788 (get_sim_inferior_data): Remove use of iterate_over_inferiors,
10789 replace with range-based for.
10790 (gdbsim_interrupt_inferior): Remove.
10791 (gdbsim_target::interrupt): Replace iterate_over_inferiors use
10792 with a range-based for. Inline code from
10793 gdbsim_interrupt_inferior.
10794
f9fac3c8
SM
107952020-01-21 Simon Marchi <simon.marchi@efficios.com>
10796
10797 * infrun.c (proceed): Fix indentation.
10798
f6474de9
TT
107992020-01-21 Tom Tromey <tromey@adacore.com>
10800
10801 * source-cache.c (source_cache::ensure): Call ext_lang_colorize.
10802 * python/python.c (python_extension_ops): Update.
10803 (gdbpy_colorize): New function.
10804 * python/lib/gdb/__init__.py (colorize): New function.
10805 * extension.h (ext_lang_colorize): Declare.
10806 * extension.c (ext_lang_colorize): New function.
10807 * extension-priv.h (struct extension_language_ops) <colorize>: New
10808 member.
10809 * cli/cli-style.c (_initialize_cli_style): Update help text.
10810
f0c702d4
LM
108112020-01-21 Luis Machado <luis.machado@linaro.org>
10812
10813 * aarch64-tdep.c (struct aarch64_displaced_step_closure)
10814 <cond>: Change type to bool.
10815 (aarch64_displaced_step_b_cond): Update cond to use bool type.
10816 (aarch64_displaced_step_cb): Likewise.
10817 (aarch64_displaced_step_tb): Likewise.
10818
1ab139e5
LM
108192020-01-21 Luis Machado <luis.machado@linaro.org>
10820
10821 * aarch64-tdep.c (aarch64_displaced_step_fixup): Add more debugging
10822 output.
10823
0c271889
LM
108242020-01-21 Luis Machado <luis.machado@linaro.org>
10825
10826 * aarch64-tdep.c (struct aarch64_displaced_step_closure )
10827 <pc_adjust>: Adjust the documentation.
10828 (aarch64_displaced_step_fixup): Check if PC really moved before
10829 adjusting it.
10830
4d89c1c7
TT
108312020-01-19 Tom Tromey <tom@tromey.com>
10832
10833 * disasm.c (~gdb_disassembler): New destructor.
10834 (gdb_buffered_insn_length): Call disassemble_free_target.
10835 * disasm.h (class gdb_disassembler): Declare destructor. Use
10836 DISABLE_COPY_AND_ASSIGN.
10837
c0ab21c2
TT
108382020-01-19 Tom Tromey <tom@tromey.com>
10839
10840 * dwarf2read.c (abbrev_table_up): Move typedef earlier.
10841 (die_reader_func_ftype): Remove.
10842 (cutu_reader): New class.
10843 (dw2_get_file_names_reader): Remove "data" parameter.
10844 (dw2_get_file_names): Use cutu_reader.
10845 (create_debug_type_hash_table): Update.
10846 (read_cutu_die_from_dwo): Update comment.
10847 (lookup_dwo_unit): Add dwo_name parameter.
10848 (cutu_reader::init_tu_and_read_dwo_dies): Now a method. Remove
10849 die_reader_func_ftype and data parameters.
10850 (cutu_reader::cutu_reader): Rename from init_cutu_and_read_dies.
10851 Remove die_reader_func_ftype and data parameters.
10852 (~cutu_reader): New; from init_cutu_and_read_dies.
10853 (cutu_reader::cutu_reader): Rename from
10854 init_cutu_and_read_dies_no_follow. Remove die_reader_func_ftype
10855 and data parameters.
10856 (init_cutu_and_read_dies_simple): Remove.
10857 (struct process_psymtab_comp_unit_data): Remove.
10858 (process_psymtab_comp_unit_reader): Remove data parameter; add
10859 want_partial_unit and pretend_language parameters.
10860 (process_psymtab_comp_unit): Use cutu_reader.
10861 (build_type_psymtabs_reader): Remove data parameter.
10862 (build_type_psymtabs_1): Use cutu_reader.
10863 (process_skeletonless_type_unit): Likewise.
10864 (load_partial_comp_unit_reader): Remove.
10865 (load_partial_comp_unit): Use cutu_reader.
10866 (load_full_comp_unit_reader): Remove.
10867 (load_full_comp_unit): Use cutu_reader.
10868 (struct create_dwo_cu_data): Remove.
10869 (create_dwo_cu_reader): Remove datap parameter; add dwo_file and
10870 dwo_unit parameters.
10871 (create_cus_hash_table): Use cutu_reader.
10872 (struct dwarf2_read_addr_index_data): Remove.
10873 (dwarf2_read_addr_index_reader): Remove.
10874 (dwarf2_read_addr_index): Use cutu_reader.
10875 (read_signatured_type_reader): Remove.
10876 (read_signatured_type): Use cutu_reader.
10877
45bbae5c
TT
108782020-01-19 Tom Tromey <tom@tromey.com>
10879
10880 * tui/tui.c (tui_show_assembly): Use tui_suppress_output.
10881 * tui/tui-wingeneral.h (class tui_suppress_output): New.
10882 (tui_wrefresh): Declare.
10883 * tui/tui-wingeneral.c (suppress_output): New global.
10884 (tui_suppress_output, ~tui_suppress_output): New constructor and
10885 destructor.
10886 (tui_wrefresh): New function.
10887 (tui_gen_win_info::refresh_window): Use tui_wrefresh.
10888 (tui_gen_win_info::make_window): Call wnoutrefresh when needed.
10889 * tui/tui-regs.h (struct tui_data_window) <no_refresh>: Declare
10890 method.
10891 * tui/tui-regs.c (tui_data_window::erase_data_content): Call
10892 tui_wrefresh.
10893 (tui_data_window::no_refresh): New method.
10894 (tui_data_item_window::refresh_window): Call tui_wrefresh.
10895 (tui_reg_command): Use tui_suppress_output
10896 * tui/tui-layout.c (tui_set_layout): Use tui_suppress_output.
10897 * tui/tui-data.h (struct tui_gen_win_info) <no_refresh>: New
10898 method.
10899 * tui/tui-command.c (tui_refresh_cmd_win): Call tui_wrefresh.
10900
4f13c1c0
TT
109012020-01-19 Tom Tromey <tom@tromey.com>
10902
10903 * tui/tui-winsource.c (tui_update_source_windows_with_line):
10904 Handle case where symtab is null.
10905
fa47e446
SM
109062020-01-19 Simon Marchi <simon.marchi@polymtl.ca>
10907
10908 * linux-fork.c (one_fork_p): Simplify.
10909
26f42329
SM
109102020-01-17 Simon Marchi <simon.marchi@efficios.com>
10911
10912 * top.c (struct qt_args): Remove.
10913 (kill_or_detach): Change return type to void, replace `void *`
10914 parameter with a proper one.
10915 (print_inferior_quit_action): Likewise.
10916 (quit_confirm): Use range-based for loop to iterate over inferiors.
10917 (quit_force): Likewise.
10918
a9ac81b1
SM
109192020-01-17 Simon Marchi <simon.marchi@efficios.com>
10920
10921 * mi/mi-main.c (run_one_inferior): Change return type to void, replace
10922 `void *` parameter with proper parameters.
10923 (mi_cmd_exec_run): Use range-based loop to iterate over inferiors.
10924 (print_one_inferior): Change return type to void, replace `void *`
10925 parameter with proper parameters.
10926 (mi_cmd_list_thread_groups): Use range-based loop to iterate over
10927 inferiors.
10928 (get_other_inferior): Remove.
10929 (mi_cmd_remove_inferior): Use range-based loop to iterate over
10930 inferiors.
10931
788eca49
SM
109322020-01-17 Simon Marchi <simon.marchi@efficios.com>
10933
10934 * mi/mi-interp.c (report_initial_inferior): Remove.
10935 (mi_interp::init): Use range-based for to iterate over inferiors.
10936
d9bc85b6
SM
109372020-01-17 Simon Marchi <simon.marchi@efficios.com>
10938
10939 * python/py-inferior.c (build_inferior_list): Remove.
10940 (gdbpy_ref): Use range-based for loop to iterate over inferiors.
10941
40c94099
CB
109422020-01-16 Christian Biesinger <cbiesinger@google.com>
10943
10944 * btrace.c (btrace_compute_ftrace_1): Fix spelling error (Unkown).
10945 (btrace_stitch_trace): Likewise.
10946 * charset.c (intermediate_encoding): Likewise (vaild).
10947 * nat/linux-btrace.c (linux_read_pt): Likewise (Unkown).
10948 * python/py-record-btrace.c (struct PyMethodDef): Likewise (occurences).
10949 * record-btrace.c (record_btrace_print_conf): Likewise (unkown).
10950
e0cdfe3c
HD
109512020-01-16 Hannes Domani <ssbssa@yahoo.de>
10952
10953 * windows-tdep.c (windows_get_tlb_type):
10954 Add rtl_user_process_parameters type.
10955
790f1718 109562020-01-16 Pedro Alves <palves@redhat.com>
aac66a4c 10957 Norbert Lange <nolange79@gmail.com>
790f1718
PA
10958
10959 PR build/24805
10960 * gdbsupport/gdb_proc_service.h (PS_EXPORT): New.
10961 (ps_get_thread_area, ps_getpid, ps_lcontinue, ps_lgetfpregs)
10962 (ps_lgetregs, ps_lsetfpregs, ps_lsetregs, ps_lstop, ps_pcontinue)
10963 (ps_pdread, ps_pdwrite, ps_pglobal_lookup, ps_pstop, ps_ptread)
10964 (ps_ptwrite, ps_lgetxregs, ps_lgetxregsize, ps_lsetxregs)
10965 (ps_plog): Redeclare exported functions with default visibility.
10966
3112ed97
NA
109672020-01-16 Nitika Achra <Nitika.Achra@amd.com>
10968
10969 * dwarf2loc.c (decode_debug_loclists_addresses): Handle
10970 DW_LLE_base_addressx, DW_LLE_startx_length, DW_LLE_start_length.
10971
8dc3273e
SM
109722020-01-15 Simon Marchi <simon.marchi@efficios.com>
10973
10974 * infcmd.c (post_create_inferior): Use get_thread_regcache
10975 instead of get_current_regcache.
10976
ff47f4f0
TT
109772020-01-14 Tom Tromey <tom@tromey.com>
10978
10979 PR symtab/12535:
10980 * python/python.c (gdbpy_decode_line): Treat empty string the same
10981 as no argument.
10982
975f45b7
TT
109832020-01-14 Tom Tromey <tom@tromey.com>
10984
10985 * Makefile.in (CLIBS): Remove second use of $(LIBIBERTY).
10986
25e57356
TT
109872020-01-14 Tom Tromey <tom@tromey.com>
10988
10989 * nat/linux-btrace.c: Don't include <config.h>.
10990 * nat/linux-ptrace.c: Don't include <config.h>.
10991 * nat/x86-linux-dregs.c: Don't include <config.h>.
10992
05ea2a05
TT
109932020-01-14 Tom Tromey <tom@tromey.com>
10994
10995 * configure: Rebuild.
10996 * configure.ac: Move many checks to ../gdbsupport/common.m4.
10997
01027315
TT
109982020-01-14 Tom Tromey <tom@tromey.com>
10999
11000 * nat/x86-linux-dregs.c: Include configh.h.
11001 * nat/linux-ptrace.c: Include configh.h.
11002 * nat/linux-btrace.c: Include configh.h.
11003 * defs.h: Include config.h, bfd.h.
11004 * configure.ac: Don't source common.host.
11005 (CONFIG_OBS, CONFIG_SRCS): Remove gdbsupport files.
11006 * configure: Rebuild.
11007 * acinclude.m4: Update path.
11008 * Makefile.in (SUPPORT, LIBSUPPORT, INCSUPPORT): New variables.
11009 (CONFIG_SRC_SUBDIR): Remove gdbsupport.
11010 (INTERNAL_CFLAGS_BASE): Add INCSUPPORT.
11011 (CLIBS): Add LIBSUPPORT.
11012 (CDEPS): Likewise.
11013 (COMMON_SFILES): Remove gdbsupport files.
11014 (HFILES_NO_SRCDIR): Likewise.
11015 (stamp-version): Update path to create-version.sh.
11016 (ALLDEPFILES): Remove gdbsupport files.
11017
b2ceabe8
TT
110182020-01-14 Tom Tromey <tom@tromey.com>
11019
11020 * gdbsupport/common.m4 (GDB_AC_COMMON): Define WIN32APILIBS and
11021 USE_WIN32API when needed.
11022 * configure.ac (USE_WIN32API): Don't define.
11023 (WIN32LIBS): Use WIN32APILIBS.
11024 * configure: Rebuild.
11025
25c51f71
TT
110262020-01-14 Tom Tromey <tom@tromey.com>
11027
11028 * configure: Rebuild.
11029 * gdbsupport/common.m4 (GDB_AC_COMMON): Fix indentation.
11030
717c684d
BE
110312020-01-14 Bernd Edlinger <bernd.edlinger@hotmail.de>
11032
11033 * skip.c (skip_function_command): Make skip w/o arguments use the
11034 name of the inlined function if pc is inside any inlined function.
11035
7da6a5b9
LM
110362020-01-14 Luis Machado <luis.machado@linaro.org>
11037
11038 * inf-ptrace.c (inf_ptrace_target::resume): Update comments.
11039 * infrun.c (resume_1): Likewise.
11040 (handle_inferior_event): Remove stale comment.
11041 * linux-nat.c (linux_nat_target::resume): Update comments.
11042 (save_stop_reason): Likewise.
11043 (linux_nat_filter_event): Likewise.
11044 * linux-nat.h (struct lwp_info) <stop_pc>, <stop_reason>: Likewise.
11045
44e4c775
AB
110462020-01-13 Andrew Burgess <andrew.burgess@embecosm.com>
11047
11048 * elfread.c (record_minimal_symbol): Set section index to 0 for
11049 non-allocatable sections.
11050
18a8505e
AT
11051
110522020-01-13 Ali Tamur <tamur@google.com>
11053
11054 * dwarf2read.c (dwarf2_debug_sections): Add debug_str_offsets sections.
11055 (dwarf2_cu): Add str_offsets_base field. Change the type of addr_base
11056 to gdb::optional. Update comments.
11057 (dwo_file): Update comments.
11058 (read_attribute): Update API to take an additional out parameter,
11059 need_reprocess. This is used to mark attributes that need other
11060 attributes (e.g. str_offsets_base) for correct computation which may not
11061 have been read yet.
11062 (read_attribute_reprocess): New function declaration.
11063 (read_addr_index): Likewise.
11064 (read_dwo_str_index): Likewise.
11065 (read_stub_str_index): Likewise.
11066 (dwarf2_per_objfile::locate_sections): Handle debug_str_offsets section.
11067 (lookup_addr_base): New function definition.
11068 (lookup_ranges_base): Likewise.
11069 (read_cutu_die_from_dwo): Use the new functions: lookup_addr_base,
11070 lookup_ranges_base.
11071 (init_cutu_and_read_dies): Update comments.
11072 (init_cutu_and_read_dies_no_follow): Change API to take parent compile
11073 unit. This is used to inherit parent's str_offsets_base and addr_base.
11074 Update comments.
11075 (init_cutu_and_read_dies_simple): Reflect API changes.
11076 (skip_one_die): Reflect API changes. Handle DW_FORM_rnglistx.
11077 (create_cus_hash_table): Change API to take parent compile unit.
11078 Reflect API changes.
11079 (open_and_init_dwo_file): Reflect API changes.
11080 (dwarf2_get_pc_bounds): Update comments.
11081 (dwarf2_record_block_ranges): Likewise.
11082 (read_full_die_1): Change implementation to reprocess attributes that
11083 need str_offsets_base and addr_base.
11084 (partial_die_info::read): Likewise.
11085 (read_attribute_reprocess): New function definition.
11086 (read_attribute_value): Change API to take an additional out parameter,
11087 need_reprocess. Handle DW_FORM_rnglistx. No longer trigger an error
11088 when a non-dwo compile unit has index based attributes.
11089 (read_attribute): Reflect API changes.
11090 (read_addr_index_1): Reflect API changes. Update comments.
11091 (dwarf2_read_addr_index_data): Reflect API changes.
11092 (dwarf2_read_addr_index): Likewise.
11093 (read_str_index): Change API and implementation. This becomes a helper
11094 to be used by the new string index related methods. Update error
11095 message and comments.
11096 (read_dwo_str_index): New function definition.
11097 (read_stub_str_index): Likewise.
11098 * dwarf2read.h (dwarf2_per_objfile): Add str_offsets field.
11099 * symfile.h (dwarf2_debug_sections): Likewise.
11100 * xcoffread.c (dwarf2_debug_sections): Likewise.
11101
0cac9354
SM
111022020-01-13 Simon Marchi <simon.marchi@efficios.com>
11103
11104 * gdbcore.h (struct core_fns) <core_read_registers>: Change
11105 core_reg_sect type to gdb_byte *.
11106 * arm-nbsd-nat.c (fetch_elfcore_registers): Likewise.
11107 * cris-tdep.c (fetch_core_registers): Likewise.
11108 * corelow.c (core_target::get_core_register_section): Change
11109 type of `contents` to gdb::byte_vector.
11110
9a6d629c
AB
111112020-01-13 Andrew Burgess <andrew.burgess@embecosm.com>
11112
11113 * tui/tui-wingeneral.c (box_win): Position the title in the center
11114 of the border.
11115
d8b2f9e3
SM
111162020-01-13 Simon Marchi <simon.marchi@polymtl.ca>
11117
11118 * corelow.c (core_target::get_core_register_section): Use
11119 std::vector instead of alloca.
11120
bb564c58
SM
111212020-01-13 Simon Marchi <simon.marchi@efficios.com>
11122
11123 * warning.m4: Add -Wmissing-declarations to build_warnings.
11124 * configure: Re-generate.
11125
6b366111
SM
111262020-01-13 Simon Marchi <simon.marchi@efficios.com>
11127
11128 * python/python.c (init__gdb_module): Add declaration.
11129
6c265988
SM
111302020-01-13 Simon Marchi <simon.marchi@efficios.com>
11131
11132 * aarch64-fbsd-nat.c (_initialize_aarch64_fbsd_nat): Add declaration.
11133 * aarch64-fbsd-tdep.c (_initialize_aarch64_fbsd_tdep): Add declaration.
11134 * aarch64-linux-nat.c (_initialize_aarch64_linux_nat): Add declaration.
11135 * aarch64-linux-tdep.c (_initialize_aarch64_linux_tdep): Add declaration.
11136 * aarch64-newlib-tdep.c (_initialize_aarch64_newlib_tdep): Add declaration.
11137 * aarch64-tdep.c (_initialize_aarch64_tdep): Add declaration.
11138 * ada-exp.y (_initialize_ada_exp): Add declaration.
11139 * ada-lang.c (_initialize_ada_language): Add declaration.
11140 * ada-tasks.c (_initialize_tasks): Add declaration.
11141 * agent.c (_initialize_agent): Add declaration.
11142 * aix-thread.c (_initialize_aix_thread): Add declaration.
11143 * alpha-bsd-nat.c (_initialize_alphabsd_nat): Add declaration.
11144 * alpha-linux-nat.c (_initialize_alpha_linux_nat): Add declaration.
11145 * alpha-linux-tdep.c (_initialize_alpha_linux_tdep): Add declaration.
11146 * alpha-nbsd-tdep.c (_initialize_alphanbsd_tdep): Add declaration.
11147 * alpha-obsd-tdep.c (_initialize_alphaobsd_tdep): Add declaration.
11148 * alpha-tdep.c (_initialize_alpha_tdep): Add declaration.
11149 * amd64-darwin-tdep.c (_initialize_amd64_darwin_tdep): Add declaration.
11150 * amd64-dicos-tdep.c (_initialize_amd64_dicos_tdep): Add declaration.
11151 * amd64-fbsd-nat.c (_initialize_amd64fbsd_nat): Add declaration.
11152 * amd64-fbsd-tdep.c (_initialize_amd64fbsd_tdep): Add declaration.
11153 * amd64-linux-nat.c (_initialize_amd64_linux_nat): Add declaration.
11154 * amd64-linux-tdep.c (_initialize_amd64_linux_tdep): Add declaration.
11155 * amd64-nbsd-nat.c (_initialize_amd64nbsd_nat): Add declaration.
11156 * amd64-nbsd-tdep.c (_initialize_amd64nbsd_tdep): Add declaration.
11157 * amd64-obsd-nat.c (_initialize_amd64obsd_nat): Add declaration.
11158 * amd64-obsd-tdep.c (_initialize_amd64obsd_tdep): Add declaration.
11159 * amd64-sol2-tdep.c (_initialize_amd64_sol2_tdep): Add declaration.
11160 * amd64-tdep.c (_initialize_amd64_tdep): Add declaration.
11161 * amd64-windows-nat.c (_initialize_amd64_windows_nat): Add declaration.
11162 * amd64-windows-tdep.c (_initialize_amd64_windows_tdep): Add declaration.
11163 * annotate.c (_initialize_annotate): Add declaration.
11164 * arc-newlib-tdep.c (_initialize_arc_newlib_tdep): Add declaration.
11165 * arc-tdep.c (_initialize_arc_tdep): Add declaration.
11166 * arch-utils.c (_initialize_gdbarch_utils): Add declaration.
11167 * arm-fbsd-nat.c (_initialize_arm_fbsd_nat): Add declaration.
11168 * arm-fbsd-tdep.c (_initialize_arm_fbsd_tdep): Add declaration.
11169 * arm-linux-nat.c (_initialize_arm_linux_nat): Add declaration.
11170 * arm-linux-tdep.c (_initialize_arm_linux_tdep): Add declaration.
11171 * arm-nbsd-nat.c (_initialize_arm_netbsd_nat): Add declaration.
11172 * arm-nbsd-tdep.c (_initialize_arm_netbsd_tdep): Add declaration.
11173 * arm-obsd-tdep.c (_initialize_armobsd_tdep): Add declaration.
11174 * arm-pikeos-tdep.c (_initialize_arm_pikeos_tdep): Add declaration.
11175 * arm-symbian-tdep.c (_initialize_arm_symbian_tdep): Add declaration.
11176 * arm-tdep.c (_initialize_arm_tdep): Add declaration.
11177 * arm-wince-tdep.c (_initialize_arm_wince_tdep): Add declaration.
11178 * auto-load.c (_initialize_auto_load): Add declaration.
11179 * auxv.c (_initialize_auxv): Add declaration.
11180 * avr-tdep.c (_initialize_avr_tdep): Add declaration.
11181 * ax-gdb.c (_initialize_ax_gdb): Add declaration.
11182 * bfin-linux-tdep.c (_initialize_bfin_linux_tdep): Add declaration.
11183 * bfin-tdep.c (_initialize_bfin_tdep): Add declaration.
11184 * break-catch-sig.c (_initialize_break_catch_sig): Add declaration.
11185 * break-catch-syscall.c (_initialize_break_catch_syscall): Add declaration.
11186 * break-catch-throw.c (_initialize_break_catch_throw): Add declaration.
11187 * breakpoint.c (_initialize_breakpoint): Add declaration.
11188 * bsd-uthread.c (_initialize_bsd_uthread): Add declaration.
11189 * btrace.c (_initialize_btrace): Add declaration.
11190 * charset.c (_initialize_charset): Add declaration.
11191 * cli/cli-cmds.c (_initialize_cli_cmds): Add declaration.
11192 * cli/cli-dump.c (_initialize_cli_dump): Add declaration.
11193 * cli/cli-interp.c (_initialize_cli_interp): Add declaration.
11194 * cli/cli-logging.c (_initialize_cli_logging): Add declaration.
11195 * cli/cli-script.c (_initialize_cli_script): Add declaration.
11196 * cli/cli-style.c (_initialize_cli_style): Add declaration.
11197 * coff-pe-read.c (_initialize_coff_pe_read): Add declaration.
11198 * coffread.c (_initialize_coffread): Add declaration.
11199 * compile/compile-cplus-types.c (_initialize_compile_cplus_types): Add declaration.
11200 * compile/compile.c (_initialize_compile): Add declaration.
11201 * complaints.c (_initialize_complaints): Add declaration.
11202 * completer.c (_initialize_completer): Add declaration.
11203 * copying.c (_initialize_copying): Add declaration.
11204 * corefile.c (_initialize_core): Add declaration.
11205 * corelow.c (_initialize_corelow): Add declaration.
11206 * cp-abi.c (_initialize_cp_abi): Add declaration.
11207 * cp-namespace.c (_initialize_cp_namespace): Add declaration.
11208 * cp-support.c (_initialize_cp_support): Add declaration.
11209 * cp-valprint.c (_initialize_cp_valprint): Add declaration.
11210 * cris-linux-tdep.c (_initialize_cris_linux_tdep): Add declaration.
11211 * cris-tdep.c (_initialize_cris_tdep): Add declaration.
11212 * csky-linux-tdep.c (_initialize_csky_linux_tdep): Add declaration.
11213 * csky-tdep.c (_initialize_csky_tdep): Add declaration.
11214 * ctfread.c (_initialize_ctfread): Add declaration.
11215 * d-lang.c (_initialize_d_language): Add declaration.
11216 * darwin-nat-info.c (_initialize_darwin_info_commands): Add declaration.
11217 * darwin-nat.c (_initialize_darwin_nat): Add declaration.
11218 * dbxread.c (_initialize_dbxread): Add declaration.
11219 * dcache.c (_initialize_dcache): Add declaration.
11220 * disasm-selftests.c (_initialize_disasm_selftests): Add declaration.
11221 * disasm.c (_initialize_disasm): Add declaration.
11222 * dtrace-probe.c (_initialize_dtrace_probe): Add declaration.
11223 * dummy-frame.c (_initialize_dummy_frame): Add declaration.
11224 * dwarf-index-cache.c (_initialize_index_cache): Add declaration.
11225 * dwarf-index-write.c (_initialize_dwarf_index_write): Add declaration.
11226 * dwarf2-frame-tailcall.c (_initialize_tailcall_frame): Add declaration.
11227 * dwarf2-frame.c (_initialize_dwarf2_frame): Add declaration.
11228 * dwarf2expr.c (_initialize_dwarf2expr): Add declaration.
11229 * dwarf2loc.c (_initialize_dwarf2loc): Add declaration.
11230 * dwarf2read.c (_initialize_dwarf2_read): Add declaration.
11231 * elfread.c (_initialize_elfread): Add declaration.
11232 * exec.c (_initialize_exec): Add declaration.
11233 * extension.c (_initialize_extension): Add declaration.
11234 * f-lang.c (_initialize_f_language): Add declaration.
11235 * f-valprint.c (_initialize_f_valprint): Add declaration.
11236 * fbsd-nat.c (_initialize_fbsd_nat): Add declaration.
11237 * fbsd-tdep.c (_initialize_fbsd_tdep): Add declaration.
11238 * filesystem.c (_initialize_filesystem): Add declaration.
11239 * findcmd.c (_initialize_mem_search): Add declaration.
11240 * findvar.c (_initialize_findvar): Add declaration.
11241 * fork-child.c (_initialize_fork_child): Add declaration.
11242 * frame-base.c (_initialize_frame_base): Add declaration.
11243 * frame-unwind.c (_initialize_frame_unwind): Add declaration.
11244 * frame.c (_initialize_frame): Add declaration.
11245 * frv-linux-tdep.c (_initialize_frv_linux_tdep): Add declaration.
11246 * frv-tdep.c (_initialize_frv_tdep): Add declaration.
11247 * ft32-tdep.c (_initialize_ft32_tdep): Add declaration.
11248 * gcore.c (_initialize_gcore): Add declaration.
11249 * gdb-demangle.c (_initialize_gdb_demangle): Add declaration.
11250 * gdb_bfd.c (_initialize_gdb_bfd): Add declaration.
11251 * gdbarch-selftests.c (_initialize_gdbarch_selftests): Add declaration.
11252 * gdbarch.c (_initialize_gdbarch): Add declaration.
11253 * gdbtypes.c (_initialize_gdbtypes): Add declaration.
11254 * gnu-nat.c (_initialize_gnu_nat): Add declaration.
11255 * gnu-v2-abi.c (_initialize_gnu_v2_abi): Add declaration.
11256 * gnu-v3-abi.c (_initialize_gnu_v3_abi): Add declaration.
11257 * go-lang.c (_initialize_go_language): Add declaration.
11258 * go32-nat.c (_initialize_go32_nat): Add declaration.
11259 * guile/guile.c (_initialize_guile): Add declaration.
11260 * h8300-tdep.c (_initialize_h8300_tdep): Add declaration.
11261 * hppa-linux-nat.c (_initialize_hppa_linux_nat): Add declaration.
11262 * hppa-linux-tdep.c (_initialize_hppa_linux_tdep): Add declaration.
11263 * hppa-nbsd-nat.c (_initialize_hppanbsd_nat): Add declaration.
11264 * hppa-nbsd-tdep.c (_initialize_hppanbsd_tdep): Add declaration.
11265 * hppa-obsd-nat.c (_initialize_hppaobsd_nat): Add declaration.
11266 * hppa-obsd-tdep.c (_initialize_hppabsd_tdep): Add declaration.
11267 * hppa-tdep.c (_initialize_hppa_tdep): Add declaration.
11268 * i386-bsd-nat.c (_initialize_i386bsd_nat): Add declaration.
11269 * i386-cygwin-tdep.c (_initialize_i386_cygwin_tdep): Add declaration.
11270 * i386-darwin-nat.c (_initialize_i386_darwin_nat): Add declaration.
11271 * i386-darwin-tdep.c (_initialize_i386_darwin_tdep): Add declaration.
11272 * i386-dicos-tdep.c (_initialize_i386_dicos_tdep): Add declaration.
11273 * i386-fbsd-nat.c (_initialize_i386fbsd_nat): Add declaration.
11274 * i386-fbsd-tdep.c (_initialize_i386fbsd_tdep): Add declaration.
11275 * i386-gnu-nat.c (_initialize_i386gnu_nat): Add declaration.
11276 * i386-gnu-tdep.c (_initialize_i386gnu_tdep): Add declaration.
11277 * i386-go32-tdep.c (_initialize_i386_go32_tdep): Add declaration.
11278 * i386-linux-nat.c (_initialize_i386_linux_nat): Add declaration.
11279 * i386-linux-tdep.c (_initialize_i386_linux_tdep): Add declaration.
11280 * i386-nbsd-nat.c (_initialize_i386nbsd_nat): Add declaration.
11281 * i386-nbsd-tdep.c (_initialize_i386nbsd_tdep): Add declaration.
11282 * i386-nto-tdep.c (_initialize_i386nto_tdep): Add declaration.
11283 * i386-obsd-nat.c (_initialize_i386obsd_nat): Add declaration.
11284 * i386-obsd-tdep.c (_initialize_i386obsd_tdep): Add declaration.
11285 * i386-sol2-nat.c (_initialize_amd64_sol2_nat): Add declaration.
11286 * i386-sol2-tdep.c (_initialize_i386_sol2_tdep): Add declaration.
11287 * i386-tdep.c (_initialize_i386_tdep): Add declaration.
11288 * i386-windows-nat.c (_initialize_i386_windows_nat): Add declaration.
11289 * ia64-libunwind-tdep.c (_initialize_libunwind_frame): Add declaration.
11290 * ia64-linux-nat.c (_initialize_ia64_linux_nat): Add declaration.
11291 * ia64-linux-tdep.c (_initialize_ia64_linux_tdep): Add declaration.
11292 * ia64-tdep.c (_initialize_ia64_tdep): Add declaration.
11293 * ia64-vms-tdep.c (_initialize_ia64_vms_tdep): Add declaration.
11294 * infcall.c (_initialize_infcall): Add declaration.
11295 * infcmd.c (_initialize_infcmd): Add declaration.
11296 * inflow.c (_initialize_inflow): Add declaration.
11297 * infrun.c (_initialize_infrun): Add declaration.
11298 * interps.c (_initialize_interpreter): Add declaration.
11299 * iq2000-tdep.c (_initialize_iq2000_tdep): Add declaration.
11300 * jit.c (_initialize_jit): Add declaration.
11301 * language.c (_initialize_language): Add declaration.
11302 * linux-fork.c (_initialize_linux_fork): Add declaration.
11303 * linux-nat.c (_initialize_linux_nat): Add declaration.
11304 * linux-tdep.c (_initialize_linux_tdep): Add declaration.
11305 * linux-thread-db.c (_initialize_thread_db): Add declaration.
11306 * lm32-tdep.c (_initialize_lm32_tdep): Add declaration.
11307 * m2-lang.c (_initialize_m2_language): Add declaration.
11308 * m32c-tdep.c (_initialize_m32c_tdep): Add declaration.
11309 * m32r-linux-nat.c (_initialize_m32r_linux_nat): Add declaration.
11310 * m32r-linux-tdep.c (_initialize_m32r_linux_tdep): Add declaration.
11311 * m32r-tdep.c (_initialize_m32r_tdep): Add declaration.
11312 * m68hc11-tdep.c (_initialize_m68hc11_tdep): Add declaration.
11313 * m68k-bsd-nat.c (_initialize_m68kbsd_nat): Add declaration.
11314 * m68k-bsd-tdep.c (_initialize_m68kbsd_tdep): Add declaration.
11315 * m68k-linux-nat.c (_initialize_m68k_linux_nat): Add declaration.
11316 * m68k-linux-tdep.c (_initialize_m68k_linux_tdep): Add declaration.
11317 * m68k-tdep.c (_initialize_m68k_tdep): Add declaration.
11318 * machoread.c (_initialize_machoread): Add declaration.
11319 * macrocmd.c (_initialize_macrocmd): Add declaration.
11320 * macroscope.c (_initialize_macroscope): Add declaration.
11321 * maint-test-options.c (_initialize_maint_test_options): Add declaration.
11322 * maint-test-settings.c (_initialize_maint_test_settings): Add declaration.
11323 * maint.c (_initialize_maint_cmds): Add declaration.
11324 * mdebugread.c (_initialize_mdebugread): Add declaration.
11325 * memattr.c (_initialize_mem): Add declaration.
11326 * mep-tdep.c (_initialize_mep_tdep): Add declaration.
11327 * mi/mi-cmd-env.c (_initialize_mi_cmd_env): Add declaration.
11328 * mi/mi-cmds.c (_initialize_mi_cmds): Add declaration.
11329 * mi/mi-interp.c (_initialize_mi_interp): Add declaration.
11330 * mi/mi-main.c (_initialize_mi_main): Add declaration.
11331 * microblaze-linux-tdep.c (_initialize_microblaze_linux_tdep): Add declaration.
11332 * microblaze-tdep.c (_initialize_microblaze_tdep): Add declaration.
11333 * mips-fbsd-nat.c (_initialize_mips_fbsd_nat): Add declaration.
11334 * mips-fbsd-tdep.c (_initialize_mips_fbsd_tdep): Add declaration.
11335 * mips-linux-nat.c (_initialize_mips_linux_nat): Add declaration.
11336 * mips-linux-tdep.c (_initialize_mips_linux_tdep): Add declaration.
11337 * mips-nbsd-nat.c (_initialize_mipsnbsd_nat): Add declaration.
11338 * mips-nbsd-tdep.c (_initialize_mipsnbsd_tdep): Add declaration.
11339 * mips-sde-tdep.c (_initialize_mips_sde_tdep): Add declaration.
11340 * mips-tdep.c (_initialize_mips_tdep): Add declaration.
11341 * mips64-obsd-nat.c (_initialize_mips64obsd_nat): Add declaration.
11342 * mips64-obsd-tdep.c (_initialize_mips64obsd_tdep): Add declaration.
11343 * mipsread.c (_initialize_mipsread): Add declaration.
11344 * mn10300-linux-tdep.c (_initialize_mn10300_linux_tdep): Add declaration.
11345 * mn10300-tdep.c (_initialize_mn10300_tdep): Add declaration.
11346 * moxie-tdep.c (_initialize_moxie_tdep): Add declaration.
11347 * msp430-tdep.c (_initialize_msp430_tdep): Add declaration.
11348 * nds32-tdep.c (_initialize_nds32_tdep): Add declaration.
11349 * nios2-linux-tdep.c (_initialize_nios2_linux_tdep): Add declaration.
11350 * nios2-tdep.c (_initialize_nios2_tdep): Add declaration.
11351 * nto-procfs.c (_initialize_procfs): Add declaration.
11352 * objc-lang.c (_initialize_objc_language): Add declaration.
11353 * observable.c (_initialize_observer): Add declaration.
11354 * opencl-lang.c (_initialize_opencl_language): Add declaration.
11355 * or1k-linux-tdep.c (_initialize_or1k_linux_tdep): Add declaration.
11356 * or1k-tdep.c (_initialize_or1k_tdep): Add declaration.
11357 * osabi.c (_initialize_gdb_osabi): Add declaration.
11358 * osdata.c (_initialize_osdata): Add declaration.
11359 * p-valprint.c (_initialize_pascal_valprint): Add declaration.
11360 * parse.c (_initialize_parse): Add declaration.
11361 * ppc-fbsd-nat.c (_initialize_ppcfbsd_nat): Add declaration.
11362 * ppc-fbsd-tdep.c (_initialize_ppcfbsd_tdep): Add declaration.
11363 * ppc-linux-nat.c (_initialize_ppc_linux_nat): Add declaration.
11364 * ppc-linux-tdep.c (_initialize_ppc_linux_tdep): Add declaration.
11365 * ppc-nbsd-nat.c (_initialize_ppcnbsd_nat): Add declaration.
11366 * ppc-nbsd-tdep.c (_initialize_ppcnbsd_tdep): Add declaration.
11367 * ppc-obsd-nat.c (_initialize_ppcobsd_nat): Add declaration.
11368 * ppc-obsd-tdep.c (_initialize_ppcobsd_tdep): Add declaration.
11369 * printcmd.c (_initialize_printcmd): Add declaration.
11370 * probe.c (_initialize_probe): Add declaration.
11371 * proc-api.c (_initialize_proc_api): Add declaration.
11372 * proc-events.c (_initialize_proc_events): Add declaration.
11373 * proc-service.c (_initialize_proc_service): Add declaration.
11374 * procfs.c (_initialize_procfs): Add declaration.
11375 * producer.c (_initialize_producer): Add declaration.
11376 * psymtab.c (_initialize_psymtab): Add declaration.
11377 * python/python.c (_initialize_python): Add declaration.
11378 * ravenscar-thread.c (_initialize_ravenscar): Add declaration.
11379 * record-btrace.c (_initialize_record_btrace): Add declaration.
11380 * record-full.c (_initialize_record_full): Add declaration.
11381 * record.c (_initialize_record): Add declaration.
11382 * regcache-dump.c (_initialize_regcache_dump): Add declaration.
11383 * regcache.c (_initialize_regcache): Add declaration.
11384 * reggroups.c (_initialize_reggroup): Add declaration.
11385 * remote-notif.c (_initialize_notif): Add declaration.
11386 * remote-sim.c (_initialize_remote_sim): Add declaration.
11387 * remote.c (_initialize_remote): Add declaration.
11388 * reverse.c (_initialize_reverse): Add declaration.
11389 * riscv-fbsd-nat.c (_initialize_riscv_fbsd_nat): Add declaration.
11390 * riscv-fbsd-tdep.c (_initialize_riscv_fbsd_tdep): Add declaration.
11391 * riscv-linux-nat.c (_initialize_riscv_linux_nat): Add declaration.
11392 * riscv-linux-tdep.c (_initialize_riscv_linux_tdep): Add declaration.
11393 * riscv-tdep.c (_initialize_riscv_tdep): Add declaration.
11394 * rl78-tdep.c (_initialize_rl78_tdep): Add declaration.
11395 * rs6000-aix-tdep.c (_initialize_rs6000_aix_tdep): Add declaration.
11396 * rs6000-lynx178-tdep.c (_initialize_rs6000_lynx178_tdep):
11397 Add declaration.
11398 * rs6000-nat.c (_initialize_rs6000_nat): Add declaration.
11399 * rs6000-tdep.c (_initialize_rs6000_tdep): Add declaration.
11400 * run-on-main-thread.c (_initialize_run_on_main_thread): Add declaration.
11401 * rust-exp.y (_initialize_rust_exp): Add declaration.
11402 * rx-tdep.c (_initialize_rx_tdep): Add declaration.
11403 * s12z-tdep.c (_initialize_s12z_tdep): Add declaration.
11404 * s390-linux-nat.c (_initialize_s390_nat): Add declaration.
11405 * s390-linux-tdep.c (_initialize_s390_linux_tdep): Add declaration.
11406 * s390-tdep.c (_initialize_s390_tdep): Add declaration.
11407 * score-tdep.c (_initialize_score_tdep): Add declaration.
11408 * ser-go32.c (_initialize_ser_dos): Add declaration.
11409 * ser-mingw.c (_initialize_ser_windows): Add declaration.
11410 * ser-pipe.c (_initialize_ser_pipe): Add declaration.
11411 * ser-tcp.c (_initialize_ser_tcp): Add declaration.
11412 * ser-uds.c (_initialize_ser_socket): Add declaration.
11413 * ser-unix.c (_initialize_ser_hardwire): Add declaration.
11414 * serial.c (_initialize_serial): Add declaration.
11415 * sh-linux-tdep.c (_initialize_sh_linux_tdep): Add declaration.
11416 * sh-nbsd-nat.c (_initialize_shnbsd_nat): Add declaration.
11417 * sh-nbsd-tdep.c (_initialize_shnbsd_tdep): Add declaration.
11418 * sh-tdep.c (_initialize_sh_tdep): Add declaration.
11419 * skip.c (_initialize_step_skip): Add declaration.
11420 * sol-thread.c (_initialize_sol_thread): Add declaration.
11421 * solib-aix.c (_initialize_solib_aix): Add declaration.
11422 * solib-darwin.c (_initialize_darwin_solib): Add declaration.
11423 * solib-dsbt.c (_initialize_dsbt_solib): Add declaration.
11424 * solib-frv.c (_initialize_frv_solib): Add declaration.
11425 * solib-svr4.c (_initialize_svr4_solib): Add declaration.
11426 * solib-target.c (_initialize_solib_target): Add declaration.
11427 * solib.c (_initialize_solib): Add declaration.
11428 * source-cache.c (_initialize_source_cache): Add declaration.
11429 * source.c (_initialize_source): Add declaration.
11430 * sparc-linux-nat.c (_initialize_sparc_linux_nat): Add declaration.
11431 * sparc-linux-tdep.c (_initialize_sparc_linux_tdep): Add declaration.
11432 * sparc-nat.c (_initialize_sparc_nat): Add declaration.
11433 * sparc-nbsd-nat.c (_initialize_sparcnbsd_nat): Add declaration.
11434 * sparc-nbsd-tdep.c (_initialize_sparcnbsd_tdep): Add declaration.
11435 * sparc-obsd-tdep.c (_initialize_sparc32obsd_tdep): Add declaration.
11436 * sparc-sol2-tdep.c (_initialize_sparc_sol2_tdep): Add declaration.
11437 * sparc-tdep.c (_initialize_sparc_tdep): Add declaration.
11438 * sparc64-fbsd-nat.c (_initialize_sparc64fbsd_nat): Add declaration.
11439 * sparc64-fbsd-tdep.c (_initialize_sparc64fbsd_tdep): Add declaration.
11440 * sparc64-linux-nat.c (_initialize_sparc64_linux_nat): Add declaration.
11441 * sparc64-linux-tdep.c (_initialize_sparc64_linux_tdep): Add declaration.
11442 * sparc64-nat.c (_initialize_sparc64_nat): Add declaration.
11443 * sparc64-nbsd-nat.c (_initialize_sparc64nbsd_nat): Add declaration.
11444 * sparc64-nbsd-tdep.c (_initialize_sparc64nbsd_tdep): Add declaration.
11445 * sparc64-obsd-nat.c (_initialize_sparc64obsd_nat): Add declaration.
11446 * sparc64-obsd-tdep.c (_initialize_sparc64obsd_tdep): Add declaration.
11447 * sparc64-sol2-tdep.c (_initialize_sparc64_sol2_tdep): Add declaration.
11448 * sparc64-tdep.c (_initialize_sparc64_adi_tdep): Add declaration.
11449 * stabsread.c (_initialize_stabsread): Add declaration.
11450 * stack.c (_initialize_stack): Add declaration.
11451 * stap-probe.c (_initialize_stap_probe): Add declaration.
11452 * std-regs.c (_initialize_frame_reg): Add declaration.
11453 * symfile-debug.c (_initialize_symfile_debug): Add declaration.
11454 * symfile-mem.c (_initialize_symfile_mem): Add declaration.
11455 * symfile.c (_initialize_symfile): Add declaration.
11456 * symmisc.c (_initialize_symmisc): Add declaration.
11457 * symtab.c (_initialize_symtab): Add declaration.
11458 * target.c (_initialize_target): Add declaration.
11459 * target-connection.c (_initialize_target_connection): Add
11460 declaration.
11461 * target-dcache.c (_initialize_target_dcache): Add declaration.
11462 * target-descriptions.c (_initialize_target_descriptions): Add declaration.
11463 * thread.c (_initialize_thread): Add declaration.
11464 * tic6x-linux-tdep.c (_initialize_tic6x_linux_tdep): Add declaration.
11465 * tic6x-tdep.c (_initialize_tic6x_tdep): Add declaration.
11466 * tilegx-linux-nat.c (_initialize_tile_linux_nat): Add declaration.
11467 * tilegx-linux-tdep.c (_initialize_tilegx_linux_tdep): Add declaration.
11468 * tilegx-tdep.c (_initialize_tilegx_tdep): Add declaration.
11469 * tracectf.c (_initialize_ctf): Add declaration.
11470 * tracefile-tfile.c (_initialize_tracefile_tfile): Add declaration.
11471 * tracefile.c (_initialize_tracefile): Add declaration.
11472 * tracepoint.c (_initialize_tracepoint): Add declaration.
11473 * tui/tui-hooks.c (_initialize_tui_hooks): Add declaration.
11474 * tui/tui-interp.c (_initialize_tui_interp): Add declaration.
11475 * tui/tui-layout.c (_initialize_tui_layout): Add declaration.
11476 * tui/tui-regs.c (_initialize_tui_regs): Add declaration.
11477 * tui/tui-stack.c (_initialize_tui_stack): Add declaration.
11478 * tui/tui-win.c (_initialize_tui_win): Add declaration.
11479 * tui/tui.c (_initialize_tui): Add declaration.
11480 * typeprint.c (_initialize_typeprint): Add declaration.
11481 * ui-style.c (_initialize_ui_style): Add declaration.
11482 * unittests/array-view-selftests.c (_initialize_array_view_selftests): Add declaration.
11483 * unittests/child-path-selftests.c (_initialize_child_path_selftests): Add declaration.
11484 * unittests/cli-utils-selftests.c (_initialize_cli_utils_selftests): Add declaration.
11485 * unittests/common-utils-selftests.c (_initialize_common_utils_selftests): Add declaration.
11486 * unittests/copy_bitwise-selftests.c (_initialize_copy_bitwise_utils_selftests): Add declaration.
11487 * unittests/environ-selftests.c (_initialize_environ_selftests): Add declaration.
11488 * unittests/filtered_iterator-selftests.c
11489 (_initialize_filtered_iterator_selftests): Add declaration.
11490 * unittests/format_pieces-selftests.c (_initialize_format_pieces_selftests): Add declaration.
11491 * unittests/function-view-selftests.c (_initialize_function_view_selftests): Add declaration.
11492 * unittests/help-doc-selftests.c (_initialize_help_doc_selftests): Add declaration.
11493 * unittests/lookup_name_info-selftests.c (_initialize_lookup_name_info_selftests): Add declaration.
11494 * unittests/main-thread-selftests.c
11495 (_initialize_main_thread_selftests): Add declaration.
11496 * unittests/memory-map-selftests.c (_initialize_memory_map_selftests): Add declaration.
11497 * unittests/memrange-selftests.c (_initialize_memrange_selftests): Add declaration.
11498 * unittests/mkdir-recursive-selftests.c (_initialize_mkdir_recursive_selftests): Add declaration.
11499 * unittests/observable-selftests.c (_initialize_observer_selftest): Add declaration.
11500 * unittests/offset-type-selftests.c (_initialize_offset_type_selftests): Add declaration.
11501 * unittests/optional-selftests.c (_initialize_optional_selftests): Add declaration.
11502 * unittests/parse-connection-spec-selftests.c (_initialize_parse_connection_spec_selftests): Add declaration.
11503 * unittests/rsp-low-selftests.c (_initialize_rsp_low_selftests): Add declaration.
11504 * unittests/scoped_fd-selftests.c (_initialize_scoped_fd_selftests): Add declaration.
11505 * unittests/scoped_mmap-selftests.c (_initialize_scoped_mmap_selftests): Add declaration.
11506 * unittests/scoped_restore-selftests.c (_initialize_scoped_restore_selftests): Add declaration.
11507 * unittests/string_view-selftests.c (_initialize_string_view_selftests): Add declaration.
11508 * unittests/style-selftests.c (_initialize_style_selftest): Add declaration.
11509 * unittests/tracepoint-selftests.c (_initialize_tracepoint_selftests): Add declaration.
11510 * unittests/tui-selftests.c (_initialize_tui_selftest): Add
11511 declaration.
11512 * unittests/unpack-selftests.c (_initialize_unpack_selftests): Add declaration.
11513 * unittests/utils-selftests.c (_initialize_utils_selftests): Add declaration.
11514 * unittests/vec-utils-selftests.c (_initialize_vec_utils_selftests): Add declaration.
11515 * unittests/xml-utils-selftests.c (_initialize_xml_utils): Add declaration.
11516 * user-regs.c (_initialize_user_regs): Add declaration.
11517 * utils.c (_initialize_utils): Add declaration.
11518 * v850-tdep.c (_initialize_v850_tdep): Add declaration.
11519 * valops.c (_initialize_valops): Add declaration.
11520 * valprint.c (_initialize_valprint): Add declaration.
11521 * value.c (_initialize_values): Add declaration.
11522 * varobj.c (_initialize_varobj): Add declaration.
11523 * vax-bsd-nat.c (_initialize_vaxbsd_nat): Add declaration.
11524 * vax-nbsd-tdep.c (_initialize_vaxnbsd_tdep): Add declaration.
11525 * vax-tdep.c (_initialize_vax_tdep): Add declaration.
11526 * windows-nat.c (_initialize_windows_nat): Add declaration.
11527 (_initialize_check_for_gdb_ini): Add declaration.
11528 (_initialize_loadable): Add declaration.
11529 * windows-tdep.c (_initialize_windows_tdep): Add declaration.
11530 * x86-bsd-nat.c (_initialize_x86_bsd_nat): Add declaration.
11531 * x86-linux-nat.c (_initialize_x86_linux_nat): Add declaration.
11532 * xcoffread.c (_initialize_xcoffread): Add declaration.
11533 * xml-support.c (_initialize_xml_support): Add declaration.
11534 * xstormy16-tdep.c (_initialize_xstormy16_tdep): Add declaration.
11535 * xtensa-linux-nat.c (_initialize_xtensa_linux_nat): Add declaration.
11536 * xtensa-linux-tdep.c (_initialize_xtensa_linux_tdep): Add declaration.
11537 * xtensa-tdep.c (_initialize_xtensa_tdep): Add declaration.
11538
e2de1eec
SM
115392020-01-13 Simon Marchi <simon.marchi@polymtl.ca>
11540
11541 * regformats/regdat.sh: Generate declaration for init function.
11542
e0037b4c
SM
115432020-01-13 Simon Marchi <simon.marchi@polymtl.ca>
11544
11545 * remote-sim.c (next_pid, INITIAL_PID, sim_inferior_data): Move
11546 up.
11547 (gdbsim_target) <get_inferior_data_by_ptid, resume_one_inferior,
11548 close_one_inferior>: New methods.
11549 (get_sim_inferior_data_by_ptid): Move to gdbsim_target,
11550 pass down target to find_inferior_pid.
11551 (gdbsim_target::fetch_registers, gdbsim_target::store_registers):
11552 Pass down target to find_inferior_ptid.
11553 (gdbsim_target::create_inferior): Pass down target to
11554 add_thread_silent.
11555 (gdbsim_close_inferior): Move to gdbsim_close_inferior, pass
11556 target down to find_inferior_ptid and switch_to_thread.
11557 (gdbsim_target::close): Update to call close_one_inferior.
11558 (struct resume_data): Remove.
11559 (gdbsim_resume_inferior): Move to gdbsim_target. Take arguments
11560 directly, rather than through a void pointer.
11561 (gdbsim_target::resume): Update to call resume_one_inferior.
11562
58920b5b
SM
115632020-01-12 Simon Marchi <simon.marchi@polymtl.ca>
11564
11565 * gdbsupport/gdb_wait.c: Include gdb_wait.h.
11566
4ec89149
PA
115672020-01-12 Pedro Alves <palves@redhat.com>
11568
11569 * bsd-kvm.c (bsd_kvm_target::close): Call exit_inferior_silent
11570 directly for the current inferior instead of
11571 discard_all_inferiors.
11572 (discard_all_inferiors): Delete.
11573
7c392d1d
TT
115742020-01-11 Tom Tromey <tom@tromey.com>
11575
11576 * tui/tui-wingeneral.c (box_win): Check cli_styling.
11577 * tui/tui-winsource.c (tui_source_window_base::refill): Use
11578 deprecated_safe_get_selected_frame.
11579
d9ebdab7
TBA
115802020-01-10 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
11581
11582 * inferior.c (print_inferior): Switch inferior before printing it.
11583
f3c469b9
PA
115842020-01-10 Aleksandar Paunovic <aleksandar.paunovic@intel.com>
11585 Pedro Alves <palves@redhat.com>
11586
11587 * progspace-and-thread.c (switch_to_program_space_and_thread):
11588 Assert there's an inferior for PSPACE. Use
11589 switch_to_inferior_no_thread to switch the inferior too.
11590 * progspace.c (program_space::~program_space): Call
11591 clear_symtab_users here, with SYMFILE_DEFER_BP_RESET.
11592 (program_space::free_all_objfiles): Don't call clear_symtab_users
11593 here.
11594 * symfile.c (symbol_file_clear): Call clear_symtab_users here.
11595
65c574f6
PA
115962020-01-10 Pedro Alves <palves@redhat.com>
11597
11598 * NEWS: Mention multi-target debugging, "info connections", and
11599 "add-inferior -no-connection".
11600
2f4fcf00
PA
116012020-01-10 Pedro Alves <palves@redhat.com>
11602
11603 * infrun.c: Include "target-connection.h".
11604 (check_multi_target_resumption): New.
11605 (proceed): Call it.
11606 * target-connection.c (make_target_connection_string): Make
11607 extern.
11608 * target-connection.h (make_target_connection_string): Declare.
11609
121b3efd
PA
116102020-01-10 Pedro Alves <palves@redhat.com>
11611
11612 * Makefile.in (COMMON_SFILES): Add target-connection.c.
11613 * inferior.c (uiout_field_connection): New function.
11614 (print_inferior): Add new "connection-id" column.
11615 (add_inferior_command): Show connection number/string of added
11616 inferior.
11617 * process-stratum-target.h
11618 (process_stratum_target::connection_string): New virtual method.
11619 (process_stratum_target::connection_number): New field.
11620 * remote.c (remote_target::connection_string): New override.
11621 * target-connection.c: New file.
11622 * target-connection.h: New file.
11623 * target.c (decref_target): Remove process_stratum targets from
11624 the connection list.
11625 (target_stack::push): Add process_stratum targets to the
11626 connection list.
11627
4f837581
PA
116282020-01-10 Pedro Alves <palves@redhat.com>
11629
11630 Revert:
11631 2016-04-12 Pedro Alves <palves@redhat.com>
11632 * serial.c (serial_open, serial_fdopen_ops, do_serial_close):
11633 Remove references to name.
11634 * serial.h (struct serial) <name>: Delete.
11635
f4ec508e
PA
116362020-01-10 Pedro Alves <palves@redhat.com>
11637
11638 * gdbarch-selftests.c (register_to_value_test): Remove "target
11639 already pushed" check.
11640
5b6d1e4f
PA
116412020-01-10 Pedro Alves <palves@redhat.com>
11642 John Baldwin <jhb@FreeBSD.org>
11643
11644 * aarch64-linux-nat.c
11645 (aarch64_linux_nat_target::thread_architecture): Adjust.
11646 * ada-tasks.c (print_ada_task_info): Adjust find_thread_ptid call.
11647 (task_command_1): Likewise.
11648 * aix-thread.c (sync_threadlists, aix_thread_target::resume)
11649 (aix_thread_target::wait, aix_thread_target::fetch_registers)
11650 (aix_thread_target::store_registers)
11651 (aix_thread_target::thread_alive): Adjust.
11652 * amd64-fbsd-tdep.c: Include "inferior.h".
11653 (amd64fbsd_get_thread_local_address): Pass down target.
11654 * amd64-linux-nat.c (ps_get_thread_area): Use ps_prochandle
11655 thread's gdbarch instead of target_gdbarch.
11656 * break-catch-sig.c (signal_catchpoint_print_it): Adjust call to
11657 get_last_target_status.
11658 * break-catch-syscall.c (print_it_catch_syscall): Likewise.
11659 * breakpoint.c (breakpoints_should_be_inserted_now): Consider all
11660 inferiors.
11661 (update_inserted_breakpoint_locations): Skip if inferiors with no
11662 execution.
11663 (update_global_location_list): When handling moribund locations,
11664 find representative inferior for location's pspace, and use thread
11665 count of its process_stratum target.
11666 * bsd-kvm.c (bsd_kvm_target_open): Pass target down.
11667 * bsd-uthread.c (bsd_uthread_target::wait): Use
11668 as_process_stratum_target and adjust thread_change_ptid and
11669 add_thread calls.
11670 (bsd_uthread_target::update_thread_list): Use
11671 as_process_stratum_target and adjust find_thread_ptid,
11672 thread_change_ptid and add_thread calls.
11673 * btrace.c (maint_btrace_packet_history_cmd): Adjust
11674 find_thread_ptid call.
11675 * corelow.c (add_to_thread_list): Adjust add_thread call.
11676 (core_target_open): Adjust add_thread_silent and thread_count
11677 calls.
11678 (core_target::pid_to_str): Adjust find_inferior_ptid call.
11679 * ctf.c (ctf_target_open): Adjust add_thread_silent call.
11680 * event-top.c (async_disconnect): Pop targets from all inferiors.
11681 * exec.c (add_target_sections): Push exec target on all inferiors
11682 sharing the program space.
11683 (remove_target_sections): Remove the exec target from all
11684 inferiors sharing the program space.
11685 (exec_on_vfork): New.
11686 * exec.h (exec_on_vfork): Declare.
11687 * fbsd-nat.c (fbsd_add_threads): Add fbsd_nat_target parameter.
11688 Pass it down.
11689 (fbsd_nat_target::update_thread_list): Adjust.
11690 (fbsd_nat_target::resume): Adjust.
11691 (fbsd_handle_debug_trap): Add fbsd_nat_target parameter. Pass it
11692 down.
11693 (fbsd_nat_target::wait, fbsd_nat_target::post_attach): Adjust.
11694 * fbsd-tdep.c (fbsd_corefile_thread): Adjust
11695 get_thread_arch_regcache call.
11696 * fork-child.c (gdb_startup_inferior): Pass target down to
11697 startup_inferior and set_executing.
11698 * gdbthread.h (struct process_stratum_target): Forward declare.
11699 (add_thread, add_thread_silent, add_thread_with_info)
11700 (in_thread_list): Add process_stratum_target parameter.
11701 (find_thread_ptid(inferior*, ptid_t)): New overload.
11702 (find_thread_ptid, thread_change_ptid): Add process_stratum_target
11703 parameter.
11704 (all_threads()): Delete overload.
11705 (all_threads, all_non_exited_threads): Add process_stratum_target
11706 parameter.
11707 (all_threads_safe): Use brace initialization.
11708 (thread_count): Add process_stratum_target parameter.
11709 (set_resumed, set_running, set_stop_requested, set_executing)
11710 (threads_are_executing, finish_thread_state): Add
11711 process_stratum_target parameter.
11712 (switch_to_thread): Use is_current_thread.
11713 * i386-fbsd-tdep.c: Include "inferior.h".
11714 (i386fbsd_get_thread_local_address): Pass down target.
11715 * i386-linux-nat.c (i386_linux_nat_target::low_resume): Adjust.
11716 * inf-child.c (inf_child_target::maybe_unpush_target): Remove
11717 have_inferiors check.
11718 * inf-ptrace.c (inf_ptrace_target::create_inferior)
11719 (inf_ptrace_target::attach): Adjust.
11720 * infcall.c (run_inferior_call): Adjust.
11721 * infcmd.c (run_command_1): Pass target to
11722 scoped_finish_thread_state.
11723 (proceed_thread_callback): Skip inferiors with no execution.
11724 (continue_command): Rename 'all_threads' local to avoid hiding
11725 'all_threads' function. Adjust get_last_target_status call.
11726 (prepare_one_step): Adjust set_running call.
11727 (signal_command): Use user_visible_resume_target. Compare thread
11728 pointers instead of inferior_ptid.
11729 (info_program_command): Adjust to pass down target.
11730 (attach_command): Mark target's 'thread_executing' flag.
11731 (stop_current_target_threads_ns): New, factored out from ...
11732 (interrupt_target_1): ... this. Switch inferior before making
11733 target calls.
11734 * inferior-iter.h
11735 (struct all_inferiors_iterator, struct all_inferiors_range)
11736 (struct all_inferiors_safe_range)
11737 (struct all_non_exited_inferiors_range): Filter on
11738 process_stratum_target too. Remove explicit.
11739 * inferior.c (inferior::inferior): Push dummy target on target
11740 stack.
11741 (find_inferior_pid, find_inferior_ptid, number_of_live_inferiors):
11742 Add process_stratum_target parameter, and pass it down.
11743 (have_live_inferiors): Adjust.
11744 (switch_to_inferior_and_push_target): New.
11745 (add_inferior_command, clone_inferior_command): Handle
11746 "-no-connection" parameter. Use
11747 switch_to_inferior_and_push_target.
11748 (_initialize_inferior): Mention "-no-connection" option in
11749 the help of "add-inferior" and "clone-inferior" commands.
11750 * inferior.h: Include "process-stratum-target.h".
11751 (interrupt_target_1): Use bool.
11752 (struct inferior) <push_target, unpush_target, target_is_pushed,
11753 find_target_beneath, top_target, process_target, target_at,
11754 m_stack>: New.
11755 (discard_all_inferiors): Delete.
11756 (find_inferior_pid, find_inferior_ptid, number_of_live_inferiors)
11757 (all_inferiors, all_non_exited_inferiors): Add
11758 process_stratum_target parameter.
11759 * infrun.c: Include "gdb_select.h" and <unordered_map>.
11760 (target_last_proc_target): New global.
11761 (follow_fork_inferior): Push target on new inferior. Pass target
11762 to add_thread_silent. Call exec_on_vfork. Handle target's
11763 reference count.
11764 (follow_fork): Adjust get_last_target_status call. Also consider
11765 target.
11766 (follow_exec): Push target on new inferior.
11767 (struct execution_control_state) <target>: New field.
11768 (user_visible_resume_target): New.
11769 (do_target_resume): Call target_async.
11770 (resume_1): Set target's threads_executing flag. Consider resume
11771 target.
11772 (commit_resume_all_targets): New.
11773 (proceed): Also consider resume target. Skip threads of inferiors
11774 with no execution. Commit resumtion in all targets.
11775 (start_remote): Pass current inferior to wait_for_inferior.
11776 (infrun_thread_stop_requested): Consider target as well. Pass
11777 thread_info pointer to clear_inline_frame_state instead of ptid.
11778 (infrun_thread_thread_exit): Consider target as well.
11779 (random_pending_event_thread): New inferior parameter. Use it.
11780 (do_target_wait): Rename to ...
11781 (do_target_wait_1): ... this. Add inferior parameter, and pass it
11782 down.
11783 (threads_are_resumed_pending_p, do_target_wait): New.
11784 (prepare_for_detach): Adjust calls.
11785 (wait_for_inferior): New inferior parameter. Handle it. Use
11786 do_target_wait_1 instead of do_target_wait.
11787 (fetch_inferior_event): Adjust. Switch to representative
11788 inferior. Pass target down.
11789 (set_last_target_status): Add process_stratum_target parameter.
11790 Save target in global.
11791 (get_last_target_status): Add process_stratum_target parameter and
11792 handle it.
11793 (nullify_last_target_wait_ptid): Clear 'target_last_proc_target'.
11794 (context_switch): Check inferior_ptid == null_ptid before calling
11795 inferior_thread().
11796 (get_inferior_stop_soon): Pass down target.
11797 (wait_one): Rename to ...
11798 (poll_one_curr_target): ... this.
11799 (struct wait_one_event): New.
11800 (wait_one): New.
11801 (stop_all_threads): Adjust.
11802 (handle_no_resumed, handle_inferior_event): Adjust to consider the
11803 event's target.
11804 (switch_back_to_stepped_thread): Also consider target.
11805 (print_stop_event): Update.
11806 (normal_stop): Update. Also consider the resume target.
11807 * infrun.h (wait_for_inferior): Remove declaration.
11808 (user_visible_resume_target): New declaration.
11809 (get_last_target_status, set_last_target_status): New
11810 process_stratum_target parameter.
11811 * inline-frame.c (clear_inline_frame_state(ptid_t)): Add
11812 process_stratum_target parameter, and use it.
11813 (clear_inline_frame_state (thread_info*)): New.
11814 * inline-frame.c (clear_inline_frame_state(ptid_t)): Add
11815 process_stratum_target parameter.
11816 (clear_inline_frame_state (thread_info*)): Declare.
11817 * linux-fork.c (delete_checkpoint_command): Pass target down to
11818 find_thread_ptid.
11819 (checkpoint_command): Adjust.
11820 * linux-nat.c (linux_nat_target::follow_fork): Switch to thread
11821 instead of just tweaking inferior_ptid.
11822 (linux_nat_switch_fork): Pass target down to thread_change_ptid.
11823 (exit_lwp): Pass target down to find_thread_ptid.
11824 (attach_proc_task_lwp_callback): Pass target down to
11825 add_thread/set_running/set_executing.
11826 (linux_nat_target::attach): Pass target down to
11827 thread_change_ptid.
11828 (get_detach_signal): Pass target down to find_thread_ptid.
11829 Consider last target status's target.
11830 (linux_resume_one_lwp_throw, resume_lwp)
11831 (linux_handle_syscall_trap, linux_handle_extended_wait, wait_lwp)
11832 (stop_wait_callback, save_stop_reason, linux_nat_filter_event)
11833 (linux_nat_wait_1, resume_stopped_resumed_lwps): Pass target down.
11834 (linux_nat_target::async_wait_fd): New.
11835 (linux_nat_stop_lwp, linux_nat_target::thread_address_space): Pass
11836 target down.
11837 * linux-nat.h (linux_nat_target::async_wait_fd): Declare.
11838 * linux-tdep.c (get_thread_arch_regcache): Pass target down.
11839 * linux-thread-db.c (struct thread_db_info::process_target): New
11840 field.
11841 (add_thread_db_info): Save target.
11842 (get_thread_db_info): New process_stratum_target parameter. Also
11843 match target.
11844 (delete_thread_db_info): New process_stratum_target parameter.
11845 Also match target.
11846 (thread_from_lwp): Adjust to pass down target.
11847 (thread_db_notice_clone): Pass down target.
11848 (check_thread_db_callback): Pass down target.
11849 (try_thread_db_load_1): Always push the thread_db target.
11850 (try_thread_db_load, record_thread): Pass target down.
11851 (thread_db_target::detach): Pass target down. Always unpush the
11852 thread_db target.
11853 (thread_db_target::wait, thread_db_target::mourn_inferior): Pass
11854 target down. Always unpush the thread_db target.
11855 (find_new_threads_callback, thread_db_find_new_threads_2)
11856 (thread_db_target::update_thread_list): Pass target down.
11857 (thread_db_target::pid_to_str): Pass current inferior down.
11858 (thread_db_target::get_thread_local_address): Pass target down.
11859 (thread_db_target::resume, maintenance_check_libthread_db): Pass
11860 target down.
11861 * nto-procfs.c (nto_procfs_target::update_thread_list): Adjust.
11862 * procfs.c (procfs_target::procfs_init_inferior): Declare.
11863 (proc_set_current_signal, do_attach, procfs_target::wait): Adjust.
11864 (procfs_init_inferior): Rename to ...
11865 (procfs_target::procfs_init_inferior): ... this and adjust.
11866 (procfs_target::create_inferior, procfs_notice_thread)
11867 (procfs_do_thread_registers): Adjust.
11868 * ppc-fbsd-tdep.c: Include "inferior.h".
11869 (ppcfbsd_get_thread_local_address): Pass down target.
11870 * proc-service.c (ps_xfer_memory): Switch current inferior and
11871 program space as well.
11872 (get_ps_regcache): Pass target down.
11873 * process-stratum-target.c
11874 (process_stratum_target::thread_address_space)
11875 (process_stratum_target::thread_architecture): Pass target down.
11876 * process-stratum-target.h
11877 (process_stratum_target::threads_executing): New field.
11878 (as_process_stratum_target): New.
11879 * ravenscar-thread.c
11880 (ravenscar_thread_target::update_inferior_ptid): Pass target down.
11881 (ravenscar_thread_target::wait, ravenscar_add_thread): Pass target
11882 down.
11883 * record-btrace.c (record_btrace_target::info_record): Adjust.
11884 (record_btrace_target::record_method)
11885 (record_btrace_target::record_is_replaying)
11886 (record_btrace_target::fetch_registers)
11887 (get_thread_current_frame_id, record_btrace_target::resume)
11888 (record_btrace_target::wait, record_btrace_target::stop): Pass
11889 target down.
11890 * record-full.c (record_full_wait_1): Switch to event thread.
11891 Pass target down.
11892 * regcache.c (regcache::regcache)
11893 (get_thread_arch_aspace_regcache, get_thread_arch_regcache): Add
11894 process_stratum_target parameter and handle it.
11895 (current_thread_target): New global.
11896 (get_thread_regcache): Add process_stratum_target parameter and
11897 handle it. Switch inferior before calling target method.
11898 (get_thread_regcache): Pass target down.
11899 (get_thread_regcache_for_ptid): Pass target down.
11900 (registers_changed_ptid): Add process_stratum_target parameter and
11901 handle it.
11902 (registers_changed_thread, registers_changed): Pass target down.
11903 (test_get_thread_arch_aspace_regcache): New.
11904 (current_regcache_test): Define a couple local test_target_ops
11905 instances and use them for testing.
11906 (readwrite_regcache): Pass process_stratum_target parameter.
11907 (cooked_read_test, cooked_write_test): Pass mock_target down.
11908 * regcache.h (get_thread_regcache, get_thread_arch_regcache)
11909 (get_thread_arch_aspace_regcache): Add process_stratum_target
11910 parameter.
11911 (regcache::target): New method.
11912 (regcache::regcache, regcache::get_thread_arch_aspace_regcache)
11913 (regcache::registers_changed_ptid): Add process_stratum_target
11914 parameter.
11915 (regcache::m_target): New field.
11916 (registers_changed_ptid): Add process_stratum_target parameter.
11917 * remote.c (remote_state::supports_vCont_probed): New field.
11918 (remote_target::async_wait_fd): New method.
11919 (remote_unpush_and_throw): Add remote_target parameter.
11920 (get_current_remote_target): Adjust.
11921 (remote_target::remote_add_inferior): Push target.
11922 (remote_target::remote_add_thread)
11923 (remote_target::remote_notice_new_inferior)
11924 (get_remote_thread_info): Pass target down.
11925 (remote_target::update_thread_list): Skip threads of inferiors
11926 bound to other targets. (remote_target::close): Don't discard
11927 inferiors. (remote_target::add_current_inferior_and_thread)
11928 (remote_target::process_initial_stop_replies)
11929 (remote_target::start_remote)
11930 (remote_target::remote_serial_quit_handler): Pass down target.
11931 (remote_target::remote_unpush_target): New remote_target
11932 parameter. Unpush the target from all inferiors.
11933 (remote_target::remote_unpush_and_throw): New remote_target
11934 parameter. Pass it down.
11935 (remote_target::open_1): Check whether the current inferior has
11936 execution instead of checking whether any inferior is live. Pass
11937 target down.
11938 (remote_target::remote_detach_1): Pass down target. Use
11939 remote_unpush_target.
11940 (extended_remote_target::attach): Pass down target.
11941 (remote_target::remote_vcont_probe): Set supports_vCont_probed.
11942 (remote_target::append_resumption): Pass down target.
11943 (remote_target::append_pending_thread_resumptions)
11944 (remote_target::remote_resume_with_hc, remote_target::resume)
11945 (remote_target::commit_resume): Pass down target.
11946 (remote_target::remote_stop_ns): Check supports_vCont_probed.
11947 (remote_target::interrupt_query)
11948 (remote_target::remove_new_fork_children)
11949 (remote_target::check_pending_events_prevent_wildcard_vcont)
11950 (remote_target::remote_parse_stop_reply)
11951 (remote_target::process_stop_reply): Pass down target.
11952 (first_remote_resumed_thread): New remote_target parameter. Pass
11953 it down.
11954 (remote_target::wait_as): Pass down target.
11955 (unpush_and_perror): New remote_target parameter. Pass it down.
11956 (remote_target::readchar, remote_target::remote_serial_write)
11957 (remote_target::getpkt_or_notif_sane_1)
11958 (remote_target::kill_new_fork_children, remote_target::kill): Pass
11959 down target.
11960 (remote_target::mourn_inferior): Pass down target. Use
11961 remote_unpush_target.
11962 (remote_target::core_of_thread)
11963 (remote_target::remote_btrace_maybe_reopen): Pass down target.
11964 (remote_target::pid_to_exec_file)
11965 (remote_target::thread_handle_to_thread_info): Pass down target.
11966 (remote_target::async_wait_fd): New.
11967 * riscv-fbsd-tdep.c: Include "inferior.h".
11968 (riscv_fbsd_get_thread_local_address): Pass down target.
11969 * sol2-tdep.c (sol2_core_pid_to_str): Pass down target.
11970 * sol-thread.c (sol_thread_target::wait, ps_lgetregs, ps_lsetregs)
11971 (ps_lgetfpregs, ps_lsetfpregs, sol_update_thread_list_callback):
11972 Adjust.
11973 * solib-spu.c (spu_skip_standalone_loader): Pass down target.
11974 * solib-svr4.c (enable_break): Pass down target.
11975 * spu-multiarch.c (parse_spufs_run): Pass down target.
11976 * spu-tdep.c (spu2ppu_sniffer): Pass down target.
11977 * target-delegates.c: Regenerate.
11978 * target.c (g_target_stack): Delete.
11979 (current_top_target): Return the current inferior's top target.
11980 (target_has_execution_1): Refer to the passed-in inferior's top
11981 target.
11982 (target_supports_terminal_ours): Check whether the initial
11983 inferior was already created.
11984 (decref_target): New.
11985 (target_stack::push): Incref/decref the target.
11986 (push_target, push_target, unpush_target): Adjust.
11987 (target_stack::unpush): Defref target.
11988 (target_is_pushed): Return bool. Adjust to refer to the current
11989 inferior's target stack.
11990 (dispose_inferior): Delete, and inline parts ...
11991 (target_preopen): ... here. Only dispose of the current inferior.
11992 (target_detach): Hold strong target reference while detaching.
11993 Pass target down.
11994 (target_thread_name): Add assertion.
11995 (target_resume): Pass down target.
11996 (target_ops::beneath, find_target_at): Adjust to refer to the
11997 current inferior's target stack.
11998 (get_dummy_target): New.
11999 (target_pass_ctrlc): Pass the Ctrl-C to the first inferior that
12000 has a thread running.
12001 (initialize_targets): Rename to ...
12002 (_initialize_target): ... this.
12003 * target.h: Include "gdbsupport/refcounted-object.h".
12004 (struct target_ops): Inherit refcounted_object.
12005 (target_ops::shortname, target_ops::longname): Make const.
12006 (target_ops::async_wait_fd): New method.
12007 (decref_target): Declare.
12008 (struct target_ops_ref_policy): New.
12009 (target_ops_ref): New typedef.
12010 (get_dummy_target): Declare function.
12011 (target_is_pushed): Return bool.
12012 * thread-iter.c (all_matching_threads_iterator::m_inf_matches)
12013 (all_matching_threads_iterator::all_matching_threads_iterator):
12014 Handle filter target.
12015 * thread-iter.h (struct all_matching_threads_iterator, struct
12016 all_matching_threads_range, class all_non_exited_threads_range):
12017 Filter by target too. Remove explicit.
12018 * thread.c (threads_executing): Delete.
12019 (inferior_thread): Pass down current inferior.
12020 (clear_thread_inferior_resources): Pass down thread pointer
12021 instead of ptid_t.
12022 (add_thread_silent, add_thread_with_info, add_thread): Add
12023 process_stratum_target parameter. Use it for thread and inferior
12024 searches.
12025 (is_current_thread): New.
12026 (thread_info::deletable): Use it.
12027 (find_thread_ptid, thread_count, in_thread_list)
12028 (thread_change_ptid, set_resumed, set_running): New
12029 process_stratum_target parameter. Pass it down.
12030 (set_executing): New process_stratum_target parameter. Pass it
12031 down. Adjust reference to 'threads_executing'.
12032 (threads_are_executing): New process_stratum_target parameter.
12033 Adjust reference to 'threads_executing'.
12034 (set_stop_requested, finish_thread_state): New
12035 process_stratum_target parameter. Pass it down.
12036 (switch_to_thread): Also match inferior.
12037 (switch_to_thread): New process_stratum_target parameter. Pass it
12038 down.
12039 (update_threads_executing): Reimplement.
12040 * top.c (quit_force): Pop targets from all inferior.
12041 (gdb_init): Don't call initialize_targets.
12042 * windows-nat.c (windows_nat_target) <get_windows_debug_event>:
12043 Declare.
12044 (windows_add_thread, windows_delete_thread): Adjust.
12045 (get_windows_debug_event): Rename to ...
12046 (windows_nat_target::get_windows_debug_event): ... this. Adjust.
12047 * tracefile-tfile.c (tfile_target_open): Pass down target.
12048 * gdbsupport/common-gdbthread.h (struct process_stratum_target):
12049 Forward declare.
12050 (switch_to_thread): Add process_stratum_target parameter.
12051 * mi/mi-interp.c (mi_on_resume_1): Add process_stratum_target
12052 parameter. Use it.
12053 (mi_on_resume): Pass target down.
12054 * nat/fork-inferior.c (startup_inferior): Add
12055 process_stratum_target parameter. Pass it down.
12056 * nat/fork-inferior.h (startup_inferior): Add
12057 process_stratum_target parameter.
12058 * python/py-threadevent.c (py_get_event_thread): Pass target down.
12059
75c6c844
PA
120602020-01-10 Pedro Alves <palves@redhat.com>
12061
12062 * remote.c (remote_target::start_remote): Don't set inferior_ptid
12063 directly. Instead find the first thread in the thread list and
12064 use switch_to_thread.
12065
78f2c40a
PA
120662020-01-10 Pedro Alves <palves@redhat.com>
12067
12068 * remote.c (remote_target::remote_add_inferior): Don't bind a
12069 process to the current inferior if the current inferior is already
12070 bound to a process.
12071
e7af6c70
TBA
120722020-01-10 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
12073 Pedro Alves <palves@redhat.com>
12074
12075 * remote.c (remote_target::remote_parse_stop_reply) <W/X packets>:
12076 If no process is specified, return null_ptid instead of
12077 inferior_ptid.
12078 (remote_target::wait_as): Handle TARGET_WAITKIND_EXITED /
12079 TARGET_WAITKIND_SIGNALLED with no pid.
12080
31ba933e
PA
120812020-01-10 Pedro Alves <palves@redhat.com>
12082
12083 * remote.c (first_remote_resumed_thread): New.
12084 (remote_target::wait_as): Use it as default event_ptid instead of
12085 inferior_ptid.
12086
735fc2ca
PA
120872020-01-10 Pedro Alves <palves@redhat.com>
12088
12089 * infrun.c (handle_no_resumed): Use all_non_exited_inferiors.
12090
c17e02e1
PA
120912020-01-10 Pedro Alves <palves@redhat.com>
12092
12093 * tracefile-tfile.c (tfile_target::close): Assert that trace_fd is
12094 not -1.
12095
ab1ddbcf
PA
120962020-01-10 Pedro Alves <palves@redhat.com>
12097
12098 * break-catch-sig.c (signal_catchpoint_print_it): Don't pass a
12099 ptid to get_last_target_status.
12100 * break-catch-syscall.c (print_it_catch_syscall): Don't pass a
12101 ptid to get_last_target_status.
12102 * infcmd.c (continue_command): Don't pass a target_waitstatus to
12103 get_last_target_status.
12104 (info_program_command): Don't pass a target_waitstatus to
12105 get_last_target_status.
12106 * infrun.c (init_wait_for_inferior): Use
12107 nullify_last_target_wait_ptid.
12108 (get_last_target_status): Handle nullptr arguments.
12109 (nullify_last_target_wait_ptid): Clear target_last_waitstatus.
12110 (print_stop_event): Don't pass a ptid to get_last_target_status.
12111 (normal_stop): Don't pass a ptid to get_last_target_status.
12112 * infrun.h (get_last_target_status, set_last_target_status): Move
12113 comments here and update.
12114 (nullify_last_target_wait_ptid): Declare.
12115 * linux-fork.c (fork_load_infrun_state): Remove local extern
12116 declaration of nullify_last_target_wait_ptid.
12117 * linux-nat.c (get_detach_signal): Don't pass a target_waitstatus
12118 to get_last_target_status.
12119
f3f8ece4
PA
121202020-01-10 Pedro Alves <palves@redhat.com>
12121
12122 * gdbthread.h (scoped_restore_current_thread)
12123 <dont_restore, restore, m_dont_restore>: Declare.
12124 * thread.c (thread_alive): Add assertion. Return bool.
12125 (switch_to_thread_if_alive): New.
12126 (prune_threads): Switch inferior/thread.
12127 (print_thread_info_1): Switch thread before calling target methods.
12128 (scoped_restore_current_thread::restore): New, factored out from
12129 ...
12130 (scoped_restore_current_thread::~scoped_restore_current_thread):
12131 ... this.
12132 (scoped_restore_current_thread::scoped_restore_current_thread):
12133 Add assertion.
12134 (thread_apply_all_command, thread_select): Use
12135 switch_to_thread_if_alive.
12136 * infrun.c (proceed, restart_threads, handle_signal_stop)
12137 (switch_back_to_stepped_thread): Switch current thread before
12138 calling target methods.
12139
db2d40f7
PA
121402020-01-10 Pedro Alves <palves@redhat.com>
12141
12142 * inferior.c (switch_to_inferior_no_thread): New function,
12143 factored out from ...
12144 (inferior_command): ... here.
12145 * inferior.h (switch_to_inferior_no_thread): Declare.
12146 * mi/mi-main.c (run_one_inferior): Use
12147 switch_to_inferior_no_thread.
12148
bd420a2d
PA
121492020-01-10 Pedro Alves <palves@redhat.com>
12150
12151 * infcmd.c (kill_command): Remove dead code.
12152
ddf5db90
PA
121532020-01-10 Pedro Alves <palves@redhat.com>
12154
12155 * remote.c (remote_target::mourn_inferior): No longer check
12156 whether the target is running.
12157
5018ce90
PA
121582020-01-10 Pedro Alves <palves@redhat.com>
12159
12160 * corelow.c (core_target::has_execution): Change parameter type to
12161 inferior pointer.
12162 * inferior.c (number_of_live_inferiors): Use
12163 inferior::has_execution instead of target_has_execution_1.
12164 * inferior.h (inferior::has_execution): New.
12165 * linux-thread-db.c (thread_db_target::update_thread_list): Use
12166 inferior::has_execution instead of target_has_execution_1.
12167 * process-stratum-target.c
12168 (process_stratum_target::has_execution): Change parameter type to
12169 inferior pointer. Check the inferior's PID instead of
12170 inferior_ptid.
12171 * process-stratum-target.h
12172 (process_stratum_target::has_execution): Change parameter type to
12173 inferior pointer.
12174 * record-full.c (record_full_core_target::has_execution): Change
12175 parameter type to inferior pointer.
12176 * target.c (target_has_execution_1): Change parameter type to
12177 inferior pointer.
12178 (target_has_execution_current): Adjust.
12179 * target.h (target_ops::has_execution): Change parameter type to
12180 inferior pointer.
12181 (target_has_execution_1): Change parameter type to inferior
12182 pointer. Change return type to bool.
12183 * tracefile.h (tracefile_target::has_execution): Change parameter
12184 type to inferior pointer.
12185
74375d18
PA
121862020-01-10 Pedro Alves <palves@redhat.com>
12187
12188 * exceptions.c (print_flush): Remove current_top_target() check.
12189
acdf84a6
PA
121902020-01-10 Pedro Alves <palves@redhat.com>
12191
12192 * remote.c (show_remote_exec_file): Show the current inferior's
12193 exec-file instead of the command variable's value.
12194
ec506636
PA
121952020-01-10 Pedro Alves <palves@redhat.com>
12196
12197 * record-full.c (record_full_resume_ptid): New global.
12198 (record_full_target::resume): Set it.
12199 (record_full_wait_1): Use record_full_resume_ptid instead of
12200 inferior_ptid.
12201
873657b9
PA
122022020-01-10 Pedro Alves <palves@redhat.com>
12203
12204 * gdbthread.h (scoped_restore_current_thread)
12205 <dont_restore, restore, m_dont_restore>: Declare.
12206 * thread.c (thread_alive): Add assertion. Return bool.
12207 (switch_to_thread_if_alive): New.
12208 (prune_threads): Switch inferior/thread.
12209 (print_thread_info_1): Switch thread before calling target methods.
12210 (scoped_restore_current_thread::restore): New, factored out from
12211 ...
12212 (scoped_restore_current_thread::~scoped_restore_current_thread):
12213 ... this.
12214 (scoped_restore_current_thread::scoped_restore_current_thread):
12215 Add assertion.
12216 (thread_apply_all_command, thread_select): Use
12217 switch_to_thread_if_alive.
12218
7f0ae84c
GB
122192020-01-10 George Barrett <bob@bob131.so>
12220
12221 * stap-probe.c (stap_modify_semaphore): Don't check for null
12222 semaphores.
12223 (stap_probe::set_semaphore, stap_probe::clear_semaphore): Check
12224 for null semaphores.
12225
f5a7c406
AB
122262020-01-09 Andrew Burgess <andrew.burgess@embecosm.com>
12227
12228 * tui/tui-source.c (tui_source_window::do_scroll_vertical): Update
12229 all source windows, and maintain horizontal scroll status while
12230 doing so.
12231
9ae6bf64
TT
122322020-01-09 Tom Tromey <tom@tromey.com>
12233
12234 PR tui/18932:
12235 * tui/tui-source.c (tui_source_window::do_scroll_vertical): Call
12236 update_source_window, not print_source_lines.
12237
b2efe70c
AB
122382020-01-09 Andrew Burgess <andrew.burgess@embecosm.com>
12239
12240 * tui/tui.c (tui_enable): Register tui hooks after calling
12241 tui_display_main.
12242
5f23a082
CB
122432020-01-09 Christian Biesinger <cbiesinger@google.com>
12244
12245 * gdbsupport/common-defs.h: Don't define _FORTIFY_SOURCE on MinGW.
12246
3061113b
SM
122472020-01-08 Simon Marchi <simon.marchi@efficios.com>
12248
12249 * thread.c (print_thread_info_1): Fix indentation.
12250
57d75002
CB
122512020-01-09 Christian Biesinger <cbiesinger@google.com>
12252
12253 * symtab.c (general_symbol_info::compute_and_set_names): Move the
12254 unique_xmalloc_ptr outside the if to always free the demangled name.
12255
6a053cb1
TT
122562020-01-08 Tom Tromey <tromey@adacore.com>
12257
12258 * xcoffread.c (enter_line_range, read_xcoff_symtab)
12259 (process_xcoff_symbol, xcoff_symfile_offsets): Update.
12260 * symtab.h (MSYMBOL_VALUE_ADDRESS): Update.
12261 (struct section_offsets, ANOFFSET, SIZEOF_N_SECTION_OFFSETS):
12262 Remove.
12263 (section_offsets): New typedef.
12264 * symtab.c (fixup_section, get_msymbol_address): Update.
12265 * symmisc.c (dump_msymbols): Update.
12266 * symfile.h (relative_addr_info_to_section_offsets)
12267 (symfile_map_offsets_to_segments): Update.
12268 * symfile.c (build_section_addr_info_from_objfile)
12269 (init_objfile_sect_indices): Update.
12270 (struct place_section_arg): Change type of "offsets".
12271 (place_section): Update.
12272 (relative_addr_info_to_section_offsets): Change type of
12273 "section_offsets". Remove "num_sections" parameter.
12274 (default_symfile_offsets, syms_from_objfile_1)
12275 (set_objfile_default_section_offset): Update.
12276 (reread_symbols): No need to preserve section offsets by hand.
12277 (symfile_map_offsets_to_segments): Change type of "offsets".
12278 * stap-probe.c (relocate_address): Update.
12279 * stabsread.h (process_one_symbol): Update.
12280 * solib-target.c (struct lm_info_target) <offsets>: Change type.
12281 (solib_target_relocate_section_addresses): Update.
12282 * solib-svr4.c (enable_break, svr4_relocate_main_executable):
12283 Update.
12284 * solib-frv.c (frv_relocate_main_executable): Update.
12285 * solib-dsbt.c (dsbt_relocate_main_executable): Update.
12286 * solib-aix.c (solib_aix_get_section_offsets): Change return
12287 type.
12288 (solib_aix_solib_create_inferior_hook): Update.
12289 * remote.c (remote_target::get_offsets): Update.
12290 * psymtab.c (find_pc_sect_psymtab): Update.
12291 * psympriv.h (struct partial_symbol) <address, text_low,
12292 text_high>: Update.
12293 * objfiles.h (obj_section_offset): Update.
12294 (struct objfile) <section_offsets>: Change type.
12295 <num_sections>: Remove.
12296 (objfile_relocate): Update.
12297 * objfiles.c (entry_point_address_query): Update
12298 (relocate_one_symbol): Change type of "section_offsets".
12299 (objfile_relocate1, objfile_relocate1): Change type of
12300 "new_offsets".
12301 (objfile_rebase1): Update.
12302 * mipsread.c (mipscoff_symfile_read): Update.
12303 (read_alphacoff_dynamic_symtab): Remove "section_offsets"
12304 parameter.
12305 * mdebugread.c (parse_symbol): Change type of "section_offsets".
12306 (parse_external, psymtab_to_symtab_1): Update.
12307 * machoread.c (macho_symfile_offsets): Update.
12308 * ia64-tdep.c (ia64_find_unwind_table): Update.
12309 * hppa-tdep.c (read_unwind_info): Update.
12310 * hppa-bsd-tdep.c (hppabsd_find_global_pointer): Update.
12311 * dwarf2read.c (create_addrmap_from_index)
12312 (create_addrmap_from_aranges, dw2_find_pc_sect_compunit_symtab)
12313 (process_psymtab_comp_unit_reader, add_partial_symbol)
12314 (add_partial_subprogram, process_full_comp_unit)
12315 (read_file_scope, read_func_scope, read_lexical_block_scope)
12316 (read_call_site_scope, dwarf2_rnglists_process)
12317 (dwarf2_ranges_process, dwarf2_ranges_read)
12318 (dwarf_decode_lines_1, var_decode_location, new_symbol)
12319 (dwarf2_fetch_die_loc_sect_off, dwarf2_per_cu_text_offset):
12320 Update.
12321 * dwarf2-frame.c (execute_cfa_program, dwarf2_frame_find_fde):
12322 Update.
12323 * dtrace-probe.c (dtrace_probe::get_relocated_address): Update.
12324 * dbxread.c (read_dbx_symtab, read_ofile_symtab): Update.
12325 (process_one_symbol): Change type of "section_offsets".
12326 * ctfread.c (get_objfile_text_range): Update.
12327 * coffread.c (coff_symtab_read, enter_linenos)
12328 (process_coff_symbol): Update.
12329 * coff-pe-read.c (add_pe_forwarded_sym): Update.
12330 * amd64-windows-tdep.c (amd64_windows_find_unwind_info): Update.
12331
456e800a
TT
123322020-01-08 Tom Tromey <tromey@adacore.com>
12333
12334 * dwarf2read.c (parse_macro_definition): Use std::string.
12335 (parse_macro_definition): Likewise.
12336
6dfa2fc2
TT
123372020-01-08 Tom Tromey <tromey@adacore.com>
12338
12339 * dwarf2read.c (abbrev_table_read_table): Use std::vector.
12340 (ATTR_ALLOC_CHUNK): Remove.
12341
421d1616
TT
123422020-01-08 Tom Tromey <tromey@adacore.com>
12343
12344 * dwarf2read.c (fixup_go_packaging): Use unique_xmalloc_ptr.
12345
43816ebc
TT
123462020-01-08 Tom Tromey <tromey@adacore.com>
12347
12348 * dwarf2read.c (add_partial_symbol): Use unique_xmalloc_ptr.
12349 (dwarf2_compute_name, open_dwo_file): Likewise.
12350 (process_enumeration_scope): Use std::vector.
12351 (guess_partial_die_structure_name): Use unique_xmalloc_ptr.
12352 (partial_die_info::fixup, dwarf2_start_subfile)
12353 (guess_full_die_structure_name, dwarf2_name): Likewise.
12354 (determine_prefix): Update.
12355 (guess_full_die_structure_name): Make return type const.
12356 (partial_die_full_name): Return unique_xmalloc_ptr.
12357 (DW_FIELD_ALLOC_CHUNK): Remove.
12358
4212d509
TT
123592020-01-07 Tom Tromey <tromey@adacore.com>
12360
12361 PR build/24937:
12362 * stap-probe.c (class stap_static_probe_ops): Add constructor.
12363
06a6207a
JT
123642020-01-02 Jon Turney <jon.turney@dronecode.org.uk>
12365
12366 * cli/cli-style.c: Set cli_styling to 'true' in the Cygwin build.
12367
153d79c4
AB
123682020-01-06 Andrew Burgess <andrew.burgess@embecosm.com>
12369
12370 * stack.c (print_frame_info): Move disassemble_next_line code
12371 inside source_print block.
12372
66182876
EZ
123732020-01-06 Eli Zaretskii <eliz@gnu.org>
12374
12375 * gdbsupport/gdb_wait.c: Include <signal.h> instead of
12376 gdb/signals.h, as we are now using native signal symbols.
12377
cbfa8581
SV
123782020-01-06 Shahab Vahedi <shahab@synopsys.com>
12379
12380 * tui/tui-disasm.c (tui_disasm_window::addr_is_displayed): Avoid
12381 overflow by an early check of content vs threshold.
aac66a4c 12382 * tui/tui-source.c (tui_source_window::line_is_displayed):
cbfa8581
SV
12383 Likewise.
12384
3f602821
EZ
123852020-01-06 Eli Zaretskii <eliz@gnu.org>
12386
12387 * NEWS: Mention the recent fix of $_exitsignal on MS-Windows.
12388
a08c904d
JT
123892020-01-02 Jon Turney <jon.turney@dronecode.org.uk>
12390
12391 * coff-pe-read.c (read_pe_exported_syms): Don't try to read the
12392 export table if no section contains it's RVA.
12393
89a65580
EZ
123942020-01-06 Eli Zaretskii <eliz@gnu.org>
12395
12396 * windows-tdep.c: Fix a typo in WINDOWS_SIGABRT.
12397
8b7fcda2
HD
123982020-01-06 Hannes Domani <ssbssa@yahoo.de>
12399
12400 * source.c (print_source_lines_base): Set last_line_listed.
12401
a61b4f69
SV
124022020-01-06 Shahab Vahedi <shahab@synopsys.com>
12403
12404 * tui/tui-disasm.c: Remove trailing spaces.
12405
559e7e50
EZ
124062020-01-06 Eli Zaretskii <eliz@gnu.org>
12407 Pedro Alves <palves@redhat.com>
12408
12409 * Makefile.in (COMMON_SFILES): Add gdbsupport/gdb_wait.c.
12410 * windows-tdep.c: New enumeration of WINDOWS_SIG* signals.
12411 (windows_gdb_signal_to_target): New function, uses the above
12412 enumeration to convert GDB internal signal codes to equivalent
12413 Windows codes.
12414 (windows_init_abi): Call set_gdbarch_gdb_signal_to_target.
12415 * windows-nat.c: Include "gdb_wait.h".
12416 (get_windows_debug_event): Extract the fatal exception from the
12417 exit status and convert to the equivalent Posix signal number.
12418 * cli/cli-cmds.c (exit_status_set_internal_vars): Account for the
12419 possibility that WTERMSIG returns GDB_SIGNAL_UNKNOWN.
12420 * gdbsupport/gdb_wait.c: New file, implements
12421 windows_status_to_termsig.
12422 * gdbsupport/gdb_wait.h (WIFEXITED, WIFSIGNALED, WEXITSTATUS)
12423 (WTERMSIG) [__MINGW32__]: Separate definitions for MinGW.
12424
f2302a34
AB
124252020-01-05 Andrew Burgess <andrew.burgess@embecosm.com>
12426
12427 * tui/tui-layout.c (tui_add_win_to_layout): Use tui_set_layout not
12428 show_layout.
12429
6a5206eb
LM
124302020-01-05 Luis Machado <luis.machado@linaro.org>
12431
12432 * aarch64-linux-nat.c
12433 (aarch64_linux_nat_target::thread_architecture): Use bfd_arch_aarch64
12434 and bfd_mach_aarch64.
12435
6ec1d75e
PW
124362020-01-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
12437
12438 * ui-file.c (stdio_file::can_emit_style_escape)
12439 (tee_file::can_emit_style_escape): Ensure style is used also on
12440 gdb_stderr when gdb_stderr is a tty supporting styling, similarly
12441 to gdb_stdout.
12442 * main.c (set_gdb_data_directory): Use file style to output the
12443 warning that the given pathname is not a directory.
12444 * top.c (show_history_filename, gdb_safe_append_history)
12445 (show_gdb_datadir): Use file style.
12446
44f81a76
HD
124472020-01-03 Hannes Domani <ssbssa@yahoo.de>
12448
12449 * solib-target.c (struct lm_info_target):
12450 Change offsets to be a unique_xmalloc_ptr.
12451 (solib_target_relocate_section_addresses): Update.
12452
25057eb0
HD
124532020-01-03 Hannes Domani <ssbssa@yahoo.de>
12454
12455 * windows-nat.c (windows_clear_solib): Free so_list linked list.
12456
6e2118f5
BE
124572020-01-03 Bernd Edlinger <bernd.edlinger@hotmail.de>
12458
12459 * MAINTAINERS (Write After Approval): Add myself.
12460
8133c7dc
LM
124612020-01-02 Luis Machado <luis.machado@linaro.org>
12462
12463 * proc-service.c (get_ps_regcache): Remove reference to obsolete
12464 Cell BE architecture.
12465 * target.h (struct target_ops) <thread_architecture>: Likewise.
12466
48189bec
HD
124672020-01-01 Hannes Domani <ssbssa@yahoo.de>
12468
12469 * Makefile.in: Use INSTALL_PROGRAM_ENV.
12470
ead1063b
HD
124712020-01-01 Hannes Domani <ssbssa@yahoo.de>
12472
12473 * MAINTAINERS (Write After Approval): Add myself.
12474
e5d78223
JB
124752020-01-01 Joel Brobecker <brobecker@adacore.com>
12476
12477 * gdbarch.sh: Update copyright year range of generated files.
12478
b811d2c2
JB
124792020-01-01 Joel Brobecker <brobecker@adacore.com>
12480
12481 Update copyright year range in all GDB files.
12482
5f4def5c
JB
124832020-01-01 Joel Brobecker <brobecker@adacore.com>
12484
12485 * copyright.py: Convert to Python 3.
12486
51fd4002
JB
124872020-01-01 Joel Brobecker <brobecker@adacore.com>
12488
12489 * copyright.py: Adapt after move of gnulib directory from gdb
12490 directory to toplevel directory.
12491
5fb651f2
JB
124922020-01-01 Joel Brobecker <brobecker@adacore.com>
12493
12494 * copyright.py (main): Exit if run from the wrong directory.
12495
5dd8bf88
JB
124962020-01-01 Joel Brobecker <brobecker@adacore.com>
12497
12498 * top.c (print_gdb_version): Change copyright year to 2020.
12499
9f71dacb 125002020-01-01 Joel Brobecker <brobecker@adacore.com>
3d34df0a 12501
9f71dacb 12502 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2019.
3d34df0a 12503
9f71dacb 12504For older changes see ChangeLog-2019.
c906108c
SS
12505\f
12506Local Variables:
12507mode: change-log
12508left-margin: 8
12509fill-column: 74
12510version-control: never
57da7796 12511coding: utf-8
c906108c 12512End: