Skip to content

Fix GDB 16+ launch ordering; test GDB 15 and 17 in CI - #37

Merged
derekparker merged 1 commit into
masterfrom
claude/test-suite-area51-1e957f
Sep 23, 2026
Merged

derekparker merged 1 commit into
masterfrom
claude/test-suite-area51-1e957f

Conversation

@derekparker

@derekparker derekparker commented Sep 23, 2026 •

Copy link
Copy Markdown
Member

Problem

On GDB 16+ (verified on 17.2), 9 GDB integration tests fail with launch or attach not specified. GDB defers launch until configurationDone and rejects it unless a launch is already pending.

CI didn't catch this because ubuntu-latest is 24.04 (GDB 15), where configurationDone is a no-op and configuration-first works.

Fix

  • gdbBackend.Spawn detects the GDB major version via gdb --version.
  • LaunchAfterConfiguration() is true only for GDB 14/15. GDB 16+ (and unknown versions) launch first, then set breakpoints, then send configurationDone.
  • The gdb-integration CI job is now a matrix: ubuntu-24.04 (GDB 15) and ubuntu-26.04 (GDB 17).

Testing

  • Full suite passes on area51 (GDB 17.2), with and without -race.
  • The GDB 15 path is unchanged but was not run locally; the new CI matrix covers it.
  • The 26.04 leg has not yet run on GitHub.

🤖 Generated with Claude Code

GDB 16+ defers launch until configurationDone and rejects it with
"launch or attach not specified" unless a launch is pending. GDB 15
runs launch immediately, so it keeps configuration-first. Detect the
major version via gdb --version and pick the order accordingly.

CI's gdb-integration job now runs on ubuntu-24.04 (GDB 15) and
ubuntu-26.04 (GDB 17).

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
@derekparker
derekparker merged commit 5e4d952 into master Sep 23, 2026
4 checks passed
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.

1 participant