🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

1 total messages Started by Shinichirou Sugou Wed, 31 May 1989 08:12
Unhappy gdb-3.1 with g++-1.35.1
#2058
Author: Shinichirou Sugou
Date: Wed, 31 May 1989 08:12
53 lines
2552 bytes
The problem may reside in my computer system because this problem is too
primitive.

gdb-3.1 (gdb+-2.8, too) can't read ANY program which is compiled by
g++-1.35.0 (or g++-1.35.1) with '-g' option.

Warning message "Invalid symbol data: unrecognized type-code `#' at symtab pos
27" appears when I set breakpoint.

System: Sun3/60 with SunOS3.4, g++-1.35.0 (and g++-1.35.1), gdb-3.1 (and
gdb+-2.8).

------example program start------------------------------
#include	<stream.h>

main()
{
        cout << "hello, world\n";
}
------example program end-------------------------------

------shell recording start----------------------
shin% g++ -g -v tmp2.cc -o tmp2
g++ version 1.35.1-
 /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 tmp2.cc /tmp/cca13678.cpp
GNU CPP version 1.35
 /usr/local/lib/gcc-cc1plus /tmp/cca13678.cpp -quiet -dumpbase tmp2.cc -noreg -version -G -o /tmp/cca13678.s
GNU C++ version 1.35.1- (68k, MIT syntax) compiled by GNU C version 1.35.
 as -mc68020 /tmp/cca13678.s -o tmp2.o
 /usr/local/lib/gcc-ld++ -o tmp2 -C /usr/local/lib/crt0+.o /lib/Mcrt1.o tmp2.o -lg++ /usr/local/lib/gcc-gnulib -lg -lc
shin% gdb tmp2
GDB 3.1, 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 /mnt1/usr/usr1/shin/workshop/tmp2...done.
Type "help" for a list of commands.
(gdb) b main
Invalid symbol data: unrecognized type-code `#' at symtab pos 27.
(gdb) 
------shell recording end------------------------


Is there anyone who have the same problem?

CAUTION: Reply-command supplied by your mail system may NOT generate
         my address correctly.
         Please use the following address instead.

         shin%sgtp.apple.juice%lkbreth.foretune.junet@uunet.uu.net

---
  Shinichirou Sugou   shin%sgtp.apple.juice%lkbreth.foretune.junet@uunet.uu.net
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