Skip to content

GDBserver response when breakpoint reached #33

@ccrause

Description

@ccrause

I'm testing dwire-debug with the Lazarus IDE using gdb for debugging. When hitting a breakpoint the IDE would pop up an error notification that a External: 0 was received. According to https://sourceware.org/gdb/onlinedocs/gdb/Stop-Reply-Packets.html#Stop-Reply-Packets gdb expects a SIGTRAP (= 5) response when the target reached a breakpoint.

I've modified the responses for '?', 'c', 's' commands to "S05" in handle_command (rsp.c) and the Lazarus IDE now behaves as expected during debugging. Since this is the expected response I suggest the source gets updated accordingly.

Great work by the way.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions