Update to new variable storage in Rizin (#3062)

This commit is contained in:
Florian Märkl 2023-01-02 13:29:41 +01:00 committed by GitHub
parent d58edca0c8
commit d47eb1c41f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 3 additions and 15 deletions

2
rizin

@ -1 +1 @@
Subproject commit 3f077bce4a0a7c6323b31d06c6a3a631a988fa5f
Subproject commit d9950f74792c1dfb565ac491cc7ef706b80e6044

View File

@ -1793,18 +1793,7 @@ QList<VariableDescription> CutterCore::getVariables(RVA at)
}
for (auto var : CutterPVector<RzAnalysisVar>(&fcn->vars)) {
VariableDescription desc;
switch (var->kind) {
case RZ_ANALYSIS_VAR_KIND_BPV:
desc.refType = VariableDescription::RefType::BP;
break;
case RZ_ANALYSIS_VAR_KIND_SPV:
desc.refType = VariableDescription::RefType::SP;
break;
case RZ_ANALYSIS_VAR_KIND_REG:
default:
desc.refType = VariableDescription::RefType::Reg;
break;
}
desc.storageType = var->storage.type;
if (!var->name || !var->type) {
continue;
}

View File

@ -355,8 +355,7 @@ struct RefDescription
struct VariableDescription
{
enum class RefType { SP, BP, Reg };
RefType refType;
RzAnalysisVarStorageType storageType;
QString name;
QString type;
};