Debugger: Make "debug last command" button work for LLDB

Change-Id: I0ac7a531a7537e9e41055d815bdf204c7ec4a73d
Reviewed-by: hjk <hjk121@nokiamail.com>
This commit is contained in:
hjk
2014-01-09 15:37:04 +01:00
parent 4ae7d5cd1b
commit 975a23c6bd
2 changed files with 10 additions and 0 deletions

View File

@@ -120,6 +120,11 @@ void LldbEngine::runCommand(const Command &command)
m_lldbProc.write(cmd); m_lldbProc.write(cmd);
} }
void LldbEngine::debugLastCommand()
{
runCommand(m_lastDebuggableCommand);
}
void LldbEngine::shutdownInferior() void LldbEngine::shutdownInferior()
{ {
QTC_ASSERT(state() == InferiorShutdownRequested, qDebug() << state()); QTC_ASSERT(state() == InferiorShutdownRequested, qDebug() << state());
@@ -829,6 +834,9 @@ void LldbEngine::doUpdateLocals(UpdateParameters params)
//cmd.arg("resultvarname", m_resultVarName); //cmd.arg("resultvarname", m_resultVarName);
m_lastDebuggableCommand = cmd;
m_lastDebuggableCommand.args.replace("\"passexceptions\":0", "\"passexceptions\":1");
runCommand(cmd); runCommand(cmd);
reloadRegisters(); reloadRegisters();

View File

@@ -192,6 +192,8 @@ private:
QList<WatchData> *list); QList<WatchData> *list);
void runCommand(const Command &cmd); void runCommand(const Command &cmd);
void debugLastCommand();
Command m_lastDebuggableCommand;
QByteArray m_inbuffer; QByteArray m_inbuffer;
QString m_scriptFileName; QString m_scriptFileName;