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

Method __getitem__

python/debuginfo.py:70–78  ·  view source on GitHub ↗

Returns debug info parser of the given name, if it exists

(cls, value: str)

Source from the content-addressed store, hash-verified

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"""
72 binaryninja._init_plugins()
73 parser = core.BNGetDebugInfoParserByName(str(value))
74 if parser is None:
75 raise KeyError(f"'{str(value)}' is not a valid debug-info parser")
76 parser_ref = core.BNNewDebugInfoParserReference(parser)
77 assert parser_ref is not None, "core.BNNewDebugInfoParserReference returned None"
78 return DebugInfoParser(parser_ref)
79
80 @staticmethod
81 def get_parsers_for_view(view: 'binaryview.BinaryView') -> List['DebugInfoParser']:

Callers

nothing calls this directly

Calls 1

DebugInfoParserClass · 0.70

Tested by

no test coverage detected