4import isystem.connect
as ic
10def test_getSourceLocation():
11 connMgr = ic.ConnectionMgr()
12 connMgr.connect(ic.CConnectionConfig().instanceId(winidea_id))
14 addCtrl = ic.CAddressController(connMgr)
15 search_criteria = ic.CLineDescription(ic.CLineDescription.E_RESOURCE_FUNCTION,
20 ic.CLineDescription.E_SEARCH_CODE,
21 ic.CLineDescription.E_MATCH_PLAIN,
24 line_location = addCtrl.getSourceLocation(search_criteria)
25 msg = f
"Location of function call target_init(): "
26 msg += f
"{line_location.getFileName()}::{line_location.getLineNumber()}'"
30if __name__ ==
"__main__":
31 test_getSourceLocation()