llvm / llvm/llvm-project

lldb-dap: missing module.name field in the event module removed event

Open
#181,137 1 comment 0 reactions 0 assignees View on GitHub
lldb-dap
Dominant language
LLVM
Stars
40.5k
Forks
18.7k
PR merge metrics
PR metrics pending

Description

To reproduce, debug the program

```
#include

int main() {
std::cout << "Hello, World!" << std::endl;
return 0; //break
}
```

and check the lldb-dap debug log.

The log contains the event with the module which doesn't have the name field which is mandatory according to the DAP specification:

```
{
"body": {
"module": {
"id": "CFCDC5A8-732A-362B-B304-A4A690BD9DB3"
},
"reason": "removed"
},
"event": "module",
"seq": 0,
"type": "event"
}
```

[lldb-dap.log](https://github.com/user-attachments/files/25263135/lldb-dap.log)

Contributor guide

Open the contributing guide

Research direction

Reproduce the issue with the provided C++ program and inspect the lldb-dap debug log, focusing on the module event whose reason is "removed". Trace where that event is produced and verify that its module object includes the mandatory name field according to the DAP specification.

Written by the indexing model from the issue text.

Assessment

Tech stack
cpp
Domain
devtools
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.