This is the mail archive of the
java-patches@gcc.gnu.org
mailing list for the Java project.
Re: StackTraceElement support
Mark Wielaard writes:
> Hi,
>
> On Tue, 2002-07-23 at 06:04, Bryce McKinlay wrote:
> > Mark Wielaard wrote:
> >
> > >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.
In the Bad Old Days when it was first written, I needed
printStackTrace to work even when the Java VM/gc/whatever was
completely screwed. This is still a good thing IMO, but hardly as
important as it was then.
Andrew.