schmidt%beaver.ics.uci.edu@ORION.CF.UCI.EDU ("Douglas C. Schmidt") (10/16/88)
Hi,
I'm getting a strange problem with g++ 1.27 on Sun 3's in conjunction
with gdb+ 2.8.0. Whenever I use the stream operator ``cout'' to output
information the debugger can't seem to deal with it. When I use
printf there is no problem. Here's a transcript of the problems.
----------------------------------------
Script started on Sat Oct 15 13:58:08 1988
: cat test.c
#include <stream.h>
main() {
cout << 10;
}
: g++ -v -g test.c
g++ version 1.27.0
/usr/public/lib/g++/gcc-cpp+ -v -I/cd/ua/schmidt/include/ -undef -D__GNU__ -D__GNUG__ -Dmc68000 -Dsun -Dunix -D__HAVE_FPU__ -Dmc68020 test.c /tmp/cca26099.cpp
GNU CPP version 1.27.0
/usr/public/lib/g++/gcc-c++ /tmp/cca26099.cpp -quiet -dumpbase test.c -fchar-charconst -g -version -o /tmp/cca26099.s
GNU C++ version 1.27.0 (68k, MIT syntax) compiled by GNU C version 1.28.
as -mc68020 /tmp/cca26099.s -o test.o
/usr/public/lib/g++/gcc-ld++ -C -dc -dp /usr/public/lib/g++/crt0+.o /lib/Mcrt1.o test.o /cd/ua/schmidt/lib/sun3/mylib.a /cd/ua/schmidt/lib/sun3/strlib.a -lg++ /usr/public/lib/g++/gcc-gnulib+ -lg -lc
: gdb+ a.out
GDB 2.8.0 (GNU C++ 1.27.0 compatible), Copyright (C) 1988 Free Software Foundation, Inc.
There is ABSOLUTELY NO WARRANTY for GDB; type "info warranty" for details.
GDB is free software and you are welcome to distribute copies of it
under certain conditions; type "info copying" to see the conditions.
Reading symbol data from /cd/ua/schmidt/a.out...Invalid symbol data:
invalid character \075 at symbol pos 237.
Type "help" for a list of commands.
(gdb+) break main
Function main not defined.
(gdb+) quit
: exit
exit
script done on Sat Oct 15 13:58:48 1988
----------------------------------------
Incidentally, this works fine on the Sun 4's.
Any hints?
Doug