Mail Archives: djgpp/1998/03/24/01:56:16
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 -