diff options
author | Andrew Cagney <cagney@redhat.com> | 2000-06-07 04:38:02 +0000 |
---|---|---|
committer | Andrew Cagney <cagney@redhat.com> | 2000-06-07 04:38:02 +0000 |
commit | b4a20239906ec8ba36a98e03d56d91603ce3ebb7 (patch) | |
tree | 2e3c96c35ae9a0e63a5ef69a743399d9c1c5656d /gdb/gdbarch.h | |
parent | 17c579bd622026e9c05a0b8893e10a26470c3569 (diff) | |
download | fsf-binutils-gdb-b4a20239906ec8ba36a98e03d56d91603ce3ebb7.zip fsf-binutils-gdb-b4a20239906ec8ba36a98e03d56d91603ce3ebb7.tar.gz fsf-binutils-gdb-b4a20239906ec8ba36a98e03d56d91603ce3ebb7.tar.bz2 |
The attatched moves the remaining guff from gdbarch.{h,c,sh} to
arch-utils.{h,c}. The ``set architecutre'' and ``set endian''
commands (part of the move) were implemented to use add_set_enum_cmd()
so that ``set architecture <tab>'' works.
Diffstat (limited to 'gdb/gdbarch.h')
-rw-r--r-- | gdb/gdbarch.h | 21 |
1 files changed, 8 insertions, 13 deletions
diff --git a/gdb/gdbarch.h b/gdb/gdbarch.h index f0453bf..f3f1589 100644 --- a/gdb/gdbarch.h +++ b/gdb/gdbarch.h @@ -1212,6 +1212,14 @@ typedef struct gdbarch *(gdbarch_init_ftype) (struct gdbarch_info info, struct g extern void register_gdbarch_init (enum bfd_architecture architecture, gdbarch_init_ftype *); +/* Return a freshly allocated, NULL terminated, array of the valid + architecture names. Since architectures are registered during the + _initialize phase this function only returns useful information + once initialization has been completed. */ + +extern const char **gdbarch_printable_names (void); + + /* Helper function. Search the list of ARCHES for a GDBARCH that matches the information provided by INFO. */ @@ -1342,13 +1350,6 @@ extern const struct bfd_arch_info *target_architecture; #define TARGET_ARCHITECTURE (target_architecture + 0) #endif -/* Notify the target dependant backend of a change to the selected - architecture. A zero return status indicates that the target did - not like the change. */ - -extern int (*target_architecture_hook) (const struct bfd_arch_info *); - - /* The target-system-dependant disassembler is semi-dynamic */ @@ -1397,12 +1398,6 @@ extern disassemble_info tm_print_insn_info; extern void set_gdbarch_from_file (bfd *); -/* Explicitly set the dynamic target-system-dependant parameters based - on bfd_architecture and machine. */ - -extern void set_architecture_from_arch_mach (enum bfd_architecture, unsigned long); - - /* Initialize the current architecture to the "first" one we find on our list. */ |