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 - Watch on a C UNION not displaying properly
Summary: Watch on a C UNION not displaying properly
Status: RESOLVED INCOMPLETE
Alias: None
Product: cnd
Classification: Unclassified
Component: Debugger (show other bugs)
Version: 8.0
Hardware: PC Windows 7
: P3 normal (vote)
Assignee: henk89
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2015-05-27 11:15 UTC by r_evans
Modified: 2015-07-09 15:13 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 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?