MCPcopy Create free account
hub / github.com/Vector35/binaryninja-api / add_entry_point

Method add_entry_point

python/binaryview.py:4765–4782  ·  view source on GitHub ↗

``add_entry_point`` adds a virtual address to start analysis from for a given plat. :param int addr: virtual address to start analysis from :param Platform plat: Platform for the entry point analysis :rtype: None :Example: >>> bv.add_entry_point(0xdeadbeef) >>>

(self, addr: int, plat: Optional['_platform.Platform'] = None)

Source from the content-addressed store, hash-verified

4763 return None
4764
4765 def add_entry_point(self, addr: int, plat: Optional['_platform.Platform'] = None) -> None:
4766 """
4767 ``add_entry_point`` adds a virtual address to start analysis from for a given plat.
4768
4769 :param int addr: virtual address to start analysis from
4770 :param Platform plat: Platform for the entry point analysis
4771 :rtype: None
4772 :Example:
4773 >>> bv.add_entry_point(0xdeadbeef)
4774 >>>
4775 """
4776 if self.platform is None and plat is None:
4777 raise Exception("Default platform not set in BinaryView")
4778 if plat is None:
4779 plat = self.platform
4780 if not isinstance(plat, _platform.Platform):
4781 raise ValueError("Provided platform is not of type `Platform`")
4782 core.BNAddEntryPointForAnalysis(self.handle, plat.handle, addr)
4783
4784 def add_to_entry_functions(self, func: '_function.Function') -> None:
4785 """

Callers 5

initMethod · 0.45
init_arm9Method · 0.45
init_arm7Method · 0.45
initMethod · 0.45
initMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected