From 6b307f7cad00e4d89e5ed66b9d67e374078f8b95 Mon Sep 17 00:00:00 2001 From: Rusty Wagner Date: Mon, 24 Oct 2016 19:00:23 -0400 Subject: Add platform property to function --- python/__init__.py | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'python') diff --git a/python/__init__.py b/python/__init__.py index 6db17545..8176b8e6 100644 --- a/python/__init__.py +++ b/python/__init__.py @@ -4788,6 +4788,14 @@ class Function(object): return None return Architecture(arch) + @property + def platform(self): + """Function platform (read-only)""" + platform = core.BNGetFunctionPlatform(self.handle) + if platform is None: + return None + return Platform(None, handle = platform) + @property def start(self): """Function start (read-only)""" -- cgit v1.3.1