Skip to content

Commit

Permalink
build(deps): upgrade to gdbstub 0.7
Browse files Browse the repository at this point in the history
Signed-off-by: Martin Kröning <martin.kroening@eonerc.rwth-aachen.de>
  • Loading branch information
mkroening committed Nov 27, 2023
1 parent 55296af commit 973e509
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 9 deletions.
10 changes: 5 additions & 5 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -45,8 +45,8 @@ clap = { version = "4.4", features = ["derive", "env"] }
core_affinity = "0.8"
either = "1.9"
env_logger = "0.10"
gdbstub = "0.6"
gdbstub_arch = "0.2"
gdbstub = "0.7"
gdbstub_arch = "0.3"
hermit-entry = { version = "0.9", features = ["loader"] }
lazy_static = "1.4"
libc = "0.2"
Expand Down
4 changes: 2 additions & 2 deletions src/linux/gdb/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -118,10 +118,10 @@ impl SingleThreadBase for GdbUhyve {
.map_err(|error| TargetError::Errno(error.errno().try_into().unwrap()))
}

fn read_addrs(&mut self, start_addr: u64, data: &mut [u8]) -> TargetResult<(), Self> {
fn read_addrs(&mut self, start_addr: u64, data: &mut [u8]) -> TargetResult<usize, Self> {
let src = unsafe { self.vcpu.memory(start_addr, data.len()) };
data.copy_from_slice(src);
Ok(())
Ok(data.len())
}

fn write_addrs(&mut self, start_addr: u64, data: &[u8]) -> TargetResult<(), Self> {
Expand Down

0 comments on commit 973e509

Please sign in to comment.