diff options
author | Atsushi Nemoto <anemo@mba.ocn.ne.jp> | 2007-02-06 08:02:21 +0100 |
---|---|---|
committer | Ralf Baechle <ralf@linux-mips.org> | 2007-02-20 18:11:55 +0100 |
commit | 90fccb1363f96790034c69f0703a36241f9197dc (patch) | |
tree | 2c50ca20114bacdf11629ba7b49bf2fc54011db4 /arch | |
parent | [MIPS] sigset_32 has been made redundand by compat_sigset_t. (diff) | |
download | linux-90fccb1363f96790034c69f0703a36241f9197dc.tar.xz linux-90fccb1363f96790034c69f0703a36241f9197dc.zip |
[MIPS] Fix double signal on trap and break instruction
This commit broke gdb, since any BREAK or TRAP instruction cause SIGSEGV.
Signed-off-by: Atsushi Nemoto <anemo@mba.ocn.ne.jp>
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
Diffstat (limited to 'arch')
-rw-r--r-- | arch/mips/kernel/traps.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/arch/mips/kernel/traps.c b/arch/mips/kernel/traps.c index f663c63d5dd3..2aa208b99da8 100644 --- a/arch/mips/kernel/traps.c +++ b/arch/mips/kernel/traps.c @@ -704,6 +704,7 @@ asmlinkage void do_bp(struct pt_regs *regs) die_if_kernel("Break instruction in kernel code", regs); force_sig(SIGTRAP, current); } + return; out_sigsegv: force_sig(SIGSEGV, current); @@ -747,6 +748,7 @@ asmlinkage void do_tr(struct pt_regs *regs) die_if_kernel("Trap instruction in kernel code", regs); force_sig(SIGTRAP, current); } + return; out_sigsegv: force_sig(SIGSEGV, current); |