public inbox for insight@sourceware.org
 help / color / mirror / Atom feed
* Problems in running gdb/gdbserver
@ 2010-11-18  7:43 Pan ruochen
  2010-12-02  2:36 ` Keith Seitz
  0 siblings, 1 reply; 2+ messages in thread
From: Pan ruochen @ 2010-11-18  7:43 UTC (permalink / raw)
  To: insight

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

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: Problems in running gdb/gdbserver
  2010-11-18  7:43 Problems in running gdb/gdbserver Pan ruochen
@ 2010-12-02  2:36 ` Keith Seitz
  0 siblings, 0 replies; 2+ messages in thread
From: Keith Seitz @ 2010-12-02  2:36 UTC (permalink / raw)
  To: Pan ruochen; +Cc: insight

On 11/17/2010 11:43 PM, Pan ruochen wrote:
> But I got some problems.
> 1. There is not a xxx-insight executable created in the installation directory.

You are attempting to build for MinGW, and I haven't committed a series 
of patches to make this work yet. Stay tuned...

> 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

Since you did this part without Insight (i.e., it's a "simple" gdb 
question), I would encourage you to ask on the gdb@ mailing list, since 
that' where many, many more (and more knowledgeable) people hang out.

Keith

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2010-12-02  2:36 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2010-11-18  7:43 Problems in running gdb/gdbserver Pan ruochen
2010-12-02  2:36 ` Keith Seitz

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).