debug info on IRIX is broken
jarausch@igpm.rwth-aachen.de
jarausch@igpm.rwth-aachen.de
Thu Feb 15 00:03:00 GMT 2001
Hi,
the current (20010214) g++ version seems to generate invalid
output for the debugger. (gdb 4.17 and current gdb 5.0-CVS)
Although the trivial test
#include <iostream>
int main() {
std::cout << "Hello World\n";
}
works (seems to be well tested)
I get the following problems with a tiny
bit larger test
#include <string>
using std::string;
#include <iostream>
int main() {
string Input1(" word1 word2\n word3\n");
std::cout << Input1;
}
/*
(gdb) l
Line number 158 out of range; T1.C has 26 lines.
(gdb) l 1
works BUT
b 8
Breakpoint 1 at 0x0: file T1.C, line 8.
run
warning: Cannot insert breakpoint 1:
Cannot access memory at address 0x0
*/
It seems to be a g++ bug, since code
generated by my SGI's CC works fine
with theses debuggers.
Many thanks for looking into that!
--
Helmut Jarausch
Lehrstuhl fuer Numerische Mathematik
Institute of Technology, RWTH Aachen
D 52056 Aachen, Germany
More information about the Gcc-bugs
mailing list