fix(gdb): show decoded ptr and entry addr in image cache dump

This commit is contained in:
Benign X
2026-02-12 19:00:20 +08:00
committed by Neo Xu
parent 19c8f13e77
commit 0e837b1c73
@@ -17,6 +17,7 @@ class LVImageCache(object):
"""Print image cache entries using prettytable format"""
table = PrettyTable()
table.field_names = [
"entry",
"size",
"data_size",
"cf",
@@ -45,7 +46,7 @@ class LVImageCache(object):
cf = int(header.cf)
data_size = int(decoded.data_size) if decoded else 0
decoded_ptr = decoded.data if decoded else 0
decoded_ptr = int(decoded) if decoded else 0
decoder_name = data_ptr.decoder.name.as_string()
src_type = int(data_ptr.src_type)
src = data_ptr.src
@@ -70,6 +71,7 @@ class LVImageCache(object):
table.add_row(
[
f"{int(entry):#x}",
size_str,
f"{data_size}",
f"{cf}",
@@ -82,7 +84,7 @@ class LVImageCache(object):
)
except gdb.error as e:
table.add_row(["ERROR", "", "", "", "", "", "", str(e)])
table.add_row(["ERROR", "", "", "", "", "", "", "", str(e)])
continue
print(table)