[Lldb-commits] [PATCH] D90872: [TargetList] Simplify dummy target creation

Vedant Kumar via Phabricator via lldb-commits lldb-commits at lists.llvm.org
Thu Nov 5 13:40:06 PST 2020


vsk marked an inline comment as done.
vsk added inline comments.


================
Comment at: lldb/source/Target/TargetList.cpp:293
   // FIXME: Maybe the dummy target should be per-Debugger
-  if (!m_dummy_target_sp || !m_dummy_target_sp->IsValid()) {
+  if (!m_dummy_target_sp) {
     ArchSpec arch(Target::GetDefaultArchitecture());
----------------
JDevlieghere wrote:
> I wonder if we gain anything by making this lazy. Maybe it's time to address that FIXME and always have a single DummyTarget held onto by the Debugger? 
You're right, that's even better.


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D90872/new/

https://reviews.llvm.org/D90872



More information about the lldb-commits mailing list