[Lldb-commits] [lldb] [lldb-dap] Implement command directives (PR #74808)
Greg Clayton via lldb-commits
lldb-commits at lists.llvm.org
Fri Dec 8 20:42:55 PST 2023
================
@@ -33,9 +39,14 @@ namespace lldb_dap {
/// \param[in] strm
/// The stream that will receive the prefix, prompt + command and
/// all command output.
+///
+/// \param[in] parse_command_directives
+/// If \b false, then command prefixes like \b ! or \b ? are not parsed and
+/// each command is executed verbatim.
void RunLLDBCommands(llvm::StringRef prefix,
const llvm::ArrayRef<std::string> &commands,
- llvm::raw_ostream &strm);
+ llvm::raw_ostream &strm,
+ bool parse_command_directives = true);
----------------
clayborg wrote:
add a bool &fatal_error that is an out parameter to indicate we got an error on a ! command, clients will then use this to figure out what to do instead of aborting.
https://github.com/llvm/llvm-project/pull/74808
More information about the lldb-commits
mailing list