This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
RE: Debugging a custom GCC Back End
- From: "Dave Korn" <dave dot korn at artimi dot com>
- To: "'Balthasar Biedermann'" <ba at usr42 dot de>, <gcc at gcc dot gnu dot org>
- Date: Sun, 3 Aug 2008 20:39:07 +0100
- Subject: RE: Debugging a custom GCC Back End
- References: <4895B988.1060804@usr42.de>
Balthasar Biedermann wrote on 03 August 2008 14:59:
> The compilation of my custom GCC works, but the binary I get is not
> working. I always get the "internal compiler error: Segmentation fault"
> message if I try to Compile a c-file.
> But the GCC don't tell me, where or why the error occurred. Is there any
> possibility to debug the gcc-backend? Or how can I find out where the
> Error occurred?
Sure, it works fine under a debugger like gdb. See the wiki page for more
information:
http://gcc.gnu.org/wiki/DebuggingGCC
cheers,
DaveK
--
Can't think of a witty .sigline today....