From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 6017 invoked by alias); 20 Mar 2012 04:35:09 -0000 Received: (qmail 6009 invoked by uid 22791); 20 Mar 2012 04:35:07 -0000 X-SWARE-Spam-Status: No, hits=-1.5 required=5.0 tests=AWL,BAYES_00 X-Spam-Check-By: sourceware.org Received: from relay1.mentorg.com (HELO relay1.mentorg.com) (192.94.38.131) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Tue, 20 Mar 2012 04:34:41 +0000 Received: from svr-orw-fem-01.mgc.mentorg.com ([147.34.98.93]) by relay1.mentorg.com with esmtp id 1S9qmP-0001Ds-2m from Yao_Qi@mentor.com for gdb-patches@sourceware.org; Mon, 19 Mar 2012 21:34:41 -0700 Received: from SVR-ORW-FEM-05.mgc.mentorg.com ([147.34.97.43]) by svr-orw-fem-01.mgc.mentorg.com over TLS secured channel with Microsoft SMTPSVC(6.0.3790.4675); Mon, 19 Mar 2012 21:34:34 -0700 Received: from [127.0.0.1] (147.34.91.1) by svr-orw-fem-05.mgc.mentorg.com (147.34.97.43) with Microsoft SMTP Server id 14.1.289.1; Mon, 19 Mar 2012 21:34:03 -0700 Message-ID: <4F6808C9.7020709@codesourcery.com> Date: Tue, 20 Mar 2012 04:35:00 -0000 From: Yao Qi User-Agent: Mozilla/5.0 (X11; Linux i686; rv:11.0) Gecko/20120310 Thunderbird/11.0 MIME-Version: 1.0 To: "Gustavo, Luis" CC: Subject: Re: [PATCH] Fix displaced stepping for remote targets References: <4F67E54C.1010904@mentor.com> In-Reply-To: <4F67E54C.1010904@mentor.com> Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 8bit X-IsSubscribed: yes Mailing-List: contact gdb-patches-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-patches-owner@sourceware.org X-SW-Source: 2012-03/txt/msg00731.txt.bz2 On 03/20/2012 10:02 AM, Luis Gustavo wrote: > If a target supports hw single-stepping for displaced stepping, GDB > should just send a vCont;s packet to tell the target to step a single > instruction. In my case, GDB was always sending a vCont;c instead. On some arch, the original instruction may be translated to more than one instructions, and copied to scratch pad. So, we can't do single-step in scratch pad. Even the case that one instruction is generated/copied to scratch pad can be optimized in your approach, but not sure it breaks software-single-step arch or not. -- Yao (齐尧)