Skip to content

Debug Session is not closed after the gdbserver is closed #145

Open
@DongNguyenHuy

Description

@DongNguyenHuy

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"
            ],
        },

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions