Need help in setting up remote debugging setup for MIPS.

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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

[Index of Archives]     [Linux MIPS Home]     [LKML Archive]     [Linux ARM Kernel]     [Linux ARM]     [Linux]     [Git]     [Yosemite News]     [Linux SCSI]     [Linux Hams]

  Powered by Linux