Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 90fccb13 authored by Atsushi Nemoto's avatar Atsushi Nemoto Committed by Ralf Baechle
Browse files

[MIPS] Fix double signal on trap and break instruction



This commit broke gdb, since any BREAK or TRAP instruction cause SIGSEGV.

Signed-off-by: default avatarAtsushi Nemoto <anemo@mba.ocn.ne.jp>
Signed-off-by: default avatarRalf Baechle <ralf@linux-mips.org>
parent 01ee6037
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -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);