This is the mail archive of the
insight@sourceware.org
mailing list for the Insight project.
Problems in running gdb/gdbserver
- From: Pan ruochen <panruochen at gmail dot com>
- To: insight at sourceware dot org
- Date: Thu, 18 Nov 2010 15:43:45 +0800
- Subject: Problems in running gdb/gdbserver
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