From: pjfarley AT dorsai DOT org (Peter J. Farley III) Newsgroups: comp.os.msdos.djgpp Subject: Re: HLP: stepping across files in GBD Date: Wed, 03 Sep 1997 01:40:15 GMT Organization: None Lines: 22 Message-ID: <340cbf42.2085602@snews.zippo.com> References: <5ugu0q$saf$1 AT groa DOT uct DOT ac DOT za> NNTP-Posting-Host: news.newsdawg.com To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Precedence: bulk mdaya AT cs DOT uct DOT ac DOT za (MN Daya) wrote: > >I am having some trouble when stepping through code in GDB. For some reason I >can't get the thing to cross certain file boundries. > >I created a class and put all the code into a .h file. When stepping through >the code GDB always gives "line xx out of bounds, test.cc only has yy lines" >when stepping into a function declared in the .h file. You have run into the same problem I saw. There's a source patch for gcc available, which I'm trying to get working on my system right now, which others here on the forum tell me will solve that problem. Hopefully the patch will be released in a future maintenance release as well, but it's not available in a binary anywhere just yet. Until then, you have to physically include the source of the .h file in the program that uses it in order to debug the code that resides in the .h file. ---------------------------------------------------- Peter J. Farley III (pjfarley AT dorsai DOT org)