diff options
author | Sean Callanan <scallanan@apple.com> | 2012-07-07 01:38:30 +0000 |
---|---|---|
committer | Sean Callanan <scallanan@apple.com> | 2012-07-07 01:38:30 +0000 |
commit | a0d17365abddcd2a0a86582df399c9f12e6d36b5 (patch) | |
tree | c87f517b29d3e53e88bb2eaa3c2d11fe3d97bd8b | |
parent | 7820bd1e52167367edd9ec269cd8a89095756eb1 (diff) | |
download | bcm5719-llvm-a0d17365abddcd2a0a86582df399c9f12e6d36b5.tar.gz bcm5719-llvm-a0d17365abddcd2a0a86582df399c9f12e6d36b5.zip |
On i386 we see occasional crashes when the register
context is not returning valid registers yet. Don't
crash in these situations.
<rdar://problem/11650335>
llvm-svn: 159885
-rw-r--r-- | lldb/source/Plugins/ABI/MacOSX-i386/ABIMacOSX_i386.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/lldb/source/Plugins/ABI/MacOSX-i386/ABIMacOSX_i386.cpp b/lldb/source/Plugins/ABI/MacOSX-i386/ABIMacOSX_i386.cpp index 85dbf0a1c9c..f5cd7ca7dff 100644 --- a/lldb/source/Plugins/ABI/MacOSX-i386/ABIMacOSX_i386.cpp +++ b/lldb/source/Plugins/ABI/MacOSX-i386/ABIMacOSX_i386.cpp @@ -272,6 +272,8 @@ ABIMacOSX_i386::PrepareTrivialCall (Thread &thread, // the actual register it pertains to is not important, just the size needs // to be correct. Here we use "eax"... const RegisterInfo *reg_info_32 = reg_ctx->GetRegisterInfoByName("eax"); + if (!reg_info_32) + return false; // TODO this should actually never happen // Make room for the argument(s) on the stack |