Debugger: Make LLDB startup user-configurable

... by reusing GDB startup command settings

Task-number: QTCREATORBUG-15584
Change-Id: I24a04ac8608f0c37374ff9c1d93d509a811d8942
Reviewed-by: Alexandru Croitor <alexandru.croitor@theqtcompany.com>
Reviewed-by: hjk <hjk@theqtcompany.com>
This commit is contained in:
hjk
2016-04-13 18:55:35 +02:00
parent c0fabbe169
commit 4ba5dfccf5

View File

@@ -283,6 +283,10 @@ void LldbEngine::startLldbStage2()
m_lldbProc.write("script from lldbbridge import *\n"); m_lldbProc.write("script from lldbbridge import *\n");
m_lldbProc.write("script print(dir())\n"); m_lldbProc.write("script print(dir())\n");
m_lldbProc.write("script theDumper = Dumper()\n"); // This triggers reportState("enginesetupok") m_lldbProc.write("script theDumper = Dumper()\n"); // This triggers reportState("enginesetupok")
const QString commands = expand(stringSetting(GdbStartupCommands));
if (!commands.isEmpty())
m_lldbProc.write(commands.toLocal8Bit());
} }
void LldbEngine::setupInferior() void LldbEngine::setupInferior()