From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 15731 invoked by alias); 2 Feb 2006 02:52:58 -0000 Received: (qmail 15723 invoked by uid 22791); 2 Feb 2006 02:52:57 -0000 X-Spam-Check-By: sourceware.org Received: from mailsrv1.tranzpeer.net (HELO mailsrv1.tranzpeer.net) (202.180.66.207) by sourceware.org (qpsmtpd/0.31) with ESMTP; Thu, 02 Feb 2006 02:52:56 +0000 Received: from wmsrv2.tranzpeer.net ([202.180.66.2] helo=localhost) by mailsrv1.tranzpeer.net with ESMTP (Exim 4.34) id 1F4Uaa-0002tc-4F; Thu, 02 Feb 2006 15:52:52 +1300 Received: from external.hosting.co.nz (external.hosting.co.nz [203.97.46.10]) by webmail.slingshot.co.nz (Horde) with HTTP for ; Thu, 2 Feb 2006 15:52:52 +1300 Message-ID: <20060202155252.k84sosswgkwkwsg4@webmail.slingshot.co.nz> Date: Thu, 02 Feb 2006 02:52:00 -0000 From: Paul Blacquiere To: Daniel Jacobowitz Cc: "gdb@sourceware.org" Subject: Re: Howto single step from beginning References: <20060202140831.wco48wcskkccsokk@webmail.slingshot.co.nz> <20060202012556.GA19090@nevyn.them.org> In-Reply-To: <20060202012556.GA19090@nevyn.them.org> MIME-Version: 1.0 Content-Type: text/plain; charset="UTF-8"; format="flowed" Content-Disposition: inline Content-Transfer-Encoding: 7bit User-Agent: Internet Messaging Program (IMP) 4.0-cvs X-IsSubscribed: yes Mailing-List: contact gdb-help@sourceware.org; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-owner@sourceware.org X-SW-Source: 2006-02/txt/msg00005.txt.bz2 Hi, > Sorry, but I don't understand what you mean. You'd have to show a > complete example. This is the beginning of the prog to debug (ARM) : 00008090 <_start>: 8090: e3a0b000 mov fp, #0 ; 0x0 8094: e3a0e000 mov lr, #0 ; 0x0 8098: e49d1004 ldr r1, [sp], #4 809c: e1a0200d mov r2, sp 80a0: e52d2004 str r2, [sp, #-4]! 80a4: e52d0004 str r0, [sp, #-4]! start gdb: $> gdb test attempt to run: -------------------------------- (gdb) run Starting program: /home/blacq/src/bin/test Program received signal SIGILL, Illegal instruction. 0x00008094 in _start () (gdb) -------------------------------- (by now you are muttering, not this old chestnut again...) So I would like to investigate the CPSR etc before and after, as the command (mov lr, #0 ; 0x0) looks good to me. trying the following: -------------------------------- (gdb) break _start Breakpoint 1 at 0x8090 (gdb) run Starting program: /home/blacq/src/bin/test Program received signal SIGILL, Illegal instruction. 0x00008094 in _start () (gdb) -------------------------------- So at this point I am stumped.