Commit 4c928f60 authored by hjk's avatar hjk

Debugger: Disable GDB's own pretty printers when use is not wanted

Saves up to 20% on large uniform structures.

Change-Id: I98c8c942f0accac7e2db1d8b06bf7ed156967306
Reviewed-by: default avatarChristian Stenger <christian.stenger@theqtcompany.com>
parent e2f12fa0
...@@ -184,7 +184,10 @@ class PlainDumper: ...@@ -184,7 +184,10 @@ class PlainDumper:
d.putSubItem(child[0], child[1]) d.putSubItem(child[0], child[1])
def importPlainDumpers(args): def importPlainDumpers(args):
theDumper.importPlainDumpers() if args == "off":
gdb.execute("disable pretty-printer .* .*")
else:
theDumper.importPlainDumpers()
registerCommand("importPlainDumpers", importPlainDumpers) registerCommand("importPlainDumpers", importPlainDumpers)
......
...@@ -1534,7 +1534,9 @@ void GdbEngine::handleStop1(const GdbMi &data) ...@@ -1534,7 +1534,9 @@ void GdbEngine::handleStop1(const GdbMi &data)
if (!m_systemDumpersLoaded) { if (!m_systemDumpersLoaded) {
m_systemDumpersLoaded = true; m_systemDumpersLoaded = true;
if (m_gdbVersion >= 70400 && boolSetting(LoadGdbDumpers)) if (m_gdbVersion >= 70400 && boolSetting(LoadGdbDumpers))
postCommand("importPlainDumpers"); postCommand("importPlainDumpers on");
else
postCommand("importPlainDumpers off");
} }
handleStop2(data); handleStop2(data);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment