Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

SingleRegisterAccess: Support unavailable regs #107

Merged
merged 1 commit into from Jul 28, 2022

Commits on Jul 28, 2022

  1. 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>
    ptosi committed Jul 28, 2022
    Copy the full SHA
    77fb1c5 View commit details
    Browse the repository at this point in the history