diff options
author | Tom de Vries <tdevries@suse.de> | 2022-06-03 15:34:50 +0200 |
---|---|---|
committer | Tom de Vries <tdevries@suse.de> | 2022-06-03 15:34:50 +0200 |
commit | 0e02119e65b566cad575cc57fe423dadab855a56 (patch) | |
tree | 2e87adc976564f94062e7d8eec9d70483e44e4cc /gdb/osabi.h | |
parent | a98600052eb680249abae0083a7c24d7e57f7379 (diff) | |
download | gdb-0e02119e65b566cad575cc57fe423dadab855a56.zip gdb-0e02119e65b566cad575cc57fe423dadab855a56.tar.gz gdb-0e02119e65b566cad575cc57fe423dadab855a56.tar.bz2 |
Revert "[gdb] Fix warning in foreach_arch selftests"
This reverts commit fc18b1c5afd ("[gdb] Fix warning in foreach_arch
selftests").
The commit introduced regressions for an --enable-targets=all build:
...
Running selftest print_one_insn::A6.^M
Self test failed: Cannot access memory at address 0x0^M
...
and while investigating those I realized that the commit fc18b1c5afd
complicates things by trying to set the current osabi.
So, revert the patch in preparation for a simpler solution.
Tested on x86_64-linux.
Diffstat (limited to 'gdb/osabi.h')
-rw-r--r-- | gdb/osabi.h | 13 |
1 files changed, 0 insertions, 13 deletions
diff --git a/gdb/osabi.h b/gdb/osabi.h index 3737a77..be01673 100644 --- a/gdb/osabi.h +++ b/gdb/osabi.h @@ -50,13 +50,6 @@ enum gdb_osabi GDB_OSABI_INVALID /* keep this last */ }; -enum gdb_osabi_mode -{ - osabi_auto, - osabi_default, - osabi_user -}; - /* Register an OS ABI sniffer. Each arch/flavour may have more than one sniffer. This is used to e.g. differentiate one OS's a.out from another. The first sniffer to return something other than @@ -96,10 +89,4 @@ const char *osabi_triplet_regexp (enum gdb_osabi osabi); void generic_elf_osabi_sniff_abi_tag_sections (bfd *, asection *, enum gdb_osabi *); -/* Set osabi to MODE/OSABI. */ -extern void set_osabi (enum gdb_osabi_mode mode, enum gdb_osabi osabi); - -/* Return current osabi setting in MODE/OSABI. */ -extern void get_osabi (enum gdb_osabi_mode &mode, enum gdb_osabi &osabi); - #endif /* OSABI_H */ |