winIDEA SDK
Loading...
Searching...
No Matches
test_get_function_address.py
# This script is licensed under BSD License, see file LICENSE.txt, or search for `License` in the SDK online help.
# (c) TASKING Germany GmbH, 2023
import isystem.connect as ic
winidea_id = ''
def test_getFunctionAddress():
conn_mgr = ic.ConnectionMgr()
conn_mgr.connect(ic.CConnectionConfig().instanceId(winidea_id))
addr_ctrl = ic.CAddressController(conn_mgr)
func_addr = addr_ctrl.getFunctionAddress("main")
mem_area = func_addr.getMemArea()
print(f"Function 'main' is at address '{hex(func_addr.getAddress())}', mem. area '{mem_area}'.")
if __name__ == "__main__":
test_getFunctionAddress()