gdb with multiple files
maths
maths@21cn.com
Wed May 17 17:29:00 GMT 2000
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
**************************************************************
More information about the Gcc-help
mailing list