This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
debugging gcc/cc1
- From: Johnny Huynh <huynh at ugrad dot cs dot ualberta dot ca>
- To: gcc at gcc dot gnu dot org
- Date: Wed, 26 May 2004 14:29:03 -0600 (MDT)
- Subject: debugging gcc/cc1
This must have been asked before, but my google and mailing list searches
havent gotten me anything too useful...
I have written an extra pass that is causes a seg fault in my gcc
cross-compiler, but no core file is generated (presumably from the sig
handler) and I don't know how to attach gdb to my cross-compiler.
I've tried using the output provided by "gcc -v -save-temps ..." and then
invoke cc1 from inside gdb, but thats not immediately working, and its
a pain to have to copy and paste huge chunks of text everytime I want to
trace my new changes.
tips on how to disable the sig handler (to get a core file) or trace my
new changes (preferred) would be appreciated.
Thanks,
Johnny