This is the mail archive of the
gdb@sources.redhat.com
mailing list for the GDB project.
Re: Cross-platform gdb/kgdb
- From: Daniel Jacobowitz <drow at mvista dot com>
- To: John Groves <John at Groves dot net>
- Cc: gdb at sources dot redhat dot com
- Date: Tue, 25 Mar 2003 11:34:53 -0500
- Subject: Re: Cross-platform gdb/kgdb
- References: <3E7F7B94.2040104@Groves.net>
On Mon, Mar 24, 2003 at 03:41:40PM -0600, John Groves wrote:
> I'm hoping someone can point me in the right direction...or tell me it
> ain't worth trying...
>
> I need to do some kernel debugging with an HP IA-64 system (hpux), and
> it's the only hpux box available. It would be cool to compile a
> linux-resident gdb that would run as the kgdb control system for the
> IA-64 hpux target.
>
> FYI (you may know) hp maintains "kwdb" which is gdb/kgdb for hpux, so I
> have the code for the target system. But hp hasn't tried cross-platform.
>
> Q: Are the sources in the gdb build tree organized such that I can make
> the target system include files available without them getting mixed up
> with the host system includes?
>
> Having run "./configure --host=i386-unknown-linux --target=ia64-hp", I
> note that files in the gdb directory need access to *target* system
> include files; but I also see plenty of sources in that directory that
> include stuff that should probably be local (fcntl, curses, stuff like
> that).
>
> Q: If it's not completely futile, where could I look for an example or
> any helpful info?
It should work; however, I do not know whether ia64-hpux is supported.
A cross debugger should _not_ need any headers from the target system
to build.
--
Daniel Jacobowitz
MontaVista Software Debian GNU/Linux Developer