Module Name:    src
Committed By:   kamil
Date:           Tue Feb  5 02:57:10 UTC 2019

Modified Files:
        src/tests/lib/libc/sys: t_ptrace_x86_wait.h

Log Message:
Add missing break keywords in t_ptrace_wait* x86 tests

Add missing break in switch() cases in dbregs_trap_variable().

Reported by <mrg>
Detected by GCC 7


To generate a diff of this commit:
cvs rdiff -u -r1.7 -r1.8 src/tests/lib/libc/sys/t_ptrace_x86_wait.h

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/tests/lib/libc/sys/t_ptrace_x86_wait.h
diff -u src/tests/lib/libc/sys/t_ptrace_x86_wait.h:1.7 src/tests/lib/libc/sys/t_ptrace_x86_wait.h:1.8
--- src/tests/lib/libc/sys/t_ptrace_x86_wait.h:1.7	Sat May 26 20:27:48 2018
+++ src/tests/lib/libc/sys/t_ptrace_x86_wait.h	Tue Feb  5 02:57:10 2019
@@ -1,4 +1,4 @@
-/*	$NetBSD: t_ptrace_x86_wait.h,v 1.7 2018/05/26 20:27:48 kamil Exp $	*/
+/*	$NetBSD: t_ptrace_x86_wait.h,v 1.8 2019/02/05 02:57:10 kamil Exp $	*/
 
 /*-
  * Copyright (c) 2016 The NetBSD Foundation, Inc.
@@ -405,14 +405,17 @@ dbregs_trap_variable(int reg, int cond, 
 		dr7.bits.global_dr0_breakpoint = 1;
 		dr7.bits.condition_dr0 = cond;
 		dr7.bits.len_dr0 = len;
+		break;
 	case 1:
 		dr7.bits.global_dr1_breakpoint = 1;
 		dr7.bits.condition_dr1 = cond;
 		dr7.bits.len_dr1 = len;
+		break;
 	case 2:
 		dr7.bits.global_dr2_breakpoint = 1;
 		dr7.bits.condition_dr2 = cond;
 		dr7.bits.len_dr2 = len;
+		break;
 	case 3:
 		dr7.bits.global_dr3_breakpoint = 1;
 		dr7.bits.condition_dr3 = cond;

Reply via email to