From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 13353 invoked by alias); 6 Jan 2011 14:19:23 -0000 Received: (qmail 13344 invoked by uid 22791); 6 Jan 2011 14:19:23 -0000 X-SWARE-Spam-Status: No, hits=-1.9 required=5.0 tests=AWL,BAYES_00,T_RP_MATCHES_RCVD X-Spam-Check-By: sourceware.org Received: from mail.codesourcery.com (HELO mail.codesourcery.com) (38.113.113.100) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Thu, 06 Jan 2011 14:19:15 +0000 Received: (qmail 11936 invoked from network); 6 Jan 2011 14:19:13 -0000 Received: from unknown (HELO ?192.168.0.101?) (yao@127.0.0.2) by mail.codesourcery.com with ESMTPA; 6 Jan 2011 14:19:13 -0000 Message-ID: <4D25CF4D.8070008@codesourcery.com> Date: Thu, 06 Jan 2011 14:19:00 -0000 From: Yao Qi User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.2.13) Gecko/20101208 Thunderbird/3.1.7 MIME-Version: 1.0 To: gdb-patches@sourceware.org Subject: [PING : rfa] Update PC without side effect in displaced stepping References: <4D0F0ABA.9010506@codesourcery.com> <201012200804.oBK84oPu005379@glazunov.sibelius.xs4all.nl> <4D0F5D36.2040909@codesourcery.com> <4D10D377.8080100@codesourcery.com> <20101223042236.GS2596@adacore.com> <4D12F3A8.3020102@codesourcery.com> In-Reply-To: <4D12F3A8.3020102@codesourcery.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: 2011-01/txt/msg00129.txt.bz2 On 12/23/2010 03:00 PM, Yao Qi wrote: > OK. I have to try the second approach, which is 1) exposing displaced > stepping state to tdep, and 2) take displaced stepping state into > account when determining the mode. Ping. http://sourceware.org/ml/gdb-patches/2010-12/msg00427.html 2010-12-23 Yao Qi * arm-tdep.c: (arm_pc_is_thumb): Adjust MEMADDR if it is within copy area of displaced stepping. * infrun.c (struct displaced_step_inferior_state): Move to ... Expose get_displaced_stepping_state. * inferior.h: ... here. Declare get_displaced_stepping_state. P.S. I am thinking that it may be a good idea to move code for displaced stepping to a separate file, say displaced_step.[ch]. Comments? -- Yao (齐尧)