summaryrefslogtreecommitdiff
path: root/scope.c
diff options
context:
space:
mode:
authorAlan Coopersmith <alan.coopersmith@sun.com>2009-09-30 22:31:38 -0700
committerAlan Coopersmith <alan.coopersmith@sun.com>2009-09-30 22:31:38 -0700
commit6d29eee4cf29fa916a145dcf09b2380bffd53a72 (patch)
tree81cdce7da794426c86f1ff3f786399d4210406e4 /scope.c
parentb287c1b1670bec76dec2856a52354be9087fca7c (diff)
downloadxscope-6d29eee4cf29fa916a145dcf09b2380bffd53a72.tar.gz
Fix breakpoint disabling
Signed-off-by: Alan Coopersmith <alan.coopersmith@sun.com>
Diffstat (limited to 'scope.c')
-rw-r--r--scope.c15
1 files changed, 9 insertions, 6 deletions
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)