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

Faster gdb memory access #380

Merged
merged 2 commits into from
May 13, 2023
Merged

Faster gdb memory access #380

merged 2 commits into from
May 13, 2023

Commits on May 11, 2023

  1. kernel: riscv: use SUM bit for debug visibility

    Instead of remapping the page to allow the kernel to access a process'
    memory, simply set the SUM bit. This makes it no longer an error for the
    kernel to access userspace.
    
    Keep setting the `W` bit when we poke, to allow for updating program
    memory with breakpoints.
    
    Signed-off-by: Sean Cross <sean@xobs.io>
    xobs committed May 11, 2023
    Configuration menu
    Copy the full SHA
    55d27cb View commit details
    Browse the repository at this point in the history
  2. kernel: gdb: batch 2- and 4-byte accesses

    Instead of always doing bytewise accesses, support 2- and 4-byte access.
    Additionally, recognize when multiple 4-byte reads are required.
    
    Note that an additional optimization may be made here in the future to
    prevent having to check every address, but this is left for a future
    optimization.
    
    Signed-off-by: Sean Cross <sean@xobs.io>
    xobs committed May 11, 2023
    Configuration menu
    Copy the full SHA
    b0ecc26 View commit details
    Browse the repository at this point in the history