qemu-e2k/linux-user/nios2
Peter Maydell 9f214bd390 linux-user: Clean up nios2 main loop signal handling
The nios2 main loop code's code does some odd
things with gdb_handlesig() that no other target
CPU does: it has some signals that are delivered
to gdb and only to gdb. Stop doing this, and instead
behave like all the other targets:
 * a trap instruction becomes a SIGTRAP
 * an unhandled exception type returned from cpu_exec()
   causes us to abort(), not to try to hand gdb a SIGILL

This fixes in passing Coverity issue CID 1390853,
which was a complaint that the old code failed to
check the return value from gdb_handlesig().

Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
Message-Id: <20181019174958.26616-3-peter.maydell@linaro.org>
Reviewed-by: Richard Henderson <richard.henderson@linaro.org>
[lv: removed gdbsig unused variable]
Signed-off-by: Laurent Vivier <laurent@vivier.eu>
2018-11-12 16:02:10 +01:00
..
cpu_loop.c linux-user: Clean up nios2 main loop signal handling 2018-11-12 16:02:10 +01:00
signal.c linux-user: Do not report "syscall not implemented" by default 2018-07-09 00:52:04 +02:00
sockbits.h
syscall_nr.h
target_cpu.h
target_elf.h
target_fcntl.h
target_signal.h
target_structs.h
target_syscall.h
termbits.h