[Lldb-commits] [lldb] fce8e75 - [lldb] [Host/freebsd] Set Arg0 for 'platform process list -v'
Michał Górny via lldb-commits
lldb-commits at lists.llvm.org
Mon Nov 9 02:37:00 PST 2020
Author: Michał Górny
Date: 2020-11-09T11:35:11+01:00
New Revision: fce8e758892f0b650762513680adc06cea53d6e3
URL: https://github.com/llvm/llvm-project/commit/fce8e758892f0b650762513680adc06cea53d6e3
DIFF: https://github.com/llvm/llvm-project/commit/fce8e758892f0b650762513680adc06cea53d6e3.diff
LOG: [lldb] [Host/freebsd] Set Arg0 for 'platform process list -v'
Same fix as in NetBSD (a6712889f5f1702dfa535718abe400d1a83174c5).
Differential Revision: https://reviews.llvm.org/D91012
Added:
Modified:
lldb/source/Host/freebsd/Host.cpp
lldb/test/API/commands/platform/process/list/TestProcessList.py
Removed:
################################################################################
diff --git a/lldb/source/Host/freebsd/Host.cpp b/lldb/source/Host/freebsd/Host.cpp
index 460a535cf1e0..c0cc74a5f6cc 100644
--- a/lldb/source/Host/freebsd/Host.cpp
+++ b/lldb/source/Host/freebsd/Host.cpp
@@ -83,6 +83,7 @@ GetFreeBSDProcessArgs(const ProcessInstanceInfoMatch *match_info_ptr,
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);
diff --git a/lldb/test/API/commands/platform/process/list/TestProcessList.py b/lldb/test/API/commands/platform/process/list/TestProcessList.py
index 1bc37b542b19..fe2ed74916eb 100644
--- a/lldb/test/API/commands/platform/process/list/TestProcessList.py
+++ b/lldb/test/API/commands/platform/process/list/TestProcessList.py
@@ -19,7 +19,6 @@ class ProcessListTestCase(TestBase):
@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()
More information about the lldb-commits
mailing list