Commit 20f70ea
committed
Fix multi-process breakpoint sync issues found in review
- Fix version counter drift: read file version before writing to
prevent processes from missing each other's updates
- Add MethodBreakpoint sync support (to_sync_data + reconciliation)
- Fix CatchBreakpoint sync to preserve command and path attributes
- Add syncable? predicate to avoid unnecessary hash allocation
- Add type validation in create_bp_from_spec for defense-in-depth
- Use Dir.tmpdir instead of hardcoded /tmp for portability
- Set explicit 0600 permissions on temp state file writes
- Broaden error handling to SystemCallError in read/write state
- Add error handling to ensure_wk_lock! for disk-full/read-only
- Publish breakpoint changes on DAP disconnect1 parent cdd7e8e commit 20f70ea
3 files changed
+55
-10
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
25 | 25 | | |
26 | 26 | | |
27 | 27 | | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
28 | 32 | | |
29 | 33 | | |
30 | 34 | | |
| |||
233 | 237 | | |
234 | 238 | | |
235 | 239 | | |
| 240 | + | |
| 241 | + | |
| 242 | + | |
| 243 | + | |
236 | 244 | | |
237 | 245 | | |
238 | 246 | | |
| |||
315 | 323 | | |
316 | 324 | | |
317 | 325 | | |
318 | | - | |
| 326 | + | |
| 327 | + | |
| 328 | + | |
| 329 | + | |
| 330 | + | |
| 331 | + | |
319 | 332 | | |
320 | 333 | | |
321 | 334 | | |
| |||
443 | 456 | | |
444 | 457 | | |
445 | 458 | | |
| 459 | + | |
| 460 | + | |
| 461 | + | |
| 462 | + | |
| 463 | + | |
| 464 | + | |
| 465 | + | |
| 466 | + | |
| 467 | + | |
| 468 | + | |
446 | 469 | | |
447 | 470 | | |
448 | 471 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
403 | 403 | | |
404 | 404 | | |
405 | 405 | | |
| 406 | + | |
406 | 407 | | |
407 | 408 | | |
408 | 409 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
43 | 43 | | |
44 | 44 | | |
45 | 45 | | |
| 46 | + | |
46 | 47 | | |
47 | 48 | | |
48 | 49 | | |
| |||
133 | 134 | | |
134 | 135 | | |
135 | 136 | | |
136 | | - | |
137 | | - | |
| 137 | + | |
| 138 | + | |
| 139 | + | |
138 | 140 | | |
139 | 141 | | |
140 | 142 | | |
141 | 143 | | |
142 | 144 | | |
143 | 145 | | |
| 146 | + | |
144 | 147 | | |
145 | 148 | | |
146 | 149 | | |
147 | 150 | | |
148 | 151 | | |
149 | | - | |
| 152 | + | |
| 153 | + | |
| 154 | + | |
| 155 | + | |
| 156 | + | |
| 157 | + | |
| 158 | + | |
| 159 | + | |
150 | 160 | | |
151 | 161 | | |
152 | 162 | | |
153 | 163 | | |
154 | 164 | | |
155 | 165 | | |
156 | | - | |
| 166 | + | |
157 | 167 | | |
158 | 168 | | |
159 | 169 | | |
| |||
2141 | 2151 | | |
2142 | 2152 | | |
2143 | 2153 | | |
2144 | | - | |
| 2154 | + | |
2145 | 2155 | | |
2146 | 2156 | | |
2147 | 2157 | | |
| |||
2151 | 2161 | | |
2152 | 2162 | | |
2153 | 2163 | | |
2154 | | - | |
| 2164 | + | |
2155 | 2165 | | |
| 2166 | + | |
| 2167 | + | |
2156 | 2168 | | |
2157 | 2169 | | |
2158 | 2170 | | |
| |||
2249 | 2261 | | |
2250 | 2262 | | |
2251 | 2263 | | |
2252 | | - | |
| 2264 | + | |
| 2265 | + | |
| 2266 | + | |
| 2267 | + | |
| 2268 | + | |
| 2269 | + | |
| 2270 | + | |
| 2271 | + | |
2253 | 2272 | | |
2254 | 2273 | | |
2255 | | - | |
| 2274 | + | |
2256 | 2275 | | |
| 2276 | + | |
| 2277 | + | |
2257 | 2278 | | |
2258 | 2279 | | |
2259 | 2280 | | |
| |||
2263 | 2284 | | |
2264 | 2285 | | |
2265 | 2286 | | |
2266 | | - | |
| 2287 | + | |
2267 | 2288 | | |
2268 | 2289 | | |
2269 | 2290 | | |
| |||
0 commit comments