diff options
| author | Rusty Wagner <rusty@vector35.com> | 2016-10-31 22:51:44 -0400 |
|---|---|---|
| committer | Rusty Wagner <rusty@vector35.com> | 2016-10-31 22:51:44 -0400 |
| commit | eef9d1eff05975c31862db4157ac2f1b2bb30502 (patch) | |
| tree | 48001392e6311609f2ff4d81aec26b00d268a05d /platform.cpp | |
| parent | fd626094e77d384a4bc8f5d5fde06d552600b879 (diff) | |
Added APIs for dealing with Thumb more easily
Diffstat (limited to 'platform.cpp')
| -rw-r--r-- | platform.cpp | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/platform.cpp b/platform.cpp index 9b4053db..7a6571cc 100644 --- a/platform.cpp +++ b/platform.cpp @@ -244,3 +244,12 @@ void Platform::AddRelatedPlatform(Architecture* arch, Platform* platform) { BNAddRelatedPlatform(m_object, arch->GetObject(), platform->GetObject()); } + + +Ref<Platform> Platform::GetAssociatedPlatformByAddress(uint64_t& addr) +{ + BNPlatform* platform = BNGetAssociatedPlatformByAddress(m_object, &addr); + if (!platform) + return nullptr; + return new Platform(platform); +} |
