增加 set print pretty on.

Signed-off-by: rick.chan <chenyang@autoai.com>
This commit is contained in:
rick.chan 2020-08-25 14:00:19 +08:00
parent b0881a0e2f
commit 0bd52b46a3
1 changed files with 1 additions and 1 deletions

View File

@ -65,7 +65,7 @@ print [options --] [/fmt] expr
(gdb) p <variable> (gdb) p <variable>
# 修改变量的值 # 修改变量的值
(gdb) p <variable>=<value> (gdb) p <variable>=<value>
# 显示结构体变量成员内容 # 显示结构体变量成员内容,使用 set print pretty on 可使结构体成员的显示更友好
(gdb) p <struct obj> (gdb) p <struct obj>
(gdb) p *<struct ptr> (gdb) p *<struct ptr>
``` ```