Skip to content
Unverified Commit 0d7401cf authored by Med Ismail Bennani's avatar Med Ismail Bennani
Browse files

[lldb/api] Add checks for StackFrame::GetRegisterContext calls (NFC)

This patch fixes a crash that is happening because of a null pointer
dereference in SBFrame.

StackFrame::GetRegisterContext says explicitly that you might not get
a valid RegisterContext back but the pointer wasn't tested before,
resulting in crashes. This should solve the issue.

rdar://54462095

Differential Revision: https://reviews.llvm.org/D83343



Signed-off-by: default avatarMed Ismail Bennani <medismail.bennani@gmail.com>
parent b6a20a49
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment