forked from qt-creator/qt-creator
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: Christian Stenger <christian.stenger@theqtcompany.com>
This commit is contained in:
@@ -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)
|
|||||||
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);
|
||||||
|
Reference in New Issue
Block a user