mgorny created this revision. mgorny added reviewers: labath, krytarowski, emaste. mgorny requested review of this revision.
Same fix as in NetBSD (a6712889f5f1702dfa535718abe400d1a83174c5). https://reviews.llvm.org/D91026 Files: lldb/source/Host/freebsd/Host.cpp lldb/test/API/commands/platform/process/list/TestProcessList.py Index: lldb/test/API/commands/platform/process/list/TestProcessList.py =================================================================== --- lldb/test/API/commands/platform/process/list/TestProcessList.py +++ lldb/test/API/commands/platform/process/list/TestProcessList.py @@ -19,7 +19,6 @@ @skipIfWindows # https://bugs.llvm.org/show_bug.cgi?id=43702 @skipIfRemote # rdar://problem/66542336 - @expectedFailureAll(oslist=['freebsd']) def test_process_list_with_args(self): """Test process list show process args""" self.build() Index: lldb/source/Host/freebsd/Host.cpp =================================================================== --- lldb/source/Host/freebsd/Host.cpp +++ lldb/source/Host/freebsd/Host.cpp @@ -83,6 +83,7 @@ match_info_ptr->GetProcessInfo().GetName()))) return false; + process_info.SetArg0(cstr); Args &proc_args = process_info.GetArguments(); while (1) { const uint8_t *p = data.PeekData(offset, 1);
Index: lldb/test/API/commands/platform/process/list/TestProcessList.py =================================================================== --- lldb/test/API/commands/platform/process/list/TestProcessList.py +++ lldb/test/API/commands/platform/process/list/TestProcessList.py @@ -19,7 +19,6 @@ @skipIfWindows # https://bugs.llvm.org/show_bug.cgi?id=43702 @skipIfRemote # rdar://problem/66542336 - @expectedFailureAll(oslist=['freebsd']) def test_process_list_with_args(self): """Test process list show process args""" self.build() Index: lldb/source/Host/freebsd/Host.cpp =================================================================== --- lldb/source/Host/freebsd/Host.cpp +++ lldb/source/Host/freebsd/Host.cpp @@ -83,6 +83,7 @@ match_info_ptr->GetProcessInfo().GetName()))) return false; + process_info.SetArg0(cstr); Args &proc_args = process_info.GetArguments(); while (1) { const uint8_t *p = data.PeekData(offset, 1);
_______________________________________________ lldb-commits mailing list lldb-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-commits