This is the mail archive of the
gdb@sourceware.org
mailing list for the GDB project.
How to enable/disable software single-stepping?
- From: Wenbo Yang <wenbo dot yang at simplnano dot com>
- To: gdb at sourceware dot org
- Date: Wed, 18 Jul 2007 11:40:41 +0800
- Subject: How to enable/disable software single-stepping?
Hi all,
Is there any command to enable/disable software single-stepping? Or say how to
enable/disable 's' packet while remote debugging?
My problem is:
I have a simulator integrated gdbserver which supports 's' packet. But the STUB
doesn't. What I want is to enable 's' packet while connecting to gdbserver and
disable it while connecting to STUB. I have tried answer "vCont;s;c" to "vCont?"
request. It didn't work. I found the only way to enable 's' packet is don't
register software_single_step function to gdbarch in target dependent file.
However, that means I need two GDB binary, which I don't want.
Any ideas?
Thanks,
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