[Lldb-commits] [lldb] [lldb-dap] support moduleId in the stackTrace response (PR #149774)
Ebuka Ezike via lldb-commits
lldb-commits at lists.llvm.org
Mon Jul 21 03:17:31 PDT 2025
================
@@ -550,6 +550,15 @@ llvm::json::Value CreateStackFrame(DAP &dap, lldb::SBFrame &frame,
if (frame.IsArtificial() || frame.IsHidden())
object.try_emplace("presentationHint", "subtle");
+ lldb::SBModule module = frame.GetModule();
+ if (module.IsValid()) {
+ std::string uuid = module.GetUUIDString();
+ if (!uuid.empty())
+ object.try_emplace("moduleId", uuid);
+ else
+ object.try_emplace("moduleId", module.GetFileSpec().GetFilename());
----------------
da-viper wrote:
Do not set the file name if there is no UUID since it is optional.
https://github.com/llvm/llvm-project/pull/149774
More information about the lldb-commits
mailing list