mirror of
https://github.com/lvgl/lvgl.git
synced 2025-01-14 06:42:58 +08:00
d460edbcac
Usage: Launch gdb firstly, then execute source path/to/lvgl.py Or `gdb bin/main -ex source "scripts/gdb/lvgl.py"` Currently only "dump obj" and "info style" commands are available. Usage: (gdb) dump obj -h usage: [-h] [-L LEVEL] [root] Dump lvgl obj tree. positional arguments: root Optional root obj to dump. options: -h, --help show this help message and exit -L LEVEL, --level LEVEL Limit the depth of the tree. Example: (gdb) dump obj -L 2 Display 0x9e503080 Screen@0xf5f0a760 obj@0xf5f0a760 (0,0,639,479) Screen@0xf5f0a700 obj@0xf5f0a700 (0,0,639,479) tabview@0xf5f0d100 (0,0,639,479) keyboard@0xf3402d20 (0,240,639,479) dropdown-list@0xf5f0c620 (0,0,129,129) Screen@0xf5f0a6a0 obj@0xf5f0a6a0 (0,0,639,479) Screen@0xf5f0a640 obj@0xf5f0a640 (0,0,639,479) (gdb) info style 0x60700000dd10 32 = {num = 90, ptr = 0x5a, color = {blue = 90 'Z', green = 0 '\000', red = 0 '\000'}} 158 = {num = 32767, ptr = 0x7fff, color = {blue = 255 '\377', green = 127 '\177', red = 0 '\000'}} (gdb) p lv_global->disp_default->act_scr $4 = (lv_obj_t *) 0x60700000dd10 (gdb) info style $4 32 = {num = 90, ptr = 0x5a, color = {blue = 90 'Z', green = 0 '\000', red = 0 '\000'}} 158 = {num = 32767, ptr = 0x7fff, color = {blue = 255 '\377', green = 127 '\177', red = 0 '\000'}} (gdb) Change-Id: Id73e20a761913fe767308f9ee29ae16fbf4f876c Signed-off-by: xuxingliang <xuxingliang@xiaomi.com>