Bug #13626 2008-04-17 08:01

filofel

watch window display garbeld

The watch window has trouble displaying certain values (of type "Undefined"), then gets confused and garbles the watch window display when it hits them. 
To make matter worse, it doesn't always show the "Edit watch" option in the right click menu that would allow turning the problematic value display from "Undefined" to "Hexadecimal" to work around the issue.

Using a structure such as:

typedef struct nvd_init_s
  {
    uint32_t  opcode;       /*  NVD_INIT (10) */
    uint32_t  seq;          /*  sequence number */
    uint16_t  protocol_version;  /*  major version number of client protocol */
    uint16_t  protocol_revision; /*  minor version number of client protocol */
    uint8_t   mac[6] ;      /*  client MAC Address */
  }  nvd_init_t ;

and local values such as:
  nvd_init_t      packet;
  int                 len;
  char              buffer[NVD_MAX_PACKET_SIZE];

the watch display chokes on packet.mac when mac contains 0x0, 0xf, Oxb0, 0x43, 0x74, 0x63
The watch window shows:
mac="\000\017#n=288,buffer = "\000\000 (etc).
where # above is in fact a funny graphic char: A square seemingly containing 0 0 0 4, on two rows.
the following n=288 is actually the end of the display of 
len = 288 that should be displayed below "packet" (rather than as a structure element) in the local variables.
Ditto for buffer, etc.

I have screenshot of the garbled display if needed.

Thanks!
Category
Debugger
Group
 
Status
Closed
Close date
2012-10-17 18:52
Assigned to
tpetrov
tpetrov 2012-04-30 21:28

This bug is now fixed in HEAD.

Thank you for reporting it.

tpetrov 2012-10-17 18:52

This bug should be fixed in the lastest nightlies, which use totally redesigned Watch window.