eclipse-cdt-cloud / eclipse-cdt-cloud/cdt-gdb-adapter

Using "commands" for breakpoints locks up debugger

Open
#421 1 comment 0 reactions 0 assignees View on GitHub
bug
Dominant language
TypeScript
Stars
39
Forks
56
Avg merge
3d 9h
Merged PRs (30d)
2

Description

### Description

GDB allows to define commands executed on breakpoint hit. See https://sourceware.org/gdb/current/onlinedocs/gdb.html/Break-Commands.html
Currently, if I use this feature from the debug console, the debugger locks up.

### Steps to Reproduce

1. Connect a random target and app.
2. Set a breakpoint with the `break` command.
3. Issue something like (`>` is part of the command, not the prompt)
```
> break main
> commands
> print main
> end
```

You can only disconnect. As part of the disconnect you can see 3x `cancelled` in red letters. Which indicates that queued MI commands in flight have been cancelled.

### Expected Behavior

`commands` logic works as if issued from a CLI-only session with GDB.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.