summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorantirez <antirez@gmail.com>2015-11-11 23:07:57 +0100
committerantirez <antirez@gmail.com>2015-11-17 15:43:22 +0100
commitcd112db0ae0e30d2005680b62509a1e517b3612a (patch)
treefe248f4b3510b03ed7b6f39010650a77bc841357
parenta076e421e9ac3401b35557d259e8e59961ff29a0 (diff)
downloadredis-cd112db0ae0e30d2005680b62509a1e517b3612a.tar.gz
Lua debugger: removing breakpoints now works.
-rw-r--r--src/scripting.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/scripting.c b/src/scripting.c
index 5353bfa71..4564782f6 100644
--- a/src/scripting.c
+++ b/src/scripting.c
@@ -1976,7 +1976,7 @@ void ldbBreak(sds *argv, int argc) {
ldbLog(sdsnew("Wrong line number."));
}
} else if (line < 0) {
- if (ldbDelBreakpoint(line))
+ if (ldbDelBreakpoint(-line))
ldbLog(sdsnew("Breakpoint removed."));
else
ldbLog(sdsnew("No breakpoint in the specified line."));