summaryrefslogtreecommitdiffstats
path: root/lldb/source/Commands/CommandObjectRegister.cpp
diff options
context:
space:
mode:
authorGreg Clayton <gclayton@apple.com>2012-05-18 02:38:05 +0000
committerGreg Clayton <gclayton@apple.com>2012-05-18 02:38:05 +0000
commitfa559e5c6e939c7c1570eb2cde3b86aff12abdc7 (patch)
treee81c4c86521f48c02f8a8111fd6ffeb26ec56a1c /lldb/source/Commands/CommandObjectRegister.cpp
parentf34358e90bf0fa114ff54c488331605ec0627c9c (diff)
downloadbcm5719-llvm-fa559e5c6e939c7c1570eb2cde3b86aff12abdc7.tar.gz
bcm5719-llvm-fa559e5c6e939c7c1570eb2cde3b86aff12abdc7.zip
<rdar://problem/11386214>
<rdar://problem/11455913> "target symbol add" should flush the cached frames "register write" should flush the thread state in case registers modifications change stack llvm-svn: 157042
Diffstat (limited to 'lldb/source/Commands/CommandObjectRegister.cpp')
-rw-r--r--lldb/source/Commands/CommandObjectRegister.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/lldb/source/Commands/CommandObjectRegister.cpp b/lldb/source/Commands/CommandObjectRegister.cpp
index c34e6eee2e4..37ebb786af9 100644
--- a/lldb/source/Commands/CommandObjectRegister.cpp
+++ b/lldb/source/Commands/CommandObjectRegister.cpp
@@ -425,6 +425,9 @@ public:
{
if (reg_ctx->WriteRegister (reg_info, reg_value))
{
+ // Toss all frames and anything else in the thread
+ // after a register has been written.
+ exe_ctx.GetThreadRef().Flush();
result.SetStatus (eReturnStatusSuccessFinishNoResult);
return true;
}
OpenPOWER on IntegriCloud