From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 31369 invoked by alias); 3 Mar 2004 16:02:02 -0000 Mailing-List: contact gdb-patches-help@sources.redhat.com; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-patches-owner@sources.redhat.com Received: (qmail 31355 invoked from network); 3 Mar 2004 16:02:01 -0000 Received: from unknown (HELO cam-admin0.cambridge.arm.com) (193.131.176.58) by sources.redhat.com with SMTP; 3 Mar 2004 16:02:01 -0000 Received: from pc960.cambridge.arm.com (pc960.cambridge.arm.com [10.1.205.4]) by cam-admin0.cambridge.arm.com (8.12.10/8.12.10) with ESMTP id i23G1t23010825; Wed, 3 Mar 2004 16:01:55 GMT Received: from pc960.cambridge.arm.com (rearnsha@localhost) by pc960.cambridge.arm.com (8.11.6/8.9.3) with ESMTP id i23G1tY20936; Wed, 3 Mar 2004 16:01:55 GMT Message-Id: <200403031601.i23G1tY20936@pc960.cambridge.arm.com> X-Authentication-Warning: pc960.cambridge.arm.com: rearnsha owned process doing -bs To: Daniel Jacobowitz cc: gdb-patches@sources.redhat.com, rearnsha@arm.com Reply-To: Richard Earnshaw Organization: ARM Ltd. X-Telephone: +44 1223 400569 (direct+voicemail), +44 1223 400400 (switchbd) X-Fax: +44 1223 400410 X-Address: ARM Ltd., 110 Fulbourn Road, Cherry Hinton, Cambridge CB1 9NJ. X-Url: http://www.arm.com/ Subject: Re: [rfa/arm] Handle bx and blx In-reply-to: Your message of "Sat, 28 Feb 2004 13:35:08 EST." <20040228183508.GA17481@nevyn.them.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Date: Wed, 03 Mar 2004 16:02:00 -0000 From: Richard Earnshaw X-SW-Source: 2004-03.o/txt/msg00043.txt > The software single-step implementation in GDB doesn't know either BX or > BLX. This results in losing control of the inferior when we single-step > over them. I based this on the ARM ARM, so I'm pretty sure I've got the > numbers correct. > > OK to check in? > > -- > Daniel Jacobowitz > MontaVista Software Debian GNU/Linux Developer > > 2004-02-28 Daniel Jacobowitz > > * arm-tdep.c (thumb_get_next_pc): Handle BX. > (arm_get_next_pc): Handle BX and BLX. Yikes! Yes, this is OK. However, Thumb has BLX (2 variants) as well. R. From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 31369 invoked by alias); 3 Mar 2004 16:02:02 -0000 Mailing-List: contact gdb-patches-help@sources.redhat.com; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-patches-owner@sources.redhat.com Received: (qmail 31355 invoked from network); 3 Mar 2004 16:02:01 -0000 Received: from unknown (HELO cam-admin0.cambridge.arm.com) (193.131.176.58) by sources.redhat.com with SMTP; 3 Mar 2004 16:02:01 -0000 Received: from pc960.cambridge.arm.com (pc960.cambridge.arm.com [10.1.205.4]) by cam-admin0.cambridge.arm.com (8.12.10/8.12.10) with ESMTP id i23G1t23010825; Wed, 3 Mar 2004 16:01:55 GMT Received: from pc960.cambridge.arm.com (rearnsha@localhost) by pc960.cambridge.arm.com (8.11.6/8.9.3) with ESMTP id i23G1tY20936; Wed, 3 Mar 2004 16:01:55 GMT Message-ID: <200403031601.i23G1tY20936@pc960.cambridge.arm.com> X-Authentication-Warning: pc960.cambridge.arm.com: rearnsha owned process doing -bs To: Daniel Jacobowitz cc: gdb-patches@sources.redhat.com, rearnsha@arm.com Reply-To: Richard Earnshaw Organization: ARM Ltd. X-Telephone: +44 1223 400569 (direct+voicemail), +44 1223 400400 (switchbd) X-Fax: +44 1223 400410 X-Address: ARM Ltd., 110 Fulbourn Road, Cherry Hinton, Cambridge CB1 9NJ. X-Url: http://www.arm.com/ Subject: Re: [rfa/arm] Handle bx and blx In-reply-to: Your message of "Sat, 28 Feb 2004 13:35:08 EST." <20040228183508.GA17481@nevyn.them.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Date: Fri, 19 Mar 2004 00:09:00 -0000 From: Richard Earnshaw X-SW-Source: 2004-03/txt/msg00043.txt.bz2 Message-ID: <20040319000900.4ey7BE_gQCPmTGmU0Qy5VBNbGEzE2Y1BfHi204bTSNg@z> > The software single-step implementation in GDB doesn't know either BX or > BLX. This results in losing control of the inferior when we single-step > over them. I based this on the ARM ARM, so I'm pretty sure I've got the > numbers correct. > > OK to check in? > > -- > Daniel Jacobowitz > MontaVista Software Debian GNU/Linux Developer > > 2004-02-28 Daniel Jacobowitz > > * arm-tdep.c (thumb_get_next_pc): Handle BX. > (arm_get_next_pc): Handle BX and BLX. Yikes! Yes, this is OK. However, Thumb has BLX (2 variants) as well. R.