This is the mail archive of the
gdb@sourceware.org
mailing list for the GDB project.
Re: Identifying PowerPC architecture
On Thu, Jan 11, 2007 at 01:03:57PM -0800, Michael Eager wrote:
> >gdbarch_list_lookup_by_info will only return something with the
> >same bfd_arch_info as it is passed.
> >
> >So, if you're not getting the right arch, you're probably not
> >starting with the right bfd_arch_info. I don't know if PowerPC
> >tags binaries with the processor; I don't remember any such markings
> >for PowerPC.
>
> Nope, there's no model info for PowerPC in the ELF file.
Then you're always going to get the default processor, unless you
use "set architecture" (or the new XML <architecture> bit I committed
to HEAD this week).
--
Daniel Jacobowitz
CodeSourcery