Re: [PATCH/RFA] Re: [RFC] Core files and the architecture vector

Andrew Cagney
2003-10-27T15:49:21Z

> Index: ChangeLog
> from Mark Kettenis <kettenis@gnu.org>
>
> * 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.
>

Like it. Yep.

BTW, while you're there can you tweak:

error ("Architecture of file not recognized.\n");

to something like this:

error ("Architecture %s of file not recognized",
bfd_get_arch_info(bfd)->printable_name);

Andrew