Skip to content

Commit d7deae3

Browse files
committed
Added POINTER_SEMANTICS to RegisterKind.
1 parent a1484fd commit d7deae3

File tree

3 files changed

+9
-0
lines changed

3 files changed

+9
-0
lines changed

binaryninjacore.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2652,6 +2652,7 @@ extern "C"
26522652
{
26532653
REGISTER_LIST_KIND_INTEGER_SEMANTICS = 0,
26542654
REGISTER_LIST_KIND_FLOAT_SEMANTICS = 1,
2655+
REGISTER_LIST_KIND_POINTER_SEMANTICS = 2,
26552656
};
26562657

26572658
typedef struct BNCustomCallingConvention

python/callingconvention.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,7 @@
3636
# Register list kinds
3737
REGISTER_LIST_KIND_INTEGER_SEMANTICS = 0
3838
REGISTER_LIST_KIND_FLOAT_SEMANTICS = 1
39+
REGISTER_LIST_KIND_POINTER_SEMANTICS = 2
3940

4041

4142
class CallingConvention:

rust/src/calling_convention.rs

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,7 @@ use crate::variable::Variable;
3939
pub enum RegisterListKind {
4040
IntegerSemantics = 0,
4141
FloatSemantics = 1,
42+
PointerSemantics = 2,
4243
}
4344

4445
pub trait CallingConvention: Sync {
@@ -422,6 +423,9 @@ where
422423
RegisterListKind::FloatSemantics => {
423424
BNRegisterListKind::REGISTER_LIST_KIND_FLOAT_SEMANTICS
424425
}
426+
RegisterListKind::PointerSemantics => {
427+
BNRegisterListKind::REGISTER_LIST_KIND_POINTER_SEMANTICS
428+
}
425429
}
426430
})
427431
}
@@ -871,6 +875,9 @@ impl CallingConvention for CoreCallingConvention {
871875
BNRegisterListKind::REGISTER_LIST_KIND_FLOAT_SEMANTICS => {
872876
RegisterListKind::FloatSemantics
873877
}
878+
BNRegisterListKind::REGISTER_LIST_KIND_POINTER_SEMANTICS => {
879+
RegisterListKind::PointerSemantics
880+
}
874881
}
875882
}
876883
}

0 commit comments

Comments
 (0)