]> git.ipfire.org Git - thirdparty/binutils-gdb.git/blame - gdb/ChangeLog
elf: Add -z unique-symbol to avoid duplicated local symbol names
[thirdparty/binutils-gdb.git] / gdb / ChangeLog
CommitLineData
2a67f09d
FW
12020-09-11 Moritz Riesterer <moritz.riesterer@intel.com>
2 Felix Willgerodt <Felix.Willgerodt@intel.com>
3
4 * gdbarch.sh: Added bfloat16 type.
5 * gdbarch.c: Regenerated.
6 * gdbarch.h: Regenerated.
7 * gdbtypes.c (floatformats_bfloat16): New struct.
8 (gdbtypes_post_init): Add builtin_bfloat16.
9 * gdbtypes.h (struct builtin_type) <builtin_bfloat16>: New member.
10 (floatformats_bfloat16): New struct.
11 * i386-tdep.c (i386_zmm_type): Add field "v32_bfloat16"
12 (i386_ymm_type): Add field "v16_bfloat16"
13 (i386_gdbarch_init): Add set_gdbarch_bfloat16_format.
14 * target-descriptions.c (make_gdb_type): Add case TDESC_TYPE_BFLOAT16.
15 * gdbsupport/tdesc.cc (tdesc_predefined_types): New member bfloat16.
16 * gdbsupport/tdesc.h (tdesc_type_kind): New member TDESC_TYPE_BFLOAT16.
17 * features/i386/64bit-avx512.xml: Add bfloat16 type.
18 * features/i386/64bit-avx512.c: Regenerated.
19 * features/i386/64bit-sse.xml: Add bfloat16 type.
20 * features/i386/64bit-sse.c: Regenerated.
21
1347d111
FW
222020-09-11 Felix Willgerodt <felix.willgerodt@intel.com>
23
24 * i386-tdep.c (i386_zmm_type): Fix field names.
25 (i386_ymm_type): Fix field names.
26
7a4e8e7d
TBA
272020-09-11 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
28
29 * breakpoint.c: Fix typo in the help message of the
30 "set breakpoint condition-evaluation" command.
31
cf4ac4be
KR
322020-09-10 Kamil Rytarowski <n54@gmx.com>
33
34 * nbsd-nat.c: Include "nat/netbsd-nat.h".
35 * (nbsd_nat_target::pid_to_exec_file)
36 (nbsd_nat_target::thread_alive, nbsd_nat_target::thread_name)
37 (nbsd_nat_target::post_startup_inferior)
38 (nbsd_nat_target::post_attach, nbsd_nat_target::xfer_partial)
39 (nbsd_add_threads): Switch local code to common gdb/nat functions.
40 * (nbsd_pid_to_cmdline): Call sysctl from the global namespace.
41 * (nbsd_thread_lister): Remove.
42
f404573e
KR
432020-09-10 Kamil Rytarowski <n54@gmx.com>
44
45 * fork-inferior.c (startup_inferior): Avoid double free.
46
1ccb2c17
KR
472020-09-10 Kamil Rytarowski <n54@gmx.com>
48
49 * netbsd-nat.h (netbsd_nat::qxfer_siginfo): Add.
50 * netbsd-nat.c (netbsd_nat::qxfer_siginfo): Likewise.
51
feedfcc7
KR
522020-09-10 Kamil Rytarowski <n54@gmx.com>
53
54 * netbsd-nat.h (netbsd_nat::enable_proc_events): Add.
55 * netbsd-nat.c: Include <sys/ptrace.h>.
56 * (netbsd_nat::enable_proc_events): Add.
57
c489f8c6
KR
582020-09-10 Kamil Rytarowski <n54@gmx.com>
59
60 * netbsd-nat.h: Include "gdbsupport/function-view.h".
61 * (netbsd_nat::thread_alive, netbsd_nat::thread_name)
62 (netbsd_nat::for_each_thread): Add.
63 * netbsd-nat.c: Include "gdbsupport/common-defs.h" and
64 "gdbsupport/common-debug.h".
65 * (netbsd_nat::netbsd_thread_lister)
66 (netbsd_nat::thread_alive, netbsd_nat::thread_name)
67 (netbsd_nat::for_each_thread): Add.
68
330662f6
KR
692020-09-10 Kamil Rytarowski <n54@gmx.com>
70
71 * netbsd-nat.h: Include <unistd.h>.
72 * (netbsd_nat::pid_to_exec_file): Add.
73 * netbsd-nat.c: Include <sys/types.h> and <sys/sysctl.h>.
74 * (netbsd_nat::pid_to_exec_file) Add.
75
70b67307
KR
762020-09-10 Kamil Rytarowski <n54@gmx.com>
77
78 * configure.nat (NATDEPFILES): Add nat/netbsd-nat.o when needed.
79
99cf6da6
KR
802020-09-10 Kamil Rytarowski <n54@gmx.com>
81
82 * netbsd-nat.h: New file.
83 * netbsd-nat.c: Likewise.
84
1b788fb6
TT
852020-09-09 Tom Tromey <tromey@adacore.com>
86
87 * ada-lang.c (remove_extra_symbols): Do not increment when
88 removing an element
89
03b0a45f
TT
902020-09-08 Tom Tromey <tromey@adacore.com>
91
92 * gdb_bfd.c (gdb_bfd_open): Call bfd_fopen when fstat fails.
93
3cae4447
TT
942020-09-08 Tom Tromey <tromey@adacore.com>
95
96 PR win32/25302:
97 * gdb_bfd.c (gdb_bfd_data): Add "st" parameter.
98 (gdb_bfd_init_data): New function.
99 (gdb_bfd_open, gdb_bfd_ref): Use gdb_bfd_init_data.
100
7f08fd51
TBA
1012020-09-07 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
102
103 * infrun.c (fetch_inferior_event): Use
104 `switch_to_target_no_thread` to switch the target.
105
3e6ff933
TT
1062020-09-06 Tom Tromey <tom@tromey.com>
107
108 * symfile.h (dwarf2_free_objfile): Don't declare.
109
e56798df
AKS
1102020-09-03 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
111
112 * gdb/i386-tdep.c (i386_floatformat_for_type): Added conditions
113 to match 16 byte real/complex type generated by Flang compiler.
114
8f5c6526
TV
1152020-09-03 Tom de Vries <tdevries@suse.de>
116
117 PR breakpoint/26546
118 * dwarf2/read.c (new_symbol): Tag label symbol without DW_AT_low_pc as
119 LOC_OPTIMIZED_OUT instead of LOC_LABEL.
120
c5065df0
SM
1212020-09-02 Simon Marchi <simon.marchi@polymtl.ca>
122
123 * maint.c (index_digits): New function.
124 (struct maint_print_section_data): Remove.
125 (print_bfd_section_info): Remove print_data parameter, add arg
126 and index_digits.
127 (print_objfile_section_info): Likewise.
128 (print_bfd_section_info_maybe_relocated): Likewise (plus
129 objfile).
130 (maintenance_info_sections): Adjust calls.
131
02c6f3f1
TT
1322020-09-02 Tom Tromey <tromey@adacore.com>
133
134 * ada-varobj.c (ada_varobj_get_ptr_number_of_children): Return 0
135 for null pointers.
136 (ada_varobj_adjust_for_child_access): Special-case null pointers.
137
ef5e5b0b
SM
1382020-09-01 Simon Marchi <simon.marchi@polymtl.ca>
139
140 * bcache.h (struct bcache) <insert>: Change type of `added` to
141 pointer to bool.
142 * bcache.c (bcache::insert): Likewise.
143 * gdbtypes.c (check_types_worklist): Adjust.
144 * psymtab.c (add_psymbol_to_bcache): Adjust.
145
973695d6
KB
1462020-08-31 Kevin Buettner <kevinb@redhat.com>
147
148 * corelow.c (unordered_set): Include.
149 (class core_target): Add field 'm_core_unavailable_mappings'.
150 (core_target::build_file_mappings): Print only one warning
151 per inaccessible file. Add unavailable/broken mappings
152 to m_core_unavailable_mappings.
153 (core_target::xfer_partial): Call...
154 (core_target::xfer_memory_via_mappings): New method.
155
264fc0e2
SM
1562020-08-31 Simon Marchi <simon.marchi@polymtl.ca>
157
158 * dwarf2/read.c (struct field_info) <non_public_fields>: Change
159 type to bool.
160
2de01bdb
SM
1612020-08-31 Simon Marchi <simon.marchi@polymtl.ca>
162
163 * dwarf2/read.c (struct field_info): Fix indentation.
164
f3bd50f1
SM
1652020-08-31 Simon Marchi <simon.marchi@efficios.com>
166
167 * frame-unwind.h (frame_prev_register_ftype): Fix adjective
168 ordering in comment.
169 * frame.c (frame_id_eq): Fix indentation.
170
22b9b4b0
SL
1712020-08-31 Scott Linder <scott@scottlinder.com>
172 Simon Marchi <simon.marchi@efficios.com>
173
174 * inline-frame.c (inline_frame_this_id): Remove assert that prevents
175 inline frame ids in outer frame.
176
84154d16
SM
1772020-08-31 Simon Marchi <simon.marchi@efficios.com>
178
179 * frame.h (enum frame_id_stack_status) <FID_STACK_OUTER>: New.
180 * frame.c (fprint_frame_id): Handle FID_STACK_OUTER.
181 (outer_frame_id): Use FID_STACK_OUTER instead of
182 FID_STACK_INVALID.
183 (frame_id_p): Don't check for outer_frame_id.
184
8efaf6b3
SM
1852020-08-31 Simon Marchi <simon.marchi@efficios.com>
186
187 * frame-unwind.c (frame_unwind_got_optimized): Don't set
188 regnum/frame in value. Call allocate_value_lazy.
189 * frame.c (frame_unwind_register_value): Use
190 val_print_not_saved.
191
fe1fe7ea
SM
1922020-08-31 Simon Marchi <simon.marchi@efficios.com>
193
194 * gdbtypes.h (NULL_TYPE): Remove, change all uses to nullptr.
195
f7c7700d
PA
1962020-08-29 Pedro Alves <pedro@palves.net>
197
198 * progspace.c (print_program_space): Use all_inferiors. Switch to
199 the inferior before calling target_pid_to_str.
200
e0814aae
TT
2012020-08-28 Tom Tromey <tom@tromey.com>
202
203 * xcoffread.c (xcoff_end_psymtab): Update comment.
204 * dbxread.c (dbx_end_psymtab): Update comment.
205
626d2320
TV
2062020-08-28 Tom de Vries <tdevries@suse.de>
207
208 PR breakpoint/26544
209 * breakpoint.c (parse_breakpoint_sals): Remove const from struct
210 event_location.
211 (create_breakpoint): Same.
212 (base_breakpoint_decode_location): Same.
213 (bkpt_create_sals_from_location): Same.
214 (bkpt_decode_location): Same.
215 (bkpt_probe_create_sals_from_location): Same.
216 (bkpt_probe_decode_location): Same.
217 (tracepoint_create_sals_from_location): Same.
218 (tracepoint_decode_location): Same.
219 (tracepoint_probe_decode_location): Same.
220 (strace_marker_create_sals_from_location): Same.
221 (strace_marker_decode_location): Same.
222 (create_sals_from_location_default): Same.
223 (decode_location_default): Same.
224 * breakpoint.h (struct breakpoint_ops): Same.
225 (create_breakpoint): Same.
226 * linespec.h (decode_line_full): Same.
227 * linespec.c (decode_line_full): Same. Throw error if
228 result.size () == 0.
229
df631783
PA
2302020-08-27 Pedro Alves <pedro@palves.net>
231
232 PR gdb/26524
233 * breakpoint.c (until_break_fsm) <location_breakpoint,
234 caller_breakpoint>: Delete fields.
235 <breakpoints>: New field.
236 <until_break_fsm>: Adjust to save a breakpoint vector instead of
237 two individual breakpoints.
238 (until_break_fsm::should_stop): Loop over breakpoints in the
239 breakpoint vector.
240 (until_break_fsm::clean_up): Adjust to clear the breakpoints
241 vector.
242 (until_break_command): Handle location expanding into multiple
243 sals.
244
b2b38aa4
PA
2452020-08-27 Pedro Alves <pedro@palves.net>
246
247 PR gdb/26523
248 * inline-frame.c (stopped_by_user_bp_inline_frame): Also consider
249 bp_until breakpoints user-specified locations. Update intro
250 comment.
251
b886559f
SM
2522020-08-27 Simon Marchi <simon.marchi@polymtl.ca>
253
254 * gdb_bfd.h (gdb_bfd_section_iterator, gdb_bfd_section_range,
255 gdb_bfd_sections): New.
256 * maint.c (print_bfd_section_info): Change param type to
257 maint_print_section_data.
258 (print_objfile_section_info): Likewise.
259 (print_bfd_section_info_maybe_relocated): Likewise.
260 (maintenance_info_sections): Use gdb_bfd_sections.
261
4c6e63bf
SV
2622020-08-25 Shahab Vahedi <shahab@synopsys.com>
263
264 * MAINTAINERS: Add ARC target and maintainer.
265
8d7f0635
AK
2662020-08-25 Anton Kolesov <anton.kolesov@synopsys.com>
267
268 * configure.tgt: ARC support for GNU/Linux.
269 * Makefile.in (ALL_TARGET_OBJS): Likewise.
270 * arc-linux-tdep.c: New file.
271 * arc-tdep.h (ARC_STATUS32_L_MASK, ARC_STATUS32_DE_MASK): Declare.
272 * arc-tdep.c (arc_write_pc): Use it.
273
fdd8731b
SV
2742020-08-25 Shahab Vahedi <shahab@synopsys.com>
275
276 * arc-tdep.c (arc_check_for_hardware_loop): New.
277 * arc-tdep.h (gdbarch_tdep): New field has_hw_loops.
278
22459524
SV
2792020-08-25 Shahab Vahedi <shahab@synopsys.com>
280
281 * arc-tdep.h: Include "gdbarch.h".
282
995d3a19
SV
2832020-08-25 Shahab Vahedi <shahab@synopsys.com>
284
285 * arch/arc.h
286 (arc_gdbarch_features): New class to stir the selection of target XML.
287 (arc_create_target_description): Use FEATURES to choose XML target.
288 (arc_lookup_target_description): Use arc_create_target_description
289 to create _new_ target descriptions or return the already created
290 ones if the FEATURES is the same.
291 * arch/arc.c: Implementation of prototypes described above.
292 * gdb/arc-tdep.h (arc_regnum enum): Add more registers.
293 (arc_gdbarch_features_init): Initialize the FEATURES struct.
294 * arc-tdep.c (*_feature_name): Make feature names consistent.
295 (arc_register_feature): A new struct to hold information about
296 registers of a particular target/feature.
297 (arc_check_tdesc_feature): Check if XML provides registers in
298 compliance with ARC_REGISTER_FEATURE structs.
299 (arc_update_acc_reg_names): Add aliases for r58 and r59.
300 (determine_*_reg_feature_set): Which feature name to look for.
301 (arc_gdbarch_features_init): Given MACH and ABFD, initialize FEATURES.
302 (mach_type_to_arc_isa): Convert from a set of binutils machine types
303 to expected ISA enums to be used in arc_gdbarch_features structs.
304 * features/Makefile (FEATURE_XMLFILES): Add new files.
305 * gdb/features/arc/v1-aux.c: New file.
306 * gdb/features/arc/v1-aux.xml: Likewise.
307 * gdb/features/arc/v1-core.c: Likewise.
308 * gdb/features/arc/v1-core.xml: Likewise.
309 * gdb/features/arc/v2-aux.c: Likewise.
310 * gdb/features/arc/v2-aux.xml: Likewise.
311 * gdb/features/arc/v2-core.c: Likewise.
312 * gdb/features/arc/v2-core.xml: Likewise.
313 * NEWS (Changes since GDB 9): Announce obsolence of old feature names.
314
3945d2d7
GM
3152020-08-25 Gaius Mulley <gaiusmod2@gmail.com>
316 Andrew Burgess <andrew.burgess@embecosm.com>
317
318 PR m2/26372
fc5d6901 319 * m2-exp.y (exp): Improve comment for non_empty_arglist case, add
3945d2d7
GM
320 an assert. Remove single element array indexing pattern as the
321 MULTI_SUBSCRIPT support will handle this case too.
322
2677f2d3
SM
3232020-08-24 Simon Marchi <simon.marchi@polymtl.ca>
324
325 * value.h (valprint_check_validity): Move declaration from
326 here...
327 * valprint.h (valprint_check_validity): ... to here.
328
c426fddb
SM
3292020-08-24 Simon Marchi <simon.marchi@efficios.com>
330
331 * debug.h: New file.
332 * debug.c (debug_prefixed_vprintf): New function.
333 * infrun.c (infrun_debug_printf_1): Use debug_prefixed_vprintf.
334 * linux-nat.c (linux_nat_debug_printf_1): Likewise.
335
1eb8556f
SM
3362020-08-24 Simon Marchi <simon.marchi@efficios.com>
337
338 * infrun.h (infrun_debug_printf_1): New function declaration.
339 (infrun_debug_printf): New macro.
340 * infrun.c (infrun_debug_printf_1): Use infrun_debug_printf
341 throughout.
342 (infrun_debug_printf): New function.
343 * breakpoint.c (should_be_inserted): Use infrun_debug_printf.
344 (handle_jit_event): Likewise.
345
b8fff44e
MW
3462020-08-21 Mark Wielaard <mark@klomp.org>
347
348 * ada-lex.l: Extend register warnings diagnostics comment for g++.
349
d19c3068
SM
3502020-08-22 Simon Marchi <simon.marchi@efficios.com>
351
352 * frame.c (enum class frame_id_status): New.
353 (struct frame_info) <this_id::p>: Change type to frame_id_status.
354 (fprintf_frame): Update.
355 (compute_frame_id): Set frame id status to "computing" on entry.
356 Set it back to "not_computed" on failure and to "computed" on
357 success.
358 (get_frame_id): Assert the frame id is not being computed.
359 (create_sentinel_frame): Use frame_id_status::COMPUTED.
360 (create_new_frame): Likewise.
361 (frame_cleanup_after_sniffer): Update assert.
362
b70e516e
SM
3632020-08-20 Simon Marchi <simon.marchi@polymtl.ca>
364
365 * regcache.c (pid_ptid_regcache_map): New type.
366 (target_ptid_regcache_map): Remove.
367 (target_pid_ptid_regcache_map): New type.
368 (regcaches): Change type to target_pid_ptid_regcache_map.
369 (get_thread_arch_aspace_regcache): Update.
370 (regcache_thread_ptid_changed): Update, handle pid-like ptid
371 case.
372 (regcaches_size): Update.
373 (regcache_count): Update.
374 (registers_changed_ptid_target_pid_test): New.
375 (_initialize_regcache): Register new test.
376
cdd9148a
SM
3772020-08-20 Simon Marchi <simon.marchi@polymtl.ca>
378
379 * regcache.c (regcache_count): New.
380 (struct regcache_test_data): New.
381 (regcache_test_data_up): New.
382 (populate_regcaches_for_test): New.
383 (regcaches_test): Remove.
384 (get_thread_arch_aspace_regcache_test): New.
385 (registers_changed_ptid_all_test): New.
386 (registers_changed_ptid_target_test): New.
387 (registers_changed_ptid_target_ptid_test): New.
388 (regcache_thread_ptid_changed): Remove regcache_count lambda.
389 (_initialize_regcache): Register new tests.
390
dd125343
SM
3912020-08-20 Simon Marchi <simon.marchi@polymtl.ca>
392
393 * regcache.c (test_get_thread_arch_aspace_regcache): Rename to...
394 (get_thread_arch_aspace_regcache_and_check): ... this. Remove
395 gdbarch and aspace parameter. Use current inferior's aspace.
396 Validate regcache's arch value.
397 (regcaches_test): Update.
398
3ee93972
SM
3992020-08-20 Simon Marchi <simon.marchi@polymtl.ca>
400
401 * regcache.c (regcaches_test): Call registers_changed.
402
33bf4c5c
TBA
4032020-08-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
404
405 * infrun.c (process_event_stop_test): Fix typo "breapoint".
406
c2fd7fae
AKS
4072020-08-19 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
408
409 * amd64-tdep.c (amd64_skip_prologue): Using symbol table
410 to find the end of prologue for flang compiled binaries.
411 * arm-tdep.c (arm_skip_prologue): Likewise.
412 * i386-tdep.c (i386_skip_prologue): Likewise.
413 * producer.c (producer_is_llvm): New function.
414 (producer_parsing_tests): Added new tests for clang/flang.
415 * producer.h (producer_is_llvm): New declaration.
416
9327494e
SM
4172020-08-18 Simon Marchi <simon.marchi@efficios.com>
418
419 * linux-nat.c (linux_nat_debug_printf): New function.
420 (linux_nat_debug_printf_1): New macro. Use throughout the file.
421
d138725a
AM
4222020-08-18 Aaron Merey <amerey@redhat.com>
423
424 * Makefile.in (DEBUGINFOD_CFLAGS, DEBUGINFOD_LIBS): New variables.
425 (INTERNAL_CFLAGS_BASE): Add DEBUGINFOD_CFLAGS.
426 (CLIBS): Add DEBUGINFOD_LIBS.
427
f9b11e6b
ST
4282020-08-17 Sergei Trofimovich <siarheit@google.com>
429
430 * ia64-linux-nat.c: Include "gdbarch.h" to declare used
431 'gdbarch_num_regs'.
432
3ae7ab99
TT
4332020-08-17 Tom Tromey <tromey@adacore.com>
434
435 * ada-varobj.c (ada_varobj_decode_var): Handle case where
436 ada_get_decoded_value returns NULL.
437
b017825f
TT
4382020-08-17 Tom Tromey <tromey@adacore.com>
439
440 * python/py-inferior.c (infpy_search_memory): Use
441 gdb_py_object_from_ulongest.
442 * python/py-infevents.c (create_inferior_call_event_object)
443 (create_memory_changed_event_object): Use
444 gdb_py_object_from_ulongest.
445 * python/py-linetable.c (ltpy_entry_get_pc): Use
446 gdb_py_object_from_ulongest.
447
7635cf79
SM
4482020-08-17 Simon Marchi <simon.marchi@polymtl.ca>
449
450 * loc.c (class symbol_needs_eval_context): Fix indentation.
451
f54be24b
SM
4522020-08-17 Simon Marchi <simon.marchi@polymtl.ca>
453
454 * dwarf2/loc.c (dwarf2_loc_desc_get_symbol_read_needs): Use
455 bool.
456
53d5a2a5
TV
4572020-08-17 Tom de Vries <tdevries@suse.de>
458
459 PR gdb/26393
460 * gdbtypes.c (dump_dynamic_prop): New function.
461 (recursive_dump_type): Use dump_dynamic_prop for TYPE_CODE_RANGE.
462
547ce8f0
TV
4632020-08-15 Tom de Vries <tdevries@suse.de>
464
465 PR backtrace/26390
466 * stack.c (print_frame_args): Temporarily set the selected
467 frame to FRAME while printing the frame's arguments.
468
6ea815e7
PFC
4692020-08-14 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
470
471 PR breakpoints/26385
472 * ppc-linux-nat.c (ppc_linux_nat_target::low_prepare_to_resume):
473 Always clear watchpoint with PTRACE_SET_DEBUGREG.
474
6e562fa3
PFC
4752020-08-14 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
476
477 * ppc-linux-nat.c (ppc_linux_dreg_interface::detect)
478 (ppc_linux_nat_target::low_prepare_to_resume): Use ptrace () < 0
479 and >= to check return value instead of == -1 and != -1.
480
d369b608
SM
4812020-08-14 Simon Marchi <simon.marchi@polymtl.ca>
482
483 * utils.h (class gdb_argv) <as_array_view>: New method.
484 * utils.c (gdb_argv_as_array_view_test): New.
485 (_initialize_utils): Register selftest.
486 * maint.c (maintenance_selftest): Use the new method.
487
b31488a3
KR
4882020-08-13 Kamil Rytarowski <n54@gmx.com>
489
490 * target.h (supports_dumpcore, dumpcore): New
491 function declarations.
492 * target.c (supports_dumpcore, dumpcore): New
493 functions.
494 * target-delegates.c: Rebuild.
495 * gcore.c (gcore_command): Use target_supports_dumpcore ()
496 and target_dumpcore ().
497
002a3166
AM
4982020-08-13 Aaron Merey <amerey@redhat.com>
499
500 * debuginfod-support.c: Replace global variables with user_data.
501
ece5bc8a
SM
5022020-08-13 Simon Marchi <simon.marchi@polymtl.ca>
503
504 * maint.c (maintenance_selftest): Split args and pass array_view
505 to run_tests.
506
6d8a0a5e
LM
5072020-08-12 Luis Machado <luis.machado@linaro.org>
508
509 * value.c (check_type_length_before_alloc): Use ULONGEST to store a
510 type's length.
511 Use %s and pulongest to print the length.
512
7cf663a9
PA
5132020-08-12 Pedro Alves <palves@redhat.com>
514
515 * NEWS: Move "Multi-target debugging support" item to the
516 "Changes since GDB 9" section.
517
27c7b875
PA
5182020-08-12 Pedro Alves <palves@redhat.com>
519
520 PR gdb/26336
521 * progspace.c (program_space::remove_objfile): Invalidate the
522 frame cache.
523
1796a2a1
TV
5242020-08-11 Tom de Vries <tdevries@suse.de>
525
526 * MAINTAINERS: Mark ms1 as deleted.
527
f8e3fe0d
LM
5282020-08-10 Luis Machado <luis.machado@linaro.org>
529
530 PR gdb/26310
531
532 * aarch64-tdep.c (aarch64_analyze_prologue): Track use of SP/FP and
533 act accordingly.
534 (aarch64_analyze_prologue_test): Add more unit tests to exercise
535 movz/str/stur/stp skipping behavior.
536
cc308722
LM
5372020-08-10 Luis Machado <luis.machado@linaro.org>
538
539 * nat/aarch64-sve-linux-sigcontext.h (SVE_PT_REGS_OFFSET): Use
540 struct user_sve_header instead of struct sve_context.
541
041d9819
SM
5422020-08-09 Simon Marchi <simon.marchi@polymtl.ca>
543
544 * read.h (dwarf2_fetch_die_loc_sect_off,
545 dwarf2_fetch_die_loc_cu_off): Replace function pointer +
546 `void *` parameter with function_view.
547 * read.c (dwarf2_fetch_die_loc_sect_off,
548 dwarf2_fetch_die_loc_cu_off): Likewise.
549 * loc.c (get_frame_pc_for_per_cu_dwarf_call): Remove.
550 (per_cu_dwarf_call): Adjust.
551 (get_frame_address_in_block_wrapper): Remove.
552 (indirect_synthetic_pointer): Adjust.
553 (get_ax_pc): Remove.
554 (dwarf2_compile_expr_to_ax): Adjust.
555
38f8aa06
TV
5562020-08-08 Tom de Vries <tdevries@suse.de>
557
558 PR build/26344
559 * arch/riscv.c (riscv_lookup_target_description): Use an explicit
560 constructor.
561 * regcache.c (get_thread_arch_aspace_regcache): Same.
562
a52b3ae2
TT
5632020-08-07 Tom Tromey <tromey@adacore.com>
564
565 * ravenscar-thread.c
566 (ravenscar_thread_target::set_base_thread_from_ravenscar_task):
567 New method.
568 (ravenscar_thread_target::wait): Check
569 runtime_initialized.
570 (ravenscar_thread_target::prepare_to_store)
571 (ravenscar_thread_target::stopped_by_sw_breakpoint)
572 (ravenscar_thread_target::stopped_by_hw_breakpoint)
573 (ravenscar_thread_target::stopped_by_watchpoint)
574 (ravenscar_thread_target::stopped_data_address)
575 (ravenscar_thread_target::core_of_thread): Use
576 scoped_restore_current_thread and
577 set_base_thread_from_ravenscar_task.
578
0e29517d
TT
5792020-08-07 Tom Tromey <tromey@adacore.com>
580
581 * ravenscar-thread.c (update_thread_list): Set inferior_ptid.
582
592f9bd7
TT
5832020-08-07 Tom Tromey <tromey@adacore.com>
584
585 * ravenscar-thread.c (ravenscar_thread_target::wait): Call
586 update_inferior_ptid before update_thread_list.
587 (temporarily_change_regcache_ptid): New class.
588 (ravenscar_thread_target::fetch_registers)
589 (ravenscar_thread_target::store_registers)
590 (ravenscar_thread_target::prepare_to_store): Use base thread when
591 forwarding operation.
592
39e2018a
TT
5932020-08-07 Tom Tromey <tromey@adacore.com>
594
595 * ravenscar-thread.c (ravenscar_thread_target::resume): Handle
596 "is_pid" case.
597
2080266b
TT
5982020-08-07 Tom Tromey <tromey@adacore.com>
599
600 * ravenscar-thread.c (xfer_partial, enable_btrace, add_thread):
601 New methods.
602 (ravenscar_thread_target::get_thread_base_cpu): Check m_cpu_map
603 first.
604 (ravenscar_thread_target::add_thread): Rename from
605 ravenscar_add_thread.
606 (ravenscar_thread_target::update_thread_list): Use a lambda.
607 (ravenscar_thread_target::xfer_partial): New method.
608
78c02f21
TT
6092020-08-07 Tom Tromey <tromey@adacore.com>
610
611 * ada-lang.h (ada_task_list_iterator_ftype): Now a
612 gdb::function_view.
613 (iterate_over_live_ada_tasks): Change type of argument.
614 * ada-tasks.c (iterate_over_live_ada_tasks): Change type
615 of argument.
616
d5d833af
TT
6172020-08-07 Tom Tromey <tromey@adacore.com>
618
619 * ravenscar-thread.c (ravenscar_thread_target) <extra_thread_info>:
620 Remove.
621 (ravenscar_thread_target::extra_thread_info): Remove.
622 (ravenscar_thread_target::pid_to_str): Mention Ravenscar in result;
623 defer to target beneath for non-Ravenscar threads.
624
a8ac85bb
TT
6252020-08-07 Tom Tromey <tromey@adacore.com>
626
627 * ravenscar-thread.c (ravenscar_thread_target) <get_base_cpu,
628 get_base_thread_from_ravenscar_task>: Now methods.
629 <m_cpu_map>: New member.
630 (ravenscar_thread_target::get_thread_base_cpu): Rename from
631 ravenscar_get_thread_base_cpu. Check m_cpu_map.
632 (ravenscar_thread_target::task_is_currently_active): Update.
633 (ravenscar_thread_target::get_base_thread_from_ravenscar_task):
634 Now a method.
635 (ravenscar_thread_target::add_active_thread): Put initial thread
636 into the m_cpu_map.
637
550ab58d
TT
6382020-08-07 Tom Tromey <tromey@adacore.com>
639
640 * ravenscar-thread.c (ravenscar_thread_target::wait): Return
641 event_ptid.
642
e9546579
TT
6432020-08-07 Tom Tromey <tromey@adacore.com>
644
645 * ravenscar-thread.c (ravenscar_thread_target::wait): Check
646 runtime_initialized.
647
3d4470e5
TT
6482020-08-07 Tom Tromey <tromey@adacore.com>
649
650 * ravenscar-thread.c (ravenscar_thread_target): Don't call
651 add_active_thread.
652 (ravenscar_thread_target::add_active_thread): Now public.
653 (ravenscar_inferior_created): Call add_active_thread after pushing
654 the target.
655
888bdb2b
SM
6562020-08-07 Simon Marchi <simon.marchi@polymtl.ca>
657
658 * regcache.c (ptid_regcache_map): New type.
659 (target_ptid_regcache_map): New type.
660 (regcaches): Change type to target_ptid_regcache_map.
661 (get_thread_arch_aspace_regcache): Update to regcaches' new
662 type.
663 (regcache_thread_ptid_changed): Likewise.
664 (registers_changed_ptid): Likewise.
665 (regcaches_size): Likewise.
666 (regcaches_test): Update.
667 (regcache_thread_ptid_changed): Update.
668 * regcache.h (regcache_up): New type.
669 * gdbsupport/ptid.h (hash_ptid): New struct.
670
b161a60d
SM
6712020-08-07 Simon Marchi <simon.marchi@efficios.com>
672
673 * observable.h (thread_ptid_changed): Add parameter
674 `process_stratum_target *`.
675 * infrun.c (infrun_thread_ptid_changed): Add parameter
676 `process_stratum_target *` and use it.
677 (selftests): New namespace.
678 (infrun_thread_ptid_changed): New function.
679 (_initialize_infrun): Register selftest.
680 * regcache.c (regcache_thread_ptid_changed): Add parameter
681 `process_stratum_target *` and use it.
682 (regcache_thread_ptid_changed): New function.
683 (_initialize_regcache): Register selftest.
684 * thread.c (thread_change_ptid): Pass target to
685 thread_ptid_changed observable.
686
d2854d8d
CT
6872020-08-06 Caroline Tice <cmtice@google.com>
688
fe4c3d43
SM
689 * dwarf2/read.c (struct dwo_file): Update comment on 'sections' field.
690 (struct dwp_sections): Update field comments. Add loclists and
691 rnglists fields.
692 (struct virtual_v2_dwo_sections): Rename struct to
693 'virtual_v2_or_v5_dwo_sections'; update comments at top of struct; add
694 size & offset fields for loclists and rnglists.
695 (struct dwp_hash_table): Add a 'v5' struct field to the union section.
696 (create_debug_type_hash_table): Add 'DW_UT_split_type' to the check for
697 skipping dummy type units.
698 (create_dwp_hash_table): Update the large comment above the function to
699 discuss Version 5 DWP files as well, with references. Update all the
700 version checks in the function to check for version 5 as well. Add new
701 section at the end to create dwp hash table for version 5.
702 (create_dwp_v2_section): Rename function to
703 'create_dwp_v2_or_v5_section'. Update function comment appropriately.
704 Add V5 to error message text.
705 (create_dwo_unit_in_dwp_v2): Change calls to create_dwp_v2_section
706 into calls to create_dwp_v2_or_v5_section.
707 (create_dwo_unit_in_dwp_v5): New function.
708 (lookup_dwo_unit_in_dwp): Update conditional statement to explicitly
709 check for version2; add else clause to handle version 5.
710 (open_and_init_dwo_file): Add code to check dwarf version & only call
711 create_debug_types_hash_table (with sections.types) if version is not 5;
712 else call create_debug_type_hash_table, with sections.info.
713 (dwarf2_locate_v2_dwp_sections): Update function comment to mention
714 version 5.
715 (dwarf2_locate_v5_dwp_sections): New function.
716 (open_and_init_dwp_file): Add else-if clause for version 5 to call
717 bfd_map_over_sections with dwarf2_locate_v5_dwp_sections.
d2854d8d 718
159ed7d9
SM
7192020-08-06 Simon Marchi <simon.marchi@efficios.com>
720
721 * regcache.h (class regcache): Remove friend
722 registers_changed_ptid.
723 <regcache_thread_ptid_changed>: Remove.
724 <regcaches>: Remove.
725 * regcache.c (regcache::regcaches): Rename to...
726 (regcaches): ... this. Make static.
727 (get_thread_arch_aspace_regcache): Update.
728 (regcache::regcache_thread_ptid_changed): Rename to...
729 (regcache_thread_ptid_changed): ... this. Update.
730 (class regcache_access): Remove.
731 (regcaches_test): Update.
732 (_initialize_regcache): Update.
733 * sparc64-tdep.c, dwarf2/index-write.c, record-btrace.c: Include
734 <forward_list>.
735
174981ae
SM
7362020-08-06 Simon Marchi <simon.marchi@efficios.com>
737
738 * regcache.h (class regcache) <current_regcache>: Rename to...
739 <regcaches>: ... this. Move doc here.
740 * regcache.c (regcache::current_regcache) Rename to...
741 (regcache::regcaches): ... this. Move doc to header.
742 (get_thread_arch_aspace_regcache): Update.
743 (regcache::regcache_thread_ptid_changed): Update.
744 (registers_changed_ptid): Update.
745 (class regcache_access) <current_regcache_size>: Rename to...
746 <regcaches_size>: ... this.
747 (current_regcache_test): Rename to...
748 (regcaches_test): ... this.
749 (_initialize_regcache): Update.
750
ed908db6
VC
7512020-08-06 Victor Collod <vcollod@nvidia.com>
752
753 * amd64-tdep.c (amd64_analyze_prologue): Fix incorrect comment.
754
b5582ab7
KB
7552020-08-05 Kevin Buettner <kevinb@redhat.com>
756
757 * corelow.c (core_target::build_file_mappings): Don't output
758 null pathname in warning.
759
ea946b86
SM
7602020-08-05 Simon Marchi <simon.marchi@polymtl.ca>
761
762 * gdb.dwarf2/clztest.exp, gdb.dwarf2/dw2-common-block.exp,
763 gdb.dwarf2/dw2-dup-frame.exp, gdb.dwarf2/dw2-reg-undefined.exp,
764 gdb.dwarf2/dw2-single-line-discriminators.exp,
765 dw2-undefined-ret-addr.exp: Pass nopie to compilation options.
766
57d02173
TT
7672020-08-05 Tom Tromey <tromey@adacore.com>
768
769 PR rust/26197:
770 * dwarf2/read.c (alloc_rust_variant): Handle univariant case.
771 (quirk_rust_enum): Call alloc_rust_variant for univariant case.
772 Fix off-by-one and type size errors in ordinary case.
773
5555c86d
TV
7742020-08-05 Tom de Vries <tdevries@suse.de>
775
776 * gdbtypes.c (type_not_allocated, type_not_associated): Use
777 "prop->const_val () == 0" instead of "prop->const_val () != 0".
778
97916bfe
SM
7792020-08-04 Simon Marchi <simon.marchi@efficios.com>
780
781 * frame.h (frame_id_p): Return bool.
782 (frame_id_artificial_p): Return bool.
783 (frame_id_eq): Return bool.
784 (has_stack_frames): Return bool.
785 (get_selected_frame): Fix typo in comment.
786 (get_frame_pc_if_available): Return bool.
787 (get_frame_address_in_block_if_available): Return bool.
788 (get_frame_func_if_available): Return bool.
789 (read_frame_register_unsigned): Return bool.
790 (get_frame_register_bytes): Return bool.
791 (safe_frame_unwind_memory): Return bool.
792 (deprecated_frame_register_read): Return bool.
793 (frame_unwinder_is): Return bool.
794 * frame.c (struct frame_info) <prev_arch::p>: Change type to
795 bool.
796 <this_id::p>: Likewise.
797 <prev_p>: Likewise.
798 (frame_stash_add): Return bool.
799 (get_frame_id): Use bool.
800 (frame_id_build_special) Use bool.
801 (frame_id_build_unavailable_stack): Use bool.
802 (frame_id_build): Use bool.
803 (frame_id_p): Return bool, use true/false instead of 1/0.
804 (frame_id_artificial_p): Likewise.
805 (frame_id_eq): Likewise.
806 (frame_id_inner): Likewise.
807 (get_frame_func_if_available): Likewise.
808 (read_frame_register_unsigned): Likewise.
809 (deprecated_frame_register_read): Likewise.
810 (get_frame_register_bytes): Likewise.
811 (has_stack_frames): Likewise.
812 (inside_main_func): Likewise.
813 (inside_entry_func): Likewise.
814 (get_frame_pc_if_available): Likewise.
815 (get_frame_address_in_block_if_available): Likewise.
816 (frame_unwinder_is): Likewise.
817 (safe_frame_unwind_memory): Likewise.
818 (frame_unwind_arch): Likewise.
819
fedfee88
SM
8202020-08-04 Simon Marchi <simon.marchi@efficios.com>
821
822 * frame.c (frame_info) <prev_func> <p>: Rename to status, change
823 type to cached_copy_status.
824 (fprintf_frame): Adjust.
825 (get_frame_func_if_available): Adjust.
826 (frame_cleanup_after_sniffer): Adjust.
827
6cfa9b59
MW
8282020-08-04 Mark Wielaard <mark@klomp.org>
829
830 * MAINTAINERS (Write After Approval): Update email address.
831
66d6346b
SM
8322020-08-04 Simon Marchi <simon.marchi@polymtl.ca>
833
834 * gdbtypes.h (TYPE_DYN_PROP_ADDR): Remove, replace uses with
835 dynamic_prop::const_val.
836
8a6d5e35
SM
8372020-08-04 Simon Marchi <simon.marchi@polymtl.ca>
838
839 * gdbtypes.h (TYPE_DYN_PROP_KIND): Remove, replace uses with
840 dynamic_prop::kind.
841
51d6067d
SM
8422020-08-04 Simon Marchi <simon.marchi@polymtl.ca>
843
844 * gdbtypes.h (TYPE_DYN_PROP_BATON): Remove.
845
b26e2ae7
JM
8462020-08-04 Jose E. Marchesi <jose.marchesi@oracle.com>
847
848 * configure.tgt: Set gdb_sim for bpf-*-* targets.
849
39791af2
JM
8502020-08-04 Weimin Pan <weimin.pan@oracle.com>
851 Jose E. Marchesi <jose.marchesi@oracle.com>
852
853 * configure.tgt: Add entry for bpf-*-*.
854 * Makefile.in (ALL_TARGET_OBS): Add bpf-tdep.o
855 (ALLDEPFILES): Add bpf-tdep.c.
856 * bpf-tdep.c: New file.
857 * MAINTAINERS: Add bpf target and maintainer.
858 * NEWS: Mention the support for the new target.
859
521894aa
TV
8602020-08-04 Tom de Vries <tdevries@suse.de>
861
862 PR symtab/23270
863 * dwarf2/read.c (find_partial_die): Change internal error into Dwarf
864 Error.
865
5d6356e9
JB
8662020-08-03 John Baldwin <jhb@FreeBSD.org>
867
868 * syscalls/freebsd.xml: Regenerate.
869
0cf82b81
JB
8702020-08-03 John Baldwin <jhb@FreeBSD.org>
871
872 * syscalls/update-freebsd.sh: Fix usage and year range.
873
8f34b746
TV
8742020-08-03 Tom de Vries <tdevries@suse.de>
875
876 PR symtab/26333
877 * dwarf2/read.c (dwarf_decode_lines_1): Ignore
878 DW_LNE_lo_user/DW_LNE_hi_user range.
879
5e500d33
SM
8802020-07-30 Simon Marchi <simon.marchi@polymtl.ca>
881
882 PR ada/26318
883 * ada-lang.c (ada_modulus): Return 0 if property is not of const
884 kind.
885
78319c15
TBA
8862020-07-30 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
887
888 * breakpoint.c (set_breakpoint_condition): Do minor refactoring.
889
4c55e970
TBA
8902020-07-30 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
891
892 * breakpoint.c (set_breakpoint_condition): Update the condition
893 expressions after checking that the input condition string parses
894 successfully and does not contain junk at the end.
895
1e620590
TBA
8962020-07-30 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
897
898 * breakpoint.c (set_breakpoint_condition): Update the
899 condition string after parsing the new condition successfully.
900
c8693053
RO
9012020-07-30 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
902
903 * proc-api.c (_STRUCTURED_PROC): Don't define.
904 * proc-events.c: Likewise.
905 * proc-flags.c: Likewise.
906 * proc-why.c: Likewise.
907 * procfs.c: Likewise.
908
909 * Makefile.in (INTERNAL_CPPFLAGS): Add LARGEFILE_CPPFLAGS.
910 * configure, config.in: Regenerate.
911
5a99adb8
TV
9122020-07-30 Tom de Vries <tdevries@suse.de>
913
914 PR build/26320
915 * ui-style.h (struct ui_file_style::color): Wrap m_value and
916 m_red/m_green/m_blue in a union.
917
8ba83e91
TV
9182020-07-29 Tom de Vries <tdevries@suse.de>
919
920 PR tdep/26280
921 * s390-tdep.c (s390_displaced_step_fixup): Fix Wmaybe-uninitialized.
922
f75a0693
AB
9232020-07-28 Tom Tromey <tromey@adacore.com>
924
925 PR symtab/26270:
926 * symtab.h (find_pc_partial_function_sym): Declare.
927 * cli/cli-cmds.c (disassemble_command): Use
928 find_pc_partial_function_sym. Check asm_demangle.
929 * blockframe.c (cache_pc_function_sym): New global.
930 (cache_pc_function_name): Remove.
931 (clear_pc_function_cache): Update.
932 (find_pc_partial_function_sym): New function, from
933 find_pc_partial_function.
934 (find_pc_partial_function): Rewrite using
935 find_pc_partial_function_sym.
936
16f3242c
TT
9372020-07-28 Tom Tromey <tromey@adacore.com>
938
939 * cli/cli-cmds.c (_initialize_cli_cmds): Rearrange "disassemble"
940 help. Add usage.
941
4888741a
TT
9422020-07-28 Tom Tromey <tromey@adacore.com>
943
944 * dwarf2/expr.c (dwarf_expr_context::execute_stack_op)
945 <DW_OP_GNU_variable_value>: Cast to address type.
946
4d46f402
KR
9472020-07-28 Kamil Rytarowski <n54@gmx.com>
948
949 * nbsd-nat.h (nbsd_nat_target::xfer_partial): New declaration.
950 * nbsd-nat.c (nbsd_nat_target::xfer_partial): New function.
951 * nbsd-tdep.c (nbsd_gdbarch_data_handle, struct nbsd_gdbarch_data)
952 (init_nbsd_gdbarch_data, get_nbsd_gdbarch_data)
953 (nbsd_get_siginfo_type): New.
954 (nbsd_init_abi): Install gdbarch "get_siginfo_type" method.
955 (_initialize_nbsd_tdep): New.
956
d70f978b
L
9572020-07-28 H.J. Lu <hongjiu.lu@intel.com>
958
959 PR binutils/26301
960 * configure: Regenerated.
961
377170fa
L
9622020-07-28 H.J. Lu <hongjiu.lu@intel.com>
963
964 PR binutils/26301
965 * configure: Regenerated.
966
43d5901d
AB
9672020-07-28 Andrew Burgess <andrew.burgess@embecosm.com>
968
969 * python/py-frame.c: Remove 'user-regs.h' include.
970 (frapy_read_register): Rewrite to make use of
971 gdbpy_parse_register_id.
972 * python/py-registers.c (gdbpy_parse_register_id): New function,
973 moved here from python/py-unwind.c. Updated the return type, and
974 also accepts register descriptor objects.
975 * python/py-unwind.c: Remove 'user-regs.h' include.
976 (pyuw_parse_register_id): Moved to python/py-registers.c.
977 (unwind_infopy_add_saved_register): Update to use
978 gdbpy_parse_register_id.
979 (pending_framepy_read_register): Likewise.
980 * python/python-internal.h (gdbpy_parse_register_id): Declare.
981
14fa8fb3
AB
9822020-07-28 Andrew Burgess <andrew.burgess@embecosm.com>
983
984 * python/py-registers.c: Add 'user-regs.h' include.
985 (register_descriptor_iter_find): New function.
986 (register_descriptor_iterator_object_methods): New static global
987 methods array.
988 (register_descriptor_iterator_object_type): Add pointer to methods
989 array.
990
ddce1758
JB
9912020-07-27 John Baldwin <jhb@FreeBSD.org>
992
993 * fbsd-nat.h: Include <osreldate.h>. Define USE_SIGTRAP_SIGINFO
994 for all architectures on FreeBSD 11.3 and later.
995
a4089f52
TT
9962020-07-27 Tom Tromey <tromey@adacore.com>
997
998 * gcore.h (load_corefile): Don't declare.
999
95420d30
TV
10002020-07-27 Tom de Vries <tdevries@suse.de>
1001
1002 * configure.ac: Fix sys/sockets.h -> sys/socket.h typo.
1003 * config.in: Regenerate.
1004 * configure: Regenerate.
1005
05a6b8c2
EZ
10062020-07-26 Eli Zaretskii <eliz@gnu.org>
1007
1008 * configure.ac (AC_CHECK_HEADERS): Check for sys/socket.h and
1009 ws2tcpip.h. When checking whether socklen_t type is defined, use
1010 ws2tcpip.h if it is available and sys/socket.h isn't.
1011 * configure: Regenerate.
1012 * config.in: Regenerate.
1013
e79eb02f
AB
10142020-07-25 Andrew Burgess <andrew.burgess@embecosm.com>
1015
1016 PR fortran/23051
1017 PR fortran/26139
1018 * valops.c (value_ind): Pass address to
1019 readjust_indirect_value_type.
1020 * value.c (readjust_indirect_value_type): Make parameter
1021 non-const, and add extra address parameter. Resolve original type
1022 before using it.
1023 * value.h (readjust_indirect_value_type): Update function
1024 signature and comment.
1025
876518dd
TV
10262020-07-25 Tom de Vries <tdevries@suse.de>
1027
1028 PR symtab/26243
1029 * dwarf2/read.c (lnp_state_machine::record_line): Ignore zero line
1030 entries.
1031
f6720b1c
AM
10322020-07-24 Aaron Merey <amerey@redhat.com>
1033
1034 * Makefile.in: Replace LIBDEBUGINFOD with DEBUGINFOD_LIBS.
1035 * configure: Rebuild.
1036
513487e1
KB
10372020-07-23 Kevin Buettner <kevinb@redhat.com>
1038
1039 PR corefiles/26294
1040 * corelow.c (_initialize_corelow): Add period to help text
1041 for "maintenance print core-file-backed-mappings".
1042
e7bc9db8
PA
10432020-07-23 Pedro Alves <pedro@palves.net>
1044
1045 * frame-unwind.c (frame_unwind_try_unwinder): On exception, don't
1046 touch THIS_CACHE/THIS_FRAME if the frame cache was cleared
1047 meanwhile.
1048 * frame.c (frame_cache_generation, get_frame_cache_generation):
1049 New.
1050 (reinit_frame_cache): Increment FRAME_CACHE_GENERATION.
1051 (get_prev_frame_if_no_cycle): On exception, don't touch
1052 PREV_FRAME/THIS_FRAME if the frame cache was cleared meanwhile.
1053 * frame.h (get_frame_cache_generation): Declare.
1054
90fcc466
TV
10552020-07-23 Tom de Vries <tdevries@suse.de>
1056
1057 PR tui/26282
1058 * tui/tui-winsource.h (struct tui_source_windows::tui_source_windows):
1059 New default constructor.
1060
78344df7
AB
10612020-07-23 Andrew Burgess <andrew.burgess@embecosm.com>
1062
1063 * disasm.c (do_mixed_source_and_assembly_deprecated): Don't
1064 exclude non-statement entries.
1065
b089853a
KB
10662020-07-22 Kevin Buettner <kevinb@redhat.com>
1067
1068 * NEWS (New commands): Mention new command
1069 "maintenance print core-file-backed-mappings".
1070
09c2f5d4
KB
10712020-07-22 Kevin Buettner <kevinb@redhat.com>
1072
1073 * corelow.c (gdbcmd.h): Include.
1074 (core_target::info_proc_mappings): New method.
1075 (get_current_core_target): New function.
1076 (maintenance_print_core_file_backed_mappings): New function.
1077 (_initialize_corelow): Add core-file-backed-mappings to
1078 "maint print" commands.
1079
9c5ec5c2 10802020-07-22 Kevin Buettner <kevinb@redhat.com>
fe4c3d43 1081
9c5ec5c2
KB
1082 * linux-tdep.c (dump_note_entry_p): New function.
1083 (linux_dump_mapping_p_ftype): New typedef.
1084 (linux_find_memory_regions_full): Add new parameter,
1085 should_dump_mapping_p.
1086 (linux_find_memory_regions): Adjust call to
1087 linux_find_memory_regions_full.
1088 (linux_make_mappings_core_file_notes): Use dump_note_entry_p in
1089 call to linux_find_memory_regions_full.
1090
db082f59
KB
10912020-07-22 Kevin Buettner <kevinb@redhat.com>
1092
1093 * corelow.c (solist.h, unordered_map): Include.
1094 (class core_target): Add field m_core_file_mappings and
1095 method build_file_mappings.
1096 (core_target::core_target): Call build_file_mappings.
1097 (core_target::~core_target): Free memory associated with
1098 m_core_file_mappings.
1099 (core_target::build_file_mappings): New method.
1100 (core_target::xfer_partial): Use m_core_file_mappings
1101 for memory transfers.
1102 * linux-tdep.c (linux_read_core_file_mappings): New
1103 function.
1104 (linux_core_info_proc_mappings): Rewrite to use
1105 linux_read_core_file_mappings.
1106 (linux_init_abi): Register linux_read_core_file_mappings.
1107
7e183d27
KB
11082020-07-22 Kevin Buettner <kevinb@redhat.com>
1109
1110 * arch-utils.c (default_read_core_file_mappings): New function.
1111 * arch-utils.c (default_read_core_file_mappings): Declare.
1112 * gdbarch.sh (read_core_file_mappings): New gdbarch method.
1113 * gdbarch.h, gdbarch.c: Regenerate.
1114
2735d421
KB
11152020-07-22 Kevin Buettner <kevinb@redhat.com>
1116
1117 PR corefiles/25631
1118 * corelow.c (core_target:xfer_partial): Revise
1119 TARGET_OBJECT_MEMORY case to consider non-SEC_HAS_CONTENTS
1120 case after first checking the stratum beneath the core
1121 target.
1122 (has_all_memory): Return true.
1123 * target.c (raw_memory_xfer_partial): Revise comment
1124 regarding use of has_all_memory.
1125
e56cb451
KB
11262020-07-22 Kevin Buettner <kevinb@redhat.com>
1127
1128 * exec.h (section_table_xfer_memory): Revise declaration,
1129 replacing section name parameter with an optional callback
1130 predicate.
1131 * exec.c (section_table_xfer_memory): Likewise.
1132 * bfd-target.c, exec.c, target.c, corelow.c: Adjust all callers
1133 of section_table_xfer_memory.
1134
32fa152e
TT
11352020-07-22 Tom Tromey <tromey@adacore.com>
1136
1137 * mi/mi-cmd-stack.c (list_args_or_locals): Use
1138 lookup_symbol_search_name.
1139
a67a1c41
AB
11402020-07-22 Andrew Burgess <andrew.burgess@embecosm.com>
1141
1142 * python/py-registers.c (gdbpy_register_object_data_init): Remove
1143 redundant local variable.
1144 (gdbpy_get_register_descriptor): Extract descriptor vector as a
1145 reference, not pointer, update code accordingly.
1146
a7b4ff4f
SM
11472020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
1148 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1149
1150 * objfiles.h (struct objfile) <skip_jit_symbol_lookup>: New field.
1151 * jit.c (jit_breakpoint_re_set_internal): Use the
1152 `skip_jit_symbol_lookup` field.
1153
2340e834
SM
11542020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
1155 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1156
1157 * jit.c (jit_read_descriptor): Define the descriptor address once,
1158 use twice.
1159 (jit_breakpoint_deleted): Move the declaration of the loop variable
1160 `iter` into the loop header.
1161 (jit_breakpoint_re_set_internal): Move the declaration of the local
1162 variable `objf_data` to the first point of definition.
1163 (jit_event_handler): Move the declaration of local variables
1164 `code_entry`, `entry_addr`, and `objf` to their first point of use.
1165 Rename `objf` to `jited`.
1166
c1072906
SM
11672020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
1168
1169 * jit.h (struct jiter_objfile_data) <jiter_objfile_data, objfile>:
1170 Remove.
1171 * jit.c (get_jiter_objfile_data): Update.
1172
c8474dc3
TBA
11732020-07-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1174 Simon Marchi <simon.marchi@polymtl.ca>
1175
1176 * jit.c (struct jit_program_space_data): Remove.
1177 (jit_program_space_key): Remove.
1178 (jiter_objfile_data::~jiter_objfile_data): Remove program space
1179 stuff.
1180 (get_jit_program_space_data): Remove.
1181 (jit_breakpoint_deleted): Iterate on all of the program space's
1182 objfiles.
1183 (jit_inferior_init): Likewise.
1184 (jit_breakpoint_re_set_internal): Likewise. Also change return
1185 type to void.
1186 (jit_breakpoint_re_set): Pass current_program_space to
1187 jit_breakpoint_re_set_internal.
1188
77208eb7
SM
11892020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
1190
1191 * jit.h (struct jiter_objfile_data) <cached_code_address,
1192 jit_breakpoint>: Move to here from ...
1193 * jit.c (jit_program_space_data): ... here.
1194 (jiter_objfile_data::~jiter_objfile_data): Update.
1195 (jit_breakpoint_deleted): Update.
1196 (jit_breakpoint_re_set_internal): Update.
1197
8c1c720f
SM
11982020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
1199
1200 * jit.c (jiter_objfile_data::~jiter_objfile_data): Remove some
1201 checks.
1202 (jit_read_descriptor): Remove NULL check.
1203 (jit_event_handler): Add an assertion.
1204
0e74a041
SM
12052020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
1206
1207 * jit.h (struct jit_objfile_data): Split into...
1208 (struct jiter_objfile_data): ... this ...
1209 (struct jited_objfile_data): ... and this.
1210 * objfiles.h (struct objfile) <jit_data>: Remove.
1211 <jiter_data, jited_data>: New fields.
1212 * jit.c (jit_objfile_data::~jit_objfile_data): Rename to ...
1213 (jiter_objfile_data::~jiter_objfile_data): ... this.
1214 (get_jit_objfile_data): Rename to ...
1215 (get_jiter_objfile_data): ... this.
1216 (add_objfile_entry): Update.
1217 (jit_read_descriptor): Use get_jiter_objfile_data.
1218 (jit_find_objf_with_entry_addr): Use objfile's jited_data field.
1219 (jit_breakpoint_re_set_internal): Use get_jiter_objfile_data.
1220 (jit_inferior_exit_hook): Use objfile's jited_data field.
1221
238b5c9f
SM
12222020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
1223
1224 * jit.h: Forward-declare `struct minimal_symbol`.
1225 (struct jit_objfile_data): Migrate to here from jit.c; also add a
1226 constructor, destructor, and an objfile* field.
1227 * jit.c (jit_objfile_data): Remove.
1228 (struct jit_objfile_data): Migrate from here to jit.h.
1229 (jit_objfile_data::~jit_objfile_data): New destructor
1230 implementation with code moved from free_objfile_data.
1231 (free_objfile_data): Delete.
1232 (get_jit_objfile_data): Update to use the jit_data field of objfile.
1233 (jit_find_objf_with_entry_addr): Ditto.
1234 (jit_inferior_exit_hook): Ditto.
1235 (_initialize_jit): Remove the call to
1236 register_objfile_data_with_cleanup.
1237 * objfiles.h (struct objfile) <jit_data>: New field.
1238
fe053b9e
TBA
12392020-07-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1240
1241 * jit.h: Forward-declare `struct objfile`.
1242 (jit_event_handler): Add a second parameter, the JITer objfile.
1243 * jit.c (jit_read_descriptor): Change the signature to take the
1244 JITer objfile as an argument instead of the jit_program_space_data.
1245 (jit_inferior_init): Update the call to jit_read_descriptor.
1246 (jit_event_handler): Use the new JITer objfile argument when calling
1247 jit_read_descriptor.
1248 * breakpoint.c (handle_jit_event): Update the call to
1249 jit_event_handler to pass the JITer objfile.
1250
4cec0c66
JB
12512020-07-21 John Baldwin <jhb@FreeBSD.org>
1252
1253 * gdbarch.c: Regenerate.
1254 * gdbarch.h: Regenerate.
1255 * gdbarch.sh (handle_segmentation_fault): Remove method.
1256 * infrun.c (handle_segmentation_fault): Remove.
1257 (print_signal_received_reason): Remove call to
1258 handle_segmentation_fault.
1259
0e42f66a
JB
12602020-07-21 John Baldwin <jhb@FreeBSD.org>
1261
1262 * sparc64-linux-tdep.c (sparc64_linux_handle_segmentation_fault):
1263 Rename to sparc64_linux_report_signal_info and add siggnal
1264 argument.
1265 (sparc64_linux_init_abi): Use sparc64_linux_report_signal_info
1266 instead of sparc64_linux_handle_segmentation_fault.
1267
77bdfeb2
JB
12682020-07-21 John Baldwin <jhb@FreeBSD.org>
1269
1270 * amd64-linux-tdep.c (amd64_linux_init_abi_common): Use
1271 i386_linux_report_signal_info instead of
1272 i386_linux_handle_segmentation_fault.
1273 * i386-linux-tdep.c (i386_linux_handle_segmentation_fault): Rename
1274 to i386_linux_report_signal_info and add siggnal argument.
1275 (i386_linux_init_abi): Use i386_linux_report_signal_info instead
1276 of i386_linux_handle_segmentation_fault.
1277 * i386-linux-tdep.h (i386_linux_handle_segmentation_fault): Rename
1278 to i386_linux_report_signal_info and add siggnal argument.
1279
ad97bfc5
JB
12802020-07-21 John Baldwin <jhb@FreeBSD.org>
1281
1282 * corelow.c (core_target_open): Invoke gdbarch report_signal_info
1283 hook if present.
1284
272bb05c
JB
12852020-07-21 John Baldwin <jhb@FreeBSD.org>
1286
1287 * gdbarch.c: Regenerate.
1288 * gdbarch.h: Regenerate.
1289 * gdbarch.sh (report_signal_info): New method.
1290 * infrun.c (print_signal_received_reason): Invoke gdbarch
1291 report_signal_info hook if present.
1292
baf8791e
AB
12932020-07-21 Andrew Burgess <andrew.burgess@embecosm.com>
1294
1295 * python/py-registers.c : Add 'unordered_map' include.
1296 (gdbpy_new_reggroup): Renamed to...
1297 (gdbpy_get_reggroup): ...this. Update to only create register
1298 group descriptors when needed.
1299 (gdbpy_reggroup_iter_next): Update.
1300
f7306dac
AB
13012020-07-21 Andrew Burgess <andrew.burgess@embecosm.com>
1302
1303 * python/py-registers.c (gdbpy_register_object_data): New static
1304 global.
1305 (gdbpy_register_object_data_init): New function.
1306 (gdbpy_new_register_descriptor): Renamed to...
1307 (gdbpy_get_register_descriptor): ...this, and update to reuse
1308 existing register descriptors where possible.
1309 (gdbpy_register_descriptor_iter_next): Update.
1310 (gdbpy_initialize_registers): Register new gdbarch data.
1311
05c309a8
SM
13122020-07-21 Simon Marchi <simon.marchi@efficios.com>
1313
1314 * linux-nat.c (stopped_pids): Make static.
1315
d1fd641e
SM
13162020-07-21 Simon Marchi <simon.marchi@polymtl.ca>
1317
1318 PR ada/26235
1319 * gdbtypes.c (ada_discrete_type_low_bound,
1320 ada_discrete_type_high_bound): Handle undefined bounds.
1321
1de14d77
KR
13222020-07-21 Kamil Rytarowski <n54@gmx.com>
1323
1324 * nbsd-nat.h (nbsd_nat_target::supports_multi_process): New
1325 declaration.
1326 * nbsd-nat.c (nbsd_nat_target::supports_multi_process): New
1327 function.
1328
ed810cc7
JB
13292020-07-20 John Baldwin <jhb@FreeBSD.org>
1330
1331 * fbsd-tdep.c (fbsd_skip_solib_resolver): New function.
1332 (fbsd_init_abi): Install gdbarch "skip_solib_resolver" method.
1333 * fbsd-tdep.h (fbsd_skip_solib_resolver): New prototype.
1334 * mips-fbsd-tdep.c (mips_fbsd_skip_solib_resolver): New function.
1335 (mips_fbsd_init_abi): Install gdbarch "skip_solib_resolver"
1336 method.
1337
ae5369e7
LC
13382020-07-20 Ludovic Courtès <ludo@gnu.org>
1339
1340 * guile/scm-math.c (vlscm_integer_fits_p): Use 'uintmax_t'
1341 and 'intmax_t' instead of 'scm_t_uintmax' and 'scm_t_intmax',
1342 which are deprecated in Guile 3.0.
1343 * configure.ac (try_guile_versions): Add "guile-3.0".
1344 * configure (try_guile_versions): Regenerate.
1345 * NEWS: Update entry.
1346
68cf161c
LC
13472020-07-20 Ludovic Courtès <ludo@gnu.org>
1348 Doug Evans <dje@google.com>
1349
1350 PR gdb/21104
1351 * guile/scm-ports.c (USING_GUILE_BEFORE_2_2): New macro.
1352 (ioscm_memory_port)[read_buf_size, write_buf_size]: Wrap in #if
1353 USING_GUILE_BEFORE_2_2.
1354 (stdio_port_desc, memory_port_desc) [!USING_GUILE_BEFORE_2_2]:
1355 Change type to 'scm_t_port_type *'.
1356 (natural_buffer_size) [!USING_GUILE_BEFORE_2_2]: New variable.
1357 (ioscm_open_port) [USING_GUILE_BEFORE_2_2]: Add 'stream'
1358 parameter and honor it. Update callers.
1359 (ioscm_open_port) [!USING_GUILE_BEFORE_2_2]: New function.
1360 (ioscm_read_from_port, ioscm_write) [!USING_GUILE_BEFORE_2_2]: New
1361 functions.
1362 (ioscm_fill_input, ioscm_input_waiting, ioscm_flush): Wrap in #if
1363 USING_GUILE_BEFORE_2_2.
1364 (ioscm_init_gdb_stdio_port) [!USING_GUILE_BEFORE_2_2]: Use
1365 'ioscm_read_from_port'. Call 'scm_set_port_read_wait_fd'.
1366 (ioscm_init_stdio_buffers) [!USING_GUILE_BEFORE_2_2]: New function.
1367 (gdbscm_stdio_port_p) [!USING_GUILE_BEFORE_2_2]: Use 'SCM_PORTP'
1368 and 'SCM_PORT_TYPE'.
1369 (gdbscm_memory_port_end_input, gdbscm_memory_port_seek)
1370 (ioscm_reinit_memory_port): Wrap in #if USING_GUILE_BEFORE_2_2.
1371 (gdbscm_memory_port_read, gdbscm_memory_port_write)
1372 (gdbscm_memory_port_seek, gdbscm_memory_port_close)
1373 [!USING_GUILE_BEFORE_2_2]: New functions.
1374 (gdbscm_memory_port_print): Remove use of 'SCM_PTOB_NAME'.
1375 (ioscm_init_memory_port_type) [!USING_GUILE_BEFORE_2_2]: Use
1376 'gdbscm_memory_port_read'.
1377 Wrap 'scm_set_port_end_input', 'scm_set_port_flush', and
1378 'scm_set_port_free' calls in #if USING_GUILE_BEFORE_2_2.
1379 (gdbscm_get_natural_buffer_sizes) [!USING_GUILE_BEFORE_2_2]: New
1380 function.
1381 (ioscm_init_memory_port): Remove.
1382 (ioscm_init_memory_port_stream): New function
1383 (ioscm_init_memory_port_buffers) [USING_GUILE_BEFORE_2_2]: New
1384 function.
1385 (gdbscm_memory_port_read_buffer_size) [!USING_GUILE_BEFORE_2_2]:
1386 Return scm_from_uint (0).
1387 (gdbscm_set_memory_port_read_buffer_size_x)
1388 [!USING_GUILE_BEFORE_2_2]: Call 'scm_setvbuf'.
1389 (gdbscm_memory_port_write_buffer_size) [!USING_GUILE_BEFORE_2_2]:
1390 Return scm_from_uint (0).
1391 (gdbscm_set_memory_port_write_buffer_size_x)
1392 [!USING_GUILE_BEFORE_2_2]: Call 'scm_setvbuf'.
1393 * configure.ac (try_guile_versions): Add "guile-2.2".
1394 * configure: Regenerate.
1395 * NEWS: Add entry.
1396
aee91db3
TT
13972020-07-18 Tom Tromey <tom@tromey.com>
1398
1399 * linux-nat.c (linux_multi_process): Remove.
1400 (linux_nat_target::supports_multi_process): Return true.
1401
0e267416
AB
14022020-07-17 Andrew Burgess <andrew.burgess@embecosm.com>
1403
1404 * arch/riscv.c (riscv_tdesc_cache): Change map type.
1405 (riscv_lookup_target_description): Return pointer out of
1406 unique_ptr.
1407 * target-descriptions.c (allocate_target_description): Add
1408 comment.
1409 (target_desc_deleter::operator()): Likewise.
1410 * target-descriptions.h (struct target_desc_deleter): Moved to
1411 gdbsupport/tdesc.h.
1412 (target_desc_up): Likewise.
1413
f80c8ec4
TT
14142020-07-17 Tom Tromey <tromey@adacore.com>
1415
1416 * linux-nat.c (linux_nat_target::supports_non_stop)
1417 (linux_nat_target::always_non_stop_p): Use "true".
1418 (linux_nat_target::supports_disable_randomization): Use "true" and
1419 "false".
1420
d0ce17d8
CT
14212020-07-16 Caroline Tice <cmtice@google.com>
1422
1423 * dwarf2/read.c (RNGLIST_HEADER_SIZE32) New constant definition.
1424 (RNGLIST_HEADER_SIZE64): New constant definition.
1425 (struct dwop_section_names): Add rnglists_dwo.
1426 (dwop_section_names): Add .debug_rnglists.dwo, .zdebug_rnglists.dwo.
1427 (struct loclist_header): Rename to 'loclists_rnglists_header'.
1428 (struct dwo_sections): Add rnglists field.
1429 (read_attribut_reprocess): Add tag parameter.
1430 (dwarf2_ranges_read): Add tag parameter & remove forward function decl.
1431 (cu_debug_rnglists_section): New function (decl & definition).
1432 (dwarf2_locate_dwo_sections): Add code to read rnglists_dwo section.
1433 (dwarf2_rnglists_process): Add a dwarf_tag parameter, for the kind of
1434 die whose range is being checked; get rnglist section from
1435 cu_debug_rnglists_section, to get from either objfile or dwo file as
1436 appropriate. Add cases for DW_RLE_base_addressx,
1437 DW_RLE_startx_length, DW_RLE_startx_endx. Also, update to only add
1438 the base address to DW_RLE_offset_pairs (not to all ranges), moving
1439 test inside if-condition and updating complaint message.
1440 (dwarf2_ranges_process): Add dwarf tag parameter and pass it to
1441 dwarf2_rnglists_process.
1442 (dwarf2_ranges_read): Add dwarf tag parameter and pass it to
1443 dwarf2_ranges_process.
1444 (dwarf2_get_pc_bounds): Check for DW_FORM_rnglistx when setting
1445 need_ranges_base and update comment appropriately. Also pass die tag
1446 to dwarf2_ranges_read.
1447 (dwarf2_record_block_ranges): Check for DW_FORM_rnglistx when setting
1448 need_ranges_base and update comment appropriately. Also pass die tag
1449 to dwarf2_ranges_process.
1450 (read_full_die_1): Add code to read DW_AT_rnglists_base and assign to
1451 cu->ranges_base. Also pass die tag to read_attribute_reprocess.
1452 (partial_die_info::read): Check for DW_FORM_rnglistx when setting
1453 need_ranges_base and update comment appropriately. Also pass die tag
1454 to read_attribute_reprocess and dwarf2_ranges_read.
1455 (read_loclist_header): Rename function to read_loclists_rnglists_header,
1456 and update function comment appropriately.
1457 (read_loclist_index): Call read_loclists_rnglists_header instead of
1458 read_loclist_header.
1459 (read_rnglist_index): New function.
1460 (read_attribute_reprocess): Add tag parameter. Add code for
1461 DW_FORM_rnglistx, passing tag to read_rnglist_index.
1462 (read_attribute_value): Mark DW_FORM_rnglistx with need_reprocess.
1463
3dcc261c
AB
14642020-07-15 Andrew Burgess <andrew.burgess@embecosm.com>
1465
1466 * f-typeprint.c (f_type_print_base): Allow for dynamic types not
1467 being resolved.
1468
ccb9eba6
AB
14692020-07-14 Andrew Burgess <andrew.burgess@embecosm.com>
1470
1471 * arch-utils.c (show_architecture): Update formatting of messages.
1472
cf88be68
SM
14732020-07-12 Simon Marchi <simon.marchi@efficios.com>
1474
1475 * gdbtypes.h (struct type) <bounds>: Handle array and string
1476 types.
1477 * ada-lang.c (assign_aggregate): Use type::bounds on
1478 array/string type.
1479 * c-typeprint.c (c_type_print_varspec_suffix): Likewise.
1480 * c-varobj.c (c_number_of_children): Likewise.
1481 (c_describe_child): Likewise.
1482 * eval.c (evaluate_subexp_for_sizeof): Likewise.
1483 * f-typeprint.c (f_type_print_varspec_suffix): Likewise.
1484 (f_type_print_base): Likewise.
1485 * f-valprint.c (f77_array_offset_tbl): Likewise.
1486 (f77_get_upperbound): Likewise.
1487 (f77_print_array_1): Likewise.
1488 * guile/scm-type.c (gdbscm_type_range): Likewise.
1489 * m2-typeprint.c (m2_array): Likewise.
1490 (m2_is_long_set_of_type): Likewise.
1491 * m2-valprint.c (get_long_set_bounds): Likewise.
1492 * p-typeprint.c (pascal_type_print_varspec_prefix): Likewise.
1493 * python/py-type.c (typy_range): Likewise.
1494 * rust-lang.c (rust_internal_print_type): Likewise.
1495 * type-stack.c (type_stack::follow_types): Likewise.
1496 * valarith.c (value_subscripted_rvalue): Likewise.
1497 * valops.c (value_cast): Likewise.
1498
509971ae
SM
14992020-07-12 Simon Marchi <simon.marchi@efficios.com>
1500
1501 * gdbtypes.c (TYPE_ARRAY_BIT_STRIDE): Remove. Update all
1502 callers to use the equivalent accessor methods.
1503
107406b7
SM
15042020-07-12 Simon Marchi <simon.marchi@efficios.com>
1505
1506 * gdbtypes.h (struct range_bounds) <bit_stride>: New method.
1507 (struct type) <bit_stride>: New method.
1508 (TYPE_BIT_STRIDE): Remove.
1509 * gdbtypes.c (update_static_array_size): Use type::bit_stride.
1510
bb789949
SM
15112020-07-12 Simon Marchi <simon.marchi@efficios.com>
1512
1513 * gdbtypes.h (TYPE_ARRAY_LOWER_BOUND_VALUE,
1514 TYPE_ARRAY_UPPER_BOUND_VALUE): Remove. Update all
1515 callers to use the equivalent accessor methods instead.
1516
39498edb
SM
15172020-07-12 Simon Marchi <simon.marchi@efficios.com>
1518
1519 * gdbtypes.h (TYPE_ARRAY_UPPER_BOUND_IS_UNDEFINED,
1520 TYPE_ARRAY_LOWER_BOUND_IS_UNDEFINED): Remove. Update all
1521 callers to use the equivalent accessor methods instead.
1522
3b606f38
SM
15232020-07-12 Simon Marchi <simon.marchi@efficios.com>
1524
1525 * gdbtypes.h (TYPE_LOW_BOUND_KIND,
1526 TYPE_HIGH_BOUND_KIND): Remove. Update all callers
1527 to use dynamic_prop::kind.
1528
064d9cb9
SM
15292020-07-12 Simon Marchi <simon.marchi@efficios.com>
1530
1531 * gdbtypes.h (TYPE_LOW_BOUND_UNDEFINED,
1532 TYPE_HIGH_BOUND_UNDEFINED): Remove. Update all callers
1533 to get the bound property's kind and check against
1534 PROP_UNDEFINED.
1535
5537ddd0
SM
15362020-07-12 Simon Marchi <simon.marchi@efficios.com>
1537
1538 * gdbtypes.h (TYPE_LOW_BOUND, TYPE_HIGH_BOUND): Remove. Update
1539 all callers to use type::range_bounds followed by
1540 dynamic_prop::{low,high}.
1541
8c2e4e06
SM
15422020-07-12 Simon Marchi <simon.marchi@polymtl.ca>
1543
1544 * gdbtypes.h (struct dynamic_prop) <kind, set_undefined,
1545 const_val, set_const_val, baton, set_locexpr, set_loclist,
1546 set_addr_offset, variant_parts, set_variant_parts,
1547 original_type, set_original_type>: New methods.
1548 <kind>: Rename to...
1549 <m_kind>: ... this. Update all users to use the new methods
1550 instead.
1551 <data>: Rename to...
1552 <m_data>: ... this. Update all users to use the new methods
1553 instead.
1554
7c6f2712
SM
15552020-07-12 Simon Marchi <simon.marchi@efficios.com>
1556
1557 * gdbtypes.c (get_discrete_bounds): Return failure if
1558 the range type's bounds are not both defined and constant
1559 values.
1560 (get_array_bounds): Update comment. Remove undefined bound check.
1561
599088e3
SM
15622020-07-12 Simon Marchi <simon.marchi@polymtl.ca>
1563
1564 * gdbtypes.h (TYPE_RANGE_DATA): Remove. Update callers to use
1565 the type::bounds method directly.
1566
c4dfcb36
SM
15672020-07-12 Simon Marchi <simon.marchi@efficios.com>
1568
1569 * gdbtypes.h (struct type) <bounds, set_bounds>: New methods.
1570 (TYPE_RANGE_DATA): Use type::bounds. Change all uses that
1571 are used to set the range type's bounds to use set_bounds.
1572
0a278aa7
PW
15732020-07-11 Philippe Waroquiers <philippe.waroquiers@skynet.be>
1574
1575 * exec.c (_initialize_exec): Update exec-file-mismatch help.
1576
cce20f10
PA
15772020-07-10 Pedro Alves <pedro@palves.net>
1578
1579 * gdbthread.h (inferior_ref): Define.
1580 (scoped_restore_current_thread) <m_thread>: Now a thread_info_ref.
1581 (scoped_restore_current_thread) <m_inf>: Now an inferior_ref.
1582 * thread.c
1583 (scoped_restore_current_thread::restore):
1584 Adjust to gdb::ref_ptr.
1585 (scoped_restore_current_thread::~scoped_restore_current_thread):
1586 Remove manual decref handling.
1587 (scoped_restore_current_thread::scoped_restore_current_thread):
1588 Adjust to use
1589 inferior_ref::new_reference/thread_info_ref::new_reference.
1590 Incref the thread before calling get_frame_id instead of after.
1591 Let TARGET_CLOSE_ERROR propagate.
1592
6d7aa592
PA
15932020-07-10 Pedro Alves <pedro@palves.net>
1594
1595 * frame-tailcall.c (dwarf2_tailcall_sniffer_first): Only swallow
1596 NO_ENTRY_VALUE_ERROR / MEMORY_ERROR / OPTIMIZED_OUT_ERROR /
1597 NOT_AVAILABLE_ERROR.
1598 * value.c (value_optimized_out): Only swallow MEMORY_ERROR /
1599 OPTIMIZED_OUT_ERROR / NOT_AVAILABLE_ERROR.
1600
b3e3a4c1
SM
16012020-07-10 Simon Marchi <simon.marchi@polymtl.ca>
1602 Pedro Alves <pedro@palves.net>
1603
1604 PR gdb/26199
1605 * infrun.c (threads_are_resumed_pending_p): Delete.
1606 (do_target_wait): Remove threads_are_executing and
1607 threads_are_resumed_pending_p checks from the inferior_matches
1608 lambda. Update comments.
1609
d6cc5d98
PA
16102020-07-10 Pedro Alves <pedro@palves.net>
1611
1612 PR gdb/26199
1613 * infrun.c (handle_no_resumed): Transfer terminal to inferior with
1614 executing threads.
1615
7d3badc6
PA
16162020-07-10 Pedro Alves <pedro@palves.net>
1617
1618 PR gdb/26199
1619 * infrun.c (handle_no_resumed): Handle multiple targets.
1620
42bd97a6
PA
16212020-07-10 Pedro Alves <pedro@palves.net>
1622
1623 PR gdb/26199
1624 * infrun.c (prepare_to_wait): Check target_can_async_p instead of
1625 target_is_async_p.
1626
43667cc6
PA
16272020-07-10 Pedro Alves <pedro@palves.net>
1628
1629 PR gdb/26199
1630 * target.c (target_pass_ctrlc): Look at the inferior's non-exited
1631 threads, not all threads.
1632
96118d11
PA
16332020-07-10 Pedro Alves <pedro@palves.net>
1634
1635 PR gdb/26199
1636 * remote.c (remote_target::open_1): Pass remote target pointer as
1637 data to create_async_event_handler.
1638 (remote_async_inferior_event_handler): Mark async event handler
1639 before returning if the remote target still has either pending
1640 events or unacknowledged notifications.
1641
54904d81
JB
16422020-07-10 John Baldwin <jhb@FreeBSD.org>
1643
1644 * fbsd-nat.h (fbsd_nat_target::supports_multi_process): New
1645 declaration.
1646 * fbsd-nat.c (fbsd_nat_target::supports_multi_process): New
1647 function.
1648
f37e5866
JB
16492020-07-09 John Baldwin <jhb@FreeBSD.org>
1650
1651 * inf-ptrace.c (inf_ptrace_target::wait): Don't compare against
1652 inferior_ptid.
1653
fc238d4a
JB
16542020-07-09 John Baldwin <jhb@FreeBSD.org>
1655
1656 * fbsd-tdep.c (fbsd_print_auxv_entry): Handle AT_FREEBSD_ARGC,
1657 AT_FREEBSD_ARGV, AT_FREEBSD_ENVC, AT_FREEBSD_ENVV,
1658 AT_FREEBSD_PS_STRINGS.
1659
6e2469ff
HD
16602020-07-08 Hannes Domani <ssbssa@yahoo.de>
1661
1662 * auto-load.c (auto_load_objfile_script_1): Convert drive part
1663 of debugfile path on Windows.
1664
d1076c41
JB
16652020-07-08 John Baldwin <jhb@FreeBSD.org>
1666
1667 * fbsd-nat.c (fbsd_nat_target::find_memory_regions): Rename 'obfd'
1668 argument to 'data'.
1669
15f3b077
TT
16702020-07-08 Tom Tromey <tromey@adacore.com>
1671
1672 * ada-lang.c (ada_exception_message_1): Use read_memory.
1673
9fc501fd
AB
16742020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
1675
1676 PR python/22748
1677 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first): Remove
1678 special handling for inline frames.
1679 * findvar.c (value_of_register_lazy): Skip inline frames when
1680 creating lazy register values.
1681 * frame.c (frame_id_computed_p): Delete definition.
1682 * frame.h (frame_id_computed_p): Delete declaration.
1683
64cb3757
AB
16842020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
1685
1686 * NEWS: Mention additions to Python API.
1687 * python/py-arch.c (archpy_register_groups): New function.
1688 (arch_object_methods): Add 'register_groups' method.
1689 * python/py-registers.c (reggroup_iterator_object): New struct.
1690 (reggroup_object): New struct.
1691 (gdbpy_new_reggroup): New function.
1692 (gdbpy_reggroup_to_string): New function.
1693 (gdbpy_reggroup_name): New function.
1694 (gdbpy_reggroup_iter): New function.
1695 (gdbpy_reggroup_iter_next): New function.
1696 (gdbpy_new_reggroup_iterator): New function
1697 (gdbpy_initialize_registers): Register new types.
1698 (reggroup_iterator_object_type): Define new Python type.
1699 (gdbpy_reggroup_getset): New static global.
1700 (reggroup_object_type): Define new Python type.
1701 * python/python-internal.h
1702
0f767f94
AB
17032020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
1704
1705 * Makefile.in (SUBDIR_PYTHON_SRCS): Add py-registers.c
1706 * python/py-arch.c (archpy_registers): New function.
1707 (arch_object_methods): Add 'registers' method.
1708 * python/py-registers.c: New file.
1709 * python/python-internal.h
1710 (gdbpy_new_register_descriptor_iterator): Declare.
1711 (gdbpy_initialize_registers): Declare.
1712 * python/python.c (do_start_initialization): Call
1713 gdbpy_initialize_registers.
1714 * NEWS: Mention additions to the Python API.
1715
87dbc774
AB
17162020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
1717
1718 * NEWS: Mention new Python API method.
1719 * python/py-unwind.c (pending_framepy_architecture): New function.
1720 (pending_frame_object_methods): Add architecture method.
1721
3bc98c0c
AB
17222020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
1723
1724 * gdbarch.c: Regenerate.
1725 * gdbarch.h: Regenerate.
1726 * gdbarch.sh (deprecated_set_gdbarch_data): Delete.
1727 (gdbarch_data): Use internal_error for the case where
1728 deprecated_set_gdbarch_data was originally needed.
1729 * ia64-libunwind-tdep.c (libunwind_descr_init): Update parameters,
1730 and use passed in obstack.
1731 (libunwind_frame_set_descr): Should no longer get back NULL from
1732 gdbarch_data.
1733 (_initialize_libunwind_frame): Register as a pre-init gdbarch data
1734 type.
1735 * user-regs.c (user_regs_init): Update parameters, and use passed
1736 in obstack.
1737 (user_reg_add): Should no longer get back NULL from gdbarch_data.
1738 (_initialize_user_regs): Register as a pre-init gdbarch data type.
1739
d8cc8af6
TV
17402020-07-06 Tom de Vries <tdevries@suse.de>
1741
1742 * buildsym.c (buildsym_compunit::end_symtab_with_blockvector): Handle
1743 End-Of-Sequence in lte_is_less_than.
1744 * symtab.c (find_pc_sect_line): Revert change from commit 3d92a3e313
1745 "gdb: Don't reorder line table entries too much when sorting".
1746
947f7597
TV
17472020-07-06 Tom de Vries <tdevries@suse.de>
1748
1749 PR tui/26205
1750 * tui/tui-win.c (tui_partial_win_by_name): Don't test for NULL name.
1751
1e7c1b22
TV
17522020-07-05 Tom de Vries <tdevries@suse.de>
1753
1754 PR build/26187
1755 * inferior.h (struct infcall_suspend_state_deleter): If available, use
1756 std::uncaught_exceptions instead of deprecated
1757 std::uncaught_exception.
1758
a36158ec
SM
17592020-07-02 Simon Marchi <simon.marchi@polymtl.ca>
1760
1761 * macroexp.h (macro_stringify): Return
1762 gdb::unique_xmalloc_ptr<char>.
1763 * macroexp.c (macro_stringify): Likewise.
1764 * macrotab.c (fixup_definition): Update.
1765
14d960c8
SM
17662020-07-02 Simon Marchi <simon.marchi@polymtl.ca>
1767
1768 * c-exp.y (scan_macro_expansion): Don't free `expansion`.
1769 (lex_one_token): Update.
1770 * macroexp.c (struct macro_buffer) <release>: Return
1771 gdb::unique_xmalloc_ptr<char>.
1772 (macro_stringify): Update.
1773 (macro_expand): Update.
1774 (macro_expand_next): Return gdb::unique_xmalloc_ptr<char>.
1775 * macroexp.h (macro_expand_next): Likewise.
1776
211d5b1c
SM
17772020-07-02 Simon Marchi <simon.marchi@efficios.com>
1778
1779 * macroexp.h (macro_lookup_ftype): Remove.
1780 (macro_expand, macro_expand_once, macro_expand_next): Remove
1781 lookup function parameters, add scope parameter.
1782 * macroexp.c (scan, substitute_args, expand, maybe_expand,
1783 macro_expand, macro_expand_once, macro_expand_next): Likewise.
1784 * macroscope.h (standard_macro_lookup): Change parameter type
1785 to macro_scope.
1786 * macroscope.c (standard_macro_lookup): Likewise.
1787 * c-exp.y (lex_one_token): Update.
1788 * macrocmd.c (macro_expand_command): Likewise.
1789 (macro_expand_once_command): Likewise.
1790
b1a35af2
SM
17912020-07-02 Simon Marchi <simon.marchi@polymtl.ca>
1792
1793 * inf-loop.c (inferior_event_handler): Remove client_data param.
1794 * inf-loop.h (inferior_event_handler): Likewise.
1795 * infcmd.c (step_1): Adjust.
1796 * infrun.c (proceed): Adjust.
1797 (fetch_inferior_event): Remove client_data param.
1798 (infrun_async_inferior_event_handler): Adjust.
1799 * infrun.h (fetch_inferior_event): Remove `void *` param.
1800 * linux-nat.c (handle_target_event): Adjust.
1801 * record-btrace.c (record_btrace_handle_async_inferior_event):
1802 Adjust.
1803 * record-full.c (record_full_async_inferior_event_handler):
1804 Adjust.
1805 * remote.c (remote_async_inferior_event_handler): Adjust.
1806
1cdf9e33
TT
18072020-07-01 Tom Tromey <tom@tromey.com>
1808
1809 * tui/tui-data.h (struct tui_win_info) <name>: Now pure virtual.
1810 * tui/tui-stack.h (struct tui_locator_window) <name>: New method.
1811
32c1e210
TT
18122020-07-01 Tom Tromey <tom@tromey.com>
1813
1814 * tui/tui-wingeneral.c (tui_win_info::refresh_window): Move from
1815 tui_gen_win_info.
1816 (tui_win_info::make_window): Merge with
1817 tui_gen_win_info::make_window.
1818 (tui_win_info::make_visible): Move from tui_gen_win_info.
1819 * tui/tui-win.c (tui_win_info::max_width): Move from
1820 tui_gen_win_info.
1821 * tui/tui-layout.h (class tui_layout_window) <m_window>: Change
1822 type.
1823 <window_factory>: Likewise.
1824 * tui/tui-layout.c (tui_win_info::resize): Move from
1825 tui_gen_win_info.
1826 (make_standard_window): Change return type.
1827 (get_locator_window, tui_get_window_by_name): Likewise.
1828 (tui_layout_window::apply): Remove a cast.
1829 * tui/tui-data.h (MIN_WIN_HEIGHT): Move earlier.
1830 (struct tui_win_info): Merge with tui_gen_win_info.
1831 (struct tui_gen_win_info): Remove.
1832
a30cb6da
TT
18332020-07-01 Tom Tromey <tom@tromey.com>
1834
1835 * tui/tui-stack.h (struct tui_locator_window): Derive from
1836 tui_win_info.
1837 <do_scroll_horizontal, do_scroll_vertical>: New methods.
1838 <can_box>: New method.
1839
1eb2161f
TT
18402020-07-01 Tom Tromey <tom@tromey.com>
1841
1842 * tui/tui-stack.h (struct tui_locator_window): Remove body.
1843
7134f2eb
TT
18442020-07-01 Tom Tromey <tom@tromey.com>
1845
1846 * tui/tui-regs.c (tui_data_window::display_registers_from)
1847 (tui_data_window::display_registers_from)
1848 (tui_data_window::first_data_item_displayed)
1849 (tui_data_window::delete_data_content_windows): Update.
1850 (tui_data_window::refresh_window, tui_data_window::no_refresh):
1851 Remove.
1852 (tui_data_window::check_register_values): Update.
1853 (tui_data_item_window::rerender): Add parameters. Update.
1854 (tui_data_item_window::refresh_window): Remove.
1855 * tui/tui-data.h (struct tui_gen_win_info) <no_refresh>: No longer
1856 virtual.
1857 * tui/tui-regs.h (struct tui_data_item_window): Don't derive from
1858 tui_gen_win_info.
1859 <refresh_window, max_height, min_height>: Remove.
1860 <rerender>: Add parameters.
1861 <x, y, visible>: New members.
1862 (struct tui_data_window) <refresh_window, no_refresh>: Remove.
1863 <m_item_width>: New member.
1864
22b7b041
TT
18652020-07-01 Tom Tromey <tom@tromey.com>
1866
1867 * tui/tui-regs.c (tui_data_window::show_register_group)
1868 (tui_data_window::check_register_values): Update.
1869 * tui/tui-regs.h (struct tui_data_item_window) <regno>: Rename
1870 from item_no.
1871
c9753adb
TT
18722020-07-01 Tom Tromey <tom@tromey.com>
1873
1874 * tui/tui-regs.c (tui_data_window::show_register_group): Remove
1875 useless "if".
1876
9ab26b4a
TT
18772020-07-01 Tom Tromey <tom@tromey.com>
1878
1879 * tui/tui-regs.c (tui_data_window::show_register_group): Update.
1880 * tui/tui-regs.h (struct tui_data_item_window) <name>: Remove.
1881
e555083f
TT
18822020-07-01 Tom Tromey <tom@tromey.com>
1883
1884 * tui/tui-stack.c (SINGLE_KEY): Move from tui-data.h
1885 * tui/tui-winsource.h (enum tui_line_or_address_kind)
1886 (struct tui_line_or_address): Move from tui-data.h.
1887 * tui/tui-win.c (DEFAULT_TAB_LEN): Move from tui-data.h.
1888 * tui/tui-data.h (DEFAULT_TAB_LEN): Move to tui-win.c.
1889 (tui_cmd_window, tui_source_window_base, tui_source_window)
1890 (tui_disasm_window): Don't declare.
1891 (enum tui_line_or_address_kind, struct tui_line_or_address): Move
1892 to tui-winsource.h.
1893 (SINGLE_KEY): Move to tui-stack.c.
1894
7a02bab7
TT
18952020-07-01 Tom Tromey <tom@tromey.com>
1896
1897 * tui/tui-regs.h (struct tui_data_item_window) <content>: Now a
1898 std::string.
1899 * tui/tui-regs.c (class tab_expansion_file): New.
1900 (tab_expansion_file::write): New method.
1901 (tui_register_format): Change return type. Use
1902 tab_expansion_file.
1903 (tui_get_register, tui_data_window::display_registers_from)
1904 (tui_data_item_window::rerender): Update.
1905 * tui/tui-io.h (tui_expand_tabs): Don't declare.
1906 * tui/tui-io.c (tui_expand_tabs): Remove.
1907
ea68593b
TT
19082020-07-01 Tom Tromey <tom@tromey.com>
1909
1910 * tui/tui-regs.c (tui_reggroup_completer): Use complete_on_enum.
1911
a8caed5d
FS
19122020-07-01 Fangrui Song <maskray@google.com>
1913
1914 * dwarf2/read.c (lnp_state_machine::check_line_address): Test -1.
1915
9cdf9820
AKS
19162020-07-01 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
1917
1918 * dwarf2/read.c (set_die_type): Removed conditions to restrict
1919 forms for DW_AT_associated and DW_AT_allocated attributes,
1920 which is already checked in function attr_to_dynamic_prop.
1921
a1520ad8
TT
19222020-06-30 Tom Tromey <tromey@adacore.com>
1923
1924 * dwarf2/read.c (quirk_rust_enum): Correctly call
1925 alloc_rust_variant for default-less enum.
1926
5ac58899
TT
19272020-06-30 Tom Tromey <tromey@adacore.com>
1928
1929 PR build/26183:
1930 * ada-lang.c (ada_lookup_name_info::ada_lookup_name_info): Use
1931 gdb::to_string.
1932
19b187a9
SM
19332020-06-29 Simon Marchi <simon.marchi@efficios.com>
1934
1935 * gdbarch.sh (displaced_step_copy_insn): Update doc.
1936 * gdbarch.h: Re-generate.
1937
cd4c4c07
TT
19382020-06-28 Tom Tromey <tom@tromey.com>
1939
1940 * command.h (cmd_types): Remove.
1941 (cmd_type): Don't declare.
1942 * cli/cli-decode.h (enum cmd_types): Uncomment. No longer a
1943 typedef.
1944 * cli/cli-cmds.c (setting_cmd): Use cmd->type directly.
1945 * cli/cli-decode.c (cmd_type): Remove.
1946
05779d57
PA
19472020-06-27 Pedro Alves <palves@redhat.com>
1948
1949 * fork-child.c (prefork_hook): Adjust.
1950 * infcmd.c (set_inferior_io_terminal, get_inferior_io_terminal):
1951 Delete.
1952 (set_inferior_tty_command, show_inferior_tty_command): Adjust.
1953 * inferior.c (inferior::set_tty, inferior::tty): New methods.
1954 * inferior.h (set_inferior_io_terminal, get_inferior_io_terminal):
1955 Remove declarations.
1956 (struct inferior) <set_tty, tty>: New methods.
1957 (struct inferior) <terminal>: Rename to ...
1958 (struct inferior) <m_terminal>: ... this and make private.
1959 * main.c (captured_main_1): Adjust.
1960 * mi/mi-cmd-env.c (mi_cmd_inferior_tty_set): Adjust.
1961 (mi_cmd_inferior_tty_show): Adjust.
1962 * nto-procfs.c (nto_procfs_target::create_inferior): Adjust.
1963 * windows-nat.c (windows_nat_target::create_inferior): Adjust.
1964
1776e3e5
NA
19652020-06-26 Nick Alcock <nick.alcock@oracle.com>
1966
1967 * configure.ac: Add --enable-libctf: handle --disable-static
1968 properly.
1969 * acinclude.m4: sinclude ../config/enable.m4.
1970 * Makefile.in (aclocal_m4_deps): Adjust accordingly.
1971 (LIBCTF): Substitute in.
1972 (CTF_DEPS): New, likewise.
1973 (CLIBS): libctf needs symbols from libbfd: move earlier.
1974 (CDEPS): Use CTF_DEPS, not LIBCTF, now LIBCTF can include rpath
1975 flags.
1976 * ctfread.c: Surround in ENABLE_LIBCTF.
1977 (elfctf_build_psymtabs) [!ENABLE_LIBCTF]: New stub.
1978 * configure: Regenerate.
1979 * config.in: Likewise.
1980
58373b80
SM
19812020-06-25 Simon Marchi <simon.marchi@efficios.com>
1982
1983 * infcmd.c (set_inferior_io_terminal): Use make_unique_xstrdup.
1984
277474ee
SM
19852020-06-25 Simon Marchi <simon.marchi@efficios.com>
1986
1987 * inferior.h (struct inferior) <terminal>: Change type to
1988 gdb::unique_xmalloc_ptr<char>.
1989 * inferior.c (inferior::~inferior): Don't free inf->terminal.
1990 * infcmd.c (set_inferior_io_terminal): Don't free terminal
1991 field, adjust to unique pointer.
1992 (get_inferior_io_terminal): Adjust to unique pointer.
1993
6d74da72
AB
19942020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
1995
1996 * riscv-tdep.c (riscv_print_registers_info): Loop over all
1997 registers, not just the known core set of registers.
1998
2e52d038
AB
19992020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
2000
2001 * riscv-tdep.c (riscv_register_name): Return NULL for duplicate
2002 fflags, frm, and fcsr registers.
2003 (riscv_register_reggroup_p): Remove unknown CSRs from save and
2004 restore groups.
2005 (riscv_tdesc_unknown_reg): New function.
2006 (riscv_gdbarch_init): Pass riscv_tdesc_unknown_reg to
2007 tdesc_use_registers.
2008 * riscv-tdep.h (struct gdbarch_tdep): Add
2009 unknown_csrs_first_regnum, unknown_csrs_count,
2010 duplicate_fflags_regnum, duplicate_frm_regnum, and
2011 duplicate_fcsr_regnum fields.
2012
be64fd07
AB
20132020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
2014
2015 * target-descriptions.c (tdesc_use_registers): Add new parameter a
2016 callback, use the callback (when not null) to help number unknown
2017 registers.
2018 * target-descriptions.h (tdesc_unknown_register_ftype): New typedef.
2019 (tdesc_use_registers): Add extra parameter to declaration.
2020
3b9fce96
AB
20212020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
2022
2023 * riscv-tdep.c (value_of_riscv_user_reg): Moved to here from later
2024 in the file.
2025 (class riscv_pending_register_alias): Likewise.
2026 (riscv_register_feature::register_info): Change 'required_p' field
2027 to 'required', and change its type. Add 'check' member function.
2028 (riscv_register_feature::register_info::check): Define new member
2029 function.
2030 (riscv_xreg_feature): Change initialisation of 'required' field.
2031 (riscv_freg_feature): Likewise.
2032 (riscv_virtual_feature): Likewise.
2033 (riscv_csr_feature): Likewise.
2034 (riscv_check_tdesc_feature): Take extra parameter, the csr
2035 tdesc_feature, rewrite the function to use the new
2036 riscv_register_feature::register_info::check function.
2037 (riscv_gdbarch_init): Pass the csr tdesc_feature where needed.
2038
865bad26
AB
20392020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
2040
2041 * features/Makefile: Remove all references to the deleted files
2042 below.
2043 * features/riscv/32bit-csr.c: Deleted.
2044 * features/riscv/32bit-csr.xml: Deleted.
2045 * features/riscv/64bit-csr.c: Deleted.
2046 * features/riscv/64bit-csr.xml: Deleted.
2047 * features/riscv/rebuild-csr-xml.sh: Deleted.
2048
ed69cbc8
AB
20492020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
2050
2051 * riscv-tdep.c (struct riscv_register_feature::register_info): Fix
2052 whitespace error for declaration of names member variable.
2053 (struct riscv_register_feature): Add new prefer_first_name member
2054 variable, and fix whitespace error in declaration of registers.
2055 (riscv_xreg_feature): Initialize prefer_first_name field.
2056 (riscv_freg_feature): Likewise.
2057 (riscv_virtual_feature): Likewise.
2058 (riscv_csr_feature): Likewise.
2059 (riscv_register_name): Expand on comments. Remove register name
2060 modifications for CSR and virtual registers.
2061
4445e8f5
AB
20622020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
2063
2064 * riscv-tdep.c (struct riscv_register_feature): Fix whitespace
2065 errors.
2066
767a879e
AB
20672020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
2068
2069 * riscv-tdep.c (riscv_create_csr_aliases): Handle csr aliases from
2070 riscv-opc.h.
2071 (class riscv_pending_register_alias): New class.
2072 (riscv_check_tdesc_feature): Take vector of pending aliases and
2073 populate it as appropriate.
2074 (riscv_setup_register_aliases): Delete.
2075 (riscv_gdbarch_init): Create vector of pending aliases and pass it
2076 to riscv_check_tdesc_feature in all cases. Use the vector to
2077 create the register aliases.
2078
bb6e55f3
RO
20792020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2080
2081 * sol2-tdep.c (sol2_static_transform_name): Remove.
2082 (sol2_init_abi): Don't register it.
2083 * gdbarch.sh (static_transform_name): Remove.
2084 * gdbarch.c, gdbarch.h: Regenerate.
2085
2086 * dbxread.c (read_dbx_symtab) <'S'>: Remove call to
2087 gdbarch_static_transform_name.
2088 * mdebugread.c (parse_partial_symbols) <'S'>: Likewise.
2089 * stabsread.c (define_symbol) <'X'>: Remove.
2090 (define_symbol) <'S'>: Remove gdbarch_static_transform_name
2091 handling.
2092 <'V'>: Likewise.
2093 * xcoffread.c (scan_xcoff_symtab): Remove gdbarch.
2094 <'S'>: Remove call to gdbarch_static_transform_name.
2095
c6d36836
RO
20962020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2097
2098 * procfs.c (procfs_pre_trace): New function.
2099 (procfs_target::create_inferior): Pass it to fork_inferior.
2100
a7e6196b
RO
21012020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2102
2103 * configure.tgt <sparc-*-linux*> (gdb_target_obs): Remove
2104 sparc-sol2-tdep.o, sol2-tdep.o, sparc64-sol2-tdep.o.
2105 <sparc64-*-linux*> (gdb_target_obs): Remove sparc64-sol2-tdep.o,
2106 sol2-tdep.o, sparc-sol2-tdep.o.
2107 * sparc-sol2-tdep.c (sparc32_sol2_init_abi): Make static.
2108 * sparc-tdep.h (sparc32_sol2_init_abi): Remove.
2109 * sparc64-sol2-tdep.c (sparc64_sol2_init_abi): Make static.
2110 * sparc64-tdep.h (sparc64_sol2_init_abi): Remove.
2111
d412e696
RO
21122020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2113
2114 * amd64-sol2-tdep.c (amd64_sol2_sigtramp_p): Remove.
2115 (amd64_sol2_init_abi): Use sol2_sigtramp_p.
2116 Call sol2_init_abi.
2117 Remove calls to set_gdbarch_skip_solib_resolver,
2118 set_gdbarch_core_pid_to_str.
2119 * i386-sol2-tdep.c (i386_sol2_sigtramp_p): Remove.
2120 (i386_sol2_static_transform_name): Remove.
2121 (i386_sol2_init_abi): Call sol2_init_abi.
2122 Remove calls to set_gdbarch_sofun_address_maybe_missing,
2123 set_gdbarch_static_transform_name,
2124 set_gdbarch_skip_solib_resolver, set_gdbarch_core_pid_to_str.
2125 Use sol2_sigtramp_p.
2126 * sol2-tdep.c (sol2_pc_in_sigtramp): New function.
2127 (sol2_sigtramp_p): New function.
2128 (sol2_static_transform_name): New function.
2129 (sol2_skip_solib_resolver, sol2_core_pid_to_str): Make static.
2130 (sol2_init_abi): New function.
2131 * sol2-tdep.h (sol2_sigtramp_p, sol2_init_abi): Declare.
2132 (sol2_skip_solib_resolver, sol2_core_pid_to_str): Remove.
2133 * sparc-sol2-tdep.c (sparc_sol2_pc_in_sigtramp): Remove.
2134 (sparc32_sol2_sigtramp_frame_sniffer): Just call sol2_sigtramp_p.
2135 (sparc_sol2_static_transform_name): Remove.
2136 (sparc32_sol2_init_abi): Call sol2_init_abi.
2137 Remove calls to set_gdbarch_sofun_address_maybe_missing,
2138 set_gdbarch_static_transform_name,
2139 set_gdbarch_skip_solib_resolver,
2140 set_gdbarch_core_pid_to_str.
2141 * sparc-tdep.h (sparc_sol2_pc_in_sigtramp)
2142 (sparc_sol2_static_transform_name): Remove
2143 * sparc64-sol2-tdep.c (sparc64_sol2_sigtramp_frame_sniffer): Just
2144 call sol2_sigtramp_p.
2145 (sparc64_sol2_init_abi): Call sol2_init_abi.
2146 Remove calls to set_gdbarch_sofun_address_maybe_missing,
2147 set_gdbarch_static_transform_name,
2148 set_gdbarch_skip_solib_resolver, set_gdbarch_core_pid_to_str.
2149
a8654e7d
PW
21502020-06-24 Philippe Waroquiers <philippe.waroquiers@skynet.be>
2151
2152 * symfile-add-flags.h: New flag SYMFILE_ALWAYS_CONFIRM.
2153 * exec.c (validate_exec_file): If from_tty, set both
2154 SYMFILE_VERBOSE (== from_tty) and SYMFILE_ALWAYS_CONFIRM.
2155 * symfile.c (symbol_file_add_with_addrs): if always_confirm
2156 and from_tty, unconditionally ask a confirmation.
2157
caa7fd04
AB
21582020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
2159
2160 * target-descriptions.c (tdesc_architecture_name): Protect against
2161 NULL pointer dereference.
2162 (maint_print_xml_tdesc_cmd): New function.
2163 (_initialize_target_descriptions): Register new 'maint print
2164 xml-tdesc' command and give it the filename completer.
2165 * NEWS: Mention new 'maint print xml-tdesc' command.
2166
fbf42f4e
AB
21672020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
2168
2169 * target-descriptions.c (class tdesc_compatible_info): New class.
2170 (struct target_desc): Change type of compatible vector.
2171 (tdesc_compatible_p): Update for change in type of
2172 target_desc::compatible.
2173 (tdesc_compatible_info_list): New function.
2174 (tdesc_compatible_info_arch_name): New function.
2175 (tdesc_add_compatible): Update for change in type of
2176 target_desc::compatible.
2177 (print_c_tdesc::visit_pre): Likewise.
2178
20821f4e
AB
21792020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
2180
2181 * target-descriptions.c (print_c_tdesc::print_c_tdesc): Change
2182 whitespace to underscore.
2183 (maint_print_c_tdesc_cmd): Use fake filename for target
2184 descriptions that came from the target.
2185 (_initialize_target_descriptions): Add filename command completion
2186 for 'maint print c-tdesc'.
2187
1fb5ee62
SM
21882020-06-23 Simon Marchi <simon.marchi@efficios.com>
2189
2190 * dwarf2/loc.c (decode_debug_loclists_addresses): Add empty
2191 lines.
2192
fc3ecb3e
SM
21932020-06-23 Simon Marchi <simon.marchi@efficios.com>
2194
2195 * dwarf2/loc.c (decode_debug_loc_dwo_addresses): Add empty
2196 lines.
2197 (dwarf2_find_location_expression): Likewise.
2198 (call_site_parameter_matches): Likewise.
2199 (dwarf2_compile_expr_to_ax): Likewise.
2200 (disassemble_dwarf_expression): Likewise.
2201 (loclist_describe_location): Likewise.
2202
236ef034
PA
22032020-06-23 Pedro Alves <palves@redhat.com>
2204
2205 * gdbarch-selftests.c: Don't include inferior.h, gdbthread.h or
2206 progspace-and-thread.h. Include scoped-mock-context.h instead.
2207 (register_to_value_test): Use scoped_mock_context.
2208 * regcache.c: Include "scoped-mock-context.h".
2209 (cooked_read_test): Don't error out if a target is already pushed.
2210 Use scoped_mock_context. Adjust.
2211 * scoped-mock-context.h: New file.
2212
39e7ecca
AB
22132020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
2214
2215 * ada-lang.c (ada_language_data): Delete la_is_string_type_p
2216 initializer.
2217 (ada_language::is_string_type_p): New member function.
2218 * c-lang.c (c_language_data): Delete la_is_string_type_p
2219 initializer.
2220 (cplus_language_data): Likewise.
2221 (asm_language_data): Likewise.
2222 (minimal_language_data): Likewise.
2223 * d-lang.c (d_language_data): Likewise.
2224 * f-lang.c (f_is_string_type_p): Delete function, implementation
2225 moved to f_language::is_string_type_p.
2226 (f_language_data): Delete la_is_string_type_p initializer.
2227 (f_language::is_string_type_p): New member function,
2228 implementation from f_is_string_type_p.
2229 * go-lang.c (go_is_string_type_p): Delete function, implementation
2230 moved to go_language::is_string_type_p.
2231 (go_language_data): Delete la_is_string_type_p initializer.
2232 (go_language::is_string_type_p): New member function,
2233 implementation from go_is_string_type_p.
2234 * language.c (language_defn::is_string_type_p): Define new member
2235 function.
2236 (default_is_string_type_p): Make static, add comment copied from
2237 header file.
2238 (unknown_language_data): Delete la_is_string_type_p initializer.
2239 (unknown_language::is_string_type_p): New member function.
2240 (auto_language_data): Delete la_is_string_type_p initializer.
2241 (auto_language::is_string_type_p): New member function.
2242 * language.h (language_data): Delete la_is_string_type_p field.
2243 (language_defn::is_string_type_p): Declare new function.
2244 (default_is_string_type_p): Delete desclaration, move comment to
2245 definition.
2246 * m2-lang.c (m2_is_string_type_p): Delete function, implementation
2247 moved to m2_language::is_string_type_p.
2248 (m2_language_data): Delete la_is_string_type_p initializer.
2249 (m2_language::is_string_type_p): New member function,
2250 implementation from m2_is_string_type_p.
2251 * objc-lang.c (objc_language_data): Delete la_is_string_type_p
2252 initializer.
2253 * opencl-lang.c (opencl_language_data): Likewise.
2254 * p-lang.c (pascal_is_string_type_p): Delete function,
2255 implementation moved to pascal_language::is_string_type_p.
2256 (pascal_language_data): Delete la_is_string_type_p initializer.
2257 (pascal_language::is_string_type_p): New member function,
2258 implementation from pascal_is_string_type_p.
2259 * rust-lang.c (rust_is_string_type_p): Delete function,
2260 implementation moved to rust_language::is_string_type_p.
2261 (rust_language_data): Delete la_is_string_type_p initializer.
2262 (rust_language::is_string_type_p): New member function,
2263 implementation from rust_is_string_type_p.
2264 * valprint.c (val_print_scalar_or_string_type_p): Update call to
2265 is_string_type_p.
2266
4ffc13fb
AB
22672020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
2268
2269 * ada-lang.c (ada_language_data): Delete la_print_typedef
2270 initializer.
2271 (ada_language::print_typedef): New member function.
2272 * c-lang.c (c_language_data): Delete la_print_typedef initializer.
2273 (cplus_language_data): Likewise.
2274 (asm_language_data): Likewise.
2275 (minimal_language_data): Likewise.
2276 * d-lang.c (d_language_data): Likewise.
2277 * f-lang.c (f_language_data): Likewise.
2278 (f_language::print_typedef): New member function.
2279 * go-lang.c (go_language_data): Delete la_print_typedef
2280 initializer.
2281 * language.c (language_defn::print_typedef): Define member
2282 function.
2283 (unknown_language_data): Delete la_print_typedef initializer.
2284 (unknown_language::print_typedef): New member function.
2285 (auto_language_data): Delete la_print_typedef initializer.
2286 (auto_language::print_typedef): New member function.
2287 * language.h (language_data): Delete la_print_typedef field.
2288 (language_defn::print_typedef): Declare new member function.
2289 (LA_PRINT_TYPEDEF): Update call to print_typedef.
2290 (default_print_typedef): Delete declaration.
2291 * m2-lang.c (m2_language_data): Delete la_print_typedef
2292 initializer.
2293 (m2_language::print_typedef): New member function.
2294 * objc-lang.c (objc_language_data): Delete la_print_typedef
2295 initializer.
2296 * opencl-lang.c (opencl_language_data): Likewise.
2297 * p-lang.c (pascal_language_data): Likewise.
2298 (pascal_language::print_typedef): New member function.
2299 * rust-lang.c (rust_print_typedef): Delete function,
2300 implementation moved to rust_language::print_typedef.
2301 (rust_language): Delete la_print_typedef initializer.
2302 (rust_language::print_typedef): New member function,
2303 implementation from rust_print_typedef.
2304 * typeprint.c (default_print_typedef): Delete.
2305
d711ee67
AB
23062020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
2307
2308 * ada-lang.c (ada_language_data): Delete la_printstr initializer.
2309 (ada_language::printstr): New member function.
2310 * c-lang.c (c_language_data): Delete la_printstr initializer.
2311 (cplus_language_data): Likewise.
2312 (asm_language_data): Likewise.
2313 (minimal_language_data): Likewise.
2314 * d-lang.c (d_language_data): Likewise.
2315 * f-lang.c (f_printstr): Rename to f_language::printstr.
2316 (f_language_data): Delete la_printstr initializer.
2317 (f_language::printstr): New member function, implementation from
2318 f_printstr.
2319 * go-lang.c (go_language_data): Delete la_printstr initializer.
2320 * language.c (language_defn::printstr): Define new member
2321 function.
2322 (unk_lang_printstr): Delete.
2323 (unknown_language_data): Delete la_printstr initializer.
2324 (unknown_language::printstr): New member function.
2325 (auto_language_data): Delete la_printstr initializer.
2326 (auto_language::printstr): New member function.
2327 * language.h (language_data): Delete la_printstr field.
2328 (language_defn::printstr): Declare new member function.
2329 (LA_PRINT_STRING): Update call to printstr.
2330 * m2-lang.c (m2_printstr): Rename to m2_language::printstr.
2331 (m2_language_data): Delete la_printstr initializer.
2332 (m2_language::printstr): New member function, implementation from
2333 m2_printstr.
2334 * objc-lang.c (objc_language_data): Delete la_printstr
2335 initializer.
2336 * opencl-lang.c (opencl_language_data): Likewise.
2337 * p-lang.c (pascal_printstr): Rename to pascal_language::printstr.
2338 (pascal_language_data): Delete la_printstr initializer.
2339 (pascal_language::printstr): New member function, implementation
2340 from pascal_printstr.
2341 * p-lang.h (pascal_printstr): Delete declaration.
2342 * rust-lang.c (rust_printstr): Update header comment.
2343 (rust_language_data): Delete la_printstr initializer.
2344 (rust_language::printstr): New member function.
2345
52b50f2c
AB
23462020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
2347
2348 * ada-lang.c (ada_language_data): Delete la_printchar initializer.
2349 (ada_language::printchar): New member function.
2350 * c-lang.c (c_language_data): Delete la_printchar initializer.
2351 (cplus_language_data): Likewise.
2352 (asm_language_data): Likewise.
2353 (minimal_language_data): Likewise.
2354 * d-lang.c (d_language_data): Likewise.
2355 * f-lang.c (f_printchar): Rename to f_language::printchar.
2356 (f_language_data): Delete la_printchar initializer.
2357 (f_language::printchar): New member function, implementation from
2358 f_printchar.
2359 * go-lang.c (go_language_data): Delete la_printchar initializer.
2360 * language.c (unk_lang_printchar): Delete.
2361 (language_defn::printchar): Define new member function.
2362 (unknown_language_data): Delete la_printchar initializer.
2363 (unknown_language::printchar): New member function.
2364 (auto_language_data): Delete la_printchar initializer.
2365 (auto_language::printchar): New member function.
2366 * language.h (language_data): Delete la_printchar field.
2367 (language_defn::printchar): Declare new member function.
2368 (LA_PRINT_CHAR): Update call to printchar.
2369 * m2-lang.c (m2_language_data): Delete la_printchar initializer.
2370 (m2_language::printchar): New member function.
2371 * objc-lang.c (objc_language_data): Delete la_printchar
2372 initializer.
2373 * opencl-lang.c (opencl_language_data): Likewise.
2374 * p-lang.c (pascal_language_data): Delete la_printchar
2375 initializer.
2376 (pascal_language::printchar): New member function.
2377 * rust-lang.c (rust_printchar): Rename to
2378 rust_language::printchar.
2379 (rust_language_data): Delete la_printchar initializer.
2380 (rust_language::printchar): New member function, implementation
2381 from rust_printchar.
2382
ec8cec5b
AB
23832020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
2384
2385 * ada-lang.c (emit_char): Renamed to ada_language::emitchar.
2386 (ada_language_data): Delete la_emitchar initializer.
2387 (ada_language::emitchar): New member function, implementation from
2388 emit_char.
2389 * c-lang.c (c_language_data): Delete la_emitchar initializer.
2390 (cplus_language_data): Likewise.
2391 (asm_language_data): Likewise.
2392 (minimal_language_data): Likewise.
2393 * d-lang.c (d_language_data): Likewise.
2394 * f-lang.c (f_emit_char): Rename to f_language::emitchar.
2395 (f_language_data): Delete la_emitchar initializer.
2396 (f_language::emitchar): New member function, implementation from
2397 f_emit_char.
2398 * go-lang.c (go_language_data): Delete la_emitchar initializer.
2399 * language.c (unk_lang_emit_char): Delete.
2400 (language_defn::emitchar): New member function definition.
2401 (unknown_language_data): Delete la_emitchar initializer.
2402 (unknown_language::emitchar): New member function.
2403 (auto_language_data): Delete la_emitchar initializer.
2404 (auto_language::emitchar): New member function.
2405 * language.h (language_data): Delete la_emitchar field.
2406 (language_defn::emitchar): New member field declaration.
2407 (LA_EMIT_CHAR): Update call to emitchar.
2408 * m2-lang.c (m2_emit_char): Rename to m2_language::emitchar.
2409 (m2_language_data): Delete la_emitchar initializer.
2410 (m2_language::emitchar): New member function, implementation from
2411 m2_emit_char.
2412 * objc-lang.c (objc_language_data): Delete la_emitchar
2413 initializer.
2414 * opencl-lang.c (opencl_language_data): Likewise.
2415 * p-lang.c (pascal_emit_char): Rename to pascal_language::emitchar.
2416 (pascal_language_data): Delete la_emitchar initializer.
2417 (pascal_language::emitchar): New member function, implementation
2418 from pascal_emit_char.
2419 * rust-lang.c (rust_emitchar): Rename to rust_language::emitchar.
2420 (rust_language_data): Delete la_emitchar initializer.
2421 (rust_language::emitchar): New member function, implementation
2422 from rust_emitchar.
2423
1bf9c363
AB
24242020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
2425
2426 * ada-lang.c (resolve): Rename to ada_language::post_parser.
2427 (ada_language_data): Delete la_post_parser initializer.
2428 (ada_language::post_parser): New member function.
2429 * c-lang.c (c_language_data): Delete la_post_parser initializer.
2430 (cplus_language_data): Likewise.
2431 (asm_language_data): Likewise.
2432 (minimal_language_data): Likewise.
2433 * d-lang.c (d_language_data): Likewise.
2434 * f-lang.c (f_language_data): Likewise.
2435 * go-lang.c (go_language_data): Likewise.
2436 * language.c (unknown_language_data): Likewise.
2437 (auto_language_data): Likewise.
2438 * language.h (language_data): Delete la_post_parser field.
2439 (language_defn::post_parser): New member function.
2440 * m2-lang.c (m2_language_data): Delete la_post_parser initializer.
2441 * objc-lang.c (objc_language_data): Likewise.
2442 * opencl-lang.c (opencl_language_data): Likewise.
2443 * p-lang.c (pascal_language_data): Likewise.
2444 * parse.c (parse_exp_in_context): Update call to post_parser.
2445 (null_post_parser): Delete definition.
2446 * parser-defs.h (null_post_parser): Delete declaration.
2447 * rust-lang.c (rust_language_data): Delete la_post_parser
2448 initializer.
2449
87afa652
AB
24502020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
2451
2452 * ada-lang.c (parse): Rename to ada_language::parser.
2453 (ada_language_data): Delete la_parser initializer.
2454 (ada_language::parser): New member function, implementation from
2455 parse.
2456 * c-lang.c (c_language_data): Delete la_parser initializer.
2457 (cplus_language_data): Likewise.
2458 (asm_language_data): Likewise.
2459 (minimal_language_data): Likewise.
2460 * d-lang.c (d_language_data): Likewise.
2461 (d_language::parser): New member function.
2462 * f-lang.c (f_language_data): Delete la_parser initializer.
2463 (f_language::parser): New member function.
2464 * go-lang.c (go_language_data): Delete la_parser initializer.
2465 (go_language::parser): New member function.
2466 * language.c (unk_lang_parser): Delete.
2467 (language_defn::parser): Define new member function.
2468 (unknown_language_data): Delete la_parser initializer.
2469 (unknown_language::parser): New member function.
2470 (auto_language_data): Delete la_parser initializer.
2471 (auto_language::parser): New member function.
2472 * language.h (language_data): Delete la_parser field.
2473 (language_defn::parser): Declare new member function.
2474 * m2-lang.c (m2_language_data): Delete la_parser initializer.
2475 (m2_language::parser): New member function.
2476 * objc-lang.c (objc_language_data): Delete la_parser initializer.
2477 * opencl-lang.c (opencl_language_data): Likewise.
2478 * p-lang.c (pascal_language_data): Likewise.
2479 (pascal_language::parser): New member function.
2480 * parse.c (parse_exp_in_context): Update call to parser.
2481 * rust-lang.c (rust_language_data): Delete la_parser initializer.
2482 (rust_language::parser): New member function.
2483
37825800
AB
24842020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
2485
2486 * top.c (print_gdb_configuration): Print --with-python-libdir
2487 configuration value.
2488
5b860c93
PW
24892020-06-22 Philippe Waroquiers <philippe.waroquiers@skynet.be>
2490
2491 * NEWS: Mention change to the alias command.
2492
cf00cd6f
PW
24932020-06-22 Philippe Waroquiers <philippe.waroquiers@skynet.be>
2494
2495 * cli/cli-cmds.c (lookup_cmd_for_default_args)
2496 (alias_command_completer)
2497 (make_alias_options_def_group): New functions.
2498 (alias_opts, alias_option_defs): New struct and array.
2499 (alias_usage_error): Update usage.
2500 (alias_command): Handles optional DEFAULT-ARGS... arguments.
2501 Use option framework.
2502 (_initialize_cli_cmds): Update alias command help.
2503 Update aliases command help.
2504 (show_user):
2505 Add NULL for new default_args lookup_cmd argument.
2506 (valid_command_p): Rename to validate_aliased_command.
2507 Add NULL for new default_args lookup_cmd argument. Verify that the
2508 aliased_command has no default args.
2509 * cli/cli-decode.c (help_cmd): Show aliases definitions.
2510 (lookup_cmd_1, lookup_cmd): New argument default_args.
2511 (add_alias_cmd):
2512 Add NULL for new default_args lookup_cmd argument.
2513 (print_help_for_command): Show default args under the layout
2514 alias some_alias = some_aliased_cmd some_alias_default_arg.
2515 * cli/cli-decode.h (struct cmd_list_element): New member default_args.
2516 xfree default_args in destructor.
2517 * cli/cli-script.c (process_next_line, do_define_command):
2518 Add NULL for new default_args lookup_cmd argument.
2519 * command.h: Declare new default_args argument in lookup_cmd
2520 and lookup_cmd_1.
2521 * completer.c (complete_line_internal_1):
2522 Add NULL for new default_args lookup_cmd or lookup_cmd_1 argument.
2523 * guile/scm-cmd.c (gdbscm_parse_command_name): Likewise.
2524 * guile/scm-param.c (add_setshow_generic, pascm_parameter_defined_p):
2525 Likewise.
2526 * infcmd.c (_initialize_infcmd): Likewise.
2527 * python/py-auto-load.c (gdbpy_initialize_auto_load): Likewise.
2528 * python/py-cmd.c (gdbpy_parse_command_name): Likewise.
2529 * python/py-param.c (add_setshow_generic): Likewise.
2530 * remote.c (_initialize_remote): Likewise.
2531 * top.c (execute_command): Prepend default_args if command has some.
2532 (set_verbose):
2533 Add NULL for new default_args lookup_cmd or lookup_cmd_1 argument.
2534 * tracepoint.c (validate_actionline, encode_actions_1):
2535 Add NULL for new default_args lookup_cmd or lookup_cmd_1 argument.
2536
bd920864
TBA
25372020-06-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2538
2539 * jit.c (jit_read_descriptor): Use bool as the return type.
2540 (jit_breakpoint_re_set_internal): Use bool as the return type.
2541 Invert the return value logic; return true if the jit breakpoint
2542 has been successfully initialized.
2543 (jit_inferior_init): Update the call to
2544 jit_breakpoint_re_set_internal.
2545
f8098322
PA
25462020-06-22 Pedro Alves <palves@redhat.com>
2547
2548 PR gdb/25939
2549 * procfs.c (procfs_target::wait): Don't reference inferior_ptid.
2550 Use the current inferior instead. Don't return
2551 TARGET_WAITKIND_SPURIOUS/inferior_ptid -- instead continue and
2552 wait again.
2553 * sol-thread.c (sol_thread_target::wait): Don't reference
2554 inferior_ptid.
2555 (ps_lgetregs, ps_lsetregs, ps_lgetfpregs, ps_lsetfpregs)
2556 (sol_update_thread_list_callback): Use the current inferior's pid
2557 instead of inferior_ptid.
2558
196535a6
RO
25592020-06-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2560
2561 * procfs.c: Cleanup many comments.
2562
2563 (READ_WATCHFLAG, WRITE_WATCHFLAG, EXEC_WATCHFLAG)
2564 (AFTER_WATCHFLAG): Replace by value.
2565
2566 (MAIN_PROC_NAME_FORMAT): Inline ...
2567 (create_procinfo): ... here.
2568
2569 (procfs_debug_inferior): Remove SYS_exec handling.
2570 (syscall_is_exec): Likewise.
2571 (procfs_set_exec_trap): Likewise.
2572
2573 (syscall_is_lwp_exit): Inline in callers.
2574 (syscall_is_exit): Likewise.
2575 (syscall_is_exec): Likewise.
2576 (syscall_is_lwp_create): Likewise.
2577
2578 (invalidate_cache): Remove #if 0 code.
2579
2580 (make_signal_thread_runnable): Remove.
2581 (procfs_target::resume): Remove #if 0 code.
2582
cf6f3e86
RO
25832020-06-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2584
2585 PR gdb/25939
2586 * procfs.c (procfs_target::procfs_init_inferior): Move push_target
2587 call ...
2588 (procfs_target::create_inferior): ... here.
2589
48e9cc84
PW
25902020-06-21 Philippe Waroquiers <philippe.waroquiers@skynet.be>
2591
2592 * exec.c (validate_exec_file): Ensure the build-id is up to
2593 date by calling reopen_exec_file (that checks file timestamp
2594 to decide to re-read the file).
2595
3922b302
PA
25962020-06-18 Pedro Alves <palves@redhat.com>
2597
2598 PR gdb/25412
2599 * gdbthread.h (delete_thread, delete_thread_silent)
2600 (find_thread_ptid): Update comments.
2601 * thread.c (current_thread_): New global.
2602 (is_current_thread): Move higher, and reimplement.
2603 (inferior_thread): Reimplement.
2604 (set_thread_exited): Use bool. Add assertions.
2605 (add_thread_silent): Simplify thread-reuse handling by always
2606 calling delete_thread.
2607 (delete_thread): Remove intro comment.
2608 (find_thread_ptid): Skip exited threads.
2609 (switch_to_thread_no_regs): Write to current_thread_.
2610 (switch_to_no_thread): Check CURRENT_THREAD_ instead of
2611 INFERIOR_PTID. Clear current_thread_.
2612
6dbdab44
PA
26132020-06-18 Pedro Alves <palves@redhat.com>
2614
2615 * aix-thread.c (pd_update): Use switch_to_thread.
2616
2da4b788
PA
26172020-06-18 Pedro Alves <palves@redhat.com>
2618
2619 * ravenscar-thread.c (ravenscar_thread_target): Update.
2620 (ravenscar_thread_target::update_inferior_ptid): Rename to ...
2621 (ravenscar_thread_target::add_active_thread): ... this. Don't
2622 set m_base_ptid here. Update to avoid referencing inferior_ptid.
2623 (ravenscar_thread_target::wait): Don't write to inferior_ptid.
2624
50838d1b
PA
26252020-06-18 Pedro Alves <palves@redhat.com>
2626
2627 * nat/windows-nat.c (current_windows_thread): Remove.
2628 * nat/windows-nat.h (current_windows_thread): Remove.
2629 * windows-nat.c (windows_nat_target::stopped_by_sw_breakpoint):
2630 Adjust.
2631 (display_selectors): Adjust to fetch the current
2632 windows_thread_info based on inferior_ptid.
2633 (fake_create_process): No longer write to current_windows_thread.
2634 (windows_nat_target::get_windows_debug_event):
2635 Don't set inferior_ptid or current_windows_thread.
2636 (windows_nat_target::wait): Adjust to not rely on
2637 current_windows_thread.
2638 (do_initial_windows_stuff): Now a method of windows_nat_target.
2639 Switch to the last_ptid thread.
2640 (windows_nat_target::attach): Adjust.
2641 (windows_nat_target::detach): Use switch_to_no_thread instead of
2642 writing to inferior_ptid directly.
2643 (windows_nat_target::create_inferior): Adjust.
2644
31ce04e9
PA
26452020-06-18 Pedro Alves <palves@redhat.com>
2646
2647 * windows-nat.c (do_initial_windows_stuff): No longer set inferior_ptid.
2648
1ee1a363
PA
26492020-06-18 Pedro Alves <palves@redhat.com>
2650
2651 * go32-nat.c (go32_nat_target::create_inferior): Switch to thread
2652 after creating it, instead of writing to inferior_ptid. Don't
2653 write to inferior_ptid.
2654
6d350754
PA
26552020-06-18 Pedro Alves <palves@redhat.com>
2656
2657 * fork-child.c (postfork_hook): Don't write to inferior_ptid.
2658
5d971d48
PA
26592020-06-18 Pedro Alves <palves@redhat.com>
2660
2661 * bsd-kvm.c (bsd_kvm_target_open): Switch to thread after adding
2662 it, instead of writing to inferior_ptid.
2663
86e57d1b
PA
26642020-06-18 Pedro Alves <palves@redhat.com>
2665
2666 * btrace.c (btrace_fetch): Use switch_to_thread instead of writing
2667 to inferior_ptid.
2668
f2e1c129
PA
26692020-06-18 Pedro Alves <palves@redhat.com>
2670
2671 * bsd-kvm.c (bsd_kvm_target::close): Use switch_to_no_thread
2672 instead of writing to inferior_ptid directly.
2673
60db1b85
PA
26742020-06-18 Pedro Alves <palves@redhat.com>
2675
2676 * corelow.c (core_target::close): Use switch_to_no_thread instead
2677 of writing to inferior_ptid directly.
2678 (add_to_thread_list, core_target_open): Use switch_to_thread
2679 instead of writing to inferior_ptid directly.
2680
fe7d6a8d
PA
26812020-06-18 Pedro Alves <palves@redhat.com>
2682
2683 * darwin-nat.c (darwin_nat_target::decode_message): Don't write to
2684 inferior_ptid.
2685 (darwin_nat_target::stop_inferior, darwin_nat_target::kill): Avoid
2686 inferior_ptid.
2687 (darwin_attach_pid): Use switch_to_no_thread instead of writing to
2688 inferior_ptid directly.
2689 (darwin_nat_target::init_thread_list): Switch to thread, instead
2690 of writing to inferior_ptid.
2691 (darwin_nat_target::attach): Don't write to inferior_ptid.
2692 (darwin_nat_target::get_ada_task_ptid): Avoid inferior_ptid.
2693
975f8708
PA
26942020-06-18 Pedro Alves <palves@redhat.com>
2695
2696 * gnu-nat.c (gnu_nat_target::create_inferior): Switch to the added
2697 thread.
2698 (gnu_nat_target::attach): Don't write to inferior_ptid directly.
2699 Instead use switch_to_thread.
2700 (gnu_nat_target::detach): Use switch_to_no_thread
2701 instead of writing to inferior_ptid directly. Used passed-in
2702 inferior instead of looking up the inferior by pid.
2703
1a204730
PA
27042020-06-18 Pedro Alves <palves@redhat.com>
2705
2706 * go32-nat.c (go32_nat_target::create_inferior): Don't write to
2707 inferior_ptid.
2708
ebe84f23
PA
27092020-06-18 Pedro Alves <palves@redhat.com>
2710
2711 * nto-procfs.c (nto_procfs_target::update_thread_list): Avoid
2712 inferior_ptid.
2713 (nto_procfs_target::attach): Avoid inferior_ptid. Switch to
2714 thread.
2715 (nto_procfs_target::detach): Avoid referencing
2716 inferior_ptid. Use switch_to_no_thread instead of writing to
2717 inferior_ptid directly.
2718 (nto_procfs_target::mourn_inferior): Use switch_to_no_thread
2719 instead of writing to inferior_ptid directly.
2720 (nto_procfs_target::create_inferior): Avoid inferior_ptid. Switch
2721 to thread.
2722
191f02e5
PA
27232020-06-18 Pedro Alves <palves@redhat.com>
2724
2725 * remote-sim.c (gdbsim_target::create_inferior): Switch to thread
2726 after creating it, instead of writing to inferior_ptid.
2727 (gdbsim_target_open): Use switch_to_no_thread instead of writing
2728 to inferior_ptid directly.
2729 (gdbsim_target::wait): Don't write to inferior_ptid.
2730
0ac55310
PA
27312020-06-18 Pedro Alves <palves@redhat.com>
2732
2733 * remote.c (remote_target::remote_notice_new_inferior): Use
2734 switch_to_thread instead of writing to inferior_ptid directly.
2735 (remote_target::add_current_inferior_and_thread): Use
2736 switch_to_no_thread instead of writing to inferior_ptid directly.
2737 (extended_remote_target::attach): Use switch_to_inferior_no_thread
2738 and switch_to_thread instead of using set_current_inferior or
2739 writing to inferior_ptid directly.
2740
5233f39b
PA
27412020-06-18 Pedro Alves <palves@redhat.com>
2742
2743 * tracectf.c (ctf_target_open): Switch to added thread instead of
2744 writing to inferior_ptid directly.
2745 (ctf_target::close): Use switch_to_no_thread instead of writing to
2746 inferior_ptid directly.
2747
087e161b
PA
27482020-06-18 Pedro Alves <palves@redhat.com>
2749
2750 * tracefile-tfile.c (tfile_target_open): Don't write to
2751 inferior_ptid directly, instead switch to added thread.
2752 (tfile_target::close): Use switch_to_no_thread instead of writing
2753 to inferior_ptid directly.
2754
7fb43e53
PA
27552020-06-18 Pedro Alves <palves@redhat.com>
2756
2757 * procfs.c (procfs_target::attach): Don't write to inferior_ptid.
2758 (procfs_target::detach): Use switch_to_no_thread
2759 instead of writing to inferior_ptid directly.
2760 (do_attach): Change return type to void. Switch to the added
2761 thread.
2762 (procfs_target::create_inferior): Switch to the added thread.
2763 (procfs_do_thread_registers): Don't write to inferior_ptid.
2764
18493a00
PA
27652020-06-18 Pedro Alves <palves@redhat.com>
2766
2767 * infrun.c (generic_mourn_inferior): Use switch_to_thread instead
2768 of writing to inferior_ptid.
2769 (scoped_restore_exited_inferior): Delete.
2770 (handle_vfork_child_exec_or_exit): Simplify using
2771 scoped_restore_current_pspace_and_thread. Use switch_to_thread
2772 instead of writing to inferior_ptid.
2773 (THREAD_STOPPED_BY): Delete.
2774 (thread_stopped_by_watchpoint, thread_stopped_by_sw_breakpoint)
2775 (thread_stopped_by_hw_breakpoint): Delete.
2776 (save_waitstatus): Use
2777 scoped_restore_current_thread+switch_to_thread, and call
2778 target_stopped_by_watchpoint instead of
2779 thread_stopped_by_watchpoint, target_stopped_by_sw_breakpoint
2780 instead of thread_stopped_by_sw_breakpoint, and
2781 target_stopped_by_hw_breakpoint instead of
2782 thread_stopped_by_hw_breakpoint.
2783 (handle_inferior_event)
2784 <TARGET_WAITKIND_EXITED/TARGET_WAITKIND_SIGNALLED>: Don't write to
2785 inferior_ptid directly, nor
2786 set_current_inferior/set_current_program_space. Use
2787 switch_to_thread / switch_to_inferior_no_thread instead.
2788
a0776b13
PA
27892020-06-18 Pedro Alves <palves@redhat.com>
2790
2791 * target.c (generic_mourn_inferior): Use switch_to_no_thread
2792 instead of writing to inferior_ptid.
2793
6155c136
PA
27942020-06-18 Pedro Alves <palves@redhat.com>
2795
2796 * inf-ptrace.c (inf_ptrace_target::create_inferior): Switch to the
2797 added thread.
2798 (inf_ptrace_target::attach): Don't write to inferior_ptid. Switch
2799 to the added thread.
2800 (inf_ptrace_target::detach_success): Use switch_to_no_thread
2801 instead of writing to inferior_ptid.
2802
c5316fc6
PA
28032020-06-18 Pedro Alves <palves@redhat.com>
2804
2805 * gdbarch-selftests.c: Include "progspace-and-thread.h".
2806 (register_to_value_test): Mock a program_space too. Heap-allocate
2807 the address space. Don't write to inferior_ptid. Use
2808 switch_to_thread instead.
2809
8df01799
PA
28102020-06-18 Pedro Alves <palves@redhat.com>
2811
2812 * linux-tdep.c (find_signalled_thread(thread_info *,void *)):
2813 Delete.
2814 (find_signalled_thread()): New, factored out from
2815 linux_make_corefile_notes and adjusted to handle exited threads.
2816 (linux_make_corefile_notes): Adjust to use the new
2817 find_signalled_thread.
2818
41792d68
PA
28192020-06-18 Pedro Alves <palves@redhat.com>
2820
2821 * linux-tdep.c (btrace_fetch): Save/restore current thread instead
2822 of saving/restoring inferior_ptid.
2823
612f258a
TT
28242020-06-17 Tom Tromey <tom@tromey.com>
2825
2826 * tui/tui-win.h (tui_scroll_forward, tui_scroll_backward)
2827 (tui_scroll_left, tui_scroll_right, struct tui_win_info): Don't
2828 declare.
2829 * tui/tui-data.h (MIN_CMD_WIN_HEIGHT): Remove.
2830
efb763a5
SM
28312020-06-15 Simon Marchi <simon.marchi@efficios.com>
2832
2833 * dwarf2/read.c (dwarf2_initialize_objfile): Check for presence
2834 of partial symtabs.
2835
2951f6c0
SM
28362020-06-17 Simon Marchi <simon.marchi@efficios.com>
2837
2838 * regformats/reg-arm.dat: Remove.
2839 * regformats/reg-bfin.dat: Remove.
2840 * regformats/reg-cris.dat: Remove.
2841 * regformats/reg-crisv32.dat: Remove.
2842 * regformats/reg-m32r.dat: Remove.
2843 * regformats/reg-tilegx.dat: Remove.
2844 * regformats/reg-tilegx32.dat: Remove.
2845
7d458ea5
SM
28462020-06-17 Simon Marchi <simon.marchi@efficios.com>
2847
2848 * features/Makefile (WHICH): Remove arm files.
2849 * regformats/arm/arm-with-iwmmxt.dat: Remove.
2850 * regformats/arm/arm-with-neon.dat: Remove.
2851 * regformats/arm/arm-with-vfpv2.dat: Remove.
2852 * regformats/arm/arm-with-vfpv3.dat: Remove.
2853
3af96c0d
SM
28542020-06-17 Simon Marchi <simon.marchi@efficios.com>
2855
2856 * features/Makefile (XMLTOC): Remove rx.xml.
2857
b25e22fd
PA
28582020-06-17 Pedro Alves <palves@redhat.com>
2859
2860 * gdbthread.h (thread_control_state) <trap_expected> Update
2861 comments.
2862
a78a19b1
AB
28632020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
2864
2865 * ada-lang.c (ada_lookup_symbol_nonlocal): Rename to
2866 ada_language::lookup_symbol_nonlocal.
2867 (ada_language_data): Delete la_lookup_symbol_nonlocal initializer.
2868 (ada_language::lookup_symbol_nonlocal): New member function,
2869 implementation from ada_lookup_symbol_nonlocal.
2870 * c-lang.c (c_language_data): Delete la_lookup_symbol_nonlocal
2871 initializer.
2872 (cplus_language_data): Delete la_lookup_symbol_nonlocal
2873 initializer.
2874 (cplus_language::lookup_symbol_nonlocal): New member function.
2875 (asm_language_data): Delete la_lookup_symbol_nonlocal initializer.
2876 (minimal_language_data) Likewise.
2877 * cp-namespace.c (cp_lookup_nested_symbol): Update comment.
2878 * d-lang.c (d_language_data): Delete la_lookup_symbol_nonlocal
2879 initializer.
2880 (d_language::lookup_symbol_nonlocal): New member function.
2881 * f-lang.c (f_language_data): Delete la_lookup_symbol_nonlocal
2882 initializer.
2883 (f_language::lookup_symbol_nonlocal): New member function.
2884 * go-lang.c (go_language_data): Delete la_lookup_symbol_nonlocal
2885 initializer.
2886 * language.c (unknown_language_data): Likewise.
2887 (auto_language_data): Likewise.
2888 * language.h (language_data): Delete la_lookup_symbol_nonlocal
2889 field.
2890 (language_defn::lookup_symbol_nonlocal): New member function.
2891 * m2-lang.c (m2_language_data): Delete la_lookup_symbol_nonlocal
2892 initializer.
2893 * objc-lang.c (objc_language_data): Likewise.
2894 * opencl-lang.c (opencl_language_data): Likewise.
2895 * p-lang.c (pascal_language_data): Likewise.
2896 * rust-lang.c (rust_lookup_symbol_nonlocal): Rename to
2897 rust_language::lookup_symbol_nonlocal.
2898 (rust_language_data): Delete la_lookup_symbol_nonlocal
2899 initializer.
2900 (rust_language::lookup_symbol_nonlocal): New member function,
2901 implementation from rust_lookup_symbol_nonlocal.
2902 * symtab.c (lookup_symbol_aux): Update call to
2903 lookup_symbol_nonlocal.
2904 (basic_lookup_symbol_nonlocal): Rename to...
2905 (language_defn::lookup_symbol_nonlocal): ...this, and update
2906 header comment. Remove language_defn parameter, and replace with
2907 uses of `this'.
2908 * symtab.h (basic_lookup_symbol_nonlocal): Delete declaration.
2909
ebe2334e
AB
29102020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
2911
2912 * ada-lang.c (ada_language_data): Delete la_value_print_inner
2913 initializer.
2914 (ada_language::value_print_inner): New member function.
2915 * c-lang.c (c_language_data): Delete la_value_print_inner
2916 initializer.
2917 (cplus_language_data): Likewise.
2918 (asm_language_data): Likewise.
2919 (minimal_language_data): Likewise.
2920 * d-lang.c (d_language_data): Likewise.
2921 (d_language::value_print_inner): New member function.
2922 * f-lang.c (f_language_data): Delete la_value_print_inner
2923 initializer.
2924 (f_language::value_print_inner): New member function.
2925 * f-lang.h (f_value_print_innner): Rename to...
2926 (f_value_print_inner): ...this (note spelling of 'inner').
2927 * f-valprint.c (f_value_print_innner): Rename to...
2928 (f_value_print_inner): ...this (note spelling of 'inner').
2929 * go-lang.c (go_language_data): Delete la_value_print_inner
2930 initializer.
2931 (go_language::value_print_inner): New member function.
2932 * language.c (language_defn::value_print_inner): Define new member
2933 function.
2934 (unk_lang_value_print_inner): Delete.
2935 (unknown_language_data): Delete la_value_print_inner initializer.
2936 (unknown_language::value_print_inner): New member function.
2937 (auto_language_data): Delete la_value_print_inner initializer.
2938 (auto_language::value_print_inner): New member function.
2939 * language.h (language_data): Delete la_value_print_inner field.
2940 (language_defn::value_print_inner): Delcare new member function.
2941 * m2-lang.c (m2_language_data): Delete la_value_print_inner
2942 initializer.
2943 (m2_language::value_print_inner): New member function.
2944 * objc-lang.c (objc_language_data): Delete la_value_print_inner
2945 initializer.
2946 * opencl-lang.c (opencl_language_data): Likewise.
2947 * p-lang.c (pascal_language_data): Likewise.
2948 (pascal_language::value_print_inner): New member function.
2949 * rust-lang.c (rust_language_data): Delete la_value_print_inner
2950 initializer.
2951 (rust_language::value_print_inner): New member function.
2952 * valprint.c (do_val_print): Update call to value_print_inner.
2953
a1d1fa3e
AB
29542020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
2955
2956 * ada-lang.c (ada_language_data): Delete la_value_print
2957 initializer.
2958 (ada_language::value_print): New member function.
2959 * c-lang.c (c_language_data): Delete la_value_print initializer.
2960 (cplus_language_data): Likewise.
2961 (asm_language_data): Likewise.
2962 (minimal_language_data): Likewise.
2963 * d-lang.c (d_language_data): Likewise.
2964 * f-lang.c (f_language_data): Likewise.
2965 * go-lang.c (go_language_data): Likewise.
2966 * language.c (unk_lang_value_print): Delete.
2967 (language_defn::value_print): Define new member function.
2968 (unknown_language_data): Delete la_value_print initializer.
2969 (unknown_language::value_print): New member function.
2970 (auto_language_data): Delete la_value_print initializer.
2971 (auto_language::value_print): New member function.
2972 * language.h (language_data): Delete la_value_print field.
2973 (language_defn::value_print): Declare new member function.
2974 (LA_VALUE_PRINT): Update call to value_print.
2975 * m2-lang.c (m2_language_data): Delete la_value_print initializer.
2976 * objc-lang.c (objc_language_data): Likewise.
2977 * opencl-lang.c (opencl_language_data): Likewise.
2978 * p-lang.c (pascal_language_data): Likewise.
2979 (pascal_language::value_print): New member function.
2980 * rust-lang.c (rust_language_data): Delete la_value_print
2981 initializer.
2982
f16a9f57
AB
29832020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
2984
2985 * ada-lang.c (ada_watch_location_expression): Rename to
2986 ada_language::watch_location_expression.
2987 (ada_language_data): Delete la_watch_location_expression
2988 initializer.
2989 (ada_language::watch_location_expression): New member function,
2990 implementation from ada_watch_location_expression.
2991 * breakpoint.c (watch_command_1): Update call to
2992 watch_location_expression.
2993 * c-lang.c (c_watch_location_expression): Rename to
2994 language_defn::watch_location_expression.
2995 (c_language_data): Delete la_watch_location_expression
2996 initializer.
2997 (cplus_language_data): Likewise.
2998 (asm_language_data): Likewise.
2999 (minimal_language_data): Likewise.
3000 * c-lang.h (c_watch_location_expression): Delete declaration.
3001 * d-lang.c (d_language_data): Delete la_watch_location_expression
3002 initializer.
3003 * f-lang.c (f_language_data): Likewise.
3004 * go-lang.c (go_language_data): Likewise.
3005 * language.c (language_defn::watch_location_expression): Member
3006 function implementation from c_watch_location_expression.
3007 (unknown_language_data): Delete la_watch_location_expression
3008 initializer.
3009 (auto_language_data): Likewise.
3010 * language.h (language_data): Delete la_watch_location_expression
3011 field.
3012 (language_defn::watch_location_expression): Declare new member
3013 function.
3014 * m2-lang.c (m2_language_data): Delete
3015 la_watch_location_expression initializer.
3016 * objc-lang.c (objc_language_data): Likewise.
3017 * opencl-lang.c (opencl_language_data): Likewise.
3018 * p-lang.c (pascal_language_data): Likewise.
3019 * rust-lang.c (rust_watch_location_expression): Rename to
3020 rust_language::watch_location_expression.
3021 (rust_language_data): Delete la_watch_location_expression
3022 initializer.
3023 (rust_language::watch_location_expression): New member function,
3024 implementation from rust_watch_location_expression.
3025
7e56227d
AB
30262020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
3027
3028 * ada-lang.c (ada_collect_symbol_completion_matches): Rename to
3029 ada_language::collect_symbol_completion_matches.
3030 (ada_language_data): Delete la_collect_symbol_completion_matches
3031 initializer.
3032 (ada_language::collect_symbol_completion_matches): New member
3033 function, implementation from
3034 ada_collect_symbol_completion_matches.
3035 * c-lang.c (c_language_data): Delete
3036 la_collect_symbol_completion_matches initializer.
3037 (cplus_language_data): Likewise.
3038 (asm_language_data): Likewise.
3039 (minimal_language_data): Likewise.
3040 * d-lang.c (d_language_data): Likewise.
3041 * f-lang.c (f_collect_symbol_completion_matches): Rename to
3042 f_language::collect_symbol_completion_matches.
3043 (f_language_data): Delete la_collect_symbol_completion_matches
3044 initializer.
3045 (f_language::collect_symbol_completion_matches) New member
3046 function, implementation from f_collect_symbol_completion_matches.
3047 * go-lang.c (go_language_data): Delete
3048 la_collect_symbol_completion_matches initializer.
3049 * language.c (unknown_language_data): Likewise.
3050 (auto_language_data): Likewise.
3051 * language.h (language_data): Delete
3052 la_collect_symbol_completion_matches field.
3053 (language_defn::collect_symbol_completion_matches): New member
3054 function.
3055 * m2-lang.c (m2_language_data): Delete
3056 la_collect_symbol_completion_matches initializer.
3057 * objc-lang.c (objc_language_data): Likewise.
3058 * opencl-lang.c (opencl_language_data): Likewise.
3059 * p-lang.c (pascal_language_data): Likewise.
3060 * rust-lang.c (rust_language_data): Likewise.
3061 * symtab.c (default_collect_symbol_completion_matches): Delete.
3062 (collect_symbol_completion_matches): Update call to
3063 collect_symbol_completion_matches.
3064 (collect_symbol_completion_matches_type): Likewise.
3065 * symtab.h (default_collect_symbol_completion_matches): Delete
3066 declaration.
3067
53fc67f8
AB
30682020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
3069
3070 * ada-lang.c (ada_get_gdb_completer_word_break_characters): Delete.
3071 (ada_language_data): Delete la_word_break_characters initializer.
3072 (ada_language::word_break_characters): New member function.
3073 * c-lang.c (c_language_data): Delete la_word_break_characters
3074 initializer.
3075 (cplus_language_data): Likewise.
3076 (asm_language_data): Likewise.
3077 (minimal_language_data): Likewise.
3078 * completer.c: Update global comment.
3079 (advance_to_expression_complete_word_point): Update call to
3080 word_break_characters.
3081 (complete_files_symbols): Likewise.
3082 (complete_line_internal_1): Likewise.
3083 (default_completer_handle_brkchars): Likewise.
3084 (skip_quoted_chars): Likewise.
3085 * d-lang.c (d_language_data): Delete la_word_break_characters
3086 initializer.
3087 * f-lang.c (f_word_break_characters): Delete.
3088 (f_language_data): Delete la_word_break_characters initializer.
3089 (f_language::word_break_characters): New member function.
3090 * go-lang.c (go_language_data): Delete la_word_break_characters
3091 initializer.
3092 * language.c (unknown_language_data): Likewise.
3093 (auto_language_data): Likewise.
3094 * language.h (default_word_break_characters): Move declaration to
3095 earlier in the file.
3096 (language_data): Delete la_word_break_characters field.
3097 (language_defn::word_break_characters): New member function.
3098 * m2-lang.c (m2_language_data): Delete la_word_break_characters
3099 initializer.
3100 * objc-lang.c (objc_language_data): Likewise.
3101 * opencl-lang.c (opencl_language_data): Likewise.
3102 * p-lang.c (pascal_language_data): Likewise.
3103 * rust-lang.c (rust_language_data): Likewise.
3104
c9debfb9
AB
31052020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
3106
3107 * ada-lang.c (ada_get_symbol_name_matcher): Update header comment.
3108 (ada_language_data): Delete la_get_symbol_name_matcher
3109 initializer.
3110 (language_defn::get_symbol_name_matcher_inner): New member
3111 function.
3112 * c-lang.c (c_language_data): Delete la_get_symbol_name_matcher
3113 initializer.
3114 (cplus_language_data): Likewise.
3115 (cplus_language::get_symbol_name_matcher_inner): New member
3116 function.
3117 (asm_language_data): Delete la_get_symbol_name_matcher initializer.
3118 (minimal_language_data): Likewise.
3119 * cp-support.h (cp_get_symbol_name_matcher): Update header comment.
3120 * d-lang.c (d_language_data): Delete la_get_symbol_name_matcher
3121 initializer.
3122 * dictionary.c (iter_match_first_hashed): Update call to
3123 get_symbol_name_matcher.
3124 (iter_match_next_hashed): Likewise.
3125 (iter_match_next_linear): Likewise.
3126 * dwarf2/read.c (dw2_expand_symtabs_matching_symbol): Likewise.
3127 * f-lang.c (f_language_data): Delete la_get_symbol_name_matcher
3128 initializer.
3129 (f_language::get_symbol_name_matcher_inner): New member function.
3130 * go-lang.c (go_language_data): Delete la_get_symbol_name_matcher
3131 initializer.
3132 * language.c (default_symbol_name_matcher): Update header comment,
3133 make static.
3134 (language_defn::get_symbol_name_matcher): New definition.
3135 (language_defn::get_symbol_name_matcher_inner): Likewise.
3136 (get_symbol_name_matcher): Delete.
3137 (unknown_language_data): Delete la_get_symbol_name_matcher
3138 initializer.
3139 (auto_language_data): Likewise.
3140 * language.h (language_data): Delete la_get_symbol_name_matcher
3141 field.
3142 (language_defn::get_symbol_name_matcher): New member function.
3143 (language_defn::get_symbol_name_matcher_inner): Likewise.
3144 (default_symbol_name_matcher): Delete declaration.
3145 * linespec.c (find_methods): Update call to
3146 get_symbol_name_matcher.
3147 * m2-lang.c (m2_language_data): Delete la_get_symbol_name_matcher
3148 initializer.
3149 * minsyms.c (lookup_minimal_symbol): Update call to
3150 get_symbol_name_matcher.
3151 (iterate_over_minimal_symbols): Likewise.
3152 * objc-lang.c (objc_language_data): Delete
3153 la_get_symbol_name_matcher initializer.
3154 * opencl-lang.c (opencl_language_data): Likewise.
3155 * p-lang.c (pascal_language_data): Likewise.
3156 * psymtab.c (psymbol_name_matches): Update call to
3157 get_symbol_name_matcher.
3158 * rust-lang.c (rust_language_data): Delete
3159 la_get_symbol_name_matcher initializer.
3160 * symtab.c (symbol_matches_search_name): Update call to
3161 get_symbol_name_matcher.
3162 (compare_symbol_name): Likewise.
3163
9a49ad8c
AB
31642020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
3165
3166 * ada-lang.c (ada_language_data): Delete la_compute_program
3167 initializer.
3168 * c-lang.c (c_language_data): Likewise.
3169 (c_language::compute_program): New member function.
3170 (cplus_language_data): Delete la_compute_program initializer.
3171 (cplus_language::compute_program): New member function.
3172 (asm_language_data): Delete la_compute_program initializer.
3173 (minimal_language_data): Likewise.
3174 * c-lang.h (c_compute_program): Update comment.
3175 (cplus_compute_program): Likewise.
3176 * compile/compile-c-support.c (c_compute_program): Likewise.
3177 (cplus_compute_program): Likewise.
3178 * compile/compile.c (compile_to_object): Update call to
3179 la_compute_program.
3180 * d-lang.c (d_language_data): Delete la_compute_program
3181 initializer.
3182 * f-lang.c (f_language_data): Likewise.
3183 * go-lang.c (go_language_data): Likewise.
3184 * language.c (unknown_language_data): Likewise.
3185 (auto_language_data): Likewise.
3186 * language.h (language_data): Delete la_compute_program field.
3187 (language_defn::compute_program): New member function.
3188 * m2-lang.c (m2_language_data): Delete la_compute_program
3189 initializer.
3190 * objc-lang.c (objc_language_data): Likewise.
3191 * opencl-lang.c (opencl_language_data): Likewise.
3192 * p-lang.c (pascal_language_data): Likewise.
3193 * rust-lang.c (rust_language_data): Likewise.
3194
eff93b4d
AB
31952020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
3196
3197 * ada-lang.c (ada_language_data) Delete
3198 la_class_name_from_physname initializer.
3199 * c-lang.c (c_language_data): Likewise.
3200 (cplus_language_data): Likewise.
3201 (cplus_language::class_name_from_physname): New member function.
3202 (asm_language_data): Delete la_class_name_from_physname
3203 initializer.
3204 (minimal_language_data): Likewise.
3205 * d-lang.c (d_language_data): Likewise.
3206 * dwarf2/read.c (guess_partial_die_structure_name): Update to call
3207 method on language_defn class.
3208 (guess_full_die_structure_name): Likewise.
3209 * f-lang.c (f_language_data): Delete la_class_name_from_physname
3210 initializer.
3211 * go-lang.c (go_language_data): Likewise.
3212 * language.c (language_class_name_from_physname): Delete.
3213 (unk_lang_class_name): Delete.
3214 (unknown_language_data): Delete la_class_name_from_physname
3215 initializer.
3216 (auto_language_data): Likewise.
3217 * language.h (language_data): Delete la_class_name_from_physname
3218 field.
3219 (language_defn::class_name_from_physname): New function.
3220 (language_class_name_from_physname): Delete declaration.
3221 * m2-lang.c (m2_language_data): Delete la_class_name_from_physname
3222 initializer.
3223 * objc-lang.c (objc_language_data): Likewise.
3224 * opencl-lang.c (opencl_language_data): Likewise.
3225 * p-lang.c (pascal_language_data): Likewise.
3226 * rust-lang.c (rust_language_data): Likewise.
3227
de543742
TT
32282020-06-16 Tom Tromey <tom@tromey.com>
3229
3230 * tui/tui-data.h (STATUS_NAME): New macro.
3231 * tui/tui-layout.c (tui_remove_some_windows)
3232 (initialize_known_windows, tui_register_window)
3233 (tui_layout_split::remove_windows, initialize_layouts)
3234 (tui_new_layout_command): Don't use hard-coded window names.
3235
a350efd4
TT
32362020-06-16 Tom Tromey <tom@tromey.com>
3237
3238 PR tui/25348:
3239 * tui/tui.c (tui_ensure_readline_initialized): Rename from
3240 tui_initialize_readline. Only run once. Call rl_initialize.
3241 * tui/tui.h (tui_ensure_readline_initialized): Rename from
3242 tui_initialize_readline.
3243 * tui/tui-io.c (tui_setup_io): Call
3244 tui_ensure_readline_initialized.
3245 * tui/tui-interp.c (tui_interp::init): Update.
3246
39ec0490
TT
32472020-06-16 Tom Tromey <tom@tromey.com>
3248
3249 * tui/tui-layout.c (tui_layout_split::remove_windows): Fix logic.
3250 Also preserve the status window.
3251
d2d1ea20
TT
32522020-06-16 Tom Tromey <tom@tromey.com>
3253
3254 * python/py-tui.c (tui_py_window::~tui_py_window): Handle case
3255 where m_window==nullptr.
3256
66920317
TT
32572020-06-15 Tom Tromey <tromey@adacore.com>
3258
3259 * windows-nat.c (windows_nat::handle_output_debug_string):
3260 Update.
3261 (windows_nat::handle_ms_vc_exception): Update.
3262 * target.h (target_read_string): Change API.
3263 * target.c (target_read_string): Change API.
3264 * solib-svr4.c (open_symbol_file_object, svr4_read_so_list):
3265 Update.
3266 * solib-frv.c (frv_current_sos): Update.
3267 * solib-dsbt.c (dsbt_current_sos): Update.
3268 * solib-darwin.c (darwin_current_sos): Update.
3269 * linux-thread-db.c (inferior_has_bug): Update.
3270 * expprint.c (print_subexp_standard): Update.
3271 * ada-lang.c (ada_main_name, ada_tag_name_from_tsd)
3272 (ada_exception_message_1): Update.
3273
a5d871dd
TT
32742020-06-15 Tom Tromey <tromey@adacore.com>
3275
3276 * linux-tdep.c (dump_mapping_p): Use target_read_memory.
3277
670e35fa
TT
32782020-06-15 Tom Tromey <tromey@adacore.com>
3279
3280 * valprint.c (read_string): Update comment.
3281 * target.c (MIN): Remove.
3282 (target_read_string): Rewrite.
3283
f5272a3b
TT
32842020-06-15 Tom Tromey <tromey@adacore.com>
3285
3286 * corefile.c (read_memory_string): Remove.
3287 * ada-valprint.c (ada_value_print_ptr): Update.
3288 * ada-lang.h (ada_tag_name): Change return type.
3289 * ada-lang.c (type_from_tag): Update.
3290 (ada_tag_name_from_tsd): Change return type. Use
3291 target_read_string.
3292 (ada_tag_name): Likewise.
3293 * gdbcore.h (read_memory_string): Don't declare.
3294
2c074f49
HD
32952020-06-14 Hannes Domani <ssbssa@yahoo.de>
3296
3297 * symtab.c (rbreak_command): Ignore Windows drive colon.
3298
6a17d503
SM
32992020-06-12 Simon Marchi <simon.marchi@efficios.com>
3300
3301 * NEWS: Mention removed GDBserver host support.
3302
453c733f
NC
33032020-06-12 Nelson Chu <nelson.chu@sifive.com>
3304
3305 * features/riscv/rebuild-csr-xml.sh: Updated.
3306
2b4e6a3f
TT
33072020-06-11 Tom Tromey <tom@tromey.com>
3308
3309 PR gdb/18318:
3310 * c-exp.y (lex_one_token): Handle 'p' like 'e'.
3311
4412332f
JG
33122020-06-09 Jonny Grant <jg@jguk.org>
33132020-06-09 Simon Marchi <simon.marchi@polymtl.ca>
3314
3315 * main.c (captured_main_1): Don't print new line after help.
3316 (print_gdb_help): add mailing list and IRC channel information
3317 to --help. Add new lines between items in the footer. Remove
3318 quotes around bug url.
3319
2f33032a
KS
33202020-06-11 Keith Seitz <keiths@redhat.com>
3321
3322 PR gdb/21356
3323 * gdbtypes.c (resolve_dynamic_union, resolve_dynamic_struct):
3324 Resolve typedefs for type length calculations.
3325
7ab96794
TV
33262020-06-10 Tom de Vries <tdevries@suse.de>
3327
3328 PR ada/24713
3329 * dwarf2/index-write.c (struct mapped_symtab): Add m_string_obstack.
3330 (write_psymbols): Enable .gdb_index for ada.
3331 * dwarf2/read.c: Remove comment stating .gdb_index is unsupported for
3332 ada.
3333
e5f3ece2
TV
33342020-06-10 Tom de Vries <tdevries@suse.de>
3335
3336 * dwarf2/read.c (dw2_symtab_iter_init_common): Factor out of ...
3337 (dw2_symtab_iter_init): ... here. Add variant with "offset_type
3338 namei" instead of "const char *name" argument.
3339 (dw2_map_matching_symbols): Use "offset_type namei" variant of
3340 dw2_symtab_iter_init.
3341
940da03e
SM
33422020-06-08 Simon Marchi <simon.marchi@efficios.com>
3343
3344 * gdbtypes.h (TYPE_FIELD_TYPE): Remove. Change all call sites
3345 to use type::field and field::type instead.
3346
b6cdac4b
SM
33472020-06-08 Simon Marchi <simon.marchi@efficios.com>
3348
3349 * gdbtypes.h (FIELD_TYPE): Remove. Change all call sites
3350 to use field::type instead.
3351
5d14b6e5
SM
33522020-06-08 Simon Marchi <simon.marchi@efficios.com>
3353
3354 * gdbtypes.h (struct field) <type, set_type>: New methods.
3355 Rename `type` field to...
3356 <m_type>: ... this. Change references throughout to use type or
3357 set_type methods.
3358 (FIELD_TYPE): Use field::type. Change call sites that modify
3359 the field's type to use field::set_type instead.
3360
3d967001
SM
33612020-06-08 Simon Marchi <simon.marchi@efficios.com>
3362
3363 * gdbtypes.h (TYPE_INDEX_TYPE): Remove. Change all call sites
3364 to use type::index_type instead.
3365
262abc0d
SM
33662020-06-08 Simon Marchi <simon.marchi@efficios.com>
3367
3368 * gdbtypes.h (struct type) <index_type, set_index_type>: New
3369 methods.
3370 (TYPE_INDEX_TYPE): Use type::index_type.
3371 * gdbtypes.c (create_array_type_with_stride): Likewise.
3372
82836c92
TT
33732020-06-07 Tom Tromey <tom@tromey.com>
3374
3375 * valprint.c (generic_val_print_float): Remove "embedded_offset"
3376 parameter.
3377 (generic_value_print): Update.
3378
940dace9
AB
33792020-06-05 Andrew Burgess <andrew.burgess@embecosm.com>
3380
3381 Revert commit 982a38f60b0.
3382 * python/py-tui.c (gdbpy_tui_set_title): Restore use of get.
3383
982a38f6
AB
33842020-06-05 Andrew Burgess <andrew.burgess@embecosm.com>
3385
3386 * python/py-tui.c (gdbpy_tui_set_title): Use release, not get, to
3387 avoid use after free.
3388
82f06518
TV
33892020-06-05 Tom de Vries <tdevries@suse.de>
3390
3391 * NEWS: Fix typos.
3392
f8c41851
SM
33932020-06-04 Simon Marchi <simon.marchi@efficios.com>
3394
3395 * dwarf2/read.c (dwarf2_read_gdb_index): Save partial_symtabs in
3396 the per_bfd object.
3397 (dwarf2_read_debug_names): Likewise.
3398 (dwarf2_initialize_objfile): Use partial_symtabs from per_bfd
3399 object when re-using a per_bfd object with an index.
3400
f9b5d5ea
TV
34012020-06-03 Tom de Vries <tdevries@suse.de>
3402
3403 PR symtab/26046
3404 * dwarf2/read.c (scan_partial_symbols): Recurse into DW_TAG_subprogram
3405 children for C++.
3406 (load_partial_dies): Don't skip DW_TAG_inlined_subroutine child of
3407 DW_TAG_subprogram.
3408
f6eee2d0
AB
34092020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
3410
3411 * ada-lang.c (ada_language_data): Delete skip_trampoline
3412 initializer.
3413 * c-lang.c (c_language_data): Likewise.
3414 (cplus_language_data): Likewise.
3415 (cplus_language::skip_trampoline): New member function.
3416 (asm_language_data): Delete skip_trampoline initializer.
3417 (minimal_language_data): Likewise.
3418 * d-lang.c (d_language_data): Likewise.
3419 * f-lang.c (f_language_data): Likewise.
3420 * go-lang.c (go_language_data): Likewise.
3421 * language.c (unk_lang_trampoline): Delete function.
3422 (skip_language_trampoline): Update.
3423 (unknown_language_data): Delete skip_trampoline initializer.
3424 (auto_language_data): Likewise.
3425 * language.h (language_data): Delete skip_trampoline field.
3426 (language_defn::skip_trampoline): New function.
3427 * m2-lang.c (m2_language_data): Delete skip_trampoline
3428 initializer.
3429 * objc-lang.c (objc_skip_trampoline): Delete function, move
3430 implementation to objc_language::skip_trampoline.
3431 (objc_language_data): Delete skip_trampoline initializer.
3432 (objc_language::skip_trampoline): New member function with
3433 implementation from objc_skip_trampoline.
3434 * opencl-lang.c (opencl_language_data): Delete skip_trampoline
3435 initializer.
3436 * p-lang.c (pascal_language_data): Likewise.
3437 * rust-lang.c (rust_language_data): Likewise.
3438
0a50df5d
AB
34392020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
3440
3441 * ada-lang.c (ada_language_data): Delete la_demangle initializer.
3442 (ada_language::demangle): New member function.
3443 * c-lang.c (c_language_data): Delete la_demangle initializer.
3444 (cplus_language_data): Delete la_demangle initializer.
3445 (cplus_language::demangle): New member function.
3446 (asm_language_data): Delete la_demangle initializer.
3447 (minimal_language_data): Delete la_demangle initializer.
3448 * d-lang.c (d_language_data): Delete la_demangle initializer.
3449 (d_language::demangle): New member function.
3450 * f-lang.c (f_language_data): Delete la_demangle initializer.
3451 (f_language::demangle): New member function.
3452 * go-lang.c (go_language_data): Delete la_demangle initializer.
3453 (go_language::demangle): New member function.
3454 * language.c (language_demangle): Update.
3455 (unk_lang_demangle): Delete.
3456 (unknown_language_data): Delete la_demangle initializer.
3457 (unknown_language::demangle): New member function.
3458 (auto_language_data): Delete la_demangle initializer.
3459 (auto_language::demangle): New member function.
3460 * language.h (language_data): Delete la_demangle field.
3461 (language_defn::demangle): New function.
3462 * m2-lang.c (m2_language_data): Delete la_demangle initializer.
3463 * objc-lang.c (objc_language_data): Delete la_demangle
3464 initializer.
3465 (objc_language::demangle): New member function.
3466 * opencl-lang.c (opencl_language_data): Delete la_demangle
3467 initializer.
3468 * p-lang.c (pascal_language_data): Likewise.
3469 * rust-lang.c (rust_language_data): Likewise.
3470 (rust_language::demangle): New member function.
3471
fbfb0a46
AB
34722020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
3473
3474 * ada-lang.c (ada_language_data): Delete la_print_type
3475 initializer.
3476 (ada_language::print_type): New member function.
3477 * c-lang.c (c_language_data): Delete la_print_type initializer.
3478 (c_language::print_type): New member function.
3479 (cplus_language_data): Delete la_print_type initializer.
3480 (cplus_language::print_type): New member function.
3481 (asm_language_data): Delete la_print_type initializer.
3482 (asm_language::print_type): New member function.
3483 (minimal_language_data): Delete la_print_type initializer.
3484 (minimal_language::print_type): New member function.
3485 * d-lang.c (d_language_data): Delete la_print_type initializer.
3486 (d_language::print_type): New member function.
3487 * f-lang.c (f_language_data): Delete la_print_type initializer.
3488 (f_language::print_type): New member function.
3489 * go-lang.c (go_language_data): Delete la_print_type initializer.
3490 (go_language::print_type): New member function.
3491 * language.c (unk_lang_print_type): Delete.
3492 (unknown_language_data): Delete la_print_type initializer.
3493 (unknown_language::print_type): New member function.
3494 (auto_language_data): Delete la_print_type initializer.
3495 (auto_language::print_type): New member function.
3496 * language.h (language_data): Delete la_print_type field.
3497 (language_defn::print_type): New function.
3498 (LA_PRINT_TYPE): Update.
3499 * m2-lang.c (m2_language_data): Delete la_print_type initializer.
3500 (m2_language::print_type): New member function.
3501 * objc-lang.c (objc_language_data): Delete la_print_type
3502 initializer.
3503 (objc_language::print_type): New member function.
3504 * opencl-lang.c (opencl_print_type): Delete, implementation moved
3505 to opencl_language::print_type.
3506 (opencl_language_data): Delete la_print_type initializer.
3507 (opencl_language::print_type): New member function, implementation
3508 from opencl_print_type.
3509 * p-lang.c (pascal_language_data): Delete la_print_type
3510 initializer.
3511 (pascal_language::print_type): New member function.
3512 * rust-lang.c (rust_print_type): Delete, implementation moved to
3513 rust_language::print_type.
3514 (rust_language_data): Delete la_print_type initializer.
3515 (rust_language::print_type): New member function, implementation
3516 from rust_print_type.
3517
6f827019
AB
35182020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
3519
3520 * ada-lang.c (ada_sniff_from_mangled_name): Delete function,
3521 implementation moves to...
3522 (ada_language::sniff_from_mangled_name): ...here. Update return
3523 type.
3524 (ada_language_data): Delete la_sniff_from_mangled_name
3525 initializer.
3526 * c-lang.c (c_language_data): Likewise.
3527 (cplus_language_data): Likewise.
3528 (cplus_language::sniff_from_mangled_name): New member function,
3529 implementation taken from gdb_sniff_from_mangled_name.
3530 (asm_language_data): Delete la_sniff_from_mangled_name
3531 initializer.
3532 (minimal_language_data): Likewise.
3533 * cp-support.c (gdb_sniff_from_mangled_name): Delete,
3534 implementation moves to cplus_language::sniff_from_mangled_name.
3535 * cp-support.h (gdb_sniff_from_mangled_name): Delete declaration.
3536 * d-lang.c (d_sniff_from_mangled_name): Delete, implementation
3537 moves to...
3538 (d_language::sniff_from_mangled_name): ...here.
3539 (d_language_data): Delete la_sniff_from_mangled_name initializer.
3540 * f-lang.c (f_language_data): Likewise.
3541 * go-lang.c (go_sniff_from_mangled_name): Delete, implementation
3542 moves to...
3543 (go_language::sniff_from_mangled_name): ...here.
3544 (go_language_data): Delete la_sniff_from_mangled_name initializer.
3545 * language.c (language_sniff_from_mangled_name): Delete.
3546 (unknown_language_data): Delete la_sniff_from_mangled_name
3547 initializer.
3548 (auto_language_data): Likewise.
3549 * language.h (language_data): Delete la_sniff_from_mangled_name
3550 field.
3551 (language_defn::sniff_from_mangled_name): New function.
3552 (language_sniff_from_mangled_name): Delete declaration.
3553 * m2-lang.c (m2_language_data): Delete la_sniff_from_mangled_name
3554 field.
3555 * objc-lang.c (objc_sniff_from_mangled_name): Delete,
3556 implementation moves to...
3557 (objc_language::sniff_from_mangled_name): ...here.
3558 (objc_language_data): Delete la_sniff_from_mangled_name initializer.
3559 * opencl-lang.c (opencl_language_data): Likewise.
3560 * p-lang.c (pascal_language_data): Likewise.
3561 * rust-lang.c (rust_sniff_from_mangled_name): Delete,
3562 implementation moves to...
3563 (rust_language::sniff_from_mangled_name): ...here.
3564 (rust_language_data): Delete la_sniff_from_mangled_name
3565 initializer.
3566 * symtab.c (symbol_find_demangled_name): Call
3567 sniff_from_mangled_name member function.
3568
fb8006fd
AB
35692020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
3570
3571 * ada-lang.c (ada_language_data): Delete la_search_name_hash
3572 initializer.
3573 * c-lang.c (c_language_data): Likewise.
3574 (cplus_language_data): Likewise.
3575 (cplus_language::search_name_hash): New member function.
3576 (asm_language_data): Delete la_search_name_hash initializer.
3577 (minimal_language_data): Likewise.
3578 * d-lang.c (d_language_data): Likewise.
3579 * dictionary.c (default_search_name_hash): Rename to...
3580 (language_defn::search_name_hash): ...this.
3581 * f-lang.c (f_language_data): Likewise.
3582 (f_language::search_name_hash): New member function.
3583 * go-lang.c (go_language_data): Delete la_search_name_hash
3584 initializer.
3585 * language.c (unknown_language_data): Likewise.
3586 (auto_language_data): Likewise.
3587 * language.h (struct language_data): Delete la_search_name_hash
3588 field.
3589 (language_defn::search_name_hash): Declare new member function.
3590 (default_search_name_hash): Delete declaration.
3591 * m2-lang.c (m2_language_data): Delete la_search_name_hash
3592 initializer.
3593 * objc-lang.c (objc_language_data): Likewise.
3594 * opencl-lang.c (opencl_language_data): Likewise.
3595 * p-lang.c (pascal_language_data): Likewise.
3596 * rust-lang.c (rust_language_data): Likewise.
3597 * symtab.c (search_name_hash): Update call.
3598
8e25bafe
AB
35992020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
3600
3601 * ada-lang.c (ada_language_data): Delete la_get_compile_instance
3602 initializer.
3603 * c-lang.c (class compile_instance): Declare.
3604 (c_language_data): Delete la_get_compile_instance initializer.
3605 (c_language::get_compile_instance): New member function.
3606 (cplus_language_data): Delete la_get_compile_instance initializer.
3607 (cplus_language::get_compile_instance): New member function.
3608 (asm_language_data): Delete la_get_compile_instance initializer.
3609 (minimal_language_data): Likewise.
3610 * c-lang.h (c_get_compile_context): Update comment.
3611 (cplus_get_compile_context): Update comment.
3612 * compile/compile.c (compile_to_object): Update calls, don't rely
3613 on function pointer being NULL.
3614 * d-lang.c (d_language_data): Delete la_get_compile_instance
3615 initializer.
3616 * f-lang.c (f_language_data): Likewise.
3617 * go-lang.c (go_language_data): Likewise.
3618 * language.c (unknown_language_data): Likewise.
3619 (auto_language_data): Likewise.
3620 * language.h (language_data): Delete la_get_compile_instance field.
3621 (language_defn::get_compile_instance): New member function.
3622 * m2-lang.c (m2_language_data): Delete la_get_compile_instance
3623 initializer.
3624 * objc-lang.c (objc_language_data): Likewise.
3625 * opencl-lang.c (opencl_language_data): Likewise.
3626 * p-lang.c (pascal_language_data): Likewise.
3627 * rust-lang.c (rust_language_data): Likewise.
3628
4009ee92
AB
36292020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
3630
3631 * ada-lang.c (ada_add_all_symbols): Update comment.
3632 (ada_iterate_over_symbols): Delete, move implementation to...
3633 (ada_language::iterate_over_symbols): ...here, a new member
3634 function, rewrite to use range based for loop.
3635 (ada_language_data): Delete la_iterate_over_symbols initializer.
3636 * c-lang.c (c_language_data): Likewise.
3637 (cplus_language_data): Likewise.
3638 (asm_language_data): Likewise.
3639 (minimal_language_data): Likewise.
3640 * d-lang.c (d_language_data): Likewise.
3641 * f-lang.c (f_language_data): Likewise.
3642 * go-lang.c (go_language_data): Likewise.
3643 * language.c (unknown_language_data): Likewise.
3644 (auto_language_data): Likewise.
3645 * language.h (language_data): Delete la_iterate_over_symbols field.
3646 (language_defn::iterate_over_symbols): New member function.
3647 (LA_ITERATE_OVER_SYMBOLS): Update.
3648 * linespec.c (iterate_over_all_matching_symtabs): Update.
3649 * m2-lang.c (m2_language_data): Delete la_iterate_over_symbols
3650 initializer.
3651 * objc-lang.c (objc_language_data): Likewise.
3652 * opencl-lang.c (opencl_language_data): Likewise.
3653 * p-lang.c (pascal_language_data): Likewise.
3654 * rust-lang.c (rust_language_data): Likewise.
3655
54f4ca46
AB
36562020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
3657
3658 * ada-lang.c (ada_language_data): Delete
3659 la_lookup_transparent_type initializer.
3660 * c-lang.c (c_language_data): Likewise.
3661 (cplus_language_data): Likewise.
3662 (cplus_language::lookup_transparent_type): New member function.
3663 (asm_language_data): Delete la_lookup_transparent_type
3664 initializer.
3665 (minimal_language_data): Likewise.
3666 * d-lang.c (d_language_data): Likewise.
3667 * f-lang.c (f_language_data): Likewise.
3668 * go-lang.c (go_language_data): Likewise.
3669 * language.c (unknown_language_data): Likewise.
3670 (auto_language_data): Likewise.
3671 * language.h (struct language_data): Delete
3672 la_lookup_transparent_type field.
3673 (language_defn::lookup_transparent_type): New member function.
3674 * m2-lang.c (m2_language_data): Delete la_lookup_transparent_type
3675 initializer.
3676 * objc-lang.c (objc_language_data): Likewise.
3677 * opencl-lang.c (opencl_language_data): Likewise.
3678 * p-lang.c (pascal_language_data): Likewise.
3679 * rust-lang.c (rust_language_data): Likewise.
3680 * symtab.c (symbol_matches_domain): Update call.
3681
1fb314aa
AB
36822020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
3683
3684 * ada-lang.c (ada_language_arch_info): Delete function, move
3685 implementation to...
3686 (ada_language::language_arch_info): ...here, a new member
3687 function.
3688 (ada_language_data): Delete la_language_arch_info.
3689 * c-lang.c (c_language_data): Likewise.
3690 (c_language::language_arch_info): New member function.
3691 (cplus_language_arch_info): Delete function, move
3692 implementation to...
3693 (cplus_language::language_arch_info): ...here, a new member
3694 function.
3695 (cplus_language_data): Delete la_language_arch_info.
3696 (asm_language_data): Likewise.
3697 (asm_language::language_arch_info): New member function.
3698 (minimal_language_data): Delete la_language_arch_info.
3699 (minimal_language::language_arch_info): New member function.
3700 * d-lang.c (d_language_arch_info): Delete function, move
3701 implementation to...
3702 (d_language::language_arch_info): ...here, a new member
3703 function.
3704 (d_language_data): Delete la_language_arch_info.
3705 * f-lang.c (f_language_arch_info): Delete function, move
3706 implementation to...
3707 (f_language::language_arch_info): ...here, a new member
3708 function.
3709 (f_language_data): Delete la_language_arch_info.
3710 * go-lang.c (go_language_arch_info): Delete function, move
3711 implementation to...
3712 (go_language::language_arch_info): ...here, a new member
3713 function.
3714 (go_language_data): Delete la_language_arch_info.
3715 * language.c (unknown_language_data): Likewise.
3716 (unknown_language::language_arch_info): New member function.
3717 (auto_language_data): Delete la_language_arch_info.
3718 (auto_language::language_arch_info): New member function.
3719 (language_gdbarch_post_init): Update call to
3720 la_language_arch_info.
3721 * language.h (language_data): Delete la_language_arch_info
3722 function pointer.
3723 (language_defn::language_arch_info): New function.
3724 * m2-lang.c (m2_language_arch_info): Delete function, move
3725 implementation to...
3726 (m2_language::language_arch_info): ...here, a new member
3727 function.
3728 (m2_language_data): Delete la_language_arch_info.
3729 * objc-lang.c (objc_language_arch_info): Delete function, move
3730 implementation to...
3731 (objc_language::language_arch_info): ...here, a new member
3732 function.
3733 (objc_language_data): Delete la_language_arch_info.
3734 * opencl-lang.c (opencl_language_arch_info): Delete function, move
3735 implementation to...
3736 (opencl_language::language_arch_info): ...here, a new member
3737 function.
3738 (opencl_language_data): Delete la_language_arch_info.
3739 * p-lang.c (pascal_language_arch_info): Delete function, move
3740 implementation to...
3741 (pascal_language::language_arch_info): ...here, a new member
3742 function.
3743 (pascal_language_data): Delete la_language_arch_info.
3744 * rust-lang.c (rust_language_arch_info): Delete function, move
3745 implementation to...
3746 (rust_language::language_arch_info): ...here, a new member
3747 function.
3748 (rust_language_data): Delete la_language_arch_info.
3749
48448202
AB
37502020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
3751
3752 * ada-lang.c (ada_language_data): Delete la_pass_by_reference
3753 initializer.
3754 * c-lang.c (c_language_data): Likewise.
3755 (cplus_language_data): Likewise.
3756 (cplus_language::pass_by_reference_info): New method.
3757 (asm_language_data): Delete la_pass_by_reference initializer.
3758 (minimal_language_data): Likewise.
3759 * cp-abi.c (cp_pass_by_reference): Remove use of
3760 default_pass_by_reference.
3761 * d-lang.c (d_language_data): Likewise.
3762 * f-lang.c (f_language_data): Likewise.
3763 * gnu-v3-abi.c (gnuv3_pass_by_reference): Remove use of
3764 default_pass_by_reference.
3765 * go-lang.c (go_language_data): Likewise.
3766 * language.c (language_pass_by_reference): Update.
3767 (default_pass_by_reference): Delete.
3768 (unknown_language_data): Delete la_pass_by_reference
3769 initializer.
3770 (auto_language_data): Likewise.
3771 * language.h (struct language_data): Delete la_pass_by_reference
3772 field.
3773 (language_defn::pass_by_reference_info): New member function.
3774 (default_pass_by_reference): Delete declaration.
3775 * m2-lang.c (m2_language_data): Delete la_pass_by_reference
3776 initializer.
3777 * objc-lang.c (objc_language_data): Likewise.
3778 * opencl-lang.c (opencl_language_data): Likewise.
3779 * p-lang.c (pascal_language_data): Likewise.
3780 * rust-lang.c (rust_language_data): Likewise.
3781
15e5fd35
AB
37822020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
3783
3784 * ada-lang.c (ada_read_var_value): Delete function, move
3785 implementation to...
3786 (ada_language::read_var_value): ...here.
3787 (ada_language_data): Delete la_read_var_value initializer.
3788 * c-lang.c (c_language_data): Likewise.
3789 (cplus_language_data): Likewise.
3790 (minimal_language_data): Likewise.
3791 * d-lang.c (d_language_data): Likewise.
3792 * f-lang.c (f_language_data): Likewise.
3793 * findvar.c (default_read_var_value): Rename to...
3794 (language_defn::read_var_value): ...this.
3795 * findvar.c (read_var_value): Update header comment, and change to
3796 call member function instead of function pointer.
3797 * go-lang.c (go_language_data): Likewise.
3798 * language.c (unknown_language_data): Delete la_read_var_value
3799 initializer.
3800 (auto_language_data): Likewise.
3801 * language.h (struct language_data): Delete la_read_var_value
3802 field.
3803 (language_defn::read_var_value): New member function.
3804 (default_read_var_value): Delete declaration.
3805 * m2-lang.c (m2_language_data): Delete la_read_var_value
3806 initializer.
3807 * objc-lang.c (objc_language_data): Likewise.
3808 * opencl-lang.c (opencl_language_data): Likewise.
3809 * p-lang.c (pascal_language_data): Likewise.
3810 * rust-lang.c (rust_language_data): Likewise.
3811 * value.h (default_read_var_value): Delete declaration.
3812
5bd40f2a
AB
38132020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
3814
3815 * ada-lang.c (ada_print_array_index): Delete function, move
3816 implementation to...
3817 (ada_language::print_array_index): ...here.
3818 (ada_language_data): Delete la_print_array_index initializer.
3819 * c-lang.c (c_language_data): Likewise.
3820 (cplus_language_data): Likewise.
3821 (minimal_language_data): Likewise.
3822 * d-lang.c (d_language_data): Likewise.
3823 * f-lang.c (f_language_data): Likewise.
3824 * go-lang.c (go_language_data): Likewise.
3825 * language.c (default_print_array_index): Delete function, move
3826 implementation to...
3827 (language_defn::print_array_index): ...here.
3828 (unknown_language_data): Delete la_print_array_index initializer.
3829 (auto_language_data): Likewise.
3830 * language.h (struct language_data): Delete la_print_array_index
3831 field.
3832 (language_defn::print_array_index): New member function.
3833 (LA_PRINT_ARRAY_INDEX): Update.
3834 (default_print_array_index): Delete declaration.
3835 * m2-lang.c (m2_language_data): Delete la_print_array_index
3836 initializer.
3837 * objc-lang.c (objc_language_data): Likewise.
3838 * opencl-lang.c (opencl_language_data): Likewise.
3839 * p-lang.c (pascal_language_data): Likewise.
3840 * rust-lang.c (rust_language_data): Likewise.
3841
0874fd07
AB
38422020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
3843
3844 * gdb/ada-lang.c (ada_language_defn): Convert to...
3845 (ada_language_data): ...this.
3846 (class ada_language): New class.
3847 (ada_language_defn): New static global.
3848 * gdb/c-lang.c (c_language_defn): Convert to...
3849 (c_language_data): ...this.
3850 (class c_language): New class.
3851 (c_language_defn): New static global.
3852 (cplus_language_defn): Convert to...
3853 (cplus_language_data): ...this.
3854 (class cplus_language): New class.
3855 (cplus_language_defn): New static global.
3856 (asm_language_defn): Convert to...
3857 (asm_language_data): ...this.
3858 (class asm_language): New class.
3859 (asm_language_defn): New static global.
3860 (minimal_language_defn): Convert to...
3861 (minimal_language_data): ...this.
3862 (class minimal_language): New class.
3863 (minimal_language_defn): New static global.
3864 * gdb/d-lang.c (d_language_defn): Convert to...
3865 (d_language_data): ...this.
3866 (class d_language): New class.
3867 (d_language_defn): New static global.
3868 * gdb/f-lang.c (f_language_defn): Convert to...
3869 (f_language_data): ...this.
3870 (class f_language): New class.
3871 (f_language_defn): New static global.
3872 * gdb/go-lang.c (go_language_defn): Convert to...
3873 (go_language_data): ...this.
3874 (class go_language): New class.
3875 (go_language_defn): New static global.
3876 * gdb/language.c (unknown_language_defn): Remove declaration.
3877 (current_language): Initialize to nullptr, real initialization is
3878 moved to _initialize_language.
3879 (languages): Delete global.
3880 (language_defn::languages): Define.
3881 (set_language_command): Use language_defn::languages.
3882 (set_language): Likewise.
3883 (range_error): Likewise.
3884 (language_enum): Likewise.
3885 (language_def): Likewise.
3886 (add_set_language_command): Use language_def::languages for the
3887 language list, and language_def to lookup language pointers.
3888 (skip_language_trampoline): Use language_defn::languages.
3889 (unknown_language_defn): Convert to...
3890 (unknown_language_data): ...this.
3891 (class unknown_language): New class.
3892 (unknown_language_defn): New static global.
3893 (auto_language_defn): Convert to...
3894 (auto_language_data): ...this.
3895 (class auto_language): New class.
3896 (auto_language_defn): New static global.
3897 (language_gdbarch_post_init): Use language_defn::languages.
3898 (_initialize_language): Initialize current_language.
3899 * gdb/language.h (struct language_defn): Rename to...
3900 (struct language_data): ...this.
3901 (struct language_defn): New.
3902 (auto_language_defn): Delete.
3903 (unknown_language_defn): Delete.
3904 (minimal_language_defn): Delete.
3905 (ada_language_defn): Delete.
3906 (asm_language_defn): Delete.
3907 (c_language_defn): Delete.
3908 (cplus_language_defn): Delete.
3909 (d_language_defn): Delete.
3910 (f_language_defn): Delete.
3911 (go_language_defn): Delete.
3912 (m2_language_defn): Delete.
3913 (objc_language_defn): Delete.
3914 (opencl_language_defn): Delete.
3915 (pascal_language_defn): Delete.
3916 (rust_language_defn): Delete.
3917 * gdb/m2-lang.c (m2_language_defn): Convert to...
3918 (m2_language_data): ...this.
3919 (class m2_language): New class.
3920 (m2_language_defn): New static global.
3921 * gdb/objc-lang.c (objc_language_defn): Convert to...
3922 (objc_language_data): ...this.
3923 (class objc_language): New class.
3924 (objc_language_defn): New static global.
3925 * gdb/opencl-lang.c (opencl_language_defn): Convert to...
3926 (opencl_language_data): ...this.
3927 (class opencl_language): New class.
3928 (opencl_language_defn): New static global.
3929 * gdb/p-lang.c (pascal_language_defn): Convert to...
3930 (pascal_language_data): ...this.
3931 (class pascal_language): New class.
3932 (pascal_language_defn): New static global.
3933 * gdb/rust-exp.y (rust_lex_tests): Use language_def to find
3934 language pointer, update comment format.
3935 * gdb/rust-lang.c (rust_language_defn): Convert to...
3936 (rust_language_data): ...this.
3937 (class rust_language): New class.
3938 (rust_language_defn): New static global.
3939
1313c56e
AB
39402020-06-01 Andrew Burgess <andrew.burgess@embecosm.com>
3941
3942 * dwarf2/read.c (class lnp_state_machine) <m_last_address>: New
3943 member variable.
3944 <m_stmt_at_address>: New member variable.
3945 (lnp_state_machine::record_line): Don't record some lines, update
3946 tracking of is_stmt at the same address.
3947 (lnp_state_machine::lnp_state_machine): Initialise new member
3948 variables.
3949
b7ed9f3d
ST
39502020-06-01 Samuel Thibault <samuel.thibault@ens-lyon.org>
3951
3952 * config/i386/i386gnu.mn [%_S.o %_U.o] (COMPILE.post): Add
3953 "-include gnu-nat-mig.h".
3954 * gnu-nat-mig.h: New file.
3955 * gnu-nat.c: Include "gnu-nat-mig.h".
3956 (exc_server, msg_reply_server, notify_server,
3957 process_reply_server): Remove declarations.
3958
14a8ad62
ST
39592020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
3960
3961 * gnu-nat.h (inf_validate_procs, inf_suspend, inf_set_traced,
3962 steal_exc_port, proc_get_state, inf_clear_wait, inf_cleanup,
3963 inf_startup, inf_update_suspends, inf_set_pid, inf_steal_exc_ports,
3964 inf_validate_procinfo, inf_validate_task_sc, inf_restore_exc_ports,
3965 inf_set_threads_resume_sc, inf_set_threads_resume_sc_for_signal_thread,
3966 inf_resume, inf_set_step_thread, inf_detach, inf_attach, inf_signal,
3967 inf_continue, make_proc, proc_abort, _proc_free, proc_update_sc,
3968 proc_get_exception_port, proc_set_exception_port, _proc_get_exc_port,
3969 proc_steal_exc_port, proc_restore_exc_port, proc_trace): Move functions
3970 to gnu_nat_target class.
3971 * gnu-nat.c: Likewise.
3972 (inf_update_procs, S_proc_wait_reply, set_task_pause_cmd,
3973 set_task_exc_port_cmd, set_signals_cmd, set_thread_pause_cmd,
3974 set_thread_exc_port_cmd): Call inf_validate_procs through gnu_target
3975 object.
3976 (gnu_nat_target::create_inferior, gnu_nat_target::detach): Pass `this'
3977 instead of `gnu_target'.
3978
0af5e106
ST
39792020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
3980
3981 * i386-gnu-tdep.c: Include "gdbcore.h"
3982 (gnu_sigtramp_code, i386_gnu_sc_reg_offset): New arrays.
3983 (GNU_SIGTRAMP_LEN, GNU_SIGTRAMP_TAIL,
3984 I386_GNU_SIGCONTEXT_THREAD_STATE_OFFSET): New macros
3985 (i386_gnu_sigtramp_start, i386_gnu_sigtramp_p,
3986 i386_gnu_sigcontext_addr): New functions
3987 (i386gnu_init_abi): Register i386_gnu_sigtramp_p,
3988 i386_gnu_sigcontext_addr, and i386_gnu_sc_reg_offset in the gdbarch
3989 tdep.
3990
078f2fc9
ST
39912020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
3992
3993 * gnu-nat.c (gnu_nat_target::create_inferior): Move push_target call
3994 before fork_inferior call. Avoid calling it if target_is_pushed returns
3995 true.
3996
53dff92c
ST
39972020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
3998
3999 * gnu-nat.h (gnu_target): New variable declaration.
4000 * i386-gnu-nat.c (_initialize_i386gnu_nat): Initialize
4001 gnu_target.
4002 * gnu-nat.c (gnu_target): New variable.
4003 (inf_validate_procs): Pass gnu_target to thread_change_ptid,
4004 add_thread_silent, and add_thread calls.
4005 (gnu_nat_target::create_inferior): Pass gnu_target to
4006 add_thread_silent, thread_change_ptid call.
4007 (gnu_nat_target::detach): Pass gnu_target to detach_inferior
4008 call.
4009
5a8b8627
ST
40102020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
4011
4012 * gnu-nat.c (gnu_xfer_auxv): Remove unused `res' variable.
4013 (gnu_nat_target::find_memory_regions): Remove unused
4014 `old_address' variable.
4015
366f550a
ST
40162020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
4017
4018 * gnu-nat.c: Include "gdbarch.h".
4019
f14871bf
ST
40202020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
4021
4022 * reply_mig_hack.awk (Error return): Cast function through
4023 void *, to bypass compiler function call check.
4024
c6887cfb
ST
40252020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
4026
4027 * config/i386/i386gnu.mn (%_reply_S.c): Add dependency on
4028 $(srcdir)/reply_mig_hack.awk.
4029
6930bffe
ST
40302020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
4031
4032 * gnu-nat.h (gnu_debug_flag): Set type to bool.
4033
112c22ed
JG
40342020-05-30 Jonny Grant <jg@jguk.org>
4035
4036 * configure.ac (ACX_BUGURL): change bug URL to https.
4037
f68f85b5
PA
40382020-05-30 Pedro Alves <palves@redhat.com>
4039
4040 * cp-support.c (replace_typedefs_template): New.
4041 (replace_typedefs_qualified_name): Handle
4042 DEMANGLE_COMPONENT_TEMPLATE.
4043
976ca316
SM
40442020-05-29 Simon Marchi <simon.marchi@efficios.com>
4045
4046 * dwarf2/comp-unit.c, dwarf2/comp-unit.h, dwarf2/index-cache.c,
4047 dwarf2/index-cache.h, dwarf2/index-write.c,
4048 dwarf2/index-write.h, dwarf2/line-header.c,
4049 dwarf2/line-header.h, dwarf2/macro.c, dwarf2/macro.h,
4050 dwarf2/read.c, dwarf2/read.h: Rename struct dwarf2_per_objfile
4051 variables and fields from `dwarf2_per_objfile` to just
4052 `per_objfile` throughout.
4053
989ade05
SM
40542020-05-28 Simon Marchi <simon.marchi@polymtl.ca>
4055
4056 * dwarf2/loc.c (class dwarf_evaluate_loc_desc)
4057 <push_dwarf_reg_entry_value>: Add comment.
4058
c47bae85
KB
40592020-05-28 Kevin Buettner <kevinb@redhat.com>
4060 Keith Seitz <keiths@redhat.com>
4061
4062 * python/python.c (do_start_initialization): Call PyEval_SaveThread
4063 instead of PyEval_ReleaseLock.
4064 (class gdbpy_gil): Move to earlier in file.
4065 (finalize_python): Set gdb_python_initialized.
4066 (gdbpy_check_quit_flag): Acquire GIL via gdbpy_gil. Return early
4067 when not initialized.
4068
44486dcf
SM
40692020-05-28 Simon Marchi <simon.marchi@efficios.com>
4070
4071 * dwarf2/loc.c (class dwarf_evaluate_loc_desc)
4072 <push_dwarf_reg_entry_value>: Remove assert. Override
4073 per_objfile with caller_per_objfile.
4074
f030440d
TV
40752020-05-28 Tom de Vries <tdevries@suse.de>
4076
4077 * dwarf2/read.c (dw2_symtab_iter_next, dw2_expand_marked_cus): Limit
4078 PR gold/15646 workaround to symbol kind "type".
4079
f0fbb768
TT
40802020-05-27 Tom Tromey <tromey@adacore.com>
4081
4082 * dwarf2/read.c (load_partial_dies): Use add_partial_symbol.
4083
af0b2a3e
TT
40842020-05-27 Tom Tromey <tromey@adacore.com>
4085
4086 * dwarf2/abbrev.h (struct abbrev_table) <lookup_abbrev>: Inline.
4087 Use htab_find_with_hash.
4088 <add_abbrev>: Remove "abbrev_number" parameter.
4089 * dwarf2/abbrev.c (abbrev_table::add_abbrev): Remove
4090 "abbrev_number" parameter. Use htab_find_slot_with_hash.
4091 (hash_abbrev): Add comment.
4092 (abbrev_table::lookup_abbrev): Move to header file.
4093 (abbrev_table::read): Update.
4094
7d00ffec
TT
40952020-05-27 Tom Tromey <tromey@adacore.com>
4096
4097 * dwarf2/read.c (struct partial_die_info) <name>: Declare new
4098 method.
4099 <canonical_name>: New member.
4100 <raw_name>: Rename from "name".
4101 (partial_die_info): Initialize canonical_name.
4102 (scan_partial_symbols): Check raw_name.
4103 (partial_die_parent_scope, partial_die_full_name)
4104 (add_partial_symbol, add_partial_subprogram)
4105 (add_partial_enumeration, load_partial_dies): Use "name" method.
4106 (partial_die_info::name): New method.
4107 (partial_die_info::read, guess_partial_die_structure_name)
4108 (partial_die_info::fixup): Update.
4109
697bba18
TT
41102020-05-27 Tom Tromey <tromey@adacore.com>
4111
4112 * dwarf2/attribute.h (struct attribute) <form_is_ref>: Inline.
4113 <get_ref_die_offset>: Inline.
4114 <get_ref_die_offset_complaint>: New method.
4115 * dwarf2/attribute.c (attribute::form_is_ref): Move to header.
4116 (attribute::get_ref_die_offset_complaint): Rename from
4117 get_ref_die_offset. Just issue complaint.
4118
c17ace43
HD
41192020-05-27 Hannes Domani <ssbssa@yahoo.de>
4120
4121 * cli/cli-cmds.c (shell_escape): Move exit_status_set_internal_vars.
4122
96445f0b
HD
41232020-05-27 Hannes Domani <ssbssa@yahoo.de>
4124
4125 * exec.c (exec_file_attach): Use errno value of first openp failure.
4126
ac637ec3
HD
41272020-05-27 Hannes Domani <ssbssa@yahoo.de>
4128
4129 * nat/windows-nat.c (windows_thread_info::~windows_thread_info):
4130 Don't close thread handle.
4131
17ee85fc
TT
41322020-05-27 Tom Tromey <tom@tromey.com>
4133 Simon Marchi <simon.marchi@efficios.com>
4134
4135 * objfiles.h (struct objfile) <partial_symtabs>: Now a
4136 shared_ptr.
4137 * dwarf2/read.h (struct dwarf2_per_objfile) <partial_symtabs>: New
4138 member.
4139 * dwarf2/read.c (dwarf2_per_bfd_bfd_data_key,
4140 dwarf2_per_bfd_objfile_data_key>: New globals.
4141 (dwarf2_has_info): Use shared dwarf2_per_bfd if possible.
4142 (dwarf2_get_section_info): Use get_dwarf2_per_objfile.
4143 (dwarf2_initialize_objfile): Consider cases where per_bfd can be
4144 shared.
4145 (dwarf2_build_psymtabs): Set objfile::partial_symtabs and
4146 short-circuit when sharing.
4147 (dwarf2_build_psymtabs): Set dwarf2_per_objfile::partial_symtabs.
4148 (dwarf2_psymtab::expand_psymtab): Use free_cached_comp_units.
4149
39b16f87
SM
41502020-05-27 Simon Marchi <simon.marchi@efficios.com>
4151
4152 * dwarf2/read.h (struct dwarf2_per_bfd) <line_header_hash>: Move
4153 to...
4154 (struct dwarf2_per_objfile) <line_header_hash>: ... here.
4155 * dwarf2/read.c (handle_DW_AT_stmt_list): Update.
4156
fcf23d5b
SM
41572020-05-27 Simon Marchi <simon.marchi@efficios.com>
4158
4159 * dwarf2/read.c (struct mapped_index_base) <symbol_name_at,
4160 build_name_components, find_name_components_bounds>:
4161 Add per_objfile parameter.
4162 (struct mapped_index) <symbol_name_at>: Likewise.
4163 (struct mapped_debug_names): Remove constructor.
4164 <dwarf2_per_objfile>: Remove field.
4165 <namei_to_name, symbol_name_at>: Add per_objfile parameter.
4166 (mapped_index_base::find_name_components_bounds,
4167 mapped_index_base::build_name_components,
4168 dw2_expand_symtabs_matching_symbol): Likewise.
4169 (class mock_mapped_index) <symbol_name_at>: Likewise.
4170 (check_match): Likewise.
4171 (check_find_bounds_finds): Likewise.
4172 (test_mapped_index_find_name_component_bounds): Update.
4173 (CHECK_MATCH): Update.
4174 (dw2_expand_symtabs_matching): Update.
4175 (class dw2_debug_names_iterator) <dw2_debug_names_iterator>: Add
4176 per_objfile parameter.
4177 <find_vec_in_debug_names>: Likewise.
4178 <m_per_objfile>: New field.
4179 (mapped_debug_names::namei_to_name): Add dwarf2_per_objfile
4180 parameter.
4181 (dw2_debug_names_iterator::find_vec_in_debug_names): Likewise.
4182 (dw2_debug_names_iterator::next): Update.
4183 (dw2_debug_names_lookup_symbol): Update.
4184 (dw2_debug_names_expand_symtabs_for_function): Update.
4185 (dw2_debug_names_map_matching_symbols): Update.
4186 (dw2_debug_names_expand_symtabs_matching): Update.
4187 (dwarf2_read_debug_names): Update.
4188
7188ed02
SM
41892020-05-27 Simon Marchi <simon.marchi@efficios.com>
4190
4191 * dwarf2/read.h (struct dwarf2_cu): Forward-declare.
4192 (struct dwarf2_per_bfd) <free_cached_comp_units>: Remove,
4193 move to dwarf2_per_objfile.
4194 <read_in_chain>: Remove.
4195 (struct dwarf2_per_objfile) <get_cu, set_cu, remove_cu,
4196 remove_all_cus, age_comp_units>: New methods.
4197 <m_dwarf2_cus>: New member.
4198 (struct dwarf2_per_cu_data) <cu>: Remove.
4199 * dwarf2/read.c (struct dwarf2_cu) <read_in_chain>: Remove.
4200 (age_cached_comp_units, free_one_cached_comp_unit): Remove,
4201 moved to methods of dwarf2_per_objfile.
4202 (dwarf2_clear_marks): Remove.
4203 (dwarf2_queue_item::~dwarf2_queue_item): Update.
4204 (dwarf2_per_bfd::~dwarf2_per_bfd): Don't free dwarf2_cus.
4205 (dwarf2_per_bfd::free_cached_comp_units): Remove.
4206 (dwarf2_per_objfile::remove_all_cus): New.
4207 (class free_cached_comp_units) <~free_cached_comp_units>:
4208 Update.
4209 (load_cu): Update.
4210 (dw2_do_instantiate_symtab): Adjust.
4211 (fill_in_sig_entry_from_dwo_entry): Adjust.
4212 (cutu_reader::init_tu_and_read_dwo_dies): Update.
4213 (cutu_reader::cutu_reader): Likewise.
4214 (cutu_reader::keep): Use dwarf2_per_objfile::set_cu.
4215 (cutu_reader::cutu_reader): Use dwarf2_per_objfile::get_cu.
4216 (process_psymtab_comp_unit): Use dwarf2_per_objfile::remove_cu
4217 and dwarf2_per_objfile::age_comp_units.
4218 (load_partial_comp_unit): Update.
4219 (maybe_queue_comp_unit): Use dwarf2_per_objfile::get_cu.
4220 (process_queue): Likewise.
4221 (find_partial_die): Use dwarf2_per_objfile::get_cu instead of cu
4222 backlink.
4223 (dwarf2_read_addr_index): Likewise.
4224 (follow_die_offset): Likewise.
4225 (dwarf2_fetch_die_loc_sect_off): Likewise.
4226 (dwarf2_fetch_constant_bytes): Likewise.
4227 (dwarf2_fetch_die_type_sect_off): Likewise.
4228 (follow_die_sig_1): Likewise.
4229 (load_full_type_unit): Likewise.
4230 (read_signatured_type): Likewise.
4231 (dwarf2_cu::dwarf2_cu): Don't set cu field.
4232 (dwarf2_cu::~dwarf2_cu): Remove.
4233 (dwarf2_per_objfile::get_cu): New.
4234 (dwarf2_per_objfile::set_cu): New.
4235 (age_cached_comp_units): Rename to...
4236 (dwarf2_per_objfile::age_comp_units): ... this. Adjust
4237 to std::unordered_map.
4238 (free_one_cached_comp_unit): Rename to...
4239 (dwarf2_per_objfile::remove_cu): ... this. Adjust
4240 to std::unordered_map.
4241 (dwarf2_per_objfile::~dwarf2_per_objfile): New.
4242 (dwarf2_mark_helper): Use dwarf2_per_objfile::get_cu, expect
4243 a dwarf2_per_objfile in data.
4244 (dwarf2_mark): Pass dwarf2_per_objfile in data to htab_traverse.
4245 (dwarf2_clear_marks): Remove.
4246
2e671100
SM
42472020-05-27 Simon Marchi <simon.marchi@efficios.com>
4248
4249 * dwarf2/read.c (class cutu_reader) <cutu_reader>: Replace
4250 `int use_existing_cu` parameter with `dwarf2_cu *existing_cu`.
4251 (init_tu_and_read_dwo_dies): Likewise.
4252 (cutu_reader::init_tu_and_read_dwo_dies): Likewise.
4253 (cutu_reader::cutu_reader): Likewise.
4254 (load_partial_comp_unit): Likewise.
4255 (process_psymtab_comp_unit): Update.
4256 (build_type_psymtabs_1): Update.
4257 (process_skeletonless_type_unit): Update.
4258 (load_full_comp_unit): Update.
4259 (find_partial_die): Update.
4260 (dwarf2_read_addr_index): Update.
4261 (read_signatured_type): Update.
4262
2e6a9f79
SM
42632020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
4264
4265 * dwarf2/read.h (struct dwarf2_per_cu_data) <m_header,
4266 m_header_read_in>: New fields.
4267 <get_header>: New method.
4268 * dwarf2/read.c (per_cu_header_read_in): Remove.
4269 (dwarf2_per_cu_data::get_header): New.
4270 (dwarf2_per_cu_data::addr_size): Update.
4271 (dwarf2_per_cu_data::offset_size): Update.
4272 (dwarf2_per_cu_data::ref_addr_size): Update.
4273
1b555f17
SM
42742020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
4275
4276 * dwarf2/read.c (load_cu): Return dwarf2_cu.
4277 (dw2_do_instantiate_symtab): Update.
4278 (queue_and_load_all_dwo_tus): Change parameter from
4279 dwarf2_per_cu_data to dwarf2_cu.
4280 (dwarf2_fetch_die_loc_sect_off): Update.
4281 (dwarf2_fetch_constant_bytes): Update.
4282 (dwarf2_fetch_die_type_sect_off): Update.
4283
8fc0b21d
SM
42842020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
4285
4286 * dwarf2/read.c (process_full_comp_unit,
4287 process_full_type_unit): Remove per_cu, per_objfile paramters.
4288 Add dwarf2_cu parameter.
4289 (process_queue): Update.
4290
168c9250
SM
42912020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
4292
4293 * dwarf2/read.c (create_cu_from_index_list): Replace
4294 dwarf2_per_objfile parameter with dwarf2_per_bfd.
4295 (create_cus_from_index_list): Likewise.
4296 (create_cus_from_index): Likewise.
4297 (create_signatured_type_table_from_index): Likewise.
4298 (create_cus_from_debug_names_list): Likewise.
4299 (create_cus_from_debug_names): Likewise.
4300 (dwarf2_read_gdb_index): Update.
4301 (dwarf2_read_debug_names): Update.
4302
e286671b
TT
43032020-05-27 Tom Tromey <tom@tromey.com>
4304 Simon Marchi <simon.marchi@efficios.com>
4305
4306 * dwarf2/read.h (struct dwarf2_per_objfile)
4307 <get_type_for_signatured_type, set_type_for_signatured_type>:
4308 New methods.
4309 <m_type_map>: New member.
4310 (struct signatured_type) <type>: Remove.
4311 * dwarf2/read.c
4312 (dwarf2_per_objfile::get_type_for_signatured_type,
4313 dwarf2_per_objfile::set_type_for_signatured_type): New.
4314 (get_signatured_type): Use new methods.
4315
8adb8487
TT
43162020-05-27 Tom Tromey <tom@tromey.com>
4317 Simon Marchi <simon.marchi@efficios.com>
4318
4319 * dwarf2/read.h (struct type_unit_group_unshareable): New.
4320 (struct dwarf2_per_objfile) <type_units>: New member.
4321 <get_type_unit_group_unshareable>: New method.
4322 * dwarf2/read.c (struct type_unit_group) <compunit_symtab,
4323 num_symtabs, symtabs>: Remove; move to
4324 type_unit_group_unshareable.
4325 (dwarf2_per_objfile::get_type_unit_group_unshareable): New.
4326 (process_full_type_unit, dwarf2_cu::setup_type_unit_groups)
4327 (dwarf2_cu::setup_type_unit_groups): Use type_unit_group_unshareable.
4328
127bbf4b
SM
43292020-05-27 Simon Marchi <simon.marchi@efficios.com>
4330
4331 * dwarf2/read.h (struct dwarf2_per_cu_data):
4332 <dwarf2_per_objfile>: Remove.
4333 * dwarf2/read.c (create_cu_from_index_list): Don't assign
4334 dwarf2_per_objfile.
4335 (create_signatured_type_table_from_index): Likewise.
4336 (create_signatured_type_table_from_debug_names): Likewise.
4337 (create_debug_type_hash_table): Likewise.
4338 (fill_in_sig_entry_from_dwo_entry): Likewise.
4339 (create_type_unit_group): Likewise.
4340 (read_comp_units_from_section): Likewise.
4341 (create_cus_hash_table): Likewise.
4342
f6e649dd
SM
43432020-05-27 Simon Marchi <simon.marchi@efficios.com>
4344
4345 * dwarf2/read.c (process_psymtab_comp_unit): Remove reference to
4346 dwarf2_per_cu_data::dwarf2_per_objfile.
4347 (compute_compunit_symtab_includes): Likewise.
4348 (dwarf2_cu::start_symtab): Likewise.
4349
aa66c379
SM
43502020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
4351
4352 * dwarf2/read.h (dwarf2_get_die_type): Add dwarf2_per_objfile
4353 parameter.
4354 * dwarf2/read.c (get_die_type_at_offset): Likewise.
4355 (read_namespace_alias): Update.
4356 (lookup_die_type): Update.
4357 (dwarf2_get_die_type): Add dwarf2_per_objfile parameter.
4358 * dwarf2/loc.c (class dwarf_evaluate_loc_desc) <get_base_type>:
4359 Update.
4360 (disassemble_dwarf_expression): Update.
4361
120ce1b5
SM
43622020-05-27 Simon Marchi <simon.marchi@efficios.com>
4363
4364 * dwarf2/read.h (struct dwarf2_queue_item): Add
4365 dwarf2_per_objfile parameter, assign new parameter.
4366 <per_objfile>: New field.
4367 * dwarf2/read.c (free_one_cached_comp_unit): Add
4368 dwarf2_per_objfile parameter.
4369 (queue_comp_unit): Likewise.
4370 (dw2_do_instantiate_symtab): Update.
4371 (process_psymtab_comp_unit): Update.
4372 (maybe_queue_comp_unit): Add dwarf2_per_objfile parameter.
4373 (process_imported_unit_die): Update.
4374 (queue_and_load_dwo_tu): Update.
4375 (follow_die_offset): Update.
4376 (follow_die_sig_1): Update.
4377
9f47c707
SM
43782020-05-27 Simon Marchi <simon.marchi@efficios.com>
4379
4380 * dwarf2/read.h (struct dwarf2_per_cu_data) <objfile>: Remove.
4381 * dwarf2/read.c (dwarf2_compute_name): Pass per_objfile down.
4382 (read_call_site_scope): Assign per_objfile.
4383 (dwarf2_per_cu_data::objfile): Remove.
4384 * gdbtypes.h (struct call_site) <per_objfile>: New member.
4385 * dwarf2/loc.h (dwarf2_evaluate_loc_desc): Add
4386 dwarf2_per_objfile parameter.
4387 * dwarf2/loc.c (dwarf2_evaluate_loc_desc_full): Add
4388 dwarf2_per_objfile parameter.
4389 (dwarf_expr_reg_to_entry_parameter): Add output
4390 dwarf2_per_objfile parameter.
4391 (locexpr_get_frame_base): Update.
4392 (class dwarf_evaluate_loc_desc) <get_tls_address>: Update.
4393 <push_dwarf_reg_entry_value>: Update.
4394 <call_site_to_target_addr>: Update.
4395 (dwarf_entry_parameter_to_value): Add dwarf2_per_objfile
4396 parameter.
4397 (value_of_dwarf_reg_entry): Update.
4398 (rw_pieced_value): Update.
4399 (indirect_synthetic_pointer): Update.
4400 (dwarf2_evaluate_property): Update.
4401 (dwarf2_loc_desc_get_symbol_read_needs): Add dwarf2_per_objfile
4402 parameter.
4403 (locexpr_read_variable): Update.
4404 (locexpr_get_symbol_read_needs): Update.
4405 (loclist_read_variable): Update.
4406
14095eb3
SM
44072020-05-27 Simon Marchi <simon.marchi@efficios.com>
4408
4409 * dwarf2/read.h (dwarf2_fetch_die_loc_sect_off,
4410 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
4411 dwarf2_fetch_die_type_sect_off): Add dwarf2_per_objfile
4412 parameter.
4413 * dwarf2/read.c (dwarf2_fetch_die_loc_sect_off,
4414 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
4415 dwarf2_fetch_die_type_sect_off): Add dwarf2_per_objfile
4416 parameter.
4417 * dwarf2/loc.c (indirect_synthetic_pointer, per_cu_dwarf_call,
4418 sect_variable_value): Add dwarf2_per_objfile parameter.
4419 (class dwarf_evaluate_loc_desc) <dwarf_call,
4420 dwarf_variable_value>: Update.
4421 (fetch_const_value_from_synthetic_pointer): Add
4422 dwarf2_per_objfile parameter.
4423 (fetch_const_value_from_synthetic_pointer): Update.
4424 (coerced_pieced_ref): Update.
4425 (class symbol_needs_eval_context) <dwarf_call,
4426 dwarf_variable_value>: Update.
4427 (dwarf2_compile_expr_to_ax): Update.
4428
3c3cd3d4
SM
44292020-05-27 Simon Marchi <simon.marchi@efficios.com>
4430
4431 * dwarf2/loc.c (allocate_piece_closure): Add dwarf2_per_objfile
4432 parameter.
4433 (dwarf2_evaluate_loc_desc_full): Update.
4434
82ca3f51
SM
44352020-05-27 Simon Marchi <simon.marchi@efficios.com>
4436
4437 * dwarf2/read.h (dwarf2_read_addr_index): Add dwarf2_per_objfile
4438 parameter.
4439 * dwarf2/read.c (dwarf2_read_addr_index): Likewise.
4440 * dwarf2/loc.c (decode_debug_loclists_addresses): Add
4441 dwarf2_per_objfile parameter.
4442 (decode_debug_loc_dwo_addresses): Likewise.
4443 (dwarf2_find_location_expression): Update.
4444 (class dwarf_evaluate_loc_desc) <get_addr_index>: Update.
4445 (locexpr_describe_location_piece): Add dwarf2_per_objfile
4446 parameter.
4447 (disassemble_dwarf_expression): Add dwarf2_per_objfile
4448 parameter.
4449 (locexpr_describe_location_1): Likewise.
4450 (locexpr_describe_location): Update.
4451
4b167ea1
SM
44522020-05-27 Simon Marchi <simon.marchi@efficios.com>
4453
4454 * dwarf2/read.h (struct dwarf2_per_cu_data) <text_offset>:
4455 Remove.
4456 * dwarf2/read.c (dwarf2_per_cu_data::text_offset): Remove.
4457 * dwarf2/loc.c (dwarf2_find_location_expression): Update.
4458 (dwarf2_compile_property_to_c): Update.
4459 (dwarf2_compile_expr_to_ax): Add dwarf2_per_objfile parameter,
4460 use text offset from objfile.
4461 (locexpr_tracepoint_var_ref): Update.
4462 (locexpr_generate_c_location): Update.
4463 (loclist_describe_location): Update.
4464 (loclist_tracepoint_var_ref): Update.
4465 * dwarf2/compile.h (compile_dwarf_bounds_to_c): Add
4466 dwarf2_per_objfile parameter.
4467 * dwarf2/loc2c.c (do_compile_dwarf_expr_to_c): Likewise,
4468 use text offset from objfile.
4469 (compile_dwarf_expr_to_c): Add dwarf2_per_objfile parameter.
4470
89b07335
SM
44712020-05-27 Simon Marchi <simon.marchi@efficios.com>
4472
4473 * dwarf2/expr.h (struct dwarf_expr_context)
4474 <dwarf_expr_context>: Add dwarf2_per_objfile parameter.
4475 <offset>: Remove.
4476 <per_objfile>: New member.
4477 * dwarf2/expr.c (dwarf_expr_context::dwarf_expr_context): Add
4478 dwarf2_per_objfile parameter. Don't set offset, set
4479 per_objfile.
4480 (dwarf_expr_context::execute_stack_op): Use offset from objfile.
4481 * dwarf2/frame.c (dwarf2_frame_find_fde): Return (by parameter)
4482 a dwarf2_per_objfile object instead of an offset.
4483 (class dwarf_expr_executor) <dwarf_expr_executor>: Add
4484 constructor.
4485 (execute_stack_op): Add dwarf2_per_objfile parameter, pass it
4486 to dwarf2_expr_executor constructor. Don't set offset.
4487 (dwarf2_fetch_cfa_info): Update.
4488 (struct dwarf2_frame_cache) <text_offset>: Remove.
4489 <per_objfile>: New field.
4490 (dwarf2_frame_cache): Update.
4491 (dwarf2_frame_prev_register): Update.
4492 * dwarf2/loc.c (class dwarf_evaluate_loc_desc)
4493 <dwarf_evaluate_loc_desc>: Add constructor.
4494 (dwarf2_evaluate_loc_desc_full): Update.
4495 (dwarf2_locexpr_baton_eval): Update.
4496 (class symbol_needs_eval_context) <symbol_needs_eval_context>:
4497 Add constructor.
4498 (dwarf2_loc_desc_get_symbol_read_needs): Update.
4499
293e7e51
SM
45002020-05-27 Simon Marchi <simon.marchi@efficios.com>
4501
4502 * dwarf2/read.h (struct dwarf2_per_cu_data) <addr_type,
4503 addr_sized_int_type>: Move to dwarf2_cu.
4504 <int_type>: Move to dwarf2_per_objfile.
4505 (struct dwarf2_per_objfile) <int_type>: Move here.
4506 * dwarf2/read.c (struct dwarf2_cu) <addr_type,
4507 addr_sized_int_type>: Move here.
4508 (read_func_scope): Update.
4509 (read_array_type): Update.
4510 (read_tag_string_type): Update.
4511 (attr_to_dynamic_prop): Update.
4512 (dwarf2_per_cu_data::int_type): Rename to...
4513 (dwarf2_per_objfile::int_type): ... this.
4514 (dwarf2_per_cu_data::addr_sized_int_type): Rename to...
4515 (dwarf2_cu::addr_sized_int_type): ... this.
4516 (read_subrange_type): Update.
4517 (dwarf2_per_cu_data::addr_type): Rename to...
4518 (dwarf2_cu::addr_type): ... this.
4519 (set_die_type): Update.
4520
64874a40
SM
45212020-05-27 Simon Marchi <simon.marchi@efficios.com>
4522
4523 * dwarf2/read.c (queue_and_load_all_dwo_tus): Access per_objfile
4524 data through per_cu->cu.
4525
4ab09049
SM
45262020-05-27 Simon Marchi <simon.marchi@efficios.com>
4527
4528 * dwarf2/read.c (lookup_dwo_comp_unit): Change
4529 dwarf2_per_cu_data parameter fo dwarf2_cu.
4530 (lookup_dwo_type_unit): Likewise.
4531 (read_cutu_die_from_dwo): Likewise.
4532 (lookup_dwo_unit): Likewise.
4533 (open_and_init_dwo_file): Likewise.
4534 (lookup_dwo_cutu): Likewise.
4535 (lookup_dwo_comp_unit): Likewise.
4536 (lookup_dwo_type_unit): Likewise.
4537 (cutu_reader::init_tu_and_read_dwo_dies): Update.
4538 (cutu_reader::cutu_reader): Update.
4539
47b14e86
SM
45402020-05-27 Simon Marchi <simon.marchi@efficios.com>
4541
4542 * dwarf2/read.c (process_full_comp_unit): Add dwarf2_per_objfile
4543 parameter.
4544 (process_full_type_unit): Likewise.
4545 (process_queue): Update.
4546
43182c09
SM
45472020-05-27 Simon Marchi <simon.marchi@efficios.com>
4548
4549 * dwarf2/read.c (recursively_compute_inclusions): Add
4550 dwarf2_per_objfile parameter.
4551 (compute_compunit_symtab_includes): Likewise.
4552 (process_cu_includes): Update.
4553
7aa104c4
SM
45542020-05-27 Simon Marchi <simon.marchi@efficios.com>
4555
4556 * dwarf2/read.c (create_partial_symtab): Add dwarf2_per_objfile
4557 parameter.
4558 (create_type_unit_group): Update.
4559 (process_psymtab_comp_unit_reader): Update.
4560 (build_type_psymtabs_reader): Update.
4561
e3beb21d
SM
45622020-05-27 Simon Marchi <simon.marchi@efficios.com>
4563
4564 * dwarf2/read.c (cutu_reader::keep): Access dwarf2_per_objfile
4565 object through m_this_cu->cu.
4566
d460f660
SM
45672020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
4568
4569 * dwarf2/read.c (queue_and_load_dwo_tu): Expect a dwarf2_cu as
4570 the info parameter.
4571 (queue_and_load_all_dwo_tus): Pass per_cu->cu.
4572
ab432490
SM
45732020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
4574
4575 * dwarf2/read.c (class cutu_reader) <cutu_reader>: Add
4576 per_objfile parameter.
4577 (load_full_type_unit): Add per_objfile parameter.
4578 (read_signatured_type): Likewise.
4579 (load_full_comp_unit): Likewise.
4580 (load_cu): Likewise.
4581 (dw2_do_instantiate_symtab): Likewise.
4582 (dw2_get_file_names): Likewise.
4583 (dw2_map_symtabs_matching_filename): Update.
4584 (dw_expand_symtabs_matching_file_matcher): Update.
4585 (dw2_map_symbol_filenames): Update.
4586 (process_psymtab_comp_unit): Add per_objfile parameter.
4587 (build_type_psymtabs_1): Update.
4588 (process_skeletonless_type_unit): Update.
4589 (dwarf2_build_psymtabs_hard): Update.
4590 (load_partial_comp_unit): Add per_objfile parameter.
4591 (scan_partial_symbols): Update.
4592 (load_full_comp_unit): Add per_objfile parameter.
4593 (process_imported_unit_die): Update.
4594 (create_cus_hash_table): Update.
4595 (find_partial_die): Update.
4596 (dwarf2_read_addr_index): Update.
4597 (follow_die_offset): Update.
4598 (dwarf2_fetch_die_loc_sect_off): Update.
4599 (dwarf2_fetch_constant_bytes): Update.
4600 (dwarf2_fetch_die_type_sect_off): Update.
4601 (follow_die_sig_1): Update.
4602 (load_full_type_unit): Add per_objfile parameter.
4603 (read_signatured_type): Likewise.
4604
313bad1b
SM
46052020-05-27 Simon Marchi <simon.marchi@efficios.com>
4606
4607 * dwarf2/read.c (lookup_dwo_unit): Use bfd_get_filename instead
4608 of objfile_name.
4609
c3699833
SM
46102020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
4611
4612 * dwarf2/read.h (struct dwarf2_per_bfd) <obfd>: New member.
4613 (dwarf2_get_dwz_file): Replace parameter with dwarf2_per_bfd.
4614 * dwarf2/read.c (dwarf2_per_bfd::dwarf2_per_bfd): Assign obfd
4615 field.
4616 (dwarf2_get_dwz_file): Replace parameter with dwarf2_per_bfd.
4617 (create_cus_from_index): Update.
4618 (dwarf2_read_gdb_index): Update.
4619 (create_cus_from_debug_names): Update.
4620 (dwarf2_read_debug_names): Update.
4621 (get_abbrev_section_for_cu): Update.
4622 (create_all_comp_units): Update.
4623 (read_attribute_value): Update.
4624 (get_debug_line_section): Update.
4625 * dwarf2/index-cache.c (index_cache::store): Update.
4626 * dwarf2/index-write.c (save_gdb_index_command): Update.
4627 * dwarf2/macro.c (dwarf_decode_macro_bytes): Update.
4628
1859c670
SM
46292020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
4630
4631 * dwarf2/read.h (struct dwarf2_per_cu_data) <per_bfd>: New
4632 member.
4633 * dwarf2/read.c (dwarf2_per_bfd::allocate_per_cu): Initialize
4634 dwarf2_per_cu_data::per_bfd.
4635 (dwarf2_per_bfd::allocate_signatured_type): Likewise.
4636 (create_type_unit_group): Likewise.
4637 (queue_comp_unit): Remove reference to
4638 per_cu->dwarf2_per_objfile.
4639 (maybe_queue_comp_unit): Likewise.
4640 (fill_in_sig_entry_from_dwo_entry): Assign new field.
4641 (create_cus_hash_table): Assign new field.
4642
5e22e966
SM
46432020-05-27 Simon Marchi <simon.marchi@efficios.com>
4644
4645 * dwarf2/read.c: Replace
4646 dwarf2_cu->per_cu->dwarf2_per_objfile references with
4647 dwarf2_cu->per_objfile throughout.
4648
97a1449a
SM
46492020-05-27 Simon Marchi <simon.marchi@efficios.com>
4650
4651 * dwarf2/read.c (dw2_do_instantiate_symtab): Add per_objfile
4652 parameter, don't use per_cu->dwarf2_per_objfile.
4653 (dw2_instantiate_symtab): Likewise.
4654 (dw2_find_last_source_symtab): Update.
4655 (dw2_map_expand_apply): Update.
4656 (dw2_lookup_symbol): Update.
4657 (dw2_expand_symtabs_for_function): Update.
4658 (dw2_expand_all_symtabs): Update.
4659 (dw2_expand_symtabs_with_fullname): Update.
4660 (dw2_expand_symtabs_matching_one): Add per_objfile parameter,
4661 don't use per_cu->dwarf2_per_objfile.
4662 (dw2_expand_marked_cus): Update.
4663 (dw2_find_pc_sect_compunit_symtab): Update.
4664 (dw2_debug_names_lookup_symbol): Update.
4665 (dw2_debug_names_expand_symtabs_for_function): Update.
4666 (dw2_debug_names_map_matching_symbols): Update.
4667 (dwarf2_psymtab::expand_psymtab): Update.
4668
9e021579
SM
46692020-05-27 Simon Marchi <simon.marchi@efficios.com>
4670
4671 * dwarf2/read.c (struct dwarf2_cu) <dwarf2_cu>: Add parameter.
4672 <per_objfile>: New member.
4673 (class cutu_reader) <init_tu_and_read_dwo_dies>: Add parameter.
4674 (cutu_reader::init_tu_and_read_dwo_dies): Add parameter, update
4675 call to dwarf2_cu.
4676 (cutu_reader::cutu_reader): Update.
4677 (dwarf2_cu::dwarf2_cu): Add parameter, initialize per_objfile.
4678
ae090bdb
SM
46792020-05-27 Simon Marchi <simon.marchi@efficios.com>
4680
4681 * dwarf2/read.h (struct dwarf2_per_bfd) <die_type_hash>: Move to
4682 struct dwarf2_per_objfile.
4683 (struct dwarf2_per_objfile) <die_type_hash>: Move from struct
4684 dwarf2_per_bfd.
4685 * dwarf2/read.c (set_die_type): Update.
4686 (get_die_type_at_offset): Update.
4687
af758d11
SM
46882020-05-27 Tom Tromey <tom@tromey.com>
4689 Simon Marchi <simon.marchi@efficios.com>
4690
4691 * dwarf2/read.h (struct dwarf2_per_bfd) <num_psymtabs>: New
4692 method.
4693 (struct dwarf2_per_objfile) <resize_symtabs, symtab_set_p,
4694 get_symtab, set_symtab>: New methods.
4695 <m_symtabs>: New field.
4696 (struct dwarf2_psymtab): Derive from partial_symtab.
4697 <readin_p, get_compunit_symtab>: Declare methods.
4698 * dwarf2/read.c (dwarf2_per_objfile::symtab_set_p,
4699 dwarf2_per_objfile::get_symtab, dwarf2_per_objfile::set_symtab):
4700 New methods.
4701 (struct dwarf2_per_cu_quick_data) <compunit_symtab>: Remove.
4702 (dw2_do_instantiate_symtab, dw2_instantiate_symtab)
4703 (dw2_map_expand_apply, dw2_map_symtabs_matching_filename)
4704 (dw2_symtab_iter_next, dw2_print_stats)
4705 (dw2_expand_symtabs_with_fullname)
4706 (dw2_expand_symtabs_matching_one)
4707 (dw_expand_symtabs_matching_file_matcher)
4708 (dw2_find_pc_sect_compunit_symtab, dw2_map_symbol_filenames)
4709 (dw2_debug_names_iterator::next)
4710 (dw2_debug_names_map_matching_symbols)
4711 (fill_in_sig_entry_from_dwo_entry, dwarf2_psymtab::read_symtab)
4712 (process_queue, dwarf2_psymtab::expand_psymtab): Update.
4713 (dwarf2_psymtab::readin_p, dwarf2_psymtab::get_compunit_symtab):
4714 New methods.
4715 (get_compunit_symtab, process_full_comp_unit)
4716 (process_full_type_unit): Update.
4717 (dwarf2_build_psymtabs, dwarf2_initialize_objfile, add_type_unit): Call
4718
5989a64e
SM
47192020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
4720
4721 * dwarf2/read.h (dwarf2_per_objfile): Rename to dwarf2_per_bfd,
4722 then introduce a new dwarf2_per_objfile type.
4723 <read_line_string>: Move to the new dwarf2_per_objfile type.
4724 <objfile>: Likewise.
4725 (dwarf2_per_bfd): Rename dwarf2_per_objfile to this.
4726 * dwarf2/read.c: Replace references to dwarf2_per_objfile with
4727 dwarf2_per_objfile->per_bfd.
4728 (dwarf2_per_objfile::dwarf2_per_objfile): Rename to...
4729 (dwarf2_per_bfd::dwarf2_per_bfd): ... this.
4730 (dwarf2_per_objfile::free_cached_comp_units): Rename to...
4731 (dwarf2_per_bfd::free_cached_comp_units): ... this.
4732 (dwarf2_has_info): Allocate dwarf2_per_bfd.
4733 (dwarf2_per_objfile::locate_sections): Rename to...
4734 (dwarf2_per_bfd::locate_sections): ... this.
4735 (dwarf2_per_objfile::get_cutu): Rename to...
4736 (dwarf2_per_bfd::get_cutu): ... this.
4737 (dwarf2_per_objfile::get_cu): Rename to...
4738 (dwarf2_per_bfd::get_cu): ... this.
4739 (dwarf2_per_objfile::get_tu): Rename to...
4740 (dwarf2_per_bfd::get_tu): ... this.
4741 (dwarf2_per_objfile::allocate_per_cu): Rename to...
4742 (dwarf2_per_bfd::allocate_per_cu): ... this.
4743 (dwarf2_per_objfile::allocate_signatured_type): Rename to...
4744 (dwarf2_per_bfd::allocate_signatured_type): ... this.
4745 (get_gdb_index_contents_ftype): Change parameter from
4746 dwarf2_per_objfile to dwarf2_per_bfd.
4747 * dwarf2/macro.c, dwarf2/index-write.c: Replace references to
4748 dwarf2_per_objfile with dwarf2_per_objfile->per_bfd.
4749
a50264ba
TT
47502020-05-27 Tom Tromey <tom@tromey.com>
4751 Simon Marchi <simon.marchi@efficios.com>
4752
4753 * dwarf2/loc.c (struct piece_closure) <per_objfile>: New member.
4754 (allocate_piece_closure): Set "per_objfile" member.
4755 (dwarf2_find_location_expression, dwarf2_locexpr_baton_eval)
4756 (locexpr_describe_location, loclist_describe_location): Use new
4757 member.
4758 * dwarf2/read.c (read_call_site_scope)
4759 (mark_common_block_symbol_computed, attr_to_dynamic_prop)
4760 (dwarf2_const_value_attr, dwarf2_fetch_die_loc_sect_off)
4761 (fill_in_loclist_baton, dwarf2_symbol_mark_computed,
4762 handle_data_member_location): Set per_objfile member.
4763 * dwarf2/loc.h (struct dwarf2_locexpr_baton) <per_objfile>: New
4764 member.
4765 (struct dwarf2_loclist_baton) <per_objfile>: New member.
4766
d3473f0c
TT
47672020-05-27 Tom Tromey <tom@tromey.com>
4768
4769 * dwarf2/read.h (struct dwarf2_per_objfile) <allocate_per_cu,
4770 allocate_signatured_type>: Declare new methods.
4771 <m_num_psymtabs>: New member.
4772 (struct dwarf2_per_cu_data) <index>: New member.
4773 * dwarf2/read.c (dwarf2_per_objfile::allocate_per_cu)
4774 (dwarf2_per_objfile::allocate_signatured_type): New methods.
4775 (create_cu_from_index_list): Use allocate_per_cu.
4776 (create_signatured_type_table_from_index)
4777 (create_signatured_type_table_from_debug_names)
4778 (create_debug_type_hash_table, add_type_unit)
4779 (read_comp_units_from_section): Use allocate_signatured_type.
4780
5717c425
TT
47812020-05-27 Tom Tromey <tom@tromey.com>
4782
4783 * psymtab.c (partial_map_expand_apply)
4784 (psym_find_pc_sect_compunit_symtab, psym_lookup_symbol)
4785 (psym_lookup_global_symbol_language)
4786 (psymtab_to_symtab, psym_find_last_source_symtab, dump_psymtab)
4787 (psym_print_stats, psym_expand_symtabs_for_function)
4788 (psym_map_symbol_filenames, psym_map_matching_symbols)
4789 (psym_expand_symtabs_matching)
4790 (partial_symtab::read_dependencies, maintenance_info_psymtabs)
4791 (maintenance_check_psymtabs): Update.
4792 * psympriv.h (struct partial_symtab) <readin_p,
4793 get_compunit_symtab>: Add objfile parameter.
4794 (struct standard_psymtab) <readin_p, get_compunit_symtab>:
4795 Likewise.
4796 * dwarf2/read.c (struct dwarf2_include_psymtab) <readin_p,
4797 get_compunit_symtab>: Likewise.
4798 (dwarf2_psymtab::expand_psymtab): Pass objfile argument.
4799
45940949
TT
48002020-05-27 Tom Tromey <tom@tromey.com>
4801
4802 * dwarf2/read.h (struct dwarf2_per_objfile) <obstack>: New
4803 member.
4804 * dwarf2/read.c (delete_file_name_entry): Fix comment.
4805 (create_cu_from_index_list)
4806 (create_signatured_type_table_from_index)
4807 (create_signatured_type_table_from_debug_names)
4808 (dw2_get_file_names_reader, dwarf2_initialize_objfile)
4809 (dwarf2_create_include_psymtab)
4810 (create_debug_type_hash_table, add_type_unit)
4811 (create_type_unit_group, read_comp_units_from_section)
4812 (dwarf2_compute_name, create_cus_hash_table)
4813 (create_dwp_hash_table, create_dwo_unit_in_dwp_v1)
4814 (create_dwo_unit_in_dwp_v2, open_and_init_dwp_file): Use new
4815 obstack.
4816 (dw2_get_real_path): Likewise. Change argument to
4817 dwarf2_per_objfile.
4818
f8c6d152
LM
48192020-05-27 Luis Machado <luis.machado@linaro.org>
4820
4821 PR tdep/26000
4822 * arm-tdep.c (thumb_analyze_prologue): Fix instruction matching
4823 for ldrd (immediate).
4824
e98d2e6d
PW
48252020-05-26 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4826
4827 * command.h: Add comment giving the name of class_tui.
4828 * cli/cli-cmds.c (_initialize_cli_cmds): If TUI defined,
4829 create the fake command for the help for class_tui.
4830
53a47a3e
TT
48312020-05-26 Tom Tromey <tromey@adacore.com>
4832
4833 * ada-lang.c (ada_print_array_index): Change type. Call val_atr.
4834 (ada_value_ptr_subscript): Don't call pos_atr on the lower bound.
4835 (val_atr): New function.
4836 (value_val_atr): Use it.
4837 * ada-valprint.c (print_optional_low_bound): Change low bound
4838 handling for enums.
4839 (val_print_packed_array_elements): Don't call discrete_position.
4840 * gdbtypes.c (get_discrete_bounds) <TYPE_CODE_RANGE>: Call
4841 discrete_position for enum types.
4842 * language.c (default_print_array_index): Change type.
4843 * language.h (struct language_defn) <la_print_array_index>: Add
4844 index_type parameter, change type of index_value.
4845 (LA_PRINT_ARRAY_INDEX): Add index_type parameter.
4846 (default_print_array_index): Update.
4847 * valprint.c (maybe_print_array_index): Don't call
4848 value_from_longest. Update.
4849 (value_print_array_elements): Don't call discrete_position.
4850
0bc2354b
TT
48512020-05-26 Tom Tromey <tromey@adacore.com>
4852
4853 * ada-lang.c (value_val_atr): Handle TYPE_CODE_RANGE.
4854 * gdbtypes.c (discrete_position): Handle TYPE_CODE_RANGE.
4855
1218a4bf
CDA
48562020-05-25 Cristiano De Alti <cristiano_dealti@hotmail.com>
4857
4858 PR gdb/13519
4859 * avr-tdep.c (avr_integer_to_address): Return data or code
4860 address accordingly to the second 'type' argument of the
4861 function.
4862
92651b1d
MW
48632020-05-25 Michael Weghorn <m.weghorn@posteo.de>
4864
4865 * infcmd.c, inferior.h: (construct_inferior_arguments):
4866 Moved function from here to gdbsupport/common-inferior.{h,cc}
4867
0a4f5f8c
TT
48682020-05-23 Tom Tromey <tom@tromey.com>
4869
4870 Revert commit eca1f90c:
4871 * NEWS: Remove entry for completion styling.
4872 * completer.c (_rl_completion_prefix_display_length): Move
4873 declaration later.
4874 (gdb_fnprint): Revert.
4875 (gdb_display_match_list_1): Likewise.
4876 * cli/cli-style.c (completion_prefix_style)
4877 (completion_difference_style, completion_suffix_style): Remove.
4878 (_initialize_cli_style): Revert.
4879 * cli/cli-style.h (completion_prefix_style)
4880 (completion_difference_style, completion_suffix_style): Don't
4881 declare.
4882
e08bd6c5
PA
48832020-05-24 Pedro Alves <palves@redhat.com>
4884
4885 * symtab.c (completion_list_add_name): Return boolean indication
4886 of whether the symbol matched.
4887 (completion_list_add_symbol): Don't try to remove C++ aliases if
4888 the symbol didn't match in the first place.
4889 * symtab.h (completion_list_add_name): Return bool.
4890
ceacbf6e
SM
48912020-05-23 Simon Marchi <simon.marchi@polymtl.ca>
4892
4893 * gdbtypes.h (TYPE_FIELD): Remove. Replace all uses with
4894 type::field.
4895
26f16254
JB
48962020-05-23 Joel Brobecker <brobecker@adacore.com>
4897
4898 GDB 9.2 released.
4899
eca1f90c
TT
49002020-05-23 Tom Tromey <tom@tromey.com>
4901
4902 * NEWS: Add entry for completion styling.
4903 * completer.c (_rl_completion_prefix_display_length): Move
4904 declaration earlier.
4905 (gdb_fnprint): Use completion_style.
4906 (gdb_display_match_list_1): Likewise.
4907 * cli/cli-style.c (completion_prefix_style)
4908 (completion_difference_style, completion_suffix_style): New
4909 globals.
4910 (_initialize_cli_style): Register new globals.
4911 * cli/cli-style.h (completion_prefix_style)
4912 (completion_difference_style, completion_suffix_style): Declare.
4913
51e2cfa2
PA
49142020-05-23 Pedro Alves <palves@redhat.com>
4915
4916 * utils.c: Include "gdbsupport/gdb-safe-ctype.h".
4917 (parse_escape): Use ISDIGIT instead of isdigit.
4918 (puts_debug): Use gdb_isprint instead of isprint.
4919 (fprintf_symbol_filtered): Use ISALNUM instead of isalnum.
4920 (cp_skip_operator_token, skip_ws, strncmp_iw_with_mode): Use
4921 ISSPACE instead of isspace.
4922 (strncmp_iw_with_mode): Use TOLOWER instead of tolower and ISSPACE
4923 instead of isspace.
4924 (strcmp_iw_ordered): Use ISSPACE instead of isspace.
4925 (string_to_core_addr): Use TOLOWER instead of tolower, ISXDIGIT
4926 instead of isxdigit and ISDIGIT instead of isdigit.
4927
80fc5e77
SM
49282020-05-22 Simon Marchi <simon.marchi@efficios.com>
4929
4930 * gdbtypes.h (struct type) <field>: New method.
4931 (TYPE_FIELDS): Remove, replace all uses with either type::fields
4932 or type::field.
4933
3cabb6b0
SM
49342020-05-22 Simon Marchi <simon.marchi@efficios.com>
4935
4936 * gdbtypes.h (struct type) <fields, set_fields>: New methods.
4937 (TYPE_FIELDS): Use type::fields. Change all call sites that
4938 modify the propery to use type::set_fields instead.
4939
1f704f76
SM
49402020-05-22 Simon Marchi <simon.marchi@efficios.com>
4941
4942 * gdbtypes.h (TYPE_NFIELDS): Remove. Change all cal sites to use
4943 type::num_fields instead.
4944
5e33d5f4
SM
49452020-05-22 Simon Marchi <simon.marchi@efficios.com>
4946
4947 * gdbtypes.h (struct type) <num_fields, set_num_fields>: New
4948 methods.
4949 (TYPE_NFIELDS): Use type::num_fields. Change all call sites
4950 that modify the number of fields to use type::set_num_fields
4951 instead.
4952
9392ebb3
TT
49532020-05-22 Tom Tromey <tromey@adacore.com>
4954
4955 * compile/compile-object-load.h (munmap_list_free): Don't
4956 declare.
4957
7c13f4e8
AB
49582020-05-22 Andrew Burgess <andrew.burgess@embecosm.com>
4959
4960 * annotate.c (annotate_source_line): Update return type, add call
4961 to update current symtab and line.
4962 * annotate.h (annotate_source_line): Update return type, and
4963 extend header comment.
4964 * source.c (info_line_command): Check annotation_level before
4965 calling annotate_source_line.
4966 * stack.c (print_frame_info): If calling annotate_source_line
4967 returns true, then don't print any other source line information.
4968
aa370940
SM
49692020-05-21 Simon Marchi <simon.marchi@efficios.com>
4970
4971 * lm32-tdep.c (lm32_register_reggroup_p): Fix condition.
4972
84d53fa9
SM
49732020-05-21 Simon Marchi <simon.marchi@efficios.com>
4974
4975 * coffread.c (patch_type): Remove NULL check before xfree.
4976 * corefile.c (set_gnutarget): Likewise.
4977 * cp-abi.c (set_cp_abi_as_auto_default): Likewise.
4978 * exec.c (build_section_table): Likewise.
4979 * remote.c (remote_target::pass_signals): Likewise.
4980 * utils.c (n_spaces): Likewise.
4981 * cli/cli-script.c (document_command): Likewise.
4982 * i386-windows-tdep.c (core_process_module_section): Likewise.
4983 * linux-fork.c (struct fork_info) <~fork_info>: Likewise.
4984
9d428aae
SM
49852020-05-20 Simon Marchi <simon.marchi@efficios.com>
4986
4987 * symfile.c (reread_symbols): Clear objfile's section_offsets
4988 vector and section indices, re-compute them by calling
4989 sym_offsets.
4990
250106a7
TT
49912020-05-20 Tom Tromey <tromey@adacore.com>
4992
4993 * ada-lang.c (bound_name, MAX_ADA_DIMENS): Remove.
ec16513e 4994 (desc_one_bound, desc_index_type): Compute field name.
250106a7 4995
9a0bacfb
TV
49962020-05-20 Tom de Vries <tdevries@suse.de>
4997
4998 PR symtab/25833
4999 * dwarf2/read.c (dw2_map_matching_symbols): Handle .gdb_index.
5000
7b958a48
AM
50012020-05-20 Alan Modra <amodra@gmail.com>
5002
5003 PR 25993
5004 * solib-darwin.c (darwin_bfd_open): Don't strdup pathname for
5005 bfd_set_filename.
5006 * solib-aix.c (solib_aix_bfd_open): Use std::string for name
5007 passed to bfd_set_filename.
5008 * symfile-mem.c (add_vsyscall_page): Likewise for string
5009 passed to symbol_file_add_from_memory.
5010 (symbol_file_add_from_memory): Make name param a const char* and
5011 don't strdup.
5012
c7e97679
AM
50132020-05-20 Alan Modra <amodra@gmail.com>
5014
5015 * coff-pe-read.c (read_pe_exported_syms): Use bfd_get_filename
5016 rather than accessing bfd->filename directly.
5017 * dtrace-probe.c (dtrace_static_probe_ops::get_probes): Likewise,
5018 and use bfd_section_name.
5019 * dwarf2/frame.c (decode_frame_entry): Likewise.
5020 * exec.c (exec_set_section_address): Likewise.
5021 * solib-aix.c (solib_aix_bfd_open): Likewise.
5022 * stap-probe.c (get_stap_base_address): Likewise.
5023 * symfile.c (reread_symbols): Likewise.
5024
563c591b
TT
50252020-05-19 Tom Tromey <tromey@adacore.com>
5026
5027 * sparc64-tdep.c (adi_tag_fd): Update call to target_fileio_open.
5028
f408d82c
SM
50292020-05-19 Simon Marchi <simon.marchi@efficios.com>
5030
5031 * dwarf2/read.c (quirk_rust_enum): Allocate enough fields.
5032
98c59b52
PA
50332020-05-19 Pedro Alves <palves@redhat.com>
5034
5035 * NEWS (set exec-file-mismatch): Adjust entry.
5036 * exec.c: Include "build-id.h".
5037 (validate_exec_file): Try to match build IDs instead of filenames.
5038 * gdb_bfd.c (struct gdb_bfd_open_closure): New.
5039 (gdb_bfd_iovec_fileio_open): Adjust to use gdb_bfd_open_closure
5040 and pass down 'warn_if_slow'.
5041 (gdb_bfd_open): Add 'warn_if_slow' parameter. Use
5042 gdb_bfd_open_closure to pass it down.
5043 * gdb_bfd.h (gdb_bfd_open): Add 'warn_if_slow' parameter.
5044
4111f652
PA
50452020-05-19 Pedro Alves <palves@redhat.com>
5046
5047 * gdb_bfd.c (gdb_bfd_iovec_fileio_open): Adjust.
5048 * target.c (target_fileio_open_1): Rename to target_fileio_open
5049 and make extern. Use bool.
5050 (target_fileio_open, target_fileio_open_warn_if_slow): Delete.
5051 (target_fileio_read_alloc_1): Adjust.
5052 * target.h (target_fileio_open): Add 'warn_if_slow' parameter.
5053 (target_fileio_open_warn_if_slow): Delete declaration.
5054
ad80db5b
PA
50552020-05-19 Pedro Alves <palves@redhat.com>
5056
5057 * gdb_bfd.h: (gdb_bfd_open): Default to 'fd' parameter to -1.
5058 Adjust all callers.
5059
1d6ce4d3
YS
50602020-05-19 Yoshinori Sato <ysato@users.sourceforge.jp>
5061
5062 * h8300-tdep.c (h8300_is_argument_spill): Change how we check
5063 whether disp is negative.
5064
9005fbbb
SM
50652020-05-19 Simon Marchi <simon.marchi@efficios.com>
5066
5067 * symfile.h (struct symfile_segment_data)
5068 <~symfile_segment_data>: Remove.
5069 <segment_info>: Change to std::vector.
5070 * symfile.c (default_symfile_segments): Update.
5071 * elfread.c (elf_symfile_segments): Update.
5072
68b888ff
SM
50732020-05-19 Simon Marchi <simon.marchi@efficios.com>
5074
5075 * symfile.h (struct symfile_segment_data) <struct segment>: New.
5076 <segments>: New.
5077 <segment_bases, segment_sizes>: Remove.
5078 * symfile.c (default_symfile_segments): Update.
5079 * elfread.c (elf_symfile_segments): Update.
5080 * remote.c (remote_target::get_offsets): Update.
5081 * solib-target.c (solib_target_relocate_section_addresses):
5082 Update.
5083
62982abd
SM
50842020-05-19 Simon Marchi <simon.marchi@efficios.com>
5085
5086 * symfile.h (struct symfile_segment_data): Initialize fields.
5087 <~symfile_segment_data>: Add.
5088 (symfile_segment_data_up): New.
5089 (struct sym_fns) <sym_segments>: Return a
5090 symfile_segment_data_up.
5091 (default_symfile_segments): Return a symfile_segment_data_up.
5092 (free_symfile_segment_data): Remove.
5093 (get_symfile_segment_data): Return a symfile_segment_data_up.
5094 * symfile.c (default_symfile_segments): Likewise.
5095 (get_symfile_segment_data): Likewise.
5096 (free_symfile_segment_data): Remove.
5097 (symfile_find_segment_sections): Update.
5098 * elfread.c (elf_symfile_segments): Return a
5099 symfile_segment_data_up.
5100 * remote.c (remote_target::get_offsets): Update.
5101 * solib-target.c (solib_target_relocate_section_addresses):
5102 Update.
5103 * symfile-debug.c (debug_sym_segments): Return a
5104 symfile_segment_data_up.
5105
7f204339
RO
51062020-05-18 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5107
e52a0f1b
RO
5108 PR build/25981
5109 * i386-sol2-nat.c [PR_MODEL_NATIVE != PR_MODEL_LP64] (regmap):
5110 Hardcode register numbers.
5111
7f204339
RO
5112 PR build/25981
5113 * procfs.c [(__i386__ || __x86_64__) && sun] (proc_get_LDT_entry,
5114 procfs_find_LDT_entry): Remove.
5115 * procfs.h [(__i386__ || __x86_64__) && sun] (struct ssd,
5116 procfs_find_LDT_entry): Remove.
5117 * sol-thread.c [(__i386__ || __x86_64__) && sun] (ps_lgetLDT):
5118 Remove.
5119
7f32a4d5
PA
51202020-05-17 Pedro Alves <palves@redhat.com>
5121 Andrew Burgess <andrew.burgess@embecosm.com>
5122 Keno Fischer <keno@juliacomputing.com>
5123
5124 PR gdb/25741
5125 * breakpoint.c (build_target_condition_list): Update comments.
5126 (build_target_command_list): Update comments and skip matching
5127 locations.
5128 (insert_bp_location): Move "set breakpoint auto-hw on" handling to
5129 a separate function. Simplify "set breakpoint auto-hw off"
5130 handling.
5131 (insert_breakpoints): Update comment.
5132 (tracepoint_locations_match): New parameter. For breakpoints,
5133 compare location types too, if the caller wants to.
5134 (handle_automatic_hardware_breakpoints): New functions.
5135 (bp_location_is_less_than): Also sort by location type and
5136 hardware breakpoint length.
5137 (update_global_location_list): Handle "set breakpoint auto-hw on"
5138 here.
5139 (update_breakpoint_locations): Ask breakpoint_locations_match to
5140 ignore location types.
5141
7d93a1e0
SM
51422020-05-16 Simon Marchi <simon.marchi@efficios.com>
5143
5144 * gdbtypes.h (TYPE_NAME): Remove. Change all cal sites to use
5145 type::name instead.
5146
d0e39ea2
SM
51472020-05-16 Simon Marchi <simon.marchi@efficios.com>
5148
5149 * gdbtypes.h (struct type) <name, set_name>: New methods.
5150 (TYPE_CODE): Use type::name. Change all call sites used to set
5151 the name to use type::set_name instead.
5152
2dab0c7b
TT
51532020-05-16 Tom Tromey <tom@tromey.com>
5154
5155 * top.c (quit_force): Update.
5156 * infrun.c (handle_no_resumed): Update.
5157 * top.h (all_uis): New function.
5158 (ALL_UIS): Remove.
5159
59f7bd8d
SM
51602020-05-16 Simon Marchi <simon.marchi@efficios.com>
5161
5162 * mips-linux-tdep.c (mips_linux_in_dynsym_stub): Fix condition.
5163
9bf058f0
PA
51642020-05-16 Pedro Alves <palves@redhat.com>
5165
5166 * ia64-linux-nat.c
5167 (ia64_linux_nat_target) <enable_watchpoints_in_psr(ptid_t)>:
5168 Declare method.
5169 (enable_watchpoints_in_psr): Now a method of ia64_linux_nat_target.
5170
8f86ae1a
SM
51712020-05-15 Simon Marchi <simon.marchi@efficios.com>
5172
5173 * sparc64-tdep.c (adi_stat_t): Remove typedef (leaving struct).
5174 (sparc64_adi_info): Likewise.
5175
d6bc0792
TT
51762020-05-15 Tom Tromey <tom@tromey.com>
5177
5178 * symtab.c (lookup_language_this, lookup_symbol_aux): Use
5179 block_objfile.
5180 (lookup_objfile_from_block): Remove.
5181 (lookup_symbol_in_block, lookup_symbol_in_static_block)
5182 (lookup_global_symbol): Use block_objfile.
5183 * symtab.h (lookup_objfile_from_block): Don't declare.
5184 * printcmd.c (clear_dangling_display_expressions): Use
5185 block_objfile.
5186 * parse.c (operator_check_standard): Use block_objfile.
5187
8c14c3a3
TT
51882020-05-15 Tom Tromey <tom@tromey.com>
5189
5190 * language.c (language_alloc_type_symbol): Set
5191 SYMBOL_SECTION.
5192 * symtab.c (initialize_objfile_symbol): Remove.
5193 (allocate_symbol): Remove.
5194 (allocate_template_symbol): Remove.
5195 * dwarf2/read.c (fixup_go_packaging): Use "new".
5196 (new_symbol): Use "new".
5197 (read_variable): Don't call initialize_objfile_symbol. Use
5198 "new".
5199 (read_func_scope): Use "new".
5200 * xcoffread.c (process_xcoff_symbol): Don't call
5201 initialize_objfile_symbol.
5202 (SYMBOL_DUP): Remove.
5203 * coffread.c (process_coff_symbol, coff_read_enum_type): Use
5204 "new".
5205 * symtab.h (allocate_symbol, initialize_objfile_symbol)
5206 (allocate_template_symbol): Don't declare.
5207 (struct symbol): Add copy constructor. Change defaults.
5208 * jit.c (finalize_symtab): Use "new".
5209 * ctfread.c (ctf_add_enum_member_cb, new_symbol, ctf_add_var_cb):
5210 Use "new".
5211 * stabsread.c (patch_block_stabs, define_symbol, read_enum_type)
5212 (common_block_end): Use "new".
5213 * mdebugread.c (parse_symbol): Use "new".
5214 (new_symbol): Likewise.
5215
5b4a1a8d
PW
52162020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5217
5218 * NEWS: Mention changes to help and apropos.
5219
57b4f16e
PW
52202020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5221
5222 * command.h (enum command_class): Improve comments, document
5223 that class_alias is for user-defined aliases, give the class
5224 name for each class, remove unused class_xdb.
5225 * cli/cli-decode.c (add_com_alias): Document THECLASS intended usage.
5226 * breakpoint.c (_initialize_breakpoint): Replace class_alias
5227 by a precise class.
5228 * infcmd.c (_initialize_infcmd): Likewise.
5229 * reverse.c (_initialize_reverse): Likewise.
5230 * stack.c (_initialize_stack): Likewise.
5231 * symfile.c (_initialize_symfile): Likewise.
5232 * tracepoint.c (_initialize_tracepoint): Likewise.
5233
7c05caf7
PW
52342020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5235
5236 * cli/cli-decode.c (apropos_cmd): Produce output for aliases
5237 when their aliased command is traversed.
5238 (help_cmd): Add fput_command_names_styled call to
5239 output command name and aliases when command has an alias.
5240
3b3aaacb
PW
52412020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5242
5243 * cli/cli-decode.h (help_cmd_list): Remove declaration.
5244 * cli/cli-decode.c (help_cmd_list): Declare as static,
5245 remove prefix argument, use bool for recurse arg, rework to show the aliases of
5246 a command together with the command.
5247 (fput_command_name_styled, fput_command_names_styled): New functions.
5248 (print_help_for_command): Remove prefix arg, use bool for recurse arg, use
5249 fput_command_name_styled.
5250 (help_list, help_all): Update callers to remove prefix arg and use bool recurse.
5251 * cli/cli-cmds.c (_initialize_cli_cmds): Update alias_command doc.
5252
7aa1b46f
PW
52532020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5254
5255 * cli/cli-setshow.h (cmd_show_list): Remove prefix argument.
5256 * cli/cli-decode.c (do_show_prefix_cmd): Likewise.
5257 * command.h (cmd_show_list): Likewise.
5258 * dwarf2/index-cache.c (show_index_cache_command): Likewise.
5259 * cli/cli-setshow.c (cmd_show_list): Use the prefix to produce the output. Skip aliases.
5260
89bcba74
PW
52612020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5262
5263 * unittests/command-def-selftests.c (traverse_command_structure):
5264 Verify all commands of a list have the same prefix command and
5265 that only the top cmdlist commands have a null prefix.
5266
3f4d92eb
PW
52672020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5268
5269 * cli/cli-decode.c (lookup_cmd_for_prefix): Return the aliased command
5270 as prefix, not one of its aliases.
5271 (set_cmd_prefix): Remove.
5272 (do_add_cmd): Centralize the setting of the prefix of a command, when
5273 command is defined after its full chain of prefix commands.
5274 (add_alias_cmd): Remove call to set_cmd_prefix, as do_add_cmd does it.
5275 (add_setshow_cmd_full): Likewise.
5276 (update_prefix_field_of_prefixed_commands): New function.
5277 (add_prefix_cmd): Replace non working call to set_cmd_prefix by
5278 update_prefix_field_of_prefixed_commands.
5279 * gdb/remote-fileio.c (initialize_remote_fileio): Use the real
5280 addresses of remote_set_cmdlist and remote_show_cmdlist given
5281 as argument, not the address of an argument.
5282 * gdb/remote-fileio.h (initialize_remote_fileio): Likewise.
5283 * gdb/remote.c (_initialize_remote): Likewise.
5284
0605465f
PW
52852020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5286
5287 * cli/cli-cmds.c (alias_command): Check for an existing alias
5288 using lookup_cmd_composition, as valid_command_p is too strict
5289 and forbids aliases that are the prefix of an existing alias
5290 or command.
5291 * cli/cli-decode.c (lookup_cmd_composition): Ensure a prefix
5292 command is properly recognised as a valid command.
5293
58e6ac70
PW
52942020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5295
5296 * unittests/help-doc-selftests.c: Rename to
5297 unittests/command-def-selftests.c
5298 * unittests/command-def-selftests.c (help_doc_tests): Update some
5299 comments.
5300 (command_structure_tests, traverse_command_structure): New namespace
5301 and function.
5302 (command_structure_invariants_tests): New function.
5303 (_initialize_command_def_selftests) Renamed from
5304 _initialize_help_doc_selftests, register command_structure_invariants
5305 selftest.
5306
a7b9ceb8
PW
53072020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5308
5309 * cli/cli-cmds.c (_initialize_cli_cmds): Define 'info set' as
5310 an alias of 'show'.
5311
b2188a06
JB
53122020-05-15 Joel Brobecker <brobecker@adacore.com>
5313
5314 * ada-lang.h: (ada_is_gnat_encoded_fixed_point_type): Renames
5315 ada_is_fixed_point_type. Update all callers.
5316 (gnat_encoded_fixed_point_delta): Renames ada_delta. Update
5317 all callers.
5318 * ada-lang.c (gnat_encoded_fixed_type_info): Renames fixed_type_info.
5319 Update all callers.
5320 * ada-typeprint.c (print_gnat_encoded_fixed_point_type): Renames
5321 print_fixed_point_type. Update all callers.
5322 * ada-valprint.c (ada_value_print_num): Replace call to
5323 ada_is_fixed_point_type by ada_is_gnat_encoded_fixed_point_type.
5324
a51951c2
KB
53252020-05-14 Kevin Buettner <kevinb@redhat.com>
5326
5327 * nat/linux-btrace.c (btrace_this_cpu): Add check for AMD
5328 processors.
5329 (cpu_supports_bts): Add CV_AMD case.
5330
29d6859f
LM
53312020-05-14 Laurent Morichetti <Laurent.Morichetti@amd.com>
5332 Simon Marchi <simon.marchi@efficios.com>
5333
5334 * infrun.c (stop_all_threads): Collect multiple wait events at
5335 each pass.
5336
78134374
SM
53372020-05-14 Simon Marchi <simon.marchi@efficios.com>
5338
5339 * gdbtypes.h (TYPE_CODE): Remove. Change all call sites to use
5340 type::code instead.
5341
67607e24
SM
53422020-05-14 Simon Marchi <simon.marchi@efficios.com>
5343
5344 * gdbtypes.h (struct type) <code, set_code>: New methods.
5345 (TYPE_CODE): Use type::code. Change all call sites used to set
5346 the code to use type::set_code instead.
5347
a05575d3
TBA
53482020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
5349 Tom de Vries <tdevries@suse.de>
5350 Pedro Alves <palves@redhat.com>
5351
5352 PR threads/25478
5353 * infrun.c (stop_all_threads): Do NOT ignore
5354 TARGET_WAITKIND_NO_RESUMED, TARGET_WAITKIND_THREAD_EXITED,
5355 TARGET_WAITKIND_EXITED, TARGET_WAITKIND_SIGNALLED wait statuses
5356 received.
5357 (handle_no_resumed): Remove code handling a live inferior with no
5358 threads.
5359 * remote.c (has_single_non_exited_thread): New.
5360 (remote_target::update_thread_list): Do not delete a thread if is
5361 the last thread of the process.
5362 * thread.c (thread_select): Call delete_exited_threads instead of
5363 prune_threads.
5364
6ad82919
TBA
53652020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
5366
5367 * infrun.c (stop_all_threads): Enable/disable thread events of all
5368 targets. Move a debug message denoting the end of the function
5369 into the SCOPED_EXIT block.
5370
d890404b
TBA
53712020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
5372
5373 * process-stratum-target.h: Include <set>.
5374 (all_non_exited_process_targets, switch_to_target_no_thread): New
5375 function declarations.
5376 * process-stratum-target.c (all_non_exited_process_targets)
5377 (switch_to_target_no_thread): New function implementations.
5378
293b3ebc
TBA
53792020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
5380
5381 * infrun.c (handle_inferior_event): Extract out a piece of code
5382 into...
5383 (mark_non_executing_threads): ...this new function.
5384
7ca9b62a
TBA
53852020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
5386
5387 * infrun.c (resume_1): Move a 'regcache_read_pc' call down to first
5388 use.
5389
fc75c28b
TBA
53902020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
5391
5392 * regcache.c (regcache_read_pc_protected): New function
5393 implementation that returns 0 if the PC cannot read via
5394 'regcache_read_pc'.
5395 * infrun.c (proceed): Call 'regcache_read_pc_protected'
5396 instead of 'regcache_read_pc'.
5397 (keep_going_pass_signal): Ditto.
5398
a89febbd
TT
53992020-05-13 Tom Tromey <tromey@adacore.com>
5400
5401 * ada-lang.c (align_value): Remove.
5402 (ada_template_to_fixed_record_type_1): Use align_up.
5403
f7e23710
TBA
54042020-05-13 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
5405
5406 * async-event.c: Update the copyright year.
5407 * async-event.h: Update the copyright year.
5408
02ff80c2
SM
54092020-05-12 Simon Marchi <simon.marchi@efficios.com>
5410
5411 * objfiles.h (is_addr_in_objfile,
5412 shared_objfile_contains_address_p): Return bool.
5413 * objfile.c (is_addr_in_objfile,
5414 shared_objfile_contains_address_p): Return bool.
5415
4fd6c7e8
TT
54162020-05-11 Tom Tromey <tromey@adacore.com>
5417
5418 * cli/cli-cmds.c (info_command): Restore.
5419 (_initialize_cli_cmds): Use add_prefix_command for "info".
5420 * gdb-gdb.gdb.in: Restore breakpoint on info_command.
5421
5eb68a39
TT
54222020-05-11 Tom Tromey <tromey@adacore.com>
5423
5424 * ada-lang.c (ada_value_primitive_field): Now public.
5425 * ada-lang.h (ada_value_primitive_field): Declare.
5426 * ada-valprint.c (print_field_values): Use
5427 ada_value_primitive_field for wrapper fields.
5428
7666722f
TV
54292020-05-11 Tom de Vries <tdevries@suse.de>
5430
5431 * dwarf2/index-write.c (debug_names::psymbol_tag): Handle
5432 MODULE_DOMAIN.
5433
3ee6bb11
TV
54342020-05-11 Tom de Vries <tdevries@suse.de>
5435
5436 PR symtab/25941
5437 * dwarf2/read.c (create_cus_from_debug_names_list): Initialize CUs
5438 with length 0, if not gdb-produced.
5439 (cutu_reader::cutu_reader): Set CU length to actual length if 0.
5440
43434996
TV
54412020-05-09 Tom de Vries <tdevries@suse.de>
5442
5443 PR gdb/25955
5444 * break-catch-throw.c (check_status_exception_catchpoint): Fix name
5445 calculation.
5446
2f78cffc
TT
54472020-05-09 Tom Tromey <tom@tromey.com>
5448
5449 * top.c (server_command): Now bool.
5450 * top.h (server_command): Now bool.
5451
4f7bc5ed
TT
54522020-05-08 Tom Tromey <tromey@adacore.com>
5453
5454 * dwarf2/read.c (read_lexical_block_scope): Don't process a DIE
5455 already being processed.
5456
8be4b118
TT
54572020-05-08 Tom Tromey <tom@tromey.com>
5458
5459 * printcmd.c (struct display) <next>: Remove.
5460 <display>: New constructor.
5461 <exp_string>: Now a std::string.
5462 <enabled_p>: Now a bool.
5463 (display_number): Move definition earlier.
5464 (displays): Rename from display_chain. Now a std::vector.
5465 (ALL_DISPLAYS, ALL_DISPLAYS_SAFE): Remove.
5466 (display_command): Update.
5467 (do_one_display, disable_display)
5468 (enable_disable_display_command, do_enable_disable_display):
5469 Update.
5470 (free_display): Remove.
5471 (clear_displays): Rewrite.
5472 (delete_display): Update.
5473 (map_display_numbers): Use function_view. Remove "data"
5474 parameter. Update.
5475 (do_delete_display): Remove.
5476 (undisplay_command): Update.
5477 (do_one_display, do_displays, disable_display)
5478 (info_display_command): Update.
5479 (do_enable_disable_display): Remove.
5480 (enable_disable_display_command)
5481 (clear_dangling_display_expressions): Update.
5482
94c93c35
TT
54832020-05-08 Tom Tromey <tom@tromey.com>
5484
5485 * symtab.c (set_symbol_cache_size)
5486 (maintenance_print_symbol_cache, maintenance_flush_symbol_cache)
5487 (maintenance_print_symbol_cache_statistics): Update.
5488 * symmisc.c (print_symbol_bcache_statistics)
5489 (print_objfile_statistics, maintenance_print_objfiles)
5490 (maintenance_info_symtabs, maintenance_check_symtabs)
5491 (maintenance_expand_symtabs, maintenance_info_line_tables):
5492 Update.
5493 * symfile-debug.c (set_debug_symfile): Update.
5494 * source.c (forget_cached_source_info): Update.
5495 * python/python.c (gdbpy_progspaces): Update.
5496 * psymtab.c (maintenance_info_psymtabs): Update.
5497 * probe.c (parse_probes): Update.
5498 * linespec.c (iterate_over_all_matching_symtabs)
5499 (collect_symtabs_from_filename, search_minsyms_for_name): Update.
5500 * guile/scm-progspace.c (gdbscm_progspaces): Update.
5501 * exec.c (exec_target::close): Update.
5502 * ada-tasks.c (ada_tasks_new_objfile_observer): Update.
5503 * breakpoint.c (print_one_breakpoint_location)
5504 (create_longjmp_master_breakpoint)
5505 (create_std_terminate_master_breakpoint): Update.
5506 * progspace.c (program_spaces): Now a std::vector.
5507 (maybe_new_address_space): Update.
5508 (add_program_space): Remove.
5509 (program_space::program_space): Update.
5510 (remove_program_space): Update.
5511 (number_of_program_spaces): Remove.
5512 (print_program_space, update_address_spaces): Update.
5513 * progspace.h (program_spaces): Change type.
5514 (ALL_PSPACES): Remove.
5515 (number_of_program_spaces): Don't declare.
5516 (struct program_space) <next>: Remove.
5517
a1fd1ac9
TT
55182020-05-08 Tom Tromey <tom@tromey.com>
5519
5520 * mi/mi-cmd-file.c (mi_cmd_file_list_shared_libraries): Update.
5521 * solib-svr4.c (svr4_fetch_objfile_link_map): Update.
5522 (enable_break): Update.
5523 * solib-frv.c (frv_fdpic_find_global_pointer): Update.
5524 (frv_fdpic_find_canonical_descriptor): Update.
5525 (frv_fetch_objfile_link_map): Update.
5526 * progspace.c (program_space::free_all_objfiles): Update.
5527 (program_space::solibs): New method.
5528 * progspace.h (struct program_space) <solibs>: New method.
5529 * solist.h (master_so_list): Don't declare.
5530 (ALL_SO_LIBS): Remove.
5531 * solib.h (so_list_head): Remove.
5532 (update_solib_list): Update comment.
5533 * solib.c (master_so_list): Remove.
5534 (solib_used, update_solib_list, solib_add)
5535 (info_sharedlibrary_command, clear_solib)
5536 (reload_shared_libraries_1, remove_user_added_objfile): Update.
5537
38eae084
TT
55382020-05-08 Tom Tromey <tom@tromey.com>
5539
5540 * extension.c (extension_languages): Now a std::array.
5541 (ALL_EXTENSION_LANGUAGES): Remove.
5542 (get_ext_lang_defn, get_ext_lang_of_file)
5543 (eval_ext_lang_from_control_command): Update.
5544 (finish_ext_lang_initialization)
5545 (auto_load_ext_lang_scripts_for_objfile)
5546 (ext_lang_type_printers::ext_lang_type_printers)
5547 (apply_ext_lang_type_printers)
5548 (ext_lang_type_printers::~ext_lang_type_printers)
5549 (apply_ext_lang_val_pretty_printer, apply_ext_lang_frame_filter)
5550 (preserve_ext_lang_values, get_breakpoint_cond_ext_lang)
5551 (breakpoint_ext_lang_cond_says_stop, check_quit_flag)
5552 (get_matching_xmethod_workers, ext_lang_colorize)
5553 (ext_lang_before_prompt): Update.
5554 (ALL_ENABLED_EXTENSION_LANGUAGES): Remove.
5555
596dc4ad
TT
55562020-05-08 Tom Tromey <tom@tromey.com>
5557
5558 * symtab.h (class demangle_result_storage) <set_malloc_ptr>: New
5559 overload.
5560 <swap_string, m_string>: Remove.
5561 * symtab.c (demangle_for_lookup, completion_list_add_symbol):
5562 Update.
5563 * stabsread.c (define_symbol, read_type): Update.
5564 * linespec.c (find_linespec_symbols): Update.
5565 * gnu-v3-abi.c (gnuv3_get_typeid): Update.
5566 * dwarf2/read.c (dwarf2_canonicalize_name): Update.
5567 * dbxread.c (read_dbx_symtab): Update.
5568 * cp-support.h (cp_canonicalize_string_full)
5569 (cp_canonicalize_string, cp_canonicalize_string_no_typedefs):
5570 Return unique_xmalloc_ptr.
5571 * cp-support.c (inspect_type): Update.
5572 (cp_canonicalize_string_full): Return unique_xmalloc_ptr.
5573 (cp_canonicalize_string_no_typedefs, cp_canonicalize_string):
5574 Likewise.
5575 * c-typeprint.c (print_name_maybe_canonical): Update.
5576 * break-catch-throw.c (check_status_exception_catchpoint):
5577 Update.
5578
bf4cb9be
TV
55792020-05-08 Tom de Vries <tdevries@suse.de>
5580
5581 * infrun.c (follow_fork): Copy current_line and current_symtab to
5582 child thread.
5583
a1b68f28
SM
55842020-05-07 Simon Marchi <simon.marchi@efficios.com>
5585
5586 * async-event.c (struct async_signal_handler, struct
5587 async_event_handler): Reformat, remove typedef.
5588
98d48915
SM
55892020-05-07 Simon Marchi <simon.marchi@efficios.com>
5590
5591 * gdbtypes.h (TYPE_DYN_PROP_LIST): Remove. Update all users
5592 access thistype->main_type->dyn_prop_list directly.
5593
7aa91313
SM
55942020-05-07 Simon Marchi <simon.marchi@efficios.com>
5595
5596 * gdbtypes.h (struct type) <remove_dyn_prop>: New method.
5597 (remove_dyn_prop): Remove. Update all users to use
5598 type::remove_dyn_prop.
5599 * gdbtypes.c (remove_dyn_prop): Rename to...
5600 (type::remove_dyn_prop): ... this.
5601
5c54719c
SM
56022020-05-07 Simon Marchi via Gdb-patches <gdb-patches@sourceware.org>
5603
5604 * gdbtypes.h (struct type) <add_dyn_prop>: New method.
5605 (add_dyn_prop): Remove. Update all users to use
5606 type::add_dyn_prop.
5607 * gdbtypes.c (add_dyn_prop): Rename to...
5608 (type::add_dyn_prop): ... this.
5609
24e99c6c
SM
56102020-05-07 Simon Marchi <simon.marchi@efficios.com>
5611
5612 * gdbtypes.h (struct type) <get_dyn_prop>: New method.
5613 (get_dyn_prop): Remove. Update all users to use
5614 type::dyn_prop.
5615 * gdbtypes.c (get_dyn_prop): Rename to...
5616 (type::dyn_prop): ... this.
5617
0d4bf016
SM
56182020-05-06 Simon Marchi <simon.marchi@efficios.com>
5619
5620 * gdbtypes.h (struct main_type) <flag_static>: Remove.
5621
ac4a4f1c
SM
56222020-05-06 Simon Marchi <simon.marchi@efficios.com>
5623
5624 * amd64-tdep.c (amd64_analyze_prologue): Check for `endbr64`
5625 instruction, skip it if it's there.
5626
a3bbacc1
SM
56272020-05-05 Simon Marchi <simon.marchi@efficios.com>
5628
5629 * gdbtypes.h (struct main_type) <flag_incomplete>: Remove.
5630
c3236f84
SM
56312020-05-04 Simon Marchi <simon.marchi@efficios.com>
5632
5633 * gdbtypes.h (TYPE_INCOMPLETE): Remove.
5634 * gdbtypes.c (recursive_dump_type): Remove use of
5635 TYPE_INCOMPLETE.
5636
3b6acaee
TT
56372020-05-03 Tom Tromey <tom@tromey.com>
5638
5639 * breakpoint.c (catch_command, tcatch_command): Remove.
5640 (_initialize_breakpoint): Use add_basic_prefix_cmd,
5641 add_show_prefix_cmd.
5642 (set_breakpoint_cmd, show_breakpoint_cmd): Remove
5643 * utils.c (set_internal_problem_cmd, show_internal_problem_cmd):
5644 Remove.
5645 (add_internal_problem_command): Use add_basic_prefix_cmd,
5646 add_show_prefix_cmd.
5647 * mips-tdep.c (set_mipsfpu_command): Remove.
5648 (_initialize_mips_tdep): Use add_basic_prefix_cmd.
5649 * dwarf2/index-cache.c (set_index_cache_command): Remove.
5650 (_initialize_index_cache): Use add_basic_prefix_cmd.
5651 * memattr.c (dummy_cmd): Remove.
5652 (_initialize_mem): Use add_basic_prefix_cmd, add_show_prefix_cmd.
5653 * tui/tui-win.c (set_tui_cmd, show_tui_cmd): Remove.
5654 (_initialize_tui_win): Use add_basic_prefix_cmd,
5655 add_show_prefix_cmd.
5656 * cli/cli-logging.c (set_logging_command): Remove.
5657 (_initialize_cli_logging): Use add_basic_prefix_cmd,
5658 add_show_prefix_cmd.
5659 (show_logging_command): Remove.
5660 * target.c (target_command): Remove.
5661 (add_target): Use add_basic_prefix_cmd.
5662
a51119cd
HD
56632020-05-02 Hannes Domani <ssbssa@yahoo.de>
5664
5665 * gdbtypes.h (enum dynamic_prop_node_kind): Fix typo.
5666
652fc23a 56672020-05-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6a6ea76a 5668
652fc23a
PW
5669 * gdb-gdb.gdb-in: Remove breakpoint on disappeared function
5670 info_command.
5671
117539e6
KR
56722020-04-30 Kamil Rytarowski <n54@gmx.com>
5673
5674 * nbsd-nat.c (nbsd_enable_proc_events)
5675 (nbsd_nat_target::post_startup_inferior): Add.
5676 (nbsd_nat_target::post_attach): Call `nbsd_enable_proc_events'.
5677 (nbsd_nat_target::update_thread_list): Rewrite.
5678 (nbsd_nat_target::wait): Handle "PTRACE_LWP_EXIT" and
5679 "PTRACE_LWP_CREATE".
5680 * nbsd-nat.h (nbsd_nat_target::post_startup_inferior): Add.
5681
102e38eb 56822020-04-30 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6a6ea76a 5683
102e38eb
PW
5684 * stack.c (_initialize_stack): Remove duplicated creation
5685 of "frame" command and "f" alias.
5686
ee9d1e5f
HD
56872020-04-30 Hannes Domani <ssbssa@yahoo.de>
5688
5689 PR gdb/18706
5690 * gdbtypes.c (check_typedef): Calculate size of array of
5691 stubbed type.
5692
627c7fb8
HD
56932020-04-30 Hannes Domani <ssbssa@yahoo.de>
5694
5695 PR gdb/15559
5696 * i386-tdep.c (i386_push_dummy_call): Call
5697 i386_thiscall_push_dummy_call.
5698 (i386_thiscall_push_dummy_call): New function.
5699 * i386-tdep.h (i386_thiscall_push_dummy_call): Declare.
5700 * i386-windows-tdep.c (i386_windows_push_dummy_call): New function.
5701 (i386_windows_init_abi): Call set_gdbarch_push_dummy_call.
5702
ffc2844e
SM
57032020-04-29 Simon Marchi <simon.marchi@efficios.com>
5704
5705 * gdbarch.sh (do_read): Add shellcheck disable directive for
5706 warning SC2162.
5707
1207375d
SM
57082020-04-29 Simon Marchi <simon.marchi@efficios.com>
5709
5710 * gdbarch.sh: Use ${foo:-} where shellcheck would report a
5711 "referenced but not assigned" warning.
5712
9fdb2916
SM
57132020-04-29 Simon Marchi <simon.marchi@efficios.com>
5714
5715 * gdbarch.sh: Remove code that sets fallbackdefault.
5716
759cea5e
SM
57172020-04-29 Simon Marchi <simon.marchi@efficios.com>
5718
5719 * gdbarch.sh: Use shell operators && and || instead of
5720 -a and -o.
5721
cb02ab24
SM
57222020-04-29 Simon Marchi <simon.marchi@efficios.com>
5723
5724 * gdbarch.sh: Use $(...) instead of `...`.
5725
a6fc5ffc
SM
57262020-04-29 Simon Marchi <simon.marchi@efficios.com>
5727
5728 * gdbarch.sh: Use double quotes around variables.
5729
8d113d13
SM
57302020-04-29 Simon Marchi <simon.marchi@efficios.com>
5731
5732 * gdbarch.sh: Use %s with printf, instead of variables in the
5733 format string.
5734
ed6acedd
TT
57352020-04-29 Tom Tromey <tromey@adacore.com>
5736
5737 PR ada/25875:
5738 * dwarf2/read.c (update_enumeration_type_from_children): Compute
5739 type fields here.
5740 (read_enumeration_type): Call
5741 update_enumeration_type_from_children later. Update comments.
5742 (process_enumeration_scope): Don't create type fields.
5743
b68b1b58
KR
57442020-04-29 Kamil Rytarowski <n54@gmx.com>
5745
5746 * nbsd-tdep.c: Include "xml-syscall.h".
5747 (nbsd_init_abi): Call `set_xml_syscall_file_name'.
5748
f94b2e03
KR
57492020-04-29 Kamil Rytarowski <n54@gmx.com>
5750
5751 * nbsd-nat.c: Include "sys/wait.h".
5752 (nbsd_resume, nbsd_nat_target::resume, nbsd_wait)
5753 (nbsd_nat_target::wait, nbsd_nat_target::insert_exec_catchpoint)
5754 (nbsd_nat_target::remove_exec_catchpoint)
5755 (nbsd_nat_target::set_syscall_catchpoint): Add.
5756 * nbsd-nat.h (nbsd_nat_target::resume, nbsd_nat_target::wait)
5757 (nbsd_nat_target::insert_exec_catchpoint)
5758 (nbsd_nat_target::remove_exec_catchpoint)
5759 (nbsd_nat_target::set_syscall_catchpoint): Add.
5760 * nbsd-tdep.c (nbsd_get_syscall_number): Add.
5761 (nbsd_init_abi): Call `set_gdbarch_get_syscall_number' and pass
5762 `nbsd_get_syscall_number'.
5763
fc49bc72
TT
57642020-04-29 Tom Tromey <tom@tromey.com>
5765
5766 * stack.c (print_block_frame_labels): Remove.
5767
d642b692
HD
57682020-04-29 Hannes Domani <ssbssa@yahoo.de>
5769
5770 PR gdb/17320
5771 * ada-valprint.c (val_print_packed_array_elements): Move array
5772 end bracket to new line.
5773 (ada_val_print_string): Remove extra spaces before first array
5774 element.
5775 * c-valprint.c (c_value_print_array): Likewise.
5776 * m2-valprint.c (m2_print_array_contents): Likewise.
5777 (m2_value_print_inner): Likewise.
5778 * p-valprint.c (pascal_value_print_inner): Likewise.
5779 * valprint.c (generic_val_print_array): Likewise.
5780 (value_print_array_elements): Move first array element and array
5781 end bracket to new line.
5782
ea90f227
TV
57832020-04-29 Tom de Vries <tdevries@suse.de>
5784
5785 PR symtab/25889
5786 * linespec.c (find_method): Fix ix calculation.
5787
4498ef4f
KR
57882020-04-28 Kamil Rytarowski <n54@gmx.com>
5789
5790 * syscalls/update-netbsd.sh: New file.
5791 * syscalls/netbsd.xml: Regenerate.
5792 * data-directory/Makefile.in: Register `netbsd.xml' in
5793 `SYSCALLS_FILES'.
5794
a55e30b5
SM
57952020-04-28 Simon Marchi <simon.marchi@efficios.com>
5796
5797 * syscalls/update-freebsd.sh: Add double quotes.
5798
2b2fbab8
TT
57992020-04-28 Tom Tromey <tom@tromey.com>
5800
5801 * NEWS: Update.
5802 * python/py-cmd.c (gdbpy_initialize_commands): Add COMMAND_TUI.
5803 (cmdpy_init): Allow class_tui.
5804
a65189c9
TV
58052020-04-28 Mark Williams <mark@myosotissp.com>
5806
5807 PR gdb/24480
5808 * dwarf2read.c: Add missing assingments to list_in_scope when
5809 start_symtab was already called.
5810
1b95cdb7
SM
58112020-04-28 Simon Marchi <simon.marchi@efficios.com>
5812
5813 PR gdb/25881
5814 * dwarf2/read.c (offset_map_type): Use
5815 gdb:hash_enum<sect_offset> as hash function.
5816
15cd93d0
TV
58172020-04-28 Tom de Vries <tdevries@suse.de>
5818
5819 * dwarf2/read.c (process_structure_scope): Add symbol for struct decl
5820 with DW_AT_signature.
5821
1eb39914
SM
58222020-04-27 Simon Marchi <simon.marchi@efficios.com>
5823
5824 * configure.ac: Remove check for fs_base/gs_base in
5825 user_regs_struct.
5826 * configure: Re-generate.
5827 * config.in: Re-generate.
5828 * amd64-nat.c (amd64_native_gregset_reg_offset): Adjust.
5829 * amd64-linux-nat.c (amd64_linux_nat_target::fetch_registers,
5830 amd64_linux_nat_target::store_registers, ps_get_thread_area, ): Adjust.
5831
991a3e2e
LM
58322020-04-27 Luis Machado <luis.machado@linaro.org>
5833
5834 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first): Handle
5835 problematic inline frame unwinding situation.
5836 * frame.c (frame_id_computed_p): New function.
5837 * frame.h (frame_id_computed_p): New prototype.
5838
361ba0e8
TT
58392020-04-26 Tom Tromey <tom@tromey.com>
5840
5841 * command.h (enum command_class) <class_pseudo>: Remove.
5842
bc3609fd
PW
58432020-04-26 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5844
5845 * cli/cli-decode.c (lookup_cmd_composition): Fix comments
5846 and whitespace.
5847
b9771db7
KR
58482020-04-25 Kamil Rytarowski <n54@gmx.com>
5849
ec16513e
SM
5850 * inf-ptrace.c (inf_ptrace_target::wait): Remove
5851 `PT_GET_PROCESS_STATE' block.
b9771db7 5852
7151c1af
TT
58532020-04-24 Tom Tromey <tom@tromey.com>
5854
5855 * symtab.h (symbol_get_demangled_name): Don't declare.
5856 * symtab.c (symbol_get_demangled_name): Remove.
5857 (general_symbol_info::natural_name)
5858 (general_symbol_info::demangled_name): Update.
5859
906bb4c5
TT
58602020-04-24 Tom Tromey <tom@tromey.com>
5861
5862 PR rust/25025:
5863 * dwarf2/read.c (dwarf2_physname): Do not demangle for Rust.
5864
bcfe6157
TT
58652020-04-24 Tom Tromey <tom@tromey.com>
5866
5867 PR symtab/12707:
5868 * dwarf2/read.c (add_partial_symbol): Use the linkage name if it
5869 exists.
5870 (new_symbol): Likewise.
5871 * compile/compile-object-load.c (get_out_value_type): Use
5872 symbol_matches_search_name.
5873
f049a313
TT
58742020-04-24 Tom Tromey <tom@tromey.com>
5875
5876 * dwarf2/read.c (add_partial_symbol): Do not call
5877 compute_and_set_names.
5878
76e288d1
TT
58792020-04-24 Tom Tromey <tom@tromey.com>
5880
5881 * dwarf2/read.c (add_partial_symbol): Use new add_psymbol_to_list
5882 overload.
5883
2467f4f6
TT
58842020-04-24 Tom Tromey <tom@tromey.com>
5885
5886 * psymtab.c (add_psymbol_to_bcache): Simplify calling convention.
5887 (add_psymbol_to_list): New overload. Make old overload call new
5888 one.
5889 * psympriv.h (add_psymbol_to_list): New overload.
5890
e61108c9
TT
58912020-04-24 Tom Tromey <tom@tromey.com>
5892
5893 * dwarf2/read.c (partial_die_info::read) <case
5894 DW_AT_linkage_name>: Use value_as_string.
5895 (dwarf2_string_attr): Use value_as_string.
5896 * dwarf2/attribute.h (struct attribute) <value_as_string>: Declare
5897 method.
5898 * dwarf2/attribute.c (attribute::value_as_string): New method.
5899
8c87a452
TT
59002020-04-24 Tom Tromey <tom@tromey.com>
5901
5902 * symtab.c (general_symbol_info::natural_name)
5903 (general_symbol_info::demangled_name): Check for language_rust.
5904
787de330
TT
59052020-04-24 Tom Tromey <tom@tromey.com>
5906
5907 * dwarf2/read.c (dw2_linkage_name): Move Rust "{" hack here...
5908 (dwarf2_physname): ... from here.
5909 (partial_die_info::read): Add Rust "{" hack.
5910
ff985671
TT
59112020-04-24 Tom Tromey <tom@tromey.com>
5912
5913 * symtab.h (struct general_symbol_info) <set_demangled_name>: New
5914 method.
5915 (symbol_set_demangled_name): Don't declare.
5916 * symtab.c (general_symbol_info::set_demangled_name): Rename from
5917 symbol_set_demangled_name.
5918 (general_symbol_info::set_language)
5919 (general_symbol_info::compute_and_set_names): Update.
5920 * minsyms.c (minimal_symbol_reader::install): Update.
5921 * dwarf2/read.c (new_symbol): Update.
5922
1acda803
TT
59232020-04-24 Tom Tromey <tromey@adacore.com>
5924
5925 PR python/23662:
5926 * python/py-type.c (convert_field): Handle
5927 FIELD_LOC_KIND_DWARF_BLOCK.
5928 (typy_get_sizeof): Handle TYPE_HAS_DYNAMIC_LENGTH.
5929 (typy_get_dynamic): Nw function.
5930 (type_object_getset): Add "dynamic".
5931 * NEWS: Add entry.
5932
d656f129
TT
59332020-04-24 Tom Tromey <tromey@adacore.com>
5934
5935 * ada-typeprint.c (print_choices, print_variant_part)
5936 (print_record_field_types_dynamic): New functions.
5937 (print_record_field_types): Use print_record_field_types_dynamic.
5938
7d79de9a
TT
59392020-04-24 Tom Tromey <tromey@adacore.com>
5940
5941 * dwarf2/read.c (handle_data_member_location): New overload.
5942 (dwarf2_add_field): Use it.
5943 (decode_locdesc): Add "computed" parameter. Update comment.
5944 * gdbtypes.c (is_dynamic_type_internal): Also look for
5945 FIELD_LOC_KIND_DWARF_BLOCK.
5946 (resolve_dynamic_struct): Handle FIELD_LOC_KIND_DWARF_BLOCK.
5947 * gdbtypes.c (is_dynamic_type_internal): Add special case for C++
5948 virtual base classes.
5949 * gnu-v3-abi.c (gnuv3_baseclass_offset): Handle
5950 FIELD_LOC_KIND_DWARF_BLOCK.
5951
f8e89861
TT
59522020-04-24 Tom Tromey <tromey@adacore.com>
5953
5954 * dwarf2/read.c (read_structure_type): Handle dynamic length.
5955 * gdbtypes.c (is_dynamic_type_internal): Check
5956 TYPE_HAS_DYNAMIC_LENGTH.
5957 (resolve_dynamic_type_internal): Use TYPE_DYNAMIC_LENGTH.
5958 * gdbtypes.h (TYPE_HAS_DYNAMIC_LENGTH, TYPE_DYNAMIC_LENGTH):
5959 New macros.
5960 (enum dynamic_prop_node_kind) <DYN_PROP_BYTE_SIZE>: New
5961 constant.
5962
9c6a1327
TT
59632020-04-24 Tom Tromey <tromey@adacore.com>
5964
5965 * dwarf2/read.c (struct variant_field): Rewrite.
5966 (struct variant_part_builder): New.
5967 (struct nextfield): Remove "variant" field. Add "offset".
5968 (struct field_info): Add "current_variant_part" and
5969 "variant_parts".
5970 (alloc_discriminant_info): Remove.
5971 (alloc_rust_variant): New function.
5972 (quirk_rust_enum): Update.
5973 (dwarf2_add_field): Set "offset" member. Don't handle
5974 DW_TAG_variant_part.
5975 (offset_map_type): New typedef.
5976 (convert_variant_range, create_one_variant)
5977 (create_one_variant_part, create_variant_parts)
5978 (add_variant_property): New functions.
5979 (dwarf2_attach_fields_to_type): Call add_variant_property.
5980 (read_structure_type): Don't handle DW_TAG_variant_part.
5981 (handle_variant_part, handle_variant): New functions.
5982 (handle_struct_member_die): Use them.
5983 (process_structure_scope): Don't handle variant parts.
5984 * gdbtypes.h (TYPE_FLAG_DISCRIMINATED_UNION): Remove.
5985 (struct discriminant_info): Remove.
5986 (enum dynamic_prop_node_kind) <DYN_PROP_DISCRIMINATED>: Remove.
5987 (struct main_type) <flag_discriminated_union>: Remove.
5988 * rust-lang.c (rust_enum_p, rust_empty_enum_p): Rewrite.
5989 (rust_enum_variant): Return int. Remove "contents". Rewrite.
5990 (rust_print_enum, rust_print_struct_def, rust_evaluate_subexp):
5991 Update.
5992 * valops.c (value_union_variant): Remove.
5993 * value.h (value_union_variant): Don't declare.
5994
b249d2c2
TT
59952020-04-24 Tom Tromey <tromey@adacore.com>
5996
5997 * ada-lang.c (ada_discrete_type_high_bound, ada_discrete_type_low)
5998 (ada_value_primitive_packed_val): Update.
5999 * ada-valprint.c (ada_value_print_1): Update.
6000 * dwarf2/loc.c (evaluate_for_locexpr_baton): New struct.
6001 (dwarf2_locexpr_baton_eval): Take a property_addr_info rather than
6002 just an address. Use evaluate_for_locexpr_baton.
6003 (dwarf2_evaluate_property): Update.
6004 * dwarf2/loc.h (struct property_addr_info) <valaddr>: Now an
6005 array_view.
6006 * findvar.c (default_read_var_value): Update.
6007 * gdbtypes.c (compute_variant_fields_inner)
6008 (resolve_dynamic_type_internal): Update.
6009 (resolve_dynamic_type): Change type of valaddr parameter.
6010 * gdbtypes.h (resolve_dynamic_type): Update.
6011 * valarith.c (value_subscripted_rvalue): Update.
6012 * value.c (value_from_contents_and_address): Update.
6013
61122aa9
TT
60142020-04-24 Tom Tromey <tromey@adacore.com>
6015
6016 * dwarf2/loc.c (dwarf2_locexpr_baton_eval): Add
6017 "push_initial_value" parameter.
6018 (dwarf2_evaluate_property): Likewise.
6019 * dwarf2/loc.h (dwarf2_evaluate_property): Update.
6020
ef83a141
TT
60212020-04-24 Tom Tromey <tromey@adacore.com>
6022
6023 * gdbtypes.c (is_dynamic_type_internal): Check for variant parts.
6024 (variant::matches, compute_variant_fields_recurse)
6025 (compute_variant_fields_inner, compute_variant_fields): New
6026 functions.
6027 (resolve_dynamic_struct): Check for DYN_PROP_VARIANT_PARTS.
6028 Use resolved_type after type is made.
6029 (operator==): Add new cases.
6030 * gdbtypes.h (TYPE_HAS_VARIANT_PARTS): New macro.
6031 (struct discriminant_range, struct variant, struct variant_part):
6032 New.
6033 (union dynamic_prop_data) <variant_parts, original_type>: New
6034 members.
6035 (enum dynamic_prop_node_kind) <DYN_PROP_VARIANT_PARTS>: New constant.
6036 (enum dynamic_prop_kind) <PROP_TYPE, PROP_VARIANT_PARTS>: New
6037 constants.
6038 * value.c (unpack_bits_as_long): Now public.
6039 * value.h (unpack_bits_as_long): Declare.
6040
675127ec
TT
60412020-04-24 Tom Tromey <tromey@adacore.com>
6042
6043 * rs6000-tdep.c (struct ppc_variant): Rename from "variant".
6044 (variants, find_variant_by_arch, rs6000_gdbarch_init): Update.
6045
9852ceef
HD
60462020-04-24 Hannes Domani <ssbssa@yahoo.de>
6047
6048 * windows-tdep.c (exception_values): Add WOW64 exception numbers.
6049
7632c6ce
KR
60502020-04-24 Kamil Rytarowski <n54@gmx.com>
6051
6052 * inf-ptrace.h (follow_fork, insert_fork_catchpoint)
6053 (remove_fork_catchpoint, post_startup_inferior)
6054 (post_attach): Move...
6055 * obsd-nat.h (follow_fork, insert_fork_catchpoint)
6056 (remove_fork_catchpoint, post_startup_inferior)
6057 (post_attach): ...here.
6058 * inf-ptrace.c (follow_fork, insert_fork_catchpoint)
6059 (remove_fork_catchpoint, post_startup_inferior)
6060 (post_attach): Move...
6061 * obsd-nat.c (follow_fork, insert_fork_catchpoint)
6062 (remove_fork_catchpoint, post_startup_inferior)
6063 (post_attach): ...here.
6064
7be2bb4f
TT
60652020-04-24 Tom Tromey <tromey@adacore.com>
6066
6067 * nat/windows-nat.h (struct windows_thread_info)
6068 <pc_adjusted>: New member.
6069 * windows-nat.c (windows_fetch_one_register): Check
6070 pc_adjusted.
6071 (windows_nat_target::get_windows_debug_event)
6072 (windows_nat_target::wait): Set pc_adjusted.
6073
f80cb3b4
TV
60742020-04-24 Tom de Vries <tdevries@suse.de>
6075
6076 * contrib/cc-with-tweaks.sh: Remove <exec>.gdb-index file handling.
6077 Run gdb-add-index inside temp dir.
6078
29514b87
TT
60792020-04-23 Tom Tromey <tromey@adacore.com>
6080
6081 * windows-tdep.c (is_linked_with_cygwin_dll): Always update "iter"
6082 in loop.
6083
5939967b
LM
60842020-04-23 Luis Machado <luis.machado@linaro.org>
6085
6086 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first): Use
6087 get_frame_register instead of gdbarch_unwind_pc.
6088
70bc38f5
TV
60892020-04-23 Tom de Vries <tdevries@suse.de>
6090
6091 * symtab.c (lookup_global_symbol): Prefer def over decl.
6092
de82891c
TV
60932020-04-23 Tom de Vries <tdevries@suse.de>
6094
6095 PR symtab/25807
6096 * block.c (best_symbol, better_symbol): Promote to external.
6097 * block.h (best_symbol, better_symbol): Declare.
6098 * symtab.c (lookup_symbol_in_objfile_symtabs): Prefer def over
6099 decl.
6100
ecc6c606
TT
61012020-04-23 Tom Tromey <tromey@adacore.com>
6102
6103 PR ada/25837:
6104 * dwarf2/read.c (dw2_expand_symtabs_matching_symbol): Store a
6105 "const char *", not a "const std::string &".
6106 <name_and_matcher::operator==>: Update.
6107 * unittests/lookup_name_info-selftests.c: Change type of
6108 "result".
6109
740480b8
TT
61102020-04-23 Tom Tromey <tom@tromey.com>
6111
6112 * inferior.h (iterate_over_inferiors): Don't declare.
6113 * inferior.c (iterate_over_inferiors): Remove.
6114 * darwin-nat.c (find_inferior_task_it, find_inferior_pid_it):
6115 Remove.
6116 (darwin_find_inferior_by_task, darwin_find_inferior_by_pid): Don't
6117 use iterate_over_inferiors.
6118 (darwin_resume_inferior_it)
6119 (struct resume_inferior_threads_param)
6120 (darwin_resume_inferior_threads_it): Remove.
6121 (darwin_nat_target::resume): Don't use iterate_over_inferiors.
6122
ae3ab1f0
TV
61232020-04-23 Tom de Vries <tdevries@suse.de>
6124
6125 * blockframe.c (find_pc_partial_function): Use
6126 find_pc_sect_compunit_symtab rather than
6127 objfile->sf->qf->find_pc_sect_compunit_symtab.
6128
317d2668
TV
61292020-04-22 Tom de Vries <tdevries@suse.de>
6130
6131 PR symtab/25764
6132 * dwarf2/read.c (scan_partial_symbols): Allow external variable decls
6133 in psymtabs.
6134
eea9e357
TV
61352020-04-22 Tom de Vries <tdevries@suse.de>
6136
6137 PR symtab/25801
6138 * psymtab.c (psym_map_symtabs_matching_filename): Don't skip shared
6139 symtabs.
6140
3d5afab3
TV
61412020-04-22 Tom de Vries <tdevries@suse.de>
6142
6143 PR symtab/25700
6144 * dwarf2/read.c (dwarf2_build_psymtabs_hard): Don't create psymtab for
6145 CU if already created.
6146
d43b7a2d
TBA
61472020-04-21 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
6148
6149 * infrun.c (displaced_step_fixup): Switch to the event_thread
6150 before calling displaced_step_restore, not after.
6151
d89edf9b
MM
61522020-04-21 Markus Metzger <markus.t.metzger@intel.com>
6153
6154 * record-btrace.c (record_btrace_enable_warn): Ignore thread if
6155 its inferior is not recorded by us.
6156 (record_btrace_target_open): Replace call to
6157 all_non_exited_threads () with call to current_inferior
6158 ()->non_exited_threads ().
6159 (record_btrace_target::stop_recording): Likewise.
6160 (record_btrace_target::close): Likewise.
6161 (record_btrace_target::wait): Likewise.
6162 (record_btrace_target::record_stop_replaying): Likewise.
6163
5897fd49
MM
61642020-04-21 Markus Metzger <markus.t.metzger@intel.com>
6165
6166 * btrace.c (btrace_enable): Throw an error on double enables and
6167 when enabling recording fails.
6168 (btrace_disable): Throw an error if the thread is not recorded.
6169
1a476b6d
MM
61702020-04-21 Markus Metzger <markus.t.metzger@intel.com>
6171
6172 * record-btrace.c (record_btrace_target::fetch_registers): Forward
6173 request if we do not have a thread_info.
6174
4778a5f8
TV
61752020-04-21 Tom de Vries <tdevries@suse.de>
6176
6177 PR gdb/25471
6178 * thread.c
6179 (scoped_restore_current_thread::scoped_restore_current_thread): Catch
6180 exception in get_frame_id.
6181
0fa7617d
TT
61822020-04-20 Tom Tromey <tromey@adacore.com>
6183
6184 * python/python.c (struct gdbpy_event): Mark move constructor as
6185 noexcept.
6186 * python/py-tui.c (class gdbpy_tui_window_maker): Mark move
6187 constructor as noexcept.
6188 * completer.h (struct completion_result): Mark move constructor as
6189 noexcept.
6190 * completer.c (completion_result::completion_result): Use
6191 initialization style. Don't call reset_match_list.
6192
ad23bda0
MS
61932020-04-20 Mihails Strasuns <mihails.strasuns@intel.com>
6194
6195 * MAINTAINERS (Write After Approval): Add myself.
6196
45e1f031
TT
61972020-04-18 Tom Tromey <tom@tromey.com>
6198
6199 * windows-tdep.c (init_w32_command_list)
6200 (w32_prefix_command_valid): Restore.
6201 (_initialize_windows_tdep): Call init_w32_command_list.
6202
08feed99
TT
62032020-04-18 Tom Tromey <tom@tromey.com>
6204
6205 * xcoffread.c (enter_line_range, scan_xcoff_symtab): Update.
6206 * value.c (value_fn_field): Update.
6207 * valops.c (find_function_in_inferior)
6208 (value_allocate_space_in_inferior): Update.
6209 * tui/tui-winsource.c (tui_update_source_windows_with_line):
6210 Update.
6211 * tui/tui-source.c (tui_source_window::set_contents): Update.
6212 * symtab.c (lookup_global_or_static_symbol)
6213 (find_function_start_sal_1, skip_prologue_sal)
6214 (print_msymbol_info, find_gnu_ifunc, symbol_arch): Update.
6215 * symmisc.c (dump_msymbols, dump_symtab_1)
6216 (maintenance_print_one_line_table): Update.
6217 * symfile.c (init_entry_point_info, section_is_mapped)
6218 (list_overlays_command, simple_read_overlay_table)
6219 (simple_overlay_update_1): Update.
6220 * stap-probe.c (handle_stap_probe): Update.
6221 * stabsread.c (dbx_init_float_type, define_symbol)
6222 (read_one_struct_field, read_enum_type, read_range_type): Update.
6223 * source.c (info_line_command): Update.
6224 * python/python.c (gdbpy_source_objfile_script)
6225 (gdbpy_execute_objfile_script): Update.
6226 * python/py-type.c (save_objfile_types): Update.
6227 * python/py-objfile.c (py_free_objfile): Update.
6228 * python/py-inferior.c (python_new_objfile): Update.
6229 * psymtab.c (psym_find_pc_sect_compunit_symtab, dump_psymtab)
6230 (dump_psymtab_addrmap_1, maintenance_info_psymtabs)
6231 (maintenance_check_psymtabs): Update.
6232 * printcmd.c (info_address_command): Update.
6233 * objfiles.h (struct objfile) <arch>: New method, from
6234 get_objfile_arch.
6235 (get_objfile_arch): Don't declare.
6236 * objfiles.c (get_objfile_arch): Remove.
6237 (filter_overlapping_sections): Update.
6238 * minsyms.c (msymbol_is_function): Update.
6239 * mi/mi-symbol-cmds.c (mi_cmd_symbol_list_lines)
6240 (output_nondebug_symbol): Update.
6241 * mdebugread.c (parse_symbol, basic_type, parse_partial_symbols)
6242 (mdebug_expand_psymtab): Update.
6243 * machoread.c (macho_add_oso_symfile): Update.
6244 * linux-tdep.c (linux_infcall_mmap, linux_infcall_munmap):
6245 Update.
6246 * linux-fork.c (checkpoint_command): Update.
6247 * linespec.c (convert_linespec_to_sals): Update.
6248 * jit.c (finalize_symtab): Update.
6249 * infrun.c (insert_exception_resume_from_probe): Update.
6250 * ia64-tdep.c (ia64_find_unwind_table): Update.
6251 * hppa-tdep.c (internalize_unwinds): Update.
6252 * gdbtypes.c (get_type_arch, init_float_type, objfile_type):
6253 Update.
6254 * gcore.c (call_target_sbrk): Update.
6255 * elfread.c (record_minimal_symbol, elf_symtab_read)
6256 (elf_rel_plt_read, elf_gnu_ifunc_record_cache)
6257 (elf_gnu_ifunc_resolve_by_got): Update.
6258 * dwarf2/read.c (create_addrmap_from_index)
6259 (create_addrmap_from_aranges, dw2_find_pc_sect_compunit_symtab)
6260 (read_debug_names_from_section)
6261 (process_psymtab_comp_unit_reader, add_partial_symbol)
6262 (add_partial_subprogram, process_full_comp_unit)
6263 (read_file_scope, read_func_scope, read_lexical_block_scope)
6264 (read_call_site_scope, dwarf2_ranges_read)
6265 (dwarf2_record_block_ranges, dwarf2_add_field)
6266 (mark_common_block_symbol_computed, read_tag_pointer_type)
6267 (read_tag_string_type, dwarf2_init_float_type)
6268 (dwarf2_init_complex_target_type, read_base_type)
6269 (partial_die_info::read, partial_die_info::read)
6270 (read_attribute_value, dwarf_decode_lines_1, new_symbol)
6271 (dwarf2_fetch_die_loc_sect_off): Update.
6272 * dwarf2/loc.c (dwarf2_find_location_expression)
6273 (class dwarf_evaluate_loc_desc, rw_pieced_value)
6274 (dwarf2_evaluate_loc_desc_full, dwarf2_locexpr_baton_eval)
6275 (dwarf2_loc_desc_get_symbol_read_needs)
6276 (locexpr_describe_location_piece, locexpr_describe_location_1)
6277 (loclist_describe_location): Update.
6278 * dwarf2/index-write.c (write_debug_names): Update.
6279 * dwarf2/frame.c (dwarf2_build_frame_info): Update.
6280 * dtrace-probe.c (dtrace_process_dof): Update.
6281 * dbxread.c (read_dbx_symtab, dbx_end_psymtab)
6282 (process_one_symbol): Update.
6283 * ctfread.c (ctf_init_float_type, read_base_type): Update.
6284 * coffread.c (coff_symtab_read, enter_linenos, decode_base_type)
6285 (coff_read_enum_type): Update.
6286 * cli/cli-cmds.c (edit_command, list_command): Update.
6287 * buildsym.c (buildsym_compunit::finish_block_internal): Update.
6288 * breakpoint.c (create_overlay_event_breakpoint)
6289 (create_longjmp_master_breakpoint)
6290 (create_std_terminate_master_breakpoint)
6291 (create_exception_master_breakpoint, get_sal_arch): Update.
6292 * block.c (block_gdbarch): Update.
6293 * annotate.c (annotate_source_line): Update.
6294
0743fc83
TT
62952020-04-17 Tom Tromey <tromey@adacore.com>
6296
6297 * auto-load.c (show_auto_load_cmd): Remove.
6298 (auto_load_show_cmdlist_get): Use add_show_prefix_cmd.
6299 * arc-tdep.c (_initialize_arc_tdep): Use add_show_prefix_cmd.
6300 (maintenance_print_arc_command): Remove.
6301 * tui/tui-win.c (tui_command): Remove.
6302 (tui_get_cmd_list): Use add_basic_prefix_cmd.
6303 * tui/tui-layout.c (tui_layout_command): Remove.
6304 (_initialize_tui_layout): Use add_basic_prefix_cmd.
6305 * python/python.c (user_set_python, user_show_python): Remove.
6306 (_initialize_python): Use add_basic_prefix_cmd,
6307 add_show_prefix_cmd.
6308 * guile/guile.c (set_guile_command, show_guile_command): Remove.
6309 (install_gdb_commands): Use add_basic_prefix_cmd,
6310 add_show_prefix_cmd.
6311 (info_guile_command): Remove.
6312 * dwarf2/read.c (set_dwarf_cmd, show_dwarf_cmd): Remove.
6313 (_initialize_dwarf2_read): Use add_basic_prefix_cmd,
6314 add_show_prefix_cmd.
6315 * cli/cli-style.h (class cli_style_option) <add_setshow_commands>:
6316 Remove do_set and do_show parameters.
6317 * cli/cli-style.c (set_style, show_style): Remove.
6318 (_initialize_cli_style): Use add_basic_prefix_cmd,
6319 add_show_prefix_cmd.
6320 (cli_style_option::add_setshow_commands): Remove do_set and
6321 do_show parameters.
6322 (cli_style_option::add_setshow_commands): Use
6323 add_basic_prefix_cmd, add_show_prefix_cmd.
6324 (STYLE_ADD_SETSHOW_COMMANDS): Remove macro.
6325 (set_style_name): Remove.
6326 * cli/cli-dump.c (dump_command, append_command): Remove.
6327 (srec_dump_command, ihex_dump_command, verilog_dump_command)
6328 (tekhex_dump_command, binary_dump_command)
6329 (binary_append_command): Remove.
6330 (_initialize_cli_dump): Use add_basic_prefix_cmd.
6331 * windows-tdep.c (w32_prefix_command_valid): Remove global.
6332 (init_w32_command_list): Remove; move into ...
6333 (_initialize_windows_tdep): ... here. Use add_basic_prefix_cmd.
6334 * valprint.c (set_print, show_print, set_print_raw)
6335 (show_print_raw): Remove.
6336 (_initialize_valprint): Use add_basic_prefix_cmd,
6337 add_show_prefix_cmd.
6338 * typeprint.c (set_print_type, show_print_type): Remove.
6339 (_initialize_typeprint): Use add_basic_prefix_cmd,
6340 add_show_prefix_cmd.
6341 * record.c (set_record_command, show_record_command): Remove.
6342 (_initialize_record): Use add_basic_prefix_cmd,
6343 add_show_prefix_cmd.
6344 * cli/cli-cmds.c (_initialize_cli_cmds): Use add_basic_prefix_cmd,
6345 add_show_prefix_cmd.
6346 (info_command, show_command, set_debug, show_debug): Remove.
6347 * top.h (set_history, show_history): Don't declare.
6348 * top.c (set_history, show_history): Remove.
6349 * target-descriptions.c (set_tdesc_cmd, show_tdesc_cmd)
6350 (unset_tdesc_cmd): Remove.
6351 (_initialize_target_descriptions): Use add_basic_prefix_cmd,
6352 add_show_prefix_cmd.
6353 * symtab.c (info_module_command): Remove.
6354 (_initialize_symtab): Use add_basic_prefix_cmd.
6355 * symfile.c (overlay_command): Remove.
6356 (_initialize_symfile): Use add_basic_prefix_cmd.
6357 * sparc64-tdep.c (info_adi_command): Remove.
6358 (_initialize_sparc64_adi_tdep): Use add_basic_prefix_cmd.
6359 * sh-tdep.c (show_sh_command, set_sh_command): Remove.
6360 (_initialize_sh_tdep): Use add_basic_prefix_cmd,
6361 add_show_prefix_cmd.
6362 * serial.c (serial_set_cmd, serial_show_cmd): Remove.
6363 (_initialize_serial): Use add_basic_prefix_cmd,
6364 add_show_prefix_cmd.
6365 * ser-tcp.c (set_tcp_cmd, show_tcp_cmd): Remove.
6366 (_initialize_ser_tcp): Use add_basic_prefix_cmd,
6367 add_show_prefix_cmd.
6368 * rs6000-tdep.c (set_powerpc_command, show_powerpc_command)
6369 (_initialize_rs6000_tdep): Use add_basic_prefix_cmd,
6370 add_show_prefix_cmd.
6371 * riscv-tdep.c (show_riscv_command, set_riscv_command)
6372 (show_debug_riscv_command, set_debug_riscv_command): Remove.
6373 (_initialize_riscv_tdep): Use add_basic_prefix_cmd,
6374 add_show_prefix_cmd.
6375 * remote.c (remote_command, set_remote_cmd): Remove.
6376 (_initialize_remote): Use add_basic_prefix_cmd.
6377 * record-full.c (set_record_full_command)
6378 (show_record_full_command): Remove.
6379 (_initialize_record_full): Use add_basic_prefix_cmd,
6380 add_show_prefix_cmd.
6381 * record-btrace.c (cmd_set_record_btrace)
6382 (cmd_show_record_btrace, cmd_set_record_btrace_bts)
6383 (cmd_show_record_btrace_bts, cmd_set_record_btrace_pt)
6384 (cmd_show_record_btrace_pt): Remove.
6385 (_initialize_record_btrace): Use add_basic_prefix_cmd,
6386 add_show_prefix_cmd.
6387 * ravenscar-thread.c (set_ravenscar_command)
6388 (show_ravenscar_command): Remove.
6389 (_initialize_ravenscar): Use add_basic_prefix_cmd,
6390 add_show_prefix_cmd.
6391 * mips-tdep.c (show_mips_command, set_mips_command)
6392 (_initialize_mips_tdep): Use add_basic_prefix_cmd,
6393 add_show_prefix_cmd.
6394 * maint.c (maintenance_command, maintenance_info_command)
6395 (maintenance_check_command, maintenance_print_command)
6396 (maintenance_set_cmd, maintenance_show_cmd): Remove.
6397 (_initialize_maint_cmds): Use add_basic_prefix_cmd,
6398 add_show_prefix_cmd.
6399 (show_per_command_cmd): Remove.
6400 * maint-test-settings.c (maintenance_set_test_settings_cmd):
6401 Remove.
6402 (maintenance_show_test_settings_cmd): Remove.
6403 (_initialize_maint_test_settings): Use add_basic_prefix_cmd,
6404 add_show_prefix_cmd.
6405 * maint-test-options.c (maintenance_test_options_command):
6406 Remove.
6407 (_initialize_maint_test_options): Use add_basic_prefix_cmd.
6408 * macrocmd.c (macro_command): Remove
6409 (_initialize_macrocmd): Use add_basic_prefix_cmd.
6410 * language.c (set_check, show_check): Remove.
6411 (_initialize_language): Use add_basic_prefix_cmd,
6412 add_show_prefix_cmd.
6413 * infcmd.c (unset_command): Remove.
6414 (_initialize_infcmd): Use add_basic_prefix_cmd.
6415 * i386-tdep.c (set_mpx_cmd, show_mpx_cmd): Remove.
6416 (_initialize_i386_tdep): Use add_basic_prefix_cmd,
6417 add_show_prefix_cmd.
6418 * go32-nat.c (go32_info_dos_command): Remove.
6419 (_initialize_go32_nat): Use add_basic_prefix_cmd.
6420 * cli/cli-decode.c (do_prefix_cmd, add_basic_prefix_cmd)
6421 (do_show_prefix_cmd, add_show_prefix_cmd): New functions.
6422 * frame.c (set_backtrace_cmd, show_backtrace_cmd): Remove.
6423 (_initialize_frame): Use add_basic_prefix_cmd,
6424 add_show_prefix_cmd.
6425 * dcache.c (set_dcache_command, show_dcache_command): Remove.
6426 (_initialize_dcache): Use add_basic_prefix_cmd,
6427 add_show_prefix_cmd.
6428 * cp-support.c (maint_cplus_command): Remove.
6429 (_initialize_cp_support): Use add_basic_prefix_cmd.
6430 * btrace.c (maint_btrace_cmd, maint_btrace_set_cmd)
6431 (maint_btrace_show_cmd, maint_btrace_pt_set_cmd)
6432 (maint_btrace_pt_show_cmd, _initialize_btrace): Use
6433 add_basic_prefix_cmd, add_show_prefix_cmd.
6434 * breakpoint.c (save_command): Remove.
6435 (_initialize_breakpoint): Use add_basic_prefix_cmd.
6436 * arm-tdep.c (set_arm_command, show_arm_command): Remove.
6437 (_initialize_arm_tdep): Use add_basic_prefix_cmd,
6438 add_show_prefix_cmd.
6439 * ada-lang.c (maint_set_ada_cmd, maint_show_ada_cmd)
6440 (set_ada_command, show_ada_command): Remove.
6441 (_initialize_ada_language): Use add_basic_prefix_cmd,
6442 add_show_prefix_cmd.
6443 * command.h (add_basic_prefix_cmd, add_show_prefix_cmd): Declare.
6444
3557f442
KR
64452020-04-16 Kamil Rytarowski <n54@gmx.com>
6446
6447 * nbsd-nat.c (inf_ptrace_target::auxv_parse): Remove.
6448 * nbsd-nat.h (inf_ptrace_target::auxv_parse): Likewise.
6449
16197208
SM
64502020-04-16 Simon Marchi <simon.marchi@polymtl.ca>
6451
6452 * windows-tdep.c (is_linked_with_cygwin_dll): Add filename to
6453 warning messages.
6454
00ac85d3
SM
64552020-04-16 Simon Marchi <simon.marchi@polymtl.ca>
6456
6457 * windows-tdep.c (is_linked_with_cygwin_dll): Consider case where
6458 import table is not at beginning of .idata section.
6459
381ce63f
PA
64602020-04-16 Pedro Alves <palves@redhat.com>
6461
6462 * inferior.c (delete_inferior): Use delete operator directly
6463 instead of delete_program_space.
6464 * progspace.c (add_program_space): New, factored out from
6465 program_space::program_space.
6466 (remove_program_space): New, factored out from
6467 delete_program_space.
6468 (program_space::program_space): Remove intro comment. Rewrite.
6469 (program_space::~program_space): Remove intro comment. Call
6470 remove_program_space.
6471 (delete_program_space): Delete.
6472 * progspace.h (program_space::program_space): Make explicit. Move
6473 intro comment here, adjusted.
6474 (program_space::~program_space): Move intro comment here,
6475 adjusted.
6476 (delete_program_space): Remove.
6477
a010605f
TT
64782020-04-16 Tom Tromey <tromey@adacore.com>
6479
6480 * windows-nat.c (windows_nat::handle_access_violation): New
6481 function.
6482 * nat/windows-nat.h (handle_access_violation): Declare.
6483 * nat/windows-nat.c (handle_exception): Move Cygwin code to
6484 windows-nat.c. Call handle_access_violation.
6485
efba5c23
TV
64862020-04-16 Tom de Vries <tdevries@suse.de>
6487
6488 PR symtab/25791
6489 * dwarf2/index-write.c (write_gdbindex): Generate CU table entries for
6490 CUs without psymtab.
6491
97ed802d
KB
64922020-04-16 Kevin Buettner <kevinb@redhat.com>
6493
6494 * python/python.c (do_start_initialization): Don't call
6495 PyEval_InitThreads for Python 3.9 and beyond.
6496
c7d64809
KR
64972020-04-15 Kamil Rytarowski <n54@gmx.com>
6498
6499 * obsd-nat.c (obsd_nat_target::update_thread_list): Pass "this" to
6500 thread functions.
6501 (obsd_nat_target::wait): Likewise.
6502
ce127a96
TT
65032020-04-15 Tom Tromey <tromey@adacore.com>
6504
6505 * windows-nat.c (DEBUG_EXEC, DEBUG_EVENTS, DEBUG_MEM)
6506 (DEBUG_EXCEPT): Use debug_printf.
6507
99f1bc6a
AB
65082020-04-15 Andrew Burgess <andrew.burgess@embecosm.com>
6509
6510 * completer.c (class completion_tracker::completion_hash_entry)
6511 <hash_name>: New member function.
6512 (completion_tracker::discard_completions): New callback to hash a
6513 completion_hash_entry, pass this to htab_create_alloc.
6514
a0e9b532
JT
65152016-01-20 Jon Turney <jon.turney@dronecode.org.uk>
6516
6517 * windows-nat.c (windows_make_so): Warn rather than stopping with
6518 an error if realpath() fails.
6519
06ca5dd4
KR
65202020-04-14 Kamil Rytarowski <n54@gmx.com>
6521
6522 * nbsd-nat.c (nbsd_pid_to_kinfo_proc2): New.
6523 (nbsd_nat_target::info_proc): Add do_status.
6524
194d088f
TV
65252020-04-14 Simon Marchi <simon.marchi@polymtl.ca>
6526 Tom de Vries <tdevries@suse.de>
6527
6528 PR symtab/25718
6529 * psympriv.h (struct partial_symtab::read_symtab)
6530 (struct partial_symtab::expand_psymtab)
6531 (struct partial_symtab::read_dependencies): Update comments.
6532 * dwarf2/read.c (struct dwarf2_include_psymtab::read_symtab): Call
6533 read_symtab for includer.
6534 (struct dwarf2_include_psymtab::expand_psymtab): Assert false.
6535 (struct dwarf2_include_psymtab::readin_p): Call readin_p () for includer.
6536 (struct dwarf2_include_psymtab::m_readin): Remove.
6537 (struct dwarf2_include_psymtab::includer): New member function.
6538 (dwarf2_psymtab::expand_psymtab): Assert !readin.
6539
c1a66c06
TV
65402020-04-14 Tom de Vries <tdevries@suse.de>
6541
6542 PR symtab/25720
6543 * symmisc.c (maintenance_expand_symtabs): Call expand_symtabs_matching
6544 with NULL symbol_matcher and lookup_name.
6545 * psymtab.c (psym_expand_symtabs_matching): Handle NULL symbol_matcher
6546 and lookup_name.
6547 * dwarf2/read.c (dw2_expand_symtabs_matching)
6548 (dw2_debug_names_expand_symtabs_matching): Same.
6549 * symfile.h (struct quick_symbol_functions::expand_symtabs_matching):
6550 Make lookup_name a pointer. Update comment.
6551 * symtab.c (global_symbol_searcher::expand_symtabs): Handle
6552 lookup_name being a pointer.
6553 * symfile.c (expand_symtabs_matching): Same.
6554 * symfile-debug.c (debug_qf_expand_symtabs_matching): Same.
6555 * linespec.c (iterate_over_all_matching_symtabs): Same.
6556
400b5eca
TT
65572020-04-13 Tom Tromey <tom@tromey.com>
6558
6559 * run-on-main-thread.c: Update include.
6560 * unittests/main-thread-selftests.c: Update include.
6561 * tui/tui-win.c: Update include.
6562 * tui/tui-io.c: Update include.
6563 * tui/tui-interp.c: Update include.
6564 * tui/tui-hooks.c: Update include.
6565 * top.h: Update include.
6566 * top.c: Update include.
6567 * ser-base.c: Update include.
6568 * remote.c: Update include.
6569 * remote-notif.c: Update include.
6570 * remote-fileio.c: Update include.
6571 * record-full.c: Update include.
6572 * record-btrace.c: Update include.
6573 * python/python.c: Update include.
6574 * posix-hdep.c: Update include.
6575 * mingw-hdep.c: Update include.
6576 * mi/mi-main.c: Update include.
6577 * mi/mi-interp.c: Update include.
6578 * main.c: Update include.
6579 * linux-nat.c: Update include.
6580 * interps.c: Update include.
6581 * infrun.c: Update include.
6582 * inf-loop.c: Update include.
6583 * event-top.c: Update include.
6584 * event-loop.c: Move to ../gdbsupport/.
6585 * event-loop.h: Move to ../gdbsupport/.
6586 * async-event.h: Update include.
6587 * Makefile.in (COMMON_SFILES, HFILES_NO_SRCDIR): Update.
6588
93b54c8e
TT
65892020-04-13 Tom Tromey <tom@tromey.com>
6590
6591 * tui/tui-win.c: Include async-event.h.
6592 * remote.c: Include async-event.h.
6593 * remote-notif.c: Include async-event.h.
6594 * record-full.c: Include async-event.h.
6595 * record-btrace.c: Include async-event.h.
6596 * infrun.c: Include async-event.h.
6597 * event-top.c: Include async-event.h.
6598 * event-loop.h: Move some declarations to async-event.h.
6599 * event-loop.c: Don't include ser-event.h or top.h. Move some
6600 code to async-event.c.
6601 * async-event.h: New file.
6602 * async-event.c: New file.
6603 * Makefile.in (COMMON_SFILES): Add async-event.c.
6604 (HFILES_NO_SRCDIR): Add async-event.h.
6605
c1cd3163
TT
66062020-04-13 Tom Tromey <tom@tromey.com>
6607
6608 * utils.c (flush_streams): New function.
6609 * event-loop.c (gdb_wait_for_event): Call flush_streams.
6610
29f2bf4f
TT
66112020-04-13 Tom Tromey <tom@tromey.com>
6612
6613 * event-loop.c (handle_file_event): Use warning, not
6614 printf_unfiltered.
6615
98029d02
TT
66162020-04-13 Tom Tromey <tom@tromey.com>
6617
6618 * event-loop.c: Include <chrono>.
6619
06cc9596
TT
66202020-04-13 Tom Tromey <tom@tromey.com>
6621
6622 * gdb_select.h: Move to ../gdbsupport/.
6623 * event-loop.c: Update include path.
6624 * top.c: Update include path.
6625 * ser-base.c: Update include path.
6626 * ui-file.c: Update include path.
6627 * ser-tcp.c: Update include path.
6628 * guile/scm-ports.c: Update include path.
6629 * posix-hdep.c: Update include path.
6630 * ser-unix.c: Update include path.
6631 * gdb_usleep.c: Update include path.
6632 * mingw-hdep.c: Update include path.
6633 * inflow.c: Update include path.
6634 * infrun.c: Update include path.
6635 * event-top.c: Update include path.
6636
8ae8e197
TT
66372020-04-13 Tom Tromey <tom@tromey.com>
6638
6639 * configure: Rebuild.
6640 * configure.ac: Remove checks that are now in GDB_AC_COMMON.
6641
58cf28e8
TT
66422020-04-13 Tom Tromey <tom@tromey.com>
6643
6644 * event-loop.h (start_event_loop): Don't declare.
6645 * event-loop.c (start_event_loop): Move...
6646 * main.c (start_event_loop): ...here. Now static.
6647
b7f999ae
SDJ
66482020-04-13 Sergio Durigan Junior <sergiodj@sergiodj.net>
6649
6650 * MAINTAINERS: Update my email address.
6651
1085dfd4
KR
66522020-04-12 Kamil Rytarowski <n54@gmx.com>
6653
6654 * nbsd-nat.c (nbsd_nat_target::info_proc): Add IP_MINIMAL and
6655 IP_ALL.
6656
49d1d1f5
KR
66572020-04-12 Kamil Rytarowski <n54@gmx.com>
6658
6659 * nbsd-nat.c (nbsd_pid_to_cmdline): Add.
aac66a4c 6660 (nbsd_nat_target::info_proc): Add do_cmdline.
49d1d1f5 6661
b4848d2a
KR
66622020-04-12 Kamil Rytarowski <n54@gmx.com>
6663
6664 * nbsd-nat.c (nbsd_pid_to_cwd): Add.
aac66a4c 6665 (nbsd_nat_target::info_proc): Add do_cwd.
b4848d2a 6666
51c133d5
KR
66672020-04-12 Kamil Rytarowski <n54@gmx.com>
6668
6669 * nbsd-nat.c (nbsd_nat_target::info_proc): Add do_exe.
6670
54b8cbd0
KR
66712020-04-11 Kamil Rytarowski <n54@gmx.com>
6672
6673 * nbsd-nat.c; Include "nbsd-tdep.h" and "gdbarch.h".
6674 * nbsd-nat.c (nbsd_nat_target::find_memory_regions)
6675 (nbsd_nat_target::info_proc): New functions.
6676 * nbsd-nat.c (kinfo_get_vmmap): New function.
6677 * nbsd-nat.c (nbsd_nat_target::info_proc) Use
6678 nbsd_info_proc_mappings_header and nbsd_info_proc_mappings_entry.
6679 * nbsd-tdep.c (nbsd_info_proc_mappings_header)
6680 (nbsd_info_proc_mappings_entry, nbsd_vm_map_entry_flags): New
6681 functions.
6682 * nbsd-tdep.c (KINFO_VME_PROT_READ, KINFO_VME_PROT_WRITE)
6683 (KINFO_VME_PROT_EXEC, KINFO_VME_FLAG_COW)
6684 (KINFO_VME_FLAG_NEEDS_COPY, KINFO_VME_FLAG_NOCOREDUMP)
6685 (KINFO_VME_FLAG_PAGEABLE, KINFO_VME_FLAG_GROWS_UP)
6686 (KINFO_VME_FLAG_GROWS_DOWN): New.
6687
cf83625d
AS
66882020-04-10 Artur Shepilko <nomadbyte@gmail.com>
6689
6690 * utils.c (copy_bitwise): Use unsigned 0 constant as operand of
6691 bit shift.
6692
0c4311ab
TT
66932020-04-10 Tom Tromey <tromey@adacore.com>
6694
6695 * symfile.c (symbol_file_add_separate): Preserve OBJF_MAINLINE.
6696
3e65b3e9
TT
66972020-04-10 Tom Tromey <tromey@adacore.com>
6698
6699 * symtab.c (get_symbol_address, get_msymbol_address): Skip
6700 separate debug files.
6701
13302e95
HD
67022020-04-10 Hannes Domani <ssbssa@yahoo.de>
6703
6704 * nat/windows-nat.c (STATUS_WX86_BREAKPOINT, STATUS_WX86_SINGLE_STEP):
6705 Move to...
6706 * nat/windows-nat.h (STATUS_WX86_BREAKPOINT, STATUS_WX86_SINGLE_STEP):
6707 ... here.
6708 * windows-nat.c (windows_nat_target::get_windows_debug_event):
6709 Check for STATUS_WX86_BREAKPOINT.
6710 (windows_nat_target::wait): Same.
6711
bdfc1e8a
TV
67122020-04-10 Tom de Vries <tdevries@suse.de>
6713
6714 PR cli/25808
6715 * python/lib/gdb/__init__.py: Initialize lexer with stripnl=False.
6716
f4460aec
SM
67172020-04-09 Simon Marchi <simon.marchi@polymtl.ca>
6718
6719 * MAINTAINERS (Global Maintainers): Add Tom de Vries.
6720 (Write After Approval): Remove Tom de Vries.
6721
a25198bb
BE
67222020-04-09 Bernd Edlinger <bernd.edlinger@hotmail.de>
6723
6724 revert partially:
6725 2020-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
6726
aac66a4c
SM
6727 * buildsym.c (record_line): Fix undefined behavior and preserve
6728 lines at eof.
a25198bb 6729
206c98a6
KR
67302020-04-09 Kamil Rytarowski <n54@gmx.com>
6731
6732 * auxv.h (svr4_auxv_parse): New.
6733 * auxv.c (default_auxv_parse): Split into default_auxv_parse
6734 and generic_auxv_parse.
6735 (svr4_auxv_parse): Add.
6736 * obsd-tdep.c: Include "auxv.h".
6737 (obsd_auxv_parse): Remove.
6738 (obsd_init_abi): Remove comment.
6739 (obsd_init_abi): Change set_gdbarch_auxv_parse passed argument
6740 from `obsd_auxv_parse' to `svr4_auxv_parse'.
6741 * nbsd-tdep.c: Include "auxv.h".
6742 (nbsd_init_abi): Call set_gdbarch_auxv_parse.
6743
71fbdbaf
TT
67442020-04-08 Tom Tromey <tromey@adacore.com>
6745
6746 * nat/windows-nat.h (last_wait_event): Don't declare.
6747 (wait_for_debug_event): Update comment.
6748 * nat/windows-nat.c (last_wait_event): Now static.
6749
2c1d95e8
TT
67502020-04-08 Tom Tromey <tromey@adacore.com>
6751
6752 * windows-nat.c (wait_for_debug_event): Move to
6753 nat/windows-nat.c.
6754 * nat/windows-nat.h (wait_for_debug_event): Declare.
6755 * nat/windows-nat.c (wait_for_debug_event): Move from
6756 windows-nat.c. No longer static.
6757
d2977bc4
TT
67582020-04-08 Tom Tromey <tromey@adacore.com>
6759
6760 * windows-nat.c (get_windows_debug_event): Use
6761 fetch_pending_stop.
6762 * nat/windows-nat.h (fetch_pending_stop): Declare.
6763 * nat/windows-nat.c (fetch_pending_stop): New function.
6764
e758e19c
TT
67652020-04-08 Tom Tromey <tromey@adacore.com>
6766
6767 * windows-nat.c (windows_continue): Use matching_pending_stop and
6768 continue_last_debug_event.
6769 * nat/windows-nat.h (matching_pending_stop)
6770 (continue_last_debug_event): Declare.
6771 * nat/windows-nat.c (DEBUG_EVENTS): New define.
6772 (matching_pending_stop, continue_last_debug_event): New
6773 functions.
6774
8d30e395
TT
67752020-04-08 Tom Tromey <tromey@adacore.com>
6776
6777 * windows-nat.c (MS_VC_EXCEPTION): Move to nat/windows-nat.c.
6778 (handle_exception_result): Move to nat/windows-nat.h.
6779 (DEBUG_EXCEPTION_SIMPLE): Remove.
6780 (windows_nat::handle_ms_vc_exception): New function.
6781 (handle_exception): Move to nat/windows-nat.c.
6782 (get_windows_debug_event): Update.
6783 (STATUS_WX86_BREAKPOINT, STATUS_WX86_SINGLE_STEP): Move to
6784 nat/windows-nat.c.
6785 * nat/windows-nat.h (handle_ms_vc_exception): Declare.
6786 (handle_exception_result): Move from windows-nat.c.
6787 (handle_exception): Declare.
6788 * nat/windows-nat.c (MS_VC_EXCEPTION, handle_exception)
6789 (STATUS_WX86_SINGLE_STEP, STATUS_WX86_BREAKPOINT): Move from
6790 windows-nat.c.
6791
29de418d
TT
67922020-04-08 Tom Tromey <tromey@adacore.com>
6793
6794 * windows-nat.c (exception_count, event_count): Remove.
6795 (handle_exception, get_windows_debug_event)
6796 (do_initial_windows_stuff): Update.
6797
a816ba18
TT
67982020-04-08 Tom Tromey <tromey@adacore.com>
6799
6800 * windows-nat.c (windows_nat::handle_load_dll)
6801 (windows_nat::handle_unload_dll): Rename. No longer static.
6802 * nat/windows-nat.h (handle_load_dll, handle_unload_dll):
6803 Declare.
6804
a00caa12
TT
68052020-04-08 Tom Tromey <tromey@adacore.com>
6806
6807 * complaints.h (stop_whining): Declare at top-level.
6808 (complaint): Don't declare stop_whining.
6809
d41b524f
TT
68102020-04-08 Tom Tromey <tromey@adacore.com>
6811
6812 * windows-nat.c (windows_nat::handle_output_debug_string):
6813 Rename. No longer static.
6814 * nat/windows-nat.h (handle_output_debug_string): Declare.
6815
3c76026d
TT
68162020-04-08 Tom Tromey <tromey@adacore.com>
6817
6818 * windows-nat.c (current_process_handle, current_process_id)
6819 (main_thread_id, last_sig, current_event, last_wait_event)
6820 (current_windows_thread, desired_stop_thread_id, pending_stops)
6821 (struct pending_stop, siginfo_er): Move to nat/windows-nat.c.
6822 (display_selectors, fake_create_process)
6823 (get_windows_debug_event): Update.
6824 * nat/windows-nat.h (current_process_handle, current_process_id)
6825 (main_thread_id, last_sig, current_event, last_wait_event)
6826 (current_windows_thread, desired_stop_thread_id, pending_stops)
6827 (struct pending_stop, siginfo_er): Move from windows-nat.c.
6828 * nat/windows-nat.c (current_process_handle, current_process_id)
6829 (main_thread_id, last_sig, current_event, last_wait_event)
6830 (current_windows_thread, desired_stop_thread_id, pending_stops)
6831 (siginfo_er): New globals. Move from windows-nat.c.
6832
9d8679cc
TT
68332020-04-08 Tom Tromey <tromey@adacore.com>
6834
6835 * windows-nat.c (get_image_name): Move to nat/windows-nat.c.
6836 (handle_load_dll): Update.
6837 * nat/windows-nat.c (get_image_name): Move from windows-nat.c.
6838
28688adf
TT
68392020-04-08 Tom Tromey <tromey@adacore.com>
6840
6841 * windows-nat.c (enum thread_disposition_type): Move to
6842 nat/windows-nat.h.
6843 (windows_nat::thread_rec): Rename from thread_rec. No longer
6844 static.
6845 (windows_add_thread, windows_nat_target::fetch_registers)
6846 (windows_nat_target::store_registers, handle_exception)
6847 (windows_nat_target::resume, get_windows_debug_event)
6848 (windows_nat_target::get_tib_address)
6849 (windows_nat_target::thread_name)
6850 (windows_nat_target::thread_alive): Update.
6851 * nat/windows-nat.h (enum thread_disposition_type): Move from
6852 windows-nat.c.
6853 (thread_rec): Declare.
6854
4834dad0
TT
68552020-04-08 Tom Tromey <tromey@adacore.com>
6856
6857 * windows-nat.c: Add "using namespace".
6858 * nat/windows-nat.h: Wrap contents in windows_nat namespace.
6859 * nat/windows-nat.c: Wrap contents in windows_nat namespace.
6860
65bafd5b
TT
68612020-04-08 Tom Tromey <tromey@adacore.com>
6862
6863 * nat/windows-nat.h (struct windows_thread_info): Declare
6864 destructor.
6865 * nat/windows-nat.c (~windows_thread_info): New.
6866
0a4afda3
TT
68672020-04-08 Tom Tromey <tromey@adacore.com>
6868
6869 PR gdb/22992
6870 * windows-nat.c (current_event): Update comment.
6871 (last_wait_event, desired_stop_thread_id): New globals.
6872 (struct pending_stop): New.
6873 (pending_stops): New global.
6874 (windows_nat_target) <stopped_by_sw_breakpoint>
6875 <supports_stopped_by_sw_breakpoint>: New methods.
6876 (windows_fetch_one_register): Add assertions. Adjust PC.
6877 (windows_continue): Handle pending stops. Suspend other threads
6878 when stepping. Use last_wait_event
6879 (wait_for_debug_event): New function.
6880 (get_windows_debug_event): Use wait_for_debug_event. Handle
6881 pending stops. Queue spurious stops.
6882 (windows_nat_target::wait): Set stopped_at_software_breakpoint.
6883 (windows_nat_target::kill): Use wait_for_debug_event.
6884 * nat/windows-nat.h (struct windows_thread_info)
6885 <stopped_at_software_breakpoint>: New field.
6886 * nat/windows-nat.c (windows_thread_info::resume): Clear
6887 stopped_at_software_breakpoint.
6888
8e61ebec
TT
68892020-04-08 Tom Tromey <tromey@adacore.com>
6890
6891 * windows-nat.c (enum thread_disposition_type): New.
6892 (thread_rec): Replace "get_context" parameter with "disposition";
6893 change type.
6894 (windows_add_thread, windows_nat_target::fetch_registers)
6895 (windows_nat_target::store_registers, handle_exception)
6896 (windows_nat_target::resume, get_windows_debug_event)
6897 (windows_nat_target::get_tib_address)
6898 (windows_nat_target::thread_name)
6899 (windows_nat_target::thread_alive): Update.
6900
98a03287
TT
69012020-04-08 Tom Tromey <tromey@adacore.com>
6902
6903 * windows-nat.c (thread_rec): Use windows_thread_info::suspend.
6904 (windows_continue): Use windows_continue::resume.
6905 * nat/windows-nat.h (struct windows_thread_info) <suspend,
6906 resume>: Declare new methods.
6907 * nat/windows-nat.c: New file.
6908 * configure.nat (NATDEPFILES): Add nat/windows-nat.o when needed.
6909
7c7411bc
TT
69102020-04-08 Tom Tromey <tromey@adacore.com>
6911
6912 * windows-nat.c (windows_add_thread, windows_delete_thread)
6913 (windows_nat_target::fetch_registers)
6914 (windows_nat_target::store_registers, fake_create_process)
6915 (windows_nat_target::resume, windows_nat_target::resume)
6916 (get_windows_debug_event, windows_nat_target::wait)
6917 (windows_nat_target::pid_to_str)
6918 (windows_nat_target::get_tib_address)
6919 (windows_nat_target::get_ada_task_ptid)
6920 (windows_nat_target::thread_name)
6921 (windows_nat_target::thread_alive): Use lwp, not tid.
6922
2950fdf7
TT
69232020-04-08 Tom Tromey <tromey@adacore.com>
6924
6925 * windows-nat.c (handle_exception)
6926 (windows_nat_target::thread_name): Update.
6927 * nat/windows-nat.h (windows_thread_info): Remove destructor.
6928 <name>: Now unique_xmalloc_ptr.
6929
62fe396b
TT
69302020-04-08 Tom Tromey <tromey@adacore.com>
6931
6932 * windows-nat.c (thread_rec)
6933 (windows_nat_target::fetch_registers): Update.
6934 * nat/windows-nat.h (struct windows_thread_info) <suspended>:
6935 Update comment.
6936 <debug_registers_changed, reload_context>: Now bool.
6937
e9534bd2
TT
69382020-04-08 Tom Tromey <tromey@adacore.com>
6939
6940 * windows-nat.c (windows_add_thread): Use new.
6941 (windows_init_thread_list, windows_delete_thread): Use delete.
6942 (get_windows_debug_event): Update.
6943 * nat/windows-nat.h (struct windows_thread_info): Add constructor,
6944 destructor, and initializers.
6945
ae1f8880
TT
69462020-04-08 Tom Tromey <tromey@adacore.com>
6947
6948 * windows-nat.c (struct windows_thread_info): Remove.
6949 * nat/windows-nat.h: New file.
6950
55a1e039
TT
69512020-04-08 Tom Tromey <tromey@adacore.com>
6952
6953 * windows-nat.c (struct windows_thread_info) <tid>: Rename from "id".
6954 (thread_rec, windows_add_thread, windows_delete_thread)
6955 (windows_continue): Update.
6956
93366324
TT
69572020-04-08 Tom Tromey <tromey@adacore.com>
6958
6959 * windows-nat.c (struct windows_thread_info): Remove typedef.
6960 (thread_head): Remove.
6961 (thread_list): New global.
6962 (thread_rec, windows_add_thread, windows_init_thread_list)
6963 (windows_delete_thread, windows_continue): Update.
6964
0f2265e2
SM
69652020-04-08 Simon Marchi <simon.marchi@polymtl.ca>
6966
6967 * windows-tdep.h (windows_init_abi): Add comment.
6968 (cygwin_init_abi): New declaration.
6969 * windows-tdep.c: Split signal enumeration in two, one for
6970 Windows and one for Cygwin.
6971 (windows_gdb_signal_to_target): Only deal with signal of the
6972 Windows OS ABI.
6973 (cygwin_gdb_signal_to_target): New function.
6974 (windows_init_abi): Rename to windows_init_abi_common, don't set
6975 gdb_signal_to_target gdbarch method. Add new new function with
6976 this name.
6977 (cygwin_init_abi): New function.
6978 * amd64-windows-tdep.c (amd64_windows_init_abi_common): Add
6979 comment. Don't call windows_init_abi.
6980 (amd64_windows_init_abi): Add comment, call windows_init_abi.
6981 (amd64_cygwin_init_abi): Add comment, call cygwin_init_abi.
6982 * i386-windows-tdep.c (i386_windows_init_abi): Rename to
6983 i386_windows_init_abi_common, don't call windows_init_abi. Add
6984 a new function of this name.
6985 (i386_cygwin_init_abi): New function.
6986 (_initialize_i386_windows_tdep): Bind i386_cygwin_init_abi to
6987 OS ABI Cygwin.
6988
3810f182
SM
69892020-04-08 Simon Marchi <simon.marchi@polymtl.ca>
6990
6991 * dwarf2/read.c (read_gdb_index_from_buffer): Remove objfile
6992 parameter.c.
6993 (dwarf2_read_gdb_index): Update.
6994
063f8e80
KR
69952020-04-07 Kamil Rytarowski <n54@gmx.com>
6996
6997 * nbsd-tdep.c: Include "objfiles.h".
6998 (nbsd_skip_solib_resolver): New.
6999 (nbsd_init_abi): Call set_gdbarch_skip_solib_resolver().
7000
85a9510c 70012020-04-07 Nitika Achra <Nitika.Achra@amd.com>
7002
7003 * dwarf2/loc.c (loclist_describe_location): Call the function decode_debug_loclists_
7004 addresses if DWARF version is 5 or more because DW_LLE_start* or DW_LLE_offset_pair
7005 with DW_LLE_base_addressx are being emitted in DWARFv5.
7006 Add the newly added kind DW_LOC_OFFSET_PAIR also.
7007 The length of location description is an unsigned ULEB integer in DWARFv5 instead of
7008 unsigned integer.
7009
9fc3eaae 70102020-04-07 Nitika Achra <Nitika.Achra@amd.com>
7011
7012 * dwarf2/loc.c (enum debug_loc_kind): Add a new kind DEBUG_LOC_OFFSET_PAIR.
7013 (dwarf2_find_location_expression): Call the function decode_debug_loclists_
7014 addresses if DWARF version is 5 or more. DW_LLE_start* or DW_LLE_offset_pair
7015 with DW_LLE_base_addressx are being emitted in DWARFv5 instead of DW_LLE_GNU*.
7016 Add applicable base address if the entry is DW_LLE_offset_pair from DWO.
7017 (decode_debug_loclists_addresses): Return DEBUG_LOC_OFFSET_PAIR instead of
7018 DEBUG_LOC_START_END in case of DW_LLE_offset_pair.
7019
7020
41144253 70212020-04-07 Nitika Achra <Nitika.Achra@amd.com>
7022
7023 * dwarf2/read.c (cu_debug_loc_section): Added the declaration for the function.
7024 (read_loclist_index): New function definition.
7025 (lookup_loclist_base): New function definition.
7026 (read_loclist_header): New function definition.
7027 (dwarf2_cu): Add loclist_base and loclist_header field.
7028 (dwarf2_locate_dwo_sections): Handle .debug_loclists.dwo section.
7029 (read_full_die_1): Read the value of DW_AT_loclists_base.
7030 (read_attribute_reprocess): Handle DW_FORM_loclistx.
7031 (read_attribute_value): Handle DW_FORM_loclistx.
7032 (skip_one_die): Handle DW_FORM_loclistx.
7033 (loclist_header): New structure declaration.
7034 * dwarf2/attribute.c (form_is_section_offset): Handle DW_FORM_loclistx.
7035
9f4e76a4
SM
70362020-04-07 Simon Marchi <simon.marchi@polymtl.ca>
7037
7038 * dwarf2/read.h (struct dwarf2_psymtab): Remove two-parameters
7039 constructor. Remove `addr` parameter from other constructor and
7040 add `per_cu` parameter.
7041 * dwarf2/read.c (create_partial_symtab): Update.
7042
25c11aca
TV
70432020-04-07 Tom de Vries <tdevries@suse.de>
7044
7045 PR symtab/25796
7046 * dwarf2/read.c (can_have_DW_AT_const_value_p): New function.
7047 (partial_die_info::fixup): Inherit has_const_value.
7048
5707e24b
TV
70492020-04-07 Tom de Vries <tdevries@suse.de>
7050
7051 * psymtab.c (maintenance_check_psymtabs): Skip static LOC_BLOCK
7052 symbols without address.
7053
05f00e22
KR
70542020-04-06 Kamil Rytarowski <n54@gmx.com>
7055
7056 * nbsd-nat.h (struct thread_info): Add forward declaration.
7057 (nbsd_nat_target::thread_alive): Add.
7058 (nbsd_nat_target::thread_name): Likewise.
7059 (nbsd_nat_target::update_thread_list): Likewise.
7060 (update_thread_list::post_attach): Likewise.
7061 (post_attach::pid_to_str): Likewise.
7062 * nbsd-nat.c: Include "gdbthread.h" and "inferior.h".
7063 (nbsd_thread_lister): Add.
7064 (nbsd_nat_target::thread_alive): Likewise.
7065 (nbsd_nat_target::thread_name): Likewise.
7066 (nbsd_add_threads): Likewise.
7067 (update_thread_list::post_attach): Likewise.
7068 (nbsd_nat_target::update_thread_list): Likewise.
7069 (post_attach::pid_to_str): Likewise.
7070
6ee448cc
TT
70712020-04-06 Tom Tromey <tromey@adacore.com>
7072
7073 * ada-valprint.c (print_variant_part): Extract the variant field.
7074 (print_field_values): Use the field as the outer value when
7075 recursing.
7076
dea34e8c
TT
70772020-04-06 Tom Tromey <tromey@adacore.com>
7078
7079 * sh-nbsd-tdep.c: Include nbsd-tdep.h.
7080 * ppc-nbsd-tdep.c: Include nbsd-tdep.h.
7081 * mips-nbsd-tdep.c (mipsnbsd_init_abi): Add missing ";".
7082 * arm-nbsd-tdep.c: Include nbsd-tdep.h.
7083 * hppa-nbsd-tdep.c: Include nbsd-tdep.h.
7084
93689ce9
TT
70852020-04-06 Tom Tromey <tromey@adacore.com>
7086
7087 * dwarf2/read.c (read_base_type) <DW_ATE_complex_float>: Handle
7088 TYPE_CODE_ERROR.
7089
79743962
KR
70902020-04-06 Kamil Rytarowski <n54@gmx.com>
7091
7092 * nbsd-tdep.c: Include "gdbarch.h".
7093 Define enum with NetBSD signal numbers.
7094 (nbsd_gdb_signal_from_target, nbsd_gdb_signal_to_target): New.
7095 * alpha-nbsd-tdep.c (alphanbsd_init_abi): Call nbsd_init_abi().
7096 * amd64-nbsd-tdep.c (amd64nbsd_init_abi): Likewise.
7097 * arm-nbsd-tdep.c (arm_netbsd_elf_init_abi): Likewise.
7098 * hppa-nbsd-tdep.c (hppanbsd_init_abi): Likewise.
7099 * i386-nbsd-tdep.c (i386nbsd_init_abi): Likewise.
7100 * mips-nbsd-tdep.c (nbsd_init_abi): Likewise.
7101 * ppc-nbsd-tdep.c (ppcnbsd_init_abi): Likewise.
7102 * sh-nbsd-tdep.c (shnbsd_init_abi): Likewise.
7103 * sparc-nbsd-tdep.c (sparc32nbsd_init_abi): Likewise.
7104 * sparc64-nbsd-tdep.c (sparc64nbsd_init_abi): Likewise.
7105 * vax-nbsd-tdep.c (vaxnbsd_elf_init_abi): Likewise.
7106
9e7c9a03
HD
71072020-04-03 Hannes Domani <ssbssa@yahoo.de>
7108
7109 PR gdb/25325
7110 * dwarf2/read.c (read_enumeration_type): Fix typed enum attributes.
7111
d9e49b61
TT
71122020-04-03 Tom Tromey <tromey@adacore.com>
7113
7114 * dwarf2/loc.c (disassemble_dwarf_expression) <DW_OP_const_type>:
7115 Read constant block.
7116
e0fc5c3f
SM
71172020-04-02 Simon Marchi <simon.marchi@polymtl.ca>
7118
7119 * gdb_bfd.h: Include gdbsupport/byte-vector.h.
7120 (gdb_bfd_get_full_section_contents): New declaration.
7121 * gdb_bfd.c (gdb_bfd_get_full_section_contents): New function.
7122 * windows-tdep.c (is_linked_with_cygwin_dll): Use
7123 gdb_bfd_get_full_section_contents.
7124
e2ff18a0
SM
71252020-04-02 Simon Marchi <simon.marchi@polymtl.ca>
7126
7127 * exec.c (build_section_table): Replace internal_error with
7128 gdb_assert.
7129 (section_table_xfer_memory_partial): Likewise.
7130 * mdebugread.c (parse_partial_symbols): Likewise.
7131 * psymtab.c (lookup_partial_symbol): Likewise.
7132 * utils.c (wrap_here): Likewise.
7133
0830d301
TT
71342020-04-02 Tom Tromey <tromey@adacore.com>
7135
7136 * f-lang.c (build_fortran_types): Use arch_type to initialize
7137 builtin_complex_s32 in the TYPE_CODE_ERROR case.
7138
e7da7f8f
TT
71392020-04-02 Tom Tromey <tromey@adacore.com>
7140
7141 * dwarf2/read.c (partial_die_info::read): Do not create a vector
7142 of attributes.
7143
c90d28ac
AB
71442020-04-02 Andrew Burgess <andrew.burgess@embecosm.com>
7145 Bernd Edlinger <bernd.edlinger@hotmail.de>
7146 Tom Tromey <tromey@adacore.com>
7147
7148 * buildsym.c (buildsym_compunit::record_line): Remove
7149 deduplication code.
7150
1aa98955
TV
71512020-04-02 Tom de Vries <tdevries@suse.de>
7152
7153 PR ada/24671
7154 * dwarf2/read.c (dw2_map_matching_symbols): Handle -readnow.
7155
d3214198
TV
71562020-04-02 Tom de Vries <tdevries@suse.de>
7157
7158 * dwarf2/read.c (dwarf2_gdb_index_functions,
7159 dwarf2_debug_names_functions): Init lookup_global_symbol_language with
7160 NULL.
7161 * psymtab.c (psym_lookup_global_symbol_language): New function.
7162 (psym_functions): Init psym_lookup_global_symbol_language with
7163 psym_lookup_global_symbol_language.
7164 * symfile-debug.c (debug_sym_quick_functions): Init
7165 lookup_global_symbol_language with NULL.
7166 * symfile.c (set_initial_language): Remove fixme comment.
7167 * symfile.h (struct quick_symbol_functions): Add
7168 lookup_global_symbol_language.
7169 * symtab.c (find_quick_global_symbol_language): New function.
7170 (find_main_name): Use find_quick_global_symbol_language.
7171
2836752f
SM
71722020-04-01 Simon Marchi <simon.marchi@polymtl.ca>
7173
7174 * windows-tdep.c (is_linked_with_cygwin_dll): Fix style.
7175
64dc2d4b
BE
71762020-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
7177
7178 * buildsym.c (record_line): Fix undefined behavior and preserve
7179 lines at eof.
7180
bbe3dc41
BE
71812020-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
7182
7183 * buildsym.c (record_line): Fix the resizing condition.
7184
6b4a335b
TT
71852020-04-01 Tom Tromey <tom@tromey.com>
7186
7187 * value.h (value_literal_complex): Add comment.
7188 * valops.c (value_literal_complex): Refer to value.h.
7189
3638a098
TT
71902020-04-01 Tom Tromey <tom@tromey.com>
7191
7192 * c-exp.y (FLOAT_KEYWORD, COMPLEX): New tokens.
7193 (scalar_type): New rule, from typebase.
7194 (typebase): Use scalar_type. Recognize complex types.
7195 (field_name): Handle FLOAT_KEYWORD.
7196 (ident_tokens): Add _Complex and __complex__.
7197
c34e8714
TT
71982020-04-01 Tom Tromey <tom@tromey.com>
7199
7200 PR exp/25299:
7201 * valarith.c (promotion_type, complex_binop): New functions.
7202 (scalar_binop): Handle complex numbers. Use promotion_type.
7203 (value_pos, value_neg, value_complement): Handle complex numbers.
7204
fa649bb7
TT
72052020-04-01 Tom Tromey <tom@tromey.com>
7206
7207 * c-exp.y (COMPLEX_INT, COMPLEX_FLOAT): New tokens.
7208 (exp) <COMPLEX_INT, COMPLEX_FLOAT>: New rules.
7209 (parse_number): Handle complex numbers.
7210
981c08ce
TT
72112020-04-01 Tom Tromey <tom@tromey.com>
7212
7213 * c-valprint.c (c_decorations): Change complex suffix to "i".
7214
4c99290d
TT
72152020-04-01 Tom Tromey <tom@tromey.com>
7216
7217 * valprint.c (generic_value_print_complex): Use accessors.
7218 * value.h (value_real_part, value_imaginary_part): Declare.
7219 * valops.c (value_real_part, value_imaginary_part): New
7220 functions.
7221 * value.c (creal_internal_fn, cimag_internal_fn): Use accessors.
7222
5b930b45
TT
72232020-04-01 Tom Tromey <tom@tromey.com>
7224
7225 * stabsread.c (rs6000_builtin_type, read_sun_floating_type)
7226 (read_range_type): Update.
7227 * mdebugread.c (basic_type): Update.
7228 * go-lang.c (build_go_types): Use init_complex_type.
7229 * gdbtypes.h (struct main_type) <complex_type>: New member.
7230 (init_complex_type): Update.
7231 (arch_complex_type): Don't declare.
7232 * gdbtypes.c (init_complex_type): Remove "objfile" parameter.
7233 Make name if none given. Use alloc_type_copy. Look for cached
7234 complex type.
7235 (arch_complex_type): Remove.
7236 (gdbtypes_post_init): Use init_complex_type.
7237 * f-lang.c (build_fortran_types): Use init_complex_type.
7238 * dwarf2/read.c (read_base_type): Update.
7239 * d-lang.c (build_d_types): Use init_complex_type.
7240 * ctfread.c (read_base_type): Update.
7241
53cccef1
TBA
72422020-04-01 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
7243
7244 * infrun.c (stop_all_threads): Update assertion, plus when
7245 stopping threads, take into account that we might be trying
7246 to stop an all-stop target.
7247 (stop_waiting): Call 'stop_all_threads' if there exists a
7248 non-stop target.
7249
a0714d30
TBA
72502020-04-01 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
7251
7252 * target.h (exists_non_stop_target): New function declaration.
7253 * target.c (exists_non_stop_target): New function.
7254
60e22c1e
HD
72552020-04-01 Hannes Domani <ssbssa@yahoo.de>
7256
7257 PR gdb/24789
7258 * eval.c (is_integral_or_integral_reference): New function.
7259 (evaluate_subexp_standard): Allow integer references in
7260 pointer arithmetic.
7261
e139a727
TBA
72622020-04-01 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
7263
7264 * remote.c (remote_target::remote_parse_stop_reply): Remove the
7265 check for no ptid in the stop reply when the target is non-stop.
7266
e0802d59
TT
72672020-04-01 Tom Tromey <tromey@adacore.com>
7268
7269 * symtab.h (class lookup_name_info) <lookup_name_info>: Change
7270 "name" parameter to rvalue reference. Initialize m_name_holder.
7271 <lookup_name_info>: New overloads.
7272 <name>: Return gdb::string_view.
7273 <c_str>: New method.
7274 <make_ignore_params>: Update.
7275 <search_name_hash>: Update.
7276 <language_lookup_name>: Return const char *.
7277 <m_name>: Change type.
7278 * symtab.c (demangle_for_lookup_info::demangle_for_lookup_info)
7279 (demangle_for_lookup_info::demangle_for_lookup_info): Update.
7280 (lookup_name_info::match_any): Update.
7281 * psymtab.c (match_partial_symbol, lookup_partial_symbol):
7282 Update.
7283 * minsyms.c (linkage_name_str): Update.
7284 * language.c (default_symbol_name_matcher): Update.
7285 * dwarf2/read.c (mapped_index_base::find_name_components_bounds):
7286 Update.
7287 * ada-lang.c (ada_fold_name): Change parameter to string_view.
7288 (ada_lookup_name_info::ada_lookup_name_info): Update.
7289 (literal_symbol_name_matcher): Update.
7290
8c072cb6
TT
72912020-04-01 Tom Tromey <tromey@adacore.com>
7292
7293 * psymtab.c (psymtab_search_name): Remove function.
7294 (psym_lookup_symbol): Create search name and lookup name here.
7295 (lookup_partial_symbol): Remove "name" parameter; add
7296 lookup_name.
7297 (psym_expand_symtabs_for_function): Update.
7298
6f29a534
TT
72992020-03-31 Joel Jones <joelkevinjones@gmail.com>
7300
7301 PR tui/25597:
7302 * python/py-tui.c: Include gdb_curses.h inside of #ifdef TUI.
7303
af62665e
TT
73042020-03-31 Tom Tromey <tromey@adacore.com>
7305
7306 * dwarf2/abbrev.c (abbrev_table::read): Conditionally call
7307 memcpy.
7308
d1a89da5
NC
73092020-03-30 Nelson Chu <nelson.chu@sifive.com>
7310
7311 * features/riscv/32bit-csr.xml: Regenerated.
7312 * features/riscv/64bit-csr.xml: Regenerated.
7313
d8af9068
TT
73142020-03-30 Tom Tromey <tromey@adacore.com>
7315
7316 * ada-valprint.c (print_variant_part): Update.
7317 * ada-lang.h (ada_which_variant_applies): Update.
7318 * ada-lang.c (ada_which_variant_applies): Remove outer_type and
7319 outer_valaddr parameters; replace with "outer" value parameter.
7320 (to_fixed_variant_branch_type): Update.
7321
227c0bf4
PFC
73222020-03-30 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
7323
7324 * ppc-linux-nat.c: Include <algorithm>, <unordered_map>, and
7325 <list>. Remove inclusion of observable.h.
7326 (PPC_DEBUG_CURRENT_VERSION): Move up define.
7327 (struct arch_lwp_info): New struct.
7328 (class ppc_linux_dreg_interface): New class.
7329 (struct ppc_linux_process_info): New struct.
7330 (struct ppc_linux_nat_target) <low_delete_thread, low_new_fork>
7331 <low_new_clone, low_forget_process, low_prepare_to_resume>
7332 <copy_thread_dreg_state, mark_thread_stale>
7333 <mark_debug_registers_changed, register_hw_breakpoint>
7334 <clear_hw_breakpoint, register_wp, clear_wp>
7335 <can_use_watchpoint_cond_accel, calculate_dvc, check_condition>
7336 <num_memory_accesses, get_trigger_type>
7337 <create_watchpoint_request, hwdebug_point_cmp>
7338 <init_arch_lwp_info, get_arch_lwp_info>
7339 <low_stopped_by_watchpoint, low_stopped_data_address>: Declare as
7340 methods.
7341 <struct ptid_hash>: New inner struct.
7342 <m_dreg_interface, m_process_info, m_installed_hw_bps>: Declare
7343 members.
7344 (saved_dabr_value, hwdebug_info, max_slots_number)
7345 (struct hw_break_tuple, struct thread_points, ppc_threads)
7346 (have_ptrace_hwdebug_interface)
7347 (hwdebug_find_thread_points_by_tid)
7348 (hwdebug_insert_point, hwdebug_remove_point): Remove.
7349 (ppc_linux_nat_target::can_use_hw_breakpoint): Use
7350 m_dreg_interface, remove call to PTRACE_SET_DEBUGREG.
7351 (ppc_linux_nat_target::region_ok_for_hw_watchpoint): Add comment,
7352 use m_dreg_interface.
7353 (hwdebug_point_cmp): Change to...
7354 (ppc_linux_nat_target::hwdebug_point_cmp): ...this method. Use
7355 reference arguments instead of pointers.
7356 (ppc_linux_nat_target::ranged_break_num_registers): Use
7357 m_dreg_interface.
7358 (ppc_linux_nat_target::insert_hw_breakpoint): Add comment, use
7359 m_dreg_interface. Call register_hw_breakpoint.
7360 (ppc_linux_nat_target::remove_hw_breakpoint): Add comment, use
7361 m_dreg_interface. Call clear_hw_breakpoint.
7362 (get_trigger_type): Change to...
7363 (ppc_linux_nat_target::get_trigger_type): ...this method. Add
7364 comment.
7365 (ppc_linux_nat_target::insert_mask_watchpoint): Update comment,
7366 use m_dreg_interface. Call register_hw_breakpoint.
7367 (ppc_linux_nat_target::remove_mask_watchpoint): Update comment,
7368 use m_dreg_interface. Call clear_hw_breakpoint.
7369 (can_use_watchpoint_cond_accel): Change to...
7370 (ppc_linux_nat_target::can_use_watchpoint_cond_accel): ...this
7371 method. Update comment, use m_dreg_interface and
7372 m_process_info.
7373 (calculate_dvc): Change to...
7374 (ppc_linux_nat_target::calculate_dvc): ...this method. Use
7375 m_dreg_interface.
7376 (num_memory_accesses): Change to...
7377 (ppc_linux_nat_target::num_memory_accesses): ...this method.
7378 (check_condition): Change to...
7379 (ppc_linux_nat_target::check_condition): ...this method.
7380 (ppc_linux_nat_target::can_accel_watchpoint_condition): Update
7381 comment, use m_dreg_interface.
7382 (create_watchpoint_request): Change to...
7383 (ppc_linux_nat_target::create_watchpoint_request): ...this
7384 method. Use m_dreg_interface.
7385 (ppc_linux_nat_target::insert_watchpoint): Add comment, use
7386 m_dreg_interface. Call register_hw_breakpoint or register_wp.
7387 (ppc_linux_nat_target::remove_watchpoint): Add comment, use
7388 m_dreg_interface. Call clear_hw_breakpoint or clear_wp.
7389 (ppc_linux_nat_target::low_forget_process)
7390 (ppc_linux_nat_target::low_new_fork)
7391 (ppc_linux_nat_target::low_new_clone)
7392 (ppc_linux_nat_target::low_delete_thread)
7393 (ppc_linux_nat_target::low_prepare_to_resume): New methods.
7394 (ppc_linux_nat_target::low_new_thread): Remove previous logic,
7395 only call mark_thread_stale.
7396 (ppc_linux_thread_exit): Remove.
7397 (ppc_linux_nat_target::stopped_data_address): Change to...
7398 (ppc_linux_nat_target::low_stopped_data_address): This. Add
7399 comment, use m_dreg_interface and m_thread_hw_breakpoints.
7400 (ppc_linux_nat_target::stopped_by_watchpoint): Change to...
7401 (ppc_linux_nat_target::stopped_by_watchpoint): This. Add
7402 comment. Call low_stopped_data_address.
7403 (ppc_linux_nat_target::watchpoint_addr_within_range): Use
7404 m_dreg_interface.
7405 (ppc_linux_nat_target::masked_watch_num_registers): Use
7406 m_dreg_interface.
7407 (ppc_linux_nat_target::copy_thread_dreg_state)
7408 (ppc_linux_nat_target::mark_thread_stale)
7409 (ppc_linux_nat_target::mark_debug_registers_changed)
7410 (ppc_linux_nat_target::register_hw_breakpoint)
7411 (ppc_linux_nat_target::clear_hw_breakpoint)
7412 (ppc_linux_nat_target::register_wp)
7413 (ppc_linux_nat_target::clear_wp)
7414 (ppc_linux_nat_target::init_arch_lwp_info)
7415 (ppc_linux_nat_target::get_arch_lwp_info): New methods.
7416 (_initialize_ppc_linux_nat): Remove observer callback.
7417
4db10d8f
PFC
74182020-03-30 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
7419
7420 * ppc-linux-nat.c (ppc_linux_nat_target::store_registers)
7421 (ppc_linux_nat_target::auxv_parse)
7422 (ppc_linux_nat_target::read_description)
7423 (supply_gregset, fill_gregset, supply_fpregset, fill_fpregset):
7424 Move up.
7425
1310c1b0
PFC
74262020-03-30 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
7427
7428 * linux-nat.h (low_new_clone): New method.
7429 * linux-nat.c (linux_handle_extended_wait): Call low_new_clone.
7430
69b037c3
SM
74312020-03-29 Simon Marchi <simon.marchi@polymtl.ca>
7432
7433 * dbxread.c (dbx_psymtab_to_symtab_1): Rename to...
7434 (dbx_expand_psymtab): ... this.
7435 (start_psymtab): Update.
7436 * mdebugread.c (psymtab_to_symtab_1): Rename to...
7437 (mdebug_expand_psymtab): ... this.
7438 (parse_partial_symbols): Update.
7439 (new_psymtab): Update.
7440 * xcoffread.c (xcoff_psymtab_to_symtab_1): Rename to...
7441 (xcoff_expand_psymtab): ... this.
7442 (xcoff_start_psymtab): Update.
7443
48993951
SM
74442020-03-29 Simon Marchi <simon.marchi@polymtl.ca>
7445
7446 * psympriv.h (partial_symtab) <read_dependencies>: Rename to...
7447 <expand_dependencies>: ... this.
7448 * psymtab.c (partial_symtab::read_dependencies): Rename to...
7449 (partial_symtab::expand_dependencies): ... this.
7450 * dwarf2/read.c (dwarf2_include_psymtab) <expand_psymtab>:
7451 Update.
7452 (dwarf2_psymtab::expand_psymtab): Update.
7453 * dbxread.c (dbx_psymtab_to_symtab_1): Update.
7454 * mdebugread.c (psymtab_to_symtab_1): Update.
7455 * xcoffread.c (xcoff_psymtab_to_symtab_1): Update.
7456
3ad83046
SM
74572020-03-29 Simon Marchi <simon.marchi@polymtl.ca>
7458
7459 * psympriv.h (discard_psymtab): Remove.
7460 * dbxread.c (dbx_end_psymtab): Update.
7461 * xcoffread.c (xcoff_end_psymtab): Update.
7462
4d1b9ab6
TT
74632020-03-28 Tom Tromey <tom@tromey.com>
7464
7465 * dwarf2/attribute.h (struct attribute) <form_is_constant>: Update
7466 comment.
7467
f1749218
TT
74682020-03-28 Tom Tromey <tom@tromey.com>
7469
7470 * dwarf2/read.c (read_attribute_reprocess): Fix formatting.
7471
ebea7626
HD
74722020-03-27 Hannes Domani <ssbssa@yahoo.de>
7473
7474 * windows-nat.c (windows_add_all_dlls): Fix system dll paths.
7475
a879b4d5
JB
74762020-03-26 John Baldwin <jhb@FreeBSD.org>
7477
7478 * fbsd-tdep.c (fbsd_print_auxv_entry): Handle AT_FREEBSD_BSDFLAGS.
7479
0826b30a
TT
74802020-03-26 Tom Tromey <tom@tromey.com>
7481
7482 * dwarf2/read.c (handle_data_member_location, dwarf2_add_field)
7483 (mark_common_block_symbol_computed, read_tag_string_type)
7484 (attr_to_dynamic_prop, read_subrange_type): Update.
7485 (dwarf2_get_ref_die_offset, dwarf2_get_attr_constant_value): Move
7486 to be methods on struct attribute.
7487 (skip_one_die, process_imported_unit_die, read_namespace_alias)
7488 (read_call_site_scope, partial_die_info::read)
7489 (partial_die_info::read, lookup_die_type, follow_die_ref):
7490 Update.
7491 * dwarf2/attribute.c (attribute::get_ref_die_offset): New method,
7492 from dwarf2_get_ref_die_offset.
7493 (attribute::constant_value): New method, from
7494 dwarf2_get_attr_constant_value.
7495 * dwarf2/attribute.h (struct attribute) <get_ref_die_offset>:
7496 Declare method.
7497 <constant_value>: New method.
7498
2b2558bf
TT
74992020-03-26 Tom Tromey <tom@tromey.com>
7500
7501 * dwarf2/read.c (dwarf_unit_type_name, dwarf_tag_name)
7502 (dwarf_attr_name, dwarf_form_name, dwarf_bool_name)
7503 (dwarf_type_encoding_name): Move to stringify.c.
7504 * Makefile.in (COMMON_SFILES): Add dwarf2/stringify.c.
7505 * dwarf2/stringify.c: New file.
7506 * dwarf2/stringify.h: New file.
7507
eeb64781
TT
75082020-03-26 Tom Tromey <tom@tromey.com>
7509
7510 * dwarf2/die.h (struct die_info) <addr_base, ranges_base>:
7511 Rewrite.
7512
a39fdb41
TT
75132020-03-26 Tom Tromey <tom@tromey.com>
7514
7515 * dwarf2/die.h (struct die_info) <addr_base, ranges_base>: New
7516 methods.
7517 * dwarf2/read.c (lookup_addr_base): Move to die.h.
7518 (lookup_ranges_base): Likewise.
7519 (read_cutu_die_from_dwo, read_full_die_1): Update.
7520
436c571c
TT
75212020-03-26 Tom Tromey <tom@tromey.com>
7522
7523 * dwarf2/read.c (read_import_statement, read_file_scope)
7524 (read_type_unit_scope, inherit_abstract_dies, read_func_scope)
7525 (read_lexical_block_scope, read_call_site_scope)
7526 (dwarf2_get_subprogram_pc_bounds, get_scope_pc_bounds)
7527 (handle_struct_member_die, process_structure_scope)
7528 (update_enumeration_type_from_children)
7529 (process_enumeration_scope, read_array_type, read_common_block)
7530 (read_namespace, read_module, read_subroutine_type): Update.
7531 (sibling_die): Remove.
7532
052c8bb8
TT
75332020-03-26 Tom Tromey <tom@tromey.com>
7534
7535 * dwarf2/read.c (lookup_addr_base, lookup_ranges_base)
7536 (build_type_psymtabs_reader, read_structure_type)
7537 (read_enumeration_type, read_full_die_1): Update.
7538 (dwarf2_attr_no_follow): Move to die.h.
7539 * dwarf2/die.h (struct die_info) <attr>: New method.
7540
2b24b6e4
TT
75412020-03-26 Tom Tromey <tom@tromey.com>
7542
7543 * dwarf2/read.c (struct dwarf2_cu) <base_known>: Remove.
7544 <base_address>: Now an optional.
7545 (dwarf2_find_base_address, dwarf2_rnglists_process)
7546 (dwarf2_ranges_process, fill_in_loclist_baton)
7547 (dwarf2_symbol_mark_computed): Update.
7548
c2d50fd0
TT
75492020-03-26 Tom Tromey <tom@tromey.com>
7550
7551 * dwarf2/read.c (struct die_info): Move to die.h.
7552 * dwarf2/die.h: New file.
7553
0df7ad3a
TT
75542020-03-26 Tom Tromey <tom@tromey.com>
7555
7556 * dwarf2/line-header.h (dwarf_decode_line_header): Declare.
7557 * dwarf2/read.c
7558 (dwarf2_statement_list_fits_in_line_number_section_complaint):
7559 Move to line-header.c.
7560 (read_checked_initial_length_and_offset, read_formatted_entries):
7561 Likewise.
7562 (dwarf_decode_line_header): Split into two.
7563 * dwarf2/line-header.c
7564 (dwarf2_statement_list_fits_in_line_number_section_complaint):
7565 Move from read.c.
7566 (read_checked_initial_length_and_offset, read_formatted_entries):
7567 Likewise.
7568 (dwarf_decode_line_header): New function, split from read.c.
7569
86c0bb4c
TT
75702020-03-26 Tom Tromey <tom@tromey.com>
7571
7572 * dwarf2/read.h (struct dwarf2_per_objfile) <read_line_string>:
7573 Declare method.
7574 * dwarf2/read.c (read_attribute_value): Update.
7575 (dwarf2_per_objfile::read_line_string): Rename from
7576 read_indirect_line_string.
7577 (read_formatted_entries): Update.
7578
2ef46c2f
TT
75792020-03-26 Tom Tromey <tom@tromey.com>
7580
7581 * dwarf2/macro.c (dwarf_decode_macro_bytes): Use objfile local
7582 variable.
7583
4f9c1eda
TT
75842020-03-26 Tom Tromey <tom@tromey.com>
7585
7586 * dwarf2/macro.h (dwarf_decode_macros): Make section parameter
7587 const.
7588 * dwarf2/macro.c (skip_form_bytes, skip_unknown_opcode)
7589 (dwarf_decode_macro_bytes, dwarf_decode_macros): Make section
7590 parameter const.
7591
5a0e026f
TT
75922020-03-26 Tom Tromey <tom@tromey.com>
7593
7594 * dwarf2/read.c (dwarf_decode_macros): Make "lh" const.
7595 * dwarf2/macro.h (dwarf_decode_macros): Constify "lh" parameter.
7596 * dwarf2/macro.c (macro_start_file): Constify "lh" parameter.
7597 (dwarf_decode_macro_bytes, dwarf_decode_macros): Likewise.
7598
8844c11b
TT
75992020-03-26 Tom Tromey <tom@tromey.com>
7600
7601 * dwarf2/line-header.h (struct line_header) <is_valid_file_index,
7602 file_names_size, file_full_name, file_file_name>: Use const.
7603 <file_name_at, file_names>: Add const overload.
7604 * dwarf2/line-header.c (line_header::file_file_name)
7605 (line_header::file_full_name): Update.
7606
c90ec28a
TT
76072020-03-26 Tom Tromey <tom@tromey.com>
7608
7609 * dwarf2/read.c (dwarf2_macro_malformed_definition_complaint)
7610 (macro_start_file, consume_improper_spaces)
7611 (parse_macro_definition, skip_form_bytes, skip_unknown_opcode)
7612 (dwarf_parse_macro_header, dwarf_decode_macro_bytes)
7613 (dwarf_decode_macros): Move to macro.c.
7614 * dwarf2/macro.c: New file.
7615 * dwarf2/macro.h: New file.
7616 * Makefile.in (COMMON_SFILES): Add dwarf2/macro.c.
7617
4f44ae6c
TT
76182020-03-26 Tom Tromey <tom@tromey.com>
7619
7620 * dwarf2/section.h (struct dwarf2_section_info) <read_string>: New
7621 method.
7622 * dwarf2/section.c: New method. From
7623 read_indirect_string_at_offset_from.
7624 * dwarf2/read.c (mapped_debug_names::namei_to_name): Update.
7625 (read_indirect_string_at_offset_from): Move to section.c.
7626 (read_indirect_string_at_offset): Rewrite.
7627 (read_indirect_line_string_at_offset): Remove.
7628 (read_indirect_string, read_indirect_line_string)
7629 (dwarf_decode_macro_bytes): Update.
7630
a0194fa8
TT
76312020-03-26 Tom Tromey <tom@tromey.com>
7632
7633 * dwarf2/section.h (struct dwarf2_section_info)
7634 <overload_complaint>: Declare.
7635 (dwarf2_section_buffer_overflow_complaint): Don't declare.
7636 * dwarf2/section.c (dwarf2_section_info::overflow_complaint):
7637 Rename from dwarf2_section_buffer_overflow_complaint.
7638 * dwarf2/read.c (skip_one_die, partial_die_info::read)
7639 (skip_form_bytes, dwarf_decode_macro_bytes): Update.
7640
3d27bbdb
TT
76412020-03-26 Tom Tromey <tom@tromey.com>
7642
7643 * dwarf2/section.h (dwarf2_section_buffer_overflow_complaint):
7644 Declare.
7645 * dwarf2/section.c (dwarf2_section_buffer_overflow_complaint):
7646 Move from read.c.
7647 * dwarf2/read.c (dwarf2_section_buffer_overflow_complaint): Move
7648 to section.c.
7649
9eac9650
TT
76502020-03-26 Tom Tromey <tom@tromey.com>
7651
7652 * dwarf2/read.c (dwarf_decode_macros): Split into two overloads.
7653
bf80d710
TT
76542020-03-26 Tom Tromey <tom@tromey.com>
7655
7656 * dwarf2/read.c (macro_start_file): Change "cu" parameter to
7657 "builder".
7658 (dwarf_decode_macro_bytes): Likewise. Add dwarf2_per_objfile
7659 parameter.
7660 (dwarf_decode_macros): Update.
7661
0314b390
TT
76622020-03-26 Tom Tromey <tom@tromey.com>
7663
7664 * dwarf2/read.c (read_attribute_value): Update.
7665 (read_indirect_string_from_dwz): Move to dwz.c; change into
7666 method.
7667 (dwarf_decode_macro_bytes): Update.
7668 * dwarf2/dwz.h (struct dwz_file) <read_string>: Declare method.
7669 * dwarf2/dwz.c: New file.
7670 * Makefile.in (COMMON_SFILES): Add dwz.c.
7671
9fda78b6
TT
76722020-03-26 Tom Tromey <tom@tromey.com>
7673
7674 * dwarf2/read.h (struct dwz_file): Move to dwz.h.
7675 * dwarf2/read.c: Add include.
7676 * dwarf2/index-write.c: Add include.
7677 * dwarf2/index-cache.c: Add include.
7678 * dwarf2/dwz.h: New file.
7679
33aa3c10
TT
76802020-03-25 Tom Tromey <tom@tromey.com>
7681
7682 * compile/compile-object-load.c (get_out_value_type): Mention
7683 correct symbol name in error message.
7684
d503b685
HD
76852020-03-25 Hannes Domani <ssbssa@yahoo.de>
7686
7687 * windows-nat.c (windows_add_all_dlls): Fix system dll paths.
7688
7b1eff95
TV
76892020-03-25 Tom de Vries <tdevries@suse.de>
7690
7691 * symtab.h (is_main_symtab_of_compunit_symtab): New function.
7692 * symmisc.c (dump_symtab_1): Print user and includes fields.
7693 (maintenance_info_symtabs): Same.
7694
dd895392
AB
76952020-03-25 Andrew Burgess <andrew.burgess@embecosm.com>
7696
7697 PR gdb/25534
7698 * riscv-tdep.c (riscv_arg_info::c_offset): Update comment.
7699 (riscv_regcache_cooked_write): New function.
7700 (riscv_push_dummy_call): Use new function.
7701 (riscv_return_value): Likewise.
7702
5ab2fbf1
SM
77032020-03-24 Simon Marchi <simon.marchi@polymtl.ca>
7704
7705 * fbsd-nat.c (fbsd_nat_target::follow_fork): Change bool to int.
7706 * fbsd-nat.h (class fbsd_nat_target) <follow_fork>: Likewise.
7707 * inf-ptrace.c (inf_ptrace_target::follow_fork): Likewise.
7708 * inf-ptrace.h (struct inf_ptrace_target) <follow_fork>: Likewise.
7709 * infrun.c (follow_fork): Likewise.
7710 (follow_fork_inferior): Likewise.
7711 * linux-nat.c (linux_nat_target::follow_fork): Likewise.
7712 * linux-nat.h (class linux_nat_target): Likewise.
7713 * remote.c (class remote_target) <follow_fork>: Likewise.
7714 (remote_target::follow_fork): Likewise.
7715 * target-delegates.c: Re-generate.
7716 * target.c (default_follow_fork): Likewise.
7717 (target_follow_fork): Likewise.
7718 * target.h (struct target_ops) <follow_fork>: Likewise.
7719 (target_follow_fork): Likewise.
7720
a64fafb5
TV
77212020-03-24 Tom de Vries <tdevries@suse.de>
7722
7723 * psymtab.c (maintenance_info_psymtabs): Print user field.
7724
fe26d3a3
TT
77252020-03-20 Tom Tromey <tromey@adacore.com>
7726
7727 * dwarf2/loc.h (dwarf2_evaluate_property): Make "addr_stack"
7728 const.
7729 * dwarf2/loc.c (dwarf2_evaluate_property): Make "addr_stack"
7730 const.
7731
c884cc46
SM
77322020-03-20 Simon Marchi <simon.marchi@efficios.com>
7733
7734 * ptrace.m4: Don't check for ptrace declaration.
7735 * config.in: Re-generate.
7736 * configure: Re-generate.
7737 * nat/gdb_ptrace.h: Don't declare ptrace if HAVE_DECL_PTRACE is
7738 not defined.
7739
1ff700c2
KR
77402020-03-20 Kamil Rytarowski <n54@gmx.com>
7741
7742 * amd64-bsd-nat.c (gdb_ptrace): Change return type from `int' to
7743 `PTRACE_TYPE_RET'.
7744 * i386-bsd-nat.c (gdb_ptrace): Likewise.
7745 * sparc-nat.c (gdb_ptrace): Likewise.
7746 * x86-bsd-nat.c (gdb_ptrace): Likewise.
7747
f7d4f0b1
TT
77482020-03-20 Tom Tromey <tromey@adacore.com>
7749
7750 * c-exp.y (lex_one_token): Fix assert.
7751
f67210ff
TT
77522020-03-20 Tom Tromey <tromey@adacore.com>
7753
7754 * ada-tasks.c (read_atcb): Use smaller length in strncpy call.
7755 * linux-tdep.c (linux_fill_prpsinfo): Use smaller length in
7756 strncpy call.
7757
1773be9e
TT
77582020-03-20 Tom Tromey <tromey@adacore.com>
7759
7760 * symmisc.c (maintenance_print_one_line_table): Use ui_out.
7761
70304be9
TT
77622020-03-20 Tom Tromey <tromey@adacore.com>
7763
7764 * ada-valprint.c (print_variant_part): Remove parameters; switch
7765 to value-based API.
7766 (print_field_values): Likewise.
7767 (ada_val_print_struct_union): Likewise.
7768 (ada_value_print_1): Update.
7769
9faa006d
KR
77702020-03-20 Kamil Rytarowski <n54@gmx.com>
7771
7772 * ppc-nbsd-nat.c (ppc_nbsd_nat_target): Inherit from
7773 nbsd_nat_target instead of inf_ptrace_target.
7774 * ppc-nbsd-nat.c: Include "nbsd-nat.h", as we are now using
7775 nbsd_nat_target.
7776
4a90f062
KR
77772020-03-20 Kamil Rytarowski <n54@gmx.com>
7778
7779 * hppa-nbsd-nat.c (fetch_registers): New variable lwp and pass
7780 it to the ptrace call.
7781 * (store_registers): Likewise.
7782
77832020-03-20 Kamil Rytarowski <n54@gmx.com>
c7da12c7
KR
7784
7785 * ppc-nbsd-nat.c (fetch_registers): New variable lwp and pass
7786 it to the ptrace call.
7787 * (store_registers): Likewise.
7788
2d07da27
LM
77892020-03-19 Luis Machado <luis.machado@linaro.org>
7790
7791 * nat/aarch64-sve-linux-ptrace.c (aarch64_sve_set_vq): If vg is not
7792 valid, fetch vg value from ptrace.
7793
f09db380
KR
77942020-03-19 Kamil Rytarowski <n54@gmx.com>
7795 * inf-ptrace.h: Disable get_ptrace_pid on NetBSD.
7796 * inf-ptrace.c: Likewise.
7797 * (gdb_ptrace): Add.
7798 * (inf_ptrace_target::resume): Update.
7799 * (inf_ptrace_target::xfer_partial): Likewise.
7800 * (inf_ptrace_peek_poke): Change argument `pid' to `ptid'.
7801 * (inf_ptrace_peek_poke): Update.
7802
fcc7376e
KR
78032020-03-19 Kamil Rytarowski <n54@gmx.com>
7804
7805 * x86-bsd-nat.c (gdb_ptrace): New.
7806 * (x86bsd_dr_set): Add new argument `ptid'.
7807 * (x86bsd_dr_get, x86bsd_dr_set, x86bsd_dr_set_control,
7808 x86bsd_dr_set_addr): Update.
7809
cada5fc9
AB
78102020-03-19 Andrew Burgess <andrew.burgess@embecosm.com>
7811
7812 * remote.c (remote_target::process_stop_reply): Handle events for
7813 all threads differently.
7814
19a2740f
AB
78152020-03-19 Andrew Burgess <andrew.burgess@embecosm.com>
7816
7817 * completer.c (completion_tracker::remove_completion): Define new
7818 function.
7819 * completer.h (completion_tracker::remove_completion): Declare new
7820 function.
7821 * symtab.c (completion_list_add_symbol): Remove aliasing msymbols
7822 when adding a C++ function symbol.
7823
724fd9ba
AB
78242020-03-19 Andrew Burgess <andrew.burgess@embecosm.com>
7825
7826 * completer.c (completion_tracker::completion_hash_entry): Define
7827 new class.
7828 (advance_to_filename_complete_word_point): Call
7829 recompute_lowest_common_denominator.
7830 (completion_tracker::completion_tracker): Call discard_completions
7831 to setup the hash table.
7832 (completion_tracker::discard_completions): Allow for being called
7833 from the constructor, pass new equal function, and element deleter
7834 when constructing the hash table. Initialise new class member
7835 variables.
7836 (completion_tracker::maybe_add_completion): Remove use of
7837 m_entries_vec, and store more information into m_entries_hash.
7838 (completion_tracker::recompute_lcd_visitor): New function, most
7839 content taken from...
7840 (completion_tracker::recompute_lowest_common_denominator):
7841 ...here, this now just visits each item in the hash calling the
7842 above visitor.
7843 (completion_tracker::build_completion_result): Remove use of
7844 m_entries_vec, call recompute_lowest_common_denominator.
7845 * completer.h (completion_tracker::have_completions): Remove use
7846 of m_entries_vec.
7847 (completion_tracker::completion_hash_entry): Declare new class.
7848 (completion_tracker::recompute_lowest_common_denominator): Change
7849 function signature.
7850 (completion_tracker::recompute_lcd_visitor): Declare new function.
7851 (completion_tracker::m_entries_vec): Delete.
7852 (completion_tracker::m_entries_hash): Initialize to NULL.
7853 (completion_tracker::m_lowest_common_denominator_valid): New
7854 member variable.
7855 (completion_tracker::m_lowest_common_denominator_max_length): New
7856 member variable.
7857
5a82b8a1
KR
78582020-03-17 Kamil Rytarowski <n54@gmx.com>
7859
7860 * regformats/regdef.h: Put reg in gdb namespace.
7861
fb516a69
KR
78622020-03-17 Kamil Rytarowski <n54@gmx.com>
7863
7864 * i386-bsd-nat.c (gdb_ptrace): New.
7865 * (i386bsd_fetch_inferior_registers,
7866 i386bsd_store_inferior_registers) Switch from pid_t to ptid_t.
7867 * (i386bsd_fetch_inferior_registers,
7868 i386bsd_store_inferior_registers) Use gdb_ptrace.
7869
1c0aa1fb
KR
78702020-03-17 Kamil Rytarowski <n54@gmx.com>
7871
7872 * amd64-bsd-nat.c (gdb_ptrace): New.
7873 * (amd64bsd_fetch_inferior_registers,
7874 amd64bsd_store_inferior_registers) Switch from pid_t to ptid_t.
7875 * (amd64bsd_fetch_inferior_registers,
7876 amd64bsd_store_inferior_registers) Use gdb_ptrace.
7877
5ccd2fb7
KR
78782020-03-17 Kamil Rytarowski <n54@gmx.com>
7879
7880 * user-regs.c (user_reg::read): Rename to...
7881 (user_reg::xread): ...this.
7882 * (append_user_reg): Rename argument `read' to `xread'.
7883 * (user_reg_add_builtin): Likewise.
7884 * (user_reg_add): Likewise.
7885 * (value_of_user_reg): Likewise.
7886
2108a63a
KR
78872020-03-17 Kamil Rytarowski <n54@gmx.com>
7888
7889 * sparc-nat.c (gdb_ptrace): New.
7890 * sparc-nat.c (sparc_fetch_inferior_registers)
7891 (sparc_store_inferior_registers) Remove obsolete comment.
7892 * sparc-nat.c (sparc_fetch_inferior_registers)
7893 (sparc_store_inferior_registers) Switch from pid_t to ptid_t.
7894 * sparc-nat.c (sparc_fetch_inferior_registers)
7895 (sparc_store_inferior_registers) Use gdb_ptrace.
7896
a225c9a8
KR
78972020-03-17 Kamil Rytarowski <n54@gmx.com>
7898
7899 * sh-nbsd-nat.c (fetch_registers): New variable lwp and pass
7900 it to the ptrace call.
7901 * sh-nbsd-nat.c (store_registers): Likewise.
7902
98097623
KR
79032020-03-17 Kamil Rytarowski <n54@gmx.com>
7904
7905 * sh-nbsd-nat.c (sh_nbsd_nat_target): Inherit from
7906 nbsd_nat_target instead of inf_ptrace_target.
7907 * sh-nbsd-nat.c: Include "nbsd-nat.h", as we are now using
7908 nbsd_nat_target.
7909
9e38d619
KR
79102020-03-17 Kamil Rytarowski <n54@gmx.com>
7911
7912 * amd64-bsd-nat.c: Include amd64-bsd-nat.h".
7913
a2ecbe9f
KR
79142020-03-17 Kamil Rytarowski <n54@gmx.com>
7915
7916 * nbsd-nat.c: Include <sys/types.h>, <sys/ptrace.h> and
7917 <sys/sysctl.h>.
7918 * nbsd-nat.c (nbsd_nat_target::pid_to_exec_file): Rewrite.
7919
58990295
TV
79202020-03-17 Tom de Vries <tdevries@suse.de>
7921
7922 PR gdb/23710
7923 * dwarf2/read.h (struct dwarf2_per_cu_data): Add unit_type and lang
7924 fields.
7925 * dwarf2/read.c (process_psymtab_comp_unit): Initialize unit_type and lang
7926 fields.
7927 (process_imported_unit_die): Skip import of c++ CUs.
7928
771dd3a8
TT
79292020-03-16 Tom Tromey <tom@tromey.com>
7930
7931 * p-valprint.c (pascal_object_print_value): Initialize
7932 base_value.
7933
817a7585
AK
79342020-03-16 Anton Kolesov <anton.kolesov@synopsys.com>
7935 Shahab Vahedi <shahab@synopsys.com>
7936
7937 * Makefile.in: Add arch/arc.o
7938 * configure.tgt: Likewise.
7939 * arc-tdep.c (arc_tdesc_init): Use arc_read_description.
7940 (_initialize_arc_tdep): Don't initialize old target descriptions.
aac66a4c 7941 (arc_read_description): New function to cache target descriptions.
817a7585
AK
7942 * arc-tdep.h (arc_read_description): Add proto type.
7943 * arch/arc.c: New file.
7944 * arch/arc.h: Likewise.
7945 * features/Makefile: Replace old target descriptions with new.
7946 * features/arc-arcompact.c: Remove.
7947 * features/arc-arcompact.xml: Likewise.
7948 * features/arc-v2.c: Likewise
7949 * features/arc-v2.xml: Likewise
7950 * features/arc/aux-arcompact.xml: New file.
7951 * features/arc/aux-v2.xml: Likewise.
7952 * features/arc/core-arcompact.xml: Likewise.
7953 * features/arc/core-v2.xml: Likewise.
7954 * features/arc/aux-arcompact.c: Generate.
7955 * features/arc/aux-v2.c: Likewise.
7956 * features/arc/core-arcompact.c: Likewise.
7957 * features/arc/core-v2.c: Likewise.
7958 * target-descriptions (maint_print_c_tdesc_cmd): Support ARC features.
7959
67430cd0
TT
79602020-03-16 Tom Tromey <tromey@adacore.com>
7961
7962 PR gdb/25663:
7963 * dwarf2/read.c (dwarf2_name): Strip leading namespaces after
7964 putting value into bcache.
7965
30efb6c7
SM
79662020-03-16 Simon Marchi <simon.marchi@efficios.com>
7967
7968 PR gdb/21500
7969 * amd64-windows-tdep.c (amd64_windows_init_abi): Rename
7970 to...
7971 (amd64_windows_init_abi_common): ... this. Don't set size of
7972 long type.
7973 (amd64_windows_init_abi): New function.
7974 (amd64_cygwin_init_abi): New function.
7975 (_initialize_amd64_windows_tdep): Use amd64_cygwin_init_abi for
7976 the Cygwin OS ABI.
7977 * i386-windows-tdep.c (_initialize_i386_windows_tdep): Clarify
7978 comment.
7979
8db52437
SM
79802020-03-16 Simon Marchi <simon.marchi@efficios.com>
7981
7982 * windows-tdep.h (is_linked_with_cygwin_dll): New declaration.
7983 * windows-tdep.c (CYGWIN_DLL_NAME): New.
7984 (pe_import_directory_entry): New struct type.
7985 (is_linked_with_cygwin_dll): New function.
7986 * amd64-windows-tdep.c (amd64_windows_osabi_sniffer): Select
7987 GDB_OSABI_CYGWIN if the BFD is linked with the Cygwin DLL.
7988 * i386-windows-tdep.c (i386_windows_osabi_sniffer): Likewise.
7989
5982a56a
SM
79902020-03-16 Simon Marchi <simon.marchi@efficios.com>
7991
7992 * i386-windows-tdep.c: Mass-rename "cygwin" to "windows", except
7993 i386_cygwin_core_osabi_sniffer.
7994
7a1998df
SM
79952020-03-16 Simon Marchi <simon.marchi@efficios.com>
7996
7997 * i386-cygwin-tdep.c: Rename to...
7998 * i386-windows-tdep.c: ... this.
7999 * Makefile.in (ALL_TARGET_OBS): Rename i386-cygwin-tdep.c to
8000 i386-windows-tdep.c.
8001 * configure.tgt: Likewise.
8002
053205cc
SM
80032020-03-16 Simon Marchi <simon.marchi@efficios.com>
8004
8005 * osabi.h (enum gdb_osabi): Add GDB_OSABI_WINDOWS.
8006 * osabi.c (gdb_osabi_names): Add "Windows".
8007 * i386-cygwin-tdep.c (i386_cygwin_osabi_sniffer): Return
8008 GDB_OSABI_WINDOWS when the binary's target is "pei-i386".
8009 (i386_cygwin_core_osabi_sniffer): New function, extracted from
8010 i386_cygwin_osabi_sniffer.
8011 (_initialize_i386_cygwin_tdep): Register OS ABI
8012 GDB_OSABI_WINDOWS for i386.
8013 * amd64-windows-tdep.c (amd64_windows_osabi_sniffer): Return
8014 GDB_OSABI_WINDOWS when the binary's target is "pei-x86-64".
8015 (_initialize_amd64_windows_tdep): Register OS ABI GDB_OSABI_WINDOWS
8016 for x86-64.
8017 * configure.tgt: Use GDB_OSABI_WINDOWS as the default OS ABI
8018 when the target matches '*-*-mingw*'.
8019
fe4b2ee6
SM
80202020-03-16 Simon Marchi <simon.marchi@efficios.com>
8021
8022 * defs.h (enum gdb_osabi): Move to...
8023 * osabi.h (enum gdb_osabi): ... here.
8024 * gdbarch.sh: Include osabi.h in gdbarch.h.
8025 * gdbarch.h: Re-generate.
8026
cb9b645d
SM
80272020-03-16 Simon Marchi <simon.marchi@efficios.com>
8028
8029 * amd64-windows-tdep.c (amd64_windows_osabi_sniffer): New
8030 function.
8031 (_initialize_amd64_windows_tdep): Register osabi sniffer.
8032
3293bbaf
TT
80332020-03-14 Tom Tromey <tom@tromey.com>
8034
8035 * c-typeprint.c (cp_type_print_method_args): Print "__restrict__"
8036 for C++.
8037 (c_type_print_modifier): Likewise. Add "language" parameter.
8038 (c_type_print_varspec_prefix, c_type_print_base_struct_union)
8039 (c_type_print_base_1): Update.
8040 * type-stack.h (enum type_pieces) <tp_atomic, tp_restrict>: New
8041 constants.
8042 * type-stack.c (type_stack::insert): Handle tp_atomic and
8043 tp_restrict.
8044 (type_stack::follow_type_instance_flags): Likewise.
8045 (type_stack::follow_types): Likewise. Merge type-following code.
8046 * c-exp.y (RESTRICT, ATOMIC): New tokens.
8047 (space_identifier, cv_with_space_id)
8048 (const_or_volatile_or_space_identifier_noopt)
8049 (const_or_volatile_or_space_identifier): Remove.
8050 (single_qualifier, qualifier_seq_noopt, qualifier_seq): New
8051 rules.
8052 (ptr_operator, typebase): Update.
8053 (enum token_flag) <FLAG_C>: New constant.
8054 (ident_tokens): Add "restrict", "__restrict__", "__restrict", and
8055 "_Atomic".
8056 (lex_one_token): Handle FLAG_C.
8057
154151a6
KR
80582020-03-14 Kamil Rytarowski <n54@gmx.com>
8059
8060 * m68k-bsd-nat.c (fetch_registers): New variable lwp and pass
8061 it to the ptrace call.
8062 * m68k-bsd-nat.c (store_registers): Likewise.
8063
bc107784
KR
80642020-03-14 Kamil Rytarowski <n54@gmx.com>
8065
8066 * m68k-bsd-nat.c (m68kbsd_supply_gregset): Change type of regs to
8067 gdb_byte *.
8068 * m68k-bsd-nat.c (m68kbsd_supply_fpregset): Likewise.
8069 * m68k-bsd-nat.c (m68kbsd_collect_gregset): Likewise.
8070 * m68k-bsd-nat.c (m68kbsd_supply_pcb): Cast &tmp to gdb_byte *.
8071
01a80117
KR
80722020-03-14 Kamil Rytarowski <n54@gmx.com>
8073
8074 * m68k-bsd-nat.c (m68k_bsd_nat_target): Inherit from
8075 nbsd_nat_target instead of inf_ptrace_target.
8076 * m68k-bsd-nat.c: Include "nbsd-nat.h", as we are now using
8077 nbsd_nat_target.
8078
f90280ca
KR
80792020-03-14 Kamil Rytarowski <n54@gmx.com>
8080
8081 * m68k-bsd-nat.c: Define _KERNTYPES to get the declaration of
8082 register_t.
8083
6def66f1
KR
80842020-03-14 Kamil Rytarowski <n54@gmx.com>
8085
8086 * alpha-bsd-nat.c (fetch_registers): New variable lwp and pass
8087 it to the ptrace call.
8088 * alpha-bsd-nat.c (store_registers): Likewise.
8089
66eaca97
KR
80902020-03-14 Kamil Rytarowski <n54@gmx.com>
8091
8092 * alpha-bsd-nat.c: Remove <sys/procfs.h> and "gregset.h" from
8093 includes.
8094 * alpha-bsd-nat.c (gregset_t, fpregset_t): Remove.
8095 * alpha-bsd-nat.c (supply_gregset, fill_gregset, supply_fpregset,
8096 fill_fpregset): Likewise.
8097
4fed520b
KR
80982020-03-14 Kamil Rytarowski <n54@gmx.com>
8099
8100 * alpha-bsd-nat.c (alpha_netbsd_nat_target): Inherit from
8101 nbsd_nat_target instead of inf_ptrace_target.
8102 * alpha-bsd-nat.c: Include "nbsd-nat.h", as we are now using
8103 nbsd_nat_target.
8104
2190cf06
KR
81052020-03-14 Kamil Rytarowski <n54@gmx.com>
8106
8107 * alpha-bsd-nat.c: Define _KERNTYPES to get the declaration of
8108 register_t.
8109
75c56d3d
KR
81102020-03-14 Kamil Rytarowski <n54@gmx.com>
8111
8112 * arm-nbsd-nat.c (fetch_register): New variable lwp and pass
8113 it to the ptrace call.
8114 * arm-nbsd-nat.c (fetch_fp_register): Likewise.
8115 * arm-nbsd-nat.c (fetch_fp_regs): Likewise.
8116 * arm-nbsd-nat.c (store_register): Likewise.
8117 * arm-nbsd-nat.c (store_regs): Likewise.
8118 * arm-nbsd-nat.c (store_fp_register): Likewise.
8119 * arm-nbsd-nat.c (store_fp_regs): Likewise.
8120
6018d381
KR
81212020-03-14 Kamil Rytarowski <n54@gmx.com>
8122
8123 * arm-nbsd-nat.c (arm_netbsd_nat_target): Inherit from
8124 nbsd_nat_target instead of inf_ptrace_target.
8125 * arm-nbsd-nat.c: Include "nbsd-nat.h", as we are now using
8126 nbsd_nat_target.
8127
013f99f0
KR
81282020-03-14 Kamil Rytarowski <n54@gmx.com>
8129
8130 * x86-bsd-nat.c (x86bsd_dr_get): New variable lwp and pass
8131 it to the ptrace call.
8132 * x86-bsd-nat.c (x86bsd_dr_set): Likewise.
8133
12753073
KR
81342020-03-14 Kamil Rytarowski <n54@gmx.com>
8135
6227b330
KR
8136 * vax-bsd-nat.c (vaxbsd_supply_gregset): New variable lwp and pass
8137 it to the ptrace call.
8138 * vax-bsd-nat.c (vaxbsd_collect_gregset): Likewise.
8139
81402020-03-14 Kamil Rytarowski <n54@gmx.com>
8141
8142 * vax-bsd-nat.c (vaxbsd_supply_gregset): Cast gregs to const
8143 gdb_byte *.
12753073
KR
8144 * vax-bsd-nat.c (vaxbsd_collect_gregset): Cast gregs to void *.
8145
d5be5fa4
KR
81462020-03-14 Kamil Rytarowski <n54@gmx.com>
8147
8148 * vax-bsd-nat.c (vax_bsd_nat_target): Inherit from nbsd_nat_target
8149 instead of inf_ptrace_target.
8150 * vax-bsd-nat.c: Include "nbsd-nat.h", as we are now using
8151 nbsd_nat_target.
8152
8110f842
KR
81532020-03-14 Kamil Rytarowski <n54@gmx.com>
8154
8155 * mips-nbsd-nat.c: Define _KERNTYPES to get the declaration of
8156 register_t.
8157
52feded7
KR
81582020-03-14 Kamil Rytarowski <n54@gmx.com>
8159
8160 * ppc-nbsd-nat.c: Define _KERNTYPES to get the declaration of
8161 register_t.
8162
25567eee
KR
81632020-03-14 Kamil Rytarowski <n54@gmx.com>
8164
8165 * vax-bsd-nat.c: Define _KERNTYPES to get the declaration of
8166 register_t.
8167
426a9c18
TT
81682020-03-13 Tom Tromey <tom@tromey.com>
8169
8170 * value.h (val_print): Don't declare.
8171 * valprint.h (val_print_array_elements)
8172 (val_print_scalar_formatted, generic_val_print): Don't declare.
8173 * valprint.c (generic_val_print_array): Take a struct value.
8174 (generic_val_print_ptr, generic_val_print_memberptr)
8175 (generic_val_print_bool, generic_val_print_int)
8176 (generic_val_print_char, generic_val_print_complex)
8177 (generic_val_print): Remove.
8178 (generic_value_print): Update.
8179 (do_val_print): Remove unused parameters. Don't call
8180 la_val_print.
8181 (val_print): Remove.
8182 (common_val_print): Update. Don't call value_check_printable.
8183 (val_print_scalar_formatted, val_print_array_elements): Remove.
8184 * rust-lang.c (rust_val_print): Remove.
8185 (rust_language_defn): Update.
8186 * p-valprint.c (pascal_val_print): Remove.
8187 (pascal_value_print_inner): Update.
8188 (pascal_object_print_val_fields, pascal_object_print_val):
8189 Remove.
8190 (pascal_object_print_static_field): Update.
8191 * p-lang.h (pascal_val_print): Don't declare.
8192 * p-lang.c (pascal_language_defn): Update.
8193 * opencl-lang.c (opencl_language_defn): Update.
8194 * objc-lang.c (objc_language_defn): Update.
8195 * m2-valprint.c (m2_print_unbounded_array, m2_val_print): Remove.
8196 * m2-lang.h (m2_val_print): Don't declare.
8197 * m2-lang.c (m2_language_defn): Update.
8198 * language.h (struct language_defn) <la_val_print>: Remove.
8199 * language.c (unk_lang_value_print_inner): Rename. Change
8200 argument types.
8201 (unknown_language_defn, auto_language_defn): Update.
8202 * go-valprint.c (go_val_print): Remove.
8203 * go-lang.h (go_val_print): Don't declare.
8204 * go-lang.c (go_language_defn): Update.
8205 * f-valprint.c (f_val_print): Remove.
8206 * f-lang.h (f_value_print): Don't declare.
8207 * f-lang.c (f_language_defn): Update.
8208 * d-valprint.c (d_val_print): Remove.
8209 * d-lang.h (d_value_print): Don't declare.
8210 * d-lang.c (d_language_defn): Update.
8211 * cp-valprint.c (cp_print_value_fields)
8212 (cp_print_value_fields_rtti, cp_print_value): Remove.
8213 (cp_print_static_field): Update.
8214 * c-valprint.c (c_val_print_array, c_val_print_ptr)
8215 (c_val_print_struct, c_val_print_union, c_val_print_int)
8216 (c_val_print_memberptr, c_val_print): Remove.
8217 * c-lang.h (c_val_print_array, cp_print_value_fields)
8218 (cp_print_value_fields_rtti): Don't declare.
8219 * c-lang.c (c_language_defn, cplus_language_defn)
8220 (asm_language_defn, minimal_language_defn): Update.
8221 * ada-valprint.c (ada_val_print_ptr, ada_val_print_num): Remove.
8222 (ada_val_print_enum): Take a struct value.
8223 (ada_val_print_flt, ada_val_print_array, ada_val_print_1)
8224 (ada_val_print): Remove.
8225 (ada_value_print_1): Update.
8226 (printable_val_type): Remove.
8227 * ada-lang.h (ada_val_print): Don't declare.
8228 * ada-lang.c (ada_language_defn): Update.
8229
42331a1e
TT
82302020-03-13 Tom Tromey <tom@tromey.com>
8231
8232 * valprint.c (do_val_print): Update.
8233 * python/python-internal.h (gdbpy_apply_val_pretty_printer): Take
8234 a struct value.
8235 (value_to_value_object_no_release): Declare.
8236 * python/py-value.c (value_to_value_object_no_release): New
8237 function.
8238 * python/py-prettyprint.c (gdbpy_apply_val_pretty_printer): Take a
8239 struct value.
8240 * guile/scm-value.c (vlscm_scm_from_value_no_release): New
8241 function.
8242 * guile/scm-pretty-print.c (gdbscm_apply_val_pretty_printer): Take
8243 a struct value.
8244 * guile/guile-internal.h (vlscm_scm_from_value_no_release):
8245 Declare.
8246 (gdbscm_apply_val_pretty_printer): Take a struct value.
8247 * extension.h (apply_ext_lang_val_pretty_printer): Take a struct
8248 value.
8249 * extension.c (apply_ext_lang_val_pretty_printer): Take a struct
8250 value.
8251 * extension-priv.h (struct extension_language_ops)
8252 <apply_val_pretty_printer>: Take a struct value.
8253 * cp-valprint.c (cp_print_value): Create a struct value.
8254 (cp_print_value): Update.
8255
3a916a97
TT
82562020-03-13 Tom Tromey <tom@tromey.com>
8257
8258 * ada-valprint.c (print_field_values): Call common_val_print.
8259
b59eac37
TT
82602020-03-13 Tom Tromey <tom@tromey.com>
8261
8262 * ada-valprint.c (val_print_packed_array_elements): Remove
8263 bitoffset and val parameters. Call common_val_print.
8264 (ada_val_print_string): Remove offset, address, and original_value
8265 parameters.
8266 (ada_val_print_array): Update.
8267 (ada_value_print_array): New function.
8268 (ada_value_print_1): Call it.
8269
03371129
TT
82702020-03-13 Tom Tromey <tom@tromey.com>
8271
8272 * ada-valprint.c (ada_value_print): Use common_val_print.
8273
2e088f8b
TT
82742020-03-13 Tom Tromey <tom@tromey.com>
8275
8276 * ada-valprint.c (ada_val_print_ref): Use common_val_print.
8277
39ef85a8
TT
82782020-03-13 Tom Tromey <tom@tromey.com>
8279
8280 * ada-valprint.c (ada_value_print_num): New function.
8281 (ada_value_print_1): Use it.
8282
b9fa6e07
TT
82832020-03-13 Tom Tromey <tom@tromey.com>
8284
8285 * ada-valprint.c (ada_value_print_1) <TYPE_CODE_FLT>: Rewrite.
8286
416595d6
TT
82872020-03-13 Tom Tromey <tom@tromey.com>
8288
8289 * ada-valprint.c (ada_value_print_ptr): New function.
8290 (ada_value_print_1): Use it.
8291
5b5e15ec
TT
82922020-03-13 Tom Tromey <tom@tromey.com>
8293
8294 * ada-valprint.c (ada_val_print_gnat_array): Take a struct value;
8295 call common_val_print.
8296 (ada_val_print_1): Update.
8297 (ada_value_print_1): New function.
8298 (ada_value_print_inner): Rewrite.
8299
fbf54e75
TT
83002020-03-13 Tom Tromey <tom@tromey.com>
8301
8302 * cp-valprint.c (cp_print_value_fields): Update.
8303 (cp_print_value): New function.
8304
64b653ca
TT
83052020-03-13 Tom Tromey <tom@tromey.com>
8306
8307 * m2-valprint.c (m2_value_print_inner): Use
8308 cp_print_value_fields.
8309 * cp-valprint.c (cp_print_value_fields): New function.
8310 * c-valprint.c (c_value_print_struct): New function.
8311 (c_value_print_inner): Use c_value_print_struct.
8312 * c-lang.h (cp_print_value_fields): Declare.
8313
6999f067
TT
83142020-03-13 Tom Tromey <tom@tromey.com>
8315
8316 * c-valprint.c (c_value_print_array): New function.
8317 (c_value_print_inner): Use it.
8318
ce80b8bd
TT
83192020-03-13 Tom Tromey <tom@tromey.com>
8320
8321 * c-valprint.c (c_value_print_memberptr): New function.
8322 (c_value_print_inner): Use it.
8323
2faac269
TT
83242020-03-13 Tom Tromey <tom@tromey.com>
8325
8326 * c-valprint.c (c_value_print_int): New function.
8327 (c_value_print_inner): Use it.
8328
da3e2c29
TT
83292020-03-13 Tom Tromey <tom@tromey.com>
8330
8331 * c-valprint.c (c_value_print_ptr): New function.
8332 (c_value_print_inner): Use it.
8333
50836231
TT
83342020-03-13 Tom Tromey <tom@tromey.com>
8335
8336 * c-valprint.c (c_value_print_inner): Rewrite.
8337
4f412b6e
TT
83382020-03-13 Tom Tromey <tom@tromey.com>
8339
8340 * valprint.c (generic_value_print_complex): New function.
8341 (generic_value_print): Use it.
8342
f5354008
TT
83432020-03-13 Tom Tromey <tom@tromey.com>
8344
8345 * valprint.c (generic_val_print_float): Don't call
8346 val_print_scalar_formatted.
8347 (generic_val_print, generic_value_print): Update.
8348
3eec3b05
TT
83492020-03-13 Tom Tromey <tom@tromey.com>
8350
8351 * valprint.c (generic_value_print_char): New function
8352 (generic_value_print): Use it.
8353
fdddfccb
TT
83542020-03-13 Tom Tromey <tom@tromey.com>
8355
8356 * valprint.c (generic_value_print_int): New function.
8357 (generic_value_print): Use it.
8358
6dde7521
TT
83592020-03-13 Tom Tromey <tom@tromey.com>
8360
8361 * valprint.c (generic_value_print_bool): New function.
8362 (generic_value_print): Use it.
8363
4112d2e6
TT
83642020-03-13 Tom Tromey <tom@tromey.com>
8365
8366 * valprint.c (generic_val_print_func): Simplify.
8367 (generic_val_print, generic_value_print): Update.
8368
65786af6
TT
83692020-03-13 Tom Tromey <tom@tromey.com>
8370
8371 * valprint.c (generic_val_print_flags): Remove.
8372 (generic_val_print, generic_value_print): Update.
8373 (val_print_type_code_flags): Add original_value parameter.
8374
40f3ce18
TT
83752020-03-13 Tom Tromey <tom@tromey.com>
8376
8377 * valprint.c (generic_val_print): Update.
8378 (generic_value_print): Update.
8379 * valprint.c (generic_val_print_enum): Don't call
8380 val_print_scalar_formatted.
8381
2a5b130b
TT
83822020-03-13 Tom Tromey <tom@tromey.com>
8383
8384 * valprint.c (generic_value_print): Call generic_value_print_ptr.
8385 * valprint.c (generic_value_print_ptr): New function.
8386
abc66ce9
TT
83872020-03-13 Tom Tromey <tom@tromey.com>
8388
8389 * valprint.c (generic_value_print): Rewrite.
8390
07a32858
TT
83912020-03-13 Tom Tromey <tom@tromey.com>
8392
8393 * p-valprint.c (pascal_object_print_value_fields)
8394 (pascal_object_print_value): New functions.
8395
64d64d3a
TT
83962020-03-13 Tom Tromey <tom@tromey.com>
8397
8398 * p-valprint.c (pascal_value_print_inner): Rewrite.
8399
6a95a1f5
TT
84002020-03-13 Tom Tromey <tom@tromey.com>
8401
8402 * f-valprint.c (f_value_print_innner): Rewrite.
8403
59fcdac6
TT
84042020-03-13 Tom Tromey <tom@tromey.com>
8405
8406 * m2-valprint.c (m2_print_unbounded_array): New overload.
8407 (m2_print_unbounded_array): Update.
8408 (m2_print_array_contents): Take a struct value.
8409 (m2_value_print_inner): Rewrite.
8410
d133c3e1
TT
84112020-03-13 Tom Tromey <tom@tromey.com>
8412
8413 * d-valprint.c (dynamic_array_type): Call d_value_print_inner.
8414 (d_value_print_inner): New function.
8415 * d-lang.h (d_value_print_inner): Declare.
8416 * d-lang.c (d_language_defn): Use d_value_print_inner.
8417
23b0f06b
TT
84182020-03-13 Tom Tromey <tom@tromey.com>
8419
8420 * go-valprint.c (go_value_print_inner): New function.
8421 * go-lang.h (go_value_print_inner): Declare.
8422 * go-lang.c (go_language_defn): Use go_value_print_inner.
8423
5f56f7cb
TT
84242020-03-13 Tom Tromey <tom@tromey.com>
8425
8426 * rust-lang.c (val_print_struct, rust_print_enum): Use the value
8427 API.
8428 (rust_val_print): Rewrite.
8429 (rust_value_print_inner): New function, from rust_val_print.
8430 (rust_language_defn): Use rust_value_print_inner.
8431
26792ee0
TT
84322020-03-13 Tom Tromey <tom@tromey.com>
8433
8434 * ada-valprint.c (ada_value_print_inner): New function.
8435 * ada-lang.h (ada_value_print_inner): Declare.
8436 * ada-lang.c (ada_language_defn): Use ada_value_print_inner.
8437
24051bbe
TT
84382020-03-13 Tom Tromey <tom@tromey.com>
8439
8440 * f-valprint.c (f_value_print_innner): New function.
8441 * f-lang.h (f_value_print_innner): Declare.
8442 * f-lang.c (f_language_defn): Use f_value_print_innner.
8443
c0941be6
TT
84442020-03-13 Tom Tromey <tom@tromey.com>
8445
8446 * p-valprint.c (pascal_value_print_inner): New function.
8447 * p-lang.h (pascal_value_print_inner): Declare.
8448 * p-lang.c (pascal_language_defn): Use pascal_value_print_inner.
8449
62c4663d
TT
84502020-03-13 Tom Tromey <tom@tromey.com>
8451
8452 * m2-valprint.c (m2_value_print_inner): New function.
8453 * m2-lang.h (m2_value_print_inner): Declare.
8454 * m2-lang.c (m2_language_defn): Use m2_value_print_inner.
8455
62182190
TT
84562020-03-13 Tom Tromey <tom@tromey.com>
8457
8458 * opencl-lang.c (opencl_language_defn): Use c_value_print_inner.
8459 * objc-lang.c (objc_language_defn): Use c_value_print_inner.
8460 * c-valprint.c (c_value_print_inner): New function.
8461 * c-lang.h (c_value_print_inner): Declare.
8462 * c-lang.c (c_language_defn, cplus_language_defn)
8463 (asm_language_defn, minimal_language_defn): Use
8464 c_value_print_inner.
8465
1e592a8a
TT
84662020-03-13 Tom Tromey <tom@tromey.com>
8467
8468 * p-valprint.c (pascal_object_print_value_fields): Now static.
8469 * p-lang.h (pascal_object_print_value_fields): Don't declare.
8470
7fe471e9
TT
84712020-03-13 Tom Tromey <tom@tromey.com>
8472
8473 * c-valprint.c (c_val_print_array): Simplify.
8474
d121c6ce
TT
84752020-03-13 Tom Tromey <tom@tromey.com>
8476
8477 * valprint.c (value_print_array_elements): New function.
8478 * valprint.h (value_print_array_elements): Declare.
8479
4dba70ee
TT
84802020-03-13 Tom Tromey <tom@tromey.com>
8481
8482 * printcmd.c (print_formatted): Use value_print_scalar_formatted.
8483 * mips-tdep.c (mips_print_register): Use
8484 value_print_scalar_formatted.
8485
4f9ae810
TT
84862020-03-13 Tom Tromey <tom@tromey.com>
8487
8488 * valprint.h (value_print_scalar_formatted): Declare.
8489 * valprint.c (value_print_scalar_formatted): New function.
8490
156bfec9
TT
84912020-03-13 Tom Tromey <tom@tromey.com>
8492
8493 * valprint.h (generic_value_print): Declare.
8494 * valprint.c (generic_value_print): New function.
8495
2b4e573d
TT
84962020-03-13 Tom Tromey <tom@tromey.com>
8497
8498 * valprint.c (do_val_print): Call la_value_print_inner, if
8499 available.
8500 * rust-lang.c (rust_language_defn): Update.
8501 * p-lang.c (pascal_language_defn): Update.
8502 * opencl-lang.c (opencl_language_defn): Update.
8503 * objc-lang.c (objc_language_defn): Update.
8504 * m2-lang.c (m2_language_defn): Update.
8505 * language.h (struct language_defn) <la_value_print_inner>: New
8506 member.
8507 * language.c (unknown_language_defn, auto_language_defn): Update.
8508 * go-lang.c (go_language_defn): Update.
8509 * f-lang.c (f_language_defn): Update.
8510 * d-lang.c (d_language_defn): Update.
8511 * c-lang.c (c_language_defn, cplus_language_defn)
8512 (asm_language_defn, minimal_language_defn): Update.
8513 * ada-lang.c (ada_language_defn): Update.
8514
a1f6a07c
TT
85152020-03-13 Tom Tromey <tom@tromey.com>
8516
8517 * c-valprint.c (c_value_print): Use common_val_print.
8518
410cf315
TT
85192020-03-13 Tom Tromey <tom@tromey.com>
8520
8521 * cp-valprint.c (cp_print_static_field): Use common_val_print.
8522
72a45c93
TT
85232020-03-13 Tom Tromey <tom@tromey.com>
8524
8525 * f-valprint.c (f77_print_array_1, f_val_print): Use
8526 common_val_print.
8527
040f66bd
TT
85282020-03-13 Tom Tromey <tom@tromey.com>
8529
8530 * riscv-tdep.c (riscv_print_one_register_info): Use
8531 common_val_print.
8532
a6e05a6c
TT
85332020-03-13 Tom Tromey <tom@tromey.com>
8534
8535 * mi/mi-main.c (output_register): Use common_val_print.
8536
3444c526
TT
85372020-03-13 Tom Tromey <tom@tromey.com>
8538
8539 * infcmd.c (default_print_one_register_info): Use
8540 common_val_print.
8541
c2a44efe
TT
85422020-03-13 Tom Tromey <tom@tromey.com>
8543
8544 * valprint.h (common_val_print_checked): Declare.
8545 * valprint.c (common_val_print_checked): New function.
8546 * stack.c (print_frame_arg): Use common_val_print_checked.
8547
b0c26e99
TT
85482020-03-13 Tom Tromey <tom@tromey.com>
8549
8550 * valprint.c (do_val_print): New function, from val_print.
8551 (val_print): Use do_val_print.
8552 (common_val_print): Use do_val_print.
8553
ce3acbe9
TT
85542020-03-13 Tom Tromey <tom@tromey.com>
8555
8556 * valprint.c (value_print): Use scoped_value_mark.
8557
96c7f873
TV
85582020-03-13 Tom de Vries <tdevries@suse.de>
8559
8560 PR symtab/25646
8561 * psymtab.c (partial_symtab::partial_symtab): Don't set
8562 globals_offset and statics_offset. Push element onto
8563 current_global_psymbols and current_static_psymbols stacks.
8564 (concat): New function.
8565 (end_psymtab_common): Set globals_offset and statics_offset. Pop
8566 element from current_global_psymbols and current_static_psymbols
8567 stacks. Concat popped elements to global_psymbols and
8568 static_symbols.
8569 (add_psymbol_to_list): Use current_global_psymbols and
8570 current_static_psymbols stacks.
8571 * psymtab.h (class psymtab_storage): Add current_global_psymbols and
8572 current_static_psymbols fields.
8573
6ba0a321
CB
85742020-03-12 Christian Biesinger <cbiesinger@google.com>
8575
8576 * corelow.c (sniff_core_bfd): Remove.
8577 (class core_target) <m_core_vec>: Remove.
8578 (core_target::core_target): Update.
8579 (core_file_fns): Remove.
8580 (deprecated_add_core_fns): Remove.
8581 (default_core_sniffer): Remove.
8582 (sniff_core_bfd): Remove.
8583 (default_check_format): Remove.
8584 (gdb_check_format): Remove.
8585 (core_target_open): Update.
8586 (core_target::get_core_register_section): Update.
8587 (get_core_registers_cb): Update.
8588 (core_target::fetch_registers): Update.
8589 * gdbcore.h (struct core_fns): Remove.
8590 (deprecated_add_core_fns): Remove.
8591 (default_core_sniffer): Remove.
8592 (default_check_format): Remove.
8593
227031b2
TT
85942020-03-12 Tom Tromey <tom@tromey.com>
8595
8596 * arm-tdep.c (struct arm_mapping_symbol) <value>: Now a
8597 CORE_ADDR.
8598 (struct arm_exidx_entry) <addr>: Now a CORE_ADDR.
8599
53807e9f
TT
86002020-03-12 Tom Tromey <tom@tromey.com>
8601
8602 * remote.c (remote_target::download_tracepoint)
8603 (remote_target::enable_tracepoint)
8604 (remote_target::disable_tracepoint): Use phex, not sprintf_vma.
8605 * breakpoint.c (print_recreate_masked_watchpoint): Use phex, not
8606 sprintf_vma.
8607
64f25102
TT
86082020-03-12 Tom Tromey <tom@tromey.com>
8609
8610 * symfile-mem.c: Update CORE_ADDR size assert.
8611
272cd5a3
SM
86122020-03-12 Simon Marchi <simon.marchi@efficios.com>
8613
8614 * selftest.m4: Move to gdbsupport/.
8615 * acinclude.m4: Update path to selftest.m4.
8616
74cd3f9d
SM
86172020-03-12 Simon Marchi <simon.marchi@efficios.com>
8618
8619 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Rename to...
8620 (SELFTESTS_SRCS): ... this. Add disasm-selftests.c,
8621 gdbarch-selfselftests.c and selftest-arch.c.
8622 (SUBDIR_UNITTESTS_OBS): Rename to...
8623 (SELFTESTS_OBS): ... this.
8624 (COMMON_SFILES): Remove disasm-selftests.c and
8625 gdbarch-selftests.c.
8626 * configure.ac: Don't add selftest-arch.{c,o} to
8627 CONFIG_{SRCS,OBS}.
8628 * disasm-selftests.c, gdbarch-selftests.c: Remove GDB_SELF_TEST
8629 preprocessor conditions.
8630
db6878ac
SM
86312020-03-12 Simon Marchi <simon.marchi@efficios.com>
8632
8633 * configure.ac: Don't source bfd/development.sh.
8634 * selftest.m4: Modify comment.
8635 * configure: Re-generate.
8636
4d696a5c
SM
86372020-03-12 Simon Marchi <simon.marchi@efficios.com>
8638
8639 * selftest.m4 (GDB_AC_SELFTEST): Error out if $development is
8640 not "true" or "false".
8641 * configure: Re-generate.
8642
8dd8e1c7
CB
86432020-03-12 Christian Biesinger <cbiesinger@google.com>
8644
8645 * Makefile.in (HFILES_NO_SRCDIR): Add new arm-nbsd-tdep.h file.
8646 * arm-nbsd-nat.c (arm_supply_gregset): Moved to arm-nbsd-tdep and
8647 renamed to arm_nbsd_supply_gregset.
8648 (fetch_register): Update to call arm_nbsd_supply_gregset.
8649 (fetch_regs): Remove in favor of fetch_register with a -1 regno.
8650 (arm_netbsd_nat_target::fetch_registers): Update.
8651 (fetch_elfcore_registers): Removed.
8652 (_initialize_arm_netbsd_nat): Removed call to deprecated_add_core_fns.
8653 * arm-nbsd-tdep.c (struct arm_nbsd_reg): New struct.
8654 (arm_nbsd_supply_gregset): Moved from arm-nbsd-nat.c and updated to
8655 not require NetBSD system headers.
8656 (arm_nbsd_regset): New struct.
8657 (arm_nbsd_iterate_over_regset_sections): New function.
8658 (arm_netbsd_init_abi_common): Updated to call
8659 set_gdbarch_iterate_over_regset_sections.
8660 * arm-nbsd-tdep.h: New file.
8661
dd69bf7a
KB
86622020-03-11 Kevin Buettner <kevinb@redhat.com>
8663
8664 * symtab.c (find_pc_sect_line): Add check which prevents infinite
8665 recursion.
8666
a0761e34
SM
86672020-03-11 Simon Marchi <simon.marchi@efficios.com>
8668
8669 * configure: Re-generate.
8670
e7a82140
TT
86712020-03-11 Tom Tromey <tromey@adacore.com>
8672
8673 * ada-typeprint.c (print_choices): Fix comment.
8674
dcc050c8
AB
86752020-03-11 Andrew Burgess <andrew.burgess@embecosm.com>
8676
8677 * buildsyms.c (buildsym_compunit::record_line): Avoid accessing
8678 previous item in the list, when the list has no items.
8679
1c33af77
TV
86802020-03-11 Tom de Vries <tdevries@suse.de>
8681
8682 * dwarf2/loc.c (dwarf2_evaluate_property): Handle NULL frame in
8683 PROP_LOCLIST handling code.
8684
8c95582d
AB
86852020-03-10 Andrew Burgess <andrew.burgess@embecosm.com>
8686
8687 * buildsym-legacy.c (record_line): Pass extra parameter to
8688 record_line.
8689 * buildsym.c (buildsym_compunit::record_line): Take an extra
8690 parameter, reduce duplication in the line table, and record the
8691 is_stmt flag in the line table.
8692 * buildsym.h (buildsym_compunit::record_line): Add extra
8693 parameter.
8694 * disasm.c (do_mixed_source_and_assembly_deprecated): Ignore
8695 non-statement lines.
8696 * dwarf2/read.c (dwarf_record_line_1): Add extra parameter, pass
8697 this to the symtab builder.
8698 (dwarf_finish_line): Pass extra parameter to dwarf_record_line_1.
8699 (lnp_state_machine::record_line): Pass a suitable is_stmt flag
8700 through to dwarf_record_line_1.
8701 * infrun.c (process_event_stop_test): When stepping, don't stop at
8702 a non-statement instruction, and only refresh the step info when
8703 we land in the middle of a line's range. Also add an extra
8704 comment.
8705 * jit.c (jit_symtab_line_mapping_add_impl): Initialise is_stmt
8706 field.
8707 * record-btrace.c (btrace_find_line_range): Only record lines
8708 marked as is-statement.
8709 * stack.c (frame_show_address): Show the frame address if we are
8710 in a non-statement sal.
8711 * symmisc.c (dump_symtab_1): Print the is_stmt flag.
8712 (maintenance_print_one_line_table): Print a header for the is_stmt
8713 column, and include is_stmt information in the output.
8714 * symtab.c (find_pc_sect_line): Find lines marked as statements in
8715 preference to non-statements.
8716 (find_pcs_for_symtab_line): Prefer is-statement entries.
8717 (find_line_common): Likewise.
8718 * symtab.h (struct linetable_entry): Add is_stmt field.
8719 (struct symtab_and_line): Likewise.
8720 * xcoffread.c (arrange_linetable): Initialise is_stmt field when
8721 arranging the line table.
8722
e4003a34
TV
87232020-03-07 Tom de Vries <tdevries@suse.de>
8724
8725 * dwarf2/read.c (read_typedef): Treat anonymous typedef as forwarder
8726 DIE.
8727
e8932576
TT
87282020-03-07 Tom Tromey <tom@tromey.com>
8729
8730 * valops.c (value_literal_complex): Remove obsolete comment.
8731 * gdbtypes.h (enum type_code) <TYPE_CODE_FLT>: Remove obsolete
8732 comment.
8733
29734269
SM
87342020-03-06 Simon Marchi <simon.marchi@polymtl.ca>
8735
8736 * infrun.h: Forward-declare thread_info.
8737 (set_step_info): Add thread_info parameter, add doc.
8738 * infrun.c (set_step_info): Add thread_info parameter, move doc
8739 to header.
8740 * infrun.c (process_event_stop_test): Pass thread to
8741 set_step_info call.
8742 * infcmd.c (set_step_frame): Add thread_info pointer, pass it to
8743 set_step_info.
8744 (prepare_one_step): Add thread_info parameter, pass it to
8745 set_step_frame and prepare_one_step (recursive) call.
8746 (step_1): Pass thread to prepare_one_step call.
8747 (step_command_fsm::should_stop): Pass thread to
8748 prepare_one_step.
8749 (until_next_fsm): Pass thread to set_step_frame call.
8750 (finish_command): Pass thread to set_step_info call.
8751
b7d64b29
HD
87522020-03-06 Hannes Domani <ssbssa@yahoo.de>
8753
8754 * windows-tdep.c (windows_solib_create_inferior_hook):
8755 Check if inferior is running.
8756
09f2921c
TV
87572020-03-06 Tom de Vries <tdevries@suse.de>
8758
8759 * NEWS: Fix "the the".
8760 * ctfread.c: Same.
8761
fd760e79
TV
87622020-03-06 Tom de Vries <tdevries@suse.de>
8763
8764 * psymtab.c (psymtab_to_symtab): Don't print "done.".
8765
20ea4a60
AB
87662020-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
8767
8768 * .dir-locals.el: Add a comment referencing the other copies of
8769 this file.
8770
0afbabf0
JB
87712020-03-05 John Baldwin <jhb@FreeBSD.org>
8772
8773 * fbsd-tdep.c (fbsd_make_corefile_notes): Use std::string for
8774 psargs.
8775
842806cb
TBA
87762020-03-05 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
8777
8778 * .gitattributes: New file.
8779
be1e3d3e
TT
87802020-03-04 Tom Tromey <tom@tromey.com>
8781
8782 * symmisc.c (print_symbol_bcache_statistics)
8783 (print_objfile_statistics): Update.
8784 * symfile.c (allocate_symtab): Use intern.
8785 * psymtab.c (partial_symtab::partial_symtab): Use intern.
8786 * objfiles.h (struct objfile_per_bfd_storage) <filename_cache,
8787 macro_cache>: Remove.
8788 <string_cache>: New member.
8789 (struct objfile) <intern>: New methods.
8790 * elfread.c (elf_symtab_read): Use intern.
8791 * dwarf2/read.c (fixup_go_packaging): Intern package name.
8792 (dwarf2_compute_name, dwarf2_physname)
8793 (create_dwo_unit_in_dwp_v1, create_dwo_unit_in_dwp_v2): Intern
8794 names.
8795 (guess_partial_die_structure_name): Update.
8796 (partial_die_info::fixup): Intern name.
8797 (dwarf2_canonicalize_name): Change parameter to objfile. Intern
8798 name.
8799 (dwarf2_name): Intern name. Update.
8800 * buildsym.c (buildsym_compunit::get_macro_table): Use
8801 string_cache.
8802
4e7625fd
TT
88032020-03-04 Tom Tromey <tom@tromey.com>
8804
8805 * jit.c (bfd_open_from_target_memory): Make "target" const.
8806 * corefile.c (gnutarget): Now const.
8807 * gdbcore.h (gnutarget): Now const.
8808
46f9f931
HD
88092020-03-04 Hannes Domani <ssbssa@yahoo.de>
8810
8811 * NEWS: Mention support for WOW64 processes.
8812 * amd64-windows-nat.c (amd64_mappings): Rename and remove static.
8813 (amd64_windows_segment_register_p): Remove static.
8814 (_initialize_amd64_windows_nat): Update.
8815 * configure.nat <windows> (NATDEPFILES): Add i386-windows-nat.o.
8816 * i386-windows-nat.c (context_offset): Update.
8817 (i386_mappings): Rename and remove static.
8818 (i386_windows_segment_register_p): Remove static.
8819 (_initialize_i386_windows_nat): Update.
8820 * windows-nat.c (STATUS_WX86_BREAKPOINT): New macro.
8821 (STATUS_WX86_SINGLE_STEP): New macro.
8822 (EnumProcessModulesEx): New macro.
8823 (Wow64SuspendThread): New macro.
8824 (Wow64GetThreadContext): New macro.
8825 (Wow64SetThreadContext): New macro.
8826 (Wow64GetThreadSelectorEntry): New macro.
8827 (windows_set_context_register_offsets): Add static.
8828 (windows_set_segment_register_p): Likewise.
8829 (windows_add_thread): Adapt for WOW64 processes.
8830 (windows_fetch_one_register): Likewise.
8831 (windows_nat_target::fetch_registers): Likewise.
8832 (windows_store_one_register): Likewise.
8833 (display_selector): Likewise.
8834 (display_selectors): Likewise.
8835 (handle_exception): Likewise.
8836 (windows_continue): Likewise.
8837 (windows_nat_target::resume): Likewise.
8838 (windows_add_all_dlls): Likewise.
8839 (do_initial_windows_stuff): Likewise.
8840 (windows_nat_target::attach): Likewise.
8841 (windows_get_exec_module_filename): Likewise.
8842 (windows_nat_target::create_inferior): Likewise.
8843 (windows_xfer_siginfo): Likewise.
8844 (_initialize_loadable): Initialize Wow64SuspendThread,
8845 Wow64GetThreadContext, Wow64SetThreadContext,
8846 Wow64GetThreadSelectorEntry and EnumProcessModulesEx.
8847 * windows-nat.h (windows_set_context_register_offsets):
8848 Remove declaration.
8849 (windows_set_segment_register_p): Likewise.
8850 (i386_windows_segment_register_p): Add declaration.
8851 (amd64_windows_segment_register_p): Likewise.
8852
440cf44e
LM
88532020-03-04 Luis Machado <luis.machado@linaro.org>
8854
8855 Revert aa66aac47b4dd38f9524ddb5546c08cc09930d37 due to regressions
8856 in "info registers" for AArch64/ARM.
8857
8858 The change caused "info registers" to not print GPR's.
8859
8860 gdb/ChangeLog:
8861
8862 2020-02-01 Shahab Vahedi <shahab@synopsys.com>
8863
8864 * target-descriptions.c (tdesc_register_in_reggroup_p): Return 0
8865 when reg->group is empty and reggroup is not.
8866
1009d92f
TT
88672020-03-03 Tom Tromey <tromey@adacore.com>
8868
8869 * dwarf2/frame.c (struct dwarf2_frame_cache)
8870 <checked_tailcall_bottom, entry_cfa_sp_offset,
8871 entry_cfa_sp_offset_p>: Remove members.
8872 (dwarf2_frame_cache): Call dwarf2_tailcall_sniffer_first.
8873 (dwarf2_frame_prev_register): Don't call
8874 dwarf2_tailcall_sniffer_first.
8875 (dwarf2_append_unwinders): Don't append tailcall unwinder.
8876 * frame-unwind.c (add_unwinder): New fuction.
8877 (frame_unwind_init): Use it. Add tailcall unwinder.
8878
5e5d66b6
AB
88792020-03-03 Andrew Burgess <andrew.burgess@embecosm.com>
8880 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
8881
8882 * f-valprint.c (f_val_print): Handle TYPE_CODE_BOOL, any non-zero
8883 value should be printed as true.
8884
584cf46d
HD
88852020-03-03 Hannes Domani <ssbssa@yahoo.de>
8886
8887 * windows-tdep.c (windows_solib_create_inferior_hook): New function.
8888 (windows_init_abi): Set and use windows_so_ops.
8889
7b973adc
SDJ
88902020-03-03 Sergio Durigan Junior <sergiodj@redhat.com>
8891
8892 * printcmd.c (print_c_string): Check also for TYPE_CODE_PTR
8893 when verifying if dealing with a convenience variable.
8894
bb7b70ab
LM
88952020-03-03 Luis Machado <luis.machado@linaro.org>
8896
8897 * auxv.c (default_print_auxv_entry): Add new AUXV entries.
8898
9822cb57
SM
88992020-03-02 Simon Marchi <simon.marchi@polymtl.ca>
8900
8901 * infrun.c (gdbarch_supports_displaced_stepping): New.
8902 (use_displaced_stepping): Break up conditions in smaller pieces.
8903 Use gdbarch_supports_displaced_stepping.
8904 (displaced_step_prepare_throw): Use
8905 gdbarch_supports_displaced_stepping.
8906
63e163f2
AB
89072020-03-02 Andrew Burgess <andrew.burgess@embecosm.com>
8908
8909 * NEWS: Mention new behaviour of the history filename.
8910 * top.c (write_history_p): Add comment.
8911 (show_write_history_p): Add header comment, give a different
8912 message when history writing is on, but the history filename is
8913 empty.
8914 (history_filename): Add comment.
8915 (history_filename_empty): New function.
8916 (show_history_filename): Add header comment, give a different
8917 message when the filename is empty.
8918 (init_history): Compare history_filename against nullptr, and only
8919 read history if the filename is not empty.
8920 (set_history_filename): Add header comment, and only make
8921 non-empty filenames absolute.
8922 (init_main): Make the filename argument to 'set history filename'
8923 optional.
8924
81b86b97
CB
89252020-03-02 Christian Biesinger <cbiesinger@google.com>
8926
8927 * arm-nbsd-nat.c (arm_supply_fparegset): Rename to...
8928 (arm_supply_vfpregset): ...this, and update to use VFP registers.
8929 (fetch_fp_register): Update.
8930 (fetch_fp_regs): Update.
8931 (store_fp_register): Update.
8932 (store_fp_regs): Update.
8933 (arm_netbsd_nat_target::read_description): New function.
8934 (fetch_elfcore_registers): Update.
8935
24ed6739
AB
89362020-03-02 Andrew Burgess <andrew.burgess@embecosm.com>
8937
8938 * remote.c (remote_target::remote_parse_stop_reply): Don't use the
8939 general_thread if the stop reply is missing a thread-id.
8940 (remote_target::process_stop_reply): Use the first non-exited
8941 thread if the target didn't pass a thread-id.
8942 * infrun.c (do_target_wait): Move call to
8943 switch_to_inferior_no_thread to ....
8944 (do_target_wait_1): ... here.
8945
a84bb2a0
JT
89462020-02-29 Jon Turney <jon.turney@dronecode.org.uk>
8947
8948 * debuginfod-support.c: Include defs.h first.
8949
658dadf0
TV
89502020-02-28 Tom de Vries <tdevries@suse.de>
8951
8952 * symfile.c (set_initial_language): Use default language for lookup.
8953
4ebe4877
SM
89542020-02-28 Simon Marchi <simon.marchi@efficios.com>
8955
8956 * dwarf2/read.c (cutu_reader::init_tu_and_read_dwo_dies): Remove
8957 reader variable, pass `this` to read_cutu_die_from_dwo.
8958
e5da1139
AM
89592020-02-27 Aaron Merey <amerey@redhat.com>
8960
8961 * source.c (open_source_file): Check for nullptr when computing
8962 srcpath.
8963
317f7127
TT
89642020-02-27 Tom Tromey <tromey@adacore.com>
8965
8966 * dwarf2/read.c (struct field_info) <nfields>: Now a method, not a
8967 member.
8968 (dwarf2_add_field): Don't update nfields.
8969 (dwarf2_attach_fields_to_type, process_structure_scope): Update.
8970
3104d9ee
AB
89712020-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
8972
8973 * gdbtypes.c (create_array_type_with_stride): Use std::abs not
8974 abs.
8975
b83470bf
TT
89762020-02-26 Tom Tromey <tom@tromey.com>
8977
8978 * dwarf2/read.c (struct dwarf2_include_psymtab): New.
8979 (dwarf2_create_include_psymtab): Use dwarf2_include_psymtab.
8980 (dwarf2_psymtab::expand_psymtab, dwarf2_psymtab::readin_p)
8981 (dwarf2_psymtab::get_compunit_symtab): Remove null checks for
8982 per_cu_data.
8983
edfe0a0c
TT
89842020-02-26 Tom Tromey <tom@tromey.com>
8985
8986 * dwarf2/index-write.c (psym_index_map): Change type.
8987 (add_address_entry_worker, write_one_signatured_type)
8988 (recursively_count_psymbols, recursively_write_psymbols)
8989 (class debug_names, psyms_seen_size, write_gdbindex)
8990 (write_debug_names): Use partial_symtab, not dwarf2_psymtab.
8991
0d79cdc4
AM
89922020-02-26 Aaron Merey <amerey@redhat.com>
8993
8994 * Makefile.in: Handle optional debuginfod support.
8995 * NEWS: Update.
8996 * README: Add --with-debuginfod summary.
8997 * config.in: Regenerate.
8998 * configure: Regenerate.
8999 * configure.ac: Handle optional debuginfod support.
9000 * debuginfod-support.c: debuginfod helper functions.
9001 * debuginfod-support.h: Ditto.
9002 * doc/gdb.texinfo: Add --with-debuginfod to configure options
9003 summary.
9004 * dwarf2/read.c (dwarf2_get_dwz_file): Query debuginfod servers
9005 when a dwz file cannot be found.
9006 * elfread.c (elf_symfile_read): Query debuginfod servers when a
9007 debuginfo file cannot be found.
9008 * source.c (open_source_file): Query debuginfod servers when a
9009 source file cannot be found.
9010 * top.c (print_gdb_configuration): Include
9011 --{with,without}-debuginfod in the output.
9012
b65ce565
JG
90132020-02-26 Jérémie Galarneau <jeremie.galarneau@efficios.com>
9014
9015 * thread.c (thr_try_catch_cmd): Print thread name.
9016
d4c9a4f8
SM
90172020-02-26 Simon Marchi <simon.marchi@efficios.com>
9018
9019 * dwarf2/loc.h (dwarf2_fetch_die_loc_sect_off,
9020 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
9021 dwarf2_fetch_die_type_sect_off): Move to...
9022 * dwarf2/read.h (dwarf2_fetch_die_loc_sect_off,
9023 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
9024 dwarf2_fetch_die_type_sect_off): ... here.
9025 * dwarf2/read.c (dwarf2_fetch_die_loc_sect_off,
9026 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
9027 dwarf2_fetch_die_type_sect_off): Move doc to header file.
9028
0dce4280
TV
90292020-02-26 Tom de Vries <tdevries@suse.de>
9030
9031 PR gdb/25603
9032 * symfile.c (set_initial_language): Exit-early if
9033 language_mode == language_mode_manual.
9034
450a1bfc
SM
90352020-02-25 Simon Marchi <simon.marchi@polymtl.ca>
9036
9037 * dwarf2/loc.h (dwarf2_read_addr_index): Move...
9038 * dwarf2/read.h (dwarf2_read_addr_index): ... here.
9039 * dwarf2/read.c (dwarf2_read_addr_index): Move doc to header.
9040
9e80cfa1
AB
90412020-02-25 Andrew Burgess <andrew.burgess@embecosm.com>
9042
9043 * gdbtypes.c (create_array_type_with_stride): Handle negative
9044 array strides.
9045 * valarith.c (value_subscripted_rvalue): Likewise.
9046
09624f1f
LM
90472020-02-25 Luis Machado <luis.machado@linaro.org>
9048
9049 * aarch64-tdep.c (aarch64_vnv_type): Fix comment typo.
9050
8cb5117c
SM
90512020-02-25 Simon Marchi <simon.marchi@polymtl.ca>
9052
9053 * loc.h (dwarf2_get_die_type): Move to...
9054 * read.h (dwarf2_get_die_type): ... here.
9055 * read.c (dwarf2_get_die_type): Move doc to header.
9056
c325c44e
JB
90572020-02-25 Joel Brobecker <brobecker@adacore.com>
9058
9059 * copypright.py (EXCLUDE_LIST): Add 'gnulib/config.in' and
9060 'gnulib/Makefile.in' to the list.
9061
4ac93832
TT
90622020-02-24 Tom Tromey <tom@tromey.com>
9063
9064 * dwarf2/read.h (struct type_unit_unshareable) <num_symtabs>:
9065 Remove.
9066 * dwarf2/read.c (dwarf2_cu::setup_type_unit_groups): Use
9067 XOBNEWVEC.
9068
197400e8
TT
90692020-02-24 Tom Tromey <tom@tromey.com>
9070
9071 * dwarf2/read.h (struct dwarf2_per_cu_data) <type_unit_group_p>:
9072 New method.
9073 * dwarf2/read.c (IS_TYPE_UNIT_GROUP): Remove.
9074 (dw2_do_instantiate_symtab, dw2_get_file_names)
9075 (build_type_psymtab_dependencies, load_full_type_unit): Update.
9076
76935768
TT
90772020-02-24 Tom Tromey <tom@tromey.com>
9078
9079 * dwarf2read.c (dwarf2_build_psymtabs_hard): Use
9080 make_scoped_restore.
9081 (dwarf2_psymtab::read_symtab): Don't clear
9082 reading_partial_symbols.
9083
a88ef40d
TV
90842020-02-24 Tom de Vries <tdevries@suse.de>
9085
9086 PR gdb/25592
9087 * stack.c (iterate_over_block_locals): Handle LOC_CONST.
9088
c9af6521
TV
90892020-02-24 Tom de Vries <tdevries@suse.de>
9090
9091 * tui/tui-layout.c (_initialize_tui_layout): Fix help messages for
9092 commands layout next/prev/regs.
9093
5707a07a
TT
90942020-02-22 Tom Tromey <tom@tromey.com>
9095
9096 * dwarf2/loc.h (dwarf2_compile_expr_to_ax): Don't declare.
9097 * dwarf2/loc.c (dwarf2_compile_expr_to_ax): Now static.
9098
3b0fb49e
TT
90992020-02-22 Tom Tromey <tom@tromey.com>
9100
9101 * tui/tui-data.h (TUI_DISASM_WIN): Cast to tui_disasm_window.
9102
283be8bf
TT
91032020-02-22 Tom Tromey <tom@tromey.com>
9104
9105 * tui/tui-win.c (_initialize_tui_win): Add usage text.
9106 * tui/tui-stack.c (_initialize_tui_stack): Add usage text.
9107 * tui/tui-regs.c (_initialize_tui_regs): Add usage text.
9108 * tui/tui.c (_initialize_tui): Add usage text.
9109
ca793b96
TT
91102020-02-22 Tom Tromey <tom@tromey.com>
9111
9112 * tui/tui-win.c (tui_set_focus_command)
9113 (tui_set_win_height_command): Use error_no_arg.
9114 (_initialize_tui_win): Update help text.
9115 (FOCUS_USAGE, WIN_HEIGHT_USAGE): Don't define.
9116
432b5c40
TT
91172020-02-22 Tom Tromey <tom@tromey.com>
9118
9119 * tui/tui-layout.c (extract_display_start_addr): Rewrite.
9120 * tui/tui-disasm.h (struct tui_disasm_window)
9121 <display_start_addr>: Declare.
9122 * tui/tui-source.h (struct tui_source_window)
9123 <display_start_addr>: Declare.
9124 * tui/tui-winsource.h (struct tui_source_window_base)
9125 <show_source_line, display_start_addr>: New methods.
9126 <m_horizontal_offset, m_start_line_or_addr, m_gdbarch, m_content>:
9127 Rename and move to protected section.
9128 * tui/tui-winsource.c (tui_source_window_base::update_source_window)
9129 (tui_source_window_base::do_erase_source_content): Update.
9130 (tui_source_window_base::show_source_line): Now a method.
9131 (tui_source_window_base::show_source_content)
9132 (tui_source_window_base::tui_source_window_base)
9133 (tui_source_window_base::rerender)
9134 (tui_source_window_base::refill)
9135 (tui_source_window_base::do_scroll_horizontal)
9136 (tui_source_window_base::set_is_exec_point_at)
9137 (tui_source_window_base::update_breakpoint_info)
9138 (tui_source_window_base::update_exec_info): Update.
9139 * tui/tui-source.c (tui_source_window::set_contents)
9140 (tui_source_window::showing_source_p)
9141 (tui_source_window::do_scroll_vertical)
9142 (tui_source_window::location_matches_p)
9143 (tui_source_window::line_is_displayed): Update.
9144 (tui_source_window::display_start_addr): New method.
9145 * tui/tui-disasm.c (tui_disasm_window::set_contents)
9146 (tui_disasm_window::do_scroll_vertical)
9147 (tui_disasm_window::location_matches_p): Update.
9148 (tui_disasm_window::display_start_addr): New method.
9149
01b1af32
TT
91502020-02-22 Tom Tromey <tom@tromey.com>
9151
9152 * NEWS: Add entry for gdb.register_window_type.
9153 * tui/tui-layout.h (window_factory): New typedef.
9154 (tui_register_window): Declare.
9155 * tui/tui-layout.c (saved_tui_windows): New global.
9156 (tui_apply_current_layout): Use it.
9157 (tui_register_window): New function.
9158 * python/python.c (do_start_initialization): Call
9159 gdbpy_initialize_tui.
9160 (python_GdbMethods): Add "register_window_type" function.
9161 * python/python-internal.h (gdbpy_register_tui_window)
9162 (gdbpy_initialize_tui): Declare.
9163 * python/py-tui.c: New file.
9164 * Makefile.in (SUBDIR_PYTHON_SRCS): Add py-tui.c.
9165
fc96d20b
TT
91662020-02-22 Tom Tromey <tom@tromey.com>
9167
9168 * tui/tui-io.c (do_tui_putc): Don't omit annotations.
9169
935c78c0
TT
91702020-02-22 Tom Tromey <tom@tromey.com>
9171
9172 * tui/tui-win.c (tui_set_win_focus_to): Move to tui-data.c.
9173 * tui/tui-data.h (tui_set_win_with_focus): Don't declare.
9174 * tui/tui-data.c (tui_set_win_with_focus): Remove.
9175 (tui_set_win_focus_to): Move from tui-win.c.
9176
0240c8f1
TT
91772020-02-22 Tom Tromey <tom@tromey.com>
9178
9179 * tui/tui-layout.c (make_standard_window, get_locator_window): New
9180 functions.
9181 (known_window_types): New global.
9182 (tui_get_window_by_name): Reimplement.
9183 (initialize_known_windows): New function.
9184 (validate_window_name): Rewrite.
9185 (_initialize_tui_layout): Call initialize_known_windows.
9186
fdb01f0c
TT
91872020-02-22 Tom Tromey <tom@tromey.com>
9188
9189 * tui/tui.h (enum tui_win_type) <LOCATOR_WIN, DATA_ITEM_WIN>:
9190 Remove constants.
9191 * tui/tui-winsource.h (struct tui_source_window_base)
9192 <tui_source_window_base>: Remove parameter.
9193 * tui/tui-winsource.c
9194 (tui_source_window_base::tui_source_window_base): Remove
9195 parameter.
9196 (tui_source_window_base::refill): Update.
9197 * tui/tui-stack.h (struct tui_locator_window)
9198 <tui_locator_window>: Update.
9199 * tui/tui-source.h (struct tui_source_window) <tui_source_window>:
9200 Default the constructor.
9201 * tui/tui-regs.h (struct tui_data_item_window)
9202 <tui_data_item_window>: Default the constructor.
9203 (struct tui_data_window) <tui_data_window>: Likewise.
9204 * tui/tui-disasm.h (struct tui_disasm_window) <tui_disasm_window>:
9205 Default the constructor.
9206 * tui/tui-data.h (struct tui_gen_win_info) <tui_gen_win_info>:
9207 Default the constructor.
9208 <type>: Remove.
9209 (struct tui_win_info) <tui_win_info>: Default the constructor.
9210 * tui/tui-data.c (tui_win_info::tui_win_info): Remove.
9211 * tui/tui-command.h (struct tui_cmd_window) <tui_cmd_window>:
9212 Default the constructor.
9213
865a5aec
TT
92142020-02-22 Tom Tromey <tom@tromey.com>
9215
9216 * tui/tui-wingeneral.h (tui_make_all_invisible): Don't declare.
9217 * tui/tui-wingeneral.c (tui_make_all_invisible): Remove.
9218 * tui/tui-win.c (tui_resize_all): Don't call
9219 tui_delete_invisible_windows.
9220 * tui/tui-layout.c (tui_apply_current_layout): Delete windows when
9221 done.
9222 (tui_set_layout): Update.
9223 (tui_add_win_to_layout): Don't call tui_delete_invisible_windows.
9224 * tui/tui-data.h (tui_delete_invisible_windows): Don't declare.
9225 * tui/tui-data.c (tui_delete_invisible_windows): Remove.
9226
e098d18c
TT
92272020-02-22 Tom Tromey <tom@tromey.com>
9228
9229 * tui/tui-win.c (tui_partial_win_by_name): Handle ambiguity
9230 correctly.
9231
eb9c8874
TT
92322020-02-22 Tom Tromey <tom@tromey.com>
9233
9234 * tui/tui-data.c (tui_next_win, tui_prev_win): Reimplement.
9235
7eed1a8e
TT
92362020-02-22 Tom Tromey <tom@tromey.com>
9237
9238 * tui/tui-winsource.h (struct tui_source_window_iterator)
9239 <inner_iterator>: New etytypedef.
9240 <tui_source_window_iterator>: Take "end" parameter.
9241 <tui_source_window_iterator>: Take iterator.
9242 <operator*, advance>: Update.
9243 <m_iter>: Change type.
9244 <m_end>: New field.
9245 (struct tui_source_windows) <begin, end>: Update.
9246 * tui/tui-layout.c (tui_windows): New global.
9247 (tui_apply_current_layout): Clear tui_windows.
9248 (tui_layout_window::apply): Update tui_windows.
9249 * tui/tui-data.h (tui_windows): Declare.
9250 (all_tui_windows): Now inline function.
9251 (class tui_window_iterator, struct all_tui_windows): Remove.
9252
7c043ba6
TT
92532020-02-22 Tom Tromey <tom@tromey.com>
9254
9255 PR tui/17850:
9256 * tui/tui-win.c (tui_gen_win_info::max_width): New method.
9257 * tui/tui-layout.h (class tui_layout_base) <get_sizes>: Add
9258 "height" argument.
9259 (class tui_layout_window) <get_sizes>: Likewise.
9260 (class tui_layout_split) <tui_layout_split>: Add "vertical"
9261 argument.
9262 <get_sizes>: Add "height" argument.
9263 <m_vertical>: New field.
9264 * tui/tui-layout.c (tui_layout_split::clone): Update.
9265 (tui_layout_split::get_sizes): Add "height" argument.
9266 (tui_layout_split::adjust_size, tui_layout_split::apply): Update.
9267 (tui_new_layout_command): Parse "-horizontal".
9268 (_initialize_tui_layout): Update help string.
9269 (tui_layout_split::specification): Add "-horizontal" when needed.
9270 * tui/tui-layout.c (tui_layout_window::get_sizes): Add "height"
9271 argument.
9272 * tui/tui-data.h (struct tui_gen_win_info) <max_width, min_width>:
9273 New methods.
9274
6bc56648
TT
92752020-02-22 Tom Tromey <tom@tromey.com>
9276
9277 * tui/tui-layout.h (enum tui_adjust_result): New.
9278 (class tui_layout_base) <adjust_size>: Return tui_adjust_result.
9279 (class tui_layout_window) <adjust_size>: Return
9280 tui_adjust_result. Rewrite.
9281 (class tui_layout_split) <adjust_size>: Return tui_adjust_result.
9282 * tui/tui-layout.c (tui_layout_split::adjust_size): Update.
9283
c22fef7e
TT
92842020-02-22 Tom Tromey <tom@tromey.com>
9285
9286 * tui/tui-layout.h (class tui_layout_split) <add_split>: Change
9287 parameter and return types.
9288 (class tui_layout_base) <specification>: Add "depth".
9289 (class tui_layout_window) <specification>: Add "depth".
9290 (class tui_layout_split) <specification>: Add "depth".
9291 * tui/tui-layout.c (tui_layout_split::add_split): Change parameter
9292 and return types.
9293 (tui_new_layout_command): Parse sub-layouts.
9294 (_initialize_tui_layout): Update help string.
9295 (tui_layout_window::specification): Add "depth".
9296 (add_layout_command): Update.
9297
ee325b61
TT
92982020-02-22 Tom Tromey <tom@tromey.com>
9299
9300 * NEWS: Add "tui new-layout" item.
9301 * tui/tui-layout.c (add_layout_command): Return cmd_list_element.
9302 Add new-layout command to help text.
9303 (validate_window_name): New function.
9304 (tui_new_layout_command): New function.
9305 (_initialize_tui_layout): Register "new-layout".
9306 (tui_layout_window::specification): New method.
9307 (tui_layout_window::specification): New method.
9308 * tui/tui-layout.h (class tui_layout_base) <specification>: New
9309 method.
9310 (class tui_layout_window) <specification>: New method.
9311 (class tui_layout_split) <specification>: New method.
9312
416eb92d
TT
93132020-02-22 Tom Tromey <tom@tromey.com>
9314
9315 * tui/tui.c (tui_enable): Call tui_set_initial_layout.
9316 * tui/tui-win.c (window_name_completer): Update comment.
9317 * tui/tui-layout.h (class tui_layout_base) <replace_window>:
9318 Declare method.
9319 (class tui_layout_window) <replace_window>: Likewise.
9320 (class tui_layout_split) <replace_window>: Likewise.
9321 (tui_set_layout): Don't declare.
9322 (tui_set_initial_layout): Declare function.
9323 * tui/tui-layout.c (layouts, applied_skeleton, src_regs_layout)
9324 (asm_regs_layout): New globals.
9325 (tui_current_layout, show_layout): Remove.
9326 (tui_set_layout, tui_add_win_to_layout): Rewrite.
9327 (find_layout, tui_apply_layout): New function.
9328 (layout_completer): Remove.
9329 (tui_next_layout): Reimplement.
9330 (tui_next_layout_command): New function.
9331 (tui_set_initial_layout, tui_prev_layout_command): New functions.
9332 (tui_regs_layout): Reimplement.
9333 (tui_regs_layout_command): New function.
9334 (extract_display_start_addr): Rewrite.
9335 (next_layout, prev_layout): Remove.
9336 (tui_layout_window::replace_window): New method.
9337 (tui_layout_split::replace_window): New method.
9338 (destroy_layout): New function.
9339 (layout_list): New global.
9340 (add_layout_command): New function.
9341 (initialize_layouts): Update.
9342 (tui_layout_command): New function.
9343 (_initialize_tui_layout): Install "layout" commands.
9344 * tui/tui-data.h (enum tui_layout_type): Remove.
9345 (tui_current_layout): Don't declare.
9346
0dbc2fc7
TT
93472020-02-22 Tom Tromey <tom@tromey.com>
9348
9349 * tui/tui-regs.c (tui_reg_layout): Remove.
9350 (tui_reg_command): Use tui_regs_layout.
9351 * tui/tui-layout.h (tui_reg_command): Declare.
9352 * tui/tui-layout.c (tui_reg_command): New function.
9353
5afe342e
TT
93542020-02-22 Tom Tromey <tom@tromey.com>
9355
9356 * tui/tui.c (tui_rl_delete_other_windows): Call
9357 tui_remove_some_windows.
9358 * tui/tui-layout.h (class tui_layout_base) <remove_windows>:
9359 Declare method.
9360 (class tui_layout_window) <remove_windows>: New method.
9361 (class tui_layout_split) <remove_windows>: Declare.
9362 (tui_remove_some_windows): Declare.
9363 * tui/tui-layout.c (tui_remove_some_windows): New function.
9364 (tui_layout_split::remove_windows): New method.
9365
427326a8
TT
93662020-02-22 Tom Tromey <tom@tromey.com>
9367
9368 * tui/tui.c (tui_rl_change_windows): Call tui_next_layout.
9369 * tui/tui-layout.h (tui_next_layout): Declare.
9370 * tui/tui-layout.c (tui_next_layout): New function.
9371
3fe12b6d
TT
93722020-02-22 Tom Tromey <tom@tromey.com>
9373
9374 * tui/tui-regs.c (tui_data_window::display_registers_from): Use
9375 correct coordinates.
9376
59b8b5d2
TT
93772020-02-22 Tom Tromey <tom@tromey.com>
9378
9379 * tui/tui-layout.h (tui_add_win_to_layout): Add comment.
9380 * tui/tui-layout.c (tui_add_win_to_layout): Add assert. Remove
9381 DATA_WIN case.
9382
2a3d458b
TT
93832020-02-22 Tom Tromey <tom@tromey.com>
9384
9385 * tui/tui-disasm.c (tui_get_low_disassembly_address): Use
9386 TUI_DISASM_WIN, not tui_win_list.
9387
3f0cbb04
TT
93882020-02-22 Tom Tromey <tom@tromey.com>
9389
9390 * valprint.c (generic_val_print_enum_1)
9391 (val_print_type_code_flags): Style member names.
9392 * rust-lang.c (val_print_struct, rust_print_enum)
9393 (rust_print_struct_def, rust_internal_print_type): Style member
9394 names.
9395 * p-valprint.c (pascal_object_print_value_fields): Style member
9396 names. Only call fprintf_symbol_filtered for static members.
9397 * m2-typeprint.c (m2_record_fields, m2_enum): Style member names.
9398 * f-valprint.c (f_val_print): Style member names.
9399 * f-typeprint.c (f_type_print_base): Style member names.
9400 * cp-valprint.c (cp_print_value_fields): Style member names. Only
9401 call fprintf_symbol_filtered for static members.
9402 (cp_print_class_member): Style member names.
9403 * c-typeprint.c (c_print_type_1, c_type_print_base_1): Style
9404 member names.
9405 * ada-valprint.c (ada_print_scalar): Style enum names.
9406 (ada_val_print_enum): Likewise.
9407 * ada-typeprint.c (print_enum_type): Style enum names.
9408
d4d947ae
TT
94092020-02-21 Tom Tromey <tom@tromey.com>
9410
9411 * psympriv.h (struct partial_symtab): Update comment.
9412
e94e944b
TT
94132020-02-21 Tom Tromey <tromey@adacore.com>
9414
9415 * mips-tdep.h (mips_pc_is_mips16, mips_pc_is_micromips): Parameter
9416 type is CORE_ADDR.
9417
1eb73179
TV
94182020-02-21 Tom de Vries <tdevries@suse.de>
9419
9420 PR gdb/25534
9421 * psymtab.c (partial_symtab::read_dependencies): Don't read dependency
9422 if dependencies[i]->user != NULL.
9423
4f180d53
AT
94242020-02-21 Ali Tamur <tamur@google.com>
9425
9426 * dwarf2/read.c (dwarf2_name): Add null check.
9427
22b6cd70
TT
94282020-02-20 Tom Tromey <tom@tromey.com>
9429
9430 * dwarf2/read.c (dwarf2_find_containing_comp_unit): Use ">", not
9431 ">=", in binary search.
9432 (dwarf2_find_containing_comp_unit): New overload.
9433 (run_test): New self-test.
9434 (_initialize_dwarf2_read): Register new test.
9435
bd0cf5a6
NC
94362020-02-20 Nelson Chu <nelson.chu@sifive.com>
9437
9438 * riscv-tdep.c: Updated since the DECLARE_CSR is changed.
9439 * riscv-tdep.h: Likewise.
9440 * features/riscv/rebuild-csr-xml.sh: Generate the 64bit-csr.xml without
9441 rv32-only CSR.
9442 * features/riscv/64bit-csr.xml: Regenerated.
9443
3f702acd
SDJ
94442020-02-20 Sergio Durigan Junior <sergiodj@redhat.com>
9445 Tom Tromey <tom@tromey.com>
9446
9447 * utils.c (fputs_maybe_filtered): Call 'stream->puts' instead
9448 of 'fputc_unfiltered'.
9449 (putchar_unfiltered): Call 'fputc_unfiltered'.
9450 (fputc_unfiltered): Call 'fputs_unfiltered'.
9451
d13c7322
AB
94522020-02-20 Andrew Burgess <andrew.burgess@embecosm.com>
9453
9454 * config.in: Regenerate.
9455 * configure: Regenerate.
9456 * configure.ac: Add --with-python-libdir option.
9457 * main.c: Use WITH_PYTHON_LIBDIR.
9458
869d8950
TT
94592020-02-19 Tom Tromey <tom@tromey.com>
9460
9461 * symtab.c (general_symbol_info::compute_and_set_names): Use
9462 obstack_strndup. Simplify call to symbol_set_demangled_name.
9463
298e9637
SM
94642020-02-19 Simon Marchi <simon.marchi@efficios.com>
9465
9466 * dwarf2/read.c (allocate_signatured_type_table,
9467 allocate_dwo_unit_table, allocate_type_unit_groups_table,
9468 allocate_dwo_file_hash_table, allocate_dwp_loaded_cutus_table):
9469 Remove objfile parameter, update all callers.
9470
08410482
DE
94712020-02-19 Doug Evans <dje@google.com>
9472
9473 PR rust/25535
9474 * rust-lang.c (rust_print_enum): Apply embedded_offset to
9475 rust_enum_variant calculation.
9476
dfdeeca1
TT
94772020-02-19 Tom Tromey <tromey@adacore.com>
9478
9479 * mips-tdep.h (mips_pc_is_mips): Parameter type is CORE_ADDR.
9480
2ef5453b
TT
94812020-02-19 Tom Tromey <tromey@adacore.com>
9482
9483 * ada-lang.c (cache_symbol): Use obstack_strdup.
9484
9f1528a1
AB
94852020-02-19 Andrew Burgess <andrew.burgess@embecosm.com>
9486
9487 * configure: Regenerate.
9488
d3c22fa8
TT
94892020-02-19 Tom Tromey <tromey@adacore.com>
9490
9491 * python/python.c (do_start_initialization): Use XNEWVEC. Remove
9492 NULL check.
9493
bf84f706
MR
94942020-02-19 Maciej W. Rozycki <macro@wdc.com>
9495
9496 * NEWS: Mention RISC-V GNU/Linux GDBserver support.
9497
d1c9b20f
AB
94982020-02-19 Andrew Burgess <andrew.burgess@embecosm.com>
9499
9500 * arch/riscv.c (struct riscv_gdbarch_features_hasher): Only define
9501 if GDBSERVER is not defined.
9502 (riscv_tdesc_cache): Likewise, also store const target_desc.
9503 (STATIC_IN_GDB): Define.
9504 (riscv_create_target_description): Update declaration with
9505 STATIC_IN_GDB.
9506 (riscv_lookup_target_description): New function, only define if
9507 GDBSERVER is not defined.
9508 * arch/riscv.h (riscv_create_target_description): Declare only
9509 when GDBSERVER is defined.
9510 (riscv_lookup_target_description): New declaration when GDBSERVER
9511 is not defined.
9512 * nat/riscv-linux-tdesc.c (riscv_linux_read_description): Rename to...
9513 (riscv_linux_read_features): ...this, and return
9514 riscv_gdbarch_features instead of target_desc.
9515 * nat/riscv-linux-tdesc.h: Include 'arch/riscv.h'.
9516 (riscv_linux_read_description): Rename to...
9517 (riscv_linux_read_features): ...this.
9518 * riscv-linux-nat.c (riscv_linux_nat_target::read_description):
9519 Update to use riscv_gdbarch_features and
9520 riscv_lookup_target_description.
9521 * riscv-tdep.c (riscv_find_default_target_description): Use
9522 riscv_lookup_target_description instead of
9523 riscv_create_target_description.
9524
373d7ac0
SM
95252020-02-18 Simon Marchi <simon.marchi@efficios.com>
9526
9527 * valprint.c (generic_val_print_enum_1): When printing a flag
9528 enum with value 0 and there is no enumerator with value 0, print
9529 just "0" instead of "(unknown: 0x0)".
9530
b29a2df0
SM
95312020-02-18 Simon Marchi <simon.marchi@efficios.com>
9532
9533 * valprint.c (generic_val_print_enum_1): Print unknown part of
9534 flag enum in hex.
9535
6740f0cc
SM
95362020-02-18 Simon Marchi <simon.marchi@efficios.com>
9537
9538 * dwarf2/read.c (update_enumeration_type_from_children): Allow
9539 flag enums to contain duplicate enumerators.
9540 * valprint.c (generic_val_print_enum_1): Update comment.
9541
edd45eb0
SM
95422020-02-18 Simon Marchi <simon.marchi@efficios.com>
9543
9544 * dwarf2/read.c: Include "count-one-bits.h".
9545 (update_enumeration_type_from_children): If an enumerator has
9546 multiple bits set, don't treat the enumeration as a "flag enum".
9547 * valprint.c (generic_val_print_enum_1): Assert that enumerators
9548 of flag enums have 0 or 1 bit set.
9549
6d0cf446
BE
95502020-02-18 Bernd Edlinger <bernd.edlinger@hotmail.de>
9551
9552 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Use an explicit
9553 conversion.
9554 * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise.
9555 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn): Likewise.
9556 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
9557 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Likewise.
9558 * s390-tdep.c (s390_displaced_step_copy_insn): Likewise.
9559
7001c1b7
SM
95602020-02-18 Simon Marchi <simon.marchi@efficios.com>
9561
9562 * MAINTAINERS: Change palmer@sifive.com to palmer@dabbelt.com.
9563
fdb61c6c
SM
95642020-02-14 Simon Marchi <simon.marchi@efficios.com>
9565
9566 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Use
9567 displaced_step_closure_up.
9568 * aarch64-tdep.h (aarch64_displaced_step_copy_insn): Likewise.
9569 (struct displaced_step_closure_up):
9570 * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise.
9571 * amd64-tdep.h (amd64_displaced_step_copy_insn): Likewise.
9572 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn):
9573 Likewise.
9574 * gdbarch.sh (displaced_step_copy_insn): Likewise.
9575 * gdbarch.c, gdbarch.h: Re-generate.
9576 * i386-linux-tdep.c (i386_linux_displaced_step_copy_insn): Use
9577 displaced_step_closure_up.
9578 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
9579 * i386-tdep.h (i386_displaced_step_copy_insn): Likewise.
9580 * infrun.h (displaced_step_closure_up): New type alias.
9581 (struct displaced_step_inferior_state) <step_closure>: Change
9582 type to displaced_step_closure_up.
9583 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Use
9584 displaced_step_closure_up.
9585 * s390-tdep.c (s390_displaced_step_copy_insn): Likewise.
9586
a4a38eb4
TT
95872020-02-14 Tom Tromey <tom@tromey.com>
9588
9589 * minidebug.c (gnu_debug_key): New global.
9590 (find_separate_debug_file_in_section): Use it.
9591
e8217e61
SM
95922020-02-14 Simon Marchi <simon.marchi@efficios.com>
9593
9594 * gdbarch.sh (displaced_step_copy_insn): Change return type to an
9595 std::unique_ptr.
9596 * gdbarch.c: Re-generate.
9597 * gdbarch.h: Re-generate.
9598 * infrun.c (displaced_step_prepare_throw): Adjust to std::unique_ptr
9599 change.
9600 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Change return
9601 type to std::unique_ptr.
9602 * aarch64-tdep.h (aarch64_displaced_step_copy_insn): Likewise.
9603 * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise.
9604 * amd64-tdep.h (amd64_displaced_step_copy_insn): Likewise.
9605 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn): Likewise.
9606 * i386-linux-tdep.c (i386_linux_displaced_step_copy_insn): Likewise.
9607 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
9608 * i386-tdep.h (i386_displaced_step_copy_insn): Likewise.
9609 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Likewise.
9610 * s390-tdep.c (s390_displaced_step_copy_insn): Likewise.
9611
d8d83535
SM
96122020-02-14 Simon Marchi <simon.marchi@efficios.com>
9613
9614 * infrun.c (get_displaced_step_closure_by_addr): Adjust to
9615 std::unique_ptr.
9616 (displaced_step_clear): Rename to...
9617 (displaced_step_reset): ... this. Just call displaced->reset ().
9618 (displaced_step_clear_cleanup): Rename to...
9619 (displaced_step_reset_cleanup): ... this.
9620 (displaced_step_prepare_throw): Adjust to std::unique_ptr.
9621 (displaced_step_fixup): Likewise.
9622 (resume_1): Likewise.
9623 (handle_inferior_event): Restore child's memory before calling
9624 displaced_step_fixup on the parent.
9625 * infrun.h (displaced_step_inferior_state) <reset>: Adjust
9626 to std::unique_ptr.
9627 <step_closure>: Change type to std::unique_ptr.
9628
5f661e03
SM
96292020-02-14 Simon Marchi <simon.marchi@efficios.com>
9630
9631 * arm-tdep.c: Include count-one-bits.h.
9632 (cleanup_block_store_pc): Use count_one_bits.
9633 (cleanup_block_load_pc): Use count_one_bits.
9634 (arm_copy_block_xfer): Use count_one_bits.
9635 (thumb2_copy_block_xfer): Use count_one_bits.
9636 (thumb_copy_pop_pc_16bit): Use count_one_bits.
9637 * arch/arm-get-next-pcs.c: Include count-one-bits.h.
9638 (thumb_get_next_pcs_raw): Use count_one_bits.
9639 (arm_get_next_pcs_raw): Use count_one_bits_l.
9640 * arch/arm.c (bitcount): Remove.
9641 * arch/arm.h (bitcount): Remove.
9642
8084e579
TT
96432020-02-14 Tom Tromey <tromey@adacore.com>
9644
9645 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first):
9646 Update.
9647 * dwarf2/loc.h (call_site_find_chain): Return unique_xmalloc_ptr.
9648 * dwarf2/loc.c (call_site_find_chain_1): Return
9649 unique_xmalloc_ptr.
9650 (call_site_find_chain): Likewise.
9651
258bf0ee
RB
96522020-02-14 Richard Biener <rguenther@suse.de>
9653
9654 * dwarf2/read.c (lnp_state_machine::handle_special_opcode): Apply CSE
9655 on expression with division operators.
9656
f98a8458
AKS
96572020-02-13 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
9658
9659 * MAINTAINERS (Write After Approval): Adding myself.
9660
d1437c0e
TT
96612020-02-12 Tom Tromey <tom@tromey.com>
9662
9663 * event-loop.c (event_data, gdb_event, event_handler_func):
9664 Remove.
9665
3d4560f7
TT
96662020-02-12 Tom Tromey <tom@tromey.com>
9667
9668 * dwarf2/frame.c (dwarf2_frame_bfd_data): New global.
9669 (dwarf2_frame_objfile_data): Add comment.
9670 (find_comp_unit, set_comp_unit): New functions.
9671 (dwarf2_frame_find_fde): Use find_comp_unit.
9672 (dwarf2_build_frame_info): Use set_comp_unit.
9673
21982304
TT
96742020-02-12 Tom Tromey <tom@tromey.com>
9675
9676 * dwarf2/frame.c (struct comp_unit) <objfile>: Remove.
9677 (comp_unit): Don't initialize objfile.
9678 (execute_cfa_program): Add text_offset parameter.
9679 (execute_cfa_program_test, dwarf2_fetch_cfa_info)
9680 (dwarf2_frame_cache): Update.
9681 (dwarf2_build_frame_info): Don't set "objfile" member.
9682
4debb237
TT
96832020-02-12 Tom Tromey <tom@tromey.com>
9684
9685 * dwarf2/frame.c (decode_frame_entry_1): Add gdbarch parameter.
9686 (decode_frame_entry): Likewise.
9687 (dwarf2_build_frame_info): Update.
9688
0d404d44
TT
96892020-02-12 Tom Tromey <tom@tromey.com>
9690
9691 * dwarf2/frame.c (struct comp_unit) <obstack>: New member.
9692 (decode_frame_entry_1): Use the comp_unit obstack.
9693
a7a3ae5c
TT
96942020-02-12 Tom Tromey <tom@tromey.com>
9695
9696 * dwarf2/frame.c (struct comp_unit): Add initializers and
9697 constructor.
9698 (dwarf2_frame_objfile_data): Store a comp_unit.
9699 (dwarf2_frame_find_fde): Update.
9700 (dwarf2_build_frame_info): Use "new".
9701
a9d65418
TT
97022020-02-12 Tom Tromey <tom@tromey.com>
9703
9704 * dwarf2/frame.c (struct dwarf2_fde_table): Remove.
9705 (dwarf2_fde_table): Typedef for std::vector.
9706 (dwarf2_frame_objfile_data): Remove the deleter. Now static.
9707 (dwarf2_frame_find_fde, add_fde, decode_frame_entry_1)
9708 (decode_frame_entry): Update.
9709 (dwarf2_build_frame_info): Use "new".
9710
7559c217
CB
97112020-02-12 Christian Biesinger <cbiesinger@google.com>
9712
9713 * arm-tdep.c (arm_gdbarch_init): Update.
9714 * arm-tdep.h (struct gdbarch_tdep) <have_fpa_registers,
9715 have_wmmx_registers, have_vfp_pseudos, have_neon_pseudos,
9716 have_neon, is_m>: Change to bool.
9717
aeefc73c
CB
97182020-02-12 Christian Biesinger <cbiesinger@google.com>
9719
9720 * arm-tdep.c (arm_dump_tdep): Print more fields of tdep.
9721
d27b8e5f
TT
97222020-02-12 Tom Tromey <tom@tromey.com>
9723
9724 * dwarf2/loc.c (struct dwarf_expr_baton): Remove.
9725
cd5900f3
HD
97262020-02-12 Hannes Domani <ssbssa@yahoo.de>
9727
9728 * windows-tdep.c (struct windows_gdbarch_data): Add tib_ptr_type.
9729 (windows_get_tlb_type): Use windows_gdbarch_data->tib_ptr_type.
9730
f056b22b
TT
97312020-02-11 Tom Tromey <tom@tromey.com>
9732
9733 * psymtab.h: Update comment.
9734
f92ff6b5
TT
97352020-02-11 Tom Tromey <tom@tromey.com>
9736
9737 * gdb_obstack.h (struct auto_obstack): Use
9738 DISABLE_COPY_AND_ASSIGN.
9739
3fd6912b
TT
97402020-02-11 Tom Tromey <tom@tromey.com>
9741
9742 * dwarf2/frame.h (struct objfile): Don't forward declare.
9743
69ed9b74
CB
97442020-02-11 Christian Biesinger <cbiesinger@google.com>
9745
9746 * cris-tdep.c (cris_supply_gregset): Change signature to match
9747 what struct regset expects.
9748 (cris_regset): New struct.
9749 (fetch_core_registers): Remove.
9750 (cris_iterate_over_regset_sections): New function.
9751 (_initialize_cris_tdep): Don't call deprecated_add_core_fns.
9752 (cris_gdbarch_init): Call set_gdbarch_iterate_over_regset_sections.
9753
bda874f6
CB
97542020-02-11 Christian Biesinger <cbiesinger@google.com>
9755
9756 * arch/arm.h (enum gdb_regnum): Add comment for the FP0..7
9757 registers.
9758
754e1564
CB
97592020-02-11 Christian Biesinger <cbiesinger@google.com>
9760
9761 * arm-tdep.c (arm_dump_tdep): Add \n in fprintf.
9762
8ddd8e0e
SM
97632020-02-11 Simon Marchi <simon.marchi@efficios.com>
9764
9765 * configure: Re-generate.
9766
898e7f60
SM
97672020-02-11 Simon Marchi <simon.marchi@efficios.com>
9768
9769 * configure: Re-generate.
9770
58df732b
SM
97712020-02-11 Simon Marchi <simon.marchi@efficios.com>
9772
9773 * acinclude: Update warning.m4 path.
9774 * warning.m4: Move to gdbsupport.
9775
da5bd37e
TT
97762020-02-11 Tom Tromey <tromey@adacore.com>
9777
9778 * remote.c (remote_console_output): Update.
9779 * printcmd.c (printf_command): Update.
9780 * event-loop.c (gdb_wait_for_event): Update.
9781 * linux-nat.c (sigchld_handler): Update.
9782 * remote-sim.c (gdb_os_write_stdout): Update.
9783 (gdb_os_flush_stdout): Update.
9784 (gdb_os_flush_stderr): Update.
9785 (gdb_os_write_stderr): Update.
9786 * exceptions.c (print_exception): Update.
9787 * remote-fileio.c (remote_fileio_func_read): Update.
9788 (remote_fileio_func_write): Update.
9789 * tui/tui.c (tui_enable): Update.
9790 * tui/tui-interp.c (tui_interp::init): Update.
9791 * utils.c (init_page_info): Update.
9792 (putchar_unfiltered, fputc_unfiltered): Update.
9793 (gdb_flush): Update.
9794 (emit_style_escape): Update.
9795 (flush_wrap_buffer, fputs_maybe_filtered): Update.
9796 * ui-file.c (ui_file_isatty, ui_file_read, ui_file_write)
9797 (ui_file_write_async_safe, ui_file_flush, ui_file_puts): Remove.
9798 (stderr_file::write): Update.
9799 (stderr_file::puts): Update.
9800 * ui-file.h (ui_file_isatty, ui_file_write)
9801 (ui_file_write_async_safe, ui_file_read, ui_file_flush)
9802 (ui_file_puts): Don't declare.
9803
85f0dd3c
TV
98042020-02-10 Tom de Vries <tdevries@suse.de>
9805
9806 * dwarf2/read.c (process_psymtab_comp_unit_reader): Cast concat NULL
9807 sentinel to char *.
9808
2e927613
TV
98092020-02-09 Tom de Vries <tdevries@suse.de>
9810
9811 * dwarf2read.c (process_psymtab_comp_unit_reader): Append CU offset to
9812 filename if it matches "<artificial>".
9813
6bafc845
HD
98142020-02-09 Hannes Domani <ssbssa@yahoo.de>
9815
9816 * windows-tdep.c (struct enum_value_name): New struct.
9817 (create_enum): New function.
9818 (windows_get_siginfo_type): Create and use enum types.
9819
7928d571
HD
98202020-02-09 Hannes Domani <ssbssa@yahoo.de>
9821
9822 * NEWS: Mention $_siginfo support for Windows.
9823 * windows-nat.c (handle_exception): Set siginfo_er.
9824 (windows_nat_target::mourn_inferior): Reset siginfo_er.
9825 (windows_xfer_siginfo): New function.
9826 (windows_nat_target::xfer_partial): Call windows_xfer_siginfo.
9827 * windows-tdep.c (struct windows_gdbarch_data): New struct.
9828 (init_windows_gdbarch_data): New function.
9829 (get_windows_gdbarch_data): New function.
9830 (windows_get_siginfo_type): New function.
9831 (windows_init_abi): Register windows_get_siginfo_type.
9832 (_initialize_windows_tdep): Register init_windows_gdbarch_data.
9833
6751ebae
TT
98342020-02-08 Tom Tromey <tom@tromey.com>
9835
9836 * dwarf2/read.c (class cutu_reader) <cutu_reader,
9837 init_tu_and_read_dwo_dies>: Remove "keep" parameter.
9838 <keep>: Declare method.
9839 <m_keep>: Remove member.
9840 <~cutu_reader>: Remove.
9841 (cutu_reader::init_tu_and_read_dwo_dies): Update.
9842 (cutu_reader::cutu_reader): Update.
9843 (cutu_reader::keep): Rename from ~cutu_reader.
9844 (process_psymtab_comp_unit, build_type_psymtabs_1)
9845 (process_skeletonless_type_unit, load_partial_comp_unit)
9846 (load_full_comp_unit, dwarf2_read_addr_index)
9847 (read_signatured_type): Update.
9848
135f5437
TT
98492020-02-08 Tom Tromey <tom@tromey.com>
9850
9851 * dwarf2/read.c (process_psymtab_comp_unit_reader): Remove
9852 "want_partial_unit" parameter.
9853 (process_psymtab_comp_unit): Change want_partial_unit to bool.
9854 Inline check for DW_TAG_partial_unit.
9855 (dwarf2_build_psymtabs_hard, scan_partial_symbols): Update.
9856
9f66ff1c
TT
98572020-02-08 Tom Tromey <tom@tromey.com>
9858
9859 * dwarf2/read.c (read_n_bytes, read_direct_string): Move to
9860 read.c.
9861 * dwarf2/leb.h (read_n_bytes, read_direct_string): Move from
9862 read.c.
9863
c8a7a66f
TT
98642020-02-08 Tom Tromey <tom@tromey.com>
9865
9866 * dwarf2/read.c (read_address): Move to comp-unit.c.
9867 (dwarf2_rnglists_process, dwarf2_ranges_process)
9868 (read_attribute_value, dwarf_decode_lines_1)
9869 (var_decode_location, decode_locdesc): Update.
9870 * dwarf2/comp-unit.c (comp_unit_head::read_address): Move from
9871 read.c. Remove "cu" parameter.
9872 * dwarf2/comp-unit.h (struct comp_unit_head) <read_address>: New
9873 method.
9874
8266302d
TT
98752020-02-08 Tom Tromey <tom@tromey.com>
9876
9877 * dwarf2/read.c (read_attribute_value, read_indirect_string)
9878 (read_indirect_line_string): Update.
9879 * dwarf2/comp-unit.c (read_offset): Remove.
9880 (read_comp_unit_head): Update.
9881 * dwarf2/comp-unit.h (struct comp_unit_head) <read_offset>: New
9882 method.
9883 (read_offset): Don't declare.
9884
4057dfde
TT
98852020-02-08 Tom Tromey <tom@tromey.com>
9886
9887 * Makefile.in (COMMON_SFILES): Add dwarf2/comp-unit.c.
9888 * dwarf2/read.c (struct comp_unit_head): Move to
9889 dwarf2/comp-unit.h.
9890 (enum class rcuh_kind): Move to comp-unit.h.
9891 (get_cu_length, offset_in_cu_p): Now methods on comp_unit_head.
9892 (read_comp_unit_head, error_check_comp_unit_head)
9893 (read_and_check_comp_unit_head): Move to comp-unit.c.
9894 (read_offset, dwarf_unit_type_name): Likewise.
9895 (create_debug_type_hash_table, read_cutu_die_from_dwo)
9896 (cutu_reader::cutu_reader, read_call_site_scope)
9897 (find_partial_die, follow_die_offset): Update.
9898 * dwarf2/comp-unit.h: New file, from dwarf2read.c.
9899
24aa364d
TT
99002020-02-08 Tom Tromey <tom@tromey.com>
9901
9902 * dwarf2/read.c (read_offset_1): Move to leb.c.
9903 (read_abbrev_offset, read_offset, dwarf_decode_line_header)
9904 (dwarf_decode_macro_bytes): Update.
9905 * dwarf2/leb.c (read_offset): Rename; move from read.c.
9906 * dwarf2/leb.h (read_offset): Declare.
9907
2c7d5afc
TT
99082020-02-08 Tom Tromey <tom@tromey.com>
9909
9910 * dwarf2/read.c (dwarf2_section_size): Remove.
9911 (error_check_comp_unit_head, dwarf2_symbol_mark_computed):
9912 Update.
9913 * dwarf2/section.h (struct dwarf2_section_info) <get_size>: New method.
9914
4075cb26
TT
99152020-02-08 Tom Tromey <tom@tromey.com>
9916
9917 * dwarf2/read.c (read_initial_length): Move to leb.c.
9918 * dwarf2/leb.h (read_initial_length): Declare.
9919 * dwarf2/leb.c (read_initial_length): Move from read.c. Add
9920 handle_nonstd parameter.
9921 * dwarf2/frame.c (read_initial_length): Remove.
9922 (decode_frame_entry_1): Update.
9923
09ba997f
TT
99242020-02-08 Tom Tromey <tom@tromey.com>
9925
9926 * dwarf2/loc.c (dwarf2_find_location_expression)
9927 (dwarf_evaluate_loc_desc::get_tls_address)
9928 (dwarf_evaluate_loc_desc::push_dwarf_reg_entry_value)
9929 (rw_pieced_value, dwarf2_evaluate_loc_desc_full)
9930 (dwarf2_locexpr_baton_eval, dwarf2_evaluate_property)
9931 (dwarf2_compile_property_to_c)
9932 (dwarf2_loc_desc_get_symbol_read_needs)
9933 (dwarf2_compile_expr_to_ax, locexpr_describe_location)
9934 (locexpr_tracepoint_var_ref, locexpr_generate_c_location)
9935 (loclist_describe_location, loclist_tracepoint_var_ref)
9936 (loclist_generate_c_location): Update.
9937 * compile/compile-loc2c.c (do_compile_dwarf_expr_to_c): Update.
9938 * dwarf2/loc.h (dwarf2_per_cu_objfile, dwarf2_per_cu_addr_size)
9939 (dwarf2_per_cu_ref_addr_size, dwarf2_per_cu_offset_size)
9940 (dwarf2_per_cu_text_offset, dwarf2_version): Don't declare.
9941 * dwarf2/read.c (dwarf2_per_cu_data::objfile)
9942 (dwarf2_per_cu_data::addr_size)
9943 (dwarf2_per_cu_data::ref_addr_size)
9944 (dwarf2_per_cu_data::text_offset)
9945 (dwarf2_per_cu_data::addr_type): Now methods.
9946 (per_cu_header_read_in): Make per_cu "const".
9947 (dwarf2_version): Remove.
9948 (dwarf2_per_cu_data::int_type): Now a method.
9949 (dwarf2_per_cu_data::_addr_sized_int_type): Likewise.
9950 (set_die_type, read_array_type, read_subrange_index_type)
9951 (read_tag_string_type, read_subrange_type): Update.
9952 * dwarf2/read.h (struct dwarf2_per_cu_data) <addr_size,
9953 offset_size, ref_addr_size, text_offset, addr_type, version,
9954 objfile, int_type, addr_sized_int_type>: Declare methods.
9955
96c738c0
TT
99562020-02-08 Tom Tromey <tom@tromey.com>
9957
9958 * dwarf2/read.h (struct dwarf2_per_cu_data) <imported_symtabs>:
9959 Move earlier.
9960
8fdd972c
TT
99612020-02-08 Tom Tromey <tom@tromey.com>
9962
9963 * dwarf2/read.h (dwarf_line_debug): Declare.
9964 * Makefile.in (COMMON_SFILES): Add dwarf2/line-header.c.
9965 * dwarf2/read.c: Move line_header code to new files.
9966 (dwarf_line_debug): No longer static.
9967 * dwarf2/line-header.c: New file.
9968 * dwarf2/line-header.h: New file.
9969
03075812
TT
99702020-02-08 Tom Tromey <tom@tromey.com>
9971
9972 * dwarf2/read.c (struct line_header) <file_full_name,
9973 file_file_name>: Return unique_xmalloc_ptr.
9974 (line_header::file_file_name): Update.
9975 (line_header::file_full_name): Update.
9976 (dw2_get_file_names_reader): Update.
9977 (macro_start_file): Update.
9978
bb822404
TT
99792020-02-08 Tom Tromey <tom@tromey.com>
9980
9981 * dwarf2/read.c (struct line_header) <file_full_name,
9982 file_file_name>: Declare methods.
9983 (dw2_get_file_names_reader): Update.
9984 (file_file_name): Now a method.
9985 (file_full_name): Likewise.
9986 (macro_start_file): Update.
9987
009b64fc
TT
99882020-02-08 Tom Tromey <tom@tromey.com>
9989
9990 * dwarf2/read.c (dwarf_always_disassemble)
9991 (show_dwarf_always_disassemble): Move to loc.c.
9992 (_initialize_dwarf2_read): Move "always-disassemble" registration
9993 to loc.c.
9994 * dwarf2/read.h (dwarf_always_disassemble): Don't declare.
9995 * dwarf2/loc.c (dwarf_always_disassemble): Move from read.c. Now
9996 static.
9997 (show_dwarf_always_disassemble): Move from read.c.
9998 (_initialize_dwarf2loc): Move always-disassemble from read.c.
9999
5895093f
TT
100002020-02-08 Tom Tromey <tom@tromey.com>
10001
10002 * dwarf2/read.c (~dwarf2_per_objfile): Update.
10003 (create_quick_file_names_table): Return htab_up.
10004 (dw2_get_file_names_reader, dw2_forget_cached_source_info):
10005 Update.
10006 * dwarf2/read.h (struct dwarf2_per_objfile)
10007 <quick_file_names_table>: Now htab_up.
10008
b3b32279
TT
100092020-02-08 Tom Tromey <tom@tromey.com>
10010
10011 * dwarf2/abbrev.c (abbrev_table::read): Simplify.
10012
1d33d811
TT
100132020-02-08 Tom Tromey <tom@tromey.com>
10014
10015 * dwarf2/abbrev.c (abbrev_table): Move constructor from header.
10016 Rewrite.
10017 (abbrev_table::add_abbrev, abbrev_table::lookup_abbrev): Rewrite.
10018 * dwarf2/abbrev.h (struct abbrev_info) <next>: Remove.
10019 (abbrev_table::abbrev_table): No longer inline.
10020 (ABBREV_HASH_SIZE): Remove.
10021 (abbrev_table::m_abbrevs): Now an htab_up.
10022
86de1d91
TT
100232020-02-08 Tom Tromey <tom@tromey.com>
10024
10025 * dwarf2/read.c (read_cutu_die_from_dwo): Update.
10026 (cutu_reader): Update.
10027 (build_type_psymtabs_1): Update.
10028 * dwarf2/abbrev.c (abbrev_table::read): Rename.
10029 (abbrev_table::alloc_abbrev): Update.
10030 * dwarf2/abbrev.h (abbrev_table_up): Move earlier.
10031 (abbrev_table::read): New static method, renamed from
10032 abbrev_table_read_table.
10033 (abbrev_table::alloc_abbrev)
10034 (abbrev_table::add_abbrev): Now private.
10035 (abbrev_table::abbrev_table): Now private.
10036 (abbrev_table::m_abbrev_obstack): Now private. Rename.
10037
0335378b
TT
100382020-02-08 Tom Tromey <tom@tromey.com>
10039
10040 * dwarf2/read.c (set_die_type, get_die_type_at_offset): Update.
10041 * dwarf2/read.h (struct dwarf2_per_objfile) <die_type_hash>: Now
10042 htab_up.
10043
48b490f2
TT
100442020-02-08 Tom Tromey <tom@tromey.com>
10045
10046 * dwarf2/read.c (struct dwp_file) <loaded_cus, loaded_tus>: Now
10047 htab_up.
10048 (lookup_dwo_unit_in_dwp): Update.
10049 (allocate_dwp_loaded_cutus_table): Return htab_up. Don't allocate
10050 on obstack.
10051
bc68fb19
TT
100522020-02-08 Tom Tromey <tom@tromey.com>
10053
10054 * dwarf2/read.c (allocate_dwo_file_hash_table): Don't allocate on
10055 obstack.
10056
d15acc42
TT
100572020-02-08 Tom Tromey <tom@tromey.com>
10058
10059 * dwarf2/read.c (~dwarf2_per_objfile): Don't delete
10060 line_header_hash.
10061 (handle_DW_AT_stmt_list): Update. Don't allocate on obstack.
10062 * dwarf2/read.h (struct dwarf2_per_objfile) <line_header_hash>:
10063 Change type to htab_up.
10064
eaa5fa8b
TT
100652020-02-08 Tom Tromey <tom@tromey.com>
10066
10067 * dwarf2/read.c (allocate_type_unit_groups_table): Return
10068 htab_up. Don't allocate on obstack.
10069 (get_type_unit_group, dwarf2_build_psymtabs_hard): Update.
10070 * dwarf2/read.h (struct dwarf2_per_objfile) <type_unit_groups>:
10071 Change type to htab_up.
10072
b0b6a987
TT
100732020-02-08 Tom Tromey <tom@tromey.com>
10074
10075 * dwarf2/read.h (struct dwarf2_per_objfile) <signatured_types>:
10076 Change type to htab_up.
10077 * dwarf2/read.c (create_signatured_type_table_from_index)
10078 (create_signatured_type_table_from_debug_names)
10079 (create_all_type_units, add_type_unit)
10080 (lookup_dwo_signatured_type, lookup_signatured_type)
10081 (process_skeletonless_type_unit): Update.
10082 (create_debug_type_hash_table, create_debug_types_hash_table):
10083 Change type of types_htab.
10084 (allocate_signatured_type_table, allocate_dwo_unit_table): Return
10085 htab_up. Don't allocate on obstack.
10086 (create_cus_hash_table): Change type of cus_htab parameter.
10087 (struct dwo_file) <cus, tus>: Now htab_up.
10088 (lookup_dwo_signatured_type, lookup_dwo_cutu)
10089 (process_dwo_file_for_skeletonless_type_units, lookup_dwo_cutu)
10090 (queue_and_load_all_dwo_tus): Update.
10091 * dwarf2/index-write.c (write_gdbindex): Update.
10092 (write_debug_names): Update.
10093
39856def
TT
100942020-02-08 Tom Tromey <tom@tromey.com>
10095
10096 * dwarf2/read.h (struct dwarf2_queue_item): Move from
10097 dwarf2/read.c. Remove "next" member. Add constructor ntad
10098 destructor.
10099 (struct dwarf2_per_objfile) <queue>: New member.
10100 * dwarf2/read.c (struct dwarf2_queue_item): Move to
10101 dwarf2/read.h.
10102 (dwarf2_queue, dwarf2_queue_tail): Remove.
10103 (class dwarf2_queue_guard): Add parameter to constructor. Use
10104 DISABLE_COPY_AND_ASSIGN.
10105 <m_per_objfile>: New member.
10106 <~dwarf2_queue_guard>: Rewrite.
10107 (dw2_do_instantiate_symtab, queue_comp_unit, process_queue):
10108 Update.
10109 (~dwarf2_queue_item): New.
10110
3e225074
TT
101112020-02-08 Tom Tromey <tom@tromey.com>
10112
10113 * dwarf2/read.c (struct die_info) <has_children>: New member.
10114 (dw2_get_file_names_reader): Remove has_children.
10115 (dw2_get_file_names): Update.
10116 (read_cutu_die_from_dwo): Remove has_children.
10117 (cutu_reader::init_tu_and_read_dwo_dies)
10118 (cutu_reader::cutu_reader): Update.
10119 (process_psymtab_comp_unit_reader, build_type_psymtabs_reader):
10120 Remove has_children.
10121 (build_type_psymtabs_1, process_skeletonless_type_unit)
10122 (load_partial_comp_unit, load_full_comp_unit): Update.
10123 (create_dwo_cu_reader): Remove has_children.
10124 (create_cus_hash_table, read_die_and_children): Update.
10125 (read_full_die_1,read_full_die): Remove has_children.
10126 (read_signatured_type): Update.
10127 (class cutu_reader) <has_children>: Remove.
10128
82ca8957
TT
101292020-02-08 Tom Tromey <tom@tromey.com>
10130
10131 * dwarf2/expr.c: Rename from dwarf2expr.c.
10132 * dwarf2/expr.h: Rename from dwarf2expr.h.
10133 * dwarf2/frame-tailcall.c: Rename from dwarf2-frame-tailcall.c.
10134 * dwarf2/frame-tailcall.h: Rename from dwarf2-frame-tailcall.h.
10135 * dwarf2/frame.c: Rename from dwarf2-frame.c.
10136 * dwarf2/frame.h: Rename from dwarf2-frame.h.
10137 * dwarf2/index-cache.c: Rename from dwarf-index-cache.c.
10138 * dwarf2/index-cache.h: Rename from dwarf-index-cache.h.
10139 * dwarf2/index-common.c: Rename from dwarf-index-common.c.
10140 * dwarf2/index-common.h: Rename from dwarf-index-common.h.
10141 * dwarf2/index-write.c: Rename from dwarf-index-write.c.
10142 * dwarf2/index-write.h: Rename from dwarf-index-write.h.
10143 * dwarf2/loc.c: Rename from dwarf2loc.c.
10144 * dwarf2/loc.h: Rename from dwarf2loc.h.
10145 * dwarf2/read.c: Rename from dwarf2read.c.
10146 * dwarf2/read.h: Rename from dwarf2read.h.
10147 * dwarf2/abbrev.c, aarch64-tdep.c, alpha-tdep.c,
10148 amd64-darwin-tdep.c, arc-tdep.c, arm-tdep.c, bfin-tdep.c,
10149 compile/compile-c-symbols.c, compile/compile-cplus-symbols.c,
10150 compile/compile-loc2c.c, cris-tdep.c, csky-tdep.c, findvar.c,
10151 gdbtypes.c, guile/scm-type.c, h8300-tdep.c, hppa-bsd-tdep.c,
10152 hppa-linux-tdep.c, i386-darwin-tdep.c, i386-linux-tdep.c,
10153 i386-tdep.c, iq2000-tdep.c, m32c-tdep.c, m68hc11-tdep.c,
10154 m68k-tdep.c, microblaze-tdep.c, mips-tdep.c, mn10300-tdep.c,
10155 msp430-tdep.c, nds32-tdep.c, nios2-tdep.c, or1k-tdep.c,
10156 riscv-tdep.c, rl78-tdep.c, rs6000-tdep.c, rx-tdep.c, s12z-tdep.c,
10157 s390-tdep.c, score-tdep.c, sh-tdep.c, sparc-linux-tdep.c,
10158 sparc-tdep.c, sparc64-linux-tdep.c, sparc64-tdep.c, tic6x-tdep.c,
10159 tilegx-tdep.c, v850-tdep.c, xstormy16-tdep.c, xtensa-tdep.c:
10160 Update.
10161 * Makefile.in (COMMON_SFILES): Update.
10162 (HFILES_NO_SRCDIR): Update.
10163
9e35d499
TT
101642020-02-08 Tom Tromey <tom@tromey.com>
10165
10166 * dwarf2read.c (struct die_reader_specs) <comp_dir>: Remove.
10167 (init_cu_die_reader, read_cutu_die_from_dwo): Update.
10168
1eba2311
TT
101692020-02-08 Tom Tromey <tom@tromey.com>
10170
10171 * dwarf2read.h (struct die_info): Don't declare.
10172
e41c2da2
TT
101732020-02-08 Tom Tromey <tom@tromey.com>
10174
10175 * dwarf2read.h (die_info_ptr): Remove typedef.
10176
4fc6c0d5
TT
101772020-02-08 Tom Tromey <tom@tromey.com>
10178
10179 * dwarf2read.c (read_call_site_scope)
10180 (handle_data_member_location, dwarf2_add_member_fn)
10181 (mark_common_block_symbol_computed, read_common_block)
10182 (attr_to_dynamic_prop, partial_die_info::read)
10183 (var_decode_location, dwarf2_fetch_die_loc_sect_off)
10184 (dwarf2_symbol_mark_computed, set_die_type): Update.
10185 * dwarf2/attribute.h (struct attribute) <form_is_block>: Declare
10186 method.
10187 (attr_form_is_block): Don't declare.
10188 * dwarf2/attribute.c (attribute::form_is_block): Now a method.
10189
cd6c91b4
TT
101902020-02-08 Tom Tromey <tom@tromey.com>
10191
10192 * dwarf2read.c (dwarf2_find_base_address, )
10193 (read_call_site_scope, rust_containing_type)
10194 (dwarf2_get_pc_bounds, dwarf2_record_block_ranges)
10195 (handle_data_member_location, dwarf2_add_member_fn)
10196 (get_alignment, read_structure_type, process_structure_scope)
10197 (mark_common_block_symbol_computed, read_common_block)
10198 (read_tag_string_type, attr_to_dynamic_prop, read_subrange_type)
10199 (partial_die_info::read, read_attribute_value, new_symbol)
10200 (lookup_die_type, dwarf2_get_ref_die_offset)
10201 (dwarf2_get_attr_constant_value, follow_die_ref_or_sig)
10202 (dwarf2_fetch_die_loc_sect_off, get_DW_AT_signature_type)
10203 (dwarf2_symbol_mark_computed): Update.
10204 * dwarf2/attribute.h (struct attribute) <value_as_address,
10205 form_is_section_offset, form_is_constant, form_is_ref>: Declare
10206 methods.
10207 (value_as_address, attr_form_is_section_offset)
10208 (attr_form_is_constant, attr_form_is_ref): Don't declare.
10209 * dwarf2/attribute.c (attribute::value_as_address)
10210 (attribute::form_is_section_offset, attribute::form_is_constant)
10211 (attribute::form_is_ref): Now methods.
10212
162dce55
TT
102132020-02-08 Tom Tromey <tom@tromey.com>
10214
10215 * dwarf2read.c (struct attribute, DW_STRING)
10216 (DW_STRING_IS_CANONICAL, DW_UNSND, DW_BLOCK, DW_SND, DW_ADDR)
10217 (DW_SIGNATURE, struct dwarf_block, attr_value_as_address)
10218 (attr_form_is_block, attr_form_is_section_offset)
10219 (attr_form_is_constant, attr_form_is_ref): Move.
10220 * dwarf2/attribute.h: New file.
10221 * dwarf2/attribute.c: New file, from dwarf2read.c.
10222 * Makefile.in (COMMON_SFILES): Add dwarf2/attribute.c.
10223
3054dd54
TT
102242020-02-08 Tom Tromey <tom@tromey.com>
10225
10226 * dwarf2read.c (abbrev_table_up, struct abbrev_info)
10227 (struct attr_abbrev, ABBREV_HASH_SIZE, struct abbrev_table):
10228 Move.
10229 (read_cutu_die_from_dwo, build_type_psymtabs_1): Update.
10230 (abbrev_table::alloc_abbrev, abbrev_table::add_abbrev)
10231 (abbrev_table::lookup_abbrev, abbrev_table_read_table): Move to
10232 abbrev.c.
10233 * dwarf2/abbrev.h: New file.
10234 * dwarf2/abbrev.c: New file, from dwarf2read.c.
10235 * Makefile.in (COMMON_SFILES): Add dwarf2/abbrev.c.
10236
96b79293
TT
102372020-02-08 Tom Tromey <tom@tromey.com>
10238
10239 * dwarf2read.c (dwarf2_section_buffer_overflow_complaint)
10240 (dwarf2_section_size, dwarf2_get_section_info)
10241 (create_signatured_type_table_from_debug_names)
10242 (create_addrmap_from_aranges, read_debug_names_from_section)
10243 (get_gdb_index_contents_from_section, read_comp_unit_head)
10244 (error_check_comp_unit_head, read_abbrev_offset)
10245 (create_debug_type_hash_table, init_cu_die_reader)
10246 (read_cutu_die_from_dwo, dwarf2_build_psymtabs_hard)
10247 (read_comp_units_from_section, create_cus_hash_table)
10248 (create_dwp_hash_table, create_dwo_unit_in_dwp_v1)
10249 (create_dwp_v2_section, dwarf2_rnglists_process)
10250 (dwarf2_ranges_process, read_die_and_siblings, read_full_die)
10251 (abbrev_table_read_table, read_indirect_string_at_offset_from)
10252 (read_indirect_string_from_dwz, read_addr_index_1)
10253 (read_str_index, dwarf_decode_line_header, skip_form_bytes)
10254 (dwarf_decode_macro_bytes, dwarf_decode_macros)
10255 (fill_in_loclist_baton): Update.
10256 * dwarf2/section.h (struct dwarf2_section_info) <get_name,
10257 get_containing_section, get_bfd_owner, get_bfd_section,
10258 get_file_name, get_id, get_flags, empty, read>: Declare methods.
10259 (dwarf2_read_section, get_section_name, get_section_file_name)
10260 (get_containing_section, get_section_bfd_owner)
10261 (get_section_bfd_section, get_section_name, get_section_file_name)
10262 (get_section_id, get_section_flags, dwarf2_section_empty_p): Don't
10263 declare.
10264 * dwarf2/section.c (dwarf2_section_info::get_containing_section)
10265 (dwarf2_section_info::get_bfd_owner)
10266 (dwarf2_section_info::get_bfd_section)
10267 (dwarf2_section_info::get_name)
10268 (dwarf2_section_info::get_file_name, dwarf2_section_info::get_id)
10269 (dwarf2_section_info::get_flags, dwarf2_section_info::empty)
10270 (dwarf2_section_info::read): Now methods.
10271 * dwarf-index-write.c (class debug_names): Update.
10272
2c86cff9
TT
102732020-02-08 Tom Tromey <tom@tromey.com>
10274
10275 * dwarf2read.h (struct dwarf2_section_info, dwarf2_read_section):
10276 Move to dwarf2/section.h.
10277 * dwarf2read.c (get_containing_section, get_section_bfd_owner)
10278 (get_section_bfd_section, get_section_name)
10279 (get_section_file_name, get_section_id, get_section_flags)
10280 (dwarf2_section_empty_p, dwarf2_read_section): Moe to
10281 dwarf2/section.c.
10282 * dwarf2/section.h: New file.
10283 * dwarf2/section.c: New file, from dwarf2read.c.
10284 * Makefile.in (COMMON_SFILES): Add dwarf2/section.c.
10285
f4382c45
TT
102862020-02-08 Tom Tromey <tom@tromey.com>
10287
10288 * dwarf2read.h (read_unsigned_leb128): Don't declare.
10289 * dwarf2read.c (read_1_byte, read_1_signed_byte, read_2_bytes)
10290 (read_2_signed_bytes, read_3_bytes, read_4_bytes)
10291 (read_4_signed_bytes, read_8_bytes): Move to dwarf2/leb.h.
10292 (read_unsigned_leb128, read_signed_leb128): Move to dwarf2/leb.c.
10293 * dwarf2/leb.h: New file, from dwarf2read.c.
10294 * dwarf2/leb.c: New file, from dwarf2read.c.
10295 * dwarf2-frame.c (read_1_byte, read_4_bytes, read_8_bytes):
10296 Remove.
10297 * Makefile.in (CONFIG_SRC_SUBDIR): Add dwarf2.
10298 (COMMON_SFILES): Add dwarf2/leb.c.
10299
01840b7a
JB
103002020-02-08 Joel Brobecker <brobecker@adacore.com>
10301
10302 GDB 9.1 released.
10303
dfcb27e4
IB
103042020-02-05 Iain Buclaw <ibuclaw@gdcproject.org>
10305
10306 PR gdb/25190:
aac66a4c
SM
10307 * gdb/remote-sim.c (gdb_os_write_stderr): Update.
10308 * gdb/remote.c (remote_console_output): Update.
10309 * gdb/ui-file.c (fputs_unfiltered): Rename to...
10310 (ui_file_puts): ...this.
10311 * gdb/ui-file.h (ui_file_puts): Add declaration.
10312 * gdb/utils.c (emit_style_escape): Update.
10313 (flush_wrap_buffer): Update.
10314 (fputs_maybe_filtered): Update.
10315 (fputs_unfiltered): Add function.
dfcb27e4 10316
faa17681
IB
103172020-02-05 Iain Buclaw <ibuclaw@gdcproject.org>
10318
aac66a4c
SM
10319 * gdb/event-loop.c (gdb_wait_for_event): Update.
10320 * gdb/printcmd.c (printf_command): Update.
10321 * gdb/remote-fileio.c (remote_fileio_func_write): Update.
10322 * gdb/remote-sim.c (gdb_os_flush_stdout): Update.
10323 (gdb_os_flush_stderr): Update.
10324 * gdb/remote.c (remote_console_output): Update.
10325 * gdb/ui-file.c (gdb_flush): Rename to...
10326 (ui_file_flush): ...this.
10327 (stderr_file::write): Update.
10328 (stderr_file::puts): Update.
10329 * gdb/ui-file.h (gdb_flush): Rename to...
10330 (ui_file_flush): ...this.
10331 * gdb/utils.c (gdb_flush): Add function.
10332 * gdb/utils.h (gdb_flush): Add declaration.
faa17681 10333
5abbbe1d
TT
103342020-02-07 Tom Tromey <tromey@adacore.com>
10335
10336 PR breakpoints/24915:
10337 * source.c (find_and_open_source): Do not check basenames_may_differ.
10338
919adfe8
TT
103392020-02-07 Tom Tromey <tom@tromey.com>
10340
10341 * README: Update gdbserver documentation.
10342 * gdbserver: Move to top level.
10343 * configure.tgt (build_gdbserver): Remove.
10344 * configure.ac: Remove --enable-gdbserver.
10345 * configure: Rebuild.
10346 * Makefile.in (distclean): Don't mention gdbserver.
10347
1d5d29e7
SV
103482020-02-06 Shahab Vahedi <shahab@synopsys.com>
10349
10350 * source-cache.c (source_cache::ensure): Surround
10351 get_plain_source_lines with a try/catch.
10352 (source_cache::get_line_charpos): Get rid of try/catch
10353 and only check for the return value of "ensure".
10354 * tui/tui-source.c (tui_source_window::set_contents):
10355 Simplify "nlines" calculation.
10356
6eb1129c
SV
103572020-02-06 Shahab Vahedi <shahab@synopsys.com>
10358
10359 * MAINTAINERS (Write After Approval): Add myself.
10360
c6a42d11
CB
103612020-02-05 Christian Biesinger <cbiesinger@google.com>
10362
10363 * sparc-nat.h (struct sparc_target) <xfer_partial>: Fix base class
10364 function call.
10365
c8ecdda6
CB
103662020-02-05 Christian Biesinger <cbiesinger@google.com>
10367
10368 * ppc-nbsd-tdep.h: Fix macro name in #endif comment.
10369
f6480e70
MR
103702020-02-05 Maciej W. Rozycki <macro@wdc.com>
10371
10372 * nat/riscv-linux-tdesc.h: New file.
10373 * nat/riscv-linux-tdesc.c: New file, taking code from...
10374 * riscv-linux-nat.c (riscv_linux_nat_target::read_description):
10375 ... here.
10376 * configure.nat <linux> <riscv*>: Add nat/riscv-linux-tdesc.o to
10377 NATDEPFILES.
10378
dcc9fbc6
AB
103792020-02-04 Andrew Burgess <andrew.burgess@embecosm.com>
10380
10381 * remote-sim.c (sim_inferior_data::sim_inferior_data): Assert that
10382 we don't set the fake simulator ptid to the null_ptid.
10383
719546c4
SM
103842020-02-03 Simon Marchi <simon.marchi@efficios.com>
10385
10386 * fork-child.c (gdb_startup_inferior): Use bool instead of int.
10387 * gdbthread.h (class thread_info) <resumed>: Likewise.
10388 * infrun.c (resume_1): Likewise.
10389 (proceed): Likewise.
10390 (infrun_thread_stop_requested): Likewise.
10391 (stop_all_threads): Likewise.
10392 (handle_inferior_event): Likewise.
10393 (restart_threads): Likewise.
10394 (finish_step_over): Likewise.
10395 (keep_going_stepped_thread): Likewise.
10396 * linux-nat.c (attach_proc_task_lwp_callback): Likewise.
10397 (linux_handle_extended_wait): Likewise.
10398 * record-btrace.c (get_thread_current_frame_id): Likewise.
10399 * record-full.c (record_full_wait_1): Likewise.
10400 * remote.c (remote_target::process_initial_stop_replies): Likewise.
10401 * target.c (target_resume): Likewise.
10402 * thread.c (set_running_thread): Likewise.
10403
e409c542
AKS
104042020-02-03 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
10405
10406 * f-valprint.c (f77_print_array_1): Changed datatype of index
10407 variable to LONGEST from int to enable it to contain bound
10408 values correctly.
10409
ee98c0da
MR
104102020-02-03 Maciej W. Rozycki <macro@wdc.com>
10411
10412 * riscv-linux-nat.c [!NFPREG] (NFPREG): New macro.
10413 (supply_fpregset_regnum, fill_fpregset): Handle regset buffer
10414 offsets according to FLEN determined.
10415 (riscv_linux_nat_target::read_description): Determine FLEN
10416 dynamically.
10417 (riscv_linux_nat_target::fetch_registers): Size regset buffer
10418 according to FLEN determined.
10419 (riscv_linux_nat_target::store_registers): Likewise.
10420
aa66aac4
SV
104212020-02-01 Shahab Vahedi <shahab@synopsys.com>
10422
10423 * target-descriptions.c (tdesc_register_in_reggroup_p): Return 0
10424 when reg->group is empty and reggroup is not.
10425
fd9faca8
TT
104262020-01-31 Tom Tromey <tromey@adacore.com>
10427
10428 * ravenscar-thread.c (ravenscar_thread_target::mourn_inferior):
10429 Call beneath target's mourn_inferior after unpushing.
10430
42330a68
AB
104312020-01-31 Andrew Burgess <andrew.burgess@embecosm.com>
10432
10433 PR tui/9765
10434 * tui/tui-disasm.c (tui_find_disassembly_address): If we don't
10435 have enough lines to fill the screen, still return the lowest
10436 address we found.
10437
7a27a45b
AB
104382020-01-31 Andrew Burgess <andrew.burgess@embecosm.com>
10439
10440 * tui/tui-win.c (_initialize_tui_win): Update help text for '+',
10441 '-', '<', and '>' commands.
10442
c47f70e2
PA
104432020-01-29 Pedro Alves <palves@redhat.com>
10444 Sergio Durigan Junior <sergiodj@redhat.com>
10445
10446 * infcmd.c (construct_inferior_arguments): Assert that
10447 'argc' is greater than 0.
10448
5133a315
LM
104492020-01-29 Luis Machado <luis.machado@linaro.org>
10450
10451 * aarch64-tdep.c (BRK_INSN_MASK): Define to 0xffe0001f.
10452 (BRK_INSN_MASK): Define to 0xd4200000.
10453 (aarch64_program_breakpoint_here_p): New function.
10454 (aarch64_gdbarch_init): Set gdbarch_program_breakpoint_here_p hook.
10455 * arch-utils.c (default_program_breakpoint_here_p): Moved from
10456 breakpoint.c.
10457 * arch-utils.h (default_program_breakpoint_here_p): Moved from
10458 breakpoint.h
10459 * breakpoint.c (bp_loc_is_permanent): Changed return type to bool and
10460 call gdbarch_program_breakpoint_here_p.
10461 (program_breakpoint_here): Moved to arch-utils.c, renamed to
10462 default_program_breakpoint_here_p, changed return type to bool and
10463 simplified.
10464 * breakpoint.h (program_breakpoint_here): Moved prototype to
10465 arch-utils.h, renamed to default_program_breakpoint_here_p and changed
10466 return type to bool.
10467 * gdbarch.c: Regenerate.
10468 * gdbarch.h: Regenerate.
10469 * gdbarch.sh (program_breakpoint_here_p): New method.
10470 * infrun.c (handle_signal_stop): Call
10471 gdbarch_program_breakpoint_here_p.
10472
168f8c6b
TT
104732020-01-26 Tom Tromey <tom@tromey.com>
10474
10475 * ctfread.c (struct ctf_fp_info): Reindent.
10476 (_initialize_ctfread): Remove.
10477
128a391f
TT
104782020-01-26 Tom Tromey <tom@tromey.com>
10479
10480 * psymtab.c (partial_map_expand_apply)
10481 (psym_find_pc_sect_compunit_symtab, psym_lookup_symbol)
10482 (psymtab_to_symtab, psym_find_last_source_symtab, dump_psymtab)
10483 (psym_print_stats, psym_expand_symtabs_for_function)
10484 (psym_map_symbol_filenames, psym_map_matching_symbols)
10485 (psym_expand_symtabs_matching)
10486 (partial_symtab::read_dependencies, maintenance_info_psymtabs)
10487 (maintenance_check_psymtabs): Use new methods.
10488 * psympriv.h (struct partial_symtab) <readin_p,
10489 get_compunit_symtab>: New methods.
10490 <readin, compunit_symtab>: Remove members.
10491 (struct standard_psymtab): New.
10492 (struct legacy_psymtab): Derive from standard_psymtab.
10493 * dwarf2read.h (struct dwarf2_psymtab): Derive from
10494 standard_psymtab.
10495 * ctfread.c (struct ctf_psymtab): Derive from standard_psymtab.
10496
0494dbec
TT
104972020-01-26 Tom Tromey <tom@tromey.com>
10498
10499 * xcoffread.c (xcoff_psymtab_to_symtab_1): Call
10500 read_dependencies. Add assert.
10501 * psymtab.c (partial_symtab::read_dependencies): New method.
10502 * psympriv.h (struct partial_symtab) <read_dependencies>: New
10503 method.
10504 * mdebugread.c (psymtab_to_symtab_1): Call read_dependencies.
10505 * dwarf2read.c (dwarf2_psymtab::expand_psymtab): Call
10506 read_dependencies.
10507 * dbxread.c (dbx_psymtab_to_symtab_1): Call read_dependencies.
10508 Add assert.
10509
8566b89b
TT
105102020-01-26 Tom Tromey <tom@tromey.com>
10511
10512 * xcoffread.c (xcoff_psymtab_to_symtab_1): Change argument order.
10513 Call expand_psymtab.
10514 (xcoff_read_symtab): Call expand_psymtab.
10515 (xcoff_start_psymtab, xcoff_end_psymtab): Set
10516 legacy_expand_psymtab.
10517 * psympriv.h (struct partial_symtab) <expand_psymtab>: New
10518 method.
10519 (struct legacy_psymtab) <expand_psymtab>: Implement.
10520 <legacy_expand_psymtab>: New member.
10521 * mdebugread.c (mdebug_read_symtab): Call expand_psymtab.
10522 (parse_partial_symbols): Set legacy_expand_psymtab.
10523 (psymtab_to_symtab_1): Change argument order. Call
10524 expand_psymtab.
10525 (new_psymtab): Set legacy_expand_psymtab.
10526 * dwarf2read.h (struct dwarf2_psymtab) <expand_psymtab>: Declare.
10527 * dwarf2read.c (dwarf2_psymtab::read_symtab): Call
10528 expand_psymtab.
10529 (dwarf2_psymtab::expand_psymtab): Rename from
10530 psymtab_to_symtab_1. Call expand_psymtab.
10531 * dbxread.c (start_psymtab): Set legacy_expand_psymtab.
10532 (dbx_end_psymtab): Likewise.
10533 (dbx_psymtab_to_symtab_1): Change argument order. Call
10534 expand_psymtab.
10535 (dbx_read_symtab): Call expand_psymtab.
10536 * ctfread.c (struct ctf_psymtab) <expand_psymtab>: Declare.
10537 (ctf_psymtab::expand_psymtab): Rename from psymtab_to_symtab.
10538 (ctf_psymtab::read_symtab): Call expand_psymtab.
10539
077cbab2
TT
105402020-01-26 Tom Tromey <tom@tromey.com>
10541
10542 * xcoffread.c (xcoff_read_symtab): Remove prints. Add assert.
10543 * psymtab.c (psymtab_to_symtab): Print verbose "Reading"
10544 messages.
10545 * mdebugread.c (mdebug_read_symtab): Remove prints.
10546 * dwarf2read.c (dwarf2_psymtab::read_symtab): Remove prints. Add
10547 assert.
10548 * dbxread.c (dbx_read_symtab): Remove prints. Add assert.
10549
891813be
TT
105502020-01-26 Tom Tromey <tom@tromey.com>
10551
10552 * xcoffread.c (this_symtab_psymtab, read_xcoff_symtab)
10553 (xcoff_psymtab_to_symtab_1, xcoff_read_symtab)
10554 (xcoff_start_psymtab, xcoff_end_psymtab, scan_xcoff_symtab): Use
10555 legacy_symtab.
10556 * stabsread.h (dbx_end_psymtab): Use legacy_symtab.
10557 * psymtab.c (psymtab_to_symtab): Call method.
10558 (dump_psymtab): Update.
10559 * psympriv.h (struct partial_symtab): Add virtual destructor.
10560 <read_symtab>: New method.
10561 (struct legacy_symtab): New.
10562 * mdebugread.c (mdebug_read_symtab): Use legacy_psymtab.
10563 (struct pst_map) <pst>: Now a legacy_psymtab.
10564 (parse_procedure, parse_partial_symbols, psymtab_to_symtab_1)
10565 (new_psymtab): Use legacy_psymtab.
10566 * dwarf2read.h (struct dwarf2_psymtab): New.
10567 (struct dwarf2_per_cu_data) <psymtab>: Use it.
10568 * dwarf2read.c (dwarf2_create_include_psymtab)
10569 (dwarf2_build_include_psymtabs, create_type_unit_group)
10570 (create_partial_symtab, process_psymtab_comp_unit_reader)
10571 (build_type_psymtabs_reader, build_type_psymtab_dependencies)
10572 (set_partial_user): Use dwarf2_psymtab.
10573 (dwarf2_psymtab::read_symtab): Rename from dwarf2_read_symtab.
10574 (psymtab_to_symtab_1, process_full_comp_unit)
10575 (process_full_type_unit, dwarf2_ranges_read)
10576 (dwarf2_get_pc_bounds, psymtab_include_file_name)
10577 (dwarf_decode_lines): Use dwarf2_psymtab.
10578 * dwarf-index-write.c (psym_index_map): Use dwarf2_psymtab.
10579 (add_address_entry_worker, write_one_signatured_type)
10580 (recursively_count_psymbols, recursively_write_psymbols)
10581 (write_one_signatured_type, psyms_seen_size, write_gdbindex)
10582 (write_debug_names): Likewise.
10583 * dbxread.c (struct header_file_location): Take a legacy_psymtab.
10584 <pst>: Now a legacy_psymtab.
10585 (find_corresponding_bincl_psymtab): Return a legacy_psymtab.
10586 (read_dbx_symtab, start_psymtab, dbx_end_psymtab)
10587 (dbx_psymtab_to_symtab_1, read_ofile_symtab): Use legacy_psymtab.
10588 * ctfread.c (struct ctf_psymtab): New.
10589 (ctf_start_symtab, ctf_end_symtab, psymtab_to_symtab): Take a
10590 ctf_psymtab.
10591 (ctf_psymtab::read_symtab): Rename from ctf_read_symtab.
10592 (create_partial_symtab): Return a ctf_psymtab.
10593 (scan_partial_symbols): Update.
10594
c3693a1d
TT
105952020-01-26 Tom Tromey <tom@tromey.com>
10596
10597 * xcoffread.c (xcoff_start_psymtab): Use new.
10598 * psymtab.c (partial_symtab::partial_symtab): New constructor,
10599 renamed from start_psymtab_common.
10600 * psympriv.h (struct partial_symtab): Add new constructor.
10601 (start_psymtab_common): Don't declare.
10602 * mdebugread.c (parse_partial_symbols): Use new.
10603 * dwarf2read.c (create_partial_symtab): Use new.
10604 * dbxread.c (start_psymtab): Use new.
10605 * ctfread.c (create_partial_symtab): Use new.
10606
32caafd0
TT
106072020-01-26 Tom Tromey <tom@tromey.com>
10608
10609 * xcoffread.c (xcoff_end_psymtab): Use new.
10610 * psymtab.c (start_psymtab_common): Use new.
10611 (partial_symtab::partial_symtab): Rename from allocate_psymtab.
10612 Update.
10613 * psympriv.h (struct partial_symtab): Add parameters to
10614 constructor. Don't inline.
10615 (allocate_psymtab): Don't declare.
10616 * mdebugread.c (new_psymtab): Use new.
10617 * dwarf2read.c (dwarf2_create_include_psymtab): Use new.
10618 * dbxread.c (dbx_end_psymtab): Use new.
10619
abaa2f23
TT
106202020-01-26 Tom Tromey <tom@tromey.com>
10621
10622 * psymtab.h (class psymtab_storage) <install_psymtab>: Rename from
10623 allocate_psymtab. Update documentation.
10624 * psymtab.c (psymtab_storage::install_psymtab): Rename from
10625 allocate_psymtab. Do not use new.
10626 (allocate_psymtab): Use new. Update.
10627
6d94535f
TT
106282020-01-26 Tom Tromey <tom@tromey.com>
10629
10630 * xcoffread.c (xcoff_psymtab_to_symtab_1): Update.
10631 * psymtab.c (psym_print_stats): Update.
10632 * psympriv.h (struct partial_symtab) <readin,
10633 psymtabs_addrmap_supported, anonymous>: Now bool.
10634 * mdebugread.c (psymtab_to_symtab_1): Update.
10635 * dwarf2read.c (create_type_unit_group, create_partial_symtab)
10636 (build_type_psymtabs_reader, psymtab_to_symtab_1)
10637 (process_full_comp_unit, process_full_type_unit): Update.
10638 * dbxread.c (dbx_psymtab_to_symtab_1): Update.
10639 * ctfread.c (psymtab_to_symtab): Update.
10640
6f17252b
TT
106412020-01-26 Tom Tromey <tom@tromey.com>
10642
10643 * mdebugread.c (parse_partial_symbols): Use discard_psymtab.
10644 * psymtab.h (class psymtab_storage) <free_psymtabs>: Remove.
10645 * psymtab.c (psymtab_storage): Delete psymtabs.
10646 (psymtab_storage::allocate_psymtab): Use new.
10647 (psymtab_storage::discard_psymtab): Use delete.
10648 * psympriv.h (struct partial_symtab): Add constructor and
10649 initializers.
10650
f6f1cebc
TT
106512020-01-26 Tom Tromey <tom@tromey.com>
10652
10653 * machoread.c: Do not include psympriv.h.
10654
e47e48f6
PW
106552020-01-25 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10656
10657 * NEWS: Mention the new option and the set/show commands.
10658
a2fedca9
PW
106592020-01-25 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10660
10661 * exec.c (exec_file_mismatch_names, exec_file_mismatch_mode)
10662 (show_exec_file_mismatch_command, set_exec_file_mismatch_command)
10663 (validate_exec_file): New variables, enums, functions.
10664 (exec_file_locate_attach, print_section_info): Style the filenames.
10665 (_initialize_exec): Install show_exec_file_mismatch_command and
10666 set_exec_file_mismatch_command.
10667 * gdbcore.h (validate_exec_file): Declare.
10668 * infcmd.c (attach_command): Call validate_exec_file.
10669 * remote.c ( remote_target::remote_add_inferior): Likewise.
10670
7ffa82e1
AB
106712020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
10672
10673 * frame.c (find_frame_sal): Move call to get_next_frame into more
10674 inner scope.
10675 * inline-frame.c (inilne_state) <inline_state>: Update argument
10676 types.
10677 (inilne_state) <skipped_symbol>: Rename to...
10678 (inilne_state) <skipped_symbols>: ...this, and change to a vector.
10679 (skip_inline_frames): Build vector of skipped symbols and use this
10680 to reate the inline_state.
10681 (inline_skipped_symbol): Add a comment and some assertions, fetch
10682 skipped symbol from the list.
10683
3d92a3e3
AB
106842020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
10685
10686 * buildsym.c (lte_is_less_than): Delete.
10687 (buildsym_compunit::end_symtab_with_blockvector): Create local
10688 lambda function to sort line table entries, and use
10689 std::stable_sort instead of std::sort.
10690 * symtab.c (find_pc_sect_line): Skip backward over end of sequence
10691 markers when looking for a previous line.
10692
94a72be7
AB
106932020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
10694
10695 * dwarf2read.c (lnp_state_machine::record_line): Include
10696 end_sequence parameter in debug print out. Record the line if we
10697 are at an end_sequence marker even if it's not the start of a
10698 statement.
10699 * symmisc.c (maintenance_print_one_line_table): Print end of
10700 sequence markers with 'END' not '0'.
10701
53af73bf
PA
107022020-01-24 Pedro Alves <palves@redhat.com>
10703
10704 PR gdb/25410
10705 * thread.c (scoped_restore_current_thread::restore): Use
10706 switch_to_inferior_no_thread.
10707 * exec.c: Include "progspace-and-thread.h".
10708 (add_target_sections, remove_target_sections):
10709 scoped_restore_current_pspace_and_thread instead of
10710 scoped_restore_current_thread.
10711 * infrun.c (handle_vfork_child_exec_or_exit): Assign the pspace
10712 and aspace to the inferior before calling clone_program_space.
10713 Remove stale comment.
10714
3050c6f4
CB
107152020-01-24 Christian Biesinger <cbiesinger@google.com>
10716
10717 * arm-nbsd-nat.c (arm_nbsd_nat_target::fetch_registers): Rename to...
10718 (arm_netbsd_nat_target::fetch_registers): ...this.
10719 (arm_nbsd_nat_target::store_registers): Rename to...
10720 (arm_netbsd_nat_target::store_registers): ...this.
10721
73685c7e
CB
107222020-01-24 Christian Biesinger <cbiesinger@google.com>
10723
10724 * arm-nbsd-nat.c: Define _KERNTYPES to get the declaration of
10725 register_t.
10726
89203d40
CB
107272020-01-24 Christian Biesinger <cbiesinger@google.com>
10728
10729 * aarch64-fbsd-tdep.c (aarch64_fbsd_iterate_over_regset_sections):
10730 Update comment.
10731 * aarch64-linux-tdep.c (aarch64_linux_iterate_over_regset_sections):
10732 Likewise.
10733 * arm-fbsd-tdep.c (arm_fbsd_iterate_over_regset_sections): Likewise.
10734 * gdbcore.h (deprecated_add_core_fns): Update comment to point to
10735 the correct replacement (iterate_over_regset_sections).
10736 * riscv-fbsd-tdep.c (riscv_fbsd_iterate_over_regset_sections):
10737 Update comment.
10738
1ba1ac88
AB
107392020-01-24 Graham Markall <graham.markall@embecosm.com>
10740
10741 PR gdb/23718
10742 * gdb/python/python.c (execute_gdb_command): Call
10743 async_enable_stdin in catch block.
10744
f3364a6d
AB
107452020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
10746
10747 * event-loop.c (start_event_loop): Wrap async_enable_stdin with
10748 SWITCH_THRU_ALL_UIS.
10749
733d0a67
AB
107502020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
10751
10752 PR tui/9765
10753 * minsyms.c (lookup_minimal_symbol_by_pc_section): Update header
10754 comment, add extra parameter, and update to store previous symbol
10755 when appropriate.
10756 * minsyms.h (lookup_minimal_symbol_by_pc_section): Update comment,
10757 add extra parameter.
10758 * tui/tui-disasm.c (tui_disassemble): Update header comment,
10759 remove unneeded parameter, add try/catch around gdb_print_insn,
10760 rewrite to add items to asm_lines vector.
10761 (tui_find_backward_disassembly_start_address): New function.
10762 (tui_find_disassembly_address): Updated throughout.
10763 (tui_disasm_window::set_contents): Update for changes to
10764 tui_disassemble.
10765 (tui_disasm_window::do_scroll_vertical): No need to adjust the
10766 number of lines to scroll.
10767
b3b3bada
SM
107682020-01-23 Simon Marchi <simon.marchi@polymtl.ca>
10769
10770 * objfiles.h (ALL_OBJFILE_OSECTIONS): Move up.
10771 (SECT_OFF_DATA): Likewise.
10772 (SECT_OFF_RODATA): Likewise.
10773 (SECT_OFF_TEXT): Likewise.
10774 (SECT_OFF_BSS): Likewise.
10775 (struct objfile) <text_section_offset, data_section_offset>: New
10776 methods.
10777 * amd64-windows-tdep.c (amd64_windows_find_unwind_info): Use
10778 objfile::text_section_offset.
10779 * coff-pe-read.c (add_pe_forwarded_sym): Likewise.
10780 * coffread.c (coff_symtab_read): Likewise.
10781 (enter_linenos): Likewise.
10782 (process_coff_symbol): Likewise.
10783 * ctfread.c (get_objfile_text_range): Likewise.
10784 * dtrace-probe.c (dtrace_probe::get_relocated_address):
10785 Use objfile::data_section_offset.
10786 * dwarf2-frame.c (execute_cfa_program): Use
10787 objfile::text_section_offset.
10788 (dwarf2_frame_find_fde): Likewise.
10789 * dwarf2read.c (create_addrmap_from_index): Likewise.
10790 (create_addrmap_from_aranges): Likewise.
10791 (dw2_find_pc_sect_compunit_symtab): Likewise.
10792 (process_psymtab_comp_unit_reader): Likewise.
10793 (add_partial_symbol): Likewise.
10794 (add_partial_subprogram): Likewise.
10795 (process_full_comp_unit): Likewise.
10796 (read_file_scope): Likewise.
10797 (read_func_scope): Likewise.
10798 (read_lexical_block_scope): Likewise.
10799 (read_call_site_scope): Likewise.
10800 (dwarf2_rnglists_process): Likewise.
10801 (dwarf2_ranges_process): Likewise.
10802 (dwarf2_ranges_read): Likewise.
10803 (dwarf_decode_lines_1): Likewise.
10804 (new_symbol): Likewise.
10805 (dwarf2_fetch_die_loc_sect_off): Likewise.
10806 (dwarf2_per_cu_text_offset): Likewise.
10807 * hppa-bsd-tdep.c (hppabsd_find_global_pointer): Likewise.
10808 * hppa-tdep.c (read_unwind_info): Likewise.
10809 * ia64-tdep.c (ia64_find_unwind_table): Likewise.
10810 * psympriv.h (struct partial_symtab): Likewise.
10811 * psymtab.c (find_pc_sect_psymtab): Likewise.
10812 * solib-svr4.c (enable_break): Likewise.
10813 * stap-probe.c (relocate_address): Use
10814 objfile::data_section_offset.
10815 * xcoffread.c (enter_line_range): Use
10816 objfile::text_section_offset.
10817 (read_xcoff_symtab): Likewise.
10818
ab53f382
SM
108192020-01-23 Simon Marchi <simon.marchi@efficios.com>
10820
10821 * darwin-nat.c (darwin_nat_target::wait_1): Move `inf`
10822 declaration to narrower scopes.
10823
e7eee665
SM
108242020-01-23 Simon Marchi <simon.marchi@efficios.com>
10825
10826 * darwin-nat.h (struct darwin_exception_msg, enum
10827 darwin_msg_state, struct darwin_thread_info, darwin_thread_t):
10828 Move up.
10829 (class darwin_nat_target) <wait_1, check_new_threads,
10830 decode_exception_message, decode_message, stop_inferior,
10831 init_thread_list, ptrace_him, cancel_breakpoint>: Declare.
10832 * darwin-nat.c (darwin_check_new_threads): Rename to...
10833 (darwin_nat_target::check_new_threads): ... this.
10834 (darwin_suspend_inferior_it): Remove.
10835 (darwin_decode_exception_message): Rename to...
10836 (darwin_nat_target::decode_exception_message): ... this.
10837 (darwin_nat_target::resume): Pass target to find_inferior_ptid.
10838 (darwin_decode_message): Rename to...
10839 (darwin_nat_target::decode_message): ... this.
10840 (cancel_breakpoint): Rename to...
10841 (darwin_nat_target::cancel_breakpoint): ... this.
10842 (darwin_wait): Rename to...
10843 (darwin_nat_target::wait_1): ... this. Use range-based for loop
10844 instead of iterate_over_inferiors.
10845 (darwin_nat_target::wait): Call wait_1 instead of darwin_wait.
10846 (darwin_stop_inferior): Rename to...
10847 (darwin_nat_target::stop_inferior): ... this.
10848 (darwin_nat_target::kill): Call wait_1 instead of darwin_wait.
10849 (darwin_init_thread_list): Rename to...
10850 (darwin_nat_target::init_thread_list): ... this.
10851 (darwin_ptrace_him): Rename to...
10852 (darwin_nat_target::ptrace_him): ... this.
10853 (darwin_nat_target::create_inferior): Pass lambda function to
10854 fork_inferior.
10855 (darwin_nat_target::detach): Call stop_inferior instead of
10856 darwin_stop_inferior.
10857 * fork-inferior.h (fork_inferior): Change init_trace_fun
10858 parameter to gdb::function_view.
10859 * fork-inferior.c (fork_inferior): Likewise.
10860
c162ed3e
HD
108612020-01-23 Hannes Domani <ssbssa@yahoo.de>
10862
10863 * i386-cygwin-tdep.c (core_process_module_section): Update.
10864 * windows-nat.c (struct lm_info_windows): Add text_offset.
10865 (windows_xfer_shared_libraries): Update.
10866 * windows-tdep.c (windows_xfer_shared_library):
10867 Add text_offset_cached argument.
10868 * windows-tdep.h (windows_xfer_shared_library): Update.
10869
a1237872
SM
108702020-01-21 Simon Marchi <simon.marchi@efficios.com>
10871
10872 * gdbarch.sh: Add declaration for _initialize_gdbarch.
10873
b3ee6dd9
SM
108742020-01-21 Simon Marchi <simon.marchi@efficios.com>
10875
10876 * remote-sim.c (check_for_duplicate_sim_descriptor): Remove.
10877 (get_sim_inferior_data): Remove use of iterate_over_inferiors,
10878 replace with range-based for.
10879 (gdbsim_interrupt_inferior): Remove.
10880 (gdbsim_target::interrupt): Replace iterate_over_inferiors use
10881 with a range-based for. Inline code from
10882 gdbsim_interrupt_inferior.
10883
f9fac3c8
SM
108842020-01-21 Simon Marchi <simon.marchi@efficios.com>
10885
10886 * infrun.c (proceed): Fix indentation.
10887
f6474de9
TT
108882020-01-21 Tom Tromey <tromey@adacore.com>
10889
10890 * source-cache.c (source_cache::ensure): Call ext_lang_colorize.
10891 * python/python.c (python_extension_ops): Update.
10892 (gdbpy_colorize): New function.
10893 * python/lib/gdb/__init__.py (colorize): New function.
10894 * extension.h (ext_lang_colorize): Declare.
10895 * extension.c (ext_lang_colorize): New function.
10896 * extension-priv.h (struct extension_language_ops) <colorize>: New
10897 member.
10898 * cli/cli-style.c (_initialize_cli_style): Update help text.
10899
f0c702d4
LM
109002020-01-21 Luis Machado <luis.machado@linaro.org>
10901
10902 * aarch64-tdep.c (struct aarch64_displaced_step_closure)
10903 <cond>: Change type to bool.
10904 (aarch64_displaced_step_b_cond): Update cond to use bool type.
10905 (aarch64_displaced_step_cb): Likewise.
10906 (aarch64_displaced_step_tb): Likewise.
10907
1ab139e5
LM
109082020-01-21 Luis Machado <luis.machado@linaro.org>
10909
10910 * aarch64-tdep.c (aarch64_displaced_step_fixup): Add more debugging
10911 output.
10912
0c271889
LM
109132020-01-21 Luis Machado <luis.machado@linaro.org>
10914
10915 * aarch64-tdep.c (struct aarch64_displaced_step_closure )
10916 <pc_adjust>: Adjust the documentation.
10917 (aarch64_displaced_step_fixup): Check if PC really moved before
10918 adjusting it.
10919
4d89c1c7
TT
109202020-01-19 Tom Tromey <tom@tromey.com>
10921
10922 * disasm.c (~gdb_disassembler): New destructor.
10923 (gdb_buffered_insn_length): Call disassemble_free_target.
10924 * disasm.h (class gdb_disassembler): Declare destructor. Use
10925 DISABLE_COPY_AND_ASSIGN.
10926
c0ab21c2
TT
109272020-01-19 Tom Tromey <tom@tromey.com>
10928
10929 * dwarf2read.c (abbrev_table_up): Move typedef earlier.
10930 (die_reader_func_ftype): Remove.
10931 (cutu_reader): New class.
10932 (dw2_get_file_names_reader): Remove "data" parameter.
10933 (dw2_get_file_names): Use cutu_reader.
10934 (create_debug_type_hash_table): Update.
10935 (read_cutu_die_from_dwo): Update comment.
10936 (lookup_dwo_unit): Add dwo_name parameter.
10937 (cutu_reader::init_tu_and_read_dwo_dies): Now a method. Remove
10938 die_reader_func_ftype and data parameters.
10939 (cutu_reader::cutu_reader): Rename from init_cutu_and_read_dies.
10940 Remove die_reader_func_ftype and data parameters.
10941 (~cutu_reader): New; from init_cutu_and_read_dies.
10942 (cutu_reader::cutu_reader): Rename from
10943 init_cutu_and_read_dies_no_follow. Remove die_reader_func_ftype
10944 and data parameters.
10945 (init_cutu_and_read_dies_simple): Remove.
10946 (struct process_psymtab_comp_unit_data): Remove.
10947 (process_psymtab_comp_unit_reader): Remove data parameter; add
10948 want_partial_unit and pretend_language parameters.
10949 (process_psymtab_comp_unit): Use cutu_reader.
10950 (build_type_psymtabs_reader): Remove data parameter.
10951 (build_type_psymtabs_1): Use cutu_reader.
10952 (process_skeletonless_type_unit): Likewise.
10953 (load_partial_comp_unit_reader): Remove.
10954 (load_partial_comp_unit): Use cutu_reader.
10955 (load_full_comp_unit_reader): Remove.
10956 (load_full_comp_unit): Use cutu_reader.
10957 (struct create_dwo_cu_data): Remove.
10958 (create_dwo_cu_reader): Remove datap parameter; add dwo_file and
10959 dwo_unit parameters.
10960 (create_cus_hash_table): Use cutu_reader.
10961 (struct dwarf2_read_addr_index_data): Remove.
10962 (dwarf2_read_addr_index_reader): Remove.
10963 (dwarf2_read_addr_index): Use cutu_reader.
10964 (read_signatured_type_reader): Remove.
10965 (read_signatured_type): Use cutu_reader.
10966
45bbae5c
TT
109672020-01-19 Tom Tromey <tom@tromey.com>
10968
10969 * tui/tui.c (tui_show_assembly): Use tui_suppress_output.
10970 * tui/tui-wingeneral.h (class tui_suppress_output): New.
10971 (tui_wrefresh): Declare.
10972 * tui/tui-wingeneral.c (suppress_output): New global.
10973 (tui_suppress_output, ~tui_suppress_output): New constructor and
10974 destructor.
10975 (tui_wrefresh): New function.
10976 (tui_gen_win_info::refresh_window): Use tui_wrefresh.
10977 (tui_gen_win_info::make_window): Call wnoutrefresh when needed.
10978 * tui/tui-regs.h (struct tui_data_window) <no_refresh>: Declare
10979 method.
10980 * tui/tui-regs.c (tui_data_window::erase_data_content): Call
10981 tui_wrefresh.
10982 (tui_data_window::no_refresh): New method.
10983 (tui_data_item_window::refresh_window): Call tui_wrefresh.
10984 (tui_reg_command): Use tui_suppress_output
10985 * tui/tui-layout.c (tui_set_layout): Use tui_suppress_output.
10986 * tui/tui-data.h (struct tui_gen_win_info) <no_refresh>: New
10987 method.
10988 * tui/tui-command.c (tui_refresh_cmd_win): Call tui_wrefresh.
10989
4f13c1c0
TT
109902020-01-19 Tom Tromey <tom@tromey.com>
10991
10992 * tui/tui-winsource.c (tui_update_source_windows_with_line):
10993 Handle case where symtab is null.
10994
fa47e446
SM
109952020-01-19 Simon Marchi <simon.marchi@polymtl.ca>
10996
10997 * linux-fork.c (one_fork_p): Simplify.
10998
26f42329
SM
109992020-01-17 Simon Marchi <simon.marchi@efficios.com>
11000
11001 * top.c (struct qt_args): Remove.
11002 (kill_or_detach): Change return type to void, replace `void *`
11003 parameter with a proper one.
11004 (print_inferior_quit_action): Likewise.
11005 (quit_confirm): Use range-based for loop to iterate over inferiors.
11006 (quit_force): Likewise.
11007
a9ac81b1
SM
110082020-01-17 Simon Marchi <simon.marchi@efficios.com>
11009
11010 * mi/mi-main.c (run_one_inferior): Change return type to void, replace
11011 `void *` parameter with proper parameters.
11012 (mi_cmd_exec_run): Use range-based loop to iterate over inferiors.
11013 (print_one_inferior): Change return type to void, replace `void *`
11014 parameter with proper parameters.
11015 (mi_cmd_list_thread_groups): Use range-based loop to iterate over
11016 inferiors.
11017 (get_other_inferior): Remove.
11018 (mi_cmd_remove_inferior): Use range-based loop to iterate over
11019 inferiors.
11020
788eca49
SM
110212020-01-17 Simon Marchi <simon.marchi@efficios.com>
11022
11023 * mi/mi-interp.c (report_initial_inferior): Remove.
11024 (mi_interp::init): Use range-based for to iterate over inferiors.
11025
d9bc85b6
SM
110262020-01-17 Simon Marchi <simon.marchi@efficios.com>
11027
11028 * python/py-inferior.c (build_inferior_list): Remove.
11029 (gdbpy_ref): Use range-based for loop to iterate over inferiors.
11030
40c94099
CB
110312020-01-16 Christian Biesinger <cbiesinger@google.com>
11032
11033 * btrace.c (btrace_compute_ftrace_1): Fix spelling error (Unkown).
11034 (btrace_stitch_trace): Likewise.
11035 * charset.c (intermediate_encoding): Likewise (vaild).
11036 * nat/linux-btrace.c (linux_read_pt): Likewise (Unkown).
11037 * python/py-record-btrace.c (struct PyMethodDef): Likewise (occurences).
11038 * record-btrace.c (record_btrace_print_conf): Likewise (unkown).
11039
e0cdfe3c
HD
110402020-01-16 Hannes Domani <ssbssa@yahoo.de>
11041
11042 * windows-tdep.c (windows_get_tlb_type):
11043 Add rtl_user_process_parameters type.
11044
790f1718 110452020-01-16 Pedro Alves <palves@redhat.com>
aac66a4c 11046 Norbert Lange <nolange79@gmail.com>
790f1718
PA
11047
11048 PR build/24805
11049 * gdbsupport/gdb_proc_service.h (PS_EXPORT): New.
11050 (ps_get_thread_area, ps_getpid, ps_lcontinue, ps_lgetfpregs)
11051 (ps_lgetregs, ps_lsetfpregs, ps_lsetregs, ps_lstop, ps_pcontinue)
11052 (ps_pdread, ps_pdwrite, ps_pglobal_lookup, ps_pstop, ps_ptread)
11053 (ps_ptwrite, ps_lgetxregs, ps_lgetxregsize, ps_lsetxregs)
11054 (ps_plog): Redeclare exported functions with default visibility.
11055
3112ed97
NA
110562020-01-16 Nitika Achra <Nitika.Achra@amd.com>
11057
11058 * dwarf2loc.c (decode_debug_loclists_addresses): Handle
11059 DW_LLE_base_addressx, DW_LLE_startx_length, DW_LLE_start_length.
11060
8dc3273e
SM
110612020-01-15 Simon Marchi <simon.marchi@efficios.com>
11062
11063 * infcmd.c (post_create_inferior): Use get_thread_regcache
11064 instead of get_current_regcache.
11065
ff47f4f0
TT
110662020-01-14 Tom Tromey <tom@tromey.com>
11067
11068 PR symtab/12535:
11069 * python/python.c (gdbpy_decode_line): Treat empty string the same
11070 as no argument.
11071
975f45b7
TT
110722020-01-14 Tom Tromey <tom@tromey.com>
11073
11074 * Makefile.in (CLIBS): Remove second use of $(LIBIBERTY).
11075
25e57356
TT
110762020-01-14 Tom Tromey <tom@tromey.com>
11077
11078 * nat/linux-btrace.c: Don't include <config.h>.
11079 * nat/linux-ptrace.c: Don't include <config.h>.
11080 * nat/x86-linux-dregs.c: Don't include <config.h>.
11081
05ea2a05
TT
110822020-01-14 Tom Tromey <tom@tromey.com>
11083
11084 * configure: Rebuild.
11085 * configure.ac: Move many checks to ../gdbsupport/common.m4.
11086
01027315
TT
110872020-01-14 Tom Tromey <tom@tromey.com>
11088
11089 * nat/x86-linux-dregs.c: Include configh.h.
11090 * nat/linux-ptrace.c: Include configh.h.
11091 * nat/linux-btrace.c: Include configh.h.
11092 * defs.h: Include config.h, bfd.h.
11093 * configure.ac: Don't source common.host.
11094 (CONFIG_OBS, CONFIG_SRCS): Remove gdbsupport files.
11095 * configure: Rebuild.
11096 * acinclude.m4: Update path.
11097 * Makefile.in (SUPPORT, LIBSUPPORT, INCSUPPORT): New variables.
11098 (CONFIG_SRC_SUBDIR): Remove gdbsupport.
11099 (INTERNAL_CFLAGS_BASE): Add INCSUPPORT.
11100 (CLIBS): Add LIBSUPPORT.
11101 (CDEPS): Likewise.
11102 (COMMON_SFILES): Remove gdbsupport files.
11103 (HFILES_NO_SRCDIR): Likewise.
11104 (stamp-version): Update path to create-version.sh.
11105 (ALLDEPFILES): Remove gdbsupport files.
11106
b2ceabe8
TT
111072020-01-14 Tom Tromey <tom@tromey.com>
11108
11109 * gdbsupport/common.m4 (GDB_AC_COMMON): Define WIN32APILIBS and
11110 USE_WIN32API when needed.
11111 * configure.ac (USE_WIN32API): Don't define.
11112 (WIN32LIBS): Use WIN32APILIBS.
11113 * configure: Rebuild.
11114
25c51f71
TT
111152020-01-14 Tom Tromey <tom@tromey.com>
11116
11117 * configure: Rebuild.
11118 * gdbsupport/common.m4 (GDB_AC_COMMON): Fix indentation.
11119
717c684d
BE
111202020-01-14 Bernd Edlinger <bernd.edlinger@hotmail.de>
11121
11122 * skip.c (skip_function_command): Make skip w/o arguments use the
11123 name of the inlined function if pc is inside any inlined function.
11124
7da6a5b9
LM
111252020-01-14 Luis Machado <luis.machado@linaro.org>
11126
11127 * inf-ptrace.c (inf_ptrace_target::resume): Update comments.
11128 * infrun.c (resume_1): Likewise.
11129 (handle_inferior_event): Remove stale comment.
11130 * linux-nat.c (linux_nat_target::resume): Update comments.
11131 (save_stop_reason): Likewise.
11132 (linux_nat_filter_event): Likewise.
11133 * linux-nat.h (struct lwp_info) <stop_pc>, <stop_reason>: Likewise.
11134
44e4c775
AB
111352020-01-13 Andrew Burgess <andrew.burgess@embecosm.com>
11136
11137 * elfread.c (record_minimal_symbol): Set section index to 0 for
11138 non-allocatable sections.
11139
18a8505e
AT
11140
111412020-01-13 Ali Tamur <tamur@google.com>
11142
11143 * dwarf2read.c (dwarf2_debug_sections): Add debug_str_offsets sections.
11144 (dwarf2_cu): Add str_offsets_base field. Change the type of addr_base
11145 to gdb::optional. Update comments.
11146 (dwo_file): Update comments.
11147 (read_attribute): Update API to take an additional out parameter,
11148 need_reprocess. This is used to mark attributes that need other
11149 attributes (e.g. str_offsets_base) for correct computation which may not
11150 have been read yet.
11151 (read_attribute_reprocess): New function declaration.
11152 (read_addr_index): Likewise.
11153 (read_dwo_str_index): Likewise.
11154 (read_stub_str_index): Likewise.
11155 (dwarf2_per_objfile::locate_sections): Handle debug_str_offsets section.
11156 (lookup_addr_base): New function definition.
11157 (lookup_ranges_base): Likewise.
11158 (read_cutu_die_from_dwo): Use the new functions: lookup_addr_base,
11159 lookup_ranges_base.
11160 (init_cutu_and_read_dies): Update comments.
11161 (init_cutu_and_read_dies_no_follow): Change API to take parent compile
11162 unit. This is used to inherit parent's str_offsets_base and addr_base.
11163 Update comments.
11164 (init_cutu_and_read_dies_simple): Reflect API changes.
11165 (skip_one_die): Reflect API changes. Handle DW_FORM_rnglistx.
11166 (create_cus_hash_table): Change API to take parent compile unit.
11167 Reflect API changes.
11168 (open_and_init_dwo_file): Reflect API changes.
11169 (dwarf2_get_pc_bounds): Update comments.
11170 (dwarf2_record_block_ranges): Likewise.
11171 (read_full_die_1): Change implementation to reprocess attributes that
11172 need str_offsets_base and addr_base.
11173 (partial_die_info::read): Likewise.
11174 (read_attribute_reprocess): New function definition.
11175 (read_attribute_value): Change API to take an additional out parameter,
11176 need_reprocess. Handle DW_FORM_rnglistx. No longer trigger an error
11177 when a non-dwo compile unit has index based attributes.
11178 (read_attribute): Reflect API changes.
11179 (read_addr_index_1): Reflect API changes. Update comments.
11180 (dwarf2_read_addr_index_data): Reflect API changes.
11181 (dwarf2_read_addr_index): Likewise.
11182 (read_str_index): Change API and implementation. This becomes a helper
11183 to be used by the new string index related methods. Update error
11184 message and comments.
11185 (read_dwo_str_index): New function definition.
11186 (read_stub_str_index): Likewise.
11187 * dwarf2read.h (dwarf2_per_objfile): Add str_offsets field.
11188 * symfile.h (dwarf2_debug_sections): Likewise.
11189 * xcoffread.c (dwarf2_debug_sections): Likewise.
11190
0cac9354
SM
111912020-01-13 Simon Marchi <simon.marchi@efficios.com>
11192
11193 * gdbcore.h (struct core_fns) <core_read_registers>: Change
11194 core_reg_sect type to gdb_byte *.
11195 * arm-nbsd-nat.c (fetch_elfcore_registers): Likewise.
11196 * cris-tdep.c (fetch_core_registers): Likewise.
11197 * corelow.c (core_target::get_core_register_section): Change
11198 type of `contents` to gdb::byte_vector.
11199
9a6d629c
AB
112002020-01-13 Andrew Burgess <andrew.burgess@embecosm.com>
11201
11202 * tui/tui-wingeneral.c (box_win): Position the title in the center
11203 of the border.
11204
d8b2f9e3
SM
112052020-01-13 Simon Marchi <simon.marchi@polymtl.ca>
11206
11207 * corelow.c (core_target::get_core_register_section): Use
11208 std::vector instead of alloca.
11209
bb564c58
SM
112102020-01-13 Simon Marchi <simon.marchi@efficios.com>
11211
11212 * warning.m4: Add -Wmissing-declarations to build_warnings.
11213 * configure: Re-generate.
11214
6b366111
SM
112152020-01-13 Simon Marchi <simon.marchi@efficios.com>
11216
11217 * python/python.c (init__gdb_module): Add declaration.
11218
6c265988
SM
112192020-01-13 Simon Marchi <simon.marchi@efficios.com>
11220
11221 * aarch64-fbsd-nat.c (_initialize_aarch64_fbsd_nat): Add declaration.
11222 * aarch64-fbsd-tdep.c (_initialize_aarch64_fbsd_tdep): Add declaration.
11223 * aarch64-linux-nat.c (_initialize_aarch64_linux_nat): Add declaration.
11224 * aarch64-linux-tdep.c (_initialize_aarch64_linux_tdep): Add declaration.
11225 * aarch64-newlib-tdep.c (_initialize_aarch64_newlib_tdep): Add declaration.
11226 * aarch64-tdep.c (_initialize_aarch64_tdep): Add declaration.
11227 * ada-exp.y (_initialize_ada_exp): Add declaration.
11228 * ada-lang.c (_initialize_ada_language): Add declaration.
11229 * ada-tasks.c (_initialize_tasks): Add declaration.
11230 * agent.c (_initialize_agent): Add declaration.
11231 * aix-thread.c (_initialize_aix_thread): Add declaration.
11232 * alpha-bsd-nat.c (_initialize_alphabsd_nat): Add declaration.
11233 * alpha-linux-nat.c (_initialize_alpha_linux_nat): Add declaration.
11234 * alpha-linux-tdep.c (_initialize_alpha_linux_tdep): Add declaration.
11235 * alpha-nbsd-tdep.c (_initialize_alphanbsd_tdep): Add declaration.
11236 * alpha-obsd-tdep.c (_initialize_alphaobsd_tdep): Add declaration.
11237 * alpha-tdep.c (_initialize_alpha_tdep): Add declaration.
11238 * amd64-darwin-tdep.c (_initialize_amd64_darwin_tdep): Add declaration.
11239 * amd64-dicos-tdep.c (_initialize_amd64_dicos_tdep): Add declaration.
11240 * amd64-fbsd-nat.c (_initialize_amd64fbsd_nat): Add declaration.
11241 * amd64-fbsd-tdep.c (_initialize_amd64fbsd_tdep): Add declaration.
11242 * amd64-linux-nat.c (_initialize_amd64_linux_nat): Add declaration.
11243 * amd64-linux-tdep.c (_initialize_amd64_linux_tdep): Add declaration.
11244 * amd64-nbsd-nat.c (_initialize_amd64nbsd_nat): Add declaration.
11245 * amd64-nbsd-tdep.c (_initialize_amd64nbsd_tdep): Add declaration.
11246 * amd64-obsd-nat.c (_initialize_amd64obsd_nat): Add declaration.
11247 * amd64-obsd-tdep.c (_initialize_amd64obsd_tdep): Add declaration.
11248 * amd64-sol2-tdep.c (_initialize_amd64_sol2_tdep): Add declaration.
11249 * amd64-tdep.c (_initialize_amd64_tdep): Add declaration.
11250 * amd64-windows-nat.c (_initialize_amd64_windows_nat): Add declaration.
11251 * amd64-windows-tdep.c (_initialize_amd64_windows_tdep): Add declaration.
11252 * annotate.c (_initialize_annotate): Add declaration.
11253 * arc-newlib-tdep.c (_initialize_arc_newlib_tdep): Add declaration.
11254 * arc-tdep.c (_initialize_arc_tdep): Add declaration.
11255 * arch-utils.c (_initialize_gdbarch_utils): Add declaration.
11256 * arm-fbsd-nat.c (_initialize_arm_fbsd_nat): Add declaration.
11257 * arm-fbsd-tdep.c (_initialize_arm_fbsd_tdep): Add declaration.
11258 * arm-linux-nat.c (_initialize_arm_linux_nat): Add declaration.
11259 * arm-linux-tdep.c (_initialize_arm_linux_tdep): Add declaration.
11260 * arm-nbsd-nat.c (_initialize_arm_netbsd_nat): Add declaration.
11261 * arm-nbsd-tdep.c (_initialize_arm_netbsd_tdep): Add declaration.
11262 * arm-obsd-tdep.c (_initialize_armobsd_tdep): Add declaration.
11263 * arm-pikeos-tdep.c (_initialize_arm_pikeos_tdep): Add declaration.
11264 * arm-symbian-tdep.c (_initialize_arm_symbian_tdep): Add declaration.
11265 * arm-tdep.c (_initialize_arm_tdep): Add declaration.
11266 * arm-wince-tdep.c (_initialize_arm_wince_tdep): Add declaration.
11267 * auto-load.c (_initialize_auto_load): Add declaration.
11268 * auxv.c (_initialize_auxv): Add declaration.
11269 * avr-tdep.c (_initialize_avr_tdep): Add declaration.
11270 * ax-gdb.c (_initialize_ax_gdb): Add declaration.
11271 * bfin-linux-tdep.c (_initialize_bfin_linux_tdep): Add declaration.
11272 * bfin-tdep.c (_initialize_bfin_tdep): Add declaration.
11273 * break-catch-sig.c (_initialize_break_catch_sig): Add declaration.
11274 * break-catch-syscall.c (_initialize_break_catch_syscall): Add declaration.
11275 * break-catch-throw.c (_initialize_break_catch_throw): Add declaration.
11276 * breakpoint.c (_initialize_breakpoint): Add declaration.
11277 * bsd-uthread.c (_initialize_bsd_uthread): Add declaration.
11278 * btrace.c (_initialize_btrace): Add declaration.
11279 * charset.c (_initialize_charset): Add declaration.
11280 * cli/cli-cmds.c (_initialize_cli_cmds): Add declaration.
11281 * cli/cli-dump.c (_initialize_cli_dump): Add declaration.
11282 * cli/cli-interp.c (_initialize_cli_interp): Add declaration.
11283 * cli/cli-logging.c (_initialize_cli_logging): Add declaration.
11284 * cli/cli-script.c (_initialize_cli_script): Add declaration.
11285 * cli/cli-style.c (_initialize_cli_style): Add declaration.
11286 * coff-pe-read.c (_initialize_coff_pe_read): Add declaration.
11287 * coffread.c (_initialize_coffread): Add declaration.
11288 * compile/compile-cplus-types.c (_initialize_compile_cplus_types): Add declaration.
11289 * compile/compile.c (_initialize_compile): Add declaration.
11290 * complaints.c (_initialize_complaints): Add declaration.
11291 * completer.c (_initialize_completer): Add declaration.
11292 * copying.c (_initialize_copying): Add declaration.
11293 * corefile.c (_initialize_core): Add declaration.
11294 * corelow.c (_initialize_corelow): Add declaration.
11295 * cp-abi.c (_initialize_cp_abi): Add declaration.
11296 * cp-namespace.c (_initialize_cp_namespace): Add declaration.
11297 * cp-support.c (_initialize_cp_support): Add declaration.
11298 * cp-valprint.c (_initialize_cp_valprint): Add declaration.
11299 * cris-linux-tdep.c (_initialize_cris_linux_tdep): Add declaration.
11300 * cris-tdep.c (_initialize_cris_tdep): Add declaration.
11301 * csky-linux-tdep.c (_initialize_csky_linux_tdep): Add declaration.
11302 * csky-tdep.c (_initialize_csky_tdep): Add declaration.
11303 * ctfread.c (_initialize_ctfread): Add declaration.
11304 * d-lang.c (_initialize_d_language): Add declaration.
11305 * darwin-nat-info.c (_initialize_darwin_info_commands): Add declaration.
11306 * darwin-nat.c (_initialize_darwin_nat): Add declaration.
11307 * dbxread.c (_initialize_dbxread): Add declaration.
11308 * dcache.c (_initialize_dcache): Add declaration.
11309 * disasm-selftests.c (_initialize_disasm_selftests): Add declaration.
11310 * disasm.c (_initialize_disasm): Add declaration.
11311 * dtrace-probe.c (_initialize_dtrace_probe): Add declaration.
11312 * dummy-frame.c (_initialize_dummy_frame): Add declaration.
11313 * dwarf-index-cache.c (_initialize_index_cache): Add declaration.
11314 * dwarf-index-write.c (_initialize_dwarf_index_write): Add declaration.
11315 * dwarf2-frame-tailcall.c (_initialize_tailcall_frame): Add declaration.
11316 * dwarf2-frame.c (_initialize_dwarf2_frame): Add declaration.
11317 * dwarf2expr.c (_initialize_dwarf2expr): Add declaration.
11318 * dwarf2loc.c (_initialize_dwarf2loc): Add declaration.
11319 * dwarf2read.c (_initialize_dwarf2_read): Add declaration.
11320 * elfread.c (_initialize_elfread): Add declaration.
11321 * exec.c (_initialize_exec): Add declaration.
11322 * extension.c (_initialize_extension): Add declaration.
11323 * f-lang.c (_initialize_f_language): Add declaration.
11324 * f-valprint.c (_initialize_f_valprint): Add declaration.
11325 * fbsd-nat.c (_initialize_fbsd_nat): Add declaration.
11326 * fbsd-tdep.c (_initialize_fbsd_tdep): Add declaration.
11327 * filesystem.c (_initialize_filesystem): Add declaration.
11328 * findcmd.c (_initialize_mem_search): Add declaration.
11329 * findvar.c (_initialize_findvar): Add declaration.
11330 * fork-child.c (_initialize_fork_child): Add declaration.
11331 * frame-base.c (_initialize_frame_base): Add declaration.
11332 * frame-unwind.c (_initialize_frame_unwind): Add declaration.
11333 * frame.c (_initialize_frame): Add declaration.
11334 * frv-linux-tdep.c (_initialize_frv_linux_tdep): Add declaration.
11335 * frv-tdep.c (_initialize_frv_tdep): Add declaration.
11336 * ft32-tdep.c (_initialize_ft32_tdep): Add declaration.
11337 * gcore.c (_initialize_gcore): Add declaration.
11338 * gdb-demangle.c (_initialize_gdb_demangle): Add declaration.
11339 * gdb_bfd.c (_initialize_gdb_bfd): Add declaration.
11340 * gdbarch-selftests.c (_initialize_gdbarch_selftests): Add declaration.
11341 * gdbarch.c (_initialize_gdbarch): Add declaration.
11342 * gdbtypes.c (_initialize_gdbtypes): Add declaration.
11343 * gnu-nat.c (_initialize_gnu_nat): Add declaration.
11344 * gnu-v2-abi.c (_initialize_gnu_v2_abi): Add declaration.
11345 * gnu-v3-abi.c (_initialize_gnu_v3_abi): Add declaration.
11346 * go-lang.c (_initialize_go_language): Add declaration.
11347 * go32-nat.c (_initialize_go32_nat): Add declaration.
11348 * guile/guile.c (_initialize_guile): Add declaration.
11349 * h8300-tdep.c (_initialize_h8300_tdep): Add declaration.
11350 * hppa-linux-nat.c (_initialize_hppa_linux_nat): Add declaration.
11351 * hppa-linux-tdep.c (_initialize_hppa_linux_tdep): Add declaration.
11352 * hppa-nbsd-nat.c (_initialize_hppanbsd_nat): Add declaration.
11353 * hppa-nbsd-tdep.c (_initialize_hppanbsd_tdep): Add declaration.
11354 * hppa-obsd-nat.c (_initialize_hppaobsd_nat): Add declaration.
11355 * hppa-obsd-tdep.c (_initialize_hppabsd_tdep): Add declaration.
11356 * hppa-tdep.c (_initialize_hppa_tdep): Add declaration.
11357 * i386-bsd-nat.c (_initialize_i386bsd_nat): Add declaration.
11358 * i386-cygwin-tdep.c (_initialize_i386_cygwin_tdep): Add declaration.
11359 * i386-darwin-nat.c (_initialize_i386_darwin_nat): Add declaration.
11360 * i386-darwin-tdep.c (_initialize_i386_darwin_tdep): Add declaration.
11361 * i386-dicos-tdep.c (_initialize_i386_dicos_tdep): Add declaration.
11362 * i386-fbsd-nat.c (_initialize_i386fbsd_nat): Add declaration.
11363 * i386-fbsd-tdep.c (_initialize_i386fbsd_tdep): Add declaration.
11364 * i386-gnu-nat.c (_initialize_i386gnu_nat): Add declaration.
11365 * i386-gnu-tdep.c (_initialize_i386gnu_tdep): Add declaration.
11366 * i386-go32-tdep.c (_initialize_i386_go32_tdep): Add declaration.
11367 * i386-linux-nat.c (_initialize_i386_linux_nat): Add declaration.
11368 * i386-linux-tdep.c (_initialize_i386_linux_tdep): Add declaration.
11369 * i386-nbsd-nat.c (_initialize_i386nbsd_nat): Add declaration.
11370 * i386-nbsd-tdep.c (_initialize_i386nbsd_tdep): Add declaration.
11371 * i386-nto-tdep.c (_initialize_i386nto_tdep): Add declaration.
11372 * i386-obsd-nat.c (_initialize_i386obsd_nat): Add declaration.
11373 * i386-obsd-tdep.c (_initialize_i386obsd_tdep): Add declaration.
11374 * i386-sol2-nat.c (_initialize_amd64_sol2_nat): Add declaration.
11375 * i386-sol2-tdep.c (_initialize_i386_sol2_tdep): Add declaration.
11376 * i386-tdep.c (_initialize_i386_tdep): Add declaration.
11377 * i386-windows-nat.c (_initialize_i386_windows_nat): Add declaration.
11378 * ia64-libunwind-tdep.c (_initialize_libunwind_frame): Add declaration.
11379 * ia64-linux-nat.c (_initialize_ia64_linux_nat): Add declaration.
11380 * ia64-linux-tdep.c (_initialize_ia64_linux_tdep): Add declaration.
11381 * ia64-tdep.c (_initialize_ia64_tdep): Add declaration.
11382 * ia64-vms-tdep.c (_initialize_ia64_vms_tdep): Add declaration.
11383 * infcall.c (_initialize_infcall): Add declaration.
11384 * infcmd.c (_initialize_infcmd): Add declaration.
11385 * inflow.c (_initialize_inflow): Add declaration.
11386 * infrun.c (_initialize_infrun): Add declaration.
11387 * interps.c (_initialize_interpreter): Add declaration.
11388 * iq2000-tdep.c (_initialize_iq2000_tdep): Add declaration.
11389 * jit.c (_initialize_jit): Add declaration.
11390 * language.c (_initialize_language): Add declaration.
11391 * linux-fork.c (_initialize_linux_fork): Add declaration.
11392 * linux-nat.c (_initialize_linux_nat): Add declaration.
11393 * linux-tdep.c (_initialize_linux_tdep): Add declaration.
11394 * linux-thread-db.c (_initialize_thread_db): Add declaration.
11395 * lm32-tdep.c (_initialize_lm32_tdep): Add declaration.
11396 * m2-lang.c (_initialize_m2_language): Add declaration.
11397 * m32c-tdep.c (_initialize_m32c_tdep): Add declaration.
11398 * m32r-linux-nat.c (_initialize_m32r_linux_nat): Add declaration.
11399 * m32r-linux-tdep.c (_initialize_m32r_linux_tdep): Add declaration.
11400 * m32r-tdep.c (_initialize_m32r_tdep): Add declaration.
11401 * m68hc11-tdep.c (_initialize_m68hc11_tdep): Add declaration.
11402 * m68k-bsd-nat.c (_initialize_m68kbsd_nat): Add declaration.
11403 * m68k-bsd-tdep.c (_initialize_m68kbsd_tdep): Add declaration.
11404 * m68k-linux-nat.c (_initialize_m68k_linux_nat): Add declaration.
11405 * m68k-linux-tdep.c (_initialize_m68k_linux_tdep): Add declaration.
11406 * m68k-tdep.c (_initialize_m68k_tdep): Add declaration.
11407 * machoread.c (_initialize_machoread): Add declaration.
11408 * macrocmd.c (_initialize_macrocmd): Add declaration.
11409 * macroscope.c (_initialize_macroscope): Add declaration.
11410 * maint-test-options.c (_initialize_maint_test_options): Add declaration.
11411 * maint-test-settings.c (_initialize_maint_test_settings): Add declaration.
11412 * maint.c (_initialize_maint_cmds): Add declaration.
11413 * mdebugread.c (_initialize_mdebugread): Add declaration.
11414 * memattr.c (_initialize_mem): Add declaration.
11415 * mep-tdep.c (_initialize_mep_tdep): Add declaration.
11416 * mi/mi-cmd-env.c (_initialize_mi_cmd_env): Add declaration.
11417 * mi/mi-cmds.c (_initialize_mi_cmds): Add declaration.
11418 * mi/mi-interp.c (_initialize_mi_interp): Add declaration.
11419 * mi/mi-main.c (_initialize_mi_main): Add declaration.
11420 * microblaze-linux-tdep.c (_initialize_microblaze_linux_tdep): Add declaration.
11421 * microblaze-tdep.c (_initialize_microblaze_tdep): Add declaration.
11422 * mips-fbsd-nat.c (_initialize_mips_fbsd_nat): Add declaration.
11423 * mips-fbsd-tdep.c (_initialize_mips_fbsd_tdep): Add declaration.
11424 * mips-linux-nat.c (_initialize_mips_linux_nat): Add declaration.
11425 * mips-linux-tdep.c (_initialize_mips_linux_tdep): Add declaration.
11426 * mips-nbsd-nat.c (_initialize_mipsnbsd_nat): Add declaration.
11427 * mips-nbsd-tdep.c (_initialize_mipsnbsd_tdep): Add declaration.
11428 * mips-sde-tdep.c (_initialize_mips_sde_tdep): Add declaration.
11429 * mips-tdep.c (_initialize_mips_tdep): Add declaration.
11430 * mips64-obsd-nat.c (_initialize_mips64obsd_nat): Add declaration.
11431 * mips64-obsd-tdep.c (_initialize_mips64obsd_tdep): Add declaration.
11432 * mipsread.c (_initialize_mipsread): Add declaration.
11433 * mn10300-linux-tdep.c (_initialize_mn10300_linux_tdep): Add declaration.
11434 * mn10300-tdep.c (_initialize_mn10300_tdep): Add declaration.
11435 * moxie-tdep.c (_initialize_moxie_tdep): Add declaration.
11436 * msp430-tdep.c (_initialize_msp430_tdep): Add declaration.
11437 * nds32-tdep.c (_initialize_nds32_tdep): Add declaration.
11438 * nios2-linux-tdep.c (_initialize_nios2_linux_tdep): Add declaration.
11439 * nios2-tdep.c (_initialize_nios2_tdep): Add declaration.
11440 * nto-procfs.c (_initialize_procfs): Add declaration.
11441 * objc-lang.c (_initialize_objc_language): Add declaration.
11442 * observable.c (_initialize_observer): Add declaration.
11443 * opencl-lang.c (_initialize_opencl_language): Add declaration.
11444 * or1k-linux-tdep.c (_initialize_or1k_linux_tdep): Add declaration.
11445 * or1k-tdep.c (_initialize_or1k_tdep): Add declaration.
11446 * osabi.c (_initialize_gdb_osabi): Add declaration.
11447 * osdata.c (_initialize_osdata): Add declaration.
11448 * p-valprint.c (_initialize_pascal_valprint): Add declaration.
11449 * parse.c (_initialize_parse): Add declaration.
11450 * ppc-fbsd-nat.c (_initialize_ppcfbsd_nat): Add declaration.
11451 * ppc-fbsd-tdep.c (_initialize_ppcfbsd_tdep): Add declaration.
11452 * ppc-linux-nat.c (_initialize_ppc_linux_nat): Add declaration.
11453 * ppc-linux-tdep.c (_initialize_ppc_linux_tdep): Add declaration.
11454 * ppc-nbsd-nat.c (_initialize_ppcnbsd_nat): Add declaration.
11455 * ppc-nbsd-tdep.c (_initialize_ppcnbsd_tdep): Add declaration.
11456 * ppc-obsd-nat.c (_initialize_ppcobsd_nat): Add declaration.
11457 * ppc-obsd-tdep.c (_initialize_ppcobsd_tdep): Add declaration.
11458 * printcmd.c (_initialize_printcmd): Add declaration.
11459 * probe.c (_initialize_probe): Add declaration.
11460 * proc-api.c (_initialize_proc_api): Add declaration.
11461 * proc-events.c (_initialize_proc_events): Add declaration.
11462 * proc-service.c (_initialize_proc_service): Add declaration.
11463 * procfs.c (_initialize_procfs): Add declaration.
11464 * producer.c (_initialize_producer): Add declaration.
11465 * psymtab.c (_initialize_psymtab): Add declaration.
11466 * python/python.c (_initialize_python): Add declaration.
11467 * ravenscar-thread.c (_initialize_ravenscar): Add declaration.
11468 * record-btrace.c (_initialize_record_btrace): Add declaration.
11469 * record-full.c (_initialize_record_full): Add declaration.
11470 * record.c (_initialize_record): Add declaration.
11471 * regcache-dump.c (_initialize_regcache_dump): Add declaration.
11472 * regcache.c (_initialize_regcache): Add declaration.
11473 * reggroups.c (_initialize_reggroup): Add declaration.
11474 * remote-notif.c (_initialize_notif): Add declaration.
11475 * remote-sim.c (_initialize_remote_sim): Add declaration.
11476 * remote.c (_initialize_remote): Add declaration.
11477 * reverse.c (_initialize_reverse): Add declaration.
11478 * riscv-fbsd-nat.c (_initialize_riscv_fbsd_nat): Add declaration.
11479 * riscv-fbsd-tdep.c (_initialize_riscv_fbsd_tdep): Add declaration.
11480 * riscv-linux-nat.c (_initialize_riscv_linux_nat): Add declaration.
11481 * riscv-linux-tdep.c (_initialize_riscv_linux_tdep): Add declaration.
11482 * riscv-tdep.c (_initialize_riscv_tdep): Add declaration.
11483 * rl78-tdep.c (_initialize_rl78_tdep): Add declaration.
11484 * rs6000-aix-tdep.c (_initialize_rs6000_aix_tdep): Add declaration.
11485 * rs6000-lynx178-tdep.c (_initialize_rs6000_lynx178_tdep):
11486 Add declaration.
11487 * rs6000-nat.c (_initialize_rs6000_nat): Add declaration.
11488 * rs6000-tdep.c (_initialize_rs6000_tdep): Add declaration.
11489 * run-on-main-thread.c (_initialize_run_on_main_thread): Add declaration.
11490 * rust-exp.y (_initialize_rust_exp): Add declaration.
11491 * rx-tdep.c (_initialize_rx_tdep): Add declaration.
11492 * s12z-tdep.c (_initialize_s12z_tdep): Add declaration.
11493 * s390-linux-nat.c (_initialize_s390_nat): Add declaration.
11494 * s390-linux-tdep.c (_initialize_s390_linux_tdep): Add declaration.
11495 * s390-tdep.c (_initialize_s390_tdep): Add declaration.
11496 * score-tdep.c (_initialize_score_tdep): Add declaration.
11497 * ser-go32.c (_initialize_ser_dos): Add declaration.
11498 * ser-mingw.c (_initialize_ser_windows): Add declaration.
11499 * ser-pipe.c (_initialize_ser_pipe): Add declaration.
11500 * ser-tcp.c (_initialize_ser_tcp): Add declaration.
11501 * ser-uds.c (_initialize_ser_socket): Add declaration.
11502 * ser-unix.c (_initialize_ser_hardwire): Add declaration.
11503 * serial.c (_initialize_serial): Add declaration.
11504 * sh-linux-tdep.c (_initialize_sh_linux_tdep): Add declaration.
11505 * sh-nbsd-nat.c (_initialize_shnbsd_nat): Add declaration.
11506 * sh-nbsd-tdep.c (_initialize_shnbsd_tdep): Add declaration.
11507 * sh-tdep.c (_initialize_sh_tdep): Add declaration.
11508 * skip.c (_initialize_step_skip): Add declaration.
11509 * sol-thread.c (_initialize_sol_thread): Add declaration.
11510 * solib-aix.c (_initialize_solib_aix): Add declaration.
11511 * solib-darwin.c (_initialize_darwin_solib): Add declaration.
11512 * solib-dsbt.c (_initialize_dsbt_solib): Add declaration.
11513 * solib-frv.c (_initialize_frv_solib): Add declaration.
11514 * solib-svr4.c (_initialize_svr4_solib): Add declaration.
11515 * solib-target.c (_initialize_solib_target): Add declaration.
11516 * solib.c (_initialize_solib): Add declaration.
11517 * source-cache.c (_initialize_source_cache): Add declaration.
11518 * source.c (_initialize_source): Add declaration.
11519 * sparc-linux-nat.c (_initialize_sparc_linux_nat): Add declaration.
11520 * sparc-linux-tdep.c (_initialize_sparc_linux_tdep): Add declaration.
11521 * sparc-nat.c (_initialize_sparc_nat): Add declaration.
11522 * sparc-nbsd-nat.c (_initialize_sparcnbsd_nat): Add declaration.
11523 * sparc-nbsd-tdep.c (_initialize_sparcnbsd_tdep): Add declaration.
11524 * sparc-obsd-tdep.c (_initialize_sparc32obsd_tdep): Add declaration.
11525 * sparc-sol2-tdep.c (_initialize_sparc_sol2_tdep): Add declaration.
11526 * sparc-tdep.c (_initialize_sparc_tdep): Add declaration.
11527 * sparc64-fbsd-nat.c (_initialize_sparc64fbsd_nat): Add declaration.
11528 * sparc64-fbsd-tdep.c (_initialize_sparc64fbsd_tdep): Add declaration.
11529 * sparc64-linux-nat.c (_initialize_sparc64_linux_nat): Add declaration.
11530 * sparc64-linux-tdep.c (_initialize_sparc64_linux_tdep): Add declaration.
11531 * sparc64-nat.c (_initialize_sparc64_nat): Add declaration.
11532 * sparc64-nbsd-nat.c (_initialize_sparc64nbsd_nat): Add declaration.
11533 * sparc64-nbsd-tdep.c (_initialize_sparc64nbsd_tdep): Add declaration.
11534 * sparc64-obsd-nat.c (_initialize_sparc64obsd_nat): Add declaration.
11535 * sparc64-obsd-tdep.c (_initialize_sparc64obsd_tdep): Add declaration.
11536 * sparc64-sol2-tdep.c (_initialize_sparc64_sol2_tdep): Add declaration.
11537 * sparc64-tdep.c (_initialize_sparc64_adi_tdep): Add declaration.
11538 * stabsread.c (_initialize_stabsread): Add declaration.
11539 * stack.c (_initialize_stack): Add declaration.
11540 * stap-probe.c (_initialize_stap_probe): Add declaration.
11541 * std-regs.c (_initialize_frame_reg): Add declaration.
11542 * symfile-debug.c (_initialize_symfile_debug): Add declaration.
11543 * symfile-mem.c (_initialize_symfile_mem): Add declaration.
11544 * symfile.c (_initialize_symfile): Add declaration.
11545 * symmisc.c (_initialize_symmisc): Add declaration.
11546 * symtab.c (_initialize_symtab): Add declaration.
11547 * target.c (_initialize_target): Add declaration.
11548 * target-connection.c (_initialize_target_connection): Add
11549 declaration.
11550 * target-dcache.c (_initialize_target_dcache): Add declaration.
11551 * target-descriptions.c (_initialize_target_descriptions): Add declaration.
11552 * thread.c (_initialize_thread): Add declaration.
11553 * tic6x-linux-tdep.c (_initialize_tic6x_linux_tdep): Add declaration.
11554 * tic6x-tdep.c (_initialize_tic6x_tdep): Add declaration.
11555 * tilegx-linux-nat.c (_initialize_tile_linux_nat): Add declaration.
11556 * tilegx-linux-tdep.c (_initialize_tilegx_linux_tdep): Add declaration.
11557 * tilegx-tdep.c (_initialize_tilegx_tdep): Add declaration.
11558 * tracectf.c (_initialize_ctf): Add declaration.
11559 * tracefile-tfile.c (_initialize_tracefile_tfile): Add declaration.
11560 * tracefile.c (_initialize_tracefile): Add declaration.
11561 * tracepoint.c (_initialize_tracepoint): Add declaration.
11562 * tui/tui-hooks.c (_initialize_tui_hooks): Add declaration.
11563 * tui/tui-interp.c (_initialize_tui_interp): Add declaration.
11564 * tui/tui-layout.c (_initialize_tui_layout): Add declaration.
11565 * tui/tui-regs.c (_initialize_tui_regs): Add declaration.
11566 * tui/tui-stack.c (_initialize_tui_stack): Add declaration.
11567 * tui/tui-win.c (_initialize_tui_win): Add declaration.
11568 * tui/tui.c (_initialize_tui): Add declaration.
11569 * typeprint.c (_initialize_typeprint): Add declaration.
11570 * ui-style.c (_initialize_ui_style): Add declaration.
11571 * unittests/array-view-selftests.c (_initialize_array_view_selftests): Add declaration.
11572 * unittests/child-path-selftests.c (_initialize_child_path_selftests): Add declaration.
11573 * unittests/cli-utils-selftests.c (_initialize_cli_utils_selftests): Add declaration.
11574 * unittests/common-utils-selftests.c (_initialize_common_utils_selftests): Add declaration.
11575 * unittests/copy_bitwise-selftests.c (_initialize_copy_bitwise_utils_selftests): Add declaration.
11576 * unittests/environ-selftests.c (_initialize_environ_selftests): Add declaration.
11577 * unittests/filtered_iterator-selftests.c
11578 (_initialize_filtered_iterator_selftests): Add declaration.
11579 * unittests/format_pieces-selftests.c (_initialize_format_pieces_selftests): Add declaration.
11580 * unittests/function-view-selftests.c (_initialize_function_view_selftests): Add declaration.
11581 * unittests/help-doc-selftests.c (_initialize_help_doc_selftests): Add declaration.
11582 * unittests/lookup_name_info-selftests.c (_initialize_lookup_name_info_selftests): Add declaration.
11583 * unittests/main-thread-selftests.c
11584 (_initialize_main_thread_selftests): Add declaration.
11585 * unittests/memory-map-selftests.c (_initialize_memory_map_selftests): Add declaration.
11586 * unittests/memrange-selftests.c (_initialize_memrange_selftests): Add declaration.
11587 * unittests/mkdir-recursive-selftests.c (_initialize_mkdir_recursive_selftests): Add declaration.
11588 * unittests/observable-selftests.c (_initialize_observer_selftest): Add declaration.
11589 * unittests/offset-type-selftests.c (_initialize_offset_type_selftests): Add declaration.
11590 * unittests/optional-selftests.c (_initialize_optional_selftests): Add declaration.
11591 * unittests/parse-connection-spec-selftests.c (_initialize_parse_connection_spec_selftests): Add declaration.
11592 * unittests/rsp-low-selftests.c (_initialize_rsp_low_selftests): Add declaration.
11593 * unittests/scoped_fd-selftests.c (_initialize_scoped_fd_selftests): Add declaration.
11594 * unittests/scoped_mmap-selftests.c (_initialize_scoped_mmap_selftests): Add declaration.
11595 * unittests/scoped_restore-selftests.c (_initialize_scoped_restore_selftests): Add declaration.
11596 * unittests/string_view-selftests.c (_initialize_string_view_selftests): Add declaration.
11597 * unittests/style-selftests.c (_initialize_style_selftest): Add declaration.
11598 * unittests/tracepoint-selftests.c (_initialize_tracepoint_selftests): Add declaration.
11599 * unittests/tui-selftests.c (_initialize_tui_selftest): Add
11600 declaration.
11601 * unittests/unpack-selftests.c (_initialize_unpack_selftests): Add declaration.
11602 * unittests/utils-selftests.c (_initialize_utils_selftests): Add declaration.
11603 * unittests/vec-utils-selftests.c (_initialize_vec_utils_selftests): Add declaration.
11604 * unittests/xml-utils-selftests.c (_initialize_xml_utils): Add declaration.
11605 * user-regs.c (_initialize_user_regs): Add declaration.
11606 * utils.c (_initialize_utils): Add declaration.
11607 * v850-tdep.c (_initialize_v850_tdep): Add declaration.
11608 * valops.c (_initialize_valops): Add declaration.
11609 * valprint.c (_initialize_valprint): Add declaration.
11610 * value.c (_initialize_values): Add declaration.
11611 * varobj.c (_initialize_varobj): Add declaration.
11612 * vax-bsd-nat.c (_initialize_vaxbsd_nat): Add declaration.
11613 * vax-nbsd-tdep.c (_initialize_vaxnbsd_tdep): Add declaration.
11614 * vax-tdep.c (_initialize_vax_tdep): Add declaration.
11615 * windows-nat.c (_initialize_windows_nat): Add declaration.
11616 (_initialize_check_for_gdb_ini): Add declaration.
11617 (_initialize_loadable): Add declaration.
11618 * windows-tdep.c (_initialize_windows_tdep): Add declaration.
11619 * x86-bsd-nat.c (_initialize_x86_bsd_nat): Add declaration.
11620 * x86-linux-nat.c (_initialize_x86_linux_nat): Add declaration.
11621 * xcoffread.c (_initialize_xcoffread): Add declaration.
11622 * xml-support.c (_initialize_xml_support): Add declaration.
11623 * xstormy16-tdep.c (_initialize_xstormy16_tdep): Add declaration.
11624 * xtensa-linux-nat.c (_initialize_xtensa_linux_nat): Add declaration.
11625 * xtensa-linux-tdep.c (_initialize_xtensa_linux_tdep): Add declaration.
11626 * xtensa-tdep.c (_initialize_xtensa_tdep): Add declaration.
11627
e2de1eec
SM
116282020-01-13 Simon Marchi <simon.marchi@polymtl.ca>
11629
11630 * regformats/regdat.sh: Generate declaration for init function.
11631
e0037b4c
SM
116322020-01-13 Simon Marchi <simon.marchi@polymtl.ca>
11633
11634 * remote-sim.c (next_pid, INITIAL_PID, sim_inferior_data): Move
11635 up.
11636 (gdbsim_target) <get_inferior_data_by_ptid, resume_one_inferior,
11637 close_one_inferior>: New methods.
11638 (get_sim_inferior_data_by_ptid): Move to gdbsim_target,
11639 pass down target to find_inferior_pid.
11640 (gdbsim_target::fetch_registers, gdbsim_target::store_registers):
11641 Pass down target to find_inferior_ptid.
11642 (gdbsim_target::create_inferior): Pass down target to
11643 add_thread_silent.
11644 (gdbsim_close_inferior): Move to gdbsim_close_inferior, pass
11645 target down to find_inferior_ptid and switch_to_thread.
11646 (gdbsim_target::close): Update to call close_one_inferior.
11647 (struct resume_data): Remove.
11648 (gdbsim_resume_inferior): Move to gdbsim_target. Take arguments
11649 directly, rather than through a void pointer.
11650 (gdbsim_target::resume): Update to call resume_one_inferior.
11651
58920b5b
SM
116522020-01-12 Simon Marchi <simon.marchi@polymtl.ca>
11653
11654 * gdbsupport/gdb_wait.c: Include gdb_wait.h.
11655
4ec89149
PA
116562020-01-12 Pedro Alves <palves@redhat.com>
11657
11658 * bsd-kvm.c (bsd_kvm_target::close): Call exit_inferior_silent
11659 directly for the current inferior instead of
11660 discard_all_inferiors.
11661 (discard_all_inferiors): Delete.
11662
7c392d1d
TT
116632020-01-11 Tom Tromey <tom@tromey.com>
11664
11665 * tui/tui-wingeneral.c (box_win): Check cli_styling.
11666 * tui/tui-winsource.c (tui_source_window_base::refill): Use
11667 deprecated_safe_get_selected_frame.
11668
d9ebdab7
TBA
116692020-01-10 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
11670
11671 * inferior.c (print_inferior): Switch inferior before printing it.
11672
f3c469b9
PA
116732020-01-10 Aleksandar Paunovic <aleksandar.paunovic@intel.com>
11674 Pedro Alves <palves@redhat.com>
11675
11676 * progspace-and-thread.c (switch_to_program_space_and_thread):
11677 Assert there's an inferior for PSPACE. Use
11678 switch_to_inferior_no_thread to switch the inferior too.
11679 * progspace.c (program_space::~program_space): Call
11680 clear_symtab_users here, with SYMFILE_DEFER_BP_RESET.
11681 (program_space::free_all_objfiles): Don't call clear_symtab_users
11682 here.
11683 * symfile.c (symbol_file_clear): Call clear_symtab_users here.
11684
65c574f6
PA
116852020-01-10 Pedro Alves <palves@redhat.com>
11686
11687 * NEWS: Mention multi-target debugging, "info connections", and
11688 "add-inferior -no-connection".
11689
2f4fcf00
PA
116902020-01-10 Pedro Alves <palves@redhat.com>
11691
11692 * infrun.c: Include "target-connection.h".
11693 (check_multi_target_resumption): New.
11694 (proceed): Call it.
11695 * target-connection.c (make_target_connection_string): Make
11696 extern.
11697 * target-connection.h (make_target_connection_string): Declare.
11698
121b3efd
PA
116992020-01-10 Pedro Alves <palves@redhat.com>
11700
11701 * Makefile.in (COMMON_SFILES): Add target-connection.c.
11702 * inferior.c (uiout_field_connection): New function.
11703 (print_inferior): Add new "connection-id" column.
11704 (add_inferior_command): Show connection number/string of added
11705 inferior.
11706 * process-stratum-target.h
11707 (process_stratum_target::connection_string): New virtual method.
11708 (process_stratum_target::connection_number): New field.
11709 * remote.c (remote_target::connection_string): New override.
11710 * target-connection.c: New file.
11711 * target-connection.h: New file.
11712 * target.c (decref_target): Remove process_stratum targets from
11713 the connection list.
11714 (target_stack::push): Add process_stratum targets to the
11715 connection list.
11716
4f837581
PA
117172020-01-10 Pedro Alves <palves@redhat.com>
11718
11719 Revert:
11720 2016-04-12 Pedro Alves <palves@redhat.com>
11721 * serial.c (serial_open, serial_fdopen_ops, do_serial_close):
11722 Remove references to name.
11723 * serial.h (struct serial) <name>: Delete.
11724
f4ec508e
PA
117252020-01-10 Pedro Alves <palves@redhat.com>
11726
11727 * gdbarch-selftests.c (register_to_value_test): Remove "target
11728 already pushed" check.
11729
5b6d1e4f
PA
117302020-01-10 Pedro Alves <palves@redhat.com>
11731 John Baldwin <jhb@FreeBSD.org>
11732
11733 * aarch64-linux-nat.c
11734 (aarch64_linux_nat_target::thread_architecture): Adjust.
11735 * ada-tasks.c (print_ada_task_info): Adjust find_thread_ptid call.
11736 (task_command_1): Likewise.
11737 * aix-thread.c (sync_threadlists, aix_thread_target::resume)
11738 (aix_thread_target::wait, aix_thread_target::fetch_registers)
11739 (aix_thread_target::store_registers)
11740 (aix_thread_target::thread_alive): Adjust.
11741 * amd64-fbsd-tdep.c: Include "inferior.h".
11742 (amd64fbsd_get_thread_local_address): Pass down target.
11743 * amd64-linux-nat.c (ps_get_thread_area): Use ps_prochandle
11744 thread's gdbarch instead of target_gdbarch.
11745 * break-catch-sig.c (signal_catchpoint_print_it): Adjust call to
11746 get_last_target_status.
11747 * break-catch-syscall.c (print_it_catch_syscall): Likewise.
11748 * breakpoint.c (breakpoints_should_be_inserted_now): Consider all
11749 inferiors.
11750 (update_inserted_breakpoint_locations): Skip if inferiors with no
11751 execution.
11752 (update_global_location_list): When handling moribund locations,
11753 find representative inferior for location's pspace, and use thread
11754 count of its process_stratum target.
11755 * bsd-kvm.c (bsd_kvm_target_open): Pass target down.
11756 * bsd-uthread.c (bsd_uthread_target::wait): Use
11757 as_process_stratum_target and adjust thread_change_ptid and
11758 add_thread calls.
11759 (bsd_uthread_target::update_thread_list): Use
11760 as_process_stratum_target and adjust find_thread_ptid,
11761 thread_change_ptid and add_thread calls.
11762 * btrace.c (maint_btrace_packet_history_cmd): Adjust
11763 find_thread_ptid call.
11764 * corelow.c (add_to_thread_list): Adjust add_thread call.
11765 (core_target_open): Adjust add_thread_silent and thread_count
11766 calls.
11767 (core_target::pid_to_str): Adjust find_inferior_ptid call.
11768 * ctf.c (ctf_target_open): Adjust add_thread_silent call.
11769 * event-top.c (async_disconnect): Pop targets from all inferiors.
11770 * exec.c (add_target_sections): Push exec target on all inferiors
11771 sharing the program space.
11772 (remove_target_sections): Remove the exec target from all
11773 inferiors sharing the program space.
11774 (exec_on_vfork): New.
11775 * exec.h (exec_on_vfork): Declare.
11776 * fbsd-nat.c (fbsd_add_threads): Add fbsd_nat_target parameter.
11777 Pass it down.
11778 (fbsd_nat_target::update_thread_list): Adjust.
11779 (fbsd_nat_target::resume): Adjust.
11780 (fbsd_handle_debug_trap): Add fbsd_nat_target parameter. Pass it
11781 down.
11782 (fbsd_nat_target::wait, fbsd_nat_target::post_attach): Adjust.
11783 * fbsd-tdep.c (fbsd_corefile_thread): Adjust
11784 get_thread_arch_regcache call.
11785 * fork-child.c (gdb_startup_inferior): Pass target down to
11786 startup_inferior and set_executing.
11787 * gdbthread.h (struct process_stratum_target): Forward declare.
11788 (add_thread, add_thread_silent, add_thread_with_info)
11789 (in_thread_list): Add process_stratum_target parameter.
11790 (find_thread_ptid(inferior*, ptid_t)): New overload.
11791 (find_thread_ptid, thread_change_ptid): Add process_stratum_target
11792 parameter.
11793 (all_threads()): Delete overload.
11794 (all_threads, all_non_exited_threads): Add process_stratum_target
11795 parameter.
11796 (all_threads_safe): Use brace initialization.
11797 (thread_count): Add process_stratum_target parameter.
11798 (set_resumed, set_running, set_stop_requested, set_executing)
11799 (threads_are_executing, finish_thread_state): Add
11800 process_stratum_target parameter.
11801 (switch_to_thread): Use is_current_thread.
11802 * i386-fbsd-tdep.c: Include "inferior.h".
11803 (i386fbsd_get_thread_local_address): Pass down target.
11804 * i386-linux-nat.c (i386_linux_nat_target::low_resume): Adjust.
11805 * inf-child.c (inf_child_target::maybe_unpush_target): Remove
11806 have_inferiors check.
11807 * inf-ptrace.c (inf_ptrace_target::create_inferior)
11808 (inf_ptrace_target::attach): Adjust.
11809 * infcall.c (run_inferior_call): Adjust.
11810 * infcmd.c (run_command_1): Pass target to
11811 scoped_finish_thread_state.
11812 (proceed_thread_callback): Skip inferiors with no execution.
11813 (continue_command): Rename 'all_threads' local to avoid hiding
11814 'all_threads' function. Adjust get_last_target_status call.
11815 (prepare_one_step): Adjust set_running call.
11816 (signal_command): Use user_visible_resume_target. Compare thread
11817 pointers instead of inferior_ptid.
11818 (info_program_command): Adjust to pass down target.
11819 (attach_command): Mark target's 'thread_executing' flag.
11820 (stop_current_target_threads_ns): New, factored out from ...
11821 (interrupt_target_1): ... this. Switch inferior before making
11822 target calls.
11823 * inferior-iter.h
11824 (struct all_inferiors_iterator, struct all_inferiors_range)
11825 (struct all_inferiors_safe_range)
11826 (struct all_non_exited_inferiors_range): Filter on
11827 process_stratum_target too. Remove explicit.
11828 * inferior.c (inferior::inferior): Push dummy target on target
11829 stack.
11830 (find_inferior_pid, find_inferior_ptid, number_of_live_inferiors):
11831 Add process_stratum_target parameter, and pass it down.
11832 (have_live_inferiors): Adjust.
11833 (switch_to_inferior_and_push_target): New.
11834 (add_inferior_command, clone_inferior_command): Handle
11835 "-no-connection" parameter. Use
11836 switch_to_inferior_and_push_target.
11837 (_initialize_inferior): Mention "-no-connection" option in
11838 the help of "add-inferior" and "clone-inferior" commands.
11839 * inferior.h: Include "process-stratum-target.h".
11840 (interrupt_target_1): Use bool.
11841 (struct inferior) <push_target, unpush_target, target_is_pushed,
11842 find_target_beneath, top_target, process_target, target_at,
11843 m_stack>: New.
11844 (discard_all_inferiors): Delete.
11845 (find_inferior_pid, find_inferior_ptid, number_of_live_inferiors)
11846 (all_inferiors, all_non_exited_inferiors): Add
11847 process_stratum_target parameter.
11848 * infrun.c: Include "gdb_select.h" and <unordered_map>.
11849 (target_last_proc_target): New global.
11850 (follow_fork_inferior): Push target on new inferior. Pass target
11851 to add_thread_silent. Call exec_on_vfork. Handle target's
11852 reference count.
11853 (follow_fork): Adjust get_last_target_status call. Also consider
11854 target.
11855 (follow_exec): Push target on new inferior.
11856 (struct execution_control_state) <target>: New field.
11857 (user_visible_resume_target): New.
11858 (do_target_resume): Call target_async.
11859 (resume_1): Set target's threads_executing flag. Consider resume
11860 target.
11861 (commit_resume_all_targets): New.
11862 (proceed): Also consider resume target. Skip threads of inferiors
11863 with no execution. Commit resumtion in all targets.
11864 (start_remote): Pass current inferior to wait_for_inferior.
11865 (infrun_thread_stop_requested): Consider target as well. Pass
11866 thread_info pointer to clear_inline_frame_state instead of ptid.
11867 (infrun_thread_thread_exit): Consider target as well.
11868 (random_pending_event_thread): New inferior parameter. Use it.
11869 (do_target_wait): Rename to ...
11870 (do_target_wait_1): ... this. Add inferior parameter, and pass it
11871 down.
11872 (threads_are_resumed_pending_p, do_target_wait): New.
11873 (prepare_for_detach): Adjust calls.
11874 (wait_for_inferior): New inferior parameter. Handle it. Use
11875 do_target_wait_1 instead of do_target_wait.
11876 (fetch_inferior_event): Adjust. Switch to representative
11877 inferior. Pass target down.
11878 (set_last_target_status): Add process_stratum_target parameter.
11879 Save target in global.
11880 (get_last_target_status): Add process_stratum_target parameter and
11881 handle it.
11882 (nullify_last_target_wait_ptid): Clear 'target_last_proc_target'.
11883 (context_switch): Check inferior_ptid == null_ptid before calling
11884 inferior_thread().
11885 (get_inferior_stop_soon): Pass down target.
11886 (wait_one): Rename to ...
11887 (poll_one_curr_target): ... this.
11888 (struct wait_one_event): New.
11889 (wait_one): New.
11890 (stop_all_threads): Adjust.
11891 (handle_no_resumed, handle_inferior_event): Adjust to consider the
11892 event's target.
11893 (switch_back_to_stepped_thread): Also consider target.
11894 (print_stop_event): Update.
11895 (normal_stop): Update. Also consider the resume target.
11896 * infrun.h (wait_for_inferior): Remove declaration.
11897 (user_visible_resume_target): New declaration.
11898 (get_last_target_status, set_last_target_status): New
11899 process_stratum_target parameter.
11900 * inline-frame.c (clear_inline_frame_state(ptid_t)): Add
11901 process_stratum_target parameter, and use it.
11902 (clear_inline_frame_state (thread_info*)): New.
11903 * inline-frame.c (clear_inline_frame_state(ptid_t)): Add
11904 process_stratum_target parameter.
11905 (clear_inline_frame_state (thread_info*)): Declare.
11906 * linux-fork.c (delete_checkpoint_command): Pass target down to
11907 find_thread_ptid.
11908 (checkpoint_command): Adjust.
11909 * linux-nat.c (linux_nat_target::follow_fork): Switch to thread
11910 instead of just tweaking inferior_ptid.
11911 (linux_nat_switch_fork): Pass target down to thread_change_ptid.
11912 (exit_lwp): Pass target down to find_thread_ptid.
11913 (attach_proc_task_lwp_callback): Pass target down to
11914 add_thread/set_running/set_executing.
11915 (linux_nat_target::attach): Pass target down to
11916 thread_change_ptid.
11917 (get_detach_signal): Pass target down to find_thread_ptid.
11918 Consider last target status's target.
11919 (linux_resume_one_lwp_throw, resume_lwp)
11920 (linux_handle_syscall_trap, linux_handle_extended_wait, wait_lwp)
11921 (stop_wait_callback, save_stop_reason, linux_nat_filter_event)
11922 (linux_nat_wait_1, resume_stopped_resumed_lwps): Pass target down.
11923 (linux_nat_target::async_wait_fd): New.
11924 (linux_nat_stop_lwp, linux_nat_target::thread_address_space): Pass
11925 target down.
11926 * linux-nat.h (linux_nat_target::async_wait_fd): Declare.
11927 * linux-tdep.c (get_thread_arch_regcache): Pass target down.
11928 * linux-thread-db.c (struct thread_db_info::process_target): New
11929 field.
11930 (add_thread_db_info): Save target.
11931 (get_thread_db_info): New process_stratum_target parameter. Also
11932 match target.
11933 (delete_thread_db_info): New process_stratum_target parameter.
11934 Also match target.
11935 (thread_from_lwp): Adjust to pass down target.
11936 (thread_db_notice_clone): Pass down target.
11937 (check_thread_db_callback): Pass down target.
11938 (try_thread_db_load_1): Always push the thread_db target.
11939 (try_thread_db_load, record_thread): Pass target down.
11940 (thread_db_target::detach): Pass target down. Always unpush the
11941 thread_db target.
11942 (thread_db_target::wait, thread_db_target::mourn_inferior): Pass
11943 target down. Always unpush the thread_db target.
11944 (find_new_threads_callback, thread_db_find_new_threads_2)
11945 (thread_db_target::update_thread_list): Pass target down.
11946 (thread_db_target::pid_to_str): Pass current inferior down.
11947 (thread_db_target::get_thread_local_address): Pass target down.
11948 (thread_db_target::resume, maintenance_check_libthread_db): Pass
11949 target down.
11950 * nto-procfs.c (nto_procfs_target::update_thread_list): Adjust.
11951 * procfs.c (procfs_target::procfs_init_inferior): Declare.
11952 (proc_set_current_signal, do_attach, procfs_target::wait): Adjust.
11953 (procfs_init_inferior): Rename to ...
11954 (procfs_target::procfs_init_inferior): ... this and adjust.
11955 (procfs_target::create_inferior, procfs_notice_thread)
11956 (procfs_do_thread_registers): Adjust.
11957 * ppc-fbsd-tdep.c: Include "inferior.h".
11958 (ppcfbsd_get_thread_local_address): Pass down target.
11959 * proc-service.c (ps_xfer_memory): Switch current inferior and
11960 program space as well.
11961 (get_ps_regcache): Pass target down.
11962 * process-stratum-target.c
11963 (process_stratum_target::thread_address_space)
11964 (process_stratum_target::thread_architecture): Pass target down.
11965 * process-stratum-target.h
11966 (process_stratum_target::threads_executing): New field.
11967 (as_process_stratum_target): New.
11968 * ravenscar-thread.c
11969 (ravenscar_thread_target::update_inferior_ptid): Pass target down.
11970 (ravenscar_thread_target::wait, ravenscar_add_thread): Pass target
11971 down.
11972 * record-btrace.c (record_btrace_target::info_record): Adjust.
11973 (record_btrace_target::record_method)
11974 (record_btrace_target::record_is_replaying)
11975 (record_btrace_target::fetch_registers)
11976 (get_thread_current_frame_id, record_btrace_target::resume)
11977 (record_btrace_target::wait, record_btrace_target::stop): Pass
11978 target down.
11979 * record-full.c (record_full_wait_1): Switch to event thread.
11980 Pass target down.
11981 * regcache.c (regcache::regcache)
11982 (get_thread_arch_aspace_regcache, get_thread_arch_regcache): Add
11983 process_stratum_target parameter and handle it.
11984 (current_thread_target): New global.
11985 (get_thread_regcache): Add process_stratum_target parameter and
11986 handle it. Switch inferior before calling target method.
11987 (get_thread_regcache): Pass target down.
11988 (get_thread_regcache_for_ptid): Pass target down.
11989 (registers_changed_ptid): Add process_stratum_target parameter and
11990 handle it.
11991 (registers_changed_thread, registers_changed): Pass target down.
11992 (test_get_thread_arch_aspace_regcache): New.
11993 (current_regcache_test): Define a couple local test_target_ops
11994 instances and use them for testing.
11995 (readwrite_regcache): Pass process_stratum_target parameter.
11996 (cooked_read_test, cooked_write_test): Pass mock_target down.
11997 * regcache.h (get_thread_regcache, get_thread_arch_regcache)
11998 (get_thread_arch_aspace_regcache): Add process_stratum_target
11999 parameter.
12000 (regcache::target): New method.
12001 (regcache::regcache, regcache::get_thread_arch_aspace_regcache)
12002 (regcache::registers_changed_ptid): Add process_stratum_target
12003 parameter.
12004 (regcache::m_target): New field.
12005 (registers_changed_ptid): Add process_stratum_target parameter.
12006 * remote.c (remote_state::supports_vCont_probed): New field.
12007 (remote_target::async_wait_fd): New method.
12008 (remote_unpush_and_throw): Add remote_target parameter.
12009 (get_current_remote_target): Adjust.
12010 (remote_target::remote_add_inferior): Push target.
12011 (remote_target::remote_add_thread)
12012 (remote_target::remote_notice_new_inferior)
12013 (get_remote_thread_info): Pass target down.
12014 (remote_target::update_thread_list): Skip threads of inferiors
12015 bound to other targets. (remote_target::close): Don't discard
12016 inferiors. (remote_target::add_current_inferior_and_thread)
12017 (remote_target::process_initial_stop_replies)
12018 (remote_target::start_remote)
12019 (remote_target::remote_serial_quit_handler): Pass down target.
12020 (remote_target::remote_unpush_target): New remote_target
12021 parameter. Unpush the target from all inferiors.
12022 (remote_target::remote_unpush_and_throw): New remote_target
12023 parameter. Pass it down.
12024 (remote_target::open_1): Check whether the current inferior has
12025 execution instead of checking whether any inferior is live. Pass
12026 target down.
12027 (remote_target::remote_detach_1): Pass down target. Use
12028 remote_unpush_target.
12029 (extended_remote_target::attach): Pass down target.
12030 (remote_target::remote_vcont_probe): Set supports_vCont_probed.
12031 (remote_target::append_resumption): Pass down target.
12032 (remote_target::append_pending_thread_resumptions)
12033 (remote_target::remote_resume_with_hc, remote_target::resume)
12034 (remote_target::commit_resume): Pass down target.
12035 (remote_target::remote_stop_ns): Check supports_vCont_probed.
12036 (remote_target::interrupt_query)
12037 (remote_target::remove_new_fork_children)
12038 (remote_target::check_pending_events_prevent_wildcard_vcont)
12039 (remote_target::remote_parse_stop_reply)
12040 (remote_target::process_stop_reply): Pass down target.
12041 (first_remote_resumed_thread): New remote_target parameter. Pass
12042 it down.
12043 (remote_target::wait_as): Pass down target.
12044 (unpush_and_perror): New remote_target parameter. Pass it down.
12045 (remote_target::readchar, remote_target::remote_serial_write)
12046 (remote_target::getpkt_or_notif_sane_1)
12047 (remote_target::kill_new_fork_children, remote_target::kill): Pass
12048 down target.
12049 (remote_target::mourn_inferior): Pass down target. Use
12050 remote_unpush_target.
12051 (remote_target::core_of_thread)
12052 (remote_target::remote_btrace_maybe_reopen): Pass down target.
12053 (remote_target::pid_to_exec_file)
12054 (remote_target::thread_handle_to_thread_info): Pass down target.
12055 (remote_target::async_wait_fd): New.
12056 * riscv-fbsd-tdep.c: Include "inferior.h".
12057 (riscv_fbsd_get_thread_local_address): Pass down target.
12058 * sol2-tdep.c (sol2_core_pid_to_str): Pass down target.
12059 * sol-thread.c (sol_thread_target::wait, ps_lgetregs, ps_lsetregs)
12060 (ps_lgetfpregs, ps_lsetfpregs, sol_update_thread_list_callback):
12061 Adjust.
12062 * solib-spu.c (spu_skip_standalone_loader): Pass down target.
12063 * solib-svr4.c (enable_break): Pass down target.
12064 * spu-multiarch.c (parse_spufs_run): Pass down target.
12065 * spu-tdep.c (spu2ppu_sniffer): Pass down target.
12066 * target-delegates.c: Regenerate.
12067 * target.c (g_target_stack): Delete.
12068 (current_top_target): Return the current inferior's top target.
12069 (target_has_execution_1): Refer to the passed-in inferior's top
12070 target.
12071 (target_supports_terminal_ours): Check whether the initial
12072 inferior was already created.
12073 (decref_target): New.
12074 (target_stack::push): Incref/decref the target.
12075 (push_target, push_target, unpush_target): Adjust.
12076 (target_stack::unpush): Defref target.
12077 (target_is_pushed): Return bool. Adjust to refer to the current
12078 inferior's target stack.
12079 (dispose_inferior): Delete, and inline parts ...
12080 (target_preopen): ... here. Only dispose of the current inferior.
12081 (target_detach): Hold strong target reference while detaching.
12082 Pass target down.
12083 (target_thread_name): Add assertion.
12084 (target_resume): Pass down target.
12085 (target_ops::beneath, find_target_at): Adjust to refer to the
12086 current inferior's target stack.
12087 (get_dummy_target): New.
12088 (target_pass_ctrlc): Pass the Ctrl-C to the first inferior that
12089 has a thread running.
12090 (initialize_targets): Rename to ...
12091 (_initialize_target): ... this.
12092 * target.h: Include "gdbsupport/refcounted-object.h".
12093 (struct target_ops): Inherit refcounted_object.
12094 (target_ops::shortname, target_ops::longname): Make const.
12095 (target_ops::async_wait_fd): New method.
12096 (decref_target): Declare.
12097 (struct target_ops_ref_policy): New.
12098 (target_ops_ref): New typedef.
12099 (get_dummy_target): Declare function.
12100 (target_is_pushed): Return bool.
12101 * thread-iter.c (all_matching_threads_iterator::m_inf_matches)
12102 (all_matching_threads_iterator::all_matching_threads_iterator):
12103 Handle filter target.
12104 * thread-iter.h (struct all_matching_threads_iterator, struct
12105 all_matching_threads_range, class all_non_exited_threads_range):
12106 Filter by target too. Remove explicit.
12107 * thread.c (threads_executing): Delete.
12108 (inferior_thread): Pass down current inferior.
12109 (clear_thread_inferior_resources): Pass down thread pointer
12110 instead of ptid_t.
12111 (add_thread_silent, add_thread_with_info, add_thread): Add
12112 process_stratum_target parameter. Use it for thread and inferior
12113 searches.
12114 (is_current_thread): New.
12115 (thread_info::deletable): Use it.
12116 (find_thread_ptid, thread_count, in_thread_list)
12117 (thread_change_ptid, set_resumed, set_running): New
12118 process_stratum_target parameter. Pass it down.
12119 (set_executing): New process_stratum_target parameter. Pass it
12120 down. Adjust reference to 'threads_executing'.
12121 (threads_are_executing): New process_stratum_target parameter.
12122 Adjust reference to 'threads_executing'.
12123 (set_stop_requested, finish_thread_state): New
12124 process_stratum_target parameter. Pass it down.
12125 (switch_to_thread): Also match inferior.
12126 (switch_to_thread): New process_stratum_target parameter. Pass it
12127 down.
12128 (update_threads_executing): Reimplement.
12129 * top.c (quit_force): Pop targets from all inferior.
12130 (gdb_init): Don't call initialize_targets.
12131 * windows-nat.c (windows_nat_target) <get_windows_debug_event>:
12132 Declare.
12133 (windows_add_thread, windows_delete_thread): Adjust.
12134 (get_windows_debug_event): Rename to ...
12135 (windows_nat_target::get_windows_debug_event): ... this. Adjust.
12136 * tracefile-tfile.c (tfile_target_open): Pass down target.
12137 * gdbsupport/common-gdbthread.h (struct process_stratum_target):
12138 Forward declare.
12139 (switch_to_thread): Add process_stratum_target parameter.
12140 * mi/mi-interp.c (mi_on_resume_1): Add process_stratum_target
12141 parameter. Use it.
12142 (mi_on_resume): Pass target down.
12143 * nat/fork-inferior.c (startup_inferior): Add
12144 process_stratum_target parameter. Pass it down.
12145 * nat/fork-inferior.h (startup_inferior): Add
12146 process_stratum_target parameter.
12147 * python/py-threadevent.c (py_get_event_thread): Pass target down.
12148
75c6c844
PA
121492020-01-10 Pedro Alves <palves@redhat.com>
12150
12151 * remote.c (remote_target::start_remote): Don't set inferior_ptid
12152 directly. Instead find the first thread in the thread list and
12153 use switch_to_thread.
12154
78f2c40a
PA
121552020-01-10 Pedro Alves <palves@redhat.com>
12156
12157 * remote.c (remote_target::remote_add_inferior): Don't bind a
12158 process to the current inferior if the current inferior is already
12159 bound to a process.
12160
e7af6c70
TBA
121612020-01-10 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
12162 Pedro Alves <palves@redhat.com>
12163
12164 * remote.c (remote_target::remote_parse_stop_reply) <W/X packets>:
12165 If no process is specified, return null_ptid instead of
12166 inferior_ptid.
12167 (remote_target::wait_as): Handle TARGET_WAITKIND_EXITED /
12168 TARGET_WAITKIND_SIGNALLED with no pid.
12169
31ba933e
PA
121702020-01-10 Pedro Alves <palves@redhat.com>
12171
12172 * remote.c (first_remote_resumed_thread): New.
12173 (remote_target::wait_as): Use it as default event_ptid instead of
12174 inferior_ptid.
12175
735fc2ca
PA
121762020-01-10 Pedro Alves <palves@redhat.com>
12177
12178 * infrun.c (handle_no_resumed): Use all_non_exited_inferiors.
12179
c17e02e1
PA
121802020-01-10 Pedro Alves <palves@redhat.com>
12181
12182 * tracefile-tfile.c (tfile_target::close): Assert that trace_fd is
12183 not -1.
12184
ab1ddbcf
PA
121852020-01-10 Pedro Alves <palves@redhat.com>
12186
12187 * break-catch-sig.c (signal_catchpoint_print_it): Don't pass a
12188 ptid to get_last_target_status.
12189 * break-catch-syscall.c (print_it_catch_syscall): Don't pass a
12190 ptid to get_last_target_status.
12191 * infcmd.c (continue_command): Don't pass a target_waitstatus to
12192 get_last_target_status.
12193 (info_program_command): Don't pass a target_waitstatus to
12194 get_last_target_status.
12195 * infrun.c (init_wait_for_inferior): Use
12196 nullify_last_target_wait_ptid.
12197 (get_last_target_status): Handle nullptr arguments.
12198 (nullify_last_target_wait_ptid): Clear target_last_waitstatus.
12199 (print_stop_event): Don't pass a ptid to get_last_target_status.
12200 (normal_stop): Don't pass a ptid to get_last_target_status.
12201 * infrun.h (get_last_target_status, set_last_target_status): Move
12202 comments here and update.
12203 (nullify_last_target_wait_ptid): Declare.
12204 * linux-fork.c (fork_load_infrun_state): Remove local extern
12205 declaration of nullify_last_target_wait_ptid.
12206 * linux-nat.c (get_detach_signal): Don't pass a target_waitstatus
12207 to get_last_target_status.
12208
f3f8ece4
PA
122092020-01-10 Pedro Alves <palves@redhat.com>
12210
12211 * gdbthread.h (scoped_restore_current_thread)
12212 <dont_restore, restore, m_dont_restore>: Declare.
12213 * thread.c (thread_alive): Add assertion. Return bool.
12214 (switch_to_thread_if_alive): New.
12215 (prune_threads): Switch inferior/thread.
12216 (print_thread_info_1): Switch thread before calling target methods.
12217 (scoped_restore_current_thread::restore): New, factored out from
12218 ...
12219 (scoped_restore_current_thread::~scoped_restore_current_thread):
12220 ... this.
12221 (scoped_restore_current_thread::scoped_restore_current_thread):
12222 Add assertion.
12223 (thread_apply_all_command, thread_select): Use
12224 switch_to_thread_if_alive.
12225 * infrun.c (proceed, restart_threads, handle_signal_stop)
12226 (switch_back_to_stepped_thread): Switch current thread before
12227 calling target methods.
12228
db2d40f7
PA
122292020-01-10 Pedro Alves <palves@redhat.com>
12230
12231 * inferior.c (switch_to_inferior_no_thread): New function,
12232 factored out from ...
12233 (inferior_command): ... here.
12234 * inferior.h (switch_to_inferior_no_thread): Declare.
12235 * mi/mi-main.c (run_one_inferior): Use
12236 switch_to_inferior_no_thread.
12237
bd420a2d
PA
122382020-01-10 Pedro Alves <palves@redhat.com>
12239
12240 * infcmd.c (kill_command): Remove dead code.
12241
ddf5db90
PA
122422020-01-10 Pedro Alves <palves@redhat.com>
12243
12244 * remote.c (remote_target::mourn_inferior): No longer check
12245 whether the target is running.
12246
5018ce90
PA
122472020-01-10 Pedro Alves <palves@redhat.com>
12248
12249 * corelow.c (core_target::has_execution): Change parameter type to
12250 inferior pointer.
12251 * inferior.c (number_of_live_inferiors): Use
12252 inferior::has_execution instead of target_has_execution_1.
12253 * inferior.h (inferior::has_execution): New.
12254 * linux-thread-db.c (thread_db_target::update_thread_list): Use
12255 inferior::has_execution instead of target_has_execution_1.
12256 * process-stratum-target.c
12257 (process_stratum_target::has_execution): Change parameter type to
12258 inferior pointer. Check the inferior's PID instead of
12259 inferior_ptid.
12260 * process-stratum-target.h
12261 (process_stratum_target::has_execution): Change parameter type to
12262 inferior pointer.
12263 * record-full.c (record_full_core_target::has_execution): Change
12264 parameter type to inferior pointer.
12265 * target.c (target_has_execution_1): Change parameter type to
12266 inferior pointer.
12267 (target_has_execution_current): Adjust.
12268 * target.h (target_ops::has_execution): Change parameter type to
12269 inferior pointer.
12270 (target_has_execution_1): Change parameter type to inferior
12271 pointer. Change return type to bool.
12272 * tracefile.h (tracefile_target::has_execution): Change parameter
12273 type to inferior pointer.
12274
74375d18
PA
122752020-01-10 Pedro Alves <palves@redhat.com>
12276
12277 * exceptions.c (print_flush): Remove current_top_target() check.
12278
acdf84a6
PA
122792020-01-10 Pedro Alves <palves@redhat.com>
12280
12281 * remote.c (show_remote_exec_file): Show the current inferior's
12282 exec-file instead of the command variable's value.
12283
ec506636
PA
122842020-01-10 Pedro Alves <palves@redhat.com>
12285
12286 * record-full.c (record_full_resume_ptid): New global.
12287 (record_full_target::resume): Set it.
12288 (record_full_wait_1): Use record_full_resume_ptid instead of
12289 inferior_ptid.
12290
873657b9
PA
122912020-01-10 Pedro Alves <palves@redhat.com>
12292
12293 * gdbthread.h (scoped_restore_current_thread)
12294 <dont_restore, restore, m_dont_restore>: Declare.
12295 * thread.c (thread_alive): Add assertion. Return bool.
12296 (switch_to_thread_if_alive): New.
12297 (prune_threads): Switch inferior/thread.
12298 (print_thread_info_1): Switch thread before calling target methods.
12299 (scoped_restore_current_thread::restore): New, factored out from
12300 ...
12301 (scoped_restore_current_thread::~scoped_restore_current_thread):
12302 ... this.
12303 (scoped_restore_current_thread::scoped_restore_current_thread):
12304 Add assertion.
12305 (thread_apply_all_command, thread_select): Use
12306 switch_to_thread_if_alive.
12307
7f0ae84c
GB
123082020-01-10 George Barrett <bob@bob131.so>
12309
12310 * stap-probe.c (stap_modify_semaphore): Don't check for null
12311 semaphores.
12312 (stap_probe::set_semaphore, stap_probe::clear_semaphore): Check
12313 for null semaphores.
12314
f5a7c406
AB
123152020-01-09 Andrew Burgess <andrew.burgess@embecosm.com>
12316
12317 * tui/tui-source.c (tui_source_window::do_scroll_vertical): Update
12318 all source windows, and maintain horizontal scroll status while
12319 doing so.
12320
9ae6bf64
TT
123212020-01-09 Tom Tromey <tom@tromey.com>
12322
12323 PR tui/18932:
12324 * tui/tui-source.c (tui_source_window::do_scroll_vertical): Call
12325 update_source_window, not print_source_lines.
12326
b2efe70c
AB
123272020-01-09 Andrew Burgess <andrew.burgess@embecosm.com>
12328
12329 * tui/tui.c (tui_enable): Register tui hooks after calling
12330 tui_display_main.
12331
5f23a082
CB
123322020-01-09 Christian Biesinger <cbiesinger@google.com>
12333
12334 * gdbsupport/common-defs.h: Don't define _FORTIFY_SOURCE on MinGW.
12335
3061113b
SM
123362020-01-08 Simon Marchi <simon.marchi@efficios.com>
12337
12338 * thread.c (print_thread_info_1): Fix indentation.
12339
57d75002
CB
123402020-01-09 Christian Biesinger <cbiesinger@google.com>
12341
12342 * symtab.c (general_symbol_info::compute_and_set_names): Move the
12343 unique_xmalloc_ptr outside the if to always free the demangled name.
12344
6a053cb1
TT
123452020-01-08 Tom Tromey <tromey@adacore.com>
12346
12347 * xcoffread.c (enter_line_range, read_xcoff_symtab)
12348 (process_xcoff_symbol, xcoff_symfile_offsets): Update.
12349 * symtab.h (MSYMBOL_VALUE_ADDRESS): Update.
12350 (struct section_offsets, ANOFFSET, SIZEOF_N_SECTION_OFFSETS):
12351 Remove.
12352 (section_offsets): New typedef.
12353 * symtab.c (fixup_section, get_msymbol_address): Update.
12354 * symmisc.c (dump_msymbols): Update.
12355 * symfile.h (relative_addr_info_to_section_offsets)
12356 (symfile_map_offsets_to_segments): Update.
12357 * symfile.c (build_section_addr_info_from_objfile)
12358 (init_objfile_sect_indices): Update.
12359 (struct place_section_arg): Change type of "offsets".
12360 (place_section): Update.
12361 (relative_addr_info_to_section_offsets): Change type of
12362 "section_offsets". Remove "num_sections" parameter.
12363 (default_symfile_offsets, syms_from_objfile_1)
12364 (set_objfile_default_section_offset): Update.
12365 (reread_symbols): No need to preserve section offsets by hand.
12366 (symfile_map_offsets_to_segments): Change type of "offsets".
12367 * stap-probe.c (relocate_address): Update.
12368 * stabsread.h (process_one_symbol): Update.
12369 * solib-target.c (struct lm_info_target) <offsets>: Change type.
12370 (solib_target_relocate_section_addresses): Update.
12371 * solib-svr4.c (enable_break, svr4_relocate_main_executable):
12372 Update.
12373 * solib-frv.c (frv_relocate_main_executable): Update.
12374 * solib-dsbt.c (dsbt_relocate_main_executable): Update.
12375 * solib-aix.c (solib_aix_get_section_offsets): Change return
12376 type.
12377 (solib_aix_solib_create_inferior_hook): Update.
12378 * remote.c (remote_target::get_offsets): Update.
12379 * psymtab.c (find_pc_sect_psymtab): Update.
12380 * psympriv.h (struct partial_symbol) <address, text_low,
12381 text_high>: Update.
12382 * objfiles.h (obj_section_offset): Update.
12383 (struct objfile) <section_offsets>: Change type.
12384 <num_sections>: Remove.
12385 (objfile_relocate): Update.
12386 * objfiles.c (entry_point_address_query): Update
12387 (relocate_one_symbol): Change type of "section_offsets".
12388 (objfile_relocate1, objfile_relocate1): Change type of
12389 "new_offsets".
12390 (objfile_rebase1): Update.
12391 * mipsread.c (mipscoff_symfile_read): Update.
12392 (read_alphacoff_dynamic_symtab): Remove "section_offsets"
12393 parameter.
12394 * mdebugread.c (parse_symbol): Change type of "section_offsets".
12395 (parse_external, psymtab_to_symtab_1): Update.
12396 * machoread.c (macho_symfile_offsets): Update.
12397 * ia64-tdep.c (ia64_find_unwind_table): Update.
12398 * hppa-tdep.c (read_unwind_info): Update.
12399 * hppa-bsd-tdep.c (hppabsd_find_global_pointer): Update.
12400 * dwarf2read.c (create_addrmap_from_index)
12401 (create_addrmap_from_aranges, dw2_find_pc_sect_compunit_symtab)
12402 (process_psymtab_comp_unit_reader, add_partial_symbol)
12403 (add_partial_subprogram, process_full_comp_unit)
12404 (read_file_scope, read_func_scope, read_lexical_block_scope)
12405 (read_call_site_scope, dwarf2_rnglists_process)
12406 (dwarf2_ranges_process, dwarf2_ranges_read)
12407 (dwarf_decode_lines_1, var_decode_location, new_symbol)
12408 (dwarf2_fetch_die_loc_sect_off, dwarf2_per_cu_text_offset):
12409 Update.
12410 * dwarf2-frame.c (execute_cfa_program, dwarf2_frame_find_fde):
12411 Update.
12412 * dtrace-probe.c (dtrace_probe::get_relocated_address): Update.
12413 * dbxread.c (read_dbx_symtab, read_ofile_symtab): Update.
12414 (process_one_symbol): Change type of "section_offsets".
12415 * ctfread.c (get_objfile_text_range): Update.
12416 * coffread.c (coff_symtab_read, enter_linenos)
12417 (process_coff_symbol): Update.
12418 * coff-pe-read.c (add_pe_forwarded_sym): Update.
12419 * amd64-windows-tdep.c (amd64_windows_find_unwind_info): Update.
12420
456e800a
TT
124212020-01-08 Tom Tromey <tromey@adacore.com>
12422
12423 * dwarf2read.c (parse_macro_definition): Use std::string.
12424 (parse_macro_definition): Likewise.
12425
6dfa2fc2
TT
124262020-01-08 Tom Tromey <tromey@adacore.com>
12427
12428 * dwarf2read.c (abbrev_table_read_table): Use std::vector.
12429 (ATTR_ALLOC_CHUNK): Remove.
12430
421d1616
TT
124312020-01-08 Tom Tromey <tromey@adacore.com>
12432
12433 * dwarf2read.c (fixup_go_packaging): Use unique_xmalloc_ptr.
12434
43816ebc
TT
124352020-01-08 Tom Tromey <tromey@adacore.com>
12436
12437 * dwarf2read.c (add_partial_symbol): Use unique_xmalloc_ptr.
12438 (dwarf2_compute_name, open_dwo_file): Likewise.
12439 (process_enumeration_scope): Use std::vector.
12440 (guess_partial_die_structure_name): Use unique_xmalloc_ptr.
12441 (partial_die_info::fixup, dwarf2_start_subfile)
12442 (guess_full_die_structure_name, dwarf2_name): Likewise.
12443 (determine_prefix): Update.
12444 (guess_full_die_structure_name): Make return type const.
12445 (partial_die_full_name): Return unique_xmalloc_ptr.
12446 (DW_FIELD_ALLOC_CHUNK): Remove.
12447
4212d509
TT
124482020-01-07 Tom Tromey <tromey@adacore.com>
12449
12450 PR build/24937:
12451 * stap-probe.c (class stap_static_probe_ops): Add constructor.
12452
06a6207a
JT
124532020-01-02 Jon Turney <jon.turney@dronecode.org.uk>
12454
12455 * cli/cli-style.c: Set cli_styling to 'true' in the Cygwin build.
12456
153d79c4
AB
124572020-01-06 Andrew Burgess <andrew.burgess@embecosm.com>
12458
12459 * stack.c (print_frame_info): Move disassemble_next_line code
12460 inside source_print block.
12461
66182876
EZ
124622020-01-06 Eli Zaretskii <eliz@gnu.org>
12463
12464 * gdbsupport/gdb_wait.c: Include <signal.h> instead of
12465 gdb/signals.h, as we are now using native signal symbols.
12466
cbfa8581
SV
124672020-01-06 Shahab Vahedi <shahab@synopsys.com>
12468
12469 * tui/tui-disasm.c (tui_disasm_window::addr_is_displayed): Avoid
12470 overflow by an early check of content vs threshold.
aac66a4c 12471 * tui/tui-source.c (tui_source_window::line_is_displayed):
cbfa8581
SV
12472 Likewise.
12473
3f602821
EZ
124742020-01-06 Eli Zaretskii <eliz@gnu.org>
12475
12476 * NEWS: Mention the recent fix of $_exitsignal on MS-Windows.
12477
a08c904d
JT
124782020-01-02 Jon Turney <jon.turney@dronecode.org.uk>
12479
12480 * coff-pe-read.c (read_pe_exported_syms): Don't try to read the
12481 export table if no section contains it's RVA.
12482
89a65580
EZ
124832020-01-06 Eli Zaretskii <eliz@gnu.org>
12484
12485 * windows-tdep.c: Fix a typo in WINDOWS_SIGABRT.
12486
8b7fcda2
HD
124872020-01-06 Hannes Domani <ssbssa@yahoo.de>
12488
12489 * source.c (print_source_lines_base): Set last_line_listed.
12490
a61b4f69
SV
124912020-01-06 Shahab Vahedi <shahab@synopsys.com>
12492
12493 * tui/tui-disasm.c: Remove trailing spaces.
12494
559e7e50
EZ
124952020-01-06 Eli Zaretskii <eliz@gnu.org>
12496 Pedro Alves <palves@redhat.com>
12497
12498 * Makefile.in (COMMON_SFILES): Add gdbsupport/gdb_wait.c.
12499 * windows-tdep.c: New enumeration of WINDOWS_SIG* signals.
12500 (windows_gdb_signal_to_target): New function, uses the above
12501 enumeration to convert GDB internal signal codes to equivalent
12502 Windows codes.
12503 (windows_init_abi): Call set_gdbarch_gdb_signal_to_target.
12504 * windows-nat.c: Include "gdb_wait.h".
12505 (get_windows_debug_event): Extract the fatal exception from the
12506 exit status and convert to the equivalent Posix signal number.
12507 * cli/cli-cmds.c (exit_status_set_internal_vars): Account for the
12508 possibility that WTERMSIG returns GDB_SIGNAL_UNKNOWN.
12509 * gdbsupport/gdb_wait.c: New file, implements
12510 windows_status_to_termsig.
12511 * gdbsupport/gdb_wait.h (WIFEXITED, WIFSIGNALED, WEXITSTATUS)
12512 (WTERMSIG) [__MINGW32__]: Separate definitions for MinGW.
12513
f2302a34
AB
125142020-01-05 Andrew Burgess <andrew.burgess@embecosm.com>
12515
12516 * tui/tui-layout.c (tui_add_win_to_layout): Use tui_set_layout not
12517 show_layout.
12518
6a5206eb
LM
125192020-01-05 Luis Machado <luis.machado@linaro.org>
12520
12521 * aarch64-linux-nat.c
12522 (aarch64_linux_nat_target::thread_architecture): Use bfd_arch_aarch64
12523 and bfd_mach_aarch64.
12524
6ec1d75e
PW
125252020-01-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
12526
12527 * ui-file.c (stdio_file::can_emit_style_escape)
12528 (tee_file::can_emit_style_escape): Ensure style is used also on
12529 gdb_stderr when gdb_stderr is a tty supporting styling, similarly
12530 to gdb_stdout.
12531 * main.c (set_gdb_data_directory): Use file style to output the
12532 warning that the given pathname is not a directory.
12533 * top.c (show_history_filename, gdb_safe_append_history)
12534 (show_gdb_datadir): Use file style.
12535
44f81a76
HD
125362020-01-03 Hannes Domani <ssbssa@yahoo.de>
12537
12538 * solib-target.c (struct lm_info_target):
12539 Change offsets to be a unique_xmalloc_ptr.
12540 (solib_target_relocate_section_addresses): Update.
12541
25057eb0
HD
125422020-01-03 Hannes Domani <ssbssa@yahoo.de>
12543
12544 * windows-nat.c (windows_clear_solib): Free so_list linked list.
12545
6e2118f5
BE
125462020-01-03 Bernd Edlinger <bernd.edlinger@hotmail.de>
12547
12548 * MAINTAINERS (Write After Approval): Add myself.
12549
8133c7dc
LM
125502020-01-02 Luis Machado <luis.machado@linaro.org>
12551
12552 * proc-service.c (get_ps_regcache): Remove reference to obsolete
12553 Cell BE architecture.
12554 * target.h (struct target_ops) <thread_architecture>: Likewise.
12555
48189bec
HD
125562020-01-01 Hannes Domani <ssbssa@yahoo.de>
12557
12558 * Makefile.in: Use INSTALL_PROGRAM_ENV.
12559
ead1063b
HD
125602020-01-01 Hannes Domani <ssbssa@yahoo.de>
12561
12562 * MAINTAINERS (Write After Approval): Add myself.
12563
e5d78223
JB
125642020-01-01 Joel Brobecker <brobecker@adacore.com>
12565
12566 * gdbarch.sh: Update copyright year range of generated files.
12567
b811d2c2
JB
125682020-01-01 Joel Brobecker <brobecker@adacore.com>
12569
12570 Update copyright year range in all GDB files.
12571
5f4def5c
JB
125722020-01-01 Joel Brobecker <brobecker@adacore.com>
12573
12574 * copyright.py: Convert to Python 3.
12575
51fd4002
JB
125762020-01-01 Joel Brobecker <brobecker@adacore.com>
12577
12578 * copyright.py: Adapt after move of gnulib directory from gdb
12579 directory to toplevel directory.
12580
5fb651f2
JB
125812020-01-01 Joel Brobecker <brobecker@adacore.com>
12582
12583 * copyright.py (main): Exit if run from the wrong directory.
12584
5dd8bf88
JB
125852020-01-01 Joel Brobecker <brobecker@adacore.com>
12586
12587 * top.c (print_gdb_version): Change copyright year to 2020.
12588
9f71dacb 125892020-01-01 Joel Brobecker <brobecker@adacore.com>
3d34df0a 12590
9f71dacb 12591 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2019.
3d34df0a 12592
9f71dacb 12593For older changes see ChangeLog-2019.
c906108c
SS
12594\f
12595Local Variables:
12596mode: change-log
12597left-margin: 8
12598fill-column: 74
12599version-control: never
57da7796 12600coding: utf-8
c906108c 12601End: