diff options
| author | taitep <taitep@taitep.se> | 2025-12-28 12:01:39 +0100 |
|---|---|---|
| committer | taitep <taitep@taitep.se> | 2025-12-28 12:01:39 +0100 |
| commit | 9a9bef7dd7dce7d5c10b7cf49a42478ad85829ac (patch) | |
| tree | ea832693678899e97aecf12bd620f0123b6ce3d2 /src/gdb.rs | |
| parent | 8024af6b1348b5f47fabe5a1949de54607a33888 (diff) | |
Remove consts.rs and just use plain types
Diffstat (limited to 'src/gdb.rs')
| -rw-r--r-- | src/gdb.rs | 11 |
1 files changed, 5 insertions, 6 deletions
@@ -11,7 +11,6 @@ use std::{ }; use crate::{ - consts::{Addr, RegValue}, core::commands::CoreCmd, exceptions::{ExceptionType, MemoryExceptionType}, }; @@ -19,14 +18,14 @@ use crate::{ pub(crate) enum DebugCommand { GetRegs(oneshot::Sender<RegsResponse>), ReadMem { - addr: Addr, + addr: u64, len: u64, responder: oneshot::Sender<Result<Vec<u8>, MemoryExceptionType>>, }, Step(oneshot::Sender<StopReason>), Continue(oneshot::Sender<StopReason>, oneshot::Receiver<()>), - SetBreakpoint(Addr), - RemoveBreakpoint(Addr), + SetBreakpoint(u64), + RemoveBreakpoint(u64), ExitDebugMode, } @@ -65,8 +64,8 @@ impl StopReason { } pub(crate) struct RegsResponse { - pub x_regs: [RegValue; 32], - pub pc: Addr, + pub x_regs: [u64; 32], + pub pc: u64, } pub fn run_stub(cmd_sender: mpsc::Sender<CoreCmd>) { |
