[lldb] Make SBTarget::LaunchSimple start form the target's LaunchInfo
authorJonas Devlieghere <jonas@devlieghere.com>
Wed, 5 Aug 2020 16:34:18 +0000 (09:34 -0700)
committerJonas Devlieghere <jonas@devlieghere.com>
Wed, 5 Aug 2020 17:08:28 +0000 (10:08 -0700)
commit882d8e60dd40c01c74b4e16b02cf7ca02e846434
tree6a112715088ab4b6b968b9b5b65dcd751f1d62de
parent3169d920ccd16ec3c3e1bf5d91595b70a5278045
[lldb] Make SBTarget::LaunchSimple start form the target's LaunchInfo

Currently SBTarget::LaunchSimple creates a new LaunchInfo which means it
ignores any target properties that have been set. Instead, it should
start from the target's LaunchInfo and populated the specified fields.

Differential revision: https://reviews.llvm.org/D85235
lldb/source/API/SBTarget.cpp
lldb/test/API/python_api/target/TestTargetAPI.py
lldb/test/API/python_api/target/main.c