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


Ranjit Mathew wrote:
The second part of the patch uses a VirtualQuery()-based trick
shown by Matt Pietrek in his "Under The Hood" column for the
April '97 issue of MSJ to determine the module that contains
a given address. This is because Windows does not have a direct
equivalent of dladdr() as far as I can tell (I'm not a Windows
programmer, so I might be quite wrong on this).

The third part of the patch just ensures that we do not
call _Unwind_Backtrace() for non-SJLJ targets as shown by
the message linked above.

Tested lightly using an i686-pc-linux-gnu to i686-pc-mingw32
cross-compiler.

Comments? Suggestions? Approvals? ;-)

Looks good! Could the win32 part of getLineNumberForFrame() be split out into its own function, perhaps in win32.cc? It would be nice to avoid adding yet more #ifdef's in here.


Bryce


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