bryan@UUNET.UU.NET (Bryan Boreham) (06/28/89)
This is the same bug I reported some weeks back, but with a clear
example:
kewill% cat gdb-bug.cc
class foo
{
public:
void x(class bar* ...);
};
void main() {}
I compile this on a Sun 3/280 running SunOS 3.5:
kewill% g++ -v -g gdb-bug.cc
g++ version 1.35.1-
/usr/local/lib/gcc-cpp -+ -v -undef -D__GNU__ -D__GNUG__ -D__cplusplus -Dmc6800
0 -Dsun -Dunix -D__mc68000__ -D__sun__ -D__unix__ -D__HAVE_68881__ -Dmc68020 gdb
-bug.cc /tmp/cca13192.cpp
GNU CPP version 1.35
/usr/local/lib/gcc-cc1plus /tmp/cca13192.cpp -quiet -dumpbase gdb-bug.cc -noreg
-version -G -o /tmp/cca13192.s
GNU C++ version 1.35.1- (68k, MIT syntax) compiled by GNU C version 1.35.
as -mc68020 /tmp/cca13192.s -o gdb-bug.o
/usr/local/lib/gcc-ld++ -C /usr/local/lib/crt0+.o /lib/Mcrt1.o gdb-bug.o -lg++
/usr/local/lib/gcc-gnulib -lg -lc
I run the debugger and try to set a breakpoint:
kewill% gdb a.out
GDB 3.1.2.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 /usr2/bryan/cycle1/a.out...done.
Type "help" for a list of commands.
(gdb) break main
Segmentation fault (core dumped)
kewill%
I believe the problem is with the parameter list, which has
"21=*22=xsbar:;" in it, and the debugger expects to see a comma
after bar (This is in dbxread.c, line 3568).
My gdb is gdb 3.1.2, with some patches supplied by Ron Guilmette.
Bryan Boreham bryan@kewill.uucp
Software Engineer || bryan%kewill@uunet.uu.net
Kewill Systems PLC || ... uunet!mcvax!ukc!root44!kewill!bryan
Walton-On-Thames
Surrey, England Telephone: (+44) 932 248 328