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: The cost of stack traces


On May 11, 2006, at 8:37 AM, David Daney wrote:

Andrew Haley wrote:

So why do you care about line numbers?

As defined in this e-mail thread, I now realize that do don't care about 'line-numbers'. Thanks for helping me arrive at this conclusion.


What would you think about a patch that optionally fills in the fileName property of StackTraceElement with a string representation of the IP and information obtained from dladdr related to that address?

That would make for easy and accurate off-line analysis of stack traces with very little runtime overhead.


One neat way to solve this may be to write an internal debug_line decoder for libgcj, AND to have that be the basis for an analysis tool. This could probably be written to be runnable on a different host type than the target, because the code I wrote just reads ELF libraries directly.

Attachment: PGP.sig
Description: This is a digitally signed message part


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