This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

Bug 176062

Summary: Members of unnamed union are not shown
Product: cnd Reporter: Alexander Pepin <apepin>
Component: DebuggerAssignee: Maria Tishkova <mromashova>
Status: NEW ---    
Severity: blocker    
Priority: P4    
Version: 6.x   
Hardware: All   
OS: All   
Issue Type: DEFECT Exception Reporter:

Description Alexander Pepin 2009-11-05 16:43:49 UTC
Steps to reproduce:
- create simple application using the following source:

int main(int argc, char**argv) {
    union{
        int value;
        unsigned char ch[4];
    };
    value = 0xabcdef01;
    int val = 0;
    for(int i=0; i<4; i++){
        val = ch[i];
    }
    return 0;
}

- start debugging
- open Variables
Result: Neither 'value' nor 'ch' are displayed in Variables. Watches give <text variable, no debug info> and <data
variable, no debug info> correspondingly.
Comment 1 Egor Ushakov 2009-11-09 09:31:29 UTC
it looks like this bug is platform dependent,
on OpenSolaris I'm having the same behavior with gdb 6.6, 6.8 and 7.0 - value is NOT shown
Comment 2 Alexander Pepin 2009-12-08 08:09:02 UTC
It's reproducible on Windows and Solaris with gdb 6.8. 
It works correctly only on Linux.
Comment 3 Egor Ushakov 2010-03-26 14:01:52 UTC
Unnamed union members are not visible from console gdb also, not the IDE issue.
Still need to do something with "no debug info" in variable type and value.
Comment 4 soldatov 2011-03-15 10:35:22 UTC
On elif some test is marked as "Known Failure"