Reorganize DebugInterface etc a bit.

KernelThreadDebugInterface no longer has a useless copy of a MIPSDebugInterface.
This commit is contained in:
Henrik Rydgård committed 2024-12-12 18:54:46 +01:00
1 parent a858032e46
commit 20a17a0e8d
33 files changed
+167 -210

No files matched your search

+4 -4
View File
@@ -336,8 +336,8 @@ void ImStructViewer::DrawWatch() {
if (!watch.expression.empty()) {
u32 val;
PostfixExpression postfix;
if (mipsDebug_->initExpression(watch.expression.c_str(), postfix)
&& mipsDebug_->parseExpression(postfix, val)) {
if (initExpression(mipsDebug_, watch.expression.c_str(), postfix)
&& parseExpression(mipsDebug_, postfix, val)) {
address = val;
}
} else {
@@ -394,8 +394,8 @@ void ImStructViewer::DrawNewWatchEntry() {
PostfixExpression postfix;
if (newWatch_.typePathName.empty()) {
newWatch_.error = "type can't be empty";
} else if (!mipsDebug_->initExpression(newWatch_.expression, postfix)
|| !mipsDebug_->parseExpression(postfix, val)) {
} else if (!initExpression(mipsDebug_, newWatch_.expression, postfix)
|| !parseExpression(mipsDebug_, postfix, val)) {
newWatch_.error = "invalid expression";
} else {
std::string watchName = newWatch_.name;