Commit a373f8a
committed
[lldb] Add missing calls to SetThreadHitBreakpointSite/DetectThreadStoppedAtUnexecutedBP
* One of the overloads of CreateStopReasonWithBreakpointSiteID was
missing a call to SetThreadHitBreakpointSite.
* ThreadMemory was missing a "DetectThreadStoppedAtUnexecutedBP" in its
CalculateStopInfo.
* When OS plugins are involved, they will sometimes calculate the stop
info for the backing thread, and then "grab" it from them (see for
example `ThreadMemory::CalculateStopInfo`. So the stop info is created
on the backing thread (e.g. a GDBRemoteThread), and then we call
SetStopInfo on the OS plugin thread. As a result, we never call
`SetThreadHitBreakpointSite" for MemoryThreads, as this is done at the
StopInfo creation. To address this, we add a check in SetStopInfo.1 parent 1824bb4 commit a373f8a
File tree
3 files changed
+7
-0
lines changed- lldb/source
- Plugins/Process/Utility
- Target
3 files changed
+7
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
66 | 66 | | |
67 | 67 | | |
68 | 68 | | |
| 69 | + | |
69 | 70 | | |
70 | 71 | | |
71 | 72 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1451 | 1451 | | |
1452 | 1452 | | |
1453 | 1453 | | |
| 1454 | + | |
| 1455 | + | |
1454 | 1456 | | |
1455 | 1457 | | |
1456 | 1458 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
462 | 462 | | |
463 | 463 | | |
464 | 464 | | |
| 465 | + | |
| 466 | + | |
| 467 | + | |
| 468 | + | |
465 | 469 | | |
466 | 470 | | |
467 | 471 | | |
| |||
0 commit comments