Mail Archives: djgpp/1998/09/02/07:24:52
On Tue, 1 Sep 1998, Endlisnis wrote:
> You can step through the code, but setting a break-point (by
> pressing F4) on line #132 (or #133) in the main file will cause the entire
> program to be executed, not stopping where I desired.
I can confirm this problem. I ran this under GDB (I don't use RHIDE),
and it seems that the problem is in the debug info generated by the
compiler: when I set a breakpoint on one of these lines, the address of
the breakpoint GDB prints is *outside* `main' (I can see all the
addresses of instructions in `main' by typing "disassemble main" at the
GDB prompt).
So I would tend to think that the C++ compiler has some bug in the COFF
debug info it produces in this case. If you have GCC 2.8.1 installed,
you might try compiling with -gstabs instead of -g and see if that helps
(this will force the compiler to produce debug info in the STABS format,
which has less limitations and misfeatures than COFF).
- Raw text -