srini%artm14@UUNET.UU.NET (Srini Sankaran) (11/30/89)
gdb makes a mistake in printing "whatis" information on pointer-to-a-pointer
to a struct. To reproduce the bug, do the following:
1. gcc -g foo.c -o foo
2. gdb foo
3. break main
4. whatis foo
5. whatis bar
If you look at the gdb output to steps 4 & 5 above, they are the same.
However one is a ptr to a struct and the other is ptr-to-ptr to a struct.
Environment: AT&T 6386 WGS with Interactive Systems' Sys V Unix
-srini...
nancy!srini@uunet.uu.net
------------------BEGIN foo.c---------------
typedef struct
{
int a;
} *foo_ptype;
void main(int argc, char* argv[])
{
foo_ptype foo, *bar;
foo = 0;
}
-----------END foo.c--------------