[Lldb-commits] [lldb] r131443 - in /lldb/trunk/test/cpp/dynamic-value: TestDynamicValue.py pass-to-base.cpp
Jim Ingham
jingham at apple.com
Mon May 16 17:24:32 PDT 2011
Author: jingham
Date: Mon May 16 19:24:32 2011
New Revision: 131443
URL: http://llvm.org/viewvc/llvm-project?rev=131443&view=rev
Log:
Clang makes two breakpoints for some fairly simple lines, not sure why but no need to check for this
in the testsuite.
Modified:
lldb/trunk/test/cpp/dynamic-value/TestDynamicValue.py
lldb/trunk/test/cpp/dynamic-value/pass-to-base.cpp
Modified: lldb/trunk/test/cpp/dynamic-value/TestDynamicValue.py
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/test/cpp/dynamic-value/TestDynamicValue.py?rev=131443&r1=131442&r2=131443&view=diff
==============================================================================
--- lldb/trunk/test/cpp/dynamic-value/TestDynamicValue.py (original)
+++ lldb/trunk/test/cpp/dynamic-value/TestDynamicValue.py Mon May 16 19:24:32 2011
@@ -102,18 +102,15 @@
# Set up our breakpoints:
do_something_bpt = target.BreakpointCreateByLocation('pass-to-base.cpp', self.do_something_line)
- self.assertTrue(do_something_bpt.IsValid() and
- do_something_bpt.GetNumLocations() == 1,
+ self.assertTrue(do_something_bpt.IsValid(),
VALID_BREAKPOINT)
first_call_bpt = target.BreakpointCreateByLocation('pass-to-base.cpp', self.main_first_call_line)
- self.assertTrue(first_call_bpt.IsValid() and
- first_call_bpt.GetNumLocations() == 1,
+ self.assertTrue(first_call_bpt.IsValid(),
VALID_BREAKPOINT)
second_call_bpt = target.BreakpointCreateByLocation('pass-to-base.cpp', self.main_second_call_line)
- self.assertTrue(second_call_bpt.IsValid() and
- second_call_bpt.GetNumLocations() == 1,
+ self.assertTrue(second_call_bpt.IsValid(),
VALID_BREAKPOINT)
# Now launch the process, and do not stop at the entry point.
Modified: lldb/trunk/test/cpp/dynamic-value/pass-to-base.cpp
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/test/cpp/dynamic-value/pass-to-base.cpp?rev=131443&r1=131442&r2=131443&view=diff
==============================================================================
--- lldb/trunk/test/cpp/dynamic-value/pass-to-base.cpp (original)
+++ lldb/trunk/test/cpp/dynamic-value/pass-to-base.cpp Mon May 16 19:24:32 2011
@@ -51,12 +51,15 @@
{
my_global_A_ptr = new B (100, 200);
B myB (10, 20, my_global_A_ptr);
- B otherB (300, 400, my_global_A_ptr);
+ B *second_fake_A_ptr = new B (150, 250);
+ B otherB (300, 400, second_fake_A_ptr);
myB.doSomething(otherB); // Break here and get real addresses of myB and otherB.
A reallyA (500);
myB.doSomething (reallyA); // Break here and get real address of reallyA.
+ delete my_global_A_ptr;
+
return 0;
}
More information about the lldb-commits
mailing list