Skip to content

[lldb] Allow aliases to aliases of raw input commands #3832

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Conversation

kastiglione
Copy link

Allow users to create aliases for aliases to raw input commands. That probably
sounds convoluted, so here's an example:

command alias some-setup env SOMEVAR=SOMEVALUE

This an alias based on env, which itself is an alias for _regex-env.
_regex-env is a command regex command, which takes raw input.

The above some-setup alias fails with:

error: Unable to create requested alias.

This change allows such aliases to be created. lldb already supports aliases to
aliases for parsed commands.

Differential Revision: https://reviews.llvm.org/D117259

(cherry picked from commit b951504)

Allow users to create aliases for aliases to raw input commands. That probably
sounds convoluted, so here's an example:

```
command alias some-setup env SOMEVAR=SOMEVALUE
```

This an alias based on `env`, which itself is an alias for `_regex-env`.
`_regex-env` is a `command regex` command, which takes raw input.

The above `some-setup` alias fails with:

```
error: Unable to create requested alias.
```

This change allows such aliases to be created. lldb already supports aliases to
aliases for parsed commands.

Differential Revision: https://reviews.llvm.org/D117259

(cherry picked from commit b951504)
@kastiglione
Copy link
Author

@swift-ci test

@kastiglione kastiglione merged commit ca43d6d into stable/20211026 Jan 22, 2022
@kastiglione kastiglione deleted the lldb-Allow-aliases-to-aliases-of-raw-input-commands branch January 22, 2022 17:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant