llvm-project/lldb
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
..
bindings [lldb/api] Improve error reporting in SBBreakpoint::AddName (NFCI) 2020-07-01 12:45:05 +02:00
cmake [lldb/Lua] Require Lua 5.3 2020-06-23 09:24:01 -07:00
docs [lldb/Docs] Add more details to the issues with custom Python installs on macOS 2020-06-25 10:53:30 -07:00
examples As part of using inclusive language within the llvm project, 2020-06-19 14:51:04 -07:00
include/lldb [lldb] Fix unaligned load in DataExtractor 2020-07-07 10:13:41 -07:00
packages/Python [lldb/test] Fix lldbutil.run_to_***_breakpoint for shared libraries 2020-07-07 16:07:35 +02:00
resources
scripts [lldb/Scripts] 2020-06-30 17:06:14 +02:00
source [lldb/api] Add checks for StackFrame::GetRegisterContext calls (NFC) 2020-07-07 23:30:24 +02:00
test [lldb/Core] Fix crash in ValueObject::CreateChildAtIndex 2020-07-07 20:37:13 +02:00
third_party/Python/module [lldb] NFC: Fix trivial typo in comments, documents, and messages 2020-04-07 01:06:16 +09:00
tools Use CMAKE_OSX_SYSROOT instead of the environment variable SYSROOT 2020-07-06 13:17:31 -07:00
unittests [lldb] Fix unaligned load in DataExtractor 2020-07-07 10:13:41 -07:00
utils [lldb/Utils] Serialize exit code in lldb-repro.py 2020-05-05 16:05:49 -07:00
.clang-format
.clang-tidy [lldb] Add .clang-tidy with customization to disable readability-identifier-naming 2020-03-09 12:50:28 -07:00
.gitignore Add .noindex to the gitignore 2019-04-05 17:57:42 +00:00
CMakeLists.txt [lldb/CMake] Only CMAKE_CFG_INTDIR if it's not '.' 2020-03-27 17:49:00 -07:00
CODE_OWNERS.txt [lldb][NFC] Cleanup mentions and code related to lldb-mi 2019-07-19 15:55:23 +00:00
LICENSE.TXT
use_lldb_suite_root.py