mirror of
https://sourceware.org/git/binutils-gdb.git
synced 2024-12-01 05:55:23 +08:00
5e984dbf35
AArch64 MTE support in the Linux kernel exposes a new register through ptrace. This patch adds the required code to support it. include/ChangeLog: 2021-03-24 Luis Machado <luis.machado@linaro.org> * elf/common.h (NT_ARM_TAGGED_ADDR_CTRL): Define. gdb/ChangeLog: 2021-03-24 Luis Machado <luis.machado@linaro.org> * aarch64-linux-nat.c (fetch_mteregs_from_thread): New function. (store_mteregs_to_thread): New function. (aarch64_linux_nat_target::fetch_registers): Update to call fetch_mteregs_from_thread. (aarch64_linux_nat_target::store_registers): Update to call store_mteregs_to_thread. * aarch64-tdep.c (aarch64_mte_register_names): New struct. (aarch64_cannot_store_register): Handle MTE registers. (aarch64_gdbarch_init): Initialize and setup MTE registers. * aarch64-tdep.h (gdbarch_tdep) <mte_reg_base>: New field. <has_mte>: New method. * arch/aarch64-linux.h (AARCH64_LINUX_SIZEOF_MTE): Define. gdbserver/ChangeLog: 2021-03-24 Luis Machado <luis.machado@linaro.org> * linux-aarch64-low.cc (aarch64_fill_mteregset): New function. (aarch64_store_mteregset): New function. (aarch64_regsets): Add MTE register set entry. (aarch64_sve_regsets): Add MTE register set entry.
4286 lines
146 KiB
Plaintext
4286 lines
146 KiB
Plaintext
2021-03-24 Luis Machado <luis.machado@linaro.org>
|
||
|
||
* aarch64-linux-nat.c (fetch_mteregs_from_thread): New function.
|
||
(store_mteregs_to_thread): New function.
|
||
(aarch64_linux_nat_target::fetch_registers): Update to call
|
||
fetch_mteregs_from_thread.
|
||
(aarch64_linux_nat_target::store_registers): Update to call
|
||
store_mteregs_to_thread.
|
||
* aarch64-tdep.c (aarch64_mte_register_names): New struct.
|
||
(aarch64_cannot_store_register): Handle MTE registers.
|
||
(aarch64_gdbarch_init): Initialize and setup MTE registers.
|
||
* aarch64-tdep.h (gdbarch_tdep) <mte_reg_base>: New field.
|
||
<has_mte>: New method.
|
||
* arch/aarch64-linux.h (AARCH64_LINUX_SIZEOF_MTE): Define.
|
||
|
||
2021-03-24 Luis Machado <luis.machado@linaro.org>
|
||
|
||
* aarch64-linux-nat.c
|
||
(aarch64_linux_nat_target::read_description): Take MTE flag into
|
||
account.
|
||
Slight refactor to hwcap flag checking.
|
||
* aarch64-linux-tdep.c
|
||
(aarch64_linux_core_read_description): Likewise.
|
||
* aarch64-tdep.c (tdesc_aarch64_list): Add one more dimension for
|
||
MTE.
|
||
(aarch64_read_description): Add mte_p parameter and update to use it.
|
||
Update the documentation.
|
||
(aarch64_gdbarch_init): Update call to aarch64_read_description.
|
||
* aarch64-tdep.h (aarch64_read_description): Add mte_p parameter.
|
||
* arch/aarch64.c: Include ../features/aarch64-mte.c.
|
||
(aarch64_create_target_description): Add mte_p parameter and update
|
||
the code to use it.
|
||
* arch/aarch64.h (aarch64_create_target_description): Add mte_p
|
||
parameter.
|
||
* features/Makefile (FEATURE_XMLFILES): Add aarch64-mte.xml.
|
||
* features/aarch64-mte.c: New file, generated.
|
||
* features/aarch64-mte.xml: New file.
|
||
|
||
2021-03-24 Luis Machado <luis.machado@linaro.org>
|
||
|
||
* Makefile.in (HFILES_NO_SRCDIR): Add arch/aarch64-mte-linux.h.
|
||
* aarch64-linux-nat.c: Include arch/aarch64-mte-linux.h.
|
||
* aarch64-linux-tdep.c: Likewise
|
||
* arch/aarch64-mte-linux.h: New file.
|
||
|
||
2021-03-24 Luis Machado <luis.machado@linaro.org>
|
||
|
||
* remote: Include gdbsupport/selftest.h.
|
||
(test_memory_tagging_functions): New function.
|
||
(_initialize_remote): Register test_memory_tagging_functions.
|
||
|
||
2021-03-24 Luis Machado <luis.machado@linaro.org>
|
||
|
||
* remote.c (PACKET_memory_tagging_feature): New enum.
|
||
(remote_memory_tagging_p): New function.
|
||
(remote_protocol_features): New "memory-tagging" entry.
|
||
(remote_target::remote_query_supported): Handle memory tagging
|
||
support.
|
||
(remote_target::supports_memory_tagging): Implement.
|
||
(create_fetch_memtags_request, parse_fetch_memtags_reply)
|
||
(create_store_memtags_request): New functions.
|
||
(remote_target::fetch_memtags): Implement.
|
||
(remote_target::store_memtags): Implement.
|
||
(_initialize_remote): Add new "memory-tagging-feature"
|
||
config command.
|
||
|
||
2021-03-24 Luis Machado <luis.machado@linaro.org>
|
||
|
||
* arch-utils.c (default_memtag_to_string, default_tagged_address_p)
|
||
(default_memtag_matches_p, default_set_memtags)
|
||
(default_get_memtag): New functions.
|
||
* arch-utils.h (default_memtag_to_string, default_tagged_address_p)
|
||
(default_memtag_matches_p, default_set_memtags)
|
||
(default_get_memtag): New prototypes.
|
||
* gdbarch.c: Regenerate.
|
||
* gdbarch.h: Regenerate.
|
||
* gdbarch.sh (memtag_to_string, tagged_address_p, memtag_matches_p)
|
||
(set_memtags, get_memtag, memtag_granule_size): New gdbarch hooks.
|
||
(enum memtag_type): New enum.
|
||
|
||
2021-03-24 Luis Machado <luis.machado@linaro.org>
|
||
|
||
* remote.c (remote_target) <supports_memory_tagging>: New method
|
||
override.
|
||
<fetch_memtags>: New method override.
|
||
<store_memtags>: New method override.
|
||
(remote_target::supports_memory_tagging): New method.
|
||
(remote_target::fetch_memtags): New method.
|
||
(remote_target::store_memtags): New method.
|
||
* target-delegates.c: Regenerate.
|
||
* target.h (struct target_ops) <supports_memory_tagging>: New virtual
|
||
method.
|
||
<fetch_memtags>: New virtual method.
|
||
<store_memtags>: New virtual method.
|
||
(target_supports_memory_tagging): Define.
|
||
(target_fetch_memtags): Define.
|
||
(target_store_memtags): Define.
|
||
* target-debug.h (target_debug_print_size_t)
|
||
(target_debug_print_const_gdb_byte_vector_r)
|
||
(target_debug_print_gdb_byte_vector_r): New functions.
|
||
|
||
2021-03-23 Simon Marchi <simon.marchi@polymtl.ca>
|
||
|
||
* target.h (target_longname): Remove.
|
||
|
||
2021-03-23 Simon Marchi <simon.marchi@polymtl.ca>
|
||
|
||
* target.h (target_is_pushed): Remove, update callers to use
|
||
inferior::target_is_pushed instead.
|
||
* target.c (target_is_pushed): Remove.
|
||
|
||
2021-03-23 Simon Marchi <simon.marchi@polymtl.ca>
|
||
|
||
* target.h (push_target): Remove, update callers to use
|
||
inferior::push_target.
|
||
* target.c (push_target): Remove.
|
||
* inferior.h (class inferior) <push_target>: New overload.
|
||
|
||
2021-03-23 Simon Marchi <simon.marchi@polymtl.ca>
|
||
|
||
* target.h (unpush_target): Remove, update all callers
|
||
to use `inferior::unpush_target` instead.
|
||
(struct target_unpusher) <operator()>: Just declare.
|
||
* target.c (unpush_target): Remove.
|
||
(target_unpusher::operator()): New.
|
||
|
||
2021-03-22 Andrew Burgess <andrew.burgess@embecosm.com>
|
||
|
||
* dwarf2/read.c (process_psymtab_comp_unit): Replace abort with an
|
||
error.
|
||
(process_full_comp_unit): Validate the top-level tag before
|
||
processing the first DIE.
|
||
(read_func_scope): Ensure we have a valid builder.
|
||
|
||
2021-03-22 Andrew Burgess <andrew.burgess@embecosm.com>
|
||
|
||
* objc-lang.c (objc_demangle): Renamed to
|
||
objc_language::demangle_symbol, and moved later in the file.
|
||
(objc_language::sniff_from_mangled_name): Call demangle_symbol
|
||
member function.
|
||
(objc_language::demangle_symbol): Defined outside of class
|
||
declaration. The definition is the old objc_demangle with NULL
|
||
changed to nullptr, and if conditions relating to nullptr pointers
|
||
or null character checks made explicit.
|
||
* objc-lang.h (objc_demangle): Delete declaration.
|
||
|
||
2021-03-22 Martin Liska <mliska@suse.cz>
|
||
|
||
* arm-tdep.c (show_disassembly_style_sfunc): Replace usage of CONST_STRNEQ with startswith.
|
||
(_initialize_arm_tdep): Likewise.
|
||
|
||
2021-03-20 Tom Tromey <tom@tromey.com>
|
||
|
||
* xcoffread.c (xcoff_initial_scan): Create partial symtabs.
|
||
* symfile.c (syms_from_objfile_1, reread_symbols): Update.
|
||
* psymtab.h (make_psymbol_functions): Don't declare.
|
||
* psymtab.c (make_psymbol_functions): Remove.
|
||
(maintenance_print_psymbols): Update.
|
||
* psympriv.h (struct psymbol_functions): Add no-argument
|
||
constructor.
|
||
* objfiles.h (struct objfile) <reset_psymtabs>: Remove.
|
||
<partial_symtabs>: Remove.
|
||
* mdebugread.c (mdebug_build_psymtabs): Create partial symtabs.
|
||
* elfread.c (read_partial_symbols): Update.
|
||
(elf_symfile_read): Remove check for existing partial symbols.
|
||
Don't clear "qf".
|
||
* dwarf2/read.c (dwarf2_has_info): Remove check for existing
|
||
partial symbols.
|
||
(dwarf2_build_psymtabs): Add psymbol_functions parameter. Create
|
||
partial symtabs.
|
||
* dwarf2/public.h (dwarf2_build_psymtabs): Add psymbol_functions
|
||
parameter.
|
||
* dbxread.c (dbx_symfile_read): Create partial symtabs.
|
||
* ctfread.c (elfctf_build_psymtabs): Create partial symtabs.
|
||
|
||
2021-03-20 Tom Tromey <tom@tromey.com>
|
||
|
||
* dwarf2/read.c (dwarf2_build_psymtabs): Update.
|
||
* symfile.c (syms_from_objfile_1, reread_symbols): Update.
|
||
* symfile-debug.c (objfile::has_partial_symbols)
|
||
(objfile::find_last_source_symtab)
|
||
(objfile::forget_cached_source_info)
|
||
(objfile::map_symtabs_matching_filename, objfile::lookup_symbol)
|
||
(objfile::print_stats, objfile::dump)
|
||
(objfile::expand_symtabs_for_function)
|
||
(objfile::expand_all_symtabs)
|
||
(objfile::expand_symtabs_with_fullname)
|
||
(objfile::map_matching_symbols)
|
||
(objfile::expand_symtabs_matching)
|
||
(objfile::find_pc_sect_compunit_symtab)
|
||
(objfile::map_symbol_filenames)
|
||
(objfile::find_compunit_symtab_by_address)
|
||
(objfile::lookup_global_symbol_language)
|
||
(objfile::require_partial_symbols): Update.
|
||
* psymtab.c (maintenance_print_psymbols)
|
||
(maintenance_info_psymtabs, maintenance_check_psymtabs): Update.
|
||
* objfiles.h (struct objfile) <qf>: Now a forward_list.
|
||
* objfiles.c (objfile_relocate1): Update.
|
||
* elfread.c (elf_symfile_read): Update.
|
||
|
||
2021-03-20 Tom Tromey <tom@tromey.com>
|
||
|
||
* objfiles.h (struct objfile) <psymtabs>: Remove method.
|
||
|
||
2021-03-20 Tom Tromey <tom@tromey.com>
|
||
|
||
* psymtab.c (psymbol_functions::count_psyms): Rename.
|
||
(psymbol_functions::print_stats): Update.
|
||
* psympriv.h (struct psymbol_functions) <count_psyms>: Declare
|
||
method.
|
||
|
||
2021-03-20 Tom Tromey <tom@tromey.com>
|
||
|
||
* psymtab.c (psymbol_functions::require_partial_symbols): Rename.
|
||
(psymbol_functions::find_pc_sect_psymtab): Rename.
|
||
(psymbol_functions::find_pc_sect_compunit_symtab)
|
||
(maintenance_print_psymbols, maintenance_check_psymtabs): Update.
|
||
* psympriv.h (struct psymbol_functions) <require_partial_symbols>:
|
||
Declare new method.
|
||
<get_partial_symtabs, find_pc_sect_psymtab>: Likewise.
|
||
|
||
2021-03-20 Tom Tromey <tom@tromey.com>
|
||
|
||
* xcoffread.c (xcoff_start_psymtab): Add partial_symtabs parameter.
|
||
(xcoff_end_psymtab, scan_xcoff_symtab): Update.
|
||
* psymtab.c (partial_symtab::partial_symtab): Add partial_symtabs
|
||
parameter.
|
||
(add_psymbol_to_bcache): Remove.
|
||
(partial_symtab::add_psymbol): Add partial_symtabs parameter.
|
||
(partial_symtab::add_psymbol, partial_symtab::partial_symtab):
|
||
Likewise.
|
||
* psympriv.h (partial_symtab): Add partial_symtabs parameter.
|
||
<add_psymbol>: Likewise.
|
||
(standard_psymtab, legacy_psymtab): Likewise.
|
||
* mdebugread.c (parse_partial_symbols): Update.
|
||
(handle_psymbol_enumerators): Add partial_symtabs parameter.
|
||
(handle_psymbol_enumerators): Update.
|
||
(new_psymtab): Add partial_symtabs parameter.
|
||
* dwarf2/read.h (dwarf2_psymtab): Add partial_symtabs parameter.
|
||
* dwarf2/read.c (dwarf2_include_psymtab): Add partial_symtabs
|
||
parameter.
|
||
(dwarf2_create_include_psymtab): Add partial_symtabs parameter.
|
||
(create_partial_symtab, add_partial_symbol, dwarf_decode_lines):
|
||
Update.
|
||
* dbxread.c (read_dbx_symtab): Update.
|
||
(start_psymtab): Add partial_symtabs parameter.
|
||
(dbx_end_psymtab): Update.
|
||
* ctfread.c (struct ctf_context) <partial_symtabs>: New member.
|
||
(ctf_psymtab): Add partial_symtabs parameter.
|
||
(create_partial_symtab, ctf_psymtab_type_cb, ctf_psymtab_var_cb):
|
||
Update.
|
||
(scan_partial_symbols): Add partial_symtabs parameter.
|
||
(scan_partial_symbols, elfctf_build_psymtabs)
|
||
(ctf_psymtab_add_enums): Update.
|
||
|
||
2021-03-20 Tom Tromey <tom@tromey.com>
|
||
|
||
* symfile.c (read_symbols): Use objfile method.
|
||
* symfile-debug.c (objfile::require_partial_symbols): New method.
|
||
* psymtab.h (require_partial_symbols): Don't declare.
|
||
* psymtab.c (require_partial_symbols): Use objfile method. Now
|
||
static.
|
||
(psymbol_functions::map_symtabs_matching_filename, OBJFILE)
|
||
(psymbol_functions::lookup_symbol)
|
||
(psymbol_functions::lookup_global_symbol_language)
|
||
(psymbol_functions::find_last_source_symtab)
|
||
(psymbol_functions::forget_cached_source_info)
|
||
(psymbol_functions::print_stats)
|
||
(psymbol_functions::expand_symtabs_for_function)
|
||
(psymbol_functions::expand_all_symtabs)
|
||
(psymbol_functions::expand_symtabs_with_fullname)
|
||
(psymbol_functions::map_symbol_filenames)
|
||
(psymbol_functions::map_matching_symbols)
|
||
(psymbol_functions::expand_symtabs_matching)
|
||
(psymbol_functions::find_compunit_symtab_by_address)
|
||
(maintenance_print_psymbols, maintenance_info_psymtabs)
|
||
(maintenance_check_psymtabs): Update.
|
||
* objfiles.h (struct objfile) <require_partial_symbols>: Declare
|
||
new method.
|
||
|
||
2021-03-20 Tom Tromey <tom@tromey.com>
|
||
|
||
* xcoffread.c (xcoff_sym_fns): Update.
|
||
* symfile.h (struct sym_fns) <sym_read_psymbols>: Remove.
|
||
* symfile-debug.c (objfile::has_partial_symbols): Use
|
||
can_lazily_read_symbols.
|
||
(debug_sym_read_psymbols): Remove.
|
||
(debug_sym_fns, install_symfile_debug_logging): Update.
|
||
* quick-symbol.h (struct quick_symbol_functions)
|
||
<can_lazily_read_symbols, read_partial_symbols>: New methods.
|
||
* psymtab.c (require_partial_symbols): Use new 'qf' methods.
|
||
* mipsread.c (ecoff_sym_fns): Update.
|
||
* machoread.c (macho_sym_fns): Update.
|
||
* elfread.c (struct lazy_dwarf_reader): New.
|
||
(elf_symfile_read): Update.
|
||
(read_psyms): Now a method of lazy_dwarf_reader.
|
||
(elf_sym_fns): Update.
|
||
(elf_sym_fns_lazy_psyms): Remove.
|
||
* dbxread.c (aout_sym_fns): Update.
|
||
* coffread.c (coff_sym_fns): Update.
|
||
|
||
2021-03-20 Tom Tromey <tom@tromey.com>
|
||
|
||
* symfile.c (syms_from_objfile_1): Call reset_psymtabs.
|
||
(reread_symbols): Move reset_psymtabs call later.
|
||
* objfiles.c (objfile::objfile): Don't initialize
|
||
partial_symtabs.
|
||
|
||
2021-03-20 Tom Tromey <tom@tromey.com>
|
||
|
||
* dwarf2/read.c (dwarf2_build_psymtabs): Call
|
||
set_partial_symtabs.
|
||
* symfile.c (syms_from_objfile_1, reread_symbols): Update.
|
||
* psymtab.h (make_psymbol_functions): Add partial_symtabs
|
||
parameter.
|
||
* psymtab.c (find_pc_sect_psymtab): Add partial_symtabs
|
||
parameter.
|
||
(psymbol_functions::find_pc_sect_compunit_symtab)
|
||
(psymbol_functions::print_stats, psymbol_functions::dump)
|
||
(psymbol_functions::has_symbols): Update.
|
||
(make_psymbol_functions, dump_psymtab_addrmap): Add
|
||
partial_symtabs parameter.
|
||
(maintenance_print_psymbols): Update.
|
||
(psymbol_functions::expand_symtabs_matching): Update.
|
||
* psympriv.h (struct psymbol_functions): Add constructor.
|
||
<m_partial_symtabs>: New member.
|
||
<set_partial_symtabs>: New method.
|
||
|
||
2021-03-20 Tom Tromey <tom@tromey.com>
|
||
|
||
* dwarf2/read.c (dwarf2_create_include_psymtab): Add per_bfd
|
||
parameter.
|
||
(process_psymtab_comp_unit_reader)
|
||
(build_type_psymtab_dependencies, dwarf2_build_psymtabs_hard)
|
||
(add_partial_subprogram, dwarf2_ranges_read, dwarf_decode_lines):
|
||
Reference psymtabs via per_bfd.
|
||
|
||
2021-03-20 Tom Tromey <tom@tromey.com>
|
||
|
||
* dwarf2/index-write.c (struct addrmap_index_data) <objfile>:
|
||
Remove.
|
||
(add_address_entry): Remove objfile parameter.
|
||
(add_address_entry_worker): Update.
|
||
(write_address_map): Replace objfile parameter with per_bfd.
|
||
(write_gdbindex, write_psymtabs_to_index): Update.
|
||
|
||
2021-03-20 Tom Tromey <tom@tromey.com>
|
||
|
||
* dwarf2/read.c (dwarf2_base_index_functions::print_stats): Add
|
||
print_bcache parameter.
|
||
* symfile-debug.c (objfile::print_stats): Add print_bcache
|
||
parameter.
|
||
* quick-symbol.h (struct quick_symbol_functions)
|
||
<print_stats>: Add print_bcache parameter.
|
||
* symmisc.c (print_symbol_bcache_statistics, count_psyms): Move
|
||
code to psymtab.c.
|
||
(print_objfile_statistics): Move psymtab code to psymtab.c.
|
||
* psymtab.c (count_psyms): Move from symmisc.c.
|
||
(psymbol_functions::print_stats): Print partial symbol and bcache
|
||
statistics. Add print_bcache parameter.
|
||
* objfiles.h (print_symbol_bcache_statistics): Don't declare.
|
||
(struct objfile) <print_stats>: Add print_bcache parameter.
|
||
* maint.c (maintenance_print_statistics): Update.
|
||
|
||
2021-03-20 Tom Tromey <tom@tromey.com>
|
||
|
||
* dwarf2/read.h (struct dwarf2_per_bfd) <psymtabs_addrmap>: New
|
||
member.
|
||
* dwarf2/read.c (create_addrmap_from_index)
|
||
(create_addrmap_from_aranges): Set per_bfd addrmap.
|
||
(dwarf2_read_gdb_index): Don't set partial_symtabs.
|
||
(dwarf2_base_index_functions::find_pc_sect_compunit_symtab): Use
|
||
per_bfd addrmap.
|
||
(dwarf2_read_debug_names): Don't set partial_symtabs.
|
||
(dwarf2_initialize_objfile): Likewise.
|
||
|
||
2021-03-20 Tom Tromey <tom@tromey.com>
|
||
|
||
* dwarf2/read.c (dwarf2_build_psymtabs): Set partial_symtabs
|
||
earlier.
|
||
|
||
2021-03-20 Tom Tromey <tom@tromey.com>
|
||
|
||
* psympriv.h (psymtab_discarder): Take psymtab_storage parameter.
|
||
(~psymtab_discarder, keep): Update.
|
||
<m_objfile>: Remove.
|
||
<m_partial_symtabs>: New member.
|
||
* dwarf2/read.c (dwarf2_build_psymtabs): Update.
|
||
|
||
2021-03-20 Tom Tromey <tom@tromey.com>
|
||
|
||
* xcoffread.c (xcoff_end_psymtab): Add partial_symtabs parameter.
|
||
(xcoff_end_psymtab): Update.
|
||
(scan_xcoff_symtab): Add partial_symtabs parameter.
|
||
(xcoff_initial_scan): Update.
|
||
* stabsread.h (dbx_end_psymtab): Add partial_symtabs parameter.
|
||
* mdebugread.c (mdebug_build_psymtabs): Update.
|
||
(parse_partial_symbols): Add partial_symtabs parameter.
|
||
* dbxread.c (dbx_symfile_read): Update.
|
||
(read_dbx_symtab): Add partial_symtabs parameter.
|
||
(read_dbx_symtab): Update.
|
||
(dbx_end_psymtab): Add partial_symtabs parameter.
|
||
|
||
2021-03-20 Tom Tromey <tom@tromey.com>
|
||
|
||
* quick-symbol.h (struct quick_symbol_functions)
|
||
<relocated>: New method.
|
||
* psymtab.h (struct psymbol_functions) <relocated>: New
|
||
method.
|
||
<fill_psymbol_map>: Declare method.
|
||
<m_psymbol_map>: New member.
|
||
* psymtab.c (psymbol_functions::fill_psymbol_map): Rename.
|
||
(psymbol_functions::find_compunit_symtab_by_address): Update.
|
||
* objfiles.h (reset_psymtabs): Don't clear psymbol_map.
|
||
(struct objfile) <psymbol_map>: Remove.
|
||
* objfiles.c (objfile_relocate1): Update.
|
||
|
||
2021-03-20 Tom Tromey <tom@tromey.com>
|
||
|
||
* psympriv.h (struct psymbol_functions): New.
|
||
* symfile.c (syms_from_objfile_1, reread_symbols): Update.
|
||
* symfile-debug.c (objfile::find_compunit_symtab_by_address)
|
||
(objfile::lookup_global_symbol_language): Update.
|
||
* quick-symbol.h (struct quick_symbol_functions): Convert function
|
||
pointers to methods. Add virtual destructor.
|
||
(quick_symbol_functions_up): New typedef.
|
||
* psymtab.h (psym_functions, dwarf2_gdb_index_functions)
|
||
(dwarf2_debug_names_functions): Don't declare.
|
||
(make_psymbol_functions): Declare.
|
||
* psymtab.c (psymbol_functions::map_symtabs_matching_filename)
|
||
(psymbol_functions::find_pc_sect_compunit_symtab)
|
||
(psymbol_functions::lookup_symbol)
|
||
(psymbol_functions::lookup_global_symbol_language)
|
||
(psymbol_functions::find_last_source_symtab)
|
||
(psymbol_functions::forget_cached_source_info)
|
||
(psymbol_functions::print_stats, psymbol_functions::dump)
|
||
(psymbol_functions::expand_symtabs_for_function)
|
||
(psymbol_functions::expand_all_symtabs)
|
||
(psymbol_functions::expand_symtabs_with_fullname)
|
||
(psymbol_functions::map_symbol_filenames)
|
||
(psymbol_functions::map_matching_symbols)
|
||
(psymbol_functions::expand_symtabs_matching)
|
||
(psymbol_functions::has_symbols)
|
||
(psymbol_functions::find_compunit_symtab_by_address): Rename.
|
||
(psym_functions): Remove.
|
||
(make_psymbol_functions): New function.
|
||
* objfiles.h (struct objfile) <qf>: Change type.
|
||
* elfread.c (elf_symfile_read): Update.
|
||
* dwarf2/read.c (struct dwarf2_base_index_functions)
|
||
(struct dwarf2_gdb_index, struct dwarf2_debug_names_index): New.
|
||
(make_dwarf_gdb_index, make_dwarf_debug_names): New functions.
|
||
(dwarf2_base_index_functions::find_last_source_symtab)
|
||
(dwarf2_base_index_functions::forget_cached_source_info)
|
||
(dwarf2_base_index_functions::map_symtabs_matching_filename)
|
||
(dwarf2_gdb_index::lookup_symbol)
|
||
(dwarf2_base_index_functions::print_stats)
|
||
(dwarf2_gdb_index::dump)
|
||
(dwarf2_gdb_index::expand_symtabs_for_function)
|
||
(dwarf2_base_index_functions::expand_all_symtabs)
|
||
(dwarf2_base_index_functions::expand_symtabs_with_fullname):
|
||
Rename.
|
||
(dwarf2_gdb_index::map_matching_symbols): New method.
|
||
(dwarf2_gdb_index::expand_symtabs_matching): New method.
|
||
(dwarf2_base_index_functions::find_pc_sect_compunit_symtab)
|
||
(dwarf2_base_index_functions::map_symbol_filenames)
|
||
(dwarf2_base_index_functions::has_symbols): Rename.
|
||
(dwarf2_gdb_index_functions): Remove.
|
||
(dwarf2_debug_names_index::lookup_symbol)
|
||
(dwarf2_debug_names_index::dump)
|
||
(dwarf2_debug_names_index::expand_symtabs_for_function)
|
||
(dwarf2_debug_names_index::map_matching_symbols)
|
||
(dwarf2_debug_names_index::expand_symtabs_matching): Rename.
|
||
(dwarf2_debug_names_functions): Remove.
|
||
* dwarf2/public.h (make_dwarf_gdb_index, make_dwarf_debug_names):
|
||
Declare.
|
||
|
||
2021-03-20 Tom Tromey <tom@tromey.com>
|
||
|
||
* psymtab.c (require_partial_symbols): Check that 'sf' is not
|
||
null.
|
||
* xcoffread.c (xcoff_sym_fns): Update.
|
||
* symfile.h (struct sym_fns) <qf>: Remove.
|
||
* symfile.c (syms_from_objfile_1, reread_symbols): Update.
|
||
* symfile-debug.c (objfile::has_partial_symbols)
|
||
(objfile::find_last_source_symtab)
|
||
(objfile::forget_cached_source_info)
|
||
(objfile::map_symtabs_matching_filename, objfile::lookup_symbol)
|
||
(objfile::print_stats, objfile::dump)
|
||
(objfile::expand_symtabs_for_function)
|
||
(objfile::expand_all_symtabs)
|
||
(objfile::expand_symtabs_with_fullname)
|
||
(objfile::map_matching_symbols)
|
||
(objfile::expand_symtabs_matching)
|
||
(objfile::find_pc_sect_compunit_symtab)
|
||
(objfile::map_symbol_filenames)
|
||
(objfile::find_compunit_symtab_by_address)
|
||
(objfile::lookup_global_symbol_language, debug_sym_fns)
|
||
(install_symfile_debug_logging): Update.
|
||
* objfiles.h (struct objfile) <qf>: New member.
|
||
* mipsread.c (ecoff_sym_fns): Update.
|
||
* machoread.c (macho_sym_fns): Update.
|
||
* elfread.c (elf_sym_fns_gdb_index, elf_sym_fns_debug_names):
|
||
Don't declare.
|
||
(elf_symfile_read, elf_sym_fns, elf_sym_fns_lazy_psyms): Update.
|
||
* dbxread.c (aout_sym_fns): Update.
|
||
* coffread.c (coff_sym_fns): Update.
|
||
|
||
2021-03-20 Tom Tromey <tom@tromey.com>
|
||
|
||
* symfile.h (symbol_compare_ftype, symbol_filename_ftype)
|
||
(expand_symtabs_file_matcher_ftype)
|
||
(expand_symtabs_symbol_matcher_ftype)
|
||
(expand_symtabs_exp_notify_ftype, struct quick_symbol_functions):
|
||
Move to quick-symbol.h.
|
||
* quick-symbol.h: New file.
|
||
|
||
2021-03-20 Tom Tromey <tom@tromey.com>
|
||
|
||
* symtab.c (iterate_over_symtabs, expand_symtab_containing_pc)
|
||
(lookup_symbol_via_quick_fns, find_quick_global_symbol_language)
|
||
(basic_lookup_transparent_type_quick)
|
||
(find_pc_sect_compunit_symtab, find_symbol_at_address)
|
||
(find_line_symtab, global_symbol_searcher::expand_symtabs):
|
||
Update.
|
||
* symmisc.c (print_objfile_statistics, dump_objfile)
|
||
(maintenance_expand_symtabs): Update.
|
||
* symfile.c (symbol_file_add_with_addrs)
|
||
(expand_symtabs_matching, map_symbol_filenames): Update.
|
||
* symfile-debug.c (objfile::has_partial_symbols)
|
||
(objfile::find_last_source_symtab)
|
||
(objfile::forget_cached_source_info)
|
||
(objfile::map_symtabs_matching_filename, objfile::lookup_symbol)
|
||
(objfile::print_stats, objfile::dump)
|
||
(objfile::expand_symtabs_for_function)
|
||
(objfile::expand_all_symtabs)
|
||
(objfile::expand_symtabs_with_fullname)
|
||
(objfile::map_matching_symbols)
|
||
(objfile::expand_symtabs_matching)
|
||
(objfile::find_pc_sect_compunit_symtab)
|
||
(objfile::map_symbol_filenames)
|
||
(objfile::find_compunit_symtab_by_address)
|
||
(objfile::lookup_global_symbol_language): New methods.
|
||
(debug_sym_quick_functions): Remove.
|
||
(debug_sym_fns, install_symfile_debug_logging): Update.
|
||
* source.c (forget_cached_source_info_for_objfile)
|
||
(select_source_symtab): Update.
|
||
* objfiles.h (struct objfile): Add methods corresponding to
|
||
quick_symbol_functions.
|
||
* objfiles.c (objfile::has_partial_symbols): Move to
|
||
symfile-debug.c.
|
||
* linespec.c (iterate_over_all_matching_symtabs): Update.
|
||
* cp-support.c (add_symbol_overload_list_qualified): Update.
|
||
* ada-lang.c (add_nonlocal_symbols): Update.
|
||
|
||
2021-03-20 Tom Tromey <tom@tromey.com>
|
||
|
||
* objfiles.h (struct objfile) <has_partial_symbols>: Return bool.
|
||
* symfile.h (struct quick_symbol_functions) <has_symbols>: Return
|
||
bool.
|
||
* symfile-debug.c (debug_qf_has_symbols): Return bool.
|
||
* psymtab.c (psym_has_symbols): Return bool.
|
||
* objfiles.c (objfile::has_partial_symbols): Return bool.
|
||
* dwarf2/read.c (dw2_has_symbols): Return bool.
|
||
|
||
2021-03-20 Tom Tromey <tom@tromey.com>
|
||
|
||
* symfile.c (read_symbols): Update.
|
||
* objfiles.h (struct objfile) <has_partial_symbols>: New method.
|
||
(objfile_has_partial_symbols): Don't declare.
|
||
* objfiles.c (objfile::has_partial_symbols): Rename from
|
||
objfile_has_partial_symbols.
|
||
(objfile_has_symbols, have_partial_symbols): Update.
|
||
* elfread.c (elf_symfile_read): Update.
|
||
* dwarf2/read.c (dwarf2_has_info): Update.
|
||
* coffread.c (coff_symfile_read): Update.
|
||
|
||
2021-03-20 Tom Tromey <tom@tromey.com>
|
||
|
||
* coffread.c: Include dwarf2/public.h.
|
||
* dwarf2/frame.c: Include dwarf2/public.h.
|
||
* dwarf2/index-write.h: Include dwarf2/public.h, not symfile.h.
|
||
* dwarf2/public.h: New file.
|
||
* dwarf2/read.c: Include dwarf2/public.h.
|
||
* elfread.c: Include dwarf2/public.h.
|
||
* machoread.c: Include dwarf2/public.h.
|
||
* symfile.h (dwarf2_has_info, enum dw_index_kind)
|
||
(dwarf2_initialize_objfile, dwarf2_build_psymtabs)
|
||
(dwarf2_build_frame_info): Move to dwarf2/public.h.
|
||
* xcoffread.c: Include dwarf2/public.h.
|
||
|
||
2021-03-20 Tom Tromey <tom@tromey.com>
|
||
|
||
* symfile.h (enum dwarf2_section_enum)
|
||
(dwarf2_get_section_info): Move to dwarf2/read.h.
|
||
* dwarf2/read.h (enum dwarf2_section_enum)
|
||
(dwarf2_get_section_info): Move from symfile.h.
|
||
|
||
2021-03-19 Pedro Alves <pedro@palves.net>
|
||
|
||
* thread.c (any_thread_of_inferior): Check if there's a selected
|
||
thread before calling inferior_thread().
|
||
|
||
2021-03-18 Tom Tromey <tromey@adacore.com>
|
||
|
||
* dwarf2/stringify.c (dwarf_unit_type_name): New function. Use
|
||
get_DW_UT_name.
|
||
* dwarf2/stringify.h (dwarf_unit_type_name): Declare.
|
||
* dwarf2/comp-unit.c (dwarf_unit_type_name): Remove.
|
||
|
||
2021-03-18 Andrew Burgess <andrew.burgess@embecosm.com>
|
||
|
||
* python/py-param.c (get_set_value): Update header comment.
|
||
|
||
2021-03-17 Simon Marchi <simon.marchi@polymtl.ca>
|
||
|
||
* infrun.c (check_multi_target_resumption): Remove argument to
|
||
all_non_exited_inferiors.
|
||
|
||
2021-03-16 Christian Biesinger <cbiesinger@google.com>
|
||
|
||
* windows-nat.c (windows_init_thread_list): Add message to
|
||
debug log.
|
||
|
||
2021-03-16 Andrew Burgess <andrew.burgess@embecosm.com>
|
||
|
||
* python/py-framefilter.c (py_print_frame): Use PyInt_Check as
|
||
well as PyLong_Check for Python 2.
|
||
|
||
2021-03-15 Tom Tromey <tromey@adacore.com>
|
||
|
||
PR build/27579:
|
||
* rust-exp.y (maker_map): Use gdb::hash_enum.
|
||
* stap-probe.c (stap_maker_map): Use gdb::hash_enum.
|
||
|
||
2021-03-15 Simon Marchi <simon.marchi@polymtl.ca>
|
||
|
||
* dwarf2/read.c (create_debug_type_hash_table): Remove colon at
|
||
end of debug print.
|
||
|
||
2021-03-15 Simon Marchi <simon.marchi@polymtl.ca>
|
||
|
||
* dwarf2/read.c (dw2_get_file_names_reader): Remove info_ptr
|
||
parameter, adjust caller.
|
||
|
||
2021-03-15 Tom Tromey <tromey@adacore.com>
|
||
|
||
* ada-exp.y (simple_exp): Always push a result for unary '+'.
|
||
|
||
2021-03-15 Tom Tromey <tromey@adacore.com>
|
||
|
||
* ada-lang.c (ada_unop_ind_operation::evaluate): Call
|
||
ada_ensure_varsize_limit.
|
||
|
||
2021-03-15 Tom Tromey <tromey@adacore.com>
|
||
|
||
* ada-lang.c (numeric_type_p, integer_type_p): Return true for
|
||
fixed-point.
|
||
* ada-exp.y (maybe_overload): New function.
|
||
(ada_wrap_overload): New function.
|
||
(ada_un_wrap2, ada_wrap2, ada_wrap_op): Use maybe_overload.
|
||
(exp1, simple_exp, relation, and_exp, and_then_exp, or_exp)
|
||
(or_else_exp, xor_exp, primary): Update.
|
||
|
||
2021-03-15 Tom Tromey <tromey@adacore.com>
|
||
|
||
PR ada/27545:
|
||
* ada-lang.c (ada_var_value_operation::evaluate): Use recursive
|
||
call for tagged type.
|
||
|
||
2021-03-15 Tom Tromey <tromey@adacore.com>
|
||
|
||
* ada-exp.y (exp1): Handle resolution of the right hand side of an
|
||
assignment.
|
||
|
||
2021-03-15 Tom Tromey <tromey@adacore.com>
|
||
|
||
* ada-lang.c (ada_aggregate_operation::assign_aggregate): Return
|
||
container.
|
||
(ada_assign_operation::evaluate): Update.
|
||
* ada-exp.h (class ada_aggregate_operation) <assign_aggregate>:
|
||
Change return type.
|
||
|
||
2021-03-15 Felix Willgerodt <felix.willgerodt@intel.com>
|
||
|
||
* i386-tdep.c (i386_floatformat_for_type): Add COMPLEX*32 and REAL*16.
|
||
|
||
2021-03-15 Andrew Burgess <andrew.burgess@embecosm.com>
|
||
|
||
* python/python.c (gdbpy_source_objfile_script): Use
|
||
make_scoped_restore to restore gdbpy_current_objfile.
|
||
(gdbpy_execute_objfile_script): Likewise.
|
||
|
||
2021-03-14 Tom Tromey <tom@tromey.com>
|
||
|
||
* dwarf2/read.c (read_attribute_value): Use cu_header
|
||
consistently.
|
||
|
||
2021-03-14 Tom Tromey <tom@tromey.com>
|
||
|
||
* dwarf2/read.c (struct die_reader_specs) <abfd>: Fix formatting.
|
||
(peek_die_abbrev): Use reader.abfd.
|
||
|
||
2021-03-14 Tom Tromey <tom@tromey.com>
|
||
|
||
* dwarf2/read.c (dwarf2_per_cu_data::get_header): Set
|
||
m_header_read_in.
|
||
|
||
2021-03-13 Tom Tromey <tom@tromey.com>
|
||
|
||
* dwarf2/read.c (struct partial_die_info): Update.
|
||
(peek_die_abbrev, skip_children, skip_one_die, read_full_die_1)
|
||
(load_partial_dies, partial_die_info::partial_die_info): Update.
|
||
* dwarf2/abbrev.h (lookup_abbrev): Constify.
|
||
|
||
2021-03-13 Tom Tromey <tom@tromey.com>
|
||
|
||
* dwarf2/abbrev.c (abbrev_table::read): Remove Irix 6 workaround.
|
||
|
||
2021-03-12 Christian Biesinger <cbiesinger@google.com>
|
||
|
||
PR threads/27239
|
||
* cp-support.c: Use scoped_segv_handler_restore.
|
||
* event-top.c (thread_local_segv_handler): Made static.
|
||
(scoped_segv_handler_restore::scoped_segv_handler_restore):
|
||
New function.
|
||
(scoped_segv_handler_restore::~scoped_segv_handler_restore): New
|
||
function.
|
||
* event-top.h (class scoped_segv_handler_restore): New class.
|
||
(thread_local_segv_handler): Removed.
|
||
|
||
2021-03-10 Tom Tromey <tromey@adacore.com>
|
||
|
||
* parser-defs.h (parser_state): Change completion to bool.
|
||
<parse_completion>: Likewise.
|
||
* ada-lang.h (ada_find_operator_symbol, ada_resolve_funcall)
|
||
(ada_resolve_variable, ada_resolve_function): Update.
|
||
* ada-lang.c (ada_find_operator_symbol): Change
|
||
parse_completion to bool.
|
||
(ada_resolve_funcall, ada_resolve_variable)
|
||
(ada_resolve_function): Likewise.
|
||
|
||
2021-03-09 Tom Tromey <tromey@adacore.com>
|
||
|
||
* eval.c (operation::evaluate_funcall): Use function formal
|
||
parameter types when evaluating.
|
||
|
||
2021-03-09 Andrew Burgess <andrew.burgess@embecosm.com>
|
||
|
||
* gdb-gdb.py.in (StructMainTypePrettyPrinter) <owner_to_string>:
|
||
Updated fields names flag_objfile_owned to m_flag_objfile_owned,
|
||
and owner to m_owner.
|
||
|
||
2021-03-09 Felix Willgerodt <felix.willgerodt@intel.com>
|
||
|
||
* f-exp.h (eval_op_f_loc): Declare.
|
||
(expr::fortran_loc_operation): New typedef.
|
||
* f-exp.y (exp): Handle UNOP_FORTRAN_LOC after parsing an
|
||
UNOP_INTRINSIC.
|
||
(f77_keywords): Add LOC keyword.
|
||
* f-lang.c (eval_op_f_loc): New function.
|
||
* std-operator.def (UNOP_FORTRAN_LOC): New operator.
|
||
|
||
2021-03-09 Andrew Burgess <andrew.burgess@embecosm.com>
|
||
|
||
* f-exp.h (eval_op_f_array_shape): Declare.
|
||
(fortran_array_shape_operation): New type.
|
||
* f-exp.y (exp): Handle UNOP_FORTRAN_SHAPE after parsing
|
||
UNOP_INTRINSIC.
|
||
(f77_keywords): Add "shape" keyword.
|
||
* f-lang.c (fortran_array_shape): New function.
|
||
(eval_op_f_array_shape): New function.
|
||
* std-operator.def (UNOP_FORTRAN_SHAPE): New operator.
|
||
|
||
2021-03-09 Andrew Burgess <andrew.burgess@embecosm.com>
|
||
|
||
* f-exp.y (eval_op_f_array_size): Declare 1 and 2 argument forms
|
||
of this function.
|
||
(expr::fortran_array_size_1arg): New type.
|
||
(expr::fortran_array_size_2arg): Likewise.
|
||
* f-exp.y (exp): Handle FORTRAN_ARRAY_SIZE after parsing
|
||
UNOP_OR_BINOP_INTRINSIC.
|
||
(f77_keywords): Add "size" keyword.
|
||
* f-lang.c (fortran_array_size): New function.
|
||
(eval_op_f_array_size): New function, has a 1 arg and 2 arg form.
|
||
* std-operator.def (FORTRAN_ARRAY_SIZE): New operator.
|
||
|
||
2021-03-09 Andrew Burgess <andrew.burgess@embecosm.com>
|
||
|
||
* f-exp.h (eval_op_f_rank): Declare.
|
||
(expr::fortran_rank_operation): New typedef.
|
||
* f-exp.y (exp): Handle UNOP_FORTRAN_RANK after parsing an
|
||
UNOP_INTRINSIC.
|
||
(f77_keywords): Add "rank" keyword.
|
||
* f-lang.c (eval_op_f_rank): New function.
|
||
* std-operator.def (UNOP_FORTRAN_RANK): New operator.
|
||
|
||
2021-03-08 Tom Tromey <tom@tromey.com>
|
||
|
||
* printcmd.c (set_command): Remove null check.
|
||
* value.c (init_if_undefined_command): Remove null check.
|
||
|
||
2021-03-08 Tom Tromey <tom@tromey.com>
|
||
|
||
* parse.c (parser_state::push_symbol, parser_state::push_dollar):
|
||
Update.
|
||
* p-exp.y (variable): Update.
|
||
* go-exp.y (variable): Update.
|
||
* expprint.c (dump_for_expression): Use bound_minimal_symbol.
|
||
Remove overload for objfile.
|
||
* expop.h (eval_op_var_msym_value): Use bound_minimal_symbol
|
||
parameter.
|
||
(check_objfile): Likewise.
|
||
(dump_for_expression): Likewise. Remove overload for objfile.
|
||
(class var_msym_value_operation): Use bound_minimal_symbol.
|
||
* eval.c (eval_op_var_msym_value): Use bound_minimal_symbol
|
||
parameter.
|
||
(var_msym_value_operation::evaluate_for_address)
|
||
(var_msym_value_operation::evaluate_for_sizeof)
|
||
(var_msym_value_operation::evaluate_for_cast): Update.
|
||
* d-exp.y (PrimaryExpression): Update.
|
||
* c-exp.y (variable): Update.
|
||
* ax-gdb.c (var_msym_value_operation::do_generate_ax): Update.
|
||
* ada-lang.c (ada_var_msym_value_operation::evaluate_for_cast):
|
||
Update.
|
||
* ada-exp.y (write_var_or_type): Update.
|
||
|
||
2021-03-08 Tom Tromey <tom@tromey.com>
|
||
|
||
* parser-defs.h (exp_uses_objfile): Return bool.
|
||
* parse.c (exp_uses_objfile): Return bool.
|
||
|
||
2021-03-08 Tom Tromey <tom@tromey.com>
|
||
|
||
* value.h (eval_skip_value): Don't declare.
|
||
* opencl-lang.c (eval_opencl_assign): Update.
|
||
* m2-lang.c (eval_op_m2_high, eval_op_m2_subscript): Update.
|
||
* f-lang.c (eval_op_f_abs, eval_op_f_mod, eval_op_f_ceil)
|
||
(eval_op_f_floor, eval_op_f_modulo, eval_op_f_cmplx): Remove.
|
||
* expression.h (enum noside) <EVAL_SKIP>: Remove.
|
||
* expop.h (typeof_operation::evaluate)
|
||
(decltype_operation::evaluate, unop_addr_operation::evaluate)
|
||
(unop_sizeof_operation::evaluate, assign_operation::evaluate)
|
||
(cxx_cast_operation::evaluate): Update.
|
||
* eval.c (eval_skip_value): Remove.
|
||
(eval_op_scope, eval_op_var_entry_value)
|
||
(eval_op_func_static_var, eval_op_string, eval_op_objc_selector)
|
||
(eval_op_concat, eval_op_ternop, eval_op_structop_struct)
|
||
(eval_op_structop_ptr, eval_op_member, eval_op_add, eval_op_sub)
|
||
(eval_op_binary, eval_op_subscript, eval_op_equal)
|
||
(eval_op_notequal, eval_op_less, eval_op_gtr, eval_op_geq)
|
||
(eval_op_leq, eval_op_repeat, eval_op_plus, eval_op_neg)
|
||
(eval_op_complement, eval_op_lognot, eval_op_ind)
|
||
(eval_op_memval, eval_op_preinc, eval_op_predec)
|
||
(eval_op_postinc, eval_op_postdec, eval_op_type)
|
||
(eval_binop_assign_modify, eval_op_objc_msgcall)
|
||
(eval_multi_subscript, logical_and_operation::evaluate)
|
||
(logical_or_operation::evaluate, array_operation::evaluate)
|
||
(operation::evaluate_for_cast)
|
||
(var_msym_value_operation::evaluate_for_cast)
|
||
(var_value_operation::evaluate_for_cast): Update.
|
||
* c-lang.c (c_string_operation::evaluate): Update.
|
||
* c-exp.h (objc_nsstring_operation::evaluate)
|
||
(objc_selector_operation::evaluate): Update.
|
||
* ada-lang.c (ada_assign_operation::evaluate)
|
||
(eval_ternop_in_range, ada_unop_neg, ada_unop_in_range)
|
||
(ada_atr_size): Update.
|
||
|
||
2021-03-08 Tom Tromey <tom@tromey.com>
|
||
|
||
* eval.c: Merge "namespace" scopes.
|
||
|
||
2021-03-08 Tom Tromey <tom@tromey.com>
|
||
|
||
* parser-defs.h (struct expr_builder) <expr_builder>: Inline.
|
||
<release>: Inline.
|
||
* parse.c (expr_builder::expr_builder, expr_builder::release):
|
||
Remove.
|
||
|
||
2021-03-08 Tom Tromey <tom@tromey.com>
|
||
|
||
* parse.c (expression::expression, expression::~expression):
|
||
Remove.
|
||
* expression.h (struct expression): Inline constructor. Remove
|
||
destructor.
|
||
|
||
2021-03-08 Tom Tromey <tom@tromey.com>
|
||
|
||
* std-operator.def (BINOP_END): Remove.
|
||
* p-exp.y (tokentab3, tokentab2): Use OP_NULL, not BINOP_END.
|
||
* go-exp.y (tokentab2): Use OP_NULL, not BINOP_END.
|
||
* f-exp.y (dot_ops, f77_keywords): Use OP_NULL, not BINOP_END.
|
||
* d-exp.y (tokentab2, ident_tokens): Use OP_NULL, not BINOP_END.
|
||
* c-exp.y (tokentab3, tokentab2, ident_tokens): Use OP_NULL, not
|
||
BINOP_END.
|
||
|
||
2021-03-08 Tom Tromey <tom@tromey.com>
|
||
|
||
* expression.h (enum exp_opcode) <OP_UNUSED_LAST>: Remove.
|
||
|
||
2021-03-08 Tom Tromey <tom@tromey.com>
|
||
|
||
* std-operator.def (OP_EXTENDED0): Remove.
|
||
|
||
2021-03-08 Tom Tromey <tom@tromey.com>
|
||
|
||
* std-operator.def (OP_NAME, OP_ATR_IMAGE, OP_ATR_MODULUS)
|
||
(OP_OTHERS, OP_CHOICES, OP_POSITIONAL, OP_DISCRETE_RANGE):
|
||
Remove.
|
||
|
||
2021-03-08 Tom Tromey <tom@tromey.com>
|
||
|
||
* std-operator.def (UNOP_CAP, UNOP_CHR, UNOP_ORD, UNOP_FLOAT)
|
||
(UNOP_MAX, UNOP_MIN, UNOP_ODD, UNOP_TRUNC, OP_M2_STRING): Remove.
|
||
|
||
2021-03-08 Tom Tromey <tom@tromey.com>
|
||
|
||
* std-operator.def (OP_ATR_MIN, OP_ATR_MAX): Remove.
|
||
* ada-lang.c (ada_binop_minmax): Update.
|
||
* ada-exp.h (ada_binop_min_operation, ada_binop_max_operation):
|
||
Use BINOP_MIN and BINOP_MAX.
|
||
|
||
2021-03-08 Tom Tromey <tom@tromey.com>
|
||
|
||
* value.h (evaluate_subexp_with_coercion): Don't declare.
|
||
* parse.c (exp_descriptor_standard): Remove.
|
||
(expr_builder::expr_builder, expr_builder::release): Update.
|
||
(expression::expression): Remove size_t parameter.
|
||
(expression::~expression): Simplify.
|
||
(expression::resize): Remove.
|
||
(write_exp_elt, write_exp_elt_opcode, write_exp_elt_sym)
|
||
(write_exp_elt_msym, write_exp_elt_block, write_exp_elt_objfile)
|
||
(write_exp_elt_longcst, write_exp_elt_floatcst)
|
||
(write_exp_elt_type, write_exp_elt_intern, write_exp_string)
|
||
(write_exp_string_vector, write_exp_bitstring): Remove.
|
||
* p-lang.h (class pascal_language) <opcode_print_table,
|
||
op_print_tab>: Remove.
|
||
* p-lang.c (pascal_language::op_print_tab): Remove.
|
||
* opencl-lang.c (class opencl_language) <opcode_print_table>:
|
||
Remove.
|
||
* objc-lang.c (objc_op_print_tab): Remove.
|
||
(class objc_language) <opcode_print_table>: Remove.
|
||
* m2-lang.h (class m2_language) <opcode_print_table,
|
||
op_print_tab>: Remove.
|
||
* m2-lang.c (m2_language::op_print_tab): Remove.
|
||
* language.h (struct language_defn) <post_parser, expression_ops,
|
||
opcode_print_table>: Remove.
|
||
* language.c (language_defn::expression_ops)
|
||
(auto_or_unknown_language::opcode_print_table): Remove.
|
||
* go-lang.h (class go_language) <opcode_print_table,
|
||
op_print_tab>: Remove.
|
||
* go-lang.c (go_language::op_print_tab): Remove.
|
||
* f-lang.h (class f_language) <opcode_print_table>: Remove
|
||
<op_print_tab>: Remove.
|
||
* f-lang.c (f_language::op_print_tab): Remove.
|
||
* expression.h (union exp_element): Remove.
|
||
(struct expression): Remove size_t parameter from constructor.
|
||
<resize>: Remove.
|
||
<first_opcode>: Update.
|
||
<nelts, elts>: Remove.
|
||
(EXP_ELEM_TO_BYTES, BYTES_TO_EXP_ELEM): Remove.
|
||
(evaluate_subexp_standard, print_expression, op_string)
|
||
(dump_raw_expression): Don't declare.
|
||
* expprint.c (print_expression, print_subexp)
|
||
(print_subexp_funcall, print_subexp_standard, op_string)
|
||
(dump_raw_expression, dump_subexp, dump_subexp_body)
|
||
(dump_subexp_body_funcall, dump_subexp_body_standard): Remove.
|
||
(dump_prefix_expression): Update.
|
||
* eval.c (evaluate_subexp): Remove.
|
||
(evaluate_expression, evaluate_type): Update.
|
||
(evaluate_subexpression_type): Remove.
|
||
(fetch_subexp_value): Remove "pc" parameter. Update.
|
||
(extract_field_op, evaluate_struct_tuple, evaluate_funcall)
|
||
(evaluate_subexp_standard, evaluate_subexp_for_address)
|
||
(evaluate_subexp_with_coercion, evaluate_subexp_for_sizeof)
|
||
(evaluate_subexp_for_cast): Remove.
|
||
(parse_and_eval_type): Update.
|
||
* dtrace-probe.c (dtrace_probe::compile_to_ax): Update.
|
||
* d-lang.c (d_op_print_tab): Remove.
|
||
(class d_language) <opcode_print_table>: Remove.
|
||
* c-lang.h (c_op_print_tab): Don't declare.
|
||
* c-lang.c (c_op_print_tab): Remove.
|
||
(class c_language, class cplus_language, class asm_language, class
|
||
minimal_language) <opcode_print_table>: Remove.
|
||
* breakpoint.c (update_watchpoint, watchpoint_check)
|
||
(watchpoint_exp_is_const, watch_command_1): Update.
|
||
* ax-gdb.h (union exp_element): Don't declare.
|
||
* ax-gdb.c (const_var_ref, const_expr, maybe_const_expr)
|
||
(gen_repeat, gen_sizeof, gen_expr_for_cast, gen_expr)
|
||
(gen_expr_binop_rest): Remove.
|
||
(gen_trace_for_expr, gen_eval_for_expr, gen_printf): Update.
|
||
* ada-lang.c (ada_op_print_tab): Remove.
|
||
(class ada_language) <post_parser, opcode_print_table>: Remove.
|
||
|
||
2021-03-08 Tom Tromey <tom@tromey.com>
|
||
|
||
* go-lang.c (go_language::expression_ops): Don't declare.
|
||
* go-lang.h (class go_language) <expression_ops>: Remove.
|
||
* opencl-lang.c (evaluate_subexp_opencl, exp_descriptor_opencl):
|
||
Remove.
|
||
(class opencl_language) <expression_ops>: Remove.
|
||
* d-lang.c (class d_language) <expression_ops>: Remove.
|
||
* c-lang.h (evaluate_subexp_c, exp_descriptor_c): Don't declare.
|
||
* c-lang.c (evaluate_subexp_c, exp_descriptor_c): Remove.
|
||
(class c_language, class cplus_language, class asm_language)
|
||
(class minimal_language) <expression_ops>: Remove.
|
||
|
||
2021-03-08 Tom Tromey <tom@tromey.com>
|
||
|
||
* ada-lang.c (resolve_subexp, replace_operator_with_call)
|
||
(evaluate_subexp_type, assign_aggregate)
|
||
(aggregate_assign_positional, aggregate_assign_from_choices)
|
||
(aggregate_assign_others, ada_evaluate_subexp_for_cast)
|
||
(ada_evaluate_subexp, ADA_OPERATORS, ada_operator_length)
|
||
(ada_operator_check, ada_forward_operator_length)
|
||
(ada_dump_subexp_body, ada_print_subexp, ada_exp_descriptor):
|
||
Remove.
|
||
(post_parser): Update.
|
||
(class ada_language) <expresssion_ops>: Remove.
|
||
|
||
2021-03-08 Tom Tromey <tom@tromey.com>
|
||
|
||
* m2-lang.h (class m2_language) <expresssion_ops,
|
||
exp_descriptor_modula2>: Remove.
|
||
* m2-lang.c (evaluate_subexp_modula2)
|
||
(m2_language::exp_descriptor_modula2): Remove.
|
||
|
||
2021-03-08 Tom Tromey <tom@tromey.com>
|
||
|
||
* f-lang.h (class f_language) <expresssion_ops>: Remove.
|
||
<exp_descriptor_tab>: Remove.
|
||
* f-lang.c (fortran_value_subarray, evaluate_subexp_f)
|
||
(operator_length_f, print_unop_subexp_f, print_binop_subexp_f)
|
||
(print_subexp_f, dump_subexp_body_f, operator_check_f)
|
||
(f_language::exp_descriptor_tab, fortran_prepare_argument):
|
||
Remove.
|
||
|
||
2021-03-08 Tom Tromey <tom@tromey.com>
|
||
|
||
* rust-lang.h (class rust_language) <expression_ops,
|
||
exp_descriptor_tab>: Remove.
|
||
* rust-lang.c (rust_evaluate_funcall): Remove.
|
||
(rust_range, rust_subscript, eval_op_rust_complement): Don't use
|
||
EVAL_SKIP.
|
||
(rust_evaluate_subexp): Remove.
|
||
(rust_aggregate_operation::evaluate): Don't use EVAL_SKIP.
|
||
(rust_operator_length, rust_dump_subexp_body, rust_print_subexp)
|
||
(rust_operator_check, rust_language::exp_descriptor_tab): Remove.
|
||
|
||
2021-03-08 Tom Tromey <tom@tromey.com>
|
||
|
||
* ada-exp.y: Create operations.
|
||
(empty_stoken): Remove.
|
||
(ada_pop, ada_wrap, ada_addrof, ada_un_wrap2, ada_wrap2)
|
||
(ada_wrap_op, ada_wrap3, ada_funcall): New functions.
|
||
(components): New global.
|
||
(push_component, choice_component, pop_component, pop_components):
|
||
New functions.
|
||
(associations): New global
|
||
(push_association, pop_association, pop_associations): New
|
||
functions.
|
||
(ada_parse): Update.
|
||
(write_var_from_sym, write_int): Create operations.
|
||
(write_exp_op_with_string): Remove.
|
||
(write_object_renaming, write_selectors, write_ambiguous_var)
|
||
(write_var_or_type, write_name_assoc): Create operations.
|
||
* ada-lang.h (ada_index_type): Declare.
|
||
* ada-lang.c (ada_index_type): No longer static.
|
||
|
||
2021-03-08 Tom Tromey <tom@tromey.com>
|
||
|
||
* f-exp.y: Create operations.
|
||
(f_language::parser): Update.
|
||
|
||
2021-03-08 Tom Tromey <tom@tromey.com>
|
||
|
||
* m2-exp.y: Create operations.
|
||
(m2_language::parser): Update.
|
||
|
||
2021-03-08 Tom Tromey <tom@tromey.com>
|
||
|
||
* p-exp.y: Create operations.
|
||
(pascal_language::parser): Update.
|
||
|
||
2021-03-08 Tom Tromey <tom@tromey.com>
|
||
|
||
* d-exp.y: Create operations.
|
||
(d_parse): Update.
|
||
|
||
2021-03-08 Tom Tromey <tom@tromey.com>
|
||
|
||
* go-exp.y: Create operations.
|
||
(go_language::parser): Update.
|
||
|
||
2021-03-08 Tom Tromey <tom@tromey.com>
|
||
|
||
* objc-lang.c (end_msglist): Create operations.
|
||
* c-exp.y: Change parser to create operations.
|
||
(write_destructor_name): Remove.
|
||
(c_parse): Update.
|
||
|
||
2021-03-08 Tom Tromey <tom@tromey.com>
|
||
|
||
* rust-exp.y: Create operations.
|
||
(rust_parser::convert_params_to_expression): Change return type.
|
||
(binop_maker_ftype): New typedef.
|
||
(maker_map): New global.
|
||
(rust_parser::convert_ast_to_expression): Change return type.
|
||
(rust_language::parser): Update.
|
||
(_initialize_rust_exp): Initialize maker_map.
|
||
|
||
2021-03-08 Tom Tromey <tom@tromey.com>
|
||
|
||
* stap-probe.c (binop_maker_ftype): New typedef.
|
||
(stap_maker_map): New global.
|
||
(stap_make_binop): New function.
|
||
(stap_parse_register_operand): Return operation_up.
|
||
(stap_parse_single_operand, stap_parse_argument_conditionally)
|
||
(stap_parse_argument_1): Likewise.
|
||
(stap_parse_argument): Create operations.
|
||
(stap_probe::parse_arguments): Update.
|
||
(_initialize_stap_probe): Initialize stap_maker_map.
|
||
* ppc-linux-tdep.c (ppc_stap_parse_special_token): Change return
|
||
type.
|
||
* i386-tdep.h (i386_stap_parse_special_token): Change return
|
||
type.
|
||
* i386-tdep.c (i386_stap_parse_special_token_triplet)
|
||
(i386_stap_parse_special_token_three_arg_disp)
|
||
(i386_stap_parse_special_token): Change return type.
|
||
* gdbarch.sh (stap_parse_special_token): Change return type.
|
||
* gdbarch.c: Rebuild.
|
||
* gdbarch.h: Rebuild.
|
||
* arm-linux-tdep.c (arm_stap_parse_special_token): Change return
|
||
type.
|
||
* aarch64-linux-tdep.c (aarch64_stap_parse_special_token): Change
|
||
return type.
|
||
|
||
2021-03-08 Tom Tromey <tom@tromey.com>
|
||
|
||
* gdbarch.sh (dtrace_parse_probe_argument): Change return type.
|
||
* gdbarch.h: Rebuild.
|
||
* gdbarch.c: Rebuild.
|
||
* dtrace-probe.c (dtrace_probe::build_arg_exprs): Update.
|
||
* amd64-linux-tdep.c (amd64_dtrace_parse_probe_argument): Change
|
||
return type.
|
||
(amd64_dtrace_parse_probe_argument): Update.
|
||
|
||
2021-03-08 Tom Tromey <tom@tromey.com>
|
||
|
||
* parser-defs.h (struct parser_state) <push, push_new,
|
||
push_c_string, push_symbol, push_dollar, pop, pop_vector, wrap,
|
||
wrap2>: New methods.
|
||
<m_operations>: New member.
|
||
* parse.c (parser_state::push_c_string)
|
||
(parser_state::push_symbol, parser_state::push_dollar): New
|
||
methods.
|
||
|
||
2021-03-08 Tom Tromey <tom@tromey.com>
|
||
|
||
* parser-defs.h (struct expr_completion_state) <expout_last_op>:
|
||
New member.
|
||
(struct parser_state) <mark_struct_expression>: New method.
|
||
* parse.c (parser_state::mark_struct_expression): Update assert.
|
||
(parser_state::mark_struct_expression): New method.
|
||
(parser_state::mark_completion_tag): Update assert.
|
||
(parse_expression_for_completion): Handle expout_last_op.
|
||
|
||
2021-03-08 Tom Tromey <tom@tromey.com>
|
||
|
||
* ada-exp.h (class ada_var_value_operation) <get_symbol>: Remove;
|
||
now in superclass.
|
||
* value.h (fetch_subexp_value): Add "op" parameter.
|
||
* value.c (init_if_undefined_command): Update.
|
||
* tracepoint.c (validate_actionline, encode_actions_1): Update.
|
||
* stap-probe.c (stap_probe::compile_to_ax): Update.
|
||
* printcmd.c (set_command): Update.
|
||
* ppc-linux-nat.c (ppc_linux_nat_target::check_condition):
|
||
Update.
|
||
* parser-defs.h (struct expr_builder) <set_operation>: New
|
||
method.
|
||
* parse.c (parse_exp_in_context, exp_uses_objfile): Update.
|
||
* expression.h (struct expression) <first_opcode>: Update.
|
||
<op>: New member.
|
||
* expprint.c (dump_raw_expression, dump_prefix_expression):
|
||
Update.
|
||
* expop.h (class var_value_operation) <get_symbol>: New method.
|
||
(class register_operation) <get_name>: New method.
|
||
(class equal_operation): No longer a typedef, now a subclass.
|
||
(class unop_memval_operation) <get_type>: New method.
|
||
(class assign_operation) <get_lhs>: New method.
|
||
(class unop_cast_operation) <get_type>: New method.
|
||
* eval.c (evaluate_expression, evaluate_type)
|
||
(evaluate_subexpression_type): Update.
|
||
(fetch_subexp_value): Add "op" parameter.
|
||
(parse_and_eval_type): Update.
|
||
* dtrace-probe.c (dtrace_probe::compile_to_ax): Update.
|
||
* breakpoint.c (update_watchpoint, watchpoint_check)
|
||
(watchpoint_exp_is_const, watch_command_1): Update.
|
||
* ax-gdb.c (gen_trace_for_expr, gen_eval_for_expr, gen_printf):
|
||
Update.
|
||
|
||
2021-03-08 Tom Tromey <tom@tromey.com>
|
||
|
||
* ada-lang.c (ada_value_binop): Do not use op_string.
|
||
|
||
2021-03-08 Tom Tromey <tom@tromey.com>
|
||
|
||
* expprint.c (dump_for_expression): New overload.
|
||
* expop.h (check_objfile, dump_for_expression): Declare new
|
||
overloads.
|
||
* ada-lang.c (check_objfile): New overload.
|
||
(assign_component, ada_aggregate_component::uses_objfile)
|
||
(ada_aggregate_component::dump, ada_aggregate_component::assign)
|
||
(ada_aggregate_component::assign_aggregate)
|
||
(ada_positional_component::uses_objfile)
|
||
(ada_positional_component::dump, ada_positional_component::assign)
|
||
(ada_discrete_range_association::uses_objfile)
|
||
(ada_discrete_range_association::dump)
|
||
(ada_discrete_range_association::assign)
|
||
(ada_name_association::uses_objfile, ada_name_association::dump)
|
||
(ada_name_association::assign)
|
||
(ada_choices_component::uses_objfile, ada_choices_component::dump)
|
||
(ada_choices_component::assign)
|
||
(ada_others_component::uses_objfile, ada_others_component::dump)
|
||
(ada_others_component::assign, ada_assign_operation::evaluate):
|
||
New methods.
|
||
* ada-exp.h (ada_string_operation) <get_name>: New method.
|
||
(class ada_assign_operation): New.
|
||
(class ada_component): New.
|
||
(ada_component_up): New typedef.
|
||
(class ada_aggregate_operation, class ada_aggregate_component)
|
||
(class ada_positional_component, class ada_others_component)
|
||
(class ada_association): New.
|
||
(ada_association_up): New typedef.
|
||
(class ada_choices_component)
|
||
(class ada_discrete_range_association)
|
||
(class ada_name_association): New.
|
||
|
||
2021-03-08 Tom Tromey <tom@tromey.com>
|
||
|
||
* ada-lang.c (ada_var_value_operation::resolve)
|
||
(ada_funcall_operation::resolve)
|
||
(ada_ternop_slice_operation::resolve): New methods.
|
||
* ada-exp.h (struct ada_resolvable): New.
|
||
(class ada_var_value_operation): Derive from ada_resolvable.
|
||
<get_block, resolve>: New methods.
|
||
(class ada_funcall_operation): Derive from ada_resolvable.
|
||
<resolve>: New method.
|
||
(class ada_ternop_slice_operation): Derive from ada_resolvable.
|
||
<resolve>: New method.
|
||
|
||
2021-03-08 Tom Tromey <tom@tromey.com>
|
||
|
||
* ada-lang.c (ada_funcall_operation::evaluate): New method.
|
||
* ada-exp.h (class ada_var_msym_value_operation) <get_symbol>: New
|
||
method.
|
||
(class ada_funcall_operation): New.
|
||
|
||
2021-03-08 Tom Tromey <tom@tromey.com>
|
||
|
||
* ada-lang.c (ada_structop_operation::evaluate): New method.
|
||
* ada-exp.h (class ada_structop_operation): New.
|
||
|
||
2021-03-08 Tom Tromey <tom@tromey.com>
|
||
|
||
* ada-lang.c (ada_unop_ind_operation::evaluate): New method.
|
||
* ada-exp.h (class ada_unop_ind_operation): New.
|
||
|
||
2021-03-08 Tom Tromey <tom@tromey.com>
|
||
|
||
* ada-lang.c (ada_binop_exp): No longer static.
|
||
* ada-exp.h (ada_binop_exp_operation): New typedef.
|
||
|
||
2021-03-08 Tom Tromey <tom@tromey.com>
|
||
|
||
* ada-lang.c (ada_val_atr): No longer static.
|
||
(ada_atr_val_operation::evaluate): New method.
|
||
* ada-exp.h (class ada_atr_val_operation): New.
|
||
|
||
2021-03-08 Tom Tromey <tom@tromey.com>
|
||
|
||
* ada-lang.c (ada_pos_atr): No longer static.
|
||
* ada-exp.h (ada_pos_operation): New typedef.
|
||
|
||
2021-03-08 Tom Tromey <tom@tromey.com>
|
||
|
||
* ada-lang.c (ada_pos_atr): Rename from value_pos_atr. Change
|
||
parameters.
|
||
(ada_evaluate_subexp): Use it.
|
||
|
||
2021-03-08 Tom Tromey <tom@tromey.com>
|
||
|
||
* ada-lang.c (ada_binop_minmax): No longer static.
|
||
* ada-exp.h (ada_binop_min_operation, ada_binop_max_operation):
|
||
New typedefs.
|
||
|
||
2021-03-08 Tom Tromey <tom@tromey.com>
|
||
|
||
* ada-lang.c (ada_var_msym_value_operation::evaluate_for_cast):
|
||
New method.
|
||
* ada-exp.h (class ada_var_msym_value_operation): New.
|
||
|
||
2021-03-08 Tom Tromey <tom@tromey.com>
|
||
|
||
* ada-lang.c (ada_var_value_operation::evaluate_for_cast)
|
||
(ada_var_value_operation::evaluate): New methods.
|
||
* ada-exp.h (class ada_var_value_operation): New.
|
||
|
||
2021-03-08 Tom Tromey <tom@tromey.com>
|
||
|
||
* ada-lang.c (ada_unop_atr_operation::evaluate): New method.
|
||
* ada-exp.h (class ada_unop_atr_operation): New.
|
||
|
||
2021-03-08 Tom Tromey <tom@tromey.com>
|
||
|
||
* ada-lang.c (ada_binop_in_bounds): No longer static.
|
||
* ada-exp.h (class ada_binop_in_bounds_operation): New.
|
||
|
||
2021-03-08 Tom Tromey <tom@tromey.com>
|
||
|
||
* ada-lang.c (ada_ternop_slice): No longer static.
|
||
* ada-exp.h (class ada_ternop_slice_operation): New.
|
||
|
||
2021-03-08 Tom Tromey <tom@tromey.com>
|
||
|
||
* ada-exp.h (ada_bitwise_operation): New template class.
|
||
(ada_bitwise_and_operation, ada_bitwise_ior_operation)
|
||
(ada_bitwise_xor_operation): New typedefs.
|
||
|
||
2021-03-08 Tom Tromey <tom@tromey.com>
|
||
|
||
* ada-lang.c (ada_equal_binop): No longer static.
|
||
* ada-exp.h (class ada_binop_equal_operation): New.
|
||
|
||
2021-03-08 Tom Tromey <tom@tromey.com>
|
||
|
||
* ada-lang.c (ada_mult_binop): No longer static.
|
||
* ada-exp.h (ada_binop_mul_operation ada_binop_div_operation)
|
||
(ada_binop_rem_operation, ada_binop_mod_operation): New typedefs.
|
||
|
||
2021-03-08 Tom Tromey <tom@tromey.com>
|
||
|
||
* ada-lang.c (ada_binop_addsub_operation::evaluate): New method.
|
||
* ada-exp.h (class ada_binop_addsub_operation): New.
|
||
|
||
2021-03-08 Tom Tromey <tom@tromey.com>
|
||
|
||
* ada-lang.h (ada_find_operator_symbol, ada_resolve_funcall)
|
||
(ada_resolve_variable): Declare.
|
||
* ada-lang.c (ada_find_operator_symbol, ada_resolve_funcall)
|
||
(ada_resolve_variable): New functions.
|
||
(resolve_subexp): Update.
|
||
|
||
2021-03-08 Tom Tromey <tom@tromey.com>
|
||
|
||
* opencl-lang.c (opencl_ternop_cond_operation::evaluate): New
|
||
method.
|
||
* c-exp.h (class opencl_ternop_cond_operation): New.
|
||
|
||
2021-03-08 Tom Tromey <tom@tromey.com>
|
||
|
||
* opencl-lang.c (opencl_logical_binop_operation::evaluate): New
|
||
method.
|
||
* c-exp.h (class opencl_logical_binop_operation): New.
|
||
|
||
2021-03-08 Tom Tromey <tom@tromey.com>
|
||
|
||
* opencl-lang.c (opencl_structop_operation::evaluate): New
|
||
method.
|
||
* c-exp.h (class opencl_structop_operation): New.
|
||
|
||
2021-03-08 Tom Tromey <tom@tromey.com>
|
||
|
||
* opencl-lang.c (opencl_logical_not): No longer static. Change
|
||
parameters.
|
||
(evaluate_subexp_opencl): Update.
|
||
* c-exp.h (opencl_notequal_operation): New typedef.
|
||
|
||
2021-03-08 Tom Tromey <tom@tromey.com>
|
||
|
||
* opencl-lang.c (opencl_relop, eval_opencl_assign): No longer
|
||
static. Change parameters.
|
||
(eval_opencl_assign): No longer static. Add "op" parameter.
|
||
(evaluate_subexp_opencl): Update.
|
||
* c-exp.h (opencl_binop_operation): New template class.
|
||
(opencl_assign_operation, opencl_equal_operation)
|
||
(opencl_notequal_operation, opencl_less_operation)
|
||
(opencl_gtr_operation, opencl_geq_operation)
|
||
(opencl_leq_operation): New typedefs.
|
||
|
||
2021-03-08 Tom Tromey <tom@tromey.com>
|
||
|
||
* opencl-lang.c (opencl_value_cast): No longer static.
|
||
* c-exp.h (opencl_cast_type_operation): New typedef.
|
||
|
||
2021-03-08 Tom Tromey <tom@tromey.com>
|
||
|
||
* f-exp.h (eval_op_f_allocated): Declare.
|
||
(fortran_allocated_operation): New typedef.
|
||
* f-lang.c (eval_op_f_allocated): No longer static.
|
||
|
||
2021-03-08 Tom Tromey <tom@tromey.com>
|
||
|
||
* f-lang.c (eval_op_f_associated): New functions.
|
||
* f-exp.h (fortran_associated_1arg, fortran_associated_2arg): New
|
||
typedefs.
|
||
|
||
2021-03-08 Tom Tromey <tom@tromey.com>
|
||
|
||
* f-lang.c (fortran_bound_1arg::evaluate)
|
||
(fortran_bound_2arg::evaluate): New methods.
|
||
* f-exp.h (class fortran_bound_1arg, class fortran_bound_2arg):
|
||
New.
|
||
|
||
2021-03-08 Tom Tromey <tom@tromey.com>
|
||
|
||
* expop.h (class unop_addr_operation) <get_expression>: New
|
||
method.
|
||
* f-lang.c (fortran_undetermined::value_subarray)
|
||
(fortran_undetermined::evaluate): New methods.
|
||
(fortran_prepare_argument): New overload.
|
||
* f-exp.h (class fortran_range_operation)
|
||
(class fortran_undetermined): New classes.
|
||
|
||
2021-03-08 Tom Tromey <tom@tromey.com>
|
||
|
||
* rust-lang.c (rust_structop::evaluate_funcall): New method.
|
||
* rust-exp.h (class rust_structop) <evaluate_funcall>: Declare
|
||
method.
|
||
|
||
2021-03-08 Tom Tromey <tom@tromey.com>
|
||
|
||
* expression.h (class operation) <evaluate_funcall>: New methods.
|
||
* expop.h (class scope_operation) <evaluate_funcall>: New method.
|
||
(class var_value_operation) <evaluate_funcall>: New method.
|
||
(class structop_base_operation) <evaluate_funcall>: New method.
|
||
(class var_msym_value_operation) <evaluate_funcall>: New method.
|
||
(class structop_member_base): New class.
|
||
(class structop_member_operation): Derive from
|
||
structop_member_base.
|
||
(class structop_mptr_operation): Derive from
|
||
structop_member_base.
|
||
(class funcall_operation): New class.
|
||
* eval.c (operation::evaluate_funcall)
|
||
(var_value_operation::evaluate_funcall)
|
||
(scope_operation::evaluate_funcall)
|
||
(structop_member_base::evaluate_funcall)
|
||
(structop_base_operation::evaluate_funcall): New methods.
|
||
|
||
2021-03-08 Tom Tromey <tom@tromey.com>
|
||
|
||
* expop.h (class array_operation): New.
|
||
* eval.c (array_operation::evaluate_struct_tuple)
|
||
(array_operation::evaluate): New methods.
|
||
|
||
2021-03-08 Tom Tromey <tom@tromey.com>
|
||
|
||
* expop.h (class adl_func_operation): New.
|
||
* eval.c (adl_func_operation::evaluate): New method.
|
||
|
||
2021-03-08 Tom Tromey <tom@tromey.com>
|
||
|
||
* ada-lang.c (ada_unop_in_range): No longer static.
|
||
* ada-exp.h (class ada_unop_range_operation): New.
|
||
|
||
2021-03-08 Tom Tromey <tom@tromey.com>
|
||
|
||
* ada-lang.c (ada_unop_neg, ada_atr_tag, ada_atr_size, ada_abs):
|
||
No longer static.
|
||
* ada-exp.h (ada_neg_operation, ada_atr_tag_operation)
|
||
(ada_atr_size_operation, ada_abs_operation): New typedefs.
|
||
|
||
2021-03-08 Tom Tromey <tom@tromey.com>
|
||
|
||
* expop.h (class logical_and_operation)
|
||
(class logical_or_operation): New.
|
||
* eval.c (logical_and_operation::evaluate)
|
||
(logical_or_operation::evaluate): New methods.
|
||
* ax-gdb.c (logical_and_operation::do_generate_ax)
|
||
(logical_or_operation::do_generate_ax): New methods.
|
||
|
||
2021-03-08 Tom Tromey <tom@tromey.com>
|
||
|
||
* m2-lang.c (eval_op_m2_high, eval_op_m2_subscript): No longer
|
||
static.
|
||
* m2-exp.h: New file.
|
||
|
||
2021-03-08 Tom Tromey <tom@tromey.com>
|
||
|
||
* rust-lang.c (rust_aggregate_operation::evaluate): New method.
|
||
* rust-exp.h (class rust_aggregate_operation): New.
|
||
|
||
2021-03-08 Tom Tromey <tom@tromey.com>
|
||
|
||
* rust-lang.c (eval_op_rust_struct_anon, eval_op_rust_structop):
|
||
No longer static.
|
||
* rust-exp.h (class rust_struct_anon): New.
|
||
(class rust_structop): New.
|
||
|
||
2021-03-08 Tom Tromey <tom@tromey.com>
|
||
|
||
* rust-lang.c (rust_range): No longer static.
|
||
* rust-exp.h (class rust_range_operation): New.
|
||
|
||
2021-03-08 Tom Tromey <tom@tromey.com>
|
||
|
||
* rust-lang.c (rust_subscript): No longer static.
|
||
* rust-exp.h (class rust_subscript_operation): New.
|
||
|
||
2021-03-08 Tom Tromey <tom@tromey.com>
|
||
|
||
* rust-lang.c (eval_op_rust_ind): No longer static. Add "opcode"
|
||
parameter.
|
||
(rust_evaluate_subexp): Update.
|
||
* rust-exp.h (class rust_unop_ind_operation): New.
|
||
|
||
2021-03-08 Tom Tromey <tom@tromey.com>
|
||
|
||
* rust-lang.c (eval_op_rust_complement, eval_op_rust_array): No
|
||
longer static. Add "opcode" parameter.
|
||
(rust_evaluate_subexp): Update.
|
||
* rust-exp.h: New file.
|
||
|
||
2021-03-08 Tom Tromey <tom@tromey.com>
|
||
|
||
* f-lang.c (eval_op_f_abs, eval_op_f_mod, eval_op_f_ceil)
|
||
(eval_op_f_floor, eval_op_f_modulo, eval_op_f_cmplx)
|
||
(eval_op_f_kind): No longer static. Add "opcode" parameter.
|
||
(evaluate_subexp_f): Update.
|
||
* f-exp.h: New file.
|
||
|
||
2021-03-08 Tom Tromey <tom@tromey.com>
|
||
|
||
* ada-lang.c (ada_ternop_range_operation::evaluate): New method.
|
||
* ada-exp.h (class ada_ternop_range_operation): New.
|
||
|
||
2021-03-08 Tom Tromey <tom@tromey.com>
|
||
|
||
* ada-lang.c (ada_qual_operation::evaluate): New method.
|
||
* ada-exp.h (class ada_qual_operation): New.
|
||
|
||
2021-03-08 Tom Tromey <tom@tromey.com>
|
||
|
||
* ada-lang.c (ada_string_operation::evaluate): New method.
|
||
* ada-exp.h (class ada_string_operation): New.
|
||
|
||
2021-03-08 Tom Tromey <tom@tromey.com>
|
||
|
||
* ada-lang.c (ada_wrapped_operation::evaluate): New method.
|
||
* ada-exp.h: New file.
|
||
|
||
2021-03-08 Tom Tromey <tom@tromey.com>
|
||
|
||
* expop.h (class multi_subscript_operation): New.
|
||
* eval.c (multi_subscript_operation::evaluate): New method.
|
||
|
||
2021-03-08 Tom Tromey <tom@tromey.com>
|
||
|
||
* eval.c (objc_msgcall_operation::evaluate): New method.
|
||
* c-exp.h (class objc_msgcall_operation): New.
|
||
|
||
2021-03-08 Tom Tromey <tom@tromey.com>
|
||
|
||
* expop.h (class var_value_operation): New.
|
||
* eval.c (var_value_operation::evaluate)
|
||
(var_value_operation::evaluate_for_address)
|
||
(var_value_operation::evaluate_with_coercion)
|
||
(var_value_operation::evaluate_for_sizeof)
|
||
(var_value_operation::evaluate_for_cast): New methods.
|
||
* ax-gdb.c (var_value_operation::do_generate_ax): New method.
|
||
|
||
2021-03-08 Tom Tromey <tom@tromey.com>
|
||
|
||
* expop.h (cxx_cast_ftype): New typedef.
|
||
(cxx_cast_operation): New template.
|
||
(dynamic_cast_operation, reinterpret_cast_operation): New
|
||
typedefs.
|
||
|
||
2021-03-08 Tom Tromey <tom@tromey.com>
|
||
|
||
* expop.h (class unop_cast_type_operation): New.
|
||
* ax-gdb.c (unop_cast_type_operation::do_generate_ax): New
|
||
method.
|
||
|
||
2021-03-08 Tom Tromey <tom@tromey.com>
|
||
|
||
* expop.h (class unop_cast_operation): New.
|
||
* ax-gdb.c (unop_cast_operation::do_generate_ax): New method.
|
||
|
||
2021-03-08 Tom Tromey <tom@tromey.com>
|
||
|
||
* expop.h (class assign_modify_operation): New.
|
||
* eval.c (eval_binop_assign_modify): No longer static.
|
||
* ax-gdb.c (assign_modify_operation::do_generate_ax): New method.
|
||
|
||
2021-03-08 Tom Tromey <tom@tromey.com>
|
||
|
||
* expop.h (class assign_operation): New.
|
||
* ax-gdb.c (assign_operation::do_generate_ax): New method.
|
||
|
||
2021-03-08 Tom Tromey <tom@tromey.com>
|
||
|
||
* expop.h (class type_instance_operation): New.
|
||
* eval.c (type_instance_operation::evaluate): New method.
|
||
|
||
2021-03-08 Tom Tromey <tom@tromey.com>
|
||
|
||
* expop.h (class op_this_operation): New.
|
||
* ax-gdb.c (op_this_operation::do_generate_ax): New method.
|
||
|
||
2021-03-08 Tom Tromey <tom@tromey.com>
|
||
|
||
* expop.h (class unop_memval_operation)
|
||
(class unop_memval_type_operation): New.
|
||
* eval.c (eval_op_memval): No longer static.
|
||
(unop_memval_operation::evaluate_for_address)
|
||
(unop_memval_type_operation::evaluate_for_address)
|
||
(unop_memval_operation::evaluate_for_sizeof)
|
||
(unop_memval_type_operation::evaluate_for_sizeof): New methods.
|
||
* ax-gdb.c (unop_memval_operation::do_generate_ax)
|
||
(unop_memval_type_operation::do_generate_ax): New methods.
|
||
|
||
2021-03-08 Tom Tromey <tom@tromey.com>
|
||
|
||
* expop.h (class unop_alignof_operation): New.
|
||
* eval.c (eval_op_alignof): No longer static.
|
||
|
||
2021-03-08 Tom Tromey <tom@tromey.com>
|
||
|
||
* expop.h (class unop_sizeof_operation): New.
|
||
* ax-gdb.c (unop_sizeof_operation::do_generate_ax): New method.
|
||
|
||
2021-03-08 Tom Tromey <tom@tromey.com>
|
||
|
||
* expop.h (class unop_addr_operation): New.
|
||
* ax-gdb.c (gen_expr_unop) <case UNOP_ADDR>: New.
|
||
|
||
2021-03-08 Tom Tromey <tom@tromey.com>
|
||
|
||
* expop.h (class typeid_operation): New.
|
||
|
||
2021-03-08 Tom Tromey <tom@tromey.com>
|
||
|
||
* expop.h (class decltype_operation): New.
|
||
|
||
2021-03-08 Tom Tromey <tom@tromey.com>
|
||
|
||
* expop.h (class typeof_operation): New.
|
||
|
||
2021-03-08 Tom Tromey <tom@tromey.com>
|
||
|
||
* expop.h (class type_operation): New.
|
||
* eval.c (eval_op_type): No longer static.
|
||
|
||
2021-03-08 Tom Tromey <tom@tromey.com>
|
||
|
||
* expop.h (class unop_ind_base_operation)
|
||
(class unop_ind_operation): New.
|
||
* eval.c (eval_op_ind): No longer static. Remove "op" parameter.
|
||
(unop_ind_base_operation::evaluate_for_address)
|
||
(unop_ind_base_operation::evaluate_for_sizeof): New method.
|
||
* ax-gdb.c (gen_expr_unop) <case UNOP_IND>: New.
|
||
|
||
2021-03-08 Tom Tromey <tom@tromey.com>
|
||
|
||
* expop.h (unop_incr_operation): New template.
|
||
(preinc_operation, predec_operation, postinc_operation)
|
||
(postdec_operation): New typedefs.
|
||
* eval.c (eval_op_preinc, eval_op_predec, eval_op_postinc)
|
||
(eval_op_postdec): No longer static.
|
||
|
||
2021-03-08 Tom Tromey <tom@tromey.com>
|
||
|
||
* expop.h (unary_ftype): New typedef.
|
||
(unop_operation, usual_ax_binop_operation): New templates.
|
||
(unary_plus_operation, unary_neg_operation)
|
||
(unary_complement_operation, unary_logical_not_operation): New
|
||
typedefs.
|
||
* eval.c (eval_op_plus, eval_op_neg, eval_op_complement)
|
||
(eval_op_lognot): No longer static.
|
||
* ax-gdb.c (gen_expr_unop): New function.
|
||
|
||
2021-03-08 Tom Tromey <tom@tromey.com>
|
||
|
||
* ax-gdb.c (comma_operation::do_generate_ax): New method.
|
||
|
||
2021-03-08 Tom Tromey <tom@tromey.com>
|
||
|
||
* expop.h (class repeat_operation): New.
|
||
* eval.c (eval_op_repeat): No longer static. Remove "op"
|
||
parameter.
|
||
(evaluate_subexp_standard): Update.
|
||
* ax-gdb.c (repeat_operation::do_generate_ax): New method.
|
||
|
||
2021-03-08 Tom Tromey <tom@tromey.com>
|
||
|
||
* expop.h (class comparison_operation): New.
|
||
(equal_operation, notequal_operation, less_operation)
|
||
(gtr_operation, geq_operation, leq_operation): New typedefs.
|
||
* eval.c (eval_op_equal, eval_op_notequal, eval_op_less)
|
||
(eval_op_gtr, eval_op_geq, eval_op_leq): No longer static.
|
||
|
||
2021-03-08 Tom Tromey <tom@tromey.com>
|
||
|
||
* expop.h (class subscript_operation): New.
|
||
* eval.c (eval_op_subscript): No longer static.
|
||
|
||
2021-03-08 Tom Tromey <tom@tromey.com>
|
||
|
||
* expop.h (class binop_operation, class usual_ax_binop_operation):
|
||
New.
|
||
(exp_operation, intdiv_operation, mod_operation, mul_operation)
|
||
(div_operation, rem_operation, lsh_operation, rsh_operation)
|
||
(bitwise_and_operation, bitwise_ior_operation)
|
||
(bitwise_xor_operation): New typedefs.
|
||
* eval.c (eval_op_binary): No longer static.
|
||
|
||
2021-03-08 Tom Tromey <tom@tromey.com>
|
||
|
||
* expop.h (class sub_operation): New.
|
||
* eval.c (eval_op_sub): No longer static. Remove "op" parameter.
|
||
(evaluate_subexp_standard): Update.
|
||
|
||
2021-03-08 Tom Tromey <tom@tromey.com>
|
||
|
||
* expop.h (class add_operation): New.
|
||
* eval.c (eval_op_add): No longer static. Remove "op" parameter.
|
||
(evaluate_subexp_standard): Update.
|
||
|
||
2021-03-08 Tom Tromey <tom@tromey.com>
|
||
|
||
* expop.h (class concat_operation): New.
|
||
* eval.c (eval_op_concat): No longer static. Remove "op"
|
||
parameter.
|
||
(evaluate_subexp_standard): Update.
|
||
|
||
2021-03-08 Tom Tromey <tom@tromey.com>
|
||
|
||
* expop.h (class structop_member_operation)
|
||
(class structop_mptr_operation): New.
|
||
* eval.c (eval_op_member): No longer static.
|
||
|
||
2021-03-08 Tom Tromey <tom@tromey.com>
|
||
|
||
* expop.h (class structop_ptr_operation): New.
|
||
* eval.c (eval_op_structop_ptr): No longer static. Remove "op"
|
||
parameter.
|
||
|
||
2021-03-08 Tom Tromey <tom@tromey.com>
|
||
|
||
* expop.h (class structop_base_operation)
|
||
(class structop_operation): New.
|
||
* eval.c (eval_op_structop_struct): No longer static.
|
||
|
||
2021-03-08 Tom Tromey <tom@tromey.com>
|
||
|
||
* expop.h (class complex_operation): New.
|
||
|
||
2021-03-08 Tom Tromey <tom@tromey.com>
|
||
|
||
* eval.c (eval_op_objc_selector): No longer static.
|
||
* c-exp.h (class objc_selector_operation): New.
|
||
|
||
2021-03-08 Tom Tromey <tom@tromey.com>
|
||
|
||
* eval.c: Include c-exp.h.
|
||
* c-exp.h (class objc_nsstring_operation): New.
|
||
|
||
2021-03-08 Tom Tromey <tom@tromey.com>
|
||
|
||
* c-lang.c (c_string_operation::evaluate): New method.
|
||
* c-exp.h: New file.
|
||
|
||
2021-03-08 Tom Tromey <tom@tromey.com>
|
||
|
||
* expop.h (class ternop_cond_operation): New.
|
||
* ax-gdb.c (ternop_cond_operation::do_generate_ax): New method.
|
||
|
||
2021-03-08 Tom Tromey <tom@tromey.com>
|
||
|
||
* expop.h (class ternop_slice_operation): New.
|
||
* eval.c (eval_op_ternop): No longer static.
|
||
|
||
2021-03-08 Tom Tromey <tom@tromey.com>
|
||
|
||
* expop.h (class string_operation): New.
|
||
* eval.c (eval_op_string): No longer static.
|
||
|
||
2021-03-08 Tom Tromey <tom@tromey.com>
|
||
|
||
* expop.h (class internalvar_operation): New.
|
||
* ax-gdb.c (internalvar_operation::do_generate_ax): New method.
|
||
|
||
2021-03-08 Tom Tromey <tom@tromey.com>
|
||
|
||
* expop.h (class bool_operation): New.
|
||
|
||
2021-03-08 Tom Tromey <tom@tromey.com>
|
||
|
||
* expop.h (class register_operation): New.
|
||
* eval.c (eval_op_register): No longer static.
|
||
* ax-gdb.c (register_operation::do_generate_ax): New method.
|
||
|
||
2021-03-08 Tom Tromey <tom@tromey.com>
|
||
|
||
* expop.h (class last_operation): New.
|
||
|
||
2021-03-08 Tom Tromey <tom@tromey.com>
|
||
|
||
* expop.h (class func_static_var_operation): New.
|
||
* eval.c (eval_op_func_static_var): No longer static.
|
||
|
||
2021-03-08 Tom Tromey <tom@tromey.com>
|
||
|
||
* expop.h (class var_entry_value_operation): New.
|
||
* eval.c (eval_op_var_entry_value): No longer static.
|
||
|
||
2021-03-08 Tom Tromey <tom@tromey.com>
|
||
|
||
* expression.h (class operation) <set_outermost>: New method.
|
||
* expop.h (class var_msym_value_operation): New.
|
||
* eval.c (eval_op_var_msym_value): No longer static.
|
||
(var_msym_value_operation::evaluate_for_address)
|
||
(var_msym_value_operation::evaluate_for_sizeof)
|
||
(var_msym_value_operation::evaluate_for_cast): New methods.
|
||
* ax-gdb.c (var_msym_value_operation::do_generate_ax): New
|
||
method.
|
||
|
||
2021-03-08 Tom Tromey <tom@tromey.com>
|
||
|
||
* expop.h (class long_const_operation): New.
|
||
* ax-gdb.c (long_const_operation::do_generate_ax): New method.
|
||
|
||
2021-03-08 Tom Tromey <tom@tromey.com>
|
||
|
||
* expop.h (class scope_operation): New.
|
||
* eval.c (eval_op_scope): No longer static.
|
||
(scope_operation::evaluate_for_address): New method.
|
||
* ax-gdb.c (scope_operation::do_generate_ax): New method.
|
||
|
||
2021-03-08 Tom Tromey <tom@tromey.com>
|
||
|
||
* expprint.c (float_const_operation::dump): New method.
|
||
* expop.h (float_data): New typedef.
|
||
(class float_const_operation): New.
|
||
|
||
2021-03-08 Tom Tromey <tom@tromey.com>
|
||
|
||
* expop.h (gen_expr_binop, gen_expr_structop): Declare.
|
||
* ax-gdb.c (gen_expr_binop): New function.
|
||
(gen_expr_structop): Likewise.
|
||
|
||
2021-03-08 Tom Tromey <tom@tromey.com>
|
||
|
||
* expprint.c (expr::dump_for_expression): New functions.
|
||
* expop.h (dump_for_expression): New overloads.
|
||
(tuple_holding_operation::dump, tuple_holding_operation::do_dump):
|
||
Update.
|
||
|
||
2021-03-08 Tom Tromey <tom@tromey.com>
|
||
|
||
* expression.h (expr::operation): New class.
|
||
(expr::make_operation): New function.
|
||
(expr::operation_up): New typedef.
|
||
* expop.h: New file.
|
||
* eval.c (operation::evaluate_for_cast)
|
||
(operation::evaluate_for_address, operation::evaluate_for_sizeof):
|
||
New methods.
|
||
* ax-gdb.c (operation::generate_ax): New method.
|
||
|
||
2021-03-08 Tom Tromey <tom@tromey.com>
|
||
|
||
* ax-gdb.c (gen_expr_binop_rest): Remove "pc" parameter.
|
||
(gen_expr_binop_rest): New overload.
|
||
|
||
2021-03-08 Tom Tromey <tom@tromey.com>
|
||
|
||
* eval.c (eval_multi_subscript): New function.
|
||
(evaluate_subexp_standard): Use it.
|
||
|
||
2021-03-08 Tom Tromey <tom@tromey.com>
|
||
|
||
* ada-lang.c (ada_binop_exp): New function.
|
||
(ada_evaluate_subexp): Use it.
|
||
|
||
2021-03-08 Tom Tromey <tom@tromey.com>
|
||
|
||
* ada-lang.c (ada_val_atr): Rename from value_val_atr. Change
|
||
parameters.
|
||
(ada_evaluate_subexp): Use it.
|
||
|
||
2021-03-08 Tom Tromey <tom@tromey.com>
|
||
|
||
* ada-lang.c (ada_binop_minmax): New function.
|
||
(ada_evaluate_subexp): Use it.
|
||
|
||
2021-03-08 Tom Tromey <tom@tromey.com>
|
||
|
||
* ada-lang.c (ada_unop_atr): New function.
|
||
(ada_evaluate_subexp): Use it.
|
||
|
||
2021-03-08 Tom Tromey <tom@tromey.com>
|
||
|
||
* ada-lang.c (ada_binop_in_bounds): New function.
|
||
(ada_evaluate_subexp): Use it.
|
||
|
||
2021-03-08 Tom Tromey <tom@tromey.com>
|
||
|
||
* ada-lang.c (ada_ternop_slice): New function.
|
||
(ada_evaluate_subexp): Use it.
|
||
|
||
2021-03-08 Tom Tromey <tom@tromey.com>
|
||
|
||
* ada-lang.c (ada_equal_binop): New function.
|
||
(ada_evaluate_subexp): Use it.
|
||
|
||
2021-03-08 Tom Tromey <tom@tromey.com>
|
||
|
||
* ada-lang.c (ada_mult_binop): New function.
|
||
(ada_evaluate_subexp): Use it.
|
||
|
||
2021-03-08 Tom Tromey <tom@tromey.com>
|
||
|
||
* ada-lang.c (ada_abs): New function.
|
||
(ada_evaluate_subexp): Use it.
|
||
|
||
2021-03-08 Tom Tromey <tom@tromey.com>
|
||
|
||
* ada-lang.c (ada_atr_size): New function.
|
||
(ada_evaluate_subexp): Use it.
|
||
|
||
2021-03-08 Tom Tromey <tom@tromey.com>
|
||
|
||
* ada-lang.c (ada_atr_tag): New function.
|
||
(ada_evaluate_subexp): Use it.
|
||
|
||
2021-03-08 Tom Tromey <tom@tromey.com>
|
||
|
||
* ada-lang.c (ada_unop_in_range): New function.
|
||
(ada_evaluate_subexp): Use it.
|
||
|
||
2021-03-08 Tom Tromey <tom@tromey.com>
|
||
|
||
* ada-lang.c (ada_unop_neg): New function.
|
||
(ada_evaluate_subexp): Use it.
|
||
|
||
2021-03-08 Tom Tromey <tom@tromey.com>
|
||
|
||
* ada-lang.c (eval_ternop_in_range): New function.
|
||
(ada_evaluate_subexp): Use it.
|
||
|
||
2021-03-08 Tom Tromey <tom@tromey.com>
|
||
|
||
* opencl-lang.c (eval_opencl_assign): New function.
|
||
(evaluate_subexp_opencl): Use it.
|
||
|
||
2021-03-08 Tom Tromey <tom@tromey.com>
|
||
|
||
* eval.c (eval_op_objc_msgcall): New function.
|
||
(evaluate_subexp_standard): Use it.
|
||
|
||
2021-03-08 Tom Tromey <tom@tromey.com>
|
||
|
||
* eval.c (eval_binop_assign_modify): New function.
|
||
(evaluate_subexp_standard): Use it.
|
||
|
||
2021-03-08 Tom Tromey <tom@tromey.com>
|
||
|
||
* m2-lang.c (eval_op_m2_subscript): New function.
|
||
(evaluate_subexp_modula2): Use it.
|
||
|
||
2021-03-08 Tom Tromey <tom@tromey.com>
|
||
|
||
* m2-lang.c (eval_op_m2_high): New function.
|
||
(evaluate_subexp_modula2): Use it.
|
||
|
||
2021-03-08 Tom Tromey <tom@tromey.com>
|
||
|
||
* eval.c (evaluate_subexp_for_address_base): New function.
|
||
(evaluate_subexp_for_address): Use it.
|
||
(evaluate_subexp_for_sizeof_base): New function.
|
||
(evaluate_subexp_for_sizeof): Use it.
|
||
|
||
2021-03-08 Tom Tromey <tom@tromey.com>
|
||
|
||
* rust-lang.c (eval_op_rust_structop): New function.
|
||
(rust_evaluate_subexp): Use it.
|
||
|
||
2021-03-08 Tom Tromey <tom@tromey.com>
|
||
|
||
* rust-lang.c (eval_op_rust_struct_anon): New function.
|
||
(rust_evaluate_subexp): Use it.
|
||
|
||
2021-03-08 Tom Tromey <tom@tromey.com>
|
||
|
||
* rust-lang.c (eval_op_rust_array): New function.
|
||
(rust_evaluate_subexp): Use it.
|
||
|
||
2021-03-08 Tom Tromey <tom@tromey.com>
|
||
|
||
* rust-lang.c (eval_op_rust_complement): New function.
|
||
(rust_evaluate_subexp): Use it.
|
||
|
||
2021-03-08 Tom Tromey <tom@tromey.com>
|
||
|
||
* rust-lang.c (eval_op_rust_ind): New function.
|
||
(rust_evaluate_subexp): Use it.
|
||
|
||
2021-03-08 Tom Tromey <tom@tromey.com>
|
||
|
||
* rust-lang.c (rust_subscript): Change parameters.
|
||
(rust_evaluate_subexp): Update.
|
||
|
||
2021-03-08 Tom Tromey <tom@tromey.com>
|
||
|
||
* rust-lang.c (rust_range): Change parameters.
|
||
(rust_evaluate_subexp): Update.
|
||
|
||
2021-03-08 Tom Tromey <tom@tromey.com>
|
||
|
||
* f-lang.c (eval_op_f_allocated): New function.
|
||
(evaluate_subexp_f): Use it.
|
||
|
||
2021-03-08 Tom Tromey <tom@tromey.com>
|
||
|
||
* f-lang.c (fortran_require_array): New function.
|
||
(evaluate_subexp_f): Use it.
|
||
|
||
2021-03-08 Tom Tromey <tom@tromey.com>
|
||
|
||
* f-lang.c (eval_op_f_kind): New function.
|
||
(evaluate_subexp_f): Use it.
|
||
|
||
2021-03-08 Tom Tromey <tom@tromey.com>
|
||
|
||
* f-lang.c (eval_op_f_cmplx): New function.
|
||
(evaluate_subexp_f): Use it.
|
||
|
||
2021-03-08 Tom Tromey <tom@tromey.com>
|
||
|
||
* f-lang.c (eval_op_f_modulo): New function.
|
||
(evaluate_subexp_f): Use it.
|
||
|
||
2021-03-08 Tom Tromey <tom@tromey.com>
|
||
|
||
* f-lang.c (eval_op_f_floor): New function.
|
||
(evaluate_subexp_f): Use it.
|
||
|
||
2021-03-08 Tom Tromey <tom@tromey.com>
|
||
|
||
* f-lang.c (eval_op_f_ceil): New function.
|
||
(evaluate_subexp_f): Use it.
|
||
|
||
2021-03-08 Tom Tromey <tom@tromey.com>
|
||
|
||
* f-lang.c (eval_op_f_mod): New function.
|
||
(evaluate_subexp_f): Use it.
|
||
|
||
2021-03-08 Tom Tromey <tom@tromey.com>
|
||
|
||
* f-lang.c (eval_op_f_abs): New function.
|
||
(evaluate_subexp_f): Use it.
|
||
|
||
2021-03-08 Tom Tromey <tom@tromey.com>
|
||
|
||
* eval.c (eval_op_type): New function.
|
||
(evaluate_subexp_standard): Use it.
|
||
|
||
2021-03-08 Tom Tromey <tom@tromey.com>
|
||
|
||
* eval.c (eval_op_postdec): New function.
|
||
(evaluate_subexp_standard): Use it.
|
||
|
||
2021-03-08 Tom Tromey <tom@tromey.com>
|
||
|
||
* eval.c (eval_op_postinc): New function.
|
||
(evaluate_subexp_standard): Use it.
|
||
|
||
2021-03-08 Tom Tromey <tom@tromey.com>
|
||
|
||
* eval.c (eval_op_predec): New file.
|
||
(evaluate_subexp_standard): Use it.
|
||
|
||
2021-03-08 Tom Tromey <tom@tromey.com>
|
||
|
||
* eval.c (eval_op_preinc): New function.
|
||
(evaluate_subexp_standard): Use it.
|
||
|
||
2021-03-08 Tom Tromey <tom@tromey.com>
|
||
|
||
* eval.c (eval_op_memval): New function.
|
||
(evaluate_subexp_standard): Use it.
|
||
|
||
2021-03-08 Tom Tromey <tom@tromey.com>
|
||
|
||
* eval.c (eval_op_alignof): New function.
|
||
(evaluate_subexp_standard): Use it.
|
||
|
||
2021-03-08 Tom Tromey <tom@tromey.com>
|
||
|
||
* eval.c (eval_op_ind): New function.
|
||
(evaluate_subexp_standard): Use it.
|
||
|
||
2021-03-08 Tom Tromey <tom@tromey.com>
|
||
|
||
* eval.c (eval_op_lognot): New function.
|
||
(evaluate_subexp_standard): Use it.
|
||
|
||
2021-03-08 Tom Tromey <tom@tromey.com>
|
||
|
||
* eval.c (eval_op_complement): New function.
|
||
(evaluate_subexp_standard): Use it.
|
||
|
||
2021-03-08 Tom Tromey <tom@tromey.com>
|
||
|
||
* eval.c (eval_op_neg): New function.
|
||
(evaluate_subexp_standard): Use it.
|
||
|
||
2021-03-08 Tom Tromey <tom@tromey.com>
|
||
|
||
* eval.c (eval_op_plus): New function.
|
||
(evaluate_subexp_standard): Use it.
|
||
|
||
2021-03-08 Tom Tromey <tom@tromey.com>
|
||
|
||
* eval.c (eval_op_repeat): New function.
|
||
(evaluate_subexp_standard): Use it.
|
||
|
||
2021-03-08 Tom Tromey <tom@tromey.com>
|
||
|
||
* eval.c (eval_op_leq): New function.
|
||
(evaluate_subexp_standard): Use it.
|
||
|
||
2021-03-08 Tom Tromey <tom@tromey.com>
|
||
|
||
* eval.c (eval_op_geq): New function.
|
||
(evaluate_subexp_standard): Use it.
|
||
|
||
2021-03-08 Tom Tromey <tom@tromey.com>
|
||
|
||
* eval.c (eval_op_gtr): New function.
|
||
(evaluate_subexp_standard): Use it.
|
||
|
||
2021-03-08 Tom Tromey <tom@tromey.com>
|
||
|
||
* eval.c (eval_op_less): New function.
|
||
(evaluate_subexp_standard): Use it.
|
||
|
||
2021-03-08 Tom Tromey <tom@tromey.com>
|
||
|
||
* eval.c (eval_op_notequal): New function.
|
||
(evaluate_subexp_standard): Use it.
|
||
|
||
2021-03-08 Tom Tromey <tom@tromey.com>
|
||
|
||
* eval.c (eval_op_equal): New function.
|
||
(evaluate_subexp_standard): Use it.
|
||
|
||
2021-03-08 Tom Tromey <tom@tromey.com>
|
||
|
||
* eval.c (eval_op_subscript): New function.
|
||
(evaluate_subexp_standard): Use it.
|
||
|
||
2021-03-08 Tom Tromey <tom@tromey.com>
|
||
|
||
* eval.c (eval_op_binary): New function.
|
||
(evaluate_subexp_standard): Use it.
|
||
|
||
2021-03-08 Tom Tromey <tom@tromey.com>
|
||
|
||
* eval.c (eval_op_sub): New function.
|
||
(evaluate_subexp_standard): Use it.
|
||
|
||
2021-03-08 Tom Tromey <tom@tromey.com>
|
||
|
||
* eval.c (eval_op_add): New function.
|
||
(evaluate_subexp_standard): Use it.
|
||
|
||
2021-03-08 Tom Tromey <tom@tromey.com>
|
||
|
||
* eval.c (eval_op_member): New function.
|
||
(evaluate_subexp_standard): Use it.
|
||
|
||
2021-03-08 Tom Tromey <tom@tromey.com>
|
||
|
||
* eval.c (eval_op_structop_ptr): New function.
|
||
(evaluate_subexp_standard): Use it.
|
||
|
||
2021-03-08 Tom Tromey <tom@tromey.com>
|
||
|
||
* eval.c (eval_op_structop_struct): New function.
|
||
(evaluate_subexp_standard): Use it.
|
||
|
||
2021-03-08 Tom Tromey <tom@tromey.com>
|
||
|
||
* eval.c (eval_op_ternop): New function.
|
||
(evaluate_subexp_standard): Use it.
|
||
|
||
2021-03-08 Tom Tromey <tom@tromey.com>
|
||
|
||
* eval.c (eval_op_concat): New function.
|
||
(evaluate_subexp_standard): Use it.
|
||
|
||
2021-03-08 Tom Tromey <tom@tromey.com>
|
||
|
||
* eval.c (eval_op_objc_selector): New function.
|
||
(evaluate_subexp_standard): Use it.
|
||
|
||
2021-03-08 Tom Tromey <tom@tromey.com>
|
||
|
||
* eval.c (eval_op_string): New function.
|
||
(evaluate_subexp_standard): Use it.
|
||
|
||
2021-03-08 Tom Tromey <tom@tromey.com>
|
||
|
||
* eval.c (eval_op_register): New function.
|
||
(evaluate_subexp_standard): Use it.
|
||
|
||
2021-03-08 Tom Tromey <tom@tromey.com>
|
||
|
||
* eval.c (eval_op_func_static_var): New function.
|
||
(evaluate_subexp_standard): Use it.
|
||
|
||
2021-03-08 Tom Tromey <tom@tromey.com>
|
||
|
||
* eval.c (eval_op_var_msym_value): New function.
|
||
(evaluate_subexp_standard): Use it.
|
||
|
||
2021-03-08 Tom Tromey <tom@tromey.com>
|
||
|
||
* eval.c (eval_op_var_entry_value): New function.
|
||
(evaluate_subexp_standard): Use it.
|
||
|
||
2021-03-08 Tom Tromey <tom@tromey.com>
|
||
|
||
* eval.c (eval_op_scope): New function.
|
||
(evaluate_subexp_standard): Use it.
|
||
|
||
2021-03-06 Chernov Sergey <klen_s@mail.ru>
|
||
|
||
PR gdb/27528:
|
||
* ada-lang.c (ada_fold_name): Use gdb::to_string.
|
||
|
||
2021-03-06 Tom Tromey <tom@tromey.com>
|
||
|
||
* dwarf2/sect-names.h (dwarf2_elf_names): Declare.
|
||
* dwarf2/read.h (dwarf2_get_dwz_file): Move to dwz.h.
|
||
* dwarf2/read.c (dwarf2_elf_names): No longer static.
|
||
(locate_dwz_sections, dwz_search_other_debugdirs)
|
||
(dwarf2_get_dwz_file): Move to dwz.c.
|
||
* dwarf2/dwz.h (dwarf2_get_dwz_file): Move declaration from
|
||
read.h.
|
||
* dwarf2/dwz.c (locate_dwz_sections, dwz_search_other_debugdirs)
|
||
(dwarf2_get_dwz_file): Move from read.c.
|
||
|
||
2021-03-06 Tom Tromey <tom@tromey.com>
|
||
|
||
* debuginfod-support.h: Include scoped_fd.h.
|
||
|
||
2021-03-06 Tom Tromey <tom@tromey.com>
|
||
|
||
* dwarf2/read.h (dwarf2_get_dwz_file): Add 'require' parameter.
|
||
* dwarf2/read.c (dwarf2_get_dwz_file): Add 'require' parameter.
|
||
(get_abbrev_section_for_cu, read_attribute_value)
|
||
(get_debug_line_section): Update.
|
||
* dwarf2/macro.c (dwarf_decode_macro_bytes): Update.
|
||
|
||
2021-03-06 Tom Tromey <tom@tromey.com>
|
||
|
||
* dwarf2/sect-names.h (struct dwarf2_section_names) <matches>: New
|
||
method.
|
||
* dwarf2/read.c (section_is_p): Remove.
|
||
(dwarf2_per_bfd::locate_sections)
|
||
(dwarf2_per_bfd::locate_sections, locate_dwz_sections)
|
||
(locate_v1_virtual_dwo_sections, dwarf2_locate_dwo_sections)
|
||
(dwarf2_locate_common_dwp_sections)
|
||
(dwarf2_locate_v2_dwp_sections, dwarf2_locate_v5_dwp_sections):
|
||
Update.
|
||
|
||
2021-03-06 Tom Tromey <tom@tromey.com>
|
||
|
||
* xcoffread.c: Include sect-names.h.
|
||
* symfile.h (struct dwarf2_section_names, struct
|
||
dwarf2_debug_sections): Move to dwarf2/sect-names.h.
|
||
* dwarf2/sect-names.h: New file, from symfile.h.
|
||
* dwarf2/read.c: Include sect-names.h.
|
||
|
||
2021-03-06 Tom Tromey <tom@tromey.com>
|
||
|
||
* dwarf2/read.c (read_attribute): Make 'abbrev' const.
|
||
* dwarf2/abbrev.c (abbrev_table::alloc_abbrev): Remove.
|
||
(abbrev_table::read): Update.
|
||
* dwarf2/abbrev.h (struct attr_abbrev): Move earlier.
|
||
(struct abbrev_info): Reformat.
|
||
<attrs>: Now an array.
|
||
(struct abbrev_table) <alloc_abbrev>: Remove.
|
||
|
||
2021-03-06 Weimin Pan <weimin.pan@oracle.com>
|
||
|
||
* ctfread.c (ctf_psymtab_add_enums): New function.
|
||
(ctf_psymtab_type_cb): call ctf_psymtab_add_enums.
|
||
|
||
2021-03-06 Weimin Pan <weimin.pan@oracle.com>
|
||
|
||
* ctfread.c (read_func_kind_type): Set up function arguments.
|
||
|
||
2021-03-05 Craig Blackmore <craig.blackmore@embecosm.com>
|
||
Andrew Burgess <andrew.burgess@embecosm.com>
|
||
|
||
* riscv-none-tdep.c: Add 'user-regs.h' and 'target-description.h'
|
||
includes.
|
||
(riscv_csrset): New static global.
|
||
(riscv_update_csrmap): New function.
|
||
(riscv_iterate_over_regset_sections): Process CSRs.
|
||
|
||
2021-03-05 Andrew Burgess <andrew.burgess@embecosm.com>
|
||
|
||
* riscv-tdep.c (riscv_feature_name_csr): Define.
|
||
(riscv_feature_name_cpu): Define.
|
||
(riscv_feature_name_fpu): Define.
|
||
(riscv_feature_name_virtual): Define.
|
||
(riscv_xreg_feature): Use riscv_feature_name_cpu.
|
||
(riscv_freg_feature): Use riscv_feature_name_fpu.
|
||
(riscv_virtual_feature): Use riscv_feature_name_virtual.
|
||
(riscv_csr_feature): Use riscv_feature_name_csr.
|
||
* riscv-tdep.h (riscv_feature_name_csr): Declare.
|
||
|
||
2021-03-05 Andrew Burgess <andrew.burgess@embecosm.com>
|
||
Craig Blackmore <craig.blackmore@embecosm.com>
|
||
|
||
* Makefile.in (ALL_TARGET_OBS): Add riscv-none-tdep.o.
|
||
(ALLDEPFILES): Add riscv-none-tdep.c.
|
||
* configure: Regenerate.
|
||
* configure.ac (CONFIG_OBS): Add elf-none-tdep.o when BFD has ELF
|
||
support.
|
||
* configure.tgt (riscv*-*-*): Include riscv-none-tdep.c.
|
||
* elf-none-tdep.c: New file.
|
||
* elf-none-tdep.h: New file.
|
||
* riscv-none-tdep.c: New file.
|
||
|
||
2021-03-05 Craig Blackmore <craig.blackmore@embecosm.com>
|
||
Andrew Burgess <andrew.burgess@embecosm.com>
|
||
|
||
* corelow.c: Add 'xml-tdesc.h' include.
|
||
(core_target::read_description): Load the target description from
|
||
the core file when possible.
|
||
* fbsd-tdep.c (fbsd_make_corefile_notes): Add target description
|
||
note.
|
||
* gcore-elf.c: Add 'gdbsupport/tdesc.h' include.
|
||
(gcore_elf_make_tdesc_note): New function.
|
||
* gcore-elf.h (gcore_elf_make_tdesc_note): Declare.
|
||
* linux-tdep.c (linux_make_corefile_notes): Add target description
|
||
note.
|
||
|
||
2021-03-05 Andrew Burgess <andrew.burgess@embecosm.com>
|
||
|
||
* Makefile.in (SFILES): Add gcore-elf.c.
|
||
(HFILES_NO_SRCDIR): Add gcore-elf.h
|
||
* configure: Regenerate.
|
||
* configure.ac: Add gcore-elf.o to CONFIG_OBS if we have ELF
|
||
support.
|
||
* fbsd-tdep.c: Add 'gcore-elf.h' include.
|
||
(struct fbsd_collect_regset_section_cb_data): Delete.
|
||
(fbsd_collect_regset_section_cb): Delete.
|
||
(fbsd_collect_thread_registers): Delete.
|
||
(struct fbsd_corefile_thread_data): Delete.
|
||
(fbsd_corefile_thread): Delete.
|
||
(fbsd_make_corefile_notes): Call
|
||
gcore_elf_build_thread_register_notes instead of the now deleted
|
||
FreeBSD code.
|
||
* gcore-elf.c: New file, the content was moved here from
|
||
linux-tdep.c, functions were renamed and given minor cleanup.
|
||
* gcore-elf.h: New file.
|
||
* gcore.c (gcore_find_signalled_thread): Moved here from
|
||
linux-tdep.c and given a new name. Minor cleanups.
|
||
* gcore.h (gcore_find_signalled_thread): Declare.
|
||
* linux-tdep.c: Add 'gcore.h' and 'gcore-elf.h' includes.
|
||
(struct linux_collect_regset_section_cb_data): Delete.
|
||
(linux_collect_regset_section_cb): Delete.
|
||
(linux_collect_thread_registers): Delete.
|
||
(linux_corefile_thread): Call
|
||
gcore_elf_build_thread_register_notes.
|
||
(find_signalled_thread): Delete.
|
||
(linux_make_corefile_notes): Call gcore_find_signalled_thread.
|
||
|
||
2021-03-04 Simon Marchi <simon.marchi@polymtl.ca>
|
||
|
||
PR gdb/27147
|
||
* sparc-nat.h (sparc_fetch_inferior_registers): Add
|
||
process_stratum_target parameter,
|
||
sparc_store_inferior_registers): update callers.
|
||
* sparc-nat.c (sparc_fetch_inferior_registers,
|
||
sparc_store_inferior_registers): Add process_stratum_target
|
||
parameter. Switch current thread before calling
|
||
sparc_supply_gregset / sparc_collect_rwindow.
|
||
(sparc_store_inferior_registers): Likewise.
|
||
* sparc-obsd-tdep.c (sparc32obsd_supply_uthread): Add assertion.
|
||
(sparc32obsd_collect_uthread): Likewise.
|
||
* sparc-tdep.c (sparc_supply_rwindow, sparc_collect_rwindow):
|
||
Add assertion.
|
||
* sparc64-obsd-tdep.c (sparc64obsd_collect_uthread,
|
||
sparc64obsd_supply_uthread): Add assertion.
|
||
|
||
2021-03-04 Tom Tromey <tromey@adacore.com>
|
||
|
||
* ada-lang.c (struct match_data) <found_sym>: Now bool.
|
||
(aux_add_nonlocal_symbols): Update.
|
||
(ada_add_block_symbols): Change "found_sym" to bool.
|
||
|
||
2021-03-03 Tom Tromey <tromey@adacore.com>
|
||
|
||
* ada-lang.c (ada_resolve_function): Update comment.
|
||
(is_nonfunction, add_symbols_from_enclosing_procs)
|
||
(remove_extra_symbols): Likewise.
|
||
(struct match_data): Add constructor, initializers.
|
||
(add_nonlocal_symbols): Remove memset.
|
||
(aux_add_nonlocal_symbols): Update comment.
|
||
(ada_add_block_renamings, add_nonlocal_symbols)
|
||
(ada_add_all_symbols): Likewise.
|
||
* ada-exp.y (write_var_or_type): Clean up trailing whitespace.
|
||
|
||
2021-03-02 Tom Tromey <tromey@adacore.com>
|
||
|
||
* ada-lang.c (cast_from_gnat_encoded_fixed_point_type)
|
||
(cast_to_gnat_encoded_fixed_point_type): Remove.
|
||
(ada_value_cast, ada_evaluate_subexp): Update.
|
||
(gnat_encoded_fixed_point_type_info)
|
||
(ada_is_gnat_encoded_fixed_point_type)
|
||
(gnat_encoded_fixed_point_delta)
|
||
(gnat_encoded_fixed_point_scaling_factor): Remove.
|
||
* ada-lang.h (ada_is_gnat_encoded_fixed_point_type)
|
||
(gnat_encoded_fixed_point_delta)
|
||
(gnat_encoded_fixed_point_scaling_factor): Don't declare.
|
||
* ada-typeprint.c (print_gnat_encoded_fixed_point_type): Remove.
|
||
(ada_print_type): Update.
|
||
* ada-valprint.c (ada_value_print_num): Update.
|
||
* dwarf2/read.c (ada_get_gnat_encoded_number)
|
||
(ada_get_gnat_encoded_ratio): New functions.
|
||
(finish_fixed_point_type): Use them. Add parameters.
|
||
(GNAT_FIXED_POINT_SUFFIX): New define.
|
||
(gnat_encoded_fixed_point_type_info): New function.
|
||
(read_base_type): Handle gnat encodings.
|
||
|
||
2021-03-02 Tom Tromey <tromey@adacore.com>
|
||
|
||
* ada-lang.c (ada_fold_name, ada_variant_discrim_name)
|
||
(ada_enum_name, scan_discrim_bound, to_fixed_range_type): Use
|
||
std::string.
|
||
(GROW_VECT): Remove.
|
||
(grow_vect): Remove.
|
||
|
||
2021-03-02 Tom Tromey <tromey@adacore.com>
|
||
|
||
* ada-lang.h (ada_lookup_symbol_list): Return a vector.
|
||
* ada-lang.c (resolve_subexp): Update.
|
||
(ada_resolve_function): Accept a vector.
|
||
(is_nonfunction, add_defn_to_vec)
|
||
(add_symbols_from_enclosing_procs): Likewise.
|
||
(num_defns_collected, defns_collected): Remove.
|
||
(remove_extra_symbols): Return a vector.
|
||
(remove_irrelevant_renamings): Return void.
|
||
(ada_add_local_symbols): Accept a vector.
|
||
(struct match_data) <obstackp>: Remove.
|
||
<resultp>: New member.
|
||
(aux_add_nonlocal_symbols): Update.
|
||
(ada_add_block_renamings, add_nonlocal_symbols)
|
||
(ada_add_all_symbols): Accept a vector.
|
||
(ada_lookup_symbol_list_worker, ada_lookup_symbol_list): Return a
|
||
vector.
|
||
(ada_lookup_symbol): Update.
|
||
(ada_add_block_symbols): Accept a vector.
|
||
(get_var_value, iterate_over_symbols): Update.
|
||
* ada-exp.y (block_lookup, write_var_or_type, write_name_assoc):
|
||
Update.
|
||
|
||
2021-03-02 Tom Tromey <tromey@adacore.com>
|
||
|
||
* ada-lang.c (resolve_subexp): Use any_of and erase-remove idiom.
|
||
|
||
2021-03-02 Tom Tromey <tromey@adacore.com>
|
||
|
||
* ada-lang.c (struct ada_symbol_cache) <cache_space>: Now an
|
||
auto_obstack.
|
||
<root>: Initialize.
|
||
(ada_pspace_data): Remove destructor.
|
||
<sym_cache>: Now a unique_ptr.
|
||
(ada_init_symbol_cache, ada_free_symbol_cache): Remove.
|
||
(ada_get_symbol_cache): Use 'new'.
|
||
(ada_clear_symbol_cache): Rewrite.
|
||
|
||
2021-03-02 Tom Tromey <tromey@adacore.com>
|
||
|
||
* ada-lang.c (add_nonlocal_symbols): Handle case where objfile->sf
|
||
is null.
|
||
|
||
2021-02-27 Lancelot Six <lsix@lancelotsix.com>
|
||
|
||
PR gdb/27393
|
||
* source.c (add_path): Skip empty dirnames.
|
||
|
||
2021-02-25 Kevin Buettner <kevinb@redhat.com>
|
||
|
||
* nat/aarch64-sve-linux-ptrace.h: Add comment regarding
|
||
include order for <sys/ptrace.h> and <asm/ptrace.h>.
|
||
|
||
2021-02-25 Simon Marchi <simon.marchi@polymtl.ca>
|
||
|
||
PR gdb/26861
|
||
* target.c (target_mourn_inferior): Only compare pids in
|
||
target_mourn_inferior.
|
||
|
||
2021-02-25 Jan Matyas <jmatyas@codasip.com>
|
||
|
||
PR gdb/26819
|
||
* remote.c (remote_target::start_remote): Ensure the single
|
||
thread, automatically added for remote targets without the
|
||
concept of threading, is initially in set to the "resumed"
|
||
state.
|
||
* remote.c (remote_target::add_current_inferior_and_thread):
|
||
Add return value - return the main thread.
|
||
|
||
2021-02-25 Jan Vrany <jan.vrany@labware.com>
|
||
|
||
* gdb/mi/mi-interp.c (mi_traceframe_changed): Remove trailing \n from output.
|
||
(mi_tsv_created): Likewise.
|
||
(mi_tsv_deleted): Likewise.
|
||
|
||
2021-02-25 Tom de Vries <tdevries@suse.de>
|
||
|
||
PR symtab/27354
|
||
* dwarf2/read.c (open_and_init_dwo_file): Use rcuh_kind::COMPILE as
|
||
section_kind for &dwo_file->sections.info.
|
||
|
||
2021-02-25 Andrew Burgess <andrew.burgess@embecosm.com>
|
||
|
||
PR fortran/26155
|
||
* f-lang.c (fortran_argument_convert): Delete declaration.
|
||
(fortran_prepare_argument): New function.
|
||
(evaluate_subexp_f): Move logic to new function
|
||
fortran_prepare_argument.
|
||
|
||
2021-02-25 Andrew Burgess <andrew.burgess@embecosm.com>
|
||
|
||
* f-exp.y (f77_keywords): Add 'associated'.
|
||
* f-lang.c (fortran_associated): New function.
|
||
(evaluate_subexp_f): Handle FORTRAN_ASSOCIATED.
|
||
(operator_length_f): Likewise.
|
||
(print_unop_or_binop_subexp_f): New function.
|
||
(print_subexp_f): Make use of print_unop_or_binop_subexp_f for
|
||
FORTRAN_ASSOCIATED, FORTRAN_LBOUND, and FORTRAN_UBOUND.
|
||
(dump_subexp_body_f): Handle FORTRAN_ASSOCIATED.
|
||
(operator_check_f): Likewise.
|
||
* std-operator.def: Add FORTRAN_ASSOCIATED.
|
||
|
||
2021-02-25 Andrew Burgess <andrew.burgess@embecosm.com>
|
||
|
||
* f-exp.y (fortran_operators): Add ".xor.".
|
||
|
||
2021-02-24 Tom de Vries <tdevries@suse.de>
|
||
|
||
PR symtab/27336
|
||
* dwarf2/attribute.c (attribute::form_is_signed): New function
|
||
factored out of ...
|
||
* dwarf2/attribute.h (attribute::as_signed): ... here.
|
||
(attribute::is_nonnegative, attribute::as_nonnegative): New function.
|
||
(attribute::form_is_signed): Declare.
|
||
* dwarf2/read.c (new_symbol): Use is_nonnegative and as_nonnegative
|
||
for DW_AT_decl_file.
|
||
|
||
2021-02-24 Kevin Buettner <kevinb@redhat.com>
|
||
|
||
* nat/aarch64-linux-hw-point.c: Add comment regarding include
|
||
order for <sys/ptrace.h> and <asm/ptrace.h>.
|
||
|
||
2021-02-24 Kevin Buettner <kevinb@redhat.com>
|
||
|
||
* nat/aarch64-linux-hw-point.c: Include <asm/ptrace.h> after
|
||
<sys/ptrace.h>.
|
||
|
||
2021-02-24 Andrew Burgess <andrew.burgess@embecosm.com>
|
||
|
||
* exec.c (set_section_command): Move variable declarations into
|
||
the function body, and use std::string instead of a fixed size
|
||
buffer.
|
||
|
||
2021-02-24 Andrew Burgess <andrew.burgess@embecosm.com>
|
||
|
||
* exec.c (exec_target::get_section_table): Delete member function.
|
||
(section_table_read_available_memory): Use current_top_target, not
|
||
just the exec_ops target.
|
||
* target-delegates.c: Regenerate.
|
||
* target.c (default_get_section_table): New function.
|
||
* target.h (target_ops::get_section_table): Change default
|
||
behaviour to call default_get_section_table.
|
||
(default_get_section_table): Declare.
|
||
|
||
2021-02-24 Andrew Burgess <andrew.burgess@embecosm.com>
|
||
|
||
* exec.c (exec_target::close): Call new clear_target_sections
|
||
function.
|
||
(program_space::add_target_sections): Update name of member
|
||
variable.
|
||
(program_space::add_target_sections): Update name of member
|
||
variable.
|
||
(program_space::remove_target_sections): Likewise.
|
||
(exec_one_fork): Use new target_sections member function.
|
||
(exec_target::get_section_table): Likewise.
|
||
(exec_target::files_info): Likewise.
|
||
(set_section_command): Likewise.
|
||
(exec_set_section_address): Likewise.
|
||
(exec_target::has_memory): Use new target_sections member
|
||
function.
|
||
* progspace.h (program_space::clear_target_sections): New member
|
||
function.
|
||
(program_space::target_sections): Rename member variable to
|
||
m_target_sections, replace with a new member function.
|
||
(program_space::m_target_sections): New member variable.
|
||
* solib-dsbt.c (scan_dyntag): Use new member function.
|
||
* solib-svr4.c (scan_dyntag): Likewise.
|
||
|
||
2021-02-24 Andrew Burgess <andrew.burgess@embecosm.com>
|
||
|
||
* gdb/bfd-target.c (class target_bfd) <get_section_table>: Make
|
||
return type const.
|
||
* gdb/exec.c (struct exec_target) <get_section_table>: Likewise.
|
||
(section_table_read_available_memory): Make local const.
|
||
(exec_target::xfer_partial): Make local const.
|
||
(print_section_info): Make parameter const.
|
||
* gdb/exec.h (print_section_info): Likewise.
|
||
* gdb/ppc64-tdep.c (ppc64_convert_from_func_ptr_addr): Make local
|
||
const.
|
||
* gdb/record-btrace.c (record_btrace_target::xfer_partial):
|
||
Likewise.
|
||
* gdb/remote.c (remote_target::remote_xfer_live_readonly_partial):
|
||
Likewise.
|
||
* gdb/s390-tdep.c (s390_load): Likewise.
|
||
* gdb/solib-dsbt.c (scan_dyntag): Likewise.
|
||
* gdb/solib-svr4.c (scan_dyntag): Likewise.
|
||
* gdb/target-debug.h (target_debug_print_target_section_table_p):
|
||
Rename to...
|
||
(target_debug_print_const_target_section_table_p): ...this.
|
||
* gdb/target-delegates.c: Regenerate.
|
||
* gdb/target.c (target_get_section_table): Make return type const.
|
||
(target_section_by_addr): Likewise. Also make some locals const.
|
||
(memory_xfer_partial_1): Make some locals const.
|
||
* gdb/target.h (struct target_ops) <get_section_table>: Make
|
||
return type const.
|
||
(target_section_by_addr): Likewise.
|
||
(target_get_section_table): Likewise.
|
||
|
||
2021-02-24 Andrew Burgess <andrew.burgess@embecosm.com>
|
||
|
||
* NEWS: Mention new 'maint info target-sections' command.
|
||
* maint.c (maintenance_info_target_sections): New function.
|
||
(_initialize_maint_cmds): Register new command.
|
||
|
||
2021-02-24 Andrew Burgess <andrew.burgess@embecosm.com>
|
||
|
||
* riscv-tdep.c (riscv_features_from_gdbarch_info): Rename to...
|
||
(riscv_features_from_bfd): ...this. Change parameter type to
|
||
'bfd*', and update as required.
|
||
(riscv_find_default_target_description): Update call to
|
||
riscv_features_from_bfd. Select a default xlen based on
|
||
info.bfd_arch_info.
|
||
(riscv_gdbarch_init): Update call to riscv_features_from_bfd.
|
||
|
||
2021-02-24 Andrew Burgess <andrew.burgess@embecosm.com>
|
||
|
||
* eval.c (evaluate_subexp_standard): Call value_ind for points to
|
||
dynamic types in UNOP_IND.
|
||
|
||
2021-02-23 Simon Marchi <simon.marchi@polymtl.ca>
|
||
|
||
PR gdb/26828
|
||
* dwarf2/read.c (dwarf2_queue_guard) <dwarf2_queue_guard>:
|
||
Instantiate queue.
|
||
(~dwarf2_queue_guard): Clear queue.
|
||
(queue_comp_unit): Assert that queue is
|
||
instantiated.
|
||
(process_queue): Adjust.
|
||
* dwarf2/read.h (struct dwarf2_per_bfd) <queue>: Make optional.
|
||
|
||
2021-02-23 Simon Marchi <simon.marchi@polymtl.ca>
|
||
|
||
PR gdb/26828
|
||
* dwarf2/read.c (maybe_queue_comp_unit): Check if CU is expanded
|
||
to decide whether or not to enqueue it for expansion.
|
||
(follow_die_offset, follow_die_sig_1): Ensure we load the DIEs
|
||
after calling maybe_queue_comp_unit.
|
||
|
||
2021-02-23 Simon Marchi <simon.marchi@polymtl.ca>
|
||
|
||
* linux-nat.c (linux_nat_filter_event): Return void.
|
||
|
||
2021-02-22 Tom Tromey <tromey@adacore.com>
|
||
|
||
* solib-svr4.c (enable_break): Update.
|
||
* bfd-target.c (class target_bfd) <target_bfd>: Change parameter
|
||
type.
|
||
(target_bfd_reopen): Change parameter type.
|
||
* bfd-target.h (target_bfd_reopen): Change parameter type.
|
||
|
||
2021-02-22 Simon Marchi <simon.marchi@polymtl.ca>
|
||
|
||
* thread.c (add_thread_silent): Add assert.
|
||
(find_thread_ptid): Add assert.
|
||
|
||
2021-02-22 Simon Marchi <simon.marchi@polymtl.ca>
|
||
|
||
PR gdb/27435
|
||
* inf-ptrace.c (struct target_unpusher): Move to target.h.
|
||
(target_unpush_up): Likewise.
|
||
* procfs.c (procfs_target::attach): Push target early. Use
|
||
target_unpush_up to unpush target in case of error.
|
||
* target.h (struct target_unpusher): Move here.
|
||
(target_unpush_up): Likewise.
|
||
|
||
2021-02-19 Kevin Buettner <kevinb@redhat.com>
|
||
|
||
* nat/amd64-linux-siginfo.c: Include "gdbsupport/common-defs.h"
|
||
(which in turn includes <gnulib/config.h>) before include
|
||
of <signal.h>.
|
||
|
||
2021-02-19 Nelson Chu <nelson.chu@sifive.com>
|
||
|
||
PR 27158
|
||
* riscv-tdep.c (decode_ci_type_insn): Updated encoding macros.
|
||
(decode_j_type_insn): Likewise.
|
||
(decode_cj_type_insn): Likewise.
|
||
(decode_b_type_insn): Likewise.
|
||
(decode): Likewise.
|
||
|
||
2021-02-18 Tom Tromey <tom@tromey.com>
|
||
|
||
* expression.h (struct expression) <evaluate>: Declare method.
|
||
* eval.c (evaluate_subexp): Simplify.
|
||
(expression::evaluate): New method.
|
||
(evaluate_expression, evaluate_type): Use expression::evaluate.
|
||
|
||
2021-02-17 Kevin Buettner <kevinb@redhat.com>
|
||
|
||
* ada-lang.c (ada_fold_name): Check for non-empty string prior
|
||
to accessing it.
|
||
(ada_lookup_name_info): Likewise.
|
||
|
||
2021-02-13 Mike Frysinger <vapier@gentoo.org>
|
||
|
||
* aclocal.m4: Regenerate.
|
||
|
||
2021-02-12 Tom de Vries <tdevries@suse.de>
|
||
|
||
PR threads/26228
|
||
* linux-nat.c (lin_thread_get_thread_signals): Remove.
|
||
(lin_thread_signals): New static var.
|
||
(lin_thread_get_thread_signal_num, lin_thread_get_thread_signal):
|
||
New function.
|
||
* linux-nat.h (lin_thread_get_thread_signals): Remove.
|
||
(lin_thread_get_thread_signal_num, lin_thread_get_thread_signal):
|
||
Declare.
|
||
* linux-thread-db.c (check_thread_signals): Use
|
||
lin_thread_get_thread_signal_num and lin_thread_get_thread_signal.
|
||
|
||
2021-02-12 Andrew Burgess <andrew.burgess@embecosm.com>
|
||
|
||
* f-exp.y (f77_keywords): Add allocated.
|
||
* f-lang.c (evaluate_subexp_f): Handle UNOP_FORTRAN_ALLOCATED.
|
||
(operator_length_f): Likewise.
|
||
(print_subexp_f): Likewise.
|
||
(dump_subexp_body_f): Likewise.
|
||
(operator_check_f): Likewise.
|
||
* std-operator.def (UNOP_FORTRAN_ALLOCATED): New operator.
|
||
|
||
2021-02-11 Tom de Vries <tdevries@suse.de>
|
||
|
||
PR symtab/27353
|
||
* dwarf2/attribute.c (attribute::form_requires_reprocessing):
|
||
Return true for DW_FORM_strx.
|
||
|
||
2021-02-11 Tom Tromey <tromey@adacore.com>
|
||
|
||
PR gdb/27383:
|
||
* parse.c (write_exp_symbol_reference): Write sym.block.
|
||
|
||
2021-02-11 Andrew Burgess <andrew.burgess@embecosm.com>
|
||
|
||
* NEWS: Mention changes to 'maint info sections'.
|
||
* maint.c (match_substring): Return a bool, fix whitespace issue.
|
||
(struct single_bfd_flag_info): New struct.
|
||
(bfd_flag_info): New static global.
|
||
(match_bfd_flags): Return a bool, use bfd_flag_info.
|
||
(print_bfd_flags): Use bfd_flag_info.
|
||
(maint_print_section_info): Delete trailing whitespace.
|
||
(struct maint_info_sections_opts): New struct.
|
||
(maint_info_sections_option_defs): New static global.
|
||
(maint_info_sections_completer): New function.
|
||
(maintenance_info_sections): Use option parsing mechanism.
|
||
(_initialize_maint_cmds): Update command help text for 'maint info
|
||
sections' and register a command completer.
|
||
|
||
2021-02-11 Andrew Burgess <andrew.burgess@embecosm.com>
|
||
|
||
* maint.c (print_bfd_section_info_maybe_relocated): Delete,
|
||
functionality merged into...
|
||
(maint_print_all_sections): ...this new function.
|
||
(maintenance_info_sections): Make use of maint_print_all_sections,
|
||
allow all objects to be printed even where there's no executable.
|
||
|
||
2021-02-11 Andrew Burgess <andrew.burgess@embecosm.com>
|
||
|
||
* breakpoint.c (resolve_sal_pc): Make use of
|
||
bound_minimal_symbol::obj_section.
|
||
* maint.c (maintenance_translate_address): Likewise.
|
||
* minsyms.c (minimal_symbol_upper_bound): Likewise.
|
||
* minsyms.h (struct bound_minimal_symbol) <obj_section>: New
|
||
member function.
|
||
* printcmd.c (info_address_command): Make use of
|
||
bound_minimal_symbol::obj_section.
|
||
|
||
2021-02-11 Alan Modra <amodra@gmail.com>
|
||
|
||
* arm-symbian-tdep.c: Delete.
|
||
* NEWS: Mention arm-symbian removal.
|
||
* Makefile.in: Remove arm-symbian-tdep entries.
|
||
* configure.tgt: Remove arm*-*-symbianelf*.
|
||
* doc/gdb.texinfo: Remove mention of SymbianOS.
|
||
* osabi.c (gdb_osabi_names): Remove "Symbian".
|
||
* osabi.h (enum gdb_osabi): Remove GDB_OSABI_SYMBIAN.
|
||
* testsuite/gdb.base/ending-run.exp: Remove E32Main handling.
|
||
* testsuite/gdb.ada/catch_ex_std.exp: Remove arm*-*-symbianelf*
|
||
handling.
|
||
* testsuite/gdb.base/dup-sect.exp: Likewise.
|
||
* testsuite/gdb.base/long_long.exp: Likewise.
|
||
* testsuite/gdb.base/solib-weak.exp: Likewise.
|
||
* testsuite/gdb.guile/scm-section-script.exp: Likewise.
|
||
* testsuite/gdb.python/py-section-script.exp: Likewise.
|
||
* testsuite/lib/dwarf.exp: Likewise.
|
||
* testsuite/lib/gdb.exp: Likewise.
|
||
|
||
2021-02-10 Andrew Burgess <andrew.burgess@embecosm.com>
|
||
|
||
* f-exp.y (UNOP_OR_BINOP_INTRINSIC): New token.
|
||
(exp): New pattern using UNOP_OR_BINOP_INTRINSIC.
|
||
(one_or_two_args): New pattern.
|
||
(f77_keywords): Add lbound and ubound.
|
||
* f-lang.c (fortran_bounds_all_dims): New function.
|
||
(fortran_bounds_for_dimension): New function.
|
||
(evaluate_subexp_f): Handle FORTRAN_LBOUND and FORTRAN_UBOUND.
|
||
(operator_length_f): Likewise.
|
||
(print_subexp_f): Likewise.
|
||
(dump_subexp_body_f): Likewise.
|
||
(operator_check_f): Likewise.
|
||
* std-operator.def (FORTRAN_LBOUND): Define.
|
||
(FORTRAN_UBOUND): Define.
|
||
|
||
2021-02-10 Andrew Burgess <andrew.burgess@embecosm.com>
|
||
|
||
* coff-pe-read.c (add_pe_forwarded_sym): Make use of section_index
|
||
and set_section_index member functions where appropriate.
|
||
* coffread.c (coff_symtab_read): Likewise.
|
||
(process_coff_symbol): Likewise.
|
||
* ctfread.c (set_symbol_address): Likewise.
|
||
* dwarf2/read.c (add_partial_symbol): Likewise.
|
||
(var_decode_location): Likewise.
|
||
* language.c: Likewise.
|
||
* minsyms.c (minimal_symbol_reader::record_full): Likewise.
|
||
(compact_minimal_symbols): Likewise.
|
||
(minimal_symbol_upper_bound): Likewise.
|
||
* objfiles.c (relocate_one_symbol): Likewise.
|
||
* psympriv.h (partial_symbol::obj_section): Likewise.
|
||
(partial_symbol::address): Likewise.
|
||
* psymtab.c (partial_symtab::add_psymbol): Likewise.
|
||
* stabsread.c (scan_file_globals): Likewise.
|
||
* symmisc.c (dump_msymbols): Likewise.
|
||
* symtab.c (general_symbol_info::obj_section): Likewise.
|
||
(fixup_section): Likewise.
|
||
(get_msymbol_address): Likewise.
|
||
* symtab.h (general_symbol_info::section): Rename to...
|
||
(general_symbol_info::m_section): ...this.
|
||
(general_symbol_info::set_section_index): New member function.
|
||
(general_symbol_info::section_index): Likewise.
|
||
(SYMBOL_SECTION): Delete.
|
||
(MSYMBOL_VALUE_ADDRESS): Make use of section_index and
|
||
set_section_index member functions where appropriate.
|
||
(MSYMBOL_SECTION): Delete.
|
||
(symbol::symbol): Update to initialize 'm_section'.
|
||
* xcoffread.c (read_xcoff_symtab): Make use of set_section_index.
|
||
(process_xcoff_symbol): Likewise.
|
||
|
||
2021-02-10 Andrew Burgess <andrew.burgess@embecosm.com>
|
||
|
||
* breakpoint.c (resolve_sal_pc): Replace SYMBOL_OBJ_SECTION and
|
||
MSYMBOL_OBJ_SECTION.
|
||
* findvar.c (language_defn::read_var_value): Likewise.
|
||
* infcmd.c (jump_command): Likewise.
|
||
* linespec.c (minsym_found): Likewise.
|
||
* maint.c (maintenance_translate_address): Likewise.
|
||
* minsyms.c (lookup_minimal_symbol_by_pc_section): Likewise.
|
||
(minimal_symbol_upper_bound): Likewise.
|
||
* parse.c (find_minsym_type_and_address): Likewise.
|
||
(operator_check_standard): Likewise.
|
||
* printcmd.c (info_address_command): Likewise.
|
||
* symmisc.c (dump_msymbols): Likewise.
|
||
(print_symbol): Likewise.
|
||
* symtab.c (general_symbol_info::obj_section): Define new
|
||
function.
|
||
(fixup_symbol_section): Replace SYMBOL_OBJ_SECTION.
|
||
(find_pc_sect_compunit_symtab): Likewise.
|
||
(find_function_start_sal): Likewise.
|
||
(skip_prologue_sal): Replace SYMBOL_OBJ_SECTION and
|
||
MSYMBOL_OBJ_SECTION.
|
||
* symtab.h (struct general_symbol_info) <obj_section>: Declare new
|
||
function.
|
||
(SYMBOL_OBJ_SECTION): Delete.
|
||
(MSYMBOL_OBJ_SECTION): Delete.
|
||
|
||
2021-02-09 Tom Tromey <tom@tromey.com>
|
||
|
||
* stap-probe.c (stap_parse_argument_conditionally): Fix typo.
|
||
|
||
2021-02-09 Tom de Vries <tdevries@suse.de>
|
||
|
||
PR symtab/27341
|
||
* dwarf2/read.c (read_array_type): Return NULL when not being able to
|
||
construct an array type. Add assert to ensure that element_type is
|
||
not being modified.
|
||
|
||
2021-02-09 Andrew Burgess <andrew.burgess@embecosm.com>
|
||
|
||
* gcore.c (struct gcore_collect_regset_section_cb_data): Delete.
|
||
(gcore_collect_regset_section_cb): Delete.
|
||
(gcore_collect_thread_registers): Delete.
|
||
(gcore_build_thread_register_notes): Delete.
|
||
(gcore_find_signalled_thread): Delete.
|
||
* gcore.h: Remove 'gdbsupport/gdb_signals.h' include and delete
|
||
'gdbarch' and 'thread_info' declarations.
|
||
(gcore_build_thread_register_notes): Delete declaration.
|
||
(gcore_find_signalled_thread): Likewise.
|
||
* fbsd-tdep.c: Remove 'gcore.h' include.
|
||
(struct fbsd_collect_regset_section_cb_data): New struct.
|
||
(fbsd_collect_regset_section_cb): New function.
|
||
(fbsd_collect_thread_registers): New function.
|
||
(struct fbsd_corefile_thread_data): New struct.
|
||
(fbsd_corefile_thread): New function.
|
||
(fbsd_make_corefile_notes): Call FreeBSD specific code.
|
||
* linux-tdep.c: Remove 'gcore.h' include.
|
||
(struct linux_collect_regset_section_cb_data): New struct.
|
||
(linux_collect_regset_section_cb): New function.
|
||
(linux_collect_thread_registers): New function.
|
||
(linux_corefile_thread): Call Linux specific code.
|
||
(find_signalled_thread): New function.
|
||
(linux_make_corefile_notes): Call find_signalled_thread.
|
||
|
||
2021-02-09 Tom Tromey <tromey@adacore.com>
|
||
|
||
* ada-lang.c (coerce_unspec_val_to_type): Avoid making lazy
|
||
not_lval value.
|
||
* value.c (value_contents_copy_raw): Now static.
|
||
* value.h (value_contents_copy_raw): Don't declare.
|
||
|
||
2021-02-09 Tom Tromey <tromey@adacore.com>
|
||
|
||
* gdbtypes.c (resolve_dynamic_struct): Handle structure with no
|
||
fields.
|
||
|
||
2021-02-08 Shahab Vahedi <shahab@synopsys.com>
|
||
|
||
PR tdep/27369
|
||
* arc-linux-tdep.c (handle_atomic_sequence): New.
|
||
(arc_linux_software_single_step): Call handle_atomic_sequence().
|
||
|
||
2021-02-08 Andrew Burgess <andrew.burgess@embecosm.com>
|
||
|
||
* python/py-tui.c (gdbpy_tui_window) <is_valid>: New member
|
||
function.
|
||
(REQUIRE_WINDOW): Call is_valid member function.
|
||
(REQUIRE_WINDOW_FOR_SETTER): New define.
|
||
(gdbpy_tui_is_valid): Call is_valid member function.
|
||
(gdbpy_tui_set_title): Call REQUIRE_WINDOW_FOR_SETTER instead.
|
||
* tui/tui-data.h (struct tui_win_info) <is_visible>: Check
|
||
tui_active too.
|
||
* tui/tui-layout.c (tui_apply_current_layout): Add an assert.
|
||
* tui/tui.c (tui_enable): Move setting of tui_active earlier in
|
||
the function.
|
||
|
||
2021-02-08 Andrew Burgess <andrew.burgess@embecosm.com>
|
||
|
||
* python/py-tui.c (gdbpy_tui_set_title): Check that the new value
|
||
for the title is not nullptr.
|
||
|
||
2021-02-08 Andrew Burgess <andrew.burgess@embecosm.com>
|
||
|
||
* tui-layout.c (saved_tui_windows): Delete.
|
||
(tui_apply_current_layout): Don't make use of saved_tui_windows,
|
||
call new get_windows member function instead.
|
||
(tui_get_window_by_name): Check in tui_windows.
|
||
(tui_layout_window::apply): Don't add to tui_windows.
|
||
* tui-layout.h (tui_layout_base::get_windows): New member function.
|
||
(tui_layout_window::get_windows): Likewise.
|
||
(tui_layout_split::get_windows): Likewise.
|
||
|
||
2021-02-08 Andrew Burgess <andrew.burgess@embecosm.com>
|
||
|
||
* tui/tui-layout.c (tui_apply_current_layout): Restore the delete
|
||
of the window objects.
|
||
|
||
2021-02-08 Andrew Burgess <andrew.burgess@embecosm.com>
|
||
|
||
* python/python.c (gdbpy_print_stack): Reformat an error message.
|
||
|
||
2021-02-08 Andrew Burgess <andrew.burgess@embecosm.com>
|
||
|
||
* tui/tui-interp.c (tui_command_line_handler): New function.
|
||
(tui_interp::resume): Register tui_command_line_handler as the
|
||
input_handler.
|
||
* tui/tui-io.c (tui_inject_newline_into_command_window): New
|
||
function.
|
||
(tui_getc_1): Delete handling of '\n' and '\r'.
|
||
* tui-io.h (tui_inject_newline_into_command_window): Declare.
|
||
|
||
2021-02-07 Hannes Domani <ssbssa@yahoo.de>
|
||
|
||
* tui/tui-regs.c (tui_data_window::display_registers_from):
|
||
Mark invisible register sub windows.
|
||
(tui_data_window::check_register_values): Ignore invisible
|
||
register sub windows.
|
||
|
||
2021-02-07 Hannes Domani <ssbssa@yahoo.de>
|
||
|
||
* tui/tui-regs.c (tui_data_item_window::rerender): Don't call
|
||
n_spaces with a negative value.
|
||
|
||
2021-02-07 Hannes Domani <ssbssa@yahoo.de>
|
||
|
||
* tui/tui-regs.c (tui_data_window::display_registers_from):
|
||
Add refresh_window call.
|
||
|
||
2021-02-07 Hannes Domani <ssbssa@yahoo.de>
|
||
|
||
* python/py-frame.c (frapy_richcompare): Compare frame_id_is_next.
|
||
|
||
2021-02-05 Simon Marchi <simon.marchi@polymtl.ca>
|
||
|
||
* symmisc.c (std_in, std_out, std_err): Remove.
|
||
(_initialize_symmisc): Don't set std_in, std_out and std_err.
|
||
|
||
2021-02-05 Tom de Vries <tdevries@suse.de>
|
||
|
||
PR breakpoints/27330
|
||
* breakpoint.c (create_exception_master_breakpoint): Handle case that
|
||
glibc object file has debug info.
|
||
|
||
2021-02-05 Tom de Vries <tdevries@suse.de>
|
||
|
||
PR symtab/27333
|
||
* dwarf2/read.c (process_psymtab_comp_unit): Handle DW_TAG_type_unit.
|
||
|
||
2021-02-05 Tom de Vries <tdevries@suse.de>
|
||
|
||
PR breakpoints/27313
|
||
* break-catch-syscall.c (catch_syscall_split_args): Reject negative
|
||
syscall numbers.
|
||
|
||
2021-02-05 Tom Tromey <tom@tromey.com>
|
||
|
||
* compile/compile-c-support.c (get_compile_context)
|
||
(c_get_compile_context, cplus_get_compile_context): Change return
|
||
type.
|
||
* language.c (language_defn::get_compile_instance): New method.
|
||
* language.h (language_defn::get_compile_instance): Change return
|
||
type. No longer inline.
|
||
* c-lang.c (c_language::get_compile_instance): Change return type.
|
||
(cplus_language::get_compile_instance): Change return type.
|
||
* c-lang.h (c_get_compile_context, cplus_get_compile_context):
|
||
Change return type.
|
||
* compile/compile.c (compile_to_object): Update.
|
||
|
||
2021-02-05 Tom Tromey <tom@tromey.com>
|
||
|
||
* parser-defs.h (write_exp_symbol_reference): Declare.
|
||
* parse.c (write_exp_symbol_reference): New function.
|
||
* p-exp.y (variable): Use write_exp_symbol_reference.
|
||
* m2-exp.y (variable): Use write_exp_symbol_reference.
|
||
* f-exp.y (variable): Use write_exp_symbol_reference.
|
||
* d-exp.y (PrimaryExpression): Use write_exp_symbol_reference.
|
||
* c-exp.y (variable): Use write_exp_symbol_reference.
|
||
|
||
2021-02-05 Tom de Vries <tdevries@suse.de>
|
||
|
||
PR exp/27265
|
||
* valarith.c (complex_binop): Throw an error if complex type can't
|
||
be created.
|
||
|
||
2021-02-05 Tom de Vries <tdevries@suse.de>
|
||
|
||
PR symtab/27307
|
||
* dwarf2/read.c (create_cus_from_debug_names_list): Add missing
|
||
return.
|
||
|
||
2021-02-05 Tom de Vries <tdevries@suse.de>
|
||
|
||
* dwarf2/read.c (create_cus_from_debug_names_list): Fix indentation.
|
||
|
||
2021-02-04 Mike Frysinger <vapier@gentoo.org>
|
||
|
||
* configure.tgt (riscv*-*-*): Set gdb_sim.
|
||
|
||
2021-02-04 Simon Marchi <simon.marchi@polymtl.ca>
|
||
|
||
* target.c (target_is_non_stop_p): Return bool.
|
||
* target.h (target_is_non_stop_p): Return bool.
|
||
|
||
2021-02-04 Simon Marchi <simon.marchi@efficios.com>
|
||
|
||
* record-full.c (record_full_async_inferior_event_handler):
|
||
Don't clear async event handler.
|
||
(record_full_base_target::wait): Clear async event handler at
|
||
beginning.
|
||
|
||
2021-02-04 Simon Marchi <simon.marchi@efficios.com>
|
||
|
||
* record-btrace.c (record_btrace_handle_async_inferior_event):
|
||
Don't clear async event handler.
|
||
(record_btrace_target::wait): Clear async event handler at
|
||
beginning.
|
||
|
||
2021-02-04 Simon Marchi <simon.marchi@efficios.com>
|
||
|
||
* remote.c (remote_target::wait): Clear async event handler at
|
||
beginning, mark if needed at the end.
|
||
(remote_async_inferior_event_handler): Don't set or clear async
|
||
event handler.
|
||
|
||
2021-02-04 Simon Marchi <simon.marchi@efficios.com>
|
||
|
||
* async-event.h (async_event_handler_func): Add documentation.
|
||
* async-event.c (check_async_event_handlers): Don't clear
|
||
async_event_handler ready flag.
|
||
* infrun.c (infrun_async_inferior_event_handler): Clear ready
|
||
flag.
|
||
* record-btrace.c (record_btrace_handle_async_inferior_event):
|
||
Likewise.
|
||
* record-full.c (record_full_async_inferior_event_handler):
|
||
Likewise.
|
||
* remote-notif.c (remote_async_get_pending_events_handler):
|
||
Likewise.
|
||
* remote.c (remote_async_inferior_event_handler): Likewise.
|
||
|
||
2021-02-03 Simon Marchi <simon.marchi@polymtl.ca>
|
||
|
||
* infrun.c (handle_inferior_event): Move stop_soon variable to
|
||
inner scope.
|
||
|
||
2021-02-03 Pedro Alves <pedro@palves.net>
|
||
|
||
* infcmd.c (detach_command): Hold strong reference to target, and
|
||
if all-stop on entry, restart threads on exit.
|
||
* infrun.c (switch_back_to_stepped_thread): Factor out bits to ...
|
||
(restart_stepped_thread): ... this new function. Also handle
|
||
trap_expected.
|
||
(restart_after_all_stop_detach): New function.
|
||
* infrun.h (restart_after_all_stop_detach): Declare.
|
||
|
||
2021-02-03 Pedro Alves <pedro@palves.net>
|
||
|
||
* infrun.c (struct step_over_info): Initialize fields.
|
||
(prepare_for_detach): Handle ongoing in-line step over.
|
||
|
||
2021-02-03 Pedro Alves <pedro@palves.net>
|
||
|
||
* linux-nat.c (linux_nat_target::detach): Remove breakpoints
|
||
here...
|
||
* remote.c (remote_target::remote_detach_1): ... and here ...
|
||
* target.c (target_detach): ... instead of here.
|
||
* target.h (target_ops::detach): Add comment.
|
||
|
||
2021-02-03 Pedro Alves <pedro@palves.net>
|
||
|
||
* infrun.c (struct wait_one_event): Move higher up.
|
||
(prepare_for_detach): Abort in-progress displaced steps instead of
|
||
letting them complete.
|
||
(handle_one): If the inferior is detaching, don't add the thread
|
||
back to the global step-over chain.
|
||
(restart_threads): Don't restart threads if detaching.
|
||
(handle_signal_stop): Remove inferior::detaching reference.
|
||
|
||
2021-02-03 Pedro Alves <pedro@palves.net>
|
||
|
||
* infrun.c (prepare_for_detach): Don't release scoped_restore
|
||
before returning.
|
||
|
||
2021-02-03 Pedro Alves <pedro@palves.net>
|
||
|
||
* infrun.c (handle_one): New function, factored out from ...
|
||
(stop_all_threads): ... here.
|
||
|
||
2021-02-03 Pedro Alves <pedro@palves.net>
|
||
|
||
* remote.c (remote_notif_stop_ack): Don't error out on
|
||
TARGET_WAITKIND_IGNORE; instead, just ignore the notification.
|
||
(remote_target::discard_pending_stop_replies): Don't delete
|
||
in-flight notification; instead, clear its contents.
|
||
|
||
2021-02-03 Pedro Alves <pedro@palves.net>
|
||
|
||
* remote.c (extended_remote_target::attach): Set target async in
|
||
the target-non-stop path too.
|
||
|
||
2021-02-03 Pedro Alves <pedro@palves.net>
|
||
|
||
PR gdb/27055
|
||
* infrun.c (handle_signal_stop): Move main context_switch call
|
||
earlier, before STOP_QUIETLY_NO_SIGSTOP.
|
||
|
||
2021-02-02 Lancelot SIX <lsix@lancelotsix.com>
|
||
|
||
* NEWS (Changed commands): Add entry for the behavior change of
|
||
the inferior command.
|
||
* inferior.c (inferior_command): When no argument is given to the
|
||
inferior command, display info about the currently selected
|
||
inferior.
|
||
|
||
2021-02-02 Simon Marchi <simon.marchi@efficios.com>
|
||
|
||
* dwarf2/read.c (read_loclist_index, read_rnglist_index): Return
|
||
a sect_offset.
|
||
(read_attribute_reprocess): Adjust.
|
||
|
||
2021-02-02 Simon Marchi <simon.marchi@efficios.com>
|
||
|
||
* dwarf2/die.h (struct die_info) <ranges_base>: Split in...
|
||
<gnu_ranges_base>: ... this...
|
||
<rnglists_base>: ... and this.
|
||
* dwarf2/read.c (struct dwarf2_cu) <ranges_base>: Split in...
|
||
<gnu_ranges_base>: ... this...
|
||
<rnglists_base>: ... and this.
|
||
(read_cutu_die_from_dwo): Adjust
|
||
(dwarf2_get_pc_bounds): Adjust
|
||
(dwarf2_record_block_ranges): Adjust.
|
||
(read_full_die_1): Adjust
|
||
(partial_die_info::read): Adjust.
|
||
(read_rnglist_index): Adjust.
|
||
|
||
2021-02-02 Simon Marchi <simon.marchi@efficios.com>
|
||
|
||
PR gdb/26813
|
||
* dwarf2/read.c (read_loclists_rnglists_header): Add
|
||
header_offset parameter and use it.
|
||
(read_loclist_index): Read header of the current contribution,
|
||
not the one at the beginning of the section.
|
||
(read_rnglist_index): Likewise.
|
||
|
||
2021-02-02 Simon Marchi <simon.marchi@efficios.com>
|
||
|
||
PR gdb/26813
|
||
* dwarf2/attribute.h (struct attribute) <set_unsigned>: Clear
|
||
requires_reprocessing flag.
|
||
* dwarf2/attribute.c (attribute::form_is_unsigned): Handle
|
||
DW_FORM_loclistx.
|
||
(attribute::form_requires_reprocessing): Handle DW_FORM_rnglistx
|
||
and DW_FORM_loclistx.
|
||
* dwarf2/read.c (read_attribute_reprocess): Use set_unsigned
|
||
instead of set_address for DW_FORM_loclistx and
|
||
DW_FORM_rnglistx.
|
||
|
||
2021-02-02 Simon Marchi <simon.marchi@efficios.com>
|
||
|
||
* dwarf2/read.c (read_loclist_index): Remove bound check for
|
||
start of offset.
|
||
(read_rnglist_index): Likewise.
|
||
|
||
2021-02-02 Simon Marchi <simon.marchi@efficios.com>
|
||
|
||
* dwarf2/read.c (read_loclist_index): Add bound check for the end
|
||
of the offset.
|
||
|
||
2021-02-02 Simon Marchi <simon.marchi@efficios.com>
|
||
|
||
* dwarf2/read.c (read_rnglist_index): Fix bound check.
|
||
|
||
2021-02-02 Simon Marchi <simon.marchi@efficios.com>
|
||
|
||
* dwarf2/read.c (read_loclist_index): Change complaints into
|
||
errors.
|
||
|
||
2021-02-02 Tom de Vries <tdevries@suse.de>
|
||
|
||
PR symtab/24620
|
||
* dwarf2/index-write.c (write_one_signatured_type): Skip if
|
||
psymtab == nullptr.
|
||
|
||
2021-02-01 Andrew Burgess <andrew.burgess@embecosm.com>
|
||
|
||
* Makefile.in (HFILES_NO_SRCDIR): Add corefile.h.
|
||
* gcore.c (struct gcore_collect_regset_section_cb_data): Moved
|
||
here from linux-tdep.c and given a new name. Minor cleanups.
|
||
(gcore_collect_regset_section_cb): Likewise.
|
||
(gcore_collect_thread_registers): Likewise.
|
||
(gcore_build_thread_register_notes): Likewise.
|
||
(gcore_find_signalled_thread): Likewise.
|
||
* gcore.h (gcore_build_thread_register_notes): Declare.
|
||
(gcore_find_signalled_thread): Declare.
|
||
* fbsd-tdep.c: Add 'gcore.h' include.
|
||
(struct fbsd_collect_regset_section_cb_data): Delete.
|
||
(fbsd_collect_regset_section_cb): Delete.
|
||
(fbsd_collect_thread_registers): Delete.
|
||
(struct fbsd_corefile_thread_data): Delete.
|
||
(fbsd_corefile_thread): Delete.
|
||
(fbsd_make_corefile_notes): Call
|
||
gcore_build_thread_register_notes instead of the now deleted
|
||
FreeBSD code.
|
||
* linux-tdep.c: Add 'gcore.h' include.
|
||
(struct linux_collect_regset_section_cb_data): Delete.
|
||
(linux_collect_regset_section_cb): Delete.
|
||
(linux_collect_thread_registers): Delete.
|
||
(linux_corefile_thread): Call
|
||
gcore_build_thread_register_notes.
|
||
(find_signalled_thread): Delete.
|
||
(linux_make_corefile_notes): Call gcore_find_signalled_thread.
|
||
|
||
2021-01-29 Tom de Vries <tdevries@suse.de>
|
||
|
||
PR breakpoints/26063
|
||
* infrun.c (process_event_stop_test): Reset
|
||
ecs->event_thread->current_line to 0 if is-stmt=n and frame has
|
||
changed.
|
||
|
||
2021-01-28 Andrew Burgess <andrew.burgess@embecosm.com>
|
||
|
||
* thread.c (thr_try_catch_cmd): Replace swith_to_thread with an
|
||
assert. Extend the header comment.
|
||
|
||
2021-01-28 Andrew Burgess <andrew.burgess@embecosm.com>
|
||
|
||
* Makefile.in (SUBDIR_TUI_SRCS): Add tui/tui-location.c.
|
||
(HFILES_NO_SRCDIR): Add tui/tui-location.h.
|
||
* tui/tui-data.h (TUI_STATUS_WIN): Define.
|
||
(tui_locator_win_info_ptr): Delete declaration.
|
||
* tui/tui-disasm.c: Add 'tui/tui-location.h' include.
|
||
(tui_disasm_window::set_contents): Fetch state from tui_location
|
||
global.
|
||
(tui_get_begin_asm_address): Likewise.
|
||
* tui/tui-layout.c (tui_apply_current_layout): Remove special case
|
||
for locator window.
|
||
(get_locator_window): Delete.
|
||
(initialize_known_windows): Treat locator window just like all the
|
||
rest.
|
||
* tui/tui-source.c: Add 'tui/tui-location.h' include.
|
||
(tui_source_window::set_contents): Fetch state from tui_location
|
||
global.
|
||
(tui_source_window::showing_source_p): Likewise.
|
||
* tui/tui-stack.c: Add 'tui/tui-location.h' include.
|
||
(_locator): Delete.
|
||
(tui_locator_win_info_ptr): Delete.
|
||
(tui_locator_window::make_status_line): Fetch state from
|
||
tui_location global.
|
||
(tui_locator_window::rerender): Remove check of 'handle',
|
||
reindent function body.
|
||
(tui_locator_window::set_locator_fullname): Delete.
|
||
(tui_locator_window::set_locator_info): Delete.
|
||
(tui_update_locator_fullname): Delete.
|
||
(tui_show_frame_info): Likewise.
|
||
(tui_show_locator_content): Access window through TUI_STATUS_WIN.
|
||
* tui/tui-stack.h (tui_locator_window::set_locator_info): Moved to
|
||
tui/tui-location.h and renamed to
|
||
tui_location_tracker::set_location.
|
||
(tui_locator_window::set_locator_fullname): Moved to
|
||
tui/tui-location.h and renamed to
|
||
tui_location_tracker::set_fullname.
|
||
(tui_locator_window::full_name): Delete.
|
||
(tui_locator_window::proc_name): Delete.
|
||
(tui_locator_window::line_no): Delete.
|
||
(tui_locator_window::addr): Delete.
|
||
(tui_locator_window::gdbarch): Delete.
|
||
(tui_update_locator_fullname): Delete declaration.
|
||
* tui/tui-wingeneral.c (tui_refresh_all): Removed special handling
|
||
for locator window.
|
||
* tui/tui-winsource.c: Add 'tui/tui-location.h' include.
|
||
(tui_display_main): Call function on tui_location directly.
|
||
* tui/tui.h (enum tui_win_type): Add STATUS_WIN.
|
||
* tui/tui-location.c: New file.
|
||
* tui/tui-location.h: New file.
|
||
|
||
2021-01-28 Simon Marchi <simon.marchi@polymtl.ca>
|
||
|
||
* gdbtypes.h (get_type_arch): Rename to...
|
||
(struct type) <arch>: ... this, update all users.
|
||
|
||
2021-01-28 Simon Marchi <simon.marchi@polymtl.ca>
|
||
|
||
* gdbtypes.h (struct type) <arch>: Rename to...
|
||
<arch_owner>: ... this, update all users.
|
||
<objfile>: Rename to...
|
||
<objfile_owner>: ... this, update all users.
|
||
|
||
2021-01-28 Andrew Burgess <andrew.burgess@embecosm.com>
|
||
|
||
* gdbcmd.h (execute_command_to_string): Update comment.
|
||
* top.c (execute_command_to_string): Update header comment.
|
||
|
||
2021-01-28 Tom de Vries <tdevries@suse.de>
|
||
|
||
PR breakpoints/27205
|
||
* breakpoint.c (create_longjmp_master_breakpoint_probe)
|
||
(create_longjmp_master_breakpoint_names): New function, factored out
|
||
of ...
|
||
(create_longjmp_master_breakpoint): ... here. Only try to install
|
||
longjmp_names breakpoints in libc.so/libc.so.debug if installing probe
|
||
breakpoint in libc.so failed.
|
||
|
||
2021-01-27 Lancelot SIX <lsix@lancelotsix.com>
|
||
|
||
PR gdb/27133
|
||
* cli/cli-interp.c (cli_interp_base::set_logging): Ensure the
|
||
unique_ptr is released when the wrapped pointer is kept for later
|
||
use.
|
||
|
||
2021-01-27 Matthew Malcomson <matthew.malcomson@arm.com>
|
||
|
||
* aarch64-tdep.c (aarch64_displaced_step_others): Account for
|
||
BLR and BR instructions.
|
||
* arch/aarch64-insn.h (enum aarch64_opcodes): Add BR opcode.
|
||
(enum aarch64_masks): New.
|
||
|
||
2021-01-26 Tom Tromey <tromey@adacore.com>
|
||
|
||
* windows-nat.c (DEBUG_EXEC, DEBUG_EVENTS, DEBUG_MEM)
|
||
(DEBUG_EXCEPT): Use debug_prefixed_printf_cond.
|
||
(windows_init_thread_list, windows_nat::handle_load_dll)
|
||
(windows_nat::handle_unload_dll, windows_nat_target::resume)
|
||
(windows_nat_target::resume)
|
||
(windows_nat_target::get_windows_debug_event)
|
||
(windows_nat_target::interrupt, windows_xfer_memory)
|
||
(windows_nat_target::close): Update.
|
||
* nat/windows-nat.c (DEBUG_EVENTS): Use
|
||
debug_prefixed_printf_cond.
|
||
(matching_pending_stop, fetch_pending_stop)
|
||
(continue_last_debug_event): Update.
|
||
|
||
2020-12-17 Mihails Strasuns <mihails.strasuns@intel.com>
|
||
|
||
* linux-tdep.c (linux_make_mappings_corefile_notes): Start using
|
||
elfcore_write_file_note.
|
||
|
||
2021-01-26 Shahab Vahedi <shahab@synopsys.com>
|
||
|
||
* arc-tdep.c (arc_add_reggroups): New function.
|
||
(arc_gdbarch_init): Call arc_add_reggroups.
|
||
|
||
2021-01-26 Anton Kolesov <anton.kolesov@synopsys.com>
|
||
|
||
* arc-tdep.c (arc_skip_prologue): Log "pc" address.
|
||
|
||
2021-01-25 Bernd Edlinger <bernd.edlinger@hotmail.de>
|
||
Simon Marchi <simon.marchi@polymtl.ca>
|
||
Tom de Vries <tdevries@suse.de>
|
||
|
||
* dwarf2/read.c (partial_die_info::read): Use as_unsigned () for
|
||
DW_AT_ranges.
|
||
|
||
2021-01-25 Tom Tromey <tromey@adacore.com>
|
||
|
||
* dwarf2/read.c (get_mpz): New function.
|
||
(get_dwarf2_rational_constant): Use it.
|
||
|
||
2021-01-25 Tom Tromey <tromey@adacore.com>
|
||
|
||
* ada-lang.c (resolve_subexp): Handle array context.
|
||
|
||
2021-01-23 Tom Tromey <tom@tromey.com>
|
||
|
||
PR compile/25575
|
||
* compile/compile-loc2c.c (note_register): New function.
|
||
(pushf_register_address, pushf_register): Use it.
|
||
|
||
2021-01-23 Tom Tromey <tom@tromey.com>
|
||
|
||
* symtab.h (struct symbol_computed_ops) <generate_c_location>:
|
||
Change type of "registers_used".
|
||
* dwarf2/loc.h (dwarf2_compile_property_to_c): Update.
|
||
* dwarf2/loc.c (dwarf2_compile_property_to_c)
|
||
(locexpr_generate_c_location, loclist_generate_c_location): Change
|
||
type of "registers_used".
|
||
* compile/compile.h (compile_dwarf_expr_to_c)
|
||
(compile_dwarf_bounds_to_c): Update.
|
||
* compile/compile-loc2c.c (pushf_register_address)
|
||
(pushf_register, do_compile_dwarf_expr_to_c)
|
||
(compile_dwarf_expr_to_c, compile_dwarf_bounds_to_c): Change type
|
||
of "registers_used".
|
||
* compile/compile-c.h (generate_c_for_variable_locations):
|
||
Update.
|
||
* compile/compile-c-symbols.c (generate_vla_size)
|
||
(generate_c_for_for_one_variable): Change type of
|
||
"registers_used".
|
||
(generate_c_for_variable_locations): Return std::vector.
|
||
* compile/compile-c-support.c (generate_register_struct): Change
|
||
type of "registers_used".
|
||
(compute): Update.
|
||
|
||
2021-01-23 Tom Tromey <tom@tromey.com>
|
||
|
||
* compile/compile-internal.h (class compile_instance)
|
||
<set_arguments>: Change return type.
|
||
* compile/compile.c (compile_to_object): Remove call to reset.
|
||
(compile_instance::set_arguments): Change return type.
|
||
|
||
2021-01-23 Simon Marchi <simon.marchi@polymtl.ca>
|
||
|
||
* gdbtypes.c (copy_type_recursive): Use get_type_arch.
|
||
* gdbtypes.h (struct type) <set_owner>: Add asserts.
|
||
|
||
2021-01-23 Lancelot SIX <lsix@lancelotsix.com>
|
||
|
||
* Makefile.in (SELFTESTS_SRCS): Add
|
||
unittests/gdb_tilde_expand-selftests.c.
|
||
* unittests/gdb_tilde_expand-selftests.c: New file.
|
||
|
||
2021-01-22 Andrew Burgess <andrew.burgess@embecosm.com>
|
||
|
||
PR cli/25956
|
||
* NEWS: Mention new command.
|
||
* cli/cli-style.c: Add 'cli/cli-setshow.h' include.
|
||
(version_style): Define.
|
||
(cli_style_option::cli_style_option): Add intensity parameter, and
|
||
use as appropriate.
|
||
(_initialize_cli_style): Register version style set/show commands.
|
||
* cli/cli-style.h (cli_style_option): Add intensity parameter.
|
||
(version_style): Declare.
|
||
* top.c (print_gdb_version): Use version_stype, and styled_string
|
||
to print the GDB version string.
|
||
|
||
2021-01-22 Andrew Burgess <andrew.burgess@embecosm.com>
|
||
|
||
* utils.c (emit_style_escape): Only emit an escape sequence if the
|
||
requested style is different than the current applied style.
|
||
(fputs_maybe_filtered): Adjust the juggling of the wrap_style, and
|
||
current applied_style.
|
||
(fputs_styled): Remove is_default check.
|
||
(fputs_styled_unfiltered): Likewise.
|
||
(vfprintf_styled_no_gdbfmt): Likewise.
|
||
|
||
2021-01-22 Simon Marchi <simon.marchi@polymtl.ca>
|
||
|
||
* remote.h (remote_debug_printf): New.
|
||
(remote_debug_printf_nofunc): New.
|
||
(REMOTE_SCOPED_DEBUG_ENTER_EXIT): New.
|
||
* remote.c: Use above macros throughout file.
|
||
|
||
2021-01-22 Simon Marchi <simon.marchi@polymtl.ca>
|
||
|
||
* remote.h (remote_debug): Change to bool.
|
||
* remote.c (remote_debug): Change to bool.
|
||
(_initialize_remote): Adjust.
|
||
|
||
2021-01-22 Simon Marchi <simon.marchi@polymtl.ca>
|
||
|
||
* target.h (remote_debug): Move to...
|
||
* remote.h (remote_debug): ... here.
|
||
* top.c (remote_debug): Move to...
|
||
* remote.c (remote_debug): ... here.
|
||
* remote-sim.c: Include remote.h.
|
||
|
||
2021-01-22 Simon Marchi <simon.marchi@polymtl.ca>
|
||
|
||
* cli/cli-cmds.c (show_remote_debug): Remove.
|
||
(show_remote_timeout): Remove.
|
||
(_initialize_cli_cmds): Don't register commands.
|
||
* remote.c (show_remote_debug): Move here.
|
||
(show_remote_timeout): Move here.
|
||
(_initialize_remote): Register commands.
|
||
|
||
2021-01-22 Simon Marchi <simon.marchi@polymtl.ca>
|
||
|
||
* gdbtypes.h (TYPE_OBJFILE): Remove, change all users to use the
|
||
type::objfile method instead.
|
||
|
||
2021-01-22 Simon Marchi <simon.marchi@polymtl.ca>
|
||
|
||
* gdbtypes.h (TYPE_OBJFILE_OWNED): Remove, update all users to
|
||
use the type::is_objfile_owned method.
|
||
|
||
2021-01-22 Simon Marchi <simon.marchi@efficios.com>
|
||
|
||
* gdbtypes.h (TYPE_OBJFILE_OWNED): Adjust.
|
||
(TYPE_OWNER): Remove.
|
||
(TYPE_OBJFILE): Adjust.
|
||
(struct main_type) <flag_objfile_owned>: Rename to...
|
||
<m_flag_objfile_owned>: ... this.
|
||
<owner>: Rename to...
|
||
<m_owner>: ... this.
|
||
(struct type) <is_objfile_owned, set_owner, objfile, arch>: New
|
||
methods.
|
||
(TYPE_ALLOC): Adjust.
|
||
* gdbtypes.c (alloc_type): Adjust.
|
||
(alloc_type_arch): Adjust.
|
||
(alloc_type_copy): Adjust.
|
||
(get_type_arch): Adjust.
|
||
(smash_type): Adjust.
|
||
(lookup_array_range_type): Adjust.
|
||
(recursive_dump_type): Adjust.
|
||
(copy_type_recursive): Adjust.
|
||
* compile/compile-c-types.c (convert_func): Adjust.
|
||
(convert_type_basic): Adjust.
|
||
* compile/compile-cplus-types.c (compile_cplus_convert_func):
|
||
Adjust.
|
||
* language.c
|
||
(language_arch_info::type_and_symbol::alloc_type_symbol):
|
||
Adjust.
|
||
|
||
2021-01-21 Luis Machado <luis.machado@linaro.org>
|
||
|
||
* coffread.c (enter_linenos): Passing string to complaint.
|
||
* valops.c (value_assign): Make array view.
|
||
|
||
2021-01-21 Simon Marchi <simon.marchi@polymtl.ca>
|
||
|
||
* auto-load.h (debug_auto_load): Move here.
|
||
(auto_load_debug_printf): New.
|
||
* auto-load.c: Use auto_load_debug_printf.
|
||
(debug_auto_load): Move to header.
|
||
* linux-thread-db.c (try_thread_db_load): Use
|
||
auto_load_debug_printf.
|
||
* main.c (captured_main_1): Likewise.
|
||
|
||
2021-01-21 Simon Marchi <simon.marchi@polymtl.ca>
|
||
|
||
* f-valprint.c (f77_array_offset_tbl): Remove.
|
||
|
||
2021-01-21 Simon Marchi <simon.marchi@polymtl.ca>
|
||
|
||
* gdb_bfd.c (bfd_cache_debug_printf): New, use throughout file.
|
||
|
||
2021-01-21 Simon Marchi <simon.marchi@polymtl.ca>
|
||
|
||
* ser-tcp.c (wait_for_connect): Use interruptible_select instead
|
||
of gdb_select.
|
||
|
||
2021-01-21 Hannes Domani <ssbssa@yahoo.de>
|
||
|
||
PR python/19151
|
||
* python/py-breakpoint.c (bppy_get_location): Handle
|
||
bp_hardware_breakpoint.
|
||
(bppy_init): Likewise.
|
||
(gdbpy_breakpoint_created): Likewise.
|
||
|
||
2021-01-21 Simon Marchi <simon.marchi@polymtl.ca>
|
||
|
||
* arm-tdep.c (arm_debug_printf): Add and use throughout file.
|
||
|
||
2021-01-20 Simon Marchi <simon.marchi@polymtl.ca>
|
||
|
||
* gdb_bfd.c (debug_bfd_cache): Change type to bool.
|
||
(_initialize_gdb_bfd): Adjust.
|
||
|
||
2021-01-20 Simon Marchi <simon.marchi@polymtl.ca>
|
||
|
||
PR gdb/26828
|
||
* dwarf2/read.c (maybe_queue_comp_unit): Add assertion.
|
||
|
||
2021-01-20 Simon Marchi <simon.marchi@polymtl.ca>
|
||
|
||
* dwarf2/read.c (follow_die_offset): Add logging.
|
||
(dwarf2_per_objfile::age_comp_units): Add logging.
|
||
|
||
2021-01-20 Simon Marchi <simon.marchi@polymtl.ca>
|
||
|
||
* aarch64-linux-tdep.c (aarch64_linux_record_tdep): Make static.
|
||
* aarch64-tdep.c (tdesc_aarch64_list, aarch64_prologue_unwind,
|
||
aarch64_stub_unwind, aarch64_normal_base, ): Make static.
|
||
* arm-linux-tdep.c (arm_prologue_unwind): Make static.
|
||
* arm-tdep.c (struct frame_unwind): Make static.
|
||
* auto-load.c (auto_load_safe_path_vec): Make static.
|
||
* csky-tdep.c (csky_stub_unwind): Make static.
|
||
* gdbarch.c (gdbarch_data_registry): Make static.
|
||
* gnu-v2-abi.c (gnu_v2_abi_ops): Make static.
|
||
* i386-netbsd-tdep.c (i386nbsd_mc_reg_offset): Make static.
|
||
* i386-tdep.c (i386_frame_setup_skip_insns,
|
||
i386_tramp_chain_in_reg_insns, i386_tramp_chain_on_stack_insns):
|
||
Make static.
|
||
* infrun.c (observer_mode): Make static.
|
||
* linux-nat.c (sigchld_action): Make static.
|
||
* linux-thread-db.c (thread_db_list): Make static.
|
||
* maint-test-options.c (maintenance_test_options_list):
|
||
* mep-tdep.c (mep_csr_registers): Make static.
|
||
* mi/mi-cmds.c (struct mi_cmd_stats): Remove struct type name.
|
||
(stats): Make static.
|
||
* nat/linux-osdata.c (struct osdata_type): Make static.
|
||
* ppc-netbsd-tdep.c (ppcnbsd_reg_offsets): Make static.
|
||
* progspace.c (last_program_space_num): Make static.
|
||
* python/py-param.c (struct parm_constant): Remove struct type
|
||
name.
|
||
(parm_constants): Make static.
|
||
* python/py-record-btrace.c (btpy_list_methods): Make static.
|
||
* python/py-record.c (recpy_gap_type): Make static.
|
||
* record.c (record_goto_cmdlist): Make static.
|
||
* regcache.c (regcache_descr_handle): Make static.
|
||
* registry.h (DEFINE_REGISTRY): Make definition static.
|
||
* symmisc.c (std_in, std_out, std_err): Make static.
|
||
* top.c (previous_saved_command_line): Make static.
|
||
* tracepoint.c (trace_user, trace_notes, trace_stop_notes): Make
|
||
static.
|
||
* unittests/command-def-selftests.c (nr_duplicates,
|
||
nr_invalid_prefixcmd, lists): Make static.
|
||
* unittests/observable-selftests.c (test_notification): Make
|
||
static.
|
||
* unittests/optional/assignment/1.cc (counter): Make static.
|
||
* unittests/optional/assignment/2.cc (counter): Make static.
|
||
* unittests/optional/assignment/3.cc (counter): Make static.
|
||
* unittests/optional/assignment/4.cc (counter): Make static.
|
||
* unittests/optional/assignment/5.cc (counter): Make static.
|
||
* unittests/optional/assignment/6.cc (counter): Make static.
|
||
|
||
2021-01-20 Joel Sherrill <joel@rtems.org>
|
||
|
||
PR gdb/27219
|
||
* remote.c (struct remote_thread_info) <resume_state>: Rename
|
||
to...
|
||
<get_resume_state>: ... this.
|
||
(remote_target::resume): Adjust.
|
||
(remote_target::commit_resume): Adjust.
|
||
(remote_target::select_thread_for_ambiguous_stop_reply): Adjust.
|
||
|
||
2021-01-20 Sergio Durigan Junior <sergiodj@sergiodj.net>
|
||
Tom Tromey <tom@tromey.com>
|
||
|
||
* stap-probe.c (stap_parse_single_operand): Handle '!'
|
||
operator.
|
||
(stap_parse_argument_conditionally): Likewise.
|
||
Skip spaces after processing open-parenthesis sub-expression.
|
||
(stap_parse_argument_1): Skip spaces after call to
|
||
stap_parse_argument_conditionally.
|
||
Handle case when right-side expression is a parenthesized
|
||
sub-expression.
|
||
Skip spaces after call to stap_parse_argument_1.
|
||
|
||
2021-01-19 Lancelot SIX <lsix@lancelotsix.com>
|
||
|
||
* top.h (switch_thru_all_uis): Use DISABLE_COPY_AND_ASSIGN.
|
||
|
||
2021-01-19 Luis Machado <luis.machado@linaro.org>
|
||
|
||
* trad-frame.h (trad_frame_saved_reg) <set_value_bytes>: Allocate
|
||
memory and save data.
|
||
(trad_frame_set_value, trad_frame_set_realreg, trad_frame_set_addr)
|
||
(trad_frame_set_unknown, trad_frame_set_value_bytes)
|
||
(trad_frame_value_p, trad_frame_addr_p, trad_frame_realreg_p)
|
||
(trad_frame_value_bytes_p): Remove.
|
||
(trad_frame_reset_saved_regs): Adjust documentation.
|
||
* trad-frame.c (trad_frame_alloc_saved_regs): Initialize via a
|
||
constructor and reset the state of the registers.
|
||
(trad_frame_value_p, trad_frame_addr_p, trad_frame_realreg_p)
|
||
(trad_frame_value_bytes_p, trad_frame_set_value)
|
||
(trad_frame_set_realreg, trad_frame_set_addr)
|
||
(trad_frame_set_unknown, trad_frame_set_value_bytes): Remove.
|
||
(trad_frame_set_reg_realreg): Update to call member function.
|
||
(trad_frame_set_reg_addr, trad_frame_set_reg_value_bytes): Likewise.
|
||
(trad_frame_get_prev_register): Likewise.
|
||
|
||
* aarch64-tdep.c (aarch64_analyze_prologue)
|
||
(aarch64_analyze_prologue_test, aarch64_make_prologue_cache_1)
|
||
(aarch64_prologue_prev_register): Update to use member functions.
|
||
* alpha-mdebug-tdep.c (alpha_mdebug_frame_unwind_cache): Likewise.
|
||
* alpha-tdep.c (alpha_heuristic_frame_unwind_cache): Likewise.
|
||
* arc-tdep.c (arc_print_frame_cache, arc_make_frame_cache): Likewise.
|
||
* arm-tdep.c (arm_make_prologue_cache, arm_exidx_fill_cache)
|
||
(arm_make_epilogue_frame_cache): Likewise.
|
||
* avr-tdep.c (avr_frame_unwind_cache)
|
||
(avr_frame_prev_register): Likewise.
|
||
* cris-tdep.c (cris_scan_prologue): Likewise.
|
||
* csky-tdep.c (csky_frame_unwind_cache): Likewise.
|
||
* frv-tdep.c (frv_analyze_prologue): Likewise.
|
||
* hppa-tdep.c (hppa_frame_cache, hppa_fallback_frame_cache): Likewise.
|
||
* lm32-tdep.c (lm32_frame_cache): Likewise.
|
||
* m32r-tdep.c (m32r_frame_unwind_cache): Likewise.
|
||
* m68hc11-tdep.c (m68hc11_frame_unwind_cache): Likewise.
|
||
* mips-tdep.c (set_reg_offset, mips_insn16_frame_cache)
|
||
(mips_micro_frame_cache, mips_insn32_frame_cache): Likewise.
|
||
(reset_saved_regs): Adjust to set realreg.
|
||
* riscv-tdep.c (riscv_scan_prologue, riscv_frame_cache): Adjust to
|
||
call member functions.
|
||
* rs6000-tdep.c (rs6000_frame_cache, rs6000_epilogue_frame_cache)
|
||
* s390-tdep.c (s390_prologue_frame_unwind_cache)
|
||
(s390_backchain_frame_unwind_cache): Likewise.
|
||
* score-tdep.c (score7_analyze_prologue)
|
||
(score3_analyze_prologue, score_make_prologue_cache): Likewise.
|
||
* sparc-netbsd-tdep.c (sparc32nbsd_sigcontext_saved_regs): Likewise.
|
||
* sparc-sol2-tdep.c (sparc32_sol2_sigtramp_frame_cache): Likewise.
|
||
* sparc64-netbsd-tdep.c (sparc64nbsd_sigcontext_saved_regs): Likewise.
|
||
* sparc64-sol2-tdep.c (sparc64_sol2_sigtramp_frame_cache): Likewise.
|
||
* tilegx-tdep.c (tilegx_analyze_prologue)
|
||
(tilegx_frame_cache): Likewise.
|
||
* v850-tdep.c (v850_frame_cache): Likewise.
|
||
* vax-tdep.c (vax_frame_cache): Likewise.
|
||
|
||
2021-01-19 Luis Machado <luis.machado@linaro.org>
|
||
|
||
* frame.h (get_frame_register_bytes): Pass a gdb::array_view instead
|
||
of buffer + length.
|
||
(put_frame_register_bytes): Likewise.
|
||
Adjust documentation.
|
||
(get_frame_memory): Pass a gdb::array_view instead of buffer + length.
|
||
(safe_frame_unwind_memory): Likewise.
|
||
* frame.c (get_frame_register_bytes, put_frame_register_bytes)
|
||
(get_frame_memory, safe_frame_unwind_memory): Adjust to use
|
||
gdb::array_view.
|
||
* amd64-fbsd-tdep.c (amd64fbsd_sigtramp_p): Likewise.
|
||
* amd64-linux-tdep.c (amd64_linux_sigtramp_start): Likewise.
|
||
* amd64-obsd-tdep.c (amd64obsd_sigtramp_p): Likewise.
|
||
* arc-linux-tdep.c (arc_linux_is_sigtramp): Likewise.
|
||
* cris-tdep.c (cris_sigtramp_start, cris_rt_sigtramp_start): Likewise.
|
||
* dwarf2/loc.c (rw_pieced_value): Likewise.
|
||
* hppa-tdep.c (hppa_frame_cache): Likewise.
|
||
* i386-fbsd-tdep.c (i386fbsd_sigtramp_p): Likewise.
|
||
* i386-gnu-tdep.c (i386_gnu_sigtramp_start): Likewise.
|
||
* i386-linux-tdep.c (i386_linux_sigtramp_start)
|
||
(i386_linux_rt_sigtramp_start): Likewise.
|
||
* i386-obsd-tdep.c (i386obsd_sigtramp_p): Likewise.
|
||
* i386-tdep.c (i386_register_to_value): Likewise.
|
||
* i387-tdep.c (i387_register_to_value): Likewise.
|
||
* ia64-tdep.c (ia64_register_to_value): Likewise.
|
||
* m32r-linux-tdep.c (m32r_linux_sigtramp_start)
|
||
(m32r_linux_rt_sigtramp_start): Likewise.
|
||
* m68k-linux-tdep.c (m68k_linux_pc_in_sigtramp): Likewise.
|
||
* m68k-tdep.c (m68k_register_to_value): Likewise.
|
||
* mips-tdep.c (mips_register_to_value)
|
||
(mips_value_to_register): Likewise.
|
||
* ppc-fbsd-tdep.c (ppcfbsd_sigtramp_frame_sniffer)
|
||
(ppcfbsd_sigtramp_frame_cache): Likewise.
|
||
* ppc-obsd-tdep.c (ppcobsd_sigtramp_frame_sniffer)
|
||
(ppcobsd_sigtramp_frame_cache): Likewise.
|
||
* rs6000-tdep.c (rs6000_in_function_epilogue_frame_p)
|
||
(rs6000_register_to_value): Likewise.
|
||
* tilegx-tdep.c (tilegx_analyze_prologue): Likewise.
|
||
* tramp-frame.c (tramp_frame_start): Likewise.
|
||
* valops.c (value_assign): Likewise.
|
||
|
||
2021-01-19 Luis Machado <luis.machado@linaro.org>
|
||
|
||
* aarch64-linux-tdep.c (aarch64_linux_restore_vreg): Pass in an
|
||
array_view.
|
||
* trad-frame.c (trad_frame_set_value_bytes): Use gdb::array_view
|
||
instead of buffer and size.
|
||
(trad_frame_set_reg_value_bytes): Likewise.
|
||
* trad-frame.h (trad_frame_set_reg_value_bytes): Likewise.
|
||
(trad_frame_set_value_bytes): Likewise.
|
||
|
||
2021-01-18 Mike Frysinger <vapier@gentoo.org>
|
||
|
||
* copyright.py (NOT_FSF_LIST): Delete sim/testsuite/sim/bfin/s21.s.
|
||
|
||
2021-01-18 Andrew Burgess <andrew.burgess@embecosm.com>
|
||
|
||
* riscv-fbsd-tdep.c (riscv_fbsd_supply_gregset): Delete.
|
||
(riscv_fbsd_gregset): Use riscv_supply_regset.
|
||
(riscv_fbsd_fpregset): Likewise.
|
||
* riscv-linux-tdep.c (riscv_linux_gregset): Likewise.
|
||
(riscv_linux_fregset): Likewise.
|
||
* riscv-tdep.c (riscv_supply_regset): Define new function.
|
||
* riscv-tdep.h (riscv_supply_regset): Declare new function.
|
||
|
||
2021-01-18 Tom de Vries <tdevries@suse.de>
|
||
|
||
PR tdep/27172
|
||
* nat/amd64-linux-siginfo.c (cpt_si_lower, cpt_si_upper, SEGV_BNDERR):
|
||
New macro.
|
||
(compat_siginfo_from_siginfo): Copy cpt_si_lower and cpt_si_upper
|
||
for SEGV_BNDERR.
|
||
|
||
2021-01-18 Simon Marchi <simon.marchi@polymtl.ca>
|
||
|
||
* remote.c (class remote_target) <remote_hostio_send_command,
|
||
remote_hostio_parse_result>: Constify parameter.
|
||
(remote_hostio_parse_result): Likewise.
|
||
(remote_target::remote_hostio_send_command): Adjust.
|
||
(remote_target::remote_hostio_pread_vFile): Adjust.
|
||
(remote_target::fileio_readlink): Adjust.
|
||
(remote_target::fileio_fstat): Adjust.
|
||
|
||
2021-01-18 Simon Marchi <simon.marchi@polymtl.ca>
|
||
|
||
* remote.c (remote_target::start_remote): Move wait_status to
|
||
narrower scope.
|
||
|
||
2021-01-18 Simon Marchi <simon.marchi@polymtl.ca>
|
||
|
||
* remote.c (class remote_target):
|
||
<add_current_inferior_and_thread>: Constify parameter.
|
||
(stop_reply_extract_thread): Likewise.
|
||
(remote_target::get_current_thread): Likewise.
|
||
(remote_target::add_current_inferior_and_thread): Likewise.
|
||
|
||
2021-01-18 Simon Marchi <simon.marchi@polymtl.ca>
|
||
|
||
* remote.c (class remote_target)
|
||
<remote_unpack_thread_info_response,
|
||
parse_threadlist_response>: Constify parameter and/or return
|
||
value and or local variable.
|
||
(stub_unpack_int): Likewise.
|
||
(unpack_nibble): Likewise.
|
||
(unpack_byte): Likewise.
|
||
(unpack_int): Likewise.
|
||
(unpack_string): Likewise.
|
||
(unpack_threadid): Likewise.
|
||
(remote_target::remote_unpack_thread_info_response): Likewise.
|
||
(remote_target::parse_threadlist_response): Likewise.
|
||
|
||
2021-01-15 Andrew Burgess <andrew.burgess@embecosm.com>
|
||
|
||
* tui/tui.c (tui_is_window_visible): Compare to nullptr, not 0.
|
||
|
||
2021-01-14 Lancelot Six <lsix@lancelotsix.com>
|
||
|
||
* MAINTAINERS (Write After Approval): Add myself.
|
||
|
||
2021-01-14 Bernd Edlinger <bernd.edlinger@hotmail.de>
|
||
|
||
* trad-frame.c (trad_frame_alloc_saved_regs): Avoid compile-error
|
||
because is_trivially_default_constructible was first implemented with
|
||
gcc-5.
|
||
|
||
2021-01-14 Tom de Vries <tdevries@suse.de>
|
||
|
||
PR breakpoints/27151
|
||
* objfiles.h (in_plt_section): Handle .plt.sec.
|
||
|
||
2021-01-13 Andrew Burgess <andrew.burgess@embecosm.com>
|
||
|
||
PR gdb/26819
|
||
* remote.c
|
||
(remote_target::select_thread_for_ambiguous_stop_reply): New
|
||
member function.
|
||
(remote_target::process_stop_reply): Call
|
||
select_thread_for_ambiguous_stop_reply.
|
||
|
||
2021-01-13 Simon Marchi <simon.marchi@efficios.com>
|
||
|
||
* record-btrace.c (class record_btrace_target): Remove.
|
||
(record_btrace_target::commit_resume): Remove.
|
||
* record-full.c (class record_full_target): Remove.
|
||
(record_full_target::commit_resume): Remove.
|
||
|
||
2021-01-13 Simon Marchi <simon.marchi@efficios.com>
|
||
|
||
* remote.c (enum class resume_state): New.
|
||
(struct resumed_pending_vcont_info): New.
|
||
(struct remote_thread_info) <resume_state, set_not_resumed,
|
||
set_resumed_pending_vcont, resumed_pending_vcont_info,
|
||
set_resumed, m_resume_state, m_resumed_pending_vcont_info>:
|
||
New.
|
||
<last_resume_step, last_resume_sig, vcont_resumed>: Remove.
|
||
(remote_target::remote_add_thread): Adjust.
|
||
(remote_target::process_initial_stop_replies): Adjust.
|
||
(remote_target::resume): Adjust.
|
||
(remote_target::commit_resume): Rely on state in
|
||
remote_thread_info and not on tp->executing.
|
||
(remote_target::process_stop_reply): Adjust.
|
||
|
||
2021-01-13 Simon Marchi <simon.marchi@polymtl.ca>
|
||
|
||
* arc-tdep.h (arc_debug_printf): New.
|
||
* arc-tdep.c: Use arc_debug_printf.
|
||
* arc-linux-nat.c (arc_linux_nat_debug_printf): Add and use.
|
||
* arc-linux-tdep.c (arc_linux_debug_printf): Add and use.
|
||
* arc-newlib-tdep.c (arc_newlib_debug_printf): Add and use.
|
||
|
||
2021-01-13 Simon Marchi <simon.marchi@polymtl.ca>
|
||
|
||
* arc-tdep.h (arc_debug): Change type to bool.
|
||
* arc-tdep.c (arc_debug): Change type to bool.
|
||
(arc_analyze_prologue): Adjust.
|
||
(_initialize_arc_tdep): Use add_setshow_boolean_cmd.
|
||
* arc-linux-nat.c (ps_get_thread_area): Adjust.
|
||
|
||
2021-01-13 Simon Marchi <simon.marchi@polymtl.ca>
|
||
|
||
* auto-load.c (auto_load_objfile_script_1): Use bool.
|
||
(execute_script_contents): Use bool.
|
||
|
||
2021-01-13 Simon Marchi <simon.marchi@polymtl.ca>
|
||
|
||
* auto-load.h (auto_load_gdb_scripts_enabled): Return bool, move
|
||
comment here.
|
||
* auto-load.c (auto_load_gdb_scripts_enabled): Return bool, move
|
||
comment to header.
|
||
* extension-priv.h (struct extension_language_script_ops)
|
||
<auto_load_enabled>: Return bool.
|
||
* extension.h (ext_lang_auto_load_enabled): Return bool, move
|
||
comment here.
|
||
* extension.c (ext_lang_auto_load_enabled): Return bool, move
|
||
comment to header.
|
||
* guile/guile-header.h (gdbscm_auto_load_enabled): Return bool,
|
||
move comment here.
|
||
* guile/scm-auto-load.c (gdbscm_auto_load_enabled): Return bool,
|
||
move comment to header.
|
||
* python/python-header.h (gdbpy_auto_load_enabled): Return bool,
|
||
move comment here.
|
||
* python/py-auto-load.c (gdbpy_auto_load_enabled): Return bool,
|
||
move comment to header.
|
||
|
||
2021-01-13 Simon Marchi <simon.marchi@polymtl.ca>
|
||
|
||
* auto-load.h (file_is_auto_load_safe): Change return type to
|
||
bool, move comment here.
|
||
* auto-load.c (file_is_auto_load_safe): Change return type and
|
||
advice_printed to bool. Move comment to header.
|
||
|
||
2021-01-13 Simon Marchi <simon.marchi@polymtl.ca>
|
||
|
||
* jit.c (jit_debug_printf): New, use throughout file.
|
||
|
||
2021-01-12 Simon Marchi <simon.marchi@polymtl.ca>
|
||
|
||
* infrun.c (normal_stop): Fix indentation.
|
||
|
||
2021-01-12 Simon Marchi <simon.marchi@polymtl.ca>
|
||
|
||
* top.h (readnow_symbol_files, readnever_symbol_files): Move
|
||
declarations to ...
|
||
* symfile.h: ... here.
|
||
* symfile.c: Update doc.
|
||
|
||
2021-01-12 Simon Marchi <simon.marchi@polymtl.ca>
|
||
|
||
* target.h (baud_rate, serial_parity): Move declarations...
|
||
* serial.h: ... here.
|
||
* main.c: Include serial.h.
|
||
* serial.c (baud_rate, serial_parity): Update doc.
|
||
|
||
2021-01-12 Simon Marchi <simon.marchi@polymtl.ca>
|
||
|
||
* top.c (pre_init_ui_hook): Remove.
|
||
|
||
2021-01-12 Srinath Parvathaneni <srinath.parvathaneni@arm.com>
|
||
|
||
* aarch64-tdep.c (aarch64_vnh_type): Add "bf" field in h registers.
|
||
(aarch64_vnv_type): Add "bf" type in h field of v registers.
|
||
* features/aarch64-fpu.c (create_feature_aarch64_fpu): Regenerated.
|
||
* features/aarch64-fpu.xml: Add bfloat16 type.
|
||
|
||
2021-01-12 Andrew Burgess <andrew.burgess@embecosm.com>
|
||
|
||
* expprint.c (dump_subexp_body_standard): Handle OP_BOOL.
|
||
|
||
2021-01-12 Andrew Burgess <andrew.burgess@embecosm.com>
|
||
|
||
* f-exp.y (dot_ops): Rename to...
|
||
(fortran_operators): ...this. Add a header comment. Add symbol
|
||
based operators.
|
||
(yylex): Update to use fortran_operators not dot_ops. Remove
|
||
special handling for '**', this is now included in
|
||
fortran_operators.
|
||
|
||
2021-01-11 Simon Marchi <simon.marchi@polymtl.ca>
|
||
|
||
* arch/aarch64-insn.h (aarch64_debug_printf): New.
|
||
* arch/aarch64-insn.c: Use aarch64_debug_printf.
|
||
* aarch64-tdep.c: Use aarch64_debug_printf.
|
||
|
||
2021-01-11 Simon Marchi <simon.marchi@polymtl.ca>
|
||
|
||
* solib-aix.c (solib_aix_debug_printf): New, use throughout
|
||
file.
|
||
|
||
2021-01-11 Simon Marchi <simon.marchi@polymtl.ca>
|
||
|
||
* jit.c (jit_debug): Change type to bool.
|
||
(_initialize_jit): Adjust.
|
||
|
||
2021-01-09 Tom Tromey <tom@tromey.com>
|
||
|
||
PR compile/23672
|
||
* compile/compile.c (compile_to_object): Avoid crash when
|
||
osabi_triplet_regexp returns NULL.
|
||
|
||
2021-01-09 Tom Tromey <tom@tromey.com>
|
||
|
||
* tracepoint.h (class collection_list) <append_exp>: Take a
|
||
std::string.
|
||
* tracepoint.c (collection_list::append_exp): Take a std::string.
|
||
(encode_actions_1): Update.
|
||
|
||
2021-01-08 Tom Tromey <tromey@adacore.com>
|
||
|
||
* parse.c (parse_expression): Add void_context_p parameter. Use
|
||
parse_exp_in_context.
|
||
* printcmd.c (print_command_1): Change voidprint to bool. Pass to
|
||
parse_expression.
|
||
(print_command, call_command): Update.
|
||
* expression.h (parse_expression): Add void_context_p parameter.
|
||
|
||
2021-01-08 Andrew Burgess <andrew.burgess@embecosm.com>
|
||
|
||
* value.c (set_value_component_location): Adjust the VALUE_LVAL
|
||
for internalvar components that have a dynamic location.
|
||
|
||
2021-01-08 Tom de Vries <tdevries@suse.de>
|
||
|
||
PR gdb/26881
|
||
* breakpoint.c (create_exception_master_breakpoint_probe)
|
||
(create_exception_master_breakpoint_hook): Factor out
|
||
of ...
|
||
(create_exception_master_breakpoint): ... here. Only try to install
|
||
the master exception breakpoint in objfile.debug using the
|
||
_Unwind_DebugHook method, if the install using probes in objfile
|
||
failed.
|
||
|
||
2021-01-08 Andrew Burgess <andrew.burgess@embecosm.com>
|
||
|
||
* f-lang.c (fortran_value_subarray): Call value_from_component.
|
||
|
||
2021-01-07 Mike Frysinger <vapier@gentoo.org>
|
||
|
||
* remote-sim.c: Include memory-map.h.
|
||
(gdbsim_target): Define memory_map override.
|
||
(gdbsim_target::memory_map): Define.
|
||
|
||
2021-01-07 Tom Tromey <tromey@adacore.com>
|
||
|
||
* ada-lang.c (do_full_match): Conditionally skip "_ada_" prefix.
|
||
|
||
2021-01-07 Tom Tromey <tromey@adacore.com>
|
||
|
||
* ada-lang.c (add_component_interval): Start loop using vector's
|
||
updated size.
|
||
|
||
2021-01-06 Tom Tromey <tromey@adacore.com>
|
||
|
||
* ada-lang.c (ada_evaluate_subexp) <BINOP_ADD, BINOP_SUB>:
|
||
Do not cast result.
|
||
* valarith.c (fixed_point_binop): Handle multiplication
|
||
and division specially.
|
||
* valops.c (value_to_gdb_mpq): New function.
|
||
(value_cast_to_fixed_point): Use it.
|
||
|
||
2021-01-05 Hannes Domani <ssbssa@yahoo.de>
|
||
|
||
* tui/tui-winsource.c (tui_source_window_base::refresh_window):
|
||
Call wnoutrefresh instead of tui_win_info::refresh_window.
|
||
|
||
2021-01-05 Hannes Domani <ssbssa@yahoo.de>
|
||
|
||
* tui/tui-source.c (tui_source_window::show_line_number):
|
||
Redraw second space after line number.
|
||
|
||
2021-01-05 Hannes Domani <ssbssa@yahoo.de>
|
||
|
||
PR tui/26927
|
||
* tui/tui-winsource.c (tui_source_window_base::refresh_window):
|
||
Fix source pad size in prefresh.
|
||
(tui_source_window_base::show_source_content): Grow source pad
|
||
if necessary.
|
||
|
||
2021-01-04 Mike Frysinger <vapier@gentoo.org>
|
||
|
||
* bfin-tdep.c (bfin_push_dummy_call): Use align_up.
|
||
(bfin_frame_align): Use align_down.
|
||
|
||
2021-01-04 Tom de Vries <tdevries@suse.de>
|
||
|
||
* buildsym.c (buildsym_compunit::record_line): Filter out end-of-seq
|
||
terminators that do not terminate anything.
|
||
|
||
2021-01-04 Simon Marchi <simon.marchi@efficios.com>
|
||
|
||
* debug.c (debug_print_depth): New.
|
||
* infrun.h (INFRUN_SCOPED_DEBUG_START_END): New.
|
||
(INFRUN_SCOPED_DEBUG_ENTER_EXIT): New.
|
||
* infrun.c (start_step_over): Use
|
||
INFRUN_SCOPED_DEBUG_ENTER_EXIT.
|
||
(proceed): Use INFRUN_SCOPED_DEBUG_ENTER_EXIT and
|
||
INFRUN_SCOPED_DEBUG_START_END.
|
||
(fetch_inferior_event): Use INFRUN_SCOPED_DEBUG_ENTER_EXIT.
|
||
|
||
2021-01-04 Simon Marchi <simon.marchi@efficios.com>
|
||
|
||
* infrun.c (print_target_wait_results): Use infrun_debug_printf.
|
||
|
||
2021-01-04 Simon Marchi <simon.marchi@efficios.com>
|
||
|
||
* utils.c (vfprintf_unfiltered): Print timestamp only when
|
||
previous debug output ended with a newline.
|
||
|
||
2021-01-04 Luis Machado <luis.machado@linaro.org>
|
||
|
||
Update all users of trad_frame_saved_reg to use the new member
|
||
functions.
|
||
|
||
Remote all struct keywords from declarations of trad_frame_saved_reg
|
||
types, except on forward declarations.
|
||
|
||
* aarch64-tdep.c: Update.
|
||
* alpha-mdebug-tdep.c: Update.
|
||
* alpha-tdep.c: Update.
|
||
* arc-tdep.c: Update.
|
||
* arm-tdep.c: Update.
|
||
* avr-tdep.c: Update.
|
||
* cris-tdep.c: Update.
|
||
* csky-tdep.c: Update.
|
||
* frv-tdep.c: Update.
|
||
* hppa-linux-tdep.c: Update.
|
||
* hppa-tdep.c: Update.
|
||
* hppa-tdep.h: Update.
|
||
* lm32-tdep.c: Update.
|
||
* m32r-linux-tdep.c: Update.
|
||
* m32r-tdep.c: Update.
|
||
* m68hc11-tdep.c: Update.
|
||
* mips-tdep.c: Update.
|
||
* moxie-tdep.c: Update.
|
||
* riscv-tdep.c: Update.
|
||
* rs6000-tdep.c: Update.
|
||
* s390-linux-tdep.c: Update.
|
||
* s390-tdep.c: Update.
|
||
* score-tdep.c: Update.
|
||
* sparc-netbsd-tdep.c: Update.
|
||
* sparc-sol2-tdep.c: Update.
|
||
* sparc64-fbsd-tdep.c: Update.
|
||
* sparc64-netbsd-tdep.c: Update.
|
||
* sparc64-obsd-tdep.c: Update.
|
||
* sparc64-sol2-tdep.c: Update.
|
||
* tilegx-tdep.c: Update.
|
||
* v850-tdep.c: Update.
|
||
* vax-tdep.c: Update.
|
||
|
||
* frame-unwind.c (frame_unwind_got_bytes): Make parameter const.
|
||
* frame-unwind.h (frame_unwind_got_bytes): Likewise.
|
||
|
||
* trad-frame.c: Update.
|
||
Remove TF_REG_* enum.
|
||
(trad_frame_alloc_saved_regs): Add a static assertion to check for
|
||
a trivially-constructible struct.
|
||
(trad_frame_reset_saved_regs): Adjust to use member function.
|
||
(trad_frame_value_p): Likewise.
|
||
(trad_frame_addr_p): Likewise.
|
||
(trad_frame_realreg_p): Likewise.
|
||
(trad_frame_value_bytes_p): Likewise.
|
||
(trad_frame_set_value): Likewise.
|
||
(trad_frame_set_realreg): Likewise.
|
||
(trad_frame_set_addr): Likewise.
|
||
(trad_frame_set_unknown): Likewise.
|
||
(trad_frame_set_value_bytes): Likewise.
|
||
(trad_frame_get_prev_register): Likewise.
|
||
* trad-frame.h: Update.
|
||
(trad_frame_saved_reg_kind): New enum.
|
||
(struct trad_frame_saved_reg) <addr, realreg, data>: Remove.
|
||
<m_kind, m_reg>: New member fields.
|
||
<set_value, set_realreg, set_addr, set_unknown, set_value_bytes>
|
||
<kind, value, realreg, addr, value_bytes, is_value, is_realreg>
|
||
<is_addr, is_unknown, is_value_bytes>: New member functions.
|
||
|
||
2021-01-02 Simon Marchi <simon.marchi@polymtl.ca>
|
||
|
||
* target-float.c: Fix typos.
|
||
|
||
2021-01-02 Hannes Domani <ssbssa@yahoo.de>
|
||
|
||
* gdb-gdb.py.in: Fix main_type.flds_bnds.bounds pretty printer.
|
||
|
||
2021-01-01 Joel Brobecker <brobecker@adacore.com>
|
||
|
||
* gdbarch.sh: Update copyright year range.
|
||
|
||
2021-01-01 Joel Brobecker <brobecker@adacore.com>
|
||
|
||
Update copyright year range in copyright header of all GDB files.
|
||
|
||
2021-01-01 Joel Brobecker <brobecker@adacore.com>
|
||
|
||
* copyright.py (get_update_list): Add "gdbserver" and "gdbsupport"
|
||
to the list of directories to update.
|
||
|
||
2021-01-01 Joel Brobecker <brobecker@adacore.com>
|
||
|
||
* top.c (print_gdb_version): Update copyright year.
|
||
|
||
2021-01-01 Joel Brobecker <brobecker@adacore.com>
|
||
|
||
* config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2020.
|
||
|
||
For older changes see ChangeLog-2020.
|
||
|
||
Local Variables:
|
||
mode: change-log
|
||
left-margin: 8
|
||
fill-column: 74
|
||
version-control: never
|
||
coding: utf-8
|
||
End:
|