10/06/08 06:25:05
これって知ってた?
URLリンク(sourceware.org)
試したらこんな事が出来て涙が出た。
(gdb) list
7 map<char*, int> test;
8
9 test["hoge"] = 111;
10 test["mage"] = 222;
11 test["moge"] = 333;
12 }
(gdb) p test
$1 = std::map with 3 elements = {
[0x8049760 "hoge"] = 111,
[0x8049765 "mage"] = 222,
[0x804976a "moge"] = 333
}