This is the mail archive of the
gcc-help@gcc.gnu.org
mailing list for the GCC project.
gdb with multiple files
- To: gcc-help at gcc dot gnu dot org <gcc-help at gcc dot gnu dot org>
- Subject: gdb with multiple files
- From: maths <maths at 21cn dot com>
- Date: Thu, 18 May 2000 8:34:38 +0800
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
**************************************************************