Mirror of the gdb mailing list
 help / color / mirror / Atom feed
* Identifying PowerPC architecture
@ 2007-01-11 20:47 Michael Eager
  2007-01-11 20:51 ` Daniel Jacobowitz
  2007-01-11 21:31 ` Mark Kettenis
  0 siblings, 2 replies; 5+ messages in thread
From: Michael Eager @ 2007-01-11 20:47 UTC (permalink / raw)
  To: gdb

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


^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2007-01-11 21:31 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2007-01-11 20:47 Identifying PowerPC architecture Michael Eager
2007-01-11 20:51 ` Daniel Jacobowitz
2007-01-11 21:04   ` Michael Eager
2007-01-11 21:22     ` Daniel Jacobowitz
2007-01-11 21:31 ` Mark Kettenis

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox