diff options
author | Mark Kettenis <kettenis@gnu.org> | 2003-10-27 20:47:27 +0000 |
---|---|---|
committer | Mark Kettenis <kettenis@gnu.org> | 2003-10-27 20:47:27 +0000 |
commit | 2b0266504ed1d2f24c3ec40d12b4a3dcf0f8f184 (patch) | |
tree | d8cf8149927f19f355113cfa15da21de5eac4bd0 /gdb/arch-utils.h | |
parent | 0bcad58476a73040545bf31fd3e72a36429bba04 (diff) | |
download | gdb-2b0266504ed1d2f24c3ec40d12b4a3dcf0f8f184.zip gdb-2b0266504ed1d2f24c3ec40d12b4a3dcf0f8f184.tar.gz gdb-2b0266504ed1d2f24c3ec40d12b4a3dcf0f8f184.tar.bz2 |
* arch-utils.c (deprecated_select_gdbarch_hack): New function.
(gdbarch_from_bfd): New function.
(set_gdbarch_from_file): Re-implement using gdbarch_from_bfd and
deprecated_select_gdbarch_hack.
* arch-utils.h (gdbarch_from_bfd): New prototype.
Diffstat (limited to 'gdb/arch-utils.h')
-rw-r--r-- | gdb/arch-utils.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/gdb/arch-utils.h b/gdb/arch-utils.h index 9d67180..27df54d 100644 --- a/gdb/arch-utils.h +++ b/gdb/arch-utils.h @@ -151,4 +151,9 @@ extern int legacy_register_sim_regno (int regnum); default values are not zero. */ extern void gdbarch_info_init (struct gdbarch_info *info); +/* Return the architecture for ABFD. If no suitable architecture + could be find, return NULL. */ + +extern struct gdbarch *gdbarch_from_bfd (bfd *abfd); + #endif |