From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 26935 invoked by alias); 21 Aug 2008 12:15:23 -0000 Received: (qmail 26919 invoked by uid 22791); 21 Aug 2008 12:15:23 -0000 X-Spam-Check-By: sourceware.org Received: from aaronwl.com (HELO aaronwl.com) (68.228.0.128) by sourceware.org (qpsmtpd/0.31) with ESMTP; Thu, 21 Aug 2008 12:14:43 +0000 Received: from [172.16.42.2] (stormy.internal.aaronwl.com [172.16.42.2]) by aaronwl.com (8.12.11/8.12.11) with ESMTP id m7LCEf2Z019432; Thu, 21 Aug 2008 07:14:41 -0500 Message-ID: <48AD5C1D.8050604@aaronwl.com> Date: Thu, 21 Aug 2008 12:16:00 -0000 From: "Aaron W. LaFramboise" User-Agent: Thunderbird 2.0.0.16 (Windows/20080708) MIME-Version: 1.0 To: gcc-patches CC: java-patches@gcc.gnu.org Subject: [PATCH] Don't reference main() in stacktrace.cc on MinGW Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Mailing-List: contact java-patches-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: java-patches-owner@gcc.gnu.org X-SW-Source: 2008-q3/txt/msg00045.txt.bz2 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?