From 4108964609171327618627477163339656037111 Mon Sep 17 00:00:00 2001 From: Glenn Smith Date: Mon, 20 Feb 2023 21:58:55 -0500 Subject: Type Containers --- python/debuginfo.py | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'python/debuginfo.py') diff --git a/python/debuginfo.py b/python/debuginfo.py index 1b9bc712..65f879ea 100644 --- a/python/debuginfo.py +++ b/python/debuginfo.py @@ -31,6 +31,7 @@ from . import types as _types from .log import log_error from . import binaryview from . import filemetadata +from . import typecontainer _debug_info_parsers = {} ProgressFuncType = Callable[[int, int], bool] @@ -303,6 +304,10 @@ class DebugInfo(object): core.BNFreeStringList(parsers, count.value) + def get_type_container(self, parser_name: str) -> 'typecontainer.TypeContainer': + """Returns a TypeContainer interface for one of the parsers in this DebugInfo""" + return typecontainer.TypeContainer(core.BNGetDebugInfoTypeContainer(self.handle, parser_name)) + def types_from_parser(self, name: Optional[str] = None) -> Iterator[Tuple[str, _types.Type]]: """Returns a generator of all types provided by a named DebugInfoParser""" count = ctypes.c_ulonglong(0) -- cgit v1.3.1