From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 15150 invoked by alias); 9 Apr 2012 05:46:22 -0000 Received: (qmail 15133 invoked by uid 22791); 9 Apr 2012 05:46:18 -0000 X-SWARE-Spam-Status: No, hits=-3.9 required=5.0 tests=AWL,BAYES_00,KHOP_RCVD_UNTRUST,KHOP_THREADED,RCVD_IN_HOSTKARMA_W,RCVD_IN_HOSTKARMA_WL 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; Mon, 09 Apr 2012 05:46:05 +0000 Received: from svr-orw-fem-01.mgc.mentorg.com ([147.34.98.93]) by relay1.mentorg.com with esmtp id 1SH7QS-0002iE-Ua from Yao_Qi@mentor.com for gdb-patches@sourceware.org; Sun, 08 Apr 2012 22:46:04 -0700 Received: from SVR-ORW-FEM-02.mgc.mentorg.com ([147.34.96.206]) by svr-orw-fem-01.mgc.mentorg.com over TLS secured channel with Microsoft SMTPSVC(6.0.3790.4675); Sun, 8 Apr 2012 22:46:04 -0700 Received: from [127.0.0.1] (147.34.91.1) by svr-orw-fem-02.mgc.mentorg.com (147.34.96.168) with Microsoft SMTP Server id 14.1.289.1; Sun, 8 Apr 2012 22:46:03 -0700 Message-ID: <4F827785.2030207@codesourcery.com> Date: Mon, 09 Apr 2012 05:46:00 -0000 From: Yao Qi User-Agent: Mozilla/5.0 (X11; Linux i686; rv:11.0) Gecko/20120329 Thunderbird/11.0.1 MIME-Version: 1.0 To: "Gustavo, Luis" CC: Subject: Re: [PATCH] Fix displaced stepping for remote targets References: <4F67E54C.1010904@mentor.com> <4F6808C9.7020709@codesourcery.com> <4F6809DB.1010005@mentor.com> <4F68295F.80301@codesourcery.com> <4F68E9B1.5040308@mentor.com> In-Reply-To: <4F68E9B1.5040308@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-04/txt/msg00132.txt.bz2 On 03/21/2012 04:33 AM, Luis Gustavo wrote: > If a target can't use hw single-stepping to execute instructions in the > scratch pad, i think it should disallow it by returning 0 in > gdbarch_displaced_step_hw_singlestep. Does it make sense? Yes, that is what gdbarch_displaced_step_hw_singlestep for, AFAIK. I am sorry I don't understand how gdbarch_displaced_step_hw_singlestep related to your patch here. -- Yao (齐尧)