aboutsummaryrefslogtreecommitdiffstats
path: root/arch/mips/kernel/traps.c
diff options
context:
space:
mode:
authorAtsushi Nemoto <anemo@mba.ocn.ne.jp>2007-02-06 02:02:21 -0500
committerRalf Baechle <ralf@linux-mips.org>2007-02-20 12:11:55 -0500
commit90fccb1363f96790034c69f0703a36241f9197dc (patch)
tree2c50ca20114bacdf11629ba7b49bf2fc54011db4 /arch/mips/kernel/traps.c
parent01ee6037088ca2a6c93bf7e22edf831408c33196 (diff)
[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/mips/kernel/traps.c')
-rw-r--r--arch/mips/kernel/traps.c2
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)
704 die_if_kernel("Break instruction in kernel code", regs); 704 die_if_kernel("Break instruction in kernel code", regs);
705 force_sig(SIGTRAP, current); 705 force_sig(SIGTRAP, current);
706 } 706 }
707 return;
707 708
708out_sigsegv: 709out_sigsegv:
709 force_sig(SIGSEGV, current); 710 force_sig(SIGSEGV, current);
@@ -747,6 +748,7 @@ asmlinkage void do_tr(struct pt_regs *regs)
747 die_if_kernel("Trap instruction in kernel code", regs); 748 die_if_kernel("Trap instruction in kernel code", regs);
748 force_sig(SIGTRAP, current); 749 force_sig(SIGTRAP, current);
749 } 750 }
751 return;
750 752
751out_sigsegv: 753out_sigsegv:
752 force_sig(SIGSEGV, current); 754 force_sig(SIGSEGV, current);