The new member function allows to check if a target is dummy or real.
It is useful for commands that can't be executed on the dummy target.
For instance: symbol-list-lines command.
Details
Diff Detail
Event Timeline
Is the dummy target something we need to expose over the SBAPI?
I see that other places in lldb-mi query if (sbTarget == rSessionInfo.GetDebugger().GetDummyTarget()). Would that be sufficient?
I think we can remove comments added by me and commit patch as it is. Any thoughts about it?
Have you seen my earlier question:
Is the dummy target something we need to expose over the SBAPI?
I see that other places in lldb-mi query if (sbTarget == rSessionInfo.GetDebugger().GetDummyTarget()).
Would that be sufficient?
It's hard to choose something, both variants are good enough. But, if there is no necessity in such a method, we can drop it.
Okay then let's not do this for now. It's fine to revisit this later if there turns out to be a good use-case for it, but every SBAPI call we introduce has to be supported indefinitely and can therefore be quite expensive to maintain.
Could you add a doc comment here explaining it?