diff --git a/lldb/test/API/functionalities/archives/Makefile b/lldb/test/API/functionalities/archives/Makefile --- a/lldb/test/API/functionalities/archives/Makefile +++ b/lldb/test/API/functionalities/archives/Makefile @@ -18,7 +18,7 @@ libfoo-thin.a: a.o b.o $(eval LLVM_AR := $(LLVM_TOOLS_DIR)/llvm-ar) - $(eval LLVM_ARFLAGS := -rcsDT) + $(eval LLVM_ARFLAGS := -rcsUT) $(LLVM_AR) $(LLVM_ARFLAGS) $@ $^ include Makefile.rules diff --git a/lldb/test/API/functionalities/archives/TestBSDArchives.py b/lldb/test/API/functionalities/archives/TestBSDArchives.py --- a/lldb/test/API/functionalities/archives/TestBSDArchives.py +++ b/lldb/test/API/functionalities/archives/TestBSDArchives.py @@ -167,6 +167,20 @@ ") of the .o file doesn't match", ] self.check_frame_variable_errors(thread, error_strings) + + # Break at b() should succeed + (target, process, thread, bkpt) = lldbutil.run_to_name_breakpoint( + self, "b", bkpt_module=exe + ) + self.expect( + "thread list", + STOPPED_DUE_TO_BREAKPOINT, + substrs=["stopped", "stop reason = breakpoint"], + ) + self.expect( + "frame variable", VARIABLES_DISPLAYED_CORRECTLY, substrs=["(int) arg = 2"] + ) + @skipIfRemote @skipUnlessDarwin