llvm-project/lldb/include/lldb
Stefan Granitz c678ed774d Add EchoCommentCommands to CommandInterpreterRunOptions in addition to the existing EchoCommands and expose both as interpreter settings.
Summary:
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.

Reviewers: aprantl, jasonmolenda, JDevlieghere

Subscribers: friss, lldb-commits

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

llvm-svn: 343859
2018-10-05 16:49:47 +00:00
..
API Add EchoCommentCommands to CommandInterpreterRunOptions in addition to the existing EchoCommands and expose both as interpreter settings. 2018-10-05 16:49:47 +00:00
Breakpoint svn add the new files... 2018-09-13 21:59:16 +00:00
Core [lldb] Remove an assertion in RichManglingContext::GetBufferRef() hit when debugging a native x86 Windows process 2018-09-28 02:33:51 +00:00
DataFormatters Removed commented out includes [NFC] 2018-08-29 19:55:33 +00:00
Expression DWARFExpression: Resolve file addresses in the linked module 2018-10-02 17:50:42 +00:00
Host Pull FixupBreakpointPCAsNeeded into base class 2018-10-03 12:29:33 +00:00
Initialization *** This commit represents a complete reformatting of the LLDB source code 2016-09-06 20:57:50 +00:00
Interpreter Add EchoCommentCommands to CommandInterpreterRunOptions in addition to the existing EchoCommands and expose both as interpreter settings. 2018-10-05 16:49:47 +00:00
Symbol [PDB] Restore the calling convention from PDB 2018-09-26 09:03:34 +00:00
Target Clean-up usage of OptionDefinition arrays 2018-09-28 17:58:16 +00:00
Utility Fix typos. 2018-10-04 22:33:39 +00:00
lldb-defines.h Add a "scripted" breakpoint type to lldb. 2018-09-13 21:35:32 +00:00
lldb-enumerations.h Add a "scripted" breakpoint type to lldb. 2018-09-13 21:35:32 +00:00
lldb-forward.h Use rich mangling information in Symtab::InitNameIndexes() 2018-08-08 21:57:37 +00:00
lldb-private-defines.h Enable AUTOBRIEF in doxygen configuration. 2018-05-02 16:55:16 +00:00
lldb-private-enumerations.h Move AddressClass to private enums since API doesn't provide any functions to manage it. 2018-06-27 06:50:10 +00:00
lldb-private-forward.h Reflow paragraphs in comments. 2018-04-30 16:49:04 +00:00
lldb-private-interfaces.h Change the ABI class to have a weak pointer to its Process; 2017-06-29 02:57:03 +00:00
lldb-private-types.h Replace "nullptr-terminated" C-arrays of OptionValueEnumeration with safer llvm::ArrayRef 2018-09-26 18:50:19 +00:00
lldb-private.h *** This commit represents a complete reformatting of the LLDB source code 2016-09-06 20:57:50 +00:00
lldb-public.h *** This commit represents a complete reformatting of the LLDB source code 2016-09-06 20:57:50 +00:00
lldb-types.h Reflow paragraphs in comments. 2018-04-30 16:49:04 +00:00
lldb-versioning.h Reflow paragraphs in comments. 2018-04-30 16:49:04 +00:00
module.modulemap Move SafeMachO from Utility to Host 2018-09-12 12:26:05 +00:00