From: "Andrew Crabtree" Newsgroups: comp.os.msdos.djgpp Subject: Re: Debugging Date: Mon, 23 Mar 1998 13:48:51 -0800 Organization: Hewlett Packard Lines: 11 Message-ID: <6f6lc4$mk8$1@rosenews.rose.hp.com> References: <35167ebc DOT 16325942 AT nntp-oslo DOT uninett DOT no> NNTP-Posting-Host: ros51675cra.rose.hp.com Mime-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Precedence: bulk Stian Danielsen wrote in message <35167ebc DOT 16325942 AT nntp-oslo DOT uninett DOT no>... >>If you rename the files to .cc (and recompile) can you debug? >Jepp! Now it worked! At last:) >Strange it didn't work with the .cpp ending..? Not really. There was a bug in pre-2.8 g++ where it would put foo.cc in the object file regardless of the actual extension of the c++ file. So you have a source file of foo.cpp, gxx compiles a .o files but tags it with foo.cc. Now, when the debugger attempts to get line information for you it looks for the wrong file. This is fixed in the latest gcc.