diff options
Diffstat (limited to 'lldb/test/lang/cpp/dynamic-value')
| -rw-r--r-- | lldb/test/lang/cpp/dynamic-value/TestDynamicValue.py | 32 | ||||
| -rw-r--r-- | lldb/test/lang/cpp/dynamic-value/pass-to-base.cpp | 28 |
2 files changed, 0 insertions, 60 deletions
diff --git a/lldb/test/lang/cpp/dynamic-value/TestDynamicValue.py b/lldb/test/lang/cpp/dynamic-value/TestDynamicValue.py index 43853945a25..84cf6a5935a 100644 --- a/lldb/test/lang/cpp/dynamic-value/TestDynamicValue.py +++ b/lldb/test/lang/cpp/dynamic-value/TestDynamicValue.py @@ -40,15 +40,6 @@ class DynamicValueTestCase(TestBase): self.main_second_call_line = line_number('pass-to-base.cpp', '// Break here and get real address of reallyA.') - self.main_third_call_line = line_number('pass-to-base.cpp', - '// Break here and check b has 0 children') - self.main_fourth_call_line = line_number('pass-to-base.cpp', - '// Break here and check b still has 0 children') - self.main_fifth_call_line = line_number('pass-to-base.cpp', - '// Break here and check b has one child now') - - - def examine_value_object_of_this_ptr (self, this_static, this_dynamic, dynamic_location): @@ -129,15 +120,6 @@ class DynamicValueTestCase(TestBase): second_call_bpt = target.BreakpointCreateByLocation('pass-to-base.cpp', self.main_second_call_line) self.assertTrue(second_call_bpt, VALID_BREAKPOINT) - third_call_bpt = target.BreakpointCreateByLocation('pass-to-base.cpp', self.main_third_call_line) - self.assertTrue(third_call_bpt, - VALID_BREAKPOINT) - fourth_call_bpt = target.BreakpointCreateByLocation('pass-to-base.cpp', self.main_fourth_call_line) - self.assertTrue(fourth_call_bpt, - VALID_BREAKPOINT) - fifth_call_bpt = target.BreakpointCreateByLocation('pass-to-base.cpp', self.main_fifth_call_line) - self.assertTrue(fifth_call_bpt, - VALID_BREAKPOINT) # Now launch the process, and do not stop at the entry point. process = target.LaunchSimple (None, None, self.get_process_working_directory()) @@ -251,20 +233,6 @@ class DynamicValueTestCase(TestBase): self.assertTrue (anotherA_loc == reallyA_loc) self.assertTrue (anotherA_value.GetTypeName().find ('B') == -1) - self.runCmd("continue") -# self.runCmd("frame select 0") -# self.runCmd("frame variable") - b = self.frame().FindVariable("b").GetDynamicValue(lldb.eDynamicCanRunTarget) - self.assertTrue(b.GetNumChildren() == 0, "b has 0 children") - self.runCmd("continue") -# self.runCmd("frame select 0") -# self.runCmd("frame variable") - self.assertTrue(b.GetNumChildren() == 0, "b still has 0 children") - self.runCmd("continue") -# self.runCmd("frame select 0") -# self.runCmd("frame variable") - self.assertTrue(b.GetNumChildren() != 0, "b now has 1 child") - if __name__ == '__main__': import atexit lldb.SBDebugger.Initialize() 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 79ea332444b..2bccf330382 100644 --- a/lldb/test/lang/cpp/dynamic-value/pass-to-base.cpp +++ b/lldb/test/lang/cpp/dynamic-value/pass-to-base.cpp @@ -52,31 +52,6 @@ private: static A* my_global_A_ptr; -class BaseClass -{ -public: - BaseClass(); - virtual ~BaseClass() { } -}; - -class DerivedClass : public BaseClass -{ -public: - DerivedClass(); - virtual ~DerivedClass() { } -protected: - int mem; -}; - -BaseClass::BaseClass() -{ -} - -DerivedClass::DerivedClass() : BaseClass() -{ - mem = 101; -} - int main (int argc, char **argv) { @@ -90,8 +65,5 @@ main (int argc, char **argv) A reallyA (500); myB.doSomething (reallyA); // Break here and get real address of reallyA. - BaseClass *b = nullptr; // Break here and check b has 0 children - b = new DerivedClass(); // Break here and check b still has 0 children - b = nullptr; // Break here and check b has one child now return 0; } |

