Skip to contentSkip to conversation

Building GDB - how exactly ?

parisc-linux Christoph Plattner 3 participants 3 messages Apr 9, 2001 – Apr 10, 2001

lore
Share & tools
lore
#0 lore raw

What are the correct steps to build a working GDB for

1. HOST = i385-linux, TARGET = hppa-linux + gdbserver ! (without server already success, but I am not shure, to have done it correctly)

2. Native HPPA-LINUX gdb

I need to debug my `inti' problem

With friendly regards
Christoph P.

Signature · 3 lines
-------------------------------------------------------------------------
private:	[email protected]
company:	[email protected]
#1 lore raw
Quoted 5 lines · Christoph Plattner

What are the correct steps to build a working GDB for

1. HOST = i385-linux, TARGET = hppa-linux + gdbserver ! (without server already success, but I am not shure, to have done it correctly)

I haven't been building gdb for remote debugging, so I'm not sure how it will go. Should work, I think.

Quoted 1 line

2. Native HPPA-LINUX gdb

I use the following to build a native gdb using a cross compiler from x86-linux

/src/parisc/gdb/configure --build=i686-linux --host=hppa-linux --target=hppa-linux --prefix=/usr --disable-shared --disable-nls

and the following to build natively

/src/parisc/gdb/configure --prefix=/usr --build=hppa-linux --host=hppa-linux --target=hppa-linux --disable-nls

It's critical that you have up to date kernel header files available from /usr/include/linux and /usr/include/asm, **for a 32 bit kernel** regardless of whether you're running a 32 bit or 64 bit kernel. This will probably change soon as the ptrace interface is likely to change.

Signature · 1 line
Alan Modra
#2 lore raw

Thank you very much !

I have especially problems with the gdbserver !
I need it.

With friendly regards
Christoph Plattner

Quoted 30 lines · Alan Modra
Quoted 5 lines · Christoph Plattner

What are the correct steps to build a working GDB for

1. HOST = i385-linux, TARGET = hppa-linux + gdbserver ! (without server already success, but I am not shure, to have done it correctly)

I haven't been building gdb for remote debugging, so I'm not sure how it will go. Should work, I think.

Quoted 1 line

2. Native HPPA-LINUX gdb

I use the following to build a native gdb using a cross compiler from x86-linux

/src/parisc/gdb/configure --build=i686-linux --host=hppa-linux --target=hppa-linux --prefix=/usr --disable-shared --disable-nls

and the following to build natively

/src/parisc/gdb/configure --prefix=/usr --build=hppa-linux --host=hppa-linux --target=hppa-linux --disable-nls

It's critical that you have up to date kernel header files available from /usr/include/linux and /usr/include/asm, **for a 32 bit kernel** regardless of whether you're running a 32 bit or 64 bit kernel. This will probably change soon as the ptrace interface is likely to change.

Quoted 7 lines

--
Alan Modra

_______________________________________________
parisc-linux mailing list
[email protected]
http://lists.parisc-linux.org/cgi-bin/mailman/listinfo/parisc-linux

-----------------------------------------------------------------

private:        [email protected]
company:        [email protected]