diff options
author | Alan Coopersmith <alan.coopersmith@sun.com> | 2009-09-30 22:31:38 -0700 |
---|---|---|
committer | Alan Coopersmith <alan.coopersmith@sun.com> | 2009-09-30 22:31:38 -0700 |
commit | 6d29eee4cf29fa916a145dcf09b2380bffd53a72 (patch) | |
tree | 81cdce7da794426c86f1ff3f786399d4210406e4 /scope.c | |
parent | b287c1b1670bec76dec2856a52354be9087fca7c (diff) | |
download | xscope-6d29eee4cf29fa916a145dcf09b2380bffd53a72.tar.gz |
Fix breakpoint disabling
Signed-off-by: Alan Coopersmith <alan.coopersmith@sun.com>
Diffstat (limited to 'scope.c')
-rw-r--r-- | scope.c | 15 |
1 files changed, 9 insertions, 6 deletions
@@ -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) |