This is the mail archive of the java@gcc.gnu.org mailing list for the Java project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Idea for stack traces


Andrew Haley wrote:

>Offhand, my first reaction to this is that we'd be duplicating the
>DWARF info for no particular good effect.  Writing a tiny DWARF
>interpreter that can only access symbols and addresses which lives in
>libgcj would not be so very hard, and we could arrange for this info
>to be emitted even on targets that don't use DWARF by default.
>

The advantage of the scheme I described is that it doesn't require any 
DWARF info - only the reflective data which is available in every GCJ 
class even if there is no debugging info. Writing a small DWARF 
interpreter (we could write most of it in Java) would be the way to go 
to get more detailed info, including the source file and line number 
info for the stack trace.

regards

Bryce.



Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]