From: Pan ruochen <panruochen@gmail.com>
To: insight@sourceware.org
Subject: Problems in running gdb/gdbserver
Date: Thu, 18 Nov 2010 07:43:00 -0000 [thread overview]
Message-ID: <AANLkTinnXx3gAydibH=+p0aQuk=p5nEKvRC4ZH_G+TKq@mail.gmail.com> (raw)
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
next reply other threads:[~2010-11-18 7:43 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-11-18 7:43 Pan ruochen [this message]
2010-12-02 2:36 ` Keith Seitz
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to='AANLkTinnXx3gAydibH=+p0aQuk=p5nEKvRC4ZH_G+TKq@mail.gmail.com' \
--to=panruochen@gmail.com \
--cc=insight@sourceware.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).