Skip to content

Commit 1f1b22d

Browse files
committed
dlvclient: fix AsmInstruction bytes decode
1 parent 9db0be1 commit 1f1b22d

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

liteidex/src/plugins/dlvdebugger/dlvrpcdebugger.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1165,9 +1165,9 @@ void DlvRpcDebugger::updateAsm(int id, quint64 pc)
11651165
head += "*";
11661166
}
11671167
QStandardItem *item = new QStandardItem(head);
1168+
QStandardItem *pc = new QStandardItem(QString("0x%1").arg(a.Loc.PC,0,16));
11681169
QStandardItem *file = new QStandardItem(a.Loc.File);
11691170
QStandardItem *line = new QStandardItem(QString("%1").arg(a.Loc.Line));
1170-
QStandardItem *pc = new QStandardItem(QString("0x%1").arg(a.Loc.PC,0,16));
11711171
QStandardItem *inst = new QStandardItem(QString(a.Bytes.toHex()));
11721172
QStandardItem *text = new QStandardItem(a.Text);
11731173
m_asmModel->appendRow(QList<QStandardItem*>() << item << pc << inst << text << file << line);

liteidex/src/utils/dlvclient/dlvtypes.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -725,7 +725,7 @@ struct AsmInstruction
725725
pDestLoc->fromMap(md);
726726
}
727727
Text = map["Text"].toString();
728-
Bytes = map["Bytes"].toByteArray();
728+
Bytes = QByteArray::fromBase64(map["Bytes"].toByteArray());
729729
Breakpoint = map["Breakpoint"].toBool();
730730
AtPC = map["AtPC"].toBool();
731731
}

0 commit comments

Comments
 (0)