[Lldb-commits] [lldb] [LLDB] Avoid crashes when inspecting MSVC STL types (PR #140761)
Michael Buch via lldb-commits
lldb-commits at lists.llvm.org
Wed May 21 02:00:48 PDT 2025
================
@@ -379,7 +379,7 @@ LibStdcppSharedPtrSyntheticFrontEnd::CalculateNumChildren() {
lldb::ValueObjectSP
LibStdcppSharedPtrSyntheticFrontEnd::GetChildAtIndex(uint32_t idx) {
- if (idx == 0)
+ if (idx == 0 && m_ptr_obj)
----------------
Michael137 wrote:
```suggestion
if (!m_ptr_obj)
return nullptr;
if (idx == 0)
```
https://github.com/llvm/llvm-project/pull/140761
More information about the lldb-commits
mailing list