This is the mail archive of the
gdb@sourceware.org
mailing list for the GDB project.
Identifying PowerPC architecture
- From: Michael Eager <eager at eagercon dot com>
- To: gdb at sources dot redhat dot com
- Date: Thu, 11 Jan 2007 12:46:55 -0800
- Subject: Identifying PowerPC architecture
I'm looking at how gdb decides which arch/mach it is
working with for PowerPC. It looks like it always picks up
rs6000:6000 as processor type.
When rs6000_gdbarch_init(struct gdbarch_info info,
struct gdbarch_list *arches) is called, arches is NULL.
As a result, it creates up a default arch/mach based on
info.bfd_arch_info.
The arches data is initialized by gdbarch_register() whichs
sets gdbarch_registry[*]->arches to NULL and I don't see
anywhere that this is changed to point to a list of valid
arches.
Am I missing something somewhere? How is this supposed to work?
--
Michael Eager eager@eagercon.com
1960 Park Blvd., Palo Alto, CA 94306 650-325-8077