[prev in list] [next in list] [prev in thread] [next in thread]
List: gcc-patches
Subject: [incremental] Patch: FYI: dump stack on ICE
From: Tom Tromey <tromey () redhat ! com>
Date: 2008-02-29 16:31:58
Message-ID: m3ir07k9kx.fsf () fleche ! redhat ! com
[Download RAW message or body]
I'm checking this in on the incremental-compiler branch.
This is a useful little hack that gets stack traces for ICEs. This
makes it a bit simpler for me to classify ICEs when looking through
the testsuite logs.
This isn't suitable for merging to the trunk in this form. I could
clean it up if anybody cares.
Tom
ChangeLog:
2008-02-29 Tom Tromey <tromey@redhat.com>
* diagnostic.c (diagnostic_action_after_output) <DK_ICE>: Print
stack trace.
Index: diagnostic.c
===================================================================
--- diagnostic.c (revision 132688)
+++ diagnostic.c (working copy)
@@ -1,5 +1,5 @@
/* Language-independent diagnostic subroutines for the GNU Compiler Collection
- Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007
+ Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008
Free Software Foundation, Inc.
Contributed by Gabriel Dos Reis <gdr@codesourcery.com>
@@ -238,6 +238,12 @@
break;
case DK_ICE:
+ {
+ char cmdline[50];
+ sprintf (cmdline, "pstack %d\n", (int) getpid ());
+ system (cmdline);
+ }
+
if (context->abort_on_error)
real_abort ();
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic