Unfortunately, the pretty-printed code in gdb is a display-only function, so when it helps to display a tuple in a great way, it does not allow you to access it.
- t.get<0> , , . , gdb "xmethod", Python gdb, info xmethods ( ), std::tuple.
, : . , :
(gdb) p/r t
$3 = {<std::_Tuple_impl<0ul, int, int>> = {<std::_Tuple_impl<1ul, int>> = {<std::_Head_base<1ul, int, false>> = {
_M_head_impl = 222}, <No data fields>}, <std::_Head_base<0ul, int, false>> = {_M_head_impl = 111}, <No data fields>}, <No data fields>}
"" :
(gdb) print ((std::_Head_base<1ul, int, false>) t)._M_head_impl
$7 = 222
- , ? , gdb _M_head_impl. , xmethod. Python ; API Python.