[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:54 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,
----------------
clayborg wrote:

return a `std::string` that will be the first error for any `!` prefixed lines that fail, and return empty string if no commands started with `!` or some did but none failed? Then the callers of this function can decide what to do with it.

https://github.com/llvm/llvm-project/pull/74808


More information about the lldb-commits mailing list