[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
how to print vector<bool> value in gdb?
From: |
huomingxu |
Subject: |
how to print vector<bool> value in gdb? |
Date: |
2 May 2006 21:07:55 -0700 |
User-agent: |
G2/0.2 |
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
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- how to print vector<bool> value in gdb?,
huomingxu <=