[Lldb-commits] [PATCH] D151859: [lldb/Target] Add ability to set name to targets

Med Ismail Bennani via Phabricator via lldb-commits lldb-commits at lists.llvm.org
Wed May 31 17:10:30 PDT 2023


mib created this revision.
mib added reviewers: JDevlieghere, bulbazord, jingham.
mib added a project: LLDB.
Herald added a project: All.
mib requested review of this revision.
Herald added a subscriber: lldb-commits.

This patch add the ability for the user to set a name for a target.

This can be very useful when debugging targets with the same executables
in the same session.

Names can be set either at the target creation in the command
interpreter or at any time using the SBAPI.

Target names show up in the `target list` output, following the target
index, and they also allow the user to switch targets using them.

rdar://105016191

Signed-off-by: Med Ismail Bennani <ismail at bennani.ma>


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D151859

Files:
  lldb/include/lldb/API/SBTarget.h
  lldb/include/lldb/Target/Target.h
  lldb/source/API/SBTarget.cpp
  lldb/source/Commands/CommandObjectTarget.cpp

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D151859.527242.patch
Type: text/x-patch
Size: 6302 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/lldb-commits/attachments/20230601/98b3b2a6/attachment-0001.bin>


More information about the lldb-commits mailing list