mirror of
https://github.com/lvgl/lvgl.git
synced 2026-05-09 20:27:41 +08:00
chore(lvglgdb): fix TypeError in lv_obj.py while dump specify object (#9375)
Signed-off-by: rongyichang <rongyichang@xiaomi.com>
This commit is contained in:
@@ -3,6 +3,7 @@ import gdb
|
||||
|
||||
from lvglgdb.lvgl import curr_inst
|
||||
from lvglgdb.lvgl import LVObject, dump_obj_info
|
||||
from lvglgdb.value import Value
|
||||
|
||||
|
||||
class DumpObj(gdb.Command):
|
||||
@@ -51,7 +52,7 @@ class DumpObj(gdb.Command):
|
||||
|
||||
if args.root:
|
||||
root = gdb.parse_and_eval(args.root)
|
||||
root = LVObject(root)
|
||||
root = LVObject(Value(root))
|
||||
self.dump_obj(root, limit=args.level)
|
||||
else:
|
||||
# dump all displays
|
||||
|
||||
Reference in New Issue
Block a user