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: [MinGW] RFC/RFA: Get Partial Stack Traces on Windows


-----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?

Thanks,
Ranjit.

- --
Ranjit Mathew       Email: rmathew AT gmail DOT com

Bangalore, INDIA.     Web: http://rmathew.com/




-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.2 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFEq/NxYb1hx2wRS48RAj7uAJ96aNFuRCI5WFbT8nX+5U0HaO60XgCdE8Ab
N9LoXEbpUO5zyzcc7IhDLLc=
=/jPl
-----END PGP SIGNATURE-----


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