[Lldb-commits] [lldb] [lldb][NFC] Simplify macOS thread name fetching. (PR #111684)

Donough Liu via lldb-commits lldb-commits at lists.llvm.org
Wed Oct 9 12:04:44 PDT 2024


ldm0 wrote:

> I asked some folks who know and the proc_pidinfo call and the extended_thread_info read the same data, so this should be NFC...

Yes, this PR does not intend to change the behavior: [`thread_info`](https://github.com/apple/darwin-xnu/blob/a1babec6b135d1f35b2590a1990af3c5c5393479/osfmk/kern/thread.c#L1984), [`proc_pidinfo`](https://github.com/apple/darwin-xnu/blob/2ff845c2e033bd0ff64b5b6aa6063a1f8f65aa32/osfmk/kern/bsd_kern.c#L1076). Just a drive-by optimization to reduce syscalls.

https://github.com/llvm/llvm-project/pull/111684


More information about the lldb-commits mailing list