From: "Andrew Crabtree" Newsgroups: comp.os.msdos.djgpp Subject: Re: debugging with gcc 2.8.1 Date: Thu, 14 May 1998 09:29:02 -0700 Organization: Hewlett-Packard, Roseville Lines: 18 Message-ID: <6jf64d$884$1@rosenews.rose.hp.com> References: <1 DOT 5 DOT 4 DOT 16 DOT 19980514110938 DOT 237f77da AT um2gess0> NNTP-Posting-Host: ros51675cra.rose.hp.com To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Precedence: bulk Michel JULIER wrote in message <1 DOT 5 DOT 4 DOT 16 DOT 19980514110938 DOT 237f77da AT um2gess0>... > -In a program that contains #include "sub_prog.c", it is impossible >to follow the pointer while stepping with gdb (actually, I use rhide). >However, I have no problem if I include the sub-program directly into >the main file. Patient -> Doctor, it hurts when I do this. Doctor -> So don't do that. #including source files is bad practice IMHO. But, your workaround is to get a version of gcc that supports stabs debugging format (-gstabs), pgcc, or gcc 2.8 or greater support it. Andy