This is the mail archive of the
gdb-patches@sources.redhat.com
mailing list for the GDB project.
Re: [PATCH/RFA] Generic OS ABI handling for PowerPC
On May 28, 3:26pm, Jason R Thorpe wrote:
> 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.
I see. Up 'til now I hadn't looked at the new machinery you added.
Nicely done.
> > 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?
Yeah, I like this better.
> 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).
Hmm. I see where you're coming from, but be careful in how you go
about it because we don't want to preclude the building of a cross
debugger which can debug both NetBSD/PPC and Linux/PPC binaries
(connected to a suitable target of course).
Kevin