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
- From: Ranjit Mathew <rmathew at gmail dot com>
- To: Andrew Haley <aph at redhat dot com>
- Cc: GCJ Patches <java-patches at gcc dot gnu dot org>
- Date: Tue, 27 Jun 2006 06:59:42 +0530
- Subject: Re: [MinGW] RFC/RFA: Get Partial Stack Traces on Windows
- Openpgp: url=http://ranjitmathew.hostingzero.com/aa_6C114B8F.txt
- References: <44A02481.207@gmail.com> <17568.12296.591741.9873@dell.pink>
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Andrew Haley wrote:
> What happens with -findirect-dispatch?
The stack-trace changes to:
- --------------------------- 8< ---------------------------
Exception in thread "main" java.lang.Exception: I don't like you!
at java.lang.VMThrowable.fillInStackTrace(a.exe)
at java.lang.Throwable.<init>(a.exe)
- --------------------------- 8< ---------------------------
However, I don't think the BC-ABI works on Windows as of
now - I was actually expecting an ICE or a segfault somewhere
and was quite surprised when neither of them happened. :-)
- - if ((void*)rfp < _esp || diff > 4 * 1024 || diff < 0)
+ if (((unsigned int)rfp & 0x00000003) != 0 || (void*)rfp < _esp
> Don't use unsigned int for a pointer; instead use
> int __attribute__((mode(pointer))). This is an int that is exactly the
> same size as a pointer.
I was just following in the illustrious footsteps of Bryce. ;-)
Considering that this file (sysdep/i386/backtrace.h) is x86-specific
and is anyway full of otherwise utterly-non-portable-C stuff, does
it matter? (The glibc 2.3.6 stdint.h header on my system just
defines uintptr_t as "unsigned int" for non-64-bit systems.)
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
iD8DBQFEoIoGYb1hx2wRS48RAlLOAJ90dc0jwWgqTQW2xS7OcNz/atge1wCeJkz6
7h647AkFvcbzVpehwJcS3MM=
=crhd
-----END PGP SIGNATURE-----