From: Wenbo Yang <wenbo.yang@simplnano.com>
To: Sync ma <sync.jma@gmail.com>
Cc: gdb@sourceware.org
Subject: Re: Help about RSP command 'p'
Date: Wed, 11 Jul 2007 01:15:00 -0000 [thread overview]
Message-ID: <46942F13.60907@simplnano.com> (raw)
In-Reply-To: <dcf6addc0707100315x2220b242gdbe72adf438111d2@mail.gmail.com>
Sync ma wrote:
> gdb wonder the value of register 37? there only 32 general purpose
> regs in my 4KEc cpu.
I used to read some GDB source code related to MIPS arch(ISA). In some MIPS
archs, Reg.37 means PC register. But I have no idea which arch(target) in
"config.sub" your 4KEC belong to. I think the target dependent file
"mips-tdep.c/h" can give you some clue.
> Anyway, there should be some handler function in gdbserver for command
> 'p', but I have not found in gdb-6.5 yet.
Maybe you can find it in "remote.c". 'p' is not a command, it is a RSP packet.
> Someone guide me.( Lots question about remote debugging(debugging with
> BDIGDB), eg. 'stepi' makes no stop, I could only return to GDB CLI
> with 'CTRL+C', A japanese engineer wrote in another maillist says that
> some instruction sets may not support tracing... I found a manual for
> U-boot debugging with BDI2000, but it can not be reproduced on my MIPS
> processor).
It depends on archs. If GDB (compiled for your target) support SW single
stepping, you can achieve "stepi", or you can implement SW single stepping in
your STUB. I have never used "tracing" related command before, so I don't know
if gdb can. What GDB can do depends on how much RSP packets you implement in
your STUB and how much functions registered to GDB in target dependent files. So
concentrate in what you can do, let others go. It is very hard for remote
debugging achieve the same goal as debugging on host.
Regards,
Wenbo
--
Wenbo Yang
The State Key Lab. of Information Security
Graduate School of CAS, 19A Yuquan Road, Beijing, China
Homepage: http://solrex.cn
SimpLight Nanoelectronics Ltd. 6 Zhichun Road, 10th Floor, Beijing, China
Phone: +86-10-5126-6989 --- Email: wenbo.yang@simplnano.com
next prev parent reply other threads:[~2007-07-11 1:15 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
[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 [this message]
2007-07-10 17:55 msnyder
-- strict thread matches above, loose matches on Subject: below --
2007-07-10 8:01 Sync ma
2007-07-10 8:42 ` Nick Roberts
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=46942F13.60907@simplnano.com \
--to=wenbo.yang@simplnano.com \
--cc=gdb@sourceware.org \
--cc=sync.jma@gmail.com \
/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