[Lldb-commits] [lldb] [lldb] Make CommandObject::GetTarget filter out the dummy target (PR #198026)
via lldb-commits
lldb-commits at lists.llvm.org
Fri May 15 14:51:46 PDT 2026
jimingham wrote:
I think you are getting tripped up by the fact that for convenience, commands that could use the dummy target were doing some auto-detection behind your back. For instance if you want to set a breakpoint in your ~/.lldbinit file you only have to say `breakpoint add address 0x12345`. We don't require you to explicitly pass the --dummy flag, even though you are implicitly asking for that behavior. That means when there is no target available, even if you didn't say "use dummy target" we have to provide the dummy target anyway.
And I can't think of any way to do that except provide the dummy target from GetTarget() if eCommandAllowsDummyTarget is set and you can't find a better target around.
https://github.com/llvm/llvm-project/pull/198026
More information about the lldb-commits
mailing list