Mirror of the gdb mailing list
 help / color / mirror / Atom feed
* GDB without traditional frames
@ 2003-09-25  2:02 Andrew Cagney
  2003-09-25 14:45 ` Andrew Cagney
  2003-09-26 21:36 ` y2bismil
  0 siblings, 2 replies; 4+ messages in thread
From: Andrew Cagney @ 2003-09-25  2:02 UTC (permalink / raw)
  To: gdb

Hello,

As an accademic exercise I decided to see what would happen if a PPC64 
GDB was configured to only use dwarf2 cfi (just disable the trad-frame 
code).

The short answer is "it works (mostly)".

The long answer is ...

It relies on there being 100% coverage of the CFI.  System libraries can 
sometimes be lacking.  Assembler stubs, for instance, will trip things 
up.  Irony here is that it's those same assembler routines that trip up 
traditional unwinders.  Anyway, an unwinder capable of unwinding just LR 
works pretty well.

GCC CFI leaves registers as "unspecified" and the "assume same value" 
hack isn't sufficient.  For PPC64, GCC points the "return_column" at 
dwarf2 num 65 (that's the FPSCR but lets ignore that m'key :-).  It 
needs to specify that by default the "return_column" has the same value 
as the "LR" column.

So while trad unwind code is useful, I think it can now be considered 
largely optional.

I've got more GCC bugs to file :-)

enjoy,
Andrew


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

end of thread, other threads:[~2003-09-26 21:36 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2003-09-25  2:02 GDB without traditional frames Andrew Cagney
2003-09-25 14:45 ` Andrew Cagney
2003-09-26 21:36 ` y2bismil
2003-09-26 21:54   ` Daniel Berlin

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox