1bfe02b504ff344ad9f46ecc3b660c7b47a87053
[deliverable/binutils-gdb.git] / gdb / ChangeLog
1 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
2
3 * gdbtypes.h (TYPE_STUB_SUPPORTED): Remove, replace all
4 uses with type::stub_is_supported.
5
6 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
7
8 * gdbtypes.h (struct type) <stub_is_supported, set_stub_is_supported>: New methods.
9 (TYPE_STUB_SUPPORTED): Use type::stub_is_supported, change all write call sites to
10 use type::set_stub_is_supported.
11
12 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
13
14 * gdbtypes.h (TYPE_VECTOR): Remove, replace all
15 uses with type::is_vector.
16
17 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
18
19 * gdbtypes.h (struct type) <is_vector, set_is_vector>: New methods.
20 (TYPE_VECTOR): Use type::is_vector, change all write call sites to
21 use type::set_is_vector.
22
23 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
24
25 * gdbtypes.h (TYPE_VARARGS): Remove, replace all
26 uses with type::has_varargs.
27
28 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
29
30 * gdbtypes.h (struct type) <has_varargs, set_has_varargs>: New methods.
31 (TYPE_VARARGS): Use type::has_varargs, change all write call sites to
32 use type::set_has_varargs.
33
34 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
35
36 * gdbtypes.h (TYPE_PROTOTYPED): Remove, replace all
37 uses with type::is_prototyped.
38
39 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
40
41 * gdbtypes.h (struct type) <is_prototyped, set_is_prototyped>:
42 New methods.
43 (TYPE_PROTOTYPED): Use type::is_prototyped, change all write
44 call sites to use type::set_is_prototyped.
45
46 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
47
48 * gdbtypes.h (TYPE_TARGET_STUB): Remove, replace all
49 uses with type::target_is_stub.
50
51 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
52
53 * gdbtypes.h (struct type) <target_is_stub, set_target_is_stub>:
54 New methods.
55 (TYPE_TARGET_STUB): Use type::is_stub, change all write call
56 sites to use type::set_target_is_stub.
57
58 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
59
60 * gdbtypes.h (TYPE_STUB): Remove, replace all
61 uses with type::is_stub.
62
63 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
64
65 * gdbtypes.h (struct type) <is_stub, set_is_stub>: New methods.
66 (TYPE_STUB): Use type::is_stub, change all write call sites to
67 use type::set_is_stub.
68
69 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
70
71 * gdbtypes.h (TYPE_NOSIGN): Remove, replace all uses with
72 type::has_no_signedness.
73
74 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
75
76 * gdbtypes.h (struct type) <has_no_signedness,
77 set_has_no_signedness>: New methods.
78 (TYPE_NOSIGN): Use type::has_no_signedness, change all write
79 call sites to use type::set_has_no_signedness.
80
81 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
82
83 * gdbtypes.h (TYPE_UNSIGNED): Remove, replace all uses with
84 type::is_unsigned.
85
86 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
87
88 * gdbtypes.h (struct type) <is_unsigned, set_is_unsigned>: New
89 methods.
90 (TYPE_UNSIGNED): Use type::is_unsigned. Change all write call
91 sites to use type::set_is_unsigned.
92
93 2020-09-14 Fredrik Hederstierna <fredrik.hederstierna@verisure.com>
94 Adam Renquinha <arenquinha@cimeq.qc.ca>
95
96 * arm-tdep.c (arm_m_exception_cache): Try use correct stack
97 pointer and stack frame offset when unwinding.
98
99 2020-09-13 Pedro Alves <pedro@palves.net>
100
101 * NEWS: Document "-break-insert --qualified".
102 * mi/mi-cmd-break.c (mi_cmd_break_insert_1): Handle "--qualified".
103
104 2020-09-13 Pedro Alves <pedro@palves.net>
105
106 * linespec.c (classify_mtype, compare_msyms): Delete.
107 (search_minsyms_for_name): Remove classification logic. Instead
108 filter out trampoline symbols if we also found an external
109 function of the same name.
110
111 2020-09-13 Joel Brobecker <brobecker@adacore.com>
112
113 * NEWS: Create a new section for the next release branch.
114 Rename the section of the current branch, now that it has
115 been cut.
116
117 2020-09-13 Joel Brobecker <brobecker@adacore.com>
118
119 GDB 10 branch created (8087c3fa8b5d695e3e29e69d70d0b35ec902ac59):
120 * version.in: Bump version to 11.0.50.DATE-git.
121
122 2020-09-12 Joel Brobecker <brobecker@adacore.com>
123
124 * infrun.c (namespace selftests): Only define #if GDB_SELF_TEST.
125
126 2020-09-11 Moritz Riesterer <moritz.riesterer@intel.com>
127 Felix Willgerodt <Felix.Willgerodt@intel.com>
128
129 * gdbarch.sh: Added bfloat16 type.
130 * gdbarch.c: Regenerated.
131 * gdbarch.h: Regenerated.
132 * gdbtypes.c (floatformats_bfloat16): New struct.
133 (gdbtypes_post_init): Add builtin_bfloat16.
134 * gdbtypes.h (struct builtin_type) <builtin_bfloat16>: New member.
135 (floatformats_bfloat16): New struct.
136 * i386-tdep.c (i386_zmm_type): Add field "v32_bfloat16"
137 (i386_ymm_type): Add field "v16_bfloat16"
138 (i386_gdbarch_init): Add set_gdbarch_bfloat16_format.
139 * target-descriptions.c (make_gdb_type): Add case TDESC_TYPE_BFLOAT16.
140 * gdbsupport/tdesc.cc (tdesc_predefined_types): New member bfloat16.
141 * gdbsupport/tdesc.h (tdesc_type_kind): New member TDESC_TYPE_BFLOAT16.
142 * features/i386/64bit-avx512.xml: Add bfloat16 type.
143 * features/i386/64bit-avx512.c: Regenerated.
144 * features/i386/64bit-sse.xml: Add bfloat16 type.
145 * features/i386/64bit-sse.c: Regenerated.
146
147 2020-09-11 Felix Willgerodt <felix.willgerodt@intel.com>
148
149 * i386-tdep.c (i386_zmm_type): Fix field names.
150 (i386_ymm_type): Fix field names.
151
152 2020-09-11 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
153
154 * breakpoint.c: Fix typo in the help message of the
155 "set breakpoint condition-evaluation" command.
156
157 2020-09-10 Kamil Rytarowski <n54@gmx.com>
158
159 * nbsd-nat.c: Include "nat/netbsd-nat.h".
160 * (nbsd_nat_target::pid_to_exec_file)
161 (nbsd_nat_target::thread_alive, nbsd_nat_target::thread_name)
162 (nbsd_nat_target::post_startup_inferior)
163 (nbsd_nat_target::post_attach, nbsd_nat_target::xfer_partial)
164 (nbsd_add_threads): Switch local code to common gdb/nat functions.
165 * (nbsd_pid_to_cmdline): Call sysctl from the global namespace.
166 * (nbsd_thread_lister): Remove.
167
168 2020-09-10 Kamil Rytarowski <n54@gmx.com>
169
170 * fork-inferior.c (startup_inferior): Avoid double free.
171
172 2020-09-10 Kamil Rytarowski <n54@gmx.com>
173
174 * netbsd-nat.h (netbsd_nat::qxfer_siginfo): Add.
175 * netbsd-nat.c (netbsd_nat::qxfer_siginfo): Likewise.
176
177 2020-09-10 Kamil Rytarowski <n54@gmx.com>
178
179 * netbsd-nat.h (netbsd_nat::enable_proc_events): Add.
180 * netbsd-nat.c: Include <sys/ptrace.h>.
181 * (netbsd_nat::enable_proc_events): Add.
182
183 2020-09-10 Kamil Rytarowski <n54@gmx.com>
184
185 * netbsd-nat.h: Include "gdbsupport/function-view.h".
186 * (netbsd_nat::thread_alive, netbsd_nat::thread_name)
187 (netbsd_nat::for_each_thread): Add.
188 * netbsd-nat.c: Include "gdbsupport/common-defs.h" and
189 "gdbsupport/common-debug.h".
190 * (netbsd_nat::netbsd_thread_lister)
191 (netbsd_nat::thread_alive, netbsd_nat::thread_name)
192 (netbsd_nat::for_each_thread): Add.
193
194 2020-09-10 Kamil Rytarowski <n54@gmx.com>
195
196 * netbsd-nat.h: Include <unistd.h>.
197 * (netbsd_nat::pid_to_exec_file): Add.
198 * netbsd-nat.c: Include <sys/types.h> and <sys/sysctl.h>.
199 * (netbsd_nat::pid_to_exec_file) Add.
200
201 2020-09-10 Kamil Rytarowski <n54@gmx.com>
202
203 * configure.nat (NATDEPFILES): Add nat/netbsd-nat.o when needed.
204
205 2020-09-10 Kamil Rytarowski <n54@gmx.com>
206
207 * netbsd-nat.h: New file.
208 * netbsd-nat.c: Likewise.
209
210 2020-09-09 Tom Tromey <tromey@adacore.com>
211
212 * ada-lang.c (remove_extra_symbols): Do not increment when
213 removing an element
214
215 2020-09-08 Tom Tromey <tromey@adacore.com>
216
217 * gdb_bfd.c (gdb_bfd_open): Call bfd_fopen when fstat fails.
218
219 2020-09-08 Tom Tromey <tromey@adacore.com>
220
221 PR win32/25302:
222 * gdb_bfd.c (gdb_bfd_data): Add "st" parameter.
223 (gdb_bfd_init_data): New function.
224 (gdb_bfd_open, gdb_bfd_ref): Use gdb_bfd_init_data.
225
226 2020-09-07 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
227
228 * infrun.c (fetch_inferior_event): Use
229 `switch_to_target_no_thread` to switch the target.
230
231 2020-09-06 Tom Tromey <tom@tromey.com>
232
233 * symfile.h (dwarf2_free_objfile): Don't declare.
234
235 2020-09-03 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
236
237 * gdb/i386-tdep.c (i386_floatformat_for_type): Added conditions
238 to match 16 byte real/complex type generated by Flang compiler.
239
240 2020-09-03 Tom de Vries <tdevries@suse.de>
241
242 PR breakpoint/26546
243 * dwarf2/read.c (new_symbol): Tag label symbol without DW_AT_low_pc as
244 LOC_OPTIMIZED_OUT instead of LOC_LABEL.
245
246 2020-09-02 Simon Marchi <simon.marchi@polymtl.ca>
247
248 * maint.c (index_digits): New function.
249 (struct maint_print_section_data): Remove.
250 (print_bfd_section_info): Remove print_data parameter, add arg
251 and index_digits.
252 (print_objfile_section_info): Likewise.
253 (print_bfd_section_info_maybe_relocated): Likewise (plus
254 objfile).
255 (maintenance_info_sections): Adjust calls.
256
257 2020-09-02 Tom Tromey <tromey@adacore.com>
258
259 * ada-varobj.c (ada_varobj_get_ptr_number_of_children): Return 0
260 for null pointers.
261 (ada_varobj_adjust_for_child_access): Special-case null pointers.
262
263 2020-09-01 Simon Marchi <simon.marchi@polymtl.ca>
264
265 * bcache.h (struct bcache) <insert>: Change type of `added` to
266 pointer to bool.
267 * bcache.c (bcache::insert): Likewise.
268 * gdbtypes.c (check_types_worklist): Adjust.
269 * psymtab.c (add_psymbol_to_bcache): Adjust.
270
271 2020-08-31 Kevin Buettner <kevinb@redhat.com>
272
273 * corelow.c (unordered_set): Include.
274 (class core_target): Add field 'm_core_unavailable_mappings'.
275 (core_target::build_file_mappings): Print only one warning
276 per inaccessible file. Add unavailable/broken mappings
277 to m_core_unavailable_mappings.
278 (core_target::xfer_partial): Call...
279 (core_target::xfer_memory_via_mappings): New method.
280
281 2020-08-31 Simon Marchi <simon.marchi@polymtl.ca>
282
283 * dwarf2/read.c (struct field_info) <non_public_fields>: Change
284 type to bool.
285
286 2020-08-31 Simon Marchi <simon.marchi@polymtl.ca>
287
288 * dwarf2/read.c (struct field_info): Fix indentation.
289
290 2020-08-31 Simon Marchi <simon.marchi@efficios.com>
291
292 * frame-unwind.h (frame_prev_register_ftype): Fix adjective
293 ordering in comment.
294 * frame.c (frame_id_eq): Fix indentation.
295
296 2020-08-31 Scott Linder <scott@scottlinder.com>
297 Simon Marchi <simon.marchi@efficios.com>
298
299 * inline-frame.c (inline_frame_this_id): Remove assert that prevents
300 inline frame ids in outer frame.
301
302 2020-08-31 Simon Marchi <simon.marchi@efficios.com>
303
304 * frame.h (enum frame_id_stack_status) <FID_STACK_OUTER>: New.
305 * frame.c (fprint_frame_id): Handle FID_STACK_OUTER.
306 (outer_frame_id): Use FID_STACK_OUTER instead of
307 FID_STACK_INVALID.
308 (frame_id_p): Don't check for outer_frame_id.
309
310 2020-08-31 Simon Marchi <simon.marchi@efficios.com>
311
312 * frame-unwind.c (frame_unwind_got_optimized): Don't set
313 regnum/frame in value. Call allocate_value_lazy.
314 * frame.c (frame_unwind_register_value): Use
315 val_print_not_saved.
316
317 2020-08-31 Simon Marchi <simon.marchi@efficios.com>
318
319 * gdbtypes.h (NULL_TYPE): Remove, change all uses to nullptr.
320
321 2020-08-29 Pedro Alves <pedro@palves.net>
322
323 * progspace.c (print_program_space): Use all_inferiors. Switch to
324 the inferior before calling target_pid_to_str.
325
326 2020-08-28 Tom Tromey <tom@tromey.com>
327
328 * xcoffread.c (xcoff_end_psymtab): Update comment.
329 * dbxread.c (dbx_end_psymtab): Update comment.
330
331 2020-08-28 Tom de Vries <tdevries@suse.de>
332
333 PR breakpoint/26544
334 * breakpoint.c (parse_breakpoint_sals): Remove const from struct
335 event_location.
336 (create_breakpoint): Same.
337 (base_breakpoint_decode_location): Same.
338 (bkpt_create_sals_from_location): Same.
339 (bkpt_decode_location): Same.
340 (bkpt_probe_create_sals_from_location): Same.
341 (bkpt_probe_decode_location): Same.
342 (tracepoint_create_sals_from_location): Same.
343 (tracepoint_decode_location): Same.
344 (tracepoint_probe_decode_location): Same.
345 (strace_marker_create_sals_from_location): Same.
346 (strace_marker_decode_location): Same.
347 (create_sals_from_location_default): Same.
348 (decode_location_default): Same.
349 * breakpoint.h (struct breakpoint_ops): Same.
350 (create_breakpoint): Same.
351 * linespec.h (decode_line_full): Same.
352 * linespec.c (decode_line_full): Same. Throw error if
353 result.size () == 0.
354
355 2020-08-27 Pedro Alves <pedro@palves.net>
356
357 PR gdb/26524
358 * breakpoint.c (until_break_fsm) <location_breakpoint,
359 caller_breakpoint>: Delete fields.
360 <breakpoints>: New field.
361 <until_break_fsm>: Adjust to save a breakpoint vector instead of
362 two individual breakpoints.
363 (until_break_fsm::should_stop): Loop over breakpoints in the
364 breakpoint vector.
365 (until_break_fsm::clean_up): Adjust to clear the breakpoints
366 vector.
367 (until_break_command): Handle location expanding into multiple
368 sals.
369
370 2020-08-27 Pedro Alves <pedro@palves.net>
371
372 PR gdb/26523
373 * inline-frame.c (stopped_by_user_bp_inline_frame): Also consider
374 bp_until breakpoints user-specified locations. Update intro
375 comment.
376
377 2020-08-27 Simon Marchi <simon.marchi@polymtl.ca>
378
379 * gdb_bfd.h (gdb_bfd_section_iterator, gdb_bfd_section_range,
380 gdb_bfd_sections): New.
381 * maint.c (print_bfd_section_info): Change param type to
382 maint_print_section_data.
383 (print_objfile_section_info): Likewise.
384 (print_bfd_section_info_maybe_relocated): Likewise.
385 (maintenance_info_sections): Use gdb_bfd_sections.
386
387 2020-08-25 Shahab Vahedi <shahab@synopsys.com>
388
389 * MAINTAINERS: Add ARC target and maintainer.
390
391 2020-08-25 Anton Kolesov <anton.kolesov@synopsys.com>
392
393 * configure.tgt: ARC support for GNU/Linux.
394 * Makefile.in (ALL_TARGET_OBJS): Likewise.
395 * arc-linux-tdep.c: New file.
396 * arc-tdep.h (ARC_STATUS32_L_MASK, ARC_STATUS32_DE_MASK): Declare.
397 * arc-tdep.c (arc_write_pc): Use it.
398
399 2020-08-25 Shahab Vahedi <shahab@synopsys.com>
400
401 * arc-tdep.c (arc_check_for_hardware_loop): New.
402 * arc-tdep.h (gdbarch_tdep): New field has_hw_loops.
403
404 2020-08-25 Shahab Vahedi <shahab@synopsys.com>
405
406 * arc-tdep.h: Include "gdbarch.h".
407
408 2020-08-25 Shahab Vahedi <shahab@synopsys.com>
409
410 * arch/arc.h
411 (arc_gdbarch_features): New class to stir the selection of target XML.
412 (arc_create_target_description): Use FEATURES to choose XML target.
413 (arc_lookup_target_description): Use arc_create_target_description
414 to create _new_ target descriptions or return the already created
415 ones if the FEATURES is the same.
416 * arch/arc.c: Implementation of prototypes described above.
417 * gdb/arc-tdep.h (arc_regnum enum): Add more registers.
418 (arc_gdbarch_features_init): Initialize the FEATURES struct.
419 * arc-tdep.c (*_feature_name): Make feature names consistent.
420 (arc_register_feature): A new struct to hold information about
421 registers of a particular target/feature.
422 (arc_check_tdesc_feature): Check if XML provides registers in
423 compliance with ARC_REGISTER_FEATURE structs.
424 (arc_update_acc_reg_names): Add aliases for r58 and r59.
425 (determine_*_reg_feature_set): Which feature name to look for.
426 (arc_gdbarch_features_init): Given MACH and ABFD, initialize FEATURES.
427 (mach_type_to_arc_isa): Convert from a set of binutils machine types
428 to expected ISA enums to be used in arc_gdbarch_features structs.
429 * features/Makefile (FEATURE_XMLFILES): Add new files.
430 * gdb/features/arc/v1-aux.c: New file.
431 * gdb/features/arc/v1-aux.xml: Likewise.
432 * gdb/features/arc/v1-core.c: Likewise.
433 * gdb/features/arc/v1-core.xml: Likewise.
434 * gdb/features/arc/v2-aux.c: Likewise.
435 * gdb/features/arc/v2-aux.xml: Likewise.
436 * gdb/features/arc/v2-core.c: Likewise.
437 * gdb/features/arc/v2-core.xml: Likewise.
438 * NEWS (Changes since GDB 9): Announce obsolence of old feature names.
439
440 2020-08-25 Gaius Mulley <gaiusmod2@gmail.com>
441 Andrew Burgess <andrew.burgess@embecosm.com>
442
443 PR m2/26372
444 * m2-exp.y (exp): Improve comment for non_empty_arglist case, add
445 an assert. Remove single element array indexing pattern as the
446 MULTI_SUBSCRIPT support will handle this case too.
447
448 2020-08-24 Simon Marchi <simon.marchi@polymtl.ca>
449
450 * value.h (valprint_check_validity): Move declaration from
451 here...
452 * valprint.h (valprint_check_validity): ... to here.
453
454 2020-08-24 Simon Marchi <simon.marchi@efficios.com>
455
456 * debug.h: New file.
457 * debug.c (debug_prefixed_vprintf): New function.
458 * infrun.c (infrun_debug_printf_1): Use debug_prefixed_vprintf.
459 * linux-nat.c (linux_nat_debug_printf_1): Likewise.
460
461 2020-08-24 Simon Marchi <simon.marchi@efficios.com>
462
463 * infrun.h (infrun_debug_printf_1): New function declaration.
464 (infrun_debug_printf): New macro.
465 * infrun.c (infrun_debug_printf_1): Use infrun_debug_printf
466 throughout.
467 (infrun_debug_printf): New function.
468 * breakpoint.c (should_be_inserted): Use infrun_debug_printf.
469 (handle_jit_event): Likewise.
470
471 2020-08-21 Mark Wielaard <mark@klomp.org>
472
473 * ada-lex.l: Extend register warnings diagnostics comment for g++.
474
475 2020-08-22 Simon Marchi <simon.marchi@efficios.com>
476
477 * frame.c (enum class frame_id_status): New.
478 (struct frame_info) <this_id::p>: Change type to frame_id_status.
479 (fprintf_frame): Update.
480 (compute_frame_id): Set frame id status to "computing" on entry.
481 Set it back to "not_computed" on failure and to "computed" on
482 success.
483 (get_frame_id): Assert the frame id is not being computed.
484 (create_sentinel_frame): Use frame_id_status::COMPUTED.
485 (create_new_frame): Likewise.
486 (frame_cleanup_after_sniffer): Update assert.
487
488 2020-08-20 Simon Marchi <simon.marchi@polymtl.ca>
489
490 * regcache.c (pid_ptid_regcache_map): New type.
491 (target_ptid_regcache_map): Remove.
492 (target_pid_ptid_regcache_map): New type.
493 (regcaches): Change type to target_pid_ptid_regcache_map.
494 (get_thread_arch_aspace_regcache): Update.
495 (regcache_thread_ptid_changed): Update, handle pid-like ptid
496 case.
497 (regcaches_size): Update.
498 (regcache_count): Update.
499 (registers_changed_ptid_target_pid_test): New.
500 (_initialize_regcache): Register new test.
501
502 2020-08-20 Simon Marchi <simon.marchi@polymtl.ca>
503
504 * regcache.c (regcache_count): New.
505 (struct regcache_test_data): New.
506 (regcache_test_data_up): New.
507 (populate_regcaches_for_test): New.
508 (regcaches_test): Remove.
509 (get_thread_arch_aspace_regcache_test): New.
510 (registers_changed_ptid_all_test): New.
511 (registers_changed_ptid_target_test): New.
512 (registers_changed_ptid_target_ptid_test): New.
513 (regcache_thread_ptid_changed): Remove regcache_count lambda.
514 (_initialize_regcache): Register new tests.
515
516 2020-08-20 Simon Marchi <simon.marchi@polymtl.ca>
517
518 * regcache.c (test_get_thread_arch_aspace_regcache): Rename to...
519 (get_thread_arch_aspace_regcache_and_check): ... this. Remove
520 gdbarch and aspace parameter. Use current inferior's aspace.
521 Validate regcache's arch value.
522 (regcaches_test): Update.
523
524 2020-08-20 Simon Marchi <simon.marchi@polymtl.ca>
525
526 * regcache.c (regcaches_test): Call registers_changed.
527
528 2020-08-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
529
530 * infrun.c (process_event_stop_test): Fix typo "breapoint".
531
532 2020-08-19 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
533
534 * amd64-tdep.c (amd64_skip_prologue): Using symbol table
535 to find the end of prologue for flang compiled binaries.
536 * arm-tdep.c (arm_skip_prologue): Likewise.
537 * i386-tdep.c (i386_skip_prologue): Likewise.
538 * producer.c (producer_is_llvm): New function.
539 (producer_parsing_tests): Added new tests for clang/flang.
540 * producer.h (producer_is_llvm): New declaration.
541
542 2020-08-18 Simon Marchi <simon.marchi@efficios.com>
543
544 * linux-nat.c (linux_nat_debug_printf): New function.
545 (linux_nat_debug_printf_1): New macro. Use throughout the file.
546
547 2020-08-18 Aaron Merey <amerey@redhat.com>
548
549 * Makefile.in (DEBUGINFOD_CFLAGS, DEBUGINFOD_LIBS): New variables.
550 (INTERNAL_CFLAGS_BASE): Add DEBUGINFOD_CFLAGS.
551 (CLIBS): Add DEBUGINFOD_LIBS.
552
553 2020-08-17 Sergei Trofimovich <siarheit@google.com>
554
555 * ia64-linux-nat.c: Include "gdbarch.h" to declare used
556 'gdbarch_num_regs'.
557
558 2020-08-17 Tom Tromey <tromey@adacore.com>
559
560 * ada-varobj.c (ada_varobj_decode_var): Handle case where
561 ada_get_decoded_value returns NULL.
562
563 2020-08-17 Tom Tromey <tromey@adacore.com>
564
565 * python/py-inferior.c (infpy_search_memory): Use
566 gdb_py_object_from_ulongest.
567 * python/py-infevents.c (create_inferior_call_event_object)
568 (create_memory_changed_event_object): Use
569 gdb_py_object_from_ulongest.
570 * python/py-linetable.c (ltpy_entry_get_pc): Use
571 gdb_py_object_from_ulongest.
572
573 2020-08-17 Simon Marchi <simon.marchi@polymtl.ca>
574
575 * loc.c (class symbol_needs_eval_context): Fix indentation.
576
577 2020-08-17 Simon Marchi <simon.marchi@polymtl.ca>
578
579 * dwarf2/loc.c (dwarf2_loc_desc_get_symbol_read_needs): Use
580 bool.
581
582 2020-08-17 Tom de Vries <tdevries@suse.de>
583
584 PR gdb/26393
585 * gdbtypes.c (dump_dynamic_prop): New function.
586 (recursive_dump_type): Use dump_dynamic_prop for TYPE_CODE_RANGE.
587
588 2020-08-15 Tom de Vries <tdevries@suse.de>
589
590 PR backtrace/26390
591 * stack.c (print_frame_args): Temporarily set the selected
592 frame to FRAME while printing the frame's arguments.
593
594 2020-08-14 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
595
596 PR breakpoints/26385
597 * ppc-linux-nat.c (ppc_linux_nat_target::low_prepare_to_resume):
598 Always clear watchpoint with PTRACE_SET_DEBUGREG.
599
600 2020-08-14 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
601
602 * ppc-linux-nat.c (ppc_linux_dreg_interface::detect)
603 (ppc_linux_nat_target::low_prepare_to_resume): Use ptrace () < 0
604 and >= to check return value instead of == -1 and != -1.
605
606 2020-08-14 Simon Marchi <simon.marchi@polymtl.ca>
607
608 * utils.h (class gdb_argv) <as_array_view>: New method.
609 * utils.c (gdb_argv_as_array_view_test): New.
610 (_initialize_utils): Register selftest.
611 * maint.c (maintenance_selftest): Use the new method.
612
613 2020-08-13 Kamil Rytarowski <n54@gmx.com>
614
615 * target.h (supports_dumpcore, dumpcore): New
616 function declarations.
617 * target.c (supports_dumpcore, dumpcore): New
618 functions.
619 * target-delegates.c: Rebuild.
620 * gcore.c (gcore_command): Use target_supports_dumpcore ()
621 and target_dumpcore ().
622
623 2020-08-13 Aaron Merey <amerey@redhat.com>
624
625 * debuginfod-support.c: Replace global variables with user_data.
626
627 2020-08-13 Simon Marchi <simon.marchi@polymtl.ca>
628
629 * maint.c (maintenance_selftest): Split args and pass array_view
630 to run_tests.
631
632 2020-08-12 Luis Machado <luis.machado@linaro.org>
633
634 * value.c (check_type_length_before_alloc): Use ULONGEST to store a
635 type's length.
636 Use %s and pulongest to print the length.
637
638 2020-08-12 Pedro Alves <palves@redhat.com>
639
640 * NEWS: Move "Multi-target debugging support" item to the
641 "Changes since GDB 9" section.
642
643 2020-08-12 Pedro Alves <palves@redhat.com>
644
645 PR gdb/26336
646 * progspace.c (program_space::remove_objfile): Invalidate the
647 frame cache.
648
649 2020-08-11 Tom de Vries <tdevries@suse.de>
650
651 * MAINTAINERS: Mark ms1 as deleted.
652
653 2020-08-10 Luis Machado <luis.machado@linaro.org>
654
655 PR gdb/26310
656
657 * aarch64-tdep.c (aarch64_analyze_prologue): Track use of SP/FP and
658 act accordingly.
659 (aarch64_analyze_prologue_test): Add more unit tests to exercise
660 movz/str/stur/stp skipping behavior.
661
662 2020-08-10 Luis Machado <luis.machado@linaro.org>
663
664 * nat/aarch64-sve-linux-sigcontext.h (SVE_PT_REGS_OFFSET): Use
665 struct user_sve_header instead of struct sve_context.
666
667 2020-08-09 Simon Marchi <simon.marchi@polymtl.ca>
668
669 * read.h (dwarf2_fetch_die_loc_sect_off,
670 dwarf2_fetch_die_loc_cu_off): Replace function pointer +
671 `void *` parameter with function_view.
672 * read.c (dwarf2_fetch_die_loc_sect_off,
673 dwarf2_fetch_die_loc_cu_off): Likewise.
674 * loc.c (get_frame_pc_for_per_cu_dwarf_call): Remove.
675 (per_cu_dwarf_call): Adjust.
676 (get_frame_address_in_block_wrapper): Remove.
677 (indirect_synthetic_pointer): Adjust.
678 (get_ax_pc): Remove.
679 (dwarf2_compile_expr_to_ax): Adjust.
680
681 2020-08-08 Tom de Vries <tdevries@suse.de>
682
683 PR build/26344
684 * arch/riscv.c (riscv_lookup_target_description): Use an explicit
685 constructor.
686 * regcache.c (get_thread_arch_aspace_regcache): Same.
687
688 2020-08-07 Tom Tromey <tromey@adacore.com>
689
690 * ravenscar-thread.c
691 (ravenscar_thread_target::set_base_thread_from_ravenscar_task):
692 New method.
693 (ravenscar_thread_target::wait): Check
694 runtime_initialized.
695 (ravenscar_thread_target::prepare_to_store)
696 (ravenscar_thread_target::stopped_by_sw_breakpoint)
697 (ravenscar_thread_target::stopped_by_hw_breakpoint)
698 (ravenscar_thread_target::stopped_by_watchpoint)
699 (ravenscar_thread_target::stopped_data_address)
700 (ravenscar_thread_target::core_of_thread): Use
701 scoped_restore_current_thread and
702 set_base_thread_from_ravenscar_task.
703
704 2020-08-07 Tom Tromey <tromey@adacore.com>
705
706 * ravenscar-thread.c (update_thread_list): Set inferior_ptid.
707
708 2020-08-07 Tom Tromey <tromey@adacore.com>
709
710 * ravenscar-thread.c (ravenscar_thread_target::wait): Call
711 update_inferior_ptid before update_thread_list.
712 (temporarily_change_regcache_ptid): New class.
713 (ravenscar_thread_target::fetch_registers)
714 (ravenscar_thread_target::store_registers)
715 (ravenscar_thread_target::prepare_to_store): Use base thread when
716 forwarding operation.
717
718 2020-08-07 Tom Tromey <tromey@adacore.com>
719
720 * ravenscar-thread.c (ravenscar_thread_target::resume): Handle
721 "is_pid" case.
722
723 2020-08-07 Tom Tromey <tromey@adacore.com>
724
725 * ravenscar-thread.c (xfer_partial, enable_btrace, add_thread):
726 New methods.
727 (ravenscar_thread_target::get_thread_base_cpu): Check m_cpu_map
728 first.
729 (ravenscar_thread_target::add_thread): Rename from
730 ravenscar_add_thread.
731 (ravenscar_thread_target::update_thread_list): Use a lambda.
732 (ravenscar_thread_target::xfer_partial): New method.
733
734 2020-08-07 Tom Tromey <tromey@adacore.com>
735
736 * ada-lang.h (ada_task_list_iterator_ftype): Now a
737 gdb::function_view.
738 (iterate_over_live_ada_tasks): Change type of argument.
739 * ada-tasks.c (iterate_over_live_ada_tasks): Change type
740 of argument.
741
742 2020-08-07 Tom Tromey <tromey@adacore.com>
743
744 * ravenscar-thread.c (ravenscar_thread_target) <extra_thread_info>:
745 Remove.
746 (ravenscar_thread_target::extra_thread_info): Remove.
747 (ravenscar_thread_target::pid_to_str): Mention Ravenscar in result;
748 defer to target beneath for non-Ravenscar threads.
749
750 2020-08-07 Tom Tromey <tromey@adacore.com>
751
752 * ravenscar-thread.c (ravenscar_thread_target) <get_base_cpu,
753 get_base_thread_from_ravenscar_task>: Now methods.
754 <m_cpu_map>: New member.
755 (ravenscar_thread_target::get_thread_base_cpu): Rename from
756 ravenscar_get_thread_base_cpu. Check m_cpu_map.
757 (ravenscar_thread_target::task_is_currently_active): Update.
758 (ravenscar_thread_target::get_base_thread_from_ravenscar_task):
759 Now a method.
760 (ravenscar_thread_target::add_active_thread): Put initial thread
761 into the m_cpu_map.
762
763 2020-08-07 Tom Tromey <tromey@adacore.com>
764
765 * ravenscar-thread.c (ravenscar_thread_target::wait): Return
766 event_ptid.
767
768 2020-08-07 Tom Tromey <tromey@adacore.com>
769
770 * ravenscar-thread.c (ravenscar_thread_target::wait): Check
771 runtime_initialized.
772
773 2020-08-07 Tom Tromey <tromey@adacore.com>
774
775 * ravenscar-thread.c (ravenscar_thread_target): Don't call
776 add_active_thread.
777 (ravenscar_thread_target::add_active_thread): Now public.
778 (ravenscar_inferior_created): Call add_active_thread after pushing
779 the target.
780
781 2020-08-07 Simon Marchi <simon.marchi@polymtl.ca>
782
783 * regcache.c (ptid_regcache_map): New type.
784 (target_ptid_regcache_map): New type.
785 (regcaches): Change type to target_ptid_regcache_map.
786 (get_thread_arch_aspace_regcache): Update to regcaches' new
787 type.
788 (regcache_thread_ptid_changed): Likewise.
789 (registers_changed_ptid): Likewise.
790 (regcaches_size): Likewise.
791 (regcaches_test): Update.
792 (regcache_thread_ptid_changed): Update.
793 * regcache.h (regcache_up): New type.
794 * gdbsupport/ptid.h (hash_ptid): New struct.
795
796 2020-08-07 Simon Marchi <simon.marchi@efficios.com>
797
798 * observable.h (thread_ptid_changed): Add parameter
799 `process_stratum_target *`.
800 * infrun.c (infrun_thread_ptid_changed): Add parameter
801 `process_stratum_target *` and use it.
802 (selftests): New namespace.
803 (infrun_thread_ptid_changed): New function.
804 (_initialize_infrun): Register selftest.
805 * regcache.c (regcache_thread_ptid_changed): Add parameter
806 `process_stratum_target *` and use it.
807 (regcache_thread_ptid_changed): New function.
808 (_initialize_regcache): Register selftest.
809 * thread.c (thread_change_ptid): Pass target to
810 thread_ptid_changed observable.
811
812 2020-08-06 Caroline Tice <cmtice@google.com>
813
814 * dwarf2/read.c (struct dwo_file): Update comment on 'sections' field.
815 (struct dwp_sections): Update field comments. Add loclists and
816 rnglists fields.
817 (struct virtual_v2_dwo_sections): Rename struct to
818 'virtual_v2_or_v5_dwo_sections'; update comments at top of struct; add
819 size & offset fields for loclists and rnglists.
820 (struct dwp_hash_table): Add a 'v5' struct field to the union section.
821 (create_debug_type_hash_table): Add 'DW_UT_split_type' to the check for
822 skipping dummy type units.
823 (create_dwp_hash_table): Update the large comment above the function to
824 discuss Version 5 DWP files as well, with references. Update all the
825 version checks in the function to check for version 5 as well. Add new
826 section at the end to create dwp hash table for version 5.
827 (create_dwp_v2_section): Rename function to
828 'create_dwp_v2_or_v5_section'. Update function comment appropriately.
829 Add V5 to error message text.
830 (create_dwo_unit_in_dwp_v2): Change calls to create_dwp_v2_section
831 into calls to create_dwp_v2_or_v5_section.
832 (create_dwo_unit_in_dwp_v5): New function.
833 (lookup_dwo_unit_in_dwp): Update conditional statement to explicitly
834 check for version2; add else clause to handle version 5.
835 (open_and_init_dwo_file): Add code to check dwarf version & only call
836 create_debug_types_hash_table (with sections.types) if version is not 5;
837 else call create_debug_type_hash_table, with sections.info.
838 (dwarf2_locate_v2_dwp_sections): Update function comment to mention
839 version 5.
840 (dwarf2_locate_v5_dwp_sections): New function.
841 (open_and_init_dwp_file): Add else-if clause for version 5 to call
842 bfd_map_over_sections with dwarf2_locate_v5_dwp_sections.
843
844 2020-08-06 Simon Marchi <simon.marchi@efficios.com>
845
846 * regcache.h (class regcache): Remove friend
847 registers_changed_ptid.
848 <regcache_thread_ptid_changed>: Remove.
849 <regcaches>: Remove.
850 * regcache.c (regcache::regcaches): Rename to...
851 (regcaches): ... this. Make static.
852 (get_thread_arch_aspace_regcache): Update.
853 (regcache::regcache_thread_ptid_changed): Rename to...
854 (regcache_thread_ptid_changed): ... this. Update.
855 (class regcache_access): Remove.
856 (regcaches_test): Update.
857 (_initialize_regcache): Update.
858 * sparc64-tdep.c, dwarf2/index-write.c, record-btrace.c: Include
859 <forward_list>.
860
861 2020-08-06 Simon Marchi <simon.marchi@efficios.com>
862
863 * regcache.h (class regcache) <current_regcache>: Rename to...
864 <regcaches>: ... this. Move doc here.
865 * regcache.c (regcache::current_regcache) Rename to...
866 (regcache::regcaches): ... this. Move doc to header.
867 (get_thread_arch_aspace_regcache): Update.
868 (regcache::regcache_thread_ptid_changed): Update.
869 (registers_changed_ptid): Update.
870 (class regcache_access) <current_regcache_size>: Rename to...
871 <regcaches_size>: ... this.
872 (current_regcache_test): Rename to...
873 (regcaches_test): ... this.
874 (_initialize_regcache): Update.
875
876 2020-08-06 Victor Collod <vcollod@nvidia.com>
877
878 * amd64-tdep.c (amd64_analyze_prologue): Fix incorrect comment.
879
880 2020-08-05 Kevin Buettner <kevinb@redhat.com>
881
882 * corelow.c (core_target::build_file_mappings): Don't output
883 null pathname in warning.
884
885 2020-08-05 Simon Marchi <simon.marchi@polymtl.ca>
886
887 * gdb.dwarf2/clztest.exp, gdb.dwarf2/dw2-common-block.exp,
888 gdb.dwarf2/dw2-dup-frame.exp, gdb.dwarf2/dw2-reg-undefined.exp,
889 gdb.dwarf2/dw2-single-line-discriminators.exp,
890 dw2-undefined-ret-addr.exp: Pass nopie to compilation options.
891
892 2020-08-05 Tom Tromey <tromey@adacore.com>
893
894 PR rust/26197:
895 * dwarf2/read.c (alloc_rust_variant): Handle univariant case.
896 (quirk_rust_enum): Call alloc_rust_variant for univariant case.
897 Fix off-by-one and type size errors in ordinary case.
898
899 2020-08-05 Tom de Vries <tdevries@suse.de>
900
901 * gdbtypes.c (type_not_allocated, type_not_associated): Use
902 "prop->const_val () == 0" instead of "prop->const_val () != 0".
903
904 2020-08-04 Simon Marchi <simon.marchi@efficios.com>
905
906 * frame.h (frame_id_p): Return bool.
907 (frame_id_artificial_p): Return bool.
908 (frame_id_eq): Return bool.
909 (has_stack_frames): Return bool.
910 (get_selected_frame): Fix typo in comment.
911 (get_frame_pc_if_available): Return bool.
912 (get_frame_address_in_block_if_available): Return bool.
913 (get_frame_func_if_available): Return bool.
914 (read_frame_register_unsigned): Return bool.
915 (get_frame_register_bytes): Return bool.
916 (safe_frame_unwind_memory): Return bool.
917 (deprecated_frame_register_read): Return bool.
918 (frame_unwinder_is): Return bool.
919 * frame.c (struct frame_info) <prev_arch::p>: Change type to
920 bool.
921 <this_id::p>: Likewise.
922 <prev_p>: Likewise.
923 (frame_stash_add): Return bool.
924 (get_frame_id): Use bool.
925 (frame_id_build_special) Use bool.
926 (frame_id_build_unavailable_stack): Use bool.
927 (frame_id_build): Use bool.
928 (frame_id_p): Return bool, use true/false instead of 1/0.
929 (frame_id_artificial_p): Likewise.
930 (frame_id_eq): Likewise.
931 (frame_id_inner): Likewise.
932 (get_frame_func_if_available): Likewise.
933 (read_frame_register_unsigned): Likewise.
934 (deprecated_frame_register_read): Likewise.
935 (get_frame_register_bytes): Likewise.
936 (has_stack_frames): Likewise.
937 (inside_main_func): Likewise.
938 (inside_entry_func): Likewise.
939 (get_frame_pc_if_available): Likewise.
940 (get_frame_address_in_block_if_available): Likewise.
941 (frame_unwinder_is): Likewise.
942 (safe_frame_unwind_memory): Likewise.
943 (frame_unwind_arch): Likewise.
944
945 2020-08-04 Simon Marchi <simon.marchi@efficios.com>
946
947 * frame.c (frame_info) <prev_func> <p>: Rename to status, change
948 type to cached_copy_status.
949 (fprintf_frame): Adjust.
950 (get_frame_func_if_available): Adjust.
951 (frame_cleanup_after_sniffer): Adjust.
952
953 2020-08-04 Mark Wielaard <mark@klomp.org>
954
955 * MAINTAINERS (Write After Approval): Update email address.
956
957 2020-08-04 Simon Marchi <simon.marchi@polymtl.ca>
958
959 * gdbtypes.h (TYPE_DYN_PROP_ADDR): Remove, replace uses with
960 dynamic_prop::const_val.
961
962 2020-08-04 Simon Marchi <simon.marchi@polymtl.ca>
963
964 * gdbtypes.h (TYPE_DYN_PROP_KIND): Remove, replace uses with
965 dynamic_prop::kind.
966
967 2020-08-04 Simon Marchi <simon.marchi@polymtl.ca>
968
969 * gdbtypes.h (TYPE_DYN_PROP_BATON): Remove.
970
971 2020-08-04 Jose E. Marchesi <jose.marchesi@oracle.com>
972
973 * configure.tgt: Set gdb_sim for bpf-*-* targets.
974
975 2020-08-04 Weimin Pan <weimin.pan@oracle.com>
976 Jose E. Marchesi <jose.marchesi@oracle.com>
977
978 * configure.tgt: Add entry for bpf-*-*.
979 * Makefile.in (ALL_TARGET_OBS): Add bpf-tdep.o
980 (ALLDEPFILES): Add bpf-tdep.c.
981 * bpf-tdep.c: New file.
982 * MAINTAINERS: Add bpf target and maintainer.
983 * NEWS: Mention the support for the new target.
984
985 2020-08-04 Tom de Vries <tdevries@suse.de>
986
987 PR symtab/23270
988 * dwarf2/read.c (find_partial_die): Change internal error into Dwarf
989 Error.
990
991 2020-08-03 John Baldwin <jhb@FreeBSD.org>
992
993 * syscalls/freebsd.xml: Regenerate.
994
995 2020-08-03 John Baldwin <jhb@FreeBSD.org>
996
997 * syscalls/update-freebsd.sh: Fix usage and year range.
998
999 2020-08-03 Tom de Vries <tdevries@suse.de>
1000
1001 PR symtab/26333
1002 * dwarf2/read.c (dwarf_decode_lines_1): Ignore
1003 DW_LNE_lo_user/DW_LNE_hi_user range.
1004
1005 2020-07-30 Simon Marchi <simon.marchi@polymtl.ca>
1006
1007 PR ada/26318
1008 * ada-lang.c (ada_modulus): Return 0 if property is not of const
1009 kind.
1010
1011 2020-07-30 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1012
1013 * breakpoint.c (set_breakpoint_condition): Do minor refactoring.
1014
1015 2020-07-30 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1016
1017 * breakpoint.c (set_breakpoint_condition): Update the condition
1018 expressions after checking that the input condition string parses
1019 successfully and does not contain junk at the end.
1020
1021 2020-07-30 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1022
1023 * breakpoint.c (set_breakpoint_condition): Update the
1024 condition string after parsing the new condition successfully.
1025
1026 2020-07-30 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1027
1028 * proc-api.c (_STRUCTURED_PROC): Don't define.
1029 * proc-events.c: Likewise.
1030 * proc-flags.c: Likewise.
1031 * proc-why.c: Likewise.
1032 * procfs.c: Likewise.
1033
1034 * Makefile.in (INTERNAL_CPPFLAGS): Add LARGEFILE_CPPFLAGS.
1035 * configure, config.in: Regenerate.
1036
1037 2020-07-30 Tom de Vries <tdevries@suse.de>
1038
1039 PR build/26320
1040 * ui-style.h (struct ui_file_style::color): Wrap m_value and
1041 m_red/m_green/m_blue in a union.
1042
1043 2020-07-29 Tom de Vries <tdevries@suse.de>
1044
1045 PR tdep/26280
1046 * s390-tdep.c (s390_displaced_step_fixup): Fix Wmaybe-uninitialized.
1047
1048 2020-07-28 Tom Tromey <tromey@adacore.com>
1049
1050 PR symtab/26270:
1051 * symtab.h (find_pc_partial_function_sym): Declare.
1052 * cli/cli-cmds.c (disassemble_command): Use
1053 find_pc_partial_function_sym. Check asm_demangle.
1054 * blockframe.c (cache_pc_function_sym): New global.
1055 (cache_pc_function_name): Remove.
1056 (clear_pc_function_cache): Update.
1057 (find_pc_partial_function_sym): New function, from
1058 find_pc_partial_function.
1059 (find_pc_partial_function): Rewrite using
1060 find_pc_partial_function_sym.
1061
1062 2020-07-28 Tom Tromey <tromey@adacore.com>
1063
1064 * cli/cli-cmds.c (_initialize_cli_cmds): Rearrange "disassemble"
1065 help. Add usage.
1066
1067 2020-07-28 Tom Tromey <tromey@adacore.com>
1068
1069 * dwarf2/expr.c (dwarf_expr_context::execute_stack_op)
1070 <DW_OP_GNU_variable_value>: Cast to address type.
1071
1072 2020-07-28 Kamil Rytarowski <n54@gmx.com>
1073
1074 * nbsd-nat.h (nbsd_nat_target::xfer_partial): New declaration.
1075 * nbsd-nat.c (nbsd_nat_target::xfer_partial): New function.
1076 * nbsd-tdep.c (nbsd_gdbarch_data_handle, struct nbsd_gdbarch_data)
1077 (init_nbsd_gdbarch_data, get_nbsd_gdbarch_data)
1078 (nbsd_get_siginfo_type): New.
1079 (nbsd_init_abi): Install gdbarch "get_siginfo_type" method.
1080 (_initialize_nbsd_tdep): New.
1081
1082 2020-07-28 H.J. Lu <hongjiu.lu@intel.com>
1083
1084 PR binutils/26301
1085 * configure: Regenerated.
1086
1087 2020-07-28 H.J. Lu <hongjiu.lu@intel.com>
1088
1089 PR binutils/26301
1090 * configure: Regenerated.
1091
1092 2020-07-28 Andrew Burgess <andrew.burgess@embecosm.com>
1093
1094 * python/py-frame.c: Remove 'user-regs.h' include.
1095 (frapy_read_register): Rewrite to make use of
1096 gdbpy_parse_register_id.
1097 * python/py-registers.c (gdbpy_parse_register_id): New function,
1098 moved here from python/py-unwind.c. Updated the return type, and
1099 also accepts register descriptor objects.
1100 * python/py-unwind.c: Remove 'user-regs.h' include.
1101 (pyuw_parse_register_id): Moved to python/py-registers.c.
1102 (unwind_infopy_add_saved_register): Update to use
1103 gdbpy_parse_register_id.
1104 (pending_framepy_read_register): Likewise.
1105 * python/python-internal.h (gdbpy_parse_register_id): Declare.
1106
1107 2020-07-28 Andrew Burgess <andrew.burgess@embecosm.com>
1108
1109 * python/py-registers.c: Add 'user-regs.h' include.
1110 (register_descriptor_iter_find): New function.
1111 (register_descriptor_iterator_object_methods): New static global
1112 methods array.
1113 (register_descriptor_iterator_object_type): Add pointer to methods
1114 array.
1115
1116 2020-07-27 John Baldwin <jhb@FreeBSD.org>
1117
1118 * fbsd-nat.h: Include <osreldate.h>. Define USE_SIGTRAP_SIGINFO
1119 for all architectures on FreeBSD 11.3 and later.
1120
1121 2020-07-27 Tom Tromey <tromey@adacore.com>
1122
1123 * gcore.h (load_corefile): Don't declare.
1124
1125 2020-07-27 Tom de Vries <tdevries@suse.de>
1126
1127 * configure.ac: Fix sys/sockets.h -> sys/socket.h typo.
1128 * config.in: Regenerate.
1129 * configure: Regenerate.
1130
1131 2020-07-26 Eli Zaretskii <eliz@gnu.org>
1132
1133 * configure.ac (AC_CHECK_HEADERS): Check for sys/socket.h and
1134 ws2tcpip.h. When checking whether socklen_t type is defined, use
1135 ws2tcpip.h if it is available and sys/socket.h isn't.
1136 * configure: Regenerate.
1137 * config.in: Regenerate.
1138
1139 2020-07-25 Andrew Burgess <andrew.burgess@embecosm.com>
1140
1141 PR fortran/23051
1142 PR fortran/26139
1143 * valops.c (value_ind): Pass address to
1144 readjust_indirect_value_type.
1145 * value.c (readjust_indirect_value_type): Make parameter
1146 non-const, and add extra address parameter. Resolve original type
1147 before using it.
1148 * value.h (readjust_indirect_value_type): Update function
1149 signature and comment.
1150
1151 2020-07-25 Tom de Vries <tdevries@suse.de>
1152
1153 PR symtab/26243
1154 * dwarf2/read.c (lnp_state_machine::record_line): Ignore zero line
1155 entries.
1156
1157 2020-07-24 Aaron Merey <amerey@redhat.com>
1158
1159 * Makefile.in: Replace LIBDEBUGINFOD with DEBUGINFOD_LIBS.
1160 * configure: Rebuild.
1161
1162 2020-07-23 Kevin Buettner <kevinb@redhat.com>
1163
1164 PR corefiles/26294
1165 * corelow.c (_initialize_corelow): Add period to help text
1166 for "maintenance print core-file-backed-mappings".
1167
1168 2020-07-23 Pedro Alves <pedro@palves.net>
1169
1170 * frame-unwind.c (frame_unwind_try_unwinder): On exception, don't
1171 touch THIS_CACHE/THIS_FRAME if the frame cache was cleared
1172 meanwhile.
1173 * frame.c (frame_cache_generation, get_frame_cache_generation):
1174 New.
1175 (reinit_frame_cache): Increment FRAME_CACHE_GENERATION.
1176 (get_prev_frame_if_no_cycle): On exception, don't touch
1177 PREV_FRAME/THIS_FRAME if the frame cache was cleared meanwhile.
1178 * frame.h (get_frame_cache_generation): Declare.
1179
1180 2020-07-23 Tom de Vries <tdevries@suse.de>
1181
1182 PR tui/26282
1183 * tui/tui-winsource.h (struct tui_source_windows::tui_source_windows):
1184 New default constructor.
1185
1186 2020-07-23 Andrew Burgess <andrew.burgess@embecosm.com>
1187
1188 * disasm.c (do_mixed_source_and_assembly_deprecated): Don't
1189 exclude non-statement entries.
1190
1191 2020-07-22 Kevin Buettner <kevinb@redhat.com>
1192
1193 * NEWS (New commands): Mention new command
1194 "maintenance print core-file-backed-mappings".
1195
1196 2020-07-22 Kevin Buettner <kevinb@redhat.com>
1197
1198 * corelow.c (gdbcmd.h): Include.
1199 (core_target::info_proc_mappings): New method.
1200 (get_current_core_target): New function.
1201 (maintenance_print_core_file_backed_mappings): New function.
1202 (_initialize_corelow): Add core-file-backed-mappings to
1203 "maint print" commands.
1204
1205 2020-07-22 Kevin Buettner <kevinb@redhat.com>
1206
1207 * linux-tdep.c (dump_note_entry_p): New function.
1208 (linux_dump_mapping_p_ftype): New typedef.
1209 (linux_find_memory_regions_full): Add new parameter,
1210 should_dump_mapping_p.
1211 (linux_find_memory_regions): Adjust call to
1212 linux_find_memory_regions_full.
1213 (linux_make_mappings_core_file_notes): Use dump_note_entry_p in
1214 call to linux_find_memory_regions_full.
1215
1216 2020-07-22 Kevin Buettner <kevinb@redhat.com>
1217
1218 * corelow.c (solist.h, unordered_map): Include.
1219 (class core_target): Add field m_core_file_mappings and
1220 method build_file_mappings.
1221 (core_target::core_target): Call build_file_mappings.
1222 (core_target::~core_target): Free memory associated with
1223 m_core_file_mappings.
1224 (core_target::build_file_mappings): New method.
1225 (core_target::xfer_partial): Use m_core_file_mappings
1226 for memory transfers.
1227 * linux-tdep.c (linux_read_core_file_mappings): New
1228 function.
1229 (linux_core_info_proc_mappings): Rewrite to use
1230 linux_read_core_file_mappings.
1231 (linux_init_abi): Register linux_read_core_file_mappings.
1232
1233 2020-07-22 Kevin Buettner <kevinb@redhat.com>
1234
1235 * arch-utils.c (default_read_core_file_mappings): New function.
1236 * arch-utils.c (default_read_core_file_mappings): Declare.
1237 * gdbarch.sh (read_core_file_mappings): New gdbarch method.
1238 * gdbarch.h, gdbarch.c: Regenerate.
1239
1240 2020-07-22 Kevin Buettner <kevinb@redhat.com>
1241
1242 PR corefiles/25631
1243 * corelow.c (core_target:xfer_partial): Revise
1244 TARGET_OBJECT_MEMORY case to consider non-SEC_HAS_CONTENTS
1245 case after first checking the stratum beneath the core
1246 target.
1247 (has_all_memory): Return true.
1248 * target.c (raw_memory_xfer_partial): Revise comment
1249 regarding use of has_all_memory.
1250
1251 2020-07-22 Kevin Buettner <kevinb@redhat.com>
1252
1253 * exec.h (section_table_xfer_memory): Revise declaration,
1254 replacing section name parameter with an optional callback
1255 predicate.
1256 * exec.c (section_table_xfer_memory): Likewise.
1257 * bfd-target.c, exec.c, target.c, corelow.c: Adjust all callers
1258 of section_table_xfer_memory.
1259
1260 2020-07-22 Tom Tromey <tromey@adacore.com>
1261
1262 * mi/mi-cmd-stack.c (list_args_or_locals): Use
1263 lookup_symbol_search_name.
1264
1265 2020-07-22 Andrew Burgess <andrew.burgess@embecosm.com>
1266
1267 * python/py-registers.c (gdbpy_register_object_data_init): Remove
1268 redundant local variable.
1269 (gdbpy_get_register_descriptor): Extract descriptor vector as a
1270 reference, not pointer, update code accordingly.
1271
1272 2020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
1273 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1274
1275 * objfiles.h (struct objfile) <skip_jit_symbol_lookup>: New field.
1276 * jit.c (jit_breakpoint_re_set_internal): Use the
1277 `skip_jit_symbol_lookup` field.
1278
1279 2020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
1280 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1281
1282 * jit.c (jit_read_descriptor): Define the descriptor address once,
1283 use twice.
1284 (jit_breakpoint_deleted): Move the declaration of the loop variable
1285 `iter` into the loop header.
1286 (jit_breakpoint_re_set_internal): Move the declaration of the local
1287 variable `objf_data` to the first point of definition.
1288 (jit_event_handler): Move the declaration of local variables
1289 `code_entry`, `entry_addr`, and `objf` to their first point of use.
1290 Rename `objf` to `jited`.
1291
1292 2020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
1293
1294 * jit.h (struct jiter_objfile_data) <jiter_objfile_data, objfile>:
1295 Remove.
1296 * jit.c (get_jiter_objfile_data): Update.
1297
1298 2020-07-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1299 Simon Marchi <simon.marchi@polymtl.ca>
1300
1301 * jit.c (struct jit_program_space_data): Remove.
1302 (jit_program_space_key): Remove.
1303 (jiter_objfile_data::~jiter_objfile_data): Remove program space
1304 stuff.
1305 (get_jit_program_space_data): Remove.
1306 (jit_breakpoint_deleted): Iterate on all of the program space's
1307 objfiles.
1308 (jit_inferior_init): Likewise.
1309 (jit_breakpoint_re_set_internal): Likewise. Also change return
1310 type to void.
1311 (jit_breakpoint_re_set): Pass current_program_space to
1312 jit_breakpoint_re_set_internal.
1313
1314 2020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
1315
1316 * jit.h (struct jiter_objfile_data) <cached_code_address,
1317 jit_breakpoint>: Move to here from ...
1318 * jit.c (jit_program_space_data): ... here.
1319 (jiter_objfile_data::~jiter_objfile_data): Update.
1320 (jit_breakpoint_deleted): Update.
1321 (jit_breakpoint_re_set_internal): Update.
1322
1323 2020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
1324
1325 * jit.c (jiter_objfile_data::~jiter_objfile_data): Remove some
1326 checks.
1327 (jit_read_descriptor): Remove NULL check.
1328 (jit_event_handler): Add an assertion.
1329
1330 2020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
1331
1332 * jit.h (struct jit_objfile_data): Split into...
1333 (struct jiter_objfile_data): ... this ...
1334 (struct jited_objfile_data): ... and this.
1335 * objfiles.h (struct objfile) <jit_data>: Remove.
1336 <jiter_data, jited_data>: New fields.
1337 * jit.c (jit_objfile_data::~jit_objfile_data): Rename to ...
1338 (jiter_objfile_data::~jiter_objfile_data): ... this.
1339 (get_jit_objfile_data): Rename to ...
1340 (get_jiter_objfile_data): ... this.
1341 (add_objfile_entry): Update.
1342 (jit_read_descriptor): Use get_jiter_objfile_data.
1343 (jit_find_objf_with_entry_addr): Use objfile's jited_data field.
1344 (jit_breakpoint_re_set_internal): Use get_jiter_objfile_data.
1345 (jit_inferior_exit_hook): Use objfile's jited_data field.
1346
1347 2020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
1348
1349 * jit.h: Forward-declare `struct minimal_symbol`.
1350 (struct jit_objfile_data): Migrate to here from jit.c; also add a
1351 constructor, destructor, and an objfile* field.
1352 * jit.c (jit_objfile_data): Remove.
1353 (struct jit_objfile_data): Migrate from here to jit.h.
1354 (jit_objfile_data::~jit_objfile_data): New destructor
1355 implementation with code moved from free_objfile_data.
1356 (free_objfile_data): Delete.
1357 (get_jit_objfile_data): Update to use the jit_data field of objfile.
1358 (jit_find_objf_with_entry_addr): Ditto.
1359 (jit_inferior_exit_hook): Ditto.
1360 (_initialize_jit): Remove the call to
1361 register_objfile_data_with_cleanup.
1362 * objfiles.h (struct objfile) <jit_data>: New field.
1363
1364 2020-07-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1365
1366 * jit.h: Forward-declare `struct objfile`.
1367 (jit_event_handler): Add a second parameter, the JITer objfile.
1368 * jit.c (jit_read_descriptor): Change the signature to take the
1369 JITer objfile as an argument instead of the jit_program_space_data.
1370 (jit_inferior_init): Update the call to jit_read_descriptor.
1371 (jit_event_handler): Use the new JITer objfile argument when calling
1372 jit_read_descriptor.
1373 * breakpoint.c (handle_jit_event): Update the call to
1374 jit_event_handler to pass the JITer objfile.
1375
1376 2020-07-21 John Baldwin <jhb@FreeBSD.org>
1377
1378 * gdbarch.c: Regenerate.
1379 * gdbarch.h: Regenerate.
1380 * gdbarch.sh (handle_segmentation_fault): Remove method.
1381 * infrun.c (handle_segmentation_fault): Remove.
1382 (print_signal_received_reason): Remove call to
1383 handle_segmentation_fault.
1384
1385 2020-07-21 John Baldwin <jhb@FreeBSD.org>
1386
1387 * sparc64-linux-tdep.c (sparc64_linux_handle_segmentation_fault):
1388 Rename to sparc64_linux_report_signal_info and add siggnal
1389 argument.
1390 (sparc64_linux_init_abi): Use sparc64_linux_report_signal_info
1391 instead of sparc64_linux_handle_segmentation_fault.
1392
1393 2020-07-21 John Baldwin <jhb@FreeBSD.org>
1394
1395 * amd64-linux-tdep.c (amd64_linux_init_abi_common): Use
1396 i386_linux_report_signal_info instead of
1397 i386_linux_handle_segmentation_fault.
1398 * i386-linux-tdep.c (i386_linux_handle_segmentation_fault): Rename
1399 to i386_linux_report_signal_info and add siggnal argument.
1400 (i386_linux_init_abi): Use i386_linux_report_signal_info instead
1401 of i386_linux_handle_segmentation_fault.
1402 * i386-linux-tdep.h (i386_linux_handle_segmentation_fault): Rename
1403 to i386_linux_report_signal_info and add siggnal argument.
1404
1405 2020-07-21 John Baldwin <jhb@FreeBSD.org>
1406
1407 * corelow.c (core_target_open): Invoke gdbarch report_signal_info
1408 hook if present.
1409
1410 2020-07-21 John Baldwin <jhb@FreeBSD.org>
1411
1412 * gdbarch.c: Regenerate.
1413 * gdbarch.h: Regenerate.
1414 * gdbarch.sh (report_signal_info): New method.
1415 * infrun.c (print_signal_received_reason): Invoke gdbarch
1416 report_signal_info hook if present.
1417
1418 2020-07-21 Andrew Burgess <andrew.burgess@embecosm.com>
1419
1420 * python/py-registers.c : Add 'unordered_map' include.
1421 (gdbpy_new_reggroup): Renamed to...
1422 (gdbpy_get_reggroup): ...this. Update to only create register
1423 group descriptors when needed.
1424 (gdbpy_reggroup_iter_next): Update.
1425
1426 2020-07-21 Andrew Burgess <andrew.burgess@embecosm.com>
1427
1428 * python/py-registers.c (gdbpy_register_object_data): New static
1429 global.
1430 (gdbpy_register_object_data_init): New function.
1431 (gdbpy_new_register_descriptor): Renamed to...
1432 (gdbpy_get_register_descriptor): ...this, and update to reuse
1433 existing register descriptors where possible.
1434 (gdbpy_register_descriptor_iter_next): Update.
1435 (gdbpy_initialize_registers): Register new gdbarch data.
1436
1437 2020-07-21 Simon Marchi <simon.marchi@efficios.com>
1438
1439 * linux-nat.c (stopped_pids): Make static.
1440
1441 2020-07-21 Simon Marchi <simon.marchi@polymtl.ca>
1442
1443 PR ada/26235
1444 * gdbtypes.c (ada_discrete_type_low_bound,
1445 ada_discrete_type_high_bound): Handle undefined bounds.
1446
1447 2020-07-21 Kamil Rytarowski <n54@gmx.com>
1448
1449 * nbsd-nat.h (nbsd_nat_target::supports_multi_process): New
1450 declaration.
1451 * nbsd-nat.c (nbsd_nat_target::supports_multi_process): New
1452 function.
1453
1454 2020-07-20 John Baldwin <jhb@FreeBSD.org>
1455
1456 * fbsd-tdep.c (fbsd_skip_solib_resolver): New function.
1457 (fbsd_init_abi): Install gdbarch "skip_solib_resolver" method.
1458 * fbsd-tdep.h (fbsd_skip_solib_resolver): New prototype.
1459 * mips-fbsd-tdep.c (mips_fbsd_skip_solib_resolver): New function.
1460 (mips_fbsd_init_abi): Install gdbarch "skip_solib_resolver"
1461 method.
1462
1463 2020-07-20 Ludovic Courtès <ludo@gnu.org>
1464
1465 * guile/scm-math.c (vlscm_integer_fits_p): Use 'uintmax_t'
1466 and 'intmax_t' instead of 'scm_t_uintmax' and 'scm_t_intmax',
1467 which are deprecated in Guile 3.0.
1468 * configure.ac (try_guile_versions): Add "guile-3.0".
1469 * configure (try_guile_versions): Regenerate.
1470 * NEWS: Update entry.
1471
1472 2020-07-20 Ludovic Courtès <ludo@gnu.org>
1473 Doug Evans <dje@google.com>
1474
1475 PR gdb/21104
1476 * guile/scm-ports.c (USING_GUILE_BEFORE_2_2): New macro.
1477 (ioscm_memory_port)[read_buf_size, write_buf_size]: Wrap in #if
1478 USING_GUILE_BEFORE_2_2.
1479 (stdio_port_desc, memory_port_desc) [!USING_GUILE_BEFORE_2_2]:
1480 Change type to 'scm_t_port_type *'.
1481 (natural_buffer_size) [!USING_GUILE_BEFORE_2_2]: New variable.
1482 (ioscm_open_port) [USING_GUILE_BEFORE_2_2]: Add 'stream'
1483 parameter and honor it. Update callers.
1484 (ioscm_open_port) [!USING_GUILE_BEFORE_2_2]: New function.
1485 (ioscm_read_from_port, ioscm_write) [!USING_GUILE_BEFORE_2_2]: New
1486 functions.
1487 (ioscm_fill_input, ioscm_input_waiting, ioscm_flush): Wrap in #if
1488 USING_GUILE_BEFORE_2_2.
1489 (ioscm_init_gdb_stdio_port) [!USING_GUILE_BEFORE_2_2]: Use
1490 'ioscm_read_from_port'. Call 'scm_set_port_read_wait_fd'.
1491 (ioscm_init_stdio_buffers) [!USING_GUILE_BEFORE_2_2]: New function.
1492 (gdbscm_stdio_port_p) [!USING_GUILE_BEFORE_2_2]: Use 'SCM_PORTP'
1493 and 'SCM_PORT_TYPE'.
1494 (gdbscm_memory_port_end_input, gdbscm_memory_port_seek)
1495 (ioscm_reinit_memory_port): Wrap in #if USING_GUILE_BEFORE_2_2.
1496 (gdbscm_memory_port_read, gdbscm_memory_port_write)
1497 (gdbscm_memory_port_seek, gdbscm_memory_port_close)
1498 [!USING_GUILE_BEFORE_2_2]: New functions.
1499 (gdbscm_memory_port_print): Remove use of 'SCM_PTOB_NAME'.
1500 (ioscm_init_memory_port_type) [!USING_GUILE_BEFORE_2_2]: Use
1501 'gdbscm_memory_port_read'.
1502 Wrap 'scm_set_port_end_input', 'scm_set_port_flush', and
1503 'scm_set_port_free' calls in #if USING_GUILE_BEFORE_2_2.
1504 (gdbscm_get_natural_buffer_sizes) [!USING_GUILE_BEFORE_2_2]: New
1505 function.
1506 (ioscm_init_memory_port): Remove.
1507 (ioscm_init_memory_port_stream): New function
1508 (ioscm_init_memory_port_buffers) [USING_GUILE_BEFORE_2_2]: New
1509 function.
1510 (gdbscm_memory_port_read_buffer_size) [!USING_GUILE_BEFORE_2_2]:
1511 Return scm_from_uint (0).
1512 (gdbscm_set_memory_port_read_buffer_size_x)
1513 [!USING_GUILE_BEFORE_2_2]: Call 'scm_setvbuf'.
1514 (gdbscm_memory_port_write_buffer_size) [!USING_GUILE_BEFORE_2_2]:
1515 Return scm_from_uint (0).
1516 (gdbscm_set_memory_port_write_buffer_size_x)
1517 [!USING_GUILE_BEFORE_2_2]: Call 'scm_setvbuf'.
1518 * configure.ac (try_guile_versions): Add "guile-2.2".
1519 * configure: Regenerate.
1520 * NEWS: Add entry.
1521
1522 2020-07-18 Tom Tromey <tom@tromey.com>
1523
1524 * linux-nat.c (linux_multi_process): Remove.
1525 (linux_nat_target::supports_multi_process): Return true.
1526
1527 2020-07-17 Andrew Burgess <andrew.burgess@embecosm.com>
1528
1529 * arch/riscv.c (riscv_tdesc_cache): Change map type.
1530 (riscv_lookup_target_description): Return pointer out of
1531 unique_ptr.
1532 * target-descriptions.c (allocate_target_description): Add
1533 comment.
1534 (target_desc_deleter::operator()): Likewise.
1535 * target-descriptions.h (struct target_desc_deleter): Moved to
1536 gdbsupport/tdesc.h.
1537 (target_desc_up): Likewise.
1538
1539 2020-07-17 Tom Tromey <tromey@adacore.com>
1540
1541 * linux-nat.c (linux_nat_target::supports_non_stop)
1542 (linux_nat_target::always_non_stop_p): Use "true".
1543 (linux_nat_target::supports_disable_randomization): Use "true" and
1544 "false".
1545
1546 2020-07-16 Caroline Tice <cmtice@google.com>
1547
1548 * dwarf2/read.c (RNGLIST_HEADER_SIZE32) New constant definition.
1549 (RNGLIST_HEADER_SIZE64): New constant definition.
1550 (struct dwop_section_names): Add rnglists_dwo.
1551 (dwop_section_names): Add .debug_rnglists.dwo, .zdebug_rnglists.dwo.
1552 (struct loclist_header): Rename to 'loclists_rnglists_header'.
1553 (struct dwo_sections): Add rnglists field.
1554 (read_attribut_reprocess): Add tag parameter.
1555 (dwarf2_ranges_read): Add tag parameter & remove forward function decl.
1556 (cu_debug_rnglists_section): New function (decl & definition).
1557 (dwarf2_locate_dwo_sections): Add code to read rnglists_dwo section.
1558 (dwarf2_rnglists_process): Add a dwarf_tag parameter, for the kind of
1559 die whose range is being checked; get rnglist section from
1560 cu_debug_rnglists_section, to get from either objfile or dwo file as
1561 appropriate. Add cases for DW_RLE_base_addressx,
1562 DW_RLE_startx_length, DW_RLE_startx_endx. Also, update to only add
1563 the base address to DW_RLE_offset_pairs (not to all ranges), moving
1564 test inside if-condition and updating complaint message.
1565 (dwarf2_ranges_process): Add dwarf tag parameter and pass it to
1566 dwarf2_rnglists_process.
1567 (dwarf2_ranges_read): Add dwarf tag parameter and pass it to
1568 dwarf2_ranges_process.
1569 (dwarf2_get_pc_bounds): Check for DW_FORM_rnglistx when setting
1570 need_ranges_base and update comment appropriately. Also pass die tag
1571 to dwarf2_ranges_read.
1572 (dwarf2_record_block_ranges): Check for DW_FORM_rnglistx when setting
1573 need_ranges_base and update comment appropriately. Also pass die tag
1574 to dwarf2_ranges_process.
1575 (read_full_die_1): Add code to read DW_AT_rnglists_base and assign to
1576 cu->ranges_base. Also pass die tag to read_attribute_reprocess.
1577 (partial_die_info::read): Check for DW_FORM_rnglistx when setting
1578 need_ranges_base and update comment appropriately. Also pass die tag
1579 to read_attribute_reprocess and dwarf2_ranges_read.
1580 (read_loclist_header): Rename function to read_loclists_rnglists_header,
1581 and update function comment appropriately.
1582 (read_loclist_index): Call read_loclists_rnglists_header instead of
1583 read_loclist_header.
1584 (read_rnglist_index): New function.
1585 (read_attribute_reprocess): Add tag parameter. Add code for
1586 DW_FORM_rnglistx, passing tag to read_rnglist_index.
1587 (read_attribute_value): Mark DW_FORM_rnglistx with need_reprocess.
1588
1589 2020-07-15 Andrew Burgess <andrew.burgess@embecosm.com>
1590
1591 * f-typeprint.c (f_type_print_base): Allow for dynamic types not
1592 being resolved.
1593
1594 2020-07-14 Andrew Burgess <andrew.burgess@embecosm.com>
1595
1596 * arch-utils.c (show_architecture): Update formatting of messages.
1597
1598 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
1599
1600 * gdbtypes.h (struct type) <bounds>: Handle array and string
1601 types.
1602 * ada-lang.c (assign_aggregate): Use type::bounds on
1603 array/string type.
1604 * c-typeprint.c (c_type_print_varspec_suffix): Likewise.
1605 * c-varobj.c (c_number_of_children): Likewise.
1606 (c_describe_child): Likewise.
1607 * eval.c (evaluate_subexp_for_sizeof): Likewise.
1608 * f-typeprint.c (f_type_print_varspec_suffix): Likewise.
1609 (f_type_print_base): Likewise.
1610 * f-valprint.c (f77_array_offset_tbl): Likewise.
1611 (f77_get_upperbound): Likewise.
1612 (f77_print_array_1): Likewise.
1613 * guile/scm-type.c (gdbscm_type_range): Likewise.
1614 * m2-typeprint.c (m2_array): Likewise.
1615 (m2_is_long_set_of_type): Likewise.
1616 * m2-valprint.c (get_long_set_bounds): Likewise.
1617 * p-typeprint.c (pascal_type_print_varspec_prefix): Likewise.
1618 * python/py-type.c (typy_range): Likewise.
1619 * rust-lang.c (rust_internal_print_type): Likewise.
1620 * type-stack.c (type_stack::follow_types): Likewise.
1621 * valarith.c (value_subscripted_rvalue): Likewise.
1622 * valops.c (value_cast): Likewise.
1623
1624 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
1625
1626 * gdbtypes.c (TYPE_ARRAY_BIT_STRIDE): Remove. Update all
1627 callers to use the equivalent accessor methods.
1628
1629 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
1630
1631 * gdbtypes.h (struct range_bounds) <bit_stride>: New method.
1632 (struct type) <bit_stride>: New method.
1633 (TYPE_BIT_STRIDE): Remove.
1634 * gdbtypes.c (update_static_array_size): Use type::bit_stride.
1635
1636 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
1637
1638 * gdbtypes.h (TYPE_ARRAY_LOWER_BOUND_VALUE,
1639 TYPE_ARRAY_UPPER_BOUND_VALUE): Remove. Update all
1640 callers to use the equivalent accessor methods instead.
1641
1642 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
1643
1644 * gdbtypes.h (TYPE_ARRAY_UPPER_BOUND_IS_UNDEFINED,
1645 TYPE_ARRAY_LOWER_BOUND_IS_UNDEFINED): 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_LOW_BOUND_KIND,
1651 TYPE_HIGH_BOUND_KIND): Remove. Update all callers
1652 to use dynamic_prop::kind.
1653
1654 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
1655
1656 * gdbtypes.h (TYPE_LOW_BOUND_UNDEFINED,
1657 TYPE_HIGH_BOUND_UNDEFINED): Remove. Update all callers
1658 to get the bound property's kind and check against
1659 PROP_UNDEFINED.
1660
1661 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
1662
1663 * gdbtypes.h (TYPE_LOW_BOUND, TYPE_HIGH_BOUND): Remove. Update
1664 all callers to use type::range_bounds followed by
1665 dynamic_prop::{low,high}.
1666
1667 2020-07-12 Simon Marchi <simon.marchi@polymtl.ca>
1668
1669 * gdbtypes.h (struct dynamic_prop) <kind, set_undefined,
1670 const_val, set_const_val, baton, set_locexpr, set_loclist,
1671 set_addr_offset, variant_parts, set_variant_parts,
1672 original_type, set_original_type>: New methods.
1673 <kind>: Rename to...
1674 <m_kind>: ... this. Update all users to use the new methods
1675 instead.
1676 <data>: Rename to...
1677 <m_data>: ... this. Update all users to use the new methods
1678 instead.
1679
1680 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
1681
1682 * gdbtypes.c (get_discrete_bounds): Return failure if
1683 the range type's bounds are not both defined and constant
1684 values.
1685 (get_array_bounds): Update comment. Remove undefined bound check.
1686
1687 2020-07-12 Simon Marchi <simon.marchi@polymtl.ca>
1688
1689 * gdbtypes.h (TYPE_RANGE_DATA): Remove. Update callers to use
1690 the type::bounds method directly.
1691
1692 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
1693
1694 * gdbtypes.h (struct type) <bounds, set_bounds>: New methods.
1695 (TYPE_RANGE_DATA): Use type::bounds. Change all uses that
1696 are used to set the range type's bounds to use set_bounds.
1697
1698 2020-07-11 Philippe Waroquiers <philippe.waroquiers@skynet.be>
1699
1700 * exec.c (_initialize_exec): Update exec-file-mismatch help.
1701
1702 2020-07-10 Pedro Alves <pedro@palves.net>
1703
1704 * gdbthread.h (inferior_ref): Define.
1705 (scoped_restore_current_thread) <m_thread>: Now a thread_info_ref.
1706 (scoped_restore_current_thread) <m_inf>: Now an inferior_ref.
1707 * thread.c
1708 (scoped_restore_current_thread::restore):
1709 Adjust to gdb::ref_ptr.
1710 (scoped_restore_current_thread::~scoped_restore_current_thread):
1711 Remove manual decref handling.
1712 (scoped_restore_current_thread::scoped_restore_current_thread):
1713 Adjust to use
1714 inferior_ref::new_reference/thread_info_ref::new_reference.
1715 Incref the thread before calling get_frame_id instead of after.
1716 Let TARGET_CLOSE_ERROR propagate.
1717
1718 2020-07-10 Pedro Alves <pedro@palves.net>
1719
1720 * frame-tailcall.c (dwarf2_tailcall_sniffer_first): Only swallow
1721 NO_ENTRY_VALUE_ERROR / MEMORY_ERROR / OPTIMIZED_OUT_ERROR /
1722 NOT_AVAILABLE_ERROR.
1723 * value.c (value_optimized_out): Only swallow MEMORY_ERROR /
1724 OPTIMIZED_OUT_ERROR / NOT_AVAILABLE_ERROR.
1725
1726 2020-07-10 Simon Marchi <simon.marchi@polymtl.ca>
1727 Pedro Alves <pedro@palves.net>
1728
1729 PR gdb/26199
1730 * infrun.c (threads_are_resumed_pending_p): Delete.
1731 (do_target_wait): Remove threads_are_executing and
1732 threads_are_resumed_pending_p checks from the inferior_matches
1733 lambda. Update comments.
1734
1735 2020-07-10 Pedro Alves <pedro@palves.net>
1736
1737 PR gdb/26199
1738 * infrun.c (handle_no_resumed): Transfer terminal to inferior with
1739 executing threads.
1740
1741 2020-07-10 Pedro Alves <pedro@palves.net>
1742
1743 PR gdb/26199
1744 * infrun.c (handle_no_resumed): Handle multiple targets.
1745
1746 2020-07-10 Pedro Alves <pedro@palves.net>
1747
1748 PR gdb/26199
1749 * infrun.c (prepare_to_wait): Check target_can_async_p instead of
1750 target_is_async_p.
1751
1752 2020-07-10 Pedro Alves <pedro@palves.net>
1753
1754 PR gdb/26199
1755 * target.c (target_pass_ctrlc): Look at the inferior's non-exited
1756 threads, not all threads.
1757
1758 2020-07-10 Pedro Alves <pedro@palves.net>
1759
1760 PR gdb/26199
1761 * remote.c (remote_target::open_1): Pass remote target pointer as
1762 data to create_async_event_handler.
1763 (remote_async_inferior_event_handler): Mark async event handler
1764 before returning if the remote target still has either pending
1765 events or unacknowledged notifications.
1766
1767 2020-07-10 John Baldwin <jhb@FreeBSD.org>
1768
1769 * fbsd-nat.h (fbsd_nat_target::supports_multi_process): New
1770 declaration.
1771 * fbsd-nat.c (fbsd_nat_target::supports_multi_process): New
1772 function.
1773
1774 2020-07-09 John Baldwin <jhb@FreeBSD.org>
1775
1776 * inf-ptrace.c (inf_ptrace_target::wait): Don't compare against
1777 inferior_ptid.
1778
1779 2020-07-09 John Baldwin <jhb@FreeBSD.org>
1780
1781 * fbsd-tdep.c (fbsd_print_auxv_entry): Handle AT_FREEBSD_ARGC,
1782 AT_FREEBSD_ARGV, AT_FREEBSD_ENVC, AT_FREEBSD_ENVV,
1783 AT_FREEBSD_PS_STRINGS.
1784
1785 2020-07-08 Hannes Domani <ssbssa@yahoo.de>
1786
1787 * auto-load.c (auto_load_objfile_script_1): Convert drive part
1788 of debugfile path on Windows.
1789
1790 2020-07-08 John Baldwin <jhb@FreeBSD.org>
1791
1792 * fbsd-nat.c (fbsd_nat_target::find_memory_regions): Rename 'obfd'
1793 argument to 'data'.
1794
1795 2020-07-08 Tom Tromey <tromey@adacore.com>
1796
1797 * ada-lang.c (ada_exception_message_1): Use read_memory.
1798
1799 2020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
1800
1801 PR python/22748
1802 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first): Remove
1803 special handling for inline frames.
1804 * findvar.c (value_of_register_lazy): Skip inline frames when
1805 creating lazy register values.
1806 * frame.c (frame_id_computed_p): Delete definition.
1807 * frame.h (frame_id_computed_p): Delete declaration.
1808
1809 2020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
1810
1811 * NEWS: Mention additions to Python API.
1812 * python/py-arch.c (archpy_register_groups): New function.
1813 (arch_object_methods): Add 'register_groups' method.
1814 * python/py-registers.c (reggroup_iterator_object): New struct.
1815 (reggroup_object): New struct.
1816 (gdbpy_new_reggroup): New function.
1817 (gdbpy_reggroup_to_string): New function.
1818 (gdbpy_reggroup_name): New function.
1819 (gdbpy_reggroup_iter): New function.
1820 (gdbpy_reggroup_iter_next): New function.
1821 (gdbpy_new_reggroup_iterator): New function
1822 (gdbpy_initialize_registers): Register new types.
1823 (reggroup_iterator_object_type): Define new Python type.
1824 (gdbpy_reggroup_getset): New static global.
1825 (reggroup_object_type): Define new Python type.
1826 * python/python-internal.h
1827
1828 2020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
1829
1830 * Makefile.in (SUBDIR_PYTHON_SRCS): Add py-registers.c
1831 * python/py-arch.c (archpy_registers): New function.
1832 (arch_object_methods): Add 'registers' method.
1833 * python/py-registers.c: New file.
1834 * python/python-internal.h
1835 (gdbpy_new_register_descriptor_iterator): Declare.
1836 (gdbpy_initialize_registers): Declare.
1837 * python/python.c (do_start_initialization): Call
1838 gdbpy_initialize_registers.
1839 * NEWS: Mention additions to the Python API.
1840
1841 2020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
1842
1843 * NEWS: Mention new Python API method.
1844 * python/py-unwind.c (pending_framepy_architecture): New function.
1845 (pending_frame_object_methods): Add architecture method.
1846
1847 2020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
1848
1849 * gdbarch.c: Regenerate.
1850 * gdbarch.h: Regenerate.
1851 * gdbarch.sh (deprecated_set_gdbarch_data): Delete.
1852 (gdbarch_data): Use internal_error for the case where
1853 deprecated_set_gdbarch_data was originally needed.
1854 * ia64-libunwind-tdep.c (libunwind_descr_init): Update parameters,
1855 and use passed in obstack.
1856 (libunwind_frame_set_descr): Should no longer get back NULL from
1857 gdbarch_data.
1858 (_initialize_libunwind_frame): Register as a pre-init gdbarch data
1859 type.
1860 * user-regs.c (user_regs_init): Update parameters, and use passed
1861 in obstack.
1862 (user_reg_add): Should no longer get back NULL from gdbarch_data.
1863 (_initialize_user_regs): Register as a pre-init gdbarch data type.
1864
1865 2020-07-06 Tom de Vries <tdevries@suse.de>
1866
1867 * buildsym.c (buildsym_compunit::end_symtab_with_blockvector): Handle
1868 End-Of-Sequence in lte_is_less_than.
1869 * symtab.c (find_pc_sect_line): Revert change from commit 3d92a3e313
1870 "gdb: Don't reorder line table entries too much when sorting".
1871
1872 2020-07-06 Tom de Vries <tdevries@suse.de>
1873
1874 PR tui/26205
1875 * tui/tui-win.c (tui_partial_win_by_name): Don't test for NULL name.
1876
1877 2020-07-05 Tom de Vries <tdevries@suse.de>
1878
1879 PR build/26187
1880 * inferior.h (struct infcall_suspend_state_deleter): If available, use
1881 std::uncaught_exceptions instead of deprecated
1882 std::uncaught_exception.
1883
1884 2020-07-02 Simon Marchi <simon.marchi@polymtl.ca>
1885
1886 * macroexp.h (macro_stringify): Return
1887 gdb::unique_xmalloc_ptr<char>.
1888 * macroexp.c (macro_stringify): Likewise.
1889 * macrotab.c (fixup_definition): Update.
1890
1891 2020-07-02 Simon Marchi <simon.marchi@polymtl.ca>
1892
1893 * c-exp.y (scan_macro_expansion): Don't free `expansion`.
1894 (lex_one_token): Update.
1895 * macroexp.c (struct macro_buffer) <release>: Return
1896 gdb::unique_xmalloc_ptr<char>.
1897 (macro_stringify): Update.
1898 (macro_expand): Update.
1899 (macro_expand_next): Return gdb::unique_xmalloc_ptr<char>.
1900 * macroexp.h (macro_expand_next): Likewise.
1901
1902 2020-07-02 Simon Marchi <simon.marchi@efficios.com>
1903
1904 * macroexp.h (macro_lookup_ftype): Remove.
1905 (macro_expand, macro_expand_once, macro_expand_next): Remove
1906 lookup function parameters, add scope parameter.
1907 * macroexp.c (scan, substitute_args, expand, maybe_expand,
1908 macro_expand, macro_expand_once, macro_expand_next): Likewise.
1909 * macroscope.h (standard_macro_lookup): Change parameter type
1910 to macro_scope.
1911 * macroscope.c (standard_macro_lookup): Likewise.
1912 * c-exp.y (lex_one_token): Update.
1913 * macrocmd.c (macro_expand_command): Likewise.
1914 (macro_expand_once_command): Likewise.
1915
1916 2020-07-02 Simon Marchi <simon.marchi@polymtl.ca>
1917
1918 * inf-loop.c (inferior_event_handler): Remove client_data param.
1919 * inf-loop.h (inferior_event_handler): Likewise.
1920 * infcmd.c (step_1): Adjust.
1921 * infrun.c (proceed): Adjust.
1922 (fetch_inferior_event): Remove client_data param.
1923 (infrun_async_inferior_event_handler): Adjust.
1924 * infrun.h (fetch_inferior_event): Remove `void *` param.
1925 * linux-nat.c (handle_target_event): Adjust.
1926 * record-btrace.c (record_btrace_handle_async_inferior_event):
1927 Adjust.
1928 * record-full.c (record_full_async_inferior_event_handler):
1929 Adjust.
1930 * remote.c (remote_async_inferior_event_handler): Adjust.
1931
1932 2020-07-01 Tom Tromey <tom@tromey.com>
1933
1934 * tui/tui-data.h (struct tui_win_info) <name>: Now pure virtual.
1935 * tui/tui-stack.h (struct tui_locator_window) <name>: New method.
1936
1937 2020-07-01 Tom Tromey <tom@tromey.com>
1938
1939 * tui/tui-wingeneral.c (tui_win_info::refresh_window): Move from
1940 tui_gen_win_info.
1941 (tui_win_info::make_window): Merge with
1942 tui_gen_win_info::make_window.
1943 (tui_win_info::make_visible): Move from tui_gen_win_info.
1944 * tui/tui-win.c (tui_win_info::max_width): Move from
1945 tui_gen_win_info.
1946 * tui/tui-layout.h (class tui_layout_window) <m_window>: Change
1947 type.
1948 <window_factory>: Likewise.
1949 * tui/tui-layout.c (tui_win_info::resize): Move from
1950 tui_gen_win_info.
1951 (make_standard_window): Change return type.
1952 (get_locator_window, tui_get_window_by_name): Likewise.
1953 (tui_layout_window::apply): Remove a cast.
1954 * tui/tui-data.h (MIN_WIN_HEIGHT): Move earlier.
1955 (struct tui_win_info): Merge with tui_gen_win_info.
1956 (struct tui_gen_win_info): Remove.
1957
1958 2020-07-01 Tom Tromey <tom@tromey.com>
1959
1960 * tui/tui-stack.h (struct tui_locator_window): Derive from
1961 tui_win_info.
1962 <do_scroll_horizontal, do_scroll_vertical>: New methods.
1963 <can_box>: New method.
1964
1965 2020-07-01 Tom Tromey <tom@tromey.com>
1966
1967 * tui/tui-stack.h (struct tui_locator_window): Remove body.
1968
1969 2020-07-01 Tom Tromey <tom@tromey.com>
1970
1971 * tui/tui-regs.c (tui_data_window::display_registers_from)
1972 (tui_data_window::display_registers_from)
1973 (tui_data_window::first_data_item_displayed)
1974 (tui_data_window::delete_data_content_windows): Update.
1975 (tui_data_window::refresh_window, tui_data_window::no_refresh):
1976 Remove.
1977 (tui_data_window::check_register_values): Update.
1978 (tui_data_item_window::rerender): Add parameters. Update.
1979 (tui_data_item_window::refresh_window): Remove.
1980 * tui/tui-data.h (struct tui_gen_win_info) <no_refresh>: No longer
1981 virtual.
1982 * tui/tui-regs.h (struct tui_data_item_window): Don't derive from
1983 tui_gen_win_info.
1984 <refresh_window, max_height, min_height>: Remove.
1985 <rerender>: Add parameters.
1986 <x, y, visible>: New members.
1987 (struct tui_data_window) <refresh_window, no_refresh>: Remove.
1988 <m_item_width>: New member.
1989
1990 2020-07-01 Tom Tromey <tom@tromey.com>
1991
1992 * tui/tui-regs.c (tui_data_window::show_register_group)
1993 (tui_data_window::check_register_values): Update.
1994 * tui/tui-regs.h (struct tui_data_item_window) <regno>: Rename
1995 from item_no.
1996
1997 2020-07-01 Tom Tromey <tom@tromey.com>
1998
1999 * tui/tui-regs.c (tui_data_window::show_register_group): Remove
2000 useless "if".
2001
2002 2020-07-01 Tom Tromey <tom@tromey.com>
2003
2004 * tui/tui-regs.c (tui_data_window::show_register_group): Update.
2005 * tui/tui-regs.h (struct tui_data_item_window) <name>: Remove.
2006
2007 2020-07-01 Tom Tromey <tom@tromey.com>
2008
2009 * tui/tui-stack.c (SINGLE_KEY): Move from tui-data.h
2010 * tui/tui-winsource.h (enum tui_line_or_address_kind)
2011 (struct tui_line_or_address): Move from tui-data.h.
2012 * tui/tui-win.c (DEFAULT_TAB_LEN): Move from tui-data.h.
2013 * tui/tui-data.h (DEFAULT_TAB_LEN): Move to tui-win.c.
2014 (tui_cmd_window, tui_source_window_base, tui_source_window)
2015 (tui_disasm_window): Don't declare.
2016 (enum tui_line_or_address_kind, struct tui_line_or_address): Move
2017 to tui-winsource.h.
2018 (SINGLE_KEY): Move to tui-stack.c.
2019
2020 2020-07-01 Tom Tromey <tom@tromey.com>
2021
2022 * tui/tui-regs.h (struct tui_data_item_window) <content>: Now a
2023 std::string.
2024 * tui/tui-regs.c (class tab_expansion_file): New.
2025 (tab_expansion_file::write): New method.
2026 (tui_register_format): Change return type. Use
2027 tab_expansion_file.
2028 (tui_get_register, tui_data_window::display_registers_from)
2029 (tui_data_item_window::rerender): Update.
2030 * tui/tui-io.h (tui_expand_tabs): Don't declare.
2031 * tui/tui-io.c (tui_expand_tabs): Remove.
2032
2033 2020-07-01 Tom Tromey <tom@tromey.com>
2034
2035 * tui/tui-regs.c (tui_reggroup_completer): Use complete_on_enum.
2036
2037 2020-07-01 Fangrui Song <maskray@google.com>
2038
2039 * dwarf2/read.c (lnp_state_machine::check_line_address): Test -1.
2040
2041 2020-07-01 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
2042
2043 * dwarf2/read.c (set_die_type): Removed conditions to restrict
2044 forms for DW_AT_associated and DW_AT_allocated attributes,
2045 which is already checked in function attr_to_dynamic_prop.
2046
2047 2020-06-30 Tom Tromey <tromey@adacore.com>
2048
2049 * dwarf2/read.c (quirk_rust_enum): Correctly call
2050 alloc_rust_variant for default-less enum.
2051
2052 2020-06-30 Tom Tromey <tromey@adacore.com>
2053
2054 PR build/26183:
2055 * ada-lang.c (ada_lookup_name_info::ada_lookup_name_info): Use
2056 gdb::to_string.
2057
2058 2020-06-29 Simon Marchi <simon.marchi@efficios.com>
2059
2060 * gdbarch.sh (displaced_step_copy_insn): Update doc.
2061 * gdbarch.h: Re-generate.
2062
2063 2020-06-28 Tom Tromey <tom@tromey.com>
2064
2065 * command.h (cmd_types): Remove.
2066 (cmd_type): Don't declare.
2067 * cli/cli-decode.h (enum cmd_types): Uncomment. No longer a
2068 typedef.
2069 * cli/cli-cmds.c (setting_cmd): Use cmd->type directly.
2070 * cli/cli-decode.c (cmd_type): Remove.
2071
2072 2020-06-27 Pedro Alves <palves@redhat.com>
2073
2074 * fork-child.c (prefork_hook): Adjust.
2075 * infcmd.c (set_inferior_io_terminal, get_inferior_io_terminal):
2076 Delete.
2077 (set_inferior_tty_command, show_inferior_tty_command): Adjust.
2078 * inferior.c (inferior::set_tty, inferior::tty): New methods.
2079 * inferior.h (set_inferior_io_terminal, get_inferior_io_terminal):
2080 Remove declarations.
2081 (struct inferior) <set_tty, tty>: New methods.
2082 (struct inferior) <terminal>: Rename to ...
2083 (struct inferior) <m_terminal>: ... this and make private.
2084 * main.c (captured_main_1): Adjust.
2085 * mi/mi-cmd-env.c (mi_cmd_inferior_tty_set): Adjust.
2086 (mi_cmd_inferior_tty_show): Adjust.
2087 * nto-procfs.c (nto_procfs_target::create_inferior): Adjust.
2088 * windows-nat.c (windows_nat_target::create_inferior): Adjust.
2089
2090 2020-06-26 Nick Alcock <nick.alcock@oracle.com>
2091
2092 * configure.ac: Add --enable-libctf: handle --disable-static
2093 properly.
2094 * acinclude.m4: sinclude ../config/enable.m4.
2095 * Makefile.in (aclocal_m4_deps): Adjust accordingly.
2096 (LIBCTF): Substitute in.
2097 (CTF_DEPS): New, likewise.
2098 (CLIBS): libctf needs symbols from libbfd: move earlier.
2099 (CDEPS): Use CTF_DEPS, not LIBCTF, now LIBCTF can include rpath
2100 flags.
2101 * ctfread.c: Surround in ENABLE_LIBCTF.
2102 (elfctf_build_psymtabs) [!ENABLE_LIBCTF]: New stub.
2103 * configure: Regenerate.
2104 * config.in: Likewise.
2105
2106 2020-06-25 Simon Marchi <simon.marchi@efficios.com>
2107
2108 * infcmd.c (set_inferior_io_terminal): Use make_unique_xstrdup.
2109
2110 2020-06-25 Simon Marchi <simon.marchi@efficios.com>
2111
2112 * inferior.h (struct inferior) <terminal>: Change type to
2113 gdb::unique_xmalloc_ptr<char>.
2114 * inferior.c (inferior::~inferior): Don't free inf->terminal.
2115 * infcmd.c (set_inferior_io_terminal): Don't free terminal
2116 field, adjust to unique pointer.
2117 (get_inferior_io_terminal): Adjust to unique pointer.
2118
2119 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
2120
2121 * riscv-tdep.c (riscv_print_registers_info): Loop over all
2122 registers, not just the known core set of registers.
2123
2124 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
2125
2126 * riscv-tdep.c (riscv_register_name): Return NULL for duplicate
2127 fflags, frm, and fcsr registers.
2128 (riscv_register_reggroup_p): Remove unknown CSRs from save and
2129 restore groups.
2130 (riscv_tdesc_unknown_reg): New function.
2131 (riscv_gdbarch_init): Pass riscv_tdesc_unknown_reg to
2132 tdesc_use_registers.
2133 * riscv-tdep.h (struct gdbarch_tdep): Add
2134 unknown_csrs_first_regnum, unknown_csrs_count,
2135 duplicate_fflags_regnum, duplicate_frm_regnum, and
2136 duplicate_fcsr_regnum fields.
2137
2138 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
2139
2140 * target-descriptions.c (tdesc_use_registers): Add new parameter a
2141 callback, use the callback (when not null) to help number unknown
2142 registers.
2143 * target-descriptions.h (tdesc_unknown_register_ftype): New typedef.
2144 (tdesc_use_registers): Add extra parameter to declaration.
2145
2146 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
2147
2148 * riscv-tdep.c (value_of_riscv_user_reg): Moved to here from later
2149 in the file.
2150 (class riscv_pending_register_alias): Likewise.
2151 (riscv_register_feature::register_info): Change 'required_p' field
2152 to 'required', and change its type. Add 'check' member function.
2153 (riscv_register_feature::register_info::check): Define new member
2154 function.
2155 (riscv_xreg_feature): Change initialisation of 'required' field.
2156 (riscv_freg_feature): Likewise.
2157 (riscv_virtual_feature): Likewise.
2158 (riscv_csr_feature): Likewise.
2159 (riscv_check_tdesc_feature): Take extra parameter, the csr
2160 tdesc_feature, rewrite the function to use the new
2161 riscv_register_feature::register_info::check function.
2162 (riscv_gdbarch_init): Pass the csr tdesc_feature where needed.
2163
2164 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
2165
2166 * features/Makefile: Remove all references to the deleted files
2167 below.
2168 * features/riscv/32bit-csr.c: Deleted.
2169 * features/riscv/32bit-csr.xml: Deleted.
2170 * features/riscv/64bit-csr.c: Deleted.
2171 * features/riscv/64bit-csr.xml: Deleted.
2172 * features/riscv/rebuild-csr-xml.sh: Deleted.
2173
2174 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
2175
2176 * riscv-tdep.c (struct riscv_register_feature::register_info): Fix
2177 whitespace error for declaration of names member variable.
2178 (struct riscv_register_feature): Add new prefer_first_name member
2179 variable, and fix whitespace error in declaration of registers.
2180 (riscv_xreg_feature): Initialize prefer_first_name field.
2181 (riscv_freg_feature): Likewise.
2182 (riscv_virtual_feature): Likewise.
2183 (riscv_csr_feature): Likewise.
2184 (riscv_register_name): Expand on comments. Remove register name
2185 modifications for CSR and virtual registers.
2186
2187 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
2188
2189 * riscv-tdep.c (struct riscv_register_feature): Fix whitespace
2190 errors.
2191
2192 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
2193
2194 * riscv-tdep.c (riscv_create_csr_aliases): Handle csr aliases from
2195 riscv-opc.h.
2196 (class riscv_pending_register_alias): New class.
2197 (riscv_check_tdesc_feature): Take vector of pending aliases and
2198 populate it as appropriate.
2199 (riscv_setup_register_aliases): Delete.
2200 (riscv_gdbarch_init): Create vector of pending aliases and pass it
2201 to riscv_check_tdesc_feature in all cases. Use the vector to
2202 create the register aliases.
2203
2204 2020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2205
2206 * sol2-tdep.c (sol2_static_transform_name): Remove.
2207 (sol2_init_abi): Don't register it.
2208 * gdbarch.sh (static_transform_name): Remove.
2209 * gdbarch.c, gdbarch.h: Regenerate.
2210
2211 * dbxread.c (read_dbx_symtab) <'S'>: Remove call to
2212 gdbarch_static_transform_name.
2213 * mdebugread.c (parse_partial_symbols) <'S'>: Likewise.
2214 * stabsread.c (define_symbol) <'X'>: Remove.
2215 (define_symbol) <'S'>: Remove gdbarch_static_transform_name
2216 handling.
2217 <'V'>: Likewise.
2218 * xcoffread.c (scan_xcoff_symtab): Remove gdbarch.
2219 <'S'>: Remove call to gdbarch_static_transform_name.
2220
2221 2020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2222
2223 * procfs.c (procfs_pre_trace): New function.
2224 (procfs_target::create_inferior): Pass it to fork_inferior.
2225
2226 2020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2227
2228 * configure.tgt <sparc-*-linux*> (gdb_target_obs): Remove
2229 sparc-sol2-tdep.o, sol2-tdep.o, sparc64-sol2-tdep.o.
2230 <sparc64-*-linux*> (gdb_target_obs): Remove sparc64-sol2-tdep.o,
2231 sol2-tdep.o, sparc-sol2-tdep.o.
2232 * sparc-sol2-tdep.c (sparc32_sol2_init_abi): Make static.
2233 * sparc-tdep.h (sparc32_sol2_init_abi): Remove.
2234 * sparc64-sol2-tdep.c (sparc64_sol2_init_abi): Make static.
2235 * sparc64-tdep.h (sparc64_sol2_init_abi): Remove.
2236
2237 2020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2238
2239 * amd64-sol2-tdep.c (amd64_sol2_sigtramp_p): Remove.
2240 (amd64_sol2_init_abi): Use sol2_sigtramp_p.
2241 Call sol2_init_abi.
2242 Remove calls to set_gdbarch_skip_solib_resolver,
2243 set_gdbarch_core_pid_to_str.
2244 * i386-sol2-tdep.c (i386_sol2_sigtramp_p): Remove.
2245 (i386_sol2_static_transform_name): Remove.
2246 (i386_sol2_init_abi): Call sol2_init_abi.
2247 Remove calls to set_gdbarch_sofun_address_maybe_missing,
2248 set_gdbarch_static_transform_name,
2249 set_gdbarch_skip_solib_resolver, set_gdbarch_core_pid_to_str.
2250 Use sol2_sigtramp_p.
2251 * sol2-tdep.c (sol2_pc_in_sigtramp): New function.
2252 (sol2_sigtramp_p): New function.
2253 (sol2_static_transform_name): New function.
2254 (sol2_skip_solib_resolver, sol2_core_pid_to_str): Make static.
2255 (sol2_init_abi): New function.
2256 * sol2-tdep.h (sol2_sigtramp_p, sol2_init_abi): Declare.
2257 (sol2_skip_solib_resolver, sol2_core_pid_to_str): Remove.
2258 * sparc-sol2-tdep.c (sparc_sol2_pc_in_sigtramp): Remove.
2259 (sparc32_sol2_sigtramp_frame_sniffer): Just call sol2_sigtramp_p.
2260 (sparc_sol2_static_transform_name): Remove.
2261 (sparc32_sol2_init_abi): Call sol2_init_abi.
2262 Remove calls to set_gdbarch_sofun_address_maybe_missing,
2263 set_gdbarch_static_transform_name,
2264 set_gdbarch_skip_solib_resolver,
2265 set_gdbarch_core_pid_to_str.
2266 * sparc-tdep.h (sparc_sol2_pc_in_sigtramp)
2267 (sparc_sol2_static_transform_name): Remove
2268 * sparc64-sol2-tdep.c (sparc64_sol2_sigtramp_frame_sniffer): Just
2269 call sol2_sigtramp_p.
2270 (sparc64_sol2_init_abi): Call sol2_init_abi.
2271 Remove calls to set_gdbarch_sofun_address_maybe_missing,
2272 set_gdbarch_static_transform_name,
2273 set_gdbarch_skip_solib_resolver, set_gdbarch_core_pid_to_str.
2274
2275 2020-06-24 Philippe Waroquiers <philippe.waroquiers@skynet.be>
2276
2277 * symfile-add-flags.h: New flag SYMFILE_ALWAYS_CONFIRM.
2278 * exec.c (validate_exec_file): If from_tty, set both
2279 SYMFILE_VERBOSE (== from_tty) and SYMFILE_ALWAYS_CONFIRM.
2280 * symfile.c (symbol_file_add_with_addrs): if always_confirm
2281 and from_tty, unconditionally ask a confirmation.
2282
2283 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
2284
2285 * target-descriptions.c (tdesc_architecture_name): Protect against
2286 NULL pointer dereference.
2287 (maint_print_xml_tdesc_cmd): New function.
2288 (_initialize_target_descriptions): Register new 'maint print
2289 xml-tdesc' command and give it the filename completer.
2290 * NEWS: Mention new 'maint print xml-tdesc' command.
2291
2292 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
2293
2294 * target-descriptions.c (class tdesc_compatible_info): New class.
2295 (struct target_desc): Change type of compatible vector.
2296 (tdesc_compatible_p): Update for change in type of
2297 target_desc::compatible.
2298 (tdesc_compatible_info_list): New function.
2299 (tdesc_compatible_info_arch_name): New function.
2300 (tdesc_add_compatible): Update for change in type of
2301 target_desc::compatible.
2302 (print_c_tdesc::visit_pre): Likewise.
2303
2304 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
2305
2306 * target-descriptions.c (print_c_tdesc::print_c_tdesc): Change
2307 whitespace to underscore.
2308 (maint_print_c_tdesc_cmd): Use fake filename for target
2309 descriptions that came from the target.
2310 (_initialize_target_descriptions): Add filename command completion
2311 for 'maint print c-tdesc'.
2312
2313 2020-06-23 Simon Marchi <simon.marchi@efficios.com>
2314
2315 * dwarf2/loc.c (decode_debug_loclists_addresses): Add empty
2316 lines.
2317
2318 2020-06-23 Simon Marchi <simon.marchi@efficios.com>
2319
2320 * dwarf2/loc.c (decode_debug_loc_dwo_addresses): Add empty
2321 lines.
2322 (dwarf2_find_location_expression): Likewise.
2323 (call_site_parameter_matches): Likewise.
2324 (dwarf2_compile_expr_to_ax): Likewise.
2325 (disassemble_dwarf_expression): Likewise.
2326 (loclist_describe_location): Likewise.
2327
2328 2020-06-23 Pedro Alves <palves@redhat.com>
2329
2330 * gdbarch-selftests.c: Don't include inferior.h, gdbthread.h or
2331 progspace-and-thread.h. Include scoped-mock-context.h instead.
2332 (register_to_value_test): Use scoped_mock_context.
2333 * regcache.c: Include "scoped-mock-context.h".
2334 (cooked_read_test): Don't error out if a target is already pushed.
2335 Use scoped_mock_context. Adjust.
2336 * scoped-mock-context.h: New file.
2337
2338 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
2339
2340 * ada-lang.c (ada_language_data): Delete la_is_string_type_p
2341 initializer.
2342 (ada_language::is_string_type_p): New member function.
2343 * c-lang.c (c_language_data): Delete la_is_string_type_p
2344 initializer.
2345 (cplus_language_data): Likewise.
2346 (asm_language_data): Likewise.
2347 (minimal_language_data): Likewise.
2348 * d-lang.c (d_language_data): Likewise.
2349 * f-lang.c (f_is_string_type_p): Delete function, implementation
2350 moved to f_language::is_string_type_p.
2351 (f_language_data): Delete la_is_string_type_p initializer.
2352 (f_language::is_string_type_p): New member function,
2353 implementation from f_is_string_type_p.
2354 * go-lang.c (go_is_string_type_p): Delete function, implementation
2355 moved to go_language::is_string_type_p.
2356 (go_language_data): Delete la_is_string_type_p initializer.
2357 (go_language::is_string_type_p): New member function,
2358 implementation from go_is_string_type_p.
2359 * language.c (language_defn::is_string_type_p): Define new member
2360 function.
2361 (default_is_string_type_p): Make static, add comment copied from
2362 header file.
2363 (unknown_language_data): Delete la_is_string_type_p initializer.
2364 (unknown_language::is_string_type_p): New member function.
2365 (auto_language_data): Delete la_is_string_type_p initializer.
2366 (auto_language::is_string_type_p): New member function.
2367 * language.h (language_data): Delete la_is_string_type_p field.
2368 (language_defn::is_string_type_p): Declare new function.
2369 (default_is_string_type_p): Delete desclaration, move comment to
2370 definition.
2371 * m2-lang.c (m2_is_string_type_p): Delete function, implementation
2372 moved to m2_language::is_string_type_p.
2373 (m2_language_data): Delete la_is_string_type_p initializer.
2374 (m2_language::is_string_type_p): New member function,
2375 implementation from m2_is_string_type_p.
2376 * objc-lang.c (objc_language_data): Delete la_is_string_type_p
2377 initializer.
2378 * opencl-lang.c (opencl_language_data): Likewise.
2379 * p-lang.c (pascal_is_string_type_p): Delete function,
2380 implementation moved to pascal_language::is_string_type_p.
2381 (pascal_language_data): Delete la_is_string_type_p initializer.
2382 (pascal_language::is_string_type_p): New member function,
2383 implementation from pascal_is_string_type_p.
2384 * rust-lang.c (rust_is_string_type_p): Delete function,
2385 implementation moved to rust_language::is_string_type_p.
2386 (rust_language_data): Delete la_is_string_type_p initializer.
2387 (rust_language::is_string_type_p): New member function,
2388 implementation from rust_is_string_type_p.
2389 * valprint.c (val_print_scalar_or_string_type_p): Update call to
2390 is_string_type_p.
2391
2392 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
2393
2394 * ada-lang.c (ada_language_data): Delete la_print_typedef
2395 initializer.
2396 (ada_language::print_typedef): New member function.
2397 * c-lang.c (c_language_data): Delete la_print_typedef initializer.
2398 (cplus_language_data): Likewise.
2399 (asm_language_data): Likewise.
2400 (minimal_language_data): Likewise.
2401 * d-lang.c (d_language_data): Likewise.
2402 * f-lang.c (f_language_data): Likewise.
2403 (f_language::print_typedef): New member function.
2404 * go-lang.c (go_language_data): Delete la_print_typedef
2405 initializer.
2406 * language.c (language_defn::print_typedef): Define member
2407 function.
2408 (unknown_language_data): Delete la_print_typedef initializer.
2409 (unknown_language::print_typedef): New member function.
2410 (auto_language_data): Delete la_print_typedef initializer.
2411 (auto_language::print_typedef): New member function.
2412 * language.h (language_data): Delete la_print_typedef field.
2413 (language_defn::print_typedef): Declare new member function.
2414 (LA_PRINT_TYPEDEF): Update call to print_typedef.
2415 (default_print_typedef): Delete declaration.
2416 * m2-lang.c (m2_language_data): Delete la_print_typedef
2417 initializer.
2418 (m2_language::print_typedef): New member function.
2419 * objc-lang.c (objc_language_data): Delete la_print_typedef
2420 initializer.
2421 * opencl-lang.c (opencl_language_data): Likewise.
2422 * p-lang.c (pascal_language_data): Likewise.
2423 (pascal_language::print_typedef): New member function.
2424 * rust-lang.c (rust_print_typedef): Delete function,
2425 implementation moved to rust_language::print_typedef.
2426 (rust_language): Delete la_print_typedef initializer.
2427 (rust_language::print_typedef): New member function,
2428 implementation from rust_print_typedef.
2429 * typeprint.c (default_print_typedef): Delete.
2430
2431 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
2432
2433 * ada-lang.c (ada_language_data): Delete la_printstr initializer.
2434 (ada_language::printstr): New member function.
2435 * c-lang.c (c_language_data): Delete la_printstr initializer.
2436 (cplus_language_data): Likewise.
2437 (asm_language_data): Likewise.
2438 (minimal_language_data): Likewise.
2439 * d-lang.c (d_language_data): Likewise.
2440 * f-lang.c (f_printstr): Rename to f_language::printstr.
2441 (f_language_data): Delete la_printstr initializer.
2442 (f_language::printstr): New member function, implementation from
2443 f_printstr.
2444 * go-lang.c (go_language_data): Delete la_printstr initializer.
2445 * language.c (language_defn::printstr): Define new member
2446 function.
2447 (unk_lang_printstr): Delete.
2448 (unknown_language_data): Delete la_printstr initializer.
2449 (unknown_language::printstr): New member function.
2450 (auto_language_data): Delete la_printstr initializer.
2451 (auto_language::printstr): New member function.
2452 * language.h (language_data): Delete la_printstr field.
2453 (language_defn::printstr): Declare new member function.
2454 (LA_PRINT_STRING): Update call to printstr.
2455 * m2-lang.c (m2_printstr): Rename to m2_language::printstr.
2456 (m2_language_data): Delete la_printstr initializer.
2457 (m2_language::printstr): New member function, implementation from
2458 m2_printstr.
2459 * objc-lang.c (objc_language_data): Delete la_printstr
2460 initializer.
2461 * opencl-lang.c (opencl_language_data): Likewise.
2462 * p-lang.c (pascal_printstr): Rename to pascal_language::printstr.
2463 (pascal_language_data): Delete la_printstr initializer.
2464 (pascal_language::printstr): New member function, implementation
2465 from pascal_printstr.
2466 * p-lang.h (pascal_printstr): Delete declaration.
2467 * rust-lang.c (rust_printstr): Update header comment.
2468 (rust_language_data): Delete la_printstr initializer.
2469 (rust_language::printstr): New member function.
2470
2471 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
2472
2473 * ada-lang.c (ada_language_data): Delete la_printchar initializer.
2474 (ada_language::printchar): New member function.
2475 * c-lang.c (c_language_data): Delete la_printchar initializer.
2476 (cplus_language_data): Likewise.
2477 (asm_language_data): Likewise.
2478 (minimal_language_data): Likewise.
2479 * d-lang.c (d_language_data): Likewise.
2480 * f-lang.c (f_printchar): Rename to f_language::printchar.
2481 (f_language_data): Delete la_printchar initializer.
2482 (f_language::printchar): New member function, implementation from
2483 f_printchar.
2484 * go-lang.c (go_language_data): Delete la_printchar initializer.
2485 * language.c (unk_lang_printchar): Delete.
2486 (language_defn::printchar): Define new member function.
2487 (unknown_language_data): Delete la_printchar initializer.
2488 (unknown_language::printchar): New member function.
2489 (auto_language_data): Delete la_printchar initializer.
2490 (auto_language::printchar): New member function.
2491 * language.h (language_data): Delete la_printchar field.
2492 (language_defn::printchar): Declare new member function.
2493 (LA_PRINT_CHAR): Update call to printchar.
2494 * m2-lang.c (m2_language_data): Delete la_printchar initializer.
2495 (m2_language::printchar): New member function.
2496 * objc-lang.c (objc_language_data): Delete la_printchar
2497 initializer.
2498 * opencl-lang.c (opencl_language_data): Likewise.
2499 * p-lang.c (pascal_language_data): Delete la_printchar
2500 initializer.
2501 (pascal_language::printchar): New member function.
2502 * rust-lang.c (rust_printchar): Rename to
2503 rust_language::printchar.
2504 (rust_language_data): Delete la_printchar initializer.
2505 (rust_language::printchar): New member function, implementation
2506 from rust_printchar.
2507
2508 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
2509
2510 * ada-lang.c (emit_char): Renamed to ada_language::emitchar.
2511 (ada_language_data): Delete la_emitchar initializer.
2512 (ada_language::emitchar): New member function, implementation from
2513 emit_char.
2514 * c-lang.c (c_language_data): Delete la_emitchar initializer.
2515 (cplus_language_data): Likewise.
2516 (asm_language_data): Likewise.
2517 (minimal_language_data): Likewise.
2518 * d-lang.c (d_language_data): Likewise.
2519 * f-lang.c (f_emit_char): Rename to f_language::emitchar.
2520 (f_language_data): Delete la_emitchar initializer.
2521 (f_language::emitchar): New member function, implementation from
2522 f_emit_char.
2523 * go-lang.c (go_language_data): Delete la_emitchar initializer.
2524 * language.c (unk_lang_emit_char): Delete.
2525 (language_defn::emitchar): New member function definition.
2526 (unknown_language_data): Delete la_emitchar initializer.
2527 (unknown_language::emitchar): New member function.
2528 (auto_language_data): Delete la_emitchar initializer.
2529 (auto_language::emitchar): New member function.
2530 * language.h (language_data): Delete la_emitchar field.
2531 (language_defn::emitchar): New member field declaration.
2532 (LA_EMIT_CHAR): Update call to emitchar.
2533 * m2-lang.c (m2_emit_char): Rename to m2_language::emitchar.
2534 (m2_language_data): Delete la_emitchar initializer.
2535 (m2_language::emitchar): New member function, implementation from
2536 m2_emit_char.
2537 * objc-lang.c (objc_language_data): Delete la_emitchar
2538 initializer.
2539 * opencl-lang.c (opencl_language_data): Likewise.
2540 * p-lang.c (pascal_emit_char): Rename to pascal_language::emitchar.
2541 (pascal_language_data): Delete la_emitchar initializer.
2542 (pascal_language::emitchar): New member function, implementation
2543 from pascal_emit_char.
2544 * rust-lang.c (rust_emitchar): Rename to rust_language::emitchar.
2545 (rust_language_data): Delete la_emitchar initializer.
2546 (rust_language::emitchar): New member function, implementation
2547 from rust_emitchar.
2548
2549 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
2550
2551 * ada-lang.c (resolve): Rename to ada_language::post_parser.
2552 (ada_language_data): Delete la_post_parser initializer.
2553 (ada_language::post_parser): New member function.
2554 * c-lang.c (c_language_data): Delete la_post_parser initializer.
2555 (cplus_language_data): Likewise.
2556 (asm_language_data): Likewise.
2557 (minimal_language_data): Likewise.
2558 * d-lang.c (d_language_data): Likewise.
2559 * f-lang.c (f_language_data): Likewise.
2560 * go-lang.c (go_language_data): Likewise.
2561 * language.c (unknown_language_data): Likewise.
2562 (auto_language_data): Likewise.
2563 * language.h (language_data): Delete la_post_parser field.
2564 (language_defn::post_parser): New member function.
2565 * m2-lang.c (m2_language_data): Delete la_post_parser initializer.
2566 * objc-lang.c (objc_language_data): Likewise.
2567 * opencl-lang.c (opencl_language_data): Likewise.
2568 * p-lang.c (pascal_language_data): Likewise.
2569 * parse.c (parse_exp_in_context): Update call to post_parser.
2570 (null_post_parser): Delete definition.
2571 * parser-defs.h (null_post_parser): Delete declaration.
2572 * rust-lang.c (rust_language_data): Delete la_post_parser
2573 initializer.
2574
2575 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
2576
2577 * ada-lang.c (parse): Rename to ada_language::parser.
2578 (ada_language_data): Delete la_parser initializer.
2579 (ada_language::parser): New member function, implementation from
2580 parse.
2581 * c-lang.c (c_language_data): Delete la_parser initializer.
2582 (cplus_language_data): Likewise.
2583 (asm_language_data): Likewise.
2584 (minimal_language_data): Likewise.
2585 * d-lang.c (d_language_data): Likewise.
2586 (d_language::parser): New member function.
2587 * f-lang.c (f_language_data): Delete la_parser initializer.
2588 (f_language::parser): New member function.
2589 * go-lang.c (go_language_data): Delete la_parser initializer.
2590 (go_language::parser): New member function.
2591 * language.c (unk_lang_parser): Delete.
2592 (language_defn::parser): Define new member function.
2593 (unknown_language_data): Delete la_parser initializer.
2594 (unknown_language::parser): New member function.
2595 (auto_language_data): Delete la_parser initializer.
2596 (auto_language::parser): New member function.
2597 * language.h (language_data): Delete la_parser field.
2598 (language_defn::parser): Declare new member function.
2599 * m2-lang.c (m2_language_data): Delete la_parser initializer.
2600 (m2_language::parser): New member function.
2601 * objc-lang.c (objc_language_data): Delete la_parser initializer.
2602 * opencl-lang.c (opencl_language_data): Likewise.
2603 * p-lang.c (pascal_language_data): Likewise.
2604 (pascal_language::parser): New member function.
2605 * parse.c (parse_exp_in_context): Update call to parser.
2606 * rust-lang.c (rust_language_data): Delete la_parser initializer.
2607 (rust_language::parser): New member function.
2608
2609 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
2610
2611 * top.c (print_gdb_configuration): Print --with-python-libdir
2612 configuration value.
2613
2614 2020-06-22 Philippe Waroquiers <philippe.waroquiers@skynet.be>
2615
2616 * NEWS: Mention change to the alias command.
2617
2618 2020-06-22 Philippe Waroquiers <philippe.waroquiers@skynet.be>
2619
2620 * cli/cli-cmds.c (lookup_cmd_for_default_args)
2621 (alias_command_completer)
2622 (make_alias_options_def_group): New functions.
2623 (alias_opts, alias_option_defs): New struct and array.
2624 (alias_usage_error): Update usage.
2625 (alias_command): Handles optional DEFAULT-ARGS... arguments.
2626 Use option framework.
2627 (_initialize_cli_cmds): Update alias command help.
2628 Update aliases command help.
2629 (show_user):
2630 Add NULL for new default_args lookup_cmd argument.
2631 (valid_command_p): Rename to validate_aliased_command.
2632 Add NULL for new default_args lookup_cmd argument. Verify that the
2633 aliased_command has no default args.
2634 * cli/cli-decode.c (help_cmd): Show aliases definitions.
2635 (lookup_cmd_1, lookup_cmd): New argument default_args.
2636 (add_alias_cmd):
2637 Add NULL for new default_args lookup_cmd argument.
2638 (print_help_for_command): Show default args under the layout
2639 alias some_alias = some_aliased_cmd some_alias_default_arg.
2640 * cli/cli-decode.h (struct cmd_list_element): New member default_args.
2641 xfree default_args in destructor.
2642 * cli/cli-script.c (process_next_line, do_define_command):
2643 Add NULL for new default_args lookup_cmd argument.
2644 * command.h: Declare new default_args argument in lookup_cmd
2645 and lookup_cmd_1.
2646 * completer.c (complete_line_internal_1):
2647 Add NULL for new default_args lookup_cmd or lookup_cmd_1 argument.
2648 * guile/scm-cmd.c (gdbscm_parse_command_name): Likewise.
2649 * guile/scm-param.c (add_setshow_generic, pascm_parameter_defined_p):
2650 Likewise.
2651 * infcmd.c (_initialize_infcmd): Likewise.
2652 * python/py-auto-load.c (gdbpy_initialize_auto_load): Likewise.
2653 * python/py-cmd.c (gdbpy_parse_command_name): Likewise.
2654 * python/py-param.c (add_setshow_generic): Likewise.
2655 * remote.c (_initialize_remote): Likewise.
2656 * top.c (execute_command): Prepend default_args if command has some.
2657 (set_verbose):
2658 Add NULL for new default_args lookup_cmd or lookup_cmd_1 argument.
2659 * tracepoint.c (validate_actionline, encode_actions_1):
2660 Add NULL for new default_args lookup_cmd or lookup_cmd_1 argument.
2661
2662 2020-06-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2663
2664 * jit.c (jit_read_descriptor): Use bool as the return type.
2665 (jit_breakpoint_re_set_internal): Use bool as the return type.
2666 Invert the return value logic; return true if the jit breakpoint
2667 has been successfully initialized.
2668 (jit_inferior_init): Update the call to
2669 jit_breakpoint_re_set_internal.
2670
2671 2020-06-22 Pedro Alves <palves@redhat.com>
2672
2673 PR gdb/25939
2674 * procfs.c (procfs_target::wait): Don't reference inferior_ptid.
2675 Use the current inferior instead. Don't return
2676 TARGET_WAITKIND_SPURIOUS/inferior_ptid -- instead continue and
2677 wait again.
2678 * sol-thread.c (sol_thread_target::wait): Don't reference
2679 inferior_ptid.
2680 (ps_lgetregs, ps_lsetregs, ps_lgetfpregs, ps_lsetfpregs)
2681 (sol_update_thread_list_callback): Use the current inferior's pid
2682 instead of inferior_ptid.
2683
2684 2020-06-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2685
2686 * procfs.c: Cleanup many comments.
2687
2688 (READ_WATCHFLAG, WRITE_WATCHFLAG, EXEC_WATCHFLAG)
2689 (AFTER_WATCHFLAG): Replace by value.
2690
2691 (MAIN_PROC_NAME_FORMAT): Inline ...
2692 (create_procinfo): ... here.
2693
2694 (procfs_debug_inferior): Remove SYS_exec handling.
2695 (syscall_is_exec): Likewise.
2696 (procfs_set_exec_trap): Likewise.
2697
2698 (syscall_is_lwp_exit): Inline in callers.
2699 (syscall_is_exit): Likewise.
2700 (syscall_is_exec): Likewise.
2701 (syscall_is_lwp_create): Likewise.
2702
2703 (invalidate_cache): Remove #if 0 code.
2704
2705 (make_signal_thread_runnable): Remove.
2706 (procfs_target::resume): Remove #if 0 code.
2707
2708 2020-06-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2709
2710 PR gdb/25939
2711 * procfs.c (procfs_target::procfs_init_inferior): Move push_target
2712 call ...
2713 (procfs_target::create_inferior): ... here.
2714
2715 2020-06-21 Philippe Waroquiers <philippe.waroquiers@skynet.be>
2716
2717 * exec.c (validate_exec_file): Ensure the build-id is up to
2718 date by calling reopen_exec_file (that checks file timestamp
2719 to decide to re-read the file).
2720
2721 2020-06-18 Pedro Alves <palves@redhat.com>
2722
2723 PR gdb/25412
2724 * gdbthread.h (delete_thread, delete_thread_silent)
2725 (find_thread_ptid): Update comments.
2726 * thread.c (current_thread_): New global.
2727 (is_current_thread): Move higher, and reimplement.
2728 (inferior_thread): Reimplement.
2729 (set_thread_exited): Use bool. Add assertions.
2730 (add_thread_silent): Simplify thread-reuse handling by always
2731 calling delete_thread.
2732 (delete_thread): Remove intro comment.
2733 (find_thread_ptid): Skip exited threads.
2734 (switch_to_thread_no_regs): Write to current_thread_.
2735 (switch_to_no_thread): Check CURRENT_THREAD_ instead of
2736 INFERIOR_PTID. Clear current_thread_.
2737
2738 2020-06-18 Pedro Alves <palves@redhat.com>
2739
2740 * aix-thread.c (pd_update): Use switch_to_thread.
2741
2742 2020-06-18 Pedro Alves <palves@redhat.com>
2743
2744 * ravenscar-thread.c (ravenscar_thread_target): Update.
2745 (ravenscar_thread_target::update_inferior_ptid): Rename to ...
2746 (ravenscar_thread_target::add_active_thread): ... this. Don't
2747 set m_base_ptid here. Update to avoid referencing inferior_ptid.
2748 (ravenscar_thread_target::wait): Don't write to inferior_ptid.
2749
2750 2020-06-18 Pedro Alves <palves@redhat.com>
2751
2752 * nat/windows-nat.c (current_windows_thread): Remove.
2753 * nat/windows-nat.h (current_windows_thread): Remove.
2754 * windows-nat.c (windows_nat_target::stopped_by_sw_breakpoint):
2755 Adjust.
2756 (display_selectors): Adjust to fetch the current
2757 windows_thread_info based on inferior_ptid.
2758 (fake_create_process): No longer write to current_windows_thread.
2759 (windows_nat_target::get_windows_debug_event):
2760 Don't set inferior_ptid or current_windows_thread.
2761 (windows_nat_target::wait): Adjust to not rely on
2762 current_windows_thread.
2763 (do_initial_windows_stuff): Now a method of windows_nat_target.
2764 Switch to the last_ptid thread.
2765 (windows_nat_target::attach): Adjust.
2766 (windows_nat_target::detach): Use switch_to_no_thread instead of
2767 writing to inferior_ptid directly.
2768 (windows_nat_target::create_inferior): Adjust.
2769
2770 2020-06-18 Pedro Alves <palves@redhat.com>
2771
2772 * windows-nat.c (do_initial_windows_stuff): No longer set inferior_ptid.
2773
2774 2020-06-18 Pedro Alves <palves@redhat.com>
2775
2776 * go32-nat.c (go32_nat_target::create_inferior): Switch to thread
2777 after creating it, instead of writing to inferior_ptid. Don't
2778 write to inferior_ptid.
2779
2780 2020-06-18 Pedro Alves <palves@redhat.com>
2781
2782 * fork-child.c (postfork_hook): Don't write to inferior_ptid.
2783
2784 2020-06-18 Pedro Alves <palves@redhat.com>
2785
2786 * bsd-kvm.c (bsd_kvm_target_open): Switch to thread after adding
2787 it, instead of writing to inferior_ptid.
2788
2789 2020-06-18 Pedro Alves <palves@redhat.com>
2790
2791 * btrace.c (btrace_fetch): Use switch_to_thread instead of writing
2792 to inferior_ptid.
2793
2794 2020-06-18 Pedro Alves <palves@redhat.com>
2795
2796 * bsd-kvm.c (bsd_kvm_target::close): Use switch_to_no_thread
2797 instead of writing to inferior_ptid directly.
2798
2799 2020-06-18 Pedro Alves <palves@redhat.com>
2800
2801 * corelow.c (core_target::close): Use switch_to_no_thread instead
2802 of writing to inferior_ptid directly.
2803 (add_to_thread_list, core_target_open): Use switch_to_thread
2804 instead of writing to inferior_ptid directly.
2805
2806 2020-06-18 Pedro Alves <palves@redhat.com>
2807
2808 * darwin-nat.c (darwin_nat_target::decode_message): Don't write to
2809 inferior_ptid.
2810 (darwin_nat_target::stop_inferior, darwin_nat_target::kill): Avoid
2811 inferior_ptid.
2812 (darwin_attach_pid): Use switch_to_no_thread instead of writing to
2813 inferior_ptid directly.
2814 (darwin_nat_target::init_thread_list): Switch to thread, instead
2815 of writing to inferior_ptid.
2816 (darwin_nat_target::attach): Don't write to inferior_ptid.
2817 (darwin_nat_target::get_ada_task_ptid): Avoid inferior_ptid.
2818
2819 2020-06-18 Pedro Alves <palves@redhat.com>
2820
2821 * gnu-nat.c (gnu_nat_target::create_inferior): Switch to the added
2822 thread.
2823 (gnu_nat_target::attach): Don't write to inferior_ptid directly.
2824 Instead use switch_to_thread.
2825 (gnu_nat_target::detach): Use switch_to_no_thread
2826 instead of writing to inferior_ptid directly. Used passed-in
2827 inferior instead of looking up the inferior by pid.
2828
2829 2020-06-18 Pedro Alves <palves@redhat.com>
2830
2831 * go32-nat.c (go32_nat_target::create_inferior): Don't write to
2832 inferior_ptid.
2833
2834 2020-06-18 Pedro Alves <palves@redhat.com>
2835
2836 * nto-procfs.c (nto_procfs_target::update_thread_list): Avoid
2837 inferior_ptid.
2838 (nto_procfs_target::attach): Avoid inferior_ptid. Switch to
2839 thread.
2840 (nto_procfs_target::detach): Avoid referencing
2841 inferior_ptid. Use switch_to_no_thread instead of writing to
2842 inferior_ptid directly.
2843 (nto_procfs_target::mourn_inferior): Use switch_to_no_thread
2844 instead of writing to inferior_ptid directly.
2845 (nto_procfs_target::create_inferior): Avoid inferior_ptid. Switch
2846 to thread.
2847
2848 2020-06-18 Pedro Alves <palves@redhat.com>
2849
2850 * remote-sim.c (gdbsim_target::create_inferior): Switch to thread
2851 after creating it, instead of writing to inferior_ptid.
2852 (gdbsim_target_open): Use switch_to_no_thread instead of writing
2853 to inferior_ptid directly.
2854 (gdbsim_target::wait): Don't write to inferior_ptid.
2855
2856 2020-06-18 Pedro Alves <palves@redhat.com>
2857
2858 * remote.c (remote_target::remote_notice_new_inferior): Use
2859 switch_to_thread instead of writing to inferior_ptid directly.
2860 (remote_target::add_current_inferior_and_thread): Use
2861 switch_to_no_thread instead of writing to inferior_ptid directly.
2862 (extended_remote_target::attach): Use switch_to_inferior_no_thread
2863 and switch_to_thread instead of using set_current_inferior or
2864 writing to inferior_ptid directly.
2865
2866 2020-06-18 Pedro Alves <palves@redhat.com>
2867
2868 * tracectf.c (ctf_target_open): Switch to added thread instead of
2869 writing to inferior_ptid directly.
2870 (ctf_target::close): Use switch_to_no_thread instead of writing to
2871 inferior_ptid directly.
2872
2873 2020-06-18 Pedro Alves <palves@redhat.com>
2874
2875 * tracefile-tfile.c (tfile_target_open): Don't write to
2876 inferior_ptid directly, instead switch to added thread.
2877 (tfile_target::close): Use switch_to_no_thread instead of writing
2878 to inferior_ptid directly.
2879
2880 2020-06-18 Pedro Alves <palves@redhat.com>
2881
2882 * procfs.c (procfs_target::attach): Don't write to inferior_ptid.
2883 (procfs_target::detach): Use switch_to_no_thread
2884 instead of writing to inferior_ptid directly.
2885 (do_attach): Change return type to void. Switch to the added
2886 thread.
2887 (procfs_target::create_inferior): Switch to the added thread.
2888 (procfs_do_thread_registers): Don't write to inferior_ptid.
2889
2890 2020-06-18 Pedro Alves <palves@redhat.com>
2891
2892 * infrun.c (generic_mourn_inferior): Use switch_to_thread instead
2893 of writing to inferior_ptid.
2894 (scoped_restore_exited_inferior): Delete.
2895 (handle_vfork_child_exec_or_exit): Simplify using
2896 scoped_restore_current_pspace_and_thread. Use switch_to_thread
2897 instead of writing to inferior_ptid.
2898 (THREAD_STOPPED_BY): Delete.
2899 (thread_stopped_by_watchpoint, thread_stopped_by_sw_breakpoint)
2900 (thread_stopped_by_hw_breakpoint): Delete.
2901 (save_waitstatus): Use
2902 scoped_restore_current_thread+switch_to_thread, and call
2903 target_stopped_by_watchpoint instead of
2904 thread_stopped_by_watchpoint, target_stopped_by_sw_breakpoint
2905 instead of thread_stopped_by_sw_breakpoint, and
2906 target_stopped_by_hw_breakpoint instead of
2907 thread_stopped_by_hw_breakpoint.
2908 (handle_inferior_event)
2909 <TARGET_WAITKIND_EXITED/TARGET_WAITKIND_SIGNALLED>: Don't write to
2910 inferior_ptid directly, nor
2911 set_current_inferior/set_current_program_space. Use
2912 switch_to_thread / switch_to_inferior_no_thread instead.
2913
2914 2020-06-18 Pedro Alves <palves@redhat.com>
2915
2916 * target.c (generic_mourn_inferior): Use switch_to_no_thread
2917 instead of writing to inferior_ptid.
2918
2919 2020-06-18 Pedro Alves <palves@redhat.com>
2920
2921 * inf-ptrace.c (inf_ptrace_target::create_inferior): Switch to the
2922 added thread.
2923 (inf_ptrace_target::attach): Don't write to inferior_ptid. Switch
2924 to the added thread.
2925 (inf_ptrace_target::detach_success): Use switch_to_no_thread
2926 instead of writing to inferior_ptid.
2927
2928 2020-06-18 Pedro Alves <palves@redhat.com>
2929
2930 * gdbarch-selftests.c: Include "progspace-and-thread.h".
2931 (register_to_value_test): Mock a program_space too. Heap-allocate
2932 the address space. Don't write to inferior_ptid. Use
2933 switch_to_thread instead.
2934
2935 2020-06-18 Pedro Alves <palves@redhat.com>
2936
2937 * linux-tdep.c (find_signalled_thread(thread_info *,void *)):
2938 Delete.
2939 (find_signalled_thread()): New, factored out from
2940 linux_make_corefile_notes and adjusted to handle exited threads.
2941 (linux_make_corefile_notes): Adjust to use the new
2942 find_signalled_thread.
2943
2944 2020-06-18 Pedro Alves <palves@redhat.com>
2945
2946 * linux-tdep.c (btrace_fetch): Save/restore current thread instead
2947 of saving/restoring inferior_ptid.
2948
2949 2020-06-17 Tom Tromey <tom@tromey.com>
2950
2951 * tui/tui-win.h (tui_scroll_forward, tui_scroll_backward)
2952 (tui_scroll_left, tui_scroll_right, struct tui_win_info): Don't
2953 declare.
2954 * tui/tui-data.h (MIN_CMD_WIN_HEIGHT): Remove.
2955
2956 2020-06-15 Simon Marchi <simon.marchi@efficios.com>
2957
2958 * dwarf2/read.c (dwarf2_initialize_objfile): Check for presence
2959 of partial symtabs.
2960
2961 2020-06-17 Simon Marchi <simon.marchi@efficios.com>
2962
2963 * regformats/reg-arm.dat: Remove.
2964 * regformats/reg-bfin.dat: Remove.
2965 * regformats/reg-cris.dat: Remove.
2966 * regformats/reg-crisv32.dat: Remove.
2967 * regformats/reg-m32r.dat: Remove.
2968 * regformats/reg-tilegx.dat: Remove.
2969 * regformats/reg-tilegx32.dat: Remove.
2970
2971 2020-06-17 Simon Marchi <simon.marchi@efficios.com>
2972
2973 * features/Makefile (WHICH): Remove arm files.
2974 * regformats/arm/arm-with-iwmmxt.dat: Remove.
2975 * regformats/arm/arm-with-neon.dat: Remove.
2976 * regformats/arm/arm-with-vfpv2.dat: Remove.
2977 * regformats/arm/arm-with-vfpv3.dat: Remove.
2978
2979 2020-06-17 Simon Marchi <simon.marchi@efficios.com>
2980
2981 * features/Makefile (XMLTOC): Remove rx.xml.
2982
2983 2020-06-17 Pedro Alves <palves@redhat.com>
2984
2985 * gdbthread.h (thread_control_state) <trap_expected> Update
2986 comments.
2987
2988 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
2989
2990 * ada-lang.c (ada_lookup_symbol_nonlocal): Rename to
2991 ada_language::lookup_symbol_nonlocal.
2992 (ada_language_data): Delete la_lookup_symbol_nonlocal initializer.
2993 (ada_language::lookup_symbol_nonlocal): New member function,
2994 implementation from ada_lookup_symbol_nonlocal.
2995 * c-lang.c (c_language_data): Delete la_lookup_symbol_nonlocal
2996 initializer.
2997 (cplus_language_data): Delete la_lookup_symbol_nonlocal
2998 initializer.
2999 (cplus_language::lookup_symbol_nonlocal): New member function.
3000 (asm_language_data): Delete la_lookup_symbol_nonlocal initializer.
3001 (minimal_language_data) Likewise.
3002 * cp-namespace.c (cp_lookup_nested_symbol): Update comment.
3003 * d-lang.c (d_language_data): Delete la_lookup_symbol_nonlocal
3004 initializer.
3005 (d_language::lookup_symbol_nonlocal): New member function.
3006 * f-lang.c (f_language_data): Delete la_lookup_symbol_nonlocal
3007 initializer.
3008 (f_language::lookup_symbol_nonlocal): New member function.
3009 * go-lang.c (go_language_data): Delete la_lookup_symbol_nonlocal
3010 initializer.
3011 * language.c (unknown_language_data): Likewise.
3012 (auto_language_data): Likewise.
3013 * language.h (language_data): Delete la_lookup_symbol_nonlocal
3014 field.
3015 (language_defn::lookup_symbol_nonlocal): New member function.
3016 * m2-lang.c (m2_language_data): Delete la_lookup_symbol_nonlocal
3017 initializer.
3018 * objc-lang.c (objc_language_data): Likewise.
3019 * opencl-lang.c (opencl_language_data): Likewise.
3020 * p-lang.c (pascal_language_data): Likewise.
3021 * rust-lang.c (rust_lookup_symbol_nonlocal): Rename to
3022 rust_language::lookup_symbol_nonlocal.
3023 (rust_language_data): Delete la_lookup_symbol_nonlocal
3024 initializer.
3025 (rust_language::lookup_symbol_nonlocal): New member function,
3026 implementation from rust_lookup_symbol_nonlocal.
3027 * symtab.c (lookup_symbol_aux): Update call to
3028 lookup_symbol_nonlocal.
3029 (basic_lookup_symbol_nonlocal): Rename to...
3030 (language_defn::lookup_symbol_nonlocal): ...this, and update
3031 header comment. Remove language_defn parameter, and replace with
3032 uses of `this'.
3033 * symtab.h (basic_lookup_symbol_nonlocal): Delete declaration.
3034
3035 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
3036
3037 * ada-lang.c (ada_language_data): Delete la_value_print_inner
3038 initializer.
3039 (ada_language::value_print_inner): New member function.
3040 * c-lang.c (c_language_data): Delete la_value_print_inner
3041 initializer.
3042 (cplus_language_data): Likewise.
3043 (asm_language_data): Likewise.
3044 (minimal_language_data): Likewise.
3045 * d-lang.c (d_language_data): Likewise.
3046 (d_language::value_print_inner): New member function.
3047 * f-lang.c (f_language_data): Delete la_value_print_inner
3048 initializer.
3049 (f_language::value_print_inner): New member function.
3050 * f-lang.h (f_value_print_innner): Rename to...
3051 (f_value_print_inner): ...this (note spelling of 'inner').
3052 * f-valprint.c (f_value_print_innner): Rename to...
3053 (f_value_print_inner): ...this (note spelling of 'inner').
3054 * go-lang.c (go_language_data): Delete la_value_print_inner
3055 initializer.
3056 (go_language::value_print_inner): New member function.
3057 * language.c (language_defn::value_print_inner): Define new member
3058 function.
3059 (unk_lang_value_print_inner): Delete.
3060 (unknown_language_data): Delete la_value_print_inner initializer.
3061 (unknown_language::value_print_inner): New member function.
3062 (auto_language_data): Delete la_value_print_inner initializer.
3063 (auto_language::value_print_inner): New member function.
3064 * language.h (language_data): Delete la_value_print_inner field.
3065 (language_defn::value_print_inner): Delcare new member function.
3066 * m2-lang.c (m2_language_data): Delete la_value_print_inner
3067 initializer.
3068 (m2_language::value_print_inner): New member function.
3069 * objc-lang.c (objc_language_data): Delete la_value_print_inner
3070 initializer.
3071 * opencl-lang.c (opencl_language_data): Likewise.
3072 * p-lang.c (pascal_language_data): Likewise.
3073 (pascal_language::value_print_inner): New member function.
3074 * rust-lang.c (rust_language_data): Delete la_value_print_inner
3075 initializer.
3076 (rust_language::value_print_inner): New member function.
3077 * valprint.c (do_val_print): Update call to value_print_inner.
3078
3079 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
3080
3081 * ada-lang.c (ada_language_data): Delete la_value_print
3082 initializer.
3083 (ada_language::value_print): New member function.
3084 * c-lang.c (c_language_data): Delete la_value_print initializer.
3085 (cplus_language_data): Likewise.
3086 (asm_language_data): Likewise.
3087 (minimal_language_data): Likewise.
3088 * d-lang.c (d_language_data): Likewise.
3089 * f-lang.c (f_language_data): Likewise.
3090 * go-lang.c (go_language_data): Likewise.
3091 * language.c (unk_lang_value_print): Delete.
3092 (language_defn::value_print): Define new member function.
3093 (unknown_language_data): Delete la_value_print initializer.
3094 (unknown_language::value_print): New member function.
3095 (auto_language_data): Delete la_value_print initializer.
3096 (auto_language::value_print): New member function.
3097 * language.h (language_data): Delete la_value_print field.
3098 (language_defn::value_print): Declare new member function.
3099 (LA_VALUE_PRINT): Update call to value_print.
3100 * m2-lang.c (m2_language_data): Delete la_value_print initializer.
3101 * objc-lang.c (objc_language_data): Likewise.
3102 * opencl-lang.c (opencl_language_data): Likewise.
3103 * p-lang.c (pascal_language_data): Likewise.
3104 (pascal_language::value_print): New member function.
3105 * rust-lang.c (rust_language_data): Delete la_value_print
3106 initializer.
3107
3108 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
3109
3110 * ada-lang.c (ada_watch_location_expression): Rename to
3111 ada_language::watch_location_expression.
3112 (ada_language_data): Delete la_watch_location_expression
3113 initializer.
3114 (ada_language::watch_location_expression): New member function,
3115 implementation from ada_watch_location_expression.
3116 * breakpoint.c (watch_command_1): Update call to
3117 watch_location_expression.
3118 * c-lang.c (c_watch_location_expression): Rename to
3119 language_defn::watch_location_expression.
3120 (c_language_data): Delete la_watch_location_expression
3121 initializer.
3122 (cplus_language_data): Likewise.
3123 (asm_language_data): Likewise.
3124 (minimal_language_data): Likewise.
3125 * c-lang.h (c_watch_location_expression): Delete declaration.
3126 * d-lang.c (d_language_data): Delete la_watch_location_expression
3127 initializer.
3128 * f-lang.c (f_language_data): Likewise.
3129 * go-lang.c (go_language_data): Likewise.
3130 * language.c (language_defn::watch_location_expression): Member
3131 function implementation from c_watch_location_expression.
3132 (unknown_language_data): Delete la_watch_location_expression
3133 initializer.
3134 (auto_language_data): Likewise.
3135 * language.h (language_data): Delete la_watch_location_expression
3136 field.
3137 (language_defn::watch_location_expression): Declare new member
3138 function.
3139 * m2-lang.c (m2_language_data): Delete
3140 la_watch_location_expression initializer.
3141 * objc-lang.c (objc_language_data): Likewise.
3142 * opencl-lang.c (opencl_language_data): Likewise.
3143 * p-lang.c (pascal_language_data): Likewise.
3144 * rust-lang.c (rust_watch_location_expression): Rename to
3145 rust_language::watch_location_expression.
3146 (rust_language_data): Delete la_watch_location_expression
3147 initializer.
3148 (rust_language::watch_location_expression): New member function,
3149 implementation from rust_watch_location_expression.
3150
3151 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
3152
3153 * ada-lang.c (ada_collect_symbol_completion_matches): Rename to
3154 ada_language::collect_symbol_completion_matches.
3155 (ada_language_data): Delete la_collect_symbol_completion_matches
3156 initializer.
3157 (ada_language::collect_symbol_completion_matches): New member
3158 function, implementation from
3159 ada_collect_symbol_completion_matches.
3160 * c-lang.c (c_language_data): Delete
3161 la_collect_symbol_completion_matches initializer.
3162 (cplus_language_data): Likewise.
3163 (asm_language_data): Likewise.
3164 (minimal_language_data): Likewise.
3165 * d-lang.c (d_language_data): Likewise.
3166 * f-lang.c (f_collect_symbol_completion_matches): Rename to
3167 f_language::collect_symbol_completion_matches.
3168 (f_language_data): Delete la_collect_symbol_completion_matches
3169 initializer.
3170 (f_language::collect_symbol_completion_matches) New member
3171 function, implementation from f_collect_symbol_completion_matches.
3172 * go-lang.c (go_language_data): Delete
3173 la_collect_symbol_completion_matches initializer.
3174 * language.c (unknown_language_data): Likewise.
3175 (auto_language_data): Likewise.
3176 * language.h (language_data): Delete
3177 la_collect_symbol_completion_matches field.
3178 (language_defn::collect_symbol_completion_matches): New member
3179 function.
3180 * m2-lang.c (m2_language_data): Delete
3181 la_collect_symbol_completion_matches initializer.
3182 * objc-lang.c (objc_language_data): Likewise.
3183 * opencl-lang.c (opencl_language_data): Likewise.
3184 * p-lang.c (pascal_language_data): Likewise.
3185 * rust-lang.c (rust_language_data): Likewise.
3186 * symtab.c (default_collect_symbol_completion_matches): Delete.
3187 (collect_symbol_completion_matches): Update call to
3188 collect_symbol_completion_matches.
3189 (collect_symbol_completion_matches_type): Likewise.
3190 * symtab.h (default_collect_symbol_completion_matches): Delete
3191 declaration.
3192
3193 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
3194
3195 * ada-lang.c (ada_get_gdb_completer_word_break_characters): Delete.
3196 (ada_language_data): Delete la_word_break_characters initializer.
3197 (ada_language::word_break_characters): New member function.
3198 * c-lang.c (c_language_data): Delete la_word_break_characters
3199 initializer.
3200 (cplus_language_data): Likewise.
3201 (asm_language_data): Likewise.
3202 (minimal_language_data): Likewise.
3203 * completer.c: Update global comment.
3204 (advance_to_expression_complete_word_point): Update call to
3205 word_break_characters.
3206 (complete_files_symbols): Likewise.
3207 (complete_line_internal_1): Likewise.
3208 (default_completer_handle_brkchars): Likewise.
3209 (skip_quoted_chars): Likewise.
3210 * d-lang.c (d_language_data): Delete la_word_break_characters
3211 initializer.
3212 * f-lang.c (f_word_break_characters): Delete.
3213 (f_language_data): Delete la_word_break_characters initializer.
3214 (f_language::word_break_characters): New member function.
3215 * go-lang.c (go_language_data): Delete la_word_break_characters
3216 initializer.
3217 * language.c (unknown_language_data): Likewise.
3218 (auto_language_data): Likewise.
3219 * language.h (default_word_break_characters): Move declaration to
3220 earlier in the file.
3221 (language_data): Delete la_word_break_characters field.
3222 (language_defn::word_break_characters): New member function.
3223 * m2-lang.c (m2_language_data): Delete la_word_break_characters
3224 initializer.
3225 * objc-lang.c (objc_language_data): Likewise.
3226 * opencl-lang.c (opencl_language_data): Likewise.
3227 * p-lang.c (pascal_language_data): Likewise.
3228 * rust-lang.c (rust_language_data): Likewise.
3229
3230 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
3231
3232 * ada-lang.c (ada_get_symbol_name_matcher): Update header comment.
3233 (ada_language_data): Delete la_get_symbol_name_matcher
3234 initializer.
3235 (language_defn::get_symbol_name_matcher_inner): New member
3236 function.
3237 * c-lang.c (c_language_data): Delete la_get_symbol_name_matcher
3238 initializer.
3239 (cplus_language_data): Likewise.
3240 (cplus_language::get_symbol_name_matcher_inner): New member
3241 function.
3242 (asm_language_data): Delete la_get_symbol_name_matcher initializer.
3243 (minimal_language_data): Likewise.
3244 * cp-support.h (cp_get_symbol_name_matcher): Update header comment.
3245 * d-lang.c (d_language_data): Delete la_get_symbol_name_matcher
3246 initializer.
3247 * dictionary.c (iter_match_first_hashed): Update call to
3248 get_symbol_name_matcher.
3249 (iter_match_next_hashed): Likewise.
3250 (iter_match_next_linear): Likewise.
3251 * dwarf2/read.c (dw2_expand_symtabs_matching_symbol): Likewise.
3252 * f-lang.c (f_language_data): Delete la_get_symbol_name_matcher
3253 initializer.
3254 (f_language::get_symbol_name_matcher_inner): New member function.
3255 * go-lang.c (go_language_data): Delete la_get_symbol_name_matcher
3256 initializer.
3257 * language.c (default_symbol_name_matcher): Update header comment,
3258 make static.
3259 (language_defn::get_symbol_name_matcher): New definition.
3260 (language_defn::get_symbol_name_matcher_inner): Likewise.
3261 (get_symbol_name_matcher): Delete.
3262 (unknown_language_data): Delete la_get_symbol_name_matcher
3263 initializer.
3264 (auto_language_data): Likewise.
3265 * language.h (language_data): Delete la_get_symbol_name_matcher
3266 field.
3267 (language_defn::get_symbol_name_matcher): New member function.
3268 (language_defn::get_symbol_name_matcher_inner): Likewise.
3269 (default_symbol_name_matcher): Delete declaration.
3270 * linespec.c (find_methods): Update call to
3271 get_symbol_name_matcher.
3272 * m2-lang.c (m2_language_data): Delete la_get_symbol_name_matcher
3273 initializer.
3274 * minsyms.c (lookup_minimal_symbol): Update call to
3275 get_symbol_name_matcher.
3276 (iterate_over_minimal_symbols): Likewise.
3277 * objc-lang.c (objc_language_data): Delete
3278 la_get_symbol_name_matcher initializer.
3279 * opencl-lang.c (opencl_language_data): Likewise.
3280 * p-lang.c (pascal_language_data): Likewise.
3281 * psymtab.c (psymbol_name_matches): Update call to
3282 get_symbol_name_matcher.
3283 * rust-lang.c (rust_language_data): Delete
3284 la_get_symbol_name_matcher initializer.
3285 * symtab.c (symbol_matches_search_name): Update call to
3286 get_symbol_name_matcher.
3287 (compare_symbol_name): Likewise.
3288
3289 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
3290
3291 * ada-lang.c (ada_language_data): Delete la_compute_program
3292 initializer.
3293 * c-lang.c (c_language_data): Likewise.
3294 (c_language::compute_program): New member function.
3295 (cplus_language_data): Delete la_compute_program initializer.
3296 (cplus_language::compute_program): New member function.
3297 (asm_language_data): Delete la_compute_program initializer.
3298 (minimal_language_data): Likewise.
3299 * c-lang.h (c_compute_program): Update comment.
3300 (cplus_compute_program): Likewise.
3301 * compile/compile-c-support.c (c_compute_program): Likewise.
3302 (cplus_compute_program): Likewise.
3303 * compile/compile.c (compile_to_object): Update call to
3304 la_compute_program.
3305 * d-lang.c (d_language_data): Delete la_compute_program
3306 initializer.
3307 * f-lang.c (f_language_data): Likewise.
3308 * go-lang.c (go_language_data): Likewise.
3309 * language.c (unknown_language_data): Likewise.
3310 (auto_language_data): Likewise.
3311 * language.h (language_data): Delete la_compute_program field.
3312 (language_defn::compute_program): New member function.
3313 * m2-lang.c (m2_language_data): Delete la_compute_program
3314 initializer.
3315 * objc-lang.c (objc_language_data): Likewise.
3316 * opencl-lang.c (opencl_language_data): Likewise.
3317 * p-lang.c (pascal_language_data): Likewise.
3318 * rust-lang.c (rust_language_data): Likewise.
3319
3320 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
3321
3322 * ada-lang.c (ada_language_data) Delete
3323 la_class_name_from_physname initializer.
3324 * c-lang.c (c_language_data): Likewise.
3325 (cplus_language_data): Likewise.
3326 (cplus_language::class_name_from_physname): New member function.
3327 (asm_language_data): Delete la_class_name_from_physname
3328 initializer.
3329 (minimal_language_data): Likewise.
3330 * d-lang.c (d_language_data): Likewise.
3331 * dwarf2/read.c (guess_partial_die_structure_name): Update to call
3332 method on language_defn class.
3333 (guess_full_die_structure_name): Likewise.
3334 * f-lang.c (f_language_data): Delete la_class_name_from_physname
3335 initializer.
3336 * go-lang.c (go_language_data): Likewise.
3337 * language.c (language_class_name_from_physname): Delete.
3338 (unk_lang_class_name): Delete.
3339 (unknown_language_data): Delete la_class_name_from_physname
3340 initializer.
3341 (auto_language_data): Likewise.
3342 * language.h (language_data): Delete la_class_name_from_physname
3343 field.
3344 (language_defn::class_name_from_physname): New function.
3345 (language_class_name_from_physname): Delete declaration.
3346 * m2-lang.c (m2_language_data): Delete la_class_name_from_physname
3347 initializer.
3348 * objc-lang.c (objc_language_data): Likewise.
3349 * opencl-lang.c (opencl_language_data): Likewise.
3350 * p-lang.c (pascal_language_data): Likewise.
3351 * rust-lang.c (rust_language_data): Likewise.
3352
3353 2020-06-16 Tom Tromey <tom@tromey.com>
3354
3355 * tui/tui-data.h (STATUS_NAME): New macro.
3356 * tui/tui-layout.c (tui_remove_some_windows)
3357 (initialize_known_windows, tui_register_window)
3358 (tui_layout_split::remove_windows, initialize_layouts)
3359 (tui_new_layout_command): Don't use hard-coded window names.
3360
3361 2020-06-16 Tom Tromey <tom@tromey.com>
3362
3363 PR tui/25348:
3364 * tui/tui.c (tui_ensure_readline_initialized): Rename from
3365 tui_initialize_readline. Only run once. Call rl_initialize.
3366 * tui/tui.h (tui_ensure_readline_initialized): Rename from
3367 tui_initialize_readline.
3368 * tui/tui-io.c (tui_setup_io): Call
3369 tui_ensure_readline_initialized.
3370 * tui/tui-interp.c (tui_interp::init): Update.
3371
3372 2020-06-16 Tom Tromey <tom@tromey.com>
3373
3374 * tui/tui-layout.c (tui_layout_split::remove_windows): Fix logic.
3375 Also preserve the status window.
3376
3377 2020-06-16 Tom Tromey <tom@tromey.com>
3378
3379 * python/py-tui.c (tui_py_window::~tui_py_window): Handle case
3380 where m_window==nullptr.
3381
3382 2020-06-15 Tom Tromey <tromey@adacore.com>
3383
3384 * windows-nat.c (windows_nat::handle_output_debug_string):
3385 Update.
3386 (windows_nat::handle_ms_vc_exception): Update.
3387 * target.h (target_read_string): Change API.
3388 * target.c (target_read_string): Change API.
3389 * solib-svr4.c (open_symbol_file_object, svr4_read_so_list):
3390 Update.
3391 * solib-frv.c (frv_current_sos): Update.
3392 * solib-dsbt.c (dsbt_current_sos): Update.
3393 * solib-darwin.c (darwin_current_sos): Update.
3394 * linux-thread-db.c (inferior_has_bug): Update.
3395 * expprint.c (print_subexp_standard): Update.
3396 * ada-lang.c (ada_main_name, ada_tag_name_from_tsd)
3397 (ada_exception_message_1): Update.
3398
3399 2020-06-15 Tom Tromey <tromey@adacore.com>
3400
3401 * linux-tdep.c (dump_mapping_p): Use target_read_memory.
3402
3403 2020-06-15 Tom Tromey <tromey@adacore.com>
3404
3405 * valprint.c (read_string): Update comment.
3406 * target.c (MIN): Remove.
3407 (target_read_string): Rewrite.
3408
3409 2020-06-15 Tom Tromey <tromey@adacore.com>
3410
3411 * corefile.c (read_memory_string): Remove.
3412 * ada-valprint.c (ada_value_print_ptr): Update.
3413 * ada-lang.h (ada_tag_name): Change return type.
3414 * ada-lang.c (type_from_tag): Update.
3415 (ada_tag_name_from_tsd): Change return type. Use
3416 target_read_string.
3417 (ada_tag_name): Likewise.
3418 * gdbcore.h (read_memory_string): Don't declare.
3419
3420 2020-06-14 Hannes Domani <ssbssa@yahoo.de>
3421
3422 * symtab.c (rbreak_command): Ignore Windows drive colon.
3423
3424 2020-06-12 Simon Marchi <simon.marchi@efficios.com>
3425
3426 * NEWS: Mention removed GDBserver host support.
3427
3428 2020-06-12 Nelson Chu <nelson.chu@sifive.com>
3429
3430 * features/riscv/rebuild-csr-xml.sh: Updated.
3431
3432 2020-06-11 Tom Tromey <tom@tromey.com>
3433
3434 PR gdb/18318:
3435 * c-exp.y (lex_one_token): Handle 'p' like 'e'.
3436
3437 2020-06-09 Jonny Grant <jg@jguk.org>
3438 2020-06-09 Simon Marchi <simon.marchi@polymtl.ca>
3439
3440 * main.c (captured_main_1): Don't print new line after help.
3441 (print_gdb_help): add mailing list and IRC channel information
3442 to --help. Add new lines between items in the footer. Remove
3443 quotes around bug url.
3444
3445 2020-06-11 Keith Seitz <keiths@redhat.com>
3446
3447 PR gdb/21356
3448 * gdbtypes.c (resolve_dynamic_union, resolve_dynamic_struct):
3449 Resolve typedefs for type length calculations.
3450
3451 2020-06-10 Tom de Vries <tdevries@suse.de>
3452
3453 PR ada/24713
3454 * dwarf2/index-write.c (struct mapped_symtab): Add m_string_obstack.
3455 (write_psymbols): Enable .gdb_index for ada.
3456 * dwarf2/read.c: Remove comment stating .gdb_index is unsupported for
3457 ada.
3458
3459 2020-06-10 Tom de Vries <tdevries@suse.de>
3460
3461 * dwarf2/read.c (dw2_symtab_iter_init_common): Factor out of ...
3462 (dw2_symtab_iter_init): ... here. Add variant with "offset_type
3463 namei" instead of "const char *name" argument.
3464 (dw2_map_matching_symbols): Use "offset_type namei" variant of
3465 dw2_symtab_iter_init.
3466
3467 2020-06-08 Simon Marchi <simon.marchi@efficios.com>
3468
3469 * gdbtypes.h (TYPE_FIELD_TYPE): Remove. Change all call sites
3470 to use type::field and field::type instead.
3471
3472 2020-06-08 Simon Marchi <simon.marchi@efficios.com>
3473
3474 * gdbtypes.h (FIELD_TYPE): Remove. Change all call sites
3475 to use field::type instead.
3476
3477 2020-06-08 Simon Marchi <simon.marchi@efficios.com>
3478
3479 * gdbtypes.h (struct field) <type, set_type>: New methods.
3480 Rename `type` field to...
3481 <m_type>: ... this. Change references throughout to use type or
3482 set_type methods.
3483 (FIELD_TYPE): Use field::type. Change call sites that modify
3484 the field's type to use field::set_type instead.
3485
3486 2020-06-08 Simon Marchi <simon.marchi@efficios.com>
3487
3488 * gdbtypes.h (TYPE_INDEX_TYPE): Remove. Change all call sites
3489 to use type::index_type instead.
3490
3491 2020-06-08 Simon Marchi <simon.marchi@efficios.com>
3492
3493 * gdbtypes.h (struct type) <index_type, set_index_type>: New
3494 methods.
3495 (TYPE_INDEX_TYPE): Use type::index_type.
3496 * gdbtypes.c (create_array_type_with_stride): Likewise.
3497
3498 2020-06-07 Tom Tromey <tom@tromey.com>
3499
3500 * valprint.c (generic_val_print_float): Remove "embedded_offset"
3501 parameter.
3502 (generic_value_print): Update.
3503
3504 2020-06-05 Andrew Burgess <andrew.burgess@embecosm.com>
3505
3506 Revert commit 982a38f60b0.
3507 * python/py-tui.c (gdbpy_tui_set_title): Restore use of get.
3508
3509 2020-06-05 Andrew Burgess <andrew.burgess@embecosm.com>
3510
3511 * python/py-tui.c (gdbpy_tui_set_title): Use release, not get, to
3512 avoid use after free.
3513
3514 2020-06-05 Tom de Vries <tdevries@suse.de>
3515
3516 * NEWS: Fix typos.
3517
3518 2020-06-04 Simon Marchi <simon.marchi@efficios.com>
3519
3520 * dwarf2/read.c (dwarf2_read_gdb_index): Save partial_symtabs in
3521 the per_bfd object.
3522 (dwarf2_read_debug_names): Likewise.
3523 (dwarf2_initialize_objfile): Use partial_symtabs from per_bfd
3524 object when re-using a per_bfd object with an index.
3525
3526 2020-06-03 Tom de Vries <tdevries@suse.de>
3527
3528 PR symtab/26046
3529 * dwarf2/read.c (scan_partial_symbols): Recurse into DW_TAG_subprogram
3530 children for C++.
3531 (load_partial_dies): Don't skip DW_TAG_inlined_subroutine child of
3532 DW_TAG_subprogram.
3533
3534 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
3535
3536 * ada-lang.c (ada_language_data): Delete skip_trampoline
3537 initializer.
3538 * c-lang.c (c_language_data): Likewise.
3539 (cplus_language_data): Likewise.
3540 (cplus_language::skip_trampoline): New member function.
3541 (asm_language_data): Delete skip_trampoline initializer.
3542 (minimal_language_data): Likewise.
3543 * d-lang.c (d_language_data): Likewise.
3544 * f-lang.c (f_language_data): Likewise.
3545 * go-lang.c (go_language_data): Likewise.
3546 * language.c (unk_lang_trampoline): Delete function.
3547 (skip_language_trampoline): Update.
3548 (unknown_language_data): Delete skip_trampoline initializer.
3549 (auto_language_data): Likewise.
3550 * language.h (language_data): Delete skip_trampoline field.
3551 (language_defn::skip_trampoline): New function.
3552 * m2-lang.c (m2_language_data): Delete skip_trampoline
3553 initializer.
3554 * objc-lang.c (objc_skip_trampoline): Delete function, move
3555 implementation to objc_language::skip_trampoline.
3556 (objc_language_data): Delete skip_trampoline initializer.
3557 (objc_language::skip_trampoline): New member function with
3558 implementation from objc_skip_trampoline.
3559 * opencl-lang.c (opencl_language_data): Delete skip_trampoline
3560 initializer.
3561 * p-lang.c (pascal_language_data): Likewise.
3562 * rust-lang.c (rust_language_data): Likewise.
3563
3564 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
3565
3566 * ada-lang.c (ada_language_data): Delete la_demangle initializer.
3567 (ada_language::demangle): New member function.
3568 * c-lang.c (c_language_data): Delete la_demangle initializer.
3569 (cplus_language_data): Delete la_demangle initializer.
3570 (cplus_language::demangle): New member function.
3571 (asm_language_data): Delete la_demangle initializer.
3572 (minimal_language_data): Delete la_demangle initializer.
3573 * d-lang.c (d_language_data): Delete la_demangle initializer.
3574 (d_language::demangle): New member function.
3575 * f-lang.c (f_language_data): Delete la_demangle initializer.
3576 (f_language::demangle): New member function.
3577 * go-lang.c (go_language_data): Delete la_demangle initializer.
3578 (go_language::demangle): New member function.
3579 * language.c (language_demangle): Update.
3580 (unk_lang_demangle): Delete.
3581 (unknown_language_data): Delete la_demangle initializer.
3582 (unknown_language::demangle): New member function.
3583 (auto_language_data): Delete la_demangle initializer.
3584 (auto_language::demangle): New member function.
3585 * language.h (language_data): Delete la_demangle field.
3586 (language_defn::demangle): New function.
3587 * m2-lang.c (m2_language_data): Delete la_demangle initializer.
3588 * objc-lang.c (objc_language_data): Delete la_demangle
3589 initializer.
3590 (objc_language::demangle): New member function.
3591 * opencl-lang.c (opencl_language_data): Delete la_demangle
3592 initializer.
3593 * p-lang.c (pascal_language_data): Likewise.
3594 * rust-lang.c (rust_language_data): Likewise.
3595 (rust_language::demangle): New member function.
3596
3597 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
3598
3599 * ada-lang.c (ada_language_data): Delete la_print_type
3600 initializer.
3601 (ada_language::print_type): New member function.
3602 * c-lang.c (c_language_data): Delete la_print_type initializer.
3603 (c_language::print_type): New member function.
3604 (cplus_language_data): Delete la_print_type initializer.
3605 (cplus_language::print_type): New member function.
3606 (asm_language_data): Delete la_print_type initializer.
3607 (asm_language::print_type): New member function.
3608 (minimal_language_data): Delete la_print_type initializer.
3609 (minimal_language::print_type): New member function.
3610 * d-lang.c (d_language_data): Delete la_print_type initializer.
3611 (d_language::print_type): New member function.
3612 * f-lang.c (f_language_data): Delete la_print_type initializer.
3613 (f_language::print_type): New member function.
3614 * go-lang.c (go_language_data): Delete la_print_type initializer.
3615 (go_language::print_type): New member function.
3616 * language.c (unk_lang_print_type): Delete.
3617 (unknown_language_data): Delete la_print_type initializer.
3618 (unknown_language::print_type): New member function.
3619 (auto_language_data): Delete la_print_type initializer.
3620 (auto_language::print_type): New member function.
3621 * language.h (language_data): Delete la_print_type field.
3622 (language_defn::print_type): New function.
3623 (LA_PRINT_TYPE): Update.
3624 * m2-lang.c (m2_language_data): Delete la_print_type initializer.
3625 (m2_language::print_type): New member function.
3626 * objc-lang.c (objc_language_data): Delete la_print_type
3627 initializer.
3628 (objc_language::print_type): New member function.
3629 * opencl-lang.c (opencl_print_type): Delete, implementation moved
3630 to opencl_language::print_type.
3631 (opencl_language_data): Delete la_print_type initializer.
3632 (opencl_language::print_type): New member function, implementation
3633 from opencl_print_type.
3634 * p-lang.c (pascal_language_data): Delete la_print_type
3635 initializer.
3636 (pascal_language::print_type): New member function.
3637 * rust-lang.c (rust_print_type): Delete, implementation moved to
3638 rust_language::print_type.
3639 (rust_language_data): Delete la_print_type initializer.
3640 (rust_language::print_type): New member function, implementation
3641 from rust_print_type.
3642
3643 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
3644
3645 * ada-lang.c (ada_sniff_from_mangled_name): Delete function,
3646 implementation moves to...
3647 (ada_language::sniff_from_mangled_name): ...here. Update return
3648 type.
3649 (ada_language_data): Delete la_sniff_from_mangled_name
3650 initializer.
3651 * c-lang.c (c_language_data): Likewise.
3652 (cplus_language_data): Likewise.
3653 (cplus_language::sniff_from_mangled_name): New member function,
3654 implementation taken from gdb_sniff_from_mangled_name.
3655 (asm_language_data): Delete la_sniff_from_mangled_name
3656 initializer.
3657 (minimal_language_data): Likewise.
3658 * cp-support.c (gdb_sniff_from_mangled_name): Delete,
3659 implementation moves to cplus_language::sniff_from_mangled_name.
3660 * cp-support.h (gdb_sniff_from_mangled_name): Delete declaration.
3661 * d-lang.c (d_sniff_from_mangled_name): Delete, implementation
3662 moves to...
3663 (d_language::sniff_from_mangled_name): ...here.
3664 (d_language_data): Delete la_sniff_from_mangled_name initializer.
3665 * f-lang.c (f_language_data): Likewise.
3666 * go-lang.c (go_sniff_from_mangled_name): Delete, implementation
3667 moves to...
3668 (go_language::sniff_from_mangled_name): ...here.
3669 (go_language_data): Delete la_sniff_from_mangled_name initializer.
3670 * language.c (language_sniff_from_mangled_name): Delete.
3671 (unknown_language_data): Delete la_sniff_from_mangled_name
3672 initializer.
3673 (auto_language_data): Likewise.
3674 * language.h (language_data): Delete la_sniff_from_mangled_name
3675 field.
3676 (language_defn::sniff_from_mangled_name): New function.
3677 (language_sniff_from_mangled_name): Delete declaration.
3678 * m2-lang.c (m2_language_data): Delete la_sniff_from_mangled_name
3679 field.
3680 * objc-lang.c (objc_sniff_from_mangled_name): Delete,
3681 implementation moves to...
3682 (objc_language::sniff_from_mangled_name): ...here.
3683 (objc_language_data): Delete la_sniff_from_mangled_name initializer.
3684 * opencl-lang.c (opencl_language_data): Likewise.
3685 * p-lang.c (pascal_language_data): Likewise.
3686 * rust-lang.c (rust_sniff_from_mangled_name): Delete,
3687 implementation moves to...
3688 (rust_language::sniff_from_mangled_name): ...here.
3689 (rust_language_data): Delete la_sniff_from_mangled_name
3690 initializer.
3691 * symtab.c (symbol_find_demangled_name): Call
3692 sniff_from_mangled_name member function.
3693
3694 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
3695
3696 * ada-lang.c (ada_language_data): Delete la_search_name_hash
3697 initializer.
3698 * c-lang.c (c_language_data): Likewise.
3699 (cplus_language_data): Likewise.
3700 (cplus_language::search_name_hash): New member function.
3701 (asm_language_data): Delete la_search_name_hash initializer.
3702 (minimal_language_data): Likewise.
3703 * d-lang.c (d_language_data): Likewise.
3704 * dictionary.c (default_search_name_hash): Rename to...
3705 (language_defn::search_name_hash): ...this.
3706 * f-lang.c (f_language_data): Likewise.
3707 (f_language::search_name_hash): New member function.
3708 * go-lang.c (go_language_data): Delete la_search_name_hash
3709 initializer.
3710 * language.c (unknown_language_data): Likewise.
3711 (auto_language_data): Likewise.
3712 * language.h (struct language_data): Delete la_search_name_hash
3713 field.
3714 (language_defn::search_name_hash): Declare new member function.
3715 (default_search_name_hash): Delete declaration.
3716 * m2-lang.c (m2_language_data): Delete la_search_name_hash
3717 initializer.
3718 * objc-lang.c (objc_language_data): Likewise.
3719 * opencl-lang.c (opencl_language_data): Likewise.
3720 * p-lang.c (pascal_language_data): Likewise.
3721 * rust-lang.c (rust_language_data): Likewise.
3722 * symtab.c (search_name_hash): Update call.
3723
3724 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
3725
3726 * ada-lang.c (ada_language_data): Delete la_get_compile_instance
3727 initializer.
3728 * c-lang.c (class compile_instance): Declare.
3729 (c_language_data): Delete la_get_compile_instance initializer.
3730 (c_language::get_compile_instance): New member function.
3731 (cplus_language_data): Delete la_get_compile_instance initializer.
3732 (cplus_language::get_compile_instance): New member function.
3733 (asm_language_data): Delete la_get_compile_instance initializer.
3734 (minimal_language_data): Likewise.
3735 * c-lang.h (c_get_compile_context): Update comment.
3736 (cplus_get_compile_context): Update comment.
3737 * compile/compile.c (compile_to_object): Update calls, don't rely
3738 on function pointer being NULL.
3739 * d-lang.c (d_language_data): Delete la_get_compile_instance
3740 initializer.
3741 * f-lang.c (f_language_data): Likewise.
3742 * go-lang.c (go_language_data): Likewise.
3743 * language.c (unknown_language_data): Likewise.
3744 (auto_language_data): Likewise.
3745 * language.h (language_data): Delete la_get_compile_instance field.
3746 (language_defn::get_compile_instance): New member function.
3747 * m2-lang.c (m2_language_data): Delete la_get_compile_instance
3748 initializer.
3749 * objc-lang.c (objc_language_data): Likewise.
3750 * opencl-lang.c (opencl_language_data): Likewise.
3751 * p-lang.c (pascal_language_data): Likewise.
3752 * rust-lang.c (rust_language_data): Likewise.
3753
3754 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
3755
3756 * ada-lang.c (ada_add_all_symbols): Update comment.
3757 (ada_iterate_over_symbols): Delete, move implementation to...
3758 (ada_language::iterate_over_symbols): ...here, a new member
3759 function, rewrite to use range based for loop.
3760 (ada_language_data): Delete la_iterate_over_symbols initializer.
3761 * c-lang.c (c_language_data): Likewise.
3762 (cplus_language_data): Likewise.
3763 (asm_language_data): Likewise.
3764 (minimal_language_data): Likewise.
3765 * d-lang.c (d_language_data): Likewise.
3766 * f-lang.c (f_language_data): Likewise.
3767 * go-lang.c (go_language_data): Likewise.
3768 * language.c (unknown_language_data): Likewise.
3769 (auto_language_data): Likewise.
3770 * language.h (language_data): Delete la_iterate_over_symbols field.
3771 (language_defn::iterate_over_symbols): New member function.
3772 (LA_ITERATE_OVER_SYMBOLS): Update.
3773 * linespec.c (iterate_over_all_matching_symtabs): Update.
3774 * m2-lang.c (m2_language_data): Delete la_iterate_over_symbols
3775 initializer.
3776 * objc-lang.c (objc_language_data): Likewise.
3777 * opencl-lang.c (opencl_language_data): Likewise.
3778 * p-lang.c (pascal_language_data): Likewise.
3779 * rust-lang.c (rust_language_data): Likewise.
3780
3781 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
3782
3783 * ada-lang.c (ada_language_data): Delete
3784 la_lookup_transparent_type initializer.
3785 * c-lang.c (c_language_data): Likewise.
3786 (cplus_language_data): Likewise.
3787 (cplus_language::lookup_transparent_type): New member function.
3788 (asm_language_data): Delete la_lookup_transparent_type
3789 initializer.
3790 (minimal_language_data): Likewise.
3791 * d-lang.c (d_language_data): Likewise.
3792 * f-lang.c (f_language_data): Likewise.
3793 * go-lang.c (go_language_data): Likewise.
3794 * language.c (unknown_language_data): Likewise.
3795 (auto_language_data): Likewise.
3796 * language.h (struct language_data): Delete
3797 la_lookup_transparent_type field.
3798 (language_defn::lookup_transparent_type): New member function.
3799 * m2-lang.c (m2_language_data): Delete la_lookup_transparent_type
3800 initializer.
3801 * objc-lang.c (objc_language_data): Likewise.
3802 * opencl-lang.c (opencl_language_data): Likewise.
3803 * p-lang.c (pascal_language_data): Likewise.
3804 * rust-lang.c (rust_language_data): Likewise.
3805 * symtab.c (symbol_matches_domain): Update call.
3806
3807 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
3808
3809 * ada-lang.c (ada_language_arch_info): Delete function, move
3810 implementation to...
3811 (ada_language::language_arch_info): ...here, a new member
3812 function.
3813 (ada_language_data): Delete la_language_arch_info.
3814 * c-lang.c (c_language_data): Likewise.
3815 (c_language::language_arch_info): New member function.
3816 (cplus_language_arch_info): Delete function, move
3817 implementation to...
3818 (cplus_language::language_arch_info): ...here, a new member
3819 function.
3820 (cplus_language_data): Delete la_language_arch_info.
3821 (asm_language_data): Likewise.
3822 (asm_language::language_arch_info): New member function.
3823 (minimal_language_data): Delete la_language_arch_info.
3824 (minimal_language::language_arch_info): New member function.
3825 * d-lang.c (d_language_arch_info): Delete function, move
3826 implementation to...
3827 (d_language::language_arch_info): ...here, a new member
3828 function.
3829 (d_language_data): Delete la_language_arch_info.
3830 * f-lang.c (f_language_arch_info): Delete function, move
3831 implementation to...
3832 (f_language::language_arch_info): ...here, a new member
3833 function.
3834 (f_language_data): Delete la_language_arch_info.
3835 * go-lang.c (go_language_arch_info): Delete function, move
3836 implementation to...
3837 (go_language::language_arch_info): ...here, a new member
3838 function.
3839 (go_language_data): Delete la_language_arch_info.
3840 * language.c (unknown_language_data): Likewise.
3841 (unknown_language::language_arch_info): New member function.
3842 (auto_language_data): Delete la_language_arch_info.
3843 (auto_language::language_arch_info): New member function.
3844 (language_gdbarch_post_init): Update call to
3845 la_language_arch_info.
3846 * language.h (language_data): Delete la_language_arch_info
3847 function pointer.
3848 (language_defn::language_arch_info): New function.
3849 * m2-lang.c (m2_language_arch_info): Delete function, move
3850 implementation to...
3851 (m2_language::language_arch_info): ...here, a new member
3852 function.
3853 (m2_language_data): Delete la_language_arch_info.
3854 * objc-lang.c (objc_language_arch_info): Delete function, move
3855 implementation to...
3856 (objc_language::language_arch_info): ...here, a new member
3857 function.
3858 (objc_language_data): Delete la_language_arch_info.
3859 * opencl-lang.c (opencl_language_arch_info): Delete function, move
3860 implementation to...
3861 (opencl_language::language_arch_info): ...here, a new member
3862 function.
3863 (opencl_language_data): Delete la_language_arch_info.
3864 * p-lang.c (pascal_language_arch_info): Delete function, move
3865 implementation to...
3866 (pascal_language::language_arch_info): ...here, a new member
3867 function.
3868 (pascal_language_data): Delete la_language_arch_info.
3869 * rust-lang.c (rust_language_arch_info): Delete function, move
3870 implementation to...
3871 (rust_language::language_arch_info): ...here, a new member
3872 function.
3873 (rust_language_data): Delete la_language_arch_info.
3874
3875 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
3876
3877 * ada-lang.c (ada_language_data): Delete la_pass_by_reference
3878 initializer.
3879 * c-lang.c (c_language_data): Likewise.
3880 (cplus_language_data): Likewise.
3881 (cplus_language::pass_by_reference_info): New method.
3882 (asm_language_data): Delete la_pass_by_reference initializer.
3883 (minimal_language_data): Likewise.
3884 * cp-abi.c (cp_pass_by_reference): Remove use of
3885 default_pass_by_reference.
3886 * d-lang.c (d_language_data): Likewise.
3887 * f-lang.c (f_language_data): Likewise.
3888 * gnu-v3-abi.c (gnuv3_pass_by_reference): Remove use of
3889 default_pass_by_reference.
3890 * go-lang.c (go_language_data): Likewise.
3891 * language.c (language_pass_by_reference): Update.
3892 (default_pass_by_reference): Delete.
3893 (unknown_language_data): Delete la_pass_by_reference
3894 initializer.
3895 (auto_language_data): Likewise.
3896 * language.h (struct language_data): Delete la_pass_by_reference
3897 field.
3898 (language_defn::pass_by_reference_info): New member function.
3899 (default_pass_by_reference): Delete declaration.
3900 * m2-lang.c (m2_language_data): Delete la_pass_by_reference
3901 initializer.
3902 * objc-lang.c (objc_language_data): Likewise.
3903 * opencl-lang.c (opencl_language_data): Likewise.
3904 * p-lang.c (pascal_language_data): Likewise.
3905 * rust-lang.c (rust_language_data): Likewise.
3906
3907 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
3908
3909 * ada-lang.c (ada_read_var_value): Delete function, move
3910 implementation to...
3911 (ada_language::read_var_value): ...here.
3912 (ada_language_data): Delete la_read_var_value initializer.
3913 * c-lang.c (c_language_data): Likewise.
3914 (cplus_language_data): Likewise.
3915 (minimal_language_data): Likewise.
3916 * d-lang.c (d_language_data): Likewise.
3917 * f-lang.c (f_language_data): Likewise.
3918 * findvar.c (default_read_var_value): Rename to...
3919 (language_defn::read_var_value): ...this.
3920 * findvar.c (read_var_value): Update header comment, and change to
3921 call member function instead of function pointer.
3922 * go-lang.c (go_language_data): Likewise.
3923 * language.c (unknown_language_data): Delete la_read_var_value
3924 initializer.
3925 (auto_language_data): Likewise.
3926 * language.h (struct language_data): Delete la_read_var_value
3927 field.
3928 (language_defn::read_var_value): New member function.
3929 (default_read_var_value): Delete declaration.
3930 * m2-lang.c (m2_language_data): Delete la_read_var_value
3931 initializer.
3932 * objc-lang.c (objc_language_data): Likewise.
3933 * opencl-lang.c (opencl_language_data): Likewise.
3934 * p-lang.c (pascal_language_data): Likewise.
3935 * rust-lang.c (rust_language_data): Likewise.
3936 * value.h (default_read_var_value): Delete declaration.
3937
3938 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
3939
3940 * ada-lang.c (ada_print_array_index): Delete function, move
3941 implementation to...
3942 (ada_language::print_array_index): ...here.
3943 (ada_language_data): Delete la_print_array_index initializer.
3944 * c-lang.c (c_language_data): Likewise.
3945 (cplus_language_data): Likewise.
3946 (minimal_language_data): Likewise.
3947 * d-lang.c (d_language_data): Likewise.
3948 * f-lang.c (f_language_data): Likewise.
3949 * go-lang.c (go_language_data): Likewise.
3950 * language.c (default_print_array_index): Delete function, move
3951 implementation to...
3952 (language_defn::print_array_index): ...here.
3953 (unknown_language_data): Delete la_print_array_index initializer.
3954 (auto_language_data): Likewise.
3955 * language.h (struct language_data): Delete la_print_array_index
3956 field.
3957 (language_defn::print_array_index): New member function.
3958 (LA_PRINT_ARRAY_INDEX): Update.
3959 (default_print_array_index): Delete declaration.
3960 * m2-lang.c (m2_language_data): Delete la_print_array_index
3961 initializer.
3962 * objc-lang.c (objc_language_data): Likewise.
3963 * opencl-lang.c (opencl_language_data): Likewise.
3964 * p-lang.c (pascal_language_data): Likewise.
3965 * rust-lang.c (rust_language_data): Likewise.
3966
3967 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
3968
3969 * gdb/ada-lang.c (ada_language_defn): Convert to...
3970 (ada_language_data): ...this.
3971 (class ada_language): New class.
3972 (ada_language_defn): New static global.
3973 * gdb/c-lang.c (c_language_defn): Convert to...
3974 (c_language_data): ...this.
3975 (class c_language): New class.
3976 (c_language_defn): New static global.
3977 (cplus_language_defn): Convert to...
3978 (cplus_language_data): ...this.
3979 (class cplus_language): New class.
3980 (cplus_language_defn): New static global.
3981 (asm_language_defn): Convert to...
3982 (asm_language_data): ...this.
3983 (class asm_language): New class.
3984 (asm_language_defn): New static global.
3985 (minimal_language_defn): Convert to...
3986 (minimal_language_data): ...this.
3987 (class minimal_language): New class.
3988 (minimal_language_defn): New static global.
3989 * gdb/d-lang.c (d_language_defn): Convert to...
3990 (d_language_data): ...this.
3991 (class d_language): New class.
3992 (d_language_defn): New static global.
3993 * gdb/f-lang.c (f_language_defn): Convert to...
3994 (f_language_data): ...this.
3995 (class f_language): New class.
3996 (f_language_defn): New static global.
3997 * gdb/go-lang.c (go_language_defn): Convert to...
3998 (go_language_data): ...this.
3999 (class go_language): New class.
4000 (go_language_defn): New static global.
4001 * gdb/language.c (unknown_language_defn): Remove declaration.
4002 (current_language): Initialize to nullptr, real initialization is
4003 moved to _initialize_language.
4004 (languages): Delete global.
4005 (language_defn::languages): Define.
4006 (set_language_command): Use language_defn::languages.
4007 (set_language): Likewise.
4008 (range_error): Likewise.
4009 (language_enum): Likewise.
4010 (language_def): Likewise.
4011 (add_set_language_command): Use language_def::languages for the
4012 language list, and language_def to lookup language pointers.
4013 (skip_language_trampoline): Use language_defn::languages.
4014 (unknown_language_defn): Convert to...
4015 (unknown_language_data): ...this.
4016 (class unknown_language): New class.
4017 (unknown_language_defn): New static global.
4018 (auto_language_defn): Convert to...
4019 (auto_language_data): ...this.
4020 (class auto_language): New class.
4021 (auto_language_defn): New static global.
4022 (language_gdbarch_post_init): Use language_defn::languages.
4023 (_initialize_language): Initialize current_language.
4024 * gdb/language.h (struct language_defn): Rename to...
4025 (struct language_data): ...this.
4026 (struct language_defn): New.
4027 (auto_language_defn): Delete.
4028 (unknown_language_defn): Delete.
4029 (minimal_language_defn): Delete.
4030 (ada_language_defn): Delete.
4031 (asm_language_defn): Delete.
4032 (c_language_defn): Delete.
4033 (cplus_language_defn): Delete.
4034 (d_language_defn): Delete.
4035 (f_language_defn): Delete.
4036 (go_language_defn): Delete.
4037 (m2_language_defn): Delete.
4038 (objc_language_defn): Delete.
4039 (opencl_language_defn): Delete.
4040 (pascal_language_defn): Delete.
4041 (rust_language_defn): Delete.
4042 * gdb/m2-lang.c (m2_language_defn): Convert to...
4043 (m2_language_data): ...this.
4044 (class m2_language): New class.
4045 (m2_language_defn): New static global.
4046 * gdb/objc-lang.c (objc_language_defn): Convert to...
4047 (objc_language_data): ...this.
4048 (class objc_language): New class.
4049 (objc_language_defn): New static global.
4050 * gdb/opencl-lang.c (opencl_language_defn): Convert to...
4051 (opencl_language_data): ...this.
4052 (class opencl_language): New class.
4053 (opencl_language_defn): New static global.
4054 * gdb/p-lang.c (pascal_language_defn): Convert to...
4055 (pascal_language_data): ...this.
4056 (class pascal_language): New class.
4057 (pascal_language_defn): New static global.
4058 * gdb/rust-exp.y (rust_lex_tests): Use language_def to find
4059 language pointer, update comment format.
4060 * gdb/rust-lang.c (rust_language_defn): Convert to...
4061 (rust_language_data): ...this.
4062 (class rust_language): New class.
4063 (rust_language_defn): New static global.
4064
4065 2020-06-01 Andrew Burgess <andrew.burgess@embecosm.com>
4066
4067 * dwarf2/read.c (class lnp_state_machine) <m_last_address>: New
4068 member variable.
4069 <m_stmt_at_address>: New member variable.
4070 (lnp_state_machine::record_line): Don't record some lines, update
4071 tracking of is_stmt at the same address.
4072 (lnp_state_machine::lnp_state_machine): Initialise new member
4073 variables.
4074
4075 2020-06-01 Samuel Thibault <samuel.thibault@ens-lyon.org>
4076
4077 * config/i386/i386gnu.mn [%_S.o %_U.o] (COMPILE.post): Add
4078 "-include gnu-nat-mig.h".
4079 * gnu-nat-mig.h: New file.
4080 * gnu-nat.c: Include "gnu-nat-mig.h".
4081 (exc_server, msg_reply_server, notify_server,
4082 process_reply_server): Remove declarations.
4083
4084 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
4085
4086 * gnu-nat.h (inf_validate_procs, inf_suspend, inf_set_traced,
4087 steal_exc_port, proc_get_state, inf_clear_wait, inf_cleanup,
4088 inf_startup, inf_update_suspends, inf_set_pid, inf_steal_exc_ports,
4089 inf_validate_procinfo, inf_validate_task_sc, inf_restore_exc_ports,
4090 inf_set_threads_resume_sc, inf_set_threads_resume_sc_for_signal_thread,
4091 inf_resume, inf_set_step_thread, inf_detach, inf_attach, inf_signal,
4092 inf_continue, make_proc, proc_abort, _proc_free, proc_update_sc,
4093 proc_get_exception_port, proc_set_exception_port, _proc_get_exc_port,
4094 proc_steal_exc_port, proc_restore_exc_port, proc_trace): Move functions
4095 to gnu_nat_target class.
4096 * gnu-nat.c: Likewise.
4097 (inf_update_procs, S_proc_wait_reply, set_task_pause_cmd,
4098 set_task_exc_port_cmd, set_signals_cmd, set_thread_pause_cmd,
4099 set_thread_exc_port_cmd): Call inf_validate_procs through gnu_target
4100 object.
4101 (gnu_nat_target::create_inferior, gnu_nat_target::detach): Pass `this'
4102 instead of `gnu_target'.
4103
4104 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
4105
4106 * i386-gnu-tdep.c: Include "gdbcore.h"
4107 (gnu_sigtramp_code, i386_gnu_sc_reg_offset): New arrays.
4108 (GNU_SIGTRAMP_LEN, GNU_SIGTRAMP_TAIL,
4109 I386_GNU_SIGCONTEXT_THREAD_STATE_OFFSET): New macros
4110 (i386_gnu_sigtramp_start, i386_gnu_sigtramp_p,
4111 i386_gnu_sigcontext_addr): New functions
4112 (i386gnu_init_abi): Register i386_gnu_sigtramp_p,
4113 i386_gnu_sigcontext_addr, and i386_gnu_sc_reg_offset in the gdbarch
4114 tdep.
4115
4116 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
4117
4118 * gnu-nat.c (gnu_nat_target::create_inferior): Move push_target call
4119 before fork_inferior call. Avoid calling it if target_is_pushed returns
4120 true.
4121
4122 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
4123
4124 * gnu-nat.h (gnu_target): New variable declaration.
4125 * i386-gnu-nat.c (_initialize_i386gnu_nat): Initialize
4126 gnu_target.
4127 * gnu-nat.c (gnu_target): New variable.
4128 (inf_validate_procs): Pass gnu_target to thread_change_ptid,
4129 add_thread_silent, and add_thread calls.
4130 (gnu_nat_target::create_inferior): Pass gnu_target to
4131 add_thread_silent, thread_change_ptid call.
4132 (gnu_nat_target::detach): Pass gnu_target to detach_inferior
4133 call.
4134
4135 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
4136
4137 * gnu-nat.c (gnu_xfer_auxv): Remove unused `res' variable.
4138 (gnu_nat_target::find_memory_regions): Remove unused
4139 `old_address' variable.
4140
4141 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
4142
4143 * gnu-nat.c: Include "gdbarch.h".
4144
4145 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
4146
4147 * reply_mig_hack.awk (Error return): Cast function through
4148 void *, to bypass compiler function call check.
4149
4150 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
4151
4152 * config/i386/i386gnu.mn (%_reply_S.c): Add dependency on
4153 $(srcdir)/reply_mig_hack.awk.
4154
4155 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
4156
4157 * gnu-nat.h (gnu_debug_flag): Set type to bool.
4158
4159 2020-05-30 Jonny Grant <jg@jguk.org>
4160
4161 * configure.ac (ACX_BUGURL): change bug URL to https.
4162
4163 2020-05-30 Pedro Alves <palves@redhat.com>
4164
4165 * cp-support.c (replace_typedefs_template): New.
4166 (replace_typedefs_qualified_name): Handle
4167 DEMANGLE_COMPONENT_TEMPLATE.
4168
4169 2020-05-29 Simon Marchi <simon.marchi@efficios.com>
4170
4171 * dwarf2/comp-unit.c, dwarf2/comp-unit.h, dwarf2/index-cache.c,
4172 dwarf2/index-cache.h, dwarf2/index-write.c,
4173 dwarf2/index-write.h, dwarf2/line-header.c,
4174 dwarf2/line-header.h, dwarf2/macro.c, dwarf2/macro.h,
4175 dwarf2/read.c, dwarf2/read.h: Rename struct dwarf2_per_objfile
4176 variables and fields from `dwarf2_per_objfile` to just
4177 `per_objfile` throughout.
4178
4179 2020-05-28 Simon Marchi <simon.marchi@polymtl.ca>
4180
4181 * dwarf2/loc.c (class dwarf_evaluate_loc_desc)
4182 <push_dwarf_reg_entry_value>: Add comment.
4183
4184 2020-05-28 Kevin Buettner <kevinb@redhat.com>
4185 Keith Seitz <keiths@redhat.com>
4186
4187 * python/python.c (do_start_initialization): Call PyEval_SaveThread
4188 instead of PyEval_ReleaseLock.
4189 (class gdbpy_gil): Move to earlier in file.
4190 (finalize_python): Set gdb_python_initialized.
4191 (gdbpy_check_quit_flag): Acquire GIL via gdbpy_gil. Return early
4192 when not initialized.
4193
4194 2020-05-28 Simon Marchi <simon.marchi@efficios.com>
4195
4196 * dwarf2/loc.c (class dwarf_evaluate_loc_desc)
4197 <push_dwarf_reg_entry_value>: Remove assert. Override
4198 per_objfile with caller_per_objfile.
4199
4200 2020-05-28 Tom de Vries <tdevries@suse.de>
4201
4202 * dwarf2/read.c (dw2_symtab_iter_next, dw2_expand_marked_cus): Limit
4203 PR gold/15646 workaround to symbol kind "type".
4204
4205 2020-05-27 Tom Tromey <tromey@adacore.com>
4206
4207 * dwarf2/read.c (load_partial_dies): Use add_partial_symbol.
4208
4209 2020-05-27 Tom Tromey <tromey@adacore.com>
4210
4211 * dwarf2/abbrev.h (struct abbrev_table) <lookup_abbrev>: Inline.
4212 Use htab_find_with_hash.
4213 <add_abbrev>: Remove "abbrev_number" parameter.
4214 * dwarf2/abbrev.c (abbrev_table::add_abbrev): Remove
4215 "abbrev_number" parameter. Use htab_find_slot_with_hash.
4216 (hash_abbrev): Add comment.
4217 (abbrev_table::lookup_abbrev): Move to header file.
4218 (abbrev_table::read): Update.
4219
4220 2020-05-27 Tom Tromey <tromey@adacore.com>
4221
4222 * dwarf2/read.c (struct partial_die_info) <name>: Declare new
4223 method.
4224 <canonical_name>: New member.
4225 <raw_name>: Rename from "name".
4226 (partial_die_info): Initialize canonical_name.
4227 (scan_partial_symbols): Check raw_name.
4228 (partial_die_parent_scope, partial_die_full_name)
4229 (add_partial_symbol, add_partial_subprogram)
4230 (add_partial_enumeration, load_partial_dies): Use "name" method.
4231 (partial_die_info::name): New method.
4232 (partial_die_info::read, guess_partial_die_structure_name)
4233 (partial_die_info::fixup): Update.
4234
4235 2020-05-27 Tom Tromey <tromey@adacore.com>
4236
4237 * dwarf2/attribute.h (struct attribute) <form_is_ref>: Inline.
4238 <get_ref_die_offset>: Inline.
4239 <get_ref_die_offset_complaint>: New method.
4240 * dwarf2/attribute.c (attribute::form_is_ref): Move to header.
4241 (attribute::get_ref_die_offset_complaint): Rename from
4242 get_ref_die_offset. Just issue complaint.
4243
4244 2020-05-27 Hannes Domani <ssbssa@yahoo.de>
4245
4246 * cli/cli-cmds.c (shell_escape): Move exit_status_set_internal_vars.
4247
4248 2020-05-27 Hannes Domani <ssbssa@yahoo.de>
4249
4250 * exec.c (exec_file_attach): Use errno value of first openp failure.
4251
4252 2020-05-27 Hannes Domani <ssbssa@yahoo.de>
4253
4254 * nat/windows-nat.c (windows_thread_info::~windows_thread_info):
4255 Don't close thread handle.
4256
4257 2020-05-27 Tom Tromey <tom@tromey.com>
4258 Simon Marchi <simon.marchi@efficios.com>
4259
4260 * objfiles.h (struct objfile) <partial_symtabs>: Now a
4261 shared_ptr.
4262 * dwarf2/read.h (struct dwarf2_per_objfile) <partial_symtabs>: New
4263 member.
4264 * dwarf2/read.c (dwarf2_per_bfd_bfd_data_key,
4265 dwarf2_per_bfd_objfile_data_key>: New globals.
4266 (dwarf2_has_info): Use shared dwarf2_per_bfd if possible.
4267 (dwarf2_get_section_info): Use get_dwarf2_per_objfile.
4268 (dwarf2_initialize_objfile): Consider cases where per_bfd can be
4269 shared.
4270 (dwarf2_build_psymtabs): Set objfile::partial_symtabs and
4271 short-circuit when sharing.
4272 (dwarf2_build_psymtabs): Set dwarf2_per_objfile::partial_symtabs.
4273 (dwarf2_psymtab::expand_psymtab): Use free_cached_comp_units.
4274
4275 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
4276
4277 * dwarf2/read.h (struct dwarf2_per_bfd) <line_header_hash>: Move
4278 to...
4279 (struct dwarf2_per_objfile) <line_header_hash>: ... here.
4280 * dwarf2/read.c (handle_DW_AT_stmt_list): Update.
4281
4282 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
4283
4284 * dwarf2/read.c (struct mapped_index_base) <symbol_name_at,
4285 build_name_components, find_name_components_bounds>:
4286 Add per_objfile parameter.
4287 (struct mapped_index) <symbol_name_at>: Likewise.
4288 (struct mapped_debug_names): Remove constructor.
4289 <dwarf2_per_objfile>: Remove field.
4290 <namei_to_name, symbol_name_at>: Add per_objfile parameter.
4291 (mapped_index_base::find_name_components_bounds,
4292 mapped_index_base::build_name_components,
4293 dw2_expand_symtabs_matching_symbol): Likewise.
4294 (class mock_mapped_index) <symbol_name_at>: Likewise.
4295 (check_match): Likewise.
4296 (check_find_bounds_finds): Likewise.
4297 (test_mapped_index_find_name_component_bounds): Update.
4298 (CHECK_MATCH): Update.
4299 (dw2_expand_symtabs_matching): Update.
4300 (class dw2_debug_names_iterator) <dw2_debug_names_iterator>: Add
4301 per_objfile parameter.
4302 <find_vec_in_debug_names>: Likewise.
4303 <m_per_objfile>: New field.
4304 (mapped_debug_names::namei_to_name): Add dwarf2_per_objfile
4305 parameter.
4306 (dw2_debug_names_iterator::find_vec_in_debug_names): Likewise.
4307 (dw2_debug_names_iterator::next): Update.
4308 (dw2_debug_names_lookup_symbol): Update.
4309 (dw2_debug_names_expand_symtabs_for_function): Update.
4310 (dw2_debug_names_map_matching_symbols): Update.
4311 (dw2_debug_names_expand_symtabs_matching): Update.
4312 (dwarf2_read_debug_names): Update.
4313
4314 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
4315
4316 * dwarf2/read.h (struct dwarf2_cu): Forward-declare.
4317 (struct dwarf2_per_bfd) <free_cached_comp_units>: Remove,
4318 move to dwarf2_per_objfile.
4319 <read_in_chain>: Remove.
4320 (struct dwarf2_per_objfile) <get_cu, set_cu, remove_cu,
4321 remove_all_cus, age_comp_units>: New methods.
4322 <m_dwarf2_cus>: New member.
4323 (struct dwarf2_per_cu_data) <cu>: Remove.
4324 * dwarf2/read.c (struct dwarf2_cu) <read_in_chain>: Remove.
4325 (age_cached_comp_units, free_one_cached_comp_unit): Remove,
4326 moved to methods of dwarf2_per_objfile.
4327 (dwarf2_clear_marks): Remove.
4328 (dwarf2_queue_item::~dwarf2_queue_item): Update.
4329 (dwarf2_per_bfd::~dwarf2_per_bfd): Don't free dwarf2_cus.
4330 (dwarf2_per_bfd::free_cached_comp_units): Remove.
4331 (dwarf2_per_objfile::remove_all_cus): New.
4332 (class free_cached_comp_units) <~free_cached_comp_units>:
4333 Update.
4334 (load_cu): Update.
4335 (dw2_do_instantiate_symtab): Adjust.
4336 (fill_in_sig_entry_from_dwo_entry): Adjust.
4337 (cutu_reader::init_tu_and_read_dwo_dies): Update.
4338 (cutu_reader::cutu_reader): Likewise.
4339 (cutu_reader::keep): Use dwarf2_per_objfile::set_cu.
4340 (cutu_reader::cutu_reader): Use dwarf2_per_objfile::get_cu.
4341 (process_psymtab_comp_unit): Use dwarf2_per_objfile::remove_cu
4342 and dwarf2_per_objfile::age_comp_units.
4343 (load_partial_comp_unit): Update.
4344 (maybe_queue_comp_unit): Use dwarf2_per_objfile::get_cu.
4345 (process_queue): Likewise.
4346 (find_partial_die): Use dwarf2_per_objfile::get_cu instead of cu
4347 backlink.
4348 (dwarf2_read_addr_index): Likewise.
4349 (follow_die_offset): Likewise.
4350 (dwarf2_fetch_die_loc_sect_off): Likewise.
4351 (dwarf2_fetch_constant_bytes): Likewise.
4352 (dwarf2_fetch_die_type_sect_off): Likewise.
4353 (follow_die_sig_1): Likewise.
4354 (load_full_type_unit): Likewise.
4355 (read_signatured_type): Likewise.
4356 (dwarf2_cu::dwarf2_cu): Don't set cu field.
4357 (dwarf2_cu::~dwarf2_cu): Remove.
4358 (dwarf2_per_objfile::get_cu): New.
4359 (dwarf2_per_objfile::set_cu): New.
4360 (age_cached_comp_units): Rename to...
4361 (dwarf2_per_objfile::age_comp_units): ... this. Adjust
4362 to std::unordered_map.
4363 (free_one_cached_comp_unit): Rename to...
4364 (dwarf2_per_objfile::remove_cu): ... this. Adjust
4365 to std::unordered_map.
4366 (dwarf2_per_objfile::~dwarf2_per_objfile): New.
4367 (dwarf2_mark_helper): Use dwarf2_per_objfile::get_cu, expect
4368 a dwarf2_per_objfile in data.
4369 (dwarf2_mark): Pass dwarf2_per_objfile in data to htab_traverse.
4370 (dwarf2_clear_marks): Remove.
4371
4372 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
4373
4374 * dwarf2/read.c (class cutu_reader) <cutu_reader>: Replace
4375 `int use_existing_cu` parameter with `dwarf2_cu *existing_cu`.
4376 (init_tu_and_read_dwo_dies): Likewise.
4377 (cutu_reader::init_tu_and_read_dwo_dies): Likewise.
4378 (cutu_reader::cutu_reader): Likewise.
4379 (load_partial_comp_unit): Likewise.
4380 (process_psymtab_comp_unit): Update.
4381 (build_type_psymtabs_1): Update.
4382 (process_skeletonless_type_unit): Update.
4383 (load_full_comp_unit): Update.
4384 (find_partial_die): Update.
4385 (dwarf2_read_addr_index): Update.
4386 (read_signatured_type): Update.
4387
4388 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
4389
4390 * dwarf2/read.h (struct dwarf2_per_cu_data) <m_header,
4391 m_header_read_in>: New fields.
4392 <get_header>: New method.
4393 * dwarf2/read.c (per_cu_header_read_in): Remove.
4394 (dwarf2_per_cu_data::get_header): New.
4395 (dwarf2_per_cu_data::addr_size): Update.
4396 (dwarf2_per_cu_data::offset_size): Update.
4397 (dwarf2_per_cu_data::ref_addr_size): Update.
4398
4399 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
4400
4401 * dwarf2/read.c (load_cu): Return dwarf2_cu.
4402 (dw2_do_instantiate_symtab): Update.
4403 (queue_and_load_all_dwo_tus): Change parameter from
4404 dwarf2_per_cu_data to dwarf2_cu.
4405 (dwarf2_fetch_die_loc_sect_off): Update.
4406 (dwarf2_fetch_constant_bytes): Update.
4407 (dwarf2_fetch_die_type_sect_off): Update.
4408
4409 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
4410
4411 * dwarf2/read.c (process_full_comp_unit,
4412 process_full_type_unit): Remove per_cu, per_objfile paramters.
4413 Add dwarf2_cu parameter.
4414 (process_queue): Update.
4415
4416 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
4417
4418 * dwarf2/read.c (create_cu_from_index_list): Replace
4419 dwarf2_per_objfile parameter with dwarf2_per_bfd.
4420 (create_cus_from_index_list): Likewise.
4421 (create_cus_from_index): Likewise.
4422 (create_signatured_type_table_from_index): Likewise.
4423 (create_cus_from_debug_names_list): Likewise.
4424 (create_cus_from_debug_names): Likewise.
4425 (dwarf2_read_gdb_index): Update.
4426 (dwarf2_read_debug_names): Update.
4427
4428 2020-05-27 Tom Tromey <tom@tromey.com>
4429 Simon Marchi <simon.marchi@efficios.com>
4430
4431 * dwarf2/read.h (struct dwarf2_per_objfile)
4432 <get_type_for_signatured_type, set_type_for_signatured_type>:
4433 New methods.
4434 <m_type_map>: New member.
4435 (struct signatured_type) <type>: Remove.
4436 * dwarf2/read.c
4437 (dwarf2_per_objfile::get_type_for_signatured_type,
4438 dwarf2_per_objfile::set_type_for_signatured_type): New.
4439 (get_signatured_type): Use new methods.
4440
4441 2020-05-27 Tom Tromey <tom@tromey.com>
4442 Simon Marchi <simon.marchi@efficios.com>
4443
4444 * dwarf2/read.h (struct type_unit_group_unshareable): New.
4445 (struct dwarf2_per_objfile) <type_units>: New member.
4446 <get_type_unit_group_unshareable>: New method.
4447 * dwarf2/read.c (struct type_unit_group) <compunit_symtab,
4448 num_symtabs, symtabs>: Remove; move to
4449 type_unit_group_unshareable.
4450 (dwarf2_per_objfile::get_type_unit_group_unshareable): New.
4451 (process_full_type_unit, dwarf2_cu::setup_type_unit_groups)
4452 (dwarf2_cu::setup_type_unit_groups): Use type_unit_group_unshareable.
4453
4454 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
4455
4456 * dwarf2/read.h (struct dwarf2_per_cu_data):
4457 <dwarf2_per_objfile>: Remove.
4458 * dwarf2/read.c (create_cu_from_index_list): Don't assign
4459 dwarf2_per_objfile.
4460 (create_signatured_type_table_from_index): Likewise.
4461 (create_signatured_type_table_from_debug_names): Likewise.
4462 (create_debug_type_hash_table): Likewise.
4463 (fill_in_sig_entry_from_dwo_entry): Likewise.
4464 (create_type_unit_group): Likewise.
4465 (read_comp_units_from_section): Likewise.
4466 (create_cus_hash_table): Likewise.
4467
4468 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
4469
4470 * dwarf2/read.c (process_psymtab_comp_unit): Remove reference to
4471 dwarf2_per_cu_data::dwarf2_per_objfile.
4472 (compute_compunit_symtab_includes): Likewise.
4473 (dwarf2_cu::start_symtab): Likewise.
4474
4475 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
4476
4477 * dwarf2/read.h (dwarf2_get_die_type): Add dwarf2_per_objfile
4478 parameter.
4479 * dwarf2/read.c (get_die_type_at_offset): Likewise.
4480 (read_namespace_alias): Update.
4481 (lookup_die_type): Update.
4482 (dwarf2_get_die_type): Add dwarf2_per_objfile parameter.
4483 * dwarf2/loc.c (class dwarf_evaluate_loc_desc) <get_base_type>:
4484 Update.
4485 (disassemble_dwarf_expression): Update.
4486
4487 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
4488
4489 * dwarf2/read.h (struct dwarf2_queue_item): Add
4490 dwarf2_per_objfile parameter, assign new parameter.
4491 <per_objfile>: New field.
4492 * dwarf2/read.c (free_one_cached_comp_unit): Add
4493 dwarf2_per_objfile parameter.
4494 (queue_comp_unit): Likewise.
4495 (dw2_do_instantiate_symtab): Update.
4496 (process_psymtab_comp_unit): Update.
4497 (maybe_queue_comp_unit): Add dwarf2_per_objfile parameter.
4498 (process_imported_unit_die): Update.
4499 (queue_and_load_dwo_tu): Update.
4500 (follow_die_offset): Update.
4501 (follow_die_sig_1): Update.
4502
4503 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
4504
4505 * dwarf2/read.h (struct dwarf2_per_cu_data) <objfile>: Remove.
4506 * dwarf2/read.c (dwarf2_compute_name): Pass per_objfile down.
4507 (read_call_site_scope): Assign per_objfile.
4508 (dwarf2_per_cu_data::objfile): Remove.
4509 * gdbtypes.h (struct call_site) <per_objfile>: New member.
4510 * dwarf2/loc.h (dwarf2_evaluate_loc_desc): Add
4511 dwarf2_per_objfile parameter.
4512 * dwarf2/loc.c (dwarf2_evaluate_loc_desc_full): Add
4513 dwarf2_per_objfile parameter.
4514 (dwarf_expr_reg_to_entry_parameter): Add output
4515 dwarf2_per_objfile parameter.
4516 (locexpr_get_frame_base): Update.
4517 (class dwarf_evaluate_loc_desc) <get_tls_address>: Update.
4518 <push_dwarf_reg_entry_value>: Update.
4519 <call_site_to_target_addr>: Update.
4520 (dwarf_entry_parameter_to_value): Add dwarf2_per_objfile
4521 parameter.
4522 (value_of_dwarf_reg_entry): Update.
4523 (rw_pieced_value): Update.
4524 (indirect_synthetic_pointer): Update.
4525 (dwarf2_evaluate_property): Update.
4526 (dwarf2_loc_desc_get_symbol_read_needs): Add dwarf2_per_objfile
4527 parameter.
4528 (locexpr_read_variable): Update.
4529 (locexpr_get_symbol_read_needs): Update.
4530 (loclist_read_variable): Update.
4531
4532 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
4533
4534 * dwarf2/read.h (dwarf2_fetch_die_loc_sect_off,
4535 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
4536 dwarf2_fetch_die_type_sect_off): Add dwarf2_per_objfile
4537 parameter.
4538 * dwarf2/read.c (dwarf2_fetch_die_loc_sect_off,
4539 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
4540 dwarf2_fetch_die_type_sect_off): Add dwarf2_per_objfile
4541 parameter.
4542 * dwarf2/loc.c (indirect_synthetic_pointer, per_cu_dwarf_call,
4543 sect_variable_value): Add dwarf2_per_objfile parameter.
4544 (class dwarf_evaluate_loc_desc) <dwarf_call,
4545 dwarf_variable_value>: Update.
4546 (fetch_const_value_from_synthetic_pointer): Add
4547 dwarf2_per_objfile parameter.
4548 (fetch_const_value_from_synthetic_pointer): Update.
4549 (coerced_pieced_ref): Update.
4550 (class symbol_needs_eval_context) <dwarf_call,
4551 dwarf_variable_value>: Update.
4552 (dwarf2_compile_expr_to_ax): Update.
4553
4554 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
4555
4556 * dwarf2/loc.c (allocate_piece_closure): Add dwarf2_per_objfile
4557 parameter.
4558 (dwarf2_evaluate_loc_desc_full): Update.
4559
4560 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
4561
4562 * dwarf2/read.h (dwarf2_read_addr_index): Add dwarf2_per_objfile
4563 parameter.
4564 * dwarf2/read.c (dwarf2_read_addr_index): Likewise.
4565 * dwarf2/loc.c (decode_debug_loclists_addresses): Add
4566 dwarf2_per_objfile parameter.
4567 (decode_debug_loc_dwo_addresses): Likewise.
4568 (dwarf2_find_location_expression): Update.
4569 (class dwarf_evaluate_loc_desc) <get_addr_index>: Update.
4570 (locexpr_describe_location_piece): Add dwarf2_per_objfile
4571 parameter.
4572 (disassemble_dwarf_expression): Add dwarf2_per_objfile
4573 parameter.
4574 (locexpr_describe_location_1): Likewise.
4575 (locexpr_describe_location): Update.
4576
4577 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
4578
4579 * dwarf2/read.h (struct dwarf2_per_cu_data) <text_offset>:
4580 Remove.
4581 * dwarf2/read.c (dwarf2_per_cu_data::text_offset): Remove.
4582 * dwarf2/loc.c (dwarf2_find_location_expression): Update.
4583 (dwarf2_compile_property_to_c): Update.
4584 (dwarf2_compile_expr_to_ax): Add dwarf2_per_objfile parameter,
4585 use text offset from objfile.
4586 (locexpr_tracepoint_var_ref): Update.
4587 (locexpr_generate_c_location): Update.
4588 (loclist_describe_location): Update.
4589 (loclist_tracepoint_var_ref): Update.
4590 * dwarf2/compile.h (compile_dwarf_bounds_to_c): Add
4591 dwarf2_per_objfile parameter.
4592 * dwarf2/loc2c.c (do_compile_dwarf_expr_to_c): Likewise,
4593 use text offset from objfile.
4594 (compile_dwarf_expr_to_c): Add dwarf2_per_objfile parameter.
4595
4596 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
4597
4598 * dwarf2/expr.h (struct dwarf_expr_context)
4599 <dwarf_expr_context>: Add dwarf2_per_objfile parameter.
4600 <offset>: Remove.
4601 <per_objfile>: New member.
4602 * dwarf2/expr.c (dwarf_expr_context::dwarf_expr_context): Add
4603 dwarf2_per_objfile parameter. Don't set offset, set
4604 per_objfile.
4605 (dwarf_expr_context::execute_stack_op): Use offset from objfile.
4606 * dwarf2/frame.c (dwarf2_frame_find_fde): Return (by parameter)
4607 a dwarf2_per_objfile object instead of an offset.
4608 (class dwarf_expr_executor) <dwarf_expr_executor>: Add
4609 constructor.
4610 (execute_stack_op): Add dwarf2_per_objfile parameter, pass it
4611 to dwarf2_expr_executor constructor. Don't set offset.
4612 (dwarf2_fetch_cfa_info): Update.
4613 (struct dwarf2_frame_cache) <text_offset>: Remove.
4614 <per_objfile>: New field.
4615 (dwarf2_frame_cache): Update.
4616 (dwarf2_frame_prev_register): Update.
4617 * dwarf2/loc.c (class dwarf_evaluate_loc_desc)
4618 <dwarf_evaluate_loc_desc>: Add constructor.
4619 (dwarf2_evaluate_loc_desc_full): Update.
4620 (dwarf2_locexpr_baton_eval): Update.
4621 (class symbol_needs_eval_context) <symbol_needs_eval_context>:
4622 Add constructor.
4623 (dwarf2_loc_desc_get_symbol_read_needs): Update.
4624
4625 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
4626
4627 * dwarf2/read.h (struct dwarf2_per_cu_data) <addr_type,
4628 addr_sized_int_type>: Move to dwarf2_cu.
4629 <int_type>: Move to dwarf2_per_objfile.
4630 (struct dwarf2_per_objfile) <int_type>: Move here.
4631 * dwarf2/read.c (struct dwarf2_cu) <addr_type,
4632 addr_sized_int_type>: Move here.
4633 (read_func_scope): Update.
4634 (read_array_type): Update.
4635 (read_tag_string_type): Update.
4636 (attr_to_dynamic_prop): Update.
4637 (dwarf2_per_cu_data::int_type): Rename to...
4638 (dwarf2_per_objfile::int_type): ... this.
4639 (dwarf2_per_cu_data::addr_sized_int_type): Rename to...
4640 (dwarf2_cu::addr_sized_int_type): ... this.
4641 (read_subrange_type): Update.
4642 (dwarf2_per_cu_data::addr_type): Rename to...
4643 (dwarf2_cu::addr_type): ... this.
4644 (set_die_type): Update.
4645
4646 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
4647
4648 * dwarf2/read.c (queue_and_load_all_dwo_tus): Access per_objfile
4649 data through per_cu->cu.
4650
4651 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
4652
4653 * dwarf2/read.c (lookup_dwo_comp_unit): Change
4654 dwarf2_per_cu_data parameter fo dwarf2_cu.
4655 (lookup_dwo_type_unit): Likewise.
4656 (read_cutu_die_from_dwo): Likewise.
4657 (lookup_dwo_unit): Likewise.
4658 (open_and_init_dwo_file): Likewise.
4659 (lookup_dwo_cutu): Likewise.
4660 (lookup_dwo_comp_unit): Likewise.
4661 (lookup_dwo_type_unit): Likewise.
4662 (cutu_reader::init_tu_and_read_dwo_dies): Update.
4663 (cutu_reader::cutu_reader): Update.
4664
4665 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
4666
4667 * dwarf2/read.c (process_full_comp_unit): Add dwarf2_per_objfile
4668 parameter.
4669 (process_full_type_unit): Likewise.
4670 (process_queue): Update.
4671
4672 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
4673
4674 * dwarf2/read.c (recursively_compute_inclusions): Add
4675 dwarf2_per_objfile parameter.
4676 (compute_compunit_symtab_includes): Likewise.
4677 (process_cu_includes): Update.
4678
4679 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
4680
4681 * dwarf2/read.c (create_partial_symtab): Add dwarf2_per_objfile
4682 parameter.
4683 (create_type_unit_group): Update.
4684 (process_psymtab_comp_unit_reader): Update.
4685 (build_type_psymtabs_reader): Update.
4686
4687 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
4688
4689 * dwarf2/read.c (cutu_reader::keep): Access dwarf2_per_objfile
4690 object through m_this_cu->cu.
4691
4692 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
4693
4694 * dwarf2/read.c (queue_and_load_dwo_tu): Expect a dwarf2_cu as
4695 the info parameter.
4696 (queue_and_load_all_dwo_tus): Pass per_cu->cu.
4697
4698 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
4699
4700 * dwarf2/read.c (class cutu_reader) <cutu_reader>: Add
4701 per_objfile parameter.
4702 (load_full_type_unit): Add per_objfile parameter.
4703 (read_signatured_type): Likewise.
4704 (load_full_comp_unit): Likewise.
4705 (load_cu): Likewise.
4706 (dw2_do_instantiate_symtab): Likewise.
4707 (dw2_get_file_names): Likewise.
4708 (dw2_map_symtabs_matching_filename): Update.
4709 (dw_expand_symtabs_matching_file_matcher): Update.
4710 (dw2_map_symbol_filenames): Update.
4711 (process_psymtab_comp_unit): Add per_objfile parameter.
4712 (build_type_psymtabs_1): Update.
4713 (process_skeletonless_type_unit): Update.
4714 (dwarf2_build_psymtabs_hard): Update.
4715 (load_partial_comp_unit): Add per_objfile parameter.
4716 (scan_partial_symbols): Update.
4717 (load_full_comp_unit): Add per_objfile parameter.
4718 (process_imported_unit_die): Update.
4719 (create_cus_hash_table): Update.
4720 (find_partial_die): Update.
4721 (dwarf2_read_addr_index): Update.
4722 (follow_die_offset): Update.
4723 (dwarf2_fetch_die_loc_sect_off): Update.
4724 (dwarf2_fetch_constant_bytes): Update.
4725 (dwarf2_fetch_die_type_sect_off): Update.
4726 (follow_die_sig_1): Update.
4727 (load_full_type_unit): Add per_objfile parameter.
4728 (read_signatured_type): Likewise.
4729
4730 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
4731
4732 * dwarf2/read.c (lookup_dwo_unit): Use bfd_get_filename instead
4733 of objfile_name.
4734
4735 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
4736
4737 * dwarf2/read.h (struct dwarf2_per_bfd) <obfd>: New member.
4738 (dwarf2_get_dwz_file): Replace parameter with dwarf2_per_bfd.
4739 * dwarf2/read.c (dwarf2_per_bfd::dwarf2_per_bfd): Assign obfd
4740 field.
4741 (dwarf2_get_dwz_file): Replace parameter with dwarf2_per_bfd.
4742 (create_cus_from_index): Update.
4743 (dwarf2_read_gdb_index): Update.
4744 (create_cus_from_debug_names): Update.
4745 (dwarf2_read_debug_names): Update.
4746 (get_abbrev_section_for_cu): Update.
4747 (create_all_comp_units): Update.
4748 (read_attribute_value): Update.
4749 (get_debug_line_section): Update.
4750 * dwarf2/index-cache.c (index_cache::store): Update.
4751 * dwarf2/index-write.c (save_gdb_index_command): Update.
4752 * dwarf2/macro.c (dwarf_decode_macro_bytes): Update.
4753
4754 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
4755
4756 * dwarf2/read.h (struct dwarf2_per_cu_data) <per_bfd>: New
4757 member.
4758 * dwarf2/read.c (dwarf2_per_bfd::allocate_per_cu): Initialize
4759 dwarf2_per_cu_data::per_bfd.
4760 (dwarf2_per_bfd::allocate_signatured_type): Likewise.
4761 (create_type_unit_group): Likewise.
4762 (queue_comp_unit): Remove reference to
4763 per_cu->dwarf2_per_objfile.
4764 (maybe_queue_comp_unit): Likewise.
4765 (fill_in_sig_entry_from_dwo_entry): Assign new field.
4766 (create_cus_hash_table): Assign new field.
4767
4768 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
4769
4770 * dwarf2/read.c: Replace
4771 dwarf2_cu->per_cu->dwarf2_per_objfile references with
4772 dwarf2_cu->per_objfile throughout.
4773
4774 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
4775
4776 * dwarf2/read.c (dw2_do_instantiate_symtab): Add per_objfile
4777 parameter, don't use per_cu->dwarf2_per_objfile.
4778 (dw2_instantiate_symtab): Likewise.
4779 (dw2_find_last_source_symtab): Update.
4780 (dw2_map_expand_apply): Update.
4781 (dw2_lookup_symbol): Update.
4782 (dw2_expand_symtabs_for_function): Update.
4783 (dw2_expand_all_symtabs): Update.
4784 (dw2_expand_symtabs_with_fullname): Update.
4785 (dw2_expand_symtabs_matching_one): Add per_objfile parameter,
4786 don't use per_cu->dwarf2_per_objfile.
4787 (dw2_expand_marked_cus): Update.
4788 (dw2_find_pc_sect_compunit_symtab): Update.
4789 (dw2_debug_names_lookup_symbol): Update.
4790 (dw2_debug_names_expand_symtabs_for_function): Update.
4791 (dw2_debug_names_map_matching_symbols): Update.
4792 (dwarf2_psymtab::expand_psymtab): Update.
4793
4794 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
4795
4796 * dwarf2/read.c (struct dwarf2_cu) <dwarf2_cu>: Add parameter.
4797 <per_objfile>: New member.
4798 (class cutu_reader) <init_tu_and_read_dwo_dies>: Add parameter.
4799 (cutu_reader::init_tu_and_read_dwo_dies): Add parameter, update
4800 call to dwarf2_cu.
4801 (cutu_reader::cutu_reader): Update.
4802 (dwarf2_cu::dwarf2_cu): Add parameter, initialize per_objfile.
4803
4804 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
4805
4806 * dwarf2/read.h (struct dwarf2_per_bfd) <die_type_hash>: Move to
4807 struct dwarf2_per_objfile.
4808 (struct dwarf2_per_objfile) <die_type_hash>: Move from struct
4809 dwarf2_per_bfd.
4810 * dwarf2/read.c (set_die_type): Update.
4811 (get_die_type_at_offset): Update.
4812
4813 2020-05-27 Tom Tromey <tom@tromey.com>
4814 Simon Marchi <simon.marchi@efficios.com>
4815
4816 * dwarf2/read.h (struct dwarf2_per_bfd) <num_psymtabs>: New
4817 method.
4818 (struct dwarf2_per_objfile) <resize_symtabs, symtab_set_p,
4819 get_symtab, set_symtab>: New methods.
4820 <m_symtabs>: New field.
4821 (struct dwarf2_psymtab): Derive from partial_symtab.
4822 <readin_p, get_compunit_symtab>: Declare methods.
4823 * dwarf2/read.c (dwarf2_per_objfile::symtab_set_p,
4824 dwarf2_per_objfile::get_symtab, dwarf2_per_objfile::set_symtab):
4825 New methods.
4826 (struct dwarf2_per_cu_quick_data) <compunit_symtab>: Remove.
4827 (dw2_do_instantiate_symtab, dw2_instantiate_symtab)
4828 (dw2_map_expand_apply, dw2_map_symtabs_matching_filename)
4829 (dw2_symtab_iter_next, dw2_print_stats)
4830 (dw2_expand_symtabs_with_fullname)
4831 (dw2_expand_symtabs_matching_one)
4832 (dw_expand_symtabs_matching_file_matcher)
4833 (dw2_find_pc_sect_compunit_symtab, dw2_map_symbol_filenames)
4834 (dw2_debug_names_iterator::next)
4835 (dw2_debug_names_map_matching_symbols)
4836 (fill_in_sig_entry_from_dwo_entry, dwarf2_psymtab::read_symtab)
4837 (process_queue, dwarf2_psymtab::expand_psymtab): Update.
4838 (dwarf2_psymtab::readin_p, dwarf2_psymtab::get_compunit_symtab):
4839 New methods.
4840 (get_compunit_symtab, process_full_comp_unit)
4841 (process_full_type_unit): Update.
4842 (dwarf2_build_psymtabs, dwarf2_initialize_objfile, add_type_unit): Call
4843
4844 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
4845
4846 * dwarf2/read.h (dwarf2_per_objfile): Rename to dwarf2_per_bfd,
4847 then introduce a new dwarf2_per_objfile type.
4848 <read_line_string>: Move to the new dwarf2_per_objfile type.
4849 <objfile>: Likewise.
4850 (dwarf2_per_bfd): Rename dwarf2_per_objfile to this.
4851 * dwarf2/read.c: Replace references to dwarf2_per_objfile with
4852 dwarf2_per_objfile->per_bfd.
4853 (dwarf2_per_objfile::dwarf2_per_objfile): Rename to...
4854 (dwarf2_per_bfd::dwarf2_per_bfd): ... this.
4855 (dwarf2_per_objfile::free_cached_comp_units): Rename to...
4856 (dwarf2_per_bfd::free_cached_comp_units): ... this.
4857 (dwarf2_has_info): Allocate dwarf2_per_bfd.
4858 (dwarf2_per_objfile::locate_sections): Rename to...
4859 (dwarf2_per_bfd::locate_sections): ... this.
4860 (dwarf2_per_objfile::get_cutu): Rename to...
4861 (dwarf2_per_bfd::get_cutu): ... this.
4862 (dwarf2_per_objfile::get_cu): Rename to...
4863 (dwarf2_per_bfd::get_cu): ... this.
4864 (dwarf2_per_objfile::get_tu): Rename to...
4865 (dwarf2_per_bfd::get_tu): ... this.
4866 (dwarf2_per_objfile::allocate_per_cu): Rename to...
4867 (dwarf2_per_bfd::allocate_per_cu): ... this.
4868 (dwarf2_per_objfile::allocate_signatured_type): Rename to...
4869 (dwarf2_per_bfd::allocate_signatured_type): ... this.
4870 (get_gdb_index_contents_ftype): Change parameter from
4871 dwarf2_per_objfile to dwarf2_per_bfd.
4872 * dwarf2/macro.c, dwarf2/index-write.c: Replace references to
4873 dwarf2_per_objfile with dwarf2_per_objfile->per_bfd.
4874
4875 2020-05-27 Tom Tromey <tom@tromey.com>
4876 Simon Marchi <simon.marchi@efficios.com>
4877
4878 * dwarf2/loc.c (struct piece_closure) <per_objfile>: New member.
4879 (allocate_piece_closure): Set "per_objfile" member.
4880 (dwarf2_find_location_expression, dwarf2_locexpr_baton_eval)
4881 (locexpr_describe_location, loclist_describe_location): Use new
4882 member.
4883 * dwarf2/read.c (read_call_site_scope)
4884 (mark_common_block_symbol_computed, attr_to_dynamic_prop)
4885 (dwarf2_const_value_attr, dwarf2_fetch_die_loc_sect_off)
4886 (fill_in_loclist_baton, dwarf2_symbol_mark_computed,
4887 handle_data_member_location): Set per_objfile member.
4888 * dwarf2/loc.h (struct dwarf2_locexpr_baton) <per_objfile>: New
4889 member.
4890 (struct dwarf2_loclist_baton) <per_objfile>: New member.
4891
4892 2020-05-27 Tom Tromey <tom@tromey.com>
4893
4894 * dwarf2/read.h (struct dwarf2_per_objfile) <allocate_per_cu,
4895 allocate_signatured_type>: Declare new methods.
4896 <m_num_psymtabs>: New member.
4897 (struct dwarf2_per_cu_data) <index>: New member.
4898 * dwarf2/read.c (dwarf2_per_objfile::allocate_per_cu)
4899 (dwarf2_per_objfile::allocate_signatured_type): New methods.
4900 (create_cu_from_index_list): Use allocate_per_cu.
4901 (create_signatured_type_table_from_index)
4902 (create_signatured_type_table_from_debug_names)
4903 (create_debug_type_hash_table, add_type_unit)
4904 (read_comp_units_from_section): Use allocate_signatured_type.
4905
4906 2020-05-27 Tom Tromey <tom@tromey.com>
4907
4908 * psymtab.c (partial_map_expand_apply)
4909 (psym_find_pc_sect_compunit_symtab, psym_lookup_symbol)
4910 (psym_lookup_global_symbol_language)
4911 (psymtab_to_symtab, psym_find_last_source_symtab, dump_psymtab)
4912 (psym_print_stats, psym_expand_symtabs_for_function)
4913 (psym_map_symbol_filenames, psym_map_matching_symbols)
4914 (psym_expand_symtabs_matching)
4915 (partial_symtab::read_dependencies, maintenance_info_psymtabs)
4916 (maintenance_check_psymtabs): Update.
4917 * psympriv.h (struct partial_symtab) <readin_p,
4918 get_compunit_symtab>: Add objfile parameter.
4919 (struct standard_psymtab) <readin_p, get_compunit_symtab>:
4920 Likewise.
4921 * dwarf2/read.c (struct dwarf2_include_psymtab) <readin_p,
4922 get_compunit_symtab>: Likewise.
4923 (dwarf2_psymtab::expand_psymtab): Pass objfile argument.
4924
4925 2020-05-27 Tom Tromey <tom@tromey.com>
4926
4927 * dwarf2/read.h (struct dwarf2_per_objfile) <obstack>: New
4928 member.
4929 * dwarf2/read.c (delete_file_name_entry): Fix comment.
4930 (create_cu_from_index_list)
4931 (create_signatured_type_table_from_index)
4932 (create_signatured_type_table_from_debug_names)
4933 (dw2_get_file_names_reader, dwarf2_initialize_objfile)
4934 (dwarf2_create_include_psymtab)
4935 (create_debug_type_hash_table, add_type_unit)
4936 (create_type_unit_group, read_comp_units_from_section)
4937 (dwarf2_compute_name, create_cus_hash_table)
4938 (create_dwp_hash_table, create_dwo_unit_in_dwp_v1)
4939 (create_dwo_unit_in_dwp_v2, open_and_init_dwp_file): Use new
4940 obstack.
4941 (dw2_get_real_path): Likewise. Change argument to
4942 dwarf2_per_objfile.
4943
4944 2020-05-27 Luis Machado <luis.machado@linaro.org>
4945
4946 PR tdep/26000
4947 * arm-tdep.c (thumb_analyze_prologue): Fix instruction matching
4948 for ldrd (immediate).
4949
4950 2020-05-26 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4951
4952 * command.h: Add comment giving the name of class_tui.
4953 * cli/cli-cmds.c (_initialize_cli_cmds): If TUI defined,
4954 create the fake command for the help for class_tui.
4955
4956 2020-05-26 Tom Tromey <tromey@adacore.com>
4957
4958 * ada-lang.c (ada_print_array_index): Change type. Call val_atr.
4959 (ada_value_ptr_subscript): Don't call pos_atr on the lower bound.
4960 (val_atr): New function.
4961 (value_val_atr): Use it.
4962 * ada-valprint.c (print_optional_low_bound): Change low bound
4963 handling for enums.
4964 (val_print_packed_array_elements): Don't call discrete_position.
4965 * gdbtypes.c (get_discrete_bounds) <TYPE_CODE_RANGE>: Call
4966 discrete_position for enum types.
4967 * language.c (default_print_array_index): Change type.
4968 * language.h (struct language_defn) <la_print_array_index>: Add
4969 index_type parameter, change type of index_value.
4970 (LA_PRINT_ARRAY_INDEX): Add index_type parameter.
4971 (default_print_array_index): Update.
4972 * valprint.c (maybe_print_array_index): Don't call
4973 value_from_longest. Update.
4974 (value_print_array_elements): Don't call discrete_position.
4975
4976 2020-05-26 Tom Tromey <tromey@adacore.com>
4977
4978 * ada-lang.c (value_val_atr): Handle TYPE_CODE_RANGE.
4979 * gdbtypes.c (discrete_position): Handle TYPE_CODE_RANGE.
4980
4981 2020-05-25 Cristiano De Alti <cristiano_dealti@hotmail.com>
4982
4983 PR gdb/13519
4984 * avr-tdep.c (avr_integer_to_address): Return data or code
4985 address accordingly to the second 'type' argument of the
4986 function.
4987
4988 2020-05-25 Michael Weghorn <m.weghorn@posteo.de>
4989
4990 * infcmd.c, inferior.h: (construct_inferior_arguments):
4991 Moved function from here to gdbsupport/common-inferior.{h,cc}
4992
4993 2020-05-23 Tom Tromey <tom@tromey.com>
4994
4995 Revert commit eca1f90c:
4996 * NEWS: Remove entry for completion styling.
4997 * completer.c (_rl_completion_prefix_display_length): Move
4998 declaration later.
4999 (gdb_fnprint): Revert.
5000 (gdb_display_match_list_1): Likewise.
5001 * cli/cli-style.c (completion_prefix_style)
5002 (completion_difference_style, completion_suffix_style): Remove.
5003 (_initialize_cli_style): Revert.
5004 * cli/cli-style.h (completion_prefix_style)
5005 (completion_difference_style, completion_suffix_style): Don't
5006 declare.
5007
5008 2020-05-24 Pedro Alves <palves@redhat.com>
5009
5010 * symtab.c (completion_list_add_name): Return boolean indication
5011 of whether the symbol matched.
5012 (completion_list_add_symbol): Don't try to remove C++ aliases if
5013 the symbol didn't match in the first place.
5014 * symtab.h (completion_list_add_name): Return bool.
5015
5016 2020-05-23 Simon Marchi <simon.marchi@polymtl.ca>
5017
5018 * gdbtypes.h (TYPE_FIELD): Remove. Replace all uses with
5019 type::field.
5020
5021 2020-05-23 Joel Brobecker <brobecker@adacore.com>
5022
5023 GDB 9.2 released.
5024
5025 2020-05-23 Tom Tromey <tom@tromey.com>
5026
5027 * NEWS: Add entry for completion styling.
5028 * completer.c (_rl_completion_prefix_display_length): Move
5029 declaration earlier.
5030 (gdb_fnprint): Use completion_style.
5031 (gdb_display_match_list_1): Likewise.
5032 * cli/cli-style.c (completion_prefix_style)
5033 (completion_difference_style, completion_suffix_style): New
5034 globals.
5035 (_initialize_cli_style): Register new globals.
5036 * cli/cli-style.h (completion_prefix_style)
5037 (completion_difference_style, completion_suffix_style): Declare.
5038
5039 2020-05-23 Pedro Alves <palves@redhat.com>
5040
5041 * utils.c: Include "gdbsupport/gdb-safe-ctype.h".
5042 (parse_escape): Use ISDIGIT instead of isdigit.
5043 (puts_debug): Use gdb_isprint instead of isprint.
5044 (fprintf_symbol_filtered): Use ISALNUM instead of isalnum.
5045 (cp_skip_operator_token, skip_ws, strncmp_iw_with_mode): Use
5046 ISSPACE instead of isspace.
5047 (strncmp_iw_with_mode): Use TOLOWER instead of tolower and ISSPACE
5048 instead of isspace.
5049 (strcmp_iw_ordered): Use ISSPACE instead of isspace.
5050 (string_to_core_addr): Use TOLOWER instead of tolower, ISXDIGIT
5051 instead of isxdigit and ISDIGIT instead of isdigit.
5052
5053 2020-05-22 Simon Marchi <simon.marchi@efficios.com>
5054
5055 * gdbtypes.h (struct type) <field>: New method.
5056 (TYPE_FIELDS): Remove, replace all uses with either type::fields
5057 or type::field.
5058
5059 2020-05-22 Simon Marchi <simon.marchi@efficios.com>
5060
5061 * gdbtypes.h (struct type) <fields, set_fields>: New methods.
5062 (TYPE_FIELDS): Use type::fields. Change all call sites that
5063 modify the propery to use type::set_fields instead.
5064
5065 2020-05-22 Simon Marchi <simon.marchi@efficios.com>
5066
5067 * gdbtypes.h (TYPE_NFIELDS): Remove. Change all cal sites to use
5068 type::num_fields instead.
5069
5070 2020-05-22 Simon Marchi <simon.marchi@efficios.com>
5071
5072 * gdbtypes.h (struct type) <num_fields, set_num_fields>: New
5073 methods.
5074 (TYPE_NFIELDS): Use type::num_fields. Change all call sites
5075 that modify the number of fields to use type::set_num_fields
5076 instead.
5077
5078 2020-05-22 Tom Tromey <tromey@adacore.com>
5079
5080 * compile/compile-object-load.h (munmap_list_free): Don't
5081 declare.
5082
5083 2020-05-22 Andrew Burgess <andrew.burgess@embecosm.com>
5084
5085 * annotate.c (annotate_source_line): Update return type, add call
5086 to update current symtab and line.
5087 * annotate.h (annotate_source_line): Update return type, and
5088 extend header comment.
5089 * source.c (info_line_command): Check annotation_level before
5090 calling annotate_source_line.
5091 * stack.c (print_frame_info): If calling annotate_source_line
5092 returns true, then don't print any other source line information.
5093
5094 2020-05-21 Simon Marchi <simon.marchi@efficios.com>
5095
5096 * lm32-tdep.c (lm32_register_reggroup_p): Fix condition.
5097
5098 2020-05-21 Simon Marchi <simon.marchi@efficios.com>
5099
5100 * coffread.c (patch_type): Remove NULL check before xfree.
5101 * corefile.c (set_gnutarget): Likewise.
5102 * cp-abi.c (set_cp_abi_as_auto_default): Likewise.
5103 * exec.c (build_section_table): Likewise.
5104 * remote.c (remote_target::pass_signals): Likewise.
5105 * utils.c (n_spaces): Likewise.
5106 * cli/cli-script.c (document_command): Likewise.
5107 * i386-windows-tdep.c (core_process_module_section): Likewise.
5108 * linux-fork.c (struct fork_info) <~fork_info>: Likewise.
5109
5110 2020-05-20 Simon Marchi <simon.marchi@efficios.com>
5111
5112 * symfile.c (reread_symbols): Clear objfile's section_offsets
5113 vector and section indices, re-compute them by calling
5114 sym_offsets.
5115
5116 2020-05-20 Tom Tromey <tromey@adacore.com>
5117
5118 * ada-lang.c (bound_name, MAX_ADA_DIMENS): Remove.
5119 (desc_one_bound, desc_index_type): Compute field name.
5120
5121 2020-05-20 Tom de Vries <tdevries@suse.de>
5122
5123 PR symtab/25833
5124 * dwarf2/read.c (dw2_map_matching_symbols): Handle .gdb_index.
5125
5126 2020-05-20 Alan Modra <amodra@gmail.com>
5127
5128 PR 25993
5129 * solib-darwin.c (darwin_bfd_open): Don't strdup pathname for
5130 bfd_set_filename.
5131 * solib-aix.c (solib_aix_bfd_open): Use std::string for name
5132 passed to bfd_set_filename.
5133 * symfile-mem.c (add_vsyscall_page): Likewise for string
5134 passed to symbol_file_add_from_memory.
5135 (symbol_file_add_from_memory): Make name param a const char* and
5136 don't strdup.
5137
5138 2020-05-20 Alan Modra <amodra@gmail.com>
5139
5140 * coff-pe-read.c (read_pe_exported_syms): Use bfd_get_filename
5141 rather than accessing bfd->filename directly.
5142 * dtrace-probe.c (dtrace_static_probe_ops::get_probes): Likewise,
5143 and use bfd_section_name.
5144 * dwarf2/frame.c (decode_frame_entry): Likewise.
5145 * exec.c (exec_set_section_address): Likewise.
5146 * solib-aix.c (solib_aix_bfd_open): Likewise.
5147 * stap-probe.c (get_stap_base_address): Likewise.
5148 * symfile.c (reread_symbols): Likewise.
5149
5150 2020-05-19 Tom Tromey <tromey@adacore.com>
5151
5152 * sparc64-tdep.c (adi_tag_fd): Update call to target_fileio_open.
5153
5154 2020-05-19 Simon Marchi <simon.marchi@efficios.com>
5155
5156 * dwarf2/read.c (quirk_rust_enum): Allocate enough fields.
5157
5158 2020-05-19 Pedro Alves <palves@redhat.com>
5159
5160 * NEWS (set exec-file-mismatch): Adjust entry.
5161 * exec.c: Include "build-id.h".
5162 (validate_exec_file): Try to match build IDs instead of filenames.
5163 * gdb_bfd.c (struct gdb_bfd_open_closure): New.
5164 (gdb_bfd_iovec_fileio_open): Adjust to use gdb_bfd_open_closure
5165 and pass down 'warn_if_slow'.
5166 (gdb_bfd_open): Add 'warn_if_slow' parameter. Use
5167 gdb_bfd_open_closure to pass it down.
5168 * gdb_bfd.h (gdb_bfd_open): Add 'warn_if_slow' parameter.
5169
5170 2020-05-19 Pedro Alves <palves@redhat.com>
5171
5172 * gdb_bfd.c (gdb_bfd_iovec_fileio_open): Adjust.
5173 * target.c (target_fileio_open_1): Rename to target_fileio_open
5174 and make extern. Use bool.
5175 (target_fileio_open, target_fileio_open_warn_if_slow): Delete.
5176 (target_fileio_read_alloc_1): Adjust.
5177 * target.h (target_fileio_open): Add 'warn_if_slow' parameter.
5178 (target_fileio_open_warn_if_slow): Delete declaration.
5179
5180 2020-05-19 Pedro Alves <palves@redhat.com>
5181
5182 * gdb_bfd.h: (gdb_bfd_open): Default to 'fd' parameter to -1.
5183 Adjust all callers.
5184
5185 2020-05-19 Yoshinori Sato <ysato@users.sourceforge.jp>
5186
5187 * h8300-tdep.c (h8300_is_argument_spill): Change how we check
5188 whether disp is negative.
5189
5190 2020-05-19 Simon Marchi <simon.marchi@efficios.com>
5191
5192 * symfile.h (struct symfile_segment_data)
5193 <~symfile_segment_data>: Remove.
5194 <segment_info>: Change to std::vector.
5195 * symfile.c (default_symfile_segments): Update.
5196 * elfread.c (elf_symfile_segments): Update.
5197
5198 2020-05-19 Simon Marchi <simon.marchi@efficios.com>
5199
5200 * symfile.h (struct symfile_segment_data) <struct segment>: New.
5201 <segments>: New.
5202 <segment_bases, segment_sizes>: Remove.
5203 * symfile.c (default_symfile_segments): Update.
5204 * elfread.c (elf_symfile_segments): Update.
5205 * remote.c (remote_target::get_offsets): Update.
5206 * solib-target.c (solib_target_relocate_section_addresses):
5207 Update.
5208
5209 2020-05-19 Simon Marchi <simon.marchi@efficios.com>
5210
5211 * symfile.h (struct symfile_segment_data): Initialize fields.
5212 <~symfile_segment_data>: Add.
5213 (symfile_segment_data_up): New.
5214 (struct sym_fns) <sym_segments>: Return a
5215 symfile_segment_data_up.
5216 (default_symfile_segments): Return a symfile_segment_data_up.
5217 (free_symfile_segment_data): Remove.
5218 (get_symfile_segment_data): Return a symfile_segment_data_up.
5219 * symfile.c (default_symfile_segments): Likewise.
5220 (get_symfile_segment_data): Likewise.
5221 (free_symfile_segment_data): Remove.
5222 (symfile_find_segment_sections): Update.
5223 * elfread.c (elf_symfile_segments): Return a
5224 symfile_segment_data_up.
5225 * remote.c (remote_target::get_offsets): Update.
5226 * solib-target.c (solib_target_relocate_section_addresses):
5227 Update.
5228 * symfile-debug.c (debug_sym_segments): Return a
5229 symfile_segment_data_up.
5230
5231 2020-05-18 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5232
5233 PR build/25981
5234 * i386-sol2-nat.c [PR_MODEL_NATIVE != PR_MODEL_LP64] (regmap):
5235 Hardcode register numbers.
5236
5237 PR build/25981
5238 * procfs.c [(__i386__ || __x86_64__) && sun] (proc_get_LDT_entry,
5239 procfs_find_LDT_entry): Remove.
5240 * procfs.h [(__i386__ || __x86_64__) && sun] (struct ssd,
5241 procfs_find_LDT_entry): Remove.
5242 * sol-thread.c [(__i386__ || __x86_64__) && sun] (ps_lgetLDT):
5243 Remove.
5244
5245 2020-05-17 Pedro Alves <palves@redhat.com>
5246 Andrew Burgess <andrew.burgess@embecosm.com>
5247 Keno Fischer <keno@juliacomputing.com>
5248
5249 PR gdb/25741
5250 * breakpoint.c (build_target_condition_list): Update comments.
5251 (build_target_command_list): Update comments and skip matching
5252 locations.
5253 (insert_bp_location): Move "set breakpoint auto-hw on" handling to
5254 a separate function. Simplify "set breakpoint auto-hw off"
5255 handling.
5256 (insert_breakpoints): Update comment.
5257 (tracepoint_locations_match): New parameter. For breakpoints,
5258 compare location types too, if the caller wants to.
5259 (handle_automatic_hardware_breakpoints): New functions.
5260 (bp_location_is_less_than): Also sort by location type and
5261 hardware breakpoint length.
5262 (update_global_location_list): Handle "set breakpoint auto-hw on"
5263 here.
5264 (update_breakpoint_locations): Ask breakpoint_locations_match to
5265 ignore location types.
5266
5267 2020-05-16 Simon Marchi <simon.marchi@efficios.com>
5268
5269 * gdbtypes.h (TYPE_NAME): Remove. Change all cal sites to use
5270 type::name instead.
5271
5272 2020-05-16 Simon Marchi <simon.marchi@efficios.com>
5273
5274 * gdbtypes.h (struct type) <name, set_name>: New methods.
5275 (TYPE_CODE): Use type::name. Change all call sites used to set
5276 the name to use type::set_name instead.
5277
5278 2020-05-16 Tom Tromey <tom@tromey.com>
5279
5280 * top.c (quit_force): Update.
5281 * infrun.c (handle_no_resumed): Update.
5282 * top.h (all_uis): New function.
5283 (ALL_UIS): Remove.
5284
5285 2020-05-16 Simon Marchi <simon.marchi@efficios.com>
5286
5287 * mips-linux-tdep.c (mips_linux_in_dynsym_stub): Fix condition.
5288
5289 2020-05-16 Pedro Alves <palves@redhat.com>
5290
5291 * ia64-linux-nat.c
5292 (ia64_linux_nat_target) <enable_watchpoints_in_psr(ptid_t)>:
5293 Declare method.
5294 (enable_watchpoints_in_psr): Now a method of ia64_linux_nat_target.
5295
5296 2020-05-15 Simon Marchi <simon.marchi@efficios.com>
5297
5298 * sparc64-tdep.c (adi_stat_t): Remove typedef (leaving struct).
5299 (sparc64_adi_info): Likewise.
5300
5301 2020-05-15 Tom Tromey <tom@tromey.com>
5302
5303 * symtab.c (lookup_language_this, lookup_symbol_aux): Use
5304 block_objfile.
5305 (lookup_objfile_from_block): Remove.
5306 (lookup_symbol_in_block, lookup_symbol_in_static_block)
5307 (lookup_global_symbol): Use block_objfile.
5308 * symtab.h (lookup_objfile_from_block): Don't declare.
5309 * printcmd.c (clear_dangling_display_expressions): Use
5310 block_objfile.
5311 * parse.c (operator_check_standard): Use block_objfile.
5312
5313 2020-05-15 Tom Tromey <tom@tromey.com>
5314
5315 * language.c (language_alloc_type_symbol): Set
5316 SYMBOL_SECTION.
5317 * symtab.c (initialize_objfile_symbol): Remove.
5318 (allocate_symbol): Remove.
5319 (allocate_template_symbol): Remove.
5320 * dwarf2/read.c (fixup_go_packaging): Use "new".
5321 (new_symbol): Use "new".
5322 (read_variable): Don't call initialize_objfile_symbol. Use
5323 "new".
5324 (read_func_scope): Use "new".
5325 * xcoffread.c (process_xcoff_symbol): Don't call
5326 initialize_objfile_symbol.
5327 (SYMBOL_DUP): Remove.
5328 * coffread.c (process_coff_symbol, coff_read_enum_type): Use
5329 "new".
5330 * symtab.h (allocate_symbol, initialize_objfile_symbol)
5331 (allocate_template_symbol): Don't declare.
5332 (struct symbol): Add copy constructor. Change defaults.
5333 * jit.c (finalize_symtab): Use "new".
5334 * ctfread.c (ctf_add_enum_member_cb, new_symbol, ctf_add_var_cb):
5335 Use "new".
5336 * stabsread.c (patch_block_stabs, define_symbol, read_enum_type)
5337 (common_block_end): Use "new".
5338 * mdebugread.c (parse_symbol): Use "new".
5339 (new_symbol): Likewise.
5340
5341 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5342
5343 * NEWS: Mention changes to help and apropos.
5344
5345 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5346
5347 * command.h (enum command_class): Improve comments, document
5348 that class_alias is for user-defined aliases, give the class
5349 name for each class, remove unused class_xdb.
5350 * cli/cli-decode.c (add_com_alias): Document THECLASS intended usage.
5351 * breakpoint.c (_initialize_breakpoint): Replace class_alias
5352 by a precise class.
5353 * infcmd.c (_initialize_infcmd): Likewise.
5354 * reverse.c (_initialize_reverse): Likewise.
5355 * stack.c (_initialize_stack): Likewise.
5356 * symfile.c (_initialize_symfile): Likewise.
5357 * tracepoint.c (_initialize_tracepoint): Likewise.
5358
5359 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5360
5361 * cli/cli-decode.c (apropos_cmd): Produce output for aliases
5362 when their aliased command is traversed.
5363 (help_cmd): Add fput_command_names_styled call to
5364 output command name and aliases when command has an alias.
5365
5366 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5367
5368 * cli/cli-decode.h (help_cmd_list): Remove declaration.
5369 * cli/cli-decode.c (help_cmd_list): Declare as static,
5370 remove prefix argument, use bool for recurse arg, rework to show the aliases of
5371 a command together with the command.
5372 (fput_command_name_styled, fput_command_names_styled): New functions.
5373 (print_help_for_command): Remove prefix arg, use bool for recurse arg, use
5374 fput_command_name_styled.
5375 (help_list, help_all): Update callers to remove prefix arg and use bool recurse.
5376 * cli/cli-cmds.c (_initialize_cli_cmds): Update alias_command doc.
5377
5378 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5379
5380 * cli/cli-setshow.h (cmd_show_list): Remove prefix argument.
5381 * cli/cli-decode.c (do_show_prefix_cmd): Likewise.
5382 * command.h (cmd_show_list): Likewise.
5383 * dwarf2/index-cache.c (show_index_cache_command): Likewise.
5384 * cli/cli-setshow.c (cmd_show_list): Use the prefix to produce the output. Skip aliases.
5385
5386 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5387
5388 * unittests/command-def-selftests.c (traverse_command_structure):
5389 Verify all commands of a list have the same prefix command and
5390 that only the top cmdlist commands have a null prefix.
5391
5392 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5393
5394 * cli/cli-decode.c (lookup_cmd_for_prefix): Return the aliased command
5395 as prefix, not one of its aliases.
5396 (set_cmd_prefix): Remove.
5397 (do_add_cmd): Centralize the setting of the prefix of a command, when
5398 command is defined after its full chain of prefix commands.
5399 (add_alias_cmd): Remove call to set_cmd_prefix, as do_add_cmd does it.
5400 (add_setshow_cmd_full): Likewise.
5401 (update_prefix_field_of_prefixed_commands): New function.
5402 (add_prefix_cmd): Replace non working call to set_cmd_prefix by
5403 update_prefix_field_of_prefixed_commands.
5404 * gdb/remote-fileio.c (initialize_remote_fileio): Use the real
5405 addresses of remote_set_cmdlist and remote_show_cmdlist given
5406 as argument, not the address of an argument.
5407 * gdb/remote-fileio.h (initialize_remote_fileio): Likewise.
5408 * gdb/remote.c (_initialize_remote): Likewise.
5409
5410 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5411
5412 * cli/cli-cmds.c (alias_command): Check for an existing alias
5413 using lookup_cmd_composition, as valid_command_p is too strict
5414 and forbids aliases that are the prefix of an existing alias
5415 or command.
5416 * cli/cli-decode.c (lookup_cmd_composition): Ensure a prefix
5417 command is properly recognised as a valid command.
5418
5419 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5420
5421 * unittests/help-doc-selftests.c: Rename to
5422 unittests/command-def-selftests.c
5423 * unittests/command-def-selftests.c (help_doc_tests): Update some
5424 comments.
5425 (command_structure_tests, traverse_command_structure): New namespace
5426 and function.
5427 (command_structure_invariants_tests): New function.
5428 (_initialize_command_def_selftests) Renamed from
5429 _initialize_help_doc_selftests, register command_structure_invariants
5430 selftest.
5431
5432 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5433
5434 * cli/cli-cmds.c (_initialize_cli_cmds): Define 'info set' as
5435 an alias of 'show'.
5436
5437 2020-05-15 Joel Brobecker <brobecker@adacore.com>
5438
5439 * ada-lang.h: (ada_is_gnat_encoded_fixed_point_type): Renames
5440 ada_is_fixed_point_type. Update all callers.
5441 (gnat_encoded_fixed_point_delta): Renames ada_delta. Update
5442 all callers.
5443 * ada-lang.c (gnat_encoded_fixed_type_info): Renames fixed_type_info.
5444 Update all callers.
5445 * ada-typeprint.c (print_gnat_encoded_fixed_point_type): Renames
5446 print_fixed_point_type. Update all callers.
5447 * ada-valprint.c (ada_value_print_num): Replace call to
5448 ada_is_fixed_point_type by ada_is_gnat_encoded_fixed_point_type.
5449
5450 2020-05-14 Kevin Buettner <kevinb@redhat.com>
5451
5452 * nat/linux-btrace.c (btrace_this_cpu): Add check for AMD
5453 processors.
5454 (cpu_supports_bts): Add CV_AMD case.
5455
5456 2020-05-14 Laurent Morichetti <Laurent.Morichetti@amd.com>
5457 Simon Marchi <simon.marchi@efficios.com>
5458
5459 * infrun.c (stop_all_threads): Collect multiple wait events at
5460 each pass.
5461
5462 2020-05-14 Simon Marchi <simon.marchi@efficios.com>
5463
5464 * gdbtypes.h (TYPE_CODE): Remove. Change all call sites to use
5465 type::code instead.
5466
5467 2020-05-14 Simon Marchi <simon.marchi@efficios.com>
5468
5469 * gdbtypes.h (struct type) <code, set_code>: New methods.
5470 (TYPE_CODE): Use type::code. Change all call sites used to set
5471 the code to use type::set_code instead.
5472
5473 2020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
5474 Tom de Vries <tdevries@suse.de>
5475 Pedro Alves <palves@redhat.com>
5476
5477 PR threads/25478
5478 * infrun.c (stop_all_threads): Do NOT ignore
5479 TARGET_WAITKIND_NO_RESUMED, TARGET_WAITKIND_THREAD_EXITED,
5480 TARGET_WAITKIND_EXITED, TARGET_WAITKIND_SIGNALLED wait statuses
5481 received.
5482 (handle_no_resumed): Remove code handling a live inferior with no
5483 threads.
5484 * remote.c (has_single_non_exited_thread): New.
5485 (remote_target::update_thread_list): Do not delete a thread if is
5486 the last thread of the process.
5487 * thread.c (thread_select): Call delete_exited_threads instead of
5488 prune_threads.
5489
5490 2020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
5491
5492 * infrun.c (stop_all_threads): Enable/disable thread events of all
5493 targets. Move a debug message denoting the end of the function
5494 into the SCOPED_EXIT block.
5495
5496 2020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
5497
5498 * process-stratum-target.h: Include <set>.
5499 (all_non_exited_process_targets, switch_to_target_no_thread): New
5500 function declarations.
5501 * process-stratum-target.c (all_non_exited_process_targets)
5502 (switch_to_target_no_thread): New function implementations.
5503
5504 2020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
5505
5506 * infrun.c (handle_inferior_event): Extract out a piece of code
5507 into...
5508 (mark_non_executing_threads): ...this new function.
5509
5510 2020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
5511
5512 * infrun.c (resume_1): Move a 'regcache_read_pc' call down to first
5513 use.
5514
5515 2020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
5516
5517 * regcache.c (regcache_read_pc_protected): New function
5518 implementation that returns 0 if the PC cannot read via
5519 'regcache_read_pc'.
5520 * infrun.c (proceed): Call 'regcache_read_pc_protected'
5521 instead of 'regcache_read_pc'.
5522 (keep_going_pass_signal): Ditto.
5523
5524 2020-05-13 Tom Tromey <tromey@adacore.com>
5525
5526 * ada-lang.c (align_value): Remove.
5527 (ada_template_to_fixed_record_type_1): Use align_up.
5528
5529 2020-05-13 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
5530
5531 * async-event.c: Update the copyright year.
5532 * async-event.h: Update the copyright year.
5533
5534 2020-05-12 Simon Marchi <simon.marchi@efficios.com>
5535
5536 * objfiles.h (is_addr_in_objfile,
5537 shared_objfile_contains_address_p): Return bool.
5538 * objfile.c (is_addr_in_objfile,
5539 shared_objfile_contains_address_p): Return bool.
5540
5541 2020-05-11 Tom Tromey <tromey@adacore.com>
5542
5543 * cli/cli-cmds.c (info_command): Restore.
5544 (_initialize_cli_cmds): Use add_prefix_command for "info".
5545 * gdb-gdb.gdb.in: Restore breakpoint on info_command.
5546
5547 2020-05-11 Tom Tromey <tromey@adacore.com>
5548
5549 * ada-lang.c (ada_value_primitive_field): Now public.
5550 * ada-lang.h (ada_value_primitive_field): Declare.
5551 * ada-valprint.c (print_field_values): Use
5552 ada_value_primitive_field for wrapper fields.
5553
5554 2020-05-11 Tom de Vries <tdevries@suse.de>
5555
5556 * dwarf2/index-write.c (debug_names::psymbol_tag): Handle
5557 MODULE_DOMAIN.
5558
5559 2020-05-11 Tom de Vries <tdevries@suse.de>
5560
5561 PR symtab/25941
5562 * dwarf2/read.c (create_cus_from_debug_names_list): Initialize CUs
5563 with length 0, if not gdb-produced.
5564 (cutu_reader::cutu_reader): Set CU length to actual length if 0.
5565
5566 2020-05-09 Tom de Vries <tdevries@suse.de>
5567
5568 PR gdb/25955
5569 * break-catch-throw.c (check_status_exception_catchpoint): Fix name
5570 calculation.
5571
5572 2020-05-09 Tom Tromey <tom@tromey.com>
5573
5574 * top.c (server_command): Now bool.
5575 * top.h (server_command): Now bool.
5576
5577 2020-05-08 Tom Tromey <tromey@adacore.com>
5578
5579 * dwarf2/read.c (read_lexical_block_scope): Don't process a DIE
5580 already being processed.
5581
5582 2020-05-08 Tom Tromey <tom@tromey.com>
5583
5584 * printcmd.c (struct display) <next>: Remove.
5585 <display>: New constructor.
5586 <exp_string>: Now a std::string.
5587 <enabled_p>: Now a bool.
5588 (display_number): Move definition earlier.
5589 (displays): Rename from display_chain. Now a std::vector.
5590 (ALL_DISPLAYS, ALL_DISPLAYS_SAFE): Remove.
5591 (display_command): Update.
5592 (do_one_display, disable_display)
5593 (enable_disable_display_command, do_enable_disable_display):
5594 Update.
5595 (free_display): Remove.
5596 (clear_displays): Rewrite.
5597 (delete_display): Update.
5598 (map_display_numbers): Use function_view. Remove "data"
5599 parameter. Update.
5600 (do_delete_display): Remove.
5601 (undisplay_command): Update.
5602 (do_one_display, do_displays, disable_display)
5603 (info_display_command): Update.
5604 (do_enable_disable_display): Remove.
5605 (enable_disable_display_command)
5606 (clear_dangling_display_expressions): Update.
5607
5608 2020-05-08 Tom Tromey <tom@tromey.com>
5609
5610 * symtab.c (set_symbol_cache_size)
5611 (maintenance_print_symbol_cache, maintenance_flush_symbol_cache)
5612 (maintenance_print_symbol_cache_statistics): Update.
5613 * symmisc.c (print_symbol_bcache_statistics)
5614 (print_objfile_statistics, maintenance_print_objfiles)
5615 (maintenance_info_symtabs, maintenance_check_symtabs)
5616 (maintenance_expand_symtabs, maintenance_info_line_tables):
5617 Update.
5618 * symfile-debug.c (set_debug_symfile): Update.
5619 * source.c (forget_cached_source_info): Update.
5620 * python/python.c (gdbpy_progspaces): Update.
5621 * psymtab.c (maintenance_info_psymtabs): Update.
5622 * probe.c (parse_probes): Update.
5623 * linespec.c (iterate_over_all_matching_symtabs)
5624 (collect_symtabs_from_filename, search_minsyms_for_name): Update.
5625 * guile/scm-progspace.c (gdbscm_progspaces): Update.
5626 * exec.c (exec_target::close): Update.
5627 * ada-tasks.c (ada_tasks_new_objfile_observer): Update.
5628 * breakpoint.c (print_one_breakpoint_location)
5629 (create_longjmp_master_breakpoint)
5630 (create_std_terminate_master_breakpoint): Update.
5631 * progspace.c (program_spaces): Now a std::vector.
5632 (maybe_new_address_space): Update.
5633 (add_program_space): Remove.
5634 (program_space::program_space): Update.
5635 (remove_program_space): Update.
5636 (number_of_program_spaces): Remove.
5637 (print_program_space, update_address_spaces): Update.
5638 * progspace.h (program_spaces): Change type.
5639 (ALL_PSPACES): Remove.
5640 (number_of_program_spaces): Don't declare.
5641 (struct program_space) <next>: Remove.
5642
5643 2020-05-08 Tom Tromey <tom@tromey.com>
5644
5645 * mi/mi-cmd-file.c (mi_cmd_file_list_shared_libraries): Update.
5646 * solib-svr4.c (svr4_fetch_objfile_link_map): Update.
5647 (enable_break): Update.
5648 * solib-frv.c (frv_fdpic_find_global_pointer): Update.
5649 (frv_fdpic_find_canonical_descriptor): Update.
5650 (frv_fetch_objfile_link_map): Update.
5651 * progspace.c (program_space::free_all_objfiles): Update.
5652 (program_space::solibs): New method.
5653 * progspace.h (struct program_space) <solibs>: New method.
5654 * solist.h (master_so_list): Don't declare.
5655 (ALL_SO_LIBS): Remove.
5656 * solib.h (so_list_head): Remove.
5657 (update_solib_list): Update comment.
5658 * solib.c (master_so_list): Remove.
5659 (solib_used, update_solib_list, solib_add)
5660 (info_sharedlibrary_command, clear_solib)
5661 (reload_shared_libraries_1, remove_user_added_objfile): Update.
5662
5663 2020-05-08 Tom Tromey <tom@tromey.com>
5664
5665 * extension.c (extension_languages): Now a std::array.
5666 (ALL_EXTENSION_LANGUAGES): Remove.
5667 (get_ext_lang_defn, get_ext_lang_of_file)
5668 (eval_ext_lang_from_control_command): Update.
5669 (finish_ext_lang_initialization)
5670 (auto_load_ext_lang_scripts_for_objfile)
5671 (ext_lang_type_printers::ext_lang_type_printers)
5672 (apply_ext_lang_type_printers)
5673 (ext_lang_type_printers::~ext_lang_type_printers)
5674 (apply_ext_lang_val_pretty_printer, apply_ext_lang_frame_filter)
5675 (preserve_ext_lang_values, get_breakpoint_cond_ext_lang)
5676 (breakpoint_ext_lang_cond_says_stop, check_quit_flag)
5677 (get_matching_xmethod_workers, ext_lang_colorize)
5678 (ext_lang_before_prompt): Update.
5679 (ALL_ENABLED_EXTENSION_LANGUAGES): Remove.
5680
5681 2020-05-08 Tom Tromey <tom@tromey.com>
5682
5683 * symtab.h (class demangle_result_storage) <set_malloc_ptr>: New
5684 overload.
5685 <swap_string, m_string>: Remove.
5686 * symtab.c (demangle_for_lookup, completion_list_add_symbol):
5687 Update.
5688 * stabsread.c (define_symbol, read_type): Update.
5689 * linespec.c (find_linespec_symbols): Update.
5690 * gnu-v3-abi.c (gnuv3_get_typeid): Update.
5691 * dwarf2/read.c (dwarf2_canonicalize_name): Update.
5692 * dbxread.c (read_dbx_symtab): Update.
5693 * cp-support.h (cp_canonicalize_string_full)
5694 (cp_canonicalize_string, cp_canonicalize_string_no_typedefs):
5695 Return unique_xmalloc_ptr.
5696 * cp-support.c (inspect_type): Update.
5697 (cp_canonicalize_string_full): Return unique_xmalloc_ptr.
5698 (cp_canonicalize_string_no_typedefs, cp_canonicalize_string):
5699 Likewise.
5700 * c-typeprint.c (print_name_maybe_canonical): Update.
5701 * break-catch-throw.c (check_status_exception_catchpoint):
5702 Update.
5703
5704 2020-05-08 Tom de Vries <tdevries@suse.de>
5705
5706 * infrun.c (follow_fork): Copy current_line and current_symtab to
5707 child thread.
5708
5709 2020-05-07 Simon Marchi <simon.marchi@efficios.com>
5710
5711 * async-event.c (struct async_signal_handler, struct
5712 async_event_handler): Reformat, remove typedef.
5713
5714 2020-05-07 Simon Marchi <simon.marchi@efficios.com>
5715
5716 * gdbtypes.h (TYPE_DYN_PROP_LIST): Remove. Update all users
5717 access thistype->main_type->dyn_prop_list directly.
5718
5719 2020-05-07 Simon Marchi <simon.marchi@efficios.com>
5720
5721 * gdbtypes.h (struct type) <remove_dyn_prop>: New method.
5722 (remove_dyn_prop): Remove. Update all users to use
5723 type::remove_dyn_prop.
5724 * gdbtypes.c (remove_dyn_prop): Rename to...
5725 (type::remove_dyn_prop): ... this.
5726
5727 2020-05-07 Simon Marchi via Gdb-patches <gdb-patches@sourceware.org>
5728
5729 * gdbtypes.h (struct type) <add_dyn_prop>: New method.
5730 (add_dyn_prop): Remove. Update all users to use
5731 type::add_dyn_prop.
5732 * gdbtypes.c (add_dyn_prop): Rename to...
5733 (type::add_dyn_prop): ... this.
5734
5735 2020-05-07 Simon Marchi <simon.marchi@efficios.com>
5736
5737 * gdbtypes.h (struct type) <get_dyn_prop>: New method.
5738 (get_dyn_prop): Remove. Update all users to use
5739 type::dyn_prop.
5740 * gdbtypes.c (get_dyn_prop): Rename to...
5741 (type::dyn_prop): ... this.
5742
5743 2020-05-06 Simon Marchi <simon.marchi@efficios.com>
5744
5745 * gdbtypes.h (struct main_type) <flag_static>: Remove.
5746
5747 2020-05-06 Simon Marchi <simon.marchi@efficios.com>
5748
5749 * amd64-tdep.c (amd64_analyze_prologue): Check for `endbr64`
5750 instruction, skip it if it's there.
5751
5752 2020-05-05 Simon Marchi <simon.marchi@efficios.com>
5753
5754 * gdbtypes.h (struct main_type) <flag_incomplete>: Remove.
5755
5756 2020-05-04 Simon Marchi <simon.marchi@efficios.com>
5757
5758 * gdbtypes.h (TYPE_INCOMPLETE): Remove.
5759 * gdbtypes.c (recursive_dump_type): Remove use of
5760 TYPE_INCOMPLETE.
5761
5762 2020-05-03 Tom Tromey <tom@tromey.com>
5763
5764 * breakpoint.c (catch_command, tcatch_command): Remove.
5765 (_initialize_breakpoint): Use add_basic_prefix_cmd,
5766 add_show_prefix_cmd.
5767 (set_breakpoint_cmd, show_breakpoint_cmd): Remove
5768 * utils.c (set_internal_problem_cmd, show_internal_problem_cmd):
5769 Remove.
5770 (add_internal_problem_command): Use add_basic_prefix_cmd,
5771 add_show_prefix_cmd.
5772 * mips-tdep.c (set_mipsfpu_command): Remove.
5773 (_initialize_mips_tdep): Use add_basic_prefix_cmd.
5774 * dwarf2/index-cache.c (set_index_cache_command): Remove.
5775 (_initialize_index_cache): Use add_basic_prefix_cmd.
5776 * memattr.c (dummy_cmd): Remove.
5777 (_initialize_mem): Use add_basic_prefix_cmd, add_show_prefix_cmd.
5778 * tui/tui-win.c (set_tui_cmd, show_tui_cmd): Remove.
5779 (_initialize_tui_win): Use add_basic_prefix_cmd,
5780 add_show_prefix_cmd.
5781 * cli/cli-logging.c (set_logging_command): Remove.
5782 (_initialize_cli_logging): Use add_basic_prefix_cmd,
5783 add_show_prefix_cmd.
5784 (show_logging_command): Remove.
5785 * target.c (target_command): Remove.
5786 (add_target): Use add_basic_prefix_cmd.
5787
5788 2020-05-02 Hannes Domani <ssbssa@yahoo.de>
5789
5790 * gdbtypes.h (enum dynamic_prop_node_kind): Fix typo.
5791
5792 2020-05-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5793
5794 * gdb-gdb.gdb-in: Remove breakpoint on disappeared function
5795 info_command.
5796
5797 2020-04-30 Kamil Rytarowski <n54@gmx.com>
5798
5799 * nbsd-nat.c (nbsd_enable_proc_events)
5800 (nbsd_nat_target::post_startup_inferior): Add.
5801 (nbsd_nat_target::post_attach): Call `nbsd_enable_proc_events'.
5802 (nbsd_nat_target::update_thread_list): Rewrite.
5803 (nbsd_nat_target::wait): Handle "PTRACE_LWP_EXIT" and
5804 "PTRACE_LWP_CREATE".
5805 * nbsd-nat.h (nbsd_nat_target::post_startup_inferior): Add.
5806
5807 2020-04-30 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5808
5809 * stack.c (_initialize_stack): Remove duplicated creation
5810 of "frame" command and "f" alias.
5811
5812 2020-04-30 Hannes Domani <ssbssa@yahoo.de>
5813
5814 PR gdb/18706
5815 * gdbtypes.c (check_typedef): Calculate size of array of
5816 stubbed type.
5817
5818 2020-04-30 Hannes Domani <ssbssa@yahoo.de>
5819
5820 PR gdb/15559
5821 * i386-tdep.c (i386_push_dummy_call): Call
5822 i386_thiscall_push_dummy_call.
5823 (i386_thiscall_push_dummy_call): New function.
5824 * i386-tdep.h (i386_thiscall_push_dummy_call): Declare.
5825 * i386-windows-tdep.c (i386_windows_push_dummy_call): New function.
5826 (i386_windows_init_abi): Call set_gdbarch_push_dummy_call.
5827
5828 2020-04-29 Simon Marchi <simon.marchi@efficios.com>
5829
5830 * gdbarch.sh (do_read): Add shellcheck disable directive for
5831 warning SC2162.
5832
5833 2020-04-29 Simon Marchi <simon.marchi@efficios.com>
5834
5835 * gdbarch.sh: Use ${foo:-} where shellcheck would report a
5836 "referenced but not assigned" warning.
5837
5838 2020-04-29 Simon Marchi <simon.marchi@efficios.com>
5839
5840 * gdbarch.sh: Remove code that sets fallbackdefault.
5841
5842 2020-04-29 Simon Marchi <simon.marchi@efficios.com>
5843
5844 * gdbarch.sh: Use shell operators && and || instead of
5845 -a and -o.
5846
5847 2020-04-29 Simon Marchi <simon.marchi@efficios.com>
5848
5849 * gdbarch.sh: Use $(...) instead of `...`.
5850
5851 2020-04-29 Simon Marchi <simon.marchi@efficios.com>
5852
5853 * gdbarch.sh: Use double quotes around variables.
5854
5855 2020-04-29 Simon Marchi <simon.marchi@efficios.com>
5856
5857 * gdbarch.sh: Use %s with printf, instead of variables in the
5858 format string.
5859
5860 2020-04-29 Tom Tromey <tromey@adacore.com>
5861
5862 PR ada/25875:
5863 * dwarf2/read.c (update_enumeration_type_from_children): Compute
5864 type fields here.
5865 (read_enumeration_type): Call
5866 update_enumeration_type_from_children later. Update comments.
5867 (process_enumeration_scope): Don't create type fields.
5868
5869 2020-04-29 Kamil Rytarowski <n54@gmx.com>
5870
5871 * nbsd-tdep.c: Include "xml-syscall.h".
5872 (nbsd_init_abi): Call `set_xml_syscall_file_name'.
5873
5874 2020-04-29 Kamil Rytarowski <n54@gmx.com>
5875
5876 * nbsd-nat.c: Include "sys/wait.h".
5877 (nbsd_resume, nbsd_nat_target::resume, nbsd_wait)
5878 (nbsd_nat_target::wait, nbsd_nat_target::insert_exec_catchpoint)
5879 (nbsd_nat_target::remove_exec_catchpoint)
5880 (nbsd_nat_target::set_syscall_catchpoint): Add.
5881 * nbsd-nat.h (nbsd_nat_target::resume, nbsd_nat_target::wait)
5882 (nbsd_nat_target::insert_exec_catchpoint)
5883 (nbsd_nat_target::remove_exec_catchpoint)
5884 (nbsd_nat_target::set_syscall_catchpoint): Add.
5885 * nbsd-tdep.c (nbsd_get_syscall_number): Add.
5886 (nbsd_init_abi): Call `set_gdbarch_get_syscall_number' and pass
5887 `nbsd_get_syscall_number'.
5888
5889 2020-04-29 Tom Tromey <tom@tromey.com>
5890
5891 * stack.c (print_block_frame_labels): Remove.
5892
5893 2020-04-29 Hannes Domani <ssbssa@yahoo.de>
5894
5895 PR gdb/17320
5896 * ada-valprint.c (val_print_packed_array_elements): Move array
5897 end bracket to new line.
5898 (ada_val_print_string): Remove extra spaces before first array
5899 element.
5900 * c-valprint.c (c_value_print_array): Likewise.
5901 * m2-valprint.c (m2_print_array_contents): Likewise.
5902 (m2_value_print_inner): Likewise.
5903 * p-valprint.c (pascal_value_print_inner): Likewise.
5904 * valprint.c (generic_val_print_array): Likewise.
5905 (value_print_array_elements): Move first array element and array
5906 end bracket to new line.
5907
5908 2020-04-29 Tom de Vries <tdevries@suse.de>
5909
5910 PR symtab/25889
5911 * linespec.c (find_method): Fix ix calculation.
5912
5913 2020-04-28 Kamil Rytarowski <n54@gmx.com>
5914
5915 * syscalls/update-netbsd.sh: New file.
5916 * syscalls/netbsd.xml: Regenerate.
5917 * data-directory/Makefile.in: Register `netbsd.xml' in
5918 `SYSCALLS_FILES'.
5919
5920 2020-04-28 Simon Marchi <simon.marchi@efficios.com>
5921
5922 * syscalls/update-freebsd.sh: Add double quotes.
5923
5924 2020-04-28 Tom Tromey <tom@tromey.com>
5925
5926 * NEWS: Update.
5927 * python/py-cmd.c (gdbpy_initialize_commands): Add COMMAND_TUI.
5928 (cmdpy_init): Allow class_tui.
5929
5930 2020-04-28 Mark Williams <mark@myosotissp.com>
5931
5932 PR gdb/24480
5933 * dwarf2read.c: Add missing assingments to list_in_scope when
5934 start_symtab was already called.
5935
5936 2020-04-28 Simon Marchi <simon.marchi@efficios.com>
5937
5938 PR gdb/25881
5939 * dwarf2/read.c (offset_map_type): Use
5940 gdb:hash_enum<sect_offset> as hash function.
5941
5942 2020-04-28 Tom de Vries <tdevries@suse.de>
5943
5944 * dwarf2/read.c (process_structure_scope): Add symbol for struct decl
5945 with DW_AT_signature.
5946
5947 2020-04-27 Simon Marchi <simon.marchi@efficios.com>
5948
5949 * configure.ac: Remove check for fs_base/gs_base in
5950 user_regs_struct.
5951 * configure: Re-generate.
5952 * config.in: Re-generate.
5953 * amd64-nat.c (amd64_native_gregset_reg_offset): Adjust.
5954 * amd64-linux-nat.c (amd64_linux_nat_target::fetch_registers,
5955 amd64_linux_nat_target::store_registers, ps_get_thread_area, ): Adjust.
5956
5957 2020-04-27 Luis Machado <luis.machado@linaro.org>
5958
5959 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first): Handle
5960 problematic inline frame unwinding situation.
5961 * frame.c (frame_id_computed_p): New function.
5962 * frame.h (frame_id_computed_p): New prototype.
5963
5964 2020-04-26 Tom Tromey <tom@tromey.com>
5965
5966 * command.h (enum command_class) <class_pseudo>: Remove.
5967
5968 2020-04-26 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5969
5970 * cli/cli-decode.c (lookup_cmd_composition): Fix comments
5971 and whitespace.
5972
5973 2020-04-25 Kamil Rytarowski <n54@gmx.com>
5974
5975 * inf-ptrace.c (inf_ptrace_target::wait): Remove
5976 `PT_GET_PROCESS_STATE' block.
5977
5978 2020-04-24 Tom Tromey <tom@tromey.com>
5979
5980 * symtab.h (symbol_get_demangled_name): Don't declare.
5981 * symtab.c (symbol_get_demangled_name): Remove.
5982 (general_symbol_info::natural_name)
5983 (general_symbol_info::demangled_name): Update.
5984
5985 2020-04-24 Tom Tromey <tom@tromey.com>
5986
5987 PR rust/25025:
5988 * dwarf2/read.c (dwarf2_physname): Do not demangle for Rust.
5989
5990 2020-04-24 Tom Tromey <tom@tromey.com>
5991
5992 PR symtab/12707:
5993 * dwarf2/read.c (add_partial_symbol): Use the linkage name if it
5994 exists.
5995 (new_symbol): Likewise.
5996 * compile/compile-object-load.c (get_out_value_type): Use
5997 symbol_matches_search_name.
5998
5999 2020-04-24 Tom Tromey <tom@tromey.com>
6000
6001 * dwarf2/read.c (add_partial_symbol): Do not call
6002 compute_and_set_names.
6003
6004 2020-04-24 Tom Tromey <tom@tromey.com>
6005
6006 * dwarf2/read.c (add_partial_symbol): Use new add_psymbol_to_list
6007 overload.
6008
6009 2020-04-24 Tom Tromey <tom@tromey.com>
6010
6011 * psymtab.c (add_psymbol_to_bcache): Simplify calling convention.
6012 (add_psymbol_to_list): New overload. Make old overload call new
6013 one.
6014 * psympriv.h (add_psymbol_to_list): New overload.
6015
6016 2020-04-24 Tom Tromey <tom@tromey.com>
6017
6018 * dwarf2/read.c (partial_die_info::read) <case
6019 DW_AT_linkage_name>: Use value_as_string.
6020 (dwarf2_string_attr): Use value_as_string.
6021 * dwarf2/attribute.h (struct attribute) <value_as_string>: Declare
6022 method.
6023 * dwarf2/attribute.c (attribute::value_as_string): New method.
6024
6025 2020-04-24 Tom Tromey <tom@tromey.com>
6026
6027 * symtab.c (general_symbol_info::natural_name)
6028 (general_symbol_info::demangled_name): Check for language_rust.
6029
6030 2020-04-24 Tom Tromey <tom@tromey.com>
6031
6032 * dwarf2/read.c (dw2_linkage_name): Move Rust "{" hack here...
6033 (dwarf2_physname): ... from here.
6034 (partial_die_info::read): Add Rust "{" hack.
6035
6036 2020-04-24 Tom Tromey <tom@tromey.com>
6037
6038 * symtab.h (struct general_symbol_info) <set_demangled_name>: New
6039 method.
6040 (symbol_set_demangled_name): Don't declare.
6041 * symtab.c (general_symbol_info::set_demangled_name): Rename from
6042 symbol_set_demangled_name.
6043 (general_symbol_info::set_language)
6044 (general_symbol_info::compute_and_set_names): Update.
6045 * minsyms.c (minimal_symbol_reader::install): Update.
6046 * dwarf2/read.c (new_symbol): Update.
6047
6048 2020-04-24 Tom Tromey <tromey@adacore.com>
6049
6050 PR python/23662:
6051 * python/py-type.c (convert_field): Handle
6052 FIELD_LOC_KIND_DWARF_BLOCK.
6053 (typy_get_sizeof): Handle TYPE_HAS_DYNAMIC_LENGTH.
6054 (typy_get_dynamic): Nw function.
6055 (type_object_getset): Add "dynamic".
6056 * NEWS: Add entry.
6057
6058 2020-04-24 Tom Tromey <tromey@adacore.com>
6059
6060 * ada-typeprint.c (print_choices, print_variant_part)
6061 (print_record_field_types_dynamic): New functions.
6062 (print_record_field_types): Use print_record_field_types_dynamic.
6063
6064 2020-04-24 Tom Tromey <tromey@adacore.com>
6065
6066 * dwarf2/read.c (handle_data_member_location): New overload.
6067 (dwarf2_add_field): Use it.
6068 (decode_locdesc): Add "computed" parameter. Update comment.
6069 * gdbtypes.c (is_dynamic_type_internal): Also look for
6070 FIELD_LOC_KIND_DWARF_BLOCK.
6071 (resolve_dynamic_struct): Handle FIELD_LOC_KIND_DWARF_BLOCK.
6072 * gdbtypes.c (is_dynamic_type_internal): Add special case for C++
6073 virtual base classes.
6074 * gnu-v3-abi.c (gnuv3_baseclass_offset): Handle
6075 FIELD_LOC_KIND_DWARF_BLOCK.
6076
6077 2020-04-24 Tom Tromey <tromey@adacore.com>
6078
6079 * dwarf2/read.c (read_structure_type): Handle dynamic length.
6080 * gdbtypes.c (is_dynamic_type_internal): Check
6081 TYPE_HAS_DYNAMIC_LENGTH.
6082 (resolve_dynamic_type_internal): Use TYPE_DYNAMIC_LENGTH.
6083 * gdbtypes.h (TYPE_HAS_DYNAMIC_LENGTH, TYPE_DYNAMIC_LENGTH):
6084 New macros.
6085 (enum dynamic_prop_node_kind) <DYN_PROP_BYTE_SIZE>: New
6086 constant.
6087
6088 2020-04-24 Tom Tromey <tromey@adacore.com>
6089
6090 * dwarf2/read.c (struct variant_field): Rewrite.
6091 (struct variant_part_builder): New.
6092 (struct nextfield): Remove "variant" field. Add "offset".
6093 (struct field_info): Add "current_variant_part" and
6094 "variant_parts".
6095 (alloc_discriminant_info): Remove.
6096 (alloc_rust_variant): New function.
6097 (quirk_rust_enum): Update.
6098 (dwarf2_add_field): Set "offset" member. Don't handle
6099 DW_TAG_variant_part.
6100 (offset_map_type): New typedef.
6101 (convert_variant_range, create_one_variant)
6102 (create_one_variant_part, create_variant_parts)
6103 (add_variant_property): New functions.
6104 (dwarf2_attach_fields_to_type): Call add_variant_property.
6105 (read_structure_type): Don't handle DW_TAG_variant_part.
6106 (handle_variant_part, handle_variant): New functions.
6107 (handle_struct_member_die): Use them.
6108 (process_structure_scope): Don't handle variant parts.
6109 * gdbtypes.h (TYPE_FLAG_DISCRIMINATED_UNION): Remove.
6110 (struct discriminant_info): Remove.
6111 (enum dynamic_prop_node_kind) <DYN_PROP_DISCRIMINATED>: Remove.
6112 (struct main_type) <flag_discriminated_union>: Remove.
6113 * rust-lang.c (rust_enum_p, rust_empty_enum_p): Rewrite.
6114 (rust_enum_variant): Return int. Remove "contents". Rewrite.
6115 (rust_print_enum, rust_print_struct_def, rust_evaluate_subexp):
6116 Update.
6117 * valops.c (value_union_variant): Remove.
6118 * value.h (value_union_variant): Don't declare.
6119
6120 2020-04-24 Tom Tromey <tromey@adacore.com>
6121
6122 * ada-lang.c (ada_discrete_type_high_bound, ada_discrete_type_low)
6123 (ada_value_primitive_packed_val): Update.
6124 * ada-valprint.c (ada_value_print_1): Update.
6125 * dwarf2/loc.c (evaluate_for_locexpr_baton): New struct.
6126 (dwarf2_locexpr_baton_eval): Take a property_addr_info rather than
6127 just an address. Use evaluate_for_locexpr_baton.
6128 (dwarf2_evaluate_property): Update.
6129 * dwarf2/loc.h (struct property_addr_info) <valaddr>: Now an
6130 array_view.
6131 * findvar.c (default_read_var_value): Update.
6132 * gdbtypes.c (compute_variant_fields_inner)
6133 (resolve_dynamic_type_internal): Update.
6134 (resolve_dynamic_type): Change type of valaddr parameter.
6135 * gdbtypes.h (resolve_dynamic_type): Update.
6136 * valarith.c (value_subscripted_rvalue): Update.
6137 * value.c (value_from_contents_and_address): Update.
6138
6139 2020-04-24 Tom Tromey <tromey@adacore.com>
6140
6141 * dwarf2/loc.c (dwarf2_locexpr_baton_eval): Add
6142 "push_initial_value" parameter.
6143 (dwarf2_evaluate_property): Likewise.
6144 * dwarf2/loc.h (dwarf2_evaluate_property): Update.
6145
6146 2020-04-24 Tom Tromey <tromey@adacore.com>
6147
6148 * gdbtypes.c (is_dynamic_type_internal): Check for variant parts.
6149 (variant::matches, compute_variant_fields_recurse)
6150 (compute_variant_fields_inner, compute_variant_fields): New
6151 functions.
6152 (resolve_dynamic_struct): Check for DYN_PROP_VARIANT_PARTS.
6153 Use resolved_type after type is made.
6154 (operator==): Add new cases.
6155 * gdbtypes.h (TYPE_HAS_VARIANT_PARTS): New macro.
6156 (struct discriminant_range, struct variant, struct variant_part):
6157 New.
6158 (union dynamic_prop_data) <variant_parts, original_type>: New
6159 members.
6160 (enum dynamic_prop_node_kind) <DYN_PROP_VARIANT_PARTS>: New constant.
6161 (enum dynamic_prop_kind) <PROP_TYPE, PROP_VARIANT_PARTS>: New
6162 constants.
6163 * value.c (unpack_bits_as_long): Now public.
6164 * value.h (unpack_bits_as_long): Declare.
6165
6166 2020-04-24 Tom Tromey <tromey@adacore.com>
6167
6168 * rs6000-tdep.c (struct ppc_variant): Rename from "variant".
6169 (variants, find_variant_by_arch, rs6000_gdbarch_init): Update.
6170
6171 2020-04-24 Hannes Domani <ssbssa@yahoo.de>
6172
6173 * windows-tdep.c (exception_values): Add WOW64 exception numbers.
6174
6175 2020-04-24 Kamil Rytarowski <n54@gmx.com>
6176
6177 * inf-ptrace.h (follow_fork, insert_fork_catchpoint)
6178 (remove_fork_catchpoint, post_startup_inferior)
6179 (post_attach): Move...
6180 * obsd-nat.h (follow_fork, insert_fork_catchpoint)
6181 (remove_fork_catchpoint, post_startup_inferior)
6182 (post_attach): ...here.
6183 * inf-ptrace.c (follow_fork, insert_fork_catchpoint)
6184 (remove_fork_catchpoint, post_startup_inferior)
6185 (post_attach): Move...
6186 * obsd-nat.c (follow_fork, insert_fork_catchpoint)
6187 (remove_fork_catchpoint, post_startup_inferior)
6188 (post_attach): ...here.
6189
6190 2020-04-24 Tom Tromey <tromey@adacore.com>
6191
6192 * nat/windows-nat.h (struct windows_thread_info)
6193 <pc_adjusted>: New member.
6194 * windows-nat.c (windows_fetch_one_register): Check
6195 pc_adjusted.
6196 (windows_nat_target::get_windows_debug_event)
6197 (windows_nat_target::wait): Set pc_adjusted.
6198
6199 2020-04-24 Tom de Vries <tdevries@suse.de>
6200
6201 * contrib/cc-with-tweaks.sh: Remove <exec>.gdb-index file handling.
6202 Run gdb-add-index inside temp dir.
6203
6204 2020-04-23 Tom Tromey <tromey@adacore.com>
6205
6206 * windows-tdep.c (is_linked_with_cygwin_dll): Always update "iter"
6207 in loop.
6208
6209 2020-04-23 Luis Machado <luis.machado@linaro.org>
6210
6211 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first): Use
6212 get_frame_register instead of gdbarch_unwind_pc.
6213
6214 2020-04-23 Tom de Vries <tdevries@suse.de>
6215
6216 * symtab.c (lookup_global_symbol): Prefer def over decl.
6217
6218 2020-04-23 Tom de Vries <tdevries@suse.de>
6219
6220 PR symtab/25807
6221 * block.c (best_symbol, better_symbol): Promote to external.
6222 * block.h (best_symbol, better_symbol): Declare.
6223 * symtab.c (lookup_symbol_in_objfile_symtabs): Prefer def over
6224 decl.
6225
6226 2020-04-23 Tom Tromey <tromey@adacore.com>
6227
6228 PR ada/25837:
6229 * dwarf2/read.c (dw2_expand_symtabs_matching_symbol): Store a
6230 "const char *", not a "const std::string &".
6231 <name_and_matcher::operator==>: Update.
6232 * unittests/lookup_name_info-selftests.c: Change type of
6233 "result".
6234
6235 2020-04-23 Tom Tromey <tom@tromey.com>
6236
6237 * inferior.h (iterate_over_inferiors): Don't declare.
6238 * inferior.c (iterate_over_inferiors): Remove.
6239 * darwin-nat.c (find_inferior_task_it, find_inferior_pid_it):
6240 Remove.
6241 (darwin_find_inferior_by_task, darwin_find_inferior_by_pid): Don't
6242 use iterate_over_inferiors.
6243 (darwin_resume_inferior_it)
6244 (struct resume_inferior_threads_param)
6245 (darwin_resume_inferior_threads_it): Remove.
6246 (darwin_nat_target::resume): Don't use iterate_over_inferiors.
6247
6248 2020-04-23 Tom de Vries <tdevries@suse.de>
6249
6250 * blockframe.c (find_pc_partial_function): Use
6251 find_pc_sect_compunit_symtab rather than
6252 objfile->sf->qf->find_pc_sect_compunit_symtab.
6253
6254 2020-04-22 Tom de Vries <tdevries@suse.de>
6255
6256 PR symtab/25764
6257 * dwarf2/read.c (scan_partial_symbols): Allow external variable decls
6258 in psymtabs.
6259
6260 2020-04-22 Tom de Vries <tdevries@suse.de>
6261
6262 PR symtab/25801
6263 * psymtab.c (psym_map_symtabs_matching_filename): Don't skip shared
6264 symtabs.
6265
6266 2020-04-22 Tom de Vries <tdevries@suse.de>
6267
6268 PR symtab/25700
6269 * dwarf2/read.c (dwarf2_build_psymtabs_hard): Don't create psymtab for
6270 CU if already created.
6271
6272 2020-04-21 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
6273
6274 * infrun.c (displaced_step_fixup): Switch to the event_thread
6275 before calling displaced_step_restore, not after.
6276
6277 2020-04-21 Markus Metzger <markus.t.metzger@intel.com>
6278
6279 * record-btrace.c (record_btrace_enable_warn): Ignore thread if
6280 its inferior is not recorded by us.
6281 (record_btrace_target_open): Replace call to
6282 all_non_exited_threads () with call to current_inferior
6283 ()->non_exited_threads ().
6284 (record_btrace_target::stop_recording): Likewise.
6285 (record_btrace_target::close): Likewise.
6286 (record_btrace_target::wait): Likewise.
6287 (record_btrace_target::record_stop_replaying): Likewise.
6288
6289 2020-04-21 Markus Metzger <markus.t.metzger@intel.com>
6290
6291 * btrace.c (btrace_enable): Throw an error on double enables and
6292 when enabling recording fails.
6293 (btrace_disable): Throw an error if the thread is not recorded.
6294
6295 2020-04-21 Markus Metzger <markus.t.metzger@intel.com>
6296
6297 * record-btrace.c (record_btrace_target::fetch_registers): Forward
6298 request if we do not have a thread_info.
6299
6300 2020-04-21 Tom de Vries <tdevries@suse.de>
6301
6302 PR gdb/25471
6303 * thread.c
6304 (scoped_restore_current_thread::scoped_restore_current_thread): Catch
6305 exception in get_frame_id.
6306
6307 2020-04-20 Tom Tromey <tromey@adacore.com>
6308
6309 * python/python.c (struct gdbpy_event): Mark move constructor as
6310 noexcept.
6311 * python/py-tui.c (class gdbpy_tui_window_maker): Mark move
6312 constructor as noexcept.
6313 * completer.h (struct completion_result): Mark move constructor as
6314 noexcept.
6315 * completer.c (completion_result::completion_result): Use
6316 initialization style. Don't call reset_match_list.
6317
6318 2020-04-20 Mihails Strasuns <mihails.strasuns@intel.com>
6319
6320 * MAINTAINERS (Write After Approval): Add myself.
6321
6322 2020-04-18 Tom Tromey <tom@tromey.com>
6323
6324 * windows-tdep.c (init_w32_command_list)
6325 (w32_prefix_command_valid): Restore.
6326 (_initialize_windows_tdep): Call init_w32_command_list.
6327
6328 2020-04-18 Tom Tromey <tom@tromey.com>
6329
6330 * xcoffread.c (enter_line_range, scan_xcoff_symtab): Update.
6331 * value.c (value_fn_field): Update.
6332 * valops.c (find_function_in_inferior)
6333 (value_allocate_space_in_inferior): Update.
6334 * tui/tui-winsource.c (tui_update_source_windows_with_line):
6335 Update.
6336 * tui/tui-source.c (tui_source_window::set_contents): Update.
6337 * symtab.c (lookup_global_or_static_symbol)
6338 (find_function_start_sal_1, skip_prologue_sal)
6339 (print_msymbol_info, find_gnu_ifunc, symbol_arch): Update.
6340 * symmisc.c (dump_msymbols, dump_symtab_1)
6341 (maintenance_print_one_line_table): Update.
6342 * symfile.c (init_entry_point_info, section_is_mapped)
6343 (list_overlays_command, simple_read_overlay_table)
6344 (simple_overlay_update_1): Update.
6345 * stap-probe.c (handle_stap_probe): Update.
6346 * stabsread.c (dbx_init_float_type, define_symbol)
6347 (read_one_struct_field, read_enum_type, read_range_type): Update.
6348 * source.c (info_line_command): Update.
6349 * python/python.c (gdbpy_source_objfile_script)
6350 (gdbpy_execute_objfile_script): Update.
6351 * python/py-type.c (save_objfile_types): Update.
6352 * python/py-objfile.c (py_free_objfile): Update.
6353 * python/py-inferior.c (python_new_objfile): Update.
6354 * psymtab.c (psym_find_pc_sect_compunit_symtab, dump_psymtab)
6355 (dump_psymtab_addrmap_1, maintenance_info_psymtabs)
6356 (maintenance_check_psymtabs): Update.
6357 * printcmd.c (info_address_command): Update.
6358 * objfiles.h (struct objfile) <arch>: New method, from
6359 get_objfile_arch.
6360 (get_objfile_arch): Don't declare.
6361 * objfiles.c (get_objfile_arch): Remove.
6362 (filter_overlapping_sections): Update.
6363 * minsyms.c (msymbol_is_function): Update.
6364 * mi/mi-symbol-cmds.c (mi_cmd_symbol_list_lines)
6365 (output_nondebug_symbol): Update.
6366 * mdebugread.c (parse_symbol, basic_type, parse_partial_symbols)
6367 (mdebug_expand_psymtab): Update.
6368 * machoread.c (macho_add_oso_symfile): Update.
6369 * linux-tdep.c (linux_infcall_mmap, linux_infcall_munmap):
6370 Update.
6371 * linux-fork.c (checkpoint_command): Update.
6372 * linespec.c (convert_linespec_to_sals): Update.
6373 * jit.c (finalize_symtab): Update.
6374 * infrun.c (insert_exception_resume_from_probe): Update.
6375 * ia64-tdep.c (ia64_find_unwind_table): Update.
6376 * hppa-tdep.c (internalize_unwinds): Update.
6377 * gdbtypes.c (get_type_arch, init_float_type, objfile_type):
6378 Update.
6379 * gcore.c (call_target_sbrk): Update.
6380 * elfread.c (record_minimal_symbol, elf_symtab_read)
6381 (elf_rel_plt_read, elf_gnu_ifunc_record_cache)
6382 (elf_gnu_ifunc_resolve_by_got): Update.
6383 * dwarf2/read.c (create_addrmap_from_index)
6384 (create_addrmap_from_aranges, dw2_find_pc_sect_compunit_symtab)
6385 (read_debug_names_from_section)
6386 (process_psymtab_comp_unit_reader, add_partial_symbol)
6387 (add_partial_subprogram, process_full_comp_unit)
6388 (read_file_scope, read_func_scope, read_lexical_block_scope)
6389 (read_call_site_scope, dwarf2_ranges_read)
6390 (dwarf2_record_block_ranges, dwarf2_add_field)
6391 (mark_common_block_symbol_computed, read_tag_pointer_type)
6392 (read_tag_string_type, dwarf2_init_float_type)
6393 (dwarf2_init_complex_target_type, read_base_type)
6394 (partial_die_info::read, partial_die_info::read)
6395 (read_attribute_value, dwarf_decode_lines_1, new_symbol)
6396 (dwarf2_fetch_die_loc_sect_off): Update.
6397 * dwarf2/loc.c (dwarf2_find_location_expression)
6398 (class dwarf_evaluate_loc_desc, rw_pieced_value)
6399 (dwarf2_evaluate_loc_desc_full, dwarf2_locexpr_baton_eval)
6400 (dwarf2_loc_desc_get_symbol_read_needs)
6401 (locexpr_describe_location_piece, locexpr_describe_location_1)
6402 (loclist_describe_location): Update.
6403 * dwarf2/index-write.c (write_debug_names): Update.
6404 * dwarf2/frame.c (dwarf2_build_frame_info): Update.
6405 * dtrace-probe.c (dtrace_process_dof): Update.
6406 * dbxread.c (read_dbx_symtab, dbx_end_psymtab)
6407 (process_one_symbol): Update.
6408 * ctfread.c (ctf_init_float_type, read_base_type): Update.
6409 * coffread.c (coff_symtab_read, enter_linenos, decode_base_type)
6410 (coff_read_enum_type): Update.
6411 * cli/cli-cmds.c (edit_command, list_command): Update.
6412 * buildsym.c (buildsym_compunit::finish_block_internal): Update.
6413 * breakpoint.c (create_overlay_event_breakpoint)
6414 (create_longjmp_master_breakpoint)
6415 (create_std_terminate_master_breakpoint)
6416 (create_exception_master_breakpoint, get_sal_arch): Update.
6417 * block.c (block_gdbarch): Update.
6418 * annotate.c (annotate_source_line): Update.
6419
6420 2020-04-17 Tom Tromey <tromey@adacore.com>
6421
6422 * auto-load.c (show_auto_load_cmd): Remove.
6423 (auto_load_show_cmdlist_get): Use add_show_prefix_cmd.
6424 * arc-tdep.c (_initialize_arc_tdep): Use add_show_prefix_cmd.
6425 (maintenance_print_arc_command): Remove.
6426 * tui/tui-win.c (tui_command): Remove.
6427 (tui_get_cmd_list): Use add_basic_prefix_cmd.
6428 * tui/tui-layout.c (tui_layout_command): Remove.
6429 (_initialize_tui_layout): Use add_basic_prefix_cmd.
6430 * python/python.c (user_set_python, user_show_python): Remove.
6431 (_initialize_python): Use add_basic_prefix_cmd,
6432 add_show_prefix_cmd.
6433 * guile/guile.c (set_guile_command, show_guile_command): Remove.
6434 (install_gdb_commands): Use add_basic_prefix_cmd,
6435 add_show_prefix_cmd.
6436 (info_guile_command): Remove.
6437 * dwarf2/read.c (set_dwarf_cmd, show_dwarf_cmd): Remove.
6438 (_initialize_dwarf2_read): Use add_basic_prefix_cmd,
6439 add_show_prefix_cmd.
6440 * cli/cli-style.h (class cli_style_option) <add_setshow_commands>:
6441 Remove do_set and do_show parameters.
6442 * cli/cli-style.c (set_style, show_style): Remove.
6443 (_initialize_cli_style): Use add_basic_prefix_cmd,
6444 add_show_prefix_cmd.
6445 (cli_style_option::add_setshow_commands): Remove do_set and
6446 do_show parameters.
6447 (cli_style_option::add_setshow_commands): Use
6448 add_basic_prefix_cmd, add_show_prefix_cmd.
6449 (STYLE_ADD_SETSHOW_COMMANDS): Remove macro.
6450 (set_style_name): Remove.
6451 * cli/cli-dump.c (dump_command, append_command): Remove.
6452 (srec_dump_command, ihex_dump_command, verilog_dump_command)
6453 (tekhex_dump_command, binary_dump_command)
6454 (binary_append_command): Remove.
6455 (_initialize_cli_dump): Use add_basic_prefix_cmd.
6456 * windows-tdep.c (w32_prefix_command_valid): Remove global.
6457 (init_w32_command_list): Remove; move into ...
6458 (_initialize_windows_tdep): ... here. Use add_basic_prefix_cmd.
6459 * valprint.c (set_print, show_print, set_print_raw)
6460 (show_print_raw): Remove.
6461 (_initialize_valprint): Use add_basic_prefix_cmd,
6462 add_show_prefix_cmd.
6463 * typeprint.c (set_print_type, show_print_type): Remove.
6464 (_initialize_typeprint): Use add_basic_prefix_cmd,
6465 add_show_prefix_cmd.
6466 * record.c (set_record_command, show_record_command): Remove.
6467 (_initialize_record): Use add_basic_prefix_cmd,
6468 add_show_prefix_cmd.
6469 * cli/cli-cmds.c (_initialize_cli_cmds): Use add_basic_prefix_cmd,
6470 add_show_prefix_cmd.
6471 (info_command, show_command, set_debug, show_debug): Remove.
6472 * top.h (set_history, show_history): Don't declare.
6473 * top.c (set_history, show_history): Remove.
6474 * target-descriptions.c (set_tdesc_cmd, show_tdesc_cmd)
6475 (unset_tdesc_cmd): Remove.
6476 (_initialize_target_descriptions): Use add_basic_prefix_cmd,
6477 add_show_prefix_cmd.
6478 * symtab.c (info_module_command): Remove.
6479 (_initialize_symtab): Use add_basic_prefix_cmd.
6480 * symfile.c (overlay_command): Remove.
6481 (_initialize_symfile): Use add_basic_prefix_cmd.
6482 * sparc64-tdep.c (info_adi_command): Remove.
6483 (_initialize_sparc64_adi_tdep): Use add_basic_prefix_cmd.
6484 * sh-tdep.c (show_sh_command, set_sh_command): Remove.
6485 (_initialize_sh_tdep): Use add_basic_prefix_cmd,
6486 add_show_prefix_cmd.
6487 * serial.c (serial_set_cmd, serial_show_cmd): Remove.
6488 (_initialize_serial): Use add_basic_prefix_cmd,
6489 add_show_prefix_cmd.
6490 * ser-tcp.c (set_tcp_cmd, show_tcp_cmd): Remove.
6491 (_initialize_ser_tcp): Use add_basic_prefix_cmd,
6492 add_show_prefix_cmd.
6493 * rs6000-tdep.c (set_powerpc_command, show_powerpc_command)
6494 (_initialize_rs6000_tdep): Use add_basic_prefix_cmd,
6495 add_show_prefix_cmd.
6496 * riscv-tdep.c (show_riscv_command, set_riscv_command)
6497 (show_debug_riscv_command, set_debug_riscv_command): Remove.
6498 (_initialize_riscv_tdep): Use add_basic_prefix_cmd,
6499 add_show_prefix_cmd.
6500 * remote.c (remote_command, set_remote_cmd): Remove.
6501 (_initialize_remote): Use add_basic_prefix_cmd.
6502 * record-full.c (set_record_full_command)
6503 (show_record_full_command): Remove.
6504 (_initialize_record_full): Use add_basic_prefix_cmd,
6505 add_show_prefix_cmd.
6506 * record-btrace.c (cmd_set_record_btrace)
6507 (cmd_show_record_btrace, cmd_set_record_btrace_bts)
6508 (cmd_show_record_btrace_bts, cmd_set_record_btrace_pt)
6509 (cmd_show_record_btrace_pt): Remove.
6510 (_initialize_record_btrace): Use add_basic_prefix_cmd,
6511 add_show_prefix_cmd.
6512 * ravenscar-thread.c (set_ravenscar_command)
6513 (show_ravenscar_command): Remove.
6514 (_initialize_ravenscar): Use add_basic_prefix_cmd,
6515 add_show_prefix_cmd.
6516 * mips-tdep.c (show_mips_command, set_mips_command)
6517 (_initialize_mips_tdep): Use add_basic_prefix_cmd,
6518 add_show_prefix_cmd.
6519 * maint.c (maintenance_command, maintenance_info_command)
6520 (maintenance_check_command, maintenance_print_command)
6521 (maintenance_set_cmd, maintenance_show_cmd): Remove.
6522 (_initialize_maint_cmds): Use add_basic_prefix_cmd,
6523 add_show_prefix_cmd.
6524 (show_per_command_cmd): Remove.
6525 * maint-test-settings.c (maintenance_set_test_settings_cmd):
6526 Remove.
6527 (maintenance_show_test_settings_cmd): Remove.
6528 (_initialize_maint_test_settings): Use add_basic_prefix_cmd,
6529 add_show_prefix_cmd.
6530 * maint-test-options.c (maintenance_test_options_command):
6531 Remove.
6532 (_initialize_maint_test_options): Use add_basic_prefix_cmd.
6533 * macrocmd.c (macro_command): Remove
6534 (_initialize_macrocmd): Use add_basic_prefix_cmd.
6535 * language.c (set_check, show_check): Remove.
6536 (_initialize_language): Use add_basic_prefix_cmd,
6537 add_show_prefix_cmd.
6538 * infcmd.c (unset_command): Remove.
6539 (_initialize_infcmd): Use add_basic_prefix_cmd.
6540 * i386-tdep.c (set_mpx_cmd, show_mpx_cmd): Remove.
6541 (_initialize_i386_tdep): Use add_basic_prefix_cmd,
6542 add_show_prefix_cmd.
6543 * go32-nat.c (go32_info_dos_command): Remove.
6544 (_initialize_go32_nat): Use add_basic_prefix_cmd.
6545 * cli/cli-decode.c (do_prefix_cmd, add_basic_prefix_cmd)
6546 (do_show_prefix_cmd, add_show_prefix_cmd): New functions.
6547 * frame.c (set_backtrace_cmd, show_backtrace_cmd): Remove.
6548 (_initialize_frame): Use add_basic_prefix_cmd,
6549 add_show_prefix_cmd.
6550 * dcache.c (set_dcache_command, show_dcache_command): Remove.
6551 (_initialize_dcache): Use add_basic_prefix_cmd,
6552 add_show_prefix_cmd.
6553 * cp-support.c (maint_cplus_command): Remove.
6554 (_initialize_cp_support): Use add_basic_prefix_cmd.
6555 * btrace.c (maint_btrace_cmd, maint_btrace_set_cmd)
6556 (maint_btrace_show_cmd, maint_btrace_pt_set_cmd)
6557 (maint_btrace_pt_show_cmd, _initialize_btrace): Use
6558 add_basic_prefix_cmd, add_show_prefix_cmd.
6559 * breakpoint.c (save_command): Remove.
6560 (_initialize_breakpoint): Use add_basic_prefix_cmd.
6561 * arm-tdep.c (set_arm_command, show_arm_command): Remove.
6562 (_initialize_arm_tdep): Use add_basic_prefix_cmd,
6563 add_show_prefix_cmd.
6564 * ada-lang.c (maint_set_ada_cmd, maint_show_ada_cmd)
6565 (set_ada_command, show_ada_command): Remove.
6566 (_initialize_ada_language): Use add_basic_prefix_cmd,
6567 add_show_prefix_cmd.
6568 * command.h (add_basic_prefix_cmd, add_show_prefix_cmd): Declare.
6569
6570 2020-04-16 Kamil Rytarowski <n54@gmx.com>
6571
6572 * nbsd-nat.c (inf_ptrace_target::auxv_parse): Remove.
6573 * nbsd-nat.h (inf_ptrace_target::auxv_parse): Likewise.
6574
6575 2020-04-16 Simon Marchi <simon.marchi@polymtl.ca>
6576
6577 * windows-tdep.c (is_linked_with_cygwin_dll): Add filename to
6578 warning messages.
6579
6580 2020-04-16 Simon Marchi <simon.marchi@polymtl.ca>
6581
6582 * windows-tdep.c (is_linked_with_cygwin_dll): Consider case where
6583 import table is not at beginning of .idata section.
6584
6585 2020-04-16 Pedro Alves <palves@redhat.com>
6586
6587 * inferior.c (delete_inferior): Use delete operator directly
6588 instead of delete_program_space.
6589 * progspace.c (add_program_space): New, factored out from
6590 program_space::program_space.
6591 (remove_program_space): New, factored out from
6592 delete_program_space.
6593 (program_space::program_space): Remove intro comment. Rewrite.
6594 (program_space::~program_space): Remove intro comment. Call
6595 remove_program_space.
6596 (delete_program_space): Delete.
6597 * progspace.h (program_space::program_space): Make explicit. Move
6598 intro comment here, adjusted.
6599 (program_space::~program_space): Move intro comment here,
6600 adjusted.
6601 (delete_program_space): Remove.
6602
6603 2020-04-16 Tom Tromey <tromey@adacore.com>
6604
6605 * windows-nat.c (windows_nat::handle_access_violation): New
6606 function.
6607 * nat/windows-nat.h (handle_access_violation): Declare.
6608 * nat/windows-nat.c (handle_exception): Move Cygwin code to
6609 windows-nat.c. Call handle_access_violation.
6610
6611 2020-04-16 Tom de Vries <tdevries@suse.de>
6612
6613 PR symtab/25791
6614 * dwarf2/index-write.c (write_gdbindex): Generate CU table entries for
6615 CUs without psymtab.
6616
6617 2020-04-16 Kevin Buettner <kevinb@redhat.com>
6618
6619 * python/python.c (do_start_initialization): Don't call
6620 PyEval_InitThreads for Python 3.9 and beyond.
6621
6622 2020-04-15 Kamil Rytarowski <n54@gmx.com>
6623
6624 * obsd-nat.c (obsd_nat_target::update_thread_list): Pass "this" to
6625 thread functions.
6626 (obsd_nat_target::wait): Likewise.
6627
6628 2020-04-15 Tom Tromey <tromey@adacore.com>
6629
6630 * windows-nat.c (DEBUG_EXEC, DEBUG_EVENTS, DEBUG_MEM)
6631 (DEBUG_EXCEPT): Use debug_printf.
6632
6633 2020-04-15 Andrew Burgess <andrew.burgess@embecosm.com>
6634
6635 * completer.c (class completion_tracker::completion_hash_entry)
6636 <hash_name>: New member function.
6637 (completion_tracker::discard_completions): New callback to hash a
6638 completion_hash_entry, pass this to htab_create_alloc.
6639
6640 2016-01-20 Jon Turney <jon.turney@dronecode.org.uk>
6641
6642 * windows-nat.c (windows_make_so): Warn rather than stopping with
6643 an error if realpath() fails.
6644
6645 2020-04-14 Kamil Rytarowski <n54@gmx.com>
6646
6647 * nbsd-nat.c (nbsd_pid_to_kinfo_proc2): New.
6648 (nbsd_nat_target::info_proc): Add do_status.
6649
6650 2020-04-14 Simon Marchi <simon.marchi@polymtl.ca>
6651 Tom de Vries <tdevries@suse.de>
6652
6653 PR symtab/25718
6654 * psympriv.h (struct partial_symtab::read_symtab)
6655 (struct partial_symtab::expand_psymtab)
6656 (struct partial_symtab::read_dependencies): Update comments.
6657 * dwarf2/read.c (struct dwarf2_include_psymtab::read_symtab): Call
6658 read_symtab for includer.
6659 (struct dwarf2_include_psymtab::expand_psymtab): Assert false.
6660 (struct dwarf2_include_psymtab::readin_p): Call readin_p () for includer.
6661 (struct dwarf2_include_psymtab::m_readin): Remove.
6662 (struct dwarf2_include_psymtab::includer): New member function.
6663 (dwarf2_psymtab::expand_psymtab): Assert !readin.
6664
6665 2020-04-14 Tom de Vries <tdevries@suse.de>
6666
6667 PR symtab/25720
6668 * symmisc.c (maintenance_expand_symtabs): Call expand_symtabs_matching
6669 with NULL symbol_matcher and lookup_name.
6670 * psymtab.c (psym_expand_symtabs_matching): Handle NULL symbol_matcher
6671 and lookup_name.
6672 * dwarf2/read.c (dw2_expand_symtabs_matching)
6673 (dw2_debug_names_expand_symtabs_matching): Same.
6674 * symfile.h (struct quick_symbol_functions::expand_symtabs_matching):
6675 Make lookup_name a pointer. Update comment.
6676 * symtab.c (global_symbol_searcher::expand_symtabs): Handle
6677 lookup_name being a pointer.
6678 * symfile.c (expand_symtabs_matching): Same.
6679 * symfile-debug.c (debug_qf_expand_symtabs_matching): Same.
6680 * linespec.c (iterate_over_all_matching_symtabs): Same.
6681
6682 2020-04-13 Tom Tromey <tom@tromey.com>
6683
6684 * run-on-main-thread.c: Update include.
6685 * unittests/main-thread-selftests.c: Update include.
6686 * tui/tui-win.c: Update include.
6687 * tui/tui-io.c: Update include.
6688 * tui/tui-interp.c: Update include.
6689 * tui/tui-hooks.c: Update include.
6690 * top.h: Update include.
6691 * top.c: Update include.
6692 * ser-base.c: Update include.
6693 * remote.c: Update include.
6694 * remote-notif.c: Update include.
6695 * remote-fileio.c: Update include.
6696 * record-full.c: Update include.
6697 * record-btrace.c: Update include.
6698 * python/python.c: Update include.
6699 * posix-hdep.c: Update include.
6700 * mingw-hdep.c: Update include.
6701 * mi/mi-main.c: Update include.
6702 * mi/mi-interp.c: Update include.
6703 * main.c: Update include.
6704 * linux-nat.c: Update include.
6705 * interps.c: Update include.
6706 * infrun.c: Update include.
6707 * inf-loop.c: Update include.
6708 * event-top.c: Update include.
6709 * event-loop.c: Move to ../gdbsupport/.
6710 * event-loop.h: Move to ../gdbsupport/.
6711 * async-event.h: Update include.
6712 * Makefile.in (COMMON_SFILES, HFILES_NO_SRCDIR): Update.
6713
6714 2020-04-13 Tom Tromey <tom@tromey.com>
6715
6716 * tui/tui-win.c: Include async-event.h.
6717 * remote.c: Include async-event.h.
6718 * remote-notif.c: Include async-event.h.
6719 * record-full.c: Include async-event.h.
6720 * record-btrace.c: Include async-event.h.
6721 * infrun.c: Include async-event.h.
6722 * event-top.c: Include async-event.h.
6723 * event-loop.h: Move some declarations to async-event.h.
6724 * event-loop.c: Don't include ser-event.h or top.h. Move some
6725 code to async-event.c.
6726 * async-event.h: New file.
6727 * async-event.c: New file.
6728 * Makefile.in (COMMON_SFILES): Add async-event.c.
6729 (HFILES_NO_SRCDIR): Add async-event.h.
6730
6731 2020-04-13 Tom Tromey <tom@tromey.com>
6732
6733 * utils.c (flush_streams): New function.
6734 * event-loop.c (gdb_wait_for_event): Call flush_streams.
6735
6736 2020-04-13 Tom Tromey <tom@tromey.com>
6737
6738 * event-loop.c (handle_file_event): Use warning, not
6739 printf_unfiltered.
6740
6741 2020-04-13 Tom Tromey <tom@tromey.com>
6742
6743 * event-loop.c: Include <chrono>.
6744
6745 2020-04-13 Tom Tromey <tom@tromey.com>
6746
6747 * gdb_select.h: Move to ../gdbsupport/.
6748 * event-loop.c: Update include path.
6749 * top.c: Update include path.
6750 * ser-base.c: Update include path.
6751 * ui-file.c: Update include path.
6752 * ser-tcp.c: Update include path.
6753 * guile/scm-ports.c: Update include path.
6754 * posix-hdep.c: Update include path.
6755 * ser-unix.c: Update include path.
6756 * gdb_usleep.c: Update include path.
6757 * mingw-hdep.c: Update include path.
6758 * inflow.c: Update include path.
6759 * infrun.c: Update include path.
6760 * event-top.c: Update include path.
6761
6762 2020-04-13 Tom Tromey <tom@tromey.com>
6763
6764 * configure: Rebuild.
6765 * configure.ac: Remove checks that are now in GDB_AC_COMMON.
6766
6767 2020-04-13 Tom Tromey <tom@tromey.com>
6768
6769 * event-loop.h (start_event_loop): Don't declare.
6770 * event-loop.c (start_event_loop): Move...
6771 * main.c (start_event_loop): ...here. Now static.
6772
6773 2020-04-13 Sergio Durigan Junior <sergiodj@sergiodj.net>
6774
6775 * MAINTAINERS: Update my email address.
6776
6777 2020-04-12 Kamil Rytarowski <n54@gmx.com>
6778
6779 * nbsd-nat.c (nbsd_nat_target::info_proc): Add IP_MINIMAL and
6780 IP_ALL.
6781
6782 2020-04-12 Kamil Rytarowski <n54@gmx.com>
6783
6784 * nbsd-nat.c (nbsd_pid_to_cmdline): Add.
6785 (nbsd_nat_target::info_proc): Add do_cmdline.
6786
6787 2020-04-12 Kamil Rytarowski <n54@gmx.com>
6788
6789 * nbsd-nat.c (nbsd_pid_to_cwd): Add.
6790 (nbsd_nat_target::info_proc): Add do_cwd.
6791
6792 2020-04-12 Kamil Rytarowski <n54@gmx.com>
6793
6794 * nbsd-nat.c (nbsd_nat_target::info_proc): Add do_exe.
6795
6796 2020-04-11 Kamil Rytarowski <n54@gmx.com>
6797
6798 * nbsd-nat.c; Include "nbsd-tdep.h" and "gdbarch.h".
6799 * nbsd-nat.c (nbsd_nat_target::find_memory_regions)
6800 (nbsd_nat_target::info_proc): New functions.
6801 * nbsd-nat.c (kinfo_get_vmmap): New function.
6802 * nbsd-nat.c (nbsd_nat_target::info_proc) Use
6803 nbsd_info_proc_mappings_header and nbsd_info_proc_mappings_entry.
6804 * nbsd-tdep.c (nbsd_info_proc_mappings_header)
6805 (nbsd_info_proc_mappings_entry, nbsd_vm_map_entry_flags): New
6806 functions.
6807 * nbsd-tdep.c (KINFO_VME_PROT_READ, KINFO_VME_PROT_WRITE)
6808 (KINFO_VME_PROT_EXEC, KINFO_VME_FLAG_COW)
6809 (KINFO_VME_FLAG_NEEDS_COPY, KINFO_VME_FLAG_NOCOREDUMP)
6810 (KINFO_VME_FLAG_PAGEABLE, KINFO_VME_FLAG_GROWS_UP)
6811 (KINFO_VME_FLAG_GROWS_DOWN): New.
6812
6813 2020-04-10 Artur Shepilko <nomadbyte@gmail.com>
6814
6815 * utils.c (copy_bitwise): Use unsigned 0 constant as operand of
6816 bit shift.
6817
6818 2020-04-10 Tom Tromey <tromey@adacore.com>
6819
6820 * symfile.c (symbol_file_add_separate): Preserve OBJF_MAINLINE.
6821
6822 2020-04-10 Tom Tromey <tromey@adacore.com>
6823
6824 * symtab.c (get_symbol_address, get_msymbol_address): Skip
6825 separate debug files.
6826
6827 2020-04-10 Hannes Domani <ssbssa@yahoo.de>
6828
6829 * nat/windows-nat.c (STATUS_WX86_BREAKPOINT, STATUS_WX86_SINGLE_STEP):
6830 Move to...
6831 * nat/windows-nat.h (STATUS_WX86_BREAKPOINT, STATUS_WX86_SINGLE_STEP):
6832 ... here.
6833 * windows-nat.c (windows_nat_target::get_windows_debug_event):
6834 Check for STATUS_WX86_BREAKPOINT.
6835 (windows_nat_target::wait): Same.
6836
6837 2020-04-10 Tom de Vries <tdevries@suse.de>
6838
6839 PR cli/25808
6840 * python/lib/gdb/__init__.py: Initialize lexer with stripnl=False.
6841
6842 2020-04-09 Simon Marchi <simon.marchi@polymtl.ca>
6843
6844 * MAINTAINERS (Global Maintainers): Add Tom de Vries.
6845 (Write After Approval): Remove Tom de Vries.
6846
6847 2020-04-09 Bernd Edlinger <bernd.edlinger@hotmail.de>
6848
6849 revert partially:
6850 2020-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
6851
6852 * buildsym.c (record_line): Fix undefined behavior and preserve
6853 lines at eof.
6854
6855 2020-04-09 Kamil Rytarowski <n54@gmx.com>
6856
6857 * auxv.h (svr4_auxv_parse): New.
6858 * auxv.c (default_auxv_parse): Split into default_auxv_parse
6859 and generic_auxv_parse.
6860 (svr4_auxv_parse): Add.
6861 * obsd-tdep.c: Include "auxv.h".
6862 (obsd_auxv_parse): Remove.
6863 (obsd_init_abi): Remove comment.
6864 (obsd_init_abi): Change set_gdbarch_auxv_parse passed argument
6865 from `obsd_auxv_parse' to `svr4_auxv_parse'.
6866 * nbsd-tdep.c: Include "auxv.h".
6867 (nbsd_init_abi): Call set_gdbarch_auxv_parse.
6868
6869 2020-04-08 Tom Tromey <tromey@adacore.com>
6870
6871 * nat/windows-nat.h (last_wait_event): Don't declare.
6872 (wait_for_debug_event): Update comment.
6873 * nat/windows-nat.c (last_wait_event): Now static.
6874
6875 2020-04-08 Tom Tromey <tromey@adacore.com>
6876
6877 * windows-nat.c (wait_for_debug_event): Move to
6878 nat/windows-nat.c.
6879 * nat/windows-nat.h (wait_for_debug_event): Declare.
6880 * nat/windows-nat.c (wait_for_debug_event): Move from
6881 windows-nat.c. No longer static.
6882
6883 2020-04-08 Tom Tromey <tromey@adacore.com>
6884
6885 * windows-nat.c (get_windows_debug_event): Use
6886 fetch_pending_stop.
6887 * nat/windows-nat.h (fetch_pending_stop): Declare.
6888 * nat/windows-nat.c (fetch_pending_stop): New function.
6889
6890 2020-04-08 Tom Tromey <tromey@adacore.com>
6891
6892 * windows-nat.c (windows_continue): Use matching_pending_stop and
6893 continue_last_debug_event.
6894 * nat/windows-nat.h (matching_pending_stop)
6895 (continue_last_debug_event): Declare.
6896 * nat/windows-nat.c (DEBUG_EVENTS): New define.
6897 (matching_pending_stop, continue_last_debug_event): New
6898 functions.
6899
6900 2020-04-08 Tom Tromey <tromey@adacore.com>
6901
6902 * windows-nat.c (MS_VC_EXCEPTION): Move to nat/windows-nat.c.
6903 (handle_exception_result): Move to nat/windows-nat.h.
6904 (DEBUG_EXCEPTION_SIMPLE): Remove.
6905 (windows_nat::handle_ms_vc_exception): New function.
6906 (handle_exception): Move to nat/windows-nat.c.
6907 (get_windows_debug_event): Update.
6908 (STATUS_WX86_BREAKPOINT, STATUS_WX86_SINGLE_STEP): Move to
6909 nat/windows-nat.c.
6910 * nat/windows-nat.h (handle_ms_vc_exception): Declare.
6911 (handle_exception_result): Move from windows-nat.c.
6912 (handle_exception): Declare.
6913 * nat/windows-nat.c (MS_VC_EXCEPTION, handle_exception)
6914 (STATUS_WX86_SINGLE_STEP, STATUS_WX86_BREAKPOINT): Move from
6915 windows-nat.c.
6916
6917 2020-04-08 Tom Tromey <tromey@adacore.com>
6918
6919 * windows-nat.c (exception_count, event_count): Remove.
6920 (handle_exception, get_windows_debug_event)
6921 (do_initial_windows_stuff): Update.
6922
6923 2020-04-08 Tom Tromey <tromey@adacore.com>
6924
6925 * windows-nat.c (windows_nat::handle_load_dll)
6926 (windows_nat::handle_unload_dll): Rename. No longer static.
6927 * nat/windows-nat.h (handle_load_dll, handle_unload_dll):
6928 Declare.
6929
6930 2020-04-08 Tom Tromey <tromey@adacore.com>
6931
6932 * complaints.h (stop_whining): Declare at top-level.
6933 (complaint): Don't declare stop_whining.
6934
6935 2020-04-08 Tom Tromey <tromey@adacore.com>
6936
6937 * windows-nat.c (windows_nat::handle_output_debug_string):
6938 Rename. No longer static.
6939 * nat/windows-nat.h (handle_output_debug_string): Declare.
6940
6941 2020-04-08 Tom Tromey <tromey@adacore.com>
6942
6943 * windows-nat.c (current_process_handle, current_process_id)
6944 (main_thread_id, last_sig, current_event, last_wait_event)
6945 (current_windows_thread, desired_stop_thread_id, pending_stops)
6946 (struct pending_stop, siginfo_er): Move to nat/windows-nat.c.
6947 (display_selectors, fake_create_process)
6948 (get_windows_debug_event): Update.
6949 * nat/windows-nat.h (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 from windows-nat.c.
6953 * nat/windows-nat.c (current_process_handle, current_process_id)
6954 (main_thread_id, last_sig, current_event, last_wait_event)
6955 (current_windows_thread, desired_stop_thread_id, pending_stops)
6956 (siginfo_er): New globals. Move from windows-nat.c.
6957
6958 2020-04-08 Tom Tromey <tromey@adacore.com>
6959
6960 * windows-nat.c (get_image_name): Move to nat/windows-nat.c.
6961 (handle_load_dll): Update.
6962 * nat/windows-nat.c (get_image_name): Move from windows-nat.c.
6963
6964 2020-04-08 Tom Tromey <tromey@adacore.com>
6965
6966 * windows-nat.c (enum thread_disposition_type): Move to
6967 nat/windows-nat.h.
6968 (windows_nat::thread_rec): Rename from thread_rec. No longer
6969 static.
6970 (windows_add_thread, windows_nat_target::fetch_registers)
6971 (windows_nat_target::store_registers, handle_exception)
6972 (windows_nat_target::resume, get_windows_debug_event)
6973 (windows_nat_target::get_tib_address)
6974 (windows_nat_target::thread_name)
6975 (windows_nat_target::thread_alive): Update.
6976 * nat/windows-nat.h (enum thread_disposition_type): Move from
6977 windows-nat.c.
6978 (thread_rec): Declare.
6979
6980 2020-04-08 Tom Tromey <tromey@adacore.com>
6981
6982 * windows-nat.c: Add "using namespace".
6983 * nat/windows-nat.h: Wrap contents in windows_nat namespace.
6984 * nat/windows-nat.c: Wrap contents in windows_nat namespace.
6985
6986 2020-04-08 Tom Tromey <tromey@adacore.com>
6987
6988 * nat/windows-nat.h (struct windows_thread_info): Declare
6989 destructor.
6990 * nat/windows-nat.c (~windows_thread_info): New.
6991
6992 2020-04-08 Tom Tromey <tromey@adacore.com>
6993
6994 PR gdb/22992
6995 * windows-nat.c (current_event): Update comment.
6996 (last_wait_event, desired_stop_thread_id): New globals.
6997 (struct pending_stop): New.
6998 (pending_stops): New global.
6999 (windows_nat_target) <stopped_by_sw_breakpoint>
7000 <supports_stopped_by_sw_breakpoint>: New methods.
7001 (windows_fetch_one_register): Add assertions. Adjust PC.
7002 (windows_continue): Handle pending stops. Suspend other threads
7003 when stepping. Use last_wait_event
7004 (wait_for_debug_event): New function.
7005 (get_windows_debug_event): Use wait_for_debug_event. Handle
7006 pending stops. Queue spurious stops.
7007 (windows_nat_target::wait): Set stopped_at_software_breakpoint.
7008 (windows_nat_target::kill): Use wait_for_debug_event.
7009 * nat/windows-nat.h (struct windows_thread_info)
7010 <stopped_at_software_breakpoint>: New field.
7011 * nat/windows-nat.c (windows_thread_info::resume): Clear
7012 stopped_at_software_breakpoint.
7013
7014 2020-04-08 Tom Tromey <tromey@adacore.com>
7015
7016 * windows-nat.c (enum thread_disposition_type): New.
7017 (thread_rec): Replace "get_context" parameter with "disposition";
7018 change type.
7019 (windows_add_thread, windows_nat_target::fetch_registers)
7020 (windows_nat_target::store_registers, handle_exception)
7021 (windows_nat_target::resume, get_windows_debug_event)
7022 (windows_nat_target::get_tib_address)
7023 (windows_nat_target::thread_name)
7024 (windows_nat_target::thread_alive): Update.
7025
7026 2020-04-08 Tom Tromey <tromey@adacore.com>
7027
7028 * windows-nat.c (thread_rec): Use windows_thread_info::suspend.
7029 (windows_continue): Use windows_continue::resume.
7030 * nat/windows-nat.h (struct windows_thread_info) <suspend,
7031 resume>: Declare new methods.
7032 * nat/windows-nat.c: New file.
7033 * configure.nat (NATDEPFILES): Add nat/windows-nat.o when needed.
7034
7035 2020-04-08 Tom Tromey <tromey@adacore.com>
7036
7037 * windows-nat.c (windows_add_thread, windows_delete_thread)
7038 (windows_nat_target::fetch_registers)
7039 (windows_nat_target::store_registers, fake_create_process)
7040 (windows_nat_target::resume, windows_nat_target::resume)
7041 (get_windows_debug_event, windows_nat_target::wait)
7042 (windows_nat_target::pid_to_str)
7043 (windows_nat_target::get_tib_address)
7044 (windows_nat_target::get_ada_task_ptid)
7045 (windows_nat_target::thread_name)
7046 (windows_nat_target::thread_alive): Use lwp, not tid.
7047
7048 2020-04-08 Tom Tromey <tromey@adacore.com>
7049
7050 * windows-nat.c (handle_exception)
7051 (windows_nat_target::thread_name): Update.
7052 * nat/windows-nat.h (windows_thread_info): Remove destructor.
7053 <name>: Now unique_xmalloc_ptr.
7054
7055 2020-04-08 Tom Tromey <tromey@adacore.com>
7056
7057 * windows-nat.c (thread_rec)
7058 (windows_nat_target::fetch_registers): Update.
7059 * nat/windows-nat.h (struct windows_thread_info) <suspended>:
7060 Update comment.
7061 <debug_registers_changed, reload_context>: Now bool.
7062
7063 2020-04-08 Tom Tromey <tromey@adacore.com>
7064
7065 * windows-nat.c (windows_add_thread): Use new.
7066 (windows_init_thread_list, windows_delete_thread): Use delete.
7067 (get_windows_debug_event): Update.
7068 * nat/windows-nat.h (struct windows_thread_info): Add constructor,
7069 destructor, and initializers.
7070
7071 2020-04-08 Tom Tromey <tromey@adacore.com>
7072
7073 * windows-nat.c (struct windows_thread_info): Remove.
7074 * nat/windows-nat.h: New file.
7075
7076 2020-04-08 Tom Tromey <tromey@adacore.com>
7077
7078 * windows-nat.c (struct windows_thread_info) <tid>: Rename from "id".
7079 (thread_rec, windows_add_thread, windows_delete_thread)
7080 (windows_continue): Update.
7081
7082 2020-04-08 Tom Tromey <tromey@adacore.com>
7083
7084 * windows-nat.c (struct windows_thread_info): Remove typedef.
7085 (thread_head): Remove.
7086 (thread_list): New global.
7087 (thread_rec, windows_add_thread, windows_init_thread_list)
7088 (windows_delete_thread, windows_continue): Update.
7089
7090 2020-04-08 Simon Marchi <simon.marchi@polymtl.ca>
7091
7092 * windows-tdep.h (windows_init_abi): Add comment.
7093 (cygwin_init_abi): New declaration.
7094 * windows-tdep.c: Split signal enumeration in two, one for
7095 Windows and one for Cygwin.
7096 (windows_gdb_signal_to_target): Only deal with signal of the
7097 Windows OS ABI.
7098 (cygwin_gdb_signal_to_target): New function.
7099 (windows_init_abi): Rename to windows_init_abi_common, don't set
7100 gdb_signal_to_target gdbarch method. Add new new function with
7101 this name.
7102 (cygwin_init_abi): New function.
7103 * amd64-windows-tdep.c (amd64_windows_init_abi_common): Add
7104 comment. Don't call windows_init_abi.
7105 (amd64_windows_init_abi): Add comment, call windows_init_abi.
7106 (amd64_cygwin_init_abi): Add comment, call cygwin_init_abi.
7107 * i386-windows-tdep.c (i386_windows_init_abi): Rename to
7108 i386_windows_init_abi_common, don't call windows_init_abi. Add
7109 a new function of this name.
7110 (i386_cygwin_init_abi): New function.
7111 (_initialize_i386_windows_tdep): Bind i386_cygwin_init_abi to
7112 OS ABI Cygwin.
7113
7114 2020-04-08 Simon Marchi <simon.marchi@polymtl.ca>
7115
7116 * dwarf2/read.c (read_gdb_index_from_buffer): Remove objfile
7117 parameter.c.
7118 (dwarf2_read_gdb_index): Update.
7119
7120 2020-04-07 Kamil Rytarowski <n54@gmx.com>
7121
7122 * nbsd-tdep.c: Include "objfiles.h".
7123 (nbsd_skip_solib_resolver): New.
7124 (nbsd_init_abi): Call set_gdbarch_skip_solib_resolver().
7125
7126 2020-04-07 Nitika Achra <Nitika.Achra@amd.com>
7127
7128 * dwarf2/loc.c (loclist_describe_location): Call the function decode_debug_loclists_
7129 addresses if DWARF version is 5 or more because DW_LLE_start* or DW_LLE_offset_pair
7130 with DW_LLE_base_addressx are being emitted in DWARFv5.
7131 Add the newly added kind DW_LOC_OFFSET_PAIR also.
7132 The length of location description is an unsigned ULEB integer in DWARFv5 instead of
7133 unsigned integer.
7134
7135 2020-04-07 Nitika Achra <Nitika.Achra@amd.com>
7136
7137 * dwarf2/loc.c (enum debug_loc_kind): Add a new kind DEBUG_LOC_OFFSET_PAIR.
7138 (dwarf2_find_location_expression): Call the function decode_debug_loclists_
7139 addresses if DWARF version is 5 or more. DW_LLE_start* or DW_LLE_offset_pair
7140 with DW_LLE_base_addressx are being emitted in DWARFv5 instead of DW_LLE_GNU*.
7141 Add applicable base address if the entry is DW_LLE_offset_pair from DWO.
7142 (decode_debug_loclists_addresses): Return DEBUG_LOC_OFFSET_PAIR instead of
7143 DEBUG_LOC_START_END in case of DW_LLE_offset_pair.
7144
7145
7146 2020-04-07 Nitika Achra <Nitika.Achra@amd.com>
7147
7148 * dwarf2/read.c (cu_debug_loc_section): Added the declaration for the function.
7149 (read_loclist_index): New function definition.
7150 (lookup_loclist_base): New function definition.
7151 (read_loclist_header): New function definition.
7152 (dwarf2_cu): Add loclist_base and loclist_header field.
7153 (dwarf2_locate_dwo_sections): Handle .debug_loclists.dwo section.
7154 (read_full_die_1): Read the value of DW_AT_loclists_base.
7155 (read_attribute_reprocess): Handle DW_FORM_loclistx.
7156 (read_attribute_value): Handle DW_FORM_loclistx.
7157 (skip_one_die): Handle DW_FORM_loclistx.
7158 (loclist_header): New structure declaration.
7159 * dwarf2/attribute.c (form_is_section_offset): Handle DW_FORM_loclistx.
7160
7161 2020-04-07 Simon Marchi <simon.marchi@polymtl.ca>
7162
7163 * dwarf2/read.h (struct dwarf2_psymtab): Remove two-parameters
7164 constructor. Remove `addr` parameter from other constructor and
7165 add `per_cu` parameter.
7166 * dwarf2/read.c (create_partial_symtab): Update.
7167
7168 2020-04-07 Tom de Vries <tdevries@suse.de>
7169
7170 PR symtab/25796
7171 * dwarf2/read.c (can_have_DW_AT_const_value_p): New function.
7172 (partial_die_info::fixup): Inherit has_const_value.
7173
7174 2020-04-07 Tom de Vries <tdevries@suse.de>
7175
7176 * psymtab.c (maintenance_check_psymtabs): Skip static LOC_BLOCK
7177 symbols without address.
7178
7179 2020-04-06 Kamil Rytarowski <n54@gmx.com>
7180
7181 * nbsd-nat.h (struct thread_info): Add forward declaration.
7182 (nbsd_nat_target::thread_alive): Add.
7183 (nbsd_nat_target::thread_name): Likewise.
7184 (nbsd_nat_target::update_thread_list): Likewise.
7185 (update_thread_list::post_attach): Likewise.
7186 (post_attach::pid_to_str): Likewise.
7187 * nbsd-nat.c: Include "gdbthread.h" and "inferior.h".
7188 (nbsd_thread_lister): Add.
7189 (nbsd_nat_target::thread_alive): Likewise.
7190 (nbsd_nat_target::thread_name): Likewise.
7191 (nbsd_add_threads): Likewise.
7192 (update_thread_list::post_attach): Likewise.
7193 (nbsd_nat_target::update_thread_list): Likewise.
7194 (post_attach::pid_to_str): Likewise.
7195
7196 2020-04-06 Tom Tromey <tromey@adacore.com>
7197
7198 * ada-valprint.c (print_variant_part): Extract the variant field.
7199 (print_field_values): Use the field as the outer value when
7200 recursing.
7201
7202 2020-04-06 Tom Tromey <tromey@adacore.com>
7203
7204 * sh-nbsd-tdep.c: Include nbsd-tdep.h.
7205 * ppc-nbsd-tdep.c: Include nbsd-tdep.h.
7206 * mips-nbsd-tdep.c (mipsnbsd_init_abi): Add missing ";".
7207 * arm-nbsd-tdep.c: Include nbsd-tdep.h.
7208 * hppa-nbsd-tdep.c: Include nbsd-tdep.h.
7209
7210 2020-04-06 Tom Tromey <tromey@adacore.com>
7211
7212 * dwarf2/read.c (read_base_type) <DW_ATE_complex_float>: Handle
7213 TYPE_CODE_ERROR.
7214
7215 2020-04-06 Kamil Rytarowski <n54@gmx.com>
7216
7217 * nbsd-tdep.c: Include "gdbarch.h".
7218 Define enum with NetBSD signal numbers.
7219 (nbsd_gdb_signal_from_target, nbsd_gdb_signal_to_target): New.
7220 * alpha-nbsd-tdep.c (alphanbsd_init_abi): Call nbsd_init_abi().
7221 * amd64-nbsd-tdep.c (amd64nbsd_init_abi): Likewise.
7222 * arm-nbsd-tdep.c (arm_netbsd_elf_init_abi): Likewise.
7223 * hppa-nbsd-tdep.c (hppanbsd_init_abi): Likewise.
7224 * i386-nbsd-tdep.c (i386nbsd_init_abi): Likewise.
7225 * mips-nbsd-tdep.c (nbsd_init_abi): Likewise.
7226 * ppc-nbsd-tdep.c (ppcnbsd_init_abi): Likewise.
7227 * sh-nbsd-tdep.c (shnbsd_init_abi): Likewise.
7228 * sparc-nbsd-tdep.c (sparc32nbsd_init_abi): Likewise.
7229 * sparc64-nbsd-tdep.c (sparc64nbsd_init_abi): Likewise.
7230 * vax-nbsd-tdep.c (vaxnbsd_elf_init_abi): Likewise.
7231
7232 2020-04-03 Hannes Domani <ssbssa@yahoo.de>
7233
7234 PR gdb/25325
7235 * dwarf2/read.c (read_enumeration_type): Fix typed enum attributes.
7236
7237 2020-04-03 Tom Tromey <tromey@adacore.com>
7238
7239 * dwarf2/loc.c (disassemble_dwarf_expression) <DW_OP_const_type>:
7240 Read constant block.
7241
7242 2020-04-02 Simon Marchi <simon.marchi@polymtl.ca>
7243
7244 * gdb_bfd.h: Include gdbsupport/byte-vector.h.
7245 (gdb_bfd_get_full_section_contents): New declaration.
7246 * gdb_bfd.c (gdb_bfd_get_full_section_contents): New function.
7247 * windows-tdep.c (is_linked_with_cygwin_dll): Use
7248 gdb_bfd_get_full_section_contents.
7249
7250 2020-04-02 Simon Marchi <simon.marchi@polymtl.ca>
7251
7252 * exec.c (build_section_table): Replace internal_error with
7253 gdb_assert.
7254 (section_table_xfer_memory_partial): Likewise.
7255 * mdebugread.c (parse_partial_symbols): Likewise.
7256 * psymtab.c (lookup_partial_symbol): Likewise.
7257 * utils.c (wrap_here): Likewise.
7258
7259 2020-04-02 Tom Tromey <tromey@adacore.com>
7260
7261 * f-lang.c (build_fortran_types): Use arch_type to initialize
7262 builtin_complex_s32 in the TYPE_CODE_ERROR case.
7263
7264 2020-04-02 Tom Tromey <tromey@adacore.com>
7265
7266 * dwarf2/read.c (partial_die_info::read): Do not create a vector
7267 of attributes.
7268
7269 2020-04-02 Andrew Burgess <andrew.burgess@embecosm.com>
7270 Bernd Edlinger <bernd.edlinger@hotmail.de>
7271 Tom Tromey <tromey@adacore.com>
7272
7273 * buildsym.c (buildsym_compunit::record_line): Remove
7274 deduplication code.
7275
7276 2020-04-02 Tom de Vries <tdevries@suse.de>
7277
7278 PR ada/24671
7279 * dwarf2/read.c (dw2_map_matching_symbols): Handle -readnow.
7280
7281 2020-04-02 Tom de Vries <tdevries@suse.de>
7282
7283 * dwarf2/read.c (dwarf2_gdb_index_functions,
7284 dwarf2_debug_names_functions): Init lookup_global_symbol_language with
7285 NULL.
7286 * psymtab.c (psym_lookup_global_symbol_language): New function.
7287 (psym_functions): Init psym_lookup_global_symbol_language with
7288 psym_lookup_global_symbol_language.
7289 * symfile-debug.c (debug_sym_quick_functions): Init
7290 lookup_global_symbol_language with NULL.
7291 * symfile.c (set_initial_language): Remove fixme comment.
7292 * symfile.h (struct quick_symbol_functions): Add
7293 lookup_global_symbol_language.
7294 * symtab.c (find_quick_global_symbol_language): New function.
7295 (find_main_name): Use find_quick_global_symbol_language.
7296
7297 2020-04-01 Simon Marchi <simon.marchi@polymtl.ca>
7298
7299 * windows-tdep.c (is_linked_with_cygwin_dll): Fix style.
7300
7301 2020-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
7302
7303 * buildsym.c (record_line): Fix undefined behavior and preserve
7304 lines at eof.
7305
7306 2020-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
7307
7308 * buildsym.c (record_line): Fix the resizing condition.
7309
7310 2020-04-01 Tom Tromey <tom@tromey.com>
7311
7312 * value.h (value_literal_complex): Add comment.
7313 * valops.c (value_literal_complex): Refer to value.h.
7314
7315 2020-04-01 Tom Tromey <tom@tromey.com>
7316
7317 * c-exp.y (FLOAT_KEYWORD, COMPLEX): New tokens.
7318 (scalar_type): New rule, from typebase.
7319 (typebase): Use scalar_type. Recognize complex types.
7320 (field_name): Handle FLOAT_KEYWORD.
7321 (ident_tokens): Add _Complex and __complex__.
7322
7323 2020-04-01 Tom Tromey <tom@tromey.com>
7324
7325 PR exp/25299:
7326 * valarith.c (promotion_type, complex_binop): New functions.
7327 (scalar_binop): Handle complex numbers. Use promotion_type.
7328 (value_pos, value_neg, value_complement): Handle complex numbers.
7329
7330 2020-04-01 Tom Tromey <tom@tromey.com>
7331
7332 * c-exp.y (COMPLEX_INT, COMPLEX_FLOAT): New tokens.
7333 (exp) <COMPLEX_INT, COMPLEX_FLOAT>: New rules.
7334 (parse_number): Handle complex numbers.
7335
7336 2020-04-01 Tom Tromey <tom@tromey.com>
7337
7338 * c-valprint.c (c_decorations): Change complex suffix to "i".
7339
7340 2020-04-01 Tom Tromey <tom@tromey.com>
7341
7342 * valprint.c (generic_value_print_complex): Use accessors.
7343 * value.h (value_real_part, value_imaginary_part): Declare.
7344 * valops.c (value_real_part, value_imaginary_part): New
7345 functions.
7346 * value.c (creal_internal_fn, cimag_internal_fn): Use accessors.
7347
7348 2020-04-01 Tom Tromey <tom@tromey.com>
7349
7350 * stabsread.c (rs6000_builtin_type, read_sun_floating_type)
7351 (read_range_type): Update.
7352 * mdebugread.c (basic_type): Update.
7353 * go-lang.c (build_go_types): Use init_complex_type.
7354 * gdbtypes.h (struct main_type) <complex_type>: New member.
7355 (init_complex_type): Update.
7356 (arch_complex_type): Don't declare.
7357 * gdbtypes.c (init_complex_type): Remove "objfile" parameter.
7358 Make name if none given. Use alloc_type_copy. Look for cached
7359 complex type.
7360 (arch_complex_type): Remove.
7361 (gdbtypes_post_init): Use init_complex_type.
7362 * f-lang.c (build_fortran_types): Use init_complex_type.
7363 * dwarf2/read.c (read_base_type): Update.
7364 * d-lang.c (build_d_types): Use init_complex_type.
7365 * ctfread.c (read_base_type): Update.
7366
7367 2020-04-01 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
7368
7369 * infrun.c (stop_all_threads): Update assertion, plus when
7370 stopping threads, take into account that we might be trying
7371 to stop an all-stop target.
7372 (stop_waiting): Call 'stop_all_threads' if there exists a
7373 non-stop target.
7374
7375 2020-04-01 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
7376
7377 * target.h (exists_non_stop_target): New function declaration.
7378 * target.c (exists_non_stop_target): New function.
7379
7380 2020-04-01 Hannes Domani <ssbssa@yahoo.de>
7381
7382 PR gdb/24789
7383 * eval.c (is_integral_or_integral_reference): New function.
7384 (evaluate_subexp_standard): Allow integer references in
7385 pointer arithmetic.
7386
7387 2020-04-01 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
7388
7389 * remote.c (remote_target::remote_parse_stop_reply): Remove the
7390 check for no ptid in the stop reply when the target is non-stop.
7391
7392 2020-04-01 Tom Tromey <tromey@adacore.com>
7393
7394 * symtab.h (class lookup_name_info) <lookup_name_info>: Change
7395 "name" parameter to rvalue reference. Initialize m_name_holder.
7396 <lookup_name_info>: New overloads.
7397 <name>: Return gdb::string_view.
7398 <c_str>: New method.
7399 <make_ignore_params>: Update.
7400 <search_name_hash>: Update.
7401 <language_lookup_name>: Return const char *.
7402 <m_name>: Change type.
7403 * symtab.c (demangle_for_lookup_info::demangle_for_lookup_info)
7404 (demangle_for_lookup_info::demangle_for_lookup_info): Update.
7405 (lookup_name_info::match_any): Update.
7406 * psymtab.c (match_partial_symbol, lookup_partial_symbol):
7407 Update.
7408 * minsyms.c (linkage_name_str): Update.
7409 * language.c (default_symbol_name_matcher): Update.
7410 * dwarf2/read.c (mapped_index_base::find_name_components_bounds):
7411 Update.
7412 * ada-lang.c (ada_fold_name): Change parameter to string_view.
7413 (ada_lookup_name_info::ada_lookup_name_info): Update.
7414 (literal_symbol_name_matcher): Update.
7415
7416 2020-04-01 Tom Tromey <tromey@adacore.com>
7417
7418 * psymtab.c (psymtab_search_name): Remove function.
7419 (psym_lookup_symbol): Create search name and lookup name here.
7420 (lookup_partial_symbol): Remove "name" parameter; add
7421 lookup_name.
7422 (psym_expand_symtabs_for_function): Update.
7423
7424 2020-03-31 Joel Jones <joelkevinjones@gmail.com>
7425
7426 PR tui/25597:
7427 * python/py-tui.c: Include gdb_curses.h inside of #ifdef TUI.
7428
7429 2020-03-31 Tom Tromey <tromey@adacore.com>
7430
7431 * dwarf2/abbrev.c (abbrev_table::read): Conditionally call
7432 memcpy.
7433
7434 2020-03-30 Nelson Chu <nelson.chu@sifive.com>
7435
7436 * features/riscv/32bit-csr.xml: Regenerated.
7437 * features/riscv/64bit-csr.xml: Regenerated.
7438
7439 2020-03-30 Tom Tromey <tromey@adacore.com>
7440
7441 * ada-valprint.c (print_variant_part): Update.
7442 * ada-lang.h (ada_which_variant_applies): Update.
7443 * ada-lang.c (ada_which_variant_applies): Remove outer_type and
7444 outer_valaddr parameters; replace with "outer" value parameter.
7445 (to_fixed_variant_branch_type): Update.
7446
7447 2020-03-30 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
7448
7449 * ppc-linux-nat.c: Include <algorithm>, <unordered_map>, and
7450 <list>. Remove inclusion of observable.h.
7451 (PPC_DEBUG_CURRENT_VERSION): Move up define.
7452 (struct arch_lwp_info): New struct.
7453 (class ppc_linux_dreg_interface): New class.
7454 (struct ppc_linux_process_info): New struct.
7455 (struct ppc_linux_nat_target) <low_delete_thread, low_new_fork>
7456 <low_new_clone, low_forget_process, low_prepare_to_resume>
7457 <copy_thread_dreg_state, mark_thread_stale>
7458 <mark_debug_registers_changed, register_hw_breakpoint>
7459 <clear_hw_breakpoint, register_wp, clear_wp>
7460 <can_use_watchpoint_cond_accel, calculate_dvc, check_condition>
7461 <num_memory_accesses, get_trigger_type>
7462 <create_watchpoint_request, hwdebug_point_cmp>
7463 <init_arch_lwp_info, get_arch_lwp_info>
7464 <low_stopped_by_watchpoint, low_stopped_data_address>: Declare as
7465 methods.
7466 <struct ptid_hash>: New inner struct.
7467 <m_dreg_interface, m_process_info, m_installed_hw_bps>: Declare
7468 members.
7469 (saved_dabr_value, hwdebug_info, max_slots_number)
7470 (struct hw_break_tuple, struct thread_points, ppc_threads)
7471 (have_ptrace_hwdebug_interface)
7472 (hwdebug_find_thread_points_by_tid)
7473 (hwdebug_insert_point, hwdebug_remove_point): Remove.
7474 (ppc_linux_nat_target::can_use_hw_breakpoint): Use
7475 m_dreg_interface, remove call to PTRACE_SET_DEBUGREG.
7476 (ppc_linux_nat_target::region_ok_for_hw_watchpoint): Add comment,
7477 use m_dreg_interface.
7478 (hwdebug_point_cmp): Change to...
7479 (ppc_linux_nat_target::hwdebug_point_cmp): ...this method. Use
7480 reference arguments instead of pointers.
7481 (ppc_linux_nat_target::ranged_break_num_registers): Use
7482 m_dreg_interface.
7483 (ppc_linux_nat_target::insert_hw_breakpoint): Add comment, use
7484 m_dreg_interface. Call register_hw_breakpoint.
7485 (ppc_linux_nat_target::remove_hw_breakpoint): Add comment, use
7486 m_dreg_interface. Call clear_hw_breakpoint.
7487 (get_trigger_type): Change to...
7488 (ppc_linux_nat_target::get_trigger_type): ...this method. Add
7489 comment.
7490 (ppc_linux_nat_target::insert_mask_watchpoint): Update comment,
7491 use m_dreg_interface. Call register_hw_breakpoint.
7492 (ppc_linux_nat_target::remove_mask_watchpoint): Update comment,
7493 use m_dreg_interface. Call clear_hw_breakpoint.
7494 (can_use_watchpoint_cond_accel): Change to...
7495 (ppc_linux_nat_target::can_use_watchpoint_cond_accel): ...this
7496 method. Update comment, use m_dreg_interface and
7497 m_process_info.
7498 (calculate_dvc): Change to...
7499 (ppc_linux_nat_target::calculate_dvc): ...this method. Use
7500 m_dreg_interface.
7501 (num_memory_accesses): Change to...
7502 (ppc_linux_nat_target::num_memory_accesses): ...this method.
7503 (check_condition): Change to...
7504 (ppc_linux_nat_target::check_condition): ...this method.
7505 (ppc_linux_nat_target::can_accel_watchpoint_condition): Update
7506 comment, use m_dreg_interface.
7507 (create_watchpoint_request): Change to...
7508 (ppc_linux_nat_target::create_watchpoint_request): ...this
7509 method. Use m_dreg_interface.
7510 (ppc_linux_nat_target::insert_watchpoint): Add comment, use
7511 m_dreg_interface. Call register_hw_breakpoint or register_wp.
7512 (ppc_linux_nat_target::remove_watchpoint): Add comment, use
7513 m_dreg_interface. Call clear_hw_breakpoint or clear_wp.
7514 (ppc_linux_nat_target::low_forget_process)
7515 (ppc_linux_nat_target::low_new_fork)
7516 (ppc_linux_nat_target::low_new_clone)
7517 (ppc_linux_nat_target::low_delete_thread)
7518 (ppc_linux_nat_target::low_prepare_to_resume): New methods.
7519 (ppc_linux_nat_target::low_new_thread): Remove previous logic,
7520 only call mark_thread_stale.
7521 (ppc_linux_thread_exit): Remove.
7522 (ppc_linux_nat_target::stopped_data_address): Change to...
7523 (ppc_linux_nat_target::low_stopped_data_address): This. Add
7524 comment, use m_dreg_interface and m_thread_hw_breakpoints.
7525 (ppc_linux_nat_target::stopped_by_watchpoint): Change to...
7526 (ppc_linux_nat_target::stopped_by_watchpoint): This. Add
7527 comment. Call low_stopped_data_address.
7528 (ppc_linux_nat_target::watchpoint_addr_within_range): Use
7529 m_dreg_interface.
7530 (ppc_linux_nat_target::masked_watch_num_registers): Use
7531 m_dreg_interface.
7532 (ppc_linux_nat_target::copy_thread_dreg_state)
7533 (ppc_linux_nat_target::mark_thread_stale)
7534 (ppc_linux_nat_target::mark_debug_registers_changed)
7535 (ppc_linux_nat_target::register_hw_breakpoint)
7536 (ppc_linux_nat_target::clear_hw_breakpoint)
7537 (ppc_linux_nat_target::register_wp)
7538 (ppc_linux_nat_target::clear_wp)
7539 (ppc_linux_nat_target::init_arch_lwp_info)
7540 (ppc_linux_nat_target::get_arch_lwp_info): New methods.
7541 (_initialize_ppc_linux_nat): Remove observer callback.
7542
7543 2020-03-30 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
7544
7545 * ppc-linux-nat.c (ppc_linux_nat_target::store_registers)
7546 (ppc_linux_nat_target::auxv_parse)
7547 (ppc_linux_nat_target::read_description)
7548 (supply_gregset, fill_gregset, supply_fpregset, fill_fpregset):
7549 Move up.
7550
7551 2020-03-30 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
7552
7553 * linux-nat.h (low_new_clone): New method.
7554 * linux-nat.c (linux_handle_extended_wait): Call low_new_clone.
7555
7556 2020-03-29 Simon Marchi <simon.marchi@polymtl.ca>
7557
7558 * dbxread.c (dbx_psymtab_to_symtab_1): Rename to...
7559 (dbx_expand_psymtab): ... this.
7560 (start_psymtab): Update.
7561 * mdebugread.c (psymtab_to_symtab_1): Rename to...
7562 (mdebug_expand_psymtab): ... this.
7563 (parse_partial_symbols): Update.
7564 (new_psymtab): Update.
7565 * xcoffread.c (xcoff_psymtab_to_symtab_1): Rename to...
7566 (xcoff_expand_psymtab): ... this.
7567 (xcoff_start_psymtab): Update.
7568
7569 2020-03-29 Simon Marchi <simon.marchi@polymtl.ca>
7570
7571 * psympriv.h (partial_symtab) <read_dependencies>: Rename to...
7572 <expand_dependencies>: ... this.
7573 * psymtab.c (partial_symtab::read_dependencies): Rename to...
7574 (partial_symtab::expand_dependencies): ... this.
7575 * dwarf2/read.c (dwarf2_include_psymtab) <expand_psymtab>:
7576 Update.
7577 (dwarf2_psymtab::expand_psymtab): Update.
7578 * dbxread.c (dbx_psymtab_to_symtab_1): Update.
7579 * mdebugread.c (psymtab_to_symtab_1): Update.
7580 * xcoffread.c (xcoff_psymtab_to_symtab_1): Update.
7581
7582 2020-03-29 Simon Marchi <simon.marchi@polymtl.ca>
7583
7584 * psympriv.h (discard_psymtab): Remove.
7585 * dbxread.c (dbx_end_psymtab): Update.
7586 * xcoffread.c (xcoff_end_psymtab): Update.
7587
7588 2020-03-28 Tom Tromey <tom@tromey.com>
7589
7590 * dwarf2/attribute.h (struct attribute) <form_is_constant>: Update
7591 comment.
7592
7593 2020-03-28 Tom Tromey <tom@tromey.com>
7594
7595 * dwarf2/read.c (read_attribute_reprocess): Fix formatting.
7596
7597 2020-03-27 Hannes Domani <ssbssa@yahoo.de>
7598
7599 * windows-nat.c (windows_add_all_dlls): Fix system dll paths.
7600
7601 2020-03-26 John Baldwin <jhb@FreeBSD.org>
7602
7603 * fbsd-tdep.c (fbsd_print_auxv_entry): Handle AT_FREEBSD_BSDFLAGS.
7604
7605 2020-03-26 Tom Tromey <tom@tromey.com>
7606
7607 * dwarf2/read.c (handle_data_member_location, dwarf2_add_field)
7608 (mark_common_block_symbol_computed, read_tag_string_type)
7609 (attr_to_dynamic_prop, read_subrange_type): Update.
7610 (dwarf2_get_ref_die_offset, dwarf2_get_attr_constant_value): Move
7611 to be methods on struct attribute.
7612 (skip_one_die, process_imported_unit_die, read_namespace_alias)
7613 (read_call_site_scope, partial_die_info::read)
7614 (partial_die_info::read, lookup_die_type, follow_die_ref):
7615 Update.
7616 * dwarf2/attribute.c (attribute::get_ref_die_offset): New method,
7617 from dwarf2_get_ref_die_offset.
7618 (attribute::constant_value): New method, from
7619 dwarf2_get_attr_constant_value.
7620 * dwarf2/attribute.h (struct attribute) <get_ref_die_offset>:
7621 Declare method.
7622 <constant_value>: New method.
7623
7624 2020-03-26 Tom Tromey <tom@tromey.com>
7625
7626 * dwarf2/read.c (dwarf_unit_type_name, dwarf_tag_name)
7627 (dwarf_attr_name, dwarf_form_name, dwarf_bool_name)
7628 (dwarf_type_encoding_name): Move to stringify.c.
7629 * Makefile.in (COMMON_SFILES): Add dwarf2/stringify.c.
7630 * dwarf2/stringify.c: New file.
7631 * dwarf2/stringify.h: New file.
7632
7633 2020-03-26 Tom Tromey <tom@tromey.com>
7634
7635 * dwarf2/die.h (struct die_info) <addr_base, ranges_base>:
7636 Rewrite.
7637
7638 2020-03-26 Tom Tromey <tom@tromey.com>
7639
7640 * dwarf2/die.h (struct die_info) <addr_base, ranges_base>: New
7641 methods.
7642 * dwarf2/read.c (lookup_addr_base): Move to die.h.
7643 (lookup_ranges_base): Likewise.
7644 (read_cutu_die_from_dwo, read_full_die_1): Update.
7645
7646 2020-03-26 Tom Tromey <tom@tromey.com>
7647
7648 * dwarf2/read.c (read_import_statement, read_file_scope)
7649 (read_type_unit_scope, inherit_abstract_dies, read_func_scope)
7650 (read_lexical_block_scope, read_call_site_scope)
7651 (dwarf2_get_subprogram_pc_bounds, get_scope_pc_bounds)
7652 (handle_struct_member_die, process_structure_scope)
7653 (update_enumeration_type_from_children)
7654 (process_enumeration_scope, read_array_type, read_common_block)
7655 (read_namespace, read_module, read_subroutine_type): Update.
7656 (sibling_die): Remove.
7657
7658 2020-03-26 Tom Tromey <tom@tromey.com>
7659
7660 * dwarf2/read.c (lookup_addr_base, lookup_ranges_base)
7661 (build_type_psymtabs_reader, read_structure_type)
7662 (read_enumeration_type, read_full_die_1): Update.
7663 (dwarf2_attr_no_follow): Move to die.h.
7664 * dwarf2/die.h (struct die_info) <attr>: New method.
7665
7666 2020-03-26 Tom Tromey <tom@tromey.com>
7667
7668 * dwarf2/read.c (struct dwarf2_cu) <base_known>: Remove.
7669 <base_address>: Now an optional.
7670 (dwarf2_find_base_address, dwarf2_rnglists_process)
7671 (dwarf2_ranges_process, fill_in_loclist_baton)
7672 (dwarf2_symbol_mark_computed): Update.
7673
7674 2020-03-26 Tom Tromey <tom@tromey.com>
7675
7676 * dwarf2/read.c (struct die_info): Move to die.h.
7677 * dwarf2/die.h: New file.
7678
7679 2020-03-26 Tom Tromey <tom@tromey.com>
7680
7681 * dwarf2/line-header.h (dwarf_decode_line_header): Declare.
7682 * dwarf2/read.c
7683 (dwarf2_statement_list_fits_in_line_number_section_complaint):
7684 Move to line-header.c.
7685 (read_checked_initial_length_and_offset, read_formatted_entries):
7686 Likewise.
7687 (dwarf_decode_line_header): Split into two.
7688 * dwarf2/line-header.c
7689 (dwarf2_statement_list_fits_in_line_number_section_complaint):
7690 Move from read.c.
7691 (read_checked_initial_length_and_offset, read_formatted_entries):
7692 Likewise.
7693 (dwarf_decode_line_header): New function, split from read.c.
7694
7695 2020-03-26 Tom Tromey <tom@tromey.com>
7696
7697 * dwarf2/read.h (struct dwarf2_per_objfile) <read_line_string>:
7698 Declare method.
7699 * dwarf2/read.c (read_attribute_value): Update.
7700 (dwarf2_per_objfile::read_line_string): Rename from
7701 read_indirect_line_string.
7702 (read_formatted_entries): Update.
7703
7704 2020-03-26 Tom Tromey <tom@tromey.com>
7705
7706 * dwarf2/macro.c (dwarf_decode_macro_bytes): Use objfile local
7707 variable.
7708
7709 2020-03-26 Tom Tromey <tom@tromey.com>
7710
7711 * dwarf2/macro.h (dwarf_decode_macros): Make section parameter
7712 const.
7713 * dwarf2/macro.c (skip_form_bytes, skip_unknown_opcode)
7714 (dwarf_decode_macro_bytes, dwarf_decode_macros): Make section
7715 parameter const.
7716
7717 2020-03-26 Tom Tromey <tom@tromey.com>
7718
7719 * dwarf2/read.c (dwarf_decode_macros): Make "lh" const.
7720 * dwarf2/macro.h (dwarf_decode_macros): Constify "lh" parameter.
7721 * dwarf2/macro.c (macro_start_file): Constify "lh" parameter.
7722 (dwarf_decode_macro_bytes, dwarf_decode_macros): Likewise.
7723
7724 2020-03-26 Tom Tromey <tom@tromey.com>
7725
7726 * dwarf2/line-header.h (struct line_header) <is_valid_file_index,
7727 file_names_size, file_full_name, file_file_name>: Use const.
7728 <file_name_at, file_names>: Add const overload.
7729 * dwarf2/line-header.c (line_header::file_file_name)
7730 (line_header::file_full_name): Update.
7731
7732 2020-03-26 Tom Tromey <tom@tromey.com>
7733
7734 * dwarf2/read.c (dwarf2_macro_malformed_definition_complaint)
7735 (macro_start_file, consume_improper_spaces)
7736 (parse_macro_definition, skip_form_bytes, skip_unknown_opcode)
7737 (dwarf_parse_macro_header, dwarf_decode_macro_bytes)
7738 (dwarf_decode_macros): Move to macro.c.
7739 * dwarf2/macro.c: New file.
7740 * dwarf2/macro.h: New file.
7741 * Makefile.in (COMMON_SFILES): Add dwarf2/macro.c.
7742
7743 2020-03-26 Tom Tromey <tom@tromey.com>
7744
7745 * dwarf2/section.h (struct dwarf2_section_info) <read_string>: New
7746 method.
7747 * dwarf2/section.c: New method. From
7748 read_indirect_string_at_offset_from.
7749 * dwarf2/read.c (mapped_debug_names::namei_to_name): Update.
7750 (read_indirect_string_at_offset_from): Move to section.c.
7751 (read_indirect_string_at_offset): Rewrite.
7752 (read_indirect_line_string_at_offset): Remove.
7753 (read_indirect_string, read_indirect_line_string)
7754 (dwarf_decode_macro_bytes): Update.
7755
7756 2020-03-26 Tom Tromey <tom@tromey.com>
7757
7758 * dwarf2/section.h (struct dwarf2_section_info)
7759 <overload_complaint>: Declare.
7760 (dwarf2_section_buffer_overflow_complaint): Don't declare.
7761 * dwarf2/section.c (dwarf2_section_info::overflow_complaint):
7762 Rename from dwarf2_section_buffer_overflow_complaint.
7763 * dwarf2/read.c (skip_one_die, partial_die_info::read)
7764 (skip_form_bytes, dwarf_decode_macro_bytes): Update.
7765
7766 2020-03-26 Tom Tromey <tom@tromey.com>
7767
7768 * dwarf2/section.h (dwarf2_section_buffer_overflow_complaint):
7769 Declare.
7770 * dwarf2/section.c (dwarf2_section_buffer_overflow_complaint):
7771 Move from read.c.
7772 * dwarf2/read.c (dwarf2_section_buffer_overflow_complaint): Move
7773 to section.c.
7774
7775 2020-03-26 Tom Tromey <tom@tromey.com>
7776
7777 * dwarf2/read.c (dwarf_decode_macros): Split into two overloads.
7778
7779 2020-03-26 Tom Tromey <tom@tromey.com>
7780
7781 * dwarf2/read.c (macro_start_file): Change "cu" parameter to
7782 "builder".
7783 (dwarf_decode_macro_bytes): Likewise. Add dwarf2_per_objfile
7784 parameter.
7785 (dwarf_decode_macros): Update.
7786
7787 2020-03-26 Tom Tromey <tom@tromey.com>
7788
7789 * dwarf2/read.c (read_attribute_value): Update.
7790 (read_indirect_string_from_dwz): Move to dwz.c; change into
7791 method.
7792 (dwarf_decode_macro_bytes): Update.
7793 * dwarf2/dwz.h (struct dwz_file) <read_string>: Declare method.
7794 * dwarf2/dwz.c: New file.
7795 * Makefile.in (COMMON_SFILES): Add dwz.c.
7796
7797 2020-03-26 Tom Tromey <tom@tromey.com>
7798
7799 * dwarf2/read.h (struct dwz_file): Move to dwz.h.
7800 * dwarf2/read.c: Add include.
7801 * dwarf2/index-write.c: Add include.
7802 * dwarf2/index-cache.c: Add include.
7803 * dwarf2/dwz.h: New file.
7804
7805 2020-03-25 Tom Tromey <tom@tromey.com>
7806
7807 * compile/compile-object-load.c (get_out_value_type): Mention
7808 correct symbol name in error message.
7809
7810 2020-03-25 Hannes Domani <ssbssa@yahoo.de>
7811
7812 * windows-nat.c (windows_add_all_dlls): Fix system dll paths.
7813
7814 2020-03-25 Tom de Vries <tdevries@suse.de>
7815
7816 * symtab.h (is_main_symtab_of_compunit_symtab): New function.
7817 * symmisc.c (dump_symtab_1): Print user and includes fields.
7818 (maintenance_info_symtabs): Same.
7819
7820 2020-03-25 Andrew Burgess <andrew.burgess@embecosm.com>
7821
7822 PR gdb/25534
7823 * riscv-tdep.c (riscv_arg_info::c_offset): Update comment.
7824 (riscv_regcache_cooked_write): New function.
7825 (riscv_push_dummy_call): Use new function.
7826 (riscv_return_value): Likewise.
7827
7828 2020-03-24 Simon Marchi <simon.marchi@polymtl.ca>
7829
7830 * fbsd-nat.c (fbsd_nat_target::follow_fork): Change bool to int.
7831 * fbsd-nat.h (class fbsd_nat_target) <follow_fork>: Likewise.
7832 * inf-ptrace.c (inf_ptrace_target::follow_fork): Likewise.
7833 * inf-ptrace.h (struct inf_ptrace_target) <follow_fork>: Likewise.
7834 * infrun.c (follow_fork): Likewise.
7835 (follow_fork_inferior): Likewise.
7836 * linux-nat.c (linux_nat_target::follow_fork): Likewise.
7837 * linux-nat.h (class linux_nat_target): Likewise.
7838 * remote.c (class remote_target) <follow_fork>: Likewise.
7839 (remote_target::follow_fork): Likewise.
7840 * target-delegates.c: Re-generate.
7841 * target.c (default_follow_fork): Likewise.
7842 (target_follow_fork): Likewise.
7843 * target.h (struct target_ops) <follow_fork>: Likewise.
7844 (target_follow_fork): Likewise.
7845
7846 2020-03-24 Tom de Vries <tdevries@suse.de>
7847
7848 * psymtab.c (maintenance_info_psymtabs): Print user field.
7849
7850 2020-03-20 Tom Tromey <tromey@adacore.com>
7851
7852 * dwarf2/loc.h (dwarf2_evaluate_property): Make "addr_stack"
7853 const.
7854 * dwarf2/loc.c (dwarf2_evaluate_property): Make "addr_stack"
7855 const.
7856
7857 2020-03-20 Simon Marchi <simon.marchi@efficios.com>
7858
7859 * ptrace.m4: Don't check for ptrace declaration.
7860 * config.in: Re-generate.
7861 * configure: Re-generate.
7862 * nat/gdb_ptrace.h: Don't declare ptrace if HAVE_DECL_PTRACE is
7863 not defined.
7864
7865 2020-03-20 Kamil Rytarowski <n54@gmx.com>
7866
7867 * amd64-bsd-nat.c (gdb_ptrace): Change return type from `int' to
7868 `PTRACE_TYPE_RET'.
7869 * i386-bsd-nat.c (gdb_ptrace): Likewise.
7870 * sparc-nat.c (gdb_ptrace): Likewise.
7871 * x86-bsd-nat.c (gdb_ptrace): Likewise.
7872
7873 2020-03-20 Tom Tromey <tromey@adacore.com>
7874
7875 * c-exp.y (lex_one_token): Fix assert.
7876
7877 2020-03-20 Tom Tromey <tromey@adacore.com>
7878
7879 * ada-tasks.c (read_atcb): Use smaller length in strncpy call.
7880 * linux-tdep.c (linux_fill_prpsinfo): Use smaller length in
7881 strncpy call.
7882
7883 2020-03-20 Tom Tromey <tromey@adacore.com>
7884
7885 * symmisc.c (maintenance_print_one_line_table): Use ui_out.
7886
7887 2020-03-20 Tom Tromey <tromey@adacore.com>
7888
7889 * ada-valprint.c (print_variant_part): Remove parameters; switch
7890 to value-based API.
7891 (print_field_values): Likewise.
7892 (ada_val_print_struct_union): Likewise.
7893 (ada_value_print_1): Update.
7894
7895 2020-03-20 Kamil Rytarowski <n54@gmx.com>
7896
7897 * ppc-nbsd-nat.c (ppc_nbsd_nat_target): Inherit from
7898 nbsd_nat_target instead of inf_ptrace_target.
7899 * ppc-nbsd-nat.c: Include "nbsd-nat.h", as we are now using
7900 nbsd_nat_target.
7901
7902 2020-03-20 Kamil Rytarowski <n54@gmx.com>
7903
7904 * hppa-nbsd-nat.c (fetch_registers): New variable lwp and pass
7905 it to the ptrace call.
7906 * (store_registers): Likewise.
7907
7908 2020-03-20 Kamil Rytarowski <n54@gmx.com>
7909
7910 * ppc-nbsd-nat.c (fetch_registers): New variable lwp and pass
7911 it to the ptrace call.
7912 * (store_registers): Likewise.
7913
7914 2020-03-19 Luis Machado <luis.machado@linaro.org>
7915
7916 * nat/aarch64-sve-linux-ptrace.c (aarch64_sve_set_vq): If vg is not
7917 valid, fetch vg value from ptrace.
7918
7919 2020-03-19 Kamil Rytarowski <n54@gmx.com>
7920 * inf-ptrace.h: Disable get_ptrace_pid on NetBSD.
7921 * inf-ptrace.c: Likewise.
7922 * (gdb_ptrace): Add.
7923 * (inf_ptrace_target::resume): Update.
7924 * (inf_ptrace_target::xfer_partial): Likewise.
7925 * (inf_ptrace_peek_poke): Change argument `pid' to `ptid'.
7926 * (inf_ptrace_peek_poke): Update.
7927
7928 2020-03-19 Kamil Rytarowski <n54@gmx.com>
7929
7930 * x86-bsd-nat.c (gdb_ptrace): New.
7931 * (x86bsd_dr_set): Add new argument `ptid'.
7932 * (x86bsd_dr_get, x86bsd_dr_set, x86bsd_dr_set_control,
7933 x86bsd_dr_set_addr): Update.
7934
7935 2020-03-19 Andrew Burgess <andrew.burgess@embecosm.com>
7936
7937 * remote.c (remote_target::process_stop_reply): Handle events for
7938 all threads differently.
7939
7940 2020-03-19 Andrew Burgess <andrew.burgess@embecosm.com>
7941
7942 * completer.c (completion_tracker::remove_completion): Define new
7943 function.
7944 * completer.h (completion_tracker::remove_completion): Declare new
7945 function.
7946 * symtab.c (completion_list_add_symbol): Remove aliasing msymbols
7947 when adding a C++ function symbol.
7948
7949 2020-03-19 Andrew Burgess <andrew.burgess@embecosm.com>
7950
7951 * completer.c (completion_tracker::completion_hash_entry): Define
7952 new class.
7953 (advance_to_filename_complete_word_point): Call
7954 recompute_lowest_common_denominator.
7955 (completion_tracker::completion_tracker): Call discard_completions
7956 to setup the hash table.
7957 (completion_tracker::discard_completions): Allow for being called
7958 from the constructor, pass new equal function, and element deleter
7959 when constructing the hash table. Initialise new class member
7960 variables.
7961 (completion_tracker::maybe_add_completion): Remove use of
7962 m_entries_vec, and store more information into m_entries_hash.
7963 (completion_tracker::recompute_lcd_visitor): New function, most
7964 content taken from...
7965 (completion_tracker::recompute_lowest_common_denominator):
7966 ...here, this now just visits each item in the hash calling the
7967 above visitor.
7968 (completion_tracker::build_completion_result): Remove use of
7969 m_entries_vec, call recompute_lowest_common_denominator.
7970 * completer.h (completion_tracker::have_completions): Remove use
7971 of m_entries_vec.
7972 (completion_tracker::completion_hash_entry): Declare new class.
7973 (completion_tracker::recompute_lowest_common_denominator): Change
7974 function signature.
7975 (completion_tracker::recompute_lcd_visitor): Declare new function.
7976 (completion_tracker::m_entries_vec): Delete.
7977 (completion_tracker::m_entries_hash): Initialize to NULL.
7978 (completion_tracker::m_lowest_common_denominator_valid): New
7979 member variable.
7980 (completion_tracker::m_lowest_common_denominator_max_length): New
7981 member variable.
7982
7983 2020-03-17 Kamil Rytarowski <n54@gmx.com>
7984
7985 * regformats/regdef.h: Put reg in gdb namespace.
7986
7987 2020-03-17 Kamil Rytarowski <n54@gmx.com>
7988
7989 * i386-bsd-nat.c (gdb_ptrace): New.
7990 * (i386bsd_fetch_inferior_registers,
7991 i386bsd_store_inferior_registers) Switch from pid_t to ptid_t.
7992 * (i386bsd_fetch_inferior_registers,
7993 i386bsd_store_inferior_registers) Use gdb_ptrace.
7994
7995 2020-03-17 Kamil Rytarowski <n54@gmx.com>
7996
7997 * amd64-bsd-nat.c (gdb_ptrace): New.
7998 * (amd64bsd_fetch_inferior_registers,
7999 amd64bsd_store_inferior_registers) Switch from pid_t to ptid_t.
8000 * (amd64bsd_fetch_inferior_registers,
8001 amd64bsd_store_inferior_registers) Use gdb_ptrace.
8002
8003 2020-03-17 Kamil Rytarowski <n54@gmx.com>
8004
8005 * user-regs.c (user_reg::read): Rename to...
8006 (user_reg::xread): ...this.
8007 * (append_user_reg): Rename argument `read' to `xread'.
8008 * (user_reg_add_builtin): Likewise.
8009 * (user_reg_add): Likewise.
8010 * (value_of_user_reg): Likewise.
8011
8012 2020-03-17 Kamil Rytarowski <n54@gmx.com>
8013
8014 * sparc-nat.c (gdb_ptrace): New.
8015 * sparc-nat.c (sparc_fetch_inferior_registers)
8016 (sparc_store_inferior_registers) Remove obsolete comment.
8017 * sparc-nat.c (sparc_fetch_inferior_registers)
8018 (sparc_store_inferior_registers) Switch from pid_t to ptid_t.
8019 * sparc-nat.c (sparc_fetch_inferior_registers)
8020 (sparc_store_inferior_registers) Use gdb_ptrace.
8021
8022 2020-03-17 Kamil Rytarowski <n54@gmx.com>
8023
8024 * sh-nbsd-nat.c (fetch_registers): New variable lwp and pass
8025 it to the ptrace call.
8026 * sh-nbsd-nat.c (store_registers): Likewise.
8027
8028 2020-03-17 Kamil Rytarowski <n54@gmx.com>
8029
8030 * sh-nbsd-nat.c (sh_nbsd_nat_target): Inherit from
8031 nbsd_nat_target instead of inf_ptrace_target.
8032 * sh-nbsd-nat.c: Include "nbsd-nat.h", as we are now using
8033 nbsd_nat_target.
8034
8035 2020-03-17 Kamil Rytarowski <n54@gmx.com>
8036
8037 * amd64-bsd-nat.c: Include amd64-bsd-nat.h".
8038
8039 2020-03-17 Kamil Rytarowski <n54@gmx.com>
8040
8041 * nbsd-nat.c: Include <sys/types.h>, <sys/ptrace.h> and
8042 <sys/sysctl.h>.
8043 * nbsd-nat.c (nbsd_nat_target::pid_to_exec_file): Rewrite.
8044
8045 2020-03-17 Tom de Vries <tdevries@suse.de>
8046
8047 PR gdb/23710
8048 * dwarf2/read.h (struct dwarf2_per_cu_data): Add unit_type and lang
8049 fields.
8050 * dwarf2/read.c (process_psymtab_comp_unit): Initialize unit_type and lang
8051 fields.
8052 (process_imported_unit_die): Skip import of c++ CUs.
8053
8054 2020-03-16 Tom Tromey <tom@tromey.com>
8055
8056 * p-valprint.c (pascal_object_print_value): Initialize
8057 base_value.
8058
8059 2020-03-16 Anton Kolesov <anton.kolesov@synopsys.com>
8060 Shahab Vahedi <shahab@synopsys.com>
8061
8062 * Makefile.in: Add arch/arc.o
8063 * configure.tgt: Likewise.
8064 * arc-tdep.c (arc_tdesc_init): Use arc_read_description.
8065 (_initialize_arc_tdep): Don't initialize old target descriptions.
8066 (arc_read_description): New function to cache target descriptions.
8067 * arc-tdep.h (arc_read_description): Add proto type.
8068 * arch/arc.c: New file.
8069 * arch/arc.h: Likewise.
8070 * features/Makefile: Replace old target descriptions with new.
8071 * features/arc-arcompact.c: Remove.
8072 * features/arc-arcompact.xml: Likewise.
8073 * features/arc-v2.c: Likewise
8074 * features/arc-v2.xml: Likewise
8075 * features/arc/aux-arcompact.xml: New file.
8076 * features/arc/aux-v2.xml: Likewise.
8077 * features/arc/core-arcompact.xml: Likewise.
8078 * features/arc/core-v2.xml: Likewise.
8079 * features/arc/aux-arcompact.c: Generate.
8080 * features/arc/aux-v2.c: Likewise.
8081 * features/arc/core-arcompact.c: Likewise.
8082 * features/arc/core-v2.c: Likewise.
8083 * target-descriptions (maint_print_c_tdesc_cmd): Support ARC features.
8084
8085 2020-03-16 Tom Tromey <tromey@adacore.com>
8086
8087 PR gdb/25663:
8088 * dwarf2/read.c (dwarf2_name): Strip leading namespaces after
8089 putting value into bcache.
8090
8091 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
8092
8093 PR gdb/21500
8094 * amd64-windows-tdep.c (amd64_windows_init_abi): Rename
8095 to...
8096 (amd64_windows_init_abi_common): ... this. Don't set size of
8097 long type.
8098 (amd64_windows_init_abi): New function.
8099 (amd64_cygwin_init_abi): New function.
8100 (_initialize_amd64_windows_tdep): Use amd64_cygwin_init_abi for
8101 the Cygwin OS ABI.
8102 * i386-windows-tdep.c (_initialize_i386_windows_tdep): Clarify
8103 comment.
8104
8105 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
8106
8107 * windows-tdep.h (is_linked_with_cygwin_dll): New declaration.
8108 * windows-tdep.c (CYGWIN_DLL_NAME): New.
8109 (pe_import_directory_entry): New struct type.
8110 (is_linked_with_cygwin_dll): New function.
8111 * amd64-windows-tdep.c (amd64_windows_osabi_sniffer): Select
8112 GDB_OSABI_CYGWIN if the BFD is linked with the Cygwin DLL.
8113 * i386-windows-tdep.c (i386_windows_osabi_sniffer): Likewise.
8114
8115 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
8116
8117 * i386-windows-tdep.c: Mass-rename "cygwin" to "windows", except
8118 i386_cygwin_core_osabi_sniffer.
8119
8120 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
8121
8122 * i386-cygwin-tdep.c: Rename to...
8123 * i386-windows-tdep.c: ... this.
8124 * Makefile.in (ALL_TARGET_OBS): Rename i386-cygwin-tdep.c to
8125 i386-windows-tdep.c.
8126 * configure.tgt: Likewise.
8127
8128 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
8129
8130 * osabi.h (enum gdb_osabi): Add GDB_OSABI_WINDOWS.
8131 * osabi.c (gdb_osabi_names): Add "Windows".
8132 * i386-cygwin-tdep.c (i386_cygwin_osabi_sniffer): Return
8133 GDB_OSABI_WINDOWS when the binary's target is "pei-i386".
8134 (i386_cygwin_core_osabi_sniffer): New function, extracted from
8135 i386_cygwin_osabi_sniffer.
8136 (_initialize_i386_cygwin_tdep): Register OS ABI
8137 GDB_OSABI_WINDOWS for i386.
8138 * amd64-windows-tdep.c (amd64_windows_osabi_sniffer): Return
8139 GDB_OSABI_WINDOWS when the binary's target is "pei-x86-64".
8140 (_initialize_amd64_windows_tdep): Register OS ABI GDB_OSABI_WINDOWS
8141 for x86-64.
8142 * configure.tgt: Use GDB_OSABI_WINDOWS as the default OS ABI
8143 when the target matches '*-*-mingw*'.
8144
8145 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
8146
8147 * defs.h (enum gdb_osabi): Move to...
8148 * osabi.h (enum gdb_osabi): ... here.
8149 * gdbarch.sh: Include osabi.h in gdbarch.h.
8150 * gdbarch.h: Re-generate.
8151
8152 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
8153
8154 * amd64-windows-tdep.c (amd64_windows_osabi_sniffer): New
8155 function.
8156 (_initialize_amd64_windows_tdep): Register osabi sniffer.
8157
8158 2020-03-14 Tom Tromey <tom@tromey.com>
8159
8160 * c-typeprint.c (cp_type_print_method_args): Print "__restrict__"
8161 for C++.
8162 (c_type_print_modifier): Likewise. Add "language" parameter.
8163 (c_type_print_varspec_prefix, c_type_print_base_struct_union)
8164 (c_type_print_base_1): Update.
8165 * type-stack.h (enum type_pieces) <tp_atomic, tp_restrict>: New
8166 constants.
8167 * type-stack.c (type_stack::insert): Handle tp_atomic and
8168 tp_restrict.
8169 (type_stack::follow_type_instance_flags): Likewise.
8170 (type_stack::follow_types): Likewise. Merge type-following code.
8171 * c-exp.y (RESTRICT, ATOMIC): New tokens.
8172 (space_identifier, cv_with_space_id)
8173 (const_or_volatile_or_space_identifier_noopt)
8174 (const_or_volatile_or_space_identifier): Remove.
8175 (single_qualifier, qualifier_seq_noopt, qualifier_seq): New
8176 rules.
8177 (ptr_operator, typebase): Update.
8178 (enum token_flag) <FLAG_C>: New constant.
8179 (ident_tokens): Add "restrict", "__restrict__", "__restrict", and
8180 "_Atomic".
8181 (lex_one_token): Handle FLAG_C.
8182
8183 2020-03-14 Kamil Rytarowski <n54@gmx.com>
8184
8185 * m68k-bsd-nat.c (fetch_registers): New variable lwp and pass
8186 it to the ptrace call.
8187 * m68k-bsd-nat.c (store_registers): Likewise.
8188
8189 2020-03-14 Kamil Rytarowski <n54@gmx.com>
8190
8191 * m68k-bsd-nat.c (m68kbsd_supply_gregset): Change type of regs to
8192 gdb_byte *.
8193 * m68k-bsd-nat.c (m68kbsd_supply_fpregset): Likewise.
8194 * m68k-bsd-nat.c (m68kbsd_collect_gregset): Likewise.
8195 * m68k-bsd-nat.c (m68kbsd_supply_pcb): Cast &tmp to gdb_byte *.
8196
8197 2020-03-14 Kamil Rytarowski <n54@gmx.com>
8198
8199 * m68k-bsd-nat.c (m68k_bsd_nat_target): Inherit from
8200 nbsd_nat_target instead of inf_ptrace_target.
8201 * m68k-bsd-nat.c: Include "nbsd-nat.h", as we are now using
8202 nbsd_nat_target.
8203
8204 2020-03-14 Kamil Rytarowski <n54@gmx.com>
8205
8206 * m68k-bsd-nat.c: Define _KERNTYPES to get the declaration of
8207 register_t.
8208
8209 2020-03-14 Kamil Rytarowski <n54@gmx.com>
8210
8211 * alpha-bsd-nat.c (fetch_registers): New variable lwp and pass
8212 it to the ptrace call.
8213 * alpha-bsd-nat.c (store_registers): Likewise.
8214
8215 2020-03-14 Kamil Rytarowski <n54@gmx.com>
8216
8217 * alpha-bsd-nat.c: Remove <sys/procfs.h> and "gregset.h" from
8218 includes.
8219 * alpha-bsd-nat.c (gregset_t, fpregset_t): Remove.
8220 * alpha-bsd-nat.c (supply_gregset, fill_gregset, supply_fpregset,
8221 fill_fpregset): Likewise.
8222
8223 2020-03-14 Kamil Rytarowski <n54@gmx.com>
8224
8225 * alpha-bsd-nat.c (alpha_netbsd_nat_target): Inherit from
8226 nbsd_nat_target instead of inf_ptrace_target.
8227 * alpha-bsd-nat.c: Include "nbsd-nat.h", as we are now using
8228 nbsd_nat_target.
8229
8230 2020-03-14 Kamil Rytarowski <n54@gmx.com>
8231
8232 * alpha-bsd-nat.c: Define _KERNTYPES to get the declaration of
8233 register_t.
8234
8235 2020-03-14 Kamil Rytarowski <n54@gmx.com>
8236
8237 * arm-nbsd-nat.c (fetch_register): New variable lwp and pass
8238 it to the ptrace call.
8239 * arm-nbsd-nat.c (fetch_fp_register): Likewise.
8240 * arm-nbsd-nat.c (fetch_fp_regs): Likewise.
8241 * arm-nbsd-nat.c (store_register): Likewise.
8242 * arm-nbsd-nat.c (store_regs): Likewise.
8243 * arm-nbsd-nat.c (store_fp_register): Likewise.
8244 * arm-nbsd-nat.c (store_fp_regs): Likewise.
8245
8246 2020-03-14 Kamil Rytarowski <n54@gmx.com>
8247
8248 * arm-nbsd-nat.c (arm_netbsd_nat_target): Inherit from
8249 nbsd_nat_target instead of inf_ptrace_target.
8250 * arm-nbsd-nat.c: Include "nbsd-nat.h", as we are now using
8251 nbsd_nat_target.
8252
8253 2020-03-14 Kamil Rytarowski <n54@gmx.com>
8254
8255 * x86-bsd-nat.c (x86bsd_dr_get): New variable lwp and pass
8256 it to the ptrace call.
8257 * x86-bsd-nat.c (x86bsd_dr_set): Likewise.
8258
8259 2020-03-14 Kamil Rytarowski <n54@gmx.com>
8260
8261 * vax-bsd-nat.c (vaxbsd_supply_gregset): New variable lwp and pass
8262 it to the ptrace call.
8263 * vax-bsd-nat.c (vaxbsd_collect_gregset): Likewise.
8264
8265 2020-03-14 Kamil Rytarowski <n54@gmx.com>
8266
8267 * vax-bsd-nat.c (vaxbsd_supply_gregset): Cast gregs to const
8268 gdb_byte *.
8269 * vax-bsd-nat.c (vaxbsd_collect_gregset): Cast gregs to void *.
8270
8271 2020-03-14 Kamil Rytarowski <n54@gmx.com>
8272
8273 * vax-bsd-nat.c (vax_bsd_nat_target): Inherit from nbsd_nat_target
8274 instead of inf_ptrace_target.
8275 * vax-bsd-nat.c: Include "nbsd-nat.h", as we are now using
8276 nbsd_nat_target.
8277
8278 2020-03-14 Kamil Rytarowski <n54@gmx.com>
8279
8280 * mips-nbsd-nat.c: Define _KERNTYPES to get the declaration of
8281 register_t.
8282
8283 2020-03-14 Kamil Rytarowski <n54@gmx.com>
8284
8285 * ppc-nbsd-nat.c: Define _KERNTYPES to get the declaration of
8286 register_t.
8287
8288 2020-03-14 Kamil Rytarowski <n54@gmx.com>
8289
8290 * vax-bsd-nat.c: Define _KERNTYPES to get the declaration of
8291 register_t.
8292
8293 2020-03-13 Tom Tromey <tom@tromey.com>
8294
8295 * value.h (val_print): Don't declare.
8296 * valprint.h (val_print_array_elements)
8297 (val_print_scalar_formatted, generic_val_print): Don't declare.
8298 * valprint.c (generic_val_print_array): Take a struct value.
8299 (generic_val_print_ptr, generic_val_print_memberptr)
8300 (generic_val_print_bool, generic_val_print_int)
8301 (generic_val_print_char, generic_val_print_complex)
8302 (generic_val_print): Remove.
8303 (generic_value_print): Update.
8304 (do_val_print): Remove unused parameters. Don't call
8305 la_val_print.
8306 (val_print): Remove.
8307 (common_val_print): Update. Don't call value_check_printable.
8308 (val_print_scalar_formatted, val_print_array_elements): Remove.
8309 * rust-lang.c (rust_val_print): Remove.
8310 (rust_language_defn): Update.
8311 * p-valprint.c (pascal_val_print): Remove.
8312 (pascal_value_print_inner): Update.
8313 (pascal_object_print_val_fields, pascal_object_print_val):
8314 Remove.
8315 (pascal_object_print_static_field): Update.
8316 * p-lang.h (pascal_val_print): Don't declare.
8317 * p-lang.c (pascal_language_defn): Update.
8318 * opencl-lang.c (opencl_language_defn): Update.
8319 * objc-lang.c (objc_language_defn): Update.
8320 * m2-valprint.c (m2_print_unbounded_array, m2_val_print): Remove.
8321 * m2-lang.h (m2_val_print): Don't declare.
8322 * m2-lang.c (m2_language_defn): Update.
8323 * language.h (struct language_defn) <la_val_print>: Remove.
8324 * language.c (unk_lang_value_print_inner): Rename. Change
8325 argument types.
8326 (unknown_language_defn, auto_language_defn): Update.
8327 * go-valprint.c (go_val_print): Remove.
8328 * go-lang.h (go_val_print): Don't declare.
8329 * go-lang.c (go_language_defn): Update.
8330 * f-valprint.c (f_val_print): Remove.
8331 * f-lang.h (f_value_print): Don't declare.
8332 * f-lang.c (f_language_defn): Update.
8333 * d-valprint.c (d_val_print): Remove.
8334 * d-lang.h (d_value_print): Don't declare.
8335 * d-lang.c (d_language_defn): Update.
8336 * cp-valprint.c (cp_print_value_fields)
8337 (cp_print_value_fields_rtti, cp_print_value): Remove.
8338 (cp_print_static_field): Update.
8339 * c-valprint.c (c_val_print_array, c_val_print_ptr)
8340 (c_val_print_struct, c_val_print_union, c_val_print_int)
8341 (c_val_print_memberptr, c_val_print): Remove.
8342 * c-lang.h (c_val_print_array, cp_print_value_fields)
8343 (cp_print_value_fields_rtti): Don't declare.
8344 * c-lang.c (c_language_defn, cplus_language_defn)
8345 (asm_language_defn, minimal_language_defn): Update.
8346 * ada-valprint.c (ada_val_print_ptr, ada_val_print_num): Remove.
8347 (ada_val_print_enum): Take a struct value.
8348 (ada_val_print_flt, ada_val_print_array, ada_val_print_1)
8349 (ada_val_print): Remove.
8350 (ada_value_print_1): Update.
8351 (printable_val_type): Remove.
8352 * ada-lang.h (ada_val_print): Don't declare.
8353 * ada-lang.c (ada_language_defn): Update.
8354
8355 2020-03-13 Tom Tromey <tom@tromey.com>
8356
8357 * valprint.c (do_val_print): Update.
8358 * python/python-internal.h (gdbpy_apply_val_pretty_printer): Take
8359 a struct value.
8360 (value_to_value_object_no_release): Declare.
8361 * python/py-value.c (value_to_value_object_no_release): New
8362 function.
8363 * python/py-prettyprint.c (gdbpy_apply_val_pretty_printer): Take a
8364 struct value.
8365 * guile/scm-value.c (vlscm_scm_from_value_no_release): New
8366 function.
8367 * guile/scm-pretty-print.c (gdbscm_apply_val_pretty_printer): Take
8368 a struct value.
8369 * guile/guile-internal.h (vlscm_scm_from_value_no_release):
8370 Declare.
8371 (gdbscm_apply_val_pretty_printer): Take a struct value.
8372 * extension.h (apply_ext_lang_val_pretty_printer): Take a struct
8373 value.
8374 * extension.c (apply_ext_lang_val_pretty_printer): Take a struct
8375 value.
8376 * extension-priv.h (struct extension_language_ops)
8377 <apply_val_pretty_printer>: Take a struct value.
8378 * cp-valprint.c (cp_print_value): Create a struct value.
8379 (cp_print_value): Update.
8380
8381 2020-03-13 Tom Tromey <tom@tromey.com>
8382
8383 * ada-valprint.c (print_field_values): Call common_val_print.
8384
8385 2020-03-13 Tom Tromey <tom@tromey.com>
8386
8387 * ada-valprint.c (val_print_packed_array_elements): Remove
8388 bitoffset and val parameters. Call common_val_print.
8389 (ada_val_print_string): Remove offset, address, and original_value
8390 parameters.
8391 (ada_val_print_array): Update.
8392 (ada_value_print_array): New function.
8393 (ada_value_print_1): Call it.
8394
8395 2020-03-13 Tom Tromey <tom@tromey.com>
8396
8397 * ada-valprint.c (ada_value_print): Use common_val_print.
8398
8399 2020-03-13 Tom Tromey <tom@tromey.com>
8400
8401 * ada-valprint.c (ada_val_print_ref): Use common_val_print.
8402
8403 2020-03-13 Tom Tromey <tom@tromey.com>
8404
8405 * ada-valprint.c (ada_value_print_num): New function.
8406 (ada_value_print_1): Use it.
8407
8408 2020-03-13 Tom Tromey <tom@tromey.com>
8409
8410 * ada-valprint.c (ada_value_print_1) <TYPE_CODE_FLT>: Rewrite.
8411
8412 2020-03-13 Tom Tromey <tom@tromey.com>
8413
8414 * ada-valprint.c (ada_value_print_ptr): New function.
8415 (ada_value_print_1): Use it.
8416
8417 2020-03-13 Tom Tromey <tom@tromey.com>
8418
8419 * ada-valprint.c (ada_val_print_gnat_array): Take a struct value;
8420 call common_val_print.
8421 (ada_val_print_1): Update.
8422 (ada_value_print_1): New function.
8423 (ada_value_print_inner): Rewrite.
8424
8425 2020-03-13 Tom Tromey <tom@tromey.com>
8426
8427 * cp-valprint.c (cp_print_value_fields): Update.
8428 (cp_print_value): New function.
8429
8430 2020-03-13 Tom Tromey <tom@tromey.com>
8431
8432 * m2-valprint.c (m2_value_print_inner): Use
8433 cp_print_value_fields.
8434 * cp-valprint.c (cp_print_value_fields): New function.
8435 * c-valprint.c (c_value_print_struct): New function.
8436 (c_value_print_inner): Use c_value_print_struct.
8437 * c-lang.h (cp_print_value_fields): Declare.
8438
8439 2020-03-13 Tom Tromey <tom@tromey.com>
8440
8441 * c-valprint.c (c_value_print_array): New function.
8442 (c_value_print_inner): Use it.
8443
8444 2020-03-13 Tom Tromey <tom@tromey.com>
8445
8446 * c-valprint.c (c_value_print_memberptr): New function.
8447 (c_value_print_inner): Use it.
8448
8449 2020-03-13 Tom Tromey <tom@tromey.com>
8450
8451 * c-valprint.c (c_value_print_int): New function.
8452 (c_value_print_inner): Use it.
8453
8454 2020-03-13 Tom Tromey <tom@tromey.com>
8455
8456 * c-valprint.c (c_value_print_ptr): New function.
8457 (c_value_print_inner): Use it.
8458
8459 2020-03-13 Tom Tromey <tom@tromey.com>
8460
8461 * c-valprint.c (c_value_print_inner): Rewrite.
8462
8463 2020-03-13 Tom Tromey <tom@tromey.com>
8464
8465 * valprint.c (generic_value_print_complex): New function.
8466 (generic_value_print): Use it.
8467
8468 2020-03-13 Tom Tromey <tom@tromey.com>
8469
8470 * valprint.c (generic_val_print_float): Don't call
8471 val_print_scalar_formatted.
8472 (generic_val_print, generic_value_print): Update.
8473
8474 2020-03-13 Tom Tromey <tom@tromey.com>
8475
8476 * valprint.c (generic_value_print_char): New function
8477 (generic_value_print): Use it.
8478
8479 2020-03-13 Tom Tromey <tom@tromey.com>
8480
8481 * valprint.c (generic_value_print_int): New function.
8482 (generic_value_print): Use it.
8483
8484 2020-03-13 Tom Tromey <tom@tromey.com>
8485
8486 * valprint.c (generic_value_print_bool): New function.
8487 (generic_value_print): Use it.
8488
8489 2020-03-13 Tom Tromey <tom@tromey.com>
8490
8491 * valprint.c (generic_val_print_func): Simplify.
8492 (generic_val_print, generic_value_print): Update.
8493
8494 2020-03-13 Tom Tromey <tom@tromey.com>
8495
8496 * valprint.c (generic_val_print_flags): Remove.
8497 (generic_val_print, generic_value_print): Update.
8498 (val_print_type_code_flags): Add original_value parameter.
8499
8500 2020-03-13 Tom Tromey <tom@tromey.com>
8501
8502 * valprint.c (generic_val_print): Update.
8503 (generic_value_print): Update.
8504 * valprint.c (generic_val_print_enum): Don't call
8505 val_print_scalar_formatted.
8506
8507 2020-03-13 Tom Tromey <tom@tromey.com>
8508
8509 * valprint.c (generic_value_print): Call generic_value_print_ptr.
8510 * valprint.c (generic_value_print_ptr): New function.
8511
8512 2020-03-13 Tom Tromey <tom@tromey.com>
8513
8514 * valprint.c (generic_value_print): Rewrite.
8515
8516 2020-03-13 Tom Tromey <tom@tromey.com>
8517
8518 * p-valprint.c (pascal_object_print_value_fields)
8519 (pascal_object_print_value): New functions.
8520
8521 2020-03-13 Tom Tromey <tom@tromey.com>
8522
8523 * p-valprint.c (pascal_value_print_inner): Rewrite.
8524
8525 2020-03-13 Tom Tromey <tom@tromey.com>
8526
8527 * f-valprint.c (f_value_print_innner): Rewrite.
8528
8529 2020-03-13 Tom Tromey <tom@tromey.com>
8530
8531 * m2-valprint.c (m2_print_unbounded_array): New overload.
8532 (m2_print_unbounded_array): Update.
8533 (m2_print_array_contents): Take a struct value.
8534 (m2_value_print_inner): Rewrite.
8535
8536 2020-03-13 Tom Tromey <tom@tromey.com>
8537
8538 * d-valprint.c (dynamic_array_type): Call d_value_print_inner.
8539 (d_value_print_inner): New function.
8540 * d-lang.h (d_value_print_inner): Declare.
8541 * d-lang.c (d_language_defn): Use d_value_print_inner.
8542
8543 2020-03-13 Tom Tromey <tom@tromey.com>
8544
8545 * go-valprint.c (go_value_print_inner): New function.
8546 * go-lang.h (go_value_print_inner): Declare.
8547 * go-lang.c (go_language_defn): Use go_value_print_inner.
8548
8549 2020-03-13 Tom Tromey <tom@tromey.com>
8550
8551 * rust-lang.c (val_print_struct, rust_print_enum): Use the value
8552 API.
8553 (rust_val_print): Rewrite.
8554 (rust_value_print_inner): New function, from rust_val_print.
8555 (rust_language_defn): Use rust_value_print_inner.
8556
8557 2020-03-13 Tom Tromey <tom@tromey.com>
8558
8559 * ada-valprint.c (ada_value_print_inner): New function.
8560 * ada-lang.h (ada_value_print_inner): Declare.
8561 * ada-lang.c (ada_language_defn): Use ada_value_print_inner.
8562
8563 2020-03-13 Tom Tromey <tom@tromey.com>
8564
8565 * f-valprint.c (f_value_print_innner): New function.
8566 * f-lang.h (f_value_print_innner): Declare.
8567 * f-lang.c (f_language_defn): Use f_value_print_innner.
8568
8569 2020-03-13 Tom Tromey <tom@tromey.com>
8570
8571 * p-valprint.c (pascal_value_print_inner): New function.
8572 * p-lang.h (pascal_value_print_inner): Declare.
8573 * p-lang.c (pascal_language_defn): Use pascal_value_print_inner.
8574
8575 2020-03-13 Tom Tromey <tom@tromey.com>
8576
8577 * m2-valprint.c (m2_value_print_inner): New function.
8578 * m2-lang.h (m2_value_print_inner): Declare.
8579 * m2-lang.c (m2_language_defn): Use m2_value_print_inner.
8580
8581 2020-03-13 Tom Tromey <tom@tromey.com>
8582
8583 * opencl-lang.c (opencl_language_defn): Use c_value_print_inner.
8584 * objc-lang.c (objc_language_defn): Use c_value_print_inner.
8585 * c-valprint.c (c_value_print_inner): New function.
8586 * c-lang.h (c_value_print_inner): Declare.
8587 * c-lang.c (c_language_defn, cplus_language_defn)
8588 (asm_language_defn, minimal_language_defn): Use
8589 c_value_print_inner.
8590
8591 2020-03-13 Tom Tromey <tom@tromey.com>
8592
8593 * p-valprint.c (pascal_object_print_value_fields): Now static.
8594 * p-lang.h (pascal_object_print_value_fields): Don't declare.
8595
8596 2020-03-13 Tom Tromey <tom@tromey.com>
8597
8598 * c-valprint.c (c_val_print_array): Simplify.
8599
8600 2020-03-13 Tom Tromey <tom@tromey.com>
8601
8602 * valprint.c (value_print_array_elements): New function.
8603 * valprint.h (value_print_array_elements): Declare.
8604
8605 2020-03-13 Tom Tromey <tom@tromey.com>
8606
8607 * printcmd.c (print_formatted): Use value_print_scalar_formatted.
8608 * mips-tdep.c (mips_print_register): Use
8609 value_print_scalar_formatted.
8610
8611 2020-03-13 Tom Tromey <tom@tromey.com>
8612
8613 * valprint.h (value_print_scalar_formatted): Declare.
8614 * valprint.c (value_print_scalar_formatted): New function.
8615
8616 2020-03-13 Tom Tromey <tom@tromey.com>
8617
8618 * valprint.h (generic_value_print): Declare.
8619 * valprint.c (generic_value_print): New function.
8620
8621 2020-03-13 Tom Tromey <tom@tromey.com>
8622
8623 * valprint.c (do_val_print): Call la_value_print_inner, if
8624 available.
8625 * rust-lang.c (rust_language_defn): Update.
8626 * p-lang.c (pascal_language_defn): Update.
8627 * opencl-lang.c (opencl_language_defn): Update.
8628 * objc-lang.c (objc_language_defn): Update.
8629 * m2-lang.c (m2_language_defn): Update.
8630 * language.h (struct language_defn) <la_value_print_inner>: New
8631 member.
8632 * language.c (unknown_language_defn, auto_language_defn): Update.
8633 * go-lang.c (go_language_defn): Update.
8634 * f-lang.c (f_language_defn): Update.
8635 * d-lang.c (d_language_defn): Update.
8636 * c-lang.c (c_language_defn, cplus_language_defn)
8637 (asm_language_defn, minimal_language_defn): Update.
8638 * ada-lang.c (ada_language_defn): Update.
8639
8640 2020-03-13 Tom Tromey <tom@tromey.com>
8641
8642 * c-valprint.c (c_value_print): Use common_val_print.
8643
8644 2020-03-13 Tom Tromey <tom@tromey.com>
8645
8646 * cp-valprint.c (cp_print_static_field): Use common_val_print.
8647
8648 2020-03-13 Tom Tromey <tom@tromey.com>
8649
8650 * f-valprint.c (f77_print_array_1, f_val_print): Use
8651 common_val_print.
8652
8653 2020-03-13 Tom Tromey <tom@tromey.com>
8654
8655 * riscv-tdep.c (riscv_print_one_register_info): Use
8656 common_val_print.
8657
8658 2020-03-13 Tom Tromey <tom@tromey.com>
8659
8660 * mi/mi-main.c (output_register): Use common_val_print.
8661
8662 2020-03-13 Tom Tromey <tom@tromey.com>
8663
8664 * infcmd.c (default_print_one_register_info): Use
8665 common_val_print.
8666
8667 2020-03-13 Tom Tromey <tom@tromey.com>
8668
8669 * valprint.h (common_val_print_checked): Declare.
8670 * valprint.c (common_val_print_checked): New function.
8671 * stack.c (print_frame_arg): Use common_val_print_checked.
8672
8673 2020-03-13 Tom Tromey <tom@tromey.com>
8674
8675 * valprint.c (do_val_print): New function, from val_print.
8676 (val_print): Use do_val_print.
8677 (common_val_print): Use do_val_print.
8678
8679 2020-03-13 Tom Tromey <tom@tromey.com>
8680
8681 * valprint.c (value_print): Use scoped_value_mark.
8682
8683 2020-03-13 Tom de Vries <tdevries@suse.de>
8684
8685 PR symtab/25646
8686 * psymtab.c (partial_symtab::partial_symtab): Don't set
8687 globals_offset and statics_offset. Push element onto
8688 current_global_psymbols and current_static_psymbols stacks.
8689 (concat): New function.
8690 (end_psymtab_common): Set globals_offset and statics_offset. Pop
8691 element from current_global_psymbols and current_static_psymbols
8692 stacks. Concat popped elements to global_psymbols and
8693 static_symbols.
8694 (add_psymbol_to_list): Use current_global_psymbols and
8695 current_static_psymbols stacks.
8696 * psymtab.h (class psymtab_storage): Add current_global_psymbols and
8697 current_static_psymbols fields.
8698
8699 2020-03-12 Christian Biesinger <cbiesinger@google.com>
8700
8701 * corelow.c (sniff_core_bfd): Remove.
8702 (class core_target) <m_core_vec>: Remove.
8703 (core_target::core_target): Update.
8704 (core_file_fns): Remove.
8705 (deprecated_add_core_fns): Remove.
8706 (default_core_sniffer): Remove.
8707 (sniff_core_bfd): Remove.
8708 (default_check_format): Remove.
8709 (gdb_check_format): Remove.
8710 (core_target_open): Update.
8711 (core_target::get_core_register_section): Update.
8712 (get_core_registers_cb): Update.
8713 (core_target::fetch_registers): Update.
8714 * gdbcore.h (struct core_fns): Remove.
8715 (deprecated_add_core_fns): Remove.
8716 (default_core_sniffer): Remove.
8717 (default_check_format): Remove.
8718
8719 2020-03-12 Tom Tromey <tom@tromey.com>
8720
8721 * arm-tdep.c (struct arm_mapping_symbol) <value>: Now a
8722 CORE_ADDR.
8723 (struct arm_exidx_entry) <addr>: Now a CORE_ADDR.
8724
8725 2020-03-12 Tom Tromey <tom@tromey.com>
8726
8727 * remote.c (remote_target::download_tracepoint)
8728 (remote_target::enable_tracepoint)
8729 (remote_target::disable_tracepoint): Use phex, not sprintf_vma.
8730 * breakpoint.c (print_recreate_masked_watchpoint): Use phex, not
8731 sprintf_vma.
8732
8733 2020-03-12 Tom Tromey <tom@tromey.com>
8734
8735 * symfile-mem.c: Update CORE_ADDR size assert.
8736
8737 2020-03-12 Simon Marchi <simon.marchi@efficios.com>
8738
8739 * selftest.m4: Move to gdbsupport/.
8740 * acinclude.m4: Update path to selftest.m4.
8741
8742 2020-03-12 Simon Marchi <simon.marchi@efficios.com>
8743
8744 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Rename to...
8745 (SELFTESTS_SRCS): ... this. Add disasm-selftests.c,
8746 gdbarch-selfselftests.c and selftest-arch.c.
8747 (SUBDIR_UNITTESTS_OBS): Rename to...
8748 (SELFTESTS_OBS): ... this.
8749 (COMMON_SFILES): Remove disasm-selftests.c and
8750 gdbarch-selftests.c.
8751 * configure.ac: Don't add selftest-arch.{c,o} to
8752 CONFIG_{SRCS,OBS}.
8753 * disasm-selftests.c, gdbarch-selftests.c: Remove GDB_SELF_TEST
8754 preprocessor conditions.
8755
8756 2020-03-12 Simon Marchi <simon.marchi@efficios.com>
8757
8758 * configure.ac: Don't source bfd/development.sh.
8759 * selftest.m4: Modify comment.
8760 * configure: Re-generate.
8761
8762 2020-03-12 Simon Marchi <simon.marchi@efficios.com>
8763
8764 * selftest.m4 (GDB_AC_SELFTEST): Error out if $development is
8765 not "true" or "false".
8766 * configure: Re-generate.
8767
8768 2020-03-12 Christian Biesinger <cbiesinger@google.com>
8769
8770 * Makefile.in (HFILES_NO_SRCDIR): Add new arm-nbsd-tdep.h file.
8771 * arm-nbsd-nat.c (arm_supply_gregset): Moved to arm-nbsd-tdep and
8772 renamed to arm_nbsd_supply_gregset.
8773 (fetch_register): Update to call arm_nbsd_supply_gregset.
8774 (fetch_regs): Remove in favor of fetch_register with a -1 regno.
8775 (arm_netbsd_nat_target::fetch_registers): Update.
8776 (fetch_elfcore_registers): Removed.
8777 (_initialize_arm_netbsd_nat): Removed call to deprecated_add_core_fns.
8778 * arm-nbsd-tdep.c (struct arm_nbsd_reg): New struct.
8779 (arm_nbsd_supply_gregset): Moved from arm-nbsd-nat.c and updated to
8780 not require NetBSD system headers.
8781 (arm_nbsd_regset): New struct.
8782 (arm_nbsd_iterate_over_regset_sections): New function.
8783 (arm_netbsd_init_abi_common): Updated to call
8784 set_gdbarch_iterate_over_regset_sections.
8785 * arm-nbsd-tdep.h: New file.
8786
8787 2020-03-11 Kevin Buettner <kevinb@redhat.com>
8788
8789 * symtab.c (find_pc_sect_line): Add check which prevents infinite
8790 recursion.
8791
8792 2020-03-11 Simon Marchi <simon.marchi@efficios.com>
8793
8794 * configure: Re-generate.
8795
8796 2020-03-11 Tom Tromey <tromey@adacore.com>
8797
8798 * ada-typeprint.c (print_choices): Fix comment.
8799
8800 2020-03-11 Andrew Burgess <andrew.burgess@embecosm.com>
8801
8802 * buildsyms.c (buildsym_compunit::record_line): Avoid accessing
8803 previous item in the list, when the list has no items.
8804
8805 2020-03-11 Tom de Vries <tdevries@suse.de>
8806
8807 * dwarf2/loc.c (dwarf2_evaluate_property): Handle NULL frame in
8808 PROP_LOCLIST handling code.
8809
8810 2020-03-10 Andrew Burgess <andrew.burgess@embecosm.com>
8811
8812 * buildsym-legacy.c (record_line): Pass extra parameter to
8813 record_line.
8814 * buildsym.c (buildsym_compunit::record_line): Take an extra
8815 parameter, reduce duplication in the line table, and record the
8816 is_stmt flag in the line table.
8817 * buildsym.h (buildsym_compunit::record_line): Add extra
8818 parameter.
8819 * disasm.c (do_mixed_source_and_assembly_deprecated): Ignore
8820 non-statement lines.
8821 * dwarf2/read.c (dwarf_record_line_1): Add extra parameter, pass
8822 this to the symtab builder.
8823 (dwarf_finish_line): Pass extra parameter to dwarf_record_line_1.
8824 (lnp_state_machine::record_line): Pass a suitable is_stmt flag
8825 through to dwarf_record_line_1.
8826 * infrun.c (process_event_stop_test): When stepping, don't stop at
8827 a non-statement instruction, and only refresh the step info when
8828 we land in the middle of a line's range. Also add an extra
8829 comment.
8830 * jit.c (jit_symtab_line_mapping_add_impl): Initialise is_stmt
8831 field.
8832 * record-btrace.c (btrace_find_line_range): Only record lines
8833 marked as is-statement.
8834 * stack.c (frame_show_address): Show the frame address if we are
8835 in a non-statement sal.
8836 * symmisc.c (dump_symtab_1): Print the is_stmt flag.
8837 (maintenance_print_one_line_table): Print a header for the is_stmt
8838 column, and include is_stmt information in the output.
8839 * symtab.c (find_pc_sect_line): Find lines marked as statements in
8840 preference to non-statements.
8841 (find_pcs_for_symtab_line): Prefer is-statement entries.
8842 (find_line_common): Likewise.
8843 * symtab.h (struct linetable_entry): Add is_stmt field.
8844 (struct symtab_and_line): Likewise.
8845 * xcoffread.c (arrange_linetable): Initialise is_stmt field when
8846 arranging the line table.
8847
8848 2020-03-07 Tom de Vries <tdevries@suse.de>
8849
8850 * dwarf2/read.c (read_typedef): Treat anonymous typedef as forwarder
8851 DIE.
8852
8853 2020-03-07 Tom Tromey <tom@tromey.com>
8854
8855 * valops.c (value_literal_complex): Remove obsolete comment.
8856 * gdbtypes.h (enum type_code) <TYPE_CODE_FLT>: Remove obsolete
8857 comment.
8858
8859 2020-03-06 Simon Marchi <simon.marchi@polymtl.ca>
8860
8861 * infrun.h: Forward-declare thread_info.
8862 (set_step_info): Add thread_info parameter, add doc.
8863 * infrun.c (set_step_info): Add thread_info parameter, move doc
8864 to header.
8865 * infrun.c (process_event_stop_test): Pass thread to
8866 set_step_info call.
8867 * infcmd.c (set_step_frame): Add thread_info pointer, pass it to
8868 set_step_info.
8869 (prepare_one_step): Add thread_info parameter, pass it to
8870 set_step_frame and prepare_one_step (recursive) call.
8871 (step_1): Pass thread to prepare_one_step call.
8872 (step_command_fsm::should_stop): Pass thread to
8873 prepare_one_step.
8874 (until_next_fsm): Pass thread to set_step_frame call.
8875 (finish_command): Pass thread to set_step_info call.
8876
8877 2020-03-06 Hannes Domani <ssbssa@yahoo.de>
8878
8879 * windows-tdep.c (windows_solib_create_inferior_hook):
8880 Check if inferior is running.
8881
8882 2020-03-06 Tom de Vries <tdevries@suse.de>
8883
8884 * NEWS: Fix "the the".
8885 * ctfread.c: Same.
8886
8887 2020-03-06 Tom de Vries <tdevries@suse.de>
8888
8889 * psymtab.c (psymtab_to_symtab): Don't print "done.".
8890
8891 2020-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
8892
8893 * .dir-locals.el: Add a comment referencing the other copies of
8894 this file.
8895
8896 2020-03-05 John Baldwin <jhb@FreeBSD.org>
8897
8898 * fbsd-tdep.c (fbsd_make_corefile_notes): Use std::string for
8899 psargs.
8900
8901 2020-03-05 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
8902
8903 * .gitattributes: New file.
8904
8905 2020-03-04 Tom Tromey <tom@tromey.com>
8906
8907 * symmisc.c (print_symbol_bcache_statistics)
8908 (print_objfile_statistics): Update.
8909 * symfile.c (allocate_symtab): Use intern.
8910 * psymtab.c (partial_symtab::partial_symtab): Use intern.
8911 * objfiles.h (struct objfile_per_bfd_storage) <filename_cache,
8912 macro_cache>: Remove.
8913 <string_cache>: New member.
8914 (struct objfile) <intern>: New methods.
8915 * elfread.c (elf_symtab_read): Use intern.
8916 * dwarf2/read.c (fixup_go_packaging): Intern package name.
8917 (dwarf2_compute_name, dwarf2_physname)
8918 (create_dwo_unit_in_dwp_v1, create_dwo_unit_in_dwp_v2): Intern
8919 names.
8920 (guess_partial_die_structure_name): Update.
8921 (partial_die_info::fixup): Intern name.
8922 (dwarf2_canonicalize_name): Change parameter to objfile. Intern
8923 name.
8924 (dwarf2_name): Intern name. Update.
8925 * buildsym.c (buildsym_compunit::get_macro_table): Use
8926 string_cache.
8927
8928 2020-03-04 Tom Tromey <tom@tromey.com>
8929
8930 * jit.c (bfd_open_from_target_memory): Make "target" const.
8931 * corefile.c (gnutarget): Now const.
8932 * gdbcore.h (gnutarget): Now const.
8933
8934 2020-03-04 Hannes Domani <ssbssa@yahoo.de>
8935
8936 * NEWS: Mention support for WOW64 processes.
8937 * amd64-windows-nat.c (amd64_mappings): Rename and remove static.
8938 (amd64_windows_segment_register_p): Remove static.
8939 (_initialize_amd64_windows_nat): Update.
8940 * configure.nat <windows> (NATDEPFILES): Add i386-windows-nat.o.
8941 * i386-windows-nat.c (context_offset): Update.
8942 (i386_mappings): Rename and remove static.
8943 (i386_windows_segment_register_p): Remove static.
8944 (_initialize_i386_windows_nat): Update.
8945 * windows-nat.c (STATUS_WX86_BREAKPOINT): New macro.
8946 (STATUS_WX86_SINGLE_STEP): New macro.
8947 (EnumProcessModulesEx): New macro.
8948 (Wow64SuspendThread): New macro.
8949 (Wow64GetThreadContext): New macro.
8950 (Wow64SetThreadContext): New macro.
8951 (Wow64GetThreadSelectorEntry): New macro.
8952 (windows_set_context_register_offsets): Add static.
8953 (windows_set_segment_register_p): Likewise.
8954 (windows_add_thread): Adapt for WOW64 processes.
8955 (windows_fetch_one_register): Likewise.
8956 (windows_nat_target::fetch_registers): Likewise.
8957 (windows_store_one_register): Likewise.
8958 (display_selector): Likewise.
8959 (display_selectors): Likewise.
8960 (handle_exception): Likewise.
8961 (windows_continue): Likewise.
8962 (windows_nat_target::resume): Likewise.
8963 (windows_add_all_dlls): Likewise.
8964 (do_initial_windows_stuff): Likewise.
8965 (windows_nat_target::attach): Likewise.
8966 (windows_get_exec_module_filename): Likewise.
8967 (windows_nat_target::create_inferior): Likewise.
8968 (windows_xfer_siginfo): Likewise.
8969 (_initialize_loadable): Initialize Wow64SuspendThread,
8970 Wow64GetThreadContext, Wow64SetThreadContext,
8971 Wow64GetThreadSelectorEntry and EnumProcessModulesEx.
8972 * windows-nat.h (windows_set_context_register_offsets):
8973 Remove declaration.
8974 (windows_set_segment_register_p): Likewise.
8975 (i386_windows_segment_register_p): Add declaration.
8976 (amd64_windows_segment_register_p): Likewise.
8977
8978 2020-03-04 Luis Machado <luis.machado@linaro.org>
8979
8980 Revert aa66aac47b4dd38f9524ddb5546c08cc09930d37 due to regressions
8981 in "info registers" for AArch64/ARM.
8982
8983 The change caused "info registers" to not print GPR's.
8984
8985 gdb/ChangeLog:
8986
8987 2020-02-01 Shahab Vahedi <shahab@synopsys.com>
8988
8989 * target-descriptions.c (tdesc_register_in_reggroup_p): Return 0
8990 when reg->group is empty and reggroup is not.
8991
8992 2020-03-03 Tom Tromey <tromey@adacore.com>
8993
8994 * dwarf2/frame.c (struct dwarf2_frame_cache)
8995 <checked_tailcall_bottom, entry_cfa_sp_offset,
8996 entry_cfa_sp_offset_p>: Remove members.
8997 (dwarf2_frame_cache): Call dwarf2_tailcall_sniffer_first.
8998 (dwarf2_frame_prev_register): Don't call
8999 dwarf2_tailcall_sniffer_first.
9000 (dwarf2_append_unwinders): Don't append tailcall unwinder.
9001 * frame-unwind.c (add_unwinder): New fuction.
9002 (frame_unwind_init): Use it. Add tailcall unwinder.
9003
9004 2020-03-03 Andrew Burgess <andrew.burgess@embecosm.com>
9005 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
9006
9007 * f-valprint.c (f_val_print): Handle TYPE_CODE_BOOL, any non-zero
9008 value should be printed as true.
9009
9010 2020-03-03 Hannes Domani <ssbssa@yahoo.de>
9011
9012 * windows-tdep.c (windows_solib_create_inferior_hook): New function.
9013 (windows_init_abi): Set and use windows_so_ops.
9014
9015 2020-03-03 Sergio Durigan Junior <sergiodj@redhat.com>
9016
9017 * printcmd.c (print_c_string): Check also for TYPE_CODE_PTR
9018 when verifying if dealing with a convenience variable.
9019
9020 2020-03-03 Luis Machado <luis.machado@linaro.org>
9021
9022 * auxv.c (default_print_auxv_entry): Add new AUXV entries.
9023
9024 2020-03-02 Simon Marchi <simon.marchi@polymtl.ca>
9025
9026 * infrun.c (gdbarch_supports_displaced_stepping): New.
9027 (use_displaced_stepping): Break up conditions in smaller pieces.
9028 Use gdbarch_supports_displaced_stepping.
9029 (displaced_step_prepare_throw): Use
9030 gdbarch_supports_displaced_stepping.
9031
9032 2020-03-02 Andrew Burgess <andrew.burgess@embecosm.com>
9033
9034 * NEWS: Mention new behaviour of the history filename.
9035 * top.c (write_history_p): Add comment.
9036 (show_write_history_p): Add header comment, give a different
9037 message when history writing is on, but the history filename is
9038 empty.
9039 (history_filename): Add comment.
9040 (history_filename_empty): New function.
9041 (show_history_filename): Add header comment, give a different
9042 message when the filename is empty.
9043 (init_history): Compare history_filename against nullptr, and only
9044 read history if the filename is not empty.
9045 (set_history_filename): Add header comment, and only make
9046 non-empty filenames absolute.
9047 (init_main): Make the filename argument to 'set history filename'
9048 optional.
9049
9050 2020-03-02 Christian Biesinger <cbiesinger@google.com>
9051
9052 * arm-nbsd-nat.c (arm_supply_fparegset): Rename to...
9053 (arm_supply_vfpregset): ...this, and update to use VFP registers.
9054 (fetch_fp_register): Update.
9055 (fetch_fp_regs): Update.
9056 (store_fp_register): Update.
9057 (store_fp_regs): Update.
9058 (arm_netbsd_nat_target::read_description): New function.
9059 (fetch_elfcore_registers): Update.
9060
9061 2020-03-02 Andrew Burgess <andrew.burgess@embecosm.com>
9062
9063 * remote.c (remote_target::remote_parse_stop_reply): Don't use the
9064 general_thread if the stop reply is missing a thread-id.
9065 (remote_target::process_stop_reply): Use the first non-exited
9066 thread if the target didn't pass a thread-id.
9067 * infrun.c (do_target_wait): Move call to
9068 switch_to_inferior_no_thread to ....
9069 (do_target_wait_1): ... here.
9070
9071 2020-02-29 Jon Turney <jon.turney@dronecode.org.uk>
9072
9073 * debuginfod-support.c: Include defs.h first.
9074
9075 2020-02-28 Tom de Vries <tdevries@suse.de>
9076
9077 * symfile.c (set_initial_language): Use default language for lookup.
9078
9079 2020-02-28 Simon Marchi <simon.marchi@efficios.com>
9080
9081 * dwarf2/read.c (cutu_reader::init_tu_and_read_dwo_dies): Remove
9082 reader variable, pass `this` to read_cutu_die_from_dwo.
9083
9084 2020-02-27 Aaron Merey <amerey@redhat.com>
9085
9086 * source.c (open_source_file): Check for nullptr when computing
9087 srcpath.
9088
9089 2020-02-27 Tom Tromey <tromey@adacore.com>
9090
9091 * dwarf2/read.c (struct field_info) <nfields>: Now a method, not a
9092 member.
9093 (dwarf2_add_field): Don't update nfields.
9094 (dwarf2_attach_fields_to_type, process_structure_scope): Update.
9095
9096 2020-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
9097
9098 * gdbtypes.c (create_array_type_with_stride): Use std::abs not
9099 abs.
9100
9101 2020-02-26 Tom Tromey <tom@tromey.com>
9102
9103 * dwarf2/read.c (struct dwarf2_include_psymtab): New.
9104 (dwarf2_create_include_psymtab): Use dwarf2_include_psymtab.
9105 (dwarf2_psymtab::expand_psymtab, dwarf2_psymtab::readin_p)
9106 (dwarf2_psymtab::get_compunit_symtab): Remove null checks for
9107 per_cu_data.
9108
9109 2020-02-26 Tom Tromey <tom@tromey.com>
9110
9111 * dwarf2/index-write.c (psym_index_map): Change type.
9112 (add_address_entry_worker, write_one_signatured_type)
9113 (recursively_count_psymbols, recursively_write_psymbols)
9114 (class debug_names, psyms_seen_size, write_gdbindex)
9115 (write_debug_names): Use partial_symtab, not dwarf2_psymtab.
9116
9117 2020-02-26 Aaron Merey <amerey@redhat.com>
9118
9119 * Makefile.in: Handle optional debuginfod support.
9120 * NEWS: Update.
9121 * README: Add --with-debuginfod summary.
9122 * config.in: Regenerate.
9123 * configure: Regenerate.
9124 * configure.ac: Handle optional debuginfod support.
9125 * debuginfod-support.c: debuginfod helper functions.
9126 * debuginfod-support.h: Ditto.
9127 * doc/gdb.texinfo: Add --with-debuginfod to configure options
9128 summary.
9129 * dwarf2/read.c (dwarf2_get_dwz_file): Query debuginfod servers
9130 when a dwz file cannot be found.
9131 * elfread.c (elf_symfile_read): Query debuginfod servers when a
9132 debuginfo file cannot be found.
9133 * source.c (open_source_file): Query debuginfod servers when a
9134 source file cannot be found.
9135 * top.c (print_gdb_configuration): Include
9136 --{with,without}-debuginfod in the output.
9137
9138 2020-02-26 Jérémie Galarneau <jeremie.galarneau@efficios.com>
9139
9140 * thread.c (thr_try_catch_cmd): Print thread name.
9141
9142 2020-02-26 Simon Marchi <simon.marchi@efficios.com>
9143
9144 * dwarf2/loc.h (dwarf2_fetch_die_loc_sect_off,
9145 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
9146 dwarf2_fetch_die_type_sect_off): Move to...
9147 * dwarf2/read.h (dwarf2_fetch_die_loc_sect_off,
9148 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
9149 dwarf2_fetch_die_type_sect_off): ... here.
9150 * dwarf2/read.c (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 doc to header file.
9153
9154 2020-02-26 Tom de Vries <tdevries@suse.de>
9155
9156 PR gdb/25603
9157 * symfile.c (set_initial_language): Exit-early if
9158 language_mode == language_mode_manual.
9159
9160 2020-02-25 Simon Marchi <simon.marchi@polymtl.ca>
9161
9162 * dwarf2/loc.h (dwarf2_read_addr_index): Move...
9163 * dwarf2/read.h (dwarf2_read_addr_index): ... here.
9164 * dwarf2/read.c (dwarf2_read_addr_index): Move doc to header.
9165
9166 2020-02-25 Andrew Burgess <andrew.burgess@embecosm.com>
9167
9168 * gdbtypes.c (create_array_type_with_stride): Handle negative
9169 array strides.
9170 * valarith.c (value_subscripted_rvalue): Likewise.
9171
9172 2020-02-25 Luis Machado <luis.machado@linaro.org>
9173
9174 * aarch64-tdep.c (aarch64_vnv_type): Fix comment typo.
9175
9176 2020-02-25 Simon Marchi <simon.marchi@polymtl.ca>
9177
9178 * loc.h (dwarf2_get_die_type): Move to...
9179 * read.h (dwarf2_get_die_type): ... here.
9180 * read.c (dwarf2_get_die_type): Move doc to header.
9181
9182 2020-02-25 Joel Brobecker <brobecker@adacore.com>
9183
9184 * copypright.py (EXCLUDE_LIST): Add 'gnulib/config.in' and
9185 'gnulib/Makefile.in' to the list.
9186
9187 2020-02-24 Tom Tromey <tom@tromey.com>
9188
9189 * dwarf2/read.h (struct type_unit_unshareable) <num_symtabs>:
9190 Remove.
9191 * dwarf2/read.c (dwarf2_cu::setup_type_unit_groups): Use
9192 XOBNEWVEC.
9193
9194 2020-02-24 Tom Tromey <tom@tromey.com>
9195
9196 * dwarf2/read.h (struct dwarf2_per_cu_data) <type_unit_group_p>:
9197 New method.
9198 * dwarf2/read.c (IS_TYPE_UNIT_GROUP): Remove.
9199 (dw2_do_instantiate_symtab, dw2_get_file_names)
9200 (build_type_psymtab_dependencies, load_full_type_unit): Update.
9201
9202 2020-02-24 Tom Tromey <tom@tromey.com>
9203
9204 * dwarf2read.c (dwarf2_build_psymtabs_hard): Use
9205 make_scoped_restore.
9206 (dwarf2_psymtab::read_symtab): Don't clear
9207 reading_partial_symbols.
9208
9209 2020-02-24 Tom de Vries <tdevries@suse.de>
9210
9211 PR gdb/25592
9212 * stack.c (iterate_over_block_locals): Handle LOC_CONST.
9213
9214 2020-02-24 Tom de Vries <tdevries@suse.de>
9215
9216 * tui/tui-layout.c (_initialize_tui_layout): Fix help messages for
9217 commands layout next/prev/regs.
9218
9219 2020-02-22 Tom Tromey <tom@tromey.com>
9220
9221 * dwarf2/loc.h (dwarf2_compile_expr_to_ax): Don't declare.
9222 * dwarf2/loc.c (dwarf2_compile_expr_to_ax): Now static.
9223
9224 2020-02-22 Tom Tromey <tom@tromey.com>
9225
9226 * tui/tui-data.h (TUI_DISASM_WIN): Cast to tui_disasm_window.
9227
9228 2020-02-22 Tom Tromey <tom@tromey.com>
9229
9230 * tui/tui-win.c (_initialize_tui_win): Add usage text.
9231 * tui/tui-stack.c (_initialize_tui_stack): Add usage text.
9232 * tui/tui-regs.c (_initialize_tui_regs): Add usage text.
9233 * tui/tui.c (_initialize_tui): Add usage text.
9234
9235 2020-02-22 Tom Tromey <tom@tromey.com>
9236
9237 * tui/tui-win.c (tui_set_focus_command)
9238 (tui_set_win_height_command): Use error_no_arg.
9239 (_initialize_tui_win): Update help text.
9240 (FOCUS_USAGE, WIN_HEIGHT_USAGE): Don't define.
9241
9242 2020-02-22 Tom Tromey <tom@tromey.com>
9243
9244 * tui/tui-layout.c (extract_display_start_addr): Rewrite.
9245 * tui/tui-disasm.h (struct tui_disasm_window)
9246 <display_start_addr>: Declare.
9247 * tui/tui-source.h (struct tui_source_window)
9248 <display_start_addr>: Declare.
9249 * tui/tui-winsource.h (struct tui_source_window_base)
9250 <show_source_line, display_start_addr>: New methods.
9251 <m_horizontal_offset, m_start_line_or_addr, m_gdbarch, m_content>:
9252 Rename and move to protected section.
9253 * tui/tui-winsource.c (tui_source_window_base::update_source_window)
9254 (tui_source_window_base::do_erase_source_content): Update.
9255 (tui_source_window_base::show_source_line): Now a method.
9256 (tui_source_window_base::show_source_content)
9257 (tui_source_window_base::tui_source_window_base)
9258 (tui_source_window_base::rerender)
9259 (tui_source_window_base::refill)
9260 (tui_source_window_base::do_scroll_horizontal)
9261 (tui_source_window_base::set_is_exec_point_at)
9262 (tui_source_window_base::update_breakpoint_info)
9263 (tui_source_window_base::update_exec_info): Update.
9264 * tui/tui-source.c (tui_source_window::set_contents)
9265 (tui_source_window::showing_source_p)
9266 (tui_source_window::do_scroll_vertical)
9267 (tui_source_window::location_matches_p)
9268 (tui_source_window::line_is_displayed): Update.
9269 (tui_source_window::display_start_addr): New method.
9270 * tui/tui-disasm.c (tui_disasm_window::set_contents)
9271 (tui_disasm_window::do_scroll_vertical)
9272 (tui_disasm_window::location_matches_p): Update.
9273 (tui_disasm_window::display_start_addr): New method.
9274
9275 2020-02-22 Tom Tromey <tom@tromey.com>
9276
9277 * NEWS: Add entry for gdb.register_window_type.
9278 * tui/tui-layout.h (window_factory): New typedef.
9279 (tui_register_window): Declare.
9280 * tui/tui-layout.c (saved_tui_windows): New global.
9281 (tui_apply_current_layout): Use it.
9282 (tui_register_window): New function.
9283 * python/python.c (do_start_initialization): Call
9284 gdbpy_initialize_tui.
9285 (python_GdbMethods): Add "register_window_type" function.
9286 * python/python-internal.h (gdbpy_register_tui_window)
9287 (gdbpy_initialize_tui): Declare.
9288 * python/py-tui.c: New file.
9289 * Makefile.in (SUBDIR_PYTHON_SRCS): Add py-tui.c.
9290
9291 2020-02-22 Tom Tromey <tom@tromey.com>
9292
9293 * tui/tui-io.c (do_tui_putc): Don't omit annotations.
9294
9295 2020-02-22 Tom Tromey <tom@tromey.com>
9296
9297 * tui/tui-win.c (tui_set_win_focus_to): Move to tui-data.c.
9298 * tui/tui-data.h (tui_set_win_with_focus): Don't declare.
9299 * tui/tui-data.c (tui_set_win_with_focus): Remove.
9300 (tui_set_win_focus_to): Move from tui-win.c.
9301
9302 2020-02-22 Tom Tromey <tom@tromey.com>
9303
9304 * tui/tui-layout.c (make_standard_window, get_locator_window): New
9305 functions.
9306 (known_window_types): New global.
9307 (tui_get_window_by_name): Reimplement.
9308 (initialize_known_windows): New function.
9309 (validate_window_name): Rewrite.
9310 (_initialize_tui_layout): Call initialize_known_windows.
9311
9312 2020-02-22 Tom Tromey <tom@tromey.com>
9313
9314 * tui/tui.h (enum tui_win_type) <LOCATOR_WIN, DATA_ITEM_WIN>:
9315 Remove constants.
9316 * tui/tui-winsource.h (struct tui_source_window_base)
9317 <tui_source_window_base>: Remove parameter.
9318 * tui/tui-winsource.c
9319 (tui_source_window_base::tui_source_window_base): Remove
9320 parameter.
9321 (tui_source_window_base::refill): Update.
9322 * tui/tui-stack.h (struct tui_locator_window)
9323 <tui_locator_window>: Update.
9324 * tui/tui-source.h (struct tui_source_window) <tui_source_window>:
9325 Default the constructor.
9326 * tui/tui-regs.h (struct tui_data_item_window)
9327 <tui_data_item_window>: Default the constructor.
9328 (struct tui_data_window) <tui_data_window>: Likewise.
9329 * tui/tui-disasm.h (struct tui_disasm_window) <tui_disasm_window>:
9330 Default the constructor.
9331 * tui/tui-data.h (struct tui_gen_win_info) <tui_gen_win_info>:
9332 Default the constructor.
9333 <type>: Remove.
9334 (struct tui_win_info) <tui_win_info>: Default the constructor.
9335 * tui/tui-data.c (tui_win_info::tui_win_info): Remove.
9336 * tui/tui-command.h (struct tui_cmd_window) <tui_cmd_window>:
9337 Default the constructor.
9338
9339 2020-02-22 Tom Tromey <tom@tromey.com>
9340
9341 * tui/tui-wingeneral.h (tui_make_all_invisible): Don't declare.
9342 * tui/tui-wingeneral.c (tui_make_all_invisible): Remove.
9343 * tui/tui-win.c (tui_resize_all): Don't call
9344 tui_delete_invisible_windows.
9345 * tui/tui-layout.c (tui_apply_current_layout): Delete windows when
9346 done.
9347 (tui_set_layout): Update.
9348 (tui_add_win_to_layout): Don't call tui_delete_invisible_windows.
9349 * tui/tui-data.h (tui_delete_invisible_windows): Don't declare.
9350 * tui/tui-data.c (tui_delete_invisible_windows): Remove.
9351
9352 2020-02-22 Tom Tromey <tom@tromey.com>
9353
9354 * tui/tui-win.c (tui_partial_win_by_name): Handle ambiguity
9355 correctly.
9356
9357 2020-02-22 Tom Tromey <tom@tromey.com>
9358
9359 * tui/tui-data.c (tui_next_win, tui_prev_win): Reimplement.
9360
9361 2020-02-22 Tom Tromey <tom@tromey.com>
9362
9363 * tui/tui-winsource.h (struct tui_source_window_iterator)
9364 <inner_iterator>: New etytypedef.
9365 <tui_source_window_iterator>: Take "end" parameter.
9366 <tui_source_window_iterator>: Take iterator.
9367 <operator*, advance>: Update.
9368 <m_iter>: Change type.
9369 <m_end>: New field.
9370 (struct tui_source_windows) <begin, end>: Update.
9371 * tui/tui-layout.c (tui_windows): New global.
9372 (tui_apply_current_layout): Clear tui_windows.
9373 (tui_layout_window::apply): Update tui_windows.
9374 * tui/tui-data.h (tui_windows): Declare.
9375 (all_tui_windows): Now inline function.
9376 (class tui_window_iterator, struct all_tui_windows): Remove.
9377
9378 2020-02-22 Tom Tromey <tom@tromey.com>
9379
9380 PR tui/17850:
9381 * tui/tui-win.c (tui_gen_win_info::max_width): New method.
9382 * tui/tui-layout.h (class tui_layout_base) <get_sizes>: Add
9383 "height" argument.
9384 (class tui_layout_window) <get_sizes>: Likewise.
9385 (class tui_layout_split) <tui_layout_split>: Add "vertical"
9386 argument.
9387 <get_sizes>: Add "height" argument.
9388 <m_vertical>: New field.
9389 * tui/tui-layout.c (tui_layout_split::clone): Update.
9390 (tui_layout_split::get_sizes): Add "height" argument.
9391 (tui_layout_split::adjust_size, tui_layout_split::apply): Update.
9392 (tui_new_layout_command): Parse "-horizontal".
9393 (_initialize_tui_layout): Update help string.
9394 (tui_layout_split::specification): Add "-horizontal" when needed.
9395 * tui/tui-layout.c (tui_layout_window::get_sizes): Add "height"
9396 argument.
9397 * tui/tui-data.h (struct tui_gen_win_info) <max_width, min_width>:
9398 New methods.
9399
9400 2020-02-22 Tom Tromey <tom@tromey.com>
9401
9402 * tui/tui-layout.h (enum tui_adjust_result): New.
9403 (class tui_layout_base) <adjust_size>: Return tui_adjust_result.
9404 (class tui_layout_window) <adjust_size>: Return
9405 tui_adjust_result. Rewrite.
9406 (class tui_layout_split) <adjust_size>: Return tui_adjust_result.
9407 * tui/tui-layout.c (tui_layout_split::adjust_size): Update.
9408
9409 2020-02-22 Tom Tromey <tom@tromey.com>
9410
9411 * tui/tui-layout.h (class tui_layout_split) <add_split>: Change
9412 parameter and return types.
9413 (class tui_layout_base) <specification>: Add "depth".
9414 (class tui_layout_window) <specification>: Add "depth".
9415 (class tui_layout_split) <specification>: Add "depth".
9416 * tui/tui-layout.c (tui_layout_split::add_split): Change parameter
9417 and return types.
9418 (tui_new_layout_command): Parse sub-layouts.
9419 (_initialize_tui_layout): Update help string.
9420 (tui_layout_window::specification): Add "depth".
9421 (add_layout_command): Update.
9422
9423 2020-02-22 Tom Tromey <tom@tromey.com>
9424
9425 * NEWS: Add "tui new-layout" item.
9426 * tui/tui-layout.c (add_layout_command): Return cmd_list_element.
9427 Add new-layout command to help text.
9428 (validate_window_name): New function.
9429 (tui_new_layout_command): New function.
9430 (_initialize_tui_layout): Register "new-layout".
9431 (tui_layout_window::specification): New method.
9432 (tui_layout_window::specification): New method.
9433 * tui/tui-layout.h (class tui_layout_base) <specification>: New
9434 method.
9435 (class tui_layout_window) <specification>: New method.
9436 (class tui_layout_split) <specification>: New method.
9437
9438 2020-02-22 Tom Tromey <tom@tromey.com>
9439
9440 * tui/tui.c (tui_enable): Call tui_set_initial_layout.
9441 * tui/tui-win.c (window_name_completer): Update comment.
9442 * tui/tui-layout.h (class tui_layout_base) <replace_window>:
9443 Declare method.
9444 (class tui_layout_window) <replace_window>: Likewise.
9445 (class tui_layout_split) <replace_window>: Likewise.
9446 (tui_set_layout): Don't declare.
9447 (tui_set_initial_layout): Declare function.
9448 * tui/tui-layout.c (layouts, applied_skeleton, src_regs_layout)
9449 (asm_regs_layout): New globals.
9450 (tui_current_layout, show_layout): Remove.
9451 (tui_set_layout, tui_add_win_to_layout): Rewrite.
9452 (find_layout, tui_apply_layout): New function.
9453 (layout_completer): Remove.
9454 (tui_next_layout): Reimplement.
9455 (tui_next_layout_command): New function.
9456 (tui_set_initial_layout, tui_prev_layout_command): New functions.
9457 (tui_regs_layout): Reimplement.
9458 (tui_regs_layout_command): New function.
9459 (extract_display_start_addr): Rewrite.
9460 (next_layout, prev_layout): Remove.
9461 (tui_layout_window::replace_window): New method.
9462 (tui_layout_split::replace_window): New method.
9463 (destroy_layout): New function.
9464 (layout_list): New global.
9465 (add_layout_command): New function.
9466 (initialize_layouts): Update.
9467 (tui_layout_command): New function.
9468 (_initialize_tui_layout): Install "layout" commands.
9469 * tui/tui-data.h (enum tui_layout_type): Remove.
9470 (tui_current_layout): Don't declare.
9471
9472 2020-02-22 Tom Tromey <tom@tromey.com>
9473
9474 * tui/tui-regs.c (tui_reg_layout): Remove.
9475 (tui_reg_command): Use tui_regs_layout.
9476 * tui/tui-layout.h (tui_reg_command): Declare.
9477 * tui/tui-layout.c (tui_reg_command): New function.
9478
9479 2020-02-22 Tom Tromey <tom@tromey.com>
9480
9481 * tui/tui.c (tui_rl_delete_other_windows): Call
9482 tui_remove_some_windows.
9483 * tui/tui-layout.h (class tui_layout_base) <remove_windows>:
9484 Declare method.
9485 (class tui_layout_window) <remove_windows>: New method.
9486 (class tui_layout_split) <remove_windows>: Declare.
9487 (tui_remove_some_windows): Declare.
9488 * tui/tui-layout.c (tui_remove_some_windows): New function.
9489 (tui_layout_split::remove_windows): New method.
9490
9491 2020-02-22 Tom Tromey <tom@tromey.com>
9492
9493 * tui/tui.c (tui_rl_change_windows): Call tui_next_layout.
9494 * tui/tui-layout.h (tui_next_layout): Declare.
9495 * tui/tui-layout.c (tui_next_layout): New function.
9496
9497 2020-02-22 Tom Tromey <tom@tromey.com>
9498
9499 * tui/tui-regs.c (tui_data_window::display_registers_from): Use
9500 correct coordinates.
9501
9502 2020-02-22 Tom Tromey <tom@tromey.com>
9503
9504 * tui/tui-layout.h (tui_add_win_to_layout): Add comment.
9505 * tui/tui-layout.c (tui_add_win_to_layout): Add assert. Remove
9506 DATA_WIN case.
9507
9508 2020-02-22 Tom Tromey <tom@tromey.com>
9509
9510 * tui/tui-disasm.c (tui_get_low_disassembly_address): Use
9511 TUI_DISASM_WIN, not tui_win_list.
9512
9513 2020-02-22 Tom Tromey <tom@tromey.com>
9514
9515 * valprint.c (generic_val_print_enum_1)
9516 (val_print_type_code_flags): Style member names.
9517 * rust-lang.c (val_print_struct, rust_print_enum)
9518 (rust_print_struct_def, rust_internal_print_type): Style member
9519 names.
9520 * p-valprint.c (pascal_object_print_value_fields): Style member
9521 names. Only call fprintf_symbol_filtered for static members.
9522 * m2-typeprint.c (m2_record_fields, m2_enum): Style member names.
9523 * f-valprint.c (f_val_print): Style member names.
9524 * f-typeprint.c (f_type_print_base): Style member names.
9525 * cp-valprint.c (cp_print_value_fields): Style member names. Only
9526 call fprintf_symbol_filtered for static members.
9527 (cp_print_class_member): Style member names.
9528 * c-typeprint.c (c_print_type_1, c_type_print_base_1): Style
9529 member names.
9530 * ada-valprint.c (ada_print_scalar): Style enum names.
9531 (ada_val_print_enum): Likewise.
9532 * ada-typeprint.c (print_enum_type): Style enum names.
9533
9534 2020-02-21 Tom Tromey <tom@tromey.com>
9535
9536 * psympriv.h (struct partial_symtab): Update comment.
9537
9538 2020-02-21 Tom Tromey <tromey@adacore.com>
9539
9540 * mips-tdep.h (mips_pc_is_mips16, mips_pc_is_micromips): Parameter
9541 type is CORE_ADDR.
9542
9543 2020-02-21 Tom de Vries <tdevries@suse.de>
9544
9545 PR gdb/25534
9546 * psymtab.c (partial_symtab::read_dependencies): Don't read dependency
9547 if dependencies[i]->user != NULL.
9548
9549 2020-02-21 Ali Tamur <tamur@google.com>
9550
9551 * dwarf2/read.c (dwarf2_name): Add null check.
9552
9553 2020-02-20 Tom Tromey <tom@tromey.com>
9554
9555 * dwarf2/read.c (dwarf2_find_containing_comp_unit): Use ">", not
9556 ">=", in binary search.
9557 (dwarf2_find_containing_comp_unit): New overload.
9558 (run_test): New self-test.
9559 (_initialize_dwarf2_read): Register new test.
9560
9561 2020-02-20 Nelson Chu <nelson.chu@sifive.com>
9562
9563 * riscv-tdep.c: Updated since the DECLARE_CSR is changed.
9564 * riscv-tdep.h: Likewise.
9565 * features/riscv/rebuild-csr-xml.sh: Generate the 64bit-csr.xml without
9566 rv32-only CSR.
9567 * features/riscv/64bit-csr.xml: Regenerated.
9568
9569 2020-02-20 Sergio Durigan Junior <sergiodj@redhat.com>
9570 Tom Tromey <tom@tromey.com>
9571
9572 * utils.c (fputs_maybe_filtered): Call 'stream->puts' instead
9573 of 'fputc_unfiltered'.
9574 (putchar_unfiltered): Call 'fputc_unfiltered'.
9575 (fputc_unfiltered): Call 'fputs_unfiltered'.
9576
9577 2020-02-20 Andrew Burgess <andrew.burgess@embecosm.com>
9578
9579 * config.in: Regenerate.
9580 * configure: Regenerate.
9581 * configure.ac: Add --with-python-libdir option.
9582 * main.c: Use WITH_PYTHON_LIBDIR.
9583
9584 2020-02-19 Tom Tromey <tom@tromey.com>
9585
9586 * symtab.c (general_symbol_info::compute_and_set_names): Use
9587 obstack_strndup. Simplify call to symbol_set_demangled_name.
9588
9589 2020-02-19 Simon Marchi <simon.marchi@efficios.com>
9590
9591 * dwarf2/read.c (allocate_signatured_type_table,
9592 allocate_dwo_unit_table, allocate_type_unit_groups_table,
9593 allocate_dwo_file_hash_table, allocate_dwp_loaded_cutus_table):
9594 Remove objfile parameter, update all callers.
9595
9596 2020-02-19 Doug Evans <dje@google.com>
9597
9598 PR rust/25535
9599 * rust-lang.c (rust_print_enum): Apply embedded_offset to
9600 rust_enum_variant calculation.
9601
9602 2020-02-19 Tom Tromey <tromey@adacore.com>
9603
9604 * mips-tdep.h (mips_pc_is_mips): Parameter type is CORE_ADDR.
9605
9606 2020-02-19 Tom Tromey <tromey@adacore.com>
9607
9608 * ada-lang.c (cache_symbol): Use obstack_strdup.
9609
9610 2020-02-19 Andrew Burgess <andrew.burgess@embecosm.com>
9611
9612 * configure: Regenerate.
9613
9614 2020-02-19 Tom Tromey <tromey@adacore.com>
9615
9616 * python/python.c (do_start_initialization): Use XNEWVEC. Remove
9617 NULL check.
9618
9619 2020-02-19 Maciej W. Rozycki <macro@wdc.com>
9620
9621 * NEWS: Mention RISC-V GNU/Linux GDBserver support.
9622
9623 2020-02-19 Andrew Burgess <andrew.burgess@embecosm.com>
9624
9625 * arch/riscv.c (struct riscv_gdbarch_features_hasher): Only define
9626 if GDBSERVER is not defined.
9627 (riscv_tdesc_cache): Likewise, also store const target_desc.
9628 (STATIC_IN_GDB): Define.
9629 (riscv_create_target_description): Update declaration with
9630 STATIC_IN_GDB.
9631 (riscv_lookup_target_description): New function, only define if
9632 GDBSERVER is not defined.
9633 * arch/riscv.h (riscv_create_target_description): Declare only
9634 when GDBSERVER is defined.
9635 (riscv_lookup_target_description): New declaration when GDBSERVER
9636 is not defined.
9637 * nat/riscv-linux-tdesc.c (riscv_linux_read_description): Rename to...
9638 (riscv_linux_read_features): ...this, and return
9639 riscv_gdbarch_features instead of target_desc.
9640 * nat/riscv-linux-tdesc.h: Include 'arch/riscv.h'.
9641 (riscv_linux_read_description): Rename to...
9642 (riscv_linux_read_features): ...this.
9643 * riscv-linux-nat.c (riscv_linux_nat_target::read_description):
9644 Update to use riscv_gdbarch_features and
9645 riscv_lookup_target_description.
9646 * riscv-tdep.c (riscv_find_default_target_description): Use
9647 riscv_lookup_target_description instead of
9648 riscv_create_target_description.
9649
9650 2020-02-18 Simon Marchi <simon.marchi@efficios.com>
9651
9652 * valprint.c (generic_val_print_enum_1): When printing a flag
9653 enum with value 0 and there is no enumerator with value 0, print
9654 just "0" instead of "(unknown: 0x0)".
9655
9656 2020-02-18 Simon Marchi <simon.marchi@efficios.com>
9657
9658 * valprint.c (generic_val_print_enum_1): Print unknown part of
9659 flag enum in hex.
9660
9661 2020-02-18 Simon Marchi <simon.marchi@efficios.com>
9662
9663 * dwarf2/read.c (update_enumeration_type_from_children): Allow
9664 flag enums to contain duplicate enumerators.
9665 * valprint.c (generic_val_print_enum_1): Update comment.
9666
9667 2020-02-18 Simon Marchi <simon.marchi@efficios.com>
9668
9669 * dwarf2/read.c: Include "count-one-bits.h".
9670 (update_enumeration_type_from_children): If an enumerator has
9671 multiple bits set, don't treat the enumeration as a "flag enum".
9672 * valprint.c (generic_val_print_enum_1): Assert that enumerators
9673 of flag enums have 0 or 1 bit set.
9674
9675 2020-02-18 Bernd Edlinger <bernd.edlinger@hotmail.de>
9676
9677 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Use an explicit
9678 conversion.
9679 * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise.
9680 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn): Likewise.
9681 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
9682 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Likewise.
9683 * s390-tdep.c (s390_displaced_step_copy_insn): Likewise.
9684
9685 2020-02-18 Simon Marchi <simon.marchi@efficios.com>
9686
9687 * MAINTAINERS: Change palmer@sifive.com to palmer@dabbelt.com.
9688
9689 2020-02-14 Simon Marchi <simon.marchi@efficios.com>
9690
9691 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Use
9692 displaced_step_closure_up.
9693 * aarch64-tdep.h (aarch64_displaced_step_copy_insn): Likewise.
9694 (struct displaced_step_closure_up):
9695 * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise.
9696 * amd64-tdep.h (amd64_displaced_step_copy_insn): Likewise.
9697 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn):
9698 Likewise.
9699 * gdbarch.sh (displaced_step_copy_insn): Likewise.
9700 * gdbarch.c, gdbarch.h: Re-generate.
9701 * i386-linux-tdep.c (i386_linux_displaced_step_copy_insn): Use
9702 displaced_step_closure_up.
9703 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
9704 * i386-tdep.h (i386_displaced_step_copy_insn): Likewise.
9705 * infrun.h (displaced_step_closure_up): New type alias.
9706 (struct displaced_step_inferior_state) <step_closure>: Change
9707 type to displaced_step_closure_up.
9708 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Use
9709 displaced_step_closure_up.
9710 * s390-tdep.c (s390_displaced_step_copy_insn): Likewise.
9711
9712 2020-02-14 Tom Tromey <tom@tromey.com>
9713
9714 * minidebug.c (gnu_debug_key): New global.
9715 (find_separate_debug_file_in_section): Use it.
9716
9717 2020-02-14 Simon Marchi <simon.marchi@efficios.com>
9718
9719 * gdbarch.sh (displaced_step_copy_insn): Change return type to an
9720 std::unique_ptr.
9721 * gdbarch.c: Re-generate.
9722 * gdbarch.h: Re-generate.
9723 * infrun.c (displaced_step_prepare_throw): Adjust to std::unique_ptr
9724 change.
9725 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Change return
9726 type to std::unique_ptr.
9727 * aarch64-tdep.h (aarch64_displaced_step_copy_insn): Likewise.
9728 * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise.
9729 * amd64-tdep.h (amd64_displaced_step_copy_insn): Likewise.
9730 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn): Likewise.
9731 * i386-linux-tdep.c (i386_linux_displaced_step_copy_insn): Likewise.
9732 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
9733 * i386-tdep.h (i386_displaced_step_copy_insn): Likewise.
9734 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Likewise.
9735 * s390-tdep.c (s390_displaced_step_copy_insn): Likewise.
9736
9737 2020-02-14 Simon Marchi <simon.marchi@efficios.com>
9738
9739 * infrun.c (get_displaced_step_closure_by_addr): Adjust to
9740 std::unique_ptr.
9741 (displaced_step_clear): Rename to...
9742 (displaced_step_reset): ... this. Just call displaced->reset ().
9743 (displaced_step_clear_cleanup): Rename to...
9744 (displaced_step_reset_cleanup): ... this.
9745 (displaced_step_prepare_throw): Adjust to std::unique_ptr.
9746 (displaced_step_fixup): Likewise.
9747 (resume_1): Likewise.
9748 (handle_inferior_event): Restore child's memory before calling
9749 displaced_step_fixup on the parent.
9750 * infrun.h (displaced_step_inferior_state) <reset>: Adjust
9751 to std::unique_ptr.
9752 <step_closure>: Change type to std::unique_ptr.
9753
9754 2020-02-14 Simon Marchi <simon.marchi@efficios.com>
9755
9756 * arm-tdep.c: Include count-one-bits.h.
9757 (cleanup_block_store_pc): Use count_one_bits.
9758 (cleanup_block_load_pc): Use count_one_bits.
9759 (arm_copy_block_xfer): Use count_one_bits.
9760 (thumb2_copy_block_xfer): Use count_one_bits.
9761 (thumb_copy_pop_pc_16bit): Use count_one_bits.
9762 * arch/arm-get-next-pcs.c: Include count-one-bits.h.
9763 (thumb_get_next_pcs_raw): Use count_one_bits.
9764 (arm_get_next_pcs_raw): Use count_one_bits_l.
9765 * arch/arm.c (bitcount): Remove.
9766 * arch/arm.h (bitcount): Remove.
9767
9768 2020-02-14 Tom Tromey <tromey@adacore.com>
9769
9770 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first):
9771 Update.
9772 * dwarf2/loc.h (call_site_find_chain): Return unique_xmalloc_ptr.
9773 * dwarf2/loc.c (call_site_find_chain_1): Return
9774 unique_xmalloc_ptr.
9775 (call_site_find_chain): Likewise.
9776
9777 2020-02-14 Richard Biener <rguenther@suse.de>
9778
9779 * dwarf2/read.c (lnp_state_machine::handle_special_opcode): Apply CSE
9780 on expression with division operators.
9781
9782 2020-02-13 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
9783
9784 * MAINTAINERS (Write After Approval): Adding myself.
9785
9786 2020-02-12 Tom Tromey <tom@tromey.com>
9787
9788 * event-loop.c (event_data, gdb_event, event_handler_func):
9789 Remove.
9790
9791 2020-02-12 Tom Tromey <tom@tromey.com>
9792
9793 * dwarf2/frame.c (dwarf2_frame_bfd_data): New global.
9794 (dwarf2_frame_objfile_data): Add comment.
9795 (find_comp_unit, set_comp_unit): New functions.
9796 (dwarf2_frame_find_fde): Use find_comp_unit.
9797 (dwarf2_build_frame_info): Use set_comp_unit.
9798
9799 2020-02-12 Tom Tromey <tom@tromey.com>
9800
9801 * dwarf2/frame.c (struct comp_unit) <objfile>: Remove.
9802 (comp_unit): Don't initialize objfile.
9803 (execute_cfa_program): Add text_offset parameter.
9804 (execute_cfa_program_test, dwarf2_fetch_cfa_info)
9805 (dwarf2_frame_cache): Update.
9806 (dwarf2_build_frame_info): Don't set "objfile" member.
9807
9808 2020-02-12 Tom Tromey <tom@tromey.com>
9809
9810 * dwarf2/frame.c (decode_frame_entry_1): Add gdbarch parameter.
9811 (decode_frame_entry): Likewise.
9812 (dwarf2_build_frame_info): Update.
9813
9814 2020-02-12 Tom Tromey <tom@tromey.com>
9815
9816 * dwarf2/frame.c (struct comp_unit) <obstack>: New member.
9817 (decode_frame_entry_1): Use the comp_unit obstack.
9818
9819 2020-02-12 Tom Tromey <tom@tromey.com>
9820
9821 * dwarf2/frame.c (struct comp_unit): Add initializers and
9822 constructor.
9823 (dwarf2_frame_objfile_data): Store a comp_unit.
9824 (dwarf2_frame_find_fde): Update.
9825 (dwarf2_build_frame_info): Use "new".
9826
9827 2020-02-12 Tom Tromey <tom@tromey.com>
9828
9829 * dwarf2/frame.c (struct dwarf2_fde_table): Remove.
9830 (dwarf2_fde_table): Typedef for std::vector.
9831 (dwarf2_frame_objfile_data): Remove the deleter. Now static.
9832 (dwarf2_frame_find_fde, add_fde, decode_frame_entry_1)
9833 (decode_frame_entry): Update.
9834 (dwarf2_build_frame_info): Use "new".
9835
9836 2020-02-12 Christian Biesinger <cbiesinger@google.com>
9837
9838 * arm-tdep.c (arm_gdbarch_init): Update.
9839 * arm-tdep.h (struct gdbarch_tdep) <have_fpa_registers,
9840 have_wmmx_registers, have_vfp_pseudos, have_neon_pseudos,
9841 have_neon, is_m>: Change to bool.
9842
9843 2020-02-12 Christian Biesinger <cbiesinger@google.com>
9844
9845 * arm-tdep.c (arm_dump_tdep): Print more fields of tdep.
9846
9847 2020-02-12 Tom Tromey <tom@tromey.com>
9848
9849 * dwarf2/loc.c (struct dwarf_expr_baton): Remove.
9850
9851 2020-02-12 Hannes Domani <ssbssa@yahoo.de>
9852
9853 * windows-tdep.c (struct windows_gdbarch_data): Add tib_ptr_type.
9854 (windows_get_tlb_type): Use windows_gdbarch_data->tib_ptr_type.
9855
9856 2020-02-11 Tom Tromey <tom@tromey.com>
9857
9858 * psymtab.h: Update comment.
9859
9860 2020-02-11 Tom Tromey <tom@tromey.com>
9861
9862 * gdb_obstack.h (struct auto_obstack): Use
9863 DISABLE_COPY_AND_ASSIGN.
9864
9865 2020-02-11 Tom Tromey <tom@tromey.com>
9866
9867 * dwarf2/frame.h (struct objfile): Don't forward declare.
9868
9869 2020-02-11 Christian Biesinger <cbiesinger@google.com>
9870
9871 * cris-tdep.c (cris_supply_gregset): Change signature to match
9872 what struct regset expects.
9873 (cris_regset): New struct.
9874 (fetch_core_registers): Remove.
9875 (cris_iterate_over_regset_sections): New function.
9876 (_initialize_cris_tdep): Don't call deprecated_add_core_fns.
9877 (cris_gdbarch_init): Call set_gdbarch_iterate_over_regset_sections.
9878
9879 2020-02-11 Christian Biesinger <cbiesinger@google.com>
9880
9881 * arch/arm.h (enum gdb_regnum): Add comment for the FP0..7
9882 registers.
9883
9884 2020-02-11 Christian Biesinger <cbiesinger@google.com>
9885
9886 * arm-tdep.c (arm_dump_tdep): Add \n in fprintf.
9887
9888 2020-02-11 Simon Marchi <simon.marchi@efficios.com>
9889
9890 * configure: Re-generate.
9891
9892 2020-02-11 Simon Marchi <simon.marchi@efficios.com>
9893
9894 * configure: Re-generate.
9895
9896 2020-02-11 Simon Marchi <simon.marchi@efficios.com>
9897
9898 * acinclude: Update warning.m4 path.
9899 * warning.m4: Move to gdbsupport.
9900
9901 2020-02-11 Tom Tromey <tromey@adacore.com>
9902
9903 * remote.c (remote_console_output): Update.
9904 * printcmd.c (printf_command): Update.
9905 * event-loop.c (gdb_wait_for_event): Update.
9906 * linux-nat.c (sigchld_handler): Update.
9907 * remote-sim.c (gdb_os_write_stdout): Update.
9908 (gdb_os_flush_stdout): Update.
9909 (gdb_os_flush_stderr): Update.
9910 (gdb_os_write_stderr): Update.
9911 * exceptions.c (print_exception): Update.
9912 * remote-fileio.c (remote_fileio_func_read): Update.
9913 (remote_fileio_func_write): Update.
9914 * tui/tui.c (tui_enable): Update.
9915 * tui/tui-interp.c (tui_interp::init): Update.
9916 * utils.c (init_page_info): Update.
9917 (putchar_unfiltered, fputc_unfiltered): Update.
9918 (gdb_flush): Update.
9919 (emit_style_escape): Update.
9920 (flush_wrap_buffer, fputs_maybe_filtered): Update.
9921 * ui-file.c (ui_file_isatty, ui_file_read, ui_file_write)
9922 (ui_file_write_async_safe, ui_file_flush, ui_file_puts): Remove.
9923 (stderr_file::write): Update.
9924 (stderr_file::puts): Update.
9925 * ui-file.h (ui_file_isatty, ui_file_write)
9926 (ui_file_write_async_safe, ui_file_read, ui_file_flush)
9927 (ui_file_puts): Don't declare.
9928
9929 2020-02-10 Tom de Vries <tdevries@suse.de>
9930
9931 * dwarf2/read.c (process_psymtab_comp_unit_reader): Cast concat NULL
9932 sentinel to char *.
9933
9934 2020-02-09 Tom de Vries <tdevries@suse.de>
9935
9936 * dwarf2read.c (process_psymtab_comp_unit_reader): Append CU offset to
9937 filename if it matches "<artificial>".
9938
9939 2020-02-09 Hannes Domani <ssbssa@yahoo.de>
9940
9941 * windows-tdep.c (struct enum_value_name): New struct.
9942 (create_enum): New function.
9943 (windows_get_siginfo_type): Create and use enum types.
9944
9945 2020-02-09 Hannes Domani <ssbssa@yahoo.de>
9946
9947 * NEWS: Mention $_siginfo support for Windows.
9948 * windows-nat.c (handle_exception): Set siginfo_er.
9949 (windows_nat_target::mourn_inferior): Reset siginfo_er.
9950 (windows_xfer_siginfo): New function.
9951 (windows_nat_target::xfer_partial): Call windows_xfer_siginfo.
9952 * windows-tdep.c (struct windows_gdbarch_data): New struct.
9953 (init_windows_gdbarch_data): New function.
9954 (get_windows_gdbarch_data): New function.
9955 (windows_get_siginfo_type): New function.
9956 (windows_init_abi): Register windows_get_siginfo_type.
9957 (_initialize_windows_tdep): Register init_windows_gdbarch_data.
9958
9959 2020-02-08 Tom Tromey <tom@tromey.com>
9960
9961 * dwarf2/read.c (class cutu_reader) <cutu_reader,
9962 init_tu_and_read_dwo_dies>: Remove "keep" parameter.
9963 <keep>: Declare method.
9964 <m_keep>: Remove member.
9965 <~cutu_reader>: Remove.
9966 (cutu_reader::init_tu_and_read_dwo_dies): Update.
9967 (cutu_reader::cutu_reader): Update.
9968 (cutu_reader::keep): Rename from ~cutu_reader.
9969 (process_psymtab_comp_unit, build_type_psymtabs_1)
9970 (process_skeletonless_type_unit, load_partial_comp_unit)
9971 (load_full_comp_unit, dwarf2_read_addr_index)
9972 (read_signatured_type): Update.
9973
9974 2020-02-08 Tom Tromey <tom@tromey.com>
9975
9976 * dwarf2/read.c (process_psymtab_comp_unit_reader): Remove
9977 "want_partial_unit" parameter.
9978 (process_psymtab_comp_unit): Change want_partial_unit to bool.
9979 Inline check for DW_TAG_partial_unit.
9980 (dwarf2_build_psymtabs_hard, scan_partial_symbols): Update.
9981
9982 2020-02-08 Tom Tromey <tom@tromey.com>
9983
9984 * dwarf2/read.c (read_n_bytes, read_direct_string): Move to
9985 read.c.
9986 * dwarf2/leb.h (read_n_bytes, read_direct_string): Move from
9987 read.c.
9988
9989 2020-02-08 Tom Tromey <tom@tromey.com>
9990
9991 * dwarf2/read.c (read_address): Move to comp-unit.c.
9992 (dwarf2_rnglists_process, dwarf2_ranges_process)
9993 (read_attribute_value, dwarf_decode_lines_1)
9994 (var_decode_location, decode_locdesc): Update.
9995 * dwarf2/comp-unit.c (comp_unit_head::read_address): Move from
9996 read.c. Remove "cu" parameter.
9997 * dwarf2/comp-unit.h (struct comp_unit_head) <read_address>: New
9998 method.
9999
10000 2020-02-08 Tom Tromey <tom@tromey.com>
10001
10002 * dwarf2/read.c (read_attribute_value, read_indirect_string)
10003 (read_indirect_line_string): Update.
10004 * dwarf2/comp-unit.c (read_offset): Remove.
10005 (read_comp_unit_head): Update.
10006 * dwarf2/comp-unit.h (struct comp_unit_head) <read_offset>: New
10007 method.
10008 (read_offset): Don't declare.
10009
10010 2020-02-08 Tom Tromey <tom@tromey.com>
10011
10012 * Makefile.in (COMMON_SFILES): Add dwarf2/comp-unit.c.
10013 * dwarf2/read.c (struct comp_unit_head): Move to
10014 dwarf2/comp-unit.h.
10015 (enum class rcuh_kind): Move to comp-unit.h.
10016 (get_cu_length, offset_in_cu_p): Now methods on comp_unit_head.
10017 (read_comp_unit_head, error_check_comp_unit_head)
10018 (read_and_check_comp_unit_head): Move to comp-unit.c.
10019 (read_offset, dwarf_unit_type_name): Likewise.
10020 (create_debug_type_hash_table, read_cutu_die_from_dwo)
10021 (cutu_reader::cutu_reader, read_call_site_scope)
10022 (find_partial_die, follow_die_offset): Update.
10023 * dwarf2/comp-unit.h: New file, from dwarf2read.c.
10024
10025 2020-02-08 Tom Tromey <tom@tromey.com>
10026
10027 * dwarf2/read.c (read_offset_1): Move to leb.c.
10028 (read_abbrev_offset, read_offset, dwarf_decode_line_header)
10029 (dwarf_decode_macro_bytes): Update.
10030 * dwarf2/leb.c (read_offset): Rename; move from read.c.
10031 * dwarf2/leb.h (read_offset): Declare.
10032
10033 2020-02-08 Tom Tromey <tom@tromey.com>
10034
10035 * dwarf2/read.c (dwarf2_section_size): Remove.
10036 (error_check_comp_unit_head, dwarf2_symbol_mark_computed):
10037 Update.
10038 * dwarf2/section.h (struct dwarf2_section_info) <get_size>: New method.
10039
10040 2020-02-08 Tom Tromey <tom@tromey.com>
10041
10042 * dwarf2/read.c (read_initial_length): Move to leb.c.
10043 * dwarf2/leb.h (read_initial_length): Declare.
10044 * dwarf2/leb.c (read_initial_length): Move from read.c. Add
10045 handle_nonstd parameter.
10046 * dwarf2/frame.c (read_initial_length): Remove.
10047 (decode_frame_entry_1): Update.
10048
10049 2020-02-08 Tom Tromey <tom@tromey.com>
10050
10051 * dwarf2/loc.c (dwarf2_find_location_expression)
10052 (dwarf_evaluate_loc_desc::get_tls_address)
10053 (dwarf_evaluate_loc_desc::push_dwarf_reg_entry_value)
10054 (rw_pieced_value, dwarf2_evaluate_loc_desc_full)
10055 (dwarf2_locexpr_baton_eval, dwarf2_evaluate_property)
10056 (dwarf2_compile_property_to_c)
10057 (dwarf2_loc_desc_get_symbol_read_needs)
10058 (dwarf2_compile_expr_to_ax, locexpr_describe_location)
10059 (locexpr_tracepoint_var_ref, locexpr_generate_c_location)
10060 (loclist_describe_location, loclist_tracepoint_var_ref)
10061 (loclist_generate_c_location): Update.
10062 * compile/compile-loc2c.c (do_compile_dwarf_expr_to_c): Update.
10063 * dwarf2/loc.h (dwarf2_per_cu_objfile, dwarf2_per_cu_addr_size)
10064 (dwarf2_per_cu_ref_addr_size, dwarf2_per_cu_offset_size)
10065 (dwarf2_per_cu_text_offset, dwarf2_version): Don't declare.
10066 * dwarf2/read.c (dwarf2_per_cu_data::objfile)
10067 (dwarf2_per_cu_data::addr_size)
10068 (dwarf2_per_cu_data::ref_addr_size)
10069 (dwarf2_per_cu_data::text_offset)
10070 (dwarf2_per_cu_data::addr_type): Now methods.
10071 (per_cu_header_read_in): Make per_cu "const".
10072 (dwarf2_version): Remove.
10073 (dwarf2_per_cu_data::int_type): Now a method.
10074 (dwarf2_per_cu_data::_addr_sized_int_type): Likewise.
10075 (set_die_type, read_array_type, read_subrange_index_type)
10076 (read_tag_string_type, read_subrange_type): Update.
10077 * dwarf2/read.h (struct dwarf2_per_cu_data) <addr_size,
10078 offset_size, ref_addr_size, text_offset, addr_type, version,
10079 objfile, int_type, addr_sized_int_type>: Declare methods.
10080
10081 2020-02-08 Tom Tromey <tom@tromey.com>
10082
10083 * dwarf2/read.h (struct dwarf2_per_cu_data) <imported_symtabs>:
10084 Move earlier.
10085
10086 2020-02-08 Tom Tromey <tom@tromey.com>
10087
10088 * dwarf2/read.h (dwarf_line_debug): Declare.
10089 * Makefile.in (COMMON_SFILES): Add dwarf2/line-header.c.
10090 * dwarf2/read.c: Move line_header code to new files.
10091 (dwarf_line_debug): No longer static.
10092 * dwarf2/line-header.c: New file.
10093 * dwarf2/line-header.h: New file.
10094
10095 2020-02-08 Tom Tromey <tom@tromey.com>
10096
10097 * dwarf2/read.c (struct line_header) <file_full_name,
10098 file_file_name>: Return unique_xmalloc_ptr.
10099 (line_header::file_file_name): Update.
10100 (line_header::file_full_name): Update.
10101 (dw2_get_file_names_reader): Update.
10102 (macro_start_file): Update.
10103
10104 2020-02-08 Tom Tromey <tom@tromey.com>
10105
10106 * dwarf2/read.c (struct line_header) <file_full_name,
10107 file_file_name>: Declare methods.
10108 (dw2_get_file_names_reader): Update.
10109 (file_file_name): Now a method.
10110 (file_full_name): Likewise.
10111 (macro_start_file): Update.
10112
10113 2020-02-08 Tom Tromey <tom@tromey.com>
10114
10115 * dwarf2/read.c (dwarf_always_disassemble)
10116 (show_dwarf_always_disassemble): Move to loc.c.
10117 (_initialize_dwarf2_read): Move "always-disassemble" registration
10118 to loc.c.
10119 * dwarf2/read.h (dwarf_always_disassemble): Don't declare.
10120 * dwarf2/loc.c (dwarf_always_disassemble): Move from read.c. Now
10121 static.
10122 (show_dwarf_always_disassemble): Move from read.c.
10123 (_initialize_dwarf2loc): Move always-disassemble from read.c.
10124
10125 2020-02-08 Tom Tromey <tom@tromey.com>
10126
10127 * dwarf2/read.c (~dwarf2_per_objfile): Update.
10128 (create_quick_file_names_table): Return htab_up.
10129 (dw2_get_file_names_reader, dw2_forget_cached_source_info):
10130 Update.
10131 * dwarf2/read.h (struct dwarf2_per_objfile)
10132 <quick_file_names_table>: Now htab_up.
10133
10134 2020-02-08 Tom Tromey <tom@tromey.com>
10135
10136 * dwarf2/abbrev.c (abbrev_table::read): Simplify.
10137
10138 2020-02-08 Tom Tromey <tom@tromey.com>
10139
10140 * dwarf2/abbrev.c (abbrev_table): Move constructor from header.
10141 Rewrite.
10142 (abbrev_table::add_abbrev, abbrev_table::lookup_abbrev): Rewrite.
10143 * dwarf2/abbrev.h (struct abbrev_info) <next>: Remove.
10144 (abbrev_table::abbrev_table): No longer inline.
10145 (ABBREV_HASH_SIZE): Remove.
10146 (abbrev_table::m_abbrevs): Now an htab_up.
10147
10148 2020-02-08 Tom Tromey <tom@tromey.com>
10149
10150 * dwarf2/read.c (read_cutu_die_from_dwo): Update.
10151 (cutu_reader): Update.
10152 (build_type_psymtabs_1): Update.
10153 * dwarf2/abbrev.c (abbrev_table::read): Rename.
10154 (abbrev_table::alloc_abbrev): Update.
10155 * dwarf2/abbrev.h (abbrev_table_up): Move earlier.
10156 (abbrev_table::read): New static method, renamed from
10157 abbrev_table_read_table.
10158 (abbrev_table::alloc_abbrev)
10159 (abbrev_table::add_abbrev): Now private.
10160 (abbrev_table::abbrev_table): Now private.
10161 (abbrev_table::m_abbrev_obstack): Now private. Rename.
10162
10163 2020-02-08 Tom Tromey <tom@tromey.com>
10164
10165 * dwarf2/read.c (set_die_type, get_die_type_at_offset): Update.
10166 * dwarf2/read.h (struct dwarf2_per_objfile) <die_type_hash>: Now
10167 htab_up.
10168
10169 2020-02-08 Tom Tromey <tom@tromey.com>
10170
10171 * dwarf2/read.c (struct dwp_file) <loaded_cus, loaded_tus>: Now
10172 htab_up.
10173 (lookup_dwo_unit_in_dwp): Update.
10174 (allocate_dwp_loaded_cutus_table): Return htab_up. Don't allocate
10175 on obstack.
10176
10177 2020-02-08 Tom Tromey <tom@tromey.com>
10178
10179 * dwarf2/read.c (allocate_dwo_file_hash_table): Don't allocate on
10180 obstack.
10181
10182 2020-02-08 Tom Tromey <tom@tromey.com>
10183
10184 * dwarf2/read.c (~dwarf2_per_objfile): Don't delete
10185 line_header_hash.
10186 (handle_DW_AT_stmt_list): Update. Don't allocate on obstack.
10187 * dwarf2/read.h (struct dwarf2_per_objfile) <line_header_hash>:
10188 Change type to htab_up.
10189
10190 2020-02-08 Tom Tromey <tom@tromey.com>
10191
10192 * dwarf2/read.c (allocate_type_unit_groups_table): Return
10193 htab_up. Don't allocate on obstack.
10194 (get_type_unit_group, dwarf2_build_psymtabs_hard): Update.
10195 * dwarf2/read.h (struct dwarf2_per_objfile) <type_unit_groups>:
10196 Change type to htab_up.
10197
10198 2020-02-08 Tom Tromey <tom@tromey.com>
10199
10200 * dwarf2/read.h (struct dwarf2_per_objfile) <signatured_types>:
10201 Change type to htab_up.
10202 * dwarf2/read.c (create_signatured_type_table_from_index)
10203 (create_signatured_type_table_from_debug_names)
10204 (create_all_type_units, add_type_unit)
10205 (lookup_dwo_signatured_type, lookup_signatured_type)
10206 (process_skeletonless_type_unit): Update.
10207 (create_debug_type_hash_table, create_debug_types_hash_table):
10208 Change type of types_htab.
10209 (allocate_signatured_type_table, allocate_dwo_unit_table): Return
10210 htab_up. Don't allocate on obstack.
10211 (create_cus_hash_table): Change type of cus_htab parameter.
10212 (struct dwo_file) <cus, tus>: Now htab_up.
10213 (lookup_dwo_signatured_type, lookup_dwo_cutu)
10214 (process_dwo_file_for_skeletonless_type_units, lookup_dwo_cutu)
10215 (queue_and_load_all_dwo_tus): Update.
10216 * dwarf2/index-write.c (write_gdbindex): Update.
10217 (write_debug_names): Update.
10218
10219 2020-02-08 Tom Tromey <tom@tromey.com>
10220
10221 * dwarf2/read.h (struct dwarf2_queue_item): Move from
10222 dwarf2/read.c. Remove "next" member. Add constructor ntad
10223 destructor.
10224 (struct dwarf2_per_objfile) <queue>: New member.
10225 * dwarf2/read.c (struct dwarf2_queue_item): Move to
10226 dwarf2/read.h.
10227 (dwarf2_queue, dwarf2_queue_tail): Remove.
10228 (class dwarf2_queue_guard): Add parameter to constructor. Use
10229 DISABLE_COPY_AND_ASSIGN.
10230 <m_per_objfile>: New member.
10231 <~dwarf2_queue_guard>: Rewrite.
10232 (dw2_do_instantiate_symtab, queue_comp_unit, process_queue):
10233 Update.
10234 (~dwarf2_queue_item): New.
10235
10236 2020-02-08 Tom Tromey <tom@tromey.com>
10237
10238 * dwarf2/read.c (struct die_info) <has_children>: New member.
10239 (dw2_get_file_names_reader): Remove has_children.
10240 (dw2_get_file_names): Update.
10241 (read_cutu_die_from_dwo): Remove has_children.
10242 (cutu_reader::init_tu_and_read_dwo_dies)
10243 (cutu_reader::cutu_reader): Update.
10244 (process_psymtab_comp_unit_reader, build_type_psymtabs_reader):
10245 Remove has_children.
10246 (build_type_psymtabs_1, process_skeletonless_type_unit)
10247 (load_partial_comp_unit, load_full_comp_unit): Update.
10248 (create_dwo_cu_reader): Remove has_children.
10249 (create_cus_hash_table, read_die_and_children): Update.
10250 (read_full_die_1,read_full_die): Remove has_children.
10251 (read_signatured_type): Update.
10252 (class cutu_reader) <has_children>: Remove.
10253
10254 2020-02-08 Tom Tromey <tom@tromey.com>
10255
10256 * dwarf2/expr.c: Rename from dwarf2expr.c.
10257 * dwarf2/expr.h: Rename from dwarf2expr.h.
10258 * dwarf2/frame-tailcall.c: Rename from dwarf2-frame-tailcall.c.
10259 * dwarf2/frame-tailcall.h: Rename from dwarf2-frame-tailcall.h.
10260 * dwarf2/frame.c: Rename from dwarf2-frame.c.
10261 * dwarf2/frame.h: Rename from dwarf2-frame.h.
10262 * dwarf2/index-cache.c: Rename from dwarf-index-cache.c.
10263 * dwarf2/index-cache.h: Rename from dwarf-index-cache.h.
10264 * dwarf2/index-common.c: Rename from dwarf-index-common.c.
10265 * dwarf2/index-common.h: Rename from dwarf-index-common.h.
10266 * dwarf2/index-write.c: Rename from dwarf-index-write.c.
10267 * dwarf2/index-write.h: Rename from dwarf-index-write.h.
10268 * dwarf2/loc.c: Rename from dwarf2loc.c.
10269 * dwarf2/loc.h: Rename from dwarf2loc.h.
10270 * dwarf2/read.c: Rename from dwarf2read.c.
10271 * dwarf2/read.h: Rename from dwarf2read.h.
10272 * dwarf2/abbrev.c, aarch64-tdep.c, alpha-tdep.c,
10273 amd64-darwin-tdep.c, arc-tdep.c, arm-tdep.c, bfin-tdep.c,
10274 compile/compile-c-symbols.c, compile/compile-cplus-symbols.c,
10275 compile/compile-loc2c.c, cris-tdep.c, csky-tdep.c, findvar.c,
10276 gdbtypes.c, guile/scm-type.c, h8300-tdep.c, hppa-bsd-tdep.c,
10277 hppa-linux-tdep.c, i386-darwin-tdep.c, i386-linux-tdep.c,
10278 i386-tdep.c, iq2000-tdep.c, m32c-tdep.c, m68hc11-tdep.c,
10279 m68k-tdep.c, microblaze-tdep.c, mips-tdep.c, mn10300-tdep.c,
10280 msp430-tdep.c, nds32-tdep.c, nios2-tdep.c, or1k-tdep.c,
10281 riscv-tdep.c, rl78-tdep.c, rs6000-tdep.c, rx-tdep.c, s12z-tdep.c,
10282 s390-tdep.c, score-tdep.c, sh-tdep.c, sparc-linux-tdep.c,
10283 sparc-tdep.c, sparc64-linux-tdep.c, sparc64-tdep.c, tic6x-tdep.c,
10284 tilegx-tdep.c, v850-tdep.c, xstormy16-tdep.c, xtensa-tdep.c:
10285 Update.
10286 * Makefile.in (COMMON_SFILES): Update.
10287 (HFILES_NO_SRCDIR): Update.
10288
10289 2020-02-08 Tom Tromey <tom@tromey.com>
10290
10291 * dwarf2read.c (struct die_reader_specs) <comp_dir>: Remove.
10292 (init_cu_die_reader, read_cutu_die_from_dwo): Update.
10293
10294 2020-02-08 Tom Tromey <tom@tromey.com>
10295
10296 * dwarf2read.h (struct die_info): Don't declare.
10297
10298 2020-02-08 Tom Tromey <tom@tromey.com>
10299
10300 * dwarf2read.h (die_info_ptr): Remove typedef.
10301
10302 2020-02-08 Tom Tromey <tom@tromey.com>
10303
10304 * dwarf2read.c (read_call_site_scope)
10305 (handle_data_member_location, dwarf2_add_member_fn)
10306 (mark_common_block_symbol_computed, read_common_block)
10307 (attr_to_dynamic_prop, partial_die_info::read)
10308 (var_decode_location, dwarf2_fetch_die_loc_sect_off)
10309 (dwarf2_symbol_mark_computed, set_die_type): Update.
10310 * dwarf2/attribute.h (struct attribute) <form_is_block>: Declare
10311 method.
10312 (attr_form_is_block): Don't declare.
10313 * dwarf2/attribute.c (attribute::form_is_block): Now a method.
10314
10315 2020-02-08 Tom Tromey <tom@tromey.com>
10316
10317 * dwarf2read.c (dwarf2_find_base_address, )
10318 (read_call_site_scope, rust_containing_type)
10319 (dwarf2_get_pc_bounds, dwarf2_record_block_ranges)
10320 (handle_data_member_location, dwarf2_add_member_fn)
10321 (get_alignment, read_structure_type, process_structure_scope)
10322 (mark_common_block_symbol_computed, read_common_block)
10323 (read_tag_string_type, attr_to_dynamic_prop, read_subrange_type)
10324 (partial_die_info::read, read_attribute_value, new_symbol)
10325 (lookup_die_type, dwarf2_get_ref_die_offset)
10326 (dwarf2_get_attr_constant_value, follow_die_ref_or_sig)
10327 (dwarf2_fetch_die_loc_sect_off, get_DW_AT_signature_type)
10328 (dwarf2_symbol_mark_computed): Update.
10329 * dwarf2/attribute.h (struct attribute) <value_as_address,
10330 form_is_section_offset, form_is_constant, form_is_ref>: Declare
10331 methods.
10332 (value_as_address, attr_form_is_section_offset)
10333 (attr_form_is_constant, attr_form_is_ref): Don't declare.
10334 * dwarf2/attribute.c (attribute::value_as_address)
10335 (attribute::form_is_section_offset, attribute::form_is_constant)
10336 (attribute::form_is_ref): Now methods.
10337
10338 2020-02-08 Tom Tromey <tom@tromey.com>
10339
10340 * dwarf2read.c (struct attribute, DW_STRING)
10341 (DW_STRING_IS_CANONICAL, DW_UNSND, DW_BLOCK, DW_SND, DW_ADDR)
10342 (DW_SIGNATURE, struct dwarf_block, attr_value_as_address)
10343 (attr_form_is_block, attr_form_is_section_offset)
10344 (attr_form_is_constant, attr_form_is_ref): Move.
10345 * dwarf2/attribute.h: New file.
10346 * dwarf2/attribute.c: New file, from dwarf2read.c.
10347 * Makefile.in (COMMON_SFILES): Add dwarf2/attribute.c.
10348
10349 2020-02-08 Tom Tromey <tom@tromey.com>
10350
10351 * dwarf2read.c (abbrev_table_up, struct abbrev_info)
10352 (struct attr_abbrev, ABBREV_HASH_SIZE, struct abbrev_table):
10353 Move.
10354 (read_cutu_die_from_dwo, build_type_psymtabs_1): Update.
10355 (abbrev_table::alloc_abbrev, abbrev_table::add_abbrev)
10356 (abbrev_table::lookup_abbrev, abbrev_table_read_table): Move to
10357 abbrev.c.
10358 * dwarf2/abbrev.h: New file.
10359 * dwarf2/abbrev.c: New file, from dwarf2read.c.
10360 * Makefile.in (COMMON_SFILES): Add dwarf2/abbrev.c.
10361
10362 2020-02-08 Tom Tromey <tom@tromey.com>
10363
10364 * dwarf2read.c (dwarf2_section_buffer_overflow_complaint)
10365 (dwarf2_section_size, dwarf2_get_section_info)
10366 (create_signatured_type_table_from_debug_names)
10367 (create_addrmap_from_aranges, read_debug_names_from_section)
10368 (get_gdb_index_contents_from_section, read_comp_unit_head)
10369 (error_check_comp_unit_head, read_abbrev_offset)
10370 (create_debug_type_hash_table, init_cu_die_reader)
10371 (read_cutu_die_from_dwo, dwarf2_build_psymtabs_hard)
10372 (read_comp_units_from_section, create_cus_hash_table)
10373 (create_dwp_hash_table, create_dwo_unit_in_dwp_v1)
10374 (create_dwp_v2_section, dwarf2_rnglists_process)
10375 (dwarf2_ranges_process, read_die_and_siblings, read_full_die)
10376 (abbrev_table_read_table, read_indirect_string_at_offset_from)
10377 (read_indirect_string_from_dwz, read_addr_index_1)
10378 (read_str_index, dwarf_decode_line_header, skip_form_bytes)
10379 (dwarf_decode_macro_bytes, dwarf_decode_macros)
10380 (fill_in_loclist_baton): Update.
10381 * dwarf2/section.h (struct dwarf2_section_info) <get_name,
10382 get_containing_section, get_bfd_owner, get_bfd_section,
10383 get_file_name, get_id, get_flags, empty, read>: Declare methods.
10384 (dwarf2_read_section, get_section_name, get_section_file_name)
10385 (get_containing_section, get_section_bfd_owner)
10386 (get_section_bfd_section, get_section_name, get_section_file_name)
10387 (get_section_id, get_section_flags, dwarf2_section_empty_p): Don't
10388 declare.
10389 * dwarf2/section.c (dwarf2_section_info::get_containing_section)
10390 (dwarf2_section_info::get_bfd_owner)
10391 (dwarf2_section_info::get_bfd_section)
10392 (dwarf2_section_info::get_name)
10393 (dwarf2_section_info::get_file_name, dwarf2_section_info::get_id)
10394 (dwarf2_section_info::get_flags, dwarf2_section_info::empty)
10395 (dwarf2_section_info::read): Now methods.
10396 * dwarf-index-write.c (class debug_names): Update.
10397
10398 2020-02-08 Tom Tromey <tom@tromey.com>
10399
10400 * dwarf2read.h (struct dwarf2_section_info, dwarf2_read_section):
10401 Move to dwarf2/section.h.
10402 * dwarf2read.c (get_containing_section, get_section_bfd_owner)
10403 (get_section_bfd_section, get_section_name)
10404 (get_section_file_name, get_section_id, get_section_flags)
10405 (dwarf2_section_empty_p, dwarf2_read_section): Moe to
10406 dwarf2/section.c.
10407 * dwarf2/section.h: New file.
10408 * dwarf2/section.c: New file, from dwarf2read.c.
10409 * Makefile.in (COMMON_SFILES): Add dwarf2/section.c.
10410
10411 2020-02-08 Tom Tromey <tom@tromey.com>
10412
10413 * dwarf2read.h (read_unsigned_leb128): Don't declare.
10414 * dwarf2read.c (read_1_byte, read_1_signed_byte, read_2_bytes)
10415 (read_2_signed_bytes, read_3_bytes, read_4_bytes)
10416 (read_4_signed_bytes, read_8_bytes): Move to dwarf2/leb.h.
10417 (read_unsigned_leb128, read_signed_leb128): Move to dwarf2/leb.c.
10418 * dwarf2/leb.h: New file, from dwarf2read.c.
10419 * dwarf2/leb.c: New file, from dwarf2read.c.
10420 * dwarf2-frame.c (read_1_byte, read_4_bytes, read_8_bytes):
10421 Remove.
10422 * Makefile.in (CONFIG_SRC_SUBDIR): Add dwarf2.
10423 (COMMON_SFILES): Add dwarf2/leb.c.
10424
10425 2020-02-08 Joel Brobecker <brobecker@adacore.com>
10426
10427 GDB 9.1 released.
10428
10429 2020-02-05 Iain Buclaw <ibuclaw@gdcproject.org>
10430
10431 PR gdb/25190:
10432 * gdb/remote-sim.c (gdb_os_write_stderr): Update.
10433 * gdb/remote.c (remote_console_output): Update.
10434 * gdb/ui-file.c (fputs_unfiltered): Rename to...
10435 (ui_file_puts): ...this.
10436 * gdb/ui-file.h (ui_file_puts): Add declaration.
10437 * gdb/utils.c (emit_style_escape): Update.
10438 (flush_wrap_buffer): Update.
10439 (fputs_maybe_filtered): Update.
10440 (fputs_unfiltered): Add function.
10441
10442 2020-02-05 Iain Buclaw <ibuclaw@gdcproject.org>
10443
10444 * gdb/event-loop.c (gdb_wait_for_event): Update.
10445 * gdb/printcmd.c (printf_command): Update.
10446 * gdb/remote-fileio.c (remote_fileio_func_write): Update.
10447 * gdb/remote-sim.c (gdb_os_flush_stdout): Update.
10448 (gdb_os_flush_stderr): Update.
10449 * gdb/remote.c (remote_console_output): Update.
10450 * gdb/ui-file.c (gdb_flush): Rename to...
10451 (ui_file_flush): ...this.
10452 (stderr_file::write): Update.
10453 (stderr_file::puts): Update.
10454 * gdb/ui-file.h (gdb_flush): Rename to...
10455 (ui_file_flush): ...this.
10456 * gdb/utils.c (gdb_flush): Add function.
10457 * gdb/utils.h (gdb_flush): Add declaration.
10458
10459 2020-02-07 Tom Tromey <tromey@adacore.com>
10460
10461 PR breakpoints/24915:
10462 * source.c (find_and_open_source): Do not check basenames_may_differ.
10463
10464 2020-02-07 Tom Tromey <tom@tromey.com>
10465
10466 * README: Update gdbserver documentation.
10467 * gdbserver: Move to top level.
10468 * configure.tgt (build_gdbserver): Remove.
10469 * configure.ac: Remove --enable-gdbserver.
10470 * configure: Rebuild.
10471 * Makefile.in (distclean): Don't mention gdbserver.
10472
10473 2020-02-06 Shahab Vahedi <shahab@synopsys.com>
10474
10475 * source-cache.c (source_cache::ensure): Surround
10476 get_plain_source_lines with a try/catch.
10477 (source_cache::get_line_charpos): Get rid of try/catch
10478 and only check for the return value of "ensure".
10479 * tui/tui-source.c (tui_source_window::set_contents):
10480 Simplify "nlines" calculation.
10481
10482 2020-02-06 Shahab Vahedi <shahab@synopsys.com>
10483
10484 * MAINTAINERS (Write After Approval): Add myself.
10485
10486 2020-02-05 Christian Biesinger <cbiesinger@google.com>
10487
10488 * sparc-nat.h (struct sparc_target) <xfer_partial>: Fix base class
10489 function call.
10490
10491 2020-02-05 Christian Biesinger <cbiesinger@google.com>
10492
10493 * ppc-nbsd-tdep.h: Fix macro name in #endif comment.
10494
10495 2020-02-05 Maciej W. Rozycki <macro@wdc.com>
10496
10497 * nat/riscv-linux-tdesc.h: New file.
10498 * nat/riscv-linux-tdesc.c: New file, taking code from...
10499 * riscv-linux-nat.c (riscv_linux_nat_target::read_description):
10500 ... here.
10501 * configure.nat <linux> <riscv*>: Add nat/riscv-linux-tdesc.o to
10502 NATDEPFILES.
10503
10504 2020-02-04 Andrew Burgess <andrew.burgess@embecosm.com>
10505
10506 * remote-sim.c (sim_inferior_data::sim_inferior_data): Assert that
10507 we don't set the fake simulator ptid to the null_ptid.
10508
10509 2020-02-03 Simon Marchi <simon.marchi@efficios.com>
10510
10511 * fork-child.c (gdb_startup_inferior): Use bool instead of int.
10512 * gdbthread.h (class thread_info) <resumed>: Likewise.
10513 * infrun.c (resume_1): Likewise.
10514 (proceed): Likewise.
10515 (infrun_thread_stop_requested): Likewise.
10516 (stop_all_threads): Likewise.
10517 (handle_inferior_event): Likewise.
10518 (restart_threads): Likewise.
10519 (finish_step_over): Likewise.
10520 (keep_going_stepped_thread): Likewise.
10521 * linux-nat.c (attach_proc_task_lwp_callback): Likewise.
10522 (linux_handle_extended_wait): Likewise.
10523 * record-btrace.c (get_thread_current_frame_id): Likewise.
10524 * record-full.c (record_full_wait_1): Likewise.
10525 * remote.c (remote_target::process_initial_stop_replies): Likewise.
10526 * target.c (target_resume): Likewise.
10527 * thread.c (set_running_thread): Likewise.
10528
10529 2020-02-03 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
10530
10531 * f-valprint.c (f77_print_array_1): Changed datatype of index
10532 variable to LONGEST from int to enable it to contain bound
10533 values correctly.
10534
10535 2020-02-03 Maciej W. Rozycki <macro@wdc.com>
10536
10537 * riscv-linux-nat.c [!NFPREG] (NFPREG): New macro.
10538 (supply_fpregset_regnum, fill_fpregset): Handle regset buffer
10539 offsets according to FLEN determined.
10540 (riscv_linux_nat_target::read_description): Determine FLEN
10541 dynamically.
10542 (riscv_linux_nat_target::fetch_registers): Size regset buffer
10543 according to FLEN determined.
10544 (riscv_linux_nat_target::store_registers): Likewise.
10545
10546 2020-02-01 Shahab Vahedi <shahab@synopsys.com>
10547
10548 * target-descriptions.c (tdesc_register_in_reggroup_p): Return 0
10549 when reg->group is empty and reggroup is not.
10550
10551 2020-01-31 Tom Tromey <tromey@adacore.com>
10552
10553 * ravenscar-thread.c (ravenscar_thread_target::mourn_inferior):
10554 Call beneath target's mourn_inferior after unpushing.
10555
10556 2020-01-31 Andrew Burgess <andrew.burgess@embecosm.com>
10557
10558 PR tui/9765
10559 * tui/tui-disasm.c (tui_find_disassembly_address): If we don't
10560 have enough lines to fill the screen, still return the lowest
10561 address we found.
10562
10563 2020-01-31 Andrew Burgess <andrew.burgess@embecosm.com>
10564
10565 * tui/tui-win.c (_initialize_tui_win): Update help text for '+',
10566 '-', '<', and '>' commands.
10567
10568 2020-01-29 Pedro Alves <palves@redhat.com>
10569 Sergio Durigan Junior <sergiodj@redhat.com>
10570
10571 * infcmd.c (construct_inferior_arguments): Assert that
10572 'argc' is greater than 0.
10573
10574 2020-01-29 Luis Machado <luis.machado@linaro.org>
10575
10576 * aarch64-tdep.c (BRK_INSN_MASK): Define to 0xffe0001f.
10577 (BRK_INSN_MASK): Define to 0xd4200000.
10578 (aarch64_program_breakpoint_here_p): New function.
10579 (aarch64_gdbarch_init): Set gdbarch_program_breakpoint_here_p hook.
10580 * arch-utils.c (default_program_breakpoint_here_p): Moved from
10581 breakpoint.c.
10582 * arch-utils.h (default_program_breakpoint_here_p): Moved from
10583 breakpoint.h
10584 * breakpoint.c (bp_loc_is_permanent): Changed return type to bool and
10585 call gdbarch_program_breakpoint_here_p.
10586 (program_breakpoint_here): Moved to arch-utils.c, renamed to
10587 default_program_breakpoint_here_p, changed return type to bool and
10588 simplified.
10589 * breakpoint.h (program_breakpoint_here): Moved prototype to
10590 arch-utils.h, renamed to default_program_breakpoint_here_p and changed
10591 return type to bool.
10592 * gdbarch.c: Regenerate.
10593 * gdbarch.h: Regenerate.
10594 * gdbarch.sh (program_breakpoint_here_p): New method.
10595 * infrun.c (handle_signal_stop): Call
10596 gdbarch_program_breakpoint_here_p.
10597
10598 2020-01-26 Tom Tromey <tom@tromey.com>
10599
10600 * ctfread.c (struct ctf_fp_info): Reindent.
10601 (_initialize_ctfread): Remove.
10602
10603 2020-01-26 Tom Tromey <tom@tromey.com>
10604
10605 * psymtab.c (partial_map_expand_apply)
10606 (psym_find_pc_sect_compunit_symtab, psym_lookup_symbol)
10607 (psymtab_to_symtab, psym_find_last_source_symtab, dump_psymtab)
10608 (psym_print_stats, psym_expand_symtabs_for_function)
10609 (psym_map_symbol_filenames, psym_map_matching_symbols)
10610 (psym_expand_symtabs_matching)
10611 (partial_symtab::read_dependencies, maintenance_info_psymtabs)
10612 (maintenance_check_psymtabs): Use new methods.
10613 * psympriv.h (struct partial_symtab) <readin_p,
10614 get_compunit_symtab>: New methods.
10615 <readin, compunit_symtab>: Remove members.
10616 (struct standard_psymtab): New.
10617 (struct legacy_psymtab): Derive from standard_psymtab.
10618 * dwarf2read.h (struct dwarf2_psymtab): Derive from
10619 standard_psymtab.
10620 * ctfread.c (struct ctf_psymtab): Derive from standard_psymtab.
10621
10622 2020-01-26 Tom Tromey <tom@tromey.com>
10623
10624 * xcoffread.c (xcoff_psymtab_to_symtab_1): Call
10625 read_dependencies. Add assert.
10626 * psymtab.c (partial_symtab::read_dependencies): New method.
10627 * psympriv.h (struct partial_symtab) <read_dependencies>: New
10628 method.
10629 * mdebugread.c (psymtab_to_symtab_1): Call read_dependencies.
10630 * dwarf2read.c (dwarf2_psymtab::expand_psymtab): Call
10631 read_dependencies.
10632 * dbxread.c (dbx_psymtab_to_symtab_1): Call read_dependencies.
10633 Add assert.
10634
10635 2020-01-26 Tom Tromey <tom@tromey.com>
10636
10637 * xcoffread.c (xcoff_psymtab_to_symtab_1): Change argument order.
10638 Call expand_psymtab.
10639 (xcoff_read_symtab): Call expand_psymtab.
10640 (xcoff_start_psymtab, xcoff_end_psymtab): Set
10641 legacy_expand_psymtab.
10642 * psympriv.h (struct partial_symtab) <expand_psymtab>: New
10643 method.
10644 (struct legacy_psymtab) <expand_psymtab>: Implement.
10645 <legacy_expand_psymtab>: New member.
10646 * mdebugread.c (mdebug_read_symtab): Call expand_psymtab.
10647 (parse_partial_symbols): Set legacy_expand_psymtab.
10648 (psymtab_to_symtab_1): Change argument order. Call
10649 expand_psymtab.
10650 (new_psymtab): Set legacy_expand_psymtab.
10651 * dwarf2read.h (struct dwarf2_psymtab) <expand_psymtab>: Declare.
10652 * dwarf2read.c (dwarf2_psymtab::read_symtab): Call
10653 expand_psymtab.
10654 (dwarf2_psymtab::expand_psymtab): Rename from
10655 psymtab_to_symtab_1. Call expand_psymtab.
10656 * dbxread.c (start_psymtab): Set legacy_expand_psymtab.
10657 (dbx_end_psymtab): Likewise.
10658 (dbx_psymtab_to_symtab_1): Change argument order. Call
10659 expand_psymtab.
10660 (dbx_read_symtab): Call expand_psymtab.
10661 * ctfread.c (struct ctf_psymtab) <expand_psymtab>: Declare.
10662 (ctf_psymtab::expand_psymtab): Rename from psymtab_to_symtab.
10663 (ctf_psymtab::read_symtab): Call expand_psymtab.
10664
10665 2020-01-26 Tom Tromey <tom@tromey.com>
10666
10667 * xcoffread.c (xcoff_read_symtab): Remove prints. Add assert.
10668 * psymtab.c (psymtab_to_symtab): Print verbose "Reading"
10669 messages.
10670 * mdebugread.c (mdebug_read_symtab): Remove prints.
10671 * dwarf2read.c (dwarf2_psymtab::read_symtab): Remove prints. Add
10672 assert.
10673 * dbxread.c (dbx_read_symtab): Remove prints. Add assert.
10674
10675 2020-01-26 Tom Tromey <tom@tromey.com>
10676
10677 * xcoffread.c (this_symtab_psymtab, read_xcoff_symtab)
10678 (xcoff_psymtab_to_symtab_1, xcoff_read_symtab)
10679 (xcoff_start_psymtab, xcoff_end_psymtab, scan_xcoff_symtab): Use
10680 legacy_symtab.
10681 * stabsread.h (dbx_end_psymtab): Use legacy_symtab.
10682 * psymtab.c (psymtab_to_symtab): Call method.
10683 (dump_psymtab): Update.
10684 * psympriv.h (struct partial_symtab): Add virtual destructor.
10685 <read_symtab>: New method.
10686 (struct legacy_symtab): New.
10687 * mdebugread.c (mdebug_read_symtab): Use legacy_psymtab.
10688 (struct pst_map) <pst>: Now a legacy_psymtab.
10689 (parse_procedure, parse_partial_symbols, psymtab_to_symtab_1)
10690 (new_psymtab): Use legacy_psymtab.
10691 * dwarf2read.h (struct dwarf2_psymtab): New.
10692 (struct dwarf2_per_cu_data) <psymtab>: Use it.
10693 * dwarf2read.c (dwarf2_create_include_psymtab)
10694 (dwarf2_build_include_psymtabs, create_type_unit_group)
10695 (create_partial_symtab, process_psymtab_comp_unit_reader)
10696 (build_type_psymtabs_reader, build_type_psymtab_dependencies)
10697 (set_partial_user): Use dwarf2_psymtab.
10698 (dwarf2_psymtab::read_symtab): Rename from dwarf2_read_symtab.
10699 (psymtab_to_symtab_1, process_full_comp_unit)
10700 (process_full_type_unit, dwarf2_ranges_read)
10701 (dwarf2_get_pc_bounds, psymtab_include_file_name)
10702 (dwarf_decode_lines): Use dwarf2_psymtab.
10703 * dwarf-index-write.c (psym_index_map): Use dwarf2_psymtab.
10704 (add_address_entry_worker, write_one_signatured_type)
10705 (recursively_count_psymbols, recursively_write_psymbols)
10706 (write_one_signatured_type, psyms_seen_size, write_gdbindex)
10707 (write_debug_names): Likewise.
10708 * dbxread.c (struct header_file_location): Take a legacy_psymtab.
10709 <pst>: Now a legacy_psymtab.
10710 (find_corresponding_bincl_psymtab): Return a legacy_psymtab.
10711 (read_dbx_symtab, start_psymtab, dbx_end_psymtab)
10712 (dbx_psymtab_to_symtab_1, read_ofile_symtab): Use legacy_psymtab.
10713 * ctfread.c (struct ctf_psymtab): New.
10714 (ctf_start_symtab, ctf_end_symtab, psymtab_to_symtab): Take a
10715 ctf_psymtab.
10716 (ctf_psymtab::read_symtab): Rename from ctf_read_symtab.
10717 (create_partial_symtab): Return a ctf_psymtab.
10718 (scan_partial_symbols): Update.
10719
10720 2020-01-26 Tom Tromey <tom@tromey.com>
10721
10722 * xcoffread.c (xcoff_start_psymtab): Use new.
10723 * psymtab.c (partial_symtab::partial_symtab): New constructor,
10724 renamed from start_psymtab_common.
10725 * psympriv.h (struct partial_symtab): Add new constructor.
10726 (start_psymtab_common): Don't declare.
10727 * mdebugread.c (parse_partial_symbols): Use new.
10728 * dwarf2read.c (create_partial_symtab): Use new.
10729 * dbxread.c (start_psymtab): Use new.
10730 * ctfread.c (create_partial_symtab): Use new.
10731
10732 2020-01-26 Tom Tromey <tom@tromey.com>
10733
10734 * xcoffread.c (xcoff_end_psymtab): Use new.
10735 * psymtab.c (start_psymtab_common): Use new.
10736 (partial_symtab::partial_symtab): Rename from allocate_psymtab.
10737 Update.
10738 * psympriv.h (struct partial_symtab): Add parameters to
10739 constructor. Don't inline.
10740 (allocate_psymtab): Don't declare.
10741 * mdebugread.c (new_psymtab): Use new.
10742 * dwarf2read.c (dwarf2_create_include_psymtab): Use new.
10743 * dbxread.c (dbx_end_psymtab): Use new.
10744
10745 2020-01-26 Tom Tromey <tom@tromey.com>
10746
10747 * psymtab.h (class psymtab_storage) <install_psymtab>: Rename from
10748 allocate_psymtab. Update documentation.
10749 * psymtab.c (psymtab_storage::install_psymtab): Rename from
10750 allocate_psymtab. Do not use new.
10751 (allocate_psymtab): Use new. Update.
10752
10753 2020-01-26 Tom Tromey <tom@tromey.com>
10754
10755 * xcoffread.c (xcoff_psymtab_to_symtab_1): Update.
10756 * psymtab.c (psym_print_stats): Update.
10757 * psympriv.h (struct partial_symtab) <readin,
10758 psymtabs_addrmap_supported, anonymous>: Now bool.
10759 * mdebugread.c (psymtab_to_symtab_1): Update.
10760 * dwarf2read.c (create_type_unit_group, create_partial_symtab)
10761 (build_type_psymtabs_reader, psymtab_to_symtab_1)
10762 (process_full_comp_unit, process_full_type_unit): Update.
10763 * dbxread.c (dbx_psymtab_to_symtab_1): Update.
10764 * ctfread.c (psymtab_to_symtab): Update.
10765
10766 2020-01-26 Tom Tromey <tom@tromey.com>
10767
10768 * mdebugread.c (parse_partial_symbols): Use discard_psymtab.
10769 * psymtab.h (class psymtab_storage) <free_psymtabs>: Remove.
10770 * psymtab.c (psymtab_storage): Delete psymtabs.
10771 (psymtab_storage::allocate_psymtab): Use new.
10772 (psymtab_storage::discard_psymtab): Use delete.
10773 * psympriv.h (struct partial_symtab): Add constructor and
10774 initializers.
10775
10776 2020-01-26 Tom Tromey <tom@tromey.com>
10777
10778 * machoread.c: Do not include psympriv.h.
10779
10780 2020-01-25 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10781
10782 * NEWS: Mention the new option and the set/show commands.
10783
10784 2020-01-25 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10785
10786 * exec.c (exec_file_mismatch_names, exec_file_mismatch_mode)
10787 (show_exec_file_mismatch_command, set_exec_file_mismatch_command)
10788 (validate_exec_file): New variables, enums, functions.
10789 (exec_file_locate_attach, print_section_info): Style the filenames.
10790 (_initialize_exec): Install show_exec_file_mismatch_command and
10791 set_exec_file_mismatch_command.
10792 * gdbcore.h (validate_exec_file): Declare.
10793 * infcmd.c (attach_command): Call validate_exec_file.
10794 * remote.c ( remote_target::remote_add_inferior): Likewise.
10795
10796 2020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
10797
10798 * frame.c (find_frame_sal): Move call to get_next_frame into more
10799 inner scope.
10800 * inline-frame.c (inilne_state) <inline_state>: Update argument
10801 types.
10802 (inilne_state) <skipped_symbol>: Rename to...
10803 (inilne_state) <skipped_symbols>: ...this, and change to a vector.
10804 (skip_inline_frames): Build vector of skipped symbols and use this
10805 to reate the inline_state.
10806 (inline_skipped_symbol): Add a comment and some assertions, fetch
10807 skipped symbol from the list.
10808
10809 2020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
10810
10811 * buildsym.c (lte_is_less_than): Delete.
10812 (buildsym_compunit::end_symtab_with_blockvector): Create local
10813 lambda function to sort line table entries, and use
10814 std::stable_sort instead of std::sort.
10815 * symtab.c (find_pc_sect_line): Skip backward over end of sequence
10816 markers when looking for a previous line.
10817
10818 2020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
10819
10820 * dwarf2read.c (lnp_state_machine::record_line): Include
10821 end_sequence parameter in debug print out. Record the line if we
10822 are at an end_sequence marker even if it's not the start of a
10823 statement.
10824 * symmisc.c (maintenance_print_one_line_table): Print end of
10825 sequence markers with 'END' not '0'.
10826
10827 2020-01-24 Pedro Alves <palves@redhat.com>
10828
10829 PR gdb/25410
10830 * thread.c (scoped_restore_current_thread::restore): Use
10831 switch_to_inferior_no_thread.
10832 * exec.c: Include "progspace-and-thread.h".
10833 (add_target_sections, remove_target_sections):
10834 scoped_restore_current_pspace_and_thread instead of
10835 scoped_restore_current_thread.
10836 * infrun.c (handle_vfork_child_exec_or_exit): Assign the pspace
10837 and aspace to the inferior before calling clone_program_space.
10838 Remove stale comment.
10839
10840 2020-01-24 Christian Biesinger <cbiesinger@google.com>
10841
10842 * arm-nbsd-nat.c (arm_nbsd_nat_target::fetch_registers): Rename to...
10843 (arm_netbsd_nat_target::fetch_registers): ...this.
10844 (arm_nbsd_nat_target::store_registers): Rename to...
10845 (arm_netbsd_nat_target::store_registers): ...this.
10846
10847 2020-01-24 Christian Biesinger <cbiesinger@google.com>
10848
10849 * arm-nbsd-nat.c: Define _KERNTYPES to get the declaration of
10850 register_t.
10851
10852 2020-01-24 Christian Biesinger <cbiesinger@google.com>
10853
10854 * aarch64-fbsd-tdep.c (aarch64_fbsd_iterate_over_regset_sections):
10855 Update comment.
10856 * aarch64-linux-tdep.c (aarch64_linux_iterate_over_regset_sections):
10857 Likewise.
10858 * arm-fbsd-tdep.c (arm_fbsd_iterate_over_regset_sections): Likewise.
10859 * gdbcore.h (deprecated_add_core_fns): Update comment to point to
10860 the correct replacement (iterate_over_regset_sections).
10861 * riscv-fbsd-tdep.c (riscv_fbsd_iterate_over_regset_sections):
10862 Update comment.
10863
10864 2020-01-24 Graham Markall <graham.markall@embecosm.com>
10865
10866 PR gdb/23718
10867 * gdb/python/python.c (execute_gdb_command): Call
10868 async_enable_stdin in catch block.
10869
10870 2020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
10871
10872 * event-loop.c (start_event_loop): Wrap async_enable_stdin with
10873 SWITCH_THRU_ALL_UIS.
10874
10875 2020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
10876
10877 PR tui/9765
10878 * minsyms.c (lookup_minimal_symbol_by_pc_section): Update header
10879 comment, add extra parameter, and update to store previous symbol
10880 when appropriate.
10881 * minsyms.h (lookup_minimal_symbol_by_pc_section): Update comment,
10882 add extra parameter.
10883 * tui/tui-disasm.c (tui_disassemble): Update header comment,
10884 remove unneeded parameter, add try/catch around gdb_print_insn,
10885 rewrite to add items to asm_lines vector.
10886 (tui_find_backward_disassembly_start_address): New function.
10887 (tui_find_disassembly_address): Updated throughout.
10888 (tui_disasm_window::set_contents): Update for changes to
10889 tui_disassemble.
10890 (tui_disasm_window::do_scroll_vertical): No need to adjust the
10891 number of lines to scroll.
10892
10893 2020-01-23 Simon Marchi <simon.marchi@polymtl.ca>
10894
10895 * objfiles.h (ALL_OBJFILE_OSECTIONS): Move up.
10896 (SECT_OFF_DATA): Likewise.
10897 (SECT_OFF_RODATA): Likewise.
10898 (SECT_OFF_TEXT): Likewise.
10899 (SECT_OFF_BSS): Likewise.
10900 (struct objfile) <text_section_offset, data_section_offset>: New
10901 methods.
10902 * amd64-windows-tdep.c (amd64_windows_find_unwind_info): Use
10903 objfile::text_section_offset.
10904 * coff-pe-read.c (add_pe_forwarded_sym): Likewise.
10905 * coffread.c (coff_symtab_read): Likewise.
10906 (enter_linenos): Likewise.
10907 (process_coff_symbol): Likewise.
10908 * ctfread.c (get_objfile_text_range): Likewise.
10909 * dtrace-probe.c (dtrace_probe::get_relocated_address):
10910 Use objfile::data_section_offset.
10911 * dwarf2-frame.c (execute_cfa_program): Use
10912 objfile::text_section_offset.
10913 (dwarf2_frame_find_fde): Likewise.
10914 * dwarf2read.c (create_addrmap_from_index): Likewise.
10915 (create_addrmap_from_aranges): Likewise.
10916 (dw2_find_pc_sect_compunit_symtab): Likewise.
10917 (process_psymtab_comp_unit_reader): Likewise.
10918 (add_partial_symbol): Likewise.
10919 (add_partial_subprogram): Likewise.
10920 (process_full_comp_unit): Likewise.
10921 (read_file_scope): Likewise.
10922 (read_func_scope): Likewise.
10923 (read_lexical_block_scope): Likewise.
10924 (read_call_site_scope): Likewise.
10925 (dwarf2_rnglists_process): Likewise.
10926 (dwarf2_ranges_process): Likewise.
10927 (dwarf2_ranges_read): Likewise.
10928 (dwarf_decode_lines_1): Likewise.
10929 (new_symbol): Likewise.
10930 (dwarf2_fetch_die_loc_sect_off): Likewise.
10931 (dwarf2_per_cu_text_offset): Likewise.
10932 * hppa-bsd-tdep.c (hppabsd_find_global_pointer): Likewise.
10933 * hppa-tdep.c (read_unwind_info): Likewise.
10934 * ia64-tdep.c (ia64_find_unwind_table): Likewise.
10935 * psympriv.h (struct partial_symtab): Likewise.
10936 * psymtab.c (find_pc_sect_psymtab): Likewise.
10937 * solib-svr4.c (enable_break): Likewise.
10938 * stap-probe.c (relocate_address): Use
10939 objfile::data_section_offset.
10940 * xcoffread.c (enter_line_range): Use
10941 objfile::text_section_offset.
10942 (read_xcoff_symtab): Likewise.
10943
10944 2020-01-23 Simon Marchi <simon.marchi@efficios.com>
10945
10946 * darwin-nat.c (darwin_nat_target::wait_1): Move `inf`
10947 declaration to narrower scopes.
10948
10949 2020-01-23 Simon Marchi <simon.marchi@efficios.com>
10950
10951 * darwin-nat.h (struct darwin_exception_msg, enum
10952 darwin_msg_state, struct darwin_thread_info, darwin_thread_t):
10953 Move up.
10954 (class darwin_nat_target) <wait_1, check_new_threads,
10955 decode_exception_message, decode_message, stop_inferior,
10956 init_thread_list, ptrace_him, cancel_breakpoint>: Declare.
10957 * darwin-nat.c (darwin_check_new_threads): Rename to...
10958 (darwin_nat_target::check_new_threads): ... this.
10959 (darwin_suspend_inferior_it): Remove.
10960 (darwin_decode_exception_message): Rename to...
10961 (darwin_nat_target::decode_exception_message): ... this.
10962 (darwin_nat_target::resume): Pass target to find_inferior_ptid.
10963 (darwin_decode_message): Rename to...
10964 (darwin_nat_target::decode_message): ... this.
10965 (cancel_breakpoint): Rename to...
10966 (darwin_nat_target::cancel_breakpoint): ... this.
10967 (darwin_wait): Rename to...
10968 (darwin_nat_target::wait_1): ... this. Use range-based for loop
10969 instead of iterate_over_inferiors.
10970 (darwin_nat_target::wait): Call wait_1 instead of darwin_wait.
10971 (darwin_stop_inferior): Rename to...
10972 (darwin_nat_target::stop_inferior): ... this.
10973 (darwin_nat_target::kill): Call wait_1 instead of darwin_wait.
10974 (darwin_init_thread_list): Rename to...
10975 (darwin_nat_target::init_thread_list): ... this.
10976 (darwin_ptrace_him): Rename to...
10977 (darwin_nat_target::ptrace_him): ... this.
10978 (darwin_nat_target::create_inferior): Pass lambda function to
10979 fork_inferior.
10980 (darwin_nat_target::detach): Call stop_inferior instead of
10981 darwin_stop_inferior.
10982 * fork-inferior.h (fork_inferior): Change init_trace_fun
10983 parameter to gdb::function_view.
10984 * fork-inferior.c (fork_inferior): Likewise.
10985
10986 2020-01-23 Hannes Domani <ssbssa@yahoo.de>
10987
10988 * i386-cygwin-tdep.c (core_process_module_section): Update.
10989 * windows-nat.c (struct lm_info_windows): Add text_offset.
10990 (windows_xfer_shared_libraries): Update.
10991 * windows-tdep.c (windows_xfer_shared_library):
10992 Add text_offset_cached argument.
10993 * windows-tdep.h (windows_xfer_shared_library): Update.
10994
10995 2020-01-21 Simon Marchi <simon.marchi@efficios.com>
10996
10997 * gdbarch.sh: Add declaration for _initialize_gdbarch.
10998
10999 2020-01-21 Simon Marchi <simon.marchi@efficios.com>
11000
11001 * remote-sim.c (check_for_duplicate_sim_descriptor): Remove.
11002 (get_sim_inferior_data): Remove use of iterate_over_inferiors,
11003 replace with range-based for.
11004 (gdbsim_interrupt_inferior): Remove.
11005 (gdbsim_target::interrupt): Replace iterate_over_inferiors use
11006 with a range-based for. Inline code from
11007 gdbsim_interrupt_inferior.
11008
11009 2020-01-21 Simon Marchi <simon.marchi@efficios.com>
11010
11011 * infrun.c (proceed): Fix indentation.
11012
11013 2020-01-21 Tom Tromey <tromey@adacore.com>
11014
11015 * source-cache.c (source_cache::ensure): Call ext_lang_colorize.
11016 * python/python.c (python_extension_ops): Update.
11017 (gdbpy_colorize): New function.
11018 * python/lib/gdb/__init__.py (colorize): New function.
11019 * extension.h (ext_lang_colorize): Declare.
11020 * extension.c (ext_lang_colorize): New function.
11021 * extension-priv.h (struct extension_language_ops) <colorize>: New
11022 member.
11023 * cli/cli-style.c (_initialize_cli_style): Update help text.
11024
11025 2020-01-21 Luis Machado <luis.machado@linaro.org>
11026
11027 * aarch64-tdep.c (struct aarch64_displaced_step_closure)
11028 <cond>: Change type to bool.
11029 (aarch64_displaced_step_b_cond): Update cond to use bool type.
11030 (aarch64_displaced_step_cb): Likewise.
11031 (aarch64_displaced_step_tb): Likewise.
11032
11033 2020-01-21 Luis Machado <luis.machado@linaro.org>
11034
11035 * aarch64-tdep.c (aarch64_displaced_step_fixup): Add more debugging
11036 output.
11037
11038 2020-01-21 Luis Machado <luis.machado@linaro.org>
11039
11040 * aarch64-tdep.c (struct aarch64_displaced_step_closure )
11041 <pc_adjust>: Adjust the documentation.
11042 (aarch64_displaced_step_fixup): Check if PC really moved before
11043 adjusting it.
11044
11045 2020-01-19 Tom Tromey <tom@tromey.com>
11046
11047 * disasm.c (~gdb_disassembler): New destructor.
11048 (gdb_buffered_insn_length): Call disassemble_free_target.
11049 * disasm.h (class gdb_disassembler): Declare destructor. Use
11050 DISABLE_COPY_AND_ASSIGN.
11051
11052 2020-01-19 Tom Tromey <tom@tromey.com>
11053
11054 * dwarf2read.c (abbrev_table_up): Move typedef earlier.
11055 (die_reader_func_ftype): Remove.
11056 (cutu_reader): New class.
11057 (dw2_get_file_names_reader): Remove "data" parameter.
11058 (dw2_get_file_names): Use cutu_reader.
11059 (create_debug_type_hash_table): Update.
11060 (read_cutu_die_from_dwo): Update comment.
11061 (lookup_dwo_unit): Add dwo_name parameter.
11062 (cutu_reader::init_tu_and_read_dwo_dies): Now a method. Remove
11063 die_reader_func_ftype and data parameters.
11064 (cutu_reader::cutu_reader): Rename from init_cutu_and_read_dies.
11065 Remove die_reader_func_ftype and data parameters.
11066 (~cutu_reader): New; from init_cutu_and_read_dies.
11067 (cutu_reader::cutu_reader): Rename from
11068 init_cutu_and_read_dies_no_follow. Remove die_reader_func_ftype
11069 and data parameters.
11070 (init_cutu_and_read_dies_simple): Remove.
11071 (struct process_psymtab_comp_unit_data): Remove.
11072 (process_psymtab_comp_unit_reader): Remove data parameter; add
11073 want_partial_unit and pretend_language parameters.
11074 (process_psymtab_comp_unit): Use cutu_reader.
11075 (build_type_psymtabs_reader): Remove data parameter.
11076 (build_type_psymtabs_1): Use cutu_reader.
11077 (process_skeletonless_type_unit): Likewise.
11078 (load_partial_comp_unit_reader): Remove.
11079 (load_partial_comp_unit): Use cutu_reader.
11080 (load_full_comp_unit_reader): Remove.
11081 (load_full_comp_unit): Use cutu_reader.
11082 (struct create_dwo_cu_data): Remove.
11083 (create_dwo_cu_reader): Remove datap parameter; add dwo_file and
11084 dwo_unit parameters.
11085 (create_cus_hash_table): Use cutu_reader.
11086 (struct dwarf2_read_addr_index_data): Remove.
11087 (dwarf2_read_addr_index_reader): Remove.
11088 (dwarf2_read_addr_index): Use cutu_reader.
11089 (read_signatured_type_reader): Remove.
11090 (read_signatured_type): Use cutu_reader.
11091
11092 2020-01-19 Tom Tromey <tom@tromey.com>
11093
11094 * tui/tui.c (tui_show_assembly): Use tui_suppress_output.
11095 * tui/tui-wingeneral.h (class tui_suppress_output): New.
11096 (tui_wrefresh): Declare.
11097 * tui/tui-wingeneral.c (suppress_output): New global.
11098 (tui_suppress_output, ~tui_suppress_output): New constructor and
11099 destructor.
11100 (tui_wrefresh): New function.
11101 (tui_gen_win_info::refresh_window): Use tui_wrefresh.
11102 (tui_gen_win_info::make_window): Call wnoutrefresh when needed.
11103 * tui/tui-regs.h (struct tui_data_window) <no_refresh>: Declare
11104 method.
11105 * tui/tui-regs.c (tui_data_window::erase_data_content): Call
11106 tui_wrefresh.
11107 (tui_data_window::no_refresh): New method.
11108 (tui_data_item_window::refresh_window): Call tui_wrefresh.
11109 (tui_reg_command): Use tui_suppress_output
11110 * tui/tui-layout.c (tui_set_layout): Use tui_suppress_output.
11111 * tui/tui-data.h (struct tui_gen_win_info) <no_refresh>: New
11112 method.
11113 * tui/tui-command.c (tui_refresh_cmd_win): Call tui_wrefresh.
11114
11115 2020-01-19 Tom Tromey <tom@tromey.com>
11116
11117 * tui/tui-winsource.c (tui_update_source_windows_with_line):
11118 Handle case where symtab is null.
11119
11120 2020-01-19 Simon Marchi <simon.marchi@polymtl.ca>
11121
11122 * linux-fork.c (one_fork_p): Simplify.
11123
11124 2020-01-17 Simon Marchi <simon.marchi@efficios.com>
11125
11126 * top.c (struct qt_args): Remove.
11127 (kill_or_detach): Change return type to void, replace `void *`
11128 parameter with a proper one.
11129 (print_inferior_quit_action): Likewise.
11130 (quit_confirm): Use range-based for loop to iterate over inferiors.
11131 (quit_force): Likewise.
11132
11133 2020-01-17 Simon Marchi <simon.marchi@efficios.com>
11134
11135 * mi/mi-main.c (run_one_inferior): Change return type to void, replace
11136 `void *` parameter with proper parameters.
11137 (mi_cmd_exec_run): Use range-based loop to iterate over inferiors.
11138 (print_one_inferior): Change return type to void, replace `void *`
11139 parameter with proper parameters.
11140 (mi_cmd_list_thread_groups): Use range-based loop to iterate over
11141 inferiors.
11142 (get_other_inferior): Remove.
11143 (mi_cmd_remove_inferior): Use range-based loop to iterate over
11144 inferiors.
11145
11146 2020-01-17 Simon Marchi <simon.marchi@efficios.com>
11147
11148 * mi/mi-interp.c (report_initial_inferior): Remove.
11149 (mi_interp::init): Use range-based for to iterate over inferiors.
11150
11151 2020-01-17 Simon Marchi <simon.marchi@efficios.com>
11152
11153 * python/py-inferior.c (build_inferior_list): Remove.
11154 (gdbpy_ref): Use range-based for loop to iterate over inferiors.
11155
11156 2020-01-16 Christian Biesinger <cbiesinger@google.com>
11157
11158 * btrace.c (btrace_compute_ftrace_1): Fix spelling error (Unkown).
11159 (btrace_stitch_trace): Likewise.
11160 * charset.c (intermediate_encoding): Likewise (vaild).
11161 * nat/linux-btrace.c (linux_read_pt): Likewise (Unkown).
11162 * python/py-record-btrace.c (struct PyMethodDef): Likewise (occurences).
11163 * record-btrace.c (record_btrace_print_conf): Likewise (unkown).
11164
11165 2020-01-16 Hannes Domani <ssbssa@yahoo.de>
11166
11167 * windows-tdep.c (windows_get_tlb_type):
11168 Add rtl_user_process_parameters type.
11169
11170 2020-01-16 Pedro Alves <palves@redhat.com>
11171 Norbert Lange <nolange79@gmail.com>
11172
11173 PR build/24805
11174 * gdbsupport/gdb_proc_service.h (PS_EXPORT): New.
11175 (ps_get_thread_area, ps_getpid, ps_lcontinue, ps_lgetfpregs)
11176 (ps_lgetregs, ps_lsetfpregs, ps_lsetregs, ps_lstop, ps_pcontinue)
11177 (ps_pdread, ps_pdwrite, ps_pglobal_lookup, ps_pstop, ps_ptread)
11178 (ps_ptwrite, ps_lgetxregs, ps_lgetxregsize, ps_lsetxregs)
11179 (ps_plog): Redeclare exported functions with default visibility.
11180
11181 2020-01-16 Nitika Achra <Nitika.Achra@amd.com>
11182
11183 * dwarf2loc.c (decode_debug_loclists_addresses): Handle
11184 DW_LLE_base_addressx, DW_LLE_startx_length, DW_LLE_start_length.
11185
11186 2020-01-15 Simon Marchi <simon.marchi@efficios.com>
11187
11188 * infcmd.c (post_create_inferior): Use get_thread_regcache
11189 instead of get_current_regcache.
11190
11191 2020-01-14 Tom Tromey <tom@tromey.com>
11192
11193 PR symtab/12535:
11194 * python/python.c (gdbpy_decode_line): Treat empty string the same
11195 as no argument.
11196
11197 2020-01-14 Tom Tromey <tom@tromey.com>
11198
11199 * Makefile.in (CLIBS): Remove second use of $(LIBIBERTY).
11200
11201 2020-01-14 Tom Tromey <tom@tromey.com>
11202
11203 * nat/linux-btrace.c: Don't include <config.h>.
11204 * nat/linux-ptrace.c: Don't include <config.h>.
11205 * nat/x86-linux-dregs.c: Don't include <config.h>.
11206
11207 2020-01-14 Tom Tromey <tom@tromey.com>
11208
11209 * configure: Rebuild.
11210 * configure.ac: Move many checks to ../gdbsupport/common.m4.
11211
11212 2020-01-14 Tom Tromey <tom@tromey.com>
11213
11214 * nat/x86-linux-dregs.c: Include configh.h.
11215 * nat/linux-ptrace.c: Include configh.h.
11216 * nat/linux-btrace.c: Include configh.h.
11217 * defs.h: Include config.h, bfd.h.
11218 * configure.ac: Don't source common.host.
11219 (CONFIG_OBS, CONFIG_SRCS): Remove gdbsupport files.
11220 * configure: Rebuild.
11221 * acinclude.m4: Update path.
11222 * Makefile.in (SUPPORT, LIBSUPPORT, INCSUPPORT): New variables.
11223 (CONFIG_SRC_SUBDIR): Remove gdbsupport.
11224 (INTERNAL_CFLAGS_BASE): Add INCSUPPORT.
11225 (CLIBS): Add LIBSUPPORT.
11226 (CDEPS): Likewise.
11227 (COMMON_SFILES): Remove gdbsupport files.
11228 (HFILES_NO_SRCDIR): Likewise.
11229 (stamp-version): Update path to create-version.sh.
11230 (ALLDEPFILES): Remove gdbsupport files.
11231
11232 2020-01-14 Tom Tromey <tom@tromey.com>
11233
11234 * gdbsupport/common.m4 (GDB_AC_COMMON): Define WIN32APILIBS and
11235 USE_WIN32API when needed.
11236 * configure.ac (USE_WIN32API): Don't define.
11237 (WIN32LIBS): Use WIN32APILIBS.
11238 * configure: Rebuild.
11239
11240 2020-01-14 Tom Tromey <tom@tromey.com>
11241
11242 * configure: Rebuild.
11243 * gdbsupport/common.m4 (GDB_AC_COMMON): Fix indentation.
11244
11245 2020-01-14 Bernd Edlinger <bernd.edlinger@hotmail.de>
11246
11247 * skip.c (skip_function_command): Make skip w/o arguments use the
11248 name of the inlined function if pc is inside any inlined function.
11249
11250 2020-01-14 Luis Machado <luis.machado@linaro.org>
11251
11252 * inf-ptrace.c (inf_ptrace_target::resume): Update comments.
11253 * infrun.c (resume_1): Likewise.
11254 (handle_inferior_event): Remove stale comment.
11255 * linux-nat.c (linux_nat_target::resume): Update comments.
11256 (save_stop_reason): Likewise.
11257 (linux_nat_filter_event): Likewise.
11258 * linux-nat.h (struct lwp_info) <stop_pc>, <stop_reason>: Likewise.
11259
11260 2020-01-13 Andrew Burgess <andrew.burgess@embecosm.com>
11261
11262 * elfread.c (record_minimal_symbol): Set section index to 0 for
11263 non-allocatable sections.
11264
11265
11266 2020-01-13 Ali Tamur <tamur@google.com>
11267
11268 * dwarf2read.c (dwarf2_debug_sections): Add debug_str_offsets sections.
11269 (dwarf2_cu): Add str_offsets_base field. Change the type of addr_base
11270 to gdb::optional. Update comments.
11271 (dwo_file): Update comments.
11272 (read_attribute): Update API to take an additional out parameter,
11273 need_reprocess. This is used to mark attributes that need other
11274 attributes (e.g. str_offsets_base) for correct computation which may not
11275 have been read yet.
11276 (read_attribute_reprocess): New function declaration.
11277 (read_addr_index): Likewise.
11278 (read_dwo_str_index): Likewise.
11279 (read_stub_str_index): Likewise.
11280 (dwarf2_per_objfile::locate_sections): Handle debug_str_offsets section.
11281 (lookup_addr_base): New function definition.
11282 (lookup_ranges_base): Likewise.
11283 (read_cutu_die_from_dwo): Use the new functions: lookup_addr_base,
11284 lookup_ranges_base.
11285 (init_cutu_and_read_dies): Update comments.
11286 (init_cutu_and_read_dies_no_follow): Change API to take parent compile
11287 unit. This is used to inherit parent's str_offsets_base and addr_base.
11288 Update comments.
11289 (init_cutu_and_read_dies_simple): Reflect API changes.
11290 (skip_one_die): Reflect API changes. Handle DW_FORM_rnglistx.
11291 (create_cus_hash_table): Change API to take parent compile unit.
11292 Reflect API changes.
11293 (open_and_init_dwo_file): Reflect API changes.
11294 (dwarf2_get_pc_bounds): Update comments.
11295 (dwarf2_record_block_ranges): Likewise.
11296 (read_full_die_1): Change implementation to reprocess attributes that
11297 need str_offsets_base and addr_base.
11298 (partial_die_info::read): Likewise.
11299 (read_attribute_reprocess): New function definition.
11300 (read_attribute_value): Change API to take an additional out parameter,
11301 need_reprocess. Handle DW_FORM_rnglistx. No longer trigger an error
11302 when a non-dwo compile unit has index based attributes.
11303 (read_attribute): Reflect API changes.
11304 (read_addr_index_1): Reflect API changes. Update comments.
11305 (dwarf2_read_addr_index_data): Reflect API changes.
11306 (dwarf2_read_addr_index): Likewise.
11307 (read_str_index): Change API and implementation. This becomes a helper
11308 to be used by the new string index related methods. Update error
11309 message and comments.
11310 (read_dwo_str_index): New function definition.
11311 (read_stub_str_index): Likewise.
11312 * dwarf2read.h (dwarf2_per_objfile): Add str_offsets field.
11313 * symfile.h (dwarf2_debug_sections): Likewise.
11314 * xcoffread.c (dwarf2_debug_sections): Likewise.
11315
11316 2020-01-13 Simon Marchi <simon.marchi@efficios.com>
11317
11318 * gdbcore.h (struct core_fns) <core_read_registers>: Change
11319 core_reg_sect type to gdb_byte *.
11320 * arm-nbsd-nat.c (fetch_elfcore_registers): Likewise.
11321 * cris-tdep.c (fetch_core_registers): Likewise.
11322 * corelow.c (core_target::get_core_register_section): Change
11323 type of `contents` to gdb::byte_vector.
11324
11325 2020-01-13 Andrew Burgess <andrew.burgess@embecosm.com>
11326
11327 * tui/tui-wingeneral.c (box_win): Position the title in the center
11328 of the border.
11329
11330 2020-01-13 Simon Marchi <simon.marchi@polymtl.ca>
11331
11332 * corelow.c (core_target::get_core_register_section): Use
11333 std::vector instead of alloca.
11334
11335 2020-01-13 Simon Marchi <simon.marchi@efficios.com>
11336
11337 * warning.m4: Add -Wmissing-declarations to build_warnings.
11338 * configure: Re-generate.
11339
11340 2020-01-13 Simon Marchi <simon.marchi@efficios.com>
11341
11342 * python/python.c (init__gdb_module): Add declaration.
11343
11344 2020-01-13 Simon Marchi <simon.marchi@efficios.com>
11345
11346 * aarch64-fbsd-nat.c (_initialize_aarch64_fbsd_nat): Add declaration.
11347 * aarch64-fbsd-tdep.c (_initialize_aarch64_fbsd_tdep): Add declaration.
11348 * aarch64-linux-nat.c (_initialize_aarch64_linux_nat): Add declaration.
11349 * aarch64-linux-tdep.c (_initialize_aarch64_linux_tdep): Add declaration.
11350 * aarch64-newlib-tdep.c (_initialize_aarch64_newlib_tdep): Add declaration.
11351 * aarch64-tdep.c (_initialize_aarch64_tdep): Add declaration.
11352 * ada-exp.y (_initialize_ada_exp): Add declaration.
11353 * ada-lang.c (_initialize_ada_language): Add declaration.
11354 * ada-tasks.c (_initialize_tasks): Add declaration.
11355 * agent.c (_initialize_agent): Add declaration.
11356 * aix-thread.c (_initialize_aix_thread): Add declaration.
11357 * alpha-bsd-nat.c (_initialize_alphabsd_nat): Add declaration.
11358 * alpha-linux-nat.c (_initialize_alpha_linux_nat): Add declaration.
11359 * alpha-linux-tdep.c (_initialize_alpha_linux_tdep): Add declaration.
11360 * alpha-nbsd-tdep.c (_initialize_alphanbsd_tdep): Add declaration.
11361 * alpha-obsd-tdep.c (_initialize_alphaobsd_tdep): Add declaration.
11362 * alpha-tdep.c (_initialize_alpha_tdep): Add declaration.
11363 * amd64-darwin-tdep.c (_initialize_amd64_darwin_tdep): Add declaration.
11364 * amd64-dicos-tdep.c (_initialize_amd64_dicos_tdep): Add declaration.
11365 * amd64-fbsd-nat.c (_initialize_amd64fbsd_nat): Add declaration.
11366 * amd64-fbsd-tdep.c (_initialize_amd64fbsd_tdep): Add declaration.
11367 * amd64-linux-nat.c (_initialize_amd64_linux_nat): Add declaration.
11368 * amd64-linux-tdep.c (_initialize_amd64_linux_tdep): Add declaration.
11369 * amd64-nbsd-nat.c (_initialize_amd64nbsd_nat): Add declaration.
11370 * amd64-nbsd-tdep.c (_initialize_amd64nbsd_tdep): Add declaration.
11371 * amd64-obsd-nat.c (_initialize_amd64obsd_nat): Add declaration.
11372 * amd64-obsd-tdep.c (_initialize_amd64obsd_tdep): Add declaration.
11373 * amd64-sol2-tdep.c (_initialize_amd64_sol2_tdep): Add declaration.
11374 * amd64-tdep.c (_initialize_amd64_tdep): Add declaration.
11375 * amd64-windows-nat.c (_initialize_amd64_windows_nat): Add declaration.
11376 * amd64-windows-tdep.c (_initialize_amd64_windows_tdep): Add declaration.
11377 * annotate.c (_initialize_annotate): Add declaration.
11378 * arc-newlib-tdep.c (_initialize_arc_newlib_tdep): Add declaration.
11379 * arc-tdep.c (_initialize_arc_tdep): Add declaration.
11380 * arch-utils.c (_initialize_gdbarch_utils): Add declaration.
11381 * arm-fbsd-nat.c (_initialize_arm_fbsd_nat): Add declaration.
11382 * arm-fbsd-tdep.c (_initialize_arm_fbsd_tdep): Add declaration.
11383 * arm-linux-nat.c (_initialize_arm_linux_nat): Add declaration.
11384 * arm-linux-tdep.c (_initialize_arm_linux_tdep): Add declaration.
11385 * arm-nbsd-nat.c (_initialize_arm_netbsd_nat): Add declaration.
11386 * arm-nbsd-tdep.c (_initialize_arm_netbsd_tdep): Add declaration.
11387 * arm-obsd-tdep.c (_initialize_armobsd_tdep): Add declaration.
11388 * arm-pikeos-tdep.c (_initialize_arm_pikeos_tdep): Add declaration.
11389 * arm-symbian-tdep.c (_initialize_arm_symbian_tdep): Add declaration.
11390 * arm-tdep.c (_initialize_arm_tdep): Add declaration.
11391 * arm-wince-tdep.c (_initialize_arm_wince_tdep): Add declaration.
11392 * auto-load.c (_initialize_auto_load): Add declaration.
11393 * auxv.c (_initialize_auxv): Add declaration.
11394 * avr-tdep.c (_initialize_avr_tdep): Add declaration.
11395 * ax-gdb.c (_initialize_ax_gdb): Add declaration.
11396 * bfin-linux-tdep.c (_initialize_bfin_linux_tdep): Add declaration.
11397 * bfin-tdep.c (_initialize_bfin_tdep): Add declaration.
11398 * break-catch-sig.c (_initialize_break_catch_sig): Add declaration.
11399 * break-catch-syscall.c (_initialize_break_catch_syscall): Add declaration.
11400 * break-catch-throw.c (_initialize_break_catch_throw): Add declaration.
11401 * breakpoint.c (_initialize_breakpoint): Add declaration.
11402 * bsd-uthread.c (_initialize_bsd_uthread): Add declaration.
11403 * btrace.c (_initialize_btrace): Add declaration.
11404 * charset.c (_initialize_charset): Add declaration.
11405 * cli/cli-cmds.c (_initialize_cli_cmds): Add declaration.
11406 * cli/cli-dump.c (_initialize_cli_dump): Add declaration.
11407 * cli/cli-interp.c (_initialize_cli_interp): Add declaration.
11408 * cli/cli-logging.c (_initialize_cli_logging): Add declaration.
11409 * cli/cli-script.c (_initialize_cli_script): Add declaration.
11410 * cli/cli-style.c (_initialize_cli_style): Add declaration.
11411 * coff-pe-read.c (_initialize_coff_pe_read): Add declaration.
11412 * coffread.c (_initialize_coffread): Add declaration.
11413 * compile/compile-cplus-types.c (_initialize_compile_cplus_types): Add declaration.
11414 * compile/compile.c (_initialize_compile): Add declaration.
11415 * complaints.c (_initialize_complaints): Add declaration.
11416 * completer.c (_initialize_completer): Add declaration.
11417 * copying.c (_initialize_copying): Add declaration.
11418 * corefile.c (_initialize_core): Add declaration.
11419 * corelow.c (_initialize_corelow): Add declaration.
11420 * cp-abi.c (_initialize_cp_abi): Add declaration.
11421 * cp-namespace.c (_initialize_cp_namespace): Add declaration.
11422 * cp-support.c (_initialize_cp_support): Add declaration.
11423 * cp-valprint.c (_initialize_cp_valprint): Add declaration.
11424 * cris-linux-tdep.c (_initialize_cris_linux_tdep): Add declaration.
11425 * cris-tdep.c (_initialize_cris_tdep): Add declaration.
11426 * csky-linux-tdep.c (_initialize_csky_linux_tdep): Add declaration.
11427 * csky-tdep.c (_initialize_csky_tdep): Add declaration.
11428 * ctfread.c (_initialize_ctfread): Add declaration.
11429 * d-lang.c (_initialize_d_language): Add declaration.
11430 * darwin-nat-info.c (_initialize_darwin_info_commands): Add declaration.
11431 * darwin-nat.c (_initialize_darwin_nat): Add declaration.
11432 * dbxread.c (_initialize_dbxread): Add declaration.
11433 * dcache.c (_initialize_dcache): Add declaration.
11434 * disasm-selftests.c (_initialize_disasm_selftests): Add declaration.
11435 * disasm.c (_initialize_disasm): Add declaration.
11436 * dtrace-probe.c (_initialize_dtrace_probe): Add declaration.
11437 * dummy-frame.c (_initialize_dummy_frame): Add declaration.
11438 * dwarf-index-cache.c (_initialize_index_cache): Add declaration.
11439 * dwarf-index-write.c (_initialize_dwarf_index_write): Add declaration.
11440 * dwarf2-frame-tailcall.c (_initialize_tailcall_frame): Add declaration.
11441 * dwarf2-frame.c (_initialize_dwarf2_frame): Add declaration.
11442 * dwarf2expr.c (_initialize_dwarf2expr): Add declaration.
11443 * dwarf2loc.c (_initialize_dwarf2loc): Add declaration.
11444 * dwarf2read.c (_initialize_dwarf2_read): Add declaration.
11445 * elfread.c (_initialize_elfread): Add declaration.
11446 * exec.c (_initialize_exec): Add declaration.
11447 * extension.c (_initialize_extension): Add declaration.
11448 * f-lang.c (_initialize_f_language): Add declaration.
11449 * f-valprint.c (_initialize_f_valprint): Add declaration.
11450 * fbsd-nat.c (_initialize_fbsd_nat): Add declaration.
11451 * fbsd-tdep.c (_initialize_fbsd_tdep): Add declaration.
11452 * filesystem.c (_initialize_filesystem): Add declaration.
11453 * findcmd.c (_initialize_mem_search): Add declaration.
11454 * findvar.c (_initialize_findvar): Add declaration.
11455 * fork-child.c (_initialize_fork_child): Add declaration.
11456 * frame-base.c (_initialize_frame_base): Add declaration.
11457 * frame-unwind.c (_initialize_frame_unwind): Add declaration.
11458 * frame.c (_initialize_frame): Add declaration.
11459 * frv-linux-tdep.c (_initialize_frv_linux_tdep): Add declaration.
11460 * frv-tdep.c (_initialize_frv_tdep): Add declaration.
11461 * ft32-tdep.c (_initialize_ft32_tdep): Add declaration.
11462 * gcore.c (_initialize_gcore): Add declaration.
11463 * gdb-demangle.c (_initialize_gdb_demangle): Add declaration.
11464 * gdb_bfd.c (_initialize_gdb_bfd): Add declaration.
11465 * gdbarch-selftests.c (_initialize_gdbarch_selftests): Add declaration.
11466 * gdbarch.c (_initialize_gdbarch): Add declaration.
11467 * gdbtypes.c (_initialize_gdbtypes): Add declaration.
11468 * gnu-nat.c (_initialize_gnu_nat): Add declaration.
11469 * gnu-v2-abi.c (_initialize_gnu_v2_abi): Add declaration.
11470 * gnu-v3-abi.c (_initialize_gnu_v3_abi): Add declaration.
11471 * go-lang.c (_initialize_go_language): Add declaration.
11472 * go32-nat.c (_initialize_go32_nat): Add declaration.
11473 * guile/guile.c (_initialize_guile): Add declaration.
11474 * h8300-tdep.c (_initialize_h8300_tdep): Add declaration.
11475 * hppa-linux-nat.c (_initialize_hppa_linux_nat): Add declaration.
11476 * hppa-linux-tdep.c (_initialize_hppa_linux_tdep): Add declaration.
11477 * hppa-nbsd-nat.c (_initialize_hppanbsd_nat): Add declaration.
11478 * hppa-nbsd-tdep.c (_initialize_hppanbsd_tdep): Add declaration.
11479 * hppa-obsd-nat.c (_initialize_hppaobsd_nat): Add declaration.
11480 * hppa-obsd-tdep.c (_initialize_hppabsd_tdep): Add declaration.
11481 * hppa-tdep.c (_initialize_hppa_tdep): Add declaration.
11482 * i386-bsd-nat.c (_initialize_i386bsd_nat): Add declaration.
11483 * i386-cygwin-tdep.c (_initialize_i386_cygwin_tdep): Add declaration.
11484 * i386-darwin-nat.c (_initialize_i386_darwin_nat): Add declaration.
11485 * i386-darwin-tdep.c (_initialize_i386_darwin_tdep): Add declaration.
11486 * i386-dicos-tdep.c (_initialize_i386_dicos_tdep): Add declaration.
11487 * i386-fbsd-nat.c (_initialize_i386fbsd_nat): Add declaration.
11488 * i386-fbsd-tdep.c (_initialize_i386fbsd_tdep): Add declaration.
11489 * i386-gnu-nat.c (_initialize_i386gnu_nat): Add declaration.
11490 * i386-gnu-tdep.c (_initialize_i386gnu_tdep): Add declaration.
11491 * i386-go32-tdep.c (_initialize_i386_go32_tdep): Add declaration.
11492 * i386-linux-nat.c (_initialize_i386_linux_nat): Add declaration.
11493 * i386-linux-tdep.c (_initialize_i386_linux_tdep): Add declaration.
11494 * i386-nbsd-nat.c (_initialize_i386nbsd_nat): Add declaration.
11495 * i386-nbsd-tdep.c (_initialize_i386nbsd_tdep): Add declaration.
11496 * i386-nto-tdep.c (_initialize_i386nto_tdep): Add declaration.
11497 * i386-obsd-nat.c (_initialize_i386obsd_nat): Add declaration.
11498 * i386-obsd-tdep.c (_initialize_i386obsd_tdep): Add declaration.
11499 * i386-sol2-nat.c (_initialize_amd64_sol2_nat): Add declaration.
11500 * i386-sol2-tdep.c (_initialize_i386_sol2_tdep): Add declaration.
11501 * i386-tdep.c (_initialize_i386_tdep): Add declaration.
11502 * i386-windows-nat.c (_initialize_i386_windows_nat): Add declaration.
11503 * ia64-libunwind-tdep.c (_initialize_libunwind_frame): Add declaration.
11504 * ia64-linux-nat.c (_initialize_ia64_linux_nat): Add declaration.
11505 * ia64-linux-tdep.c (_initialize_ia64_linux_tdep): Add declaration.
11506 * ia64-tdep.c (_initialize_ia64_tdep): Add declaration.
11507 * ia64-vms-tdep.c (_initialize_ia64_vms_tdep): Add declaration.
11508 * infcall.c (_initialize_infcall): Add declaration.
11509 * infcmd.c (_initialize_infcmd): Add declaration.
11510 * inflow.c (_initialize_inflow): Add declaration.
11511 * infrun.c (_initialize_infrun): Add declaration.
11512 * interps.c (_initialize_interpreter): Add declaration.
11513 * iq2000-tdep.c (_initialize_iq2000_tdep): Add declaration.
11514 * jit.c (_initialize_jit): Add declaration.
11515 * language.c (_initialize_language): Add declaration.
11516 * linux-fork.c (_initialize_linux_fork): Add declaration.
11517 * linux-nat.c (_initialize_linux_nat): Add declaration.
11518 * linux-tdep.c (_initialize_linux_tdep): Add declaration.
11519 * linux-thread-db.c (_initialize_thread_db): Add declaration.
11520 * lm32-tdep.c (_initialize_lm32_tdep): Add declaration.
11521 * m2-lang.c (_initialize_m2_language): Add declaration.
11522 * m32c-tdep.c (_initialize_m32c_tdep): Add declaration.
11523 * m32r-linux-nat.c (_initialize_m32r_linux_nat): Add declaration.
11524 * m32r-linux-tdep.c (_initialize_m32r_linux_tdep): Add declaration.
11525 * m32r-tdep.c (_initialize_m32r_tdep): Add declaration.
11526 * m68hc11-tdep.c (_initialize_m68hc11_tdep): Add declaration.
11527 * m68k-bsd-nat.c (_initialize_m68kbsd_nat): Add declaration.
11528 * m68k-bsd-tdep.c (_initialize_m68kbsd_tdep): Add declaration.
11529 * m68k-linux-nat.c (_initialize_m68k_linux_nat): Add declaration.
11530 * m68k-linux-tdep.c (_initialize_m68k_linux_tdep): Add declaration.
11531 * m68k-tdep.c (_initialize_m68k_tdep): Add declaration.
11532 * machoread.c (_initialize_machoread): Add declaration.
11533 * macrocmd.c (_initialize_macrocmd): Add declaration.
11534 * macroscope.c (_initialize_macroscope): Add declaration.
11535 * maint-test-options.c (_initialize_maint_test_options): Add declaration.
11536 * maint-test-settings.c (_initialize_maint_test_settings): Add declaration.
11537 * maint.c (_initialize_maint_cmds): Add declaration.
11538 * mdebugread.c (_initialize_mdebugread): Add declaration.
11539 * memattr.c (_initialize_mem): Add declaration.
11540 * mep-tdep.c (_initialize_mep_tdep): Add declaration.
11541 * mi/mi-cmd-env.c (_initialize_mi_cmd_env): Add declaration.
11542 * mi/mi-cmds.c (_initialize_mi_cmds): Add declaration.
11543 * mi/mi-interp.c (_initialize_mi_interp): Add declaration.
11544 * mi/mi-main.c (_initialize_mi_main): Add declaration.
11545 * microblaze-linux-tdep.c (_initialize_microblaze_linux_tdep): Add declaration.
11546 * microblaze-tdep.c (_initialize_microblaze_tdep): Add declaration.
11547 * mips-fbsd-nat.c (_initialize_mips_fbsd_nat): Add declaration.
11548 * mips-fbsd-tdep.c (_initialize_mips_fbsd_tdep): Add declaration.
11549 * mips-linux-nat.c (_initialize_mips_linux_nat): Add declaration.
11550 * mips-linux-tdep.c (_initialize_mips_linux_tdep): Add declaration.
11551 * mips-nbsd-nat.c (_initialize_mipsnbsd_nat): Add declaration.
11552 * mips-nbsd-tdep.c (_initialize_mipsnbsd_tdep): Add declaration.
11553 * mips-sde-tdep.c (_initialize_mips_sde_tdep): Add declaration.
11554 * mips-tdep.c (_initialize_mips_tdep): Add declaration.
11555 * mips64-obsd-nat.c (_initialize_mips64obsd_nat): Add declaration.
11556 * mips64-obsd-tdep.c (_initialize_mips64obsd_tdep): Add declaration.
11557 * mipsread.c (_initialize_mipsread): Add declaration.
11558 * mn10300-linux-tdep.c (_initialize_mn10300_linux_tdep): Add declaration.
11559 * mn10300-tdep.c (_initialize_mn10300_tdep): Add declaration.
11560 * moxie-tdep.c (_initialize_moxie_tdep): Add declaration.
11561 * msp430-tdep.c (_initialize_msp430_tdep): Add declaration.
11562 * nds32-tdep.c (_initialize_nds32_tdep): Add declaration.
11563 * nios2-linux-tdep.c (_initialize_nios2_linux_tdep): Add declaration.
11564 * nios2-tdep.c (_initialize_nios2_tdep): Add declaration.
11565 * nto-procfs.c (_initialize_procfs): Add declaration.
11566 * objc-lang.c (_initialize_objc_language): Add declaration.
11567 * observable.c (_initialize_observer): Add declaration.
11568 * opencl-lang.c (_initialize_opencl_language): Add declaration.
11569 * or1k-linux-tdep.c (_initialize_or1k_linux_tdep): Add declaration.
11570 * or1k-tdep.c (_initialize_or1k_tdep): Add declaration.
11571 * osabi.c (_initialize_gdb_osabi): Add declaration.
11572 * osdata.c (_initialize_osdata): Add declaration.
11573 * p-valprint.c (_initialize_pascal_valprint): Add declaration.
11574 * parse.c (_initialize_parse): Add declaration.
11575 * ppc-fbsd-nat.c (_initialize_ppcfbsd_nat): Add declaration.
11576 * ppc-fbsd-tdep.c (_initialize_ppcfbsd_tdep): Add declaration.
11577 * ppc-linux-nat.c (_initialize_ppc_linux_nat): Add declaration.
11578 * ppc-linux-tdep.c (_initialize_ppc_linux_tdep): Add declaration.
11579 * ppc-nbsd-nat.c (_initialize_ppcnbsd_nat): Add declaration.
11580 * ppc-nbsd-tdep.c (_initialize_ppcnbsd_tdep): Add declaration.
11581 * ppc-obsd-nat.c (_initialize_ppcobsd_nat): Add declaration.
11582 * ppc-obsd-tdep.c (_initialize_ppcobsd_tdep): Add declaration.
11583 * printcmd.c (_initialize_printcmd): Add declaration.
11584 * probe.c (_initialize_probe): Add declaration.
11585 * proc-api.c (_initialize_proc_api): Add declaration.
11586 * proc-events.c (_initialize_proc_events): Add declaration.
11587 * proc-service.c (_initialize_proc_service): Add declaration.
11588 * procfs.c (_initialize_procfs): Add declaration.
11589 * producer.c (_initialize_producer): Add declaration.
11590 * psymtab.c (_initialize_psymtab): Add declaration.
11591 * python/python.c (_initialize_python): Add declaration.
11592 * ravenscar-thread.c (_initialize_ravenscar): Add declaration.
11593 * record-btrace.c (_initialize_record_btrace): Add declaration.
11594 * record-full.c (_initialize_record_full): Add declaration.
11595 * record.c (_initialize_record): Add declaration.
11596 * regcache-dump.c (_initialize_regcache_dump): Add declaration.
11597 * regcache.c (_initialize_regcache): Add declaration.
11598 * reggroups.c (_initialize_reggroup): Add declaration.
11599 * remote-notif.c (_initialize_notif): Add declaration.
11600 * remote-sim.c (_initialize_remote_sim): Add declaration.
11601 * remote.c (_initialize_remote): Add declaration.
11602 * reverse.c (_initialize_reverse): Add declaration.
11603 * riscv-fbsd-nat.c (_initialize_riscv_fbsd_nat): Add declaration.
11604 * riscv-fbsd-tdep.c (_initialize_riscv_fbsd_tdep): Add declaration.
11605 * riscv-linux-nat.c (_initialize_riscv_linux_nat): Add declaration.
11606 * riscv-linux-tdep.c (_initialize_riscv_linux_tdep): Add declaration.
11607 * riscv-tdep.c (_initialize_riscv_tdep): Add declaration.
11608 * rl78-tdep.c (_initialize_rl78_tdep): Add declaration.
11609 * rs6000-aix-tdep.c (_initialize_rs6000_aix_tdep): Add declaration.
11610 * rs6000-lynx178-tdep.c (_initialize_rs6000_lynx178_tdep):
11611 Add declaration.
11612 * rs6000-nat.c (_initialize_rs6000_nat): Add declaration.
11613 * rs6000-tdep.c (_initialize_rs6000_tdep): Add declaration.
11614 * run-on-main-thread.c (_initialize_run_on_main_thread): Add declaration.
11615 * rust-exp.y (_initialize_rust_exp): Add declaration.
11616 * rx-tdep.c (_initialize_rx_tdep): Add declaration.
11617 * s12z-tdep.c (_initialize_s12z_tdep): Add declaration.
11618 * s390-linux-nat.c (_initialize_s390_nat): Add declaration.
11619 * s390-linux-tdep.c (_initialize_s390_linux_tdep): Add declaration.
11620 * s390-tdep.c (_initialize_s390_tdep): Add declaration.
11621 * score-tdep.c (_initialize_score_tdep): Add declaration.
11622 * ser-go32.c (_initialize_ser_dos): Add declaration.
11623 * ser-mingw.c (_initialize_ser_windows): Add declaration.
11624 * ser-pipe.c (_initialize_ser_pipe): Add declaration.
11625 * ser-tcp.c (_initialize_ser_tcp): Add declaration.
11626 * ser-uds.c (_initialize_ser_socket): Add declaration.
11627 * ser-unix.c (_initialize_ser_hardwire): Add declaration.
11628 * serial.c (_initialize_serial): Add declaration.
11629 * sh-linux-tdep.c (_initialize_sh_linux_tdep): Add declaration.
11630 * sh-nbsd-nat.c (_initialize_shnbsd_nat): Add declaration.
11631 * sh-nbsd-tdep.c (_initialize_shnbsd_tdep): Add declaration.
11632 * sh-tdep.c (_initialize_sh_tdep): Add declaration.
11633 * skip.c (_initialize_step_skip): Add declaration.
11634 * sol-thread.c (_initialize_sol_thread): Add declaration.
11635 * solib-aix.c (_initialize_solib_aix): Add declaration.
11636 * solib-darwin.c (_initialize_darwin_solib): Add declaration.
11637 * solib-dsbt.c (_initialize_dsbt_solib): Add declaration.
11638 * solib-frv.c (_initialize_frv_solib): Add declaration.
11639 * solib-svr4.c (_initialize_svr4_solib): Add declaration.
11640 * solib-target.c (_initialize_solib_target): Add declaration.
11641 * solib.c (_initialize_solib): Add declaration.
11642 * source-cache.c (_initialize_source_cache): Add declaration.
11643 * source.c (_initialize_source): Add declaration.
11644 * sparc-linux-nat.c (_initialize_sparc_linux_nat): Add declaration.
11645 * sparc-linux-tdep.c (_initialize_sparc_linux_tdep): Add declaration.
11646 * sparc-nat.c (_initialize_sparc_nat): Add declaration.
11647 * sparc-nbsd-nat.c (_initialize_sparcnbsd_nat): Add declaration.
11648 * sparc-nbsd-tdep.c (_initialize_sparcnbsd_tdep): Add declaration.
11649 * sparc-obsd-tdep.c (_initialize_sparc32obsd_tdep): Add declaration.
11650 * sparc-sol2-tdep.c (_initialize_sparc_sol2_tdep): Add declaration.
11651 * sparc-tdep.c (_initialize_sparc_tdep): Add declaration.
11652 * sparc64-fbsd-nat.c (_initialize_sparc64fbsd_nat): Add declaration.
11653 * sparc64-fbsd-tdep.c (_initialize_sparc64fbsd_tdep): Add declaration.
11654 * sparc64-linux-nat.c (_initialize_sparc64_linux_nat): Add declaration.
11655 * sparc64-linux-tdep.c (_initialize_sparc64_linux_tdep): Add declaration.
11656 * sparc64-nat.c (_initialize_sparc64_nat): Add declaration.
11657 * sparc64-nbsd-nat.c (_initialize_sparc64nbsd_nat): Add declaration.
11658 * sparc64-nbsd-tdep.c (_initialize_sparc64nbsd_tdep): Add declaration.
11659 * sparc64-obsd-nat.c (_initialize_sparc64obsd_nat): Add declaration.
11660 * sparc64-obsd-tdep.c (_initialize_sparc64obsd_tdep): Add declaration.
11661 * sparc64-sol2-tdep.c (_initialize_sparc64_sol2_tdep): Add declaration.
11662 * sparc64-tdep.c (_initialize_sparc64_adi_tdep): Add declaration.
11663 * stabsread.c (_initialize_stabsread): Add declaration.
11664 * stack.c (_initialize_stack): Add declaration.
11665 * stap-probe.c (_initialize_stap_probe): Add declaration.
11666 * std-regs.c (_initialize_frame_reg): Add declaration.
11667 * symfile-debug.c (_initialize_symfile_debug): Add declaration.
11668 * symfile-mem.c (_initialize_symfile_mem): Add declaration.
11669 * symfile.c (_initialize_symfile): Add declaration.
11670 * symmisc.c (_initialize_symmisc): Add declaration.
11671 * symtab.c (_initialize_symtab): Add declaration.
11672 * target.c (_initialize_target): Add declaration.
11673 * target-connection.c (_initialize_target_connection): Add
11674 declaration.
11675 * target-dcache.c (_initialize_target_dcache): Add declaration.
11676 * target-descriptions.c (_initialize_target_descriptions): Add declaration.
11677 * thread.c (_initialize_thread): Add declaration.
11678 * tic6x-linux-tdep.c (_initialize_tic6x_linux_tdep): Add declaration.
11679 * tic6x-tdep.c (_initialize_tic6x_tdep): Add declaration.
11680 * tilegx-linux-nat.c (_initialize_tile_linux_nat): Add declaration.
11681 * tilegx-linux-tdep.c (_initialize_tilegx_linux_tdep): Add declaration.
11682 * tilegx-tdep.c (_initialize_tilegx_tdep): Add declaration.
11683 * tracectf.c (_initialize_ctf): Add declaration.
11684 * tracefile-tfile.c (_initialize_tracefile_tfile): Add declaration.
11685 * tracefile.c (_initialize_tracefile): Add declaration.
11686 * tracepoint.c (_initialize_tracepoint): Add declaration.
11687 * tui/tui-hooks.c (_initialize_tui_hooks): Add declaration.
11688 * tui/tui-interp.c (_initialize_tui_interp): Add declaration.
11689 * tui/tui-layout.c (_initialize_tui_layout): Add declaration.
11690 * tui/tui-regs.c (_initialize_tui_regs): Add declaration.
11691 * tui/tui-stack.c (_initialize_tui_stack): Add declaration.
11692 * tui/tui-win.c (_initialize_tui_win): Add declaration.
11693 * tui/tui.c (_initialize_tui): Add declaration.
11694 * typeprint.c (_initialize_typeprint): Add declaration.
11695 * ui-style.c (_initialize_ui_style): Add declaration.
11696 * unittests/array-view-selftests.c (_initialize_array_view_selftests): Add declaration.
11697 * unittests/child-path-selftests.c (_initialize_child_path_selftests): Add declaration.
11698 * unittests/cli-utils-selftests.c (_initialize_cli_utils_selftests): Add declaration.
11699 * unittests/common-utils-selftests.c (_initialize_common_utils_selftests): Add declaration.
11700 * unittests/copy_bitwise-selftests.c (_initialize_copy_bitwise_utils_selftests): Add declaration.
11701 * unittests/environ-selftests.c (_initialize_environ_selftests): Add declaration.
11702 * unittests/filtered_iterator-selftests.c
11703 (_initialize_filtered_iterator_selftests): Add declaration.
11704 * unittests/format_pieces-selftests.c (_initialize_format_pieces_selftests): Add declaration.
11705 * unittests/function-view-selftests.c (_initialize_function_view_selftests): Add declaration.
11706 * unittests/help-doc-selftests.c (_initialize_help_doc_selftests): Add declaration.
11707 * unittests/lookup_name_info-selftests.c (_initialize_lookup_name_info_selftests): Add declaration.
11708 * unittests/main-thread-selftests.c
11709 (_initialize_main_thread_selftests): Add declaration.
11710 * unittests/memory-map-selftests.c (_initialize_memory_map_selftests): Add declaration.
11711 * unittests/memrange-selftests.c (_initialize_memrange_selftests): Add declaration.
11712 * unittests/mkdir-recursive-selftests.c (_initialize_mkdir_recursive_selftests): Add declaration.
11713 * unittests/observable-selftests.c (_initialize_observer_selftest): Add declaration.
11714 * unittests/offset-type-selftests.c (_initialize_offset_type_selftests): Add declaration.
11715 * unittests/optional-selftests.c (_initialize_optional_selftests): Add declaration.
11716 * unittests/parse-connection-spec-selftests.c (_initialize_parse_connection_spec_selftests): Add declaration.
11717 * unittests/rsp-low-selftests.c (_initialize_rsp_low_selftests): Add declaration.
11718 * unittests/scoped_fd-selftests.c (_initialize_scoped_fd_selftests): Add declaration.
11719 * unittests/scoped_mmap-selftests.c (_initialize_scoped_mmap_selftests): Add declaration.
11720 * unittests/scoped_restore-selftests.c (_initialize_scoped_restore_selftests): Add declaration.
11721 * unittests/string_view-selftests.c (_initialize_string_view_selftests): Add declaration.
11722 * unittests/style-selftests.c (_initialize_style_selftest): Add declaration.
11723 * unittests/tracepoint-selftests.c (_initialize_tracepoint_selftests): Add declaration.
11724 * unittests/tui-selftests.c (_initialize_tui_selftest): Add
11725 declaration.
11726 * unittests/unpack-selftests.c (_initialize_unpack_selftests): Add declaration.
11727 * unittests/utils-selftests.c (_initialize_utils_selftests): Add declaration.
11728 * unittests/vec-utils-selftests.c (_initialize_vec_utils_selftests): Add declaration.
11729 * unittests/xml-utils-selftests.c (_initialize_xml_utils): Add declaration.
11730 * user-regs.c (_initialize_user_regs): Add declaration.
11731 * utils.c (_initialize_utils): Add declaration.
11732 * v850-tdep.c (_initialize_v850_tdep): Add declaration.
11733 * valops.c (_initialize_valops): Add declaration.
11734 * valprint.c (_initialize_valprint): Add declaration.
11735 * value.c (_initialize_values): Add declaration.
11736 * varobj.c (_initialize_varobj): Add declaration.
11737 * vax-bsd-nat.c (_initialize_vaxbsd_nat): Add declaration.
11738 * vax-nbsd-tdep.c (_initialize_vaxnbsd_tdep): Add declaration.
11739 * vax-tdep.c (_initialize_vax_tdep): Add declaration.
11740 * windows-nat.c (_initialize_windows_nat): Add declaration.
11741 (_initialize_check_for_gdb_ini): Add declaration.
11742 (_initialize_loadable): Add declaration.
11743 * windows-tdep.c (_initialize_windows_tdep): Add declaration.
11744 * x86-bsd-nat.c (_initialize_x86_bsd_nat): Add declaration.
11745 * x86-linux-nat.c (_initialize_x86_linux_nat): Add declaration.
11746 * xcoffread.c (_initialize_xcoffread): Add declaration.
11747 * xml-support.c (_initialize_xml_support): Add declaration.
11748 * xstormy16-tdep.c (_initialize_xstormy16_tdep): Add declaration.
11749 * xtensa-linux-nat.c (_initialize_xtensa_linux_nat): Add declaration.
11750 * xtensa-linux-tdep.c (_initialize_xtensa_linux_tdep): Add declaration.
11751 * xtensa-tdep.c (_initialize_xtensa_tdep): Add declaration.
11752
11753 2020-01-13 Simon Marchi <simon.marchi@polymtl.ca>
11754
11755 * regformats/regdat.sh: Generate declaration for init function.
11756
11757 2020-01-13 Simon Marchi <simon.marchi@polymtl.ca>
11758
11759 * remote-sim.c (next_pid, INITIAL_PID, sim_inferior_data): Move
11760 up.
11761 (gdbsim_target) <get_inferior_data_by_ptid, resume_one_inferior,
11762 close_one_inferior>: New methods.
11763 (get_sim_inferior_data_by_ptid): Move to gdbsim_target,
11764 pass down target to find_inferior_pid.
11765 (gdbsim_target::fetch_registers, gdbsim_target::store_registers):
11766 Pass down target to find_inferior_ptid.
11767 (gdbsim_target::create_inferior): Pass down target to
11768 add_thread_silent.
11769 (gdbsim_close_inferior): Move to gdbsim_close_inferior, pass
11770 target down to find_inferior_ptid and switch_to_thread.
11771 (gdbsim_target::close): Update to call close_one_inferior.
11772 (struct resume_data): Remove.
11773 (gdbsim_resume_inferior): Move to gdbsim_target. Take arguments
11774 directly, rather than through a void pointer.
11775 (gdbsim_target::resume): Update to call resume_one_inferior.
11776
11777 2020-01-12 Simon Marchi <simon.marchi@polymtl.ca>
11778
11779 * gdbsupport/gdb_wait.c: Include gdb_wait.h.
11780
11781 2020-01-12 Pedro Alves <palves@redhat.com>
11782
11783 * bsd-kvm.c (bsd_kvm_target::close): Call exit_inferior_silent
11784 directly for the current inferior instead of
11785 discard_all_inferiors.
11786 (discard_all_inferiors): Delete.
11787
11788 2020-01-11 Tom Tromey <tom@tromey.com>
11789
11790 * tui/tui-wingeneral.c (box_win): Check cli_styling.
11791 * tui/tui-winsource.c (tui_source_window_base::refill): Use
11792 deprecated_safe_get_selected_frame.
11793
11794 2020-01-10 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
11795
11796 * inferior.c (print_inferior): Switch inferior before printing it.
11797
11798 2020-01-10 Aleksandar Paunovic <aleksandar.paunovic@intel.com>
11799 Pedro Alves <palves@redhat.com>
11800
11801 * progspace-and-thread.c (switch_to_program_space_and_thread):
11802 Assert there's an inferior for PSPACE. Use
11803 switch_to_inferior_no_thread to switch the inferior too.
11804 * progspace.c (program_space::~program_space): Call
11805 clear_symtab_users here, with SYMFILE_DEFER_BP_RESET.
11806 (program_space::free_all_objfiles): Don't call clear_symtab_users
11807 here.
11808 * symfile.c (symbol_file_clear): Call clear_symtab_users here.
11809
11810 2020-01-10 Pedro Alves <palves@redhat.com>
11811
11812 * NEWS: Mention multi-target debugging, "info connections", and
11813 "add-inferior -no-connection".
11814
11815 2020-01-10 Pedro Alves <palves@redhat.com>
11816
11817 * infrun.c: Include "target-connection.h".
11818 (check_multi_target_resumption): New.
11819 (proceed): Call it.
11820 * target-connection.c (make_target_connection_string): Make
11821 extern.
11822 * target-connection.h (make_target_connection_string): Declare.
11823
11824 2020-01-10 Pedro Alves <palves@redhat.com>
11825
11826 * Makefile.in (COMMON_SFILES): Add target-connection.c.
11827 * inferior.c (uiout_field_connection): New function.
11828 (print_inferior): Add new "connection-id" column.
11829 (add_inferior_command): Show connection number/string of added
11830 inferior.
11831 * process-stratum-target.h
11832 (process_stratum_target::connection_string): New virtual method.
11833 (process_stratum_target::connection_number): New field.
11834 * remote.c (remote_target::connection_string): New override.
11835 * target-connection.c: New file.
11836 * target-connection.h: New file.
11837 * target.c (decref_target): Remove process_stratum targets from
11838 the connection list.
11839 (target_stack::push): Add process_stratum targets to the
11840 connection list.
11841
11842 2020-01-10 Pedro Alves <palves@redhat.com>
11843
11844 Revert:
11845 2016-04-12 Pedro Alves <palves@redhat.com>
11846 * serial.c (serial_open, serial_fdopen_ops, do_serial_close):
11847 Remove references to name.
11848 * serial.h (struct serial) <name>: Delete.
11849
11850 2020-01-10 Pedro Alves <palves@redhat.com>
11851
11852 * gdbarch-selftests.c (register_to_value_test): Remove "target
11853 already pushed" check.
11854
11855 2020-01-10 Pedro Alves <palves@redhat.com>
11856 John Baldwin <jhb@FreeBSD.org>
11857
11858 * aarch64-linux-nat.c
11859 (aarch64_linux_nat_target::thread_architecture): Adjust.
11860 * ada-tasks.c (print_ada_task_info): Adjust find_thread_ptid call.
11861 (task_command_1): Likewise.
11862 * aix-thread.c (sync_threadlists, aix_thread_target::resume)
11863 (aix_thread_target::wait, aix_thread_target::fetch_registers)
11864 (aix_thread_target::store_registers)
11865 (aix_thread_target::thread_alive): Adjust.
11866 * amd64-fbsd-tdep.c: Include "inferior.h".
11867 (amd64fbsd_get_thread_local_address): Pass down target.
11868 * amd64-linux-nat.c (ps_get_thread_area): Use ps_prochandle
11869 thread's gdbarch instead of target_gdbarch.
11870 * break-catch-sig.c (signal_catchpoint_print_it): Adjust call to
11871 get_last_target_status.
11872 * break-catch-syscall.c (print_it_catch_syscall): Likewise.
11873 * breakpoint.c (breakpoints_should_be_inserted_now): Consider all
11874 inferiors.
11875 (update_inserted_breakpoint_locations): Skip if inferiors with no
11876 execution.
11877 (update_global_location_list): When handling moribund locations,
11878 find representative inferior for location's pspace, and use thread
11879 count of its process_stratum target.
11880 * bsd-kvm.c (bsd_kvm_target_open): Pass target down.
11881 * bsd-uthread.c (bsd_uthread_target::wait): Use
11882 as_process_stratum_target and adjust thread_change_ptid and
11883 add_thread calls.
11884 (bsd_uthread_target::update_thread_list): Use
11885 as_process_stratum_target and adjust find_thread_ptid,
11886 thread_change_ptid and add_thread calls.
11887 * btrace.c (maint_btrace_packet_history_cmd): Adjust
11888 find_thread_ptid call.
11889 * corelow.c (add_to_thread_list): Adjust add_thread call.
11890 (core_target_open): Adjust add_thread_silent and thread_count
11891 calls.
11892 (core_target::pid_to_str): Adjust find_inferior_ptid call.
11893 * ctf.c (ctf_target_open): Adjust add_thread_silent call.
11894 * event-top.c (async_disconnect): Pop targets from all inferiors.
11895 * exec.c (add_target_sections): Push exec target on all inferiors
11896 sharing the program space.
11897 (remove_target_sections): Remove the exec target from all
11898 inferiors sharing the program space.
11899 (exec_on_vfork): New.
11900 * exec.h (exec_on_vfork): Declare.
11901 * fbsd-nat.c (fbsd_add_threads): Add fbsd_nat_target parameter.
11902 Pass it down.
11903 (fbsd_nat_target::update_thread_list): Adjust.
11904 (fbsd_nat_target::resume): Adjust.
11905 (fbsd_handle_debug_trap): Add fbsd_nat_target parameter. Pass it
11906 down.
11907 (fbsd_nat_target::wait, fbsd_nat_target::post_attach): Adjust.
11908 * fbsd-tdep.c (fbsd_corefile_thread): Adjust
11909 get_thread_arch_regcache call.
11910 * fork-child.c (gdb_startup_inferior): Pass target down to
11911 startup_inferior and set_executing.
11912 * gdbthread.h (struct process_stratum_target): Forward declare.
11913 (add_thread, add_thread_silent, add_thread_with_info)
11914 (in_thread_list): Add process_stratum_target parameter.
11915 (find_thread_ptid(inferior*, ptid_t)): New overload.
11916 (find_thread_ptid, thread_change_ptid): Add process_stratum_target
11917 parameter.
11918 (all_threads()): Delete overload.
11919 (all_threads, all_non_exited_threads): Add process_stratum_target
11920 parameter.
11921 (all_threads_safe): Use brace initialization.
11922 (thread_count): Add process_stratum_target parameter.
11923 (set_resumed, set_running, set_stop_requested, set_executing)
11924 (threads_are_executing, finish_thread_state): Add
11925 process_stratum_target parameter.
11926 (switch_to_thread): Use is_current_thread.
11927 * i386-fbsd-tdep.c: Include "inferior.h".
11928 (i386fbsd_get_thread_local_address): Pass down target.
11929 * i386-linux-nat.c (i386_linux_nat_target::low_resume): Adjust.
11930 * inf-child.c (inf_child_target::maybe_unpush_target): Remove
11931 have_inferiors check.
11932 * inf-ptrace.c (inf_ptrace_target::create_inferior)
11933 (inf_ptrace_target::attach): Adjust.
11934 * infcall.c (run_inferior_call): Adjust.
11935 * infcmd.c (run_command_1): Pass target to
11936 scoped_finish_thread_state.
11937 (proceed_thread_callback): Skip inferiors with no execution.
11938 (continue_command): Rename 'all_threads' local to avoid hiding
11939 'all_threads' function. Adjust get_last_target_status call.
11940 (prepare_one_step): Adjust set_running call.
11941 (signal_command): Use user_visible_resume_target. Compare thread
11942 pointers instead of inferior_ptid.
11943 (info_program_command): Adjust to pass down target.
11944 (attach_command): Mark target's 'thread_executing' flag.
11945 (stop_current_target_threads_ns): New, factored out from ...
11946 (interrupt_target_1): ... this. Switch inferior before making
11947 target calls.
11948 * inferior-iter.h
11949 (struct all_inferiors_iterator, struct all_inferiors_range)
11950 (struct all_inferiors_safe_range)
11951 (struct all_non_exited_inferiors_range): Filter on
11952 process_stratum_target too. Remove explicit.
11953 * inferior.c (inferior::inferior): Push dummy target on target
11954 stack.
11955 (find_inferior_pid, find_inferior_ptid, number_of_live_inferiors):
11956 Add process_stratum_target parameter, and pass it down.
11957 (have_live_inferiors): Adjust.
11958 (switch_to_inferior_and_push_target): New.
11959 (add_inferior_command, clone_inferior_command): Handle
11960 "-no-connection" parameter. Use
11961 switch_to_inferior_and_push_target.
11962 (_initialize_inferior): Mention "-no-connection" option in
11963 the help of "add-inferior" and "clone-inferior" commands.
11964 * inferior.h: Include "process-stratum-target.h".
11965 (interrupt_target_1): Use bool.
11966 (struct inferior) <push_target, unpush_target, target_is_pushed,
11967 find_target_beneath, top_target, process_target, target_at,
11968 m_stack>: New.
11969 (discard_all_inferiors): Delete.
11970 (find_inferior_pid, find_inferior_ptid, number_of_live_inferiors)
11971 (all_inferiors, all_non_exited_inferiors): Add
11972 process_stratum_target parameter.
11973 * infrun.c: Include "gdb_select.h" and <unordered_map>.
11974 (target_last_proc_target): New global.
11975 (follow_fork_inferior): Push target on new inferior. Pass target
11976 to add_thread_silent. Call exec_on_vfork. Handle target's
11977 reference count.
11978 (follow_fork): Adjust get_last_target_status call. Also consider
11979 target.
11980 (follow_exec): Push target on new inferior.
11981 (struct execution_control_state) <target>: New field.
11982 (user_visible_resume_target): New.
11983 (do_target_resume): Call target_async.
11984 (resume_1): Set target's threads_executing flag. Consider resume
11985 target.
11986 (commit_resume_all_targets): New.
11987 (proceed): Also consider resume target. Skip threads of inferiors
11988 with no execution. Commit resumtion in all targets.
11989 (start_remote): Pass current inferior to wait_for_inferior.
11990 (infrun_thread_stop_requested): Consider target as well. Pass
11991 thread_info pointer to clear_inline_frame_state instead of ptid.
11992 (infrun_thread_thread_exit): Consider target as well.
11993 (random_pending_event_thread): New inferior parameter. Use it.
11994 (do_target_wait): Rename to ...
11995 (do_target_wait_1): ... this. Add inferior parameter, and pass it
11996 down.
11997 (threads_are_resumed_pending_p, do_target_wait): New.
11998 (prepare_for_detach): Adjust calls.
11999 (wait_for_inferior): New inferior parameter. Handle it. Use
12000 do_target_wait_1 instead of do_target_wait.
12001 (fetch_inferior_event): Adjust. Switch to representative
12002 inferior. Pass target down.
12003 (set_last_target_status): Add process_stratum_target parameter.
12004 Save target in global.
12005 (get_last_target_status): Add process_stratum_target parameter and
12006 handle it.
12007 (nullify_last_target_wait_ptid): Clear 'target_last_proc_target'.
12008 (context_switch): Check inferior_ptid == null_ptid before calling
12009 inferior_thread().
12010 (get_inferior_stop_soon): Pass down target.
12011 (wait_one): Rename to ...
12012 (poll_one_curr_target): ... this.
12013 (struct wait_one_event): New.
12014 (wait_one): New.
12015 (stop_all_threads): Adjust.
12016 (handle_no_resumed, handle_inferior_event): Adjust to consider the
12017 event's target.
12018 (switch_back_to_stepped_thread): Also consider target.
12019 (print_stop_event): Update.
12020 (normal_stop): Update. Also consider the resume target.
12021 * infrun.h (wait_for_inferior): Remove declaration.
12022 (user_visible_resume_target): New declaration.
12023 (get_last_target_status, set_last_target_status): New
12024 process_stratum_target parameter.
12025 * inline-frame.c (clear_inline_frame_state(ptid_t)): Add
12026 process_stratum_target parameter, and use it.
12027 (clear_inline_frame_state (thread_info*)): New.
12028 * inline-frame.c (clear_inline_frame_state(ptid_t)): Add
12029 process_stratum_target parameter.
12030 (clear_inline_frame_state (thread_info*)): Declare.
12031 * linux-fork.c (delete_checkpoint_command): Pass target down to
12032 find_thread_ptid.
12033 (checkpoint_command): Adjust.
12034 * linux-nat.c (linux_nat_target::follow_fork): Switch to thread
12035 instead of just tweaking inferior_ptid.
12036 (linux_nat_switch_fork): Pass target down to thread_change_ptid.
12037 (exit_lwp): Pass target down to find_thread_ptid.
12038 (attach_proc_task_lwp_callback): Pass target down to
12039 add_thread/set_running/set_executing.
12040 (linux_nat_target::attach): Pass target down to
12041 thread_change_ptid.
12042 (get_detach_signal): Pass target down to find_thread_ptid.
12043 Consider last target status's target.
12044 (linux_resume_one_lwp_throw, resume_lwp)
12045 (linux_handle_syscall_trap, linux_handle_extended_wait, wait_lwp)
12046 (stop_wait_callback, save_stop_reason, linux_nat_filter_event)
12047 (linux_nat_wait_1, resume_stopped_resumed_lwps): Pass target down.
12048 (linux_nat_target::async_wait_fd): New.
12049 (linux_nat_stop_lwp, linux_nat_target::thread_address_space): Pass
12050 target down.
12051 * linux-nat.h (linux_nat_target::async_wait_fd): Declare.
12052 * linux-tdep.c (get_thread_arch_regcache): Pass target down.
12053 * linux-thread-db.c (struct thread_db_info::process_target): New
12054 field.
12055 (add_thread_db_info): Save target.
12056 (get_thread_db_info): New process_stratum_target parameter. Also
12057 match target.
12058 (delete_thread_db_info): New process_stratum_target parameter.
12059 Also match target.
12060 (thread_from_lwp): Adjust to pass down target.
12061 (thread_db_notice_clone): Pass down target.
12062 (check_thread_db_callback): Pass down target.
12063 (try_thread_db_load_1): Always push the thread_db target.
12064 (try_thread_db_load, record_thread): Pass target down.
12065 (thread_db_target::detach): Pass target down. Always unpush the
12066 thread_db target.
12067 (thread_db_target::wait, thread_db_target::mourn_inferior): Pass
12068 target down. Always unpush the thread_db target.
12069 (find_new_threads_callback, thread_db_find_new_threads_2)
12070 (thread_db_target::update_thread_list): Pass target down.
12071 (thread_db_target::pid_to_str): Pass current inferior down.
12072 (thread_db_target::get_thread_local_address): Pass target down.
12073 (thread_db_target::resume, maintenance_check_libthread_db): Pass
12074 target down.
12075 * nto-procfs.c (nto_procfs_target::update_thread_list): Adjust.
12076 * procfs.c (procfs_target::procfs_init_inferior): Declare.
12077 (proc_set_current_signal, do_attach, procfs_target::wait): Adjust.
12078 (procfs_init_inferior): Rename to ...
12079 (procfs_target::procfs_init_inferior): ... this and adjust.
12080 (procfs_target::create_inferior, procfs_notice_thread)
12081 (procfs_do_thread_registers): Adjust.
12082 * ppc-fbsd-tdep.c: Include "inferior.h".
12083 (ppcfbsd_get_thread_local_address): Pass down target.
12084 * proc-service.c (ps_xfer_memory): Switch current inferior and
12085 program space as well.
12086 (get_ps_regcache): Pass target down.
12087 * process-stratum-target.c
12088 (process_stratum_target::thread_address_space)
12089 (process_stratum_target::thread_architecture): Pass target down.
12090 * process-stratum-target.h
12091 (process_stratum_target::threads_executing): New field.
12092 (as_process_stratum_target): New.
12093 * ravenscar-thread.c
12094 (ravenscar_thread_target::update_inferior_ptid): Pass target down.
12095 (ravenscar_thread_target::wait, ravenscar_add_thread): Pass target
12096 down.
12097 * record-btrace.c (record_btrace_target::info_record): Adjust.
12098 (record_btrace_target::record_method)
12099 (record_btrace_target::record_is_replaying)
12100 (record_btrace_target::fetch_registers)
12101 (get_thread_current_frame_id, record_btrace_target::resume)
12102 (record_btrace_target::wait, record_btrace_target::stop): Pass
12103 target down.
12104 * record-full.c (record_full_wait_1): Switch to event thread.
12105 Pass target down.
12106 * regcache.c (regcache::regcache)
12107 (get_thread_arch_aspace_regcache, get_thread_arch_regcache): Add
12108 process_stratum_target parameter and handle it.
12109 (current_thread_target): New global.
12110 (get_thread_regcache): Add process_stratum_target parameter and
12111 handle it. Switch inferior before calling target method.
12112 (get_thread_regcache): Pass target down.
12113 (get_thread_regcache_for_ptid): Pass target down.
12114 (registers_changed_ptid): Add process_stratum_target parameter and
12115 handle it.
12116 (registers_changed_thread, registers_changed): Pass target down.
12117 (test_get_thread_arch_aspace_regcache): New.
12118 (current_regcache_test): Define a couple local test_target_ops
12119 instances and use them for testing.
12120 (readwrite_regcache): Pass process_stratum_target parameter.
12121 (cooked_read_test, cooked_write_test): Pass mock_target down.
12122 * regcache.h (get_thread_regcache, get_thread_arch_regcache)
12123 (get_thread_arch_aspace_regcache): Add process_stratum_target
12124 parameter.
12125 (regcache::target): New method.
12126 (regcache::regcache, regcache::get_thread_arch_aspace_regcache)
12127 (regcache::registers_changed_ptid): Add process_stratum_target
12128 parameter.
12129 (regcache::m_target): New field.
12130 (registers_changed_ptid): Add process_stratum_target parameter.
12131 * remote.c (remote_state::supports_vCont_probed): New field.
12132 (remote_target::async_wait_fd): New method.
12133 (remote_unpush_and_throw): Add remote_target parameter.
12134 (get_current_remote_target): Adjust.
12135 (remote_target::remote_add_inferior): Push target.
12136 (remote_target::remote_add_thread)
12137 (remote_target::remote_notice_new_inferior)
12138 (get_remote_thread_info): Pass target down.
12139 (remote_target::update_thread_list): Skip threads of inferiors
12140 bound to other targets. (remote_target::close): Don't discard
12141 inferiors. (remote_target::add_current_inferior_and_thread)
12142 (remote_target::process_initial_stop_replies)
12143 (remote_target::start_remote)
12144 (remote_target::remote_serial_quit_handler): Pass down target.
12145 (remote_target::remote_unpush_target): New remote_target
12146 parameter. Unpush the target from all inferiors.
12147 (remote_target::remote_unpush_and_throw): New remote_target
12148 parameter. Pass it down.
12149 (remote_target::open_1): Check whether the current inferior has
12150 execution instead of checking whether any inferior is live. Pass
12151 target down.
12152 (remote_target::remote_detach_1): Pass down target. Use
12153 remote_unpush_target.
12154 (extended_remote_target::attach): Pass down target.
12155 (remote_target::remote_vcont_probe): Set supports_vCont_probed.
12156 (remote_target::append_resumption): Pass down target.
12157 (remote_target::append_pending_thread_resumptions)
12158 (remote_target::remote_resume_with_hc, remote_target::resume)
12159 (remote_target::commit_resume): Pass down target.
12160 (remote_target::remote_stop_ns): Check supports_vCont_probed.
12161 (remote_target::interrupt_query)
12162 (remote_target::remove_new_fork_children)
12163 (remote_target::check_pending_events_prevent_wildcard_vcont)
12164 (remote_target::remote_parse_stop_reply)
12165 (remote_target::process_stop_reply): Pass down target.
12166 (first_remote_resumed_thread): New remote_target parameter. Pass
12167 it down.
12168 (remote_target::wait_as): Pass down target.
12169 (unpush_and_perror): New remote_target parameter. Pass it down.
12170 (remote_target::readchar, remote_target::remote_serial_write)
12171 (remote_target::getpkt_or_notif_sane_1)
12172 (remote_target::kill_new_fork_children, remote_target::kill): Pass
12173 down target.
12174 (remote_target::mourn_inferior): Pass down target. Use
12175 remote_unpush_target.
12176 (remote_target::core_of_thread)
12177 (remote_target::remote_btrace_maybe_reopen): Pass down target.
12178 (remote_target::pid_to_exec_file)
12179 (remote_target::thread_handle_to_thread_info): Pass down target.
12180 (remote_target::async_wait_fd): New.
12181 * riscv-fbsd-tdep.c: Include "inferior.h".
12182 (riscv_fbsd_get_thread_local_address): Pass down target.
12183 * sol2-tdep.c (sol2_core_pid_to_str): Pass down target.
12184 * sol-thread.c (sol_thread_target::wait, ps_lgetregs, ps_lsetregs)
12185 (ps_lgetfpregs, ps_lsetfpregs, sol_update_thread_list_callback):
12186 Adjust.
12187 * solib-spu.c (spu_skip_standalone_loader): Pass down target.
12188 * solib-svr4.c (enable_break): Pass down target.
12189 * spu-multiarch.c (parse_spufs_run): Pass down target.
12190 * spu-tdep.c (spu2ppu_sniffer): Pass down target.
12191 * target-delegates.c: Regenerate.
12192 * target.c (g_target_stack): Delete.
12193 (current_top_target): Return the current inferior's top target.
12194 (target_has_execution_1): Refer to the passed-in inferior's top
12195 target.
12196 (target_supports_terminal_ours): Check whether the initial
12197 inferior was already created.
12198 (decref_target): New.
12199 (target_stack::push): Incref/decref the target.
12200 (push_target, push_target, unpush_target): Adjust.
12201 (target_stack::unpush): Defref target.
12202 (target_is_pushed): Return bool. Adjust to refer to the current
12203 inferior's target stack.
12204 (dispose_inferior): Delete, and inline parts ...
12205 (target_preopen): ... here. Only dispose of the current inferior.
12206 (target_detach): Hold strong target reference while detaching.
12207 Pass target down.
12208 (target_thread_name): Add assertion.
12209 (target_resume): Pass down target.
12210 (target_ops::beneath, find_target_at): Adjust to refer to the
12211 current inferior's target stack.
12212 (get_dummy_target): New.
12213 (target_pass_ctrlc): Pass the Ctrl-C to the first inferior that
12214 has a thread running.
12215 (initialize_targets): Rename to ...
12216 (_initialize_target): ... this.
12217 * target.h: Include "gdbsupport/refcounted-object.h".
12218 (struct target_ops): Inherit refcounted_object.
12219 (target_ops::shortname, target_ops::longname): Make const.
12220 (target_ops::async_wait_fd): New method.
12221 (decref_target): Declare.
12222 (struct target_ops_ref_policy): New.
12223 (target_ops_ref): New typedef.
12224 (get_dummy_target): Declare function.
12225 (target_is_pushed): Return bool.
12226 * thread-iter.c (all_matching_threads_iterator::m_inf_matches)
12227 (all_matching_threads_iterator::all_matching_threads_iterator):
12228 Handle filter target.
12229 * thread-iter.h (struct all_matching_threads_iterator, struct
12230 all_matching_threads_range, class all_non_exited_threads_range):
12231 Filter by target too. Remove explicit.
12232 * thread.c (threads_executing): Delete.
12233 (inferior_thread): Pass down current inferior.
12234 (clear_thread_inferior_resources): Pass down thread pointer
12235 instead of ptid_t.
12236 (add_thread_silent, add_thread_with_info, add_thread): Add
12237 process_stratum_target parameter. Use it for thread and inferior
12238 searches.
12239 (is_current_thread): New.
12240 (thread_info::deletable): Use it.
12241 (find_thread_ptid, thread_count, in_thread_list)
12242 (thread_change_ptid, set_resumed, set_running): New
12243 process_stratum_target parameter. Pass it down.
12244 (set_executing): New process_stratum_target parameter. Pass it
12245 down. Adjust reference to 'threads_executing'.
12246 (threads_are_executing): New process_stratum_target parameter.
12247 Adjust reference to 'threads_executing'.
12248 (set_stop_requested, finish_thread_state): New
12249 process_stratum_target parameter. Pass it down.
12250 (switch_to_thread): Also match inferior.
12251 (switch_to_thread): New process_stratum_target parameter. Pass it
12252 down.
12253 (update_threads_executing): Reimplement.
12254 * top.c (quit_force): Pop targets from all inferior.
12255 (gdb_init): Don't call initialize_targets.
12256 * windows-nat.c (windows_nat_target) <get_windows_debug_event>:
12257 Declare.
12258 (windows_add_thread, windows_delete_thread): Adjust.
12259 (get_windows_debug_event): Rename to ...
12260 (windows_nat_target::get_windows_debug_event): ... this. Adjust.
12261 * tracefile-tfile.c (tfile_target_open): Pass down target.
12262 * gdbsupport/common-gdbthread.h (struct process_stratum_target):
12263 Forward declare.
12264 (switch_to_thread): Add process_stratum_target parameter.
12265 * mi/mi-interp.c (mi_on_resume_1): Add process_stratum_target
12266 parameter. Use it.
12267 (mi_on_resume): Pass target down.
12268 * nat/fork-inferior.c (startup_inferior): Add
12269 process_stratum_target parameter. Pass it down.
12270 * nat/fork-inferior.h (startup_inferior): Add
12271 process_stratum_target parameter.
12272 * python/py-threadevent.c (py_get_event_thread): Pass target down.
12273
12274 2020-01-10 Pedro Alves <palves@redhat.com>
12275
12276 * remote.c (remote_target::start_remote): Don't set inferior_ptid
12277 directly. Instead find the first thread in the thread list and
12278 use switch_to_thread.
12279
12280 2020-01-10 Pedro Alves <palves@redhat.com>
12281
12282 * remote.c (remote_target::remote_add_inferior): Don't bind a
12283 process to the current inferior if the current inferior is already
12284 bound to a process.
12285
12286 2020-01-10 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
12287 Pedro Alves <palves@redhat.com>
12288
12289 * remote.c (remote_target::remote_parse_stop_reply) <W/X packets>:
12290 If no process is specified, return null_ptid instead of
12291 inferior_ptid.
12292 (remote_target::wait_as): Handle TARGET_WAITKIND_EXITED /
12293 TARGET_WAITKIND_SIGNALLED with no pid.
12294
12295 2020-01-10 Pedro Alves <palves@redhat.com>
12296
12297 * remote.c (first_remote_resumed_thread): New.
12298 (remote_target::wait_as): Use it as default event_ptid instead of
12299 inferior_ptid.
12300
12301 2020-01-10 Pedro Alves <palves@redhat.com>
12302
12303 * infrun.c (handle_no_resumed): Use all_non_exited_inferiors.
12304
12305 2020-01-10 Pedro Alves <palves@redhat.com>
12306
12307 * tracefile-tfile.c (tfile_target::close): Assert that trace_fd is
12308 not -1.
12309
12310 2020-01-10 Pedro Alves <palves@redhat.com>
12311
12312 * break-catch-sig.c (signal_catchpoint_print_it): Don't pass a
12313 ptid to get_last_target_status.
12314 * break-catch-syscall.c (print_it_catch_syscall): Don't pass a
12315 ptid to get_last_target_status.
12316 * infcmd.c (continue_command): Don't pass a target_waitstatus to
12317 get_last_target_status.
12318 (info_program_command): Don't pass a target_waitstatus to
12319 get_last_target_status.
12320 * infrun.c (init_wait_for_inferior): Use
12321 nullify_last_target_wait_ptid.
12322 (get_last_target_status): Handle nullptr arguments.
12323 (nullify_last_target_wait_ptid): Clear target_last_waitstatus.
12324 (print_stop_event): Don't pass a ptid to get_last_target_status.
12325 (normal_stop): Don't pass a ptid to get_last_target_status.
12326 * infrun.h (get_last_target_status, set_last_target_status): Move
12327 comments here and update.
12328 (nullify_last_target_wait_ptid): Declare.
12329 * linux-fork.c (fork_load_infrun_state): Remove local extern
12330 declaration of nullify_last_target_wait_ptid.
12331 * linux-nat.c (get_detach_signal): Don't pass a target_waitstatus
12332 to get_last_target_status.
12333
12334 2020-01-10 Pedro Alves <palves@redhat.com>
12335
12336 * gdbthread.h (scoped_restore_current_thread)
12337 <dont_restore, restore, m_dont_restore>: Declare.
12338 * thread.c (thread_alive): Add assertion. Return bool.
12339 (switch_to_thread_if_alive): New.
12340 (prune_threads): Switch inferior/thread.
12341 (print_thread_info_1): Switch thread before calling target methods.
12342 (scoped_restore_current_thread::restore): New, factored out from
12343 ...
12344 (scoped_restore_current_thread::~scoped_restore_current_thread):
12345 ... this.
12346 (scoped_restore_current_thread::scoped_restore_current_thread):
12347 Add assertion.
12348 (thread_apply_all_command, thread_select): Use
12349 switch_to_thread_if_alive.
12350 * infrun.c (proceed, restart_threads, handle_signal_stop)
12351 (switch_back_to_stepped_thread): Switch current thread before
12352 calling target methods.
12353
12354 2020-01-10 Pedro Alves <palves@redhat.com>
12355
12356 * inferior.c (switch_to_inferior_no_thread): New function,
12357 factored out from ...
12358 (inferior_command): ... here.
12359 * inferior.h (switch_to_inferior_no_thread): Declare.
12360 * mi/mi-main.c (run_one_inferior): Use
12361 switch_to_inferior_no_thread.
12362
12363 2020-01-10 Pedro Alves <palves@redhat.com>
12364
12365 * infcmd.c (kill_command): Remove dead code.
12366
12367 2020-01-10 Pedro Alves <palves@redhat.com>
12368
12369 * remote.c (remote_target::mourn_inferior): No longer check
12370 whether the target is running.
12371
12372 2020-01-10 Pedro Alves <palves@redhat.com>
12373
12374 * corelow.c (core_target::has_execution): Change parameter type to
12375 inferior pointer.
12376 * inferior.c (number_of_live_inferiors): Use
12377 inferior::has_execution instead of target_has_execution_1.
12378 * inferior.h (inferior::has_execution): New.
12379 * linux-thread-db.c (thread_db_target::update_thread_list): Use
12380 inferior::has_execution instead of target_has_execution_1.
12381 * process-stratum-target.c
12382 (process_stratum_target::has_execution): Change parameter type to
12383 inferior pointer. Check the inferior's PID instead of
12384 inferior_ptid.
12385 * process-stratum-target.h
12386 (process_stratum_target::has_execution): Change parameter type to
12387 inferior pointer.
12388 * record-full.c (record_full_core_target::has_execution): Change
12389 parameter type to inferior pointer.
12390 * target.c (target_has_execution_1): Change parameter type to
12391 inferior pointer.
12392 (target_has_execution_current): Adjust.
12393 * target.h (target_ops::has_execution): Change parameter type to
12394 inferior pointer.
12395 (target_has_execution_1): Change parameter type to inferior
12396 pointer. Change return type to bool.
12397 * tracefile.h (tracefile_target::has_execution): Change parameter
12398 type to inferior pointer.
12399
12400 2020-01-10 Pedro Alves <palves@redhat.com>
12401
12402 * exceptions.c (print_flush): Remove current_top_target() check.
12403
12404 2020-01-10 Pedro Alves <palves@redhat.com>
12405
12406 * remote.c (show_remote_exec_file): Show the current inferior's
12407 exec-file instead of the command variable's value.
12408
12409 2020-01-10 Pedro Alves <palves@redhat.com>
12410
12411 * record-full.c (record_full_resume_ptid): New global.
12412 (record_full_target::resume): Set it.
12413 (record_full_wait_1): Use record_full_resume_ptid instead of
12414 inferior_ptid.
12415
12416 2020-01-10 Pedro Alves <palves@redhat.com>
12417
12418 * gdbthread.h (scoped_restore_current_thread)
12419 <dont_restore, restore, m_dont_restore>: Declare.
12420 * thread.c (thread_alive): Add assertion. Return bool.
12421 (switch_to_thread_if_alive): New.
12422 (prune_threads): Switch inferior/thread.
12423 (print_thread_info_1): Switch thread before calling target methods.
12424 (scoped_restore_current_thread::restore): New, factored out from
12425 ...
12426 (scoped_restore_current_thread::~scoped_restore_current_thread):
12427 ... this.
12428 (scoped_restore_current_thread::scoped_restore_current_thread):
12429 Add assertion.
12430 (thread_apply_all_command, thread_select): Use
12431 switch_to_thread_if_alive.
12432
12433 2020-01-10 George Barrett <bob@bob131.so>
12434
12435 * stap-probe.c (stap_modify_semaphore): Don't check for null
12436 semaphores.
12437 (stap_probe::set_semaphore, stap_probe::clear_semaphore): Check
12438 for null semaphores.
12439
12440 2020-01-09 Andrew Burgess <andrew.burgess@embecosm.com>
12441
12442 * tui/tui-source.c (tui_source_window::do_scroll_vertical): Update
12443 all source windows, and maintain horizontal scroll status while
12444 doing so.
12445
12446 2020-01-09 Tom Tromey <tom@tromey.com>
12447
12448 PR tui/18932:
12449 * tui/tui-source.c (tui_source_window::do_scroll_vertical): Call
12450 update_source_window, not print_source_lines.
12451
12452 2020-01-09 Andrew Burgess <andrew.burgess@embecosm.com>
12453
12454 * tui/tui.c (tui_enable): Register tui hooks after calling
12455 tui_display_main.
12456
12457 2020-01-09 Christian Biesinger <cbiesinger@google.com>
12458
12459 * gdbsupport/common-defs.h: Don't define _FORTIFY_SOURCE on MinGW.
12460
12461 2020-01-08 Simon Marchi <simon.marchi@efficios.com>
12462
12463 * thread.c (print_thread_info_1): Fix indentation.
12464
12465 2020-01-09 Christian Biesinger <cbiesinger@google.com>
12466
12467 * symtab.c (general_symbol_info::compute_and_set_names): Move the
12468 unique_xmalloc_ptr outside the if to always free the demangled name.
12469
12470 2020-01-08 Tom Tromey <tromey@adacore.com>
12471
12472 * xcoffread.c (enter_line_range, read_xcoff_symtab)
12473 (process_xcoff_symbol, xcoff_symfile_offsets): Update.
12474 * symtab.h (MSYMBOL_VALUE_ADDRESS): Update.
12475 (struct section_offsets, ANOFFSET, SIZEOF_N_SECTION_OFFSETS):
12476 Remove.
12477 (section_offsets): New typedef.
12478 * symtab.c (fixup_section, get_msymbol_address): Update.
12479 * symmisc.c (dump_msymbols): Update.
12480 * symfile.h (relative_addr_info_to_section_offsets)
12481 (symfile_map_offsets_to_segments): Update.
12482 * symfile.c (build_section_addr_info_from_objfile)
12483 (init_objfile_sect_indices): Update.
12484 (struct place_section_arg): Change type of "offsets".
12485 (place_section): Update.
12486 (relative_addr_info_to_section_offsets): Change type of
12487 "section_offsets". Remove "num_sections" parameter.
12488 (default_symfile_offsets, syms_from_objfile_1)
12489 (set_objfile_default_section_offset): Update.
12490 (reread_symbols): No need to preserve section offsets by hand.
12491 (symfile_map_offsets_to_segments): Change type of "offsets".
12492 * stap-probe.c (relocate_address): Update.
12493 * stabsread.h (process_one_symbol): Update.
12494 * solib-target.c (struct lm_info_target) <offsets>: Change type.
12495 (solib_target_relocate_section_addresses): Update.
12496 * solib-svr4.c (enable_break, svr4_relocate_main_executable):
12497 Update.
12498 * solib-frv.c (frv_relocate_main_executable): Update.
12499 * solib-dsbt.c (dsbt_relocate_main_executable): Update.
12500 * solib-aix.c (solib_aix_get_section_offsets): Change return
12501 type.
12502 (solib_aix_solib_create_inferior_hook): Update.
12503 * remote.c (remote_target::get_offsets): Update.
12504 * psymtab.c (find_pc_sect_psymtab): Update.
12505 * psympriv.h (struct partial_symbol) <address, text_low,
12506 text_high>: Update.
12507 * objfiles.h (obj_section_offset): Update.
12508 (struct objfile) <section_offsets>: Change type.
12509 <num_sections>: Remove.
12510 (objfile_relocate): Update.
12511 * objfiles.c (entry_point_address_query): Update
12512 (relocate_one_symbol): Change type of "section_offsets".
12513 (objfile_relocate1, objfile_relocate1): Change type of
12514 "new_offsets".
12515 (objfile_rebase1): Update.
12516 * mipsread.c (mipscoff_symfile_read): Update.
12517 (read_alphacoff_dynamic_symtab): Remove "section_offsets"
12518 parameter.
12519 * mdebugread.c (parse_symbol): Change type of "section_offsets".
12520 (parse_external, psymtab_to_symtab_1): Update.
12521 * machoread.c (macho_symfile_offsets): Update.
12522 * ia64-tdep.c (ia64_find_unwind_table): Update.
12523 * hppa-tdep.c (read_unwind_info): Update.
12524 * hppa-bsd-tdep.c (hppabsd_find_global_pointer): Update.
12525 * dwarf2read.c (create_addrmap_from_index)
12526 (create_addrmap_from_aranges, dw2_find_pc_sect_compunit_symtab)
12527 (process_psymtab_comp_unit_reader, add_partial_symbol)
12528 (add_partial_subprogram, process_full_comp_unit)
12529 (read_file_scope, read_func_scope, read_lexical_block_scope)
12530 (read_call_site_scope, dwarf2_rnglists_process)
12531 (dwarf2_ranges_process, dwarf2_ranges_read)
12532 (dwarf_decode_lines_1, var_decode_location, new_symbol)
12533 (dwarf2_fetch_die_loc_sect_off, dwarf2_per_cu_text_offset):
12534 Update.
12535 * dwarf2-frame.c (execute_cfa_program, dwarf2_frame_find_fde):
12536 Update.
12537 * dtrace-probe.c (dtrace_probe::get_relocated_address): Update.
12538 * dbxread.c (read_dbx_symtab, read_ofile_symtab): Update.
12539 (process_one_symbol): Change type of "section_offsets".
12540 * ctfread.c (get_objfile_text_range): Update.
12541 * coffread.c (coff_symtab_read, enter_linenos)
12542 (process_coff_symbol): Update.
12543 * coff-pe-read.c (add_pe_forwarded_sym): Update.
12544 * amd64-windows-tdep.c (amd64_windows_find_unwind_info): Update.
12545
12546 2020-01-08 Tom Tromey <tromey@adacore.com>
12547
12548 * dwarf2read.c (parse_macro_definition): Use std::string.
12549 (parse_macro_definition): Likewise.
12550
12551 2020-01-08 Tom Tromey <tromey@adacore.com>
12552
12553 * dwarf2read.c (abbrev_table_read_table): Use std::vector.
12554 (ATTR_ALLOC_CHUNK): Remove.
12555
12556 2020-01-08 Tom Tromey <tromey@adacore.com>
12557
12558 * dwarf2read.c (fixup_go_packaging): Use unique_xmalloc_ptr.
12559
12560 2020-01-08 Tom Tromey <tromey@adacore.com>
12561
12562 * dwarf2read.c (add_partial_symbol): Use unique_xmalloc_ptr.
12563 (dwarf2_compute_name, open_dwo_file): Likewise.
12564 (process_enumeration_scope): Use std::vector.
12565 (guess_partial_die_structure_name): Use unique_xmalloc_ptr.
12566 (partial_die_info::fixup, dwarf2_start_subfile)
12567 (guess_full_die_structure_name, dwarf2_name): Likewise.
12568 (determine_prefix): Update.
12569 (guess_full_die_structure_name): Make return type const.
12570 (partial_die_full_name): Return unique_xmalloc_ptr.
12571 (DW_FIELD_ALLOC_CHUNK): Remove.
12572
12573 2020-01-07 Tom Tromey <tromey@adacore.com>
12574
12575 PR build/24937:
12576 * stap-probe.c (class stap_static_probe_ops): Add constructor.
12577
12578 2020-01-02 Jon Turney <jon.turney@dronecode.org.uk>
12579
12580 * cli/cli-style.c: Set cli_styling to 'true' in the Cygwin build.
12581
12582 2020-01-06 Andrew Burgess <andrew.burgess@embecosm.com>
12583
12584 * stack.c (print_frame_info): Move disassemble_next_line code
12585 inside source_print block.
12586
12587 2020-01-06 Eli Zaretskii <eliz@gnu.org>
12588
12589 * gdbsupport/gdb_wait.c: Include <signal.h> instead of
12590 gdb/signals.h, as we are now using native signal symbols.
12591
12592 2020-01-06 Shahab Vahedi <shahab@synopsys.com>
12593
12594 * tui/tui-disasm.c (tui_disasm_window::addr_is_displayed): Avoid
12595 overflow by an early check of content vs threshold.
12596 * tui/tui-source.c (tui_source_window::line_is_displayed):
12597 Likewise.
12598
12599 2020-01-06 Eli Zaretskii <eliz@gnu.org>
12600
12601 * NEWS: Mention the recent fix of $_exitsignal on MS-Windows.
12602
12603 2020-01-02 Jon Turney <jon.turney@dronecode.org.uk>
12604
12605 * coff-pe-read.c (read_pe_exported_syms): Don't try to read the
12606 export table if no section contains it's RVA.
12607
12608 2020-01-06 Eli Zaretskii <eliz@gnu.org>
12609
12610 * windows-tdep.c: Fix a typo in WINDOWS_SIGABRT.
12611
12612 2020-01-06 Hannes Domani <ssbssa@yahoo.de>
12613
12614 * source.c (print_source_lines_base): Set last_line_listed.
12615
12616 2020-01-06 Shahab Vahedi <shahab@synopsys.com>
12617
12618 * tui/tui-disasm.c: Remove trailing spaces.
12619
12620 2020-01-06 Eli Zaretskii <eliz@gnu.org>
12621 Pedro Alves <palves@redhat.com>
12622
12623 * Makefile.in (COMMON_SFILES): Add gdbsupport/gdb_wait.c.
12624 * windows-tdep.c: New enumeration of WINDOWS_SIG* signals.
12625 (windows_gdb_signal_to_target): New function, uses the above
12626 enumeration to convert GDB internal signal codes to equivalent
12627 Windows codes.
12628 (windows_init_abi): Call set_gdbarch_gdb_signal_to_target.
12629 * windows-nat.c: Include "gdb_wait.h".
12630 (get_windows_debug_event): Extract the fatal exception from the
12631 exit status and convert to the equivalent Posix signal number.
12632 * cli/cli-cmds.c (exit_status_set_internal_vars): Account for the
12633 possibility that WTERMSIG returns GDB_SIGNAL_UNKNOWN.
12634 * gdbsupport/gdb_wait.c: New file, implements
12635 windows_status_to_termsig.
12636 * gdbsupport/gdb_wait.h (WIFEXITED, WIFSIGNALED, WEXITSTATUS)
12637 (WTERMSIG) [__MINGW32__]: Separate definitions for MinGW.
12638
12639 2020-01-05 Andrew Burgess <andrew.burgess@embecosm.com>
12640
12641 * tui/tui-layout.c (tui_add_win_to_layout): Use tui_set_layout not
12642 show_layout.
12643
12644 2020-01-05 Luis Machado <luis.machado@linaro.org>
12645
12646 * aarch64-linux-nat.c
12647 (aarch64_linux_nat_target::thread_architecture): Use bfd_arch_aarch64
12648 and bfd_mach_aarch64.
12649
12650 2020-01-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
12651
12652 * ui-file.c (stdio_file::can_emit_style_escape)
12653 (tee_file::can_emit_style_escape): Ensure style is used also on
12654 gdb_stderr when gdb_stderr is a tty supporting styling, similarly
12655 to gdb_stdout.
12656 * main.c (set_gdb_data_directory): Use file style to output the
12657 warning that the given pathname is not a directory.
12658 * top.c (show_history_filename, gdb_safe_append_history)
12659 (show_gdb_datadir): Use file style.
12660
12661 2020-01-03 Hannes Domani <ssbssa@yahoo.de>
12662
12663 * solib-target.c (struct lm_info_target):
12664 Change offsets to be a unique_xmalloc_ptr.
12665 (solib_target_relocate_section_addresses): Update.
12666
12667 2020-01-03 Hannes Domani <ssbssa@yahoo.de>
12668
12669 * windows-nat.c (windows_clear_solib): Free so_list linked list.
12670
12671 2020-01-03 Bernd Edlinger <bernd.edlinger@hotmail.de>
12672
12673 * MAINTAINERS (Write After Approval): Add myself.
12674
12675 2020-01-02 Luis Machado <luis.machado@linaro.org>
12676
12677 * proc-service.c (get_ps_regcache): Remove reference to obsolete
12678 Cell BE architecture.
12679 * target.h (struct target_ops) <thread_architecture>: Likewise.
12680
12681 2020-01-01 Hannes Domani <ssbssa@yahoo.de>
12682
12683 * Makefile.in: Use INSTALL_PROGRAM_ENV.
12684
12685 2020-01-01 Hannes Domani <ssbssa@yahoo.de>
12686
12687 * MAINTAINERS (Write After Approval): Add myself.
12688
12689 2020-01-01 Joel Brobecker <brobecker@adacore.com>
12690
12691 * gdbarch.sh: Update copyright year range of generated files.
12692
12693 2020-01-01 Joel Brobecker <brobecker@adacore.com>
12694
12695 Update copyright year range in all GDB files.
12696
12697 2020-01-01 Joel Brobecker <brobecker@adacore.com>
12698
12699 * copyright.py: Convert to Python 3.
12700
12701 2020-01-01 Joel Brobecker <brobecker@adacore.com>
12702
12703 * copyright.py: Adapt after move of gnulib directory from gdb
12704 directory to toplevel directory.
12705
12706 2020-01-01 Joel Brobecker <brobecker@adacore.com>
12707
12708 * copyright.py (main): Exit if run from the wrong directory.
12709
12710 2020-01-01 Joel Brobecker <brobecker@adacore.com>
12711
12712 * top.c (print_gdb_version): Change copyright year to 2020.
12713
12714 2020-01-01 Joel Brobecker <brobecker@adacore.com>
12715
12716 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2019.
12717
12718 For older changes see ChangeLog-2019.
12719 \f
12720 Local Variables:
12721 mode: change-log
12722 left-margin: 8
12723 fill-column: 74
12724 version-control: never
12725 coding: utf-8
12726 End:
This page took 0.285403 seconds and 3 git commands to generate.