public inbox for gcc-help@gcc.gnu.org
 help / color / mirror / Atom feed
* gdb with multiple files
@ 2000-05-16  2:35 maths
  0 siblings, 0 replies; 2+ messages in thread
From: maths @ 2000-05-16  2:35 UTC (permalink / raw)
  To: gcc-help

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        
**************************************************************            
 

^ permalink raw reply	[flat|nested] 2+ messages in thread

* gdb with multiple files
@ 2000-05-17 17:29 maths
  0 siblings, 0 replies; 2+ messages in thread
From: maths @ 2000-05-17 17:29 UTC (permalink / raw)
  To: gcc-help

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        
**************************************************************            
 

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2000-05-17 17:29 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2000-05-16  2:35 gdb with multiple files maths
2000-05-17 17:29 maths

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).