🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

1 total messages Started by "Douglas C. Schmidt" Sat, 15 Oct 1988 21:02
Problem with <stream.h> and gdb+
#1503
Author: "Douglas C. Schmidt"
Date: Sat, 15 Oct 1988 21:02
53 lines
2257 bytes
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
Thread Navigation

This is a paginated view of messages in the thread with full content displayed inline.

Messages are displayed in chronological order, with the original post highlighted in green.

Use pagination controls to navigate through all messages in large threads.

Back to All Threads