Mirror of the gdb mailing list
 help / color / mirror / Atom feed
From: Jason Molenda <jmolenda@apple.com>
To: gdb@sources.redhat.com
Subject: Re: Further cache generating if PC is 0?
Date: Thu, 23 Jun 2005 18:51:00 -0000	[thread overview]
Message-ID: <1B26D278-3D1E-4DDB-8DFF-E15F76BA8163@apple.com> (raw)
In-Reply-To: <20050623170626.GT2814@calimero.vinschen.de>

Hi Corinna,


On Jun 23, 2005, at 10:06 AM, Corinna Vinschen wrote:

> Ok, so we unwind the stack pointer and what happens at that point is a
> pretty hopeless guess.  The guess is that the function is frameless  
> and
> has either no local variables or we're still in the prologue.

No, if we follow the convention of setting up a frame pointer and  
saving it on function entry (i.e. we're not debugging -fomit-frame- 
pointer code in gcc's terminology), we can do better.  If the  
function we're examining is potentially frameless, then we're reduced  
to guessing.  But if the function we're examining MUST have set up a  
frame, we should assume it did so and continue up the stack.

cf http://sources.redhat.com/ml/gdb-patches/2005-06/msg00060.html


Jason


  reply	other threads:[~2005-06-23 18:51 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-06-23 17:06 Corinna Vinschen
2005-06-23 18:51 ` Jason Molenda [this message]
2005-06-23 21:13   ` Mark Kettenis
2005-06-23 21:28     ` Jason Molenda
2005-06-24  8:07       ` Corinna Vinschen

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=1B26D278-3D1E-4DDB-8DFF-E15F76BA8163@apple.com \
    --to=jmolenda@apple.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