diff options
| author | Jason Molenda <jmolenda@apple.com> | 2012-03-01 03:19:01 +0000 |
|---|---|---|
| committer | Jason Molenda <jmolenda@apple.com> | 2012-03-01 03:19:01 +0000 |
| commit | f9196a259c72ae841bfa1ad51b4327482944845c (patch) | |
| tree | 68e1f356cc5b49104c310b4a3d9d3d8d02a7189b /lldb/source/Plugins/Process/Utility/RegisterContextLLDB.cpp | |
| parent | 74e736f0eb878333b35d51d252687487da4d2320 (diff) | |
| download | bcm5719-llvm-f9196a259c72ae841bfa1ad51b4327482944845c.tar.gz bcm5719-llvm-f9196a259c72ae841bfa1ad51b4327482944845c.zip | |
Remove the sanity checks from RegisterContextLLDB::InitializeZerothFrame
which require a valid CFA address to create a stack frame. On connecting
to just-starting-up hardware we may have a stack pointer/frame pointer of 0
but we should still create a stack frame so other code in lldb can retrieve
register values via a stackframe.
llvm-svn: 151796
Diffstat (limited to 'lldb/source/Plugins/Process/Utility/RegisterContextLLDB.cpp')
| -rw-r--r-- | lldb/source/Plugins/Process/Utility/RegisterContextLLDB.cpp | 13 |
1 files changed, 0 insertions, 13 deletions
diff --git a/lldb/source/Plugins/Process/Utility/RegisterContextLLDB.cpp b/lldb/source/Plugins/Process/Utility/RegisterContextLLDB.cpp index d9ff61b1815..10053dd760a 100644 --- a/lldb/source/Plugins/Process/Utility/RegisterContextLLDB.cpp +++ b/lldb/source/Plugins/Process/Utility/RegisterContextLLDB.cpp @@ -225,19 +225,6 @@ RegisterContextLLDB::InitializeZerothFrame() m_cfa, cfa_regval, cfa_offset); } - - // A couple of sanity checks.. - if (cfa_regval == LLDB_INVALID_ADDRESS || cfa_regval == 0 || cfa_regval == 1) - { - if (log) - { - log->Printf("%*sFrame %u could not find a valid cfa address", - m_frame_number < 100 ? m_frame_number : 100, "", m_frame_number); - } - m_frame_type = eNotAValidFrame; - return; - } - if (log) { log->Printf("%*sThread %d Frame %u initialized frame current pc is 0x%llx cfa is 0x%llx using %s UnwindPlan", |

