public inbox for frysk@sourceware.org
 help / color / mirror / Atom feed
* Dwarf expertise needed
@ 2007-06-19 15:22 Sami Wagiaalla
  2007-06-19 15:46 ` Sami Wagiaalla
  0 siblings, 1 reply; 19+ messages in thread
From: Sami Wagiaalla @ 2007-06-19 15:22 UTC (permalink / raw)
  To: frysk

So I have been stuck on a bug to do with inlined functions for a bit. 
Here goes:

Attached are two programs funit-scopes.c, and funit-scopes-works.c. My 
original test case was simmilar to funit-scopes.c. What I would do is 
run the program until it crashes, get a stack back trace, go one frame 
out of the inner most frame, subptract 1 from the pc so that it is 
pointing at something before the return instruction.

Using that frame address I look at the debug info. I get a Die, ask the 
Die for its scopes, and explore upwards in the hierarchy.

For funit-scopes-works.c i get this:
   DW_TAG_inlined_subroutine name: second
   DW_TAG_compile_unit name:

For funit-scopes.c I cannot even get a die corresponding to the frame 
address (I have verified that frame address is between hight_pc, and 
low_pc for that particular expansion of that inlined function ).

Tow questions:
Why doesnt funit-scopes.c work ?
and
Why does funit-scopes-works.c not print the tag for the subroutine 
within wich the function has been inlined ?

funit-scopes is in cvs, and so is TestFrameScopes.java which performs 
the above test.

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

end of thread, other threads:[~2007-08-09 17:06 UTC | newest]

Thread overview: 19+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2007-06-19 15:22 Dwarf expertise needed Sami Wagiaalla
2007-06-19 15:46 ` Sami Wagiaalla
2007-06-19 18:28   ` Sami Wagiaalla
2007-06-19 21:11     ` Sami Wagiaalla
2007-06-19 21:27       ` Roland McGrath
2007-06-19 21:31         ` Sami Wagiaalla
2007-06-19 21:31           ` Roland McGrath
2007-07-17 17:07             ` Sami Wagiaalla
2007-07-18  9:03               ` Roland McGrath
2007-07-18 15:38                 ` Sami Wagiaalla
2007-07-18 22:43                   ` Roland McGrath
2007-07-19 15:31                     ` Sami Wagiaalla
2007-07-21  0:29                       ` Roland McGrath
2007-07-26 15:42                         ` Sami Wagiaalla
2007-08-07  9:04                           ` Roland McGrath
2007-08-09 17:06                             ` Sami Wagiaalla
2007-07-19 15:40                 ` Sami Wagiaalla
2007-06-19 21:38           ` Sami Wagiaalla
2007-06-19 21:58         ` Sami Wagiaalla

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