www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1998/03/24/01:56:16

Message-ID: <35169BD1.95BE73A8@gmx.net>
Date: Mon, 23 Mar 1998 18:28:49 +0100
From: Robert Hoehne <robert DOT hoehne AT gmx DOT net>
Organization: none provided
MIME-Version: 1.0
To: Stian Danielsen <stireda AT tor DOT ber DOT hs DOT nki DOT no>
CC: DJGPP Mailing list <djgpp AT delorie DOT com>
Subject: Re: This should be easy...
References: <3516411d DOT 548245 AT nntp-oslo DOT uninett DOT no>

Stian Danielsen wrote :
> 
> 
> Made just to test the debugging. The file is saved with the .cpp
> ending.
> 
[snip]
> 
> Anyone got a clue as to what is wrong?

This is a problem with a bug of gcc 2.7.x. When you
use a C++ source file with the .cpp suffix. gcc places
then ever in the object file (where the debuging information
is) as the source file the filename but with a .cc suffix.

Now (in RHIDE) when you set a breakpoint, RHIDE sets this
bp with a (internally) gdb command like:

b foo.cpp:13

which should set a breakpoint in file foo.cpp at line 13.
But since there is no debug information about file foo.cpp
you will get the error message.

Solutions for you:

1) Name your C++ source files to have the .cc suffix
2) upgrade to gcc 2.8.0 which has not this bug.

Robert
-- 
******************************************************
* email:   Robert Hoehne <robert DOT hoehne AT gmx DOT net>     *
* Post:    Am Berg 3, D-09573 Dittmannsdorf, Germany *
* WWW:     http://www.tu-chemnitz.de/~sho/rho        *
******************************************************


- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019