work save
This commit is contained in:
parent
b359004f95
commit
b83c45782b
|
@ -692,6 +692,12 @@ void Debugger::evalExpression(const QString &expression)
|
|||
mClient->evalExpression(expression);
|
||||
}
|
||||
|
||||
void Debugger::selectFrame(PTrace trace)
|
||||
{
|
||||
if (mClient)
|
||||
mClient->selectFrame(trace);
|
||||
}
|
||||
|
||||
void Debugger::refreshFrame()
|
||||
{
|
||||
if (mClient) {
|
||||
|
@ -699,6 +705,12 @@ void Debugger::refreshFrame()
|
|||
}
|
||||
}
|
||||
|
||||
void Debugger::refreshStackVariables()
|
||||
{
|
||||
if (mClient)
|
||||
mClient->refreshStackVariables();
|
||||
}
|
||||
|
||||
void Debugger::refreshRegisters()
|
||||
{
|
||||
if (mClient)
|
||||
|
|
|
@ -349,11 +349,13 @@ public:
|
|||
void sendAllWatchVarsToDebugger();
|
||||
PWatchVar findWatchVar(const QString& expression);
|
||||
PWatchVar watchVarAt(const QModelIndex& index);
|
||||
void refreshVars();
|
||||
void refreshWatchVars();
|
||||
|
||||
void readMemory(const QString& startAddress, int rows, int cols);
|
||||
void evalExpression(const QString& expression);
|
||||
void selectFrame(PTrace trace);
|
||||
void refreshFrame();
|
||||
void refreshStackVariables();
|
||||
void refreshRegisters();
|
||||
void disassembleCurrentFrame(bool blendMode);
|
||||
void setDisassemblyLanguage(bool isIntel);
|
||||
|
@ -412,7 +414,6 @@ private slots:
|
|||
void cleanUpReader();
|
||||
void updateRegisterNames(const QStringList& registerNames);
|
||||
void updateRegisterValues(const QHash<int,QString>& values);
|
||||
void refreshWatchVars();
|
||||
void fetchVarChildren(const QString& varName);
|
||||
private:
|
||||
bool mExecuting;
|
||||
|
@ -535,6 +536,7 @@ public:
|
|||
|
||||
virtual void evalExpression(const QString& expression) = 0;
|
||||
|
||||
virtual void selectFrame(PTrace trace) = 0;
|
||||
virtual void refreshFrame() = 0;
|
||||
virtual void refreshRegisters() = 0;
|
||||
virtual void disassembleCurrentFrame(bool blendMode) = 0;
|
||||
|
|
|
@ -1025,6 +1025,12 @@ void GDBMIDebuggerClient::evalExpression(const QString &expression)
|
|||
postCommand("-data-evaluate-expression", expression);
|
||||
}
|
||||
|
||||
void GDBMIDebuggerClient::selectFrame(PTrace trace)
|
||||
{
|
||||
if (trace)
|
||||
postCommand("-stack-select-frame", QString("%1").arg(trace->level));
|
||||
}
|
||||
|
||||
void GDBMIDebuggerClient::refreshFrame()
|
||||
{
|
||||
postCommand("-stack-info-frame", "");
|
||||
|
|
|
@ -8771,8 +8771,8 @@ void MainWindow::switchCurrentStackTrace(int idx)
|
|||
e->setCaretPositionAndActivate(trace->line,1);
|
||||
}
|
||||
mDebugger->sendCommand("-stack-select-frame", QString("%1").arg(trace->level));
|
||||
mDebugger->sendCommand("-stack-list-variables", "--all-values");
|
||||
mDebugger->sendCommand("-var-update", "--all-values *");
|
||||
mDebugger->refreshStackVariables();
|
||||
mDebugger->refreshWatchVars();
|
||||
if (this->mCPUDialog) {
|
||||
this->mCPUDialog->updateInfo();
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue