Path: utzoo!utgpu!jarvis.csri.toronto.edu!rutgers!tut.cis.ohio-state.edu!sgtp.apple.juice!shin From: shin@sgtp.apple.juice (Shinichirou Sugou) Newsgroups: gnu.g++.bug Subject: Unhappy gdb-3.1 with g++-1.35.1 Message-ID: <8905310812.AA13724@sgtp.apple.juice> Date: 31 May 89 08:12:38 GMT Sender: daemon@tut.cis.ohio-state.edu Distribution: gnu Organization: GNUs Not Usenet Lines: 53 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 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