Linux MIPS Architecture development
 help / color / mirror / Atom feed
* Re: [MIPS] Work around bogus gcc warnings.
       [not found] <S20037630AbWK3BWw/20061130012252Z+10493@ftp.linux-mips.org>
@ 2007-02-06  7:02 ` Atsushi Nemoto
  2007-02-06 11:50   ` Ralf Baechle
  0 siblings, 1 reply; 2+ messages in thread
From: Atsushi Nemoto @ 2007-02-06  7:02 UTC (permalink / raw)
  To: linux-mips; +Cc: ralf

On Thu, 30 Nov 2006 01:22:47 +0000, linux-mips@linux-mips.org wrote:
> Author: Ralf Baechle <ralf@linux-mips.org> Thu Nov 30 00:14:48 2006 +0000
> Commit: df300391b4833167841465189f6ef32560f0282d
> Gitweb: http://www.linux-mips.org/g/linux/df300391
> Branch: master
> 
> Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
> 
> ---
> 
>  arch/mips/kernel/traps.c |   43 ++++++++++++++++++++++---------------------
>  1 files changed, 22 insertions(+), 21 deletions(-)

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

Signed-off-by: Atsushi Nemoto <anemo@mba.ocn.ne.jp>
---
diff --git a/arch/mips/kernel/traps.c b/arch/mips/kernel/traps.c
index 2a932ca..cfd1785 100644
--- a/arch/mips/kernel/traps.c
+++ b/arch/mips/kernel/traps.c
@@ -708,6 +708,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);
@@ -751,6 +752,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);

^ permalink raw reply related	[flat|nested] 2+ messages in thread

* Re: [MIPS] Work around bogus gcc warnings.
  2007-02-06  7:02 ` [MIPS] Work around bogus gcc warnings Atsushi Nemoto
@ 2007-02-06 11:50   ` Ralf Baechle
  0 siblings, 0 replies; 2+ messages in thread
From: Ralf Baechle @ 2007-02-06 11:50 UTC (permalink / raw)
  To: Atsushi Nemoto; +Cc: linux-mips

On Tue, Feb 06, 2007 at 04:02:21PM +0900, Atsushi Nemoto wrote:

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

Applied, thanks.

  Ralf

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2007-02-06 11:51 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
     [not found] <S20037630AbWK3BWw/20061130012252Z+10493@ftp.linux-mips.org>
2007-02-06  7:02 ` [MIPS] Work around bogus gcc warnings Atsushi Nemoto
2007-02-06 11:50   ` Ralf Baechle

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox