From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 21450 invoked by alias); 3 Sep 2003 09:13:55 -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 21437 invoked from network); 3 Sep 2003 09:13:54 -0000 Received: from unknown (HELO tweedledum.esatclear.ie) (194.145.128.7) by sources.redhat.com with SMTP; 3 Sep 2003 09:13:54 -0000 Received: from [194.145.128.35] (helo=esatclear.ie) by tweedledum.esatclear.ie with smtp (Exim 4.14) id 19uTi5-0000x6-L3; Wed, 03 Sep 2003 10:13:53 +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 Cc: gdb@sources.redhat.com, insight@sources.redhat.com Date: Wed, 03 Sep 2003 09:13:00 -0000 Subject: Re: ARM Simulator Bug? Message-id: <3f55b0d1.2580.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/msg00138.txt.bz2 Hi Richard, >Try using an > > LDR r0, =__thumb > This command places the correct value into R0 for the BX command, but the bug within the simulator is still present. Take the following code as an example. 0000005c : 5c: e3a0da12 mov sp, #73728 ; 0x12000 60: e59f00a4 ldr r0, [pc, #164] ; 10c 64: e12fff10 bx r0 00000068 <__start_of_thumb>: void IRQ_Interrupt(void); int main() { 68: b580 push {r7, lr} 6a: 466f mov r7, sp 6c: b082 sub sp, #8 If I place a breakpoint at 0x6c and run the code gdb loses itself, i.e. if I interrupt it with ctrl-c it says the PC is 0x0580fa70 or some thing similar. Again, if I place a breakpoint at 0x5c, I can single step successfully. If I single step to 0x68 and place a breakpoint at 0x6c and continue, gdb loses itself again. This problem only occurs when I attempt to use thumb. If I remove the bx command and compile my C file in ARM mode the simulator works perfectly. Is it possible to see which commands the simulator is executing? Thanks, Dave -- http://www.iol.ie