This is the mail archive of the java-patches@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: StackTraceElement support


Mark Wielaard wrote:

The following patch gives us real StackTraceElement support including
printing of chained exceptions.

Great!

I must say that parsing
strings in C(++) is a challenge and I don't want to admit how long it
took to get it all right or how many seg faults I created...
OK, I'm curious - why didn't you do it in Java, using java.lang.Process to run addr2line and long[] to represent the raw stack trace? I guess there might be some complications in ensuring that the void *'s always convert correctly to longs and back, but it should still be simpler than the C++ version.

regards

Bryce.



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