gdb: remove TYPE_FIXED_INSTANCE
[binutils-gdb.git] / gdb / ChangeLog
1 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
2
3 * gdbtypes.h (TYPE_FIXED_INSTANCE): Remove, replace all
4 uses with type::is_fixed_instance.
5
6 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
7
8 * gdbtypes.h (struct type) <is_fixed_instance,
9 set_is_fixed_instance>: New methods.
10 (TYPE_FIXED_INSTANCE): Use type::is_fixed_instance, change all
11 write call sites to use type::set_is_fixed_instance.
12
13 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
14
15 * gdbtypes.h (TYPE_GNU_IFUNC): Remove, replace all
16 uses with type::is_gnu_ifunc.
17
18 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
19
20 * gdbtypes.h (struct type) <is_gnu_ifunc, set_is_gnu_ifunc>: New methods.
21 (TYPE_GNU_IFUNC): Use type::is_gnu_ifunc, change all write call sites to
22 use type::set_is_gnu_ifunc.
23
24 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
25
26 * gdbtypes.h (TYPE_STUB_SUPPORTED): Remove, replace all
27 uses with type::stub_is_supported.
28
29 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
30
31 * gdbtypes.h (struct type) <stub_is_supported, set_stub_is_supported>: New methods.
32 (TYPE_STUB_SUPPORTED): Use type::stub_is_supported, change all write call sites to
33 use type::set_stub_is_supported.
34
35 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
36
37 * gdbtypes.h (TYPE_VECTOR): Remove, replace all
38 uses with type::is_vector.
39
40 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
41
42 * gdbtypes.h (struct type) <is_vector, set_is_vector>: New methods.
43 (TYPE_VECTOR): Use type::is_vector, change all write call sites to
44 use type::set_is_vector.
45
46 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
47
48 * gdbtypes.h (TYPE_VARARGS): Remove, replace all
49 uses with type::has_varargs.
50
51 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
52
53 * gdbtypes.h (struct type) <has_varargs, set_has_varargs>: New methods.
54 (TYPE_VARARGS): Use type::has_varargs, change all write call sites to
55 use type::set_has_varargs.
56
57 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
58
59 * gdbtypes.h (TYPE_PROTOTYPED): Remove, replace all
60 uses with type::is_prototyped.
61
62 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
63
64 * gdbtypes.h (struct type) <is_prototyped, set_is_prototyped>:
65 New methods.
66 (TYPE_PROTOTYPED): Use type::is_prototyped, change all write
67 call sites to use type::set_is_prototyped.
68
69 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
70
71 * gdbtypes.h (TYPE_TARGET_STUB): Remove, replace all
72 uses with type::target_is_stub.
73
74 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
75
76 * gdbtypes.h (struct type) <target_is_stub, set_target_is_stub>:
77 New methods.
78 (TYPE_TARGET_STUB): Use type::is_stub, change all write call
79 sites to use type::set_target_is_stub.
80
81 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
82
83 * gdbtypes.h (TYPE_STUB): Remove, replace all
84 uses with type::is_stub.
85
86 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
87
88 * gdbtypes.h (struct type) <is_stub, set_is_stub>: New methods.
89 (TYPE_STUB): Use type::is_stub, change all write call sites to
90 use type::set_is_stub.
91
92 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
93
94 * gdbtypes.h (TYPE_NOSIGN): Remove, replace all uses with
95 type::has_no_signedness.
96
97 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
98
99 * gdbtypes.h (struct type) <has_no_signedness,
100 set_has_no_signedness>: New methods.
101 (TYPE_NOSIGN): Use type::has_no_signedness, change all write
102 call sites to use type::set_has_no_signedness.
103
104 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
105
106 * gdbtypes.h (TYPE_UNSIGNED): Remove, replace all uses with
107 type::is_unsigned.
108
109 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
110
111 * gdbtypes.h (struct type) <is_unsigned, set_is_unsigned>: New
112 methods.
113 (TYPE_UNSIGNED): Use type::is_unsigned. Change all write call
114 sites to use type::set_is_unsigned.
115
116 2020-09-14 Fredrik Hederstierna <fredrik.hederstierna@verisure.com>
117 Adam Renquinha <arenquinha@cimeq.qc.ca>
118
119 * arm-tdep.c (arm_m_exception_cache): Try use correct stack
120 pointer and stack frame offset when unwinding.
121
122 2020-09-13 Pedro Alves <pedro@palves.net>
123
124 * NEWS: Document "-break-insert --qualified".
125 * mi/mi-cmd-break.c (mi_cmd_break_insert_1): Handle "--qualified".
126
127 2020-09-13 Pedro Alves <pedro@palves.net>
128
129 * linespec.c (classify_mtype, compare_msyms): Delete.
130 (search_minsyms_for_name): Remove classification logic. Instead
131 filter out trampoline symbols if we also found an external
132 function of the same name.
133
134 2020-09-13 Joel Brobecker <brobecker@adacore.com>
135
136 * NEWS: Create a new section for the next release branch.
137 Rename the section of the current branch, now that it has
138 been cut.
139
140 2020-09-13 Joel Brobecker <brobecker@adacore.com>
141
142 GDB 10 branch created (8087c3fa8b5d695e3e29e69d70d0b35ec902ac59):
143 * version.in: Bump version to 11.0.50.DATE-git.
144
145 2020-09-12 Joel Brobecker <brobecker@adacore.com>
146
147 * infrun.c (namespace selftests): Only define #if GDB_SELF_TEST.
148
149 2020-09-11 Moritz Riesterer <moritz.riesterer@intel.com>
150 Felix Willgerodt <Felix.Willgerodt@intel.com>
151
152 * gdbarch.sh: Added bfloat16 type.
153 * gdbarch.c: Regenerated.
154 * gdbarch.h: Regenerated.
155 * gdbtypes.c (floatformats_bfloat16): New struct.
156 (gdbtypes_post_init): Add builtin_bfloat16.
157 * gdbtypes.h (struct builtin_type) <builtin_bfloat16>: New member.
158 (floatformats_bfloat16): New struct.
159 * i386-tdep.c (i386_zmm_type): Add field "v32_bfloat16"
160 (i386_ymm_type): Add field "v16_bfloat16"
161 (i386_gdbarch_init): Add set_gdbarch_bfloat16_format.
162 * target-descriptions.c (make_gdb_type): Add case TDESC_TYPE_BFLOAT16.
163 * gdbsupport/tdesc.cc (tdesc_predefined_types): New member bfloat16.
164 * gdbsupport/tdesc.h (tdesc_type_kind): New member TDESC_TYPE_BFLOAT16.
165 * features/i386/64bit-avx512.xml: Add bfloat16 type.
166 * features/i386/64bit-avx512.c: Regenerated.
167 * features/i386/64bit-sse.xml: Add bfloat16 type.
168 * features/i386/64bit-sse.c: Regenerated.
169
170 2020-09-11 Felix Willgerodt <felix.willgerodt@intel.com>
171
172 * i386-tdep.c (i386_zmm_type): Fix field names.
173 (i386_ymm_type): Fix field names.
174
175 2020-09-11 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
176
177 * breakpoint.c: Fix typo in the help message of the
178 "set breakpoint condition-evaluation" command.
179
180 2020-09-10 Kamil Rytarowski <n54@gmx.com>
181
182 * nbsd-nat.c: Include "nat/netbsd-nat.h".
183 * (nbsd_nat_target::pid_to_exec_file)
184 (nbsd_nat_target::thread_alive, nbsd_nat_target::thread_name)
185 (nbsd_nat_target::post_startup_inferior)
186 (nbsd_nat_target::post_attach, nbsd_nat_target::xfer_partial)
187 (nbsd_add_threads): Switch local code to common gdb/nat functions.
188 * (nbsd_pid_to_cmdline): Call sysctl from the global namespace.
189 * (nbsd_thread_lister): Remove.
190
191 2020-09-10 Kamil Rytarowski <n54@gmx.com>
192
193 * fork-inferior.c (startup_inferior): Avoid double free.
194
195 2020-09-10 Kamil Rytarowski <n54@gmx.com>
196
197 * netbsd-nat.h (netbsd_nat::qxfer_siginfo): Add.
198 * netbsd-nat.c (netbsd_nat::qxfer_siginfo): Likewise.
199
200 2020-09-10 Kamil Rytarowski <n54@gmx.com>
201
202 * netbsd-nat.h (netbsd_nat::enable_proc_events): Add.
203 * netbsd-nat.c: Include <sys/ptrace.h>.
204 * (netbsd_nat::enable_proc_events): Add.
205
206 2020-09-10 Kamil Rytarowski <n54@gmx.com>
207
208 * netbsd-nat.h: Include "gdbsupport/function-view.h".
209 * (netbsd_nat::thread_alive, netbsd_nat::thread_name)
210 (netbsd_nat::for_each_thread): Add.
211 * netbsd-nat.c: Include "gdbsupport/common-defs.h" and
212 "gdbsupport/common-debug.h".
213 * (netbsd_nat::netbsd_thread_lister)
214 (netbsd_nat::thread_alive, netbsd_nat::thread_name)
215 (netbsd_nat::for_each_thread): Add.
216
217 2020-09-10 Kamil Rytarowski <n54@gmx.com>
218
219 * netbsd-nat.h: Include <unistd.h>.
220 * (netbsd_nat::pid_to_exec_file): Add.
221 * netbsd-nat.c: Include <sys/types.h> and <sys/sysctl.h>.
222 * (netbsd_nat::pid_to_exec_file) Add.
223
224 2020-09-10 Kamil Rytarowski <n54@gmx.com>
225
226 * configure.nat (NATDEPFILES): Add nat/netbsd-nat.o when needed.
227
228 2020-09-10 Kamil Rytarowski <n54@gmx.com>
229
230 * netbsd-nat.h: New file.
231 * netbsd-nat.c: Likewise.
232
233 2020-09-09 Tom Tromey <tromey@adacore.com>
234
235 * ada-lang.c (remove_extra_symbols): Do not increment when
236 removing an element
237
238 2020-09-08 Tom Tromey <tromey@adacore.com>
239
240 * gdb_bfd.c (gdb_bfd_open): Call bfd_fopen when fstat fails.
241
242 2020-09-08 Tom Tromey <tromey@adacore.com>
243
244 PR win32/25302:
245 * gdb_bfd.c (gdb_bfd_data): Add "st" parameter.
246 (gdb_bfd_init_data): New function.
247 (gdb_bfd_open, gdb_bfd_ref): Use gdb_bfd_init_data.
248
249 2020-09-07 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
250
251 * infrun.c (fetch_inferior_event): Use
252 `switch_to_target_no_thread` to switch the target.
253
254 2020-09-06 Tom Tromey <tom@tromey.com>
255
256 * symfile.h (dwarf2_free_objfile): Don't declare.
257
258 2020-09-03 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
259
260 * gdb/i386-tdep.c (i386_floatformat_for_type): Added conditions
261 to match 16 byte real/complex type generated by Flang compiler.
262
263 2020-09-03 Tom de Vries <tdevries@suse.de>
264
265 PR breakpoint/26546
266 * dwarf2/read.c (new_symbol): Tag label symbol without DW_AT_low_pc as
267 LOC_OPTIMIZED_OUT instead of LOC_LABEL.
268
269 2020-09-02 Simon Marchi <simon.marchi@polymtl.ca>
270
271 * maint.c (index_digits): New function.
272 (struct maint_print_section_data): Remove.
273 (print_bfd_section_info): Remove print_data parameter, add arg
274 and index_digits.
275 (print_objfile_section_info): Likewise.
276 (print_bfd_section_info_maybe_relocated): Likewise (plus
277 objfile).
278 (maintenance_info_sections): Adjust calls.
279
280 2020-09-02 Tom Tromey <tromey@adacore.com>
281
282 * ada-varobj.c (ada_varobj_get_ptr_number_of_children): Return 0
283 for null pointers.
284 (ada_varobj_adjust_for_child_access): Special-case null pointers.
285
286 2020-09-01 Simon Marchi <simon.marchi@polymtl.ca>
287
288 * bcache.h (struct bcache) <insert>: Change type of `added` to
289 pointer to bool.
290 * bcache.c (bcache::insert): Likewise.
291 * gdbtypes.c (check_types_worklist): Adjust.
292 * psymtab.c (add_psymbol_to_bcache): Adjust.
293
294 2020-08-31 Kevin Buettner <kevinb@redhat.com>
295
296 * corelow.c (unordered_set): Include.
297 (class core_target): Add field 'm_core_unavailable_mappings'.
298 (core_target::build_file_mappings): Print only one warning
299 per inaccessible file. Add unavailable/broken mappings
300 to m_core_unavailable_mappings.
301 (core_target::xfer_partial): Call...
302 (core_target::xfer_memory_via_mappings): New method.
303
304 2020-08-31 Simon Marchi <simon.marchi@polymtl.ca>
305
306 * dwarf2/read.c (struct field_info) <non_public_fields>: Change
307 type to bool.
308
309 2020-08-31 Simon Marchi <simon.marchi@polymtl.ca>
310
311 * dwarf2/read.c (struct field_info): Fix indentation.
312
313 2020-08-31 Simon Marchi <simon.marchi@efficios.com>
314
315 * frame-unwind.h (frame_prev_register_ftype): Fix adjective
316 ordering in comment.
317 * frame.c (frame_id_eq): Fix indentation.
318
319 2020-08-31 Scott Linder <scott@scottlinder.com>
320 Simon Marchi <simon.marchi@efficios.com>
321
322 * inline-frame.c (inline_frame_this_id): Remove assert that prevents
323 inline frame ids in outer frame.
324
325 2020-08-31 Simon Marchi <simon.marchi@efficios.com>
326
327 * frame.h (enum frame_id_stack_status) <FID_STACK_OUTER>: New.
328 * frame.c (fprint_frame_id): Handle FID_STACK_OUTER.
329 (outer_frame_id): Use FID_STACK_OUTER instead of
330 FID_STACK_INVALID.
331 (frame_id_p): Don't check for outer_frame_id.
332
333 2020-08-31 Simon Marchi <simon.marchi@efficios.com>
334
335 * frame-unwind.c (frame_unwind_got_optimized): Don't set
336 regnum/frame in value. Call allocate_value_lazy.
337 * frame.c (frame_unwind_register_value): Use
338 val_print_not_saved.
339
340 2020-08-31 Simon Marchi <simon.marchi@efficios.com>
341
342 * gdbtypes.h (NULL_TYPE): Remove, change all uses to nullptr.
343
344 2020-08-29 Pedro Alves <pedro@palves.net>
345
346 * progspace.c (print_program_space): Use all_inferiors. Switch to
347 the inferior before calling target_pid_to_str.
348
349 2020-08-28 Tom Tromey <tom@tromey.com>
350
351 * xcoffread.c (xcoff_end_psymtab): Update comment.
352 * dbxread.c (dbx_end_psymtab): Update comment.
353
354 2020-08-28 Tom de Vries <tdevries@suse.de>
355
356 PR breakpoint/26544
357 * breakpoint.c (parse_breakpoint_sals): Remove const from struct
358 event_location.
359 (create_breakpoint): Same.
360 (base_breakpoint_decode_location): Same.
361 (bkpt_create_sals_from_location): Same.
362 (bkpt_decode_location): Same.
363 (bkpt_probe_create_sals_from_location): Same.
364 (bkpt_probe_decode_location): Same.
365 (tracepoint_create_sals_from_location): Same.
366 (tracepoint_decode_location): Same.
367 (tracepoint_probe_decode_location): Same.
368 (strace_marker_create_sals_from_location): Same.
369 (strace_marker_decode_location): Same.
370 (create_sals_from_location_default): Same.
371 (decode_location_default): Same.
372 * breakpoint.h (struct breakpoint_ops): Same.
373 (create_breakpoint): Same.
374 * linespec.h (decode_line_full): Same.
375 * linespec.c (decode_line_full): Same. Throw error if
376 result.size () == 0.
377
378 2020-08-27 Pedro Alves <pedro@palves.net>
379
380 PR gdb/26524
381 * breakpoint.c (until_break_fsm) <location_breakpoint,
382 caller_breakpoint>: Delete fields.
383 <breakpoints>: New field.
384 <until_break_fsm>: Adjust to save a breakpoint vector instead of
385 two individual breakpoints.
386 (until_break_fsm::should_stop): Loop over breakpoints in the
387 breakpoint vector.
388 (until_break_fsm::clean_up): Adjust to clear the breakpoints
389 vector.
390 (until_break_command): Handle location expanding into multiple
391 sals.
392
393 2020-08-27 Pedro Alves <pedro@palves.net>
394
395 PR gdb/26523
396 * inline-frame.c (stopped_by_user_bp_inline_frame): Also consider
397 bp_until breakpoints user-specified locations. Update intro
398 comment.
399
400 2020-08-27 Simon Marchi <simon.marchi@polymtl.ca>
401
402 * gdb_bfd.h (gdb_bfd_section_iterator, gdb_bfd_section_range,
403 gdb_bfd_sections): New.
404 * maint.c (print_bfd_section_info): Change param type to
405 maint_print_section_data.
406 (print_objfile_section_info): Likewise.
407 (print_bfd_section_info_maybe_relocated): Likewise.
408 (maintenance_info_sections): Use gdb_bfd_sections.
409
410 2020-08-25 Shahab Vahedi <shahab@synopsys.com>
411
412 * MAINTAINERS: Add ARC target and maintainer.
413
414 2020-08-25 Anton Kolesov <anton.kolesov@synopsys.com>
415
416 * configure.tgt: ARC support for GNU/Linux.
417 * Makefile.in (ALL_TARGET_OBJS): Likewise.
418 * arc-linux-tdep.c: New file.
419 * arc-tdep.h (ARC_STATUS32_L_MASK, ARC_STATUS32_DE_MASK): Declare.
420 * arc-tdep.c (arc_write_pc): Use it.
421
422 2020-08-25 Shahab Vahedi <shahab@synopsys.com>
423
424 * arc-tdep.c (arc_check_for_hardware_loop): New.
425 * arc-tdep.h (gdbarch_tdep): New field has_hw_loops.
426
427 2020-08-25 Shahab Vahedi <shahab@synopsys.com>
428
429 * arc-tdep.h: Include "gdbarch.h".
430
431 2020-08-25 Shahab Vahedi <shahab@synopsys.com>
432
433 * arch/arc.h
434 (arc_gdbarch_features): New class to stir the selection of target XML.
435 (arc_create_target_description): Use FEATURES to choose XML target.
436 (arc_lookup_target_description): Use arc_create_target_description
437 to create _new_ target descriptions or return the already created
438 ones if the FEATURES is the same.
439 * arch/arc.c: Implementation of prototypes described above.
440 * gdb/arc-tdep.h (arc_regnum enum): Add more registers.
441 (arc_gdbarch_features_init): Initialize the FEATURES struct.
442 * arc-tdep.c (*_feature_name): Make feature names consistent.
443 (arc_register_feature): A new struct to hold information about
444 registers of a particular target/feature.
445 (arc_check_tdesc_feature): Check if XML provides registers in
446 compliance with ARC_REGISTER_FEATURE structs.
447 (arc_update_acc_reg_names): Add aliases for r58 and r59.
448 (determine_*_reg_feature_set): Which feature name to look for.
449 (arc_gdbarch_features_init): Given MACH and ABFD, initialize FEATURES.
450 (mach_type_to_arc_isa): Convert from a set of binutils machine types
451 to expected ISA enums to be used in arc_gdbarch_features structs.
452 * features/Makefile (FEATURE_XMLFILES): Add new files.
453 * gdb/features/arc/v1-aux.c: New file.
454 * gdb/features/arc/v1-aux.xml: Likewise.
455 * gdb/features/arc/v1-core.c: Likewise.
456 * gdb/features/arc/v1-core.xml: Likewise.
457 * gdb/features/arc/v2-aux.c: Likewise.
458 * gdb/features/arc/v2-aux.xml: Likewise.
459 * gdb/features/arc/v2-core.c: Likewise.
460 * gdb/features/arc/v2-core.xml: Likewise.
461 * NEWS (Changes since GDB 9): Announce obsolence of old feature names.
462
463 2020-08-25 Gaius Mulley <gaiusmod2@gmail.com>
464 Andrew Burgess <andrew.burgess@embecosm.com>
465
466 PR m2/26372
467 * m2-exp.y (exp): Improve comment for non_empty_arglist case, add
468 an assert. Remove single element array indexing pattern as the
469 MULTI_SUBSCRIPT support will handle this case too.
470
471 2020-08-24 Simon Marchi <simon.marchi@polymtl.ca>
472
473 * value.h (valprint_check_validity): Move declaration from
474 here...
475 * valprint.h (valprint_check_validity): ... to here.
476
477 2020-08-24 Simon Marchi <simon.marchi@efficios.com>
478
479 * debug.h: New file.
480 * debug.c (debug_prefixed_vprintf): New function.
481 * infrun.c (infrun_debug_printf_1): Use debug_prefixed_vprintf.
482 * linux-nat.c (linux_nat_debug_printf_1): Likewise.
483
484 2020-08-24 Simon Marchi <simon.marchi@efficios.com>
485
486 * infrun.h (infrun_debug_printf_1): New function declaration.
487 (infrun_debug_printf): New macro.
488 * infrun.c (infrun_debug_printf_1): Use infrun_debug_printf
489 throughout.
490 (infrun_debug_printf): New function.
491 * breakpoint.c (should_be_inserted): Use infrun_debug_printf.
492 (handle_jit_event): Likewise.
493
494 2020-08-21 Mark Wielaard <mark@klomp.org>
495
496 * ada-lex.l: Extend register warnings diagnostics comment for g++.
497
498 2020-08-22 Simon Marchi <simon.marchi@efficios.com>
499
500 * frame.c (enum class frame_id_status): New.
501 (struct frame_info) <this_id::p>: Change type to frame_id_status.
502 (fprintf_frame): Update.
503 (compute_frame_id): Set frame id status to "computing" on entry.
504 Set it back to "not_computed" on failure and to "computed" on
505 success.
506 (get_frame_id): Assert the frame id is not being computed.
507 (create_sentinel_frame): Use frame_id_status::COMPUTED.
508 (create_new_frame): Likewise.
509 (frame_cleanup_after_sniffer): Update assert.
510
511 2020-08-20 Simon Marchi <simon.marchi@polymtl.ca>
512
513 * regcache.c (pid_ptid_regcache_map): New type.
514 (target_ptid_regcache_map): Remove.
515 (target_pid_ptid_regcache_map): New type.
516 (regcaches): Change type to target_pid_ptid_regcache_map.
517 (get_thread_arch_aspace_regcache): Update.
518 (regcache_thread_ptid_changed): Update, handle pid-like ptid
519 case.
520 (regcaches_size): Update.
521 (regcache_count): Update.
522 (registers_changed_ptid_target_pid_test): New.
523 (_initialize_regcache): Register new test.
524
525 2020-08-20 Simon Marchi <simon.marchi@polymtl.ca>
526
527 * regcache.c (regcache_count): New.
528 (struct regcache_test_data): New.
529 (regcache_test_data_up): New.
530 (populate_regcaches_for_test): New.
531 (regcaches_test): Remove.
532 (get_thread_arch_aspace_regcache_test): New.
533 (registers_changed_ptid_all_test): New.
534 (registers_changed_ptid_target_test): New.
535 (registers_changed_ptid_target_ptid_test): New.
536 (regcache_thread_ptid_changed): Remove regcache_count lambda.
537 (_initialize_regcache): Register new tests.
538
539 2020-08-20 Simon Marchi <simon.marchi@polymtl.ca>
540
541 * regcache.c (test_get_thread_arch_aspace_regcache): Rename to...
542 (get_thread_arch_aspace_regcache_and_check): ... this. Remove
543 gdbarch and aspace parameter. Use current inferior's aspace.
544 Validate regcache's arch value.
545 (regcaches_test): Update.
546
547 2020-08-20 Simon Marchi <simon.marchi@polymtl.ca>
548
549 * regcache.c (regcaches_test): Call registers_changed.
550
551 2020-08-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
552
553 * infrun.c (process_event_stop_test): Fix typo "breapoint".
554
555 2020-08-19 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
556
557 * amd64-tdep.c (amd64_skip_prologue): Using symbol table
558 to find the end of prologue for flang compiled binaries.
559 * arm-tdep.c (arm_skip_prologue): Likewise.
560 * i386-tdep.c (i386_skip_prologue): Likewise.
561 * producer.c (producer_is_llvm): New function.
562 (producer_parsing_tests): Added new tests for clang/flang.
563 * producer.h (producer_is_llvm): New declaration.
564
565 2020-08-18 Simon Marchi <simon.marchi@efficios.com>
566
567 * linux-nat.c (linux_nat_debug_printf): New function.
568 (linux_nat_debug_printf_1): New macro. Use throughout the file.
569
570 2020-08-18 Aaron Merey <amerey@redhat.com>
571
572 * Makefile.in (DEBUGINFOD_CFLAGS, DEBUGINFOD_LIBS): New variables.
573 (INTERNAL_CFLAGS_BASE): Add DEBUGINFOD_CFLAGS.
574 (CLIBS): Add DEBUGINFOD_LIBS.
575
576 2020-08-17 Sergei Trofimovich <siarheit@google.com>
577
578 * ia64-linux-nat.c: Include "gdbarch.h" to declare used
579 'gdbarch_num_regs'.
580
581 2020-08-17 Tom Tromey <tromey@adacore.com>
582
583 * ada-varobj.c (ada_varobj_decode_var): Handle case where
584 ada_get_decoded_value returns NULL.
585
586 2020-08-17 Tom Tromey <tromey@adacore.com>
587
588 * python/py-inferior.c (infpy_search_memory): Use
589 gdb_py_object_from_ulongest.
590 * python/py-infevents.c (create_inferior_call_event_object)
591 (create_memory_changed_event_object): Use
592 gdb_py_object_from_ulongest.
593 * python/py-linetable.c (ltpy_entry_get_pc): Use
594 gdb_py_object_from_ulongest.
595
596 2020-08-17 Simon Marchi <simon.marchi@polymtl.ca>
597
598 * loc.c (class symbol_needs_eval_context): Fix indentation.
599
600 2020-08-17 Simon Marchi <simon.marchi@polymtl.ca>
601
602 * dwarf2/loc.c (dwarf2_loc_desc_get_symbol_read_needs): Use
603 bool.
604
605 2020-08-17 Tom de Vries <tdevries@suse.de>
606
607 PR gdb/26393
608 * gdbtypes.c (dump_dynamic_prop): New function.
609 (recursive_dump_type): Use dump_dynamic_prop for TYPE_CODE_RANGE.
610
611 2020-08-15 Tom de Vries <tdevries@suse.de>
612
613 PR backtrace/26390
614 * stack.c (print_frame_args): Temporarily set the selected
615 frame to FRAME while printing the frame's arguments.
616
617 2020-08-14 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
618
619 PR breakpoints/26385
620 * ppc-linux-nat.c (ppc_linux_nat_target::low_prepare_to_resume):
621 Always clear watchpoint with PTRACE_SET_DEBUGREG.
622
623 2020-08-14 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
624
625 * ppc-linux-nat.c (ppc_linux_dreg_interface::detect)
626 (ppc_linux_nat_target::low_prepare_to_resume): Use ptrace () < 0
627 and >= to check return value instead of == -1 and != -1.
628
629 2020-08-14 Simon Marchi <simon.marchi@polymtl.ca>
630
631 * utils.h (class gdb_argv) <as_array_view>: New method.
632 * utils.c (gdb_argv_as_array_view_test): New.
633 (_initialize_utils): Register selftest.
634 * maint.c (maintenance_selftest): Use the new method.
635
636 2020-08-13 Kamil Rytarowski <n54@gmx.com>
637
638 * target.h (supports_dumpcore, dumpcore): New
639 function declarations.
640 * target.c (supports_dumpcore, dumpcore): New
641 functions.
642 * target-delegates.c: Rebuild.
643 * gcore.c (gcore_command): Use target_supports_dumpcore ()
644 and target_dumpcore ().
645
646 2020-08-13 Aaron Merey <amerey@redhat.com>
647
648 * debuginfod-support.c: Replace global variables with user_data.
649
650 2020-08-13 Simon Marchi <simon.marchi@polymtl.ca>
651
652 * maint.c (maintenance_selftest): Split args and pass array_view
653 to run_tests.
654
655 2020-08-12 Luis Machado <luis.machado@linaro.org>
656
657 * value.c (check_type_length_before_alloc): Use ULONGEST to store a
658 type's length.
659 Use %s and pulongest to print the length.
660
661 2020-08-12 Pedro Alves <palves@redhat.com>
662
663 * NEWS: Move "Multi-target debugging support" item to the
664 "Changes since GDB 9" section.
665
666 2020-08-12 Pedro Alves <palves@redhat.com>
667
668 PR gdb/26336
669 * progspace.c (program_space::remove_objfile): Invalidate the
670 frame cache.
671
672 2020-08-11 Tom de Vries <tdevries@suse.de>
673
674 * MAINTAINERS: Mark ms1 as deleted.
675
676 2020-08-10 Luis Machado <luis.machado@linaro.org>
677
678 PR gdb/26310
679
680 * aarch64-tdep.c (aarch64_analyze_prologue): Track use of SP/FP and
681 act accordingly.
682 (aarch64_analyze_prologue_test): Add more unit tests to exercise
683 movz/str/stur/stp skipping behavior.
684
685 2020-08-10 Luis Machado <luis.machado@linaro.org>
686
687 * nat/aarch64-sve-linux-sigcontext.h (SVE_PT_REGS_OFFSET): Use
688 struct user_sve_header instead of struct sve_context.
689
690 2020-08-09 Simon Marchi <simon.marchi@polymtl.ca>
691
692 * read.h (dwarf2_fetch_die_loc_sect_off,
693 dwarf2_fetch_die_loc_cu_off): Replace function pointer +
694 `void *` parameter with function_view.
695 * read.c (dwarf2_fetch_die_loc_sect_off,
696 dwarf2_fetch_die_loc_cu_off): Likewise.
697 * loc.c (get_frame_pc_for_per_cu_dwarf_call): Remove.
698 (per_cu_dwarf_call): Adjust.
699 (get_frame_address_in_block_wrapper): Remove.
700 (indirect_synthetic_pointer): Adjust.
701 (get_ax_pc): Remove.
702 (dwarf2_compile_expr_to_ax): Adjust.
703
704 2020-08-08 Tom de Vries <tdevries@suse.de>
705
706 PR build/26344
707 * arch/riscv.c (riscv_lookup_target_description): Use an explicit
708 constructor.
709 * regcache.c (get_thread_arch_aspace_regcache): Same.
710
711 2020-08-07 Tom Tromey <tromey@adacore.com>
712
713 * ravenscar-thread.c
714 (ravenscar_thread_target::set_base_thread_from_ravenscar_task):
715 New method.
716 (ravenscar_thread_target::wait): Check
717 runtime_initialized.
718 (ravenscar_thread_target::prepare_to_store)
719 (ravenscar_thread_target::stopped_by_sw_breakpoint)
720 (ravenscar_thread_target::stopped_by_hw_breakpoint)
721 (ravenscar_thread_target::stopped_by_watchpoint)
722 (ravenscar_thread_target::stopped_data_address)
723 (ravenscar_thread_target::core_of_thread): Use
724 scoped_restore_current_thread and
725 set_base_thread_from_ravenscar_task.
726
727 2020-08-07 Tom Tromey <tromey@adacore.com>
728
729 * ravenscar-thread.c (update_thread_list): Set inferior_ptid.
730
731 2020-08-07 Tom Tromey <tromey@adacore.com>
732
733 * ravenscar-thread.c (ravenscar_thread_target::wait): Call
734 update_inferior_ptid before update_thread_list.
735 (temporarily_change_regcache_ptid): New class.
736 (ravenscar_thread_target::fetch_registers)
737 (ravenscar_thread_target::store_registers)
738 (ravenscar_thread_target::prepare_to_store): Use base thread when
739 forwarding operation.
740
741 2020-08-07 Tom Tromey <tromey@adacore.com>
742
743 * ravenscar-thread.c (ravenscar_thread_target::resume): Handle
744 "is_pid" case.
745
746 2020-08-07 Tom Tromey <tromey@adacore.com>
747
748 * ravenscar-thread.c (xfer_partial, enable_btrace, add_thread):
749 New methods.
750 (ravenscar_thread_target::get_thread_base_cpu): Check m_cpu_map
751 first.
752 (ravenscar_thread_target::add_thread): Rename from
753 ravenscar_add_thread.
754 (ravenscar_thread_target::update_thread_list): Use a lambda.
755 (ravenscar_thread_target::xfer_partial): New method.
756
757 2020-08-07 Tom Tromey <tromey@adacore.com>
758
759 * ada-lang.h (ada_task_list_iterator_ftype): Now a
760 gdb::function_view.
761 (iterate_over_live_ada_tasks): Change type of argument.
762 * ada-tasks.c (iterate_over_live_ada_tasks): Change type
763 of argument.
764
765 2020-08-07 Tom Tromey <tromey@adacore.com>
766
767 * ravenscar-thread.c (ravenscar_thread_target) <extra_thread_info>:
768 Remove.
769 (ravenscar_thread_target::extra_thread_info): Remove.
770 (ravenscar_thread_target::pid_to_str): Mention Ravenscar in result;
771 defer to target beneath for non-Ravenscar threads.
772
773 2020-08-07 Tom Tromey <tromey@adacore.com>
774
775 * ravenscar-thread.c (ravenscar_thread_target) <get_base_cpu,
776 get_base_thread_from_ravenscar_task>: Now methods.
777 <m_cpu_map>: New member.
778 (ravenscar_thread_target::get_thread_base_cpu): Rename from
779 ravenscar_get_thread_base_cpu. Check m_cpu_map.
780 (ravenscar_thread_target::task_is_currently_active): Update.
781 (ravenscar_thread_target::get_base_thread_from_ravenscar_task):
782 Now a method.
783 (ravenscar_thread_target::add_active_thread): Put initial thread
784 into the m_cpu_map.
785
786 2020-08-07 Tom Tromey <tromey@adacore.com>
787
788 * ravenscar-thread.c (ravenscar_thread_target::wait): Return
789 event_ptid.
790
791 2020-08-07 Tom Tromey <tromey@adacore.com>
792
793 * ravenscar-thread.c (ravenscar_thread_target::wait): Check
794 runtime_initialized.
795
796 2020-08-07 Tom Tromey <tromey@adacore.com>
797
798 * ravenscar-thread.c (ravenscar_thread_target): Don't call
799 add_active_thread.
800 (ravenscar_thread_target::add_active_thread): Now public.
801 (ravenscar_inferior_created): Call add_active_thread after pushing
802 the target.
803
804 2020-08-07 Simon Marchi <simon.marchi@polymtl.ca>
805
806 * regcache.c (ptid_regcache_map): New type.
807 (target_ptid_regcache_map): New type.
808 (regcaches): Change type to target_ptid_regcache_map.
809 (get_thread_arch_aspace_regcache): Update to regcaches' new
810 type.
811 (regcache_thread_ptid_changed): Likewise.
812 (registers_changed_ptid): Likewise.
813 (regcaches_size): Likewise.
814 (regcaches_test): Update.
815 (regcache_thread_ptid_changed): Update.
816 * regcache.h (regcache_up): New type.
817 * gdbsupport/ptid.h (hash_ptid): New struct.
818
819 2020-08-07 Simon Marchi <simon.marchi@efficios.com>
820
821 * observable.h (thread_ptid_changed): Add parameter
822 `process_stratum_target *`.
823 * infrun.c (infrun_thread_ptid_changed): Add parameter
824 `process_stratum_target *` and use it.
825 (selftests): New namespace.
826 (infrun_thread_ptid_changed): New function.
827 (_initialize_infrun): Register selftest.
828 * regcache.c (regcache_thread_ptid_changed): Add parameter
829 `process_stratum_target *` and use it.
830 (regcache_thread_ptid_changed): New function.
831 (_initialize_regcache): Register selftest.
832 * thread.c (thread_change_ptid): Pass target to
833 thread_ptid_changed observable.
834
835 2020-08-06 Caroline Tice <cmtice@google.com>
836
837 * dwarf2/read.c (struct dwo_file): Update comment on 'sections' field.
838 (struct dwp_sections): Update field comments. Add loclists and
839 rnglists fields.
840 (struct virtual_v2_dwo_sections): Rename struct to
841 'virtual_v2_or_v5_dwo_sections'; update comments at top of struct; add
842 size & offset fields for loclists and rnglists.
843 (struct dwp_hash_table): Add a 'v5' struct field to the union section.
844 (create_debug_type_hash_table): Add 'DW_UT_split_type' to the check for
845 skipping dummy type units.
846 (create_dwp_hash_table): Update the large comment above the function to
847 discuss Version 5 DWP files as well, with references. Update all the
848 version checks in the function to check for version 5 as well. Add new
849 section at the end to create dwp hash table for version 5.
850 (create_dwp_v2_section): Rename function to
851 'create_dwp_v2_or_v5_section'. Update function comment appropriately.
852 Add V5 to error message text.
853 (create_dwo_unit_in_dwp_v2): Change calls to create_dwp_v2_section
854 into calls to create_dwp_v2_or_v5_section.
855 (create_dwo_unit_in_dwp_v5): New function.
856 (lookup_dwo_unit_in_dwp): Update conditional statement to explicitly
857 check for version2; add else clause to handle version 5.
858 (open_and_init_dwo_file): Add code to check dwarf version & only call
859 create_debug_types_hash_table (with sections.types) if version is not 5;
860 else call create_debug_type_hash_table, with sections.info.
861 (dwarf2_locate_v2_dwp_sections): Update function comment to mention
862 version 5.
863 (dwarf2_locate_v5_dwp_sections): New function.
864 (open_and_init_dwp_file): Add else-if clause for version 5 to call
865 bfd_map_over_sections with dwarf2_locate_v5_dwp_sections.
866
867 2020-08-06 Simon Marchi <simon.marchi@efficios.com>
868
869 * regcache.h (class regcache): Remove friend
870 registers_changed_ptid.
871 <regcache_thread_ptid_changed>: Remove.
872 <regcaches>: Remove.
873 * regcache.c (regcache::regcaches): Rename to...
874 (regcaches): ... this. Make static.
875 (get_thread_arch_aspace_regcache): Update.
876 (regcache::regcache_thread_ptid_changed): Rename to...
877 (regcache_thread_ptid_changed): ... this. Update.
878 (class regcache_access): Remove.
879 (regcaches_test): Update.
880 (_initialize_regcache): Update.
881 * sparc64-tdep.c, dwarf2/index-write.c, record-btrace.c: Include
882 <forward_list>.
883
884 2020-08-06 Simon Marchi <simon.marchi@efficios.com>
885
886 * regcache.h (class regcache) <current_regcache>: Rename to...
887 <regcaches>: ... this. Move doc here.
888 * regcache.c (regcache::current_regcache) Rename to...
889 (regcache::regcaches): ... this. Move doc to header.
890 (get_thread_arch_aspace_regcache): Update.
891 (regcache::regcache_thread_ptid_changed): Update.
892 (registers_changed_ptid): Update.
893 (class regcache_access) <current_regcache_size>: Rename to...
894 <regcaches_size>: ... this.
895 (current_regcache_test): Rename to...
896 (regcaches_test): ... this.
897 (_initialize_regcache): Update.
898
899 2020-08-06 Victor Collod <vcollod@nvidia.com>
900
901 * amd64-tdep.c (amd64_analyze_prologue): Fix incorrect comment.
902
903 2020-08-05 Kevin Buettner <kevinb@redhat.com>
904
905 * corelow.c (core_target::build_file_mappings): Don't output
906 null pathname in warning.
907
908 2020-08-05 Simon Marchi <simon.marchi@polymtl.ca>
909
910 * gdb.dwarf2/clztest.exp, gdb.dwarf2/dw2-common-block.exp,
911 gdb.dwarf2/dw2-dup-frame.exp, gdb.dwarf2/dw2-reg-undefined.exp,
912 gdb.dwarf2/dw2-single-line-discriminators.exp,
913 dw2-undefined-ret-addr.exp: Pass nopie to compilation options.
914
915 2020-08-05 Tom Tromey <tromey@adacore.com>
916
917 PR rust/26197:
918 * dwarf2/read.c (alloc_rust_variant): Handle univariant case.
919 (quirk_rust_enum): Call alloc_rust_variant for univariant case.
920 Fix off-by-one and type size errors in ordinary case.
921
922 2020-08-05 Tom de Vries <tdevries@suse.de>
923
924 * gdbtypes.c (type_not_allocated, type_not_associated): Use
925 "prop->const_val () == 0" instead of "prop->const_val () != 0".
926
927 2020-08-04 Simon Marchi <simon.marchi@efficios.com>
928
929 * frame.h (frame_id_p): Return bool.
930 (frame_id_artificial_p): Return bool.
931 (frame_id_eq): Return bool.
932 (has_stack_frames): Return bool.
933 (get_selected_frame): Fix typo in comment.
934 (get_frame_pc_if_available): Return bool.
935 (get_frame_address_in_block_if_available): Return bool.
936 (get_frame_func_if_available): Return bool.
937 (read_frame_register_unsigned): Return bool.
938 (get_frame_register_bytes): Return bool.
939 (safe_frame_unwind_memory): Return bool.
940 (deprecated_frame_register_read): Return bool.
941 (frame_unwinder_is): Return bool.
942 * frame.c (struct frame_info) <prev_arch::p>: Change type to
943 bool.
944 <this_id::p>: Likewise.
945 <prev_p>: Likewise.
946 (frame_stash_add): Return bool.
947 (get_frame_id): Use bool.
948 (frame_id_build_special) Use bool.
949 (frame_id_build_unavailable_stack): Use bool.
950 (frame_id_build): Use bool.
951 (frame_id_p): Return bool, use true/false instead of 1/0.
952 (frame_id_artificial_p): Likewise.
953 (frame_id_eq): Likewise.
954 (frame_id_inner): Likewise.
955 (get_frame_func_if_available): Likewise.
956 (read_frame_register_unsigned): Likewise.
957 (deprecated_frame_register_read): Likewise.
958 (get_frame_register_bytes): Likewise.
959 (has_stack_frames): Likewise.
960 (inside_main_func): Likewise.
961 (inside_entry_func): Likewise.
962 (get_frame_pc_if_available): Likewise.
963 (get_frame_address_in_block_if_available): Likewise.
964 (frame_unwinder_is): Likewise.
965 (safe_frame_unwind_memory): Likewise.
966 (frame_unwind_arch): Likewise.
967
968 2020-08-04 Simon Marchi <simon.marchi@efficios.com>
969
970 * frame.c (frame_info) <prev_func> <p>: Rename to status, change
971 type to cached_copy_status.
972 (fprintf_frame): Adjust.
973 (get_frame_func_if_available): Adjust.
974 (frame_cleanup_after_sniffer): Adjust.
975
976 2020-08-04 Mark Wielaard <mark@klomp.org>
977
978 * MAINTAINERS (Write After Approval): Update email address.
979
980 2020-08-04 Simon Marchi <simon.marchi@polymtl.ca>
981
982 * gdbtypes.h (TYPE_DYN_PROP_ADDR): Remove, replace uses with
983 dynamic_prop::const_val.
984
985 2020-08-04 Simon Marchi <simon.marchi@polymtl.ca>
986
987 * gdbtypes.h (TYPE_DYN_PROP_KIND): Remove, replace uses with
988 dynamic_prop::kind.
989
990 2020-08-04 Simon Marchi <simon.marchi@polymtl.ca>
991
992 * gdbtypes.h (TYPE_DYN_PROP_BATON): Remove.
993
994 2020-08-04 Jose E. Marchesi <jose.marchesi@oracle.com>
995
996 * configure.tgt: Set gdb_sim for bpf-*-* targets.
997
998 2020-08-04 Weimin Pan <weimin.pan@oracle.com>
999 Jose E. Marchesi <jose.marchesi@oracle.com>
1000
1001 * configure.tgt: Add entry for bpf-*-*.
1002 * Makefile.in (ALL_TARGET_OBS): Add bpf-tdep.o
1003 (ALLDEPFILES): Add bpf-tdep.c.
1004 * bpf-tdep.c: New file.
1005 * MAINTAINERS: Add bpf target and maintainer.
1006 * NEWS: Mention the support for the new target.
1007
1008 2020-08-04 Tom de Vries <tdevries@suse.de>
1009
1010 PR symtab/23270
1011 * dwarf2/read.c (find_partial_die): Change internal error into Dwarf
1012 Error.
1013
1014 2020-08-03 John Baldwin <jhb@FreeBSD.org>
1015
1016 * syscalls/freebsd.xml: Regenerate.
1017
1018 2020-08-03 John Baldwin <jhb@FreeBSD.org>
1019
1020 * syscalls/update-freebsd.sh: Fix usage and year range.
1021
1022 2020-08-03 Tom de Vries <tdevries@suse.de>
1023
1024 PR symtab/26333
1025 * dwarf2/read.c (dwarf_decode_lines_1): Ignore
1026 DW_LNE_lo_user/DW_LNE_hi_user range.
1027
1028 2020-07-30 Simon Marchi <simon.marchi@polymtl.ca>
1029
1030 PR ada/26318
1031 * ada-lang.c (ada_modulus): Return 0 if property is not of const
1032 kind.
1033
1034 2020-07-30 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1035
1036 * breakpoint.c (set_breakpoint_condition): Do minor refactoring.
1037
1038 2020-07-30 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1039
1040 * breakpoint.c (set_breakpoint_condition): Update the condition
1041 expressions after checking that the input condition string parses
1042 successfully and does not contain junk at the end.
1043
1044 2020-07-30 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1045
1046 * breakpoint.c (set_breakpoint_condition): Update the
1047 condition string after parsing the new condition successfully.
1048
1049 2020-07-30 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1050
1051 * proc-api.c (_STRUCTURED_PROC): Don't define.
1052 * proc-events.c: Likewise.
1053 * proc-flags.c: Likewise.
1054 * proc-why.c: Likewise.
1055 * procfs.c: Likewise.
1056
1057 * Makefile.in (INTERNAL_CPPFLAGS): Add LARGEFILE_CPPFLAGS.
1058 * configure, config.in: Regenerate.
1059
1060 2020-07-30 Tom de Vries <tdevries@suse.de>
1061
1062 PR build/26320
1063 * ui-style.h (struct ui_file_style::color): Wrap m_value and
1064 m_red/m_green/m_blue in a union.
1065
1066 2020-07-29 Tom de Vries <tdevries@suse.de>
1067
1068 PR tdep/26280
1069 * s390-tdep.c (s390_displaced_step_fixup): Fix Wmaybe-uninitialized.
1070
1071 2020-07-28 Tom Tromey <tromey@adacore.com>
1072
1073 PR symtab/26270:
1074 * symtab.h (find_pc_partial_function_sym): Declare.
1075 * cli/cli-cmds.c (disassemble_command): Use
1076 find_pc_partial_function_sym. Check asm_demangle.
1077 * blockframe.c (cache_pc_function_sym): New global.
1078 (cache_pc_function_name): Remove.
1079 (clear_pc_function_cache): Update.
1080 (find_pc_partial_function_sym): New function, from
1081 find_pc_partial_function.
1082 (find_pc_partial_function): Rewrite using
1083 find_pc_partial_function_sym.
1084
1085 2020-07-28 Tom Tromey <tromey@adacore.com>
1086
1087 * cli/cli-cmds.c (_initialize_cli_cmds): Rearrange "disassemble"
1088 help. Add usage.
1089
1090 2020-07-28 Tom Tromey <tromey@adacore.com>
1091
1092 * dwarf2/expr.c (dwarf_expr_context::execute_stack_op)
1093 <DW_OP_GNU_variable_value>: Cast to address type.
1094
1095 2020-07-28 Kamil Rytarowski <n54@gmx.com>
1096
1097 * nbsd-nat.h (nbsd_nat_target::xfer_partial): New declaration.
1098 * nbsd-nat.c (nbsd_nat_target::xfer_partial): New function.
1099 * nbsd-tdep.c (nbsd_gdbarch_data_handle, struct nbsd_gdbarch_data)
1100 (init_nbsd_gdbarch_data, get_nbsd_gdbarch_data)
1101 (nbsd_get_siginfo_type): New.
1102 (nbsd_init_abi): Install gdbarch "get_siginfo_type" method.
1103 (_initialize_nbsd_tdep): New.
1104
1105 2020-07-28 H.J. Lu <hongjiu.lu@intel.com>
1106
1107 PR binutils/26301
1108 * configure: Regenerated.
1109
1110 2020-07-28 H.J. Lu <hongjiu.lu@intel.com>
1111
1112 PR binutils/26301
1113 * configure: Regenerated.
1114
1115 2020-07-28 Andrew Burgess <andrew.burgess@embecosm.com>
1116
1117 * python/py-frame.c: Remove 'user-regs.h' include.
1118 (frapy_read_register): Rewrite to make use of
1119 gdbpy_parse_register_id.
1120 * python/py-registers.c (gdbpy_parse_register_id): New function,
1121 moved here from python/py-unwind.c. Updated the return type, and
1122 also accepts register descriptor objects.
1123 * python/py-unwind.c: Remove 'user-regs.h' include.
1124 (pyuw_parse_register_id): Moved to python/py-registers.c.
1125 (unwind_infopy_add_saved_register): Update to use
1126 gdbpy_parse_register_id.
1127 (pending_framepy_read_register): Likewise.
1128 * python/python-internal.h (gdbpy_parse_register_id): Declare.
1129
1130 2020-07-28 Andrew Burgess <andrew.burgess@embecosm.com>
1131
1132 * python/py-registers.c: Add 'user-regs.h' include.
1133 (register_descriptor_iter_find): New function.
1134 (register_descriptor_iterator_object_methods): New static global
1135 methods array.
1136 (register_descriptor_iterator_object_type): Add pointer to methods
1137 array.
1138
1139 2020-07-27 John Baldwin <jhb@FreeBSD.org>
1140
1141 * fbsd-nat.h: Include <osreldate.h>. Define USE_SIGTRAP_SIGINFO
1142 for all architectures on FreeBSD 11.3 and later.
1143
1144 2020-07-27 Tom Tromey <tromey@adacore.com>
1145
1146 * gcore.h (load_corefile): Don't declare.
1147
1148 2020-07-27 Tom de Vries <tdevries@suse.de>
1149
1150 * configure.ac: Fix sys/sockets.h -> sys/socket.h typo.
1151 * config.in: Regenerate.
1152 * configure: Regenerate.
1153
1154 2020-07-26 Eli Zaretskii <eliz@gnu.org>
1155
1156 * configure.ac (AC_CHECK_HEADERS): Check for sys/socket.h and
1157 ws2tcpip.h. When checking whether socklen_t type is defined, use
1158 ws2tcpip.h if it is available and sys/socket.h isn't.
1159 * configure: Regenerate.
1160 * config.in: Regenerate.
1161
1162 2020-07-25 Andrew Burgess <andrew.burgess@embecosm.com>
1163
1164 PR fortran/23051
1165 PR fortran/26139
1166 * valops.c (value_ind): Pass address to
1167 readjust_indirect_value_type.
1168 * value.c (readjust_indirect_value_type): Make parameter
1169 non-const, and add extra address parameter. Resolve original type
1170 before using it.
1171 * value.h (readjust_indirect_value_type): Update function
1172 signature and comment.
1173
1174 2020-07-25 Tom de Vries <tdevries@suse.de>
1175
1176 PR symtab/26243
1177 * dwarf2/read.c (lnp_state_machine::record_line): Ignore zero line
1178 entries.
1179
1180 2020-07-24 Aaron Merey <amerey@redhat.com>
1181
1182 * Makefile.in: Replace LIBDEBUGINFOD with DEBUGINFOD_LIBS.
1183 * configure: Rebuild.
1184
1185 2020-07-23 Kevin Buettner <kevinb@redhat.com>
1186
1187 PR corefiles/26294
1188 * corelow.c (_initialize_corelow): Add period to help text
1189 for "maintenance print core-file-backed-mappings".
1190
1191 2020-07-23 Pedro Alves <pedro@palves.net>
1192
1193 * frame-unwind.c (frame_unwind_try_unwinder): On exception, don't
1194 touch THIS_CACHE/THIS_FRAME if the frame cache was cleared
1195 meanwhile.
1196 * frame.c (frame_cache_generation, get_frame_cache_generation):
1197 New.
1198 (reinit_frame_cache): Increment FRAME_CACHE_GENERATION.
1199 (get_prev_frame_if_no_cycle): On exception, don't touch
1200 PREV_FRAME/THIS_FRAME if the frame cache was cleared meanwhile.
1201 * frame.h (get_frame_cache_generation): Declare.
1202
1203 2020-07-23 Tom de Vries <tdevries@suse.de>
1204
1205 PR tui/26282
1206 * tui/tui-winsource.h (struct tui_source_windows::tui_source_windows):
1207 New default constructor.
1208
1209 2020-07-23 Andrew Burgess <andrew.burgess@embecosm.com>
1210
1211 * disasm.c (do_mixed_source_and_assembly_deprecated): Don't
1212 exclude non-statement entries.
1213
1214 2020-07-22 Kevin Buettner <kevinb@redhat.com>
1215
1216 * NEWS (New commands): Mention new command
1217 "maintenance print core-file-backed-mappings".
1218
1219 2020-07-22 Kevin Buettner <kevinb@redhat.com>
1220
1221 * corelow.c (gdbcmd.h): Include.
1222 (core_target::info_proc_mappings): New method.
1223 (get_current_core_target): New function.
1224 (maintenance_print_core_file_backed_mappings): New function.
1225 (_initialize_corelow): Add core-file-backed-mappings to
1226 "maint print" commands.
1227
1228 2020-07-22 Kevin Buettner <kevinb@redhat.com>
1229
1230 * linux-tdep.c (dump_note_entry_p): New function.
1231 (linux_dump_mapping_p_ftype): New typedef.
1232 (linux_find_memory_regions_full): Add new parameter,
1233 should_dump_mapping_p.
1234 (linux_find_memory_regions): Adjust call to
1235 linux_find_memory_regions_full.
1236 (linux_make_mappings_core_file_notes): Use dump_note_entry_p in
1237 call to linux_find_memory_regions_full.
1238
1239 2020-07-22 Kevin Buettner <kevinb@redhat.com>
1240
1241 * corelow.c (solist.h, unordered_map): Include.
1242 (class core_target): Add field m_core_file_mappings and
1243 method build_file_mappings.
1244 (core_target::core_target): Call build_file_mappings.
1245 (core_target::~core_target): Free memory associated with
1246 m_core_file_mappings.
1247 (core_target::build_file_mappings): New method.
1248 (core_target::xfer_partial): Use m_core_file_mappings
1249 for memory transfers.
1250 * linux-tdep.c (linux_read_core_file_mappings): New
1251 function.
1252 (linux_core_info_proc_mappings): Rewrite to use
1253 linux_read_core_file_mappings.
1254 (linux_init_abi): Register linux_read_core_file_mappings.
1255
1256 2020-07-22 Kevin Buettner <kevinb@redhat.com>
1257
1258 * arch-utils.c (default_read_core_file_mappings): New function.
1259 * arch-utils.c (default_read_core_file_mappings): Declare.
1260 * gdbarch.sh (read_core_file_mappings): New gdbarch method.
1261 * gdbarch.h, gdbarch.c: Regenerate.
1262
1263 2020-07-22 Kevin Buettner <kevinb@redhat.com>
1264
1265 PR corefiles/25631
1266 * corelow.c (core_target:xfer_partial): Revise
1267 TARGET_OBJECT_MEMORY case to consider non-SEC_HAS_CONTENTS
1268 case after first checking the stratum beneath the core
1269 target.
1270 (has_all_memory): Return true.
1271 * target.c (raw_memory_xfer_partial): Revise comment
1272 regarding use of has_all_memory.
1273
1274 2020-07-22 Kevin Buettner <kevinb@redhat.com>
1275
1276 * exec.h (section_table_xfer_memory): Revise declaration,
1277 replacing section name parameter with an optional callback
1278 predicate.
1279 * exec.c (section_table_xfer_memory): Likewise.
1280 * bfd-target.c, exec.c, target.c, corelow.c: Adjust all callers
1281 of section_table_xfer_memory.
1282
1283 2020-07-22 Tom Tromey <tromey@adacore.com>
1284
1285 * mi/mi-cmd-stack.c (list_args_or_locals): Use
1286 lookup_symbol_search_name.
1287
1288 2020-07-22 Andrew Burgess <andrew.burgess@embecosm.com>
1289
1290 * python/py-registers.c (gdbpy_register_object_data_init): Remove
1291 redundant local variable.
1292 (gdbpy_get_register_descriptor): Extract descriptor vector as a
1293 reference, not pointer, update code accordingly.
1294
1295 2020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
1296 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1297
1298 * objfiles.h (struct objfile) <skip_jit_symbol_lookup>: New field.
1299 * jit.c (jit_breakpoint_re_set_internal): Use the
1300 `skip_jit_symbol_lookup` field.
1301
1302 2020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
1303 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1304
1305 * jit.c (jit_read_descriptor): Define the descriptor address once,
1306 use twice.
1307 (jit_breakpoint_deleted): Move the declaration of the loop variable
1308 `iter` into the loop header.
1309 (jit_breakpoint_re_set_internal): Move the declaration of the local
1310 variable `objf_data` to the first point of definition.
1311 (jit_event_handler): Move the declaration of local variables
1312 `code_entry`, `entry_addr`, and `objf` to their first point of use.
1313 Rename `objf` to `jited`.
1314
1315 2020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
1316
1317 * jit.h (struct jiter_objfile_data) <jiter_objfile_data, objfile>:
1318 Remove.
1319 * jit.c (get_jiter_objfile_data): Update.
1320
1321 2020-07-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1322 Simon Marchi <simon.marchi@polymtl.ca>
1323
1324 * jit.c (struct jit_program_space_data): Remove.
1325 (jit_program_space_key): Remove.
1326 (jiter_objfile_data::~jiter_objfile_data): Remove program space
1327 stuff.
1328 (get_jit_program_space_data): Remove.
1329 (jit_breakpoint_deleted): Iterate on all of the program space's
1330 objfiles.
1331 (jit_inferior_init): Likewise.
1332 (jit_breakpoint_re_set_internal): Likewise. Also change return
1333 type to void.
1334 (jit_breakpoint_re_set): Pass current_program_space to
1335 jit_breakpoint_re_set_internal.
1336
1337 2020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
1338
1339 * jit.h (struct jiter_objfile_data) <cached_code_address,
1340 jit_breakpoint>: Move to here from ...
1341 * jit.c (jit_program_space_data): ... here.
1342 (jiter_objfile_data::~jiter_objfile_data): Update.
1343 (jit_breakpoint_deleted): Update.
1344 (jit_breakpoint_re_set_internal): Update.
1345
1346 2020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
1347
1348 * jit.c (jiter_objfile_data::~jiter_objfile_data): Remove some
1349 checks.
1350 (jit_read_descriptor): Remove NULL check.
1351 (jit_event_handler): Add an assertion.
1352
1353 2020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
1354
1355 * jit.h (struct jit_objfile_data): Split into...
1356 (struct jiter_objfile_data): ... this ...
1357 (struct jited_objfile_data): ... and this.
1358 * objfiles.h (struct objfile) <jit_data>: Remove.
1359 <jiter_data, jited_data>: New fields.
1360 * jit.c (jit_objfile_data::~jit_objfile_data): Rename to ...
1361 (jiter_objfile_data::~jiter_objfile_data): ... this.
1362 (get_jit_objfile_data): Rename to ...
1363 (get_jiter_objfile_data): ... this.
1364 (add_objfile_entry): Update.
1365 (jit_read_descriptor): Use get_jiter_objfile_data.
1366 (jit_find_objf_with_entry_addr): Use objfile's jited_data field.
1367 (jit_breakpoint_re_set_internal): Use get_jiter_objfile_data.
1368 (jit_inferior_exit_hook): Use objfile's jited_data field.
1369
1370 2020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
1371
1372 * jit.h: Forward-declare `struct minimal_symbol`.
1373 (struct jit_objfile_data): Migrate to here from jit.c; also add a
1374 constructor, destructor, and an objfile* field.
1375 * jit.c (jit_objfile_data): Remove.
1376 (struct jit_objfile_data): Migrate from here to jit.h.
1377 (jit_objfile_data::~jit_objfile_data): New destructor
1378 implementation with code moved from free_objfile_data.
1379 (free_objfile_data): Delete.
1380 (get_jit_objfile_data): Update to use the jit_data field of objfile.
1381 (jit_find_objf_with_entry_addr): Ditto.
1382 (jit_inferior_exit_hook): Ditto.
1383 (_initialize_jit): Remove the call to
1384 register_objfile_data_with_cleanup.
1385 * objfiles.h (struct objfile) <jit_data>: New field.
1386
1387 2020-07-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1388
1389 * jit.h: Forward-declare `struct objfile`.
1390 (jit_event_handler): Add a second parameter, the JITer objfile.
1391 * jit.c (jit_read_descriptor): Change the signature to take the
1392 JITer objfile as an argument instead of the jit_program_space_data.
1393 (jit_inferior_init): Update the call to jit_read_descriptor.
1394 (jit_event_handler): Use the new JITer objfile argument when calling
1395 jit_read_descriptor.
1396 * breakpoint.c (handle_jit_event): Update the call to
1397 jit_event_handler to pass the JITer objfile.
1398
1399 2020-07-21 John Baldwin <jhb@FreeBSD.org>
1400
1401 * gdbarch.c: Regenerate.
1402 * gdbarch.h: Regenerate.
1403 * gdbarch.sh (handle_segmentation_fault): Remove method.
1404 * infrun.c (handle_segmentation_fault): Remove.
1405 (print_signal_received_reason): Remove call to
1406 handle_segmentation_fault.
1407
1408 2020-07-21 John Baldwin <jhb@FreeBSD.org>
1409
1410 * sparc64-linux-tdep.c (sparc64_linux_handle_segmentation_fault):
1411 Rename to sparc64_linux_report_signal_info and add siggnal
1412 argument.
1413 (sparc64_linux_init_abi): Use sparc64_linux_report_signal_info
1414 instead of sparc64_linux_handle_segmentation_fault.
1415
1416 2020-07-21 John Baldwin <jhb@FreeBSD.org>
1417
1418 * amd64-linux-tdep.c (amd64_linux_init_abi_common): Use
1419 i386_linux_report_signal_info instead of
1420 i386_linux_handle_segmentation_fault.
1421 * i386-linux-tdep.c (i386_linux_handle_segmentation_fault): Rename
1422 to i386_linux_report_signal_info and add siggnal argument.
1423 (i386_linux_init_abi): Use i386_linux_report_signal_info instead
1424 of i386_linux_handle_segmentation_fault.
1425 * i386-linux-tdep.h (i386_linux_handle_segmentation_fault): Rename
1426 to i386_linux_report_signal_info and add siggnal argument.
1427
1428 2020-07-21 John Baldwin <jhb@FreeBSD.org>
1429
1430 * corelow.c (core_target_open): Invoke gdbarch report_signal_info
1431 hook if present.
1432
1433 2020-07-21 John Baldwin <jhb@FreeBSD.org>
1434
1435 * gdbarch.c: Regenerate.
1436 * gdbarch.h: Regenerate.
1437 * gdbarch.sh (report_signal_info): New method.
1438 * infrun.c (print_signal_received_reason): Invoke gdbarch
1439 report_signal_info hook if present.
1440
1441 2020-07-21 Andrew Burgess <andrew.burgess@embecosm.com>
1442
1443 * python/py-registers.c : Add 'unordered_map' include.
1444 (gdbpy_new_reggroup): Renamed to...
1445 (gdbpy_get_reggroup): ...this. Update to only create register
1446 group descriptors when needed.
1447 (gdbpy_reggroup_iter_next): Update.
1448
1449 2020-07-21 Andrew Burgess <andrew.burgess@embecosm.com>
1450
1451 * python/py-registers.c (gdbpy_register_object_data): New static
1452 global.
1453 (gdbpy_register_object_data_init): New function.
1454 (gdbpy_new_register_descriptor): Renamed to...
1455 (gdbpy_get_register_descriptor): ...this, and update to reuse
1456 existing register descriptors where possible.
1457 (gdbpy_register_descriptor_iter_next): Update.
1458 (gdbpy_initialize_registers): Register new gdbarch data.
1459
1460 2020-07-21 Simon Marchi <simon.marchi@efficios.com>
1461
1462 * linux-nat.c (stopped_pids): Make static.
1463
1464 2020-07-21 Simon Marchi <simon.marchi@polymtl.ca>
1465
1466 PR ada/26235
1467 * gdbtypes.c (ada_discrete_type_low_bound,
1468 ada_discrete_type_high_bound): Handle undefined bounds.
1469
1470 2020-07-21 Kamil Rytarowski <n54@gmx.com>
1471
1472 * nbsd-nat.h (nbsd_nat_target::supports_multi_process): New
1473 declaration.
1474 * nbsd-nat.c (nbsd_nat_target::supports_multi_process): New
1475 function.
1476
1477 2020-07-20 John Baldwin <jhb@FreeBSD.org>
1478
1479 * fbsd-tdep.c (fbsd_skip_solib_resolver): New function.
1480 (fbsd_init_abi): Install gdbarch "skip_solib_resolver" method.
1481 * fbsd-tdep.h (fbsd_skip_solib_resolver): New prototype.
1482 * mips-fbsd-tdep.c (mips_fbsd_skip_solib_resolver): New function.
1483 (mips_fbsd_init_abi): Install gdbarch "skip_solib_resolver"
1484 method.
1485
1486 2020-07-20 Ludovic Courtès <ludo@gnu.org>
1487
1488 * guile/scm-math.c (vlscm_integer_fits_p): Use 'uintmax_t'
1489 and 'intmax_t' instead of 'scm_t_uintmax' and 'scm_t_intmax',
1490 which are deprecated in Guile 3.0.
1491 * configure.ac (try_guile_versions): Add "guile-3.0".
1492 * configure (try_guile_versions): Regenerate.
1493 * NEWS: Update entry.
1494
1495 2020-07-20 Ludovic Courtès <ludo@gnu.org>
1496 Doug Evans <dje@google.com>
1497
1498 PR gdb/21104
1499 * guile/scm-ports.c (USING_GUILE_BEFORE_2_2): New macro.
1500 (ioscm_memory_port)[read_buf_size, write_buf_size]: Wrap in #if
1501 USING_GUILE_BEFORE_2_2.
1502 (stdio_port_desc, memory_port_desc) [!USING_GUILE_BEFORE_2_2]:
1503 Change type to 'scm_t_port_type *'.
1504 (natural_buffer_size) [!USING_GUILE_BEFORE_2_2]: New variable.
1505 (ioscm_open_port) [USING_GUILE_BEFORE_2_2]: Add 'stream'
1506 parameter and honor it. Update callers.
1507 (ioscm_open_port) [!USING_GUILE_BEFORE_2_2]: New function.
1508 (ioscm_read_from_port, ioscm_write) [!USING_GUILE_BEFORE_2_2]: New
1509 functions.
1510 (ioscm_fill_input, ioscm_input_waiting, ioscm_flush): Wrap in #if
1511 USING_GUILE_BEFORE_2_2.
1512 (ioscm_init_gdb_stdio_port) [!USING_GUILE_BEFORE_2_2]: Use
1513 'ioscm_read_from_port'. Call 'scm_set_port_read_wait_fd'.
1514 (ioscm_init_stdio_buffers) [!USING_GUILE_BEFORE_2_2]: New function.
1515 (gdbscm_stdio_port_p) [!USING_GUILE_BEFORE_2_2]: Use 'SCM_PORTP'
1516 and 'SCM_PORT_TYPE'.
1517 (gdbscm_memory_port_end_input, gdbscm_memory_port_seek)
1518 (ioscm_reinit_memory_port): Wrap in #if USING_GUILE_BEFORE_2_2.
1519 (gdbscm_memory_port_read, gdbscm_memory_port_write)
1520 (gdbscm_memory_port_seek, gdbscm_memory_port_close)
1521 [!USING_GUILE_BEFORE_2_2]: New functions.
1522 (gdbscm_memory_port_print): Remove use of 'SCM_PTOB_NAME'.
1523 (ioscm_init_memory_port_type) [!USING_GUILE_BEFORE_2_2]: Use
1524 'gdbscm_memory_port_read'.
1525 Wrap 'scm_set_port_end_input', 'scm_set_port_flush', and
1526 'scm_set_port_free' calls in #if USING_GUILE_BEFORE_2_2.
1527 (gdbscm_get_natural_buffer_sizes) [!USING_GUILE_BEFORE_2_2]: New
1528 function.
1529 (ioscm_init_memory_port): Remove.
1530 (ioscm_init_memory_port_stream): New function
1531 (ioscm_init_memory_port_buffers) [USING_GUILE_BEFORE_2_2]: New
1532 function.
1533 (gdbscm_memory_port_read_buffer_size) [!USING_GUILE_BEFORE_2_2]:
1534 Return scm_from_uint (0).
1535 (gdbscm_set_memory_port_read_buffer_size_x)
1536 [!USING_GUILE_BEFORE_2_2]: Call 'scm_setvbuf'.
1537 (gdbscm_memory_port_write_buffer_size) [!USING_GUILE_BEFORE_2_2]:
1538 Return scm_from_uint (0).
1539 (gdbscm_set_memory_port_write_buffer_size_x)
1540 [!USING_GUILE_BEFORE_2_2]: Call 'scm_setvbuf'.
1541 * configure.ac (try_guile_versions): Add "guile-2.2".
1542 * configure: Regenerate.
1543 * NEWS: Add entry.
1544
1545 2020-07-18 Tom Tromey <tom@tromey.com>
1546
1547 * linux-nat.c (linux_multi_process): Remove.
1548 (linux_nat_target::supports_multi_process): Return true.
1549
1550 2020-07-17 Andrew Burgess <andrew.burgess@embecosm.com>
1551
1552 * arch/riscv.c (riscv_tdesc_cache): Change map type.
1553 (riscv_lookup_target_description): Return pointer out of
1554 unique_ptr.
1555 * target-descriptions.c (allocate_target_description): Add
1556 comment.
1557 (target_desc_deleter::operator()): Likewise.
1558 * target-descriptions.h (struct target_desc_deleter): Moved to
1559 gdbsupport/tdesc.h.
1560 (target_desc_up): Likewise.
1561
1562 2020-07-17 Tom Tromey <tromey@adacore.com>
1563
1564 * linux-nat.c (linux_nat_target::supports_non_stop)
1565 (linux_nat_target::always_non_stop_p): Use "true".
1566 (linux_nat_target::supports_disable_randomization): Use "true" and
1567 "false".
1568
1569 2020-07-16 Caroline Tice <cmtice@google.com>
1570
1571 * dwarf2/read.c (RNGLIST_HEADER_SIZE32) New constant definition.
1572 (RNGLIST_HEADER_SIZE64): New constant definition.
1573 (struct dwop_section_names): Add rnglists_dwo.
1574 (dwop_section_names): Add .debug_rnglists.dwo, .zdebug_rnglists.dwo.
1575 (struct loclist_header): Rename to 'loclists_rnglists_header'.
1576 (struct dwo_sections): Add rnglists field.
1577 (read_attribut_reprocess): Add tag parameter.
1578 (dwarf2_ranges_read): Add tag parameter & remove forward function decl.
1579 (cu_debug_rnglists_section): New function (decl & definition).
1580 (dwarf2_locate_dwo_sections): Add code to read rnglists_dwo section.
1581 (dwarf2_rnglists_process): Add a dwarf_tag parameter, for the kind of
1582 die whose range is being checked; get rnglist section from
1583 cu_debug_rnglists_section, to get from either objfile or dwo file as
1584 appropriate. Add cases for DW_RLE_base_addressx,
1585 DW_RLE_startx_length, DW_RLE_startx_endx. Also, update to only add
1586 the base address to DW_RLE_offset_pairs (not to all ranges), moving
1587 test inside if-condition and updating complaint message.
1588 (dwarf2_ranges_process): Add dwarf tag parameter and pass it to
1589 dwarf2_rnglists_process.
1590 (dwarf2_ranges_read): Add dwarf tag parameter and pass it to
1591 dwarf2_ranges_process.
1592 (dwarf2_get_pc_bounds): Check for DW_FORM_rnglistx when setting
1593 need_ranges_base and update comment appropriately. Also pass die tag
1594 to dwarf2_ranges_read.
1595 (dwarf2_record_block_ranges): Check for DW_FORM_rnglistx when setting
1596 need_ranges_base and update comment appropriately. Also pass die tag
1597 to dwarf2_ranges_process.
1598 (read_full_die_1): Add code to read DW_AT_rnglists_base and assign to
1599 cu->ranges_base. Also pass die tag to read_attribute_reprocess.
1600 (partial_die_info::read): Check for DW_FORM_rnglistx when setting
1601 need_ranges_base and update comment appropriately. Also pass die tag
1602 to read_attribute_reprocess and dwarf2_ranges_read.
1603 (read_loclist_header): Rename function to read_loclists_rnglists_header,
1604 and update function comment appropriately.
1605 (read_loclist_index): Call read_loclists_rnglists_header instead of
1606 read_loclist_header.
1607 (read_rnglist_index): New function.
1608 (read_attribute_reprocess): Add tag parameter. Add code for
1609 DW_FORM_rnglistx, passing tag to read_rnglist_index.
1610 (read_attribute_value): Mark DW_FORM_rnglistx with need_reprocess.
1611
1612 2020-07-15 Andrew Burgess <andrew.burgess@embecosm.com>
1613
1614 * f-typeprint.c (f_type_print_base): Allow for dynamic types not
1615 being resolved.
1616
1617 2020-07-14 Andrew Burgess <andrew.burgess@embecosm.com>
1618
1619 * arch-utils.c (show_architecture): Update formatting of messages.
1620
1621 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
1622
1623 * gdbtypes.h (struct type) <bounds>: Handle array and string
1624 types.
1625 * ada-lang.c (assign_aggregate): Use type::bounds on
1626 array/string type.
1627 * c-typeprint.c (c_type_print_varspec_suffix): Likewise.
1628 * c-varobj.c (c_number_of_children): Likewise.
1629 (c_describe_child): Likewise.
1630 * eval.c (evaluate_subexp_for_sizeof): Likewise.
1631 * f-typeprint.c (f_type_print_varspec_suffix): Likewise.
1632 (f_type_print_base): Likewise.
1633 * f-valprint.c (f77_array_offset_tbl): Likewise.
1634 (f77_get_upperbound): Likewise.
1635 (f77_print_array_1): Likewise.
1636 * guile/scm-type.c (gdbscm_type_range): Likewise.
1637 * m2-typeprint.c (m2_array): Likewise.
1638 (m2_is_long_set_of_type): Likewise.
1639 * m2-valprint.c (get_long_set_bounds): Likewise.
1640 * p-typeprint.c (pascal_type_print_varspec_prefix): Likewise.
1641 * python/py-type.c (typy_range): Likewise.
1642 * rust-lang.c (rust_internal_print_type): Likewise.
1643 * type-stack.c (type_stack::follow_types): Likewise.
1644 * valarith.c (value_subscripted_rvalue): Likewise.
1645 * valops.c (value_cast): Likewise.
1646
1647 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
1648
1649 * gdbtypes.c (TYPE_ARRAY_BIT_STRIDE): Remove. Update all
1650 callers to use the equivalent accessor methods.
1651
1652 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
1653
1654 * gdbtypes.h (struct range_bounds) <bit_stride>: New method.
1655 (struct type) <bit_stride>: New method.
1656 (TYPE_BIT_STRIDE): Remove.
1657 * gdbtypes.c (update_static_array_size): Use type::bit_stride.
1658
1659 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
1660
1661 * gdbtypes.h (TYPE_ARRAY_LOWER_BOUND_VALUE,
1662 TYPE_ARRAY_UPPER_BOUND_VALUE): Remove. Update all
1663 callers to use the equivalent accessor methods instead.
1664
1665 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
1666
1667 * gdbtypes.h (TYPE_ARRAY_UPPER_BOUND_IS_UNDEFINED,
1668 TYPE_ARRAY_LOWER_BOUND_IS_UNDEFINED): Remove. Update all
1669 callers to use the equivalent accessor methods instead.
1670
1671 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
1672
1673 * gdbtypes.h (TYPE_LOW_BOUND_KIND,
1674 TYPE_HIGH_BOUND_KIND): Remove. Update all callers
1675 to use dynamic_prop::kind.
1676
1677 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
1678
1679 * gdbtypes.h (TYPE_LOW_BOUND_UNDEFINED,
1680 TYPE_HIGH_BOUND_UNDEFINED): Remove. Update all callers
1681 to get the bound property's kind and check against
1682 PROP_UNDEFINED.
1683
1684 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
1685
1686 * gdbtypes.h (TYPE_LOW_BOUND, TYPE_HIGH_BOUND): Remove. Update
1687 all callers to use type::range_bounds followed by
1688 dynamic_prop::{low,high}.
1689
1690 2020-07-12 Simon Marchi <simon.marchi@polymtl.ca>
1691
1692 * gdbtypes.h (struct dynamic_prop) <kind, set_undefined,
1693 const_val, set_const_val, baton, set_locexpr, set_loclist,
1694 set_addr_offset, variant_parts, set_variant_parts,
1695 original_type, set_original_type>: New methods.
1696 <kind>: Rename to...
1697 <m_kind>: ... this. Update all users to use the new methods
1698 instead.
1699 <data>: Rename to...
1700 <m_data>: ... this. Update all users to use the new methods
1701 instead.
1702
1703 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
1704
1705 * gdbtypes.c (get_discrete_bounds): Return failure if
1706 the range type's bounds are not both defined and constant
1707 values.
1708 (get_array_bounds): Update comment. Remove undefined bound check.
1709
1710 2020-07-12 Simon Marchi <simon.marchi@polymtl.ca>
1711
1712 * gdbtypes.h (TYPE_RANGE_DATA): Remove. Update callers to use
1713 the type::bounds method directly.
1714
1715 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
1716
1717 * gdbtypes.h (struct type) <bounds, set_bounds>: New methods.
1718 (TYPE_RANGE_DATA): Use type::bounds. Change all uses that
1719 are used to set the range type's bounds to use set_bounds.
1720
1721 2020-07-11 Philippe Waroquiers <philippe.waroquiers@skynet.be>
1722
1723 * exec.c (_initialize_exec): Update exec-file-mismatch help.
1724
1725 2020-07-10 Pedro Alves <pedro@palves.net>
1726
1727 * gdbthread.h (inferior_ref): Define.
1728 (scoped_restore_current_thread) <m_thread>: Now a thread_info_ref.
1729 (scoped_restore_current_thread) <m_inf>: Now an inferior_ref.
1730 * thread.c
1731 (scoped_restore_current_thread::restore):
1732 Adjust to gdb::ref_ptr.
1733 (scoped_restore_current_thread::~scoped_restore_current_thread):
1734 Remove manual decref handling.
1735 (scoped_restore_current_thread::scoped_restore_current_thread):
1736 Adjust to use
1737 inferior_ref::new_reference/thread_info_ref::new_reference.
1738 Incref the thread before calling get_frame_id instead of after.
1739 Let TARGET_CLOSE_ERROR propagate.
1740
1741 2020-07-10 Pedro Alves <pedro@palves.net>
1742
1743 * frame-tailcall.c (dwarf2_tailcall_sniffer_first): Only swallow
1744 NO_ENTRY_VALUE_ERROR / MEMORY_ERROR / OPTIMIZED_OUT_ERROR /
1745 NOT_AVAILABLE_ERROR.
1746 * value.c (value_optimized_out): Only swallow MEMORY_ERROR /
1747 OPTIMIZED_OUT_ERROR / NOT_AVAILABLE_ERROR.
1748
1749 2020-07-10 Simon Marchi <simon.marchi@polymtl.ca>
1750 Pedro Alves <pedro@palves.net>
1751
1752 PR gdb/26199
1753 * infrun.c (threads_are_resumed_pending_p): Delete.
1754 (do_target_wait): Remove threads_are_executing and
1755 threads_are_resumed_pending_p checks from the inferior_matches
1756 lambda. Update comments.
1757
1758 2020-07-10 Pedro Alves <pedro@palves.net>
1759
1760 PR gdb/26199
1761 * infrun.c (handle_no_resumed): Transfer terminal to inferior with
1762 executing threads.
1763
1764 2020-07-10 Pedro Alves <pedro@palves.net>
1765
1766 PR gdb/26199
1767 * infrun.c (handle_no_resumed): Handle multiple targets.
1768
1769 2020-07-10 Pedro Alves <pedro@palves.net>
1770
1771 PR gdb/26199
1772 * infrun.c (prepare_to_wait): Check target_can_async_p instead of
1773 target_is_async_p.
1774
1775 2020-07-10 Pedro Alves <pedro@palves.net>
1776
1777 PR gdb/26199
1778 * target.c (target_pass_ctrlc): Look at the inferior's non-exited
1779 threads, not all threads.
1780
1781 2020-07-10 Pedro Alves <pedro@palves.net>
1782
1783 PR gdb/26199
1784 * remote.c (remote_target::open_1): Pass remote target pointer as
1785 data to create_async_event_handler.
1786 (remote_async_inferior_event_handler): Mark async event handler
1787 before returning if the remote target still has either pending
1788 events or unacknowledged notifications.
1789
1790 2020-07-10 John Baldwin <jhb@FreeBSD.org>
1791
1792 * fbsd-nat.h (fbsd_nat_target::supports_multi_process): New
1793 declaration.
1794 * fbsd-nat.c (fbsd_nat_target::supports_multi_process): New
1795 function.
1796
1797 2020-07-09 John Baldwin <jhb@FreeBSD.org>
1798
1799 * inf-ptrace.c (inf_ptrace_target::wait): Don't compare against
1800 inferior_ptid.
1801
1802 2020-07-09 John Baldwin <jhb@FreeBSD.org>
1803
1804 * fbsd-tdep.c (fbsd_print_auxv_entry): Handle AT_FREEBSD_ARGC,
1805 AT_FREEBSD_ARGV, AT_FREEBSD_ENVC, AT_FREEBSD_ENVV,
1806 AT_FREEBSD_PS_STRINGS.
1807
1808 2020-07-08 Hannes Domani <ssbssa@yahoo.de>
1809
1810 * auto-load.c (auto_load_objfile_script_1): Convert drive part
1811 of debugfile path on Windows.
1812
1813 2020-07-08 John Baldwin <jhb@FreeBSD.org>
1814
1815 * fbsd-nat.c (fbsd_nat_target::find_memory_regions): Rename 'obfd'
1816 argument to 'data'.
1817
1818 2020-07-08 Tom Tromey <tromey@adacore.com>
1819
1820 * ada-lang.c (ada_exception_message_1): Use read_memory.
1821
1822 2020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
1823
1824 PR python/22748
1825 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first): Remove
1826 special handling for inline frames.
1827 * findvar.c (value_of_register_lazy): Skip inline frames when
1828 creating lazy register values.
1829 * frame.c (frame_id_computed_p): Delete definition.
1830 * frame.h (frame_id_computed_p): Delete declaration.
1831
1832 2020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
1833
1834 * NEWS: Mention additions to Python API.
1835 * python/py-arch.c (archpy_register_groups): New function.
1836 (arch_object_methods): Add 'register_groups' method.
1837 * python/py-registers.c (reggroup_iterator_object): New struct.
1838 (reggroup_object): New struct.
1839 (gdbpy_new_reggroup): New function.
1840 (gdbpy_reggroup_to_string): New function.
1841 (gdbpy_reggroup_name): New function.
1842 (gdbpy_reggroup_iter): New function.
1843 (gdbpy_reggroup_iter_next): New function.
1844 (gdbpy_new_reggroup_iterator): New function
1845 (gdbpy_initialize_registers): Register new types.
1846 (reggroup_iterator_object_type): Define new Python type.
1847 (gdbpy_reggroup_getset): New static global.
1848 (reggroup_object_type): Define new Python type.
1849 * python/python-internal.h
1850
1851 2020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
1852
1853 * Makefile.in (SUBDIR_PYTHON_SRCS): Add py-registers.c
1854 * python/py-arch.c (archpy_registers): New function.
1855 (arch_object_methods): Add 'registers' method.
1856 * python/py-registers.c: New file.
1857 * python/python-internal.h
1858 (gdbpy_new_register_descriptor_iterator): Declare.
1859 (gdbpy_initialize_registers): Declare.
1860 * python/python.c (do_start_initialization): Call
1861 gdbpy_initialize_registers.
1862 * NEWS: Mention additions to the Python API.
1863
1864 2020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
1865
1866 * NEWS: Mention new Python API method.
1867 * python/py-unwind.c (pending_framepy_architecture): New function.
1868 (pending_frame_object_methods): Add architecture method.
1869
1870 2020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
1871
1872 * gdbarch.c: Regenerate.
1873 * gdbarch.h: Regenerate.
1874 * gdbarch.sh (deprecated_set_gdbarch_data): Delete.
1875 (gdbarch_data): Use internal_error for the case where
1876 deprecated_set_gdbarch_data was originally needed.
1877 * ia64-libunwind-tdep.c (libunwind_descr_init): Update parameters,
1878 and use passed in obstack.
1879 (libunwind_frame_set_descr): Should no longer get back NULL from
1880 gdbarch_data.
1881 (_initialize_libunwind_frame): Register as a pre-init gdbarch data
1882 type.
1883 * user-regs.c (user_regs_init): Update parameters, and use passed
1884 in obstack.
1885 (user_reg_add): Should no longer get back NULL from gdbarch_data.
1886 (_initialize_user_regs): Register as a pre-init gdbarch data type.
1887
1888 2020-07-06 Tom de Vries <tdevries@suse.de>
1889
1890 * buildsym.c (buildsym_compunit::end_symtab_with_blockvector): Handle
1891 End-Of-Sequence in lte_is_less_than.
1892 * symtab.c (find_pc_sect_line): Revert change from commit 3d92a3e313
1893 "gdb: Don't reorder line table entries too much when sorting".
1894
1895 2020-07-06 Tom de Vries <tdevries@suse.de>
1896
1897 PR tui/26205
1898 * tui/tui-win.c (tui_partial_win_by_name): Don't test for NULL name.
1899
1900 2020-07-05 Tom de Vries <tdevries@suse.de>
1901
1902 PR build/26187
1903 * inferior.h (struct infcall_suspend_state_deleter): If available, use
1904 std::uncaught_exceptions instead of deprecated
1905 std::uncaught_exception.
1906
1907 2020-07-02 Simon Marchi <simon.marchi@polymtl.ca>
1908
1909 * macroexp.h (macro_stringify): Return
1910 gdb::unique_xmalloc_ptr<char>.
1911 * macroexp.c (macro_stringify): Likewise.
1912 * macrotab.c (fixup_definition): Update.
1913
1914 2020-07-02 Simon Marchi <simon.marchi@polymtl.ca>
1915
1916 * c-exp.y (scan_macro_expansion): Don't free `expansion`.
1917 (lex_one_token): Update.
1918 * macroexp.c (struct macro_buffer) <release>: Return
1919 gdb::unique_xmalloc_ptr<char>.
1920 (macro_stringify): Update.
1921 (macro_expand): Update.
1922 (macro_expand_next): Return gdb::unique_xmalloc_ptr<char>.
1923 * macroexp.h (macro_expand_next): Likewise.
1924
1925 2020-07-02 Simon Marchi <simon.marchi@efficios.com>
1926
1927 * macroexp.h (macro_lookup_ftype): Remove.
1928 (macro_expand, macro_expand_once, macro_expand_next): Remove
1929 lookup function parameters, add scope parameter.
1930 * macroexp.c (scan, substitute_args, expand, maybe_expand,
1931 macro_expand, macro_expand_once, macro_expand_next): Likewise.
1932 * macroscope.h (standard_macro_lookup): Change parameter type
1933 to macro_scope.
1934 * macroscope.c (standard_macro_lookup): Likewise.
1935 * c-exp.y (lex_one_token): Update.
1936 * macrocmd.c (macro_expand_command): Likewise.
1937 (macro_expand_once_command): Likewise.
1938
1939 2020-07-02 Simon Marchi <simon.marchi@polymtl.ca>
1940
1941 * inf-loop.c (inferior_event_handler): Remove client_data param.
1942 * inf-loop.h (inferior_event_handler): Likewise.
1943 * infcmd.c (step_1): Adjust.
1944 * infrun.c (proceed): Adjust.
1945 (fetch_inferior_event): Remove client_data param.
1946 (infrun_async_inferior_event_handler): Adjust.
1947 * infrun.h (fetch_inferior_event): Remove `void *` param.
1948 * linux-nat.c (handle_target_event): Adjust.
1949 * record-btrace.c (record_btrace_handle_async_inferior_event):
1950 Adjust.
1951 * record-full.c (record_full_async_inferior_event_handler):
1952 Adjust.
1953 * remote.c (remote_async_inferior_event_handler): Adjust.
1954
1955 2020-07-01 Tom Tromey <tom@tromey.com>
1956
1957 * tui/tui-data.h (struct tui_win_info) <name>: Now pure virtual.
1958 * tui/tui-stack.h (struct tui_locator_window) <name>: New method.
1959
1960 2020-07-01 Tom Tromey <tom@tromey.com>
1961
1962 * tui/tui-wingeneral.c (tui_win_info::refresh_window): Move from
1963 tui_gen_win_info.
1964 (tui_win_info::make_window): Merge with
1965 tui_gen_win_info::make_window.
1966 (tui_win_info::make_visible): Move from tui_gen_win_info.
1967 * tui/tui-win.c (tui_win_info::max_width): Move from
1968 tui_gen_win_info.
1969 * tui/tui-layout.h (class tui_layout_window) <m_window>: Change
1970 type.
1971 <window_factory>: Likewise.
1972 * tui/tui-layout.c (tui_win_info::resize): Move from
1973 tui_gen_win_info.
1974 (make_standard_window): Change return type.
1975 (get_locator_window, tui_get_window_by_name): Likewise.
1976 (tui_layout_window::apply): Remove a cast.
1977 * tui/tui-data.h (MIN_WIN_HEIGHT): Move earlier.
1978 (struct tui_win_info): Merge with tui_gen_win_info.
1979 (struct tui_gen_win_info): Remove.
1980
1981 2020-07-01 Tom Tromey <tom@tromey.com>
1982
1983 * tui/tui-stack.h (struct tui_locator_window): Derive from
1984 tui_win_info.
1985 <do_scroll_horizontal, do_scroll_vertical>: New methods.
1986 <can_box>: New method.
1987
1988 2020-07-01 Tom Tromey <tom@tromey.com>
1989
1990 * tui/tui-stack.h (struct tui_locator_window): Remove body.
1991
1992 2020-07-01 Tom Tromey <tom@tromey.com>
1993
1994 * tui/tui-regs.c (tui_data_window::display_registers_from)
1995 (tui_data_window::display_registers_from)
1996 (tui_data_window::first_data_item_displayed)
1997 (tui_data_window::delete_data_content_windows): Update.
1998 (tui_data_window::refresh_window, tui_data_window::no_refresh):
1999 Remove.
2000 (tui_data_window::check_register_values): Update.
2001 (tui_data_item_window::rerender): Add parameters. Update.
2002 (tui_data_item_window::refresh_window): Remove.
2003 * tui/tui-data.h (struct tui_gen_win_info) <no_refresh>: No longer
2004 virtual.
2005 * tui/tui-regs.h (struct tui_data_item_window): Don't derive from
2006 tui_gen_win_info.
2007 <refresh_window, max_height, min_height>: Remove.
2008 <rerender>: Add parameters.
2009 <x, y, visible>: New members.
2010 (struct tui_data_window) <refresh_window, no_refresh>: Remove.
2011 <m_item_width>: New member.
2012
2013 2020-07-01 Tom Tromey <tom@tromey.com>
2014
2015 * tui/tui-regs.c (tui_data_window::show_register_group)
2016 (tui_data_window::check_register_values): Update.
2017 * tui/tui-regs.h (struct tui_data_item_window) <regno>: Rename
2018 from item_no.
2019
2020 2020-07-01 Tom Tromey <tom@tromey.com>
2021
2022 * tui/tui-regs.c (tui_data_window::show_register_group): Remove
2023 useless "if".
2024
2025 2020-07-01 Tom Tromey <tom@tromey.com>
2026
2027 * tui/tui-regs.c (tui_data_window::show_register_group): Update.
2028 * tui/tui-regs.h (struct tui_data_item_window) <name>: Remove.
2029
2030 2020-07-01 Tom Tromey <tom@tromey.com>
2031
2032 * tui/tui-stack.c (SINGLE_KEY): Move from tui-data.h
2033 * tui/tui-winsource.h (enum tui_line_or_address_kind)
2034 (struct tui_line_or_address): Move from tui-data.h.
2035 * tui/tui-win.c (DEFAULT_TAB_LEN): Move from tui-data.h.
2036 * tui/tui-data.h (DEFAULT_TAB_LEN): Move to tui-win.c.
2037 (tui_cmd_window, tui_source_window_base, tui_source_window)
2038 (tui_disasm_window): Don't declare.
2039 (enum tui_line_or_address_kind, struct tui_line_or_address): Move
2040 to tui-winsource.h.
2041 (SINGLE_KEY): Move to tui-stack.c.
2042
2043 2020-07-01 Tom Tromey <tom@tromey.com>
2044
2045 * tui/tui-regs.h (struct tui_data_item_window) <content>: Now a
2046 std::string.
2047 * tui/tui-regs.c (class tab_expansion_file): New.
2048 (tab_expansion_file::write): New method.
2049 (tui_register_format): Change return type. Use
2050 tab_expansion_file.
2051 (tui_get_register, tui_data_window::display_registers_from)
2052 (tui_data_item_window::rerender): Update.
2053 * tui/tui-io.h (tui_expand_tabs): Don't declare.
2054 * tui/tui-io.c (tui_expand_tabs): Remove.
2055
2056 2020-07-01 Tom Tromey <tom@tromey.com>
2057
2058 * tui/tui-regs.c (tui_reggroup_completer): Use complete_on_enum.
2059
2060 2020-07-01 Fangrui Song <maskray@google.com>
2061
2062 * dwarf2/read.c (lnp_state_machine::check_line_address): Test -1.
2063
2064 2020-07-01 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
2065
2066 * dwarf2/read.c (set_die_type): Removed conditions to restrict
2067 forms for DW_AT_associated and DW_AT_allocated attributes,
2068 which is already checked in function attr_to_dynamic_prop.
2069
2070 2020-06-30 Tom Tromey <tromey@adacore.com>
2071
2072 * dwarf2/read.c (quirk_rust_enum): Correctly call
2073 alloc_rust_variant for default-less enum.
2074
2075 2020-06-30 Tom Tromey <tromey@adacore.com>
2076
2077 PR build/26183:
2078 * ada-lang.c (ada_lookup_name_info::ada_lookup_name_info): Use
2079 gdb::to_string.
2080
2081 2020-06-29 Simon Marchi <simon.marchi@efficios.com>
2082
2083 * gdbarch.sh (displaced_step_copy_insn): Update doc.
2084 * gdbarch.h: Re-generate.
2085
2086 2020-06-28 Tom Tromey <tom@tromey.com>
2087
2088 * command.h (cmd_types): Remove.
2089 (cmd_type): Don't declare.
2090 * cli/cli-decode.h (enum cmd_types): Uncomment. No longer a
2091 typedef.
2092 * cli/cli-cmds.c (setting_cmd): Use cmd->type directly.
2093 * cli/cli-decode.c (cmd_type): Remove.
2094
2095 2020-06-27 Pedro Alves <palves@redhat.com>
2096
2097 * fork-child.c (prefork_hook): Adjust.
2098 * infcmd.c (set_inferior_io_terminal, get_inferior_io_terminal):
2099 Delete.
2100 (set_inferior_tty_command, show_inferior_tty_command): Adjust.
2101 * inferior.c (inferior::set_tty, inferior::tty): New methods.
2102 * inferior.h (set_inferior_io_terminal, get_inferior_io_terminal):
2103 Remove declarations.
2104 (struct inferior) <set_tty, tty>: New methods.
2105 (struct inferior) <terminal>: Rename to ...
2106 (struct inferior) <m_terminal>: ... this and make private.
2107 * main.c (captured_main_1): Adjust.
2108 * mi/mi-cmd-env.c (mi_cmd_inferior_tty_set): Adjust.
2109 (mi_cmd_inferior_tty_show): Adjust.
2110 * nto-procfs.c (nto_procfs_target::create_inferior): Adjust.
2111 * windows-nat.c (windows_nat_target::create_inferior): Adjust.
2112
2113 2020-06-26 Nick Alcock <nick.alcock@oracle.com>
2114
2115 * configure.ac: Add --enable-libctf: handle --disable-static
2116 properly.
2117 * acinclude.m4: sinclude ../config/enable.m4.
2118 * Makefile.in (aclocal_m4_deps): Adjust accordingly.
2119 (LIBCTF): Substitute in.
2120 (CTF_DEPS): New, likewise.
2121 (CLIBS): libctf needs symbols from libbfd: move earlier.
2122 (CDEPS): Use CTF_DEPS, not LIBCTF, now LIBCTF can include rpath
2123 flags.
2124 * ctfread.c: Surround in ENABLE_LIBCTF.
2125 (elfctf_build_psymtabs) [!ENABLE_LIBCTF]: New stub.
2126 * configure: Regenerate.
2127 * config.in: Likewise.
2128
2129 2020-06-25 Simon Marchi <simon.marchi@efficios.com>
2130
2131 * infcmd.c (set_inferior_io_terminal): Use make_unique_xstrdup.
2132
2133 2020-06-25 Simon Marchi <simon.marchi@efficios.com>
2134
2135 * inferior.h (struct inferior) <terminal>: Change type to
2136 gdb::unique_xmalloc_ptr<char>.
2137 * inferior.c (inferior::~inferior): Don't free inf->terminal.
2138 * infcmd.c (set_inferior_io_terminal): Don't free terminal
2139 field, adjust to unique pointer.
2140 (get_inferior_io_terminal): Adjust to unique pointer.
2141
2142 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
2143
2144 * riscv-tdep.c (riscv_print_registers_info): Loop over all
2145 registers, not just the known core set of registers.
2146
2147 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
2148
2149 * riscv-tdep.c (riscv_register_name): Return NULL for duplicate
2150 fflags, frm, and fcsr registers.
2151 (riscv_register_reggroup_p): Remove unknown CSRs from save and
2152 restore groups.
2153 (riscv_tdesc_unknown_reg): New function.
2154 (riscv_gdbarch_init): Pass riscv_tdesc_unknown_reg to
2155 tdesc_use_registers.
2156 * riscv-tdep.h (struct gdbarch_tdep): Add
2157 unknown_csrs_first_regnum, unknown_csrs_count,
2158 duplicate_fflags_regnum, duplicate_frm_regnum, and
2159 duplicate_fcsr_regnum fields.
2160
2161 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
2162
2163 * target-descriptions.c (tdesc_use_registers): Add new parameter a
2164 callback, use the callback (when not null) to help number unknown
2165 registers.
2166 * target-descriptions.h (tdesc_unknown_register_ftype): New typedef.
2167 (tdesc_use_registers): Add extra parameter to declaration.
2168
2169 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
2170
2171 * riscv-tdep.c (value_of_riscv_user_reg): Moved to here from later
2172 in the file.
2173 (class riscv_pending_register_alias): Likewise.
2174 (riscv_register_feature::register_info): Change 'required_p' field
2175 to 'required', and change its type. Add 'check' member function.
2176 (riscv_register_feature::register_info::check): Define new member
2177 function.
2178 (riscv_xreg_feature): Change initialisation of 'required' field.
2179 (riscv_freg_feature): Likewise.
2180 (riscv_virtual_feature): Likewise.
2181 (riscv_csr_feature): Likewise.
2182 (riscv_check_tdesc_feature): Take extra parameter, the csr
2183 tdesc_feature, rewrite the function to use the new
2184 riscv_register_feature::register_info::check function.
2185 (riscv_gdbarch_init): Pass the csr tdesc_feature where needed.
2186
2187 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
2188
2189 * features/Makefile: Remove all references to the deleted files
2190 below.
2191 * features/riscv/32bit-csr.c: Deleted.
2192 * features/riscv/32bit-csr.xml: Deleted.
2193 * features/riscv/64bit-csr.c: Deleted.
2194 * features/riscv/64bit-csr.xml: Deleted.
2195 * features/riscv/rebuild-csr-xml.sh: Deleted.
2196
2197 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
2198
2199 * riscv-tdep.c (struct riscv_register_feature::register_info): Fix
2200 whitespace error for declaration of names member variable.
2201 (struct riscv_register_feature): Add new prefer_first_name member
2202 variable, and fix whitespace error in declaration of registers.
2203 (riscv_xreg_feature): Initialize prefer_first_name field.
2204 (riscv_freg_feature): Likewise.
2205 (riscv_virtual_feature): Likewise.
2206 (riscv_csr_feature): Likewise.
2207 (riscv_register_name): Expand on comments. Remove register name
2208 modifications for CSR and virtual registers.
2209
2210 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
2211
2212 * riscv-tdep.c (struct riscv_register_feature): Fix whitespace
2213 errors.
2214
2215 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
2216
2217 * riscv-tdep.c (riscv_create_csr_aliases): Handle csr aliases from
2218 riscv-opc.h.
2219 (class riscv_pending_register_alias): New class.
2220 (riscv_check_tdesc_feature): Take vector of pending aliases and
2221 populate it as appropriate.
2222 (riscv_setup_register_aliases): Delete.
2223 (riscv_gdbarch_init): Create vector of pending aliases and pass it
2224 to riscv_check_tdesc_feature in all cases. Use the vector to
2225 create the register aliases.
2226
2227 2020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2228
2229 * sol2-tdep.c (sol2_static_transform_name): Remove.
2230 (sol2_init_abi): Don't register it.
2231 * gdbarch.sh (static_transform_name): Remove.
2232 * gdbarch.c, gdbarch.h: Regenerate.
2233
2234 * dbxread.c (read_dbx_symtab) <'S'>: Remove call to
2235 gdbarch_static_transform_name.
2236 * mdebugread.c (parse_partial_symbols) <'S'>: Likewise.
2237 * stabsread.c (define_symbol) <'X'>: Remove.
2238 (define_symbol) <'S'>: Remove gdbarch_static_transform_name
2239 handling.
2240 <'V'>: Likewise.
2241 * xcoffread.c (scan_xcoff_symtab): Remove gdbarch.
2242 <'S'>: Remove call to gdbarch_static_transform_name.
2243
2244 2020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2245
2246 * procfs.c (procfs_pre_trace): New function.
2247 (procfs_target::create_inferior): Pass it to fork_inferior.
2248
2249 2020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2250
2251 * configure.tgt <sparc-*-linux*> (gdb_target_obs): Remove
2252 sparc-sol2-tdep.o, sol2-tdep.o, sparc64-sol2-tdep.o.
2253 <sparc64-*-linux*> (gdb_target_obs): Remove sparc64-sol2-tdep.o,
2254 sol2-tdep.o, sparc-sol2-tdep.o.
2255 * sparc-sol2-tdep.c (sparc32_sol2_init_abi): Make static.
2256 * sparc-tdep.h (sparc32_sol2_init_abi): Remove.
2257 * sparc64-sol2-tdep.c (sparc64_sol2_init_abi): Make static.
2258 * sparc64-tdep.h (sparc64_sol2_init_abi): Remove.
2259
2260 2020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2261
2262 * amd64-sol2-tdep.c (amd64_sol2_sigtramp_p): Remove.
2263 (amd64_sol2_init_abi): Use sol2_sigtramp_p.
2264 Call sol2_init_abi.
2265 Remove calls to set_gdbarch_skip_solib_resolver,
2266 set_gdbarch_core_pid_to_str.
2267 * i386-sol2-tdep.c (i386_sol2_sigtramp_p): Remove.
2268 (i386_sol2_static_transform_name): Remove.
2269 (i386_sol2_init_abi): Call sol2_init_abi.
2270 Remove calls to set_gdbarch_sofun_address_maybe_missing,
2271 set_gdbarch_static_transform_name,
2272 set_gdbarch_skip_solib_resolver, set_gdbarch_core_pid_to_str.
2273 Use sol2_sigtramp_p.
2274 * sol2-tdep.c (sol2_pc_in_sigtramp): New function.
2275 (sol2_sigtramp_p): New function.
2276 (sol2_static_transform_name): New function.
2277 (sol2_skip_solib_resolver, sol2_core_pid_to_str): Make static.
2278 (sol2_init_abi): New function.
2279 * sol2-tdep.h (sol2_sigtramp_p, sol2_init_abi): Declare.
2280 (sol2_skip_solib_resolver, sol2_core_pid_to_str): Remove.
2281 * sparc-sol2-tdep.c (sparc_sol2_pc_in_sigtramp): Remove.
2282 (sparc32_sol2_sigtramp_frame_sniffer): Just call sol2_sigtramp_p.
2283 (sparc_sol2_static_transform_name): Remove.
2284 (sparc32_sol2_init_abi): Call sol2_init_abi.
2285 Remove calls to set_gdbarch_sofun_address_maybe_missing,
2286 set_gdbarch_static_transform_name,
2287 set_gdbarch_skip_solib_resolver,
2288 set_gdbarch_core_pid_to_str.
2289 * sparc-tdep.h (sparc_sol2_pc_in_sigtramp)
2290 (sparc_sol2_static_transform_name): Remove
2291 * sparc64-sol2-tdep.c (sparc64_sol2_sigtramp_frame_sniffer): Just
2292 call sol2_sigtramp_p.
2293 (sparc64_sol2_init_abi): Call sol2_init_abi.
2294 Remove calls to set_gdbarch_sofun_address_maybe_missing,
2295 set_gdbarch_static_transform_name,
2296 set_gdbarch_skip_solib_resolver, set_gdbarch_core_pid_to_str.
2297
2298 2020-06-24 Philippe Waroquiers <philippe.waroquiers@skynet.be>
2299
2300 * symfile-add-flags.h: New flag SYMFILE_ALWAYS_CONFIRM.
2301 * exec.c (validate_exec_file): If from_tty, set both
2302 SYMFILE_VERBOSE (== from_tty) and SYMFILE_ALWAYS_CONFIRM.
2303 * symfile.c (symbol_file_add_with_addrs): if always_confirm
2304 and from_tty, unconditionally ask a confirmation.
2305
2306 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
2307
2308 * target-descriptions.c (tdesc_architecture_name): Protect against
2309 NULL pointer dereference.
2310 (maint_print_xml_tdesc_cmd): New function.
2311 (_initialize_target_descriptions): Register new 'maint print
2312 xml-tdesc' command and give it the filename completer.
2313 * NEWS: Mention new 'maint print xml-tdesc' command.
2314
2315 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
2316
2317 * target-descriptions.c (class tdesc_compatible_info): New class.
2318 (struct target_desc): Change type of compatible vector.
2319 (tdesc_compatible_p): Update for change in type of
2320 target_desc::compatible.
2321 (tdesc_compatible_info_list): New function.
2322 (tdesc_compatible_info_arch_name): New function.
2323 (tdesc_add_compatible): Update for change in type of
2324 target_desc::compatible.
2325 (print_c_tdesc::visit_pre): Likewise.
2326
2327 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
2328
2329 * target-descriptions.c (print_c_tdesc::print_c_tdesc): Change
2330 whitespace to underscore.
2331 (maint_print_c_tdesc_cmd): Use fake filename for target
2332 descriptions that came from the target.
2333 (_initialize_target_descriptions): Add filename command completion
2334 for 'maint print c-tdesc'.
2335
2336 2020-06-23 Simon Marchi <simon.marchi@efficios.com>
2337
2338 * dwarf2/loc.c (decode_debug_loclists_addresses): Add empty
2339 lines.
2340
2341 2020-06-23 Simon Marchi <simon.marchi@efficios.com>
2342
2343 * dwarf2/loc.c (decode_debug_loc_dwo_addresses): Add empty
2344 lines.
2345 (dwarf2_find_location_expression): Likewise.
2346 (call_site_parameter_matches): Likewise.
2347 (dwarf2_compile_expr_to_ax): Likewise.
2348 (disassemble_dwarf_expression): Likewise.
2349 (loclist_describe_location): Likewise.
2350
2351 2020-06-23 Pedro Alves <palves@redhat.com>
2352
2353 * gdbarch-selftests.c: Don't include inferior.h, gdbthread.h or
2354 progspace-and-thread.h. Include scoped-mock-context.h instead.
2355 (register_to_value_test): Use scoped_mock_context.
2356 * regcache.c: Include "scoped-mock-context.h".
2357 (cooked_read_test): Don't error out if a target is already pushed.
2358 Use scoped_mock_context. Adjust.
2359 * scoped-mock-context.h: New file.
2360
2361 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
2362
2363 * ada-lang.c (ada_language_data): Delete la_is_string_type_p
2364 initializer.
2365 (ada_language::is_string_type_p): New member function.
2366 * c-lang.c (c_language_data): Delete la_is_string_type_p
2367 initializer.
2368 (cplus_language_data): Likewise.
2369 (asm_language_data): Likewise.
2370 (minimal_language_data): Likewise.
2371 * d-lang.c (d_language_data): Likewise.
2372 * f-lang.c (f_is_string_type_p): Delete function, implementation
2373 moved to f_language::is_string_type_p.
2374 (f_language_data): Delete la_is_string_type_p initializer.
2375 (f_language::is_string_type_p): New member function,
2376 implementation from f_is_string_type_p.
2377 * go-lang.c (go_is_string_type_p): Delete function, implementation
2378 moved to go_language::is_string_type_p.
2379 (go_language_data): Delete la_is_string_type_p initializer.
2380 (go_language::is_string_type_p): New member function,
2381 implementation from go_is_string_type_p.
2382 * language.c (language_defn::is_string_type_p): Define new member
2383 function.
2384 (default_is_string_type_p): Make static, add comment copied from
2385 header file.
2386 (unknown_language_data): Delete la_is_string_type_p initializer.
2387 (unknown_language::is_string_type_p): New member function.
2388 (auto_language_data): Delete la_is_string_type_p initializer.
2389 (auto_language::is_string_type_p): New member function.
2390 * language.h (language_data): Delete la_is_string_type_p field.
2391 (language_defn::is_string_type_p): Declare new function.
2392 (default_is_string_type_p): Delete desclaration, move comment to
2393 definition.
2394 * m2-lang.c (m2_is_string_type_p): Delete function, implementation
2395 moved to m2_language::is_string_type_p.
2396 (m2_language_data): Delete la_is_string_type_p initializer.
2397 (m2_language::is_string_type_p): New member function,
2398 implementation from m2_is_string_type_p.
2399 * objc-lang.c (objc_language_data): Delete la_is_string_type_p
2400 initializer.
2401 * opencl-lang.c (opencl_language_data): Likewise.
2402 * p-lang.c (pascal_is_string_type_p): Delete function,
2403 implementation moved to pascal_language::is_string_type_p.
2404 (pascal_language_data): Delete la_is_string_type_p initializer.
2405 (pascal_language::is_string_type_p): New member function,
2406 implementation from pascal_is_string_type_p.
2407 * rust-lang.c (rust_is_string_type_p): Delete function,
2408 implementation moved to rust_language::is_string_type_p.
2409 (rust_language_data): Delete la_is_string_type_p initializer.
2410 (rust_language::is_string_type_p): New member function,
2411 implementation from rust_is_string_type_p.
2412 * valprint.c (val_print_scalar_or_string_type_p): Update call to
2413 is_string_type_p.
2414
2415 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
2416
2417 * ada-lang.c (ada_language_data): Delete la_print_typedef
2418 initializer.
2419 (ada_language::print_typedef): New member function.
2420 * c-lang.c (c_language_data): Delete la_print_typedef initializer.
2421 (cplus_language_data): Likewise.
2422 (asm_language_data): Likewise.
2423 (minimal_language_data): Likewise.
2424 * d-lang.c (d_language_data): Likewise.
2425 * f-lang.c (f_language_data): Likewise.
2426 (f_language::print_typedef): New member function.
2427 * go-lang.c (go_language_data): Delete la_print_typedef
2428 initializer.
2429 * language.c (language_defn::print_typedef): Define member
2430 function.
2431 (unknown_language_data): Delete la_print_typedef initializer.
2432 (unknown_language::print_typedef): New member function.
2433 (auto_language_data): Delete la_print_typedef initializer.
2434 (auto_language::print_typedef): New member function.
2435 * language.h (language_data): Delete la_print_typedef field.
2436 (language_defn::print_typedef): Declare new member function.
2437 (LA_PRINT_TYPEDEF): Update call to print_typedef.
2438 (default_print_typedef): Delete declaration.
2439 * m2-lang.c (m2_language_data): Delete la_print_typedef
2440 initializer.
2441 (m2_language::print_typedef): New member function.
2442 * objc-lang.c (objc_language_data): Delete la_print_typedef
2443 initializer.
2444 * opencl-lang.c (opencl_language_data): Likewise.
2445 * p-lang.c (pascal_language_data): Likewise.
2446 (pascal_language::print_typedef): New member function.
2447 * rust-lang.c (rust_print_typedef): Delete function,
2448 implementation moved to rust_language::print_typedef.
2449 (rust_language): Delete la_print_typedef initializer.
2450 (rust_language::print_typedef): New member function,
2451 implementation from rust_print_typedef.
2452 * typeprint.c (default_print_typedef): Delete.
2453
2454 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
2455
2456 * ada-lang.c (ada_language_data): Delete la_printstr initializer.
2457 (ada_language::printstr): New member function.
2458 * c-lang.c (c_language_data): Delete la_printstr initializer.
2459 (cplus_language_data): Likewise.
2460 (asm_language_data): Likewise.
2461 (minimal_language_data): Likewise.
2462 * d-lang.c (d_language_data): Likewise.
2463 * f-lang.c (f_printstr): Rename to f_language::printstr.
2464 (f_language_data): Delete la_printstr initializer.
2465 (f_language::printstr): New member function, implementation from
2466 f_printstr.
2467 * go-lang.c (go_language_data): Delete la_printstr initializer.
2468 * language.c (language_defn::printstr): Define new member
2469 function.
2470 (unk_lang_printstr): Delete.
2471 (unknown_language_data): Delete la_printstr initializer.
2472 (unknown_language::printstr): New member function.
2473 (auto_language_data): Delete la_printstr initializer.
2474 (auto_language::printstr): New member function.
2475 * language.h (language_data): Delete la_printstr field.
2476 (language_defn::printstr): Declare new member function.
2477 (LA_PRINT_STRING): Update call to printstr.
2478 * m2-lang.c (m2_printstr): Rename to m2_language::printstr.
2479 (m2_language_data): Delete la_printstr initializer.
2480 (m2_language::printstr): New member function, implementation from
2481 m2_printstr.
2482 * objc-lang.c (objc_language_data): Delete la_printstr
2483 initializer.
2484 * opencl-lang.c (opencl_language_data): Likewise.
2485 * p-lang.c (pascal_printstr): Rename to pascal_language::printstr.
2486 (pascal_language_data): Delete la_printstr initializer.
2487 (pascal_language::printstr): New member function, implementation
2488 from pascal_printstr.
2489 * p-lang.h (pascal_printstr): Delete declaration.
2490 * rust-lang.c (rust_printstr): Update header comment.
2491 (rust_language_data): Delete la_printstr initializer.
2492 (rust_language::printstr): New member function.
2493
2494 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
2495
2496 * ada-lang.c (ada_language_data): Delete la_printchar initializer.
2497 (ada_language::printchar): New member function.
2498 * c-lang.c (c_language_data): Delete la_printchar initializer.
2499 (cplus_language_data): Likewise.
2500 (asm_language_data): Likewise.
2501 (minimal_language_data): Likewise.
2502 * d-lang.c (d_language_data): Likewise.
2503 * f-lang.c (f_printchar): Rename to f_language::printchar.
2504 (f_language_data): Delete la_printchar initializer.
2505 (f_language::printchar): New member function, implementation from
2506 f_printchar.
2507 * go-lang.c (go_language_data): Delete la_printchar initializer.
2508 * language.c (unk_lang_printchar): Delete.
2509 (language_defn::printchar): Define new member function.
2510 (unknown_language_data): Delete la_printchar initializer.
2511 (unknown_language::printchar): New member function.
2512 (auto_language_data): Delete la_printchar initializer.
2513 (auto_language::printchar): New member function.
2514 * language.h (language_data): Delete la_printchar field.
2515 (language_defn::printchar): Declare new member function.
2516 (LA_PRINT_CHAR): Update call to printchar.
2517 * m2-lang.c (m2_language_data): Delete la_printchar initializer.
2518 (m2_language::printchar): New member function.
2519 * objc-lang.c (objc_language_data): Delete la_printchar
2520 initializer.
2521 * opencl-lang.c (opencl_language_data): Likewise.
2522 * p-lang.c (pascal_language_data): Delete la_printchar
2523 initializer.
2524 (pascal_language::printchar): New member function.
2525 * rust-lang.c (rust_printchar): Rename to
2526 rust_language::printchar.
2527 (rust_language_data): Delete la_printchar initializer.
2528 (rust_language::printchar): New member function, implementation
2529 from rust_printchar.
2530
2531 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
2532
2533 * ada-lang.c (emit_char): Renamed to ada_language::emitchar.
2534 (ada_language_data): Delete la_emitchar initializer.
2535 (ada_language::emitchar): New member function, implementation from
2536 emit_char.
2537 * c-lang.c (c_language_data): Delete la_emitchar initializer.
2538 (cplus_language_data): Likewise.
2539 (asm_language_data): Likewise.
2540 (minimal_language_data): Likewise.
2541 * d-lang.c (d_language_data): Likewise.
2542 * f-lang.c (f_emit_char): Rename to f_language::emitchar.
2543 (f_language_data): Delete la_emitchar initializer.
2544 (f_language::emitchar): New member function, implementation from
2545 f_emit_char.
2546 * go-lang.c (go_language_data): Delete la_emitchar initializer.
2547 * language.c (unk_lang_emit_char): Delete.
2548 (language_defn::emitchar): New member function definition.
2549 (unknown_language_data): Delete la_emitchar initializer.
2550 (unknown_language::emitchar): New member function.
2551 (auto_language_data): Delete la_emitchar initializer.
2552 (auto_language::emitchar): New member function.
2553 * language.h (language_data): Delete la_emitchar field.
2554 (language_defn::emitchar): New member field declaration.
2555 (LA_EMIT_CHAR): Update call to emitchar.
2556 * m2-lang.c (m2_emit_char): Rename to m2_language::emitchar.
2557 (m2_language_data): Delete la_emitchar initializer.
2558 (m2_language::emitchar): New member function, implementation from
2559 m2_emit_char.
2560 * objc-lang.c (objc_language_data): Delete la_emitchar
2561 initializer.
2562 * opencl-lang.c (opencl_language_data): Likewise.
2563 * p-lang.c (pascal_emit_char): Rename to pascal_language::emitchar.
2564 (pascal_language_data): Delete la_emitchar initializer.
2565 (pascal_language::emitchar): New member function, implementation
2566 from pascal_emit_char.
2567 * rust-lang.c (rust_emitchar): Rename to rust_language::emitchar.
2568 (rust_language_data): Delete la_emitchar initializer.
2569 (rust_language::emitchar): New member function, implementation
2570 from rust_emitchar.
2571
2572 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
2573
2574 * ada-lang.c (resolve): Rename to ada_language::post_parser.
2575 (ada_language_data): Delete la_post_parser initializer.
2576 (ada_language::post_parser): New member function.
2577 * c-lang.c (c_language_data): Delete la_post_parser initializer.
2578 (cplus_language_data): Likewise.
2579 (asm_language_data): Likewise.
2580 (minimal_language_data): Likewise.
2581 * d-lang.c (d_language_data): Likewise.
2582 * f-lang.c (f_language_data): Likewise.
2583 * go-lang.c (go_language_data): Likewise.
2584 * language.c (unknown_language_data): Likewise.
2585 (auto_language_data): Likewise.
2586 * language.h (language_data): Delete la_post_parser field.
2587 (language_defn::post_parser): New member function.
2588 * m2-lang.c (m2_language_data): Delete la_post_parser initializer.
2589 * objc-lang.c (objc_language_data): Likewise.
2590 * opencl-lang.c (opencl_language_data): Likewise.
2591 * p-lang.c (pascal_language_data): Likewise.
2592 * parse.c (parse_exp_in_context): Update call to post_parser.
2593 (null_post_parser): Delete definition.
2594 * parser-defs.h (null_post_parser): Delete declaration.
2595 * rust-lang.c (rust_language_data): Delete la_post_parser
2596 initializer.
2597
2598 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
2599
2600 * ada-lang.c (parse): Rename to ada_language::parser.
2601 (ada_language_data): Delete la_parser initializer.
2602 (ada_language::parser): New member function, implementation from
2603 parse.
2604 * c-lang.c (c_language_data): Delete la_parser initializer.
2605 (cplus_language_data): Likewise.
2606 (asm_language_data): Likewise.
2607 (minimal_language_data): Likewise.
2608 * d-lang.c (d_language_data): Likewise.
2609 (d_language::parser): New member function.
2610 * f-lang.c (f_language_data): Delete la_parser initializer.
2611 (f_language::parser): New member function.
2612 * go-lang.c (go_language_data): Delete la_parser initializer.
2613 (go_language::parser): New member function.
2614 * language.c (unk_lang_parser): Delete.
2615 (language_defn::parser): Define new member function.
2616 (unknown_language_data): Delete la_parser initializer.
2617 (unknown_language::parser): New member function.
2618 (auto_language_data): Delete la_parser initializer.
2619 (auto_language::parser): New member function.
2620 * language.h (language_data): Delete la_parser field.
2621 (language_defn::parser): Declare new member function.
2622 * m2-lang.c (m2_language_data): Delete la_parser initializer.
2623 (m2_language::parser): New member function.
2624 * objc-lang.c (objc_language_data): Delete la_parser initializer.
2625 * opencl-lang.c (opencl_language_data): Likewise.
2626 * p-lang.c (pascal_language_data): Likewise.
2627 (pascal_language::parser): New member function.
2628 * parse.c (parse_exp_in_context): Update call to parser.
2629 * rust-lang.c (rust_language_data): Delete la_parser initializer.
2630 (rust_language::parser): New member function.
2631
2632 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
2633
2634 * top.c (print_gdb_configuration): Print --with-python-libdir
2635 configuration value.
2636
2637 2020-06-22 Philippe Waroquiers <philippe.waroquiers@skynet.be>
2638
2639 * NEWS: Mention change to the alias command.
2640
2641 2020-06-22 Philippe Waroquiers <philippe.waroquiers@skynet.be>
2642
2643 * cli/cli-cmds.c (lookup_cmd_for_default_args)
2644 (alias_command_completer)
2645 (make_alias_options_def_group): New functions.
2646 (alias_opts, alias_option_defs): New struct and array.
2647 (alias_usage_error): Update usage.
2648 (alias_command): Handles optional DEFAULT-ARGS... arguments.
2649 Use option framework.
2650 (_initialize_cli_cmds): Update alias command help.
2651 Update aliases command help.
2652 (show_user):
2653 Add NULL for new default_args lookup_cmd argument.
2654 (valid_command_p): Rename to validate_aliased_command.
2655 Add NULL for new default_args lookup_cmd argument. Verify that the
2656 aliased_command has no default args.
2657 * cli/cli-decode.c (help_cmd): Show aliases definitions.
2658 (lookup_cmd_1, lookup_cmd): New argument default_args.
2659 (add_alias_cmd):
2660 Add NULL for new default_args lookup_cmd argument.
2661 (print_help_for_command): Show default args under the layout
2662 alias some_alias = some_aliased_cmd some_alias_default_arg.
2663 * cli/cli-decode.h (struct cmd_list_element): New member default_args.
2664 xfree default_args in destructor.
2665 * cli/cli-script.c (process_next_line, do_define_command):
2666 Add NULL for new default_args lookup_cmd argument.
2667 * command.h: Declare new default_args argument in lookup_cmd
2668 and lookup_cmd_1.
2669 * completer.c (complete_line_internal_1):
2670 Add NULL for new default_args lookup_cmd or lookup_cmd_1 argument.
2671 * guile/scm-cmd.c (gdbscm_parse_command_name): Likewise.
2672 * guile/scm-param.c (add_setshow_generic, pascm_parameter_defined_p):
2673 Likewise.
2674 * infcmd.c (_initialize_infcmd): Likewise.
2675 * python/py-auto-load.c (gdbpy_initialize_auto_load): Likewise.
2676 * python/py-cmd.c (gdbpy_parse_command_name): Likewise.
2677 * python/py-param.c (add_setshow_generic): Likewise.
2678 * remote.c (_initialize_remote): Likewise.
2679 * top.c (execute_command): Prepend default_args if command has some.
2680 (set_verbose):
2681 Add NULL for new default_args lookup_cmd or lookup_cmd_1 argument.
2682 * tracepoint.c (validate_actionline, encode_actions_1):
2683 Add NULL for new default_args lookup_cmd or lookup_cmd_1 argument.
2684
2685 2020-06-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2686
2687 * jit.c (jit_read_descriptor): Use bool as the return type.
2688 (jit_breakpoint_re_set_internal): Use bool as the return type.
2689 Invert the return value logic; return true if the jit breakpoint
2690 has been successfully initialized.
2691 (jit_inferior_init): Update the call to
2692 jit_breakpoint_re_set_internal.
2693
2694 2020-06-22 Pedro Alves <palves@redhat.com>
2695
2696 PR gdb/25939
2697 * procfs.c (procfs_target::wait): Don't reference inferior_ptid.
2698 Use the current inferior instead. Don't return
2699 TARGET_WAITKIND_SPURIOUS/inferior_ptid -- instead continue and
2700 wait again.
2701 * sol-thread.c (sol_thread_target::wait): Don't reference
2702 inferior_ptid.
2703 (ps_lgetregs, ps_lsetregs, ps_lgetfpregs, ps_lsetfpregs)
2704 (sol_update_thread_list_callback): Use the current inferior's pid
2705 instead of inferior_ptid.
2706
2707 2020-06-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2708
2709 * procfs.c: Cleanup many comments.
2710
2711 (READ_WATCHFLAG, WRITE_WATCHFLAG, EXEC_WATCHFLAG)
2712 (AFTER_WATCHFLAG): Replace by value.
2713
2714 (MAIN_PROC_NAME_FORMAT): Inline ...
2715 (create_procinfo): ... here.
2716
2717 (procfs_debug_inferior): Remove SYS_exec handling.
2718 (syscall_is_exec): Likewise.
2719 (procfs_set_exec_trap): Likewise.
2720
2721 (syscall_is_lwp_exit): Inline in callers.
2722 (syscall_is_exit): Likewise.
2723 (syscall_is_exec): Likewise.
2724 (syscall_is_lwp_create): Likewise.
2725
2726 (invalidate_cache): Remove #if 0 code.
2727
2728 (make_signal_thread_runnable): Remove.
2729 (procfs_target::resume): Remove #if 0 code.
2730
2731 2020-06-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2732
2733 PR gdb/25939
2734 * procfs.c (procfs_target::procfs_init_inferior): Move push_target
2735 call ...
2736 (procfs_target::create_inferior): ... here.
2737
2738 2020-06-21 Philippe Waroquiers <philippe.waroquiers@skynet.be>
2739
2740 * exec.c (validate_exec_file): Ensure the build-id is up to
2741 date by calling reopen_exec_file (that checks file timestamp
2742 to decide to re-read the file).
2743
2744 2020-06-18 Pedro Alves <palves@redhat.com>
2745
2746 PR gdb/25412
2747 * gdbthread.h (delete_thread, delete_thread_silent)
2748 (find_thread_ptid): Update comments.
2749 * thread.c (current_thread_): New global.
2750 (is_current_thread): Move higher, and reimplement.
2751 (inferior_thread): Reimplement.
2752 (set_thread_exited): Use bool. Add assertions.
2753 (add_thread_silent): Simplify thread-reuse handling by always
2754 calling delete_thread.
2755 (delete_thread): Remove intro comment.
2756 (find_thread_ptid): Skip exited threads.
2757 (switch_to_thread_no_regs): Write to current_thread_.
2758 (switch_to_no_thread): Check CURRENT_THREAD_ instead of
2759 INFERIOR_PTID. Clear current_thread_.
2760
2761 2020-06-18 Pedro Alves <palves@redhat.com>
2762
2763 * aix-thread.c (pd_update): Use switch_to_thread.
2764
2765 2020-06-18 Pedro Alves <palves@redhat.com>
2766
2767 * ravenscar-thread.c (ravenscar_thread_target): Update.
2768 (ravenscar_thread_target::update_inferior_ptid): Rename to ...
2769 (ravenscar_thread_target::add_active_thread): ... this. Don't
2770 set m_base_ptid here. Update to avoid referencing inferior_ptid.
2771 (ravenscar_thread_target::wait): Don't write to inferior_ptid.
2772
2773 2020-06-18 Pedro Alves <palves@redhat.com>
2774
2775 * nat/windows-nat.c (current_windows_thread): Remove.
2776 * nat/windows-nat.h (current_windows_thread): Remove.
2777 * windows-nat.c (windows_nat_target::stopped_by_sw_breakpoint):
2778 Adjust.
2779 (display_selectors): Adjust to fetch the current
2780 windows_thread_info based on inferior_ptid.
2781 (fake_create_process): No longer write to current_windows_thread.
2782 (windows_nat_target::get_windows_debug_event):
2783 Don't set inferior_ptid or current_windows_thread.
2784 (windows_nat_target::wait): Adjust to not rely on
2785 current_windows_thread.
2786 (do_initial_windows_stuff): Now a method of windows_nat_target.
2787 Switch to the last_ptid thread.
2788 (windows_nat_target::attach): Adjust.
2789 (windows_nat_target::detach): Use switch_to_no_thread instead of
2790 writing to inferior_ptid directly.
2791 (windows_nat_target::create_inferior): Adjust.
2792
2793 2020-06-18 Pedro Alves <palves@redhat.com>
2794
2795 * windows-nat.c (do_initial_windows_stuff): No longer set inferior_ptid.
2796
2797 2020-06-18 Pedro Alves <palves@redhat.com>
2798
2799 * go32-nat.c (go32_nat_target::create_inferior): Switch to thread
2800 after creating it, instead of writing to inferior_ptid. Don't
2801 write to inferior_ptid.
2802
2803 2020-06-18 Pedro Alves <palves@redhat.com>
2804
2805 * fork-child.c (postfork_hook): Don't write to inferior_ptid.
2806
2807 2020-06-18 Pedro Alves <palves@redhat.com>
2808
2809 * bsd-kvm.c (bsd_kvm_target_open): Switch to thread after adding
2810 it, instead of writing to inferior_ptid.
2811
2812 2020-06-18 Pedro Alves <palves@redhat.com>
2813
2814 * btrace.c (btrace_fetch): Use switch_to_thread instead of writing
2815 to inferior_ptid.
2816
2817 2020-06-18 Pedro Alves <palves@redhat.com>
2818
2819 * bsd-kvm.c (bsd_kvm_target::close): Use switch_to_no_thread
2820 instead of writing to inferior_ptid directly.
2821
2822 2020-06-18 Pedro Alves <palves@redhat.com>
2823
2824 * corelow.c (core_target::close): Use switch_to_no_thread instead
2825 of writing to inferior_ptid directly.
2826 (add_to_thread_list, core_target_open): Use switch_to_thread
2827 instead of writing to inferior_ptid directly.
2828
2829 2020-06-18 Pedro Alves <palves@redhat.com>
2830
2831 * darwin-nat.c (darwin_nat_target::decode_message): Don't write to
2832 inferior_ptid.
2833 (darwin_nat_target::stop_inferior, darwin_nat_target::kill): Avoid
2834 inferior_ptid.
2835 (darwin_attach_pid): Use switch_to_no_thread instead of writing to
2836 inferior_ptid directly.
2837 (darwin_nat_target::init_thread_list): Switch to thread, instead
2838 of writing to inferior_ptid.
2839 (darwin_nat_target::attach): Don't write to inferior_ptid.
2840 (darwin_nat_target::get_ada_task_ptid): Avoid inferior_ptid.
2841
2842 2020-06-18 Pedro Alves <palves@redhat.com>
2843
2844 * gnu-nat.c (gnu_nat_target::create_inferior): Switch to the added
2845 thread.
2846 (gnu_nat_target::attach): Don't write to inferior_ptid directly.
2847 Instead use switch_to_thread.
2848 (gnu_nat_target::detach): Use switch_to_no_thread
2849 instead of writing to inferior_ptid directly. Used passed-in
2850 inferior instead of looking up the inferior by pid.
2851
2852 2020-06-18 Pedro Alves <palves@redhat.com>
2853
2854 * go32-nat.c (go32_nat_target::create_inferior): Don't write to
2855 inferior_ptid.
2856
2857 2020-06-18 Pedro Alves <palves@redhat.com>
2858
2859 * nto-procfs.c (nto_procfs_target::update_thread_list): Avoid
2860 inferior_ptid.
2861 (nto_procfs_target::attach): Avoid inferior_ptid. Switch to
2862 thread.
2863 (nto_procfs_target::detach): Avoid referencing
2864 inferior_ptid. Use switch_to_no_thread instead of writing to
2865 inferior_ptid directly.
2866 (nto_procfs_target::mourn_inferior): Use switch_to_no_thread
2867 instead of writing to inferior_ptid directly.
2868 (nto_procfs_target::create_inferior): Avoid inferior_ptid. Switch
2869 to thread.
2870
2871 2020-06-18 Pedro Alves <palves@redhat.com>
2872
2873 * remote-sim.c (gdbsim_target::create_inferior): Switch to thread
2874 after creating it, instead of writing to inferior_ptid.
2875 (gdbsim_target_open): Use switch_to_no_thread instead of writing
2876 to inferior_ptid directly.
2877 (gdbsim_target::wait): Don't write to inferior_ptid.
2878
2879 2020-06-18 Pedro Alves <palves@redhat.com>
2880
2881 * remote.c (remote_target::remote_notice_new_inferior): Use
2882 switch_to_thread instead of writing to inferior_ptid directly.
2883 (remote_target::add_current_inferior_and_thread): Use
2884 switch_to_no_thread instead of writing to inferior_ptid directly.
2885 (extended_remote_target::attach): Use switch_to_inferior_no_thread
2886 and switch_to_thread instead of using set_current_inferior or
2887 writing to inferior_ptid directly.
2888
2889 2020-06-18 Pedro Alves <palves@redhat.com>
2890
2891 * tracectf.c (ctf_target_open): Switch to added thread instead of
2892 writing to inferior_ptid directly.
2893 (ctf_target::close): Use switch_to_no_thread instead of writing to
2894 inferior_ptid directly.
2895
2896 2020-06-18 Pedro Alves <palves@redhat.com>
2897
2898 * tracefile-tfile.c (tfile_target_open): Don't write to
2899 inferior_ptid directly, instead switch to added thread.
2900 (tfile_target::close): Use switch_to_no_thread instead of writing
2901 to inferior_ptid directly.
2902
2903 2020-06-18 Pedro Alves <palves@redhat.com>
2904
2905 * procfs.c (procfs_target::attach): Don't write to inferior_ptid.
2906 (procfs_target::detach): Use switch_to_no_thread
2907 instead of writing to inferior_ptid directly.
2908 (do_attach): Change return type to void. Switch to the added
2909 thread.
2910 (procfs_target::create_inferior): Switch to the added thread.
2911 (procfs_do_thread_registers): Don't write to inferior_ptid.
2912
2913 2020-06-18 Pedro Alves <palves@redhat.com>
2914
2915 * infrun.c (generic_mourn_inferior): Use switch_to_thread instead
2916 of writing to inferior_ptid.
2917 (scoped_restore_exited_inferior): Delete.
2918 (handle_vfork_child_exec_or_exit): Simplify using
2919 scoped_restore_current_pspace_and_thread. Use switch_to_thread
2920 instead of writing to inferior_ptid.
2921 (THREAD_STOPPED_BY): Delete.
2922 (thread_stopped_by_watchpoint, thread_stopped_by_sw_breakpoint)
2923 (thread_stopped_by_hw_breakpoint): Delete.
2924 (save_waitstatus): Use
2925 scoped_restore_current_thread+switch_to_thread, and call
2926 target_stopped_by_watchpoint instead of
2927 thread_stopped_by_watchpoint, target_stopped_by_sw_breakpoint
2928 instead of thread_stopped_by_sw_breakpoint, and
2929 target_stopped_by_hw_breakpoint instead of
2930 thread_stopped_by_hw_breakpoint.
2931 (handle_inferior_event)
2932 <TARGET_WAITKIND_EXITED/TARGET_WAITKIND_SIGNALLED>: Don't write to
2933 inferior_ptid directly, nor
2934 set_current_inferior/set_current_program_space. Use
2935 switch_to_thread / switch_to_inferior_no_thread instead.
2936
2937 2020-06-18 Pedro Alves <palves@redhat.com>
2938
2939 * target.c (generic_mourn_inferior): Use switch_to_no_thread
2940 instead of writing to inferior_ptid.
2941
2942 2020-06-18 Pedro Alves <palves@redhat.com>
2943
2944 * inf-ptrace.c (inf_ptrace_target::create_inferior): Switch to the
2945 added thread.
2946 (inf_ptrace_target::attach): Don't write to inferior_ptid. Switch
2947 to the added thread.
2948 (inf_ptrace_target::detach_success): Use switch_to_no_thread
2949 instead of writing to inferior_ptid.
2950
2951 2020-06-18 Pedro Alves <palves@redhat.com>
2952
2953 * gdbarch-selftests.c: Include "progspace-and-thread.h".
2954 (register_to_value_test): Mock a program_space too. Heap-allocate
2955 the address space. Don't write to inferior_ptid. Use
2956 switch_to_thread instead.
2957
2958 2020-06-18 Pedro Alves <palves@redhat.com>
2959
2960 * linux-tdep.c (find_signalled_thread(thread_info *,void *)):
2961 Delete.
2962 (find_signalled_thread()): New, factored out from
2963 linux_make_corefile_notes and adjusted to handle exited threads.
2964 (linux_make_corefile_notes): Adjust to use the new
2965 find_signalled_thread.
2966
2967 2020-06-18 Pedro Alves <palves@redhat.com>
2968
2969 * linux-tdep.c (btrace_fetch): Save/restore current thread instead
2970 of saving/restoring inferior_ptid.
2971
2972 2020-06-17 Tom Tromey <tom@tromey.com>
2973
2974 * tui/tui-win.h (tui_scroll_forward, tui_scroll_backward)
2975 (tui_scroll_left, tui_scroll_right, struct tui_win_info): Don't
2976 declare.
2977 * tui/tui-data.h (MIN_CMD_WIN_HEIGHT): Remove.
2978
2979 2020-06-15 Simon Marchi <simon.marchi@efficios.com>
2980
2981 * dwarf2/read.c (dwarf2_initialize_objfile): Check for presence
2982 of partial symtabs.
2983
2984 2020-06-17 Simon Marchi <simon.marchi@efficios.com>
2985
2986 * regformats/reg-arm.dat: Remove.
2987 * regformats/reg-bfin.dat: Remove.
2988 * regformats/reg-cris.dat: Remove.
2989 * regformats/reg-crisv32.dat: Remove.
2990 * regformats/reg-m32r.dat: Remove.
2991 * regformats/reg-tilegx.dat: Remove.
2992 * regformats/reg-tilegx32.dat: Remove.
2993
2994 2020-06-17 Simon Marchi <simon.marchi@efficios.com>
2995
2996 * features/Makefile (WHICH): Remove arm files.
2997 * regformats/arm/arm-with-iwmmxt.dat: Remove.
2998 * regformats/arm/arm-with-neon.dat: Remove.
2999 * regformats/arm/arm-with-vfpv2.dat: Remove.
3000 * regformats/arm/arm-with-vfpv3.dat: Remove.
3001
3002 2020-06-17 Simon Marchi <simon.marchi@efficios.com>
3003
3004 * features/Makefile (XMLTOC): Remove rx.xml.
3005
3006 2020-06-17 Pedro Alves <palves@redhat.com>
3007
3008 * gdbthread.h (thread_control_state) <trap_expected> Update
3009 comments.
3010
3011 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
3012
3013 * ada-lang.c (ada_lookup_symbol_nonlocal): Rename to
3014 ada_language::lookup_symbol_nonlocal.
3015 (ada_language_data): Delete la_lookup_symbol_nonlocal initializer.
3016 (ada_language::lookup_symbol_nonlocal): New member function,
3017 implementation from ada_lookup_symbol_nonlocal.
3018 * c-lang.c (c_language_data): Delete la_lookup_symbol_nonlocal
3019 initializer.
3020 (cplus_language_data): Delete la_lookup_symbol_nonlocal
3021 initializer.
3022 (cplus_language::lookup_symbol_nonlocal): New member function.
3023 (asm_language_data): Delete la_lookup_symbol_nonlocal initializer.
3024 (minimal_language_data) Likewise.
3025 * cp-namespace.c (cp_lookup_nested_symbol): Update comment.
3026 * d-lang.c (d_language_data): Delete la_lookup_symbol_nonlocal
3027 initializer.
3028 (d_language::lookup_symbol_nonlocal): New member function.
3029 * f-lang.c (f_language_data): Delete la_lookup_symbol_nonlocal
3030 initializer.
3031 (f_language::lookup_symbol_nonlocal): New member function.
3032 * go-lang.c (go_language_data): Delete la_lookup_symbol_nonlocal
3033 initializer.
3034 * language.c (unknown_language_data): Likewise.
3035 (auto_language_data): Likewise.
3036 * language.h (language_data): Delete la_lookup_symbol_nonlocal
3037 field.
3038 (language_defn::lookup_symbol_nonlocal): New member function.
3039 * m2-lang.c (m2_language_data): Delete la_lookup_symbol_nonlocal
3040 initializer.
3041 * objc-lang.c (objc_language_data): Likewise.
3042 * opencl-lang.c (opencl_language_data): Likewise.
3043 * p-lang.c (pascal_language_data): Likewise.
3044 * rust-lang.c (rust_lookup_symbol_nonlocal): Rename to
3045 rust_language::lookup_symbol_nonlocal.
3046 (rust_language_data): Delete la_lookup_symbol_nonlocal
3047 initializer.
3048 (rust_language::lookup_symbol_nonlocal): New member function,
3049 implementation from rust_lookup_symbol_nonlocal.
3050 * symtab.c (lookup_symbol_aux): Update call to
3051 lookup_symbol_nonlocal.
3052 (basic_lookup_symbol_nonlocal): Rename to...
3053 (language_defn::lookup_symbol_nonlocal): ...this, and update
3054 header comment. Remove language_defn parameter, and replace with
3055 uses of `this'.
3056 * symtab.h (basic_lookup_symbol_nonlocal): Delete declaration.
3057
3058 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
3059
3060 * ada-lang.c (ada_language_data): Delete la_value_print_inner
3061 initializer.
3062 (ada_language::value_print_inner): New member function.
3063 * c-lang.c (c_language_data): Delete la_value_print_inner
3064 initializer.
3065 (cplus_language_data): Likewise.
3066 (asm_language_data): Likewise.
3067 (minimal_language_data): Likewise.
3068 * d-lang.c (d_language_data): Likewise.
3069 (d_language::value_print_inner): New member function.
3070 * f-lang.c (f_language_data): Delete la_value_print_inner
3071 initializer.
3072 (f_language::value_print_inner): New member function.
3073 * f-lang.h (f_value_print_innner): Rename to...
3074 (f_value_print_inner): ...this (note spelling of 'inner').
3075 * f-valprint.c (f_value_print_innner): Rename to...
3076 (f_value_print_inner): ...this (note spelling of 'inner').
3077 * go-lang.c (go_language_data): Delete la_value_print_inner
3078 initializer.
3079 (go_language::value_print_inner): New member function.
3080 * language.c (language_defn::value_print_inner): Define new member
3081 function.
3082 (unk_lang_value_print_inner): Delete.
3083 (unknown_language_data): Delete la_value_print_inner initializer.
3084 (unknown_language::value_print_inner): New member function.
3085 (auto_language_data): Delete la_value_print_inner initializer.
3086 (auto_language::value_print_inner): New member function.
3087 * language.h (language_data): Delete la_value_print_inner field.
3088 (language_defn::value_print_inner): Delcare new member function.
3089 * m2-lang.c (m2_language_data): Delete la_value_print_inner
3090 initializer.
3091 (m2_language::value_print_inner): New member function.
3092 * objc-lang.c (objc_language_data): Delete la_value_print_inner
3093 initializer.
3094 * opencl-lang.c (opencl_language_data): Likewise.
3095 * p-lang.c (pascal_language_data): Likewise.
3096 (pascal_language::value_print_inner): New member function.
3097 * rust-lang.c (rust_language_data): Delete la_value_print_inner
3098 initializer.
3099 (rust_language::value_print_inner): New member function.
3100 * valprint.c (do_val_print): Update call to value_print_inner.
3101
3102 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
3103
3104 * ada-lang.c (ada_language_data): Delete la_value_print
3105 initializer.
3106 (ada_language::value_print): New member function.
3107 * c-lang.c (c_language_data): Delete la_value_print initializer.
3108 (cplus_language_data): Likewise.
3109 (asm_language_data): Likewise.
3110 (minimal_language_data): Likewise.
3111 * d-lang.c (d_language_data): Likewise.
3112 * f-lang.c (f_language_data): Likewise.
3113 * go-lang.c (go_language_data): Likewise.
3114 * language.c (unk_lang_value_print): Delete.
3115 (language_defn::value_print): Define new member function.
3116 (unknown_language_data): Delete la_value_print initializer.
3117 (unknown_language::value_print): New member function.
3118 (auto_language_data): Delete la_value_print initializer.
3119 (auto_language::value_print): New member function.
3120 * language.h (language_data): Delete la_value_print field.
3121 (language_defn::value_print): Declare new member function.
3122 (LA_VALUE_PRINT): Update call to value_print.
3123 * m2-lang.c (m2_language_data): Delete la_value_print initializer.
3124 * objc-lang.c (objc_language_data): Likewise.
3125 * opencl-lang.c (opencl_language_data): Likewise.
3126 * p-lang.c (pascal_language_data): Likewise.
3127 (pascal_language::value_print): New member function.
3128 * rust-lang.c (rust_language_data): Delete la_value_print
3129 initializer.
3130
3131 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
3132
3133 * ada-lang.c (ada_watch_location_expression): Rename to
3134 ada_language::watch_location_expression.
3135 (ada_language_data): Delete la_watch_location_expression
3136 initializer.
3137 (ada_language::watch_location_expression): New member function,
3138 implementation from ada_watch_location_expression.
3139 * breakpoint.c (watch_command_1): Update call to
3140 watch_location_expression.
3141 * c-lang.c (c_watch_location_expression): Rename to
3142 language_defn::watch_location_expression.
3143 (c_language_data): Delete la_watch_location_expression
3144 initializer.
3145 (cplus_language_data): Likewise.
3146 (asm_language_data): Likewise.
3147 (minimal_language_data): Likewise.
3148 * c-lang.h (c_watch_location_expression): Delete declaration.
3149 * d-lang.c (d_language_data): Delete la_watch_location_expression
3150 initializer.
3151 * f-lang.c (f_language_data): Likewise.
3152 * go-lang.c (go_language_data): Likewise.
3153 * language.c (language_defn::watch_location_expression): Member
3154 function implementation from c_watch_location_expression.
3155 (unknown_language_data): Delete la_watch_location_expression
3156 initializer.
3157 (auto_language_data): Likewise.
3158 * language.h (language_data): Delete la_watch_location_expression
3159 field.
3160 (language_defn::watch_location_expression): Declare new member
3161 function.
3162 * m2-lang.c (m2_language_data): Delete
3163 la_watch_location_expression initializer.
3164 * objc-lang.c (objc_language_data): Likewise.
3165 * opencl-lang.c (opencl_language_data): Likewise.
3166 * p-lang.c (pascal_language_data): Likewise.
3167 * rust-lang.c (rust_watch_location_expression): Rename to
3168 rust_language::watch_location_expression.
3169 (rust_language_data): Delete la_watch_location_expression
3170 initializer.
3171 (rust_language::watch_location_expression): New member function,
3172 implementation from rust_watch_location_expression.
3173
3174 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
3175
3176 * ada-lang.c (ada_collect_symbol_completion_matches): Rename to
3177 ada_language::collect_symbol_completion_matches.
3178 (ada_language_data): Delete la_collect_symbol_completion_matches
3179 initializer.
3180 (ada_language::collect_symbol_completion_matches): New member
3181 function, implementation from
3182 ada_collect_symbol_completion_matches.
3183 * c-lang.c (c_language_data): Delete
3184 la_collect_symbol_completion_matches initializer.
3185 (cplus_language_data): Likewise.
3186 (asm_language_data): Likewise.
3187 (minimal_language_data): Likewise.
3188 * d-lang.c (d_language_data): Likewise.
3189 * f-lang.c (f_collect_symbol_completion_matches): Rename to
3190 f_language::collect_symbol_completion_matches.
3191 (f_language_data): Delete la_collect_symbol_completion_matches
3192 initializer.
3193 (f_language::collect_symbol_completion_matches) New member
3194 function, implementation from f_collect_symbol_completion_matches.
3195 * go-lang.c (go_language_data): Delete
3196 la_collect_symbol_completion_matches initializer.
3197 * language.c (unknown_language_data): Likewise.
3198 (auto_language_data): Likewise.
3199 * language.h (language_data): Delete
3200 la_collect_symbol_completion_matches field.
3201 (language_defn::collect_symbol_completion_matches): New member
3202 function.
3203 * m2-lang.c (m2_language_data): Delete
3204 la_collect_symbol_completion_matches initializer.
3205 * objc-lang.c (objc_language_data): Likewise.
3206 * opencl-lang.c (opencl_language_data): Likewise.
3207 * p-lang.c (pascal_language_data): Likewise.
3208 * rust-lang.c (rust_language_data): Likewise.
3209 * symtab.c (default_collect_symbol_completion_matches): Delete.
3210 (collect_symbol_completion_matches): Update call to
3211 collect_symbol_completion_matches.
3212 (collect_symbol_completion_matches_type): Likewise.
3213 * symtab.h (default_collect_symbol_completion_matches): Delete
3214 declaration.
3215
3216 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
3217
3218 * ada-lang.c (ada_get_gdb_completer_word_break_characters): Delete.
3219 (ada_language_data): Delete la_word_break_characters initializer.
3220 (ada_language::word_break_characters): New member function.
3221 * c-lang.c (c_language_data): Delete la_word_break_characters
3222 initializer.
3223 (cplus_language_data): Likewise.
3224 (asm_language_data): Likewise.
3225 (minimal_language_data): Likewise.
3226 * completer.c: Update global comment.
3227 (advance_to_expression_complete_word_point): Update call to
3228 word_break_characters.
3229 (complete_files_symbols): Likewise.
3230 (complete_line_internal_1): Likewise.
3231 (default_completer_handle_brkchars): Likewise.
3232 (skip_quoted_chars): Likewise.
3233 * d-lang.c (d_language_data): Delete la_word_break_characters
3234 initializer.
3235 * f-lang.c (f_word_break_characters): Delete.
3236 (f_language_data): Delete la_word_break_characters initializer.
3237 (f_language::word_break_characters): New member function.
3238 * go-lang.c (go_language_data): Delete la_word_break_characters
3239 initializer.
3240 * language.c (unknown_language_data): Likewise.
3241 (auto_language_data): Likewise.
3242 * language.h (default_word_break_characters): Move declaration to
3243 earlier in the file.
3244 (language_data): Delete la_word_break_characters field.
3245 (language_defn::word_break_characters): New member function.
3246 * m2-lang.c (m2_language_data): Delete la_word_break_characters
3247 initializer.
3248 * objc-lang.c (objc_language_data): Likewise.
3249 * opencl-lang.c (opencl_language_data): Likewise.
3250 * p-lang.c (pascal_language_data): Likewise.
3251 * rust-lang.c (rust_language_data): Likewise.
3252
3253 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
3254
3255 * ada-lang.c (ada_get_symbol_name_matcher): Update header comment.
3256 (ada_language_data): Delete la_get_symbol_name_matcher
3257 initializer.
3258 (language_defn::get_symbol_name_matcher_inner): New member
3259 function.
3260 * c-lang.c (c_language_data): Delete la_get_symbol_name_matcher
3261 initializer.
3262 (cplus_language_data): Likewise.
3263 (cplus_language::get_symbol_name_matcher_inner): New member
3264 function.
3265 (asm_language_data): Delete la_get_symbol_name_matcher initializer.
3266 (minimal_language_data): Likewise.
3267 * cp-support.h (cp_get_symbol_name_matcher): Update header comment.
3268 * d-lang.c (d_language_data): Delete la_get_symbol_name_matcher
3269 initializer.
3270 * dictionary.c (iter_match_first_hashed): Update call to
3271 get_symbol_name_matcher.
3272 (iter_match_next_hashed): Likewise.
3273 (iter_match_next_linear): Likewise.
3274 * dwarf2/read.c (dw2_expand_symtabs_matching_symbol): Likewise.
3275 * f-lang.c (f_language_data): Delete la_get_symbol_name_matcher
3276 initializer.
3277 (f_language::get_symbol_name_matcher_inner): New member function.
3278 * go-lang.c (go_language_data): Delete la_get_symbol_name_matcher
3279 initializer.
3280 * language.c (default_symbol_name_matcher): Update header comment,
3281 make static.
3282 (language_defn::get_symbol_name_matcher): New definition.
3283 (language_defn::get_symbol_name_matcher_inner): Likewise.
3284 (get_symbol_name_matcher): Delete.
3285 (unknown_language_data): Delete la_get_symbol_name_matcher
3286 initializer.
3287 (auto_language_data): Likewise.
3288 * language.h (language_data): Delete la_get_symbol_name_matcher
3289 field.
3290 (language_defn::get_symbol_name_matcher): New member function.
3291 (language_defn::get_symbol_name_matcher_inner): Likewise.
3292 (default_symbol_name_matcher): Delete declaration.
3293 * linespec.c (find_methods): Update call to
3294 get_symbol_name_matcher.
3295 * m2-lang.c (m2_language_data): Delete la_get_symbol_name_matcher
3296 initializer.
3297 * minsyms.c (lookup_minimal_symbol): Update call to
3298 get_symbol_name_matcher.
3299 (iterate_over_minimal_symbols): Likewise.
3300 * objc-lang.c (objc_language_data): Delete
3301 la_get_symbol_name_matcher initializer.
3302 * opencl-lang.c (opencl_language_data): Likewise.
3303 * p-lang.c (pascal_language_data): Likewise.
3304 * psymtab.c (psymbol_name_matches): Update call to
3305 get_symbol_name_matcher.
3306 * rust-lang.c (rust_language_data): Delete
3307 la_get_symbol_name_matcher initializer.
3308 * symtab.c (symbol_matches_search_name): Update call to
3309 get_symbol_name_matcher.
3310 (compare_symbol_name): Likewise.
3311
3312 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
3313
3314 * ada-lang.c (ada_language_data): Delete la_compute_program
3315 initializer.
3316 * c-lang.c (c_language_data): Likewise.
3317 (c_language::compute_program): New member function.
3318 (cplus_language_data): Delete la_compute_program initializer.
3319 (cplus_language::compute_program): New member function.
3320 (asm_language_data): Delete la_compute_program initializer.
3321 (minimal_language_data): Likewise.
3322 * c-lang.h (c_compute_program): Update comment.
3323 (cplus_compute_program): Likewise.
3324 * compile/compile-c-support.c (c_compute_program): Likewise.
3325 (cplus_compute_program): Likewise.
3326 * compile/compile.c (compile_to_object): Update call to
3327 la_compute_program.
3328 * d-lang.c (d_language_data): Delete la_compute_program
3329 initializer.
3330 * f-lang.c (f_language_data): Likewise.
3331 * go-lang.c (go_language_data): Likewise.
3332 * language.c (unknown_language_data): Likewise.
3333 (auto_language_data): Likewise.
3334 * language.h (language_data): Delete la_compute_program field.
3335 (language_defn::compute_program): New member function.
3336 * m2-lang.c (m2_language_data): Delete la_compute_program
3337 initializer.
3338 * objc-lang.c (objc_language_data): Likewise.
3339 * opencl-lang.c (opencl_language_data): Likewise.
3340 * p-lang.c (pascal_language_data): Likewise.
3341 * rust-lang.c (rust_language_data): Likewise.
3342
3343 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
3344
3345 * ada-lang.c (ada_language_data) Delete
3346 la_class_name_from_physname initializer.
3347 * c-lang.c (c_language_data): Likewise.
3348 (cplus_language_data): Likewise.
3349 (cplus_language::class_name_from_physname): New member function.
3350 (asm_language_data): Delete la_class_name_from_physname
3351 initializer.
3352 (minimal_language_data): Likewise.
3353 * d-lang.c (d_language_data): Likewise.
3354 * dwarf2/read.c (guess_partial_die_structure_name): Update to call
3355 method on language_defn class.
3356 (guess_full_die_structure_name): Likewise.
3357 * f-lang.c (f_language_data): Delete la_class_name_from_physname
3358 initializer.
3359 * go-lang.c (go_language_data): Likewise.
3360 * language.c (language_class_name_from_physname): Delete.
3361 (unk_lang_class_name): Delete.
3362 (unknown_language_data): Delete la_class_name_from_physname
3363 initializer.
3364 (auto_language_data): Likewise.
3365 * language.h (language_data): Delete la_class_name_from_physname
3366 field.
3367 (language_defn::class_name_from_physname): New function.
3368 (language_class_name_from_physname): Delete declaration.
3369 * m2-lang.c (m2_language_data): Delete la_class_name_from_physname
3370 initializer.
3371 * objc-lang.c (objc_language_data): Likewise.
3372 * opencl-lang.c (opencl_language_data): Likewise.
3373 * p-lang.c (pascal_language_data): Likewise.
3374 * rust-lang.c (rust_language_data): Likewise.
3375
3376 2020-06-16 Tom Tromey <tom@tromey.com>
3377
3378 * tui/tui-data.h (STATUS_NAME): New macro.
3379 * tui/tui-layout.c (tui_remove_some_windows)
3380 (initialize_known_windows, tui_register_window)
3381 (tui_layout_split::remove_windows, initialize_layouts)
3382 (tui_new_layout_command): Don't use hard-coded window names.
3383
3384 2020-06-16 Tom Tromey <tom@tromey.com>
3385
3386 PR tui/25348:
3387 * tui/tui.c (tui_ensure_readline_initialized): Rename from
3388 tui_initialize_readline. Only run once. Call rl_initialize.
3389 * tui/tui.h (tui_ensure_readline_initialized): Rename from
3390 tui_initialize_readline.
3391 * tui/tui-io.c (tui_setup_io): Call
3392 tui_ensure_readline_initialized.
3393 * tui/tui-interp.c (tui_interp::init): Update.
3394
3395 2020-06-16 Tom Tromey <tom@tromey.com>
3396
3397 * tui/tui-layout.c (tui_layout_split::remove_windows): Fix logic.
3398 Also preserve the status window.
3399
3400 2020-06-16 Tom Tromey <tom@tromey.com>
3401
3402 * python/py-tui.c (tui_py_window::~tui_py_window): Handle case
3403 where m_window==nullptr.
3404
3405 2020-06-15 Tom Tromey <tromey@adacore.com>
3406
3407 * windows-nat.c (windows_nat::handle_output_debug_string):
3408 Update.
3409 (windows_nat::handle_ms_vc_exception): Update.
3410 * target.h (target_read_string): Change API.
3411 * target.c (target_read_string): Change API.
3412 * solib-svr4.c (open_symbol_file_object, svr4_read_so_list):
3413 Update.
3414 * solib-frv.c (frv_current_sos): Update.
3415 * solib-dsbt.c (dsbt_current_sos): Update.
3416 * solib-darwin.c (darwin_current_sos): Update.
3417 * linux-thread-db.c (inferior_has_bug): Update.
3418 * expprint.c (print_subexp_standard): Update.
3419 * ada-lang.c (ada_main_name, ada_tag_name_from_tsd)
3420 (ada_exception_message_1): Update.
3421
3422 2020-06-15 Tom Tromey <tromey@adacore.com>
3423
3424 * linux-tdep.c (dump_mapping_p): Use target_read_memory.
3425
3426 2020-06-15 Tom Tromey <tromey@adacore.com>
3427
3428 * valprint.c (read_string): Update comment.
3429 * target.c (MIN): Remove.
3430 (target_read_string): Rewrite.
3431
3432 2020-06-15 Tom Tromey <tromey@adacore.com>
3433
3434 * corefile.c (read_memory_string): Remove.
3435 * ada-valprint.c (ada_value_print_ptr): Update.
3436 * ada-lang.h (ada_tag_name): Change return type.
3437 * ada-lang.c (type_from_tag): Update.
3438 (ada_tag_name_from_tsd): Change return type. Use
3439 target_read_string.
3440 (ada_tag_name): Likewise.
3441 * gdbcore.h (read_memory_string): Don't declare.
3442
3443 2020-06-14 Hannes Domani <ssbssa@yahoo.de>
3444
3445 * symtab.c (rbreak_command): Ignore Windows drive colon.
3446
3447 2020-06-12 Simon Marchi <simon.marchi@efficios.com>
3448
3449 * NEWS: Mention removed GDBserver host support.
3450
3451 2020-06-12 Nelson Chu <nelson.chu@sifive.com>
3452
3453 * features/riscv/rebuild-csr-xml.sh: Updated.
3454
3455 2020-06-11 Tom Tromey <tom@tromey.com>
3456
3457 PR gdb/18318:
3458 * c-exp.y (lex_one_token): Handle 'p' like 'e'.
3459
3460 2020-06-09 Jonny Grant <jg@jguk.org>
3461 2020-06-09 Simon Marchi <simon.marchi@polymtl.ca>
3462
3463 * main.c (captured_main_1): Don't print new line after help.
3464 (print_gdb_help): add mailing list and IRC channel information
3465 to --help. Add new lines between items in the footer. Remove
3466 quotes around bug url.
3467
3468 2020-06-11 Keith Seitz <keiths@redhat.com>
3469
3470 PR gdb/21356
3471 * gdbtypes.c (resolve_dynamic_union, resolve_dynamic_struct):
3472 Resolve typedefs for type length calculations.
3473
3474 2020-06-10 Tom de Vries <tdevries@suse.de>
3475
3476 PR ada/24713
3477 * dwarf2/index-write.c (struct mapped_symtab): Add m_string_obstack.
3478 (write_psymbols): Enable .gdb_index for ada.
3479 * dwarf2/read.c: Remove comment stating .gdb_index is unsupported for
3480 ada.
3481
3482 2020-06-10 Tom de Vries <tdevries@suse.de>
3483
3484 * dwarf2/read.c (dw2_symtab_iter_init_common): Factor out of ...
3485 (dw2_symtab_iter_init): ... here. Add variant with "offset_type
3486 namei" instead of "const char *name" argument.
3487 (dw2_map_matching_symbols): Use "offset_type namei" variant of
3488 dw2_symtab_iter_init.
3489
3490 2020-06-08 Simon Marchi <simon.marchi@efficios.com>
3491
3492 * gdbtypes.h (TYPE_FIELD_TYPE): Remove. Change all call sites
3493 to use type::field and field::type instead.
3494
3495 2020-06-08 Simon Marchi <simon.marchi@efficios.com>
3496
3497 * gdbtypes.h (FIELD_TYPE): Remove. Change all call sites
3498 to use field::type instead.
3499
3500 2020-06-08 Simon Marchi <simon.marchi@efficios.com>
3501
3502 * gdbtypes.h (struct field) <type, set_type>: New methods.
3503 Rename `type` field to...
3504 <m_type>: ... this. Change references throughout to use type or
3505 set_type methods.
3506 (FIELD_TYPE): Use field::type. Change call sites that modify
3507 the field's type to use field::set_type instead.
3508
3509 2020-06-08 Simon Marchi <simon.marchi@efficios.com>
3510
3511 * gdbtypes.h (TYPE_INDEX_TYPE): Remove. Change all call sites
3512 to use type::index_type instead.
3513
3514 2020-06-08 Simon Marchi <simon.marchi@efficios.com>
3515
3516 * gdbtypes.h (struct type) <index_type, set_index_type>: New
3517 methods.
3518 (TYPE_INDEX_TYPE): Use type::index_type.
3519 * gdbtypes.c (create_array_type_with_stride): Likewise.
3520
3521 2020-06-07 Tom Tromey <tom@tromey.com>
3522
3523 * valprint.c (generic_val_print_float): Remove "embedded_offset"
3524 parameter.
3525 (generic_value_print): Update.
3526
3527 2020-06-05 Andrew Burgess <andrew.burgess@embecosm.com>
3528
3529 Revert commit 982a38f60b0.
3530 * python/py-tui.c (gdbpy_tui_set_title): Restore use of get.
3531
3532 2020-06-05 Andrew Burgess <andrew.burgess@embecosm.com>
3533
3534 * python/py-tui.c (gdbpy_tui_set_title): Use release, not get, to
3535 avoid use after free.
3536
3537 2020-06-05 Tom de Vries <tdevries@suse.de>
3538
3539 * NEWS: Fix typos.
3540
3541 2020-06-04 Simon Marchi <simon.marchi@efficios.com>
3542
3543 * dwarf2/read.c (dwarf2_read_gdb_index): Save partial_symtabs in
3544 the per_bfd object.
3545 (dwarf2_read_debug_names): Likewise.
3546 (dwarf2_initialize_objfile): Use partial_symtabs from per_bfd
3547 object when re-using a per_bfd object with an index.
3548
3549 2020-06-03 Tom de Vries <tdevries@suse.de>
3550
3551 PR symtab/26046
3552 * dwarf2/read.c (scan_partial_symbols): Recurse into DW_TAG_subprogram
3553 children for C++.
3554 (load_partial_dies): Don't skip DW_TAG_inlined_subroutine child of
3555 DW_TAG_subprogram.
3556
3557 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
3558
3559 * ada-lang.c (ada_language_data): Delete skip_trampoline
3560 initializer.
3561 * c-lang.c (c_language_data): Likewise.
3562 (cplus_language_data): Likewise.
3563 (cplus_language::skip_trampoline): New member function.
3564 (asm_language_data): Delete skip_trampoline initializer.
3565 (minimal_language_data): Likewise.
3566 * d-lang.c (d_language_data): Likewise.
3567 * f-lang.c (f_language_data): Likewise.
3568 * go-lang.c (go_language_data): Likewise.
3569 * language.c (unk_lang_trampoline): Delete function.
3570 (skip_language_trampoline): Update.
3571 (unknown_language_data): Delete skip_trampoline initializer.
3572 (auto_language_data): Likewise.
3573 * language.h (language_data): Delete skip_trampoline field.
3574 (language_defn::skip_trampoline): New function.
3575 * m2-lang.c (m2_language_data): Delete skip_trampoline
3576 initializer.
3577 * objc-lang.c (objc_skip_trampoline): Delete function, move
3578 implementation to objc_language::skip_trampoline.
3579 (objc_language_data): Delete skip_trampoline initializer.
3580 (objc_language::skip_trampoline): New member function with
3581 implementation from objc_skip_trampoline.
3582 * opencl-lang.c (opencl_language_data): Delete skip_trampoline
3583 initializer.
3584 * p-lang.c (pascal_language_data): Likewise.
3585 * rust-lang.c (rust_language_data): Likewise.
3586
3587 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
3588
3589 * ada-lang.c (ada_language_data): Delete la_demangle initializer.
3590 (ada_language::demangle): New member function.
3591 * c-lang.c (c_language_data): Delete la_demangle initializer.
3592 (cplus_language_data): Delete la_demangle initializer.
3593 (cplus_language::demangle): New member function.
3594 (asm_language_data): Delete la_demangle initializer.
3595 (minimal_language_data): Delete la_demangle initializer.
3596 * d-lang.c (d_language_data): Delete la_demangle initializer.
3597 (d_language::demangle): New member function.
3598 * f-lang.c (f_language_data): Delete la_demangle initializer.
3599 (f_language::demangle): New member function.
3600 * go-lang.c (go_language_data): Delete la_demangle initializer.
3601 (go_language::demangle): New member function.
3602 * language.c (language_demangle): Update.
3603 (unk_lang_demangle): Delete.
3604 (unknown_language_data): Delete la_demangle initializer.
3605 (unknown_language::demangle): New member function.
3606 (auto_language_data): Delete la_demangle initializer.
3607 (auto_language::demangle): New member function.
3608 * language.h (language_data): Delete la_demangle field.
3609 (language_defn::demangle): New function.
3610 * m2-lang.c (m2_language_data): Delete la_demangle initializer.
3611 * objc-lang.c (objc_language_data): Delete la_demangle
3612 initializer.
3613 (objc_language::demangle): New member function.
3614 * opencl-lang.c (opencl_language_data): Delete la_demangle
3615 initializer.
3616 * p-lang.c (pascal_language_data): Likewise.
3617 * rust-lang.c (rust_language_data): Likewise.
3618 (rust_language::demangle): New member function.
3619
3620 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
3621
3622 * ada-lang.c (ada_language_data): Delete la_print_type
3623 initializer.
3624 (ada_language::print_type): New member function.
3625 * c-lang.c (c_language_data): Delete la_print_type initializer.
3626 (c_language::print_type): New member function.
3627 (cplus_language_data): Delete la_print_type initializer.
3628 (cplus_language::print_type): New member function.
3629 (asm_language_data): Delete la_print_type initializer.
3630 (asm_language::print_type): New member function.
3631 (minimal_language_data): Delete la_print_type initializer.
3632 (minimal_language::print_type): New member function.
3633 * d-lang.c (d_language_data): Delete la_print_type initializer.
3634 (d_language::print_type): New member function.
3635 * f-lang.c (f_language_data): Delete la_print_type initializer.
3636 (f_language::print_type): New member function.
3637 * go-lang.c (go_language_data): Delete la_print_type initializer.
3638 (go_language::print_type): New member function.
3639 * language.c (unk_lang_print_type): Delete.
3640 (unknown_language_data): Delete la_print_type initializer.
3641 (unknown_language::print_type): New member function.
3642 (auto_language_data): Delete la_print_type initializer.
3643 (auto_language::print_type): New member function.
3644 * language.h (language_data): Delete la_print_type field.
3645 (language_defn::print_type): New function.
3646 (LA_PRINT_TYPE): Update.
3647 * m2-lang.c (m2_language_data): Delete la_print_type initializer.
3648 (m2_language::print_type): New member function.
3649 * objc-lang.c (objc_language_data): Delete la_print_type
3650 initializer.
3651 (objc_language::print_type): New member function.
3652 * opencl-lang.c (opencl_print_type): Delete, implementation moved
3653 to opencl_language::print_type.
3654 (opencl_language_data): Delete la_print_type initializer.
3655 (opencl_language::print_type): New member function, implementation
3656 from opencl_print_type.
3657 * p-lang.c (pascal_language_data): Delete la_print_type
3658 initializer.
3659 (pascal_language::print_type): New member function.
3660 * rust-lang.c (rust_print_type): Delete, implementation moved to
3661 rust_language::print_type.
3662 (rust_language_data): Delete la_print_type initializer.
3663 (rust_language::print_type): New member function, implementation
3664 from rust_print_type.
3665
3666 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
3667
3668 * ada-lang.c (ada_sniff_from_mangled_name): Delete function,
3669 implementation moves to...
3670 (ada_language::sniff_from_mangled_name): ...here. Update return
3671 type.
3672 (ada_language_data): Delete la_sniff_from_mangled_name
3673 initializer.
3674 * c-lang.c (c_language_data): Likewise.
3675 (cplus_language_data): Likewise.
3676 (cplus_language::sniff_from_mangled_name): New member function,
3677 implementation taken from gdb_sniff_from_mangled_name.
3678 (asm_language_data): Delete la_sniff_from_mangled_name
3679 initializer.
3680 (minimal_language_data): Likewise.
3681 * cp-support.c (gdb_sniff_from_mangled_name): Delete,
3682 implementation moves to cplus_language::sniff_from_mangled_name.
3683 * cp-support.h (gdb_sniff_from_mangled_name): Delete declaration.
3684 * d-lang.c (d_sniff_from_mangled_name): Delete, implementation
3685 moves to...
3686 (d_language::sniff_from_mangled_name): ...here.
3687 (d_language_data): Delete la_sniff_from_mangled_name initializer.
3688 * f-lang.c (f_language_data): Likewise.
3689 * go-lang.c (go_sniff_from_mangled_name): Delete, implementation
3690 moves to...
3691 (go_language::sniff_from_mangled_name): ...here.
3692 (go_language_data): Delete la_sniff_from_mangled_name initializer.
3693 * language.c (language_sniff_from_mangled_name): Delete.
3694 (unknown_language_data): Delete la_sniff_from_mangled_name
3695 initializer.
3696 (auto_language_data): Likewise.
3697 * language.h (language_data): Delete la_sniff_from_mangled_name
3698 field.
3699 (language_defn::sniff_from_mangled_name): New function.
3700 (language_sniff_from_mangled_name): Delete declaration.
3701 * m2-lang.c (m2_language_data): Delete la_sniff_from_mangled_name
3702 field.
3703 * objc-lang.c (objc_sniff_from_mangled_name): Delete,
3704 implementation moves to...
3705 (objc_language::sniff_from_mangled_name): ...here.
3706 (objc_language_data): Delete la_sniff_from_mangled_name initializer.
3707 * opencl-lang.c (opencl_language_data): Likewise.
3708 * p-lang.c (pascal_language_data): Likewise.
3709 * rust-lang.c (rust_sniff_from_mangled_name): Delete,
3710 implementation moves to...
3711 (rust_language::sniff_from_mangled_name): ...here.
3712 (rust_language_data): Delete la_sniff_from_mangled_name
3713 initializer.
3714 * symtab.c (symbol_find_demangled_name): Call
3715 sniff_from_mangled_name member function.
3716
3717 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
3718
3719 * ada-lang.c (ada_language_data): Delete la_search_name_hash
3720 initializer.
3721 * c-lang.c (c_language_data): Likewise.
3722 (cplus_language_data): Likewise.
3723 (cplus_language::search_name_hash): New member function.
3724 (asm_language_data): Delete la_search_name_hash initializer.
3725 (minimal_language_data): Likewise.
3726 * d-lang.c (d_language_data): Likewise.
3727 * dictionary.c (default_search_name_hash): Rename to...
3728 (language_defn::search_name_hash): ...this.
3729 * f-lang.c (f_language_data): Likewise.
3730 (f_language::search_name_hash): New member function.
3731 * go-lang.c (go_language_data): Delete la_search_name_hash
3732 initializer.
3733 * language.c (unknown_language_data): Likewise.
3734 (auto_language_data): Likewise.
3735 * language.h (struct language_data): Delete la_search_name_hash
3736 field.
3737 (language_defn::search_name_hash): Declare new member function.
3738 (default_search_name_hash): Delete declaration.
3739 * m2-lang.c (m2_language_data): Delete la_search_name_hash
3740 initializer.
3741 * objc-lang.c (objc_language_data): Likewise.
3742 * opencl-lang.c (opencl_language_data): Likewise.
3743 * p-lang.c (pascal_language_data): Likewise.
3744 * rust-lang.c (rust_language_data): Likewise.
3745 * symtab.c (search_name_hash): Update call.
3746
3747 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
3748
3749 * ada-lang.c (ada_language_data): Delete la_get_compile_instance
3750 initializer.
3751 * c-lang.c (class compile_instance): Declare.
3752 (c_language_data): Delete la_get_compile_instance initializer.
3753 (c_language::get_compile_instance): New member function.
3754 (cplus_language_data): Delete la_get_compile_instance initializer.
3755 (cplus_language::get_compile_instance): New member function.
3756 (asm_language_data): Delete la_get_compile_instance initializer.
3757 (minimal_language_data): Likewise.
3758 * c-lang.h (c_get_compile_context): Update comment.
3759 (cplus_get_compile_context): Update comment.
3760 * compile/compile.c (compile_to_object): Update calls, don't rely
3761 on function pointer being NULL.
3762 * d-lang.c (d_language_data): Delete la_get_compile_instance
3763 initializer.
3764 * f-lang.c (f_language_data): Likewise.
3765 * go-lang.c (go_language_data): Likewise.
3766 * language.c (unknown_language_data): Likewise.
3767 (auto_language_data): Likewise.
3768 * language.h (language_data): Delete la_get_compile_instance field.
3769 (language_defn::get_compile_instance): New member function.
3770 * m2-lang.c (m2_language_data): Delete la_get_compile_instance
3771 initializer.
3772 * objc-lang.c (objc_language_data): Likewise.
3773 * opencl-lang.c (opencl_language_data): Likewise.
3774 * p-lang.c (pascal_language_data): Likewise.
3775 * rust-lang.c (rust_language_data): Likewise.
3776
3777 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
3778
3779 * ada-lang.c (ada_add_all_symbols): Update comment.
3780 (ada_iterate_over_symbols): Delete, move implementation to...
3781 (ada_language::iterate_over_symbols): ...here, a new member
3782 function, rewrite to use range based for loop.
3783 (ada_language_data): Delete la_iterate_over_symbols initializer.
3784 * c-lang.c (c_language_data): Likewise.
3785 (cplus_language_data): Likewise.
3786 (asm_language_data): Likewise.
3787 (minimal_language_data): Likewise.
3788 * d-lang.c (d_language_data): Likewise.
3789 * f-lang.c (f_language_data): Likewise.
3790 * go-lang.c (go_language_data): Likewise.
3791 * language.c (unknown_language_data): Likewise.
3792 (auto_language_data): Likewise.
3793 * language.h (language_data): Delete la_iterate_over_symbols field.
3794 (language_defn::iterate_over_symbols): New member function.
3795 (LA_ITERATE_OVER_SYMBOLS): Update.
3796 * linespec.c (iterate_over_all_matching_symtabs): Update.
3797 * m2-lang.c (m2_language_data): Delete la_iterate_over_symbols
3798 initializer.
3799 * objc-lang.c (objc_language_data): Likewise.
3800 * opencl-lang.c (opencl_language_data): Likewise.
3801 * p-lang.c (pascal_language_data): Likewise.
3802 * rust-lang.c (rust_language_data): Likewise.
3803
3804 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
3805
3806 * ada-lang.c (ada_language_data): Delete
3807 la_lookup_transparent_type initializer.
3808 * c-lang.c (c_language_data): Likewise.
3809 (cplus_language_data): Likewise.
3810 (cplus_language::lookup_transparent_type): New member function.
3811 (asm_language_data): Delete la_lookup_transparent_type
3812 initializer.
3813 (minimal_language_data): Likewise.
3814 * d-lang.c (d_language_data): Likewise.
3815 * f-lang.c (f_language_data): Likewise.
3816 * go-lang.c (go_language_data): Likewise.
3817 * language.c (unknown_language_data): Likewise.
3818 (auto_language_data): Likewise.
3819 * language.h (struct language_data): Delete
3820 la_lookup_transparent_type field.
3821 (language_defn::lookup_transparent_type): New member function.
3822 * m2-lang.c (m2_language_data): Delete la_lookup_transparent_type
3823 initializer.
3824 * objc-lang.c (objc_language_data): Likewise.
3825 * opencl-lang.c (opencl_language_data): Likewise.
3826 * p-lang.c (pascal_language_data): Likewise.
3827 * rust-lang.c (rust_language_data): Likewise.
3828 * symtab.c (symbol_matches_domain): Update call.
3829
3830 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
3831
3832 * ada-lang.c (ada_language_arch_info): Delete function, move
3833 implementation to...
3834 (ada_language::language_arch_info): ...here, a new member
3835 function.
3836 (ada_language_data): Delete la_language_arch_info.
3837 * c-lang.c (c_language_data): Likewise.
3838 (c_language::language_arch_info): New member function.
3839 (cplus_language_arch_info): Delete function, move
3840 implementation to...
3841 (cplus_language::language_arch_info): ...here, a new member
3842 function.
3843 (cplus_language_data): Delete la_language_arch_info.
3844 (asm_language_data): Likewise.
3845 (asm_language::language_arch_info): New member function.
3846 (minimal_language_data): Delete la_language_arch_info.
3847 (minimal_language::language_arch_info): New member function.
3848 * d-lang.c (d_language_arch_info): Delete function, move
3849 implementation to...
3850 (d_language::language_arch_info): ...here, a new member
3851 function.
3852 (d_language_data): Delete la_language_arch_info.
3853 * f-lang.c (f_language_arch_info): Delete function, move
3854 implementation to...
3855 (f_language::language_arch_info): ...here, a new member
3856 function.
3857 (f_language_data): Delete la_language_arch_info.
3858 * go-lang.c (go_language_arch_info): Delete function, move
3859 implementation to...
3860 (go_language::language_arch_info): ...here, a new member
3861 function.
3862 (go_language_data): Delete la_language_arch_info.
3863 * language.c (unknown_language_data): Likewise.
3864 (unknown_language::language_arch_info): New member function.
3865 (auto_language_data): Delete la_language_arch_info.
3866 (auto_language::language_arch_info): New member function.
3867 (language_gdbarch_post_init): Update call to
3868 la_language_arch_info.
3869 * language.h (language_data): Delete la_language_arch_info
3870 function pointer.
3871 (language_defn::language_arch_info): New function.
3872 * m2-lang.c (m2_language_arch_info): Delete function, move
3873 implementation to...
3874 (m2_language::language_arch_info): ...here, a new member
3875 function.
3876 (m2_language_data): Delete la_language_arch_info.
3877 * objc-lang.c (objc_language_arch_info): Delete function, move
3878 implementation to...
3879 (objc_language::language_arch_info): ...here, a new member
3880 function.
3881 (objc_language_data): Delete la_language_arch_info.
3882 * opencl-lang.c (opencl_language_arch_info): Delete function, move
3883 implementation to...
3884 (opencl_language::language_arch_info): ...here, a new member
3885 function.
3886 (opencl_language_data): Delete la_language_arch_info.
3887 * p-lang.c (pascal_language_arch_info): Delete function, move
3888 implementation to...
3889 (pascal_language::language_arch_info): ...here, a new member
3890 function.
3891 (pascal_language_data): Delete la_language_arch_info.
3892 * rust-lang.c (rust_language_arch_info): Delete function, move
3893 implementation to...
3894 (rust_language::language_arch_info): ...here, a new member
3895 function.
3896 (rust_language_data): Delete la_language_arch_info.
3897
3898 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
3899
3900 * ada-lang.c (ada_language_data): Delete la_pass_by_reference
3901 initializer.
3902 * c-lang.c (c_language_data): Likewise.
3903 (cplus_language_data): Likewise.
3904 (cplus_language::pass_by_reference_info): New method.
3905 (asm_language_data): Delete la_pass_by_reference initializer.
3906 (minimal_language_data): Likewise.
3907 * cp-abi.c (cp_pass_by_reference): Remove use of
3908 default_pass_by_reference.
3909 * d-lang.c (d_language_data): Likewise.
3910 * f-lang.c (f_language_data): Likewise.
3911 * gnu-v3-abi.c (gnuv3_pass_by_reference): Remove use of
3912 default_pass_by_reference.
3913 * go-lang.c (go_language_data): Likewise.
3914 * language.c (language_pass_by_reference): Update.
3915 (default_pass_by_reference): Delete.
3916 (unknown_language_data): Delete la_pass_by_reference
3917 initializer.
3918 (auto_language_data): Likewise.
3919 * language.h (struct language_data): Delete la_pass_by_reference
3920 field.
3921 (language_defn::pass_by_reference_info): New member function.
3922 (default_pass_by_reference): Delete declaration.
3923 * m2-lang.c (m2_language_data): Delete la_pass_by_reference
3924 initializer.
3925 * objc-lang.c (objc_language_data): Likewise.
3926 * opencl-lang.c (opencl_language_data): Likewise.
3927 * p-lang.c (pascal_language_data): Likewise.
3928 * rust-lang.c (rust_language_data): Likewise.
3929
3930 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
3931
3932 * ada-lang.c (ada_read_var_value): Delete function, move
3933 implementation to...
3934 (ada_language::read_var_value): ...here.
3935 (ada_language_data): Delete la_read_var_value initializer.
3936 * c-lang.c (c_language_data): Likewise.
3937 (cplus_language_data): Likewise.
3938 (minimal_language_data): Likewise.
3939 * d-lang.c (d_language_data): Likewise.
3940 * f-lang.c (f_language_data): Likewise.
3941 * findvar.c (default_read_var_value): Rename to...
3942 (language_defn::read_var_value): ...this.
3943 * findvar.c (read_var_value): Update header comment, and change to
3944 call member function instead of function pointer.
3945 * go-lang.c (go_language_data): Likewise.
3946 * language.c (unknown_language_data): Delete la_read_var_value
3947 initializer.
3948 (auto_language_data): Likewise.
3949 * language.h (struct language_data): Delete la_read_var_value
3950 field.
3951 (language_defn::read_var_value): New member function.
3952 (default_read_var_value): Delete declaration.
3953 * m2-lang.c (m2_language_data): Delete la_read_var_value
3954 initializer.
3955 * objc-lang.c (objc_language_data): Likewise.
3956 * opencl-lang.c (opencl_language_data): Likewise.
3957 * p-lang.c (pascal_language_data): Likewise.
3958 * rust-lang.c (rust_language_data): Likewise.
3959 * value.h (default_read_var_value): Delete declaration.
3960
3961 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
3962
3963 * ada-lang.c (ada_print_array_index): Delete function, move
3964 implementation to...
3965 (ada_language::print_array_index): ...here.
3966 (ada_language_data): Delete la_print_array_index initializer.
3967 * c-lang.c (c_language_data): Likewise.
3968 (cplus_language_data): Likewise.
3969 (minimal_language_data): Likewise.
3970 * d-lang.c (d_language_data): Likewise.
3971 * f-lang.c (f_language_data): Likewise.
3972 * go-lang.c (go_language_data): Likewise.
3973 * language.c (default_print_array_index): Delete function, move
3974 implementation to...
3975 (language_defn::print_array_index): ...here.
3976 (unknown_language_data): Delete la_print_array_index initializer.
3977 (auto_language_data): Likewise.
3978 * language.h (struct language_data): Delete la_print_array_index
3979 field.
3980 (language_defn::print_array_index): New member function.
3981 (LA_PRINT_ARRAY_INDEX): Update.
3982 (default_print_array_index): Delete declaration.
3983 * m2-lang.c (m2_language_data): Delete la_print_array_index
3984 initializer.
3985 * objc-lang.c (objc_language_data): Likewise.
3986 * opencl-lang.c (opencl_language_data): Likewise.
3987 * p-lang.c (pascal_language_data): Likewise.
3988 * rust-lang.c (rust_language_data): Likewise.
3989
3990 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
3991
3992 * gdb/ada-lang.c (ada_language_defn): Convert to...
3993 (ada_language_data): ...this.
3994 (class ada_language): New class.
3995 (ada_language_defn): New static global.
3996 * gdb/c-lang.c (c_language_defn): Convert to...
3997 (c_language_data): ...this.
3998 (class c_language): New class.
3999 (c_language_defn): New static global.
4000 (cplus_language_defn): Convert to...
4001 (cplus_language_data): ...this.
4002 (class cplus_language): New class.
4003 (cplus_language_defn): New static global.
4004 (asm_language_defn): Convert to...
4005 (asm_language_data): ...this.
4006 (class asm_language): New class.
4007 (asm_language_defn): New static global.
4008 (minimal_language_defn): Convert to...
4009 (minimal_language_data): ...this.
4010 (class minimal_language): New class.
4011 (minimal_language_defn): New static global.
4012 * gdb/d-lang.c (d_language_defn): Convert to...
4013 (d_language_data): ...this.
4014 (class d_language): New class.
4015 (d_language_defn): New static global.
4016 * gdb/f-lang.c (f_language_defn): Convert to...
4017 (f_language_data): ...this.
4018 (class f_language): New class.
4019 (f_language_defn): New static global.
4020 * gdb/go-lang.c (go_language_defn): Convert to...
4021 (go_language_data): ...this.
4022 (class go_language): New class.
4023 (go_language_defn): New static global.
4024 * gdb/language.c (unknown_language_defn): Remove declaration.
4025 (current_language): Initialize to nullptr, real initialization is
4026 moved to _initialize_language.
4027 (languages): Delete global.
4028 (language_defn::languages): Define.
4029 (set_language_command): Use language_defn::languages.
4030 (set_language): Likewise.
4031 (range_error): Likewise.
4032 (language_enum): Likewise.
4033 (language_def): Likewise.
4034 (add_set_language_command): Use language_def::languages for the
4035 language list, and language_def to lookup language pointers.
4036 (skip_language_trampoline): Use language_defn::languages.
4037 (unknown_language_defn): Convert to...
4038 (unknown_language_data): ...this.
4039 (class unknown_language): New class.
4040 (unknown_language_defn): New static global.
4041 (auto_language_defn): Convert to...
4042 (auto_language_data): ...this.
4043 (class auto_language): New class.
4044 (auto_language_defn): New static global.
4045 (language_gdbarch_post_init): Use language_defn::languages.
4046 (_initialize_language): Initialize current_language.
4047 * gdb/language.h (struct language_defn): Rename to...
4048 (struct language_data): ...this.
4049 (struct language_defn): New.
4050 (auto_language_defn): Delete.
4051 (unknown_language_defn): Delete.
4052 (minimal_language_defn): Delete.
4053 (ada_language_defn): Delete.
4054 (asm_language_defn): Delete.
4055 (c_language_defn): Delete.
4056 (cplus_language_defn): Delete.
4057 (d_language_defn): Delete.
4058 (f_language_defn): Delete.
4059 (go_language_defn): Delete.
4060 (m2_language_defn): Delete.
4061 (objc_language_defn): Delete.
4062 (opencl_language_defn): Delete.
4063 (pascal_language_defn): Delete.
4064 (rust_language_defn): Delete.
4065 * gdb/m2-lang.c (m2_language_defn): Convert to...
4066 (m2_language_data): ...this.
4067 (class m2_language): New class.
4068 (m2_language_defn): New static global.
4069 * gdb/objc-lang.c (objc_language_defn): Convert to...
4070 (objc_language_data): ...this.
4071 (class objc_language): New class.
4072 (objc_language_defn): New static global.
4073 * gdb/opencl-lang.c (opencl_language_defn): Convert to...
4074 (opencl_language_data): ...this.
4075 (class opencl_language): New class.
4076 (opencl_language_defn): New static global.
4077 * gdb/p-lang.c (pascal_language_defn): Convert to...
4078 (pascal_language_data): ...this.
4079 (class pascal_language): New class.
4080 (pascal_language_defn): New static global.
4081 * gdb/rust-exp.y (rust_lex_tests): Use language_def to find
4082 language pointer, update comment format.
4083 * gdb/rust-lang.c (rust_language_defn): Convert to...
4084 (rust_language_data): ...this.
4085 (class rust_language): New class.
4086 (rust_language_defn): New static global.
4087
4088 2020-06-01 Andrew Burgess <andrew.burgess@embecosm.com>
4089
4090 * dwarf2/read.c (class lnp_state_machine) <m_last_address>: New
4091 member variable.
4092 <m_stmt_at_address>: New member variable.
4093 (lnp_state_machine::record_line): Don't record some lines, update
4094 tracking of is_stmt at the same address.
4095 (lnp_state_machine::lnp_state_machine): Initialise new member
4096 variables.
4097
4098 2020-06-01 Samuel Thibault <samuel.thibault@ens-lyon.org>
4099
4100 * config/i386/i386gnu.mn [%_S.o %_U.o] (COMPILE.post): Add
4101 "-include gnu-nat-mig.h".
4102 * gnu-nat-mig.h: New file.
4103 * gnu-nat.c: Include "gnu-nat-mig.h".
4104 (exc_server, msg_reply_server, notify_server,
4105 process_reply_server): Remove declarations.
4106
4107 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
4108
4109 * gnu-nat.h (inf_validate_procs, inf_suspend, inf_set_traced,
4110 steal_exc_port, proc_get_state, inf_clear_wait, inf_cleanup,
4111 inf_startup, inf_update_suspends, inf_set_pid, inf_steal_exc_ports,
4112 inf_validate_procinfo, inf_validate_task_sc, inf_restore_exc_ports,
4113 inf_set_threads_resume_sc, inf_set_threads_resume_sc_for_signal_thread,
4114 inf_resume, inf_set_step_thread, inf_detach, inf_attach, inf_signal,
4115 inf_continue, make_proc, proc_abort, _proc_free, proc_update_sc,
4116 proc_get_exception_port, proc_set_exception_port, _proc_get_exc_port,
4117 proc_steal_exc_port, proc_restore_exc_port, proc_trace): Move functions
4118 to gnu_nat_target class.
4119 * gnu-nat.c: Likewise.
4120 (inf_update_procs, S_proc_wait_reply, set_task_pause_cmd,
4121 set_task_exc_port_cmd, set_signals_cmd, set_thread_pause_cmd,
4122 set_thread_exc_port_cmd): Call inf_validate_procs through gnu_target
4123 object.
4124 (gnu_nat_target::create_inferior, gnu_nat_target::detach): Pass `this'
4125 instead of `gnu_target'.
4126
4127 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
4128
4129 * i386-gnu-tdep.c: Include "gdbcore.h"
4130 (gnu_sigtramp_code, i386_gnu_sc_reg_offset): New arrays.
4131 (GNU_SIGTRAMP_LEN, GNU_SIGTRAMP_TAIL,
4132 I386_GNU_SIGCONTEXT_THREAD_STATE_OFFSET): New macros
4133 (i386_gnu_sigtramp_start, i386_gnu_sigtramp_p,
4134 i386_gnu_sigcontext_addr): New functions
4135 (i386gnu_init_abi): Register i386_gnu_sigtramp_p,
4136 i386_gnu_sigcontext_addr, and i386_gnu_sc_reg_offset in the gdbarch
4137 tdep.
4138
4139 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
4140
4141 * gnu-nat.c (gnu_nat_target::create_inferior): Move push_target call
4142 before fork_inferior call. Avoid calling it if target_is_pushed returns
4143 true.
4144
4145 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
4146
4147 * gnu-nat.h (gnu_target): New variable declaration.
4148 * i386-gnu-nat.c (_initialize_i386gnu_nat): Initialize
4149 gnu_target.
4150 * gnu-nat.c (gnu_target): New variable.
4151 (inf_validate_procs): Pass gnu_target to thread_change_ptid,
4152 add_thread_silent, and add_thread calls.
4153 (gnu_nat_target::create_inferior): Pass gnu_target to
4154 add_thread_silent, thread_change_ptid call.
4155 (gnu_nat_target::detach): Pass gnu_target to detach_inferior
4156 call.
4157
4158 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
4159
4160 * gnu-nat.c (gnu_xfer_auxv): Remove unused `res' variable.
4161 (gnu_nat_target::find_memory_regions): Remove unused
4162 `old_address' variable.
4163
4164 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
4165
4166 * gnu-nat.c: Include "gdbarch.h".
4167
4168 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
4169
4170 * reply_mig_hack.awk (Error return): Cast function through
4171 void *, to bypass compiler function call check.
4172
4173 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
4174
4175 * config/i386/i386gnu.mn (%_reply_S.c): Add dependency on
4176 $(srcdir)/reply_mig_hack.awk.
4177
4178 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
4179
4180 * gnu-nat.h (gnu_debug_flag): Set type to bool.
4181
4182 2020-05-30 Jonny Grant <jg@jguk.org>
4183
4184 * configure.ac (ACX_BUGURL): change bug URL to https.
4185
4186 2020-05-30 Pedro Alves <palves@redhat.com>
4187
4188 * cp-support.c (replace_typedefs_template): New.
4189 (replace_typedefs_qualified_name): Handle
4190 DEMANGLE_COMPONENT_TEMPLATE.
4191
4192 2020-05-29 Simon Marchi <simon.marchi@efficios.com>
4193
4194 * dwarf2/comp-unit.c, dwarf2/comp-unit.h, dwarf2/index-cache.c,
4195 dwarf2/index-cache.h, dwarf2/index-write.c,
4196 dwarf2/index-write.h, dwarf2/line-header.c,
4197 dwarf2/line-header.h, dwarf2/macro.c, dwarf2/macro.h,
4198 dwarf2/read.c, dwarf2/read.h: Rename struct dwarf2_per_objfile
4199 variables and fields from `dwarf2_per_objfile` to just
4200 `per_objfile` throughout.
4201
4202 2020-05-28 Simon Marchi <simon.marchi@polymtl.ca>
4203
4204 * dwarf2/loc.c (class dwarf_evaluate_loc_desc)
4205 <push_dwarf_reg_entry_value>: Add comment.
4206
4207 2020-05-28 Kevin Buettner <kevinb@redhat.com>
4208 Keith Seitz <keiths@redhat.com>
4209
4210 * python/python.c (do_start_initialization): Call PyEval_SaveThread
4211 instead of PyEval_ReleaseLock.
4212 (class gdbpy_gil): Move to earlier in file.
4213 (finalize_python): Set gdb_python_initialized.
4214 (gdbpy_check_quit_flag): Acquire GIL via gdbpy_gil. Return early
4215 when not initialized.
4216
4217 2020-05-28 Simon Marchi <simon.marchi@efficios.com>
4218
4219 * dwarf2/loc.c (class dwarf_evaluate_loc_desc)
4220 <push_dwarf_reg_entry_value>: Remove assert. Override
4221 per_objfile with caller_per_objfile.
4222
4223 2020-05-28 Tom de Vries <tdevries@suse.de>
4224
4225 * dwarf2/read.c (dw2_symtab_iter_next, dw2_expand_marked_cus): Limit
4226 PR gold/15646 workaround to symbol kind "type".
4227
4228 2020-05-27 Tom Tromey <tromey@adacore.com>
4229
4230 * dwarf2/read.c (load_partial_dies): Use add_partial_symbol.
4231
4232 2020-05-27 Tom Tromey <tromey@adacore.com>
4233
4234 * dwarf2/abbrev.h (struct abbrev_table) <lookup_abbrev>: Inline.
4235 Use htab_find_with_hash.
4236 <add_abbrev>: Remove "abbrev_number" parameter.
4237 * dwarf2/abbrev.c (abbrev_table::add_abbrev): Remove
4238 "abbrev_number" parameter. Use htab_find_slot_with_hash.
4239 (hash_abbrev): Add comment.
4240 (abbrev_table::lookup_abbrev): Move to header file.
4241 (abbrev_table::read): Update.
4242
4243 2020-05-27 Tom Tromey <tromey@adacore.com>
4244
4245 * dwarf2/read.c (struct partial_die_info) <name>: Declare new
4246 method.
4247 <canonical_name>: New member.
4248 <raw_name>: Rename from "name".
4249 (partial_die_info): Initialize canonical_name.
4250 (scan_partial_symbols): Check raw_name.
4251 (partial_die_parent_scope, partial_die_full_name)
4252 (add_partial_symbol, add_partial_subprogram)
4253 (add_partial_enumeration, load_partial_dies): Use "name" method.
4254 (partial_die_info::name): New method.
4255 (partial_die_info::read, guess_partial_die_structure_name)
4256 (partial_die_info::fixup): Update.
4257
4258 2020-05-27 Tom Tromey <tromey@adacore.com>
4259
4260 * dwarf2/attribute.h (struct attribute) <form_is_ref>: Inline.
4261 <get_ref_die_offset>: Inline.
4262 <get_ref_die_offset_complaint>: New method.
4263 * dwarf2/attribute.c (attribute::form_is_ref): Move to header.
4264 (attribute::get_ref_die_offset_complaint): Rename from
4265 get_ref_die_offset. Just issue complaint.
4266
4267 2020-05-27 Hannes Domani <ssbssa@yahoo.de>
4268
4269 * cli/cli-cmds.c (shell_escape): Move exit_status_set_internal_vars.
4270
4271 2020-05-27 Hannes Domani <ssbssa@yahoo.de>
4272
4273 * exec.c (exec_file_attach): Use errno value of first openp failure.
4274
4275 2020-05-27 Hannes Domani <ssbssa@yahoo.de>
4276
4277 * nat/windows-nat.c (windows_thread_info::~windows_thread_info):
4278 Don't close thread handle.
4279
4280 2020-05-27 Tom Tromey <tom@tromey.com>
4281 Simon Marchi <simon.marchi@efficios.com>
4282
4283 * objfiles.h (struct objfile) <partial_symtabs>: Now a
4284 shared_ptr.
4285 * dwarf2/read.h (struct dwarf2_per_objfile) <partial_symtabs>: New
4286 member.
4287 * dwarf2/read.c (dwarf2_per_bfd_bfd_data_key,
4288 dwarf2_per_bfd_objfile_data_key>: New globals.
4289 (dwarf2_has_info): Use shared dwarf2_per_bfd if possible.
4290 (dwarf2_get_section_info): Use get_dwarf2_per_objfile.
4291 (dwarf2_initialize_objfile): Consider cases where per_bfd can be
4292 shared.
4293 (dwarf2_build_psymtabs): Set objfile::partial_symtabs and
4294 short-circuit when sharing.
4295 (dwarf2_build_psymtabs): Set dwarf2_per_objfile::partial_symtabs.
4296 (dwarf2_psymtab::expand_psymtab): Use free_cached_comp_units.
4297
4298 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
4299
4300 * dwarf2/read.h (struct dwarf2_per_bfd) <line_header_hash>: Move
4301 to...
4302 (struct dwarf2_per_objfile) <line_header_hash>: ... here.
4303 * dwarf2/read.c (handle_DW_AT_stmt_list): Update.
4304
4305 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
4306
4307 * dwarf2/read.c (struct mapped_index_base) <symbol_name_at,
4308 build_name_components, find_name_components_bounds>:
4309 Add per_objfile parameter.
4310 (struct mapped_index) <symbol_name_at>: Likewise.
4311 (struct mapped_debug_names): Remove constructor.
4312 <dwarf2_per_objfile>: Remove field.
4313 <namei_to_name, symbol_name_at>: Add per_objfile parameter.
4314 (mapped_index_base::find_name_components_bounds,
4315 mapped_index_base::build_name_components,
4316 dw2_expand_symtabs_matching_symbol): Likewise.
4317 (class mock_mapped_index) <symbol_name_at>: Likewise.
4318 (check_match): Likewise.
4319 (check_find_bounds_finds): Likewise.
4320 (test_mapped_index_find_name_component_bounds): Update.
4321 (CHECK_MATCH): Update.
4322 (dw2_expand_symtabs_matching): Update.
4323 (class dw2_debug_names_iterator) <dw2_debug_names_iterator>: Add
4324 per_objfile parameter.
4325 <find_vec_in_debug_names>: Likewise.
4326 <m_per_objfile>: New field.
4327 (mapped_debug_names::namei_to_name): Add dwarf2_per_objfile
4328 parameter.
4329 (dw2_debug_names_iterator::find_vec_in_debug_names): Likewise.
4330 (dw2_debug_names_iterator::next): Update.
4331 (dw2_debug_names_lookup_symbol): Update.
4332 (dw2_debug_names_expand_symtabs_for_function): Update.
4333 (dw2_debug_names_map_matching_symbols): Update.
4334 (dw2_debug_names_expand_symtabs_matching): Update.
4335 (dwarf2_read_debug_names): Update.
4336
4337 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
4338
4339 * dwarf2/read.h (struct dwarf2_cu): Forward-declare.
4340 (struct dwarf2_per_bfd) <free_cached_comp_units>: Remove,
4341 move to dwarf2_per_objfile.
4342 <read_in_chain>: Remove.
4343 (struct dwarf2_per_objfile) <get_cu, set_cu, remove_cu,
4344 remove_all_cus, age_comp_units>: New methods.
4345 <m_dwarf2_cus>: New member.
4346 (struct dwarf2_per_cu_data) <cu>: Remove.
4347 * dwarf2/read.c (struct dwarf2_cu) <read_in_chain>: Remove.
4348 (age_cached_comp_units, free_one_cached_comp_unit): Remove,
4349 moved to methods of dwarf2_per_objfile.
4350 (dwarf2_clear_marks): Remove.
4351 (dwarf2_queue_item::~dwarf2_queue_item): Update.
4352 (dwarf2_per_bfd::~dwarf2_per_bfd): Don't free dwarf2_cus.
4353 (dwarf2_per_bfd::free_cached_comp_units): Remove.
4354 (dwarf2_per_objfile::remove_all_cus): New.
4355 (class free_cached_comp_units) <~free_cached_comp_units>:
4356 Update.
4357 (load_cu): Update.
4358 (dw2_do_instantiate_symtab): Adjust.
4359 (fill_in_sig_entry_from_dwo_entry): Adjust.
4360 (cutu_reader::init_tu_and_read_dwo_dies): Update.
4361 (cutu_reader::cutu_reader): Likewise.
4362 (cutu_reader::keep): Use dwarf2_per_objfile::set_cu.
4363 (cutu_reader::cutu_reader): Use dwarf2_per_objfile::get_cu.
4364 (process_psymtab_comp_unit): Use dwarf2_per_objfile::remove_cu
4365 and dwarf2_per_objfile::age_comp_units.
4366 (load_partial_comp_unit): Update.
4367 (maybe_queue_comp_unit): Use dwarf2_per_objfile::get_cu.
4368 (process_queue): Likewise.
4369 (find_partial_die): Use dwarf2_per_objfile::get_cu instead of cu
4370 backlink.
4371 (dwarf2_read_addr_index): Likewise.
4372 (follow_die_offset): Likewise.
4373 (dwarf2_fetch_die_loc_sect_off): Likewise.
4374 (dwarf2_fetch_constant_bytes): Likewise.
4375 (dwarf2_fetch_die_type_sect_off): Likewise.
4376 (follow_die_sig_1): Likewise.
4377 (load_full_type_unit): Likewise.
4378 (read_signatured_type): Likewise.
4379 (dwarf2_cu::dwarf2_cu): Don't set cu field.
4380 (dwarf2_cu::~dwarf2_cu): Remove.
4381 (dwarf2_per_objfile::get_cu): New.
4382 (dwarf2_per_objfile::set_cu): New.
4383 (age_cached_comp_units): Rename to...
4384 (dwarf2_per_objfile::age_comp_units): ... this. Adjust
4385 to std::unordered_map.
4386 (free_one_cached_comp_unit): Rename to...
4387 (dwarf2_per_objfile::remove_cu): ... this. Adjust
4388 to std::unordered_map.
4389 (dwarf2_per_objfile::~dwarf2_per_objfile): New.
4390 (dwarf2_mark_helper): Use dwarf2_per_objfile::get_cu, expect
4391 a dwarf2_per_objfile in data.
4392 (dwarf2_mark): Pass dwarf2_per_objfile in data to htab_traverse.
4393 (dwarf2_clear_marks): Remove.
4394
4395 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
4396
4397 * dwarf2/read.c (class cutu_reader) <cutu_reader>: Replace
4398 `int use_existing_cu` parameter with `dwarf2_cu *existing_cu`.
4399 (init_tu_and_read_dwo_dies): Likewise.
4400 (cutu_reader::init_tu_and_read_dwo_dies): Likewise.
4401 (cutu_reader::cutu_reader): Likewise.
4402 (load_partial_comp_unit): Likewise.
4403 (process_psymtab_comp_unit): Update.
4404 (build_type_psymtabs_1): Update.
4405 (process_skeletonless_type_unit): Update.
4406 (load_full_comp_unit): Update.
4407 (find_partial_die): Update.
4408 (dwarf2_read_addr_index): Update.
4409 (read_signatured_type): Update.
4410
4411 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
4412
4413 * dwarf2/read.h (struct dwarf2_per_cu_data) <m_header,
4414 m_header_read_in>: New fields.
4415 <get_header>: New method.
4416 * dwarf2/read.c (per_cu_header_read_in): Remove.
4417 (dwarf2_per_cu_data::get_header): New.
4418 (dwarf2_per_cu_data::addr_size): Update.
4419 (dwarf2_per_cu_data::offset_size): Update.
4420 (dwarf2_per_cu_data::ref_addr_size): Update.
4421
4422 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
4423
4424 * dwarf2/read.c (load_cu): Return dwarf2_cu.
4425 (dw2_do_instantiate_symtab): Update.
4426 (queue_and_load_all_dwo_tus): Change parameter from
4427 dwarf2_per_cu_data to dwarf2_cu.
4428 (dwarf2_fetch_die_loc_sect_off): Update.
4429 (dwarf2_fetch_constant_bytes): Update.
4430 (dwarf2_fetch_die_type_sect_off): Update.
4431
4432 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
4433
4434 * dwarf2/read.c (process_full_comp_unit,
4435 process_full_type_unit): Remove per_cu, per_objfile paramters.
4436 Add dwarf2_cu parameter.
4437 (process_queue): Update.
4438
4439 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
4440
4441 * dwarf2/read.c (create_cu_from_index_list): Replace
4442 dwarf2_per_objfile parameter with dwarf2_per_bfd.
4443 (create_cus_from_index_list): Likewise.
4444 (create_cus_from_index): Likewise.
4445 (create_signatured_type_table_from_index): Likewise.
4446 (create_cus_from_debug_names_list): Likewise.
4447 (create_cus_from_debug_names): Likewise.
4448 (dwarf2_read_gdb_index): Update.
4449 (dwarf2_read_debug_names): Update.
4450
4451 2020-05-27 Tom Tromey <tom@tromey.com>
4452 Simon Marchi <simon.marchi@efficios.com>
4453
4454 * dwarf2/read.h (struct dwarf2_per_objfile)
4455 <get_type_for_signatured_type, set_type_for_signatured_type>:
4456 New methods.
4457 <m_type_map>: New member.
4458 (struct signatured_type) <type>: Remove.
4459 * dwarf2/read.c
4460 (dwarf2_per_objfile::get_type_for_signatured_type,
4461 dwarf2_per_objfile::set_type_for_signatured_type): New.
4462 (get_signatured_type): Use new methods.
4463
4464 2020-05-27 Tom Tromey <tom@tromey.com>
4465 Simon Marchi <simon.marchi@efficios.com>
4466
4467 * dwarf2/read.h (struct type_unit_group_unshareable): New.
4468 (struct dwarf2_per_objfile) <type_units>: New member.
4469 <get_type_unit_group_unshareable>: New method.
4470 * dwarf2/read.c (struct type_unit_group) <compunit_symtab,
4471 num_symtabs, symtabs>: Remove; move to
4472 type_unit_group_unshareable.
4473 (dwarf2_per_objfile::get_type_unit_group_unshareable): New.
4474 (process_full_type_unit, dwarf2_cu::setup_type_unit_groups)
4475 (dwarf2_cu::setup_type_unit_groups): Use type_unit_group_unshareable.
4476
4477 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
4478
4479 * dwarf2/read.h (struct dwarf2_per_cu_data):
4480 <dwarf2_per_objfile>: Remove.
4481 * dwarf2/read.c (create_cu_from_index_list): Don't assign
4482 dwarf2_per_objfile.
4483 (create_signatured_type_table_from_index): Likewise.
4484 (create_signatured_type_table_from_debug_names): Likewise.
4485 (create_debug_type_hash_table): Likewise.
4486 (fill_in_sig_entry_from_dwo_entry): Likewise.
4487 (create_type_unit_group): Likewise.
4488 (read_comp_units_from_section): Likewise.
4489 (create_cus_hash_table): Likewise.
4490
4491 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
4492
4493 * dwarf2/read.c (process_psymtab_comp_unit): Remove reference to
4494 dwarf2_per_cu_data::dwarf2_per_objfile.
4495 (compute_compunit_symtab_includes): Likewise.
4496 (dwarf2_cu::start_symtab): Likewise.
4497
4498 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
4499
4500 * dwarf2/read.h (dwarf2_get_die_type): Add dwarf2_per_objfile
4501 parameter.
4502 * dwarf2/read.c (get_die_type_at_offset): Likewise.
4503 (read_namespace_alias): Update.
4504 (lookup_die_type): Update.
4505 (dwarf2_get_die_type): Add dwarf2_per_objfile parameter.
4506 * dwarf2/loc.c (class dwarf_evaluate_loc_desc) <get_base_type>:
4507 Update.
4508 (disassemble_dwarf_expression): Update.
4509
4510 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
4511
4512 * dwarf2/read.h (struct dwarf2_queue_item): Add
4513 dwarf2_per_objfile parameter, assign new parameter.
4514 <per_objfile>: New field.
4515 * dwarf2/read.c (free_one_cached_comp_unit): Add
4516 dwarf2_per_objfile parameter.
4517 (queue_comp_unit): Likewise.
4518 (dw2_do_instantiate_symtab): Update.
4519 (process_psymtab_comp_unit): Update.
4520 (maybe_queue_comp_unit): Add dwarf2_per_objfile parameter.
4521 (process_imported_unit_die): Update.
4522 (queue_and_load_dwo_tu): Update.
4523 (follow_die_offset): Update.
4524 (follow_die_sig_1): Update.
4525
4526 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
4527
4528 * dwarf2/read.h (struct dwarf2_per_cu_data) <objfile>: Remove.
4529 * dwarf2/read.c (dwarf2_compute_name): Pass per_objfile down.
4530 (read_call_site_scope): Assign per_objfile.
4531 (dwarf2_per_cu_data::objfile): Remove.
4532 * gdbtypes.h (struct call_site) <per_objfile>: New member.
4533 * dwarf2/loc.h (dwarf2_evaluate_loc_desc): Add
4534 dwarf2_per_objfile parameter.
4535 * dwarf2/loc.c (dwarf2_evaluate_loc_desc_full): Add
4536 dwarf2_per_objfile parameter.
4537 (dwarf_expr_reg_to_entry_parameter): Add output
4538 dwarf2_per_objfile parameter.
4539 (locexpr_get_frame_base): Update.
4540 (class dwarf_evaluate_loc_desc) <get_tls_address>: Update.
4541 <push_dwarf_reg_entry_value>: Update.
4542 <call_site_to_target_addr>: Update.
4543 (dwarf_entry_parameter_to_value): Add dwarf2_per_objfile
4544 parameter.
4545 (value_of_dwarf_reg_entry): Update.
4546 (rw_pieced_value): Update.
4547 (indirect_synthetic_pointer): Update.
4548 (dwarf2_evaluate_property): Update.
4549 (dwarf2_loc_desc_get_symbol_read_needs): Add dwarf2_per_objfile
4550 parameter.
4551 (locexpr_read_variable): Update.
4552 (locexpr_get_symbol_read_needs): Update.
4553 (loclist_read_variable): Update.
4554
4555 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
4556
4557 * dwarf2/read.h (dwarf2_fetch_die_loc_sect_off,
4558 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
4559 dwarf2_fetch_die_type_sect_off): Add dwarf2_per_objfile
4560 parameter.
4561 * dwarf2/read.c (dwarf2_fetch_die_loc_sect_off,
4562 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
4563 dwarf2_fetch_die_type_sect_off): Add dwarf2_per_objfile
4564 parameter.
4565 * dwarf2/loc.c (indirect_synthetic_pointer, per_cu_dwarf_call,
4566 sect_variable_value): Add dwarf2_per_objfile parameter.
4567 (class dwarf_evaluate_loc_desc) <dwarf_call,
4568 dwarf_variable_value>: Update.
4569 (fetch_const_value_from_synthetic_pointer): Add
4570 dwarf2_per_objfile parameter.
4571 (fetch_const_value_from_synthetic_pointer): Update.
4572 (coerced_pieced_ref): Update.
4573 (class symbol_needs_eval_context) <dwarf_call,
4574 dwarf_variable_value>: Update.
4575 (dwarf2_compile_expr_to_ax): Update.
4576
4577 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
4578
4579 * dwarf2/loc.c (allocate_piece_closure): Add dwarf2_per_objfile
4580 parameter.
4581 (dwarf2_evaluate_loc_desc_full): Update.
4582
4583 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
4584
4585 * dwarf2/read.h (dwarf2_read_addr_index): Add dwarf2_per_objfile
4586 parameter.
4587 * dwarf2/read.c (dwarf2_read_addr_index): Likewise.
4588 * dwarf2/loc.c (decode_debug_loclists_addresses): Add
4589 dwarf2_per_objfile parameter.
4590 (decode_debug_loc_dwo_addresses): Likewise.
4591 (dwarf2_find_location_expression): Update.
4592 (class dwarf_evaluate_loc_desc) <get_addr_index>: Update.
4593 (locexpr_describe_location_piece): Add dwarf2_per_objfile
4594 parameter.
4595 (disassemble_dwarf_expression): Add dwarf2_per_objfile
4596 parameter.
4597 (locexpr_describe_location_1): Likewise.
4598 (locexpr_describe_location): Update.
4599
4600 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
4601
4602 * dwarf2/read.h (struct dwarf2_per_cu_data) <text_offset>:
4603 Remove.
4604 * dwarf2/read.c (dwarf2_per_cu_data::text_offset): Remove.
4605 * dwarf2/loc.c (dwarf2_find_location_expression): Update.
4606 (dwarf2_compile_property_to_c): Update.
4607 (dwarf2_compile_expr_to_ax): Add dwarf2_per_objfile parameter,
4608 use text offset from objfile.
4609 (locexpr_tracepoint_var_ref): Update.
4610 (locexpr_generate_c_location): Update.
4611 (loclist_describe_location): Update.
4612 (loclist_tracepoint_var_ref): Update.
4613 * dwarf2/compile.h (compile_dwarf_bounds_to_c): Add
4614 dwarf2_per_objfile parameter.
4615 * dwarf2/loc2c.c (do_compile_dwarf_expr_to_c): Likewise,
4616 use text offset from objfile.
4617 (compile_dwarf_expr_to_c): Add dwarf2_per_objfile parameter.
4618
4619 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
4620
4621 * dwarf2/expr.h (struct dwarf_expr_context)
4622 <dwarf_expr_context>: Add dwarf2_per_objfile parameter.
4623 <offset>: Remove.
4624 <per_objfile>: New member.
4625 * dwarf2/expr.c (dwarf_expr_context::dwarf_expr_context): Add
4626 dwarf2_per_objfile parameter. Don't set offset, set
4627 per_objfile.
4628 (dwarf_expr_context::execute_stack_op): Use offset from objfile.
4629 * dwarf2/frame.c (dwarf2_frame_find_fde): Return (by parameter)
4630 a dwarf2_per_objfile object instead of an offset.
4631 (class dwarf_expr_executor) <dwarf_expr_executor>: Add
4632 constructor.
4633 (execute_stack_op): Add dwarf2_per_objfile parameter, pass it
4634 to dwarf2_expr_executor constructor. Don't set offset.
4635 (dwarf2_fetch_cfa_info): Update.
4636 (struct dwarf2_frame_cache) <text_offset>: Remove.
4637 <per_objfile>: New field.
4638 (dwarf2_frame_cache): Update.
4639 (dwarf2_frame_prev_register): Update.
4640 * dwarf2/loc.c (class dwarf_evaluate_loc_desc)
4641 <dwarf_evaluate_loc_desc>: Add constructor.
4642 (dwarf2_evaluate_loc_desc_full): Update.
4643 (dwarf2_locexpr_baton_eval): Update.
4644 (class symbol_needs_eval_context) <symbol_needs_eval_context>:
4645 Add constructor.
4646 (dwarf2_loc_desc_get_symbol_read_needs): Update.
4647
4648 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
4649
4650 * dwarf2/read.h (struct dwarf2_per_cu_data) <addr_type,
4651 addr_sized_int_type>: Move to dwarf2_cu.
4652 <int_type>: Move to dwarf2_per_objfile.
4653 (struct dwarf2_per_objfile) <int_type>: Move here.
4654 * dwarf2/read.c (struct dwarf2_cu) <addr_type,
4655 addr_sized_int_type>: Move here.
4656 (read_func_scope): Update.
4657 (read_array_type): Update.
4658 (read_tag_string_type): Update.
4659 (attr_to_dynamic_prop): Update.
4660 (dwarf2_per_cu_data::int_type): Rename to...
4661 (dwarf2_per_objfile::int_type): ... this.
4662 (dwarf2_per_cu_data::addr_sized_int_type): Rename to...
4663 (dwarf2_cu::addr_sized_int_type): ... this.
4664 (read_subrange_type): Update.
4665 (dwarf2_per_cu_data::addr_type): Rename to...
4666 (dwarf2_cu::addr_type): ... this.
4667 (set_die_type): Update.
4668
4669 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
4670
4671 * dwarf2/read.c (queue_and_load_all_dwo_tus): Access per_objfile
4672 data through per_cu->cu.
4673
4674 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
4675
4676 * dwarf2/read.c (lookup_dwo_comp_unit): Change
4677 dwarf2_per_cu_data parameter fo dwarf2_cu.
4678 (lookup_dwo_type_unit): Likewise.
4679 (read_cutu_die_from_dwo): Likewise.
4680 (lookup_dwo_unit): Likewise.
4681 (open_and_init_dwo_file): Likewise.
4682 (lookup_dwo_cutu): Likewise.
4683 (lookup_dwo_comp_unit): Likewise.
4684 (lookup_dwo_type_unit): Likewise.
4685 (cutu_reader::init_tu_and_read_dwo_dies): Update.
4686 (cutu_reader::cutu_reader): Update.
4687
4688 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
4689
4690 * dwarf2/read.c (process_full_comp_unit): Add dwarf2_per_objfile
4691 parameter.
4692 (process_full_type_unit): Likewise.
4693 (process_queue): Update.
4694
4695 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
4696
4697 * dwarf2/read.c (recursively_compute_inclusions): Add
4698 dwarf2_per_objfile parameter.
4699 (compute_compunit_symtab_includes): Likewise.
4700 (process_cu_includes): Update.
4701
4702 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
4703
4704 * dwarf2/read.c (create_partial_symtab): Add dwarf2_per_objfile
4705 parameter.
4706 (create_type_unit_group): Update.
4707 (process_psymtab_comp_unit_reader): Update.
4708 (build_type_psymtabs_reader): Update.
4709
4710 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
4711
4712 * dwarf2/read.c (cutu_reader::keep): Access dwarf2_per_objfile
4713 object through m_this_cu->cu.
4714
4715 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
4716
4717 * dwarf2/read.c (queue_and_load_dwo_tu): Expect a dwarf2_cu as
4718 the info parameter.
4719 (queue_and_load_all_dwo_tus): Pass per_cu->cu.
4720
4721 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
4722
4723 * dwarf2/read.c (class cutu_reader) <cutu_reader>: Add
4724 per_objfile parameter.
4725 (load_full_type_unit): Add per_objfile parameter.
4726 (read_signatured_type): Likewise.
4727 (load_full_comp_unit): Likewise.
4728 (load_cu): Likewise.
4729 (dw2_do_instantiate_symtab): Likewise.
4730 (dw2_get_file_names): Likewise.
4731 (dw2_map_symtabs_matching_filename): Update.
4732 (dw_expand_symtabs_matching_file_matcher): Update.
4733 (dw2_map_symbol_filenames): Update.
4734 (process_psymtab_comp_unit): Add per_objfile parameter.
4735 (build_type_psymtabs_1): Update.
4736 (process_skeletonless_type_unit): Update.
4737 (dwarf2_build_psymtabs_hard): Update.
4738 (load_partial_comp_unit): Add per_objfile parameter.
4739 (scan_partial_symbols): Update.
4740 (load_full_comp_unit): Add per_objfile parameter.
4741 (process_imported_unit_die): Update.
4742 (create_cus_hash_table): Update.
4743 (find_partial_die): Update.
4744 (dwarf2_read_addr_index): Update.
4745 (follow_die_offset): Update.
4746 (dwarf2_fetch_die_loc_sect_off): Update.
4747 (dwarf2_fetch_constant_bytes): Update.
4748 (dwarf2_fetch_die_type_sect_off): Update.
4749 (follow_die_sig_1): Update.
4750 (load_full_type_unit): Add per_objfile parameter.
4751 (read_signatured_type): Likewise.
4752
4753 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
4754
4755 * dwarf2/read.c (lookup_dwo_unit): Use bfd_get_filename instead
4756 of objfile_name.
4757
4758 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
4759
4760 * dwarf2/read.h (struct dwarf2_per_bfd) <obfd>: New member.
4761 (dwarf2_get_dwz_file): Replace parameter with dwarf2_per_bfd.
4762 * dwarf2/read.c (dwarf2_per_bfd::dwarf2_per_bfd): Assign obfd
4763 field.
4764 (dwarf2_get_dwz_file): Replace parameter with dwarf2_per_bfd.
4765 (create_cus_from_index): Update.
4766 (dwarf2_read_gdb_index): Update.
4767 (create_cus_from_debug_names): Update.
4768 (dwarf2_read_debug_names): Update.
4769 (get_abbrev_section_for_cu): Update.
4770 (create_all_comp_units): Update.
4771 (read_attribute_value): Update.
4772 (get_debug_line_section): Update.
4773 * dwarf2/index-cache.c (index_cache::store): Update.
4774 * dwarf2/index-write.c (save_gdb_index_command): Update.
4775 * dwarf2/macro.c (dwarf_decode_macro_bytes): Update.
4776
4777 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
4778
4779 * dwarf2/read.h (struct dwarf2_per_cu_data) <per_bfd>: New
4780 member.
4781 * dwarf2/read.c (dwarf2_per_bfd::allocate_per_cu): Initialize
4782 dwarf2_per_cu_data::per_bfd.
4783 (dwarf2_per_bfd::allocate_signatured_type): Likewise.
4784 (create_type_unit_group): Likewise.
4785 (queue_comp_unit): Remove reference to
4786 per_cu->dwarf2_per_objfile.
4787 (maybe_queue_comp_unit): Likewise.
4788 (fill_in_sig_entry_from_dwo_entry): Assign new field.
4789 (create_cus_hash_table): Assign new field.
4790
4791 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
4792
4793 * dwarf2/read.c: Replace
4794 dwarf2_cu->per_cu->dwarf2_per_objfile references with
4795 dwarf2_cu->per_objfile throughout.
4796
4797 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
4798
4799 * dwarf2/read.c (dw2_do_instantiate_symtab): Add per_objfile
4800 parameter, don't use per_cu->dwarf2_per_objfile.
4801 (dw2_instantiate_symtab): Likewise.
4802 (dw2_find_last_source_symtab): Update.
4803 (dw2_map_expand_apply): Update.
4804 (dw2_lookup_symbol): Update.
4805 (dw2_expand_symtabs_for_function): Update.
4806 (dw2_expand_all_symtabs): Update.
4807 (dw2_expand_symtabs_with_fullname): Update.
4808 (dw2_expand_symtabs_matching_one): Add per_objfile parameter,
4809 don't use per_cu->dwarf2_per_objfile.
4810 (dw2_expand_marked_cus): Update.
4811 (dw2_find_pc_sect_compunit_symtab): Update.
4812 (dw2_debug_names_lookup_symbol): Update.
4813 (dw2_debug_names_expand_symtabs_for_function): Update.
4814 (dw2_debug_names_map_matching_symbols): Update.
4815 (dwarf2_psymtab::expand_psymtab): Update.
4816
4817 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
4818
4819 * dwarf2/read.c (struct dwarf2_cu) <dwarf2_cu>: Add parameter.
4820 <per_objfile>: New member.
4821 (class cutu_reader) <init_tu_and_read_dwo_dies>: Add parameter.
4822 (cutu_reader::init_tu_and_read_dwo_dies): Add parameter, update
4823 call to dwarf2_cu.
4824 (cutu_reader::cutu_reader): Update.
4825 (dwarf2_cu::dwarf2_cu): Add parameter, initialize per_objfile.
4826
4827 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
4828
4829 * dwarf2/read.h (struct dwarf2_per_bfd) <die_type_hash>: Move to
4830 struct dwarf2_per_objfile.
4831 (struct dwarf2_per_objfile) <die_type_hash>: Move from struct
4832 dwarf2_per_bfd.
4833 * dwarf2/read.c (set_die_type): Update.
4834 (get_die_type_at_offset): Update.
4835
4836 2020-05-27 Tom Tromey <tom@tromey.com>
4837 Simon Marchi <simon.marchi@efficios.com>
4838
4839 * dwarf2/read.h (struct dwarf2_per_bfd) <num_psymtabs>: New
4840 method.
4841 (struct dwarf2_per_objfile) <resize_symtabs, symtab_set_p,
4842 get_symtab, set_symtab>: New methods.
4843 <m_symtabs>: New field.
4844 (struct dwarf2_psymtab): Derive from partial_symtab.
4845 <readin_p, get_compunit_symtab>: Declare methods.
4846 * dwarf2/read.c (dwarf2_per_objfile::symtab_set_p,
4847 dwarf2_per_objfile::get_symtab, dwarf2_per_objfile::set_symtab):
4848 New methods.
4849 (struct dwarf2_per_cu_quick_data) <compunit_symtab>: Remove.
4850 (dw2_do_instantiate_symtab, dw2_instantiate_symtab)
4851 (dw2_map_expand_apply, dw2_map_symtabs_matching_filename)
4852 (dw2_symtab_iter_next, dw2_print_stats)
4853 (dw2_expand_symtabs_with_fullname)
4854 (dw2_expand_symtabs_matching_one)
4855 (dw_expand_symtabs_matching_file_matcher)
4856 (dw2_find_pc_sect_compunit_symtab, dw2_map_symbol_filenames)
4857 (dw2_debug_names_iterator::next)
4858 (dw2_debug_names_map_matching_symbols)
4859 (fill_in_sig_entry_from_dwo_entry, dwarf2_psymtab::read_symtab)
4860 (process_queue, dwarf2_psymtab::expand_psymtab): Update.
4861 (dwarf2_psymtab::readin_p, dwarf2_psymtab::get_compunit_symtab):
4862 New methods.
4863 (get_compunit_symtab, process_full_comp_unit)
4864 (process_full_type_unit): Update.
4865 (dwarf2_build_psymtabs, dwarf2_initialize_objfile, add_type_unit): Call
4866
4867 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
4868
4869 * dwarf2/read.h (dwarf2_per_objfile): Rename to dwarf2_per_bfd,
4870 then introduce a new dwarf2_per_objfile type.
4871 <read_line_string>: Move to the new dwarf2_per_objfile type.
4872 <objfile>: Likewise.
4873 (dwarf2_per_bfd): Rename dwarf2_per_objfile to this.
4874 * dwarf2/read.c: Replace references to dwarf2_per_objfile with
4875 dwarf2_per_objfile->per_bfd.
4876 (dwarf2_per_objfile::dwarf2_per_objfile): Rename to...
4877 (dwarf2_per_bfd::dwarf2_per_bfd): ... this.
4878 (dwarf2_per_objfile::free_cached_comp_units): Rename to...
4879 (dwarf2_per_bfd::free_cached_comp_units): ... this.
4880 (dwarf2_has_info): Allocate dwarf2_per_bfd.
4881 (dwarf2_per_objfile::locate_sections): Rename to...
4882 (dwarf2_per_bfd::locate_sections): ... this.
4883 (dwarf2_per_objfile::get_cutu): Rename to...
4884 (dwarf2_per_bfd::get_cutu): ... this.
4885 (dwarf2_per_objfile::get_cu): Rename to...
4886 (dwarf2_per_bfd::get_cu): ... this.
4887 (dwarf2_per_objfile::get_tu): Rename to...
4888 (dwarf2_per_bfd::get_tu): ... this.
4889 (dwarf2_per_objfile::allocate_per_cu): Rename to...
4890 (dwarf2_per_bfd::allocate_per_cu): ... this.
4891 (dwarf2_per_objfile::allocate_signatured_type): Rename to...
4892 (dwarf2_per_bfd::allocate_signatured_type): ... this.
4893 (get_gdb_index_contents_ftype): Change parameter from
4894 dwarf2_per_objfile to dwarf2_per_bfd.
4895 * dwarf2/macro.c, dwarf2/index-write.c: Replace references to
4896 dwarf2_per_objfile with dwarf2_per_objfile->per_bfd.
4897
4898 2020-05-27 Tom Tromey <tom@tromey.com>
4899 Simon Marchi <simon.marchi@efficios.com>
4900
4901 * dwarf2/loc.c (struct piece_closure) <per_objfile>: New member.
4902 (allocate_piece_closure): Set "per_objfile" member.
4903 (dwarf2_find_location_expression, dwarf2_locexpr_baton_eval)
4904 (locexpr_describe_location, loclist_describe_location): Use new
4905 member.
4906 * dwarf2/read.c (read_call_site_scope)
4907 (mark_common_block_symbol_computed, attr_to_dynamic_prop)
4908 (dwarf2_const_value_attr, dwarf2_fetch_die_loc_sect_off)
4909 (fill_in_loclist_baton, dwarf2_symbol_mark_computed,
4910 handle_data_member_location): Set per_objfile member.
4911 * dwarf2/loc.h (struct dwarf2_locexpr_baton) <per_objfile>: New
4912 member.
4913 (struct dwarf2_loclist_baton) <per_objfile>: New member.
4914
4915 2020-05-27 Tom Tromey <tom@tromey.com>
4916
4917 * dwarf2/read.h (struct dwarf2_per_objfile) <allocate_per_cu,
4918 allocate_signatured_type>: Declare new methods.
4919 <m_num_psymtabs>: New member.
4920 (struct dwarf2_per_cu_data) <index>: New member.
4921 * dwarf2/read.c (dwarf2_per_objfile::allocate_per_cu)
4922 (dwarf2_per_objfile::allocate_signatured_type): New methods.
4923 (create_cu_from_index_list): Use allocate_per_cu.
4924 (create_signatured_type_table_from_index)
4925 (create_signatured_type_table_from_debug_names)
4926 (create_debug_type_hash_table, add_type_unit)
4927 (read_comp_units_from_section): Use allocate_signatured_type.
4928
4929 2020-05-27 Tom Tromey <tom@tromey.com>
4930
4931 * psymtab.c (partial_map_expand_apply)
4932 (psym_find_pc_sect_compunit_symtab, psym_lookup_symbol)
4933 (psym_lookup_global_symbol_language)
4934 (psymtab_to_symtab, psym_find_last_source_symtab, dump_psymtab)
4935 (psym_print_stats, psym_expand_symtabs_for_function)
4936 (psym_map_symbol_filenames, psym_map_matching_symbols)
4937 (psym_expand_symtabs_matching)
4938 (partial_symtab::read_dependencies, maintenance_info_psymtabs)
4939 (maintenance_check_psymtabs): Update.
4940 * psympriv.h (struct partial_symtab) <readin_p,
4941 get_compunit_symtab>: Add objfile parameter.
4942 (struct standard_psymtab) <readin_p, get_compunit_symtab>:
4943 Likewise.
4944 * dwarf2/read.c (struct dwarf2_include_psymtab) <readin_p,
4945 get_compunit_symtab>: Likewise.
4946 (dwarf2_psymtab::expand_psymtab): Pass objfile argument.
4947
4948 2020-05-27 Tom Tromey <tom@tromey.com>
4949
4950 * dwarf2/read.h (struct dwarf2_per_objfile) <obstack>: New
4951 member.
4952 * dwarf2/read.c (delete_file_name_entry): Fix comment.
4953 (create_cu_from_index_list)
4954 (create_signatured_type_table_from_index)
4955 (create_signatured_type_table_from_debug_names)
4956 (dw2_get_file_names_reader, dwarf2_initialize_objfile)
4957 (dwarf2_create_include_psymtab)
4958 (create_debug_type_hash_table, add_type_unit)
4959 (create_type_unit_group, read_comp_units_from_section)
4960 (dwarf2_compute_name, create_cus_hash_table)
4961 (create_dwp_hash_table, create_dwo_unit_in_dwp_v1)
4962 (create_dwo_unit_in_dwp_v2, open_and_init_dwp_file): Use new
4963 obstack.
4964 (dw2_get_real_path): Likewise. Change argument to
4965 dwarf2_per_objfile.
4966
4967 2020-05-27 Luis Machado <luis.machado@linaro.org>
4968
4969 PR tdep/26000
4970 * arm-tdep.c (thumb_analyze_prologue): Fix instruction matching
4971 for ldrd (immediate).
4972
4973 2020-05-26 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4974
4975 * command.h: Add comment giving the name of class_tui.
4976 * cli/cli-cmds.c (_initialize_cli_cmds): If TUI defined,
4977 create the fake command for the help for class_tui.
4978
4979 2020-05-26 Tom Tromey <tromey@adacore.com>
4980
4981 * ada-lang.c (ada_print_array_index): Change type. Call val_atr.
4982 (ada_value_ptr_subscript): Don't call pos_atr on the lower bound.
4983 (val_atr): New function.
4984 (value_val_atr): Use it.
4985 * ada-valprint.c (print_optional_low_bound): Change low bound
4986 handling for enums.
4987 (val_print_packed_array_elements): Don't call discrete_position.
4988 * gdbtypes.c (get_discrete_bounds) <TYPE_CODE_RANGE>: Call
4989 discrete_position for enum types.
4990 * language.c (default_print_array_index): Change type.
4991 * language.h (struct language_defn) <la_print_array_index>: Add
4992 index_type parameter, change type of index_value.
4993 (LA_PRINT_ARRAY_INDEX): Add index_type parameter.
4994 (default_print_array_index): Update.
4995 * valprint.c (maybe_print_array_index): Don't call
4996 value_from_longest. Update.
4997 (value_print_array_elements): Don't call discrete_position.
4998
4999 2020-05-26 Tom Tromey <tromey@adacore.com>
5000
5001 * ada-lang.c (value_val_atr): Handle TYPE_CODE_RANGE.
5002 * gdbtypes.c (discrete_position): Handle TYPE_CODE_RANGE.
5003
5004 2020-05-25 Cristiano De Alti <cristiano_dealti@hotmail.com>
5005
5006 PR gdb/13519
5007 * avr-tdep.c (avr_integer_to_address): Return data or code
5008 address accordingly to the second 'type' argument of the
5009 function.
5010
5011 2020-05-25 Michael Weghorn <m.weghorn@posteo.de>
5012
5013 * infcmd.c, inferior.h: (construct_inferior_arguments):
5014 Moved function from here to gdbsupport/common-inferior.{h,cc}
5015
5016 2020-05-23 Tom Tromey <tom@tromey.com>
5017
5018 Revert commit eca1f90c:
5019 * NEWS: Remove entry for completion styling.
5020 * completer.c (_rl_completion_prefix_display_length): Move
5021 declaration later.
5022 (gdb_fnprint): Revert.
5023 (gdb_display_match_list_1): Likewise.
5024 * cli/cli-style.c (completion_prefix_style)
5025 (completion_difference_style, completion_suffix_style): Remove.
5026 (_initialize_cli_style): Revert.
5027 * cli/cli-style.h (completion_prefix_style)
5028 (completion_difference_style, completion_suffix_style): Don't
5029 declare.
5030
5031 2020-05-24 Pedro Alves <palves@redhat.com>
5032
5033 * symtab.c (completion_list_add_name): Return boolean indication
5034 of whether the symbol matched.
5035 (completion_list_add_symbol): Don't try to remove C++ aliases if
5036 the symbol didn't match in the first place.
5037 * symtab.h (completion_list_add_name): Return bool.
5038
5039 2020-05-23 Simon Marchi <simon.marchi@polymtl.ca>
5040
5041 * gdbtypes.h (TYPE_FIELD): Remove. Replace all uses with
5042 type::field.
5043
5044 2020-05-23 Joel Brobecker <brobecker@adacore.com>
5045
5046 GDB 9.2 released.
5047
5048 2020-05-23 Tom Tromey <tom@tromey.com>
5049
5050 * NEWS: Add entry for completion styling.
5051 * completer.c (_rl_completion_prefix_display_length): Move
5052 declaration earlier.
5053 (gdb_fnprint): Use completion_style.
5054 (gdb_display_match_list_1): Likewise.
5055 * cli/cli-style.c (completion_prefix_style)
5056 (completion_difference_style, completion_suffix_style): New
5057 globals.
5058 (_initialize_cli_style): Register new globals.
5059 * cli/cli-style.h (completion_prefix_style)
5060 (completion_difference_style, completion_suffix_style): Declare.
5061
5062 2020-05-23 Pedro Alves <palves@redhat.com>
5063
5064 * utils.c: Include "gdbsupport/gdb-safe-ctype.h".
5065 (parse_escape): Use ISDIGIT instead of isdigit.
5066 (puts_debug): Use gdb_isprint instead of isprint.
5067 (fprintf_symbol_filtered): Use ISALNUM instead of isalnum.
5068 (cp_skip_operator_token, skip_ws, strncmp_iw_with_mode): Use
5069 ISSPACE instead of isspace.
5070 (strncmp_iw_with_mode): Use TOLOWER instead of tolower and ISSPACE
5071 instead of isspace.
5072 (strcmp_iw_ordered): Use ISSPACE instead of isspace.
5073 (string_to_core_addr): Use TOLOWER instead of tolower, ISXDIGIT
5074 instead of isxdigit and ISDIGIT instead of isdigit.
5075
5076 2020-05-22 Simon Marchi <simon.marchi@efficios.com>
5077
5078 * gdbtypes.h (struct type) <field>: New method.
5079 (TYPE_FIELDS): Remove, replace all uses with either type::fields
5080 or type::field.
5081
5082 2020-05-22 Simon Marchi <simon.marchi@efficios.com>
5083
5084 * gdbtypes.h (struct type) <fields, set_fields>: New methods.
5085 (TYPE_FIELDS): Use type::fields. Change all call sites that
5086 modify the propery to use type::set_fields instead.
5087
5088 2020-05-22 Simon Marchi <simon.marchi@efficios.com>
5089
5090 * gdbtypes.h (TYPE_NFIELDS): Remove. Change all cal sites to use
5091 type::num_fields instead.
5092
5093 2020-05-22 Simon Marchi <simon.marchi@efficios.com>
5094
5095 * gdbtypes.h (struct type) <num_fields, set_num_fields>: New
5096 methods.
5097 (TYPE_NFIELDS): Use type::num_fields. Change all call sites
5098 that modify the number of fields to use type::set_num_fields
5099 instead.
5100
5101 2020-05-22 Tom Tromey <tromey@adacore.com>
5102
5103 * compile/compile-object-load.h (munmap_list_free): Don't
5104 declare.
5105
5106 2020-05-22 Andrew Burgess <andrew.burgess@embecosm.com>
5107
5108 * annotate.c (annotate_source_line): Update return type, add call
5109 to update current symtab and line.
5110 * annotate.h (annotate_source_line): Update return type, and
5111 extend header comment.
5112 * source.c (info_line_command): Check annotation_level before
5113 calling annotate_source_line.
5114 * stack.c (print_frame_info): If calling annotate_source_line
5115 returns true, then don't print any other source line information.
5116
5117 2020-05-21 Simon Marchi <simon.marchi@efficios.com>
5118
5119 * lm32-tdep.c (lm32_register_reggroup_p): Fix condition.
5120
5121 2020-05-21 Simon Marchi <simon.marchi@efficios.com>
5122
5123 * coffread.c (patch_type): Remove NULL check before xfree.
5124 * corefile.c (set_gnutarget): Likewise.
5125 * cp-abi.c (set_cp_abi_as_auto_default): Likewise.
5126 * exec.c (build_section_table): Likewise.
5127 * remote.c (remote_target::pass_signals): Likewise.
5128 * utils.c (n_spaces): Likewise.
5129 * cli/cli-script.c (document_command): Likewise.
5130 * i386-windows-tdep.c (core_process_module_section): Likewise.
5131 * linux-fork.c (struct fork_info) <~fork_info>: Likewise.
5132
5133 2020-05-20 Simon Marchi <simon.marchi@efficios.com>
5134
5135 * symfile.c (reread_symbols): Clear objfile's section_offsets
5136 vector and section indices, re-compute them by calling
5137 sym_offsets.
5138
5139 2020-05-20 Tom Tromey <tromey@adacore.com>
5140
5141 * ada-lang.c (bound_name, MAX_ADA_DIMENS): Remove.
5142 (desc_one_bound, desc_index_type): Compute field name.
5143
5144 2020-05-20 Tom de Vries <tdevries@suse.de>
5145
5146 PR symtab/25833
5147 * dwarf2/read.c (dw2_map_matching_symbols): Handle .gdb_index.
5148
5149 2020-05-20 Alan Modra <amodra@gmail.com>
5150
5151 PR 25993
5152 * solib-darwin.c (darwin_bfd_open): Don't strdup pathname for
5153 bfd_set_filename.
5154 * solib-aix.c (solib_aix_bfd_open): Use std::string for name
5155 passed to bfd_set_filename.
5156 * symfile-mem.c (add_vsyscall_page): Likewise for string
5157 passed to symbol_file_add_from_memory.
5158 (symbol_file_add_from_memory): Make name param a const char* and
5159 don't strdup.
5160
5161 2020-05-20 Alan Modra <amodra@gmail.com>
5162
5163 * coff-pe-read.c (read_pe_exported_syms): Use bfd_get_filename
5164 rather than accessing bfd->filename directly.
5165 * dtrace-probe.c (dtrace_static_probe_ops::get_probes): Likewise,
5166 and use bfd_section_name.
5167 * dwarf2/frame.c (decode_frame_entry): Likewise.
5168 * exec.c (exec_set_section_address): Likewise.
5169 * solib-aix.c (solib_aix_bfd_open): Likewise.
5170 * stap-probe.c (get_stap_base_address): Likewise.
5171 * symfile.c (reread_symbols): Likewise.
5172
5173 2020-05-19 Tom Tromey <tromey@adacore.com>
5174
5175 * sparc64-tdep.c (adi_tag_fd): Update call to target_fileio_open.
5176
5177 2020-05-19 Simon Marchi <simon.marchi@efficios.com>
5178
5179 * dwarf2/read.c (quirk_rust_enum): Allocate enough fields.
5180
5181 2020-05-19 Pedro Alves <palves@redhat.com>
5182
5183 * NEWS (set exec-file-mismatch): Adjust entry.
5184 * exec.c: Include "build-id.h".
5185 (validate_exec_file): Try to match build IDs instead of filenames.
5186 * gdb_bfd.c (struct gdb_bfd_open_closure): New.
5187 (gdb_bfd_iovec_fileio_open): Adjust to use gdb_bfd_open_closure
5188 and pass down 'warn_if_slow'.
5189 (gdb_bfd_open): Add 'warn_if_slow' parameter. Use
5190 gdb_bfd_open_closure to pass it down.
5191 * gdb_bfd.h (gdb_bfd_open): Add 'warn_if_slow' parameter.
5192
5193 2020-05-19 Pedro Alves <palves@redhat.com>
5194
5195 * gdb_bfd.c (gdb_bfd_iovec_fileio_open): Adjust.
5196 * target.c (target_fileio_open_1): Rename to target_fileio_open
5197 and make extern. Use bool.
5198 (target_fileio_open, target_fileio_open_warn_if_slow): Delete.
5199 (target_fileio_read_alloc_1): Adjust.
5200 * target.h (target_fileio_open): Add 'warn_if_slow' parameter.
5201 (target_fileio_open_warn_if_slow): Delete declaration.
5202
5203 2020-05-19 Pedro Alves <palves@redhat.com>
5204
5205 * gdb_bfd.h: (gdb_bfd_open): Default to 'fd' parameter to -1.
5206 Adjust all callers.
5207
5208 2020-05-19 Yoshinori Sato <ysato@users.sourceforge.jp>
5209
5210 * h8300-tdep.c (h8300_is_argument_spill): Change how we check
5211 whether disp is negative.
5212
5213 2020-05-19 Simon Marchi <simon.marchi@efficios.com>
5214
5215 * symfile.h (struct symfile_segment_data)
5216 <~symfile_segment_data>: Remove.
5217 <segment_info>: Change to std::vector.
5218 * symfile.c (default_symfile_segments): Update.
5219 * elfread.c (elf_symfile_segments): Update.
5220
5221 2020-05-19 Simon Marchi <simon.marchi@efficios.com>
5222
5223 * symfile.h (struct symfile_segment_data) <struct segment>: New.
5224 <segments>: New.
5225 <segment_bases, segment_sizes>: Remove.
5226 * symfile.c (default_symfile_segments): Update.
5227 * elfread.c (elf_symfile_segments): Update.
5228 * remote.c (remote_target::get_offsets): Update.
5229 * solib-target.c (solib_target_relocate_section_addresses):
5230 Update.
5231
5232 2020-05-19 Simon Marchi <simon.marchi@efficios.com>
5233
5234 * symfile.h (struct symfile_segment_data): Initialize fields.
5235 <~symfile_segment_data>: Add.
5236 (symfile_segment_data_up): New.
5237 (struct sym_fns) <sym_segments>: Return a
5238 symfile_segment_data_up.
5239 (default_symfile_segments): Return a symfile_segment_data_up.
5240 (free_symfile_segment_data): Remove.
5241 (get_symfile_segment_data): Return a symfile_segment_data_up.
5242 * symfile.c (default_symfile_segments): Likewise.
5243 (get_symfile_segment_data): Likewise.
5244 (free_symfile_segment_data): Remove.
5245 (symfile_find_segment_sections): Update.
5246 * elfread.c (elf_symfile_segments): Return a
5247 symfile_segment_data_up.
5248 * remote.c (remote_target::get_offsets): Update.
5249 * solib-target.c (solib_target_relocate_section_addresses):
5250 Update.
5251 * symfile-debug.c (debug_sym_segments): Return a
5252 symfile_segment_data_up.
5253
5254 2020-05-18 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5255
5256 PR build/25981
5257 * i386-sol2-nat.c [PR_MODEL_NATIVE != PR_MODEL_LP64] (regmap):
5258 Hardcode register numbers.
5259
5260 PR build/25981
5261 * procfs.c [(__i386__ || __x86_64__) && sun] (proc_get_LDT_entry,
5262 procfs_find_LDT_entry): Remove.
5263 * procfs.h [(__i386__ || __x86_64__) && sun] (struct ssd,
5264 procfs_find_LDT_entry): Remove.
5265 * sol-thread.c [(__i386__ || __x86_64__) && sun] (ps_lgetLDT):
5266 Remove.
5267
5268 2020-05-17 Pedro Alves <palves@redhat.com>
5269 Andrew Burgess <andrew.burgess@embecosm.com>
5270 Keno Fischer <keno@juliacomputing.com>
5271
5272 PR gdb/25741
5273 * breakpoint.c (build_target_condition_list): Update comments.
5274 (build_target_command_list): Update comments and skip matching
5275 locations.
5276 (insert_bp_location): Move "set breakpoint auto-hw on" handling to
5277 a separate function. Simplify "set breakpoint auto-hw off"
5278 handling.
5279 (insert_breakpoints): Update comment.
5280 (tracepoint_locations_match): New parameter. For breakpoints,
5281 compare location types too, if the caller wants to.
5282 (handle_automatic_hardware_breakpoints): New functions.
5283 (bp_location_is_less_than): Also sort by location type and
5284 hardware breakpoint length.
5285 (update_global_location_list): Handle "set breakpoint auto-hw on"
5286 here.
5287 (update_breakpoint_locations): Ask breakpoint_locations_match to
5288 ignore location types.
5289
5290 2020-05-16 Simon Marchi <simon.marchi@efficios.com>
5291
5292 * gdbtypes.h (TYPE_NAME): Remove. Change all cal sites to use
5293 type::name instead.
5294
5295 2020-05-16 Simon Marchi <simon.marchi@efficios.com>
5296
5297 * gdbtypes.h (struct type) <name, set_name>: New methods.
5298 (TYPE_CODE): Use type::name. Change all call sites used to set
5299 the name to use type::set_name instead.
5300
5301 2020-05-16 Tom Tromey <tom@tromey.com>
5302
5303 * top.c (quit_force): Update.
5304 * infrun.c (handle_no_resumed): Update.
5305 * top.h (all_uis): New function.
5306 (ALL_UIS): Remove.
5307
5308 2020-05-16 Simon Marchi <simon.marchi@efficios.com>
5309
5310 * mips-linux-tdep.c (mips_linux_in_dynsym_stub): Fix condition.
5311
5312 2020-05-16 Pedro Alves <palves@redhat.com>
5313
5314 * ia64-linux-nat.c
5315 (ia64_linux_nat_target) <enable_watchpoints_in_psr(ptid_t)>:
5316 Declare method.
5317 (enable_watchpoints_in_psr): Now a method of ia64_linux_nat_target.
5318
5319 2020-05-15 Simon Marchi <simon.marchi@efficios.com>
5320
5321 * sparc64-tdep.c (adi_stat_t): Remove typedef (leaving struct).
5322 (sparc64_adi_info): Likewise.
5323
5324 2020-05-15 Tom Tromey <tom@tromey.com>
5325
5326 * symtab.c (lookup_language_this, lookup_symbol_aux): Use
5327 block_objfile.
5328 (lookup_objfile_from_block): Remove.
5329 (lookup_symbol_in_block, lookup_symbol_in_static_block)
5330 (lookup_global_symbol): Use block_objfile.
5331 * symtab.h (lookup_objfile_from_block): Don't declare.
5332 * printcmd.c (clear_dangling_display_expressions): Use
5333 block_objfile.
5334 * parse.c (operator_check_standard): Use block_objfile.
5335
5336 2020-05-15 Tom Tromey <tom@tromey.com>
5337
5338 * language.c (language_alloc_type_symbol): Set
5339 SYMBOL_SECTION.
5340 * symtab.c (initialize_objfile_symbol): Remove.
5341 (allocate_symbol): Remove.
5342 (allocate_template_symbol): Remove.
5343 * dwarf2/read.c (fixup_go_packaging): Use "new".
5344 (new_symbol): Use "new".
5345 (read_variable): Don't call initialize_objfile_symbol. Use
5346 "new".
5347 (read_func_scope): Use "new".
5348 * xcoffread.c (process_xcoff_symbol): Don't call
5349 initialize_objfile_symbol.
5350 (SYMBOL_DUP): Remove.
5351 * coffread.c (process_coff_symbol, coff_read_enum_type): Use
5352 "new".
5353 * symtab.h (allocate_symbol, initialize_objfile_symbol)
5354 (allocate_template_symbol): Don't declare.
5355 (struct symbol): Add copy constructor. Change defaults.
5356 * jit.c (finalize_symtab): Use "new".
5357 * ctfread.c (ctf_add_enum_member_cb, new_symbol, ctf_add_var_cb):
5358 Use "new".
5359 * stabsread.c (patch_block_stabs, define_symbol, read_enum_type)
5360 (common_block_end): Use "new".
5361 * mdebugread.c (parse_symbol): Use "new".
5362 (new_symbol): Likewise.
5363
5364 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5365
5366 * NEWS: Mention changes to help and apropos.
5367
5368 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5369
5370 * command.h (enum command_class): Improve comments, document
5371 that class_alias is for user-defined aliases, give the class
5372 name for each class, remove unused class_xdb.
5373 * cli/cli-decode.c (add_com_alias): Document THECLASS intended usage.
5374 * breakpoint.c (_initialize_breakpoint): Replace class_alias
5375 by a precise class.
5376 * infcmd.c (_initialize_infcmd): Likewise.
5377 * reverse.c (_initialize_reverse): Likewise.
5378 * stack.c (_initialize_stack): Likewise.
5379 * symfile.c (_initialize_symfile): Likewise.
5380 * tracepoint.c (_initialize_tracepoint): Likewise.
5381
5382 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5383
5384 * cli/cli-decode.c (apropos_cmd): Produce output for aliases
5385 when their aliased command is traversed.
5386 (help_cmd): Add fput_command_names_styled call to
5387 output command name and aliases when command has an alias.
5388
5389 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5390
5391 * cli/cli-decode.h (help_cmd_list): Remove declaration.
5392 * cli/cli-decode.c (help_cmd_list): Declare as static,
5393 remove prefix argument, use bool for recurse arg, rework to show the aliases of
5394 a command together with the command.
5395 (fput_command_name_styled, fput_command_names_styled): New functions.
5396 (print_help_for_command): Remove prefix arg, use bool for recurse arg, use
5397 fput_command_name_styled.
5398 (help_list, help_all): Update callers to remove prefix arg and use bool recurse.
5399 * cli/cli-cmds.c (_initialize_cli_cmds): Update alias_command doc.
5400
5401 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5402
5403 * cli/cli-setshow.h (cmd_show_list): Remove prefix argument.
5404 * cli/cli-decode.c (do_show_prefix_cmd): Likewise.
5405 * command.h (cmd_show_list): Likewise.
5406 * dwarf2/index-cache.c (show_index_cache_command): Likewise.
5407 * cli/cli-setshow.c (cmd_show_list): Use the prefix to produce the output. Skip aliases.
5408
5409 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5410
5411 * unittests/command-def-selftests.c (traverse_command_structure):
5412 Verify all commands of a list have the same prefix command and
5413 that only the top cmdlist commands have a null prefix.
5414
5415 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5416
5417 * cli/cli-decode.c (lookup_cmd_for_prefix): Return the aliased command
5418 as prefix, not one of its aliases.
5419 (set_cmd_prefix): Remove.
5420 (do_add_cmd): Centralize the setting of the prefix of a command, when
5421 command is defined after its full chain of prefix commands.
5422 (add_alias_cmd): Remove call to set_cmd_prefix, as do_add_cmd does it.
5423 (add_setshow_cmd_full): Likewise.
5424 (update_prefix_field_of_prefixed_commands): New function.
5425 (add_prefix_cmd): Replace non working call to set_cmd_prefix by
5426 update_prefix_field_of_prefixed_commands.
5427 * gdb/remote-fileio.c (initialize_remote_fileio): Use the real
5428 addresses of remote_set_cmdlist and remote_show_cmdlist given
5429 as argument, not the address of an argument.
5430 * gdb/remote-fileio.h (initialize_remote_fileio): Likewise.
5431 * gdb/remote.c (_initialize_remote): Likewise.
5432
5433 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5434
5435 * cli/cli-cmds.c (alias_command): Check for an existing alias
5436 using lookup_cmd_composition, as valid_command_p is too strict
5437 and forbids aliases that are the prefix of an existing alias
5438 or command.
5439 * cli/cli-decode.c (lookup_cmd_composition): Ensure a prefix
5440 command is properly recognised as a valid command.
5441
5442 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5443
5444 * unittests/help-doc-selftests.c: Rename to
5445 unittests/command-def-selftests.c
5446 * unittests/command-def-selftests.c (help_doc_tests): Update some
5447 comments.
5448 (command_structure_tests, traverse_command_structure): New namespace
5449 and function.
5450 (command_structure_invariants_tests): New function.
5451 (_initialize_command_def_selftests) Renamed from
5452 _initialize_help_doc_selftests, register command_structure_invariants
5453 selftest.
5454
5455 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5456
5457 * cli/cli-cmds.c (_initialize_cli_cmds): Define 'info set' as
5458 an alias of 'show'.
5459
5460 2020-05-15 Joel Brobecker <brobecker@adacore.com>
5461
5462 * ada-lang.h: (ada_is_gnat_encoded_fixed_point_type): Renames
5463 ada_is_fixed_point_type. Update all callers.
5464 (gnat_encoded_fixed_point_delta): Renames ada_delta. Update
5465 all callers.
5466 * ada-lang.c (gnat_encoded_fixed_type_info): Renames fixed_type_info.
5467 Update all callers.
5468 * ada-typeprint.c (print_gnat_encoded_fixed_point_type): Renames
5469 print_fixed_point_type. Update all callers.
5470 * ada-valprint.c (ada_value_print_num): Replace call to
5471 ada_is_fixed_point_type by ada_is_gnat_encoded_fixed_point_type.
5472
5473 2020-05-14 Kevin Buettner <kevinb@redhat.com>
5474
5475 * nat/linux-btrace.c (btrace_this_cpu): Add check for AMD
5476 processors.
5477 (cpu_supports_bts): Add CV_AMD case.
5478
5479 2020-05-14 Laurent Morichetti <Laurent.Morichetti@amd.com>
5480 Simon Marchi <simon.marchi@efficios.com>
5481
5482 * infrun.c (stop_all_threads): Collect multiple wait events at
5483 each pass.
5484
5485 2020-05-14 Simon Marchi <simon.marchi@efficios.com>
5486
5487 * gdbtypes.h (TYPE_CODE): Remove. Change all call sites to use
5488 type::code instead.
5489
5490 2020-05-14 Simon Marchi <simon.marchi@efficios.com>
5491
5492 * gdbtypes.h (struct type) <code, set_code>: New methods.
5493 (TYPE_CODE): Use type::code. Change all call sites used to set
5494 the code to use type::set_code instead.
5495
5496 2020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
5497 Tom de Vries <tdevries@suse.de>
5498 Pedro Alves <palves@redhat.com>
5499
5500 PR threads/25478
5501 * infrun.c (stop_all_threads): Do NOT ignore
5502 TARGET_WAITKIND_NO_RESUMED, TARGET_WAITKIND_THREAD_EXITED,
5503 TARGET_WAITKIND_EXITED, TARGET_WAITKIND_SIGNALLED wait statuses
5504 received.
5505 (handle_no_resumed): Remove code handling a live inferior with no
5506 threads.
5507 * remote.c (has_single_non_exited_thread): New.
5508 (remote_target::update_thread_list): Do not delete a thread if is
5509 the last thread of the process.
5510 * thread.c (thread_select): Call delete_exited_threads instead of
5511 prune_threads.
5512
5513 2020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
5514
5515 * infrun.c (stop_all_threads): Enable/disable thread events of all
5516 targets. Move a debug message denoting the end of the function
5517 into the SCOPED_EXIT block.
5518
5519 2020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
5520
5521 * process-stratum-target.h: Include <set>.
5522 (all_non_exited_process_targets, switch_to_target_no_thread): New
5523 function declarations.
5524 * process-stratum-target.c (all_non_exited_process_targets)
5525 (switch_to_target_no_thread): New function implementations.
5526
5527 2020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
5528
5529 * infrun.c (handle_inferior_event): Extract out a piece of code
5530 into...
5531 (mark_non_executing_threads): ...this new function.
5532
5533 2020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
5534
5535 * infrun.c (resume_1): Move a 'regcache_read_pc' call down to first
5536 use.
5537
5538 2020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
5539
5540 * regcache.c (regcache_read_pc_protected): New function
5541 implementation that returns 0 if the PC cannot read via
5542 'regcache_read_pc'.
5543 * infrun.c (proceed): Call 'regcache_read_pc_protected'
5544 instead of 'regcache_read_pc'.
5545 (keep_going_pass_signal): Ditto.
5546
5547 2020-05-13 Tom Tromey <tromey@adacore.com>
5548
5549 * ada-lang.c (align_value): Remove.
5550 (ada_template_to_fixed_record_type_1): Use align_up.
5551
5552 2020-05-13 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
5553
5554 * async-event.c: Update the copyright year.
5555 * async-event.h: Update the copyright year.
5556
5557 2020-05-12 Simon Marchi <simon.marchi@efficios.com>
5558
5559 * objfiles.h (is_addr_in_objfile,
5560 shared_objfile_contains_address_p): Return bool.
5561 * objfile.c (is_addr_in_objfile,
5562 shared_objfile_contains_address_p): Return bool.
5563
5564 2020-05-11 Tom Tromey <tromey@adacore.com>
5565
5566 * cli/cli-cmds.c (info_command): Restore.
5567 (_initialize_cli_cmds): Use add_prefix_command for "info".
5568 * gdb-gdb.gdb.in: Restore breakpoint on info_command.
5569
5570 2020-05-11 Tom Tromey <tromey@adacore.com>
5571
5572 * ada-lang.c (ada_value_primitive_field): Now public.
5573 * ada-lang.h (ada_value_primitive_field): Declare.
5574 * ada-valprint.c (print_field_values): Use
5575 ada_value_primitive_field for wrapper fields.
5576
5577 2020-05-11 Tom de Vries <tdevries@suse.de>
5578
5579 * dwarf2/index-write.c (debug_names::psymbol_tag): Handle
5580 MODULE_DOMAIN.
5581
5582 2020-05-11 Tom de Vries <tdevries@suse.de>
5583
5584 PR symtab/25941
5585 * dwarf2/read.c (create_cus_from_debug_names_list): Initialize CUs
5586 with length 0, if not gdb-produced.
5587 (cutu_reader::cutu_reader): Set CU length to actual length if 0.
5588
5589 2020-05-09 Tom de Vries <tdevries@suse.de>
5590
5591 PR gdb/25955
5592 * break-catch-throw.c (check_status_exception_catchpoint): Fix name
5593 calculation.
5594
5595 2020-05-09 Tom Tromey <tom@tromey.com>
5596
5597 * top.c (server_command): Now bool.
5598 * top.h (server_command): Now bool.
5599
5600 2020-05-08 Tom Tromey <tromey@adacore.com>
5601
5602 * dwarf2/read.c (read_lexical_block_scope): Don't process a DIE
5603 already being processed.
5604
5605 2020-05-08 Tom Tromey <tom@tromey.com>
5606
5607 * printcmd.c (struct display) <next>: Remove.
5608 <display>: New constructor.
5609 <exp_string>: Now a std::string.
5610 <enabled_p>: Now a bool.
5611 (display_number): Move definition earlier.
5612 (displays): Rename from display_chain. Now a std::vector.
5613 (ALL_DISPLAYS, ALL_DISPLAYS_SAFE): Remove.
5614 (display_command): Update.
5615 (do_one_display, disable_display)
5616 (enable_disable_display_command, do_enable_disable_display):
5617 Update.
5618 (free_display): Remove.
5619 (clear_displays): Rewrite.
5620 (delete_display): Update.
5621 (map_display_numbers): Use function_view. Remove "data"
5622 parameter. Update.
5623 (do_delete_display): Remove.
5624 (undisplay_command): Update.
5625 (do_one_display, do_displays, disable_display)
5626 (info_display_command): Update.
5627 (do_enable_disable_display): Remove.
5628 (enable_disable_display_command)
5629 (clear_dangling_display_expressions): Update.
5630
5631 2020-05-08 Tom Tromey <tom@tromey.com>
5632
5633 * symtab.c (set_symbol_cache_size)
5634 (maintenance_print_symbol_cache, maintenance_flush_symbol_cache)
5635 (maintenance_print_symbol_cache_statistics): Update.
5636 * symmisc.c (print_symbol_bcache_statistics)
5637 (print_objfile_statistics, maintenance_print_objfiles)
5638 (maintenance_info_symtabs, maintenance_check_symtabs)
5639 (maintenance_expand_symtabs, maintenance_info_line_tables):
5640 Update.
5641 * symfile-debug.c (set_debug_symfile): Update.
5642 * source.c (forget_cached_source_info): Update.
5643 * python/python.c (gdbpy_progspaces): Update.
5644 * psymtab.c (maintenance_info_psymtabs): Update.
5645 * probe.c (parse_probes): Update.
5646 * linespec.c (iterate_over_all_matching_symtabs)
5647 (collect_symtabs_from_filename, search_minsyms_for_name): Update.
5648 * guile/scm-progspace.c (gdbscm_progspaces): Update.
5649 * exec.c (exec_target::close): Update.
5650 * ada-tasks.c (ada_tasks_new_objfile_observer): Update.
5651 * breakpoint.c (print_one_breakpoint_location)
5652 (create_longjmp_master_breakpoint)
5653 (create_std_terminate_master_breakpoint): Update.
5654 * progspace.c (program_spaces): Now a std::vector.
5655 (maybe_new_address_space): Update.
5656 (add_program_space): Remove.
5657 (program_space::program_space): Update.
5658 (remove_program_space): Update.
5659 (number_of_program_spaces): Remove.
5660 (print_program_space, update_address_spaces): Update.
5661 * progspace.h (program_spaces): Change type.
5662 (ALL_PSPACES): Remove.
5663 (number_of_program_spaces): Don't declare.
5664 (struct program_space) <next>: Remove.
5665
5666 2020-05-08 Tom Tromey <tom@tromey.com>
5667
5668 * mi/mi-cmd-file.c (mi_cmd_file_list_shared_libraries): Update.
5669 * solib-svr4.c (svr4_fetch_objfile_link_map): Update.
5670 (enable_break): Update.
5671 * solib-frv.c (frv_fdpic_find_global_pointer): Update.
5672 (frv_fdpic_find_canonical_descriptor): Update.
5673 (frv_fetch_objfile_link_map): Update.
5674 * progspace.c (program_space::free_all_objfiles): Update.
5675 (program_space::solibs): New method.
5676 * progspace.h (struct program_space) <solibs>: New method.
5677 * solist.h (master_so_list): Don't declare.
5678 (ALL_SO_LIBS): Remove.
5679 * solib.h (so_list_head): Remove.
5680 (update_solib_list): Update comment.
5681 * solib.c (master_so_list): Remove.
5682 (solib_used, update_solib_list, solib_add)
5683 (info_sharedlibrary_command, clear_solib)
5684 (reload_shared_libraries_1, remove_user_added_objfile): Update.
5685
5686 2020-05-08 Tom Tromey <tom@tromey.com>
5687
5688 * extension.c (extension_languages): Now a std::array.
5689 (ALL_EXTENSION_LANGUAGES): Remove.
5690 (get_ext_lang_defn, get_ext_lang_of_file)
5691 (eval_ext_lang_from_control_command): Update.
5692 (finish_ext_lang_initialization)
5693 (auto_load_ext_lang_scripts_for_objfile)
5694 (ext_lang_type_printers::ext_lang_type_printers)
5695 (apply_ext_lang_type_printers)
5696 (ext_lang_type_printers::~ext_lang_type_printers)
5697 (apply_ext_lang_val_pretty_printer, apply_ext_lang_frame_filter)
5698 (preserve_ext_lang_values, get_breakpoint_cond_ext_lang)
5699 (breakpoint_ext_lang_cond_says_stop, check_quit_flag)
5700 (get_matching_xmethod_workers, ext_lang_colorize)
5701 (ext_lang_before_prompt): Update.
5702 (ALL_ENABLED_EXTENSION_LANGUAGES): Remove.
5703
5704 2020-05-08 Tom Tromey <tom@tromey.com>
5705
5706 * symtab.h (class demangle_result_storage) <set_malloc_ptr>: New
5707 overload.
5708 <swap_string, m_string>: Remove.
5709 * symtab.c (demangle_for_lookup, completion_list_add_symbol):
5710 Update.
5711 * stabsread.c (define_symbol, read_type): Update.
5712 * linespec.c (find_linespec_symbols): Update.
5713 * gnu-v3-abi.c (gnuv3_get_typeid): Update.
5714 * dwarf2/read.c (dwarf2_canonicalize_name): Update.
5715 * dbxread.c (read_dbx_symtab): Update.
5716 * cp-support.h (cp_canonicalize_string_full)
5717 (cp_canonicalize_string, cp_canonicalize_string_no_typedefs):
5718 Return unique_xmalloc_ptr.
5719 * cp-support.c (inspect_type): Update.
5720 (cp_canonicalize_string_full): Return unique_xmalloc_ptr.
5721 (cp_canonicalize_string_no_typedefs, cp_canonicalize_string):
5722 Likewise.
5723 * c-typeprint.c (print_name_maybe_canonical): Update.
5724 * break-catch-throw.c (check_status_exception_catchpoint):
5725 Update.
5726
5727 2020-05-08 Tom de Vries <tdevries@suse.de>
5728
5729 * infrun.c (follow_fork): Copy current_line and current_symtab to
5730 child thread.
5731
5732 2020-05-07 Simon Marchi <simon.marchi@efficios.com>
5733
5734 * async-event.c (struct async_signal_handler, struct
5735 async_event_handler): Reformat, remove typedef.
5736
5737 2020-05-07 Simon Marchi <simon.marchi@efficios.com>
5738
5739 * gdbtypes.h (TYPE_DYN_PROP_LIST): Remove. Update all users
5740 access thistype->main_type->dyn_prop_list directly.
5741
5742 2020-05-07 Simon Marchi <simon.marchi@efficios.com>
5743
5744 * gdbtypes.h (struct type) <remove_dyn_prop>: New method.
5745 (remove_dyn_prop): Remove. Update all users to use
5746 type::remove_dyn_prop.
5747 * gdbtypes.c (remove_dyn_prop): Rename to...
5748 (type::remove_dyn_prop): ... this.
5749
5750 2020-05-07 Simon Marchi via Gdb-patches <gdb-patches@sourceware.org>
5751
5752 * gdbtypes.h (struct type) <add_dyn_prop>: New method.
5753 (add_dyn_prop): Remove. Update all users to use
5754 type::add_dyn_prop.
5755 * gdbtypes.c (add_dyn_prop): Rename to...
5756 (type::add_dyn_prop): ... this.
5757
5758 2020-05-07 Simon Marchi <simon.marchi@efficios.com>
5759
5760 * gdbtypes.h (struct type) <get_dyn_prop>: New method.
5761 (get_dyn_prop): Remove. Update all users to use
5762 type::dyn_prop.
5763 * gdbtypes.c (get_dyn_prop): Rename to...
5764 (type::dyn_prop): ... this.
5765
5766 2020-05-06 Simon Marchi <simon.marchi@efficios.com>
5767
5768 * gdbtypes.h (struct main_type) <flag_static>: Remove.
5769
5770 2020-05-06 Simon Marchi <simon.marchi@efficios.com>
5771
5772 * amd64-tdep.c (amd64_analyze_prologue): Check for `endbr64`
5773 instruction, skip it if it's there.
5774
5775 2020-05-05 Simon Marchi <simon.marchi@efficios.com>
5776
5777 * gdbtypes.h (struct main_type) <flag_incomplete>: Remove.
5778
5779 2020-05-04 Simon Marchi <simon.marchi@efficios.com>
5780
5781 * gdbtypes.h (TYPE_INCOMPLETE): Remove.
5782 * gdbtypes.c (recursive_dump_type): Remove use of
5783 TYPE_INCOMPLETE.
5784
5785 2020-05-03 Tom Tromey <tom@tromey.com>
5786
5787 * breakpoint.c (catch_command, tcatch_command): Remove.
5788 (_initialize_breakpoint): Use add_basic_prefix_cmd,
5789 add_show_prefix_cmd.
5790 (set_breakpoint_cmd, show_breakpoint_cmd): Remove
5791 * utils.c (set_internal_problem_cmd, show_internal_problem_cmd):
5792 Remove.
5793 (add_internal_problem_command): Use add_basic_prefix_cmd,
5794 add_show_prefix_cmd.
5795 * mips-tdep.c (set_mipsfpu_command): Remove.
5796 (_initialize_mips_tdep): Use add_basic_prefix_cmd.
5797 * dwarf2/index-cache.c (set_index_cache_command): Remove.
5798 (_initialize_index_cache): Use add_basic_prefix_cmd.
5799 * memattr.c (dummy_cmd): Remove.
5800 (_initialize_mem): Use add_basic_prefix_cmd, add_show_prefix_cmd.
5801 * tui/tui-win.c (set_tui_cmd, show_tui_cmd): Remove.
5802 (_initialize_tui_win): Use add_basic_prefix_cmd,
5803 add_show_prefix_cmd.
5804 * cli/cli-logging.c (set_logging_command): Remove.
5805 (_initialize_cli_logging): Use add_basic_prefix_cmd,
5806 add_show_prefix_cmd.
5807 (show_logging_command): Remove.
5808 * target.c (target_command): Remove.
5809 (add_target): Use add_basic_prefix_cmd.
5810
5811 2020-05-02 Hannes Domani <ssbssa@yahoo.de>
5812
5813 * gdbtypes.h (enum dynamic_prop_node_kind): Fix typo.
5814
5815 2020-05-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5816
5817 * gdb-gdb.gdb-in: Remove breakpoint on disappeared function
5818 info_command.
5819
5820 2020-04-30 Kamil Rytarowski <n54@gmx.com>
5821
5822 * nbsd-nat.c (nbsd_enable_proc_events)
5823 (nbsd_nat_target::post_startup_inferior): Add.
5824 (nbsd_nat_target::post_attach): Call `nbsd_enable_proc_events'.
5825 (nbsd_nat_target::update_thread_list): Rewrite.
5826 (nbsd_nat_target::wait): Handle "PTRACE_LWP_EXIT" and
5827 "PTRACE_LWP_CREATE".
5828 * nbsd-nat.h (nbsd_nat_target::post_startup_inferior): Add.
5829
5830 2020-04-30 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5831
5832 * stack.c (_initialize_stack): Remove duplicated creation
5833 of "frame" command and "f" alias.
5834
5835 2020-04-30 Hannes Domani <ssbssa@yahoo.de>
5836
5837 PR gdb/18706
5838 * gdbtypes.c (check_typedef): Calculate size of array of
5839 stubbed type.
5840
5841 2020-04-30 Hannes Domani <ssbssa@yahoo.de>
5842
5843 PR gdb/15559
5844 * i386-tdep.c (i386_push_dummy_call): Call
5845 i386_thiscall_push_dummy_call.
5846 (i386_thiscall_push_dummy_call): New function.
5847 * i386-tdep.h (i386_thiscall_push_dummy_call): Declare.
5848 * i386-windows-tdep.c (i386_windows_push_dummy_call): New function.
5849 (i386_windows_init_abi): Call set_gdbarch_push_dummy_call.
5850
5851 2020-04-29 Simon Marchi <simon.marchi@efficios.com>
5852
5853 * gdbarch.sh (do_read): Add shellcheck disable directive for
5854 warning SC2162.
5855
5856 2020-04-29 Simon Marchi <simon.marchi@efficios.com>
5857
5858 * gdbarch.sh: Use ${foo:-} where shellcheck would report a
5859 "referenced but not assigned" warning.
5860
5861 2020-04-29 Simon Marchi <simon.marchi@efficios.com>
5862
5863 * gdbarch.sh: Remove code that sets fallbackdefault.
5864
5865 2020-04-29 Simon Marchi <simon.marchi@efficios.com>
5866
5867 * gdbarch.sh: Use shell operators && and || instead of
5868 -a and -o.
5869
5870 2020-04-29 Simon Marchi <simon.marchi@efficios.com>
5871
5872 * gdbarch.sh: Use $(...) instead of `...`.
5873
5874 2020-04-29 Simon Marchi <simon.marchi@efficios.com>
5875
5876 * gdbarch.sh: Use double quotes around variables.
5877
5878 2020-04-29 Simon Marchi <simon.marchi@efficios.com>
5879
5880 * gdbarch.sh: Use %s with printf, instead of variables in the
5881 format string.
5882
5883 2020-04-29 Tom Tromey <tromey@adacore.com>
5884
5885 PR ada/25875:
5886 * dwarf2/read.c (update_enumeration_type_from_children): Compute
5887 type fields here.
5888 (read_enumeration_type): Call
5889 update_enumeration_type_from_children later. Update comments.
5890 (process_enumeration_scope): Don't create type fields.
5891
5892 2020-04-29 Kamil Rytarowski <n54@gmx.com>
5893
5894 * nbsd-tdep.c: Include "xml-syscall.h".
5895 (nbsd_init_abi): Call `set_xml_syscall_file_name'.
5896
5897 2020-04-29 Kamil Rytarowski <n54@gmx.com>
5898
5899 * nbsd-nat.c: Include "sys/wait.h".
5900 (nbsd_resume, nbsd_nat_target::resume, nbsd_wait)
5901 (nbsd_nat_target::wait, nbsd_nat_target::insert_exec_catchpoint)
5902 (nbsd_nat_target::remove_exec_catchpoint)
5903 (nbsd_nat_target::set_syscall_catchpoint): Add.
5904 * nbsd-nat.h (nbsd_nat_target::resume, nbsd_nat_target::wait)
5905 (nbsd_nat_target::insert_exec_catchpoint)
5906 (nbsd_nat_target::remove_exec_catchpoint)
5907 (nbsd_nat_target::set_syscall_catchpoint): Add.
5908 * nbsd-tdep.c (nbsd_get_syscall_number): Add.
5909 (nbsd_init_abi): Call `set_gdbarch_get_syscall_number' and pass
5910 `nbsd_get_syscall_number'.
5911
5912 2020-04-29 Tom Tromey <tom@tromey.com>
5913
5914 * stack.c (print_block_frame_labels): Remove.
5915
5916 2020-04-29 Hannes Domani <ssbssa@yahoo.de>
5917
5918 PR gdb/17320
5919 * ada-valprint.c (val_print_packed_array_elements): Move array
5920 end bracket to new line.
5921 (ada_val_print_string): Remove extra spaces before first array
5922 element.
5923 * c-valprint.c (c_value_print_array): Likewise.
5924 * m2-valprint.c (m2_print_array_contents): Likewise.
5925 (m2_value_print_inner): Likewise.
5926 * p-valprint.c (pascal_value_print_inner): Likewise.
5927 * valprint.c (generic_val_print_array): Likewise.
5928 (value_print_array_elements): Move first array element and array
5929 end bracket to new line.
5930
5931 2020-04-29 Tom de Vries <tdevries@suse.de>
5932
5933 PR symtab/25889
5934 * linespec.c (find_method): Fix ix calculation.
5935
5936 2020-04-28 Kamil Rytarowski <n54@gmx.com>
5937
5938 * syscalls/update-netbsd.sh: New file.
5939 * syscalls/netbsd.xml: Regenerate.
5940 * data-directory/Makefile.in: Register `netbsd.xml' in
5941 `SYSCALLS_FILES'.
5942
5943 2020-04-28 Simon Marchi <simon.marchi@efficios.com>
5944
5945 * syscalls/update-freebsd.sh: Add double quotes.
5946
5947 2020-04-28 Tom Tromey <tom@tromey.com>
5948
5949 * NEWS: Update.
5950 * python/py-cmd.c (gdbpy_initialize_commands): Add COMMAND_TUI.
5951 (cmdpy_init): Allow class_tui.
5952
5953 2020-04-28 Mark Williams <mark@myosotissp.com>
5954
5955 PR gdb/24480
5956 * dwarf2read.c: Add missing assingments to list_in_scope when
5957 start_symtab was already called.
5958
5959 2020-04-28 Simon Marchi <simon.marchi@efficios.com>
5960
5961 PR gdb/25881
5962 * dwarf2/read.c (offset_map_type): Use
5963 gdb:hash_enum<sect_offset> as hash function.
5964
5965 2020-04-28 Tom de Vries <tdevries@suse.de>
5966
5967 * dwarf2/read.c (process_structure_scope): Add symbol for struct decl
5968 with DW_AT_signature.
5969
5970 2020-04-27 Simon Marchi <simon.marchi@efficios.com>
5971
5972 * configure.ac: Remove check for fs_base/gs_base in
5973 user_regs_struct.
5974 * configure: Re-generate.
5975 * config.in: Re-generate.
5976 * amd64-nat.c (amd64_native_gregset_reg_offset): Adjust.
5977 * amd64-linux-nat.c (amd64_linux_nat_target::fetch_registers,
5978 amd64_linux_nat_target::store_registers, ps_get_thread_area, ): Adjust.
5979
5980 2020-04-27 Luis Machado <luis.machado@linaro.org>
5981
5982 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first): Handle
5983 problematic inline frame unwinding situation.
5984 * frame.c (frame_id_computed_p): New function.
5985 * frame.h (frame_id_computed_p): New prototype.
5986
5987 2020-04-26 Tom Tromey <tom@tromey.com>
5988
5989 * command.h (enum command_class) <class_pseudo>: Remove.
5990
5991 2020-04-26 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5992
5993 * cli/cli-decode.c (lookup_cmd_composition): Fix comments
5994 and whitespace.
5995
5996 2020-04-25 Kamil Rytarowski <n54@gmx.com>
5997
5998 * inf-ptrace.c (inf_ptrace_target::wait): Remove
5999 `PT_GET_PROCESS_STATE' block.
6000
6001 2020-04-24 Tom Tromey <tom@tromey.com>
6002
6003 * symtab.h (symbol_get_demangled_name): Don't declare.
6004 * symtab.c (symbol_get_demangled_name): Remove.
6005 (general_symbol_info::natural_name)
6006 (general_symbol_info::demangled_name): Update.
6007
6008 2020-04-24 Tom Tromey <tom@tromey.com>
6009
6010 PR rust/25025:
6011 * dwarf2/read.c (dwarf2_physname): Do not demangle for Rust.
6012
6013 2020-04-24 Tom Tromey <tom@tromey.com>
6014
6015 PR symtab/12707:
6016 * dwarf2/read.c (add_partial_symbol): Use the linkage name if it
6017 exists.
6018 (new_symbol): Likewise.
6019 * compile/compile-object-load.c (get_out_value_type): Use
6020 symbol_matches_search_name.
6021
6022 2020-04-24 Tom Tromey <tom@tromey.com>
6023
6024 * dwarf2/read.c (add_partial_symbol): Do not call
6025 compute_and_set_names.
6026
6027 2020-04-24 Tom Tromey <tom@tromey.com>
6028
6029 * dwarf2/read.c (add_partial_symbol): Use new add_psymbol_to_list
6030 overload.
6031
6032 2020-04-24 Tom Tromey <tom@tromey.com>
6033
6034 * psymtab.c (add_psymbol_to_bcache): Simplify calling convention.
6035 (add_psymbol_to_list): New overload. Make old overload call new
6036 one.
6037 * psympriv.h (add_psymbol_to_list): New overload.
6038
6039 2020-04-24 Tom Tromey <tom@tromey.com>
6040
6041 * dwarf2/read.c (partial_die_info::read) <case
6042 DW_AT_linkage_name>: Use value_as_string.
6043 (dwarf2_string_attr): Use value_as_string.
6044 * dwarf2/attribute.h (struct attribute) <value_as_string>: Declare
6045 method.
6046 * dwarf2/attribute.c (attribute::value_as_string): New method.
6047
6048 2020-04-24 Tom Tromey <tom@tromey.com>
6049
6050 * symtab.c (general_symbol_info::natural_name)
6051 (general_symbol_info::demangled_name): Check for language_rust.
6052
6053 2020-04-24 Tom Tromey <tom@tromey.com>
6054
6055 * dwarf2/read.c (dw2_linkage_name): Move Rust "{" hack here...
6056 (dwarf2_physname): ... from here.
6057 (partial_die_info::read): Add Rust "{" hack.
6058
6059 2020-04-24 Tom Tromey <tom@tromey.com>
6060
6061 * symtab.h (struct general_symbol_info) <set_demangled_name>: New
6062 method.
6063 (symbol_set_demangled_name): Don't declare.
6064 * symtab.c (general_symbol_info::set_demangled_name): Rename from
6065 symbol_set_demangled_name.
6066 (general_symbol_info::set_language)
6067 (general_symbol_info::compute_and_set_names): Update.
6068 * minsyms.c (minimal_symbol_reader::install): Update.
6069 * dwarf2/read.c (new_symbol): Update.
6070
6071 2020-04-24 Tom Tromey <tromey@adacore.com>
6072
6073 PR python/23662:
6074 * python/py-type.c (convert_field): Handle
6075 FIELD_LOC_KIND_DWARF_BLOCK.
6076 (typy_get_sizeof): Handle TYPE_HAS_DYNAMIC_LENGTH.
6077 (typy_get_dynamic): Nw function.
6078 (type_object_getset): Add "dynamic".
6079 * NEWS: Add entry.
6080
6081 2020-04-24 Tom Tromey <tromey@adacore.com>
6082
6083 * ada-typeprint.c (print_choices, print_variant_part)
6084 (print_record_field_types_dynamic): New functions.
6085 (print_record_field_types): Use print_record_field_types_dynamic.
6086
6087 2020-04-24 Tom Tromey <tromey@adacore.com>
6088
6089 * dwarf2/read.c (handle_data_member_location): New overload.
6090 (dwarf2_add_field): Use it.
6091 (decode_locdesc): Add "computed" parameter. Update comment.
6092 * gdbtypes.c (is_dynamic_type_internal): Also look for
6093 FIELD_LOC_KIND_DWARF_BLOCK.
6094 (resolve_dynamic_struct): Handle FIELD_LOC_KIND_DWARF_BLOCK.
6095 * gdbtypes.c (is_dynamic_type_internal): Add special case for C++
6096 virtual base classes.
6097 * gnu-v3-abi.c (gnuv3_baseclass_offset): Handle
6098 FIELD_LOC_KIND_DWARF_BLOCK.
6099
6100 2020-04-24 Tom Tromey <tromey@adacore.com>
6101
6102 * dwarf2/read.c (read_structure_type): Handle dynamic length.
6103 * gdbtypes.c (is_dynamic_type_internal): Check
6104 TYPE_HAS_DYNAMIC_LENGTH.
6105 (resolve_dynamic_type_internal): Use TYPE_DYNAMIC_LENGTH.
6106 * gdbtypes.h (TYPE_HAS_DYNAMIC_LENGTH, TYPE_DYNAMIC_LENGTH):
6107 New macros.
6108 (enum dynamic_prop_node_kind) <DYN_PROP_BYTE_SIZE>: New
6109 constant.
6110
6111 2020-04-24 Tom Tromey <tromey@adacore.com>
6112
6113 * dwarf2/read.c (struct variant_field): Rewrite.
6114 (struct variant_part_builder): New.
6115 (struct nextfield): Remove "variant" field. Add "offset".
6116 (struct field_info): Add "current_variant_part" and
6117 "variant_parts".
6118 (alloc_discriminant_info): Remove.
6119 (alloc_rust_variant): New function.
6120 (quirk_rust_enum): Update.
6121 (dwarf2_add_field): Set "offset" member. Don't handle
6122 DW_TAG_variant_part.
6123 (offset_map_type): New typedef.
6124 (convert_variant_range, create_one_variant)
6125 (create_one_variant_part, create_variant_parts)
6126 (add_variant_property): New functions.
6127 (dwarf2_attach_fields_to_type): Call add_variant_property.
6128 (read_structure_type): Don't handle DW_TAG_variant_part.
6129 (handle_variant_part, handle_variant): New functions.
6130 (handle_struct_member_die): Use them.
6131 (process_structure_scope): Don't handle variant parts.
6132 * gdbtypes.h (TYPE_FLAG_DISCRIMINATED_UNION): Remove.
6133 (struct discriminant_info): Remove.
6134 (enum dynamic_prop_node_kind) <DYN_PROP_DISCRIMINATED>: Remove.
6135 (struct main_type) <flag_discriminated_union>: Remove.
6136 * rust-lang.c (rust_enum_p, rust_empty_enum_p): Rewrite.
6137 (rust_enum_variant): Return int. Remove "contents". Rewrite.
6138 (rust_print_enum, rust_print_struct_def, rust_evaluate_subexp):
6139 Update.
6140 * valops.c (value_union_variant): Remove.
6141 * value.h (value_union_variant): Don't declare.
6142
6143 2020-04-24 Tom Tromey <tromey@adacore.com>
6144
6145 * ada-lang.c (ada_discrete_type_high_bound, ada_discrete_type_low)
6146 (ada_value_primitive_packed_val): Update.
6147 * ada-valprint.c (ada_value_print_1): Update.
6148 * dwarf2/loc.c (evaluate_for_locexpr_baton): New struct.
6149 (dwarf2_locexpr_baton_eval): Take a property_addr_info rather than
6150 just an address. Use evaluate_for_locexpr_baton.
6151 (dwarf2_evaluate_property): Update.
6152 * dwarf2/loc.h (struct property_addr_info) <valaddr>: Now an
6153 array_view.
6154 * findvar.c (default_read_var_value): Update.
6155 * gdbtypes.c (compute_variant_fields_inner)
6156 (resolve_dynamic_type_internal): Update.
6157 (resolve_dynamic_type): Change type of valaddr parameter.
6158 * gdbtypes.h (resolve_dynamic_type): Update.
6159 * valarith.c (value_subscripted_rvalue): Update.
6160 * value.c (value_from_contents_and_address): Update.
6161
6162 2020-04-24 Tom Tromey <tromey@adacore.com>
6163
6164 * dwarf2/loc.c (dwarf2_locexpr_baton_eval): Add
6165 "push_initial_value" parameter.
6166 (dwarf2_evaluate_property): Likewise.
6167 * dwarf2/loc.h (dwarf2_evaluate_property): Update.
6168
6169 2020-04-24 Tom Tromey <tromey@adacore.com>
6170
6171 * gdbtypes.c (is_dynamic_type_internal): Check for variant parts.
6172 (variant::matches, compute_variant_fields_recurse)
6173 (compute_variant_fields_inner, compute_variant_fields): New
6174 functions.
6175 (resolve_dynamic_struct): Check for DYN_PROP_VARIANT_PARTS.
6176 Use resolved_type after type is made.
6177 (operator==): Add new cases.
6178 * gdbtypes.h (TYPE_HAS_VARIANT_PARTS): New macro.
6179 (struct discriminant_range, struct variant, struct variant_part):
6180 New.
6181 (union dynamic_prop_data) <variant_parts, original_type>: New
6182 members.
6183 (enum dynamic_prop_node_kind) <DYN_PROP_VARIANT_PARTS>: New constant.
6184 (enum dynamic_prop_kind) <PROP_TYPE, PROP_VARIANT_PARTS>: New
6185 constants.
6186 * value.c (unpack_bits_as_long): Now public.
6187 * value.h (unpack_bits_as_long): Declare.
6188
6189 2020-04-24 Tom Tromey <tromey@adacore.com>
6190
6191 * rs6000-tdep.c (struct ppc_variant): Rename from "variant".
6192 (variants, find_variant_by_arch, rs6000_gdbarch_init): Update.
6193
6194 2020-04-24 Hannes Domani <ssbssa@yahoo.de>
6195
6196 * windows-tdep.c (exception_values): Add WOW64 exception numbers.
6197
6198 2020-04-24 Kamil Rytarowski <n54@gmx.com>
6199
6200 * inf-ptrace.h (follow_fork, insert_fork_catchpoint)
6201 (remove_fork_catchpoint, post_startup_inferior)
6202 (post_attach): Move...
6203 * obsd-nat.h (follow_fork, insert_fork_catchpoint)
6204 (remove_fork_catchpoint, post_startup_inferior)
6205 (post_attach): ...here.
6206 * inf-ptrace.c (follow_fork, insert_fork_catchpoint)
6207 (remove_fork_catchpoint, post_startup_inferior)
6208 (post_attach): Move...
6209 * obsd-nat.c (follow_fork, insert_fork_catchpoint)
6210 (remove_fork_catchpoint, post_startup_inferior)
6211 (post_attach): ...here.
6212
6213 2020-04-24 Tom Tromey <tromey@adacore.com>
6214
6215 * nat/windows-nat.h (struct windows_thread_info)
6216 <pc_adjusted>: New member.
6217 * windows-nat.c (windows_fetch_one_register): Check
6218 pc_adjusted.
6219 (windows_nat_target::get_windows_debug_event)
6220 (windows_nat_target::wait): Set pc_adjusted.
6221
6222 2020-04-24 Tom de Vries <tdevries@suse.de>
6223
6224 * contrib/cc-with-tweaks.sh: Remove <exec>.gdb-index file handling.
6225 Run gdb-add-index inside temp dir.
6226
6227 2020-04-23 Tom Tromey <tromey@adacore.com>
6228
6229 * windows-tdep.c (is_linked_with_cygwin_dll): Always update "iter"
6230 in loop.
6231
6232 2020-04-23 Luis Machado <luis.machado@linaro.org>
6233
6234 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first): Use
6235 get_frame_register instead of gdbarch_unwind_pc.
6236
6237 2020-04-23 Tom de Vries <tdevries@suse.de>
6238
6239 * symtab.c (lookup_global_symbol): Prefer def over decl.
6240
6241 2020-04-23 Tom de Vries <tdevries@suse.de>
6242
6243 PR symtab/25807
6244 * block.c (best_symbol, better_symbol): Promote to external.
6245 * block.h (best_symbol, better_symbol): Declare.
6246 * symtab.c (lookup_symbol_in_objfile_symtabs): Prefer def over
6247 decl.
6248
6249 2020-04-23 Tom Tromey <tromey@adacore.com>
6250
6251 PR ada/25837:
6252 * dwarf2/read.c (dw2_expand_symtabs_matching_symbol): Store a
6253 "const char *", not a "const std::string &".
6254 <name_and_matcher::operator==>: Update.
6255 * unittests/lookup_name_info-selftests.c: Change type of
6256 "result".
6257
6258 2020-04-23 Tom Tromey <tom@tromey.com>
6259
6260 * inferior.h (iterate_over_inferiors): Don't declare.
6261 * inferior.c (iterate_over_inferiors): Remove.
6262 * darwin-nat.c (find_inferior_task_it, find_inferior_pid_it):
6263 Remove.
6264 (darwin_find_inferior_by_task, darwin_find_inferior_by_pid): Don't
6265 use iterate_over_inferiors.
6266 (darwin_resume_inferior_it)
6267 (struct resume_inferior_threads_param)
6268 (darwin_resume_inferior_threads_it): Remove.
6269 (darwin_nat_target::resume): Don't use iterate_over_inferiors.
6270
6271 2020-04-23 Tom de Vries <tdevries@suse.de>
6272
6273 * blockframe.c (find_pc_partial_function): Use
6274 find_pc_sect_compunit_symtab rather than
6275 objfile->sf->qf->find_pc_sect_compunit_symtab.
6276
6277 2020-04-22 Tom de Vries <tdevries@suse.de>
6278
6279 PR symtab/25764
6280 * dwarf2/read.c (scan_partial_symbols): Allow external variable decls
6281 in psymtabs.
6282
6283 2020-04-22 Tom de Vries <tdevries@suse.de>
6284
6285 PR symtab/25801
6286 * psymtab.c (psym_map_symtabs_matching_filename): Don't skip shared
6287 symtabs.
6288
6289 2020-04-22 Tom de Vries <tdevries@suse.de>
6290
6291 PR symtab/25700
6292 * dwarf2/read.c (dwarf2_build_psymtabs_hard): Don't create psymtab for
6293 CU if already created.
6294
6295 2020-04-21 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
6296
6297 * infrun.c (displaced_step_fixup): Switch to the event_thread
6298 before calling displaced_step_restore, not after.
6299
6300 2020-04-21 Markus Metzger <markus.t.metzger@intel.com>
6301
6302 * record-btrace.c (record_btrace_enable_warn): Ignore thread if
6303 its inferior is not recorded by us.
6304 (record_btrace_target_open): Replace call to
6305 all_non_exited_threads () with call to current_inferior
6306 ()->non_exited_threads ().
6307 (record_btrace_target::stop_recording): Likewise.
6308 (record_btrace_target::close): Likewise.
6309 (record_btrace_target::wait): Likewise.
6310 (record_btrace_target::record_stop_replaying): Likewise.
6311
6312 2020-04-21 Markus Metzger <markus.t.metzger@intel.com>
6313
6314 * btrace.c (btrace_enable): Throw an error on double enables and
6315 when enabling recording fails.
6316 (btrace_disable): Throw an error if the thread is not recorded.
6317
6318 2020-04-21 Markus Metzger <markus.t.metzger@intel.com>
6319
6320 * record-btrace.c (record_btrace_target::fetch_registers): Forward
6321 request if we do not have a thread_info.
6322
6323 2020-04-21 Tom de Vries <tdevries@suse.de>
6324
6325 PR gdb/25471
6326 * thread.c
6327 (scoped_restore_current_thread::scoped_restore_current_thread): Catch
6328 exception in get_frame_id.
6329
6330 2020-04-20 Tom Tromey <tromey@adacore.com>
6331
6332 * python/python.c (struct gdbpy_event): Mark move constructor as
6333 noexcept.
6334 * python/py-tui.c (class gdbpy_tui_window_maker): Mark move
6335 constructor as noexcept.
6336 * completer.h (struct completion_result): Mark move constructor as
6337 noexcept.
6338 * completer.c (completion_result::completion_result): Use
6339 initialization style. Don't call reset_match_list.
6340
6341 2020-04-20 Mihails Strasuns <mihails.strasuns@intel.com>
6342
6343 * MAINTAINERS (Write After Approval): Add myself.
6344
6345 2020-04-18 Tom Tromey <tom@tromey.com>
6346
6347 * windows-tdep.c (init_w32_command_list)
6348 (w32_prefix_command_valid): Restore.
6349 (_initialize_windows_tdep): Call init_w32_command_list.
6350
6351 2020-04-18 Tom Tromey <tom@tromey.com>
6352
6353 * xcoffread.c (enter_line_range, scan_xcoff_symtab): Update.
6354 * value.c (value_fn_field): Update.
6355 * valops.c (find_function_in_inferior)
6356 (value_allocate_space_in_inferior): Update.
6357 * tui/tui-winsource.c (tui_update_source_windows_with_line):
6358 Update.
6359 * tui/tui-source.c (tui_source_window::set_contents): Update.
6360 * symtab.c (lookup_global_or_static_symbol)
6361 (find_function_start_sal_1, skip_prologue_sal)
6362 (print_msymbol_info, find_gnu_ifunc, symbol_arch): Update.
6363 * symmisc.c (dump_msymbols, dump_symtab_1)
6364 (maintenance_print_one_line_table): Update.
6365 * symfile.c (init_entry_point_info, section_is_mapped)
6366 (list_overlays_command, simple_read_overlay_table)
6367 (simple_overlay_update_1): Update.
6368 * stap-probe.c (handle_stap_probe): Update.
6369 * stabsread.c (dbx_init_float_type, define_symbol)
6370 (read_one_struct_field, read_enum_type, read_range_type): Update.
6371 * source.c (info_line_command): Update.
6372 * python/python.c (gdbpy_source_objfile_script)
6373 (gdbpy_execute_objfile_script): Update.
6374 * python/py-type.c (save_objfile_types): Update.
6375 * python/py-objfile.c (py_free_objfile): Update.
6376 * python/py-inferior.c (python_new_objfile): Update.
6377 * psymtab.c (psym_find_pc_sect_compunit_symtab, dump_psymtab)
6378 (dump_psymtab_addrmap_1, maintenance_info_psymtabs)
6379 (maintenance_check_psymtabs): Update.
6380 * printcmd.c (info_address_command): Update.
6381 * objfiles.h (struct objfile) <arch>: New method, from
6382 get_objfile_arch.
6383 (get_objfile_arch): Don't declare.
6384 * objfiles.c (get_objfile_arch): Remove.
6385 (filter_overlapping_sections): Update.
6386 * minsyms.c (msymbol_is_function): Update.
6387 * mi/mi-symbol-cmds.c (mi_cmd_symbol_list_lines)
6388 (output_nondebug_symbol): Update.
6389 * mdebugread.c (parse_symbol, basic_type, parse_partial_symbols)
6390 (mdebug_expand_psymtab): Update.
6391 * machoread.c (macho_add_oso_symfile): Update.
6392 * linux-tdep.c (linux_infcall_mmap, linux_infcall_munmap):
6393 Update.
6394 * linux-fork.c (checkpoint_command): Update.
6395 * linespec.c (convert_linespec_to_sals): Update.
6396 * jit.c (finalize_symtab): Update.
6397 * infrun.c (insert_exception_resume_from_probe): Update.
6398 * ia64-tdep.c (ia64_find_unwind_table): Update.
6399 * hppa-tdep.c (internalize_unwinds): Update.
6400 * gdbtypes.c (get_type_arch, init_float_type, objfile_type):
6401 Update.
6402 * gcore.c (call_target_sbrk): Update.
6403 * elfread.c (record_minimal_symbol, elf_symtab_read)
6404 (elf_rel_plt_read, elf_gnu_ifunc_record_cache)
6405 (elf_gnu_ifunc_resolve_by_got): Update.
6406 * dwarf2/read.c (create_addrmap_from_index)
6407 (create_addrmap_from_aranges, dw2_find_pc_sect_compunit_symtab)
6408 (read_debug_names_from_section)
6409 (process_psymtab_comp_unit_reader, add_partial_symbol)
6410 (add_partial_subprogram, process_full_comp_unit)
6411 (read_file_scope, read_func_scope, read_lexical_block_scope)
6412 (read_call_site_scope, dwarf2_ranges_read)
6413 (dwarf2_record_block_ranges, dwarf2_add_field)
6414 (mark_common_block_symbol_computed, read_tag_pointer_type)
6415 (read_tag_string_type, dwarf2_init_float_type)
6416 (dwarf2_init_complex_target_type, read_base_type)
6417 (partial_die_info::read, partial_die_info::read)
6418 (read_attribute_value, dwarf_decode_lines_1, new_symbol)
6419 (dwarf2_fetch_die_loc_sect_off): Update.
6420 * dwarf2/loc.c (dwarf2_find_location_expression)
6421 (class dwarf_evaluate_loc_desc, rw_pieced_value)
6422 (dwarf2_evaluate_loc_desc_full, dwarf2_locexpr_baton_eval)
6423 (dwarf2_loc_desc_get_symbol_read_needs)
6424 (locexpr_describe_location_piece, locexpr_describe_location_1)
6425 (loclist_describe_location): Update.
6426 * dwarf2/index-write.c (write_debug_names): Update.
6427 * dwarf2/frame.c (dwarf2_build_frame_info): Update.
6428 * dtrace-probe.c (dtrace_process_dof): Update.
6429 * dbxread.c (read_dbx_symtab, dbx_end_psymtab)
6430 (process_one_symbol): Update.
6431 * ctfread.c (ctf_init_float_type, read_base_type): Update.
6432 * coffread.c (coff_symtab_read, enter_linenos, decode_base_type)
6433 (coff_read_enum_type): Update.
6434 * cli/cli-cmds.c (edit_command, list_command): Update.
6435 * buildsym.c (buildsym_compunit::finish_block_internal): Update.
6436 * breakpoint.c (create_overlay_event_breakpoint)
6437 (create_longjmp_master_breakpoint)
6438 (create_std_terminate_master_breakpoint)
6439 (create_exception_master_breakpoint, get_sal_arch): Update.
6440 * block.c (block_gdbarch): Update.
6441 * annotate.c (annotate_source_line): Update.
6442
6443 2020-04-17 Tom Tromey <tromey@adacore.com>
6444
6445 * auto-load.c (show_auto_load_cmd): Remove.
6446 (auto_load_show_cmdlist_get): Use add_show_prefix_cmd.
6447 * arc-tdep.c (_initialize_arc_tdep): Use add_show_prefix_cmd.
6448 (maintenance_print_arc_command): Remove.
6449 * tui/tui-win.c (tui_command): Remove.
6450 (tui_get_cmd_list): Use add_basic_prefix_cmd.
6451 * tui/tui-layout.c (tui_layout_command): Remove.
6452 (_initialize_tui_layout): Use add_basic_prefix_cmd.
6453 * python/python.c (user_set_python, user_show_python): Remove.
6454 (_initialize_python): Use add_basic_prefix_cmd,
6455 add_show_prefix_cmd.
6456 * guile/guile.c (set_guile_command, show_guile_command): Remove.
6457 (install_gdb_commands): Use add_basic_prefix_cmd,
6458 add_show_prefix_cmd.
6459 (info_guile_command): Remove.
6460 * dwarf2/read.c (set_dwarf_cmd, show_dwarf_cmd): Remove.
6461 (_initialize_dwarf2_read): Use add_basic_prefix_cmd,
6462 add_show_prefix_cmd.
6463 * cli/cli-style.h (class cli_style_option) <add_setshow_commands>:
6464 Remove do_set and do_show parameters.
6465 * cli/cli-style.c (set_style, show_style): Remove.
6466 (_initialize_cli_style): Use add_basic_prefix_cmd,
6467 add_show_prefix_cmd.
6468 (cli_style_option::add_setshow_commands): Remove do_set and
6469 do_show parameters.
6470 (cli_style_option::add_setshow_commands): Use
6471 add_basic_prefix_cmd, add_show_prefix_cmd.
6472 (STYLE_ADD_SETSHOW_COMMANDS): Remove macro.
6473 (set_style_name): Remove.
6474 * cli/cli-dump.c (dump_command, append_command): Remove.
6475 (srec_dump_command, ihex_dump_command, verilog_dump_command)
6476 (tekhex_dump_command, binary_dump_command)
6477 (binary_append_command): Remove.
6478 (_initialize_cli_dump): Use add_basic_prefix_cmd.
6479 * windows-tdep.c (w32_prefix_command_valid): Remove global.
6480 (init_w32_command_list): Remove; move into ...
6481 (_initialize_windows_tdep): ... here. Use add_basic_prefix_cmd.
6482 * valprint.c (set_print, show_print, set_print_raw)
6483 (show_print_raw): Remove.
6484 (_initialize_valprint): Use add_basic_prefix_cmd,
6485 add_show_prefix_cmd.
6486 * typeprint.c (set_print_type, show_print_type): Remove.
6487 (_initialize_typeprint): Use add_basic_prefix_cmd,
6488 add_show_prefix_cmd.
6489 * record.c (set_record_command, show_record_command): Remove.
6490 (_initialize_record): Use add_basic_prefix_cmd,
6491 add_show_prefix_cmd.
6492 * cli/cli-cmds.c (_initialize_cli_cmds): Use add_basic_prefix_cmd,
6493 add_show_prefix_cmd.
6494 (info_command, show_command, set_debug, show_debug): Remove.
6495 * top.h (set_history, show_history): Don't declare.
6496 * top.c (set_history, show_history): Remove.
6497 * target-descriptions.c (set_tdesc_cmd, show_tdesc_cmd)
6498 (unset_tdesc_cmd): Remove.
6499 (_initialize_target_descriptions): Use add_basic_prefix_cmd,
6500 add_show_prefix_cmd.
6501 * symtab.c (info_module_command): Remove.
6502 (_initialize_symtab): Use add_basic_prefix_cmd.
6503 * symfile.c (overlay_command): Remove.
6504 (_initialize_symfile): Use add_basic_prefix_cmd.
6505 * sparc64-tdep.c (info_adi_command): Remove.
6506 (_initialize_sparc64_adi_tdep): Use add_basic_prefix_cmd.
6507 * sh-tdep.c (show_sh_command, set_sh_command): Remove.
6508 (_initialize_sh_tdep): Use add_basic_prefix_cmd,
6509 add_show_prefix_cmd.
6510 * serial.c (serial_set_cmd, serial_show_cmd): Remove.
6511 (_initialize_serial): Use add_basic_prefix_cmd,
6512 add_show_prefix_cmd.
6513 * ser-tcp.c (set_tcp_cmd, show_tcp_cmd): Remove.
6514 (_initialize_ser_tcp): Use add_basic_prefix_cmd,
6515 add_show_prefix_cmd.
6516 * rs6000-tdep.c (set_powerpc_command, show_powerpc_command)
6517 (_initialize_rs6000_tdep): Use add_basic_prefix_cmd,
6518 add_show_prefix_cmd.
6519 * riscv-tdep.c (show_riscv_command, set_riscv_command)
6520 (show_debug_riscv_command, set_debug_riscv_command): Remove.
6521 (_initialize_riscv_tdep): Use add_basic_prefix_cmd,
6522 add_show_prefix_cmd.
6523 * remote.c (remote_command, set_remote_cmd): Remove.
6524 (_initialize_remote): Use add_basic_prefix_cmd.
6525 * record-full.c (set_record_full_command)
6526 (show_record_full_command): Remove.
6527 (_initialize_record_full): Use add_basic_prefix_cmd,
6528 add_show_prefix_cmd.
6529 * record-btrace.c (cmd_set_record_btrace)
6530 (cmd_show_record_btrace, cmd_set_record_btrace_bts)
6531 (cmd_show_record_btrace_bts, cmd_set_record_btrace_pt)
6532 (cmd_show_record_btrace_pt): Remove.
6533 (_initialize_record_btrace): Use add_basic_prefix_cmd,
6534 add_show_prefix_cmd.
6535 * ravenscar-thread.c (set_ravenscar_command)
6536 (show_ravenscar_command): Remove.
6537 (_initialize_ravenscar): Use add_basic_prefix_cmd,
6538 add_show_prefix_cmd.
6539 * mips-tdep.c (show_mips_command, set_mips_command)
6540 (_initialize_mips_tdep): Use add_basic_prefix_cmd,
6541 add_show_prefix_cmd.
6542 * maint.c (maintenance_command, maintenance_info_command)
6543 (maintenance_check_command, maintenance_print_command)
6544 (maintenance_set_cmd, maintenance_show_cmd): Remove.
6545 (_initialize_maint_cmds): Use add_basic_prefix_cmd,
6546 add_show_prefix_cmd.
6547 (show_per_command_cmd): Remove.
6548 * maint-test-settings.c (maintenance_set_test_settings_cmd):
6549 Remove.
6550 (maintenance_show_test_settings_cmd): Remove.
6551 (_initialize_maint_test_settings): Use add_basic_prefix_cmd,
6552 add_show_prefix_cmd.
6553 * maint-test-options.c (maintenance_test_options_command):
6554 Remove.
6555 (_initialize_maint_test_options): Use add_basic_prefix_cmd.
6556 * macrocmd.c (macro_command): Remove
6557 (_initialize_macrocmd): Use add_basic_prefix_cmd.
6558 * language.c (set_check, show_check): Remove.
6559 (_initialize_language): Use add_basic_prefix_cmd,
6560 add_show_prefix_cmd.
6561 * infcmd.c (unset_command): Remove.
6562 (_initialize_infcmd): Use add_basic_prefix_cmd.
6563 * i386-tdep.c (set_mpx_cmd, show_mpx_cmd): Remove.
6564 (_initialize_i386_tdep): Use add_basic_prefix_cmd,
6565 add_show_prefix_cmd.
6566 * go32-nat.c (go32_info_dos_command): Remove.
6567 (_initialize_go32_nat): Use add_basic_prefix_cmd.
6568 * cli/cli-decode.c (do_prefix_cmd, add_basic_prefix_cmd)
6569 (do_show_prefix_cmd, add_show_prefix_cmd): New functions.
6570 * frame.c (set_backtrace_cmd, show_backtrace_cmd): Remove.
6571 (_initialize_frame): Use add_basic_prefix_cmd,
6572 add_show_prefix_cmd.
6573 * dcache.c (set_dcache_command, show_dcache_command): Remove.
6574 (_initialize_dcache): Use add_basic_prefix_cmd,
6575 add_show_prefix_cmd.
6576 * cp-support.c (maint_cplus_command): Remove.
6577 (_initialize_cp_support): Use add_basic_prefix_cmd.
6578 * btrace.c (maint_btrace_cmd, maint_btrace_set_cmd)
6579 (maint_btrace_show_cmd, maint_btrace_pt_set_cmd)
6580 (maint_btrace_pt_show_cmd, _initialize_btrace): Use
6581 add_basic_prefix_cmd, add_show_prefix_cmd.
6582 * breakpoint.c (save_command): Remove.
6583 (_initialize_breakpoint): Use add_basic_prefix_cmd.
6584 * arm-tdep.c (set_arm_command, show_arm_command): Remove.
6585 (_initialize_arm_tdep): Use add_basic_prefix_cmd,
6586 add_show_prefix_cmd.
6587 * ada-lang.c (maint_set_ada_cmd, maint_show_ada_cmd)
6588 (set_ada_command, show_ada_command): Remove.
6589 (_initialize_ada_language): Use add_basic_prefix_cmd,
6590 add_show_prefix_cmd.
6591 * command.h (add_basic_prefix_cmd, add_show_prefix_cmd): Declare.
6592
6593 2020-04-16 Kamil Rytarowski <n54@gmx.com>
6594
6595 * nbsd-nat.c (inf_ptrace_target::auxv_parse): Remove.
6596 * nbsd-nat.h (inf_ptrace_target::auxv_parse): Likewise.
6597
6598 2020-04-16 Simon Marchi <simon.marchi@polymtl.ca>
6599
6600 * windows-tdep.c (is_linked_with_cygwin_dll): Add filename to
6601 warning messages.
6602
6603 2020-04-16 Simon Marchi <simon.marchi@polymtl.ca>
6604
6605 * windows-tdep.c (is_linked_with_cygwin_dll): Consider case where
6606 import table is not at beginning of .idata section.
6607
6608 2020-04-16 Pedro Alves <palves@redhat.com>
6609
6610 * inferior.c (delete_inferior): Use delete operator directly
6611 instead of delete_program_space.
6612 * progspace.c (add_program_space): New, factored out from
6613 program_space::program_space.
6614 (remove_program_space): New, factored out from
6615 delete_program_space.
6616 (program_space::program_space): Remove intro comment. Rewrite.
6617 (program_space::~program_space): Remove intro comment. Call
6618 remove_program_space.
6619 (delete_program_space): Delete.
6620 * progspace.h (program_space::program_space): Make explicit. Move
6621 intro comment here, adjusted.
6622 (program_space::~program_space): Move intro comment here,
6623 adjusted.
6624 (delete_program_space): Remove.
6625
6626 2020-04-16 Tom Tromey <tromey@adacore.com>
6627
6628 * windows-nat.c (windows_nat::handle_access_violation): New
6629 function.
6630 * nat/windows-nat.h (handle_access_violation): Declare.
6631 * nat/windows-nat.c (handle_exception): Move Cygwin code to
6632 windows-nat.c. Call handle_access_violation.
6633
6634 2020-04-16 Tom de Vries <tdevries@suse.de>
6635
6636 PR symtab/25791
6637 * dwarf2/index-write.c (write_gdbindex): Generate CU table entries for
6638 CUs without psymtab.
6639
6640 2020-04-16 Kevin Buettner <kevinb@redhat.com>
6641
6642 * python/python.c (do_start_initialization): Don't call
6643 PyEval_InitThreads for Python 3.9 and beyond.
6644
6645 2020-04-15 Kamil Rytarowski <n54@gmx.com>
6646
6647 * obsd-nat.c (obsd_nat_target::update_thread_list): Pass "this" to
6648 thread functions.
6649 (obsd_nat_target::wait): Likewise.
6650
6651 2020-04-15 Tom Tromey <tromey@adacore.com>
6652
6653 * windows-nat.c (DEBUG_EXEC, DEBUG_EVENTS, DEBUG_MEM)
6654 (DEBUG_EXCEPT): Use debug_printf.
6655
6656 2020-04-15 Andrew Burgess <andrew.burgess@embecosm.com>
6657
6658 * completer.c (class completion_tracker::completion_hash_entry)
6659 <hash_name>: New member function.
6660 (completion_tracker::discard_completions): New callback to hash a
6661 completion_hash_entry, pass this to htab_create_alloc.
6662
6663 2016-01-20 Jon Turney <jon.turney@dronecode.org.uk>
6664
6665 * windows-nat.c (windows_make_so): Warn rather than stopping with
6666 an error if realpath() fails.
6667
6668 2020-04-14 Kamil Rytarowski <n54@gmx.com>
6669
6670 * nbsd-nat.c (nbsd_pid_to_kinfo_proc2): New.
6671 (nbsd_nat_target::info_proc): Add do_status.
6672
6673 2020-04-14 Simon Marchi <simon.marchi@polymtl.ca>
6674 Tom de Vries <tdevries@suse.de>
6675
6676 PR symtab/25718
6677 * psympriv.h (struct partial_symtab::read_symtab)
6678 (struct partial_symtab::expand_psymtab)
6679 (struct partial_symtab::read_dependencies): Update comments.
6680 * dwarf2/read.c (struct dwarf2_include_psymtab::read_symtab): Call
6681 read_symtab for includer.
6682 (struct dwarf2_include_psymtab::expand_psymtab): Assert false.
6683 (struct dwarf2_include_psymtab::readin_p): Call readin_p () for includer.
6684 (struct dwarf2_include_psymtab::m_readin): Remove.
6685 (struct dwarf2_include_psymtab::includer): New member function.
6686 (dwarf2_psymtab::expand_psymtab): Assert !readin.
6687
6688 2020-04-14 Tom de Vries <tdevries@suse.de>
6689
6690 PR symtab/25720
6691 * symmisc.c (maintenance_expand_symtabs): Call expand_symtabs_matching
6692 with NULL symbol_matcher and lookup_name.
6693 * psymtab.c (psym_expand_symtabs_matching): Handle NULL symbol_matcher
6694 and lookup_name.
6695 * dwarf2/read.c (dw2_expand_symtabs_matching)
6696 (dw2_debug_names_expand_symtabs_matching): Same.
6697 * symfile.h (struct quick_symbol_functions::expand_symtabs_matching):
6698 Make lookup_name a pointer. Update comment.
6699 * symtab.c (global_symbol_searcher::expand_symtabs): Handle
6700 lookup_name being a pointer.
6701 * symfile.c (expand_symtabs_matching): Same.
6702 * symfile-debug.c (debug_qf_expand_symtabs_matching): Same.
6703 * linespec.c (iterate_over_all_matching_symtabs): Same.
6704
6705 2020-04-13 Tom Tromey <tom@tromey.com>
6706
6707 * run-on-main-thread.c: Update include.
6708 * unittests/main-thread-selftests.c: Update include.
6709 * tui/tui-win.c: Update include.
6710 * tui/tui-io.c: Update include.
6711 * tui/tui-interp.c: Update include.
6712 * tui/tui-hooks.c: Update include.
6713 * top.h: Update include.
6714 * top.c: Update include.
6715 * ser-base.c: Update include.
6716 * remote.c: Update include.
6717 * remote-notif.c: Update include.
6718 * remote-fileio.c: Update include.
6719 * record-full.c: Update include.
6720 * record-btrace.c: Update include.
6721 * python/python.c: Update include.
6722 * posix-hdep.c: Update include.
6723 * mingw-hdep.c: Update include.
6724 * mi/mi-main.c: Update include.
6725 * mi/mi-interp.c: Update include.
6726 * main.c: Update include.
6727 * linux-nat.c: Update include.
6728 * interps.c: Update include.
6729 * infrun.c: Update include.
6730 * inf-loop.c: Update include.
6731 * event-top.c: Update include.
6732 * event-loop.c: Move to ../gdbsupport/.
6733 * event-loop.h: Move to ../gdbsupport/.
6734 * async-event.h: Update include.
6735 * Makefile.in (COMMON_SFILES, HFILES_NO_SRCDIR): Update.
6736
6737 2020-04-13 Tom Tromey <tom@tromey.com>
6738
6739 * tui/tui-win.c: Include async-event.h.
6740 * remote.c: Include async-event.h.
6741 * remote-notif.c: Include async-event.h.
6742 * record-full.c: Include async-event.h.
6743 * record-btrace.c: Include async-event.h.
6744 * infrun.c: Include async-event.h.
6745 * event-top.c: Include async-event.h.
6746 * event-loop.h: Move some declarations to async-event.h.
6747 * event-loop.c: Don't include ser-event.h or top.h. Move some
6748 code to async-event.c.
6749 * async-event.h: New file.
6750 * async-event.c: New file.
6751 * Makefile.in (COMMON_SFILES): Add async-event.c.
6752 (HFILES_NO_SRCDIR): Add async-event.h.
6753
6754 2020-04-13 Tom Tromey <tom@tromey.com>
6755
6756 * utils.c (flush_streams): New function.
6757 * event-loop.c (gdb_wait_for_event): Call flush_streams.
6758
6759 2020-04-13 Tom Tromey <tom@tromey.com>
6760
6761 * event-loop.c (handle_file_event): Use warning, not
6762 printf_unfiltered.
6763
6764 2020-04-13 Tom Tromey <tom@tromey.com>
6765
6766 * event-loop.c: Include <chrono>.
6767
6768 2020-04-13 Tom Tromey <tom@tromey.com>
6769
6770 * gdb_select.h: Move to ../gdbsupport/.
6771 * event-loop.c: Update include path.
6772 * top.c: Update include path.
6773 * ser-base.c: Update include path.
6774 * ui-file.c: Update include path.
6775 * ser-tcp.c: Update include path.
6776 * guile/scm-ports.c: Update include path.
6777 * posix-hdep.c: Update include path.
6778 * ser-unix.c: Update include path.
6779 * gdb_usleep.c: Update include path.
6780 * mingw-hdep.c: Update include path.
6781 * inflow.c: Update include path.
6782 * infrun.c: Update include path.
6783 * event-top.c: Update include path.
6784
6785 2020-04-13 Tom Tromey <tom@tromey.com>
6786
6787 * configure: Rebuild.
6788 * configure.ac: Remove checks that are now in GDB_AC_COMMON.
6789
6790 2020-04-13 Tom Tromey <tom@tromey.com>
6791
6792 * event-loop.h (start_event_loop): Don't declare.
6793 * event-loop.c (start_event_loop): Move...
6794 * main.c (start_event_loop): ...here. Now static.
6795
6796 2020-04-13 Sergio Durigan Junior <sergiodj@sergiodj.net>
6797
6798 * MAINTAINERS: Update my email address.
6799
6800 2020-04-12 Kamil Rytarowski <n54@gmx.com>
6801
6802 * nbsd-nat.c (nbsd_nat_target::info_proc): Add IP_MINIMAL and
6803 IP_ALL.
6804
6805 2020-04-12 Kamil Rytarowski <n54@gmx.com>
6806
6807 * nbsd-nat.c (nbsd_pid_to_cmdline): Add.
6808 (nbsd_nat_target::info_proc): Add do_cmdline.
6809
6810 2020-04-12 Kamil Rytarowski <n54@gmx.com>
6811
6812 * nbsd-nat.c (nbsd_pid_to_cwd): Add.
6813 (nbsd_nat_target::info_proc): Add do_cwd.
6814
6815 2020-04-12 Kamil Rytarowski <n54@gmx.com>
6816
6817 * nbsd-nat.c (nbsd_nat_target::info_proc): Add do_exe.
6818
6819 2020-04-11 Kamil Rytarowski <n54@gmx.com>
6820
6821 * nbsd-nat.c; Include "nbsd-tdep.h" and "gdbarch.h".
6822 * nbsd-nat.c (nbsd_nat_target::find_memory_regions)
6823 (nbsd_nat_target::info_proc): New functions.
6824 * nbsd-nat.c (kinfo_get_vmmap): New function.
6825 * nbsd-nat.c (nbsd_nat_target::info_proc) Use
6826 nbsd_info_proc_mappings_header and nbsd_info_proc_mappings_entry.
6827 * nbsd-tdep.c (nbsd_info_proc_mappings_header)
6828 (nbsd_info_proc_mappings_entry, nbsd_vm_map_entry_flags): New
6829 functions.
6830 * nbsd-tdep.c (KINFO_VME_PROT_READ, KINFO_VME_PROT_WRITE)
6831 (KINFO_VME_PROT_EXEC, KINFO_VME_FLAG_COW)
6832 (KINFO_VME_FLAG_NEEDS_COPY, KINFO_VME_FLAG_NOCOREDUMP)
6833 (KINFO_VME_FLAG_PAGEABLE, KINFO_VME_FLAG_GROWS_UP)
6834 (KINFO_VME_FLAG_GROWS_DOWN): New.
6835
6836 2020-04-10 Artur Shepilko <nomadbyte@gmail.com>
6837
6838 * utils.c (copy_bitwise): Use unsigned 0 constant as operand of
6839 bit shift.
6840
6841 2020-04-10 Tom Tromey <tromey@adacore.com>
6842
6843 * symfile.c (symbol_file_add_separate): Preserve OBJF_MAINLINE.
6844
6845 2020-04-10 Tom Tromey <tromey@adacore.com>
6846
6847 * symtab.c (get_symbol_address, get_msymbol_address): Skip
6848 separate debug files.
6849
6850 2020-04-10 Hannes Domani <ssbssa@yahoo.de>
6851
6852 * nat/windows-nat.c (STATUS_WX86_BREAKPOINT, STATUS_WX86_SINGLE_STEP):
6853 Move to...
6854 * nat/windows-nat.h (STATUS_WX86_BREAKPOINT, STATUS_WX86_SINGLE_STEP):
6855 ... here.
6856 * windows-nat.c (windows_nat_target::get_windows_debug_event):
6857 Check for STATUS_WX86_BREAKPOINT.
6858 (windows_nat_target::wait): Same.
6859
6860 2020-04-10 Tom de Vries <tdevries@suse.de>
6861
6862 PR cli/25808
6863 * python/lib/gdb/__init__.py: Initialize lexer with stripnl=False.
6864
6865 2020-04-09 Simon Marchi <simon.marchi@polymtl.ca>
6866
6867 * MAINTAINERS (Global Maintainers): Add Tom de Vries.
6868 (Write After Approval): Remove Tom de Vries.
6869
6870 2020-04-09 Bernd Edlinger <bernd.edlinger@hotmail.de>
6871
6872 revert partially:
6873 2020-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
6874
6875 * buildsym.c (record_line): Fix undefined behavior and preserve
6876 lines at eof.
6877
6878 2020-04-09 Kamil Rytarowski <n54@gmx.com>
6879
6880 * auxv.h (svr4_auxv_parse): New.
6881 * auxv.c (default_auxv_parse): Split into default_auxv_parse
6882 and generic_auxv_parse.
6883 (svr4_auxv_parse): Add.
6884 * obsd-tdep.c: Include "auxv.h".
6885 (obsd_auxv_parse): Remove.
6886 (obsd_init_abi): Remove comment.
6887 (obsd_init_abi): Change set_gdbarch_auxv_parse passed argument
6888 from `obsd_auxv_parse' to `svr4_auxv_parse'.
6889 * nbsd-tdep.c: Include "auxv.h".
6890 (nbsd_init_abi): Call set_gdbarch_auxv_parse.
6891
6892 2020-04-08 Tom Tromey <tromey@adacore.com>
6893
6894 * nat/windows-nat.h (last_wait_event): Don't declare.
6895 (wait_for_debug_event): Update comment.
6896 * nat/windows-nat.c (last_wait_event): Now static.
6897
6898 2020-04-08 Tom Tromey <tromey@adacore.com>
6899
6900 * windows-nat.c (wait_for_debug_event): Move to
6901 nat/windows-nat.c.
6902 * nat/windows-nat.h (wait_for_debug_event): Declare.
6903 * nat/windows-nat.c (wait_for_debug_event): Move from
6904 windows-nat.c. No longer static.
6905
6906 2020-04-08 Tom Tromey <tromey@adacore.com>
6907
6908 * windows-nat.c (get_windows_debug_event): Use
6909 fetch_pending_stop.
6910 * nat/windows-nat.h (fetch_pending_stop): Declare.
6911 * nat/windows-nat.c (fetch_pending_stop): New function.
6912
6913 2020-04-08 Tom Tromey <tromey@adacore.com>
6914
6915 * windows-nat.c (windows_continue): Use matching_pending_stop and
6916 continue_last_debug_event.
6917 * nat/windows-nat.h (matching_pending_stop)
6918 (continue_last_debug_event): Declare.
6919 * nat/windows-nat.c (DEBUG_EVENTS): New define.
6920 (matching_pending_stop, continue_last_debug_event): New
6921 functions.
6922
6923 2020-04-08 Tom Tromey <tromey@adacore.com>
6924
6925 * windows-nat.c (MS_VC_EXCEPTION): Move to nat/windows-nat.c.
6926 (handle_exception_result): Move to nat/windows-nat.h.
6927 (DEBUG_EXCEPTION_SIMPLE): Remove.
6928 (windows_nat::handle_ms_vc_exception): New function.
6929 (handle_exception): Move to nat/windows-nat.c.
6930 (get_windows_debug_event): Update.
6931 (STATUS_WX86_BREAKPOINT, STATUS_WX86_SINGLE_STEP): Move to
6932 nat/windows-nat.c.
6933 * nat/windows-nat.h (handle_ms_vc_exception): Declare.
6934 (handle_exception_result): Move from windows-nat.c.
6935 (handle_exception): Declare.
6936 * nat/windows-nat.c (MS_VC_EXCEPTION, handle_exception)
6937 (STATUS_WX86_SINGLE_STEP, STATUS_WX86_BREAKPOINT): Move from
6938 windows-nat.c.
6939
6940 2020-04-08 Tom Tromey <tromey@adacore.com>
6941
6942 * windows-nat.c (exception_count, event_count): Remove.
6943 (handle_exception, get_windows_debug_event)
6944 (do_initial_windows_stuff): Update.
6945
6946 2020-04-08 Tom Tromey <tromey@adacore.com>
6947
6948 * windows-nat.c (windows_nat::handle_load_dll)
6949 (windows_nat::handle_unload_dll): Rename. No longer static.
6950 * nat/windows-nat.h (handle_load_dll, handle_unload_dll):
6951 Declare.
6952
6953 2020-04-08 Tom Tromey <tromey@adacore.com>
6954
6955 * complaints.h (stop_whining): Declare at top-level.
6956 (complaint): Don't declare stop_whining.
6957
6958 2020-04-08 Tom Tromey <tromey@adacore.com>
6959
6960 * windows-nat.c (windows_nat::handle_output_debug_string):
6961 Rename. No longer static.
6962 * nat/windows-nat.h (handle_output_debug_string): Declare.
6963
6964 2020-04-08 Tom Tromey <tromey@adacore.com>
6965
6966 * windows-nat.c (current_process_handle, current_process_id)
6967 (main_thread_id, last_sig, current_event, last_wait_event)
6968 (current_windows_thread, desired_stop_thread_id, pending_stops)
6969 (struct pending_stop, siginfo_er): Move to nat/windows-nat.c.
6970 (display_selectors, fake_create_process)
6971 (get_windows_debug_event): Update.
6972 * nat/windows-nat.h (current_process_handle, current_process_id)
6973 (main_thread_id, last_sig, current_event, last_wait_event)
6974 (current_windows_thread, desired_stop_thread_id, pending_stops)
6975 (struct pending_stop, siginfo_er): Move from windows-nat.c.
6976 * nat/windows-nat.c (current_process_handle, current_process_id)
6977 (main_thread_id, last_sig, current_event, last_wait_event)
6978 (current_windows_thread, desired_stop_thread_id, pending_stops)
6979 (siginfo_er): New globals. Move from windows-nat.c.
6980
6981 2020-04-08 Tom Tromey <tromey@adacore.com>
6982
6983 * windows-nat.c (get_image_name): Move to nat/windows-nat.c.
6984 (handle_load_dll): Update.
6985 * nat/windows-nat.c (get_image_name): Move from windows-nat.c.
6986
6987 2020-04-08 Tom Tromey <tromey@adacore.com>
6988
6989 * windows-nat.c (enum thread_disposition_type): Move to
6990 nat/windows-nat.h.
6991 (windows_nat::thread_rec): Rename from thread_rec. No longer
6992 static.
6993 (windows_add_thread, windows_nat_target::fetch_registers)
6994 (windows_nat_target::store_registers, handle_exception)
6995 (windows_nat_target::resume, get_windows_debug_event)
6996 (windows_nat_target::get_tib_address)
6997 (windows_nat_target::thread_name)
6998 (windows_nat_target::thread_alive): Update.
6999 * nat/windows-nat.h (enum thread_disposition_type): Move from
7000 windows-nat.c.
7001 (thread_rec): Declare.
7002
7003 2020-04-08 Tom Tromey <tromey@adacore.com>
7004
7005 * windows-nat.c: Add "using namespace".
7006 * nat/windows-nat.h: Wrap contents in windows_nat namespace.
7007 * nat/windows-nat.c: Wrap contents in windows_nat namespace.
7008
7009 2020-04-08 Tom Tromey <tromey@adacore.com>
7010
7011 * nat/windows-nat.h (struct windows_thread_info): Declare
7012 destructor.
7013 * nat/windows-nat.c (~windows_thread_info): New.
7014
7015 2020-04-08 Tom Tromey <tromey@adacore.com>
7016
7017 PR gdb/22992
7018 * windows-nat.c (current_event): Update comment.
7019 (last_wait_event, desired_stop_thread_id): New globals.
7020 (struct pending_stop): New.
7021 (pending_stops): New global.
7022 (windows_nat_target) <stopped_by_sw_breakpoint>
7023 <supports_stopped_by_sw_breakpoint>: New methods.
7024 (windows_fetch_one_register): Add assertions. Adjust PC.
7025 (windows_continue): Handle pending stops. Suspend other threads
7026 when stepping. Use last_wait_event
7027 (wait_for_debug_event): New function.
7028 (get_windows_debug_event): Use wait_for_debug_event. Handle
7029 pending stops. Queue spurious stops.
7030 (windows_nat_target::wait): Set stopped_at_software_breakpoint.
7031 (windows_nat_target::kill): Use wait_for_debug_event.
7032 * nat/windows-nat.h (struct windows_thread_info)
7033 <stopped_at_software_breakpoint>: New field.
7034 * nat/windows-nat.c (windows_thread_info::resume): Clear
7035 stopped_at_software_breakpoint.
7036
7037 2020-04-08 Tom Tromey <tromey@adacore.com>
7038
7039 * windows-nat.c (enum thread_disposition_type): New.
7040 (thread_rec): Replace "get_context" parameter with "disposition";
7041 change type.
7042 (windows_add_thread, windows_nat_target::fetch_registers)
7043 (windows_nat_target::store_registers, handle_exception)
7044 (windows_nat_target::resume, get_windows_debug_event)
7045 (windows_nat_target::get_tib_address)
7046 (windows_nat_target::thread_name)
7047 (windows_nat_target::thread_alive): Update.
7048
7049 2020-04-08 Tom Tromey <tromey@adacore.com>
7050
7051 * windows-nat.c (thread_rec): Use windows_thread_info::suspend.
7052 (windows_continue): Use windows_continue::resume.
7053 * nat/windows-nat.h (struct windows_thread_info) <suspend,
7054 resume>: Declare new methods.
7055 * nat/windows-nat.c: New file.
7056 * configure.nat (NATDEPFILES): Add nat/windows-nat.o when needed.
7057
7058 2020-04-08 Tom Tromey <tromey@adacore.com>
7059
7060 * windows-nat.c (windows_add_thread, windows_delete_thread)
7061 (windows_nat_target::fetch_registers)
7062 (windows_nat_target::store_registers, fake_create_process)
7063 (windows_nat_target::resume, windows_nat_target::resume)
7064 (get_windows_debug_event, windows_nat_target::wait)
7065 (windows_nat_target::pid_to_str)
7066 (windows_nat_target::get_tib_address)
7067 (windows_nat_target::get_ada_task_ptid)
7068 (windows_nat_target::thread_name)
7069 (windows_nat_target::thread_alive): Use lwp, not tid.
7070
7071 2020-04-08 Tom Tromey <tromey@adacore.com>
7072
7073 * windows-nat.c (handle_exception)
7074 (windows_nat_target::thread_name): Update.
7075 * nat/windows-nat.h (windows_thread_info): Remove destructor.
7076 <name>: Now unique_xmalloc_ptr.
7077
7078 2020-04-08 Tom Tromey <tromey@adacore.com>
7079
7080 * windows-nat.c (thread_rec)
7081 (windows_nat_target::fetch_registers): Update.
7082 * nat/windows-nat.h (struct windows_thread_info) <suspended>:
7083 Update comment.
7084 <debug_registers_changed, reload_context>: Now bool.
7085
7086 2020-04-08 Tom Tromey <tromey@adacore.com>
7087
7088 * windows-nat.c (windows_add_thread): Use new.
7089 (windows_init_thread_list, windows_delete_thread): Use delete.
7090 (get_windows_debug_event): Update.
7091 * nat/windows-nat.h (struct windows_thread_info): Add constructor,
7092 destructor, and initializers.
7093
7094 2020-04-08 Tom Tromey <tromey@adacore.com>
7095
7096 * windows-nat.c (struct windows_thread_info): Remove.
7097 * nat/windows-nat.h: New file.
7098
7099 2020-04-08 Tom Tromey <tromey@adacore.com>
7100
7101 * windows-nat.c (struct windows_thread_info) <tid>: Rename from "id".
7102 (thread_rec, windows_add_thread, windows_delete_thread)
7103 (windows_continue): Update.
7104
7105 2020-04-08 Tom Tromey <tromey@adacore.com>
7106
7107 * windows-nat.c (struct windows_thread_info): Remove typedef.
7108 (thread_head): Remove.
7109 (thread_list): New global.
7110 (thread_rec, windows_add_thread, windows_init_thread_list)
7111 (windows_delete_thread, windows_continue): Update.
7112
7113 2020-04-08 Simon Marchi <simon.marchi@polymtl.ca>
7114
7115 * windows-tdep.h (windows_init_abi): Add comment.
7116 (cygwin_init_abi): New declaration.
7117 * windows-tdep.c: Split signal enumeration in two, one for
7118 Windows and one for Cygwin.
7119 (windows_gdb_signal_to_target): Only deal with signal of the
7120 Windows OS ABI.
7121 (cygwin_gdb_signal_to_target): New function.
7122 (windows_init_abi): Rename to windows_init_abi_common, don't set
7123 gdb_signal_to_target gdbarch method. Add new new function with
7124 this name.
7125 (cygwin_init_abi): New function.
7126 * amd64-windows-tdep.c (amd64_windows_init_abi_common): Add
7127 comment. Don't call windows_init_abi.
7128 (amd64_windows_init_abi): Add comment, call windows_init_abi.
7129 (amd64_cygwin_init_abi): Add comment, call cygwin_init_abi.
7130 * i386-windows-tdep.c (i386_windows_init_abi): Rename to
7131 i386_windows_init_abi_common, don't call windows_init_abi. Add
7132 a new function of this name.
7133 (i386_cygwin_init_abi): New function.
7134 (_initialize_i386_windows_tdep): Bind i386_cygwin_init_abi to
7135 OS ABI Cygwin.
7136
7137 2020-04-08 Simon Marchi <simon.marchi@polymtl.ca>
7138
7139 * dwarf2/read.c (read_gdb_index_from_buffer): Remove objfile
7140 parameter.c.
7141 (dwarf2_read_gdb_index): Update.
7142
7143 2020-04-07 Kamil Rytarowski <n54@gmx.com>
7144
7145 * nbsd-tdep.c: Include "objfiles.h".
7146 (nbsd_skip_solib_resolver): New.
7147 (nbsd_init_abi): Call set_gdbarch_skip_solib_resolver().
7148
7149 2020-04-07 Nitika Achra <Nitika.Achra@amd.com>
7150
7151 * dwarf2/loc.c (loclist_describe_location): Call the function decode_debug_loclists_
7152 addresses if DWARF version is 5 or more because DW_LLE_start* or DW_LLE_offset_pair
7153 with DW_LLE_base_addressx are being emitted in DWARFv5.
7154 Add the newly added kind DW_LOC_OFFSET_PAIR also.
7155 The length of location description is an unsigned ULEB integer in DWARFv5 instead of
7156 unsigned integer.
7157
7158 2020-04-07 Nitika Achra <Nitika.Achra@amd.com>
7159
7160 * dwarf2/loc.c (enum debug_loc_kind): Add a new kind DEBUG_LOC_OFFSET_PAIR.
7161 (dwarf2_find_location_expression): Call the function decode_debug_loclists_
7162 addresses if DWARF version is 5 or more. DW_LLE_start* or DW_LLE_offset_pair
7163 with DW_LLE_base_addressx are being emitted in DWARFv5 instead of DW_LLE_GNU*.
7164 Add applicable base address if the entry is DW_LLE_offset_pair from DWO.
7165 (decode_debug_loclists_addresses): Return DEBUG_LOC_OFFSET_PAIR instead of
7166 DEBUG_LOC_START_END in case of DW_LLE_offset_pair.
7167
7168
7169 2020-04-07 Nitika Achra <Nitika.Achra@amd.com>
7170
7171 * dwarf2/read.c (cu_debug_loc_section): Added the declaration for the function.
7172 (read_loclist_index): New function definition.
7173 (lookup_loclist_base): New function definition.
7174 (read_loclist_header): New function definition.
7175 (dwarf2_cu): Add loclist_base and loclist_header field.
7176 (dwarf2_locate_dwo_sections): Handle .debug_loclists.dwo section.
7177 (read_full_die_1): Read the value of DW_AT_loclists_base.
7178 (read_attribute_reprocess): Handle DW_FORM_loclistx.
7179 (read_attribute_value): Handle DW_FORM_loclistx.
7180 (skip_one_die): Handle DW_FORM_loclistx.
7181 (loclist_header): New structure declaration.
7182 * dwarf2/attribute.c (form_is_section_offset): Handle DW_FORM_loclistx.
7183
7184 2020-04-07 Simon Marchi <simon.marchi@polymtl.ca>
7185
7186 * dwarf2/read.h (struct dwarf2_psymtab): Remove two-parameters
7187 constructor. Remove `addr` parameter from other constructor and
7188 add `per_cu` parameter.
7189 * dwarf2/read.c (create_partial_symtab): Update.
7190
7191 2020-04-07 Tom de Vries <tdevries@suse.de>
7192
7193 PR symtab/25796
7194 * dwarf2/read.c (can_have_DW_AT_const_value_p): New function.
7195 (partial_die_info::fixup): Inherit has_const_value.
7196
7197 2020-04-07 Tom de Vries <tdevries@suse.de>
7198
7199 * psymtab.c (maintenance_check_psymtabs): Skip static LOC_BLOCK
7200 symbols without address.
7201
7202 2020-04-06 Kamil Rytarowski <n54@gmx.com>
7203
7204 * nbsd-nat.h (struct thread_info): Add forward declaration.
7205 (nbsd_nat_target::thread_alive): Add.
7206 (nbsd_nat_target::thread_name): Likewise.
7207 (nbsd_nat_target::update_thread_list): Likewise.
7208 (update_thread_list::post_attach): Likewise.
7209 (post_attach::pid_to_str): Likewise.
7210 * nbsd-nat.c: Include "gdbthread.h" and "inferior.h".
7211 (nbsd_thread_lister): Add.
7212 (nbsd_nat_target::thread_alive): Likewise.
7213 (nbsd_nat_target::thread_name): Likewise.
7214 (nbsd_add_threads): Likewise.
7215 (update_thread_list::post_attach): Likewise.
7216 (nbsd_nat_target::update_thread_list): Likewise.
7217 (post_attach::pid_to_str): Likewise.
7218
7219 2020-04-06 Tom Tromey <tromey@adacore.com>
7220
7221 * ada-valprint.c (print_variant_part): Extract the variant field.
7222 (print_field_values): Use the field as the outer value when
7223 recursing.
7224
7225 2020-04-06 Tom Tromey <tromey@adacore.com>
7226
7227 * sh-nbsd-tdep.c: Include nbsd-tdep.h.
7228 * ppc-nbsd-tdep.c: Include nbsd-tdep.h.
7229 * mips-nbsd-tdep.c (mipsnbsd_init_abi): Add missing ";".
7230 * arm-nbsd-tdep.c: Include nbsd-tdep.h.
7231 * hppa-nbsd-tdep.c: Include nbsd-tdep.h.
7232
7233 2020-04-06 Tom Tromey <tromey@adacore.com>
7234
7235 * dwarf2/read.c (read_base_type) <DW_ATE_complex_float>: Handle
7236 TYPE_CODE_ERROR.
7237
7238 2020-04-06 Kamil Rytarowski <n54@gmx.com>
7239
7240 * nbsd-tdep.c: Include "gdbarch.h".
7241 Define enum with NetBSD signal numbers.
7242 (nbsd_gdb_signal_from_target, nbsd_gdb_signal_to_target): New.
7243 * alpha-nbsd-tdep.c (alphanbsd_init_abi): Call nbsd_init_abi().
7244 * amd64-nbsd-tdep.c (amd64nbsd_init_abi): Likewise.
7245 * arm-nbsd-tdep.c (arm_netbsd_elf_init_abi): Likewise.
7246 * hppa-nbsd-tdep.c (hppanbsd_init_abi): Likewise.
7247 * i386-nbsd-tdep.c (i386nbsd_init_abi): Likewise.
7248 * mips-nbsd-tdep.c (nbsd_init_abi): Likewise.
7249 * ppc-nbsd-tdep.c (ppcnbsd_init_abi): Likewise.
7250 * sh-nbsd-tdep.c (shnbsd_init_abi): Likewise.
7251 * sparc-nbsd-tdep.c (sparc32nbsd_init_abi): Likewise.
7252 * sparc64-nbsd-tdep.c (sparc64nbsd_init_abi): Likewise.
7253 * vax-nbsd-tdep.c (vaxnbsd_elf_init_abi): Likewise.
7254
7255 2020-04-03 Hannes Domani <ssbssa@yahoo.de>
7256
7257 PR gdb/25325
7258 * dwarf2/read.c (read_enumeration_type): Fix typed enum attributes.
7259
7260 2020-04-03 Tom Tromey <tromey@adacore.com>
7261
7262 * dwarf2/loc.c (disassemble_dwarf_expression) <DW_OP_const_type>:
7263 Read constant block.
7264
7265 2020-04-02 Simon Marchi <simon.marchi@polymtl.ca>
7266
7267 * gdb_bfd.h: Include gdbsupport/byte-vector.h.
7268 (gdb_bfd_get_full_section_contents): New declaration.
7269 * gdb_bfd.c (gdb_bfd_get_full_section_contents): New function.
7270 * windows-tdep.c (is_linked_with_cygwin_dll): Use
7271 gdb_bfd_get_full_section_contents.
7272
7273 2020-04-02 Simon Marchi <simon.marchi@polymtl.ca>
7274
7275 * exec.c (build_section_table): Replace internal_error with
7276 gdb_assert.
7277 (section_table_xfer_memory_partial): Likewise.
7278 * mdebugread.c (parse_partial_symbols): Likewise.
7279 * psymtab.c (lookup_partial_symbol): Likewise.
7280 * utils.c (wrap_here): Likewise.
7281
7282 2020-04-02 Tom Tromey <tromey@adacore.com>
7283
7284 * f-lang.c (build_fortran_types): Use arch_type to initialize
7285 builtin_complex_s32 in the TYPE_CODE_ERROR case.
7286
7287 2020-04-02 Tom Tromey <tromey@adacore.com>
7288
7289 * dwarf2/read.c (partial_die_info::read): Do not create a vector
7290 of attributes.
7291
7292 2020-04-02 Andrew Burgess <andrew.burgess@embecosm.com>
7293 Bernd Edlinger <bernd.edlinger@hotmail.de>
7294 Tom Tromey <tromey@adacore.com>
7295
7296 * buildsym.c (buildsym_compunit::record_line): Remove
7297 deduplication code.
7298
7299 2020-04-02 Tom de Vries <tdevries@suse.de>
7300
7301 PR ada/24671
7302 * dwarf2/read.c (dw2_map_matching_symbols): Handle -readnow.
7303
7304 2020-04-02 Tom de Vries <tdevries@suse.de>
7305
7306 * dwarf2/read.c (dwarf2_gdb_index_functions,
7307 dwarf2_debug_names_functions): Init lookup_global_symbol_language with
7308 NULL.
7309 * psymtab.c (psym_lookup_global_symbol_language): New function.
7310 (psym_functions): Init psym_lookup_global_symbol_language with
7311 psym_lookup_global_symbol_language.
7312 * symfile-debug.c (debug_sym_quick_functions): Init
7313 lookup_global_symbol_language with NULL.
7314 * symfile.c (set_initial_language): Remove fixme comment.
7315 * symfile.h (struct quick_symbol_functions): Add
7316 lookup_global_symbol_language.
7317 * symtab.c (find_quick_global_symbol_language): New function.
7318 (find_main_name): Use find_quick_global_symbol_language.
7319
7320 2020-04-01 Simon Marchi <simon.marchi@polymtl.ca>
7321
7322 * windows-tdep.c (is_linked_with_cygwin_dll): Fix style.
7323
7324 2020-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
7325
7326 * buildsym.c (record_line): Fix undefined behavior and preserve
7327 lines at eof.
7328
7329 2020-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
7330
7331 * buildsym.c (record_line): Fix the resizing condition.
7332
7333 2020-04-01 Tom Tromey <tom@tromey.com>
7334
7335 * value.h (value_literal_complex): Add comment.
7336 * valops.c (value_literal_complex): Refer to value.h.
7337
7338 2020-04-01 Tom Tromey <tom@tromey.com>
7339
7340 * c-exp.y (FLOAT_KEYWORD, COMPLEX): New tokens.
7341 (scalar_type): New rule, from typebase.
7342 (typebase): Use scalar_type. Recognize complex types.
7343 (field_name): Handle FLOAT_KEYWORD.
7344 (ident_tokens): Add _Complex and __complex__.
7345
7346 2020-04-01 Tom Tromey <tom@tromey.com>
7347
7348 PR exp/25299:
7349 * valarith.c (promotion_type, complex_binop): New functions.
7350 (scalar_binop): Handle complex numbers. Use promotion_type.
7351 (value_pos, value_neg, value_complement): Handle complex numbers.
7352
7353 2020-04-01 Tom Tromey <tom@tromey.com>
7354
7355 * c-exp.y (COMPLEX_INT, COMPLEX_FLOAT): New tokens.
7356 (exp) <COMPLEX_INT, COMPLEX_FLOAT>: New rules.
7357 (parse_number): Handle complex numbers.
7358
7359 2020-04-01 Tom Tromey <tom@tromey.com>
7360
7361 * c-valprint.c (c_decorations): Change complex suffix to "i".
7362
7363 2020-04-01 Tom Tromey <tom@tromey.com>
7364
7365 * valprint.c (generic_value_print_complex): Use accessors.
7366 * value.h (value_real_part, value_imaginary_part): Declare.
7367 * valops.c (value_real_part, value_imaginary_part): New
7368 functions.
7369 * value.c (creal_internal_fn, cimag_internal_fn): Use accessors.
7370
7371 2020-04-01 Tom Tromey <tom@tromey.com>
7372
7373 * stabsread.c (rs6000_builtin_type, read_sun_floating_type)
7374 (read_range_type): Update.
7375 * mdebugread.c (basic_type): Update.
7376 * go-lang.c (build_go_types): Use init_complex_type.
7377 * gdbtypes.h (struct main_type) <complex_type>: New member.
7378 (init_complex_type): Update.
7379 (arch_complex_type): Don't declare.
7380 * gdbtypes.c (init_complex_type): Remove "objfile" parameter.
7381 Make name if none given. Use alloc_type_copy. Look for cached
7382 complex type.
7383 (arch_complex_type): Remove.
7384 (gdbtypes_post_init): Use init_complex_type.
7385 * f-lang.c (build_fortran_types): Use init_complex_type.
7386 * dwarf2/read.c (read_base_type): Update.
7387 * d-lang.c (build_d_types): Use init_complex_type.
7388 * ctfread.c (read_base_type): Update.
7389
7390 2020-04-01 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
7391
7392 * infrun.c (stop_all_threads): Update assertion, plus when
7393 stopping threads, take into account that we might be trying
7394 to stop an all-stop target.
7395 (stop_waiting): Call 'stop_all_threads' if there exists a
7396 non-stop target.
7397
7398 2020-04-01 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
7399
7400 * target.h (exists_non_stop_target): New function declaration.
7401 * target.c (exists_non_stop_target): New function.
7402
7403 2020-04-01 Hannes Domani <ssbssa@yahoo.de>
7404
7405 PR gdb/24789
7406 * eval.c (is_integral_or_integral_reference): New function.
7407 (evaluate_subexp_standard): Allow integer references in
7408 pointer arithmetic.
7409
7410 2020-04-01 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
7411
7412 * remote.c (remote_target::remote_parse_stop_reply): Remove the
7413 check for no ptid in the stop reply when the target is non-stop.
7414
7415 2020-04-01 Tom Tromey <tromey@adacore.com>
7416
7417 * symtab.h (class lookup_name_info) <lookup_name_info>: Change
7418 "name" parameter to rvalue reference. Initialize m_name_holder.
7419 <lookup_name_info>: New overloads.
7420 <name>: Return gdb::string_view.
7421 <c_str>: New method.
7422 <make_ignore_params>: Update.
7423 <search_name_hash>: Update.
7424 <language_lookup_name>: Return const char *.
7425 <m_name>: Change type.
7426 * symtab.c (demangle_for_lookup_info::demangle_for_lookup_info)
7427 (demangle_for_lookup_info::demangle_for_lookup_info): Update.
7428 (lookup_name_info::match_any): Update.
7429 * psymtab.c (match_partial_symbol, lookup_partial_symbol):
7430 Update.
7431 * minsyms.c (linkage_name_str): Update.
7432 * language.c (default_symbol_name_matcher): Update.
7433 * dwarf2/read.c (mapped_index_base::find_name_components_bounds):
7434 Update.
7435 * ada-lang.c (ada_fold_name): Change parameter to string_view.
7436 (ada_lookup_name_info::ada_lookup_name_info): Update.
7437 (literal_symbol_name_matcher): Update.
7438
7439 2020-04-01 Tom Tromey <tromey@adacore.com>
7440
7441 * psymtab.c (psymtab_search_name): Remove function.
7442 (psym_lookup_symbol): Create search name and lookup name here.
7443 (lookup_partial_symbol): Remove "name" parameter; add
7444 lookup_name.
7445 (psym_expand_symtabs_for_function): Update.
7446
7447 2020-03-31 Joel Jones <joelkevinjones@gmail.com>
7448
7449 PR tui/25597:
7450 * python/py-tui.c: Include gdb_curses.h inside of #ifdef TUI.
7451
7452 2020-03-31 Tom Tromey <tromey@adacore.com>
7453
7454 * dwarf2/abbrev.c (abbrev_table::read): Conditionally call
7455 memcpy.
7456
7457 2020-03-30 Nelson Chu <nelson.chu@sifive.com>
7458
7459 * features/riscv/32bit-csr.xml: Regenerated.
7460 * features/riscv/64bit-csr.xml: Regenerated.
7461
7462 2020-03-30 Tom Tromey <tromey@adacore.com>
7463
7464 * ada-valprint.c (print_variant_part): Update.
7465 * ada-lang.h (ada_which_variant_applies): Update.
7466 * ada-lang.c (ada_which_variant_applies): Remove outer_type and
7467 outer_valaddr parameters; replace with "outer" value parameter.
7468 (to_fixed_variant_branch_type): Update.
7469
7470 2020-03-30 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
7471
7472 * ppc-linux-nat.c: Include <algorithm>, <unordered_map>, and
7473 <list>. Remove inclusion of observable.h.
7474 (PPC_DEBUG_CURRENT_VERSION): Move up define.
7475 (struct arch_lwp_info): New struct.
7476 (class ppc_linux_dreg_interface): New class.
7477 (struct ppc_linux_process_info): New struct.
7478 (struct ppc_linux_nat_target) <low_delete_thread, low_new_fork>
7479 <low_new_clone, low_forget_process, low_prepare_to_resume>
7480 <copy_thread_dreg_state, mark_thread_stale>
7481 <mark_debug_registers_changed, register_hw_breakpoint>
7482 <clear_hw_breakpoint, register_wp, clear_wp>
7483 <can_use_watchpoint_cond_accel, calculate_dvc, check_condition>
7484 <num_memory_accesses, get_trigger_type>
7485 <create_watchpoint_request, hwdebug_point_cmp>
7486 <init_arch_lwp_info, get_arch_lwp_info>
7487 <low_stopped_by_watchpoint, low_stopped_data_address>: Declare as
7488 methods.
7489 <struct ptid_hash>: New inner struct.
7490 <m_dreg_interface, m_process_info, m_installed_hw_bps>: Declare
7491 members.
7492 (saved_dabr_value, hwdebug_info, max_slots_number)
7493 (struct hw_break_tuple, struct thread_points, ppc_threads)
7494 (have_ptrace_hwdebug_interface)
7495 (hwdebug_find_thread_points_by_tid)
7496 (hwdebug_insert_point, hwdebug_remove_point): Remove.
7497 (ppc_linux_nat_target::can_use_hw_breakpoint): Use
7498 m_dreg_interface, remove call to PTRACE_SET_DEBUGREG.
7499 (ppc_linux_nat_target::region_ok_for_hw_watchpoint): Add comment,
7500 use m_dreg_interface.
7501 (hwdebug_point_cmp): Change to...
7502 (ppc_linux_nat_target::hwdebug_point_cmp): ...this method. Use
7503 reference arguments instead of pointers.
7504 (ppc_linux_nat_target::ranged_break_num_registers): Use
7505 m_dreg_interface.
7506 (ppc_linux_nat_target::insert_hw_breakpoint): Add comment, use
7507 m_dreg_interface. Call register_hw_breakpoint.
7508 (ppc_linux_nat_target::remove_hw_breakpoint): Add comment, use
7509 m_dreg_interface. Call clear_hw_breakpoint.
7510 (get_trigger_type): Change to...
7511 (ppc_linux_nat_target::get_trigger_type): ...this method. Add
7512 comment.
7513 (ppc_linux_nat_target::insert_mask_watchpoint): Update comment,
7514 use m_dreg_interface. Call register_hw_breakpoint.
7515 (ppc_linux_nat_target::remove_mask_watchpoint): Update comment,
7516 use m_dreg_interface. Call clear_hw_breakpoint.
7517 (can_use_watchpoint_cond_accel): Change to...
7518 (ppc_linux_nat_target::can_use_watchpoint_cond_accel): ...this
7519 method. Update comment, use m_dreg_interface and
7520 m_process_info.
7521 (calculate_dvc): Change to...
7522 (ppc_linux_nat_target::calculate_dvc): ...this method. Use
7523 m_dreg_interface.
7524 (num_memory_accesses): Change to...
7525 (ppc_linux_nat_target::num_memory_accesses): ...this method.
7526 (check_condition): Change to...
7527 (ppc_linux_nat_target::check_condition): ...this method.
7528 (ppc_linux_nat_target::can_accel_watchpoint_condition): Update
7529 comment, use m_dreg_interface.
7530 (create_watchpoint_request): Change to...
7531 (ppc_linux_nat_target::create_watchpoint_request): ...this
7532 method. Use m_dreg_interface.
7533 (ppc_linux_nat_target::insert_watchpoint): Add comment, use
7534 m_dreg_interface. Call register_hw_breakpoint or register_wp.
7535 (ppc_linux_nat_target::remove_watchpoint): Add comment, use
7536 m_dreg_interface. Call clear_hw_breakpoint or clear_wp.
7537 (ppc_linux_nat_target::low_forget_process)
7538 (ppc_linux_nat_target::low_new_fork)
7539 (ppc_linux_nat_target::low_new_clone)
7540 (ppc_linux_nat_target::low_delete_thread)
7541 (ppc_linux_nat_target::low_prepare_to_resume): New methods.
7542 (ppc_linux_nat_target::low_new_thread): Remove previous logic,
7543 only call mark_thread_stale.
7544 (ppc_linux_thread_exit): Remove.
7545 (ppc_linux_nat_target::stopped_data_address): Change to...
7546 (ppc_linux_nat_target::low_stopped_data_address): This. Add
7547 comment, use m_dreg_interface and m_thread_hw_breakpoints.
7548 (ppc_linux_nat_target::stopped_by_watchpoint): Change to...
7549 (ppc_linux_nat_target::stopped_by_watchpoint): This. Add
7550 comment. Call low_stopped_data_address.
7551 (ppc_linux_nat_target::watchpoint_addr_within_range): Use
7552 m_dreg_interface.
7553 (ppc_linux_nat_target::masked_watch_num_registers): Use
7554 m_dreg_interface.
7555 (ppc_linux_nat_target::copy_thread_dreg_state)
7556 (ppc_linux_nat_target::mark_thread_stale)
7557 (ppc_linux_nat_target::mark_debug_registers_changed)
7558 (ppc_linux_nat_target::register_hw_breakpoint)
7559 (ppc_linux_nat_target::clear_hw_breakpoint)
7560 (ppc_linux_nat_target::register_wp)
7561 (ppc_linux_nat_target::clear_wp)
7562 (ppc_linux_nat_target::init_arch_lwp_info)
7563 (ppc_linux_nat_target::get_arch_lwp_info): New methods.
7564 (_initialize_ppc_linux_nat): Remove observer callback.
7565
7566 2020-03-30 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
7567
7568 * ppc-linux-nat.c (ppc_linux_nat_target::store_registers)
7569 (ppc_linux_nat_target::auxv_parse)
7570 (ppc_linux_nat_target::read_description)
7571 (supply_gregset, fill_gregset, supply_fpregset, fill_fpregset):
7572 Move up.
7573
7574 2020-03-30 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
7575
7576 * linux-nat.h (low_new_clone): New method.
7577 * linux-nat.c (linux_handle_extended_wait): Call low_new_clone.
7578
7579 2020-03-29 Simon Marchi <simon.marchi@polymtl.ca>
7580
7581 * dbxread.c (dbx_psymtab_to_symtab_1): Rename to...
7582 (dbx_expand_psymtab): ... this.
7583 (start_psymtab): Update.
7584 * mdebugread.c (psymtab_to_symtab_1): Rename to...
7585 (mdebug_expand_psymtab): ... this.
7586 (parse_partial_symbols): Update.
7587 (new_psymtab): Update.
7588 * xcoffread.c (xcoff_psymtab_to_symtab_1): Rename to...
7589 (xcoff_expand_psymtab): ... this.
7590 (xcoff_start_psymtab): Update.
7591
7592 2020-03-29 Simon Marchi <simon.marchi@polymtl.ca>
7593
7594 * psympriv.h (partial_symtab) <read_dependencies>: Rename to...
7595 <expand_dependencies>: ... this.
7596 * psymtab.c (partial_symtab::read_dependencies): Rename to...
7597 (partial_symtab::expand_dependencies): ... this.
7598 * dwarf2/read.c (dwarf2_include_psymtab) <expand_psymtab>:
7599 Update.
7600 (dwarf2_psymtab::expand_psymtab): Update.
7601 * dbxread.c (dbx_psymtab_to_symtab_1): Update.
7602 * mdebugread.c (psymtab_to_symtab_1): Update.
7603 * xcoffread.c (xcoff_psymtab_to_symtab_1): Update.
7604
7605 2020-03-29 Simon Marchi <simon.marchi@polymtl.ca>
7606
7607 * psympriv.h (discard_psymtab): Remove.
7608 * dbxread.c (dbx_end_psymtab): Update.
7609 * xcoffread.c (xcoff_end_psymtab): Update.
7610
7611 2020-03-28 Tom Tromey <tom@tromey.com>
7612
7613 * dwarf2/attribute.h (struct attribute) <form_is_constant>: Update
7614 comment.
7615
7616 2020-03-28 Tom Tromey <tom@tromey.com>
7617
7618 * dwarf2/read.c (read_attribute_reprocess): Fix formatting.
7619
7620 2020-03-27 Hannes Domani <ssbssa@yahoo.de>
7621
7622 * windows-nat.c (windows_add_all_dlls): Fix system dll paths.
7623
7624 2020-03-26 John Baldwin <jhb@FreeBSD.org>
7625
7626 * fbsd-tdep.c (fbsd_print_auxv_entry): Handle AT_FREEBSD_BSDFLAGS.
7627
7628 2020-03-26 Tom Tromey <tom@tromey.com>
7629
7630 * dwarf2/read.c (handle_data_member_location, dwarf2_add_field)
7631 (mark_common_block_symbol_computed, read_tag_string_type)
7632 (attr_to_dynamic_prop, read_subrange_type): Update.
7633 (dwarf2_get_ref_die_offset, dwarf2_get_attr_constant_value): Move
7634 to be methods on struct attribute.
7635 (skip_one_die, process_imported_unit_die, read_namespace_alias)
7636 (read_call_site_scope, partial_die_info::read)
7637 (partial_die_info::read, lookup_die_type, follow_die_ref):
7638 Update.
7639 * dwarf2/attribute.c (attribute::get_ref_die_offset): New method,
7640 from dwarf2_get_ref_die_offset.
7641 (attribute::constant_value): New method, from
7642 dwarf2_get_attr_constant_value.
7643 * dwarf2/attribute.h (struct attribute) <get_ref_die_offset>:
7644 Declare method.
7645 <constant_value>: New method.
7646
7647 2020-03-26 Tom Tromey <tom@tromey.com>
7648
7649 * dwarf2/read.c (dwarf_unit_type_name, dwarf_tag_name)
7650 (dwarf_attr_name, dwarf_form_name, dwarf_bool_name)
7651 (dwarf_type_encoding_name): Move to stringify.c.
7652 * Makefile.in (COMMON_SFILES): Add dwarf2/stringify.c.
7653 * dwarf2/stringify.c: New file.
7654 * dwarf2/stringify.h: New file.
7655
7656 2020-03-26 Tom Tromey <tom@tromey.com>
7657
7658 * dwarf2/die.h (struct die_info) <addr_base, ranges_base>:
7659 Rewrite.
7660
7661 2020-03-26 Tom Tromey <tom@tromey.com>
7662
7663 * dwarf2/die.h (struct die_info) <addr_base, ranges_base>: New
7664 methods.
7665 * dwarf2/read.c (lookup_addr_base): Move to die.h.
7666 (lookup_ranges_base): Likewise.
7667 (read_cutu_die_from_dwo, read_full_die_1): Update.
7668
7669 2020-03-26 Tom Tromey <tom@tromey.com>
7670
7671 * dwarf2/read.c (read_import_statement, read_file_scope)
7672 (read_type_unit_scope, inherit_abstract_dies, read_func_scope)
7673 (read_lexical_block_scope, read_call_site_scope)
7674 (dwarf2_get_subprogram_pc_bounds, get_scope_pc_bounds)
7675 (handle_struct_member_die, process_structure_scope)
7676 (update_enumeration_type_from_children)
7677 (process_enumeration_scope, read_array_type, read_common_block)
7678 (read_namespace, read_module, read_subroutine_type): Update.
7679 (sibling_die): Remove.
7680
7681 2020-03-26 Tom Tromey <tom@tromey.com>
7682
7683 * dwarf2/read.c (lookup_addr_base, lookup_ranges_base)
7684 (build_type_psymtabs_reader, read_structure_type)
7685 (read_enumeration_type, read_full_die_1): Update.
7686 (dwarf2_attr_no_follow): Move to die.h.
7687 * dwarf2/die.h (struct die_info) <attr>: New method.
7688
7689 2020-03-26 Tom Tromey <tom@tromey.com>
7690
7691 * dwarf2/read.c (struct dwarf2_cu) <base_known>: Remove.
7692 <base_address>: Now an optional.
7693 (dwarf2_find_base_address, dwarf2_rnglists_process)
7694 (dwarf2_ranges_process, fill_in_loclist_baton)
7695 (dwarf2_symbol_mark_computed): Update.
7696
7697 2020-03-26 Tom Tromey <tom@tromey.com>
7698
7699 * dwarf2/read.c (struct die_info): Move to die.h.
7700 * dwarf2/die.h: New file.
7701
7702 2020-03-26 Tom Tromey <tom@tromey.com>
7703
7704 * dwarf2/line-header.h (dwarf_decode_line_header): Declare.
7705 * dwarf2/read.c
7706 (dwarf2_statement_list_fits_in_line_number_section_complaint):
7707 Move to line-header.c.
7708 (read_checked_initial_length_and_offset, read_formatted_entries):
7709 Likewise.
7710 (dwarf_decode_line_header): Split into two.
7711 * dwarf2/line-header.c
7712 (dwarf2_statement_list_fits_in_line_number_section_complaint):
7713 Move from read.c.
7714 (read_checked_initial_length_and_offset, read_formatted_entries):
7715 Likewise.
7716 (dwarf_decode_line_header): New function, split from read.c.
7717
7718 2020-03-26 Tom Tromey <tom@tromey.com>
7719
7720 * dwarf2/read.h (struct dwarf2_per_objfile) <read_line_string>:
7721 Declare method.
7722 * dwarf2/read.c (read_attribute_value): Update.
7723 (dwarf2_per_objfile::read_line_string): Rename from
7724 read_indirect_line_string.
7725 (read_formatted_entries): Update.
7726
7727 2020-03-26 Tom Tromey <tom@tromey.com>
7728
7729 * dwarf2/macro.c (dwarf_decode_macro_bytes): Use objfile local
7730 variable.
7731
7732 2020-03-26 Tom Tromey <tom@tromey.com>
7733
7734 * dwarf2/macro.h (dwarf_decode_macros): Make section parameter
7735 const.
7736 * dwarf2/macro.c (skip_form_bytes, skip_unknown_opcode)
7737 (dwarf_decode_macro_bytes, dwarf_decode_macros): Make section
7738 parameter const.
7739
7740 2020-03-26 Tom Tromey <tom@tromey.com>
7741
7742 * dwarf2/read.c (dwarf_decode_macros): Make "lh" const.
7743 * dwarf2/macro.h (dwarf_decode_macros): Constify "lh" parameter.
7744 * dwarf2/macro.c (macro_start_file): Constify "lh" parameter.
7745 (dwarf_decode_macro_bytes, dwarf_decode_macros): Likewise.
7746
7747 2020-03-26 Tom Tromey <tom@tromey.com>
7748
7749 * dwarf2/line-header.h (struct line_header) <is_valid_file_index,
7750 file_names_size, file_full_name, file_file_name>: Use const.
7751 <file_name_at, file_names>: Add const overload.
7752 * dwarf2/line-header.c (line_header::file_file_name)
7753 (line_header::file_full_name): Update.
7754
7755 2020-03-26 Tom Tromey <tom@tromey.com>
7756
7757 * dwarf2/read.c (dwarf2_macro_malformed_definition_complaint)
7758 (macro_start_file, consume_improper_spaces)
7759 (parse_macro_definition, skip_form_bytes, skip_unknown_opcode)
7760 (dwarf_parse_macro_header, dwarf_decode_macro_bytes)
7761 (dwarf_decode_macros): Move to macro.c.
7762 * dwarf2/macro.c: New file.
7763 * dwarf2/macro.h: New file.
7764 * Makefile.in (COMMON_SFILES): Add dwarf2/macro.c.
7765
7766 2020-03-26 Tom Tromey <tom@tromey.com>
7767
7768 * dwarf2/section.h (struct dwarf2_section_info) <read_string>: New
7769 method.
7770 * dwarf2/section.c: New method. From
7771 read_indirect_string_at_offset_from.
7772 * dwarf2/read.c (mapped_debug_names::namei_to_name): Update.
7773 (read_indirect_string_at_offset_from): Move to section.c.
7774 (read_indirect_string_at_offset): Rewrite.
7775 (read_indirect_line_string_at_offset): Remove.
7776 (read_indirect_string, read_indirect_line_string)
7777 (dwarf_decode_macro_bytes): Update.
7778
7779 2020-03-26 Tom Tromey <tom@tromey.com>
7780
7781 * dwarf2/section.h (struct dwarf2_section_info)
7782 <overload_complaint>: Declare.
7783 (dwarf2_section_buffer_overflow_complaint): Don't declare.
7784 * dwarf2/section.c (dwarf2_section_info::overflow_complaint):
7785 Rename from dwarf2_section_buffer_overflow_complaint.
7786 * dwarf2/read.c (skip_one_die, partial_die_info::read)
7787 (skip_form_bytes, dwarf_decode_macro_bytes): Update.
7788
7789 2020-03-26 Tom Tromey <tom@tromey.com>
7790
7791 * dwarf2/section.h (dwarf2_section_buffer_overflow_complaint):
7792 Declare.
7793 * dwarf2/section.c (dwarf2_section_buffer_overflow_complaint):
7794 Move from read.c.
7795 * dwarf2/read.c (dwarf2_section_buffer_overflow_complaint): Move
7796 to section.c.
7797
7798 2020-03-26 Tom Tromey <tom@tromey.com>
7799
7800 * dwarf2/read.c (dwarf_decode_macros): Split into two overloads.
7801
7802 2020-03-26 Tom Tromey <tom@tromey.com>
7803
7804 * dwarf2/read.c (macro_start_file): Change "cu" parameter to
7805 "builder".
7806 (dwarf_decode_macro_bytes): Likewise. Add dwarf2_per_objfile
7807 parameter.
7808 (dwarf_decode_macros): Update.
7809
7810 2020-03-26 Tom Tromey <tom@tromey.com>
7811
7812 * dwarf2/read.c (read_attribute_value): Update.
7813 (read_indirect_string_from_dwz): Move to dwz.c; change into
7814 method.
7815 (dwarf_decode_macro_bytes): Update.
7816 * dwarf2/dwz.h (struct dwz_file) <read_string>: Declare method.
7817 * dwarf2/dwz.c: New file.
7818 * Makefile.in (COMMON_SFILES): Add dwz.c.
7819
7820 2020-03-26 Tom Tromey <tom@tromey.com>
7821
7822 * dwarf2/read.h (struct dwz_file): Move to dwz.h.
7823 * dwarf2/read.c: Add include.
7824 * dwarf2/index-write.c: Add include.
7825 * dwarf2/index-cache.c: Add include.
7826 * dwarf2/dwz.h: New file.
7827
7828 2020-03-25 Tom Tromey <tom@tromey.com>
7829
7830 * compile/compile-object-load.c (get_out_value_type): Mention
7831 correct symbol name in error message.
7832
7833 2020-03-25 Hannes Domani <ssbssa@yahoo.de>
7834
7835 * windows-nat.c (windows_add_all_dlls): Fix system dll paths.
7836
7837 2020-03-25 Tom de Vries <tdevries@suse.de>
7838
7839 * symtab.h (is_main_symtab_of_compunit_symtab): New function.
7840 * symmisc.c (dump_symtab_1): Print user and includes fields.
7841 (maintenance_info_symtabs): Same.
7842
7843 2020-03-25 Andrew Burgess <andrew.burgess@embecosm.com>
7844
7845 PR gdb/25534
7846 * riscv-tdep.c (riscv_arg_info::c_offset): Update comment.
7847 (riscv_regcache_cooked_write): New function.
7848 (riscv_push_dummy_call): Use new function.
7849 (riscv_return_value): Likewise.
7850
7851 2020-03-24 Simon Marchi <simon.marchi@polymtl.ca>
7852
7853 * fbsd-nat.c (fbsd_nat_target::follow_fork): Change bool to int.
7854 * fbsd-nat.h (class fbsd_nat_target) <follow_fork>: Likewise.
7855 * inf-ptrace.c (inf_ptrace_target::follow_fork): Likewise.
7856 * inf-ptrace.h (struct inf_ptrace_target) <follow_fork>: Likewise.
7857 * infrun.c (follow_fork): Likewise.
7858 (follow_fork_inferior): Likewise.
7859 * linux-nat.c (linux_nat_target::follow_fork): Likewise.
7860 * linux-nat.h (class linux_nat_target): Likewise.
7861 * remote.c (class remote_target) <follow_fork>: Likewise.
7862 (remote_target::follow_fork): Likewise.
7863 * target-delegates.c: Re-generate.
7864 * target.c (default_follow_fork): Likewise.
7865 (target_follow_fork): Likewise.
7866 * target.h (struct target_ops) <follow_fork>: Likewise.
7867 (target_follow_fork): Likewise.
7868
7869 2020-03-24 Tom de Vries <tdevries@suse.de>
7870
7871 * psymtab.c (maintenance_info_psymtabs): Print user field.
7872
7873 2020-03-20 Tom Tromey <tromey@adacore.com>
7874
7875 * dwarf2/loc.h (dwarf2_evaluate_property): Make "addr_stack"
7876 const.
7877 * dwarf2/loc.c (dwarf2_evaluate_property): Make "addr_stack"
7878 const.
7879
7880 2020-03-20 Simon Marchi <simon.marchi@efficios.com>
7881
7882 * ptrace.m4: Don't check for ptrace declaration.
7883 * config.in: Re-generate.
7884 * configure: Re-generate.
7885 * nat/gdb_ptrace.h: Don't declare ptrace if HAVE_DECL_PTRACE is
7886 not defined.
7887
7888 2020-03-20 Kamil Rytarowski <n54@gmx.com>
7889
7890 * amd64-bsd-nat.c (gdb_ptrace): Change return type from `int' to
7891 `PTRACE_TYPE_RET'.
7892 * i386-bsd-nat.c (gdb_ptrace): Likewise.
7893 * sparc-nat.c (gdb_ptrace): Likewise.
7894 * x86-bsd-nat.c (gdb_ptrace): Likewise.
7895
7896 2020-03-20 Tom Tromey <tromey@adacore.com>
7897
7898 * c-exp.y (lex_one_token): Fix assert.
7899
7900 2020-03-20 Tom Tromey <tromey@adacore.com>
7901
7902 * ada-tasks.c (read_atcb): Use smaller length in strncpy call.
7903 * linux-tdep.c (linux_fill_prpsinfo): Use smaller length in
7904 strncpy call.
7905
7906 2020-03-20 Tom Tromey <tromey@adacore.com>
7907
7908 * symmisc.c (maintenance_print_one_line_table): Use ui_out.
7909
7910 2020-03-20 Tom Tromey <tromey@adacore.com>
7911
7912 * ada-valprint.c (print_variant_part): Remove parameters; switch
7913 to value-based API.
7914 (print_field_values): Likewise.
7915 (ada_val_print_struct_union): Likewise.
7916 (ada_value_print_1): Update.
7917
7918 2020-03-20 Kamil Rytarowski <n54@gmx.com>
7919
7920 * ppc-nbsd-nat.c (ppc_nbsd_nat_target): Inherit from
7921 nbsd_nat_target instead of inf_ptrace_target.
7922 * ppc-nbsd-nat.c: Include "nbsd-nat.h", as we are now using
7923 nbsd_nat_target.
7924
7925 2020-03-20 Kamil Rytarowski <n54@gmx.com>
7926
7927 * hppa-nbsd-nat.c (fetch_registers): New variable lwp and pass
7928 it to the ptrace call.
7929 * (store_registers): Likewise.
7930
7931 2020-03-20 Kamil Rytarowski <n54@gmx.com>
7932
7933 * ppc-nbsd-nat.c (fetch_registers): New variable lwp and pass
7934 it to the ptrace call.
7935 * (store_registers): Likewise.
7936
7937 2020-03-19 Luis Machado <luis.machado@linaro.org>
7938
7939 * nat/aarch64-sve-linux-ptrace.c (aarch64_sve_set_vq): If vg is not
7940 valid, fetch vg value from ptrace.
7941
7942 2020-03-19 Kamil Rytarowski <n54@gmx.com>
7943 * inf-ptrace.h: Disable get_ptrace_pid on NetBSD.
7944 * inf-ptrace.c: Likewise.
7945 * (gdb_ptrace): Add.
7946 * (inf_ptrace_target::resume): Update.
7947 * (inf_ptrace_target::xfer_partial): Likewise.
7948 * (inf_ptrace_peek_poke): Change argument `pid' to `ptid'.
7949 * (inf_ptrace_peek_poke): Update.
7950
7951 2020-03-19 Kamil Rytarowski <n54@gmx.com>
7952
7953 * x86-bsd-nat.c (gdb_ptrace): New.
7954 * (x86bsd_dr_set): Add new argument `ptid'.
7955 * (x86bsd_dr_get, x86bsd_dr_set, x86bsd_dr_set_control,
7956 x86bsd_dr_set_addr): Update.
7957
7958 2020-03-19 Andrew Burgess <andrew.burgess@embecosm.com>
7959
7960 * remote.c (remote_target::process_stop_reply): Handle events for
7961 all threads differently.
7962
7963 2020-03-19 Andrew Burgess <andrew.burgess@embecosm.com>
7964
7965 * completer.c (completion_tracker::remove_completion): Define new
7966 function.
7967 * completer.h (completion_tracker::remove_completion): Declare new
7968 function.
7969 * symtab.c (completion_list_add_symbol): Remove aliasing msymbols
7970 when adding a C++ function symbol.
7971
7972 2020-03-19 Andrew Burgess <andrew.burgess@embecosm.com>
7973
7974 * completer.c (completion_tracker::completion_hash_entry): Define
7975 new class.
7976 (advance_to_filename_complete_word_point): Call
7977 recompute_lowest_common_denominator.
7978 (completion_tracker::completion_tracker): Call discard_completions
7979 to setup the hash table.
7980 (completion_tracker::discard_completions): Allow for being called
7981 from the constructor, pass new equal function, and element deleter
7982 when constructing the hash table. Initialise new class member
7983 variables.
7984 (completion_tracker::maybe_add_completion): Remove use of
7985 m_entries_vec, and store more information into m_entries_hash.
7986 (completion_tracker::recompute_lcd_visitor): New function, most
7987 content taken from...
7988 (completion_tracker::recompute_lowest_common_denominator):
7989 ...here, this now just visits each item in the hash calling the
7990 above visitor.
7991 (completion_tracker::build_completion_result): Remove use of
7992 m_entries_vec, call recompute_lowest_common_denominator.
7993 * completer.h (completion_tracker::have_completions): Remove use
7994 of m_entries_vec.
7995 (completion_tracker::completion_hash_entry): Declare new class.
7996 (completion_tracker::recompute_lowest_common_denominator): Change
7997 function signature.
7998 (completion_tracker::recompute_lcd_visitor): Declare new function.
7999 (completion_tracker::m_entries_vec): Delete.
8000 (completion_tracker::m_entries_hash): Initialize to NULL.
8001 (completion_tracker::m_lowest_common_denominator_valid): New
8002 member variable.
8003 (completion_tracker::m_lowest_common_denominator_max_length): New
8004 member variable.
8005
8006 2020-03-17 Kamil Rytarowski <n54@gmx.com>
8007
8008 * regformats/regdef.h: Put reg in gdb namespace.
8009
8010 2020-03-17 Kamil Rytarowski <n54@gmx.com>
8011
8012 * i386-bsd-nat.c (gdb_ptrace): New.
8013 * (i386bsd_fetch_inferior_registers,
8014 i386bsd_store_inferior_registers) Switch from pid_t to ptid_t.
8015 * (i386bsd_fetch_inferior_registers,
8016 i386bsd_store_inferior_registers) Use gdb_ptrace.
8017
8018 2020-03-17 Kamil Rytarowski <n54@gmx.com>
8019
8020 * amd64-bsd-nat.c (gdb_ptrace): New.
8021 * (amd64bsd_fetch_inferior_registers,
8022 amd64bsd_store_inferior_registers) Switch from pid_t to ptid_t.
8023 * (amd64bsd_fetch_inferior_registers,
8024 amd64bsd_store_inferior_registers) Use gdb_ptrace.
8025
8026 2020-03-17 Kamil Rytarowski <n54@gmx.com>
8027
8028 * user-regs.c (user_reg::read): Rename to...
8029 (user_reg::xread): ...this.
8030 * (append_user_reg): Rename argument `read' to `xread'.
8031 * (user_reg_add_builtin): Likewise.
8032 * (user_reg_add): Likewise.
8033 * (value_of_user_reg): Likewise.
8034
8035 2020-03-17 Kamil Rytarowski <n54@gmx.com>
8036
8037 * sparc-nat.c (gdb_ptrace): New.
8038 * sparc-nat.c (sparc_fetch_inferior_registers)
8039 (sparc_store_inferior_registers) Remove obsolete comment.
8040 * sparc-nat.c (sparc_fetch_inferior_registers)
8041 (sparc_store_inferior_registers) Switch from pid_t to ptid_t.
8042 * sparc-nat.c (sparc_fetch_inferior_registers)
8043 (sparc_store_inferior_registers) Use gdb_ptrace.
8044
8045 2020-03-17 Kamil Rytarowski <n54@gmx.com>
8046
8047 * sh-nbsd-nat.c (fetch_registers): New variable lwp and pass
8048 it to the ptrace call.
8049 * sh-nbsd-nat.c (store_registers): Likewise.
8050
8051 2020-03-17 Kamil Rytarowski <n54@gmx.com>
8052
8053 * sh-nbsd-nat.c (sh_nbsd_nat_target): Inherit from
8054 nbsd_nat_target instead of inf_ptrace_target.
8055 * sh-nbsd-nat.c: Include "nbsd-nat.h", as we are now using
8056 nbsd_nat_target.
8057
8058 2020-03-17 Kamil Rytarowski <n54@gmx.com>
8059
8060 * amd64-bsd-nat.c: Include amd64-bsd-nat.h".
8061
8062 2020-03-17 Kamil Rytarowski <n54@gmx.com>
8063
8064 * nbsd-nat.c: Include <sys/types.h>, <sys/ptrace.h> and
8065 <sys/sysctl.h>.
8066 * nbsd-nat.c (nbsd_nat_target::pid_to_exec_file): Rewrite.
8067
8068 2020-03-17 Tom de Vries <tdevries@suse.de>
8069
8070 PR gdb/23710
8071 * dwarf2/read.h (struct dwarf2_per_cu_data): Add unit_type and lang
8072 fields.
8073 * dwarf2/read.c (process_psymtab_comp_unit): Initialize unit_type and lang
8074 fields.
8075 (process_imported_unit_die): Skip import of c++ CUs.
8076
8077 2020-03-16 Tom Tromey <tom@tromey.com>
8078
8079 * p-valprint.c (pascal_object_print_value): Initialize
8080 base_value.
8081
8082 2020-03-16 Anton Kolesov <anton.kolesov@synopsys.com>
8083 Shahab Vahedi <shahab@synopsys.com>
8084
8085 * Makefile.in: Add arch/arc.o
8086 * configure.tgt: Likewise.
8087 * arc-tdep.c (arc_tdesc_init): Use arc_read_description.
8088 (_initialize_arc_tdep): Don't initialize old target descriptions.
8089 (arc_read_description): New function to cache target descriptions.
8090 * arc-tdep.h (arc_read_description): Add proto type.
8091 * arch/arc.c: New file.
8092 * arch/arc.h: Likewise.
8093 * features/Makefile: Replace old target descriptions with new.
8094 * features/arc-arcompact.c: Remove.
8095 * features/arc-arcompact.xml: Likewise.
8096 * features/arc-v2.c: Likewise
8097 * features/arc-v2.xml: Likewise
8098 * features/arc/aux-arcompact.xml: New file.
8099 * features/arc/aux-v2.xml: Likewise.
8100 * features/arc/core-arcompact.xml: Likewise.
8101 * features/arc/core-v2.xml: Likewise.
8102 * features/arc/aux-arcompact.c: Generate.
8103 * features/arc/aux-v2.c: Likewise.
8104 * features/arc/core-arcompact.c: Likewise.
8105 * features/arc/core-v2.c: Likewise.
8106 * target-descriptions (maint_print_c_tdesc_cmd): Support ARC features.
8107
8108 2020-03-16 Tom Tromey <tromey@adacore.com>
8109
8110 PR gdb/25663:
8111 * dwarf2/read.c (dwarf2_name): Strip leading namespaces after
8112 putting value into bcache.
8113
8114 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
8115
8116 PR gdb/21500
8117 * amd64-windows-tdep.c (amd64_windows_init_abi): Rename
8118 to...
8119 (amd64_windows_init_abi_common): ... this. Don't set size of
8120 long type.
8121 (amd64_windows_init_abi): New function.
8122 (amd64_cygwin_init_abi): New function.
8123 (_initialize_amd64_windows_tdep): Use amd64_cygwin_init_abi for
8124 the Cygwin OS ABI.
8125 * i386-windows-tdep.c (_initialize_i386_windows_tdep): Clarify
8126 comment.
8127
8128 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
8129
8130 * windows-tdep.h (is_linked_with_cygwin_dll): New declaration.
8131 * windows-tdep.c (CYGWIN_DLL_NAME): New.
8132 (pe_import_directory_entry): New struct type.
8133 (is_linked_with_cygwin_dll): New function.
8134 * amd64-windows-tdep.c (amd64_windows_osabi_sniffer): Select
8135 GDB_OSABI_CYGWIN if the BFD is linked with the Cygwin DLL.
8136 * i386-windows-tdep.c (i386_windows_osabi_sniffer): Likewise.
8137
8138 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
8139
8140 * i386-windows-tdep.c: Mass-rename "cygwin" to "windows", except
8141 i386_cygwin_core_osabi_sniffer.
8142
8143 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
8144
8145 * i386-cygwin-tdep.c: Rename to...
8146 * i386-windows-tdep.c: ... this.
8147 * Makefile.in (ALL_TARGET_OBS): Rename i386-cygwin-tdep.c to
8148 i386-windows-tdep.c.
8149 * configure.tgt: Likewise.
8150
8151 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
8152
8153 * osabi.h (enum gdb_osabi): Add GDB_OSABI_WINDOWS.
8154 * osabi.c (gdb_osabi_names): Add "Windows".
8155 * i386-cygwin-tdep.c (i386_cygwin_osabi_sniffer): Return
8156 GDB_OSABI_WINDOWS when the binary's target is "pei-i386".
8157 (i386_cygwin_core_osabi_sniffer): New function, extracted from
8158 i386_cygwin_osabi_sniffer.
8159 (_initialize_i386_cygwin_tdep): Register OS ABI
8160 GDB_OSABI_WINDOWS for i386.
8161 * amd64-windows-tdep.c (amd64_windows_osabi_sniffer): Return
8162 GDB_OSABI_WINDOWS when the binary's target is "pei-x86-64".
8163 (_initialize_amd64_windows_tdep): Register OS ABI GDB_OSABI_WINDOWS
8164 for x86-64.
8165 * configure.tgt: Use GDB_OSABI_WINDOWS as the default OS ABI
8166 when the target matches '*-*-mingw*'.
8167
8168 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
8169
8170 * defs.h (enum gdb_osabi): Move to...
8171 * osabi.h (enum gdb_osabi): ... here.
8172 * gdbarch.sh: Include osabi.h in gdbarch.h.
8173 * gdbarch.h: Re-generate.
8174
8175 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
8176
8177 * amd64-windows-tdep.c (amd64_windows_osabi_sniffer): New
8178 function.
8179 (_initialize_amd64_windows_tdep): Register osabi sniffer.
8180
8181 2020-03-14 Tom Tromey <tom@tromey.com>
8182
8183 * c-typeprint.c (cp_type_print_method_args): Print "__restrict__"
8184 for C++.
8185 (c_type_print_modifier): Likewise. Add "language" parameter.
8186 (c_type_print_varspec_prefix, c_type_print_base_struct_union)
8187 (c_type_print_base_1): Update.
8188 * type-stack.h (enum type_pieces) <tp_atomic, tp_restrict>: New
8189 constants.
8190 * type-stack.c (type_stack::insert): Handle tp_atomic and
8191 tp_restrict.
8192 (type_stack::follow_type_instance_flags): Likewise.
8193 (type_stack::follow_types): Likewise. Merge type-following code.
8194 * c-exp.y (RESTRICT, ATOMIC): New tokens.
8195 (space_identifier, cv_with_space_id)
8196 (const_or_volatile_or_space_identifier_noopt)
8197 (const_or_volatile_or_space_identifier): Remove.
8198 (single_qualifier, qualifier_seq_noopt, qualifier_seq): New
8199 rules.
8200 (ptr_operator, typebase): Update.
8201 (enum token_flag) <FLAG_C>: New constant.
8202 (ident_tokens): Add "restrict", "__restrict__", "__restrict", and
8203 "_Atomic".
8204 (lex_one_token): Handle FLAG_C.
8205
8206 2020-03-14 Kamil Rytarowski <n54@gmx.com>
8207
8208 * m68k-bsd-nat.c (fetch_registers): New variable lwp and pass
8209 it to the ptrace call.
8210 * m68k-bsd-nat.c (store_registers): Likewise.
8211
8212 2020-03-14 Kamil Rytarowski <n54@gmx.com>
8213
8214 * m68k-bsd-nat.c (m68kbsd_supply_gregset): Change type of regs to
8215 gdb_byte *.
8216 * m68k-bsd-nat.c (m68kbsd_supply_fpregset): Likewise.
8217 * m68k-bsd-nat.c (m68kbsd_collect_gregset): Likewise.
8218 * m68k-bsd-nat.c (m68kbsd_supply_pcb): Cast &tmp to gdb_byte *.
8219
8220 2020-03-14 Kamil Rytarowski <n54@gmx.com>
8221
8222 * m68k-bsd-nat.c (m68k_bsd_nat_target): Inherit from
8223 nbsd_nat_target instead of inf_ptrace_target.
8224 * m68k-bsd-nat.c: Include "nbsd-nat.h", as we are now using
8225 nbsd_nat_target.
8226
8227 2020-03-14 Kamil Rytarowski <n54@gmx.com>
8228
8229 * m68k-bsd-nat.c: Define _KERNTYPES to get the declaration of
8230 register_t.
8231
8232 2020-03-14 Kamil Rytarowski <n54@gmx.com>
8233
8234 * alpha-bsd-nat.c (fetch_registers): New variable lwp and pass
8235 it to the ptrace call.
8236 * alpha-bsd-nat.c (store_registers): Likewise.
8237
8238 2020-03-14 Kamil Rytarowski <n54@gmx.com>
8239
8240 * alpha-bsd-nat.c: Remove <sys/procfs.h> and "gregset.h" from
8241 includes.
8242 * alpha-bsd-nat.c (gregset_t, fpregset_t): Remove.
8243 * alpha-bsd-nat.c (supply_gregset, fill_gregset, supply_fpregset,
8244 fill_fpregset): Likewise.
8245
8246 2020-03-14 Kamil Rytarowski <n54@gmx.com>
8247
8248 * alpha-bsd-nat.c (alpha_netbsd_nat_target): Inherit from
8249 nbsd_nat_target instead of inf_ptrace_target.
8250 * alpha-bsd-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 * alpha-bsd-nat.c: Define _KERNTYPES to get the declaration of
8256 register_t.
8257
8258 2020-03-14 Kamil Rytarowski <n54@gmx.com>
8259
8260 * arm-nbsd-nat.c (fetch_register): New variable lwp and pass
8261 it to the ptrace call.
8262 * arm-nbsd-nat.c (fetch_fp_register): Likewise.
8263 * arm-nbsd-nat.c (fetch_fp_regs): Likewise.
8264 * arm-nbsd-nat.c (store_register): Likewise.
8265 * arm-nbsd-nat.c (store_regs): Likewise.
8266 * arm-nbsd-nat.c (store_fp_register): Likewise.
8267 * arm-nbsd-nat.c (store_fp_regs): Likewise.
8268
8269 2020-03-14 Kamil Rytarowski <n54@gmx.com>
8270
8271 * arm-nbsd-nat.c (arm_netbsd_nat_target): Inherit from
8272 nbsd_nat_target instead of inf_ptrace_target.
8273 * arm-nbsd-nat.c: Include "nbsd-nat.h", as we are now using
8274 nbsd_nat_target.
8275
8276 2020-03-14 Kamil Rytarowski <n54@gmx.com>
8277
8278 * x86-bsd-nat.c (x86bsd_dr_get): New variable lwp and pass
8279 it to the ptrace call.
8280 * x86-bsd-nat.c (x86bsd_dr_set): Likewise.
8281
8282 2020-03-14 Kamil Rytarowski <n54@gmx.com>
8283
8284 * vax-bsd-nat.c (vaxbsd_supply_gregset): New variable lwp and pass
8285 it to the ptrace call.
8286 * vax-bsd-nat.c (vaxbsd_collect_gregset): Likewise.
8287
8288 2020-03-14 Kamil Rytarowski <n54@gmx.com>
8289
8290 * vax-bsd-nat.c (vaxbsd_supply_gregset): Cast gregs to const
8291 gdb_byte *.
8292 * vax-bsd-nat.c (vaxbsd_collect_gregset): Cast gregs to void *.
8293
8294 2020-03-14 Kamil Rytarowski <n54@gmx.com>
8295
8296 * vax-bsd-nat.c (vax_bsd_nat_target): Inherit from nbsd_nat_target
8297 instead of inf_ptrace_target.
8298 * vax-bsd-nat.c: Include "nbsd-nat.h", as we are now using
8299 nbsd_nat_target.
8300
8301 2020-03-14 Kamil Rytarowski <n54@gmx.com>
8302
8303 * mips-nbsd-nat.c: Define _KERNTYPES to get the declaration of
8304 register_t.
8305
8306 2020-03-14 Kamil Rytarowski <n54@gmx.com>
8307
8308 * ppc-nbsd-nat.c: Define _KERNTYPES to get the declaration of
8309 register_t.
8310
8311 2020-03-14 Kamil Rytarowski <n54@gmx.com>
8312
8313 * vax-bsd-nat.c: Define _KERNTYPES to get the declaration of
8314 register_t.
8315
8316 2020-03-13 Tom Tromey <tom@tromey.com>
8317
8318 * value.h (val_print): Don't declare.
8319 * valprint.h (val_print_array_elements)
8320 (val_print_scalar_formatted, generic_val_print): Don't declare.
8321 * valprint.c (generic_val_print_array): Take a struct value.
8322 (generic_val_print_ptr, generic_val_print_memberptr)
8323 (generic_val_print_bool, generic_val_print_int)
8324 (generic_val_print_char, generic_val_print_complex)
8325 (generic_val_print): Remove.
8326 (generic_value_print): Update.
8327 (do_val_print): Remove unused parameters. Don't call
8328 la_val_print.
8329 (val_print): Remove.
8330 (common_val_print): Update. Don't call value_check_printable.
8331 (val_print_scalar_formatted, val_print_array_elements): Remove.
8332 * rust-lang.c (rust_val_print): Remove.
8333 (rust_language_defn): Update.
8334 * p-valprint.c (pascal_val_print): Remove.
8335 (pascal_value_print_inner): Update.
8336 (pascal_object_print_val_fields, pascal_object_print_val):
8337 Remove.
8338 (pascal_object_print_static_field): Update.
8339 * p-lang.h (pascal_val_print): Don't declare.
8340 * p-lang.c (pascal_language_defn): Update.
8341 * opencl-lang.c (opencl_language_defn): Update.
8342 * objc-lang.c (objc_language_defn): Update.
8343 * m2-valprint.c (m2_print_unbounded_array, m2_val_print): Remove.
8344 * m2-lang.h (m2_val_print): Don't declare.
8345 * m2-lang.c (m2_language_defn): Update.
8346 * language.h (struct language_defn) <la_val_print>: Remove.
8347 * language.c (unk_lang_value_print_inner): Rename. Change
8348 argument types.
8349 (unknown_language_defn, auto_language_defn): Update.
8350 * go-valprint.c (go_val_print): Remove.
8351 * go-lang.h (go_val_print): Don't declare.
8352 * go-lang.c (go_language_defn): Update.
8353 * f-valprint.c (f_val_print): Remove.
8354 * f-lang.h (f_value_print): Don't declare.
8355 * f-lang.c (f_language_defn): Update.
8356 * d-valprint.c (d_val_print): Remove.
8357 * d-lang.h (d_value_print): Don't declare.
8358 * d-lang.c (d_language_defn): Update.
8359 * cp-valprint.c (cp_print_value_fields)
8360 (cp_print_value_fields_rtti, cp_print_value): Remove.
8361 (cp_print_static_field): Update.
8362 * c-valprint.c (c_val_print_array, c_val_print_ptr)
8363 (c_val_print_struct, c_val_print_union, c_val_print_int)
8364 (c_val_print_memberptr, c_val_print): Remove.
8365 * c-lang.h (c_val_print_array, cp_print_value_fields)
8366 (cp_print_value_fields_rtti): Don't declare.
8367 * c-lang.c (c_language_defn, cplus_language_defn)
8368 (asm_language_defn, minimal_language_defn): Update.
8369 * ada-valprint.c (ada_val_print_ptr, ada_val_print_num): Remove.
8370 (ada_val_print_enum): Take a struct value.
8371 (ada_val_print_flt, ada_val_print_array, ada_val_print_1)
8372 (ada_val_print): Remove.
8373 (ada_value_print_1): Update.
8374 (printable_val_type): Remove.
8375 * ada-lang.h (ada_val_print): Don't declare.
8376 * ada-lang.c (ada_language_defn): Update.
8377
8378 2020-03-13 Tom Tromey <tom@tromey.com>
8379
8380 * valprint.c (do_val_print): Update.
8381 * python/python-internal.h (gdbpy_apply_val_pretty_printer): Take
8382 a struct value.
8383 (value_to_value_object_no_release): Declare.
8384 * python/py-value.c (value_to_value_object_no_release): New
8385 function.
8386 * python/py-prettyprint.c (gdbpy_apply_val_pretty_printer): Take a
8387 struct value.
8388 * guile/scm-value.c (vlscm_scm_from_value_no_release): New
8389 function.
8390 * guile/scm-pretty-print.c (gdbscm_apply_val_pretty_printer): Take
8391 a struct value.
8392 * guile/guile-internal.h (vlscm_scm_from_value_no_release):
8393 Declare.
8394 (gdbscm_apply_val_pretty_printer): Take a struct value.
8395 * extension.h (apply_ext_lang_val_pretty_printer): Take a struct
8396 value.
8397 * extension.c (apply_ext_lang_val_pretty_printer): Take a struct
8398 value.
8399 * extension-priv.h (struct extension_language_ops)
8400 <apply_val_pretty_printer>: Take a struct value.
8401 * cp-valprint.c (cp_print_value): Create a struct value.
8402 (cp_print_value): Update.
8403
8404 2020-03-13 Tom Tromey <tom@tromey.com>
8405
8406 * ada-valprint.c (print_field_values): Call common_val_print.
8407
8408 2020-03-13 Tom Tromey <tom@tromey.com>
8409
8410 * ada-valprint.c (val_print_packed_array_elements): Remove
8411 bitoffset and val parameters. Call common_val_print.
8412 (ada_val_print_string): Remove offset, address, and original_value
8413 parameters.
8414 (ada_val_print_array): Update.
8415 (ada_value_print_array): New function.
8416 (ada_value_print_1): Call it.
8417
8418 2020-03-13 Tom Tromey <tom@tromey.com>
8419
8420 * ada-valprint.c (ada_value_print): Use common_val_print.
8421
8422 2020-03-13 Tom Tromey <tom@tromey.com>
8423
8424 * ada-valprint.c (ada_val_print_ref): Use common_val_print.
8425
8426 2020-03-13 Tom Tromey <tom@tromey.com>
8427
8428 * ada-valprint.c (ada_value_print_num): New function.
8429 (ada_value_print_1): Use it.
8430
8431 2020-03-13 Tom Tromey <tom@tromey.com>
8432
8433 * ada-valprint.c (ada_value_print_1) <TYPE_CODE_FLT>: Rewrite.
8434
8435 2020-03-13 Tom Tromey <tom@tromey.com>
8436
8437 * ada-valprint.c (ada_value_print_ptr): New function.
8438 (ada_value_print_1): Use it.
8439
8440 2020-03-13 Tom Tromey <tom@tromey.com>
8441
8442 * ada-valprint.c (ada_val_print_gnat_array): Take a struct value;
8443 call common_val_print.
8444 (ada_val_print_1): Update.
8445 (ada_value_print_1): New function.
8446 (ada_value_print_inner): Rewrite.
8447
8448 2020-03-13 Tom Tromey <tom@tromey.com>
8449
8450 * cp-valprint.c (cp_print_value_fields): Update.
8451 (cp_print_value): New function.
8452
8453 2020-03-13 Tom Tromey <tom@tromey.com>
8454
8455 * m2-valprint.c (m2_value_print_inner): Use
8456 cp_print_value_fields.
8457 * cp-valprint.c (cp_print_value_fields): New function.
8458 * c-valprint.c (c_value_print_struct): New function.
8459 (c_value_print_inner): Use c_value_print_struct.
8460 * c-lang.h (cp_print_value_fields): Declare.
8461
8462 2020-03-13 Tom Tromey <tom@tromey.com>
8463
8464 * c-valprint.c (c_value_print_array): New function.
8465 (c_value_print_inner): Use it.
8466
8467 2020-03-13 Tom Tromey <tom@tromey.com>
8468
8469 * c-valprint.c (c_value_print_memberptr): New function.
8470 (c_value_print_inner): Use it.
8471
8472 2020-03-13 Tom Tromey <tom@tromey.com>
8473
8474 * c-valprint.c (c_value_print_int): New function.
8475 (c_value_print_inner): Use it.
8476
8477 2020-03-13 Tom Tromey <tom@tromey.com>
8478
8479 * c-valprint.c (c_value_print_ptr): New function.
8480 (c_value_print_inner): Use it.
8481
8482 2020-03-13 Tom Tromey <tom@tromey.com>
8483
8484 * c-valprint.c (c_value_print_inner): Rewrite.
8485
8486 2020-03-13 Tom Tromey <tom@tromey.com>
8487
8488 * valprint.c (generic_value_print_complex): New function.
8489 (generic_value_print): Use it.
8490
8491 2020-03-13 Tom Tromey <tom@tromey.com>
8492
8493 * valprint.c (generic_val_print_float): Don't call
8494 val_print_scalar_formatted.
8495 (generic_val_print, generic_value_print): Update.
8496
8497 2020-03-13 Tom Tromey <tom@tromey.com>
8498
8499 * valprint.c (generic_value_print_char): New function
8500 (generic_value_print): Use it.
8501
8502 2020-03-13 Tom Tromey <tom@tromey.com>
8503
8504 * valprint.c (generic_value_print_int): New function.
8505 (generic_value_print): Use it.
8506
8507 2020-03-13 Tom Tromey <tom@tromey.com>
8508
8509 * valprint.c (generic_value_print_bool): New function.
8510 (generic_value_print): Use it.
8511
8512 2020-03-13 Tom Tromey <tom@tromey.com>
8513
8514 * valprint.c (generic_val_print_func): Simplify.
8515 (generic_val_print, generic_value_print): Update.
8516
8517 2020-03-13 Tom Tromey <tom@tromey.com>
8518
8519 * valprint.c (generic_val_print_flags): Remove.
8520 (generic_val_print, generic_value_print): Update.
8521 (val_print_type_code_flags): Add original_value parameter.
8522
8523 2020-03-13 Tom Tromey <tom@tromey.com>
8524
8525 * valprint.c (generic_val_print): Update.
8526 (generic_value_print): Update.
8527 * valprint.c (generic_val_print_enum): Don't call
8528 val_print_scalar_formatted.
8529
8530 2020-03-13 Tom Tromey <tom@tromey.com>
8531
8532 * valprint.c (generic_value_print): Call generic_value_print_ptr.
8533 * valprint.c (generic_value_print_ptr): New function.
8534
8535 2020-03-13 Tom Tromey <tom@tromey.com>
8536
8537 * valprint.c (generic_value_print): Rewrite.
8538
8539 2020-03-13 Tom Tromey <tom@tromey.com>
8540
8541 * p-valprint.c (pascal_object_print_value_fields)
8542 (pascal_object_print_value): New functions.
8543
8544 2020-03-13 Tom Tromey <tom@tromey.com>
8545
8546 * p-valprint.c (pascal_value_print_inner): Rewrite.
8547
8548 2020-03-13 Tom Tromey <tom@tromey.com>
8549
8550 * f-valprint.c (f_value_print_innner): Rewrite.
8551
8552 2020-03-13 Tom Tromey <tom@tromey.com>
8553
8554 * m2-valprint.c (m2_print_unbounded_array): New overload.
8555 (m2_print_unbounded_array): Update.
8556 (m2_print_array_contents): Take a struct value.
8557 (m2_value_print_inner): Rewrite.
8558
8559 2020-03-13 Tom Tromey <tom@tromey.com>
8560
8561 * d-valprint.c (dynamic_array_type): Call d_value_print_inner.
8562 (d_value_print_inner): New function.
8563 * d-lang.h (d_value_print_inner): Declare.
8564 * d-lang.c (d_language_defn): Use d_value_print_inner.
8565
8566 2020-03-13 Tom Tromey <tom@tromey.com>
8567
8568 * go-valprint.c (go_value_print_inner): New function.
8569 * go-lang.h (go_value_print_inner): Declare.
8570 * go-lang.c (go_language_defn): Use go_value_print_inner.
8571
8572 2020-03-13 Tom Tromey <tom@tromey.com>
8573
8574 * rust-lang.c (val_print_struct, rust_print_enum): Use the value
8575 API.
8576 (rust_val_print): Rewrite.
8577 (rust_value_print_inner): New function, from rust_val_print.
8578 (rust_language_defn): Use rust_value_print_inner.
8579
8580 2020-03-13 Tom Tromey <tom@tromey.com>
8581
8582 * ada-valprint.c (ada_value_print_inner): New function.
8583 * ada-lang.h (ada_value_print_inner): Declare.
8584 * ada-lang.c (ada_language_defn): Use ada_value_print_inner.
8585
8586 2020-03-13 Tom Tromey <tom@tromey.com>
8587
8588 * f-valprint.c (f_value_print_innner): New function.
8589 * f-lang.h (f_value_print_innner): Declare.
8590 * f-lang.c (f_language_defn): Use f_value_print_innner.
8591
8592 2020-03-13 Tom Tromey <tom@tromey.com>
8593
8594 * p-valprint.c (pascal_value_print_inner): New function.
8595 * p-lang.h (pascal_value_print_inner): Declare.
8596 * p-lang.c (pascal_language_defn): Use pascal_value_print_inner.
8597
8598 2020-03-13 Tom Tromey <tom@tromey.com>
8599
8600 * m2-valprint.c (m2_value_print_inner): New function.
8601 * m2-lang.h (m2_value_print_inner): Declare.
8602 * m2-lang.c (m2_language_defn): Use m2_value_print_inner.
8603
8604 2020-03-13 Tom Tromey <tom@tromey.com>
8605
8606 * opencl-lang.c (opencl_language_defn): Use c_value_print_inner.
8607 * objc-lang.c (objc_language_defn): Use c_value_print_inner.
8608 * c-valprint.c (c_value_print_inner): New function.
8609 * c-lang.h (c_value_print_inner): Declare.
8610 * c-lang.c (c_language_defn, cplus_language_defn)
8611 (asm_language_defn, minimal_language_defn): Use
8612 c_value_print_inner.
8613
8614 2020-03-13 Tom Tromey <tom@tromey.com>
8615
8616 * p-valprint.c (pascal_object_print_value_fields): Now static.
8617 * p-lang.h (pascal_object_print_value_fields): Don't declare.
8618
8619 2020-03-13 Tom Tromey <tom@tromey.com>
8620
8621 * c-valprint.c (c_val_print_array): Simplify.
8622
8623 2020-03-13 Tom Tromey <tom@tromey.com>
8624
8625 * valprint.c (value_print_array_elements): New function.
8626 * valprint.h (value_print_array_elements): Declare.
8627
8628 2020-03-13 Tom Tromey <tom@tromey.com>
8629
8630 * printcmd.c (print_formatted): Use value_print_scalar_formatted.
8631 * mips-tdep.c (mips_print_register): Use
8632 value_print_scalar_formatted.
8633
8634 2020-03-13 Tom Tromey <tom@tromey.com>
8635
8636 * valprint.h (value_print_scalar_formatted): Declare.
8637 * valprint.c (value_print_scalar_formatted): New function.
8638
8639 2020-03-13 Tom Tromey <tom@tromey.com>
8640
8641 * valprint.h (generic_value_print): Declare.
8642 * valprint.c (generic_value_print): New function.
8643
8644 2020-03-13 Tom Tromey <tom@tromey.com>
8645
8646 * valprint.c (do_val_print): Call la_value_print_inner, if
8647 available.
8648 * rust-lang.c (rust_language_defn): Update.
8649 * p-lang.c (pascal_language_defn): Update.
8650 * opencl-lang.c (opencl_language_defn): Update.
8651 * objc-lang.c (objc_language_defn): Update.
8652 * m2-lang.c (m2_language_defn): Update.
8653 * language.h (struct language_defn) <la_value_print_inner>: New
8654 member.
8655 * language.c (unknown_language_defn, auto_language_defn): Update.
8656 * go-lang.c (go_language_defn): Update.
8657 * f-lang.c (f_language_defn): Update.
8658 * d-lang.c (d_language_defn): Update.
8659 * c-lang.c (c_language_defn, cplus_language_defn)
8660 (asm_language_defn, minimal_language_defn): Update.
8661 * ada-lang.c (ada_language_defn): Update.
8662
8663 2020-03-13 Tom Tromey <tom@tromey.com>
8664
8665 * c-valprint.c (c_value_print): Use common_val_print.
8666
8667 2020-03-13 Tom Tromey <tom@tromey.com>
8668
8669 * cp-valprint.c (cp_print_static_field): Use common_val_print.
8670
8671 2020-03-13 Tom Tromey <tom@tromey.com>
8672
8673 * f-valprint.c (f77_print_array_1, f_val_print): Use
8674 common_val_print.
8675
8676 2020-03-13 Tom Tromey <tom@tromey.com>
8677
8678 * riscv-tdep.c (riscv_print_one_register_info): Use
8679 common_val_print.
8680
8681 2020-03-13 Tom Tromey <tom@tromey.com>
8682
8683 * mi/mi-main.c (output_register): Use common_val_print.
8684
8685 2020-03-13 Tom Tromey <tom@tromey.com>
8686
8687 * infcmd.c (default_print_one_register_info): Use
8688 common_val_print.
8689
8690 2020-03-13 Tom Tromey <tom@tromey.com>
8691
8692 * valprint.h (common_val_print_checked): Declare.
8693 * valprint.c (common_val_print_checked): New function.
8694 * stack.c (print_frame_arg): Use common_val_print_checked.
8695
8696 2020-03-13 Tom Tromey <tom@tromey.com>
8697
8698 * valprint.c (do_val_print): New function, from val_print.
8699 (val_print): Use do_val_print.
8700 (common_val_print): Use do_val_print.
8701
8702 2020-03-13 Tom Tromey <tom@tromey.com>
8703
8704 * valprint.c (value_print): Use scoped_value_mark.
8705
8706 2020-03-13 Tom de Vries <tdevries@suse.de>
8707
8708 PR symtab/25646
8709 * psymtab.c (partial_symtab::partial_symtab): Don't set
8710 globals_offset and statics_offset. Push element onto
8711 current_global_psymbols and current_static_psymbols stacks.
8712 (concat): New function.
8713 (end_psymtab_common): Set globals_offset and statics_offset. Pop
8714 element from current_global_psymbols and current_static_psymbols
8715 stacks. Concat popped elements to global_psymbols and
8716 static_symbols.
8717 (add_psymbol_to_list): Use current_global_psymbols and
8718 current_static_psymbols stacks.
8719 * psymtab.h (class psymtab_storage): Add current_global_psymbols and
8720 current_static_psymbols fields.
8721
8722 2020-03-12 Christian Biesinger <cbiesinger@google.com>
8723
8724 * corelow.c (sniff_core_bfd): Remove.
8725 (class core_target) <m_core_vec>: Remove.
8726 (core_target::core_target): Update.
8727 (core_file_fns): Remove.
8728 (deprecated_add_core_fns): Remove.
8729 (default_core_sniffer): Remove.
8730 (sniff_core_bfd): Remove.
8731 (default_check_format): Remove.
8732 (gdb_check_format): Remove.
8733 (core_target_open): Update.
8734 (core_target::get_core_register_section): Update.
8735 (get_core_registers_cb): Update.
8736 (core_target::fetch_registers): Update.
8737 * gdbcore.h (struct core_fns): Remove.
8738 (deprecated_add_core_fns): Remove.
8739 (default_core_sniffer): Remove.
8740 (default_check_format): Remove.
8741
8742 2020-03-12 Tom Tromey <tom@tromey.com>
8743
8744 * arm-tdep.c (struct arm_mapping_symbol) <value>: Now a
8745 CORE_ADDR.
8746 (struct arm_exidx_entry) <addr>: Now a CORE_ADDR.
8747
8748 2020-03-12 Tom Tromey <tom@tromey.com>
8749
8750 * remote.c (remote_target::download_tracepoint)
8751 (remote_target::enable_tracepoint)
8752 (remote_target::disable_tracepoint): Use phex, not sprintf_vma.
8753 * breakpoint.c (print_recreate_masked_watchpoint): Use phex, not
8754 sprintf_vma.
8755
8756 2020-03-12 Tom Tromey <tom@tromey.com>
8757
8758 * symfile-mem.c: Update CORE_ADDR size assert.
8759
8760 2020-03-12 Simon Marchi <simon.marchi@efficios.com>
8761
8762 * selftest.m4: Move to gdbsupport/.
8763 * acinclude.m4: Update path to selftest.m4.
8764
8765 2020-03-12 Simon Marchi <simon.marchi@efficios.com>
8766
8767 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Rename to...
8768 (SELFTESTS_SRCS): ... this. Add disasm-selftests.c,
8769 gdbarch-selfselftests.c and selftest-arch.c.
8770 (SUBDIR_UNITTESTS_OBS): Rename to...
8771 (SELFTESTS_OBS): ... this.
8772 (COMMON_SFILES): Remove disasm-selftests.c and
8773 gdbarch-selftests.c.
8774 * configure.ac: Don't add selftest-arch.{c,o} to
8775 CONFIG_{SRCS,OBS}.
8776 * disasm-selftests.c, gdbarch-selftests.c: Remove GDB_SELF_TEST
8777 preprocessor conditions.
8778
8779 2020-03-12 Simon Marchi <simon.marchi@efficios.com>
8780
8781 * configure.ac: Don't source bfd/development.sh.
8782 * selftest.m4: Modify comment.
8783 * configure: Re-generate.
8784
8785 2020-03-12 Simon Marchi <simon.marchi@efficios.com>
8786
8787 * selftest.m4 (GDB_AC_SELFTEST): Error out if $development is
8788 not "true" or "false".
8789 * configure: Re-generate.
8790
8791 2020-03-12 Christian Biesinger <cbiesinger@google.com>
8792
8793 * Makefile.in (HFILES_NO_SRCDIR): Add new arm-nbsd-tdep.h file.
8794 * arm-nbsd-nat.c (arm_supply_gregset): Moved to arm-nbsd-tdep and
8795 renamed to arm_nbsd_supply_gregset.
8796 (fetch_register): Update to call arm_nbsd_supply_gregset.
8797 (fetch_regs): Remove in favor of fetch_register with a -1 regno.
8798 (arm_netbsd_nat_target::fetch_registers): Update.
8799 (fetch_elfcore_registers): Removed.
8800 (_initialize_arm_netbsd_nat): Removed call to deprecated_add_core_fns.
8801 * arm-nbsd-tdep.c (struct arm_nbsd_reg): New struct.
8802 (arm_nbsd_supply_gregset): Moved from arm-nbsd-nat.c and updated to
8803 not require NetBSD system headers.
8804 (arm_nbsd_regset): New struct.
8805 (arm_nbsd_iterate_over_regset_sections): New function.
8806 (arm_netbsd_init_abi_common): Updated to call
8807 set_gdbarch_iterate_over_regset_sections.
8808 * arm-nbsd-tdep.h: New file.
8809
8810 2020-03-11 Kevin Buettner <kevinb@redhat.com>
8811
8812 * symtab.c (find_pc_sect_line): Add check which prevents infinite
8813 recursion.
8814
8815 2020-03-11 Simon Marchi <simon.marchi@efficios.com>
8816
8817 * configure: Re-generate.
8818
8819 2020-03-11 Tom Tromey <tromey@adacore.com>
8820
8821 * ada-typeprint.c (print_choices): Fix comment.
8822
8823 2020-03-11 Andrew Burgess <andrew.burgess@embecosm.com>
8824
8825 * buildsyms.c (buildsym_compunit::record_line): Avoid accessing
8826 previous item in the list, when the list has no items.
8827
8828 2020-03-11 Tom de Vries <tdevries@suse.de>
8829
8830 * dwarf2/loc.c (dwarf2_evaluate_property): Handle NULL frame in
8831 PROP_LOCLIST handling code.
8832
8833 2020-03-10 Andrew Burgess <andrew.burgess@embecosm.com>
8834
8835 * buildsym-legacy.c (record_line): Pass extra parameter to
8836 record_line.
8837 * buildsym.c (buildsym_compunit::record_line): Take an extra
8838 parameter, reduce duplication in the line table, and record the
8839 is_stmt flag in the line table.
8840 * buildsym.h (buildsym_compunit::record_line): Add extra
8841 parameter.
8842 * disasm.c (do_mixed_source_and_assembly_deprecated): Ignore
8843 non-statement lines.
8844 * dwarf2/read.c (dwarf_record_line_1): Add extra parameter, pass
8845 this to the symtab builder.
8846 (dwarf_finish_line): Pass extra parameter to dwarf_record_line_1.
8847 (lnp_state_machine::record_line): Pass a suitable is_stmt flag
8848 through to dwarf_record_line_1.
8849 * infrun.c (process_event_stop_test): When stepping, don't stop at
8850 a non-statement instruction, and only refresh the step info when
8851 we land in the middle of a line's range. Also add an extra
8852 comment.
8853 * jit.c (jit_symtab_line_mapping_add_impl): Initialise is_stmt
8854 field.
8855 * record-btrace.c (btrace_find_line_range): Only record lines
8856 marked as is-statement.
8857 * stack.c (frame_show_address): Show the frame address if we are
8858 in a non-statement sal.
8859 * symmisc.c (dump_symtab_1): Print the is_stmt flag.
8860 (maintenance_print_one_line_table): Print a header for the is_stmt
8861 column, and include is_stmt information in the output.
8862 * symtab.c (find_pc_sect_line): Find lines marked as statements in
8863 preference to non-statements.
8864 (find_pcs_for_symtab_line): Prefer is-statement entries.
8865 (find_line_common): Likewise.
8866 * symtab.h (struct linetable_entry): Add is_stmt field.
8867 (struct symtab_and_line): Likewise.
8868 * xcoffread.c (arrange_linetable): Initialise is_stmt field when
8869 arranging the line table.
8870
8871 2020-03-07 Tom de Vries <tdevries@suse.de>
8872
8873 * dwarf2/read.c (read_typedef): Treat anonymous typedef as forwarder
8874 DIE.
8875
8876 2020-03-07 Tom Tromey <tom@tromey.com>
8877
8878 * valops.c (value_literal_complex): Remove obsolete comment.
8879 * gdbtypes.h (enum type_code) <TYPE_CODE_FLT>: Remove obsolete
8880 comment.
8881
8882 2020-03-06 Simon Marchi <simon.marchi@polymtl.ca>
8883
8884 * infrun.h: Forward-declare thread_info.
8885 (set_step_info): Add thread_info parameter, add doc.
8886 * infrun.c (set_step_info): Add thread_info parameter, move doc
8887 to header.
8888 * infrun.c (process_event_stop_test): Pass thread to
8889 set_step_info call.
8890 * infcmd.c (set_step_frame): Add thread_info pointer, pass it to
8891 set_step_info.
8892 (prepare_one_step): Add thread_info parameter, pass it to
8893 set_step_frame and prepare_one_step (recursive) call.
8894 (step_1): Pass thread to prepare_one_step call.
8895 (step_command_fsm::should_stop): Pass thread to
8896 prepare_one_step.
8897 (until_next_fsm): Pass thread to set_step_frame call.
8898 (finish_command): Pass thread to set_step_info call.
8899
8900 2020-03-06 Hannes Domani <ssbssa@yahoo.de>
8901
8902 * windows-tdep.c (windows_solib_create_inferior_hook):
8903 Check if inferior is running.
8904
8905 2020-03-06 Tom de Vries <tdevries@suse.de>
8906
8907 * NEWS: Fix "the the".
8908 * ctfread.c: Same.
8909
8910 2020-03-06 Tom de Vries <tdevries@suse.de>
8911
8912 * psymtab.c (psymtab_to_symtab): Don't print "done.".
8913
8914 2020-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
8915
8916 * .dir-locals.el: Add a comment referencing the other copies of
8917 this file.
8918
8919 2020-03-05 John Baldwin <jhb@FreeBSD.org>
8920
8921 * fbsd-tdep.c (fbsd_make_corefile_notes): Use std::string for
8922 psargs.
8923
8924 2020-03-05 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
8925
8926 * .gitattributes: New file.
8927
8928 2020-03-04 Tom Tromey <tom@tromey.com>
8929
8930 * symmisc.c (print_symbol_bcache_statistics)
8931 (print_objfile_statistics): Update.
8932 * symfile.c (allocate_symtab): Use intern.
8933 * psymtab.c (partial_symtab::partial_symtab): Use intern.
8934 * objfiles.h (struct objfile_per_bfd_storage) <filename_cache,
8935 macro_cache>: Remove.
8936 <string_cache>: New member.
8937 (struct objfile) <intern>: New methods.
8938 * elfread.c (elf_symtab_read): Use intern.
8939 * dwarf2/read.c (fixup_go_packaging): Intern package name.
8940 (dwarf2_compute_name, dwarf2_physname)
8941 (create_dwo_unit_in_dwp_v1, create_dwo_unit_in_dwp_v2): Intern
8942 names.
8943 (guess_partial_die_structure_name): Update.
8944 (partial_die_info::fixup): Intern name.
8945 (dwarf2_canonicalize_name): Change parameter to objfile. Intern
8946 name.
8947 (dwarf2_name): Intern name. Update.
8948 * buildsym.c (buildsym_compunit::get_macro_table): Use
8949 string_cache.
8950
8951 2020-03-04 Tom Tromey <tom@tromey.com>
8952
8953 * jit.c (bfd_open_from_target_memory): Make "target" const.
8954 * corefile.c (gnutarget): Now const.
8955 * gdbcore.h (gnutarget): Now const.
8956
8957 2020-03-04 Hannes Domani <ssbssa@yahoo.de>
8958
8959 * NEWS: Mention support for WOW64 processes.
8960 * amd64-windows-nat.c (amd64_mappings): Rename and remove static.
8961 (amd64_windows_segment_register_p): Remove static.
8962 (_initialize_amd64_windows_nat): Update.
8963 * configure.nat <windows> (NATDEPFILES): Add i386-windows-nat.o.
8964 * i386-windows-nat.c (context_offset): Update.
8965 (i386_mappings): Rename and remove static.
8966 (i386_windows_segment_register_p): Remove static.
8967 (_initialize_i386_windows_nat): Update.
8968 * windows-nat.c (STATUS_WX86_BREAKPOINT): New macro.
8969 (STATUS_WX86_SINGLE_STEP): New macro.
8970 (EnumProcessModulesEx): New macro.
8971 (Wow64SuspendThread): New macro.
8972 (Wow64GetThreadContext): New macro.
8973 (Wow64SetThreadContext): New macro.
8974 (Wow64GetThreadSelectorEntry): New macro.
8975 (windows_set_context_register_offsets): Add static.
8976 (windows_set_segment_register_p): Likewise.
8977 (windows_add_thread): Adapt for WOW64 processes.
8978 (windows_fetch_one_register): Likewise.
8979 (windows_nat_target::fetch_registers): Likewise.
8980 (windows_store_one_register): Likewise.
8981 (display_selector): Likewise.
8982 (display_selectors): Likewise.
8983 (handle_exception): Likewise.
8984 (windows_continue): Likewise.
8985 (windows_nat_target::resume): Likewise.
8986 (windows_add_all_dlls): Likewise.
8987 (do_initial_windows_stuff): Likewise.
8988 (windows_nat_target::attach): Likewise.
8989 (windows_get_exec_module_filename): Likewise.
8990 (windows_nat_target::create_inferior): Likewise.
8991 (windows_xfer_siginfo): Likewise.
8992 (_initialize_loadable): Initialize Wow64SuspendThread,
8993 Wow64GetThreadContext, Wow64SetThreadContext,
8994 Wow64GetThreadSelectorEntry and EnumProcessModulesEx.
8995 * windows-nat.h (windows_set_context_register_offsets):
8996 Remove declaration.
8997 (windows_set_segment_register_p): Likewise.
8998 (i386_windows_segment_register_p): Add declaration.
8999 (amd64_windows_segment_register_p): Likewise.
9000
9001 2020-03-04 Luis Machado <luis.machado@linaro.org>
9002
9003 Revert aa66aac47b4dd38f9524ddb5546c08cc09930d37 due to regressions
9004 in "info registers" for AArch64/ARM.
9005
9006 The change caused "info registers" to not print GPR's.
9007
9008 gdb/ChangeLog:
9009
9010 2020-02-01 Shahab Vahedi <shahab@synopsys.com>
9011
9012 * target-descriptions.c (tdesc_register_in_reggroup_p): Return 0
9013 when reg->group is empty and reggroup is not.
9014
9015 2020-03-03 Tom Tromey <tromey@adacore.com>
9016
9017 * dwarf2/frame.c (struct dwarf2_frame_cache)
9018 <checked_tailcall_bottom, entry_cfa_sp_offset,
9019 entry_cfa_sp_offset_p>: Remove members.
9020 (dwarf2_frame_cache): Call dwarf2_tailcall_sniffer_first.
9021 (dwarf2_frame_prev_register): Don't call
9022 dwarf2_tailcall_sniffer_first.
9023 (dwarf2_append_unwinders): Don't append tailcall unwinder.
9024 * frame-unwind.c (add_unwinder): New fuction.
9025 (frame_unwind_init): Use it. Add tailcall unwinder.
9026
9027 2020-03-03 Andrew Burgess <andrew.burgess@embecosm.com>
9028 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
9029
9030 * f-valprint.c (f_val_print): Handle TYPE_CODE_BOOL, any non-zero
9031 value should be printed as true.
9032
9033 2020-03-03 Hannes Domani <ssbssa@yahoo.de>
9034
9035 * windows-tdep.c (windows_solib_create_inferior_hook): New function.
9036 (windows_init_abi): Set and use windows_so_ops.
9037
9038 2020-03-03 Sergio Durigan Junior <sergiodj@redhat.com>
9039
9040 * printcmd.c (print_c_string): Check also for TYPE_CODE_PTR
9041 when verifying if dealing with a convenience variable.
9042
9043 2020-03-03 Luis Machado <luis.machado@linaro.org>
9044
9045 * auxv.c (default_print_auxv_entry): Add new AUXV entries.
9046
9047 2020-03-02 Simon Marchi <simon.marchi@polymtl.ca>
9048
9049 * infrun.c (gdbarch_supports_displaced_stepping): New.
9050 (use_displaced_stepping): Break up conditions in smaller pieces.
9051 Use gdbarch_supports_displaced_stepping.
9052 (displaced_step_prepare_throw): Use
9053 gdbarch_supports_displaced_stepping.
9054
9055 2020-03-02 Andrew Burgess <andrew.burgess@embecosm.com>
9056
9057 * NEWS: Mention new behaviour of the history filename.
9058 * top.c (write_history_p): Add comment.
9059 (show_write_history_p): Add header comment, give a different
9060 message when history writing is on, but the history filename is
9061 empty.
9062 (history_filename): Add comment.
9063 (history_filename_empty): New function.
9064 (show_history_filename): Add header comment, give a different
9065 message when the filename is empty.
9066 (init_history): Compare history_filename against nullptr, and only
9067 read history if the filename is not empty.
9068 (set_history_filename): Add header comment, and only make
9069 non-empty filenames absolute.
9070 (init_main): Make the filename argument to 'set history filename'
9071 optional.
9072
9073 2020-03-02 Christian Biesinger <cbiesinger@google.com>
9074
9075 * arm-nbsd-nat.c (arm_supply_fparegset): Rename to...
9076 (arm_supply_vfpregset): ...this, and update to use VFP registers.
9077 (fetch_fp_register): Update.
9078 (fetch_fp_regs): Update.
9079 (store_fp_register): Update.
9080 (store_fp_regs): Update.
9081 (arm_netbsd_nat_target::read_description): New function.
9082 (fetch_elfcore_registers): Update.
9083
9084 2020-03-02 Andrew Burgess <andrew.burgess@embecosm.com>
9085
9086 * remote.c (remote_target::remote_parse_stop_reply): Don't use the
9087 general_thread if the stop reply is missing a thread-id.
9088 (remote_target::process_stop_reply): Use the first non-exited
9089 thread if the target didn't pass a thread-id.
9090 * infrun.c (do_target_wait): Move call to
9091 switch_to_inferior_no_thread to ....
9092 (do_target_wait_1): ... here.
9093
9094 2020-02-29 Jon Turney <jon.turney@dronecode.org.uk>
9095
9096 * debuginfod-support.c: Include defs.h first.
9097
9098 2020-02-28 Tom de Vries <tdevries@suse.de>
9099
9100 * symfile.c (set_initial_language): Use default language for lookup.
9101
9102 2020-02-28 Simon Marchi <simon.marchi@efficios.com>
9103
9104 * dwarf2/read.c (cutu_reader::init_tu_and_read_dwo_dies): Remove
9105 reader variable, pass `this` to read_cutu_die_from_dwo.
9106
9107 2020-02-27 Aaron Merey <amerey@redhat.com>
9108
9109 * source.c (open_source_file): Check for nullptr when computing
9110 srcpath.
9111
9112 2020-02-27 Tom Tromey <tromey@adacore.com>
9113
9114 * dwarf2/read.c (struct field_info) <nfields>: Now a method, not a
9115 member.
9116 (dwarf2_add_field): Don't update nfields.
9117 (dwarf2_attach_fields_to_type, process_structure_scope): Update.
9118
9119 2020-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
9120
9121 * gdbtypes.c (create_array_type_with_stride): Use std::abs not
9122 abs.
9123
9124 2020-02-26 Tom Tromey <tom@tromey.com>
9125
9126 * dwarf2/read.c (struct dwarf2_include_psymtab): New.
9127 (dwarf2_create_include_psymtab): Use dwarf2_include_psymtab.
9128 (dwarf2_psymtab::expand_psymtab, dwarf2_psymtab::readin_p)
9129 (dwarf2_psymtab::get_compunit_symtab): Remove null checks for
9130 per_cu_data.
9131
9132 2020-02-26 Tom Tromey <tom@tromey.com>
9133
9134 * dwarf2/index-write.c (psym_index_map): Change type.
9135 (add_address_entry_worker, write_one_signatured_type)
9136 (recursively_count_psymbols, recursively_write_psymbols)
9137 (class debug_names, psyms_seen_size, write_gdbindex)
9138 (write_debug_names): Use partial_symtab, not dwarf2_psymtab.
9139
9140 2020-02-26 Aaron Merey <amerey@redhat.com>
9141
9142 * Makefile.in: Handle optional debuginfod support.
9143 * NEWS: Update.
9144 * README: Add --with-debuginfod summary.
9145 * config.in: Regenerate.
9146 * configure: Regenerate.
9147 * configure.ac: Handle optional debuginfod support.
9148 * debuginfod-support.c: debuginfod helper functions.
9149 * debuginfod-support.h: Ditto.
9150 * doc/gdb.texinfo: Add --with-debuginfod to configure options
9151 summary.
9152 * dwarf2/read.c (dwarf2_get_dwz_file): Query debuginfod servers
9153 when a dwz file cannot be found.
9154 * elfread.c (elf_symfile_read): Query debuginfod servers when a
9155 debuginfo file cannot be found.
9156 * source.c (open_source_file): Query debuginfod servers when a
9157 source file cannot be found.
9158 * top.c (print_gdb_configuration): Include
9159 --{with,without}-debuginfod in the output.
9160
9161 2020-02-26 Jérémie Galarneau <jeremie.galarneau@efficios.com>
9162
9163 * thread.c (thr_try_catch_cmd): Print thread name.
9164
9165 2020-02-26 Simon Marchi <simon.marchi@efficios.com>
9166
9167 * dwarf2/loc.h (dwarf2_fetch_die_loc_sect_off,
9168 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
9169 dwarf2_fetch_die_type_sect_off): Move to...
9170 * dwarf2/read.h (dwarf2_fetch_die_loc_sect_off,
9171 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
9172 dwarf2_fetch_die_type_sect_off): ... here.
9173 * dwarf2/read.c (dwarf2_fetch_die_loc_sect_off,
9174 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
9175 dwarf2_fetch_die_type_sect_off): Move doc to header file.
9176
9177 2020-02-26 Tom de Vries <tdevries@suse.de>
9178
9179 PR gdb/25603
9180 * symfile.c (set_initial_language): Exit-early if
9181 language_mode == language_mode_manual.
9182
9183 2020-02-25 Simon Marchi <simon.marchi@polymtl.ca>
9184
9185 * dwarf2/loc.h (dwarf2_read_addr_index): Move...
9186 * dwarf2/read.h (dwarf2_read_addr_index): ... here.
9187 * dwarf2/read.c (dwarf2_read_addr_index): Move doc to header.
9188
9189 2020-02-25 Andrew Burgess <andrew.burgess@embecosm.com>
9190
9191 * gdbtypes.c (create_array_type_with_stride): Handle negative
9192 array strides.
9193 * valarith.c (value_subscripted_rvalue): Likewise.
9194
9195 2020-02-25 Luis Machado <luis.machado@linaro.org>
9196
9197 * aarch64-tdep.c (aarch64_vnv_type): Fix comment typo.
9198
9199 2020-02-25 Simon Marchi <simon.marchi@polymtl.ca>
9200
9201 * loc.h (dwarf2_get_die_type): Move to...
9202 * read.h (dwarf2_get_die_type): ... here.
9203 * read.c (dwarf2_get_die_type): Move doc to header.
9204
9205 2020-02-25 Joel Brobecker <brobecker@adacore.com>
9206
9207 * copypright.py (EXCLUDE_LIST): Add 'gnulib/config.in' and
9208 'gnulib/Makefile.in' to the list.
9209
9210 2020-02-24 Tom Tromey <tom@tromey.com>
9211
9212 * dwarf2/read.h (struct type_unit_unshareable) <num_symtabs>:
9213 Remove.
9214 * dwarf2/read.c (dwarf2_cu::setup_type_unit_groups): Use
9215 XOBNEWVEC.
9216
9217 2020-02-24 Tom Tromey <tom@tromey.com>
9218
9219 * dwarf2/read.h (struct dwarf2_per_cu_data) <type_unit_group_p>:
9220 New method.
9221 * dwarf2/read.c (IS_TYPE_UNIT_GROUP): Remove.
9222 (dw2_do_instantiate_symtab, dw2_get_file_names)
9223 (build_type_psymtab_dependencies, load_full_type_unit): Update.
9224
9225 2020-02-24 Tom Tromey <tom@tromey.com>
9226
9227 * dwarf2read.c (dwarf2_build_psymtabs_hard): Use
9228 make_scoped_restore.
9229 (dwarf2_psymtab::read_symtab): Don't clear
9230 reading_partial_symbols.
9231
9232 2020-02-24 Tom de Vries <tdevries@suse.de>
9233
9234 PR gdb/25592
9235 * stack.c (iterate_over_block_locals): Handle LOC_CONST.
9236
9237 2020-02-24 Tom de Vries <tdevries@suse.de>
9238
9239 * tui/tui-layout.c (_initialize_tui_layout): Fix help messages for
9240 commands layout next/prev/regs.
9241
9242 2020-02-22 Tom Tromey <tom@tromey.com>
9243
9244 * dwarf2/loc.h (dwarf2_compile_expr_to_ax): Don't declare.
9245 * dwarf2/loc.c (dwarf2_compile_expr_to_ax): Now static.
9246
9247 2020-02-22 Tom Tromey <tom@tromey.com>
9248
9249 * tui/tui-data.h (TUI_DISASM_WIN): Cast to tui_disasm_window.
9250
9251 2020-02-22 Tom Tromey <tom@tromey.com>
9252
9253 * tui/tui-win.c (_initialize_tui_win): Add usage text.
9254 * tui/tui-stack.c (_initialize_tui_stack): Add usage text.
9255 * tui/tui-regs.c (_initialize_tui_regs): Add usage text.
9256 * tui/tui.c (_initialize_tui): Add usage text.
9257
9258 2020-02-22 Tom Tromey <tom@tromey.com>
9259
9260 * tui/tui-win.c (tui_set_focus_command)
9261 (tui_set_win_height_command): Use error_no_arg.
9262 (_initialize_tui_win): Update help text.
9263 (FOCUS_USAGE, WIN_HEIGHT_USAGE): Don't define.
9264
9265 2020-02-22 Tom Tromey <tom@tromey.com>
9266
9267 * tui/tui-layout.c (extract_display_start_addr): Rewrite.
9268 * tui/tui-disasm.h (struct tui_disasm_window)
9269 <display_start_addr>: Declare.
9270 * tui/tui-source.h (struct tui_source_window)
9271 <display_start_addr>: Declare.
9272 * tui/tui-winsource.h (struct tui_source_window_base)
9273 <show_source_line, display_start_addr>: New methods.
9274 <m_horizontal_offset, m_start_line_or_addr, m_gdbarch, m_content>:
9275 Rename and move to protected section.
9276 * tui/tui-winsource.c (tui_source_window_base::update_source_window)
9277 (tui_source_window_base::do_erase_source_content): Update.
9278 (tui_source_window_base::show_source_line): Now a method.
9279 (tui_source_window_base::show_source_content)
9280 (tui_source_window_base::tui_source_window_base)
9281 (tui_source_window_base::rerender)
9282 (tui_source_window_base::refill)
9283 (tui_source_window_base::do_scroll_horizontal)
9284 (tui_source_window_base::set_is_exec_point_at)
9285 (tui_source_window_base::update_breakpoint_info)
9286 (tui_source_window_base::update_exec_info): Update.
9287 * tui/tui-source.c (tui_source_window::set_contents)
9288 (tui_source_window::showing_source_p)
9289 (tui_source_window::do_scroll_vertical)
9290 (tui_source_window::location_matches_p)
9291 (tui_source_window::line_is_displayed): Update.
9292 (tui_source_window::display_start_addr): New method.
9293 * tui/tui-disasm.c (tui_disasm_window::set_contents)
9294 (tui_disasm_window::do_scroll_vertical)
9295 (tui_disasm_window::location_matches_p): Update.
9296 (tui_disasm_window::display_start_addr): New method.
9297
9298 2020-02-22 Tom Tromey <tom@tromey.com>
9299
9300 * NEWS: Add entry for gdb.register_window_type.
9301 * tui/tui-layout.h (window_factory): New typedef.
9302 (tui_register_window): Declare.
9303 * tui/tui-layout.c (saved_tui_windows): New global.
9304 (tui_apply_current_layout): Use it.
9305 (tui_register_window): New function.
9306 * python/python.c (do_start_initialization): Call
9307 gdbpy_initialize_tui.
9308 (python_GdbMethods): Add "register_window_type" function.
9309 * python/python-internal.h (gdbpy_register_tui_window)
9310 (gdbpy_initialize_tui): Declare.
9311 * python/py-tui.c: New file.
9312 * Makefile.in (SUBDIR_PYTHON_SRCS): Add py-tui.c.
9313
9314 2020-02-22 Tom Tromey <tom@tromey.com>
9315
9316 * tui/tui-io.c (do_tui_putc): Don't omit annotations.
9317
9318 2020-02-22 Tom Tromey <tom@tromey.com>
9319
9320 * tui/tui-win.c (tui_set_win_focus_to): Move to tui-data.c.
9321 * tui/tui-data.h (tui_set_win_with_focus): Don't declare.
9322 * tui/tui-data.c (tui_set_win_with_focus): Remove.
9323 (tui_set_win_focus_to): Move from tui-win.c.
9324
9325 2020-02-22 Tom Tromey <tom@tromey.com>
9326
9327 * tui/tui-layout.c (make_standard_window, get_locator_window): New
9328 functions.
9329 (known_window_types): New global.
9330 (tui_get_window_by_name): Reimplement.
9331 (initialize_known_windows): New function.
9332 (validate_window_name): Rewrite.
9333 (_initialize_tui_layout): Call initialize_known_windows.
9334
9335 2020-02-22 Tom Tromey <tom@tromey.com>
9336
9337 * tui/tui.h (enum tui_win_type) <LOCATOR_WIN, DATA_ITEM_WIN>:
9338 Remove constants.
9339 * tui/tui-winsource.h (struct tui_source_window_base)
9340 <tui_source_window_base>: Remove parameter.
9341 * tui/tui-winsource.c
9342 (tui_source_window_base::tui_source_window_base): Remove
9343 parameter.
9344 (tui_source_window_base::refill): Update.
9345 * tui/tui-stack.h (struct tui_locator_window)
9346 <tui_locator_window>: Update.
9347 * tui/tui-source.h (struct tui_source_window) <tui_source_window>:
9348 Default the constructor.
9349 * tui/tui-regs.h (struct tui_data_item_window)
9350 <tui_data_item_window>: Default the constructor.
9351 (struct tui_data_window) <tui_data_window>: Likewise.
9352 * tui/tui-disasm.h (struct tui_disasm_window) <tui_disasm_window>:
9353 Default the constructor.
9354 * tui/tui-data.h (struct tui_gen_win_info) <tui_gen_win_info>:
9355 Default the constructor.
9356 <type>: Remove.
9357 (struct tui_win_info) <tui_win_info>: Default the constructor.
9358 * tui/tui-data.c (tui_win_info::tui_win_info): Remove.
9359 * tui/tui-command.h (struct tui_cmd_window) <tui_cmd_window>:
9360 Default the constructor.
9361
9362 2020-02-22 Tom Tromey <tom@tromey.com>
9363
9364 * tui/tui-wingeneral.h (tui_make_all_invisible): Don't declare.
9365 * tui/tui-wingeneral.c (tui_make_all_invisible): Remove.
9366 * tui/tui-win.c (tui_resize_all): Don't call
9367 tui_delete_invisible_windows.
9368 * tui/tui-layout.c (tui_apply_current_layout): Delete windows when
9369 done.
9370 (tui_set_layout): Update.
9371 (tui_add_win_to_layout): Don't call tui_delete_invisible_windows.
9372 * tui/tui-data.h (tui_delete_invisible_windows): Don't declare.
9373 * tui/tui-data.c (tui_delete_invisible_windows): Remove.
9374
9375 2020-02-22 Tom Tromey <tom@tromey.com>
9376
9377 * tui/tui-win.c (tui_partial_win_by_name): Handle ambiguity
9378 correctly.
9379
9380 2020-02-22 Tom Tromey <tom@tromey.com>
9381
9382 * tui/tui-data.c (tui_next_win, tui_prev_win): Reimplement.
9383
9384 2020-02-22 Tom Tromey <tom@tromey.com>
9385
9386 * tui/tui-winsource.h (struct tui_source_window_iterator)
9387 <inner_iterator>: New etytypedef.
9388 <tui_source_window_iterator>: Take "end" parameter.
9389 <tui_source_window_iterator>: Take iterator.
9390 <operator*, advance>: Update.
9391 <m_iter>: Change type.
9392 <m_end>: New field.
9393 (struct tui_source_windows) <begin, end>: Update.
9394 * tui/tui-layout.c (tui_windows): New global.
9395 (tui_apply_current_layout): Clear tui_windows.
9396 (tui_layout_window::apply): Update tui_windows.
9397 * tui/tui-data.h (tui_windows): Declare.
9398 (all_tui_windows): Now inline function.
9399 (class tui_window_iterator, struct all_tui_windows): Remove.
9400
9401 2020-02-22 Tom Tromey <tom@tromey.com>
9402
9403 PR tui/17850:
9404 * tui/tui-win.c (tui_gen_win_info::max_width): New method.
9405 * tui/tui-layout.h (class tui_layout_base) <get_sizes>: Add
9406 "height" argument.
9407 (class tui_layout_window) <get_sizes>: Likewise.
9408 (class tui_layout_split) <tui_layout_split>: Add "vertical"
9409 argument.
9410 <get_sizes>: Add "height" argument.
9411 <m_vertical>: New field.
9412 * tui/tui-layout.c (tui_layout_split::clone): Update.
9413 (tui_layout_split::get_sizes): Add "height" argument.
9414 (tui_layout_split::adjust_size, tui_layout_split::apply): Update.
9415 (tui_new_layout_command): Parse "-horizontal".
9416 (_initialize_tui_layout): Update help string.
9417 (tui_layout_split::specification): Add "-horizontal" when needed.
9418 * tui/tui-layout.c (tui_layout_window::get_sizes): Add "height"
9419 argument.
9420 * tui/tui-data.h (struct tui_gen_win_info) <max_width, min_width>:
9421 New methods.
9422
9423 2020-02-22 Tom Tromey <tom@tromey.com>
9424
9425 * tui/tui-layout.h (enum tui_adjust_result): New.
9426 (class tui_layout_base) <adjust_size>: Return tui_adjust_result.
9427 (class tui_layout_window) <adjust_size>: Return
9428 tui_adjust_result. Rewrite.
9429 (class tui_layout_split) <adjust_size>: Return tui_adjust_result.
9430 * tui/tui-layout.c (tui_layout_split::adjust_size): Update.
9431
9432 2020-02-22 Tom Tromey <tom@tromey.com>
9433
9434 * tui/tui-layout.h (class tui_layout_split) <add_split>: Change
9435 parameter and return types.
9436 (class tui_layout_base) <specification>: Add "depth".
9437 (class tui_layout_window) <specification>: Add "depth".
9438 (class tui_layout_split) <specification>: Add "depth".
9439 * tui/tui-layout.c (tui_layout_split::add_split): Change parameter
9440 and return types.
9441 (tui_new_layout_command): Parse sub-layouts.
9442 (_initialize_tui_layout): Update help string.
9443 (tui_layout_window::specification): Add "depth".
9444 (add_layout_command): Update.
9445
9446 2020-02-22 Tom Tromey <tom@tromey.com>
9447
9448 * NEWS: Add "tui new-layout" item.
9449 * tui/tui-layout.c (add_layout_command): Return cmd_list_element.
9450 Add new-layout command to help text.
9451 (validate_window_name): New function.
9452 (tui_new_layout_command): New function.
9453 (_initialize_tui_layout): Register "new-layout".
9454 (tui_layout_window::specification): New method.
9455 (tui_layout_window::specification): New method.
9456 * tui/tui-layout.h (class tui_layout_base) <specification>: New
9457 method.
9458 (class tui_layout_window) <specification>: New method.
9459 (class tui_layout_split) <specification>: New method.
9460
9461 2020-02-22 Tom Tromey <tom@tromey.com>
9462
9463 * tui/tui.c (tui_enable): Call tui_set_initial_layout.
9464 * tui/tui-win.c (window_name_completer): Update comment.
9465 * tui/tui-layout.h (class tui_layout_base) <replace_window>:
9466 Declare method.
9467 (class tui_layout_window) <replace_window>: Likewise.
9468 (class tui_layout_split) <replace_window>: Likewise.
9469 (tui_set_layout): Don't declare.
9470 (tui_set_initial_layout): Declare function.
9471 * tui/tui-layout.c (layouts, applied_skeleton, src_regs_layout)
9472 (asm_regs_layout): New globals.
9473 (tui_current_layout, show_layout): Remove.
9474 (tui_set_layout, tui_add_win_to_layout): Rewrite.
9475 (find_layout, tui_apply_layout): New function.
9476 (layout_completer): Remove.
9477 (tui_next_layout): Reimplement.
9478 (tui_next_layout_command): New function.
9479 (tui_set_initial_layout, tui_prev_layout_command): New functions.
9480 (tui_regs_layout): Reimplement.
9481 (tui_regs_layout_command): New function.
9482 (extract_display_start_addr): Rewrite.
9483 (next_layout, prev_layout): Remove.
9484 (tui_layout_window::replace_window): New method.
9485 (tui_layout_split::replace_window): New method.
9486 (destroy_layout): New function.
9487 (layout_list): New global.
9488 (add_layout_command): New function.
9489 (initialize_layouts): Update.
9490 (tui_layout_command): New function.
9491 (_initialize_tui_layout): Install "layout" commands.
9492 * tui/tui-data.h (enum tui_layout_type): Remove.
9493 (tui_current_layout): Don't declare.
9494
9495 2020-02-22 Tom Tromey <tom@tromey.com>
9496
9497 * tui/tui-regs.c (tui_reg_layout): Remove.
9498 (tui_reg_command): Use tui_regs_layout.
9499 * tui/tui-layout.h (tui_reg_command): Declare.
9500 * tui/tui-layout.c (tui_reg_command): New function.
9501
9502 2020-02-22 Tom Tromey <tom@tromey.com>
9503
9504 * tui/tui.c (tui_rl_delete_other_windows): Call
9505 tui_remove_some_windows.
9506 * tui/tui-layout.h (class tui_layout_base) <remove_windows>:
9507 Declare method.
9508 (class tui_layout_window) <remove_windows>: New method.
9509 (class tui_layout_split) <remove_windows>: Declare.
9510 (tui_remove_some_windows): Declare.
9511 * tui/tui-layout.c (tui_remove_some_windows): New function.
9512 (tui_layout_split::remove_windows): New method.
9513
9514 2020-02-22 Tom Tromey <tom@tromey.com>
9515
9516 * tui/tui.c (tui_rl_change_windows): Call tui_next_layout.
9517 * tui/tui-layout.h (tui_next_layout): Declare.
9518 * tui/tui-layout.c (tui_next_layout): New function.
9519
9520 2020-02-22 Tom Tromey <tom@tromey.com>
9521
9522 * tui/tui-regs.c (tui_data_window::display_registers_from): Use
9523 correct coordinates.
9524
9525 2020-02-22 Tom Tromey <tom@tromey.com>
9526
9527 * tui/tui-layout.h (tui_add_win_to_layout): Add comment.
9528 * tui/tui-layout.c (tui_add_win_to_layout): Add assert. Remove
9529 DATA_WIN case.
9530
9531 2020-02-22 Tom Tromey <tom@tromey.com>
9532
9533 * tui/tui-disasm.c (tui_get_low_disassembly_address): Use
9534 TUI_DISASM_WIN, not tui_win_list.
9535
9536 2020-02-22 Tom Tromey <tom@tromey.com>
9537
9538 * valprint.c (generic_val_print_enum_1)
9539 (val_print_type_code_flags): Style member names.
9540 * rust-lang.c (val_print_struct, rust_print_enum)
9541 (rust_print_struct_def, rust_internal_print_type): Style member
9542 names.
9543 * p-valprint.c (pascal_object_print_value_fields): Style member
9544 names. Only call fprintf_symbol_filtered for static members.
9545 * m2-typeprint.c (m2_record_fields, m2_enum): Style member names.
9546 * f-valprint.c (f_val_print): Style member names.
9547 * f-typeprint.c (f_type_print_base): Style member names.
9548 * cp-valprint.c (cp_print_value_fields): Style member names. Only
9549 call fprintf_symbol_filtered for static members.
9550 (cp_print_class_member): Style member names.
9551 * c-typeprint.c (c_print_type_1, c_type_print_base_1): Style
9552 member names.
9553 * ada-valprint.c (ada_print_scalar): Style enum names.
9554 (ada_val_print_enum): Likewise.
9555 * ada-typeprint.c (print_enum_type): Style enum names.
9556
9557 2020-02-21 Tom Tromey <tom@tromey.com>
9558
9559 * psympriv.h (struct partial_symtab): Update comment.
9560
9561 2020-02-21 Tom Tromey <tromey@adacore.com>
9562
9563 * mips-tdep.h (mips_pc_is_mips16, mips_pc_is_micromips): Parameter
9564 type is CORE_ADDR.
9565
9566 2020-02-21 Tom de Vries <tdevries@suse.de>
9567
9568 PR gdb/25534
9569 * psymtab.c (partial_symtab::read_dependencies): Don't read dependency
9570 if dependencies[i]->user != NULL.
9571
9572 2020-02-21 Ali Tamur <tamur@google.com>
9573
9574 * dwarf2/read.c (dwarf2_name): Add null check.
9575
9576 2020-02-20 Tom Tromey <tom@tromey.com>
9577
9578 * dwarf2/read.c (dwarf2_find_containing_comp_unit): Use ">", not
9579 ">=", in binary search.
9580 (dwarf2_find_containing_comp_unit): New overload.
9581 (run_test): New self-test.
9582 (_initialize_dwarf2_read): Register new test.
9583
9584 2020-02-20 Nelson Chu <nelson.chu@sifive.com>
9585
9586 * riscv-tdep.c: Updated since the DECLARE_CSR is changed.
9587 * riscv-tdep.h: Likewise.
9588 * features/riscv/rebuild-csr-xml.sh: Generate the 64bit-csr.xml without
9589 rv32-only CSR.
9590 * features/riscv/64bit-csr.xml: Regenerated.
9591
9592 2020-02-20 Sergio Durigan Junior <sergiodj@redhat.com>
9593 Tom Tromey <tom@tromey.com>
9594
9595 * utils.c (fputs_maybe_filtered): Call 'stream->puts' instead
9596 of 'fputc_unfiltered'.
9597 (putchar_unfiltered): Call 'fputc_unfiltered'.
9598 (fputc_unfiltered): Call 'fputs_unfiltered'.
9599
9600 2020-02-20 Andrew Burgess <andrew.burgess@embecosm.com>
9601
9602 * config.in: Regenerate.
9603 * configure: Regenerate.
9604 * configure.ac: Add --with-python-libdir option.
9605 * main.c: Use WITH_PYTHON_LIBDIR.
9606
9607 2020-02-19 Tom Tromey <tom@tromey.com>
9608
9609 * symtab.c (general_symbol_info::compute_and_set_names): Use
9610 obstack_strndup. Simplify call to symbol_set_demangled_name.
9611
9612 2020-02-19 Simon Marchi <simon.marchi@efficios.com>
9613
9614 * dwarf2/read.c (allocate_signatured_type_table,
9615 allocate_dwo_unit_table, allocate_type_unit_groups_table,
9616 allocate_dwo_file_hash_table, allocate_dwp_loaded_cutus_table):
9617 Remove objfile parameter, update all callers.
9618
9619 2020-02-19 Doug Evans <dje@google.com>
9620
9621 PR rust/25535
9622 * rust-lang.c (rust_print_enum): Apply embedded_offset to
9623 rust_enum_variant calculation.
9624
9625 2020-02-19 Tom Tromey <tromey@adacore.com>
9626
9627 * mips-tdep.h (mips_pc_is_mips): Parameter type is CORE_ADDR.
9628
9629 2020-02-19 Tom Tromey <tromey@adacore.com>
9630
9631 * ada-lang.c (cache_symbol): Use obstack_strdup.
9632
9633 2020-02-19 Andrew Burgess <andrew.burgess@embecosm.com>
9634
9635 * configure: Regenerate.
9636
9637 2020-02-19 Tom Tromey <tromey@adacore.com>
9638
9639 * python/python.c (do_start_initialization): Use XNEWVEC. Remove
9640 NULL check.
9641
9642 2020-02-19 Maciej W. Rozycki <macro@wdc.com>
9643
9644 * NEWS: Mention RISC-V GNU/Linux GDBserver support.
9645
9646 2020-02-19 Andrew Burgess <andrew.burgess@embecosm.com>
9647
9648 * arch/riscv.c (struct riscv_gdbarch_features_hasher): Only define
9649 if GDBSERVER is not defined.
9650 (riscv_tdesc_cache): Likewise, also store const target_desc.
9651 (STATIC_IN_GDB): Define.
9652 (riscv_create_target_description): Update declaration with
9653 STATIC_IN_GDB.
9654 (riscv_lookup_target_description): New function, only define if
9655 GDBSERVER is not defined.
9656 * arch/riscv.h (riscv_create_target_description): Declare only
9657 when GDBSERVER is defined.
9658 (riscv_lookup_target_description): New declaration when GDBSERVER
9659 is not defined.
9660 * nat/riscv-linux-tdesc.c (riscv_linux_read_description): Rename to...
9661 (riscv_linux_read_features): ...this, and return
9662 riscv_gdbarch_features instead of target_desc.
9663 * nat/riscv-linux-tdesc.h: Include 'arch/riscv.h'.
9664 (riscv_linux_read_description): Rename to...
9665 (riscv_linux_read_features): ...this.
9666 * riscv-linux-nat.c (riscv_linux_nat_target::read_description):
9667 Update to use riscv_gdbarch_features and
9668 riscv_lookup_target_description.
9669 * riscv-tdep.c (riscv_find_default_target_description): Use
9670 riscv_lookup_target_description instead of
9671 riscv_create_target_description.
9672
9673 2020-02-18 Simon Marchi <simon.marchi@efficios.com>
9674
9675 * valprint.c (generic_val_print_enum_1): When printing a flag
9676 enum with value 0 and there is no enumerator with value 0, print
9677 just "0" instead of "(unknown: 0x0)".
9678
9679 2020-02-18 Simon Marchi <simon.marchi@efficios.com>
9680
9681 * valprint.c (generic_val_print_enum_1): Print unknown part of
9682 flag enum in hex.
9683
9684 2020-02-18 Simon Marchi <simon.marchi@efficios.com>
9685
9686 * dwarf2/read.c (update_enumeration_type_from_children): Allow
9687 flag enums to contain duplicate enumerators.
9688 * valprint.c (generic_val_print_enum_1): Update comment.
9689
9690 2020-02-18 Simon Marchi <simon.marchi@efficios.com>
9691
9692 * dwarf2/read.c: Include "count-one-bits.h".
9693 (update_enumeration_type_from_children): If an enumerator has
9694 multiple bits set, don't treat the enumeration as a "flag enum".
9695 * valprint.c (generic_val_print_enum_1): Assert that enumerators
9696 of flag enums have 0 or 1 bit set.
9697
9698 2020-02-18 Bernd Edlinger <bernd.edlinger@hotmail.de>
9699
9700 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Use an explicit
9701 conversion.
9702 * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise.
9703 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn): Likewise.
9704 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
9705 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Likewise.
9706 * s390-tdep.c (s390_displaced_step_copy_insn): Likewise.
9707
9708 2020-02-18 Simon Marchi <simon.marchi@efficios.com>
9709
9710 * MAINTAINERS: Change palmer@sifive.com to palmer@dabbelt.com.
9711
9712 2020-02-14 Simon Marchi <simon.marchi@efficios.com>
9713
9714 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Use
9715 displaced_step_closure_up.
9716 * aarch64-tdep.h (aarch64_displaced_step_copy_insn): Likewise.
9717 (struct displaced_step_closure_up):
9718 * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise.
9719 * amd64-tdep.h (amd64_displaced_step_copy_insn): Likewise.
9720 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn):
9721 Likewise.
9722 * gdbarch.sh (displaced_step_copy_insn): Likewise.
9723 * gdbarch.c, gdbarch.h: Re-generate.
9724 * i386-linux-tdep.c (i386_linux_displaced_step_copy_insn): Use
9725 displaced_step_closure_up.
9726 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
9727 * i386-tdep.h (i386_displaced_step_copy_insn): Likewise.
9728 * infrun.h (displaced_step_closure_up): New type alias.
9729 (struct displaced_step_inferior_state) <step_closure>: Change
9730 type to displaced_step_closure_up.
9731 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Use
9732 displaced_step_closure_up.
9733 * s390-tdep.c (s390_displaced_step_copy_insn): Likewise.
9734
9735 2020-02-14 Tom Tromey <tom@tromey.com>
9736
9737 * minidebug.c (gnu_debug_key): New global.
9738 (find_separate_debug_file_in_section): Use it.
9739
9740 2020-02-14 Simon Marchi <simon.marchi@efficios.com>
9741
9742 * gdbarch.sh (displaced_step_copy_insn): Change return type to an
9743 std::unique_ptr.
9744 * gdbarch.c: Re-generate.
9745 * gdbarch.h: Re-generate.
9746 * infrun.c (displaced_step_prepare_throw): Adjust to std::unique_ptr
9747 change.
9748 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Change return
9749 type to std::unique_ptr.
9750 * aarch64-tdep.h (aarch64_displaced_step_copy_insn): Likewise.
9751 * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise.
9752 * amd64-tdep.h (amd64_displaced_step_copy_insn): Likewise.
9753 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn): Likewise.
9754 * i386-linux-tdep.c (i386_linux_displaced_step_copy_insn): Likewise.
9755 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
9756 * i386-tdep.h (i386_displaced_step_copy_insn): Likewise.
9757 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Likewise.
9758 * s390-tdep.c (s390_displaced_step_copy_insn): Likewise.
9759
9760 2020-02-14 Simon Marchi <simon.marchi@efficios.com>
9761
9762 * infrun.c (get_displaced_step_closure_by_addr): Adjust to
9763 std::unique_ptr.
9764 (displaced_step_clear): Rename to...
9765 (displaced_step_reset): ... this. Just call displaced->reset ().
9766 (displaced_step_clear_cleanup): Rename to...
9767 (displaced_step_reset_cleanup): ... this.
9768 (displaced_step_prepare_throw): Adjust to std::unique_ptr.
9769 (displaced_step_fixup): Likewise.
9770 (resume_1): Likewise.
9771 (handle_inferior_event): Restore child's memory before calling
9772 displaced_step_fixup on the parent.
9773 * infrun.h (displaced_step_inferior_state) <reset>: Adjust
9774 to std::unique_ptr.
9775 <step_closure>: Change type to std::unique_ptr.
9776
9777 2020-02-14 Simon Marchi <simon.marchi@efficios.com>
9778
9779 * arm-tdep.c: Include count-one-bits.h.
9780 (cleanup_block_store_pc): Use count_one_bits.
9781 (cleanup_block_load_pc): Use count_one_bits.
9782 (arm_copy_block_xfer): Use count_one_bits.
9783 (thumb2_copy_block_xfer): Use count_one_bits.
9784 (thumb_copy_pop_pc_16bit): Use count_one_bits.
9785 * arch/arm-get-next-pcs.c: Include count-one-bits.h.
9786 (thumb_get_next_pcs_raw): Use count_one_bits.
9787 (arm_get_next_pcs_raw): Use count_one_bits_l.
9788 * arch/arm.c (bitcount): Remove.
9789 * arch/arm.h (bitcount): Remove.
9790
9791 2020-02-14 Tom Tromey <tromey@adacore.com>
9792
9793 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first):
9794 Update.
9795 * dwarf2/loc.h (call_site_find_chain): Return unique_xmalloc_ptr.
9796 * dwarf2/loc.c (call_site_find_chain_1): Return
9797 unique_xmalloc_ptr.
9798 (call_site_find_chain): Likewise.
9799
9800 2020-02-14 Richard Biener <rguenther@suse.de>
9801
9802 * dwarf2/read.c (lnp_state_machine::handle_special_opcode): Apply CSE
9803 on expression with division operators.
9804
9805 2020-02-13 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
9806
9807 * MAINTAINERS (Write After Approval): Adding myself.
9808
9809 2020-02-12 Tom Tromey <tom@tromey.com>
9810
9811 * event-loop.c (event_data, gdb_event, event_handler_func):
9812 Remove.
9813
9814 2020-02-12 Tom Tromey <tom@tromey.com>
9815
9816 * dwarf2/frame.c (dwarf2_frame_bfd_data): New global.
9817 (dwarf2_frame_objfile_data): Add comment.
9818 (find_comp_unit, set_comp_unit): New functions.
9819 (dwarf2_frame_find_fde): Use find_comp_unit.
9820 (dwarf2_build_frame_info): Use set_comp_unit.
9821
9822 2020-02-12 Tom Tromey <tom@tromey.com>
9823
9824 * dwarf2/frame.c (struct comp_unit) <objfile>: Remove.
9825 (comp_unit): Don't initialize objfile.
9826 (execute_cfa_program): Add text_offset parameter.
9827 (execute_cfa_program_test, dwarf2_fetch_cfa_info)
9828 (dwarf2_frame_cache): Update.
9829 (dwarf2_build_frame_info): Don't set "objfile" member.
9830
9831 2020-02-12 Tom Tromey <tom@tromey.com>
9832
9833 * dwarf2/frame.c (decode_frame_entry_1): Add gdbarch parameter.
9834 (decode_frame_entry): Likewise.
9835 (dwarf2_build_frame_info): Update.
9836
9837 2020-02-12 Tom Tromey <tom@tromey.com>
9838
9839 * dwarf2/frame.c (struct comp_unit) <obstack>: New member.
9840 (decode_frame_entry_1): Use the comp_unit obstack.
9841
9842 2020-02-12 Tom Tromey <tom@tromey.com>
9843
9844 * dwarf2/frame.c (struct comp_unit): Add initializers and
9845 constructor.
9846 (dwarf2_frame_objfile_data): Store a comp_unit.
9847 (dwarf2_frame_find_fde): Update.
9848 (dwarf2_build_frame_info): Use "new".
9849
9850 2020-02-12 Tom Tromey <tom@tromey.com>
9851
9852 * dwarf2/frame.c (struct dwarf2_fde_table): Remove.
9853 (dwarf2_fde_table): Typedef for std::vector.
9854 (dwarf2_frame_objfile_data): Remove the deleter. Now static.
9855 (dwarf2_frame_find_fde, add_fde, decode_frame_entry_1)
9856 (decode_frame_entry): Update.
9857 (dwarf2_build_frame_info): Use "new".
9858
9859 2020-02-12 Christian Biesinger <cbiesinger@google.com>
9860
9861 * arm-tdep.c (arm_gdbarch_init): Update.
9862 * arm-tdep.h (struct gdbarch_tdep) <have_fpa_registers,
9863 have_wmmx_registers, have_vfp_pseudos, have_neon_pseudos,
9864 have_neon, is_m>: Change to bool.
9865
9866 2020-02-12 Christian Biesinger <cbiesinger@google.com>
9867
9868 * arm-tdep.c (arm_dump_tdep): Print more fields of tdep.
9869
9870 2020-02-12 Tom Tromey <tom@tromey.com>
9871
9872 * dwarf2/loc.c (struct dwarf_expr_baton): Remove.
9873
9874 2020-02-12 Hannes Domani <ssbssa@yahoo.de>
9875
9876 * windows-tdep.c (struct windows_gdbarch_data): Add tib_ptr_type.
9877 (windows_get_tlb_type): Use windows_gdbarch_data->tib_ptr_type.
9878
9879 2020-02-11 Tom Tromey <tom@tromey.com>
9880
9881 * psymtab.h: Update comment.
9882
9883 2020-02-11 Tom Tromey <tom@tromey.com>
9884
9885 * gdb_obstack.h (struct auto_obstack): Use
9886 DISABLE_COPY_AND_ASSIGN.
9887
9888 2020-02-11 Tom Tromey <tom@tromey.com>
9889
9890 * dwarf2/frame.h (struct objfile): Don't forward declare.
9891
9892 2020-02-11 Christian Biesinger <cbiesinger@google.com>
9893
9894 * cris-tdep.c (cris_supply_gregset): Change signature to match
9895 what struct regset expects.
9896 (cris_regset): New struct.
9897 (fetch_core_registers): Remove.
9898 (cris_iterate_over_regset_sections): New function.
9899 (_initialize_cris_tdep): Don't call deprecated_add_core_fns.
9900 (cris_gdbarch_init): Call set_gdbarch_iterate_over_regset_sections.
9901
9902 2020-02-11 Christian Biesinger <cbiesinger@google.com>
9903
9904 * arch/arm.h (enum gdb_regnum): Add comment for the FP0..7
9905 registers.
9906
9907 2020-02-11 Christian Biesinger <cbiesinger@google.com>
9908
9909 * arm-tdep.c (arm_dump_tdep): Add \n in fprintf.
9910
9911 2020-02-11 Simon Marchi <simon.marchi@efficios.com>
9912
9913 * configure: Re-generate.
9914
9915 2020-02-11 Simon Marchi <simon.marchi@efficios.com>
9916
9917 * configure: Re-generate.
9918
9919 2020-02-11 Simon Marchi <simon.marchi@efficios.com>
9920
9921 * acinclude: Update warning.m4 path.
9922 * warning.m4: Move to gdbsupport.
9923
9924 2020-02-11 Tom Tromey <tromey@adacore.com>
9925
9926 * remote.c (remote_console_output): Update.
9927 * printcmd.c (printf_command): Update.
9928 * event-loop.c (gdb_wait_for_event): Update.
9929 * linux-nat.c (sigchld_handler): Update.
9930 * remote-sim.c (gdb_os_write_stdout): Update.
9931 (gdb_os_flush_stdout): Update.
9932 (gdb_os_flush_stderr): Update.
9933 (gdb_os_write_stderr): Update.
9934 * exceptions.c (print_exception): Update.
9935 * remote-fileio.c (remote_fileio_func_read): Update.
9936 (remote_fileio_func_write): Update.
9937 * tui/tui.c (tui_enable): Update.
9938 * tui/tui-interp.c (tui_interp::init): Update.
9939 * utils.c (init_page_info): Update.
9940 (putchar_unfiltered, fputc_unfiltered): Update.
9941 (gdb_flush): Update.
9942 (emit_style_escape): Update.
9943 (flush_wrap_buffer, fputs_maybe_filtered): Update.
9944 * ui-file.c (ui_file_isatty, ui_file_read, ui_file_write)
9945 (ui_file_write_async_safe, ui_file_flush, ui_file_puts): Remove.
9946 (stderr_file::write): Update.
9947 (stderr_file::puts): Update.
9948 * ui-file.h (ui_file_isatty, ui_file_write)
9949 (ui_file_write_async_safe, ui_file_read, ui_file_flush)
9950 (ui_file_puts): Don't declare.
9951
9952 2020-02-10 Tom de Vries <tdevries@suse.de>
9953
9954 * dwarf2/read.c (process_psymtab_comp_unit_reader): Cast concat NULL
9955 sentinel to char *.
9956
9957 2020-02-09 Tom de Vries <tdevries@suse.de>
9958
9959 * dwarf2read.c (process_psymtab_comp_unit_reader): Append CU offset to
9960 filename if it matches "<artificial>".
9961
9962 2020-02-09 Hannes Domani <ssbssa@yahoo.de>
9963
9964 * windows-tdep.c (struct enum_value_name): New struct.
9965 (create_enum): New function.
9966 (windows_get_siginfo_type): Create and use enum types.
9967
9968 2020-02-09 Hannes Domani <ssbssa@yahoo.de>
9969
9970 * NEWS: Mention $_siginfo support for Windows.
9971 * windows-nat.c (handle_exception): Set siginfo_er.
9972 (windows_nat_target::mourn_inferior): Reset siginfo_er.
9973 (windows_xfer_siginfo): New function.
9974 (windows_nat_target::xfer_partial): Call windows_xfer_siginfo.
9975 * windows-tdep.c (struct windows_gdbarch_data): New struct.
9976 (init_windows_gdbarch_data): New function.
9977 (get_windows_gdbarch_data): New function.
9978 (windows_get_siginfo_type): New function.
9979 (windows_init_abi): Register windows_get_siginfo_type.
9980 (_initialize_windows_tdep): Register init_windows_gdbarch_data.
9981
9982 2020-02-08 Tom Tromey <tom@tromey.com>
9983
9984 * dwarf2/read.c (class cutu_reader) <cutu_reader,
9985 init_tu_and_read_dwo_dies>: Remove "keep" parameter.
9986 <keep>: Declare method.
9987 <m_keep>: Remove member.
9988 <~cutu_reader>: Remove.
9989 (cutu_reader::init_tu_and_read_dwo_dies): Update.
9990 (cutu_reader::cutu_reader): Update.
9991 (cutu_reader::keep): Rename from ~cutu_reader.
9992 (process_psymtab_comp_unit, build_type_psymtabs_1)
9993 (process_skeletonless_type_unit, load_partial_comp_unit)
9994 (load_full_comp_unit, dwarf2_read_addr_index)
9995 (read_signatured_type): Update.
9996
9997 2020-02-08 Tom Tromey <tom@tromey.com>
9998
9999 * dwarf2/read.c (process_psymtab_comp_unit_reader): Remove
10000 "want_partial_unit" parameter.
10001 (process_psymtab_comp_unit): Change want_partial_unit to bool.
10002 Inline check for DW_TAG_partial_unit.
10003 (dwarf2_build_psymtabs_hard, scan_partial_symbols): Update.
10004
10005 2020-02-08 Tom Tromey <tom@tromey.com>
10006
10007 * dwarf2/read.c (read_n_bytes, read_direct_string): Move to
10008 read.c.
10009 * dwarf2/leb.h (read_n_bytes, read_direct_string): Move from
10010 read.c.
10011
10012 2020-02-08 Tom Tromey <tom@tromey.com>
10013
10014 * dwarf2/read.c (read_address): Move to comp-unit.c.
10015 (dwarf2_rnglists_process, dwarf2_ranges_process)
10016 (read_attribute_value, dwarf_decode_lines_1)
10017 (var_decode_location, decode_locdesc): Update.
10018 * dwarf2/comp-unit.c (comp_unit_head::read_address): Move from
10019 read.c. Remove "cu" parameter.
10020 * dwarf2/comp-unit.h (struct comp_unit_head) <read_address>: New
10021 method.
10022
10023 2020-02-08 Tom Tromey <tom@tromey.com>
10024
10025 * dwarf2/read.c (read_attribute_value, read_indirect_string)
10026 (read_indirect_line_string): Update.
10027 * dwarf2/comp-unit.c (read_offset): Remove.
10028 (read_comp_unit_head): Update.
10029 * dwarf2/comp-unit.h (struct comp_unit_head) <read_offset>: New
10030 method.
10031 (read_offset): Don't declare.
10032
10033 2020-02-08 Tom Tromey <tom@tromey.com>
10034
10035 * Makefile.in (COMMON_SFILES): Add dwarf2/comp-unit.c.
10036 * dwarf2/read.c (struct comp_unit_head): Move to
10037 dwarf2/comp-unit.h.
10038 (enum class rcuh_kind): Move to comp-unit.h.
10039 (get_cu_length, offset_in_cu_p): Now methods on comp_unit_head.
10040 (read_comp_unit_head, error_check_comp_unit_head)
10041 (read_and_check_comp_unit_head): Move to comp-unit.c.
10042 (read_offset, dwarf_unit_type_name): Likewise.
10043 (create_debug_type_hash_table, read_cutu_die_from_dwo)
10044 (cutu_reader::cutu_reader, read_call_site_scope)
10045 (find_partial_die, follow_die_offset): Update.
10046 * dwarf2/comp-unit.h: New file, from dwarf2read.c.
10047
10048 2020-02-08 Tom Tromey <tom@tromey.com>
10049
10050 * dwarf2/read.c (read_offset_1): Move to leb.c.
10051 (read_abbrev_offset, read_offset, dwarf_decode_line_header)
10052 (dwarf_decode_macro_bytes): Update.
10053 * dwarf2/leb.c (read_offset): Rename; move from read.c.
10054 * dwarf2/leb.h (read_offset): Declare.
10055
10056 2020-02-08 Tom Tromey <tom@tromey.com>
10057
10058 * dwarf2/read.c (dwarf2_section_size): Remove.
10059 (error_check_comp_unit_head, dwarf2_symbol_mark_computed):
10060 Update.
10061 * dwarf2/section.h (struct dwarf2_section_info) <get_size>: New method.
10062
10063 2020-02-08 Tom Tromey <tom@tromey.com>
10064
10065 * dwarf2/read.c (read_initial_length): Move to leb.c.
10066 * dwarf2/leb.h (read_initial_length): Declare.
10067 * dwarf2/leb.c (read_initial_length): Move from read.c. Add
10068 handle_nonstd parameter.
10069 * dwarf2/frame.c (read_initial_length): Remove.
10070 (decode_frame_entry_1): Update.
10071
10072 2020-02-08 Tom Tromey <tom@tromey.com>
10073
10074 * dwarf2/loc.c (dwarf2_find_location_expression)
10075 (dwarf_evaluate_loc_desc::get_tls_address)
10076 (dwarf_evaluate_loc_desc::push_dwarf_reg_entry_value)
10077 (rw_pieced_value, dwarf2_evaluate_loc_desc_full)
10078 (dwarf2_locexpr_baton_eval, dwarf2_evaluate_property)
10079 (dwarf2_compile_property_to_c)
10080 (dwarf2_loc_desc_get_symbol_read_needs)
10081 (dwarf2_compile_expr_to_ax, locexpr_describe_location)
10082 (locexpr_tracepoint_var_ref, locexpr_generate_c_location)
10083 (loclist_describe_location, loclist_tracepoint_var_ref)
10084 (loclist_generate_c_location): Update.
10085 * compile/compile-loc2c.c (do_compile_dwarf_expr_to_c): Update.
10086 * dwarf2/loc.h (dwarf2_per_cu_objfile, dwarf2_per_cu_addr_size)
10087 (dwarf2_per_cu_ref_addr_size, dwarf2_per_cu_offset_size)
10088 (dwarf2_per_cu_text_offset, dwarf2_version): Don't declare.
10089 * dwarf2/read.c (dwarf2_per_cu_data::objfile)
10090 (dwarf2_per_cu_data::addr_size)
10091 (dwarf2_per_cu_data::ref_addr_size)
10092 (dwarf2_per_cu_data::text_offset)
10093 (dwarf2_per_cu_data::addr_type): Now methods.
10094 (per_cu_header_read_in): Make per_cu "const".
10095 (dwarf2_version): Remove.
10096 (dwarf2_per_cu_data::int_type): Now a method.
10097 (dwarf2_per_cu_data::_addr_sized_int_type): Likewise.
10098 (set_die_type, read_array_type, read_subrange_index_type)
10099 (read_tag_string_type, read_subrange_type): Update.
10100 * dwarf2/read.h (struct dwarf2_per_cu_data) <addr_size,
10101 offset_size, ref_addr_size, text_offset, addr_type, version,
10102 objfile, int_type, addr_sized_int_type>: Declare methods.
10103
10104 2020-02-08 Tom Tromey <tom@tromey.com>
10105
10106 * dwarf2/read.h (struct dwarf2_per_cu_data) <imported_symtabs>:
10107 Move earlier.
10108
10109 2020-02-08 Tom Tromey <tom@tromey.com>
10110
10111 * dwarf2/read.h (dwarf_line_debug): Declare.
10112 * Makefile.in (COMMON_SFILES): Add dwarf2/line-header.c.
10113 * dwarf2/read.c: Move line_header code to new files.
10114 (dwarf_line_debug): No longer static.
10115 * dwarf2/line-header.c: New file.
10116 * dwarf2/line-header.h: New file.
10117
10118 2020-02-08 Tom Tromey <tom@tromey.com>
10119
10120 * dwarf2/read.c (struct line_header) <file_full_name,
10121 file_file_name>: Return unique_xmalloc_ptr.
10122 (line_header::file_file_name): Update.
10123 (line_header::file_full_name): Update.
10124 (dw2_get_file_names_reader): Update.
10125 (macro_start_file): Update.
10126
10127 2020-02-08 Tom Tromey <tom@tromey.com>
10128
10129 * dwarf2/read.c (struct line_header) <file_full_name,
10130 file_file_name>: Declare methods.
10131 (dw2_get_file_names_reader): Update.
10132 (file_file_name): Now a method.
10133 (file_full_name): Likewise.
10134 (macro_start_file): Update.
10135
10136 2020-02-08 Tom Tromey <tom@tromey.com>
10137
10138 * dwarf2/read.c (dwarf_always_disassemble)
10139 (show_dwarf_always_disassemble): Move to loc.c.
10140 (_initialize_dwarf2_read): Move "always-disassemble" registration
10141 to loc.c.
10142 * dwarf2/read.h (dwarf_always_disassemble): Don't declare.
10143 * dwarf2/loc.c (dwarf_always_disassemble): Move from read.c. Now
10144 static.
10145 (show_dwarf_always_disassemble): Move from read.c.
10146 (_initialize_dwarf2loc): Move always-disassemble from read.c.
10147
10148 2020-02-08 Tom Tromey <tom@tromey.com>
10149
10150 * dwarf2/read.c (~dwarf2_per_objfile): Update.
10151 (create_quick_file_names_table): Return htab_up.
10152 (dw2_get_file_names_reader, dw2_forget_cached_source_info):
10153 Update.
10154 * dwarf2/read.h (struct dwarf2_per_objfile)
10155 <quick_file_names_table>: Now htab_up.
10156
10157 2020-02-08 Tom Tromey <tom@tromey.com>
10158
10159 * dwarf2/abbrev.c (abbrev_table::read): Simplify.
10160
10161 2020-02-08 Tom Tromey <tom@tromey.com>
10162
10163 * dwarf2/abbrev.c (abbrev_table): Move constructor from header.
10164 Rewrite.
10165 (abbrev_table::add_abbrev, abbrev_table::lookup_abbrev): Rewrite.
10166 * dwarf2/abbrev.h (struct abbrev_info) <next>: Remove.
10167 (abbrev_table::abbrev_table): No longer inline.
10168 (ABBREV_HASH_SIZE): Remove.
10169 (abbrev_table::m_abbrevs): Now an htab_up.
10170
10171 2020-02-08 Tom Tromey <tom@tromey.com>
10172
10173 * dwarf2/read.c (read_cutu_die_from_dwo): Update.
10174 (cutu_reader): Update.
10175 (build_type_psymtabs_1): Update.
10176 * dwarf2/abbrev.c (abbrev_table::read): Rename.
10177 (abbrev_table::alloc_abbrev): Update.
10178 * dwarf2/abbrev.h (abbrev_table_up): Move earlier.
10179 (abbrev_table::read): New static method, renamed from
10180 abbrev_table_read_table.
10181 (abbrev_table::alloc_abbrev)
10182 (abbrev_table::add_abbrev): Now private.
10183 (abbrev_table::abbrev_table): Now private.
10184 (abbrev_table::m_abbrev_obstack): Now private. Rename.
10185
10186 2020-02-08 Tom Tromey <tom@tromey.com>
10187
10188 * dwarf2/read.c (set_die_type, get_die_type_at_offset): Update.
10189 * dwarf2/read.h (struct dwarf2_per_objfile) <die_type_hash>: Now
10190 htab_up.
10191
10192 2020-02-08 Tom Tromey <tom@tromey.com>
10193
10194 * dwarf2/read.c (struct dwp_file) <loaded_cus, loaded_tus>: Now
10195 htab_up.
10196 (lookup_dwo_unit_in_dwp): Update.
10197 (allocate_dwp_loaded_cutus_table): Return htab_up. Don't allocate
10198 on obstack.
10199
10200 2020-02-08 Tom Tromey <tom@tromey.com>
10201
10202 * dwarf2/read.c (allocate_dwo_file_hash_table): Don't allocate on
10203 obstack.
10204
10205 2020-02-08 Tom Tromey <tom@tromey.com>
10206
10207 * dwarf2/read.c (~dwarf2_per_objfile): Don't delete
10208 line_header_hash.
10209 (handle_DW_AT_stmt_list): Update. Don't allocate on obstack.
10210 * dwarf2/read.h (struct dwarf2_per_objfile) <line_header_hash>:
10211 Change type to htab_up.
10212
10213 2020-02-08 Tom Tromey <tom@tromey.com>
10214
10215 * dwarf2/read.c (allocate_type_unit_groups_table): Return
10216 htab_up. Don't allocate on obstack.
10217 (get_type_unit_group, dwarf2_build_psymtabs_hard): Update.
10218 * dwarf2/read.h (struct dwarf2_per_objfile) <type_unit_groups>:
10219 Change type to htab_up.
10220
10221 2020-02-08 Tom Tromey <tom@tromey.com>
10222
10223 * dwarf2/read.h (struct dwarf2_per_objfile) <signatured_types>:
10224 Change type to htab_up.
10225 * dwarf2/read.c (create_signatured_type_table_from_index)
10226 (create_signatured_type_table_from_debug_names)
10227 (create_all_type_units, add_type_unit)
10228 (lookup_dwo_signatured_type, lookup_signatured_type)
10229 (process_skeletonless_type_unit): Update.
10230 (create_debug_type_hash_table, create_debug_types_hash_table):
10231 Change type of types_htab.
10232 (allocate_signatured_type_table, allocate_dwo_unit_table): Return
10233 htab_up. Don't allocate on obstack.
10234 (create_cus_hash_table): Change type of cus_htab parameter.
10235 (struct dwo_file) <cus, tus>: Now htab_up.
10236 (lookup_dwo_signatured_type, lookup_dwo_cutu)
10237 (process_dwo_file_for_skeletonless_type_units, lookup_dwo_cutu)
10238 (queue_and_load_all_dwo_tus): Update.
10239 * dwarf2/index-write.c (write_gdbindex): Update.
10240 (write_debug_names): Update.
10241
10242 2020-02-08 Tom Tromey <tom@tromey.com>
10243
10244 * dwarf2/read.h (struct dwarf2_queue_item): Move from
10245 dwarf2/read.c. Remove "next" member. Add constructor ntad
10246 destructor.
10247 (struct dwarf2_per_objfile) <queue>: New member.
10248 * dwarf2/read.c (struct dwarf2_queue_item): Move to
10249 dwarf2/read.h.
10250 (dwarf2_queue, dwarf2_queue_tail): Remove.
10251 (class dwarf2_queue_guard): Add parameter to constructor. Use
10252 DISABLE_COPY_AND_ASSIGN.
10253 <m_per_objfile>: New member.
10254 <~dwarf2_queue_guard>: Rewrite.
10255 (dw2_do_instantiate_symtab, queue_comp_unit, process_queue):
10256 Update.
10257 (~dwarf2_queue_item): New.
10258
10259 2020-02-08 Tom Tromey <tom@tromey.com>
10260
10261 * dwarf2/read.c (struct die_info) <has_children>: New member.
10262 (dw2_get_file_names_reader): Remove has_children.
10263 (dw2_get_file_names): Update.
10264 (read_cutu_die_from_dwo): Remove has_children.
10265 (cutu_reader::init_tu_and_read_dwo_dies)
10266 (cutu_reader::cutu_reader): Update.
10267 (process_psymtab_comp_unit_reader, build_type_psymtabs_reader):
10268 Remove has_children.
10269 (build_type_psymtabs_1, process_skeletonless_type_unit)
10270 (load_partial_comp_unit, load_full_comp_unit): Update.
10271 (create_dwo_cu_reader): Remove has_children.
10272 (create_cus_hash_table, read_die_and_children): Update.
10273 (read_full_die_1,read_full_die): Remove has_children.
10274 (read_signatured_type): Update.
10275 (class cutu_reader) <has_children>: Remove.
10276
10277 2020-02-08 Tom Tromey <tom@tromey.com>
10278
10279 * dwarf2/expr.c: Rename from dwarf2expr.c.
10280 * dwarf2/expr.h: Rename from dwarf2expr.h.
10281 * dwarf2/frame-tailcall.c: Rename from dwarf2-frame-tailcall.c.
10282 * dwarf2/frame-tailcall.h: Rename from dwarf2-frame-tailcall.h.
10283 * dwarf2/frame.c: Rename from dwarf2-frame.c.
10284 * dwarf2/frame.h: Rename from dwarf2-frame.h.
10285 * dwarf2/index-cache.c: Rename from dwarf-index-cache.c.
10286 * dwarf2/index-cache.h: Rename from dwarf-index-cache.h.
10287 * dwarf2/index-common.c: Rename from dwarf-index-common.c.
10288 * dwarf2/index-common.h: Rename from dwarf-index-common.h.
10289 * dwarf2/index-write.c: Rename from dwarf-index-write.c.
10290 * dwarf2/index-write.h: Rename from dwarf-index-write.h.
10291 * dwarf2/loc.c: Rename from dwarf2loc.c.
10292 * dwarf2/loc.h: Rename from dwarf2loc.h.
10293 * dwarf2/read.c: Rename from dwarf2read.c.
10294 * dwarf2/read.h: Rename from dwarf2read.h.
10295 * dwarf2/abbrev.c, aarch64-tdep.c, alpha-tdep.c,
10296 amd64-darwin-tdep.c, arc-tdep.c, arm-tdep.c, bfin-tdep.c,
10297 compile/compile-c-symbols.c, compile/compile-cplus-symbols.c,
10298 compile/compile-loc2c.c, cris-tdep.c, csky-tdep.c, findvar.c,
10299 gdbtypes.c, guile/scm-type.c, h8300-tdep.c, hppa-bsd-tdep.c,
10300 hppa-linux-tdep.c, i386-darwin-tdep.c, i386-linux-tdep.c,
10301 i386-tdep.c, iq2000-tdep.c, m32c-tdep.c, m68hc11-tdep.c,
10302 m68k-tdep.c, microblaze-tdep.c, mips-tdep.c, mn10300-tdep.c,
10303 msp430-tdep.c, nds32-tdep.c, nios2-tdep.c, or1k-tdep.c,
10304 riscv-tdep.c, rl78-tdep.c, rs6000-tdep.c, rx-tdep.c, s12z-tdep.c,
10305 s390-tdep.c, score-tdep.c, sh-tdep.c, sparc-linux-tdep.c,
10306 sparc-tdep.c, sparc64-linux-tdep.c, sparc64-tdep.c, tic6x-tdep.c,
10307 tilegx-tdep.c, v850-tdep.c, xstormy16-tdep.c, xtensa-tdep.c:
10308 Update.
10309 * Makefile.in (COMMON_SFILES): Update.
10310 (HFILES_NO_SRCDIR): Update.
10311
10312 2020-02-08 Tom Tromey <tom@tromey.com>
10313
10314 * dwarf2read.c (struct die_reader_specs) <comp_dir>: Remove.
10315 (init_cu_die_reader, read_cutu_die_from_dwo): Update.
10316
10317 2020-02-08 Tom Tromey <tom@tromey.com>
10318
10319 * dwarf2read.h (struct die_info): Don't declare.
10320
10321 2020-02-08 Tom Tromey <tom@tromey.com>
10322
10323 * dwarf2read.h (die_info_ptr): Remove typedef.
10324
10325 2020-02-08 Tom Tromey <tom@tromey.com>
10326
10327 * dwarf2read.c (read_call_site_scope)
10328 (handle_data_member_location, dwarf2_add_member_fn)
10329 (mark_common_block_symbol_computed, read_common_block)
10330 (attr_to_dynamic_prop, partial_die_info::read)
10331 (var_decode_location, dwarf2_fetch_die_loc_sect_off)
10332 (dwarf2_symbol_mark_computed, set_die_type): Update.
10333 * dwarf2/attribute.h (struct attribute) <form_is_block>: Declare
10334 method.
10335 (attr_form_is_block): Don't declare.
10336 * dwarf2/attribute.c (attribute::form_is_block): Now a method.
10337
10338 2020-02-08 Tom Tromey <tom@tromey.com>
10339
10340 * dwarf2read.c (dwarf2_find_base_address, )
10341 (read_call_site_scope, rust_containing_type)
10342 (dwarf2_get_pc_bounds, dwarf2_record_block_ranges)
10343 (handle_data_member_location, dwarf2_add_member_fn)
10344 (get_alignment, read_structure_type, process_structure_scope)
10345 (mark_common_block_symbol_computed, read_common_block)
10346 (read_tag_string_type, attr_to_dynamic_prop, read_subrange_type)
10347 (partial_die_info::read, read_attribute_value, new_symbol)
10348 (lookup_die_type, dwarf2_get_ref_die_offset)
10349 (dwarf2_get_attr_constant_value, follow_die_ref_or_sig)
10350 (dwarf2_fetch_die_loc_sect_off, get_DW_AT_signature_type)
10351 (dwarf2_symbol_mark_computed): Update.
10352 * dwarf2/attribute.h (struct attribute) <value_as_address,
10353 form_is_section_offset, form_is_constant, form_is_ref>: Declare
10354 methods.
10355 (value_as_address, attr_form_is_section_offset)
10356 (attr_form_is_constant, attr_form_is_ref): Don't declare.
10357 * dwarf2/attribute.c (attribute::value_as_address)
10358 (attribute::form_is_section_offset, attribute::form_is_constant)
10359 (attribute::form_is_ref): Now methods.
10360
10361 2020-02-08 Tom Tromey <tom@tromey.com>
10362
10363 * dwarf2read.c (struct attribute, DW_STRING)
10364 (DW_STRING_IS_CANONICAL, DW_UNSND, DW_BLOCK, DW_SND, DW_ADDR)
10365 (DW_SIGNATURE, struct dwarf_block, attr_value_as_address)
10366 (attr_form_is_block, attr_form_is_section_offset)
10367 (attr_form_is_constant, attr_form_is_ref): Move.
10368 * dwarf2/attribute.h: New file.
10369 * dwarf2/attribute.c: New file, from dwarf2read.c.
10370 * Makefile.in (COMMON_SFILES): Add dwarf2/attribute.c.
10371
10372 2020-02-08 Tom Tromey <tom@tromey.com>
10373
10374 * dwarf2read.c (abbrev_table_up, struct abbrev_info)
10375 (struct attr_abbrev, ABBREV_HASH_SIZE, struct abbrev_table):
10376 Move.
10377 (read_cutu_die_from_dwo, build_type_psymtabs_1): Update.
10378 (abbrev_table::alloc_abbrev, abbrev_table::add_abbrev)
10379 (abbrev_table::lookup_abbrev, abbrev_table_read_table): Move to
10380 abbrev.c.
10381 * dwarf2/abbrev.h: New file.
10382 * dwarf2/abbrev.c: New file, from dwarf2read.c.
10383 * Makefile.in (COMMON_SFILES): Add dwarf2/abbrev.c.
10384
10385 2020-02-08 Tom Tromey <tom@tromey.com>
10386
10387 * dwarf2read.c (dwarf2_section_buffer_overflow_complaint)
10388 (dwarf2_section_size, dwarf2_get_section_info)
10389 (create_signatured_type_table_from_debug_names)
10390 (create_addrmap_from_aranges, read_debug_names_from_section)
10391 (get_gdb_index_contents_from_section, read_comp_unit_head)
10392 (error_check_comp_unit_head, read_abbrev_offset)
10393 (create_debug_type_hash_table, init_cu_die_reader)
10394 (read_cutu_die_from_dwo, dwarf2_build_psymtabs_hard)
10395 (read_comp_units_from_section, create_cus_hash_table)
10396 (create_dwp_hash_table, create_dwo_unit_in_dwp_v1)
10397 (create_dwp_v2_section, dwarf2_rnglists_process)
10398 (dwarf2_ranges_process, read_die_and_siblings, read_full_die)
10399 (abbrev_table_read_table, read_indirect_string_at_offset_from)
10400 (read_indirect_string_from_dwz, read_addr_index_1)
10401 (read_str_index, dwarf_decode_line_header, skip_form_bytes)
10402 (dwarf_decode_macro_bytes, dwarf_decode_macros)
10403 (fill_in_loclist_baton): Update.
10404 * dwarf2/section.h (struct dwarf2_section_info) <get_name,
10405 get_containing_section, get_bfd_owner, get_bfd_section,
10406 get_file_name, get_id, get_flags, empty, read>: Declare methods.
10407 (dwarf2_read_section, get_section_name, get_section_file_name)
10408 (get_containing_section, get_section_bfd_owner)
10409 (get_section_bfd_section, get_section_name, get_section_file_name)
10410 (get_section_id, get_section_flags, dwarf2_section_empty_p): Don't
10411 declare.
10412 * dwarf2/section.c (dwarf2_section_info::get_containing_section)
10413 (dwarf2_section_info::get_bfd_owner)
10414 (dwarf2_section_info::get_bfd_section)
10415 (dwarf2_section_info::get_name)
10416 (dwarf2_section_info::get_file_name, dwarf2_section_info::get_id)
10417 (dwarf2_section_info::get_flags, dwarf2_section_info::empty)
10418 (dwarf2_section_info::read): Now methods.
10419 * dwarf-index-write.c (class debug_names): Update.
10420
10421 2020-02-08 Tom Tromey <tom@tromey.com>
10422
10423 * dwarf2read.h (struct dwarf2_section_info, dwarf2_read_section):
10424 Move to dwarf2/section.h.
10425 * dwarf2read.c (get_containing_section, get_section_bfd_owner)
10426 (get_section_bfd_section, get_section_name)
10427 (get_section_file_name, get_section_id, get_section_flags)
10428 (dwarf2_section_empty_p, dwarf2_read_section): Moe to
10429 dwarf2/section.c.
10430 * dwarf2/section.h: New file.
10431 * dwarf2/section.c: New file, from dwarf2read.c.
10432 * Makefile.in (COMMON_SFILES): Add dwarf2/section.c.
10433
10434 2020-02-08 Tom Tromey <tom@tromey.com>
10435
10436 * dwarf2read.h (read_unsigned_leb128): Don't declare.
10437 * dwarf2read.c (read_1_byte, read_1_signed_byte, read_2_bytes)
10438 (read_2_signed_bytes, read_3_bytes, read_4_bytes)
10439 (read_4_signed_bytes, read_8_bytes): Move to dwarf2/leb.h.
10440 (read_unsigned_leb128, read_signed_leb128): Move to dwarf2/leb.c.
10441 * dwarf2/leb.h: New file, from dwarf2read.c.
10442 * dwarf2/leb.c: New file, from dwarf2read.c.
10443 * dwarf2-frame.c (read_1_byte, read_4_bytes, read_8_bytes):
10444 Remove.
10445 * Makefile.in (CONFIG_SRC_SUBDIR): Add dwarf2.
10446 (COMMON_SFILES): Add dwarf2/leb.c.
10447
10448 2020-02-08 Joel Brobecker <brobecker@adacore.com>
10449
10450 GDB 9.1 released.
10451
10452 2020-02-05 Iain Buclaw <ibuclaw@gdcproject.org>
10453
10454 PR gdb/25190:
10455 * gdb/remote-sim.c (gdb_os_write_stderr): Update.
10456 * gdb/remote.c (remote_console_output): Update.
10457 * gdb/ui-file.c (fputs_unfiltered): Rename to...
10458 (ui_file_puts): ...this.
10459 * gdb/ui-file.h (ui_file_puts): Add declaration.
10460 * gdb/utils.c (emit_style_escape): Update.
10461 (flush_wrap_buffer): Update.
10462 (fputs_maybe_filtered): Update.
10463 (fputs_unfiltered): Add function.
10464
10465 2020-02-05 Iain Buclaw <ibuclaw@gdcproject.org>
10466
10467 * gdb/event-loop.c (gdb_wait_for_event): Update.
10468 * gdb/printcmd.c (printf_command): Update.
10469 * gdb/remote-fileio.c (remote_fileio_func_write): Update.
10470 * gdb/remote-sim.c (gdb_os_flush_stdout): Update.
10471 (gdb_os_flush_stderr): Update.
10472 * gdb/remote.c (remote_console_output): Update.
10473 * gdb/ui-file.c (gdb_flush): Rename to...
10474 (ui_file_flush): ...this.
10475 (stderr_file::write): Update.
10476 (stderr_file::puts): Update.
10477 * gdb/ui-file.h (gdb_flush): Rename to...
10478 (ui_file_flush): ...this.
10479 * gdb/utils.c (gdb_flush): Add function.
10480 * gdb/utils.h (gdb_flush): Add declaration.
10481
10482 2020-02-07 Tom Tromey <tromey@adacore.com>
10483
10484 PR breakpoints/24915:
10485 * source.c (find_and_open_source): Do not check basenames_may_differ.
10486
10487 2020-02-07 Tom Tromey <tom@tromey.com>
10488
10489 * README: Update gdbserver documentation.
10490 * gdbserver: Move to top level.
10491 * configure.tgt (build_gdbserver): Remove.
10492 * configure.ac: Remove --enable-gdbserver.
10493 * configure: Rebuild.
10494 * Makefile.in (distclean): Don't mention gdbserver.
10495
10496 2020-02-06 Shahab Vahedi <shahab@synopsys.com>
10497
10498 * source-cache.c (source_cache::ensure): Surround
10499 get_plain_source_lines with a try/catch.
10500 (source_cache::get_line_charpos): Get rid of try/catch
10501 and only check for the return value of "ensure".
10502 * tui/tui-source.c (tui_source_window::set_contents):
10503 Simplify "nlines" calculation.
10504
10505 2020-02-06 Shahab Vahedi <shahab@synopsys.com>
10506
10507 * MAINTAINERS (Write After Approval): Add myself.
10508
10509 2020-02-05 Christian Biesinger <cbiesinger@google.com>
10510
10511 * sparc-nat.h (struct sparc_target) <xfer_partial>: Fix base class
10512 function call.
10513
10514 2020-02-05 Christian Biesinger <cbiesinger@google.com>
10515
10516 * ppc-nbsd-tdep.h: Fix macro name in #endif comment.
10517
10518 2020-02-05 Maciej W. Rozycki <macro@wdc.com>
10519
10520 * nat/riscv-linux-tdesc.h: New file.
10521 * nat/riscv-linux-tdesc.c: New file, taking code from...
10522 * riscv-linux-nat.c (riscv_linux_nat_target::read_description):
10523 ... here.
10524 * configure.nat <linux> <riscv*>: Add nat/riscv-linux-tdesc.o to
10525 NATDEPFILES.
10526
10527 2020-02-04 Andrew Burgess <andrew.burgess@embecosm.com>
10528
10529 * remote-sim.c (sim_inferior_data::sim_inferior_data): Assert that
10530 we don't set the fake simulator ptid to the null_ptid.
10531
10532 2020-02-03 Simon Marchi <simon.marchi@efficios.com>
10533
10534 * fork-child.c (gdb_startup_inferior): Use bool instead of int.
10535 * gdbthread.h (class thread_info) <resumed>: Likewise.
10536 * infrun.c (resume_1): Likewise.
10537 (proceed): Likewise.
10538 (infrun_thread_stop_requested): Likewise.
10539 (stop_all_threads): Likewise.
10540 (handle_inferior_event): Likewise.
10541 (restart_threads): Likewise.
10542 (finish_step_over): Likewise.
10543 (keep_going_stepped_thread): Likewise.
10544 * linux-nat.c (attach_proc_task_lwp_callback): Likewise.
10545 (linux_handle_extended_wait): Likewise.
10546 * record-btrace.c (get_thread_current_frame_id): Likewise.
10547 * record-full.c (record_full_wait_1): Likewise.
10548 * remote.c (remote_target::process_initial_stop_replies): Likewise.
10549 * target.c (target_resume): Likewise.
10550 * thread.c (set_running_thread): Likewise.
10551
10552 2020-02-03 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
10553
10554 * f-valprint.c (f77_print_array_1): Changed datatype of index
10555 variable to LONGEST from int to enable it to contain bound
10556 values correctly.
10557
10558 2020-02-03 Maciej W. Rozycki <macro@wdc.com>
10559
10560 * riscv-linux-nat.c [!NFPREG] (NFPREG): New macro.
10561 (supply_fpregset_regnum, fill_fpregset): Handle regset buffer
10562 offsets according to FLEN determined.
10563 (riscv_linux_nat_target::read_description): Determine FLEN
10564 dynamically.
10565 (riscv_linux_nat_target::fetch_registers): Size regset buffer
10566 according to FLEN determined.
10567 (riscv_linux_nat_target::store_registers): Likewise.
10568
10569 2020-02-01 Shahab Vahedi <shahab@synopsys.com>
10570
10571 * target-descriptions.c (tdesc_register_in_reggroup_p): Return 0
10572 when reg->group is empty and reggroup is not.
10573
10574 2020-01-31 Tom Tromey <tromey@adacore.com>
10575
10576 * ravenscar-thread.c (ravenscar_thread_target::mourn_inferior):
10577 Call beneath target's mourn_inferior after unpushing.
10578
10579 2020-01-31 Andrew Burgess <andrew.burgess@embecosm.com>
10580
10581 PR tui/9765
10582 * tui/tui-disasm.c (tui_find_disassembly_address): If we don't
10583 have enough lines to fill the screen, still return the lowest
10584 address we found.
10585
10586 2020-01-31 Andrew Burgess <andrew.burgess@embecosm.com>
10587
10588 * tui/tui-win.c (_initialize_tui_win): Update help text for '+',
10589 '-', '<', and '>' commands.
10590
10591 2020-01-29 Pedro Alves <palves@redhat.com>
10592 Sergio Durigan Junior <sergiodj@redhat.com>
10593
10594 * infcmd.c (construct_inferior_arguments): Assert that
10595 'argc' is greater than 0.
10596
10597 2020-01-29 Luis Machado <luis.machado@linaro.org>
10598
10599 * aarch64-tdep.c (BRK_INSN_MASK): Define to 0xffe0001f.
10600 (BRK_INSN_MASK): Define to 0xd4200000.
10601 (aarch64_program_breakpoint_here_p): New function.
10602 (aarch64_gdbarch_init): Set gdbarch_program_breakpoint_here_p hook.
10603 * arch-utils.c (default_program_breakpoint_here_p): Moved from
10604 breakpoint.c.
10605 * arch-utils.h (default_program_breakpoint_here_p): Moved from
10606 breakpoint.h
10607 * breakpoint.c (bp_loc_is_permanent): Changed return type to bool and
10608 call gdbarch_program_breakpoint_here_p.
10609 (program_breakpoint_here): Moved to arch-utils.c, renamed to
10610 default_program_breakpoint_here_p, changed return type to bool and
10611 simplified.
10612 * breakpoint.h (program_breakpoint_here): Moved prototype to
10613 arch-utils.h, renamed to default_program_breakpoint_here_p and changed
10614 return type to bool.
10615 * gdbarch.c: Regenerate.
10616 * gdbarch.h: Regenerate.
10617 * gdbarch.sh (program_breakpoint_here_p): New method.
10618 * infrun.c (handle_signal_stop): Call
10619 gdbarch_program_breakpoint_here_p.
10620
10621 2020-01-26 Tom Tromey <tom@tromey.com>
10622
10623 * ctfread.c (struct ctf_fp_info): Reindent.
10624 (_initialize_ctfread): Remove.
10625
10626 2020-01-26 Tom Tromey <tom@tromey.com>
10627
10628 * psymtab.c (partial_map_expand_apply)
10629 (psym_find_pc_sect_compunit_symtab, psym_lookup_symbol)
10630 (psymtab_to_symtab, psym_find_last_source_symtab, dump_psymtab)
10631 (psym_print_stats, psym_expand_symtabs_for_function)
10632 (psym_map_symbol_filenames, psym_map_matching_symbols)
10633 (psym_expand_symtabs_matching)
10634 (partial_symtab::read_dependencies, maintenance_info_psymtabs)
10635 (maintenance_check_psymtabs): Use new methods.
10636 * psympriv.h (struct partial_symtab) <readin_p,
10637 get_compunit_symtab>: New methods.
10638 <readin, compunit_symtab>: Remove members.
10639 (struct standard_psymtab): New.
10640 (struct legacy_psymtab): Derive from standard_psymtab.
10641 * dwarf2read.h (struct dwarf2_psymtab): Derive from
10642 standard_psymtab.
10643 * ctfread.c (struct ctf_psymtab): Derive from standard_psymtab.
10644
10645 2020-01-26 Tom Tromey <tom@tromey.com>
10646
10647 * xcoffread.c (xcoff_psymtab_to_symtab_1): Call
10648 read_dependencies. Add assert.
10649 * psymtab.c (partial_symtab::read_dependencies): New method.
10650 * psympriv.h (struct partial_symtab) <read_dependencies>: New
10651 method.
10652 * mdebugread.c (psymtab_to_symtab_1): Call read_dependencies.
10653 * dwarf2read.c (dwarf2_psymtab::expand_psymtab): Call
10654 read_dependencies.
10655 * dbxread.c (dbx_psymtab_to_symtab_1): Call read_dependencies.
10656 Add assert.
10657
10658 2020-01-26 Tom Tromey <tom@tromey.com>
10659
10660 * xcoffread.c (xcoff_psymtab_to_symtab_1): Change argument order.
10661 Call expand_psymtab.
10662 (xcoff_read_symtab): Call expand_psymtab.
10663 (xcoff_start_psymtab, xcoff_end_psymtab): Set
10664 legacy_expand_psymtab.
10665 * psympriv.h (struct partial_symtab) <expand_psymtab>: New
10666 method.
10667 (struct legacy_psymtab) <expand_psymtab>: Implement.
10668 <legacy_expand_psymtab>: New member.
10669 * mdebugread.c (mdebug_read_symtab): Call expand_psymtab.
10670 (parse_partial_symbols): Set legacy_expand_psymtab.
10671 (psymtab_to_symtab_1): Change argument order. Call
10672 expand_psymtab.
10673 (new_psymtab): Set legacy_expand_psymtab.
10674 * dwarf2read.h (struct dwarf2_psymtab) <expand_psymtab>: Declare.
10675 * dwarf2read.c (dwarf2_psymtab::read_symtab): Call
10676 expand_psymtab.
10677 (dwarf2_psymtab::expand_psymtab): Rename from
10678 psymtab_to_symtab_1. Call expand_psymtab.
10679 * dbxread.c (start_psymtab): Set legacy_expand_psymtab.
10680 (dbx_end_psymtab): Likewise.
10681 (dbx_psymtab_to_symtab_1): Change argument order. Call
10682 expand_psymtab.
10683 (dbx_read_symtab): Call expand_psymtab.
10684 * ctfread.c (struct ctf_psymtab) <expand_psymtab>: Declare.
10685 (ctf_psymtab::expand_psymtab): Rename from psymtab_to_symtab.
10686 (ctf_psymtab::read_symtab): Call expand_psymtab.
10687
10688 2020-01-26 Tom Tromey <tom@tromey.com>
10689
10690 * xcoffread.c (xcoff_read_symtab): Remove prints. Add assert.
10691 * psymtab.c (psymtab_to_symtab): Print verbose "Reading"
10692 messages.
10693 * mdebugread.c (mdebug_read_symtab): Remove prints.
10694 * dwarf2read.c (dwarf2_psymtab::read_symtab): Remove prints. Add
10695 assert.
10696 * dbxread.c (dbx_read_symtab): Remove prints. Add assert.
10697
10698 2020-01-26 Tom Tromey <tom@tromey.com>
10699
10700 * xcoffread.c (this_symtab_psymtab, read_xcoff_symtab)
10701 (xcoff_psymtab_to_symtab_1, xcoff_read_symtab)
10702 (xcoff_start_psymtab, xcoff_end_psymtab, scan_xcoff_symtab): Use
10703 legacy_symtab.
10704 * stabsread.h (dbx_end_psymtab): Use legacy_symtab.
10705 * psymtab.c (psymtab_to_symtab): Call method.
10706 (dump_psymtab): Update.
10707 * psympriv.h (struct partial_symtab): Add virtual destructor.
10708 <read_symtab>: New method.
10709 (struct legacy_symtab): New.
10710 * mdebugread.c (mdebug_read_symtab): Use legacy_psymtab.
10711 (struct pst_map) <pst>: Now a legacy_psymtab.
10712 (parse_procedure, parse_partial_symbols, psymtab_to_symtab_1)
10713 (new_psymtab): Use legacy_psymtab.
10714 * dwarf2read.h (struct dwarf2_psymtab): New.
10715 (struct dwarf2_per_cu_data) <psymtab>: Use it.
10716 * dwarf2read.c (dwarf2_create_include_psymtab)
10717 (dwarf2_build_include_psymtabs, create_type_unit_group)
10718 (create_partial_symtab, process_psymtab_comp_unit_reader)
10719 (build_type_psymtabs_reader, build_type_psymtab_dependencies)
10720 (set_partial_user): Use dwarf2_psymtab.
10721 (dwarf2_psymtab::read_symtab): Rename from dwarf2_read_symtab.
10722 (psymtab_to_symtab_1, process_full_comp_unit)
10723 (process_full_type_unit, dwarf2_ranges_read)
10724 (dwarf2_get_pc_bounds, psymtab_include_file_name)
10725 (dwarf_decode_lines): Use dwarf2_psymtab.
10726 * dwarf-index-write.c (psym_index_map): Use dwarf2_psymtab.
10727 (add_address_entry_worker, write_one_signatured_type)
10728 (recursively_count_psymbols, recursively_write_psymbols)
10729 (write_one_signatured_type, psyms_seen_size, write_gdbindex)
10730 (write_debug_names): Likewise.
10731 * dbxread.c (struct header_file_location): Take a legacy_psymtab.
10732 <pst>: Now a legacy_psymtab.
10733 (find_corresponding_bincl_psymtab): Return a legacy_psymtab.
10734 (read_dbx_symtab, start_psymtab, dbx_end_psymtab)
10735 (dbx_psymtab_to_symtab_1, read_ofile_symtab): Use legacy_psymtab.
10736 * ctfread.c (struct ctf_psymtab): New.
10737 (ctf_start_symtab, ctf_end_symtab, psymtab_to_symtab): Take a
10738 ctf_psymtab.
10739 (ctf_psymtab::read_symtab): Rename from ctf_read_symtab.
10740 (create_partial_symtab): Return a ctf_psymtab.
10741 (scan_partial_symbols): Update.
10742
10743 2020-01-26 Tom Tromey <tom@tromey.com>
10744
10745 * xcoffread.c (xcoff_start_psymtab): Use new.
10746 * psymtab.c (partial_symtab::partial_symtab): New constructor,
10747 renamed from start_psymtab_common.
10748 * psympriv.h (struct partial_symtab): Add new constructor.
10749 (start_psymtab_common): Don't declare.
10750 * mdebugread.c (parse_partial_symbols): Use new.
10751 * dwarf2read.c (create_partial_symtab): Use new.
10752 * dbxread.c (start_psymtab): Use new.
10753 * ctfread.c (create_partial_symtab): Use new.
10754
10755 2020-01-26 Tom Tromey <tom@tromey.com>
10756
10757 * xcoffread.c (xcoff_end_psymtab): Use new.
10758 * psymtab.c (start_psymtab_common): Use new.
10759 (partial_symtab::partial_symtab): Rename from allocate_psymtab.
10760 Update.
10761 * psympriv.h (struct partial_symtab): Add parameters to
10762 constructor. Don't inline.
10763 (allocate_psymtab): Don't declare.
10764 * mdebugread.c (new_psymtab): Use new.
10765 * dwarf2read.c (dwarf2_create_include_psymtab): Use new.
10766 * dbxread.c (dbx_end_psymtab): Use new.
10767
10768 2020-01-26 Tom Tromey <tom@tromey.com>
10769
10770 * psymtab.h (class psymtab_storage) <install_psymtab>: Rename from
10771 allocate_psymtab. Update documentation.
10772 * psymtab.c (psymtab_storage::install_psymtab): Rename from
10773 allocate_psymtab. Do not use new.
10774 (allocate_psymtab): Use new. Update.
10775
10776 2020-01-26 Tom Tromey <tom@tromey.com>
10777
10778 * xcoffread.c (xcoff_psymtab_to_symtab_1): Update.
10779 * psymtab.c (psym_print_stats): Update.
10780 * psympriv.h (struct partial_symtab) <readin,
10781 psymtabs_addrmap_supported, anonymous>: Now bool.
10782 * mdebugread.c (psymtab_to_symtab_1): Update.
10783 * dwarf2read.c (create_type_unit_group, create_partial_symtab)
10784 (build_type_psymtabs_reader, psymtab_to_symtab_1)
10785 (process_full_comp_unit, process_full_type_unit): Update.
10786 * dbxread.c (dbx_psymtab_to_symtab_1): Update.
10787 * ctfread.c (psymtab_to_symtab): Update.
10788
10789 2020-01-26 Tom Tromey <tom@tromey.com>
10790
10791 * mdebugread.c (parse_partial_symbols): Use discard_psymtab.
10792 * psymtab.h (class psymtab_storage) <free_psymtabs>: Remove.
10793 * psymtab.c (psymtab_storage): Delete psymtabs.
10794 (psymtab_storage::allocate_psymtab): Use new.
10795 (psymtab_storage::discard_psymtab): Use delete.
10796 * psympriv.h (struct partial_symtab): Add constructor and
10797 initializers.
10798
10799 2020-01-26 Tom Tromey <tom@tromey.com>
10800
10801 * machoread.c: Do not include psympriv.h.
10802
10803 2020-01-25 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10804
10805 * NEWS: Mention the new option and the set/show commands.
10806
10807 2020-01-25 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10808
10809 * exec.c (exec_file_mismatch_names, exec_file_mismatch_mode)
10810 (show_exec_file_mismatch_command, set_exec_file_mismatch_command)
10811 (validate_exec_file): New variables, enums, functions.
10812 (exec_file_locate_attach, print_section_info): Style the filenames.
10813 (_initialize_exec): Install show_exec_file_mismatch_command and
10814 set_exec_file_mismatch_command.
10815 * gdbcore.h (validate_exec_file): Declare.
10816 * infcmd.c (attach_command): Call validate_exec_file.
10817 * remote.c ( remote_target::remote_add_inferior): Likewise.
10818
10819 2020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
10820
10821 * frame.c (find_frame_sal): Move call to get_next_frame into more
10822 inner scope.
10823 * inline-frame.c (inilne_state) <inline_state>: Update argument
10824 types.
10825 (inilne_state) <skipped_symbol>: Rename to...
10826 (inilne_state) <skipped_symbols>: ...this, and change to a vector.
10827 (skip_inline_frames): Build vector of skipped symbols and use this
10828 to reate the inline_state.
10829 (inline_skipped_symbol): Add a comment and some assertions, fetch
10830 skipped symbol from the list.
10831
10832 2020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
10833
10834 * buildsym.c (lte_is_less_than): Delete.
10835 (buildsym_compunit::end_symtab_with_blockvector): Create local
10836 lambda function to sort line table entries, and use
10837 std::stable_sort instead of std::sort.
10838 * symtab.c (find_pc_sect_line): Skip backward over end of sequence
10839 markers when looking for a previous line.
10840
10841 2020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
10842
10843 * dwarf2read.c (lnp_state_machine::record_line): Include
10844 end_sequence parameter in debug print out. Record the line if we
10845 are at an end_sequence marker even if it's not the start of a
10846 statement.
10847 * symmisc.c (maintenance_print_one_line_table): Print end of
10848 sequence markers with 'END' not '0'.
10849
10850 2020-01-24 Pedro Alves <palves@redhat.com>
10851
10852 PR gdb/25410
10853 * thread.c (scoped_restore_current_thread::restore): Use
10854 switch_to_inferior_no_thread.
10855 * exec.c: Include "progspace-and-thread.h".
10856 (add_target_sections, remove_target_sections):
10857 scoped_restore_current_pspace_and_thread instead of
10858 scoped_restore_current_thread.
10859 * infrun.c (handle_vfork_child_exec_or_exit): Assign the pspace
10860 and aspace to the inferior before calling clone_program_space.
10861 Remove stale comment.
10862
10863 2020-01-24 Christian Biesinger <cbiesinger@google.com>
10864
10865 * arm-nbsd-nat.c (arm_nbsd_nat_target::fetch_registers): Rename to...
10866 (arm_netbsd_nat_target::fetch_registers): ...this.
10867 (arm_nbsd_nat_target::store_registers): Rename to...
10868 (arm_netbsd_nat_target::store_registers): ...this.
10869
10870 2020-01-24 Christian Biesinger <cbiesinger@google.com>
10871
10872 * arm-nbsd-nat.c: Define _KERNTYPES to get the declaration of
10873 register_t.
10874
10875 2020-01-24 Christian Biesinger <cbiesinger@google.com>
10876
10877 * aarch64-fbsd-tdep.c (aarch64_fbsd_iterate_over_regset_sections):
10878 Update comment.
10879 * aarch64-linux-tdep.c (aarch64_linux_iterate_over_regset_sections):
10880 Likewise.
10881 * arm-fbsd-tdep.c (arm_fbsd_iterate_over_regset_sections): Likewise.
10882 * gdbcore.h (deprecated_add_core_fns): Update comment to point to
10883 the correct replacement (iterate_over_regset_sections).
10884 * riscv-fbsd-tdep.c (riscv_fbsd_iterate_over_regset_sections):
10885 Update comment.
10886
10887 2020-01-24 Graham Markall <graham.markall@embecosm.com>
10888
10889 PR gdb/23718
10890 * gdb/python/python.c (execute_gdb_command): Call
10891 async_enable_stdin in catch block.
10892
10893 2020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
10894
10895 * event-loop.c (start_event_loop): Wrap async_enable_stdin with
10896 SWITCH_THRU_ALL_UIS.
10897
10898 2020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
10899
10900 PR tui/9765
10901 * minsyms.c (lookup_minimal_symbol_by_pc_section): Update header
10902 comment, add extra parameter, and update to store previous symbol
10903 when appropriate.
10904 * minsyms.h (lookup_minimal_symbol_by_pc_section): Update comment,
10905 add extra parameter.
10906 * tui/tui-disasm.c (tui_disassemble): Update header comment,
10907 remove unneeded parameter, add try/catch around gdb_print_insn,
10908 rewrite to add items to asm_lines vector.
10909 (tui_find_backward_disassembly_start_address): New function.
10910 (tui_find_disassembly_address): Updated throughout.
10911 (tui_disasm_window::set_contents): Update for changes to
10912 tui_disassemble.
10913 (tui_disasm_window::do_scroll_vertical): No need to adjust the
10914 number of lines to scroll.
10915
10916 2020-01-23 Simon Marchi <simon.marchi@polymtl.ca>
10917
10918 * objfiles.h (ALL_OBJFILE_OSECTIONS): Move up.
10919 (SECT_OFF_DATA): Likewise.
10920 (SECT_OFF_RODATA): Likewise.
10921 (SECT_OFF_TEXT): Likewise.
10922 (SECT_OFF_BSS): Likewise.
10923 (struct objfile) <text_section_offset, data_section_offset>: New
10924 methods.
10925 * amd64-windows-tdep.c (amd64_windows_find_unwind_info): Use
10926 objfile::text_section_offset.
10927 * coff-pe-read.c (add_pe_forwarded_sym): Likewise.
10928 * coffread.c (coff_symtab_read): Likewise.
10929 (enter_linenos): Likewise.
10930 (process_coff_symbol): Likewise.
10931 * ctfread.c (get_objfile_text_range): Likewise.
10932 * dtrace-probe.c (dtrace_probe::get_relocated_address):
10933 Use objfile::data_section_offset.
10934 * dwarf2-frame.c (execute_cfa_program): Use
10935 objfile::text_section_offset.
10936 (dwarf2_frame_find_fde): Likewise.
10937 * dwarf2read.c (create_addrmap_from_index): Likewise.
10938 (create_addrmap_from_aranges): Likewise.
10939 (dw2_find_pc_sect_compunit_symtab): Likewise.
10940 (process_psymtab_comp_unit_reader): Likewise.
10941 (add_partial_symbol): Likewise.
10942 (add_partial_subprogram): Likewise.
10943 (process_full_comp_unit): Likewise.
10944 (read_file_scope): Likewise.
10945 (read_func_scope): Likewise.
10946 (read_lexical_block_scope): Likewise.
10947 (read_call_site_scope): Likewise.
10948 (dwarf2_rnglists_process): Likewise.
10949 (dwarf2_ranges_process): Likewise.
10950 (dwarf2_ranges_read): Likewise.
10951 (dwarf_decode_lines_1): Likewise.
10952 (new_symbol): Likewise.
10953 (dwarf2_fetch_die_loc_sect_off): Likewise.
10954 (dwarf2_per_cu_text_offset): Likewise.
10955 * hppa-bsd-tdep.c (hppabsd_find_global_pointer): Likewise.
10956 * hppa-tdep.c (read_unwind_info): Likewise.
10957 * ia64-tdep.c (ia64_find_unwind_table): Likewise.
10958 * psympriv.h (struct partial_symtab): Likewise.
10959 * psymtab.c (find_pc_sect_psymtab): Likewise.
10960 * solib-svr4.c (enable_break): Likewise.
10961 * stap-probe.c (relocate_address): Use
10962 objfile::data_section_offset.
10963 * xcoffread.c (enter_line_range): Use
10964 objfile::text_section_offset.
10965 (read_xcoff_symtab): Likewise.
10966
10967 2020-01-23 Simon Marchi <simon.marchi@efficios.com>
10968
10969 * darwin-nat.c (darwin_nat_target::wait_1): Move `inf`
10970 declaration to narrower scopes.
10971
10972 2020-01-23 Simon Marchi <simon.marchi@efficios.com>
10973
10974 * darwin-nat.h (struct darwin_exception_msg, enum
10975 darwin_msg_state, struct darwin_thread_info, darwin_thread_t):
10976 Move up.
10977 (class darwin_nat_target) <wait_1, check_new_threads,
10978 decode_exception_message, decode_message, stop_inferior,
10979 init_thread_list, ptrace_him, cancel_breakpoint>: Declare.
10980 * darwin-nat.c (darwin_check_new_threads): Rename to...
10981 (darwin_nat_target::check_new_threads): ... this.
10982 (darwin_suspend_inferior_it): Remove.
10983 (darwin_decode_exception_message): Rename to...
10984 (darwin_nat_target::decode_exception_message): ... this.
10985 (darwin_nat_target::resume): Pass target to find_inferior_ptid.
10986 (darwin_decode_message): Rename to...
10987 (darwin_nat_target::decode_message): ... this.
10988 (cancel_breakpoint): Rename to...
10989 (darwin_nat_target::cancel_breakpoint): ... this.
10990 (darwin_wait): Rename to...
10991 (darwin_nat_target::wait_1): ... this. Use range-based for loop
10992 instead of iterate_over_inferiors.
10993 (darwin_nat_target::wait): Call wait_1 instead of darwin_wait.
10994 (darwin_stop_inferior): Rename to...
10995 (darwin_nat_target::stop_inferior): ... this.
10996 (darwin_nat_target::kill): Call wait_1 instead of darwin_wait.
10997 (darwin_init_thread_list): Rename to...
10998 (darwin_nat_target::init_thread_list): ... this.
10999 (darwin_ptrace_him): Rename to...
11000 (darwin_nat_target::ptrace_him): ... this.
11001 (darwin_nat_target::create_inferior): Pass lambda function to
11002 fork_inferior.
11003 (darwin_nat_target::detach): Call stop_inferior instead of
11004 darwin_stop_inferior.
11005 * fork-inferior.h (fork_inferior): Change init_trace_fun
11006 parameter to gdb::function_view.
11007 * fork-inferior.c (fork_inferior): Likewise.
11008
11009 2020-01-23 Hannes Domani <ssbssa@yahoo.de>
11010
11011 * i386-cygwin-tdep.c (core_process_module_section): Update.
11012 * windows-nat.c (struct lm_info_windows): Add text_offset.
11013 (windows_xfer_shared_libraries): Update.
11014 * windows-tdep.c (windows_xfer_shared_library):
11015 Add text_offset_cached argument.
11016 * windows-tdep.h (windows_xfer_shared_library): Update.
11017
11018 2020-01-21 Simon Marchi <simon.marchi@efficios.com>
11019
11020 * gdbarch.sh: Add declaration for _initialize_gdbarch.
11021
11022 2020-01-21 Simon Marchi <simon.marchi@efficios.com>
11023
11024 * remote-sim.c (check_for_duplicate_sim_descriptor): Remove.
11025 (get_sim_inferior_data): Remove use of iterate_over_inferiors,
11026 replace with range-based for.
11027 (gdbsim_interrupt_inferior): Remove.
11028 (gdbsim_target::interrupt): Replace iterate_over_inferiors use
11029 with a range-based for. Inline code from
11030 gdbsim_interrupt_inferior.
11031
11032 2020-01-21 Simon Marchi <simon.marchi@efficios.com>
11033
11034 * infrun.c (proceed): Fix indentation.
11035
11036 2020-01-21 Tom Tromey <tromey@adacore.com>
11037
11038 * source-cache.c (source_cache::ensure): Call ext_lang_colorize.
11039 * python/python.c (python_extension_ops): Update.
11040 (gdbpy_colorize): New function.
11041 * python/lib/gdb/__init__.py (colorize): New function.
11042 * extension.h (ext_lang_colorize): Declare.
11043 * extension.c (ext_lang_colorize): New function.
11044 * extension-priv.h (struct extension_language_ops) <colorize>: New
11045 member.
11046 * cli/cli-style.c (_initialize_cli_style): Update help text.
11047
11048 2020-01-21 Luis Machado <luis.machado@linaro.org>
11049
11050 * aarch64-tdep.c (struct aarch64_displaced_step_closure)
11051 <cond>: Change type to bool.
11052 (aarch64_displaced_step_b_cond): Update cond to use bool type.
11053 (aarch64_displaced_step_cb): Likewise.
11054 (aarch64_displaced_step_tb): Likewise.
11055
11056 2020-01-21 Luis Machado <luis.machado@linaro.org>
11057
11058 * aarch64-tdep.c (aarch64_displaced_step_fixup): Add more debugging
11059 output.
11060
11061 2020-01-21 Luis Machado <luis.machado@linaro.org>
11062
11063 * aarch64-tdep.c (struct aarch64_displaced_step_closure )
11064 <pc_adjust>: Adjust the documentation.
11065 (aarch64_displaced_step_fixup): Check if PC really moved before
11066 adjusting it.
11067
11068 2020-01-19 Tom Tromey <tom@tromey.com>
11069
11070 * disasm.c (~gdb_disassembler): New destructor.
11071 (gdb_buffered_insn_length): Call disassemble_free_target.
11072 * disasm.h (class gdb_disassembler): Declare destructor. Use
11073 DISABLE_COPY_AND_ASSIGN.
11074
11075 2020-01-19 Tom Tromey <tom@tromey.com>
11076
11077 * dwarf2read.c (abbrev_table_up): Move typedef earlier.
11078 (die_reader_func_ftype): Remove.
11079 (cutu_reader): New class.
11080 (dw2_get_file_names_reader): Remove "data" parameter.
11081 (dw2_get_file_names): Use cutu_reader.
11082 (create_debug_type_hash_table): Update.
11083 (read_cutu_die_from_dwo): Update comment.
11084 (lookup_dwo_unit): Add dwo_name parameter.
11085 (cutu_reader::init_tu_and_read_dwo_dies): Now a method. Remove
11086 die_reader_func_ftype and data parameters.
11087 (cutu_reader::cutu_reader): Rename from init_cutu_and_read_dies.
11088 Remove die_reader_func_ftype and data parameters.
11089 (~cutu_reader): New; from init_cutu_and_read_dies.
11090 (cutu_reader::cutu_reader): Rename from
11091 init_cutu_and_read_dies_no_follow. Remove die_reader_func_ftype
11092 and data parameters.
11093 (init_cutu_and_read_dies_simple): Remove.
11094 (struct process_psymtab_comp_unit_data): Remove.
11095 (process_psymtab_comp_unit_reader): Remove data parameter; add
11096 want_partial_unit and pretend_language parameters.
11097 (process_psymtab_comp_unit): Use cutu_reader.
11098 (build_type_psymtabs_reader): Remove data parameter.
11099 (build_type_psymtabs_1): Use cutu_reader.
11100 (process_skeletonless_type_unit): Likewise.
11101 (load_partial_comp_unit_reader): Remove.
11102 (load_partial_comp_unit): Use cutu_reader.
11103 (load_full_comp_unit_reader): Remove.
11104 (load_full_comp_unit): Use cutu_reader.
11105 (struct create_dwo_cu_data): Remove.
11106 (create_dwo_cu_reader): Remove datap parameter; add dwo_file and
11107 dwo_unit parameters.
11108 (create_cus_hash_table): Use cutu_reader.
11109 (struct dwarf2_read_addr_index_data): Remove.
11110 (dwarf2_read_addr_index_reader): Remove.
11111 (dwarf2_read_addr_index): Use cutu_reader.
11112 (read_signatured_type_reader): Remove.
11113 (read_signatured_type): Use cutu_reader.
11114
11115 2020-01-19 Tom Tromey <tom@tromey.com>
11116
11117 * tui/tui.c (tui_show_assembly): Use tui_suppress_output.
11118 * tui/tui-wingeneral.h (class tui_suppress_output): New.
11119 (tui_wrefresh): Declare.
11120 * tui/tui-wingeneral.c (suppress_output): New global.
11121 (tui_suppress_output, ~tui_suppress_output): New constructor and
11122 destructor.
11123 (tui_wrefresh): New function.
11124 (tui_gen_win_info::refresh_window): Use tui_wrefresh.
11125 (tui_gen_win_info::make_window): Call wnoutrefresh when needed.
11126 * tui/tui-regs.h (struct tui_data_window) <no_refresh>: Declare
11127 method.
11128 * tui/tui-regs.c (tui_data_window::erase_data_content): Call
11129 tui_wrefresh.
11130 (tui_data_window::no_refresh): New method.
11131 (tui_data_item_window::refresh_window): Call tui_wrefresh.
11132 (tui_reg_command): Use tui_suppress_output
11133 * tui/tui-layout.c (tui_set_layout): Use tui_suppress_output.
11134 * tui/tui-data.h (struct tui_gen_win_info) <no_refresh>: New
11135 method.
11136 * tui/tui-command.c (tui_refresh_cmd_win): Call tui_wrefresh.
11137
11138 2020-01-19 Tom Tromey <tom@tromey.com>
11139
11140 * tui/tui-winsource.c (tui_update_source_windows_with_line):
11141 Handle case where symtab is null.
11142
11143 2020-01-19 Simon Marchi <simon.marchi@polymtl.ca>
11144
11145 * linux-fork.c (one_fork_p): Simplify.
11146
11147 2020-01-17 Simon Marchi <simon.marchi@efficios.com>
11148
11149 * top.c (struct qt_args): Remove.
11150 (kill_or_detach): Change return type to void, replace `void *`
11151 parameter with a proper one.
11152 (print_inferior_quit_action): Likewise.
11153 (quit_confirm): Use range-based for loop to iterate over inferiors.
11154 (quit_force): Likewise.
11155
11156 2020-01-17 Simon Marchi <simon.marchi@efficios.com>
11157
11158 * mi/mi-main.c (run_one_inferior): Change return type to void, replace
11159 `void *` parameter with proper parameters.
11160 (mi_cmd_exec_run): Use range-based loop to iterate over inferiors.
11161 (print_one_inferior): Change return type to void, replace `void *`
11162 parameter with proper parameters.
11163 (mi_cmd_list_thread_groups): Use range-based loop to iterate over
11164 inferiors.
11165 (get_other_inferior): Remove.
11166 (mi_cmd_remove_inferior): Use range-based loop to iterate over
11167 inferiors.
11168
11169 2020-01-17 Simon Marchi <simon.marchi@efficios.com>
11170
11171 * mi/mi-interp.c (report_initial_inferior): Remove.
11172 (mi_interp::init): Use range-based for to iterate over inferiors.
11173
11174 2020-01-17 Simon Marchi <simon.marchi@efficios.com>
11175
11176 * python/py-inferior.c (build_inferior_list): Remove.
11177 (gdbpy_ref): Use range-based for loop to iterate over inferiors.
11178
11179 2020-01-16 Christian Biesinger <cbiesinger@google.com>
11180
11181 * btrace.c (btrace_compute_ftrace_1): Fix spelling error (Unkown).
11182 (btrace_stitch_trace): Likewise.
11183 * charset.c (intermediate_encoding): Likewise (vaild).
11184 * nat/linux-btrace.c (linux_read_pt): Likewise (Unkown).
11185 * python/py-record-btrace.c (struct PyMethodDef): Likewise (occurences).
11186 * record-btrace.c (record_btrace_print_conf): Likewise (unkown).
11187
11188 2020-01-16 Hannes Domani <ssbssa@yahoo.de>
11189
11190 * windows-tdep.c (windows_get_tlb_type):
11191 Add rtl_user_process_parameters type.
11192
11193 2020-01-16 Pedro Alves <palves@redhat.com>
11194 Norbert Lange <nolange79@gmail.com>
11195
11196 PR build/24805
11197 * gdbsupport/gdb_proc_service.h (PS_EXPORT): New.
11198 (ps_get_thread_area, ps_getpid, ps_lcontinue, ps_lgetfpregs)
11199 (ps_lgetregs, ps_lsetfpregs, ps_lsetregs, ps_lstop, ps_pcontinue)
11200 (ps_pdread, ps_pdwrite, ps_pglobal_lookup, ps_pstop, ps_ptread)
11201 (ps_ptwrite, ps_lgetxregs, ps_lgetxregsize, ps_lsetxregs)
11202 (ps_plog): Redeclare exported functions with default visibility.
11203
11204 2020-01-16 Nitika Achra <Nitika.Achra@amd.com>
11205
11206 * dwarf2loc.c (decode_debug_loclists_addresses): Handle
11207 DW_LLE_base_addressx, DW_LLE_startx_length, DW_LLE_start_length.
11208
11209 2020-01-15 Simon Marchi <simon.marchi@efficios.com>
11210
11211 * infcmd.c (post_create_inferior): Use get_thread_regcache
11212 instead of get_current_regcache.
11213
11214 2020-01-14 Tom Tromey <tom@tromey.com>
11215
11216 PR symtab/12535:
11217 * python/python.c (gdbpy_decode_line): Treat empty string the same
11218 as no argument.
11219
11220 2020-01-14 Tom Tromey <tom@tromey.com>
11221
11222 * Makefile.in (CLIBS): Remove second use of $(LIBIBERTY).
11223
11224 2020-01-14 Tom Tromey <tom@tromey.com>
11225
11226 * nat/linux-btrace.c: Don't include <config.h>.
11227 * nat/linux-ptrace.c: Don't include <config.h>.
11228 * nat/x86-linux-dregs.c: Don't include <config.h>.
11229
11230 2020-01-14 Tom Tromey <tom@tromey.com>
11231
11232 * configure: Rebuild.
11233 * configure.ac: Move many checks to ../gdbsupport/common.m4.
11234
11235 2020-01-14 Tom Tromey <tom@tromey.com>
11236
11237 * nat/x86-linux-dregs.c: Include configh.h.
11238 * nat/linux-ptrace.c: Include configh.h.
11239 * nat/linux-btrace.c: Include configh.h.
11240 * defs.h: Include config.h, bfd.h.
11241 * configure.ac: Don't source common.host.
11242 (CONFIG_OBS, CONFIG_SRCS): Remove gdbsupport files.
11243 * configure: Rebuild.
11244 * acinclude.m4: Update path.
11245 * Makefile.in (SUPPORT, LIBSUPPORT, INCSUPPORT): New variables.
11246 (CONFIG_SRC_SUBDIR): Remove gdbsupport.
11247 (INTERNAL_CFLAGS_BASE): Add INCSUPPORT.
11248 (CLIBS): Add LIBSUPPORT.
11249 (CDEPS): Likewise.
11250 (COMMON_SFILES): Remove gdbsupport files.
11251 (HFILES_NO_SRCDIR): Likewise.
11252 (stamp-version): Update path to create-version.sh.
11253 (ALLDEPFILES): Remove gdbsupport files.
11254
11255 2020-01-14 Tom Tromey <tom@tromey.com>
11256
11257 * gdbsupport/common.m4 (GDB_AC_COMMON): Define WIN32APILIBS and
11258 USE_WIN32API when needed.
11259 * configure.ac (USE_WIN32API): Don't define.
11260 (WIN32LIBS): Use WIN32APILIBS.
11261 * configure: Rebuild.
11262
11263 2020-01-14 Tom Tromey <tom@tromey.com>
11264
11265 * configure: Rebuild.
11266 * gdbsupport/common.m4 (GDB_AC_COMMON): Fix indentation.
11267
11268 2020-01-14 Bernd Edlinger <bernd.edlinger@hotmail.de>
11269
11270 * skip.c (skip_function_command): Make skip w/o arguments use the
11271 name of the inlined function if pc is inside any inlined function.
11272
11273 2020-01-14 Luis Machado <luis.machado@linaro.org>
11274
11275 * inf-ptrace.c (inf_ptrace_target::resume): Update comments.
11276 * infrun.c (resume_1): Likewise.
11277 (handle_inferior_event): Remove stale comment.
11278 * linux-nat.c (linux_nat_target::resume): Update comments.
11279 (save_stop_reason): Likewise.
11280 (linux_nat_filter_event): Likewise.
11281 * linux-nat.h (struct lwp_info) <stop_pc>, <stop_reason>: Likewise.
11282
11283 2020-01-13 Andrew Burgess <andrew.burgess@embecosm.com>
11284
11285 * elfread.c (record_minimal_symbol): Set section index to 0 for
11286 non-allocatable sections.
11287
11288
11289 2020-01-13 Ali Tamur <tamur@google.com>
11290
11291 * dwarf2read.c (dwarf2_debug_sections): Add debug_str_offsets sections.
11292 (dwarf2_cu): Add str_offsets_base field. Change the type of addr_base
11293 to gdb::optional. Update comments.
11294 (dwo_file): Update comments.
11295 (read_attribute): Update API to take an additional out parameter,
11296 need_reprocess. This is used to mark attributes that need other
11297 attributes (e.g. str_offsets_base) for correct computation which may not
11298 have been read yet.
11299 (read_attribute_reprocess): New function declaration.
11300 (read_addr_index): Likewise.
11301 (read_dwo_str_index): Likewise.
11302 (read_stub_str_index): Likewise.
11303 (dwarf2_per_objfile::locate_sections): Handle debug_str_offsets section.
11304 (lookup_addr_base): New function definition.
11305 (lookup_ranges_base): Likewise.
11306 (read_cutu_die_from_dwo): Use the new functions: lookup_addr_base,
11307 lookup_ranges_base.
11308 (init_cutu_and_read_dies): Update comments.
11309 (init_cutu_and_read_dies_no_follow): Change API to take parent compile
11310 unit. This is used to inherit parent's str_offsets_base and addr_base.
11311 Update comments.
11312 (init_cutu_and_read_dies_simple): Reflect API changes.
11313 (skip_one_die): Reflect API changes. Handle DW_FORM_rnglistx.
11314 (create_cus_hash_table): Change API to take parent compile unit.
11315 Reflect API changes.
11316 (open_and_init_dwo_file): Reflect API changes.
11317 (dwarf2_get_pc_bounds): Update comments.
11318 (dwarf2_record_block_ranges): Likewise.
11319 (read_full_die_1): Change implementation to reprocess attributes that
11320 need str_offsets_base and addr_base.
11321 (partial_die_info::read): Likewise.
11322 (read_attribute_reprocess): New function definition.
11323 (read_attribute_value): Change API to take an additional out parameter,
11324 need_reprocess. Handle DW_FORM_rnglistx. No longer trigger an error
11325 when a non-dwo compile unit has index based attributes.
11326 (read_attribute): Reflect API changes.
11327 (read_addr_index_1): Reflect API changes. Update comments.
11328 (dwarf2_read_addr_index_data): Reflect API changes.
11329 (dwarf2_read_addr_index): Likewise.
11330 (read_str_index): Change API and implementation. This becomes a helper
11331 to be used by the new string index related methods. Update error
11332 message and comments.
11333 (read_dwo_str_index): New function definition.
11334 (read_stub_str_index): Likewise.
11335 * dwarf2read.h (dwarf2_per_objfile): Add str_offsets field.
11336 * symfile.h (dwarf2_debug_sections): Likewise.
11337 * xcoffread.c (dwarf2_debug_sections): Likewise.
11338
11339 2020-01-13 Simon Marchi <simon.marchi@efficios.com>
11340
11341 * gdbcore.h (struct core_fns) <core_read_registers>: Change
11342 core_reg_sect type to gdb_byte *.
11343 * arm-nbsd-nat.c (fetch_elfcore_registers): Likewise.
11344 * cris-tdep.c (fetch_core_registers): Likewise.
11345 * corelow.c (core_target::get_core_register_section): Change
11346 type of `contents` to gdb::byte_vector.
11347
11348 2020-01-13 Andrew Burgess <andrew.burgess@embecosm.com>
11349
11350 * tui/tui-wingeneral.c (box_win): Position the title in the center
11351 of the border.
11352
11353 2020-01-13 Simon Marchi <simon.marchi@polymtl.ca>
11354
11355 * corelow.c (core_target::get_core_register_section): Use
11356 std::vector instead of alloca.
11357
11358 2020-01-13 Simon Marchi <simon.marchi@efficios.com>
11359
11360 * warning.m4: Add -Wmissing-declarations to build_warnings.
11361 * configure: Re-generate.
11362
11363 2020-01-13 Simon Marchi <simon.marchi@efficios.com>
11364
11365 * python/python.c (init__gdb_module): Add declaration.
11366
11367 2020-01-13 Simon Marchi <simon.marchi@efficios.com>
11368
11369 * aarch64-fbsd-nat.c (_initialize_aarch64_fbsd_nat): Add declaration.
11370 * aarch64-fbsd-tdep.c (_initialize_aarch64_fbsd_tdep): Add declaration.
11371 * aarch64-linux-nat.c (_initialize_aarch64_linux_nat): Add declaration.
11372 * aarch64-linux-tdep.c (_initialize_aarch64_linux_tdep): Add declaration.
11373 * aarch64-newlib-tdep.c (_initialize_aarch64_newlib_tdep): Add declaration.
11374 * aarch64-tdep.c (_initialize_aarch64_tdep): Add declaration.
11375 * ada-exp.y (_initialize_ada_exp): Add declaration.
11376 * ada-lang.c (_initialize_ada_language): Add declaration.
11377 * ada-tasks.c (_initialize_tasks): Add declaration.
11378 * agent.c (_initialize_agent): Add declaration.
11379 * aix-thread.c (_initialize_aix_thread): Add declaration.
11380 * alpha-bsd-nat.c (_initialize_alphabsd_nat): Add declaration.
11381 * alpha-linux-nat.c (_initialize_alpha_linux_nat): Add declaration.
11382 * alpha-linux-tdep.c (_initialize_alpha_linux_tdep): Add declaration.
11383 * alpha-nbsd-tdep.c (_initialize_alphanbsd_tdep): Add declaration.
11384 * alpha-obsd-tdep.c (_initialize_alphaobsd_tdep): Add declaration.
11385 * alpha-tdep.c (_initialize_alpha_tdep): Add declaration.
11386 * amd64-darwin-tdep.c (_initialize_amd64_darwin_tdep): Add declaration.
11387 * amd64-dicos-tdep.c (_initialize_amd64_dicos_tdep): Add declaration.
11388 * amd64-fbsd-nat.c (_initialize_amd64fbsd_nat): Add declaration.
11389 * amd64-fbsd-tdep.c (_initialize_amd64fbsd_tdep): Add declaration.
11390 * amd64-linux-nat.c (_initialize_amd64_linux_nat): Add declaration.
11391 * amd64-linux-tdep.c (_initialize_amd64_linux_tdep): Add declaration.
11392 * amd64-nbsd-nat.c (_initialize_amd64nbsd_nat): Add declaration.
11393 * amd64-nbsd-tdep.c (_initialize_amd64nbsd_tdep): Add declaration.
11394 * amd64-obsd-nat.c (_initialize_amd64obsd_nat): Add declaration.
11395 * amd64-obsd-tdep.c (_initialize_amd64obsd_tdep): Add declaration.
11396 * amd64-sol2-tdep.c (_initialize_amd64_sol2_tdep): Add declaration.
11397 * amd64-tdep.c (_initialize_amd64_tdep): Add declaration.
11398 * amd64-windows-nat.c (_initialize_amd64_windows_nat): Add declaration.
11399 * amd64-windows-tdep.c (_initialize_amd64_windows_tdep): Add declaration.
11400 * annotate.c (_initialize_annotate): Add declaration.
11401 * arc-newlib-tdep.c (_initialize_arc_newlib_tdep): Add declaration.
11402 * arc-tdep.c (_initialize_arc_tdep): Add declaration.
11403 * arch-utils.c (_initialize_gdbarch_utils): Add declaration.
11404 * arm-fbsd-nat.c (_initialize_arm_fbsd_nat): Add declaration.
11405 * arm-fbsd-tdep.c (_initialize_arm_fbsd_tdep): Add declaration.
11406 * arm-linux-nat.c (_initialize_arm_linux_nat): Add declaration.
11407 * arm-linux-tdep.c (_initialize_arm_linux_tdep): Add declaration.
11408 * arm-nbsd-nat.c (_initialize_arm_netbsd_nat): Add declaration.
11409 * arm-nbsd-tdep.c (_initialize_arm_netbsd_tdep): Add declaration.
11410 * arm-obsd-tdep.c (_initialize_armobsd_tdep): Add declaration.
11411 * arm-pikeos-tdep.c (_initialize_arm_pikeos_tdep): Add declaration.
11412 * arm-symbian-tdep.c (_initialize_arm_symbian_tdep): Add declaration.
11413 * arm-tdep.c (_initialize_arm_tdep): Add declaration.
11414 * arm-wince-tdep.c (_initialize_arm_wince_tdep): Add declaration.
11415 * auto-load.c (_initialize_auto_load): Add declaration.
11416 * auxv.c (_initialize_auxv): Add declaration.
11417 * avr-tdep.c (_initialize_avr_tdep): Add declaration.
11418 * ax-gdb.c (_initialize_ax_gdb): Add declaration.
11419 * bfin-linux-tdep.c (_initialize_bfin_linux_tdep): Add declaration.
11420 * bfin-tdep.c (_initialize_bfin_tdep): Add declaration.
11421 * break-catch-sig.c (_initialize_break_catch_sig): Add declaration.
11422 * break-catch-syscall.c (_initialize_break_catch_syscall): Add declaration.
11423 * break-catch-throw.c (_initialize_break_catch_throw): Add declaration.
11424 * breakpoint.c (_initialize_breakpoint): Add declaration.
11425 * bsd-uthread.c (_initialize_bsd_uthread): Add declaration.
11426 * btrace.c (_initialize_btrace): Add declaration.
11427 * charset.c (_initialize_charset): Add declaration.
11428 * cli/cli-cmds.c (_initialize_cli_cmds): Add declaration.
11429 * cli/cli-dump.c (_initialize_cli_dump): Add declaration.
11430 * cli/cli-interp.c (_initialize_cli_interp): Add declaration.
11431 * cli/cli-logging.c (_initialize_cli_logging): Add declaration.
11432 * cli/cli-script.c (_initialize_cli_script): Add declaration.
11433 * cli/cli-style.c (_initialize_cli_style): Add declaration.
11434 * coff-pe-read.c (_initialize_coff_pe_read): Add declaration.
11435 * coffread.c (_initialize_coffread): Add declaration.
11436 * compile/compile-cplus-types.c (_initialize_compile_cplus_types): Add declaration.
11437 * compile/compile.c (_initialize_compile): Add declaration.
11438 * complaints.c (_initialize_complaints): Add declaration.
11439 * completer.c (_initialize_completer): Add declaration.
11440 * copying.c (_initialize_copying): Add declaration.
11441 * corefile.c (_initialize_core): Add declaration.
11442 * corelow.c (_initialize_corelow): Add declaration.
11443 * cp-abi.c (_initialize_cp_abi): Add declaration.
11444 * cp-namespace.c (_initialize_cp_namespace): Add declaration.
11445 * cp-support.c (_initialize_cp_support): Add declaration.
11446 * cp-valprint.c (_initialize_cp_valprint): Add declaration.
11447 * cris-linux-tdep.c (_initialize_cris_linux_tdep): Add declaration.
11448 * cris-tdep.c (_initialize_cris_tdep): Add declaration.
11449 * csky-linux-tdep.c (_initialize_csky_linux_tdep): Add declaration.
11450 * csky-tdep.c (_initialize_csky_tdep): Add declaration.
11451 * ctfread.c (_initialize_ctfread): Add declaration.
11452 * d-lang.c (_initialize_d_language): Add declaration.
11453 * darwin-nat-info.c (_initialize_darwin_info_commands): Add declaration.
11454 * darwin-nat.c (_initialize_darwin_nat): Add declaration.
11455 * dbxread.c (_initialize_dbxread): Add declaration.
11456 * dcache.c (_initialize_dcache): Add declaration.
11457 * disasm-selftests.c (_initialize_disasm_selftests): Add declaration.
11458 * disasm.c (_initialize_disasm): Add declaration.
11459 * dtrace-probe.c (_initialize_dtrace_probe): Add declaration.
11460 * dummy-frame.c (_initialize_dummy_frame): Add declaration.
11461 * dwarf-index-cache.c (_initialize_index_cache): Add declaration.
11462 * dwarf-index-write.c (_initialize_dwarf_index_write): Add declaration.
11463 * dwarf2-frame-tailcall.c (_initialize_tailcall_frame): Add declaration.
11464 * dwarf2-frame.c (_initialize_dwarf2_frame): Add declaration.
11465 * dwarf2expr.c (_initialize_dwarf2expr): Add declaration.
11466 * dwarf2loc.c (_initialize_dwarf2loc): Add declaration.
11467 * dwarf2read.c (_initialize_dwarf2_read): Add declaration.
11468 * elfread.c (_initialize_elfread): Add declaration.
11469 * exec.c (_initialize_exec): Add declaration.
11470 * extension.c (_initialize_extension): Add declaration.
11471 * f-lang.c (_initialize_f_language): Add declaration.
11472 * f-valprint.c (_initialize_f_valprint): Add declaration.
11473 * fbsd-nat.c (_initialize_fbsd_nat): Add declaration.
11474 * fbsd-tdep.c (_initialize_fbsd_tdep): Add declaration.
11475 * filesystem.c (_initialize_filesystem): Add declaration.
11476 * findcmd.c (_initialize_mem_search): Add declaration.
11477 * findvar.c (_initialize_findvar): Add declaration.
11478 * fork-child.c (_initialize_fork_child): Add declaration.
11479 * frame-base.c (_initialize_frame_base): Add declaration.
11480 * frame-unwind.c (_initialize_frame_unwind): Add declaration.
11481 * frame.c (_initialize_frame): Add declaration.
11482 * frv-linux-tdep.c (_initialize_frv_linux_tdep): Add declaration.
11483 * frv-tdep.c (_initialize_frv_tdep): Add declaration.
11484 * ft32-tdep.c (_initialize_ft32_tdep): Add declaration.
11485 * gcore.c (_initialize_gcore): Add declaration.
11486 * gdb-demangle.c (_initialize_gdb_demangle): Add declaration.
11487 * gdb_bfd.c (_initialize_gdb_bfd): Add declaration.
11488 * gdbarch-selftests.c (_initialize_gdbarch_selftests): Add declaration.
11489 * gdbarch.c (_initialize_gdbarch): Add declaration.
11490 * gdbtypes.c (_initialize_gdbtypes): Add declaration.
11491 * gnu-nat.c (_initialize_gnu_nat): Add declaration.
11492 * gnu-v2-abi.c (_initialize_gnu_v2_abi): Add declaration.
11493 * gnu-v3-abi.c (_initialize_gnu_v3_abi): Add declaration.
11494 * go-lang.c (_initialize_go_language): Add declaration.
11495 * go32-nat.c (_initialize_go32_nat): Add declaration.
11496 * guile/guile.c (_initialize_guile): Add declaration.
11497 * h8300-tdep.c (_initialize_h8300_tdep): Add declaration.
11498 * hppa-linux-nat.c (_initialize_hppa_linux_nat): Add declaration.
11499 * hppa-linux-tdep.c (_initialize_hppa_linux_tdep): Add declaration.
11500 * hppa-nbsd-nat.c (_initialize_hppanbsd_nat): Add declaration.
11501 * hppa-nbsd-tdep.c (_initialize_hppanbsd_tdep): Add declaration.
11502 * hppa-obsd-nat.c (_initialize_hppaobsd_nat): Add declaration.
11503 * hppa-obsd-tdep.c (_initialize_hppabsd_tdep): Add declaration.
11504 * hppa-tdep.c (_initialize_hppa_tdep): Add declaration.
11505 * i386-bsd-nat.c (_initialize_i386bsd_nat): Add declaration.
11506 * i386-cygwin-tdep.c (_initialize_i386_cygwin_tdep): Add declaration.
11507 * i386-darwin-nat.c (_initialize_i386_darwin_nat): Add declaration.
11508 * i386-darwin-tdep.c (_initialize_i386_darwin_tdep): Add declaration.
11509 * i386-dicos-tdep.c (_initialize_i386_dicos_tdep): Add declaration.
11510 * i386-fbsd-nat.c (_initialize_i386fbsd_nat): Add declaration.
11511 * i386-fbsd-tdep.c (_initialize_i386fbsd_tdep): Add declaration.
11512 * i386-gnu-nat.c (_initialize_i386gnu_nat): Add declaration.
11513 * i386-gnu-tdep.c (_initialize_i386gnu_tdep): Add declaration.
11514 * i386-go32-tdep.c (_initialize_i386_go32_tdep): Add declaration.
11515 * i386-linux-nat.c (_initialize_i386_linux_nat): Add declaration.
11516 * i386-linux-tdep.c (_initialize_i386_linux_tdep): Add declaration.
11517 * i386-nbsd-nat.c (_initialize_i386nbsd_nat): Add declaration.
11518 * i386-nbsd-tdep.c (_initialize_i386nbsd_tdep): Add declaration.
11519 * i386-nto-tdep.c (_initialize_i386nto_tdep): Add declaration.
11520 * i386-obsd-nat.c (_initialize_i386obsd_nat): Add declaration.
11521 * i386-obsd-tdep.c (_initialize_i386obsd_tdep): Add declaration.
11522 * i386-sol2-nat.c (_initialize_amd64_sol2_nat): Add declaration.
11523 * i386-sol2-tdep.c (_initialize_i386_sol2_tdep): Add declaration.
11524 * i386-tdep.c (_initialize_i386_tdep): Add declaration.
11525 * i386-windows-nat.c (_initialize_i386_windows_nat): Add declaration.
11526 * ia64-libunwind-tdep.c (_initialize_libunwind_frame): Add declaration.
11527 * ia64-linux-nat.c (_initialize_ia64_linux_nat): Add declaration.
11528 * ia64-linux-tdep.c (_initialize_ia64_linux_tdep): Add declaration.
11529 * ia64-tdep.c (_initialize_ia64_tdep): Add declaration.
11530 * ia64-vms-tdep.c (_initialize_ia64_vms_tdep): Add declaration.
11531 * infcall.c (_initialize_infcall): Add declaration.
11532 * infcmd.c (_initialize_infcmd): Add declaration.
11533 * inflow.c (_initialize_inflow): Add declaration.
11534 * infrun.c (_initialize_infrun): Add declaration.
11535 * interps.c (_initialize_interpreter): Add declaration.
11536 * iq2000-tdep.c (_initialize_iq2000_tdep): Add declaration.
11537 * jit.c (_initialize_jit): Add declaration.
11538 * language.c (_initialize_language): Add declaration.
11539 * linux-fork.c (_initialize_linux_fork): Add declaration.
11540 * linux-nat.c (_initialize_linux_nat): Add declaration.
11541 * linux-tdep.c (_initialize_linux_tdep): Add declaration.
11542 * linux-thread-db.c (_initialize_thread_db): Add declaration.
11543 * lm32-tdep.c (_initialize_lm32_tdep): Add declaration.
11544 * m2-lang.c (_initialize_m2_language): Add declaration.
11545 * m32c-tdep.c (_initialize_m32c_tdep): Add declaration.
11546 * m32r-linux-nat.c (_initialize_m32r_linux_nat): Add declaration.
11547 * m32r-linux-tdep.c (_initialize_m32r_linux_tdep): Add declaration.
11548 * m32r-tdep.c (_initialize_m32r_tdep): Add declaration.
11549 * m68hc11-tdep.c (_initialize_m68hc11_tdep): Add declaration.
11550 * m68k-bsd-nat.c (_initialize_m68kbsd_nat): Add declaration.
11551 * m68k-bsd-tdep.c (_initialize_m68kbsd_tdep): Add declaration.
11552 * m68k-linux-nat.c (_initialize_m68k_linux_nat): Add declaration.
11553 * m68k-linux-tdep.c (_initialize_m68k_linux_tdep): Add declaration.
11554 * m68k-tdep.c (_initialize_m68k_tdep): Add declaration.
11555 * machoread.c (_initialize_machoread): Add declaration.
11556 * macrocmd.c (_initialize_macrocmd): Add declaration.
11557 * macroscope.c (_initialize_macroscope): Add declaration.
11558 * maint-test-options.c (_initialize_maint_test_options): Add declaration.
11559 * maint-test-settings.c (_initialize_maint_test_settings): Add declaration.
11560 * maint.c (_initialize_maint_cmds): Add declaration.
11561 * mdebugread.c (_initialize_mdebugread): Add declaration.
11562 * memattr.c (_initialize_mem): Add declaration.
11563 * mep-tdep.c (_initialize_mep_tdep): Add declaration.
11564 * mi/mi-cmd-env.c (_initialize_mi_cmd_env): Add declaration.
11565 * mi/mi-cmds.c (_initialize_mi_cmds): Add declaration.
11566 * mi/mi-interp.c (_initialize_mi_interp): Add declaration.
11567 * mi/mi-main.c (_initialize_mi_main): Add declaration.
11568 * microblaze-linux-tdep.c (_initialize_microblaze_linux_tdep): Add declaration.
11569 * microblaze-tdep.c (_initialize_microblaze_tdep): Add declaration.
11570 * mips-fbsd-nat.c (_initialize_mips_fbsd_nat): Add declaration.
11571 * mips-fbsd-tdep.c (_initialize_mips_fbsd_tdep): Add declaration.
11572 * mips-linux-nat.c (_initialize_mips_linux_nat): Add declaration.
11573 * mips-linux-tdep.c (_initialize_mips_linux_tdep): Add declaration.
11574 * mips-nbsd-nat.c (_initialize_mipsnbsd_nat): Add declaration.
11575 * mips-nbsd-tdep.c (_initialize_mipsnbsd_tdep): Add declaration.
11576 * mips-sde-tdep.c (_initialize_mips_sde_tdep): Add declaration.
11577 * mips-tdep.c (_initialize_mips_tdep): Add declaration.
11578 * mips64-obsd-nat.c (_initialize_mips64obsd_nat): Add declaration.
11579 * mips64-obsd-tdep.c (_initialize_mips64obsd_tdep): Add declaration.
11580 * mipsread.c (_initialize_mipsread): Add declaration.
11581 * mn10300-linux-tdep.c (_initialize_mn10300_linux_tdep): Add declaration.
11582 * mn10300-tdep.c (_initialize_mn10300_tdep): Add declaration.
11583 * moxie-tdep.c (_initialize_moxie_tdep): Add declaration.
11584 * msp430-tdep.c (_initialize_msp430_tdep): Add declaration.
11585 * nds32-tdep.c (_initialize_nds32_tdep): Add declaration.
11586 * nios2-linux-tdep.c (_initialize_nios2_linux_tdep): Add declaration.
11587 * nios2-tdep.c (_initialize_nios2_tdep): Add declaration.
11588 * nto-procfs.c (_initialize_procfs): Add declaration.
11589 * objc-lang.c (_initialize_objc_language): Add declaration.
11590 * observable.c (_initialize_observer): Add declaration.
11591 * opencl-lang.c (_initialize_opencl_language): Add declaration.
11592 * or1k-linux-tdep.c (_initialize_or1k_linux_tdep): Add declaration.
11593 * or1k-tdep.c (_initialize_or1k_tdep): Add declaration.
11594 * osabi.c (_initialize_gdb_osabi): Add declaration.
11595 * osdata.c (_initialize_osdata): Add declaration.
11596 * p-valprint.c (_initialize_pascal_valprint): Add declaration.
11597 * parse.c (_initialize_parse): Add declaration.
11598 * ppc-fbsd-nat.c (_initialize_ppcfbsd_nat): Add declaration.
11599 * ppc-fbsd-tdep.c (_initialize_ppcfbsd_tdep): Add declaration.
11600 * ppc-linux-nat.c (_initialize_ppc_linux_nat): Add declaration.
11601 * ppc-linux-tdep.c (_initialize_ppc_linux_tdep): Add declaration.
11602 * ppc-nbsd-nat.c (_initialize_ppcnbsd_nat): Add declaration.
11603 * ppc-nbsd-tdep.c (_initialize_ppcnbsd_tdep): Add declaration.
11604 * ppc-obsd-nat.c (_initialize_ppcobsd_nat): Add declaration.
11605 * ppc-obsd-tdep.c (_initialize_ppcobsd_tdep): Add declaration.
11606 * printcmd.c (_initialize_printcmd): Add declaration.
11607 * probe.c (_initialize_probe): Add declaration.
11608 * proc-api.c (_initialize_proc_api): Add declaration.
11609 * proc-events.c (_initialize_proc_events): Add declaration.
11610 * proc-service.c (_initialize_proc_service): Add declaration.
11611 * procfs.c (_initialize_procfs): Add declaration.
11612 * producer.c (_initialize_producer): Add declaration.
11613 * psymtab.c (_initialize_psymtab): Add declaration.
11614 * python/python.c (_initialize_python): Add declaration.
11615 * ravenscar-thread.c (_initialize_ravenscar): Add declaration.
11616 * record-btrace.c (_initialize_record_btrace): Add declaration.
11617 * record-full.c (_initialize_record_full): Add declaration.
11618 * record.c (_initialize_record): Add declaration.
11619 * regcache-dump.c (_initialize_regcache_dump): Add declaration.
11620 * regcache.c (_initialize_regcache): Add declaration.
11621 * reggroups.c (_initialize_reggroup): Add declaration.
11622 * remote-notif.c (_initialize_notif): Add declaration.
11623 * remote-sim.c (_initialize_remote_sim): Add declaration.
11624 * remote.c (_initialize_remote): Add declaration.
11625 * reverse.c (_initialize_reverse): Add declaration.
11626 * riscv-fbsd-nat.c (_initialize_riscv_fbsd_nat): Add declaration.
11627 * riscv-fbsd-tdep.c (_initialize_riscv_fbsd_tdep): Add declaration.
11628 * riscv-linux-nat.c (_initialize_riscv_linux_nat): Add declaration.
11629 * riscv-linux-tdep.c (_initialize_riscv_linux_tdep): Add declaration.
11630 * riscv-tdep.c (_initialize_riscv_tdep): Add declaration.
11631 * rl78-tdep.c (_initialize_rl78_tdep): Add declaration.
11632 * rs6000-aix-tdep.c (_initialize_rs6000_aix_tdep): Add declaration.
11633 * rs6000-lynx178-tdep.c (_initialize_rs6000_lynx178_tdep):
11634 Add declaration.
11635 * rs6000-nat.c (_initialize_rs6000_nat): Add declaration.
11636 * rs6000-tdep.c (_initialize_rs6000_tdep): Add declaration.
11637 * run-on-main-thread.c (_initialize_run_on_main_thread): Add declaration.
11638 * rust-exp.y (_initialize_rust_exp): Add declaration.
11639 * rx-tdep.c (_initialize_rx_tdep): Add declaration.
11640 * s12z-tdep.c (_initialize_s12z_tdep): Add declaration.
11641 * s390-linux-nat.c (_initialize_s390_nat): Add declaration.
11642 * s390-linux-tdep.c (_initialize_s390_linux_tdep): Add declaration.
11643 * s390-tdep.c (_initialize_s390_tdep): Add declaration.
11644 * score-tdep.c (_initialize_score_tdep): Add declaration.
11645 * ser-go32.c (_initialize_ser_dos): Add declaration.
11646 * ser-mingw.c (_initialize_ser_windows): Add declaration.
11647 * ser-pipe.c (_initialize_ser_pipe): Add declaration.
11648 * ser-tcp.c (_initialize_ser_tcp): Add declaration.
11649 * ser-uds.c (_initialize_ser_socket): Add declaration.
11650 * ser-unix.c (_initialize_ser_hardwire): Add declaration.
11651 * serial.c (_initialize_serial): Add declaration.
11652 * sh-linux-tdep.c (_initialize_sh_linux_tdep): Add declaration.
11653 * sh-nbsd-nat.c (_initialize_shnbsd_nat): Add declaration.
11654 * sh-nbsd-tdep.c (_initialize_shnbsd_tdep): Add declaration.
11655 * sh-tdep.c (_initialize_sh_tdep): Add declaration.
11656 * skip.c (_initialize_step_skip): Add declaration.
11657 * sol-thread.c (_initialize_sol_thread): Add declaration.
11658 * solib-aix.c (_initialize_solib_aix): Add declaration.
11659 * solib-darwin.c (_initialize_darwin_solib): Add declaration.
11660 * solib-dsbt.c (_initialize_dsbt_solib): Add declaration.
11661 * solib-frv.c (_initialize_frv_solib): Add declaration.
11662 * solib-svr4.c (_initialize_svr4_solib): Add declaration.
11663 * solib-target.c (_initialize_solib_target): Add declaration.
11664 * solib.c (_initialize_solib): Add declaration.
11665 * source-cache.c (_initialize_source_cache): Add declaration.
11666 * source.c (_initialize_source): Add declaration.
11667 * sparc-linux-nat.c (_initialize_sparc_linux_nat): Add declaration.
11668 * sparc-linux-tdep.c (_initialize_sparc_linux_tdep): Add declaration.
11669 * sparc-nat.c (_initialize_sparc_nat): Add declaration.
11670 * sparc-nbsd-nat.c (_initialize_sparcnbsd_nat): Add declaration.
11671 * sparc-nbsd-tdep.c (_initialize_sparcnbsd_tdep): Add declaration.
11672 * sparc-obsd-tdep.c (_initialize_sparc32obsd_tdep): Add declaration.
11673 * sparc-sol2-tdep.c (_initialize_sparc_sol2_tdep): Add declaration.
11674 * sparc-tdep.c (_initialize_sparc_tdep): Add declaration.
11675 * sparc64-fbsd-nat.c (_initialize_sparc64fbsd_nat): Add declaration.
11676 * sparc64-fbsd-tdep.c (_initialize_sparc64fbsd_tdep): Add declaration.
11677 * sparc64-linux-nat.c (_initialize_sparc64_linux_nat): Add declaration.
11678 * sparc64-linux-tdep.c (_initialize_sparc64_linux_tdep): Add declaration.
11679 * sparc64-nat.c (_initialize_sparc64_nat): Add declaration.
11680 * sparc64-nbsd-nat.c (_initialize_sparc64nbsd_nat): Add declaration.
11681 * sparc64-nbsd-tdep.c (_initialize_sparc64nbsd_tdep): Add declaration.
11682 * sparc64-obsd-nat.c (_initialize_sparc64obsd_nat): Add declaration.
11683 * sparc64-obsd-tdep.c (_initialize_sparc64obsd_tdep): Add declaration.
11684 * sparc64-sol2-tdep.c (_initialize_sparc64_sol2_tdep): Add declaration.
11685 * sparc64-tdep.c (_initialize_sparc64_adi_tdep): Add declaration.
11686 * stabsread.c (_initialize_stabsread): Add declaration.
11687 * stack.c (_initialize_stack): Add declaration.
11688 * stap-probe.c (_initialize_stap_probe): Add declaration.
11689 * std-regs.c (_initialize_frame_reg): Add declaration.
11690 * symfile-debug.c (_initialize_symfile_debug): Add declaration.
11691 * symfile-mem.c (_initialize_symfile_mem): Add declaration.
11692 * symfile.c (_initialize_symfile): Add declaration.
11693 * symmisc.c (_initialize_symmisc): Add declaration.
11694 * symtab.c (_initialize_symtab): Add declaration.
11695 * target.c (_initialize_target): Add declaration.
11696 * target-connection.c (_initialize_target_connection): Add
11697 declaration.
11698 * target-dcache.c (_initialize_target_dcache): Add declaration.
11699 * target-descriptions.c (_initialize_target_descriptions): Add declaration.
11700 * thread.c (_initialize_thread): Add declaration.
11701 * tic6x-linux-tdep.c (_initialize_tic6x_linux_tdep): Add declaration.
11702 * tic6x-tdep.c (_initialize_tic6x_tdep): Add declaration.
11703 * tilegx-linux-nat.c (_initialize_tile_linux_nat): Add declaration.
11704 * tilegx-linux-tdep.c (_initialize_tilegx_linux_tdep): Add declaration.
11705 * tilegx-tdep.c (_initialize_tilegx_tdep): Add declaration.
11706 * tracectf.c (_initialize_ctf): Add declaration.
11707 * tracefile-tfile.c (_initialize_tracefile_tfile): Add declaration.
11708 * tracefile.c (_initialize_tracefile): Add declaration.
11709 * tracepoint.c (_initialize_tracepoint): Add declaration.
11710 * tui/tui-hooks.c (_initialize_tui_hooks): Add declaration.
11711 * tui/tui-interp.c (_initialize_tui_interp): Add declaration.
11712 * tui/tui-layout.c (_initialize_tui_layout): Add declaration.
11713 * tui/tui-regs.c (_initialize_tui_regs): Add declaration.
11714 * tui/tui-stack.c (_initialize_tui_stack): Add declaration.
11715 * tui/tui-win.c (_initialize_tui_win): Add declaration.
11716 * tui/tui.c (_initialize_tui): Add declaration.
11717 * typeprint.c (_initialize_typeprint): Add declaration.
11718 * ui-style.c (_initialize_ui_style): Add declaration.
11719 * unittests/array-view-selftests.c (_initialize_array_view_selftests): Add declaration.
11720 * unittests/child-path-selftests.c (_initialize_child_path_selftests): Add declaration.
11721 * unittests/cli-utils-selftests.c (_initialize_cli_utils_selftests): Add declaration.
11722 * unittests/common-utils-selftests.c (_initialize_common_utils_selftests): Add declaration.
11723 * unittests/copy_bitwise-selftests.c (_initialize_copy_bitwise_utils_selftests): Add declaration.
11724 * unittests/environ-selftests.c (_initialize_environ_selftests): Add declaration.
11725 * unittests/filtered_iterator-selftests.c
11726 (_initialize_filtered_iterator_selftests): Add declaration.
11727 * unittests/format_pieces-selftests.c (_initialize_format_pieces_selftests): Add declaration.
11728 * unittests/function-view-selftests.c (_initialize_function_view_selftests): Add declaration.
11729 * unittests/help-doc-selftests.c (_initialize_help_doc_selftests): Add declaration.
11730 * unittests/lookup_name_info-selftests.c (_initialize_lookup_name_info_selftests): Add declaration.
11731 * unittests/main-thread-selftests.c
11732 (_initialize_main_thread_selftests): Add declaration.
11733 * unittests/memory-map-selftests.c (_initialize_memory_map_selftests): Add declaration.
11734 * unittests/memrange-selftests.c (_initialize_memrange_selftests): Add declaration.
11735 * unittests/mkdir-recursive-selftests.c (_initialize_mkdir_recursive_selftests): Add declaration.
11736 * unittests/observable-selftests.c (_initialize_observer_selftest): Add declaration.
11737 * unittests/offset-type-selftests.c (_initialize_offset_type_selftests): Add declaration.
11738 * unittests/optional-selftests.c (_initialize_optional_selftests): Add declaration.
11739 * unittests/parse-connection-spec-selftests.c (_initialize_parse_connection_spec_selftests): Add declaration.
11740 * unittests/rsp-low-selftests.c (_initialize_rsp_low_selftests): Add declaration.
11741 * unittests/scoped_fd-selftests.c (_initialize_scoped_fd_selftests): Add declaration.
11742 * unittests/scoped_mmap-selftests.c (_initialize_scoped_mmap_selftests): Add declaration.
11743 * unittests/scoped_restore-selftests.c (_initialize_scoped_restore_selftests): Add declaration.
11744 * unittests/string_view-selftests.c (_initialize_string_view_selftests): Add declaration.
11745 * unittests/style-selftests.c (_initialize_style_selftest): Add declaration.
11746 * unittests/tracepoint-selftests.c (_initialize_tracepoint_selftests): Add declaration.
11747 * unittests/tui-selftests.c (_initialize_tui_selftest): Add
11748 declaration.
11749 * unittests/unpack-selftests.c (_initialize_unpack_selftests): Add declaration.
11750 * unittests/utils-selftests.c (_initialize_utils_selftests): Add declaration.
11751 * unittests/vec-utils-selftests.c (_initialize_vec_utils_selftests): Add declaration.
11752 * unittests/xml-utils-selftests.c (_initialize_xml_utils): Add declaration.
11753 * user-regs.c (_initialize_user_regs): Add declaration.
11754 * utils.c (_initialize_utils): Add declaration.
11755 * v850-tdep.c (_initialize_v850_tdep): Add declaration.
11756 * valops.c (_initialize_valops): Add declaration.
11757 * valprint.c (_initialize_valprint): Add declaration.
11758 * value.c (_initialize_values): Add declaration.
11759 * varobj.c (_initialize_varobj): Add declaration.
11760 * vax-bsd-nat.c (_initialize_vaxbsd_nat): Add declaration.
11761 * vax-nbsd-tdep.c (_initialize_vaxnbsd_tdep): Add declaration.
11762 * vax-tdep.c (_initialize_vax_tdep): Add declaration.
11763 * windows-nat.c (_initialize_windows_nat): Add declaration.
11764 (_initialize_check_for_gdb_ini): Add declaration.
11765 (_initialize_loadable): Add declaration.
11766 * windows-tdep.c (_initialize_windows_tdep): Add declaration.
11767 * x86-bsd-nat.c (_initialize_x86_bsd_nat): Add declaration.
11768 * x86-linux-nat.c (_initialize_x86_linux_nat): Add declaration.
11769 * xcoffread.c (_initialize_xcoffread): Add declaration.
11770 * xml-support.c (_initialize_xml_support): Add declaration.
11771 * xstormy16-tdep.c (_initialize_xstormy16_tdep): Add declaration.
11772 * xtensa-linux-nat.c (_initialize_xtensa_linux_nat): Add declaration.
11773 * xtensa-linux-tdep.c (_initialize_xtensa_linux_tdep): Add declaration.
11774 * xtensa-tdep.c (_initialize_xtensa_tdep): Add declaration.
11775
11776 2020-01-13 Simon Marchi <simon.marchi@polymtl.ca>
11777
11778 * regformats/regdat.sh: Generate declaration for init function.
11779
11780 2020-01-13 Simon Marchi <simon.marchi@polymtl.ca>
11781
11782 * remote-sim.c (next_pid, INITIAL_PID, sim_inferior_data): Move
11783 up.
11784 (gdbsim_target) <get_inferior_data_by_ptid, resume_one_inferior,
11785 close_one_inferior>: New methods.
11786 (get_sim_inferior_data_by_ptid): Move to gdbsim_target,
11787 pass down target to find_inferior_pid.
11788 (gdbsim_target::fetch_registers, gdbsim_target::store_registers):
11789 Pass down target to find_inferior_ptid.
11790 (gdbsim_target::create_inferior): Pass down target to
11791 add_thread_silent.
11792 (gdbsim_close_inferior): Move to gdbsim_close_inferior, pass
11793 target down to find_inferior_ptid and switch_to_thread.
11794 (gdbsim_target::close): Update to call close_one_inferior.
11795 (struct resume_data): Remove.
11796 (gdbsim_resume_inferior): Move to gdbsim_target. Take arguments
11797 directly, rather than through a void pointer.
11798 (gdbsim_target::resume): Update to call resume_one_inferior.
11799
11800 2020-01-12 Simon Marchi <simon.marchi@polymtl.ca>
11801
11802 * gdbsupport/gdb_wait.c: Include gdb_wait.h.
11803
11804 2020-01-12 Pedro Alves <palves@redhat.com>
11805
11806 * bsd-kvm.c (bsd_kvm_target::close): Call exit_inferior_silent
11807 directly for the current inferior instead of
11808 discard_all_inferiors.
11809 (discard_all_inferiors): Delete.
11810
11811 2020-01-11 Tom Tromey <tom@tromey.com>
11812
11813 * tui/tui-wingeneral.c (box_win): Check cli_styling.
11814 * tui/tui-winsource.c (tui_source_window_base::refill): Use
11815 deprecated_safe_get_selected_frame.
11816
11817 2020-01-10 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
11818
11819 * inferior.c (print_inferior): Switch inferior before printing it.
11820
11821 2020-01-10 Aleksandar Paunovic <aleksandar.paunovic@intel.com>
11822 Pedro Alves <palves@redhat.com>
11823
11824 * progspace-and-thread.c (switch_to_program_space_and_thread):
11825 Assert there's an inferior for PSPACE. Use
11826 switch_to_inferior_no_thread to switch the inferior too.
11827 * progspace.c (program_space::~program_space): Call
11828 clear_symtab_users here, with SYMFILE_DEFER_BP_RESET.
11829 (program_space::free_all_objfiles): Don't call clear_symtab_users
11830 here.
11831 * symfile.c (symbol_file_clear): Call clear_symtab_users here.
11832
11833 2020-01-10 Pedro Alves <palves@redhat.com>
11834
11835 * NEWS: Mention multi-target debugging, "info connections", and
11836 "add-inferior -no-connection".
11837
11838 2020-01-10 Pedro Alves <palves@redhat.com>
11839
11840 * infrun.c: Include "target-connection.h".
11841 (check_multi_target_resumption): New.
11842 (proceed): Call it.
11843 * target-connection.c (make_target_connection_string): Make
11844 extern.
11845 * target-connection.h (make_target_connection_string): Declare.
11846
11847 2020-01-10 Pedro Alves <palves@redhat.com>
11848
11849 * Makefile.in (COMMON_SFILES): Add target-connection.c.
11850 * inferior.c (uiout_field_connection): New function.
11851 (print_inferior): Add new "connection-id" column.
11852 (add_inferior_command): Show connection number/string of added
11853 inferior.
11854 * process-stratum-target.h
11855 (process_stratum_target::connection_string): New virtual method.
11856 (process_stratum_target::connection_number): New field.
11857 * remote.c (remote_target::connection_string): New override.
11858 * target-connection.c: New file.
11859 * target-connection.h: New file.
11860 * target.c (decref_target): Remove process_stratum targets from
11861 the connection list.
11862 (target_stack::push): Add process_stratum targets to the
11863 connection list.
11864
11865 2020-01-10 Pedro Alves <palves@redhat.com>
11866
11867 Revert:
11868 2016-04-12 Pedro Alves <palves@redhat.com>
11869 * serial.c (serial_open, serial_fdopen_ops, do_serial_close):
11870 Remove references to name.
11871 * serial.h (struct serial) <name>: Delete.
11872
11873 2020-01-10 Pedro Alves <palves@redhat.com>
11874
11875 * gdbarch-selftests.c (register_to_value_test): Remove "target
11876 already pushed" check.
11877
11878 2020-01-10 Pedro Alves <palves@redhat.com>
11879 John Baldwin <jhb@FreeBSD.org>
11880
11881 * aarch64-linux-nat.c
11882 (aarch64_linux_nat_target::thread_architecture): Adjust.
11883 * ada-tasks.c (print_ada_task_info): Adjust find_thread_ptid call.
11884 (task_command_1): Likewise.
11885 * aix-thread.c (sync_threadlists, aix_thread_target::resume)
11886 (aix_thread_target::wait, aix_thread_target::fetch_registers)
11887 (aix_thread_target::store_registers)
11888 (aix_thread_target::thread_alive): Adjust.
11889 * amd64-fbsd-tdep.c: Include "inferior.h".
11890 (amd64fbsd_get_thread_local_address): Pass down target.
11891 * amd64-linux-nat.c (ps_get_thread_area): Use ps_prochandle
11892 thread's gdbarch instead of target_gdbarch.
11893 * break-catch-sig.c (signal_catchpoint_print_it): Adjust call to
11894 get_last_target_status.
11895 * break-catch-syscall.c (print_it_catch_syscall): Likewise.
11896 * breakpoint.c (breakpoints_should_be_inserted_now): Consider all
11897 inferiors.
11898 (update_inserted_breakpoint_locations): Skip if inferiors with no
11899 execution.
11900 (update_global_location_list): When handling moribund locations,
11901 find representative inferior for location's pspace, and use thread
11902 count of its process_stratum target.
11903 * bsd-kvm.c (bsd_kvm_target_open): Pass target down.
11904 * bsd-uthread.c (bsd_uthread_target::wait): Use
11905 as_process_stratum_target and adjust thread_change_ptid and
11906 add_thread calls.
11907 (bsd_uthread_target::update_thread_list): Use
11908 as_process_stratum_target and adjust find_thread_ptid,
11909 thread_change_ptid and add_thread calls.
11910 * btrace.c (maint_btrace_packet_history_cmd): Adjust
11911 find_thread_ptid call.
11912 * corelow.c (add_to_thread_list): Adjust add_thread call.
11913 (core_target_open): Adjust add_thread_silent and thread_count
11914 calls.
11915 (core_target::pid_to_str): Adjust find_inferior_ptid call.
11916 * ctf.c (ctf_target_open): Adjust add_thread_silent call.
11917 * event-top.c (async_disconnect): Pop targets from all inferiors.
11918 * exec.c (add_target_sections): Push exec target on all inferiors
11919 sharing the program space.
11920 (remove_target_sections): Remove the exec target from all
11921 inferiors sharing the program space.
11922 (exec_on_vfork): New.
11923 * exec.h (exec_on_vfork): Declare.
11924 * fbsd-nat.c (fbsd_add_threads): Add fbsd_nat_target parameter.
11925 Pass it down.
11926 (fbsd_nat_target::update_thread_list): Adjust.
11927 (fbsd_nat_target::resume): Adjust.
11928 (fbsd_handle_debug_trap): Add fbsd_nat_target parameter. Pass it
11929 down.
11930 (fbsd_nat_target::wait, fbsd_nat_target::post_attach): Adjust.
11931 * fbsd-tdep.c (fbsd_corefile_thread): Adjust
11932 get_thread_arch_regcache call.
11933 * fork-child.c (gdb_startup_inferior): Pass target down to
11934 startup_inferior and set_executing.
11935 * gdbthread.h (struct process_stratum_target): Forward declare.
11936 (add_thread, add_thread_silent, add_thread_with_info)
11937 (in_thread_list): Add process_stratum_target parameter.
11938 (find_thread_ptid(inferior*, ptid_t)): New overload.
11939 (find_thread_ptid, thread_change_ptid): Add process_stratum_target
11940 parameter.
11941 (all_threads()): Delete overload.
11942 (all_threads, all_non_exited_threads): Add process_stratum_target
11943 parameter.
11944 (all_threads_safe): Use brace initialization.
11945 (thread_count): Add process_stratum_target parameter.
11946 (set_resumed, set_running, set_stop_requested, set_executing)
11947 (threads_are_executing, finish_thread_state): Add
11948 process_stratum_target parameter.
11949 (switch_to_thread): Use is_current_thread.
11950 * i386-fbsd-tdep.c: Include "inferior.h".
11951 (i386fbsd_get_thread_local_address): Pass down target.
11952 * i386-linux-nat.c (i386_linux_nat_target::low_resume): Adjust.
11953 * inf-child.c (inf_child_target::maybe_unpush_target): Remove
11954 have_inferiors check.
11955 * inf-ptrace.c (inf_ptrace_target::create_inferior)
11956 (inf_ptrace_target::attach): Adjust.
11957 * infcall.c (run_inferior_call): Adjust.
11958 * infcmd.c (run_command_1): Pass target to
11959 scoped_finish_thread_state.
11960 (proceed_thread_callback): Skip inferiors with no execution.
11961 (continue_command): Rename 'all_threads' local to avoid hiding
11962 'all_threads' function. Adjust get_last_target_status call.
11963 (prepare_one_step): Adjust set_running call.
11964 (signal_command): Use user_visible_resume_target. Compare thread
11965 pointers instead of inferior_ptid.
11966 (info_program_command): Adjust to pass down target.
11967 (attach_command): Mark target's 'thread_executing' flag.
11968 (stop_current_target_threads_ns): New, factored out from ...
11969 (interrupt_target_1): ... this. Switch inferior before making
11970 target calls.
11971 * inferior-iter.h
11972 (struct all_inferiors_iterator, struct all_inferiors_range)
11973 (struct all_inferiors_safe_range)
11974 (struct all_non_exited_inferiors_range): Filter on
11975 process_stratum_target too. Remove explicit.
11976 * inferior.c (inferior::inferior): Push dummy target on target
11977 stack.
11978 (find_inferior_pid, find_inferior_ptid, number_of_live_inferiors):
11979 Add process_stratum_target parameter, and pass it down.
11980 (have_live_inferiors): Adjust.
11981 (switch_to_inferior_and_push_target): New.
11982 (add_inferior_command, clone_inferior_command): Handle
11983 "-no-connection" parameter. Use
11984 switch_to_inferior_and_push_target.
11985 (_initialize_inferior): Mention "-no-connection" option in
11986 the help of "add-inferior" and "clone-inferior" commands.
11987 * inferior.h: Include "process-stratum-target.h".
11988 (interrupt_target_1): Use bool.
11989 (struct inferior) <push_target, unpush_target, target_is_pushed,
11990 find_target_beneath, top_target, process_target, target_at,
11991 m_stack>: New.
11992 (discard_all_inferiors): Delete.
11993 (find_inferior_pid, find_inferior_ptid, number_of_live_inferiors)
11994 (all_inferiors, all_non_exited_inferiors): Add
11995 process_stratum_target parameter.
11996 * infrun.c: Include "gdb_select.h" and <unordered_map>.
11997 (target_last_proc_target): New global.
11998 (follow_fork_inferior): Push target on new inferior. Pass target
11999 to add_thread_silent. Call exec_on_vfork. Handle target's
12000 reference count.
12001 (follow_fork): Adjust get_last_target_status call. Also consider
12002 target.
12003 (follow_exec): Push target on new inferior.
12004 (struct execution_control_state) <target>: New field.
12005 (user_visible_resume_target): New.
12006 (do_target_resume): Call target_async.
12007 (resume_1): Set target's threads_executing flag. Consider resume
12008 target.
12009 (commit_resume_all_targets): New.
12010 (proceed): Also consider resume target. Skip threads of inferiors
12011 with no execution. Commit resumtion in all targets.
12012 (start_remote): Pass current inferior to wait_for_inferior.
12013 (infrun_thread_stop_requested): Consider target as well. Pass
12014 thread_info pointer to clear_inline_frame_state instead of ptid.
12015 (infrun_thread_thread_exit): Consider target as well.
12016 (random_pending_event_thread): New inferior parameter. Use it.
12017 (do_target_wait): Rename to ...
12018 (do_target_wait_1): ... this. Add inferior parameter, and pass it
12019 down.
12020 (threads_are_resumed_pending_p, do_target_wait): New.
12021 (prepare_for_detach): Adjust calls.
12022 (wait_for_inferior): New inferior parameter. Handle it. Use
12023 do_target_wait_1 instead of do_target_wait.
12024 (fetch_inferior_event): Adjust. Switch to representative
12025 inferior. Pass target down.
12026 (set_last_target_status): Add process_stratum_target parameter.
12027 Save target in global.
12028 (get_last_target_status): Add process_stratum_target parameter and
12029 handle it.
12030 (nullify_last_target_wait_ptid): Clear 'target_last_proc_target'.
12031 (context_switch): Check inferior_ptid == null_ptid before calling
12032 inferior_thread().
12033 (get_inferior_stop_soon): Pass down target.
12034 (wait_one): Rename to ...
12035 (poll_one_curr_target): ... this.
12036 (struct wait_one_event): New.
12037 (wait_one): New.
12038 (stop_all_threads): Adjust.
12039 (handle_no_resumed, handle_inferior_event): Adjust to consider the
12040 event's target.
12041 (switch_back_to_stepped_thread): Also consider target.
12042 (print_stop_event): Update.
12043 (normal_stop): Update. Also consider the resume target.
12044 * infrun.h (wait_for_inferior): Remove declaration.
12045 (user_visible_resume_target): New declaration.
12046 (get_last_target_status, set_last_target_status): New
12047 process_stratum_target parameter.
12048 * inline-frame.c (clear_inline_frame_state(ptid_t)): Add
12049 process_stratum_target parameter, and use it.
12050 (clear_inline_frame_state (thread_info*)): New.
12051 * inline-frame.c (clear_inline_frame_state(ptid_t)): Add
12052 process_stratum_target parameter.
12053 (clear_inline_frame_state (thread_info*)): Declare.
12054 * linux-fork.c (delete_checkpoint_command): Pass target down to
12055 find_thread_ptid.
12056 (checkpoint_command): Adjust.
12057 * linux-nat.c (linux_nat_target::follow_fork): Switch to thread
12058 instead of just tweaking inferior_ptid.
12059 (linux_nat_switch_fork): Pass target down to thread_change_ptid.
12060 (exit_lwp): Pass target down to find_thread_ptid.
12061 (attach_proc_task_lwp_callback): Pass target down to
12062 add_thread/set_running/set_executing.
12063 (linux_nat_target::attach): Pass target down to
12064 thread_change_ptid.
12065 (get_detach_signal): Pass target down to find_thread_ptid.
12066 Consider last target status's target.
12067 (linux_resume_one_lwp_throw, resume_lwp)
12068 (linux_handle_syscall_trap, linux_handle_extended_wait, wait_lwp)
12069 (stop_wait_callback, save_stop_reason, linux_nat_filter_event)
12070 (linux_nat_wait_1, resume_stopped_resumed_lwps): Pass target down.
12071 (linux_nat_target::async_wait_fd): New.
12072 (linux_nat_stop_lwp, linux_nat_target::thread_address_space): Pass
12073 target down.
12074 * linux-nat.h (linux_nat_target::async_wait_fd): Declare.
12075 * linux-tdep.c (get_thread_arch_regcache): Pass target down.
12076 * linux-thread-db.c (struct thread_db_info::process_target): New
12077 field.
12078 (add_thread_db_info): Save target.
12079 (get_thread_db_info): New process_stratum_target parameter. Also
12080 match target.
12081 (delete_thread_db_info): New process_stratum_target parameter.
12082 Also match target.
12083 (thread_from_lwp): Adjust to pass down target.
12084 (thread_db_notice_clone): Pass down target.
12085 (check_thread_db_callback): Pass down target.
12086 (try_thread_db_load_1): Always push the thread_db target.
12087 (try_thread_db_load, record_thread): Pass target down.
12088 (thread_db_target::detach): Pass target down. Always unpush the
12089 thread_db target.
12090 (thread_db_target::wait, thread_db_target::mourn_inferior): Pass
12091 target down. Always unpush the thread_db target.
12092 (find_new_threads_callback, thread_db_find_new_threads_2)
12093 (thread_db_target::update_thread_list): Pass target down.
12094 (thread_db_target::pid_to_str): Pass current inferior down.
12095 (thread_db_target::get_thread_local_address): Pass target down.
12096 (thread_db_target::resume, maintenance_check_libthread_db): Pass
12097 target down.
12098 * nto-procfs.c (nto_procfs_target::update_thread_list): Adjust.
12099 * procfs.c (procfs_target::procfs_init_inferior): Declare.
12100 (proc_set_current_signal, do_attach, procfs_target::wait): Adjust.
12101 (procfs_init_inferior): Rename to ...
12102 (procfs_target::procfs_init_inferior): ... this and adjust.
12103 (procfs_target::create_inferior, procfs_notice_thread)
12104 (procfs_do_thread_registers): Adjust.
12105 * ppc-fbsd-tdep.c: Include "inferior.h".
12106 (ppcfbsd_get_thread_local_address): Pass down target.
12107 * proc-service.c (ps_xfer_memory): Switch current inferior and
12108 program space as well.
12109 (get_ps_regcache): Pass target down.
12110 * process-stratum-target.c
12111 (process_stratum_target::thread_address_space)
12112 (process_stratum_target::thread_architecture): Pass target down.
12113 * process-stratum-target.h
12114 (process_stratum_target::threads_executing): New field.
12115 (as_process_stratum_target): New.
12116 * ravenscar-thread.c
12117 (ravenscar_thread_target::update_inferior_ptid): Pass target down.
12118 (ravenscar_thread_target::wait, ravenscar_add_thread): Pass target
12119 down.
12120 * record-btrace.c (record_btrace_target::info_record): Adjust.
12121 (record_btrace_target::record_method)
12122 (record_btrace_target::record_is_replaying)
12123 (record_btrace_target::fetch_registers)
12124 (get_thread_current_frame_id, record_btrace_target::resume)
12125 (record_btrace_target::wait, record_btrace_target::stop): Pass
12126 target down.
12127 * record-full.c (record_full_wait_1): Switch to event thread.
12128 Pass target down.
12129 * regcache.c (regcache::regcache)
12130 (get_thread_arch_aspace_regcache, get_thread_arch_regcache): Add
12131 process_stratum_target parameter and handle it.
12132 (current_thread_target): New global.
12133 (get_thread_regcache): Add process_stratum_target parameter and
12134 handle it. Switch inferior before calling target method.
12135 (get_thread_regcache): Pass target down.
12136 (get_thread_regcache_for_ptid): Pass target down.
12137 (registers_changed_ptid): Add process_stratum_target parameter and
12138 handle it.
12139 (registers_changed_thread, registers_changed): Pass target down.
12140 (test_get_thread_arch_aspace_regcache): New.
12141 (current_regcache_test): Define a couple local test_target_ops
12142 instances and use them for testing.
12143 (readwrite_regcache): Pass process_stratum_target parameter.
12144 (cooked_read_test, cooked_write_test): Pass mock_target down.
12145 * regcache.h (get_thread_regcache, get_thread_arch_regcache)
12146 (get_thread_arch_aspace_regcache): Add process_stratum_target
12147 parameter.
12148 (regcache::target): New method.
12149 (regcache::regcache, regcache::get_thread_arch_aspace_regcache)
12150 (regcache::registers_changed_ptid): Add process_stratum_target
12151 parameter.
12152 (regcache::m_target): New field.
12153 (registers_changed_ptid): Add process_stratum_target parameter.
12154 * remote.c (remote_state::supports_vCont_probed): New field.
12155 (remote_target::async_wait_fd): New method.
12156 (remote_unpush_and_throw): Add remote_target parameter.
12157 (get_current_remote_target): Adjust.
12158 (remote_target::remote_add_inferior): Push target.
12159 (remote_target::remote_add_thread)
12160 (remote_target::remote_notice_new_inferior)
12161 (get_remote_thread_info): Pass target down.
12162 (remote_target::update_thread_list): Skip threads of inferiors
12163 bound to other targets. (remote_target::close): Don't discard
12164 inferiors. (remote_target::add_current_inferior_and_thread)
12165 (remote_target::process_initial_stop_replies)
12166 (remote_target::start_remote)
12167 (remote_target::remote_serial_quit_handler): Pass down target.
12168 (remote_target::remote_unpush_target): New remote_target
12169 parameter. Unpush the target from all inferiors.
12170 (remote_target::remote_unpush_and_throw): New remote_target
12171 parameter. Pass it down.
12172 (remote_target::open_1): Check whether the current inferior has
12173 execution instead of checking whether any inferior is live. Pass
12174 target down.
12175 (remote_target::remote_detach_1): Pass down target. Use
12176 remote_unpush_target.
12177 (extended_remote_target::attach): Pass down target.
12178 (remote_target::remote_vcont_probe): Set supports_vCont_probed.
12179 (remote_target::append_resumption): Pass down target.
12180 (remote_target::append_pending_thread_resumptions)
12181 (remote_target::remote_resume_with_hc, remote_target::resume)
12182 (remote_target::commit_resume): Pass down target.
12183 (remote_target::remote_stop_ns): Check supports_vCont_probed.
12184 (remote_target::interrupt_query)
12185 (remote_target::remove_new_fork_children)
12186 (remote_target::check_pending_events_prevent_wildcard_vcont)
12187 (remote_target::remote_parse_stop_reply)
12188 (remote_target::process_stop_reply): Pass down target.
12189 (first_remote_resumed_thread): New remote_target parameter. Pass
12190 it down.
12191 (remote_target::wait_as): Pass down target.
12192 (unpush_and_perror): New remote_target parameter. Pass it down.
12193 (remote_target::readchar, remote_target::remote_serial_write)
12194 (remote_target::getpkt_or_notif_sane_1)
12195 (remote_target::kill_new_fork_children, remote_target::kill): Pass
12196 down target.
12197 (remote_target::mourn_inferior): Pass down target. Use
12198 remote_unpush_target.
12199 (remote_target::core_of_thread)
12200 (remote_target::remote_btrace_maybe_reopen): Pass down target.
12201 (remote_target::pid_to_exec_file)
12202 (remote_target::thread_handle_to_thread_info): Pass down target.
12203 (remote_target::async_wait_fd): New.
12204 * riscv-fbsd-tdep.c: Include "inferior.h".
12205 (riscv_fbsd_get_thread_local_address): Pass down target.
12206 * sol2-tdep.c (sol2_core_pid_to_str): Pass down target.
12207 * sol-thread.c (sol_thread_target::wait, ps_lgetregs, ps_lsetregs)
12208 (ps_lgetfpregs, ps_lsetfpregs, sol_update_thread_list_callback):
12209 Adjust.
12210 * solib-spu.c (spu_skip_standalone_loader): Pass down target.
12211 * solib-svr4.c (enable_break): Pass down target.
12212 * spu-multiarch.c (parse_spufs_run): Pass down target.
12213 * spu-tdep.c (spu2ppu_sniffer): Pass down target.
12214 * target-delegates.c: Regenerate.
12215 * target.c (g_target_stack): Delete.
12216 (current_top_target): Return the current inferior's top target.
12217 (target_has_execution_1): Refer to the passed-in inferior's top
12218 target.
12219 (target_supports_terminal_ours): Check whether the initial
12220 inferior was already created.
12221 (decref_target): New.
12222 (target_stack::push): Incref/decref the target.
12223 (push_target, push_target, unpush_target): Adjust.
12224 (target_stack::unpush): Defref target.
12225 (target_is_pushed): Return bool. Adjust to refer to the current
12226 inferior's target stack.
12227 (dispose_inferior): Delete, and inline parts ...
12228 (target_preopen): ... here. Only dispose of the current inferior.
12229 (target_detach): Hold strong target reference while detaching.
12230 Pass target down.
12231 (target_thread_name): Add assertion.
12232 (target_resume): Pass down target.
12233 (target_ops::beneath, find_target_at): Adjust to refer to the
12234 current inferior's target stack.
12235 (get_dummy_target): New.
12236 (target_pass_ctrlc): Pass the Ctrl-C to the first inferior that
12237 has a thread running.
12238 (initialize_targets): Rename to ...
12239 (_initialize_target): ... this.
12240 * target.h: Include "gdbsupport/refcounted-object.h".
12241 (struct target_ops): Inherit refcounted_object.
12242 (target_ops::shortname, target_ops::longname): Make const.
12243 (target_ops::async_wait_fd): New method.
12244 (decref_target): Declare.
12245 (struct target_ops_ref_policy): New.
12246 (target_ops_ref): New typedef.
12247 (get_dummy_target): Declare function.
12248 (target_is_pushed): Return bool.
12249 * thread-iter.c (all_matching_threads_iterator::m_inf_matches)
12250 (all_matching_threads_iterator::all_matching_threads_iterator):
12251 Handle filter target.
12252 * thread-iter.h (struct all_matching_threads_iterator, struct
12253 all_matching_threads_range, class all_non_exited_threads_range):
12254 Filter by target too. Remove explicit.
12255 * thread.c (threads_executing): Delete.
12256 (inferior_thread): Pass down current inferior.
12257 (clear_thread_inferior_resources): Pass down thread pointer
12258 instead of ptid_t.
12259 (add_thread_silent, add_thread_with_info, add_thread): Add
12260 process_stratum_target parameter. Use it for thread and inferior
12261 searches.
12262 (is_current_thread): New.
12263 (thread_info::deletable): Use it.
12264 (find_thread_ptid, thread_count, in_thread_list)
12265 (thread_change_ptid, set_resumed, set_running): New
12266 process_stratum_target parameter. Pass it down.
12267 (set_executing): New process_stratum_target parameter. Pass it
12268 down. Adjust reference to 'threads_executing'.
12269 (threads_are_executing): New process_stratum_target parameter.
12270 Adjust reference to 'threads_executing'.
12271 (set_stop_requested, finish_thread_state): New
12272 process_stratum_target parameter. Pass it down.
12273 (switch_to_thread): Also match inferior.
12274 (switch_to_thread): New process_stratum_target parameter. Pass it
12275 down.
12276 (update_threads_executing): Reimplement.
12277 * top.c (quit_force): Pop targets from all inferior.
12278 (gdb_init): Don't call initialize_targets.
12279 * windows-nat.c (windows_nat_target) <get_windows_debug_event>:
12280 Declare.
12281 (windows_add_thread, windows_delete_thread): Adjust.
12282 (get_windows_debug_event): Rename to ...
12283 (windows_nat_target::get_windows_debug_event): ... this. Adjust.
12284 * tracefile-tfile.c (tfile_target_open): Pass down target.
12285 * gdbsupport/common-gdbthread.h (struct process_stratum_target):
12286 Forward declare.
12287 (switch_to_thread): Add process_stratum_target parameter.
12288 * mi/mi-interp.c (mi_on_resume_1): Add process_stratum_target
12289 parameter. Use it.
12290 (mi_on_resume): Pass target down.
12291 * nat/fork-inferior.c (startup_inferior): Add
12292 process_stratum_target parameter. Pass it down.
12293 * nat/fork-inferior.h (startup_inferior): Add
12294 process_stratum_target parameter.
12295 * python/py-threadevent.c (py_get_event_thread): Pass target down.
12296
12297 2020-01-10 Pedro Alves <palves@redhat.com>
12298
12299 * remote.c (remote_target::start_remote): Don't set inferior_ptid
12300 directly. Instead find the first thread in the thread list and
12301 use switch_to_thread.
12302
12303 2020-01-10 Pedro Alves <palves@redhat.com>
12304
12305 * remote.c (remote_target::remote_add_inferior): Don't bind a
12306 process to the current inferior if the current inferior is already
12307 bound to a process.
12308
12309 2020-01-10 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
12310 Pedro Alves <palves@redhat.com>
12311
12312 * remote.c (remote_target::remote_parse_stop_reply) <W/X packets>:
12313 If no process is specified, return null_ptid instead of
12314 inferior_ptid.
12315 (remote_target::wait_as): Handle TARGET_WAITKIND_EXITED /
12316 TARGET_WAITKIND_SIGNALLED with no pid.
12317
12318 2020-01-10 Pedro Alves <palves@redhat.com>
12319
12320 * remote.c (first_remote_resumed_thread): New.
12321 (remote_target::wait_as): Use it as default event_ptid instead of
12322 inferior_ptid.
12323
12324 2020-01-10 Pedro Alves <palves@redhat.com>
12325
12326 * infrun.c (handle_no_resumed): Use all_non_exited_inferiors.
12327
12328 2020-01-10 Pedro Alves <palves@redhat.com>
12329
12330 * tracefile-tfile.c (tfile_target::close): Assert that trace_fd is
12331 not -1.
12332
12333 2020-01-10 Pedro Alves <palves@redhat.com>
12334
12335 * break-catch-sig.c (signal_catchpoint_print_it): Don't pass a
12336 ptid to get_last_target_status.
12337 * break-catch-syscall.c (print_it_catch_syscall): Don't pass a
12338 ptid to get_last_target_status.
12339 * infcmd.c (continue_command): Don't pass a target_waitstatus to
12340 get_last_target_status.
12341 (info_program_command): Don't pass a target_waitstatus to
12342 get_last_target_status.
12343 * infrun.c (init_wait_for_inferior): Use
12344 nullify_last_target_wait_ptid.
12345 (get_last_target_status): Handle nullptr arguments.
12346 (nullify_last_target_wait_ptid): Clear target_last_waitstatus.
12347 (print_stop_event): Don't pass a ptid to get_last_target_status.
12348 (normal_stop): Don't pass a ptid to get_last_target_status.
12349 * infrun.h (get_last_target_status, set_last_target_status): Move
12350 comments here and update.
12351 (nullify_last_target_wait_ptid): Declare.
12352 * linux-fork.c (fork_load_infrun_state): Remove local extern
12353 declaration of nullify_last_target_wait_ptid.
12354 * linux-nat.c (get_detach_signal): Don't pass a target_waitstatus
12355 to get_last_target_status.
12356
12357 2020-01-10 Pedro Alves <palves@redhat.com>
12358
12359 * gdbthread.h (scoped_restore_current_thread)
12360 <dont_restore, restore, m_dont_restore>: Declare.
12361 * thread.c (thread_alive): Add assertion. Return bool.
12362 (switch_to_thread_if_alive): New.
12363 (prune_threads): Switch inferior/thread.
12364 (print_thread_info_1): Switch thread before calling target methods.
12365 (scoped_restore_current_thread::restore): New, factored out from
12366 ...
12367 (scoped_restore_current_thread::~scoped_restore_current_thread):
12368 ... this.
12369 (scoped_restore_current_thread::scoped_restore_current_thread):
12370 Add assertion.
12371 (thread_apply_all_command, thread_select): Use
12372 switch_to_thread_if_alive.
12373 * infrun.c (proceed, restart_threads, handle_signal_stop)
12374 (switch_back_to_stepped_thread): Switch current thread before
12375 calling target methods.
12376
12377 2020-01-10 Pedro Alves <palves@redhat.com>
12378
12379 * inferior.c (switch_to_inferior_no_thread): New function,
12380 factored out from ...
12381 (inferior_command): ... here.
12382 * inferior.h (switch_to_inferior_no_thread): Declare.
12383 * mi/mi-main.c (run_one_inferior): Use
12384 switch_to_inferior_no_thread.
12385
12386 2020-01-10 Pedro Alves <palves@redhat.com>
12387
12388 * infcmd.c (kill_command): Remove dead code.
12389
12390 2020-01-10 Pedro Alves <palves@redhat.com>
12391
12392 * remote.c (remote_target::mourn_inferior): No longer check
12393 whether the target is running.
12394
12395 2020-01-10 Pedro Alves <palves@redhat.com>
12396
12397 * corelow.c (core_target::has_execution): Change parameter type to
12398 inferior pointer.
12399 * inferior.c (number_of_live_inferiors): Use
12400 inferior::has_execution instead of target_has_execution_1.
12401 * inferior.h (inferior::has_execution): New.
12402 * linux-thread-db.c (thread_db_target::update_thread_list): Use
12403 inferior::has_execution instead of target_has_execution_1.
12404 * process-stratum-target.c
12405 (process_stratum_target::has_execution): Change parameter type to
12406 inferior pointer. Check the inferior's PID instead of
12407 inferior_ptid.
12408 * process-stratum-target.h
12409 (process_stratum_target::has_execution): Change parameter type to
12410 inferior pointer.
12411 * record-full.c (record_full_core_target::has_execution): Change
12412 parameter type to inferior pointer.
12413 * target.c (target_has_execution_1): Change parameter type to
12414 inferior pointer.
12415 (target_has_execution_current): Adjust.
12416 * target.h (target_ops::has_execution): Change parameter type to
12417 inferior pointer.
12418 (target_has_execution_1): Change parameter type to inferior
12419 pointer. Change return type to bool.
12420 * tracefile.h (tracefile_target::has_execution): Change parameter
12421 type to inferior pointer.
12422
12423 2020-01-10 Pedro Alves <palves@redhat.com>
12424
12425 * exceptions.c (print_flush): Remove current_top_target() check.
12426
12427 2020-01-10 Pedro Alves <palves@redhat.com>
12428
12429 * remote.c (show_remote_exec_file): Show the current inferior's
12430 exec-file instead of the command variable's value.
12431
12432 2020-01-10 Pedro Alves <palves@redhat.com>
12433
12434 * record-full.c (record_full_resume_ptid): New global.
12435 (record_full_target::resume): Set it.
12436 (record_full_wait_1): Use record_full_resume_ptid instead of
12437 inferior_ptid.
12438
12439 2020-01-10 Pedro Alves <palves@redhat.com>
12440
12441 * gdbthread.h (scoped_restore_current_thread)
12442 <dont_restore, restore, m_dont_restore>: Declare.
12443 * thread.c (thread_alive): Add assertion. Return bool.
12444 (switch_to_thread_if_alive): New.
12445 (prune_threads): Switch inferior/thread.
12446 (print_thread_info_1): Switch thread before calling target methods.
12447 (scoped_restore_current_thread::restore): New, factored out from
12448 ...
12449 (scoped_restore_current_thread::~scoped_restore_current_thread):
12450 ... this.
12451 (scoped_restore_current_thread::scoped_restore_current_thread):
12452 Add assertion.
12453 (thread_apply_all_command, thread_select): Use
12454 switch_to_thread_if_alive.
12455
12456 2020-01-10 George Barrett <bob@bob131.so>
12457
12458 * stap-probe.c (stap_modify_semaphore): Don't check for null
12459 semaphores.
12460 (stap_probe::set_semaphore, stap_probe::clear_semaphore): Check
12461 for null semaphores.
12462
12463 2020-01-09 Andrew Burgess <andrew.burgess@embecosm.com>
12464
12465 * tui/tui-source.c (tui_source_window::do_scroll_vertical): Update
12466 all source windows, and maintain horizontal scroll status while
12467 doing so.
12468
12469 2020-01-09 Tom Tromey <tom@tromey.com>
12470
12471 PR tui/18932:
12472 * tui/tui-source.c (tui_source_window::do_scroll_vertical): Call
12473 update_source_window, not print_source_lines.
12474
12475 2020-01-09 Andrew Burgess <andrew.burgess@embecosm.com>
12476
12477 * tui/tui.c (tui_enable): Register tui hooks after calling
12478 tui_display_main.
12479
12480 2020-01-09 Christian Biesinger <cbiesinger@google.com>
12481
12482 * gdbsupport/common-defs.h: Don't define _FORTIFY_SOURCE on MinGW.
12483
12484 2020-01-08 Simon Marchi <simon.marchi@efficios.com>
12485
12486 * thread.c (print_thread_info_1): Fix indentation.
12487
12488 2020-01-09 Christian Biesinger <cbiesinger@google.com>
12489
12490 * symtab.c (general_symbol_info::compute_and_set_names): Move the
12491 unique_xmalloc_ptr outside the if to always free the demangled name.
12492
12493 2020-01-08 Tom Tromey <tromey@adacore.com>
12494
12495 * xcoffread.c (enter_line_range, read_xcoff_symtab)
12496 (process_xcoff_symbol, xcoff_symfile_offsets): Update.
12497 * symtab.h (MSYMBOL_VALUE_ADDRESS): Update.
12498 (struct section_offsets, ANOFFSET, SIZEOF_N_SECTION_OFFSETS):
12499 Remove.
12500 (section_offsets): New typedef.
12501 * symtab.c (fixup_section, get_msymbol_address): Update.
12502 * symmisc.c (dump_msymbols): Update.
12503 * symfile.h (relative_addr_info_to_section_offsets)
12504 (symfile_map_offsets_to_segments): Update.
12505 * symfile.c (build_section_addr_info_from_objfile)
12506 (init_objfile_sect_indices): Update.
12507 (struct place_section_arg): Change type of "offsets".
12508 (place_section): Update.
12509 (relative_addr_info_to_section_offsets): Change type of
12510 "section_offsets". Remove "num_sections" parameter.
12511 (default_symfile_offsets, syms_from_objfile_1)
12512 (set_objfile_default_section_offset): Update.
12513 (reread_symbols): No need to preserve section offsets by hand.
12514 (symfile_map_offsets_to_segments): Change type of "offsets".
12515 * stap-probe.c (relocate_address): Update.
12516 * stabsread.h (process_one_symbol): Update.
12517 * solib-target.c (struct lm_info_target) <offsets>: Change type.
12518 (solib_target_relocate_section_addresses): Update.
12519 * solib-svr4.c (enable_break, svr4_relocate_main_executable):
12520 Update.
12521 * solib-frv.c (frv_relocate_main_executable): Update.
12522 * solib-dsbt.c (dsbt_relocate_main_executable): Update.
12523 * solib-aix.c (solib_aix_get_section_offsets): Change return
12524 type.
12525 (solib_aix_solib_create_inferior_hook): Update.
12526 * remote.c (remote_target::get_offsets): Update.
12527 * psymtab.c (find_pc_sect_psymtab): Update.
12528 * psympriv.h (struct partial_symbol) <address, text_low,
12529 text_high>: Update.
12530 * objfiles.h (obj_section_offset): Update.
12531 (struct objfile) <section_offsets>: Change type.
12532 <num_sections>: Remove.
12533 (objfile_relocate): Update.
12534 * objfiles.c (entry_point_address_query): Update
12535 (relocate_one_symbol): Change type of "section_offsets".
12536 (objfile_relocate1, objfile_relocate1): Change type of
12537 "new_offsets".
12538 (objfile_rebase1): Update.
12539 * mipsread.c (mipscoff_symfile_read): Update.
12540 (read_alphacoff_dynamic_symtab): Remove "section_offsets"
12541 parameter.
12542 * mdebugread.c (parse_symbol): Change type of "section_offsets".
12543 (parse_external, psymtab_to_symtab_1): Update.
12544 * machoread.c (macho_symfile_offsets): Update.
12545 * ia64-tdep.c (ia64_find_unwind_table): Update.
12546 * hppa-tdep.c (read_unwind_info): Update.
12547 * hppa-bsd-tdep.c (hppabsd_find_global_pointer): Update.
12548 * dwarf2read.c (create_addrmap_from_index)
12549 (create_addrmap_from_aranges, dw2_find_pc_sect_compunit_symtab)
12550 (process_psymtab_comp_unit_reader, add_partial_symbol)
12551 (add_partial_subprogram, process_full_comp_unit)
12552 (read_file_scope, read_func_scope, read_lexical_block_scope)
12553 (read_call_site_scope, dwarf2_rnglists_process)
12554 (dwarf2_ranges_process, dwarf2_ranges_read)
12555 (dwarf_decode_lines_1, var_decode_location, new_symbol)
12556 (dwarf2_fetch_die_loc_sect_off, dwarf2_per_cu_text_offset):
12557 Update.
12558 * dwarf2-frame.c (execute_cfa_program, dwarf2_frame_find_fde):
12559 Update.
12560 * dtrace-probe.c (dtrace_probe::get_relocated_address): Update.
12561 * dbxread.c (read_dbx_symtab, read_ofile_symtab): Update.
12562 (process_one_symbol): Change type of "section_offsets".
12563 * ctfread.c (get_objfile_text_range): Update.
12564 * coffread.c (coff_symtab_read, enter_linenos)
12565 (process_coff_symbol): Update.
12566 * coff-pe-read.c (add_pe_forwarded_sym): Update.
12567 * amd64-windows-tdep.c (amd64_windows_find_unwind_info): Update.
12568
12569 2020-01-08 Tom Tromey <tromey@adacore.com>
12570
12571 * dwarf2read.c (parse_macro_definition): Use std::string.
12572 (parse_macro_definition): Likewise.
12573
12574 2020-01-08 Tom Tromey <tromey@adacore.com>
12575
12576 * dwarf2read.c (abbrev_table_read_table): Use std::vector.
12577 (ATTR_ALLOC_CHUNK): Remove.
12578
12579 2020-01-08 Tom Tromey <tromey@adacore.com>
12580
12581 * dwarf2read.c (fixup_go_packaging): Use unique_xmalloc_ptr.
12582
12583 2020-01-08 Tom Tromey <tromey@adacore.com>
12584
12585 * dwarf2read.c (add_partial_symbol): Use unique_xmalloc_ptr.
12586 (dwarf2_compute_name, open_dwo_file): Likewise.
12587 (process_enumeration_scope): Use std::vector.
12588 (guess_partial_die_structure_name): Use unique_xmalloc_ptr.
12589 (partial_die_info::fixup, dwarf2_start_subfile)
12590 (guess_full_die_structure_name, dwarf2_name): Likewise.
12591 (determine_prefix): Update.
12592 (guess_full_die_structure_name): Make return type const.
12593 (partial_die_full_name): Return unique_xmalloc_ptr.
12594 (DW_FIELD_ALLOC_CHUNK): Remove.
12595
12596 2020-01-07 Tom Tromey <tromey@adacore.com>
12597
12598 PR build/24937:
12599 * stap-probe.c (class stap_static_probe_ops): Add constructor.
12600
12601 2020-01-02 Jon Turney <jon.turney@dronecode.org.uk>
12602
12603 * cli/cli-style.c: Set cli_styling to 'true' in the Cygwin build.
12604
12605 2020-01-06 Andrew Burgess <andrew.burgess@embecosm.com>
12606
12607 * stack.c (print_frame_info): Move disassemble_next_line code
12608 inside source_print block.
12609
12610 2020-01-06 Eli Zaretskii <eliz@gnu.org>
12611
12612 * gdbsupport/gdb_wait.c: Include <signal.h> instead of
12613 gdb/signals.h, as we are now using native signal symbols.
12614
12615 2020-01-06 Shahab Vahedi <shahab@synopsys.com>
12616
12617 * tui/tui-disasm.c (tui_disasm_window::addr_is_displayed): Avoid
12618 overflow by an early check of content vs threshold.
12619 * tui/tui-source.c (tui_source_window::line_is_displayed):
12620 Likewise.
12621
12622 2020-01-06 Eli Zaretskii <eliz@gnu.org>
12623
12624 * NEWS: Mention the recent fix of $_exitsignal on MS-Windows.
12625
12626 2020-01-02 Jon Turney <jon.turney@dronecode.org.uk>
12627
12628 * coff-pe-read.c (read_pe_exported_syms): Don't try to read the
12629 export table if no section contains it's RVA.
12630
12631 2020-01-06 Eli Zaretskii <eliz@gnu.org>
12632
12633 * windows-tdep.c: Fix a typo in WINDOWS_SIGABRT.
12634
12635 2020-01-06 Hannes Domani <ssbssa@yahoo.de>
12636
12637 * source.c (print_source_lines_base): Set last_line_listed.
12638
12639 2020-01-06 Shahab Vahedi <shahab@synopsys.com>
12640
12641 * tui/tui-disasm.c: Remove trailing spaces.
12642
12643 2020-01-06 Eli Zaretskii <eliz@gnu.org>
12644 Pedro Alves <palves@redhat.com>
12645
12646 * Makefile.in (COMMON_SFILES): Add gdbsupport/gdb_wait.c.
12647 * windows-tdep.c: New enumeration of WINDOWS_SIG* signals.
12648 (windows_gdb_signal_to_target): New function, uses the above
12649 enumeration to convert GDB internal signal codes to equivalent
12650 Windows codes.
12651 (windows_init_abi): Call set_gdbarch_gdb_signal_to_target.
12652 * windows-nat.c: Include "gdb_wait.h".
12653 (get_windows_debug_event): Extract the fatal exception from the
12654 exit status and convert to the equivalent Posix signal number.
12655 * cli/cli-cmds.c (exit_status_set_internal_vars): Account for the
12656 possibility that WTERMSIG returns GDB_SIGNAL_UNKNOWN.
12657 * gdbsupport/gdb_wait.c: New file, implements
12658 windows_status_to_termsig.
12659 * gdbsupport/gdb_wait.h (WIFEXITED, WIFSIGNALED, WEXITSTATUS)
12660 (WTERMSIG) [__MINGW32__]: Separate definitions for MinGW.
12661
12662 2020-01-05 Andrew Burgess <andrew.burgess@embecosm.com>
12663
12664 * tui/tui-layout.c (tui_add_win_to_layout): Use tui_set_layout not
12665 show_layout.
12666
12667 2020-01-05 Luis Machado <luis.machado@linaro.org>
12668
12669 * aarch64-linux-nat.c
12670 (aarch64_linux_nat_target::thread_architecture): Use bfd_arch_aarch64
12671 and bfd_mach_aarch64.
12672
12673 2020-01-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
12674
12675 * ui-file.c (stdio_file::can_emit_style_escape)
12676 (tee_file::can_emit_style_escape): Ensure style is used also on
12677 gdb_stderr when gdb_stderr is a tty supporting styling, similarly
12678 to gdb_stdout.
12679 * main.c (set_gdb_data_directory): Use file style to output the
12680 warning that the given pathname is not a directory.
12681 * top.c (show_history_filename, gdb_safe_append_history)
12682 (show_gdb_datadir): Use file style.
12683
12684 2020-01-03 Hannes Domani <ssbssa@yahoo.de>
12685
12686 * solib-target.c (struct lm_info_target):
12687 Change offsets to be a unique_xmalloc_ptr.
12688 (solib_target_relocate_section_addresses): Update.
12689
12690 2020-01-03 Hannes Domani <ssbssa@yahoo.de>
12691
12692 * windows-nat.c (windows_clear_solib): Free so_list linked list.
12693
12694 2020-01-03 Bernd Edlinger <bernd.edlinger@hotmail.de>
12695
12696 * MAINTAINERS (Write After Approval): Add myself.
12697
12698 2020-01-02 Luis Machado <luis.machado@linaro.org>
12699
12700 * proc-service.c (get_ps_regcache): Remove reference to obsolete
12701 Cell BE architecture.
12702 * target.h (struct target_ops) <thread_architecture>: Likewise.
12703
12704 2020-01-01 Hannes Domani <ssbssa@yahoo.de>
12705
12706 * Makefile.in: Use INSTALL_PROGRAM_ENV.
12707
12708 2020-01-01 Hannes Domani <ssbssa@yahoo.de>
12709
12710 * MAINTAINERS (Write After Approval): Add myself.
12711
12712 2020-01-01 Joel Brobecker <brobecker@adacore.com>
12713
12714 * gdbarch.sh: Update copyright year range of generated files.
12715
12716 2020-01-01 Joel Brobecker <brobecker@adacore.com>
12717
12718 Update copyright year range in all GDB files.
12719
12720 2020-01-01 Joel Brobecker <brobecker@adacore.com>
12721
12722 * copyright.py: Convert to Python 3.
12723
12724 2020-01-01 Joel Brobecker <brobecker@adacore.com>
12725
12726 * copyright.py: Adapt after move of gnulib directory from gdb
12727 directory to toplevel directory.
12728
12729 2020-01-01 Joel Brobecker <brobecker@adacore.com>
12730
12731 * copyright.py (main): Exit if run from the wrong directory.
12732
12733 2020-01-01 Joel Brobecker <brobecker@adacore.com>
12734
12735 * top.c (print_gdb_version): Change copyright year to 2020.
12736
12737 2020-01-01 Joel Brobecker <brobecker@adacore.com>
12738
12739 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2019.
12740
12741 For older changes see ChangeLog-2019.
12742 \f
12743 Local Variables:
12744 mode: change-log
12745 left-margin: 8
12746 fill-column: 74
12747 version-control: never
12748 coding: utf-8
12749 End: