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