build(make): emit cc65 debug info (-g + --dbgfile) for PRG - #44
Merged
Conversation
Adds --dbgfile build/c64-https.dbg to the main ld65 link and ensures -g is set on ca65 invocations. PRG bytes are bit-identical with -g enabled; the .dbg sidecar is purely additive. VICE monitor and diagnostic tools can consume the .dbg directly for PC -> symbol/source mapping, eliminating the need to grep labels.txt for symbol resolution. Per-overlay .dbg files will ride along with the P-384 overlay work in a separate PR. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
6 tasks
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 freeto 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.
Summary
--dbgfile build/c64-https.dbgto the main ld65 link.-gis set on ca65 invocations across the integration shell scripts that exist on master.Overlay-specific
--dbgfileadditions (forbuild/lib/overlay-p384-{sha384,curve}.dbg) will land alongside the P-384 overlay infrastructure in a separate PR.Test plan
make BACKEND=ucisucceeds with no warningsbuild/c64-https.dbgis emitted and parses as cc65 dbg formatmakeis a no-op)🤖 Generated with Claude Code