public inbox for gdb@sourceware.org
 help / color / mirror / Atom feed
From: Daniel Jacobowitz <drow@false.org>
To: Christophe LYON <christophe.lyon@st.com>
Cc: gdb@sources.redhat.com
Subject: Re: dwarf2 frame unwinder assumptions on SP
Date: Mon, 11 Jul 2005 14:51:00 -0000	[thread overview]
Message-ID: <20050711145053.GA29229@nevyn.them.org> (raw)
In-Reply-To: <42D285AB.9E36C062@st.com>

On Mon, Jul 11, 2005 at 04:43:55PM +0200, Christophe LYON wrote:
> 
> Hi all,
> 
> I am working on the connection of the dwarf2 frame unwinder
> to our GDB port, and I have trouble with some assumptions
> made by GDB about SP.
> 
> Currently, in my x-tdep.c I have:
>   set_gdbarch_unwind_pc(gdbarch, x_unwind_pc);
>   frame_unwind_append_sniffer (gdbarch, dwarf2_frame_sniffer);

It sounds like you need to set a "frame base" sniffer also, other than
the dwarf one.  The dwarf2 frame unwinder does not set anything related
to the "frame base" used by symbolic debug information; it only unwinds
the stack pointer as best it can.

Does "print $sp" work correctly when unwinding?


-- 
Daniel Jacobowitz
CodeSourcery, LLC

  reply	other threads:[~2005-07-11 14:51 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-07-11 14:44 Christophe LYON
2005-07-11 14:51 ` Daniel Jacobowitz [this message]
2005-07-11 15:33   ` Christophe LYON
2005-07-11 15:47     ` Daniel Jacobowitz
2005-07-11 15:58       ` Christophe LYON
2005-07-11 16:03         ` Daniel Jacobowitz
2005-07-11 17:02           ` Richard Henderson
2005-07-11 17:06             ` Daniel Jacobowitz
2005-07-11 19:47           ` Mark Kettenis
2005-07-12 14:05             ` Christophe LYON

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=20050711145053.GA29229@nevyn.them.org \
    --to=drow@false.org \
    --cc=christophe.lyon@st.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;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).