From 1246e00478fb5ab2a357de17066fd8738395d9f1 Mon Sep 17 00:00:00 2001 From: Felix Morgner Date: Mon, 4 May 2026 08:20:42 +0200 Subject: debug: split gdb modules --- scripts/gdb/kapi/address.py | 33 --------------------------------- 1 file changed, 33 deletions(-) delete mode 100644 scripts/gdb/kapi/address.py (limited to 'scripts/gdb/kapi/address.py') diff --git a/scripts/gdb/kapi/address.py b/scripts/gdb/kapi/address.py deleted file mode 100644 index 677c9aa..0000000 --- a/scripts/gdb/kapi/address.py +++ /dev/null @@ -1,33 +0,0 @@ -import gdb - - -class KapiMemoryAddressPrinter: - """Print kapi::MemoryAddress.""" - - def __init__(self, val): - self.val = val - self.address_type = val.type.template_argument(0) - - def to_string(self): - try: - raw_address = int(self.val["m_value"]) - type_string = str(self.address_type) - - if "linear" in type_string: - suffix = "%lin" - elif "physical" in type_string: - suffix = "%phy" - else: - suffix = "%???" - - return f"{raw_address:#018x}{suffix}" - except Exception as e: - return f"{self.val}: {e}" - - def children(self): - if "linear" in str(self.address_type): - yield ( - "std::byte *", - self.val["m_value"].cast(gdb.lookup_type("std::byte").pointer()), - ) - yield ("m_value", self.val["m_value"]) -- cgit v1.2.3