[Based on #106] debug: validate embedded GDB Remote artifacts - #126
Open
cpunion wants to merge 1 commit into
Open
[Based on #106] debug: validate embedded GDB Remote artifacts#126cpunion wants to merge 1 commit into
cpunion wants to merge 1 commit into
Conversation
|
Caution The consumer version of Gemini Code Assist on GitHub has been sunset. All code review activity has officially ceased. |
LLGo baseline benchmarks
Program measurements
Core language and compiler benchmarks
Compared only with the latest matching platform in the main series. Warning
|
cpunion
force-pushed
the
codex/lldb-goroutine-stacks-20260801
branch
from
August 2, 2026 07:05
df1a018 to
a9092db
Compare
cpunion
force-pushed
the
codex/embedded-debug-remote-2164-20260802
branch
from
August 2, 2026 07:05
a5d8109 to
39dffea
Compare
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.
Part of xgo-dev#2164 Task 4.
Embedded target configuration already records preferred GDB commands, but that information was not exposed to debugger launchers, and the final Cortex-M artifact had no end-to-end source-debugging acceptance test.
This PR:
crosscompile.Export;gdb-remoteagainst QEMU, including source breakpoints, locals, composite values, globals, and backtraces;LLVM 19 LLD can leave tombstone DIEs after section GC, so verification uses a temporary garbage-collected copy while both debuggers consume the original ELF. This avoids changing the artifact or dropping live global-variable DIEs.
Local verification:
go test -timeout 20m ./internal/build -count=1go test -coverprofile=... ./internal/crosscompile— 78.6%go test -coverprofile=... ./internal/crosscompile— 77.3%shellcheckandgit diff --check