This is the mail archive of the gdb-patches@sources.redhat.com 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]

Re: [PATCH/RFA] Generic OS ABI handling for PowerPC


On Tue, May 28, 2002 at 04:35:17PM -0700, Kevin Buettner wrote:

 > > Would that be an acceptable interim solution?
 > 
 > Yeah, I like this better.

Ok, I'll post another patch shortly.

 > 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).

Yes, I understand.  But it still seems correct to cleanly separate
the targets so that one day you'll be able to specify precisely which
ones you want.

(Even without my patch, you can't properly cross debug both Linux and
NetBSD PowerPC binaries in the same gdb, because the Linux cross debug
stuff is incomplete.)

So, yes, one day I want to be able to say:

	--target=powerpc-unknown-netbsd,powerpc-unknown-linux-gnu

...or whatever, and have the right thing happen, all based on the
markers in the debugged executable that the gdbarch_osabi_*() stuff
can examine (the osabi stuff will even warn you if you try to debug
an executable which requires OS ABI support not compiled into GDB).

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


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