tools: Add 'handle SIGUSR1' to nuttx-gdbinit for the NuttX sim SMP

Summary:
- The NuttX sim SMP uses SIGUSR1 for IPI
- However, gdb traps the signal by default
- With this commit, gdb just ignores this signal

Impact:
- NuttX sim SMP only

Testing:
- Tested with sim:smp

Signed-off-by: Masayuki Ishikawa <Masayuki.Ishikawa@jp.sony.com>
This commit is contained in:
Masayuki Ishikawa 2020-11-27 10:44:59 +09:00 committed by Xiang Xiao
parent bcdee59929
commit 03d461f7e2

View file

@ -22,6 +22,9 @@
# usage: gdb -ix=./tools/nuttx-gdbinit nuttx
# new commands: info_nxthreads, nxthread pid, nxcontinue, nxthread_all_bt
# Do not stop with SIGUSR1 which is used for the NuttX sim SMP
handle SIGUSR1 "nostop" "pass" "noprint"
set $_current_tcb = 0x0
set $_target_examined = 0x0