OK, export CFLAGS=-g before building seemed to be sufficient.

I'm now playing with GDB and the strange thing is, it does not catch any
fault.

The last lines executed are:

Breakpoint 1, main (argc=20, argv=0x3e4008) at
/home/squalyl/projects/cegcc/src/gcc/gcc/collect2.c:756
756     in /home/squalyl/projects/cegcc/src/gcc/gcc/collect2.c
(gdb) c
Continuing.

Breakpoint 2, prefix_from_env (env=0x4192ed "COMPILER_PATH",
pprefix=0x41d170) at /home/squalyl/projects/cegcc/src/gcc/gcc/collect2.c:687
687     in /home/squalyl/projects/cegcc/src/gcc/gcc/collect2.c
(gdb) n
689     in /home/squalyl/projects/cegcc/src/gcc/gcc/collect2.c
(gdb) n
691     in /home/squalyl/projects/cegcc/src/gcc/gcc/collect2.c
(gdb) n
main (argc=20, argv=0x3e4008) at
/home/squalyl/projects/cegcc/src/gcc/gcc/collect2.c:897
897     in /home/squalyl/projects/cegcc/src/gcc/gcc/collect2.c
(gdb) n
prefix_from_env (env=0x4192fb "PATH", pprefix=0x41d180) at
/home/squalyl/projects/cegcc/src/gcc/gcc/collect2.c:685
685     in /home/squalyl/projects/cegcc/src/gcc/gcc/collect2.c
(gdb) n

Breakpoint 2, prefix_from_env (env=0x4192fb "PATH", pprefix=0x41d180) at
/home/squalyl/projects/cegcc/src/gcc/gcc/collect2.c:687
687     in /home/squalyl/projects/cegcc/src/gcc/gcc/collect2.c
(gdb) n
689     in /home/squalyl/projects/cegcc/src/gcc/gcc/collect2.c
(gdb) n
690     in /home/squalyl/projects/cegcc/src/gcc/gcc/collect2.c
(gdb) n
collect2: ld returned 5 exit status

Program exited with code 05.
(gdb)

the last "next" command makes ld exit(5).

I'll step insn by insn to find the opcode that makes it crash, so that I can
get a stack history.

regards
sebastien
------------------------------------------------------------------------------
The Planet: dedicated and managed hosting, cloud storage, colocation
Stay online with enterprise data centers and the best network in the business
Choose flexible plans and management services without long-term contracts
Personal 24x7 support from experience hosting pros just a phone call away.
http://p.sf.net/sfu/theplanet-com
_______________________________________________
Cegcc-devel mailing list
Cegcc-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/cegcc-devel

Reply via email to