MCPcopy Create free account
hub / github.com/Snapchat/KeyDB / ldbDelBreakpoint

Function ldbDelBreakpoint

src/scripting.cpp:2121–2132  ·  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

2119/* Remove the specified breakpoint, returning 1 if the operation was
2120 * performed or 0 if there was no such breakpoint. */
2121int ldbDelBreakpoint(int line) {
2122 int j;
2123
2124 for (j = 0; j < ldb.bpcount; j++) {
2125 if (ldb.bp[j] == line) {
2126 ldb.bpcount--;
2127 memmove(ldb.bp+j,ldb.bp+j+1,ldb.bpcount-j);
2128 return 1;
2129 }
2130 }
2131 return 0;
2132}
2133
2134/* Expect a valid multi-bulk command in the debugging client query buffer.
2135 * On success the command is parsed and returned as an array of SDS strings,

Callers 1

ldbBreakFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected