Mail Archives: djgpp/2000/07/14/13:31:03
David Lee <keeyu AT poetic DOT com> wrote:
> I write a little program:
You don't tell, but you compile and execute this with DJGPP, the DOS
port of GNU utilities.
[...]
> (gdb) s
> 11 _farpokeb(sel, 0, 2);
> (gdb) s
> _farpokeb (selector=287, offset=0, value=2) at test.cpp:89
> Line number 89 out of range; test.cpp has 17 lines.
This is a well-known problem (covered by the DJGPP FAQ, indeed),
caused by the inability of COFF debug information to account for code
coming from more than one file (test.cpp and the header file defining
_farpokeb() as an inline function, in this case).
Compile with
gxx -gstabs+ test.cpp
or
gxx -ggdb test.cpp
and the problem should to away.
--
Hans-Bernhard Broeker (broeker AT physik DOT rwth-aachen DOT de)
Even if all the snow were burnt, ashes would remain.
- Raw text -