[lldb][test] TestDataFormatterCpp.py: set breakpoint after all locals have been initi...
authorMichael Buch <michaelbuch12@gmail.com>
Tue, 7 Mar 2023 15:44:33 +0000 (15:44 +0000)
committerMichael Buch <michaelbuch12@gmail.com>
Tue, 7 Mar 2023 15:45:01 +0000 (15:45 +0000)
Differential Revision: https://reviews.llvm.org/D145487

lldb/test/API/functionalities/data-formatter/data-formatter-cpp/TestDataFormatterCpp.py
lldb/test/API/functionalities/data-formatter/data-formatter-cpp/main.cpp

index 10f6d38..ee9057b 100644 (file)
@@ -289,7 +289,7 @@ class CppDataFormatterTestCase(TestBase):
     def test_mem_func_ptr_formats(self):
         self.build()
 
-        lldbutil.run_to_name_breakpoint(self, "has_local_mem_func_pointers")
+        lldbutil.run_to_source_breakpoint(self, "Break in has_local_mem_func_pointers", lldb.SBFileSpec("main.cpp"))
 
         # FIXME: don't format pointer to members as bytes, but rather as regular pointers
         self.expect(
index 868eb73..1072fc2 100644 (file)
@@ -70,6 +70,8 @@ void has_local_mem_func_pointers() {
   
   void (IUseCharStar::*virt_member_func_ptr)() =
       &IUseCharStar::virt_member_func;
+
+  ::puts("Break in has_local_mem_func_pointers");
 }
 
 int main (int argc, const char * argv[])