gdb: add type::is_gnu_ifunc / type::set_is_gnu_ifunc
[deliverable/binutils-gdb.git] / gdb / ChangeLog
1 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
2
3 * gdbtypes.h (struct type) <is_gnu_ifunc, set_is_gnu_ifunc>: New methods.
4 (TYPE_GNU_IFUNC): Use type::is_gnu_ifunc, change all write call sites to
5 use type::set_is_gnu_ifunc.
6
7 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
8
9 * gdbtypes.h (TYPE_STUB_SUPPORTED): Remove, replace all
10 uses with type::stub_is_supported.
11
12 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
13
14 * gdbtypes.h (struct type) <stub_is_supported, set_stub_is_supported>: New methods.
15 (TYPE_STUB_SUPPORTED): Use type::stub_is_supported, change all write call sites to
16 use type::set_stub_is_supported.
17
18 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
19
20 * gdbtypes.h (TYPE_VECTOR): Remove, replace all
21 uses with type::is_vector.
22
23 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
24
25 * gdbtypes.h (struct type) <is_vector, set_is_vector>: New methods.
26 (TYPE_VECTOR): Use type::is_vector, change all write call sites to
27 use type::set_is_vector.
28
29 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
30
31 * gdbtypes.h (TYPE_VARARGS): Remove, replace all
32 uses with type::has_varargs.
33
34 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
35
36 * gdbtypes.h (struct type) <has_varargs, set_has_varargs>: New methods.
37 (TYPE_VARARGS): Use type::has_varargs, change all write call sites to
38 use type::set_has_varargs.
39
40 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
41
42 * gdbtypes.h (TYPE_PROTOTYPED): Remove, replace all
43 uses with type::is_prototyped.
44
45 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
46
47 * gdbtypes.h (struct type) <is_prototyped, set_is_prototyped>:
48 New methods.
49 (TYPE_PROTOTYPED): Use type::is_prototyped, change all write
50 call sites to use type::set_is_prototyped.
51
52 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
53
54 * gdbtypes.h (TYPE_TARGET_STUB): Remove, replace all
55 uses with type::target_is_stub.
56
57 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
58
59 * gdbtypes.h (struct type) <target_is_stub, set_target_is_stub>:
60 New methods.
61 (TYPE_TARGET_STUB): Use type::is_stub, change all write call
62 sites to use type::set_target_is_stub.
63
64 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
65
66 * gdbtypes.h (TYPE_STUB): Remove, replace all
67 uses with type::is_stub.
68
69 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
70
71 * gdbtypes.h (struct type) <is_stub, set_is_stub>: New methods.
72 (TYPE_STUB): Use type::is_stub, change all write call sites to
73 use type::set_is_stub.
74
75 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
76
77 * gdbtypes.h (TYPE_NOSIGN): Remove, replace all uses with
78 type::has_no_signedness.
79
80 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
81
82 * gdbtypes.h (struct type) <has_no_signedness,
83 set_has_no_signedness>: New methods.
84 (TYPE_NOSIGN): Use type::has_no_signedness, change all write
85 call sites to use type::set_has_no_signedness.
86
87 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
88
89 * gdbtypes.h (TYPE_UNSIGNED): Remove, replace all uses with
90 type::is_unsigned.
91
92 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
93
94 * gdbtypes.h (struct type) <is_unsigned, set_is_unsigned>: New
95 methods.
96 (TYPE_UNSIGNED): Use type::is_unsigned. Change all write call
97 sites to use type::set_is_unsigned.
98
99 2020-09-14 Fredrik Hederstierna <fredrik.hederstierna@verisure.com>
100 Adam Renquinha <arenquinha@cimeq.qc.ca>
101
102 * arm-tdep.c (arm_m_exception_cache): Try use correct stack
103 pointer and stack frame offset when unwinding.
104
105 2020-09-13 Pedro Alves <pedro@palves.net>
106
107 * NEWS: Document "-break-insert --qualified".
108 * mi/mi-cmd-break.c (mi_cmd_break_insert_1): Handle "--qualified".
109
110 2020-09-13 Pedro Alves <pedro@palves.net>
111
112 * linespec.c (classify_mtype, compare_msyms): Delete.
113 (search_minsyms_for_name): Remove classification logic. Instead
114 filter out trampoline symbols if we also found an external
115 function of the same name.
116
117 2020-09-13 Joel Brobecker <brobecker@adacore.com>
118
119 * NEWS: Create a new section for the next release branch.
120 Rename the section of the current branch, now that it has
121 been cut.
122
123 2020-09-13 Joel Brobecker <brobecker@adacore.com>
124
125 GDB 10 branch created (8087c3fa8b5d695e3e29e69d70d0b35ec902ac59):
126 * version.in: Bump version to 11.0.50.DATE-git.
127
128 2020-09-12 Joel Brobecker <brobecker@adacore.com>
129
130 * infrun.c (namespace selftests): Only define #if GDB_SELF_TEST.
131
132 2020-09-11 Moritz Riesterer <moritz.riesterer@intel.com>
133 Felix Willgerodt <Felix.Willgerodt@intel.com>
134
135 * gdbarch.sh: Added bfloat16 type.
136 * gdbarch.c: Regenerated.
137 * gdbarch.h: Regenerated.
138 * gdbtypes.c (floatformats_bfloat16): New struct.
139 (gdbtypes_post_init): Add builtin_bfloat16.
140 * gdbtypes.h (struct builtin_type) <builtin_bfloat16>: New member.
141 (floatformats_bfloat16): New struct.
142 * i386-tdep.c (i386_zmm_type): Add field "v32_bfloat16"
143 (i386_ymm_type): Add field "v16_bfloat16"
144 (i386_gdbarch_init): Add set_gdbarch_bfloat16_format.
145 * target-descriptions.c (make_gdb_type): Add case TDESC_TYPE_BFLOAT16.
146 * gdbsupport/tdesc.cc (tdesc_predefined_types): New member bfloat16.
147 * gdbsupport/tdesc.h (tdesc_type_kind): New member TDESC_TYPE_BFLOAT16.
148 * features/i386/64bit-avx512.xml: Add bfloat16 type.
149 * features/i386/64bit-avx512.c: Regenerated.
150 * features/i386/64bit-sse.xml: Add bfloat16 type.
151 * features/i386/64bit-sse.c: Regenerated.
152
153 2020-09-11 Felix Willgerodt <felix.willgerodt@intel.com>
154
155 * i386-tdep.c (i386_zmm_type): Fix field names.
156 (i386_ymm_type): Fix field names.
157
158 2020-09-11 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
159
160 * breakpoint.c: Fix typo in the help message of the
161 "set breakpoint condition-evaluation" command.
162
163 2020-09-10 Kamil Rytarowski <n54@gmx.com>
164
165 * nbsd-nat.c: Include "nat/netbsd-nat.h".
166 * (nbsd_nat_target::pid_to_exec_file)
167 (nbsd_nat_target::thread_alive, nbsd_nat_target::thread_name)
168 (nbsd_nat_target::post_startup_inferior)
169 (nbsd_nat_target::post_attach, nbsd_nat_target::xfer_partial)
170 (nbsd_add_threads): Switch local code to common gdb/nat functions.
171 * (nbsd_pid_to_cmdline): Call sysctl from the global namespace.
172 * (nbsd_thread_lister): Remove.
173
174 2020-09-10 Kamil Rytarowski <n54@gmx.com>
175
176 * fork-inferior.c (startup_inferior): Avoid double free.
177
178 2020-09-10 Kamil Rytarowski <n54@gmx.com>
179
180 * netbsd-nat.h (netbsd_nat::qxfer_siginfo): Add.
181 * netbsd-nat.c (netbsd_nat::qxfer_siginfo): Likewise.
182
183 2020-09-10 Kamil Rytarowski <n54@gmx.com>
184
185 * netbsd-nat.h (netbsd_nat::enable_proc_events): Add.
186 * netbsd-nat.c: Include <sys/ptrace.h>.
187 * (netbsd_nat::enable_proc_events): Add.
188
189 2020-09-10 Kamil Rytarowski <n54@gmx.com>
190
191 * netbsd-nat.h: Include "gdbsupport/function-view.h".
192 * (netbsd_nat::thread_alive, netbsd_nat::thread_name)
193 (netbsd_nat::for_each_thread): Add.
194 * netbsd-nat.c: Include "gdbsupport/common-defs.h" and
195 "gdbsupport/common-debug.h".
196 * (netbsd_nat::netbsd_thread_lister)
197 (netbsd_nat::thread_alive, netbsd_nat::thread_name)
198 (netbsd_nat::for_each_thread): Add.
199
200 2020-09-10 Kamil Rytarowski <n54@gmx.com>
201
202 * netbsd-nat.h: Include <unistd.h>.
203 * (netbsd_nat::pid_to_exec_file): Add.
204 * netbsd-nat.c: Include <sys/types.h> and <sys/sysctl.h>.
205 * (netbsd_nat::pid_to_exec_file) Add.
206
207 2020-09-10 Kamil Rytarowski <n54@gmx.com>
208
209 * configure.nat (NATDEPFILES): Add nat/netbsd-nat.o when needed.
210
211 2020-09-10 Kamil Rytarowski <n54@gmx.com>
212
213 * netbsd-nat.h: New file.
214 * netbsd-nat.c: Likewise.
215
216 2020-09-09 Tom Tromey <tromey@adacore.com>
217
218 * ada-lang.c (remove_extra_symbols): Do not increment when
219 removing an element
220
221 2020-09-08 Tom Tromey <tromey@adacore.com>
222
223 * gdb_bfd.c (gdb_bfd_open): Call bfd_fopen when fstat fails.
224
225 2020-09-08 Tom Tromey <tromey@adacore.com>
226
227 PR win32/25302:
228 * gdb_bfd.c (gdb_bfd_data): Add "st" parameter.
229 (gdb_bfd_init_data): New function.
230 (gdb_bfd_open, gdb_bfd_ref): Use gdb_bfd_init_data.
231
232 2020-09-07 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
233
234 * infrun.c (fetch_inferior_event): Use
235 `switch_to_target_no_thread` to switch the target.
236
237 2020-09-06 Tom Tromey <tom@tromey.com>
238
239 * symfile.h (dwarf2_free_objfile): Don't declare.
240
241 2020-09-03 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
242
243 * gdb/i386-tdep.c (i386_floatformat_for_type): Added conditions
244 to match 16 byte real/complex type generated by Flang compiler.
245
246 2020-09-03 Tom de Vries <tdevries@suse.de>
247
248 PR breakpoint/26546
249 * dwarf2/read.c (new_symbol): Tag label symbol without DW_AT_low_pc as
250 LOC_OPTIMIZED_OUT instead of LOC_LABEL.
251
252 2020-09-02 Simon Marchi <simon.marchi@polymtl.ca>
253
254 * maint.c (index_digits): New function.
255 (struct maint_print_section_data): Remove.
256 (print_bfd_section_info): Remove print_data parameter, add arg
257 and index_digits.
258 (print_objfile_section_info): Likewise.
259 (print_bfd_section_info_maybe_relocated): Likewise (plus
260 objfile).
261 (maintenance_info_sections): Adjust calls.
262
263 2020-09-02 Tom Tromey <tromey@adacore.com>
264
265 * ada-varobj.c (ada_varobj_get_ptr_number_of_children): Return 0
266 for null pointers.
267 (ada_varobj_adjust_for_child_access): Special-case null pointers.
268
269 2020-09-01 Simon Marchi <simon.marchi@polymtl.ca>
270
271 * bcache.h (struct bcache) <insert>: Change type of `added` to
272 pointer to bool.
273 * bcache.c (bcache::insert): Likewise.
274 * gdbtypes.c (check_types_worklist): Adjust.
275 * psymtab.c (add_psymbol_to_bcache): Adjust.
276
277 2020-08-31 Kevin Buettner <kevinb@redhat.com>
278
279 * corelow.c (unordered_set): Include.
280 (class core_target): Add field 'm_core_unavailable_mappings'.
281 (core_target::build_file_mappings): Print only one warning
282 per inaccessible file. Add unavailable/broken mappings
283 to m_core_unavailable_mappings.
284 (core_target::xfer_partial): Call...
285 (core_target::xfer_memory_via_mappings): New method.
286
287 2020-08-31 Simon Marchi <simon.marchi@polymtl.ca>
288
289 * dwarf2/read.c (struct field_info) <non_public_fields>: Change
290 type to bool.
291
292 2020-08-31 Simon Marchi <simon.marchi@polymtl.ca>
293
294 * dwarf2/read.c (struct field_info): Fix indentation.
295
296 2020-08-31 Simon Marchi <simon.marchi@efficios.com>
297
298 * frame-unwind.h (frame_prev_register_ftype): Fix adjective
299 ordering in comment.
300 * frame.c (frame_id_eq): Fix indentation.
301
302 2020-08-31 Scott Linder <scott@scottlinder.com>
303 Simon Marchi <simon.marchi@efficios.com>
304
305 * inline-frame.c (inline_frame_this_id): Remove assert that prevents
306 inline frame ids in outer frame.
307
308 2020-08-31 Simon Marchi <simon.marchi@efficios.com>
309
310 * frame.h (enum frame_id_stack_status) <FID_STACK_OUTER>: New.
311 * frame.c (fprint_frame_id): Handle FID_STACK_OUTER.
312 (outer_frame_id): Use FID_STACK_OUTER instead of
313 FID_STACK_INVALID.
314 (frame_id_p): Don't check for outer_frame_id.
315
316 2020-08-31 Simon Marchi <simon.marchi@efficios.com>
317
318 * frame-unwind.c (frame_unwind_got_optimized): Don't set
319 regnum/frame in value. Call allocate_value_lazy.
320 * frame.c (frame_unwind_register_value): Use
321 val_print_not_saved.
322
323 2020-08-31 Simon Marchi <simon.marchi@efficios.com>
324
325 * gdbtypes.h (NULL_TYPE): Remove, change all uses to nullptr.
326
327 2020-08-29 Pedro Alves <pedro@palves.net>
328
329 * progspace.c (print_program_space): Use all_inferiors. Switch to
330 the inferior before calling target_pid_to_str.
331
332 2020-08-28 Tom Tromey <tom@tromey.com>
333
334 * xcoffread.c (xcoff_end_psymtab): Update comment.
335 * dbxread.c (dbx_end_psymtab): Update comment.
336
337 2020-08-28 Tom de Vries <tdevries@suse.de>
338
339 PR breakpoint/26544
340 * breakpoint.c (parse_breakpoint_sals): Remove const from struct
341 event_location.
342 (create_breakpoint): Same.
343 (base_breakpoint_decode_location): Same.
344 (bkpt_create_sals_from_location): Same.
345 (bkpt_decode_location): Same.
346 (bkpt_probe_create_sals_from_location): Same.
347 (bkpt_probe_decode_location): Same.
348 (tracepoint_create_sals_from_location): Same.
349 (tracepoint_decode_location): Same.
350 (tracepoint_probe_decode_location): Same.
351 (strace_marker_create_sals_from_location): Same.
352 (strace_marker_decode_location): Same.
353 (create_sals_from_location_default): Same.
354 (decode_location_default): Same.
355 * breakpoint.h (struct breakpoint_ops): Same.
356 (create_breakpoint): Same.
357 * linespec.h (decode_line_full): Same.
358 * linespec.c (decode_line_full): Same. Throw error if
359 result.size () == 0.
360
361 2020-08-27 Pedro Alves <pedro@palves.net>
362
363 PR gdb/26524
364 * breakpoint.c (until_break_fsm) <location_breakpoint,
365 caller_breakpoint>: Delete fields.
366 <breakpoints>: New field.
367 <until_break_fsm>: Adjust to save a breakpoint vector instead of
368 two individual breakpoints.
369 (until_break_fsm::should_stop): Loop over breakpoints in the
370 breakpoint vector.
371 (until_break_fsm::clean_up): Adjust to clear the breakpoints
372 vector.
373 (until_break_command): Handle location expanding into multiple
374 sals.
375
376 2020-08-27 Pedro Alves <pedro@palves.net>
377
378 PR gdb/26523
379 * inline-frame.c (stopped_by_user_bp_inline_frame): Also consider
380 bp_until breakpoints user-specified locations. Update intro
381 comment.
382
383 2020-08-27 Simon Marchi <simon.marchi@polymtl.ca>
384
385 * gdb_bfd.h (gdb_bfd_section_iterator, gdb_bfd_section_range,
386 gdb_bfd_sections): New.
387 * maint.c (print_bfd_section_info): Change param type to
388 maint_print_section_data.
389 (print_objfile_section_info): Likewise.
390 (print_bfd_section_info_maybe_relocated): Likewise.
391 (maintenance_info_sections): Use gdb_bfd_sections.
392
393 2020-08-25 Shahab Vahedi <shahab@synopsys.com>
394
395 * MAINTAINERS: Add ARC target and maintainer.
396
397 2020-08-25 Anton Kolesov <anton.kolesov@synopsys.com>
398
399 * configure.tgt: ARC support for GNU/Linux.
400 * Makefile.in (ALL_TARGET_OBJS): Likewise.
401 * arc-linux-tdep.c: New file.
402 * arc-tdep.h (ARC_STATUS32_L_MASK, ARC_STATUS32_DE_MASK): Declare.
403 * arc-tdep.c (arc_write_pc): Use it.
404
405 2020-08-25 Shahab Vahedi <shahab@synopsys.com>
406
407 * arc-tdep.c (arc_check_for_hardware_loop): New.
408 * arc-tdep.h (gdbarch_tdep): New field has_hw_loops.
409
410 2020-08-25 Shahab Vahedi <shahab@synopsys.com>
411
412 * arc-tdep.h: Include "gdbarch.h".
413
414 2020-08-25 Shahab Vahedi <shahab@synopsys.com>
415
416 * arch/arc.h
417 (arc_gdbarch_features): New class to stir the selection of target XML.
418 (arc_create_target_description): Use FEATURES to choose XML target.
419 (arc_lookup_target_description): Use arc_create_target_description
420 to create _new_ target descriptions or return the already created
421 ones if the FEATURES is the same.
422 * arch/arc.c: Implementation of prototypes described above.
423 * gdb/arc-tdep.h (arc_regnum enum): Add more registers.
424 (arc_gdbarch_features_init): Initialize the FEATURES struct.
425 * arc-tdep.c (*_feature_name): Make feature names consistent.
426 (arc_register_feature): A new struct to hold information about
427 registers of a particular target/feature.
428 (arc_check_tdesc_feature): Check if XML provides registers in
429 compliance with ARC_REGISTER_FEATURE structs.
430 (arc_update_acc_reg_names): Add aliases for r58 and r59.
431 (determine_*_reg_feature_set): Which feature name to look for.
432 (arc_gdbarch_features_init): Given MACH and ABFD, initialize FEATURES.
433 (mach_type_to_arc_isa): Convert from a set of binutils machine types
434 to expected ISA enums to be used in arc_gdbarch_features structs.
435 * features/Makefile (FEATURE_XMLFILES): Add new files.
436 * gdb/features/arc/v1-aux.c: New file.
437 * gdb/features/arc/v1-aux.xml: Likewise.
438 * gdb/features/arc/v1-core.c: Likewise.
439 * gdb/features/arc/v1-core.xml: Likewise.
440 * gdb/features/arc/v2-aux.c: Likewise.
441 * gdb/features/arc/v2-aux.xml: Likewise.
442 * gdb/features/arc/v2-core.c: Likewise.
443 * gdb/features/arc/v2-core.xml: Likewise.
444 * NEWS (Changes since GDB 9): Announce obsolence of old feature names.
445
446 2020-08-25 Gaius Mulley <gaiusmod2@gmail.com>
447 Andrew Burgess <andrew.burgess@embecosm.com>
448
449 PR m2/26372
450 * m2-exp.y (exp): Improve comment for non_empty_arglist case, add
451 an assert. Remove single element array indexing pattern as the
452 MULTI_SUBSCRIPT support will handle this case too.
453
454 2020-08-24 Simon Marchi <simon.marchi@polymtl.ca>
455
456 * value.h (valprint_check_validity): Move declaration from
457 here...
458 * valprint.h (valprint_check_validity): ... to here.
459
460 2020-08-24 Simon Marchi <simon.marchi@efficios.com>
461
462 * debug.h: New file.
463 * debug.c (debug_prefixed_vprintf): New function.
464 * infrun.c (infrun_debug_printf_1): Use debug_prefixed_vprintf.
465 * linux-nat.c (linux_nat_debug_printf_1): Likewise.
466
467 2020-08-24 Simon Marchi <simon.marchi@efficios.com>
468
469 * infrun.h (infrun_debug_printf_1): New function declaration.
470 (infrun_debug_printf): New macro.
471 * infrun.c (infrun_debug_printf_1): Use infrun_debug_printf
472 throughout.
473 (infrun_debug_printf): New function.
474 * breakpoint.c (should_be_inserted): Use infrun_debug_printf.
475 (handle_jit_event): Likewise.
476
477 2020-08-21 Mark Wielaard <mark@klomp.org>
478
479 * ada-lex.l: Extend register warnings diagnostics comment for g++.
480
481 2020-08-22 Simon Marchi <simon.marchi@efficios.com>
482
483 * frame.c (enum class frame_id_status): New.
484 (struct frame_info) <this_id::p>: Change type to frame_id_status.
485 (fprintf_frame): Update.
486 (compute_frame_id): Set frame id status to "computing" on entry.
487 Set it back to "not_computed" on failure and to "computed" on
488 success.
489 (get_frame_id): Assert the frame id is not being computed.
490 (create_sentinel_frame): Use frame_id_status::COMPUTED.
491 (create_new_frame): Likewise.
492 (frame_cleanup_after_sniffer): Update assert.
493
494 2020-08-20 Simon Marchi <simon.marchi@polymtl.ca>
495
496 * regcache.c (pid_ptid_regcache_map): New type.
497 (target_ptid_regcache_map): Remove.
498 (target_pid_ptid_regcache_map): New type.
499 (regcaches): Change type to target_pid_ptid_regcache_map.
500 (get_thread_arch_aspace_regcache): Update.
501 (regcache_thread_ptid_changed): Update, handle pid-like ptid
502 case.
503 (regcaches_size): Update.
504 (regcache_count): Update.
505 (registers_changed_ptid_target_pid_test): New.
506 (_initialize_regcache): Register new test.
507
508 2020-08-20 Simon Marchi <simon.marchi@polymtl.ca>
509
510 * regcache.c (regcache_count): New.
511 (struct regcache_test_data): New.
512 (regcache_test_data_up): New.
513 (populate_regcaches_for_test): New.
514 (regcaches_test): Remove.
515 (get_thread_arch_aspace_regcache_test): New.
516 (registers_changed_ptid_all_test): New.
517 (registers_changed_ptid_target_test): New.
518 (registers_changed_ptid_target_ptid_test): New.
519 (regcache_thread_ptid_changed): Remove regcache_count lambda.
520 (_initialize_regcache): Register new tests.
521
522 2020-08-20 Simon Marchi <simon.marchi@polymtl.ca>
523
524 * regcache.c (test_get_thread_arch_aspace_regcache): Rename to...
525 (get_thread_arch_aspace_regcache_and_check): ... this. Remove
526 gdbarch and aspace parameter. Use current inferior's aspace.
527 Validate regcache's arch value.
528 (regcaches_test): Update.
529
530 2020-08-20 Simon Marchi <simon.marchi@polymtl.ca>
531
532 * regcache.c (regcaches_test): Call registers_changed.
533
534 2020-08-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
535
536 * infrun.c (process_event_stop_test): Fix typo "breapoint".
537
538 2020-08-19 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
539
540 * amd64-tdep.c (amd64_skip_prologue): Using symbol table
541 to find the end of prologue for flang compiled binaries.
542 * arm-tdep.c (arm_skip_prologue): Likewise.
543 * i386-tdep.c (i386_skip_prologue): Likewise.
544 * producer.c (producer_is_llvm): New function.
545 (producer_parsing_tests): Added new tests for clang/flang.
546 * producer.h (producer_is_llvm): New declaration.
547
548 2020-08-18 Simon Marchi <simon.marchi@efficios.com>
549
550 * linux-nat.c (linux_nat_debug_printf): New function.
551 (linux_nat_debug_printf_1): New macro. Use throughout the file.
552
553 2020-08-18 Aaron Merey <amerey@redhat.com>
554
555 * Makefile.in (DEBUGINFOD_CFLAGS, DEBUGINFOD_LIBS): New variables.
556 (INTERNAL_CFLAGS_BASE): Add DEBUGINFOD_CFLAGS.
557 (CLIBS): Add DEBUGINFOD_LIBS.
558
559 2020-08-17 Sergei Trofimovich <siarheit@google.com>
560
561 * ia64-linux-nat.c: Include "gdbarch.h" to declare used
562 'gdbarch_num_regs'.
563
564 2020-08-17 Tom Tromey <tromey@adacore.com>
565
566 * ada-varobj.c (ada_varobj_decode_var): Handle case where
567 ada_get_decoded_value returns NULL.
568
569 2020-08-17 Tom Tromey <tromey@adacore.com>
570
571 * python/py-inferior.c (infpy_search_memory): Use
572 gdb_py_object_from_ulongest.
573 * python/py-infevents.c (create_inferior_call_event_object)
574 (create_memory_changed_event_object): Use
575 gdb_py_object_from_ulongest.
576 * python/py-linetable.c (ltpy_entry_get_pc): Use
577 gdb_py_object_from_ulongest.
578
579 2020-08-17 Simon Marchi <simon.marchi@polymtl.ca>
580
581 * loc.c (class symbol_needs_eval_context): Fix indentation.
582
583 2020-08-17 Simon Marchi <simon.marchi@polymtl.ca>
584
585 * dwarf2/loc.c (dwarf2_loc_desc_get_symbol_read_needs): Use
586 bool.
587
588 2020-08-17 Tom de Vries <tdevries@suse.de>
589
590 PR gdb/26393
591 * gdbtypes.c (dump_dynamic_prop): New function.
592 (recursive_dump_type): Use dump_dynamic_prop for TYPE_CODE_RANGE.
593
594 2020-08-15 Tom de Vries <tdevries@suse.de>
595
596 PR backtrace/26390
597 * stack.c (print_frame_args): Temporarily set the selected
598 frame to FRAME while printing the frame's arguments.
599
600 2020-08-14 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
601
602 PR breakpoints/26385
603 * ppc-linux-nat.c (ppc_linux_nat_target::low_prepare_to_resume):
604 Always clear watchpoint with PTRACE_SET_DEBUGREG.
605
606 2020-08-14 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
607
608 * ppc-linux-nat.c (ppc_linux_dreg_interface::detect)
609 (ppc_linux_nat_target::low_prepare_to_resume): Use ptrace () < 0
610 and >= to check return value instead of == -1 and != -1.
611
612 2020-08-14 Simon Marchi <simon.marchi@polymtl.ca>
613
614 * utils.h (class gdb_argv) <as_array_view>: New method.
615 * utils.c (gdb_argv_as_array_view_test): New.
616 (_initialize_utils): Register selftest.
617 * maint.c (maintenance_selftest): Use the new method.
618
619 2020-08-13 Kamil Rytarowski <n54@gmx.com>
620
621 * target.h (supports_dumpcore, dumpcore): New
622 function declarations.
623 * target.c (supports_dumpcore, dumpcore): New
624 functions.
625 * target-delegates.c: Rebuild.
626 * gcore.c (gcore_command): Use target_supports_dumpcore ()
627 and target_dumpcore ().
628
629 2020-08-13 Aaron Merey <amerey@redhat.com>
630
631 * debuginfod-support.c: Replace global variables with user_data.
632
633 2020-08-13 Simon Marchi <simon.marchi@polymtl.ca>
634
635 * maint.c (maintenance_selftest): Split args and pass array_view
636 to run_tests.
637
638 2020-08-12 Luis Machado <luis.machado@linaro.org>
639
640 * value.c (check_type_length_before_alloc): Use ULONGEST to store a
641 type's length.
642 Use %s and pulongest to print the length.
643
644 2020-08-12 Pedro Alves <palves@redhat.com>
645
646 * NEWS: Move "Multi-target debugging support" item to the
647 "Changes since GDB 9" section.
648
649 2020-08-12 Pedro Alves <palves@redhat.com>
650
651 PR gdb/26336
652 * progspace.c (program_space::remove_objfile): Invalidate the
653 frame cache.
654
655 2020-08-11 Tom de Vries <tdevries@suse.de>
656
657 * MAINTAINERS: Mark ms1 as deleted.
658
659 2020-08-10 Luis Machado <luis.machado@linaro.org>
660
661 PR gdb/26310
662
663 * aarch64-tdep.c (aarch64_analyze_prologue): Track use of SP/FP and
664 act accordingly.
665 (aarch64_analyze_prologue_test): Add more unit tests to exercise
666 movz/str/stur/stp skipping behavior.
667
668 2020-08-10 Luis Machado <luis.machado@linaro.org>
669
670 * nat/aarch64-sve-linux-sigcontext.h (SVE_PT_REGS_OFFSET): Use
671 struct user_sve_header instead of struct sve_context.
672
673 2020-08-09 Simon Marchi <simon.marchi@polymtl.ca>
674
675 * read.h (dwarf2_fetch_die_loc_sect_off,
676 dwarf2_fetch_die_loc_cu_off): Replace function pointer +
677 `void *` parameter with function_view.
678 * read.c (dwarf2_fetch_die_loc_sect_off,
679 dwarf2_fetch_die_loc_cu_off): Likewise.
680 * loc.c (get_frame_pc_for_per_cu_dwarf_call): Remove.
681 (per_cu_dwarf_call): Adjust.
682 (get_frame_address_in_block_wrapper): Remove.
683 (indirect_synthetic_pointer): Adjust.
684 (get_ax_pc): Remove.
685 (dwarf2_compile_expr_to_ax): Adjust.
686
687 2020-08-08 Tom de Vries <tdevries@suse.de>
688
689 PR build/26344
690 * arch/riscv.c (riscv_lookup_target_description): Use an explicit
691 constructor.
692 * regcache.c (get_thread_arch_aspace_regcache): Same.
693
694 2020-08-07 Tom Tromey <tromey@adacore.com>
695
696 * ravenscar-thread.c
697 (ravenscar_thread_target::set_base_thread_from_ravenscar_task):
698 New method.
699 (ravenscar_thread_target::wait): Check
700 runtime_initialized.
701 (ravenscar_thread_target::prepare_to_store)
702 (ravenscar_thread_target::stopped_by_sw_breakpoint)
703 (ravenscar_thread_target::stopped_by_hw_breakpoint)
704 (ravenscar_thread_target::stopped_by_watchpoint)
705 (ravenscar_thread_target::stopped_data_address)
706 (ravenscar_thread_target::core_of_thread): Use
707 scoped_restore_current_thread and
708 set_base_thread_from_ravenscar_task.
709
710 2020-08-07 Tom Tromey <tromey@adacore.com>
711
712 * ravenscar-thread.c (update_thread_list): Set inferior_ptid.
713
714 2020-08-07 Tom Tromey <tromey@adacore.com>
715
716 * ravenscar-thread.c (ravenscar_thread_target::wait): Call
717 update_inferior_ptid before update_thread_list.
718 (temporarily_change_regcache_ptid): New class.
719 (ravenscar_thread_target::fetch_registers)
720 (ravenscar_thread_target::store_registers)
721 (ravenscar_thread_target::prepare_to_store): Use base thread when
722 forwarding operation.
723
724 2020-08-07 Tom Tromey <tromey@adacore.com>
725
726 * ravenscar-thread.c (ravenscar_thread_target::resume): Handle
727 "is_pid" case.
728
729 2020-08-07 Tom Tromey <tromey@adacore.com>
730
731 * ravenscar-thread.c (xfer_partial, enable_btrace, add_thread):
732 New methods.
733 (ravenscar_thread_target::get_thread_base_cpu): Check m_cpu_map
734 first.
735 (ravenscar_thread_target::add_thread): Rename from
736 ravenscar_add_thread.
737 (ravenscar_thread_target::update_thread_list): Use a lambda.
738 (ravenscar_thread_target::xfer_partial): New method.
739
740 2020-08-07 Tom Tromey <tromey@adacore.com>
741
742 * ada-lang.h (ada_task_list_iterator_ftype): Now a
743 gdb::function_view.
744 (iterate_over_live_ada_tasks): Change type of argument.
745 * ada-tasks.c (iterate_over_live_ada_tasks): Change type
746 of argument.
747
748 2020-08-07 Tom Tromey <tromey@adacore.com>
749
750 * ravenscar-thread.c (ravenscar_thread_target) <extra_thread_info>:
751 Remove.
752 (ravenscar_thread_target::extra_thread_info): Remove.
753 (ravenscar_thread_target::pid_to_str): Mention Ravenscar in result;
754 defer to target beneath for non-Ravenscar threads.
755
756 2020-08-07 Tom Tromey <tromey@adacore.com>
757
758 * ravenscar-thread.c (ravenscar_thread_target) <get_base_cpu,
759 get_base_thread_from_ravenscar_task>: Now methods.
760 <m_cpu_map>: New member.
761 (ravenscar_thread_target::get_thread_base_cpu): Rename from
762 ravenscar_get_thread_base_cpu. Check m_cpu_map.
763 (ravenscar_thread_target::task_is_currently_active): Update.
764 (ravenscar_thread_target::get_base_thread_from_ravenscar_task):
765 Now a method.
766 (ravenscar_thread_target::add_active_thread): Put initial thread
767 into the m_cpu_map.
768
769 2020-08-07 Tom Tromey <tromey@adacore.com>
770
771 * ravenscar-thread.c (ravenscar_thread_target::wait): Return
772 event_ptid.
773
774 2020-08-07 Tom Tromey <tromey@adacore.com>
775
776 * ravenscar-thread.c (ravenscar_thread_target::wait): Check
777 runtime_initialized.
778
779 2020-08-07 Tom Tromey <tromey@adacore.com>
780
781 * ravenscar-thread.c (ravenscar_thread_target): Don't call
782 add_active_thread.
783 (ravenscar_thread_target::add_active_thread): Now public.
784 (ravenscar_inferior_created): Call add_active_thread after pushing
785 the target.
786
787 2020-08-07 Simon Marchi <simon.marchi@polymtl.ca>
788
789 * regcache.c (ptid_regcache_map): New type.
790 (target_ptid_regcache_map): New type.
791 (regcaches): Change type to target_ptid_regcache_map.
792 (get_thread_arch_aspace_regcache): Update to regcaches' new
793 type.
794 (regcache_thread_ptid_changed): Likewise.
795 (registers_changed_ptid): Likewise.
796 (regcaches_size): Likewise.
797 (regcaches_test): Update.
798 (regcache_thread_ptid_changed): Update.
799 * regcache.h (regcache_up): New type.
800 * gdbsupport/ptid.h (hash_ptid): New struct.
801
802 2020-08-07 Simon Marchi <simon.marchi@efficios.com>
803
804 * observable.h (thread_ptid_changed): Add parameter
805 `process_stratum_target *`.
806 * infrun.c (infrun_thread_ptid_changed): Add parameter
807 `process_stratum_target *` and use it.
808 (selftests): New namespace.
809 (infrun_thread_ptid_changed): New function.
810 (_initialize_infrun): Register selftest.
811 * regcache.c (regcache_thread_ptid_changed): Add parameter
812 `process_stratum_target *` and use it.
813 (regcache_thread_ptid_changed): New function.
814 (_initialize_regcache): Register selftest.
815 * thread.c (thread_change_ptid): Pass target to
816 thread_ptid_changed observable.
817
818 2020-08-06 Caroline Tice <cmtice@google.com>
819
820 * dwarf2/read.c (struct dwo_file): Update comment on 'sections' field.
821 (struct dwp_sections): Update field comments. Add loclists and
822 rnglists fields.
823 (struct virtual_v2_dwo_sections): Rename struct to
824 'virtual_v2_or_v5_dwo_sections'; update comments at top of struct; add
825 size & offset fields for loclists and rnglists.
826 (struct dwp_hash_table): Add a 'v5' struct field to the union section.
827 (create_debug_type_hash_table): Add 'DW_UT_split_type' to the check for
828 skipping dummy type units.
829 (create_dwp_hash_table): Update the large comment above the function to
830 discuss Version 5 DWP files as well, with references. Update all the
831 version checks in the function to check for version 5 as well. Add new
832 section at the end to create dwp hash table for version 5.
833 (create_dwp_v2_section): Rename function to
834 'create_dwp_v2_or_v5_section'. Update function comment appropriately.
835 Add V5 to error message text.
836 (create_dwo_unit_in_dwp_v2): Change calls to create_dwp_v2_section
837 into calls to create_dwp_v2_or_v5_section.
838 (create_dwo_unit_in_dwp_v5): New function.
839 (lookup_dwo_unit_in_dwp): Update conditional statement to explicitly
840 check for version2; add else clause to handle version 5.
841 (open_and_init_dwo_file): Add code to check dwarf version & only call
842 create_debug_types_hash_table (with sections.types) if version is not 5;
843 else call create_debug_type_hash_table, with sections.info.
844 (dwarf2_locate_v2_dwp_sections): Update function comment to mention
845 version 5.
846 (dwarf2_locate_v5_dwp_sections): New function.
847 (open_and_init_dwp_file): Add else-if clause for version 5 to call
848 bfd_map_over_sections with dwarf2_locate_v5_dwp_sections.
849
850 2020-08-06 Simon Marchi <simon.marchi@efficios.com>
851
852 * regcache.h (class regcache): Remove friend
853 registers_changed_ptid.
854 <regcache_thread_ptid_changed>: Remove.
855 <regcaches>: Remove.
856 * regcache.c (regcache::regcaches): Rename to...
857 (regcaches): ... this. Make static.
858 (get_thread_arch_aspace_regcache): Update.
859 (regcache::regcache_thread_ptid_changed): Rename to...
860 (regcache_thread_ptid_changed): ... this. Update.
861 (class regcache_access): Remove.
862 (regcaches_test): Update.
863 (_initialize_regcache): Update.
864 * sparc64-tdep.c, dwarf2/index-write.c, record-btrace.c: Include
865 <forward_list>.
866
867 2020-08-06 Simon Marchi <simon.marchi@efficios.com>
868
869 * regcache.h (class regcache) <current_regcache>: Rename to...
870 <regcaches>: ... this. Move doc here.
871 * regcache.c (regcache::current_regcache) Rename to...
872 (regcache::regcaches): ... this. Move doc to header.
873 (get_thread_arch_aspace_regcache): Update.
874 (regcache::regcache_thread_ptid_changed): Update.
875 (registers_changed_ptid): Update.
876 (class regcache_access) <current_regcache_size>: Rename to...
877 <regcaches_size>: ... this.
878 (current_regcache_test): Rename to...
879 (regcaches_test): ... this.
880 (_initialize_regcache): Update.
881
882 2020-08-06 Victor Collod <vcollod@nvidia.com>
883
884 * amd64-tdep.c (amd64_analyze_prologue): Fix incorrect comment.
885
886 2020-08-05 Kevin Buettner <kevinb@redhat.com>
887
888 * corelow.c (core_target::build_file_mappings): Don't output
889 null pathname in warning.
890
891 2020-08-05 Simon Marchi <simon.marchi@polymtl.ca>
892
893 * gdb.dwarf2/clztest.exp, gdb.dwarf2/dw2-common-block.exp,
894 gdb.dwarf2/dw2-dup-frame.exp, gdb.dwarf2/dw2-reg-undefined.exp,
895 gdb.dwarf2/dw2-single-line-discriminators.exp,
896 dw2-undefined-ret-addr.exp: Pass nopie to compilation options.
897
898 2020-08-05 Tom Tromey <tromey@adacore.com>
899
900 PR rust/26197:
901 * dwarf2/read.c (alloc_rust_variant): Handle univariant case.
902 (quirk_rust_enum): Call alloc_rust_variant for univariant case.
903 Fix off-by-one and type size errors in ordinary case.
904
905 2020-08-05 Tom de Vries <tdevries@suse.de>
906
907 * gdbtypes.c (type_not_allocated, type_not_associated): Use
908 "prop->const_val () == 0" instead of "prop->const_val () != 0".
909
910 2020-08-04 Simon Marchi <simon.marchi@efficios.com>
911
912 * frame.h (frame_id_p): Return bool.
913 (frame_id_artificial_p): Return bool.
914 (frame_id_eq): Return bool.
915 (has_stack_frames): Return bool.
916 (get_selected_frame): Fix typo in comment.
917 (get_frame_pc_if_available): Return bool.
918 (get_frame_address_in_block_if_available): Return bool.
919 (get_frame_func_if_available): Return bool.
920 (read_frame_register_unsigned): Return bool.
921 (get_frame_register_bytes): Return bool.
922 (safe_frame_unwind_memory): Return bool.
923 (deprecated_frame_register_read): Return bool.
924 (frame_unwinder_is): Return bool.
925 * frame.c (struct frame_info) <prev_arch::p>: Change type to
926 bool.
927 <this_id::p>: Likewise.
928 <prev_p>: Likewise.
929 (frame_stash_add): Return bool.
930 (get_frame_id): Use bool.
931 (frame_id_build_special) Use bool.
932 (frame_id_build_unavailable_stack): Use bool.
933 (frame_id_build): Use bool.
934 (frame_id_p): Return bool, use true/false instead of 1/0.
935 (frame_id_artificial_p): Likewise.
936 (frame_id_eq): Likewise.
937 (frame_id_inner): Likewise.
938 (get_frame_func_if_available): Likewise.
939 (read_frame_register_unsigned): Likewise.
940 (deprecated_frame_register_read): Likewise.
941 (get_frame_register_bytes): Likewise.
942 (has_stack_frames): Likewise.
943 (inside_main_func): Likewise.
944 (inside_entry_func): Likewise.
945 (get_frame_pc_if_available): Likewise.
946 (get_frame_address_in_block_if_available): Likewise.
947 (frame_unwinder_is): Likewise.
948 (safe_frame_unwind_memory): Likewise.
949 (frame_unwind_arch): Likewise.
950
951 2020-08-04 Simon Marchi <simon.marchi@efficios.com>
952
953 * frame.c (frame_info) <prev_func> <p>: Rename to status, change
954 type to cached_copy_status.
955 (fprintf_frame): Adjust.
956 (get_frame_func_if_available): Adjust.
957 (frame_cleanup_after_sniffer): Adjust.
958
959 2020-08-04 Mark Wielaard <mark@klomp.org>
960
961 * MAINTAINERS (Write After Approval): Update email address.
962
963 2020-08-04 Simon Marchi <simon.marchi@polymtl.ca>
964
965 * gdbtypes.h (TYPE_DYN_PROP_ADDR): Remove, replace uses with
966 dynamic_prop::const_val.
967
968 2020-08-04 Simon Marchi <simon.marchi@polymtl.ca>
969
970 * gdbtypes.h (TYPE_DYN_PROP_KIND): Remove, replace uses with
971 dynamic_prop::kind.
972
973 2020-08-04 Simon Marchi <simon.marchi@polymtl.ca>
974
975 * gdbtypes.h (TYPE_DYN_PROP_BATON): Remove.
976
977 2020-08-04 Jose E. Marchesi <jose.marchesi@oracle.com>
978
979 * configure.tgt: Set gdb_sim for bpf-*-* targets.
980
981 2020-08-04 Weimin Pan <weimin.pan@oracle.com>
982 Jose E. Marchesi <jose.marchesi@oracle.com>
983
984 * configure.tgt: Add entry for bpf-*-*.
985 * Makefile.in (ALL_TARGET_OBS): Add bpf-tdep.o
986 (ALLDEPFILES): Add bpf-tdep.c.
987 * bpf-tdep.c: New file.
988 * MAINTAINERS: Add bpf target and maintainer.
989 * NEWS: Mention the support for the new target.
990
991 2020-08-04 Tom de Vries <tdevries@suse.de>
992
993 PR symtab/23270
994 * dwarf2/read.c (find_partial_die): Change internal error into Dwarf
995 Error.
996
997 2020-08-03 John Baldwin <jhb@FreeBSD.org>
998
999 * syscalls/freebsd.xml: Regenerate.
1000
1001 2020-08-03 John Baldwin <jhb@FreeBSD.org>
1002
1003 * syscalls/update-freebsd.sh: Fix usage and year range.
1004
1005 2020-08-03 Tom de Vries <tdevries@suse.de>
1006
1007 PR symtab/26333
1008 * dwarf2/read.c (dwarf_decode_lines_1): Ignore
1009 DW_LNE_lo_user/DW_LNE_hi_user range.
1010
1011 2020-07-30 Simon Marchi <simon.marchi@polymtl.ca>
1012
1013 PR ada/26318
1014 * ada-lang.c (ada_modulus): Return 0 if property is not of const
1015 kind.
1016
1017 2020-07-30 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1018
1019 * breakpoint.c (set_breakpoint_condition): Do minor refactoring.
1020
1021 2020-07-30 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1022
1023 * breakpoint.c (set_breakpoint_condition): Update the condition
1024 expressions after checking that the input condition string parses
1025 successfully and does not contain junk at the end.
1026
1027 2020-07-30 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1028
1029 * breakpoint.c (set_breakpoint_condition): Update the
1030 condition string after parsing the new condition successfully.
1031
1032 2020-07-30 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1033
1034 * proc-api.c (_STRUCTURED_PROC): Don't define.
1035 * proc-events.c: Likewise.
1036 * proc-flags.c: Likewise.
1037 * proc-why.c: Likewise.
1038 * procfs.c: Likewise.
1039
1040 * Makefile.in (INTERNAL_CPPFLAGS): Add LARGEFILE_CPPFLAGS.
1041 * configure, config.in: Regenerate.
1042
1043 2020-07-30 Tom de Vries <tdevries@suse.de>
1044
1045 PR build/26320
1046 * ui-style.h (struct ui_file_style::color): Wrap m_value and
1047 m_red/m_green/m_blue in a union.
1048
1049 2020-07-29 Tom de Vries <tdevries@suse.de>
1050
1051 PR tdep/26280
1052 * s390-tdep.c (s390_displaced_step_fixup): Fix Wmaybe-uninitialized.
1053
1054 2020-07-28 Tom Tromey <tromey@adacore.com>
1055
1056 PR symtab/26270:
1057 * symtab.h (find_pc_partial_function_sym): Declare.
1058 * cli/cli-cmds.c (disassemble_command): Use
1059 find_pc_partial_function_sym. Check asm_demangle.
1060 * blockframe.c (cache_pc_function_sym): New global.
1061 (cache_pc_function_name): Remove.
1062 (clear_pc_function_cache): Update.
1063 (find_pc_partial_function_sym): New function, from
1064 find_pc_partial_function.
1065 (find_pc_partial_function): Rewrite using
1066 find_pc_partial_function_sym.
1067
1068 2020-07-28 Tom Tromey <tromey@adacore.com>
1069
1070 * cli/cli-cmds.c (_initialize_cli_cmds): Rearrange "disassemble"
1071 help. Add usage.
1072
1073 2020-07-28 Tom Tromey <tromey@adacore.com>
1074
1075 * dwarf2/expr.c (dwarf_expr_context::execute_stack_op)
1076 <DW_OP_GNU_variable_value>: Cast to address type.
1077
1078 2020-07-28 Kamil Rytarowski <n54@gmx.com>
1079
1080 * nbsd-nat.h (nbsd_nat_target::xfer_partial): New declaration.
1081 * nbsd-nat.c (nbsd_nat_target::xfer_partial): New function.
1082 * nbsd-tdep.c (nbsd_gdbarch_data_handle, struct nbsd_gdbarch_data)
1083 (init_nbsd_gdbarch_data, get_nbsd_gdbarch_data)
1084 (nbsd_get_siginfo_type): New.
1085 (nbsd_init_abi): Install gdbarch "get_siginfo_type" method.
1086 (_initialize_nbsd_tdep): New.
1087
1088 2020-07-28 H.J. Lu <hongjiu.lu@intel.com>
1089
1090 PR binutils/26301
1091 * configure: Regenerated.
1092
1093 2020-07-28 H.J. Lu <hongjiu.lu@intel.com>
1094
1095 PR binutils/26301
1096 * configure: Regenerated.
1097
1098 2020-07-28 Andrew Burgess <andrew.burgess@embecosm.com>
1099
1100 * python/py-frame.c: Remove 'user-regs.h' include.
1101 (frapy_read_register): Rewrite to make use of
1102 gdbpy_parse_register_id.
1103 * python/py-registers.c (gdbpy_parse_register_id): New function,
1104 moved here from python/py-unwind.c. Updated the return type, and
1105 also accepts register descriptor objects.
1106 * python/py-unwind.c: Remove 'user-regs.h' include.
1107 (pyuw_parse_register_id): Moved to python/py-registers.c.
1108 (unwind_infopy_add_saved_register): Update to use
1109 gdbpy_parse_register_id.
1110 (pending_framepy_read_register): Likewise.
1111 * python/python-internal.h (gdbpy_parse_register_id): Declare.
1112
1113 2020-07-28 Andrew Burgess <andrew.burgess@embecosm.com>
1114
1115 * python/py-registers.c: Add 'user-regs.h' include.
1116 (register_descriptor_iter_find): New function.
1117 (register_descriptor_iterator_object_methods): New static global
1118 methods array.
1119 (register_descriptor_iterator_object_type): Add pointer to methods
1120 array.
1121
1122 2020-07-27 John Baldwin <jhb@FreeBSD.org>
1123
1124 * fbsd-nat.h: Include <osreldate.h>. Define USE_SIGTRAP_SIGINFO
1125 for all architectures on FreeBSD 11.3 and later.
1126
1127 2020-07-27 Tom Tromey <tromey@adacore.com>
1128
1129 * gcore.h (load_corefile): Don't declare.
1130
1131 2020-07-27 Tom de Vries <tdevries@suse.de>
1132
1133 * configure.ac: Fix sys/sockets.h -> sys/socket.h typo.
1134 * config.in: Regenerate.
1135 * configure: Regenerate.
1136
1137 2020-07-26 Eli Zaretskii <eliz@gnu.org>
1138
1139 * configure.ac (AC_CHECK_HEADERS): Check for sys/socket.h and
1140 ws2tcpip.h. When checking whether socklen_t type is defined, use
1141 ws2tcpip.h if it is available and sys/socket.h isn't.
1142 * configure: Regenerate.
1143 * config.in: Regenerate.
1144
1145 2020-07-25 Andrew Burgess <andrew.burgess@embecosm.com>
1146
1147 PR fortran/23051
1148 PR fortran/26139
1149 * valops.c (value_ind): Pass address to
1150 readjust_indirect_value_type.
1151 * value.c (readjust_indirect_value_type): Make parameter
1152 non-const, and add extra address parameter. Resolve original type
1153 before using it.
1154 * value.h (readjust_indirect_value_type): Update function
1155 signature and comment.
1156
1157 2020-07-25 Tom de Vries <tdevries@suse.de>
1158
1159 PR symtab/26243
1160 * dwarf2/read.c (lnp_state_machine::record_line): Ignore zero line
1161 entries.
1162
1163 2020-07-24 Aaron Merey <amerey@redhat.com>
1164
1165 * Makefile.in: Replace LIBDEBUGINFOD with DEBUGINFOD_LIBS.
1166 * configure: Rebuild.
1167
1168 2020-07-23 Kevin Buettner <kevinb@redhat.com>
1169
1170 PR corefiles/26294
1171 * corelow.c (_initialize_corelow): Add period to help text
1172 for "maintenance print core-file-backed-mappings".
1173
1174 2020-07-23 Pedro Alves <pedro@palves.net>
1175
1176 * frame-unwind.c (frame_unwind_try_unwinder): On exception, don't
1177 touch THIS_CACHE/THIS_FRAME if the frame cache was cleared
1178 meanwhile.
1179 * frame.c (frame_cache_generation, get_frame_cache_generation):
1180 New.
1181 (reinit_frame_cache): Increment FRAME_CACHE_GENERATION.
1182 (get_prev_frame_if_no_cycle): On exception, don't touch
1183 PREV_FRAME/THIS_FRAME if the frame cache was cleared meanwhile.
1184 * frame.h (get_frame_cache_generation): Declare.
1185
1186 2020-07-23 Tom de Vries <tdevries@suse.de>
1187
1188 PR tui/26282
1189 * tui/tui-winsource.h (struct tui_source_windows::tui_source_windows):
1190 New default constructor.
1191
1192 2020-07-23 Andrew Burgess <andrew.burgess@embecosm.com>
1193
1194 * disasm.c (do_mixed_source_and_assembly_deprecated): Don't
1195 exclude non-statement entries.
1196
1197 2020-07-22 Kevin Buettner <kevinb@redhat.com>
1198
1199 * NEWS (New commands): Mention new command
1200 "maintenance print core-file-backed-mappings".
1201
1202 2020-07-22 Kevin Buettner <kevinb@redhat.com>
1203
1204 * corelow.c (gdbcmd.h): Include.
1205 (core_target::info_proc_mappings): New method.
1206 (get_current_core_target): New function.
1207 (maintenance_print_core_file_backed_mappings): New function.
1208 (_initialize_corelow): Add core-file-backed-mappings to
1209 "maint print" commands.
1210
1211 2020-07-22 Kevin Buettner <kevinb@redhat.com>
1212
1213 * linux-tdep.c (dump_note_entry_p): New function.
1214 (linux_dump_mapping_p_ftype): New typedef.
1215 (linux_find_memory_regions_full): Add new parameter,
1216 should_dump_mapping_p.
1217 (linux_find_memory_regions): Adjust call to
1218 linux_find_memory_regions_full.
1219 (linux_make_mappings_core_file_notes): Use dump_note_entry_p in
1220 call to linux_find_memory_regions_full.
1221
1222 2020-07-22 Kevin Buettner <kevinb@redhat.com>
1223
1224 * corelow.c (solist.h, unordered_map): Include.
1225 (class core_target): Add field m_core_file_mappings and
1226 method build_file_mappings.
1227 (core_target::core_target): Call build_file_mappings.
1228 (core_target::~core_target): Free memory associated with
1229 m_core_file_mappings.
1230 (core_target::build_file_mappings): New method.
1231 (core_target::xfer_partial): Use m_core_file_mappings
1232 for memory transfers.
1233 * linux-tdep.c (linux_read_core_file_mappings): New
1234 function.
1235 (linux_core_info_proc_mappings): Rewrite to use
1236 linux_read_core_file_mappings.
1237 (linux_init_abi): Register linux_read_core_file_mappings.
1238
1239 2020-07-22 Kevin Buettner <kevinb@redhat.com>
1240
1241 * arch-utils.c (default_read_core_file_mappings): New function.
1242 * arch-utils.c (default_read_core_file_mappings): Declare.
1243 * gdbarch.sh (read_core_file_mappings): New gdbarch method.
1244 * gdbarch.h, gdbarch.c: Regenerate.
1245
1246 2020-07-22 Kevin Buettner <kevinb@redhat.com>
1247
1248 PR corefiles/25631
1249 * corelow.c (core_target:xfer_partial): Revise
1250 TARGET_OBJECT_MEMORY case to consider non-SEC_HAS_CONTENTS
1251 case after first checking the stratum beneath the core
1252 target.
1253 (has_all_memory): Return true.
1254 * target.c (raw_memory_xfer_partial): Revise comment
1255 regarding use of has_all_memory.
1256
1257 2020-07-22 Kevin Buettner <kevinb@redhat.com>
1258
1259 * exec.h (section_table_xfer_memory): Revise declaration,
1260 replacing section name parameter with an optional callback
1261 predicate.
1262 * exec.c (section_table_xfer_memory): Likewise.
1263 * bfd-target.c, exec.c, target.c, corelow.c: Adjust all callers
1264 of section_table_xfer_memory.
1265
1266 2020-07-22 Tom Tromey <tromey@adacore.com>
1267
1268 * mi/mi-cmd-stack.c (list_args_or_locals): Use
1269 lookup_symbol_search_name.
1270
1271 2020-07-22 Andrew Burgess <andrew.burgess@embecosm.com>
1272
1273 * python/py-registers.c (gdbpy_register_object_data_init): Remove
1274 redundant local variable.
1275 (gdbpy_get_register_descriptor): Extract descriptor vector as a
1276 reference, not pointer, update code accordingly.
1277
1278 2020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
1279 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1280
1281 * objfiles.h (struct objfile) <skip_jit_symbol_lookup>: New field.
1282 * jit.c (jit_breakpoint_re_set_internal): Use the
1283 `skip_jit_symbol_lookup` field.
1284
1285 2020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
1286 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1287
1288 * jit.c (jit_read_descriptor): Define the descriptor address once,
1289 use twice.
1290 (jit_breakpoint_deleted): Move the declaration of the loop variable
1291 `iter` into the loop header.
1292 (jit_breakpoint_re_set_internal): Move the declaration of the local
1293 variable `objf_data` to the first point of definition.
1294 (jit_event_handler): Move the declaration of local variables
1295 `code_entry`, `entry_addr`, and `objf` to their first point of use.
1296 Rename `objf` to `jited`.
1297
1298 2020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
1299
1300 * jit.h (struct jiter_objfile_data) <jiter_objfile_data, objfile>:
1301 Remove.
1302 * jit.c (get_jiter_objfile_data): Update.
1303
1304 2020-07-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1305 Simon Marchi <simon.marchi@polymtl.ca>
1306
1307 * jit.c (struct jit_program_space_data): Remove.
1308 (jit_program_space_key): Remove.
1309 (jiter_objfile_data::~jiter_objfile_data): Remove program space
1310 stuff.
1311 (get_jit_program_space_data): Remove.
1312 (jit_breakpoint_deleted): Iterate on all of the program space's
1313 objfiles.
1314 (jit_inferior_init): Likewise.
1315 (jit_breakpoint_re_set_internal): Likewise. Also change return
1316 type to void.
1317 (jit_breakpoint_re_set): Pass current_program_space to
1318 jit_breakpoint_re_set_internal.
1319
1320 2020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
1321
1322 * jit.h (struct jiter_objfile_data) <cached_code_address,
1323 jit_breakpoint>: Move to here from ...
1324 * jit.c (jit_program_space_data): ... here.
1325 (jiter_objfile_data::~jiter_objfile_data): Update.
1326 (jit_breakpoint_deleted): Update.
1327 (jit_breakpoint_re_set_internal): Update.
1328
1329 2020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
1330
1331 * jit.c (jiter_objfile_data::~jiter_objfile_data): Remove some
1332 checks.
1333 (jit_read_descriptor): Remove NULL check.
1334 (jit_event_handler): Add an assertion.
1335
1336 2020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
1337
1338 * jit.h (struct jit_objfile_data): Split into...
1339 (struct jiter_objfile_data): ... this ...
1340 (struct jited_objfile_data): ... and this.
1341 * objfiles.h (struct objfile) <jit_data>: Remove.
1342 <jiter_data, jited_data>: New fields.
1343 * jit.c (jit_objfile_data::~jit_objfile_data): Rename to ...
1344 (jiter_objfile_data::~jiter_objfile_data): ... this.
1345 (get_jit_objfile_data): Rename to ...
1346 (get_jiter_objfile_data): ... this.
1347 (add_objfile_entry): Update.
1348 (jit_read_descriptor): Use get_jiter_objfile_data.
1349 (jit_find_objf_with_entry_addr): Use objfile's jited_data field.
1350 (jit_breakpoint_re_set_internal): Use get_jiter_objfile_data.
1351 (jit_inferior_exit_hook): Use objfile's jited_data field.
1352
1353 2020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
1354
1355 * jit.h: Forward-declare `struct minimal_symbol`.
1356 (struct jit_objfile_data): Migrate to here from jit.c; also add a
1357 constructor, destructor, and an objfile* field.
1358 * jit.c (jit_objfile_data): Remove.
1359 (struct jit_objfile_data): Migrate from here to jit.h.
1360 (jit_objfile_data::~jit_objfile_data): New destructor
1361 implementation with code moved from free_objfile_data.
1362 (free_objfile_data): Delete.
1363 (get_jit_objfile_data): Update to use the jit_data field of objfile.
1364 (jit_find_objf_with_entry_addr): Ditto.
1365 (jit_inferior_exit_hook): Ditto.
1366 (_initialize_jit): Remove the call to
1367 register_objfile_data_with_cleanup.
1368 * objfiles.h (struct objfile) <jit_data>: New field.
1369
1370 2020-07-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1371
1372 * jit.h: Forward-declare `struct objfile`.
1373 (jit_event_handler): Add a second parameter, the JITer objfile.
1374 * jit.c (jit_read_descriptor): Change the signature to take the
1375 JITer objfile as an argument instead of the jit_program_space_data.
1376 (jit_inferior_init): Update the call to jit_read_descriptor.
1377 (jit_event_handler): Use the new JITer objfile argument when calling
1378 jit_read_descriptor.
1379 * breakpoint.c (handle_jit_event): Update the call to
1380 jit_event_handler to pass the JITer objfile.
1381
1382 2020-07-21 John Baldwin <jhb@FreeBSD.org>
1383
1384 * gdbarch.c: Regenerate.
1385 * gdbarch.h: Regenerate.
1386 * gdbarch.sh (handle_segmentation_fault): Remove method.
1387 * infrun.c (handle_segmentation_fault): Remove.
1388 (print_signal_received_reason): Remove call to
1389 handle_segmentation_fault.
1390
1391 2020-07-21 John Baldwin <jhb@FreeBSD.org>
1392
1393 * sparc64-linux-tdep.c (sparc64_linux_handle_segmentation_fault):
1394 Rename to sparc64_linux_report_signal_info and add siggnal
1395 argument.
1396 (sparc64_linux_init_abi): Use sparc64_linux_report_signal_info
1397 instead of sparc64_linux_handle_segmentation_fault.
1398
1399 2020-07-21 John Baldwin <jhb@FreeBSD.org>
1400
1401 * amd64-linux-tdep.c (amd64_linux_init_abi_common): Use
1402 i386_linux_report_signal_info instead of
1403 i386_linux_handle_segmentation_fault.
1404 * i386-linux-tdep.c (i386_linux_handle_segmentation_fault): Rename
1405 to i386_linux_report_signal_info and add siggnal argument.
1406 (i386_linux_init_abi): Use i386_linux_report_signal_info instead
1407 of i386_linux_handle_segmentation_fault.
1408 * i386-linux-tdep.h (i386_linux_handle_segmentation_fault): Rename
1409 to i386_linux_report_signal_info and add siggnal argument.
1410
1411 2020-07-21 John Baldwin <jhb@FreeBSD.org>
1412
1413 * corelow.c (core_target_open): Invoke gdbarch report_signal_info
1414 hook if present.
1415
1416 2020-07-21 John Baldwin <jhb@FreeBSD.org>
1417
1418 * gdbarch.c: Regenerate.
1419 * gdbarch.h: Regenerate.
1420 * gdbarch.sh (report_signal_info): New method.
1421 * infrun.c (print_signal_received_reason): Invoke gdbarch
1422 report_signal_info hook if present.
1423
1424 2020-07-21 Andrew Burgess <andrew.burgess@embecosm.com>
1425
1426 * python/py-registers.c : Add 'unordered_map' include.
1427 (gdbpy_new_reggroup): Renamed to...
1428 (gdbpy_get_reggroup): ...this. Update to only create register
1429 group descriptors when needed.
1430 (gdbpy_reggroup_iter_next): Update.
1431
1432 2020-07-21 Andrew Burgess <andrew.burgess@embecosm.com>
1433
1434 * python/py-registers.c (gdbpy_register_object_data): New static
1435 global.
1436 (gdbpy_register_object_data_init): New function.
1437 (gdbpy_new_register_descriptor): Renamed to...
1438 (gdbpy_get_register_descriptor): ...this, and update to reuse
1439 existing register descriptors where possible.
1440 (gdbpy_register_descriptor_iter_next): Update.
1441 (gdbpy_initialize_registers): Register new gdbarch data.
1442
1443 2020-07-21 Simon Marchi <simon.marchi@efficios.com>
1444
1445 * linux-nat.c (stopped_pids): Make static.
1446
1447 2020-07-21 Simon Marchi <simon.marchi@polymtl.ca>
1448
1449 PR ada/26235
1450 * gdbtypes.c (ada_discrete_type_low_bound,
1451 ada_discrete_type_high_bound): Handle undefined bounds.
1452
1453 2020-07-21 Kamil Rytarowski <n54@gmx.com>
1454
1455 * nbsd-nat.h (nbsd_nat_target::supports_multi_process): New
1456 declaration.
1457 * nbsd-nat.c (nbsd_nat_target::supports_multi_process): New
1458 function.
1459
1460 2020-07-20 John Baldwin <jhb@FreeBSD.org>
1461
1462 * fbsd-tdep.c (fbsd_skip_solib_resolver): New function.
1463 (fbsd_init_abi): Install gdbarch "skip_solib_resolver" method.
1464 * fbsd-tdep.h (fbsd_skip_solib_resolver): New prototype.
1465 * mips-fbsd-tdep.c (mips_fbsd_skip_solib_resolver): New function.
1466 (mips_fbsd_init_abi): Install gdbarch "skip_solib_resolver"
1467 method.
1468
1469 2020-07-20 Ludovic Courtès <ludo@gnu.org>
1470
1471 * guile/scm-math.c (vlscm_integer_fits_p): Use 'uintmax_t'
1472 and 'intmax_t' instead of 'scm_t_uintmax' and 'scm_t_intmax',
1473 which are deprecated in Guile 3.0.
1474 * configure.ac (try_guile_versions): Add "guile-3.0".
1475 * configure (try_guile_versions): Regenerate.
1476 * NEWS: Update entry.
1477
1478 2020-07-20 Ludovic Courtès <ludo@gnu.org>
1479 Doug Evans <dje@google.com>
1480
1481 PR gdb/21104
1482 * guile/scm-ports.c (USING_GUILE_BEFORE_2_2): New macro.
1483 (ioscm_memory_port)[read_buf_size, write_buf_size]: Wrap in #if
1484 USING_GUILE_BEFORE_2_2.
1485 (stdio_port_desc, memory_port_desc) [!USING_GUILE_BEFORE_2_2]:
1486 Change type to 'scm_t_port_type *'.
1487 (natural_buffer_size) [!USING_GUILE_BEFORE_2_2]: New variable.
1488 (ioscm_open_port) [USING_GUILE_BEFORE_2_2]: Add 'stream'
1489 parameter and honor it. Update callers.
1490 (ioscm_open_port) [!USING_GUILE_BEFORE_2_2]: New function.
1491 (ioscm_read_from_port, ioscm_write) [!USING_GUILE_BEFORE_2_2]: New
1492 functions.
1493 (ioscm_fill_input, ioscm_input_waiting, ioscm_flush): Wrap in #if
1494 USING_GUILE_BEFORE_2_2.
1495 (ioscm_init_gdb_stdio_port) [!USING_GUILE_BEFORE_2_2]: Use
1496 'ioscm_read_from_port'. Call 'scm_set_port_read_wait_fd'.
1497 (ioscm_init_stdio_buffers) [!USING_GUILE_BEFORE_2_2]: New function.
1498 (gdbscm_stdio_port_p) [!USING_GUILE_BEFORE_2_2]: Use 'SCM_PORTP'
1499 and 'SCM_PORT_TYPE'.
1500 (gdbscm_memory_port_end_input, gdbscm_memory_port_seek)
1501 (ioscm_reinit_memory_port): Wrap in #if USING_GUILE_BEFORE_2_2.
1502 (gdbscm_memory_port_read, gdbscm_memory_port_write)
1503 (gdbscm_memory_port_seek, gdbscm_memory_port_close)
1504 [!USING_GUILE_BEFORE_2_2]: New functions.
1505 (gdbscm_memory_port_print): Remove use of 'SCM_PTOB_NAME'.
1506 (ioscm_init_memory_port_type) [!USING_GUILE_BEFORE_2_2]: Use
1507 'gdbscm_memory_port_read'.
1508 Wrap 'scm_set_port_end_input', 'scm_set_port_flush', and
1509 'scm_set_port_free' calls in #if USING_GUILE_BEFORE_2_2.
1510 (gdbscm_get_natural_buffer_sizes) [!USING_GUILE_BEFORE_2_2]: New
1511 function.
1512 (ioscm_init_memory_port): Remove.
1513 (ioscm_init_memory_port_stream): New function
1514 (ioscm_init_memory_port_buffers) [USING_GUILE_BEFORE_2_2]: New
1515 function.
1516 (gdbscm_memory_port_read_buffer_size) [!USING_GUILE_BEFORE_2_2]:
1517 Return scm_from_uint (0).
1518 (gdbscm_set_memory_port_read_buffer_size_x)
1519 [!USING_GUILE_BEFORE_2_2]: Call 'scm_setvbuf'.
1520 (gdbscm_memory_port_write_buffer_size) [!USING_GUILE_BEFORE_2_2]:
1521 Return scm_from_uint (0).
1522 (gdbscm_set_memory_port_write_buffer_size_x)
1523 [!USING_GUILE_BEFORE_2_2]: Call 'scm_setvbuf'.
1524 * configure.ac (try_guile_versions): Add "guile-2.2".
1525 * configure: Regenerate.
1526 * NEWS: Add entry.
1527
1528 2020-07-18 Tom Tromey <tom@tromey.com>
1529
1530 * linux-nat.c (linux_multi_process): Remove.
1531 (linux_nat_target::supports_multi_process): Return true.
1532
1533 2020-07-17 Andrew Burgess <andrew.burgess@embecosm.com>
1534
1535 * arch/riscv.c (riscv_tdesc_cache): Change map type.
1536 (riscv_lookup_target_description): Return pointer out of
1537 unique_ptr.
1538 * target-descriptions.c (allocate_target_description): Add
1539 comment.
1540 (target_desc_deleter::operator()): Likewise.
1541 * target-descriptions.h (struct target_desc_deleter): Moved to
1542 gdbsupport/tdesc.h.
1543 (target_desc_up): Likewise.
1544
1545 2020-07-17 Tom Tromey <tromey@adacore.com>
1546
1547 * linux-nat.c (linux_nat_target::supports_non_stop)
1548 (linux_nat_target::always_non_stop_p): Use "true".
1549 (linux_nat_target::supports_disable_randomization): Use "true" and
1550 "false".
1551
1552 2020-07-16 Caroline Tice <cmtice@google.com>
1553
1554 * dwarf2/read.c (RNGLIST_HEADER_SIZE32) New constant definition.
1555 (RNGLIST_HEADER_SIZE64): New constant definition.
1556 (struct dwop_section_names): Add rnglists_dwo.
1557 (dwop_section_names): Add .debug_rnglists.dwo, .zdebug_rnglists.dwo.
1558 (struct loclist_header): Rename to 'loclists_rnglists_header'.
1559 (struct dwo_sections): Add rnglists field.
1560 (read_attribut_reprocess): Add tag parameter.
1561 (dwarf2_ranges_read): Add tag parameter & remove forward function decl.
1562 (cu_debug_rnglists_section): New function (decl & definition).
1563 (dwarf2_locate_dwo_sections): Add code to read rnglists_dwo section.
1564 (dwarf2_rnglists_process): Add a dwarf_tag parameter, for the kind of
1565 die whose range is being checked; get rnglist section from
1566 cu_debug_rnglists_section, to get from either objfile or dwo file as
1567 appropriate. Add cases for DW_RLE_base_addressx,
1568 DW_RLE_startx_length, DW_RLE_startx_endx. Also, update to only add
1569 the base address to DW_RLE_offset_pairs (not to all ranges), moving
1570 test inside if-condition and updating complaint message.
1571 (dwarf2_ranges_process): Add dwarf tag parameter and pass it to
1572 dwarf2_rnglists_process.
1573 (dwarf2_ranges_read): Add dwarf tag parameter and pass it to
1574 dwarf2_ranges_process.
1575 (dwarf2_get_pc_bounds): Check for DW_FORM_rnglistx when setting
1576 need_ranges_base and update comment appropriately. Also pass die tag
1577 to dwarf2_ranges_read.
1578 (dwarf2_record_block_ranges): Check for DW_FORM_rnglistx when setting
1579 need_ranges_base and update comment appropriately. Also pass die tag
1580 to dwarf2_ranges_process.
1581 (read_full_die_1): Add code to read DW_AT_rnglists_base and assign to
1582 cu->ranges_base. Also pass die tag to read_attribute_reprocess.
1583 (partial_die_info::read): Check for DW_FORM_rnglistx when setting
1584 need_ranges_base and update comment appropriately. Also pass die tag
1585 to read_attribute_reprocess and dwarf2_ranges_read.
1586 (read_loclist_header): Rename function to read_loclists_rnglists_header,
1587 and update function comment appropriately.
1588 (read_loclist_index): Call read_loclists_rnglists_header instead of
1589 read_loclist_header.
1590 (read_rnglist_index): New function.
1591 (read_attribute_reprocess): Add tag parameter. Add code for
1592 DW_FORM_rnglistx, passing tag to read_rnglist_index.
1593 (read_attribute_value): Mark DW_FORM_rnglistx with need_reprocess.
1594
1595 2020-07-15 Andrew Burgess <andrew.burgess@embecosm.com>
1596
1597 * f-typeprint.c (f_type_print_base): Allow for dynamic types not
1598 being resolved.
1599
1600 2020-07-14 Andrew Burgess <andrew.burgess@embecosm.com>
1601
1602 * arch-utils.c (show_architecture): Update formatting of messages.
1603
1604 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
1605
1606 * gdbtypes.h (struct type) <bounds>: Handle array and string
1607 types.
1608 * ada-lang.c (assign_aggregate): Use type::bounds on
1609 array/string type.
1610 * c-typeprint.c (c_type_print_varspec_suffix): Likewise.
1611 * c-varobj.c (c_number_of_children): Likewise.
1612 (c_describe_child): Likewise.
1613 * eval.c (evaluate_subexp_for_sizeof): Likewise.
1614 * f-typeprint.c (f_type_print_varspec_suffix): Likewise.
1615 (f_type_print_base): Likewise.
1616 * f-valprint.c (f77_array_offset_tbl): Likewise.
1617 (f77_get_upperbound): Likewise.
1618 (f77_print_array_1): Likewise.
1619 * guile/scm-type.c (gdbscm_type_range): Likewise.
1620 * m2-typeprint.c (m2_array): Likewise.
1621 (m2_is_long_set_of_type): Likewise.
1622 * m2-valprint.c (get_long_set_bounds): Likewise.
1623 * p-typeprint.c (pascal_type_print_varspec_prefix): Likewise.
1624 * python/py-type.c (typy_range): Likewise.
1625 * rust-lang.c (rust_internal_print_type): Likewise.
1626 * type-stack.c (type_stack::follow_types): Likewise.
1627 * valarith.c (value_subscripted_rvalue): Likewise.
1628 * valops.c (value_cast): Likewise.
1629
1630 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
1631
1632 * gdbtypes.c (TYPE_ARRAY_BIT_STRIDE): Remove. Update all
1633 callers to use the equivalent accessor methods.
1634
1635 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
1636
1637 * gdbtypes.h (struct range_bounds) <bit_stride>: New method.
1638 (struct type) <bit_stride>: New method.
1639 (TYPE_BIT_STRIDE): Remove.
1640 * gdbtypes.c (update_static_array_size): Use type::bit_stride.
1641
1642 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
1643
1644 * gdbtypes.h (TYPE_ARRAY_LOWER_BOUND_VALUE,
1645 TYPE_ARRAY_UPPER_BOUND_VALUE): Remove. Update all
1646 callers to use the equivalent accessor methods instead.
1647
1648 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
1649
1650 * gdbtypes.h (TYPE_ARRAY_UPPER_BOUND_IS_UNDEFINED,
1651 TYPE_ARRAY_LOWER_BOUND_IS_UNDEFINED): Remove. Update all
1652 callers to use the equivalent accessor methods instead.
1653
1654 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
1655
1656 * gdbtypes.h (TYPE_LOW_BOUND_KIND,
1657 TYPE_HIGH_BOUND_KIND): Remove. Update all callers
1658 to use dynamic_prop::kind.
1659
1660 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
1661
1662 * gdbtypes.h (TYPE_LOW_BOUND_UNDEFINED,
1663 TYPE_HIGH_BOUND_UNDEFINED): Remove. Update all callers
1664 to get the bound property's kind and check against
1665 PROP_UNDEFINED.
1666
1667 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
1668
1669 * gdbtypes.h (TYPE_LOW_BOUND, TYPE_HIGH_BOUND): Remove. Update
1670 all callers to use type::range_bounds followed by
1671 dynamic_prop::{low,high}.
1672
1673 2020-07-12 Simon Marchi <simon.marchi@polymtl.ca>
1674
1675 * gdbtypes.h (struct dynamic_prop) <kind, set_undefined,
1676 const_val, set_const_val, baton, set_locexpr, set_loclist,
1677 set_addr_offset, variant_parts, set_variant_parts,
1678 original_type, set_original_type>: New methods.
1679 <kind>: Rename to...
1680 <m_kind>: ... this. Update all users to use the new methods
1681 instead.
1682 <data>: Rename to...
1683 <m_data>: ... this. Update all users to use the new methods
1684 instead.
1685
1686 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
1687
1688 * gdbtypes.c (get_discrete_bounds): Return failure if
1689 the range type's bounds are not both defined and constant
1690 values.
1691 (get_array_bounds): Update comment. Remove undefined bound check.
1692
1693 2020-07-12 Simon Marchi <simon.marchi@polymtl.ca>
1694
1695 * gdbtypes.h (TYPE_RANGE_DATA): Remove. Update callers to use
1696 the type::bounds method directly.
1697
1698 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
1699
1700 * gdbtypes.h (struct type) <bounds, set_bounds>: New methods.
1701 (TYPE_RANGE_DATA): Use type::bounds. Change all uses that
1702 are used to set the range type's bounds to use set_bounds.
1703
1704 2020-07-11 Philippe Waroquiers <philippe.waroquiers@skynet.be>
1705
1706 * exec.c (_initialize_exec): Update exec-file-mismatch help.
1707
1708 2020-07-10 Pedro Alves <pedro@palves.net>
1709
1710 * gdbthread.h (inferior_ref): Define.
1711 (scoped_restore_current_thread) <m_thread>: Now a thread_info_ref.
1712 (scoped_restore_current_thread) <m_inf>: Now an inferior_ref.
1713 * thread.c
1714 (scoped_restore_current_thread::restore):
1715 Adjust to gdb::ref_ptr.
1716 (scoped_restore_current_thread::~scoped_restore_current_thread):
1717 Remove manual decref handling.
1718 (scoped_restore_current_thread::scoped_restore_current_thread):
1719 Adjust to use
1720 inferior_ref::new_reference/thread_info_ref::new_reference.
1721 Incref the thread before calling get_frame_id instead of after.
1722 Let TARGET_CLOSE_ERROR propagate.
1723
1724 2020-07-10 Pedro Alves <pedro@palves.net>
1725
1726 * frame-tailcall.c (dwarf2_tailcall_sniffer_first): Only swallow
1727 NO_ENTRY_VALUE_ERROR / MEMORY_ERROR / OPTIMIZED_OUT_ERROR /
1728 NOT_AVAILABLE_ERROR.
1729 * value.c (value_optimized_out): Only swallow MEMORY_ERROR /
1730 OPTIMIZED_OUT_ERROR / NOT_AVAILABLE_ERROR.
1731
1732 2020-07-10 Simon Marchi <simon.marchi@polymtl.ca>
1733 Pedro Alves <pedro@palves.net>
1734
1735 PR gdb/26199
1736 * infrun.c (threads_are_resumed_pending_p): Delete.
1737 (do_target_wait): Remove threads_are_executing and
1738 threads_are_resumed_pending_p checks from the inferior_matches
1739 lambda. Update comments.
1740
1741 2020-07-10 Pedro Alves <pedro@palves.net>
1742
1743 PR gdb/26199
1744 * infrun.c (handle_no_resumed): Transfer terminal to inferior with
1745 executing threads.
1746
1747 2020-07-10 Pedro Alves <pedro@palves.net>
1748
1749 PR gdb/26199
1750 * infrun.c (handle_no_resumed): Handle multiple targets.
1751
1752 2020-07-10 Pedro Alves <pedro@palves.net>
1753
1754 PR gdb/26199
1755 * infrun.c (prepare_to_wait): Check target_can_async_p instead of
1756 target_is_async_p.
1757
1758 2020-07-10 Pedro Alves <pedro@palves.net>
1759
1760 PR gdb/26199
1761 * target.c (target_pass_ctrlc): Look at the inferior's non-exited
1762 threads, not all threads.
1763
1764 2020-07-10 Pedro Alves <pedro@palves.net>
1765
1766 PR gdb/26199
1767 * remote.c (remote_target::open_1): Pass remote target pointer as
1768 data to create_async_event_handler.
1769 (remote_async_inferior_event_handler): Mark async event handler
1770 before returning if the remote target still has either pending
1771 events or unacknowledged notifications.
1772
1773 2020-07-10 John Baldwin <jhb@FreeBSD.org>
1774
1775 * fbsd-nat.h (fbsd_nat_target::supports_multi_process): New
1776 declaration.
1777 * fbsd-nat.c (fbsd_nat_target::supports_multi_process): New
1778 function.
1779
1780 2020-07-09 John Baldwin <jhb@FreeBSD.org>
1781
1782 * inf-ptrace.c (inf_ptrace_target::wait): Don't compare against
1783 inferior_ptid.
1784
1785 2020-07-09 John Baldwin <jhb@FreeBSD.org>
1786
1787 * fbsd-tdep.c (fbsd_print_auxv_entry): Handle AT_FREEBSD_ARGC,
1788 AT_FREEBSD_ARGV, AT_FREEBSD_ENVC, AT_FREEBSD_ENVV,
1789 AT_FREEBSD_PS_STRINGS.
1790
1791 2020-07-08 Hannes Domani <ssbssa@yahoo.de>
1792
1793 * auto-load.c (auto_load_objfile_script_1): Convert drive part
1794 of debugfile path on Windows.
1795
1796 2020-07-08 John Baldwin <jhb@FreeBSD.org>
1797
1798 * fbsd-nat.c (fbsd_nat_target::find_memory_regions): Rename 'obfd'
1799 argument to 'data'.
1800
1801 2020-07-08 Tom Tromey <tromey@adacore.com>
1802
1803 * ada-lang.c (ada_exception_message_1): Use read_memory.
1804
1805 2020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
1806
1807 PR python/22748
1808 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first): Remove
1809 special handling for inline frames.
1810 * findvar.c (value_of_register_lazy): Skip inline frames when
1811 creating lazy register values.
1812 * frame.c (frame_id_computed_p): Delete definition.
1813 * frame.h (frame_id_computed_p): Delete declaration.
1814
1815 2020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
1816
1817 * NEWS: Mention additions to Python API.
1818 * python/py-arch.c (archpy_register_groups): New function.
1819 (arch_object_methods): Add 'register_groups' method.
1820 * python/py-registers.c (reggroup_iterator_object): New struct.
1821 (reggroup_object): New struct.
1822 (gdbpy_new_reggroup): New function.
1823 (gdbpy_reggroup_to_string): New function.
1824 (gdbpy_reggroup_name): New function.
1825 (gdbpy_reggroup_iter): New function.
1826 (gdbpy_reggroup_iter_next): New function.
1827 (gdbpy_new_reggroup_iterator): New function
1828 (gdbpy_initialize_registers): Register new types.
1829 (reggroup_iterator_object_type): Define new Python type.
1830 (gdbpy_reggroup_getset): New static global.
1831 (reggroup_object_type): Define new Python type.
1832 * python/python-internal.h
1833
1834 2020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
1835
1836 * Makefile.in (SUBDIR_PYTHON_SRCS): Add py-registers.c
1837 * python/py-arch.c (archpy_registers): New function.
1838 (arch_object_methods): Add 'registers' method.
1839 * python/py-registers.c: New file.
1840 * python/python-internal.h
1841 (gdbpy_new_register_descriptor_iterator): Declare.
1842 (gdbpy_initialize_registers): Declare.
1843 * python/python.c (do_start_initialization): Call
1844 gdbpy_initialize_registers.
1845 * NEWS: Mention additions to the Python API.
1846
1847 2020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
1848
1849 * NEWS: Mention new Python API method.
1850 * python/py-unwind.c (pending_framepy_architecture): New function.
1851 (pending_frame_object_methods): Add architecture method.
1852
1853 2020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
1854
1855 * gdbarch.c: Regenerate.
1856 * gdbarch.h: Regenerate.
1857 * gdbarch.sh (deprecated_set_gdbarch_data): Delete.
1858 (gdbarch_data): Use internal_error for the case where
1859 deprecated_set_gdbarch_data was originally needed.
1860 * ia64-libunwind-tdep.c (libunwind_descr_init): Update parameters,
1861 and use passed in obstack.
1862 (libunwind_frame_set_descr): Should no longer get back NULL from
1863 gdbarch_data.
1864 (_initialize_libunwind_frame): Register as a pre-init gdbarch data
1865 type.
1866 * user-regs.c (user_regs_init): Update parameters, and use passed
1867 in obstack.
1868 (user_reg_add): Should no longer get back NULL from gdbarch_data.
1869 (_initialize_user_regs): Register as a pre-init gdbarch data type.
1870
1871 2020-07-06 Tom de Vries <tdevries@suse.de>
1872
1873 * buildsym.c (buildsym_compunit::end_symtab_with_blockvector): Handle
1874 End-Of-Sequence in lte_is_less_than.
1875 * symtab.c (find_pc_sect_line): Revert change from commit 3d92a3e313
1876 "gdb: Don't reorder line table entries too much when sorting".
1877
1878 2020-07-06 Tom de Vries <tdevries@suse.de>
1879
1880 PR tui/26205
1881 * tui/tui-win.c (tui_partial_win_by_name): Don't test for NULL name.
1882
1883 2020-07-05 Tom de Vries <tdevries@suse.de>
1884
1885 PR build/26187
1886 * inferior.h (struct infcall_suspend_state_deleter): If available, use
1887 std::uncaught_exceptions instead of deprecated
1888 std::uncaught_exception.
1889
1890 2020-07-02 Simon Marchi <simon.marchi@polymtl.ca>
1891
1892 * macroexp.h (macro_stringify): Return
1893 gdb::unique_xmalloc_ptr<char>.
1894 * macroexp.c (macro_stringify): Likewise.
1895 * macrotab.c (fixup_definition): Update.
1896
1897 2020-07-02 Simon Marchi <simon.marchi@polymtl.ca>
1898
1899 * c-exp.y (scan_macro_expansion): Don't free `expansion`.
1900 (lex_one_token): Update.
1901 * macroexp.c (struct macro_buffer) <release>: Return
1902 gdb::unique_xmalloc_ptr<char>.
1903 (macro_stringify): Update.
1904 (macro_expand): Update.
1905 (macro_expand_next): Return gdb::unique_xmalloc_ptr<char>.
1906 * macroexp.h (macro_expand_next): Likewise.
1907
1908 2020-07-02 Simon Marchi <simon.marchi@efficios.com>
1909
1910 * macroexp.h (macro_lookup_ftype): Remove.
1911 (macro_expand, macro_expand_once, macro_expand_next): Remove
1912 lookup function parameters, add scope parameter.
1913 * macroexp.c (scan, substitute_args, expand, maybe_expand,
1914 macro_expand, macro_expand_once, macro_expand_next): Likewise.
1915 * macroscope.h (standard_macro_lookup): Change parameter type
1916 to macro_scope.
1917 * macroscope.c (standard_macro_lookup): Likewise.
1918 * c-exp.y (lex_one_token): Update.
1919 * macrocmd.c (macro_expand_command): Likewise.
1920 (macro_expand_once_command): Likewise.
1921
1922 2020-07-02 Simon Marchi <simon.marchi@polymtl.ca>
1923
1924 * inf-loop.c (inferior_event_handler): Remove client_data param.
1925 * inf-loop.h (inferior_event_handler): Likewise.
1926 * infcmd.c (step_1): Adjust.
1927 * infrun.c (proceed): Adjust.
1928 (fetch_inferior_event): Remove client_data param.
1929 (infrun_async_inferior_event_handler): Adjust.
1930 * infrun.h (fetch_inferior_event): Remove `void *` param.
1931 * linux-nat.c (handle_target_event): Adjust.
1932 * record-btrace.c (record_btrace_handle_async_inferior_event):
1933 Adjust.
1934 * record-full.c (record_full_async_inferior_event_handler):
1935 Adjust.
1936 * remote.c (remote_async_inferior_event_handler): Adjust.
1937
1938 2020-07-01 Tom Tromey <tom@tromey.com>
1939
1940 * tui/tui-data.h (struct tui_win_info) <name>: Now pure virtual.
1941 * tui/tui-stack.h (struct tui_locator_window) <name>: New method.
1942
1943 2020-07-01 Tom Tromey <tom@tromey.com>
1944
1945 * tui/tui-wingeneral.c (tui_win_info::refresh_window): Move from
1946 tui_gen_win_info.
1947 (tui_win_info::make_window): Merge with
1948 tui_gen_win_info::make_window.
1949 (tui_win_info::make_visible): Move from tui_gen_win_info.
1950 * tui/tui-win.c (tui_win_info::max_width): Move from
1951 tui_gen_win_info.
1952 * tui/tui-layout.h (class tui_layout_window) <m_window>: Change
1953 type.
1954 <window_factory>: Likewise.
1955 * tui/tui-layout.c (tui_win_info::resize): Move from
1956 tui_gen_win_info.
1957 (make_standard_window): Change return type.
1958 (get_locator_window, tui_get_window_by_name): Likewise.
1959 (tui_layout_window::apply): Remove a cast.
1960 * tui/tui-data.h (MIN_WIN_HEIGHT): Move earlier.
1961 (struct tui_win_info): Merge with tui_gen_win_info.
1962 (struct tui_gen_win_info): Remove.
1963
1964 2020-07-01 Tom Tromey <tom@tromey.com>
1965
1966 * tui/tui-stack.h (struct tui_locator_window): Derive from
1967 tui_win_info.
1968 <do_scroll_horizontal, do_scroll_vertical>: New methods.
1969 <can_box>: New method.
1970
1971 2020-07-01 Tom Tromey <tom@tromey.com>
1972
1973 * tui/tui-stack.h (struct tui_locator_window): Remove body.
1974
1975 2020-07-01 Tom Tromey <tom@tromey.com>
1976
1977 * tui/tui-regs.c (tui_data_window::display_registers_from)
1978 (tui_data_window::display_registers_from)
1979 (tui_data_window::first_data_item_displayed)
1980 (tui_data_window::delete_data_content_windows): Update.
1981 (tui_data_window::refresh_window, tui_data_window::no_refresh):
1982 Remove.
1983 (tui_data_window::check_register_values): Update.
1984 (tui_data_item_window::rerender): Add parameters. Update.
1985 (tui_data_item_window::refresh_window): Remove.
1986 * tui/tui-data.h (struct tui_gen_win_info) <no_refresh>: No longer
1987 virtual.
1988 * tui/tui-regs.h (struct tui_data_item_window): Don't derive from
1989 tui_gen_win_info.
1990 <refresh_window, max_height, min_height>: Remove.
1991 <rerender>: Add parameters.
1992 <x, y, visible>: New members.
1993 (struct tui_data_window) <refresh_window, no_refresh>: Remove.
1994 <m_item_width>: New member.
1995
1996 2020-07-01 Tom Tromey <tom@tromey.com>
1997
1998 * tui/tui-regs.c (tui_data_window::show_register_group)
1999 (tui_data_window::check_register_values): Update.
2000 * tui/tui-regs.h (struct tui_data_item_window) <regno>: Rename
2001 from item_no.
2002
2003 2020-07-01 Tom Tromey <tom@tromey.com>
2004
2005 * tui/tui-regs.c (tui_data_window::show_register_group): Remove
2006 useless "if".
2007
2008 2020-07-01 Tom Tromey <tom@tromey.com>
2009
2010 * tui/tui-regs.c (tui_data_window::show_register_group): Update.
2011 * tui/tui-regs.h (struct tui_data_item_window) <name>: Remove.
2012
2013 2020-07-01 Tom Tromey <tom@tromey.com>
2014
2015 * tui/tui-stack.c (SINGLE_KEY): Move from tui-data.h
2016 * tui/tui-winsource.h (enum tui_line_or_address_kind)
2017 (struct tui_line_or_address): Move from tui-data.h.
2018 * tui/tui-win.c (DEFAULT_TAB_LEN): Move from tui-data.h.
2019 * tui/tui-data.h (DEFAULT_TAB_LEN): Move to tui-win.c.
2020 (tui_cmd_window, tui_source_window_base, tui_source_window)
2021 (tui_disasm_window): Don't declare.
2022 (enum tui_line_or_address_kind, struct tui_line_or_address): Move
2023 to tui-winsource.h.
2024 (SINGLE_KEY): Move to tui-stack.c.
2025
2026 2020-07-01 Tom Tromey <tom@tromey.com>
2027
2028 * tui/tui-regs.h (struct tui_data_item_window) <content>: Now a
2029 std::string.
2030 * tui/tui-regs.c (class tab_expansion_file): New.
2031 (tab_expansion_file::write): New method.
2032 (tui_register_format): Change return type. Use
2033 tab_expansion_file.
2034 (tui_get_register, tui_data_window::display_registers_from)
2035 (tui_data_item_window::rerender): Update.
2036 * tui/tui-io.h (tui_expand_tabs): Don't declare.
2037 * tui/tui-io.c (tui_expand_tabs): Remove.
2038
2039 2020-07-01 Tom Tromey <tom@tromey.com>
2040
2041 * tui/tui-regs.c (tui_reggroup_completer): Use complete_on_enum.
2042
2043 2020-07-01 Fangrui Song <maskray@google.com>
2044
2045 * dwarf2/read.c (lnp_state_machine::check_line_address): Test -1.
2046
2047 2020-07-01 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
2048
2049 * dwarf2/read.c (set_die_type): Removed conditions to restrict
2050 forms for DW_AT_associated and DW_AT_allocated attributes,
2051 which is already checked in function attr_to_dynamic_prop.
2052
2053 2020-06-30 Tom Tromey <tromey@adacore.com>
2054
2055 * dwarf2/read.c (quirk_rust_enum): Correctly call
2056 alloc_rust_variant for default-less enum.
2057
2058 2020-06-30 Tom Tromey <tromey@adacore.com>
2059
2060 PR build/26183:
2061 * ada-lang.c (ada_lookup_name_info::ada_lookup_name_info): Use
2062 gdb::to_string.
2063
2064 2020-06-29 Simon Marchi <simon.marchi@efficios.com>
2065
2066 * gdbarch.sh (displaced_step_copy_insn): Update doc.
2067 * gdbarch.h: Re-generate.
2068
2069 2020-06-28 Tom Tromey <tom@tromey.com>
2070
2071 * command.h (cmd_types): Remove.
2072 (cmd_type): Don't declare.
2073 * cli/cli-decode.h (enum cmd_types): Uncomment. No longer a
2074 typedef.
2075 * cli/cli-cmds.c (setting_cmd): Use cmd->type directly.
2076 * cli/cli-decode.c (cmd_type): Remove.
2077
2078 2020-06-27 Pedro Alves <palves@redhat.com>
2079
2080 * fork-child.c (prefork_hook): Adjust.
2081 * infcmd.c (set_inferior_io_terminal, get_inferior_io_terminal):
2082 Delete.
2083 (set_inferior_tty_command, show_inferior_tty_command): Adjust.
2084 * inferior.c (inferior::set_tty, inferior::tty): New methods.
2085 * inferior.h (set_inferior_io_terminal, get_inferior_io_terminal):
2086 Remove declarations.
2087 (struct inferior) <set_tty, tty>: New methods.
2088 (struct inferior) <terminal>: Rename to ...
2089 (struct inferior) <m_terminal>: ... this and make private.
2090 * main.c (captured_main_1): Adjust.
2091 * mi/mi-cmd-env.c (mi_cmd_inferior_tty_set): Adjust.
2092 (mi_cmd_inferior_tty_show): Adjust.
2093 * nto-procfs.c (nto_procfs_target::create_inferior): Adjust.
2094 * windows-nat.c (windows_nat_target::create_inferior): Adjust.
2095
2096 2020-06-26 Nick Alcock <nick.alcock@oracle.com>
2097
2098 * configure.ac: Add --enable-libctf: handle --disable-static
2099 properly.
2100 * acinclude.m4: sinclude ../config/enable.m4.
2101 * Makefile.in (aclocal_m4_deps): Adjust accordingly.
2102 (LIBCTF): Substitute in.
2103 (CTF_DEPS): New, likewise.
2104 (CLIBS): libctf needs symbols from libbfd: move earlier.
2105 (CDEPS): Use CTF_DEPS, not LIBCTF, now LIBCTF can include rpath
2106 flags.
2107 * ctfread.c: Surround in ENABLE_LIBCTF.
2108 (elfctf_build_psymtabs) [!ENABLE_LIBCTF]: New stub.
2109 * configure: Regenerate.
2110 * config.in: Likewise.
2111
2112 2020-06-25 Simon Marchi <simon.marchi@efficios.com>
2113
2114 * infcmd.c (set_inferior_io_terminal): Use make_unique_xstrdup.
2115
2116 2020-06-25 Simon Marchi <simon.marchi@efficios.com>
2117
2118 * inferior.h (struct inferior) <terminal>: Change type to
2119 gdb::unique_xmalloc_ptr<char>.
2120 * inferior.c (inferior::~inferior): Don't free inf->terminal.
2121 * infcmd.c (set_inferior_io_terminal): Don't free terminal
2122 field, adjust to unique pointer.
2123 (get_inferior_io_terminal): Adjust to unique pointer.
2124
2125 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
2126
2127 * riscv-tdep.c (riscv_print_registers_info): Loop over all
2128 registers, not just the known core set of registers.
2129
2130 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
2131
2132 * riscv-tdep.c (riscv_register_name): Return NULL for duplicate
2133 fflags, frm, and fcsr registers.
2134 (riscv_register_reggroup_p): Remove unknown CSRs from save and
2135 restore groups.
2136 (riscv_tdesc_unknown_reg): New function.
2137 (riscv_gdbarch_init): Pass riscv_tdesc_unknown_reg to
2138 tdesc_use_registers.
2139 * riscv-tdep.h (struct gdbarch_tdep): Add
2140 unknown_csrs_first_regnum, unknown_csrs_count,
2141 duplicate_fflags_regnum, duplicate_frm_regnum, and
2142 duplicate_fcsr_regnum fields.
2143
2144 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
2145
2146 * target-descriptions.c (tdesc_use_registers): Add new parameter a
2147 callback, use the callback (when not null) to help number unknown
2148 registers.
2149 * target-descriptions.h (tdesc_unknown_register_ftype): New typedef.
2150 (tdesc_use_registers): Add extra parameter to declaration.
2151
2152 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
2153
2154 * riscv-tdep.c (value_of_riscv_user_reg): Moved to here from later
2155 in the file.
2156 (class riscv_pending_register_alias): Likewise.
2157 (riscv_register_feature::register_info): Change 'required_p' field
2158 to 'required', and change its type. Add 'check' member function.
2159 (riscv_register_feature::register_info::check): Define new member
2160 function.
2161 (riscv_xreg_feature): Change initialisation of 'required' field.
2162 (riscv_freg_feature): Likewise.
2163 (riscv_virtual_feature): Likewise.
2164 (riscv_csr_feature): Likewise.
2165 (riscv_check_tdesc_feature): Take extra parameter, the csr
2166 tdesc_feature, rewrite the function to use the new
2167 riscv_register_feature::register_info::check function.
2168 (riscv_gdbarch_init): Pass the csr tdesc_feature where needed.
2169
2170 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
2171
2172 * features/Makefile: Remove all references to the deleted files
2173 below.
2174 * features/riscv/32bit-csr.c: Deleted.
2175 * features/riscv/32bit-csr.xml: Deleted.
2176 * features/riscv/64bit-csr.c: Deleted.
2177 * features/riscv/64bit-csr.xml: Deleted.
2178 * features/riscv/rebuild-csr-xml.sh: Deleted.
2179
2180 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
2181
2182 * riscv-tdep.c (struct riscv_register_feature::register_info): Fix
2183 whitespace error for declaration of names member variable.
2184 (struct riscv_register_feature): Add new prefer_first_name member
2185 variable, and fix whitespace error in declaration of registers.
2186 (riscv_xreg_feature): Initialize prefer_first_name field.
2187 (riscv_freg_feature): Likewise.
2188 (riscv_virtual_feature): Likewise.
2189 (riscv_csr_feature): Likewise.
2190 (riscv_register_name): Expand on comments. Remove register name
2191 modifications for CSR and virtual registers.
2192
2193 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
2194
2195 * riscv-tdep.c (struct riscv_register_feature): Fix whitespace
2196 errors.
2197
2198 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
2199
2200 * riscv-tdep.c (riscv_create_csr_aliases): Handle csr aliases from
2201 riscv-opc.h.
2202 (class riscv_pending_register_alias): New class.
2203 (riscv_check_tdesc_feature): Take vector of pending aliases and
2204 populate it as appropriate.
2205 (riscv_setup_register_aliases): Delete.
2206 (riscv_gdbarch_init): Create vector of pending aliases and pass it
2207 to riscv_check_tdesc_feature in all cases. Use the vector to
2208 create the register aliases.
2209
2210 2020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2211
2212 * sol2-tdep.c (sol2_static_transform_name): Remove.
2213 (sol2_init_abi): Don't register it.
2214 * gdbarch.sh (static_transform_name): Remove.
2215 * gdbarch.c, gdbarch.h: Regenerate.
2216
2217 * dbxread.c (read_dbx_symtab) <'S'>: Remove call to
2218 gdbarch_static_transform_name.
2219 * mdebugread.c (parse_partial_symbols) <'S'>: Likewise.
2220 * stabsread.c (define_symbol) <'X'>: Remove.
2221 (define_symbol) <'S'>: Remove gdbarch_static_transform_name
2222 handling.
2223 <'V'>: Likewise.
2224 * xcoffread.c (scan_xcoff_symtab): Remove gdbarch.
2225 <'S'>: Remove call to gdbarch_static_transform_name.
2226
2227 2020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2228
2229 * procfs.c (procfs_pre_trace): New function.
2230 (procfs_target::create_inferior): Pass it to fork_inferior.
2231
2232 2020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2233
2234 * configure.tgt <sparc-*-linux*> (gdb_target_obs): Remove
2235 sparc-sol2-tdep.o, sol2-tdep.o, sparc64-sol2-tdep.o.
2236 <sparc64-*-linux*> (gdb_target_obs): Remove sparc64-sol2-tdep.o,
2237 sol2-tdep.o, sparc-sol2-tdep.o.
2238 * sparc-sol2-tdep.c (sparc32_sol2_init_abi): Make static.
2239 * sparc-tdep.h (sparc32_sol2_init_abi): Remove.
2240 * sparc64-sol2-tdep.c (sparc64_sol2_init_abi): Make static.
2241 * sparc64-tdep.h (sparc64_sol2_init_abi): Remove.
2242
2243 2020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2244
2245 * amd64-sol2-tdep.c (amd64_sol2_sigtramp_p): Remove.
2246 (amd64_sol2_init_abi): Use sol2_sigtramp_p.
2247 Call sol2_init_abi.
2248 Remove calls to set_gdbarch_skip_solib_resolver,
2249 set_gdbarch_core_pid_to_str.
2250 * i386-sol2-tdep.c (i386_sol2_sigtramp_p): Remove.
2251 (i386_sol2_static_transform_name): Remove.
2252 (i386_sol2_init_abi): Call sol2_init_abi.
2253 Remove calls to set_gdbarch_sofun_address_maybe_missing,
2254 set_gdbarch_static_transform_name,
2255 set_gdbarch_skip_solib_resolver, set_gdbarch_core_pid_to_str.
2256 Use sol2_sigtramp_p.
2257 * sol2-tdep.c (sol2_pc_in_sigtramp): New function.
2258 (sol2_sigtramp_p): New function.
2259 (sol2_static_transform_name): New function.
2260 (sol2_skip_solib_resolver, sol2_core_pid_to_str): Make static.
2261 (sol2_init_abi): New function.
2262 * sol2-tdep.h (sol2_sigtramp_p, sol2_init_abi): Declare.
2263 (sol2_skip_solib_resolver, sol2_core_pid_to_str): Remove.
2264 * sparc-sol2-tdep.c (sparc_sol2_pc_in_sigtramp): Remove.
2265 (sparc32_sol2_sigtramp_frame_sniffer): Just call sol2_sigtramp_p.
2266 (sparc_sol2_static_transform_name): Remove.
2267 (sparc32_sol2_init_abi): Call sol2_init_abi.
2268 Remove calls to set_gdbarch_sofun_address_maybe_missing,
2269 set_gdbarch_static_transform_name,
2270 set_gdbarch_skip_solib_resolver,
2271 set_gdbarch_core_pid_to_str.
2272 * sparc-tdep.h (sparc_sol2_pc_in_sigtramp)
2273 (sparc_sol2_static_transform_name): Remove
2274 * sparc64-sol2-tdep.c (sparc64_sol2_sigtramp_frame_sniffer): Just
2275 call sol2_sigtramp_p.
2276 (sparc64_sol2_init_abi): Call sol2_init_abi.
2277 Remove calls to set_gdbarch_sofun_address_maybe_missing,
2278 set_gdbarch_static_transform_name,
2279 set_gdbarch_skip_solib_resolver, set_gdbarch_core_pid_to_str.
2280
2281 2020-06-24 Philippe Waroquiers <philippe.waroquiers@skynet.be>
2282
2283 * symfile-add-flags.h: New flag SYMFILE_ALWAYS_CONFIRM.
2284 * exec.c (validate_exec_file): If from_tty, set both
2285 SYMFILE_VERBOSE (== from_tty) and SYMFILE_ALWAYS_CONFIRM.
2286 * symfile.c (symbol_file_add_with_addrs): if always_confirm
2287 and from_tty, unconditionally ask a confirmation.
2288
2289 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
2290
2291 * target-descriptions.c (tdesc_architecture_name): Protect against
2292 NULL pointer dereference.
2293 (maint_print_xml_tdesc_cmd): New function.
2294 (_initialize_target_descriptions): Register new 'maint print
2295 xml-tdesc' command and give it the filename completer.
2296 * NEWS: Mention new 'maint print xml-tdesc' command.
2297
2298 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
2299
2300 * target-descriptions.c (class tdesc_compatible_info): New class.
2301 (struct target_desc): Change type of compatible vector.
2302 (tdesc_compatible_p): Update for change in type of
2303 target_desc::compatible.
2304 (tdesc_compatible_info_list): New function.
2305 (tdesc_compatible_info_arch_name): New function.
2306 (tdesc_add_compatible): Update for change in type of
2307 target_desc::compatible.
2308 (print_c_tdesc::visit_pre): Likewise.
2309
2310 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
2311
2312 * target-descriptions.c (print_c_tdesc::print_c_tdesc): Change
2313 whitespace to underscore.
2314 (maint_print_c_tdesc_cmd): Use fake filename for target
2315 descriptions that came from the target.
2316 (_initialize_target_descriptions): Add filename command completion
2317 for 'maint print c-tdesc'.
2318
2319 2020-06-23 Simon Marchi <simon.marchi@efficios.com>
2320
2321 * dwarf2/loc.c (decode_debug_loclists_addresses): Add empty
2322 lines.
2323
2324 2020-06-23 Simon Marchi <simon.marchi@efficios.com>
2325
2326 * dwarf2/loc.c (decode_debug_loc_dwo_addresses): Add empty
2327 lines.
2328 (dwarf2_find_location_expression): Likewise.
2329 (call_site_parameter_matches): Likewise.
2330 (dwarf2_compile_expr_to_ax): Likewise.
2331 (disassemble_dwarf_expression): Likewise.
2332 (loclist_describe_location): Likewise.
2333
2334 2020-06-23 Pedro Alves <palves@redhat.com>
2335
2336 * gdbarch-selftests.c: Don't include inferior.h, gdbthread.h or
2337 progspace-and-thread.h. Include scoped-mock-context.h instead.
2338 (register_to_value_test): Use scoped_mock_context.
2339 * regcache.c: Include "scoped-mock-context.h".
2340 (cooked_read_test): Don't error out if a target is already pushed.
2341 Use scoped_mock_context. Adjust.
2342 * scoped-mock-context.h: New file.
2343
2344 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
2345
2346 * ada-lang.c (ada_language_data): Delete la_is_string_type_p
2347 initializer.
2348 (ada_language::is_string_type_p): New member function.
2349 * c-lang.c (c_language_data): Delete la_is_string_type_p
2350 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_is_string_type_p): Delete function, implementation
2356 moved to f_language::is_string_type_p.
2357 (f_language_data): Delete la_is_string_type_p initializer.
2358 (f_language::is_string_type_p): New member function,
2359 implementation from f_is_string_type_p.
2360 * go-lang.c (go_is_string_type_p): Delete function, implementation
2361 moved to go_language::is_string_type_p.
2362 (go_language_data): Delete la_is_string_type_p initializer.
2363 (go_language::is_string_type_p): New member function,
2364 implementation from go_is_string_type_p.
2365 * language.c (language_defn::is_string_type_p): Define new member
2366 function.
2367 (default_is_string_type_p): Make static, add comment copied from
2368 header file.
2369 (unknown_language_data): Delete la_is_string_type_p initializer.
2370 (unknown_language::is_string_type_p): New member function.
2371 (auto_language_data): Delete la_is_string_type_p initializer.
2372 (auto_language::is_string_type_p): New member function.
2373 * language.h (language_data): Delete la_is_string_type_p field.
2374 (language_defn::is_string_type_p): Declare new function.
2375 (default_is_string_type_p): Delete desclaration, move comment to
2376 definition.
2377 * m2-lang.c (m2_is_string_type_p): Delete function, implementation
2378 moved to m2_language::is_string_type_p.
2379 (m2_language_data): Delete la_is_string_type_p initializer.
2380 (m2_language::is_string_type_p): New member function,
2381 implementation from m2_is_string_type_p.
2382 * objc-lang.c (objc_language_data): Delete la_is_string_type_p
2383 initializer.
2384 * opencl-lang.c (opencl_language_data): Likewise.
2385 * p-lang.c (pascal_is_string_type_p): Delete function,
2386 implementation moved to pascal_language::is_string_type_p.
2387 (pascal_language_data): Delete la_is_string_type_p initializer.
2388 (pascal_language::is_string_type_p): New member function,
2389 implementation from pascal_is_string_type_p.
2390 * rust-lang.c (rust_is_string_type_p): Delete function,
2391 implementation moved to rust_language::is_string_type_p.
2392 (rust_language_data): Delete la_is_string_type_p initializer.
2393 (rust_language::is_string_type_p): New member function,
2394 implementation from rust_is_string_type_p.
2395 * valprint.c (val_print_scalar_or_string_type_p): Update call to
2396 is_string_type_p.
2397
2398 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
2399
2400 * ada-lang.c (ada_language_data): Delete la_print_typedef
2401 initializer.
2402 (ada_language::print_typedef): New member function.
2403 * c-lang.c (c_language_data): Delete la_print_typedef initializer.
2404 (cplus_language_data): Likewise.
2405 (asm_language_data): Likewise.
2406 (minimal_language_data): Likewise.
2407 * d-lang.c (d_language_data): Likewise.
2408 * f-lang.c (f_language_data): Likewise.
2409 (f_language::print_typedef): New member function.
2410 * go-lang.c (go_language_data): Delete la_print_typedef
2411 initializer.
2412 * language.c (language_defn::print_typedef): Define member
2413 function.
2414 (unknown_language_data): Delete la_print_typedef initializer.
2415 (unknown_language::print_typedef): New member function.
2416 (auto_language_data): Delete la_print_typedef initializer.
2417 (auto_language::print_typedef): New member function.
2418 * language.h (language_data): Delete la_print_typedef field.
2419 (language_defn::print_typedef): Declare new member function.
2420 (LA_PRINT_TYPEDEF): Update call to print_typedef.
2421 (default_print_typedef): Delete declaration.
2422 * m2-lang.c (m2_language_data): Delete la_print_typedef
2423 initializer.
2424 (m2_language::print_typedef): New member function.
2425 * objc-lang.c (objc_language_data): Delete la_print_typedef
2426 initializer.
2427 * opencl-lang.c (opencl_language_data): Likewise.
2428 * p-lang.c (pascal_language_data): Likewise.
2429 (pascal_language::print_typedef): New member function.
2430 * rust-lang.c (rust_print_typedef): Delete function,
2431 implementation moved to rust_language::print_typedef.
2432 (rust_language): Delete la_print_typedef initializer.
2433 (rust_language::print_typedef): New member function,
2434 implementation from rust_print_typedef.
2435 * typeprint.c (default_print_typedef): Delete.
2436
2437 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
2438
2439 * ada-lang.c (ada_language_data): Delete la_printstr initializer.
2440 (ada_language::printstr): New member function.
2441 * c-lang.c (c_language_data): Delete la_printstr initializer.
2442 (cplus_language_data): Likewise.
2443 (asm_language_data): Likewise.
2444 (minimal_language_data): Likewise.
2445 * d-lang.c (d_language_data): Likewise.
2446 * f-lang.c (f_printstr): Rename to f_language::printstr.
2447 (f_language_data): Delete la_printstr initializer.
2448 (f_language::printstr): New member function, implementation from
2449 f_printstr.
2450 * go-lang.c (go_language_data): Delete la_printstr initializer.
2451 * language.c (language_defn::printstr): Define new member
2452 function.
2453 (unk_lang_printstr): Delete.
2454 (unknown_language_data): Delete la_printstr initializer.
2455 (unknown_language::printstr): New member function.
2456 (auto_language_data): Delete la_printstr initializer.
2457 (auto_language::printstr): New member function.
2458 * language.h (language_data): Delete la_printstr field.
2459 (language_defn::printstr): Declare new member function.
2460 (LA_PRINT_STRING): Update call to printstr.
2461 * m2-lang.c (m2_printstr): Rename to m2_language::printstr.
2462 (m2_language_data): Delete la_printstr initializer.
2463 (m2_language::printstr): New member function, implementation from
2464 m2_printstr.
2465 * objc-lang.c (objc_language_data): Delete la_printstr
2466 initializer.
2467 * opencl-lang.c (opencl_language_data): Likewise.
2468 * p-lang.c (pascal_printstr): Rename to pascal_language::printstr.
2469 (pascal_language_data): Delete la_printstr initializer.
2470 (pascal_language::printstr): New member function, implementation
2471 from pascal_printstr.
2472 * p-lang.h (pascal_printstr): Delete declaration.
2473 * rust-lang.c (rust_printstr): Update header comment.
2474 (rust_language_data): Delete la_printstr initializer.
2475 (rust_language::printstr): New member function.
2476
2477 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
2478
2479 * ada-lang.c (ada_language_data): Delete la_printchar initializer.
2480 (ada_language::printchar): New member function.
2481 * c-lang.c (c_language_data): Delete la_printchar initializer.
2482 (cplus_language_data): Likewise.
2483 (asm_language_data): Likewise.
2484 (minimal_language_data): Likewise.
2485 * d-lang.c (d_language_data): Likewise.
2486 * f-lang.c (f_printchar): Rename to f_language::printchar.
2487 (f_language_data): Delete la_printchar initializer.
2488 (f_language::printchar): New member function, implementation from
2489 f_printchar.
2490 * go-lang.c (go_language_data): Delete la_printchar initializer.
2491 * language.c (unk_lang_printchar): Delete.
2492 (language_defn::printchar): Define new member function.
2493 (unknown_language_data): Delete la_printchar initializer.
2494 (unknown_language::printchar): New member function.
2495 (auto_language_data): Delete la_printchar initializer.
2496 (auto_language::printchar): New member function.
2497 * language.h (language_data): Delete la_printchar field.
2498 (language_defn::printchar): Declare new member function.
2499 (LA_PRINT_CHAR): Update call to printchar.
2500 * m2-lang.c (m2_language_data): Delete la_printchar initializer.
2501 (m2_language::printchar): New member function.
2502 * objc-lang.c (objc_language_data): Delete la_printchar
2503 initializer.
2504 * opencl-lang.c (opencl_language_data): Likewise.
2505 * p-lang.c (pascal_language_data): Delete la_printchar
2506 initializer.
2507 (pascal_language::printchar): New member function.
2508 * rust-lang.c (rust_printchar): Rename to
2509 rust_language::printchar.
2510 (rust_language_data): Delete la_printchar initializer.
2511 (rust_language::printchar): New member function, implementation
2512 from rust_printchar.
2513
2514 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
2515
2516 * ada-lang.c (emit_char): Renamed to ada_language::emitchar.
2517 (ada_language_data): Delete la_emitchar initializer.
2518 (ada_language::emitchar): New member function, implementation from
2519 emit_char.
2520 * c-lang.c (c_language_data): Delete la_emitchar initializer.
2521 (cplus_language_data): Likewise.
2522 (asm_language_data): Likewise.
2523 (minimal_language_data): Likewise.
2524 * d-lang.c (d_language_data): Likewise.
2525 * f-lang.c (f_emit_char): Rename to f_language::emitchar.
2526 (f_language_data): Delete la_emitchar initializer.
2527 (f_language::emitchar): New member function, implementation from
2528 f_emit_char.
2529 * go-lang.c (go_language_data): Delete la_emitchar initializer.
2530 * language.c (unk_lang_emit_char): Delete.
2531 (language_defn::emitchar): New member function definition.
2532 (unknown_language_data): Delete la_emitchar initializer.
2533 (unknown_language::emitchar): New member function.
2534 (auto_language_data): Delete la_emitchar initializer.
2535 (auto_language::emitchar): New member function.
2536 * language.h (language_data): Delete la_emitchar field.
2537 (language_defn::emitchar): New member field declaration.
2538 (LA_EMIT_CHAR): Update call to emitchar.
2539 * m2-lang.c (m2_emit_char): Rename to m2_language::emitchar.
2540 (m2_language_data): Delete la_emitchar initializer.
2541 (m2_language::emitchar): New member function, implementation from
2542 m2_emit_char.
2543 * objc-lang.c (objc_language_data): Delete la_emitchar
2544 initializer.
2545 * opencl-lang.c (opencl_language_data): Likewise.
2546 * p-lang.c (pascal_emit_char): Rename to pascal_language::emitchar.
2547 (pascal_language_data): Delete la_emitchar initializer.
2548 (pascal_language::emitchar): New member function, implementation
2549 from pascal_emit_char.
2550 * rust-lang.c (rust_emitchar): Rename to rust_language::emitchar.
2551 (rust_language_data): Delete la_emitchar initializer.
2552 (rust_language::emitchar): New member function, implementation
2553 from rust_emitchar.
2554
2555 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
2556
2557 * ada-lang.c (resolve): Rename to ada_language::post_parser.
2558 (ada_language_data): Delete la_post_parser initializer.
2559 (ada_language::post_parser): New member function.
2560 * c-lang.c (c_language_data): Delete la_post_parser initializer.
2561 (cplus_language_data): Likewise.
2562 (asm_language_data): Likewise.
2563 (minimal_language_data): Likewise.
2564 * d-lang.c (d_language_data): Likewise.
2565 * f-lang.c (f_language_data): Likewise.
2566 * go-lang.c (go_language_data): Likewise.
2567 * language.c (unknown_language_data): Likewise.
2568 (auto_language_data): Likewise.
2569 * language.h (language_data): Delete la_post_parser field.
2570 (language_defn::post_parser): New member function.
2571 * m2-lang.c (m2_language_data): Delete la_post_parser initializer.
2572 * objc-lang.c (objc_language_data): Likewise.
2573 * opencl-lang.c (opencl_language_data): Likewise.
2574 * p-lang.c (pascal_language_data): Likewise.
2575 * parse.c (parse_exp_in_context): Update call to post_parser.
2576 (null_post_parser): Delete definition.
2577 * parser-defs.h (null_post_parser): Delete declaration.
2578 * rust-lang.c (rust_language_data): Delete la_post_parser
2579 initializer.
2580
2581 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
2582
2583 * ada-lang.c (parse): Rename to ada_language::parser.
2584 (ada_language_data): Delete la_parser initializer.
2585 (ada_language::parser): New member function, implementation from
2586 parse.
2587 * c-lang.c (c_language_data): Delete la_parser initializer.
2588 (cplus_language_data): Likewise.
2589 (asm_language_data): Likewise.
2590 (minimal_language_data): Likewise.
2591 * d-lang.c (d_language_data): Likewise.
2592 (d_language::parser): New member function.
2593 * f-lang.c (f_language_data): Delete la_parser initializer.
2594 (f_language::parser): New member function.
2595 * go-lang.c (go_language_data): Delete la_parser initializer.
2596 (go_language::parser): New member function.
2597 * language.c (unk_lang_parser): Delete.
2598 (language_defn::parser): Define new member function.
2599 (unknown_language_data): Delete la_parser initializer.
2600 (unknown_language::parser): New member function.
2601 (auto_language_data): Delete la_parser initializer.
2602 (auto_language::parser): New member function.
2603 * language.h (language_data): Delete la_parser field.
2604 (language_defn::parser): Declare new member function.
2605 * m2-lang.c (m2_language_data): Delete la_parser initializer.
2606 (m2_language::parser): New member function.
2607 * objc-lang.c (objc_language_data): Delete la_parser initializer.
2608 * opencl-lang.c (opencl_language_data): Likewise.
2609 * p-lang.c (pascal_language_data): Likewise.
2610 (pascal_language::parser): New member function.
2611 * parse.c (parse_exp_in_context): Update call to parser.
2612 * rust-lang.c (rust_language_data): Delete la_parser initializer.
2613 (rust_language::parser): New member function.
2614
2615 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
2616
2617 * top.c (print_gdb_configuration): Print --with-python-libdir
2618 configuration value.
2619
2620 2020-06-22 Philippe Waroquiers <philippe.waroquiers@skynet.be>
2621
2622 * NEWS: Mention change to the alias command.
2623
2624 2020-06-22 Philippe Waroquiers <philippe.waroquiers@skynet.be>
2625
2626 * cli/cli-cmds.c (lookup_cmd_for_default_args)
2627 (alias_command_completer)
2628 (make_alias_options_def_group): New functions.
2629 (alias_opts, alias_option_defs): New struct and array.
2630 (alias_usage_error): Update usage.
2631 (alias_command): Handles optional DEFAULT-ARGS... arguments.
2632 Use option framework.
2633 (_initialize_cli_cmds): Update alias command help.
2634 Update aliases command help.
2635 (show_user):
2636 Add NULL for new default_args lookup_cmd argument.
2637 (valid_command_p): Rename to validate_aliased_command.
2638 Add NULL for new default_args lookup_cmd argument. Verify that the
2639 aliased_command has no default args.
2640 * cli/cli-decode.c (help_cmd): Show aliases definitions.
2641 (lookup_cmd_1, lookup_cmd): New argument default_args.
2642 (add_alias_cmd):
2643 Add NULL for new default_args lookup_cmd argument.
2644 (print_help_for_command): Show default args under the layout
2645 alias some_alias = some_aliased_cmd some_alias_default_arg.
2646 * cli/cli-decode.h (struct cmd_list_element): New member default_args.
2647 xfree default_args in destructor.
2648 * cli/cli-script.c (process_next_line, do_define_command):
2649 Add NULL for new default_args lookup_cmd argument.
2650 * command.h: Declare new default_args argument in lookup_cmd
2651 and lookup_cmd_1.
2652 * completer.c (complete_line_internal_1):
2653 Add NULL for new default_args lookup_cmd or lookup_cmd_1 argument.
2654 * guile/scm-cmd.c (gdbscm_parse_command_name): Likewise.
2655 * guile/scm-param.c (add_setshow_generic, pascm_parameter_defined_p):
2656 Likewise.
2657 * infcmd.c (_initialize_infcmd): Likewise.
2658 * python/py-auto-load.c (gdbpy_initialize_auto_load): Likewise.
2659 * python/py-cmd.c (gdbpy_parse_command_name): Likewise.
2660 * python/py-param.c (add_setshow_generic): Likewise.
2661 * remote.c (_initialize_remote): Likewise.
2662 * top.c (execute_command): Prepend default_args if command has some.
2663 (set_verbose):
2664 Add NULL for new default_args lookup_cmd or lookup_cmd_1 argument.
2665 * tracepoint.c (validate_actionline, encode_actions_1):
2666 Add NULL for new default_args lookup_cmd or lookup_cmd_1 argument.
2667
2668 2020-06-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2669
2670 * jit.c (jit_read_descriptor): Use bool as the return type.
2671 (jit_breakpoint_re_set_internal): Use bool as the return type.
2672 Invert the return value logic; return true if the jit breakpoint
2673 has been successfully initialized.
2674 (jit_inferior_init): Update the call to
2675 jit_breakpoint_re_set_internal.
2676
2677 2020-06-22 Pedro Alves <palves@redhat.com>
2678
2679 PR gdb/25939
2680 * procfs.c (procfs_target::wait): Don't reference inferior_ptid.
2681 Use the current inferior instead. Don't return
2682 TARGET_WAITKIND_SPURIOUS/inferior_ptid -- instead continue and
2683 wait again.
2684 * sol-thread.c (sol_thread_target::wait): Don't reference
2685 inferior_ptid.
2686 (ps_lgetregs, ps_lsetregs, ps_lgetfpregs, ps_lsetfpregs)
2687 (sol_update_thread_list_callback): Use the current inferior's pid
2688 instead of inferior_ptid.
2689
2690 2020-06-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2691
2692 * procfs.c: Cleanup many comments.
2693
2694 (READ_WATCHFLAG, WRITE_WATCHFLAG, EXEC_WATCHFLAG)
2695 (AFTER_WATCHFLAG): Replace by value.
2696
2697 (MAIN_PROC_NAME_FORMAT): Inline ...
2698 (create_procinfo): ... here.
2699
2700 (procfs_debug_inferior): Remove SYS_exec handling.
2701 (syscall_is_exec): Likewise.
2702 (procfs_set_exec_trap): Likewise.
2703
2704 (syscall_is_lwp_exit): Inline in callers.
2705 (syscall_is_exit): Likewise.
2706 (syscall_is_exec): Likewise.
2707 (syscall_is_lwp_create): Likewise.
2708
2709 (invalidate_cache): Remove #if 0 code.
2710
2711 (make_signal_thread_runnable): Remove.
2712 (procfs_target::resume): Remove #if 0 code.
2713
2714 2020-06-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2715
2716 PR gdb/25939
2717 * procfs.c (procfs_target::procfs_init_inferior): Move push_target
2718 call ...
2719 (procfs_target::create_inferior): ... here.
2720
2721 2020-06-21 Philippe Waroquiers <philippe.waroquiers@skynet.be>
2722
2723 * exec.c (validate_exec_file): Ensure the build-id is up to
2724 date by calling reopen_exec_file (that checks file timestamp
2725 to decide to re-read the file).
2726
2727 2020-06-18 Pedro Alves <palves@redhat.com>
2728
2729 PR gdb/25412
2730 * gdbthread.h (delete_thread, delete_thread_silent)
2731 (find_thread_ptid): Update comments.
2732 * thread.c (current_thread_): New global.
2733 (is_current_thread): Move higher, and reimplement.
2734 (inferior_thread): Reimplement.
2735 (set_thread_exited): Use bool. Add assertions.
2736 (add_thread_silent): Simplify thread-reuse handling by always
2737 calling delete_thread.
2738 (delete_thread): Remove intro comment.
2739 (find_thread_ptid): Skip exited threads.
2740 (switch_to_thread_no_regs): Write to current_thread_.
2741 (switch_to_no_thread): Check CURRENT_THREAD_ instead of
2742 INFERIOR_PTID. Clear current_thread_.
2743
2744 2020-06-18 Pedro Alves <palves@redhat.com>
2745
2746 * aix-thread.c (pd_update): Use switch_to_thread.
2747
2748 2020-06-18 Pedro Alves <palves@redhat.com>
2749
2750 * ravenscar-thread.c (ravenscar_thread_target): Update.
2751 (ravenscar_thread_target::update_inferior_ptid): Rename to ...
2752 (ravenscar_thread_target::add_active_thread): ... this. Don't
2753 set m_base_ptid here. Update to avoid referencing inferior_ptid.
2754 (ravenscar_thread_target::wait): Don't write to inferior_ptid.
2755
2756 2020-06-18 Pedro Alves <palves@redhat.com>
2757
2758 * nat/windows-nat.c (current_windows_thread): Remove.
2759 * nat/windows-nat.h (current_windows_thread): Remove.
2760 * windows-nat.c (windows_nat_target::stopped_by_sw_breakpoint):
2761 Adjust.
2762 (display_selectors): Adjust to fetch the current
2763 windows_thread_info based on inferior_ptid.
2764 (fake_create_process): No longer write to current_windows_thread.
2765 (windows_nat_target::get_windows_debug_event):
2766 Don't set inferior_ptid or current_windows_thread.
2767 (windows_nat_target::wait): Adjust to not rely on
2768 current_windows_thread.
2769 (do_initial_windows_stuff): Now a method of windows_nat_target.
2770 Switch to the last_ptid thread.
2771 (windows_nat_target::attach): Adjust.
2772 (windows_nat_target::detach): Use switch_to_no_thread instead of
2773 writing to inferior_ptid directly.
2774 (windows_nat_target::create_inferior): Adjust.
2775
2776 2020-06-18 Pedro Alves <palves@redhat.com>
2777
2778 * windows-nat.c (do_initial_windows_stuff): No longer set inferior_ptid.
2779
2780 2020-06-18 Pedro Alves <palves@redhat.com>
2781
2782 * go32-nat.c (go32_nat_target::create_inferior): Switch to thread
2783 after creating it, instead of writing to inferior_ptid. Don't
2784 write to inferior_ptid.
2785
2786 2020-06-18 Pedro Alves <palves@redhat.com>
2787
2788 * fork-child.c (postfork_hook): Don't write to inferior_ptid.
2789
2790 2020-06-18 Pedro Alves <palves@redhat.com>
2791
2792 * bsd-kvm.c (bsd_kvm_target_open): Switch to thread after adding
2793 it, instead of writing to inferior_ptid.
2794
2795 2020-06-18 Pedro Alves <palves@redhat.com>
2796
2797 * btrace.c (btrace_fetch): Use switch_to_thread instead of writing
2798 to inferior_ptid.
2799
2800 2020-06-18 Pedro Alves <palves@redhat.com>
2801
2802 * bsd-kvm.c (bsd_kvm_target::close): Use switch_to_no_thread
2803 instead of writing to inferior_ptid directly.
2804
2805 2020-06-18 Pedro Alves <palves@redhat.com>
2806
2807 * corelow.c (core_target::close): Use switch_to_no_thread instead
2808 of writing to inferior_ptid directly.
2809 (add_to_thread_list, core_target_open): Use switch_to_thread
2810 instead of writing to inferior_ptid directly.
2811
2812 2020-06-18 Pedro Alves <palves@redhat.com>
2813
2814 * darwin-nat.c (darwin_nat_target::decode_message): Don't write to
2815 inferior_ptid.
2816 (darwin_nat_target::stop_inferior, darwin_nat_target::kill): Avoid
2817 inferior_ptid.
2818 (darwin_attach_pid): Use switch_to_no_thread instead of writing to
2819 inferior_ptid directly.
2820 (darwin_nat_target::init_thread_list): Switch to thread, instead
2821 of writing to inferior_ptid.
2822 (darwin_nat_target::attach): Don't write to inferior_ptid.
2823 (darwin_nat_target::get_ada_task_ptid): Avoid inferior_ptid.
2824
2825 2020-06-18 Pedro Alves <palves@redhat.com>
2826
2827 * gnu-nat.c (gnu_nat_target::create_inferior): Switch to the added
2828 thread.
2829 (gnu_nat_target::attach): Don't write to inferior_ptid directly.
2830 Instead use switch_to_thread.
2831 (gnu_nat_target::detach): Use switch_to_no_thread
2832 instead of writing to inferior_ptid directly. Used passed-in
2833 inferior instead of looking up the inferior by pid.
2834
2835 2020-06-18 Pedro Alves <palves@redhat.com>
2836
2837 * go32-nat.c (go32_nat_target::create_inferior): Don't write to
2838 inferior_ptid.
2839
2840 2020-06-18 Pedro Alves <palves@redhat.com>
2841
2842 * nto-procfs.c (nto_procfs_target::update_thread_list): Avoid
2843 inferior_ptid.
2844 (nto_procfs_target::attach): Avoid inferior_ptid. Switch to
2845 thread.
2846 (nto_procfs_target::detach): Avoid referencing
2847 inferior_ptid. Use switch_to_no_thread instead of writing to
2848 inferior_ptid directly.
2849 (nto_procfs_target::mourn_inferior): Use switch_to_no_thread
2850 instead of writing to inferior_ptid directly.
2851 (nto_procfs_target::create_inferior): Avoid inferior_ptid. Switch
2852 to thread.
2853
2854 2020-06-18 Pedro Alves <palves@redhat.com>
2855
2856 * remote-sim.c (gdbsim_target::create_inferior): Switch to thread
2857 after creating it, instead of writing to inferior_ptid.
2858 (gdbsim_target_open): Use switch_to_no_thread instead of writing
2859 to inferior_ptid directly.
2860 (gdbsim_target::wait): Don't write to inferior_ptid.
2861
2862 2020-06-18 Pedro Alves <palves@redhat.com>
2863
2864 * remote.c (remote_target::remote_notice_new_inferior): Use
2865 switch_to_thread instead of writing to inferior_ptid directly.
2866 (remote_target::add_current_inferior_and_thread): Use
2867 switch_to_no_thread instead of writing to inferior_ptid directly.
2868 (extended_remote_target::attach): Use switch_to_inferior_no_thread
2869 and switch_to_thread instead of using set_current_inferior or
2870 writing to inferior_ptid directly.
2871
2872 2020-06-18 Pedro Alves <palves@redhat.com>
2873
2874 * tracectf.c (ctf_target_open): Switch to added thread instead of
2875 writing to inferior_ptid directly.
2876 (ctf_target::close): Use switch_to_no_thread instead of writing to
2877 inferior_ptid directly.
2878
2879 2020-06-18 Pedro Alves <palves@redhat.com>
2880
2881 * tracefile-tfile.c (tfile_target_open): Don't write to
2882 inferior_ptid directly, instead switch to added thread.
2883 (tfile_target::close): Use switch_to_no_thread instead of writing
2884 to inferior_ptid directly.
2885
2886 2020-06-18 Pedro Alves <palves@redhat.com>
2887
2888 * procfs.c (procfs_target::attach): Don't write to inferior_ptid.
2889 (procfs_target::detach): Use switch_to_no_thread
2890 instead of writing to inferior_ptid directly.
2891 (do_attach): Change return type to void. Switch to the added
2892 thread.
2893 (procfs_target::create_inferior): Switch to the added thread.
2894 (procfs_do_thread_registers): Don't write to inferior_ptid.
2895
2896 2020-06-18 Pedro Alves <palves@redhat.com>
2897
2898 * infrun.c (generic_mourn_inferior): Use switch_to_thread instead
2899 of writing to inferior_ptid.
2900 (scoped_restore_exited_inferior): Delete.
2901 (handle_vfork_child_exec_or_exit): Simplify using
2902 scoped_restore_current_pspace_and_thread. Use switch_to_thread
2903 instead of writing to inferior_ptid.
2904 (THREAD_STOPPED_BY): Delete.
2905 (thread_stopped_by_watchpoint, thread_stopped_by_sw_breakpoint)
2906 (thread_stopped_by_hw_breakpoint): Delete.
2907 (save_waitstatus): Use
2908 scoped_restore_current_thread+switch_to_thread, and call
2909 target_stopped_by_watchpoint instead of
2910 thread_stopped_by_watchpoint, target_stopped_by_sw_breakpoint
2911 instead of thread_stopped_by_sw_breakpoint, and
2912 target_stopped_by_hw_breakpoint instead of
2913 thread_stopped_by_hw_breakpoint.
2914 (handle_inferior_event)
2915 <TARGET_WAITKIND_EXITED/TARGET_WAITKIND_SIGNALLED>: Don't write to
2916 inferior_ptid directly, nor
2917 set_current_inferior/set_current_program_space. Use
2918 switch_to_thread / switch_to_inferior_no_thread instead.
2919
2920 2020-06-18 Pedro Alves <palves@redhat.com>
2921
2922 * target.c (generic_mourn_inferior): Use switch_to_no_thread
2923 instead of writing to inferior_ptid.
2924
2925 2020-06-18 Pedro Alves <palves@redhat.com>
2926
2927 * inf-ptrace.c (inf_ptrace_target::create_inferior): Switch to the
2928 added thread.
2929 (inf_ptrace_target::attach): Don't write to inferior_ptid. Switch
2930 to the added thread.
2931 (inf_ptrace_target::detach_success): Use switch_to_no_thread
2932 instead of writing to inferior_ptid.
2933
2934 2020-06-18 Pedro Alves <palves@redhat.com>
2935
2936 * gdbarch-selftests.c: Include "progspace-and-thread.h".
2937 (register_to_value_test): Mock a program_space too. Heap-allocate
2938 the address space. Don't write to inferior_ptid. Use
2939 switch_to_thread instead.
2940
2941 2020-06-18 Pedro Alves <palves@redhat.com>
2942
2943 * linux-tdep.c (find_signalled_thread(thread_info *,void *)):
2944 Delete.
2945 (find_signalled_thread()): New, factored out from
2946 linux_make_corefile_notes and adjusted to handle exited threads.
2947 (linux_make_corefile_notes): Adjust to use the new
2948 find_signalled_thread.
2949
2950 2020-06-18 Pedro Alves <palves@redhat.com>
2951
2952 * linux-tdep.c (btrace_fetch): Save/restore current thread instead
2953 of saving/restoring inferior_ptid.
2954
2955 2020-06-17 Tom Tromey <tom@tromey.com>
2956
2957 * tui/tui-win.h (tui_scroll_forward, tui_scroll_backward)
2958 (tui_scroll_left, tui_scroll_right, struct tui_win_info): Don't
2959 declare.
2960 * tui/tui-data.h (MIN_CMD_WIN_HEIGHT): Remove.
2961
2962 2020-06-15 Simon Marchi <simon.marchi@efficios.com>
2963
2964 * dwarf2/read.c (dwarf2_initialize_objfile): Check for presence
2965 of partial symtabs.
2966
2967 2020-06-17 Simon Marchi <simon.marchi@efficios.com>
2968
2969 * regformats/reg-arm.dat: Remove.
2970 * regformats/reg-bfin.dat: Remove.
2971 * regformats/reg-cris.dat: Remove.
2972 * regformats/reg-crisv32.dat: Remove.
2973 * regformats/reg-m32r.dat: Remove.
2974 * regformats/reg-tilegx.dat: Remove.
2975 * regformats/reg-tilegx32.dat: Remove.
2976
2977 2020-06-17 Simon Marchi <simon.marchi@efficios.com>
2978
2979 * features/Makefile (WHICH): Remove arm files.
2980 * regformats/arm/arm-with-iwmmxt.dat: Remove.
2981 * regformats/arm/arm-with-neon.dat: Remove.
2982 * regformats/arm/arm-with-vfpv2.dat: Remove.
2983 * regformats/arm/arm-with-vfpv3.dat: Remove.
2984
2985 2020-06-17 Simon Marchi <simon.marchi@efficios.com>
2986
2987 * features/Makefile (XMLTOC): Remove rx.xml.
2988
2989 2020-06-17 Pedro Alves <palves@redhat.com>
2990
2991 * gdbthread.h (thread_control_state) <trap_expected> Update
2992 comments.
2993
2994 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
2995
2996 * ada-lang.c (ada_lookup_symbol_nonlocal): Rename to
2997 ada_language::lookup_symbol_nonlocal.
2998 (ada_language_data): Delete la_lookup_symbol_nonlocal initializer.
2999 (ada_language::lookup_symbol_nonlocal): New member function,
3000 implementation from ada_lookup_symbol_nonlocal.
3001 * c-lang.c (c_language_data): Delete la_lookup_symbol_nonlocal
3002 initializer.
3003 (cplus_language_data): Delete la_lookup_symbol_nonlocal
3004 initializer.
3005 (cplus_language::lookup_symbol_nonlocal): New member function.
3006 (asm_language_data): Delete la_lookup_symbol_nonlocal initializer.
3007 (minimal_language_data) Likewise.
3008 * cp-namespace.c (cp_lookup_nested_symbol): Update comment.
3009 * d-lang.c (d_language_data): Delete la_lookup_symbol_nonlocal
3010 initializer.
3011 (d_language::lookup_symbol_nonlocal): New member function.
3012 * f-lang.c (f_language_data): Delete la_lookup_symbol_nonlocal
3013 initializer.
3014 (f_language::lookup_symbol_nonlocal): New member function.
3015 * go-lang.c (go_language_data): Delete la_lookup_symbol_nonlocal
3016 initializer.
3017 * language.c (unknown_language_data): Likewise.
3018 (auto_language_data): Likewise.
3019 * language.h (language_data): Delete la_lookup_symbol_nonlocal
3020 field.
3021 (language_defn::lookup_symbol_nonlocal): New member function.
3022 * m2-lang.c (m2_language_data): Delete la_lookup_symbol_nonlocal
3023 initializer.
3024 * objc-lang.c (objc_language_data): Likewise.
3025 * opencl-lang.c (opencl_language_data): Likewise.
3026 * p-lang.c (pascal_language_data): Likewise.
3027 * rust-lang.c (rust_lookup_symbol_nonlocal): Rename to
3028 rust_language::lookup_symbol_nonlocal.
3029 (rust_language_data): Delete la_lookup_symbol_nonlocal
3030 initializer.
3031 (rust_language::lookup_symbol_nonlocal): New member function,
3032 implementation from rust_lookup_symbol_nonlocal.
3033 * symtab.c (lookup_symbol_aux): Update call to
3034 lookup_symbol_nonlocal.
3035 (basic_lookup_symbol_nonlocal): Rename to...
3036 (language_defn::lookup_symbol_nonlocal): ...this, and update
3037 header comment. Remove language_defn parameter, and replace with
3038 uses of `this'.
3039 * symtab.h (basic_lookup_symbol_nonlocal): Delete declaration.
3040
3041 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
3042
3043 * ada-lang.c (ada_language_data): Delete la_value_print_inner
3044 initializer.
3045 (ada_language::value_print_inner): New member function.
3046 * c-lang.c (c_language_data): Delete la_value_print_inner
3047 initializer.
3048 (cplus_language_data): Likewise.
3049 (asm_language_data): Likewise.
3050 (minimal_language_data): Likewise.
3051 * d-lang.c (d_language_data): Likewise.
3052 (d_language::value_print_inner): New member function.
3053 * f-lang.c (f_language_data): Delete la_value_print_inner
3054 initializer.
3055 (f_language::value_print_inner): New member function.
3056 * f-lang.h (f_value_print_innner): Rename to...
3057 (f_value_print_inner): ...this (note spelling of 'inner').
3058 * f-valprint.c (f_value_print_innner): Rename to...
3059 (f_value_print_inner): ...this (note spelling of 'inner').
3060 * go-lang.c (go_language_data): Delete la_value_print_inner
3061 initializer.
3062 (go_language::value_print_inner): New member function.
3063 * language.c (language_defn::value_print_inner): Define new member
3064 function.
3065 (unk_lang_value_print_inner): Delete.
3066 (unknown_language_data): Delete la_value_print_inner initializer.
3067 (unknown_language::value_print_inner): New member function.
3068 (auto_language_data): Delete la_value_print_inner initializer.
3069 (auto_language::value_print_inner): New member function.
3070 * language.h (language_data): Delete la_value_print_inner field.
3071 (language_defn::value_print_inner): Delcare new member function.
3072 * m2-lang.c (m2_language_data): Delete la_value_print_inner
3073 initializer.
3074 (m2_language::value_print_inner): New member function.
3075 * objc-lang.c (objc_language_data): Delete la_value_print_inner
3076 initializer.
3077 * opencl-lang.c (opencl_language_data): Likewise.
3078 * p-lang.c (pascal_language_data): Likewise.
3079 (pascal_language::value_print_inner): New member function.
3080 * rust-lang.c (rust_language_data): Delete la_value_print_inner
3081 initializer.
3082 (rust_language::value_print_inner): New member function.
3083 * valprint.c (do_val_print): Update call to value_print_inner.
3084
3085 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
3086
3087 * ada-lang.c (ada_language_data): Delete la_value_print
3088 initializer.
3089 (ada_language::value_print): New member function.
3090 * c-lang.c (c_language_data): Delete la_value_print initializer.
3091 (cplus_language_data): Likewise.
3092 (asm_language_data): Likewise.
3093 (minimal_language_data): Likewise.
3094 * d-lang.c (d_language_data): Likewise.
3095 * f-lang.c (f_language_data): Likewise.
3096 * go-lang.c (go_language_data): Likewise.
3097 * language.c (unk_lang_value_print): Delete.
3098 (language_defn::value_print): Define new member function.
3099 (unknown_language_data): Delete la_value_print initializer.
3100 (unknown_language::value_print): New member function.
3101 (auto_language_data): Delete la_value_print initializer.
3102 (auto_language::value_print): New member function.
3103 * language.h (language_data): Delete la_value_print field.
3104 (language_defn::value_print): Declare new member function.
3105 (LA_VALUE_PRINT): Update call to value_print.
3106 * m2-lang.c (m2_language_data): Delete la_value_print initializer.
3107 * objc-lang.c (objc_language_data): Likewise.
3108 * opencl-lang.c (opencl_language_data): Likewise.
3109 * p-lang.c (pascal_language_data): Likewise.
3110 (pascal_language::value_print): New member function.
3111 * rust-lang.c (rust_language_data): Delete la_value_print
3112 initializer.
3113
3114 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
3115
3116 * ada-lang.c (ada_watch_location_expression): Rename to
3117 ada_language::watch_location_expression.
3118 (ada_language_data): Delete la_watch_location_expression
3119 initializer.
3120 (ada_language::watch_location_expression): New member function,
3121 implementation from ada_watch_location_expression.
3122 * breakpoint.c (watch_command_1): Update call to
3123 watch_location_expression.
3124 * c-lang.c (c_watch_location_expression): Rename to
3125 language_defn::watch_location_expression.
3126 (c_language_data): Delete la_watch_location_expression
3127 initializer.
3128 (cplus_language_data): Likewise.
3129 (asm_language_data): Likewise.
3130 (minimal_language_data): Likewise.
3131 * c-lang.h (c_watch_location_expression): Delete declaration.
3132 * d-lang.c (d_language_data): Delete la_watch_location_expression
3133 initializer.
3134 * f-lang.c (f_language_data): Likewise.
3135 * go-lang.c (go_language_data): Likewise.
3136 * language.c (language_defn::watch_location_expression): Member
3137 function implementation from c_watch_location_expression.
3138 (unknown_language_data): Delete la_watch_location_expression
3139 initializer.
3140 (auto_language_data): Likewise.
3141 * language.h (language_data): Delete la_watch_location_expression
3142 field.
3143 (language_defn::watch_location_expression): Declare new member
3144 function.
3145 * m2-lang.c (m2_language_data): Delete
3146 la_watch_location_expression initializer.
3147 * objc-lang.c (objc_language_data): Likewise.
3148 * opencl-lang.c (opencl_language_data): Likewise.
3149 * p-lang.c (pascal_language_data): Likewise.
3150 * rust-lang.c (rust_watch_location_expression): Rename to
3151 rust_language::watch_location_expression.
3152 (rust_language_data): Delete la_watch_location_expression
3153 initializer.
3154 (rust_language::watch_location_expression): New member function,
3155 implementation from rust_watch_location_expression.
3156
3157 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
3158
3159 * ada-lang.c (ada_collect_symbol_completion_matches): Rename to
3160 ada_language::collect_symbol_completion_matches.
3161 (ada_language_data): Delete la_collect_symbol_completion_matches
3162 initializer.
3163 (ada_language::collect_symbol_completion_matches): New member
3164 function, implementation from
3165 ada_collect_symbol_completion_matches.
3166 * c-lang.c (c_language_data): Delete
3167 la_collect_symbol_completion_matches initializer.
3168 (cplus_language_data): Likewise.
3169 (asm_language_data): Likewise.
3170 (minimal_language_data): Likewise.
3171 * d-lang.c (d_language_data): Likewise.
3172 * f-lang.c (f_collect_symbol_completion_matches): Rename to
3173 f_language::collect_symbol_completion_matches.
3174 (f_language_data): Delete la_collect_symbol_completion_matches
3175 initializer.
3176 (f_language::collect_symbol_completion_matches) New member
3177 function, implementation from f_collect_symbol_completion_matches.
3178 * go-lang.c (go_language_data): Delete
3179 la_collect_symbol_completion_matches initializer.
3180 * language.c (unknown_language_data): Likewise.
3181 (auto_language_data): Likewise.
3182 * language.h (language_data): Delete
3183 la_collect_symbol_completion_matches field.
3184 (language_defn::collect_symbol_completion_matches): New member
3185 function.
3186 * m2-lang.c (m2_language_data): Delete
3187 la_collect_symbol_completion_matches initializer.
3188 * objc-lang.c (objc_language_data): Likewise.
3189 * opencl-lang.c (opencl_language_data): Likewise.
3190 * p-lang.c (pascal_language_data): Likewise.
3191 * rust-lang.c (rust_language_data): Likewise.
3192 * symtab.c (default_collect_symbol_completion_matches): Delete.
3193 (collect_symbol_completion_matches): Update call to
3194 collect_symbol_completion_matches.
3195 (collect_symbol_completion_matches_type): Likewise.
3196 * symtab.h (default_collect_symbol_completion_matches): Delete
3197 declaration.
3198
3199 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
3200
3201 * ada-lang.c (ada_get_gdb_completer_word_break_characters): Delete.
3202 (ada_language_data): Delete la_word_break_characters initializer.
3203 (ada_language::word_break_characters): New member function.
3204 * c-lang.c (c_language_data): Delete la_word_break_characters
3205 initializer.
3206 (cplus_language_data): Likewise.
3207 (asm_language_data): Likewise.
3208 (minimal_language_data): Likewise.
3209 * completer.c: Update global comment.
3210 (advance_to_expression_complete_word_point): Update call to
3211 word_break_characters.
3212 (complete_files_symbols): Likewise.
3213 (complete_line_internal_1): Likewise.
3214 (default_completer_handle_brkchars): Likewise.
3215 (skip_quoted_chars): Likewise.
3216 * d-lang.c (d_language_data): Delete la_word_break_characters
3217 initializer.
3218 * f-lang.c (f_word_break_characters): Delete.
3219 (f_language_data): Delete la_word_break_characters initializer.
3220 (f_language::word_break_characters): New member function.
3221 * go-lang.c (go_language_data): Delete la_word_break_characters
3222 initializer.
3223 * language.c (unknown_language_data): Likewise.
3224 (auto_language_data): Likewise.
3225 * language.h (default_word_break_characters): Move declaration to
3226 earlier in the file.
3227 (language_data): Delete la_word_break_characters field.
3228 (language_defn::word_break_characters): New member function.
3229 * m2-lang.c (m2_language_data): Delete la_word_break_characters
3230 initializer.
3231 * objc-lang.c (objc_language_data): Likewise.
3232 * opencl-lang.c (opencl_language_data): Likewise.
3233 * p-lang.c (pascal_language_data): Likewise.
3234 * rust-lang.c (rust_language_data): Likewise.
3235
3236 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
3237
3238 * ada-lang.c (ada_get_symbol_name_matcher): Update header comment.
3239 (ada_language_data): Delete la_get_symbol_name_matcher
3240 initializer.
3241 (language_defn::get_symbol_name_matcher_inner): New member
3242 function.
3243 * c-lang.c (c_language_data): Delete la_get_symbol_name_matcher
3244 initializer.
3245 (cplus_language_data): Likewise.
3246 (cplus_language::get_symbol_name_matcher_inner): New member
3247 function.
3248 (asm_language_data): Delete la_get_symbol_name_matcher initializer.
3249 (minimal_language_data): Likewise.
3250 * cp-support.h (cp_get_symbol_name_matcher): Update header comment.
3251 * d-lang.c (d_language_data): Delete la_get_symbol_name_matcher
3252 initializer.
3253 * dictionary.c (iter_match_first_hashed): Update call to
3254 get_symbol_name_matcher.
3255 (iter_match_next_hashed): Likewise.
3256 (iter_match_next_linear): Likewise.
3257 * dwarf2/read.c (dw2_expand_symtabs_matching_symbol): Likewise.
3258 * f-lang.c (f_language_data): Delete la_get_symbol_name_matcher
3259 initializer.
3260 (f_language::get_symbol_name_matcher_inner): New member function.
3261 * go-lang.c (go_language_data): Delete la_get_symbol_name_matcher
3262 initializer.
3263 * language.c (default_symbol_name_matcher): Update header comment,
3264 make static.
3265 (language_defn::get_symbol_name_matcher): New definition.
3266 (language_defn::get_symbol_name_matcher_inner): Likewise.
3267 (get_symbol_name_matcher): Delete.
3268 (unknown_language_data): Delete la_get_symbol_name_matcher
3269 initializer.
3270 (auto_language_data): Likewise.
3271 * language.h (language_data): Delete la_get_symbol_name_matcher
3272 field.
3273 (language_defn::get_symbol_name_matcher): New member function.
3274 (language_defn::get_symbol_name_matcher_inner): Likewise.
3275 (default_symbol_name_matcher): Delete declaration.
3276 * linespec.c (find_methods): Update call to
3277 get_symbol_name_matcher.
3278 * m2-lang.c (m2_language_data): Delete la_get_symbol_name_matcher
3279 initializer.
3280 * minsyms.c (lookup_minimal_symbol): Update call to
3281 get_symbol_name_matcher.
3282 (iterate_over_minimal_symbols): Likewise.
3283 * objc-lang.c (objc_language_data): Delete
3284 la_get_symbol_name_matcher initializer.
3285 * opencl-lang.c (opencl_language_data): Likewise.
3286 * p-lang.c (pascal_language_data): Likewise.
3287 * psymtab.c (psymbol_name_matches): Update call to
3288 get_symbol_name_matcher.
3289 * rust-lang.c (rust_language_data): Delete
3290 la_get_symbol_name_matcher initializer.
3291 * symtab.c (symbol_matches_search_name): Update call to
3292 get_symbol_name_matcher.
3293 (compare_symbol_name): Likewise.
3294
3295 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
3296
3297 * ada-lang.c (ada_language_data): Delete la_compute_program
3298 initializer.
3299 * c-lang.c (c_language_data): Likewise.
3300 (c_language::compute_program): New member function.
3301 (cplus_language_data): Delete la_compute_program initializer.
3302 (cplus_language::compute_program): New member function.
3303 (asm_language_data): Delete la_compute_program initializer.
3304 (minimal_language_data): Likewise.
3305 * c-lang.h (c_compute_program): Update comment.
3306 (cplus_compute_program): Likewise.
3307 * compile/compile-c-support.c (c_compute_program): Likewise.
3308 (cplus_compute_program): Likewise.
3309 * compile/compile.c (compile_to_object): Update call to
3310 la_compute_program.
3311 * d-lang.c (d_language_data): Delete la_compute_program
3312 initializer.
3313 * f-lang.c (f_language_data): Likewise.
3314 * go-lang.c (go_language_data): Likewise.
3315 * language.c (unknown_language_data): Likewise.
3316 (auto_language_data): Likewise.
3317 * language.h (language_data): Delete la_compute_program field.
3318 (language_defn::compute_program): New member function.
3319 * m2-lang.c (m2_language_data): Delete la_compute_program
3320 initializer.
3321 * objc-lang.c (objc_language_data): Likewise.
3322 * opencl-lang.c (opencl_language_data): Likewise.
3323 * p-lang.c (pascal_language_data): Likewise.
3324 * rust-lang.c (rust_language_data): Likewise.
3325
3326 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
3327
3328 * ada-lang.c (ada_language_data) Delete
3329 la_class_name_from_physname initializer.
3330 * c-lang.c (c_language_data): Likewise.
3331 (cplus_language_data): Likewise.
3332 (cplus_language::class_name_from_physname): New member function.
3333 (asm_language_data): Delete la_class_name_from_physname
3334 initializer.
3335 (minimal_language_data): Likewise.
3336 * d-lang.c (d_language_data): Likewise.
3337 * dwarf2/read.c (guess_partial_die_structure_name): Update to call
3338 method on language_defn class.
3339 (guess_full_die_structure_name): Likewise.
3340 * f-lang.c (f_language_data): Delete la_class_name_from_physname
3341 initializer.
3342 * go-lang.c (go_language_data): Likewise.
3343 * language.c (language_class_name_from_physname): Delete.
3344 (unk_lang_class_name): Delete.
3345 (unknown_language_data): Delete la_class_name_from_physname
3346 initializer.
3347 (auto_language_data): Likewise.
3348 * language.h (language_data): Delete la_class_name_from_physname
3349 field.
3350 (language_defn::class_name_from_physname): New function.
3351 (language_class_name_from_physname): Delete declaration.
3352 * m2-lang.c (m2_language_data): Delete la_class_name_from_physname
3353 initializer.
3354 * objc-lang.c (objc_language_data): Likewise.
3355 * opencl-lang.c (opencl_language_data): Likewise.
3356 * p-lang.c (pascal_language_data): Likewise.
3357 * rust-lang.c (rust_language_data): Likewise.
3358
3359 2020-06-16 Tom Tromey <tom@tromey.com>
3360
3361 * tui/tui-data.h (STATUS_NAME): New macro.
3362 * tui/tui-layout.c (tui_remove_some_windows)
3363 (initialize_known_windows, tui_register_window)
3364 (tui_layout_split::remove_windows, initialize_layouts)
3365 (tui_new_layout_command): Don't use hard-coded window names.
3366
3367 2020-06-16 Tom Tromey <tom@tromey.com>
3368
3369 PR tui/25348:
3370 * tui/tui.c (tui_ensure_readline_initialized): Rename from
3371 tui_initialize_readline. Only run once. Call rl_initialize.
3372 * tui/tui.h (tui_ensure_readline_initialized): Rename from
3373 tui_initialize_readline.
3374 * tui/tui-io.c (tui_setup_io): Call
3375 tui_ensure_readline_initialized.
3376 * tui/tui-interp.c (tui_interp::init): Update.
3377
3378 2020-06-16 Tom Tromey <tom@tromey.com>
3379
3380 * tui/tui-layout.c (tui_layout_split::remove_windows): Fix logic.
3381 Also preserve the status window.
3382
3383 2020-06-16 Tom Tromey <tom@tromey.com>
3384
3385 * python/py-tui.c (tui_py_window::~tui_py_window): Handle case
3386 where m_window==nullptr.
3387
3388 2020-06-15 Tom Tromey <tromey@adacore.com>
3389
3390 * windows-nat.c (windows_nat::handle_output_debug_string):
3391 Update.
3392 (windows_nat::handle_ms_vc_exception): Update.
3393 * target.h (target_read_string): Change API.
3394 * target.c (target_read_string): Change API.
3395 * solib-svr4.c (open_symbol_file_object, svr4_read_so_list):
3396 Update.
3397 * solib-frv.c (frv_current_sos): Update.
3398 * solib-dsbt.c (dsbt_current_sos): Update.
3399 * solib-darwin.c (darwin_current_sos): Update.
3400 * linux-thread-db.c (inferior_has_bug): Update.
3401 * expprint.c (print_subexp_standard): Update.
3402 * ada-lang.c (ada_main_name, ada_tag_name_from_tsd)
3403 (ada_exception_message_1): Update.
3404
3405 2020-06-15 Tom Tromey <tromey@adacore.com>
3406
3407 * linux-tdep.c (dump_mapping_p): Use target_read_memory.
3408
3409 2020-06-15 Tom Tromey <tromey@adacore.com>
3410
3411 * valprint.c (read_string): Update comment.
3412 * target.c (MIN): Remove.
3413 (target_read_string): Rewrite.
3414
3415 2020-06-15 Tom Tromey <tromey@adacore.com>
3416
3417 * corefile.c (read_memory_string): Remove.
3418 * ada-valprint.c (ada_value_print_ptr): Update.
3419 * ada-lang.h (ada_tag_name): Change return type.
3420 * ada-lang.c (type_from_tag): Update.
3421 (ada_tag_name_from_tsd): Change return type. Use
3422 target_read_string.
3423 (ada_tag_name): Likewise.
3424 * gdbcore.h (read_memory_string): Don't declare.
3425
3426 2020-06-14 Hannes Domani <ssbssa@yahoo.de>
3427
3428 * symtab.c (rbreak_command): Ignore Windows drive colon.
3429
3430 2020-06-12 Simon Marchi <simon.marchi@efficios.com>
3431
3432 * NEWS: Mention removed GDBserver host support.
3433
3434 2020-06-12 Nelson Chu <nelson.chu@sifive.com>
3435
3436 * features/riscv/rebuild-csr-xml.sh: Updated.
3437
3438 2020-06-11 Tom Tromey <tom@tromey.com>
3439
3440 PR gdb/18318:
3441 * c-exp.y (lex_one_token): Handle 'p' like 'e'.
3442
3443 2020-06-09 Jonny Grant <jg@jguk.org>
3444 2020-06-09 Simon Marchi <simon.marchi@polymtl.ca>
3445
3446 * main.c (captured_main_1): Don't print new line after help.
3447 (print_gdb_help): add mailing list and IRC channel information
3448 to --help. Add new lines between items in the footer. Remove
3449 quotes around bug url.
3450
3451 2020-06-11 Keith Seitz <keiths@redhat.com>
3452
3453 PR gdb/21356
3454 * gdbtypes.c (resolve_dynamic_union, resolve_dynamic_struct):
3455 Resolve typedefs for type length calculations.
3456
3457 2020-06-10 Tom de Vries <tdevries@suse.de>
3458
3459 PR ada/24713
3460 * dwarf2/index-write.c (struct mapped_symtab): Add m_string_obstack.
3461 (write_psymbols): Enable .gdb_index for ada.
3462 * dwarf2/read.c: Remove comment stating .gdb_index is unsupported for
3463 ada.
3464
3465 2020-06-10 Tom de Vries <tdevries@suse.de>
3466
3467 * dwarf2/read.c (dw2_symtab_iter_init_common): Factor out of ...
3468 (dw2_symtab_iter_init): ... here. Add variant with "offset_type
3469 namei" instead of "const char *name" argument.
3470 (dw2_map_matching_symbols): Use "offset_type namei" variant of
3471 dw2_symtab_iter_init.
3472
3473 2020-06-08 Simon Marchi <simon.marchi@efficios.com>
3474
3475 * gdbtypes.h (TYPE_FIELD_TYPE): Remove. Change all call sites
3476 to use type::field and field::type instead.
3477
3478 2020-06-08 Simon Marchi <simon.marchi@efficios.com>
3479
3480 * gdbtypes.h (FIELD_TYPE): Remove. Change all call sites
3481 to use field::type instead.
3482
3483 2020-06-08 Simon Marchi <simon.marchi@efficios.com>
3484
3485 * gdbtypes.h (struct field) <type, set_type>: New methods.
3486 Rename `type` field to...
3487 <m_type>: ... this. Change references throughout to use type or
3488 set_type methods.
3489 (FIELD_TYPE): Use field::type. Change call sites that modify
3490 the field's type to use field::set_type instead.
3491
3492 2020-06-08 Simon Marchi <simon.marchi@efficios.com>
3493
3494 * gdbtypes.h (TYPE_INDEX_TYPE): Remove. Change all call sites
3495 to use type::index_type instead.
3496
3497 2020-06-08 Simon Marchi <simon.marchi@efficios.com>
3498
3499 * gdbtypes.h (struct type) <index_type, set_index_type>: New
3500 methods.
3501 (TYPE_INDEX_TYPE): Use type::index_type.
3502 * gdbtypes.c (create_array_type_with_stride): Likewise.
3503
3504 2020-06-07 Tom Tromey <tom@tromey.com>
3505
3506 * valprint.c (generic_val_print_float): Remove "embedded_offset"
3507 parameter.
3508 (generic_value_print): Update.
3509
3510 2020-06-05 Andrew Burgess <andrew.burgess@embecosm.com>
3511
3512 Revert commit 982a38f60b0.
3513 * python/py-tui.c (gdbpy_tui_set_title): Restore use of get.
3514
3515 2020-06-05 Andrew Burgess <andrew.burgess@embecosm.com>
3516
3517 * python/py-tui.c (gdbpy_tui_set_title): Use release, not get, to
3518 avoid use after free.
3519
3520 2020-06-05 Tom de Vries <tdevries@suse.de>
3521
3522 * NEWS: Fix typos.
3523
3524 2020-06-04 Simon Marchi <simon.marchi@efficios.com>
3525
3526 * dwarf2/read.c (dwarf2_read_gdb_index): Save partial_symtabs in
3527 the per_bfd object.
3528 (dwarf2_read_debug_names): Likewise.
3529 (dwarf2_initialize_objfile): Use partial_symtabs from per_bfd
3530 object when re-using a per_bfd object with an index.
3531
3532 2020-06-03 Tom de Vries <tdevries@suse.de>
3533
3534 PR symtab/26046
3535 * dwarf2/read.c (scan_partial_symbols): Recurse into DW_TAG_subprogram
3536 children for C++.
3537 (load_partial_dies): Don't skip DW_TAG_inlined_subroutine child of
3538 DW_TAG_subprogram.
3539
3540 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
3541
3542 * ada-lang.c (ada_language_data): Delete skip_trampoline
3543 initializer.
3544 * c-lang.c (c_language_data): Likewise.
3545 (cplus_language_data): Likewise.
3546 (cplus_language::skip_trampoline): New member function.
3547 (asm_language_data): Delete skip_trampoline initializer.
3548 (minimal_language_data): Likewise.
3549 * d-lang.c (d_language_data): Likewise.
3550 * f-lang.c (f_language_data): Likewise.
3551 * go-lang.c (go_language_data): Likewise.
3552 * language.c (unk_lang_trampoline): Delete function.
3553 (skip_language_trampoline): Update.
3554 (unknown_language_data): Delete skip_trampoline initializer.
3555 (auto_language_data): Likewise.
3556 * language.h (language_data): Delete skip_trampoline field.
3557 (language_defn::skip_trampoline): New function.
3558 * m2-lang.c (m2_language_data): Delete skip_trampoline
3559 initializer.
3560 * objc-lang.c (objc_skip_trampoline): Delete function, move
3561 implementation to objc_language::skip_trampoline.
3562 (objc_language_data): Delete skip_trampoline initializer.
3563 (objc_language::skip_trampoline): New member function with
3564 implementation from objc_skip_trampoline.
3565 * opencl-lang.c (opencl_language_data): Delete skip_trampoline
3566 initializer.
3567 * p-lang.c (pascal_language_data): Likewise.
3568 * rust-lang.c (rust_language_data): Likewise.
3569
3570 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
3571
3572 * ada-lang.c (ada_language_data): Delete la_demangle initializer.
3573 (ada_language::demangle): New member function.
3574 * c-lang.c (c_language_data): Delete la_demangle initializer.
3575 (cplus_language_data): Delete la_demangle initializer.
3576 (cplus_language::demangle): New member function.
3577 (asm_language_data): Delete la_demangle initializer.
3578 (minimal_language_data): Delete la_demangle initializer.
3579 * d-lang.c (d_language_data): Delete la_demangle initializer.
3580 (d_language::demangle): New member function.
3581 * f-lang.c (f_language_data): Delete la_demangle initializer.
3582 (f_language::demangle): New member function.
3583 * go-lang.c (go_language_data): Delete la_demangle initializer.
3584 (go_language::demangle): New member function.
3585 * language.c (language_demangle): Update.
3586 (unk_lang_demangle): Delete.
3587 (unknown_language_data): Delete la_demangle initializer.
3588 (unknown_language::demangle): New member function.
3589 (auto_language_data): Delete la_demangle initializer.
3590 (auto_language::demangle): New member function.
3591 * language.h (language_data): Delete la_demangle field.
3592 (language_defn::demangle): New function.
3593 * m2-lang.c (m2_language_data): Delete la_demangle initializer.
3594 * objc-lang.c (objc_language_data): Delete la_demangle
3595 initializer.
3596 (objc_language::demangle): New member function.
3597 * opencl-lang.c (opencl_language_data): Delete la_demangle
3598 initializer.
3599 * p-lang.c (pascal_language_data): Likewise.
3600 * rust-lang.c (rust_language_data): Likewise.
3601 (rust_language::demangle): New member function.
3602
3603 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
3604
3605 * ada-lang.c (ada_language_data): Delete la_print_type
3606 initializer.
3607 (ada_language::print_type): New member function.
3608 * c-lang.c (c_language_data): Delete la_print_type initializer.
3609 (c_language::print_type): New member function.
3610 (cplus_language_data): Delete la_print_type initializer.
3611 (cplus_language::print_type): New member function.
3612 (asm_language_data): Delete la_print_type initializer.
3613 (asm_language::print_type): New member function.
3614 (minimal_language_data): Delete la_print_type initializer.
3615 (minimal_language::print_type): New member function.
3616 * d-lang.c (d_language_data): Delete la_print_type initializer.
3617 (d_language::print_type): New member function.
3618 * f-lang.c (f_language_data): Delete la_print_type initializer.
3619 (f_language::print_type): New member function.
3620 * go-lang.c (go_language_data): Delete la_print_type initializer.
3621 (go_language::print_type): New member function.
3622 * language.c (unk_lang_print_type): Delete.
3623 (unknown_language_data): Delete la_print_type initializer.
3624 (unknown_language::print_type): New member function.
3625 (auto_language_data): Delete la_print_type initializer.
3626 (auto_language::print_type): New member function.
3627 * language.h (language_data): Delete la_print_type field.
3628 (language_defn::print_type): New function.
3629 (LA_PRINT_TYPE): Update.
3630 * m2-lang.c (m2_language_data): Delete la_print_type initializer.
3631 (m2_language::print_type): New member function.
3632 * objc-lang.c (objc_language_data): Delete la_print_type
3633 initializer.
3634 (objc_language::print_type): New member function.
3635 * opencl-lang.c (opencl_print_type): Delete, implementation moved
3636 to opencl_language::print_type.
3637 (opencl_language_data): Delete la_print_type initializer.
3638 (opencl_language::print_type): New member function, implementation
3639 from opencl_print_type.
3640 * p-lang.c (pascal_language_data): Delete la_print_type
3641 initializer.
3642 (pascal_language::print_type): New member function.
3643 * rust-lang.c (rust_print_type): Delete, implementation moved to
3644 rust_language::print_type.
3645 (rust_language_data): Delete la_print_type initializer.
3646 (rust_language::print_type): New member function, implementation
3647 from rust_print_type.
3648
3649 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
3650
3651 * ada-lang.c (ada_sniff_from_mangled_name): Delete function,
3652 implementation moves to...
3653 (ada_language::sniff_from_mangled_name): ...here. Update return
3654 type.
3655 (ada_language_data): Delete la_sniff_from_mangled_name
3656 initializer.
3657 * c-lang.c (c_language_data): Likewise.
3658 (cplus_language_data): Likewise.
3659 (cplus_language::sniff_from_mangled_name): New member function,
3660 implementation taken from gdb_sniff_from_mangled_name.
3661 (asm_language_data): Delete la_sniff_from_mangled_name
3662 initializer.
3663 (minimal_language_data): Likewise.
3664 * cp-support.c (gdb_sniff_from_mangled_name): Delete,
3665 implementation moves to cplus_language::sniff_from_mangled_name.
3666 * cp-support.h (gdb_sniff_from_mangled_name): Delete declaration.
3667 * d-lang.c (d_sniff_from_mangled_name): Delete, implementation
3668 moves to...
3669 (d_language::sniff_from_mangled_name): ...here.
3670 (d_language_data): Delete la_sniff_from_mangled_name initializer.
3671 * f-lang.c (f_language_data): Likewise.
3672 * go-lang.c (go_sniff_from_mangled_name): Delete, implementation
3673 moves to...
3674 (go_language::sniff_from_mangled_name): ...here.
3675 (go_language_data): Delete la_sniff_from_mangled_name initializer.
3676 * language.c (language_sniff_from_mangled_name): Delete.
3677 (unknown_language_data): Delete la_sniff_from_mangled_name
3678 initializer.
3679 (auto_language_data): Likewise.
3680 * language.h (language_data): Delete la_sniff_from_mangled_name
3681 field.
3682 (language_defn::sniff_from_mangled_name): New function.
3683 (language_sniff_from_mangled_name): Delete declaration.
3684 * m2-lang.c (m2_language_data): Delete la_sniff_from_mangled_name
3685 field.
3686 * objc-lang.c (objc_sniff_from_mangled_name): Delete,
3687 implementation moves to...
3688 (objc_language::sniff_from_mangled_name): ...here.
3689 (objc_language_data): Delete la_sniff_from_mangled_name initializer.
3690 * opencl-lang.c (opencl_language_data): Likewise.
3691 * p-lang.c (pascal_language_data): Likewise.
3692 * rust-lang.c (rust_sniff_from_mangled_name): Delete,
3693 implementation moves to...
3694 (rust_language::sniff_from_mangled_name): ...here.
3695 (rust_language_data): Delete la_sniff_from_mangled_name
3696 initializer.
3697 * symtab.c (symbol_find_demangled_name): Call
3698 sniff_from_mangled_name member function.
3699
3700 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
3701
3702 * ada-lang.c (ada_language_data): Delete la_search_name_hash
3703 initializer.
3704 * c-lang.c (c_language_data): Likewise.
3705 (cplus_language_data): Likewise.
3706 (cplus_language::search_name_hash): New member function.
3707 (asm_language_data): Delete la_search_name_hash initializer.
3708 (minimal_language_data): Likewise.
3709 * d-lang.c (d_language_data): Likewise.
3710 * dictionary.c (default_search_name_hash): Rename to...
3711 (language_defn::search_name_hash): ...this.
3712 * f-lang.c (f_language_data): Likewise.
3713 (f_language::search_name_hash): New member function.
3714 * go-lang.c (go_language_data): Delete la_search_name_hash
3715 initializer.
3716 * language.c (unknown_language_data): Likewise.
3717 (auto_language_data): Likewise.
3718 * language.h (struct language_data): Delete la_search_name_hash
3719 field.
3720 (language_defn::search_name_hash): Declare new member function.
3721 (default_search_name_hash): Delete declaration.
3722 * m2-lang.c (m2_language_data): Delete la_search_name_hash
3723 initializer.
3724 * objc-lang.c (objc_language_data): Likewise.
3725 * opencl-lang.c (opencl_language_data): Likewise.
3726 * p-lang.c (pascal_language_data): Likewise.
3727 * rust-lang.c (rust_language_data): Likewise.
3728 * symtab.c (search_name_hash): Update call.
3729
3730 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
3731
3732 * ada-lang.c (ada_language_data): Delete la_get_compile_instance
3733 initializer.
3734 * c-lang.c (class compile_instance): Declare.
3735 (c_language_data): Delete la_get_compile_instance initializer.
3736 (c_language::get_compile_instance): New member function.
3737 (cplus_language_data): Delete la_get_compile_instance initializer.
3738 (cplus_language::get_compile_instance): New member function.
3739 (asm_language_data): Delete la_get_compile_instance initializer.
3740 (minimal_language_data): Likewise.
3741 * c-lang.h (c_get_compile_context): Update comment.
3742 (cplus_get_compile_context): Update comment.
3743 * compile/compile.c (compile_to_object): Update calls, don't rely
3744 on function pointer being NULL.
3745 * d-lang.c (d_language_data): Delete la_get_compile_instance
3746 initializer.
3747 * f-lang.c (f_language_data): Likewise.
3748 * go-lang.c (go_language_data): Likewise.
3749 * language.c (unknown_language_data): Likewise.
3750 (auto_language_data): Likewise.
3751 * language.h (language_data): Delete la_get_compile_instance field.
3752 (language_defn::get_compile_instance): New member function.
3753 * m2-lang.c (m2_language_data): Delete la_get_compile_instance
3754 initializer.
3755 * objc-lang.c (objc_language_data): Likewise.
3756 * opencl-lang.c (opencl_language_data): Likewise.
3757 * p-lang.c (pascal_language_data): Likewise.
3758 * rust-lang.c (rust_language_data): Likewise.
3759
3760 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
3761
3762 * ada-lang.c (ada_add_all_symbols): Update comment.
3763 (ada_iterate_over_symbols): Delete, move implementation to...
3764 (ada_language::iterate_over_symbols): ...here, a new member
3765 function, rewrite to use range based for loop.
3766 (ada_language_data): Delete la_iterate_over_symbols initializer.
3767 * c-lang.c (c_language_data): Likewise.
3768 (cplus_language_data): Likewise.
3769 (asm_language_data): Likewise.
3770 (minimal_language_data): Likewise.
3771 * d-lang.c (d_language_data): Likewise.
3772 * f-lang.c (f_language_data): Likewise.
3773 * go-lang.c (go_language_data): Likewise.
3774 * language.c (unknown_language_data): Likewise.
3775 (auto_language_data): Likewise.
3776 * language.h (language_data): Delete la_iterate_over_symbols field.
3777 (language_defn::iterate_over_symbols): New member function.
3778 (LA_ITERATE_OVER_SYMBOLS): Update.
3779 * linespec.c (iterate_over_all_matching_symtabs): Update.
3780 * m2-lang.c (m2_language_data): Delete la_iterate_over_symbols
3781 initializer.
3782 * objc-lang.c (objc_language_data): Likewise.
3783 * opencl-lang.c (opencl_language_data): Likewise.
3784 * p-lang.c (pascal_language_data): Likewise.
3785 * rust-lang.c (rust_language_data): Likewise.
3786
3787 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
3788
3789 * ada-lang.c (ada_language_data): Delete
3790 la_lookup_transparent_type initializer.
3791 * c-lang.c (c_language_data): Likewise.
3792 (cplus_language_data): Likewise.
3793 (cplus_language::lookup_transparent_type): New member function.
3794 (asm_language_data): Delete la_lookup_transparent_type
3795 initializer.
3796 (minimal_language_data): Likewise.
3797 * d-lang.c (d_language_data): Likewise.
3798 * f-lang.c (f_language_data): Likewise.
3799 * go-lang.c (go_language_data): Likewise.
3800 * language.c (unknown_language_data): Likewise.
3801 (auto_language_data): Likewise.
3802 * language.h (struct language_data): Delete
3803 la_lookup_transparent_type field.
3804 (language_defn::lookup_transparent_type): New member function.
3805 * m2-lang.c (m2_language_data): Delete la_lookup_transparent_type
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 * symtab.c (symbol_matches_domain): Update call.
3812
3813 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
3814
3815 * ada-lang.c (ada_language_arch_info): Delete function, move
3816 implementation to...
3817 (ada_language::language_arch_info): ...here, a new member
3818 function.
3819 (ada_language_data): Delete la_language_arch_info.
3820 * c-lang.c (c_language_data): Likewise.
3821 (c_language::language_arch_info): New member function.
3822 (cplus_language_arch_info): Delete function, move
3823 implementation to...
3824 (cplus_language::language_arch_info): ...here, a new member
3825 function.
3826 (cplus_language_data): Delete la_language_arch_info.
3827 (asm_language_data): Likewise.
3828 (asm_language::language_arch_info): New member function.
3829 (minimal_language_data): Delete la_language_arch_info.
3830 (minimal_language::language_arch_info): New member function.
3831 * d-lang.c (d_language_arch_info): Delete function, move
3832 implementation to...
3833 (d_language::language_arch_info): ...here, a new member
3834 function.
3835 (d_language_data): Delete la_language_arch_info.
3836 * f-lang.c (f_language_arch_info): Delete function, move
3837 implementation to...
3838 (f_language::language_arch_info): ...here, a new member
3839 function.
3840 (f_language_data): Delete la_language_arch_info.
3841 * go-lang.c (go_language_arch_info): Delete function, move
3842 implementation to...
3843 (go_language::language_arch_info): ...here, a new member
3844 function.
3845 (go_language_data): Delete la_language_arch_info.
3846 * language.c (unknown_language_data): Likewise.
3847 (unknown_language::language_arch_info): New member function.
3848 (auto_language_data): Delete la_language_arch_info.
3849 (auto_language::language_arch_info): New member function.
3850 (language_gdbarch_post_init): Update call to
3851 la_language_arch_info.
3852 * language.h (language_data): Delete la_language_arch_info
3853 function pointer.
3854 (language_defn::language_arch_info): New function.
3855 * m2-lang.c (m2_language_arch_info): Delete function, move
3856 implementation to...
3857 (m2_language::language_arch_info): ...here, a new member
3858 function.
3859 (m2_language_data): Delete la_language_arch_info.
3860 * objc-lang.c (objc_language_arch_info): Delete function, move
3861 implementation to...
3862 (objc_language::language_arch_info): ...here, a new member
3863 function.
3864 (objc_language_data): Delete la_language_arch_info.
3865 * opencl-lang.c (opencl_language_arch_info): Delete function, move
3866 implementation to...
3867 (opencl_language::language_arch_info): ...here, a new member
3868 function.
3869 (opencl_language_data): Delete la_language_arch_info.
3870 * p-lang.c (pascal_language_arch_info): Delete function, move
3871 implementation to...
3872 (pascal_language::language_arch_info): ...here, a new member
3873 function.
3874 (pascal_language_data): Delete la_language_arch_info.
3875 * rust-lang.c (rust_language_arch_info): Delete function, move
3876 implementation to...
3877 (rust_language::language_arch_info): ...here, a new member
3878 function.
3879 (rust_language_data): Delete la_language_arch_info.
3880
3881 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
3882
3883 * ada-lang.c (ada_language_data): Delete la_pass_by_reference
3884 initializer.
3885 * c-lang.c (c_language_data): Likewise.
3886 (cplus_language_data): Likewise.
3887 (cplus_language::pass_by_reference_info): New method.
3888 (asm_language_data): Delete la_pass_by_reference initializer.
3889 (minimal_language_data): Likewise.
3890 * cp-abi.c (cp_pass_by_reference): Remove use of
3891 default_pass_by_reference.
3892 * d-lang.c (d_language_data): Likewise.
3893 * f-lang.c (f_language_data): Likewise.
3894 * gnu-v3-abi.c (gnuv3_pass_by_reference): Remove use of
3895 default_pass_by_reference.
3896 * go-lang.c (go_language_data): Likewise.
3897 * language.c (language_pass_by_reference): Update.
3898 (default_pass_by_reference): Delete.
3899 (unknown_language_data): Delete la_pass_by_reference
3900 initializer.
3901 (auto_language_data): Likewise.
3902 * language.h (struct language_data): Delete la_pass_by_reference
3903 field.
3904 (language_defn::pass_by_reference_info): New member function.
3905 (default_pass_by_reference): Delete declaration.
3906 * m2-lang.c (m2_language_data): Delete la_pass_by_reference
3907 initializer.
3908 * objc-lang.c (objc_language_data): Likewise.
3909 * opencl-lang.c (opencl_language_data): Likewise.
3910 * p-lang.c (pascal_language_data): Likewise.
3911 * rust-lang.c (rust_language_data): Likewise.
3912
3913 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
3914
3915 * ada-lang.c (ada_read_var_value): Delete function, move
3916 implementation to...
3917 (ada_language::read_var_value): ...here.
3918 (ada_language_data): Delete la_read_var_value initializer.
3919 * c-lang.c (c_language_data): Likewise.
3920 (cplus_language_data): Likewise.
3921 (minimal_language_data): Likewise.
3922 * d-lang.c (d_language_data): Likewise.
3923 * f-lang.c (f_language_data): Likewise.
3924 * findvar.c (default_read_var_value): Rename to...
3925 (language_defn::read_var_value): ...this.
3926 * findvar.c (read_var_value): Update header comment, and change to
3927 call member function instead of function pointer.
3928 * go-lang.c (go_language_data): Likewise.
3929 * language.c (unknown_language_data): Delete la_read_var_value
3930 initializer.
3931 (auto_language_data): Likewise.
3932 * language.h (struct language_data): Delete la_read_var_value
3933 field.
3934 (language_defn::read_var_value): New member function.
3935 (default_read_var_value): Delete declaration.
3936 * m2-lang.c (m2_language_data): Delete la_read_var_value
3937 initializer.
3938 * objc-lang.c (objc_language_data): Likewise.
3939 * opencl-lang.c (opencl_language_data): Likewise.
3940 * p-lang.c (pascal_language_data): Likewise.
3941 * rust-lang.c (rust_language_data): Likewise.
3942 * value.h (default_read_var_value): Delete declaration.
3943
3944 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
3945
3946 * ada-lang.c (ada_print_array_index): Delete function, move
3947 implementation to...
3948 (ada_language::print_array_index): ...here.
3949 (ada_language_data): Delete la_print_array_index initializer.
3950 * c-lang.c (c_language_data): Likewise.
3951 (cplus_language_data): Likewise.
3952 (minimal_language_data): Likewise.
3953 * d-lang.c (d_language_data): Likewise.
3954 * f-lang.c (f_language_data): Likewise.
3955 * go-lang.c (go_language_data): Likewise.
3956 * language.c (default_print_array_index): Delete function, move
3957 implementation to...
3958 (language_defn::print_array_index): ...here.
3959 (unknown_language_data): Delete la_print_array_index initializer.
3960 (auto_language_data): Likewise.
3961 * language.h (struct language_data): Delete la_print_array_index
3962 field.
3963 (language_defn::print_array_index): New member function.
3964 (LA_PRINT_ARRAY_INDEX): Update.
3965 (default_print_array_index): Delete declaration.
3966 * m2-lang.c (m2_language_data): Delete la_print_array_index
3967 initializer.
3968 * objc-lang.c (objc_language_data): Likewise.
3969 * opencl-lang.c (opencl_language_data): Likewise.
3970 * p-lang.c (pascal_language_data): Likewise.
3971 * rust-lang.c (rust_language_data): Likewise.
3972
3973 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
3974
3975 * gdb/ada-lang.c (ada_language_defn): Convert to...
3976 (ada_language_data): ...this.
3977 (class ada_language): New class.
3978 (ada_language_defn): New static global.
3979 * gdb/c-lang.c (c_language_defn): Convert to...
3980 (c_language_data): ...this.
3981 (class c_language): New class.
3982 (c_language_defn): New static global.
3983 (cplus_language_defn): Convert to...
3984 (cplus_language_data): ...this.
3985 (class cplus_language): New class.
3986 (cplus_language_defn): New static global.
3987 (asm_language_defn): Convert to...
3988 (asm_language_data): ...this.
3989 (class asm_language): New class.
3990 (asm_language_defn): New static global.
3991 (minimal_language_defn): Convert to...
3992 (minimal_language_data): ...this.
3993 (class minimal_language): New class.
3994 (minimal_language_defn): New static global.
3995 * gdb/d-lang.c (d_language_defn): Convert to...
3996 (d_language_data): ...this.
3997 (class d_language): New class.
3998 (d_language_defn): New static global.
3999 * gdb/f-lang.c (f_language_defn): Convert to...
4000 (f_language_data): ...this.
4001 (class f_language): New class.
4002 (f_language_defn): New static global.
4003 * gdb/go-lang.c (go_language_defn): Convert to...
4004 (go_language_data): ...this.
4005 (class go_language): New class.
4006 (go_language_defn): New static global.
4007 * gdb/language.c (unknown_language_defn): Remove declaration.
4008 (current_language): Initialize to nullptr, real initialization is
4009 moved to _initialize_language.
4010 (languages): Delete global.
4011 (language_defn::languages): Define.
4012 (set_language_command): Use language_defn::languages.
4013 (set_language): Likewise.
4014 (range_error): Likewise.
4015 (language_enum): Likewise.
4016 (language_def): Likewise.
4017 (add_set_language_command): Use language_def::languages for the
4018 language list, and language_def to lookup language pointers.
4019 (skip_language_trampoline): Use language_defn::languages.
4020 (unknown_language_defn): Convert to...
4021 (unknown_language_data): ...this.
4022 (class unknown_language): New class.
4023 (unknown_language_defn): New static global.
4024 (auto_language_defn): Convert to...
4025 (auto_language_data): ...this.
4026 (class auto_language): New class.
4027 (auto_language_defn): New static global.
4028 (language_gdbarch_post_init): Use language_defn::languages.
4029 (_initialize_language): Initialize current_language.
4030 * gdb/language.h (struct language_defn): Rename to...
4031 (struct language_data): ...this.
4032 (struct language_defn): New.
4033 (auto_language_defn): Delete.
4034 (unknown_language_defn): Delete.
4035 (minimal_language_defn): Delete.
4036 (ada_language_defn): Delete.
4037 (asm_language_defn): Delete.
4038 (c_language_defn): Delete.
4039 (cplus_language_defn): Delete.
4040 (d_language_defn): Delete.
4041 (f_language_defn): Delete.
4042 (go_language_defn): Delete.
4043 (m2_language_defn): Delete.
4044 (objc_language_defn): Delete.
4045 (opencl_language_defn): Delete.
4046 (pascal_language_defn): Delete.
4047 (rust_language_defn): Delete.
4048 * gdb/m2-lang.c (m2_language_defn): Convert to...
4049 (m2_language_data): ...this.
4050 (class m2_language): New class.
4051 (m2_language_defn): New static global.
4052 * gdb/objc-lang.c (objc_language_defn): Convert to...
4053 (objc_language_data): ...this.
4054 (class objc_language): New class.
4055 (objc_language_defn): New static global.
4056 * gdb/opencl-lang.c (opencl_language_defn): Convert to...
4057 (opencl_language_data): ...this.
4058 (class opencl_language): New class.
4059 (opencl_language_defn): New static global.
4060 * gdb/p-lang.c (pascal_language_defn): Convert to...
4061 (pascal_language_data): ...this.
4062 (class pascal_language): New class.
4063 (pascal_language_defn): New static global.
4064 * gdb/rust-exp.y (rust_lex_tests): Use language_def to find
4065 language pointer, update comment format.
4066 * gdb/rust-lang.c (rust_language_defn): Convert to...
4067 (rust_language_data): ...this.
4068 (class rust_language): New class.
4069 (rust_language_defn): New static global.
4070
4071 2020-06-01 Andrew Burgess <andrew.burgess@embecosm.com>
4072
4073 * dwarf2/read.c (class lnp_state_machine) <m_last_address>: New
4074 member variable.
4075 <m_stmt_at_address>: New member variable.
4076 (lnp_state_machine::record_line): Don't record some lines, update
4077 tracking of is_stmt at the same address.
4078 (lnp_state_machine::lnp_state_machine): Initialise new member
4079 variables.
4080
4081 2020-06-01 Samuel Thibault <samuel.thibault@ens-lyon.org>
4082
4083 * config/i386/i386gnu.mn [%_S.o %_U.o] (COMPILE.post): Add
4084 "-include gnu-nat-mig.h".
4085 * gnu-nat-mig.h: New file.
4086 * gnu-nat.c: Include "gnu-nat-mig.h".
4087 (exc_server, msg_reply_server, notify_server,
4088 process_reply_server): Remove declarations.
4089
4090 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
4091
4092 * gnu-nat.h (inf_validate_procs, inf_suspend, inf_set_traced,
4093 steal_exc_port, proc_get_state, inf_clear_wait, inf_cleanup,
4094 inf_startup, inf_update_suspends, inf_set_pid, inf_steal_exc_ports,
4095 inf_validate_procinfo, inf_validate_task_sc, inf_restore_exc_ports,
4096 inf_set_threads_resume_sc, inf_set_threads_resume_sc_for_signal_thread,
4097 inf_resume, inf_set_step_thread, inf_detach, inf_attach, inf_signal,
4098 inf_continue, make_proc, proc_abort, _proc_free, proc_update_sc,
4099 proc_get_exception_port, proc_set_exception_port, _proc_get_exc_port,
4100 proc_steal_exc_port, proc_restore_exc_port, proc_trace): Move functions
4101 to gnu_nat_target class.
4102 * gnu-nat.c: Likewise.
4103 (inf_update_procs, S_proc_wait_reply, set_task_pause_cmd,
4104 set_task_exc_port_cmd, set_signals_cmd, set_thread_pause_cmd,
4105 set_thread_exc_port_cmd): Call inf_validate_procs through gnu_target
4106 object.
4107 (gnu_nat_target::create_inferior, gnu_nat_target::detach): Pass `this'
4108 instead of `gnu_target'.
4109
4110 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
4111
4112 * i386-gnu-tdep.c: Include "gdbcore.h"
4113 (gnu_sigtramp_code, i386_gnu_sc_reg_offset): New arrays.
4114 (GNU_SIGTRAMP_LEN, GNU_SIGTRAMP_TAIL,
4115 I386_GNU_SIGCONTEXT_THREAD_STATE_OFFSET): New macros
4116 (i386_gnu_sigtramp_start, i386_gnu_sigtramp_p,
4117 i386_gnu_sigcontext_addr): New functions
4118 (i386gnu_init_abi): Register i386_gnu_sigtramp_p,
4119 i386_gnu_sigcontext_addr, and i386_gnu_sc_reg_offset in the gdbarch
4120 tdep.
4121
4122 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
4123
4124 * gnu-nat.c (gnu_nat_target::create_inferior): Move push_target call
4125 before fork_inferior call. Avoid calling it if target_is_pushed returns
4126 true.
4127
4128 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
4129
4130 * gnu-nat.h (gnu_target): New variable declaration.
4131 * i386-gnu-nat.c (_initialize_i386gnu_nat): Initialize
4132 gnu_target.
4133 * gnu-nat.c (gnu_target): New variable.
4134 (inf_validate_procs): Pass gnu_target to thread_change_ptid,
4135 add_thread_silent, and add_thread calls.
4136 (gnu_nat_target::create_inferior): Pass gnu_target to
4137 add_thread_silent, thread_change_ptid call.
4138 (gnu_nat_target::detach): Pass gnu_target to detach_inferior
4139 call.
4140
4141 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
4142
4143 * gnu-nat.c (gnu_xfer_auxv): Remove unused `res' variable.
4144 (gnu_nat_target::find_memory_regions): Remove unused
4145 `old_address' variable.
4146
4147 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
4148
4149 * gnu-nat.c: Include "gdbarch.h".
4150
4151 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
4152
4153 * reply_mig_hack.awk (Error return): Cast function through
4154 void *, to bypass compiler function call check.
4155
4156 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
4157
4158 * config/i386/i386gnu.mn (%_reply_S.c): Add dependency on
4159 $(srcdir)/reply_mig_hack.awk.
4160
4161 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
4162
4163 * gnu-nat.h (gnu_debug_flag): Set type to bool.
4164
4165 2020-05-30 Jonny Grant <jg@jguk.org>
4166
4167 * configure.ac (ACX_BUGURL): change bug URL to https.
4168
4169 2020-05-30 Pedro Alves <palves@redhat.com>
4170
4171 * cp-support.c (replace_typedefs_template): New.
4172 (replace_typedefs_qualified_name): Handle
4173 DEMANGLE_COMPONENT_TEMPLATE.
4174
4175 2020-05-29 Simon Marchi <simon.marchi@efficios.com>
4176
4177 * dwarf2/comp-unit.c, dwarf2/comp-unit.h, dwarf2/index-cache.c,
4178 dwarf2/index-cache.h, dwarf2/index-write.c,
4179 dwarf2/index-write.h, dwarf2/line-header.c,
4180 dwarf2/line-header.h, dwarf2/macro.c, dwarf2/macro.h,
4181 dwarf2/read.c, dwarf2/read.h: Rename struct dwarf2_per_objfile
4182 variables and fields from `dwarf2_per_objfile` to just
4183 `per_objfile` throughout.
4184
4185 2020-05-28 Simon Marchi <simon.marchi@polymtl.ca>
4186
4187 * dwarf2/loc.c (class dwarf_evaluate_loc_desc)
4188 <push_dwarf_reg_entry_value>: Add comment.
4189
4190 2020-05-28 Kevin Buettner <kevinb@redhat.com>
4191 Keith Seitz <keiths@redhat.com>
4192
4193 * python/python.c (do_start_initialization): Call PyEval_SaveThread
4194 instead of PyEval_ReleaseLock.
4195 (class gdbpy_gil): Move to earlier in file.
4196 (finalize_python): Set gdb_python_initialized.
4197 (gdbpy_check_quit_flag): Acquire GIL via gdbpy_gil. Return early
4198 when not initialized.
4199
4200 2020-05-28 Simon Marchi <simon.marchi@efficios.com>
4201
4202 * dwarf2/loc.c (class dwarf_evaluate_loc_desc)
4203 <push_dwarf_reg_entry_value>: Remove assert. Override
4204 per_objfile with caller_per_objfile.
4205
4206 2020-05-28 Tom de Vries <tdevries@suse.de>
4207
4208 * dwarf2/read.c (dw2_symtab_iter_next, dw2_expand_marked_cus): Limit
4209 PR gold/15646 workaround to symbol kind "type".
4210
4211 2020-05-27 Tom Tromey <tromey@adacore.com>
4212
4213 * dwarf2/read.c (load_partial_dies): Use add_partial_symbol.
4214
4215 2020-05-27 Tom Tromey <tromey@adacore.com>
4216
4217 * dwarf2/abbrev.h (struct abbrev_table) <lookup_abbrev>: Inline.
4218 Use htab_find_with_hash.
4219 <add_abbrev>: Remove "abbrev_number" parameter.
4220 * dwarf2/abbrev.c (abbrev_table::add_abbrev): Remove
4221 "abbrev_number" parameter. Use htab_find_slot_with_hash.
4222 (hash_abbrev): Add comment.
4223 (abbrev_table::lookup_abbrev): Move to header file.
4224 (abbrev_table::read): Update.
4225
4226 2020-05-27 Tom Tromey <tromey@adacore.com>
4227
4228 * dwarf2/read.c (struct partial_die_info) <name>: Declare new
4229 method.
4230 <canonical_name>: New member.
4231 <raw_name>: Rename from "name".
4232 (partial_die_info): Initialize canonical_name.
4233 (scan_partial_symbols): Check raw_name.
4234 (partial_die_parent_scope, partial_die_full_name)
4235 (add_partial_symbol, add_partial_subprogram)
4236 (add_partial_enumeration, load_partial_dies): Use "name" method.
4237 (partial_die_info::name): New method.
4238 (partial_die_info::read, guess_partial_die_structure_name)
4239 (partial_die_info::fixup): Update.
4240
4241 2020-05-27 Tom Tromey <tromey@adacore.com>
4242
4243 * dwarf2/attribute.h (struct attribute) <form_is_ref>: Inline.
4244 <get_ref_die_offset>: Inline.
4245 <get_ref_die_offset_complaint>: New method.
4246 * dwarf2/attribute.c (attribute::form_is_ref): Move to header.
4247 (attribute::get_ref_die_offset_complaint): Rename from
4248 get_ref_die_offset. Just issue complaint.
4249
4250 2020-05-27 Hannes Domani <ssbssa@yahoo.de>
4251
4252 * cli/cli-cmds.c (shell_escape): Move exit_status_set_internal_vars.
4253
4254 2020-05-27 Hannes Domani <ssbssa@yahoo.de>
4255
4256 * exec.c (exec_file_attach): Use errno value of first openp failure.
4257
4258 2020-05-27 Hannes Domani <ssbssa@yahoo.de>
4259
4260 * nat/windows-nat.c (windows_thread_info::~windows_thread_info):
4261 Don't close thread handle.
4262
4263 2020-05-27 Tom Tromey <tom@tromey.com>
4264 Simon Marchi <simon.marchi@efficios.com>
4265
4266 * objfiles.h (struct objfile) <partial_symtabs>: Now a
4267 shared_ptr.
4268 * dwarf2/read.h (struct dwarf2_per_objfile) <partial_symtabs>: New
4269 member.
4270 * dwarf2/read.c (dwarf2_per_bfd_bfd_data_key,
4271 dwarf2_per_bfd_objfile_data_key>: New globals.
4272 (dwarf2_has_info): Use shared dwarf2_per_bfd if possible.
4273 (dwarf2_get_section_info): Use get_dwarf2_per_objfile.
4274 (dwarf2_initialize_objfile): Consider cases where per_bfd can be
4275 shared.
4276 (dwarf2_build_psymtabs): Set objfile::partial_symtabs and
4277 short-circuit when sharing.
4278 (dwarf2_build_psymtabs): Set dwarf2_per_objfile::partial_symtabs.
4279 (dwarf2_psymtab::expand_psymtab): Use free_cached_comp_units.
4280
4281 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
4282
4283 * dwarf2/read.h (struct dwarf2_per_bfd) <line_header_hash>: Move
4284 to...
4285 (struct dwarf2_per_objfile) <line_header_hash>: ... here.
4286 * dwarf2/read.c (handle_DW_AT_stmt_list): Update.
4287
4288 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
4289
4290 * dwarf2/read.c (struct mapped_index_base) <symbol_name_at,
4291 build_name_components, find_name_components_bounds>:
4292 Add per_objfile parameter.
4293 (struct mapped_index) <symbol_name_at>: Likewise.
4294 (struct mapped_debug_names): Remove constructor.
4295 <dwarf2_per_objfile>: Remove field.
4296 <namei_to_name, symbol_name_at>: Add per_objfile parameter.
4297 (mapped_index_base::find_name_components_bounds,
4298 mapped_index_base::build_name_components,
4299 dw2_expand_symtabs_matching_symbol): Likewise.
4300 (class mock_mapped_index) <symbol_name_at>: Likewise.
4301 (check_match): Likewise.
4302 (check_find_bounds_finds): Likewise.
4303 (test_mapped_index_find_name_component_bounds): Update.
4304 (CHECK_MATCH): Update.
4305 (dw2_expand_symtabs_matching): Update.
4306 (class dw2_debug_names_iterator) <dw2_debug_names_iterator>: Add
4307 per_objfile parameter.
4308 <find_vec_in_debug_names>: Likewise.
4309 <m_per_objfile>: New field.
4310 (mapped_debug_names::namei_to_name): Add dwarf2_per_objfile
4311 parameter.
4312 (dw2_debug_names_iterator::find_vec_in_debug_names): Likewise.
4313 (dw2_debug_names_iterator::next): Update.
4314 (dw2_debug_names_lookup_symbol): Update.
4315 (dw2_debug_names_expand_symtabs_for_function): Update.
4316 (dw2_debug_names_map_matching_symbols): Update.
4317 (dw2_debug_names_expand_symtabs_matching): Update.
4318 (dwarf2_read_debug_names): Update.
4319
4320 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
4321
4322 * dwarf2/read.h (struct dwarf2_cu): Forward-declare.
4323 (struct dwarf2_per_bfd) <free_cached_comp_units>: Remove,
4324 move to dwarf2_per_objfile.
4325 <read_in_chain>: Remove.
4326 (struct dwarf2_per_objfile) <get_cu, set_cu, remove_cu,
4327 remove_all_cus, age_comp_units>: New methods.
4328 <m_dwarf2_cus>: New member.
4329 (struct dwarf2_per_cu_data) <cu>: Remove.
4330 * dwarf2/read.c (struct dwarf2_cu) <read_in_chain>: Remove.
4331 (age_cached_comp_units, free_one_cached_comp_unit): Remove,
4332 moved to methods of dwarf2_per_objfile.
4333 (dwarf2_clear_marks): Remove.
4334 (dwarf2_queue_item::~dwarf2_queue_item): Update.
4335 (dwarf2_per_bfd::~dwarf2_per_bfd): Don't free dwarf2_cus.
4336 (dwarf2_per_bfd::free_cached_comp_units): Remove.
4337 (dwarf2_per_objfile::remove_all_cus): New.
4338 (class free_cached_comp_units) <~free_cached_comp_units>:
4339 Update.
4340 (load_cu): Update.
4341 (dw2_do_instantiate_symtab): Adjust.
4342 (fill_in_sig_entry_from_dwo_entry): Adjust.
4343 (cutu_reader::init_tu_and_read_dwo_dies): Update.
4344 (cutu_reader::cutu_reader): Likewise.
4345 (cutu_reader::keep): Use dwarf2_per_objfile::set_cu.
4346 (cutu_reader::cutu_reader): Use dwarf2_per_objfile::get_cu.
4347 (process_psymtab_comp_unit): Use dwarf2_per_objfile::remove_cu
4348 and dwarf2_per_objfile::age_comp_units.
4349 (load_partial_comp_unit): Update.
4350 (maybe_queue_comp_unit): Use dwarf2_per_objfile::get_cu.
4351 (process_queue): Likewise.
4352 (find_partial_die): Use dwarf2_per_objfile::get_cu instead of cu
4353 backlink.
4354 (dwarf2_read_addr_index): Likewise.
4355 (follow_die_offset): Likewise.
4356 (dwarf2_fetch_die_loc_sect_off): Likewise.
4357 (dwarf2_fetch_constant_bytes): Likewise.
4358 (dwarf2_fetch_die_type_sect_off): Likewise.
4359 (follow_die_sig_1): Likewise.
4360 (load_full_type_unit): Likewise.
4361 (read_signatured_type): Likewise.
4362 (dwarf2_cu::dwarf2_cu): Don't set cu field.
4363 (dwarf2_cu::~dwarf2_cu): Remove.
4364 (dwarf2_per_objfile::get_cu): New.
4365 (dwarf2_per_objfile::set_cu): New.
4366 (age_cached_comp_units): Rename to...
4367 (dwarf2_per_objfile::age_comp_units): ... this. Adjust
4368 to std::unordered_map.
4369 (free_one_cached_comp_unit): Rename to...
4370 (dwarf2_per_objfile::remove_cu): ... this. Adjust
4371 to std::unordered_map.
4372 (dwarf2_per_objfile::~dwarf2_per_objfile): New.
4373 (dwarf2_mark_helper): Use dwarf2_per_objfile::get_cu, expect
4374 a dwarf2_per_objfile in data.
4375 (dwarf2_mark): Pass dwarf2_per_objfile in data to htab_traverse.
4376 (dwarf2_clear_marks): Remove.
4377
4378 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
4379
4380 * dwarf2/read.c (class cutu_reader) <cutu_reader>: Replace
4381 `int use_existing_cu` parameter with `dwarf2_cu *existing_cu`.
4382 (init_tu_and_read_dwo_dies): Likewise.
4383 (cutu_reader::init_tu_and_read_dwo_dies): Likewise.
4384 (cutu_reader::cutu_reader): Likewise.
4385 (load_partial_comp_unit): Likewise.
4386 (process_psymtab_comp_unit): Update.
4387 (build_type_psymtabs_1): Update.
4388 (process_skeletonless_type_unit): Update.
4389 (load_full_comp_unit): Update.
4390 (find_partial_die): Update.
4391 (dwarf2_read_addr_index): Update.
4392 (read_signatured_type): Update.
4393
4394 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
4395
4396 * dwarf2/read.h (struct dwarf2_per_cu_data) <m_header,
4397 m_header_read_in>: New fields.
4398 <get_header>: New method.
4399 * dwarf2/read.c (per_cu_header_read_in): Remove.
4400 (dwarf2_per_cu_data::get_header): New.
4401 (dwarf2_per_cu_data::addr_size): Update.
4402 (dwarf2_per_cu_data::offset_size): Update.
4403 (dwarf2_per_cu_data::ref_addr_size): Update.
4404
4405 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
4406
4407 * dwarf2/read.c (load_cu): Return dwarf2_cu.
4408 (dw2_do_instantiate_symtab): Update.
4409 (queue_and_load_all_dwo_tus): Change parameter from
4410 dwarf2_per_cu_data to dwarf2_cu.
4411 (dwarf2_fetch_die_loc_sect_off): Update.
4412 (dwarf2_fetch_constant_bytes): Update.
4413 (dwarf2_fetch_die_type_sect_off): Update.
4414
4415 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
4416
4417 * dwarf2/read.c (process_full_comp_unit,
4418 process_full_type_unit): Remove per_cu, per_objfile paramters.
4419 Add dwarf2_cu parameter.
4420 (process_queue): Update.
4421
4422 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
4423
4424 * dwarf2/read.c (create_cu_from_index_list): Replace
4425 dwarf2_per_objfile parameter with dwarf2_per_bfd.
4426 (create_cus_from_index_list): Likewise.
4427 (create_cus_from_index): Likewise.
4428 (create_signatured_type_table_from_index): Likewise.
4429 (create_cus_from_debug_names_list): Likewise.
4430 (create_cus_from_debug_names): Likewise.
4431 (dwarf2_read_gdb_index): Update.
4432 (dwarf2_read_debug_names): Update.
4433
4434 2020-05-27 Tom Tromey <tom@tromey.com>
4435 Simon Marchi <simon.marchi@efficios.com>
4436
4437 * dwarf2/read.h (struct dwarf2_per_objfile)
4438 <get_type_for_signatured_type, set_type_for_signatured_type>:
4439 New methods.
4440 <m_type_map>: New member.
4441 (struct signatured_type) <type>: Remove.
4442 * dwarf2/read.c
4443 (dwarf2_per_objfile::get_type_for_signatured_type,
4444 dwarf2_per_objfile::set_type_for_signatured_type): New.
4445 (get_signatured_type): Use new methods.
4446
4447 2020-05-27 Tom Tromey <tom@tromey.com>
4448 Simon Marchi <simon.marchi@efficios.com>
4449
4450 * dwarf2/read.h (struct type_unit_group_unshareable): New.
4451 (struct dwarf2_per_objfile) <type_units>: New member.
4452 <get_type_unit_group_unshareable>: New method.
4453 * dwarf2/read.c (struct type_unit_group) <compunit_symtab,
4454 num_symtabs, symtabs>: Remove; move to
4455 type_unit_group_unshareable.
4456 (dwarf2_per_objfile::get_type_unit_group_unshareable): New.
4457 (process_full_type_unit, dwarf2_cu::setup_type_unit_groups)
4458 (dwarf2_cu::setup_type_unit_groups): Use type_unit_group_unshareable.
4459
4460 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
4461
4462 * dwarf2/read.h (struct dwarf2_per_cu_data):
4463 <dwarf2_per_objfile>: Remove.
4464 * dwarf2/read.c (create_cu_from_index_list): Don't assign
4465 dwarf2_per_objfile.
4466 (create_signatured_type_table_from_index): Likewise.
4467 (create_signatured_type_table_from_debug_names): Likewise.
4468 (create_debug_type_hash_table): Likewise.
4469 (fill_in_sig_entry_from_dwo_entry): Likewise.
4470 (create_type_unit_group): Likewise.
4471 (read_comp_units_from_section): Likewise.
4472 (create_cus_hash_table): Likewise.
4473
4474 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
4475
4476 * dwarf2/read.c (process_psymtab_comp_unit): Remove reference to
4477 dwarf2_per_cu_data::dwarf2_per_objfile.
4478 (compute_compunit_symtab_includes): Likewise.
4479 (dwarf2_cu::start_symtab): Likewise.
4480
4481 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
4482
4483 * dwarf2/read.h (dwarf2_get_die_type): Add dwarf2_per_objfile
4484 parameter.
4485 * dwarf2/read.c (get_die_type_at_offset): Likewise.
4486 (read_namespace_alias): Update.
4487 (lookup_die_type): Update.
4488 (dwarf2_get_die_type): Add dwarf2_per_objfile parameter.
4489 * dwarf2/loc.c (class dwarf_evaluate_loc_desc) <get_base_type>:
4490 Update.
4491 (disassemble_dwarf_expression): Update.
4492
4493 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
4494
4495 * dwarf2/read.h (struct dwarf2_queue_item): Add
4496 dwarf2_per_objfile parameter, assign new parameter.
4497 <per_objfile>: New field.
4498 * dwarf2/read.c (free_one_cached_comp_unit): Add
4499 dwarf2_per_objfile parameter.
4500 (queue_comp_unit): Likewise.
4501 (dw2_do_instantiate_symtab): Update.
4502 (process_psymtab_comp_unit): Update.
4503 (maybe_queue_comp_unit): Add dwarf2_per_objfile parameter.
4504 (process_imported_unit_die): Update.
4505 (queue_and_load_dwo_tu): Update.
4506 (follow_die_offset): Update.
4507 (follow_die_sig_1): Update.
4508
4509 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
4510
4511 * dwarf2/read.h (struct dwarf2_per_cu_data) <objfile>: Remove.
4512 * dwarf2/read.c (dwarf2_compute_name): Pass per_objfile down.
4513 (read_call_site_scope): Assign per_objfile.
4514 (dwarf2_per_cu_data::objfile): Remove.
4515 * gdbtypes.h (struct call_site) <per_objfile>: New member.
4516 * dwarf2/loc.h (dwarf2_evaluate_loc_desc): Add
4517 dwarf2_per_objfile parameter.
4518 * dwarf2/loc.c (dwarf2_evaluate_loc_desc_full): Add
4519 dwarf2_per_objfile parameter.
4520 (dwarf_expr_reg_to_entry_parameter): Add output
4521 dwarf2_per_objfile parameter.
4522 (locexpr_get_frame_base): Update.
4523 (class dwarf_evaluate_loc_desc) <get_tls_address>: Update.
4524 <push_dwarf_reg_entry_value>: Update.
4525 <call_site_to_target_addr>: Update.
4526 (dwarf_entry_parameter_to_value): Add dwarf2_per_objfile
4527 parameter.
4528 (value_of_dwarf_reg_entry): Update.
4529 (rw_pieced_value): Update.
4530 (indirect_synthetic_pointer): Update.
4531 (dwarf2_evaluate_property): Update.
4532 (dwarf2_loc_desc_get_symbol_read_needs): Add dwarf2_per_objfile
4533 parameter.
4534 (locexpr_read_variable): Update.
4535 (locexpr_get_symbol_read_needs): Update.
4536 (loclist_read_variable): Update.
4537
4538 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
4539
4540 * dwarf2/read.h (dwarf2_fetch_die_loc_sect_off,
4541 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
4542 dwarf2_fetch_die_type_sect_off): Add dwarf2_per_objfile
4543 parameter.
4544 * dwarf2/read.c (dwarf2_fetch_die_loc_sect_off,
4545 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
4546 dwarf2_fetch_die_type_sect_off): Add dwarf2_per_objfile
4547 parameter.
4548 * dwarf2/loc.c (indirect_synthetic_pointer, per_cu_dwarf_call,
4549 sect_variable_value): Add dwarf2_per_objfile parameter.
4550 (class dwarf_evaluate_loc_desc) <dwarf_call,
4551 dwarf_variable_value>: Update.
4552 (fetch_const_value_from_synthetic_pointer): Add
4553 dwarf2_per_objfile parameter.
4554 (fetch_const_value_from_synthetic_pointer): Update.
4555 (coerced_pieced_ref): Update.
4556 (class symbol_needs_eval_context) <dwarf_call,
4557 dwarf_variable_value>: Update.
4558 (dwarf2_compile_expr_to_ax): Update.
4559
4560 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
4561
4562 * dwarf2/loc.c (allocate_piece_closure): Add dwarf2_per_objfile
4563 parameter.
4564 (dwarf2_evaluate_loc_desc_full): Update.
4565
4566 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
4567
4568 * dwarf2/read.h (dwarf2_read_addr_index): Add dwarf2_per_objfile
4569 parameter.
4570 * dwarf2/read.c (dwarf2_read_addr_index): Likewise.
4571 * dwarf2/loc.c (decode_debug_loclists_addresses): Add
4572 dwarf2_per_objfile parameter.
4573 (decode_debug_loc_dwo_addresses): Likewise.
4574 (dwarf2_find_location_expression): Update.
4575 (class dwarf_evaluate_loc_desc) <get_addr_index>: Update.
4576 (locexpr_describe_location_piece): Add dwarf2_per_objfile
4577 parameter.
4578 (disassemble_dwarf_expression): Add dwarf2_per_objfile
4579 parameter.
4580 (locexpr_describe_location_1): Likewise.
4581 (locexpr_describe_location): Update.
4582
4583 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
4584
4585 * dwarf2/read.h (struct dwarf2_per_cu_data) <text_offset>:
4586 Remove.
4587 * dwarf2/read.c (dwarf2_per_cu_data::text_offset): Remove.
4588 * dwarf2/loc.c (dwarf2_find_location_expression): Update.
4589 (dwarf2_compile_property_to_c): Update.
4590 (dwarf2_compile_expr_to_ax): Add dwarf2_per_objfile parameter,
4591 use text offset from objfile.
4592 (locexpr_tracepoint_var_ref): Update.
4593 (locexpr_generate_c_location): Update.
4594 (loclist_describe_location): Update.
4595 (loclist_tracepoint_var_ref): Update.
4596 * dwarf2/compile.h (compile_dwarf_bounds_to_c): Add
4597 dwarf2_per_objfile parameter.
4598 * dwarf2/loc2c.c (do_compile_dwarf_expr_to_c): Likewise,
4599 use text offset from objfile.
4600 (compile_dwarf_expr_to_c): Add dwarf2_per_objfile parameter.
4601
4602 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
4603
4604 * dwarf2/expr.h (struct dwarf_expr_context)
4605 <dwarf_expr_context>: Add dwarf2_per_objfile parameter.
4606 <offset>: Remove.
4607 <per_objfile>: New member.
4608 * dwarf2/expr.c (dwarf_expr_context::dwarf_expr_context): Add
4609 dwarf2_per_objfile parameter. Don't set offset, set
4610 per_objfile.
4611 (dwarf_expr_context::execute_stack_op): Use offset from objfile.
4612 * dwarf2/frame.c (dwarf2_frame_find_fde): Return (by parameter)
4613 a dwarf2_per_objfile object instead of an offset.
4614 (class dwarf_expr_executor) <dwarf_expr_executor>: Add
4615 constructor.
4616 (execute_stack_op): Add dwarf2_per_objfile parameter, pass it
4617 to dwarf2_expr_executor constructor. Don't set offset.
4618 (dwarf2_fetch_cfa_info): Update.
4619 (struct dwarf2_frame_cache) <text_offset>: Remove.
4620 <per_objfile>: New field.
4621 (dwarf2_frame_cache): Update.
4622 (dwarf2_frame_prev_register): Update.
4623 * dwarf2/loc.c (class dwarf_evaluate_loc_desc)
4624 <dwarf_evaluate_loc_desc>: Add constructor.
4625 (dwarf2_evaluate_loc_desc_full): Update.
4626 (dwarf2_locexpr_baton_eval): Update.
4627 (class symbol_needs_eval_context) <symbol_needs_eval_context>:
4628 Add constructor.
4629 (dwarf2_loc_desc_get_symbol_read_needs): Update.
4630
4631 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
4632
4633 * dwarf2/read.h (struct dwarf2_per_cu_data) <addr_type,
4634 addr_sized_int_type>: Move to dwarf2_cu.
4635 <int_type>: Move to dwarf2_per_objfile.
4636 (struct dwarf2_per_objfile) <int_type>: Move here.
4637 * dwarf2/read.c (struct dwarf2_cu) <addr_type,
4638 addr_sized_int_type>: Move here.
4639 (read_func_scope): Update.
4640 (read_array_type): Update.
4641 (read_tag_string_type): Update.
4642 (attr_to_dynamic_prop): Update.
4643 (dwarf2_per_cu_data::int_type): Rename to...
4644 (dwarf2_per_objfile::int_type): ... this.
4645 (dwarf2_per_cu_data::addr_sized_int_type): Rename to...
4646 (dwarf2_cu::addr_sized_int_type): ... this.
4647 (read_subrange_type): Update.
4648 (dwarf2_per_cu_data::addr_type): Rename to...
4649 (dwarf2_cu::addr_type): ... this.
4650 (set_die_type): Update.
4651
4652 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
4653
4654 * dwarf2/read.c (queue_and_load_all_dwo_tus): Access per_objfile
4655 data through per_cu->cu.
4656
4657 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
4658
4659 * dwarf2/read.c (lookup_dwo_comp_unit): Change
4660 dwarf2_per_cu_data parameter fo dwarf2_cu.
4661 (lookup_dwo_type_unit): Likewise.
4662 (read_cutu_die_from_dwo): Likewise.
4663 (lookup_dwo_unit): Likewise.
4664 (open_and_init_dwo_file): Likewise.
4665 (lookup_dwo_cutu): Likewise.
4666 (lookup_dwo_comp_unit): Likewise.
4667 (lookup_dwo_type_unit): Likewise.
4668 (cutu_reader::init_tu_and_read_dwo_dies): Update.
4669 (cutu_reader::cutu_reader): Update.
4670
4671 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
4672
4673 * dwarf2/read.c (process_full_comp_unit): Add dwarf2_per_objfile
4674 parameter.
4675 (process_full_type_unit): Likewise.
4676 (process_queue): Update.
4677
4678 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
4679
4680 * dwarf2/read.c (recursively_compute_inclusions): Add
4681 dwarf2_per_objfile parameter.
4682 (compute_compunit_symtab_includes): Likewise.
4683 (process_cu_includes): Update.
4684
4685 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
4686
4687 * dwarf2/read.c (create_partial_symtab): Add dwarf2_per_objfile
4688 parameter.
4689 (create_type_unit_group): Update.
4690 (process_psymtab_comp_unit_reader): Update.
4691 (build_type_psymtabs_reader): Update.
4692
4693 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
4694
4695 * dwarf2/read.c (cutu_reader::keep): Access dwarf2_per_objfile
4696 object through m_this_cu->cu.
4697
4698 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
4699
4700 * dwarf2/read.c (queue_and_load_dwo_tu): Expect a dwarf2_cu as
4701 the info parameter.
4702 (queue_and_load_all_dwo_tus): Pass per_cu->cu.
4703
4704 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
4705
4706 * dwarf2/read.c (class cutu_reader) <cutu_reader>: Add
4707 per_objfile parameter.
4708 (load_full_type_unit): Add per_objfile parameter.
4709 (read_signatured_type): Likewise.
4710 (load_full_comp_unit): Likewise.
4711 (load_cu): Likewise.
4712 (dw2_do_instantiate_symtab): Likewise.
4713 (dw2_get_file_names): Likewise.
4714 (dw2_map_symtabs_matching_filename): Update.
4715 (dw_expand_symtabs_matching_file_matcher): Update.
4716 (dw2_map_symbol_filenames): Update.
4717 (process_psymtab_comp_unit): Add per_objfile parameter.
4718 (build_type_psymtabs_1): Update.
4719 (process_skeletonless_type_unit): Update.
4720 (dwarf2_build_psymtabs_hard): Update.
4721 (load_partial_comp_unit): Add per_objfile parameter.
4722 (scan_partial_symbols): Update.
4723 (load_full_comp_unit): Add per_objfile parameter.
4724 (process_imported_unit_die): Update.
4725 (create_cus_hash_table): Update.
4726 (find_partial_die): Update.
4727 (dwarf2_read_addr_index): Update.
4728 (follow_die_offset): Update.
4729 (dwarf2_fetch_die_loc_sect_off): Update.
4730 (dwarf2_fetch_constant_bytes): Update.
4731 (dwarf2_fetch_die_type_sect_off): Update.
4732 (follow_die_sig_1): Update.
4733 (load_full_type_unit): Add per_objfile parameter.
4734 (read_signatured_type): Likewise.
4735
4736 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
4737
4738 * dwarf2/read.c (lookup_dwo_unit): Use bfd_get_filename instead
4739 of objfile_name.
4740
4741 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
4742
4743 * dwarf2/read.h (struct dwarf2_per_bfd) <obfd>: New member.
4744 (dwarf2_get_dwz_file): Replace parameter with dwarf2_per_bfd.
4745 * dwarf2/read.c (dwarf2_per_bfd::dwarf2_per_bfd): Assign obfd
4746 field.
4747 (dwarf2_get_dwz_file): Replace parameter with dwarf2_per_bfd.
4748 (create_cus_from_index): Update.
4749 (dwarf2_read_gdb_index): Update.
4750 (create_cus_from_debug_names): Update.
4751 (dwarf2_read_debug_names): Update.
4752 (get_abbrev_section_for_cu): Update.
4753 (create_all_comp_units): Update.
4754 (read_attribute_value): Update.
4755 (get_debug_line_section): Update.
4756 * dwarf2/index-cache.c (index_cache::store): Update.
4757 * dwarf2/index-write.c (save_gdb_index_command): Update.
4758 * dwarf2/macro.c (dwarf_decode_macro_bytes): Update.
4759
4760 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
4761
4762 * dwarf2/read.h (struct dwarf2_per_cu_data) <per_bfd>: New
4763 member.
4764 * dwarf2/read.c (dwarf2_per_bfd::allocate_per_cu): Initialize
4765 dwarf2_per_cu_data::per_bfd.
4766 (dwarf2_per_bfd::allocate_signatured_type): Likewise.
4767 (create_type_unit_group): Likewise.
4768 (queue_comp_unit): Remove reference to
4769 per_cu->dwarf2_per_objfile.
4770 (maybe_queue_comp_unit): Likewise.
4771 (fill_in_sig_entry_from_dwo_entry): Assign new field.
4772 (create_cus_hash_table): Assign new field.
4773
4774 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
4775
4776 * dwarf2/read.c: Replace
4777 dwarf2_cu->per_cu->dwarf2_per_objfile references with
4778 dwarf2_cu->per_objfile throughout.
4779
4780 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
4781
4782 * dwarf2/read.c (dw2_do_instantiate_symtab): Add per_objfile
4783 parameter, don't use per_cu->dwarf2_per_objfile.
4784 (dw2_instantiate_symtab): Likewise.
4785 (dw2_find_last_source_symtab): Update.
4786 (dw2_map_expand_apply): Update.
4787 (dw2_lookup_symbol): Update.
4788 (dw2_expand_symtabs_for_function): Update.
4789 (dw2_expand_all_symtabs): Update.
4790 (dw2_expand_symtabs_with_fullname): Update.
4791 (dw2_expand_symtabs_matching_one): Add per_objfile parameter,
4792 don't use per_cu->dwarf2_per_objfile.
4793 (dw2_expand_marked_cus): Update.
4794 (dw2_find_pc_sect_compunit_symtab): Update.
4795 (dw2_debug_names_lookup_symbol): Update.
4796 (dw2_debug_names_expand_symtabs_for_function): Update.
4797 (dw2_debug_names_map_matching_symbols): Update.
4798 (dwarf2_psymtab::expand_psymtab): Update.
4799
4800 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
4801
4802 * dwarf2/read.c (struct dwarf2_cu) <dwarf2_cu>: Add parameter.
4803 <per_objfile>: New member.
4804 (class cutu_reader) <init_tu_and_read_dwo_dies>: Add parameter.
4805 (cutu_reader::init_tu_and_read_dwo_dies): Add parameter, update
4806 call to dwarf2_cu.
4807 (cutu_reader::cutu_reader): Update.
4808 (dwarf2_cu::dwarf2_cu): Add parameter, initialize per_objfile.
4809
4810 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
4811
4812 * dwarf2/read.h (struct dwarf2_per_bfd) <die_type_hash>: Move to
4813 struct dwarf2_per_objfile.
4814 (struct dwarf2_per_objfile) <die_type_hash>: Move from struct
4815 dwarf2_per_bfd.
4816 * dwarf2/read.c (set_die_type): Update.
4817 (get_die_type_at_offset): Update.
4818
4819 2020-05-27 Tom Tromey <tom@tromey.com>
4820 Simon Marchi <simon.marchi@efficios.com>
4821
4822 * dwarf2/read.h (struct dwarf2_per_bfd) <num_psymtabs>: New
4823 method.
4824 (struct dwarf2_per_objfile) <resize_symtabs, symtab_set_p,
4825 get_symtab, set_symtab>: New methods.
4826 <m_symtabs>: New field.
4827 (struct dwarf2_psymtab): Derive from partial_symtab.
4828 <readin_p, get_compunit_symtab>: Declare methods.
4829 * dwarf2/read.c (dwarf2_per_objfile::symtab_set_p,
4830 dwarf2_per_objfile::get_symtab, dwarf2_per_objfile::set_symtab):
4831 New methods.
4832 (struct dwarf2_per_cu_quick_data) <compunit_symtab>: Remove.
4833 (dw2_do_instantiate_symtab, dw2_instantiate_symtab)
4834 (dw2_map_expand_apply, dw2_map_symtabs_matching_filename)
4835 (dw2_symtab_iter_next, dw2_print_stats)
4836 (dw2_expand_symtabs_with_fullname)
4837 (dw2_expand_symtabs_matching_one)
4838 (dw_expand_symtabs_matching_file_matcher)
4839 (dw2_find_pc_sect_compunit_symtab, dw2_map_symbol_filenames)
4840 (dw2_debug_names_iterator::next)
4841 (dw2_debug_names_map_matching_symbols)
4842 (fill_in_sig_entry_from_dwo_entry, dwarf2_psymtab::read_symtab)
4843 (process_queue, dwarf2_psymtab::expand_psymtab): Update.
4844 (dwarf2_psymtab::readin_p, dwarf2_psymtab::get_compunit_symtab):
4845 New methods.
4846 (get_compunit_symtab, process_full_comp_unit)
4847 (process_full_type_unit): Update.
4848 (dwarf2_build_psymtabs, dwarf2_initialize_objfile, add_type_unit): Call
4849
4850 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
4851
4852 * dwarf2/read.h (dwarf2_per_objfile): Rename to dwarf2_per_bfd,
4853 then introduce a new dwarf2_per_objfile type.
4854 <read_line_string>: Move to the new dwarf2_per_objfile type.
4855 <objfile>: Likewise.
4856 (dwarf2_per_bfd): Rename dwarf2_per_objfile to this.
4857 * dwarf2/read.c: Replace references to dwarf2_per_objfile with
4858 dwarf2_per_objfile->per_bfd.
4859 (dwarf2_per_objfile::dwarf2_per_objfile): Rename to...
4860 (dwarf2_per_bfd::dwarf2_per_bfd): ... this.
4861 (dwarf2_per_objfile::free_cached_comp_units): Rename to...
4862 (dwarf2_per_bfd::free_cached_comp_units): ... this.
4863 (dwarf2_has_info): Allocate dwarf2_per_bfd.
4864 (dwarf2_per_objfile::locate_sections): Rename to...
4865 (dwarf2_per_bfd::locate_sections): ... this.
4866 (dwarf2_per_objfile::get_cutu): Rename to...
4867 (dwarf2_per_bfd::get_cutu): ... this.
4868 (dwarf2_per_objfile::get_cu): Rename to...
4869 (dwarf2_per_bfd::get_cu): ... this.
4870 (dwarf2_per_objfile::get_tu): Rename to...
4871 (dwarf2_per_bfd::get_tu): ... this.
4872 (dwarf2_per_objfile::allocate_per_cu): Rename to...
4873 (dwarf2_per_bfd::allocate_per_cu): ... this.
4874 (dwarf2_per_objfile::allocate_signatured_type): Rename to...
4875 (dwarf2_per_bfd::allocate_signatured_type): ... this.
4876 (get_gdb_index_contents_ftype): Change parameter from
4877 dwarf2_per_objfile to dwarf2_per_bfd.
4878 * dwarf2/macro.c, dwarf2/index-write.c: Replace references to
4879 dwarf2_per_objfile with dwarf2_per_objfile->per_bfd.
4880
4881 2020-05-27 Tom Tromey <tom@tromey.com>
4882 Simon Marchi <simon.marchi@efficios.com>
4883
4884 * dwarf2/loc.c (struct piece_closure) <per_objfile>: New member.
4885 (allocate_piece_closure): Set "per_objfile" member.
4886 (dwarf2_find_location_expression, dwarf2_locexpr_baton_eval)
4887 (locexpr_describe_location, loclist_describe_location): Use new
4888 member.
4889 * dwarf2/read.c (read_call_site_scope)
4890 (mark_common_block_symbol_computed, attr_to_dynamic_prop)
4891 (dwarf2_const_value_attr, dwarf2_fetch_die_loc_sect_off)
4892 (fill_in_loclist_baton, dwarf2_symbol_mark_computed,
4893 handle_data_member_location): Set per_objfile member.
4894 * dwarf2/loc.h (struct dwarf2_locexpr_baton) <per_objfile>: New
4895 member.
4896 (struct dwarf2_loclist_baton) <per_objfile>: New member.
4897
4898 2020-05-27 Tom Tromey <tom@tromey.com>
4899
4900 * dwarf2/read.h (struct dwarf2_per_objfile) <allocate_per_cu,
4901 allocate_signatured_type>: Declare new methods.
4902 <m_num_psymtabs>: New member.
4903 (struct dwarf2_per_cu_data) <index>: New member.
4904 * dwarf2/read.c (dwarf2_per_objfile::allocate_per_cu)
4905 (dwarf2_per_objfile::allocate_signatured_type): New methods.
4906 (create_cu_from_index_list): Use allocate_per_cu.
4907 (create_signatured_type_table_from_index)
4908 (create_signatured_type_table_from_debug_names)
4909 (create_debug_type_hash_table, add_type_unit)
4910 (read_comp_units_from_section): Use allocate_signatured_type.
4911
4912 2020-05-27 Tom Tromey <tom@tromey.com>
4913
4914 * psymtab.c (partial_map_expand_apply)
4915 (psym_find_pc_sect_compunit_symtab, psym_lookup_symbol)
4916 (psym_lookup_global_symbol_language)
4917 (psymtab_to_symtab, psym_find_last_source_symtab, dump_psymtab)
4918 (psym_print_stats, psym_expand_symtabs_for_function)
4919 (psym_map_symbol_filenames, psym_map_matching_symbols)
4920 (psym_expand_symtabs_matching)
4921 (partial_symtab::read_dependencies, maintenance_info_psymtabs)
4922 (maintenance_check_psymtabs): Update.
4923 * psympriv.h (struct partial_symtab) <readin_p,
4924 get_compunit_symtab>: Add objfile parameter.
4925 (struct standard_psymtab) <readin_p, get_compunit_symtab>:
4926 Likewise.
4927 * dwarf2/read.c (struct dwarf2_include_psymtab) <readin_p,
4928 get_compunit_symtab>: Likewise.
4929 (dwarf2_psymtab::expand_psymtab): Pass objfile argument.
4930
4931 2020-05-27 Tom Tromey <tom@tromey.com>
4932
4933 * dwarf2/read.h (struct dwarf2_per_objfile) <obstack>: New
4934 member.
4935 * dwarf2/read.c (delete_file_name_entry): Fix comment.
4936 (create_cu_from_index_list)
4937 (create_signatured_type_table_from_index)
4938 (create_signatured_type_table_from_debug_names)
4939 (dw2_get_file_names_reader, dwarf2_initialize_objfile)
4940 (dwarf2_create_include_psymtab)
4941 (create_debug_type_hash_table, add_type_unit)
4942 (create_type_unit_group, read_comp_units_from_section)
4943 (dwarf2_compute_name, create_cus_hash_table)
4944 (create_dwp_hash_table, create_dwo_unit_in_dwp_v1)
4945 (create_dwo_unit_in_dwp_v2, open_and_init_dwp_file): Use new
4946 obstack.
4947 (dw2_get_real_path): Likewise. Change argument to
4948 dwarf2_per_objfile.
4949
4950 2020-05-27 Luis Machado <luis.machado@linaro.org>
4951
4952 PR tdep/26000
4953 * arm-tdep.c (thumb_analyze_prologue): Fix instruction matching
4954 for ldrd (immediate).
4955
4956 2020-05-26 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4957
4958 * command.h: Add comment giving the name of class_tui.
4959 * cli/cli-cmds.c (_initialize_cli_cmds): If TUI defined,
4960 create the fake command for the help for class_tui.
4961
4962 2020-05-26 Tom Tromey <tromey@adacore.com>
4963
4964 * ada-lang.c (ada_print_array_index): Change type. Call val_atr.
4965 (ada_value_ptr_subscript): Don't call pos_atr on the lower bound.
4966 (val_atr): New function.
4967 (value_val_atr): Use it.
4968 * ada-valprint.c (print_optional_low_bound): Change low bound
4969 handling for enums.
4970 (val_print_packed_array_elements): Don't call discrete_position.
4971 * gdbtypes.c (get_discrete_bounds) <TYPE_CODE_RANGE>: Call
4972 discrete_position for enum types.
4973 * language.c (default_print_array_index): Change type.
4974 * language.h (struct language_defn) <la_print_array_index>: Add
4975 index_type parameter, change type of index_value.
4976 (LA_PRINT_ARRAY_INDEX): Add index_type parameter.
4977 (default_print_array_index): Update.
4978 * valprint.c (maybe_print_array_index): Don't call
4979 value_from_longest. Update.
4980 (value_print_array_elements): Don't call discrete_position.
4981
4982 2020-05-26 Tom Tromey <tromey@adacore.com>
4983
4984 * ada-lang.c (value_val_atr): Handle TYPE_CODE_RANGE.
4985 * gdbtypes.c (discrete_position): Handle TYPE_CODE_RANGE.
4986
4987 2020-05-25 Cristiano De Alti <cristiano_dealti@hotmail.com>
4988
4989 PR gdb/13519
4990 * avr-tdep.c (avr_integer_to_address): Return data or code
4991 address accordingly to the second 'type' argument of the
4992 function.
4993
4994 2020-05-25 Michael Weghorn <m.weghorn@posteo.de>
4995
4996 * infcmd.c, inferior.h: (construct_inferior_arguments):
4997 Moved function from here to gdbsupport/common-inferior.{h,cc}
4998
4999 2020-05-23 Tom Tromey <tom@tromey.com>
5000
5001 Revert commit eca1f90c:
5002 * NEWS: Remove entry for completion styling.
5003 * completer.c (_rl_completion_prefix_display_length): Move
5004 declaration later.
5005 (gdb_fnprint): Revert.
5006 (gdb_display_match_list_1): Likewise.
5007 * cli/cli-style.c (completion_prefix_style)
5008 (completion_difference_style, completion_suffix_style): Remove.
5009 (_initialize_cli_style): Revert.
5010 * cli/cli-style.h (completion_prefix_style)
5011 (completion_difference_style, completion_suffix_style): Don't
5012 declare.
5013
5014 2020-05-24 Pedro Alves <palves@redhat.com>
5015
5016 * symtab.c (completion_list_add_name): Return boolean indication
5017 of whether the symbol matched.
5018 (completion_list_add_symbol): Don't try to remove C++ aliases if
5019 the symbol didn't match in the first place.
5020 * symtab.h (completion_list_add_name): Return bool.
5021
5022 2020-05-23 Simon Marchi <simon.marchi@polymtl.ca>
5023
5024 * gdbtypes.h (TYPE_FIELD): Remove. Replace all uses with
5025 type::field.
5026
5027 2020-05-23 Joel Brobecker <brobecker@adacore.com>
5028
5029 GDB 9.2 released.
5030
5031 2020-05-23 Tom Tromey <tom@tromey.com>
5032
5033 * NEWS: Add entry for completion styling.
5034 * completer.c (_rl_completion_prefix_display_length): Move
5035 declaration earlier.
5036 (gdb_fnprint): Use completion_style.
5037 (gdb_display_match_list_1): Likewise.
5038 * cli/cli-style.c (completion_prefix_style)
5039 (completion_difference_style, completion_suffix_style): New
5040 globals.
5041 (_initialize_cli_style): Register new globals.
5042 * cli/cli-style.h (completion_prefix_style)
5043 (completion_difference_style, completion_suffix_style): Declare.
5044
5045 2020-05-23 Pedro Alves <palves@redhat.com>
5046
5047 * utils.c: Include "gdbsupport/gdb-safe-ctype.h".
5048 (parse_escape): Use ISDIGIT instead of isdigit.
5049 (puts_debug): Use gdb_isprint instead of isprint.
5050 (fprintf_symbol_filtered): Use ISALNUM instead of isalnum.
5051 (cp_skip_operator_token, skip_ws, strncmp_iw_with_mode): Use
5052 ISSPACE instead of isspace.
5053 (strncmp_iw_with_mode): Use TOLOWER instead of tolower and ISSPACE
5054 instead of isspace.
5055 (strcmp_iw_ordered): Use ISSPACE instead of isspace.
5056 (string_to_core_addr): Use TOLOWER instead of tolower, ISXDIGIT
5057 instead of isxdigit and ISDIGIT instead of isdigit.
5058
5059 2020-05-22 Simon Marchi <simon.marchi@efficios.com>
5060
5061 * gdbtypes.h (struct type) <field>: New method.
5062 (TYPE_FIELDS): Remove, replace all uses with either type::fields
5063 or type::field.
5064
5065 2020-05-22 Simon Marchi <simon.marchi@efficios.com>
5066
5067 * gdbtypes.h (struct type) <fields, set_fields>: New methods.
5068 (TYPE_FIELDS): Use type::fields. Change all call sites that
5069 modify the propery to use type::set_fields instead.
5070
5071 2020-05-22 Simon Marchi <simon.marchi@efficios.com>
5072
5073 * gdbtypes.h (TYPE_NFIELDS): Remove. Change all cal sites to use
5074 type::num_fields instead.
5075
5076 2020-05-22 Simon Marchi <simon.marchi@efficios.com>
5077
5078 * gdbtypes.h (struct type) <num_fields, set_num_fields>: New
5079 methods.
5080 (TYPE_NFIELDS): Use type::num_fields. Change all call sites
5081 that modify the number of fields to use type::set_num_fields
5082 instead.
5083
5084 2020-05-22 Tom Tromey <tromey@adacore.com>
5085
5086 * compile/compile-object-load.h (munmap_list_free): Don't
5087 declare.
5088
5089 2020-05-22 Andrew Burgess <andrew.burgess@embecosm.com>
5090
5091 * annotate.c (annotate_source_line): Update return type, add call
5092 to update current symtab and line.
5093 * annotate.h (annotate_source_line): Update return type, and
5094 extend header comment.
5095 * source.c (info_line_command): Check annotation_level before
5096 calling annotate_source_line.
5097 * stack.c (print_frame_info): If calling annotate_source_line
5098 returns true, then don't print any other source line information.
5099
5100 2020-05-21 Simon Marchi <simon.marchi@efficios.com>
5101
5102 * lm32-tdep.c (lm32_register_reggroup_p): Fix condition.
5103
5104 2020-05-21 Simon Marchi <simon.marchi@efficios.com>
5105
5106 * coffread.c (patch_type): Remove NULL check before xfree.
5107 * corefile.c (set_gnutarget): Likewise.
5108 * cp-abi.c (set_cp_abi_as_auto_default): Likewise.
5109 * exec.c (build_section_table): Likewise.
5110 * remote.c (remote_target::pass_signals): Likewise.
5111 * utils.c (n_spaces): Likewise.
5112 * cli/cli-script.c (document_command): Likewise.
5113 * i386-windows-tdep.c (core_process_module_section): Likewise.
5114 * linux-fork.c (struct fork_info) <~fork_info>: Likewise.
5115
5116 2020-05-20 Simon Marchi <simon.marchi@efficios.com>
5117
5118 * symfile.c (reread_symbols): Clear objfile's section_offsets
5119 vector and section indices, re-compute them by calling
5120 sym_offsets.
5121
5122 2020-05-20 Tom Tromey <tromey@adacore.com>
5123
5124 * ada-lang.c (bound_name, MAX_ADA_DIMENS): Remove.
5125 (desc_one_bound, desc_index_type): Compute field name.
5126
5127 2020-05-20 Tom de Vries <tdevries@suse.de>
5128
5129 PR symtab/25833
5130 * dwarf2/read.c (dw2_map_matching_symbols): Handle .gdb_index.
5131
5132 2020-05-20 Alan Modra <amodra@gmail.com>
5133
5134 PR 25993
5135 * solib-darwin.c (darwin_bfd_open): Don't strdup pathname for
5136 bfd_set_filename.
5137 * solib-aix.c (solib_aix_bfd_open): Use std::string for name
5138 passed to bfd_set_filename.
5139 * symfile-mem.c (add_vsyscall_page): Likewise for string
5140 passed to symbol_file_add_from_memory.
5141 (symbol_file_add_from_memory): Make name param a const char* and
5142 don't strdup.
5143
5144 2020-05-20 Alan Modra <amodra@gmail.com>
5145
5146 * coff-pe-read.c (read_pe_exported_syms): Use bfd_get_filename
5147 rather than accessing bfd->filename directly.
5148 * dtrace-probe.c (dtrace_static_probe_ops::get_probes): Likewise,
5149 and use bfd_section_name.
5150 * dwarf2/frame.c (decode_frame_entry): Likewise.
5151 * exec.c (exec_set_section_address): Likewise.
5152 * solib-aix.c (solib_aix_bfd_open): Likewise.
5153 * stap-probe.c (get_stap_base_address): Likewise.
5154 * symfile.c (reread_symbols): Likewise.
5155
5156 2020-05-19 Tom Tromey <tromey@adacore.com>
5157
5158 * sparc64-tdep.c (adi_tag_fd): Update call to target_fileio_open.
5159
5160 2020-05-19 Simon Marchi <simon.marchi@efficios.com>
5161
5162 * dwarf2/read.c (quirk_rust_enum): Allocate enough fields.
5163
5164 2020-05-19 Pedro Alves <palves@redhat.com>
5165
5166 * NEWS (set exec-file-mismatch): Adjust entry.
5167 * exec.c: Include "build-id.h".
5168 (validate_exec_file): Try to match build IDs instead of filenames.
5169 * gdb_bfd.c (struct gdb_bfd_open_closure): New.
5170 (gdb_bfd_iovec_fileio_open): Adjust to use gdb_bfd_open_closure
5171 and pass down 'warn_if_slow'.
5172 (gdb_bfd_open): Add 'warn_if_slow' parameter. Use
5173 gdb_bfd_open_closure to pass it down.
5174 * gdb_bfd.h (gdb_bfd_open): Add 'warn_if_slow' parameter.
5175
5176 2020-05-19 Pedro Alves <palves@redhat.com>
5177
5178 * gdb_bfd.c (gdb_bfd_iovec_fileio_open): Adjust.
5179 * target.c (target_fileio_open_1): Rename to target_fileio_open
5180 and make extern. Use bool.
5181 (target_fileio_open, target_fileio_open_warn_if_slow): Delete.
5182 (target_fileio_read_alloc_1): Adjust.
5183 * target.h (target_fileio_open): Add 'warn_if_slow' parameter.
5184 (target_fileio_open_warn_if_slow): Delete declaration.
5185
5186 2020-05-19 Pedro Alves <palves@redhat.com>
5187
5188 * gdb_bfd.h: (gdb_bfd_open): Default to 'fd' parameter to -1.
5189 Adjust all callers.
5190
5191 2020-05-19 Yoshinori Sato <ysato@users.sourceforge.jp>
5192
5193 * h8300-tdep.c (h8300_is_argument_spill): Change how we check
5194 whether disp is negative.
5195
5196 2020-05-19 Simon Marchi <simon.marchi@efficios.com>
5197
5198 * symfile.h (struct symfile_segment_data)
5199 <~symfile_segment_data>: Remove.
5200 <segment_info>: Change to std::vector.
5201 * symfile.c (default_symfile_segments): Update.
5202 * elfread.c (elf_symfile_segments): Update.
5203
5204 2020-05-19 Simon Marchi <simon.marchi@efficios.com>
5205
5206 * symfile.h (struct symfile_segment_data) <struct segment>: New.
5207 <segments>: New.
5208 <segment_bases, segment_sizes>: Remove.
5209 * symfile.c (default_symfile_segments): Update.
5210 * elfread.c (elf_symfile_segments): Update.
5211 * remote.c (remote_target::get_offsets): Update.
5212 * solib-target.c (solib_target_relocate_section_addresses):
5213 Update.
5214
5215 2020-05-19 Simon Marchi <simon.marchi@efficios.com>
5216
5217 * symfile.h (struct symfile_segment_data): Initialize fields.
5218 <~symfile_segment_data>: Add.
5219 (symfile_segment_data_up): New.
5220 (struct sym_fns) <sym_segments>: Return a
5221 symfile_segment_data_up.
5222 (default_symfile_segments): Return a symfile_segment_data_up.
5223 (free_symfile_segment_data): Remove.
5224 (get_symfile_segment_data): Return a symfile_segment_data_up.
5225 * symfile.c (default_symfile_segments): Likewise.
5226 (get_symfile_segment_data): Likewise.
5227 (free_symfile_segment_data): Remove.
5228 (symfile_find_segment_sections): Update.
5229 * elfread.c (elf_symfile_segments): Return a
5230 symfile_segment_data_up.
5231 * remote.c (remote_target::get_offsets): Update.
5232 * solib-target.c (solib_target_relocate_section_addresses):
5233 Update.
5234 * symfile-debug.c (debug_sym_segments): Return a
5235 symfile_segment_data_up.
5236
5237 2020-05-18 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5238
5239 PR build/25981
5240 * i386-sol2-nat.c [PR_MODEL_NATIVE != PR_MODEL_LP64] (regmap):
5241 Hardcode register numbers.
5242
5243 PR build/25981
5244 * procfs.c [(__i386__ || __x86_64__) && sun] (proc_get_LDT_entry,
5245 procfs_find_LDT_entry): Remove.
5246 * procfs.h [(__i386__ || __x86_64__) && sun] (struct ssd,
5247 procfs_find_LDT_entry): Remove.
5248 * sol-thread.c [(__i386__ || __x86_64__) && sun] (ps_lgetLDT):
5249 Remove.
5250
5251 2020-05-17 Pedro Alves <palves@redhat.com>
5252 Andrew Burgess <andrew.burgess@embecosm.com>
5253 Keno Fischer <keno@juliacomputing.com>
5254
5255 PR gdb/25741
5256 * breakpoint.c (build_target_condition_list): Update comments.
5257 (build_target_command_list): Update comments and skip matching
5258 locations.
5259 (insert_bp_location): Move "set breakpoint auto-hw on" handling to
5260 a separate function. Simplify "set breakpoint auto-hw off"
5261 handling.
5262 (insert_breakpoints): Update comment.
5263 (tracepoint_locations_match): New parameter. For breakpoints,
5264 compare location types too, if the caller wants to.
5265 (handle_automatic_hardware_breakpoints): New functions.
5266 (bp_location_is_less_than): Also sort by location type and
5267 hardware breakpoint length.
5268 (update_global_location_list): Handle "set breakpoint auto-hw on"
5269 here.
5270 (update_breakpoint_locations): Ask breakpoint_locations_match to
5271 ignore location types.
5272
5273 2020-05-16 Simon Marchi <simon.marchi@efficios.com>
5274
5275 * gdbtypes.h (TYPE_NAME): Remove. Change all cal sites to use
5276 type::name instead.
5277
5278 2020-05-16 Simon Marchi <simon.marchi@efficios.com>
5279
5280 * gdbtypes.h (struct type) <name, set_name>: New methods.
5281 (TYPE_CODE): Use type::name. Change all call sites used to set
5282 the name to use type::set_name instead.
5283
5284 2020-05-16 Tom Tromey <tom@tromey.com>
5285
5286 * top.c (quit_force): Update.
5287 * infrun.c (handle_no_resumed): Update.
5288 * top.h (all_uis): New function.
5289 (ALL_UIS): Remove.
5290
5291 2020-05-16 Simon Marchi <simon.marchi@efficios.com>
5292
5293 * mips-linux-tdep.c (mips_linux_in_dynsym_stub): Fix condition.
5294
5295 2020-05-16 Pedro Alves <palves@redhat.com>
5296
5297 * ia64-linux-nat.c
5298 (ia64_linux_nat_target) <enable_watchpoints_in_psr(ptid_t)>:
5299 Declare method.
5300 (enable_watchpoints_in_psr): Now a method of ia64_linux_nat_target.
5301
5302 2020-05-15 Simon Marchi <simon.marchi@efficios.com>
5303
5304 * sparc64-tdep.c (adi_stat_t): Remove typedef (leaving struct).
5305 (sparc64_adi_info): Likewise.
5306
5307 2020-05-15 Tom Tromey <tom@tromey.com>
5308
5309 * symtab.c (lookup_language_this, lookup_symbol_aux): Use
5310 block_objfile.
5311 (lookup_objfile_from_block): Remove.
5312 (lookup_symbol_in_block, lookup_symbol_in_static_block)
5313 (lookup_global_symbol): Use block_objfile.
5314 * symtab.h (lookup_objfile_from_block): Don't declare.
5315 * printcmd.c (clear_dangling_display_expressions): Use
5316 block_objfile.
5317 * parse.c (operator_check_standard): Use block_objfile.
5318
5319 2020-05-15 Tom Tromey <tom@tromey.com>
5320
5321 * language.c (language_alloc_type_symbol): Set
5322 SYMBOL_SECTION.
5323 * symtab.c (initialize_objfile_symbol): Remove.
5324 (allocate_symbol): Remove.
5325 (allocate_template_symbol): Remove.
5326 * dwarf2/read.c (fixup_go_packaging): Use "new".
5327 (new_symbol): Use "new".
5328 (read_variable): Don't call initialize_objfile_symbol. Use
5329 "new".
5330 (read_func_scope): Use "new".
5331 * xcoffread.c (process_xcoff_symbol): Don't call
5332 initialize_objfile_symbol.
5333 (SYMBOL_DUP): Remove.
5334 * coffread.c (process_coff_symbol, coff_read_enum_type): Use
5335 "new".
5336 * symtab.h (allocate_symbol, initialize_objfile_symbol)
5337 (allocate_template_symbol): Don't declare.
5338 (struct symbol): Add copy constructor. Change defaults.
5339 * jit.c (finalize_symtab): Use "new".
5340 * ctfread.c (ctf_add_enum_member_cb, new_symbol, ctf_add_var_cb):
5341 Use "new".
5342 * stabsread.c (patch_block_stabs, define_symbol, read_enum_type)
5343 (common_block_end): Use "new".
5344 * mdebugread.c (parse_symbol): Use "new".
5345 (new_symbol): Likewise.
5346
5347 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5348
5349 * NEWS: Mention changes to help and apropos.
5350
5351 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5352
5353 * command.h (enum command_class): Improve comments, document
5354 that class_alias is for user-defined aliases, give the class
5355 name for each class, remove unused class_xdb.
5356 * cli/cli-decode.c (add_com_alias): Document THECLASS intended usage.
5357 * breakpoint.c (_initialize_breakpoint): Replace class_alias
5358 by a precise class.
5359 * infcmd.c (_initialize_infcmd): Likewise.
5360 * reverse.c (_initialize_reverse): Likewise.
5361 * stack.c (_initialize_stack): Likewise.
5362 * symfile.c (_initialize_symfile): Likewise.
5363 * tracepoint.c (_initialize_tracepoint): Likewise.
5364
5365 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5366
5367 * cli/cli-decode.c (apropos_cmd): Produce output for aliases
5368 when their aliased command is traversed.
5369 (help_cmd): Add fput_command_names_styled call to
5370 output command name and aliases when command has an alias.
5371
5372 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5373
5374 * cli/cli-decode.h (help_cmd_list): Remove declaration.
5375 * cli/cli-decode.c (help_cmd_list): Declare as static,
5376 remove prefix argument, use bool for recurse arg, rework to show the aliases of
5377 a command together with the command.
5378 (fput_command_name_styled, fput_command_names_styled): New functions.
5379 (print_help_for_command): Remove prefix arg, use bool for recurse arg, use
5380 fput_command_name_styled.
5381 (help_list, help_all): Update callers to remove prefix arg and use bool recurse.
5382 * cli/cli-cmds.c (_initialize_cli_cmds): Update alias_command doc.
5383
5384 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5385
5386 * cli/cli-setshow.h (cmd_show_list): Remove prefix argument.
5387 * cli/cli-decode.c (do_show_prefix_cmd): Likewise.
5388 * command.h (cmd_show_list): Likewise.
5389 * dwarf2/index-cache.c (show_index_cache_command): Likewise.
5390 * cli/cli-setshow.c (cmd_show_list): Use the prefix to produce the output. Skip aliases.
5391
5392 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5393
5394 * unittests/command-def-selftests.c (traverse_command_structure):
5395 Verify all commands of a list have the same prefix command and
5396 that only the top cmdlist commands have a null prefix.
5397
5398 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5399
5400 * cli/cli-decode.c (lookup_cmd_for_prefix): Return the aliased command
5401 as prefix, not one of its aliases.
5402 (set_cmd_prefix): Remove.
5403 (do_add_cmd): Centralize the setting of the prefix of a command, when
5404 command is defined after its full chain of prefix commands.
5405 (add_alias_cmd): Remove call to set_cmd_prefix, as do_add_cmd does it.
5406 (add_setshow_cmd_full): Likewise.
5407 (update_prefix_field_of_prefixed_commands): New function.
5408 (add_prefix_cmd): Replace non working call to set_cmd_prefix by
5409 update_prefix_field_of_prefixed_commands.
5410 * gdb/remote-fileio.c (initialize_remote_fileio): Use the real
5411 addresses of remote_set_cmdlist and remote_show_cmdlist given
5412 as argument, not the address of an argument.
5413 * gdb/remote-fileio.h (initialize_remote_fileio): Likewise.
5414 * gdb/remote.c (_initialize_remote): Likewise.
5415
5416 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5417
5418 * cli/cli-cmds.c (alias_command): Check for an existing alias
5419 using lookup_cmd_composition, as valid_command_p is too strict
5420 and forbids aliases that are the prefix of an existing alias
5421 or command.
5422 * cli/cli-decode.c (lookup_cmd_composition): Ensure a prefix
5423 command is properly recognised as a valid command.
5424
5425 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5426
5427 * unittests/help-doc-selftests.c: Rename to
5428 unittests/command-def-selftests.c
5429 * unittests/command-def-selftests.c (help_doc_tests): Update some
5430 comments.
5431 (command_structure_tests, traverse_command_structure): New namespace
5432 and function.
5433 (command_structure_invariants_tests): New function.
5434 (_initialize_command_def_selftests) Renamed from
5435 _initialize_help_doc_selftests, register command_structure_invariants
5436 selftest.
5437
5438 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5439
5440 * cli/cli-cmds.c (_initialize_cli_cmds): Define 'info set' as
5441 an alias of 'show'.
5442
5443 2020-05-15 Joel Brobecker <brobecker@adacore.com>
5444
5445 * ada-lang.h: (ada_is_gnat_encoded_fixed_point_type): Renames
5446 ada_is_fixed_point_type. Update all callers.
5447 (gnat_encoded_fixed_point_delta): Renames ada_delta. Update
5448 all callers.
5449 * ada-lang.c (gnat_encoded_fixed_type_info): Renames fixed_type_info.
5450 Update all callers.
5451 * ada-typeprint.c (print_gnat_encoded_fixed_point_type): Renames
5452 print_fixed_point_type. Update all callers.
5453 * ada-valprint.c (ada_value_print_num): Replace call to
5454 ada_is_fixed_point_type by ada_is_gnat_encoded_fixed_point_type.
5455
5456 2020-05-14 Kevin Buettner <kevinb@redhat.com>
5457
5458 * nat/linux-btrace.c (btrace_this_cpu): Add check for AMD
5459 processors.
5460 (cpu_supports_bts): Add CV_AMD case.
5461
5462 2020-05-14 Laurent Morichetti <Laurent.Morichetti@amd.com>
5463 Simon Marchi <simon.marchi@efficios.com>
5464
5465 * infrun.c (stop_all_threads): Collect multiple wait events at
5466 each pass.
5467
5468 2020-05-14 Simon Marchi <simon.marchi@efficios.com>
5469
5470 * gdbtypes.h (TYPE_CODE): Remove. Change all call sites to use
5471 type::code instead.
5472
5473 2020-05-14 Simon Marchi <simon.marchi@efficios.com>
5474
5475 * gdbtypes.h (struct type) <code, set_code>: New methods.
5476 (TYPE_CODE): Use type::code. Change all call sites used to set
5477 the code to use type::set_code instead.
5478
5479 2020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
5480 Tom de Vries <tdevries@suse.de>
5481 Pedro Alves <palves@redhat.com>
5482
5483 PR threads/25478
5484 * infrun.c (stop_all_threads): Do NOT ignore
5485 TARGET_WAITKIND_NO_RESUMED, TARGET_WAITKIND_THREAD_EXITED,
5486 TARGET_WAITKIND_EXITED, TARGET_WAITKIND_SIGNALLED wait statuses
5487 received.
5488 (handle_no_resumed): Remove code handling a live inferior with no
5489 threads.
5490 * remote.c (has_single_non_exited_thread): New.
5491 (remote_target::update_thread_list): Do not delete a thread if is
5492 the last thread of the process.
5493 * thread.c (thread_select): Call delete_exited_threads instead of
5494 prune_threads.
5495
5496 2020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
5497
5498 * infrun.c (stop_all_threads): Enable/disable thread events of all
5499 targets. Move a debug message denoting the end of the function
5500 into the SCOPED_EXIT block.
5501
5502 2020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
5503
5504 * process-stratum-target.h: Include <set>.
5505 (all_non_exited_process_targets, switch_to_target_no_thread): New
5506 function declarations.
5507 * process-stratum-target.c (all_non_exited_process_targets)
5508 (switch_to_target_no_thread): New function implementations.
5509
5510 2020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
5511
5512 * infrun.c (handle_inferior_event): Extract out a piece of code
5513 into...
5514 (mark_non_executing_threads): ...this new function.
5515
5516 2020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
5517
5518 * infrun.c (resume_1): Move a 'regcache_read_pc' call down to first
5519 use.
5520
5521 2020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
5522
5523 * regcache.c (regcache_read_pc_protected): New function
5524 implementation that returns 0 if the PC cannot read via
5525 'regcache_read_pc'.
5526 * infrun.c (proceed): Call 'regcache_read_pc_protected'
5527 instead of 'regcache_read_pc'.
5528 (keep_going_pass_signal): Ditto.
5529
5530 2020-05-13 Tom Tromey <tromey@adacore.com>
5531
5532 * ada-lang.c (align_value): Remove.
5533 (ada_template_to_fixed_record_type_1): Use align_up.
5534
5535 2020-05-13 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
5536
5537 * async-event.c: Update the copyright year.
5538 * async-event.h: Update the copyright year.
5539
5540 2020-05-12 Simon Marchi <simon.marchi@efficios.com>
5541
5542 * objfiles.h (is_addr_in_objfile,
5543 shared_objfile_contains_address_p): Return bool.
5544 * objfile.c (is_addr_in_objfile,
5545 shared_objfile_contains_address_p): Return bool.
5546
5547 2020-05-11 Tom Tromey <tromey@adacore.com>
5548
5549 * cli/cli-cmds.c (info_command): Restore.
5550 (_initialize_cli_cmds): Use add_prefix_command for "info".
5551 * gdb-gdb.gdb.in: Restore breakpoint on info_command.
5552
5553 2020-05-11 Tom Tromey <tromey@adacore.com>
5554
5555 * ada-lang.c (ada_value_primitive_field): Now public.
5556 * ada-lang.h (ada_value_primitive_field): Declare.
5557 * ada-valprint.c (print_field_values): Use
5558 ada_value_primitive_field for wrapper fields.
5559
5560 2020-05-11 Tom de Vries <tdevries@suse.de>
5561
5562 * dwarf2/index-write.c (debug_names::psymbol_tag): Handle
5563 MODULE_DOMAIN.
5564
5565 2020-05-11 Tom de Vries <tdevries@suse.de>
5566
5567 PR symtab/25941
5568 * dwarf2/read.c (create_cus_from_debug_names_list): Initialize CUs
5569 with length 0, if not gdb-produced.
5570 (cutu_reader::cutu_reader): Set CU length to actual length if 0.
5571
5572 2020-05-09 Tom de Vries <tdevries@suse.de>
5573
5574 PR gdb/25955
5575 * break-catch-throw.c (check_status_exception_catchpoint): Fix name
5576 calculation.
5577
5578 2020-05-09 Tom Tromey <tom@tromey.com>
5579
5580 * top.c (server_command): Now bool.
5581 * top.h (server_command): Now bool.
5582
5583 2020-05-08 Tom Tromey <tromey@adacore.com>
5584
5585 * dwarf2/read.c (read_lexical_block_scope): Don't process a DIE
5586 already being processed.
5587
5588 2020-05-08 Tom Tromey <tom@tromey.com>
5589
5590 * printcmd.c (struct display) <next>: Remove.
5591 <display>: New constructor.
5592 <exp_string>: Now a std::string.
5593 <enabled_p>: Now a bool.
5594 (display_number): Move definition earlier.
5595 (displays): Rename from display_chain. Now a std::vector.
5596 (ALL_DISPLAYS, ALL_DISPLAYS_SAFE): Remove.
5597 (display_command): Update.
5598 (do_one_display, disable_display)
5599 (enable_disable_display_command, do_enable_disable_display):
5600 Update.
5601 (free_display): Remove.
5602 (clear_displays): Rewrite.
5603 (delete_display): Update.
5604 (map_display_numbers): Use function_view. Remove "data"
5605 parameter. Update.
5606 (do_delete_display): Remove.
5607 (undisplay_command): Update.
5608 (do_one_display, do_displays, disable_display)
5609 (info_display_command): Update.
5610 (do_enable_disable_display): Remove.
5611 (enable_disable_display_command)
5612 (clear_dangling_display_expressions): Update.
5613
5614 2020-05-08 Tom Tromey <tom@tromey.com>
5615
5616 * symtab.c (set_symbol_cache_size)
5617 (maintenance_print_symbol_cache, maintenance_flush_symbol_cache)
5618 (maintenance_print_symbol_cache_statistics): Update.
5619 * symmisc.c (print_symbol_bcache_statistics)
5620 (print_objfile_statistics, maintenance_print_objfiles)
5621 (maintenance_info_symtabs, maintenance_check_symtabs)
5622 (maintenance_expand_symtabs, maintenance_info_line_tables):
5623 Update.
5624 * symfile-debug.c (set_debug_symfile): Update.
5625 * source.c (forget_cached_source_info): Update.
5626 * python/python.c (gdbpy_progspaces): Update.
5627 * psymtab.c (maintenance_info_psymtabs): Update.
5628 * probe.c (parse_probes): Update.
5629 * linespec.c (iterate_over_all_matching_symtabs)
5630 (collect_symtabs_from_filename, search_minsyms_for_name): Update.
5631 * guile/scm-progspace.c (gdbscm_progspaces): Update.
5632 * exec.c (exec_target::close): Update.
5633 * ada-tasks.c (ada_tasks_new_objfile_observer): Update.
5634 * breakpoint.c (print_one_breakpoint_location)
5635 (create_longjmp_master_breakpoint)
5636 (create_std_terminate_master_breakpoint): Update.
5637 * progspace.c (program_spaces): Now a std::vector.
5638 (maybe_new_address_space): Update.
5639 (add_program_space): Remove.
5640 (program_space::program_space): Update.
5641 (remove_program_space): Update.
5642 (number_of_program_spaces): Remove.
5643 (print_program_space, update_address_spaces): Update.
5644 * progspace.h (program_spaces): Change type.
5645 (ALL_PSPACES): Remove.
5646 (number_of_program_spaces): Don't declare.
5647 (struct program_space) <next>: Remove.
5648
5649 2020-05-08 Tom Tromey <tom@tromey.com>
5650
5651 * mi/mi-cmd-file.c (mi_cmd_file_list_shared_libraries): Update.
5652 * solib-svr4.c (svr4_fetch_objfile_link_map): Update.
5653 (enable_break): Update.
5654 * solib-frv.c (frv_fdpic_find_global_pointer): Update.
5655 (frv_fdpic_find_canonical_descriptor): Update.
5656 (frv_fetch_objfile_link_map): Update.
5657 * progspace.c (program_space::free_all_objfiles): Update.
5658 (program_space::solibs): New method.
5659 * progspace.h (struct program_space) <solibs>: New method.
5660 * solist.h (master_so_list): Don't declare.
5661 (ALL_SO_LIBS): Remove.
5662 * solib.h (so_list_head): Remove.
5663 (update_solib_list): Update comment.
5664 * solib.c (master_so_list): Remove.
5665 (solib_used, update_solib_list, solib_add)
5666 (info_sharedlibrary_command, clear_solib)
5667 (reload_shared_libraries_1, remove_user_added_objfile): Update.
5668
5669 2020-05-08 Tom Tromey <tom@tromey.com>
5670
5671 * extension.c (extension_languages): Now a std::array.
5672 (ALL_EXTENSION_LANGUAGES): Remove.
5673 (get_ext_lang_defn, get_ext_lang_of_file)
5674 (eval_ext_lang_from_control_command): Update.
5675 (finish_ext_lang_initialization)
5676 (auto_load_ext_lang_scripts_for_objfile)
5677 (ext_lang_type_printers::ext_lang_type_printers)
5678 (apply_ext_lang_type_printers)
5679 (ext_lang_type_printers::~ext_lang_type_printers)
5680 (apply_ext_lang_val_pretty_printer, apply_ext_lang_frame_filter)
5681 (preserve_ext_lang_values, get_breakpoint_cond_ext_lang)
5682 (breakpoint_ext_lang_cond_says_stop, check_quit_flag)
5683 (get_matching_xmethod_workers, ext_lang_colorize)
5684 (ext_lang_before_prompt): Update.
5685 (ALL_ENABLED_EXTENSION_LANGUAGES): Remove.
5686
5687 2020-05-08 Tom Tromey <tom@tromey.com>
5688
5689 * symtab.h (class demangle_result_storage) <set_malloc_ptr>: New
5690 overload.
5691 <swap_string, m_string>: Remove.
5692 * symtab.c (demangle_for_lookup, completion_list_add_symbol):
5693 Update.
5694 * stabsread.c (define_symbol, read_type): Update.
5695 * linespec.c (find_linespec_symbols): Update.
5696 * gnu-v3-abi.c (gnuv3_get_typeid): Update.
5697 * dwarf2/read.c (dwarf2_canonicalize_name): Update.
5698 * dbxread.c (read_dbx_symtab): Update.
5699 * cp-support.h (cp_canonicalize_string_full)
5700 (cp_canonicalize_string, cp_canonicalize_string_no_typedefs):
5701 Return unique_xmalloc_ptr.
5702 * cp-support.c (inspect_type): Update.
5703 (cp_canonicalize_string_full): Return unique_xmalloc_ptr.
5704 (cp_canonicalize_string_no_typedefs, cp_canonicalize_string):
5705 Likewise.
5706 * c-typeprint.c (print_name_maybe_canonical): Update.
5707 * break-catch-throw.c (check_status_exception_catchpoint):
5708 Update.
5709
5710 2020-05-08 Tom de Vries <tdevries@suse.de>
5711
5712 * infrun.c (follow_fork): Copy current_line and current_symtab to
5713 child thread.
5714
5715 2020-05-07 Simon Marchi <simon.marchi@efficios.com>
5716
5717 * async-event.c (struct async_signal_handler, struct
5718 async_event_handler): Reformat, remove typedef.
5719
5720 2020-05-07 Simon Marchi <simon.marchi@efficios.com>
5721
5722 * gdbtypes.h (TYPE_DYN_PROP_LIST): Remove. Update all users
5723 access thistype->main_type->dyn_prop_list directly.
5724
5725 2020-05-07 Simon Marchi <simon.marchi@efficios.com>
5726
5727 * gdbtypes.h (struct type) <remove_dyn_prop>: New method.
5728 (remove_dyn_prop): Remove. Update all users to use
5729 type::remove_dyn_prop.
5730 * gdbtypes.c (remove_dyn_prop): Rename to...
5731 (type::remove_dyn_prop): ... this.
5732
5733 2020-05-07 Simon Marchi via Gdb-patches <gdb-patches@sourceware.org>
5734
5735 * gdbtypes.h (struct type) <add_dyn_prop>: New method.
5736 (add_dyn_prop): Remove. Update all users to use
5737 type::add_dyn_prop.
5738 * gdbtypes.c (add_dyn_prop): Rename to...
5739 (type::add_dyn_prop): ... this.
5740
5741 2020-05-07 Simon Marchi <simon.marchi@efficios.com>
5742
5743 * gdbtypes.h (struct type) <get_dyn_prop>: New method.
5744 (get_dyn_prop): Remove. Update all users to use
5745 type::dyn_prop.
5746 * gdbtypes.c (get_dyn_prop): Rename to...
5747 (type::dyn_prop): ... this.
5748
5749 2020-05-06 Simon Marchi <simon.marchi@efficios.com>
5750
5751 * gdbtypes.h (struct main_type) <flag_static>: Remove.
5752
5753 2020-05-06 Simon Marchi <simon.marchi@efficios.com>
5754
5755 * amd64-tdep.c (amd64_analyze_prologue): Check for `endbr64`
5756 instruction, skip it if it's there.
5757
5758 2020-05-05 Simon Marchi <simon.marchi@efficios.com>
5759
5760 * gdbtypes.h (struct main_type) <flag_incomplete>: Remove.
5761
5762 2020-05-04 Simon Marchi <simon.marchi@efficios.com>
5763
5764 * gdbtypes.h (TYPE_INCOMPLETE): Remove.
5765 * gdbtypes.c (recursive_dump_type): Remove use of
5766 TYPE_INCOMPLETE.
5767
5768 2020-05-03 Tom Tromey <tom@tromey.com>
5769
5770 * breakpoint.c (catch_command, tcatch_command): Remove.
5771 (_initialize_breakpoint): Use add_basic_prefix_cmd,
5772 add_show_prefix_cmd.
5773 (set_breakpoint_cmd, show_breakpoint_cmd): Remove
5774 * utils.c (set_internal_problem_cmd, show_internal_problem_cmd):
5775 Remove.
5776 (add_internal_problem_command): Use add_basic_prefix_cmd,
5777 add_show_prefix_cmd.
5778 * mips-tdep.c (set_mipsfpu_command): Remove.
5779 (_initialize_mips_tdep): Use add_basic_prefix_cmd.
5780 * dwarf2/index-cache.c (set_index_cache_command): Remove.
5781 (_initialize_index_cache): Use add_basic_prefix_cmd.
5782 * memattr.c (dummy_cmd): Remove.
5783 (_initialize_mem): Use add_basic_prefix_cmd, add_show_prefix_cmd.
5784 * tui/tui-win.c (set_tui_cmd, show_tui_cmd): Remove.
5785 (_initialize_tui_win): Use add_basic_prefix_cmd,
5786 add_show_prefix_cmd.
5787 * cli/cli-logging.c (set_logging_command): Remove.
5788 (_initialize_cli_logging): Use add_basic_prefix_cmd,
5789 add_show_prefix_cmd.
5790 (show_logging_command): Remove.
5791 * target.c (target_command): Remove.
5792 (add_target): Use add_basic_prefix_cmd.
5793
5794 2020-05-02 Hannes Domani <ssbssa@yahoo.de>
5795
5796 * gdbtypes.h (enum dynamic_prop_node_kind): Fix typo.
5797
5798 2020-05-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5799
5800 * gdb-gdb.gdb-in: Remove breakpoint on disappeared function
5801 info_command.
5802
5803 2020-04-30 Kamil Rytarowski <n54@gmx.com>
5804
5805 * nbsd-nat.c (nbsd_enable_proc_events)
5806 (nbsd_nat_target::post_startup_inferior): Add.
5807 (nbsd_nat_target::post_attach): Call `nbsd_enable_proc_events'.
5808 (nbsd_nat_target::update_thread_list): Rewrite.
5809 (nbsd_nat_target::wait): Handle "PTRACE_LWP_EXIT" and
5810 "PTRACE_LWP_CREATE".
5811 * nbsd-nat.h (nbsd_nat_target::post_startup_inferior): Add.
5812
5813 2020-04-30 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5814
5815 * stack.c (_initialize_stack): Remove duplicated creation
5816 of "frame" command and "f" alias.
5817
5818 2020-04-30 Hannes Domani <ssbssa@yahoo.de>
5819
5820 PR gdb/18706
5821 * gdbtypes.c (check_typedef): Calculate size of array of
5822 stubbed type.
5823
5824 2020-04-30 Hannes Domani <ssbssa@yahoo.de>
5825
5826 PR gdb/15559
5827 * i386-tdep.c (i386_push_dummy_call): Call
5828 i386_thiscall_push_dummy_call.
5829 (i386_thiscall_push_dummy_call): New function.
5830 * i386-tdep.h (i386_thiscall_push_dummy_call): Declare.
5831 * i386-windows-tdep.c (i386_windows_push_dummy_call): New function.
5832 (i386_windows_init_abi): Call set_gdbarch_push_dummy_call.
5833
5834 2020-04-29 Simon Marchi <simon.marchi@efficios.com>
5835
5836 * gdbarch.sh (do_read): Add shellcheck disable directive for
5837 warning SC2162.
5838
5839 2020-04-29 Simon Marchi <simon.marchi@efficios.com>
5840
5841 * gdbarch.sh: Use ${foo:-} where shellcheck would report a
5842 "referenced but not assigned" warning.
5843
5844 2020-04-29 Simon Marchi <simon.marchi@efficios.com>
5845
5846 * gdbarch.sh: Remove code that sets fallbackdefault.
5847
5848 2020-04-29 Simon Marchi <simon.marchi@efficios.com>
5849
5850 * gdbarch.sh: Use shell operators && and || instead of
5851 -a and -o.
5852
5853 2020-04-29 Simon Marchi <simon.marchi@efficios.com>
5854
5855 * gdbarch.sh: Use $(...) instead of `...`.
5856
5857 2020-04-29 Simon Marchi <simon.marchi@efficios.com>
5858
5859 * gdbarch.sh: Use double quotes around variables.
5860
5861 2020-04-29 Simon Marchi <simon.marchi@efficios.com>
5862
5863 * gdbarch.sh: Use %s with printf, instead of variables in the
5864 format string.
5865
5866 2020-04-29 Tom Tromey <tromey@adacore.com>
5867
5868 PR ada/25875:
5869 * dwarf2/read.c (update_enumeration_type_from_children): Compute
5870 type fields here.
5871 (read_enumeration_type): Call
5872 update_enumeration_type_from_children later. Update comments.
5873 (process_enumeration_scope): Don't create type fields.
5874
5875 2020-04-29 Kamil Rytarowski <n54@gmx.com>
5876
5877 * nbsd-tdep.c: Include "xml-syscall.h".
5878 (nbsd_init_abi): Call `set_xml_syscall_file_name'.
5879
5880 2020-04-29 Kamil Rytarowski <n54@gmx.com>
5881
5882 * nbsd-nat.c: Include "sys/wait.h".
5883 (nbsd_resume, nbsd_nat_target::resume, nbsd_wait)
5884 (nbsd_nat_target::wait, nbsd_nat_target::insert_exec_catchpoint)
5885 (nbsd_nat_target::remove_exec_catchpoint)
5886 (nbsd_nat_target::set_syscall_catchpoint): Add.
5887 * nbsd-nat.h (nbsd_nat_target::resume, nbsd_nat_target::wait)
5888 (nbsd_nat_target::insert_exec_catchpoint)
5889 (nbsd_nat_target::remove_exec_catchpoint)
5890 (nbsd_nat_target::set_syscall_catchpoint): Add.
5891 * nbsd-tdep.c (nbsd_get_syscall_number): Add.
5892 (nbsd_init_abi): Call `set_gdbarch_get_syscall_number' and pass
5893 `nbsd_get_syscall_number'.
5894
5895 2020-04-29 Tom Tromey <tom@tromey.com>
5896
5897 * stack.c (print_block_frame_labels): Remove.
5898
5899 2020-04-29 Hannes Domani <ssbssa@yahoo.de>
5900
5901 PR gdb/17320
5902 * ada-valprint.c (val_print_packed_array_elements): Move array
5903 end bracket to new line.
5904 (ada_val_print_string): Remove extra spaces before first array
5905 element.
5906 * c-valprint.c (c_value_print_array): Likewise.
5907 * m2-valprint.c (m2_print_array_contents): Likewise.
5908 (m2_value_print_inner): Likewise.
5909 * p-valprint.c (pascal_value_print_inner): Likewise.
5910 * valprint.c (generic_val_print_array): Likewise.
5911 (value_print_array_elements): Move first array element and array
5912 end bracket to new line.
5913
5914 2020-04-29 Tom de Vries <tdevries@suse.de>
5915
5916 PR symtab/25889
5917 * linespec.c (find_method): Fix ix calculation.
5918
5919 2020-04-28 Kamil Rytarowski <n54@gmx.com>
5920
5921 * syscalls/update-netbsd.sh: New file.
5922 * syscalls/netbsd.xml: Regenerate.
5923 * data-directory/Makefile.in: Register `netbsd.xml' in
5924 `SYSCALLS_FILES'.
5925
5926 2020-04-28 Simon Marchi <simon.marchi@efficios.com>
5927
5928 * syscalls/update-freebsd.sh: Add double quotes.
5929
5930 2020-04-28 Tom Tromey <tom@tromey.com>
5931
5932 * NEWS: Update.
5933 * python/py-cmd.c (gdbpy_initialize_commands): Add COMMAND_TUI.
5934 (cmdpy_init): Allow class_tui.
5935
5936 2020-04-28 Mark Williams <mark@myosotissp.com>
5937
5938 PR gdb/24480
5939 * dwarf2read.c: Add missing assingments to list_in_scope when
5940 start_symtab was already called.
5941
5942 2020-04-28 Simon Marchi <simon.marchi@efficios.com>
5943
5944 PR gdb/25881
5945 * dwarf2/read.c (offset_map_type): Use
5946 gdb:hash_enum<sect_offset> as hash function.
5947
5948 2020-04-28 Tom de Vries <tdevries@suse.de>
5949
5950 * dwarf2/read.c (process_structure_scope): Add symbol for struct decl
5951 with DW_AT_signature.
5952
5953 2020-04-27 Simon Marchi <simon.marchi@efficios.com>
5954
5955 * configure.ac: Remove check for fs_base/gs_base in
5956 user_regs_struct.
5957 * configure: Re-generate.
5958 * config.in: Re-generate.
5959 * amd64-nat.c (amd64_native_gregset_reg_offset): Adjust.
5960 * amd64-linux-nat.c (amd64_linux_nat_target::fetch_registers,
5961 amd64_linux_nat_target::store_registers, ps_get_thread_area, ): Adjust.
5962
5963 2020-04-27 Luis Machado <luis.machado@linaro.org>
5964
5965 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first): Handle
5966 problematic inline frame unwinding situation.
5967 * frame.c (frame_id_computed_p): New function.
5968 * frame.h (frame_id_computed_p): New prototype.
5969
5970 2020-04-26 Tom Tromey <tom@tromey.com>
5971
5972 * command.h (enum command_class) <class_pseudo>: Remove.
5973
5974 2020-04-26 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5975
5976 * cli/cli-decode.c (lookup_cmd_composition): Fix comments
5977 and whitespace.
5978
5979 2020-04-25 Kamil Rytarowski <n54@gmx.com>
5980
5981 * inf-ptrace.c (inf_ptrace_target::wait): Remove
5982 `PT_GET_PROCESS_STATE' block.
5983
5984 2020-04-24 Tom Tromey <tom@tromey.com>
5985
5986 * symtab.h (symbol_get_demangled_name): Don't declare.
5987 * symtab.c (symbol_get_demangled_name): Remove.
5988 (general_symbol_info::natural_name)
5989 (general_symbol_info::demangled_name): Update.
5990
5991 2020-04-24 Tom Tromey <tom@tromey.com>
5992
5993 PR rust/25025:
5994 * dwarf2/read.c (dwarf2_physname): Do not demangle for Rust.
5995
5996 2020-04-24 Tom Tromey <tom@tromey.com>
5997
5998 PR symtab/12707:
5999 * dwarf2/read.c (add_partial_symbol): Use the linkage name if it
6000 exists.
6001 (new_symbol): Likewise.
6002 * compile/compile-object-load.c (get_out_value_type): Use
6003 symbol_matches_search_name.
6004
6005 2020-04-24 Tom Tromey <tom@tromey.com>
6006
6007 * dwarf2/read.c (add_partial_symbol): Do not call
6008 compute_and_set_names.
6009
6010 2020-04-24 Tom Tromey <tom@tromey.com>
6011
6012 * dwarf2/read.c (add_partial_symbol): Use new add_psymbol_to_list
6013 overload.
6014
6015 2020-04-24 Tom Tromey <tom@tromey.com>
6016
6017 * psymtab.c (add_psymbol_to_bcache): Simplify calling convention.
6018 (add_psymbol_to_list): New overload. Make old overload call new
6019 one.
6020 * psympriv.h (add_psymbol_to_list): New overload.
6021
6022 2020-04-24 Tom Tromey <tom@tromey.com>
6023
6024 * dwarf2/read.c (partial_die_info::read) <case
6025 DW_AT_linkage_name>: Use value_as_string.
6026 (dwarf2_string_attr): Use value_as_string.
6027 * dwarf2/attribute.h (struct attribute) <value_as_string>: Declare
6028 method.
6029 * dwarf2/attribute.c (attribute::value_as_string): New method.
6030
6031 2020-04-24 Tom Tromey <tom@tromey.com>
6032
6033 * symtab.c (general_symbol_info::natural_name)
6034 (general_symbol_info::demangled_name): Check for language_rust.
6035
6036 2020-04-24 Tom Tromey <tom@tromey.com>
6037
6038 * dwarf2/read.c (dw2_linkage_name): Move Rust "{" hack here...
6039 (dwarf2_physname): ... from here.
6040 (partial_die_info::read): Add Rust "{" hack.
6041
6042 2020-04-24 Tom Tromey <tom@tromey.com>
6043
6044 * symtab.h (struct general_symbol_info) <set_demangled_name>: New
6045 method.
6046 (symbol_set_demangled_name): Don't declare.
6047 * symtab.c (general_symbol_info::set_demangled_name): Rename from
6048 symbol_set_demangled_name.
6049 (general_symbol_info::set_language)
6050 (general_symbol_info::compute_and_set_names): Update.
6051 * minsyms.c (minimal_symbol_reader::install): Update.
6052 * dwarf2/read.c (new_symbol): Update.
6053
6054 2020-04-24 Tom Tromey <tromey@adacore.com>
6055
6056 PR python/23662:
6057 * python/py-type.c (convert_field): Handle
6058 FIELD_LOC_KIND_DWARF_BLOCK.
6059 (typy_get_sizeof): Handle TYPE_HAS_DYNAMIC_LENGTH.
6060 (typy_get_dynamic): Nw function.
6061 (type_object_getset): Add "dynamic".
6062 * NEWS: Add entry.
6063
6064 2020-04-24 Tom Tromey <tromey@adacore.com>
6065
6066 * ada-typeprint.c (print_choices, print_variant_part)
6067 (print_record_field_types_dynamic): New functions.
6068 (print_record_field_types): Use print_record_field_types_dynamic.
6069
6070 2020-04-24 Tom Tromey <tromey@adacore.com>
6071
6072 * dwarf2/read.c (handle_data_member_location): New overload.
6073 (dwarf2_add_field): Use it.
6074 (decode_locdesc): Add "computed" parameter. Update comment.
6075 * gdbtypes.c (is_dynamic_type_internal): Also look for
6076 FIELD_LOC_KIND_DWARF_BLOCK.
6077 (resolve_dynamic_struct): Handle FIELD_LOC_KIND_DWARF_BLOCK.
6078 * gdbtypes.c (is_dynamic_type_internal): Add special case for C++
6079 virtual base classes.
6080 * gnu-v3-abi.c (gnuv3_baseclass_offset): Handle
6081 FIELD_LOC_KIND_DWARF_BLOCK.
6082
6083 2020-04-24 Tom Tromey <tromey@adacore.com>
6084
6085 * dwarf2/read.c (read_structure_type): Handle dynamic length.
6086 * gdbtypes.c (is_dynamic_type_internal): Check
6087 TYPE_HAS_DYNAMIC_LENGTH.
6088 (resolve_dynamic_type_internal): Use TYPE_DYNAMIC_LENGTH.
6089 * gdbtypes.h (TYPE_HAS_DYNAMIC_LENGTH, TYPE_DYNAMIC_LENGTH):
6090 New macros.
6091 (enum dynamic_prop_node_kind) <DYN_PROP_BYTE_SIZE>: New
6092 constant.
6093
6094 2020-04-24 Tom Tromey <tromey@adacore.com>
6095
6096 * dwarf2/read.c (struct variant_field): Rewrite.
6097 (struct variant_part_builder): New.
6098 (struct nextfield): Remove "variant" field. Add "offset".
6099 (struct field_info): Add "current_variant_part" and
6100 "variant_parts".
6101 (alloc_discriminant_info): Remove.
6102 (alloc_rust_variant): New function.
6103 (quirk_rust_enum): Update.
6104 (dwarf2_add_field): Set "offset" member. Don't handle
6105 DW_TAG_variant_part.
6106 (offset_map_type): New typedef.
6107 (convert_variant_range, create_one_variant)
6108 (create_one_variant_part, create_variant_parts)
6109 (add_variant_property): New functions.
6110 (dwarf2_attach_fields_to_type): Call add_variant_property.
6111 (read_structure_type): Don't handle DW_TAG_variant_part.
6112 (handle_variant_part, handle_variant): New functions.
6113 (handle_struct_member_die): Use them.
6114 (process_structure_scope): Don't handle variant parts.
6115 * gdbtypes.h (TYPE_FLAG_DISCRIMINATED_UNION): Remove.
6116 (struct discriminant_info): Remove.
6117 (enum dynamic_prop_node_kind) <DYN_PROP_DISCRIMINATED>: Remove.
6118 (struct main_type) <flag_discriminated_union>: Remove.
6119 * rust-lang.c (rust_enum_p, rust_empty_enum_p): Rewrite.
6120 (rust_enum_variant): Return int. Remove "contents". Rewrite.
6121 (rust_print_enum, rust_print_struct_def, rust_evaluate_subexp):
6122 Update.
6123 * valops.c (value_union_variant): Remove.
6124 * value.h (value_union_variant): Don't declare.
6125
6126 2020-04-24 Tom Tromey <tromey@adacore.com>
6127
6128 * ada-lang.c (ada_discrete_type_high_bound, ada_discrete_type_low)
6129 (ada_value_primitive_packed_val): Update.
6130 * ada-valprint.c (ada_value_print_1): Update.
6131 * dwarf2/loc.c (evaluate_for_locexpr_baton): New struct.
6132 (dwarf2_locexpr_baton_eval): Take a property_addr_info rather than
6133 just an address. Use evaluate_for_locexpr_baton.
6134 (dwarf2_evaluate_property): Update.
6135 * dwarf2/loc.h (struct property_addr_info) <valaddr>: Now an
6136 array_view.
6137 * findvar.c (default_read_var_value): Update.
6138 * gdbtypes.c (compute_variant_fields_inner)
6139 (resolve_dynamic_type_internal): Update.
6140 (resolve_dynamic_type): Change type of valaddr parameter.
6141 * gdbtypes.h (resolve_dynamic_type): Update.
6142 * valarith.c (value_subscripted_rvalue): Update.
6143 * value.c (value_from_contents_and_address): Update.
6144
6145 2020-04-24 Tom Tromey <tromey@adacore.com>
6146
6147 * dwarf2/loc.c (dwarf2_locexpr_baton_eval): Add
6148 "push_initial_value" parameter.
6149 (dwarf2_evaluate_property): Likewise.
6150 * dwarf2/loc.h (dwarf2_evaluate_property): Update.
6151
6152 2020-04-24 Tom Tromey <tromey@adacore.com>
6153
6154 * gdbtypes.c (is_dynamic_type_internal): Check for variant parts.
6155 (variant::matches, compute_variant_fields_recurse)
6156 (compute_variant_fields_inner, compute_variant_fields): New
6157 functions.
6158 (resolve_dynamic_struct): Check for DYN_PROP_VARIANT_PARTS.
6159 Use resolved_type after type is made.
6160 (operator==): Add new cases.
6161 * gdbtypes.h (TYPE_HAS_VARIANT_PARTS): New macro.
6162 (struct discriminant_range, struct variant, struct variant_part):
6163 New.
6164 (union dynamic_prop_data) <variant_parts, original_type>: New
6165 members.
6166 (enum dynamic_prop_node_kind) <DYN_PROP_VARIANT_PARTS>: New constant.
6167 (enum dynamic_prop_kind) <PROP_TYPE, PROP_VARIANT_PARTS>: New
6168 constants.
6169 * value.c (unpack_bits_as_long): Now public.
6170 * value.h (unpack_bits_as_long): Declare.
6171
6172 2020-04-24 Tom Tromey <tromey@adacore.com>
6173
6174 * rs6000-tdep.c (struct ppc_variant): Rename from "variant".
6175 (variants, find_variant_by_arch, rs6000_gdbarch_init): Update.
6176
6177 2020-04-24 Hannes Domani <ssbssa@yahoo.de>
6178
6179 * windows-tdep.c (exception_values): Add WOW64 exception numbers.
6180
6181 2020-04-24 Kamil Rytarowski <n54@gmx.com>
6182
6183 * inf-ptrace.h (follow_fork, insert_fork_catchpoint)
6184 (remove_fork_catchpoint, post_startup_inferior)
6185 (post_attach): Move...
6186 * obsd-nat.h (follow_fork, insert_fork_catchpoint)
6187 (remove_fork_catchpoint, post_startup_inferior)
6188 (post_attach): ...here.
6189 * inf-ptrace.c (follow_fork, insert_fork_catchpoint)
6190 (remove_fork_catchpoint, post_startup_inferior)
6191 (post_attach): Move...
6192 * obsd-nat.c (follow_fork, insert_fork_catchpoint)
6193 (remove_fork_catchpoint, post_startup_inferior)
6194 (post_attach): ...here.
6195
6196 2020-04-24 Tom Tromey <tromey@adacore.com>
6197
6198 * nat/windows-nat.h (struct windows_thread_info)
6199 <pc_adjusted>: New member.
6200 * windows-nat.c (windows_fetch_one_register): Check
6201 pc_adjusted.
6202 (windows_nat_target::get_windows_debug_event)
6203 (windows_nat_target::wait): Set pc_adjusted.
6204
6205 2020-04-24 Tom de Vries <tdevries@suse.de>
6206
6207 * contrib/cc-with-tweaks.sh: Remove <exec>.gdb-index file handling.
6208 Run gdb-add-index inside temp dir.
6209
6210 2020-04-23 Tom Tromey <tromey@adacore.com>
6211
6212 * windows-tdep.c (is_linked_with_cygwin_dll): Always update "iter"
6213 in loop.
6214
6215 2020-04-23 Luis Machado <luis.machado@linaro.org>
6216
6217 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first): Use
6218 get_frame_register instead of gdbarch_unwind_pc.
6219
6220 2020-04-23 Tom de Vries <tdevries@suse.de>
6221
6222 * symtab.c (lookup_global_symbol): Prefer def over decl.
6223
6224 2020-04-23 Tom de Vries <tdevries@suse.de>
6225
6226 PR symtab/25807
6227 * block.c (best_symbol, better_symbol): Promote to external.
6228 * block.h (best_symbol, better_symbol): Declare.
6229 * symtab.c (lookup_symbol_in_objfile_symtabs): Prefer def over
6230 decl.
6231
6232 2020-04-23 Tom Tromey <tromey@adacore.com>
6233
6234 PR ada/25837:
6235 * dwarf2/read.c (dw2_expand_symtabs_matching_symbol): Store a
6236 "const char *", not a "const std::string &".
6237 <name_and_matcher::operator==>: Update.
6238 * unittests/lookup_name_info-selftests.c: Change type of
6239 "result".
6240
6241 2020-04-23 Tom Tromey <tom@tromey.com>
6242
6243 * inferior.h (iterate_over_inferiors): Don't declare.
6244 * inferior.c (iterate_over_inferiors): Remove.
6245 * darwin-nat.c (find_inferior_task_it, find_inferior_pid_it):
6246 Remove.
6247 (darwin_find_inferior_by_task, darwin_find_inferior_by_pid): Don't
6248 use iterate_over_inferiors.
6249 (darwin_resume_inferior_it)
6250 (struct resume_inferior_threads_param)
6251 (darwin_resume_inferior_threads_it): Remove.
6252 (darwin_nat_target::resume): Don't use iterate_over_inferiors.
6253
6254 2020-04-23 Tom de Vries <tdevries@suse.de>
6255
6256 * blockframe.c (find_pc_partial_function): Use
6257 find_pc_sect_compunit_symtab rather than
6258 objfile->sf->qf->find_pc_sect_compunit_symtab.
6259
6260 2020-04-22 Tom de Vries <tdevries@suse.de>
6261
6262 PR symtab/25764
6263 * dwarf2/read.c (scan_partial_symbols): Allow external variable decls
6264 in psymtabs.
6265
6266 2020-04-22 Tom de Vries <tdevries@suse.de>
6267
6268 PR symtab/25801
6269 * psymtab.c (psym_map_symtabs_matching_filename): Don't skip shared
6270 symtabs.
6271
6272 2020-04-22 Tom de Vries <tdevries@suse.de>
6273
6274 PR symtab/25700
6275 * dwarf2/read.c (dwarf2_build_psymtabs_hard): Don't create psymtab for
6276 CU if already created.
6277
6278 2020-04-21 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
6279
6280 * infrun.c (displaced_step_fixup): Switch to the event_thread
6281 before calling displaced_step_restore, not after.
6282
6283 2020-04-21 Markus Metzger <markus.t.metzger@intel.com>
6284
6285 * record-btrace.c (record_btrace_enable_warn): Ignore thread if
6286 its inferior is not recorded by us.
6287 (record_btrace_target_open): Replace call to
6288 all_non_exited_threads () with call to current_inferior
6289 ()->non_exited_threads ().
6290 (record_btrace_target::stop_recording): Likewise.
6291 (record_btrace_target::close): Likewise.
6292 (record_btrace_target::wait): Likewise.
6293 (record_btrace_target::record_stop_replaying): Likewise.
6294
6295 2020-04-21 Markus Metzger <markus.t.metzger@intel.com>
6296
6297 * btrace.c (btrace_enable): Throw an error on double enables and
6298 when enabling recording fails.
6299 (btrace_disable): Throw an error if the thread is not recorded.
6300
6301 2020-04-21 Markus Metzger <markus.t.metzger@intel.com>
6302
6303 * record-btrace.c (record_btrace_target::fetch_registers): Forward
6304 request if we do not have a thread_info.
6305
6306 2020-04-21 Tom de Vries <tdevries@suse.de>
6307
6308 PR gdb/25471
6309 * thread.c
6310 (scoped_restore_current_thread::scoped_restore_current_thread): Catch
6311 exception in get_frame_id.
6312
6313 2020-04-20 Tom Tromey <tromey@adacore.com>
6314
6315 * python/python.c (struct gdbpy_event): Mark move constructor as
6316 noexcept.
6317 * python/py-tui.c (class gdbpy_tui_window_maker): Mark move
6318 constructor as noexcept.
6319 * completer.h (struct completion_result): Mark move constructor as
6320 noexcept.
6321 * completer.c (completion_result::completion_result): Use
6322 initialization style. Don't call reset_match_list.
6323
6324 2020-04-20 Mihails Strasuns <mihails.strasuns@intel.com>
6325
6326 * MAINTAINERS (Write After Approval): Add myself.
6327
6328 2020-04-18 Tom Tromey <tom@tromey.com>
6329
6330 * windows-tdep.c (init_w32_command_list)
6331 (w32_prefix_command_valid): Restore.
6332 (_initialize_windows_tdep): Call init_w32_command_list.
6333
6334 2020-04-18 Tom Tromey <tom@tromey.com>
6335
6336 * xcoffread.c (enter_line_range, scan_xcoff_symtab): Update.
6337 * value.c (value_fn_field): Update.
6338 * valops.c (find_function_in_inferior)
6339 (value_allocate_space_in_inferior): Update.
6340 * tui/tui-winsource.c (tui_update_source_windows_with_line):
6341 Update.
6342 * tui/tui-source.c (tui_source_window::set_contents): Update.
6343 * symtab.c (lookup_global_or_static_symbol)
6344 (find_function_start_sal_1, skip_prologue_sal)
6345 (print_msymbol_info, find_gnu_ifunc, symbol_arch): Update.
6346 * symmisc.c (dump_msymbols, dump_symtab_1)
6347 (maintenance_print_one_line_table): Update.
6348 * symfile.c (init_entry_point_info, section_is_mapped)
6349 (list_overlays_command, simple_read_overlay_table)
6350 (simple_overlay_update_1): Update.
6351 * stap-probe.c (handle_stap_probe): Update.
6352 * stabsread.c (dbx_init_float_type, define_symbol)
6353 (read_one_struct_field, read_enum_type, read_range_type): Update.
6354 * source.c (info_line_command): Update.
6355 * python/python.c (gdbpy_source_objfile_script)
6356 (gdbpy_execute_objfile_script): Update.
6357 * python/py-type.c (save_objfile_types): Update.
6358 * python/py-objfile.c (py_free_objfile): Update.
6359 * python/py-inferior.c (python_new_objfile): Update.
6360 * psymtab.c (psym_find_pc_sect_compunit_symtab, dump_psymtab)
6361 (dump_psymtab_addrmap_1, maintenance_info_psymtabs)
6362 (maintenance_check_psymtabs): Update.
6363 * printcmd.c (info_address_command): Update.
6364 * objfiles.h (struct objfile) <arch>: New method, from
6365 get_objfile_arch.
6366 (get_objfile_arch): Don't declare.
6367 * objfiles.c (get_objfile_arch): Remove.
6368 (filter_overlapping_sections): Update.
6369 * minsyms.c (msymbol_is_function): Update.
6370 * mi/mi-symbol-cmds.c (mi_cmd_symbol_list_lines)
6371 (output_nondebug_symbol): Update.
6372 * mdebugread.c (parse_symbol, basic_type, parse_partial_symbols)
6373 (mdebug_expand_psymtab): Update.
6374 * machoread.c (macho_add_oso_symfile): Update.
6375 * linux-tdep.c (linux_infcall_mmap, linux_infcall_munmap):
6376 Update.
6377 * linux-fork.c (checkpoint_command): Update.
6378 * linespec.c (convert_linespec_to_sals): Update.
6379 * jit.c (finalize_symtab): Update.
6380 * infrun.c (insert_exception_resume_from_probe): Update.
6381 * ia64-tdep.c (ia64_find_unwind_table): Update.
6382 * hppa-tdep.c (internalize_unwinds): Update.
6383 * gdbtypes.c (get_type_arch, init_float_type, objfile_type):
6384 Update.
6385 * gcore.c (call_target_sbrk): Update.
6386 * elfread.c (record_minimal_symbol, elf_symtab_read)
6387 (elf_rel_plt_read, elf_gnu_ifunc_record_cache)
6388 (elf_gnu_ifunc_resolve_by_got): Update.
6389 * dwarf2/read.c (create_addrmap_from_index)
6390 (create_addrmap_from_aranges, dw2_find_pc_sect_compunit_symtab)
6391 (read_debug_names_from_section)
6392 (process_psymtab_comp_unit_reader, add_partial_symbol)
6393 (add_partial_subprogram, process_full_comp_unit)
6394 (read_file_scope, read_func_scope, read_lexical_block_scope)
6395 (read_call_site_scope, dwarf2_ranges_read)
6396 (dwarf2_record_block_ranges, dwarf2_add_field)
6397 (mark_common_block_symbol_computed, read_tag_pointer_type)
6398 (read_tag_string_type, dwarf2_init_float_type)
6399 (dwarf2_init_complex_target_type, read_base_type)
6400 (partial_die_info::read, partial_die_info::read)
6401 (read_attribute_value, dwarf_decode_lines_1, new_symbol)
6402 (dwarf2_fetch_die_loc_sect_off): Update.
6403 * dwarf2/loc.c (dwarf2_find_location_expression)
6404 (class dwarf_evaluate_loc_desc, rw_pieced_value)
6405 (dwarf2_evaluate_loc_desc_full, dwarf2_locexpr_baton_eval)
6406 (dwarf2_loc_desc_get_symbol_read_needs)
6407 (locexpr_describe_location_piece, locexpr_describe_location_1)
6408 (loclist_describe_location): Update.
6409 * dwarf2/index-write.c (write_debug_names): Update.
6410 * dwarf2/frame.c (dwarf2_build_frame_info): Update.
6411 * dtrace-probe.c (dtrace_process_dof): Update.
6412 * dbxread.c (read_dbx_symtab, dbx_end_psymtab)
6413 (process_one_symbol): Update.
6414 * ctfread.c (ctf_init_float_type, read_base_type): Update.
6415 * coffread.c (coff_symtab_read, enter_linenos, decode_base_type)
6416 (coff_read_enum_type): Update.
6417 * cli/cli-cmds.c (edit_command, list_command): Update.
6418 * buildsym.c (buildsym_compunit::finish_block_internal): Update.
6419 * breakpoint.c (create_overlay_event_breakpoint)
6420 (create_longjmp_master_breakpoint)
6421 (create_std_terminate_master_breakpoint)
6422 (create_exception_master_breakpoint, get_sal_arch): Update.
6423 * block.c (block_gdbarch): Update.
6424 * annotate.c (annotate_source_line): Update.
6425
6426 2020-04-17 Tom Tromey <tromey@adacore.com>
6427
6428 * auto-load.c (show_auto_load_cmd): Remove.
6429 (auto_load_show_cmdlist_get): Use add_show_prefix_cmd.
6430 * arc-tdep.c (_initialize_arc_tdep): Use add_show_prefix_cmd.
6431 (maintenance_print_arc_command): Remove.
6432 * tui/tui-win.c (tui_command): Remove.
6433 (tui_get_cmd_list): Use add_basic_prefix_cmd.
6434 * tui/tui-layout.c (tui_layout_command): Remove.
6435 (_initialize_tui_layout): Use add_basic_prefix_cmd.
6436 * python/python.c (user_set_python, user_show_python): Remove.
6437 (_initialize_python): Use add_basic_prefix_cmd,
6438 add_show_prefix_cmd.
6439 * guile/guile.c (set_guile_command, show_guile_command): Remove.
6440 (install_gdb_commands): Use add_basic_prefix_cmd,
6441 add_show_prefix_cmd.
6442 (info_guile_command): Remove.
6443 * dwarf2/read.c (set_dwarf_cmd, show_dwarf_cmd): Remove.
6444 (_initialize_dwarf2_read): Use add_basic_prefix_cmd,
6445 add_show_prefix_cmd.
6446 * cli/cli-style.h (class cli_style_option) <add_setshow_commands>:
6447 Remove do_set and do_show parameters.
6448 * cli/cli-style.c (set_style, show_style): Remove.
6449 (_initialize_cli_style): Use add_basic_prefix_cmd,
6450 add_show_prefix_cmd.
6451 (cli_style_option::add_setshow_commands): Remove do_set and
6452 do_show parameters.
6453 (cli_style_option::add_setshow_commands): Use
6454 add_basic_prefix_cmd, add_show_prefix_cmd.
6455 (STYLE_ADD_SETSHOW_COMMANDS): Remove macro.
6456 (set_style_name): Remove.
6457 * cli/cli-dump.c (dump_command, append_command): Remove.
6458 (srec_dump_command, ihex_dump_command, verilog_dump_command)
6459 (tekhex_dump_command, binary_dump_command)
6460 (binary_append_command): Remove.
6461 (_initialize_cli_dump): Use add_basic_prefix_cmd.
6462 * windows-tdep.c (w32_prefix_command_valid): Remove global.
6463 (init_w32_command_list): Remove; move into ...
6464 (_initialize_windows_tdep): ... here. Use add_basic_prefix_cmd.
6465 * valprint.c (set_print, show_print, set_print_raw)
6466 (show_print_raw): Remove.
6467 (_initialize_valprint): Use add_basic_prefix_cmd,
6468 add_show_prefix_cmd.
6469 * typeprint.c (set_print_type, show_print_type): Remove.
6470 (_initialize_typeprint): Use add_basic_prefix_cmd,
6471 add_show_prefix_cmd.
6472 * record.c (set_record_command, show_record_command): Remove.
6473 (_initialize_record): Use add_basic_prefix_cmd,
6474 add_show_prefix_cmd.
6475 * cli/cli-cmds.c (_initialize_cli_cmds): Use add_basic_prefix_cmd,
6476 add_show_prefix_cmd.
6477 (info_command, show_command, set_debug, show_debug): Remove.
6478 * top.h (set_history, show_history): Don't declare.
6479 * top.c (set_history, show_history): Remove.
6480 * target-descriptions.c (set_tdesc_cmd, show_tdesc_cmd)
6481 (unset_tdesc_cmd): Remove.
6482 (_initialize_target_descriptions): Use add_basic_prefix_cmd,
6483 add_show_prefix_cmd.
6484 * symtab.c (info_module_command): Remove.
6485 (_initialize_symtab): Use add_basic_prefix_cmd.
6486 * symfile.c (overlay_command): Remove.
6487 (_initialize_symfile): Use add_basic_prefix_cmd.
6488 * sparc64-tdep.c (info_adi_command): Remove.
6489 (_initialize_sparc64_adi_tdep): Use add_basic_prefix_cmd.
6490 * sh-tdep.c (show_sh_command, set_sh_command): Remove.
6491 (_initialize_sh_tdep): Use add_basic_prefix_cmd,
6492 add_show_prefix_cmd.
6493 * serial.c (serial_set_cmd, serial_show_cmd): Remove.
6494 (_initialize_serial): Use add_basic_prefix_cmd,
6495 add_show_prefix_cmd.
6496 * ser-tcp.c (set_tcp_cmd, show_tcp_cmd): Remove.
6497 (_initialize_ser_tcp): Use add_basic_prefix_cmd,
6498 add_show_prefix_cmd.
6499 * rs6000-tdep.c (set_powerpc_command, show_powerpc_command)
6500 (_initialize_rs6000_tdep): Use add_basic_prefix_cmd,
6501 add_show_prefix_cmd.
6502 * riscv-tdep.c (show_riscv_command, set_riscv_command)
6503 (show_debug_riscv_command, set_debug_riscv_command): Remove.
6504 (_initialize_riscv_tdep): Use add_basic_prefix_cmd,
6505 add_show_prefix_cmd.
6506 * remote.c (remote_command, set_remote_cmd): Remove.
6507 (_initialize_remote): Use add_basic_prefix_cmd.
6508 * record-full.c (set_record_full_command)
6509 (show_record_full_command): Remove.
6510 (_initialize_record_full): Use add_basic_prefix_cmd,
6511 add_show_prefix_cmd.
6512 * record-btrace.c (cmd_set_record_btrace)
6513 (cmd_show_record_btrace, cmd_set_record_btrace_bts)
6514 (cmd_show_record_btrace_bts, cmd_set_record_btrace_pt)
6515 (cmd_show_record_btrace_pt): Remove.
6516 (_initialize_record_btrace): Use add_basic_prefix_cmd,
6517 add_show_prefix_cmd.
6518 * ravenscar-thread.c (set_ravenscar_command)
6519 (show_ravenscar_command): Remove.
6520 (_initialize_ravenscar): Use add_basic_prefix_cmd,
6521 add_show_prefix_cmd.
6522 * mips-tdep.c (show_mips_command, set_mips_command)
6523 (_initialize_mips_tdep): Use add_basic_prefix_cmd,
6524 add_show_prefix_cmd.
6525 * maint.c (maintenance_command, maintenance_info_command)
6526 (maintenance_check_command, maintenance_print_command)
6527 (maintenance_set_cmd, maintenance_show_cmd): Remove.
6528 (_initialize_maint_cmds): Use add_basic_prefix_cmd,
6529 add_show_prefix_cmd.
6530 (show_per_command_cmd): Remove.
6531 * maint-test-settings.c (maintenance_set_test_settings_cmd):
6532 Remove.
6533 (maintenance_show_test_settings_cmd): Remove.
6534 (_initialize_maint_test_settings): Use add_basic_prefix_cmd,
6535 add_show_prefix_cmd.
6536 * maint-test-options.c (maintenance_test_options_command):
6537 Remove.
6538 (_initialize_maint_test_options): Use add_basic_prefix_cmd.
6539 * macrocmd.c (macro_command): Remove
6540 (_initialize_macrocmd): Use add_basic_prefix_cmd.
6541 * language.c (set_check, show_check): Remove.
6542 (_initialize_language): Use add_basic_prefix_cmd,
6543 add_show_prefix_cmd.
6544 * infcmd.c (unset_command): Remove.
6545 (_initialize_infcmd): Use add_basic_prefix_cmd.
6546 * i386-tdep.c (set_mpx_cmd, show_mpx_cmd): Remove.
6547 (_initialize_i386_tdep): Use add_basic_prefix_cmd,
6548 add_show_prefix_cmd.
6549 * go32-nat.c (go32_info_dos_command): Remove.
6550 (_initialize_go32_nat): Use add_basic_prefix_cmd.
6551 * cli/cli-decode.c (do_prefix_cmd, add_basic_prefix_cmd)
6552 (do_show_prefix_cmd, add_show_prefix_cmd): New functions.
6553 * frame.c (set_backtrace_cmd, show_backtrace_cmd): Remove.
6554 (_initialize_frame): Use add_basic_prefix_cmd,
6555 add_show_prefix_cmd.
6556 * dcache.c (set_dcache_command, show_dcache_command): Remove.
6557 (_initialize_dcache): Use add_basic_prefix_cmd,
6558 add_show_prefix_cmd.
6559 * cp-support.c (maint_cplus_command): Remove.
6560 (_initialize_cp_support): Use add_basic_prefix_cmd.
6561 * btrace.c (maint_btrace_cmd, maint_btrace_set_cmd)
6562 (maint_btrace_show_cmd, maint_btrace_pt_set_cmd)
6563 (maint_btrace_pt_show_cmd, _initialize_btrace): Use
6564 add_basic_prefix_cmd, add_show_prefix_cmd.
6565 * breakpoint.c (save_command): Remove.
6566 (_initialize_breakpoint): Use add_basic_prefix_cmd.
6567 * arm-tdep.c (set_arm_command, show_arm_command): Remove.
6568 (_initialize_arm_tdep): Use add_basic_prefix_cmd,
6569 add_show_prefix_cmd.
6570 * ada-lang.c (maint_set_ada_cmd, maint_show_ada_cmd)
6571 (set_ada_command, show_ada_command): Remove.
6572 (_initialize_ada_language): Use add_basic_prefix_cmd,
6573 add_show_prefix_cmd.
6574 * command.h (add_basic_prefix_cmd, add_show_prefix_cmd): Declare.
6575
6576 2020-04-16 Kamil Rytarowski <n54@gmx.com>
6577
6578 * nbsd-nat.c (inf_ptrace_target::auxv_parse): Remove.
6579 * nbsd-nat.h (inf_ptrace_target::auxv_parse): Likewise.
6580
6581 2020-04-16 Simon Marchi <simon.marchi@polymtl.ca>
6582
6583 * windows-tdep.c (is_linked_with_cygwin_dll): Add filename to
6584 warning messages.
6585
6586 2020-04-16 Simon Marchi <simon.marchi@polymtl.ca>
6587
6588 * windows-tdep.c (is_linked_with_cygwin_dll): Consider case where
6589 import table is not at beginning of .idata section.
6590
6591 2020-04-16 Pedro Alves <palves@redhat.com>
6592
6593 * inferior.c (delete_inferior): Use delete operator directly
6594 instead of delete_program_space.
6595 * progspace.c (add_program_space): New, factored out from
6596 program_space::program_space.
6597 (remove_program_space): New, factored out from
6598 delete_program_space.
6599 (program_space::program_space): Remove intro comment. Rewrite.
6600 (program_space::~program_space): Remove intro comment. Call
6601 remove_program_space.
6602 (delete_program_space): Delete.
6603 * progspace.h (program_space::program_space): Make explicit. Move
6604 intro comment here, adjusted.
6605 (program_space::~program_space): Move intro comment here,
6606 adjusted.
6607 (delete_program_space): Remove.
6608
6609 2020-04-16 Tom Tromey <tromey@adacore.com>
6610
6611 * windows-nat.c (windows_nat::handle_access_violation): New
6612 function.
6613 * nat/windows-nat.h (handle_access_violation): Declare.
6614 * nat/windows-nat.c (handle_exception): Move Cygwin code to
6615 windows-nat.c. Call handle_access_violation.
6616
6617 2020-04-16 Tom de Vries <tdevries@suse.de>
6618
6619 PR symtab/25791
6620 * dwarf2/index-write.c (write_gdbindex): Generate CU table entries for
6621 CUs without psymtab.
6622
6623 2020-04-16 Kevin Buettner <kevinb@redhat.com>
6624
6625 * python/python.c (do_start_initialization): Don't call
6626 PyEval_InitThreads for Python 3.9 and beyond.
6627
6628 2020-04-15 Kamil Rytarowski <n54@gmx.com>
6629
6630 * obsd-nat.c (obsd_nat_target::update_thread_list): Pass "this" to
6631 thread functions.
6632 (obsd_nat_target::wait): Likewise.
6633
6634 2020-04-15 Tom Tromey <tromey@adacore.com>
6635
6636 * windows-nat.c (DEBUG_EXEC, DEBUG_EVENTS, DEBUG_MEM)
6637 (DEBUG_EXCEPT): Use debug_printf.
6638
6639 2020-04-15 Andrew Burgess <andrew.burgess@embecosm.com>
6640
6641 * completer.c (class completion_tracker::completion_hash_entry)
6642 <hash_name>: New member function.
6643 (completion_tracker::discard_completions): New callback to hash a
6644 completion_hash_entry, pass this to htab_create_alloc.
6645
6646 2016-01-20 Jon Turney <jon.turney@dronecode.org.uk>
6647
6648 * windows-nat.c (windows_make_so): Warn rather than stopping with
6649 an error if realpath() fails.
6650
6651 2020-04-14 Kamil Rytarowski <n54@gmx.com>
6652
6653 * nbsd-nat.c (nbsd_pid_to_kinfo_proc2): New.
6654 (nbsd_nat_target::info_proc): Add do_status.
6655
6656 2020-04-14 Simon Marchi <simon.marchi@polymtl.ca>
6657 Tom de Vries <tdevries@suse.de>
6658
6659 PR symtab/25718
6660 * psympriv.h (struct partial_symtab::read_symtab)
6661 (struct partial_symtab::expand_psymtab)
6662 (struct partial_symtab::read_dependencies): Update comments.
6663 * dwarf2/read.c (struct dwarf2_include_psymtab::read_symtab): Call
6664 read_symtab for includer.
6665 (struct dwarf2_include_psymtab::expand_psymtab): Assert false.
6666 (struct dwarf2_include_psymtab::readin_p): Call readin_p () for includer.
6667 (struct dwarf2_include_psymtab::m_readin): Remove.
6668 (struct dwarf2_include_psymtab::includer): New member function.
6669 (dwarf2_psymtab::expand_psymtab): Assert !readin.
6670
6671 2020-04-14 Tom de Vries <tdevries@suse.de>
6672
6673 PR symtab/25720
6674 * symmisc.c (maintenance_expand_symtabs): Call expand_symtabs_matching
6675 with NULL symbol_matcher and lookup_name.
6676 * psymtab.c (psym_expand_symtabs_matching): Handle NULL symbol_matcher
6677 and lookup_name.
6678 * dwarf2/read.c (dw2_expand_symtabs_matching)
6679 (dw2_debug_names_expand_symtabs_matching): Same.
6680 * symfile.h (struct quick_symbol_functions::expand_symtabs_matching):
6681 Make lookup_name a pointer. Update comment.
6682 * symtab.c (global_symbol_searcher::expand_symtabs): Handle
6683 lookup_name being a pointer.
6684 * symfile.c (expand_symtabs_matching): Same.
6685 * symfile-debug.c (debug_qf_expand_symtabs_matching): Same.
6686 * linespec.c (iterate_over_all_matching_symtabs): Same.
6687
6688 2020-04-13 Tom Tromey <tom@tromey.com>
6689
6690 * run-on-main-thread.c: Update include.
6691 * unittests/main-thread-selftests.c: Update include.
6692 * tui/tui-win.c: Update include.
6693 * tui/tui-io.c: Update include.
6694 * tui/tui-interp.c: Update include.
6695 * tui/tui-hooks.c: Update include.
6696 * top.h: Update include.
6697 * top.c: Update include.
6698 * ser-base.c: Update include.
6699 * remote.c: Update include.
6700 * remote-notif.c: Update include.
6701 * remote-fileio.c: Update include.
6702 * record-full.c: Update include.
6703 * record-btrace.c: Update include.
6704 * python/python.c: Update include.
6705 * posix-hdep.c: Update include.
6706 * mingw-hdep.c: Update include.
6707 * mi/mi-main.c: Update include.
6708 * mi/mi-interp.c: Update include.
6709 * main.c: Update include.
6710 * linux-nat.c: Update include.
6711 * interps.c: Update include.
6712 * infrun.c: Update include.
6713 * inf-loop.c: Update include.
6714 * event-top.c: Update include.
6715 * event-loop.c: Move to ../gdbsupport/.
6716 * event-loop.h: Move to ../gdbsupport/.
6717 * async-event.h: Update include.
6718 * Makefile.in (COMMON_SFILES, HFILES_NO_SRCDIR): Update.
6719
6720 2020-04-13 Tom Tromey <tom@tromey.com>
6721
6722 * tui/tui-win.c: Include async-event.h.
6723 * remote.c: Include async-event.h.
6724 * remote-notif.c: Include async-event.h.
6725 * record-full.c: Include async-event.h.
6726 * record-btrace.c: Include async-event.h.
6727 * infrun.c: Include async-event.h.
6728 * event-top.c: Include async-event.h.
6729 * event-loop.h: Move some declarations to async-event.h.
6730 * event-loop.c: Don't include ser-event.h or top.h. Move some
6731 code to async-event.c.
6732 * async-event.h: New file.
6733 * async-event.c: New file.
6734 * Makefile.in (COMMON_SFILES): Add async-event.c.
6735 (HFILES_NO_SRCDIR): Add async-event.h.
6736
6737 2020-04-13 Tom Tromey <tom@tromey.com>
6738
6739 * utils.c (flush_streams): New function.
6740 * event-loop.c (gdb_wait_for_event): Call flush_streams.
6741
6742 2020-04-13 Tom Tromey <tom@tromey.com>
6743
6744 * event-loop.c (handle_file_event): Use warning, not
6745 printf_unfiltered.
6746
6747 2020-04-13 Tom Tromey <tom@tromey.com>
6748
6749 * event-loop.c: Include <chrono>.
6750
6751 2020-04-13 Tom Tromey <tom@tromey.com>
6752
6753 * gdb_select.h: Move to ../gdbsupport/.
6754 * event-loop.c: Update include path.
6755 * top.c: Update include path.
6756 * ser-base.c: Update include path.
6757 * ui-file.c: Update include path.
6758 * ser-tcp.c: Update include path.
6759 * guile/scm-ports.c: Update include path.
6760 * posix-hdep.c: Update include path.
6761 * ser-unix.c: Update include path.
6762 * gdb_usleep.c: Update include path.
6763 * mingw-hdep.c: Update include path.
6764 * inflow.c: Update include path.
6765 * infrun.c: Update include path.
6766 * event-top.c: Update include path.
6767
6768 2020-04-13 Tom Tromey <tom@tromey.com>
6769
6770 * configure: Rebuild.
6771 * configure.ac: Remove checks that are now in GDB_AC_COMMON.
6772
6773 2020-04-13 Tom Tromey <tom@tromey.com>
6774
6775 * event-loop.h (start_event_loop): Don't declare.
6776 * event-loop.c (start_event_loop): Move...
6777 * main.c (start_event_loop): ...here. Now static.
6778
6779 2020-04-13 Sergio Durigan Junior <sergiodj@sergiodj.net>
6780
6781 * MAINTAINERS: Update my email address.
6782
6783 2020-04-12 Kamil Rytarowski <n54@gmx.com>
6784
6785 * nbsd-nat.c (nbsd_nat_target::info_proc): Add IP_MINIMAL and
6786 IP_ALL.
6787
6788 2020-04-12 Kamil Rytarowski <n54@gmx.com>
6789
6790 * nbsd-nat.c (nbsd_pid_to_cmdline): Add.
6791 (nbsd_nat_target::info_proc): Add do_cmdline.
6792
6793 2020-04-12 Kamil Rytarowski <n54@gmx.com>
6794
6795 * nbsd-nat.c (nbsd_pid_to_cwd): Add.
6796 (nbsd_nat_target::info_proc): Add do_cwd.
6797
6798 2020-04-12 Kamil Rytarowski <n54@gmx.com>
6799
6800 * nbsd-nat.c (nbsd_nat_target::info_proc): Add do_exe.
6801
6802 2020-04-11 Kamil Rytarowski <n54@gmx.com>
6803
6804 * nbsd-nat.c; Include "nbsd-tdep.h" and "gdbarch.h".
6805 * nbsd-nat.c (nbsd_nat_target::find_memory_regions)
6806 (nbsd_nat_target::info_proc): New functions.
6807 * nbsd-nat.c (kinfo_get_vmmap): New function.
6808 * nbsd-nat.c (nbsd_nat_target::info_proc) Use
6809 nbsd_info_proc_mappings_header and nbsd_info_proc_mappings_entry.
6810 * nbsd-tdep.c (nbsd_info_proc_mappings_header)
6811 (nbsd_info_proc_mappings_entry, nbsd_vm_map_entry_flags): New
6812 functions.
6813 * nbsd-tdep.c (KINFO_VME_PROT_READ, KINFO_VME_PROT_WRITE)
6814 (KINFO_VME_PROT_EXEC, KINFO_VME_FLAG_COW)
6815 (KINFO_VME_FLAG_NEEDS_COPY, KINFO_VME_FLAG_NOCOREDUMP)
6816 (KINFO_VME_FLAG_PAGEABLE, KINFO_VME_FLAG_GROWS_UP)
6817 (KINFO_VME_FLAG_GROWS_DOWN): New.
6818
6819 2020-04-10 Artur Shepilko <nomadbyte@gmail.com>
6820
6821 * utils.c (copy_bitwise): Use unsigned 0 constant as operand of
6822 bit shift.
6823
6824 2020-04-10 Tom Tromey <tromey@adacore.com>
6825
6826 * symfile.c (symbol_file_add_separate): Preserve OBJF_MAINLINE.
6827
6828 2020-04-10 Tom Tromey <tromey@adacore.com>
6829
6830 * symtab.c (get_symbol_address, get_msymbol_address): Skip
6831 separate debug files.
6832
6833 2020-04-10 Hannes Domani <ssbssa@yahoo.de>
6834
6835 * nat/windows-nat.c (STATUS_WX86_BREAKPOINT, STATUS_WX86_SINGLE_STEP):
6836 Move to...
6837 * nat/windows-nat.h (STATUS_WX86_BREAKPOINT, STATUS_WX86_SINGLE_STEP):
6838 ... here.
6839 * windows-nat.c (windows_nat_target::get_windows_debug_event):
6840 Check for STATUS_WX86_BREAKPOINT.
6841 (windows_nat_target::wait): Same.
6842
6843 2020-04-10 Tom de Vries <tdevries@suse.de>
6844
6845 PR cli/25808
6846 * python/lib/gdb/__init__.py: Initialize lexer with stripnl=False.
6847
6848 2020-04-09 Simon Marchi <simon.marchi@polymtl.ca>
6849
6850 * MAINTAINERS (Global Maintainers): Add Tom de Vries.
6851 (Write After Approval): Remove Tom de Vries.
6852
6853 2020-04-09 Bernd Edlinger <bernd.edlinger@hotmail.de>
6854
6855 revert partially:
6856 2020-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
6857
6858 * buildsym.c (record_line): Fix undefined behavior and preserve
6859 lines at eof.
6860
6861 2020-04-09 Kamil Rytarowski <n54@gmx.com>
6862
6863 * auxv.h (svr4_auxv_parse): New.
6864 * auxv.c (default_auxv_parse): Split into default_auxv_parse
6865 and generic_auxv_parse.
6866 (svr4_auxv_parse): Add.
6867 * obsd-tdep.c: Include "auxv.h".
6868 (obsd_auxv_parse): Remove.
6869 (obsd_init_abi): Remove comment.
6870 (obsd_init_abi): Change set_gdbarch_auxv_parse passed argument
6871 from `obsd_auxv_parse' to `svr4_auxv_parse'.
6872 * nbsd-tdep.c: Include "auxv.h".
6873 (nbsd_init_abi): Call set_gdbarch_auxv_parse.
6874
6875 2020-04-08 Tom Tromey <tromey@adacore.com>
6876
6877 * nat/windows-nat.h (last_wait_event): Don't declare.
6878 (wait_for_debug_event): Update comment.
6879 * nat/windows-nat.c (last_wait_event): Now static.
6880
6881 2020-04-08 Tom Tromey <tromey@adacore.com>
6882
6883 * windows-nat.c (wait_for_debug_event): Move to
6884 nat/windows-nat.c.
6885 * nat/windows-nat.h (wait_for_debug_event): Declare.
6886 * nat/windows-nat.c (wait_for_debug_event): Move from
6887 windows-nat.c. No longer static.
6888
6889 2020-04-08 Tom Tromey <tromey@adacore.com>
6890
6891 * windows-nat.c (get_windows_debug_event): Use
6892 fetch_pending_stop.
6893 * nat/windows-nat.h (fetch_pending_stop): Declare.
6894 * nat/windows-nat.c (fetch_pending_stop): New function.
6895
6896 2020-04-08 Tom Tromey <tromey@adacore.com>
6897
6898 * windows-nat.c (windows_continue): Use matching_pending_stop and
6899 continue_last_debug_event.
6900 * nat/windows-nat.h (matching_pending_stop)
6901 (continue_last_debug_event): Declare.
6902 * nat/windows-nat.c (DEBUG_EVENTS): New define.
6903 (matching_pending_stop, continue_last_debug_event): New
6904 functions.
6905
6906 2020-04-08 Tom Tromey <tromey@adacore.com>
6907
6908 * windows-nat.c (MS_VC_EXCEPTION): Move to nat/windows-nat.c.
6909 (handle_exception_result): Move to nat/windows-nat.h.
6910 (DEBUG_EXCEPTION_SIMPLE): Remove.
6911 (windows_nat::handle_ms_vc_exception): New function.
6912 (handle_exception): Move to nat/windows-nat.c.
6913 (get_windows_debug_event): Update.
6914 (STATUS_WX86_BREAKPOINT, STATUS_WX86_SINGLE_STEP): Move to
6915 nat/windows-nat.c.
6916 * nat/windows-nat.h (handle_ms_vc_exception): Declare.
6917 (handle_exception_result): Move from windows-nat.c.
6918 (handle_exception): Declare.
6919 * nat/windows-nat.c (MS_VC_EXCEPTION, handle_exception)
6920 (STATUS_WX86_SINGLE_STEP, STATUS_WX86_BREAKPOINT): Move from
6921 windows-nat.c.
6922
6923 2020-04-08 Tom Tromey <tromey@adacore.com>
6924
6925 * windows-nat.c (exception_count, event_count): Remove.
6926 (handle_exception, get_windows_debug_event)
6927 (do_initial_windows_stuff): Update.
6928
6929 2020-04-08 Tom Tromey <tromey@adacore.com>
6930
6931 * windows-nat.c (windows_nat::handle_load_dll)
6932 (windows_nat::handle_unload_dll): Rename. No longer static.
6933 * nat/windows-nat.h (handle_load_dll, handle_unload_dll):
6934 Declare.
6935
6936 2020-04-08 Tom Tromey <tromey@adacore.com>
6937
6938 * complaints.h (stop_whining): Declare at top-level.
6939 (complaint): Don't declare stop_whining.
6940
6941 2020-04-08 Tom Tromey <tromey@adacore.com>
6942
6943 * windows-nat.c (windows_nat::handle_output_debug_string):
6944 Rename. No longer static.
6945 * nat/windows-nat.h (handle_output_debug_string): Declare.
6946
6947 2020-04-08 Tom Tromey <tromey@adacore.com>
6948
6949 * windows-nat.c (current_process_handle, current_process_id)
6950 (main_thread_id, last_sig, current_event, last_wait_event)
6951 (current_windows_thread, desired_stop_thread_id, pending_stops)
6952 (struct pending_stop, siginfo_er): Move to nat/windows-nat.c.
6953 (display_selectors, fake_create_process)
6954 (get_windows_debug_event): Update.
6955 * nat/windows-nat.h (current_process_handle, current_process_id)
6956 (main_thread_id, last_sig, current_event, last_wait_event)
6957 (current_windows_thread, desired_stop_thread_id, pending_stops)
6958 (struct pending_stop, siginfo_er): Move from windows-nat.c.
6959 * nat/windows-nat.c (current_process_handle, current_process_id)
6960 (main_thread_id, last_sig, current_event, last_wait_event)
6961 (current_windows_thread, desired_stop_thread_id, pending_stops)
6962 (siginfo_er): New globals. Move from windows-nat.c.
6963
6964 2020-04-08 Tom Tromey <tromey@adacore.com>
6965
6966 * windows-nat.c (get_image_name): Move to nat/windows-nat.c.
6967 (handle_load_dll): Update.
6968 * nat/windows-nat.c (get_image_name): Move from windows-nat.c.
6969
6970 2020-04-08 Tom Tromey <tromey@adacore.com>
6971
6972 * windows-nat.c (enum thread_disposition_type): Move to
6973 nat/windows-nat.h.
6974 (windows_nat::thread_rec): Rename from thread_rec. No longer
6975 static.
6976 (windows_add_thread, windows_nat_target::fetch_registers)
6977 (windows_nat_target::store_registers, handle_exception)
6978 (windows_nat_target::resume, get_windows_debug_event)
6979 (windows_nat_target::get_tib_address)
6980 (windows_nat_target::thread_name)
6981 (windows_nat_target::thread_alive): Update.
6982 * nat/windows-nat.h (enum thread_disposition_type): Move from
6983 windows-nat.c.
6984 (thread_rec): Declare.
6985
6986 2020-04-08 Tom Tromey <tromey@adacore.com>
6987
6988 * windows-nat.c: Add "using namespace".
6989 * nat/windows-nat.h: Wrap contents in windows_nat namespace.
6990 * nat/windows-nat.c: Wrap contents in windows_nat namespace.
6991
6992 2020-04-08 Tom Tromey <tromey@adacore.com>
6993
6994 * nat/windows-nat.h (struct windows_thread_info): Declare
6995 destructor.
6996 * nat/windows-nat.c (~windows_thread_info): New.
6997
6998 2020-04-08 Tom Tromey <tromey@adacore.com>
6999
7000 PR gdb/22992
7001 * windows-nat.c (current_event): Update comment.
7002 (last_wait_event, desired_stop_thread_id): New globals.
7003 (struct pending_stop): New.
7004 (pending_stops): New global.
7005 (windows_nat_target) <stopped_by_sw_breakpoint>
7006 <supports_stopped_by_sw_breakpoint>: New methods.
7007 (windows_fetch_one_register): Add assertions. Adjust PC.
7008 (windows_continue): Handle pending stops. Suspend other threads
7009 when stepping. Use last_wait_event
7010 (wait_for_debug_event): New function.
7011 (get_windows_debug_event): Use wait_for_debug_event. Handle
7012 pending stops. Queue spurious stops.
7013 (windows_nat_target::wait): Set stopped_at_software_breakpoint.
7014 (windows_nat_target::kill): Use wait_for_debug_event.
7015 * nat/windows-nat.h (struct windows_thread_info)
7016 <stopped_at_software_breakpoint>: New field.
7017 * nat/windows-nat.c (windows_thread_info::resume): Clear
7018 stopped_at_software_breakpoint.
7019
7020 2020-04-08 Tom Tromey <tromey@adacore.com>
7021
7022 * windows-nat.c (enum thread_disposition_type): New.
7023 (thread_rec): Replace "get_context" parameter with "disposition";
7024 change type.
7025 (windows_add_thread, windows_nat_target::fetch_registers)
7026 (windows_nat_target::store_registers, handle_exception)
7027 (windows_nat_target::resume, get_windows_debug_event)
7028 (windows_nat_target::get_tib_address)
7029 (windows_nat_target::thread_name)
7030 (windows_nat_target::thread_alive): Update.
7031
7032 2020-04-08 Tom Tromey <tromey@adacore.com>
7033
7034 * windows-nat.c (thread_rec): Use windows_thread_info::suspend.
7035 (windows_continue): Use windows_continue::resume.
7036 * nat/windows-nat.h (struct windows_thread_info) <suspend,
7037 resume>: Declare new methods.
7038 * nat/windows-nat.c: New file.
7039 * configure.nat (NATDEPFILES): Add nat/windows-nat.o when needed.
7040
7041 2020-04-08 Tom Tromey <tromey@adacore.com>
7042
7043 * windows-nat.c (windows_add_thread, windows_delete_thread)
7044 (windows_nat_target::fetch_registers)
7045 (windows_nat_target::store_registers, fake_create_process)
7046 (windows_nat_target::resume, windows_nat_target::resume)
7047 (get_windows_debug_event, windows_nat_target::wait)
7048 (windows_nat_target::pid_to_str)
7049 (windows_nat_target::get_tib_address)
7050 (windows_nat_target::get_ada_task_ptid)
7051 (windows_nat_target::thread_name)
7052 (windows_nat_target::thread_alive): Use lwp, not tid.
7053
7054 2020-04-08 Tom Tromey <tromey@adacore.com>
7055
7056 * windows-nat.c (handle_exception)
7057 (windows_nat_target::thread_name): Update.
7058 * nat/windows-nat.h (windows_thread_info): Remove destructor.
7059 <name>: Now unique_xmalloc_ptr.
7060
7061 2020-04-08 Tom Tromey <tromey@adacore.com>
7062
7063 * windows-nat.c (thread_rec)
7064 (windows_nat_target::fetch_registers): Update.
7065 * nat/windows-nat.h (struct windows_thread_info) <suspended>:
7066 Update comment.
7067 <debug_registers_changed, reload_context>: Now bool.
7068
7069 2020-04-08 Tom Tromey <tromey@adacore.com>
7070
7071 * windows-nat.c (windows_add_thread): Use new.
7072 (windows_init_thread_list, windows_delete_thread): Use delete.
7073 (get_windows_debug_event): Update.
7074 * nat/windows-nat.h (struct windows_thread_info): Add constructor,
7075 destructor, and initializers.
7076
7077 2020-04-08 Tom Tromey <tromey@adacore.com>
7078
7079 * windows-nat.c (struct windows_thread_info): Remove.
7080 * nat/windows-nat.h: New file.
7081
7082 2020-04-08 Tom Tromey <tromey@adacore.com>
7083
7084 * windows-nat.c (struct windows_thread_info) <tid>: Rename from "id".
7085 (thread_rec, windows_add_thread, windows_delete_thread)
7086 (windows_continue): Update.
7087
7088 2020-04-08 Tom Tromey <tromey@adacore.com>
7089
7090 * windows-nat.c (struct windows_thread_info): Remove typedef.
7091 (thread_head): Remove.
7092 (thread_list): New global.
7093 (thread_rec, windows_add_thread, windows_init_thread_list)
7094 (windows_delete_thread, windows_continue): Update.
7095
7096 2020-04-08 Simon Marchi <simon.marchi@polymtl.ca>
7097
7098 * windows-tdep.h (windows_init_abi): Add comment.
7099 (cygwin_init_abi): New declaration.
7100 * windows-tdep.c: Split signal enumeration in two, one for
7101 Windows and one for Cygwin.
7102 (windows_gdb_signal_to_target): Only deal with signal of the
7103 Windows OS ABI.
7104 (cygwin_gdb_signal_to_target): New function.
7105 (windows_init_abi): Rename to windows_init_abi_common, don't set
7106 gdb_signal_to_target gdbarch method. Add new new function with
7107 this name.
7108 (cygwin_init_abi): New function.
7109 * amd64-windows-tdep.c (amd64_windows_init_abi_common): Add
7110 comment. Don't call windows_init_abi.
7111 (amd64_windows_init_abi): Add comment, call windows_init_abi.
7112 (amd64_cygwin_init_abi): Add comment, call cygwin_init_abi.
7113 * i386-windows-tdep.c (i386_windows_init_abi): Rename to
7114 i386_windows_init_abi_common, don't call windows_init_abi. Add
7115 a new function of this name.
7116 (i386_cygwin_init_abi): New function.
7117 (_initialize_i386_windows_tdep): Bind i386_cygwin_init_abi to
7118 OS ABI Cygwin.
7119
7120 2020-04-08 Simon Marchi <simon.marchi@polymtl.ca>
7121
7122 * dwarf2/read.c (read_gdb_index_from_buffer): Remove objfile
7123 parameter.c.
7124 (dwarf2_read_gdb_index): Update.
7125
7126 2020-04-07 Kamil Rytarowski <n54@gmx.com>
7127
7128 * nbsd-tdep.c: Include "objfiles.h".
7129 (nbsd_skip_solib_resolver): New.
7130 (nbsd_init_abi): Call set_gdbarch_skip_solib_resolver().
7131
7132 2020-04-07 Nitika Achra <Nitika.Achra@amd.com>
7133
7134 * dwarf2/loc.c (loclist_describe_location): Call the function decode_debug_loclists_
7135 addresses if DWARF version is 5 or more because DW_LLE_start* or DW_LLE_offset_pair
7136 with DW_LLE_base_addressx are being emitted in DWARFv5.
7137 Add the newly added kind DW_LOC_OFFSET_PAIR also.
7138 The length of location description is an unsigned ULEB integer in DWARFv5 instead of
7139 unsigned integer.
7140
7141 2020-04-07 Nitika Achra <Nitika.Achra@amd.com>
7142
7143 * dwarf2/loc.c (enum debug_loc_kind): Add a new kind DEBUG_LOC_OFFSET_PAIR.
7144 (dwarf2_find_location_expression): Call the function decode_debug_loclists_
7145 addresses if DWARF version is 5 or more. DW_LLE_start* or DW_LLE_offset_pair
7146 with DW_LLE_base_addressx are being emitted in DWARFv5 instead of DW_LLE_GNU*.
7147 Add applicable base address if the entry is DW_LLE_offset_pair from DWO.
7148 (decode_debug_loclists_addresses): Return DEBUG_LOC_OFFSET_PAIR instead of
7149 DEBUG_LOC_START_END in case of DW_LLE_offset_pair.
7150
7151
7152 2020-04-07 Nitika Achra <Nitika.Achra@amd.com>
7153
7154 * dwarf2/read.c (cu_debug_loc_section): Added the declaration for the function.
7155 (read_loclist_index): New function definition.
7156 (lookup_loclist_base): New function definition.
7157 (read_loclist_header): New function definition.
7158 (dwarf2_cu): Add loclist_base and loclist_header field.
7159 (dwarf2_locate_dwo_sections): Handle .debug_loclists.dwo section.
7160 (read_full_die_1): Read the value of DW_AT_loclists_base.
7161 (read_attribute_reprocess): Handle DW_FORM_loclistx.
7162 (read_attribute_value): Handle DW_FORM_loclistx.
7163 (skip_one_die): Handle DW_FORM_loclistx.
7164 (loclist_header): New structure declaration.
7165 * dwarf2/attribute.c (form_is_section_offset): Handle DW_FORM_loclistx.
7166
7167 2020-04-07 Simon Marchi <simon.marchi@polymtl.ca>
7168
7169 * dwarf2/read.h (struct dwarf2_psymtab): Remove two-parameters
7170 constructor. Remove `addr` parameter from other constructor and
7171 add `per_cu` parameter.
7172 * dwarf2/read.c (create_partial_symtab): Update.
7173
7174 2020-04-07 Tom de Vries <tdevries@suse.de>
7175
7176 PR symtab/25796
7177 * dwarf2/read.c (can_have_DW_AT_const_value_p): New function.
7178 (partial_die_info::fixup): Inherit has_const_value.
7179
7180 2020-04-07 Tom de Vries <tdevries@suse.de>
7181
7182 * psymtab.c (maintenance_check_psymtabs): Skip static LOC_BLOCK
7183 symbols without address.
7184
7185 2020-04-06 Kamil Rytarowski <n54@gmx.com>
7186
7187 * nbsd-nat.h (struct thread_info): Add forward declaration.
7188 (nbsd_nat_target::thread_alive): Add.
7189 (nbsd_nat_target::thread_name): Likewise.
7190 (nbsd_nat_target::update_thread_list): Likewise.
7191 (update_thread_list::post_attach): Likewise.
7192 (post_attach::pid_to_str): Likewise.
7193 * nbsd-nat.c: Include "gdbthread.h" and "inferior.h".
7194 (nbsd_thread_lister): Add.
7195 (nbsd_nat_target::thread_alive): Likewise.
7196 (nbsd_nat_target::thread_name): Likewise.
7197 (nbsd_add_threads): Likewise.
7198 (update_thread_list::post_attach): Likewise.
7199 (nbsd_nat_target::update_thread_list): Likewise.
7200 (post_attach::pid_to_str): Likewise.
7201
7202 2020-04-06 Tom Tromey <tromey@adacore.com>
7203
7204 * ada-valprint.c (print_variant_part): Extract the variant field.
7205 (print_field_values): Use the field as the outer value when
7206 recursing.
7207
7208 2020-04-06 Tom Tromey <tromey@adacore.com>
7209
7210 * sh-nbsd-tdep.c: Include nbsd-tdep.h.
7211 * ppc-nbsd-tdep.c: Include nbsd-tdep.h.
7212 * mips-nbsd-tdep.c (mipsnbsd_init_abi): Add missing ";".
7213 * arm-nbsd-tdep.c: Include nbsd-tdep.h.
7214 * hppa-nbsd-tdep.c: Include nbsd-tdep.h.
7215
7216 2020-04-06 Tom Tromey <tromey@adacore.com>
7217
7218 * dwarf2/read.c (read_base_type) <DW_ATE_complex_float>: Handle
7219 TYPE_CODE_ERROR.
7220
7221 2020-04-06 Kamil Rytarowski <n54@gmx.com>
7222
7223 * nbsd-tdep.c: Include "gdbarch.h".
7224 Define enum with NetBSD signal numbers.
7225 (nbsd_gdb_signal_from_target, nbsd_gdb_signal_to_target): New.
7226 * alpha-nbsd-tdep.c (alphanbsd_init_abi): Call nbsd_init_abi().
7227 * amd64-nbsd-tdep.c (amd64nbsd_init_abi): Likewise.
7228 * arm-nbsd-tdep.c (arm_netbsd_elf_init_abi): Likewise.
7229 * hppa-nbsd-tdep.c (hppanbsd_init_abi): Likewise.
7230 * i386-nbsd-tdep.c (i386nbsd_init_abi): Likewise.
7231 * mips-nbsd-tdep.c (nbsd_init_abi): Likewise.
7232 * ppc-nbsd-tdep.c (ppcnbsd_init_abi): Likewise.
7233 * sh-nbsd-tdep.c (shnbsd_init_abi): Likewise.
7234 * sparc-nbsd-tdep.c (sparc32nbsd_init_abi): Likewise.
7235 * sparc64-nbsd-tdep.c (sparc64nbsd_init_abi): Likewise.
7236 * vax-nbsd-tdep.c (vaxnbsd_elf_init_abi): Likewise.
7237
7238 2020-04-03 Hannes Domani <ssbssa@yahoo.de>
7239
7240 PR gdb/25325
7241 * dwarf2/read.c (read_enumeration_type): Fix typed enum attributes.
7242
7243 2020-04-03 Tom Tromey <tromey@adacore.com>
7244
7245 * dwarf2/loc.c (disassemble_dwarf_expression) <DW_OP_const_type>:
7246 Read constant block.
7247
7248 2020-04-02 Simon Marchi <simon.marchi@polymtl.ca>
7249
7250 * gdb_bfd.h: Include gdbsupport/byte-vector.h.
7251 (gdb_bfd_get_full_section_contents): New declaration.
7252 * gdb_bfd.c (gdb_bfd_get_full_section_contents): New function.
7253 * windows-tdep.c (is_linked_with_cygwin_dll): Use
7254 gdb_bfd_get_full_section_contents.
7255
7256 2020-04-02 Simon Marchi <simon.marchi@polymtl.ca>
7257
7258 * exec.c (build_section_table): Replace internal_error with
7259 gdb_assert.
7260 (section_table_xfer_memory_partial): Likewise.
7261 * mdebugread.c (parse_partial_symbols): Likewise.
7262 * psymtab.c (lookup_partial_symbol): Likewise.
7263 * utils.c (wrap_here): Likewise.
7264
7265 2020-04-02 Tom Tromey <tromey@adacore.com>
7266
7267 * f-lang.c (build_fortran_types): Use arch_type to initialize
7268 builtin_complex_s32 in the TYPE_CODE_ERROR case.
7269
7270 2020-04-02 Tom Tromey <tromey@adacore.com>
7271
7272 * dwarf2/read.c (partial_die_info::read): Do not create a vector
7273 of attributes.
7274
7275 2020-04-02 Andrew Burgess <andrew.burgess@embecosm.com>
7276 Bernd Edlinger <bernd.edlinger@hotmail.de>
7277 Tom Tromey <tromey@adacore.com>
7278
7279 * buildsym.c (buildsym_compunit::record_line): Remove
7280 deduplication code.
7281
7282 2020-04-02 Tom de Vries <tdevries@suse.de>
7283
7284 PR ada/24671
7285 * dwarf2/read.c (dw2_map_matching_symbols): Handle -readnow.
7286
7287 2020-04-02 Tom de Vries <tdevries@suse.de>
7288
7289 * dwarf2/read.c (dwarf2_gdb_index_functions,
7290 dwarf2_debug_names_functions): Init lookup_global_symbol_language with
7291 NULL.
7292 * psymtab.c (psym_lookup_global_symbol_language): New function.
7293 (psym_functions): Init psym_lookup_global_symbol_language with
7294 psym_lookup_global_symbol_language.
7295 * symfile-debug.c (debug_sym_quick_functions): Init
7296 lookup_global_symbol_language with NULL.
7297 * symfile.c (set_initial_language): Remove fixme comment.
7298 * symfile.h (struct quick_symbol_functions): Add
7299 lookup_global_symbol_language.
7300 * symtab.c (find_quick_global_symbol_language): New function.
7301 (find_main_name): Use find_quick_global_symbol_language.
7302
7303 2020-04-01 Simon Marchi <simon.marchi@polymtl.ca>
7304
7305 * windows-tdep.c (is_linked_with_cygwin_dll): Fix style.
7306
7307 2020-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
7308
7309 * buildsym.c (record_line): Fix undefined behavior and preserve
7310 lines at eof.
7311
7312 2020-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
7313
7314 * buildsym.c (record_line): Fix the resizing condition.
7315
7316 2020-04-01 Tom Tromey <tom@tromey.com>
7317
7318 * value.h (value_literal_complex): Add comment.
7319 * valops.c (value_literal_complex): Refer to value.h.
7320
7321 2020-04-01 Tom Tromey <tom@tromey.com>
7322
7323 * c-exp.y (FLOAT_KEYWORD, COMPLEX): New tokens.
7324 (scalar_type): New rule, from typebase.
7325 (typebase): Use scalar_type. Recognize complex types.
7326 (field_name): Handle FLOAT_KEYWORD.
7327 (ident_tokens): Add _Complex and __complex__.
7328
7329 2020-04-01 Tom Tromey <tom@tromey.com>
7330
7331 PR exp/25299:
7332 * valarith.c (promotion_type, complex_binop): New functions.
7333 (scalar_binop): Handle complex numbers. Use promotion_type.
7334 (value_pos, value_neg, value_complement): Handle complex numbers.
7335
7336 2020-04-01 Tom Tromey <tom@tromey.com>
7337
7338 * c-exp.y (COMPLEX_INT, COMPLEX_FLOAT): New tokens.
7339 (exp) <COMPLEX_INT, COMPLEX_FLOAT>: New rules.
7340 (parse_number): Handle complex numbers.
7341
7342 2020-04-01 Tom Tromey <tom@tromey.com>
7343
7344 * c-valprint.c (c_decorations): Change complex suffix to "i".
7345
7346 2020-04-01 Tom Tromey <tom@tromey.com>
7347
7348 * valprint.c (generic_value_print_complex): Use accessors.
7349 * value.h (value_real_part, value_imaginary_part): Declare.
7350 * valops.c (value_real_part, value_imaginary_part): New
7351 functions.
7352 * value.c (creal_internal_fn, cimag_internal_fn): Use accessors.
7353
7354 2020-04-01 Tom Tromey <tom@tromey.com>
7355
7356 * stabsread.c (rs6000_builtin_type, read_sun_floating_type)
7357 (read_range_type): Update.
7358 * mdebugread.c (basic_type): Update.
7359 * go-lang.c (build_go_types): Use init_complex_type.
7360 * gdbtypes.h (struct main_type) <complex_type>: New member.
7361 (init_complex_type): Update.
7362 (arch_complex_type): Don't declare.
7363 * gdbtypes.c (init_complex_type): Remove "objfile" parameter.
7364 Make name if none given. Use alloc_type_copy. Look for cached
7365 complex type.
7366 (arch_complex_type): Remove.
7367 (gdbtypes_post_init): Use init_complex_type.
7368 * f-lang.c (build_fortran_types): Use init_complex_type.
7369 * dwarf2/read.c (read_base_type): Update.
7370 * d-lang.c (build_d_types): Use init_complex_type.
7371 * ctfread.c (read_base_type): Update.
7372
7373 2020-04-01 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
7374
7375 * infrun.c (stop_all_threads): Update assertion, plus when
7376 stopping threads, take into account that we might be trying
7377 to stop an all-stop target.
7378 (stop_waiting): Call 'stop_all_threads' if there exists a
7379 non-stop target.
7380
7381 2020-04-01 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
7382
7383 * target.h (exists_non_stop_target): New function declaration.
7384 * target.c (exists_non_stop_target): New function.
7385
7386 2020-04-01 Hannes Domani <ssbssa@yahoo.de>
7387
7388 PR gdb/24789
7389 * eval.c (is_integral_or_integral_reference): New function.
7390 (evaluate_subexp_standard): Allow integer references in
7391 pointer arithmetic.
7392
7393 2020-04-01 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
7394
7395 * remote.c (remote_target::remote_parse_stop_reply): Remove the
7396 check for no ptid in the stop reply when the target is non-stop.
7397
7398 2020-04-01 Tom Tromey <tromey@adacore.com>
7399
7400 * symtab.h (class lookup_name_info) <lookup_name_info>: Change
7401 "name" parameter to rvalue reference. Initialize m_name_holder.
7402 <lookup_name_info>: New overloads.
7403 <name>: Return gdb::string_view.
7404 <c_str>: New method.
7405 <make_ignore_params>: Update.
7406 <search_name_hash>: Update.
7407 <language_lookup_name>: Return const char *.
7408 <m_name>: Change type.
7409 * symtab.c (demangle_for_lookup_info::demangle_for_lookup_info)
7410 (demangle_for_lookup_info::demangle_for_lookup_info): Update.
7411 (lookup_name_info::match_any): Update.
7412 * psymtab.c (match_partial_symbol, lookup_partial_symbol):
7413 Update.
7414 * minsyms.c (linkage_name_str): Update.
7415 * language.c (default_symbol_name_matcher): Update.
7416 * dwarf2/read.c (mapped_index_base::find_name_components_bounds):
7417 Update.
7418 * ada-lang.c (ada_fold_name): Change parameter to string_view.
7419 (ada_lookup_name_info::ada_lookup_name_info): Update.
7420 (literal_symbol_name_matcher): Update.
7421
7422 2020-04-01 Tom Tromey <tromey@adacore.com>
7423
7424 * psymtab.c (psymtab_search_name): Remove function.
7425 (psym_lookup_symbol): Create search name and lookup name here.
7426 (lookup_partial_symbol): Remove "name" parameter; add
7427 lookup_name.
7428 (psym_expand_symtabs_for_function): Update.
7429
7430 2020-03-31 Joel Jones <joelkevinjones@gmail.com>
7431
7432 PR tui/25597:
7433 * python/py-tui.c: Include gdb_curses.h inside of #ifdef TUI.
7434
7435 2020-03-31 Tom Tromey <tromey@adacore.com>
7436
7437 * dwarf2/abbrev.c (abbrev_table::read): Conditionally call
7438 memcpy.
7439
7440 2020-03-30 Nelson Chu <nelson.chu@sifive.com>
7441
7442 * features/riscv/32bit-csr.xml: Regenerated.
7443 * features/riscv/64bit-csr.xml: Regenerated.
7444
7445 2020-03-30 Tom Tromey <tromey@adacore.com>
7446
7447 * ada-valprint.c (print_variant_part): Update.
7448 * ada-lang.h (ada_which_variant_applies): Update.
7449 * ada-lang.c (ada_which_variant_applies): Remove outer_type and
7450 outer_valaddr parameters; replace with "outer" value parameter.
7451 (to_fixed_variant_branch_type): Update.
7452
7453 2020-03-30 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
7454
7455 * ppc-linux-nat.c: Include <algorithm>, <unordered_map>, and
7456 <list>. Remove inclusion of observable.h.
7457 (PPC_DEBUG_CURRENT_VERSION): Move up define.
7458 (struct arch_lwp_info): New struct.
7459 (class ppc_linux_dreg_interface): New class.
7460 (struct ppc_linux_process_info): New struct.
7461 (struct ppc_linux_nat_target) <low_delete_thread, low_new_fork>
7462 <low_new_clone, low_forget_process, low_prepare_to_resume>
7463 <copy_thread_dreg_state, mark_thread_stale>
7464 <mark_debug_registers_changed, register_hw_breakpoint>
7465 <clear_hw_breakpoint, register_wp, clear_wp>
7466 <can_use_watchpoint_cond_accel, calculate_dvc, check_condition>
7467 <num_memory_accesses, get_trigger_type>
7468 <create_watchpoint_request, hwdebug_point_cmp>
7469 <init_arch_lwp_info, get_arch_lwp_info>
7470 <low_stopped_by_watchpoint, low_stopped_data_address>: Declare as
7471 methods.
7472 <struct ptid_hash>: New inner struct.
7473 <m_dreg_interface, m_process_info, m_installed_hw_bps>: Declare
7474 members.
7475 (saved_dabr_value, hwdebug_info, max_slots_number)
7476 (struct hw_break_tuple, struct thread_points, ppc_threads)
7477 (have_ptrace_hwdebug_interface)
7478 (hwdebug_find_thread_points_by_tid)
7479 (hwdebug_insert_point, hwdebug_remove_point): Remove.
7480 (ppc_linux_nat_target::can_use_hw_breakpoint): Use
7481 m_dreg_interface, remove call to PTRACE_SET_DEBUGREG.
7482 (ppc_linux_nat_target::region_ok_for_hw_watchpoint): Add comment,
7483 use m_dreg_interface.
7484 (hwdebug_point_cmp): Change to...
7485 (ppc_linux_nat_target::hwdebug_point_cmp): ...this method. Use
7486 reference arguments instead of pointers.
7487 (ppc_linux_nat_target::ranged_break_num_registers): Use
7488 m_dreg_interface.
7489 (ppc_linux_nat_target::insert_hw_breakpoint): Add comment, use
7490 m_dreg_interface. Call register_hw_breakpoint.
7491 (ppc_linux_nat_target::remove_hw_breakpoint): Add comment, use
7492 m_dreg_interface. Call clear_hw_breakpoint.
7493 (get_trigger_type): Change to...
7494 (ppc_linux_nat_target::get_trigger_type): ...this method. Add
7495 comment.
7496 (ppc_linux_nat_target::insert_mask_watchpoint): Update comment,
7497 use m_dreg_interface. Call register_hw_breakpoint.
7498 (ppc_linux_nat_target::remove_mask_watchpoint): Update comment,
7499 use m_dreg_interface. Call clear_hw_breakpoint.
7500 (can_use_watchpoint_cond_accel): Change to...
7501 (ppc_linux_nat_target::can_use_watchpoint_cond_accel): ...this
7502 method. Update comment, use m_dreg_interface and
7503 m_process_info.
7504 (calculate_dvc): Change to...
7505 (ppc_linux_nat_target::calculate_dvc): ...this method. Use
7506 m_dreg_interface.
7507 (num_memory_accesses): Change to...
7508 (ppc_linux_nat_target::num_memory_accesses): ...this method.
7509 (check_condition): Change to...
7510 (ppc_linux_nat_target::check_condition): ...this method.
7511 (ppc_linux_nat_target::can_accel_watchpoint_condition): Update
7512 comment, use m_dreg_interface.
7513 (create_watchpoint_request): Change to...
7514 (ppc_linux_nat_target::create_watchpoint_request): ...this
7515 method. Use m_dreg_interface.
7516 (ppc_linux_nat_target::insert_watchpoint): Add comment, use
7517 m_dreg_interface. Call register_hw_breakpoint or register_wp.
7518 (ppc_linux_nat_target::remove_watchpoint): Add comment, use
7519 m_dreg_interface. Call clear_hw_breakpoint or clear_wp.
7520 (ppc_linux_nat_target::low_forget_process)
7521 (ppc_linux_nat_target::low_new_fork)
7522 (ppc_linux_nat_target::low_new_clone)
7523 (ppc_linux_nat_target::low_delete_thread)
7524 (ppc_linux_nat_target::low_prepare_to_resume): New methods.
7525 (ppc_linux_nat_target::low_new_thread): Remove previous logic,
7526 only call mark_thread_stale.
7527 (ppc_linux_thread_exit): Remove.
7528 (ppc_linux_nat_target::stopped_data_address): Change to...
7529 (ppc_linux_nat_target::low_stopped_data_address): This. Add
7530 comment, use m_dreg_interface and m_thread_hw_breakpoints.
7531 (ppc_linux_nat_target::stopped_by_watchpoint): Change to...
7532 (ppc_linux_nat_target::stopped_by_watchpoint): This. Add
7533 comment. Call low_stopped_data_address.
7534 (ppc_linux_nat_target::watchpoint_addr_within_range): Use
7535 m_dreg_interface.
7536 (ppc_linux_nat_target::masked_watch_num_registers): Use
7537 m_dreg_interface.
7538 (ppc_linux_nat_target::copy_thread_dreg_state)
7539 (ppc_linux_nat_target::mark_thread_stale)
7540 (ppc_linux_nat_target::mark_debug_registers_changed)
7541 (ppc_linux_nat_target::register_hw_breakpoint)
7542 (ppc_linux_nat_target::clear_hw_breakpoint)
7543 (ppc_linux_nat_target::register_wp)
7544 (ppc_linux_nat_target::clear_wp)
7545 (ppc_linux_nat_target::init_arch_lwp_info)
7546 (ppc_linux_nat_target::get_arch_lwp_info): New methods.
7547 (_initialize_ppc_linux_nat): Remove observer callback.
7548
7549 2020-03-30 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
7550
7551 * ppc-linux-nat.c (ppc_linux_nat_target::store_registers)
7552 (ppc_linux_nat_target::auxv_parse)
7553 (ppc_linux_nat_target::read_description)
7554 (supply_gregset, fill_gregset, supply_fpregset, fill_fpregset):
7555 Move up.
7556
7557 2020-03-30 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
7558
7559 * linux-nat.h (low_new_clone): New method.
7560 * linux-nat.c (linux_handle_extended_wait): Call low_new_clone.
7561
7562 2020-03-29 Simon Marchi <simon.marchi@polymtl.ca>
7563
7564 * dbxread.c (dbx_psymtab_to_symtab_1): Rename to...
7565 (dbx_expand_psymtab): ... this.
7566 (start_psymtab): Update.
7567 * mdebugread.c (psymtab_to_symtab_1): Rename to...
7568 (mdebug_expand_psymtab): ... this.
7569 (parse_partial_symbols): Update.
7570 (new_psymtab): Update.
7571 * xcoffread.c (xcoff_psymtab_to_symtab_1): Rename to...
7572 (xcoff_expand_psymtab): ... this.
7573 (xcoff_start_psymtab): Update.
7574
7575 2020-03-29 Simon Marchi <simon.marchi@polymtl.ca>
7576
7577 * psympriv.h (partial_symtab) <read_dependencies>: Rename to...
7578 <expand_dependencies>: ... this.
7579 * psymtab.c (partial_symtab::read_dependencies): Rename to...
7580 (partial_symtab::expand_dependencies): ... this.
7581 * dwarf2/read.c (dwarf2_include_psymtab) <expand_psymtab>:
7582 Update.
7583 (dwarf2_psymtab::expand_psymtab): Update.
7584 * dbxread.c (dbx_psymtab_to_symtab_1): Update.
7585 * mdebugread.c (psymtab_to_symtab_1): Update.
7586 * xcoffread.c (xcoff_psymtab_to_symtab_1): Update.
7587
7588 2020-03-29 Simon Marchi <simon.marchi@polymtl.ca>
7589
7590 * psympriv.h (discard_psymtab): Remove.
7591 * dbxread.c (dbx_end_psymtab): Update.
7592 * xcoffread.c (xcoff_end_psymtab): Update.
7593
7594 2020-03-28 Tom Tromey <tom@tromey.com>
7595
7596 * dwarf2/attribute.h (struct attribute) <form_is_constant>: Update
7597 comment.
7598
7599 2020-03-28 Tom Tromey <tom@tromey.com>
7600
7601 * dwarf2/read.c (read_attribute_reprocess): Fix formatting.
7602
7603 2020-03-27 Hannes Domani <ssbssa@yahoo.de>
7604
7605 * windows-nat.c (windows_add_all_dlls): Fix system dll paths.
7606
7607 2020-03-26 John Baldwin <jhb@FreeBSD.org>
7608
7609 * fbsd-tdep.c (fbsd_print_auxv_entry): Handle AT_FREEBSD_BSDFLAGS.
7610
7611 2020-03-26 Tom Tromey <tom@tromey.com>
7612
7613 * dwarf2/read.c (handle_data_member_location, dwarf2_add_field)
7614 (mark_common_block_symbol_computed, read_tag_string_type)
7615 (attr_to_dynamic_prop, read_subrange_type): Update.
7616 (dwarf2_get_ref_die_offset, dwarf2_get_attr_constant_value): Move
7617 to be methods on struct attribute.
7618 (skip_one_die, process_imported_unit_die, read_namespace_alias)
7619 (read_call_site_scope, partial_die_info::read)
7620 (partial_die_info::read, lookup_die_type, follow_die_ref):
7621 Update.
7622 * dwarf2/attribute.c (attribute::get_ref_die_offset): New method,
7623 from dwarf2_get_ref_die_offset.
7624 (attribute::constant_value): New method, from
7625 dwarf2_get_attr_constant_value.
7626 * dwarf2/attribute.h (struct attribute) <get_ref_die_offset>:
7627 Declare method.
7628 <constant_value>: New method.
7629
7630 2020-03-26 Tom Tromey <tom@tromey.com>
7631
7632 * dwarf2/read.c (dwarf_unit_type_name, dwarf_tag_name)
7633 (dwarf_attr_name, dwarf_form_name, dwarf_bool_name)
7634 (dwarf_type_encoding_name): Move to stringify.c.
7635 * Makefile.in (COMMON_SFILES): Add dwarf2/stringify.c.
7636 * dwarf2/stringify.c: New file.
7637 * dwarf2/stringify.h: New file.
7638
7639 2020-03-26 Tom Tromey <tom@tromey.com>
7640
7641 * dwarf2/die.h (struct die_info) <addr_base, ranges_base>:
7642 Rewrite.
7643
7644 2020-03-26 Tom Tromey <tom@tromey.com>
7645
7646 * dwarf2/die.h (struct die_info) <addr_base, ranges_base>: New
7647 methods.
7648 * dwarf2/read.c (lookup_addr_base): Move to die.h.
7649 (lookup_ranges_base): Likewise.
7650 (read_cutu_die_from_dwo, read_full_die_1): Update.
7651
7652 2020-03-26 Tom Tromey <tom@tromey.com>
7653
7654 * dwarf2/read.c (read_import_statement, read_file_scope)
7655 (read_type_unit_scope, inherit_abstract_dies, read_func_scope)
7656 (read_lexical_block_scope, read_call_site_scope)
7657 (dwarf2_get_subprogram_pc_bounds, get_scope_pc_bounds)
7658 (handle_struct_member_die, process_structure_scope)
7659 (update_enumeration_type_from_children)
7660 (process_enumeration_scope, read_array_type, read_common_block)
7661 (read_namespace, read_module, read_subroutine_type): Update.
7662 (sibling_die): Remove.
7663
7664 2020-03-26 Tom Tromey <tom@tromey.com>
7665
7666 * dwarf2/read.c (lookup_addr_base, lookup_ranges_base)
7667 (build_type_psymtabs_reader, read_structure_type)
7668 (read_enumeration_type, read_full_die_1): Update.
7669 (dwarf2_attr_no_follow): Move to die.h.
7670 * dwarf2/die.h (struct die_info) <attr>: New method.
7671
7672 2020-03-26 Tom Tromey <tom@tromey.com>
7673
7674 * dwarf2/read.c (struct dwarf2_cu) <base_known>: Remove.
7675 <base_address>: Now an optional.
7676 (dwarf2_find_base_address, dwarf2_rnglists_process)
7677 (dwarf2_ranges_process, fill_in_loclist_baton)
7678 (dwarf2_symbol_mark_computed): Update.
7679
7680 2020-03-26 Tom Tromey <tom@tromey.com>
7681
7682 * dwarf2/read.c (struct die_info): Move to die.h.
7683 * dwarf2/die.h: New file.
7684
7685 2020-03-26 Tom Tromey <tom@tromey.com>
7686
7687 * dwarf2/line-header.h (dwarf_decode_line_header): Declare.
7688 * dwarf2/read.c
7689 (dwarf2_statement_list_fits_in_line_number_section_complaint):
7690 Move to line-header.c.
7691 (read_checked_initial_length_and_offset, read_formatted_entries):
7692 Likewise.
7693 (dwarf_decode_line_header): Split into two.
7694 * dwarf2/line-header.c
7695 (dwarf2_statement_list_fits_in_line_number_section_complaint):
7696 Move from read.c.
7697 (read_checked_initial_length_and_offset, read_formatted_entries):
7698 Likewise.
7699 (dwarf_decode_line_header): New function, split from read.c.
7700
7701 2020-03-26 Tom Tromey <tom@tromey.com>
7702
7703 * dwarf2/read.h (struct dwarf2_per_objfile) <read_line_string>:
7704 Declare method.
7705 * dwarf2/read.c (read_attribute_value): Update.
7706 (dwarf2_per_objfile::read_line_string): Rename from
7707 read_indirect_line_string.
7708 (read_formatted_entries): Update.
7709
7710 2020-03-26 Tom Tromey <tom@tromey.com>
7711
7712 * dwarf2/macro.c (dwarf_decode_macro_bytes): Use objfile local
7713 variable.
7714
7715 2020-03-26 Tom Tromey <tom@tromey.com>
7716
7717 * dwarf2/macro.h (dwarf_decode_macros): Make section parameter
7718 const.
7719 * dwarf2/macro.c (skip_form_bytes, skip_unknown_opcode)
7720 (dwarf_decode_macro_bytes, dwarf_decode_macros): Make section
7721 parameter const.
7722
7723 2020-03-26 Tom Tromey <tom@tromey.com>
7724
7725 * dwarf2/read.c (dwarf_decode_macros): Make "lh" const.
7726 * dwarf2/macro.h (dwarf_decode_macros): Constify "lh" parameter.
7727 * dwarf2/macro.c (macro_start_file): Constify "lh" parameter.
7728 (dwarf_decode_macro_bytes, dwarf_decode_macros): Likewise.
7729
7730 2020-03-26 Tom Tromey <tom@tromey.com>
7731
7732 * dwarf2/line-header.h (struct line_header) <is_valid_file_index,
7733 file_names_size, file_full_name, file_file_name>: Use const.
7734 <file_name_at, file_names>: Add const overload.
7735 * dwarf2/line-header.c (line_header::file_file_name)
7736 (line_header::file_full_name): Update.
7737
7738 2020-03-26 Tom Tromey <tom@tromey.com>
7739
7740 * dwarf2/read.c (dwarf2_macro_malformed_definition_complaint)
7741 (macro_start_file, consume_improper_spaces)
7742 (parse_macro_definition, skip_form_bytes, skip_unknown_opcode)
7743 (dwarf_parse_macro_header, dwarf_decode_macro_bytes)
7744 (dwarf_decode_macros): Move to macro.c.
7745 * dwarf2/macro.c: New file.
7746 * dwarf2/macro.h: New file.
7747 * Makefile.in (COMMON_SFILES): Add dwarf2/macro.c.
7748
7749 2020-03-26 Tom Tromey <tom@tromey.com>
7750
7751 * dwarf2/section.h (struct dwarf2_section_info) <read_string>: New
7752 method.
7753 * dwarf2/section.c: New method. From
7754 read_indirect_string_at_offset_from.
7755 * dwarf2/read.c (mapped_debug_names::namei_to_name): Update.
7756 (read_indirect_string_at_offset_from): Move to section.c.
7757 (read_indirect_string_at_offset): Rewrite.
7758 (read_indirect_line_string_at_offset): Remove.
7759 (read_indirect_string, read_indirect_line_string)
7760 (dwarf_decode_macro_bytes): Update.
7761
7762 2020-03-26 Tom Tromey <tom@tromey.com>
7763
7764 * dwarf2/section.h (struct dwarf2_section_info)
7765 <overload_complaint>: Declare.
7766 (dwarf2_section_buffer_overflow_complaint): Don't declare.
7767 * dwarf2/section.c (dwarf2_section_info::overflow_complaint):
7768 Rename from dwarf2_section_buffer_overflow_complaint.
7769 * dwarf2/read.c (skip_one_die, partial_die_info::read)
7770 (skip_form_bytes, dwarf_decode_macro_bytes): Update.
7771
7772 2020-03-26 Tom Tromey <tom@tromey.com>
7773
7774 * dwarf2/section.h (dwarf2_section_buffer_overflow_complaint):
7775 Declare.
7776 * dwarf2/section.c (dwarf2_section_buffer_overflow_complaint):
7777 Move from read.c.
7778 * dwarf2/read.c (dwarf2_section_buffer_overflow_complaint): Move
7779 to section.c.
7780
7781 2020-03-26 Tom Tromey <tom@tromey.com>
7782
7783 * dwarf2/read.c (dwarf_decode_macros): Split into two overloads.
7784
7785 2020-03-26 Tom Tromey <tom@tromey.com>
7786
7787 * dwarf2/read.c (macro_start_file): Change "cu" parameter to
7788 "builder".
7789 (dwarf_decode_macro_bytes): Likewise. Add dwarf2_per_objfile
7790 parameter.
7791 (dwarf_decode_macros): Update.
7792
7793 2020-03-26 Tom Tromey <tom@tromey.com>
7794
7795 * dwarf2/read.c (read_attribute_value): Update.
7796 (read_indirect_string_from_dwz): Move to dwz.c; change into
7797 method.
7798 (dwarf_decode_macro_bytes): Update.
7799 * dwarf2/dwz.h (struct dwz_file) <read_string>: Declare method.
7800 * dwarf2/dwz.c: New file.
7801 * Makefile.in (COMMON_SFILES): Add dwz.c.
7802
7803 2020-03-26 Tom Tromey <tom@tromey.com>
7804
7805 * dwarf2/read.h (struct dwz_file): Move to dwz.h.
7806 * dwarf2/read.c: Add include.
7807 * dwarf2/index-write.c: Add include.
7808 * dwarf2/index-cache.c: Add include.
7809 * dwarf2/dwz.h: New file.
7810
7811 2020-03-25 Tom Tromey <tom@tromey.com>
7812
7813 * compile/compile-object-load.c (get_out_value_type): Mention
7814 correct symbol name in error message.
7815
7816 2020-03-25 Hannes Domani <ssbssa@yahoo.de>
7817
7818 * windows-nat.c (windows_add_all_dlls): Fix system dll paths.
7819
7820 2020-03-25 Tom de Vries <tdevries@suse.de>
7821
7822 * symtab.h (is_main_symtab_of_compunit_symtab): New function.
7823 * symmisc.c (dump_symtab_1): Print user and includes fields.
7824 (maintenance_info_symtabs): Same.
7825
7826 2020-03-25 Andrew Burgess <andrew.burgess@embecosm.com>
7827
7828 PR gdb/25534
7829 * riscv-tdep.c (riscv_arg_info::c_offset): Update comment.
7830 (riscv_regcache_cooked_write): New function.
7831 (riscv_push_dummy_call): Use new function.
7832 (riscv_return_value): Likewise.
7833
7834 2020-03-24 Simon Marchi <simon.marchi@polymtl.ca>
7835
7836 * fbsd-nat.c (fbsd_nat_target::follow_fork): Change bool to int.
7837 * fbsd-nat.h (class fbsd_nat_target) <follow_fork>: Likewise.
7838 * inf-ptrace.c (inf_ptrace_target::follow_fork): Likewise.
7839 * inf-ptrace.h (struct inf_ptrace_target) <follow_fork>: Likewise.
7840 * infrun.c (follow_fork): Likewise.
7841 (follow_fork_inferior): Likewise.
7842 * linux-nat.c (linux_nat_target::follow_fork): Likewise.
7843 * linux-nat.h (class linux_nat_target): Likewise.
7844 * remote.c (class remote_target) <follow_fork>: Likewise.
7845 (remote_target::follow_fork): Likewise.
7846 * target-delegates.c: Re-generate.
7847 * target.c (default_follow_fork): Likewise.
7848 (target_follow_fork): Likewise.
7849 * target.h (struct target_ops) <follow_fork>: Likewise.
7850 (target_follow_fork): Likewise.
7851
7852 2020-03-24 Tom de Vries <tdevries@suse.de>
7853
7854 * psymtab.c (maintenance_info_psymtabs): Print user field.
7855
7856 2020-03-20 Tom Tromey <tromey@adacore.com>
7857
7858 * dwarf2/loc.h (dwarf2_evaluate_property): Make "addr_stack"
7859 const.
7860 * dwarf2/loc.c (dwarf2_evaluate_property): Make "addr_stack"
7861 const.
7862
7863 2020-03-20 Simon Marchi <simon.marchi@efficios.com>
7864
7865 * ptrace.m4: Don't check for ptrace declaration.
7866 * config.in: Re-generate.
7867 * configure: Re-generate.
7868 * nat/gdb_ptrace.h: Don't declare ptrace if HAVE_DECL_PTRACE is
7869 not defined.
7870
7871 2020-03-20 Kamil Rytarowski <n54@gmx.com>
7872
7873 * amd64-bsd-nat.c (gdb_ptrace): Change return type from `int' to
7874 `PTRACE_TYPE_RET'.
7875 * i386-bsd-nat.c (gdb_ptrace): Likewise.
7876 * sparc-nat.c (gdb_ptrace): Likewise.
7877 * x86-bsd-nat.c (gdb_ptrace): Likewise.
7878
7879 2020-03-20 Tom Tromey <tromey@adacore.com>
7880
7881 * c-exp.y (lex_one_token): Fix assert.
7882
7883 2020-03-20 Tom Tromey <tromey@adacore.com>
7884
7885 * ada-tasks.c (read_atcb): Use smaller length in strncpy call.
7886 * linux-tdep.c (linux_fill_prpsinfo): Use smaller length in
7887 strncpy call.
7888
7889 2020-03-20 Tom Tromey <tromey@adacore.com>
7890
7891 * symmisc.c (maintenance_print_one_line_table): Use ui_out.
7892
7893 2020-03-20 Tom Tromey <tromey@adacore.com>
7894
7895 * ada-valprint.c (print_variant_part): Remove parameters; switch
7896 to value-based API.
7897 (print_field_values): Likewise.
7898 (ada_val_print_struct_union): Likewise.
7899 (ada_value_print_1): Update.
7900
7901 2020-03-20 Kamil Rytarowski <n54@gmx.com>
7902
7903 * ppc-nbsd-nat.c (ppc_nbsd_nat_target): Inherit from
7904 nbsd_nat_target instead of inf_ptrace_target.
7905 * ppc-nbsd-nat.c: Include "nbsd-nat.h", as we are now using
7906 nbsd_nat_target.
7907
7908 2020-03-20 Kamil Rytarowski <n54@gmx.com>
7909
7910 * hppa-nbsd-nat.c (fetch_registers): New variable lwp and pass
7911 it to the ptrace call.
7912 * (store_registers): Likewise.
7913
7914 2020-03-20 Kamil Rytarowski <n54@gmx.com>
7915
7916 * ppc-nbsd-nat.c (fetch_registers): New variable lwp and pass
7917 it to the ptrace call.
7918 * (store_registers): Likewise.
7919
7920 2020-03-19 Luis Machado <luis.machado@linaro.org>
7921
7922 * nat/aarch64-sve-linux-ptrace.c (aarch64_sve_set_vq): If vg is not
7923 valid, fetch vg value from ptrace.
7924
7925 2020-03-19 Kamil Rytarowski <n54@gmx.com>
7926 * inf-ptrace.h: Disable get_ptrace_pid on NetBSD.
7927 * inf-ptrace.c: Likewise.
7928 * (gdb_ptrace): Add.
7929 * (inf_ptrace_target::resume): Update.
7930 * (inf_ptrace_target::xfer_partial): Likewise.
7931 * (inf_ptrace_peek_poke): Change argument `pid' to `ptid'.
7932 * (inf_ptrace_peek_poke): Update.
7933
7934 2020-03-19 Kamil Rytarowski <n54@gmx.com>
7935
7936 * x86-bsd-nat.c (gdb_ptrace): New.
7937 * (x86bsd_dr_set): Add new argument `ptid'.
7938 * (x86bsd_dr_get, x86bsd_dr_set, x86bsd_dr_set_control,
7939 x86bsd_dr_set_addr): Update.
7940
7941 2020-03-19 Andrew Burgess <andrew.burgess@embecosm.com>
7942
7943 * remote.c (remote_target::process_stop_reply): Handle events for
7944 all threads differently.
7945
7946 2020-03-19 Andrew Burgess <andrew.burgess@embecosm.com>
7947
7948 * completer.c (completion_tracker::remove_completion): Define new
7949 function.
7950 * completer.h (completion_tracker::remove_completion): Declare new
7951 function.
7952 * symtab.c (completion_list_add_symbol): Remove aliasing msymbols
7953 when adding a C++ function symbol.
7954
7955 2020-03-19 Andrew Burgess <andrew.burgess@embecosm.com>
7956
7957 * completer.c (completion_tracker::completion_hash_entry): Define
7958 new class.
7959 (advance_to_filename_complete_word_point): Call
7960 recompute_lowest_common_denominator.
7961 (completion_tracker::completion_tracker): Call discard_completions
7962 to setup the hash table.
7963 (completion_tracker::discard_completions): Allow for being called
7964 from the constructor, pass new equal function, and element deleter
7965 when constructing the hash table. Initialise new class member
7966 variables.
7967 (completion_tracker::maybe_add_completion): Remove use of
7968 m_entries_vec, and store more information into m_entries_hash.
7969 (completion_tracker::recompute_lcd_visitor): New function, most
7970 content taken from...
7971 (completion_tracker::recompute_lowest_common_denominator):
7972 ...here, this now just visits each item in the hash calling the
7973 above visitor.
7974 (completion_tracker::build_completion_result): Remove use of
7975 m_entries_vec, call recompute_lowest_common_denominator.
7976 * completer.h (completion_tracker::have_completions): Remove use
7977 of m_entries_vec.
7978 (completion_tracker::completion_hash_entry): Declare new class.
7979 (completion_tracker::recompute_lowest_common_denominator): Change
7980 function signature.
7981 (completion_tracker::recompute_lcd_visitor): Declare new function.
7982 (completion_tracker::m_entries_vec): Delete.
7983 (completion_tracker::m_entries_hash): Initialize to NULL.
7984 (completion_tracker::m_lowest_common_denominator_valid): New
7985 member variable.
7986 (completion_tracker::m_lowest_common_denominator_max_length): New
7987 member variable.
7988
7989 2020-03-17 Kamil Rytarowski <n54@gmx.com>
7990
7991 * regformats/regdef.h: Put reg in gdb namespace.
7992
7993 2020-03-17 Kamil Rytarowski <n54@gmx.com>
7994
7995 * i386-bsd-nat.c (gdb_ptrace): New.
7996 * (i386bsd_fetch_inferior_registers,
7997 i386bsd_store_inferior_registers) Switch from pid_t to ptid_t.
7998 * (i386bsd_fetch_inferior_registers,
7999 i386bsd_store_inferior_registers) Use gdb_ptrace.
8000
8001 2020-03-17 Kamil Rytarowski <n54@gmx.com>
8002
8003 * amd64-bsd-nat.c (gdb_ptrace): New.
8004 * (amd64bsd_fetch_inferior_registers,
8005 amd64bsd_store_inferior_registers) Switch from pid_t to ptid_t.
8006 * (amd64bsd_fetch_inferior_registers,
8007 amd64bsd_store_inferior_registers) Use gdb_ptrace.
8008
8009 2020-03-17 Kamil Rytarowski <n54@gmx.com>
8010
8011 * user-regs.c (user_reg::read): Rename to...
8012 (user_reg::xread): ...this.
8013 * (append_user_reg): Rename argument `read' to `xread'.
8014 * (user_reg_add_builtin): Likewise.
8015 * (user_reg_add): Likewise.
8016 * (value_of_user_reg): Likewise.
8017
8018 2020-03-17 Kamil Rytarowski <n54@gmx.com>
8019
8020 * sparc-nat.c (gdb_ptrace): New.
8021 * sparc-nat.c (sparc_fetch_inferior_registers)
8022 (sparc_store_inferior_registers) Remove obsolete comment.
8023 * sparc-nat.c (sparc_fetch_inferior_registers)
8024 (sparc_store_inferior_registers) Switch from pid_t to ptid_t.
8025 * sparc-nat.c (sparc_fetch_inferior_registers)
8026 (sparc_store_inferior_registers) Use gdb_ptrace.
8027
8028 2020-03-17 Kamil Rytarowski <n54@gmx.com>
8029
8030 * sh-nbsd-nat.c (fetch_registers): New variable lwp and pass
8031 it to the ptrace call.
8032 * sh-nbsd-nat.c (store_registers): Likewise.
8033
8034 2020-03-17 Kamil Rytarowski <n54@gmx.com>
8035
8036 * sh-nbsd-nat.c (sh_nbsd_nat_target): Inherit from
8037 nbsd_nat_target instead of inf_ptrace_target.
8038 * sh-nbsd-nat.c: Include "nbsd-nat.h", as we are now using
8039 nbsd_nat_target.
8040
8041 2020-03-17 Kamil Rytarowski <n54@gmx.com>
8042
8043 * amd64-bsd-nat.c: Include amd64-bsd-nat.h".
8044
8045 2020-03-17 Kamil Rytarowski <n54@gmx.com>
8046
8047 * nbsd-nat.c: Include <sys/types.h>, <sys/ptrace.h> and
8048 <sys/sysctl.h>.
8049 * nbsd-nat.c (nbsd_nat_target::pid_to_exec_file): Rewrite.
8050
8051 2020-03-17 Tom de Vries <tdevries@suse.de>
8052
8053 PR gdb/23710
8054 * dwarf2/read.h (struct dwarf2_per_cu_data): Add unit_type and lang
8055 fields.
8056 * dwarf2/read.c (process_psymtab_comp_unit): Initialize unit_type and lang
8057 fields.
8058 (process_imported_unit_die): Skip import of c++ CUs.
8059
8060 2020-03-16 Tom Tromey <tom@tromey.com>
8061
8062 * p-valprint.c (pascal_object_print_value): Initialize
8063 base_value.
8064
8065 2020-03-16 Anton Kolesov <anton.kolesov@synopsys.com>
8066 Shahab Vahedi <shahab@synopsys.com>
8067
8068 * Makefile.in: Add arch/arc.o
8069 * configure.tgt: Likewise.
8070 * arc-tdep.c (arc_tdesc_init): Use arc_read_description.
8071 (_initialize_arc_tdep): Don't initialize old target descriptions.
8072 (arc_read_description): New function to cache target descriptions.
8073 * arc-tdep.h (arc_read_description): Add proto type.
8074 * arch/arc.c: New file.
8075 * arch/arc.h: Likewise.
8076 * features/Makefile: Replace old target descriptions with new.
8077 * features/arc-arcompact.c: Remove.
8078 * features/arc-arcompact.xml: Likewise.
8079 * features/arc-v2.c: Likewise
8080 * features/arc-v2.xml: Likewise
8081 * features/arc/aux-arcompact.xml: New file.
8082 * features/arc/aux-v2.xml: Likewise.
8083 * features/arc/core-arcompact.xml: Likewise.
8084 * features/arc/core-v2.xml: Likewise.
8085 * features/arc/aux-arcompact.c: Generate.
8086 * features/arc/aux-v2.c: Likewise.
8087 * features/arc/core-arcompact.c: Likewise.
8088 * features/arc/core-v2.c: Likewise.
8089 * target-descriptions (maint_print_c_tdesc_cmd): Support ARC features.
8090
8091 2020-03-16 Tom Tromey <tromey@adacore.com>
8092
8093 PR gdb/25663:
8094 * dwarf2/read.c (dwarf2_name): Strip leading namespaces after
8095 putting value into bcache.
8096
8097 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
8098
8099 PR gdb/21500
8100 * amd64-windows-tdep.c (amd64_windows_init_abi): Rename
8101 to...
8102 (amd64_windows_init_abi_common): ... this. Don't set size of
8103 long type.
8104 (amd64_windows_init_abi): New function.
8105 (amd64_cygwin_init_abi): New function.
8106 (_initialize_amd64_windows_tdep): Use amd64_cygwin_init_abi for
8107 the Cygwin OS ABI.
8108 * i386-windows-tdep.c (_initialize_i386_windows_tdep): Clarify
8109 comment.
8110
8111 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
8112
8113 * windows-tdep.h (is_linked_with_cygwin_dll): New declaration.
8114 * windows-tdep.c (CYGWIN_DLL_NAME): New.
8115 (pe_import_directory_entry): New struct type.
8116 (is_linked_with_cygwin_dll): New function.
8117 * amd64-windows-tdep.c (amd64_windows_osabi_sniffer): Select
8118 GDB_OSABI_CYGWIN if the BFD is linked with the Cygwin DLL.
8119 * i386-windows-tdep.c (i386_windows_osabi_sniffer): Likewise.
8120
8121 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
8122
8123 * i386-windows-tdep.c: Mass-rename "cygwin" to "windows", except
8124 i386_cygwin_core_osabi_sniffer.
8125
8126 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
8127
8128 * i386-cygwin-tdep.c: Rename to...
8129 * i386-windows-tdep.c: ... this.
8130 * Makefile.in (ALL_TARGET_OBS): Rename i386-cygwin-tdep.c to
8131 i386-windows-tdep.c.
8132 * configure.tgt: Likewise.
8133
8134 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
8135
8136 * osabi.h (enum gdb_osabi): Add GDB_OSABI_WINDOWS.
8137 * osabi.c (gdb_osabi_names): Add "Windows".
8138 * i386-cygwin-tdep.c (i386_cygwin_osabi_sniffer): Return
8139 GDB_OSABI_WINDOWS when the binary's target is "pei-i386".
8140 (i386_cygwin_core_osabi_sniffer): New function, extracted from
8141 i386_cygwin_osabi_sniffer.
8142 (_initialize_i386_cygwin_tdep): Register OS ABI
8143 GDB_OSABI_WINDOWS for i386.
8144 * amd64-windows-tdep.c (amd64_windows_osabi_sniffer): Return
8145 GDB_OSABI_WINDOWS when the binary's target is "pei-x86-64".
8146 (_initialize_amd64_windows_tdep): Register OS ABI GDB_OSABI_WINDOWS
8147 for x86-64.
8148 * configure.tgt: Use GDB_OSABI_WINDOWS as the default OS ABI
8149 when the target matches '*-*-mingw*'.
8150
8151 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
8152
8153 * defs.h (enum gdb_osabi): Move to...
8154 * osabi.h (enum gdb_osabi): ... here.
8155 * gdbarch.sh: Include osabi.h in gdbarch.h.
8156 * gdbarch.h: Re-generate.
8157
8158 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
8159
8160 * amd64-windows-tdep.c (amd64_windows_osabi_sniffer): New
8161 function.
8162 (_initialize_amd64_windows_tdep): Register osabi sniffer.
8163
8164 2020-03-14 Tom Tromey <tom@tromey.com>
8165
8166 * c-typeprint.c (cp_type_print_method_args): Print "__restrict__"
8167 for C++.
8168 (c_type_print_modifier): Likewise. Add "language" parameter.
8169 (c_type_print_varspec_prefix, c_type_print_base_struct_union)
8170 (c_type_print_base_1): Update.
8171 * type-stack.h (enum type_pieces) <tp_atomic, tp_restrict>: New
8172 constants.
8173 * type-stack.c (type_stack::insert): Handle tp_atomic and
8174 tp_restrict.
8175 (type_stack::follow_type_instance_flags): Likewise.
8176 (type_stack::follow_types): Likewise. Merge type-following code.
8177 * c-exp.y (RESTRICT, ATOMIC): New tokens.
8178 (space_identifier, cv_with_space_id)
8179 (const_or_volatile_or_space_identifier_noopt)
8180 (const_or_volatile_or_space_identifier): Remove.
8181 (single_qualifier, qualifier_seq_noopt, qualifier_seq): New
8182 rules.
8183 (ptr_operator, typebase): Update.
8184 (enum token_flag) <FLAG_C>: New constant.
8185 (ident_tokens): Add "restrict", "__restrict__", "__restrict", and
8186 "_Atomic".
8187 (lex_one_token): Handle FLAG_C.
8188
8189 2020-03-14 Kamil Rytarowski <n54@gmx.com>
8190
8191 * m68k-bsd-nat.c (fetch_registers): New variable lwp and pass
8192 it to the ptrace call.
8193 * m68k-bsd-nat.c (store_registers): Likewise.
8194
8195 2020-03-14 Kamil Rytarowski <n54@gmx.com>
8196
8197 * m68k-bsd-nat.c (m68kbsd_supply_gregset): Change type of regs to
8198 gdb_byte *.
8199 * m68k-bsd-nat.c (m68kbsd_supply_fpregset): Likewise.
8200 * m68k-bsd-nat.c (m68kbsd_collect_gregset): Likewise.
8201 * m68k-bsd-nat.c (m68kbsd_supply_pcb): Cast &tmp to gdb_byte *.
8202
8203 2020-03-14 Kamil Rytarowski <n54@gmx.com>
8204
8205 * m68k-bsd-nat.c (m68k_bsd_nat_target): Inherit from
8206 nbsd_nat_target instead of inf_ptrace_target.
8207 * m68k-bsd-nat.c: Include "nbsd-nat.h", as we are now using
8208 nbsd_nat_target.
8209
8210 2020-03-14 Kamil Rytarowski <n54@gmx.com>
8211
8212 * m68k-bsd-nat.c: Define _KERNTYPES to get the declaration of
8213 register_t.
8214
8215 2020-03-14 Kamil Rytarowski <n54@gmx.com>
8216
8217 * alpha-bsd-nat.c (fetch_registers): New variable lwp and pass
8218 it to the ptrace call.
8219 * alpha-bsd-nat.c (store_registers): Likewise.
8220
8221 2020-03-14 Kamil Rytarowski <n54@gmx.com>
8222
8223 * alpha-bsd-nat.c: Remove <sys/procfs.h> and "gregset.h" from
8224 includes.
8225 * alpha-bsd-nat.c (gregset_t, fpregset_t): Remove.
8226 * alpha-bsd-nat.c (supply_gregset, fill_gregset, supply_fpregset,
8227 fill_fpregset): Likewise.
8228
8229 2020-03-14 Kamil Rytarowski <n54@gmx.com>
8230
8231 * alpha-bsd-nat.c (alpha_netbsd_nat_target): Inherit from
8232 nbsd_nat_target instead of inf_ptrace_target.
8233 * alpha-bsd-nat.c: Include "nbsd-nat.h", as we are now using
8234 nbsd_nat_target.
8235
8236 2020-03-14 Kamil Rytarowski <n54@gmx.com>
8237
8238 * alpha-bsd-nat.c: Define _KERNTYPES to get the declaration of
8239 register_t.
8240
8241 2020-03-14 Kamil Rytarowski <n54@gmx.com>
8242
8243 * arm-nbsd-nat.c (fetch_register): New variable lwp and pass
8244 it to the ptrace call.
8245 * arm-nbsd-nat.c (fetch_fp_register): Likewise.
8246 * arm-nbsd-nat.c (fetch_fp_regs): Likewise.
8247 * arm-nbsd-nat.c (store_register): Likewise.
8248 * arm-nbsd-nat.c (store_regs): Likewise.
8249 * arm-nbsd-nat.c (store_fp_register): Likewise.
8250 * arm-nbsd-nat.c (store_fp_regs): Likewise.
8251
8252 2020-03-14 Kamil Rytarowski <n54@gmx.com>
8253
8254 * arm-nbsd-nat.c (arm_netbsd_nat_target): Inherit from
8255 nbsd_nat_target instead of inf_ptrace_target.
8256 * arm-nbsd-nat.c: Include "nbsd-nat.h", as we are now using
8257 nbsd_nat_target.
8258
8259 2020-03-14 Kamil Rytarowski <n54@gmx.com>
8260
8261 * x86-bsd-nat.c (x86bsd_dr_get): New variable lwp and pass
8262 it to the ptrace call.
8263 * x86-bsd-nat.c (x86bsd_dr_set): Likewise.
8264
8265 2020-03-14 Kamil Rytarowski <n54@gmx.com>
8266
8267 * vax-bsd-nat.c (vaxbsd_supply_gregset): New variable lwp and pass
8268 it to the ptrace call.
8269 * vax-bsd-nat.c (vaxbsd_collect_gregset): Likewise.
8270
8271 2020-03-14 Kamil Rytarowski <n54@gmx.com>
8272
8273 * vax-bsd-nat.c (vaxbsd_supply_gregset): Cast gregs to const
8274 gdb_byte *.
8275 * vax-bsd-nat.c (vaxbsd_collect_gregset): Cast gregs to void *.
8276
8277 2020-03-14 Kamil Rytarowski <n54@gmx.com>
8278
8279 * vax-bsd-nat.c (vax_bsd_nat_target): Inherit from nbsd_nat_target
8280 instead of inf_ptrace_target.
8281 * vax-bsd-nat.c: Include "nbsd-nat.h", as we are now using
8282 nbsd_nat_target.
8283
8284 2020-03-14 Kamil Rytarowski <n54@gmx.com>
8285
8286 * mips-nbsd-nat.c: Define _KERNTYPES to get the declaration of
8287 register_t.
8288
8289 2020-03-14 Kamil Rytarowski <n54@gmx.com>
8290
8291 * ppc-nbsd-nat.c: Define _KERNTYPES to get the declaration of
8292 register_t.
8293
8294 2020-03-14 Kamil Rytarowski <n54@gmx.com>
8295
8296 * vax-bsd-nat.c: Define _KERNTYPES to get the declaration of
8297 register_t.
8298
8299 2020-03-13 Tom Tromey <tom@tromey.com>
8300
8301 * value.h (val_print): Don't declare.
8302 * valprint.h (val_print_array_elements)
8303 (val_print_scalar_formatted, generic_val_print): Don't declare.
8304 * valprint.c (generic_val_print_array): Take a struct value.
8305 (generic_val_print_ptr, generic_val_print_memberptr)
8306 (generic_val_print_bool, generic_val_print_int)
8307 (generic_val_print_char, generic_val_print_complex)
8308 (generic_val_print): Remove.
8309 (generic_value_print): Update.
8310 (do_val_print): Remove unused parameters. Don't call
8311 la_val_print.
8312 (val_print): Remove.
8313 (common_val_print): Update. Don't call value_check_printable.
8314 (val_print_scalar_formatted, val_print_array_elements): Remove.
8315 * rust-lang.c (rust_val_print): Remove.
8316 (rust_language_defn): Update.
8317 * p-valprint.c (pascal_val_print): Remove.
8318 (pascal_value_print_inner): Update.
8319 (pascal_object_print_val_fields, pascal_object_print_val):
8320 Remove.
8321 (pascal_object_print_static_field): Update.
8322 * p-lang.h (pascal_val_print): Don't declare.
8323 * p-lang.c (pascal_language_defn): Update.
8324 * opencl-lang.c (opencl_language_defn): Update.
8325 * objc-lang.c (objc_language_defn): Update.
8326 * m2-valprint.c (m2_print_unbounded_array, m2_val_print): Remove.
8327 * m2-lang.h (m2_val_print): Don't declare.
8328 * m2-lang.c (m2_language_defn): Update.
8329 * language.h (struct language_defn) <la_val_print>: Remove.
8330 * language.c (unk_lang_value_print_inner): Rename. Change
8331 argument types.
8332 (unknown_language_defn, auto_language_defn): Update.
8333 * go-valprint.c (go_val_print): Remove.
8334 * go-lang.h (go_val_print): Don't declare.
8335 * go-lang.c (go_language_defn): Update.
8336 * f-valprint.c (f_val_print): Remove.
8337 * f-lang.h (f_value_print): Don't declare.
8338 * f-lang.c (f_language_defn): Update.
8339 * d-valprint.c (d_val_print): Remove.
8340 * d-lang.h (d_value_print): Don't declare.
8341 * d-lang.c (d_language_defn): Update.
8342 * cp-valprint.c (cp_print_value_fields)
8343 (cp_print_value_fields_rtti, cp_print_value): Remove.
8344 (cp_print_static_field): Update.
8345 * c-valprint.c (c_val_print_array, c_val_print_ptr)
8346 (c_val_print_struct, c_val_print_union, c_val_print_int)
8347 (c_val_print_memberptr, c_val_print): Remove.
8348 * c-lang.h (c_val_print_array, cp_print_value_fields)
8349 (cp_print_value_fields_rtti): Don't declare.
8350 * c-lang.c (c_language_defn, cplus_language_defn)
8351 (asm_language_defn, minimal_language_defn): Update.
8352 * ada-valprint.c (ada_val_print_ptr, ada_val_print_num): Remove.
8353 (ada_val_print_enum): Take a struct value.
8354 (ada_val_print_flt, ada_val_print_array, ada_val_print_1)
8355 (ada_val_print): Remove.
8356 (ada_value_print_1): Update.
8357 (printable_val_type): Remove.
8358 * ada-lang.h (ada_val_print): Don't declare.
8359 * ada-lang.c (ada_language_defn): Update.
8360
8361 2020-03-13 Tom Tromey <tom@tromey.com>
8362
8363 * valprint.c (do_val_print): Update.
8364 * python/python-internal.h (gdbpy_apply_val_pretty_printer): Take
8365 a struct value.
8366 (value_to_value_object_no_release): Declare.
8367 * python/py-value.c (value_to_value_object_no_release): New
8368 function.
8369 * python/py-prettyprint.c (gdbpy_apply_val_pretty_printer): Take a
8370 struct value.
8371 * guile/scm-value.c (vlscm_scm_from_value_no_release): New
8372 function.
8373 * guile/scm-pretty-print.c (gdbscm_apply_val_pretty_printer): Take
8374 a struct value.
8375 * guile/guile-internal.h (vlscm_scm_from_value_no_release):
8376 Declare.
8377 (gdbscm_apply_val_pretty_printer): Take a struct value.
8378 * extension.h (apply_ext_lang_val_pretty_printer): Take a struct
8379 value.
8380 * extension.c (apply_ext_lang_val_pretty_printer): Take a struct
8381 value.
8382 * extension-priv.h (struct extension_language_ops)
8383 <apply_val_pretty_printer>: Take a struct value.
8384 * cp-valprint.c (cp_print_value): Create a struct value.
8385 (cp_print_value): Update.
8386
8387 2020-03-13 Tom Tromey <tom@tromey.com>
8388
8389 * ada-valprint.c (print_field_values): Call common_val_print.
8390
8391 2020-03-13 Tom Tromey <tom@tromey.com>
8392
8393 * ada-valprint.c (val_print_packed_array_elements): Remove
8394 bitoffset and val parameters. Call common_val_print.
8395 (ada_val_print_string): Remove offset, address, and original_value
8396 parameters.
8397 (ada_val_print_array): Update.
8398 (ada_value_print_array): New function.
8399 (ada_value_print_1): Call it.
8400
8401 2020-03-13 Tom Tromey <tom@tromey.com>
8402
8403 * ada-valprint.c (ada_value_print): Use common_val_print.
8404
8405 2020-03-13 Tom Tromey <tom@tromey.com>
8406
8407 * ada-valprint.c (ada_val_print_ref): Use common_val_print.
8408
8409 2020-03-13 Tom Tromey <tom@tromey.com>
8410
8411 * ada-valprint.c (ada_value_print_num): New function.
8412 (ada_value_print_1): Use it.
8413
8414 2020-03-13 Tom Tromey <tom@tromey.com>
8415
8416 * ada-valprint.c (ada_value_print_1) <TYPE_CODE_FLT>: Rewrite.
8417
8418 2020-03-13 Tom Tromey <tom@tromey.com>
8419
8420 * ada-valprint.c (ada_value_print_ptr): New function.
8421 (ada_value_print_1): Use it.
8422
8423 2020-03-13 Tom Tromey <tom@tromey.com>
8424
8425 * ada-valprint.c (ada_val_print_gnat_array): Take a struct value;
8426 call common_val_print.
8427 (ada_val_print_1): Update.
8428 (ada_value_print_1): New function.
8429 (ada_value_print_inner): Rewrite.
8430
8431 2020-03-13 Tom Tromey <tom@tromey.com>
8432
8433 * cp-valprint.c (cp_print_value_fields): Update.
8434 (cp_print_value): New function.
8435
8436 2020-03-13 Tom Tromey <tom@tromey.com>
8437
8438 * m2-valprint.c (m2_value_print_inner): Use
8439 cp_print_value_fields.
8440 * cp-valprint.c (cp_print_value_fields): New function.
8441 * c-valprint.c (c_value_print_struct): New function.
8442 (c_value_print_inner): Use c_value_print_struct.
8443 * c-lang.h (cp_print_value_fields): Declare.
8444
8445 2020-03-13 Tom Tromey <tom@tromey.com>
8446
8447 * c-valprint.c (c_value_print_array): New function.
8448 (c_value_print_inner): Use it.
8449
8450 2020-03-13 Tom Tromey <tom@tromey.com>
8451
8452 * c-valprint.c (c_value_print_memberptr): New function.
8453 (c_value_print_inner): Use it.
8454
8455 2020-03-13 Tom Tromey <tom@tromey.com>
8456
8457 * c-valprint.c (c_value_print_int): New function.
8458 (c_value_print_inner): Use it.
8459
8460 2020-03-13 Tom Tromey <tom@tromey.com>
8461
8462 * c-valprint.c (c_value_print_ptr): New function.
8463 (c_value_print_inner): Use it.
8464
8465 2020-03-13 Tom Tromey <tom@tromey.com>
8466
8467 * c-valprint.c (c_value_print_inner): Rewrite.
8468
8469 2020-03-13 Tom Tromey <tom@tromey.com>
8470
8471 * valprint.c (generic_value_print_complex): New function.
8472 (generic_value_print): Use it.
8473
8474 2020-03-13 Tom Tromey <tom@tromey.com>
8475
8476 * valprint.c (generic_val_print_float): Don't call
8477 val_print_scalar_formatted.
8478 (generic_val_print, generic_value_print): Update.
8479
8480 2020-03-13 Tom Tromey <tom@tromey.com>
8481
8482 * valprint.c (generic_value_print_char): New function
8483 (generic_value_print): Use it.
8484
8485 2020-03-13 Tom Tromey <tom@tromey.com>
8486
8487 * valprint.c (generic_value_print_int): New function.
8488 (generic_value_print): Use it.
8489
8490 2020-03-13 Tom Tromey <tom@tromey.com>
8491
8492 * valprint.c (generic_value_print_bool): New function.
8493 (generic_value_print): Use it.
8494
8495 2020-03-13 Tom Tromey <tom@tromey.com>
8496
8497 * valprint.c (generic_val_print_func): Simplify.
8498 (generic_val_print, generic_value_print): Update.
8499
8500 2020-03-13 Tom Tromey <tom@tromey.com>
8501
8502 * valprint.c (generic_val_print_flags): Remove.
8503 (generic_val_print, generic_value_print): Update.
8504 (val_print_type_code_flags): Add original_value parameter.
8505
8506 2020-03-13 Tom Tromey <tom@tromey.com>
8507
8508 * valprint.c (generic_val_print): Update.
8509 (generic_value_print): Update.
8510 * valprint.c (generic_val_print_enum): Don't call
8511 val_print_scalar_formatted.
8512
8513 2020-03-13 Tom Tromey <tom@tromey.com>
8514
8515 * valprint.c (generic_value_print): Call generic_value_print_ptr.
8516 * valprint.c (generic_value_print_ptr): New function.
8517
8518 2020-03-13 Tom Tromey <tom@tromey.com>
8519
8520 * valprint.c (generic_value_print): Rewrite.
8521
8522 2020-03-13 Tom Tromey <tom@tromey.com>
8523
8524 * p-valprint.c (pascal_object_print_value_fields)
8525 (pascal_object_print_value): New functions.
8526
8527 2020-03-13 Tom Tromey <tom@tromey.com>
8528
8529 * p-valprint.c (pascal_value_print_inner): Rewrite.
8530
8531 2020-03-13 Tom Tromey <tom@tromey.com>
8532
8533 * f-valprint.c (f_value_print_innner): Rewrite.
8534
8535 2020-03-13 Tom Tromey <tom@tromey.com>
8536
8537 * m2-valprint.c (m2_print_unbounded_array): New overload.
8538 (m2_print_unbounded_array): Update.
8539 (m2_print_array_contents): Take a struct value.
8540 (m2_value_print_inner): Rewrite.
8541
8542 2020-03-13 Tom Tromey <tom@tromey.com>
8543
8544 * d-valprint.c (dynamic_array_type): Call d_value_print_inner.
8545 (d_value_print_inner): New function.
8546 * d-lang.h (d_value_print_inner): Declare.
8547 * d-lang.c (d_language_defn): Use d_value_print_inner.
8548
8549 2020-03-13 Tom Tromey <tom@tromey.com>
8550
8551 * go-valprint.c (go_value_print_inner): New function.
8552 * go-lang.h (go_value_print_inner): Declare.
8553 * go-lang.c (go_language_defn): Use go_value_print_inner.
8554
8555 2020-03-13 Tom Tromey <tom@tromey.com>
8556
8557 * rust-lang.c (val_print_struct, rust_print_enum): Use the value
8558 API.
8559 (rust_val_print): Rewrite.
8560 (rust_value_print_inner): New function, from rust_val_print.
8561 (rust_language_defn): Use rust_value_print_inner.
8562
8563 2020-03-13 Tom Tromey <tom@tromey.com>
8564
8565 * ada-valprint.c (ada_value_print_inner): New function.
8566 * ada-lang.h (ada_value_print_inner): Declare.
8567 * ada-lang.c (ada_language_defn): Use ada_value_print_inner.
8568
8569 2020-03-13 Tom Tromey <tom@tromey.com>
8570
8571 * f-valprint.c (f_value_print_innner): New function.
8572 * f-lang.h (f_value_print_innner): Declare.
8573 * f-lang.c (f_language_defn): Use f_value_print_innner.
8574
8575 2020-03-13 Tom Tromey <tom@tromey.com>
8576
8577 * p-valprint.c (pascal_value_print_inner): New function.
8578 * p-lang.h (pascal_value_print_inner): Declare.
8579 * p-lang.c (pascal_language_defn): Use pascal_value_print_inner.
8580
8581 2020-03-13 Tom Tromey <tom@tromey.com>
8582
8583 * m2-valprint.c (m2_value_print_inner): New function.
8584 * m2-lang.h (m2_value_print_inner): Declare.
8585 * m2-lang.c (m2_language_defn): Use m2_value_print_inner.
8586
8587 2020-03-13 Tom Tromey <tom@tromey.com>
8588
8589 * opencl-lang.c (opencl_language_defn): Use c_value_print_inner.
8590 * objc-lang.c (objc_language_defn): Use c_value_print_inner.
8591 * c-valprint.c (c_value_print_inner): New function.
8592 * c-lang.h (c_value_print_inner): Declare.
8593 * c-lang.c (c_language_defn, cplus_language_defn)
8594 (asm_language_defn, minimal_language_defn): Use
8595 c_value_print_inner.
8596
8597 2020-03-13 Tom Tromey <tom@tromey.com>
8598
8599 * p-valprint.c (pascal_object_print_value_fields): Now static.
8600 * p-lang.h (pascal_object_print_value_fields): Don't declare.
8601
8602 2020-03-13 Tom Tromey <tom@tromey.com>
8603
8604 * c-valprint.c (c_val_print_array): Simplify.
8605
8606 2020-03-13 Tom Tromey <tom@tromey.com>
8607
8608 * valprint.c (value_print_array_elements): New function.
8609 * valprint.h (value_print_array_elements): Declare.
8610
8611 2020-03-13 Tom Tromey <tom@tromey.com>
8612
8613 * printcmd.c (print_formatted): Use value_print_scalar_formatted.
8614 * mips-tdep.c (mips_print_register): Use
8615 value_print_scalar_formatted.
8616
8617 2020-03-13 Tom Tromey <tom@tromey.com>
8618
8619 * valprint.h (value_print_scalar_formatted): Declare.
8620 * valprint.c (value_print_scalar_formatted): New function.
8621
8622 2020-03-13 Tom Tromey <tom@tromey.com>
8623
8624 * valprint.h (generic_value_print): Declare.
8625 * valprint.c (generic_value_print): New function.
8626
8627 2020-03-13 Tom Tromey <tom@tromey.com>
8628
8629 * valprint.c (do_val_print): Call la_value_print_inner, if
8630 available.
8631 * rust-lang.c (rust_language_defn): Update.
8632 * p-lang.c (pascal_language_defn): Update.
8633 * opencl-lang.c (opencl_language_defn): Update.
8634 * objc-lang.c (objc_language_defn): Update.
8635 * m2-lang.c (m2_language_defn): Update.
8636 * language.h (struct language_defn) <la_value_print_inner>: New
8637 member.
8638 * language.c (unknown_language_defn, auto_language_defn): Update.
8639 * go-lang.c (go_language_defn): Update.
8640 * f-lang.c (f_language_defn): Update.
8641 * d-lang.c (d_language_defn): Update.
8642 * c-lang.c (c_language_defn, cplus_language_defn)
8643 (asm_language_defn, minimal_language_defn): Update.
8644 * ada-lang.c (ada_language_defn): Update.
8645
8646 2020-03-13 Tom Tromey <tom@tromey.com>
8647
8648 * c-valprint.c (c_value_print): Use common_val_print.
8649
8650 2020-03-13 Tom Tromey <tom@tromey.com>
8651
8652 * cp-valprint.c (cp_print_static_field): Use common_val_print.
8653
8654 2020-03-13 Tom Tromey <tom@tromey.com>
8655
8656 * f-valprint.c (f77_print_array_1, f_val_print): Use
8657 common_val_print.
8658
8659 2020-03-13 Tom Tromey <tom@tromey.com>
8660
8661 * riscv-tdep.c (riscv_print_one_register_info): Use
8662 common_val_print.
8663
8664 2020-03-13 Tom Tromey <tom@tromey.com>
8665
8666 * mi/mi-main.c (output_register): Use common_val_print.
8667
8668 2020-03-13 Tom Tromey <tom@tromey.com>
8669
8670 * infcmd.c (default_print_one_register_info): Use
8671 common_val_print.
8672
8673 2020-03-13 Tom Tromey <tom@tromey.com>
8674
8675 * valprint.h (common_val_print_checked): Declare.
8676 * valprint.c (common_val_print_checked): New function.
8677 * stack.c (print_frame_arg): Use common_val_print_checked.
8678
8679 2020-03-13 Tom Tromey <tom@tromey.com>
8680
8681 * valprint.c (do_val_print): New function, from val_print.
8682 (val_print): Use do_val_print.
8683 (common_val_print): Use do_val_print.
8684
8685 2020-03-13 Tom Tromey <tom@tromey.com>
8686
8687 * valprint.c (value_print): Use scoped_value_mark.
8688
8689 2020-03-13 Tom de Vries <tdevries@suse.de>
8690
8691 PR symtab/25646
8692 * psymtab.c (partial_symtab::partial_symtab): Don't set
8693 globals_offset and statics_offset. Push element onto
8694 current_global_psymbols and current_static_psymbols stacks.
8695 (concat): New function.
8696 (end_psymtab_common): Set globals_offset and statics_offset. Pop
8697 element from current_global_psymbols and current_static_psymbols
8698 stacks. Concat popped elements to global_psymbols and
8699 static_symbols.
8700 (add_psymbol_to_list): Use current_global_psymbols and
8701 current_static_psymbols stacks.
8702 * psymtab.h (class psymtab_storage): Add current_global_psymbols and
8703 current_static_psymbols fields.
8704
8705 2020-03-12 Christian Biesinger <cbiesinger@google.com>
8706
8707 * corelow.c (sniff_core_bfd): Remove.
8708 (class core_target) <m_core_vec>: Remove.
8709 (core_target::core_target): Update.
8710 (core_file_fns): Remove.
8711 (deprecated_add_core_fns): Remove.
8712 (default_core_sniffer): Remove.
8713 (sniff_core_bfd): Remove.
8714 (default_check_format): Remove.
8715 (gdb_check_format): Remove.
8716 (core_target_open): Update.
8717 (core_target::get_core_register_section): Update.
8718 (get_core_registers_cb): Update.
8719 (core_target::fetch_registers): Update.
8720 * gdbcore.h (struct core_fns): Remove.
8721 (deprecated_add_core_fns): Remove.
8722 (default_core_sniffer): Remove.
8723 (default_check_format): Remove.
8724
8725 2020-03-12 Tom Tromey <tom@tromey.com>
8726
8727 * arm-tdep.c (struct arm_mapping_symbol) <value>: Now a
8728 CORE_ADDR.
8729 (struct arm_exidx_entry) <addr>: Now a CORE_ADDR.
8730
8731 2020-03-12 Tom Tromey <tom@tromey.com>
8732
8733 * remote.c (remote_target::download_tracepoint)
8734 (remote_target::enable_tracepoint)
8735 (remote_target::disable_tracepoint): Use phex, not sprintf_vma.
8736 * breakpoint.c (print_recreate_masked_watchpoint): Use phex, not
8737 sprintf_vma.
8738
8739 2020-03-12 Tom Tromey <tom@tromey.com>
8740
8741 * symfile-mem.c: Update CORE_ADDR size assert.
8742
8743 2020-03-12 Simon Marchi <simon.marchi@efficios.com>
8744
8745 * selftest.m4: Move to gdbsupport/.
8746 * acinclude.m4: Update path to selftest.m4.
8747
8748 2020-03-12 Simon Marchi <simon.marchi@efficios.com>
8749
8750 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Rename to...
8751 (SELFTESTS_SRCS): ... this. Add disasm-selftests.c,
8752 gdbarch-selfselftests.c and selftest-arch.c.
8753 (SUBDIR_UNITTESTS_OBS): Rename to...
8754 (SELFTESTS_OBS): ... this.
8755 (COMMON_SFILES): Remove disasm-selftests.c and
8756 gdbarch-selftests.c.
8757 * configure.ac: Don't add selftest-arch.{c,o} to
8758 CONFIG_{SRCS,OBS}.
8759 * disasm-selftests.c, gdbarch-selftests.c: Remove GDB_SELF_TEST
8760 preprocessor conditions.
8761
8762 2020-03-12 Simon Marchi <simon.marchi@efficios.com>
8763
8764 * configure.ac: Don't source bfd/development.sh.
8765 * selftest.m4: Modify comment.
8766 * configure: Re-generate.
8767
8768 2020-03-12 Simon Marchi <simon.marchi@efficios.com>
8769
8770 * selftest.m4 (GDB_AC_SELFTEST): Error out if $development is
8771 not "true" or "false".
8772 * configure: Re-generate.
8773
8774 2020-03-12 Christian Biesinger <cbiesinger@google.com>
8775
8776 * Makefile.in (HFILES_NO_SRCDIR): Add new arm-nbsd-tdep.h file.
8777 * arm-nbsd-nat.c (arm_supply_gregset): Moved to arm-nbsd-tdep and
8778 renamed to arm_nbsd_supply_gregset.
8779 (fetch_register): Update to call arm_nbsd_supply_gregset.
8780 (fetch_regs): Remove in favor of fetch_register with a -1 regno.
8781 (arm_netbsd_nat_target::fetch_registers): Update.
8782 (fetch_elfcore_registers): Removed.
8783 (_initialize_arm_netbsd_nat): Removed call to deprecated_add_core_fns.
8784 * arm-nbsd-tdep.c (struct arm_nbsd_reg): New struct.
8785 (arm_nbsd_supply_gregset): Moved from arm-nbsd-nat.c and updated to
8786 not require NetBSD system headers.
8787 (arm_nbsd_regset): New struct.
8788 (arm_nbsd_iterate_over_regset_sections): New function.
8789 (arm_netbsd_init_abi_common): Updated to call
8790 set_gdbarch_iterate_over_regset_sections.
8791 * arm-nbsd-tdep.h: New file.
8792
8793 2020-03-11 Kevin Buettner <kevinb@redhat.com>
8794
8795 * symtab.c (find_pc_sect_line): Add check which prevents infinite
8796 recursion.
8797
8798 2020-03-11 Simon Marchi <simon.marchi@efficios.com>
8799
8800 * configure: Re-generate.
8801
8802 2020-03-11 Tom Tromey <tromey@adacore.com>
8803
8804 * ada-typeprint.c (print_choices): Fix comment.
8805
8806 2020-03-11 Andrew Burgess <andrew.burgess@embecosm.com>
8807
8808 * buildsyms.c (buildsym_compunit::record_line): Avoid accessing
8809 previous item in the list, when the list has no items.
8810
8811 2020-03-11 Tom de Vries <tdevries@suse.de>
8812
8813 * dwarf2/loc.c (dwarf2_evaluate_property): Handle NULL frame in
8814 PROP_LOCLIST handling code.
8815
8816 2020-03-10 Andrew Burgess <andrew.burgess@embecosm.com>
8817
8818 * buildsym-legacy.c (record_line): Pass extra parameter to
8819 record_line.
8820 * buildsym.c (buildsym_compunit::record_line): Take an extra
8821 parameter, reduce duplication in the line table, and record the
8822 is_stmt flag in the line table.
8823 * buildsym.h (buildsym_compunit::record_line): Add extra
8824 parameter.
8825 * disasm.c (do_mixed_source_and_assembly_deprecated): Ignore
8826 non-statement lines.
8827 * dwarf2/read.c (dwarf_record_line_1): Add extra parameter, pass
8828 this to the symtab builder.
8829 (dwarf_finish_line): Pass extra parameter to dwarf_record_line_1.
8830 (lnp_state_machine::record_line): Pass a suitable is_stmt flag
8831 through to dwarf_record_line_1.
8832 * infrun.c (process_event_stop_test): When stepping, don't stop at
8833 a non-statement instruction, and only refresh the step info when
8834 we land in the middle of a line's range. Also add an extra
8835 comment.
8836 * jit.c (jit_symtab_line_mapping_add_impl): Initialise is_stmt
8837 field.
8838 * record-btrace.c (btrace_find_line_range): Only record lines
8839 marked as is-statement.
8840 * stack.c (frame_show_address): Show the frame address if we are
8841 in a non-statement sal.
8842 * symmisc.c (dump_symtab_1): Print the is_stmt flag.
8843 (maintenance_print_one_line_table): Print a header for the is_stmt
8844 column, and include is_stmt information in the output.
8845 * symtab.c (find_pc_sect_line): Find lines marked as statements in
8846 preference to non-statements.
8847 (find_pcs_for_symtab_line): Prefer is-statement entries.
8848 (find_line_common): Likewise.
8849 * symtab.h (struct linetable_entry): Add is_stmt field.
8850 (struct symtab_and_line): Likewise.
8851 * xcoffread.c (arrange_linetable): Initialise is_stmt field when
8852 arranging the line table.
8853
8854 2020-03-07 Tom de Vries <tdevries@suse.de>
8855
8856 * dwarf2/read.c (read_typedef): Treat anonymous typedef as forwarder
8857 DIE.
8858
8859 2020-03-07 Tom Tromey <tom@tromey.com>
8860
8861 * valops.c (value_literal_complex): Remove obsolete comment.
8862 * gdbtypes.h (enum type_code) <TYPE_CODE_FLT>: Remove obsolete
8863 comment.
8864
8865 2020-03-06 Simon Marchi <simon.marchi@polymtl.ca>
8866
8867 * infrun.h: Forward-declare thread_info.
8868 (set_step_info): Add thread_info parameter, add doc.
8869 * infrun.c (set_step_info): Add thread_info parameter, move doc
8870 to header.
8871 * infrun.c (process_event_stop_test): Pass thread to
8872 set_step_info call.
8873 * infcmd.c (set_step_frame): Add thread_info pointer, pass it to
8874 set_step_info.
8875 (prepare_one_step): Add thread_info parameter, pass it to
8876 set_step_frame and prepare_one_step (recursive) call.
8877 (step_1): Pass thread to prepare_one_step call.
8878 (step_command_fsm::should_stop): Pass thread to
8879 prepare_one_step.
8880 (until_next_fsm): Pass thread to set_step_frame call.
8881 (finish_command): Pass thread to set_step_info call.
8882
8883 2020-03-06 Hannes Domani <ssbssa@yahoo.de>
8884
8885 * windows-tdep.c (windows_solib_create_inferior_hook):
8886 Check if inferior is running.
8887
8888 2020-03-06 Tom de Vries <tdevries@suse.de>
8889
8890 * NEWS: Fix "the the".
8891 * ctfread.c: Same.
8892
8893 2020-03-06 Tom de Vries <tdevries@suse.de>
8894
8895 * psymtab.c (psymtab_to_symtab): Don't print "done.".
8896
8897 2020-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
8898
8899 * .dir-locals.el: Add a comment referencing the other copies of
8900 this file.
8901
8902 2020-03-05 John Baldwin <jhb@FreeBSD.org>
8903
8904 * fbsd-tdep.c (fbsd_make_corefile_notes): Use std::string for
8905 psargs.
8906
8907 2020-03-05 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
8908
8909 * .gitattributes: New file.
8910
8911 2020-03-04 Tom Tromey <tom@tromey.com>
8912
8913 * symmisc.c (print_symbol_bcache_statistics)
8914 (print_objfile_statistics): Update.
8915 * symfile.c (allocate_symtab): Use intern.
8916 * psymtab.c (partial_symtab::partial_symtab): Use intern.
8917 * objfiles.h (struct objfile_per_bfd_storage) <filename_cache,
8918 macro_cache>: Remove.
8919 <string_cache>: New member.
8920 (struct objfile) <intern>: New methods.
8921 * elfread.c (elf_symtab_read): Use intern.
8922 * dwarf2/read.c (fixup_go_packaging): Intern package name.
8923 (dwarf2_compute_name, dwarf2_physname)
8924 (create_dwo_unit_in_dwp_v1, create_dwo_unit_in_dwp_v2): Intern
8925 names.
8926 (guess_partial_die_structure_name): Update.
8927 (partial_die_info::fixup): Intern name.
8928 (dwarf2_canonicalize_name): Change parameter to objfile. Intern
8929 name.
8930 (dwarf2_name): Intern name. Update.
8931 * buildsym.c (buildsym_compunit::get_macro_table): Use
8932 string_cache.
8933
8934 2020-03-04 Tom Tromey <tom@tromey.com>
8935
8936 * jit.c (bfd_open_from_target_memory): Make "target" const.
8937 * corefile.c (gnutarget): Now const.
8938 * gdbcore.h (gnutarget): Now const.
8939
8940 2020-03-04 Hannes Domani <ssbssa@yahoo.de>
8941
8942 * NEWS: Mention support for WOW64 processes.
8943 * amd64-windows-nat.c (amd64_mappings): Rename and remove static.
8944 (amd64_windows_segment_register_p): Remove static.
8945 (_initialize_amd64_windows_nat): Update.
8946 * configure.nat <windows> (NATDEPFILES): Add i386-windows-nat.o.
8947 * i386-windows-nat.c (context_offset): Update.
8948 (i386_mappings): Rename and remove static.
8949 (i386_windows_segment_register_p): Remove static.
8950 (_initialize_i386_windows_nat): Update.
8951 * windows-nat.c (STATUS_WX86_BREAKPOINT): New macro.
8952 (STATUS_WX86_SINGLE_STEP): New macro.
8953 (EnumProcessModulesEx): New macro.
8954 (Wow64SuspendThread): New macro.
8955 (Wow64GetThreadContext): New macro.
8956 (Wow64SetThreadContext): New macro.
8957 (Wow64GetThreadSelectorEntry): New macro.
8958 (windows_set_context_register_offsets): Add static.
8959 (windows_set_segment_register_p): Likewise.
8960 (windows_add_thread): Adapt for WOW64 processes.
8961 (windows_fetch_one_register): Likewise.
8962 (windows_nat_target::fetch_registers): Likewise.
8963 (windows_store_one_register): Likewise.
8964 (display_selector): Likewise.
8965 (display_selectors): Likewise.
8966 (handle_exception): Likewise.
8967 (windows_continue): Likewise.
8968 (windows_nat_target::resume): Likewise.
8969 (windows_add_all_dlls): Likewise.
8970 (do_initial_windows_stuff): Likewise.
8971 (windows_nat_target::attach): Likewise.
8972 (windows_get_exec_module_filename): Likewise.
8973 (windows_nat_target::create_inferior): Likewise.
8974 (windows_xfer_siginfo): Likewise.
8975 (_initialize_loadable): Initialize Wow64SuspendThread,
8976 Wow64GetThreadContext, Wow64SetThreadContext,
8977 Wow64GetThreadSelectorEntry and EnumProcessModulesEx.
8978 * windows-nat.h (windows_set_context_register_offsets):
8979 Remove declaration.
8980 (windows_set_segment_register_p): Likewise.
8981 (i386_windows_segment_register_p): Add declaration.
8982 (amd64_windows_segment_register_p): Likewise.
8983
8984 2020-03-04 Luis Machado <luis.machado@linaro.org>
8985
8986 Revert aa66aac47b4dd38f9524ddb5546c08cc09930d37 due to regressions
8987 in "info registers" for AArch64/ARM.
8988
8989 The change caused "info registers" to not print GPR's.
8990
8991 gdb/ChangeLog:
8992
8993 2020-02-01 Shahab Vahedi <shahab@synopsys.com>
8994
8995 * target-descriptions.c (tdesc_register_in_reggroup_p): Return 0
8996 when reg->group is empty and reggroup is not.
8997
8998 2020-03-03 Tom Tromey <tromey@adacore.com>
8999
9000 * dwarf2/frame.c (struct dwarf2_frame_cache)
9001 <checked_tailcall_bottom, entry_cfa_sp_offset,
9002 entry_cfa_sp_offset_p>: Remove members.
9003 (dwarf2_frame_cache): Call dwarf2_tailcall_sniffer_first.
9004 (dwarf2_frame_prev_register): Don't call
9005 dwarf2_tailcall_sniffer_first.
9006 (dwarf2_append_unwinders): Don't append tailcall unwinder.
9007 * frame-unwind.c (add_unwinder): New fuction.
9008 (frame_unwind_init): Use it. Add tailcall unwinder.
9009
9010 2020-03-03 Andrew Burgess <andrew.burgess@embecosm.com>
9011 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
9012
9013 * f-valprint.c (f_val_print): Handle TYPE_CODE_BOOL, any non-zero
9014 value should be printed as true.
9015
9016 2020-03-03 Hannes Domani <ssbssa@yahoo.de>
9017
9018 * windows-tdep.c (windows_solib_create_inferior_hook): New function.
9019 (windows_init_abi): Set and use windows_so_ops.
9020
9021 2020-03-03 Sergio Durigan Junior <sergiodj@redhat.com>
9022
9023 * printcmd.c (print_c_string): Check also for TYPE_CODE_PTR
9024 when verifying if dealing with a convenience variable.
9025
9026 2020-03-03 Luis Machado <luis.machado@linaro.org>
9027
9028 * auxv.c (default_print_auxv_entry): Add new AUXV entries.
9029
9030 2020-03-02 Simon Marchi <simon.marchi@polymtl.ca>
9031
9032 * infrun.c (gdbarch_supports_displaced_stepping): New.
9033 (use_displaced_stepping): Break up conditions in smaller pieces.
9034 Use gdbarch_supports_displaced_stepping.
9035 (displaced_step_prepare_throw): Use
9036 gdbarch_supports_displaced_stepping.
9037
9038 2020-03-02 Andrew Burgess <andrew.burgess@embecosm.com>
9039
9040 * NEWS: Mention new behaviour of the history filename.
9041 * top.c (write_history_p): Add comment.
9042 (show_write_history_p): Add header comment, give a different
9043 message when history writing is on, but the history filename is
9044 empty.
9045 (history_filename): Add comment.
9046 (history_filename_empty): New function.
9047 (show_history_filename): Add header comment, give a different
9048 message when the filename is empty.
9049 (init_history): Compare history_filename against nullptr, and only
9050 read history if the filename is not empty.
9051 (set_history_filename): Add header comment, and only make
9052 non-empty filenames absolute.
9053 (init_main): Make the filename argument to 'set history filename'
9054 optional.
9055
9056 2020-03-02 Christian Biesinger <cbiesinger@google.com>
9057
9058 * arm-nbsd-nat.c (arm_supply_fparegset): Rename to...
9059 (arm_supply_vfpregset): ...this, and update to use VFP registers.
9060 (fetch_fp_register): Update.
9061 (fetch_fp_regs): Update.
9062 (store_fp_register): Update.
9063 (store_fp_regs): Update.
9064 (arm_netbsd_nat_target::read_description): New function.
9065 (fetch_elfcore_registers): Update.
9066
9067 2020-03-02 Andrew Burgess <andrew.burgess@embecosm.com>
9068
9069 * remote.c (remote_target::remote_parse_stop_reply): Don't use the
9070 general_thread if the stop reply is missing a thread-id.
9071 (remote_target::process_stop_reply): Use the first non-exited
9072 thread if the target didn't pass a thread-id.
9073 * infrun.c (do_target_wait): Move call to
9074 switch_to_inferior_no_thread to ....
9075 (do_target_wait_1): ... here.
9076
9077 2020-02-29 Jon Turney <jon.turney@dronecode.org.uk>
9078
9079 * debuginfod-support.c: Include defs.h first.
9080
9081 2020-02-28 Tom de Vries <tdevries@suse.de>
9082
9083 * symfile.c (set_initial_language): Use default language for lookup.
9084
9085 2020-02-28 Simon Marchi <simon.marchi@efficios.com>
9086
9087 * dwarf2/read.c (cutu_reader::init_tu_and_read_dwo_dies): Remove
9088 reader variable, pass `this` to read_cutu_die_from_dwo.
9089
9090 2020-02-27 Aaron Merey <amerey@redhat.com>
9091
9092 * source.c (open_source_file): Check for nullptr when computing
9093 srcpath.
9094
9095 2020-02-27 Tom Tromey <tromey@adacore.com>
9096
9097 * dwarf2/read.c (struct field_info) <nfields>: Now a method, not a
9098 member.
9099 (dwarf2_add_field): Don't update nfields.
9100 (dwarf2_attach_fields_to_type, process_structure_scope): Update.
9101
9102 2020-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
9103
9104 * gdbtypes.c (create_array_type_with_stride): Use std::abs not
9105 abs.
9106
9107 2020-02-26 Tom Tromey <tom@tromey.com>
9108
9109 * dwarf2/read.c (struct dwarf2_include_psymtab): New.
9110 (dwarf2_create_include_psymtab): Use dwarf2_include_psymtab.
9111 (dwarf2_psymtab::expand_psymtab, dwarf2_psymtab::readin_p)
9112 (dwarf2_psymtab::get_compunit_symtab): Remove null checks for
9113 per_cu_data.
9114
9115 2020-02-26 Tom Tromey <tom@tromey.com>
9116
9117 * dwarf2/index-write.c (psym_index_map): Change type.
9118 (add_address_entry_worker, write_one_signatured_type)
9119 (recursively_count_psymbols, recursively_write_psymbols)
9120 (class debug_names, psyms_seen_size, write_gdbindex)
9121 (write_debug_names): Use partial_symtab, not dwarf2_psymtab.
9122
9123 2020-02-26 Aaron Merey <amerey@redhat.com>
9124
9125 * Makefile.in: Handle optional debuginfod support.
9126 * NEWS: Update.
9127 * README: Add --with-debuginfod summary.
9128 * config.in: Regenerate.
9129 * configure: Regenerate.
9130 * configure.ac: Handle optional debuginfod support.
9131 * debuginfod-support.c: debuginfod helper functions.
9132 * debuginfod-support.h: Ditto.
9133 * doc/gdb.texinfo: Add --with-debuginfod to configure options
9134 summary.
9135 * dwarf2/read.c (dwarf2_get_dwz_file): Query debuginfod servers
9136 when a dwz file cannot be found.
9137 * elfread.c (elf_symfile_read): Query debuginfod servers when a
9138 debuginfo file cannot be found.
9139 * source.c (open_source_file): Query debuginfod servers when a
9140 source file cannot be found.
9141 * top.c (print_gdb_configuration): Include
9142 --{with,without}-debuginfod in the output.
9143
9144 2020-02-26 Jérémie Galarneau <jeremie.galarneau@efficios.com>
9145
9146 * thread.c (thr_try_catch_cmd): Print thread name.
9147
9148 2020-02-26 Simon Marchi <simon.marchi@efficios.com>
9149
9150 * dwarf2/loc.h (dwarf2_fetch_die_loc_sect_off,
9151 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
9152 dwarf2_fetch_die_type_sect_off): Move to...
9153 * dwarf2/read.h (dwarf2_fetch_die_loc_sect_off,
9154 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
9155 dwarf2_fetch_die_type_sect_off): ... here.
9156 * dwarf2/read.c (dwarf2_fetch_die_loc_sect_off,
9157 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
9158 dwarf2_fetch_die_type_sect_off): Move doc to header file.
9159
9160 2020-02-26 Tom de Vries <tdevries@suse.de>
9161
9162 PR gdb/25603
9163 * symfile.c (set_initial_language): Exit-early if
9164 language_mode == language_mode_manual.
9165
9166 2020-02-25 Simon Marchi <simon.marchi@polymtl.ca>
9167
9168 * dwarf2/loc.h (dwarf2_read_addr_index): Move...
9169 * dwarf2/read.h (dwarf2_read_addr_index): ... here.
9170 * dwarf2/read.c (dwarf2_read_addr_index): Move doc to header.
9171
9172 2020-02-25 Andrew Burgess <andrew.burgess@embecosm.com>
9173
9174 * gdbtypes.c (create_array_type_with_stride): Handle negative
9175 array strides.
9176 * valarith.c (value_subscripted_rvalue): Likewise.
9177
9178 2020-02-25 Luis Machado <luis.machado@linaro.org>
9179
9180 * aarch64-tdep.c (aarch64_vnv_type): Fix comment typo.
9181
9182 2020-02-25 Simon Marchi <simon.marchi@polymtl.ca>
9183
9184 * loc.h (dwarf2_get_die_type): Move to...
9185 * read.h (dwarf2_get_die_type): ... here.
9186 * read.c (dwarf2_get_die_type): Move doc to header.
9187
9188 2020-02-25 Joel Brobecker <brobecker@adacore.com>
9189
9190 * copypright.py (EXCLUDE_LIST): Add 'gnulib/config.in' and
9191 'gnulib/Makefile.in' to the list.
9192
9193 2020-02-24 Tom Tromey <tom@tromey.com>
9194
9195 * dwarf2/read.h (struct type_unit_unshareable) <num_symtabs>:
9196 Remove.
9197 * dwarf2/read.c (dwarf2_cu::setup_type_unit_groups): Use
9198 XOBNEWVEC.
9199
9200 2020-02-24 Tom Tromey <tom@tromey.com>
9201
9202 * dwarf2/read.h (struct dwarf2_per_cu_data) <type_unit_group_p>:
9203 New method.
9204 * dwarf2/read.c (IS_TYPE_UNIT_GROUP): Remove.
9205 (dw2_do_instantiate_symtab, dw2_get_file_names)
9206 (build_type_psymtab_dependencies, load_full_type_unit): Update.
9207
9208 2020-02-24 Tom Tromey <tom@tromey.com>
9209
9210 * dwarf2read.c (dwarf2_build_psymtabs_hard): Use
9211 make_scoped_restore.
9212 (dwarf2_psymtab::read_symtab): Don't clear
9213 reading_partial_symbols.
9214
9215 2020-02-24 Tom de Vries <tdevries@suse.de>
9216
9217 PR gdb/25592
9218 * stack.c (iterate_over_block_locals): Handle LOC_CONST.
9219
9220 2020-02-24 Tom de Vries <tdevries@suse.de>
9221
9222 * tui/tui-layout.c (_initialize_tui_layout): Fix help messages for
9223 commands layout next/prev/regs.
9224
9225 2020-02-22 Tom Tromey <tom@tromey.com>
9226
9227 * dwarf2/loc.h (dwarf2_compile_expr_to_ax): Don't declare.
9228 * dwarf2/loc.c (dwarf2_compile_expr_to_ax): Now static.
9229
9230 2020-02-22 Tom Tromey <tom@tromey.com>
9231
9232 * tui/tui-data.h (TUI_DISASM_WIN): Cast to tui_disasm_window.
9233
9234 2020-02-22 Tom Tromey <tom@tromey.com>
9235
9236 * tui/tui-win.c (_initialize_tui_win): Add usage text.
9237 * tui/tui-stack.c (_initialize_tui_stack): Add usage text.
9238 * tui/tui-regs.c (_initialize_tui_regs): Add usage text.
9239 * tui/tui.c (_initialize_tui): Add usage text.
9240
9241 2020-02-22 Tom Tromey <tom@tromey.com>
9242
9243 * tui/tui-win.c (tui_set_focus_command)
9244 (tui_set_win_height_command): Use error_no_arg.
9245 (_initialize_tui_win): Update help text.
9246 (FOCUS_USAGE, WIN_HEIGHT_USAGE): Don't define.
9247
9248 2020-02-22 Tom Tromey <tom@tromey.com>
9249
9250 * tui/tui-layout.c (extract_display_start_addr): Rewrite.
9251 * tui/tui-disasm.h (struct tui_disasm_window)
9252 <display_start_addr>: Declare.
9253 * tui/tui-source.h (struct tui_source_window)
9254 <display_start_addr>: Declare.
9255 * tui/tui-winsource.h (struct tui_source_window_base)
9256 <show_source_line, display_start_addr>: New methods.
9257 <m_horizontal_offset, m_start_line_or_addr, m_gdbarch, m_content>:
9258 Rename and move to protected section.
9259 * tui/tui-winsource.c (tui_source_window_base::update_source_window)
9260 (tui_source_window_base::do_erase_source_content): Update.
9261 (tui_source_window_base::show_source_line): Now a method.
9262 (tui_source_window_base::show_source_content)
9263 (tui_source_window_base::tui_source_window_base)
9264 (tui_source_window_base::rerender)
9265 (tui_source_window_base::refill)
9266 (tui_source_window_base::do_scroll_horizontal)
9267 (tui_source_window_base::set_is_exec_point_at)
9268 (tui_source_window_base::update_breakpoint_info)
9269 (tui_source_window_base::update_exec_info): Update.
9270 * tui/tui-source.c (tui_source_window::set_contents)
9271 (tui_source_window::showing_source_p)
9272 (tui_source_window::do_scroll_vertical)
9273 (tui_source_window::location_matches_p)
9274 (tui_source_window::line_is_displayed): Update.
9275 (tui_source_window::display_start_addr): New method.
9276 * tui/tui-disasm.c (tui_disasm_window::set_contents)
9277 (tui_disasm_window::do_scroll_vertical)
9278 (tui_disasm_window::location_matches_p): Update.
9279 (tui_disasm_window::display_start_addr): New method.
9280
9281 2020-02-22 Tom Tromey <tom@tromey.com>
9282
9283 * NEWS: Add entry for gdb.register_window_type.
9284 * tui/tui-layout.h (window_factory): New typedef.
9285 (tui_register_window): Declare.
9286 * tui/tui-layout.c (saved_tui_windows): New global.
9287 (tui_apply_current_layout): Use it.
9288 (tui_register_window): New function.
9289 * python/python.c (do_start_initialization): Call
9290 gdbpy_initialize_tui.
9291 (python_GdbMethods): Add "register_window_type" function.
9292 * python/python-internal.h (gdbpy_register_tui_window)
9293 (gdbpy_initialize_tui): Declare.
9294 * python/py-tui.c: New file.
9295 * Makefile.in (SUBDIR_PYTHON_SRCS): Add py-tui.c.
9296
9297 2020-02-22 Tom Tromey <tom@tromey.com>
9298
9299 * tui/tui-io.c (do_tui_putc): Don't omit annotations.
9300
9301 2020-02-22 Tom Tromey <tom@tromey.com>
9302
9303 * tui/tui-win.c (tui_set_win_focus_to): Move to tui-data.c.
9304 * tui/tui-data.h (tui_set_win_with_focus): Don't declare.
9305 * tui/tui-data.c (tui_set_win_with_focus): Remove.
9306 (tui_set_win_focus_to): Move from tui-win.c.
9307
9308 2020-02-22 Tom Tromey <tom@tromey.com>
9309
9310 * tui/tui-layout.c (make_standard_window, get_locator_window): New
9311 functions.
9312 (known_window_types): New global.
9313 (tui_get_window_by_name): Reimplement.
9314 (initialize_known_windows): New function.
9315 (validate_window_name): Rewrite.
9316 (_initialize_tui_layout): Call initialize_known_windows.
9317
9318 2020-02-22 Tom Tromey <tom@tromey.com>
9319
9320 * tui/tui.h (enum tui_win_type) <LOCATOR_WIN, DATA_ITEM_WIN>:
9321 Remove constants.
9322 * tui/tui-winsource.h (struct tui_source_window_base)
9323 <tui_source_window_base>: Remove parameter.
9324 * tui/tui-winsource.c
9325 (tui_source_window_base::tui_source_window_base): Remove
9326 parameter.
9327 (tui_source_window_base::refill): Update.
9328 * tui/tui-stack.h (struct tui_locator_window)
9329 <tui_locator_window>: Update.
9330 * tui/tui-source.h (struct tui_source_window) <tui_source_window>:
9331 Default the constructor.
9332 * tui/tui-regs.h (struct tui_data_item_window)
9333 <tui_data_item_window>: Default the constructor.
9334 (struct tui_data_window) <tui_data_window>: Likewise.
9335 * tui/tui-disasm.h (struct tui_disasm_window) <tui_disasm_window>:
9336 Default the constructor.
9337 * tui/tui-data.h (struct tui_gen_win_info) <tui_gen_win_info>:
9338 Default the constructor.
9339 <type>: Remove.
9340 (struct tui_win_info) <tui_win_info>: Default the constructor.
9341 * tui/tui-data.c (tui_win_info::tui_win_info): Remove.
9342 * tui/tui-command.h (struct tui_cmd_window) <tui_cmd_window>:
9343 Default the constructor.
9344
9345 2020-02-22 Tom Tromey <tom@tromey.com>
9346
9347 * tui/tui-wingeneral.h (tui_make_all_invisible): Don't declare.
9348 * tui/tui-wingeneral.c (tui_make_all_invisible): Remove.
9349 * tui/tui-win.c (tui_resize_all): Don't call
9350 tui_delete_invisible_windows.
9351 * tui/tui-layout.c (tui_apply_current_layout): Delete windows when
9352 done.
9353 (tui_set_layout): Update.
9354 (tui_add_win_to_layout): Don't call tui_delete_invisible_windows.
9355 * tui/tui-data.h (tui_delete_invisible_windows): Don't declare.
9356 * tui/tui-data.c (tui_delete_invisible_windows): Remove.
9357
9358 2020-02-22 Tom Tromey <tom@tromey.com>
9359
9360 * tui/tui-win.c (tui_partial_win_by_name): Handle ambiguity
9361 correctly.
9362
9363 2020-02-22 Tom Tromey <tom@tromey.com>
9364
9365 * tui/tui-data.c (tui_next_win, tui_prev_win): Reimplement.
9366
9367 2020-02-22 Tom Tromey <tom@tromey.com>
9368
9369 * tui/tui-winsource.h (struct tui_source_window_iterator)
9370 <inner_iterator>: New etytypedef.
9371 <tui_source_window_iterator>: Take "end" parameter.
9372 <tui_source_window_iterator>: Take iterator.
9373 <operator*, advance>: Update.
9374 <m_iter>: Change type.
9375 <m_end>: New field.
9376 (struct tui_source_windows) <begin, end>: Update.
9377 * tui/tui-layout.c (tui_windows): New global.
9378 (tui_apply_current_layout): Clear tui_windows.
9379 (tui_layout_window::apply): Update tui_windows.
9380 * tui/tui-data.h (tui_windows): Declare.
9381 (all_tui_windows): Now inline function.
9382 (class tui_window_iterator, struct all_tui_windows): Remove.
9383
9384 2020-02-22 Tom Tromey <tom@tromey.com>
9385
9386 PR tui/17850:
9387 * tui/tui-win.c (tui_gen_win_info::max_width): New method.
9388 * tui/tui-layout.h (class tui_layout_base) <get_sizes>: Add
9389 "height" argument.
9390 (class tui_layout_window) <get_sizes>: Likewise.
9391 (class tui_layout_split) <tui_layout_split>: Add "vertical"
9392 argument.
9393 <get_sizes>: Add "height" argument.
9394 <m_vertical>: New field.
9395 * tui/tui-layout.c (tui_layout_split::clone): Update.
9396 (tui_layout_split::get_sizes): Add "height" argument.
9397 (tui_layout_split::adjust_size, tui_layout_split::apply): Update.
9398 (tui_new_layout_command): Parse "-horizontal".
9399 (_initialize_tui_layout): Update help string.
9400 (tui_layout_split::specification): Add "-horizontal" when needed.
9401 * tui/tui-layout.c (tui_layout_window::get_sizes): Add "height"
9402 argument.
9403 * tui/tui-data.h (struct tui_gen_win_info) <max_width, min_width>:
9404 New methods.
9405
9406 2020-02-22 Tom Tromey <tom@tromey.com>
9407
9408 * tui/tui-layout.h (enum tui_adjust_result): New.
9409 (class tui_layout_base) <adjust_size>: Return tui_adjust_result.
9410 (class tui_layout_window) <adjust_size>: Return
9411 tui_adjust_result. Rewrite.
9412 (class tui_layout_split) <adjust_size>: Return tui_adjust_result.
9413 * tui/tui-layout.c (tui_layout_split::adjust_size): Update.
9414
9415 2020-02-22 Tom Tromey <tom@tromey.com>
9416
9417 * tui/tui-layout.h (class tui_layout_split) <add_split>: Change
9418 parameter and return types.
9419 (class tui_layout_base) <specification>: Add "depth".
9420 (class tui_layout_window) <specification>: Add "depth".
9421 (class tui_layout_split) <specification>: Add "depth".
9422 * tui/tui-layout.c (tui_layout_split::add_split): Change parameter
9423 and return types.
9424 (tui_new_layout_command): Parse sub-layouts.
9425 (_initialize_tui_layout): Update help string.
9426 (tui_layout_window::specification): Add "depth".
9427 (add_layout_command): Update.
9428
9429 2020-02-22 Tom Tromey <tom@tromey.com>
9430
9431 * NEWS: Add "tui new-layout" item.
9432 * tui/tui-layout.c (add_layout_command): Return cmd_list_element.
9433 Add new-layout command to help text.
9434 (validate_window_name): New function.
9435 (tui_new_layout_command): New function.
9436 (_initialize_tui_layout): Register "new-layout".
9437 (tui_layout_window::specification): New method.
9438 (tui_layout_window::specification): New method.
9439 * tui/tui-layout.h (class tui_layout_base) <specification>: New
9440 method.
9441 (class tui_layout_window) <specification>: New method.
9442 (class tui_layout_split) <specification>: New method.
9443
9444 2020-02-22 Tom Tromey <tom@tromey.com>
9445
9446 * tui/tui.c (tui_enable): Call tui_set_initial_layout.
9447 * tui/tui-win.c (window_name_completer): Update comment.
9448 * tui/tui-layout.h (class tui_layout_base) <replace_window>:
9449 Declare method.
9450 (class tui_layout_window) <replace_window>: Likewise.
9451 (class tui_layout_split) <replace_window>: Likewise.
9452 (tui_set_layout): Don't declare.
9453 (tui_set_initial_layout): Declare function.
9454 * tui/tui-layout.c (layouts, applied_skeleton, src_regs_layout)
9455 (asm_regs_layout): New globals.
9456 (tui_current_layout, show_layout): Remove.
9457 (tui_set_layout, tui_add_win_to_layout): Rewrite.
9458 (find_layout, tui_apply_layout): New function.
9459 (layout_completer): Remove.
9460 (tui_next_layout): Reimplement.
9461 (tui_next_layout_command): New function.
9462 (tui_set_initial_layout, tui_prev_layout_command): New functions.
9463 (tui_regs_layout): Reimplement.
9464 (tui_regs_layout_command): New function.
9465 (extract_display_start_addr): Rewrite.
9466 (next_layout, prev_layout): Remove.
9467 (tui_layout_window::replace_window): New method.
9468 (tui_layout_split::replace_window): New method.
9469 (destroy_layout): New function.
9470 (layout_list): New global.
9471 (add_layout_command): New function.
9472 (initialize_layouts): Update.
9473 (tui_layout_command): New function.
9474 (_initialize_tui_layout): Install "layout" commands.
9475 * tui/tui-data.h (enum tui_layout_type): Remove.
9476 (tui_current_layout): Don't declare.
9477
9478 2020-02-22 Tom Tromey <tom@tromey.com>
9479
9480 * tui/tui-regs.c (tui_reg_layout): Remove.
9481 (tui_reg_command): Use tui_regs_layout.
9482 * tui/tui-layout.h (tui_reg_command): Declare.
9483 * tui/tui-layout.c (tui_reg_command): New function.
9484
9485 2020-02-22 Tom Tromey <tom@tromey.com>
9486
9487 * tui/tui.c (tui_rl_delete_other_windows): Call
9488 tui_remove_some_windows.
9489 * tui/tui-layout.h (class tui_layout_base) <remove_windows>:
9490 Declare method.
9491 (class tui_layout_window) <remove_windows>: New method.
9492 (class tui_layout_split) <remove_windows>: Declare.
9493 (tui_remove_some_windows): Declare.
9494 * tui/tui-layout.c (tui_remove_some_windows): New function.
9495 (tui_layout_split::remove_windows): New method.
9496
9497 2020-02-22 Tom Tromey <tom@tromey.com>
9498
9499 * tui/tui.c (tui_rl_change_windows): Call tui_next_layout.
9500 * tui/tui-layout.h (tui_next_layout): Declare.
9501 * tui/tui-layout.c (tui_next_layout): New function.
9502
9503 2020-02-22 Tom Tromey <tom@tromey.com>
9504
9505 * tui/tui-regs.c (tui_data_window::display_registers_from): Use
9506 correct coordinates.
9507
9508 2020-02-22 Tom Tromey <tom@tromey.com>
9509
9510 * tui/tui-layout.h (tui_add_win_to_layout): Add comment.
9511 * tui/tui-layout.c (tui_add_win_to_layout): Add assert. Remove
9512 DATA_WIN case.
9513
9514 2020-02-22 Tom Tromey <tom@tromey.com>
9515
9516 * tui/tui-disasm.c (tui_get_low_disassembly_address): Use
9517 TUI_DISASM_WIN, not tui_win_list.
9518
9519 2020-02-22 Tom Tromey <tom@tromey.com>
9520
9521 * valprint.c (generic_val_print_enum_1)
9522 (val_print_type_code_flags): Style member names.
9523 * rust-lang.c (val_print_struct, rust_print_enum)
9524 (rust_print_struct_def, rust_internal_print_type): Style member
9525 names.
9526 * p-valprint.c (pascal_object_print_value_fields): Style member
9527 names. Only call fprintf_symbol_filtered for static members.
9528 * m2-typeprint.c (m2_record_fields, m2_enum): Style member names.
9529 * f-valprint.c (f_val_print): Style member names.
9530 * f-typeprint.c (f_type_print_base): Style member names.
9531 * cp-valprint.c (cp_print_value_fields): Style member names. Only
9532 call fprintf_symbol_filtered for static members.
9533 (cp_print_class_member): Style member names.
9534 * c-typeprint.c (c_print_type_1, c_type_print_base_1): Style
9535 member names.
9536 * ada-valprint.c (ada_print_scalar): Style enum names.
9537 (ada_val_print_enum): Likewise.
9538 * ada-typeprint.c (print_enum_type): Style enum names.
9539
9540 2020-02-21 Tom Tromey <tom@tromey.com>
9541
9542 * psympriv.h (struct partial_symtab): Update comment.
9543
9544 2020-02-21 Tom Tromey <tromey@adacore.com>
9545
9546 * mips-tdep.h (mips_pc_is_mips16, mips_pc_is_micromips): Parameter
9547 type is CORE_ADDR.
9548
9549 2020-02-21 Tom de Vries <tdevries@suse.de>
9550
9551 PR gdb/25534
9552 * psymtab.c (partial_symtab::read_dependencies): Don't read dependency
9553 if dependencies[i]->user != NULL.
9554
9555 2020-02-21 Ali Tamur <tamur@google.com>
9556
9557 * dwarf2/read.c (dwarf2_name): Add null check.
9558
9559 2020-02-20 Tom Tromey <tom@tromey.com>
9560
9561 * dwarf2/read.c (dwarf2_find_containing_comp_unit): Use ">", not
9562 ">=", in binary search.
9563 (dwarf2_find_containing_comp_unit): New overload.
9564 (run_test): New self-test.
9565 (_initialize_dwarf2_read): Register new test.
9566
9567 2020-02-20 Nelson Chu <nelson.chu@sifive.com>
9568
9569 * riscv-tdep.c: Updated since the DECLARE_CSR is changed.
9570 * riscv-tdep.h: Likewise.
9571 * features/riscv/rebuild-csr-xml.sh: Generate the 64bit-csr.xml without
9572 rv32-only CSR.
9573 * features/riscv/64bit-csr.xml: Regenerated.
9574
9575 2020-02-20 Sergio Durigan Junior <sergiodj@redhat.com>
9576 Tom Tromey <tom@tromey.com>
9577
9578 * utils.c (fputs_maybe_filtered): Call 'stream->puts' instead
9579 of 'fputc_unfiltered'.
9580 (putchar_unfiltered): Call 'fputc_unfiltered'.
9581 (fputc_unfiltered): Call 'fputs_unfiltered'.
9582
9583 2020-02-20 Andrew Burgess <andrew.burgess@embecosm.com>
9584
9585 * config.in: Regenerate.
9586 * configure: Regenerate.
9587 * configure.ac: Add --with-python-libdir option.
9588 * main.c: Use WITH_PYTHON_LIBDIR.
9589
9590 2020-02-19 Tom Tromey <tom@tromey.com>
9591
9592 * symtab.c (general_symbol_info::compute_and_set_names): Use
9593 obstack_strndup. Simplify call to symbol_set_demangled_name.
9594
9595 2020-02-19 Simon Marchi <simon.marchi@efficios.com>
9596
9597 * dwarf2/read.c (allocate_signatured_type_table,
9598 allocate_dwo_unit_table, allocate_type_unit_groups_table,
9599 allocate_dwo_file_hash_table, allocate_dwp_loaded_cutus_table):
9600 Remove objfile parameter, update all callers.
9601
9602 2020-02-19 Doug Evans <dje@google.com>
9603
9604 PR rust/25535
9605 * rust-lang.c (rust_print_enum): Apply embedded_offset to
9606 rust_enum_variant calculation.
9607
9608 2020-02-19 Tom Tromey <tromey@adacore.com>
9609
9610 * mips-tdep.h (mips_pc_is_mips): Parameter type is CORE_ADDR.
9611
9612 2020-02-19 Tom Tromey <tromey@adacore.com>
9613
9614 * ada-lang.c (cache_symbol): Use obstack_strdup.
9615
9616 2020-02-19 Andrew Burgess <andrew.burgess@embecosm.com>
9617
9618 * configure: Regenerate.
9619
9620 2020-02-19 Tom Tromey <tromey@adacore.com>
9621
9622 * python/python.c (do_start_initialization): Use XNEWVEC. Remove
9623 NULL check.
9624
9625 2020-02-19 Maciej W. Rozycki <macro@wdc.com>
9626
9627 * NEWS: Mention RISC-V GNU/Linux GDBserver support.
9628
9629 2020-02-19 Andrew Burgess <andrew.burgess@embecosm.com>
9630
9631 * arch/riscv.c (struct riscv_gdbarch_features_hasher): Only define
9632 if GDBSERVER is not defined.
9633 (riscv_tdesc_cache): Likewise, also store const target_desc.
9634 (STATIC_IN_GDB): Define.
9635 (riscv_create_target_description): Update declaration with
9636 STATIC_IN_GDB.
9637 (riscv_lookup_target_description): New function, only define if
9638 GDBSERVER is not defined.
9639 * arch/riscv.h (riscv_create_target_description): Declare only
9640 when GDBSERVER is defined.
9641 (riscv_lookup_target_description): New declaration when GDBSERVER
9642 is not defined.
9643 * nat/riscv-linux-tdesc.c (riscv_linux_read_description): Rename to...
9644 (riscv_linux_read_features): ...this, and return
9645 riscv_gdbarch_features instead of target_desc.
9646 * nat/riscv-linux-tdesc.h: Include 'arch/riscv.h'.
9647 (riscv_linux_read_description): Rename to...
9648 (riscv_linux_read_features): ...this.
9649 * riscv-linux-nat.c (riscv_linux_nat_target::read_description):
9650 Update to use riscv_gdbarch_features and
9651 riscv_lookup_target_description.
9652 * riscv-tdep.c (riscv_find_default_target_description): Use
9653 riscv_lookup_target_description instead of
9654 riscv_create_target_description.
9655
9656 2020-02-18 Simon Marchi <simon.marchi@efficios.com>
9657
9658 * valprint.c (generic_val_print_enum_1): When printing a flag
9659 enum with value 0 and there is no enumerator with value 0, print
9660 just "0" instead of "(unknown: 0x0)".
9661
9662 2020-02-18 Simon Marchi <simon.marchi@efficios.com>
9663
9664 * valprint.c (generic_val_print_enum_1): Print unknown part of
9665 flag enum in hex.
9666
9667 2020-02-18 Simon Marchi <simon.marchi@efficios.com>
9668
9669 * dwarf2/read.c (update_enumeration_type_from_children): Allow
9670 flag enums to contain duplicate enumerators.
9671 * valprint.c (generic_val_print_enum_1): Update comment.
9672
9673 2020-02-18 Simon Marchi <simon.marchi@efficios.com>
9674
9675 * dwarf2/read.c: Include "count-one-bits.h".
9676 (update_enumeration_type_from_children): If an enumerator has
9677 multiple bits set, don't treat the enumeration as a "flag enum".
9678 * valprint.c (generic_val_print_enum_1): Assert that enumerators
9679 of flag enums have 0 or 1 bit set.
9680
9681 2020-02-18 Bernd Edlinger <bernd.edlinger@hotmail.de>
9682
9683 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Use an explicit
9684 conversion.
9685 * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise.
9686 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn): Likewise.
9687 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
9688 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Likewise.
9689 * s390-tdep.c (s390_displaced_step_copy_insn): Likewise.
9690
9691 2020-02-18 Simon Marchi <simon.marchi@efficios.com>
9692
9693 * MAINTAINERS: Change palmer@sifive.com to palmer@dabbelt.com.
9694
9695 2020-02-14 Simon Marchi <simon.marchi@efficios.com>
9696
9697 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Use
9698 displaced_step_closure_up.
9699 * aarch64-tdep.h (aarch64_displaced_step_copy_insn): Likewise.
9700 (struct displaced_step_closure_up):
9701 * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise.
9702 * amd64-tdep.h (amd64_displaced_step_copy_insn): Likewise.
9703 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn):
9704 Likewise.
9705 * gdbarch.sh (displaced_step_copy_insn): Likewise.
9706 * gdbarch.c, gdbarch.h: Re-generate.
9707 * i386-linux-tdep.c (i386_linux_displaced_step_copy_insn): Use
9708 displaced_step_closure_up.
9709 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
9710 * i386-tdep.h (i386_displaced_step_copy_insn): Likewise.
9711 * infrun.h (displaced_step_closure_up): New type alias.
9712 (struct displaced_step_inferior_state) <step_closure>: Change
9713 type to displaced_step_closure_up.
9714 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Use
9715 displaced_step_closure_up.
9716 * s390-tdep.c (s390_displaced_step_copy_insn): Likewise.
9717
9718 2020-02-14 Tom Tromey <tom@tromey.com>
9719
9720 * minidebug.c (gnu_debug_key): New global.
9721 (find_separate_debug_file_in_section): Use it.
9722
9723 2020-02-14 Simon Marchi <simon.marchi@efficios.com>
9724
9725 * gdbarch.sh (displaced_step_copy_insn): Change return type to an
9726 std::unique_ptr.
9727 * gdbarch.c: Re-generate.
9728 * gdbarch.h: Re-generate.
9729 * infrun.c (displaced_step_prepare_throw): Adjust to std::unique_ptr
9730 change.
9731 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Change return
9732 type to std::unique_ptr.
9733 * aarch64-tdep.h (aarch64_displaced_step_copy_insn): Likewise.
9734 * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise.
9735 * amd64-tdep.h (amd64_displaced_step_copy_insn): Likewise.
9736 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn): Likewise.
9737 * i386-linux-tdep.c (i386_linux_displaced_step_copy_insn): Likewise.
9738 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
9739 * i386-tdep.h (i386_displaced_step_copy_insn): Likewise.
9740 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Likewise.
9741 * s390-tdep.c (s390_displaced_step_copy_insn): Likewise.
9742
9743 2020-02-14 Simon Marchi <simon.marchi@efficios.com>
9744
9745 * infrun.c (get_displaced_step_closure_by_addr): Adjust to
9746 std::unique_ptr.
9747 (displaced_step_clear): Rename to...
9748 (displaced_step_reset): ... this. Just call displaced->reset ().
9749 (displaced_step_clear_cleanup): Rename to...
9750 (displaced_step_reset_cleanup): ... this.
9751 (displaced_step_prepare_throw): Adjust to std::unique_ptr.
9752 (displaced_step_fixup): Likewise.
9753 (resume_1): Likewise.
9754 (handle_inferior_event): Restore child's memory before calling
9755 displaced_step_fixup on the parent.
9756 * infrun.h (displaced_step_inferior_state) <reset>: Adjust
9757 to std::unique_ptr.
9758 <step_closure>: Change type to std::unique_ptr.
9759
9760 2020-02-14 Simon Marchi <simon.marchi@efficios.com>
9761
9762 * arm-tdep.c: Include count-one-bits.h.
9763 (cleanup_block_store_pc): Use count_one_bits.
9764 (cleanup_block_load_pc): Use count_one_bits.
9765 (arm_copy_block_xfer): Use count_one_bits.
9766 (thumb2_copy_block_xfer): Use count_one_bits.
9767 (thumb_copy_pop_pc_16bit): Use count_one_bits.
9768 * arch/arm-get-next-pcs.c: Include count-one-bits.h.
9769 (thumb_get_next_pcs_raw): Use count_one_bits.
9770 (arm_get_next_pcs_raw): Use count_one_bits_l.
9771 * arch/arm.c (bitcount): Remove.
9772 * arch/arm.h (bitcount): Remove.
9773
9774 2020-02-14 Tom Tromey <tromey@adacore.com>
9775
9776 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first):
9777 Update.
9778 * dwarf2/loc.h (call_site_find_chain): Return unique_xmalloc_ptr.
9779 * dwarf2/loc.c (call_site_find_chain_1): Return
9780 unique_xmalloc_ptr.
9781 (call_site_find_chain): Likewise.
9782
9783 2020-02-14 Richard Biener <rguenther@suse.de>
9784
9785 * dwarf2/read.c (lnp_state_machine::handle_special_opcode): Apply CSE
9786 on expression with division operators.
9787
9788 2020-02-13 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
9789
9790 * MAINTAINERS (Write After Approval): Adding myself.
9791
9792 2020-02-12 Tom Tromey <tom@tromey.com>
9793
9794 * event-loop.c (event_data, gdb_event, event_handler_func):
9795 Remove.
9796
9797 2020-02-12 Tom Tromey <tom@tromey.com>
9798
9799 * dwarf2/frame.c (dwarf2_frame_bfd_data): New global.
9800 (dwarf2_frame_objfile_data): Add comment.
9801 (find_comp_unit, set_comp_unit): New functions.
9802 (dwarf2_frame_find_fde): Use find_comp_unit.
9803 (dwarf2_build_frame_info): Use set_comp_unit.
9804
9805 2020-02-12 Tom Tromey <tom@tromey.com>
9806
9807 * dwarf2/frame.c (struct comp_unit) <objfile>: Remove.
9808 (comp_unit): Don't initialize objfile.
9809 (execute_cfa_program): Add text_offset parameter.
9810 (execute_cfa_program_test, dwarf2_fetch_cfa_info)
9811 (dwarf2_frame_cache): Update.
9812 (dwarf2_build_frame_info): Don't set "objfile" member.
9813
9814 2020-02-12 Tom Tromey <tom@tromey.com>
9815
9816 * dwarf2/frame.c (decode_frame_entry_1): Add gdbarch parameter.
9817 (decode_frame_entry): Likewise.
9818 (dwarf2_build_frame_info): Update.
9819
9820 2020-02-12 Tom Tromey <tom@tromey.com>
9821
9822 * dwarf2/frame.c (struct comp_unit) <obstack>: New member.
9823 (decode_frame_entry_1): Use the comp_unit obstack.
9824
9825 2020-02-12 Tom Tromey <tom@tromey.com>
9826
9827 * dwarf2/frame.c (struct comp_unit): Add initializers and
9828 constructor.
9829 (dwarf2_frame_objfile_data): Store a comp_unit.
9830 (dwarf2_frame_find_fde): Update.
9831 (dwarf2_build_frame_info): Use "new".
9832
9833 2020-02-12 Tom Tromey <tom@tromey.com>
9834
9835 * dwarf2/frame.c (struct dwarf2_fde_table): Remove.
9836 (dwarf2_fde_table): Typedef for std::vector.
9837 (dwarf2_frame_objfile_data): Remove the deleter. Now static.
9838 (dwarf2_frame_find_fde, add_fde, decode_frame_entry_1)
9839 (decode_frame_entry): Update.
9840 (dwarf2_build_frame_info): Use "new".
9841
9842 2020-02-12 Christian Biesinger <cbiesinger@google.com>
9843
9844 * arm-tdep.c (arm_gdbarch_init): Update.
9845 * arm-tdep.h (struct gdbarch_tdep) <have_fpa_registers,
9846 have_wmmx_registers, have_vfp_pseudos, have_neon_pseudos,
9847 have_neon, is_m>: Change to bool.
9848
9849 2020-02-12 Christian Biesinger <cbiesinger@google.com>
9850
9851 * arm-tdep.c (arm_dump_tdep): Print more fields of tdep.
9852
9853 2020-02-12 Tom Tromey <tom@tromey.com>
9854
9855 * dwarf2/loc.c (struct dwarf_expr_baton): Remove.
9856
9857 2020-02-12 Hannes Domani <ssbssa@yahoo.de>
9858
9859 * windows-tdep.c (struct windows_gdbarch_data): Add tib_ptr_type.
9860 (windows_get_tlb_type): Use windows_gdbarch_data->tib_ptr_type.
9861
9862 2020-02-11 Tom Tromey <tom@tromey.com>
9863
9864 * psymtab.h: Update comment.
9865
9866 2020-02-11 Tom Tromey <tom@tromey.com>
9867
9868 * gdb_obstack.h (struct auto_obstack): Use
9869 DISABLE_COPY_AND_ASSIGN.
9870
9871 2020-02-11 Tom Tromey <tom@tromey.com>
9872
9873 * dwarf2/frame.h (struct objfile): Don't forward declare.
9874
9875 2020-02-11 Christian Biesinger <cbiesinger@google.com>
9876
9877 * cris-tdep.c (cris_supply_gregset): Change signature to match
9878 what struct regset expects.
9879 (cris_regset): New struct.
9880 (fetch_core_registers): Remove.
9881 (cris_iterate_over_regset_sections): New function.
9882 (_initialize_cris_tdep): Don't call deprecated_add_core_fns.
9883 (cris_gdbarch_init): Call set_gdbarch_iterate_over_regset_sections.
9884
9885 2020-02-11 Christian Biesinger <cbiesinger@google.com>
9886
9887 * arch/arm.h (enum gdb_regnum): Add comment for the FP0..7
9888 registers.
9889
9890 2020-02-11 Christian Biesinger <cbiesinger@google.com>
9891
9892 * arm-tdep.c (arm_dump_tdep): Add \n in fprintf.
9893
9894 2020-02-11 Simon Marchi <simon.marchi@efficios.com>
9895
9896 * configure: Re-generate.
9897
9898 2020-02-11 Simon Marchi <simon.marchi@efficios.com>
9899
9900 * configure: Re-generate.
9901
9902 2020-02-11 Simon Marchi <simon.marchi@efficios.com>
9903
9904 * acinclude: Update warning.m4 path.
9905 * warning.m4: Move to gdbsupport.
9906
9907 2020-02-11 Tom Tromey <tromey@adacore.com>
9908
9909 * remote.c (remote_console_output): Update.
9910 * printcmd.c (printf_command): Update.
9911 * event-loop.c (gdb_wait_for_event): Update.
9912 * linux-nat.c (sigchld_handler): Update.
9913 * remote-sim.c (gdb_os_write_stdout): Update.
9914 (gdb_os_flush_stdout): Update.
9915 (gdb_os_flush_stderr): Update.
9916 (gdb_os_write_stderr): Update.
9917 * exceptions.c (print_exception): Update.
9918 * remote-fileio.c (remote_fileio_func_read): Update.
9919 (remote_fileio_func_write): Update.
9920 * tui/tui.c (tui_enable): Update.
9921 * tui/tui-interp.c (tui_interp::init): Update.
9922 * utils.c (init_page_info): Update.
9923 (putchar_unfiltered, fputc_unfiltered): Update.
9924 (gdb_flush): Update.
9925 (emit_style_escape): Update.
9926 (flush_wrap_buffer, fputs_maybe_filtered): Update.
9927 * ui-file.c (ui_file_isatty, ui_file_read, ui_file_write)
9928 (ui_file_write_async_safe, ui_file_flush, ui_file_puts): Remove.
9929 (stderr_file::write): Update.
9930 (stderr_file::puts): Update.
9931 * ui-file.h (ui_file_isatty, ui_file_write)
9932 (ui_file_write_async_safe, ui_file_read, ui_file_flush)
9933 (ui_file_puts): Don't declare.
9934
9935 2020-02-10 Tom de Vries <tdevries@suse.de>
9936
9937 * dwarf2/read.c (process_psymtab_comp_unit_reader): Cast concat NULL
9938 sentinel to char *.
9939
9940 2020-02-09 Tom de Vries <tdevries@suse.de>
9941
9942 * dwarf2read.c (process_psymtab_comp_unit_reader): Append CU offset to
9943 filename if it matches "<artificial>".
9944
9945 2020-02-09 Hannes Domani <ssbssa@yahoo.de>
9946
9947 * windows-tdep.c (struct enum_value_name): New struct.
9948 (create_enum): New function.
9949 (windows_get_siginfo_type): Create and use enum types.
9950
9951 2020-02-09 Hannes Domani <ssbssa@yahoo.de>
9952
9953 * NEWS: Mention $_siginfo support for Windows.
9954 * windows-nat.c (handle_exception): Set siginfo_er.
9955 (windows_nat_target::mourn_inferior): Reset siginfo_er.
9956 (windows_xfer_siginfo): New function.
9957 (windows_nat_target::xfer_partial): Call windows_xfer_siginfo.
9958 * windows-tdep.c (struct windows_gdbarch_data): New struct.
9959 (init_windows_gdbarch_data): New function.
9960 (get_windows_gdbarch_data): New function.
9961 (windows_get_siginfo_type): New function.
9962 (windows_init_abi): Register windows_get_siginfo_type.
9963 (_initialize_windows_tdep): Register init_windows_gdbarch_data.
9964
9965 2020-02-08 Tom Tromey <tom@tromey.com>
9966
9967 * dwarf2/read.c (class cutu_reader) <cutu_reader,
9968 init_tu_and_read_dwo_dies>: Remove "keep" parameter.
9969 <keep>: Declare method.
9970 <m_keep>: Remove member.
9971 <~cutu_reader>: Remove.
9972 (cutu_reader::init_tu_and_read_dwo_dies): Update.
9973 (cutu_reader::cutu_reader): Update.
9974 (cutu_reader::keep): Rename from ~cutu_reader.
9975 (process_psymtab_comp_unit, build_type_psymtabs_1)
9976 (process_skeletonless_type_unit, load_partial_comp_unit)
9977 (load_full_comp_unit, dwarf2_read_addr_index)
9978 (read_signatured_type): Update.
9979
9980 2020-02-08 Tom Tromey <tom@tromey.com>
9981
9982 * dwarf2/read.c (process_psymtab_comp_unit_reader): Remove
9983 "want_partial_unit" parameter.
9984 (process_psymtab_comp_unit): Change want_partial_unit to bool.
9985 Inline check for DW_TAG_partial_unit.
9986 (dwarf2_build_psymtabs_hard, scan_partial_symbols): Update.
9987
9988 2020-02-08 Tom Tromey <tom@tromey.com>
9989
9990 * dwarf2/read.c (read_n_bytes, read_direct_string): Move to
9991 read.c.
9992 * dwarf2/leb.h (read_n_bytes, read_direct_string): Move from
9993 read.c.
9994
9995 2020-02-08 Tom Tromey <tom@tromey.com>
9996
9997 * dwarf2/read.c (read_address): Move to comp-unit.c.
9998 (dwarf2_rnglists_process, dwarf2_ranges_process)
9999 (read_attribute_value, dwarf_decode_lines_1)
10000 (var_decode_location, decode_locdesc): Update.
10001 * dwarf2/comp-unit.c (comp_unit_head::read_address): Move from
10002 read.c. Remove "cu" parameter.
10003 * dwarf2/comp-unit.h (struct comp_unit_head) <read_address>: New
10004 method.
10005
10006 2020-02-08 Tom Tromey <tom@tromey.com>
10007
10008 * dwarf2/read.c (read_attribute_value, read_indirect_string)
10009 (read_indirect_line_string): Update.
10010 * dwarf2/comp-unit.c (read_offset): Remove.
10011 (read_comp_unit_head): Update.
10012 * dwarf2/comp-unit.h (struct comp_unit_head) <read_offset>: New
10013 method.
10014 (read_offset): Don't declare.
10015
10016 2020-02-08 Tom Tromey <tom@tromey.com>
10017
10018 * Makefile.in (COMMON_SFILES): Add dwarf2/comp-unit.c.
10019 * dwarf2/read.c (struct comp_unit_head): Move to
10020 dwarf2/comp-unit.h.
10021 (enum class rcuh_kind): Move to comp-unit.h.
10022 (get_cu_length, offset_in_cu_p): Now methods on comp_unit_head.
10023 (read_comp_unit_head, error_check_comp_unit_head)
10024 (read_and_check_comp_unit_head): Move to comp-unit.c.
10025 (read_offset, dwarf_unit_type_name): Likewise.
10026 (create_debug_type_hash_table, read_cutu_die_from_dwo)
10027 (cutu_reader::cutu_reader, read_call_site_scope)
10028 (find_partial_die, follow_die_offset): Update.
10029 * dwarf2/comp-unit.h: New file, from dwarf2read.c.
10030
10031 2020-02-08 Tom Tromey <tom@tromey.com>
10032
10033 * dwarf2/read.c (read_offset_1): Move to leb.c.
10034 (read_abbrev_offset, read_offset, dwarf_decode_line_header)
10035 (dwarf_decode_macro_bytes): Update.
10036 * dwarf2/leb.c (read_offset): Rename; move from read.c.
10037 * dwarf2/leb.h (read_offset): Declare.
10038
10039 2020-02-08 Tom Tromey <tom@tromey.com>
10040
10041 * dwarf2/read.c (dwarf2_section_size): Remove.
10042 (error_check_comp_unit_head, dwarf2_symbol_mark_computed):
10043 Update.
10044 * dwarf2/section.h (struct dwarf2_section_info) <get_size>: New method.
10045
10046 2020-02-08 Tom Tromey <tom@tromey.com>
10047
10048 * dwarf2/read.c (read_initial_length): Move to leb.c.
10049 * dwarf2/leb.h (read_initial_length): Declare.
10050 * dwarf2/leb.c (read_initial_length): Move from read.c. Add
10051 handle_nonstd parameter.
10052 * dwarf2/frame.c (read_initial_length): Remove.
10053 (decode_frame_entry_1): Update.
10054
10055 2020-02-08 Tom Tromey <tom@tromey.com>
10056
10057 * dwarf2/loc.c (dwarf2_find_location_expression)
10058 (dwarf_evaluate_loc_desc::get_tls_address)
10059 (dwarf_evaluate_loc_desc::push_dwarf_reg_entry_value)
10060 (rw_pieced_value, dwarf2_evaluate_loc_desc_full)
10061 (dwarf2_locexpr_baton_eval, dwarf2_evaluate_property)
10062 (dwarf2_compile_property_to_c)
10063 (dwarf2_loc_desc_get_symbol_read_needs)
10064 (dwarf2_compile_expr_to_ax, locexpr_describe_location)
10065 (locexpr_tracepoint_var_ref, locexpr_generate_c_location)
10066 (loclist_describe_location, loclist_tracepoint_var_ref)
10067 (loclist_generate_c_location): Update.
10068 * compile/compile-loc2c.c (do_compile_dwarf_expr_to_c): Update.
10069 * dwarf2/loc.h (dwarf2_per_cu_objfile, dwarf2_per_cu_addr_size)
10070 (dwarf2_per_cu_ref_addr_size, dwarf2_per_cu_offset_size)
10071 (dwarf2_per_cu_text_offset, dwarf2_version): Don't declare.
10072 * dwarf2/read.c (dwarf2_per_cu_data::objfile)
10073 (dwarf2_per_cu_data::addr_size)
10074 (dwarf2_per_cu_data::ref_addr_size)
10075 (dwarf2_per_cu_data::text_offset)
10076 (dwarf2_per_cu_data::addr_type): Now methods.
10077 (per_cu_header_read_in): Make per_cu "const".
10078 (dwarf2_version): Remove.
10079 (dwarf2_per_cu_data::int_type): Now a method.
10080 (dwarf2_per_cu_data::_addr_sized_int_type): Likewise.
10081 (set_die_type, read_array_type, read_subrange_index_type)
10082 (read_tag_string_type, read_subrange_type): Update.
10083 * dwarf2/read.h (struct dwarf2_per_cu_data) <addr_size,
10084 offset_size, ref_addr_size, text_offset, addr_type, version,
10085 objfile, int_type, addr_sized_int_type>: Declare methods.
10086
10087 2020-02-08 Tom Tromey <tom@tromey.com>
10088
10089 * dwarf2/read.h (struct dwarf2_per_cu_data) <imported_symtabs>:
10090 Move earlier.
10091
10092 2020-02-08 Tom Tromey <tom@tromey.com>
10093
10094 * dwarf2/read.h (dwarf_line_debug): Declare.
10095 * Makefile.in (COMMON_SFILES): Add dwarf2/line-header.c.
10096 * dwarf2/read.c: Move line_header code to new files.
10097 (dwarf_line_debug): No longer static.
10098 * dwarf2/line-header.c: New file.
10099 * dwarf2/line-header.h: New file.
10100
10101 2020-02-08 Tom Tromey <tom@tromey.com>
10102
10103 * dwarf2/read.c (struct line_header) <file_full_name,
10104 file_file_name>: Return unique_xmalloc_ptr.
10105 (line_header::file_file_name): Update.
10106 (line_header::file_full_name): Update.
10107 (dw2_get_file_names_reader): Update.
10108 (macro_start_file): Update.
10109
10110 2020-02-08 Tom Tromey <tom@tromey.com>
10111
10112 * dwarf2/read.c (struct line_header) <file_full_name,
10113 file_file_name>: Declare methods.
10114 (dw2_get_file_names_reader): Update.
10115 (file_file_name): Now a method.
10116 (file_full_name): Likewise.
10117 (macro_start_file): Update.
10118
10119 2020-02-08 Tom Tromey <tom@tromey.com>
10120
10121 * dwarf2/read.c (dwarf_always_disassemble)
10122 (show_dwarf_always_disassemble): Move to loc.c.
10123 (_initialize_dwarf2_read): Move "always-disassemble" registration
10124 to loc.c.
10125 * dwarf2/read.h (dwarf_always_disassemble): Don't declare.
10126 * dwarf2/loc.c (dwarf_always_disassemble): Move from read.c. Now
10127 static.
10128 (show_dwarf_always_disassemble): Move from read.c.
10129 (_initialize_dwarf2loc): Move always-disassemble from read.c.
10130
10131 2020-02-08 Tom Tromey <tom@tromey.com>
10132
10133 * dwarf2/read.c (~dwarf2_per_objfile): Update.
10134 (create_quick_file_names_table): Return htab_up.
10135 (dw2_get_file_names_reader, dw2_forget_cached_source_info):
10136 Update.
10137 * dwarf2/read.h (struct dwarf2_per_objfile)
10138 <quick_file_names_table>: Now htab_up.
10139
10140 2020-02-08 Tom Tromey <tom@tromey.com>
10141
10142 * dwarf2/abbrev.c (abbrev_table::read): Simplify.
10143
10144 2020-02-08 Tom Tromey <tom@tromey.com>
10145
10146 * dwarf2/abbrev.c (abbrev_table): Move constructor from header.
10147 Rewrite.
10148 (abbrev_table::add_abbrev, abbrev_table::lookup_abbrev): Rewrite.
10149 * dwarf2/abbrev.h (struct abbrev_info) <next>: Remove.
10150 (abbrev_table::abbrev_table): No longer inline.
10151 (ABBREV_HASH_SIZE): Remove.
10152 (abbrev_table::m_abbrevs): Now an htab_up.
10153
10154 2020-02-08 Tom Tromey <tom@tromey.com>
10155
10156 * dwarf2/read.c (read_cutu_die_from_dwo): Update.
10157 (cutu_reader): Update.
10158 (build_type_psymtabs_1): Update.
10159 * dwarf2/abbrev.c (abbrev_table::read): Rename.
10160 (abbrev_table::alloc_abbrev): Update.
10161 * dwarf2/abbrev.h (abbrev_table_up): Move earlier.
10162 (abbrev_table::read): New static method, renamed from
10163 abbrev_table_read_table.
10164 (abbrev_table::alloc_abbrev)
10165 (abbrev_table::add_abbrev): Now private.
10166 (abbrev_table::abbrev_table): Now private.
10167 (abbrev_table::m_abbrev_obstack): Now private. Rename.
10168
10169 2020-02-08 Tom Tromey <tom@tromey.com>
10170
10171 * dwarf2/read.c (set_die_type, get_die_type_at_offset): Update.
10172 * dwarf2/read.h (struct dwarf2_per_objfile) <die_type_hash>: Now
10173 htab_up.
10174
10175 2020-02-08 Tom Tromey <tom@tromey.com>
10176
10177 * dwarf2/read.c (struct dwp_file) <loaded_cus, loaded_tus>: Now
10178 htab_up.
10179 (lookup_dwo_unit_in_dwp): Update.
10180 (allocate_dwp_loaded_cutus_table): Return htab_up. Don't allocate
10181 on obstack.
10182
10183 2020-02-08 Tom Tromey <tom@tromey.com>
10184
10185 * dwarf2/read.c (allocate_dwo_file_hash_table): Don't allocate on
10186 obstack.
10187
10188 2020-02-08 Tom Tromey <tom@tromey.com>
10189
10190 * dwarf2/read.c (~dwarf2_per_objfile): Don't delete
10191 line_header_hash.
10192 (handle_DW_AT_stmt_list): Update. Don't allocate on obstack.
10193 * dwarf2/read.h (struct dwarf2_per_objfile) <line_header_hash>:
10194 Change type to htab_up.
10195
10196 2020-02-08 Tom Tromey <tom@tromey.com>
10197
10198 * dwarf2/read.c (allocate_type_unit_groups_table): Return
10199 htab_up. Don't allocate on obstack.
10200 (get_type_unit_group, dwarf2_build_psymtabs_hard): Update.
10201 * dwarf2/read.h (struct dwarf2_per_objfile) <type_unit_groups>:
10202 Change type to htab_up.
10203
10204 2020-02-08 Tom Tromey <tom@tromey.com>
10205
10206 * dwarf2/read.h (struct dwarf2_per_objfile) <signatured_types>:
10207 Change type to htab_up.
10208 * dwarf2/read.c (create_signatured_type_table_from_index)
10209 (create_signatured_type_table_from_debug_names)
10210 (create_all_type_units, add_type_unit)
10211 (lookup_dwo_signatured_type, lookup_signatured_type)
10212 (process_skeletonless_type_unit): Update.
10213 (create_debug_type_hash_table, create_debug_types_hash_table):
10214 Change type of types_htab.
10215 (allocate_signatured_type_table, allocate_dwo_unit_table): Return
10216 htab_up. Don't allocate on obstack.
10217 (create_cus_hash_table): Change type of cus_htab parameter.
10218 (struct dwo_file) <cus, tus>: Now htab_up.
10219 (lookup_dwo_signatured_type, lookup_dwo_cutu)
10220 (process_dwo_file_for_skeletonless_type_units, lookup_dwo_cutu)
10221 (queue_and_load_all_dwo_tus): Update.
10222 * dwarf2/index-write.c (write_gdbindex): Update.
10223 (write_debug_names): Update.
10224
10225 2020-02-08 Tom Tromey <tom@tromey.com>
10226
10227 * dwarf2/read.h (struct dwarf2_queue_item): Move from
10228 dwarf2/read.c. Remove "next" member. Add constructor ntad
10229 destructor.
10230 (struct dwarf2_per_objfile) <queue>: New member.
10231 * dwarf2/read.c (struct dwarf2_queue_item): Move to
10232 dwarf2/read.h.
10233 (dwarf2_queue, dwarf2_queue_tail): Remove.
10234 (class dwarf2_queue_guard): Add parameter to constructor. Use
10235 DISABLE_COPY_AND_ASSIGN.
10236 <m_per_objfile>: New member.
10237 <~dwarf2_queue_guard>: Rewrite.
10238 (dw2_do_instantiate_symtab, queue_comp_unit, process_queue):
10239 Update.
10240 (~dwarf2_queue_item): New.
10241
10242 2020-02-08 Tom Tromey <tom@tromey.com>
10243
10244 * dwarf2/read.c (struct die_info) <has_children>: New member.
10245 (dw2_get_file_names_reader): Remove has_children.
10246 (dw2_get_file_names): Update.
10247 (read_cutu_die_from_dwo): Remove has_children.
10248 (cutu_reader::init_tu_and_read_dwo_dies)
10249 (cutu_reader::cutu_reader): Update.
10250 (process_psymtab_comp_unit_reader, build_type_psymtabs_reader):
10251 Remove has_children.
10252 (build_type_psymtabs_1, process_skeletonless_type_unit)
10253 (load_partial_comp_unit, load_full_comp_unit): Update.
10254 (create_dwo_cu_reader): Remove has_children.
10255 (create_cus_hash_table, read_die_and_children): Update.
10256 (read_full_die_1,read_full_die): Remove has_children.
10257 (read_signatured_type): Update.
10258 (class cutu_reader) <has_children>: Remove.
10259
10260 2020-02-08 Tom Tromey <tom@tromey.com>
10261
10262 * dwarf2/expr.c: Rename from dwarf2expr.c.
10263 * dwarf2/expr.h: Rename from dwarf2expr.h.
10264 * dwarf2/frame-tailcall.c: Rename from dwarf2-frame-tailcall.c.
10265 * dwarf2/frame-tailcall.h: Rename from dwarf2-frame-tailcall.h.
10266 * dwarf2/frame.c: Rename from dwarf2-frame.c.
10267 * dwarf2/frame.h: Rename from dwarf2-frame.h.
10268 * dwarf2/index-cache.c: Rename from dwarf-index-cache.c.
10269 * dwarf2/index-cache.h: Rename from dwarf-index-cache.h.
10270 * dwarf2/index-common.c: Rename from dwarf-index-common.c.
10271 * dwarf2/index-common.h: Rename from dwarf-index-common.h.
10272 * dwarf2/index-write.c: Rename from dwarf-index-write.c.
10273 * dwarf2/index-write.h: Rename from dwarf-index-write.h.
10274 * dwarf2/loc.c: Rename from dwarf2loc.c.
10275 * dwarf2/loc.h: Rename from dwarf2loc.h.
10276 * dwarf2/read.c: Rename from dwarf2read.c.
10277 * dwarf2/read.h: Rename from dwarf2read.h.
10278 * dwarf2/abbrev.c, aarch64-tdep.c, alpha-tdep.c,
10279 amd64-darwin-tdep.c, arc-tdep.c, arm-tdep.c, bfin-tdep.c,
10280 compile/compile-c-symbols.c, compile/compile-cplus-symbols.c,
10281 compile/compile-loc2c.c, cris-tdep.c, csky-tdep.c, findvar.c,
10282 gdbtypes.c, guile/scm-type.c, h8300-tdep.c, hppa-bsd-tdep.c,
10283 hppa-linux-tdep.c, i386-darwin-tdep.c, i386-linux-tdep.c,
10284 i386-tdep.c, iq2000-tdep.c, m32c-tdep.c, m68hc11-tdep.c,
10285 m68k-tdep.c, microblaze-tdep.c, mips-tdep.c, mn10300-tdep.c,
10286 msp430-tdep.c, nds32-tdep.c, nios2-tdep.c, or1k-tdep.c,
10287 riscv-tdep.c, rl78-tdep.c, rs6000-tdep.c, rx-tdep.c, s12z-tdep.c,
10288 s390-tdep.c, score-tdep.c, sh-tdep.c, sparc-linux-tdep.c,
10289 sparc-tdep.c, sparc64-linux-tdep.c, sparc64-tdep.c, tic6x-tdep.c,
10290 tilegx-tdep.c, v850-tdep.c, xstormy16-tdep.c, xtensa-tdep.c:
10291 Update.
10292 * Makefile.in (COMMON_SFILES): Update.
10293 (HFILES_NO_SRCDIR): Update.
10294
10295 2020-02-08 Tom Tromey <tom@tromey.com>
10296
10297 * dwarf2read.c (struct die_reader_specs) <comp_dir>: Remove.
10298 (init_cu_die_reader, read_cutu_die_from_dwo): Update.
10299
10300 2020-02-08 Tom Tromey <tom@tromey.com>
10301
10302 * dwarf2read.h (struct die_info): Don't declare.
10303
10304 2020-02-08 Tom Tromey <tom@tromey.com>
10305
10306 * dwarf2read.h (die_info_ptr): Remove typedef.
10307
10308 2020-02-08 Tom Tromey <tom@tromey.com>
10309
10310 * dwarf2read.c (read_call_site_scope)
10311 (handle_data_member_location, dwarf2_add_member_fn)
10312 (mark_common_block_symbol_computed, read_common_block)
10313 (attr_to_dynamic_prop, partial_die_info::read)
10314 (var_decode_location, dwarf2_fetch_die_loc_sect_off)
10315 (dwarf2_symbol_mark_computed, set_die_type): Update.
10316 * dwarf2/attribute.h (struct attribute) <form_is_block>: Declare
10317 method.
10318 (attr_form_is_block): Don't declare.
10319 * dwarf2/attribute.c (attribute::form_is_block): Now a method.
10320
10321 2020-02-08 Tom Tromey <tom@tromey.com>
10322
10323 * dwarf2read.c (dwarf2_find_base_address, )
10324 (read_call_site_scope, rust_containing_type)
10325 (dwarf2_get_pc_bounds, dwarf2_record_block_ranges)
10326 (handle_data_member_location, dwarf2_add_member_fn)
10327 (get_alignment, read_structure_type, process_structure_scope)
10328 (mark_common_block_symbol_computed, read_common_block)
10329 (read_tag_string_type, attr_to_dynamic_prop, read_subrange_type)
10330 (partial_die_info::read, read_attribute_value, new_symbol)
10331 (lookup_die_type, dwarf2_get_ref_die_offset)
10332 (dwarf2_get_attr_constant_value, follow_die_ref_or_sig)
10333 (dwarf2_fetch_die_loc_sect_off, get_DW_AT_signature_type)
10334 (dwarf2_symbol_mark_computed): Update.
10335 * dwarf2/attribute.h (struct attribute) <value_as_address,
10336 form_is_section_offset, form_is_constant, form_is_ref>: Declare
10337 methods.
10338 (value_as_address, attr_form_is_section_offset)
10339 (attr_form_is_constant, attr_form_is_ref): Don't declare.
10340 * dwarf2/attribute.c (attribute::value_as_address)
10341 (attribute::form_is_section_offset, attribute::form_is_constant)
10342 (attribute::form_is_ref): Now methods.
10343
10344 2020-02-08 Tom Tromey <tom@tromey.com>
10345
10346 * dwarf2read.c (struct attribute, DW_STRING)
10347 (DW_STRING_IS_CANONICAL, DW_UNSND, DW_BLOCK, DW_SND, DW_ADDR)
10348 (DW_SIGNATURE, struct dwarf_block, attr_value_as_address)
10349 (attr_form_is_block, attr_form_is_section_offset)
10350 (attr_form_is_constant, attr_form_is_ref): Move.
10351 * dwarf2/attribute.h: New file.
10352 * dwarf2/attribute.c: New file, from dwarf2read.c.
10353 * Makefile.in (COMMON_SFILES): Add dwarf2/attribute.c.
10354
10355 2020-02-08 Tom Tromey <tom@tromey.com>
10356
10357 * dwarf2read.c (abbrev_table_up, struct abbrev_info)
10358 (struct attr_abbrev, ABBREV_HASH_SIZE, struct abbrev_table):
10359 Move.
10360 (read_cutu_die_from_dwo, build_type_psymtabs_1): Update.
10361 (abbrev_table::alloc_abbrev, abbrev_table::add_abbrev)
10362 (abbrev_table::lookup_abbrev, abbrev_table_read_table): Move to
10363 abbrev.c.
10364 * dwarf2/abbrev.h: New file.
10365 * dwarf2/abbrev.c: New file, from dwarf2read.c.
10366 * Makefile.in (COMMON_SFILES): Add dwarf2/abbrev.c.
10367
10368 2020-02-08 Tom Tromey <tom@tromey.com>
10369
10370 * dwarf2read.c (dwarf2_section_buffer_overflow_complaint)
10371 (dwarf2_section_size, dwarf2_get_section_info)
10372 (create_signatured_type_table_from_debug_names)
10373 (create_addrmap_from_aranges, read_debug_names_from_section)
10374 (get_gdb_index_contents_from_section, read_comp_unit_head)
10375 (error_check_comp_unit_head, read_abbrev_offset)
10376 (create_debug_type_hash_table, init_cu_die_reader)
10377 (read_cutu_die_from_dwo, dwarf2_build_psymtabs_hard)
10378 (read_comp_units_from_section, create_cus_hash_table)
10379 (create_dwp_hash_table, create_dwo_unit_in_dwp_v1)
10380 (create_dwp_v2_section, dwarf2_rnglists_process)
10381 (dwarf2_ranges_process, read_die_and_siblings, read_full_die)
10382 (abbrev_table_read_table, read_indirect_string_at_offset_from)
10383 (read_indirect_string_from_dwz, read_addr_index_1)
10384 (read_str_index, dwarf_decode_line_header, skip_form_bytes)
10385 (dwarf_decode_macro_bytes, dwarf_decode_macros)
10386 (fill_in_loclist_baton): Update.
10387 * dwarf2/section.h (struct dwarf2_section_info) <get_name,
10388 get_containing_section, get_bfd_owner, get_bfd_section,
10389 get_file_name, get_id, get_flags, empty, read>: Declare methods.
10390 (dwarf2_read_section, get_section_name, get_section_file_name)
10391 (get_containing_section, get_section_bfd_owner)
10392 (get_section_bfd_section, get_section_name, get_section_file_name)
10393 (get_section_id, get_section_flags, dwarf2_section_empty_p): Don't
10394 declare.
10395 * dwarf2/section.c (dwarf2_section_info::get_containing_section)
10396 (dwarf2_section_info::get_bfd_owner)
10397 (dwarf2_section_info::get_bfd_section)
10398 (dwarf2_section_info::get_name)
10399 (dwarf2_section_info::get_file_name, dwarf2_section_info::get_id)
10400 (dwarf2_section_info::get_flags, dwarf2_section_info::empty)
10401 (dwarf2_section_info::read): Now methods.
10402 * dwarf-index-write.c (class debug_names): Update.
10403
10404 2020-02-08 Tom Tromey <tom@tromey.com>
10405
10406 * dwarf2read.h (struct dwarf2_section_info, dwarf2_read_section):
10407 Move to dwarf2/section.h.
10408 * dwarf2read.c (get_containing_section, get_section_bfd_owner)
10409 (get_section_bfd_section, get_section_name)
10410 (get_section_file_name, get_section_id, get_section_flags)
10411 (dwarf2_section_empty_p, dwarf2_read_section): Moe to
10412 dwarf2/section.c.
10413 * dwarf2/section.h: New file.
10414 * dwarf2/section.c: New file, from dwarf2read.c.
10415 * Makefile.in (COMMON_SFILES): Add dwarf2/section.c.
10416
10417 2020-02-08 Tom Tromey <tom@tromey.com>
10418
10419 * dwarf2read.h (read_unsigned_leb128): Don't declare.
10420 * dwarf2read.c (read_1_byte, read_1_signed_byte, read_2_bytes)
10421 (read_2_signed_bytes, read_3_bytes, read_4_bytes)
10422 (read_4_signed_bytes, read_8_bytes): Move to dwarf2/leb.h.
10423 (read_unsigned_leb128, read_signed_leb128): Move to dwarf2/leb.c.
10424 * dwarf2/leb.h: New file, from dwarf2read.c.
10425 * dwarf2/leb.c: New file, from dwarf2read.c.
10426 * dwarf2-frame.c (read_1_byte, read_4_bytes, read_8_bytes):
10427 Remove.
10428 * Makefile.in (CONFIG_SRC_SUBDIR): Add dwarf2.
10429 (COMMON_SFILES): Add dwarf2/leb.c.
10430
10431 2020-02-08 Joel Brobecker <brobecker@adacore.com>
10432
10433 GDB 9.1 released.
10434
10435 2020-02-05 Iain Buclaw <ibuclaw@gdcproject.org>
10436
10437 PR gdb/25190:
10438 * gdb/remote-sim.c (gdb_os_write_stderr): Update.
10439 * gdb/remote.c (remote_console_output): Update.
10440 * gdb/ui-file.c (fputs_unfiltered): Rename to...
10441 (ui_file_puts): ...this.
10442 * gdb/ui-file.h (ui_file_puts): Add declaration.
10443 * gdb/utils.c (emit_style_escape): Update.
10444 (flush_wrap_buffer): Update.
10445 (fputs_maybe_filtered): Update.
10446 (fputs_unfiltered): Add function.
10447
10448 2020-02-05 Iain Buclaw <ibuclaw@gdcproject.org>
10449
10450 * gdb/event-loop.c (gdb_wait_for_event): Update.
10451 * gdb/printcmd.c (printf_command): Update.
10452 * gdb/remote-fileio.c (remote_fileio_func_write): Update.
10453 * gdb/remote-sim.c (gdb_os_flush_stdout): Update.
10454 (gdb_os_flush_stderr): Update.
10455 * gdb/remote.c (remote_console_output): Update.
10456 * gdb/ui-file.c (gdb_flush): Rename to...
10457 (ui_file_flush): ...this.
10458 (stderr_file::write): Update.
10459 (stderr_file::puts): Update.
10460 * gdb/ui-file.h (gdb_flush): Rename to...
10461 (ui_file_flush): ...this.
10462 * gdb/utils.c (gdb_flush): Add function.
10463 * gdb/utils.h (gdb_flush): Add declaration.
10464
10465 2020-02-07 Tom Tromey <tromey@adacore.com>
10466
10467 PR breakpoints/24915:
10468 * source.c (find_and_open_source): Do not check basenames_may_differ.
10469
10470 2020-02-07 Tom Tromey <tom@tromey.com>
10471
10472 * README: Update gdbserver documentation.
10473 * gdbserver: Move to top level.
10474 * configure.tgt (build_gdbserver): Remove.
10475 * configure.ac: Remove --enable-gdbserver.
10476 * configure: Rebuild.
10477 * Makefile.in (distclean): Don't mention gdbserver.
10478
10479 2020-02-06 Shahab Vahedi <shahab@synopsys.com>
10480
10481 * source-cache.c (source_cache::ensure): Surround
10482 get_plain_source_lines with a try/catch.
10483 (source_cache::get_line_charpos): Get rid of try/catch
10484 and only check for the return value of "ensure".
10485 * tui/tui-source.c (tui_source_window::set_contents):
10486 Simplify "nlines" calculation.
10487
10488 2020-02-06 Shahab Vahedi <shahab@synopsys.com>
10489
10490 * MAINTAINERS (Write After Approval): Add myself.
10491
10492 2020-02-05 Christian Biesinger <cbiesinger@google.com>
10493
10494 * sparc-nat.h (struct sparc_target) <xfer_partial>: Fix base class
10495 function call.
10496
10497 2020-02-05 Christian Biesinger <cbiesinger@google.com>
10498
10499 * ppc-nbsd-tdep.h: Fix macro name in #endif comment.
10500
10501 2020-02-05 Maciej W. Rozycki <macro@wdc.com>
10502
10503 * nat/riscv-linux-tdesc.h: New file.
10504 * nat/riscv-linux-tdesc.c: New file, taking code from...
10505 * riscv-linux-nat.c (riscv_linux_nat_target::read_description):
10506 ... here.
10507 * configure.nat <linux> <riscv*>: Add nat/riscv-linux-tdesc.o to
10508 NATDEPFILES.
10509
10510 2020-02-04 Andrew Burgess <andrew.burgess@embecosm.com>
10511
10512 * remote-sim.c (sim_inferior_data::sim_inferior_data): Assert that
10513 we don't set the fake simulator ptid to the null_ptid.
10514
10515 2020-02-03 Simon Marchi <simon.marchi@efficios.com>
10516
10517 * fork-child.c (gdb_startup_inferior): Use bool instead of int.
10518 * gdbthread.h (class thread_info) <resumed>: Likewise.
10519 * infrun.c (resume_1): Likewise.
10520 (proceed): Likewise.
10521 (infrun_thread_stop_requested): Likewise.
10522 (stop_all_threads): Likewise.
10523 (handle_inferior_event): Likewise.
10524 (restart_threads): Likewise.
10525 (finish_step_over): Likewise.
10526 (keep_going_stepped_thread): Likewise.
10527 * linux-nat.c (attach_proc_task_lwp_callback): Likewise.
10528 (linux_handle_extended_wait): Likewise.
10529 * record-btrace.c (get_thread_current_frame_id): Likewise.
10530 * record-full.c (record_full_wait_1): Likewise.
10531 * remote.c (remote_target::process_initial_stop_replies): Likewise.
10532 * target.c (target_resume): Likewise.
10533 * thread.c (set_running_thread): Likewise.
10534
10535 2020-02-03 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
10536
10537 * f-valprint.c (f77_print_array_1): Changed datatype of index
10538 variable to LONGEST from int to enable it to contain bound
10539 values correctly.
10540
10541 2020-02-03 Maciej W. Rozycki <macro@wdc.com>
10542
10543 * riscv-linux-nat.c [!NFPREG] (NFPREG): New macro.
10544 (supply_fpregset_regnum, fill_fpregset): Handle regset buffer
10545 offsets according to FLEN determined.
10546 (riscv_linux_nat_target::read_description): Determine FLEN
10547 dynamically.
10548 (riscv_linux_nat_target::fetch_registers): Size regset buffer
10549 according to FLEN determined.
10550 (riscv_linux_nat_target::store_registers): Likewise.
10551
10552 2020-02-01 Shahab Vahedi <shahab@synopsys.com>
10553
10554 * target-descriptions.c (tdesc_register_in_reggroup_p): Return 0
10555 when reg->group is empty and reggroup is not.
10556
10557 2020-01-31 Tom Tromey <tromey@adacore.com>
10558
10559 * ravenscar-thread.c (ravenscar_thread_target::mourn_inferior):
10560 Call beneath target's mourn_inferior after unpushing.
10561
10562 2020-01-31 Andrew Burgess <andrew.burgess@embecosm.com>
10563
10564 PR tui/9765
10565 * tui/tui-disasm.c (tui_find_disassembly_address): If we don't
10566 have enough lines to fill the screen, still return the lowest
10567 address we found.
10568
10569 2020-01-31 Andrew Burgess <andrew.burgess@embecosm.com>
10570
10571 * tui/tui-win.c (_initialize_tui_win): Update help text for '+',
10572 '-', '<', and '>' commands.
10573
10574 2020-01-29 Pedro Alves <palves@redhat.com>
10575 Sergio Durigan Junior <sergiodj@redhat.com>
10576
10577 * infcmd.c (construct_inferior_arguments): Assert that
10578 'argc' is greater than 0.
10579
10580 2020-01-29 Luis Machado <luis.machado@linaro.org>
10581
10582 * aarch64-tdep.c (BRK_INSN_MASK): Define to 0xffe0001f.
10583 (BRK_INSN_MASK): Define to 0xd4200000.
10584 (aarch64_program_breakpoint_here_p): New function.
10585 (aarch64_gdbarch_init): Set gdbarch_program_breakpoint_here_p hook.
10586 * arch-utils.c (default_program_breakpoint_here_p): Moved from
10587 breakpoint.c.
10588 * arch-utils.h (default_program_breakpoint_here_p): Moved from
10589 breakpoint.h
10590 * breakpoint.c (bp_loc_is_permanent): Changed return type to bool and
10591 call gdbarch_program_breakpoint_here_p.
10592 (program_breakpoint_here): Moved to arch-utils.c, renamed to
10593 default_program_breakpoint_here_p, changed return type to bool and
10594 simplified.
10595 * breakpoint.h (program_breakpoint_here): Moved prototype to
10596 arch-utils.h, renamed to default_program_breakpoint_here_p and changed
10597 return type to bool.
10598 * gdbarch.c: Regenerate.
10599 * gdbarch.h: Regenerate.
10600 * gdbarch.sh (program_breakpoint_here_p): New method.
10601 * infrun.c (handle_signal_stop): Call
10602 gdbarch_program_breakpoint_here_p.
10603
10604 2020-01-26 Tom Tromey <tom@tromey.com>
10605
10606 * ctfread.c (struct ctf_fp_info): Reindent.
10607 (_initialize_ctfread): Remove.
10608
10609 2020-01-26 Tom Tromey <tom@tromey.com>
10610
10611 * psymtab.c (partial_map_expand_apply)
10612 (psym_find_pc_sect_compunit_symtab, psym_lookup_symbol)
10613 (psymtab_to_symtab, psym_find_last_source_symtab, dump_psymtab)
10614 (psym_print_stats, psym_expand_symtabs_for_function)
10615 (psym_map_symbol_filenames, psym_map_matching_symbols)
10616 (psym_expand_symtabs_matching)
10617 (partial_symtab::read_dependencies, maintenance_info_psymtabs)
10618 (maintenance_check_psymtabs): Use new methods.
10619 * psympriv.h (struct partial_symtab) <readin_p,
10620 get_compunit_symtab>: New methods.
10621 <readin, compunit_symtab>: Remove members.
10622 (struct standard_psymtab): New.
10623 (struct legacy_psymtab): Derive from standard_psymtab.
10624 * dwarf2read.h (struct dwarf2_psymtab): Derive from
10625 standard_psymtab.
10626 * ctfread.c (struct ctf_psymtab): Derive from standard_psymtab.
10627
10628 2020-01-26 Tom Tromey <tom@tromey.com>
10629
10630 * xcoffread.c (xcoff_psymtab_to_symtab_1): Call
10631 read_dependencies. Add assert.
10632 * psymtab.c (partial_symtab::read_dependencies): New method.
10633 * psympriv.h (struct partial_symtab) <read_dependencies>: New
10634 method.
10635 * mdebugread.c (psymtab_to_symtab_1): Call read_dependencies.
10636 * dwarf2read.c (dwarf2_psymtab::expand_psymtab): Call
10637 read_dependencies.
10638 * dbxread.c (dbx_psymtab_to_symtab_1): Call read_dependencies.
10639 Add assert.
10640
10641 2020-01-26 Tom Tromey <tom@tromey.com>
10642
10643 * xcoffread.c (xcoff_psymtab_to_symtab_1): Change argument order.
10644 Call expand_psymtab.
10645 (xcoff_read_symtab): Call expand_psymtab.
10646 (xcoff_start_psymtab, xcoff_end_psymtab): Set
10647 legacy_expand_psymtab.
10648 * psympriv.h (struct partial_symtab) <expand_psymtab>: New
10649 method.
10650 (struct legacy_psymtab) <expand_psymtab>: Implement.
10651 <legacy_expand_psymtab>: New member.
10652 * mdebugread.c (mdebug_read_symtab): Call expand_psymtab.
10653 (parse_partial_symbols): Set legacy_expand_psymtab.
10654 (psymtab_to_symtab_1): Change argument order. Call
10655 expand_psymtab.
10656 (new_psymtab): Set legacy_expand_psymtab.
10657 * dwarf2read.h (struct dwarf2_psymtab) <expand_psymtab>: Declare.
10658 * dwarf2read.c (dwarf2_psymtab::read_symtab): Call
10659 expand_psymtab.
10660 (dwarf2_psymtab::expand_psymtab): Rename from
10661 psymtab_to_symtab_1. Call expand_psymtab.
10662 * dbxread.c (start_psymtab): Set legacy_expand_psymtab.
10663 (dbx_end_psymtab): Likewise.
10664 (dbx_psymtab_to_symtab_1): Change argument order. Call
10665 expand_psymtab.
10666 (dbx_read_symtab): Call expand_psymtab.
10667 * ctfread.c (struct ctf_psymtab) <expand_psymtab>: Declare.
10668 (ctf_psymtab::expand_psymtab): Rename from psymtab_to_symtab.
10669 (ctf_psymtab::read_symtab): Call expand_psymtab.
10670
10671 2020-01-26 Tom Tromey <tom@tromey.com>
10672
10673 * xcoffread.c (xcoff_read_symtab): Remove prints. Add assert.
10674 * psymtab.c (psymtab_to_symtab): Print verbose "Reading"
10675 messages.
10676 * mdebugread.c (mdebug_read_symtab): Remove prints.
10677 * dwarf2read.c (dwarf2_psymtab::read_symtab): Remove prints. Add
10678 assert.
10679 * dbxread.c (dbx_read_symtab): Remove prints. Add assert.
10680
10681 2020-01-26 Tom Tromey <tom@tromey.com>
10682
10683 * xcoffread.c (this_symtab_psymtab, read_xcoff_symtab)
10684 (xcoff_psymtab_to_symtab_1, xcoff_read_symtab)
10685 (xcoff_start_psymtab, xcoff_end_psymtab, scan_xcoff_symtab): Use
10686 legacy_symtab.
10687 * stabsread.h (dbx_end_psymtab): Use legacy_symtab.
10688 * psymtab.c (psymtab_to_symtab): Call method.
10689 (dump_psymtab): Update.
10690 * psympriv.h (struct partial_symtab): Add virtual destructor.
10691 <read_symtab>: New method.
10692 (struct legacy_symtab): New.
10693 * mdebugread.c (mdebug_read_symtab): Use legacy_psymtab.
10694 (struct pst_map) <pst>: Now a legacy_psymtab.
10695 (parse_procedure, parse_partial_symbols, psymtab_to_symtab_1)
10696 (new_psymtab): Use legacy_psymtab.
10697 * dwarf2read.h (struct dwarf2_psymtab): New.
10698 (struct dwarf2_per_cu_data) <psymtab>: Use it.
10699 * dwarf2read.c (dwarf2_create_include_psymtab)
10700 (dwarf2_build_include_psymtabs, create_type_unit_group)
10701 (create_partial_symtab, process_psymtab_comp_unit_reader)
10702 (build_type_psymtabs_reader, build_type_psymtab_dependencies)
10703 (set_partial_user): Use dwarf2_psymtab.
10704 (dwarf2_psymtab::read_symtab): Rename from dwarf2_read_symtab.
10705 (psymtab_to_symtab_1, process_full_comp_unit)
10706 (process_full_type_unit, dwarf2_ranges_read)
10707 (dwarf2_get_pc_bounds, psymtab_include_file_name)
10708 (dwarf_decode_lines): Use dwarf2_psymtab.
10709 * dwarf-index-write.c (psym_index_map): Use dwarf2_psymtab.
10710 (add_address_entry_worker, write_one_signatured_type)
10711 (recursively_count_psymbols, recursively_write_psymbols)
10712 (write_one_signatured_type, psyms_seen_size, write_gdbindex)
10713 (write_debug_names): Likewise.
10714 * dbxread.c (struct header_file_location): Take a legacy_psymtab.
10715 <pst>: Now a legacy_psymtab.
10716 (find_corresponding_bincl_psymtab): Return a legacy_psymtab.
10717 (read_dbx_symtab, start_psymtab, dbx_end_psymtab)
10718 (dbx_psymtab_to_symtab_1, read_ofile_symtab): Use legacy_psymtab.
10719 * ctfread.c (struct ctf_psymtab): New.
10720 (ctf_start_symtab, ctf_end_symtab, psymtab_to_symtab): Take a
10721 ctf_psymtab.
10722 (ctf_psymtab::read_symtab): Rename from ctf_read_symtab.
10723 (create_partial_symtab): Return a ctf_psymtab.
10724 (scan_partial_symbols): Update.
10725
10726 2020-01-26 Tom Tromey <tom@tromey.com>
10727
10728 * xcoffread.c (xcoff_start_psymtab): Use new.
10729 * psymtab.c (partial_symtab::partial_symtab): New constructor,
10730 renamed from start_psymtab_common.
10731 * psympriv.h (struct partial_symtab): Add new constructor.
10732 (start_psymtab_common): Don't declare.
10733 * mdebugread.c (parse_partial_symbols): Use new.
10734 * dwarf2read.c (create_partial_symtab): Use new.
10735 * dbxread.c (start_psymtab): Use new.
10736 * ctfread.c (create_partial_symtab): Use new.
10737
10738 2020-01-26 Tom Tromey <tom@tromey.com>
10739
10740 * xcoffread.c (xcoff_end_psymtab): Use new.
10741 * psymtab.c (start_psymtab_common): Use new.
10742 (partial_symtab::partial_symtab): Rename from allocate_psymtab.
10743 Update.
10744 * psympriv.h (struct partial_symtab): Add parameters to
10745 constructor. Don't inline.
10746 (allocate_psymtab): Don't declare.
10747 * mdebugread.c (new_psymtab): Use new.
10748 * dwarf2read.c (dwarf2_create_include_psymtab): Use new.
10749 * dbxread.c (dbx_end_psymtab): Use new.
10750
10751 2020-01-26 Tom Tromey <tom@tromey.com>
10752
10753 * psymtab.h (class psymtab_storage) <install_psymtab>: Rename from
10754 allocate_psymtab. Update documentation.
10755 * psymtab.c (psymtab_storage::install_psymtab): Rename from
10756 allocate_psymtab. Do not use new.
10757 (allocate_psymtab): Use new. Update.
10758
10759 2020-01-26 Tom Tromey <tom@tromey.com>
10760
10761 * xcoffread.c (xcoff_psymtab_to_symtab_1): Update.
10762 * psymtab.c (psym_print_stats): Update.
10763 * psympriv.h (struct partial_symtab) <readin,
10764 psymtabs_addrmap_supported, anonymous>: Now bool.
10765 * mdebugread.c (psymtab_to_symtab_1): Update.
10766 * dwarf2read.c (create_type_unit_group, create_partial_symtab)
10767 (build_type_psymtabs_reader, psymtab_to_symtab_1)
10768 (process_full_comp_unit, process_full_type_unit): Update.
10769 * dbxread.c (dbx_psymtab_to_symtab_1): Update.
10770 * ctfread.c (psymtab_to_symtab): Update.
10771
10772 2020-01-26 Tom Tromey <tom@tromey.com>
10773
10774 * mdebugread.c (parse_partial_symbols): Use discard_psymtab.
10775 * psymtab.h (class psymtab_storage) <free_psymtabs>: Remove.
10776 * psymtab.c (psymtab_storage): Delete psymtabs.
10777 (psymtab_storage::allocate_psymtab): Use new.
10778 (psymtab_storage::discard_psymtab): Use delete.
10779 * psympriv.h (struct partial_symtab): Add constructor and
10780 initializers.
10781
10782 2020-01-26 Tom Tromey <tom@tromey.com>
10783
10784 * machoread.c: Do not include psympriv.h.
10785
10786 2020-01-25 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10787
10788 * NEWS: Mention the new option and the set/show commands.
10789
10790 2020-01-25 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10791
10792 * exec.c (exec_file_mismatch_names, exec_file_mismatch_mode)
10793 (show_exec_file_mismatch_command, set_exec_file_mismatch_command)
10794 (validate_exec_file): New variables, enums, functions.
10795 (exec_file_locate_attach, print_section_info): Style the filenames.
10796 (_initialize_exec): Install show_exec_file_mismatch_command and
10797 set_exec_file_mismatch_command.
10798 * gdbcore.h (validate_exec_file): Declare.
10799 * infcmd.c (attach_command): Call validate_exec_file.
10800 * remote.c ( remote_target::remote_add_inferior): Likewise.
10801
10802 2020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
10803
10804 * frame.c (find_frame_sal): Move call to get_next_frame into more
10805 inner scope.
10806 * inline-frame.c (inilne_state) <inline_state>: Update argument
10807 types.
10808 (inilne_state) <skipped_symbol>: Rename to...
10809 (inilne_state) <skipped_symbols>: ...this, and change to a vector.
10810 (skip_inline_frames): Build vector of skipped symbols and use this
10811 to reate the inline_state.
10812 (inline_skipped_symbol): Add a comment and some assertions, fetch
10813 skipped symbol from the list.
10814
10815 2020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
10816
10817 * buildsym.c (lte_is_less_than): Delete.
10818 (buildsym_compunit::end_symtab_with_blockvector): Create local
10819 lambda function to sort line table entries, and use
10820 std::stable_sort instead of std::sort.
10821 * symtab.c (find_pc_sect_line): Skip backward over end of sequence
10822 markers when looking for a previous line.
10823
10824 2020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
10825
10826 * dwarf2read.c (lnp_state_machine::record_line): Include
10827 end_sequence parameter in debug print out. Record the line if we
10828 are at an end_sequence marker even if it's not the start of a
10829 statement.
10830 * symmisc.c (maintenance_print_one_line_table): Print end of
10831 sequence markers with 'END' not '0'.
10832
10833 2020-01-24 Pedro Alves <palves@redhat.com>
10834
10835 PR gdb/25410
10836 * thread.c (scoped_restore_current_thread::restore): Use
10837 switch_to_inferior_no_thread.
10838 * exec.c: Include "progspace-and-thread.h".
10839 (add_target_sections, remove_target_sections):
10840 scoped_restore_current_pspace_and_thread instead of
10841 scoped_restore_current_thread.
10842 * infrun.c (handle_vfork_child_exec_or_exit): Assign the pspace
10843 and aspace to the inferior before calling clone_program_space.
10844 Remove stale comment.
10845
10846 2020-01-24 Christian Biesinger <cbiesinger@google.com>
10847
10848 * arm-nbsd-nat.c (arm_nbsd_nat_target::fetch_registers): Rename to...
10849 (arm_netbsd_nat_target::fetch_registers): ...this.
10850 (arm_nbsd_nat_target::store_registers): Rename to...
10851 (arm_netbsd_nat_target::store_registers): ...this.
10852
10853 2020-01-24 Christian Biesinger <cbiesinger@google.com>
10854
10855 * arm-nbsd-nat.c: Define _KERNTYPES to get the declaration of
10856 register_t.
10857
10858 2020-01-24 Christian Biesinger <cbiesinger@google.com>
10859
10860 * aarch64-fbsd-tdep.c (aarch64_fbsd_iterate_over_regset_sections):
10861 Update comment.
10862 * aarch64-linux-tdep.c (aarch64_linux_iterate_over_regset_sections):
10863 Likewise.
10864 * arm-fbsd-tdep.c (arm_fbsd_iterate_over_regset_sections): Likewise.
10865 * gdbcore.h (deprecated_add_core_fns): Update comment to point to
10866 the correct replacement (iterate_over_regset_sections).
10867 * riscv-fbsd-tdep.c (riscv_fbsd_iterate_over_regset_sections):
10868 Update comment.
10869
10870 2020-01-24 Graham Markall <graham.markall@embecosm.com>
10871
10872 PR gdb/23718
10873 * gdb/python/python.c (execute_gdb_command): Call
10874 async_enable_stdin in catch block.
10875
10876 2020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
10877
10878 * event-loop.c (start_event_loop): Wrap async_enable_stdin with
10879 SWITCH_THRU_ALL_UIS.
10880
10881 2020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
10882
10883 PR tui/9765
10884 * minsyms.c (lookup_minimal_symbol_by_pc_section): Update header
10885 comment, add extra parameter, and update to store previous symbol
10886 when appropriate.
10887 * minsyms.h (lookup_minimal_symbol_by_pc_section): Update comment,
10888 add extra parameter.
10889 * tui/tui-disasm.c (tui_disassemble): Update header comment,
10890 remove unneeded parameter, add try/catch around gdb_print_insn,
10891 rewrite to add items to asm_lines vector.
10892 (tui_find_backward_disassembly_start_address): New function.
10893 (tui_find_disassembly_address): Updated throughout.
10894 (tui_disasm_window::set_contents): Update for changes to
10895 tui_disassemble.
10896 (tui_disasm_window::do_scroll_vertical): No need to adjust the
10897 number of lines to scroll.
10898
10899 2020-01-23 Simon Marchi <simon.marchi@polymtl.ca>
10900
10901 * objfiles.h (ALL_OBJFILE_OSECTIONS): Move up.
10902 (SECT_OFF_DATA): Likewise.
10903 (SECT_OFF_RODATA): Likewise.
10904 (SECT_OFF_TEXT): Likewise.
10905 (SECT_OFF_BSS): Likewise.
10906 (struct objfile) <text_section_offset, data_section_offset>: New
10907 methods.
10908 * amd64-windows-tdep.c (amd64_windows_find_unwind_info): Use
10909 objfile::text_section_offset.
10910 * coff-pe-read.c (add_pe_forwarded_sym): Likewise.
10911 * coffread.c (coff_symtab_read): Likewise.
10912 (enter_linenos): Likewise.
10913 (process_coff_symbol): Likewise.
10914 * ctfread.c (get_objfile_text_range): Likewise.
10915 * dtrace-probe.c (dtrace_probe::get_relocated_address):
10916 Use objfile::data_section_offset.
10917 * dwarf2-frame.c (execute_cfa_program): Use
10918 objfile::text_section_offset.
10919 (dwarf2_frame_find_fde): Likewise.
10920 * dwarf2read.c (create_addrmap_from_index): Likewise.
10921 (create_addrmap_from_aranges): Likewise.
10922 (dw2_find_pc_sect_compunit_symtab): Likewise.
10923 (process_psymtab_comp_unit_reader): Likewise.
10924 (add_partial_symbol): Likewise.
10925 (add_partial_subprogram): Likewise.
10926 (process_full_comp_unit): Likewise.
10927 (read_file_scope): Likewise.
10928 (read_func_scope): Likewise.
10929 (read_lexical_block_scope): Likewise.
10930 (read_call_site_scope): Likewise.
10931 (dwarf2_rnglists_process): Likewise.
10932 (dwarf2_ranges_process): Likewise.
10933 (dwarf2_ranges_read): Likewise.
10934 (dwarf_decode_lines_1): Likewise.
10935 (new_symbol): Likewise.
10936 (dwarf2_fetch_die_loc_sect_off): Likewise.
10937 (dwarf2_per_cu_text_offset): Likewise.
10938 * hppa-bsd-tdep.c (hppabsd_find_global_pointer): Likewise.
10939 * hppa-tdep.c (read_unwind_info): Likewise.
10940 * ia64-tdep.c (ia64_find_unwind_table): Likewise.
10941 * psympriv.h (struct partial_symtab): Likewise.
10942 * psymtab.c (find_pc_sect_psymtab): Likewise.
10943 * solib-svr4.c (enable_break): Likewise.
10944 * stap-probe.c (relocate_address): Use
10945 objfile::data_section_offset.
10946 * xcoffread.c (enter_line_range): Use
10947 objfile::text_section_offset.
10948 (read_xcoff_symtab): Likewise.
10949
10950 2020-01-23 Simon Marchi <simon.marchi@efficios.com>
10951
10952 * darwin-nat.c (darwin_nat_target::wait_1): Move `inf`
10953 declaration to narrower scopes.
10954
10955 2020-01-23 Simon Marchi <simon.marchi@efficios.com>
10956
10957 * darwin-nat.h (struct darwin_exception_msg, enum
10958 darwin_msg_state, struct darwin_thread_info, darwin_thread_t):
10959 Move up.
10960 (class darwin_nat_target) <wait_1, check_new_threads,
10961 decode_exception_message, decode_message, stop_inferior,
10962 init_thread_list, ptrace_him, cancel_breakpoint>: Declare.
10963 * darwin-nat.c (darwin_check_new_threads): Rename to...
10964 (darwin_nat_target::check_new_threads): ... this.
10965 (darwin_suspend_inferior_it): Remove.
10966 (darwin_decode_exception_message): Rename to...
10967 (darwin_nat_target::decode_exception_message): ... this.
10968 (darwin_nat_target::resume): Pass target to find_inferior_ptid.
10969 (darwin_decode_message): Rename to...
10970 (darwin_nat_target::decode_message): ... this.
10971 (cancel_breakpoint): Rename to...
10972 (darwin_nat_target::cancel_breakpoint): ... this.
10973 (darwin_wait): Rename to...
10974 (darwin_nat_target::wait_1): ... this. Use range-based for loop
10975 instead of iterate_over_inferiors.
10976 (darwin_nat_target::wait): Call wait_1 instead of darwin_wait.
10977 (darwin_stop_inferior): Rename to...
10978 (darwin_nat_target::stop_inferior): ... this.
10979 (darwin_nat_target::kill): Call wait_1 instead of darwin_wait.
10980 (darwin_init_thread_list): Rename to...
10981 (darwin_nat_target::init_thread_list): ... this.
10982 (darwin_ptrace_him): Rename to...
10983 (darwin_nat_target::ptrace_him): ... this.
10984 (darwin_nat_target::create_inferior): Pass lambda function to
10985 fork_inferior.
10986 (darwin_nat_target::detach): Call stop_inferior instead of
10987 darwin_stop_inferior.
10988 * fork-inferior.h (fork_inferior): Change init_trace_fun
10989 parameter to gdb::function_view.
10990 * fork-inferior.c (fork_inferior): Likewise.
10991
10992 2020-01-23 Hannes Domani <ssbssa@yahoo.de>
10993
10994 * i386-cygwin-tdep.c (core_process_module_section): Update.
10995 * windows-nat.c (struct lm_info_windows): Add text_offset.
10996 (windows_xfer_shared_libraries): Update.
10997 * windows-tdep.c (windows_xfer_shared_library):
10998 Add text_offset_cached argument.
10999 * windows-tdep.h (windows_xfer_shared_library): Update.
11000
11001 2020-01-21 Simon Marchi <simon.marchi@efficios.com>
11002
11003 * gdbarch.sh: Add declaration for _initialize_gdbarch.
11004
11005 2020-01-21 Simon Marchi <simon.marchi@efficios.com>
11006
11007 * remote-sim.c (check_for_duplicate_sim_descriptor): Remove.
11008 (get_sim_inferior_data): Remove use of iterate_over_inferiors,
11009 replace with range-based for.
11010 (gdbsim_interrupt_inferior): Remove.
11011 (gdbsim_target::interrupt): Replace iterate_over_inferiors use
11012 with a range-based for. Inline code from
11013 gdbsim_interrupt_inferior.
11014
11015 2020-01-21 Simon Marchi <simon.marchi@efficios.com>
11016
11017 * infrun.c (proceed): Fix indentation.
11018
11019 2020-01-21 Tom Tromey <tromey@adacore.com>
11020
11021 * source-cache.c (source_cache::ensure): Call ext_lang_colorize.
11022 * python/python.c (python_extension_ops): Update.
11023 (gdbpy_colorize): New function.
11024 * python/lib/gdb/__init__.py (colorize): New function.
11025 * extension.h (ext_lang_colorize): Declare.
11026 * extension.c (ext_lang_colorize): New function.
11027 * extension-priv.h (struct extension_language_ops) <colorize>: New
11028 member.
11029 * cli/cli-style.c (_initialize_cli_style): Update help text.
11030
11031 2020-01-21 Luis Machado <luis.machado@linaro.org>
11032
11033 * aarch64-tdep.c (struct aarch64_displaced_step_closure)
11034 <cond>: Change type to bool.
11035 (aarch64_displaced_step_b_cond): Update cond to use bool type.
11036 (aarch64_displaced_step_cb): Likewise.
11037 (aarch64_displaced_step_tb): Likewise.
11038
11039 2020-01-21 Luis Machado <luis.machado@linaro.org>
11040
11041 * aarch64-tdep.c (aarch64_displaced_step_fixup): Add more debugging
11042 output.
11043
11044 2020-01-21 Luis Machado <luis.machado@linaro.org>
11045
11046 * aarch64-tdep.c (struct aarch64_displaced_step_closure )
11047 <pc_adjust>: Adjust the documentation.
11048 (aarch64_displaced_step_fixup): Check if PC really moved before
11049 adjusting it.
11050
11051 2020-01-19 Tom Tromey <tom@tromey.com>
11052
11053 * disasm.c (~gdb_disassembler): New destructor.
11054 (gdb_buffered_insn_length): Call disassemble_free_target.
11055 * disasm.h (class gdb_disassembler): Declare destructor. Use
11056 DISABLE_COPY_AND_ASSIGN.
11057
11058 2020-01-19 Tom Tromey <tom@tromey.com>
11059
11060 * dwarf2read.c (abbrev_table_up): Move typedef earlier.
11061 (die_reader_func_ftype): Remove.
11062 (cutu_reader): New class.
11063 (dw2_get_file_names_reader): Remove "data" parameter.
11064 (dw2_get_file_names): Use cutu_reader.
11065 (create_debug_type_hash_table): Update.
11066 (read_cutu_die_from_dwo): Update comment.
11067 (lookup_dwo_unit): Add dwo_name parameter.
11068 (cutu_reader::init_tu_and_read_dwo_dies): Now a method. Remove
11069 die_reader_func_ftype and data parameters.
11070 (cutu_reader::cutu_reader): Rename from init_cutu_and_read_dies.
11071 Remove die_reader_func_ftype and data parameters.
11072 (~cutu_reader): New; from init_cutu_and_read_dies.
11073 (cutu_reader::cutu_reader): Rename from
11074 init_cutu_and_read_dies_no_follow. Remove die_reader_func_ftype
11075 and data parameters.
11076 (init_cutu_and_read_dies_simple): Remove.
11077 (struct process_psymtab_comp_unit_data): Remove.
11078 (process_psymtab_comp_unit_reader): Remove data parameter; add
11079 want_partial_unit and pretend_language parameters.
11080 (process_psymtab_comp_unit): Use cutu_reader.
11081 (build_type_psymtabs_reader): Remove data parameter.
11082 (build_type_psymtabs_1): Use cutu_reader.
11083 (process_skeletonless_type_unit): Likewise.
11084 (load_partial_comp_unit_reader): Remove.
11085 (load_partial_comp_unit): Use cutu_reader.
11086 (load_full_comp_unit_reader): Remove.
11087 (load_full_comp_unit): Use cutu_reader.
11088 (struct create_dwo_cu_data): Remove.
11089 (create_dwo_cu_reader): Remove datap parameter; add dwo_file and
11090 dwo_unit parameters.
11091 (create_cus_hash_table): Use cutu_reader.
11092 (struct dwarf2_read_addr_index_data): Remove.
11093 (dwarf2_read_addr_index_reader): Remove.
11094 (dwarf2_read_addr_index): Use cutu_reader.
11095 (read_signatured_type_reader): Remove.
11096 (read_signatured_type): Use cutu_reader.
11097
11098 2020-01-19 Tom Tromey <tom@tromey.com>
11099
11100 * tui/tui.c (tui_show_assembly): Use tui_suppress_output.
11101 * tui/tui-wingeneral.h (class tui_suppress_output): New.
11102 (tui_wrefresh): Declare.
11103 * tui/tui-wingeneral.c (suppress_output): New global.
11104 (tui_suppress_output, ~tui_suppress_output): New constructor and
11105 destructor.
11106 (tui_wrefresh): New function.
11107 (tui_gen_win_info::refresh_window): Use tui_wrefresh.
11108 (tui_gen_win_info::make_window): Call wnoutrefresh when needed.
11109 * tui/tui-regs.h (struct tui_data_window) <no_refresh>: Declare
11110 method.
11111 * tui/tui-regs.c (tui_data_window::erase_data_content): Call
11112 tui_wrefresh.
11113 (tui_data_window::no_refresh): New method.
11114 (tui_data_item_window::refresh_window): Call tui_wrefresh.
11115 (tui_reg_command): Use tui_suppress_output
11116 * tui/tui-layout.c (tui_set_layout): Use tui_suppress_output.
11117 * tui/tui-data.h (struct tui_gen_win_info) <no_refresh>: New
11118 method.
11119 * tui/tui-command.c (tui_refresh_cmd_win): Call tui_wrefresh.
11120
11121 2020-01-19 Tom Tromey <tom@tromey.com>
11122
11123 * tui/tui-winsource.c (tui_update_source_windows_with_line):
11124 Handle case where symtab is null.
11125
11126 2020-01-19 Simon Marchi <simon.marchi@polymtl.ca>
11127
11128 * linux-fork.c (one_fork_p): Simplify.
11129
11130 2020-01-17 Simon Marchi <simon.marchi@efficios.com>
11131
11132 * top.c (struct qt_args): Remove.
11133 (kill_or_detach): Change return type to void, replace `void *`
11134 parameter with a proper one.
11135 (print_inferior_quit_action): Likewise.
11136 (quit_confirm): Use range-based for loop to iterate over inferiors.
11137 (quit_force): Likewise.
11138
11139 2020-01-17 Simon Marchi <simon.marchi@efficios.com>
11140
11141 * mi/mi-main.c (run_one_inferior): Change return type to void, replace
11142 `void *` parameter with proper parameters.
11143 (mi_cmd_exec_run): Use range-based loop to iterate over inferiors.
11144 (print_one_inferior): Change return type to void, replace `void *`
11145 parameter with proper parameters.
11146 (mi_cmd_list_thread_groups): Use range-based loop to iterate over
11147 inferiors.
11148 (get_other_inferior): Remove.
11149 (mi_cmd_remove_inferior): Use range-based loop to iterate over
11150 inferiors.
11151
11152 2020-01-17 Simon Marchi <simon.marchi@efficios.com>
11153
11154 * mi/mi-interp.c (report_initial_inferior): Remove.
11155 (mi_interp::init): Use range-based for to iterate over inferiors.
11156
11157 2020-01-17 Simon Marchi <simon.marchi@efficios.com>
11158
11159 * python/py-inferior.c (build_inferior_list): Remove.
11160 (gdbpy_ref): Use range-based for loop to iterate over inferiors.
11161
11162 2020-01-16 Christian Biesinger <cbiesinger@google.com>
11163
11164 * btrace.c (btrace_compute_ftrace_1): Fix spelling error (Unkown).
11165 (btrace_stitch_trace): Likewise.
11166 * charset.c (intermediate_encoding): Likewise (vaild).
11167 * nat/linux-btrace.c (linux_read_pt): Likewise (Unkown).
11168 * python/py-record-btrace.c (struct PyMethodDef): Likewise (occurences).
11169 * record-btrace.c (record_btrace_print_conf): Likewise (unkown).
11170
11171 2020-01-16 Hannes Domani <ssbssa@yahoo.de>
11172
11173 * windows-tdep.c (windows_get_tlb_type):
11174 Add rtl_user_process_parameters type.
11175
11176 2020-01-16 Pedro Alves <palves@redhat.com>
11177 Norbert Lange <nolange79@gmail.com>
11178
11179 PR build/24805
11180 * gdbsupport/gdb_proc_service.h (PS_EXPORT): New.
11181 (ps_get_thread_area, ps_getpid, ps_lcontinue, ps_lgetfpregs)
11182 (ps_lgetregs, ps_lsetfpregs, ps_lsetregs, ps_lstop, ps_pcontinue)
11183 (ps_pdread, ps_pdwrite, ps_pglobal_lookup, ps_pstop, ps_ptread)
11184 (ps_ptwrite, ps_lgetxregs, ps_lgetxregsize, ps_lsetxregs)
11185 (ps_plog): Redeclare exported functions with default visibility.
11186
11187 2020-01-16 Nitika Achra <Nitika.Achra@amd.com>
11188
11189 * dwarf2loc.c (decode_debug_loclists_addresses): Handle
11190 DW_LLE_base_addressx, DW_LLE_startx_length, DW_LLE_start_length.
11191
11192 2020-01-15 Simon Marchi <simon.marchi@efficios.com>
11193
11194 * infcmd.c (post_create_inferior): Use get_thread_regcache
11195 instead of get_current_regcache.
11196
11197 2020-01-14 Tom Tromey <tom@tromey.com>
11198
11199 PR symtab/12535:
11200 * python/python.c (gdbpy_decode_line): Treat empty string the same
11201 as no argument.
11202
11203 2020-01-14 Tom Tromey <tom@tromey.com>
11204
11205 * Makefile.in (CLIBS): Remove second use of $(LIBIBERTY).
11206
11207 2020-01-14 Tom Tromey <tom@tromey.com>
11208
11209 * nat/linux-btrace.c: Don't include <config.h>.
11210 * nat/linux-ptrace.c: Don't include <config.h>.
11211 * nat/x86-linux-dregs.c: Don't include <config.h>.
11212
11213 2020-01-14 Tom Tromey <tom@tromey.com>
11214
11215 * configure: Rebuild.
11216 * configure.ac: Move many checks to ../gdbsupport/common.m4.
11217
11218 2020-01-14 Tom Tromey <tom@tromey.com>
11219
11220 * nat/x86-linux-dregs.c: Include configh.h.
11221 * nat/linux-ptrace.c: Include configh.h.
11222 * nat/linux-btrace.c: Include configh.h.
11223 * defs.h: Include config.h, bfd.h.
11224 * configure.ac: Don't source common.host.
11225 (CONFIG_OBS, CONFIG_SRCS): Remove gdbsupport files.
11226 * configure: Rebuild.
11227 * acinclude.m4: Update path.
11228 * Makefile.in (SUPPORT, LIBSUPPORT, INCSUPPORT): New variables.
11229 (CONFIG_SRC_SUBDIR): Remove gdbsupport.
11230 (INTERNAL_CFLAGS_BASE): Add INCSUPPORT.
11231 (CLIBS): Add LIBSUPPORT.
11232 (CDEPS): Likewise.
11233 (COMMON_SFILES): Remove gdbsupport files.
11234 (HFILES_NO_SRCDIR): Likewise.
11235 (stamp-version): Update path to create-version.sh.
11236 (ALLDEPFILES): Remove gdbsupport files.
11237
11238 2020-01-14 Tom Tromey <tom@tromey.com>
11239
11240 * gdbsupport/common.m4 (GDB_AC_COMMON): Define WIN32APILIBS and
11241 USE_WIN32API when needed.
11242 * configure.ac (USE_WIN32API): Don't define.
11243 (WIN32LIBS): Use WIN32APILIBS.
11244 * configure: Rebuild.
11245
11246 2020-01-14 Tom Tromey <tom@tromey.com>
11247
11248 * configure: Rebuild.
11249 * gdbsupport/common.m4 (GDB_AC_COMMON): Fix indentation.
11250
11251 2020-01-14 Bernd Edlinger <bernd.edlinger@hotmail.de>
11252
11253 * skip.c (skip_function_command): Make skip w/o arguments use the
11254 name of the inlined function if pc is inside any inlined function.
11255
11256 2020-01-14 Luis Machado <luis.machado@linaro.org>
11257
11258 * inf-ptrace.c (inf_ptrace_target::resume): Update comments.
11259 * infrun.c (resume_1): Likewise.
11260 (handle_inferior_event): Remove stale comment.
11261 * linux-nat.c (linux_nat_target::resume): Update comments.
11262 (save_stop_reason): Likewise.
11263 (linux_nat_filter_event): Likewise.
11264 * linux-nat.h (struct lwp_info) <stop_pc>, <stop_reason>: Likewise.
11265
11266 2020-01-13 Andrew Burgess <andrew.burgess@embecosm.com>
11267
11268 * elfread.c (record_minimal_symbol): Set section index to 0 for
11269 non-allocatable sections.
11270
11271
11272 2020-01-13 Ali Tamur <tamur@google.com>
11273
11274 * dwarf2read.c (dwarf2_debug_sections): Add debug_str_offsets sections.
11275 (dwarf2_cu): Add str_offsets_base field. Change the type of addr_base
11276 to gdb::optional. Update comments.
11277 (dwo_file): Update comments.
11278 (read_attribute): Update API to take an additional out parameter,
11279 need_reprocess. This is used to mark attributes that need other
11280 attributes (e.g. str_offsets_base) for correct computation which may not
11281 have been read yet.
11282 (read_attribute_reprocess): New function declaration.
11283 (read_addr_index): Likewise.
11284 (read_dwo_str_index): Likewise.
11285 (read_stub_str_index): Likewise.
11286 (dwarf2_per_objfile::locate_sections): Handle debug_str_offsets section.
11287 (lookup_addr_base): New function definition.
11288 (lookup_ranges_base): Likewise.
11289 (read_cutu_die_from_dwo): Use the new functions: lookup_addr_base,
11290 lookup_ranges_base.
11291 (init_cutu_and_read_dies): Update comments.
11292 (init_cutu_and_read_dies_no_follow): Change API to take parent compile
11293 unit. This is used to inherit parent's str_offsets_base and addr_base.
11294 Update comments.
11295 (init_cutu_and_read_dies_simple): Reflect API changes.
11296 (skip_one_die): Reflect API changes. Handle DW_FORM_rnglistx.
11297 (create_cus_hash_table): Change API to take parent compile unit.
11298 Reflect API changes.
11299 (open_and_init_dwo_file): Reflect API changes.
11300 (dwarf2_get_pc_bounds): Update comments.
11301 (dwarf2_record_block_ranges): Likewise.
11302 (read_full_die_1): Change implementation to reprocess attributes that
11303 need str_offsets_base and addr_base.
11304 (partial_die_info::read): Likewise.
11305 (read_attribute_reprocess): New function definition.
11306 (read_attribute_value): Change API to take an additional out parameter,
11307 need_reprocess. Handle DW_FORM_rnglistx. No longer trigger an error
11308 when a non-dwo compile unit has index based attributes.
11309 (read_attribute): Reflect API changes.
11310 (read_addr_index_1): Reflect API changes. Update comments.
11311 (dwarf2_read_addr_index_data): Reflect API changes.
11312 (dwarf2_read_addr_index): Likewise.
11313 (read_str_index): Change API and implementation. This becomes a helper
11314 to be used by the new string index related methods. Update error
11315 message and comments.
11316 (read_dwo_str_index): New function definition.
11317 (read_stub_str_index): Likewise.
11318 * dwarf2read.h (dwarf2_per_objfile): Add str_offsets field.
11319 * symfile.h (dwarf2_debug_sections): Likewise.
11320 * xcoffread.c (dwarf2_debug_sections): Likewise.
11321
11322 2020-01-13 Simon Marchi <simon.marchi@efficios.com>
11323
11324 * gdbcore.h (struct core_fns) <core_read_registers>: Change
11325 core_reg_sect type to gdb_byte *.
11326 * arm-nbsd-nat.c (fetch_elfcore_registers): Likewise.
11327 * cris-tdep.c (fetch_core_registers): Likewise.
11328 * corelow.c (core_target::get_core_register_section): Change
11329 type of `contents` to gdb::byte_vector.
11330
11331 2020-01-13 Andrew Burgess <andrew.burgess@embecosm.com>
11332
11333 * tui/tui-wingeneral.c (box_win): Position the title in the center
11334 of the border.
11335
11336 2020-01-13 Simon Marchi <simon.marchi@polymtl.ca>
11337
11338 * corelow.c (core_target::get_core_register_section): Use
11339 std::vector instead of alloca.
11340
11341 2020-01-13 Simon Marchi <simon.marchi@efficios.com>
11342
11343 * warning.m4: Add -Wmissing-declarations to build_warnings.
11344 * configure: Re-generate.
11345
11346 2020-01-13 Simon Marchi <simon.marchi@efficios.com>
11347
11348 * python/python.c (init__gdb_module): Add declaration.
11349
11350 2020-01-13 Simon Marchi <simon.marchi@efficios.com>
11351
11352 * aarch64-fbsd-nat.c (_initialize_aarch64_fbsd_nat): Add declaration.
11353 * aarch64-fbsd-tdep.c (_initialize_aarch64_fbsd_tdep): Add declaration.
11354 * aarch64-linux-nat.c (_initialize_aarch64_linux_nat): Add declaration.
11355 * aarch64-linux-tdep.c (_initialize_aarch64_linux_tdep): Add declaration.
11356 * aarch64-newlib-tdep.c (_initialize_aarch64_newlib_tdep): Add declaration.
11357 * aarch64-tdep.c (_initialize_aarch64_tdep): Add declaration.
11358 * ada-exp.y (_initialize_ada_exp): Add declaration.
11359 * ada-lang.c (_initialize_ada_language): Add declaration.
11360 * ada-tasks.c (_initialize_tasks): Add declaration.
11361 * agent.c (_initialize_agent): Add declaration.
11362 * aix-thread.c (_initialize_aix_thread): Add declaration.
11363 * alpha-bsd-nat.c (_initialize_alphabsd_nat): Add declaration.
11364 * alpha-linux-nat.c (_initialize_alpha_linux_nat): Add declaration.
11365 * alpha-linux-tdep.c (_initialize_alpha_linux_tdep): Add declaration.
11366 * alpha-nbsd-tdep.c (_initialize_alphanbsd_tdep): Add declaration.
11367 * alpha-obsd-tdep.c (_initialize_alphaobsd_tdep): Add declaration.
11368 * alpha-tdep.c (_initialize_alpha_tdep): Add declaration.
11369 * amd64-darwin-tdep.c (_initialize_amd64_darwin_tdep): Add declaration.
11370 * amd64-dicos-tdep.c (_initialize_amd64_dicos_tdep): Add declaration.
11371 * amd64-fbsd-nat.c (_initialize_amd64fbsd_nat): Add declaration.
11372 * amd64-fbsd-tdep.c (_initialize_amd64fbsd_tdep): Add declaration.
11373 * amd64-linux-nat.c (_initialize_amd64_linux_nat): Add declaration.
11374 * amd64-linux-tdep.c (_initialize_amd64_linux_tdep): Add declaration.
11375 * amd64-nbsd-nat.c (_initialize_amd64nbsd_nat): Add declaration.
11376 * amd64-nbsd-tdep.c (_initialize_amd64nbsd_tdep): Add declaration.
11377 * amd64-obsd-nat.c (_initialize_amd64obsd_nat): Add declaration.
11378 * amd64-obsd-tdep.c (_initialize_amd64obsd_tdep): Add declaration.
11379 * amd64-sol2-tdep.c (_initialize_amd64_sol2_tdep): Add declaration.
11380 * amd64-tdep.c (_initialize_amd64_tdep): Add declaration.
11381 * amd64-windows-nat.c (_initialize_amd64_windows_nat): Add declaration.
11382 * amd64-windows-tdep.c (_initialize_amd64_windows_tdep): Add declaration.
11383 * annotate.c (_initialize_annotate): Add declaration.
11384 * arc-newlib-tdep.c (_initialize_arc_newlib_tdep): Add declaration.
11385 * arc-tdep.c (_initialize_arc_tdep): Add declaration.
11386 * arch-utils.c (_initialize_gdbarch_utils): Add declaration.
11387 * arm-fbsd-nat.c (_initialize_arm_fbsd_nat): Add declaration.
11388 * arm-fbsd-tdep.c (_initialize_arm_fbsd_tdep): Add declaration.
11389 * arm-linux-nat.c (_initialize_arm_linux_nat): Add declaration.
11390 * arm-linux-tdep.c (_initialize_arm_linux_tdep): Add declaration.
11391 * arm-nbsd-nat.c (_initialize_arm_netbsd_nat): Add declaration.
11392 * arm-nbsd-tdep.c (_initialize_arm_netbsd_tdep): Add declaration.
11393 * arm-obsd-tdep.c (_initialize_armobsd_tdep): Add declaration.
11394 * arm-pikeos-tdep.c (_initialize_arm_pikeos_tdep): Add declaration.
11395 * arm-symbian-tdep.c (_initialize_arm_symbian_tdep): Add declaration.
11396 * arm-tdep.c (_initialize_arm_tdep): Add declaration.
11397 * arm-wince-tdep.c (_initialize_arm_wince_tdep): Add declaration.
11398 * auto-load.c (_initialize_auto_load): Add declaration.
11399 * auxv.c (_initialize_auxv): Add declaration.
11400 * avr-tdep.c (_initialize_avr_tdep): Add declaration.
11401 * ax-gdb.c (_initialize_ax_gdb): Add declaration.
11402 * bfin-linux-tdep.c (_initialize_bfin_linux_tdep): Add declaration.
11403 * bfin-tdep.c (_initialize_bfin_tdep): Add declaration.
11404 * break-catch-sig.c (_initialize_break_catch_sig): Add declaration.
11405 * break-catch-syscall.c (_initialize_break_catch_syscall): Add declaration.
11406 * break-catch-throw.c (_initialize_break_catch_throw): Add declaration.
11407 * breakpoint.c (_initialize_breakpoint): Add declaration.
11408 * bsd-uthread.c (_initialize_bsd_uthread): Add declaration.
11409 * btrace.c (_initialize_btrace): Add declaration.
11410 * charset.c (_initialize_charset): Add declaration.
11411 * cli/cli-cmds.c (_initialize_cli_cmds): Add declaration.
11412 * cli/cli-dump.c (_initialize_cli_dump): Add declaration.
11413 * cli/cli-interp.c (_initialize_cli_interp): Add declaration.
11414 * cli/cli-logging.c (_initialize_cli_logging): Add declaration.
11415 * cli/cli-script.c (_initialize_cli_script): Add declaration.
11416 * cli/cli-style.c (_initialize_cli_style): Add declaration.
11417 * coff-pe-read.c (_initialize_coff_pe_read): Add declaration.
11418 * coffread.c (_initialize_coffread): Add declaration.
11419 * compile/compile-cplus-types.c (_initialize_compile_cplus_types): Add declaration.
11420 * compile/compile.c (_initialize_compile): Add declaration.
11421 * complaints.c (_initialize_complaints): Add declaration.
11422 * completer.c (_initialize_completer): Add declaration.
11423 * copying.c (_initialize_copying): Add declaration.
11424 * corefile.c (_initialize_core): Add declaration.
11425 * corelow.c (_initialize_corelow): Add declaration.
11426 * cp-abi.c (_initialize_cp_abi): Add declaration.
11427 * cp-namespace.c (_initialize_cp_namespace): Add declaration.
11428 * cp-support.c (_initialize_cp_support): Add declaration.
11429 * cp-valprint.c (_initialize_cp_valprint): Add declaration.
11430 * cris-linux-tdep.c (_initialize_cris_linux_tdep): Add declaration.
11431 * cris-tdep.c (_initialize_cris_tdep): Add declaration.
11432 * csky-linux-tdep.c (_initialize_csky_linux_tdep): Add declaration.
11433 * csky-tdep.c (_initialize_csky_tdep): Add declaration.
11434 * ctfread.c (_initialize_ctfread): Add declaration.
11435 * d-lang.c (_initialize_d_language): Add declaration.
11436 * darwin-nat-info.c (_initialize_darwin_info_commands): Add declaration.
11437 * darwin-nat.c (_initialize_darwin_nat): Add declaration.
11438 * dbxread.c (_initialize_dbxread): Add declaration.
11439 * dcache.c (_initialize_dcache): Add declaration.
11440 * disasm-selftests.c (_initialize_disasm_selftests): Add declaration.
11441 * disasm.c (_initialize_disasm): Add declaration.
11442 * dtrace-probe.c (_initialize_dtrace_probe): Add declaration.
11443 * dummy-frame.c (_initialize_dummy_frame): Add declaration.
11444 * dwarf-index-cache.c (_initialize_index_cache): Add declaration.
11445 * dwarf-index-write.c (_initialize_dwarf_index_write): Add declaration.
11446 * dwarf2-frame-tailcall.c (_initialize_tailcall_frame): Add declaration.
11447 * dwarf2-frame.c (_initialize_dwarf2_frame): Add declaration.
11448 * dwarf2expr.c (_initialize_dwarf2expr): Add declaration.
11449 * dwarf2loc.c (_initialize_dwarf2loc): Add declaration.
11450 * dwarf2read.c (_initialize_dwarf2_read): Add declaration.
11451 * elfread.c (_initialize_elfread): Add declaration.
11452 * exec.c (_initialize_exec): Add declaration.
11453 * extension.c (_initialize_extension): Add declaration.
11454 * f-lang.c (_initialize_f_language): Add declaration.
11455 * f-valprint.c (_initialize_f_valprint): Add declaration.
11456 * fbsd-nat.c (_initialize_fbsd_nat): Add declaration.
11457 * fbsd-tdep.c (_initialize_fbsd_tdep): Add declaration.
11458 * filesystem.c (_initialize_filesystem): Add declaration.
11459 * findcmd.c (_initialize_mem_search): Add declaration.
11460 * findvar.c (_initialize_findvar): Add declaration.
11461 * fork-child.c (_initialize_fork_child): Add declaration.
11462 * frame-base.c (_initialize_frame_base): Add declaration.
11463 * frame-unwind.c (_initialize_frame_unwind): Add declaration.
11464 * frame.c (_initialize_frame): Add declaration.
11465 * frv-linux-tdep.c (_initialize_frv_linux_tdep): Add declaration.
11466 * frv-tdep.c (_initialize_frv_tdep): Add declaration.
11467 * ft32-tdep.c (_initialize_ft32_tdep): Add declaration.
11468 * gcore.c (_initialize_gcore): Add declaration.
11469 * gdb-demangle.c (_initialize_gdb_demangle): Add declaration.
11470 * gdb_bfd.c (_initialize_gdb_bfd): Add declaration.
11471 * gdbarch-selftests.c (_initialize_gdbarch_selftests): Add declaration.
11472 * gdbarch.c (_initialize_gdbarch): Add declaration.
11473 * gdbtypes.c (_initialize_gdbtypes): Add declaration.
11474 * gnu-nat.c (_initialize_gnu_nat): Add declaration.
11475 * gnu-v2-abi.c (_initialize_gnu_v2_abi): Add declaration.
11476 * gnu-v3-abi.c (_initialize_gnu_v3_abi): Add declaration.
11477 * go-lang.c (_initialize_go_language): Add declaration.
11478 * go32-nat.c (_initialize_go32_nat): Add declaration.
11479 * guile/guile.c (_initialize_guile): Add declaration.
11480 * h8300-tdep.c (_initialize_h8300_tdep): Add declaration.
11481 * hppa-linux-nat.c (_initialize_hppa_linux_nat): Add declaration.
11482 * hppa-linux-tdep.c (_initialize_hppa_linux_tdep): Add declaration.
11483 * hppa-nbsd-nat.c (_initialize_hppanbsd_nat): Add declaration.
11484 * hppa-nbsd-tdep.c (_initialize_hppanbsd_tdep): Add declaration.
11485 * hppa-obsd-nat.c (_initialize_hppaobsd_nat): Add declaration.
11486 * hppa-obsd-tdep.c (_initialize_hppabsd_tdep): Add declaration.
11487 * hppa-tdep.c (_initialize_hppa_tdep): Add declaration.
11488 * i386-bsd-nat.c (_initialize_i386bsd_nat): Add declaration.
11489 * i386-cygwin-tdep.c (_initialize_i386_cygwin_tdep): Add declaration.
11490 * i386-darwin-nat.c (_initialize_i386_darwin_nat): Add declaration.
11491 * i386-darwin-tdep.c (_initialize_i386_darwin_tdep): Add declaration.
11492 * i386-dicos-tdep.c (_initialize_i386_dicos_tdep): Add declaration.
11493 * i386-fbsd-nat.c (_initialize_i386fbsd_nat): Add declaration.
11494 * i386-fbsd-tdep.c (_initialize_i386fbsd_tdep): Add declaration.
11495 * i386-gnu-nat.c (_initialize_i386gnu_nat): Add declaration.
11496 * i386-gnu-tdep.c (_initialize_i386gnu_tdep): Add declaration.
11497 * i386-go32-tdep.c (_initialize_i386_go32_tdep): Add declaration.
11498 * i386-linux-nat.c (_initialize_i386_linux_nat): Add declaration.
11499 * i386-linux-tdep.c (_initialize_i386_linux_tdep): Add declaration.
11500 * i386-nbsd-nat.c (_initialize_i386nbsd_nat): Add declaration.
11501 * i386-nbsd-tdep.c (_initialize_i386nbsd_tdep): Add declaration.
11502 * i386-nto-tdep.c (_initialize_i386nto_tdep): Add declaration.
11503 * i386-obsd-nat.c (_initialize_i386obsd_nat): Add declaration.
11504 * i386-obsd-tdep.c (_initialize_i386obsd_tdep): Add declaration.
11505 * i386-sol2-nat.c (_initialize_amd64_sol2_nat): Add declaration.
11506 * i386-sol2-tdep.c (_initialize_i386_sol2_tdep): Add declaration.
11507 * i386-tdep.c (_initialize_i386_tdep): Add declaration.
11508 * i386-windows-nat.c (_initialize_i386_windows_nat): Add declaration.
11509 * ia64-libunwind-tdep.c (_initialize_libunwind_frame): Add declaration.
11510 * ia64-linux-nat.c (_initialize_ia64_linux_nat): Add declaration.
11511 * ia64-linux-tdep.c (_initialize_ia64_linux_tdep): Add declaration.
11512 * ia64-tdep.c (_initialize_ia64_tdep): Add declaration.
11513 * ia64-vms-tdep.c (_initialize_ia64_vms_tdep): Add declaration.
11514 * infcall.c (_initialize_infcall): Add declaration.
11515 * infcmd.c (_initialize_infcmd): Add declaration.
11516 * inflow.c (_initialize_inflow): Add declaration.
11517 * infrun.c (_initialize_infrun): Add declaration.
11518 * interps.c (_initialize_interpreter): Add declaration.
11519 * iq2000-tdep.c (_initialize_iq2000_tdep): Add declaration.
11520 * jit.c (_initialize_jit): Add declaration.
11521 * language.c (_initialize_language): Add declaration.
11522 * linux-fork.c (_initialize_linux_fork): Add declaration.
11523 * linux-nat.c (_initialize_linux_nat): Add declaration.
11524 * linux-tdep.c (_initialize_linux_tdep): Add declaration.
11525 * linux-thread-db.c (_initialize_thread_db): Add declaration.
11526 * lm32-tdep.c (_initialize_lm32_tdep): Add declaration.
11527 * m2-lang.c (_initialize_m2_language): Add declaration.
11528 * m32c-tdep.c (_initialize_m32c_tdep): Add declaration.
11529 * m32r-linux-nat.c (_initialize_m32r_linux_nat): Add declaration.
11530 * m32r-linux-tdep.c (_initialize_m32r_linux_tdep): Add declaration.
11531 * m32r-tdep.c (_initialize_m32r_tdep): Add declaration.
11532 * m68hc11-tdep.c (_initialize_m68hc11_tdep): Add declaration.
11533 * m68k-bsd-nat.c (_initialize_m68kbsd_nat): Add declaration.
11534 * m68k-bsd-tdep.c (_initialize_m68kbsd_tdep): Add declaration.
11535 * m68k-linux-nat.c (_initialize_m68k_linux_nat): Add declaration.
11536 * m68k-linux-tdep.c (_initialize_m68k_linux_tdep): Add declaration.
11537 * m68k-tdep.c (_initialize_m68k_tdep): Add declaration.
11538 * machoread.c (_initialize_machoread): Add declaration.
11539 * macrocmd.c (_initialize_macrocmd): Add declaration.
11540 * macroscope.c (_initialize_macroscope): Add declaration.
11541 * maint-test-options.c (_initialize_maint_test_options): Add declaration.
11542 * maint-test-settings.c (_initialize_maint_test_settings): Add declaration.
11543 * maint.c (_initialize_maint_cmds): Add declaration.
11544 * mdebugread.c (_initialize_mdebugread): Add declaration.
11545 * memattr.c (_initialize_mem): Add declaration.
11546 * mep-tdep.c (_initialize_mep_tdep): Add declaration.
11547 * mi/mi-cmd-env.c (_initialize_mi_cmd_env): Add declaration.
11548 * mi/mi-cmds.c (_initialize_mi_cmds): Add declaration.
11549 * mi/mi-interp.c (_initialize_mi_interp): Add declaration.
11550 * mi/mi-main.c (_initialize_mi_main): Add declaration.
11551 * microblaze-linux-tdep.c (_initialize_microblaze_linux_tdep): Add declaration.
11552 * microblaze-tdep.c (_initialize_microblaze_tdep): Add declaration.
11553 * mips-fbsd-nat.c (_initialize_mips_fbsd_nat): Add declaration.
11554 * mips-fbsd-tdep.c (_initialize_mips_fbsd_tdep): Add declaration.
11555 * mips-linux-nat.c (_initialize_mips_linux_nat): Add declaration.
11556 * mips-linux-tdep.c (_initialize_mips_linux_tdep): Add declaration.
11557 * mips-nbsd-nat.c (_initialize_mipsnbsd_nat): Add declaration.
11558 * mips-nbsd-tdep.c (_initialize_mipsnbsd_tdep): Add declaration.
11559 * mips-sde-tdep.c (_initialize_mips_sde_tdep): Add declaration.
11560 * mips-tdep.c (_initialize_mips_tdep): Add declaration.
11561 * mips64-obsd-nat.c (_initialize_mips64obsd_nat): Add declaration.
11562 * mips64-obsd-tdep.c (_initialize_mips64obsd_tdep): Add declaration.
11563 * mipsread.c (_initialize_mipsread): Add declaration.
11564 * mn10300-linux-tdep.c (_initialize_mn10300_linux_tdep): Add declaration.
11565 * mn10300-tdep.c (_initialize_mn10300_tdep): Add declaration.
11566 * moxie-tdep.c (_initialize_moxie_tdep): Add declaration.
11567 * msp430-tdep.c (_initialize_msp430_tdep): Add declaration.
11568 * nds32-tdep.c (_initialize_nds32_tdep): Add declaration.
11569 * nios2-linux-tdep.c (_initialize_nios2_linux_tdep): Add declaration.
11570 * nios2-tdep.c (_initialize_nios2_tdep): Add declaration.
11571 * nto-procfs.c (_initialize_procfs): Add declaration.
11572 * objc-lang.c (_initialize_objc_language): Add declaration.
11573 * observable.c (_initialize_observer): Add declaration.
11574 * opencl-lang.c (_initialize_opencl_language): Add declaration.
11575 * or1k-linux-tdep.c (_initialize_or1k_linux_tdep): Add declaration.
11576 * or1k-tdep.c (_initialize_or1k_tdep): Add declaration.
11577 * osabi.c (_initialize_gdb_osabi): Add declaration.
11578 * osdata.c (_initialize_osdata): Add declaration.
11579 * p-valprint.c (_initialize_pascal_valprint): Add declaration.
11580 * parse.c (_initialize_parse): Add declaration.
11581 * ppc-fbsd-nat.c (_initialize_ppcfbsd_nat): Add declaration.
11582 * ppc-fbsd-tdep.c (_initialize_ppcfbsd_tdep): Add declaration.
11583 * ppc-linux-nat.c (_initialize_ppc_linux_nat): Add declaration.
11584 * ppc-linux-tdep.c (_initialize_ppc_linux_tdep): Add declaration.
11585 * ppc-nbsd-nat.c (_initialize_ppcnbsd_nat): Add declaration.
11586 * ppc-nbsd-tdep.c (_initialize_ppcnbsd_tdep): Add declaration.
11587 * ppc-obsd-nat.c (_initialize_ppcobsd_nat): Add declaration.
11588 * ppc-obsd-tdep.c (_initialize_ppcobsd_tdep): Add declaration.
11589 * printcmd.c (_initialize_printcmd): Add declaration.
11590 * probe.c (_initialize_probe): Add declaration.
11591 * proc-api.c (_initialize_proc_api): Add declaration.
11592 * proc-events.c (_initialize_proc_events): Add declaration.
11593 * proc-service.c (_initialize_proc_service): Add declaration.
11594 * procfs.c (_initialize_procfs): Add declaration.
11595 * producer.c (_initialize_producer): Add declaration.
11596 * psymtab.c (_initialize_psymtab): Add declaration.
11597 * python/python.c (_initialize_python): Add declaration.
11598 * ravenscar-thread.c (_initialize_ravenscar): Add declaration.
11599 * record-btrace.c (_initialize_record_btrace): Add declaration.
11600 * record-full.c (_initialize_record_full): Add declaration.
11601 * record.c (_initialize_record): Add declaration.
11602 * regcache-dump.c (_initialize_regcache_dump): Add declaration.
11603 * regcache.c (_initialize_regcache): Add declaration.
11604 * reggroups.c (_initialize_reggroup): Add declaration.
11605 * remote-notif.c (_initialize_notif): Add declaration.
11606 * remote-sim.c (_initialize_remote_sim): Add declaration.
11607 * remote.c (_initialize_remote): Add declaration.
11608 * reverse.c (_initialize_reverse): Add declaration.
11609 * riscv-fbsd-nat.c (_initialize_riscv_fbsd_nat): Add declaration.
11610 * riscv-fbsd-tdep.c (_initialize_riscv_fbsd_tdep): Add declaration.
11611 * riscv-linux-nat.c (_initialize_riscv_linux_nat): Add declaration.
11612 * riscv-linux-tdep.c (_initialize_riscv_linux_tdep): Add declaration.
11613 * riscv-tdep.c (_initialize_riscv_tdep): Add declaration.
11614 * rl78-tdep.c (_initialize_rl78_tdep): Add declaration.
11615 * rs6000-aix-tdep.c (_initialize_rs6000_aix_tdep): Add declaration.
11616 * rs6000-lynx178-tdep.c (_initialize_rs6000_lynx178_tdep):
11617 Add declaration.
11618 * rs6000-nat.c (_initialize_rs6000_nat): Add declaration.
11619 * rs6000-tdep.c (_initialize_rs6000_tdep): Add declaration.
11620 * run-on-main-thread.c (_initialize_run_on_main_thread): Add declaration.
11621 * rust-exp.y (_initialize_rust_exp): Add declaration.
11622 * rx-tdep.c (_initialize_rx_tdep): Add declaration.
11623 * s12z-tdep.c (_initialize_s12z_tdep): Add declaration.
11624 * s390-linux-nat.c (_initialize_s390_nat): Add declaration.
11625 * s390-linux-tdep.c (_initialize_s390_linux_tdep): Add declaration.
11626 * s390-tdep.c (_initialize_s390_tdep): Add declaration.
11627 * score-tdep.c (_initialize_score_tdep): Add declaration.
11628 * ser-go32.c (_initialize_ser_dos): Add declaration.
11629 * ser-mingw.c (_initialize_ser_windows): Add declaration.
11630 * ser-pipe.c (_initialize_ser_pipe): Add declaration.
11631 * ser-tcp.c (_initialize_ser_tcp): Add declaration.
11632 * ser-uds.c (_initialize_ser_socket): Add declaration.
11633 * ser-unix.c (_initialize_ser_hardwire): Add declaration.
11634 * serial.c (_initialize_serial): Add declaration.
11635 * sh-linux-tdep.c (_initialize_sh_linux_tdep): Add declaration.
11636 * sh-nbsd-nat.c (_initialize_shnbsd_nat): Add declaration.
11637 * sh-nbsd-tdep.c (_initialize_shnbsd_tdep): Add declaration.
11638 * sh-tdep.c (_initialize_sh_tdep): Add declaration.
11639 * skip.c (_initialize_step_skip): Add declaration.
11640 * sol-thread.c (_initialize_sol_thread): Add declaration.
11641 * solib-aix.c (_initialize_solib_aix): Add declaration.
11642 * solib-darwin.c (_initialize_darwin_solib): Add declaration.
11643 * solib-dsbt.c (_initialize_dsbt_solib): Add declaration.
11644 * solib-frv.c (_initialize_frv_solib): Add declaration.
11645 * solib-svr4.c (_initialize_svr4_solib): Add declaration.
11646 * solib-target.c (_initialize_solib_target): Add declaration.
11647 * solib.c (_initialize_solib): Add declaration.
11648 * source-cache.c (_initialize_source_cache): Add declaration.
11649 * source.c (_initialize_source): Add declaration.
11650 * sparc-linux-nat.c (_initialize_sparc_linux_nat): Add declaration.
11651 * sparc-linux-tdep.c (_initialize_sparc_linux_tdep): Add declaration.
11652 * sparc-nat.c (_initialize_sparc_nat): Add declaration.
11653 * sparc-nbsd-nat.c (_initialize_sparcnbsd_nat): Add declaration.
11654 * sparc-nbsd-tdep.c (_initialize_sparcnbsd_tdep): Add declaration.
11655 * sparc-obsd-tdep.c (_initialize_sparc32obsd_tdep): Add declaration.
11656 * sparc-sol2-tdep.c (_initialize_sparc_sol2_tdep): Add declaration.
11657 * sparc-tdep.c (_initialize_sparc_tdep): Add declaration.
11658 * sparc64-fbsd-nat.c (_initialize_sparc64fbsd_nat): Add declaration.
11659 * sparc64-fbsd-tdep.c (_initialize_sparc64fbsd_tdep): Add declaration.
11660 * sparc64-linux-nat.c (_initialize_sparc64_linux_nat): Add declaration.
11661 * sparc64-linux-tdep.c (_initialize_sparc64_linux_tdep): Add declaration.
11662 * sparc64-nat.c (_initialize_sparc64_nat): Add declaration.
11663 * sparc64-nbsd-nat.c (_initialize_sparc64nbsd_nat): Add declaration.
11664 * sparc64-nbsd-tdep.c (_initialize_sparc64nbsd_tdep): Add declaration.
11665 * sparc64-obsd-nat.c (_initialize_sparc64obsd_nat): Add declaration.
11666 * sparc64-obsd-tdep.c (_initialize_sparc64obsd_tdep): Add declaration.
11667 * sparc64-sol2-tdep.c (_initialize_sparc64_sol2_tdep): Add declaration.
11668 * sparc64-tdep.c (_initialize_sparc64_adi_tdep): Add declaration.
11669 * stabsread.c (_initialize_stabsread): Add declaration.
11670 * stack.c (_initialize_stack): Add declaration.
11671 * stap-probe.c (_initialize_stap_probe): Add declaration.
11672 * std-regs.c (_initialize_frame_reg): Add declaration.
11673 * symfile-debug.c (_initialize_symfile_debug): Add declaration.
11674 * symfile-mem.c (_initialize_symfile_mem): Add declaration.
11675 * symfile.c (_initialize_symfile): Add declaration.
11676 * symmisc.c (_initialize_symmisc): Add declaration.
11677 * symtab.c (_initialize_symtab): Add declaration.
11678 * target.c (_initialize_target): Add declaration.
11679 * target-connection.c (_initialize_target_connection): Add
11680 declaration.
11681 * target-dcache.c (_initialize_target_dcache): Add declaration.
11682 * target-descriptions.c (_initialize_target_descriptions): Add declaration.
11683 * thread.c (_initialize_thread): Add declaration.
11684 * tic6x-linux-tdep.c (_initialize_tic6x_linux_tdep): Add declaration.
11685 * tic6x-tdep.c (_initialize_tic6x_tdep): Add declaration.
11686 * tilegx-linux-nat.c (_initialize_tile_linux_nat): Add declaration.
11687 * tilegx-linux-tdep.c (_initialize_tilegx_linux_tdep): Add declaration.
11688 * tilegx-tdep.c (_initialize_tilegx_tdep): Add declaration.
11689 * tracectf.c (_initialize_ctf): Add declaration.
11690 * tracefile-tfile.c (_initialize_tracefile_tfile): Add declaration.
11691 * tracefile.c (_initialize_tracefile): Add declaration.
11692 * tracepoint.c (_initialize_tracepoint): Add declaration.
11693 * tui/tui-hooks.c (_initialize_tui_hooks): Add declaration.
11694 * tui/tui-interp.c (_initialize_tui_interp): Add declaration.
11695 * tui/tui-layout.c (_initialize_tui_layout): Add declaration.
11696 * tui/tui-regs.c (_initialize_tui_regs): Add declaration.
11697 * tui/tui-stack.c (_initialize_tui_stack): Add declaration.
11698 * tui/tui-win.c (_initialize_tui_win): Add declaration.
11699 * tui/tui.c (_initialize_tui): Add declaration.
11700 * typeprint.c (_initialize_typeprint): Add declaration.
11701 * ui-style.c (_initialize_ui_style): Add declaration.
11702 * unittests/array-view-selftests.c (_initialize_array_view_selftests): Add declaration.
11703 * unittests/child-path-selftests.c (_initialize_child_path_selftests): Add declaration.
11704 * unittests/cli-utils-selftests.c (_initialize_cli_utils_selftests): Add declaration.
11705 * unittests/common-utils-selftests.c (_initialize_common_utils_selftests): Add declaration.
11706 * unittests/copy_bitwise-selftests.c (_initialize_copy_bitwise_utils_selftests): Add declaration.
11707 * unittests/environ-selftests.c (_initialize_environ_selftests): Add declaration.
11708 * unittests/filtered_iterator-selftests.c
11709 (_initialize_filtered_iterator_selftests): Add declaration.
11710 * unittests/format_pieces-selftests.c (_initialize_format_pieces_selftests): Add declaration.
11711 * unittests/function-view-selftests.c (_initialize_function_view_selftests): Add declaration.
11712 * unittests/help-doc-selftests.c (_initialize_help_doc_selftests): Add declaration.
11713 * unittests/lookup_name_info-selftests.c (_initialize_lookup_name_info_selftests): Add declaration.
11714 * unittests/main-thread-selftests.c
11715 (_initialize_main_thread_selftests): Add declaration.
11716 * unittests/memory-map-selftests.c (_initialize_memory_map_selftests): Add declaration.
11717 * unittests/memrange-selftests.c (_initialize_memrange_selftests): Add declaration.
11718 * unittests/mkdir-recursive-selftests.c (_initialize_mkdir_recursive_selftests): Add declaration.
11719 * unittests/observable-selftests.c (_initialize_observer_selftest): Add declaration.
11720 * unittests/offset-type-selftests.c (_initialize_offset_type_selftests): Add declaration.
11721 * unittests/optional-selftests.c (_initialize_optional_selftests): Add declaration.
11722 * unittests/parse-connection-spec-selftests.c (_initialize_parse_connection_spec_selftests): Add declaration.
11723 * unittests/rsp-low-selftests.c (_initialize_rsp_low_selftests): Add declaration.
11724 * unittests/scoped_fd-selftests.c (_initialize_scoped_fd_selftests): Add declaration.
11725 * unittests/scoped_mmap-selftests.c (_initialize_scoped_mmap_selftests): Add declaration.
11726 * unittests/scoped_restore-selftests.c (_initialize_scoped_restore_selftests): Add declaration.
11727 * unittests/string_view-selftests.c (_initialize_string_view_selftests): Add declaration.
11728 * unittests/style-selftests.c (_initialize_style_selftest): Add declaration.
11729 * unittests/tracepoint-selftests.c (_initialize_tracepoint_selftests): Add declaration.
11730 * unittests/tui-selftests.c (_initialize_tui_selftest): Add
11731 declaration.
11732 * unittests/unpack-selftests.c (_initialize_unpack_selftests): Add declaration.
11733 * unittests/utils-selftests.c (_initialize_utils_selftests): Add declaration.
11734 * unittests/vec-utils-selftests.c (_initialize_vec_utils_selftests): Add declaration.
11735 * unittests/xml-utils-selftests.c (_initialize_xml_utils): Add declaration.
11736 * user-regs.c (_initialize_user_regs): Add declaration.
11737 * utils.c (_initialize_utils): Add declaration.
11738 * v850-tdep.c (_initialize_v850_tdep): Add declaration.
11739 * valops.c (_initialize_valops): Add declaration.
11740 * valprint.c (_initialize_valprint): Add declaration.
11741 * value.c (_initialize_values): Add declaration.
11742 * varobj.c (_initialize_varobj): Add declaration.
11743 * vax-bsd-nat.c (_initialize_vaxbsd_nat): Add declaration.
11744 * vax-nbsd-tdep.c (_initialize_vaxnbsd_tdep): Add declaration.
11745 * vax-tdep.c (_initialize_vax_tdep): Add declaration.
11746 * windows-nat.c (_initialize_windows_nat): Add declaration.
11747 (_initialize_check_for_gdb_ini): Add declaration.
11748 (_initialize_loadable): Add declaration.
11749 * windows-tdep.c (_initialize_windows_tdep): Add declaration.
11750 * x86-bsd-nat.c (_initialize_x86_bsd_nat): Add declaration.
11751 * x86-linux-nat.c (_initialize_x86_linux_nat): Add declaration.
11752 * xcoffread.c (_initialize_xcoffread): Add declaration.
11753 * xml-support.c (_initialize_xml_support): Add declaration.
11754 * xstormy16-tdep.c (_initialize_xstormy16_tdep): Add declaration.
11755 * xtensa-linux-nat.c (_initialize_xtensa_linux_nat): Add declaration.
11756 * xtensa-linux-tdep.c (_initialize_xtensa_linux_tdep): Add declaration.
11757 * xtensa-tdep.c (_initialize_xtensa_tdep): Add declaration.
11758
11759 2020-01-13 Simon Marchi <simon.marchi@polymtl.ca>
11760
11761 * regformats/regdat.sh: Generate declaration for init function.
11762
11763 2020-01-13 Simon Marchi <simon.marchi@polymtl.ca>
11764
11765 * remote-sim.c (next_pid, INITIAL_PID, sim_inferior_data): Move
11766 up.
11767 (gdbsim_target) <get_inferior_data_by_ptid, resume_one_inferior,
11768 close_one_inferior>: New methods.
11769 (get_sim_inferior_data_by_ptid): Move to gdbsim_target,
11770 pass down target to find_inferior_pid.
11771 (gdbsim_target::fetch_registers, gdbsim_target::store_registers):
11772 Pass down target to find_inferior_ptid.
11773 (gdbsim_target::create_inferior): Pass down target to
11774 add_thread_silent.
11775 (gdbsim_close_inferior): Move to gdbsim_close_inferior, pass
11776 target down to find_inferior_ptid and switch_to_thread.
11777 (gdbsim_target::close): Update to call close_one_inferior.
11778 (struct resume_data): Remove.
11779 (gdbsim_resume_inferior): Move to gdbsim_target. Take arguments
11780 directly, rather than through a void pointer.
11781 (gdbsim_target::resume): Update to call resume_one_inferior.
11782
11783 2020-01-12 Simon Marchi <simon.marchi@polymtl.ca>
11784
11785 * gdbsupport/gdb_wait.c: Include gdb_wait.h.
11786
11787 2020-01-12 Pedro Alves <palves@redhat.com>
11788
11789 * bsd-kvm.c (bsd_kvm_target::close): Call exit_inferior_silent
11790 directly for the current inferior instead of
11791 discard_all_inferiors.
11792 (discard_all_inferiors): Delete.
11793
11794 2020-01-11 Tom Tromey <tom@tromey.com>
11795
11796 * tui/tui-wingeneral.c (box_win): Check cli_styling.
11797 * tui/tui-winsource.c (tui_source_window_base::refill): Use
11798 deprecated_safe_get_selected_frame.
11799
11800 2020-01-10 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
11801
11802 * inferior.c (print_inferior): Switch inferior before printing it.
11803
11804 2020-01-10 Aleksandar Paunovic <aleksandar.paunovic@intel.com>
11805 Pedro Alves <palves@redhat.com>
11806
11807 * progspace-and-thread.c (switch_to_program_space_and_thread):
11808 Assert there's an inferior for PSPACE. Use
11809 switch_to_inferior_no_thread to switch the inferior too.
11810 * progspace.c (program_space::~program_space): Call
11811 clear_symtab_users here, with SYMFILE_DEFER_BP_RESET.
11812 (program_space::free_all_objfiles): Don't call clear_symtab_users
11813 here.
11814 * symfile.c (symbol_file_clear): Call clear_symtab_users here.
11815
11816 2020-01-10 Pedro Alves <palves@redhat.com>
11817
11818 * NEWS: Mention multi-target debugging, "info connections", and
11819 "add-inferior -no-connection".
11820
11821 2020-01-10 Pedro Alves <palves@redhat.com>
11822
11823 * infrun.c: Include "target-connection.h".
11824 (check_multi_target_resumption): New.
11825 (proceed): Call it.
11826 * target-connection.c (make_target_connection_string): Make
11827 extern.
11828 * target-connection.h (make_target_connection_string): Declare.
11829
11830 2020-01-10 Pedro Alves <palves@redhat.com>
11831
11832 * Makefile.in (COMMON_SFILES): Add target-connection.c.
11833 * inferior.c (uiout_field_connection): New function.
11834 (print_inferior): Add new "connection-id" column.
11835 (add_inferior_command): Show connection number/string of added
11836 inferior.
11837 * process-stratum-target.h
11838 (process_stratum_target::connection_string): New virtual method.
11839 (process_stratum_target::connection_number): New field.
11840 * remote.c (remote_target::connection_string): New override.
11841 * target-connection.c: New file.
11842 * target-connection.h: New file.
11843 * target.c (decref_target): Remove process_stratum targets from
11844 the connection list.
11845 (target_stack::push): Add process_stratum targets to the
11846 connection list.
11847
11848 2020-01-10 Pedro Alves <palves@redhat.com>
11849
11850 Revert:
11851 2016-04-12 Pedro Alves <palves@redhat.com>
11852 * serial.c (serial_open, serial_fdopen_ops, do_serial_close):
11853 Remove references to name.
11854 * serial.h (struct serial) <name>: Delete.
11855
11856 2020-01-10 Pedro Alves <palves@redhat.com>
11857
11858 * gdbarch-selftests.c (register_to_value_test): Remove "target
11859 already pushed" check.
11860
11861 2020-01-10 Pedro Alves <palves@redhat.com>
11862 John Baldwin <jhb@FreeBSD.org>
11863
11864 * aarch64-linux-nat.c
11865 (aarch64_linux_nat_target::thread_architecture): Adjust.
11866 * ada-tasks.c (print_ada_task_info): Adjust find_thread_ptid call.
11867 (task_command_1): Likewise.
11868 * aix-thread.c (sync_threadlists, aix_thread_target::resume)
11869 (aix_thread_target::wait, aix_thread_target::fetch_registers)
11870 (aix_thread_target::store_registers)
11871 (aix_thread_target::thread_alive): Adjust.
11872 * amd64-fbsd-tdep.c: Include "inferior.h".
11873 (amd64fbsd_get_thread_local_address): Pass down target.
11874 * amd64-linux-nat.c (ps_get_thread_area): Use ps_prochandle
11875 thread's gdbarch instead of target_gdbarch.
11876 * break-catch-sig.c (signal_catchpoint_print_it): Adjust call to
11877 get_last_target_status.
11878 * break-catch-syscall.c (print_it_catch_syscall): Likewise.
11879 * breakpoint.c (breakpoints_should_be_inserted_now): Consider all
11880 inferiors.
11881 (update_inserted_breakpoint_locations): Skip if inferiors with no
11882 execution.
11883 (update_global_location_list): When handling moribund locations,
11884 find representative inferior for location's pspace, and use thread
11885 count of its process_stratum target.
11886 * bsd-kvm.c (bsd_kvm_target_open): Pass target down.
11887 * bsd-uthread.c (bsd_uthread_target::wait): Use
11888 as_process_stratum_target and adjust thread_change_ptid and
11889 add_thread calls.
11890 (bsd_uthread_target::update_thread_list): Use
11891 as_process_stratum_target and adjust find_thread_ptid,
11892 thread_change_ptid and add_thread calls.
11893 * btrace.c (maint_btrace_packet_history_cmd): Adjust
11894 find_thread_ptid call.
11895 * corelow.c (add_to_thread_list): Adjust add_thread call.
11896 (core_target_open): Adjust add_thread_silent and thread_count
11897 calls.
11898 (core_target::pid_to_str): Adjust find_inferior_ptid call.
11899 * ctf.c (ctf_target_open): Adjust add_thread_silent call.
11900 * event-top.c (async_disconnect): Pop targets from all inferiors.
11901 * exec.c (add_target_sections): Push exec target on all inferiors
11902 sharing the program space.
11903 (remove_target_sections): Remove the exec target from all
11904 inferiors sharing the program space.
11905 (exec_on_vfork): New.
11906 * exec.h (exec_on_vfork): Declare.
11907 * fbsd-nat.c (fbsd_add_threads): Add fbsd_nat_target parameter.
11908 Pass it down.
11909 (fbsd_nat_target::update_thread_list): Adjust.
11910 (fbsd_nat_target::resume): Adjust.
11911 (fbsd_handle_debug_trap): Add fbsd_nat_target parameter. Pass it
11912 down.
11913 (fbsd_nat_target::wait, fbsd_nat_target::post_attach): Adjust.
11914 * fbsd-tdep.c (fbsd_corefile_thread): Adjust
11915 get_thread_arch_regcache call.
11916 * fork-child.c (gdb_startup_inferior): Pass target down to
11917 startup_inferior and set_executing.
11918 * gdbthread.h (struct process_stratum_target): Forward declare.
11919 (add_thread, add_thread_silent, add_thread_with_info)
11920 (in_thread_list): Add process_stratum_target parameter.
11921 (find_thread_ptid(inferior*, ptid_t)): New overload.
11922 (find_thread_ptid, thread_change_ptid): Add process_stratum_target
11923 parameter.
11924 (all_threads()): Delete overload.
11925 (all_threads, all_non_exited_threads): Add process_stratum_target
11926 parameter.
11927 (all_threads_safe): Use brace initialization.
11928 (thread_count): Add process_stratum_target parameter.
11929 (set_resumed, set_running, set_stop_requested, set_executing)
11930 (threads_are_executing, finish_thread_state): Add
11931 process_stratum_target parameter.
11932 (switch_to_thread): Use is_current_thread.
11933 * i386-fbsd-tdep.c: Include "inferior.h".
11934 (i386fbsd_get_thread_local_address): Pass down target.
11935 * i386-linux-nat.c (i386_linux_nat_target::low_resume): Adjust.
11936 * inf-child.c (inf_child_target::maybe_unpush_target): Remove
11937 have_inferiors check.
11938 * inf-ptrace.c (inf_ptrace_target::create_inferior)
11939 (inf_ptrace_target::attach): Adjust.
11940 * infcall.c (run_inferior_call): Adjust.
11941 * infcmd.c (run_command_1): Pass target to
11942 scoped_finish_thread_state.
11943 (proceed_thread_callback): Skip inferiors with no execution.
11944 (continue_command): Rename 'all_threads' local to avoid hiding
11945 'all_threads' function. Adjust get_last_target_status call.
11946 (prepare_one_step): Adjust set_running call.
11947 (signal_command): Use user_visible_resume_target. Compare thread
11948 pointers instead of inferior_ptid.
11949 (info_program_command): Adjust to pass down target.
11950 (attach_command): Mark target's 'thread_executing' flag.
11951 (stop_current_target_threads_ns): New, factored out from ...
11952 (interrupt_target_1): ... this. Switch inferior before making
11953 target calls.
11954 * inferior-iter.h
11955 (struct all_inferiors_iterator, struct all_inferiors_range)
11956 (struct all_inferiors_safe_range)
11957 (struct all_non_exited_inferiors_range): Filter on
11958 process_stratum_target too. Remove explicit.
11959 * inferior.c (inferior::inferior): Push dummy target on target
11960 stack.
11961 (find_inferior_pid, find_inferior_ptid, number_of_live_inferiors):
11962 Add process_stratum_target parameter, and pass it down.
11963 (have_live_inferiors): Adjust.
11964 (switch_to_inferior_and_push_target): New.
11965 (add_inferior_command, clone_inferior_command): Handle
11966 "-no-connection" parameter. Use
11967 switch_to_inferior_and_push_target.
11968 (_initialize_inferior): Mention "-no-connection" option in
11969 the help of "add-inferior" and "clone-inferior" commands.
11970 * inferior.h: Include "process-stratum-target.h".
11971 (interrupt_target_1): Use bool.
11972 (struct inferior) <push_target, unpush_target, target_is_pushed,
11973 find_target_beneath, top_target, process_target, target_at,
11974 m_stack>: New.
11975 (discard_all_inferiors): Delete.
11976 (find_inferior_pid, find_inferior_ptid, number_of_live_inferiors)
11977 (all_inferiors, all_non_exited_inferiors): Add
11978 process_stratum_target parameter.
11979 * infrun.c: Include "gdb_select.h" and <unordered_map>.
11980 (target_last_proc_target): New global.
11981 (follow_fork_inferior): Push target on new inferior. Pass target
11982 to add_thread_silent. Call exec_on_vfork. Handle target's
11983 reference count.
11984 (follow_fork): Adjust get_last_target_status call. Also consider
11985 target.
11986 (follow_exec): Push target on new inferior.
11987 (struct execution_control_state) <target>: New field.
11988 (user_visible_resume_target): New.
11989 (do_target_resume): Call target_async.
11990 (resume_1): Set target's threads_executing flag. Consider resume
11991 target.
11992 (commit_resume_all_targets): New.
11993 (proceed): Also consider resume target. Skip threads of inferiors
11994 with no execution. Commit resumtion in all targets.
11995 (start_remote): Pass current inferior to wait_for_inferior.
11996 (infrun_thread_stop_requested): Consider target as well. Pass
11997 thread_info pointer to clear_inline_frame_state instead of ptid.
11998 (infrun_thread_thread_exit): Consider target as well.
11999 (random_pending_event_thread): New inferior parameter. Use it.
12000 (do_target_wait): Rename to ...
12001 (do_target_wait_1): ... this. Add inferior parameter, and pass it
12002 down.
12003 (threads_are_resumed_pending_p, do_target_wait): New.
12004 (prepare_for_detach): Adjust calls.
12005 (wait_for_inferior): New inferior parameter. Handle it. Use
12006 do_target_wait_1 instead of do_target_wait.
12007 (fetch_inferior_event): Adjust. Switch to representative
12008 inferior. Pass target down.
12009 (set_last_target_status): Add process_stratum_target parameter.
12010 Save target in global.
12011 (get_last_target_status): Add process_stratum_target parameter and
12012 handle it.
12013 (nullify_last_target_wait_ptid): Clear 'target_last_proc_target'.
12014 (context_switch): Check inferior_ptid == null_ptid before calling
12015 inferior_thread().
12016 (get_inferior_stop_soon): Pass down target.
12017 (wait_one): Rename to ...
12018 (poll_one_curr_target): ... this.
12019 (struct wait_one_event): New.
12020 (wait_one): New.
12021 (stop_all_threads): Adjust.
12022 (handle_no_resumed, handle_inferior_event): Adjust to consider the
12023 event's target.
12024 (switch_back_to_stepped_thread): Also consider target.
12025 (print_stop_event): Update.
12026 (normal_stop): Update. Also consider the resume target.
12027 * infrun.h (wait_for_inferior): Remove declaration.
12028 (user_visible_resume_target): New declaration.
12029 (get_last_target_status, set_last_target_status): New
12030 process_stratum_target parameter.
12031 * inline-frame.c (clear_inline_frame_state(ptid_t)): Add
12032 process_stratum_target parameter, and use it.
12033 (clear_inline_frame_state (thread_info*)): New.
12034 * inline-frame.c (clear_inline_frame_state(ptid_t)): Add
12035 process_stratum_target parameter.
12036 (clear_inline_frame_state (thread_info*)): Declare.
12037 * linux-fork.c (delete_checkpoint_command): Pass target down to
12038 find_thread_ptid.
12039 (checkpoint_command): Adjust.
12040 * linux-nat.c (linux_nat_target::follow_fork): Switch to thread
12041 instead of just tweaking inferior_ptid.
12042 (linux_nat_switch_fork): Pass target down to thread_change_ptid.
12043 (exit_lwp): Pass target down to find_thread_ptid.
12044 (attach_proc_task_lwp_callback): Pass target down to
12045 add_thread/set_running/set_executing.
12046 (linux_nat_target::attach): Pass target down to
12047 thread_change_ptid.
12048 (get_detach_signal): Pass target down to find_thread_ptid.
12049 Consider last target status's target.
12050 (linux_resume_one_lwp_throw, resume_lwp)
12051 (linux_handle_syscall_trap, linux_handle_extended_wait, wait_lwp)
12052 (stop_wait_callback, save_stop_reason, linux_nat_filter_event)
12053 (linux_nat_wait_1, resume_stopped_resumed_lwps): Pass target down.
12054 (linux_nat_target::async_wait_fd): New.
12055 (linux_nat_stop_lwp, linux_nat_target::thread_address_space): Pass
12056 target down.
12057 * linux-nat.h (linux_nat_target::async_wait_fd): Declare.
12058 * linux-tdep.c (get_thread_arch_regcache): Pass target down.
12059 * linux-thread-db.c (struct thread_db_info::process_target): New
12060 field.
12061 (add_thread_db_info): Save target.
12062 (get_thread_db_info): New process_stratum_target parameter. Also
12063 match target.
12064 (delete_thread_db_info): New process_stratum_target parameter.
12065 Also match target.
12066 (thread_from_lwp): Adjust to pass down target.
12067 (thread_db_notice_clone): Pass down target.
12068 (check_thread_db_callback): Pass down target.
12069 (try_thread_db_load_1): Always push the thread_db target.
12070 (try_thread_db_load, record_thread): Pass target down.
12071 (thread_db_target::detach): Pass target down. Always unpush the
12072 thread_db target.
12073 (thread_db_target::wait, thread_db_target::mourn_inferior): Pass
12074 target down. Always unpush the thread_db target.
12075 (find_new_threads_callback, thread_db_find_new_threads_2)
12076 (thread_db_target::update_thread_list): Pass target down.
12077 (thread_db_target::pid_to_str): Pass current inferior down.
12078 (thread_db_target::get_thread_local_address): Pass target down.
12079 (thread_db_target::resume, maintenance_check_libthread_db): Pass
12080 target down.
12081 * nto-procfs.c (nto_procfs_target::update_thread_list): Adjust.
12082 * procfs.c (procfs_target::procfs_init_inferior): Declare.
12083 (proc_set_current_signal, do_attach, procfs_target::wait): Adjust.
12084 (procfs_init_inferior): Rename to ...
12085 (procfs_target::procfs_init_inferior): ... this and adjust.
12086 (procfs_target::create_inferior, procfs_notice_thread)
12087 (procfs_do_thread_registers): Adjust.
12088 * ppc-fbsd-tdep.c: Include "inferior.h".
12089 (ppcfbsd_get_thread_local_address): Pass down target.
12090 * proc-service.c (ps_xfer_memory): Switch current inferior and
12091 program space as well.
12092 (get_ps_regcache): Pass target down.
12093 * process-stratum-target.c
12094 (process_stratum_target::thread_address_space)
12095 (process_stratum_target::thread_architecture): Pass target down.
12096 * process-stratum-target.h
12097 (process_stratum_target::threads_executing): New field.
12098 (as_process_stratum_target): New.
12099 * ravenscar-thread.c
12100 (ravenscar_thread_target::update_inferior_ptid): Pass target down.
12101 (ravenscar_thread_target::wait, ravenscar_add_thread): Pass target
12102 down.
12103 * record-btrace.c (record_btrace_target::info_record): Adjust.
12104 (record_btrace_target::record_method)
12105 (record_btrace_target::record_is_replaying)
12106 (record_btrace_target::fetch_registers)
12107 (get_thread_current_frame_id, record_btrace_target::resume)
12108 (record_btrace_target::wait, record_btrace_target::stop): Pass
12109 target down.
12110 * record-full.c (record_full_wait_1): Switch to event thread.
12111 Pass target down.
12112 * regcache.c (regcache::regcache)
12113 (get_thread_arch_aspace_regcache, get_thread_arch_regcache): Add
12114 process_stratum_target parameter and handle it.
12115 (current_thread_target): New global.
12116 (get_thread_regcache): Add process_stratum_target parameter and
12117 handle it. Switch inferior before calling target method.
12118 (get_thread_regcache): Pass target down.
12119 (get_thread_regcache_for_ptid): Pass target down.
12120 (registers_changed_ptid): Add process_stratum_target parameter and
12121 handle it.
12122 (registers_changed_thread, registers_changed): Pass target down.
12123 (test_get_thread_arch_aspace_regcache): New.
12124 (current_regcache_test): Define a couple local test_target_ops
12125 instances and use them for testing.
12126 (readwrite_regcache): Pass process_stratum_target parameter.
12127 (cooked_read_test, cooked_write_test): Pass mock_target down.
12128 * regcache.h (get_thread_regcache, get_thread_arch_regcache)
12129 (get_thread_arch_aspace_regcache): Add process_stratum_target
12130 parameter.
12131 (regcache::target): New method.
12132 (regcache::regcache, regcache::get_thread_arch_aspace_regcache)
12133 (regcache::registers_changed_ptid): Add process_stratum_target
12134 parameter.
12135 (regcache::m_target): New field.
12136 (registers_changed_ptid): Add process_stratum_target parameter.
12137 * remote.c (remote_state::supports_vCont_probed): New field.
12138 (remote_target::async_wait_fd): New method.
12139 (remote_unpush_and_throw): Add remote_target parameter.
12140 (get_current_remote_target): Adjust.
12141 (remote_target::remote_add_inferior): Push target.
12142 (remote_target::remote_add_thread)
12143 (remote_target::remote_notice_new_inferior)
12144 (get_remote_thread_info): Pass target down.
12145 (remote_target::update_thread_list): Skip threads of inferiors
12146 bound to other targets. (remote_target::close): Don't discard
12147 inferiors. (remote_target::add_current_inferior_and_thread)
12148 (remote_target::process_initial_stop_replies)
12149 (remote_target::start_remote)
12150 (remote_target::remote_serial_quit_handler): Pass down target.
12151 (remote_target::remote_unpush_target): New remote_target
12152 parameter. Unpush the target from all inferiors.
12153 (remote_target::remote_unpush_and_throw): New remote_target
12154 parameter. Pass it down.
12155 (remote_target::open_1): Check whether the current inferior has
12156 execution instead of checking whether any inferior is live. Pass
12157 target down.
12158 (remote_target::remote_detach_1): Pass down target. Use
12159 remote_unpush_target.
12160 (extended_remote_target::attach): Pass down target.
12161 (remote_target::remote_vcont_probe): Set supports_vCont_probed.
12162 (remote_target::append_resumption): Pass down target.
12163 (remote_target::append_pending_thread_resumptions)
12164 (remote_target::remote_resume_with_hc, remote_target::resume)
12165 (remote_target::commit_resume): Pass down target.
12166 (remote_target::remote_stop_ns): Check supports_vCont_probed.
12167 (remote_target::interrupt_query)
12168 (remote_target::remove_new_fork_children)
12169 (remote_target::check_pending_events_prevent_wildcard_vcont)
12170 (remote_target::remote_parse_stop_reply)
12171 (remote_target::process_stop_reply): Pass down target.
12172 (first_remote_resumed_thread): New remote_target parameter. Pass
12173 it down.
12174 (remote_target::wait_as): Pass down target.
12175 (unpush_and_perror): New remote_target parameter. Pass it down.
12176 (remote_target::readchar, remote_target::remote_serial_write)
12177 (remote_target::getpkt_or_notif_sane_1)
12178 (remote_target::kill_new_fork_children, remote_target::kill): Pass
12179 down target.
12180 (remote_target::mourn_inferior): Pass down target. Use
12181 remote_unpush_target.
12182 (remote_target::core_of_thread)
12183 (remote_target::remote_btrace_maybe_reopen): Pass down target.
12184 (remote_target::pid_to_exec_file)
12185 (remote_target::thread_handle_to_thread_info): Pass down target.
12186 (remote_target::async_wait_fd): New.
12187 * riscv-fbsd-tdep.c: Include "inferior.h".
12188 (riscv_fbsd_get_thread_local_address): Pass down target.
12189 * sol2-tdep.c (sol2_core_pid_to_str): Pass down target.
12190 * sol-thread.c (sol_thread_target::wait, ps_lgetregs, ps_lsetregs)
12191 (ps_lgetfpregs, ps_lsetfpregs, sol_update_thread_list_callback):
12192 Adjust.
12193 * solib-spu.c (spu_skip_standalone_loader): Pass down target.
12194 * solib-svr4.c (enable_break): Pass down target.
12195 * spu-multiarch.c (parse_spufs_run): Pass down target.
12196 * spu-tdep.c (spu2ppu_sniffer): Pass down target.
12197 * target-delegates.c: Regenerate.
12198 * target.c (g_target_stack): Delete.
12199 (current_top_target): Return the current inferior's top target.
12200 (target_has_execution_1): Refer to the passed-in inferior's top
12201 target.
12202 (target_supports_terminal_ours): Check whether the initial
12203 inferior was already created.
12204 (decref_target): New.
12205 (target_stack::push): Incref/decref the target.
12206 (push_target, push_target, unpush_target): Adjust.
12207 (target_stack::unpush): Defref target.
12208 (target_is_pushed): Return bool. Adjust to refer to the current
12209 inferior's target stack.
12210 (dispose_inferior): Delete, and inline parts ...
12211 (target_preopen): ... here. Only dispose of the current inferior.
12212 (target_detach): Hold strong target reference while detaching.
12213 Pass target down.
12214 (target_thread_name): Add assertion.
12215 (target_resume): Pass down target.
12216 (target_ops::beneath, find_target_at): Adjust to refer to the
12217 current inferior's target stack.
12218 (get_dummy_target): New.
12219 (target_pass_ctrlc): Pass the Ctrl-C to the first inferior that
12220 has a thread running.
12221 (initialize_targets): Rename to ...
12222 (_initialize_target): ... this.
12223 * target.h: Include "gdbsupport/refcounted-object.h".
12224 (struct target_ops): Inherit refcounted_object.
12225 (target_ops::shortname, target_ops::longname): Make const.
12226 (target_ops::async_wait_fd): New method.
12227 (decref_target): Declare.
12228 (struct target_ops_ref_policy): New.
12229 (target_ops_ref): New typedef.
12230 (get_dummy_target): Declare function.
12231 (target_is_pushed): Return bool.
12232 * thread-iter.c (all_matching_threads_iterator::m_inf_matches)
12233 (all_matching_threads_iterator::all_matching_threads_iterator):
12234 Handle filter target.
12235 * thread-iter.h (struct all_matching_threads_iterator, struct
12236 all_matching_threads_range, class all_non_exited_threads_range):
12237 Filter by target too. Remove explicit.
12238 * thread.c (threads_executing): Delete.
12239 (inferior_thread): Pass down current inferior.
12240 (clear_thread_inferior_resources): Pass down thread pointer
12241 instead of ptid_t.
12242 (add_thread_silent, add_thread_with_info, add_thread): Add
12243 process_stratum_target parameter. Use it for thread and inferior
12244 searches.
12245 (is_current_thread): New.
12246 (thread_info::deletable): Use it.
12247 (find_thread_ptid, thread_count, in_thread_list)
12248 (thread_change_ptid, set_resumed, set_running): New
12249 process_stratum_target parameter. Pass it down.
12250 (set_executing): New process_stratum_target parameter. Pass it
12251 down. Adjust reference to 'threads_executing'.
12252 (threads_are_executing): New process_stratum_target parameter.
12253 Adjust reference to 'threads_executing'.
12254 (set_stop_requested, finish_thread_state): New
12255 process_stratum_target parameter. Pass it down.
12256 (switch_to_thread): Also match inferior.
12257 (switch_to_thread): New process_stratum_target parameter. Pass it
12258 down.
12259 (update_threads_executing): Reimplement.
12260 * top.c (quit_force): Pop targets from all inferior.
12261 (gdb_init): Don't call initialize_targets.
12262 * windows-nat.c (windows_nat_target) <get_windows_debug_event>:
12263 Declare.
12264 (windows_add_thread, windows_delete_thread): Adjust.
12265 (get_windows_debug_event): Rename to ...
12266 (windows_nat_target::get_windows_debug_event): ... this. Adjust.
12267 * tracefile-tfile.c (tfile_target_open): Pass down target.
12268 * gdbsupport/common-gdbthread.h (struct process_stratum_target):
12269 Forward declare.
12270 (switch_to_thread): Add process_stratum_target parameter.
12271 * mi/mi-interp.c (mi_on_resume_1): Add process_stratum_target
12272 parameter. Use it.
12273 (mi_on_resume): Pass target down.
12274 * nat/fork-inferior.c (startup_inferior): Add
12275 process_stratum_target parameter. Pass it down.
12276 * nat/fork-inferior.h (startup_inferior): Add
12277 process_stratum_target parameter.
12278 * python/py-threadevent.c (py_get_event_thread): Pass target down.
12279
12280 2020-01-10 Pedro Alves <palves@redhat.com>
12281
12282 * remote.c (remote_target::start_remote): Don't set inferior_ptid
12283 directly. Instead find the first thread in the thread list and
12284 use switch_to_thread.
12285
12286 2020-01-10 Pedro Alves <palves@redhat.com>
12287
12288 * remote.c (remote_target::remote_add_inferior): Don't bind a
12289 process to the current inferior if the current inferior is already
12290 bound to a process.
12291
12292 2020-01-10 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
12293 Pedro Alves <palves@redhat.com>
12294
12295 * remote.c (remote_target::remote_parse_stop_reply) <W/X packets>:
12296 If no process is specified, return null_ptid instead of
12297 inferior_ptid.
12298 (remote_target::wait_as): Handle TARGET_WAITKIND_EXITED /
12299 TARGET_WAITKIND_SIGNALLED with no pid.
12300
12301 2020-01-10 Pedro Alves <palves@redhat.com>
12302
12303 * remote.c (first_remote_resumed_thread): New.
12304 (remote_target::wait_as): Use it as default event_ptid instead of
12305 inferior_ptid.
12306
12307 2020-01-10 Pedro Alves <palves@redhat.com>
12308
12309 * infrun.c (handle_no_resumed): Use all_non_exited_inferiors.
12310
12311 2020-01-10 Pedro Alves <palves@redhat.com>
12312
12313 * tracefile-tfile.c (tfile_target::close): Assert that trace_fd is
12314 not -1.
12315
12316 2020-01-10 Pedro Alves <palves@redhat.com>
12317
12318 * break-catch-sig.c (signal_catchpoint_print_it): Don't pass a
12319 ptid to get_last_target_status.
12320 * break-catch-syscall.c (print_it_catch_syscall): Don't pass a
12321 ptid to get_last_target_status.
12322 * infcmd.c (continue_command): Don't pass a target_waitstatus to
12323 get_last_target_status.
12324 (info_program_command): Don't pass a target_waitstatus to
12325 get_last_target_status.
12326 * infrun.c (init_wait_for_inferior): Use
12327 nullify_last_target_wait_ptid.
12328 (get_last_target_status): Handle nullptr arguments.
12329 (nullify_last_target_wait_ptid): Clear target_last_waitstatus.
12330 (print_stop_event): Don't pass a ptid to get_last_target_status.
12331 (normal_stop): Don't pass a ptid to get_last_target_status.
12332 * infrun.h (get_last_target_status, set_last_target_status): Move
12333 comments here and update.
12334 (nullify_last_target_wait_ptid): Declare.
12335 * linux-fork.c (fork_load_infrun_state): Remove local extern
12336 declaration of nullify_last_target_wait_ptid.
12337 * linux-nat.c (get_detach_signal): Don't pass a target_waitstatus
12338 to get_last_target_status.
12339
12340 2020-01-10 Pedro Alves <palves@redhat.com>
12341
12342 * gdbthread.h (scoped_restore_current_thread)
12343 <dont_restore, restore, m_dont_restore>: Declare.
12344 * thread.c (thread_alive): Add assertion. Return bool.
12345 (switch_to_thread_if_alive): New.
12346 (prune_threads): Switch inferior/thread.
12347 (print_thread_info_1): Switch thread before calling target methods.
12348 (scoped_restore_current_thread::restore): New, factored out from
12349 ...
12350 (scoped_restore_current_thread::~scoped_restore_current_thread):
12351 ... this.
12352 (scoped_restore_current_thread::scoped_restore_current_thread):
12353 Add assertion.
12354 (thread_apply_all_command, thread_select): Use
12355 switch_to_thread_if_alive.
12356 * infrun.c (proceed, restart_threads, handle_signal_stop)
12357 (switch_back_to_stepped_thread): Switch current thread before
12358 calling target methods.
12359
12360 2020-01-10 Pedro Alves <palves@redhat.com>
12361
12362 * inferior.c (switch_to_inferior_no_thread): New function,
12363 factored out from ...
12364 (inferior_command): ... here.
12365 * inferior.h (switch_to_inferior_no_thread): Declare.
12366 * mi/mi-main.c (run_one_inferior): Use
12367 switch_to_inferior_no_thread.
12368
12369 2020-01-10 Pedro Alves <palves@redhat.com>
12370
12371 * infcmd.c (kill_command): Remove dead code.
12372
12373 2020-01-10 Pedro Alves <palves@redhat.com>
12374
12375 * remote.c (remote_target::mourn_inferior): No longer check
12376 whether the target is running.
12377
12378 2020-01-10 Pedro Alves <palves@redhat.com>
12379
12380 * corelow.c (core_target::has_execution): Change parameter type to
12381 inferior pointer.
12382 * inferior.c (number_of_live_inferiors): Use
12383 inferior::has_execution instead of target_has_execution_1.
12384 * inferior.h (inferior::has_execution): New.
12385 * linux-thread-db.c (thread_db_target::update_thread_list): Use
12386 inferior::has_execution instead of target_has_execution_1.
12387 * process-stratum-target.c
12388 (process_stratum_target::has_execution): Change parameter type to
12389 inferior pointer. Check the inferior's PID instead of
12390 inferior_ptid.
12391 * process-stratum-target.h
12392 (process_stratum_target::has_execution): Change parameter type to
12393 inferior pointer.
12394 * record-full.c (record_full_core_target::has_execution): Change
12395 parameter type to inferior pointer.
12396 * target.c (target_has_execution_1): Change parameter type to
12397 inferior pointer.
12398 (target_has_execution_current): Adjust.
12399 * target.h (target_ops::has_execution): Change parameter type to
12400 inferior pointer.
12401 (target_has_execution_1): Change parameter type to inferior
12402 pointer. Change return type to bool.
12403 * tracefile.h (tracefile_target::has_execution): Change parameter
12404 type to inferior pointer.
12405
12406 2020-01-10 Pedro Alves <palves@redhat.com>
12407
12408 * exceptions.c (print_flush): Remove current_top_target() check.
12409
12410 2020-01-10 Pedro Alves <palves@redhat.com>
12411
12412 * remote.c (show_remote_exec_file): Show the current inferior's
12413 exec-file instead of the command variable's value.
12414
12415 2020-01-10 Pedro Alves <palves@redhat.com>
12416
12417 * record-full.c (record_full_resume_ptid): New global.
12418 (record_full_target::resume): Set it.
12419 (record_full_wait_1): Use record_full_resume_ptid instead of
12420 inferior_ptid.
12421
12422 2020-01-10 Pedro Alves <palves@redhat.com>
12423
12424 * gdbthread.h (scoped_restore_current_thread)
12425 <dont_restore, restore, m_dont_restore>: Declare.
12426 * thread.c (thread_alive): Add assertion. Return bool.
12427 (switch_to_thread_if_alive): New.
12428 (prune_threads): Switch inferior/thread.
12429 (print_thread_info_1): Switch thread before calling target methods.
12430 (scoped_restore_current_thread::restore): New, factored out from
12431 ...
12432 (scoped_restore_current_thread::~scoped_restore_current_thread):
12433 ... this.
12434 (scoped_restore_current_thread::scoped_restore_current_thread):
12435 Add assertion.
12436 (thread_apply_all_command, thread_select): Use
12437 switch_to_thread_if_alive.
12438
12439 2020-01-10 George Barrett <bob@bob131.so>
12440
12441 * stap-probe.c (stap_modify_semaphore): Don't check for null
12442 semaphores.
12443 (stap_probe::set_semaphore, stap_probe::clear_semaphore): Check
12444 for null semaphores.
12445
12446 2020-01-09 Andrew Burgess <andrew.burgess@embecosm.com>
12447
12448 * tui/tui-source.c (tui_source_window::do_scroll_vertical): Update
12449 all source windows, and maintain horizontal scroll status while
12450 doing so.
12451
12452 2020-01-09 Tom Tromey <tom@tromey.com>
12453
12454 PR tui/18932:
12455 * tui/tui-source.c (tui_source_window::do_scroll_vertical): Call
12456 update_source_window, not print_source_lines.
12457
12458 2020-01-09 Andrew Burgess <andrew.burgess@embecosm.com>
12459
12460 * tui/tui.c (tui_enable): Register tui hooks after calling
12461 tui_display_main.
12462
12463 2020-01-09 Christian Biesinger <cbiesinger@google.com>
12464
12465 * gdbsupport/common-defs.h: Don't define _FORTIFY_SOURCE on MinGW.
12466
12467 2020-01-08 Simon Marchi <simon.marchi@efficios.com>
12468
12469 * thread.c (print_thread_info_1): Fix indentation.
12470
12471 2020-01-09 Christian Biesinger <cbiesinger@google.com>
12472
12473 * symtab.c (general_symbol_info::compute_and_set_names): Move the
12474 unique_xmalloc_ptr outside the if to always free the demangled name.
12475
12476 2020-01-08 Tom Tromey <tromey@adacore.com>
12477
12478 * xcoffread.c (enter_line_range, read_xcoff_symtab)
12479 (process_xcoff_symbol, xcoff_symfile_offsets): Update.
12480 * symtab.h (MSYMBOL_VALUE_ADDRESS): Update.
12481 (struct section_offsets, ANOFFSET, SIZEOF_N_SECTION_OFFSETS):
12482 Remove.
12483 (section_offsets): New typedef.
12484 * symtab.c (fixup_section, get_msymbol_address): Update.
12485 * symmisc.c (dump_msymbols): Update.
12486 * symfile.h (relative_addr_info_to_section_offsets)
12487 (symfile_map_offsets_to_segments): Update.
12488 * symfile.c (build_section_addr_info_from_objfile)
12489 (init_objfile_sect_indices): Update.
12490 (struct place_section_arg): Change type of "offsets".
12491 (place_section): Update.
12492 (relative_addr_info_to_section_offsets): Change type of
12493 "section_offsets". Remove "num_sections" parameter.
12494 (default_symfile_offsets, syms_from_objfile_1)
12495 (set_objfile_default_section_offset): Update.
12496 (reread_symbols): No need to preserve section offsets by hand.
12497 (symfile_map_offsets_to_segments): Change type of "offsets".
12498 * stap-probe.c (relocate_address): Update.
12499 * stabsread.h (process_one_symbol): Update.
12500 * solib-target.c (struct lm_info_target) <offsets>: Change type.
12501 (solib_target_relocate_section_addresses): Update.
12502 * solib-svr4.c (enable_break, svr4_relocate_main_executable):
12503 Update.
12504 * solib-frv.c (frv_relocate_main_executable): Update.
12505 * solib-dsbt.c (dsbt_relocate_main_executable): Update.
12506 * solib-aix.c (solib_aix_get_section_offsets): Change return
12507 type.
12508 (solib_aix_solib_create_inferior_hook): Update.
12509 * remote.c (remote_target::get_offsets): Update.
12510 * psymtab.c (find_pc_sect_psymtab): Update.
12511 * psympriv.h (struct partial_symbol) <address, text_low,
12512 text_high>: Update.
12513 * objfiles.h (obj_section_offset): Update.
12514 (struct objfile) <section_offsets>: Change type.
12515 <num_sections>: Remove.
12516 (objfile_relocate): Update.
12517 * objfiles.c (entry_point_address_query): Update
12518 (relocate_one_symbol): Change type of "section_offsets".
12519 (objfile_relocate1, objfile_relocate1): Change type of
12520 "new_offsets".
12521 (objfile_rebase1): Update.
12522 * mipsread.c (mipscoff_symfile_read): Update.
12523 (read_alphacoff_dynamic_symtab): Remove "section_offsets"
12524 parameter.
12525 * mdebugread.c (parse_symbol): Change type of "section_offsets".
12526 (parse_external, psymtab_to_symtab_1): Update.
12527 * machoread.c (macho_symfile_offsets): Update.
12528 * ia64-tdep.c (ia64_find_unwind_table): Update.
12529 * hppa-tdep.c (read_unwind_info): Update.
12530 * hppa-bsd-tdep.c (hppabsd_find_global_pointer): Update.
12531 * dwarf2read.c (create_addrmap_from_index)
12532 (create_addrmap_from_aranges, dw2_find_pc_sect_compunit_symtab)
12533 (process_psymtab_comp_unit_reader, add_partial_symbol)
12534 (add_partial_subprogram, process_full_comp_unit)
12535 (read_file_scope, read_func_scope, read_lexical_block_scope)
12536 (read_call_site_scope, dwarf2_rnglists_process)
12537 (dwarf2_ranges_process, dwarf2_ranges_read)
12538 (dwarf_decode_lines_1, var_decode_location, new_symbol)
12539 (dwarf2_fetch_die_loc_sect_off, dwarf2_per_cu_text_offset):
12540 Update.
12541 * dwarf2-frame.c (execute_cfa_program, dwarf2_frame_find_fde):
12542 Update.
12543 * dtrace-probe.c (dtrace_probe::get_relocated_address): Update.
12544 * dbxread.c (read_dbx_symtab, read_ofile_symtab): Update.
12545 (process_one_symbol): Change type of "section_offsets".
12546 * ctfread.c (get_objfile_text_range): Update.
12547 * coffread.c (coff_symtab_read, enter_linenos)
12548 (process_coff_symbol): Update.
12549 * coff-pe-read.c (add_pe_forwarded_sym): Update.
12550 * amd64-windows-tdep.c (amd64_windows_find_unwind_info): Update.
12551
12552 2020-01-08 Tom Tromey <tromey@adacore.com>
12553
12554 * dwarf2read.c (parse_macro_definition): Use std::string.
12555 (parse_macro_definition): Likewise.
12556
12557 2020-01-08 Tom Tromey <tromey@adacore.com>
12558
12559 * dwarf2read.c (abbrev_table_read_table): Use std::vector.
12560 (ATTR_ALLOC_CHUNK): Remove.
12561
12562 2020-01-08 Tom Tromey <tromey@adacore.com>
12563
12564 * dwarf2read.c (fixup_go_packaging): Use unique_xmalloc_ptr.
12565
12566 2020-01-08 Tom Tromey <tromey@adacore.com>
12567
12568 * dwarf2read.c (add_partial_symbol): Use unique_xmalloc_ptr.
12569 (dwarf2_compute_name, open_dwo_file): Likewise.
12570 (process_enumeration_scope): Use std::vector.
12571 (guess_partial_die_structure_name): Use unique_xmalloc_ptr.
12572 (partial_die_info::fixup, dwarf2_start_subfile)
12573 (guess_full_die_structure_name, dwarf2_name): Likewise.
12574 (determine_prefix): Update.
12575 (guess_full_die_structure_name): Make return type const.
12576 (partial_die_full_name): Return unique_xmalloc_ptr.
12577 (DW_FIELD_ALLOC_CHUNK): Remove.
12578
12579 2020-01-07 Tom Tromey <tromey@adacore.com>
12580
12581 PR build/24937:
12582 * stap-probe.c (class stap_static_probe_ops): Add constructor.
12583
12584 2020-01-02 Jon Turney <jon.turney@dronecode.org.uk>
12585
12586 * cli/cli-style.c: Set cli_styling to 'true' in the Cygwin build.
12587
12588 2020-01-06 Andrew Burgess <andrew.burgess@embecosm.com>
12589
12590 * stack.c (print_frame_info): Move disassemble_next_line code
12591 inside source_print block.
12592
12593 2020-01-06 Eli Zaretskii <eliz@gnu.org>
12594
12595 * gdbsupport/gdb_wait.c: Include <signal.h> instead of
12596 gdb/signals.h, as we are now using native signal symbols.
12597
12598 2020-01-06 Shahab Vahedi <shahab@synopsys.com>
12599
12600 * tui/tui-disasm.c (tui_disasm_window::addr_is_displayed): Avoid
12601 overflow by an early check of content vs threshold.
12602 * tui/tui-source.c (tui_source_window::line_is_displayed):
12603 Likewise.
12604
12605 2020-01-06 Eli Zaretskii <eliz@gnu.org>
12606
12607 * NEWS: Mention the recent fix of $_exitsignal on MS-Windows.
12608
12609 2020-01-02 Jon Turney <jon.turney@dronecode.org.uk>
12610
12611 * coff-pe-read.c (read_pe_exported_syms): Don't try to read the
12612 export table if no section contains it's RVA.
12613
12614 2020-01-06 Eli Zaretskii <eliz@gnu.org>
12615
12616 * windows-tdep.c: Fix a typo in WINDOWS_SIGABRT.
12617
12618 2020-01-06 Hannes Domani <ssbssa@yahoo.de>
12619
12620 * source.c (print_source_lines_base): Set last_line_listed.
12621
12622 2020-01-06 Shahab Vahedi <shahab@synopsys.com>
12623
12624 * tui/tui-disasm.c: Remove trailing spaces.
12625
12626 2020-01-06 Eli Zaretskii <eliz@gnu.org>
12627 Pedro Alves <palves@redhat.com>
12628
12629 * Makefile.in (COMMON_SFILES): Add gdbsupport/gdb_wait.c.
12630 * windows-tdep.c: New enumeration of WINDOWS_SIG* signals.
12631 (windows_gdb_signal_to_target): New function, uses the above
12632 enumeration to convert GDB internal signal codes to equivalent
12633 Windows codes.
12634 (windows_init_abi): Call set_gdbarch_gdb_signal_to_target.
12635 * windows-nat.c: Include "gdb_wait.h".
12636 (get_windows_debug_event): Extract the fatal exception from the
12637 exit status and convert to the equivalent Posix signal number.
12638 * cli/cli-cmds.c (exit_status_set_internal_vars): Account for the
12639 possibility that WTERMSIG returns GDB_SIGNAL_UNKNOWN.
12640 * gdbsupport/gdb_wait.c: New file, implements
12641 windows_status_to_termsig.
12642 * gdbsupport/gdb_wait.h (WIFEXITED, WIFSIGNALED, WEXITSTATUS)
12643 (WTERMSIG) [__MINGW32__]: Separate definitions for MinGW.
12644
12645 2020-01-05 Andrew Burgess <andrew.burgess@embecosm.com>
12646
12647 * tui/tui-layout.c (tui_add_win_to_layout): Use tui_set_layout not
12648 show_layout.
12649
12650 2020-01-05 Luis Machado <luis.machado@linaro.org>
12651
12652 * aarch64-linux-nat.c
12653 (aarch64_linux_nat_target::thread_architecture): Use bfd_arch_aarch64
12654 and bfd_mach_aarch64.
12655
12656 2020-01-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
12657
12658 * ui-file.c (stdio_file::can_emit_style_escape)
12659 (tee_file::can_emit_style_escape): Ensure style is used also on
12660 gdb_stderr when gdb_stderr is a tty supporting styling, similarly
12661 to gdb_stdout.
12662 * main.c (set_gdb_data_directory): Use file style to output the
12663 warning that the given pathname is not a directory.
12664 * top.c (show_history_filename, gdb_safe_append_history)
12665 (show_gdb_datadir): Use file style.
12666
12667 2020-01-03 Hannes Domani <ssbssa@yahoo.de>
12668
12669 * solib-target.c (struct lm_info_target):
12670 Change offsets to be a unique_xmalloc_ptr.
12671 (solib_target_relocate_section_addresses): Update.
12672
12673 2020-01-03 Hannes Domani <ssbssa@yahoo.de>
12674
12675 * windows-nat.c (windows_clear_solib): Free so_list linked list.
12676
12677 2020-01-03 Bernd Edlinger <bernd.edlinger@hotmail.de>
12678
12679 * MAINTAINERS (Write After Approval): Add myself.
12680
12681 2020-01-02 Luis Machado <luis.machado@linaro.org>
12682
12683 * proc-service.c (get_ps_regcache): Remove reference to obsolete
12684 Cell BE architecture.
12685 * target.h (struct target_ops) <thread_architecture>: Likewise.
12686
12687 2020-01-01 Hannes Domani <ssbssa@yahoo.de>
12688
12689 * Makefile.in: Use INSTALL_PROGRAM_ENV.
12690
12691 2020-01-01 Hannes Domani <ssbssa@yahoo.de>
12692
12693 * MAINTAINERS (Write After Approval): Add myself.
12694
12695 2020-01-01 Joel Brobecker <brobecker@adacore.com>
12696
12697 * gdbarch.sh: Update copyright year range of generated files.
12698
12699 2020-01-01 Joel Brobecker <brobecker@adacore.com>
12700
12701 Update copyright year range in all GDB files.
12702
12703 2020-01-01 Joel Brobecker <brobecker@adacore.com>
12704
12705 * copyright.py: Convert to Python 3.
12706
12707 2020-01-01 Joel Brobecker <brobecker@adacore.com>
12708
12709 * copyright.py: Adapt after move of gnulib directory from gdb
12710 directory to toplevel directory.
12711
12712 2020-01-01 Joel Brobecker <brobecker@adacore.com>
12713
12714 * copyright.py (main): Exit if run from the wrong directory.
12715
12716 2020-01-01 Joel Brobecker <brobecker@adacore.com>
12717
12718 * top.c (print_gdb_version): Change copyright year to 2020.
12719
12720 2020-01-01 Joel Brobecker <brobecker@adacore.com>
12721
12722 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2019.
12723
12724 For older changes see ChangeLog-2019.
12725 \f
12726 Local Variables:
12727 mode: change-log
12728 left-margin: 8
12729 fill-column: 74
12730 version-control: never
12731 coding: utf-8
12732 End:
This page took 0.396149 seconds and 4 git commands to generate.