linux-mips
[Top] [All Lists]

Need help in setting up remote debugging setup for MIPS.

To: <linux-mips@linux-mips.org>
Subject: Need help in setting up remote debugging setup for MIPS.
From: "Sudhindra " <smsudhee@rediffmail.com>
Date: 27 Feb 2008 11:12:11 -0000
Original-recipient: rfc822;linux-mips@linux-mips.org
Sender: linux-mips-bounce@linux-mips.org
Hi,

I have been trying to setup a remote debugger GDB for a MIPS platform.
Tried to install the gdb with the information that I could gather on net.

I downloaded gdb-6.7.1 from net. Have kept all these file on a Linux PC.

following are the steps I followd.

1.

[root@ads target]#  /root/GDB761/gdb-6.7.1/configure --target=mips-montavista-linux-gnu --host=i686-pc-linux-gnu --prefix=/opt/gdb

2. 
[root@ads target]# make

3.
[root@ads target]# make install

Having done these, I was not able to find the gdbserver executable in /opt/gdb.

Thus I tried configuring the gdbserver explicitely.
i.e:
[root@ads target]#  /root/GDB761/gdb-6.7.1/gdb/gdbserver/configure --target=--target=mips-montavista-linux-gnu --host=i686-pc-linux-gnu --prefix=/opt/gdb

then I did make
[root@ads target]# make

this make resuts into number of errors like-
mips-linux.c updated.
/root/GDB761/gdb-6.7.1/gdb/gdbserver/linux-mips-low.c:57: `MMLO' undeclared
here (not in a function)
/root/GDB761/gdb-6.7.1/gdb/gdbserver/linux-mips-low.c:57: initializer element
is not constant
/root/GDB761/gdb-6.7.1/gdb/gdbserver/linux-mips-low.c:57: (near initialization
for `mips_regmap[33]')
/root/GDB761/gdb-6.7.1/gdb/gdbserver/linux-mips-low.c:57: `MMHI' undeclared
here (not in a function)
/root/GDB761/gdb-6.7.1/gdb/gdbserver/linux-mips-low.c:57: initializer element
is not constant
/root/GDB761/gdb-6.7.1/gdb/gdbserver/linux-mips-low.c:57: (near initialization
for `mips_regmap[34]')
/root/GDB761/gdb-6.7.1/gdb/gdbserver/linux-mips-low.c:57: `BADVADDR'

Am I missing out any step here??
Please help me out in finding the right way to install gdb.


Thanks and regards,
Sudhindra
Jeevan Sathi
<Prev in Thread] Current Thread [Next in Thread>
  • Need help in setting up remote debugging setup for MIPS., Sudhindra  <=