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 - Members of unnamed union are not shown
Summary: Members of unnamed union are not shown
Status: NEW
Alias: None
Product: cnd
Classification: Unclassified
Component: Debugger (show other bugs)
Version: 6.x
Hardware: All All
: P4 blocker (vote)
Assignee: Maria Tishkova
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-11-05 16:43 UTC by Alexander Pepin
Modified: 2016-07-06 14:39 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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"