RFC: stack trace generation

Andrew Haley aph@redhat.com
Tue Jul 20 09:19:00 GMT 2004


David Daney writes:
 > Ranjit Mathew wrote:
 > > Andrew Haley wrote:
 > > 
  > > 
 > > This would also allow dropping "-fno-omit-frame-pointer",
 > > which can make a difference on register starved architectures...
 > > 
 > 
 > Arn't there two issues?
 > 
 > 1) Generate the raw stack trace.
 > 
 > 2) Make a pretty printout.
 > 
 > These patches deal with #2.
 > 
 > #1 is easily done where ever DWARF 2 unwinding is available (shameless
 > plug: libjava/sysdep/dwarf2-backtrace.cc).

#1 is no longer a problem because we have functions in libgcc to do
it, and these functions work with any unwinder format, not just DWARF
2.

Andrew.



More information about the Java mailing list