From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 17287 invoked by alias); 2 Sep 2003 14:31:27 -0000 Mailing-List: contact insight-help@sources.redhat.com; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: insight-owner@sources.redhat.com Received: (qmail 17236 invoked from network); 2 Sep 2003 14:31:24 -0000 Received: from unknown (HELO tweedledee.esatclear.ie) (194.145.128.6) by sources.redhat.com with SMTP; 2 Sep 2003 14:31:24 -0000 Received: from [194.145.128.35] (helo=esatclear.ie) by tweedledee.esatclear.ie with smtp (Exim 4.14) id 19uCBb-0000TT-9q; Tue, 02 Sep 2003 15:31:11 +0100 From: "David Mc Kenna" Reply-to: mckennad@esatclear.ie To: Richard Earnshaw , mckennad@esatclear.ie, gdb@sources.redhat.com, insight@sources.redhat.com, Richard.Earnshaw@arm.com Date: Tue, 02 Sep 2003 14:31:00 -0000 Subject: Re: ARM Simulator Bug? Message-id: <3f54a9af.472.0@esatclear.ie> X-User-Info: 137.71.23.54 MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-SW-Source: 2003-q3/txt/msg00136.txt.bz2 Hi Richard, Thanks for the reply. >It's more likely to be the way you are trying to get into Thumb state. Try > > adr r0, __start_of_thumb Should this line not be adr r0, __start_of_thumb+1 To set the LSB to tell the core we want to enter Thumb mode > bx r0 > .code 16 > .global __start_of_thumb > .thumb_func >__start_of_thumb: > > >This is really brokenness in the way gas implements ARM and Thumb code >areas, but it's hard to fix properly until GAS starts using mapping >symbols. If I use the +1 code above, and set a breakpoint at the adr command, I can single step successfully past the BX command and into my main. But if I set a breakpoint further down, e.g. after two NOPS, and hit continue, things go astray again. It seems that gdb does not know that when it does a continue that it is in thumb mode and that it is executing 32bit arm commands ( e.g. 2*16bit Thumb Commands). Is it possible to see the commands the simulator recieves as you can with the remote serial commands , i.e. set debug remote 1? Thanks, Dave -- http://www.iol.ie