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

Method __iter__

python/debuginfo.py:56–68  ·  view source on GitHub ↗

Generator of all debug-info parsers

(self)

Source from the content-addressed store, hash-verified

54 return result
55
56 def __iter__(self) -> Iterator["DebugInfoParser"]:
57 """Generator of all debug-info parsers"""
58 binaryninja._init_plugins()
59 count = ctypes.c_ulonglong()
60 parsers = core.BNGetDebugInfoParsers(count)
61 assert parsers is not None, "core.BNGetDebugInfoParsers returned None"
62 try:
63 for i in range(0, count.value):
64 parser = core.BNNewDebugInfoParserReference(parsers[i])
65 assert parser is not None, "core.BNNewDebugInfoParserReference returned None"
66 yield DebugInfoParser(parser)
67 finally:
68 core.BNFreeDebugInfoParserList(parsers, count.value)
69
70 def __getitem__(cls, value: str) -> 'DebugInfoParser':
71 """Returns debug info parser of the given name, if it exists"""

Callers

nothing calls this directly

Calls 1

DebugInfoParserClass · 0.70

Tested by

no test coverage detected