This is the mail archive of the
gcc-help@gcc.gnu.org
mailing list for the GCC project.
Re: Debugging GCC
- From: Andrey Belevantsev <abel at ispras dot ru>
- To: Brendon Costa <bcosta at avdat dot com dot au>
- Cc: gcc-help at gcc dot gnu dot org
- Date: Tue, 30 Aug 2005 12:32:45 +0400
- Subject: Re: Debugging GCC
- References: <4313E7F6.9010003@avdat.com.au>
Brendon Costa wrote:
Does anyone know a way of invoking g++ inside gdb or compiling g++ so
that g++ will not handle the SIGSEGV signal but would crash instead so
GDB can give me a stack trace of the place where the segmentation fault
occurred?
http://gcc.gnu.org/wiki/DebuggingGCC explains how to debug the compiler.
Also, you can put a breakpoint on fancy_abort() to see what happens when
an ICE is occured.
Andrey