Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
SingleRegisterAccess: Support unavailable regs
Enable an implementation of SingleRegisterAccess to signal to gdbstub that a read register is recognized (as per RegId::from_raw_id()) but is unavailable by reporting a 0-byte read. In that case, make gdbstub report to the GDB client the state of the unavailable register by following the registers packet protocol: > [...] the stub may also return a string of literal `x`s in place of > the register data digits, to indicate that the corresponding register > has not been collected, thus its value is unavailable. Signed-off-by: Pierre-Clément Tosi <ptosi@google.com>
- Loading branch information
Showing
4 changed files
with
32 additions
and
6 deletions.
There are no files selected for viewing
This file contains 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
This file contains 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
This file contains 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
This file contains 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