Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/tests/lib/libc/sys Add missing break keywords in t_ptrace_wa...



details:   https://anonhg.NetBSD.org/src/rev/96141939239a
branches:  trunk
changeset: 996575:96141939239a
user:      kamil <kamil%NetBSD.org@localhost>
date:      Tue Feb 05 02:57:10 2019 +0000

description:
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

diffstat:

 tests/lib/libc/sys/t_ptrace_x86_wait.h |  5 ++++-
 1 files changed, 4 insertions(+), 1 deletions(-)

diffs (27 lines):

diff -r 44b2cdeebd1a -r 96141939239a tests/lib/libc/sys/t_ptrace_x86_wait.h
--- a/tests/lib/libc/sys/t_ptrace_x86_wait.h    Tue Feb 05 00:40:15 2019 +0000
+++ b/tests/lib/libc/sys/t_ptrace_x86_wait.h    Tue Feb 05 02:57:10 2019 +0000
@@ -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 @@
                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;



Home | Main Index | Thread Index | Old Index