Skip to content

GDB crashes on "dump" and "print" command #7

@maxgerhardt

Description

@maxgerhardt

Per https://community.platformio.org/t/remote-connection-closed/24208.

A user with the platformio.ini

 [env:swervolf_nexys]
platform = chipsalliance
board = swervolf_nexys
framework = wd-riscv-sdk

monitor_speed = 115200

#debug_tool = whisper

board_build.bitstream_file = /Users/lee_king/Downloads/RVfpga/src/rvfpga.bit

attempts to start debugging (this works) and use the GDB dump command to dump the binary contents of a variable (GreyImage) to a file.

When using the examine (x) command to display the contents, it works fine

>x/10x GreyImage
0x4a7f8 : 0xbcc09bb6 0xb3a4bfb5 0xacaeb8bf 0xb7b6b3ae
0x4a808 <GreyImage+16>: 0xc2c1b1b8 0xb6b1c1c3 0xcabbbfbe 0xbccabeae
0x4a818 <GreyImage+32>: 0xc2c0b6b4 0xa3bec6bf

however, with either dump value GreyImage.dat GreyImage and also print GreyImage the result is

Info : dropped ‘gdb’ connection
Remote connection closed
Remote connection closed (from interpreter-exec console “print GreyImage”)

an immediate kill of the GDB session.

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