summaryrefslogtreecommitdiff
path: root/python/debuginfo.py
diff options
context:
space:
mode:
authorGlenn Smith <glenn@vector35.com>2023-02-20 21:58:55 -0500
committerGlenn Smith <glenn@vector35.com>2023-11-06 16:10:47 -0500
commit4108964609171327618627477163339656037111 (patch)
tree79f4c6da6394b973cee05cc42b6edd7e2e20909d /python/debuginfo.py
parentb270d7ebe1e2a406e1f7f14807987d24b0c4a846 (diff)
Type Containers
Diffstat (limited to 'python/debuginfo.py')
-rw-r--r--python/debuginfo.py5
1 files changed, 5 insertions, 0 deletions
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)