Repository navigation
Conversation
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.
Summary
Implements live Amiberry GDB Remote Serial Protocol (RSP) snapshot initialization (
hunks init --gdb) and snapshot-seeded static + trace analysis (hunks -m <mod> analyze --trace).Key Additions
internal/gdb: Pure-Go GDB RSP client (Dial,WaitProcessBreak,ReadRegisters, chunked 16 KiBReadMemory,ReadCustomSnapshot,MemoryMapJSON + XML fallback,Segments,Detach).internal/amiga/custom_snapshot.go:CustomSnapshot([512]byte) decoder for Amiberry's$DFF000–$DFF1FFsave_customaperture (DMACON,INTENA,INTREQ,ADKCON,COP1LC,COP2LC,BPLPT,BPLCON0..2,BPL1MOD/BPL2MOD,SPRPT,Palette12,SummaryMap).internal/project:SnapshotStateinproject.jsonstoring captured CPU registers (D0..D7,A0..A7,PC,SR),custom.bin, andcustom_info.internal/analyzer:SeedFromSnapshot: statically seedsEntry_PC, zero-page exception/IRQ vectors ($64..$BC), stack return addresses (A7pointing afterBSR/JSR),$DFF000base-register invariants, andCOP1LC/COP2LC/BPLxPT/SPRxPTlabels.RunTrace&Chipset.LoadCustomSnapshot: preloads CPU registers, chipset registers, and multi-segment RAM (chip+$C00000slowRanger RAM) soanalyze --traceresumes directly from the captured machine state.internal/tui:BitplaneState.ApplyCustomSnapshotpre-populatesBPLxPT,BPLCON0,BPL1MOD, andCOLOR00..31when opening the Bitplane Viewer (B).Testing
go build ./... && go vet ./... && go test -count=1 ./...gdb_server=true).