Commit 7b51339
authored
[lldb-dap] Avoid double 'new' events for dyld on Darwin (#140810)
I got a bug report where a pedantic DAP client complains about getting
two "new" module events for the same UUID. This is caused by the dyld
transition from the on-disk dyld to the shared cache dyld, which share
the same UUID. The transition is not generating an unloaded event
(because we're not really unloading dyld) but we do get a loaded event
(because the load address changed). This PR fixes the issue by relying
on the modules set as the source of truth instead of relying on the
event type.1 parent 3cf6565 commit 7b51339
1 file changed
+4
-9
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1292 | 1292 | | |
1293 | 1293 | | |
1294 | 1294 | | |
1295 | | - | |
1296 | | - | |
1297 | | - | |
1298 | | - | |
1299 | | - | |
1300 | | - | |
1301 | | - | |
1302 | | - | |
1303 | | - | |
| 1295 | + | |
1304 | 1296 | | |
1305 | 1297 | | |
1306 | 1298 | | |
1307 | 1299 | | |
1308 | 1300 | | |
1309 | 1301 | | |
1310 | 1302 | | |
| 1303 | + | |
| 1304 | + | |
| 1305 | + | |
1311 | 1306 | | |
1312 | 1307 | | |
1313 | 1308 | | |
| |||
0 commit comments