diff options
author | Greg Clayton <gclayton@apple.com> | 2011-01-17 21:03:33 +0000 |
---|---|---|
committer | Greg Clayton <gclayton@apple.com> | 2011-01-17 21:03:33 +0000 |
commit | fc75303acb7570f4cc21eaafb60763886a5c20c7 (patch) | |
tree | 924111e55fbe0908d153faf8b16f3a821fc72075 /lldb/source/Plugins/Process/Utility/RegisterContextLLDB.h | |
parent | b2a844bfe12af5a52493f85f09ce4e7c260047f6 (diff) | |
download | bcm5719-llvm-fc75303acb7570f4cc21eaafb60763886a5c20c7.tar.gz bcm5719-llvm-fc75303acb7570f4cc21eaafb60763886a5c20c7.zip |
Avoid infinite loops in stack backtraces and renamed:
bool RegisterContextLLDB::GetPC (addr_t& pc);
to:
bool RegisterContextLLDB::ReadPC (addr_t& pc);
To avoid confusion with the GetPC() function that is part of the
lldb_private::RegisterContext:
uint64_t RegisterContext::GetPC (uint64_t fail_value);
Bad things could happen if the two got intermixed and the wrong one got
called.
Fixed inifinite loop detection by watching for two frames where the
RegisterContextLLDB::CursorSP contains the same start_pc and cfa.
llvm-svn: 123673
Diffstat (limited to 'lldb/source/Plugins/Process/Utility/RegisterContextLLDB.h')
-rw-r--r-- | lldb/source/Plugins/Process/Utility/RegisterContextLLDB.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lldb/source/Plugins/Process/Utility/RegisterContextLLDB.h b/lldb/source/Plugins/Process/Utility/RegisterContextLLDB.h index 037836ba7bb..ba0e0522059 100644 --- a/lldb/source/Plugins/Process/Utility/RegisterContextLLDB.h +++ b/lldb/source/Plugins/Process/Utility/RegisterContextLLDB.h @@ -72,7 +72,7 @@ public: GetStartPC (lldb::addr_t& start_pc); bool - GetPC (lldb::addr_t& start_pc); + ReadPC (lldb::addr_t& start_pc); private: |