Lua debugger: removing breakpoints now works.

This commit is contained in:
antirez 2015-11-11 23:07:57 +01:00
parent a076e421e9
commit cd112db0ae

View File

@ -1976,7 +1976,7 @@ void ldbBreak(sds *argv, int argc) {
ldbLog(sdsnew("Wrong line number.")); ldbLog(sdsnew("Wrong line number."));
} }
} else if (line < 0) { } else if (line < 0) {
if (ldbDelBreakpoint(line)) if (ldbDelBreakpoint(-line))
ldbLog(sdsnew("Breakpoint removed.")); ldbLog(sdsnew("Breakpoint removed."));
else else
ldbLog(sdsnew("No breakpoint in the specified line.")); ldbLog(sdsnew("No breakpoint in the specified line."));