[prev in list] [next in list] [prev in thread] [next in thread] 

List:       gdb-bugs
Subject:    gdb doesn't recognize struct (Solaris, C++)
From:       "Gary Rosenfeld" <g_rosenfeld () hotmail ! com>
Date:       2001-11-21 15:30:29
Message-ID: F13y3CQmWoL6xHRcjnN000094a7 () hotmail ! com
[Download RAW message or body]

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 list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic