Skip to contentSkip to conversation

cross-compile gdb questions...

DISCUSSION dony 1 participant 2 messages Jan 24, 2000 – Jan 25, 2000 1 message not in the archive

lore
Share & tools
lore

dony

author
#0 lore raw

Hi, all

Does anyone have successfully cross-compiled gdb so that we can
get a cross-debug tool "powerpc-linux-gdb"? I need these to communicate with gdbserver posted by Dan.
Thanks very much
dony

** Sent via the linuxppc-embedded mail list. See http://lists.linuxppc.org/

author
#2 lore raw
In reply to a message not in the archive

Hi, Ben:
I have tried this before but failed. When I run "make" , it shows
many warnings and "undefined reference to ..." errors.
So how do you solve it?
Thanks very much.
dony

Quoted 22 lines · Ben Sapp

Hello dony,

To get powerpc-linux-gdb running go to ftp://prep.ai.mit.edu/gnu/gdb
directory and download the latest version.(gdb-4.18.tar.gz) Unpack it
with the following commands:

gunzip -c gdb-4.18.tar.gz | tar -xvf -

This will make a directory called gdb-4.18 cd into that directory. Then, run the following command:

./configure --target=powerpc-linux

You can add any options to configure as is appropriate. To find out
all the options read the install file and run

./configure --help

Once you have done this simply run

make ; make install

Quoted 7 lines

Then you will have powerpc-linux-gdb installed on your intel box.

--

Ben Sapp                         Los Alamos National Laboratory
email: <mailto:[email protected]>   Phone: (505)667-3277
Fax:   (505)665-7920             URL:   http://www.neutrino.lanl.gov/

--

** Sent via the linuxppc-embedded mail list. See http://lists.linuxppc.org/