[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
Thu Jun 1 12:53:36 PDT 2023
mib marked 3 inline comments as done.
mib added inline comments.
================
Comment at: lldb/source/Commands/CommandObjectTarget.cpp:546-551
+ if (!name.empty()) {
+ if (name == target_idx_arg) {
+ target_idx = i;
+ break;
+ }
+ }
----------------
bulbazord wrote:
> nit:
>
> Also, do we need the empty check? Or is it possible that `target_idx_arg` could be an empty string?
We need to keep the empty check otherwise `target select ""` would select the first non-labeled target which would be wrong.
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D151859/new/
https://reviews.llvm.org/D151859
More information about the lldb-commits
mailing list