Repository navigation
Fix GDB 16+ launch ordering; test GDB 15 and 17 in CI - #37
Merged
Merged
Conversation
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>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Problem
On GDB 16+ (verified on 17.2), 9 GDB integration tests fail with
launch or attach not specified. GDB defers launch untilconfigurationDoneand rejects it unless a launch is already pending.CI didn't catch this because
ubuntu-latestis 24.04 (GDB 15), whereconfigurationDoneis a no-op and configuration-first works.Fix
gdbBackend.Spawndetects the GDB major version viagdb --version.LaunchAfterConfiguration()is true only for GDB 14/15. GDB 16+ (and unknown versions) launch first, then set breakpoints, then sendconfigurationDone.gdb-integrationCI job is now a matrix: ubuntu-24.04 (GDB 15) and ubuntu-26.04 (GDB 17).Testing
-race.🤖 Generated with Claude Code