From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 22840 invoked by alias); 18 Jul 2007 03:41:36 -0000 Received: (qmail 22831 invoked by uid 22791); 18 Jul 2007 03:41:36 -0000 X-Spam-Check-By: sourceware.org Received: from smtp104.biz.mail.mud.yahoo.com (HELO smtp104.biz.mail.mud.yahoo.com) (68.142.200.252) by sourceware.org (qpsmtpd/0.31) with SMTP; Wed, 18 Jul 2007 03:41:32 +0000 Received: (qmail 57093 invoked from network); 18 Jul 2007 03:41:31 -0000 Received: from unknown (HELO ?192.168.1.132?) (wenbo.yang@simplnano.com@61.149.145.95 with plain) by smtp104.biz.mail.mud.yahoo.com with SMTP; 18 Jul 2007 03:41:30 -0000 X-YMail-OSG: erGyYxcVM1m3OQ2qdCWRIvwIuc16ZUYQLzS6I9uCk8ROfAy6POKGIWd7N3abYSSDgPCMBdfrZoj_teX.S5F2zNnvRg-- Message-ID: <469D8BB9.90707@simplnano.com> Date: Wed, 18 Jul 2007 03:42:00 -0000 From: Wenbo Yang User-Agent: Thunderbird 1.5.0.12 (X11/20070604) MIME-Version: 1.0 To: gdb@sourceware.org Subject: How to enable/disable software single-stepping? Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Mailing-List: contact gdb-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-owner@sourceware.org X-SW-Source: 2007-07/txt/msg00137.txt.bz2 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