Debugger: Add an option to import plain gdb pretty printers

This enables the use "official gdb"-styly pretty printers from
within Creator. In case there are both variants, Creator-style
pretty printers are preferred.

Change-Id: Iaa178d922dae4eaa1943e9d5b960a666f80fe4db
Reviewed-by: hjk <hjk121@nokiamail.com>
This commit is contained in:
hjk
2013-03-21 17:32:34 +01:00
parent e1c4f12de4
commit e14bbccb04
5 changed files with 28 additions and 0 deletions

View File

@@ -262,6 +262,7 @@ GdbEngine::GdbEngine(const DebuggerStartParameters &startParameters)
m_disassembleUsesComma = false;
m_terminalTrap = startParameters.useTerminal;
m_fullStartDone = false;
m_systemDumpersLoaded = false;
m_forceAsyncModel = false;
m_pythonAttemptedToLoad = false;
@@ -1606,6 +1607,12 @@ void GdbEngine::handleStop1(const GdbMi &data)
else
m_resultVarName.clear();
if (!m_systemDumpersLoaded) {
m_systemDumpersLoaded = true;
if (debuggerCore()->boolSetting(LoadGdbDumpers))
postCommand("importPlainDumpers");
}
bool initHelpers = m_debuggingHelperState == DebuggingHelperUninitialized
|| m_debuggingHelperState == DebuggingHelperLoadTried;
// Don't load helpers on stops triggered by signals unless it's