forked from qt-creator/qt-creator
Debugger: Make "debug last command" button work for LLDB
Change-Id: I0ac7a531a7537e9e41055d815bdf204c7ec4a73d Reviewed-by: hjk <hjk121@nokiamail.com>
This commit is contained in:
@@ -120,6 +120,11 @@ void LldbEngine::runCommand(const Command &command)
|
||||
m_lldbProc.write(cmd);
|
||||
}
|
||||
|
||||
void LldbEngine::debugLastCommand()
|
||||
{
|
||||
runCommand(m_lastDebuggableCommand);
|
||||
}
|
||||
|
||||
void LldbEngine::shutdownInferior()
|
||||
{
|
||||
QTC_ASSERT(state() == InferiorShutdownRequested, qDebug() << state());
|
||||
@@ -829,6 +834,9 @@ void LldbEngine::doUpdateLocals(UpdateParameters params)
|
||||
|
||||
//cmd.arg("resultvarname", m_resultVarName);
|
||||
|
||||
m_lastDebuggableCommand = cmd;
|
||||
m_lastDebuggableCommand.args.replace("\"passexceptions\":0", "\"passexceptions\":1");
|
||||
|
||||
runCommand(cmd);
|
||||
|
||||
reloadRegisters();
|
||||
|
||||
@@ -192,6 +192,8 @@ private:
|
||||
QList<WatchData> *list);
|
||||
|
||||
void runCommand(const Command &cmd);
|
||||
void debugLastCommand();
|
||||
Command m_lastDebuggableCommand;
|
||||
|
||||
QByteArray m_inbuffer;
|
||||
QString m_scriptFileName;
|
||||
|
||||
Reference in New Issue
Block a user