[Lldb-commits] [lldb] [lldb-dap] Use protocol types for exceptioninfo (PR #165858)
John Harrison via lldb-commits
lldb-commits at lists.llvm.org
Fri Oct 31 08:29:07 PDT 2025
================
@@ -1039,6 +1039,28 @@ struct ModuleSymbolsResponseBody {
};
llvm::json::Value toJSON(const ModuleSymbolsResponseBody &);
+struct ExceptionInfoArguments {
+ /// Thread for which exception information should be retrieved.
+ lldb::tid_t threadId = LLDB_INVALID_THREAD_ID;
+};
+bool fromJSON(const llvm::json::Value &, ExceptionInfoArguments &,
+ llvm::json::Path);
+
+struct ExceptionInfoResponseBody {
+ /// ID of the exception that was thrown.
+ std::string exceptionId;
+
+ /// Descriptive text for the exception.
+ std::string description;
+
+ /// Mode that caused the exception notification to be raised.
+ ExceptionBreakMode breakMode;
----------------
ashgti wrote:
This should have an initial value, otherwise if you use do `ExceptionInfoResponseBody body;` it will be arbitrary.
https://github.com/llvm/llvm-project/pull/165858
More information about the lldb-commits
mailing list