Add memory tracing and scanning debugger commands#735
Open
lusca0x01 wants to merge 8 commits intoLIJI32:masterfrom
Open
Add memory tracing and scanning debugger commands#735lusca0x01 wants to merge 8 commits intoLIJI32:masterfrom
lusca0x01 wants to merge 8 commits intoLIJI32:masterfrom
Conversation
Removed unused variable 'last_value' from debugger.c
Contributor
|
This kind of functionality looks very interesting, but I'm not sure what the intended syntax for the new commands' arguments is? Like, what kind of range syntaxes are supported, etc. |
Author
|
I've updated the command help strings to clarify the syntax! |
4873d7c to
858f003
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.
This PR adds new debugger commands for memory analysis, useful for ROM debugging and reverse engineering.
New Commands
Memory Tracing:
read <address>- Read and display a single memory addresstrace_read- Toggle logging of all memory readstrace_write- Toggle logging of all memory writestrace_clear- Clear the trace bufferstrace_dump <filename>- Dump traced memory to a fileMemory Scanning (CheatEngine-like):
scan all- Initialize scan with all addressesscan exact <value>- Filter addresses matching exact valuescan changed- Filter addresses whose value changed since last scanscan unchanged- Filter addresses whose value remained the samescan_dump <filename>- Export scan results to filescan_clear- Reset scan stateUse Cases
Implementation
GB_gameboy_t(guarded byGB_DISABLE_DEBUGGER)GB_read_memoryandGB_write_memoryInspired by LiveOverflow's Game Boy hacking videos.