llvm-project
cc911883 - [lldb][Process/FreeBSDKernelCore] Fix thread ordering (#187976)

Commit
25 days ago
[lldb][Process/FreeBSDKernelCore] Fix thread ordering (#187976) In #178306, I made an incorrect assumption that traversing `allproc` in reverse direction would give incremental pid order based on the fact that new processes are added at the head of allproc. However, this assumption is false under certain circumstance such as reusing pid number, thus failing to sort threads correctly. Without using any assumption, explicitly sort threads based on pid retrieved from memory. Fixes: 5349c664fabd49f88c87e31bb3774f40bf938691 (#178306) --------- Signed-off-by: Minsoo Choo <minsoochoo0122@proton.me>
Author
Parents
Loading