[Reproducers] Serialize process arguments in ProcessInfo
authorJonas Devlieghere <jonas@devlieghere.com>
Tue, 12 May 2020 17:28:27 +0000 (10:28 -0700)
committerJonas Devlieghere <jonas@devlieghere.com>
Tue, 12 May 2020 18:12:37 +0000 (11:12 -0700)
commitbad61548b2074cf3bf7be2cb4c0d75646e001a73
tree8f61d1a1b8501fedaad0e3786eca7072ba0fef06
parent9202df35b2f47f7491f50a30356ccd8144c48ba8
[Reproducers] Serialize process arguments in ProcessInfo

While debugging why TestProcessList.py failed during passive replay, I
remembered that we don't serialize the arguments for ProcessInfo. This
is necessary to make the test pass and to make platform process list -v
behave the same during capture and replay.

Differential revision: https://reviews.llvm.org/D79646
lldb/include/lldb/Utility/Args.h
lldb/source/Utility/Args.cpp
lldb/source/Utility/ProcessInfo.cpp
lldb/test/Shell/Reproducer/TestProcessList.test [new file with mode: 0644]
lldb/unittests/Utility/ArgsTest.cpp