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,6 +184,9 @@ class PlainDumper:
d.putSubItem(child[0], child[1])
def importPlainDumpers(args):
if args == "off":
gdb.execute("disable pretty-printer .* .*")
else:
theDumper.importPlainDumpers()
registerCommand("importPlainDumpers", importPlainDumpers)
......
......@@ -1534,7 +1534,9 @@ void GdbEngine::handleStop1(const GdbMi &data)
if (!m_systemDumpersLoaded) {
m_systemDumpersLoaded = true;
if (m_gdbVersion >= 70400 && boolSetting(LoadGdbDumpers))
postCommand("importPlainDumpers");
postCommand("importPlainDumpers on");
else
postCommand("importPlainDumpers off");
}
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