public inbox for gdb@sourceware.org
 help / color / mirror / Atom feed
* frame_id question
@ 2005-11-09 16:29 Vladimir Prus
  2005-11-11 10:23 ` Jim Blandy
  0 siblings, 1 reply; 6+ messages in thread
From: Vladimir Prus @ 2005-11-09 16:29 UTC (permalink / raw)
  To: gdb


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

^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2005-11-13 23:34 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2005-11-09 16:29 frame_id question Vladimir Prus
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

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).