Skip to content

Suggestion: convert sosplugin commands to sub-commands of sos command #2998

Open

Description

@am11

Currently, some SOS commands are ambiguous and slightly confusing from UX viewpoint. An example is registers command with alias r; in lldb, r is reserved for run command so this alias does not get overridden when sosplugin is loaded. Also, register (singular) is a built-in command so users have to remember to pluralize if they intentionally wanted to execute the one out of sosplugin.

It would be nice if all SOS command are prefixed with sos, so instead of:

(lldb) soshelp
(lldb) clrstack -f
(lldb) lm
(lldb) registers
# and so on

we could have:

(lldb) sos help
(lldb) sos clrstack -f
(lldb) sos lm
(lldb) sos registers
# and so on

Activity

  1. am11 commented on Apr 11, 2022

    @am11
    MemberAuthor

    One nice feature of top-level commands in lldb is TAB-completion. For sub-commands, it can be implemented using m_interpreter.HandleCompletion API (which appears to be also available in our minimum supported lldb version: https://github.com/llvm/llvm-project/blob/release/3.4.x/lldb/include/lldb/API/SBCommandInterpreter.h#L101).

  2. self-assigned this
    on Apr 11, 2022
  3. added
    enhancement
    on Apr 11, 2022
  4. added this to the .NET 7.0 milestone on Apr 11, 2022
  5. modified the milestones: 7.0.0, 8.0.0 on Sep 12, 2022
  6. added a commit that references this issue on Sep 21, 2022
  7. modified the milestones: 8.0.0, Future on Feb 28, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

enhancement

Type

No type

Projects

No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions