Mirror of the gdb mailing list
 help / color / mirror / Atom feed
* Help about RSP command 'p'
@ 2007-07-10  8:01 Sync ma
  2007-07-10  8:42 ` Nick Roberts
  0 siblings, 1 reply; 6+ messages in thread
From: Sync ma @ 2007-07-10  8:01 UTC (permalink / raw)
  To: gdb

Hi guys,
   I am working on a board's bootloader, since it was my first time to
do such a job, maybe
there are many naive mistakes. Anyway, I hope some one could guide me
in the right direction.

   I use a JTAG simulator called BDI2000. From datasheet, it could
support gdb debugging. a binary file
called 'bootloader.bin' has been 'load 0x80000000 bootloader.bin BIN'
in BDI2000 telnet CLI, then I start
the cross-gdb and try to connect with simulator, here comes the errors:

(gdb) [root@rhl9 tftpboot]# mipsel-linux-gdb bootloader.elf
GNU gdb 6.5
Copyright (C) 2006 Free Software Foundation, Inc.
GDB is free software, covered by the GNU General Public License, and you are
welcome to change it and/or distribute copies of it under certain conditions.
Type "show copying" to see the conditions.
There is absolutely no warranty for GDB.  Type "show warranty" for details.
This GDB was configured as "--host=i686-pc-linux-gnu --target=mipsel-linux"...

(gdb) set debug remote 1
(gdb) target remote 192.168.35.108:2001
Remote debugging using 192.168.35.108:2001
Sending packet: $Hc-1#09...Ack
Packet received: OK
Sending packet: $qC#b4...Ack
Packet received:
Sending packet: $qOffsets#4b...Ack
Packet received:
Sending packet: $?#3f...Ack
Packet received: S05
Sending packet: $Hg0#df...Ack
Packet received: OK
Sending packet: $p25#d7...Ack
Packet received: E02
Remote failure reply: E02

=====
   I have referenced Embedding with GNU: the gdb Remote Serial
Protocol, 11/99, but I found no description
about rsp command 'p', and there even has no handler functions in
gdbserver: server.c: main().
   Can anyone told me why my cross-gdb send a 'p' rsp command to the
BDI2000? Could I select a lower-version
gdb to avoid this problem?


^ permalink raw reply	[flat|nested] 6+ messages in thread
[parent not found: <1184054482.32608.ezmlm@sourceware.org>]
* Re: Help about RSP command 'p'
@ 2007-07-10 17:55 msnyder
  0 siblings, 0 replies; 6+ messages in thread
From: msnyder @ 2007-07-10 17:55 UTC (permalink / raw)
  To: gdb; +Cc: sync.jma

> Sending packet: $p25#d7...Ack
> Packet received: E02

There are two things this error might mean:
1) Register #25 not recognized (or perhaps not available), or
2) 'p' request not recognized.

Many gdb remote agents/stubs do not implement the 'p' request.
The correct way for them to acknowledge this is with an empty
reply (not an error code), but who knows...

One way to sidestep the issue would be to simply request all
of the regs (with the 'g' request), and extract the one you want.



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

end of thread, other threads:[~2007-07-11  1:15 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2007-07-10  8:01 Help about RSP command 'p' Sync ma
2007-07-10  8:42 ` Nick Roberts
     [not found] <1184054482.32608.ezmlm@sourceware.org>
2007-07-10  9:50 ` Wenbo Yang
2007-07-10  9:58   ` Wenbo Yang
     [not found]   ` <dcf6addc0707100315x2220b242gdbe72adf438111d2@mail.gmail.com>
2007-07-11  1:15     ` Wenbo Yang
2007-07-10 17:55 msnyder

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox