Use type_instance_flags more throughout
[binutils-gdb.git] / gdb / ChangeLog
blob7d4800b0b02689829c7c9cfab14ffd1786711313
1 2020-09-14  Pedro Alves  <pedro@palves.net>
2             Andrew Burgess  <andrew.burgess@embecosm.com>
4         * avr-tdep.c (avr_address_class_type_flags): Return
5         type_instance_flags.
6         (avr_address_class_type_flags_to_name): Take a
7         type_instance_flags.
8         (avr_address_class_name_to_type_flags): Return bool and take a
9         type_instance_flags.
10         * d-lang.c (build_d_types): Use type::set_instance_flags.
11         * ft32-tdep.c (ft32_address_class_type_flags): Return
12         type_instance_flags.
13         (ft32_address_class_type_flags_to_name): Take a
14         type_instance_flags.
15         (ft32_address_class_name_to_type_flags): Return bool and take a
16         type_instance_flags.
17         (ft32_gdbarch_init): Use type::set_instance_flags.
18         * eval.c (fake_method::fake_method): Use type::set_instance_flags.
19         * gdbarch.h, gdbarch.c: Regenerate.
20         * gdbarch.sh (address_class_type_flags): Use type_instance_flags.
21         (address_class_name_to_type_flags): Use type_instance_flags and
22         bool.
23         * gdbtypes.c (address_space_name_to_int)
24         (address_space_int_to_name, make_qualified_type): Use
25         type_instance_flags.
26         (make_qualified_type): Use type_instance_flags and
27         type::set_instance_flags.
28         (make_type_with_address_space, make_cv_type, make_vector_type)
29         (check_typedef): Use type_instance_flags.
30         (recursive_dump_type): Cast type_instance_flags to unsigned for
31         printing.
32         (copy_type_recursive): Use type::set_instance_flags.
33         (gdbtypes_post_init): Use type::set_instance_flags.
34         * gdbtypes.h (struct type) <instance_flags>: Rename to ...
35         <m_instance_flags>: ... this.
36         <instance_flags, set_instance_flags>: New methods.
37         (TYPE_INSTANCE_FLAGS): Use the instance_flags method.
38         (SET_TYPE_INSTANCE_FLAGS): New.
39         (address_space_name_to_int, address_space_int_to_name)
40         (make_type_with_address_space): Pass flags using
41         type_instance_flags instead of int.
42         * stabsread.c (cleanup_undefined_types_noname): Use
43         type::set_instance_flags.
44         * s390-tdep.c (s390_address_class_type_flags): Return
45         type_instance_flags.
46         (s390_address_class_type_flags_to_name): Take a
47         type_instance_flags.
48         (s390_address_class_name_to_type_flags): Return bool and take a
49         type_instance_flags.
50         * type-stack.c (type_stack::follow_types): Use
51         type_instance_flags.
52         * dwarf2/read.c (read_tag_pointer_type): Use type_instance_flags.
54 2020-09-14  Tom Tromey  <tromey@adacore.com>
56         * x86-tdep.h (x86_in_indirect_branch_thunk): Update.
57         * x86-tdep.c (x86_is_thunk_register_name)
58         (x86_in_indirect_branch_thunk): Update.
59         * sparc64-tdep.c (sparc64_fpu_register_names)
60         (sparc64_cp0_register_names, sparc64_register_names)
61         (sparc64_pseudo_register_names): Now const.
62         * sparc-tdep.h (struct gdbarch_tdep) <fpu_register_names,
63         cp0_registers_num>: Now const.
64         * sparc-tdep.c (sparc_core_register_names)
65         (sparc32_fpu_register_names, sparc32_cp0_register_names)
66         (sparc32_pseudo_register_names): Now const.
67         (validate_tdesc_registers): Update.
68         * rust-lang.c (rust_extensions): Now const.
69         * p-lang.c (p_extensions): Now const.
70         * objc-lang.c (objc_extensions): Now const.
71         * nto-tdep.c (nto_thread_state_str): Now const.
72         * moxie-tdep.c (moxie_register_names): Now const.
73         * mips-tdep.h (struct gdbarch_tdep) <mips_processor_reg_names>:
74         Now const.
75         * mips-tdep.c (mips_generic_reg_names, mips_tx39_reg_names)
76         (mips_linux_reg_names): Now const.
77         (mips_gdbarch_init): Update.
78         * microblaze-tdep.c (microblaze_register_names): Now const.
79         * m68k-tdep.c (m68k_register_names): Now const.
80         * m32r-tdep.c (m32r_register_names): Now const.
81         * ia64-tdep.c (ia64_register_names): Now const.
82         * i386-tdep.h (struct gdbarch_tdep) <register_names,
83         ymmh_register_names, ymm16h_regnum, mpx_register_names,
84         k_register_names, zmmh_register_names, xmm_avx512_register_names,
85         ymm_avx512_register_names, pkeys_register_names>: Now const.
86         * i386-tdep.c (i386_register_names, i386_zmm_names)
87         (i386_zmmh_names, i386_k_names, i386_ymm_names, i386_ymmh_names)
88         (i386_mpx_names, i386_pkeys_names, i386_bnd_names)
89         (i386_mmx_names, i386_byte_names, i386_word_names): Now const.
90         * f-lang.c (f_extensions): Now const.
91         * d-lang.c (d_extensions): Now const.
92         * csky-tdep.c (csky_register_names): Now const.
93         * charset.c (default_charset_names, charset_enum): Now const.
94         (_initialize_charset): Update.
95         * c-lang.c (c_extensions, cplus_extensions, asm_extensions): Now
96         const.
97         * bsd-uthread.c (bsd_uthread_solib_names): Now const.
98         (bsd_uthread_solib_loaded): Update.
99         (bsd_uthread_state): Now const.
100         * amd64-tdep.c (amd64_register_names, amd64_ymm_names)
101         (amd64_ymm_avx512_names, amd64_ymmh_names)
102         (amd64_ymmh_avx512_names, amd64_mpx_names, amd64_k_names)
103         (amd64_zmmh_names, amd64_zmm_names, amd64_xmm_avx512_names)
104         (amd64_pkeys_names, amd64_byte_names, amd64_word_names)
105         (amd64_dword_names): Now const.
106         * agent.c (can_use_agent_enum): Now const.
107         * ada-tasks.c (task_states, long_task_states): Now const.
108         * ada-lang.c (known_runtime_file_name_patterns)
109         (known_auxiliary_function_name_patterns, attribute_names)
110         (standard_exc, ada_extensions): Now const.
112 2020-09-14  Simon Marchi  <simon.marchi@polymtl.ca>
114         * bcache.h (struct bcache) <bcache>: Remove constructor.
115         <m_hash_function, m_compare_function>: Remove.
116         <~bcache>: Make virtual.
117         <compare>: Remove static method, introduce virtual method.
118         <default_hash>: Remove.
119         <hash>: New virtual method.
120         * bcache.c (bcache::expand_hash_table): Update.
121         (bcache::insert): Update.
122         (bcache::hash): New.
123         (bcache::compare): Update comment and parameter names.
124         * gdbtypes.c (types_deeply_equal): Update.
125         * psymtab.h (struct psymbol_bcache): New struct.
126         (class psymtab_storage) <psymtab_storage>: Make default.
127         <psymbol_cache>: Change type to psymbol_bcache.
128         * psymtab.c (psymtab_storage::psymtab_storage): Remove.
129         (psymbol_hash): Change to...
130         (psymbol_bcache::hash): ... this.
131         (psymbol_compare): Change to...
132         (psymbol_bcache::compare): ... this.
134 2020-09-14  Simon Marchi  <simon.marchi@polymtl.ca>
136         * linux-nat.c (linux_nat_wait_1): Don't use inferior_ptid when
137         checking for initial lwp.
139 2020-09-14  Tom Tromey  <tromey@adacore.com>
141         * m68k-tdep.c (m68k_extract_return_value): Use
142         pointer_result_regnum.
143         (m68k_store_return_value): Likewise.
144         (m68k_reg_struct_return_p): Handle vectors and arrays.
145         (m68k_return_value): Handle arrays.
146         (m68k_svr4_return_value): Fix single-element aggregate handling.
147         Handle long double.  Adjust for embedded ABI.
148         (m68k_svr4_init_abi): Set pointer_result_regnum.
149         (m68k_embedded_init_abi): New function.
150         (m68k_gdbarch_init): Handle Tag_GNU_M68K_ABI_FP.
151         (m68k_osabi_sniffer): New function.
152         (_initialize_m68k_tdep): Register osabi sniffer.
153         * m68k-tdep.h (struct gdbarch_tdep) <pointer_result_regnum>: New
154         member.
156 2020-09-14  Simon Marchi  <simon.marchi@polymtl.ca>
158         * xml-support.c (xml_fetch_content_from_file): Replace xfree
159         with gdb::unique_xmalloc_ptr<char>.
161 2020-09-14  Simon Marchi  <simon.marchi@polymtl.ca>
163         * xml-support.h (xml_fetch_another): Change type to be a
164         function_view.
165         (xml_process_xincludes): Remove baton parameter.
166         (xml_fetch_content_from_file): Change baton parameter to
167         dirname.
168         * xml-support.c (struct xinclude_parsing_data)
169         <xinclude_parsing_data>: Remove baton parameter.
170         <fetcher_baton>: Remove.
171         (xinclude_start_include): Adjust.
172         (xml_process_xincludes): Adjust.
173         (xml_fetch_content_from_file): Replace baton parameter with
174         dirname.
175         * xml-syscall.c (syscall_parse_xml): Remove baton parameter.
176         (xml_init_syscalls_info): Use a lambda.
177         * xml-tdesc.c (tdesc_parse_xml): Remove baton parameter.
178         (file_read_description_xml): Use a lambda.
179         (fetch_available_features_from_target): Change baton parameter
180         to target_ops.
181         (target_read_description_xml): Use a lambda.
182         (target_fetch_description_xml): Use a lambda.
183         (string_read_description_xml): Update.
185 2020-09-14  Simon Marchi  <simon.marchi@polymtl.ca>
187         * gdbtypes.h (TYPE_ENDIANITY_NOT_DEFAULT): Remove, replace all
188         uses with type::endianity_is_not_default.
190 2020-09-14  Simon Marchi  <simon.marchi@efficios.com>
192         * gdbtypes.h (struct type) <endianity_is_not_default,
193         set_endianity_is_not_default>: New methods.
194         (TYPE_ENDIANITY_NOT_DEFAULT): Use
195         type::endianity_is_not_default, change all write call sites to
196         use type::set_endianity_is_not_default.
198 2020-09-14  Simon Marchi  <simon.marchi@efficios.com>
200         * gdbtypes.h (TYPE_FIXED_INSTANCE): Remove, replace all
201         uses with type::is_fixed_instance.
203 2020-09-14  Simon Marchi  <simon.marchi@efficios.com>
205         * gdbtypes.h (struct type) <is_fixed_instance,
206         set_is_fixed_instance>: New methods.
207         (TYPE_FIXED_INSTANCE): Use type::is_fixed_instance, change all
208         write call sites to use type::set_is_fixed_instance.
210 2020-09-14  Simon Marchi  <simon.marchi@efficios.com>
212         * gdbtypes.h (TYPE_GNU_IFUNC): Remove, replace all
213         uses with type::is_gnu_ifunc.
215 2020-09-14  Simon Marchi  <simon.marchi@efficios.com>
217         * gdbtypes.h (struct type) <is_gnu_ifunc, set_is_gnu_ifunc>: New methods.
218         (TYPE_GNU_IFUNC): Use type::is_gnu_ifunc, change all write call sites to
219         use type::set_is_gnu_ifunc.
221 2020-09-14  Simon Marchi  <simon.marchi@efficios.com>
223         * gdbtypes.h (TYPE_STUB_SUPPORTED): Remove, replace all
224         uses with type::stub_is_supported.
226 2020-09-14  Simon Marchi  <simon.marchi@efficios.com>
228         * gdbtypes.h (struct type) <stub_is_supported, set_stub_is_supported>: New methods.
229         (TYPE_STUB_SUPPORTED): Use type::stub_is_supported, change all write call sites to
230         use type::set_stub_is_supported.
232 2020-09-14  Simon Marchi  <simon.marchi@efficios.com>
234         * gdbtypes.h (TYPE_VECTOR): Remove, replace all
235         uses with type::is_vector.
237 2020-09-14  Simon Marchi  <simon.marchi@efficios.com>
239         * gdbtypes.h (struct type) <is_vector, set_is_vector>: New methods.
240         (TYPE_VECTOR): Use type::is_vector, change all write call sites to
241         use type::set_is_vector.
243 2020-09-14  Simon Marchi  <simon.marchi@efficios.com>
245         * gdbtypes.h (TYPE_VARARGS): Remove, replace all
246         uses with type::has_varargs.
248 2020-09-14  Simon Marchi  <simon.marchi@efficios.com>
250         * gdbtypes.h (struct type) <has_varargs, set_has_varargs>: New methods.
251         (TYPE_VARARGS): Use type::has_varargs, change all write call sites to
252         use type::set_has_varargs.
254 2020-09-14  Simon Marchi  <simon.marchi@efficios.com>
256         * gdbtypes.h (TYPE_PROTOTYPED): Remove, replace all
257         uses with type::is_prototyped.
259 2020-09-14  Simon Marchi  <simon.marchi@efficios.com>
261         * gdbtypes.h (struct type) <is_prototyped, set_is_prototyped>:
262         New methods.
263         (TYPE_PROTOTYPED): Use type::is_prototyped, change all write
264         call sites to use type::set_is_prototyped.
266 2020-09-14  Simon Marchi  <simon.marchi@efficios.com>
268         * gdbtypes.h (TYPE_TARGET_STUB): Remove, replace all
269         uses with type::target_is_stub.
271 2020-09-14  Simon Marchi  <simon.marchi@efficios.com>
273         * gdbtypes.h (struct type) <target_is_stub, set_target_is_stub>:
274         New methods.
275         (TYPE_TARGET_STUB): Use type::is_stub, change all write call
276         sites to use type::set_target_is_stub.
278 2020-09-14  Simon Marchi  <simon.marchi@efficios.com>
280         * gdbtypes.h (TYPE_STUB): Remove, replace all
281         uses with type::is_stub.
283 2020-09-14  Simon Marchi  <simon.marchi@efficios.com>
285         * gdbtypes.h (struct type) <is_stub, set_is_stub>: New methods.
286         (TYPE_STUB): Use type::is_stub, change all write call sites to
287         use type::set_is_stub.
289 2020-09-14  Simon Marchi  <simon.marchi@efficios.com>
291         * gdbtypes.h (TYPE_NOSIGN): Remove, replace all uses with
292         type::has_no_signedness.
294 2020-09-14  Simon Marchi  <simon.marchi@efficios.com>
296         * gdbtypes.h (struct type) <has_no_signedness,
297         set_has_no_signedness>: New methods.
298         (TYPE_NOSIGN): Use type::has_no_signedness, change all write
299         call sites to use type::set_has_no_signedness.
301 2020-09-14  Simon Marchi  <simon.marchi@efficios.com>
303         * gdbtypes.h (TYPE_UNSIGNED): Remove, replace all uses with
304         type::is_unsigned.
306 2020-09-14  Simon Marchi  <simon.marchi@efficios.com>
308         * gdbtypes.h (struct type) <is_unsigned, set_is_unsigned>: New
309         methods.
310         (TYPE_UNSIGNED): Use type::is_unsigned.  Change all write call
311         sites to use type::set_is_unsigned.
313 2020-09-14  Fredrik Hederstierna  <fredrik.hederstierna@verisure.com>
314             Adam Renquinha <arenquinha@cimeq.qc.ca>
316         * arm-tdep.c (arm_m_exception_cache): Try use correct stack
317         pointer and stack frame offset when unwinding.
319 2020-09-13  Pedro Alves  <pedro@palves.net>
321         * NEWS: Document "-break-insert --qualified".
322         * mi/mi-cmd-break.c (mi_cmd_break_insert_1): Handle "--qualified".
324 2020-09-13  Pedro Alves  <pedro@palves.net>
326         * linespec.c (classify_mtype, compare_msyms): Delete.
327         (search_minsyms_for_name): Remove classification logic.  Instead
328         filter out trampoline symbols if we also found an external
329         function of the same name.
331 2020-09-13  Joel Brobecker  <brobecker@adacore.com>
333         * NEWS: Create a new section for the next release branch.
334         Rename the section of the current branch, now that it has
335         been cut.
337 2020-09-13  Joel Brobecker  <brobecker@adacore.com>
339         GDB 10 branch created (8087c3fa8b5d695e3e29e69d70d0b35ec902ac59):
340         * version.in: Bump version to 11.0.50.DATE-git.
342 2020-09-12  Joel Brobecker  <brobecker@adacore.com>
344         * infrun.c (namespace selftests): Only define #if GDB_SELF_TEST.
346 2020-09-11  Moritz Riesterer  <moritz.riesterer@intel.com>
347             Felix Willgerodt  <Felix.Willgerodt@intel.com>
349         * gdbarch.sh: Added bfloat16 type.
350         * gdbarch.c: Regenerated.
351         * gdbarch.h: Regenerated.
352         * gdbtypes.c (floatformats_bfloat16): New struct.
353         (gdbtypes_post_init): Add builtin_bfloat16.
354         * gdbtypes.h (struct builtin_type) <builtin_bfloat16>: New member.
355         (floatformats_bfloat16): New struct.
356         * i386-tdep.c (i386_zmm_type): Add field "v32_bfloat16"
357         (i386_ymm_type): Add field "v16_bfloat16"
358         (i386_gdbarch_init): Add set_gdbarch_bfloat16_format.
359         * target-descriptions.c (make_gdb_type): Add case TDESC_TYPE_BFLOAT16.
360         * gdbsupport/tdesc.cc (tdesc_predefined_types): New member bfloat16.
361         * gdbsupport/tdesc.h (tdesc_type_kind): New member TDESC_TYPE_BFLOAT16.
362         * features/i386/64bit-avx512.xml: Add bfloat16 type.
363         * features/i386/64bit-avx512.c: Regenerated.
364         * features/i386/64bit-sse.xml: Add bfloat16 type.
365         * features/i386/64bit-sse.c: Regenerated.
367 2020-09-11  Felix Willgerodt  <felix.willgerodt@intel.com>
369         * i386-tdep.c (i386_zmm_type): Fix field names.
370         (i386_ymm_type): Fix field names.
372 2020-09-11  Tankut Baris Aktemur  <tankut.baris.aktemur@intel.com>
374         * breakpoint.c: Fix typo in the help message of the
375         "set breakpoint condition-evaluation" command.
377 2020-09-10  Kamil Rytarowski  <n54@gmx.com>
379         * nbsd-nat.c: Include "nat/netbsd-nat.h".
380         * (nbsd_nat_target::pid_to_exec_file)
381         (nbsd_nat_target::thread_alive, nbsd_nat_target::thread_name)
382         (nbsd_nat_target::post_startup_inferior)
383         (nbsd_nat_target::post_attach, nbsd_nat_target::xfer_partial)
384         (nbsd_add_threads): Switch local code to common gdb/nat functions.
385         * (nbsd_pid_to_cmdline): Call sysctl from the global namespace.
386         * (nbsd_thread_lister): Remove.
388 2020-09-10  Kamil Rytarowski  <n54@gmx.com>
390         * fork-inferior.c (startup_inferior): Avoid double free.
392 2020-09-10  Kamil Rytarowski  <n54@gmx.com>
394         * netbsd-nat.h (netbsd_nat::qxfer_siginfo): Add.
395         * netbsd-nat.c (netbsd_nat::qxfer_siginfo): Likewise.
397 2020-09-10  Kamil Rytarowski  <n54@gmx.com>
399         * netbsd-nat.h (netbsd_nat::enable_proc_events): Add.
400         * netbsd-nat.c: Include <sys/ptrace.h>.
401         * (netbsd_nat::enable_proc_events): Add.
403 2020-09-10  Kamil Rytarowski  <n54@gmx.com>
405         * netbsd-nat.h: Include "gdbsupport/function-view.h".
406         * (netbsd_nat::thread_alive, netbsd_nat::thread_name)
407         (netbsd_nat::for_each_thread): Add.
408         * netbsd-nat.c: Include "gdbsupport/common-defs.h" and
409         "gdbsupport/common-debug.h".
410         * (netbsd_nat::netbsd_thread_lister)
411         (netbsd_nat::thread_alive, netbsd_nat::thread_name)
412         (netbsd_nat::for_each_thread): Add.
414 2020-09-10  Kamil Rytarowski  <n54@gmx.com>
416         * netbsd-nat.h: Include <unistd.h>.
417         * (netbsd_nat::pid_to_exec_file): Add.
418         * netbsd-nat.c: Include <sys/types.h> and <sys/sysctl.h>.
419         * (netbsd_nat::pid_to_exec_file) Add.
421 2020-09-10  Kamil Rytarowski  <n54@gmx.com>
423         * configure.nat (NATDEPFILES): Add nat/netbsd-nat.o when needed.
425 2020-09-10  Kamil Rytarowski  <n54@gmx.com>
427         * netbsd-nat.h: New file.
428         * netbsd-nat.c: Likewise.
430 2020-09-09  Tom Tromey  <tromey@adacore.com>
432         * ada-lang.c (remove_extra_symbols): Do not increment when
433         removing an element
435 2020-09-08  Tom Tromey  <tromey@adacore.com>
437         * gdb_bfd.c (gdb_bfd_open): Call bfd_fopen when fstat fails.
439 2020-09-08  Tom Tromey  <tromey@adacore.com>
441         PR win32/25302:
442         * gdb_bfd.c (gdb_bfd_data): Add "st" parameter.
443         (gdb_bfd_init_data): New function.
444         (gdb_bfd_open, gdb_bfd_ref): Use gdb_bfd_init_data.
446 2020-09-07  Tankut Baris Aktemur  <tankut.baris.aktemur@intel.com>
448         * infrun.c (fetch_inferior_event): Use
449         `switch_to_target_no_thread` to switch the target.
451 2020-09-06  Tom Tromey  <tom@tromey.com>
453         * symfile.h (dwarf2_free_objfile): Don't declare.
455 2020-09-03  Alok Kumar Sharma  <AlokKumar.Sharma@amd.com>
457         * gdb/i386-tdep.c (i386_floatformat_for_type): Added conditions
458         to match 16 byte real/complex type generated by Flang compiler.
460 2020-09-03  Tom de Vries  <tdevries@suse.de>
462         PR breakpoint/26546
463         * dwarf2/read.c (new_symbol): Tag label symbol without DW_AT_low_pc as
464         LOC_OPTIMIZED_OUT instead of LOC_LABEL.
466 2020-09-02  Simon Marchi  <simon.marchi@polymtl.ca>
468         * maint.c (index_digits): New function.
469         (struct maint_print_section_data): Remove.
470         (print_bfd_section_info): Remove print_data parameter, add arg
471         and index_digits.
472         (print_objfile_section_info): Likewise.
473         (print_bfd_section_info_maybe_relocated): Likewise (plus
474         objfile).
475         (maintenance_info_sections): Adjust calls.
477 2020-09-02  Tom Tromey  <tromey@adacore.com>
479         * ada-varobj.c (ada_varobj_get_ptr_number_of_children): Return 0
480         for null pointers.
481         (ada_varobj_adjust_for_child_access): Special-case null pointers.
483 2020-09-01  Simon Marchi  <simon.marchi@polymtl.ca>
485         * bcache.h (struct bcache) <insert>: Change type of `added` to
486         pointer to bool.
487         * bcache.c (bcache::insert): Likewise.
488         * gdbtypes.c (check_types_worklist): Adjust.
489         * psymtab.c (add_psymbol_to_bcache): Adjust.
491 2020-08-31  Kevin Buettner  <kevinb@redhat.com>
493         * corelow.c (unordered_set): Include.
494         (class core_target): Add field 'm_core_unavailable_mappings'.
495         (core_target::build_file_mappings): Print only one warning
496         per inaccessible file.  Add unavailable/broken mappings
497         to m_core_unavailable_mappings.
498         (core_target::xfer_partial): Call...
499         (core_target::xfer_memory_via_mappings): New method.
501 2020-08-31  Simon Marchi  <simon.marchi@polymtl.ca>
503         * dwarf2/read.c (struct field_info) <non_public_fields>: Change
504         type to bool.
506 2020-08-31  Simon Marchi  <simon.marchi@polymtl.ca>
508         * dwarf2/read.c (struct field_info): Fix indentation.
510 2020-08-31  Simon Marchi  <simon.marchi@efficios.com>
512         * frame-unwind.h (frame_prev_register_ftype): Fix adjective
513         ordering in comment.
514         * frame.c (frame_id_eq): Fix indentation.
516 2020-08-31  Scott Linder  <scott@scottlinder.com>
517             Simon Marchi  <simon.marchi@efficios.com>
519         * inline-frame.c (inline_frame_this_id): Remove assert that prevents
520         inline frame ids in outer frame.
522 2020-08-31  Simon Marchi  <simon.marchi@efficios.com>
524         * frame.h (enum frame_id_stack_status) <FID_STACK_OUTER>: New.
525         * frame.c (fprint_frame_id): Handle FID_STACK_OUTER.
526         (outer_frame_id): Use FID_STACK_OUTER instead of
527         FID_STACK_INVALID.
528         (frame_id_p): Don't check for outer_frame_id.
530 2020-08-31  Simon Marchi  <simon.marchi@efficios.com>
532         * frame-unwind.c (frame_unwind_got_optimized): Don't set
533         regnum/frame in value.  Call allocate_value_lazy.
534         * frame.c (frame_unwind_register_value): Use
535         val_print_not_saved.
537 2020-08-31  Simon Marchi  <simon.marchi@efficios.com>
539         * gdbtypes.h (NULL_TYPE): Remove, change all uses to nullptr.
541 2020-08-29  Pedro Alves  <pedro@palves.net>
543         * progspace.c (print_program_space): Use all_inferiors.  Switch to
544         the inferior before calling target_pid_to_str.
546 2020-08-28  Tom Tromey  <tom@tromey.com>
548         * xcoffread.c (xcoff_end_psymtab): Update comment.
549         * dbxread.c (dbx_end_psymtab): Update comment.
551 2020-08-28  Tom de Vries  <tdevries@suse.de>
553         PR breakpoint/26544
554         * breakpoint.c (parse_breakpoint_sals): Remove const from struct
555         event_location.
556         (create_breakpoint): Same.
557         (base_breakpoint_decode_location): Same.
558         (bkpt_create_sals_from_location): Same.
559         (bkpt_decode_location): Same.
560         (bkpt_probe_create_sals_from_location): Same.
561         (bkpt_probe_decode_location): Same.
562         (tracepoint_create_sals_from_location): Same.
563         (tracepoint_decode_location): Same.
564         (tracepoint_probe_decode_location): Same.
565         (strace_marker_create_sals_from_location): Same.
566         (strace_marker_decode_location): Same.
567         (create_sals_from_location_default): Same.
568         (decode_location_default): Same.
569         * breakpoint.h (struct breakpoint_ops): Same.
570         (create_breakpoint): Same.
571         * linespec.h (decode_line_full): Same.
572         * linespec.c (decode_line_full): Same.  Throw error if
573         result.size () == 0.
575 2020-08-27  Pedro Alves  <pedro@palves.net>
577         PR gdb/26524
578         * breakpoint.c (until_break_fsm) <location_breakpoint,
579         caller_breakpoint>: Delete fields.
580         <breakpoints>: New field.
581         <until_break_fsm>: Adjust to save a breakpoint vector instead of
582         two individual breakpoints.
583         (until_break_fsm::should_stop): Loop over breakpoints in the
584         breakpoint vector.
585         (until_break_fsm::clean_up): Adjust to clear the breakpoints
586         vector.
587         (until_break_command): Handle location expanding into multiple
588         sals.
590 2020-08-27  Pedro Alves  <pedro@palves.net>
592         PR gdb/26523
593         * inline-frame.c (stopped_by_user_bp_inline_frame): Also consider
594         bp_until breakpoints user-specified locations.  Update intro
595         comment.
597 2020-08-27  Simon Marchi  <simon.marchi@polymtl.ca>
599         * gdb_bfd.h (gdb_bfd_section_iterator, gdb_bfd_section_range,
600         gdb_bfd_sections): New.
601         * maint.c (print_bfd_section_info): Change param type to
602         maint_print_section_data.
603         (print_objfile_section_info): Likewise.
604         (print_bfd_section_info_maybe_relocated): Likewise.
605         (maintenance_info_sections): Use gdb_bfd_sections.
607 2020-08-25  Shahab Vahedi  <shahab@synopsys.com>
609         * MAINTAINERS: Add ARC target and maintainer.
611 2020-08-25  Anton Kolesov  <anton.kolesov@synopsys.com>
613         * configure.tgt: ARC support for GNU/Linux.
614         * Makefile.in (ALL_TARGET_OBJS): Likewise.
615         * arc-linux-tdep.c: New file.
616         * arc-tdep.h (ARC_STATUS32_L_MASK, ARC_STATUS32_DE_MASK): Declare.
617         * arc-tdep.c (arc_write_pc): Use it.
619 2020-08-25  Shahab Vahedi  <shahab@synopsys.com>
621         * arc-tdep.c (arc_check_for_hardware_loop): New.
622         * arc-tdep.h (gdbarch_tdep): New field has_hw_loops.
624 2020-08-25  Shahab Vahedi  <shahab@synopsys.com>
626         * arc-tdep.h: Include "gdbarch.h".
628 2020-08-25  Shahab Vahedi  <shahab@synopsys.com>
630         * arch/arc.h
631         (arc_gdbarch_features): New class to stir the selection of target XML.
632         (arc_create_target_description): Use FEATURES to choose XML target.
633         (arc_lookup_target_description): Use arc_create_target_description
634         to create _new_ target descriptions or return the already created
635         ones if the FEATURES is the same.
636         * arch/arc.c: Implementation of prototypes described above.
637         * gdb/arc-tdep.h (arc_regnum enum): Add more registers.
638         (arc_gdbarch_features_init): Initialize the FEATURES struct.
639         * arc-tdep.c (*_feature_name): Make feature names consistent.
640         (arc_register_feature): A new struct to hold information about
641         registers of a particular target/feature.
642         (arc_check_tdesc_feature): Check if XML provides registers in
643         compliance with ARC_REGISTER_FEATURE structs.
644         (arc_update_acc_reg_names): Add aliases for r58 and r59.
645         (determine_*_reg_feature_set): Which feature name to look for.
646         (arc_gdbarch_features_init): Given MACH and ABFD, initialize FEATURES.
647         (mach_type_to_arc_isa): Convert from a set of binutils machine types
648         to expected ISA enums to be used in arc_gdbarch_features structs.
649         * features/Makefile (FEATURE_XMLFILES): Add new files.
650         * gdb/features/arc/v1-aux.c: New file.
651         * gdb/features/arc/v1-aux.xml: Likewise.
652         * gdb/features/arc/v1-core.c: Likewise.
653         * gdb/features/arc/v1-core.xml: Likewise.
654         * gdb/features/arc/v2-aux.c: Likewise.
655         * gdb/features/arc/v2-aux.xml: Likewise.
656         * gdb/features/arc/v2-core.c: Likewise.
657         * gdb/features/arc/v2-core.xml: Likewise.
658         * NEWS (Changes since GDB 9): Announce obsolence of old feature names.
660 2020-08-25  Gaius Mulley  <gaiusmod2@gmail.com>
661             Andrew Burgess  <andrew.burgess@embecosm.com>
663         PR m2/26372
664         * m2-exp.y (exp): Improve comment for non_empty_arglist case, add
665         an assert.  Remove single element array indexing pattern as the
666         MULTI_SUBSCRIPT support will handle this case too.
668 2020-08-24  Simon Marchi  <simon.marchi@polymtl.ca>
670         * value.h (valprint_check_validity): Move declaration from
671         here...
672         * valprint.h (valprint_check_validity): ... to here.
674 2020-08-24  Simon Marchi  <simon.marchi@efficios.com>
676         * debug.h: New file.
677         * debug.c (debug_prefixed_vprintf): New function.
678         * infrun.c (infrun_debug_printf_1): Use debug_prefixed_vprintf.
679         * linux-nat.c (linux_nat_debug_printf_1): Likewise.
681 2020-08-24  Simon Marchi  <simon.marchi@efficios.com>
683         * infrun.h (infrun_debug_printf_1): New function declaration.
684         (infrun_debug_printf): New macro.
685         * infrun.c (infrun_debug_printf_1): Use infrun_debug_printf
686         throughout.
687         (infrun_debug_printf): New function.
688         * breakpoint.c (should_be_inserted): Use infrun_debug_printf.
689         (handle_jit_event): Likewise.
691 2020-08-21  Mark Wielaard  <mark@klomp.org>
693         * ada-lex.l: Extend register warnings diagnostics comment for g++.
695 2020-08-22  Simon Marchi  <simon.marchi@efficios.com>
697         * frame.c (enum class frame_id_status): New.
698         (struct frame_info) <this_id::p>: Change type to frame_id_status.
699         (fprintf_frame): Update.
700         (compute_frame_id): Set frame id status to "computing" on entry.
701         Set it back to "not_computed" on failure and to "computed" on
702         success.
703         (get_frame_id): Assert the frame id is not being computed.
704         (create_sentinel_frame): Use frame_id_status::COMPUTED.
705         (create_new_frame): Likewise.
706         (frame_cleanup_after_sniffer): Update assert.
708 2020-08-20  Simon Marchi  <simon.marchi@polymtl.ca>
710         * regcache.c (pid_ptid_regcache_map): New type.
711         (target_ptid_regcache_map): Remove.
712         (target_pid_ptid_regcache_map): New type.
713         (regcaches): Change type to target_pid_ptid_regcache_map.
714         (get_thread_arch_aspace_regcache): Update.
715         (regcache_thread_ptid_changed): Update, handle pid-like ptid
716         case.
717         (regcaches_size): Update.
718         (regcache_count): Update.
719         (registers_changed_ptid_target_pid_test): New.
720         (_initialize_regcache): Register new test.
722 2020-08-20  Simon Marchi  <simon.marchi@polymtl.ca>
724         * regcache.c (regcache_count): New.
725         (struct regcache_test_data): New.
726         (regcache_test_data_up): New.
727         (populate_regcaches_for_test): New.
728         (regcaches_test): Remove.
729         (get_thread_arch_aspace_regcache_test): New.
730         (registers_changed_ptid_all_test): New.
731         (registers_changed_ptid_target_test): New.
732         (registers_changed_ptid_target_ptid_test): New.
733         (regcache_thread_ptid_changed): Remove regcache_count lambda.
734         (_initialize_regcache): Register new tests.
736 2020-08-20  Simon Marchi  <simon.marchi@polymtl.ca>
738         * regcache.c (test_get_thread_arch_aspace_regcache): Rename to...
739         (get_thread_arch_aspace_regcache_and_check): ... this.  Remove
740         gdbarch and aspace parameter.  Use current inferior's aspace.
741         Validate regcache's arch value.
742         (regcaches_test): Update.
744 2020-08-20  Simon Marchi  <simon.marchi@polymtl.ca>
746         * regcache.c (regcaches_test): Call registers_changed.
748 2020-08-20  Tankut Baris Aktemur  <tankut.baris.aktemur@intel.com>
750         * infrun.c (process_event_stop_test): Fix typo "breapoint".
752 2020-08-19  Alok Kumar Sharma  <AlokKumar.Sharma@amd.com>
754         * amd64-tdep.c (amd64_skip_prologue): Using symbol table
755         to find the end of prologue for flang compiled binaries.
756         * arm-tdep.c (arm_skip_prologue): Likewise.
757         * i386-tdep.c (i386_skip_prologue): Likewise.
758         * producer.c (producer_is_llvm): New function.
759         (producer_parsing_tests): Added new tests for clang/flang.
760         * producer.h (producer_is_llvm): New declaration.
762 2020-08-18  Simon Marchi  <simon.marchi@efficios.com>
764         * linux-nat.c (linux_nat_debug_printf): New function.
765         (linux_nat_debug_printf_1): New macro.  Use throughout the file.
767 2020-08-18  Aaron Merey  <amerey@redhat.com>
769         * Makefile.in (DEBUGINFOD_CFLAGS, DEBUGINFOD_LIBS): New variables.
770         (INTERNAL_CFLAGS_BASE): Add DEBUGINFOD_CFLAGS.
771         (CLIBS): Add DEBUGINFOD_LIBS.
773 2020-08-17  Sergei Trofimovich  <siarheit@google.com>
775         * ia64-linux-nat.c: Include "gdbarch.h" to declare used
776         'gdbarch_num_regs'.
778 2020-08-17  Tom Tromey  <tromey@adacore.com>
780         * ada-varobj.c (ada_varobj_decode_var): Handle case where
781         ada_get_decoded_value returns NULL.
783 2020-08-17  Tom Tromey  <tromey@adacore.com>
785         * python/py-inferior.c (infpy_search_memory): Use
786         gdb_py_object_from_ulongest.
787         * python/py-infevents.c (create_inferior_call_event_object)
788         (create_memory_changed_event_object): Use
789         gdb_py_object_from_ulongest.
790         * python/py-linetable.c (ltpy_entry_get_pc): Use
791         gdb_py_object_from_ulongest.
793 2020-08-17  Simon Marchi  <simon.marchi@polymtl.ca>
795         * loc.c (class symbol_needs_eval_context): Fix indentation.
797 2020-08-17  Simon Marchi  <simon.marchi@polymtl.ca>
799         * dwarf2/loc.c (dwarf2_loc_desc_get_symbol_read_needs): Use
800         bool.
802 2020-08-17  Tom de Vries  <tdevries@suse.de>
804         PR gdb/26393
805         * gdbtypes.c (dump_dynamic_prop): New function.
806         (recursive_dump_type): Use dump_dynamic_prop for TYPE_CODE_RANGE.
808 2020-08-15  Tom de Vries  <tdevries@suse.de>
810         PR backtrace/26390
811         * stack.c (print_frame_args): Temporarily set the selected
812         frame to FRAME while printing the frame's arguments.
814 2020-08-14  Pedro Franco de Carvalho  <pedromfc@linux.ibm.com>
816         PR breakpoints/26385
817         * ppc-linux-nat.c (ppc_linux_nat_target::low_prepare_to_resume):
818         Always clear watchpoint with PTRACE_SET_DEBUGREG.
820 2020-08-14  Pedro Franco de Carvalho  <pedromfc@linux.ibm.com>
822         * ppc-linux-nat.c (ppc_linux_dreg_interface::detect)
823         (ppc_linux_nat_target::low_prepare_to_resume): Use ptrace () < 0
824         and >= to check return value instead of == -1 and != -1.
826 2020-08-14  Simon Marchi  <simon.marchi@polymtl.ca>
828         * utils.h (class gdb_argv) <as_array_view>: New method.
829         * utils.c (gdb_argv_as_array_view_test): New.
830         (_initialize_utils): Register selftest.
831         * maint.c (maintenance_selftest): Use the new method.
833 2020-08-13  Kamil Rytarowski  <n54@gmx.com>
835         * target.h (supports_dumpcore, dumpcore): New
836         function declarations.
837         * target.c (supports_dumpcore, dumpcore): New
838         functions.
839         * target-delegates.c: Rebuild.
840         * gcore.c (gcore_command): Use target_supports_dumpcore ()
841         and target_dumpcore ().
843 2020-08-13  Aaron Merey  <amerey@redhat.com>
845         * debuginfod-support.c: Replace global variables with user_data.
847 2020-08-13  Simon Marchi  <simon.marchi@polymtl.ca>
849         * maint.c (maintenance_selftest): Split args and pass array_view
850         to run_tests.
852 2020-08-12  Luis Machado  <luis.machado@linaro.org>
854         * value.c (check_type_length_before_alloc): Use ULONGEST to store a
855         type's length.
856         Use %s and pulongest to print the length.
858 2020-08-12  Pedro Alves  <palves@redhat.com>
860         * NEWS: Move "Multi-target debugging support" item to the
861         "Changes since GDB 9" section.
863 2020-08-12  Pedro Alves  <palves@redhat.com>
865         PR gdb/26336
866         * progspace.c (program_space::remove_objfile): Invalidate the
867         frame cache.
869 2020-08-11  Tom de Vries  <tdevries@suse.de>
871         * MAINTAINERS: Mark ms1 as deleted.
873 2020-08-10  Luis Machado  <luis.machado@linaro.org>
875         PR gdb/26310
877         * aarch64-tdep.c (aarch64_analyze_prologue): Track use of SP/FP and
878         act accordingly.
879         (aarch64_analyze_prologue_test): Add more unit tests to exercise
880         movz/str/stur/stp skipping behavior.
882 2020-08-10  Luis Machado  <luis.machado@linaro.org>
884         * nat/aarch64-sve-linux-sigcontext.h (SVE_PT_REGS_OFFSET): Use
885         struct user_sve_header instead of struct sve_context.
887 2020-08-09  Simon Marchi  <simon.marchi@polymtl.ca>
889         * read.h (dwarf2_fetch_die_loc_sect_off,
890         dwarf2_fetch_die_loc_cu_off): Replace function pointer +
891         `void *` parameter with function_view.
892         * read.c (dwarf2_fetch_die_loc_sect_off,
893         dwarf2_fetch_die_loc_cu_off): Likewise.
894         * loc.c (get_frame_pc_for_per_cu_dwarf_call): Remove.
895         (per_cu_dwarf_call): Adjust.
896         (get_frame_address_in_block_wrapper): Remove.
897         (indirect_synthetic_pointer): Adjust.
898         (get_ax_pc): Remove.
899         (dwarf2_compile_expr_to_ax): Adjust.
901 2020-08-08  Tom de Vries  <tdevries@suse.de>
903         PR build/26344
904         * arch/riscv.c (riscv_lookup_target_description): Use an explicit
905         constructor.
906         * regcache.c (get_thread_arch_aspace_regcache): Same.
908 2020-08-07  Tom Tromey  <tromey@adacore.com>
910         * ravenscar-thread.c
911         (ravenscar_thread_target::set_base_thread_from_ravenscar_task):
912         New method.
913         (ravenscar_thread_target::wait): Check
914         runtime_initialized.
915         (ravenscar_thread_target::prepare_to_store)
916         (ravenscar_thread_target::stopped_by_sw_breakpoint)
917         (ravenscar_thread_target::stopped_by_hw_breakpoint)
918         (ravenscar_thread_target::stopped_by_watchpoint)
919         (ravenscar_thread_target::stopped_data_address)
920         (ravenscar_thread_target::core_of_thread): Use
921         scoped_restore_current_thread and
922         set_base_thread_from_ravenscar_task.
924 2020-08-07  Tom Tromey  <tromey@adacore.com>
926         * ravenscar-thread.c (update_thread_list): Set inferior_ptid.
928 2020-08-07  Tom Tromey  <tromey@adacore.com>
930         * ravenscar-thread.c (ravenscar_thread_target::wait): Call
931         update_inferior_ptid before update_thread_list.
932         (temporarily_change_regcache_ptid): New class.
933         (ravenscar_thread_target::fetch_registers)
934         (ravenscar_thread_target::store_registers)
935         (ravenscar_thread_target::prepare_to_store): Use base thread when
936         forwarding operation.
938 2020-08-07  Tom Tromey  <tromey@adacore.com>
940         * ravenscar-thread.c (ravenscar_thread_target::resume): Handle
941         "is_pid" case.
943 2020-08-07  Tom Tromey  <tromey@adacore.com>
945         * ravenscar-thread.c (xfer_partial, enable_btrace, add_thread):
946         New methods.
947         (ravenscar_thread_target::get_thread_base_cpu): Check m_cpu_map
948         first.
949         (ravenscar_thread_target::add_thread): Rename from
950         ravenscar_add_thread.
951         (ravenscar_thread_target::update_thread_list): Use a lambda.
952         (ravenscar_thread_target::xfer_partial): New method.
954 2020-08-07  Tom Tromey  <tromey@adacore.com>
956         * ada-lang.h (ada_task_list_iterator_ftype): Now a
957         gdb::function_view.
958         (iterate_over_live_ada_tasks): Change type of argument.
959         * ada-tasks.c (iterate_over_live_ada_tasks): Change type
960         of argument.
962 2020-08-07  Tom Tromey  <tromey@adacore.com>
964         * ravenscar-thread.c (ravenscar_thread_target) <extra_thread_info>:
965         Remove.
966         (ravenscar_thread_target::extra_thread_info): Remove.
967         (ravenscar_thread_target::pid_to_str): Mention Ravenscar in result;
968         defer to target beneath for non-Ravenscar threads.
970 2020-08-07  Tom Tromey  <tromey@adacore.com>
972         * ravenscar-thread.c (ravenscar_thread_target) <get_base_cpu,
973         get_base_thread_from_ravenscar_task>: Now methods.
974         <m_cpu_map>: New member.
975         (ravenscar_thread_target::get_thread_base_cpu): Rename from
976         ravenscar_get_thread_base_cpu.  Check m_cpu_map.
977         (ravenscar_thread_target::task_is_currently_active): Update.
978         (ravenscar_thread_target::get_base_thread_from_ravenscar_task):
979         Now a method.
980         (ravenscar_thread_target::add_active_thread): Put initial thread
981         into the m_cpu_map.
983 2020-08-07  Tom Tromey  <tromey@adacore.com>
985         * ravenscar-thread.c (ravenscar_thread_target::wait): Return
986         event_ptid.
988 2020-08-07  Tom Tromey  <tromey@adacore.com>
990         * ravenscar-thread.c (ravenscar_thread_target::wait): Check
991         runtime_initialized.
993 2020-08-07  Tom Tromey  <tromey@adacore.com>
995         * ravenscar-thread.c (ravenscar_thread_target): Don't call
996         add_active_thread.
997         (ravenscar_thread_target::add_active_thread): Now public.
998         (ravenscar_inferior_created): Call add_active_thread after pushing
999         the target.
1001 2020-08-07  Simon Marchi  <simon.marchi@polymtl.ca>
1003         * regcache.c (ptid_regcache_map): New type.
1004         (target_ptid_regcache_map): New type.
1005         (regcaches): Change type to target_ptid_regcache_map.
1006         (get_thread_arch_aspace_regcache): Update to regcaches' new
1007         type.
1008         (regcache_thread_ptid_changed): Likewise.
1009         (registers_changed_ptid): Likewise.
1010         (regcaches_size): Likewise.
1011         (regcaches_test): Update.
1012         (regcache_thread_ptid_changed): Update.
1013         * regcache.h (regcache_up): New type.
1014         * gdbsupport/ptid.h (hash_ptid): New struct.
1016 2020-08-07  Simon Marchi  <simon.marchi@efficios.com>
1018         * observable.h (thread_ptid_changed): Add parameter
1019         `process_stratum_target *`.
1020         * infrun.c (infrun_thread_ptid_changed): Add parameter
1021         `process_stratum_target *` and use it.
1022         (selftests): New namespace.
1023         (infrun_thread_ptid_changed): New function.
1024         (_initialize_infrun): Register selftest.
1025         * regcache.c (regcache_thread_ptid_changed): Add parameter
1026         `process_stratum_target *` and use it.
1027         (regcache_thread_ptid_changed): New function.
1028         (_initialize_regcache): Register selftest.
1029         * thread.c (thread_change_ptid): Pass target to
1030         thread_ptid_changed observable.
1032 2020-08-06  Caroline Tice <cmtice@google.com>
1034         * dwarf2/read.c (struct dwo_file): Update comment on 'sections' field.
1035         (struct dwp_sections): Update field comments.  Add loclists and
1036         rnglists fields.
1037         (struct virtual_v2_dwo_sections): Rename struct to
1038         'virtual_v2_or_v5_dwo_sections'; update comments at top of struct; add
1039         size & offset fields for loclists and rnglists.
1040         (struct dwp_hash_table): Add a 'v5' struct field to the union section.
1041         (create_debug_type_hash_table): Add 'DW_UT_split_type' to the check for
1042         skipping dummy type units.
1043         (create_dwp_hash_table): Update the large comment above the function to
1044         discuss Version 5 DWP files as well, with references.  Update all the
1045         version checks in the function to check for version 5 as well.  Add new
1046         section at the end to create dwp hash table for version 5.
1047         (create_dwp_v2_section): Rename function to
1048         'create_dwp_v2_or_v5_section'.  Update function comment appropriately.
1049         Add V5 to error message text.
1050         (create_dwo_unit_in_dwp_v2): Change calls to create_dwp_v2_section
1051         into calls to create_dwp_v2_or_v5_section.
1052         (create_dwo_unit_in_dwp_v5): New function.
1053         (lookup_dwo_unit_in_dwp): Update conditional statement to explicitly
1054         check for version2; add else clause to handle version 5.
1055         (open_and_init_dwo_file): Add code to check dwarf version & only call
1056         create_debug_types_hash_table (with sections.types) if version is not 5;
1057         else call create_debug_type_hash_table, with sections.info.
1058         (dwarf2_locate_v2_dwp_sections): Update function comment to mention
1059         version 5.
1060         (dwarf2_locate_v5_dwp_sections): New function.
1061         (open_and_init_dwp_file): Add else-if clause for version 5 to call
1062         bfd_map_over_sections with dwarf2_locate_v5_dwp_sections.
1064 2020-08-06  Simon Marchi  <simon.marchi@efficios.com>
1066         * regcache.h (class regcache): Remove friend
1067         registers_changed_ptid.
1068         <regcache_thread_ptid_changed>: Remove.
1069         <regcaches>: Remove.
1070         * regcache.c (regcache::regcaches): Rename to...
1071         (regcaches): ... this.  Make static.
1072         (get_thread_arch_aspace_regcache): Update.
1073         (regcache::regcache_thread_ptid_changed): Rename to...
1074         (regcache_thread_ptid_changed): ... this.  Update.
1075         (class regcache_access): Remove.
1076         (regcaches_test): Update.
1077         (_initialize_regcache): Update.
1078         * sparc64-tdep.c, dwarf2/index-write.c, record-btrace.c: Include
1079         <forward_list>.
1081 2020-08-06  Simon Marchi  <simon.marchi@efficios.com>
1083         * regcache.h (class regcache) <current_regcache>: Rename to...
1084         <regcaches>: ... this.  Move doc here.
1085         * regcache.c (regcache::current_regcache) Rename to...
1086         (regcache::regcaches): ... this.  Move doc to header.
1087         (get_thread_arch_aspace_regcache): Update.
1088         (regcache::regcache_thread_ptid_changed): Update.
1089         (registers_changed_ptid): Update.
1090         (class regcache_access) <current_regcache_size>: Rename to...
1091         <regcaches_size>: ... this.
1092         (current_regcache_test): Rename to...
1093         (regcaches_test): ... this.
1094         (_initialize_regcache): Update.
1096 2020-08-06  Victor Collod  <vcollod@nvidia.com>
1098         * amd64-tdep.c (amd64_analyze_prologue): Fix incorrect comment.
1100 2020-08-05  Kevin Buettner  <kevinb@redhat.com>
1102         * corelow.c (core_target::build_file_mappings): Don't output
1103         null pathname in warning.
1105 2020-08-05  Simon Marchi  <simon.marchi@polymtl.ca>
1107         * gdb.dwarf2/clztest.exp, gdb.dwarf2/dw2-common-block.exp,
1108         gdb.dwarf2/dw2-dup-frame.exp, gdb.dwarf2/dw2-reg-undefined.exp,
1109         gdb.dwarf2/dw2-single-line-discriminators.exp,
1110         dw2-undefined-ret-addr.exp: Pass nopie to compilation options.
1112 2020-08-05  Tom Tromey  <tromey@adacore.com>
1114         PR rust/26197:
1115         * dwarf2/read.c (alloc_rust_variant): Handle univariant case.
1116         (quirk_rust_enum): Call alloc_rust_variant for univariant case.
1117         Fix off-by-one and type size errors in ordinary case.
1119 2020-08-05  Tom de Vries  <tdevries@suse.de>
1121         * gdbtypes.c (type_not_allocated, type_not_associated): Use
1122         "prop->const_val () == 0" instead of "prop->const_val () != 0".
1124 2020-08-04  Simon Marchi  <simon.marchi@efficios.com>
1126         * frame.h (frame_id_p): Return bool.
1127         (frame_id_artificial_p): Return bool.
1128         (frame_id_eq): Return bool.
1129         (has_stack_frames): Return bool.
1130         (get_selected_frame): Fix typo in comment.
1131         (get_frame_pc_if_available): Return bool.
1132         (get_frame_address_in_block_if_available): Return bool.
1133         (get_frame_func_if_available): Return bool.
1134         (read_frame_register_unsigned): Return bool.
1135         (get_frame_register_bytes): Return bool.
1136         (safe_frame_unwind_memory): Return bool.
1137         (deprecated_frame_register_read): Return bool.
1138         (frame_unwinder_is): Return bool.
1139         * frame.c (struct frame_info) <prev_arch::p>: Change type to
1140         bool.
1141         <this_id::p>: Likewise.
1142         <prev_p>: Likewise.
1143         (frame_stash_add): Return bool.
1144         (get_frame_id): Use bool.
1145         (frame_id_build_special) Use bool.
1146         (frame_id_build_unavailable_stack): Use bool.
1147         (frame_id_build): Use bool.
1148         (frame_id_p): Return bool, use true/false instead of 1/0.
1149         (frame_id_artificial_p): Likewise.
1150         (frame_id_eq): Likewise.
1151         (frame_id_inner): Likewise.
1152         (get_frame_func_if_available): Likewise.
1153         (read_frame_register_unsigned): Likewise.
1154         (deprecated_frame_register_read): Likewise.
1155         (get_frame_register_bytes): Likewise.
1156         (has_stack_frames): Likewise.
1157         (inside_main_func): Likewise.
1158         (inside_entry_func): Likewise.
1159         (get_frame_pc_if_available): Likewise.
1160         (get_frame_address_in_block_if_available): Likewise.
1161         (frame_unwinder_is): Likewise.
1162         (safe_frame_unwind_memory): Likewise.
1163         (frame_unwind_arch): Likewise.
1165 2020-08-04  Simon Marchi  <simon.marchi@efficios.com>
1167         * frame.c (frame_info) <prev_func> <p>: Rename to status, change
1168         type to cached_copy_status.
1169         (fprintf_frame): Adjust.
1170         (get_frame_func_if_available): Adjust.
1171         (frame_cleanup_after_sniffer): Adjust.
1173 2020-08-04  Mark Wielaard  <mark@klomp.org>
1175         * MAINTAINERS (Write After Approval): Update email address.
1177 2020-08-04  Simon Marchi  <simon.marchi@polymtl.ca>
1179         * gdbtypes.h (TYPE_DYN_PROP_ADDR): Remove, replace uses with
1180         dynamic_prop::const_val.
1182 2020-08-04  Simon Marchi  <simon.marchi@polymtl.ca>
1184         * gdbtypes.h (TYPE_DYN_PROP_KIND): Remove, replace uses with
1185         dynamic_prop::kind.
1187 2020-08-04  Simon Marchi  <simon.marchi@polymtl.ca>
1189         * gdbtypes.h (TYPE_DYN_PROP_BATON): Remove.
1191 2020-08-04  Jose E. Marchesi  <jose.marchesi@oracle.com>
1193         * configure.tgt: Set gdb_sim for bpf-*-* targets.
1195 2020-08-04  Weimin Pan <weimin.pan@oracle.com>
1196             Jose E. Marchesi  <jose.marchesi@oracle.com>
1198         * configure.tgt: Add entry for bpf-*-*.
1199         * Makefile.in (ALL_TARGET_OBS): Add bpf-tdep.o
1200         (ALLDEPFILES): Add bpf-tdep.c.
1201         * bpf-tdep.c: New file.
1202         * MAINTAINERS: Add bpf target and maintainer.
1203         * NEWS: Mention the support for the new target.
1205 2020-08-04  Tom de Vries  <tdevries@suse.de>
1207         PR symtab/23270
1208         * dwarf2/read.c (find_partial_die): Change internal error into Dwarf
1209         Error.
1211 2020-08-03  John Baldwin  <jhb@FreeBSD.org>
1213         * syscalls/freebsd.xml: Regenerate.
1215 2020-08-03  John Baldwin  <jhb@FreeBSD.org>
1217         * syscalls/update-freebsd.sh: Fix usage and year range.
1219 2020-08-03  Tom de Vries  <tdevries@suse.de>
1221         PR symtab/26333
1222         * dwarf2/read.c (dwarf_decode_lines_1): Ignore
1223         DW_LNE_lo_user/DW_LNE_hi_user range.
1225 2020-07-30  Simon Marchi  <simon.marchi@polymtl.ca>
1227         PR ada/26318
1228         * ada-lang.c (ada_modulus): Return 0 if property is not of const
1229         kind.
1231 2020-07-30  Tankut Baris Aktemur  <tankut.baris.aktemur@intel.com>
1233         * breakpoint.c (set_breakpoint_condition): Do minor refactoring.
1235 2020-07-30  Tankut Baris Aktemur  <tankut.baris.aktemur@intel.com>
1237         * breakpoint.c (set_breakpoint_condition): Update the condition
1238         expressions after checking that the input condition string parses
1239         successfully and does not contain junk at the end.
1241 2020-07-30  Tankut Baris Aktemur  <tankut.baris.aktemur@intel.com>
1243         * breakpoint.c (set_breakpoint_condition): Update the
1244         condition string after parsing the new condition successfully.
1246 2020-07-30  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
1248         * proc-api.c (_STRUCTURED_PROC): Don't define.
1249         * proc-events.c: Likewise.
1250         * proc-flags.c: Likewise.
1251         * proc-why.c: Likewise.
1252         * procfs.c: Likewise.
1254         * Makefile.in (INTERNAL_CPPFLAGS): Add LARGEFILE_CPPFLAGS.
1255         * configure, config.in: Regenerate.
1257 2020-07-30  Tom de Vries  <tdevries@suse.de>
1259         PR build/26320
1260         * ui-style.h (struct ui_file_style::color): Wrap m_value and
1261         m_red/m_green/m_blue in a union.
1263 2020-07-29  Tom de Vries  <tdevries@suse.de>
1265         PR tdep/26280
1266         * s390-tdep.c (s390_displaced_step_fixup): Fix Wmaybe-uninitialized.
1268 2020-07-28  Tom Tromey  <tromey@adacore.com>
1270         PR symtab/26270:
1271         * symtab.h (find_pc_partial_function_sym): Declare.
1272         * cli/cli-cmds.c (disassemble_command): Use
1273         find_pc_partial_function_sym.  Check asm_demangle.
1274         * blockframe.c (cache_pc_function_sym): New global.
1275         (cache_pc_function_name): Remove.
1276         (clear_pc_function_cache): Update.
1277         (find_pc_partial_function_sym): New function, from
1278         find_pc_partial_function.
1279         (find_pc_partial_function): Rewrite using
1280         find_pc_partial_function_sym.
1282 2020-07-28  Tom Tromey  <tromey@adacore.com>
1284         * cli/cli-cmds.c (_initialize_cli_cmds): Rearrange "disassemble"
1285         help.  Add usage.
1287 2020-07-28  Tom Tromey  <tromey@adacore.com>
1289         * dwarf2/expr.c (dwarf_expr_context::execute_stack_op)
1290         <DW_OP_GNU_variable_value>: Cast to address type.
1292 2020-07-28  Kamil Rytarowski  <n54@gmx.com>
1294         * nbsd-nat.h (nbsd_nat_target::xfer_partial): New declaration.
1295         * nbsd-nat.c (nbsd_nat_target::xfer_partial): New function.
1296         * nbsd-tdep.c (nbsd_gdbarch_data_handle, struct nbsd_gdbarch_data)
1297         (init_nbsd_gdbarch_data, get_nbsd_gdbarch_data)
1298         (nbsd_get_siginfo_type): New.
1299         (nbsd_init_abi): Install gdbarch "get_siginfo_type" method.
1300         (_initialize_nbsd_tdep): New.
1302 2020-07-28  H.J. Lu  <hongjiu.lu@intel.com>
1304         PR binutils/26301
1305         * configure: Regenerated.
1307 2020-07-28  H.J. Lu  <hongjiu.lu@intel.com>
1309         PR binutils/26301
1310         * configure: Regenerated.
1312 2020-07-28  Andrew Burgess  <andrew.burgess@embecosm.com>
1314         * python/py-frame.c: Remove 'user-regs.h' include.
1315         (frapy_read_register): Rewrite to make use of
1316         gdbpy_parse_register_id.
1317         * python/py-registers.c (gdbpy_parse_register_id): New function,
1318         moved here from python/py-unwind.c.  Updated the return type, and
1319         also accepts register descriptor objects.
1320         * python/py-unwind.c: Remove 'user-regs.h' include.
1321         (pyuw_parse_register_id): Moved to python/py-registers.c.
1322         (unwind_infopy_add_saved_register): Update to use
1323         gdbpy_parse_register_id.
1324         (pending_framepy_read_register): Likewise.
1325         * python/python-internal.h (gdbpy_parse_register_id): Declare.
1327 2020-07-28  Andrew Burgess  <andrew.burgess@embecosm.com>
1329         * python/py-registers.c: Add 'user-regs.h' include.
1330         (register_descriptor_iter_find): New function.
1331         (register_descriptor_iterator_object_methods): New static global
1332         methods array.
1333         (register_descriptor_iterator_object_type): Add pointer to methods
1334         array.
1336 2020-07-27  John Baldwin  <jhb@FreeBSD.org>
1338         * fbsd-nat.h: Include <osreldate.h>.  Define USE_SIGTRAP_SIGINFO
1339         for all architectures on FreeBSD 11.3 and later.
1341 2020-07-27  Tom Tromey  <tromey@adacore.com>
1343         * gcore.h (load_corefile): Don't declare.
1345 2020-07-27  Tom de Vries  <tdevries@suse.de>
1347         * configure.ac: Fix sys/sockets.h -> sys/socket.h typo.
1348         * config.in: Regenerate.
1349         * configure: Regenerate.
1351 2020-07-26  Eli Zaretskii  <eliz@gnu.org>
1353         * configure.ac (AC_CHECK_HEADERS): Check for sys/socket.h and
1354         ws2tcpip.h.  When checking whether socklen_t type is defined, use
1355         ws2tcpip.h if it is available and sys/socket.h isn't.
1356         * configure: Regenerate.
1357         * config.in: Regenerate.
1359 2020-07-25  Andrew Burgess  <andrew.burgess@embecosm.com>
1361         PR fortran/23051
1362         PR fortran/26139
1363         * valops.c (value_ind): Pass address to
1364         readjust_indirect_value_type.
1365         * value.c (readjust_indirect_value_type): Make parameter
1366         non-const, and add extra address parameter.  Resolve original type
1367         before using it.
1368         * value.h (readjust_indirect_value_type): Update function
1369         signature and comment.
1371 2020-07-25  Tom de Vries  <tdevries@suse.de>
1373         PR symtab/26243
1374         * dwarf2/read.c (lnp_state_machine::record_line): Ignore zero line
1375         entries.
1377 2020-07-24  Aaron Merey  <amerey@redhat.com>
1379         * Makefile.in: Replace LIBDEBUGINFOD with DEBUGINFOD_LIBS.
1380         * configure: Rebuild.
1382 2020-07-23  Kevin Buettner  <kevinb@redhat.com>
1384         PR corefiles/26294
1385         * corelow.c (_initialize_corelow): Add period to help text
1386         for "maintenance print core-file-backed-mappings".
1388 2020-07-23  Pedro Alves  <pedro@palves.net>
1390         * frame-unwind.c (frame_unwind_try_unwinder): On exception, don't
1391         touch THIS_CACHE/THIS_FRAME if the frame cache was cleared
1392         meanwhile.
1393         * frame.c (frame_cache_generation, get_frame_cache_generation):
1394         New.
1395         (reinit_frame_cache): Increment FRAME_CACHE_GENERATION.
1396         (get_prev_frame_if_no_cycle): On exception, don't touch
1397         PREV_FRAME/THIS_FRAME if the frame cache was cleared meanwhile.
1398         * frame.h (get_frame_cache_generation): Declare.
1400 2020-07-23  Tom de Vries  <tdevries@suse.de>
1402         PR tui/26282
1403         * tui/tui-winsource.h (struct tui_source_windows::tui_source_windows):
1404         New default constructor.
1406 2020-07-23  Andrew Burgess  <andrew.burgess@embecosm.com>
1408         * disasm.c (do_mixed_source_and_assembly_deprecated): Don't
1409         exclude non-statement entries.
1411 2020-07-22  Kevin Buettner  <kevinb@redhat.com>
1413         * NEWS (New commands): Mention new command
1414         "maintenance print core-file-backed-mappings".
1416 2020-07-22  Kevin Buettner  <kevinb@redhat.com>
1418         * corelow.c (gdbcmd.h): Include.
1419         (core_target::info_proc_mappings): New method.
1420         (get_current_core_target): New function.
1421         (maintenance_print_core_file_backed_mappings): New function.
1422         (_initialize_corelow): Add core-file-backed-mappings to
1423         "maint print" commands.
1425 2020-07-22  Kevin Buettner  <kevinb@redhat.com>
1427         * linux-tdep.c (dump_note_entry_p): New function.
1428         (linux_dump_mapping_p_ftype): New typedef.
1429         (linux_find_memory_regions_full): Add new parameter,
1430         should_dump_mapping_p.
1431         (linux_find_memory_regions): Adjust call to
1432         linux_find_memory_regions_full.
1433         (linux_make_mappings_core_file_notes): Use dump_note_entry_p in
1434         call to linux_find_memory_regions_full.
1436 2020-07-22  Kevin Buettner  <kevinb@redhat.com>
1438         * corelow.c (solist.h, unordered_map): Include.
1439         (class core_target): Add field m_core_file_mappings and
1440         method build_file_mappings.
1441         (core_target::core_target): Call build_file_mappings.
1442         (core_target::~core_target): Free memory associated with
1443         m_core_file_mappings.
1444         (core_target::build_file_mappings): New method.
1445         (core_target::xfer_partial): Use m_core_file_mappings
1446         for memory transfers.
1447         * linux-tdep.c (linux_read_core_file_mappings): New
1448         function.
1449         (linux_core_info_proc_mappings): Rewrite to use
1450         linux_read_core_file_mappings.
1451         (linux_init_abi): Register linux_read_core_file_mappings.
1453 2020-07-22  Kevin Buettner  <kevinb@redhat.com>
1455         * arch-utils.c (default_read_core_file_mappings): New function.
1456         * arch-utils.c (default_read_core_file_mappings): Declare.
1457         * gdbarch.sh (read_core_file_mappings): New gdbarch method.
1458         * gdbarch.h, gdbarch.c: Regenerate.
1460 2020-07-22  Kevin Buettner  <kevinb@redhat.com>
1462         PR corefiles/25631
1463         * corelow.c (core_target:xfer_partial):  Revise
1464         TARGET_OBJECT_MEMORY case to consider non-SEC_HAS_CONTENTS
1465         case after first checking the stratum beneath the core
1466         target.
1467         (has_all_memory): Return true.
1468         * target.c (raw_memory_xfer_partial): Revise comment
1469         regarding use of has_all_memory.
1471 2020-07-22  Kevin Buettner  <kevinb@redhat.com>
1473         * exec.h (section_table_xfer_memory): Revise declaration,
1474         replacing section name parameter with an optional callback
1475         predicate.
1476         * exec.c (section_table_xfer_memory): Likewise.
1477         * bfd-target.c, exec.c, target.c, corelow.c: Adjust all callers
1478         of section_table_xfer_memory.
1480 2020-07-22  Tom Tromey  <tromey@adacore.com>
1482         * mi/mi-cmd-stack.c (list_args_or_locals): Use
1483         lookup_symbol_search_name.
1485 2020-07-22  Andrew Burgess  <andrew.burgess@embecosm.com>
1487         * python/py-registers.c (gdbpy_register_object_data_init): Remove
1488         redundant local variable.
1489         (gdbpy_get_register_descriptor): Extract descriptor vector as a
1490         reference, not pointer, update code accordingly.
1492 2020-07-22  Simon Marchi  <simon.marchi@polymtl.ca>
1493             Tankut Baris Aktemur  <tankut.baris.aktemur@intel.com>
1495         * objfiles.h (struct objfile) <skip_jit_symbol_lookup>: New field.
1496         * jit.c (jit_breakpoint_re_set_internal): Use the
1497         `skip_jit_symbol_lookup` field.
1499 2020-07-22  Simon Marchi  <simon.marchi@polymtl.ca>
1500             Tankut Baris Aktemur  <tankut.baris.aktemur@intel.com>
1502         * jit.c (jit_read_descriptor): Define the descriptor address once,
1503         use twice.
1504         (jit_breakpoint_deleted): Move the declaration of the loop variable
1505         `iter` into the loop header.
1506         (jit_breakpoint_re_set_internal): Move the declaration of the local
1507         variable `objf_data` to the first point of definition.
1508         (jit_event_handler): Move the declaration of local variables
1509         `code_entry`, `entry_addr`, and `objf` to their first point of use.
1510         Rename `objf` to `jited`.
1512 2020-07-22  Simon Marchi  <simon.marchi@polymtl.ca>
1514         * jit.h (struct jiter_objfile_data) <jiter_objfile_data, objfile>:
1515         Remove.
1516         * jit.c (get_jiter_objfile_data): Update.
1518 2020-07-22  Tankut Baris Aktemur  <tankut.baris.aktemur@intel.com>
1519             Simon Marchi  <simon.marchi@polymtl.ca>
1521         * jit.c (struct jit_program_space_data): Remove.
1522         (jit_program_space_key): Remove.
1523         (jiter_objfile_data::~jiter_objfile_data): Remove program space
1524         stuff.
1525         (get_jit_program_space_data): Remove.
1526         (jit_breakpoint_deleted): Iterate on all of the program space's
1527         objfiles.
1528         (jit_inferior_init): Likewise.
1529         (jit_breakpoint_re_set_internal): Likewise.  Also change return
1530         type to void.
1531         (jit_breakpoint_re_set): Pass current_program_space to
1532         jit_breakpoint_re_set_internal.
1534 2020-07-22  Simon Marchi  <simon.marchi@polymtl.ca>
1536         * jit.h (struct jiter_objfile_data) <cached_code_address,
1537         jit_breakpoint>: Move to here from ...
1538         * jit.c (jit_program_space_data): ... here.
1539         (jiter_objfile_data::~jiter_objfile_data): Update.
1540         (jit_breakpoint_deleted): Update.
1541         (jit_breakpoint_re_set_internal): Update.
1543 2020-07-22  Simon Marchi  <simon.marchi@polymtl.ca>
1545         * jit.c (jiter_objfile_data::~jiter_objfile_data): Remove some
1546         checks.
1547         (jit_read_descriptor): Remove NULL check.
1548         (jit_event_handler): Add an assertion.
1550 2020-07-22  Simon Marchi  <simon.marchi@polymtl.ca>
1552         * jit.h (struct jit_objfile_data):  Split into...
1553         (struct jiter_objfile_data): ... this ...
1554         (struct jited_objfile_data): ... and this.
1555         * objfiles.h (struct objfile) <jit_data>: Remove.
1556         <jiter_data, jited_data>: New fields.
1557         * jit.c (jit_objfile_data::~jit_objfile_data): Rename to ...
1558         (jiter_objfile_data::~jiter_objfile_data): ... this.
1559         (get_jit_objfile_data): Rename to ...
1560         (get_jiter_objfile_data): ... this.
1561         (add_objfile_entry): Update.
1562         (jit_read_descriptor): Use get_jiter_objfile_data.
1563         (jit_find_objf_with_entry_addr): Use objfile's jited_data field.
1564         (jit_breakpoint_re_set_internal): Use get_jiter_objfile_data.
1565         (jit_inferior_exit_hook): Use objfile's jited_data field.
1567 2020-07-22  Simon Marchi  <simon.marchi@polymtl.ca>
1569         * jit.h: Forward-declare `struct minimal_symbol`.
1570         (struct jit_objfile_data): Migrate to here from jit.c; also add a
1571         constructor, destructor, and an objfile* field.
1572         * jit.c (jit_objfile_data): Remove.
1573         (struct jit_objfile_data): Migrate from here to jit.h.
1574         (jit_objfile_data::~jit_objfile_data): New destructor
1575         implementation with code moved from free_objfile_data.
1576         (free_objfile_data): Delete.
1577         (get_jit_objfile_data): Update to use the jit_data field of objfile.
1578         (jit_find_objf_with_entry_addr): Ditto.
1579         (jit_inferior_exit_hook): Ditto.
1580         (_initialize_jit): Remove the call to
1581         register_objfile_data_with_cleanup.
1582         * objfiles.h (struct objfile) <jit_data>: New field.
1584 2020-07-22  Tankut Baris Aktemur  <tankut.baris.aktemur@intel.com>
1586         * jit.h: Forward-declare `struct objfile`.
1587         (jit_event_handler): Add a second parameter, the JITer objfile.
1588         * jit.c (jit_read_descriptor): Change the signature to take the
1589         JITer objfile as an argument instead of the jit_program_space_data.
1590         (jit_inferior_init): Update the call to jit_read_descriptor.
1591         (jit_event_handler): Use the new JITer objfile argument when calling
1592         jit_read_descriptor.
1593         * breakpoint.c (handle_jit_event): Update the call to
1594         jit_event_handler to pass the JITer objfile.
1596 2020-07-21  John Baldwin  <jhb@FreeBSD.org>
1598         * gdbarch.c: Regenerate.
1599         * gdbarch.h: Regenerate.
1600         * gdbarch.sh (handle_segmentation_fault): Remove method.
1601         * infrun.c (handle_segmentation_fault): Remove.
1602         (print_signal_received_reason): Remove call to
1603         handle_segmentation_fault.
1605 2020-07-21  John Baldwin  <jhb@FreeBSD.org>
1607         * sparc64-linux-tdep.c (sparc64_linux_handle_segmentation_fault):
1608         Rename to sparc64_linux_report_signal_info and add siggnal
1609         argument.
1610         (sparc64_linux_init_abi): Use sparc64_linux_report_signal_info
1611         instead of sparc64_linux_handle_segmentation_fault.
1613 2020-07-21  John Baldwin  <jhb@FreeBSD.org>
1615         * amd64-linux-tdep.c (amd64_linux_init_abi_common): Use
1616         i386_linux_report_signal_info instead of
1617         i386_linux_handle_segmentation_fault.
1618         * i386-linux-tdep.c (i386_linux_handle_segmentation_fault): Rename
1619         to i386_linux_report_signal_info and add siggnal argument.
1620         (i386_linux_init_abi): Use i386_linux_report_signal_info instead
1621         of i386_linux_handle_segmentation_fault.
1622         * i386-linux-tdep.h (i386_linux_handle_segmentation_fault): Rename
1623         to i386_linux_report_signal_info and add siggnal argument.
1625 2020-07-21  John Baldwin  <jhb@FreeBSD.org>
1627         * corelow.c (core_target_open): Invoke gdbarch report_signal_info
1628         hook if present.
1630 2020-07-21  John Baldwin  <jhb@FreeBSD.org>
1632         * gdbarch.c: Regenerate.
1633         * gdbarch.h: Regenerate.
1634         * gdbarch.sh (report_signal_info): New method.
1635         * infrun.c (print_signal_received_reason): Invoke gdbarch
1636         report_signal_info hook if present.
1638 2020-07-21  Andrew Burgess  <andrew.burgess@embecosm.com>
1640         * python/py-registers.c : Add 'unordered_map' include.
1641         (gdbpy_new_reggroup): Renamed to...
1642         (gdbpy_get_reggroup): ...this.  Update to only create register
1643         group descriptors when needed.
1644         (gdbpy_reggroup_iter_next): Update.
1646 2020-07-21  Andrew Burgess  <andrew.burgess@embecosm.com>
1648         * python/py-registers.c (gdbpy_register_object_data): New static
1649         global.
1650         (gdbpy_register_object_data_init): New function.
1651         (gdbpy_new_register_descriptor): Renamed to...
1652         (gdbpy_get_register_descriptor): ...this, and update to reuse
1653         existing register descriptors where possible.
1654         (gdbpy_register_descriptor_iter_next): Update.
1655         (gdbpy_initialize_registers): Register new gdbarch data.
1657 2020-07-21  Simon Marchi  <simon.marchi@efficios.com>
1659         * linux-nat.c (stopped_pids): Make static.
1661 2020-07-21  Simon Marchi  <simon.marchi@polymtl.ca>
1663         PR ada/26235
1664         * gdbtypes.c (ada_discrete_type_low_bound,
1665         ada_discrete_type_high_bound): Handle undefined bounds.
1667 2020-07-21  Kamil Rytarowski  <n54@gmx.com>
1669         * nbsd-nat.h (nbsd_nat_target::supports_multi_process): New
1670         declaration.
1671         * nbsd-nat.c (nbsd_nat_target::supports_multi_process): New
1672         function.
1674 2020-07-20  John Baldwin  <jhb@FreeBSD.org>
1676         * fbsd-tdep.c (fbsd_skip_solib_resolver): New function.
1677         (fbsd_init_abi): Install gdbarch "skip_solib_resolver" method.
1678         * fbsd-tdep.h (fbsd_skip_solib_resolver): New prototype.
1679         * mips-fbsd-tdep.c (mips_fbsd_skip_solib_resolver): New function.
1680         (mips_fbsd_init_abi): Install gdbarch "skip_solib_resolver"
1681         method.
1683 2020-07-20 Ludovic Courtès  <ludo@gnu.org>
1685         * guile/scm-math.c (vlscm_integer_fits_p): Use 'uintmax_t'
1686         and 'intmax_t' instead of 'scm_t_uintmax' and 'scm_t_intmax',
1687         which are deprecated in Guile 3.0.
1688         * configure.ac (try_guile_versions): Add "guile-3.0".
1689         * configure (try_guile_versions): Regenerate.
1690         * NEWS: Update entry.
1692 2020-07-20  Ludovic Courtès  <ludo@gnu.org>
1693             Doug Evans  <dje@google.com>
1695         PR gdb/21104
1696         * guile/scm-ports.c (USING_GUILE_BEFORE_2_2): New macro.
1697         (ioscm_memory_port)[read_buf_size, write_buf_size]: Wrap in #if
1698         USING_GUILE_BEFORE_2_2.
1699         (stdio_port_desc, memory_port_desc) [!USING_GUILE_BEFORE_2_2]:
1700         Change type to 'scm_t_port_type *'.
1701         (natural_buffer_size) [!USING_GUILE_BEFORE_2_2]: New variable.
1702         (ioscm_open_port) [USING_GUILE_BEFORE_2_2]: Add 'stream'
1703         parameter and honor it.  Update callers.
1704         (ioscm_open_port) [!USING_GUILE_BEFORE_2_2]: New function.
1705         (ioscm_read_from_port, ioscm_write) [!USING_GUILE_BEFORE_2_2]: New
1706         functions.
1707         (ioscm_fill_input, ioscm_input_waiting, ioscm_flush): Wrap in #if
1708         USING_GUILE_BEFORE_2_2.
1709         (ioscm_init_gdb_stdio_port) [!USING_GUILE_BEFORE_2_2]: Use
1710         'ioscm_read_from_port'.  Call 'scm_set_port_read_wait_fd'.
1711         (ioscm_init_stdio_buffers) [!USING_GUILE_BEFORE_2_2]: New function.
1712         (gdbscm_stdio_port_p) [!USING_GUILE_BEFORE_2_2]: Use 'SCM_PORTP'
1713         and 'SCM_PORT_TYPE'.
1714         (gdbscm_memory_port_end_input, gdbscm_memory_port_seek)
1715         (ioscm_reinit_memory_port): Wrap in #if USING_GUILE_BEFORE_2_2.
1716         (gdbscm_memory_port_read, gdbscm_memory_port_write)
1717         (gdbscm_memory_port_seek, gdbscm_memory_port_close)
1718         [!USING_GUILE_BEFORE_2_2]: New functions.
1719         (gdbscm_memory_port_print): Remove use of 'SCM_PTOB_NAME'.
1720         (ioscm_init_memory_port_type) [!USING_GUILE_BEFORE_2_2]: Use
1721         'gdbscm_memory_port_read'.
1722         Wrap 'scm_set_port_end_input', 'scm_set_port_flush', and
1723         'scm_set_port_free' calls in #if USING_GUILE_BEFORE_2_2.
1724         (gdbscm_get_natural_buffer_sizes) [!USING_GUILE_BEFORE_2_2]: New
1725         function.
1726         (ioscm_init_memory_port): Remove.
1727         (ioscm_init_memory_port_stream): New function
1728         (ioscm_init_memory_port_buffers) [USING_GUILE_BEFORE_2_2]: New
1729         function.
1730         (gdbscm_memory_port_read_buffer_size) [!USING_GUILE_BEFORE_2_2]:
1731         Return scm_from_uint (0).
1732         (gdbscm_set_memory_port_read_buffer_size_x)
1733         [!USING_GUILE_BEFORE_2_2]: Call 'scm_setvbuf'.
1734         (gdbscm_memory_port_write_buffer_size) [!USING_GUILE_BEFORE_2_2]:
1735         Return scm_from_uint (0).
1736         (gdbscm_set_memory_port_write_buffer_size_x)
1737         [!USING_GUILE_BEFORE_2_2]: Call 'scm_setvbuf'.
1738         * configure.ac (try_guile_versions): Add "guile-2.2".
1739         * configure: Regenerate.
1740         * NEWS: Add entry.
1742 2020-07-18  Tom Tromey  <tom@tromey.com>
1744         * linux-nat.c (linux_multi_process): Remove.
1745         (linux_nat_target::supports_multi_process): Return true.
1747 2020-07-17  Andrew Burgess  <andrew.burgess@embecosm.com>
1749         * arch/riscv.c (riscv_tdesc_cache): Change map type.
1750         (riscv_lookup_target_description): Return pointer out of
1751         unique_ptr.
1752         * target-descriptions.c (allocate_target_description): Add
1753         comment.
1754         (target_desc_deleter::operator()): Likewise.
1755         * target-descriptions.h (struct target_desc_deleter): Moved to
1756         gdbsupport/tdesc.h.
1757         (target_desc_up): Likewise.
1759 2020-07-17  Tom Tromey  <tromey@adacore.com>
1761         * linux-nat.c (linux_nat_target::supports_non_stop)
1762         (linux_nat_target::always_non_stop_p): Use "true".
1763         (linux_nat_target::supports_disable_randomization): Use "true" and
1764         "false".
1766 2020-07-16  Caroline Tice  <cmtice@google.com>
1768         * dwarf2/read.c (RNGLIST_HEADER_SIZE32) New constant definition.
1769         (RNGLIST_HEADER_SIZE64): New constant definition.
1770         (struct dwop_section_names): Add rnglists_dwo.
1771         (dwop_section_names): Add .debug_rnglists.dwo, .zdebug_rnglists.dwo.
1772         (struct loclist_header): Rename to 'loclists_rnglists_header'.
1773         (struct dwo_sections): Add rnglists field.
1774         (read_attribut_reprocess): Add tag parameter.
1775         (dwarf2_ranges_read): Add tag parameter & remove forward function decl.
1776         (cu_debug_rnglists_section): New function (decl & definition).
1777         (dwarf2_locate_dwo_sections): Add code to read rnglists_dwo section.
1778         (dwarf2_rnglists_process): Add a dwarf_tag parameter, for the kind of
1779         die whose range is being checked; get rnglist section from
1780         cu_debug_rnglists_section, to get from either objfile or dwo file as
1781         appropriate.  Add cases for DW_RLE_base_addressx,
1782         DW_RLE_startx_length, DW_RLE_startx_endx.  Also, update to only add
1783         the base address to DW_RLE_offset_pairs (not to all ranges), moving
1784         test inside if-condition and updating complaint message.
1785         (dwarf2_ranges_process): Add dwarf tag parameter and pass it to
1786         dwarf2_rnglists_process.
1787         (dwarf2_ranges_read): Add dwarf tag parameter and pass it to
1788         dwarf2_ranges_process.
1789         (dwarf2_get_pc_bounds): Check for DW_FORM_rnglistx when setting
1790         need_ranges_base and update comment appropriately.  Also pass die tag
1791         to dwarf2_ranges_read.
1792         (dwarf2_record_block_ranges): Check for DW_FORM_rnglistx when setting
1793         need_ranges_base and update comment appropriately.  Also pass die tag
1794         to dwarf2_ranges_process.
1795         (read_full_die_1): Add code to read DW_AT_rnglists_base and assign to
1796         cu->ranges_base.  Also pass die tag to read_attribute_reprocess.
1797         (partial_die_info::read): Check for DW_FORM_rnglistx when setting
1798         need_ranges_base and update comment appropriately.  Also pass die tag
1799         to read_attribute_reprocess and dwarf2_ranges_read.
1800         (read_loclist_header): Rename function to read_loclists_rnglists_header,
1801         and update function comment appropriately.
1802         (read_loclist_index): Call read_loclists_rnglists_header instead of
1803         read_loclist_header.
1804         (read_rnglist_index): New function.
1805         (read_attribute_reprocess):  Add tag parameter. Add code for
1806         DW_FORM_rnglistx, passing tag to read_rnglist_index.
1807         (read_attribute_value): Mark DW_FORM_rnglistx with need_reprocess.
1809 2020-07-15  Andrew Burgess  <andrew.burgess@embecosm.com>
1811         * f-typeprint.c (f_type_print_base): Allow for dynamic types not
1812         being resolved.
1814 2020-07-14  Andrew Burgess  <andrew.burgess@embecosm.com>
1816         * arch-utils.c (show_architecture): Update formatting of messages.
1818 2020-07-12  Simon Marchi  <simon.marchi@efficios.com>
1820         * gdbtypes.h (struct type) <bounds>: Handle array and string
1821         types.
1822         * ada-lang.c (assign_aggregate): Use type::bounds on
1823         array/string type.
1824         * c-typeprint.c (c_type_print_varspec_suffix): Likewise.
1825         * c-varobj.c (c_number_of_children): Likewise.
1826         (c_describe_child): Likewise.
1827         * eval.c (evaluate_subexp_for_sizeof): Likewise.
1828         * f-typeprint.c (f_type_print_varspec_suffix): Likewise.
1829         (f_type_print_base): Likewise.
1830         * f-valprint.c (f77_array_offset_tbl): Likewise.
1831         (f77_get_upperbound): Likewise.
1832         (f77_print_array_1): Likewise.
1833         * guile/scm-type.c (gdbscm_type_range): Likewise.
1834         * m2-typeprint.c (m2_array): Likewise.
1835         (m2_is_long_set_of_type): Likewise.
1836         * m2-valprint.c (get_long_set_bounds): Likewise.
1837         * p-typeprint.c (pascal_type_print_varspec_prefix): Likewise.
1838         * python/py-type.c (typy_range): Likewise.
1839         * rust-lang.c (rust_internal_print_type): Likewise.
1840         * type-stack.c (type_stack::follow_types): Likewise.
1841         * valarith.c (value_subscripted_rvalue): Likewise.
1842         * valops.c (value_cast): Likewise.
1844 2020-07-12  Simon Marchi  <simon.marchi@efficios.com>
1846         * gdbtypes.c (TYPE_ARRAY_BIT_STRIDE): Remove.  Update all
1847         callers to use the equivalent accessor methods.
1849 2020-07-12  Simon Marchi  <simon.marchi@efficios.com>
1851         * gdbtypes.h (struct range_bounds) <bit_stride>: New method.
1852         (struct type) <bit_stride>: New method.
1853         (TYPE_BIT_STRIDE): Remove.
1854         * gdbtypes.c (update_static_array_size): Use type::bit_stride.
1856 2020-07-12  Simon Marchi  <simon.marchi@efficios.com>
1858         * gdbtypes.h (TYPE_ARRAY_LOWER_BOUND_VALUE,
1859         TYPE_ARRAY_UPPER_BOUND_VALUE): Remove.  Update all
1860         callers to use the equivalent accessor methods instead.
1862 2020-07-12  Simon Marchi  <simon.marchi@efficios.com>
1864         * gdbtypes.h (TYPE_ARRAY_UPPER_BOUND_IS_UNDEFINED,
1865         TYPE_ARRAY_LOWER_BOUND_IS_UNDEFINED): Remove.  Update all
1866         callers to use the equivalent accessor methods instead.
1868 2020-07-12  Simon Marchi  <simon.marchi@efficios.com>
1870         * gdbtypes.h (TYPE_LOW_BOUND_KIND,
1871         TYPE_HIGH_BOUND_KIND): Remove.  Update all callers
1872         to use dynamic_prop::kind.
1874 2020-07-12  Simon Marchi  <simon.marchi@efficios.com>
1876         * gdbtypes.h (TYPE_LOW_BOUND_UNDEFINED,
1877         TYPE_HIGH_BOUND_UNDEFINED): Remove.  Update all callers
1878         to get the bound property's kind and check against
1879         PROP_UNDEFINED.
1881 2020-07-12  Simon Marchi  <simon.marchi@efficios.com>
1883         * gdbtypes.h (TYPE_LOW_BOUND, TYPE_HIGH_BOUND): Remove.  Update
1884         all callers to use type::range_bounds followed by
1885         dynamic_prop::{low,high}.
1887 2020-07-12  Simon Marchi  <simon.marchi@polymtl.ca>
1889         * gdbtypes.h (struct dynamic_prop) <kind, set_undefined,
1890         const_val, set_const_val, baton, set_locexpr, set_loclist,
1891         set_addr_offset, variant_parts, set_variant_parts,
1892         original_type, set_original_type>: New methods.
1893         <kind>: Rename to...
1894         <m_kind>: ... this.  Update all users to use the new methods
1895         instead.
1896         <data>: Rename to...
1897         <m_data>: ... this.  Update all users to use the new methods
1898         instead.
1900 2020-07-12  Simon Marchi  <simon.marchi@efficios.com>
1902         * gdbtypes.c (get_discrete_bounds): Return failure if
1903         the range type's bounds are not both defined and constant
1904         values.
1905         (get_array_bounds): Update comment.  Remove undefined bound check.
1907 2020-07-12  Simon Marchi  <simon.marchi@polymtl.ca>
1909         * gdbtypes.h (TYPE_RANGE_DATA): Remove.  Update callers to use
1910         the type::bounds method directly.
1912 2020-07-12  Simon Marchi  <simon.marchi@efficios.com>
1914         * gdbtypes.h (struct type) <bounds, set_bounds>: New methods.
1915         (TYPE_RANGE_DATA): Use type::bounds.  Change all uses that
1916         are used to set the range type's bounds to use set_bounds.
1918 2020-07-11  Philippe Waroquiers  <philippe.waroquiers@skynet.be>
1920         * exec.c (_initialize_exec): Update exec-file-mismatch help.
1922 2020-07-10  Pedro Alves  <pedro@palves.net>
1924         * gdbthread.h (inferior_ref): Define.
1925         (scoped_restore_current_thread) <m_thread>: Now a thread_info_ref.
1926         (scoped_restore_current_thread) <m_inf>: Now an inferior_ref.
1927         * thread.c
1928         (scoped_restore_current_thread::restore):
1929         Adjust to gdb::ref_ptr.
1930         (scoped_restore_current_thread::~scoped_restore_current_thread):
1931         Remove manual decref handling.
1932         (scoped_restore_current_thread::scoped_restore_current_thread):
1933         Adjust to use
1934         inferior_ref::new_reference/thread_info_ref::new_reference.
1935         Incref the thread before calling get_frame_id instead of after.
1936         Let TARGET_CLOSE_ERROR propagate.
1938 2020-07-10  Pedro Alves  <pedro@palves.net>
1940         * frame-tailcall.c (dwarf2_tailcall_sniffer_first): Only swallow
1941         NO_ENTRY_VALUE_ERROR / MEMORY_ERROR / OPTIMIZED_OUT_ERROR /
1942         NOT_AVAILABLE_ERROR.
1943         * value.c (value_optimized_out): Only swallow MEMORY_ERROR /
1944         OPTIMIZED_OUT_ERROR / NOT_AVAILABLE_ERROR.
1946 2020-07-10  Simon Marchi  <simon.marchi@polymtl.ca>
1947             Pedro Alves  <pedro@palves.net>
1949         PR gdb/26199
1950         * infrun.c (threads_are_resumed_pending_p): Delete.
1951         (do_target_wait): Remove threads_are_executing and
1952         threads_are_resumed_pending_p checks from the inferior_matches
1953         lambda.  Update comments.
1955 2020-07-10  Pedro Alves  <pedro@palves.net>
1957         PR gdb/26199
1958         * infrun.c (handle_no_resumed): Transfer terminal to inferior with
1959         executing threads.
1961 2020-07-10  Pedro Alves  <pedro@palves.net>
1963         PR gdb/26199
1964         * infrun.c (handle_no_resumed): Handle multiple targets.
1966 2020-07-10  Pedro Alves  <pedro@palves.net>
1968         PR gdb/26199
1969         * infrun.c (prepare_to_wait): Check target_can_async_p instead of
1970         target_is_async_p.
1972 2020-07-10  Pedro Alves  <pedro@palves.net>
1974         PR gdb/26199
1975         * target.c (target_pass_ctrlc): Look at the inferior's non-exited
1976         threads, not all threads.
1978 2020-07-10  Pedro Alves  <pedro@palves.net>
1980         PR gdb/26199
1981         * remote.c (remote_target::open_1): Pass remote target pointer as
1982         data to create_async_event_handler.
1983         (remote_async_inferior_event_handler): Mark async event handler
1984         before returning if the remote target still has either pending
1985         events or unacknowledged notifications.
1987 2020-07-10  John Baldwin  <jhb@FreeBSD.org>
1989         * fbsd-nat.h (fbsd_nat_target::supports_multi_process): New
1990         declaration.
1991         * fbsd-nat.c (fbsd_nat_target::supports_multi_process): New
1992         function.
1994 2020-07-09  John Baldwin  <jhb@FreeBSD.org>
1996         * inf-ptrace.c (inf_ptrace_target::wait): Don't compare against
1997         inferior_ptid.
1999 2020-07-09  John Baldwin  <jhb@FreeBSD.org>
2001         * fbsd-tdep.c (fbsd_print_auxv_entry): Handle AT_FREEBSD_ARGC,
2002         AT_FREEBSD_ARGV, AT_FREEBSD_ENVC, AT_FREEBSD_ENVV,
2003         AT_FREEBSD_PS_STRINGS.
2005 2020-07-08  Hannes Domani  <ssbssa@yahoo.de>
2007         * auto-load.c (auto_load_objfile_script_1): Convert drive part
2008         of debugfile path on Windows.
2010 2020-07-08  John Baldwin  <jhb@FreeBSD.org>
2012         * fbsd-nat.c (fbsd_nat_target::find_memory_regions): Rename 'obfd'
2013         argument to 'data'.
2015 2020-07-08  Tom Tromey  <tromey@adacore.com>
2017         * ada-lang.c (ada_exception_message_1): Use read_memory.
2019 2020-07-06  Andrew Burgess  <andrew.burgess@embecosm.com>
2021         PR python/22748
2022         * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first): Remove
2023         special handling for inline frames.
2024         * findvar.c (value_of_register_lazy): Skip inline frames when
2025         creating lazy register values.
2026         * frame.c (frame_id_computed_p): Delete definition.
2027         * frame.h (frame_id_computed_p): Delete declaration.
2029 2020-07-06  Andrew Burgess  <andrew.burgess@embecosm.com>
2031         * NEWS: Mention additions to Python API.
2032         * python/py-arch.c (archpy_register_groups): New function.
2033         (arch_object_methods): Add 'register_groups' method.
2034         * python/py-registers.c (reggroup_iterator_object): New struct.
2035         (reggroup_object): New struct.
2036         (gdbpy_new_reggroup): New function.
2037         (gdbpy_reggroup_to_string): New function.
2038         (gdbpy_reggroup_name): New function.
2039         (gdbpy_reggroup_iter): New function.
2040         (gdbpy_reggroup_iter_next): New function.
2041         (gdbpy_new_reggroup_iterator): New function
2042         (gdbpy_initialize_registers): Register new types.
2043         (reggroup_iterator_object_type): Define new Python type.
2044         (gdbpy_reggroup_getset): New static global.
2045         (reggroup_object_type): Define new Python type.
2046         * python/python-internal.h
2048 2020-07-06  Andrew Burgess  <andrew.burgess@embecosm.com>
2050         * Makefile.in (SUBDIR_PYTHON_SRCS): Add py-registers.c
2051         * python/py-arch.c (archpy_registers): New function.
2052         (arch_object_methods): Add 'registers' method.
2053         * python/py-registers.c: New file.
2054         * python/python-internal.h
2055         (gdbpy_new_register_descriptor_iterator): Declare.
2056         (gdbpy_initialize_registers): Declare.
2057         * python/python.c (do_start_initialization): Call
2058         gdbpy_initialize_registers.
2059         * NEWS: Mention additions to the Python API.
2061 2020-07-06  Andrew Burgess  <andrew.burgess@embecosm.com>
2063         * NEWS: Mention new Python API method.
2064         * python/py-unwind.c (pending_framepy_architecture): New function.
2065         (pending_frame_object_methods): Add architecture method.
2067 2020-07-06  Andrew Burgess  <andrew.burgess@embecosm.com>
2069         * gdbarch.c: Regenerate.
2070         * gdbarch.h: Regenerate.
2071         * gdbarch.sh (deprecated_set_gdbarch_data): Delete.
2072         (gdbarch_data): Use internal_error for the case where
2073         deprecated_set_gdbarch_data was originally needed.
2074         * ia64-libunwind-tdep.c (libunwind_descr_init): Update parameters,
2075         and use passed in obstack.
2076         (libunwind_frame_set_descr): Should no longer get back NULL from
2077         gdbarch_data.
2078         (_initialize_libunwind_frame): Register as a pre-init gdbarch data
2079         type.
2080         * user-regs.c (user_regs_init): Update parameters, and use passed
2081         in obstack.
2082         (user_reg_add): Should no longer get back NULL from gdbarch_data.
2083         (_initialize_user_regs): Register as a pre-init gdbarch data type.
2085 2020-07-06  Tom de Vries  <tdevries@suse.de>
2087         * buildsym.c (buildsym_compunit::end_symtab_with_blockvector): Handle
2088         End-Of-Sequence in lte_is_less_than.
2089         * symtab.c (find_pc_sect_line): Revert change from commit 3d92a3e313
2090         "gdb: Don't reorder line table entries too much when sorting".
2092 2020-07-06  Tom de Vries  <tdevries@suse.de>
2094         PR tui/26205
2095         * tui/tui-win.c (tui_partial_win_by_name): Don't test for NULL name.
2097 2020-07-05  Tom de Vries  <tdevries@suse.de>
2099         PR build/26187
2100         * inferior.h (struct infcall_suspend_state_deleter): If available, use
2101         std::uncaught_exceptions instead of deprecated
2102         std::uncaught_exception.
2104 2020-07-02  Simon Marchi  <simon.marchi@polymtl.ca>
2106         * macroexp.h (macro_stringify): Return
2107         gdb::unique_xmalloc_ptr<char>.
2108         * macroexp.c (macro_stringify): Likewise.
2109         * macrotab.c (fixup_definition): Update.
2111 2020-07-02  Simon Marchi  <simon.marchi@polymtl.ca>
2113         * c-exp.y (scan_macro_expansion): Don't free `expansion`.
2114         (lex_one_token): Update.
2115         * macroexp.c (struct macro_buffer) <release>: Return
2116         gdb::unique_xmalloc_ptr<char>.
2117         (macro_stringify): Update.
2118         (macro_expand): Update.
2119         (macro_expand_next): Return gdb::unique_xmalloc_ptr<char>.
2120         * macroexp.h (macro_expand_next): Likewise.
2122 2020-07-02  Simon Marchi  <simon.marchi@efficios.com>
2124         * macroexp.h (macro_lookup_ftype): Remove.
2125         (macro_expand, macro_expand_once, macro_expand_next): Remove
2126         lookup function parameters, add scope parameter.
2127         * macroexp.c (scan, substitute_args, expand, maybe_expand,
2128         macro_expand, macro_expand_once, macro_expand_next): Likewise.
2129         * macroscope.h (standard_macro_lookup): Change parameter type
2130         to macro_scope.
2131         * macroscope.c (standard_macro_lookup): Likewise.
2132         * c-exp.y (lex_one_token): Update.
2133         * macrocmd.c (macro_expand_command): Likewise.
2134         (macro_expand_once_command): Likewise.
2136 2020-07-02  Simon Marchi  <simon.marchi@polymtl.ca>
2138         * inf-loop.c (inferior_event_handler): Remove client_data param.
2139         * inf-loop.h (inferior_event_handler): Likewise.
2140         * infcmd.c (step_1): Adjust.
2141         * infrun.c (proceed): Adjust.
2142         (fetch_inferior_event): Remove client_data param.
2143         (infrun_async_inferior_event_handler): Adjust.
2144         * infrun.h (fetch_inferior_event): Remove `void *` param.
2145         * linux-nat.c (handle_target_event): Adjust.
2146         * record-btrace.c (record_btrace_handle_async_inferior_event):
2147         Adjust.
2148         * record-full.c (record_full_async_inferior_event_handler):
2149         Adjust.
2150         * remote.c (remote_async_inferior_event_handler): Adjust.
2152 2020-07-01  Tom Tromey  <tom@tromey.com>
2154         * tui/tui-data.h (struct tui_win_info) <name>: Now pure virtual.
2155         * tui/tui-stack.h (struct tui_locator_window) <name>: New method.
2157 2020-07-01  Tom Tromey  <tom@tromey.com>
2159         * tui/tui-wingeneral.c (tui_win_info::refresh_window): Move from
2160         tui_gen_win_info.
2161         (tui_win_info::make_window): Merge with
2162         tui_gen_win_info::make_window.
2163         (tui_win_info::make_visible): Move from tui_gen_win_info.
2164         * tui/tui-win.c (tui_win_info::max_width): Move from
2165         tui_gen_win_info.
2166         * tui/tui-layout.h (class tui_layout_window) <m_window>: Change
2167         type.
2168         <window_factory>: Likewise.
2169         * tui/tui-layout.c (tui_win_info::resize): Move from
2170         tui_gen_win_info.
2171         (make_standard_window): Change return type.
2172         (get_locator_window, tui_get_window_by_name): Likewise.
2173         (tui_layout_window::apply): Remove a cast.
2174         * tui/tui-data.h (MIN_WIN_HEIGHT): Move earlier.
2175         (struct tui_win_info): Merge with tui_gen_win_info.
2176         (struct tui_gen_win_info): Remove.
2178 2020-07-01  Tom Tromey  <tom@tromey.com>
2180         * tui/tui-stack.h (struct tui_locator_window): Derive from
2181         tui_win_info.
2182         <do_scroll_horizontal, do_scroll_vertical>: New methods.
2183         <can_box>: New method.
2185 2020-07-01  Tom Tromey  <tom@tromey.com>
2187         * tui/tui-stack.h (struct tui_locator_window): Remove body.
2189 2020-07-01  Tom Tromey  <tom@tromey.com>
2191         * tui/tui-regs.c (tui_data_window::display_registers_from)
2192         (tui_data_window::display_registers_from)
2193         (tui_data_window::first_data_item_displayed)
2194         (tui_data_window::delete_data_content_windows): Update.
2195         (tui_data_window::refresh_window, tui_data_window::no_refresh):
2196         Remove.
2197         (tui_data_window::check_register_values): Update.
2198         (tui_data_item_window::rerender): Add parameters.  Update.
2199         (tui_data_item_window::refresh_window): Remove.
2200         * tui/tui-data.h (struct tui_gen_win_info) <no_refresh>: No longer
2201         virtual.
2202         * tui/tui-regs.h (struct tui_data_item_window): Don't derive from
2203         tui_gen_win_info.
2204         <refresh_window, max_height, min_height>: Remove.
2205         <rerender>: Add parameters.
2206         <x, y, visible>: New members.
2207         (struct tui_data_window) <refresh_window, no_refresh>: Remove.
2208         <m_item_width>: New member.
2210 2020-07-01  Tom Tromey  <tom@tromey.com>
2212         * tui/tui-regs.c (tui_data_window::show_register_group)
2213         (tui_data_window::check_register_values): Update.
2214         * tui/tui-regs.h (struct tui_data_item_window) <regno>: Rename
2215         from item_no.
2217 2020-07-01  Tom Tromey  <tom@tromey.com>
2219         * tui/tui-regs.c (tui_data_window::show_register_group): Remove
2220         useless "if".
2222 2020-07-01  Tom Tromey  <tom@tromey.com>
2224         * tui/tui-regs.c (tui_data_window::show_register_group): Update.
2225         * tui/tui-regs.h (struct tui_data_item_window) <name>: Remove.
2227 2020-07-01  Tom Tromey  <tom@tromey.com>
2229         * tui/tui-stack.c (SINGLE_KEY): Move from tui-data.h
2230         * tui/tui-winsource.h (enum tui_line_or_address_kind)
2231         (struct tui_line_or_address): Move from tui-data.h.
2232         * tui/tui-win.c (DEFAULT_TAB_LEN): Move from tui-data.h.
2233         * tui/tui-data.h (DEFAULT_TAB_LEN): Move to tui-win.c.
2234         (tui_cmd_window, tui_source_window_base, tui_source_window)
2235         (tui_disasm_window): Don't declare.
2236         (enum tui_line_or_address_kind, struct tui_line_or_address): Move
2237         to tui-winsource.h.
2238         (SINGLE_KEY): Move to tui-stack.c.
2240 2020-07-01  Tom Tromey  <tom@tromey.com>
2242         * tui/tui-regs.h (struct tui_data_item_window) <content>: Now a
2243         std::string.
2244         * tui/tui-regs.c (class tab_expansion_file): New.
2245         (tab_expansion_file::write): New method.
2246         (tui_register_format): Change return type.  Use
2247         tab_expansion_file.
2248         (tui_get_register, tui_data_window::display_registers_from)
2249         (tui_data_item_window::rerender): Update.
2250         * tui/tui-io.h (tui_expand_tabs): Don't declare.
2251         * tui/tui-io.c (tui_expand_tabs): Remove.
2253 2020-07-01  Tom Tromey  <tom@tromey.com>
2255         * tui/tui-regs.c (tui_reggroup_completer): Use complete_on_enum.
2257 2020-07-01  Fangrui Song  <maskray@google.com>
2259         * dwarf2/read.c (lnp_state_machine::check_line_address): Test -1.
2261 2020-07-01  Alok Kumar Sharma  <AlokKumar.Sharma@amd.com>
2263         * dwarf2/read.c (set_die_type): Removed conditions to restrict
2264         forms for DW_AT_associated and DW_AT_allocated attributes,
2265         which is already checked in function attr_to_dynamic_prop.
2267 2020-06-30  Tom Tromey  <tromey@adacore.com>
2269         * dwarf2/read.c (quirk_rust_enum): Correctly call
2270         alloc_rust_variant for default-less enum.
2272 2020-06-30  Tom Tromey  <tromey@adacore.com>
2274         PR build/26183:
2275         * ada-lang.c (ada_lookup_name_info::ada_lookup_name_info): Use
2276         gdb::to_string.
2278 2020-06-29  Simon Marchi  <simon.marchi@efficios.com>
2280         * gdbarch.sh (displaced_step_copy_insn): Update doc.
2281         * gdbarch.h: Re-generate.
2283 2020-06-28  Tom Tromey  <tom@tromey.com>
2285         * command.h (cmd_types): Remove.
2286         (cmd_type): Don't declare.
2287         * cli/cli-decode.h (enum cmd_types): Uncomment.  No longer a
2288         typedef.
2289         * cli/cli-cmds.c (setting_cmd): Use cmd->type directly.
2290         * cli/cli-decode.c (cmd_type): Remove.
2292 2020-06-27  Pedro Alves  <palves@redhat.com>
2294         * fork-child.c (prefork_hook): Adjust.
2295         * infcmd.c (set_inferior_io_terminal, get_inferior_io_terminal):
2296         Delete.
2297         (set_inferior_tty_command, show_inferior_tty_command): Adjust.
2298         * inferior.c (inferior::set_tty, inferior::tty): New methods.
2299         * inferior.h (set_inferior_io_terminal, get_inferior_io_terminal):
2300         Remove declarations.
2301         (struct inferior) <set_tty, tty>: New methods.
2302         (struct inferior) <terminal>: Rename to ...
2303         (struct inferior) <m_terminal>: ... this and make private.
2304         * main.c (captured_main_1): Adjust.
2305         * mi/mi-cmd-env.c (mi_cmd_inferior_tty_set): Adjust.
2306         (mi_cmd_inferior_tty_show): Adjust.
2307         * nto-procfs.c (nto_procfs_target::create_inferior): Adjust.
2308         * windows-nat.c (windows_nat_target::create_inferior): Adjust.
2310 2020-06-26  Nick Alcock  <nick.alcock@oracle.com>
2312         * configure.ac: Add --enable-libctf: handle --disable-static
2313         properly.
2314         * acinclude.m4: sinclude ../config/enable.m4.
2315         * Makefile.in (aclocal_m4_deps): Adjust accordingly.
2316         (LIBCTF): Substitute in.
2317         (CTF_DEPS): New, likewise.
2318         (CLIBS): libctf needs symbols from libbfd: move earlier.
2319         (CDEPS): Use CTF_DEPS, not LIBCTF, now LIBCTF can include rpath
2320         flags.
2321         * ctfread.c: Surround in ENABLE_LIBCTF.
2322         (elfctf_build_psymtabs) [!ENABLE_LIBCTF]: New stub.
2323         * configure: Regenerate.
2324         * config.in: Likewise.
2326 2020-06-25  Simon Marchi  <simon.marchi@efficios.com>
2328         * infcmd.c (set_inferior_io_terminal): Use make_unique_xstrdup.
2330 2020-06-25  Simon Marchi  <simon.marchi@efficios.com>
2332         * inferior.h (struct inferior) <terminal>: Change type to
2333         gdb::unique_xmalloc_ptr<char>.
2334         * inferior.c (inferior::~inferior): Don't free inf->terminal.
2335         * infcmd.c (set_inferior_io_terminal): Don't free terminal
2336         field, adjust to unique pointer.
2337         (get_inferior_io_terminal): Adjust to unique pointer.
2339 2020-06-25  Andrew Burgess  <andrew.burgess@embecosm.com>
2341         * riscv-tdep.c (riscv_print_registers_info): Loop over all
2342         registers, not just the known core set of registers.
2344 2020-06-25  Andrew Burgess  <andrew.burgess@embecosm.com>
2346         * riscv-tdep.c (riscv_register_name): Return NULL for duplicate
2347         fflags, frm, and fcsr registers.
2348         (riscv_register_reggroup_p): Remove unknown CSRs from save and
2349         restore groups.
2350         (riscv_tdesc_unknown_reg): New function.
2351         (riscv_gdbarch_init): Pass riscv_tdesc_unknown_reg to
2352         tdesc_use_registers.
2353         * riscv-tdep.h (struct gdbarch_tdep): Add
2354         unknown_csrs_first_regnum, unknown_csrs_count,
2355         duplicate_fflags_regnum, duplicate_frm_regnum, and
2356         duplicate_fcsr_regnum fields.
2358 2020-06-25  Andrew Burgess  <andrew.burgess@embecosm.com>
2360         * target-descriptions.c (tdesc_use_registers): Add new parameter a
2361         callback, use the callback (when not null) to help number unknown
2362         registers.
2363         * target-descriptions.h (tdesc_unknown_register_ftype): New typedef.
2364         (tdesc_use_registers): Add extra parameter to declaration.
2366 2020-06-25  Andrew Burgess  <andrew.burgess@embecosm.com>
2368         * riscv-tdep.c (value_of_riscv_user_reg): Moved to here from later
2369         in the file.
2370         (class riscv_pending_register_alias): Likewise.
2371         (riscv_register_feature::register_info): Change 'required_p' field
2372         to 'required', and change its type.  Add 'check' member function.
2373         (riscv_register_feature::register_info::check): Define new member
2374         function.
2375         (riscv_xreg_feature): Change initialisation of 'required' field.
2376         (riscv_freg_feature): Likewise.
2377         (riscv_virtual_feature): Likewise.
2378         (riscv_csr_feature): Likewise.
2379         (riscv_check_tdesc_feature): Take extra parameter, the csr
2380         tdesc_feature, rewrite the function to use the new
2381         riscv_register_feature::register_info::check function.
2382         (riscv_gdbarch_init): Pass the csr tdesc_feature where needed.
2384 2020-06-25  Andrew Burgess  <andrew.burgess@embecosm.com>
2386         * features/Makefile: Remove all references to the deleted files
2387         below.
2388         * features/riscv/32bit-csr.c: Deleted.
2389         * features/riscv/32bit-csr.xml: Deleted.
2390         * features/riscv/64bit-csr.c: Deleted.
2391         * features/riscv/64bit-csr.xml: Deleted.
2392         * features/riscv/rebuild-csr-xml.sh: Deleted.
2394 2020-06-25  Andrew Burgess  <andrew.burgess@embecosm.com>
2396         * riscv-tdep.c (struct riscv_register_feature::register_info): Fix
2397         whitespace error for declaration of names member variable.
2398         (struct riscv_register_feature): Add new prefer_first_name member
2399         variable, and fix whitespace error in declaration of registers.
2400         (riscv_xreg_feature): Initialize prefer_first_name field.
2401         (riscv_freg_feature): Likewise.
2402         (riscv_virtual_feature): Likewise.
2403         (riscv_csr_feature): Likewise.
2404         (riscv_register_name): Expand on comments.  Remove register name
2405         modifications for CSR and virtual registers.
2407 2020-06-25  Andrew Burgess  <andrew.burgess@embecosm.com>
2409         * riscv-tdep.c (struct riscv_register_feature): Fix whitespace
2410         errors.
2412 2020-06-25  Andrew Burgess  <andrew.burgess@embecosm.com>
2414         * riscv-tdep.c (riscv_create_csr_aliases): Handle csr aliases from
2415         riscv-opc.h.
2416         (class riscv_pending_register_alias): New class.
2417         (riscv_check_tdesc_feature): Take vector of pending aliases and
2418         populate it as appropriate.
2419         (riscv_setup_register_aliases): Delete.
2420         (riscv_gdbarch_init): Create vector of pending aliases and pass it
2421         to riscv_check_tdesc_feature in all cases.  Use the vector to
2422         create the register aliases.
2424 2020-06-25  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
2426         * sol2-tdep.c (sol2_static_transform_name): Remove.
2427         (sol2_init_abi): Don't register it.
2428         * gdbarch.sh (static_transform_name): Remove.
2429         * gdbarch.c, gdbarch.h: Regenerate.
2431         * dbxread.c (read_dbx_symtab) <'S'>: Remove call to
2432         gdbarch_static_transform_name.
2433         * mdebugread.c (parse_partial_symbols) <'S'>: Likewise.
2434         * stabsread.c (define_symbol) <'X'>: Remove.
2435         (define_symbol) <'S'>: Remove gdbarch_static_transform_name
2436         handling.
2437         <'V'>: Likewise.
2438         * xcoffread.c (scan_xcoff_symtab): Remove gdbarch.
2439         <'S'>: Remove call to gdbarch_static_transform_name.
2441 2020-06-25  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
2443         * procfs.c (procfs_pre_trace): New function.
2444         (procfs_target::create_inferior): Pass it to fork_inferior.
2446 2020-06-25  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
2448         * configure.tgt <sparc-*-linux*> (gdb_target_obs): Remove
2449         sparc-sol2-tdep.o, sol2-tdep.o, sparc64-sol2-tdep.o.
2450         <sparc64-*-linux*> (gdb_target_obs): Remove sparc64-sol2-tdep.o,
2451         sol2-tdep.o, sparc-sol2-tdep.o.
2452         * sparc-sol2-tdep.c (sparc32_sol2_init_abi): Make static.
2453         * sparc-tdep.h (sparc32_sol2_init_abi): Remove.
2454         * sparc64-sol2-tdep.c (sparc64_sol2_init_abi): Make static.
2455         * sparc64-tdep.h (sparc64_sol2_init_abi): Remove.
2457 2020-06-25  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
2459         * amd64-sol2-tdep.c (amd64_sol2_sigtramp_p): Remove.
2460         (amd64_sol2_init_abi): Use sol2_sigtramp_p.
2461         Call sol2_init_abi.
2462         Remove calls to set_gdbarch_skip_solib_resolver,
2463         set_gdbarch_core_pid_to_str.
2464         * i386-sol2-tdep.c (i386_sol2_sigtramp_p): Remove.
2465         (i386_sol2_static_transform_name): Remove.
2466         (i386_sol2_init_abi): Call sol2_init_abi.
2467         Remove calls to set_gdbarch_sofun_address_maybe_missing,
2468         set_gdbarch_static_transform_name,
2469         set_gdbarch_skip_solib_resolver, set_gdbarch_core_pid_to_str.
2470         Use sol2_sigtramp_p.
2471         * sol2-tdep.c (sol2_pc_in_sigtramp): New function.
2472         (sol2_sigtramp_p): New function.
2473         (sol2_static_transform_name): New function.
2474         (sol2_skip_solib_resolver, sol2_core_pid_to_str): Make static.
2475         (sol2_init_abi): New function.
2476         * sol2-tdep.h (sol2_sigtramp_p, sol2_init_abi): Declare.
2477         (sol2_skip_solib_resolver, sol2_core_pid_to_str): Remove.
2478         * sparc-sol2-tdep.c (sparc_sol2_pc_in_sigtramp): Remove.
2479         (sparc32_sol2_sigtramp_frame_sniffer): Just call sol2_sigtramp_p.
2480         (sparc_sol2_static_transform_name): Remove.
2481         (sparc32_sol2_init_abi): Call sol2_init_abi.
2482         Remove calls to set_gdbarch_sofun_address_maybe_missing,
2483         set_gdbarch_static_transform_name,
2484         set_gdbarch_skip_solib_resolver,
2485         set_gdbarch_core_pid_to_str.
2486         * sparc-tdep.h (sparc_sol2_pc_in_sigtramp)
2487         (sparc_sol2_static_transform_name): Remove
2488         * sparc64-sol2-tdep.c (sparc64_sol2_sigtramp_frame_sniffer): Just
2489         call sol2_sigtramp_p.
2490         (sparc64_sol2_init_abi): Call sol2_init_abi.
2491         Remove calls to set_gdbarch_sofun_address_maybe_missing,
2492         set_gdbarch_static_transform_name,
2493         set_gdbarch_skip_solib_resolver, set_gdbarch_core_pid_to_str.
2495 2020-06-24  Philippe Waroquiers  <philippe.waroquiers@skynet.be>
2497         * symfile-add-flags.h: New flag SYMFILE_ALWAYS_CONFIRM.
2498         * exec.c (validate_exec_file): If from_tty, set both
2499         SYMFILE_VERBOSE (== from_tty) and SYMFILE_ALWAYS_CONFIRM.
2500         * symfile.c (symbol_file_add_with_addrs): if always_confirm
2501         and from_tty, unconditionally ask a confirmation.
2503 2020-06-23  Andrew Burgess  <andrew.burgess@embecosm.com>
2505         * target-descriptions.c (tdesc_architecture_name): Protect against
2506         NULL pointer dereference.
2507         (maint_print_xml_tdesc_cmd): New function.
2508         (_initialize_target_descriptions): Register new 'maint print
2509         xml-tdesc' command and give it the filename completer.
2510         * NEWS: Mention new 'maint print xml-tdesc' command.
2512 2020-06-23  Andrew Burgess  <andrew.burgess@embecosm.com>
2514         * target-descriptions.c (class tdesc_compatible_info): New class.
2515         (struct target_desc): Change type of compatible vector.
2516         (tdesc_compatible_p): Update for change in type of
2517         target_desc::compatible.
2518         (tdesc_compatible_info_list): New function.
2519         (tdesc_compatible_info_arch_name): New function.
2520         (tdesc_add_compatible): Update for change in type of
2521         target_desc::compatible.
2522         (print_c_tdesc::visit_pre): Likewise.
2524 2020-06-23  Andrew Burgess  <andrew.burgess@embecosm.com>
2526         * target-descriptions.c (print_c_tdesc::print_c_tdesc): Change
2527         whitespace to underscore.
2528         (maint_print_c_tdesc_cmd): Use fake filename for target
2529         descriptions that came from the target.
2530         (_initialize_target_descriptions): Add filename command completion
2531         for 'maint print c-tdesc'.
2533 2020-06-23  Simon Marchi  <simon.marchi@efficios.com>
2535         * dwarf2/loc.c (decode_debug_loclists_addresses): Add empty
2536         lines.
2538 2020-06-23  Simon Marchi  <simon.marchi@efficios.com>
2540         * dwarf2/loc.c (decode_debug_loc_dwo_addresses): Add empty
2541         lines.
2542         (dwarf2_find_location_expression): Likewise.
2543         (call_site_parameter_matches): Likewise.
2544         (dwarf2_compile_expr_to_ax): Likewise.
2545         (disassemble_dwarf_expression): Likewise.
2546         (loclist_describe_location): Likewise.
2548 2020-06-23  Pedro Alves  <palves@redhat.com>
2550         * gdbarch-selftests.c: Don't include inferior.h, gdbthread.h or
2551         progspace-and-thread.h.  Include scoped-mock-context.h instead.
2552         (register_to_value_test): Use scoped_mock_context.
2553         * regcache.c: Include "scoped-mock-context.h".
2554         (cooked_read_test): Don't error out if a target is already pushed.
2555         Use scoped_mock_context.  Adjust.
2556         * scoped-mock-context.h: New file.
2558 2020-06-23  Andrew Burgess  <andrew.burgess@embecosm.com>
2560         * ada-lang.c (ada_language_data): Delete la_is_string_type_p
2561         initializer.
2562         (ada_language::is_string_type_p): New member function.
2563         * c-lang.c (c_language_data): Delete la_is_string_type_p
2564         initializer.
2565         (cplus_language_data): Likewise.
2566         (asm_language_data): Likewise.
2567         (minimal_language_data): Likewise.
2568         * d-lang.c (d_language_data): Likewise.
2569         * f-lang.c (f_is_string_type_p): Delete function, implementation
2570         moved to f_language::is_string_type_p.
2571         (f_language_data): Delete la_is_string_type_p initializer.
2572         (f_language::is_string_type_p): New member function,
2573         implementation from f_is_string_type_p.
2574         * go-lang.c (go_is_string_type_p): Delete function, implementation
2575         moved to go_language::is_string_type_p.
2576         (go_language_data): Delete la_is_string_type_p initializer.
2577         (go_language::is_string_type_p): New member function,
2578         implementation from go_is_string_type_p.
2579         * language.c (language_defn::is_string_type_p): Define new member
2580         function.
2581         (default_is_string_type_p): Make static, add comment copied from
2582         header file.
2583         (unknown_language_data): Delete la_is_string_type_p initializer.
2584         (unknown_language::is_string_type_p): New member function.
2585         (auto_language_data): Delete la_is_string_type_p initializer.
2586         (auto_language::is_string_type_p): New member function.
2587         * language.h (language_data): Delete la_is_string_type_p field.
2588         (language_defn::is_string_type_p): Declare new function.
2589         (default_is_string_type_p): Delete desclaration, move comment to
2590         definition.
2591         * m2-lang.c (m2_is_string_type_p): Delete function, implementation
2592         moved to m2_language::is_string_type_p.
2593         (m2_language_data): Delete la_is_string_type_p initializer.
2594         (m2_language::is_string_type_p): New member function,
2595         implementation from m2_is_string_type_p.
2596         * objc-lang.c (objc_language_data): Delete la_is_string_type_p
2597         initializer.
2598         * opencl-lang.c (opencl_language_data): Likewise.
2599         * p-lang.c (pascal_is_string_type_p): Delete function,
2600         implementation moved to pascal_language::is_string_type_p.
2601         (pascal_language_data): Delete la_is_string_type_p initializer.
2602         (pascal_language::is_string_type_p): New member function,
2603         implementation from pascal_is_string_type_p.
2604         * rust-lang.c (rust_is_string_type_p): Delete function,
2605         implementation moved to rust_language::is_string_type_p.
2606         (rust_language_data): Delete la_is_string_type_p initializer.
2607         (rust_language::is_string_type_p): New member function,
2608         implementation from rust_is_string_type_p.
2609         * valprint.c (val_print_scalar_or_string_type_p): Update call to
2610         is_string_type_p.
2612 2020-06-23  Andrew Burgess  <andrew.burgess@embecosm.com>
2614         * ada-lang.c (ada_language_data): Delete la_print_typedef
2615         initializer.
2616         (ada_language::print_typedef): New member function.
2617         * c-lang.c (c_language_data): Delete la_print_typedef initializer.
2618         (cplus_language_data): Likewise.
2619         (asm_language_data): Likewise.
2620         (minimal_language_data): Likewise.
2621         * d-lang.c (d_language_data): Likewise.
2622         * f-lang.c (f_language_data): Likewise.
2623         (f_language::print_typedef): New member function.
2624         * go-lang.c (go_language_data): Delete la_print_typedef
2625         initializer.
2626         * language.c (language_defn::print_typedef): Define member
2627         function.
2628         (unknown_language_data): Delete la_print_typedef initializer.
2629         (unknown_language::print_typedef): New member function.
2630         (auto_language_data): Delete la_print_typedef initializer.
2631         (auto_language::print_typedef): New member function.
2632         * language.h (language_data): Delete la_print_typedef field.
2633         (language_defn::print_typedef): Declare new member function.
2634         (LA_PRINT_TYPEDEF): Update call to print_typedef.
2635         (default_print_typedef): Delete declaration.
2636         * m2-lang.c (m2_language_data): Delete la_print_typedef
2637         initializer.
2638         (m2_language::print_typedef): New member function.
2639         * objc-lang.c (objc_language_data): Delete la_print_typedef
2640         initializer.
2641         * opencl-lang.c (opencl_language_data): Likewise.
2642         * p-lang.c (pascal_language_data): Likewise.
2643         (pascal_language::print_typedef): New member function.
2644         * rust-lang.c (rust_print_typedef): Delete function,
2645         implementation moved to rust_language::print_typedef.
2646         (rust_language): Delete la_print_typedef initializer.
2647         (rust_language::print_typedef): New member function,
2648         implementation from rust_print_typedef.
2649         * typeprint.c (default_print_typedef): Delete.
2651 2020-06-23  Andrew Burgess  <andrew.burgess@embecosm.com>
2653         * ada-lang.c (ada_language_data): Delete la_printstr initializer.
2654         (ada_language::printstr): New member function.
2655         * c-lang.c (c_language_data): Delete la_printstr initializer.
2656         (cplus_language_data): Likewise.
2657         (asm_language_data): Likewise.
2658         (minimal_language_data): Likewise.
2659         * d-lang.c (d_language_data): Likewise.
2660         * f-lang.c (f_printstr): Rename to f_language::printstr.
2661         (f_language_data): Delete la_printstr initializer.
2662         (f_language::printstr): New member function, implementation from
2663         f_printstr.
2664         * go-lang.c (go_language_data): Delete la_printstr initializer.
2665         * language.c (language_defn::printstr): Define new member
2666         function.
2667         (unk_lang_printstr): Delete.
2668         (unknown_language_data): Delete la_printstr initializer.
2669         (unknown_language::printstr): New member function.
2670         (auto_language_data): Delete la_printstr initializer.
2671         (auto_language::printstr): New member function.
2672         * language.h (language_data): Delete la_printstr field.
2673         (language_defn::printstr): Declare new member function.
2674         (LA_PRINT_STRING): Update call to printstr.
2675         * m2-lang.c (m2_printstr): Rename to m2_language::printstr.
2676         (m2_language_data): Delete la_printstr initializer.
2677         (m2_language::printstr): New member function, implementation from
2678         m2_printstr.
2679         * objc-lang.c (objc_language_data): Delete la_printstr
2680         initializer.
2681         * opencl-lang.c (opencl_language_data): Likewise.
2682         * p-lang.c (pascal_printstr): Rename to pascal_language::printstr.
2683         (pascal_language_data): Delete la_printstr initializer.
2684         (pascal_language::printstr): New member function, implementation
2685         from pascal_printstr.
2686         * p-lang.h (pascal_printstr): Delete declaration.
2687         * rust-lang.c (rust_printstr): Update header comment.
2688         (rust_language_data): Delete la_printstr initializer.
2689         (rust_language::printstr): New member function.
2691 2020-06-23  Andrew Burgess  <andrew.burgess@embecosm.com>
2693         * ada-lang.c (ada_language_data): Delete la_printchar initializer.
2694         (ada_language::printchar): New member function.
2695         * c-lang.c (c_language_data): Delete la_printchar initializer.
2696         (cplus_language_data): Likewise.
2697         (asm_language_data): Likewise.
2698         (minimal_language_data): Likewise.
2699         * d-lang.c (d_language_data): Likewise.
2700         * f-lang.c (f_printchar): Rename to f_language::printchar.
2701         (f_language_data): Delete la_printchar initializer.
2702         (f_language::printchar): New member function, implementation from
2703         f_printchar.
2704         * go-lang.c (go_language_data): Delete la_printchar initializer.
2705         * language.c (unk_lang_printchar): Delete.
2706         (language_defn::printchar): Define new member function.
2707         (unknown_language_data): Delete la_printchar initializer.
2708         (unknown_language::printchar): New member function.
2709         (auto_language_data): Delete la_printchar initializer.
2710         (auto_language::printchar): New member function.
2711         * language.h (language_data): Delete la_printchar field.
2712         (language_defn::printchar): Declare new member function.
2713         (LA_PRINT_CHAR): Update call to printchar.
2714         * m2-lang.c (m2_language_data): Delete la_printchar initializer.
2715         (m2_language::printchar): New member function.
2716         * objc-lang.c (objc_language_data): Delete la_printchar
2717         initializer.
2718         * opencl-lang.c (opencl_language_data): Likewise.
2719         * p-lang.c (pascal_language_data): Delete la_printchar
2720         initializer.
2721         (pascal_language::printchar): New member function.
2722         * rust-lang.c (rust_printchar): Rename to
2723         rust_language::printchar.
2724         (rust_language_data): Delete la_printchar initializer.
2725         (rust_language::printchar): New member function, implementation
2726         from rust_printchar.
2728 2020-06-23  Andrew Burgess  <andrew.burgess@embecosm.com>
2730         * ada-lang.c (emit_char): Renamed to ada_language::emitchar.
2731         (ada_language_data): Delete la_emitchar initializer.
2732         (ada_language::emitchar): New member function, implementation from
2733         emit_char.
2734         * c-lang.c (c_language_data): Delete la_emitchar initializer.
2735         (cplus_language_data): Likewise.
2736         (asm_language_data): Likewise.
2737         (minimal_language_data): Likewise.
2738         * d-lang.c (d_language_data): Likewise.
2739         * f-lang.c (f_emit_char): Rename to f_language::emitchar.
2740         (f_language_data): Delete la_emitchar initializer.
2741         (f_language::emitchar): New member function, implementation from
2742         f_emit_char.
2743         * go-lang.c (go_language_data): Delete la_emitchar initializer.
2744         * language.c (unk_lang_emit_char): Delete.
2745         (language_defn::emitchar): New member function definition.
2746         (unknown_language_data): Delete la_emitchar initializer.
2747         (unknown_language::emitchar): New member function.
2748         (auto_language_data): Delete la_emitchar initializer.
2749         (auto_language::emitchar): New member function.
2750         * language.h (language_data): Delete la_emitchar field.
2751         (language_defn::emitchar): New member field declaration.
2752         (LA_EMIT_CHAR): Update call to emitchar.
2753         * m2-lang.c (m2_emit_char): Rename to m2_language::emitchar.
2754         (m2_language_data): Delete la_emitchar initializer.
2755         (m2_language::emitchar): New member function, implementation from
2756         m2_emit_char.
2757         * objc-lang.c (objc_language_data): Delete la_emitchar
2758         initializer.
2759         * opencl-lang.c (opencl_language_data): Likewise.
2760         * p-lang.c (pascal_emit_char): Rename to pascal_language::emitchar.
2761         (pascal_language_data): Delete la_emitchar initializer.
2762         (pascal_language::emitchar): New member function, implementation
2763         from pascal_emit_char.
2764         * rust-lang.c (rust_emitchar): Rename to rust_language::emitchar.
2765         (rust_language_data): Delete la_emitchar initializer.
2766         (rust_language::emitchar): New member function, implementation
2767         from rust_emitchar.
2769 2020-06-23  Andrew Burgess  <andrew.burgess@embecosm.com>
2771         * ada-lang.c (resolve): Rename to ada_language::post_parser.
2772         (ada_language_data): Delete la_post_parser initializer.
2773         (ada_language::post_parser): New member function.
2774         * c-lang.c (c_language_data): Delete la_post_parser initializer.
2775         (cplus_language_data): Likewise.
2776         (asm_language_data): Likewise.
2777         (minimal_language_data): Likewise.
2778         * d-lang.c (d_language_data): Likewise.
2779         * f-lang.c (f_language_data): Likewise.
2780         * go-lang.c (go_language_data): Likewise.
2781         * language.c (unknown_language_data): Likewise.
2782         (auto_language_data): Likewise.
2783         * language.h (language_data): Delete la_post_parser field.
2784         (language_defn::post_parser): New member function.
2785         * m2-lang.c (m2_language_data): Delete la_post_parser initializer.
2786         * objc-lang.c (objc_language_data): Likewise.
2787         * opencl-lang.c (opencl_language_data): Likewise.
2788         * p-lang.c (pascal_language_data): Likewise.
2789         * parse.c (parse_exp_in_context): Update call to post_parser.
2790         (null_post_parser): Delete definition.
2791         * parser-defs.h (null_post_parser): Delete declaration.
2792         * rust-lang.c (rust_language_data): Delete la_post_parser
2793         initializer.
2795 2020-06-23  Andrew Burgess  <andrew.burgess@embecosm.com>
2797         * ada-lang.c (parse): Rename to ada_language::parser.
2798         (ada_language_data): Delete la_parser initializer.
2799         (ada_language::parser): New member function, implementation from
2800         parse.
2801         * c-lang.c (c_language_data): Delete la_parser initializer.
2802         (cplus_language_data): Likewise.
2803         (asm_language_data): Likewise.
2804         (minimal_language_data): Likewise.
2805         * d-lang.c (d_language_data): Likewise.
2806         (d_language::parser): New member function.
2807         * f-lang.c (f_language_data): Delete la_parser initializer.
2808         (f_language::parser): New member function.
2809         * go-lang.c (go_language_data): Delete la_parser initializer.
2810         (go_language::parser): New member function.
2811         * language.c (unk_lang_parser): Delete.
2812         (language_defn::parser): Define new member function.
2813         (unknown_language_data): Delete la_parser initializer.
2814         (unknown_language::parser): New member function.
2815         (auto_language_data): Delete la_parser initializer.
2816         (auto_language::parser): New member function.
2817         * language.h (language_data): Delete la_parser field.
2818         (language_defn::parser): Declare new member function.
2819         * m2-lang.c (m2_language_data): Delete la_parser initializer.
2820         (m2_language::parser): New member function.
2821         * objc-lang.c (objc_language_data): Delete la_parser initializer.
2822         * opencl-lang.c (opencl_language_data): Likewise.
2823         * p-lang.c (pascal_language_data): Likewise.
2824         (pascal_language::parser): New member function.
2825         * parse.c (parse_exp_in_context): Update call to parser.
2826         * rust-lang.c (rust_language_data): Delete la_parser initializer.
2827         (rust_language::parser): New member function.
2829 2020-06-23  Andrew Burgess  <andrew.burgess@embecosm.com>
2831         * top.c (print_gdb_configuration): Print --with-python-libdir
2832         configuration value.
2834 2020-06-22  Philippe Waroquiers  <philippe.waroquiers@skynet.be>
2836         * NEWS: Mention change to the alias command.
2838 2020-06-22  Philippe Waroquiers  <philippe.waroquiers@skynet.be>
2840         * cli/cli-cmds.c (lookup_cmd_for_default_args)
2841         (alias_command_completer)
2842         (make_alias_options_def_group): New functions.
2843         (alias_opts, alias_option_defs): New struct and array.
2844         (alias_usage_error): Update usage.
2845         (alias_command): Handles optional DEFAULT-ARGS... arguments.
2846         Use option framework.
2847         (_initialize_cli_cmds): Update alias command help.
2848         Update aliases command help.
2849         (show_user):
2850         Add NULL for new default_args lookup_cmd argument.
2851         (valid_command_p): Rename to validate_aliased_command.
2852         Add NULL for new default_args lookup_cmd argument.  Verify that the
2853         aliased_command has no default args.
2854         * cli/cli-decode.c (help_cmd): Show aliases definitions.
2855         (lookup_cmd_1, lookup_cmd): New argument default_args.
2856         (add_alias_cmd):
2857         Add NULL for new default_args lookup_cmd argument.
2858         (print_help_for_command): Show default args under the layout
2859          alias some_alias = some_aliased_cmd some_alias_default_arg.
2860         * cli/cli-decode.h (struct cmd_list_element): New member default_args.
2861         xfree default_args in destructor.
2862         * cli/cli-script.c (process_next_line, do_define_command):
2863         Add NULL for new default_args lookup_cmd argument.
2864         * command.h: Declare new default_args argument in lookup_cmd
2865         and lookup_cmd_1.
2866         * completer.c (complete_line_internal_1):
2867         Add NULL for new default_args lookup_cmd or lookup_cmd_1 argument.
2868         * guile/scm-cmd.c (gdbscm_parse_command_name): Likewise.
2869         * guile/scm-param.c (add_setshow_generic, pascm_parameter_defined_p):
2870         Likewise.
2871         * infcmd.c (_initialize_infcmd): Likewise.
2872         * python/py-auto-load.c (gdbpy_initialize_auto_load): Likewise.
2873         * python/py-cmd.c (gdbpy_parse_command_name): Likewise.
2874         * python/py-param.c (add_setshow_generic): Likewise.
2875         * remote.c (_initialize_remote): Likewise.
2876         * top.c (execute_command): Prepend default_args if command has some.
2877         (set_verbose):
2878         Add NULL for new default_args lookup_cmd or lookup_cmd_1 argument.
2879         * tracepoint.c (validate_actionline, encode_actions_1):
2880         Add NULL for new default_args lookup_cmd or lookup_cmd_1 argument.
2882 2020-06-22  Tankut Baris Aktemur  <tankut.baris.aktemur@intel.com>
2884         * jit.c (jit_read_descriptor): Use bool as the return type.
2885         (jit_breakpoint_re_set_internal): Use bool as the return type.
2886         Invert the return value logic; return true if the jit breakpoint
2887         has been successfully initialized.
2888         (jit_inferior_init): Update the call to
2889         jit_breakpoint_re_set_internal.
2891 2020-06-22  Pedro Alves  <palves@redhat.com>
2893         PR gdb/25939
2894         * procfs.c (procfs_target::wait): Don't reference inferior_ptid.
2895         Use the current inferior instead.  Don't return
2896         TARGET_WAITKIND_SPURIOUS/inferior_ptid -- instead continue and
2897         wait again.
2898         * sol-thread.c (sol_thread_target::wait): Don't reference
2899         inferior_ptid.
2900         (ps_lgetregs, ps_lsetregs, ps_lgetfpregs, ps_lsetfpregs)
2901         (sol_update_thread_list_callback): Use the current inferior's pid
2902         instead of inferior_ptid.
2904 2020-06-21  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
2906         * procfs.c: Cleanup many comments.
2908         (READ_WATCHFLAG, WRITE_WATCHFLAG, EXEC_WATCHFLAG)
2909         (AFTER_WATCHFLAG): Replace by value.
2911         (MAIN_PROC_NAME_FORMAT): Inline ...
2912         (create_procinfo): ... here.
2914         (procfs_debug_inferior): Remove SYS_exec handling.
2915         (syscall_is_exec): Likewise.
2916         (procfs_set_exec_trap): Likewise.
2918         (syscall_is_lwp_exit): Inline in callers.
2919         (syscall_is_exit): Likewise.
2920         (syscall_is_exec): Likewise.
2921         (syscall_is_lwp_create): Likewise.
2923         (invalidate_cache): Remove #if 0 code.
2925         (make_signal_thread_runnable):  Remove.
2926         (procfs_target::resume): Remove #if 0 code.
2928 2020-06-21  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
2930         PR gdb/25939
2931         * procfs.c (procfs_target::procfs_init_inferior): Move push_target
2932         call ...
2933         (procfs_target::create_inferior): ... here.
2935 2020-06-21  Philippe Waroquiers  <philippe.waroquiers@skynet.be>
2937         * exec.c (validate_exec_file): Ensure the build-id is up to
2938         date by calling reopen_exec_file (that checks file timestamp
2939         to decide to re-read the file).
2941 2020-06-18  Pedro Alves  <palves@redhat.com>
2943         PR gdb/25412
2944         * gdbthread.h (delete_thread, delete_thread_silent)
2945         (find_thread_ptid): Update comments.
2946         * thread.c (current_thread_): New global.
2947         (is_current_thread): Move higher, and reimplement.
2948         (inferior_thread): Reimplement.
2949         (set_thread_exited): Use bool.  Add assertions.
2950         (add_thread_silent): Simplify thread-reuse handling by always
2951         calling delete_thread.
2952         (delete_thread): Remove intro comment.
2953         (find_thread_ptid): Skip exited threads.
2954         (switch_to_thread_no_regs): Write to current_thread_.
2955         (switch_to_no_thread): Check CURRENT_THREAD_ instead of
2956         INFERIOR_PTID.  Clear current_thread_.
2958 2020-06-18  Pedro Alves  <palves@redhat.com>
2960         * aix-thread.c (pd_update): Use switch_to_thread.
2962 2020-06-18  Pedro Alves  <palves@redhat.com>
2964         * ravenscar-thread.c (ravenscar_thread_target): Update.
2965         (ravenscar_thread_target::update_inferior_ptid): Rename to ...
2966         (ravenscar_thread_target::add_active_thread): ... this.  Don't
2967         set m_base_ptid here.  Update to avoid referencing inferior_ptid.
2968         (ravenscar_thread_target::wait): Don't write to inferior_ptid.
2970 2020-06-18  Pedro Alves  <palves@redhat.com>
2972         * nat/windows-nat.c (current_windows_thread): Remove.
2973         * nat/windows-nat.h (current_windows_thread): Remove.
2974         * windows-nat.c (windows_nat_target::stopped_by_sw_breakpoint):
2975         Adjust.
2976         (display_selectors): Adjust to fetch the current
2977         windows_thread_info based on inferior_ptid.
2978         (fake_create_process): No longer write to current_windows_thread.
2979         (windows_nat_target::get_windows_debug_event):
2980         Don't set inferior_ptid or current_windows_thread.
2981         (windows_nat_target::wait): Adjust to not rely on
2982         current_windows_thread.
2983         (do_initial_windows_stuff): Now a method of windows_nat_target.
2984         Switch to the last_ptid thread.
2985         (windows_nat_target::attach): Adjust.
2986         (windows_nat_target::detach): Use switch_to_no_thread instead of
2987         writing to inferior_ptid directly.
2988         (windows_nat_target::create_inferior): Adjust.
2990 2020-06-18  Pedro Alves  <palves@redhat.com>
2992         * windows-nat.c (do_initial_windows_stuff): No longer set inferior_ptid.
2994 2020-06-18  Pedro Alves  <palves@redhat.com>
2996         * go32-nat.c (go32_nat_target::create_inferior): Switch to thread
2997         after creating it, instead of writing to inferior_ptid.  Don't
2998         write to inferior_ptid.
3000 2020-06-18  Pedro Alves  <palves@redhat.com>
3002         * fork-child.c (postfork_hook): Don't write to inferior_ptid.
3004 2020-06-18  Pedro Alves  <palves@redhat.com>
3006         * bsd-kvm.c (bsd_kvm_target_open): Switch to thread after adding
3007         it, instead of writing to inferior_ptid.
3009 2020-06-18  Pedro Alves  <palves@redhat.com>
3011         * btrace.c (btrace_fetch): Use switch_to_thread instead of writing
3012         to inferior_ptid.
3014 2020-06-18  Pedro Alves  <palves@redhat.com>
3016         * bsd-kvm.c (bsd_kvm_target::close): Use switch_to_no_thread
3017         instead of writing to inferior_ptid directly.
3019 2020-06-18  Pedro Alves  <palves@redhat.com>
3021         * corelow.c (core_target::close): Use switch_to_no_thread instead
3022         of writing to inferior_ptid directly.
3023         (add_to_thread_list, core_target_open): Use switch_to_thread
3024         instead of writing to inferior_ptid directly.
3026 2020-06-18  Pedro Alves  <palves@redhat.com>
3028         * darwin-nat.c (darwin_nat_target::decode_message): Don't write to
3029         inferior_ptid.
3030         (darwin_nat_target::stop_inferior, darwin_nat_target::kill): Avoid
3031         inferior_ptid.
3032         (darwin_attach_pid): Use switch_to_no_thread instead of writing to
3033         inferior_ptid directly.
3034         (darwin_nat_target::init_thread_list): Switch to thread, instead
3035         of writing to inferior_ptid.
3036         (darwin_nat_target::attach): Don't write to inferior_ptid.
3037         (darwin_nat_target::get_ada_task_ptid): Avoid inferior_ptid.
3039 2020-06-18  Pedro Alves  <palves@redhat.com>
3041         * gnu-nat.c (gnu_nat_target::create_inferior): Switch to the added
3042         thread.
3043         (gnu_nat_target::attach): Don't write to inferior_ptid directly.
3044         Instead use switch_to_thread.
3045         (gnu_nat_target::detach): Use switch_to_no_thread
3046         instead of writing to inferior_ptid directly.  Used passed-in
3047         inferior instead of looking up the inferior by pid.
3049 2020-06-18  Pedro Alves  <palves@redhat.com>
3051         * go32-nat.c (go32_nat_target::create_inferior): Don't write to
3052         inferior_ptid.
3054 2020-06-18  Pedro Alves  <palves@redhat.com>
3056         * nto-procfs.c (nto_procfs_target::update_thread_list): Avoid
3057         inferior_ptid.
3058         (nto_procfs_target::attach): Avoid inferior_ptid.  Switch to
3059         thread.
3060         (nto_procfs_target::detach): Avoid referencing
3061         inferior_ptid.  Use switch_to_no_thread instead of writing to
3062         inferior_ptid directly.
3063         (nto_procfs_target::mourn_inferior): Use switch_to_no_thread
3064         instead of writing to inferior_ptid directly.
3065         (nto_procfs_target::create_inferior): Avoid inferior_ptid.  Switch
3066         to thread.
3068 2020-06-18  Pedro Alves  <palves@redhat.com>
3070         * remote-sim.c (gdbsim_target::create_inferior): Switch to thread
3071         after creating it, instead of writing to inferior_ptid.
3072         (gdbsim_target_open): Use switch_to_no_thread instead of writing
3073         to inferior_ptid directly.
3074         (gdbsim_target::wait): Don't write to inferior_ptid.
3076 2020-06-18  Pedro Alves  <palves@redhat.com>
3078         * remote.c (remote_target::remote_notice_new_inferior): Use
3079         switch_to_thread instead of writing to inferior_ptid directly.
3080         (remote_target::add_current_inferior_and_thread): Use
3081         switch_to_no_thread instead of writing to inferior_ptid directly.
3082         (extended_remote_target::attach): Use switch_to_inferior_no_thread
3083         and switch_to_thread instead of using set_current_inferior or
3084         writing to inferior_ptid directly.
3086 2020-06-18  Pedro Alves  <palves@redhat.com>
3088         * tracectf.c (ctf_target_open): Switch to added thread instead of
3089         writing to inferior_ptid directly.
3090         (ctf_target::close): Use switch_to_no_thread instead of writing to
3091         inferior_ptid directly.
3093 2020-06-18  Pedro Alves  <palves@redhat.com>
3095         * tracefile-tfile.c (tfile_target_open): Don't write to
3096         inferior_ptid directly, instead switch to added thread.
3097         (tfile_target::close): Use switch_to_no_thread instead of writing
3098         to inferior_ptid directly.
3100 2020-06-18  Pedro Alves  <palves@redhat.com>
3102         * procfs.c (procfs_target::attach): Don't write to inferior_ptid.
3103         (procfs_target::detach): Use switch_to_no_thread
3104         instead of writing to inferior_ptid directly.
3105         (do_attach): Change return type to void.  Switch to the added
3106         thread.
3107         (procfs_target::create_inferior): Switch to the added thread.
3108         (procfs_do_thread_registers): Don't write to inferior_ptid.
3110 2020-06-18  Pedro Alves  <palves@redhat.com>
3112         * infrun.c (generic_mourn_inferior): Use switch_to_thread instead
3113         of writing to inferior_ptid.
3114         (scoped_restore_exited_inferior): Delete.
3115         (handle_vfork_child_exec_or_exit): Simplify using
3116         scoped_restore_current_pspace_and_thread.  Use switch_to_thread
3117         instead of writing to inferior_ptid.
3118         (THREAD_STOPPED_BY): Delete.
3119         (thread_stopped_by_watchpoint, thread_stopped_by_sw_breakpoint)
3120         (thread_stopped_by_hw_breakpoint): Delete.
3121         (save_waitstatus): Use
3122         scoped_restore_current_thread+switch_to_thread, and call
3123         target_stopped_by_watchpoint instead of
3124         thread_stopped_by_watchpoint, target_stopped_by_sw_breakpoint
3125         instead of thread_stopped_by_sw_breakpoint, and
3126         target_stopped_by_hw_breakpoint instead of
3127         thread_stopped_by_hw_breakpoint.
3128         (handle_inferior_event)
3129         <TARGET_WAITKIND_EXITED/TARGET_WAITKIND_SIGNALLED>: Don't write to
3130         inferior_ptid directly, nor
3131         set_current_inferior/set_current_program_space.  Use
3132         switch_to_thread / switch_to_inferior_no_thread instead.
3134 2020-06-18  Pedro Alves  <palves@redhat.com>
3136         * target.c (generic_mourn_inferior): Use switch_to_no_thread
3137         instead of writing to inferior_ptid.
3139 2020-06-18  Pedro Alves  <palves@redhat.com>
3141         * inf-ptrace.c (inf_ptrace_target::create_inferior): Switch to the
3142         added thread.
3143         (inf_ptrace_target::attach): Don't write to inferior_ptid.  Switch
3144         to the added thread.
3145         (inf_ptrace_target::detach_success): Use switch_to_no_thread
3146         instead of writing to inferior_ptid.
3148 2020-06-18  Pedro Alves  <palves@redhat.com>
3150         * gdbarch-selftests.c: Include "progspace-and-thread.h".
3151         (register_to_value_test): Mock a program_space too.  Heap-allocate
3152         the address space.  Don't write to inferior_ptid.  Use
3153         switch_to_thread instead.
3155 2020-06-18  Pedro Alves  <palves@redhat.com>
3157         * linux-tdep.c (find_signalled_thread(thread_info *,void *)):
3158         Delete.
3159         (find_signalled_thread()): New, factored out from
3160         linux_make_corefile_notes and adjusted to handle exited threads.
3161         (linux_make_corefile_notes): Adjust to use the new
3162         find_signalled_thread.
3164 2020-06-18  Pedro Alves  <palves@redhat.com>
3166         * linux-tdep.c (btrace_fetch): Save/restore current thread instead
3167         of saving/restoring inferior_ptid.
3169 2020-06-17  Tom Tromey  <tom@tromey.com>
3171         * tui/tui-win.h (tui_scroll_forward, tui_scroll_backward)
3172         (tui_scroll_left, tui_scroll_right, struct tui_win_info): Don't
3173         declare.
3174         * tui/tui-data.h (MIN_CMD_WIN_HEIGHT): Remove.
3176 2020-06-15  Simon Marchi  <simon.marchi@efficios.com>
3178         * dwarf2/read.c (dwarf2_initialize_objfile): Check for presence
3179         of partial symtabs.
3181 2020-06-17  Simon Marchi  <simon.marchi@efficios.com>
3183         * regformats/reg-arm.dat: Remove.
3184         * regformats/reg-bfin.dat: Remove.
3185         * regformats/reg-cris.dat: Remove.
3186         * regformats/reg-crisv32.dat: Remove.
3187         * regformats/reg-m32r.dat: Remove.
3188         * regformats/reg-tilegx.dat: Remove.
3189         * regformats/reg-tilegx32.dat: Remove.
3191 2020-06-17  Simon Marchi  <simon.marchi@efficios.com>
3193         * features/Makefile (WHICH): Remove arm files.
3194         * regformats/arm/arm-with-iwmmxt.dat: Remove.
3195         * regformats/arm/arm-with-neon.dat: Remove.
3196         * regformats/arm/arm-with-vfpv2.dat: Remove.
3197         * regformats/arm/arm-with-vfpv3.dat: Remove.
3199 2020-06-17  Simon Marchi  <simon.marchi@efficios.com>
3201         * features/Makefile (XMLTOC): Remove rx.xml.
3203 2020-06-17  Pedro Alves  <palves@redhat.com>
3205         * gdbthread.h (thread_control_state) <trap_expected> Update
3206         comments.
3208 2020-06-17  Andrew Burgess  <andrew.burgess@embecosm.com>
3210         * ada-lang.c (ada_lookup_symbol_nonlocal): Rename to
3211         ada_language::lookup_symbol_nonlocal.
3212         (ada_language_data): Delete la_lookup_symbol_nonlocal initializer.
3213         (ada_language::lookup_symbol_nonlocal): New member function,
3214         implementation from ada_lookup_symbol_nonlocal.
3215         * c-lang.c (c_language_data): Delete la_lookup_symbol_nonlocal
3216         initializer.
3217         (cplus_language_data): Delete la_lookup_symbol_nonlocal
3218         initializer.
3219         (cplus_language::lookup_symbol_nonlocal): New member function.
3220         (asm_language_data): Delete la_lookup_symbol_nonlocal initializer.
3221         (minimal_language_data) Likewise.
3222         * cp-namespace.c (cp_lookup_nested_symbol): Update comment.
3223         * d-lang.c (d_language_data): Delete la_lookup_symbol_nonlocal
3224         initializer.
3225         (d_language::lookup_symbol_nonlocal): New member function.
3226         * f-lang.c (f_language_data): Delete la_lookup_symbol_nonlocal
3227         initializer.
3228         (f_language::lookup_symbol_nonlocal): New member function.
3229         * go-lang.c (go_language_data): Delete la_lookup_symbol_nonlocal
3230         initializer.
3231         * language.c (unknown_language_data): Likewise.
3232         (auto_language_data): Likewise.
3233         * language.h (language_data): Delete la_lookup_symbol_nonlocal
3234         field.
3235         (language_defn::lookup_symbol_nonlocal): New member function.
3236         * m2-lang.c (m2_language_data): Delete la_lookup_symbol_nonlocal
3237         initializer.
3238         * objc-lang.c (objc_language_data): Likewise.
3239         * opencl-lang.c (opencl_language_data): Likewise.
3240         * p-lang.c (pascal_language_data): Likewise.
3241         * rust-lang.c (rust_lookup_symbol_nonlocal): Rename to
3242         rust_language::lookup_symbol_nonlocal.
3243         (rust_language_data): Delete la_lookup_symbol_nonlocal
3244         initializer.
3245         (rust_language::lookup_symbol_nonlocal): New member function,
3246         implementation from rust_lookup_symbol_nonlocal.
3247         * symtab.c (lookup_symbol_aux): Update call to
3248         lookup_symbol_nonlocal.
3249         (basic_lookup_symbol_nonlocal): Rename to...
3250         (language_defn::lookup_symbol_nonlocal): ...this, and update
3251         header comment.  Remove language_defn parameter, and replace with
3252         uses of `this'.
3253         * symtab.h (basic_lookup_symbol_nonlocal): Delete declaration.
3255 2020-06-17  Andrew Burgess  <andrew.burgess@embecosm.com>
3257         * ada-lang.c (ada_language_data): Delete la_value_print_inner
3258         initializer.
3259         (ada_language::value_print_inner): New member function.
3260         * c-lang.c (c_language_data): Delete la_value_print_inner
3261         initializer.
3262         (cplus_language_data): Likewise.
3263         (asm_language_data): Likewise.
3264         (minimal_language_data): Likewise.
3265         * d-lang.c (d_language_data): Likewise.
3266         (d_language::value_print_inner): New member function.
3267         * f-lang.c (f_language_data): Delete la_value_print_inner
3268         initializer.
3269         (f_language::value_print_inner): New member function.
3270         * f-lang.h (f_value_print_innner): Rename to...
3271         (f_value_print_inner): ...this (note spelling of 'inner').
3272         * f-valprint.c (f_value_print_innner): Rename to...
3273         (f_value_print_inner): ...this (note spelling of 'inner').
3274         * go-lang.c (go_language_data): Delete la_value_print_inner
3275         initializer.
3276         (go_language::value_print_inner): New member function.
3277         * language.c (language_defn::value_print_inner): Define new member
3278         function.
3279         (unk_lang_value_print_inner): Delete.
3280         (unknown_language_data): Delete la_value_print_inner initializer.
3281         (unknown_language::value_print_inner): New member function.
3282         (auto_language_data): Delete la_value_print_inner initializer.
3283         (auto_language::value_print_inner): New member function.
3284         * language.h (language_data): Delete la_value_print_inner field.
3285         (language_defn::value_print_inner): Delcare new member function.
3286         * m2-lang.c (m2_language_data): Delete la_value_print_inner
3287         initializer.
3288         (m2_language::value_print_inner): New member function.
3289         * objc-lang.c (objc_language_data): Delete la_value_print_inner
3290         initializer.
3291         * opencl-lang.c (opencl_language_data): Likewise.
3292         * p-lang.c (pascal_language_data): Likewise.
3293         (pascal_language::value_print_inner): New member function.
3294         * rust-lang.c (rust_language_data): Delete la_value_print_inner
3295         initializer.
3296         (rust_language::value_print_inner): New member function.
3297         * valprint.c (do_val_print): Update call to value_print_inner.
3299 2020-06-17  Andrew Burgess  <andrew.burgess@embecosm.com>
3301         * ada-lang.c (ada_language_data): Delete la_value_print
3302         initializer.
3303         (ada_language::value_print): New member function.
3304         * c-lang.c (c_language_data): Delete la_value_print initializer.
3305         (cplus_language_data): Likewise.
3306         (asm_language_data): Likewise.
3307         (minimal_language_data): Likewise.
3308         * d-lang.c (d_language_data): Likewise.
3309         * f-lang.c (f_language_data): Likewise.
3310         * go-lang.c (go_language_data): Likewise.
3311         * language.c (unk_lang_value_print): Delete.
3312         (language_defn::value_print): Define new member function.
3313         (unknown_language_data): Delete la_value_print initializer.
3314         (unknown_language::value_print): New member function.
3315         (auto_language_data): Delete la_value_print initializer.
3316         (auto_language::value_print): New member function.
3317         * language.h (language_data): Delete la_value_print field.
3318         (language_defn::value_print): Declare new member function.
3319         (LA_VALUE_PRINT): Update call to value_print.
3320         * m2-lang.c (m2_language_data): Delete la_value_print initializer.
3321         * objc-lang.c (objc_language_data): Likewise.
3322         * opencl-lang.c (opencl_language_data): Likewise.
3323         * p-lang.c (pascal_language_data): Likewise.
3324         (pascal_language::value_print): New member function.
3325         * rust-lang.c (rust_language_data): Delete la_value_print
3326         initializer.
3328 2020-06-17  Andrew Burgess  <andrew.burgess@embecosm.com>
3330         * ada-lang.c (ada_watch_location_expression): Rename to
3331         ada_language::watch_location_expression.
3332         (ada_language_data): Delete la_watch_location_expression
3333         initializer.
3334         (ada_language::watch_location_expression): New member function,
3335         implementation from ada_watch_location_expression.
3336         * breakpoint.c (watch_command_1): Update call to
3337         watch_location_expression.
3338         * c-lang.c (c_watch_location_expression): Rename to
3339         language_defn::watch_location_expression.
3340         (c_language_data): Delete la_watch_location_expression
3341         initializer.
3342         (cplus_language_data): Likewise.
3343         (asm_language_data): Likewise.
3344         (minimal_language_data): Likewise.
3345         * c-lang.h (c_watch_location_expression): Delete declaration.
3346         * d-lang.c (d_language_data): Delete la_watch_location_expression
3347         initializer.
3348         * f-lang.c (f_language_data): Likewise.
3349         * go-lang.c (go_language_data): Likewise.
3350         * language.c (language_defn::watch_location_expression): Member
3351         function implementation from c_watch_location_expression.
3352         (unknown_language_data): Delete la_watch_location_expression
3353         initializer.
3354         (auto_language_data): Likewise.
3355         * language.h (language_data): Delete la_watch_location_expression
3356         field.
3357         (language_defn::watch_location_expression): Declare new member
3358         function.
3359         * m2-lang.c (m2_language_data): Delete
3360         la_watch_location_expression initializer.
3361         * objc-lang.c (objc_language_data): Likewise.
3362         * opencl-lang.c (opencl_language_data): Likewise.
3363         * p-lang.c (pascal_language_data): Likewise.
3364         * rust-lang.c (rust_watch_location_expression): Rename to
3365         rust_language::watch_location_expression.
3366         (rust_language_data): Delete la_watch_location_expression
3367         initializer.
3368         (rust_language::watch_location_expression): New member function,
3369         implementation from rust_watch_location_expression.
3371 2020-06-17  Andrew Burgess  <andrew.burgess@embecosm.com>
3373         * ada-lang.c (ada_collect_symbol_completion_matches): Rename to
3374         ada_language::collect_symbol_completion_matches.
3375         (ada_language_data): Delete la_collect_symbol_completion_matches
3376         initializer.
3377         (ada_language::collect_symbol_completion_matches): New member
3378         function, implementation from
3379         ada_collect_symbol_completion_matches.
3380         * c-lang.c (c_language_data): Delete
3381         la_collect_symbol_completion_matches initializer.
3382         (cplus_language_data): Likewise.
3383         (asm_language_data): Likewise.
3384         (minimal_language_data): Likewise.
3385         * d-lang.c (d_language_data): Likewise.
3386         * f-lang.c (f_collect_symbol_completion_matches): Rename to
3387         f_language::collect_symbol_completion_matches.
3388         (f_language_data): Delete la_collect_symbol_completion_matches
3389         initializer.
3390         (f_language::collect_symbol_completion_matches) New member
3391         function, implementation from f_collect_symbol_completion_matches.
3392         * go-lang.c (go_language_data): Delete
3393         la_collect_symbol_completion_matches initializer.
3394         * language.c (unknown_language_data): Likewise.
3395         (auto_language_data): Likewise.
3396         * language.h (language_data): Delete
3397         la_collect_symbol_completion_matches field.
3398         (language_defn::collect_symbol_completion_matches): New member
3399         function.
3400         * m2-lang.c (m2_language_data): Delete
3401         la_collect_symbol_completion_matches initializer.
3402         * objc-lang.c (objc_language_data): Likewise.
3403         * opencl-lang.c (opencl_language_data): Likewise.
3404         * p-lang.c (pascal_language_data): Likewise.
3405         * rust-lang.c (rust_language_data): Likewise.
3406         * symtab.c (default_collect_symbol_completion_matches): Delete.
3407         (collect_symbol_completion_matches): Update call to
3408         collect_symbol_completion_matches.
3409         (collect_symbol_completion_matches_type): Likewise.
3410         * symtab.h (default_collect_symbol_completion_matches): Delete
3411         declaration.
3413 2020-06-17  Andrew Burgess  <andrew.burgess@embecosm.com>
3415         * ada-lang.c (ada_get_gdb_completer_word_break_characters): Delete.
3416         (ada_language_data): Delete la_word_break_characters initializer.
3417         (ada_language::word_break_characters): New member function.
3418         * c-lang.c (c_language_data): Delete la_word_break_characters
3419         initializer.
3420         (cplus_language_data): Likewise.
3421         (asm_language_data): Likewise.
3422         (minimal_language_data): Likewise.
3423         * completer.c: Update global comment.
3424         (advance_to_expression_complete_word_point): Update call to
3425         word_break_characters.
3426         (complete_files_symbols): Likewise.
3427         (complete_line_internal_1): Likewise.
3428         (default_completer_handle_brkchars): Likewise.
3429         (skip_quoted_chars): Likewise.
3430         * d-lang.c (d_language_data): Delete la_word_break_characters
3431         initializer.
3432         * f-lang.c (f_word_break_characters): Delete.
3433         (f_language_data): Delete la_word_break_characters initializer.
3434         (f_language::word_break_characters): New member function.
3435         * go-lang.c (go_language_data): Delete la_word_break_characters
3436         initializer.
3437         * language.c (unknown_language_data): Likewise.
3438         (auto_language_data): Likewise.
3439         * language.h (default_word_break_characters): Move declaration to
3440         earlier in the file.
3441         (language_data): Delete la_word_break_characters field.
3442         (language_defn::word_break_characters): New member function.
3443         * m2-lang.c (m2_language_data): Delete la_word_break_characters
3444         initializer.
3445         * objc-lang.c (objc_language_data): Likewise.
3446         * opencl-lang.c (opencl_language_data): Likewise.
3447         * p-lang.c (pascal_language_data): Likewise.
3448         * rust-lang.c (rust_language_data): Likewise.
3450 2020-06-17  Andrew Burgess  <andrew.burgess@embecosm.com>
3452         * ada-lang.c (ada_get_symbol_name_matcher): Update header comment.
3453         (ada_language_data): Delete la_get_symbol_name_matcher
3454         initializer.
3455         (language_defn::get_symbol_name_matcher_inner): New member
3456         function.
3457         * c-lang.c (c_language_data): Delete la_get_symbol_name_matcher
3458         initializer.
3459         (cplus_language_data): Likewise.
3460         (cplus_language::get_symbol_name_matcher_inner): New member
3461         function.
3462         (asm_language_data): Delete la_get_symbol_name_matcher initializer.
3463         (minimal_language_data): Likewise.
3464         * cp-support.h (cp_get_symbol_name_matcher): Update header comment.
3465         * d-lang.c (d_language_data): Delete la_get_symbol_name_matcher
3466         initializer.
3467         * dictionary.c (iter_match_first_hashed): Update call to
3468         get_symbol_name_matcher.
3469         (iter_match_next_hashed): Likewise.
3470         (iter_match_next_linear): Likewise.
3471         * dwarf2/read.c (dw2_expand_symtabs_matching_symbol): Likewise.
3472         * f-lang.c (f_language_data): Delete la_get_symbol_name_matcher
3473         initializer.
3474         (f_language::get_symbol_name_matcher_inner): New member function.
3475         * go-lang.c (go_language_data): Delete la_get_symbol_name_matcher
3476         initializer.
3477         * language.c (default_symbol_name_matcher): Update header comment,
3478         make static.
3479         (language_defn::get_symbol_name_matcher): New definition.
3480         (language_defn::get_symbol_name_matcher_inner): Likewise.
3481         (get_symbol_name_matcher): Delete.
3482         (unknown_language_data): Delete la_get_symbol_name_matcher
3483         initializer.
3484         (auto_language_data): Likewise.
3485         * language.h (language_data): Delete la_get_symbol_name_matcher
3486         field.
3487         (language_defn::get_symbol_name_matcher): New member function.
3488         (language_defn::get_symbol_name_matcher_inner): Likewise.
3489         (default_symbol_name_matcher): Delete declaration.
3490         * linespec.c (find_methods): Update call to
3491         get_symbol_name_matcher.
3492         * m2-lang.c (m2_language_data): Delete la_get_symbol_name_matcher
3493         initializer.
3494         * minsyms.c (lookup_minimal_symbol): Update call to
3495         get_symbol_name_matcher.
3496         (iterate_over_minimal_symbols): Likewise.
3497         * objc-lang.c (objc_language_data): Delete
3498         la_get_symbol_name_matcher initializer.
3499         * opencl-lang.c (opencl_language_data): Likewise.
3500         * p-lang.c (pascal_language_data): Likewise.
3501         * psymtab.c (psymbol_name_matches): Update call to
3502         get_symbol_name_matcher.
3503         * rust-lang.c (rust_language_data): Delete
3504         la_get_symbol_name_matcher initializer.
3505         * symtab.c (symbol_matches_search_name): Update call to
3506         get_symbol_name_matcher.
3507         (compare_symbol_name): Likewise.
3509 2020-06-17  Andrew Burgess  <andrew.burgess@embecosm.com>
3511         * ada-lang.c (ada_language_data): Delete la_compute_program
3512         initializer.
3513         * c-lang.c (c_language_data): Likewise.
3514         (c_language::compute_program): New member function.
3515         (cplus_language_data): Delete la_compute_program initializer.
3516         (cplus_language::compute_program): New member function.
3517         (asm_language_data): Delete la_compute_program initializer.
3518         (minimal_language_data): Likewise.
3519         * c-lang.h (c_compute_program): Update comment.
3520         (cplus_compute_program): Likewise.
3521         * compile/compile-c-support.c (c_compute_program): Likewise.
3522         (cplus_compute_program): Likewise.
3523         * compile/compile.c (compile_to_object): Update call to
3524         la_compute_program.
3525         * d-lang.c (d_language_data): Delete la_compute_program
3526         initializer.
3527         * f-lang.c (f_language_data): Likewise.
3528         * go-lang.c (go_language_data): Likewise.
3529         * language.c (unknown_language_data): Likewise.
3530         (auto_language_data): Likewise.
3531         * language.h (language_data): Delete la_compute_program field.
3532         (language_defn::compute_program): New member function.
3533         * m2-lang.c (m2_language_data): Delete la_compute_program
3534         initializer.
3535         * objc-lang.c (objc_language_data): Likewise.
3536         * opencl-lang.c (opencl_language_data): Likewise.
3537         * p-lang.c (pascal_language_data): Likewise.
3538         * rust-lang.c (rust_language_data): Likewise.
3540 2020-06-17  Andrew Burgess  <andrew.burgess@embecosm.com>
3542         * ada-lang.c (ada_language_data) Delete
3543         la_class_name_from_physname initializer.
3544         * c-lang.c (c_language_data): Likewise.
3545         (cplus_language_data): Likewise.
3546         (cplus_language::class_name_from_physname): New member function.
3547         (asm_language_data): Delete la_class_name_from_physname
3548         initializer.
3549         (minimal_language_data): Likewise.
3550         * d-lang.c (d_language_data): Likewise.
3551         * dwarf2/read.c (guess_partial_die_structure_name): Update to call
3552         method on language_defn class.
3553         (guess_full_die_structure_name): Likewise.
3554         * f-lang.c (f_language_data): Delete la_class_name_from_physname
3555         initializer.
3556         * go-lang.c (go_language_data): Likewise.
3557         * language.c (language_class_name_from_physname): Delete.
3558         (unk_lang_class_name): Delete.
3559         (unknown_language_data): Delete la_class_name_from_physname
3560         initializer.
3561         (auto_language_data): Likewise.
3562         * language.h (language_data): Delete la_class_name_from_physname
3563         field.
3564         (language_defn::class_name_from_physname): New function.
3565         (language_class_name_from_physname): Delete declaration.
3566         * m2-lang.c (m2_language_data): Delete la_class_name_from_physname
3567         initializer.
3568         * objc-lang.c (objc_language_data): Likewise.
3569         * opencl-lang.c (opencl_language_data): Likewise.
3570         * p-lang.c (pascal_language_data): Likewise.
3571         * rust-lang.c (rust_language_data): Likewise.
3573 2020-06-16  Tom Tromey  <tom@tromey.com>
3575         * tui/tui-data.h (STATUS_NAME): New macro.
3576         * tui/tui-layout.c (tui_remove_some_windows)
3577         (initialize_known_windows, tui_register_window)
3578         (tui_layout_split::remove_windows, initialize_layouts)
3579         (tui_new_layout_command): Don't use hard-coded window names.
3581 2020-06-16  Tom Tromey  <tom@tromey.com>
3583         PR tui/25348:
3584         * tui/tui.c (tui_ensure_readline_initialized): Rename from
3585         tui_initialize_readline.  Only run once.  Call rl_initialize.
3586         * tui/tui.h (tui_ensure_readline_initialized): Rename from
3587         tui_initialize_readline.
3588         * tui/tui-io.c (tui_setup_io): Call
3589         tui_ensure_readline_initialized.
3590         * tui/tui-interp.c (tui_interp::init): Update.
3592 2020-06-16  Tom Tromey  <tom@tromey.com>
3594         * tui/tui-layout.c (tui_layout_split::remove_windows): Fix logic.
3595         Also preserve the status window.
3597 2020-06-16  Tom Tromey  <tom@tromey.com>
3599         * python/py-tui.c (tui_py_window::~tui_py_window): Handle case
3600         where m_window==nullptr.
3602 2020-06-15  Tom Tromey  <tromey@adacore.com>
3604         * windows-nat.c (windows_nat::handle_output_debug_string):
3605         Update.
3606         (windows_nat::handle_ms_vc_exception): Update.
3607         * target.h (target_read_string): Change API.
3608         * target.c (target_read_string): Change API.
3609         * solib-svr4.c (open_symbol_file_object, svr4_read_so_list):
3610         Update.
3611         * solib-frv.c (frv_current_sos): Update.
3612         * solib-dsbt.c (dsbt_current_sos): Update.
3613         * solib-darwin.c (darwin_current_sos): Update.
3614         * linux-thread-db.c (inferior_has_bug): Update.
3615         * expprint.c (print_subexp_standard): Update.
3616         * ada-lang.c (ada_main_name, ada_tag_name_from_tsd)
3617         (ada_exception_message_1): Update.
3619 2020-06-15  Tom Tromey  <tromey@adacore.com>
3621         * linux-tdep.c (dump_mapping_p): Use target_read_memory.
3623 2020-06-15  Tom Tromey  <tromey@adacore.com>
3625         * valprint.c (read_string): Update comment.
3626         * target.c (MIN): Remove.
3627         (target_read_string): Rewrite.
3629 2020-06-15  Tom Tromey  <tromey@adacore.com>
3631         * corefile.c (read_memory_string): Remove.
3632         * ada-valprint.c (ada_value_print_ptr): Update.
3633         * ada-lang.h (ada_tag_name): Change return type.
3634         * ada-lang.c (type_from_tag): Update.
3635         (ada_tag_name_from_tsd): Change return type.  Use
3636         target_read_string.
3637         (ada_tag_name): Likewise.
3638         * gdbcore.h (read_memory_string): Don't declare.
3640 2020-06-14  Hannes Domani  <ssbssa@yahoo.de>
3642         * symtab.c (rbreak_command): Ignore Windows drive colon.
3644 2020-06-12  Simon Marchi  <simon.marchi@efficios.com>
3646         * NEWS: Mention removed GDBserver host support.
3648 2020-06-12  Nelson Chu  <nelson.chu@sifive.com>
3650         * features/riscv/rebuild-csr-xml.sh: Updated.
3652 2020-06-11  Tom Tromey  <tom@tromey.com>
3654         PR gdb/18318:
3655         * c-exp.y (lex_one_token): Handle 'p' like 'e'.
3657 2020-06-09  Jonny Grant  <jg@jguk.org>
3658 2020-06-09  Simon Marchi  <simon.marchi@polymtl.ca>
3660         * main.c (captured_main_1): Don't print new line after help.
3661         (print_gdb_help): add mailing list and IRC channel information
3662         to --help.  Add new lines between items in the footer.  Remove
3663         quotes around bug url.
3665 2020-06-11  Keith Seitz  <keiths@redhat.com>
3667         PR gdb/21356
3668         * gdbtypes.c (resolve_dynamic_union, resolve_dynamic_struct):
3669         Resolve typedefs for type length calculations.
3671 2020-06-10  Tom de Vries  <tdevries@suse.de>
3673         PR ada/24713
3674         * dwarf2/index-write.c (struct mapped_symtab): Add m_string_obstack.
3675         (write_psymbols): Enable .gdb_index for ada.
3676         * dwarf2/read.c: Remove comment stating .gdb_index is unsupported for
3677         ada.
3679 2020-06-10  Tom de Vries  <tdevries@suse.de>
3681         * dwarf2/read.c (dw2_symtab_iter_init_common): Factor out of ...
3682         (dw2_symtab_iter_init): ... here.  Add variant with "offset_type
3683         namei" instead of "const char *name" argument.
3684         (dw2_map_matching_symbols): Use "offset_type namei" variant of
3685         dw2_symtab_iter_init.
3687 2020-06-08  Simon Marchi  <simon.marchi@efficios.com>
3689         * gdbtypes.h (TYPE_FIELD_TYPE): Remove.  Change all call sites
3690         to use type::field and field::type instead.
3692 2020-06-08  Simon Marchi  <simon.marchi@efficios.com>
3694         * gdbtypes.h (FIELD_TYPE): Remove.  Change all call sites
3695         to use field::type instead.
3697 2020-06-08  Simon Marchi  <simon.marchi@efficios.com>
3699         * gdbtypes.h (struct field) <type, set_type>: New methods.
3700         Rename `type` field to...
3701         <m_type>: ... this.  Change references throughout to use type or
3702         set_type methods.
3703         (FIELD_TYPE): Use field::type.  Change call sites that modify
3704         the field's type to use field::set_type instead.
3706 2020-06-08  Simon Marchi  <simon.marchi@efficios.com>
3708         * gdbtypes.h (TYPE_INDEX_TYPE): Remove.  Change all call sites
3709         to use type::index_type instead.
3711 2020-06-08  Simon Marchi  <simon.marchi@efficios.com>
3713         * gdbtypes.h (struct type) <index_type, set_index_type>: New
3714         methods.
3715         (TYPE_INDEX_TYPE): Use type::index_type.
3716         * gdbtypes.c (create_array_type_with_stride): Likewise.
3718 2020-06-07  Tom Tromey  <tom@tromey.com>
3720         * valprint.c (generic_val_print_float): Remove "embedded_offset"
3721         parameter.
3722         (generic_value_print): Update.
3724 2020-06-05  Andrew Burgess  <andrew.burgess@embecosm.com>
3726         Revert commit 982a38f60b0.
3727         * python/py-tui.c (gdbpy_tui_set_title): Restore use of get.
3729 2020-06-05  Andrew Burgess  <andrew.burgess@embecosm.com>
3731         * python/py-tui.c (gdbpy_tui_set_title): Use release, not get, to
3732         avoid use after free.
3734 2020-06-05  Tom de Vries  <tdevries@suse.de>
3736         * NEWS: Fix typos.
3738 2020-06-04  Simon Marchi  <simon.marchi@efficios.com>
3740         * dwarf2/read.c (dwarf2_read_gdb_index): Save partial_symtabs in
3741         the per_bfd object.
3742         (dwarf2_read_debug_names): Likewise.
3743         (dwarf2_initialize_objfile): Use partial_symtabs from per_bfd
3744         object when re-using a per_bfd object with an index.
3746 2020-06-03  Tom de Vries  <tdevries@suse.de>
3748         PR symtab/26046
3749         * dwarf2/read.c (scan_partial_symbols): Recurse into DW_TAG_subprogram
3750         children for C++.
3751         (load_partial_dies): Don't skip DW_TAG_inlined_subroutine child of
3752         DW_TAG_subprogram.
3754 2020-06-02  Andrew Burgess  <andrew.burgess@embecosm.com>
3756         * ada-lang.c (ada_language_data): Delete skip_trampoline
3757         initializer.
3758         * c-lang.c (c_language_data): Likewise.
3759         (cplus_language_data): Likewise.
3760         (cplus_language::skip_trampoline): New member function.
3761         (asm_language_data): Delete skip_trampoline initializer.
3762         (minimal_language_data): Likewise.
3763         * d-lang.c (d_language_data): Likewise.
3764         * f-lang.c (f_language_data): Likewise.
3765         * go-lang.c (go_language_data): Likewise.
3766         * language.c (unk_lang_trampoline): Delete function.
3767         (skip_language_trampoline): Update.
3768         (unknown_language_data): Delete skip_trampoline initializer.
3769         (auto_language_data): Likewise.
3770         * language.h (language_data): Delete skip_trampoline field.
3771         (language_defn::skip_trampoline): New function.
3772         * m2-lang.c (m2_language_data): Delete skip_trampoline
3773         initializer.
3774         * objc-lang.c (objc_skip_trampoline): Delete function, move
3775         implementation to objc_language::skip_trampoline.
3776         (objc_language_data): Delete skip_trampoline initializer.
3777         (objc_language::skip_trampoline): New member function with
3778         implementation from objc_skip_trampoline.
3779         * opencl-lang.c (opencl_language_data): Delete skip_trampoline
3780         initializer.
3781         * p-lang.c (pascal_language_data): Likewise.
3782         * rust-lang.c (rust_language_data): Likewise.
3784 2020-06-02  Andrew Burgess  <andrew.burgess@embecosm.com>
3786         * ada-lang.c (ada_language_data): Delete la_demangle initializer.
3787         (ada_language::demangle): New member function.
3788         * c-lang.c (c_language_data): Delete la_demangle initializer.
3789         (cplus_language_data): Delete la_demangle initializer.
3790         (cplus_language::demangle): New member function.
3791         (asm_language_data): Delete la_demangle initializer.
3792         (minimal_language_data): Delete la_demangle initializer.
3793         * d-lang.c (d_language_data): Delete la_demangle initializer.
3794         (d_language::demangle): New member function.
3795         * f-lang.c (f_language_data): Delete la_demangle initializer.
3796         (f_language::demangle): New member function.
3797         * go-lang.c (go_language_data): Delete la_demangle initializer.
3798         (go_language::demangle): New member function.
3799         * language.c (language_demangle): Update.
3800         (unk_lang_demangle): Delete.
3801         (unknown_language_data): Delete la_demangle initializer.
3802         (unknown_language::demangle): New member function.
3803         (auto_language_data): Delete la_demangle initializer.
3804         (auto_language::demangle): New member function.
3805         * language.h (language_data): Delete la_demangle field.
3806         (language_defn::demangle): New function.
3807         * m2-lang.c (m2_language_data): Delete la_demangle initializer.
3808         * objc-lang.c (objc_language_data): Delete la_demangle
3809         initializer.
3810         (objc_language::demangle): New member function.
3811         * opencl-lang.c (opencl_language_data): Delete la_demangle
3812         initializer.
3813         * p-lang.c (pascal_language_data): Likewise.
3814         * rust-lang.c (rust_language_data): Likewise.
3815         (rust_language::demangle): New member function.
3817 2020-06-02  Andrew Burgess  <andrew.burgess@embecosm.com>
3819         * ada-lang.c (ada_language_data): Delete la_print_type
3820         initializer.
3821         (ada_language::print_type): New member function.
3822         * c-lang.c (c_language_data): Delete la_print_type initializer.
3823         (c_language::print_type): New member function.
3824         (cplus_language_data): Delete la_print_type initializer.
3825         (cplus_language::print_type): New member function.
3826         (asm_language_data): Delete la_print_type initializer.
3827         (asm_language::print_type): New member function.
3828         (minimal_language_data): Delete la_print_type initializer.
3829         (minimal_language::print_type): New member function.
3830         * d-lang.c (d_language_data): Delete la_print_type initializer.
3831         (d_language::print_type): New member function.
3832         * f-lang.c (f_language_data): Delete la_print_type initializer.
3833         (f_language::print_type): New member function.
3834         * go-lang.c (go_language_data): Delete la_print_type initializer.
3835         (go_language::print_type): New member function.
3836         * language.c (unk_lang_print_type): Delete.
3837         (unknown_language_data): Delete la_print_type initializer.
3838         (unknown_language::print_type): New member function.
3839         (auto_language_data): Delete la_print_type initializer.
3840         (auto_language::print_type): New member function.
3841         * language.h (language_data): Delete la_print_type field.
3842         (language_defn::print_type): New function.
3843         (LA_PRINT_TYPE): Update.
3844         * m2-lang.c (m2_language_data): Delete la_print_type initializer.
3845         (m2_language::print_type): New member function.
3846         * objc-lang.c (objc_language_data): Delete la_print_type
3847         initializer.
3848         (objc_language::print_type): New member function.
3849         * opencl-lang.c (opencl_print_type): Delete, implementation moved
3850         to opencl_language::print_type.
3851         (opencl_language_data): Delete la_print_type initializer.
3852         (opencl_language::print_type): New member function, implementation
3853         from opencl_print_type.
3854         * p-lang.c (pascal_language_data): Delete la_print_type
3855         initializer.
3856         (pascal_language::print_type): New member function.
3857         * rust-lang.c (rust_print_type): Delete, implementation moved to
3858         rust_language::print_type.
3859         (rust_language_data): Delete la_print_type initializer.
3860         (rust_language::print_type): New member function, implementation
3861         from rust_print_type.
3863 2020-06-02  Andrew Burgess  <andrew.burgess@embecosm.com>
3865         * ada-lang.c (ada_sniff_from_mangled_name): Delete function,
3866         implementation moves to...
3867         (ada_language::sniff_from_mangled_name): ...here.  Update return
3868         type.
3869         (ada_language_data): Delete la_sniff_from_mangled_name
3870         initializer.
3871         * c-lang.c (c_language_data): Likewise.
3872         (cplus_language_data): Likewise.
3873         (cplus_language::sniff_from_mangled_name): New member function,
3874         implementation taken from gdb_sniff_from_mangled_name.
3875         (asm_language_data): Delete la_sniff_from_mangled_name
3876         initializer.
3877         (minimal_language_data): Likewise.
3878         * cp-support.c (gdb_sniff_from_mangled_name): Delete,
3879         implementation moves to cplus_language::sniff_from_mangled_name.
3880         * cp-support.h (gdb_sniff_from_mangled_name): Delete declaration.
3881         * d-lang.c (d_sniff_from_mangled_name): Delete, implementation
3882         moves to...
3883         (d_language::sniff_from_mangled_name): ...here.
3884         (d_language_data): Delete la_sniff_from_mangled_name initializer.
3885         * f-lang.c (f_language_data): Likewise.
3886         * go-lang.c (go_sniff_from_mangled_name): Delete, implementation
3887         moves to...
3888         (go_language::sniff_from_mangled_name): ...here.
3889         (go_language_data): Delete la_sniff_from_mangled_name initializer.
3890         * language.c (language_sniff_from_mangled_name): Delete.
3891         (unknown_language_data): Delete la_sniff_from_mangled_name
3892         initializer.
3893         (auto_language_data): Likewise.
3894         * language.h (language_data): Delete la_sniff_from_mangled_name
3895         field.
3896         (language_defn::sniff_from_mangled_name): New function.
3897         (language_sniff_from_mangled_name): Delete declaration.
3898         * m2-lang.c (m2_language_data): Delete la_sniff_from_mangled_name
3899         field.
3900         * objc-lang.c (objc_sniff_from_mangled_name): Delete,
3901         implementation moves to...
3902         (objc_language::sniff_from_mangled_name): ...here.
3903         (objc_language_data): Delete la_sniff_from_mangled_name initializer.
3904         * opencl-lang.c (opencl_language_data): Likewise.
3905         * p-lang.c (pascal_language_data): Likewise.
3906         * rust-lang.c (rust_sniff_from_mangled_name): Delete,
3907         implementation moves to...
3908         (rust_language::sniff_from_mangled_name): ...here.
3909         (rust_language_data): Delete la_sniff_from_mangled_name
3910         initializer.
3911         * symtab.c (symbol_find_demangled_name): Call
3912         sniff_from_mangled_name member function.
3914 2020-06-02  Andrew Burgess  <andrew.burgess@embecosm.com>
3916         * ada-lang.c (ada_language_data): Delete la_search_name_hash
3917         initializer.
3918         * c-lang.c (c_language_data): Likewise.
3919         (cplus_language_data): Likewise.
3920         (cplus_language::search_name_hash): New member function.
3921         (asm_language_data): Delete la_search_name_hash initializer.
3922         (minimal_language_data): Likewise.
3923         * d-lang.c (d_language_data): Likewise.
3924         * dictionary.c (default_search_name_hash): Rename to...
3925         (language_defn::search_name_hash): ...this.
3926         * f-lang.c (f_language_data): Likewise.
3927         (f_language::search_name_hash): New member function.
3928         * go-lang.c (go_language_data): Delete la_search_name_hash
3929         initializer.
3930         * language.c (unknown_language_data): Likewise.
3931         (auto_language_data): Likewise.
3932         * language.h (struct language_data): Delete la_search_name_hash
3933         field.
3934         (language_defn::search_name_hash): Declare new member function.
3935         (default_search_name_hash): Delete declaration.
3936         * m2-lang.c (m2_language_data): Delete la_search_name_hash
3937         initializer.
3938         * objc-lang.c (objc_language_data): Likewise.
3939         * opencl-lang.c (opencl_language_data): Likewise.
3940         * p-lang.c (pascal_language_data): Likewise.
3941         * rust-lang.c (rust_language_data): Likewise.
3942         * symtab.c (search_name_hash): Update call.
3944 2020-06-02  Andrew Burgess  <andrew.burgess@embecosm.com>
3946         * ada-lang.c (ada_language_data): Delete la_get_compile_instance
3947         initializer.
3948         * c-lang.c (class compile_instance): Declare.
3949         (c_language_data): Delete la_get_compile_instance initializer.
3950         (c_language::get_compile_instance): New member function.
3951         (cplus_language_data): Delete la_get_compile_instance initializer.
3952         (cplus_language::get_compile_instance): New member function.
3953         (asm_language_data): Delete la_get_compile_instance initializer.
3954         (minimal_language_data): Likewise.
3955         * c-lang.h (c_get_compile_context): Update comment.
3956         (cplus_get_compile_context): Update comment.
3957         * compile/compile.c (compile_to_object): Update calls, don't rely
3958         on function pointer being NULL.
3959         * d-lang.c (d_language_data): Delete la_get_compile_instance
3960         initializer.
3961         * f-lang.c (f_language_data): Likewise.
3962         * go-lang.c (go_language_data): Likewise.
3963         * language.c (unknown_language_data): Likewise.
3964         (auto_language_data): Likewise.
3965         * language.h (language_data): Delete la_get_compile_instance field.
3966         (language_defn::get_compile_instance): New member function.
3967         * m2-lang.c (m2_language_data): Delete la_get_compile_instance
3968         initializer.
3969         * objc-lang.c (objc_language_data): Likewise.
3970         * opencl-lang.c (opencl_language_data): Likewise.
3971         * p-lang.c (pascal_language_data): Likewise.
3972         * rust-lang.c (rust_language_data): Likewise.
3974 2020-06-02  Andrew Burgess  <andrew.burgess@embecosm.com>
3976         * ada-lang.c (ada_add_all_symbols): Update comment.
3977         (ada_iterate_over_symbols): Delete, move implementation to...
3978         (ada_language::iterate_over_symbols): ...here, a new member
3979         function, rewrite to use range based for loop.
3980         (ada_language_data): Delete la_iterate_over_symbols initializer.
3981         * c-lang.c (c_language_data): Likewise.
3982         (cplus_language_data): Likewise.
3983         (asm_language_data): Likewise.
3984         (minimal_language_data): Likewise.
3985         * d-lang.c (d_language_data): Likewise.
3986         * f-lang.c (f_language_data): Likewise.
3987         * go-lang.c (go_language_data): Likewise.
3988         * language.c (unknown_language_data): Likewise.
3989         (auto_language_data): Likewise.
3990         * language.h (language_data): Delete la_iterate_over_symbols field.
3991         (language_defn::iterate_over_symbols): New member function.
3992         (LA_ITERATE_OVER_SYMBOLS): Update.
3993         * linespec.c (iterate_over_all_matching_symtabs): Update.
3994         * m2-lang.c (m2_language_data): Delete la_iterate_over_symbols
3995         initializer.
3996         * objc-lang.c (objc_language_data): Likewise.
3997         * opencl-lang.c (opencl_language_data): Likewise.
3998         * p-lang.c (pascal_language_data): Likewise.
3999         * rust-lang.c (rust_language_data): Likewise.
4001 2020-06-02  Andrew Burgess  <andrew.burgess@embecosm.com>
4003         * ada-lang.c (ada_language_data): Delete
4004         la_lookup_transparent_type initializer.
4005         * c-lang.c (c_language_data): Likewise.
4006         (cplus_language_data): Likewise.
4007         (cplus_language::lookup_transparent_type): New member function.
4008         (asm_language_data): Delete la_lookup_transparent_type
4009         initializer.
4010         (minimal_language_data): Likewise.
4011         * d-lang.c (d_language_data): Likewise.
4012         * f-lang.c (f_language_data): Likewise.
4013         * go-lang.c (go_language_data): Likewise.
4014         * language.c (unknown_language_data): Likewise.
4015         (auto_language_data): Likewise.
4016         * language.h (struct language_data): Delete
4017         la_lookup_transparent_type field.
4018         (language_defn::lookup_transparent_type): New member function.
4019         * m2-lang.c (m2_language_data): Delete la_lookup_transparent_type
4020         initializer.
4021         * objc-lang.c (objc_language_data): Likewise.
4022         * opencl-lang.c (opencl_language_data): Likewise.
4023         * p-lang.c (pascal_language_data): Likewise.
4024         * rust-lang.c (rust_language_data): Likewise.
4025         * symtab.c (symbol_matches_domain): Update call.
4027 2020-06-02  Andrew Burgess  <andrew.burgess@embecosm.com>
4029         * ada-lang.c (ada_language_arch_info): Delete function, move
4030         implementation to...
4031         (ada_language::language_arch_info): ...here, a new member
4032         function.
4033         (ada_language_data): Delete la_language_arch_info.
4034         * c-lang.c (c_language_data): Likewise.
4035         (c_language::language_arch_info): New member function.
4036         (cplus_language_arch_info): Delete function, move
4037         implementation to...
4038         (cplus_language::language_arch_info): ...here, a new member
4039         function.
4040         (cplus_language_data): Delete la_language_arch_info.
4041         (asm_language_data): Likewise.
4042         (asm_language::language_arch_info): New member function.
4043         (minimal_language_data): Delete la_language_arch_info.
4044         (minimal_language::language_arch_info): New member function.
4045         * d-lang.c (d_language_arch_info): Delete function, move
4046         implementation to...
4047         (d_language::language_arch_info): ...here, a new member
4048         function.
4049         (d_language_data): Delete la_language_arch_info.
4050         * f-lang.c (f_language_arch_info): Delete function, move
4051         implementation to...
4052         (f_language::language_arch_info): ...here, a new member
4053         function.
4054         (f_language_data): Delete la_language_arch_info.
4055         * go-lang.c (go_language_arch_info): Delete function, move
4056         implementation to...
4057         (go_language::language_arch_info): ...here, a new member
4058         function.
4059         (go_language_data): Delete la_language_arch_info.
4060         * language.c (unknown_language_data): Likewise.
4061         (unknown_language::language_arch_info): New member function.
4062         (auto_language_data): Delete la_language_arch_info.
4063         (auto_language::language_arch_info): New member function.
4064         (language_gdbarch_post_init): Update call to
4065         la_language_arch_info.
4066         * language.h (language_data): Delete la_language_arch_info
4067         function pointer.
4068         (language_defn::language_arch_info): New function.
4069         * m2-lang.c (m2_language_arch_info): Delete function, move
4070         implementation to...
4071         (m2_language::language_arch_info): ...here, a new member
4072         function.
4073         (m2_language_data): Delete la_language_arch_info.
4074         * objc-lang.c (objc_language_arch_info): Delete function, move
4075         implementation to...
4076         (objc_language::language_arch_info): ...here, a new member
4077         function.
4078         (objc_language_data): Delete la_language_arch_info.
4079         * opencl-lang.c (opencl_language_arch_info): Delete function, move
4080         implementation to...
4081         (opencl_language::language_arch_info): ...here, a new member
4082         function.
4083         (opencl_language_data): Delete la_language_arch_info.
4084         * p-lang.c (pascal_language_arch_info): Delete function, move
4085         implementation to...
4086         (pascal_language::language_arch_info): ...here, a new member
4087         function.
4088         (pascal_language_data): Delete la_language_arch_info.
4089         * rust-lang.c (rust_language_arch_info): Delete function, move
4090         implementation to...
4091         (rust_language::language_arch_info): ...here, a new member
4092         function.
4093         (rust_language_data): Delete la_language_arch_info.
4095 2020-06-02  Andrew Burgess  <andrew.burgess@embecosm.com>
4097         * ada-lang.c (ada_language_data): Delete la_pass_by_reference
4098         initializer.
4099         * c-lang.c (c_language_data): Likewise.
4100         (cplus_language_data): Likewise.
4101         (cplus_language::pass_by_reference_info): New method.
4102         (asm_language_data): Delete la_pass_by_reference initializer.
4103         (minimal_language_data): Likewise.
4104         * cp-abi.c (cp_pass_by_reference): Remove use of
4105         default_pass_by_reference.
4106         * d-lang.c (d_language_data): Likewise.
4107         * f-lang.c (f_language_data): Likewise.
4108         * gnu-v3-abi.c (gnuv3_pass_by_reference): Remove use of
4109         default_pass_by_reference.
4110         * go-lang.c (go_language_data): Likewise.
4111         * language.c (language_pass_by_reference): Update.
4112         (default_pass_by_reference): Delete.
4113         (unknown_language_data): Delete la_pass_by_reference
4114         initializer.
4115         (auto_language_data): Likewise.
4116         * language.h (struct language_data): Delete la_pass_by_reference
4117         field.
4118         (language_defn::pass_by_reference_info): New member function.
4119         (default_pass_by_reference): Delete declaration.
4120         * m2-lang.c (m2_language_data): Delete la_pass_by_reference
4121         initializer.
4122         * objc-lang.c (objc_language_data): Likewise.
4123         * opencl-lang.c (opencl_language_data): Likewise.
4124         * p-lang.c (pascal_language_data): Likewise.
4125         * rust-lang.c (rust_language_data): Likewise.
4127 2020-06-02  Andrew Burgess  <andrew.burgess@embecosm.com>
4129         * ada-lang.c (ada_read_var_value): Delete function, move
4130         implementation to...
4131         (ada_language::read_var_value): ...here.
4132         (ada_language_data): Delete la_read_var_value initializer.
4133         * c-lang.c (c_language_data): Likewise.
4134         (cplus_language_data): Likewise.
4135         (minimal_language_data): Likewise.
4136         * d-lang.c (d_language_data): Likewise.
4137         * f-lang.c (f_language_data): Likewise.
4138         * findvar.c (default_read_var_value): Rename to...
4139         (language_defn::read_var_value): ...this.
4140         * findvar.c (read_var_value): Update header comment, and change to
4141         call member function instead of function pointer.
4142         * go-lang.c (go_language_data): Likewise.
4143         * language.c (unknown_language_data): Delete la_read_var_value
4144         initializer.
4145         (auto_language_data): Likewise.
4146         * language.h (struct language_data): Delete la_read_var_value
4147         field.
4148         (language_defn::read_var_value): New member function.
4149         (default_read_var_value): Delete declaration.
4150         * m2-lang.c (m2_language_data): Delete la_read_var_value
4151         initializer.
4152         * objc-lang.c (objc_language_data): Likewise.
4153         * opencl-lang.c (opencl_language_data): Likewise.
4154         * p-lang.c (pascal_language_data): Likewise.
4155         * rust-lang.c (rust_language_data): Likewise.
4156         * value.h (default_read_var_value): Delete declaration.
4158 2020-06-02  Andrew Burgess  <andrew.burgess@embecosm.com>
4160         * ada-lang.c (ada_print_array_index): Delete function, move
4161         implementation to...
4162         (ada_language::print_array_index): ...here.
4163         (ada_language_data): Delete la_print_array_index initializer.
4164         * c-lang.c (c_language_data): Likewise.
4165         (cplus_language_data): Likewise.
4166         (minimal_language_data): Likewise.
4167         * d-lang.c (d_language_data): Likewise.
4168         * f-lang.c (f_language_data): Likewise.
4169         * go-lang.c (go_language_data): Likewise.
4170         * language.c (default_print_array_index): Delete function, move
4171         implementation to...
4172         (language_defn::print_array_index): ...here.
4173         (unknown_language_data): Delete la_print_array_index initializer.
4174         (auto_language_data): Likewise.
4175         * language.h (struct language_data): Delete la_print_array_index
4176         field.
4177         (language_defn::print_array_index): New member function.
4178         (LA_PRINT_ARRAY_INDEX): Update.
4179         (default_print_array_index): Delete declaration.
4180         * m2-lang.c (m2_language_data): Delete la_print_array_index
4181         initializer.
4182         * objc-lang.c (objc_language_data): Likewise.
4183         * opencl-lang.c (opencl_language_data): Likewise.
4184         * p-lang.c (pascal_language_data): Likewise.
4185         * rust-lang.c (rust_language_data): Likewise.
4187 2020-06-02  Andrew Burgess  <andrew.burgess@embecosm.com>
4189         * gdb/ada-lang.c (ada_language_defn): Convert to...
4190         (ada_language_data): ...this.
4191         (class ada_language): New class.
4192         (ada_language_defn): New static global.
4193         * gdb/c-lang.c (c_language_defn): Convert to...
4194         (c_language_data): ...this.
4195         (class c_language): New class.
4196         (c_language_defn): New static global.
4197         (cplus_language_defn): Convert to...
4198         (cplus_language_data): ...this.
4199         (class cplus_language): New class.
4200         (cplus_language_defn): New static global.
4201         (asm_language_defn): Convert to...
4202         (asm_language_data): ...this.
4203         (class asm_language): New class.
4204         (asm_language_defn): New static global.
4205         (minimal_language_defn): Convert to...
4206         (minimal_language_data): ...this.
4207         (class minimal_language): New class.
4208         (minimal_language_defn): New static global.
4209         * gdb/d-lang.c (d_language_defn): Convert to...
4210         (d_language_data): ...this.
4211         (class d_language): New class.
4212         (d_language_defn): New static global.
4213         * gdb/f-lang.c (f_language_defn): Convert to...
4214         (f_language_data): ...this.
4215         (class f_language): New class.
4216         (f_language_defn): New static global.
4217         * gdb/go-lang.c (go_language_defn): Convert to...
4218         (go_language_data): ...this.
4219         (class go_language): New class.
4220         (go_language_defn): New static global.
4221         * gdb/language.c (unknown_language_defn): Remove declaration.
4222         (current_language): Initialize to nullptr, real initialization is
4223         moved to _initialize_language.
4224         (languages): Delete global.
4225         (language_defn::languages): Define.
4226         (set_language_command): Use language_defn::languages.
4227         (set_language): Likewise.
4228         (range_error): Likewise.
4229         (language_enum): Likewise.
4230         (language_def): Likewise.
4231         (add_set_language_command): Use language_def::languages for the
4232         language list, and language_def to lookup language pointers.
4233         (skip_language_trampoline): Use language_defn::languages.
4234         (unknown_language_defn): Convert to...
4235         (unknown_language_data): ...this.
4236         (class unknown_language): New class.
4237         (unknown_language_defn): New static global.
4238         (auto_language_defn): Convert to...
4239         (auto_language_data): ...this.
4240         (class auto_language): New class.
4241         (auto_language_defn): New static global.
4242         (language_gdbarch_post_init): Use language_defn::languages.
4243         (_initialize_language): Initialize current_language.
4244         * gdb/language.h (struct language_defn): Rename to...
4245         (struct language_data): ...this.
4246         (struct language_defn): New.
4247         (auto_language_defn): Delete.
4248         (unknown_language_defn): Delete.
4249         (minimal_language_defn): Delete.
4250         (ada_language_defn): Delete.
4251         (asm_language_defn): Delete.
4252         (c_language_defn): Delete.
4253         (cplus_language_defn): Delete.
4254         (d_language_defn): Delete.
4255         (f_language_defn): Delete.
4256         (go_language_defn): Delete.
4257         (m2_language_defn): Delete.
4258         (objc_language_defn): Delete.
4259         (opencl_language_defn): Delete.
4260         (pascal_language_defn): Delete.
4261         (rust_language_defn): Delete.
4262         * gdb/m2-lang.c (m2_language_defn): Convert to...
4263         (m2_language_data): ...this.
4264         (class m2_language): New class.
4265         (m2_language_defn): New static global.
4266         * gdb/objc-lang.c (objc_language_defn): Convert to...
4267         (objc_language_data): ...this.
4268         (class objc_language): New class.
4269         (objc_language_defn): New static global.
4270         * gdb/opencl-lang.c (opencl_language_defn): Convert to...
4271         (opencl_language_data): ...this.
4272         (class opencl_language): New class.
4273         (opencl_language_defn): New static global.
4274         * gdb/p-lang.c (pascal_language_defn): Convert to...
4275         (pascal_language_data): ...this.
4276         (class pascal_language): New class.
4277         (pascal_language_defn): New static global.
4278         * gdb/rust-exp.y (rust_lex_tests): Use language_def to find
4279         language pointer, update comment format.
4280         * gdb/rust-lang.c (rust_language_defn): Convert to...
4281         (rust_language_data): ...this.
4282         (class rust_language): New class.
4283         (rust_language_defn): New static global.
4285 2020-06-01  Andrew Burgess  <andrew.burgess@embecosm.com>
4287         * dwarf2/read.c (class lnp_state_machine) <m_last_address>: New
4288         member variable.
4289         <m_stmt_at_address>: New member variable.
4290         (lnp_state_machine::record_line): Don't record some lines, update
4291         tracking of is_stmt at the same address.
4292         (lnp_state_machine::lnp_state_machine): Initialise new member
4293         variables.
4295 2020-06-01  Samuel Thibault  <samuel.thibault@ens-lyon.org>
4297         * config/i386/i386gnu.mn [%_S.o %_U.o] (COMPILE.post): Add
4298         "-include gnu-nat-mig.h".
4299         * gnu-nat-mig.h: New file.
4300         * gnu-nat.c: Include "gnu-nat-mig.h".
4301         (exc_server, msg_reply_server, notify_server,
4302         process_reply_server): Remove declarations.
4304 2020-05-30  Samuel Thibault  <samuel.thibault@ens-lyon.org>
4306         * gnu-nat.h (inf_validate_procs, inf_suspend, inf_set_traced,
4307         steal_exc_port, proc_get_state, inf_clear_wait, inf_cleanup,
4308         inf_startup, inf_update_suspends, inf_set_pid, inf_steal_exc_ports,
4309         inf_validate_procinfo, inf_validate_task_sc, inf_restore_exc_ports,
4310         inf_set_threads_resume_sc, inf_set_threads_resume_sc_for_signal_thread,
4311         inf_resume, inf_set_step_thread, inf_detach, inf_attach, inf_signal,
4312         inf_continue, make_proc, proc_abort, _proc_free, proc_update_sc,
4313         proc_get_exception_port, proc_set_exception_port, _proc_get_exc_port,
4314         proc_steal_exc_port, proc_restore_exc_port, proc_trace): Move functions
4315         to gnu_nat_target class.
4316         * gnu-nat.c: Likewise.
4317         (inf_update_procs, S_proc_wait_reply, set_task_pause_cmd,
4318         set_task_exc_port_cmd, set_signals_cmd, set_thread_pause_cmd,
4319         set_thread_exc_port_cmd): Call inf_validate_procs through gnu_target
4320         object.
4321         (gnu_nat_target::create_inferior, gnu_nat_target::detach): Pass `this'
4322         instead of `gnu_target'.
4324 2020-05-30  Samuel Thibault  <samuel.thibault@ens-lyon.org>
4326         * i386-gnu-tdep.c: Include "gdbcore.h"
4327         (gnu_sigtramp_code, i386_gnu_sc_reg_offset): New arrays.
4328         (GNU_SIGTRAMP_LEN, GNU_SIGTRAMP_TAIL,
4329         I386_GNU_SIGCONTEXT_THREAD_STATE_OFFSET): New macros
4330         (i386_gnu_sigtramp_start, i386_gnu_sigtramp_p,
4331         i386_gnu_sigcontext_addr): New functions
4332         (i386gnu_init_abi): Register i386_gnu_sigtramp_p,
4333         i386_gnu_sigcontext_addr, and i386_gnu_sc_reg_offset in the gdbarch
4334         tdep.
4336 2020-05-30  Samuel Thibault  <samuel.thibault@ens-lyon.org>
4338         * gnu-nat.c (gnu_nat_target::create_inferior): Move push_target call
4339         before fork_inferior call. Avoid calling it if target_is_pushed returns
4340         true.
4342 2020-05-30  Samuel Thibault  <samuel.thibault@ens-lyon.org>
4344         * gnu-nat.h (gnu_target): New variable declaration.
4345         * i386-gnu-nat.c (_initialize_i386gnu_nat): Initialize
4346         gnu_target.
4347         * gnu-nat.c (gnu_target): New variable.
4348         (inf_validate_procs): Pass gnu_target to thread_change_ptid,
4349         add_thread_silent, and add_thread calls.
4350         (gnu_nat_target::create_inferior): Pass gnu_target to
4351         add_thread_silent, thread_change_ptid call.
4352         (gnu_nat_target::detach): Pass gnu_target to detach_inferior
4353         call.
4355 2020-05-30  Samuel Thibault  <samuel.thibault@ens-lyon.org>
4357         * gnu-nat.c (gnu_xfer_auxv): Remove unused `res' variable.
4358         (gnu_nat_target::find_memory_regions): Remove unused
4359         `old_address' variable.
4361 2020-05-30  Samuel Thibault  <samuel.thibault@ens-lyon.org>
4363         * gnu-nat.c: Include "gdbarch.h".
4365 2020-05-30  Samuel Thibault  <samuel.thibault@ens-lyon.org>
4367         * reply_mig_hack.awk (Error return): Cast function through
4368         void *, to bypass compiler function call check.
4370 2020-05-30  Samuel Thibault  <samuel.thibault@ens-lyon.org>
4372         * config/i386/i386gnu.mn (%_reply_S.c): Add dependency on
4373         $(srcdir)/reply_mig_hack.awk.
4375 2020-05-30  Samuel Thibault  <samuel.thibault@ens-lyon.org>
4377         * gnu-nat.h (gnu_debug_flag): Set type to bool.
4379 2020-05-30  Jonny Grant  <jg@jguk.org>
4381         * configure.ac (ACX_BUGURL): change bug URL to https.
4383 2020-05-30  Pedro Alves  <palves@redhat.com>
4385         * cp-support.c (replace_typedefs_template): New.
4386         (replace_typedefs_qualified_name): Handle
4387         DEMANGLE_COMPONENT_TEMPLATE.
4389 2020-05-29  Simon Marchi  <simon.marchi@efficios.com>
4391         * dwarf2/comp-unit.c, dwarf2/comp-unit.h, dwarf2/index-cache.c,
4392         dwarf2/index-cache.h, dwarf2/index-write.c,
4393         dwarf2/index-write.h, dwarf2/line-header.c,
4394         dwarf2/line-header.h, dwarf2/macro.c, dwarf2/macro.h,
4395         dwarf2/read.c, dwarf2/read.h: Rename struct dwarf2_per_objfile
4396         variables and fields from `dwarf2_per_objfile` to just
4397         `per_objfile` throughout.
4399 2020-05-28  Simon Marchi  <simon.marchi@polymtl.ca>
4401         * dwarf2/loc.c (class dwarf_evaluate_loc_desc)
4402         <push_dwarf_reg_entry_value>: Add comment.
4404 2020-05-28  Kevin Buettner  <kevinb@redhat.com>
4405             Keith Seitz  <keiths@redhat.com>
4407         * python/python.c (do_start_initialization): Call PyEval_SaveThread
4408         instead of PyEval_ReleaseLock.
4409         (class gdbpy_gil): Move to earlier in file.
4410         (finalize_python): Set gdb_python_initialized.
4411         (gdbpy_check_quit_flag): Acquire GIL via gdbpy_gil.  Return early
4412         when not initialized.
4414 2020-05-28  Simon Marchi  <simon.marchi@efficios.com>
4416         * dwarf2/loc.c (class dwarf_evaluate_loc_desc)
4417         <push_dwarf_reg_entry_value>: Remove assert.  Override
4418         per_objfile with caller_per_objfile.
4420 2020-05-28  Tom de Vries  <tdevries@suse.de>
4422         * dwarf2/read.c (dw2_symtab_iter_next, dw2_expand_marked_cus): Limit
4423         PR gold/15646 workaround to symbol kind "type".
4425 2020-05-27  Tom Tromey  <tromey@adacore.com>
4427         * dwarf2/read.c (load_partial_dies): Use add_partial_symbol.
4429 2020-05-27  Tom Tromey  <tromey@adacore.com>
4431         * dwarf2/abbrev.h (struct abbrev_table) <lookup_abbrev>: Inline.
4432         Use htab_find_with_hash.
4433         <add_abbrev>: Remove "abbrev_number" parameter.
4434         * dwarf2/abbrev.c (abbrev_table::add_abbrev): Remove
4435         "abbrev_number" parameter.  Use htab_find_slot_with_hash.
4436         (hash_abbrev): Add comment.
4437         (abbrev_table::lookup_abbrev): Move to header file.
4438         (abbrev_table::read): Update.
4440 2020-05-27  Tom Tromey  <tromey@adacore.com>
4442         * dwarf2/read.c (struct partial_die_info) <name>: Declare new
4443         method.
4444         <canonical_name>: New member.
4445         <raw_name>: Rename from "name".
4446         (partial_die_info): Initialize canonical_name.
4447         (scan_partial_symbols): Check raw_name.
4448         (partial_die_parent_scope, partial_die_full_name)
4449         (add_partial_symbol, add_partial_subprogram)
4450         (add_partial_enumeration, load_partial_dies): Use "name" method.
4451         (partial_die_info::name): New method.
4452         (partial_die_info::read, guess_partial_die_structure_name)
4453         (partial_die_info::fixup): Update.
4455 2020-05-27  Tom Tromey  <tromey@adacore.com>
4457         * dwarf2/attribute.h (struct attribute) <form_is_ref>: Inline.
4458         <get_ref_die_offset>: Inline.
4459         <get_ref_die_offset_complaint>: New method.
4460         * dwarf2/attribute.c (attribute::form_is_ref): Move to header.
4461         (attribute::get_ref_die_offset_complaint): Rename from
4462         get_ref_die_offset.  Just issue complaint.
4464 2020-05-27  Hannes Domani  <ssbssa@yahoo.de>
4466         * cli/cli-cmds.c (shell_escape): Move exit_status_set_internal_vars.
4468 2020-05-27  Hannes Domani  <ssbssa@yahoo.de>
4470         * exec.c (exec_file_attach): Use errno value of first openp failure.
4472 2020-05-27  Hannes Domani  <ssbssa@yahoo.de>
4474         * nat/windows-nat.c (windows_thread_info::~windows_thread_info):
4475         Don't close thread handle.
4477 2020-05-27  Tom Tromey  <tom@tromey.com>
4478             Simon Marchi  <simon.marchi@efficios.com>
4480         * objfiles.h (struct objfile) <partial_symtabs>: Now a
4481         shared_ptr.
4482         * dwarf2/read.h (struct dwarf2_per_objfile) <partial_symtabs>: New
4483         member.
4484         * dwarf2/read.c (dwarf2_per_bfd_bfd_data_key,
4485         dwarf2_per_bfd_objfile_data_key>: New globals.
4486         (dwarf2_has_info): Use shared dwarf2_per_bfd if possible.
4487         (dwarf2_get_section_info): Use get_dwarf2_per_objfile.
4488         (dwarf2_initialize_objfile): Consider cases where per_bfd can be
4489         shared.
4490         (dwarf2_build_psymtabs): Set objfile::partial_symtabs and
4491         short-circuit when sharing.
4492         (dwarf2_build_psymtabs): Set dwarf2_per_objfile::partial_symtabs.
4493         (dwarf2_psymtab::expand_psymtab): Use free_cached_comp_units.
4495 2020-05-27  Simon Marchi  <simon.marchi@efficios.com>
4497         * dwarf2/read.h (struct dwarf2_per_bfd) <line_header_hash>: Move
4498         to...
4499         (struct dwarf2_per_objfile) <line_header_hash>: ... here.
4500         * dwarf2/read.c (handle_DW_AT_stmt_list): Update.
4502 2020-05-27  Simon Marchi  <simon.marchi@efficios.com>
4504         * dwarf2/read.c (struct mapped_index_base) <symbol_name_at,
4505         build_name_components, find_name_components_bounds>:
4506         Add per_objfile parameter.
4507         (struct mapped_index) <symbol_name_at>: Likewise.
4508         (struct mapped_debug_names): Remove constructor.
4509         <dwarf2_per_objfile>: Remove field.
4510         <namei_to_name, symbol_name_at>: Add per_objfile parameter.
4511         (mapped_index_base::find_name_components_bounds,
4512         mapped_index_base::build_name_components,
4513         dw2_expand_symtabs_matching_symbol): Likewise.
4514         (class mock_mapped_index) <symbol_name_at>: Likewise.
4515         (check_match): Likewise.
4516         (check_find_bounds_finds): Likewise.
4517         (test_mapped_index_find_name_component_bounds): Update.
4518         (CHECK_MATCH): Update.
4519         (dw2_expand_symtabs_matching): Update.
4520         (class dw2_debug_names_iterator) <dw2_debug_names_iterator>: Add
4521         per_objfile parameter.
4522         <find_vec_in_debug_names>: Likewise.
4523         <m_per_objfile>: New field.
4524         (mapped_debug_names::namei_to_name): Add dwarf2_per_objfile
4525         parameter.
4526         (dw2_debug_names_iterator::find_vec_in_debug_names): Likewise.
4527         (dw2_debug_names_iterator::next): Update.
4528         (dw2_debug_names_lookup_symbol): Update.
4529         (dw2_debug_names_expand_symtabs_for_function): Update.
4530         (dw2_debug_names_map_matching_symbols): Update.
4531         (dw2_debug_names_expand_symtabs_matching): Update.
4532         (dwarf2_read_debug_names): Update.
4534 2020-05-27  Simon Marchi  <simon.marchi@efficios.com>
4536         * dwarf2/read.h (struct dwarf2_cu): Forward-declare.
4537         (struct dwarf2_per_bfd) <free_cached_comp_units>: Remove,
4538         move to dwarf2_per_objfile.
4539         <read_in_chain>: Remove.
4540         (struct dwarf2_per_objfile) <get_cu, set_cu, remove_cu,
4541         remove_all_cus, age_comp_units>: New methods.
4542         <m_dwarf2_cus>: New member.
4543         (struct dwarf2_per_cu_data) <cu>: Remove.
4544         * dwarf2/read.c (struct dwarf2_cu) <read_in_chain>: Remove.
4545         (age_cached_comp_units, free_one_cached_comp_unit): Remove,
4546         moved to methods of dwarf2_per_objfile.
4547         (dwarf2_clear_marks): Remove.
4548         (dwarf2_queue_item::~dwarf2_queue_item): Update.
4549         (dwarf2_per_bfd::~dwarf2_per_bfd): Don't free dwarf2_cus.
4550         (dwarf2_per_bfd::free_cached_comp_units): Remove.
4551         (dwarf2_per_objfile::remove_all_cus): New.
4552         (class free_cached_comp_units) <~free_cached_comp_units>:
4553         Update.
4554         (load_cu): Update.
4555         (dw2_do_instantiate_symtab): Adjust.
4556         (fill_in_sig_entry_from_dwo_entry): Adjust.
4557         (cutu_reader::init_tu_and_read_dwo_dies): Update.
4558         (cutu_reader::cutu_reader): Likewise.
4559         (cutu_reader::keep): Use dwarf2_per_objfile::set_cu.
4560         (cutu_reader::cutu_reader): Use dwarf2_per_objfile::get_cu.
4561         (process_psymtab_comp_unit): Use dwarf2_per_objfile::remove_cu
4562         and dwarf2_per_objfile::age_comp_units.
4563         (load_partial_comp_unit): Update.
4564         (maybe_queue_comp_unit): Use dwarf2_per_objfile::get_cu.
4565         (process_queue): Likewise.
4566         (find_partial_die): Use dwarf2_per_objfile::get_cu instead of cu
4567         backlink.
4568         (dwarf2_read_addr_index): Likewise.
4569         (follow_die_offset): Likewise.
4570         (dwarf2_fetch_die_loc_sect_off): Likewise.
4571         (dwarf2_fetch_constant_bytes): Likewise.
4572         (dwarf2_fetch_die_type_sect_off): Likewise.
4573         (follow_die_sig_1): Likewise.
4574         (load_full_type_unit): Likewise.
4575         (read_signatured_type): Likewise.
4576         (dwarf2_cu::dwarf2_cu): Don't set cu field.
4577         (dwarf2_cu::~dwarf2_cu): Remove.
4578         (dwarf2_per_objfile::get_cu): New.
4579         (dwarf2_per_objfile::set_cu): New.
4580         (age_cached_comp_units): Rename to...
4581         (dwarf2_per_objfile::age_comp_units): ... this.  Adjust
4582         to std::unordered_map.
4583         (free_one_cached_comp_unit): Rename to...
4584         (dwarf2_per_objfile::remove_cu): ... this.  Adjust
4585         to std::unordered_map.
4586         (dwarf2_per_objfile::~dwarf2_per_objfile): New.
4587         (dwarf2_mark_helper): Use dwarf2_per_objfile::get_cu, expect
4588         a dwarf2_per_objfile in data.
4589         (dwarf2_mark): Pass dwarf2_per_objfile in data to htab_traverse.
4590         (dwarf2_clear_marks): Remove.
4592 2020-05-27  Simon Marchi  <simon.marchi@efficios.com>
4594         * dwarf2/read.c (class cutu_reader) <cutu_reader>: Replace
4595         `int use_existing_cu` parameter with `dwarf2_cu *existing_cu`.
4596         (init_tu_and_read_dwo_dies): Likewise.
4597         (cutu_reader::init_tu_and_read_dwo_dies): Likewise.
4598         (cutu_reader::cutu_reader): Likewise.
4599         (load_partial_comp_unit): Likewise.
4600         (process_psymtab_comp_unit): Update.
4601         (build_type_psymtabs_1): Update.
4602         (process_skeletonless_type_unit): Update.
4603         (load_full_comp_unit): Update.
4604         (find_partial_die): Update.
4605         (dwarf2_read_addr_index): Update.
4606         (read_signatured_type): Update.
4608 2020-05-27  Simon Marchi  <simon.marchi@polymtl.ca>
4610         * dwarf2/read.h (struct dwarf2_per_cu_data) <m_header,
4611         m_header_read_in>: New fields.
4612         <get_header>: New method.
4613         * dwarf2/read.c (per_cu_header_read_in): Remove.
4614         (dwarf2_per_cu_data::get_header): New.
4615         (dwarf2_per_cu_data::addr_size): Update.
4616         (dwarf2_per_cu_data::offset_size): Update.
4617         (dwarf2_per_cu_data::ref_addr_size): Update.
4619 2020-05-27  Simon Marchi  <simon.marchi@polymtl.ca>
4621         * dwarf2/read.c (load_cu): Return dwarf2_cu.
4622         (dw2_do_instantiate_symtab): Update.
4623         (queue_and_load_all_dwo_tus): Change parameter from
4624         dwarf2_per_cu_data to dwarf2_cu.
4625         (dwarf2_fetch_die_loc_sect_off): Update.
4626         (dwarf2_fetch_constant_bytes): Update.
4627         (dwarf2_fetch_die_type_sect_off): Update.
4629 2020-05-27  Simon Marchi  <simon.marchi@polymtl.ca>
4631         * dwarf2/read.c (process_full_comp_unit,
4632         process_full_type_unit): Remove per_cu, per_objfile paramters.
4633         Add dwarf2_cu parameter.
4634         (process_queue): Update.
4636 2020-05-27  Simon Marchi  <simon.marchi@polymtl.ca>
4638         * dwarf2/read.c (create_cu_from_index_list): Replace
4639         dwarf2_per_objfile parameter with dwarf2_per_bfd.
4640         (create_cus_from_index_list): Likewise.
4641         (create_cus_from_index): Likewise.
4642         (create_signatured_type_table_from_index): Likewise.
4643         (create_cus_from_debug_names_list): Likewise.
4644         (create_cus_from_debug_names): Likewise.
4645         (dwarf2_read_gdb_index): Update.
4646         (dwarf2_read_debug_names): Update.
4648 2020-05-27  Tom Tromey  <tom@tromey.com>
4649             Simon Marchi  <simon.marchi@efficios.com>
4651         * dwarf2/read.h (struct dwarf2_per_objfile)
4652         <get_type_for_signatured_type, set_type_for_signatured_type>:
4653         New methods.
4654         <m_type_map>: New member.
4655         (struct signatured_type) <type>: Remove.
4656         * dwarf2/read.c
4657         (dwarf2_per_objfile::get_type_for_signatured_type,
4658         dwarf2_per_objfile::set_type_for_signatured_type): New.
4659         (get_signatured_type): Use new methods.
4661 2020-05-27  Tom Tromey  <tom@tromey.com>
4662             Simon Marchi  <simon.marchi@efficios.com>
4664         * dwarf2/read.h (struct type_unit_group_unshareable): New.
4665         (struct dwarf2_per_objfile) <type_units>: New member.
4666         <get_type_unit_group_unshareable>: New method.
4667         * dwarf2/read.c (struct type_unit_group) <compunit_symtab,
4668         num_symtabs, symtabs>: Remove; move to
4669         type_unit_group_unshareable.
4670         (dwarf2_per_objfile::get_type_unit_group_unshareable): New.
4671         (process_full_type_unit, dwarf2_cu::setup_type_unit_groups)
4672         (dwarf2_cu::setup_type_unit_groups): Use type_unit_group_unshareable.
4674 2020-05-27  Simon Marchi  <simon.marchi@efficios.com>
4676         * dwarf2/read.h (struct dwarf2_per_cu_data):
4677         <dwarf2_per_objfile>: Remove.
4678         * dwarf2/read.c (create_cu_from_index_list): Don't assign
4679         dwarf2_per_objfile.
4680         (create_signatured_type_table_from_index): Likewise.
4681         (create_signatured_type_table_from_debug_names): Likewise.
4682         (create_debug_type_hash_table): Likewise.
4683         (fill_in_sig_entry_from_dwo_entry): Likewise.
4684         (create_type_unit_group): Likewise.
4685         (read_comp_units_from_section): Likewise.
4686         (create_cus_hash_table): Likewise.
4688 2020-05-27  Simon Marchi  <simon.marchi@efficios.com>
4690         * dwarf2/read.c (process_psymtab_comp_unit): Remove reference to
4691         dwarf2_per_cu_data::dwarf2_per_objfile.
4692         (compute_compunit_symtab_includes): Likewise.
4693         (dwarf2_cu::start_symtab): Likewise.
4695 2020-05-27  Simon Marchi  <simon.marchi@polymtl.ca>
4697         * dwarf2/read.h (dwarf2_get_die_type): Add dwarf2_per_objfile
4698         parameter.
4699         * dwarf2/read.c (get_die_type_at_offset): Likewise.
4700         (read_namespace_alias): Update.
4701         (lookup_die_type): Update.
4702         (dwarf2_get_die_type): Add dwarf2_per_objfile parameter.
4703         * dwarf2/loc.c (class dwarf_evaluate_loc_desc) <get_base_type>:
4704         Update.
4705         (disassemble_dwarf_expression): Update.
4707 2020-05-27  Simon Marchi  <simon.marchi@efficios.com>
4709         * dwarf2/read.h (struct dwarf2_queue_item): Add
4710         dwarf2_per_objfile parameter, assign new parameter.
4711         <per_objfile>: New field.
4712         * dwarf2/read.c (free_one_cached_comp_unit): Add
4713         dwarf2_per_objfile parameter.
4714         (queue_comp_unit): Likewise.
4715         (dw2_do_instantiate_symtab): Update.
4716         (process_psymtab_comp_unit): Update.
4717         (maybe_queue_comp_unit): Add dwarf2_per_objfile parameter.
4718         (process_imported_unit_die): Update.
4719         (queue_and_load_dwo_tu): Update.
4720         (follow_die_offset): Update.
4721         (follow_die_sig_1): Update.
4723 2020-05-27  Simon Marchi  <simon.marchi@efficios.com>
4725         * dwarf2/read.h (struct dwarf2_per_cu_data) <objfile>: Remove.
4726         * dwarf2/read.c (dwarf2_compute_name): Pass per_objfile down.
4727         (read_call_site_scope): Assign per_objfile.
4728         (dwarf2_per_cu_data::objfile): Remove.
4729         * gdbtypes.h (struct call_site) <per_objfile>: New member.
4730         * dwarf2/loc.h (dwarf2_evaluate_loc_desc): Add
4731         dwarf2_per_objfile parameter.
4732         * dwarf2/loc.c (dwarf2_evaluate_loc_desc_full): Add
4733         dwarf2_per_objfile parameter.
4734         (dwarf_expr_reg_to_entry_parameter): Add output
4735         dwarf2_per_objfile parameter.
4736         (locexpr_get_frame_base): Update.
4737         (class dwarf_evaluate_loc_desc) <get_tls_address>: Update.
4738         <push_dwarf_reg_entry_value>: Update.
4739         <call_site_to_target_addr>: Update.
4740         (dwarf_entry_parameter_to_value): Add dwarf2_per_objfile
4741         parameter.
4742         (value_of_dwarf_reg_entry): Update.
4743         (rw_pieced_value): Update.
4744         (indirect_synthetic_pointer): Update.
4745         (dwarf2_evaluate_property): Update.
4746         (dwarf2_loc_desc_get_symbol_read_needs): Add dwarf2_per_objfile
4747         parameter.
4748         (locexpr_read_variable): Update.
4749         (locexpr_get_symbol_read_needs): Update.
4750         (loclist_read_variable): Update.
4752 2020-05-27  Simon Marchi  <simon.marchi@efficios.com>
4754         * dwarf2/read.h (dwarf2_fetch_die_loc_sect_off,
4755         dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
4756         dwarf2_fetch_die_type_sect_off): Add dwarf2_per_objfile
4757         parameter.
4758         * dwarf2/read.c (dwarf2_fetch_die_loc_sect_off,
4759         dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
4760         dwarf2_fetch_die_type_sect_off): Add dwarf2_per_objfile
4761         parameter.
4762         * dwarf2/loc.c (indirect_synthetic_pointer, per_cu_dwarf_call,
4763         sect_variable_value): Add dwarf2_per_objfile parameter.
4764         (class dwarf_evaluate_loc_desc) <dwarf_call,
4765         dwarf_variable_value>: Update.
4766         (fetch_const_value_from_synthetic_pointer): Add
4767         dwarf2_per_objfile parameter.
4768         (fetch_const_value_from_synthetic_pointer): Update.
4769         (coerced_pieced_ref): Update.
4770         (class symbol_needs_eval_context) <dwarf_call,
4771         dwarf_variable_value>: Update.
4772         (dwarf2_compile_expr_to_ax): Update.
4774 2020-05-27  Simon Marchi  <simon.marchi@efficios.com>
4776         * dwarf2/loc.c (allocate_piece_closure): Add dwarf2_per_objfile
4777         parameter.
4778         (dwarf2_evaluate_loc_desc_full): Update.
4780 2020-05-27  Simon Marchi  <simon.marchi@efficios.com>
4782         * dwarf2/read.h (dwarf2_read_addr_index): Add dwarf2_per_objfile
4783         parameter.
4784         * dwarf2/read.c (dwarf2_read_addr_index): Likewise.
4785         * dwarf2/loc.c (decode_debug_loclists_addresses): Add
4786         dwarf2_per_objfile parameter.
4787         (decode_debug_loc_dwo_addresses): Likewise.
4788         (dwarf2_find_location_expression): Update.
4789         (class dwarf_evaluate_loc_desc) <get_addr_index>: Update.
4790         (locexpr_describe_location_piece): Add dwarf2_per_objfile
4791         parameter.
4792         (disassemble_dwarf_expression): Add dwarf2_per_objfile
4793         parameter.
4794         (locexpr_describe_location_1): Likewise.
4795         (locexpr_describe_location): Update.
4797 2020-05-27  Simon Marchi  <simon.marchi@efficios.com>
4799         * dwarf2/read.h (struct dwarf2_per_cu_data) <text_offset>:
4800         Remove.
4801         * dwarf2/read.c (dwarf2_per_cu_data::text_offset): Remove.
4802         * dwarf2/loc.c (dwarf2_find_location_expression): Update.
4803         (dwarf2_compile_property_to_c): Update.
4804         (dwarf2_compile_expr_to_ax): Add dwarf2_per_objfile parameter,
4805         use text offset from objfile.
4806         (locexpr_tracepoint_var_ref): Update.
4807         (locexpr_generate_c_location): Update.
4808         (loclist_describe_location): Update.
4809         (loclist_tracepoint_var_ref): Update.
4810         * dwarf2/compile.h (compile_dwarf_bounds_to_c): Add
4811         dwarf2_per_objfile parameter.
4812         * dwarf2/loc2c.c (do_compile_dwarf_expr_to_c): Likewise,
4813         use text offset from objfile.
4814         (compile_dwarf_expr_to_c): Add dwarf2_per_objfile parameter.
4816 2020-05-27  Simon Marchi  <simon.marchi@efficios.com>
4818         * dwarf2/expr.h (struct dwarf_expr_context)
4819         <dwarf_expr_context>: Add dwarf2_per_objfile parameter.
4820         <offset>: Remove.
4821         <per_objfile>: New member.
4822         * dwarf2/expr.c (dwarf_expr_context::dwarf_expr_context): Add
4823         dwarf2_per_objfile parameter.  Don't set offset, set
4824         per_objfile.
4825         (dwarf_expr_context::execute_stack_op): Use offset from objfile.
4826         * dwarf2/frame.c (dwarf2_frame_find_fde): Return (by parameter)
4827         a dwarf2_per_objfile object instead of an offset.
4828         (class dwarf_expr_executor) <dwarf_expr_executor>: Add
4829         constructor.
4830         (execute_stack_op): Add dwarf2_per_objfile parameter, pass it
4831         to dwarf2_expr_executor constructor.  Don't set offset.
4832         (dwarf2_fetch_cfa_info): Update.
4833         (struct dwarf2_frame_cache) <text_offset>: Remove.
4834         <per_objfile>: New field.
4835         (dwarf2_frame_cache): Update.
4836         (dwarf2_frame_prev_register): Update.
4837         * dwarf2/loc.c (class dwarf_evaluate_loc_desc)
4838         <dwarf_evaluate_loc_desc>: Add constructor.
4839         (dwarf2_evaluate_loc_desc_full): Update.
4840         (dwarf2_locexpr_baton_eval): Update.
4841         (class symbol_needs_eval_context) <symbol_needs_eval_context>:
4842         Add constructor.
4843         (dwarf2_loc_desc_get_symbol_read_needs): Update.
4845 2020-05-27  Simon Marchi  <simon.marchi@efficios.com>
4847         * dwarf2/read.h (struct dwarf2_per_cu_data) <addr_type,
4848         addr_sized_int_type>: Move to dwarf2_cu.
4849         <int_type>: Move to dwarf2_per_objfile.
4850         (struct dwarf2_per_objfile) <int_type>: Move here.
4851         * dwarf2/read.c (struct dwarf2_cu) <addr_type,
4852         addr_sized_int_type>: Move here.
4853         (read_func_scope): Update.
4854         (read_array_type): Update.
4855         (read_tag_string_type): Update.
4856         (attr_to_dynamic_prop): Update.
4857         (dwarf2_per_cu_data::int_type): Rename to...
4858         (dwarf2_per_objfile::int_type): ... this.
4859         (dwarf2_per_cu_data::addr_sized_int_type): Rename to...
4860         (dwarf2_cu::addr_sized_int_type): ... this.
4861         (read_subrange_type): Update.
4862         (dwarf2_per_cu_data::addr_type): Rename to...
4863         (dwarf2_cu::addr_type): ... this.
4864         (set_die_type): Update.
4866 2020-05-27  Simon Marchi  <simon.marchi@efficios.com>
4868         * dwarf2/read.c (queue_and_load_all_dwo_tus): Access per_objfile
4869         data through per_cu->cu.
4871 2020-05-27  Simon Marchi  <simon.marchi@efficios.com>
4873         * dwarf2/read.c (lookup_dwo_comp_unit): Change
4874         dwarf2_per_cu_data parameter fo dwarf2_cu.
4875         (lookup_dwo_type_unit): Likewise.
4876         (read_cutu_die_from_dwo): Likewise.
4877         (lookup_dwo_unit): Likewise.
4878         (open_and_init_dwo_file): Likewise.
4879         (lookup_dwo_cutu): Likewise.
4880         (lookup_dwo_comp_unit): Likewise.
4881         (lookup_dwo_type_unit): Likewise.
4882         (cutu_reader::init_tu_and_read_dwo_dies): Update.
4883         (cutu_reader::cutu_reader): Update.
4885 2020-05-27  Simon Marchi  <simon.marchi@efficios.com>
4887         * dwarf2/read.c (process_full_comp_unit): Add dwarf2_per_objfile
4888         parameter.
4889         (process_full_type_unit): Likewise.
4890         (process_queue): Update.
4892 2020-05-27  Simon Marchi  <simon.marchi@efficios.com>
4894         * dwarf2/read.c (recursively_compute_inclusions): Add
4895         dwarf2_per_objfile parameter.
4896         (compute_compunit_symtab_includes): Likewise.
4897         (process_cu_includes): Update.
4899 2020-05-27  Simon Marchi  <simon.marchi@efficios.com>
4901         * dwarf2/read.c (create_partial_symtab): Add dwarf2_per_objfile
4902         parameter.
4903         (create_type_unit_group): Update.
4904         (process_psymtab_comp_unit_reader): Update.
4905         (build_type_psymtabs_reader): Update.
4907 2020-05-27  Simon Marchi  <simon.marchi@efficios.com>
4909         * dwarf2/read.c (cutu_reader::keep): Access dwarf2_per_objfile
4910         object through m_this_cu->cu.
4912 2020-05-27  Simon Marchi  <simon.marchi@polymtl.ca>
4914         * dwarf2/read.c (queue_and_load_dwo_tu): Expect a dwarf2_cu as
4915         the info parameter.
4916         (queue_and_load_all_dwo_tus): Pass per_cu->cu.
4918 2020-05-27  Simon Marchi  <simon.marchi@polymtl.ca>
4920         * dwarf2/read.c (class cutu_reader) <cutu_reader>: Add
4921         per_objfile parameter.
4922         (load_full_type_unit): Add per_objfile parameter.
4923         (read_signatured_type): Likewise.
4924         (load_full_comp_unit): Likewise.
4925         (load_cu): Likewise.
4926         (dw2_do_instantiate_symtab): Likewise.
4927         (dw2_get_file_names): Likewise.
4928         (dw2_map_symtabs_matching_filename): Update.
4929         (dw_expand_symtabs_matching_file_matcher): Update.
4930         (dw2_map_symbol_filenames): Update.
4931         (process_psymtab_comp_unit): Add per_objfile parameter.
4932         (build_type_psymtabs_1): Update.
4933         (process_skeletonless_type_unit): Update.
4934         (dwarf2_build_psymtabs_hard): Update.
4935         (load_partial_comp_unit): Add per_objfile parameter.
4936         (scan_partial_symbols): Update.
4937         (load_full_comp_unit): Add per_objfile parameter.
4938         (process_imported_unit_die): Update.
4939         (create_cus_hash_table): Update.
4940         (find_partial_die): Update.
4941         (dwarf2_read_addr_index): Update.
4942         (follow_die_offset): Update.
4943         (dwarf2_fetch_die_loc_sect_off): Update.
4944         (dwarf2_fetch_constant_bytes): Update.
4945         (dwarf2_fetch_die_type_sect_off): Update.
4946         (follow_die_sig_1): Update.
4947         (load_full_type_unit): Add per_objfile parameter.
4948         (read_signatured_type): Likewise.
4950 2020-05-27  Simon Marchi  <simon.marchi@efficios.com>
4952         * dwarf2/read.c (lookup_dwo_unit): Use bfd_get_filename instead
4953         of objfile_name.
4955 2020-05-27  Simon Marchi  <simon.marchi@polymtl.ca>
4957         * dwarf2/read.h (struct dwarf2_per_bfd) <obfd>: New member.
4958         (dwarf2_get_dwz_file): Replace parameter with dwarf2_per_bfd.
4959         * dwarf2/read.c (dwarf2_per_bfd::dwarf2_per_bfd): Assign obfd
4960         field.
4961         (dwarf2_get_dwz_file): Replace parameter with dwarf2_per_bfd.
4962         (create_cus_from_index): Update.
4963         (dwarf2_read_gdb_index): Update.
4964         (create_cus_from_debug_names): Update.
4965         (dwarf2_read_debug_names): Update.
4966         (get_abbrev_section_for_cu): Update.
4967         (create_all_comp_units): Update.
4968         (read_attribute_value): Update.
4969         (get_debug_line_section): Update.
4970         * dwarf2/index-cache.c (index_cache::store): Update.
4971         * dwarf2/index-write.c (save_gdb_index_command): Update.
4972         * dwarf2/macro.c (dwarf_decode_macro_bytes): Update.
4974 2020-05-27  Simon Marchi  <simon.marchi@polymtl.ca>
4976         * dwarf2/read.h (struct dwarf2_per_cu_data) <per_bfd>: New
4977         member.
4978         * dwarf2/read.c (dwarf2_per_bfd::allocate_per_cu): Initialize
4979         dwarf2_per_cu_data::per_bfd.
4980         (dwarf2_per_bfd::allocate_signatured_type): Likewise.
4981         (create_type_unit_group): Likewise.
4982         (queue_comp_unit): Remove reference to
4983         per_cu->dwarf2_per_objfile.
4984         (maybe_queue_comp_unit): Likewise.
4985         (fill_in_sig_entry_from_dwo_entry): Assign new field.
4986         (create_cus_hash_table): Assign new field.
4988 2020-05-27  Simon Marchi  <simon.marchi@efficios.com>
4990         * dwarf2/read.c: Replace
4991         dwarf2_cu->per_cu->dwarf2_per_objfile references with
4992         dwarf2_cu->per_objfile throughout.
4994 2020-05-27  Simon Marchi  <simon.marchi@efficios.com>
4996         * dwarf2/read.c (dw2_do_instantiate_symtab): Add per_objfile
4997         parameter, don't use per_cu->dwarf2_per_objfile.
4998         (dw2_instantiate_symtab): Likewise.
4999         (dw2_find_last_source_symtab): Update.
5000         (dw2_map_expand_apply): Update.
5001         (dw2_lookup_symbol): Update.
5002         (dw2_expand_symtabs_for_function): Update.
5003         (dw2_expand_all_symtabs): Update.
5004         (dw2_expand_symtabs_with_fullname): Update.
5005         (dw2_expand_symtabs_matching_one): Add per_objfile parameter,
5006         don't use per_cu->dwarf2_per_objfile.
5007         (dw2_expand_marked_cus): Update.
5008         (dw2_find_pc_sect_compunit_symtab): Update.
5009         (dw2_debug_names_lookup_symbol): Update.
5010         (dw2_debug_names_expand_symtabs_for_function): Update.
5011         (dw2_debug_names_map_matching_symbols): Update.
5012         (dwarf2_psymtab::expand_psymtab): Update.
5014 2020-05-27  Simon Marchi  <simon.marchi@efficios.com>
5016         * dwarf2/read.c (struct dwarf2_cu) <dwarf2_cu>: Add parameter.
5017         <per_objfile>: New member.
5018         (class cutu_reader) <init_tu_and_read_dwo_dies>: Add parameter.
5019         (cutu_reader::init_tu_and_read_dwo_dies): Add parameter, update
5020         call to dwarf2_cu.
5021         (cutu_reader::cutu_reader): Update.
5022         (dwarf2_cu::dwarf2_cu): Add parameter, initialize per_objfile.
5024 2020-05-27  Simon Marchi  <simon.marchi@efficios.com>
5026         * dwarf2/read.h (struct dwarf2_per_bfd) <die_type_hash>: Move to
5027         struct dwarf2_per_objfile.
5028         (struct dwarf2_per_objfile) <die_type_hash>: Move from struct
5029         dwarf2_per_bfd.
5030         * dwarf2/read.c (set_die_type): Update.
5031         (get_die_type_at_offset): Update.
5033 2020-05-27  Tom Tromey  <tom@tromey.com>
5034             Simon Marchi  <simon.marchi@efficios.com>
5036         * dwarf2/read.h (struct dwarf2_per_bfd) <num_psymtabs>: New
5037         method.
5038         (struct dwarf2_per_objfile) <resize_symtabs, symtab_set_p,
5039         get_symtab, set_symtab>: New methods.
5040         <m_symtabs>: New field.
5041         (struct dwarf2_psymtab): Derive from partial_symtab.
5042         <readin_p, get_compunit_symtab>: Declare methods.
5043         * dwarf2/read.c (dwarf2_per_objfile::symtab_set_p,
5044         dwarf2_per_objfile::get_symtab, dwarf2_per_objfile::set_symtab):
5045         New methods.
5046         (struct dwarf2_per_cu_quick_data) <compunit_symtab>: Remove.
5047         (dw2_do_instantiate_symtab, dw2_instantiate_symtab)
5048         (dw2_map_expand_apply, dw2_map_symtabs_matching_filename)
5049         (dw2_symtab_iter_next, dw2_print_stats)
5050         (dw2_expand_symtabs_with_fullname)
5051         (dw2_expand_symtabs_matching_one)
5052         (dw_expand_symtabs_matching_file_matcher)
5053         (dw2_find_pc_sect_compunit_symtab, dw2_map_symbol_filenames)
5054         (dw2_debug_names_iterator::next)
5055         (dw2_debug_names_map_matching_symbols)
5056         (fill_in_sig_entry_from_dwo_entry, dwarf2_psymtab::read_symtab)
5057         (process_queue, dwarf2_psymtab::expand_psymtab): Update.
5058         (dwarf2_psymtab::readin_p, dwarf2_psymtab::get_compunit_symtab):
5059         New methods.
5060         (get_compunit_symtab, process_full_comp_unit)
5061         (process_full_type_unit): Update.
5062         (dwarf2_build_psymtabs, dwarf2_initialize_objfile, add_type_unit): Call
5064 2020-05-27  Simon Marchi  <simon.marchi@polymtl.ca>
5066         * dwarf2/read.h (dwarf2_per_objfile): Rename to dwarf2_per_bfd,
5067         then introduce a new dwarf2_per_objfile type.
5068         <read_line_string>: Move to the new dwarf2_per_objfile type.
5069         <objfile>: Likewise.
5070         (dwarf2_per_bfd): Rename dwarf2_per_objfile to this.
5071         * dwarf2/read.c: Replace references to dwarf2_per_objfile with
5072         dwarf2_per_objfile->per_bfd.
5073         (dwarf2_per_objfile::dwarf2_per_objfile): Rename to...
5074         (dwarf2_per_bfd::dwarf2_per_bfd): ... this.
5075         (dwarf2_per_objfile::free_cached_comp_units): Rename to...
5076         (dwarf2_per_bfd::free_cached_comp_units): ... this.
5077         (dwarf2_has_info): Allocate dwarf2_per_bfd.
5078         (dwarf2_per_objfile::locate_sections): Rename to...
5079         (dwarf2_per_bfd::locate_sections): ... this.
5080         (dwarf2_per_objfile::get_cutu): Rename to...
5081         (dwarf2_per_bfd::get_cutu): ... this.
5082         (dwarf2_per_objfile::get_cu): Rename to...
5083         (dwarf2_per_bfd::get_cu): ... this.
5084         (dwarf2_per_objfile::get_tu): Rename to...
5085         (dwarf2_per_bfd::get_tu): ... this.
5086         (dwarf2_per_objfile::allocate_per_cu): Rename to...
5087         (dwarf2_per_bfd::allocate_per_cu): ... this.
5088         (dwarf2_per_objfile::allocate_signatured_type): Rename to...
5089         (dwarf2_per_bfd::allocate_signatured_type): ... this.
5090         (get_gdb_index_contents_ftype): Change parameter from
5091         dwarf2_per_objfile to dwarf2_per_bfd.
5092         * dwarf2/macro.c, dwarf2/index-write.c: Replace references to
5093         dwarf2_per_objfile with dwarf2_per_objfile->per_bfd.
5095 2020-05-27  Tom Tromey  <tom@tromey.com>
5096             Simon Marchi  <simon.marchi@efficios.com>
5098         * dwarf2/loc.c (struct piece_closure) <per_objfile>: New member.
5099         (allocate_piece_closure): Set "per_objfile" member.
5100         (dwarf2_find_location_expression, dwarf2_locexpr_baton_eval)
5101         (locexpr_describe_location, loclist_describe_location): Use new
5102         member.
5103         * dwarf2/read.c (read_call_site_scope)
5104         (mark_common_block_symbol_computed, attr_to_dynamic_prop)
5105         (dwarf2_const_value_attr, dwarf2_fetch_die_loc_sect_off)
5106         (fill_in_loclist_baton, dwarf2_symbol_mark_computed,
5107         handle_data_member_location): Set per_objfile member.
5108         * dwarf2/loc.h (struct dwarf2_locexpr_baton) <per_objfile>: New
5109         member.
5110         (struct dwarf2_loclist_baton) <per_objfile>: New member.
5112 2020-05-27  Tom Tromey  <tom@tromey.com>
5114         * dwarf2/read.h (struct dwarf2_per_objfile) <allocate_per_cu,
5115         allocate_signatured_type>: Declare new methods.
5116         <m_num_psymtabs>: New member.
5117         (struct dwarf2_per_cu_data) <index>: New member.
5118         * dwarf2/read.c (dwarf2_per_objfile::allocate_per_cu)
5119         (dwarf2_per_objfile::allocate_signatured_type): New methods.
5120         (create_cu_from_index_list): Use allocate_per_cu.
5121         (create_signatured_type_table_from_index)
5122         (create_signatured_type_table_from_debug_names)
5123         (create_debug_type_hash_table, add_type_unit)
5124         (read_comp_units_from_section): Use allocate_signatured_type.
5126 2020-05-27  Tom Tromey  <tom@tromey.com>
5128         * psymtab.c (partial_map_expand_apply)
5129         (psym_find_pc_sect_compunit_symtab, psym_lookup_symbol)
5130         (psym_lookup_global_symbol_language)
5131         (psymtab_to_symtab, psym_find_last_source_symtab, dump_psymtab)
5132         (psym_print_stats, psym_expand_symtabs_for_function)
5133         (psym_map_symbol_filenames, psym_map_matching_symbols)
5134         (psym_expand_symtabs_matching)
5135         (partial_symtab::read_dependencies, maintenance_info_psymtabs)
5136         (maintenance_check_psymtabs): Update.
5137         * psympriv.h (struct partial_symtab) <readin_p,
5138         get_compunit_symtab>: Add objfile parameter.
5139         (struct standard_psymtab) <readin_p, get_compunit_symtab>:
5140         Likewise.
5141         * dwarf2/read.c (struct dwarf2_include_psymtab) <readin_p,
5142         get_compunit_symtab>: Likewise.
5143         (dwarf2_psymtab::expand_psymtab): Pass objfile argument.
5145 2020-05-27  Tom Tromey  <tom@tromey.com>
5147         * dwarf2/read.h (struct dwarf2_per_objfile) <obstack>: New
5148         member.
5149         * dwarf2/read.c (delete_file_name_entry): Fix comment.
5150         (create_cu_from_index_list)
5151         (create_signatured_type_table_from_index)
5152         (create_signatured_type_table_from_debug_names)
5153         (dw2_get_file_names_reader, dwarf2_initialize_objfile)
5154         (dwarf2_create_include_psymtab)
5155         (create_debug_type_hash_table, add_type_unit)
5156         (create_type_unit_group, read_comp_units_from_section)
5157         (dwarf2_compute_name, create_cus_hash_table)
5158         (create_dwp_hash_table, create_dwo_unit_in_dwp_v1)
5159         (create_dwo_unit_in_dwp_v2, open_and_init_dwp_file): Use new
5160         obstack.
5161         (dw2_get_real_path): Likewise.  Change argument to
5162         dwarf2_per_objfile.
5164 2020-05-27  Luis Machado  <luis.machado@linaro.org>
5166         PR tdep/26000
5167         * arm-tdep.c (thumb_analyze_prologue): Fix instruction matching
5168         for ldrd (immediate).
5170 2020-05-26  Philippe Waroquiers  <philippe.waroquiers@skynet.be>
5172         * command.h: Add comment giving the name of class_tui.
5173         * cli/cli-cmds.c (_initialize_cli_cmds): If TUI defined,
5174         create the fake command for the help for class_tui.
5176 2020-05-26  Tom Tromey  <tromey@adacore.com>
5178         * ada-lang.c (ada_print_array_index): Change type.  Call val_atr.
5179         (ada_value_ptr_subscript): Don't call pos_atr on the lower bound.
5180         (val_atr): New function.
5181         (value_val_atr): Use it.
5182         * ada-valprint.c (print_optional_low_bound): Change low bound
5183         handling for enums.
5184         (val_print_packed_array_elements): Don't call discrete_position.
5185         * gdbtypes.c (get_discrete_bounds) <TYPE_CODE_RANGE>: Call
5186         discrete_position for enum types.
5187         * language.c (default_print_array_index): Change type.
5188         * language.h (struct language_defn) <la_print_array_index>: Add
5189         index_type parameter, change type of index_value.
5190         (LA_PRINT_ARRAY_INDEX): Add index_type parameter.
5191         (default_print_array_index): Update.
5192         * valprint.c (maybe_print_array_index): Don't call
5193         value_from_longest.  Update.
5194         (value_print_array_elements): Don't call discrete_position.
5196 2020-05-26  Tom Tromey  <tromey@adacore.com>
5198         * ada-lang.c (value_val_atr): Handle TYPE_CODE_RANGE.
5199         * gdbtypes.c (discrete_position): Handle TYPE_CODE_RANGE.
5201 2020-05-25  Cristiano De Alti  <cristiano_dealti@hotmail.com>
5203         PR gdb/13519
5204         * avr-tdep.c (avr_integer_to_address): Return data or code
5205         address accordingly to the second 'type' argument of the
5206         function.
5208 2020-05-25  Michael Weghorn  <m.weghorn@posteo.de>
5210         * infcmd.c, inferior.h: (construct_inferior_arguments):
5211         Moved function from here to gdbsupport/common-inferior.{h,cc}
5213 2020-05-23  Tom Tromey  <tom@tromey.com>
5215         Revert commit eca1f90c:
5216         * NEWS: Remove entry for completion styling.
5217         * completer.c (_rl_completion_prefix_display_length): Move
5218         declaration later.
5219         (gdb_fnprint): Revert.
5220         (gdb_display_match_list_1): Likewise.
5221         * cli/cli-style.c (completion_prefix_style)
5222         (completion_difference_style, completion_suffix_style): Remove.
5223         (_initialize_cli_style): Revert.
5224         * cli/cli-style.h (completion_prefix_style)
5225         (completion_difference_style, completion_suffix_style): Don't
5226         declare.
5228 2020-05-24  Pedro Alves  <palves@redhat.com>
5230         * symtab.c (completion_list_add_name): Return boolean indication
5231         of whether the symbol matched.
5232         (completion_list_add_symbol): Don't try to remove C++ aliases if
5233         the symbol didn't match in the first place.
5234         * symtab.h (completion_list_add_name): Return bool.
5236 2020-05-23  Simon Marchi  <simon.marchi@polymtl.ca>
5238         * gdbtypes.h (TYPE_FIELD): Remove.  Replace all uses with
5239         type::field.
5241 2020-05-23  Joel Brobecker  <brobecker@adacore.com>
5243         GDB 9.2 released.
5245 2020-05-23  Tom Tromey  <tom@tromey.com>
5247         * NEWS: Add entry for completion styling.
5248         * completer.c (_rl_completion_prefix_display_length): Move
5249         declaration earlier.
5250         (gdb_fnprint): Use completion_style.
5251         (gdb_display_match_list_1): Likewise.
5252         * cli/cli-style.c (completion_prefix_style)
5253         (completion_difference_style, completion_suffix_style): New
5254         globals.
5255         (_initialize_cli_style): Register new globals.
5256         * cli/cli-style.h (completion_prefix_style)
5257         (completion_difference_style, completion_suffix_style): Declare.
5259 2020-05-23  Pedro Alves  <palves@redhat.com>
5261         * utils.c: Include "gdbsupport/gdb-safe-ctype.h".
5262         (parse_escape): Use ISDIGIT instead of isdigit.
5263         (puts_debug): Use gdb_isprint instead of isprint.
5264         (fprintf_symbol_filtered): Use ISALNUM instead of isalnum.
5265         (cp_skip_operator_token, skip_ws, strncmp_iw_with_mode): Use
5266         ISSPACE instead of isspace.
5267         (strncmp_iw_with_mode): Use TOLOWER instead of tolower and ISSPACE
5268         instead of isspace.
5269         (strcmp_iw_ordered): Use ISSPACE instead of isspace.
5270         (string_to_core_addr): Use TOLOWER instead of tolower, ISXDIGIT
5271         instead of isxdigit and ISDIGIT instead of isdigit.
5273 2020-05-22  Simon Marchi  <simon.marchi@efficios.com>
5275         * gdbtypes.h (struct type) <field>: New method.
5276         (TYPE_FIELDS): Remove, replace all uses with either type::fields
5277         or type::field.
5279 2020-05-22  Simon Marchi  <simon.marchi@efficios.com>
5281         * gdbtypes.h (struct type) <fields, set_fields>: New methods.
5282         (TYPE_FIELDS): Use type::fields.  Change all call sites that
5283         modify the propery to use type::set_fields instead.
5285 2020-05-22  Simon Marchi  <simon.marchi@efficios.com>
5287         * gdbtypes.h (TYPE_NFIELDS): Remove.  Change all cal sites to use
5288         type::num_fields instead.
5290 2020-05-22  Simon Marchi  <simon.marchi@efficios.com>
5292         * gdbtypes.h (struct type) <num_fields, set_num_fields>: New
5293         methods.
5294         (TYPE_NFIELDS): Use type::num_fields.  Change all call sites
5295         that modify the number of fields to use type::set_num_fields
5296         instead.
5298 2020-05-22  Tom Tromey  <tromey@adacore.com>
5300         * compile/compile-object-load.h (munmap_list_free): Don't
5301         declare.
5303 2020-05-22  Andrew Burgess  <andrew.burgess@embecosm.com>
5305         * annotate.c (annotate_source_line): Update return type, add call
5306         to update current symtab and line.
5307         * annotate.h (annotate_source_line): Update return type, and
5308         extend header comment.
5309         * source.c (info_line_command): Check annotation_level before
5310         calling annotate_source_line.
5311         * stack.c (print_frame_info): If calling annotate_source_line
5312         returns true, then don't print any other source line information.
5314 2020-05-21  Simon Marchi  <simon.marchi@efficios.com>
5316         * lm32-tdep.c (lm32_register_reggroup_p): Fix condition.
5318 2020-05-21  Simon Marchi  <simon.marchi@efficios.com>
5320         * coffread.c (patch_type): Remove NULL check before xfree.
5321         * corefile.c (set_gnutarget): Likewise.
5322         * cp-abi.c (set_cp_abi_as_auto_default): Likewise.
5323         * exec.c (build_section_table): Likewise.
5324         * remote.c (remote_target::pass_signals): Likewise.
5325         * utils.c (n_spaces): Likewise.
5326         * cli/cli-script.c (document_command): Likewise.
5327         * i386-windows-tdep.c (core_process_module_section): Likewise.
5328         * linux-fork.c (struct fork_info) <~fork_info>: Likewise.
5330 2020-05-20  Simon Marchi  <simon.marchi@efficios.com>
5332         * symfile.c (reread_symbols): Clear objfile's section_offsets
5333         vector and section indices, re-compute them by calling
5334         sym_offsets.
5336 2020-05-20  Tom Tromey  <tromey@adacore.com>
5338         * ada-lang.c (bound_name, MAX_ADA_DIMENS): Remove.
5339         (desc_one_bound, desc_index_type): Compute field name.
5341 2020-05-20  Tom de Vries  <tdevries@suse.de>
5343         PR symtab/25833
5344         * dwarf2/read.c (dw2_map_matching_symbols): Handle .gdb_index.
5346 2020-05-20  Alan Modra  <amodra@gmail.com>
5348         PR 25993
5349         * solib-darwin.c (darwin_bfd_open): Don't strdup pathname for
5350         bfd_set_filename.
5351         * solib-aix.c (solib_aix_bfd_open): Use std::string for name
5352         passed to bfd_set_filename.
5353         * symfile-mem.c (add_vsyscall_page): Likewise for string
5354         passed to symbol_file_add_from_memory.
5355         (symbol_file_add_from_memory): Make name param a const char* and
5356         don't strdup.
5358 2020-05-20  Alan Modra  <amodra@gmail.com>
5360         * coff-pe-read.c (read_pe_exported_syms): Use bfd_get_filename
5361         rather than accessing bfd->filename directly.
5362         * dtrace-probe.c (dtrace_static_probe_ops::get_probes): Likewise,
5363         and use bfd_section_name.
5364         * dwarf2/frame.c (decode_frame_entry): Likewise.
5365         * exec.c (exec_set_section_address): Likewise.
5366         * solib-aix.c (solib_aix_bfd_open): Likewise.
5367         * stap-probe.c (get_stap_base_address): Likewise.
5368         * symfile.c (reread_symbols): Likewise.
5370 2020-05-19  Tom Tromey  <tromey@adacore.com>
5372         * sparc64-tdep.c (adi_tag_fd): Update call to target_fileio_open.
5374 2020-05-19  Simon Marchi  <simon.marchi@efficios.com>
5376         * dwarf2/read.c (quirk_rust_enum): Allocate enough fields.
5378 2020-05-19  Pedro Alves  <palves@redhat.com>
5380         * NEWS (set exec-file-mismatch): Adjust entry.
5381         * exec.c: Include "build-id.h".
5382         (validate_exec_file): Try to match build IDs instead of filenames.
5383         * gdb_bfd.c (struct gdb_bfd_open_closure): New.
5384         (gdb_bfd_iovec_fileio_open): Adjust to use gdb_bfd_open_closure
5385         and pass down 'warn_if_slow'.
5386         (gdb_bfd_open): Add 'warn_if_slow' parameter.  Use
5387         gdb_bfd_open_closure to pass it down.
5388         * gdb_bfd.h (gdb_bfd_open): Add 'warn_if_slow' parameter.
5390 2020-05-19  Pedro Alves  <palves@redhat.com>
5392         * gdb_bfd.c (gdb_bfd_iovec_fileio_open): Adjust.
5393         * target.c (target_fileio_open_1): Rename to target_fileio_open
5394         and make extern.  Use bool.
5395         (target_fileio_open, target_fileio_open_warn_if_slow): Delete.
5396         (target_fileio_read_alloc_1): Adjust.
5397         * target.h (target_fileio_open): Add 'warn_if_slow' parameter.
5398         (target_fileio_open_warn_if_slow): Delete declaration.
5400 2020-05-19  Pedro Alves  <palves@redhat.com>
5402         * gdb_bfd.h: (gdb_bfd_open): Default to 'fd' parameter to -1.
5403         Adjust all callers.
5405 2020-05-19  Yoshinori Sato  <ysato@users.sourceforge.jp>
5407         * h8300-tdep.c (h8300_is_argument_spill): Change how we check
5408         whether disp is negative.
5410 2020-05-19  Simon Marchi  <simon.marchi@efficios.com>
5412         * symfile.h (struct symfile_segment_data)
5413         <~symfile_segment_data>: Remove.
5414         <segment_info>: Change to std::vector.
5415         * symfile.c (default_symfile_segments): Update.
5416         * elfread.c (elf_symfile_segments): Update.
5418 2020-05-19  Simon Marchi  <simon.marchi@efficios.com>
5420         * symfile.h (struct symfile_segment_data) <struct segment>: New.
5421         <segments>: New.
5422         <segment_bases, segment_sizes>: Remove.
5423         * symfile.c (default_symfile_segments): Update.
5424         * elfread.c (elf_symfile_segments): Update.
5425         * remote.c (remote_target::get_offsets): Update.
5426         * solib-target.c (solib_target_relocate_section_addresses):
5427         Update.
5429 2020-05-19  Simon Marchi  <simon.marchi@efficios.com>
5431         * symfile.h (struct symfile_segment_data): Initialize fields.
5432         <~symfile_segment_data>: Add.
5433         (symfile_segment_data_up): New.
5434         (struct sym_fns) <sym_segments>: Return a
5435         symfile_segment_data_up.
5436         (default_symfile_segments): Return a symfile_segment_data_up.
5437         (free_symfile_segment_data): Remove.
5438         (get_symfile_segment_data): Return a symfile_segment_data_up.
5439         * symfile.c (default_symfile_segments): Likewise.
5440         (get_symfile_segment_data): Likewise.
5441         (free_symfile_segment_data): Remove.
5442         (symfile_find_segment_sections): Update.
5443         * elfread.c (elf_symfile_segments): Return a
5444         symfile_segment_data_up.
5445         * remote.c (remote_target::get_offsets): Update.
5446         * solib-target.c (solib_target_relocate_section_addresses):
5447         Update.
5448         * symfile-debug.c (debug_sym_segments): Return a
5449         symfile_segment_data_up.
5451 2020-05-18  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
5453         PR build/25981
5454         * i386-sol2-nat.c [PR_MODEL_NATIVE != PR_MODEL_LP64] (regmap):
5455         Hardcode register numbers.
5457         PR build/25981
5458         * procfs.c [(__i386__ || __x86_64__) && sun] (proc_get_LDT_entry,
5459         procfs_find_LDT_entry): Remove.
5460         * procfs.h [(__i386__ || __x86_64__) && sun] (struct ssd,
5461         procfs_find_LDT_entry): Remove.
5462         * sol-thread.c [(__i386__ || __x86_64__) && sun] (ps_lgetLDT):
5463         Remove.
5465 2020-05-17  Pedro Alves  <palves@redhat.com>
5466             Andrew Burgess  <andrew.burgess@embecosm.com>
5467             Keno Fischer  <keno@juliacomputing.com>
5469         PR gdb/25741
5470         * breakpoint.c (build_target_condition_list): Update comments.
5471         (build_target_command_list): Update comments and skip matching
5472         locations.
5473         (insert_bp_location): Move "set breakpoint auto-hw on" handling to
5474         a separate function.  Simplify "set breakpoint auto-hw off"
5475         handling.
5476         (insert_breakpoints): Update comment.
5477         (tracepoint_locations_match): New parameter.  For breakpoints,
5478         compare location types too, if the caller wants to.
5479         (handle_automatic_hardware_breakpoints): New functions.
5480         (bp_location_is_less_than): Also sort by location type and
5481         hardware breakpoint length.
5482         (update_global_location_list): Handle "set breakpoint auto-hw on"
5483         here.
5484         (update_breakpoint_locations): Ask breakpoint_locations_match to
5485         ignore location types.
5487 2020-05-16  Simon Marchi  <simon.marchi@efficios.com>
5489         * gdbtypes.h (TYPE_NAME): Remove.  Change all cal sites to use
5490         type::name instead.
5492 2020-05-16  Simon Marchi  <simon.marchi@efficios.com>
5494         * gdbtypes.h (struct type) <name, set_name>: New methods.
5495         (TYPE_CODE): Use type::name.  Change all call sites used to set
5496         the name to use type::set_name instead.
5498 2020-05-16  Tom Tromey  <tom@tromey.com>
5500         * top.c (quit_force): Update.
5501         * infrun.c (handle_no_resumed): Update.
5502         * top.h (all_uis): New function.
5503         (ALL_UIS): Remove.
5505 2020-05-16  Simon Marchi  <simon.marchi@efficios.com>
5507         * mips-linux-tdep.c (mips_linux_in_dynsym_stub): Fix condition.
5509 2020-05-16  Pedro Alves  <palves@redhat.com>
5511         * ia64-linux-nat.c
5512         (ia64_linux_nat_target) <enable_watchpoints_in_psr(ptid_t)>:
5513         Declare method.
5514         (enable_watchpoints_in_psr): Now a method of ia64_linux_nat_target.
5516 2020-05-15  Simon Marchi  <simon.marchi@efficios.com>
5518         * sparc64-tdep.c (adi_stat_t): Remove typedef (leaving struct).
5519         (sparc64_adi_info): Likewise.
5521 2020-05-15  Tom Tromey  <tom@tromey.com>
5523         * symtab.c (lookup_language_this, lookup_symbol_aux): Use
5524         block_objfile.
5525         (lookup_objfile_from_block): Remove.
5526         (lookup_symbol_in_block, lookup_symbol_in_static_block)
5527         (lookup_global_symbol): Use block_objfile.
5528         * symtab.h (lookup_objfile_from_block): Don't declare.
5529         * printcmd.c (clear_dangling_display_expressions): Use
5530         block_objfile.
5531         * parse.c (operator_check_standard): Use block_objfile.
5533 2020-05-15  Tom Tromey  <tom@tromey.com>
5535         * language.c (language_alloc_type_symbol): Set
5536         SYMBOL_SECTION.
5537         * symtab.c (initialize_objfile_symbol): Remove.
5538         (allocate_symbol): Remove.
5539         (allocate_template_symbol): Remove.
5540         * dwarf2/read.c (fixup_go_packaging): Use "new".
5541         (new_symbol): Use "new".
5542         (read_variable): Don't call initialize_objfile_symbol.  Use
5543         "new".
5544         (read_func_scope): Use "new".
5545         * xcoffread.c (process_xcoff_symbol): Don't call
5546         initialize_objfile_symbol.
5547         (SYMBOL_DUP): Remove.
5548         * coffread.c (process_coff_symbol, coff_read_enum_type): Use
5549         "new".
5550         * symtab.h (allocate_symbol, initialize_objfile_symbol)
5551         (allocate_template_symbol): Don't declare.
5552         (struct symbol): Add copy constructor.  Change defaults.
5553         * jit.c (finalize_symtab): Use "new".
5554         * ctfread.c (ctf_add_enum_member_cb, new_symbol, ctf_add_var_cb):
5555         Use "new".
5556         * stabsread.c (patch_block_stabs, define_symbol, read_enum_type)
5557         (common_block_end): Use "new".
5558         * mdebugread.c (parse_symbol): Use "new".
5559         (new_symbol): Likewise.
5561 2020-05-15  Philippe Waroquiers  <philippe.waroquiers@skynet.be>
5563         * NEWS: Mention changes to help and apropos.
5565 2020-05-15  Philippe Waroquiers  <philippe.waroquiers@skynet.be>
5567         * command.h (enum command_class): Improve comments, document
5568         that class_alias is for user-defined aliases, give the class
5569         name for each class, remove unused class_xdb.
5570         * cli/cli-decode.c (add_com_alias): Document THECLASS intended usage.
5571         * breakpoint.c (_initialize_breakpoint): Replace class_alias
5572         by a precise class.
5573         * infcmd.c (_initialize_infcmd): Likewise.
5574         * reverse.c (_initialize_reverse): Likewise.
5575         * stack.c (_initialize_stack): Likewise.
5576         * symfile.c (_initialize_symfile): Likewise.
5577         * tracepoint.c (_initialize_tracepoint): Likewise.
5579 2020-05-15  Philippe Waroquiers  <philippe.waroquiers@skynet.be>
5581         * cli/cli-decode.c (apropos_cmd): Produce output for aliases
5582         when their aliased command is traversed.
5583         (help_cmd): Add fput_command_names_styled call to
5584         output command name and aliases when command has an alias.
5586 2020-05-15  Philippe Waroquiers  <philippe.waroquiers@skynet.be>
5588         * cli/cli-decode.h (help_cmd_list): Remove declaration.
5589         * cli/cli-decode.c (help_cmd_list): Declare as static,
5590         remove prefix argument, use bool for recurse arg, rework to show the aliases of
5591         a command together with the command.
5592         (fput_command_name_styled, fput_command_names_styled): New functions.
5593         (print_help_for_command): Remove prefix arg, use bool for recurse arg, use
5594         fput_command_name_styled.
5595         (help_list, help_all): Update callers to remove prefix arg and use bool recurse.
5596         * cli/cli-cmds.c (_initialize_cli_cmds): Update alias_command doc.
5598 2020-05-15  Philippe Waroquiers  <philippe.waroquiers@skynet.be>
5600         * cli/cli-setshow.h (cmd_show_list): Remove prefix argument.
5601         * cli/cli-decode.c (do_show_prefix_cmd): Likewise.
5602         * command.h (cmd_show_list): Likewise.
5603         * dwarf2/index-cache.c (show_index_cache_command): Likewise.
5604         * cli/cli-setshow.c (cmd_show_list): Use the prefix to produce the output.  Skip aliases.
5606 2020-05-15  Philippe Waroquiers  <philippe.waroquiers@skynet.be>
5608         * unittests/command-def-selftests.c (traverse_command_structure):
5609         Verify all commands of a list have the same prefix command and
5610         that only the top cmdlist commands have a null prefix.
5612 2020-05-15  Philippe Waroquiers  <philippe.waroquiers@skynet.be>
5614         * cli/cli-decode.c (lookup_cmd_for_prefix): Return the aliased command
5615         as prefix, not one of its aliases.
5616         (set_cmd_prefix): Remove.
5617         (do_add_cmd): Centralize the setting of the prefix of a command, when
5618         command is defined after its full chain of prefix commands.
5619         (add_alias_cmd): Remove call to set_cmd_prefix, as do_add_cmd does it.
5620         (add_setshow_cmd_full): Likewise.
5621         (update_prefix_field_of_prefixed_commands): New function.
5622         (add_prefix_cmd): Replace non working call to set_cmd_prefix by
5623         update_prefix_field_of_prefixed_commands.
5624         * gdb/remote-fileio.c (initialize_remote_fileio): Use the real
5625         addresses of remote_set_cmdlist and remote_show_cmdlist given
5626         as argument, not the address of an argument.
5627         * gdb/remote-fileio.h (initialize_remote_fileio): Likewise.
5628         * gdb/remote.c (_initialize_remote): Likewise.
5630 2020-05-15  Philippe Waroquiers  <philippe.waroquiers@skynet.be>
5632         * cli/cli-cmds.c (alias_command): Check for an existing alias
5633         using lookup_cmd_composition, as valid_command_p is too strict
5634         and forbids aliases that are the prefix of an existing alias
5635         or command.
5636         * cli/cli-decode.c (lookup_cmd_composition): Ensure a prefix
5637         command is properly recognised as a valid command.
5639 2020-05-15  Philippe Waroquiers  <philippe.waroquiers@skynet.be>
5641         * unittests/help-doc-selftests.c: Rename to
5642         unittests/command-def-selftests.c
5643         * unittests/command-def-selftests.c (help_doc_tests): Update some
5644         comments.
5645         (command_structure_tests, traverse_command_structure): New namespace
5646         and function.
5647         (command_structure_invariants_tests): New function.
5648         (_initialize_command_def_selftests) Renamed from
5649         _initialize_help_doc_selftests, register command_structure_invariants
5650         selftest.
5652 2020-05-15  Philippe Waroquiers  <philippe.waroquiers@skynet.be>
5654         * cli/cli-cmds.c (_initialize_cli_cmds): Define 'info set' as
5655         an alias of 'show'.
5657 2020-05-15  Joel Brobecker  <brobecker@adacore.com>
5659         * ada-lang.h: (ada_is_gnat_encoded_fixed_point_type): Renames
5660         ada_is_fixed_point_type.  Update all callers.
5661         (gnat_encoded_fixed_point_delta): Renames ada_delta.  Update
5662         all callers.
5663         * ada-lang.c (gnat_encoded_fixed_type_info): Renames fixed_type_info.
5664         Update all callers.
5665         * ada-typeprint.c (print_gnat_encoded_fixed_point_type): Renames
5666         print_fixed_point_type.  Update all callers.
5667         * ada-valprint.c (ada_value_print_num): Replace call to
5668         ada_is_fixed_point_type by ada_is_gnat_encoded_fixed_point_type.
5670 2020-05-14  Kevin Buettner  <kevinb@redhat.com>
5672         * nat/linux-btrace.c (btrace_this_cpu): Add check for AMD
5673         processors.
5674         (cpu_supports_bts): Add CV_AMD case.
5676 2020-05-14  Laurent Morichetti  <Laurent.Morichetti@amd.com>
5677             Simon Marchi  <simon.marchi@efficios.com>
5679         * infrun.c (stop_all_threads): Collect multiple wait events at
5680         each pass.
5682 2020-05-14  Simon Marchi  <simon.marchi@efficios.com>
5684         * gdbtypes.h (TYPE_CODE): Remove.  Change all call sites to use
5685         type::code instead.
5687 2020-05-14  Simon Marchi  <simon.marchi@efficios.com>
5689         * gdbtypes.h (struct type) <code, set_code>: New methods.
5690         (TYPE_CODE): Use type::code.  Change all call sites used to set
5691         the code to use type::set_code instead.
5693 2020-05-14  Tankut Baris Aktemur  <tankut.baris.aktemur@intel.com>
5694             Tom de Vries  <tdevries@suse.de>
5695             Pedro Alves  <palves@redhat.com>
5697         PR threads/25478
5698         * infrun.c (stop_all_threads): Do NOT ignore
5699         TARGET_WAITKIND_NO_RESUMED, TARGET_WAITKIND_THREAD_EXITED,
5700         TARGET_WAITKIND_EXITED, TARGET_WAITKIND_SIGNALLED wait statuses
5701         received.
5702         (handle_no_resumed): Remove code handling a live inferior with no
5703         threads.
5704         * remote.c (has_single_non_exited_thread): New.
5705         (remote_target::update_thread_list): Do not delete a thread if is
5706         the last thread of the process.
5707         * thread.c (thread_select): Call delete_exited_threads instead of
5708         prune_threads.
5710 2020-05-14  Tankut Baris Aktemur  <tankut.baris.aktemur@intel.com>
5712         * infrun.c (stop_all_threads): Enable/disable thread events of all
5713         targets.  Move a debug message denoting the end of the function
5714         into the SCOPED_EXIT block.
5716 2020-05-14  Tankut Baris Aktemur  <tankut.baris.aktemur@intel.com>
5718         * process-stratum-target.h: Include <set>.
5719         (all_non_exited_process_targets, switch_to_target_no_thread): New
5720         function declarations.
5721         * process-stratum-target.c (all_non_exited_process_targets)
5722         (switch_to_target_no_thread): New function implementations.
5724 2020-05-14  Tankut Baris Aktemur  <tankut.baris.aktemur@intel.com>
5726         * infrun.c (handle_inferior_event): Extract out a piece of code
5727         into...
5728         (mark_non_executing_threads): ...this new function.
5730 2020-05-14  Tankut Baris Aktemur  <tankut.baris.aktemur@intel.com>
5732         * infrun.c (resume_1): Move a 'regcache_read_pc' call down to first
5733         use.
5735 2020-05-14  Tankut Baris Aktemur  <tankut.baris.aktemur@intel.com>
5737         * regcache.c (regcache_read_pc_protected): New function
5738         implementation that returns 0 if the PC cannot read via
5739         'regcache_read_pc'.
5740         * infrun.c (proceed): Call 'regcache_read_pc_protected'
5741         instead of 'regcache_read_pc'.
5742         (keep_going_pass_signal): Ditto.
5744 2020-05-13  Tom Tromey  <tromey@adacore.com>
5746         * ada-lang.c (align_value): Remove.
5747         (ada_template_to_fixed_record_type_1): Use align_up.
5749 2020-05-13  Tankut Baris Aktemur  <tankut.baris.aktemur@intel.com>
5751         * async-event.c: Update the copyright year.
5752         * async-event.h: Update the copyright year.
5754 2020-05-12  Simon Marchi  <simon.marchi@efficios.com>
5756         * objfiles.h (is_addr_in_objfile,
5757         shared_objfile_contains_address_p): Return bool.
5758         * objfile.c (is_addr_in_objfile,
5759         shared_objfile_contains_address_p): Return bool.
5761 2020-05-11  Tom Tromey  <tromey@adacore.com>
5763         * cli/cli-cmds.c (info_command): Restore.
5764         (_initialize_cli_cmds): Use add_prefix_command for "info".
5765         * gdb-gdb.gdb.in: Restore breakpoint on info_command.
5767 2020-05-11  Tom Tromey  <tromey@adacore.com>
5769         * ada-lang.c (ada_value_primitive_field): Now public.
5770         * ada-lang.h (ada_value_primitive_field): Declare.
5771         * ada-valprint.c (print_field_values): Use
5772         ada_value_primitive_field for wrapper fields.
5774 2020-05-11  Tom de Vries  <tdevries@suse.de>
5776         * dwarf2/index-write.c (debug_names::psymbol_tag): Handle
5777         MODULE_DOMAIN.
5779 2020-05-11  Tom de Vries  <tdevries@suse.de>
5781         PR symtab/25941
5782         * dwarf2/read.c (create_cus_from_debug_names_list): Initialize CUs
5783         with length 0, if not gdb-produced.
5784         (cutu_reader::cutu_reader): Set CU length to actual length if 0.
5786 2020-05-09  Tom de Vries  <tdevries@suse.de>
5788         PR gdb/25955
5789         * break-catch-throw.c (check_status_exception_catchpoint): Fix name
5790         calculation.
5792 2020-05-09  Tom Tromey  <tom@tromey.com>
5794         * top.c (server_command): Now bool.
5795         * top.h (server_command): Now bool.
5797 2020-05-08  Tom Tromey  <tromey@adacore.com>
5799         * dwarf2/read.c (read_lexical_block_scope): Don't process a DIE
5800         already being processed.
5802 2020-05-08  Tom Tromey  <tom@tromey.com>
5804         * printcmd.c (struct display) <next>: Remove.
5805         <display>: New constructor.
5806         <exp_string>: Now a std::string.
5807         <enabled_p>: Now a bool.
5808         (display_number): Move definition earlier.
5809         (displays): Rename from display_chain.  Now a std::vector.
5810         (ALL_DISPLAYS, ALL_DISPLAYS_SAFE): Remove.
5811         (display_command): Update.
5812         (do_one_display, disable_display)
5813         (enable_disable_display_command, do_enable_disable_display):
5814         Update.
5815         (free_display): Remove.
5816         (clear_displays): Rewrite.
5817         (delete_display): Update.
5818         (map_display_numbers): Use function_view.  Remove "data"
5819         parameter.  Update.
5820         (do_delete_display): Remove.
5821         (undisplay_command): Update.
5822         (do_one_display, do_displays, disable_display)
5823         (info_display_command): Update.
5824         (do_enable_disable_display): Remove.
5825         (enable_disable_display_command)
5826         (clear_dangling_display_expressions): Update.
5828 2020-05-08  Tom Tromey  <tom@tromey.com>
5830         * symtab.c (set_symbol_cache_size)
5831         (maintenance_print_symbol_cache, maintenance_flush_symbol_cache)
5832         (maintenance_print_symbol_cache_statistics): Update.
5833         * symmisc.c (print_symbol_bcache_statistics)
5834         (print_objfile_statistics, maintenance_print_objfiles)
5835         (maintenance_info_symtabs, maintenance_check_symtabs)
5836         (maintenance_expand_symtabs, maintenance_info_line_tables):
5837         Update.
5838         * symfile-debug.c (set_debug_symfile): Update.
5839         * source.c (forget_cached_source_info): Update.
5840         * python/python.c (gdbpy_progspaces): Update.
5841         * psymtab.c (maintenance_info_psymtabs): Update.
5842         * probe.c (parse_probes): Update.
5843         * linespec.c (iterate_over_all_matching_symtabs)
5844         (collect_symtabs_from_filename, search_minsyms_for_name): Update.
5845         * guile/scm-progspace.c (gdbscm_progspaces): Update.
5846         * exec.c (exec_target::close): Update.
5847         * ada-tasks.c (ada_tasks_new_objfile_observer): Update.
5848         * breakpoint.c (print_one_breakpoint_location)
5849         (create_longjmp_master_breakpoint)
5850         (create_std_terminate_master_breakpoint): Update.
5851         * progspace.c (program_spaces): Now a std::vector.
5852         (maybe_new_address_space): Update.
5853         (add_program_space): Remove.
5854         (program_space::program_space): Update.
5855         (remove_program_space): Update.
5856         (number_of_program_spaces): Remove.
5857         (print_program_space, update_address_spaces): Update.
5858         * progspace.h (program_spaces): Change type.
5859         (ALL_PSPACES): Remove.
5860         (number_of_program_spaces): Don't declare.
5861         (struct program_space) <next>: Remove.
5863 2020-05-08  Tom Tromey  <tom@tromey.com>
5865         * mi/mi-cmd-file.c (mi_cmd_file_list_shared_libraries): Update.
5866         * solib-svr4.c (svr4_fetch_objfile_link_map): Update.
5867         (enable_break): Update.
5868         * solib-frv.c (frv_fdpic_find_global_pointer): Update.
5869         (frv_fdpic_find_canonical_descriptor): Update.
5870         (frv_fetch_objfile_link_map): Update.
5871         * progspace.c (program_space::free_all_objfiles): Update.
5872         (program_space::solibs): New method.
5873         * progspace.h (struct program_space) <solibs>: New method.
5874         * solist.h (master_so_list): Don't declare.
5875         (ALL_SO_LIBS): Remove.
5876         * solib.h (so_list_head): Remove.
5877         (update_solib_list): Update comment.
5878         * solib.c (master_so_list): Remove.
5879         (solib_used, update_solib_list, solib_add)
5880         (info_sharedlibrary_command, clear_solib)
5881         (reload_shared_libraries_1, remove_user_added_objfile): Update.
5883 2020-05-08  Tom Tromey  <tom@tromey.com>
5885         * extension.c (extension_languages): Now a std::array.
5886         (ALL_EXTENSION_LANGUAGES): Remove.
5887         (get_ext_lang_defn, get_ext_lang_of_file)
5888         (eval_ext_lang_from_control_command): Update.
5889         (finish_ext_lang_initialization)
5890         (auto_load_ext_lang_scripts_for_objfile)
5891         (ext_lang_type_printers::ext_lang_type_printers)
5892         (apply_ext_lang_type_printers)
5893         (ext_lang_type_printers::~ext_lang_type_printers)
5894         (apply_ext_lang_val_pretty_printer, apply_ext_lang_frame_filter)
5895         (preserve_ext_lang_values, get_breakpoint_cond_ext_lang)
5896         (breakpoint_ext_lang_cond_says_stop, check_quit_flag)
5897         (get_matching_xmethod_workers, ext_lang_colorize)
5898         (ext_lang_before_prompt): Update.
5899         (ALL_ENABLED_EXTENSION_LANGUAGES): Remove.
5901 2020-05-08  Tom Tromey  <tom@tromey.com>
5903         * symtab.h (class demangle_result_storage) <set_malloc_ptr>: New
5904         overload.
5905         <swap_string, m_string>: Remove.
5906         * symtab.c (demangle_for_lookup, completion_list_add_symbol):
5907         Update.
5908         * stabsread.c (define_symbol, read_type): Update.
5909         * linespec.c (find_linespec_symbols): Update.
5910         * gnu-v3-abi.c (gnuv3_get_typeid): Update.
5911         * dwarf2/read.c (dwarf2_canonicalize_name): Update.
5912         * dbxread.c (read_dbx_symtab): Update.
5913         * cp-support.h (cp_canonicalize_string_full)
5914         (cp_canonicalize_string, cp_canonicalize_string_no_typedefs):
5915         Return unique_xmalloc_ptr.
5916         * cp-support.c (inspect_type): Update.
5917         (cp_canonicalize_string_full): Return unique_xmalloc_ptr.
5918         (cp_canonicalize_string_no_typedefs, cp_canonicalize_string):
5919         Likewise.
5920         * c-typeprint.c (print_name_maybe_canonical): Update.
5921         * break-catch-throw.c (check_status_exception_catchpoint):
5922         Update.
5924 2020-05-08  Tom de Vries  <tdevries@suse.de>
5926         * infrun.c (follow_fork): Copy current_line and current_symtab to
5927         child thread.
5929 2020-05-07  Simon Marchi  <simon.marchi@efficios.com>
5931         * async-event.c (struct async_signal_handler, struct
5932         async_event_handler): Reformat, remove typedef.
5934 2020-05-07  Simon Marchi  <simon.marchi@efficios.com>
5936         * gdbtypes.h (TYPE_DYN_PROP_LIST): Remove.  Update all users
5937         access thistype->main_type->dyn_prop_list directly.
5939 2020-05-07  Simon Marchi  <simon.marchi@efficios.com>
5941         * gdbtypes.h (struct type) <remove_dyn_prop>: New method.
5942         (remove_dyn_prop): Remove.  Update all users to use
5943         type::remove_dyn_prop.
5944         * gdbtypes.c (remove_dyn_prop): Rename to...
5945         (type::remove_dyn_prop): ... this.
5947 2020-05-07  Simon Marchi via Gdb-patches  <gdb-patches@sourceware.org>
5949         * gdbtypes.h (struct type) <add_dyn_prop>: New method.
5950         (add_dyn_prop): Remove.  Update all users to use
5951         type::add_dyn_prop.
5952         * gdbtypes.c (add_dyn_prop): Rename to...
5953         (type::add_dyn_prop): ... this.
5955 2020-05-07  Simon Marchi  <simon.marchi@efficios.com>
5957         * gdbtypes.h (struct type) <get_dyn_prop>: New method.
5958         (get_dyn_prop): Remove.  Update all users to use
5959         type::dyn_prop.
5960         * gdbtypes.c (get_dyn_prop): Rename to...
5961         (type::dyn_prop): ... this.
5963 2020-05-06  Simon Marchi  <simon.marchi@efficios.com>
5965         * gdbtypes.h (struct main_type) <flag_static>: Remove.
5967 2020-05-06  Simon Marchi  <simon.marchi@efficios.com>
5969         * amd64-tdep.c (amd64_analyze_prologue): Check for `endbr64`
5970         instruction, skip it if it's there.
5972 2020-05-05  Simon Marchi  <simon.marchi@efficios.com>
5974         * gdbtypes.h (struct main_type) <flag_incomplete>: Remove.
5976 2020-05-04  Simon Marchi  <simon.marchi@efficios.com>
5978         * gdbtypes.h (TYPE_INCOMPLETE): Remove.
5979         * gdbtypes.c (recursive_dump_type): Remove use of
5980         TYPE_INCOMPLETE.
5982 2020-05-03  Tom Tromey  <tom@tromey.com>
5984         * breakpoint.c (catch_command, tcatch_command): Remove.
5985         (_initialize_breakpoint): Use add_basic_prefix_cmd,
5986         add_show_prefix_cmd.
5987         (set_breakpoint_cmd, show_breakpoint_cmd): Remove
5988         * utils.c (set_internal_problem_cmd, show_internal_problem_cmd):
5989         Remove.
5990         (add_internal_problem_command): Use add_basic_prefix_cmd,
5991         add_show_prefix_cmd.
5992         * mips-tdep.c (set_mipsfpu_command): Remove.
5993         (_initialize_mips_tdep): Use add_basic_prefix_cmd.
5994         * dwarf2/index-cache.c (set_index_cache_command): Remove.
5995         (_initialize_index_cache): Use add_basic_prefix_cmd.
5996         * memattr.c (dummy_cmd): Remove.
5997         (_initialize_mem): Use add_basic_prefix_cmd, add_show_prefix_cmd.
5998         * tui/tui-win.c (set_tui_cmd, show_tui_cmd): Remove.
5999         (_initialize_tui_win): Use add_basic_prefix_cmd,
6000         add_show_prefix_cmd.
6001         * cli/cli-logging.c (set_logging_command): Remove.
6002         (_initialize_cli_logging): Use add_basic_prefix_cmd,
6003         add_show_prefix_cmd.
6004         (show_logging_command): Remove.
6005         * target.c (target_command): Remove.
6006         (add_target): Use add_basic_prefix_cmd.
6008 2020-05-02  Hannes Domani  <ssbssa@yahoo.de>
6010         * gdbtypes.h (enum dynamic_prop_node_kind): Fix typo.
6012 2020-05-01  Philippe Waroquiers  <philippe.waroquiers@skynet.be>
6014         * gdb-gdb.gdb-in: Remove breakpoint on disappeared function
6015         info_command.
6017 2020-04-30  Kamil Rytarowski  <n54@gmx.com>
6019         * nbsd-nat.c (nbsd_enable_proc_events)
6020         (nbsd_nat_target::post_startup_inferior): Add.
6021         (nbsd_nat_target::post_attach): Call `nbsd_enable_proc_events'.
6022         (nbsd_nat_target::update_thread_list): Rewrite.
6023         (nbsd_nat_target::wait): Handle "PTRACE_LWP_EXIT" and
6024         "PTRACE_LWP_CREATE".
6025         * nbsd-nat.h (nbsd_nat_target::post_startup_inferior): Add.
6027 2020-04-30  Philippe Waroquiers  <philippe.waroquiers@skynet.be>
6029         * stack.c (_initialize_stack): Remove duplicated creation
6030         of "frame" command and "f" alias.
6032 2020-04-30  Hannes Domani  <ssbssa@yahoo.de>
6034         PR gdb/18706
6035         * gdbtypes.c (check_typedef): Calculate size of array of
6036         stubbed type.
6038 2020-04-30  Hannes Domani  <ssbssa@yahoo.de>
6040         PR gdb/15559
6041         * i386-tdep.c (i386_push_dummy_call): Call
6042         i386_thiscall_push_dummy_call.
6043         (i386_thiscall_push_dummy_call): New function.
6044         * i386-tdep.h (i386_thiscall_push_dummy_call): Declare.
6045         * i386-windows-tdep.c (i386_windows_push_dummy_call): New function.
6046         (i386_windows_init_abi): Call set_gdbarch_push_dummy_call.
6048 2020-04-29  Simon Marchi  <simon.marchi@efficios.com>
6050         * gdbarch.sh (do_read): Add shellcheck disable directive for
6051         warning SC2162.
6053 2020-04-29  Simon Marchi  <simon.marchi@efficios.com>
6055         * gdbarch.sh: Use ${foo:-} where shellcheck would report a
6056         "referenced but not assigned" warning.
6058 2020-04-29  Simon Marchi  <simon.marchi@efficios.com>
6060         * gdbarch.sh: Remove code that sets fallbackdefault.
6062 2020-04-29  Simon Marchi  <simon.marchi@efficios.com>
6064         * gdbarch.sh: Use shell operators && and || instead of
6065         -a and -o.
6067 2020-04-29  Simon Marchi  <simon.marchi@efficios.com>
6069         * gdbarch.sh: Use $(...) instead of `...`.
6071 2020-04-29  Simon Marchi  <simon.marchi@efficios.com>
6073         * gdbarch.sh: Use double quotes around variables.
6075 2020-04-29  Simon Marchi  <simon.marchi@efficios.com>
6077         * gdbarch.sh: Use %s with printf, instead of variables in the
6078         format string.
6080 2020-04-29  Tom Tromey  <tromey@adacore.com>
6082         PR ada/25875:
6083         * dwarf2/read.c (update_enumeration_type_from_children): Compute
6084         type fields here.
6085         (read_enumeration_type): Call
6086         update_enumeration_type_from_children later.  Update comments.
6087         (process_enumeration_scope): Don't create type fields.
6089 2020-04-29  Kamil Rytarowski  <n54@gmx.com>
6091         * nbsd-tdep.c: Include "xml-syscall.h".
6092         (nbsd_init_abi): Call `set_xml_syscall_file_name'.
6094 2020-04-29  Kamil Rytarowski  <n54@gmx.com>
6096         * nbsd-nat.c: Include "sys/wait.h".
6097         (nbsd_resume, nbsd_nat_target::resume, nbsd_wait)
6098         (nbsd_nat_target::wait, nbsd_nat_target::insert_exec_catchpoint)
6099         (nbsd_nat_target::remove_exec_catchpoint)
6100         (nbsd_nat_target::set_syscall_catchpoint): Add.
6101         * nbsd-nat.h (nbsd_nat_target::resume, nbsd_nat_target::wait)
6102         (nbsd_nat_target::insert_exec_catchpoint)
6103         (nbsd_nat_target::remove_exec_catchpoint)
6104         (nbsd_nat_target::set_syscall_catchpoint): Add.
6105         * nbsd-tdep.c (nbsd_get_syscall_number): Add.
6106         (nbsd_init_abi): Call `set_gdbarch_get_syscall_number' and pass
6107         `nbsd_get_syscall_number'.
6109 2020-04-29  Tom Tromey  <tom@tromey.com>
6111         * stack.c (print_block_frame_labels): Remove.
6113 2020-04-29  Hannes Domani  <ssbssa@yahoo.de>
6115         PR gdb/17320
6116         * ada-valprint.c (val_print_packed_array_elements): Move array
6117         end bracket to new line.
6118         (ada_val_print_string): Remove extra spaces before first array
6119         element.
6120         * c-valprint.c (c_value_print_array): Likewise.
6121         * m2-valprint.c (m2_print_array_contents): Likewise.
6122         (m2_value_print_inner): Likewise.
6123         * p-valprint.c (pascal_value_print_inner): Likewise.
6124         * valprint.c (generic_val_print_array): Likewise.
6125         (value_print_array_elements): Move first array element and array
6126         end bracket to new line.
6128 2020-04-29  Tom de Vries  <tdevries@suse.de>
6130         PR symtab/25889
6131         * linespec.c (find_method): Fix ix calculation.
6133 2020-04-28  Kamil Rytarowski  <n54@gmx.com>
6135         * syscalls/update-netbsd.sh: New file.
6136         * syscalls/netbsd.xml: Regenerate.
6137         * data-directory/Makefile.in: Register `netbsd.xml' in
6138         `SYSCALLS_FILES'.
6140 2020-04-28  Simon Marchi  <simon.marchi@efficios.com>
6142         * syscalls/update-freebsd.sh: Add double quotes.
6144 2020-04-28  Tom Tromey  <tom@tromey.com>
6146         * NEWS: Update.
6147         * python/py-cmd.c (gdbpy_initialize_commands): Add COMMAND_TUI.
6148         (cmdpy_init): Allow class_tui.
6150 2020-04-28 Mark Williams <mark@myosotissp.com>
6152         PR gdb/24480
6153         * dwarf2read.c: Add missing assingments to list_in_scope when
6154         start_symtab was already called.
6156 2020-04-28  Simon Marchi  <simon.marchi@efficios.com>
6158         PR gdb/25881
6159         * dwarf2/read.c (offset_map_type): Use
6160         gdb:hash_enum<sect_offset> as hash function.
6162 2020-04-28  Tom de Vries  <tdevries@suse.de>
6164         * dwarf2/read.c (process_structure_scope): Add symbol for struct decl
6165         with DW_AT_signature.
6167 2020-04-27  Simon Marchi  <simon.marchi@efficios.com>
6169         * configure.ac: Remove check for fs_base/gs_base in
6170         user_regs_struct.
6171         * configure: Re-generate.
6172         * config.in: Re-generate.
6173         * amd64-nat.c (amd64_native_gregset_reg_offset): Adjust.
6174         * amd64-linux-nat.c (amd64_linux_nat_target::fetch_registers,
6175         amd64_linux_nat_target::store_registers, ps_get_thread_area, ): Adjust.
6177 2020-04-27  Luis Machado  <luis.machado@linaro.org>
6179         * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first): Handle
6180         problematic inline frame unwinding situation.
6181         * frame.c (frame_id_computed_p): New function.
6182         * frame.h (frame_id_computed_p): New prototype.
6184 2020-04-26  Tom Tromey  <tom@tromey.com>
6186         * command.h (enum command_class) <class_pseudo>: Remove.
6188 2020-04-26  Philippe Waroquiers  <philippe.waroquiers@skynet.be>
6190         * cli/cli-decode.c (lookup_cmd_composition): Fix comments
6191         and whitespace.
6193 2020-04-25  Kamil Rytarowski  <n54@gmx.com>
6195         * inf-ptrace.c (inf_ptrace_target::wait): Remove
6196         `PT_GET_PROCESS_STATE' block.
6198 2020-04-24  Tom Tromey  <tom@tromey.com>
6200         * symtab.h (symbol_get_demangled_name): Don't declare.
6201         * symtab.c (symbol_get_demangled_name): Remove.
6202         (general_symbol_info::natural_name)
6203         (general_symbol_info::demangled_name): Update.
6205 2020-04-24  Tom Tromey  <tom@tromey.com>
6207         PR rust/25025:
6208         * dwarf2/read.c (dwarf2_physname): Do not demangle for Rust.
6210 2020-04-24  Tom Tromey  <tom@tromey.com>
6212         PR symtab/12707:
6213         * dwarf2/read.c (add_partial_symbol): Use the linkage name if it
6214         exists.
6215         (new_symbol): Likewise.
6216         * compile/compile-object-load.c (get_out_value_type): Use
6217         symbol_matches_search_name.
6219 2020-04-24  Tom Tromey  <tom@tromey.com>
6221         * dwarf2/read.c (add_partial_symbol): Do not call
6222         compute_and_set_names.
6224 2020-04-24  Tom Tromey  <tom@tromey.com>
6226         * dwarf2/read.c (add_partial_symbol): Use new add_psymbol_to_list
6227         overload.
6229 2020-04-24  Tom Tromey  <tom@tromey.com>
6231         * psymtab.c (add_psymbol_to_bcache): Simplify calling convention.
6232         (add_psymbol_to_list): New overload.  Make old overload call new
6233         one.
6234         * psympriv.h (add_psymbol_to_list): New overload.
6236 2020-04-24  Tom Tromey  <tom@tromey.com>
6238         * dwarf2/read.c (partial_die_info::read) <case
6239         DW_AT_linkage_name>: Use value_as_string.
6240         (dwarf2_string_attr): Use value_as_string.
6241         * dwarf2/attribute.h (struct attribute) <value_as_string>: Declare
6242         method.
6243         * dwarf2/attribute.c (attribute::value_as_string): New method.
6245 2020-04-24  Tom Tromey  <tom@tromey.com>
6247         * symtab.c (general_symbol_info::natural_name)
6248         (general_symbol_info::demangled_name): Check for language_rust.
6250 2020-04-24  Tom Tromey  <tom@tromey.com>
6252         * dwarf2/read.c (dw2_linkage_name): Move Rust "{" hack here...
6253         (dwarf2_physname): ... from here.
6254         (partial_die_info::read): Add Rust "{" hack.
6256 2020-04-24  Tom Tromey  <tom@tromey.com>
6258         * symtab.h (struct general_symbol_info) <set_demangled_name>: New
6259         method.
6260         (symbol_set_demangled_name): Don't declare.
6261         * symtab.c (general_symbol_info::set_demangled_name): Rename from
6262         symbol_set_demangled_name.
6263         (general_symbol_info::set_language)
6264         (general_symbol_info::compute_and_set_names): Update.
6265         * minsyms.c (minimal_symbol_reader::install): Update.
6266         * dwarf2/read.c (new_symbol): Update.
6268 2020-04-24  Tom Tromey  <tromey@adacore.com>
6270         PR python/23662:
6271         * python/py-type.c (convert_field): Handle
6272         FIELD_LOC_KIND_DWARF_BLOCK.
6273         (typy_get_sizeof): Handle TYPE_HAS_DYNAMIC_LENGTH.
6274         (typy_get_dynamic): Nw function.
6275         (type_object_getset): Add "dynamic".
6276         * NEWS: Add entry.
6278 2020-04-24  Tom Tromey  <tromey@adacore.com>
6280         * ada-typeprint.c (print_choices, print_variant_part)
6281         (print_record_field_types_dynamic): New functions.
6282         (print_record_field_types): Use print_record_field_types_dynamic.
6284 2020-04-24  Tom Tromey  <tromey@adacore.com>
6286         * dwarf2/read.c (handle_data_member_location): New overload.
6287         (dwarf2_add_field): Use it.
6288         (decode_locdesc): Add "computed" parameter.  Update comment.
6289         * gdbtypes.c (is_dynamic_type_internal): Also look for
6290         FIELD_LOC_KIND_DWARF_BLOCK.
6291         (resolve_dynamic_struct): Handle FIELD_LOC_KIND_DWARF_BLOCK.
6292         * gdbtypes.c (is_dynamic_type_internal): Add special case for C++
6293         virtual base classes.
6294         * gnu-v3-abi.c (gnuv3_baseclass_offset): Handle
6295         FIELD_LOC_KIND_DWARF_BLOCK.
6297 2020-04-24  Tom Tromey  <tromey@adacore.com>
6299         * dwarf2/read.c (read_structure_type): Handle dynamic length.
6300         * gdbtypes.c (is_dynamic_type_internal): Check
6301         TYPE_HAS_DYNAMIC_LENGTH.
6302         (resolve_dynamic_type_internal): Use TYPE_DYNAMIC_LENGTH.
6303         * gdbtypes.h (TYPE_HAS_DYNAMIC_LENGTH, TYPE_DYNAMIC_LENGTH):
6304         New macros.
6305         (enum dynamic_prop_node_kind) <DYN_PROP_BYTE_SIZE>: New
6306         constant.
6308 2020-04-24  Tom Tromey  <tromey@adacore.com>
6310         * dwarf2/read.c (struct variant_field): Rewrite.
6311         (struct variant_part_builder): New.
6312         (struct nextfield): Remove "variant" field.  Add "offset".
6313         (struct field_info): Add "current_variant_part" and
6314         "variant_parts".
6315         (alloc_discriminant_info): Remove.
6316         (alloc_rust_variant): New function.
6317         (quirk_rust_enum): Update.
6318         (dwarf2_add_field): Set "offset" member.  Don't handle
6319         DW_TAG_variant_part.
6320         (offset_map_type): New typedef.
6321         (convert_variant_range, create_one_variant)
6322         (create_one_variant_part, create_variant_parts)
6323         (add_variant_property): New functions.
6324         (dwarf2_attach_fields_to_type): Call add_variant_property.
6325         (read_structure_type): Don't handle DW_TAG_variant_part.
6326         (handle_variant_part, handle_variant): New functions.
6327         (handle_struct_member_die): Use them.
6328         (process_structure_scope): Don't handle variant parts.
6329         * gdbtypes.h (TYPE_FLAG_DISCRIMINATED_UNION): Remove.
6330         (struct discriminant_info): Remove.
6331         (enum dynamic_prop_node_kind) <DYN_PROP_DISCRIMINATED>: Remove.
6332         (struct main_type) <flag_discriminated_union>: Remove.
6333         * rust-lang.c (rust_enum_p, rust_empty_enum_p): Rewrite.
6334         (rust_enum_variant): Return int.  Remove "contents".  Rewrite.
6335         (rust_print_enum, rust_print_struct_def, rust_evaluate_subexp):
6336         Update.
6337         * valops.c (value_union_variant): Remove.
6338         * value.h (value_union_variant): Don't declare.
6340 2020-04-24  Tom Tromey  <tromey@adacore.com>
6342         * ada-lang.c (ada_discrete_type_high_bound, ada_discrete_type_low)
6343         (ada_value_primitive_packed_val): Update.
6344         * ada-valprint.c (ada_value_print_1): Update.
6345         * dwarf2/loc.c (evaluate_for_locexpr_baton): New struct.
6346         (dwarf2_locexpr_baton_eval): Take a property_addr_info rather than
6347         just an address.  Use evaluate_for_locexpr_baton.
6348         (dwarf2_evaluate_property): Update.
6349         * dwarf2/loc.h (struct property_addr_info) <valaddr>: Now an
6350         array_view.
6351         * findvar.c (default_read_var_value): Update.
6352         * gdbtypes.c (compute_variant_fields_inner)
6353         (resolve_dynamic_type_internal): Update.
6354         (resolve_dynamic_type): Change type of valaddr parameter.
6355         * gdbtypes.h (resolve_dynamic_type): Update.
6356         * valarith.c (value_subscripted_rvalue): Update.
6357         * value.c (value_from_contents_and_address): Update.
6359 2020-04-24  Tom Tromey  <tromey@adacore.com>
6361         * dwarf2/loc.c (dwarf2_locexpr_baton_eval): Add
6362         "push_initial_value" parameter.
6363         (dwarf2_evaluate_property): Likewise.
6364         * dwarf2/loc.h (dwarf2_evaluate_property): Update.
6366 2020-04-24  Tom Tromey  <tromey@adacore.com>
6368         * gdbtypes.c (is_dynamic_type_internal): Check for variant parts.
6369         (variant::matches, compute_variant_fields_recurse)
6370         (compute_variant_fields_inner, compute_variant_fields): New
6371         functions.
6372         (resolve_dynamic_struct): Check for DYN_PROP_VARIANT_PARTS.
6373         Use resolved_type after type is made.
6374         (operator==): Add new cases.
6375         * gdbtypes.h (TYPE_HAS_VARIANT_PARTS): New macro.
6376         (struct discriminant_range, struct variant, struct variant_part):
6377         New.
6378         (union dynamic_prop_data) <variant_parts, original_type>: New
6379         members.
6380         (enum dynamic_prop_node_kind) <DYN_PROP_VARIANT_PARTS>: New constant.
6381         (enum dynamic_prop_kind) <PROP_TYPE, PROP_VARIANT_PARTS>: New
6382         constants.
6383         * value.c (unpack_bits_as_long): Now public.
6384         * value.h (unpack_bits_as_long): Declare.
6386 2020-04-24  Tom Tromey  <tromey@adacore.com>
6388         * rs6000-tdep.c (struct ppc_variant): Rename from "variant".
6389         (variants, find_variant_by_arch, rs6000_gdbarch_init): Update.
6391 2020-04-24  Hannes Domani  <ssbssa@yahoo.de>
6393         * windows-tdep.c (exception_values): Add WOW64 exception numbers.
6395 2020-04-24  Kamil Rytarowski  <n54@gmx.com>
6397         * inf-ptrace.h (follow_fork, insert_fork_catchpoint)
6398         (remove_fork_catchpoint, post_startup_inferior)
6399         (post_attach): Move...
6400         * obsd-nat.h (follow_fork, insert_fork_catchpoint)
6401         (remove_fork_catchpoint, post_startup_inferior)
6402         (post_attach): ...here.
6403         * inf-ptrace.c (follow_fork, insert_fork_catchpoint)
6404         (remove_fork_catchpoint, post_startup_inferior)
6405         (post_attach): Move...
6406         * obsd-nat.c (follow_fork, insert_fork_catchpoint)
6407         (remove_fork_catchpoint, post_startup_inferior)
6408         (post_attach): ...here.
6410 2020-04-24  Tom Tromey  <tromey@adacore.com>
6412         * nat/windows-nat.h (struct windows_thread_info)
6413         <pc_adjusted>: New member.
6414         * windows-nat.c (windows_fetch_one_register): Check
6415         pc_adjusted.
6416         (windows_nat_target::get_windows_debug_event)
6417         (windows_nat_target::wait): Set pc_adjusted.
6419 2020-04-24  Tom de Vries  <tdevries@suse.de>
6421         * contrib/cc-with-tweaks.sh: Remove <exec>.gdb-index file handling.
6422         Run gdb-add-index inside temp dir.
6424 2020-04-23  Tom Tromey  <tromey@adacore.com>
6426         * windows-tdep.c (is_linked_with_cygwin_dll): Always update "iter"
6427         in loop.
6429 2020-04-23  Luis Machado  <luis.machado@linaro.org>
6431         * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first): Use
6432         get_frame_register instead of gdbarch_unwind_pc.
6434 2020-04-23  Tom de Vries  <tdevries@suse.de>
6436         * symtab.c (lookup_global_symbol): Prefer def over decl.
6438 2020-04-23  Tom de Vries  <tdevries@suse.de>
6440         PR symtab/25807
6441         * block.c (best_symbol, better_symbol): Promote to external.
6442         * block.h (best_symbol, better_symbol): Declare.
6443         * symtab.c (lookup_symbol_in_objfile_symtabs): Prefer def over
6444         decl.
6446 2020-04-23  Tom Tromey  <tromey@adacore.com>
6448         PR ada/25837:
6449         * dwarf2/read.c (dw2_expand_symtabs_matching_symbol): Store a
6450         "const char *", not a "const std::string &".
6451         <name_and_matcher::operator==>: Update.
6452         * unittests/lookup_name_info-selftests.c: Change type of
6453         "result".
6455 2020-04-23  Tom Tromey  <tom@tromey.com>
6457         * inferior.h (iterate_over_inferiors): Don't declare.
6458         * inferior.c (iterate_over_inferiors): Remove.
6459         * darwin-nat.c (find_inferior_task_it, find_inferior_pid_it):
6460         Remove.
6461         (darwin_find_inferior_by_task, darwin_find_inferior_by_pid): Don't
6462         use iterate_over_inferiors.
6463         (darwin_resume_inferior_it)
6464         (struct resume_inferior_threads_param)
6465         (darwin_resume_inferior_threads_it): Remove.
6466         (darwin_nat_target::resume): Don't use iterate_over_inferiors.
6468 2020-04-23  Tom de Vries  <tdevries@suse.de>
6470         * blockframe.c (find_pc_partial_function): Use
6471         find_pc_sect_compunit_symtab rather than
6472         objfile->sf->qf->find_pc_sect_compunit_symtab.
6474 2020-04-22  Tom de Vries  <tdevries@suse.de>
6476         PR symtab/25764
6477         * dwarf2/read.c (scan_partial_symbols): Allow external variable decls
6478         in psymtabs.
6480 2020-04-22  Tom de Vries  <tdevries@suse.de>
6482         PR symtab/25801
6483         * psymtab.c (psym_map_symtabs_matching_filename): Don't skip shared
6484         symtabs.
6486 2020-04-22  Tom de Vries  <tdevries@suse.de>
6488         PR symtab/25700
6489         * dwarf2/read.c (dwarf2_build_psymtabs_hard): Don't create psymtab for
6490         CU if already created.
6492 2020-04-21  Tankut Baris Aktemur  <tankut.baris.aktemur@intel.com>
6494         * infrun.c (displaced_step_fixup): Switch to the event_thread
6495         before calling displaced_step_restore, not after.
6497 2020-04-21  Markus Metzger  <markus.t.metzger@intel.com>
6499         * record-btrace.c (record_btrace_enable_warn): Ignore thread if
6500         its inferior is not recorded by us.
6501         (record_btrace_target_open): Replace call to
6502         all_non_exited_threads () with call to current_inferior
6503         ()->non_exited_threads ().
6504         (record_btrace_target::stop_recording): Likewise.
6505         (record_btrace_target::close): Likewise.
6506         (record_btrace_target::wait): Likewise.
6507         (record_btrace_target::record_stop_replaying): Likewise.
6509 2020-04-21  Markus Metzger  <markus.t.metzger@intel.com>
6511         * btrace.c (btrace_enable): Throw an error on double enables and
6512         when enabling recording fails.
6513         (btrace_disable): Throw an error if the thread is not recorded.
6515 2020-04-21  Markus Metzger  <markus.t.metzger@intel.com>
6517         * record-btrace.c (record_btrace_target::fetch_registers): Forward
6518         request if we do not have a thread_info.
6520 2020-04-21  Tom de Vries  <tdevries@suse.de>
6522         PR gdb/25471
6523         * thread.c
6524         (scoped_restore_current_thread::scoped_restore_current_thread): Catch
6525         exception in get_frame_id.
6527 2020-04-20  Tom Tromey  <tromey@adacore.com>
6529         * python/python.c (struct gdbpy_event): Mark move constructor as
6530         noexcept.
6531         * python/py-tui.c (class gdbpy_tui_window_maker): Mark move
6532         constructor as noexcept.
6533         * completer.h (struct completion_result): Mark move constructor as
6534         noexcept.
6535         * completer.c (completion_result::completion_result): Use
6536         initialization style.  Don't call reset_match_list.
6538 2020-04-20  Mihails Strasuns  <mihails.strasuns@intel.com>
6540         * MAINTAINERS (Write After Approval): Add myself.
6542 2020-04-18  Tom Tromey  <tom@tromey.com>
6544         * windows-tdep.c (init_w32_command_list)
6545         (w32_prefix_command_valid): Restore.
6546         (_initialize_windows_tdep): Call init_w32_command_list.
6548 2020-04-18  Tom Tromey  <tom@tromey.com>
6550         * xcoffread.c (enter_line_range, scan_xcoff_symtab): Update.
6551         * value.c (value_fn_field): Update.
6552         * valops.c (find_function_in_inferior)
6553         (value_allocate_space_in_inferior): Update.
6554         * tui/tui-winsource.c (tui_update_source_windows_with_line):
6555         Update.
6556         * tui/tui-source.c (tui_source_window::set_contents): Update.
6557         * symtab.c (lookup_global_or_static_symbol)
6558         (find_function_start_sal_1, skip_prologue_sal)
6559         (print_msymbol_info, find_gnu_ifunc, symbol_arch): Update.
6560         * symmisc.c (dump_msymbols, dump_symtab_1)
6561         (maintenance_print_one_line_table): Update.
6562         * symfile.c (init_entry_point_info, section_is_mapped)
6563         (list_overlays_command, simple_read_overlay_table)
6564         (simple_overlay_update_1): Update.
6565         * stap-probe.c (handle_stap_probe): Update.
6566         * stabsread.c (dbx_init_float_type, define_symbol)
6567         (read_one_struct_field, read_enum_type, read_range_type): Update.
6568         * source.c (info_line_command): Update.
6569         * python/python.c (gdbpy_source_objfile_script)
6570         (gdbpy_execute_objfile_script): Update.
6571         * python/py-type.c (save_objfile_types): Update.
6572         * python/py-objfile.c (py_free_objfile): Update.
6573         * python/py-inferior.c (python_new_objfile): Update.
6574         * psymtab.c (psym_find_pc_sect_compunit_symtab, dump_psymtab)
6575         (dump_psymtab_addrmap_1, maintenance_info_psymtabs)
6576         (maintenance_check_psymtabs): Update.
6577         * printcmd.c (info_address_command): Update.
6578         * objfiles.h (struct objfile) <arch>: New method, from
6579         get_objfile_arch.
6580         (get_objfile_arch): Don't declare.
6581         * objfiles.c (get_objfile_arch): Remove.
6582         (filter_overlapping_sections): Update.
6583         * minsyms.c (msymbol_is_function): Update.
6584         * mi/mi-symbol-cmds.c (mi_cmd_symbol_list_lines)
6585         (output_nondebug_symbol): Update.
6586         * mdebugread.c (parse_symbol, basic_type, parse_partial_symbols)
6587         (mdebug_expand_psymtab): Update.
6588         * machoread.c (macho_add_oso_symfile): Update.
6589         * linux-tdep.c (linux_infcall_mmap, linux_infcall_munmap):
6590         Update.
6591         * linux-fork.c (checkpoint_command): Update.
6592         * linespec.c (convert_linespec_to_sals): Update.
6593         * jit.c (finalize_symtab): Update.
6594         * infrun.c (insert_exception_resume_from_probe): Update.
6595         * ia64-tdep.c (ia64_find_unwind_table): Update.
6596         * hppa-tdep.c (internalize_unwinds): Update.
6597         * gdbtypes.c (get_type_arch, init_float_type, objfile_type):
6598         Update.
6599         * gcore.c (call_target_sbrk): Update.
6600         * elfread.c (record_minimal_symbol, elf_symtab_read)
6601         (elf_rel_plt_read, elf_gnu_ifunc_record_cache)
6602         (elf_gnu_ifunc_resolve_by_got): Update.
6603         * dwarf2/read.c (create_addrmap_from_index)
6604         (create_addrmap_from_aranges, dw2_find_pc_sect_compunit_symtab)
6605         (read_debug_names_from_section)
6606         (process_psymtab_comp_unit_reader, add_partial_symbol)
6607         (add_partial_subprogram, process_full_comp_unit)
6608         (read_file_scope, read_func_scope, read_lexical_block_scope)
6609         (read_call_site_scope, dwarf2_ranges_read)
6610         (dwarf2_record_block_ranges, dwarf2_add_field)
6611         (mark_common_block_symbol_computed, read_tag_pointer_type)
6612         (read_tag_string_type, dwarf2_init_float_type)
6613         (dwarf2_init_complex_target_type, read_base_type)
6614         (partial_die_info::read, partial_die_info::read)
6615         (read_attribute_value, dwarf_decode_lines_1, new_symbol)
6616         (dwarf2_fetch_die_loc_sect_off): Update.
6617         * dwarf2/loc.c (dwarf2_find_location_expression)
6618         (class dwarf_evaluate_loc_desc, rw_pieced_value)
6619         (dwarf2_evaluate_loc_desc_full, dwarf2_locexpr_baton_eval)
6620         (dwarf2_loc_desc_get_symbol_read_needs)
6621         (locexpr_describe_location_piece, locexpr_describe_location_1)
6622         (loclist_describe_location): Update.
6623         * dwarf2/index-write.c (write_debug_names): Update.
6624         * dwarf2/frame.c (dwarf2_build_frame_info): Update.
6625         * dtrace-probe.c (dtrace_process_dof): Update.
6626         * dbxread.c (read_dbx_symtab, dbx_end_psymtab)
6627         (process_one_symbol): Update.
6628         * ctfread.c (ctf_init_float_type, read_base_type): Update.
6629         * coffread.c (coff_symtab_read, enter_linenos, decode_base_type)
6630         (coff_read_enum_type): Update.
6631         * cli/cli-cmds.c (edit_command, list_command): Update.
6632         * buildsym.c (buildsym_compunit::finish_block_internal): Update.
6633         * breakpoint.c (create_overlay_event_breakpoint)
6634         (create_longjmp_master_breakpoint)
6635         (create_std_terminate_master_breakpoint)
6636         (create_exception_master_breakpoint, get_sal_arch): Update.
6637         * block.c (block_gdbarch): Update.
6638         * annotate.c (annotate_source_line): Update.
6640 2020-04-17  Tom Tromey  <tromey@adacore.com>
6642         * auto-load.c (show_auto_load_cmd): Remove.
6643         (auto_load_show_cmdlist_get): Use add_show_prefix_cmd.
6644         * arc-tdep.c (_initialize_arc_tdep): Use add_show_prefix_cmd.
6645         (maintenance_print_arc_command): Remove.
6646         * tui/tui-win.c (tui_command): Remove.
6647         (tui_get_cmd_list): Use add_basic_prefix_cmd.
6648         * tui/tui-layout.c (tui_layout_command): Remove.
6649         (_initialize_tui_layout): Use add_basic_prefix_cmd.
6650         * python/python.c (user_set_python, user_show_python): Remove.
6651         (_initialize_python): Use add_basic_prefix_cmd,
6652         add_show_prefix_cmd.
6653         * guile/guile.c (set_guile_command, show_guile_command): Remove.
6654         (install_gdb_commands): Use add_basic_prefix_cmd,
6655         add_show_prefix_cmd.
6656         (info_guile_command): Remove.
6657         * dwarf2/read.c (set_dwarf_cmd, show_dwarf_cmd): Remove.
6658         (_initialize_dwarf2_read): Use add_basic_prefix_cmd,
6659         add_show_prefix_cmd.
6660         * cli/cli-style.h (class cli_style_option) <add_setshow_commands>:
6661         Remove do_set and do_show parameters.
6662         * cli/cli-style.c (set_style, show_style): Remove.
6663         (_initialize_cli_style): Use add_basic_prefix_cmd,
6664         add_show_prefix_cmd.
6665         (cli_style_option::add_setshow_commands): Remove do_set and
6666         do_show parameters.
6667         (cli_style_option::add_setshow_commands): Use
6668         add_basic_prefix_cmd, add_show_prefix_cmd.
6669         (STYLE_ADD_SETSHOW_COMMANDS): Remove macro.
6670         (set_style_name): Remove.
6671         * cli/cli-dump.c (dump_command, append_command): Remove.
6672         (srec_dump_command, ihex_dump_command, verilog_dump_command)
6673         (tekhex_dump_command, binary_dump_command)
6674         (binary_append_command): Remove.
6675         (_initialize_cli_dump): Use add_basic_prefix_cmd.
6676         * windows-tdep.c (w32_prefix_command_valid): Remove global.
6677         (init_w32_command_list): Remove; move into ...
6678         (_initialize_windows_tdep): ... here.  Use add_basic_prefix_cmd.
6679         * valprint.c (set_print, show_print, set_print_raw)
6680         (show_print_raw): Remove.
6681         (_initialize_valprint): Use add_basic_prefix_cmd,
6682         add_show_prefix_cmd.
6683         * typeprint.c (set_print_type, show_print_type): Remove.
6684         (_initialize_typeprint): Use add_basic_prefix_cmd,
6685         add_show_prefix_cmd.
6686         * record.c (set_record_command, show_record_command): Remove.
6687         (_initialize_record): Use add_basic_prefix_cmd,
6688         add_show_prefix_cmd.
6689         * cli/cli-cmds.c (_initialize_cli_cmds): Use add_basic_prefix_cmd,
6690         add_show_prefix_cmd.
6691         (info_command, show_command, set_debug, show_debug): Remove.
6692         * top.h (set_history, show_history): Don't declare.
6693         * top.c (set_history, show_history): Remove.
6694         * target-descriptions.c (set_tdesc_cmd, show_tdesc_cmd)
6695         (unset_tdesc_cmd): Remove.
6696         (_initialize_target_descriptions): Use add_basic_prefix_cmd,
6697         add_show_prefix_cmd.
6698         * symtab.c (info_module_command): Remove.
6699         (_initialize_symtab): Use add_basic_prefix_cmd.
6700         * symfile.c (overlay_command): Remove.
6701         (_initialize_symfile): Use add_basic_prefix_cmd.
6702         * sparc64-tdep.c (info_adi_command): Remove.
6703         (_initialize_sparc64_adi_tdep): Use add_basic_prefix_cmd.
6704         * sh-tdep.c (show_sh_command, set_sh_command): Remove.
6705         (_initialize_sh_tdep): Use add_basic_prefix_cmd,
6706         add_show_prefix_cmd.
6707         * serial.c (serial_set_cmd, serial_show_cmd): Remove.
6708         (_initialize_serial): Use add_basic_prefix_cmd,
6709         add_show_prefix_cmd.
6710         * ser-tcp.c (set_tcp_cmd, show_tcp_cmd): Remove.
6711         (_initialize_ser_tcp): Use add_basic_prefix_cmd,
6712         add_show_prefix_cmd.
6713         * rs6000-tdep.c (set_powerpc_command, show_powerpc_command)
6714         (_initialize_rs6000_tdep): Use add_basic_prefix_cmd,
6715         add_show_prefix_cmd.
6716         * riscv-tdep.c (show_riscv_command, set_riscv_command)
6717         (show_debug_riscv_command, set_debug_riscv_command): Remove.
6718         (_initialize_riscv_tdep): Use add_basic_prefix_cmd,
6719         add_show_prefix_cmd.
6720         * remote.c (remote_command, set_remote_cmd): Remove.
6721         (_initialize_remote): Use add_basic_prefix_cmd.
6722         * record-full.c (set_record_full_command)
6723         (show_record_full_command): Remove.
6724         (_initialize_record_full): Use add_basic_prefix_cmd,
6725         add_show_prefix_cmd.
6726         * record-btrace.c (cmd_set_record_btrace)
6727         (cmd_show_record_btrace, cmd_set_record_btrace_bts)
6728         (cmd_show_record_btrace_bts, cmd_set_record_btrace_pt)
6729         (cmd_show_record_btrace_pt): Remove.
6730         (_initialize_record_btrace): Use add_basic_prefix_cmd,
6731         add_show_prefix_cmd.
6732         * ravenscar-thread.c (set_ravenscar_command)
6733         (show_ravenscar_command): Remove.
6734         (_initialize_ravenscar): Use add_basic_prefix_cmd,
6735         add_show_prefix_cmd.
6736         * mips-tdep.c (show_mips_command, set_mips_command)
6737         (_initialize_mips_tdep): Use add_basic_prefix_cmd,
6738         add_show_prefix_cmd.
6739         * maint.c (maintenance_command, maintenance_info_command)
6740         (maintenance_check_command, maintenance_print_command)
6741         (maintenance_set_cmd, maintenance_show_cmd): Remove.
6742         (_initialize_maint_cmds): Use add_basic_prefix_cmd,
6743         add_show_prefix_cmd.
6744         (show_per_command_cmd): Remove.
6745         * maint-test-settings.c (maintenance_set_test_settings_cmd):
6746         Remove.
6747         (maintenance_show_test_settings_cmd): Remove.
6748         (_initialize_maint_test_settings): Use add_basic_prefix_cmd,
6749         add_show_prefix_cmd.
6750         * maint-test-options.c (maintenance_test_options_command):
6751         Remove.
6752         (_initialize_maint_test_options): Use add_basic_prefix_cmd.
6753         * macrocmd.c (macro_command): Remove
6754         (_initialize_macrocmd): Use add_basic_prefix_cmd.
6755         * language.c (set_check, show_check): Remove.
6756         (_initialize_language): Use add_basic_prefix_cmd,
6757         add_show_prefix_cmd.
6758         * infcmd.c (unset_command): Remove.
6759         (_initialize_infcmd): Use add_basic_prefix_cmd.
6760         * i386-tdep.c (set_mpx_cmd, show_mpx_cmd): Remove.
6761         (_initialize_i386_tdep): Use add_basic_prefix_cmd,
6762         add_show_prefix_cmd.
6763         * go32-nat.c (go32_info_dos_command): Remove.
6764         (_initialize_go32_nat): Use add_basic_prefix_cmd.
6765         * cli/cli-decode.c (do_prefix_cmd, add_basic_prefix_cmd)
6766         (do_show_prefix_cmd, add_show_prefix_cmd): New functions.
6767         * frame.c (set_backtrace_cmd, show_backtrace_cmd): Remove.
6768         (_initialize_frame): Use add_basic_prefix_cmd,
6769         add_show_prefix_cmd.
6770         * dcache.c (set_dcache_command, show_dcache_command): Remove.
6771         (_initialize_dcache): Use add_basic_prefix_cmd,
6772         add_show_prefix_cmd.
6773         * cp-support.c (maint_cplus_command): Remove.
6774         (_initialize_cp_support): Use add_basic_prefix_cmd.
6775         * btrace.c (maint_btrace_cmd, maint_btrace_set_cmd)
6776         (maint_btrace_show_cmd, maint_btrace_pt_set_cmd)
6777         (maint_btrace_pt_show_cmd, _initialize_btrace): Use
6778         add_basic_prefix_cmd, add_show_prefix_cmd.
6779         * breakpoint.c (save_command): Remove.
6780         (_initialize_breakpoint): Use add_basic_prefix_cmd.
6781         * arm-tdep.c (set_arm_command, show_arm_command): Remove.
6782         (_initialize_arm_tdep): Use add_basic_prefix_cmd,
6783         add_show_prefix_cmd.
6784         * ada-lang.c (maint_set_ada_cmd, maint_show_ada_cmd)
6785         (set_ada_command, show_ada_command): Remove.
6786         (_initialize_ada_language): Use add_basic_prefix_cmd,
6787         add_show_prefix_cmd.
6788         * command.h (add_basic_prefix_cmd, add_show_prefix_cmd): Declare.
6790 2020-04-16  Kamil Rytarowski  <n54@gmx.com>
6792         * nbsd-nat.c (inf_ptrace_target::auxv_parse): Remove.
6793         * nbsd-nat.h (inf_ptrace_target::auxv_parse): Likewise.
6795 2020-04-16  Simon Marchi  <simon.marchi@polymtl.ca>
6797         * windows-tdep.c (is_linked_with_cygwin_dll): Add filename to
6798         warning messages.
6800 2020-04-16  Simon Marchi  <simon.marchi@polymtl.ca>
6802         * windows-tdep.c (is_linked_with_cygwin_dll): Consider case where
6803         import table is not at beginning of .idata section.
6805 2020-04-16  Pedro Alves  <palves@redhat.com>
6807         * inferior.c (delete_inferior): Use delete operator directly
6808         instead of delete_program_space.
6809         * progspace.c (add_program_space): New, factored out from
6810         program_space::program_space.
6811         (remove_program_space): New, factored out from
6812         delete_program_space.
6813         (program_space::program_space): Remove intro comment.  Rewrite.
6814         (program_space::~program_space): Remove intro comment.  Call
6815         remove_program_space.
6816         (delete_program_space): Delete.
6817         * progspace.h (program_space::program_space): Make explicit.  Move
6818         intro comment here, adjusted.
6819         (program_space::~program_space): Move intro comment here,
6820         adjusted.
6821         (delete_program_space): Remove.
6823 2020-04-16  Tom Tromey  <tromey@adacore.com>
6825         * windows-nat.c (windows_nat::handle_access_violation): New
6826         function.
6827         * nat/windows-nat.h (handle_access_violation): Declare.
6828         * nat/windows-nat.c (handle_exception): Move Cygwin code to
6829         windows-nat.c.  Call handle_access_violation.
6831 2020-04-16  Tom de Vries  <tdevries@suse.de>
6833         PR symtab/25791
6834         * dwarf2/index-write.c (write_gdbindex): Generate CU table entries for
6835         CUs without psymtab.
6837 2020-04-16  Kevin Buettner  <kevinb@redhat.com>
6839         * python/python.c (do_start_initialization): Don't call
6840         PyEval_InitThreads for Python 3.9 and beyond.
6842 2020-04-15  Kamil Rytarowski  <n54@gmx.com>
6844         * obsd-nat.c (obsd_nat_target::update_thread_list): Pass "this" to
6845         thread functions.
6846         (obsd_nat_target::wait): Likewise.
6848 2020-04-15  Tom Tromey  <tromey@adacore.com>
6850         * windows-nat.c (DEBUG_EXEC, DEBUG_EVENTS, DEBUG_MEM)
6851         (DEBUG_EXCEPT): Use debug_printf.
6853 2020-04-15  Andrew Burgess  <andrew.burgess@embecosm.com>
6855         * completer.c (class completion_tracker::completion_hash_entry)
6856         <hash_name>: New member function.
6857         (completion_tracker::discard_completions): New callback to hash a
6858         completion_hash_entry, pass this to htab_create_alloc.
6860 2016-01-20  Jon Turney  <jon.turney@dronecode.org.uk>
6862         * windows-nat.c (windows_make_so): Warn rather than stopping with
6863         an error if realpath() fails.
6865 2020-04-14  Kamil Rytarowski  <n54@gmx.com>
6867         * nbsd-nat.c (nbsd_pid_to_kinfo_proc2): New.
6868         (nbsd_nat_target::info_proc): Add do_status.
6870 2020-04-14  Simon Marchi  <simon.marchi@polymtl.ca>
6871             Tom de Vries  <tdevries@suse.de>
6873         PR symtab/25718
6874         * psympriv.h (struct partial_symtab::read_symtab)
6875         (struct partial_symtab::expand_psymtab)
6876         (struct partial_symtab::read_dependencies): Update comments.
6877         * dwarf2/read.c (struct dwarf2_include_psymtab::read_symtab): Call
6878         read_symtab for includer.
6879         (struct dwarf2_include_psymtab::expand_psymtab): Assert false.
6880         (struct dwarf2_include_psymtab::readin_p): Call readin_p () for includer.
6881         (struct dwarf2_include_psymtab::m_readin): Remove.
6882         (struct dwarf2_include_psymtab::includer): New member function.
6883         (dwarf2_psymtab::expand_psymtab): Assert !readin.
6885 2020-04-14  Tom de Vries  <tdevries@suse.de>
6887         PR symtab/25720
6888         * symmisc.c (maintenance_expand_symtabs): Call expand_symtabs_matching
6889         with NULL symbol_matcher and lookup_name.
6890         * psymtab.c (psym_expand_symtabs_matching): Handle NULL symbol_matcher
6891         and lookup_name.
6892         * dwarf2/read.c (dw2_expand_symtabs_matching)
6893         (dw2_debug_names_expand_symtabs_matching): Same.
6894         * symfile.h (struct quick_symbol_functions::expand_symtabs_matching):
6895         Make lookup_name a pointer.  Update comment.
6896         * symtab.c (global_symbol_searcher::expand_symtabs): Handle
6897         lookup_name being a pointer.
6898         * symfile.c (expand_symtabs_matching): Same.
6899         * symfile-debug.c (debug_qf_expand_symtabs_matching): Same.
6900         * linespec.c (iterate_over_all_matching_symtabs): Same.
6902 2020-04-13  Tom Tromey  <tom@tromey.com>
6904         * run-on-main-thread.c: Update include.
6905         * unittests/main-thread-selftests.c: Update include.
6906         * tui/tui-win.c: Update include.
6907         * tui/tui-io.c: Update include.
6908         * tui/tui-interp.c: Update include.
6909         * tui/tui-hooks.c: Update include.
6910         * top.h: Update include.
6911         * top.c: Update include.
6912         * ser-base.c: Update include.
6913         * remote.c: Update include.
6914         * remote-notif.c: Update include.
6915         * remote-fileio.c: Update include.
6916         * record-full.c: Update include.
6917         * record-btrace.c: Update include.
6918         * python/python.c: Update include.
6919         * posix-hdep.c: Update include.
6920         * mingw-hdep.c: Update include.
6921         * mi/mi-main.c: Update include.
6922         * mi/mi-interp.c: Update include.
6923         * main.c: Update include.
6924         * linux-nat.c: Update include.
6925         * interps.c: Update include.
6926         * infrun.c: Update include.
6927         * inf-loop.c: Update include.
6928         * event-top.c: Update include.
6929         * event-loop.c: Move to ../gdbsupport/.
6930         * event-loop.h: Move to ../gdbsupport/.
6931         * async-event.h: Update include.
6932         * Makefile.in (COMMON_SFILES, HFILES_NO_SRCDIR): Update.
6934 2020-04-13  Tom Tromey  <tom@tromey.com>
6936         * tui/tui-win.c: Include async-event.h.
6937         * remote.c: Include async-event.h.
6938         * remote-notif.c: Include async-event.h.
6939         * record-full.c: Include async-event.h.
6940         * record-btrace.c: Include async-event.h.
6941         * infrun.c: Include async-event.h.
6942         * event-top.c: Include async-event.h.
6943         * event-loop.h: Move some declarations to async-event.h.
6944         * event-loop.c: Don't include ser-event.h or top.h.  Move some
6945         code to async-event.c.
6946         * async-event.h: New file.
6947         * async-event.c: New file.
6948         * Makefile.in (COMMON_SFILES): Add async-event.c.
6949         (HFILES_NO_SRCDIR): Add async-event.h.
6951 2020-04-13  Tom Tromey  <tom@tromey.com>
6953         * utils.c (flush_streams): New function.
6954         * event-loop.c (gdb_wait_for_event): Call flush_streams.
6956 2020-04-13  Tom Tromey  <tom@tromey.com>
6958         * event-loop.c (handle_file_event): Use warning, not
6959         printf_unfiltered.
6961 2020-04-13  Tom Tromey  <tom@tromey.com>
6963         * event-loop.c: Include <chrono>.
6965 2020-04-13  Tom Tromey  <tom@tromey.com>
6967         * gdb_select.h: Move to ../gdbsupport/.
6968         * event-loop.c: Update include path.
6969         * top.c: Update include path.
6970         * ser-base.c: Update include path.
6971         * ui-file.c: Update include path.
6972         * ser-tcp.c: Update include path.
6973         * guile/scm-ports.c: Update include path.
6974         * posix-hdep.c: Update include path.
6975         * ser-unix.c: Update include path.
6976         * gdb_usleep.c: Update include path.
6977         * mingw-hdep.c: Update include path.
6978         * inflow.c: Update include path.
6979         * infrun.c: Update include path.
6980         * event-top.c: Update include path.
6982 2020-04-13  Tom Tromey  <tom@tromey.com>
6984         * configure: Rebuild.
6985         * configure.ac: Remove checks that are now in GDB_AC_COMMON.
6987 2020-04-13  Tom Tromey  <tom@tromey.com>
6989         * event-loop.h (start_event_loop): Don't declare.
6990         * event-loop.c (start_event_loop): Move...
6991         * main.c (start_event_loop): ...here.  Now static.
6993 2020-04-13  Sergio Durigan Junior  <sergiodj@sergiodj.net>
6995         * MAINTAINERS: Update my email address.
6997 2020-04-12  Kamil Rytarowski  <n54@gmx.com>
6999         * nbsd-nat.c (nbsd_nat_target::info_proc): Add IP_MINIMAL and
7000         IP_ALL.
7002 2020-04-12  Kamil Rytarowski  <n54@gmx.com>
7004         * nbsd-nat.c (nbsd_pid_to_cmdline): Add.
7005         (nbsd_nat_target::info_proc): Add do_cmdline.
7007 2020-04-12  Kamil Rytarowski  <n54@gmx.com>
7009         * nbsd-nat.c (nbsd_pid_to_cwd): Add.
7010         (nbsd_nat_target::info_proc): Add do_cwd.
7012 2020-04-12  Kamil Rytarowski  <n54@gmx.com>
7014         * nbsd-nat.c (nbsd_nat_target::info_proc): Add do_exe.
7016 2020-04-11  Kamil Rytarowski  <n54@gmx.com>
7018         * nbsd-nat.c; Include "nbsd-tdep.h" and "gdbarch.h".
7019         * nbsd-nat.c (nbsd_nat_target::find_memory_regions)
7020         (nbsd_nat_target::info_proc): New functions.
7021         * nbsd-nat.c (kinfo_get_vmmap): New function.
7022         * nbsd-nat.c (nbsd_nat_target::info_proc) Use
7023         nbsd_info_proc_mappings_header and nbsd_info_proc_mappings_entry.
7024         * nbsd-tdep.c (nbsd_info_proc_mappings_header)
7025         (nbsd_info_proc_mappings_entry, nbsd_vm_map_entry_flags): New
7026         functions.
7027         * nbsd-tdep.c (KINFO_VME_PROT_READ, KINFO_VME_PROT_WRITE)
7028         (KINFO_VME_PROT_EXEC, KINFO_VME_FLAG_COW)
7029         (KINFO_VME_FLAG_NEEDS_COPY, KINFO_VME_FLAG_NOCOREDUMP)
7030         (KINFO_VME_FLAG_PAGEABLE, KINFO_VME_FLAG_GROWS_UP)
7031         (KINFO_VME_FLAG_GROWS_DOWN): New.
7033 2020-04-10  Artur Shepilko  <nomadbyte@gmail.com>
7035         * utils.c (copy_bitwise): Use unsigned 0 constant as operand of
7036         bit shift.
7038 2020-04-10  Tom Tromey  <tromey@adacore.com>
7040         * symfile.c (symbol_file_add_separate): Preserve OBJF_MAINLINE.
7042 2020-04-10  Tom Tromey  <tromey@adacore.com>
7044         * symtab.c (get_symbol_address, get_msymbol_address): Skip
7045         separate debug files.
7047 2020-04-10  Hannes Domani  <ssbssa@yahoo.de>
7049         * nat/windows-nat.c (STATUS_WX86_BREAKPOINT, STATUS_WX86_SINGLE_STEP):
7050         Move to...
7051         * nat/windows-nat.h (STATUS_WX86_BREAKPOINT, STATUS_WX86_SINGLE_STEP):
7052         ... here.
7053         * windows-nat.c (windows_nat_target::get_windows_debug_event):
7054         Check for STATUS_WX86_BREAKPOINT.
7055         (windows_nat_target::wait): Same.
7057 2020-04-10  Tom de Vries  <tdevries@suse.de>
7059         PR cli/25808
7060         * python/lib/gdb/__init__.py: Initialize lexer with stripnl=False.
7062 2020-04-09  Simon Marchi  <simon.marchi@polymtl.ca>
7064         * MAINTAINERS (Global Maintainers): Add Tom de Vries.
7065         (Write After Approval): Remove Tom de Vries.
7067 2020-04-09  Bernd Edlinger  <bernd.edlinger@hotmail.de>
7069         revert partially:
7070         2020-04-01  Bernd Edlinger  <bernd.edlinger@hotmail.de>
7072         * buildsym.c (record_line): Fix undefined behavior and preserve
7073         lines at eof.
7075 2020-04-09  Kamil Rytarowski  <n54@gmx.com>
7077         * auxv.h (svr4_auxv_parse): New.
7078         * auxv.c (default_auxv_parse): Split into default_auxv_parse
7079         and generic_auxv_parse.
7080         (svr4_auxv_parse): Add.
7081         * obsd-tdep.c: Include "auxv.h".
7082         (obsd_auxv_parse): Remove.
7083         (obsd_init_abi): Remove comment.
7084         (obsd_init_abi): Change set_gdbarch_auxv_parse passed argument
7085         from `obsd_auxv_parse' to `svr4_auxv_parse'.
7086         * nbsd-tdep.c: Include "auxv.h".
7087         (nbsd_init_abi): Call set_gdbarch_auxv_parse.
7089 2020-04-08  Tom Tromey  <tromey@adacore.com>
7091         * nat/windows-nat.h (last_wait_event): Don't declare.
7092         (wait_for_debug_event): Update comment.
7093         * nat/windows-nat.c (last_wait_event): Now static.
7095 2020-04-08  Tom Tromey  <tromey@adacore.com>
7097         * windows-nat.c (wait_for_debug_event): Move to
7098         nat/windows-nat.c.
7099         * nat/windows-nat.h (wait_for_debug_event): Declare.
7100         * nat/windows-nat.c (wait_for_debug_event): Move from
7101         windows-nat.c.  No longer static.
7103 2020-04-08  Tom Tromey  <tromey@adacore.com>
7105         * windows-nat.c (get_windows_debug_event): Use
7106         fetch_pending_stop.
7107         * nat/windows-nat.h (fetch_pending_stop): Declare.
7108         * nat/windows-nat.c (fetch_pending_stop): New function.
7110 2020-04-08  Tom Tromey  <tromey@adacore.com>
7112         * windows-nat.c (windows_continue): Use matching_pending_stop and
7113         continue_last_debug_event.
7114         * nat/windows-nat.h (matching_pending_stop)
7115         (continue_last_debug_event): Declare.
7116         * nat/windows-nat.c (DEBUG_EVENTS): New define.
7117         (matching_pending_stop, continue_last_debug_event): New
7118         functions.
7120 2020-04-08  Tom Tromey  <tromey@adacore.com>
7122         * windows-nat.c (MS_VC_EXCEPTION): Move to nat/windows-nat.c.
7123         (handle_exception_result): Move to nat/windows-nat.h.
7124         (DEBUG_EXCEPTION_SIMPLE): Remove.
7125         (windows_nat::handle_ms_vc_exception): New function.
7126         (handle_exception): Move to nat/windows-nat.c.
7127         (get_windows_debug_event): Update.
7128         (STATUS_WX86_BREAKPOINT, STATUS_WX86_SINGLE_STEP): Move to
7129         nat/windows-nat.c.
7130         * nat/windows-nat.h (handle_ms_vc_exception): Declare.
7131         (handle_exception_result): Move from windows-nat.c.
7132         (handle_exception): Declare.
7133         * nat/windows-nat.c (MS_VC_EXCEPTION, handle_exception)
7134         (STATUS_WX86_SINGLE_STEP, STATUS_WX86_BREAKPOINT): Move from
7135         windows-nat.c.
7137 2020-04-08  Tom Tromey  <tromey@adacore.com>
7139         * windows-nat.c (exception_count, event_count): Remove.
7140         (handle_exception, get_windows_debug_event)
7141         (do_initial_windows_stuff): Update.
7143 2020-04-08  Tom Tromey  <tromey@adacore.com>
7145         * windows-nat.c (windows_nat::handle_load_dll)
7146         (windows_nat::handle_unload_dll): Rename.  No longer static.
7147         * nat/windows-nat.h (handle_load_dll, handle_unload_dll):
7148         Declare.
7150 2020-04-08  Tom Tromey  <tromey@adacore.com>
7152         * complaints.h (stop_whining): Declare at top-level.
7153         (complaint): Don't declare stop_whining.
7155 2020-04-08  Tom Tromey  <tromey@adacore.com>
7157         * windows-nat.c (windows_nat::handle_output_debug_string):
7158         Rename.  No longer static.
7159         * nat/windows-nat.h (handle_output_debug_string): Declare.
7161 2020-04-08  Tom Tromey  <tromey@adacore.com>
7163         * windows-nat.c (current_process_handle, current_process_id)
7164         (main_thread_id, last_sig, current_event, last_wait_event)
7165         (current_windows_thread, desired_stop_thread_id, pending_stops)
7166         (struct pending_stop, siginfo_er): Move to nat/windows-nat.c.
7167         (display_selectors, fake_create_process)
7168         (get_windows_debug_event): Update.
7169         * nat/windows-nat.h (current_process_handle, current_process_id)
7170         (main_thread_id, last_sig, current_event, last_wait_event)
7171         (current_windows_thread, desired_stop_thread_id, pending_stops)
7172         (struct pending_stop, siginfo_er): Move from windows-nat.c.
7173         * nat/windows-nat.c (current_process_handle, current_process_id)
7174         (main_thread_id, last_sig, current_event, last_wait_event)
7175         (current_windows_thread, desired_stop_thread_id, pending_stops)
7176         (siginfo_er): New globals.  Move from windows-nat.c.
7178 2020-04-08  Tom Tromey  <tromey@adacore.com>
7180         * windows-nat.c (get_image_name): Move to nat/windows-nat.c.
7181         (handle_load_dll): Update.
7182         * nat/windows-nat.c (get_image_name): Move from windows-nat.c.
7184 2020-04-08  Tom Tromey  <tromey@adacore.com>
7186         * windows-nat.c (enum thread_disposition_type): Move to
7187         nat/windows-nat.h.
7188         (windows_nat::thread_rec): Rename from thread_rec.  No longer
7189         static.
7190         (windows_add_thread, windows_nat_target::fetch_registers)
7191         (windows_nat_target::store_registers, handle_exception)
7192         (windows_nat_target::resume, get_windows_debug_event)
7193         (windows_nat_target::get_tib_address)
7194         (windows_nat_target::thread_name)
7195         (windows_nat_target::thread_alive): Update.
7196         * nat/windows-nat.h (enum thread_disposition_type): Move from
7197         windows-nat.c.
7198         (thread_rec): Declare.
7200 2020-04-08  Tom Tromey  <tromey@adacore.com>
7202         * windows-nat.c: Add "using namespace".
7203         * nat/windows-nat.h: Wrap contents in windows_nat namespace.
7204         * nat/windows-nat.c: Wrap contents in windows_nat namespace.
7206 2020-04-08  Tom Tromey  <tromey@adacore.com>
7208         * nat/windows-nat.h (struct windows_thread_info): Declare
7209         destructor.
7210         * nat/windows-nat.c (~windows_thread_info): New.
7212 2020-04-08  Tom Tromey  <tromey@adacore.com>
7214         PR gdb/22992
7215         * windows-nat.c (current_event): Update comment.
7216         (last_wait_event, desired_stop_thread_id): New globals.
7217         (struct pending_stop): New.
7218         (pending_stops): New global.
7219         (windows_nat_target) <stopped_by_sw_breakpoint>
7220         <supports_stopped_by_sw_breakpoint>: New methods.
7221         (windows_fetch_one_register): Add assertions.  Adjust PC.
7222         (windows_continue): Handle pending stops.  Suspend other threads
7223         when stepping.  Use last_wait_event
7224         (wait_for_debug_event): New function.
7225         (get_windows_debug_event): Use wait_for_debug_event.  Handle
7226         pending stops.  Queue spurious stops.
7227         (windows_nat_target::wait): Set stopped_at_software_breakpoint.
7228         (windows_nat_target::kill): Use wait_for_debug_event.
7229         * nat/windows-nat.h (struct windows_thread_info)
7230         <stopped_at_software_breakpoint>: New field.
7231         * nat/windows-nat.c (windows_thread_info::resume): Clear
7232         stopped_at_software_breakpoint.
7234 2020-04-08  Tom Tromey  <tromey@adacore.com>
7236         * windows-nat.c (enum thread_disposition_type): New.
7237         (thread_rec): Replace "get_context" parameter with "disposition";
7238         change type.
7239         (windows_add_thread, windows_nat_target::fetch_registers)
7240         (windows_nat_target::store_registers, handle_exception)
7241         (windows_nat_target::resume, get_windows_debug_event)
7242         (windows_nat_target::get_tib_address)
7243         (windows_nat_target::thread_name)
7244         (windows_nat_target::thread_alive): Update.
7246 2020-04-08  Tom Tromey  <tromey@adacore.com>
7248         * windows-nat.c (thread_rec): Use windows_thread_info::suspend.
7249         (windows_continue): Use windows_continue::resume.
7250         * nat/windows-nat.h (struct windows_thread_info) <suspend,
7251         resume>: Declare new methods.
7252         * nat/windows-nat.c: New file.
7253         * configure.nat (NATDEPFILES): Add nat/windows-nat.o when needed.
7255 2020-04-08  Tom Tromey  <tromey@adacore.com>
7257         * windows-nat.c (windows_add_thread, windows_delete_thread)
7258         (windows_nat_target::fetch_registers)
7259         (windows_nat_target::store_registers, fake_create_process)
7260         (windows_nat_target::resume, windows_nat_target::resume)
7261         (get_windows_debug_event, windows_nat_target::wait)
7262         (windows_nat_target::pid_to_str)
7263         (windows_nat_target::get_tib_address)
7264         (windows_nat_target::get_ada_task_ptid)
7265         (windows_nat_target::thread_name)
7266         (windows_nat_target::thread_alive): Use lwp, not tid.
7268 2020-04-08  Tom Tromey  <tromey@adacore.com>
7270         * windows-nat.c (handle_exception)
7271         (windows_nat_target::thread_name): Update.
7272         * nat/windows-nat.h (windows_thread_info): Remove destructor.
7273         <name>: Now unique_xmalloc_ptr.
7275 2020-04-08  Tom Tromey  <tromey@adacore.com>
7277         * windows-nat.c (thread_rec)
7278         (windows_nat_target::fetch_registers): Update.
7279         * nat/windows-nat.h (struct windows_thread_info) <suspended>:
7280         Update comment.
7281         <debug_registers_changed, reload_context>: Now bool.
7283 2020-04-08  Tom Tromey  <tromey@adacore.com>
7285         * windows-nat.c (windows_add_thread): Use new.
7286         (windows_init_thread_list, windows_delete_thread): Use delete.
7287         (get_windows_debug_event): Update.
7288         * nat/windows-nat.h (struct windows_thread_info): Add constructor,
7289         destructor, and initializers.
7291 2020-04-08  Tom Tromey  <tromey@adacore.com>
7293         * windows-nat.c (struct windows_thread_info): Remove.
7294         * nat/windows-nat.h: New file.
7296 2020-04-08  Tom Tromey  <tromey@adacore.com>
7298         * windows-nat.c (struct windows_thread_info) <tid>: Rename from "id".
7299         (thread_rec, windows_add_thread, windows_delete_thread)
7300         (windows_continue): Update.
7302 2020-04-08  Tom Tromey  <tromey@adacore.com>
7304         * windows-nat.c (struct windows_thread_info): Remove typedef.
7305         (thread_head): Remove.
7306         (thread_list): New global.
7307         (thread_rec, windows_add_thread, windows_init_thread_list)
7308         (windows_delete_thread, windows_continue): Update.
7310 2020-04-08  Simon Marchi  <simon.marchi@polymtl.ca>
7312         * windows-tdep.h (windows_init_abi): Add comment.
7313         (cygwin_init_abi): New declaration.
7314         * windows-tdep.c: Split signal enumeration in two, one for
7315         Windows and one for Cygwin.
7316         (windows_gdb_signal_to_target): Only deal with signal of the
7317         Windows OS ABI.
7318         (cygwin_gdb_signal_to_target): New function.
7319         (windows_init_abi): Rename to windows_init_abi_common, don't set
7320         gdb_signal_to_target gdbarch method.  Add new new function with
7321         this name.
7322         (cygwin_init_abi): New function.
7323         * amd64-windows-tdep.c (amd64_windows_init_abi_common): Add
7324         comment.  Don't call windows_init_abi.
7325         (amd64_windows_init_abi): Add comment, call windows_init_abi.
7326         (amd64_cygwin_init_abi): Add comment, call cygwin_init_abi.
7327         * i386-windows-tdep.c (i386_windows_init_abi): Rename to
7328         i386_windows_init_abi_common, don't call windows_init_abi.  Add
7329         a new function of this name.
7330         (i386_cygwin_init_abi): New function.
7331         (_initialize_i386_windows_tdep): Bind i386_cygwin_init_abi to
7332         OS ABI Cygwin.
7334 2020-04-08  Simon Marchi  <simon.marchi@polymtl.ca>
7336         * dwarf2/read.c (read_gdb_index_from_buffer): Remove objfile
7337         parameter.c.
7338         (dwarf2_read_gdb_index): Update.
7340 2020-04-07  Kamil Rytarowski  <n54@gmx.com>
7342         * nbsd-tdep.c: Include "objfiles.h".
7343         (nbsd_skip_solib_resolver): New.
7344         (nbsd_init_abi): Call set_gdbarch_skip_solib_resolver().
7346 2020-04-07  Nitika Achra  <Nitika.Achra@amd.com>
7348         * dwarf2/loc.c (loclist_describe_location): Call the function decode_debug_loclists_
7349         addresses if DWARF version is 5 or more because DW_LLE_start* or DW_LLE_offset_pair
7350         with DW_LLE_base_addressx are being emitted in DWARFv5.
7351         Add the newly added kind DW_LOC_OFFSET_PAIR also.
7352         The length of location description is an unsigned ULEB integer in DWARFv5 instead of
7353         unsigned integer.
7355 2020-04-07  Nitika Achra  <Nitika.Achra@amd.com>
7357         * dwarf2/loc.c (enum debug_loc_kind): Add a new kind DEBUG_LOC_OFFSET_PAIR.
7358         (dwarf2_find_location_expression): Call the function decode_debug_loclists_
7359         addresses if DWARF version is 5 or more. DW_LLE_start* or DW_LLE_offset_pair
7360         with DW_LLE_base_addressx are being emitted in DWARFv5 instead of DW_LLE_GNU*.
7361         Add applicable base address if the entry is DW_LLE_offset_pair from DWO.
7362         (decode_debug_loclists_addresses): Return DEBUG_LOC_OFFSET_PAIR instead of
7363         DEBUG_LOC_START_END in case of DW_LLE_offset_pair.
7366 2020-04-07  Nitika Achra  <Nitika.Achra@amd.com>
7368         * dwarf2/read.c (cu_debug_loc_section): Added the declaration for the function.
7369         (read_loclist_index): New function definition.
7370         (lookup_loclist_base): New function definition.
7371         (read_loclist_header): New function definition.
7372         (dwarf2_cu): Add loclist_base and loclist_header field.
7373         (dwarf2_locate_dwo_sections): Handle .debug_loclists.dwo section.
7374         (read_full_die_1): Read the value of DW_AT_loclists_base.
7375         (read_attribute_reprocess): Handle DW_FORM_loclistx.
7376         (read_attribute_value): Handle DW_FORM_loclistx.
7377         (skip_one_die): Handle DW_FORM_loclistx.
7378         (loclist_header): New structure declaration.
7379         * dwarf2/attribute.c (form_is_section_offset): Handle DW_FORM_loclistx.
7381 2020-04-07  Simon Marchi  <simon.marchi@polymtl.ca>
7383         * dwarf2/read.h (struct dwarf2_psymtab): Remove two-parameters
7384         constructor.  Remove `addr` parameter from other constructor and
7385         add `per_cu` parameter.
7386         * dwarf2/read.c (create_partial_symtab): Update.
7388 2020-04-07  Tom de Vries  <tdevries@suse.de>
7390         PR symtab/25796
7391         * dwarf2/read.c (can_have_DW_AT_const_value_p): New function.
7392         (partial_die_info::fixup): Inherit has_const_value.
7394 2020-04-07  Tom de Vries  <tdevries@suse.de>
7396         * psymtab.c (maintenance_check_psymtabs): Skip static LOC_BLOCK
7397         symbols without address.
7399 2020-04-06  Kamil Rytarowski  <n54@gmx.com>
7401         * nbsd-nat.h (struct thread_info): Add forward declaration.
7402         (nbsd_nat_target::thread_alive): Add.
7403         (nbsd_nat_target::thread_name): Likewise.
7404         (nbsd_nat_target::update_thread_list): Likewise.
7405         (update_thread_list::post_attach): Likewise.
7406         (post_attach::pid_to_str): Likewise.
7407         * nbsd-nat.c: Include "gdbthread.h" and "inferior.h".
7408         (nbsd_thread_lister): Add.
7409         (nbsd_nat_target::thread_alive): Likewise.
7410         (nbsd_nat_target::thread_name): Likewise.
7411         (nbsd_add_threads): Likewise.
7412         (update_thread_list::post_attach): Likewise.
7413         (nbsd_nat_target::update_thread_list): Likewise.
7414         (post_attach::pid_to_str): Likewise.
7416 2020-04-06  Tom Tromey  <tromey@adacore.com>
7418         * ada-valprint.c (print_variant_part): Extract the variant field.
7419         (print_field_values): Use the field as the outer value when
7420         recursing.
7422 2020-04-06  Tom Tromey  <tromey@adacore.com>
7424         * sh-nbsd-tdep.c: Include nbsd-tdep.h.
7425         * ppc-nbsd-tdep.c: Include nbsd-tdep.h.
7426         * mips-nbsd-tdep.c (mipsnbsd_init_abi): Add missing ";".
7427         * arm-nbsd-tdep.c: Include nbsd-tdep.h.
7428         * hppa-nbsd-tdep.c: Include nbsd-tdep.h.
7430 2020-04-06  Tom Tromey  <tromey@adacore.com>
7432         * dwarf2/read.c (read_base_type) <DW_ATE_complex_float>: Handle
7433         TYPE_CODE_ERROR.
7435 2020-04-06  Kamil Rytarowski  <n54@gmx.com>
7437         * nbsd-tdep.c: Include "gdbarch.h".
7438         Define enum with NetBSD signal numbers.
7439         (nbsd_gdb_signal_from_target, nbsd_gdb_signal_to_target): New.
7440         * alpha-nbsd-tdep.c (alphanbsd_init_abi): Call nbsd_init_abi().
7441         * amd64-nbsd-tdep.c (amd64nbsd_init_abi): Likewise.
7442         * arm-nbsd-tdep.c (arm_netbsd_elf_init_abi): Likewise.
7443         * hppa-nbsd-tdep.c (hppanbsd_init_abi): Likewise.
7444         * i386-nbsd-tdep.c (i386nbsd_init_abi): Likewise.
7445         * mips-nbsd-tdep.c (nbsd_init_abi): Likewise.
7446         * ppc-nbsd-tdep.c (ppcnbsd_init_abi): Likewise.
7447         * sh-nbsd-tdep.c (shnbsd_init_abi): Likewise.
7448         * sparc-nbsd-tdep.c (sparc32nbsd_init_abi): Likewise.
7449         * sparc64-nbsd-tdep.c (sparc64nbsd_init_abi): Likewise.
7450         * vax-nbsd-tdep.c (vaxnbsd_elf_init_abi): Likewise.
7452 2020-04-03  Hannes Domani  <ssbssa@yahoo.de>
7454         PR gdb/25325
7455         * dwarf2/read.c (read_enumeration_type): Fix typed enum attributes.
7457 2020-04-03  Tom Tromey  <tromey@adacore.com>
7459         * dwarf2/loc.c (disassemble_dwarf_expression) <DW_OP_const_type>:
7460         Read constant block.
7462 2020-04-02  Simon Marchi  <simon.marchi@polymtl.ca>
7464         * gdb_bfd.h: Include gdbsupport/byte-vector.h.
7465         (gdb_bfd_get_full_section_contents): New declaration.
7466         * gdb_bfd.c (gdb_bfd_get_full_section_contents): New function.
7467         * windows-tdep.c (is_linked_with_cygwin_dll): Use
7468         gdb_bfd_get_full_section_contents.
7470 2020-04-02  Simon Marchi  <simon.marchi@polymtl.ca>
7472         * exec.c (build_section_table): Replace internal_error with
7473         gdb_assert.
7474         (section_table_xfer_memory_partial): Likewise.
7475         * mdebugread.c (parse_partial_symbols): Likewise.
7476         * psymtab.c (lookup_partial_symbol): Likewise.
7477         * utils.c (wrap_here): Likewise.
7479 2020-04-02  Tom Tromey  <tromey@adacore.com>
7481         * f-lang.c (build_fortran_types): Use arch_type to initialize
7482         builtin_complex_s32 in the TYPE_CODE_ERROR case.
7484 2020-04-02  Tom Tromey  <tromey@adacore.com>
7486         * dwarf2/read.c (partial_die_info::read): Do not create a vector
7487         of attributes.
7489 2020-04-02  Andrew Burgess  <andrew.burgess@embecosm.com>
7490             Bernd Edlinger <bernd.edlinger@hotmail.de>
7491             Tom Tromey  <tromey@adacore.com>
7493         * buildsym.c (buildsym_compunit::record_line): Remove
7494         deduplication code.
7496 2020-04-02  Tom de Vries  <tdevries@suse.de>
7498         PR ada/24671
7499         * dwarf2/read.c (dw2_map_matching_symbols): Handle -readnow.
7501 2020-04-02  Tom de Vries  <tdevries@suse.de>
7503         * dwarf2/read.c (dwarf2_gdb_index_functions,
7504         dwarf2_debug_names_functions): Init lookup_global_symbol_language with
7505         NULL.
7506         * psymtab.c (psym_lookup_global_symbol_language): New function.
7507         (psym_functions): Init psym_lookup_global_symbol_language with
7508         psym_lookup_global_symbol_language.
7509         * symfile-debug.c (debug_sym_quick_functions): Init
7510         lookup_global_symbol_language with NULL.
7511         * symfile.c (set_initial_language): Remove fixme comment.
7512         * symfile.h (struct quick_symbol_functions): Add
7513         lookup_global_symbol_language.
7514         * symtab.c (find_quick_global_symbol_language): New function.
7515         (find_main_name): Use find_quick_global_symbol_language.
7517 2020-04-01  Simon Marchi  <simon.marchi@polymtl.ca>
7519         * windows-tdep.c (is_linked_with_cygwin_dll): Fix style.
7521 2020-04-01  Bernd Edlinger  <bernd.edlinger@hotmail.de>
7523         * buildsym.c (record_line): Fix undefined behavior and preserve
7524         lines at eof.
7526 2020-04-01  Bernd Edlinger  <bernd.edlinger@hotmail.de>
7528         * buildsym.c (record_line): Fix the resizing condition.
7530 2020-04-01  Tom Tromey  <tom@tromey.com>
7532         * value.h (value_literal_complex): Add comment.
7533         * valops.c (value_literal_complex): Refer to value.h.
7535 2020-04-01  Tom Tromey  <tom@tromey.com>
7537         * c-exp.y (FLOAT_KEYWORD, COMPLEX): New tokens.
7538         (scalar_type): New rule, from typebase.
7539         (typebase): Use scalar_type.  Recognize complex types.
7540         (field_name): Handle FLOAT_KEYWORD.
7541         (ident_tokens): Add _Complex and __complex__.
7543 2020-04-01  Tom Tromey  <tom@tromey.com>
7545         PR exp/25299:
7546         * valarith.c (promotion_type, complex_binop): New functions.
7547         (scalar_binop): Handle complex numbers.  Use promotion_type.
7548         (value_pos, value_neg, value_complement): Handle complex numbers.
7550 2020-04-01  Tom Tromey  <tom@tromey.com>
7552         * c-exp.y (COMPLEX_INT, COMPLEX_FLOAT): New tokens.
7553         (exp) <COMPLEX_INT, COMPLEX_FLOAT>: New rules.
7554         (parse_number): Handle complex numbers.
7556 2020-04-01  Tom Tromey  <tom@tromey.com>
7558         * c-valprint.c (c_decorations): Change complex suffix to "i".
7560 2020-04-01  Tom Tromey  <tom@tromey.com>
7562         * valprint.c (generic_value_print_complex): Use accessors.
7563         * value.h (value_real_part, value_imaginary_part): Declare.
7564         * valops.c (value_real_part, value_imaginary_part): New
7565         functions.
7566         * value.c (creal_internal_fn, cimag_internal_fn): Use accessors.
7568 2020-04-01  Tom Tromey  <tom@tromey.com>
7570         * stabsread.c (rs6000_builtin_type, read_sun_floating_type)
7571         (read_range_type): Update.
7572         * mdebugread.c (basic_type): Update.
7573         * go-lang.c (build_go_types): Use init_complex_type.
7574         * gdbtypes.h (struct main_type) <complex_type>: New member.
7575         (init_complex_type): Update.
7576         (arch_complex_type): Don't declare.
7577         * gdbtypes.c (init_complex_type): Remove "objfile" parameter.
7578         Make name if none given.  Use alloc_type_copy.  Look for cached
7579         complex type.
7580         (arch_complex_type): Remove.
7581         (gdbtypes_post_init): Use init_complex_type.
7582         * f-lang.c (build_fortran_types): Use init_complex_type.
7583         * dwarf2/read.c (read_base_type): Update.
7584         * d-lang.c (build_d_types): Use init_complex_type.
7585         * ctfread.c (read_base_type): Update.
7587 2020-04-01  Tankut Baris Aktemur  <tankut.baris.aktemur@intel.com>
7589         * infrun.c (stop_all_threads): Update assertion, plus when
7590         stopping threads, take into account that we might be trying
7591         to stop an all-stop target.
7592         (stop_waiting): Call 'stop_all_threads' if there exists a
7593         non-stop target.
7595 2020-04-01  Tankut Baris Aktemur  <tankut.baris.aktemur@intel.com>
7597         * target.h (exists_non_stop_target): New function declaration.
7598         * target.c (exists_non_stop_target): New function.
7600 2020-04-01  Hannes Domani  <ssbssa@yahoo.de>
7602         PR gdb/24789
7603         * eval.c (is_integral_or_integral_reference): New function.
7604         (evaluate_subexp_standard): Allow integer references in
7605         pointer arithmetic.
7607 2020-04-01  Tankut Baris Aktemur  <tankut.baris.aktemur@intel.com>
7609         * remote.c (remote_target::remote_parse_stop_reply): Remove the
7610         check for no ptid in the stop reply when the target is non-stop.
7612 2020-04-01  Tom Tromey  <tromey@adacore.com>
7614         * symtab.h (class lookup_name_info) <lookup_name_info>: Change
7615         "name" parameter to rvalue reference.  Initialize m_name_holder.
7616         <lookup_name_info>: New overloads.
7617         <name>: Return gdb::string_view.
7618         <c_str>: New method.
7619         <make_ignore_params>: Update.
7620         <search_name_hash>: Update.
7621         <language_lookup_name>: Return const char *.
7622         <m_name>: Change type.
7623         * symtab.c (demangle_for_lookup_info::demangle_for_lookup_info)
7624         (demangle_for_lookup_info::demangle_for_lookup_info): Update.
7625         (lookup_name_info::match_any): Update.
7626         * psymtab.c (match_partial_symbol, lookup_partial_symbol):
7627         Update.
7628         * minsyms.c (linkage_name_str): Update.
7629         * language.c (default_symbol_name_matcher): Update.
7630         * dwarf2/read.c (mapped_index_base::find_name_components_bounds):
7631         Update.
7632         * ada-lang.c (ada_fold_name): Change parameter to string_view.
7633         (ada_lookup_name_info::ada_lookup_name_info): Update.
7634         (literal_symbol_name_matcher): Update.
7636 2020-04-01  Tom Tromey  <tromey@adacore.com>
7638         * psymtab.c (psymtab_search_name): Remove function.
7639         (psym_lookup_symbol): Create search name and lookup name here.
7640         (lookup_partial_symbol): Remove "name" parameter; add
7641         lookup_name.
7642         (psym_expand_symtabs_for_function): Update.
7644 2020-03-31  Joel Jones  <joelkevinjones@gmail.com>
7646         PR tui/25597:
7647         * python/py-tui.c: Include gdb_curses.h inside of #ifdef TUI.
7649 2020-03-31  Tom Tromey  <tromey@adacore.com>
7651         * dwarf2/abbrev.c (abbrev_table::read): Conditionally call
7652         memcpy.
7654 2020-03-30  Nelson Chu  <nelson.chu@sifive.com>
7656         * features/riscv/32bit-csr.xml: Regenerated.
7657         * features/riscv/64bit-csr.xml: Regenerated.
7659 2020-03-30  Tom Tromey  <tromey@adacore.com>
7661         * ada-valprint.c (print_variant_part): Update.
7662         * ada-lang.h (ada_which_variant_applies): Update.
7663         * ada-lang.c (ada_which_variant_applies): Remove outer_type and
7664         outer_valaddr parameters; replace with "outer" value parameter.
7665         (to_fixed_variant_branch_type): Update.
7667 2020-03-30  Pedro Franco de Carvalho  <pedromfc@linux.ibm.com>
7669         * ppc-linux-nat.c: Include <algorithm>, <unordered_map>, and
7670         <list>.  Remove inclusion of observable.h.
7671         (PPC_DEBUG_CURRENT_VERSION): Move up define.
7672         (struct arch_lwp_info): New struct.
7673         (class ppc_linux_dreg_interface): New class.
7674         (struct ppc_linux_process_info): New struct.
7675         (struct ppc_linux_nat_target) <low_delete_thread, low_new_fork>
7676         <low_new_clone, low_forget_process, low_prepare_to_resume>
7677         <copy_thread_dreg_state, mark_thread_stale>
7678         <mark_debug_registers_changed, register_hw_breakpoint>
7679         <clear_hw_breakpoint, register_wp, clear_wp>
7680         <can_use_watchpoint_cond_accel, calculate_dvc, check_condition>
7681         <num_memory_accesses, get_trigger_type>
7682         <create_watchpoint_request, hwdebug_point_cmp>
7683         <init_arch_lwp_info, get_arch_lwp_info>
7684         <low_stopped_by_watchpoint, low_stopped_data_address>: Declare as
7685         methods.
7686         <struct ptid_hash>: New inner struct.
7687         <m_dreg_interface, m_process_info, m_installed_hw_bps>: Declare
7688         members.
7689         (saved_dabr_value, hwdebug_info, max_slots_number)
7690         (struct hw_break_tuple, struct thread_points, ppc_threads)
7691         (have_ptrace_hwdebug_interface)
7692         (hwdebug_find_thread_points_by_tid)
7693         (hwdebug_insert_point, hwdebug_remove_point): Remove.
7694         (ppc_linux_nat_target::can_use_hw_breakpoint): Use
7695         m_dreg_interface, remove call to PTRACE_SET_DEBUGREG.
7696         (ppc_linux_nat_target::region_ok_for_hw_watchpoint): Add comment,
7697         use m_dreg_interface.
7698         (hwdebug_point_cmp): Change to...
7699         (ppc_linux_nat_target::hwdebug_point_cmp): ...this method.  Use
7700         reference arguments instead of pointers.
7701         (ppc_linux_nat_target::ranged_break_num_registers): Use
7702         m_dreg_interface.
7703         (ppc_linux_nat_target::insert_hw_breakpoint): Add comment, use
7704         m_dreg_interface.  Call register_hw_breakpoint.
7705         (ppc_linux_nat_target::remove_hw_breakpoint): Add comment, use
7706         m_dreg_interface.  Call clear_hw_breakpoint.
7707         (get_trigger_type): Change to...
7708         (ppc_linux_nat_target::get_trigger_type): ...this method.  Add
7709         comment.
7710         (ppc_linux_nat_target::insert_mask_watchpoint): Update comment,
7711         use m_dreg_interface.  Call register_hw_breakpoint.
7712         (ppc_linux_nat_target::remove_mask_watchpoint): Update comment,
7713         use m_dreg_interface.  Call clear_hw_breakpoint.
7714         (can_use_watchpoint_cond_accel): Change to...
7715         (ppc_linux_nat_target::can_use_watchpoint_cond_accel): ...this
7716         method.  Update comment, use m_dreg_interface and
7717         m_process_info.
7718         (calculate_dvc): Change to...
7719         (ppc_linux_nat_target::calculate_dvc): ...this method.  Use
7720         m_dreg_interface.
7721         (num_memory_accesses): Change to...
7722         (ppc_linux_nat_target::num_memory_accesses): ...this method.
7723         (check_condition): Change to...
7724         (ppc_linux_nat_target::check_condition): ...this method.
7725         (ppc_linux_nat_target::can_accel_watchpoint_condition): Update
7726         comment, use m_dreg_interface.
7727         (create_watchpoint_request): Change to...
7728         (ppc_linux_nat_target::create_watchpoint_request): ...this
7729         method.  Use m_dreg_interface.
7730         (ppc_linux_nat_target::insert_watchpoint): Add comment, use
7731         m_dreg_interface.  Call register_hw_breakpoint or register_wp.
7732         (ppc_linux_nat_target::remove_watchpoint): Add comment, use
7733         m_dreg_interface.  Call clear_hw_breakpoint or clear_wp.
7734         (ppc_linux_nat_target::low_forget_process)
7735         (ppc_linux_nat_target::low_new_fork)
7736         (ppc_linux_nat_target::low_new_clone)
7737         (ppc_linux_nat_target::low_delete_thread)
7738         (ppc_linux_nat_target::low_prepare_to_resume): New methods.
7739         (ppc_linux_nat_target::low_new_thread): Remove previous logic,
7740         only call mark_thread_stale.
7741         (ppc_linux_thread_exit): Remove.
7742         (ppc_linux_nat_target::stopped_data_address): Change to...
7743         (ppc_linux_nat_target::low_stopped_data_address): This. Add
7744         comment, use m_dreg_interface and m_thread_hw_breakpoints.
7745         (ppc_linux_nat_target::stopped_by_watchpoint): Change to...
7746         (ppc_linux_nat_target::stopped_by_watchpoint): This.  Add
7747         comment.  Call low_stopped_data_address.
7748         (ppc_linux_nat_target::watchpoint_addr_within_range): Use
7749         m_dreg_interface.
7750         (ppc_linux_nat_target::masked_watch_num_registers): Use
7751         m_dreg_interface.
7752         (ppc_linux_nat_target::copy_thread_dreg_state)
7753         (ppc_linux_nat_target::mark_thread_stale)
7754         (ppc_linux_nat_target::mark_debug_registers_changed)
7755         (ppc_linux_nat_target::register_hw_breakpoint)
7756         (ppc_linux_nat_target::clear_hw_breakpoint)
7757         (ppc_linux_nat_target::register_wp)
7758         (ppc_linux_nat_target::clear_wp)
7759         (ppc_linux_nat_target::init_arch_lwp_info)
7760         (ppc_linux_nat_target::get_arch_lwp_info): New methods.
7761         (_initialize_ppc_linux_nat): Remove observer callback.
7763 2020-03-30  Pedro Franco de Carvalho  <pedromfc@linux.ibm.com>
7765         * ppc-linux-nat.c (ppc_linux_nat_target::store_registers)
7766         (ppc_linux_nat_target::auxv_parse)
7767         (ppc_linux_nat_target::read_description)
7768         (supply_gregset, fill_gregset, supply_fpregset, fill_fpregset):
7769         Move up.
7771 2020-03-30  Pedro Franco de Carvalho  <pedromfc@linux.ibm.com>
7773         * linux-nat.h (low_new_clone): New method.
7774         * linux-nat.c (linux_handle_extended_wait): Call low_new_clone.
7776 2020-03-29  Simon Marchi  <simon.marchi@polymtl.ca>
7778         * dbxread.c (dbx_psymtab_to_symtab_1): Rename to...
7779         (dbx_expand_psymtab): ... this.
7780         (start_psymtab): Update.
7781         * mdebugread.c (psymtab_to_symtab_1): Rename to...
7782         (mdebug_expand_psymtab): ... this.
7783         (parse_partial_symbols): Update.
7784         (new_psymtab): Update.
7785         * xcoffread.c (xcoff_psymtab_to_symtab_1): Rename to...
7786         (xcoff_expand_psymtab): ... this.
7787         (xcoff_start_psymtab): Update.
7789 2020-03-29  Simon Marchi  <simon.marchi@polymtl.ca>
7791         * psympriv.h (partial_symtab) <read_dependencies>: Rename to...
7792         <expand_dependencies>: ... this.
7793         * psymtab.c (partial_symtab::read_dependencies): Rename to...
7794         (partial_symtab::expand_dependencies): ... this.
7795         * dwarf2/read.c (dwarf2_include_psymtab) <expand_psymtab>:
7796         Update.
7797         (dwarf2_psymtab::expand_psymtab): Update.
7798         * dbxread.c (dbx_psymtab_to_symtab_1): Update.
7799         * mdebugread.c (psymtab_to_symtab_1): Update.
7800         * xcoffread.c (xcoff_psymtab_to_symtab_1): Update.
7802 2020-03-29  Simon Marchi  <simon.marchi@polymtl.ca>
7804         * psympriv.h (discard_psymtab): Remove.
7805         * dbxread.c (dbx_end_psymtab): Update.
7806         * xcoffread.c (xcoff_end_psymtab): Update.
7808 2020-03-28  Tom Tromey  <tom@tromey.com>
7810         * dwarf2/attribute.h (struct attribute) <form_is_constant>: Update
7811         comment.
7813 2020-03-28  Tom Tromey  <tom@tromey.com>
7815         * dwarf2/read.c (read_attribute_reprocess): Fix formatting.
7817 2020-03-27  Hannes Domani  <ssbssa@yahoo.de>
7819         * windows-nat.c (windows_add_all_dlls): Fix system dll paths.
7821 2020-03-26  John Baldwin  <jhb@FreeBSD.org>
7823         * fbsd-tdep.c (fbsd_print_auxv_entry): Handle AT_FREEBSD_BSDFLAGS.
7825 2020-03-26  Tom Tromey  <tom@tromey.com>
7827         * dwarf2/read.c (handle_data_member_location, dwarf2_add_field)
7828         (mark_common_block_symbol_computed, read_tag_string_type)
7829         (attr_to_dynamic_prop, read_subrange_type): Update.
7830         (dwarf2_get_ref_die_offset, dwarf2_get_attr_constant_value): Move
7831         to be methods on struct attribute.
7832         (skip_one_die, process_imported_unit_die, read_namespace_alias)
7833         (read_call_site_scope, partial_die_info::read)
7834         (partial_die_info::read, lookup_die_type, follow_die_ref):
7835         Update.
7836         * dwarf2/attribute.c (attribute::get_ref_die_offset): New method,
7837         from dwarf2_get_ref_die_offset.
7838         (attribute::constant_value): New method, from
7839         dwarf2_get_attr_constant_value.
7840         * dwarf2/attribute.h (struct attribute) <get_ref_die_offset>:
7841         Declare method.
7842         <constant_value>: New method.
7844 2020-03-26  Tom Tromey  <tom@tromey.com>
7846         * dwarf2/read.c (dwarf_unit_type_name, dwarf_tag_name)
7847         (dwarf_attr_name, dwarf_form_name, dwarf_bool_name)
7848         (dwarf_type_encoding_name): Move to stringify.c.
7849         * Makefile.in (COMMON_SFILES): Add dwarf2/stringify.c.
7850         * dwarf2/stringify.c: New file.
7851         * dwarf2/stringify.h: New file.
7853 2020-03-26  Tom Tromey  <tom@tromey.com>
7855         * dwarf2/die.h (struct die_info) <addr_base, ranges_base>:
7856         Rewrite.
7858 2020-03-26  Tom Tromey  <tom@tromey.com>
7860         * dwarf2/die.h (struct die_info) <addr_base, ranges_base>: New
7861         methods.
7862         * dwarf2/read.c (lookup_addr_base): Move to die.h.
7863         (lookup_ranges_base): Likewise.
7864         (read_cutu_die_from_dwo, read_full_die_1): Update.
7866 2020-03-26  Tom Tromey  <tom@tromey.com>
7868         * dwarf2/read.c (read_import_statement, read_file_scope)
7869         (read_type_unit_scope, inherit_abstract_dies, read_func_scope)
7870         (read_lexical_block_scope, read_call_site_scope)
7871         (dwarf2_get_subprogram_pc_bounds, get_scope_pc_bounds)
7872         (handle_struct_member_die, process_structure_scope)
7873         (update_enumeration_type_from_children)
7874         (process_enumeration_scope, read_array_type, read_common_block)
7875         (read_namespace, read_module, read_subroutine_type): Update.
7876         (sibling_die): Remove.
7878 2020-03-26  Tom Tromey  <tom@tromey.com>
7880         * dwarf2/read.c (lookup_addr_base, lookup_ranges_base)
7881         (build_type_psymtabs_reader, read_structure_type)
7882         (read_enumeration_type, read_full_die_1): Update.
7883         (dwarf2_attr_no_follow): Move to die.h.
7884         * dwarf2/die.h (struct die_info) <attr>: New method.
7886 2020-03-26  Tom Tromey  <tom@tromey.com>
7888         * dwarf2/read.c (struct dwarf2_cu) <base_known>: Remove.
7889         <base_address>: Now an optional.
7890         (dwarf2_find_base_address, dwarf2_rnglists_process)
7891         (dwarf2_ranges_process, fill_in_loclist_baton)
7892         (dwarf2_symbol_mark_computed): Update.
7894 2020-03-26  Tom Tromey  <tom@tromey.com>
7896         * dwarf2/read.c (struct die_info): Move to die.h.
7897         * dwarf2/die.h: New file.
7899 2020-03-26  Tom Tromey  <tom@tromey.com>
7901         * dwarf2/line-header.h (dwarf_decode_line_header): Declare.
7902         * dwarf2/read.c
7903         (dwarf2_statement_list_fits_in_line_number_section_complaint):
7904         Move to line-header.c.
7905         (read_checked_initial_length_and_offset, read_formatted_entries):
7906         Likewise.
7907         (dwarf_decode_line_header): Split into two.
7908         * dwarf2/line-header.c
7909         (dwarf2_statement_list_fits_in_line_number_section_complaint):
7910         Move from read.c.
7911         (read_checked_initial_length_and_offset, read_formatted_entries):
7912         Likewise.
7913         (dwarf_decode_line_header): New function, split from read.c.
7915 2020-03-26  Tom Tromey  <tom@tromey.com>
7917         * dwarf2/read.h (struct dwarf2_per_objfile) <read_line_string>:
7918         Declare method.
7919         * dwarf2/read.c (read_attribute_value): Update.
7920         (dwarf2_per_objfile::read_line_string): Rename from
7921         read_indirect_line_string.
7922         (read_formatted_entries): Update.
7924 2020-03-26  Tom Tromey  <tom@tromey.com>
7926         * dwarf2/macro.c (dwarf_decode_macro_bytes): Use objfile local
7927         variable.
7929 2020-03-26  Tom Tromey  <tom@tromey.com>
7931         * dwarf2/macro.h (dwarf_decode_macros): Make section parameter
7932         const.
7933         * dwarf2/macro.c (skip_form_bytes, skip_unknown_opcode)
7934         (dwarf_decode_macro_bytes, dwarf_decode_macros): Make section
7935         parameter const.
7937 2020-03-26  Tom Tromey  <tom@tromey.com>
7939         * dwarf2/read.c (dwarf_decode_macros): Make "lh" const.
7940         * dwarf2/macro.h (dwarf_decode_macros): Constify "lh" parameter.
7941         * dwarf2/macro.c (macro_start_file): Constify "lh" parameter.
7942         (dwarf_decode_macro_bytes, dwarf_decode_macros): Likewise.
7944 2020-03-26  Tom Tromey  <tom@tromey.com>
7946         * dwarf2/line-header.h (struct line_header) <is_valid_file_index,
7947         file_names_size, file_full_name, file_file_name>: Use const.
7948         <file_name_at, file_names>: Add const overload.
7949         * dwarf2/line-header.c (line_header::file_file_name)
7950         (line_header::file_full_name): Update.
7952 2020-03-26  Tom Tromey  <tom@tromey.com>
7954         * dwarf2/read.c (dwarf2_macro_malformed_definition_complaint)
7955         (macro_start_file, consume_improper_spaces)
7956         (parse_macro_definition, skip_form_bytes, skip_unknown_opcode)
7957         (dwarf_parse_macro_header, dwarf_decode_macro_bytes)
7958         (dwarf_decode_macros): Move to macro.c.
7959         * dwarf2/macro.c: New file.
7960         * dwarf2/macro.h: New file.
7961         * Makefile.in (COMMON_SFILES): Add dwarf2/macro.c.
7963 2020-03-26  Tom Tromey  <tom@tromey.com>
7965         * dwarf2/section.h (struct dwarf2_section_info) <read_string>: New
7966         method.
7967         * dwarf2/section.c: New method.  From
7968         read_indirect_string_at_offset_from.
7969         * dwarf2/read.c (mapped_debug_names::namei_to_name): Update.
7970         (read_indirect_string_at_offset_from): Move to section.c.
7971         (read_indirect_string_at_offset): Rewrite.
7972         (read_indirect_line_string_at_offset): Remove.
7973         (read_indirect_string, read_indirect_line_string)
7974         (dwarf_decode_macro_bytes): Update.
7976 2020-03-26  Tom Tromey  <tom@tromey.com>
7978         * dwarf2/section.h (struct dwarf2_section_info)
7979         <overload_complaint>: Declare.
7980         (dwarf2_section_buffer_overflow_complaint): Don't declare.
7981         * dwarf2/section.c (dwarf2_section_info::overflow_complaint):
7982         Rename from dwarf2_section_buffer_overflow_complaint.
7983         * dwarf2/read.c (skip_one_die, partial_die_info::read)
7984         (skip_form_bytes, dwarf_decode_macro_bytes): Update.
7986 2020-03-26  Tom Tromey  <tom@tromey.com>
7988         * dwarf2/section.h (dwarf2_section_buffer_overflow_complaint):
7989         Declare.
7990         * dwarf2/section.c (dwarf2_section_buffer_overflow_complaint):
7991         Move from read.c.
7992         * dwarf2/read.c (dwarf2_section_buffer_overflow_complaint): Move
7993         to section.c.
7995 2020-03-26  Tom Tromey  <tom@tromey.com>
7997         * dwarf2/read.c (dwarf_decode_macros): Split into two overloads.
7999 2020-03-26  Tom Tromey  <tom@tromey.com>
8001         * dwarf2/read.c (macro_start_file): Change "cu" parameter to
8002         "builder".
8003         (dwarf_decode_macro_bytes): Likewise.  Add dwarf2_per_objfile
8004         parameter.
8005         (dwarf_decode_macros): Update.
8007 2020-03-26  Tom Tromey  <tom@tromey.com>
8009         * dwarf2/read.c (read_attribute_value): Update.
8010         (read_indirect_string_from_dwz): Move to dwz.c; change into
8011         method.
8012         (dwarf_decode_macro_bytes): Update.
8013         * dwarf2/dwz.h (struct dwz_file) <read_string>: Declare method.
8014         * dwarf2/dwz.c: New file.
8015         * Makefile.in (COMMON_SFILES): Add dwz.c.
8017 2020-03-26  Tom Tromey  <tom@tromey.com>
8019         * dwarf2/read.h (struct dwz_file): Move to dwz.h.
8020         * dwarf2/read.c: Add include.
8021         * dwarf2/index-write.c: Add include.
8022         * dwarf2/index-cache.c: Add include.
8023         * dwarf2/dwz.h: New file.
8025 2020-03-25  Tom Tromey  <tom@tromey.com>
8027         * compile/compile-object-load.c (get_out_value_type): Mention
8028         correct symbol name in error message.
8030 2020-03-25  Hannes Domani  <ssbssa@yahoo.de>
8032         * windows-nat.c (windows_add_all_dlls): Fix system dll paths.
8034 2020-03-25  Tom de Vries  <tdevries@suse.de>
8036         * symtab.h (is_main_symtab_of_compunit_symtab): New function.
8037         * symmisc.c (dump_symtab_1): Print user and includes fields.
8038         (maintenance_info_symtabs): Same.
8040 2020-03-25  Andrew Burgess  <andrew.burgess@embecosm.com>
8042         PR gdb/25534
8043         * riscv-tdep.c (riscv_arg_info::c_offset): Update comment.
8044         (riscv_regcache_cooked_write): New function.
8045         (riscv_push_dummy_call): Use new function.
8046         (riscv_return_value): Likewise.
8048 2020-03-24  Simon Marchi  <simon.marchi@polymtl.ca>
8050         * fbsd-nat.c (fbsd_nat_target::follow_fork): Change bool to int.
8051         * fbsd-nat.h (class fbsd_nat_target) <follow_fork>: Likewise.
8052         * inf-ptrace.c (inf_ptrace_target::follow_fork): Likewise.
8053         * inf-ptrace.h (struct inf_ptrace_target) <follow_fork>: Likewise.
8054         * infrun.c (follow_fork): Likewise.
8055         (follow_fork_inferior): Likewise.
8056         * linux-nat.c (linux_nat_target::follow_fork): Likewise.
8057         * linux-nat.h (class linux_nat_target): Likewise.
8058         * remote.c (class remote_target) <follow_fork>: Likewise.
8059         (remote_target::follow_fork): Likewise.
8060         * target-delegates.c: Re-generate.
8061         * target.c (default_follow_fork): Likewise.
8062         (target_follow_fork): Likewise.
8063         * target.h (struct target_ops) <follow_fork>: Likewise.
8064         (target_follow_fork): Likewise.
8066 2020-03-24  Tom de Vries  <tdevries@suse.de>
8068         * psymtab.c (maintenance_info_psymtabs): Print user field.
8070 2020-03-20  Tom Tromey  <tromey@adacore.com>
8072         * dwarf2/loc.h (dwarf2_evaluate_property): Make "addr_stack"
8073         const.
8074         * dwarf2/loc.c (dwarf2_evaluate_property): Make "addr_stack"
8075         const.
8077 2020-03-20  Simon Marchi  <simon.marchi@efficios.com>
8079         * ptrace.m4: Don't check for ptrace declaration.
8080         * config.in: Re-generate.
8081         * configure: Re-generate.
8082         * nat/gdb_ptrace.h: Don't declare ptrace if HAVE_DECL_PTRACE is
8083         not defined.
8085 2020-03-20  Kamil Rytarowski  <n54@gmx.com>
8087         * amd64-bsd-nat.c (gdb_ptrace): Change return type from `int' to
8088         `PTRACE_TYPE_RET'.
8089         * i386-bsd-nat.c (gdb_ptrace): Likewise.
8090         * sparc-nat.c (gdb_ptrace): Likewise.
8091         * x86-bsd-nat.c (gdb_ptrace): Likewise.
8093 2020-03-20  Tom Tromey  <tromey@adacore.com>
8095         * c-exp.y (lex_one_token): Fix assert.
8097 2020-03-20  Tom Tromey  <tromey@adacore.com>
8099         * ada-tasks.c (read_atcb): Use smaller length in strncpy call.
8100         * linux-tdep.c (linux_fill_prpsinfo): Use smaller length in
8101         strncpy call.
8103 2020-03-20  Tom Tromey  <tromey@adacore.com>
8105         * symmisc.c (maintenance_print_one_line_table): Use ui_out.
8107 2020-03-20  Tom Tromey  <tromey@adacore.com>
8109         * ada-valprint.c (print_variant_part): Remove parameters; switch
8110         to value-based API.
8111         (print_field_values): Likewise.
8112         (ada_val_print_struct_union): Likewise.
8113         (ada_value_print_1): Update.
8115 2020-03-20  Kamil Rytarowski  <n54@gmx.com>
8117         * ppc-nbsd-nat.c (ppc_nbsd_nat_target): Inherit from
8118         nbsd_nat_target instead of inf_ptrace_target.
8119         * ppc-nbsd-nat.c: Include "nbsd-nat.h", as we are now using
8120         nbsd_nat_target.
8122 2020-03-20  Kamil Rytarowski  <n54@gmx.com>
8124         * hppa-nbsd-nat.c (fetch_registers): New variable lwp and pass
8125         it to the ptrace call.
8126         * (store_registers): Likewise.
8128 2020-03-20  Kamil Rytarowski  <n54@gmx.com>
8130         * ppc-nbsd-nat.c (fetch_registers): New variable lwp and pass
8131         it to the ptrace call.
8132         * (store_registers): Likewise.
8134 2020-03-19  Luis Machado  <luis.machado@linaro.org>
8136         * nat/aarch64-sve-linux-ptrace.c (aarch64_sve_set_vq): If vg is not
8137         valid, fetch vg value from ptrace.
8139 2020-03-19  Kamil Rytarowski  <n54@gmx.com>
8140         * inf-ptrace.h: Disable get_ptrace_pid on NetBSD.
8141         * inf-ptrace.c: Likewise.
8142         * (gdb_ptrace): Add.
8143         * (inf_ptrace_target::resume): Update.
8144         * (inf_ptrace_target::xfer_partial): Likewise.
8145         * (inf_ptrace_peek_poke): Change argument `pid' to `ptid'.
8146         * (inf_ptrace_peek_poke): Update.
8148 2020-03-19  Kamil Rytarowski  <n54@gmx.com>
8150         * x86-bsd-nat.c (gdb_ptrace): New.
8151         * (x86bsd_dr_set): Add new argument `ptid'.
8152         * (x86bsd_dr_get, x86bsd_dr_set, x86bsd_dr_set_control,
8153         x86bsd_dr_set_addr): Update.
8155 2020-03-19  Andrew Burgess  <andrew.burgess@embecosm.com>
8157         * remote.c (remote_target::process_stop_reply): Handle events for
8158         all threads differently.
8160 2020-03-19  Andrew Burgess  <andrew.burgess@embecosm.com>
8162         * completer.c (completion_tracker::remove_completion): Define new
8163         function.
8164         * completer.h (completion_tracker::remove_completion): Declare new
8165         function.
8166         * symtab.c (completion_list_add_symbol): Remove aliasing msymbols
8167         when adding a C++ function symbol.
8169 2020-03-19  Andrew Burgess  <andrew.burgess@embecosm.com>
8171         * completer.c (completion_tracker::completion_hash_entry): Define
8172         new class.
8173         (advance_to_filename_complete_word_point): Call
8174         recompute_lowest_common_denominator.
8175         (completion_tracker::completion_tracker): Call discard_completions
8176         to setup the hash table.
8177         (completion_tracker::discard_completions): Allow for being called
8178         from the constructor, pass new equal function, and element deleter
8179         when constructing the hash table.  Initialise new class member
8180         variables.
8181         (completion_tracker::maybe_add_completion): Remove use of
8182         m_entries_vec, and store more information into m_entries_hash.
8183         (completion_tracker::recompute_lcd_visitor): New function, most
8184         content taken from...
8185         (completion_tracker::recompute_lowest_common_denominator):
8186         ...here, this now just visits each item in the hash calling the
8187         above visitor.
8188         (completion_tracker::build_completion_result): Remove use of
8189         m_entries_vec, call recompute_lowest_common_denominator.
8190         * completer.h (completion_tracker::have_completions): Remove use
8191         of m_entries_vec.
8192         (completion_tracker::completion_hash_entry): Declare new class.
8193         (completion_tracker::recompute_lowest_common_denominator): Change
8194         function signature.
8195         (completion_tracker::recompute_lcd_visitor): Declare new function.
8196         (completion_tracker::m_entries_vec): Delete.
8197         (completion_tracker::m_entries_hash): Initialize to NULL.
8198         (completion_tracker::m_lowest_common_denominator_valid): New
8199         member variable.
8200         (completion_tracker::m_lowest_common_denominator_max_length): New
8201         member variable.
8203 2020-03-17  Kamil Rytarowski  <n54@gmx.com>
8205         * regformats/regdef.h: Put reg in gdb namespace.
8207 2020-03-17  Kamil Rytarowski  <n54@gmx.com>
8209         * i386-bsd-nat.c (gdb_ptrace): New.
8210         * (i386bsd_fetch_inferior_registers,
8211         i386bsd_store_inferior_registers) Switch from pid_t to ptid_t.
8212         * (i386bsd_fetch_inferior_registers,
8213         i386bsd_store_inferior_registers) Use gdb_ptrace.
8215 2020-03-17  Kamil Rytarowski  <n54@gmx.com>
8217         * amd64-bsd-nat.c (gdb_ptrace): New.
8218         * (amd64bsd_fetch_inferior_registers,
8219         amd64bsd_store_inferior_registers) Switch from pid_t to ptid_t.
8220         * (amd64bsd_fetch_inferior_registers,
8221         amd64bsd_store_inferior_registers) Use gdb_ptrace.
8223 2020-03-17  Kamil Rytarowski  <n54@gmx.com>
8225         * user-regs.c (user_reg::read): Rename to...
8226         (user_reg::xread): ...this.
8227         * (append_user_reg): Rename argument `read' to `xread'.
8228         * (user_reg_add_builtin): Likewise.
8229         * (user_reg_add): Likewise.
8230         * (value_of_user_reg): Likewise.
8232 2020-03-17  Kamil Rytarowski  <n54@gmx.com>
8234         * sparc-nat.c (gdb_ptrace): New.
8235         * sparc-nat.c (sparc_fetch_inferior_registers)
8236         (sparc_store_inferior_registers) Remove obsolete comment.
8237         * sparc-nat.c (sparc_fetch_inferior_registers)
8238         (sparc_store_inferior_registers) Switch from pid_t to ptid_t.
8239         * sparc-nat.c (sparc_fetch_inferior_registers)
8240         (sparc_store_inferior_registers) Use gdb_ptrace.
8242 2020-03-17  Kamil Rytarowski  <n54@gmx.com>
8244         * sh-nbsd-nat.c (fetch_registers): New variable lwp and pass
8245         it to the ptrace call.
8246         * sh-nbsd-nat.c (store_registers): Likewise.
8248 2020-03-17  Kamil Rytarowski  <n54@gmx.com>
8250         * sh-nbsd-nat.c (sh_nbsd_nat_target): Inherit from
8251         nbsd_nat_target instead of inf_ptrace_target.
8252         * sh-nbsd-nat.c: Include "nbsd-nat.h", as we are now using
8253         nbsd_nat_target.
8255 2020-03-17  Kamil Rytarowski  <n54@gmx.com>
8257         * amd64-bsd-nat.c: Include amd64-bsd-nat.h".
8259 2020-03-17  Kamil Rytarowski  <n54@gmx.com>
8261         * nbsd-nat.c: Include <sys/types.h>, <sys/ptrace.h> and
8262         <sys/sysctl.h>.
8263         * nbsd-nat.c (nbsd_nat_target::pid_to_exec_file): Rewrite.
8265 2020-03-17  Tom de Vries  <tdevries@suse.de>
8267         PR gdb/23710
8268         * dwarf2/read.h (struct dwarf2_per_cu_data): Add unit_type and lang
8269         fields.
8270         * dwarf2/read.c (process_psymtab_comp_unit): Initialize unit_type and lang
8271         fields.
8272         (process_imported_unit_die): Skip import of c++ CUs.
8274 2020-03-16  Tom Tromey  <tom@tromey.com>
8276         * p-valprint.c (pascal_object_print_value): Initialize
8277         base_value.
8279 2020-03-16  Anton Kolesov  <anton.kolesov@synopsys.com>
8280             Shahab Vahedi  <shahab@synopsys.com>
8282         * Makefile.in: Add arch/arc.o
8283         * configure.tgt: Likewise.
8284         * arc-tdep.c (arc_tdesc_init): Use arc_read_description.
8285         (_initialize_arc_tdep): Don't initialize old target descriptions.
8286         (arc_read_description): New function to cache target descriptions.
8287         * arc-tdep.h (arc_read_description): Add proto type.
8288         * arch/arc.c: New file.
8289         * arch/arc.h: Likewise.
8290         * features/Makefile: Replace old target descriptions with new.
8291         * features/arc-arcompact.c: Remove.
8292         * features/arc-arcompact.xml: Likewise.
8293         * features/arc-v2.c: Likewise
8294         * features/arc-v2.xml: Likewise
8295         * features/arc/aux-arcompact.xml: New file.
8296         * features/arc/aux-v2.xml: Likewise.
8297         * features/arc/core-arcompact.xml: Likewise.
8298         * features/arc/core-v2.xml: Likewise.
8299         * features/arc/aux-arcompact.c: Generate.
8300         * features/arc/aux-v2.c: Likewise.
8301         * features/arc/core-arcompact.c: Likewise.
8302         * features/arc/core-v2.c: Likewise.
8303         * target-descriptions (maint_print_c_tdesc_cmd): Support ARC features.
8305 2020-03-16  Tom Tromey  <tromey@adacore.com>
8307         PR gdb/25663:
8308         * dwarf2/read.c (dwarf2_name): Strip leading namespaces after
8309         putting value into bcache.
8311 2020-03-16  Simon Marchi  <simon.marchi@efficios.com>
8313         PR gdb/21500
8314         * amd64-windows-tdep.c (amd64_windows_init_abi): Rename
8315         to...
8316         (amd64_windows_init_abi_common): ... this.  Don't set size of
8317         long type.
8318         (amd64_windows_init_abi): New function.
8319         (amd64_cygwin_init_abi): New function.
8320         (_initialize_amd64_windows_tdep): Use amd64_cygwin_init_abi for
8321         the Cygwin OS ABI.
8322         * i386-windows-tdep.c (_initialize_i386_windows_tdep): Clarify
8323         comment.
8325 2020-03-16  Simon Marchi  <simon.marchi@efficios.com>
8327         * windows-tdep.h (is_linked_with_cygwin_dll): New declaration.
8328         * windows-tdep.c (CYGWIN_DLL_NAME): New.
8329         (pe_import_directory_entry): New struct type.
8330         (is_linked_with_cygwin_dll): New function.
8331         * amd64-windows-tdep.c (amd64_windows_osabi_sniffer): Select
8332         GDB_OSABI_CYGWIN if the BFD is linked with the Cygwin DLL.
8333         * i386-windows-tdep.c (i386_windows_osabi_sniffer): Likewise.
8335 2020-03-16  Simon Marchi  <simon.marchi@efficios.com>
8337         * i386-windows-tdep.c: Mass-rename "cygwin" to "windows", except
8338         i386_cygwin_core_osabi_sniffer.
8340 2020-03-16  Simon Marchi  <simon.marchi@efficios.com>
8342         * i386-cygwin-tdep.c: Rename to...
8343         * i386-windows-tdep.c: ... this.
8344         * Makefile.in (ALL_TARGET_OBS): Rename i386-cygwin-tdep.c to
8345         i386-windows-tdep.c.
8346         * configure.tgt: Likewise.
8348 2020-03-16  Simon Marchi  <simon.marchi@efficios.com>
8350         * osabi.h (enum gdb_osabi): Add GDB_OSABI_WINDOWS.
8351         * osabi.c (gdb_osabi_names): Add "Windows".
8352         * i386-cygwin-tdep.c (i386_cygwin_osabi_sniffer): Return
8353         GDB_OSABI_WINDOWS when the binary's target is "pei-i386".
8354         (i386_cygwin_core_osabi_sniffer): New function, extracted from
8355         i386_cygwin_osabi_sniffer.
8356         (_initialize_i386_cygwin_tdep): Register OS ABI
8357         GDB_OSABI_WINDOWS for i386.
8358         * amd64-windows-tdep.c (amd64_windows_osabi_sniffer): Return
8359         GDB_OSABI_WINDOWS when the binary's target is "pei-x86-64".
8360         (_initialize_amd64_windows_tdep): Register OS ABI GDB_OSABI_WINDOWS
8361         for x86-64.
8362         * configure.tgt: Use GDB_OSABI_WINDOWS as the default OS ABI
8363         when the target matches '*-*-mingw*'.
8365 2020-03-16  Simon Marchi  <simon.marchi@efficios.com>
8367         * defs.h (enum gdb_osabi): Move to...
8368         * osabi.h (enum gdb_osabi): ... here.
8369         * gdbarch.sh: Include osabi.h in gdbarch.h.
8370         * gdbarch.h: Re-generate.
8372 2020-03-16  Simon Marchi  <simon.marchi@efficios.com>
8374         * amd64-windows-tdep.c (amd64_windows_osabi_sniffer): New
8375         function.
8376         (_initialize_amd64_windows_tdep): Register osabi sniffer.
8378 2020-03-14  Tom Tromey  <tom@tromey.com>
8380         * c-typeprint.c (cp_type_print_method_args): Print "__restrict__"
8381         for C++.
8382         (c_type_print_modifier): Likewise.  Add "language" parameter.
8383         (c_type_print_varspec_prefix, c_type_print_base_struct_union)
8384         (c_type_print_base_1): Update.
8385         * type-stack.h (enum type_pieces) <tp_atomic, tp_restrict>: New
8386         constants.
8387         * type-stack.c (type_stack::insert): Handle tp_atomic and
8388         tp_restrict.
8389         (type_stack::follow_type_instance_flags): Likewise.
8390         (type_stack::follow_types): Likewise.  Merge type-following code.
8391         * c-exp.y (RESTRICT, ATOMIC): New tokens.
8392         (space_identifier, cv_with_space_id)
8393         (const_or_volatile_or_space_identifier_noopt)
8394         (const_or_volatile_or_space_identifier): Remove.
8395         (single_qualifier, qualifier_seq_noopt, qualifier_seq): New
8396         rules.
8397         (ptr_operator, typebase): Update.
8398         (enum token_flag) <FLAG_C>: New constant.
8399         (ident_tokens): Add "restrict", "__restrict__", "__restrict", and
8400         "_Atomic".
8401         (lex_one_token): Handle FLAG_C.
8403 2020-03-14  Kamil Rytarowski  <n54@gmx.com>
8405         * m68k-bsd-nat.c (fetch_registers): New variable lwp and pass
8406         it to the ptrace call.
8407         * m68k-bsd-nat.c (store_registers): Likewise.
8409 2020-03-14  Kamil Rytarowski  <n54@gmx.com>
8411         * m68k-bsd-nat.c (m68kbsd_supply_gregset): Change type of regs to
8412         gdb_byte *.
8413         * m68k-bsd-nat.c (m68kbsd_supply_fpregset): Likewise.
8414         * m68k-bsd-nat.c (m68kbsd_collect_gregset): Likewise.
8415         * m68k-bsd-nat.c (m68kbsd_supply_pcb): Cast &tmp to gdb_byte *.
8417 2020-03-14  Kamil Rytarowski  <n54@gmx.com>
8419         * m68k-bsd-nat.c (m68k_bsd_nat_target): Inherit from
8420         nbsd_nat_target instead of inf_ptrace_target.
8421         * m68k-bsd-nat.c: Include "nbsd-nat.h", as we are now using
8422         nbsd_nat_target.
8424 2020-03-14  Kamil Rytarowski  <n54@gmx.com>
8426         * m68k-bsd-nat.c: Define _KERNTYPES to get the declaration of
8427         register_t.
8429 2020-03-14  Kamil Rytarowski  <n54@gmx.com>
8431         * alpha-bsd-nat.c (fetch_registers): New variable lwp and pass
8432         it to the ptrace call.
8433         * alpha-bsd-nat.c (store_registers): Likewise.
8435 2020-03-14  Kamil Rytarowski  <n54@gmx.com>
8437         * alpha-bsd-nat.c: Remove <sys/procfs.h> and "gregset.h" from
8438         includes.
8439         * alpha-bsd-nat.c (gregset_t, fpregset_t): Remove.
8440         * alpha-bsd-nat.c (supply_gregset, fill_gregset, supply_fpregset,
8441         fill_fpregset): Likewise.
8443 2020-03-14  Kamil Rytarowski  <n54@gmx.com>
8445         * alpha-bsd-nat.c (alpha_netbsd_nat_target): Inherit from
8446         nbsd_nat_target instead of inf_ptrace_target.
8447         * alpha-bsd-nat.c: Include "nbsd-nat.h", as we are now using
8448         nbsd_nat_target.
8450 2020-03-14  Kamil Rytarowski  <n54@gmx.com>
8452         * alpha-bsd-nat.c: Define _KERNTYPES to get the declaration of
8453         register_t.
8455 2020-03-14  Kamil Rytarowski  <n54@gmx.com>
8457         * arm-nbsd-nat.c (fetch_register): New variable lwp and pass
8458         it to the ptrace call.
8459         * arm-nbsd-nat.c (fetch_fp_register): Likewise.
8460         * arm-nbsd-nat.c (fetch_fp_regs): Likewise.
8461         * arm-nbsd-nat.c (store_register): Likewise.
8462         * arm-nbsd-nat.c (store_regs): Likewise.
8463         * arm-nbsd-nat.c (store_fp_register): Likewise.
8464         * arm-nbsd-nat.c (store_fp_regs): Likewise.
8466 2020-03-14  Kamil Rytarowski  <n54@gmx.com>
8468         * arm-nbsd-nat.c (arm_netbsd_nat_target): Inherit from
8469         nbsd_nat_target instead of inf_ptrace_target.
8470         * arm-nbsd-nat.c: Include "nbsd-nat.h", as we are now using
8471         nbsd_nat_target.
8473 2020-03-14  Kamil Rytarowski  <n54@gmx.com>
8475         * x86-bsd-nat.c (x86bsd_dr_get): New variable lwp and pass
8476         it to the ptrace call.
8477         * x86-bsd-nat.c (x86bsd_dr_set): Likewise.
8479 2020-03-14  Kamil Rytarowski  <n54@gmx.com>
8481         * vax-bsd-nat.c (vaxbsd_supply_gregset): New variable lwp and pass
8482         it to the ptrace call.
8483         * vax-bsd-nat.c (vaxbsd_collect_gregset): Likewise.
8485 2020-03-14  Kamil Rytarowski  <n54@gmx.com>
8487         * vax-bsd-nat.c (vaxbsd_supply_gregset): Cast gregs to const
8488         gdb_byte *.
8489         * vax-bsd-nat.c (vaxbsd_collect_gregset): Cast gregs to void *.
8491 2020-03-14  Kamil Rytarowski  <n54@gmx.com>
8493         * vax-bsd-nat.c (vax_bsd_nat_target): Inherit from nbsd_nat_target
8494         instead of inf_ptrace_target.
8495         * vax-bsd-nat.c: Include "nbsd-nat.h", as we are now using
8496         nbsd_nat_target.
8498 2020-03-14  Kamil Rytarowski  <n54@gmx.com>
8500         * mips-nbsd-nat.c: Define _KERNTYPES to get the declaration of
8501         register_t.
8503 2020-03-14  Kamil Rytarowski  <n54@gmx.com>
8505         * ppc-nbsd-nat.c: Define _KERNTYPES to get the declaration of
8506         register_t.
8508 2020-03-14  Kamil Rytarowski  <n54@gmx.com>
8510         * vax-bsd-nat.c: Define _KERNTYPES to get the declaration of
8511         register_t.
8513 2020-03-13  Tom Tromey  <tom@tromey.com>
8515         * value.h (val_print): Don't declare.
8516         * valprint.h (val_print_array_elements)
8517         (val_print_scalar_formatted, generic_val_print): Don't declare.
8518         * valprint.c (generic_val_print_array): Take a struct value.
8519         (generic_val_print_ptr, generic_val_print_memberptr)
8520         (generic_val_print_bool, generic_val_print_int)
8521         (generic_val_print_char, generic_val_print_complex)
8522         (generic_val_print): Remove.
8523         (generic_value_print): Update.
8524         (do_val_print): Remove unused parameters.  Don't call
8525         la_val_print.
8526         (val_print): Remove.
8527         (common_val_print): Update.  Don't call value_check_printable.
8528         (val_print_scalar_formatted, val_print_array_elements): Remove.
8529         * rust-lang.c (rust_val_print): Remove.
8530         (rust_language_defn): Update.
8531         * p-valprint.c (pascal_val_print): Remove.
8532         (pascal_value_print_inner): Update.
8533         (pascal_object_print_val_fields, pascal_object_print_val):
8534         Remove.
8535         (pascal_object_print_static_field): Update.
8536         * p-lang.h (pascal_val_print): Don't declare.
8537         * p-lang.c (pascal_language_defn): Update.
8538         * opencl-lang.c (opencl_language_defn): Update.
8539         * objc-lang.c (objc_language_defn): Update.
8540         * m2-valprint.c (m2_print_unbounded_array, m2_val_print): Remove.
8541         * m2-lang.h (m2_val_print): Don't declare.
8542         * m2-lang.c (m2_language_defn): Update.
8543         * language.h (struct language_defn) <la_val_print>: Remove.
8544         * language.c (unk_lang_value_print_inner): Rename.  Change
8545         argument types.
8546         (unknown_language_defn, auto_language_defn): Update.
8547         * go-valprint.c (go_val_print): Remove.
8548         * go-lang.h (go_val_print): Don't declare.
8549         * go-lang.c (go_language_defn): Update.
8550         * f-valprint.c (f_val_print): Remove.
8551         * f-lang.h (f_value_print): Don't declare.
8552         * f-lang.c (f_language_defn): Update.
8553         * d-valprint.c (d_val_print): Remove.
8554         * d-lang.h (d_value_print): Don't declare.
8555         * d-lang.c (d_language_defn): Update.
8556         * cp-valprint.c (cp_print_value_fields)
8557         (cp_print_value_fields_rtti, cp_print_value): Remove.
8558         (cp_print_static_field): Update.
8559         * c-valprint.c (c_val_print_array, c_val_print_ptr)
8560         (c_val_print_struct, c_val_print_union, c_val_print_int)
8561         (c_val_print_memberptr, c_val_print): Remove.
8562         * c-lang.h (c_val_print_array, cp_print_value_fields)
8563         (cp_print_value_fields_rtti): Don't declare.
8564         * c-lang.c (c_language_defn, cplus_language_defn)
8565         (asm_language_defn, minimal_language_defn): Update.
8566         * ada-valprint.c (ada_val_print_ptr, ada_val_print_num): Remove.
8567         (ada_val_print_enum): Take a struct value.
8568         (ada_val_print_flt, ada_val_print_array, ada_val_print_1)
8569         (ada_val_print): Remove.
8570         (ada_value_print_1): Update.
8571         (printable_val_type): Remove.
8572         * ada-lang.h (ada_val_print): Don't declare.
8573         * ada-lang.c (ada_language_defn): Update.
8575 2020-03-13  Tom Tromey  <tom@tromey.com>
8577         * valprint.c (do_val_print): Update.
8578         * python/python-internal.h (gdbpy_apply_val_pretty_printer): Take
8579         a struct value.
8580         (value_to_value_object_no_release): Declare.
8581         * python/py-value.c (value_to_value_object_no_release): New
8582         function.
8583         * python/py-prettyprint.c (gdbpy_apply_val_pretty_printer): Take a
8584         struct value.
8585         * guile/scm-value.c (vlscm_scm_from_value_no_release): New
8586         function.
8587         * guile/scm-pretty-print.c (gdbscm_apply_val_pretty_printer): Take
8588         a struct value.
8589         * guile/guile-internal.h (vlscm_scm_from_value_no_release):
8590         Declare.
8591         (gdbscm_apply_val_pretty_printer): Take a struct value.
8592         * extension.h (apply_ext_lang_val_pretty_printer): Take a struct
8593         value.
8594         * extension.c (apply_ext_lang_val_pretty_printer): Take a struct
8595         value.
8596         * extension-priv.h (struct extension_language_ops)
8597         <apply_val_pretty_printer>: Take a struct value.
8598         * cp-valprint.c (cp_print_value): Create a struct value.
8599         (cp_print_value): Update.
8601 2020-03-13  Tom Tromey  <tom@tromey.com>
8603         * ada-valprint.c (print_field_values): Call common_val_print.
8605 2020-03-13  Tom Tromey  <tom@tromey.com>
8607         * ada-valprint.c (val_print_packed_array_elements): Remove
8608         bitoffset and val parameters.  Call common_val_print.
8609         (ada_val_print_string): Remove offset, address, and original_value
8610         parameters.
8611         (ada_val_print_array): Update.
8612         (ada_value_print_array): New function.
8613         (ada_value_print_1): Call it.
8615 2020-03-13  Tom Tromey  <tom@tromey.com>
8617         * ada-valprint.c (ada_value_print): Use common_val_print.
8619 2020-03-13  Tom Tromey  <tom@tromey.com>
8621         * ada-valprint.c (ada_val_print_ref): Use common_val_print.
8623 2020-03-13  Tom Tromey  <tom@tromey.com>
8625         * ada-valprint.c (ada_value_print_num): New function.
8626         (ada_value_print_1): Use it.
8628 2020-03-13  Tom Tromey  <tom@tromey.com>
8630         * ada-valprint.c (ada_value_print_1) <TYPE_CODE_FLT>: Rewrite.
8632 2020-03-13  Tom Tromey  <tom@tromey.com>
8634         * ada-valprint.c (ada_value_print_ptr): New function.
8635         (ada_value_print_1): Use it.
8637 2020-03-13  Tom Tromey  <tom@tromey.com>
8639         * ada-valprint.c (ada_val_print_gnat_array): Take a struct value;
8640         call common_val_print.
8641         (ada_val_print_1): Update.
8642         (ada_value_print_1): New function.
8643         (ada_value_print_inner): Rewrite.
8645 2020-03-13  Tom Tromey  <tom@tromey.com>
8647         * cp-valprint.c (cp_print_value_fields): Update.
8648         (cp_print_value): New function.
8650 2020-03-13  Tom Tromey  <tom@tromey.com>
8652         * m2-valprint.c (m2_value_print_inner): Use
8653         cp_print_value_fields.
8654         * cp-valprint.c (cp_print_value_fields): New function.
8655         * c-valprint.c (c_value_print_struct): New function.
8656         (c_value_print_inner): Use c_value_print_struct.
8657         * c-lang.h (cp_print_value_fields): Declare.
8659 2020-03-13  Tom Tromey  <tom@tromey.com>
8661         * c-valprint.c (c_value_print_array): New function.
8662         (c_value_print_inner): Use it.
8664 2020-03-13  Tom Tromey  <tom@tromey.com>
8666         * c-valprint.c (c_value_print_memberptr): New function.
8667         (c_value_print_inner): Use it.
8669 2020-03-13  Tom Tromey  <tom@tromey.com>
8671         * c-valprint.c (c_value_print_int): New function.
8672         (c_value_print_inner): Use it.
8674 2020-03-13  Tom Tromey  <tom@tromey.com>
8676         * c-valprint.c (c_value_print_ptr): New function.
8677         (c_value_print_inner): Use it.
8679 2020-03-13  Tom Tromey  <tom@tromey.com>
8681         * c-valprint.c (c_value_print_inner): Rewrite.
8683 2020-03-13  Tom Tromey  <tom@tromey.com>
8685         * valprint.c (generic_value_print_complex): New function.
8686         (generic_value_print): Use it.
8688 2020-03-13  Tom Tromey  <tom@tromey.com>
8690         * valprint.c (generic_val_print_float): Don't call
8691         val_print_scalar_formatted.
8692         (generic_val_print, generic_value_print): Update.
8694 2020-03-13  Tom Tromey  <tom@tromey.com>
8696         * valprint.c (generic_value_print_char): New function
8697         (generic_value_print): Use it.
8699 2020-03-13  Tom Tromey  <tom@tromey.com>
8701         * valprint.c (generic_value_print_int): New function.
8702         (generic_value_print): Use it.
8704 2020-03-13  Tom Tromey  <tom@tromey.com>
8706         * valprint.c (generic_value_print_bool): New function.
8707         (generic_value_print): Use it.
8709 2020-03-13  Tom Tromey  <tom@tromey.com>
8711         * valprint.c (generic_val_print_func): Simplify.
8712         (generic_val_print, generic_value_print): Update.
8714 2020-03-13  Tom Tromey  <tom@tromey.com>
8716         * valprint.c (generic_val_print_flags): Remove.
8717         (generic_val_print, generic_value_print): Update.
8718         (val_print_type_code_flags): Add original_value parameter.
8720 2020-03-13  Tom Tromey  <tom@tromey.com>
8722         * valprint.c (generic_val_print): Update.
8723         (generic_value_print): Update.
8724         * valprint.c (generic_val_print_enum): Don't call
8725         val_print_scalar_formatted.
8727 2020-03-13  Tom Tromey  <tom@tromey.com>
8729         * valprint.c (generic_value_print): Call generic_value_print_ptr.
8730         * valprint.c (generic_value_print_ptr): New function.
8732 2020-03-13  Tom Tromey  <tom@tromey.com>
8734         * valprint.c (generic_value_print): Rewrite.
8736 2020-03-13  Tom Tromey  <tom@tromey.com>
8738         * p-valprint.c (pascal_object_print_value_fields)
8739         (pascal_object_print_value): New functions.
8741 2020-03-13  Tom Tromey  <tom@tromey.com>
8743         * p-valprint.c (pascal_value_print_inner): Rewrite.
8745 2020-03-13  Tom Tromey  <tom@tromey.com>
8747         * f-valprint.c (f_value_print_innner): Rewrite.
8749 2020-03-13  Tom Tromey  <tom@tromey.com>
8751         * m2-valprint.c (m2_print_unbounded_array): New overload.
8752         (m2_print_unbounded_array): Update.
8753         (m2_print_array_contents): Take a struct value.
8754         (m2_value_print_inner): Rewrite.
8756 2020-03-13  Tom Tromey  <tom@tromey.com>
8758         * d-valprint.c (dynamic_array_type): Call d_value_print_inner.
8759         (d_value_print_inner): New function.
8760         * d-lang.h (d_value_print_inner): Declare.
8761         * d-lang.c (d_language_defn): Use d_value_print_inner.
8763 2020-03-13  Tom Tromey  <tom@tromey.com>
8765         * go-valprint.c (go_value_print_inner): New function.
8766         * go-lang.h (go_value_print_inner): Declare.
8767         * go-lang.c (go_language_defn): Use go_value_print_inner.
8769 2020-03-13  Tom Tromey  <tom@tromey.com>
8771         * rust-lang.c (val_print_struct, rust_print_enum): Use the value
8772         API.
8773         (rust_val_print): Rewrite.
8774         (rust_value_print_inner): New function, from rust_val_print.
8775         (rust_language_defn): Use rust_value_print_inner.
8777 2020-03-13  Tom Tromey  <tom@tromey.com>
8779         * ada-valprint.c (ada_value_print_inner): New function.
8780         * ada-lang.h (ada_value_print_inner): Declare.
8781         * ada-lang.c (ada_language_defn): Use ada_value_print_inner.
8783 2020-03-13  Tom Tromey  <tom@tromey.com>
8785         * f-valprint.c (f_value_print_innner): New function.
8786         * f-lang.h (f_value_print_innner): Declare.
8787         * f-lang.c (f_language_defn): Use f_value_print_innner.
8789 2020-03-13  Tom Tromey  <tom@tromey.com>
8791         * p-valprint.c (pascal_value_print_inner): New function.
8792         * p-lang.h (pascal_value_print_inner): Declare.
8793         * p-lang.c (pascal_language_defn): Use pascal_value_print_inner.
8795 2020-03-13  Tom Tromey  <tom@tromey.com>
8797         * m2-valprint.c (m2_value_print_inner): New function.
8798         * m2-lang.h (m2_value_print_inner): Declare.
8799         * m2-lang.c (m2_language_defn): Use m2_value_print_inner.
8801 2020-03-13  Tom Tromey  <tom@tromey.com>
8803         * opencl-lang.c (opencl_language_defn): Use c_value_print_inner.
8804         * objc-lang.c (objc_language_defn): Use c_value_print_inner.
8805         * c-valprint.c (c_value_print_inner): New function.
8806         * c-lang.h (c_value_print_inner): Declare.
8807         * c-lang.c (c_language_defn, cplus_language_defn)
8808         (asm_language_defn, minimal_language_defn): Use
8809         c_value_print_inner.
8811 2020-03-13  Tom Tromey  <tom@tromey.com>
8813         * p-valprint.c (pascal_object_print_value_fields): Now static.
8814         * p-lang.h (pascal_object_print_value_fields): Don't declare.
8816 2020-03-13  Tom Tromey  <tom@tromey.com>
8818         * c-valprint.c (c_val_print_array): Simplify.
8820 2020-03-13  Tom Tromey  <tom@tromey.com>
8822         * valprint.c (value_print_array_elements): New function.
8823         * valprint.h (value_print_array_elements): Declare.
8825 2020-03-13  Tom Tromey  <tom@tromey.com>
8827         * printcmd.c (print_formatted): Use value_print_scalar_formatted.
8828         * mips-tdep.c (mips_print_register): Use
8829         value_print_scalar_formatted.
8831 2020-03-13  Tom Tromey  <tom@tromey.com>
8833         * valprint.h (value_print_scalar_formatted): Declare.
8834         * valprint.c (value_print_scalar_formatted): New function.
8836 2020-03-13  Tom Tromey  <tom@tromey.com>
8838         * valprint.h (generic_value_print): Declare.
8839         * valprint.c (generic_value_print): New function.
8841 2020-03-13  Tom Tromey  <tom@tromey.com>
8843         * valprint.c (do_val_print): Call la_value_print_inner, if
8844         available.
8845         * rust-lang.c (rust_language_defn): Update.
8846         * p-lang.c (pascal_language_defn): Update.
8847         * opencl-lang.c (opencl_language_defn): Update.
8848         * objc-lang.c (objc_language_defn): Update.
8849         * m2-lang.c (m2_language_defn): Update.
8850         * language.h (struct language_defn) <la_value_print_inner>: New
8851         member.
8852         * language.c (unknown_language_defn, auto_language_defn): Update.
8853         * go-lang.c (go_language_defn): Update.
8854         * f-lang.c (f_language_defn): Update.
8855         * d-lang.c (d_language_defn): Update.
8856         * c-lang.c (c_language_defn, cplus_language_defn)
8857         (asm_language_defn, minimal_language_defn): Update.
8858         * ada-lang.c (ada_language_defn): Update.
8860 2020-03-13  Tom Tromey  <tom@tromey.com>
8862         * c-valprint.c (c_value_print): Use common_val_print.
8864 2020-03-13  Tom Tromey  <tom@tromey.com>
8866         * cp-valprint.c (cp_print_static_field): Use common_val_print.
8868 2020-03-13  Tom Tromey  <tom@tromey.com>
8870         * f-valprint.c (f77_print_array_1, f_val_print): Use
8871         common_val_print.
8873 2020-03-13  Tom Tromey  <tom@tromey.com>
8875         * riscv-tdep.c (riscv_print_one_register_info): Use
8876         common_val_print.
8878 2020-03-13  Tom Tromey  <tom@tromey.com>
8880         * mi/mi-main.c (output_register): Use common_val_print.
8882 2020-03-13  Tom Tromey  <tom@tromey.com>
8884         * infcmd.c (default_print_one_register_info): Use
8885         common_val_print.
8887 2020-03-13  Tom Tromey  <tom@tromey.com>
8889         * valprint.h (common_val_print_checked): Declare.
8890         * valprint.c (common_val_print_checked): New function.
8891         * stack.c (print_frame_arg): Use common_val_print_checked.
8893 2020-03-13  Tom Tromey  <tom@tromey.com>
8895         * valprint.c (do_val_print): New function, from val_print.
8896         (val_print): Use do_val_print.
8897         (common_val_print): Use do_val_print.
8899 2020-03-13  Tom Tromey  <tom@tromey.com>
8901         * valprint.c (value_print): Use scoped_value_mark.
8903 2020-03-13  Tom de Vries  <tdevries@suse.de>
8905         PR symtab/25646
8906         * psymtab.c (partial_symtab::partial_symtab): Don't set
8907         globals_offset and statics_offset.  Push element onto
8908         current_global_psymbols and current_static_psymbols stacks.
8909         (concat): New function.
8910         (end_psymtab_common): Set globals_offset and statics_offset.  Pop
8911         element from current_global_psymbols and current_static_psymbols
8912         stacks.  Concat popped elements to global_psymbols and
8913         static_symbols.
8914         (add_psymbol_to_list): Use current_global_psymbols and
8915         current_static_psymbols stacks.
8916         * psymtab.h (class psymtab_storage): Add current_global_psymbols and
8917         current_static_psymbols fields.
8919 2020-03-12  Christian Biesinger  <cbiesinger@google.com>
8921         * corelow.c (sniff_core_bfd): Remove.
8922         (class core_target) <m_core_vec>: Remove.
8923         (core_target::core_target): Update.
8924         (core_file_fns): Remove.
8925         (deprecated_add_core_fns): Remove.
8926         (default_core_sniffer): Remove.
8927         (sniff_core_bfd): Remove.
8928         (default_check_format): Remove.
8929         (gdb_check_format): Remove.
8930         (core_target_open): Update.
8931         (core_target::get_core_register_section): Update.
8932         (get_core_registers_cb): Update.
8933         (core_target::fetch_registers): Update.
8934         * gdbcore.h (struct core_fns): Remove.
8935         (deprecated_add_core_fns): Remove.
8936         (default_core_sniffer): Remove.
8937         (default_check_format): Remove.
8939 2020-03-12  Tom Tromey  <tom@tromey.com>
8941         * arm-tdep.c (struct arm_mapping_symbol) <value>: Now a
8942         CORE_ADDR.
8943         (struct arm_exidx_entry) <addr>: Now a CORE_ADDR.
8945 2020-03-12  Tom Tromey  <tom@tromey.com>
8947         * remote.c (remote_target::download_tracepoint)
8948         (remote_target::enable_tracepoint)
8949         (remote_target::disable_tracepoint): Use phex, not sprintf_vma.
8950         * breakpoint.c (print_recreate_masked_watchpoint): Use phex, not
8951         sprintf_vma.
8953 2020-03-12  Tom Tromey  <tom@tromey.com>
8955         * symfile-mem.c: Update CORE_ADDR size assert.
8957 2020-03-12  Simon Marchi  <simon.marchi@efficios.com>
8959         * selftest.m4: Move to gdbsupport/.
8960         * acinclude.m4: Update path to selftest.m4.
8962 2020-03-12  Simon Marchi  <simon.marchi@efficios.com>
8964         * Makefile.in (SUBDIR_UNITTESTS_SRCS): Rename to...
8965         (SELFTESTS_SRCS): ... this.  Add disasm-selftests.c,
8966         gdbarch-selfselftests.c and selftest-arch.c.
8967         (SUBDIR_UNITTESTS_OBS): Rename to...
8968         (SELFTESTS_OBS): ... this.
8969         (COMMON_SFILES): Remove disasm-selftests.c and
8970         gdbarch-selftests.c.
8971         * configure.ac: Don't add selftest-arch.{c,o} to
8972         CONFIG_{SRCS,OBS}.
8973         * disasm-selftests.c, gdbarch-selftests.c: Remove GDB_SELF_TEST
8974         preprocessor conditions.
8976 2020-03-12  Simon Marchi  <simon.marchi@efficios.com>
8978         * configure.ac: Don't source bfd/development.sh.
8979         * selftest.m4: Modify comment.
8980         * configure: Re-generate.
8982 2020-03-12  Simon Marchi  <simon.marchi@efficios.com>
8984         * selftest.m4 (GDB_AC_SELFTEST): Error out if $development is
8985         not "true" or "false".
8986         * configure: Re-generate.
8988 2020-03-12  Christian Biesinger  <cbiesinger@google.com>
8990         * Makefile.in (HFILES_NO_SRCDIR): Add new arm-nbsd-tdep.h file.
8991         * arm-nbsd-nat.c (arm_supply_gregset): Moved to arm-nbsd-tdep and
8992         renamed to arm_nbsd_supply_gregset.
8993         (fetch_register): Update to call arm_nbsd_supply_gregset.
8994         (fetch_regs): Remove in favor of fetch_register with a -1 regno.
8995         (arm_netbsd_nat_target::fetch_registers): Update.
8996         (fetch_elfcore_registers): Removed.
8997         (_initialize_arm_netbsd_nat): Removed call to deprecated_add_core_fns.
8998         * arm-nbsd-tdep.c (struct arm_nbsd_reg): New struct.
8999         (arm_nbsd_supply_gregset): Moved from arm-nbsd-nat.c and updated to
9000         not require NetBSD system headers.
9001         (arm_nbsd_regset): New struct.
9002         (arm_nbsd_iterate_over_regset_sections): New function.
9003         (arm_netbsd_init_abi_common): Updated to call
9004         set_gdbarch_iterate_over_regset_sections.
9005         * arm-nbsd-tdep.h: New file.
9007 2020-03-11  Kevin Buettner  <kevinb@redhat.com>
9009         * symtab.c (find_pc_sect_line): Add check which prevents infinite
9010         recursion.
9011         
9012 2020-03-11  Simon Marchi  <simon.marchi@efficios.com>
9014         * configure: Re-generate.
9016 2020-03-11  Tom Tromey  <tromey@adacore.com>
9018         * ada-typeprint.c (print_choices): Fix comment.
9020 2020-03-11  Andrew Burgess  <andrew.burgess@embecosm.com>
9022         * buildsyms.c (buildsym_compunit::record_line): Avoid accessing
9023         previous item in the list, when the list has no items.
9025 2020-03-11  Tom de Vries  <tdevries@suse.de>
9027         * dwarf2/loc.c (dwarf2_evaluate_property): Handle NULL frame in
9028         PROP_LOCLIST handling code.
9030 2020-03-10  Andrew Burgess  <andrew.burgess@embecosm.com>
9032         * buildsym-legacy.c (record_line): Pass extra parameter to
9033         record_line.
9034         * buildsym.c (buildsym_compunit::record_line): Take an extra
9035         parameter, reduce duplication in the line table, and record the
9036         is_stmt flag in the line table.
9037         * buildsym.h (buildsym_compunit::record_line): Add extra
9038         parameter.
9039         * disasm.c (do_mixed_source_and_assembly_deprecated): Ignore
9040         non-statement lines.
9041         * dwarf2/read.c (dwarf_record_line_1): Add extra parameter, pass
9042         this to the symtab builder.
9043         (dwarf_finish_line): Pass extra parameter to dwarf_record_line_1.
9044         (lnp_state_machine::record_line): Pass a suitable is_stmt flag
9045         through to dwarf_record_line_1.
9046         * infrun.c (process_event_stop_test): When stepping, don't stop at
9047         a non-statement instruction, and only refresh the step info when
9048         we land in the middle of a line's range.  Also add an extra
9049         comment.
9050         * jit.c (jit_symtab_line_mapping_add_impl): Initialise is_stmt
9051         field.
9052         * record-btrace.c (btrace_find_line_range): Only record lines
9053         marked as is-statement.
9054         * stack.c (frame_show_address): Show the frame address if we are
9055         in a non-statement sal.
9056         * symmisc.c (dump_symtab_1): Print the is_stmt flag.
9057         (maintenance_print_one_line_table): Print a header for the is_stmt
9058         column, and include is_stmt information in the output.
9059         * symtab.c (find_pc_sect_line): Find lines marked as statements in
9060         preference to non-statements.
9061         (find_pcs_for_symtab_line): Prefer is-statement entries.
9062         (find_line_common): Likewise.
9063         * symtab.h (struct linetable_entry): Add is_stmt field.
9064         (struct symtab_and_line): Likewise.
9065         * xcoffread.c (arrange_linetable): Initialise is_stmt field when
9066         arranging the line table.
9068 2020-03-07  Tom de Vries  <tdevries@suse.de>
9070         * dwarf2/read.c (read_typedef): Treat anonymous typedef as forwarder
9071         DIE.
9073 2020-03-07  Tom Tromey  <tom@tromey.com>
9075         * valops.c (value_literal_complex): Remove obsolete comment.
9076         * gdbtypes.h (enum type_code) <TYPE_CODE_FLT>: Remove obsolete
9077         comment.
9079 2020-03-06  Simon Marchi  <simon.marchi@polymtl.ca>
9081         * infrun.h: Forward-declare thread_info.
9082         (set_step_info): Add thread_info parameter, add doc.
9083         * infrun.c (set_step_info): Add thread_info parameter, move doc
9084         to header.
9085         * infrun.c (process_event_stop_test): Pass thread to
9086         set_step_info call.
9087         * infcmd.c (set_step_frame): Add thread_info pointer, pass it to
9088         set_step_info.
9089         (prepare_one_step): Add thread_info parameter, pass it to
9090         set_step_frame and prepare_one_step (recursive) call.
9091         (step_1): Pass thread to prepare_one_step call.
9092         (step_command_fsm::should_stop): Pass thread to
9093         prepare_one_step.
9094         (until_next_fsm): Pass thread to set_step_frame call.
9095         (finish_command): Pass thread to set_step_info call.
9097 2020-03-06  Hannes Domani  <ssbssa@yahoo.de>
9099         * windows-tdep.c (windows_solib_create_inferior_hook):
9100         Check if inferior is running.
9102 2020-03-06  Tom de Vries  <tdevries@suse.de>
9104         * NEWS: Fix "the the".
9105         * ctfread.c: Same.
9107 2020-03-06  Tom de Vries  <tdevries@suse.de>
9109         * psymtab.c (psymtab_to_symtab): Don't print "done.".
9111 2020-03-06  Andrew Burgess  <andrew.burgess@embecosm.com>
9113         * .dir-locals.el: Add a comment referencing the other copies of
9114         this file.
9116 2020-03-05  John Baldwin  <jhb@FreeBSD.org>
9118         * fbsd-tdep.c (fbsd_make_corefile_notes): Use std::string for
9119         psargs.
9121 2020-03-05  Tankut Baris Aktemur  <tankut.baris.aktemur@intel.com>
9123         * .gitattributes: New file.
9125 2020-03-04  Tom Tromey  <tom@tromey.com>
9127         * symmisc.c (print_symbol_bcache_statistics)
9128         (print_objfile_statistics): Update.
9129         * symfile.c (allocate_symtab): Use intern.
9130         * psymtab.c (partial_symtab::partial_symtab): Use intern.
9131         * objfiles.h (struct objfile_per_bfd_storage) <filename_cache,
9132         macro_cache>: Remove.
9133         <string_cache>: New member.
9134         (struct objfile) <intern>: New methods.
9135         * elfread.c (elf_symtab_read): Use intern.
9136         * dwarf2/read.c (fixup_go_packaging): Intern package name.
9137         (dwarf2_compute_name, dwarf2_physname)
9138         (create_dwo_unit_in_dwp_v1, create_dwo_unit_in_dwp_v2): Intern
9139         names.
9140         (guess_partial_die_structure_name): Update.
9141         (partial_die_info::fixup): Intern name.
9142         (dwarf2_canonicalize_name): Change parameter to objfile.  Intern
9143         name.
9144         (dwarf2_name): Intern name.  Update.
9145         * buildsym.c (buildsym_compunit::get_macro_table): Use
9146         string_cache.
9148 2020-03-04  Tom Tromey  <tom@tromey.com>
9150         * jit.c (bfd_open_from_target_memory): Make "target" const.
9151         * corefile.c (gnutarget): Now const.
9152         * gdbcore.h (gnutarget): Now const.
9154 2020-03-04  Hannes Domani  <ssbssa@yahoo.de>
9156         * NEWS: Mention support for WOW64 processes.
9157         * amd64-windows-nat.c (amd64_mappings): Rename and remove static.
9158         (amd64_windows_segment_register_p): Remove static.
9159         (_initialize_amd64_windows_nat): Update.
9160         * configure.nat <windows> (NATDEPFILES): Add i386-windows-nat.o.
9161         * i386-windows-nat.c (context_offset): Update.
9162         (i386_mappings): Rename and remove static.
9163         (i386_windows_segment_register_p): Remove static.
9164         (_initialize_i386_windows_nat): Update.
9165         * windows-nat.c (STATUS_WX86_BREAKPOINT): New macro.
9166         (STATUS_WX86_SINGLE_STEP): New macro.
9167         (EnumProcessModulesEx): New macro.
9168         (Wow64SuspendThread): New macro.
9169         (Wow64GetThreadContext): New macro.
9170         (Wow64SetThreadContext): New macro.
9171         (Wow64GetThreadSelectorEntry): New macro.
9172         (windows_set_context_register_offsets): Add static.
9173         (windows_set_segment_register_p): Likewise.
9174         (windows_add_thread): Adapt for WOW64 processes.
9175         (windows_fetch_one_register): Likewise.
9176         (windows_nat_target::fetch_registers): Likewise.
9177         (windows_store_one_register): Likewise.
9178         (display_selector): Likewise.
9179         (display_selectors): Likewise.
9180         (handle_exception): Likewise.
9181         (windows_continue): Likewise.
9182         (windows_nat_target::resume): Likewise.
9183         (windows_add_all_dlls): Likewise.
9184         (do_initial_windows_stuff): Likewise.
9185         (windows_nat_target::attach): Likewise.
9186         (windows_get_exec_module_filename): Likewise.
9187         (windows_nat_target::create_inferior): Likewise.
9188         (windows_xfer_siginfo): Likewise.
9189         (_initialize_loadable): Initialize Wow64SuspendThread,
9190         Wow64GetThreadContext, Wow64SetThreadContext,
9191         Wow64GetThreadSelectorEntry and EnumProcessModulesEx.
9192         * windows-nat.h (windows_set_context_register_offsets):
9193         Remove declaration.
9194         (windows_set_segment_register_p): Likewise.
9195         (i386_windows_segment_register_p): Add declaration.
9196         (amd64_windows_segment_register_p): Likewise.
9198 2020-03-04  Luis Machado  <luis.machado@linaro.org>
9200         Revert aa66aac47b4dd38f9524ddb5546c08cc09930d37 due to regressions
9201         in "info registers" for AArch64/ARM.
9203         The change caused "info registers" to not print GPR's.
9205         gdb/ChangeLog:
9207         2020-02-01  Shahab Vahedi  <shahab@synopsys.com>
9209         * target-descriptions.c (tdesc_register_in_reggroup_p): Return 0
9210         when reg->group is empty and reggroup is not.
9212 2020-03-03  Tom Tromey  <tromey@adacore.com>
9214         * dwarf2/frame.c (struct dwarf2_frame_cache)
9215         <checked_tailcall_bottom, entry_cfa_sp_offset,
9216         entry_cfa_sp_offset_p>: Remove members.
9217         (dwarf2_frame_cache): Call dwarf2_tailcall_sniffer_first.
9218         (dwarf2_frame_prev_register): Don't call
9219         dwarf2_tailcall_sniffer_first.
9220         (dwarf2_append_unwinders): Don't append tailcall unwinder.
9221         * frame-unwind.c (add_unwinder): New fuction.
9222         (frame_unwind_init): Use it.  Add tailcall unwinder.
9224 2020-03-03  Andrew Burgess  <andrew.burgess@embecosm.com>
9225             Alok Kumar Sharma  <AlokKumar.Sharma@amd.com>
9227         * f-valprint.c (f_val_print): Handle TYPE_CODE_BOOL, any non-zero
9228         value should be printed as true.
9230 2020-03-03  Hannes Domani  <ssbssa@yahoo.de>
9232         * windows-tdep.c (windows_solib_create_inferior_hook): New function.
9233         (windows_init_abi): Set and use windows_so_ops.
9235 2020-03-03  Sergio Durigan Junior  <sergiodj@redhat.com>
9237         * printcmd.c (print_c_string): Check also for TYPE_CODE_PTR
9238         when verifying if dealing with a convenience variable.
9240 2020-03-03  Luis Machado  <luis.machado@linaro.org>
9242         * auxv.c (default_print_auxv_entry): Add new AUXV entries.
9244 2020-03-02  Simon Marchi  <simon.marchi@polymtl.ca>
9246         * infrun.c (gdbarch_supports_displaced_stepping): New.
9247         (use_displaced_stepping): Break up conditions in smaller pieces.
9248         Use gdbarch_supports_displaced_stepping.
9249         (displaced_step_prepare_throw): Use
9250         gdbarch_supports_displaced_stepping.
9252 2020-03-02  Andrew Burgess  <andrew.burgess@embecosm.com>
9254         * NEWS: Mention new behaviour of the history filename.
9255         * top.c (write_history_p): Add comment.
9256         (show_write_history_p): Add header comment, give a different
9257         message when history writing is on, but the history filename is
9258         empty.
9259         (history_filename): Add comment.
9260         (history_filename_empty): New function.
9261         (show_history_filename): Add header comment, give a different
9262         message when the filename is empty.
9263         (init_history): Compare history_filename against nullptr, and only
9264         read history if the filename is not empty.
9265         (set_history_filename): Add header comment, and only make
9266         non-empty filenames absolute.
9267         (init_main): Make the filename argument to 'set history filename'
9268         optional.
9270 2020-03-02  Christian Biesinger  <cbiesinger@google.com>
9272         * arm-nbsd-nat.c (arm_supply_fparegset): Rename to...
9273         (arm_supply_vfpregset): ...this, and update to use VFP registers.
9274         (fetch_fp_register): Update.
9275         (fetch_fp_regs): Update.
9276         (store_fp_register): Update.
9277         (store_fp_regs): Update.
9278         (arm_netbsd_nat_target::read_description): New function.
9279         (fetch_elfcore_registers): Update.
9281 2020-03-02  Andrew Burgess  <andrew.burgess@embecosm.com>
9283         * remote.c (remote_target::remote_parse_stop_reply): Don't use the
9284         general_thread if the stop reply is missing a thread-id.
9285         (remote_target::process_stop_reply): Use the first non-exited
9286         thread if the target didn't pass a thread-id.
9287         * infrun.c (do_target_wait): Move call to
9288         switch_to_inferior_no_thread to ....
9289         (do_target_wait_1): ... here.
9291 2020-02-29  Jon Turney  <jon.turney@dronecode.org.uk>
9293         * debuginfod-support.c: Include defs.h first.
9295 2020-02-28  Tom de Vries  <tdevries@suse.de>
9297         * symfile.c (set_initial_language): Use default language for lookup.
9299 2020-02-28  Simon Marchi  <simon.marchi@efficios.com>
9301         * dwarf2/read.c (cutu_reader::init_tu_and_read_dwo_dies): Remove
9302         reader variable, pass `this` to read_cutu_die_from_dwo.
9304 2020-02-27  Aaron Merey  <amerey@redhat.com>
9306         * source.c (open_source_file): Check for nullptr when computing
9307         srcpath.
9309 2020-02-27  Tom Tromey  <tromey@adacore.com>
9311         * dwarf2/read.c (struct field_info) <nfields>: Now a method, not a
9312         member.
9313         (dwarf2_add_field): Don't update nfields.
9314         (dwarf2_attach_fields_to_type, process_structure_scope): Update.
9316 2020-02-27  Andrew Burgess  <andrew.burgess@embecosm.com>
9318         * gdbtypes.c (create_array_type_with_stride): Use std::abs not
9319         abs.
9321 2020-02-26  Tom Tromey  <tom@tromey.com>
9323         * dwarf2/read.c (struct dwarf2_include_psymtab): New.
9324         (dwarf2_create_include_psymtab): Use dwarf2_include_psymtab.
9325         (dwarf2_psymtab::expand_psymtab, dwarf2_psymtab::readin_p)
9326         (dwarf2_psymtab::get_compunit_symtab): Remove null checks for
9327         per_cu_data.
9329 2020-02-26  Tom Tromey  <tom@tromey.com>
9331         * dwarf2/index-write.c (psym_index_map): Change type.
9332         (add_address_entry_worker, write_one_signatured_type)
9333         (recursively_count_psymbols, recursively_write_psymbols)
9334         (class debug_names, psyms_seen_size, write_gdbindex)
9335         (write_debug_names): Use partial_symtab, not dwarf2_psymtab.
9337 2020-02-26  Aaron Merey  <amerey@redhat.com>
9339         * Makefile.in: Handle optional debuginfod support.
9340         * NEWS: Update.
9341         * README: Add --with-debuginfod summary.
9342         * config.in: Regenerate.
9343         * configure: Regenerate.
9344         * configure.ac: Handle optional debuginfod support.
9345         * debuginfod-support.c: debuginfod helper functions.
9346         * debuginfod-support.h: Ditto.
9347         * doc/gdb.texinfo: Add --with-debuginfod to configure options
9348         summary.
9349         * dwarf2/read.c (dwarf2_get_dwz_file): Query debuginfod servers
9350         when a dwz file cannot be found.
9351         * elfread.c (elf_symfile_read): Query debuginfod servers when a
9352         debuginfo file cannot be found.
9353         * source.c (open_source_file): Query debuginfod servers when a
9354         source file cannot be found.
9355         * top.c (print_gdb_configuration): Include
9356         --{with,without}-debuginfod in the output.
9358 2020-02-26  Jérémie Galarneau  <jeremie.galarneau@efficios.com>
9360         * thread.c (thr_try_catch_cmd): Print thread name.
9362 2020-02-26  Simon Marchi  <simon.marchi@efficios.com>
9364         * dwarf2/loc.h (dwarf2_fetch_die_loc_sect_off,
9365         dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
9366         dwarf2_fetch_die_type_sect_off): Move to...
9367         * dwarf2/read.h (dwarf2_fetch_die_loc_sect_off,
9368         dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
9369         dwarf2_fetch_die_type_sect_off): ... here.
9370         * dwarf2/read.c (dwarf2_fetch_die_loc_sect_off,
9371         dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
9372         dwarf2_fetch_die_type_sect_off): Move doc to header file.
9374 2020-02-26  Tom de Vries  <tdevries@suse.de>
9376         PR gdb/25603
9377         * symfile.c (set_initial_language): Exit-early if
9378         language_mode == language_mode_manual.
9380 2020-02-25  Simon Marchi  <simon.marchi@polymtl.ca>
9382         * dwarf2/loc.h (dwarf2_read_addr_index): Move...
9383         * dwarf2/read.h (dwarf2_read_addr_index): ... here.
9384         * dwarf2/read.c (dwarf2_read_addr_index): Move doc to header.
9386 2020-02-25  Andrew Burgess  <andrew.burgess@embecosm.com>
9388         * gdbtypes.c (create_array_type_with_stride): Handle negative
9389         array strides.
9390         * valarith.c (value_subscripted_rvalue): Likewise.
9392 2020-02-25  Luis Machado  <luis.machado@linaro.org>
9394         * aarch64-tdep.c (aarch64_vnv_type): Fix comment typo.
9396 2020-02-25  Simon Marchi  <simon.marchi@polymtl.ca>
9398         * loc.h (dwarf2_get_die_type): Move to...
9399         * read.h (dwarf2_get_die_type): ... here.
9400         * read.c (dwarf2_get_die_type): Move doc to header.
9402 2020-02-25  Joel Brobecker  <brobecker@adacore.com>
9404         * copypright.py (EXCLUDE_LIST): Add 'gnulib/config.in' and
9405         'gnulib/Makefile.in' to the list.
9407 2020-02-24  Tom Tromey  <tom@tromey.com>
9409         * dwarf2/read.h (struct type_unit_unshareable) <num_symtabs>:
9410         Remove.
9411         * dwarf2/read.c (dwarf2_cu::setup_type_unit_groups): Use
9412         XOBNEWVEC.
9414 2020-02-24  Tom Tromey  <tom@tromey.com>
9416         * dwarf2/read.h (struct dwarf2_per_cu_data) <type_unit_group_p>:
9417         New method.
9418         * dwarf2/read.c (IS_TYPE_UNIT_GROUP): Remove.
9419         (dw2_do_instantiate_symtab, dw2_get_file_names)
9420         (build_type_psymtab_dependencies, load_full_type_unit): Update.
9422 2020-02-24  Tom Tromey  <tom@tromey.com>
9424         * dwarf2read.c (dwarf2_build_psymtabs_hard): Use
9425         make_scoped_restore.
9426         (dwarf2_psymtab::read_symtab): Don't clear
9427         reading_partial_symbols.
9429 2020-02-24  Tom de Vries  <tdevries@suse.de>
9431         PR gdb/25592
9432         * stack.c (iterate_over_block_locals): Handle LOC_CONST.
9434 2020-02-24  Tom de Vries  <tdevries@suse.de>
9436         * tui/tui-layout.c (_initialize_tui_layout): Fix help messages for
9437         commands layout next/prev/regs.
9439 2020-02-22  Tom Tromey  <tom@tromey.com>
9441         * dwarf2/loc.h (dwarf2_compile_expr_to_ax): Don't declare.
9442         * dwarf2/loc.c (dwarf2_compile_expr_to_ax): Now static.
9444 2020-02-22  Tom Tromey  <tom@tromey.com>
9446         * tui/tui-data.h (TUI_DISASM_WIN): Cast to tui_disasm_window.
9448 2020-02-22  Tom Tromey  <tom@tromey.com>
9450         * tui/tui-win.c (_initialize_tui_win): Add usage text.
9451         * tui/tui-stack.c (_initialize_tui_stack): Add usage text.
9452         * tui/tui-regs.c (_initialize_tui_regs): Add usage text.
9453         * tui/tui.c (_initialize_tui): Add usage text.
9455 2020-02-22  Tom Tromey  <tom@tromey.com>
9457         * tui/tui-win.c (tui_set_focus_command)
9458         (tui_set_win_height_command): Use error_no_arg.
9459         (_initialize_tui_win): Update help text.
9460         (FOCUS_USAGE, WIN_HEIGHT_USAGE): Don't define.
9462 2020-02-22  Tom Tromey  <tom@tromey.com>
9464         * tui/tui-layout.c (extract_display_start_addr): Rewrite.
9465         * tui/tui-disasm.h (struct tui_disasm_window)
9466         <display_start_addr>: Declare.
9467         * tui/tui-source.h (struct tui_source_window)
9468         <display_start_addr>: Declare.
9469         * tui/tui-winsource.h (struct tui_source_window_base)
9470         <show_source_line, display_start_addr>: New methods.
9471         <m_horizontal_offset, m_start_line_or_addr, m_gdbarch, m_content>:
9472         Rename and move to protected section.
9473         * tui/tui-winsource.c (tui_source_window_base::update_source_window)
9474         (tui_source_window_base::do_erase_source_content): Update.
9475         (tui_source_window_base::show_source_line): Now a method.
9476         (tui_source_window_base::show_source_content)
9477         (tui_source_window_base::tui_source_window_base)
9478         (tui_source_window_base::rerender)
9479         (tui_source_window_base::refill)
9480         (tui_source_window_base::do_scroll_horizontal)
9481         (tui_source_window_base::set_is_exec_point_at)
9482         (tui_source_window_base::update_breakpoint_info)
9483         (tui_source_window_base::update_exec_info): Update.
9484         * tui/tui-source.c (tui_source_window::set_contents)
9485         (tui_source_window::showing_source_p)
9486         (tui_source_window::do_scroll_vertical)
9487         (tui_source_window::location_matches_p)
9488         (tui_source_window::line_is_displayed): Update.
9489         (tui_source_window::display_start_addr): New method.
9490         * tui/tui-disasm.c (tui_disasm_window::set_contents)
9491         (tui_disasm_window::do_scroll_vertical)
9492         (tui_disasm_window::location_matches_p): Update.
9493         (tui_disasm_window::display_start_addr): New method.
9495 2020-02-22  Tom Tromey  <tom@tromey.com>
9497         * NEWS: Add entry for gdb.register_window_type.
9498         * tui/tui-layout.h (window_factory): New typedef.
9499         (tui_register_window): Declare.
9500         * tui/tui-layout.c (saved_tui_windows): New global.
9501         (tui_apply_current_layout): Use it.
9502         (tui_register_window): New function.
9503         * python/python.c (do_start_initialization): Call
9504         gdbpy_initialize_tui.
9505         (python_GdbMethods): Add "register_window_type" function.
9506         * python/python-internal.h (gdbpy_register_tui_window)
9507         (gdbpy_initialize_tui): Declare.
9508         * python/py-tui.c: New file.
9509         * Makefile.in (SUBDIR_PYTHON_SRCS): Add py-tui.c.
9511 2020-02-22  Tom Tromey  <tom@tromey.com>
9513         * tui/tui-io.c (do_tui_putc): Don't omit annotations.
9515 2020-02-22  Tom Tromey  <tom@tromey.com>
9517         * tui/tui-win.c (tui_set_win_focus_to): Move to tui-data.c.
9518         * tui/tui-data.h (tui_set_win_with_focus): Don't declare.
9519         * tui/tui-data.c (tui_set_win_with_focus): Remove.
9520         (tui_set_win_focus_to): Move from tui-win.c.
9522 2020-02-22  Tom Tromey  <tom@tromey.com>
9524         * tui/tui-layout.c (make_standard_window, get_locator_window): New
9525         functions.
9526         (known_window_types): New global.
9527         (tui_get_window_by_name): Reimplement.
9528         (initialize_known_windows): New function.
9529         (validate_window_name): Rewrite.
9530         (_initialize_tui_layout): Call initialize_known_windows.
9532 2020-02-22  Tom Tromey  <tom@tromey.com>
9534         * tui/tui.h (enum tui_win_type) <LOCATOR_WIN, DATA_ITEM_WIN>:
9535         Remove constants.
9536         * tui/tui-winsource.h (struct tui_source_window_base)
9537         <tui_source_window_base>: Remove parameter.
9538         * tui/tui-winsource.c
9539         (tui_source_window_base::tui_source_window_base): Remove
9540         parameter.
9541         (tui_source_window_base::refill): Update.
9542         * tui/tui-stack.h (struct tui_locator_window)
9543         <tui_locator_window>: Update.
9544         * tui/tui-source.h (struct tui_source_window) <tui_source_window>:
9545         Default the constructor.
9546         * tui/tui-regs.h (struct tui_data_item_window)
9547         <tui_data_item_window>: Default the constructor.
9548         (struct tui_data_window) <tui_data_window>: Likewise.
9549         * tui/tui-disasm.h (struct tui_disasm_window) <tui_disasm_window>:
9550         Default the constructor.
9551         * tui/tui-data.h (struct tui_gen_win_info) <tui_gen_win_info>:
9552         Default the constructor.
9553         <type>: Remove.
9554         (struct tui_win_info) <tui_win_info>: Default the constructor.
9555         * tui/tui-data.c (tui_win_info::tui_win_info): Remove.
9556         * tui/tui-command.h (struct tui_cmd_window) <tui_cmd_window>:
9557         Default the constructor.
9559 2020-02-22  Tom Tromey  <tom@tromey.com>
9561         * tui/tui-wingeneral.h (tui_make_all_invisible): Don't declare.
9562         * tui/tui-wingeneral.c (tui_make_all_invisible): Remove.
9563         * tui/tui-win.c (tui_resize_all): Don't call
9564         tui_delete_invisible_windows.
9565         * tui/tui-layout.c (tui_apply_current_layout): Delete windows when
9566         done.
9567         (tui_set_layout): Update.
9568         (tui_add_win_to_layout): Don't call tui_delete_invisible_windows.
9569         * tui/tui-data.h (tui_delete_invisible_windows): Don't declare.
9570         * tui/tui-data.c (tui_delete_invisible_windows): Remove.
9572 2020-02-22  Tom Tromey  <tom@tromey.com>
9574         * tui/tui-win.c (tui_partial_win_by_name): Handle ambiguity
9575         correctly.
9577 2020-02-22  Tom Tromey  <tom@tromey.com>
9579         * tui/tui-data.c (tui_next_win, tui_prev_win): Reimplement.
9581 2020-02-22  Tom Tromey  <tom@tromey.com>
9583         * tui/tui-winsource.h (struct tui_source_window_iterator)
9584         <inner_iterator>: New etytypedef.
9585         <tui_source_window_iterator>: Take "end" parameter.
9586         <tui_source_window_iterator>: Take iterator.
9587         <operator*, advance>: Update.
9588         <m_iter>: Change type.
9589         <m_end>: New field.
9590         (struct tui_source_windows) <begin, end>: Update.
9591         * tui/tui-layout.c (tui_windows): New global.
9592         (tui_apply_current_layout): Clear tui_windows.
9593         (tui_layout_window::apply): Update tui_windows.
9594         * tui/tui-data.h (tui_windows): Declare.
9595         (all_tui_windows): Now inline function.
9596         (class tui_window_iterator, struct all_tui_windows): Remove.
9598 2020-02-22  Tom Tromey  <tom@tromey.com>
9600         PR tui/17850:
9601         * tui/tui-win.c (tui_gen_win_info::max_width): New method.
9602         * tui/tui-layout.h (class tui_layout_base) <get_sizes>: Add
9603         "height" argument.
9604         (class tui_layout_window) <get_sizes>: Likewise.
9605         (class tui_layout_split) <tui_layout_split>: Add "vertical"
9606         argument.
9607         <get_sizes>: Add "height" argument.
9608         <m_vertical>: New field.
9609         * tui/tui-layout.c (tui_layout_split::clone): Update.
9610         (tui_layout_split::get_sizes): Add "height" argument.
9611         (tui_layout_split::adjust_size, tui_layout_split::apply): Update.
9612         (tui_new_layout_command): Parse "-horizontal".
9613         (_initialize_tui_layout): Update help string.
9614         (tui_layout_split::specification): Add "-horizontal" when needed.
9615         * tui/tui-layout.c (tui_layout_window::get_sizes): Add "height"
9616         argument.
9617         * tui/tui-data.h (struct tui_gen_win_info) <max_width, min_width>:
9618         New methods.
9620 2020-02-22  Tom Tromey  <tom@tromey.com>
9622         * tui/tui-layout.h (enum tui_adjust_result): New.
9623         (class tui_layout_base) <adjust_size>: Return tui_adjust_result.
9624         (class tui_layout_window) <adjust_size>: Return
9625         tui_adjust_result.  Rewrite.
9626         (class tui_layout_split) <adjust_size>: Return tui_adjust_result.
9627         * tui/tui-layout.c (tui_layout_split::adjust_size): Update.
9629 2020-02-22  Tom Tromey  <tom@tromey.com>
9631         * tui/tui-layout.h (class tui_layout_split) <add_split>: Change
9632         parameter and return types.
9633         (class tui_layout_base) <specification>: Add "depth".
9634         (class tui_layout_window) <specification>: Add "depth".
9635         (class tui_layout_split) <specification>: Add "depth".
9636         * tui/tui-layout.c (tui_layout_split::add_split): Change parameter
9637         and return types.
9638         (tui_new_layout_command): Parse sub-layouts.
9639         (_initialize_tui_layout): Update help string.
9640         (tui_layout_window::specification): Add "depth".
9641         (add_layout_command): Update.
9643 2020-02-22  Tom Tromey  <tom@tromey.com>
9645         * NEWS: Add "tui new-layout" item.
9646         * tui/tui-layout.c (add_layout_command): Return cmd_list_element.
9647         Add new-layout command to help text.
9648         (validate_window_name): New function.
9649         (tui_new_layout_command): New function.
9650         (_initialize_tui_layout): Register "new-layout".
9651         (tui_layout_window::specification): New method.
9652         (tui_layout_window::specification): New method.
9653         * tui/tui-layout.h (class tui_layout_base) <specification>: New
9654         method.
9655         (class tui_layout_window) <specification>: New method.
9656         (class tui_layout_split) <specification>: New method.
9658 2020-02-22  Tom Tromey  <tom@tromey.com>
9660         * tui/tui.c (tui_enable): Call tui_set_initial_layout.
9661         * tui/tui-win.c (window_name_completer): Update comment.
9662         * tui/tui-layout.h (class tui_layout_base) <replace_window>:
9663         Declare method.
9664         (class tui_layout_window) <replace_window>: Likewise.
9665         (class tui_layout_split) <replace_window>: Likewise.
9666         (tui_set_layout): Don't declare.
9667         (tui_set_initial_layout): Declare function.
9668         * tui/tui-layout.c (layouts, applied_skeleton, src_regs_layout)
9669         (asm_regs_layout): New globals.
9670         (tui_current_layout, show_layout): Remove.
9671         (tui_set_layout, tui_add_win_to_layout): Rewrite.
9672         (find_layout, tui_apply_layout): New function.
9673         (layout_completer): Remove.
9674         (tui_next_layout): Reimplement.
9675         (tui_next_layout_command): New function.
9676         (tui_set_initial_layout, tui_prev_layout_command): New functions.
9677         (tui_regs_layout): Reimplement.
9678         (tui_regs_layout_command): New function.
9679         (extract_display_start_addr): Rewrite.
9680         (next_layout, prev_layout): Remove.
9681         (tui_layout_window::replace_window): New method.
9682         (tui_layout_split::replace_window): New method.
9683         (destroy_layout): New function.
9684         (layout_list): New global.
9685         (add_layout_command): New function.
9686         (initialize_layouts): Update.
9687         (tui_layout_command): New function.
9688         (_initialize_tui_layout): Install "layout" commands.
9689         * tui/tui-data.h (enum tui_layout_type): Remove.
9690         (tui_current_layout): Don't declare.
9692 2020-02-22  Tom Tromey  <tom@tromey.com>
9694         * tui/tui-regs.c (tui_reg_layout): Remove.
9695         (tui_reg_command): Use tui_regs_layout.
9696         * tui/tui-layout.h (tui_reg_command): Declare.
9697         * tui/tui-layout.c (tui_reg_command): New function.
9699 2020-02-22  Tom Tromey  <tom@tromey.com>
9701         * tui/tui.c (tui_rl_delete_other_windows): Call
9702         tui_remove_some_windows.
9703         * tui/tui-layout.h (class tui_layout_base) <remove_windows>:
9704         Declare method.
9705         (class tui_layout_window) <remove_windows>: New method.
9706         (class tui_layout_split) <remove_windows>: Declare.
9707         (tui_remove_some_windows): Declare.
9708         * tui/tui-layout.c (tui_remove_some_windows): New function.
9709         (tui_layout_split::remove_windows): New method.
9711 2020-02-22  Tom Tromey  <tom@tromey.com>
9713         * tui/tui.c (tui_rl_change_windows): Call tui_next_layout.
9714         * tui/tui-layout.h (tui_next_layout): Declare.
9715         * tui/tui-layout.c (tui_next_layout): New function.
9717 2020-02-22  Tom Tromey  <tom@tromey.com>
9719         * tui/tui-regs.c (tui_data_window::display_registers_from): Use
9720         correct coordinates.
9722 2020-02-22  Tom Tromey  <tom@tromey.com>
9724         * tui/tui-layout.h (tui_add_win_to_layout): Add comment.
9725         * tui/tui-layout.c (tui_add_win_to_layout): Add assert.  Remove
9726         DATA_WIN case.
9728 2020-02-22  Tom Tromey  <tom@tromey.com>
9730         * tui/tui-disasm.c (tui_get_low_disassembly_address): Use
9731         TUI_DISASM_WIN, not tui_win_list.
9733 2020-02-22  Tom Tromey  <tom@tromey.com>
9735         * valprint.c (generic_val_print_enum_1)
9736         (val_print_type_code_flags): Style member names.
9737         * rust-lang.c (val_print_struct, rust_print_enum)
9738         (rust_print_struct_def, rust_internal_print_type): Style member
9739         names.
9740         * p-valprint.c (pascal_object_print_value_fields): Style member
9741         names.  Only call fprintf_symbol_filtered for static members.
9742         * m2-typeprint.c (m2_record_fields, m2_enum): Style member names.
9743         * f-valprint.c (f_val_print): Style member names.
9744         * f-typeprint.c (f_type_print_base): Style member names.
9745         * cp-valprint.c (cp_print_value_fields): Style member names.  Only
9746         call fprintf_symbol_filtered for static members.
9747         (cp_print_class_member): Style member names.
9748         * c-typeprint.c (c_print_type_1, c_type_print_base_1): Style
9749         member names.
9750         * ada-valprint.c (ada_print_scalar): Style enum names.
9751         (ada_val_print_enum): Likewise.
9752         * ada-typeprint.c (print_enum_type): Style enum names.
9754 2020-02-21  Tom Tromey  <tom@tromey.com>
9756         * psympriv.h (struct partial_symtab): Update comment.
9758 2020-02-21  Tom Tromey  <tromey@adacore.com>
9760         * mips-tdep.h (mips_pc_is_mips16, mips_pc_is_micromips): Parameter
9761         type is CORE_ADDR.
9763 2020-02-21  Tom de Vries  <tdevries@suse.de>
9765         PR gdb/25534
9766         * psymtab.c (partial_symtab::read_dependencies): Don't read dependency
9767         if dependencies[i]->user != NULL.
9769 2020-02-21  Ali Tamur  <tamur@google.com>
9771         * dwarf2/read.c (dwarf2_name): Add null check.
9773 2020-02-20  Tom Tromey  <tom@tromey.com>
9775         * dwarf2/read.c (dwarf2_find_containing_comp_unit): Use ">", not
9776         ">=", in binary search.
9777         (dwarf2_find_containing_comp_unit): New overload.
9778         (run_test): New self-test.
9779         (_initialize_dwarf2_read): Register new test.
9781 2020-02-20  Nelson Chu  <nelson.chu@sifive.com>
9783         * riscv-tdep.c: Updated since the DECLARE_CSR is changed.
9784         * riscv-tdep.h: Likewise.
9785         * features/riscv/rebuild-csr-xml.sh: Generate the 64bit-csr.xml without
9786         rv32-only CSR.
9787         * features/riscv/64bit-csr.xml: Regenerated.
9789 2020-02-20  Sergio Durigan Junior  <sergiodj@redhat.com>
9790             Tom Tromey  <tom@tromey.com>
9792         * utils.c (fputs_maybe_filtered): Call 'stream->puts' instead
9793         of 'fputc_unfiltered'.
9794         (putchar_unfiltered): Call 'fputc_unfiltered'.
9795         (fputc_unfiltered): Call 'fputs_unfiltered'.
9797 2020-02-20  Andrew Burgess  <andrew.burgess@embecosm.com>
9799         * config.in: Regenerate.
9800         * configure: Regenerate.
9801         * configure.ac: Add --with-python-libdir option.
9802         * main.c: Use WITH_PYTHON_LIBDIR.
9804 2020-02-19  Tom Tromey  <tom@tromey.com>
9806         * symtab.c (general_symbol_info::compute_and_set_names): Use
9807         obstack_strndup.  Simplify call to symbol_set_demangled_name.
9809 2020-02-19  Simon Marchi  <simon.marchi@efficios.com>
9811         * dwarf2/read.c (allocate_signatured_type_table,
9812         allocate_dwo_unit_table, allocate_type_unit_groups_table,
9813         allocate_dwo_file_hash_table, allocate_dwp_loaded_cutus_table):
9814         Remove objfile parameter, update all callers.
9816 2020-02-19  Doug Evans  <dje@google.com>
9818         PR rust/25535
9819         * rust-lang.c (rust_print_enum): Apply embedded_offset to
9820         rust_enum_variant calculation.
9822 2020-02-19  Tom Tromey  <tromey@adacore.com>
9824         * mips-tdep.h (mips_pc_is_mips): Parameter type is CORE_ADDR.
9826 2020-02-19  Tom Tromey  <tromey@adacore.com>
9828         * ada-lang.c (cache_symbol): Use obstack_strdup.
9830 2020-02-19  Andrew Burgess  <andrew.burgess@embecosm.com>
9832         * configure: Regenerate.
9834 2020-02-19  Tom Tromey  <tromey@adacore.com>
9836         * python/python.c (do_start_initialization): Use XNEWVEC.  Remove
9837         NULL check.
9839 2020-02-19  Maciej W. Rozycki  <macro@wdc.com>
9841         * NEWS: Mention RISC-V GNU/Linux GDBserver support.
9843 2020-02-19  Andrew Burgess  <andrew.burgess@embecosm.com>
9845         * arch/riscv.c (struct riscv_gdbarch_features_hasher): Only define
9846         if GDBSERVER is not defined.
9847         (riscv_tdesc_cache): Likewise, also store const target_desc.
9848         (STATIC_IN_GDB): Define.
9849         (riscv_create_target_description): Update declaration with
9850         STATIC_IN_GDB.
9851         (riscv_lookup_target_description): New function, only define if
9852         GDBSERVER is not defined.
9853         * arch/riscv.h (riscv_create_target_description): Declare only
9854         when GDBSERVER is defined.
9855         (riscv_lookup_target_description): New declaration when GDBSERVER
9856         is not defined.
9857         * nat/riscv-linux-tdesc.c (riscv_linux_read_description): Rename to...
9858         (riscv_linux_read_features): ...this, and return
9859         riscv_gdbarch_features instead of target_desc.
9860         * nat/riscv-linux-tdesc.h: Include 'arch/riscv.h'.
9861         (riscv_linux_read_description): Rename to...
9862         (riscv_linux_read_features): ...this.
9863         * riscv-linux-nat.c (riscv_linux_nat_target::read_description):
9864         Update to use riscv_gdbarch_features and
9865         riscv_lookup_target_description.
9866         * riscv-tdep.c (riscv_find_default_target_description): Use
9867         riscv_lookup_target_description instead of
9868         riscv_create_target_description.
9870 2020-02-18  Simon Marchi  <simon.marchi@efficios.com>
9872         * valprint.c (generic_val_print_enum_1): When printing a flag
9873         enum with value 0 and there is no enumerator with value 0, print
9874         just "0" instead of "(unknown: 0x0)".
9876 2020-02-18  Simon Marchi  <simon.marchi@efficios.com>
9878         * valprint.c (generic_val_print_enum_1): Print unknown part of
9879         flag enum in hex.
9881 2020-02-18  Simon Marchi  <simon.marchi@efficios.com>
9883         * dwarf2/read.c (update_enumeration_type_from_children): Allow
9884         flag enums to contain duplicate enumerators.
9885         * valprint.c (generic_val_print_enum_1): Update comment.
9887 2020-02-18  Simon Marchi  <simon.marchi@efficios.com>
9889         * dwarf2/read.c: Include "count-one-bits.h".
9890         (update_enumeration_type_from_children): If an enumerator has
9891         multiple bits set, don't treat the enumeration as a "flag enum".
9892         * valprint.c (generic_val_print_enum_1): Assert that enumerators
9893         of flag enums have 0 or 1 bit set.
9895 2020-02-18  Bernd Edlinger  <bernd.edlinger@hotmail.de>
9897         * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Use an explicit
9898         conversion.
9899         * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise.
9900         * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn): Likewise.
9901         * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
9902         * rs6000-tdep.c (ppc_displaced_step_copy_insn): Likewise.
9903         * s390-tdep.c (s390_displaced_step_copy_insn): Likewise.
9905 2020-02-18  Simon Marchi  <simon.marchi@efficios.com>
9907         * MAINTAINERS: Change palmer@sifive.com to palmer@dabbelt.com.
9909 2020-02-14  Simon Marchi  <simon.marchi@efficios.com>
9911         * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Use
9912         displaced_step_closure_up.
9913         * aarch64-tdep.h (aarch64_displaced_step_copy_insn): Likewise.
9914         (struct displaced_step_closure_up):
9915         * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise.
9916         * amd64-tdep.h (amd64_displaced_step_copy_insn): Likewise.
9917         * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn):
9918         Likewise.
9919         * gdbarch.sh (displaced_step_copy_insn): Likewise.
9920         * gdbarch.c, gdbarch.h: Re-generate.
9921         * i386-linux-tdep.c (i386_linux_displaced_step_copy_insn): Use
9922         displaced_step_closure_up.
9923         * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
9924         * i386-tdep.h (i386_displaced_step_copy_insn): Likewise.
9925         * infrun.h (displaced_step_closure_up): New type alias.
9926         (struct displaced_step_inferior_state) <step_closure>: Change
9927         type to displaced_step_closure_up.
9928         * rs6000-tdep.c (ppc_displaced_step_copy_insn): Use
9929         displaced_step_closure_up.
9930         * s390-tdep.c (s390_displaced_step_copy_insn): Likewise.
9932 2020-02-14  Tom Tromey  <tom@tromey.com>
9934         * minidebug.c (gnu_debug_key): New global.
9935         (find_separate_debug_file_in_section): Use it.
9937 2020-02-14  Simon Marchi  <simon.marchi@efficios.com>
9939         * gdbarch.sh (displaced_step_copy_insn): Change return type to an
9940         std::unique_ptr.
9941         * gdbarch.c: Re-generate.
9942         * gdbarch.h: Re-generate.
9943         * infrun.c (displaced_step_prepare_throw): Adjust to std::unique_ptr
9944         change.
9945         * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Change return
9946         type to std::unique_ptr.
9947         * aarch64-tdep.h (aarch64_displaced_step_copy_insn): Likewise.
9948         * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise.
9949         * amd64-tdep.h (amd64_displaced_step_copy_insn): Likewise.
9950         * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn): Likewise.
9951         * i386-linux-tdep.c (i386_linux_displaced_step_copy_insn): Likewise.
9952         * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
9953         * i386-tdep.h (i386_displaced_step_copy_insn): Likewise.
9954         * rs6000-tdep.c (ppc_displaced_step_copy_insn): Likewise.
9955         * s390-tdep.c (s390_displaced_step_copy_insn): Likewise.
9957 2020-02-14  Simon Marchi  <simon.marchi@efficios.com>
9959         * infrun.c (get_displaced_step_closure_by_addr): Adjust to
9960         std::unique_ptr.
9961         (displaced_step_clear): Rename to...
9962         (displaced_step_reset): ... this.  Just call displaced->reset ().
9963         (displaced_step_clear_cleanup): Rename to...
9964         (displaced_step_reset_cleanup): ... this.
9965         (displaced_step_prepare_throw): Adjust to std::unique_ptr.
9966         (displaced_step_fixup): Likewise.
9967         (resume_1): Likewise.
9968         (handle_inferior_event): Restore child's memory before calling
9969         displaced_step_fixup on the parent.
9970         * infrun.h (displaced_step_inferior_state) <reset>: Adjust
9971         to std::unique_ptr.
9972         <step_closure>: Change type to std::unique_ptr.
9974 2020-02-14  Simon Marchi  <simon.marchi@efficios.com>
9976         * arm-tdep.c: Include count-one-bits.h.
9977         (cleanup_block_store_pc): Use count_one_bits.
9978         (cleanup_block_load_pc): Use count_one_bits.
9979         (arm_copy_block_xfer): Use count_one_bits.
9980         (thumb2_copy_block_xfer): Use count_one_bits.
9981         (thumb_copy_pop_pc_16bit): Use count_one_bits.
9982         * arch/arm-get-next-pcs.c: Include count-one-bits.h.
9983         (thumb_get_next_pcs_raw): Use count_one_bits.
9984         (arm_get_next_pcs_raw): Use count_one_bits_l.
9985         * arch/arm.c (bitcount): Remove.
9986         * arch/arm.h (bitcount): Remove.
9988 2020-02-14  Tom Tromey  <tromey@adacore.com>
9990         * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first):
9991         Update.
9992         * dwarf2/loc.h (call_site_find_chain): Return unique_xmalloc_ptr.
9993         * dwarf2/loc.c (call_site_find_chain_1): Return
9994         unique_xmalloc_ptr.
9995         (call_site_find_chain): Likewise.
9997 2020-02-14  Richard Biener  <rguenther@suse.de>
9999         * dwarf2/read.c (lnp_state_machine::handle_special_opcode): Apply CSE
10000         on expression with division operators.
10002 2020-02-13  Alok Kumar Sharma  <AlokKumar.Sharma@amd.com>
10004         * MAINTAINERS (Write After Approval): Adding myself.
10006 2020-02-12  Tom Tromey  <tom@tromey.com>
10008         * event-loop.c (event_data, gdb_event, event_handler_func):
10009         Remove.
10011 2020-02-12  Tom Tromey  <tom@tromey.com>
10013         * dwarf2/frame.c (dwarf2_frame_bfd_data): New global.
10014         (dwarf2_frame_objfile_data): Add comment.
10015         (find_comp_unit, set_comp_unit): New functions.
10016         (dwarf2_frame_find_fde): Use find_comp_unit.
10017         (dwarf2_build_frame_info): Use set_comp_unit.
10019 2020-02-12  Tom Tromey  <tom@tromey.com>
10021         * dwarf2/frame.c (struct comp_unit) <objfile>: Remove.
10022         (comp_unit): Don't initialize objfile.
10023         (execute_cfa_program): Add text_offset parameter.
10024         (execute_cfa_program_test, dwarf2_fetch_cfa_info)
10025         (dwarf2_frame_cache): Update.
10026         (dwarf2_build_frame_info): Don't set "objfile" member.
10028 2020-02-12  Tom Tromey  <tom@tromey.com>
10030         * dwarf2/frame.c (decode_frame_entry_1): Add gdbarch parameter.
10031         (decode_frame_entry): Likewise.
10032         (dwarf2_build_frame_info): Update.
10034 2020-02-12  Tom Tromey  <tom@tromey.com>
10036         * dwarf2/frame.c (struct comp_unit) <obstack>: New member.
10037         (decode_frame_entry_1): Use the comp_unit obstack.
10039 2020-02-12  Tom Tromey  <tom@tromey.com>
10041         * dwarf2/frame.c (struct comp_unit): Add initializers and
10042         constructor.
10043         (dwarf2_frame_objfile_data): Store a comp_unit.
10044         (dwarf2_frame_find_fde): Update.
10045         (dwarf2_build_frame_info): Use "new".
10047 2020-02-12  Tom Tromey  <tom@tromey.com>
10049         * dwarf2/frame.c (struct dwarf2_fde_table): Remove.
10050         (dwarf2_fde_table): Typedef for std::vector.
10051         (dwarf2_frame_objfile_data): Remove the deleter.  Now static.
10052         (dwarf2_frame_find_fde, add_fde, decode_frame_entry_1)
10053         (decode_frame_entry): Update.
10054         (dwarf2_build_frame_info): Use "new".
10056 2020-02-12  Christian Biesinger  <cbiesinger@google.com>
10058         * arm-tdep.c (arm_gdbarch_init): Update.
10059         * arm-tdep.h (struct gdbarch_tdep) <have_fpa_registers,
10060         have_wmmx_registers, have_vfp_pseudos, have_neon_pseudos,
10061         have_neon, is_m>: Change to bool.
10063 2020-02-12  Christian Biesinger  <cbiesinger@google.com>
10065         * arm-tdep.c (arm_dump_tdep): Print more fields of tdep.
10067 2020-02-12  Tom Tromey  <tom@tromey.com>
10069         * dwarf2/loc.c (struct dwarf_expr_baton): Remove.
10071 2020-02-12  Hannes Domani  <ssbssa@yahoo.de>
10073         * windows-tdep.c (struct windows_gdbarch_data): Add tib_ptr_type.
10074         (windows_get_tlb_type): Use windows_gdbarch_data->tib_ptr_type.
10076 2020-02-11  Tom Tromey  <tom@tromey.com>
10078         * psymtab.h: Update comment.
10080 2020-02-11  Tom Tromey  <tom@tromey.com>
10082         * gdb_obstack.h (struct auto_obstack): Use
10083         DISABLE_COPY_AND_ASSIGN.
10085 2020-02-11  Tom Tromey  <tom@tromey.com>
10087         * dwarf2/frame.h (struct objfile): Don't forward declare.
10089 2020-02-11  Christian Biesinger  <cbiesinger@google.com>
10091         * cris-tdep.c (cris_supply_gregset): Change signature to match
10092         what struct regset expects.
10093         (cris_regset): New struct.
10094         (fetch_core_registers): Remove.
10095         (cris_iterate_over_regset_sections): New function.
10096         (_initialize_cris_tdep): Don't call deprecated_add_core_fns.
10097         (cris_gdbarch_init): Call set_gdbarch_iterate_over_regset_sections.
10099 2020-02-11  Christian Biesinger  <cbiesinger@google.com>
10101         * arch/arm.h (enum gdb_regnum): Add comment for the FP0..7
10102         registers.
10104 2020-02-11  Christian Biesinger  <cbiesinger@google.com>
10106         * arm-tdep.c (arm_dump_tdep): Add \n in fprintf.
10108 2020-02-11  Simon Marchi  <simon.marchi@efficios.com>
10110         * configure: Re-generate.
10112 2020-02-11  Simon Marchi  <simon.marchi@efficios.com>
10114         * configure: Re-generate.
10116 2020-02-11  Simon Marchi  <simon.marchi@efficios.com>
10118         * acinclude: Update warning.m4 path.
10119         * warning.m4: Move to gdbsupport.
10121 2020-02-11  Tom Tromey  <tromey@adacore.com>
10123         * remote.c (remote_console_output): Update.
10124         * printcmd.c (printf_command): Update.
10125         * event-loop.c (gdb_wait_for_event): Update.
10126         * linux-nat.c (sigchld_handler): Update.
10127         * remote-sim.c (gdb_os_write_stdout): Update.
10128         (gdb_os_flush_stdout): Update.
10129         (gdb_os_flush_stderr): Update.
10130         (gdb_os_write_stderr): Update.
10131         * exceptions.c (print_exception): Update.
10132         * remote-fileio.c (remote_fileio_func_read): Update.
10133         (remote_fileio_func_write): Update.
10134         * tui/tui.c (tui_enable): Update.
10135         * tui/tui-interp.c (tui_interp::init): Update.
10136         * utils.c (init_page_info): Update.
10137         (putchar_unfiltered, fputc_unfiltered): Update.
10138         (gdb_flush): Update.
10139         (emit_style_escape): Update.
10140         (flush_wrap_buffer, fputs_maybe_filtered): Update.
10141         * ui-file.c (ui_file_isatty, ui_file_read, ui_file_write)
10142         (ui_file_write_async_safe, ui_file_flush, ui_file_puts): Remove.
10143         (stderr_file::write): Update.
10144         (stderr_file::puts): Update.
10145         * ui-file.h (ui_file_isatty, ui_file_write)
10146         (ui_file_write_async_safe, ui_file_read, ui_file_flush)
10147         (ui_file_puts): Don't declare.
10149 2020-02-10  Tom de Vries  <tdevries@suse.de>
10151         * dwarf2/read.c (process_psymtab_comp_unit_reader): Cast concat NULL
10152         sentinel to char *.
10154 2020-02-09  Tom de Vries  <tdevries@suse.de>
10156         * dwarf2read.c (process_psymtab_comp_unit_reader): Append CU offset to
10157         filename if it matches "<artificial>".
10159 2020-02-09  Hannes Domani  <ssbssa@yahoo.de>
10161         * windows-tdep.c (struct enum_value_name): New struct.
10162         (create_enum): New function.
10163         (windows_get_siginfo_type): Create and use enum types.
10165 2020-02-09  Hannes Domani  <ssbssa@yahoo.de>
10167         * NEWS: Mention $_siginfo support for Windows.
10168         * windows-nat.c (handle_exception): Set siginfo_er.
10169         (windows_nat_target::mourn_inferior): Reset siginfo_er.
10170         (windows_xfer_siginfo): New function.
10171         (windows_nat_target::xfer_partial): Call windows_xfer_siginfo.
10172         * windows-tdep.c (struct windows_gdbarch_data): New struct.
10173         (init_windows_gdbarch_data): New function.
10174         (get_windows_gdbarch_data): New function.
10175         (windows_get_siginfo_type): New function.
10176         (windows_init_abi): Register windows_get_siginfo_type.
10177         (_initialize_windows_tdep): Register init_windows_gdbarch_data.
10179 2020-02-08  Tom Tromey  <tom@tromey.com>
10181         * dwarf2/read.c (class cutu_reader) <cutu_reader,
10182         init_tu_and_read_dwo_dies>: Remove "keep" parameter.
10183         <keep>: Declare method.
10184         <m_keep>: Remove member.
10185         <~cutu_reader>: Remove.
10186         (cutu_reader::init_tu_and_read_dwo_dies): Update.
10187         (cutu_reader::cutu_reader): Update.
10188         (cutu_reader::keep): Rename from ~cutu_reader.
10189         (process_psymtab_comp_unit, build_type_psymtabs_1)
10190         (process_skeletonless_type_unit, load_partial_comp_unit)
10191         (load_full_comp_unit, dwarf2_read_addr_index)
10192         (read_signatured_type): Update.
10194 2020-02-08  Tom Tromey  <tom@tromey.com>
10196         * dwarf2/read.c (process_psymtab_comp_unit_reader): Remove
10197         "want_partial_unit" parameter.
10198         (process_psymtab_comp_unit): Change want_partial_unit to bool.
10199         Inline check for DW_TAG_partial_unit.
10200         (dwarf2_build_psymtabs_hard, scan_partial_symbols): Update.
10202 2020-02-08  Tom Tromey  <tom@tromey.com>
10204         * dwarf2/read.c (read_n_bytes, read_direct_string): Move to
10205         read.c.
10206         * dwarf2/leb.h (read_n_bytes, read_direct_string): Move from
10207         read.c.
10209 2020-02-08  Tom Tromey  <tom@tromey.com>
10211         * dwarf2/read.c (read_address): Move to comp-unit.c.
10212         (dwarf2_rnglists_process, dwarf2_ranges_process)
10213         (read_attribute_value, dwarf_decode_lines_1)
10214         (var_decode_location, decode_locdesc): Update.
10215         * dwarf2/comp-unit.c (comp_unit_head::read_address): Move from
10216         read.c.  Remove "cu" parameter.
10217         * dwarf2/comp-unit.h (struct comp_unit_head) <read_address>: New
10218         method.
10220 2020-02-08  Tom Tromey  <tom@tromey.com>
10222         * dwarf2/read.c (read_attribute_value, read_indirect_string)
10223         (read_indirect_line_string): Update.
10224         * dwarf2/comp-unit.c (read_offset): Remove.
10225         (read_comp_unit_head): Update.
10226         * dwarf2/comp-unit.h (struct comp_unit_head) <read_offset>: New
10227         method.
10228         (read_offset): Don't declare.
10230 2020-02-08  Tom Tromey  <tom@tromey.com>
10232         * Makefile.in (COMMON_SFILES): Add dwarf2/comp-unit.c.
10233         * dwarf2/read.c (struct comp_unit_head): Move to
10234         dwarf2/comp-unit.h.
10235         (enum class rcuh_kind): Move to comp-unit.h.
10236         (get_cu_length, offset_in_cu_p): Now methods on comp_unit_head.
10237         (read_comp_unit_head, error_check_comp_unit_head)
10238         (read_and_check_comp_unit_head): Move to comp-unit.c.
10239         (read_offset, dwarf_unit_type_name): Likewise.
10240         (create_debug_type_hash_table, read_cutu_die_from_dwo)
10241         (cutu_reader::cutu_reader, read_call_site_scope)
10242         (find_partial_die, follow_die_offset): Update.
10243         * dwarf2/comp-unit.h: New file, from dwarf2read.c.
10245 2020-02-08  Tom Tromey  <tom@tromey.com>
10247         * dwarf2/read.c (read_offset_1): Move to leb.c.
10248         (read_abbrev_offset, read_offset, dwarf_decode_line_header)
10249         (dwarf_decode_macro_bytes): Update.
10250         * dwarf2/leb.c (read_offset): Rename; move from read.c.
10251         * dwarf2/leb.h (read_offset): Declare.
10253 2020-02-08  Tom Tromey  <tom@tromey.com>
10255         * dwarf2/read.c (dwarf2_section_size): Remove.
10256         (error_check_comp_unit_head, dwarf2_symbol_mark_computed):
10257         Update.
10258         * dwarf2/section.h (struct dwarf2_section_info) <get_size>: New method.
10260 2020-02-08  Tom Tromey  <tom@tromey.com>
10262         * dwarf2/read.c (read_initial_length): Move to leb.c.
10263         * dwarf2/leb.h (read_initial_length): Declare.
10264         * dwarf2/leb.c (read_initial_length): Move from read.c.  Add
10265         handle_nonstd parameter.
10266         * dwarf2/frame.c (read_initial_length): Remove.
10267         (decode_frame_entry_1): Update.
10269 2020-02-08  Tom Tromey  <tom@tromey.com>
10271         * dwarf2/loc.c (dwarf2_find_location_expression)
10272         (dwarf_evaluate_loc_desc::get_tls_address)
10273         (dwarf_evaluate_loc_desc::push_dwarf_reg_entry_value)
10274         (rw_pieced_value, dwarf2_evaluate_loc_desc_full)
10275         (dwarf2_locexpr_baton_eval, dwarf2_evaluate_property)
10276         (dwarf2_compile_property_to_c)
10277         (dwarf2_loc_desc_get_symbol_read_needs)
10278         (dwarf2_compile_expr_to_ax, locexpr_describe_location)
10279         (locexpr_tracepoint_var_ref, locexpr_generate_c_location)
10280         (loclist_describe_location, loclist_tracepoint_var_ref)
10281         (loclist_generate_c_location): Update.
10282         * compile/compile-loc2c.c (do_compile_dwarf_expr_to_c): Update.
10283         * dwarf2/loc.h (dwarf2_per_cu_objfile, dwarf2_per_cu_addr_size)
10284         (dwarf2_per_cu_ref_addr_size, dwarf2_per_cu_offset_size)
10285         (dwarf2_per_cu_text_offset, dwarf2_version): Don't declare.
10286         * dwarf2/read.c (dwarf2_per_cu_data::objfile)
10287         (dwarf2_per_cu_data::addr_size)
10288         (dwarf2_per_cu_data::ref_addr_size)
10289         (dwarf2_per_cu_data::text_offset)
10290         (dwarf2_per_cu_data::addr_type): Now methods.
10291         (per_cu_header_read_in): Make per_cu "const".
10292         (dwarf2_version): Remove.
10293         (dwarf2_per_cu_data::int_type): Now a method.
10294         (dwarf2_per_cu_data::_addr_sized_int_type): Likewise.
10295         (set_die_type, read_array_type, read_subrange_index_type)
10296         (read_tag_string_type, read_subrange_type): Update.
10297         * dwarf2/read.h (struct dwarf2_per_cu_data) <addr_size,
10298         offset_size, ref_addr_size, text_offset, addr_type, version,
10299         objfile, int_type, addr_sized_int_type>: Declare methods.
10301 2020-02-08  Tom Tromey  <tom@tromey.com>
10303         * dwarf2/read.h (struct dwarf2_per_cu_data) <imported_symtabs>:
10304         Move earlier.
10306 2020-02-08  Tom Tromey  <tom@tromey.com>
10308         * dwarf2/read.h (dwarf_line_debug): Declare.
10309         * Makefile.in (COMMON_SFILES): Add dwarf2/line-header.c.
10310         * dwarf2/read.c: Move line_header code to new files.
10311         (dwarf_line_debug): No longer static.
10312         * dwarf2/line-header.c: New file.
10313         * dwarf2/line-header.h: New file.
10315 2020-02-08  Tom Tromey  <tom@tromey.com>
10317         * dwarf2/read.c (struct line_header) <file_full_name,
10318         file_file_name>: Return unique_xmalloc_ptr.
10319         (line_header::file_file_name): Update.
10320         (line_header::file_full_name): Update.
10321         (dw2_get_file_names_reader): Update.
10322         (macro_start_file): Update.
10324 2020-02-08  Tom Tromey  <tom@tromey.com>
10326         * dwarf2/read.c (struct line_header) <file_full_name,
10327         file_file_name>: Declare methods.
10328         (dw2_get_file_names_reader): Update.
10329         (file_file_name): Now a method.
10330         (file_full_name): Likewise.
10331         (macro_start_file): Update.
10333 2020-02-08  Tom Tromey  <tom@tromey.com>
10335         * dwarf2/read.c (dwarf_always_disassemble)
10336         (show_dwarf_always_disassemble): Move to loc.c.
10337         (_initialize_dwarf2_read): Move "always-disassemble" registration
10338         to loc.c.
10339         * dwarf2/read.h (dwarf_always_disassemble): Don't declare.
10340         * dwarf2/loc.c (dwarf_always_disassemble): Move from read.c.  Now
10341         static.
10342         (show_dwarf_always_disassemble): Move from read.c.
10343         (_initialize_dwarf2loc): Move always-disassemble from read.c.
10345 2020-02-08  Tom Tromey  <tom@tromey.com>
10347         * dwarf2/read.c (~dwarf2_per_objfile): Update.
10348         (create_quick_file_names_table): Return htab_up.
10349         (dw2_get_file_names_reader, dw2_forget_cached_source_info):
10350         Update.
10351         * dwarf2/read.h (struct dwarf2_per_objfile)
10352         <quick_file_names_table>: Now htab_up.
10354 2020-02-08  Tom Tromey  <tom@tromey.com>
10356         * dwarf2/abbrev.c (abbrev_table::read): Simplify.
10358 2020-02-08  Tom Tromey  <tom@tromey.com>
10360         * dwarf2/abbrev.c (abbrev_table): Move constructor from header.
10361         Rewrite.
10362         (abbrev_table::add_abbrev, abbrev_table::lookup_abbrev): Rewrite.
10363         * dwarf2/abbrev.h (struct abbrev_info) <next>: Remove.
10364         (abbrev_table::abbrev_table): No longer inline.
10365         (ABBREV_HASH_SIZE): Remove.
10366         (abbrev_table::m_abbrevs): Now an htab_up.
10368 2020-02-08  Tom Tromey  <tom@tromey.com>
10370         * dwarf2/read.c (read_cutu_die_from_dwo): Update.
10371         (cutu_reader): Update.
10372         (build_type_psymtabs_1): Update.
10373         * dwarf2/abbrev.c (abbrev_table::read): Rename.
10374         (abbrev_table::alloc_abbrev): Update.
10375         * dwarf2/abbrev.h (abbrev_table_up): Move earlier.
10376         (abbrev_table::read): New static method, renamed from
10377         abbrev_table_read_table.
10378         (abbrev_table::alloc_abbrev)
10379         (abbrev_table::add_abbrev): Now private.
10380         (abbrev_table::abbrev_table): Now private.
10381         (abbrev_table::m_abbrev_obstack): Now private.  Rename.
10383 2020-02-08  Tom Tromey  <tom@tromey.com>
10385         * dwarf2/read.c (set_die_type, get_die_type_at_offset): Update.
10386         * dwarf2/read.h (struct dwarf2_per_objfile) <die_type_hash>: Now
10387         htab_up.
10389 2020-02-08  Tom Tromey  <tom@tromey.com>
10391         * dwarf2/read.c (struct dwp_file) <loaded_cus, loaded_tus>: Now
10392         htab_up.
10393         (lookup_dwo_unit_in_dwp): Update.
10394         (allocate_dwp_loaded_cutus_table): Return htab_up.  Don't allocate
10395         on obstack.
10397 2020-02-08  Tom Tromey  <tom@tromey.com>
10399         * dwarf2/read.c (allocate_dwo_file_hash_table): Don't allocate on
10400         obstack.
10402 2020-02-08  Tom Tromey  <tom@tromey.com>
10404         * dwarf2/read.c (~dwarf2_per_objfile): Don't delete
10405         line_header_hash.
10406         (handle_DW_AT_stmt_list): Update.  Don't allocate on obstack.
10407         * dwarf2/read.h (struct dwarf2_per_objfile) <line_header_hash>:
10408         Change type to htab_up.
10410 2020-02-08  Tom Tromey  <tom@tromey.com>
10412         * dwarf2/read.c (allocate_type_unit_groups_table): Return
10413         htab_up.  Don't allocate on obstack.
10414         (get_type_unit_group, dwarf2_build_psymtabs_hard): Update.
10415         * dwarf2/read.h (struct dwarf2_per_objfile) <type_unit_groups>:
10416         Change type to htab_up.
10418 2020-02-08  Tom Tromey  <tom@tromey.com>
10420         * dwarf2/read.h (struct dwarf2_per_objfile) <signatured_types>:
10421         Change type to htab_up.
10422         * dwarf2/read.c (create_signatured_type_table_from_index)
10423         (create_signatured_type_table_from_debug_names)
10424         (create_all_type_units, add_type_unit)
10425         (lookup_dwo_signatured_type, lookup_signatured_type)
10426         (process_skeletonless_type_unit): Update.
10427         (create_debug_type_hash_table, create_debug_types_hash_table):
10428         Change type of types_htab.
10429         (allocate_signatured_type_table, allocate_dwo_unit_table): Return
10430         htab_up.  Don't allocate on obstack.
10431         (create_cus_hash_table): Change type of cus_htab parameter.
10432         (struct dwo_file) <cus, tus>: Now htab_up.
10433         (lookup_dwo_signatured_type, lookup_dwo_cutu)
10434         (process_dwo_file_for_skeletonless_type_units, lookup_dwo_cutu)
10435         (queue_and_load_all_dwo_tus): Update.
10436         * dwarf2/index-write.c (write_gdbindex): Update.
10437         (write_debug_names): Update.
10439 2020-02-08  Tom Tromey  <tom@tromey.com>
10441         * dwarf2/read.h (struct dwarf2_queue_item): Move from
10442         dwarf2/read.c.  Remove "next" member.  Add constructor ntad
10443         destructor.
10444         (struct dwarf2_per_objfile) <queue>: New member.
10445         * dwarf2/read.c (struct dwarf2_queue_item): Move to
10446         dwarf2/read.h.
10447         (dwarf2_queue, dwarf2_queue_tail): Remove.
10448         (class dwarf2_queue_guard): Add parameter to constructor.  Use
10449         DISABLE_COPY_AND_ASSIGN.
10450         <m_per_objfile>: New member.
10451         <~dwarf2_queue_guard>: Rewrite.
10452         (dw2_do_instantiate_symtab, queue_comp_unit, process_queue):
10453         Update.
10454         (~dwarf2_queue_item): New.
10456 2020-02-08  Tom Tromey  <tom@tromey.com>
10458         * dwarf2/read.c (struct die_info) <has_children>: New member.
10459         (dw2_get_file_names_reader): Remove has_children.
10460         (dw2_get_file_names): Update.
10461         (read_cutu_die_from_dwo): Remove has_children.
10462         (cutu_reader::init_tu_and_read_dwo_dies)
10463         (cutu_reader::cutu_reader): Update.
10464         (process_psymtab_comp_unit_reader, build_type_psymtabs_reader):
10465         Remove has_children.
10466         (build_type_psymtabs_1, process_skeletonless_type_unit)
10467         (load_partial_comp_unit, load_full_comp_unit): Update.
10468         (create_dwo_cu_reader): Remove has_children.
10469         (create_cus_hash_table, read_die_and_children): Update.
10470         (read_full_die_1,read_full_die): Remove has_children.
10471         (read_signatured_type): Update.
10472         (class cutu_reader) <has_children>: Remove.
10474 2020-02-08  Tom Tromey  <tom@tromey.com>
10476         * dwarf2/expr.c: Rename from dwarf2expr.c.
10477         * dwarf2/expr.h: Rename from dwarf2expr.h.
10478         * dwarf2/frame-tailcall.c: Rename from dwarf2-frame-tailcall.c.
10479         * dwarf2/frame-tailcall.h: Rename from dwarf2-frame-tailcall.h.
10480         * dwarf2/frame.c: Rename from dwarf2-frame.c.
10481         * dwarf2/frame.h: Rename from dwarf2-frame.h.
10482         * dwarf2/index-cache.c: Rename from dwarf-index-cache.c.
10483         * dwarf2/index-cache.h: Rename from dwarf-index-cache.h.
10484         * dwarf2/index-common.c: Rename from dwarf-index-common.c.
10485         * dwarf2/index-common.h: Rename from dwarf-index-common.h.
10486         * dwarf2/index-write.c: Rename from dwarf-index-write.c.
10487         * dwarf2/index-write.h: Rename from dwarf-index-write.h.
10488         * dwarf2/loc.c: Rename from dwarf2loc.c.
10489         * dwarf2/loc.h: Rename from dwarf2loc.h.
10490         * dwarf2/read.c: Rename from dwarf2read.c.
10491         * dwarf2/read.h: Rename from dwarf2read.h.
10492         * dwarf2/abbrev.c, aarch64-tdep.c, alpha-tdep.c,
10493         amd64-darwin-tdep.c, arc-tdep.c, arm-tdep.c, bfin-tdep.c,
10494         compile/compile-c-symbols.c, compile/compile-cplus-symbols.c,
10495         compile/compile-loc2c.c, cris-tdep.c, csky-tdep.c, findvar.c,
10496         gdbtypes.c, guile/scm-type.c, h8300-tdep.c, hppa-bsd-tdep.c,
10497         hppa-linux-tdep.c, i386-darwin-tdep.c, i386-linux-tdep.c,
10498         i386-tdep.c, iq2000-tdep.c, m32c-tdep.c, m68hc11-tdep.c,
10499         m68k-tdep.c, microblaze-tdep.c, mips-tdep.c, mn10300-tdep.c,
10500         msp430-tdep.c, nds32-tdep.c, nios2-tdep.c, or1k-tdep.c,
10501         riscv-tdep.c, rl78-tdep.c, rs6000-tdep.c, rx-tdep.c, s12z-tdep.c,
10502         s390-tdep.c, score-tdep.c, sh-tdep.c, sparc-linux-tdep.c,
10503         sparc-tdep.c, sparc64-linux-tdep.c, sparc64-tdep.c, tic6x-tdep.c,
10504         tilegx-tdep.c, v850-tdep.c, xstormy16-tdep.c, xtensa-tdep.c:
10505         Update.
10506         * Makefile.in (COMMON_SFILES): Update.
10507         (HFILES_NO_SRCDIR): Update.
10509 2020-02-08  Tom Tromey  <tom@tromey.com>
10511         * dwarf2read.c (struct die_reader_specs) <comp_dir>: Remove.
10512         (init_cu_die_reader, read_cutu_die_from_dwo): Update.
10514 2020-02-08  Tom Tromey  <tom@tromey.com>
10516         * dwarf2read.h (struct die_info): Don't declare.
10518 2020-02-08  Tom Tromey  <tom@tromey.com>
10520         * dwarf2read.h (die_info_ptr): Remove typedef.
10522 2020-02-08  Tom Tromey  <tom@tromey.com>
10524         * dwarf2read.c (read_call_site_scope)
10525         (handle_data_member_location, dwarf2_add_member_fn)
10526         (mark_common_block_symbol_computed, read_common_block)
10527         (attr_to_dynamic_prop, partial_die_info::read)
10528         (var_decode_location, dwarf2_fetch_die_loc_sect_off)
10529         (dwarf2_symbol_mark_computed, set_die_type): Update.
10530         * dwarf2/attribute.h (struct attribute) <form_is_block>: Declare
10531         method.
10532         (attr_form_is_block): Don't declare.
10533         * dwarf2/attribute.c (attribute::form_is_block): Now a method.
10535 2020-02-08  Tom Tromey  <tom@tromey.com>
10537         * dwarf2read.c (dwarf2_find_base_address, )
10538         (read_call_site_scope, rust_containing_type)
10539         (dwarf2_get_pc_bounds, dwarf2_record_block_ranges)
10540         (handle_data_member_location, dwarf2_add_member_fn)
10541         (get_alignment, read_structure_type, process_structure_scope)
10542         (mark_common_block_symbol_computed, read_common_block)
10543         (read_tag_string_type, attr_to_dynamic_prop, read_subrange_type)
10544         (partial_die_info::read, read_attribute_value, new_symbol)
10545         (lookup_die_type, dwarf2_get_ref_die_offset)
10546         (dwarf2_get_attr_constant_value, follow_die_ref_or_sig)
10547         (dwarf2_fetch_die_loc_sect_off, get_DW_AT_signature_type)
10548         (dwarf2_symbol_mark_computed): Update.
10549         * dwarf2/attribute.h (struct attribute) <value_as_address,
10550         form_is_section_offset, form_is_constant, form_is_ref>: Declare
10551         methods.
10552         (value_as_address, attr_form_is_section_offset)
10553         (attr_form_is_constant, attr_form_is_ref): Don't declare.
10554         * dwarf2/attribute.c (attribute::value_as_address)
10555         (attribute::form_is_section_offset, attribute::form_is_constant)
10556         (attribute::form_is_ref): Now methods.
10558 2020-02-08  Tom Tromey  <tom@tromey.com>
10560         * dwarf2read.c (struct attribute, DW_STRING)
10561         (DW_STRING_IS_CANONICAL, DW_UNSND, DW_BLOCK, DW_SND, DW_ADDR)
10562         (DW_SIGNATURE, struct dwarf_block, attr_value_as_address)
10563         (attr_form_is_block, attr_form_is_section_offset)
10564         (attr_form_is_constant, attr_form_is_ref): Move.
10565         * dwarf2/attribute.h: New file.
10566         * dwarf2/attribute.c: New file, from dwarf2read.c.
10567         * Makefile.in (COMMON_SFILES): Add dwarf2/attribute.c.
10569 2020-02-08  Tom Tromey  <tom@tromey.com>
10571         * dwarf2read.c (abbrev_table_up, struct abbrev_info)
10572         (struct attr_abbrev, ABBREV_HASH_SIZE, struct abbrev_table):
10573         Move.
10574         (read_cutu_die_from_dwo, build_type_psymtabs_1): Update.
10575         (abbrev_table::alloc_abbrev, abbrev_table::add_abbrev)
10576         (abbrev_table::lookup_abbrev, abbrev_table_read_table): Move to
10577         abbrev.c.
10578         * dwarf2/abbrev.h: New file.
10579         * dwarf2/abbrev.c: New file, from dwarf2read.c.
10580         * Makefile.in (COMMON_SFILES): Add dwarf2/abbrev.c.
10582 2020-02-08  Tom Tromey  <tom@tromey.com>
10584         * dwarf2read.c (dwarf2_section_buffer_overflow_complaint)
10585         (dwarf2_section_size, dwarf2_get_section_info)
10586         (create_signatured_type_table_from_debug_names)
10587         (create_addrmap_from_aranges, read_debug_names_from_section)
10588         (get_gdb_index_contents_from_section, read_comp_unit_head)
10589         (error_check_comp_unit_head, read_abbrev_offset)
10590         (create_debug_type_hash_table, init_cu_die_reader)
10591         (read_cutu_die_from_dwo, dwarf2_build_psymtabs_hard)
10592         (read_comp_units_from_section, create_cus_hash_table)
10593         (create_dwp_hash_table, create_dwo_unit_in_dwp_v1)
10594         (create_dwp_v2_section, dwarf2_rnglists_process)
10595         (dwarf2_ranges_process, read_die_and_siblings, read_full_die)
10596         (abbrev_table_read_table, read_indirect_string_at_offset_from)
10597         (read_indirect_string_from_dwz, read_addr_index_1)
10598         (read_str_index, dwarf_decode_line_header, skip_form_bytes)
10599         (dwarf_decode_macro_bytes, dwarf_decode_macros)
10600         (fill_in_loclist_baton): Update.
10601         * dwarf2/section.h (struct dwarf2_section_info) <get_name,
10602         get_containing_section, get_bfd_owner, get_bfd_section,
10603         get_file_name, get_id, get_flags, empty, read>: Declare methods.
10604         (dwarf2_read_section, get_section_name, get_section_file_name)
10605         (get_containing_section, get_section_bfd_owner)
10606         (get_section_bfd_section, get_section_name, get_section_file_name)
10607         (get_section_id, get_section_flags, dwarf2_section_empty_p): Don't
10608         declare.
10609         * dwarf2/section.c (dwarf2_section_info::get_containing_section)
10610         (dwarf2_section_info::get_bfd_owner)
10611         (dwarf2_section_info::get_bfd_section)
10612         (dwarf2_section_info::get_name)
10613         (dwarf2_section_info::get_file_name, dwarf2_section_info::get_id)
10614         (dwarf2_section_info::get_flags, dwarf2_section_info::empty)
10615         (dwarf2_section_info::read): Now methods.
10616         * dwarf-index-write.c (class debug_names): Update.
10618 2020-02-08  Tom Tromey  <tom@tromey.com>
10620         * dwarf2read.h (struct dwarf2_section_info, dwarf2_read_section):
10621         Move to dwarf2/section.h.
10622         * dwarf2read.c (get_containing_section, get_section_bfd_owner)
10623         (get_section_bfd_section, get_section_name)
10624         (get_section_file_name, get_section_id, get_section_flags)
10625         (dwarf2_section_empty_p, dwarf2_read_section): Moe to
10626         dwarf2/section.c.
10627         * dwarf2/section.h: New file.
10628         * dwarf2/section.c: New file, from dwarf2read.c.
10629         * Makefile.in (COMMON_SFILES): Add dwarf2/section.c.
10631 2020-02-08  Tom Tromey  <tom@tromey.com>
10633         * dwarf2read.h (read_unsigned_leb128): Don't declare.
10634         * dwarf2read.c (read_1_byte, read_1_signed_byte, read_2_bytes)
10635         (read_2_signed_bytes, read_3_bytes, read_4_bytes)
10636         (read_4_signed_bytes, read_8_bytes): Move to dwarf2/leb.h.
10637         (read_unsigned_leb128, read_signed_leb128): Move to dwarf2/leb.c.
10638         * dwarf2/leb.h: New file, from dwarf2read.c.
10639         * dwarf2/leb.c: New file, from dwarf2read.c.
10640         * dwarf2-frame.c (read_1_byte, read_4_bytes, read_8_bytes):
10641         Remove.
10642         * Makefile.in (CONFIG_SRC_SUBDIR): Add dwarf2.
10643         (COMMON_SFILES): Add dwarf2/leb.c.
10645 2020-02-08  Joel Brobecker  <brobecker@adacore.com>
10647         GDB 9.1 released.
10649 2020-02-05  Iain Buclaw  <ibuclaw@gdcproject.org>
10651         PR gdb/25190:
10652         * gdb/remote-sim.c (gdb_os_write_stderr): Update.
10653         * gdb/remote.c (remote_console_output): Update.
10654         * gdb/ui-file.c (fputs_unfiltered): Rename to...
10655         (ui_file_puts): ...this.
10656         * gdb/ui-file.h (ui_file_puts): Add declaration.
10657         * gdb/utils.c (emit_style_escape): Update.
10658         (flush_wrap_buffer): Update.
10659         (fputs_maybe_filtered): Update.
10660         (fputs_unfiltered): Add function.
10662 2020-02-05  Iain Buclaw  <ibuclaw@gdcproject.org>
10664         * gdb/event-loop.c (gdb_wait_for_event): Update.
10665         * gdb/printcmd.c (printf_command): Update.
10666         * gdb/remote-fileio.c (remote_fileio_func_write): Update.
10667         * gdb/remote-sim.c (gdb_os_flush_stdout): Update.
10668         (gdb_os_flush_stderr): Update.
10669         * gdb/remote.c (remote_console_output): Update.
10670         * gdb/ui-file.c (gdb_flush): Rename to...
10671         (ui_file_flush): ...this.
10672         (stderr_file::write): Update.
10673         (stderr_file::puts): Update.
10674         * gdb/ui-file.h (gdb_flush): Rename to...
10675         (ui_file_flush): ...this.
10676         * gdb/utils.c (gdb_flush): Add function.
10677         * gdb/utils.h (gdb_flush): Add declaration.
10679 2020-02-07  Tom Tromey  <tromey@adacore.com>
10681         PR breakpoints/24915:
10682         * source.c (find_and_open_source): Do not check basenames_may_differ.
10684 2020-02-07  Tom Tromey  <tom@tromey.com>
10686         * README: Update gdbserver documentation.
10687         * gdbserver: Move to top level.
10688         * configure.tgt (build_gdbserver): Remove.
10689         * configure.ac: Remove --enable-gdbserver.
10690         * configure: Rebuild.
10691         * Makefile.in (distclean): Don't mention gdbserver.
10693 2020-02-06  Shahab Vahedi  <shahab@synopsys.com>
10695         * source-cache.c (source_cache::ensure): Surround
10696         get_plain_source_lines with a try/catch.
10697         (source_cache::get_line_charpos): Get rid of try/catch
10698         and only check for the return value of "ensure".
10699         * tui/tui-source.c (tui_source_window::set_contents):
10700         Simplify "nlines" calculation.
10702 2020-02-06  Shahab Vahedi  <shahab@synopsys.com>
10704         * MAINTAINERS (Write After Approval): Add myself.
10706 2020-02-05  Christian Biesinger  <cbiesinger@google.com>
10708         * sparc-nat.h (struct sparc_target) <xfer_partial>: Fix base class
10709         function call.
10711 2020-02-05  Christian Biesinger  <cbiesinger@google.com>
10713         * ppc-nbsd-tdep.h: Fix macro name in #endif comment.
10715 2020-02-05  Maciej W. Rozycki  <macro@wdc.com>
10717         * nat/riscv-linux-tdesc.h: New file.
10718         * nat/riscv-linux-tdesc.c: New file, taking code from...
10719         * riscv-linux-nat.c (riscv_linux_nat_target::read_description):
10720         ... here.
10721         * configure.nat <linux> <riscv*>: Add nat/riscv-linux-tdesc.o to
10722         NATDEPFILES.
10724 2020-02-04  Andrew Burgess  <andrew.burgess@embecosm.com>
10726         * remote-sim.c (sim_inferior_data::sim_inferior_data): Assert that
10727         we don't set the fake simulator ptid to the null_ptid.
10729 2020-02-03  Simon Marchi  <simon.marchi@efficios.com>
10731         * fork-child.c (gdb_startup_inferior): Use bool instead of int.
10732         * gdbthread.h (class thread_info) <resumed>: Likewise.
10733         * infrun.c (resume_1): Likewise.
10734         (proceed): Likewise.
10735         (infrun_thread_stop_requested): Likewise.
10736         (stop_all_threads): Likewise.
10737         (handle_inferior_event): Likewise.
10738         (restart_threads): Likewise.
10739         (finish_step_over): Likewise.
10740         (keep_going_stepped_thread): Likewise.
10741         * linux-nat.c (attach_proc_task_lwp_callback): Likewise.
10742         (linux_handle_extended_wait): Likewise.
10743         * record-btrace.c (get_thread_current_frame_id): Likewise.
10744         * record-full.c (record_full_wait_1): Likewise.
10745         * remote.c (remote_target::process_initial_stop_replies): Likewise.
10746         * target.c (target_resume): Likewise.
10747         * thread.c (set_running_thread): Likewise.
10749 2020-02-03  Alok Kumar Sharma  <AlokKumar.Sharma@amd.com>
10751         * f-valprint.c (f77_print_array_1): Changed datatype of index
10752         variable to LONGEST from int to enable it to contain bound
10753         values correctly.
10755 2020-02-03  Maciej W. Rozycki  <macro@wdc.com>
10757         * riscv-linux-nat.c [!NFPREG] (NFPREG): New macro.
10758         (supply_fpregset_regnum, fill_fpregset): Handle regset buffer
10759         offsets according to FLEN determined.
10760         (riscv_linux_nat_target::read_description): Determine FLEN
10761         dynamically.
10762         (riscv_linux_nat_target::fetch_registers): Size regset buffer
10763         according to FLEN determined.
10764         (riscv_linux_nat_target::store_registers): Likewise.
10766 2020-02-01  Shahab Vahedi  <shahab@synopsys.com>
10768         * target-descriptions.c (tdesc_register_in_reggroup_p): Return 0
10769         when reg->group is empty and reggroup is not.
10771 2020-01-31  Tom Tromey  <tromey@adacore.com>
10773         * ravenscar-thread.c (ravenscar_thread_target::mourn_inferior):
10774         Call beneath target's mourn_inferior after unpushing.
10776 2020-01-31  Andrew Burgess  <andrew.burgess@embecosm.com>
10778         PR tui/9765
10779         * tui/tui-disasm.c (tui_find_disassembly_address): If we don't
10780         have enough lines to fill the screen, still return the lowest
10781         address we found.
10783 2020-01-31  Andrew Burgess  <andrew.burgess@embecosm.com>
10785         * tui/tui-win.c (_initialize_tui_win): Update help text for '+',
10786         '-', '<', and '>' commands.
10788 2020-01-29  Pedro Alves  <palves@redhat.com>
10789             Sergio Durigan Junior  <sergiodj@redhat.com>
10791         * infcmd.c (construct_inferior_arguments): Assert that
10792         'argc' is greater than 0.
10794 2020-01-29  Luis Machado  <luis.machado@linaro.org>
10796         * aarch64-tdep.c (BRK_INSN_MASK): Define to 0xffe0001f.
10797         (BRK_INSN_MASK): Define to 0xd4200000.
10798         (aarch64_program_breakpoint_here_p): New function.
10799         (aarch64_gdbarch_init): Set gdbarch_program_breakpoint_here_p hook.
10800         * arch-utils.c (default_program_breakpoint_here_p): Moved from
10801         breakpoint.c.
10802         * arch-utils.h (default_program_breakpoint_here_p): Moved from
10803         breakpoint.h
10804         * breakpoint.c (bp_loc_is_permanent): Changed return type to bool and
10805         call gdbarch_program_breakpoint_here_p.
10806         (program_breakpoint_here): Moved to arch-utils.c, renamed to
10807         default_program_breakpoint_here_p, changed return type to bool and
10808         simplified.
10809         * breakpoint.h (program_breakpoint_here): Moved prototype to
10810         arch-utils.h, renamed to default_program_breakpoint_here_p and changed
10811         return type to bool.
10812         * gdbarch.c: Regenerate.
10813         * gdbarch.h: Regenerate.
10814         * gdbarch.sh (program_breakpoint_here_p): New method.
10815         * infrun.c (handle_signal_stop): Call
10816         gdbarch_program_breakpoint_here_p.
10818 2020-01-26  Tom Tromey  <tom@tromey.com>
10820         * ctfread.c (struct ctf_fp_info): Reindent.
10821         (_initialize_ctfread): Remove.
10823 2020-01-26  Tom Tromey  <tom@tromey.com>
10825         * psymtab.c (partial_map_expand_apply)
10826         (psym_find_pc_sect_compunit_symtab, psym_lookup_symbol)
10827         (psymtab_to_symtab, psym_find_last_source_symtab, dump_psymtab)
10828         (psym_print_stats, psym_expand_symtabs_for_function)
10829         (psym_map_symbol_filenames, psym_map_matching_symbols)
10830         (psym_expand_symtabs_matching)
10831         (partial_symtab::read_dependencies, maintenance_info_psymtabs)
10832         (maintenance_check_psymtabs): Use new methods.
10833         * psympriv.h (struct partial_symtab) <readin_p,
10834         get_compunit_symtab>: New methods.
10835         <readin, compunit_symtab>: Remove members.
10836         (struct standard_psymtab): New.
10837         (struct legacy_psymtab): Derive from standard_psymtab.
10838         * dwarf2read.h (struct dwarf2_psymtab): Derive from
10839         standard_psymtab.
10840         * ctfread.c (struct ctf_psymtab): Derive from standard_psymtab.
10842 2020-01-26  Tom Tromey  <tom@tromey.com>
10844         * xcoffread.c (xcoff_psymtab_to_symtab_1): Call
10845         read_dependencies.  Add assert.
10846         * psymtab.c (partial_symtab::read_dependencies): New method.
10847         * psympriv.h (struct partial_symtab) <read_dependencies>: New
10848         method.
10849         * mdebugread.c (psymtab_to_symtab_1): Call read_dependencies.
10850         * dwarf2read.c (dwarf2_psymtab::expand_psymtab): Call
10851         read_dependencies.
10852         * dbxread.c (dbx_psymtab_to_symtab_1): Call read_dependencies.
10853         Add assert.
10855 2020-01-26  Tom Tromey  <tom@tromey.com>
10857         * xcoffread.c (xcoff_psymtab_to_symtab_1): Change argument order.
10858         Call expand_psymtab.
10859         (xcoff_read_symtab): Call expand_psymtab.
10860         (xcoff_start_psymtab, xcoff_end_psymtab): Set
10861         legacy_expand_psymtab.
10862         * psympriv.h (struct partial_symtab) <expand_psymtab>: New
10863         method.
10864         (struct legacy_psymtab) <expand_psymtab>: Implement.
10865         <legacy_expand_psymtab>: New member.
10866         * mdebugread.c (mdebug_read_symtab): Call expand_psymtab.
10867         (parse_partial_symbols): Set legacy_expand_psymtab.
10868         (psymtab_to_symtab_1): Change argument order.  Call
10869         expand_psymtab.
10870         (new_psymtab): Set legacy_expand_psymtab.
10871         * dwarf2read.h (struct dwarf2_psymtab) <expand_psymtab>: Declare.
10872         * dwarf2read.c (dwarf2_psymtab::read_symtab): Call
10873         expand_psymtab.
10874         (dwarf2_psymtab::expand_psymtab): Rename from
10875         psymtab_to_symtab_1.  Call expand_psymtab.
10876         * dbxread.c (start_psymtab): Set legacy_expand_psymtab.
10877         (dbx_end_psymtab): Likewise.
10878         (dbx_psymtab_to_symtab_1): Change argument order. Call
10879         expand_psymtab.
10880         (dbx_read_symtab): Call expand_psymtab.
10881         * ctfread.c (struct ctf_psymtab) <expand_psymtab>: Declare.
10882         (ctf_psymtab::expand_psymtab): Rename from psymtab_to_symtab.
10883         (ctf_psymtab::read_symtab): Call expand_psymtab.
10885 2020-01-26  Tom Tromey  <tom@tromey.com>
10887         * xcoffread.c (xcoff_read_symtab): Remove prints.  Add assert.
10888         * psymtab.c (psymtab_to_symtab): Print verbose "Reading"
10889         messages.
10890         * mdebugread.c (mdebug_read_symtab): Remove prints.
10891         * dwarf2read.c (dwarf2_psymtab::read_symtab): Remove prints.  Add
10892         assert.
10893         * dbxread.c (dbx_read_symtab): Remove prints.  Add assert.
10895 2020-01-26  Tom Tromey  <tom@tromey.com>
10897         * xcoffread.c (this_symtab_psymtab, read_xcoff_symtab)
10898         (xcoff_psymtab_to_symtab_1, xcoff_read_symtab)
10899         (xcoff_start_psymtab, xcoff_end_psymtab, scan_xcoff_symtab): Use
10900         legacy_symtab.
10901         * stabsread.h (dbx_end_psymtab): Use legacy_symtab.
10902         * psymtab.c (psymtab_to_symtab): Call method.
10903         (dump_psymtab): Update.
10904         * psympriv.h (struct partial_symtab): Add virtual destructor.
10905         <read_symtab>: New method.
10906         (struct legacy_symtab): New.
10907         * mdebugread.c (mdebug_read_symtab): Use legacy_psymtab.
10908         (struct pst_map) <pst>: Now a legacy_psymtab.
10909         (parse_procedure, parse_partial_symbols, psymtab_to_symtab_1)
10910         (new_psymtab): Use legacy_psymtab.
10911         * dwarf2read.h (struct dwarf2_psymtab): New.
10912         (struct dwarf2_per_cu_data) <psymtab>: Use it.
10913         * dwarf2read.c (dwarf2_create_include_psymtab)
10914         (dwarf2_build_include_psymtabs, create_type_unit_group)
10915         (create_partial_symtab, process_psymtab_comp_unit_reader)
10916         (build_type_psymtabs_reader, build_type_psymtab_dependencies)
10917         (set_partial_user): Use dwarf2_psymtab.
10918         (dwarf2_psymtab::read_symtab): Rename from dwarf2_read_symtab.
10919         (psymtab_to_symtab_1, process_full_comp_unit)
10920         (process_full_type_unit, dwarf2_ranges_read)
10921         (dwarf2_get_pc_bounds, psymtab_include_file_name)
10922         (dwarf_decode_lines): Use dwarf2_psymtab.
10923         * dwarf-index-write.c (psym_index_map): Use dwarf2_psymtab.
10924         (add_address_entry_worker, write_one_signatured_type)
10925         (recursively_count_psymbols, recursively_write_psymbols)
10926         (write_one_signatured_type, psyms_seen_size, write_gdbindex)
10927         (write_debug_names): Likewise.
10928         * dbxread.c (struct header_file_location): Take a legacy_psymtab.
10929         <pst>: Now a legacy_psymtab.
10930         (find_corresponding_bincl_psymtab): Return a legacy_psymtab.
10931         (read_dbx_symtab, start_psymtab, dbx_end_psymtab)
10932         (dbx_psymtab_to_symtab_1, read_ofile_symtab): Use legacy_psymtab.
10933         * ctfread.c (struct ctf_psymtab): New.
10934         (ctf_start_symtab, ctf_end_symtab, psymtab_to_symtab): Take a
10935         ctf_psymtab.
10936         (ctf_psymtab::read_symtab): Rename from ctf_read_symtab.
10937         (create_partial_symtab): Return a ctf_psymtab.
10938         (scan_partial_symbols): Update.
10940 2020-01-26  Tom Tromey  <tom@tromey.com>
10942         * xcoffread.c (xcoff_start_psymtab): Use new.
10943         * psymtab.c (partial_symtab::partial_symtab): New constructor,
10944         renamed from start_psymtab_common.
10945         * psympriv.h (struct partial_symtab): Add new constructor.
10946         (start_psymtab_common): Don't declare.
10947         * mdebugread.c (parse_partial_symbols): Use new.
10948         * dwarf2read.c (create_partial_symtab): Use new.
10949         * dbxread.c (start_psymtab): Use new.
10950         * ctfread.c (create_partial_symtab): Use new.
10952 2020-01-26  Tom Tromey  <tom@tromey.com>
10954         * xcoffread.c (xcoff_end_psymtab): Use new.
10955         * psymtab.c (start_psymtab_common): Use new.
10956         (partial_symtab::partial_symtab): Rename from allocate_psymtab.
10957         Update.
10958         * psympriv.h (struct partial_symtab): Add parameters to
10959         constructor.  Don't inline.
10960         (allocate_psymtab): Don't declare.
10961         * mdebugread.c (new_psymtab): Use new.
10962         * dwarf2read.c (dwarf2_create_include_psymtab): Use new.
10963         * dbxread.c (dbx_end_psymtab): Use new.
10965 2020-01-26  Tom Tromey  <tom@tromey.com>
10967         * psymtab.h (class psymtab_storage) <install_psymtab>: Rename from
10968         allocate_psymtab.  Update documentation.
10969         * psymtab.c (psymtab_storage::install_psymtab): Rename from
10970         allocate_psymtab.  Do not use new.
10971         (allocate_psymtab): Use new.  Update.
10973 2020-01-26  Tom Tromey  <tom@tromey.com>
10975         * xcoffread.c (xcoff_psymtab_to_symtab_1): Update.
10976         * psymtab.c (psym_print_stats): Update.
10977         * psympriv.h (struct partial_symtab) <readin,
10978         psymtabs_addrmap_supported, anonymous>: Now bool.
10979         * mdebugread.c (psymtab_to_symtab_1): Update.
10980         * dwarf2read.c (create_type_unit_group, create_partial_symtab)
10981         (build_type_psymtabs_reader, psymtab_to_symtab_1)
10982         (process_full_comp_unit, process_full_type_unit): Update.
10983         * dbxread.c (dbx_psymtab_to_symtab_1): Update.
10984         * ctfread.c (psymtab_to_symtab): Update.
10986 2020-01-26  Tom Tromey  <tom@tromey.com>
10988         * mdebugread.c (parse_partial_symbols): Use discard_psymtab.
10989         * psymtab.h (class psymtab_storage) <free_psymtabs>: Remove.
10990         * psymtab.c (psymtab_storage): Delete psymtabs.
10991         (psymtab_storage::allocate_psymtab): Use new.
10992         (psymtab_storage::discard_psymtab): Use delete.
10993         * psympriv.h (struct partial_symtab): Add constructor and
10994         initializers.
10996 2020-01-26  Tom Tromey  <tom@tromey.com>
10998         * machoread.c: Do not include psympriv.h.
11000 2020-01-25  Philippe Waroquiers  <philippe.waroquiers@skynet.be>
11002         * NEWS: Mention the new option and the set/show commands.
11004 2020-01-25  Philippe Waroquiers  <philippe.waroquiers@skynet.be>
11006         * exec.c (exec_file_mismatch_names, exec_file_mismatch_mode)
11007         (show_exec_file_mismatch_command, set_exec_file_mismatch_command)
11008         (validate_exec_file): New variables, enums, functions.
11009         (exec_file_locate_attach, print_section_info): Style the filenames.
11010         (_initialize_exec): Install show_exec_file_mismatch_command and
11011          set_exec_file_mismatch_command.
11012         * gdbcore.h (validate_exec_file): Declare.
11013         * infcmd.c (attach_command): Call validate_exec_file.
11014         * remote.c ( remote_target::remote_add_inferior): Likewise.
11016 2020-01-24  Andrew Burgess  <andrew.burgess@embecosm.com>
11018         * frame.c (find_frame_sal): Move call to get_next_frame into more
11019         inner scope.
11020         * inline-frame.c (inilne_state) <inline_state>: Update argument
11021         types.
11022         (inilne_state) <skipped_symbol>: Rename to...
11023         (inilne_state) <skipped_symbols>: ...this, and change to a vector.
11024         (skip_inline_frames): Build vector of skipped symbols and use this
11025         to reate the inline_state.
11026         (inline_skipped_symbol): Add a comment and some assertions, fetch
11027         skipped symbol from the list.
11029 2020-01-24  Andrew Burgess  <andrew.burgess@embecosm.com>
11031         * buildsym.c (lte_is_less_than): Delete.
11032         (buildsym_compunit::end_symtab_with_blockvector): Create local
11033         lambda function to sort line table entries, and use
11034         std::stable_sort instead of std::sort.
11035         * symtab.c (find_pc_sect_line): Skip backward over end of sequence
11036         markers when looking for a previous line.
11038 2020-01-24  Andrew Burgess  <andrew.burgess@embecosm.com>
11040         * dwarf2read.c (lnp_state_machine::record_line): Include
11041         end_sequence parameter in debug print out.  Record the line if we
11042         are at an end_sequence marker even if it's not the start of a
11043         statement.
11044         * symmisc.c (maintenance_print_one_line_table): Print end of
11045         sequence markers with 'END' not '0'.
11047 2020-01-24  Pedro Alves  <palves@redhat.com>
11049         PR gdb/25410
11050         * thread.c (scoped_restore_current_thread::restore): Use
11051         switch_to_inferior_no_thread.
11052         * exec.c: Include "progspace-and-thread.h".
11053         (add_target_sections, remove_target_sections):
11054         scoped_restore_current_pspace_and_thread instead of
11055         scoped_restore_current_thread.
11056         * infrun.c (handle_vfork_child_exec_or_exit): Assign the pspace
11057         and aspace to the inferior before calling clone_program_space.
11058         Remove stale comment.
11060 2020-01-24  Christian Biesinger  <cbiesinger@google.com>
11062         * arm-nbsd-nat.c (arm_nbsd_nat_target::fetch_registers): Rename to...
11063         (arm_netbsd_nat_target::fetch_registers): ...this.
11064         (arm_nbsd_nat_target::store_registers): Rename to...
11065         (arm_netbsd_nat_target::store_registers): ...this.
11067 2020-01-24  Christian Biesinger  <cbiesinger@google.com>
11069         * arm-nbsd-nat.c: Define _KERNTYPES to get the declaration of
11070         register_t.
11072 2020-01-24  Christian Biesinger  <cbiesinger@google.com>
11074         * aarch64-fbsd-tdep.c (aarch64_fbsd_iterate_over_regset_sections):
11075         Update comment.
11076         * aarch64-linux-tdep.c (aarch64_linux_iterate_over_regset_sections):
11077         Likewise.
11078         * arm-fbsd-tdep.c (arm_fbsd_iterate_over_regset_sections): Likewise.
11079         * gdbcore.h (deprecated_add_core_fns): Update comment to point to
11080         the correct replacement (iterate_over_regset_sections).
11081         * riscv-fbsd-tdep.c (riscv_fbsd_iterate_over_regset_sections):
11082         Update comment.
11084 2020-01-24  Graham Markall  <graham.markall@embecosm.com>
11086         PR gdb/23718
11087         * gdb/python/python.c (execute_gdb_command): Call
11088         async_enable_stdin in catch block.
11090 2020-01-24  Andrew Burgess  <andrew.burgess@embecosm.com>
11092         * event-loop.c (start_event_loop): Wrap async_enable_stdin with
11093         SWITCH_THRU_ALL_UIS.
11095 2020-01-24  Andrew Burgess  <andrew.burgess@embecosm.com>
11097         PR tui/9765
11098         * minsyms.c (lookup_minimal_symbol_by_pc_section): Update header
11099         comment, add extra parameter, and update to store previous symbol
11100         when appropriate.
11101         * minsyms.h (lookup_minimal_symbol_by_pc_section): Update comment,
11102         add extra parameter.
11103         * tui/tui-disasm.c (tui_disassemble): Update header comment,
11104         remove unneeded parameter, add try/catch around gdb_print_insn,
11105         rewrite to add items to asm_lines vector.
11106         (tui_find_backward_disassembly_start_address): New function.
11107         (tui_find_disassembly_address): Updated throughout.
11108         (tui_disasm_window::set_contents): Update for changes to
11109         tui_disassemble.
11110         (tui_disasm_window::do_scroll_vertical): No need to adjust the
11111         number of lines to scroll.
11113 2020-01-23  Simon Marchi  <simon.marchi@polymtl.ca>
11115         * objfiles.h (ALL_OBJFILE_OSECTIONS): Move up.
11116         (SECT_OFF_DATA): Likewise.
11117         (SECT_OFF_RODATA): Likewise.
11118         (SECT_OFF_TEXT): Likewise.
11119         (SECT_OFF_BSS): Likewise.
11120         (struct objfile) <text_section_offset, data_section_offset>: New
11121         methods.
11122         * amd64-windows-tdep.c (amd64_windows_find_unwind_info): Use
11123         objfile::text_section_offset.
11124         * coff-pe-read.c (add_pe_forwarded_sym): Likewise.
11125         * coffread.c (coff_symtab_read): Likewise.
11126         (enter_linenos): Likewise.
11127         (process_coff_symbol): Likewise.
11128         * ctfread.c (get_objfile_text_range): Likewise.
11129         * dtrace-probe.c (dtrace_probe::get_relocated_address):
11130         Use objfile::data_section_offset.
11131         * dwarf2-frame.c (execute_cfa_program): Use
11132         objfile::text_section_offset.
11133         (dwarf2_frame_find_fde): Likewise.
11134         * dwarf2read.c (create_addrmap_from_index): Likewise.
11135         (create_addrmap_from_aranges): Likewise.
11136         (dw2_find_pc_sect_compunit_symtab): Likewise.
11137         (process_psymtab_comp_unit_reader): Likewise.
11138         (add_partial_symbol): Likewise.
11139         (add_partial_subprogram): Likewise.
11140         (process_full_comp_unit): Likewise.
11141         (read_file_scope): Likewise.
11142         (read_func_scope): Likewise.
11143         (read_lexical_block_scope): Likewise.
11144         (read_call_site_scope): Likewise.
11145         (dwarf2_rnglists_process): Likewise.
11146         (dwarf2_ranges_process): Likewise.
11147         (dwarf2_ranges_read): Likewise.
11148         (dwarf_decode_lines_1): Likewise.
11149         (new_symbol): Likewise.
11150         (dwarf2_fetch_die_loc_sect_off): Likewise.
11151         (dwarf2_per_cu_text_offset): Likewise.
11152         * hppa-bsd-tdep.c (hppabsd_find_global_pointer): Likewise.
11153         * hppa-tdep.c (read_unwind_info): Likewise.
11154         * ia64-tdep.c (ia64_find_unwind_table): Likewise.
11155         * psympriv.h (struct partial_symtab): Likewise.
11156         * psymtab.c (find_pc_sect_psymtab): Likewise.
11157         * solib-svr4.c (enable_break): Likewise.
11158         * stap-probe.c (relocate_address): Use
11159         objfile::data_section_offset.
11160         * xcoffread.c (enter_line_range): Use
11161         objfile::text_section_offset.
11162         (read_xcoff_symtab): Likewise.
11164 2020-01-23  Simon Marchi  <simon.marchi@efficios.com>
11166         * darwin-nat.c (darwin_nat_target::wait_1): Move `inf`
11167         declaration to narrower scopes.
11169 2020-01-23  Simon Marchi  <simon.marchi@efficios.com>
11171         * darwin-nat.h (struct darwin_exception_msg, enum
11172         darwin_msg_state, struct darwin_thread_info, darwin_thread_t):
11173         Move up.
11174         (class darwin_nat_target) <wait_1, check_new_threads,
11175         decode_exception_message, decode_message, stop_inferior,
11176         init_thread_list, ptrace_him, cancel_breakpoint>: Declare.
11177         * darwin-nat.c (darwin_check_new_threads): Rename to...
11178         (darwin_nat_target::check_new_threads): ... this.
11179         (darwin_suspend_inferior_it): Remove.
11180         (darwin_decode_exception_message): Rename to...
11181         (darwin_nat_target::decode_exception_message): ... this.
11182         (darwin_nat_target::resume): Pass target to find_inferior_ptid.
11183         (darwin_decode_message): Rename to...
11184         (darwin_nat_target::decode_message): ... this.
11185         (cancel_breakpoint): Rename to...
11186         (darwin_nat_target::cancel_breakpoint): ... this.
11187         (darwin_wait): Rename to...
11188         (darwin_nat_target::wait_1): ... this.  Use range-based for loop
11189         instead of iterate_over_inferiors.
11190         (darwin_nat_target::wait): Call wait_1 instead of darwin_wait.
11191         (darwin_stop_inferior): Rename to...
11192         (darwin_nat_target::stop_inferior): ... this.
11193         (darwin_nat_target::kill): Call wait_1 instead of darwin_wait.
11194         (darwin_init_thread_list): Rename to...
11195         (darwin_nat_target::init_thread_list): ... this.
11196         (darwin_ptrace_him): Rename to...
11197         (darwin_nat_target::ptrace_him): ... this.
11198         (darwin_nat_target::create_inferior): Pass lambda function to
11199         fork_inferior.
11200         (darwin_nat_target::detach): Call stop_inferior instead of
11201         darwin_stop_inferior.
11202         * fork-inferior.h (fork_inferior): Change init_trace_fun
11203         parameter to gdb::function_view.
11204         * fork-inferior.c (fork_inferior): Likewise.
11206 2020-01-23  Hannes Domani  <ssbssa@yahoo.de>
11208         * i386-cygwin-tdep.c (core_process_module_section): Update.
11209         * windows-nat.c (struct lm_info_windows): Add text_offset.
11210         (windows_xfer_shared_libraries): Update.
11211         * windows-tdep.c (windows_xfer_shared_library):
11212         Add text_offset_cached argument.
11213         * windows-tdep.h (windows_xfer_shared_library): Update.
11215 2020-01-21  Simon Marchi  <simon.marchi@efficios.com>
11217         * gdbarch.sh: Add declaration for _initialize_gdbarch.
11219 2020-01-21  Simon Marchi  <simon.marchi@efficios.com>
11221         * remote-sim.c (check_for_duplicate_sim_descriptor): Remove.
11222         (get_sim_inferior_data): Remove use of iterate_over_inferiors,
11223         replace with range-based for.
11224         (gdbsim_interrupt_inferior): Remove.
11225         (gdbsim_target::interrupt): Replace iterate_over_inferiors use
11226         with a range-based for.  Inline code from
11227         gdbsim_interrupt_inferior.
11229 2020-01-21  Simon Marchi  <simon.marchi@efficios.com>
11231         * infrun.c (proceed): Fix indentation.
11233 2020-01-21  Tom Tromey  <tromey@adacore.com>
11235         * source-cache.c (source_cache::ensure): Call ext_lang_colorize.
11236         * python/python.c (python_extension_ops): Update.
11237         (gdbpy_colorize): New function.
11238         * python/lib/gdb/__init__.py (colorize): New function.
11239         * extension.h (ext_lang_colorize): Declare.
11240         * extension.c (ext_lang_colorize): New function.
11241         * extension-priv.h (struct extension_language_ops) <colorize>: New
11242         member.
11243         * cli/cli-style.c (_initialize_cli_style): Update help text.
11245 2020-01-21  Luis Machado  <luis.machado@linaro.org>
11247         * aarch64-tdep.c (struct aarch64_displaced_step_closure)
11248         <cond>: Change type to bool.
11249         (aarch64_displaced_step_b_cond): Update cond to use bool type.
11250         (aarch64_displaced_step_cb): Likewise.
11251         (aarch64_displaced_step_tb): Likewise.
11253 2020-01-21  Luis Machado  <luis.machado@linaro.org>
11255         * aarch64-tdep.c (aarch64_displaced_step_fixup): Add more debugging
11256         output.
11258 2020-01-21  Luis Machado  <luis.machado@linaro.org>
11260         * aarch64-tdep.c (struct aarch64_displaced_step_closure )
11261         <pc_adjust>: Adjust the documentation.
11262         (aarch64_displaced_step_fixup): Check if PC really moved before
11263         adjusting it.
11265 2020-01-19  Tom Tromey  <tom@tromey.com>
11267         * disasm.c (~gdb_disassembler): New destructor.
11268         (gdb_buffered_insn_length): Call disassemble_free_target.
11269         * disasm.h (class gdb_disassembler): Declare destructor.  Use
11270         DISABLE_COPY_AND_ASSIGN.
11272 2020-01-19  Tom Tromey  <tom@tromey.com>
11274         * dwarf2read.c (abbrev_table_up): Move typedef earlier.
11275         (die_reader_func_ftype): Remove.
11276         (cutu_reader): New class.
11277         (dw2_get_file_names_reader): Remove "data" parameter.
11278         (dw2_get_file_names): Use cutu_reader.
11279         (create_debug_type_hash_table): Update.
11280         (read_cutu_die_from_dwo): Update comment.
11281         (lookup_dwo_unit): Add dwo_name parameter.
11282         (cutu_reader::init_tu_and_read_dwo_dies): Now a method.  Remove
11283         die_reader_func_ftype and data parameters.
11284         (cutu_reader::cutu_reader): Rename from init_cutu_and_read_dies.
11285         Remove die_reader_func_ftype and data parameters.
11286         (~cutu_reader): New; from init_cutu_and_read_dies.
11287         (cutu_reader::cutu_reader): Rename from
11288         init_cutu_and_read_dies_no_follow.  Remove die_reader_func_ftype
11289         and data parameters.
11290         (init_cutu_and_read_dies_simple): Remove.
11291         (struct process_psymtab_comp_unit_data): Remove.
11292         (process_psymtab_comp_unit_reader): Remove data parameter; add
11293         want_partial_unit and pretend_language parameters.
11294         (process_psymtab_comp_unit): Use cutu_reader.
11295         (build_type_psymtabs_reader): Remove data parameter.
11296         (build_type_psymtabs_1): Use cutu_reader.
11297         (process_skeletonless_type_unit): Likewise.
11298         (load_partial_comp_unit_reader): Remove.
11299         (load_partial_comp_unit): Use cutu_reader.
11300         (load_full_comp_unit_reader): Remove.
11301         (load_full_comp_unit): Use cutu_reader.
11302         (struct create_dwo_cu_data): Remove.
11303         (create_dwo_cu_reader): Remove datap parameter; add dwo_file and
11304         dwo_unit parameters.
11305         (create_cus_hash_table): Use cutu_reader.
11306         (struct dwarf2_read_addr_index_data): Remove.
11307         (dwarf2_read_addr_index_reader): Remove.
11308         (dwarf2_read_addr_index): Use cutu_reader.
11309         (read_signatured_type_reader): Remove.
11310         (read_signatured_type): Use cutu_reader.
11312 2020-01-19  Tom Tromey  <tom@tromey.com>
11314         * tui/tui.c (tui_show_assembly): Use tui_suppress_output.
11315         * tui/tui-wingeneral.h (class tui_suppress_output): New.
11316         (tui_wrefresh): Declare.
11317         * tui/tui-wingeneral.c (suppress_output): New global.
11318         (tui_suppress_output, ~tui_suppress_output): New constructor and
11319         destructor.
11320         (tui_wrefresh): New function.
11321         (tui_gen_win_info::refresh_window): Use tui_wrefresh.
11322         (tui_gen_win_info::make_window): Call wnoutrefresh when needed.
11323         * tui/tui-regs.h (struct tui_data_window) <no_refresh>: Declare
11324         method.
11325         * tui/tui-regs.c (tui_data_window::erase_data_content): Call
11326         tui_wrefresh.
11327         (tui_data_window::no_refresh): New method.
11328         (tui_data_item_window::refresh_window): Call tui_wrefresh.
11329         (tui_reg_command): Use tui_suppress_output
11330         * tui/tui-layout.c (tui_set_layout): Use tui_suppress_output.
11331         * tui/tui-data.h (struct tui_gen_win_info) <no_refresh>: New
11332         method.
11333         * tui/tui-command.c (tui_refresh_cmd_win): Call tui_wrefresh.
11335 2020-01-19  Tom Tromey  <tom@tromey.com>
11337         * tui/tui-winsource.c (tui_update_source_windows_with_line):
11338         Handle case where symtab is null.
11340 2020-01-19  Simon Marchi  <simon.marchi@polymtl.ca>
11342         * linux-fork.c (one_fork_p): Simplify.
11344 2020-01-17  Simon Marchi  <simon.marchi@efficios.com>
11346         * top.c (struct qt_args): Remove.
11347         (kill_or_detach): Change return type to void, replace `void *`
11348         parameter with a proper one.
11349         (print_inferior_quit_action):  Likewise.
11350         (quit_confirm): Use range-based for loop to iterate over inferiors.
11351         (quit_force): Likewise.
11353 2020-01-17  Simon Marchi  <simon.marchi@efficios.com>
11355         * mi/mi-main.c (run_one_inferior): Change return type to void, replace
11356         `void *` parameter with proper parameters.
11357         (mi_cmd_exec_run): Use range-based loop to iterate over inferiors.
11358         (print_one_inferior): Change return type to void, replace `void *`
11359         parameter with proper parameters.
11360         (mi_cmd_list_thread_groups): Use range-based loop to iterate over
11361         inferiors.
11362         (get_other_inferior): Remove.
11363         (mi_cmd_remove_inferior): Use range-based loop to iterate over
11364         inferiors.
11366 2020-01-17  Simon Marchi  <simon.marchi@efficios.com>
11368         * mi/mi-interp.c (report_initial_inferior): Remove.
11369         (mi_interp::init): Use range-based for to iterate over inferiors.
11371 2020-01-17  Simon Marchi  <simon.marchi@efficios.com>
11373         * python/py-inferior.c (build_inferior_list): Remove.
11374         (gdbpy_ref): Use range-based for loop to iterate over inferiors.
11376 2020-01-16  Christian Biesinger  <cbiesinger@google.com>
11378         * btrace.c (btrace_compute_ftrace_1): Fix spelling error (Unkown).
11379         (btrace_stitch_trace): Likewise.
11380         * charset.c (intermediate_encoding): Likewise (vaild).
11381         * nat/linux-btrace.c (linux_read_pt): Likewise (Unkown).
11382         * python/py-record-btrace.c (struct PyMethodDef): Likewise (occurences).
11383         * record-btrace.c (record_btrace_print_conf): Likewise (unkown).
11385 2020-01-16  Hannes Domani  <ssbssa@yahoo.de>
11387         * windows-tdep.c (windows_get_tlb_type):
11388         Add rtl_user_process_parameters type.
11390 2020-01-16  Pedro Alves  <palves@redhat.com>
11391             Norbert Lange  <nolange79@gmail.com>
11393         PR build/24805
11394         * gdbsupport/gdb_proc_service.h (PS_EXPORT): New.
11395         (ps_get_thread_area, ps_getpid, ps_lcontinue, ps_lgetfpregs)
11396         (ps_lgetregs, ps_lsetfpregs, ps_lsetregs, ps_lstop, ps_pcontinue)
11397         (ps_pdread, ps_pdwrite, ps_pglobal_lookup, ps_pstop, ps_ptread)
11398         (ps_ptwrite, ps_lgetxregs, ps_lgetxregsize, ps_lsetxregs)
11399         (ps_plog): Redeclare exported functions with default visibility.
11401 2020-01-16  Nitika Achra  <Nitika.Achra@amd.com>
11403         * dwarf2loc.c (decode_debug_loclists_addresses): Handle
11404         DW_LLE_base_addressx, DW_LLE_startx_length, DW_LLE_start_length.
11406 2020-01-15  Simon Marchi  <simon.marchi@efficios.com>
11408         * infcmd.c (post_create_inferior): Use get_thread_regcache
11409         instead of get_current_regcache.
11411 2020-01-14  Tom Tromey  <tom@tromey.com>
11413         PR symtab/12535:
11414         * python/python.c (gdbpy_decode_line): Treat empty string the same
11415         as no argument.
11417 2020-01-14  Tom Tromey  <tom@tromey.com>
11419         * Makefile.in (CLIBS): Remove second use of $(LIBIBERTY).
11421 2020-01-14  Tom Tromey  <tom@tromey.com>
11423         * nat/linux-btrace.c: Don't include <config.h>.
11424         * nat/linux-ptrace.c: Don't include <config.h>.
11425         * nat/x86-linux-dregs.c: Don't include <config.h>.
11427 2020-01-14  Tom Tromey  <tom@tromey.com>
11429         * configure: Rebuild.
11430         * configure.ac: Move many checks to ../gdbsupport/common.m4.
11432 2020-01-14  Tom Tromey  <tom@tromey.com>
11434         * nat/x86-linux-dregs.c: Include configh.h.
11435         * nat/linux-ptrace.c: Include configh.h.
11436         * nat/linux-btrace.c: Include configh.h.
11437         * defs.h: Include config.h, bfd.h.
11438         * configure.ac: Don't source common.host.
11439         (CONFIG_OBS, CONFIG_SRCS): Remove gdbsupport files.
11440         * configure: Rebuild.
11441         * acinclude.m4: Update path.
11442         * Makefile.in (SUPPORT, LIBSUPPORT, INCSUPPORT): New variables.
11443         (CONFIG_SRC_SUBDIR): Remove gdbsupport.
11444         (INTERNAL_CFLAGS_BASE): Add INCSUPPORT.
11445         (CLIBS): Add LIBSUPPORT.
11446         (CDEPS): Likewise.
11447         (COMMON_SFILES): Remove gdbsupport files.
11448         (HFILES_NO_SRCDIR): Likewise.
11449         (stamp-version): Update path to create-version.sh.
11450         (ALLDEPFILES): Remove gdbsupport files.
11452 2020-01-14  Tom Tromey  <tom@tromey.com>
11454         * gdbsupport/common.m4 (GDB_AC_COMMON): Define WIN32APILIBS and
11455         USE_WIN32API when needed.
11456         * configure.ac (USE_WIN32API): Don't define.
11457         (WIN32LIBS): Use WIN32APILIBS.
11458         * configure: Rebuild.
11460 2020-01-14  Tom Tromey  <tom@tromey.com>
11462         * configure: Rebuild.
11463         * gdbsupport/common.m4 (GDB_AC_COMMON): Fix indentation.
11465 2020-01-14  Bernd Edlinger  <bernd.edlinger@hotmail.de>
11467         * skip.c (skip_function_command): Make skip w/o arguments use the
11468         name of the inlined function if pc is inside any inlined function.
11470 2020-01-14  Luis Machado  <luis.machado@linaro.org>
11472         * inf-ptrace.c (inf_ptrace_target::resume): Update comments.
11473         * infrun.c (resume_1): Likewise.
11474         (handle_inferior_event): Remove stale comment.
11475         * linux-nat.c (linux_nat_target::resume): Update comments.
11476         (save_stop_reason): Likewise.
11477         (linux_nat_filter_event): Likewise.
11478         * linux-nat.h (struct lwp_info) <stop_pc>, <stop_reason>: Likewise.
11480 2020-01-13  Andrew Burgess  <andrew.burgess@embecosm.com>
11482         * elfread.c (record_minimal_symbol): Set section index to 0 for
11483         non-allocatable sections.
11486 2020-01-13  Ali Tamur <tamur@google.com>
11488         * dwarf2read.c (dwarf2_debug_sections): Add debug_str_offsets sections.
11489         (dwarf2_cu): Add str_offsets_base field.  Change the type of addr_base
11490         to gdb::optional.  Update comments.
11491         (dwo_file): Update comments.
11492         (read_attribute): Update API to take an additional out parameter,
11493         need_reprocess.  This is used to mark attributes that need other
11494         attributes (e.g. str_offsets_base) for correct computation which may not
11495         have been read yet.
11496         (read_attribute_reprocess): New function declaration.
11497         (read_addr_index): Likewise.
11498         (read_dwo_str_index): Likewise.
11499         (read_stub_str_index): Likewise.
11500         (dwarf2_per_objfile::locate_sections): Handle debug_str_offsets section.
11501         (lookup_addr_base): New function definition.
11502         (lookup_ranges_base): Likewise.
11503         (read_cutu_die_from_dwo): Use the new functions: lookup_addr_base,
11504         lookup_ranges_base.
11505         (init_cutu_and_read_dies): Update comments.
11506         (init_cutu_and_read_dies_no_follow): Change API to take parent compile
11507         unit.  This is used to inherit parent's str_offsets_base and addr_base.
11508         Update comments.
11509         (init_cutu_and_read_dies_simple): Reflect API changes.
11510         (skip_one_die): Reflect API changes.  Handle DW_FORM_rnglistx.
11511         (create_cus_hash_table): Change API to take parent compile unit.  
11512         Reflect API changes.
11513         (open_and_init_dwo_file): Reflect API changes.
11514         (dwarf2_get_pc_bounds): Update comments.
11515         (dwarf2_record_block_ranges): Likewise.
11516         (read_full_die_1): Change implementation to reprocess attributes that
11517         need str_offsets_base and addr_base.
11518         (partial_die_info::read): Likewise.
11519         (read_attribute_reprocess): New function definition.
11520         (read_attribute_value): Change API to take an additional out parameter,
11521         need_reprocess.  Handle DW_FORM_rnglistx.  No longer trigger an error
11522         when a non-dwo compile unit has index based attributes.
11523         (read_attribute): Reflect API changes.
11524         (read_addr_index_1): Reflect API changes.  Update comments.
11525         (dwarf2_read_addr_index_data): Reflect API changes.
11526         (dwarf2_read_addr_index): Likewise.
11527         (read_str_index): Change API and implementation.  This becomes a helper
11528         to be used by the new string index related methods.  Update error
11529         message and comments.
11530         (read_dwo_str_index): New function definition.
11531         (read_stub_str_index): Likewise.
11532         * dwarf2read.h (dwarf2_per_objfile): Add str_offsets field.
11533         * symfile.h (dwarf2_debug_sections): Likewise.
11534         * xcoffread.c (dwarf2_debug_sections): Likewise.
11536 2020-01-13  Simon Marchi  <simon.marchi@efficios.com>
11538         * gdbcore.h (struct core_fns) <core_read_registers>: Change
11539         core_reg_sect type to gdb_byte *.
11540         * arm-nbsd-nat.c (fetch_elfcore_registers): Likewise.
11541         * cris-tdep.c (fetch_core_registers): Likewise.
11542         * corelow.c (core_target::get_core_register_section): Change
11543         type of `contents` to gdb::byte_vector.
11545 2020-01-13  Andrew Burgess  <andrew.burgess@embecosm.com>
11547         * tui/tui-wingeneral.c (box_win): Position the title in the center
11548         of the border.
11550 2020-01-13  Simon Marchi  <simon.marchi@polymtl.ca>
11552         * corelow.c (core_target::get_core_register_section): Use
11553           std::vector instead of alloca.
11555 2020-01-13  Simon Marchi  <simon.marchi@efficios.com>
11557         * warning.m4: Add -Wmissing-declarations to build_warnings.
11558         * configure: Re-generate.
11560 2020-01-13  Simon Marchi  <simon.marchi@efficios.com>
11562         * python/python.c (init__gdb_module): Add declaration.
11564 2020-01-13  Simon Marchi  <simon.marchi@efficios.com>
11566         * aarch64-fbsd-nat.c (_initialize_aarch64_fbsd_nat): Add declaration.
11567         * aarch64-fbsd-tdep.c (_initialize_aarch64_fbsd_tdep): Add declaration.
11568         * aarch64-linux-nat.c (_initialize_aarch64_linux_nat): Add declaration.
11569         * aarch64-linux-tdep.c (_initialize_aarch64_linux_tdep): Add declaration.
11570         * aarch64-newlib-tdep.c (_initialize_aarch64_newlib_tdep): Add declaration.
11571         * aarch64-tdep.c (_initialize_aarch64_tdep): Add declaration.
11572         * ada-exp.y (_initialize_ada_exp): Add declaration.
11573         * ada-lang.c (_initialize_ada_language): Add declaration.
11574         * ada-tasks.c (_initialize_tasks): Add declaration.
11575         * agent.c (_initialize_agent): Add declaration.
11576         * aix-thread.c (_initialize_aix_thread): Add declaration.
11577         * alpha-bsd-nat.c (_initialize_alphabsd_nat): Add declaration.
11578         * alpha-linux-nat.c (_initialize_alpha_linux_nat): Add declaration.
11579         * alpha-linux-tdep.c (_initialize_alpha_linux_tdep): Add declaration.
11580         * alpha-nbsd-tdep.c (_initialize_alphanbsd_tdep): Add declaration.
11581         * alpha-obsd-tdep.c (_initialize_alphaobsd_tdep): Add declaration.
11582         * alpha-tdep.c (_initialize_alpha_tdep): Add declaration.
11583         * amd64-darwin-tdep.c (_initialize_amd64_darwin_tdep): Add declaration.
11584         * amd64-dicos-tdep.c (_initialize_amd64_dicos_tdep): Add declaration.
11585         * amd64-fbsd-nat.c (_initialize_amd64fbsd_nat): Add declaration.
11586         * amd64-fbsd-tdep.c (_initialize_amd64fbsd_tdep): Add declaration.
11587         * amd64-linux-nat.c (_initialize_amd64_linux_nat): Add declaration.
11588         * amd64-linux-tdep.c (_initialize_amd64_linux_tdep): Add declaration.
11589         * amd64-nbsd-nat.c (_initialize_amd64nbsd_nat): Add declaration.
11590         * amd64-nbsd-tdep.c (_initialize_amd64nbsd_tdep): Add declaration.
11591         * amd64-obsd-nat.c (_initialize_amd64obsd_nat): Add declaration.
11592         * amd64-obsd-tdep.c (_initialize_amd64obsd_tdep): Add declaration.
11593         * amd64-sol2-tdep.c (_initialize_amd64_sol2_tdep): Add declaration.
11594         * amd64-tdep.c (_initialize_amd64_tdep): Add declaration.
11595         * amd64-windows-nat.c (_initialize_amd64_windows_nat): Add declaration.
11596         * amd64-windows-tdep.c (_initialize_amd64_windows_tdep): Add declaration.
11597         * annotate.c (_initialize_annotate): Add declaration.
11598         * arc-newlib-tdep.c (_initialize_arc_newlib_tdep): Add declaration.
11599         * arc-tdep.c (_initialize_arc_tdep): Add declaration.
11600         * arch-utils.c (_initialize_gdbarch_utils): Add declaration.
11601         * arm-fbsd-nat.c (_initialize_arm_fbsd_nat): Add declaration.
11602         * arm-fbsd-tdep.c (_initialize_arm_fbsd_tdep): Add declaration.
11603         * arm-linux-nat.c (_initialize_arm_linux_nat): Add declaration.
11604         * arm-linux-tdep.c (_initialize_arm_linux_tdep): Add declaration.
11605         * arm-nbsd-nat.c (_initialize_arm_netbsd_nat): Add declaration.
11606         * arm-nbsd-tdep.c (_initialize_arm_netbsd_tdep): Add declaration.
11607         * arm-obsd-tdep.c (_initialize_armobsd_tdep): Add declaration.
11608         * arm-pikeos-tdep.c (_initialize_arm_pikeos_tdep): Add declaration.
11609         * arm-symbian-tdep.c (_initialize_arm_symbian_tdep): Add declaration.
11610         * arm-tdep.c (_initialize_arm_tdep): Add declaration.
11611         * arm-wince-tdep.c (_initialize_arm_wince_tdep): Add declaration.
11612         * auto-load.c (_initialize_auto_load): Add declaration.
11613         * auxv.c (_initialize_auxv): Add declaration.
11614         * avr-tdep.c (_initialize_avr_tdep): Add declaration.
11615         * ax-gdb.c (_initialize_ax_gdb): Add declaration.
11616         * bfin-linux-tdep.c (_initialize_bfin_linux_tdep): Add declaration.
11617         * bfin-tdep.c (_initialize_bfin_tdep): Add declaration.
11618         * break-catch-sig.c (_initialize_break_catch_sig): Add declaration.
11619         * break-catch-syscall.c (_initialize_break_catch_syscall): Add declaration.
11620         * break-catch-throw.c (_initialize_break_catch_throw): Add declaration.
11621         * breakpoint.c (_initialize_breakpoint): Add declaration.
11622         * bsd-uthread.c (_initialize_bsd_uthread): Add declaration.
11623         * btrace.c (_initialize_btrace): Add declaration.
11624         * charset.c (_initialize_charset): Add declaration.
11625         * cli/cli-cmds.c (_initialize_cli_cmds): Add declaration.
11626         * cli/cli-dump.c (_initialize_cli_dump): Add declaration.
11627         * cli/cli-interp.c (_initialize_cli_interp): Add declaration.
11628         * cli/cli-logging.c (_initialize_cli_logging): Add declaration.
11629         * cli/cli-script.c (_initialize_cli_script): Add declaration.
11630         * cli/cli-style.c (_initialize_cli_style): Add declaration.
11631         * coff-pe-read.c (_initialize_coff_pe_read): Add declaration.
11632         * coffread.c (_initialize_coffread): Add declaration.
11633         * compile/compile-cplus-types.c (_initialize_compile_cplus_types): Add declaration.
11634         * compile/compile.c (_initialize_compile): Add declaration.
11635         * complaints.c (_initialize_complaints): Add declaration.
11636         * completer.c (_initialize_completer): Add declaration.
11637         * copying.c (_initialize_copying): Add declaration.
11638         * corefile.c (_initialize_core): Add declaration.
11639         * corelow.c (_initialize_corelow): Add declaration.
11640         * cp-abi.c (_initialize_cp_abi): Add declaration.
11641         * cp-namespace.c (_initialize_cp_namespace): Add declaration.
11642         * cp-support.c (_initialize_cp_support): Add declaration.
11643         * cp-valprint.c (_initialize_cp_valprint): Add declaration.
11644         * cris-linux-tdep.c (_initialize_cris_linux_tdep): Add declaration.
11645         * cris-tdep.c (_initialize_cris_tdep): Add declaration.
11646         * csky-linux-tdep.c (_initialize_csky_linux_tdep): Add declaration.
11647         * csky-tdep.c (_initialize_csky_tdep): Add declaration.
11648         * ctfread.c (_initialize_ctfread): Add declaration.
11649         * d-lang.c (_initialize_d_language): Add declaration.
11650         * darwin-nat-info.c (_initialize_darwin_info_commands): Add declaration.
11651         * darwin-nat.c (_initialize_darwin_nat): Add declaration.
11652         * dbxread.c (_initialize_dbxread): Add declaration.
11653         * dcache.c (_initialize_dcache): Add declaration.
11654         * disasm-selftests.c (_initialize_disasm_selftests): Add declaration.
11655         * disasm.c (_initialize_disasm): Add declaration.
11656         * dtrace-probe.c (_initialize_dtrace_probe): Add declaration.
11657         * dummy-frame.c (_initialize_dummy_frame): Add declaration.
11658         * dwarf-index-cache.c (_initialize_index_cache): Add declaration.
11659         * dwarf-index-write.c (_initialize_dwarf_index_write): Add declaration.
11660         * dwarf2-frame-tailcall.c (_initialize_tailcall_frame): Add declaration.
11661         * dwarf2-frame.c (_initialize_dwarf2_frame): Add declaration.
11662         * dwarf2expr.c (_initialize_dwarf2expr): Add declaration.
11663         * dwarf2loc.c (_initialize_dwarf2loc): Add declaration.
11664         * dwarf2read.c (_initialize_dwarf2_read): Add declaration.
11665         * elfread.c (_initialize_elfread): Add declaration.
11666         * exec.c (_initialize_exec): Add declaration.
11667         * extension.c (_initialize_extension): Add declaration.
11668         * f-lang.c (_initialize_f_language): Add declaration.
11669         * f-valprint.c (_initialize_f_valprint): Add declaration.
11670         * fbsd-nat.c (_initialize_fbsd_nat): Add declaration.
11671         * fbsd-tdep.c (_initialize_fbsd_tdep): Add declaration.
11672         * filesystem.c (_initialize_filesystem): Add declaration.
11673         * findcmd.c (_initialize_mem_search): Add declaration.
11674         * findvar.c (_initialize_findvar): Add declaration.
11675         * fork-child.c (_initialize_fork_child): Add declaration.
11676         * frame-base.c (_initialize_frame_base): Add declaration.
11677         * frame-unwind.c (_initialize_frame_unwind): Add declaration.
11678         * frame.c (_initialize_frame): Add declaration.
11679         * frv-linux-tdep.c (_initialize_frv_linux_tdep): Add declaration.
11680         * frv-tdep.c (_initialize_frv_tdep): Add declaration.
11681         * ft32-tdep.c (_initialize_ft32_tdep): Add declaration.
11682         * gcore.c (_initialize_gcore): Add declaration.
11683         * gdb-demangle.c (_initialize_gdb_demangle): Add declaration.
11684         * gdb_bfd.c (_initialize_gdb_bfd): Add declaration.
11685         * gdbarch-selftests.c (_initialize_gdbarch_selftests): Add declaration.
11686         * gdbarch.c (_initialize_gdbarch): Add declaration.
11687         * gdbtypes.c (_initialize_gdbtypes): Add declaration.
11688         * gnu-nat.c (_initialize_gnu_nat): Add declaration.
11689         * gnu-v2-abi.c (_initialize_gnu_v2_abi): Add declaration.
11690         * gnu-v3-abi.c (_initialize_gnu_v3_abi): Add declaration.
11691         * go-lang.c (_initialize_go_language): Add declaration.
11692         * go32-nat.c (_initialize_go32_nat): Add declaration.
11693         * guile/guile.c (_initialize_guile): Add declaration.
11694         * h8300-tdep.c (_initialize_h8300_tdep): Add declaration.
11695         * hppa-linux-nat.c (_initialize_hppa_linux_nat): Add declaration.
11696         * hppa-linux-tdep.c (_initialize_hppa_linux_tdep): Add declaration.
11697         * hppa-nbsd-nat.c (_initialize_hppanbsd_nat): Add declaration.
11698         * hppa-nbsd-tdep.c (_initialize_hppanbsd_tdep): Add declaration.
11699         * hppa-obsd-nat.c (_initialize_hppaobsd_nat): Add declaration.
11700         * hppa-obsd-tdep.c (_initialize_hppabsd_tdep): Add declaration.
11701         * hppa-tdep.c (_initialize_hppa_tdep): Add declaration.
11702         * i386-bsd-nat.c (_initialize_i386bsd_nat): Add declaration.
11703         * i386-cygwin-tdep.c (_initialize_i386_cygwin_tdep): Add declaration.
11704         * i386-darwin-nat.c (_initialize_i386_darwin_nat): Add declaration.
11705         * i386-darwin-tdep.c (_initialize_i386_darwin_tdep): Add declaration.
11706         * i386-dicos-tdep.c (_initialize_i386_dicos_tdep): Add declaration.
11707         * i386-fbsd-nat.c (_initialize_i386fbsd_nat): Add declaration.
11708         * i386-fbsd-tdep.c (_initialize_i386fbsd_tdep): Add declaration.
11709         * i386-gnu-nat.c (_initialize_i386gnu_nat): Add declaration.
11710         * i386-gnu-tdep.c (_initialize_i386gnu_tdep): Add declaration.
11711         * i386-go32-tdep.c (_initialize_i386_go32_tdep): Add declaration.
11712         * i386-linux-nat.c (_initialize_i386_linux_nat): Add declaration.
11713         * i386-linux-tdep.c (_initialize_i386_linux_tdep): Add declaration.
11714         * i386-nbsd-nat.c (_initialize_i386nbsd_nat): Add declaration.
11715         * i386-nbsd-tdep.c (_initialize_i386nbsd_tdep): Add declaration.
11716         * i386-nto-tdep.c (_initialize_i386nto_tdep): Add declaration.
11717         * i386-obsd-nat.c (_initialize_i386obsd_nat): Add declaration.
11718         * i386-obsd-tdep.c (_initialize_i386obsd_tdep): Add declaration.
11719         * i386-sol2-nat.c (_initialize_amd64_sol2_nat): Add declaration.
11720         * i386-sol2-tdep.c (_initialize_i386_sol2_tdep): Add declaration.
11721         * i386-tdep.c (_initialize_i386_tdep): Add declaration.
11722         * i386-windows-nat.c (_initialize_i386_windows_nat): Add declaration.
11723         * ia64-libunwind-tdep.c (_initialize_libunwind_frame): Add declaration.
11724         * ia64-linux-nat.c (_initialize_ia64_linux_nat): Add declaration.
11725         * ia64-linux-tdep.c (_initialize_ia64_linux_tdep): Add declaration.
11726         * ia64-tdep.c (_initialize_ia64_tdep): Add declaration.
11727         * ia64-vms-tdep.c (_initialize_ia64_vms_tdep): Add declaration.
11728         * infcall.c (_initialize_infcall): Add declaration.
11729         * infcmd.c (_initialize_infcmd): Add declaration.
11730         * inflow.c (_initialize_inflow): Add declaration.
11731         * infrun.c (_initialize_infrun): Add declaration.
11732         * interps.c (_initialize_interpreter): Add declaration.
11733         * iq2000-tdep.c (_initialize_iq2000_tdep): Add declaration.
11734         * jit.c (_initialize_jit): Add declaration.
11735         * language.c (_initialize_language): Add declaration.
11736         * linux-fork.c (_initialize_linux_fork): Add declaration.
11737         * linux-nat.c (_initialize_linux_nat): Add declaration.
11738         * linux-tdep.c (_initialize_linux_tdep): Add declaration.
11739         * linux-thread-db.c (_initialize_thread_db): Add declaration.
11740         * lm32-tdep.c (_initialize_lm32_tdep): Add declaration.
11741         * m2-lang.c (_initialize_m2_language): Add declaration.
11742         * m32c-tdep.c (_initialize_m32c_tdep): Add declaration.
11743         * m32r-linux-nat.c (_initialize_m32r_linux_nat): Add declaration.
11744         * m32r-linux-tdep.c (_initialize_m32r_linux_tdep): Add declaration.
11745         * m32r-tdep.c (_initialize_m32r_tdep): Add declaration.
11746         * m68hc11-tdep.c (_initialize_m68hc11_tdep): Add declaration.
11747         * m68k-bsd-nat.c (_initialize_m68kbsd_nat): Add declaration.
11748         * m68k-bsd-tdep.c (_initialize_m68kbsd_tdep): Add declaration.
11749         * m68k-linux-nat.c (_initialize_m68k_linux_nat): Add declaration.
11750         * m68k-linux-tdep.c (_initialize_m68k_linux_tdep): Add declaration.
11751         * m68k-tdep.c (_initialize_m68k_tdep): Add declaration.
11752         * machoread.c (_initialize_machoread): Add declaration.
11753         * macrocmd.c (_initialize_macrocmd): Add declaration.
11754         * macroscope.c (_initialize_macroscope): Add declaration.
11755         * maint-test-options.c (_initialize_maint_test_options): Add declaration.
11756         * maint-test-settings.c (_initialize_maint_test_settings): Add declaration.
11757         * maint.c (_initialize_maint_cmds): Add declaration.
11758         * mdebugread.c (_initialize_mdebugread): Add declaration.
11759         * memattr.c (_initialize_mem): Add declaration.
11760         * mep-tdep.c (_initialize_mep_tdep): Add declaration.
11761         * mi/mi-cmd-env.c (_initialize_mi_cmd_env): Add declaration.
11762         * mi/mi-cmds.c (_initialize_mi_cmds): Add declaration.
11763         * mi/mi-interp.c (_initialize_mi_interp): Add declaration.
11764         * mi/mi-main.c (_initialize_mi_main): Add declaration.
11765         * microblaze-linux-tdep.c (_initialize_microblaze_linux_tdep): Add declaration.
11766         * microblaze-tdep.c (_initialize_microblaze_tdep): Add declaration.
11767         * mips-fbsd-nat.c (_initialize_mips_fbsd_nat): Add declaration.
11768         * mips-fbsd-tdep.c (_initialize_mips_fbsd_tdep): Add declaration.
11769         * mips-linux-nat.c (_initialize_mips_linux_nat): Add declaration.
11770         * mips-linux-tdep.c (_initialize_mips_linux_tdep): Add declaration.
11771         * mips-nbsd-nat.c (_initialize_mipsnbsd_nat): Add declaration.
11772         * mips-nbsd-tdep.c (_initialize_mipsnbsd_tdep): Add declaration.
11773         * mips-sde-tdep.c (_initialize_mips_sde_tdep): Add declaration.
11774         * mips-tdep.c (_initialize_mips_tdep): Add declaration.
11775         * mips64-obsd-nat.c (_initialize_mips64obsd_nat): Add declaration.
11776         * mips64-obsd-tdep.c (_initialize_mips64obsd_tdep): Add declaration.
11777         * mipsread.c (_initialize_mipsread): Add declaration.
11778         * mn10300-linux-tdep.c (_initialize_mn10300_linux_tdep): Add declaration.
11779         * mn10300-tdep.c (_initialize_mn10300_tdep): Add declaration.
11780         * moxie-tdep.c (_initialize_moxie_tdep): Add declaration.
11781         * msp430-tdep.c (_initialize_msp430_tdep): Add declaration.
11782         * nds32-tdep.c (_initialize_nds32_tdep): Add declaration.
11783         * nios2-linux-tdep.c (_initialize_nios2_linux_tdep): Add declaration.
11784         * nios2-tdep.c (_initialize_nios2_tdep): Add declaration.
11785         * nto-procfs.c (_initialize_procfs): Add declaration.
11786         * objc-lang.c (_initialize_objc_language): Add declaration.
11787         * observable.c (_initialize_observer): Add declaration.
11788         * opencl-lang.c (_initialize_opencl_language): Add declaration.
11789         * or1k-linux-tdep.c (_initialize_or1k_linux_tdep): Add declaration.
11790         * or1k-tdep.c (_initialize_or1k_tdep): Add declaration.
11791         * osabi.c (_initialize_gdb_osabi): Add declaration.
11792         * osdata.c (_initialize_osdata): Add declaration.
11793         * p-valprint.c (_initialize_pascal_valprint): Add declaration.
11794         * parse.c (_initialize_parse): Add declaration.
11795         * ppc-fbsd-nat.c (_initialize_ppcfbsd_nat): Add declaration.
11796         * ppc-fbsd-tdep.c (_initialize_ppcfbsd_tdep): Add declaration.
11797         * ppc-linux-nat.c (_initialize_ppc_linux_nat): Add declaration.
11798         * ppc-linux-tdep.c (_initialize_ppc_linux_tdep): Add declaration.
11799         * ppc-nbsd-nat.c (_initialize_ppcnbsd_nat): Add declaration.
11800         * ppc-nbsd-tdep.c (_initialize_ppcnbsd_tdep): Add declaration.
11801         * ppc-obsd-nat.c (_initialize_ppcobsd_nat): Add declaration.
11802         * ppc-obsd-tdep.c (_initialize_ppcobsd_tdep): Add declaration.
11803         * printcmd.c (_initialize_printcmd): Add declaration.
11804         * probe.c (_initialize_probe): Add declaration.
11805         * proc-api.c (_initialize_proc_api): Add declaration.
11806         * proc-events.c (_initialize_proc_events): Add declaration.
11807         * proc-service.c (_initialize_proc_service): Add declaration.
11808         * procfs.c (_initialize_procfs): Add declaration.
11809         * producer.c (_initialize_producer): Add declaration.
11810         * psymtab.c (_initialize_psymtab): Add declaration.
11811         * python/python.c (_initialize_python): Add declaration.
11812         * ravenscar-thread.c (_initialize_ravenscar): Add declaration.
11813         * record-btrace.c (_initialize_record_btrace): Add declaration.
11814         * record-full.c (_initialize_record_full): Add declaration.
11815         * record.c (_initialize_record): Add declaration.
11816         * regcache-dump.c (_initialize_regcache_dump): Add declaration.
11817         * regcache.c (_initialize_regcache): Add declaration.
11818         * reggroups.c (_initialize_reggroup): Add declaration.
11819         * remote-notif.c (_initialize_notif): Add declaration.
11820         * remote-sim.c (_initialize_remote_sim): Add declaration.
11821         * remote.c (_initialize_remote): Add declaration.
11822         * reverse.c (_initialize_reverse): Add declaration.
11823         * riscv-fbsd-nat.c (_initialize_riscv_fbsd_nat): Add declaration.
11824         * riscv-fbsd-tdep.c (_initialize_riscv_fbsd_tdep): Add declaration.
11825         * riscv-linux-nat.c (_initialize_riscv_linux_nat): Add declaration.
11826         * riscv-linux-tdep.c (_initialize_riscv_linux_tdep): Add declaration.
11827         * riscv-tdep.c (_initialize_riscv_tdep): Add declaration.
11828         * rl78-tdep.c (_initialize_rl78_tdep): Add declaration.
11829         * rs6000-aix-tdep.c (_initialize_rs6000_aix_tdep): Add declaration.
11830         * rs6000-lynx178-tdep.c (_initialize_rs6000_lynx178_tdep):
11831         Add declaration.
11832         * rs6000-nat.c (_initialize_rs6000_nat): Add declaration.
11833         * rs6000-tdep.c (_initialize_rs6000_tdep): Add declaration.
11834         * run-on-main-thread.c (_initialize_run_on_main_thread): Add declaration.
11835         * rust-exp.y (_initialize_rust_exp): Add declaration.
11836         * rx-tdep.c (_initialize_rx_tdep): Add declaration.
11837         * s12z-tdep.c (_initialize_s12z_tdep): Add declaration.
11838         * s390-linux-nat.c (_initialize_s390_nat): Add declaration.
11839         * s390-linux-tdep.c (_initialize_s390_linux_tdep): Add declaration.
11840         * s390-tdep.c (_initialize_s390_tdep): Add declaration.
11841         * score-tdep.c (_initialize_score_tdep): Add declaration.
11842         * ser-go32.c (_initialize_ser_dos): Add declaration.
11843         * ser-mingw.c (_initialize_ser_windows): Add declaration.
11844         * ser-pipe.c (_initialize_ser_pipe): Add declaration.
11845         * ser-tcp.c (_initialize_ser_tcp): Add declaration.
11846         * ser-uds.c (_initialize_ser_socket): Add declaration.
11847         * ser-unix.c (_initialize_ser_hardwire): Add declaration.
11848         * serial.c (_initialize_serial): Add declaration.
11849         * sh-linux-tdep.c (_initialize_sh_linux_tdep): Add declaration.
11850         * sh-nbsd-nat.c (_initialize_shnbsd_nat): Add declaration.
11851         * sh-nbsd-tdep.c (_initialize_shnbsd_tdep): Add declaration.
11852         * sh-tdep.c (_initialize_sh_tdep): Add declaration.
11853         * skip.c (_initialize_step_skip): Add declaration.
11854         * sol-thread.c (_initialize_sol_thread): Add declaration.
11855         * solib-aix.c (_initialize_solib_aix): Add declaration.
11856         * solib-darwin.c (_initialize_darwin_solib): Add declaration.
11857         * solib-dsbt.c (_initialize_dsbt_solib): Add declaration.
11858         * solib-frv.c (_initialize_frv_solib): Add declaration.
11859         * solib-svr4.c (_initialize_svr4_solib): Add declaration.
11860         * solib-target.c (_initialize_solib_target): Add declaration.
11861         * solib.c (_initialize_solib): Add declaration.
11862         * source-cache.c (_initialize_source_cache): Add declaration.
11863         * source.c (_initialize_source): Add declaration.
11864         * sparc-linux-nat.c (_initialize_sparc_linux_nat): Add declaration.
11865         * sparc-linux-tdep.c (_initialize_sparc_linux_tdep): Add declaration.
11866         * sparc-nat.c (_initialize_sparc_nat): Add declaration.
11867         * sparc-nbsd-nat.c (_initialize_sparcnbsd_nat): Add declaration.
11868         * sparc-nbsd-tdep.c (_initialize_sparcnbsd_tdep): Add declaration.
11869         * sparc-obsd-tdep.c (_initialize_sparc32obsd_tdep): Add declaration.
11870         * sparc-sol2-tdep.c (_initialize_sparc_sol2_tdep): Add declaration.
11871         * sparc-tdep.c (_initialize_sparc_tdep): Add declaration.
11872         * sparc64-fbsd-nat.c (_initialize_sparc64fbsd_nat): Add declaration.
11873         * sparc64-fbsd-tdep.c (_initialize_sparc64fbsd_tdep): Add declaration.
11874         * sparc64-linux-nat.c (_initialize_sparc64_linux_nat): Add declaration.
11875         * sparc64-linux-tdep.c (_initialize_sparc64_linux_tdep): Add declaration.
11876         * sparc64-nat.c (_initialize_sparc64_nat): Add declaration.
11877         * sparc64-nbsd-nat.c (_initialize_sparc64nbsd_nat): Add declaration.
11878         * sparc64-nbsd-tdep.c (_initialize_sparc64nbsd_tdep): Add declaration.
11879         * sparc64-obsd-nat.c (_initialize_sparc64obsd_nat): Add declaration.
11880         * sparc64-obsd-tdep.c (_initialize_sparc64obsd_tdep): Add declaration.
11881         * sparc64-sol2-tdep.c (_initialize_sparc64_sol2_tdep): Add declaration.
11882         * sparc64-tdep.c (_initialize_sparc64_adi_tdep): Add declaration.
11883         * stabsread.c (_initialize_stabsread): Add declaration.
11884         * stack.c (_initialize_stack): Add declaration.
11885         * stap-probe.c (_initialize_stap_probe): Add declaration.
11886         * std-regs.c (_initialize_frame_reg): Add declaration.
11887         * symfile-debug.c (_initialize_symfile_debug): Add declaration.
11888         * symfile-mem.c (_initialize_symfile_mem): Add declaration.
11889         * symfile.c (_initialize_symfile): Add declaration.
11890         * symmisc.c (_initialize_symmisc): Add declaration.
11891         * symtab.c (_initialize_symtab): Add declaration.
11892         * target.c (_initialize_target): Add declaration.
11893         * target-connection.c (_initialize_target_connection): Add
11894         declaration.
11895         * target-dcache.c (_initialize_target_dcache): Add declaration.
11896         * target-descriptions.c (_initialize_target_descriptions): Add declaration.
11897         * thread.c (_initialize_thread): Add declaration.
11898         * tic6x-linux-tdep.c (_initialize_tic6x_linux_tdep): Add declaration.
11899         * tic6x-tdep.c (_initialize_tic6x_tdep): Add declaration.
11900         * tilegx-linux-nat.c (_initialize_tile_linux_nat): Add declaration.
11901         * tilegx-linux-tdep.c (_initialize_tilegx_linux_tdep): Add declaration.
11902         * tilegx-tdep.c (_initialize_tilegx_tdep): Add declaration.
11903         * tracectf.c (_initialize_ctf): Add declaration.
11904         * tracefile-tfile.c (_initialize_tracefile_tfile): Add declaration.
11905         * tracefile.c (_initialize_tracefile): Add declaration.
11906         * tracepoint.c (_initialize_tracepoint): Add declaration.
11907         * tui/tui-hooks.c (_initialize_tui_hooks): Add declaration.
11908         * tui/tui-interp.c (_initialize_tui_interp): Add declaration.
11909         * tui/tui-layout.c (_initialize_tui_layout): Add declaration.
11910         * tui/tui-regs.c (_initialize_tui_regs): Add declaration.
11911         * tui/tui-stack.c (_initialize_tui_stack): Add declaration.
11912         * tui/tui-win.c (_initialize_tui_win): Add declaration.
11913         * tui/tui.c (_initialize_tui): Add declaration.
11914         * typeprint.c (_initialize_typeprint): Add declaration.
11915         * ui-style.c (_initialize_ui_style): Add declaration.
11916         * unittests/array-view-selftests.c (_initialize_array_view_selftests): Add declaration.
11917         * unittests/child-path-selftests.c (_initialize_child_path_selftests): Add declaration.
11918         * unittests/cli-utils-selftests.c (_initialize_cli_utils_selftests): Add declaration.
11919         * unittests/common-utils-selftests.c (_initialize_common_utils_selftests): Add declaration.
11920         * unittests/copy_bitwise-selftests.c (_initialize_copy_bitwise_utils_selftests): Add declaration.
11921         * unittests/environ-selftests.c (_initialize_environ_selftests): Add declaration.
11922         * unittests/filtered_iterator-selftests.c
11923         (_initialize_filtered_iterator_selftests): Add declaration.
11924         * unittests/format_pieces-selftests.c (_initialize_format_pieces_selftests): Add declaration.
11925         * unittests/function-view-selftests.c (_initialize_function_view_selftests): Add declaration.
11926         * unittests/help-doc-selftests.c (_initialize_help_doc_selftests): Add declaration.
11927         * unittests/lookup_name_info-selftests.c (_initialize_lookup_name_info_selftests): Add declaration.
11928         * unittests/main-thread-selftests.c
11929         (_initialize_main_thread_selftests): Add declaration.
11930         * unittests/memory-map-selftests.c (_initialize_memory_map_selftests): Add declaration.
11931         * unittests/memrange-selftests.c (_initialize_memrange_selftests): Add declaration.
11932         * unittests/mkdir-recursive-selftests.c (_initialize_mkdir_recursive_selftests): Add declaration.
11933         * unittests/observable-selftests.c (_initialize_observer_selftest): Add declaration.
11934         * unittests/offset-type-selftests.c (_initialize_offset_type_selftests): Add declaration.
11935         * unittests/optional-selftests.c (_initialize_optional_selftests): Add declaration.
11936         * unittests/parse-connection-spec-selftests.c (_initialize_parse_connection_spec_selftests): Add declaration.
11937         * unittests/rsp-low-selftests.c (_initialize_rsp_low_selftests): Add declaration.
11938         * unittests/scoped_fd-selftests.c (_initialize_scoped_fd_selftests): Add declaration.
11939         * unittests/scoped_mmap-selftests.c (_initialize_scoped_mmap_selftests): Add declaration.
11940         * unittests/scoped_restore-selftests.c (_initialize_scoped_restore_selftests): Add declaration.
11941         * unittests/string_view-selftests.c (_initialize_string_view_selftests): Add declaration.
11942         * unittests/style-selftests.c (_initialize_style_selftest): Add declaration.
11943         * unittests/tracepoint-selftests.c (_initialize_tracepoint_selftests): Add declaration.
11944         * unittests/tui-selftests.c (_initialize_tui_selftest): Add
11945         declaration.
11946         * unittests/unpack-selftests.c (_initialize_unpack_selftests): Add declaration.
11947         * unittests/utils-selftests.c (_initialize_utils_selftests): Add declaration.
11948         * unittests/vec-utils-selftests.c (_initialize_vec_utils_selftests): Add declaration.
11949         * unittests/xml-utils-selftests.c (_initialize_xml_utils): Add declaration.
11950         * user-regs.c (_initialize_user_regs): Add declaration.
11951         * utils.c (_initialize_utils): Add declaration.
11952         * v850-tdep.c (_initialize_v850_tdep): Add declaration.
11953         * valops.c (_initialize_valops): Add declaration.
11954         * valprint.c (_initialize_valprint): Add declaration.
11955         * value.c (_initialize_values): Add declaration.
11956         * varobj.c (_initialize_varobj): Add declaration.
11957         * vax-bsd-nat.c (_initialize_vaxbsd_nat): Add declaration.
11958         * vax-nbsd-tdep.c (_initialize_vaxnbsd_tdep): Add declaration.
11959         * vax-tdep.c (_initialize_vax_tdep): Add declaration.
11960         * windows-nat.c (_initialize_windows_nat): Add declaration.
11961         (_initialize_check_for_gdb_ini): Add declaration.
11962         (_initialize_loadable): Add declaration.
11963         * windows-tdep.c (_initialize_windows_tdep): Add declaration.
11964         * x86-bsd-nat.c (_initialize_x86_bsd_nat): Add declaration.
11965         * x86-linux-nat.c (_initialize_x86_linux_nat): Add declaration.
11966         * xcoffread.c (_initialize_xcoffread): Add declaration.
11967         * xml-support.c (_initialize_xml_support): Add declaration.
11968         * xstormy16-tdep.c (_initialize_xstormy16_tdep): Add declaration.
11969         * xtensa-linux-nat.c (_initialize_xtensa_linux_nat): Add declaration.
11970         * xtensa-linux-tdep.c (_initialize_xtensa_linux_tdep): Add declaration.
11971         * xtensa-tdep.c (_initialize_xtensa_tdep): Add declaration.
11973 2020-01-13  Simon Marchi  <simon.marchi@polymtl.ca>
11975         * regformats/regdat.sh: Generate declaration for init function.
11977 2020-01-13  Simon Marchi  <simon.marchi@polymtl.ca>
11979         * remote-sim.c (next_pid, INITIAL_PID, sim_inferior_data): Move
11980         up.
11981         (gdbsim_target) <get_inferior_data_by_ptid, resume_one_inferior,
11982         close_one_inferior>: New methods.
11983         (get_sim_inferior_data_by_ptid): Move to gdbsim_target,
11984         pass down target to find_inferior_pid.
11985         (gdbsim_target::fetch_registers, gdbsim_target::store_registers):
11986         Pass down target to find_inferior_ptid.
11987         (gdbsim_target::create_inferior): Pass down target to
11988         add_thread_silent.
11989         (gdbsim_close_inferior): Move to gdbsim_close_inferior, pass
11990         target down to find_inferior_ptid and switch_to_thread.
11991         (gdbsim_target::close): Update to call close_one_inferior.
11992         (struct resume_data): Remove.
11993         (gdbsim_resume_inferior): Move to gdbsim_target.  Take arguments
11994         directly, rather than through a void pointer.
11995         (gdbsim_target::resume): Update to call resume_one_inferior.
11997 2020-01-12  Simon Marchi  <simon.marchi@polymtl.ca>
11999         * gdbsupport/gdb_wait.c: Include gdb_wait.h.
12001 2020-01-12  Pedro Alves  <palves@redhat.com>
12003         * bsd-kvm.c (bsd_kvm_target::close): Call exit_inferior_silent
12004         directly for the current inferior instead of
12005         discard_all_inferiors.
12006         (discard_all_inferiors): Delete.
12008 2020-01-11  Tom Tromey  <tom@tromey.com>
12010         * tui/tui-wingeneral.c (box_win): Check cli_styling.
12011         * tui/tui-winsource.c (tui_source_window_base::refill): Use
12012         deprecated_safe_get_selected_frame.
12014 2020-01-10  Tankut Baris Aktemur  <tankut.baris.aktemur@intel.com>
12016         * inferior.c (print_inferior): Switch inferior before printing it.
12018 2020-01-10  Aleksandar Paunovic  <aleksandar.paunovic@intel.com>
12019             Pedro Alves  <palves@redhat.com>
12021         * progspace-and-thread.c (switch_to_program_space_and_thread):
12022         Assert there's an inferior for PSPACE.  Use
12023         switch_to_inferior_no_thread to switch the inferior too.
12024         * progspace.c (program_space::~program_space): Call
12025         clear_symtab_users here, with SYMFILE_DEFER_BP_RESET.
12026         (program_space::free_all_objfiles): Don't call clear_symtab_users
12027         here.
12028         * symfile.c (symbol_file_clear): Call clear_symtab_users here.
12030 2020-01-10  Pedro Alves  <palves@redhat.com>
12032         * NEWS: Mention multi-target debugging, "info connections", and
12033         "add-inferior -no-connection".
12035 2020-01-10  Pedro Alves  <palves@redhat.com>
12037         * infrun.c: Include "target-connection.h".
12038         (check_multi_target_resumption): New.
12039         (proceed): Call it.
12040         * target-connection.c (make_target_connection_string): Make
12041         extern.
12042         * target-connection.h (make_target_connection_string): Declare.
12044 2020-01-10  Pedro Alves  <palves@redhat.com>
12046         * Makefile.in (COMMON_SFILES): Add target-connection.c.
12047         * inferior.c (uiout_field_connection): New function.
12048         (print_inferior): Add new "connection-id" column.
12049         (add_inferior_command): Show connection number/string of added
12050         inferior.
12051         * process-stratum-target.h
12052         (process_stratum_target::connection_string): New virtual method.
12053         (process_stratum_target::connection_number): New field.
12054         * remote.c (remote_target::connection_string): New override.
12055         * target-connection.c: New file.
12056         * target-connection.h: New file.
12057         * target.c (decref_target): Remove process_stratum targets from
12058         the connection list.
12059         (target_stack::push): Add process_stratum targets to the
12060         connection list.
12062 2020-01-10  Pedro Alves  <palves@redhat.com>
12064         Revert:
12065         2016-04-12  Pedro Alves  <palves@redhat.com>
12066         * serial.c (serial_open, serial_fdopen_ops, do_serial_close):
12067         Remove references to name.
12068         * serial.h (struct serial) <name>: Delete.
12070 2020-01-10  Pedro Alves  <palves@redhat.com>
12072         * gdbarch-selftests.c (register_to_value_test): Remove "target
12073         already pushed" check.
12075 2020-01-10  Pedro Alves  <palves@redhat.com>
12076             John Baldwin  <jhb@FreeBSD.org>
12078         * aarch64-linux-nat.c
12079         (aarch64_linux_nat_target::thread_architecture): Adjust.
12080         * ada-tasks.c (print_ada_task_info): Adjust find_thread_ptid call.
12081         (task_command_1): Likewise.
12082         * aix-thread.c (sync_threadlists, aix_thread_target::resume)
12083         (aix_thread_target::wait, aix_thread_target::fetch_registers)
12084         (aix_thread_target::store_registers)
12085         (aix_thread_target::thread_alive): Adjust.
12086         * amd64-fbsd-tdep.c: Include "inferior.h".
12087         (amd64fbsd_get_thread_local_address): Pass down target.
12088         * amd64-linux-nat.c (ps_get_thread_area): Use ps_prochandle
12089         thread's gdbarch instead of target_gdbarch.
12090         * break-catch-sig.c (signal_catchpoint_print_it): Adjust call to
12091         get_last_target_status.
12092         * break-catch-syscall.c (print_it_catch_syscall): Likewise.
12093         * breakpoint.c (breakpoints_should_be_inserted_now): Consider all
12094         inferiors.
12095         (update_inserted_breakpoint_locations): Skip if inferiors with no
12096         execution.
12097         (update_global_location_list): When handling moribund locations,
12098         find representative inferior for location's pspace, and use thread
12099         count of its process_stratum target.
12100         * bsd-kvm.c (bsd_kvm_target_open): Pass target down.
12101         * bsd-uthread.c (bsd_uthread_target::wait): Use
12102         as_process_stratum_target and adjust thread_change_ptid and
12103         add_thread calls.
12104         (bsd_uthread_target::update_thread_list): Use
12105         as_process_stratum_target and adjust find_thread_ptid,
12106         thread_change_ptid and add_thread calls.
12107         * btrace.c (maint_btrace_packet_history_cmd): Adjust
12108         find_thread_ptid call.
12109         * corelow.c (add_to_thread_list): Adjust add_thread call.
12110         (core_target_open): Adjust add_thread_silent and thread_count
12111         calls.
12112         (core_target::pid_to_str): Adjust find_inferior_ptid call.
12113         * ctf.c (ctf_target_open): Adjust add_thread_silent call.
12114         * event-top.c (async_disconnect): Pop targets from all inferiors.
12115         * exec.c (add_target_sections): Push exec target on all inferiors
12116         sharing the program space.
12117         (remove_target_sections): Remove the exec target from all
12118         inferiors sharing the program space.
12119         (exec_on_vfork): New.
12120         * exec.h (exec_on_vfork): Declare.
12121         * fbsd-nat.c (fbsd_add_threads): Add fbsd_nat_target parameter.
12122         Pass it down.
12123         (fbsd_nat_target::update_thread_list): Adjust.
12124         (fbsd_nat_target::resume): Adjust.
12125         (fbsd_handle_debug_trap): Add fbsd_nat_target parameter.  Pass it
12126         down.
12127         (fbsd_nat_target::wait, fbsd_nat_target::post_attach): Adjust.
12128         * fbsd-tdep.c (fbsd_corefile_thread): Adjust
12129         get_thread_arch_regcache call.
12130         * fork-child.c (gdb_startup_inferior): Pass target down to
12131         startup_inferior and set_executing.
12132         * gdbthread.h (struct process_stratum_target): Forward declare.
12133         (add_thread, add_thread_silent, add_thread_with_info)
12134         (in_thread_list): Add process_stratum_target parameter.
12135         (find_thread_ptid(inferior*, ptid_t)): New overload.
12136         (find_thread_ptid, thread_change_ptid): Add process_stratum_target
12137         parameter.
12138         (all_threads()): Delete overload.
12139         (all_threads, all_non_exited_threads): Add process_stratum_target
12140         parameter.
12141         (all_threads_safe): Use brace initialization.
12142         (thread_count): Add process_stratum_target parameter.
12143         (set_resumed, set_running, set_stop_requested, set_executing)
12144         (threads_are_executing, finish_thread_state): Add
12145         process_stratum_target parameter.
12146         (switch_to_thread): Use is_current_thread.
12147         * i386-fbsd-tdep.c: Include "inferior.h".
12148         (i386fbsd_get_thread_local_address): Pass down target.
12149         * i386-linux-nat.c (i386_linux_nat_target::low_resume): Adjust.
12150         * inf-child.c (inf_child_target::maybe_unpush_target): Remove
12151         have_inferiors check.
12152         * inf-ptrace.c (inf_ptrace_target::create_inferior)
12153         (inf_ptrace_target::attach): Adjust.
12154         * infcall.c (run_inferior_call): Adjust.
12155         * infcmd.c (run_command_1): Pass target to
12156         scoped_finish_thread_state.
12157         (proceed_thread_callback): Skip inferiors with no execution.
12158         (continue_command): Rename 'all_threads' local to avoid hiding
12159         'all_threads' function.  Adjust get_last_target_status call.
12160         (prepare_one_step): Adjust set_running call.
12161         (signal_command): Use user_visible_resume_target.  Compare thread
12162         pointers instead of inferior_ptid.
12163         (info_program_command): Adjust to pass down target.
12164         (attach_command): Mark target's 'thread_executing' flag.
12165         (stop_current_target_threads_ns): New, factored out from ...
12166         (interrupt_target_1): ... this.  Switch inferior before making
12167         target calls.
12168         * inferior-iter.h
12169         (struct all_inferiors_iterator, struct all_inferiors_range)
12170         (struct all_inferiors_safe_range)
12171         (struct all_non_exited_inferiors_range): Filter on
12172         process_stratum_target too.  Remove explicit.
12173         * inferior.c (inferior::inferior): Push dummy target on target
12174         stack.
12175         (find_inferior_pid, find_inferior_ptid, number_of_live_inferiors):
12176         Add process_stratum_target parameter, and pass it down.
12177         (have_live_inferiors): Adjust.
12178         (switch_to_inferior_and_push_target): New.
12179         (add_inferior_command, clone_inferior_command): Handle
12180         "-no-connection" parameter.  Use
12181         switch_to_inferior_and_push_target.
12182         (_initialize_inferior): Mention "-no-connection" option in
12183         the help of "add-inferior" and "clone-inferior" commands.
12184         * inferior.h: Include "process-stratum-target.h".
12185         (interrupt_target_1): Use bool.
12186         (struct inferior) <push_target, unpush_target, target_is_pushed,
12187         find_target_beneath, top_target, process_target, target_at,
12188         m_stack>: New.
12189         (discard_all_inferiors): Delete.
12190         (find_inferior_pid, find_inferior_ptid, number_of_live_inferiors)
12191         (all_inferiors, all_non_exited_inferiors): Add
12192         process_stratum_target parameter.
12193         * infrun.c: Include "gdb_select.h" and <unordered_map>.
12194         (target_last_proc_target): New global.
12195         (follow_fork_inferior): Push target on new inferior.  Pass target
12196         to add_thread_silent.  Call exec_on_vfork.  Handle target's
12197         reference count.
12198         (follow_fork): Adjust get_last_target_status call.  Also consider
12199         target.
12200         (follow_exec): Push target on new inferior.
12201         (struct execution_control_state) <target>: New field.
12202         (user_visible_resume_target): New.
12203         (do_target_resume): Call target_async.
12204         (resume_1): Set target's threads_executing flag.  Consider resume
12205         target.
12206         (commit_resume_all_targets): New.
12207         (proceed): Also consider resume target.  Skip threads of inferiors
12208         with no execution.  Commit resumtion in all targets.
12209         (start_remote): Pass current inferior to wait_for_inferior.
12210         (infrun_thread_stop_requested): Consider target as well.  Pass
12211         thread_info pointer to clear_inline_frame_state instead of ptid.
12212         (infrun_thread_thread_exit): Consider target as well.
12213         (random_pending_event_thread): New inferior parameter.  Use it.
12214         (do_target_wait): Rename to ...
12215         (do_target_wait_1): ... this.  Add inferior parameter, and pass it
12216         down.
12217         (threads_are_resumed_pending_p, do_target_wait): New.
12218         (prepare_for_detach): Adjust calls.
12219         (wait_for_inferior): New inferior parameter.  Handle it.  Use
12220         do_target_wait_1 instead of do_target_wait.
12221         (fetch_inferior_event): Adjust.  Switch to representative
12222         inferior.  Pass target down.
12223         (set_last_target_status): Add process_stratum_target parameter.
12224         Save target in global.
12225         (get_last_target_status): Add process_stratum_target parameter and
12226         handle it.
12227         (nullify_last_target_wait_ptid): Clear 'target_last_proc_target'.
12228         (context_switch): Check inferior_ptid == null_ptid before calling
12229         inferior_thread().
12230         (get_inferior_stop_soon): Pass down target.
12231         (wait_one): Rename to ...
12232         (poll_one_curr_target): ... this.
12233         (struct wait_one_event): New.
12234         (wait_one): New.
12235         (stop_all_threads): Adjust.
12236         (handle_no_resumed, handle_inferior_event): Adjust to consider the
12237         event's target.
12238         (switch_back_to_stepped_thread): Also consider target.
12239         (print_stop_event): Update.
12240         (normal_stop): Update.  Also consider the resume target.
12241         * infrun.h (wait_for_inferior): Remove declaration.
12242         (user_visible_resume_target): New declaration.
12243         (get_last_target_status, set_last_target_status): New
12244         process_stratum_target parameter.
12245         * inline-frame.c (clear_inline_frame_state(ptid_t)): Add
12246         process_stratum_target parameter, and use it.
12247         (clear_inline_frame_state (thread_info*)): New.
12248         * inline-frame.c (clear_inline_frame_state(ptid_t)): Add
12249         process_stratum_target parameter.
12250         (clear_inline_frame_state (thread_info*)): Declare.
12251         * linux-fork.c (delete_checkpoint_command): Pass target down to
12252         find_thread_ptid.
12253         (checkpoint_command): Adjust.
12254         * linux-nat.c (linux_nat_target::follow_fork): Switch to thread
12255         instead of just tweaking inferior_ptid.
12256         (linux_nat_switch_fork): Pass target down to thread_change_ptid.
12257         (exit_lwp): Pass target down to find_thread_ptid.
12258         (attach_proc_task_lwp_callback): Pass target down to
12259         add_thread/set_running/set_executing.
12260         (linux_nat_target::attach): Pass target down to
12261         thread_change_ptid.
12262         (get_detach_signal): Pass target down to find_thread_ptid.
12263         Consider last target status's target.
12264         (linux_resume_one_lwp_throw, resume_lwp)
12265         (linux_handle_syscall_trap, linux_handle_extended_wait, wait_lwp)
12266         (stop_wait_callback, save_stop_reason, linux_nat_filter_event)
12267         (linux_nat_wait_1, resume_stopped_resumed_lwps): Pass target down.
12268         (linux_nat_target::async_wait_fd): New.
12269         (linux_nat_stop_lwp, linux_nat_target::thread_address_space): Pass
12270         target down.
12271         * linux-nat.h (linux_nat_target::async_wait_fd): Declare.
12272         * linux-tdep.c (get_thread_arch_regcache): Pass target down.
12273         * linux-thread-db.c (struct thread_db_info::process_target): New
12274         field.
12275         (add_thread_db_info): Save target.
12276         (get_thread_db_info): New process_stratum_target parameter.  Also
12277         match target.
12278         (delete_thread_db_info): New process_stratum_target parameter.
12279         Also match target.
12280         (thread_from_lwp): Adjust to pass down target.
12281         (thread_db_notice_clone): Pass down target.
12282         (check_thread_db_callback): Pass down target.
12283         (try_thread_db_load_1): Always push the thread_db target.
12284         (try_thread_db_load, record_thread): Pass target down.
12285         (thread_db_target::detach): Pass target down.  Always unpush the
12286         thread_db target.
12287         (thread_db_target::wait, thread_db_target::mourn_inferior): Pass
12288         target down.  Always unpush the thread_db target.
12289         (find_new_threads_callback, thread_db_find_new_threads_2)
12290         (thread_db_target::update_thread_list): Pass target down.
12291         (thread_db_target::pid_to_str): Pass current inferior down.
12292         (thread_db_target::get_thread_local_address): Pass target down.
12293         (thread_db_target::resume, maintenance_check_libthread_db): Pass
12294         target down.
12295         * nto-procfs.c (nto_procfs_target::update_thread_list): Adjust.
12296         * procfs.c (procfs_target::procfs_init_inferior): Declare.
12297         (proc_set_current_signal, do_attach, procfs_target::wait): Adjust.
12298         (procfs_init_inferior): Rename to ...
12299         (procfs_target::procfs_init_inferior): ... this and adjust.
12300         (procfs_target::create_inferior, procfs_notice_thread)
12301         (procfs_do_thread_registers): Adjust.
12302         * ppc-fbsd-tdep.c: Include "inferior.h".
12303         (ppcfbsd_get_thread_local_address): Pass down target.
12304         * proc-service.c (ps_xfer_memory): Switch current inferior and
12305         program space as well.
12306         (get_ps_regcache): Pass target down.
12307         * process-stratum-target.c
12308         (process_stratum_target::thread_address_space)
12309         (process_stratum_target::thread_architecture): Pass target down.
12310         * process-stratum-target.h
12311         (process_stratum_target::threads_executing): New field.
12312         (as_process_stratum_target): New.
12313         * ravenscar-thread.c
12314         (ravenscar_thread_target::update_inferior_ptid): Pass target down.
12315         (ravenscar_thread_target::wait, ravenscar_add_thread): Pass target
12316         down.
12317         * record-btrace.c (record_btrace_target::info_record): Adjust.
12318         (record_btrace_target::record_method)
12319         (record_btrace_target::record_is_replaying)
12320         (record_btrace_target::fetch_registers)
12321         (get_thread_current_frame_id, record_btrace_target::resume)
12322         (record_btrace_target::wait, record_btrace_target::stop): Pass
12323         target down.
12324         * record-full.c (record_full_wait_1): Switch to event thread.
12325         Pass target down.
12326         * regcache.c (regcache::regcache)
12327         (get_thread_arch_aspace_regcache, get_thread_arch_regcache): Add
12328         process_stratum_target parameter and handle it.
12329         (current_thread_target): New global.
12330         (get_thread_regcache): Add process_stratum_target parameter and
12331         handle it.  Switch inferior before calling target method.
12332         (get_thread_regcache): Pass target down.
12333         (get_thread_regcache_for_ptid): Pass target down.
12334         (registers_changed_ptid): Add process_stratum_target parameter and
12335         handle it.
12336         (registers_changed_thread, registers_changed): Pass target down.
12337         (test_get_thread_arch_aspace_regcache): New.
12338         (current_regcache_test): Define a couple local test_target_ops
12339         instances and use them for testing.
12340         (readwrite_regcache): Pass process_stratum_target parameter.
12341         (cooked_read_test, cooked_write_test): Pass mock_target down.
12342         * regcache.h (get_thread_regcache, get_thread_arch_regcache)
12343         (get_thread_arch_aspace_regcache): Add process_stratum_target
12344         parameter.
12345         (regcache::target): New method.
12346         (regcache::regcache, regcache::get_thread_arch_aspace_regcache)
12347         (regcache::registers_changed_ptid): Add process_stratum_target
12348         parameter.
12349         (regcache::m_target): New field.
12350         (registers_changed_ptid): Add process_stratum_target parameter.
12351         * remote.c (remote_state::supports_vCont_probed): New field.
12352         (remote_target::async_wait_fd): New method.
12353         (remote_unpush_and_throw): Add remote_target parameter.
12354         (get_current_remote_target): Adjust.
12355         (remote_target::remote_add_inferior): Push target.
12356         (remote_target::remote_add_thread)
12357         (remote_target::remote_notice_new_inferior)
12358         (get_remote_thread_info): Pass target down.
12359         (remote_target::update_thread_list): Skip threads of inferiors
12360         bound to other targets.  (remote_target::close): Don't discard
12361         inferiors.  (remote_target::add_current_inferior_and_thread)
12362         (remote_target::process_initial_stop_replies)
12363         (remote_target::start_remote)
12364         (remote_target::remote_serial_quit_handler): Pass down target.
12365         (remote_target::remote_unpush_target): New remote_target
12366         parameter.  Unpush the target from all inferiors.
12367         (remote_target::remote_unpush_and_throw): New remote_target
12368         parameter.  Pass it down.
12369         (remote_target::open_1): Check whether the current inferior has
12370         execution instead of checking whether any inferior is live.  Pass
12371         target down.
12372         (remote_target::remote_detach_1): Pass down target.  Use
12373         remote_unpush_target.
12374         (extended_remote_target::attach): Pass down target.
12375         (remote_target::remote_vcont_probe): Set supports_vCont_probed.
12376         (remote_target::append_resumption): Pass down target.
12377         (remote_target::append_pending_thread_resumptions)
12378         (remote_target::remote_resume_with_hc, remote_target::resume)
12379         (remote_target::commit_resume): Pass down target.
12380         (remote_target::remote_stop_ns): Check supports_vCont_probed.
12381         (remote_target::interrupt_query)
12382         (remote_target::remove_new_fork_children)
12383         (remote_target::check_pending_events_prevent_wildcard_vcont)
12384         (remote_target::remote_parse_stop_reply)
12385         (remote_target::process_stop_reply): Pass down target.
12386         (first_remote_resumed_thread): New remote_target parameter.  Pass
12387         it down.
12388         (remote_target::wait_as): Pass down target.
12389         (unpush_and_perror): New remote_target parameter.  Pass it down.
12390         (remote_target::readchar, remote_target::remote_serial_write)
12391         (remote_target::getpkt_or_notif_sane_1)
12392         (remote_target::kill_new_fork_children, remote_target::kill): Pass
12393         down target.
12394         (remote_target::mourn_inferior): Pass down target.  Use
12395         remote_unpush_target.
12396         (remote_target::core_of_thread)
12397         (remote_target::remote_btrace_maybe_reopen): Pass down target.
12398         (remote_target::pid_to_exec_file)
12399         (remote_target::thread_handle_to_thread_info): Pass down target.
12400         (remote_target::async_wait_fd): New.
12401         * riscv-fbsd-tdep.c: Include "inferior.h".
12402         (riscv_fbsd_get_thread_local_address): Pass down target.
12403         * sol2-tdep.c (sol2_core_pid_to_str): Pass down target.
12404         * sol-thread.c (sol_thread_target::wait, ps_lgetregs, ps_lsetregs)
12405         (ps_lgetfpregs, ps_lsetfpregs, sol_update_thread_list_callback):
12406         Adjust.
12407         * solib-spu.c (spu_skip_standalone_loader): Pass down target.
12408         * solib-svr4.c (enable_break): Pass down target.
12409         * spu-multiarch.c (parse_spufs_run): Pass down target.
12410         * spu-tdep.c (spu2ppu_sniffer): Pass down target.
12411         * target-delegates.c: Regenerate.
12412         * target.c (g_target_stack): Delete.
12413         (current_top_target): Return the current inferior's top target.
12414         (target_has_execution_1): Refer to the passed-in inferior's top
12415         target.
12416         (target_supports_terminal_ours): Check whether the initial
12417         inferior was already created.
12418         (decref_target): New.
12419         (target_stack::push): Incref/decref the target.
12420         (push_target, push_target, unpush_target): Adjust.
12421         (target_stack::unpush): Defref target.
12422         (target_is_pushed): Return bool.  Adjust to refer to the current
12423         inferior's target stack.
12424         (dispose_inferior): Delete, and inline parts ...
12425         (target_preopen): ... here.  Only dispose of the current inferior.
12426         (target_detach): Hold strong target reference while detaching.
12427         Pass target down.
12428         (target_thread_name): Add assertion.
12429         (target_resume): Pass down target.
12430         (target_ops::beneath, find_target_at): Adjust to refer to the
12431         current inferior's target stack.
12432         (get_dummy_target): New.
12433         (target_pass_ctrlc): Pass the Ctrl-C to the first inferior that
12434         has a thread running.
12435         (initialize_targets): Rename to ...
12436         (_initialize_target): ... this.
12437         * target.h: Include "gdbsupport/refcounted-object.h".
12438         (struct target_ops): Inherit refcounted_object.
12439         (target_ops::shortname, target_ops::longname): Make const.
12440         (target_ops::async_wait_fd): New method.
12441         (decref_target): Declare.
12442         (struct target_ops_ref_policy): New.
12443         (target_ops_ref): New typedef.
12444         (get_dummy_target): Declare function.
12445         (target_is_pushed): Return bool.
12446         * thread-iter.c (all_matching_threads_iterator::m_inf_matches)
12447         (all_matching_threads_iterator::all_matching_threads_iterator):
12448         Handle filter target.
12449         * thread-iter.h (struct all_matching_threads_iterator, struct
12450         all_matching_threads_range, class all_non_exited_threads_range):
12451         Filter by target too.  Remove explicit.
12452         * thread.c (threads_executing): Delete.
12453         (inferior_thread): Pass down current inferior.
12454         (clear_thread_inferior_resources): Pass down thread pointer
12455         instead of ptid_t.
12456         (add_thread_silent, add_thread_with_info, add_thread): Add
12457         process_stratum_target parameter.  Use it for thread and inferior
12458         searches.
12459         (is_current_thread): New.
12460         (thread_info::deletable): Use it.
12461         (find_thread_ptid, thread_count, in_thread_list)
12462         (thread_change_ptid, set_resumed, set_running): New
12463         process_stratum_target parameter.  Pass it down.
12464         (set_executing): New process_stratum_target parameter.  Pass it
12465         down.  Adjust reference to 'threads_executing'.
12466         (threads_are_executing): New process_stratum_target parameter.
12467         Adjust reference to 'threads_executing'.
12468         (set_stop_requested, finish_thread_state): New
12469         process_stratum_target parameter.  Pass it down.
12470         (switch_to_thread): Also match inferior.
12471         (switch_to_thread): New process_stratum_target parameter.  Pass it
12472         down.
12473         (update_threads_executing): Reimplement.
12474         * top.c (quit_force): Pop targets from all inferior.
12475         (gdb_init): Don't call initialize_targets.
12476         * windows-nat.c (windows_nat_target) <get_windows_debug_event>:
12477         Declare.
12478         (windows_add_thread, windows_delete_thread): Adjust.
12479         (get_windows_debug_event): Rename to ...
12480         (windows_nat_target::get_windows_debug_event): ... this.  Adjust.
12481         * tracefile-tfile.c (tfile_target_open): Pass down target.
12482         * gdbsupport/common-gdbthread.h (struct process_stratum_target):
12483         Forward declare.
12484         (switch_to_thread): Add process_stratum_target parameter.
12485         * mi/mi-interp.c (mi_on_resume_1): Add process_stratum_target
12486         parameter.  Use it.
12487         (mi_on_resume): Pass target down.
12488         * nat/fork-inferior.c (startup_inferior): Add
12489         process_stratum_target parameter.  Pass it down.
12490         * nat/fork-inferior.h (startup_inferior): Add
12491         process_stratum_target parameter.
12492         * python/py-threadevent.c (py_get_event_thread): Pass target down.
12494 2020-01-10  Pedro Alves  <palves@redhat.com>
12496         * remote.c (remote_target::start_remote): Don't set inferior_ptid
12497         directly.  Instead find the first thread in the thread list and
12498         use switch_to_thread.
12500 2020-01-10  Pedro Alves  <palves@redhat.com>
12502         * remote.c (remote_target::remote_add_inferior): Don't bind a
12503         process to the current inferior if the current inferior is already
12504         bound to a process.
12506 2020-01-10  Tankut Baris Aktemur  <tankut.baris.aktemur@intel.com>
12507             Pedro Alves  <palves@redhat.com>
12509         * remote.c (remote_target::remote_parse_stop_reply) <W/X packets>:
12510         If no process is specified, return null_ptid instead of
12511         inferior_ptid.
12512         (remote_target::wait_as): Handle TARGET_WAITKIND_EXITED /
12513         TARGET_WAITKIND_SIGNALLED with no pid.
12515 2020-01-10  Pedro Alves  <palves@redhat.com>
12517         * remote.c (first_remote_resumed_thread): New.
12518         (remote_target::wait_as): Use it as default event_ptid instead of
12519         inferior_ptid.
12521 2020-01-10  Pedro Alves  <palves@redhat.com>
12523         * infrun.c (handle_no_resumed): Use all_non_exited_inferiors.
12525 2020-01-10  Pedro Alves  <palves@redhat.com>
12527         * tracefile-tfile.c (tfile_target::close): Assert that trace_fd is
12528         not -1.
12530 2020-01-10  Pedro Alves  <palves@redhat.com>
12532         * break-catch-sig.c (signal_catchpoint_print_it): Don't pass a
12533         ptid to get_last_target_status.
12534         * break-catch-syscall.c (print_it_catch_syscall): Don't pass a
12535         ptid to get_last_target_status.
12536         * infcmd.c (continue_command): Don't pass a target_waitstatus to
12537         get_last_target_status.
12538         (info_program_command): Don't pass a target_waitstatus to
12539         get_last_target_status.
12540         * infrun.c (init_wait_for_inferior): Use
12541         nullify_last_target_wait_ptid.
12542         (get_last_target_status): Handle nullptr arguments.
12543         (nullify_last_target_wait_ptid): Clear target_last_waitstatus.
12544         (print_stop_event): Don't pass a ptid to get_last_target_status.
12545         (normal_stop): Don't pass a ptid to get_last_target_status.
12546         * infrun.h (get_last_target_status, set_last_target_status): Move
12547         comments here and update.
12548         (nullify_last_target_wait_ptid): Declare.
12549         * linux-fork.c (fork_load_infrun_state): Remove local extern
12550         declaration of nullify_last_target_wait_ptid.
12551         * linux-nat.c (get_detach_signal): Don't pass a target_waitstatus
12552         to get_last_target_status.
12554 2020-01-10  Pedro Alves  <palves@redhat.com>
12556         * gdbthread.h (scoped_restore_current_thread)
12557         <dont_restore, restore, m_dont_restore>: Declare.
12558         * thread.c (thread_alive): Add assertion.  Return bool.
12559         (switch_to_thread_if_alive): New.
12560         (prune_threads): Switch inferior/thread.
12561         (print_thread_info_1): Switch thread before calling target methods.
12562         (scoped_restore_current_thread::restore): New, factored out from
12563         ...
12564         (scoped_restore_current_thread::~scoped_restore_current_thread):
12565         ... this.
12566         (scoped_restore_current_thread::scoped_restore_current_thread):
12567         Add assertion.
12568         (thread_apply_all_command, thread_select): Use
12569         switch_to_thread_if_alive.
12570         * infrun.c (proceed, restart_threads, handle_signal_stop)
12571         (switch_back_to_stepped_thread): Switch current thread before
12572         calling target methods.
12574 2020-01-10  Pedro Alves <palves@redhat.com>
12576         * inferior.c (switch_to_inferior_no_thread): New function,
12577         factored out from ...
12578         (inferior_command): ... here.
12579         * inferior.h (switch_to_inferior_no_thread): Declare.
12580         * mi/mi-main.c (run_one_inferior): Use
12581         switch_to_inferior_no_thread.
12583 2020-01-10  Pedro Alves  <palves@redhat.com>
12585         * infcmd.c (kill_command): Remove dead code.
12587 2020-01-10  Pedro Alves  <palves@redhat.com>
12589         * remote.c (remote_target::mourn_inferior): No longer check
12590         whether the target is running.
12592 2020-01-10  Pedro Alves  <palves@redhat.com>
12594         * corelow.c (core_target::has_execution): Change parameter type to
12595         inferior pointer.
12596         * inferior.c (number_of_live_inferiors): Use
12597         inferior::has_execution instead of target_has_execution_1.
12598         * inferior.h (inferior::has_execution): New.
12599         * linux-thread-db.c (thread_db_target::update_thread_list): Use
12600         inferior::has_execution instead of target_has_execution_1.
12601         * process-stratum-target.c
12602         (process_stratum_target::has_execution): Change parameter type to
12603         inferior pointer.  Check the inferior's PID instead of
12604         inferior_ptid.
12605         * process-stratum-target.h
12606         (process_stratum_target::has_execution): Change parameter type to
12607         inferior pointer.
12608         * record-full.c (record_full_core_target::has_execution): Change
12609         parameter type to inferior pointer.
12610         * target.c (target_has_execution_1): Change parameter type to
12611         inferior pointer.
12612         (target_has_execution_current): Adjust.
12613         * target.h (target_ops::has_execution): Change parameter type to
12614         inferior pointer.
12615         (target_has_execution_1): Change parameter type to inferior
12616         pointer.  Change return type to bool.
12617         * tracefile.h (tracefile_target::has_execution): Change parameter
12618         type to inferior pointer.
12620 2020-01-10  Pedro Alves  <palves@redhat.com>
12622         * exceptions.c (print_flush): Remove current_top_target() check.
12624 2020-01-10  Pedro Alves  <palves@redhat.com>
12626         * remote.c (show_remote_exec_file): Show the current inferior's
12627         exec-file instead of the command variable's value.
12629 2020-01-10  Pedro Alves  <palves@redhat.com>
12631         * record-full.c (record_full_resume_ptid): New global.
12632         (record_full_target::resume): Set it.
12633         (record_full_wait_1): Use record_full_resume_ptid instead of
12634         inferior_ptid.
12636 2020-01-10  Pedro Alves  <palves@redhat.com>
12638         * gdbthread.h (scoped_restore_current_thread)
12639         <dont_restore, restore, m_dont_restore>: Declare.
12640         * thread.c (thread_alive): Add assertion.  Return bool.
12641         (switch_to_thread_if_alive): New.
12642         (prune_threads): Switch inferior/thread.
12643         (print_thread_info_1): Switch thread before calling target methods.
12644         (scoped_restore_current_thread::restore): New, factored out from
12645         ...
12646         (scoped_restore_current_thread::~scoped_restore_current_thread):
12647         ... this.
12648         (scoped_restore_current_thread::scoped_restore_current_thread):
12649         Add assertion.
12650         (thread_apply_all_command, thread_select): Use
12651         switch_to_thread_if_alive.
12653 2020-01-10  George Barrett  <bob@bob131.so>
12655         * stap-probe.c (stap_modify_semaphore): Don't check for null
12656         semaphores.
12657         (stap_probe::set_semaphore, stap_probe::clear_semaphore): Check
12658         for null semaphores.
12660 2020-01-09  Andrew Burgess  <andrew.burgess@embecosm.com>
12662         * tui/tui-source.c (tui_source_window::do_scroll_vertical): Update
12663         all source windows, and maintain horizontal scroll status while
12664         doing so.
12666 2020-01-09  Tom Tromey  <tom@tromey.com>
12668         PR tui/18932:
12669         * tui/tui-source.c (tui_source_window::do_scroll_vertical): Call
12670         update_source_window, not print_source_lines.
12672 2020-01-09  Andrew Burgess  <andrew.burgess@embecosm.com>
12674         * tui/tui.c (tui_enable): Register tui hooks after calling
12675         tui_display_main.
12677 2020-01-09  Christian Biesinger  <cbiesinger@google.com>
12679         * gdbsupport/common-defs.h: Don't define _FORTIFY_SOURCE on MinGW.
12681 2020-01-08  Simon Marchi  <simon.marchi@efficios.com>
12683         * thread.c (print_thread_info_1): Fix indentation.
12685 2020-01-09  Christian Biesinger  <cbiesinger@google.com>
12687         * symtab.c (general_symbol_info::compute_and_set_names): Move the
12688         unique_xmalloc_ptr outside the if to always free the demangled name.
12690 2020-01-08  Tom Tromey  <tromey@adacore.com>
12692         * xcoffread.c (enter_line_range, read_xcoff_symtab)
12693         (process_xcoff_symbol, xcoff_symfile_offsets): Update.
12694         * symtab.h (MSYMBOL_VALUE_ADDRESS): Update.
12695         (struct section_offsets, ANOFFSET, SIZEOF_N_SECTION_OFFSETS):
12696         Remove.
12697         (section_offsets): New typedef.
12698         * symtab.c (fixup_section, get_msymbol_address): Update.
12699         * symmisc.c (dump_msymbols): Update.
12700         * symfile.h (relative_addr_info_to_section_offsets)
12701         (symfile_map_offsets_to_segments): Update.
12702         * symfile.c (build_section_addr_info_from_objfile)
12703         (init_objfile_sect_indices): Update.
12704         (struct place_section_arg): Change type of "offsets".
12705         (place_section): Update.
12706         (relative_addr_info_to_section_offsets): Change type of
12707         "section_offsets".  Remove "num_sections" parameter.
12708         (default_symfile_offsets, syms_from_objfile_1)
12709         (set_objfile_default_section_offset): Update.
12710         (reread_symbols): No need to preserve section offsets by hand.
12711         (symfile_map_offsets_to_segments): Change type of "offsets".
12712         * stap-probe.c (relocate_address): Update.
12713         * stabsread.h (process_one_symbol): Update.
12714         * solib-target.c (struct lm_info_target) <offsets>: Change type.
12715         (solib_target_relocate_section_addresses): Update.
12716         * solib-svr4.c (enable_break, svr4_relocate_main_executable):
12717         Update.
12718         * solib-frv.c (frv_relocate_main_executable): Update.
12719         * solib-dsbt.c (dsbt_relocate_main_executable): Update.
12720         * solib-aix.c (solib_aix_get_section_offsets): Change return
12721         type.
12722         (solib_aix_solib_create_inferior_hook): Update.
12723         * remote.c (remote_target::get_offsets): Update.
12724         * psymtab.c (find_pc_sect_psymtab): Update.
12725         * psympriv.h (struct partial_symbol) <address, text_low,
12726         text_high>: Update.
12727         * objfiles.h (obj_section_offset): Update.
12728         (struct objfile) <section_offsets>: Change type.
12729         <num_sections>: Remove.
12730         (objfile_relocate): Update.
12731         * objfiles.c (entry_point_address_query): Update
12732         (relocate_one_symbol): Change type of "section_offsets".
12733         (objfile_relocate1, objfile_relocate1): Change type of
12734         "new_offsets".
12735         (objfile_rebase1): Update.
12736         * mipsread.c (mipscoff_symfile_read): Update.
12737         (read_alphacoff_dynamic_symtab): Remove "section_offsets"
12738         parameter.
12739         * mdebugread.c (parse_symbol): Change type of "section_offsets".
12740         (parse_external, psymtab_to_symtab_1): Update.
12741         * machoread.c (macho_symfile_offsets): Update.
12742         * ia64-tdep.c (ia64_find_unwind_table): Update.
12743         * hppa-tdep.c (read_unwind_info): Update.
12744         * hppa-bsd-tdep.c (hppabsd_find_global_pointer): Update.
12745         * dwarf2read.c (create_addrmap_from_index)
12746         (create_addrmap_from_aranges, dw2_find_pc_sect_compunit_symtab)
12747         (process_psymtab_comp_unit_reader, add_partial_symbol)
12748         (add_partial_subprogram, process_full_comp_unit)
12749         (read_file_scope, read_func_scope, read_lexical_block_scope)
12750         (read_call_site_scope, dwarf2_rnglists_process)
12751         (dwarf2_ranges_process, dwarf2_ranges_read)
12752         (dwarf_decode_lines_1, var_decode_location, new_symbol)
12753         (dwarf2_fetch_die_loc_sect_off, dwarf2_per_cu_text_offset):
12754         Update.
12755         * dwarf2-frame.c (execute_cfa_program, dwarf2_frame_find_fde):
12756         Update.
12757         * dtrace-probe.c (dtrace_probe::get_relocated_address): Update.
12758         * dbxread.c (read_dbx_symtab, read_ofile_symtab): Update.
12759         (process_one_symbol): Change type of "section_offsets".
12760         * ctfread.c (get_objfile_text_range): Update.
12761         * coffread.c (coff_symtab_read, enter_linenos)
12762         (process_coff_symbol): Update.
12763         * coff-pe-read.c (add_pe_forwarded_sym): Update.
12764         * amd64-windows-tdep.c (amd64_windows_find_unwind_info): Update.
12766 2020-01-08  Tom Tromey  <tromey@adacore.com>
12768         * dwarf2read.c (parse_macro_definition): Use std::string.
12769         (parse_macro_definition): Likewise.
12771 2020-01-08  Tom Tromey  <tromey@adacore.com>
12773         * dwarf2read.c (abbrev_table_read_table): Use std::vector.
12774         (ATTR_ALLOC_CHUNK): Remove.
12776 2020-01-08  Tom Tromey  <tromey@adacore.com>
12778         * dwarf2read.c (fixup_go_packaging): Use unique_xmalloc_ptr.
12780 2020-01-08  Tom Tromey  <tromey@adacore.com>
12782         * dwarf2read.c (add_partial_symbol): Use unique_xmalloc_ptr.
12783         (dwarf2_compute_name, open_dwo_file): Likewise.
12784         (process_enumeration_scope): Use std::vector.
12785         (guess_partial_die_structure_name): Use unique_xmalloc_ptr.
12786         (partial_die_info::fixup, dwarf2_start_subfile)
12787         (guess_full_die_structure_name, dwarf2_name): Likewise.
12788         (determine_prefix): Update.
12789         (guess_full_die_structure_name): Make return type const.
12790         (partial_die_full_name): Return unique_xmalloc_ptr.
12791         (DW_FIELD_ALLOC_CHUNK): Remove.
12793 2020-01-07  Tom Tromey  <tromey@adacore.com>
12795         PR build/24937:
12796         * stap-probe.c (class stap_static_probe_ops): Add constructor.
12798 2020-01-02  Jon Turney  <jon.turney@dronecode.org.uk>
12800         * cli/cli-style.c: Set cli_styling to 'true' in the Cygwin build.
12802 2020-01-06  Andrew Burgess  <andrew.burgess@embecosm.com>
12804         * stack.c (print_frame_info): Move disassemble_next_line code
12805         inside source_print block.
12807 2020-01-06  Eli Zaretskii  <eliz@gnu.org>
12809         * gdbsupport/gdb_wait.c: Include <signal.h> instead of
12810         gdb/signals.h, as we are now using native signal symbols.
12812 2020-01-06  Shahab Vahedi  <shahab@synopsys.com>
12814         * tui/tui-disasm.c (tui_disasm_window::addr_is_displayed): Avoid
12815         overflow by an early check of content vs threshold.
12816         * tui/tui-source.c (tui_source_window::line_is_displayed):
12817         Likewise.
12819 2020-01-06  Eli Zaretskii  <eliz@gnu.org>
12821         * NEWS: Mention the recent fix of $_exitsignal on MS-Windows.
12823 2020-01-02  Jon Turney  <jon.turney@dronecode.org.uk>
12825         * coff-pe-read.c (read_pe_exported_syms): Don't try to read the
12826         export table if no section contains it's RVA.
12828 2020-01-06  Eli Zaretskii  <eliz@gnu.org>
12830         * windows-tdep.c: Fix a typo in WINDOWS_SIGABRT.
12832 2020-01-06  Hannes Domani  <ssbssa@yahoo.de>
12834         * source.c (print_source_lines_base): Set last_line_listed.
12836 2020-01-06  Shahab Vahedi  <shahab@synopsys.com>
12838         * tui/tui-disasm.c: Remove trailing spaces.
12840 2020-01-06  Eli Zaretskii  <eliz@gnu.org>
12841             Pedro Alves  <palves@redhat.com>
12843         * Makefile.in (COMMON_SFILES): Add gdbsupport/gdb_wait.c.
12844         * windows-tdep.c: New enumeration of WINDOWS_SIG* signals.
12845         (windows_gdb_signal_to_target): New function, uses the above
12846         enumeration to convert GDB internal signal codes to equivalent
12847         Windows codes.
12848         (windows_init_abi): Call set_gdbarch_gdb_signal_to_target.
12849         * windows-nat.c: Include "gdb_wait.h".
12850         (get_windows_debug_event): Extract the fatal exception from the
12851         exit status and convert to the equivalent Posix signal number.
12852         * cli/cli-cmds.c (exit_status_set_internal_vars): Account for the
12853         possibility that WTERMSIG returns GDB_SIGNAL_UNKNOWN.
12854         * gdbsupport/gdb_wait.c: New file, implements
12855         windows_status_to_termsig.
12856         * gdbsupport/gdb_wait.h (WIFEXITED, WIFSIGNALED, WEXITSTATUS)
12857         (WTERMSIG) [__MINGW32__]: Separate definitions for MinGW.
12859 2020-01-05  Andrew Burgess  <andrew.burgess@embecosm.com>
12861         * tui/tui-layout.c (tui_add_win_to_layout): Use tui_set_layout not
12862         show_layout.
12864 2020-01-05  Luis Machado  <luis.machado@linaro.org>
12866         * aarch64-linux-nat.c
12867         (aarch64_linux_nat_target::thread_architecture): Use bfd_arch_aarch64
12868         and bfd_mach_aarch64.
12870 2020-01-03  Philippe Waroquiers  <philippe.waroquiers@skynet.be>
12872         * ui-file.c (stdio_file::can_emit_style_escape)
12873         (tee_file::can_emit_style_escape): Ensure style is used also on
12874         gdb_stderr when gdb_stderr is a tty supporting styling, similarly
12875         to gdb_stdout.
12876         * main.c (set_gdb_data_directory): Use file style to output the
12877         warning that the given pathname is not a directory.
12878         * top.c (show_history_filename, gdb_safe_append_history)
12879         (show_gdb_datadir): Use file style.
12881 2020-01-03  Hannes Domani  <ssbssa@yahoo.de>
12883         * solib-target.c (struct lm_info_target):
12884         Change offsets to be a unique_xmalloc_ptr.
12885         (solib_target_relocate_section_addresses): Update.
12887 2020-01-03  Hannes Domani  <ssbssa@yahoo.de>
12889         * windows-nat.c (windows_clear_solib): Free so_list linked list.
12891 2020-01-03  Bernd Edlinger  <bernd.edlinger@hotmail.de>
12893         * MAINTAINERS (Write After Approval): Add myself.
12895 2020-01-02  Luis Machado  <luis.machado@linaro.org>
12897         * proc-service.c (get_ps_regcache): Remove reference to obsolete
12898         Cell BE architecture.
12899         * target.h (struct target_ops) <thread_architecture>: Likewise.
12901 2020-01-01  Hannes Domani  <ssbssa@yahoo.de>
12903         * Makefile.in: Use INSTALL_PROGRAM_ENV.
12905 2020-01-01  Hannes Domani  <ssbssa@yahoo.de>
12907         * MAINTAINERS (Write After Approval): Add myself.
12909 2020-01-01  Joel Brobecker  <brobecker@adacore.com>
12911         * gdbarch.sh: Update copyright year range of generated files.
12913 2020-01-01  Joel Brobecker  <brobecker@adacore.com>
12915         Update copyright year range in all GDB files.
12917 2020-01-01  Joel Brobecker  <brobecker@adacore.com>
12919         * copyright.py: Convert to Python 3.
12921 2020-01-01  Joel Brobecker  <brobecker@adacore.com>
12923         * copyright.py: Adapt after move of gnulib directory from gdb
12924         directory to toplevel directory.
12926 2020-01-01  Joel Brobecker  <brobecker@adacore.com>
12928         * copyright.py (main): Exit if run from the wrong directory.
12930 2020-01-01  Joel Brobecker  <brobecker@adacore.com>
12932         * top.c (print_gdb_version): Change copyright year to 2020.
12934 2020-01-01  Joel Brobecker  <brobecker@adacore.com>
12936         * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2019.
12938 For older changes see ChangeLog-2019.
12940 Local Variables:
12941 mode: change-log
12942 left-margin: 8
12943 fill-column: 74
12944 version-control: never
12945 coding: utf-8
12946 End: