[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
gdb doesn't recognize struct (Solaris, C++)
From: |
Gary Rosenfeld |
Subject: |
gdb doesn't recognize struct (Solaris, C++) |
Date: |
Wed, 21 Nov 2001 15:30:29 +0000 |
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
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- gdb doesn't recognize struct (Solaris, C++),
Gary Rosenfeld <=