This is an archive of the discontinued LLVM Phabricator instance.

[lldb/API] Add GetIndexInDebugger to SBTarget
AbandonedPublic

Authored by mib on Oct 14 2021, 11:47 AM.

Details

Summary

This patch adds a new SBTarget::GetIndexInDebugger method to the SBAPI.

As its name suggests, this can be used to get the target's index in the
debugger's targets list.

Signed-off-by: Med Ismail Bennani <medismail.bennani@gmail.com>

Diff Detail

Event Timeline

mib created this revision.Oct 14 2021, 11:47 AM
mib requested review of this revision.Oct 14 2021, 11:47 AM

We already have SBDebugger::GetIndexOfTarget, would that work?

mib abandoned this revision.Oct 14 2021, 12:39 PM

We already have SBDebugger::GetIndexOfTarget, would that work?

Yes