[debugserver] Return 'ios' instead of 'iphoneos' for the ostype.
authorFrederic Riss <friss@apple.com>
Wed, 25 Apr 2018 22:12:12 +0000 (22:12 +0000)
committerFrederic Riss <friss@apple.com>
Wed, 25 Apr 2018 22:12:12 +0000 (22:12 +0000)
commit05e8bc85e63cd2f6b0795e7d254611439f63a238
tree4559893c648a0cde0dbc8e59e7231060c54e4e92
parent516837f2a1585d4a2a620162cc996ca763046e7d
[debugserver] Return 'ios' instead of 'iphoneos' for the ostype.

When I merged the 2 codepaths that return an OS type, I hade
checked that the places accepting 'iphoneos' would also accept
'ios', but then I got it backwards and return 'iphoneos'.

We use this value to build triples, and there 'iphoneos' is
invalid.

This also makes the test slightly simpler.

llvm-svn: 330877
lldb/packages/Python/lldbsuite/test/tools/lldb-server/TestAppleSimulatorOSType.py
lldb/tools/debugserver/source/MacOSX/MachProcess.mm