[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 28 07:56:18 PDT 2025
================
@@ -242,3 +242,29 @@ def test_StackFrameFormat(self):
frame = self.get_stackFrames(format={"parameters": False, "module": True})[0]
self.assertEqual(frame["name"], "a.out recurse")
+
+ def test_stackFrameModuleIdUUID(self):
+ program = self.getBuildArtifact("a.out")
+ self.build_and_launch(program)
+ source = "main.c"
+
+ self.set_source_breakpoints(source, [line_number(source, "recurse end")])
+ self.continue_to_next_stop()
+
+ modules = self.dap_server.get_modules()
+ name_to_id = {
+ name: info["id"] for name, info in modules.items() if "id" in info
+ }
+
+ stackFrames = self.get_stackFrames()
+ for frame in stackFrames:
+ module_id = frame.get("moduleId")
+ source_name = frame.get("source", {}).get("name")
----------------
da-viper wrote:
source_name and module_id can be none, continue if it is none.
https://github.com/llvm/llvm-project/pull/149774
More information about the lldb-commits
mailing list