[gnu.g++.bug] g++ vs. Sun dbx

deeb@nueng.ai.mit.edu (Stephen Humble) (10/25/89)

(My mailer is broken, so the From field is probably wrong. I am
"deeb@nueng.coe.northeastern.edu".)

dbx from SunOS 4.0 doesn't like g++ output. gdb 3.2 has no problems.
It would be nice if I could use both debuggers...

Using g++ version 1.35, SunOS 4.0, Sun dbx, and the following program:

----------Cut Here------------------------------Cut Here-------------
#include <stream.h>

main()
{
    cout << "Hello, world.\n";
}

----------Cut Here------------------------------Cut Here-------------

9$ g++ -v hello.cc
g++ version 1.35.0
 /usr/local/lib/gcc-cpp -+ -v -undef -D__GNU__ -D__GNUG__ -D__cplusplus -Dmc68000 -Dsun -Dunix -D__mc68000__ -D__sun__ -D__unix__ -D__HAVE_68881__ -Dmc68020 hello.cc /tmp/cca01417.cpp
GNU CPP version 1.35
 /usr/local/lib/gcc-cc1plus /tmp/cca01417.cpp -quiet -dumpbase hello.cc -noreg -version -o /tmp/cca01417.s
GNU C++ version 1.35.0 (68k, MIT syntax) compiled by GNU C version 1.35.
 as -mc68020 /tmp/cca01417.s -o hello.o
 /usr/local/lib/gcc-ld++ -C -dc -dp /usr/local/lib/crt0+.o /lib/Mcrt1.o hello.o -lg++ /usr/local/lib/gcc-gnulib -lc
10$ dbx a.out
Reading symbolic information...
dbx: internal error: unexpected value 47 at line 2019 in file ../common/object.c 
11$ a.out
Hello, world.
12$