in gdb, when print an element of vector<bool>, it returns the offset of
the bi
t
 instead of the value.
e.g: (visible is of type vector<bool>)
(gdb) p layout._visible[3]
$15 = {_M_p = 0x9817d00, _M_mask = 8}
 (gdb) p layout._visible[3] & 0x80
Structure has no component named operator&.
(gdb)

How to display its real value?

No such problem when debugging on VC    
thanks a lot

_______________________________________________
help-gnu-utils mailing list
help-gnu-utils@gnu.org
http://lists.gnu.org/mailman/listinfo/help-gnu-utils

Reply via email to