llvm-project
2669fdee - NFC: SBThread should not be the one to compute StopReasonData. (#157577)

Commit
59 days ago
NFC: SBThread should not be the one to compute StopReasonData. (#157577) This is something the StopInfo class manages, so it should be allowed to compute this rather than having SBThread do so. This code just moves the computation to methods in StopInfo. It is mostly NFC. The one change that I actually had to adjust the tests for was a couple of tests that were asking for the UnixSignal stop info data by asking for the data at index 1. GetStopInfoDataCount returns 1 and we don't do 1 based indexing so the test code was clearly wrong. But I don't think it makes sense to perpetuate handing out the value regardless of what index you pass us.
Author
Parents
Loading