llvm-project/lldb/source
Med Ismail Bennani 0d7401cf9d
[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: Med Ismail Bennani <medismail.bennani@gmail.com>
2020-07-07 23:30:24 +02:00
..
API [lldb/api] Add checks for StackFrame::GetRegisterContext calls (NFC) 2020-07-07 23:30:24 +02:00
Breakpoint [lldb][NFC] Clarify that spaces can't be in breakpoint names 2020-07-05 10:55:02 +02:00
Commands [lldb] Replace StringConvert with llvm::to_integer when parsing integer values in CommandObjects 2020-07-01 17:19:31 +02:00
Core [lldb/Core] Fix crash in ValueObject::CreateChildAtIndex 2020-07-07 20:37:13 +02:00
DataFormatters [lldb] Small improvements in ValueObjectPrinter::PrintDecl (NFC) 2020-06-12 21:05:05 -07:00
Expression [lldb] Fix missing characters when autocompleting LLDB commands in REPL 2020-07-03 12:10:00 +02:00
Host [lldb] Use std::make_unique<> (NFC) 2020-06-24 17:48:40 -07:00
Initialization [lldb][NFC] Fix all formatting errors in .cpp file headers 2020-01-24 08:52:55 +01:00
Interpreter [lldb/ScriptInterpreter] Fix missing include on Windows 2020-06-25 12:19:04 -07:00
Plugins Minor fixups to LLDB AArch64 register infos macros for SVE register infos 2020-07-08 01:07:17 +05:00
Symbol [lldb] Use std::make_unique<> (NFC) 2020-06-24 17:48:40 -07:00
Target [lldb] Use std::make_unique<> (NFC) 2020-06-24 17:48:40 -07:00
Utility [lldb] Fix unaligned load in DataExtractor 2020-07-07 10:13:41 -07:00
CMakeLists.txt Make LLVM_APPEND_VC_REV=OFF affect clang, lld, and lldb as well. 2020-01-16 19:04:08 -05:00
lldb.cpp [lldb] Fix version string when using LLDB_REVISION but not LLDB_REPOSITORY 2020-02-20 10:07:50 -08:00