Problem with gdb debug gcc

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

 



I've tried to use gdb to debug cc1 ( gcc 4.5.0)
 
as fellow:
 
(gdb) file ./cc1
(gdb) run -I /usr/include /cazy/add.c 
my problem is that ,when I creat the break point 
 
(gdb) break main  it worked well   (gcc/main.c) 
 
but 
(gdb) break do_compile, it says  Function "do_compile" not defined.   
(gcc/toplev.c) 
 
so i tried to break another function toplev_main() in the same source file 
(gdb) break toplev_main  it worked                   (gcc/toplev.c) 
 
so I am confused, Is the function only with "extern" could be "break"?
 
thanks a lot  

cazy
-- 
View this message in context: http://old.nabble.com/Problem-with-gdb-debug-gcc-tp28688877p28688877.html
Sent from the gcc - Help mailing list archive at Nabble.com.



[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