This is the mail archive of the gdb@sourceware.org mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]