mirror of
https://github.com/rizinorg/cutter.git
synced 2025-01-31 00:35:05 +00:00
Update to new variable storage in Rizin (#3062)
This commit is contained in:
parent
d58edca0c8
commit
d47eb1c41f
2
rizin
2
rizin
@ -1 +1 @@
|
||||
Subproject commit 3f077bce4a0a7c6323b31d06c6a3a631a988fa5f
|
||||
Subproject commit d9950f74792c1dfb565ac491cc7ef706b80e6044
|
@ -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;
|
||||
}
|
||||
|
@ -355,8 +355,7 @@ struct RefDescription
|
||||
|
||||
struct VariableDescription
|
||||
{
|
||||
enum class RefType { SP, BP, Reg };
|
||||
RefType refType;
|
||||
RzAnalysisVarStorageType storageType;
|
||||
QString name;
|
||||
QString type;
|
||||
};
|
||||
|
Loading…
Reference in New Issue
Block a user