public inbox for java-patches@gcc.gnu.org
 help / color / mirror / Atom feed
* [PATCH] Don't reference main() in stacktrace.cc on MinGW
@ 2008-08-21 12:16 Aaron W. LaFramboise
  2008-08-21 13:04 ` Aaron W. LaFramboise
  0 siblings, 1 reply; 2+ messages in thread
From: Aaron W. LaFramboise @ 2008-08-21 12:16 UTC (permalink / raw)
  To: gcc-patches; +Cc: java-patches

The generic i386 fall-back unwinder has logic to stop early at main(). 
However, on Windows, main() isn't always available, primarily when we're 
in a shared library (DLL).  Also, when libgcj is linked as a DLL (patch 
coming soon), the 'main' symbol doesn't have the proper dynamic linkage 
to get the one we want, so things won't work.

This patch fixes this issue by removing this stopping condition on Windows.

I tested this by building a static libjava on i386-pc-mingw32.

OK to commit?

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2008-08-21 12:16 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2008-08-21 12:16 [PATCH] Don't reference main() in stacktrace.cc on MinGW Aaron W. LaFramboise
2008-08-21 13:04 ` Aaron W. LaFramboise

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).