We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8f4c754 commit 4dadd4bCopy full SHA for 4dadd4b
1 file changed
src/widgets/DecompilerWidget.cpp
@@ -557,7 +557,10 @@ QString DecompilerWidget::formatVarValue(RzAnalysisVar *var)
557
const int bits = core->rasm->bits;
558
const int ptrSize = bits / 8;
559
if (var->storage.type == RZ_ANALYSIS_VAR_STORAGE_REG) {
560
- pointedAddr = rz_debug_reg_get(core->dbg, var->storage.reg);
+ auto reg = Core()->getRegisterRefValue(QString::fromUtf8(var->storage.reg));
561
+ if (!reg.name.isEmpty()) {
562
+ pointedAddr = Core()->math(reg.value);
563
+ }
564
} else if (var->storage.type == RZ_ANALYSIS_VAR_STORAGE_STACK) {
565
ut64 stackAddr = rz_core_analysis_var_addr(core, var);
566
ut8 ptrBuf[8];
0 commit comments