gdb 带着python支持时
可以将map相关的信息打印出来;效果是:
map<string,string>::iterator dfe;
dfe = {
first = “Password\000\000\000\000\000\000\000\000!\000\000\00”…<Address 0xa02e000 out of bounds>,
second = “abcde\000\000!\000\000\000”…<Address 0xa02e000 out of bounds>}
iter =
StringMap.insert( pair<string,string>( “User”, “abcde”))
(gdb) p StringMap
$1 = std::map with 1 elements = {[“User”] = “abcde”}
gdb不带python脚本的话,dump map
m_result = {
_M_t