Mirror of the gdb mailing list
 help / color / mirror / Atom feed
From: Daniel Jacobowitz <drow@mvista.com>
To: gdb <gdb@sources.redhat.com>
Subject: Re: ARM, registers, "frame 0", where's the PC?
Date: Thu, 09 Jan 2003 03:31:00 -0000	[thread overview]
Message-ID: <20030109033136.GB10532@nevyn.them.org> (raw)
In-Reply-To: <200301082002.37809.tmohr@s.netic.de>

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


  reply	other threads:[~2003-01-09  3:31 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-01-08  3:49 Torsten Mohr
2003-01-08 19:39 ` Torsten Mohr
2003-01-09  3:31   ` Daniel Jacobowitz [this message]
2003-01-09 17:12     ` Torsten Mohr
2003-01-09 17:24       ` Daniel Jacobowitz
2003-01-09 23:23         ` Torsten Mohr
2003-01-09 23:27           ` Daniel Jacobowitz
2003-01-10  6:52             ` Jan Van Belle
2003-01-10 14:24               ` Daniel Jacobowitz
2003-01-09 23:23         ` Torsten Mohr
2003-01-09 12:20   ` Richard Earnshaw
2003-01-09 17:12     ` Torsten Mohr

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20030109033136.GB10532@nevyn.them.org \
    --to=drow@mvista.com \
    --cc=gdb@sources.redhat.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox