From 6d29eee4cf29fa916a145dcf09b2380bffd53a72 Mon Sep 17 00:00:00 2001 From: Alan Coopersmith Date: Wed, 30 Sep 2009 22:31:38 -0700 Subject: Fix breakpoint disabling Signed-off-by: Alan Coopersmith --- scope.c | 15 +++++++++------ 1 file changed, 9 insertions(+), 6 deletions(-) (limited to 'scope.c') diff --git a/scope.c b/scope.c index c32351c..ef89b53 100644 --- a/scope.c +++ b/scope.c @@ -385,13 +385,16 @@ TestBreakPoints ( for (bp = breakPoints; bp; bp = bp->next) { - if (bp->request == buf[0]) + if (bp->enabled) { - if (bp->request < EXTENSION_MIN_REQ) /* Core protocol, not extension */ - break; - else if ((bp->minorop == -1) || (bp->minorop == buf[1])) - /* extension, either matching minor opcode or all minor opcodes */ - break; + if (bp->request == buf[0]) + { + if (bp->request < EXTENSION_MIN_REQ) /* Core protocol, not extension */ + break; + else if ((bp->minorop == -1) || (bp->minorop == buf[1])) + /* extension, either matching minor opcode or all minor opcodes */ + break; + } } } if (bp) -- cgit v1.2.1