GCC world tour

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi,

Could anyone suggest some good tourist stops in GCC (i.e. good
functions to set breakpoints at while "debugging" a simple compile to
learn the inner workings of the beast)? If I wanted to visit the C
parser, what is that called?

I was playing with the -### option. There is a wiki debugging entry
that describes running cc1 using the driver:

gdb --args `gcc/xgcc -### -Bgcc -O2 -march=pentium3
-fomit-frame-pointer -S -fverbose-asm -dA -Q -fmem-report
../../gcctest1.i 2>&1|grep cc1|tr -d '"'`

I had to add the "tr -d '"' (a ' " ') or it would not work? Says it
can't find "gcc/cc1". Am I doing something wrong? Or is this a
"feature" of Debians gdb?

Thanks!

kevin


[Index of Archives]     [Linux C Programming]     [Linux Kernel]     [eCos]     [Fedora Development]     [Fedora Announce]     [Autoconf]     [The DWARVES Debugging Tools]     [Yosemite Campsites]     [Yosemite News]     [Linux GCC]

  Powered by Linux