summaryrefslogtreecommitdiffstats
path: root/lldb/test/lang/cpp/dynamic-value/pass-to-base.cpp
diff options
context:
space:
mode:
authorJim Ingham <jingham@apple.com>2012-10-16 00:09:33 +0000
committerJim Ingham <jingham@apple.com>2012-10-16 00:09:33 +0000
commit5d88a068eed8625b9668db9f6b254ae5d2a0e187 (patch)
tree107a171d4e7d5594649bcd7db199c77446dbbe87 /lldb/test/lang/cpp/dynamic-value/pass-to-base.cpp
parent244beb42cee42a2ba367772d2d2a8bb04c98991f (diff)
downloadbcm5719-llvm-5d88a068eed8625b9668db9f6b254ae5d2a0e187.tar.gz
bcm5719-llvm-5d88a068eed8625b9668db9f6b254ae5d2a0e187.zip
Patch from Matt Kopec <matt.kopec@intel.com> to fix the problem that if two breakpoints were set on consecutive addresses, the continue from the
first breakpoint would skip the second. llvm-svn: 166000
Diffstat (limited to 'lldb/test/lang/cpp/dynamic-value/pass-to-base.cpp')
-rw-r--r--lldb/test/lang/cpp/dynamic-value/pass-to-base.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/lldb/test/lang/cpp/dynamic-value/pass-to-base.cpp b/lldb/test/lang/cpp/dynamic-value/pass-to-base.cpp
index a817bade941..2bccf330382 100644
--- a/lldb/test/lang/cpp/dynamic-value/pass-to-base.cpp
+++ b/lldb/test/lang/cpp/dynamic-value/pass-to-base.cpp
@@ -23,7 +23,8 @@ public:
doSomething (A &anotherA)
{
printf ("In A %p doing something with %d.\n", this, m_a_value);
- printf ("Also have another A at %p: %d.\n", &anotherA, anotherA.Value()); // Break here in doSomething.
+ int tmp_value = anotherA.Value();
+ printf ("Also have another A at %p: %d.\n", &anotherA, tmp_value); // Break here in doSomething.
}
int
OpenPOWER on IntegriCloud