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.
7 lines
165 B
Python
7 lines
165 B
Python
import lldb
|
|
|
|
def echo_command(debugger, args, result, dict):
|
|
result.Print(args+'\n')
|
|
result.SetStatus(lldb.eReturnStatusSuccessFinishResult)
|
|
return True
|