gdbstub: Add a missing case of signal number translation in gdbstub
commitf17b06901049e54dbfa8b01c278cdc2e3ae5d62d
authorMartin Simmons <martin@lispworks.com>
Wed, 5 Nov 2014 14:47:39 +0000 (5 14:47 +0000)
committerMichael Tokarev <mjt@tls.msk.ru>
Tue, 11 Nov 2014 05:58:30 +0000 (11 08:58 +0300)
tree6a38ea666a1926e91b84f25e4bcb6ad8bb9cf2b3
parent5b009e400809523e71f1b72bdaa2b681e2a5b1c7
gdbstub: Add a missing case of signal number translation in gdbstub

While using qemu with gdb "target remote" to debug an application that uses
fork and exec, the qemu process receives SIGSTOP every time the forked process
terminates (sending SIGCHLD).

This is caused by a missing call to gdb_signal_to_target in gdbstub.c, which
is fixed by this patch:

Signed-off-by: Martin Simmons <martin@lispworks.com>
Reviewed-by: Peter Maydell <peter.maydell@linaro.org>
Signed-off-by: Michael Tokarev <mjt@tls.msk.ru>
gdbstub.c