Files
clang-p2996/lldb/test/API/commands/command/regex/echo_command.py
Jim Ingham 3c45476923 Fix a thinko in the parsing of substitutions in CommandObjectRegexCommand.
The old code incorrectly calculated the start position for the search
for the third (and subsequent) instance of a particular substitution
pattern (e.g. %1).

I also added a few test cases for this parsing covering this failure.
2021-07-27 18:58:56 -07:00

7 lines
165 B
Python

import lldb
def echo_command(debugger, args, result, dict):
result.Print(args+'\n')
result.SetStatus(lldb.eReturnStatusSuccessFinishResult)
return True