Skip to content

risc-v embedded gdb fails #16

@mrx23dot

Description

@mrx23dot

When I manually start it it works great
riscv-none-elf-gdb.exe build\obj\proj.elf -ex "target extended-remote 127.0.0.1:3333"

but from VScode it prints this in Debug console, and exits, I can't even scroll in Debug console.

GNU gdb (xPack GNU RISC-V Embedded GCC x86_64) 12.1
Copyright (C) 2022 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.
Type "show copying" and "show warranty" for details.
This GDB was configured as "--host=x86_64-w64-mingw32 --target=riscv-none-elf".
Type "show configuration" for configuration details.
For bug reporting instructions, please see:
<https://www.gnu.org/software/gdb/bugs/>.
Find the GDB manual and other documentation resources online at:
    <http://www.gnu.org/software/gdb/documentation/>.

For help, type "help".
Type "apropos word" to search for commands related to "word".

so looks like it founds it, I think I got the same config, so no idea.
I added a break point to main() too.

my config:

{
  "version": "0.2.0",
  "configurations": [
    {
      "type": "by-gdb",
      "request": "launch",
      "name": "Launch(remote)",
      "debuggerPath": "riscv-none-elf-gdb.exe",
      "program": "..\\build\\obj\\proj.elf",
      "cwd": "${workspaceRoot}",
      "remote": {
        "enabled": true,
        "address": "127.0.0.1:3333",
        "mode": "extended-remote",
      }
    },
  ]
}

No issue when using PC type of gdb.

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