how to print vector<bool> value in gdb?

[email protected]
Newsgroups gmane.comp.gnu.utils
Organization http://groups.google.com
Message-ID <[email protected]>
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
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.