Add settings to control command echoing:
(lldb) settings set interpreter.echo-commands true (lldb) settings set interpreter.echo-comment-commands true
Both settings default to true, which keeps LLDB's existing behavior in non-interactive mode (echo all command inputs to the output).
So far the only way to change this behavior was the --source-quietly flag, which disables all output including evaluation results.
Now echo-commands allows to turn off echoing for commands, while evaluation results are still printed. No effect if --source-quietly was present.
echo-comment-commands allows to turn off echoing for commands in case they are pure comment lines. No effect if echo-commands is false.
Note that the behavior does not change immediately! The new settings take effect only with the next command source.
LLDB lit test are the main motivation for this feature. So far incoming #CHECK line have always been echoed to the output and so they could never fail. Now we can disable it in lit-lldb-init.
Todos: Finish test for this feature. Add to lit-lldb-init. Check for failing lit tests.
Unrelated fix