* 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.
This commit is contained in:
Mark Kettenis
2003-10-27 20:47:27 +00:00
parent 0bcad58476
commit 2b0266504e
3 changed files with 68 additions and 4 deletions

View File

@ -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