cdt-gdb-vscode icon indicating copy to clipboard operation
cdt-gdb-vscode copied to clipboard

Debug Session is not closed after the gdbserver is closed

Open DongNguyenHuy opened this issue 8 months ago • 0 comments

Hi, I think that the Debug Session should be closed after the gdbserver or gdb exits. I've also killed the gdb, but the Debug Session will still be there Image

I tested with RISC-V QEMU as the gdb server. This is the debug configuration:

{
            "name": "CDT GDB Debug",
            "type": "gdbtarget",
            "request": "launch",
            "gdb": "riscv64-unknown-elf-gdb",
            "program": "${workspaceFolder}/riscv-probe/build/bin/rv64imac/qemu-sifive_e/alloca",
            "logFile": "${workspaceFolder}/.vscode/gdb.log",
            "target": {
                "type": "remote",
                "host": "localhost",
                "port": "50000",
                "server": "qemu-system-riscv64",
                "serverParameters": [
                    "-nographic",
                    "-machine", "sifive_e",
                    "-bios", "none",
                    "-kernel", "${workspaceFolder}/riscv-probe/build/bin/rv64imac/qemu-sifive_e/alloca",
                    "-gdb", "tcp::50000",
                    "-S",
                    "-serial", "tcp:localhost:5555,server,nowait"
                ],
                "automaticallyKillServer": true,
                "serverStartupDelay": 500,
                "uart":{
                    "socketPort": "5555"
                }
            },
            "initCommands": [
                "b main"
            ],
        },

DongNguyenHuy avatar Mar 11 '25 03:03 DongNguyenHuy