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 252611

Summary: Watch on a C UNION not displaying properly
Product: cnd Reporter: r_evans
Component: DebuggerAssignee: henk89
Status: RESOLVED INCOMPLETE    
Severity: normal    
Priority: P3    
Version: 8.0   
Hardware: PC   
OS: Windows 7   
Issue Type: DEFECT Exception Reporter:

Description r_evans 2015-05-27 11:15:38 UTC
Product Version = MPLAB X IDE v3.00
Operating System = Windows 7 version 6.1 running on amd64
Java; VM; Vendor = 1.7.0_67
Runtime = Java HotSpot(TM) 64-Bit Server VM 24.65-b04

I have 
typedef union                                                                                       
{                                                                                                   
    RF_BUFF_STRUCT_T    rf_data_pkt;                                                                
    byte                buff[ sizeof( RF_BUFF_STRUCT_T ) ];                                         
} RF_BUFF_T;                                                                                        
                                                                                                    
                                                                                                    
static RF_BUFF_T   rf_transmit_buff;            //buffer of rf message about to transmit            



A watch on "rf_transmit_buff" gives drop downs for  "rf_data_pkt" and "buff".  if I open "buff" it shows all zero's data.
However if I put a watch on "rf_transmit_buff.buff" it shows the correct data.
Comment 1 henk89 2015-07-09 14:10:04 UTC
Could you please attach a gdb log?