From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 8504 invoked by alias); 9 Jan 2003 03:31:26 -0000 Mailing-List: contact gdb-help@sources.redhat.com; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-owner@sources.redhat.com Received: (qmail 8496 invoked from network); 9 Jan 2003 03:31:26 -0000 Received: from unknown (HELO crack.them.org) (65.125.64.184) by 209.249.29.67 with SMTP; 9 Jan 2003 03:31:26 -0000 Received: from nevyn.them.org ([66.93.61.169] ident=mail) by crack.them.org with asmtp (Exim 3.12 #1 (Debian)) id 18WVIH-00016a-00 for ; Wed, 08 Jan 2003 23:31:53 -0600 Received: from drow by nevyn.them.org with local (Exim 3.36 #1 (Debian)) id 18WTPs-0002oh-00 for ; Wed, 08 Jan 2003 22:31:36 -0500 Date: Thu, 09 Jan 2003 03:31:00 -0000 From: Daniel Jacobowitz To: gdb Subject: Re: ARM, registers, "frame 0", where's the PC? Message-ID: <20030109033136.GB10532@nevyn.them.org> Mail-Followup-To: gdb References: <200301080413.48695.tmohr@s.netic.de> <200301082002.37809.tmohr@s.netic.de> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <200301082002.37809.tmohr@s.netic.de> User-Agent: Mutt/1.5.1i X-SW-Source: 2003-01/txt/msg00112.txt.bz2 On Wed, Jan 08, 2003 at 08:02:37PM +0100, Torsten Mohr wrote: > Hi, > > i found out by testing that the first time i stop the target > and read out its registers, the value of R15 is used in the > message "Program stopped at 0x12345678". > > When i type in GDB: > (gdb) info frame > Stack level 0, frame at 0x1000: > pc = 0x12345678; saved pc 0x20203a8 > (FRAMELESS), called by frame at 0x1000 > Arglist at 0x1000, args: > Locals at 0x1000, Previous frame's sp in sp > > Could these problems be related to the structures on the > stack? When i set R15 to 0x0000 the first time i > read out the registers, i get the message "Program stopped > at 0x00000000". What can i do to tell GDB to use the > real value in R15? > > I appended a log file of a session, all requests and answers > are in there. Is any of the answers not correct? > > Could this be related to the startup code of the test program? > I attached it to this mail. Could you show me the log via 'set debug remote 1' instead? -- Daniel Jacobowitz MontaVista Software Debian GNU/Linux Developer