public inbox for gcc-help@gcc.gnu.org
 help / color / mirror / Atom feed
* Recording of register saves in DWARF2 CFI
@ 2008-04-21 12:39 James Molloy
  2008-04-21 12:41 ` Andrew Haley
  0 siblings, 1 reply; 6+ messages in thread
From: James Molloy @ 2008-04-21 12:39 UTC (permalink / raw)
  To: gcc-help

Hi,

I'm attempting to write a cross-platform debugger for a hobby kernel, 
and as part of which I use DWARF-2's CFI stack unwinding functionality.

This works perfectly, however I would also like to obtain the parameters 
given to each function call on the stack. I can do this easily in x86 as 
all the parameters are passed via stack, however on x64 and MIPS I'm 
having difficulty, as the first X parameters are passed via register.

The DWARF-2 specification makes allowance for this - the CFI system is 
capable of determining the value of any and every register at the start 
of any stack frame - but I have noticed that GCC doesn't record 
unwinding rules for many registers (seemingly any register not essential 
to the finding of the CFA or return address).

Is there any flag available to enable recording of every register, or, 
even better, certain registers, for every stack frame? I've grepped the 
manual to no avail.

Thanks very much,

James Molloy

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

end of thread, other threads:[~2008-04-21 15:04 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2008-04-21 12:39 Recording of register saves in DWARF2 CFI James Molloy
2008-04-21 12:41 ` Andrew Haley
2008-04-21 12:48   ` James Molloy
2008-04-21 15:04     ` Andrew Haley
2008-04-22  5:14       ` James Molloy
2008-04-22  5:23         ` Andrew Haley

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