Problems in running gdb/gdbserver

Pan ruochen <[email protected]>
Newsgroups gmane.comp.debugging.insight
Message-ID <[email protected]>
Hi All

I‘m trying to build a gdbserver hosted on embedded mips linux and gdb
hosted on Windows XP.

Command for gdbserver is (on linux)
CC=mips-linux-gcc ./configure --prefix=/home/admin/gdb-install
--host=i686-pc-linux-gnu --target=mips-linux

Command for gdb is (on MINGW)
CC=gcc ./configure --prefix=/d/gdb-install --host=i686-mingw32 --target=mips-elf

Both gdb and gdbserver are built successfuly.
And gdb connects to gdbserver successfully.

---------------------------------------
GDBSERVER
$gdbserver /dev/ttyS1 /test/a.out
Remote debugging using /dev/ttyS1

GDB
$gdb /z/rootfs/test/a.out
(gdb)target remote COM2
Remote debugging using COM2
warning: Can ot pare XML target descrition: XML support was disabled
at compile time.
[New Thread 147]
0x2aaa8810 in ?? 0
----------------------------------------

But I got some problems.
1. There is not a xxx-insight executable created in the installation directory.
2. gdb can set breakpoints and traps on the breakpoints, but it can't
   step one instruction.
   The gdbserver reports
ptrace: Input/output error.
   The gdb reports
Warning: Remote failure reply: E01

Any advice is appreciated.


PRC
Nov 18,2010
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.