[Lldb-commits] [lldb] 905a757 - [lldb][test] TestDataFormatterCpp.py: set breakpoint after all locals have been initialized

Michael Buch via lldb-commits lldb-commits at lists.llvm.org
Tue Mar 7 07:45:13 PST 2023


Author: Michael Buch
Date: 2023-03-07T15:45:01Z
New Revision: 905a7577c5845c0ad40f8a98f704cc3747e0e4fa

URL: https://github.com/llvm/llvm-project/commit/905a7577c5845c0ad40f8a98f704cc3747e0e4fa
DIFF: https://github.com/llvm/llvm-project/commit/905a7577c5845c0ad40f8a98f704cc3747e0e4fa.diff

LOG: [lldb][test] TestDataFormatterCpp.py: set breakpoint after all locals have been initialized

Differential Revision: https://reviews.llvm.org/D145487

Added: 
    

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

Removed: 
    


################################################################################
diff  --git a/lldb/test/API/functionalities/data-formatter/data-formatter-cpp/TestDataFormatterCpp.py b/lldb/test/API/functionalities/data-formatter/data-formatter-cpp/TestDataFormatterCpp.py
index 10f6d381cd9a..ee9057ba715d 100644
--- a/lldb/test/API/functionalities/data-formatter/data-formatter-cpp/TestDataFormatterCpp.py
+++ b/lldb/test/API/functionalities/data-formatter/data-formatter-cpp/TestDataFormatterCpp.py
@@ -289,7 +289,7 @@ def cleanup():
     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(

diff  --git a/lldb/test/API/functionalities/data-formatter/data-formatter-cpp/main.cpp b/lldb/test/API/functionalities/data-formatter/data-formatter-cpp/main.cpp
index 868eb73f632b..1072fc262aa5 100644
--- a/lldb/test/API/functionalities/data-formatter/data-formatter-cpp/main.cpp
+++ b/lldb/test/API/functionalities/data-formatter/data-formatter-cpp/main.cpp
@@ -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[])


        


More information about the lldb-commits mailing list