summaryrefslogtreecommitdiffstats
path: root/lldb/source/Plugins/Process/Utility/RegisterContextLLDB.h
diff options
context:
space:
mode:
authorGreg Clayton <gclayton@apple.com>2011-01-17 21:03:33 +0000
committerGreg Clayton <gclayton@apple.com>2011-01-17 21:03:33 +0000
commitfc75303acb7570f4cc21eaafb60763886a5c20c7 (patch)
tree924111e55fbe0908d153faf8b16f3a821fc72075 /lldb/source/Plugins/Process/Utility/RegisterContextLLDB.h
parentb2a844bfe12af5a52493f85f09ce4e7c260047f6 (diff)
downloadbcm5719-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.h2
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:
OpenPOWER on IntegriCloud