lldb-server needs an explicit 'g' or 'p' argument now. Since lldb-server
is started as a gdbserver in this test, 'g' should be passed to it
explicitly.
Details
Diff Detail
- Repository
- rL LLVM
Event Timeline
test/tools/lldb-gdbserver/commandline/TestStubSetSID.py | ||
---|---|---|
18 ↗ | (On Diff #20438) | Since lldb-server is supposed to be used on all platform except OSX you may use such alternative condition: return [] if 'darwin' in sys.platform else ['g'] |
lldb/trunk/test/tools/lldb-gdbserver/commandline/TestStubSetSID.py | ||
---|---|---|
42 | since there's only 0-1 elements in the array, why bother with the join? Why not just # returns "g" to make lldb-server run in gdbserver mode def get_debugserver_mode(): return "" if 'darwin' in sys.platform else "g" stub_sid = self.get_stub_sid(' %{mode} --setsid'.format(mode=get_debugserver_mode())) |
lldb/trunk/test/tools/lldb-gdbserver/commandline/TestStubSetSID.py | ||
---|---|---|
42 |
It is safer to use lists for command args. See for example https://docs.python.org/2.7/library/subprocess.html#popen-constructor "... it is recommended to pass args as a sequence."
I do not know if |mode| is relevant terminology in case of debugserver. But if you think it holds for debugserver as well, and that you want this changed, I will do it. |
I'm not particular in this case. If you agree, change it. If not, please leave it as is.