Mirror of the gdb mailing list
 help / color / mirror / Atom feed
From: Eli Zaretskii <eliz@gnu.org>
To: Mark Kettenis <mark.kettenis@xs4all.nl>
Cc: nickrob@snap.net.nz, gdb@sources.redhat.com
Subject: Re: info frame
Date: Mon, 17 Apr 2006 07:35:00 -0000	[thread overview]
Message-ID: <ufykcznox.fsf@gnu.org> (raw)
In-Reply-To: <200604162333.k3GNXLeX004661@elgar.sibelius.xs4all.nl> (message 	from Mark Kettenis on Mon, 17 Apr 2006 01:33:21 +0200 (CEST))

> Date: Mon, 17 Apr 2006 01:33:21 +0200 (CEST)
> From: Mark Kettenis <mark.kettenis@xs4all.nl>
> CC: gdb@sources.redhat.com
> 
> >   (gdb) info frame
> >   Stack level 0, frame at 0xbffff710:
> >    eip = 0x80484a9 in main (myprog.c:47); saved eip 0x4006015a
> >    source language c.
> >    Arglist at 0xbffff708, args: argc=1, argv=0xbffff774
> >    Locals at 0xbffff708, Previous frame's sp is 0xbffff710
> >    Saved registers:
> >     ebp at 0xbffff708, eip at 0xbffff70c
> >   (gdb) p $fp
> >   $1 = (void *) 0xbffff708
> > 
> > Can this be right?
> 
> Yes, current GDB uses the convention that the frame address is the
> Canonical Frame Address (CFA) as used by the DWARF 2 Call Frame Info
> (CFI).

Does this mean that, if the debug info is stabs or something other
than DWARF 2, a different frame address will be displayed for the same
code?

> In general the CFA is the value of the stack pointer when the
> current function was called.

``In general''?  Does this mean that in some cases it will be
something else?  If so, when that will happen, and what will we show
then?

I'm asking all this because it should be somehow mentioned in the
docs.

TIA


  parent reply	other threads:[~2006-04-17  7:05 UTC|newest]

Thread overview: 13+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-04-17  0:37 Nick Roberts
2006-04-17  1:33 ` Mark Kettenis
2006-04-17  5:54   ` Nick Roberts
2006-04-17  5:57     ` Daniel Jacobowitz
2006-04-17  6:37       ` Nick Roberts
2006-04-17  7:38       ` Eli Zaretskii
2006-04-17  8:41         ` Vladimir Prus
2006-04-17 14:01         ` Daniel Jacobowitz
2006-04-18  8:40           ` Eli Zaretskii
2006-04-17  7:35   ` Eli Zaretskii [this message]
2006-04-17  9:05     ` Mark Kettenis
2006-04-17 11:21       ` Eli Zaretskii
2006-04-17 12:16         ` Mark Kettenis

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=ufykcznox.fsf@gnu.org \
    --to=eliz@gnu.org \
    --cc=gdb@sources.redhat.com \
    --cc=mark.kettenis@xs4all.nl \
    --cc=nickrob@snap.net.nz \
    /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