summaryrefslogtreecommitdiff
path: root/lldb/source/Plugins/ScriptInterpreter/Python/ScriptedProcessPythonInterface.h
diff options
context:
space:
mode:
authorDave Lee <davelee.com@gmail.com>2023-05-07 16:51:59 -0700
committerDave Lee <davelee.com@gmail.com>2023-05-08 09:45:26 -0700
commit765237779ce4dbb60f4faf9ebc91386ce5218e15 (patch)
tree379894815b7775eb3ebebc4f8da79a7bf2c44e67 /lldb/source/Plugins/ScriptInterpreter/Python/ScriptedProcessPythonInterface.h
parenta7579b25df78a9f53d62300020d4ae3c47666634 (diff)
[lldb] Prevent mutation of CommandAlias::GetOptionArguments
Fix a mutation of `CommandAlias::m_option_args_sp`, which resulted in cases where aliases would fail to run on second, and subsequent times. For example, an alias such as: ``` command alias p1 p 1 ``` When run the second time, the following error would be reported to the user: ``` error: expression failed to parse: error: <user expression 1>:1:1: expression is not assignable -- 1 ^ ~ ``` To fix this, `CommandAlias::Desugar` now constructs options to a freshly constructed vector, rather than by appending to the results of `GetOptionArguments`. rdar://107770836 Differential Revision: https://reviews.llvm.org/D150078
Diffstat (limited to 'lldb/source/Plugins/ScriptInterpreter/Python/ScriptedProcessPythonInterface.h')
0 files changed, 0 insertions, 0 deletions