gdb
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Gdb] gdb doesn't recognize struct (Solaris, C++)


From: Gary Rosenfeld
Subject: [Gdb] 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




reply via email to

[Prev in Thread] Current Thread [Next in Thread]