Thread View: gnu.g++.bug
2 messages
2 total messages
Started by Robert Kelley
Tue, 10 Oct 1989 18:23
g++-1.35-1 and gdb3.2 seem to misunderstand the following
Author: Robert Kelley
Date: Tue, 10 Oct 1989 18:23
Date: Tue, 10 Oct 1989 18:23
36 lines
1777 bytes
1777 bytes
It seems that g++-1.35.1- and gdb3.2 have some difficulty with the following:
$ cat foo.c
struct Foo {
enum FooEnum { FOO_0, FOO_1 };
int a;
Foo() { a = FOO_0; }
};
int main(int argc, char** argv, char** envp)
{
struct Foo bar;
return bar.a;
}
$ g++ -v -g -o foo foo.c
g++ version 1.36.0-
/usr/local/lib/gcc-cpp -+ -v -undef -D__GNU__ -D__GNUG__ -D__GNUC__ -D__cplusplus -Dunix -Di386 -Dsequent -D__unix__ -D__i386__ -D__sequent__ f
oo.c /tmp/cc012322.cpp
GNU CPP version 1.36
/usr/local/lib/gcc-cc1plus /tmp/cc012322.cpp -quiet -dumpbase foo.c -noreg -version -G -o /tmp/cc012322.s
GNU C++ version 1.35.1- (80386, BSD syntax) compiled by GNU C version 1.35.
as /tmp/cc012322.s -o foo.o
/usr/local/lib/gcc-ld++ -o foo -C /usr/local/lib/crt0+.o foo.o /usr/local/lib/libg++.a /usr/local/lib/gcc-gnulib -lg -lc
$ gdb foo
GDB 3.2, 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 /crg3/ui/rjk/play/foo...done.
Type "help" for a list of commands.
(gdb) b main
Reading in symbols for foo.c...Invalid symbol data: bad structure-type format at symtab pos 20.
(gdb) q
$
Debugger `unexpected value' (WAS: g++-1.35-1 and gdb3.2 ...)
Author: David Keppel
Date: Mon, 16 Oct 1989 15:06
Date: Mon, 16 Oct 1989 15:06
29 lines
1514 bytes
1514 bytes
In article <22994@sequent.UUCP> rjk@sequent.UUCP (Robert Kelley) writes:
>It seems that g++-1.35.1- and gdb3.2 have some difficulty with the following:
>[...]
>(gdb) b main
>Reading in symbols for foo.c...Invalid symbol data: bad structure-type format at symtab pos 20.
I'm having similar problems on a VAX w/ g++ 1.34.2 & gdb 3.1.1 &
gdb+ 2.8.1 (gdb+ just to be sure...).
Symptoms:
gdb: invalid symtab info for method at symbol number 21
dbx: ...dbx: internal error: unexpected value 47 at line 941 in file stabstring.c
gdb+: Invalid symbol data: unrecognized type-code `#' at symtab pos 105.
If anybody cares I can
* Poke around to find out what's going on (if somebody gives me some
help).
* Ship off the sources for the failing program.
* Ignore the problem (assuming it's been fixed).
* Take other suggestions about what I should do.
;-D on ( Another message by de bugger ) Pardo
--
pardo@cs.washington.edu
{rutgers,cornell,ucsd,ubc-cs,tektronix}!uw-beaver!june!pardo
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