Skip to content

Commit 0a04393

Browse files
committed
[lldb][test] TestDataFormatterCpp.py: set breakpoint after all locals have been initialized
Differential Revision: https://reviews.llvm.org/D145487 (cherry picked from commit 905a757)
1 parent 919acf7 commit 0a04393

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -289,7 +289,7 @@ def cleanup():
289289
def test_mem_func_ptr_formats(self):
290290
self.build()
291291

292-
lldbutil.run_to_name_breakpoint(self, "has_local_mem_func_pointers")
292+
lldbutil.run_to_source_breakpoint(self, "Break in has_local_mem_func_pointers", lldb.SBFileSpec("main.cpp"))
293293

294294
# FIXME: don't format pointer to members as bytes, but rather as regular pointers
295295
self.expect(

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

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -70,6 +70,8 @@ void has_local_mem_func_pointers() {
7070

7171
void (IUseCharStar::*virt_member_func_ptr)() =
7272
&IUseCharStar::virt_member_func;
73+
74+
::puts("Break in has_local_mem_func_pointers");
7375
}
7476

7577
int main (int argc, const char * argv[])

0 commit comments

Comments
 (0)