This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
debug info on IRIX is broken
- To: gcc-bugs at gcc dot gnu dot org
- Subject: debug info on IRIX is broken
- From: jarausch at igpm dot rwth-aachen dot de
- Date: Thu, 15 Feb 2001 09:03:12 +0100
- Reply-To: jarausch at igpm dot rwth-aachen dot de
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