This is the mail archive of the
java-patches@gcc.gnu.org
mailing list for the Java project.
Re: [MinGW] RFC/RFA: Get Partial Stack Traces on Windows
Ranjit Mathew writes:
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
>
> Bryce McKinlay wrote:
> >
> > A better solution, I think, would be to add a "method length" field to
> > class metadata. This would mean that we could build a data structure of
> > IP ranges and use that to find the method based just on the IP. A little
> > tricky for CNI methods, though.
>
> Without affecting the class metadata, there is perhaps another
> approach we can take: from the faulting instruction, scan backwards
> on an even address boundary for the function prologue "pushl %ebp;
> movl %esp, %ebp" (in any case we assume - -fno-omit-frame-pointer
> for fallback_backtrace()) for some arbitrary amount of code, say,
> 64K.
>
> Do you think this is viable?
Probably, but is it worth it? Wouldn't it be better to apply all those
brain cycles to fixing exception handling to use DWARF rather than all
these kludges?
Andrew.