MCPcopy Create free account
hub / github.com/F-Stack/f-stack / ldbDelBreakpoint

Function ldbDelBreakpoint

app/redis-6.2.6/src/scripting.c:2099–2110  ·  view source on GitHub ↗

Remove the specified breakpoint, returning 1 if the operation was * performed or 0 if there was no such breakpoint. */

Source from the content-addressed store, hash-verified

2097/* Remove the specified breakpoint, returning 1 if the operation was
2098 * performed or 0 if there was no such breakpoint. */
2099int ldbDelBreakpoint(int line) {
2100 int j;
2101
2102 for (j = 0; j < ldb.bpcount; j++) {
2103 if (ldb.bp[j] == line) {
2104 ldb.bpcount--;
2105 memmove(ldb.bp+j,ldb.bp+j+1,ldb.bpcount-j);
2106 return 1;
2107 }
2108 }
2109 return 0;
2110}
2111
2112/* Expect a valid multi-bulk command in the debugging client query buffer.
2113 * On success the command is parsed and returned as an array of SDS strings,

Callers 1

ldbBreakFunction · 0.85

Calls 1

memmoveFunction · 0.50

Tested by

no test coverage detected