[PATCH/RFA] Generic OS ABI handling for PowerPC

Jason R Thorpe thorpej@wasabisystems.com
Tue May 28 16:35:00 GMT 2002


On Tue, May 28, 2002 at 01:46:29PM -0700, Kevin Buettner wrote:

 > Umm... rs6000-tdep.c references ppc_linux_* functions too.  Are
 > you suggesting that they too should be moved to rs6000-tdep.c?

No it doesn't.  My patch moves all references to those functions into
ppc-linux-tdep.c only, and uses the GDB OS ABI stuff to hook it in.

 >     ppc-sysv-tdep.c	- PowerPC SysV ABI

I'm happy to move the ppc_sysv stuff into ppc-sysv-tdep.c, then, for now,
and add ppc-sysv-tdep.o to all the targets that currently use rs6000-tdep.o.

Would that be an acceptable interim solution?  It seems certainly better
than requiring all PowerPC targets to slurp in ppc-linux-tdep.o (which
contains a lot of code that is completely useless for NetBSD, for example).

-- 
        -- Jason R. Thorpe <thorpej@wasabisystems.com>



More information about the Gdb-patches mailing list