How to enable/disable software single-stepping?

Wenbo Yang
2007-07-18T03:41:36Z

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