Skip to content

Keep the debug session alive when one inferior exits - #1627

Open
Radu Hociung (drok) wants to merge 1 commit into
microsoft:mainfrom
drok:fix/multi-inferior-exit
Open

Radu Hociung (drok) wants to merge 1 commit into
microsoft:mainfrom
drok:fix/multi-inferior-exit

Conversation

@drok

Copy link
Copy Markdown

Fixes microsoft/vscode-cpptools#13893.

GDB emits *stopped,reason="exited-normally" when any inferior exits. Keep the debug session alive when other inferiors remain, select a surviving thread, and report a break instead of terminating the session.

Adds regression tests for single-inferior exit, non-final inferior exit, and final inferior exit.

This was generated entirely by copilot in a github codespace.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

When debugging multiple inferiors with gdb, if one inferior exits the full debug session stops

1 participant