chore(gdb): add LVImageDecoder complete fields and dump image_decoder command

This commit is contained in:
Benign X
2026-03-06 03:07:09 +08:00
committed by VIFEX
parent 64c46e8c1b
commit b93ef79422
8 changed files with 94 additions and 0 deletions
+2
View File
@@ -10,6 +10,7 @@ from .misc import (
CheckCache,
DumpAnim,
DumpTimer,
DumpImageDecoder,
DumpFsDrv,
)
from .debugger import Debugger
@@ -35,6 +36,7 @@ CheckPrefix()
CheckCache()
DumpAnim()
DumpTimer()
DumpImageDecoder()
DumpFsDrv()
DumpDrawTask()
@@ -2,6 +2,7 @@ from .lv_style import InfoStyle
from .lv_cache import DumpCache, CheckPrefix, CheckCache
from .lv_anim import DumpAnim
from .lv_timer import DumpTimer
from .lv_image_decoder import DumpImageDecoder
from .lv_fs import DumpFsDrv
__all__ = [
@@ -11,5 +12,6 @@ __all__ = [
"CheckCache",
"DumpAnim",
"DumpTimer",
"DumpImageDecoder",
"DumpFsDrv",
]
@@ -0,0 +1,16 @@
import gdb
from lvglgdb.lvgl import curr_inst
from lvglgdb.lvgl.misc.lv_image_decoder import LVImageDecoder
class DumpImageDecoder(gdb.Command):
"""dump all registered image decoders"""
def __init__(self):
super(DumpImageDecoder, self).__init__(
"dump image_decoder", gdb.COMMAND_USER, gdb.COMPLETE_EXPRESSION
)
def invoke(self, args, from_tty):
LVImageDecoder.print_entries(curr_inst().image_decoders())