From: Vladimir Prus <ghost@cs.msu.su>
To: gdb@sources.redhat.com
Subject: frame_id question
Date: Wed, 09 Nov 2005 16:29:00 -0000 [thread overview]
Message-ID: <dkt7no$aan$1@sea.gmane.org> (raw)
Hello,
I have some confusion over "frame_id" concept, which is supposed to be
unique identifier of a function frame.
Frame id consists of a stack address and a program address. The program
address should be start address of a function and many of xxx_this_frame_id
function follow this pattern:
static void
xxx_frame_this_id (struct frame_info *next_frame, void **this_cache,
struct frame_id *this_id)
{
.......
(*this_id) = frame_id_build (....,
frame_func_unwind (next_frame));
}
The question is: why frame id has to include program address at all? It it
ever possible for two frames to have the same stack address? If so, when?
The immediate problem I have is that "frame_func_unwind" requires full debug
info (address boundaries for functions), but in my case assembler modules
have only line information, so frame_func_unwind will always return 0.
Using hardcoded '0' as program address part of frame id does not cause any
problems for me, but I want to be sure.
Thanks in advance,
Volodya
next reply other threads:[~2005-11-09 16:29 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-11-09 16:29 Vladimir Prus [this message]
2005-11-11 10:23 ` Jim Blandy
2005-11-11 10:35 ` Vladimir Prus
[not found] ` <8f2776cb0511110943p1bb2b03g1b158fb8a82f2528@mail.gmail.com>
2005-11-11 18:05 ` Fwd: " Jim Blandy
2005-11-13 17:32 ` Daniel Jacobowitz
2005-11-13 23:34 ` Jim Blandy
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='dkt7no$aan$1@sea.gmane.org' \
--to=ghost@cs.msu.su \
--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).