From 9f5ec62383f07b87ac7513d9a6fdea236f4a4401 Mon Sep 17 00:00:00 2001 From: Pragyansh Chaturvedi Date: Wed, 19 Nov 2025 03:24:40 +0530 Subject: [PATCH] Add get_uint8_type to DebugInfoGenerator --- pythonbpf/debuginfo/debug_info_generator.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/pythonbpf/debuginfo/debug_info_generator.py b/pythonbpf/debuginfo/debug_info_generator.py index cca467e..4b96d22 100644 --- a/pythonbpf/debuginfo/debug_info_generator.py +++ b/pythonbpf/debuginfo/debug_info_generator.py @@ -49,6 +49,10 @@ class DebugInfoGenerator: ) return self._type_cache[key] + def get_uint8_type(self) -> Any: + """Get debug info for signed 8-bit integer""" + return self.get_basic_type("char", 8, dc.DW_ATE_unsigned) + def get_int32_type(self) -> Any: """Get debug info for signed 32-bit integer""" return self.get_basic_type("int", 32, dc.DW_ATE_signed)