[Lldb-commits] [lldb] 12ba989 - [lldb/Process] Update ThreadKDP for API change
Jonas Devlieghere via lldb-commits
lldb-commits at lists.llvm.org
Mon Mar 9 10:02:04 PDT 2020
Author: Jonas Devlieghere
Date: 2020-03-09T10:01:53-07:00
New Revision: 12ba989eeffbca12b501b9fde0a697c833fdfb1a
URL: https://github.com/llvm/llvm-project/commit/12ba989eeffbca12b501b9fde0a697c833fdfb1a
DIFF: https://github.com/llvm/llvm-project/commit/12ba989eeffbca12b501b9fde0a697c833fdfb1a.diff
LOG: [lldb/Process] Update ThreadKDP for API change
GetUnwinder now returns a reference instead of a pointer.
Added:
Modified:
lldb/source/Plugins/Process/MacOSX-Kernel/ThreadKDP.cpp
Removed:
################################################################################
diff --git a/lldb/source/Plugins/Process/MacOSX-Kernel/ThreadKDP.cpp b/lldb/source/Plugins/Process/MacOSX-Kernel/ThreadKDP.cpp
index a838b1038946..a4af5e030ff7 100644
--- a/lldb/source/Plugins/Process/MacOSX-Kernel/ThreadKDP.cpp
+++ b/lldb/source/Plugins/Process/MacOSX-Kernel/ThreadKDP.cpp
@@ -118,9 +118,7 @@ ThreadKDP::CreateRegisterContextForFrame(StackFrame *frame) {
}
}
} else {
- Unwind *unwinder = GetUnwinder();
- if (unwinder != nullptr)
- reg_ctx_sp = unwinder->CreateRegisterContextForFrame(frame);
+ reg_ctx_sp = GetUnwinder().CreateRegisterContextForFrame(frame);
}
return reg_ctx_sp;
}
More information about the lldb-commits
mailing list