Remove the specified breakpoint, returning 1 if the operation was * performed or 0 if there was no such breakpoint. */
| 2119 | /* Remove the specified breakpoint, returning 1 if the operation was |
| 2120 | * performed or 0 if there was no such breakpoint. */ |
| 2121 | int 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, |