This is the mail archive of the gcc-help@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

gdb with multiple files


hello everybody

main() in main.c, functions in fun.c, functions declare in fun.h
cc with -g switch open

# cc -g -c -o main.o main.c
# cc -g -c -o fun.o fun.c
# cc -g -o foo main.o fun.o

# gdb foo

in gbd session type list can only get the codes in main.c, how
can i find the codes in fun.c? and so i can insert a break point
or something.

many thanks!

**************************************************************  
zhang  xiaolei                
Department  of   mathematics  
GuangZhou  Normal University  
mailto: maths@21cn.com        
**************************************************************            
 


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]