llvm-project/lldb/source/Plugins/Platform
Tatyana Krasnukha 2634ec6ce9 [lldb] "target create" shouldn't save target if the command failed
TargetList::CreateTarget automatically adds created target to the list, however,
CommandObjectTargetCreate does some additional preparation after creating a target
and which can fail. The command should remove created target if it failed. Since
the function has many ways to return, scope guard does this work safely.

Changes to the TargetList make target adding and selection more transparent.

Other changes remove unnecessary SetSelectedTarget after CreateTarget.

Differential Revision: https://reviews.llvm.org/D93052
2020-12-12 16:40:58 +03:00
..
Android [lldb] Delete copy operations on PluginInterface class 2020-10-09 10:37:09 +02:00
FreeBSD [lldb] Enable FreeBSDRemote plugin by default and update test status 2020-11-05 17:49:46 +01:00
Linux [lldb][NFC] Make GetResumeCountForLaunchInfo return an unsigned. 2020-10-27 16:25:01 +01:00
MacOSX [lldb] Treat remote macOS debugging like any other remote darwin platform 2020-12-02 17:03:22 -08:00
NetBSD [lldb][NFC] Make GetResumeCountForLaunchInfo return an unsigned. 2020-10-27 16:25:01 +01:00
OpenBSD [lldb] Delete copy operations on PluginInterface class 2020-10-09 10:37:09 +02:00
POSIX [lldb] "target create" shouldn't save target if the command failed 2020-12-12 16:40:58 +03:00
Windows [lldb] "target create" shouldn't save target if the command failed 2020-12-12 16:40:58 +03:00
gdb-server [lldb] "target create" shouldn't save target if the command failed 2020-12-12 16:40:58 +03:00
CMakeLists.txt [Platform] Remove Kalimba Platform 2019-03-27 16:23:50 +00:00