java-patches@gcc.gnu.org
[Top] [All Lists]

Re: [MinGW] RFC/RFA: Get Partial Stack Traces on Windows

Subject: Re: [MinGW] RFC/RFA: Get Partial Stack Traces on Windows
From: Bryce McKinlay
Date: Wed, 05 Jul 2006 11:08:00 -0400
Ranjit Mathew wrote:
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< ---------------------------

Since methods are called via the atable, the calling
instruction is no longer a simple "CALL <XYZ>". The
hack in fallback_backtrace() therefore doesn't work
for methods called via indirect dispatch.

I don't think it'll work for ordinary virtual calls either, or even non-local calls in a non-static-linked binary.

Bryce

<Prev in Thread] Current Thread [Next in Thread>