This patch fixes a bug which was causing test failures on remote targets.
LLDB was select default platform instead of currently select target platform due to which following use case ended up launching a local debug server instead of spawning a server on currently connect + select platform.
file a.out
target select remote-linux
target connect connect://hostname:5432
run
on issuing run command lldb will launch the target with old platform pointer select by default on creating Target with command file a.out.
This patch fixes this behavior by updating the sp_platform to currently selected platform making sure we launch debugserver on the right platform.
This should fix all remote tests that issues a command sequence following a file command.