I'm using python to analysis a core dump, and there is a variable named my_map having type std:map<int, MyObj*>. I have got the gdb.Value object:
py_val = gdb.parse_and_eval('my_map')
and when I tried to iterate it with following code:
for key in py_val:
print(key)
I got an error: TypeError: 'gdb.Value' object is not iterable
How to iterate the std::map in gdb using python?