I'm having a problem with gdb is not able to recognize structures for
SunSolaris C++ programs.
OS: Solaris 2.6
gdb: GNU gdb 4.17
C++: WorkShop Compilers 4.2 30 Oct 1996 C++ 4.2
Test Sample test.c
main()
{
int a;
struct st
{ int x;
int y;
} st1;
st1.x=6;
}
Test results:
(gdb) ptype st1
type = struct <unknown>
(gdb) p st1
$1 = <incomplete type>
(gdb) p a
$2 = 0
Note: The same test program works fine with the c compiler:
WorkShop Compilers 4.2 30 Oct 1996 C 4.2
I couldn't find any mentioning of this anywhere. Is it bug, is a fix
available.
Thank you,
Gary Rosenfeld
_________________________________________________________________
Get your FREE download of MSN Explorer at http://explorer.msn.com/intl.asp
_______________________________________________
Bug-gdb mailing list
[EMAIL PROTECTED]
http://mail.gnu.org/mailman/listinfo/bug-gdb