Factor out dummy target creation from CreateTargetInternal.
This makes it impossible for dummy target creation to accidentally fail
due to too-strict checking in one of the CreateTargetInternal overloads.
Testing: check-lldb
rdar://70630655
Paths 
  |  Differential  D90872  
[TargetList] Simplify dummy target creation ClosedPublic Authored by vsk on Nov 5 2020, 11:54 AM. 
Details Summary Factor out dummy target creation from CreateTargetInternal. This makes it impossible for dummy target creation to accidentally fail Testing: check-lldb rdar://70630655 
Diff Detail 
 Event Timeline
 
 
 Comment Actions Oh, my bad, apparently we were leaving the dummy target out of the TargetList. That's a little odd, but I probably did it so that's not so unusual... Ignore my comments... Comment Actions LGTM. 
 This revision is now accepted and ready to land.Nov 5 2020, 2:18 PM 
 This revision was landed with ongoing or failed builds.Nov 5 2020, 4:04 PM Closed by commit rG16e5a347e70b: [TargetList] Simplify dummy target creation (authored by vsk).  ·  Explain Why This revision was automatically updated to reflect the committed changes. 
Revision Contents 
 
Diff 303290 lldb/include/lldb/Target/Target.h
 lldb/include/lldb/Target/TargetList.h
 lldb/source/Core/Debugger.cpp
 lldb/source/Target/TargetList.cpp
  | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Should we move all this into Target and have a private static TargetSP GetDummyTarget()?