- 添加到~/.gdbinit来打开non-stop模式
set target-async 1
set pagination off
set non-stop on - (gdb) set logging file
(gdb) set logging on
(gdb) info functions
(gdb) set logging off
reference:
https://sourceware.org/gdb/onlinedocs/gdb/Asynchronous-and-non_002dstop-modes.html