List Info

Thread: Help about RSP command 'p'




Help about RSP command 'p'
user name
2007-07-10 03:01:17
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) [rootrhl9 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?

Re: Help about RSP command 'p'
user name
2007-07-10 03:42:36
 >    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().

I can't help you with your problem but the info manual that
comes with GDB
(Debugging with GDB) has a node which describes the Remote
Serial Protocol

e.g

`p N'
     Read the value of register N; N is in hex.  *Note read
registers
     packet::, for a description of how the returned
register value is
     encoded.

     Reply:
    `XX...'
          the register's value

    `E NN'
          for an error

    `'
          Indicating an unrecognized QUERY.

-- 
Nick                                           http://www.inet.net.n
z/~nickrob

[1-2]

about | contact  Other archives ( Real Estate discussion Medical topics )