llvm / llvm/llvm-project

[lldb-dap] wrong category for program output on windows (mingw)

Open
#175,951 5 comments 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 following program with lldb-dap:

```c
#include

int main(void) {
printf("ok\n");
return 0; //break
}
```

On linux lldb-dap reports the output with the category `stdout` as expected:

```json
{
"jsonrpc": "2.0",
"method": "output",
"params": {
"category": "stdout",
"output": "ok\r\n"
}
}
```

Lldb-dap from [llvm-mingw 20251216 with LLVM 21.1.8](https://github.com/mstorsjo/llvm-mingw/releases/tag/20251216) reports the output with the category `console`:

```json
{
"jsonrpc": "2.0",
"method": "output",
"params": {
"category": "console",
"output": "ok\n"
}
}
```

Contributor guide

Open the contributing guide

Research direction

Start by reproducing the issue with the C program and lldb-dap from llvm-mingw on Windows, then compare its output event with the Linux result. Trace how lldb-dap categorizes program output; done means the Windows result reports the program's output with category "stdout" rather than "console".

Written by the indexing model from the issue text.

Assessment

Tech stack
c
Domain
devtools, operating-systems
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 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.