The cost of stack traces

Casey Marshall csm@gnu.org
Thu May 11 16:11:00 GMT 2006


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.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: PGP.sig
Type: application/pgp-signature
Size: 478 bytes
Desc: This is a digitally signed message part
URL: <http://gcc.gnu.org/pipermail/java/attachments/20060511/44d0ce29/attachment.sig>


More information about the Java mailing list

AltStyle によって変換されたページ (->オリジナル) /