Fixes: debugger: implement custom dumpers for std::set

Task:     246286
This commit is contained in:
hjk
2009-03-11 13:31:38 +01:00
parent 99805d3c3e
commit d3f8d16f88
4 changed files with 80 additions and 0 deletions

View File

@@ -3195,6 +3195,11 @@ void GdbEngine::runCustomDumper(const WatchData &data0, bool dumpChildren)
} else if (outertype == "std::stack") {
// remove 'std::allocator<...>':
extraArgs[1] = "0";
} else if (outertype == "std::set") {
// remove 'std::less<...>':
extraArgs[1] = "0";
// remove 'std::allocator<...>':
extraArgs[2] = "0";
} else if (outertype == "std::map") {
// We don't want the comparator and the allocator confuse gdb.
// But we need the offset of the second item in the value pair.