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

via lldb-commits lldb-commits at lists.llvm.org
Wed Oct 9 11:25:35 PDT 2024


================
@@ -265,6 +264,25 @@ bool MachThread::GetBasicInfo(thread_t thread,
   return false;
 }
 
+struct thread_extended_info *MachThread::GetExtendedInfo() {
+  if (MachThread::GetExtendedInfo(m_mach_port_number, &m_extended_info))
+    return &m_extended_info;
+  return NULL;
+}
+
+bool MachThread::GetExtendedInfo(thread_t thread,
+                                 struct thread_extended_info *basicInfoPtr) {
----------------
jimingham wrote:

It's confusing to have a variable called "basicInfoPtr" actually be an "extended_info"...  Can you change this name?

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


More information about the lldb-commits mailing list