Remove consts.rs and just use plain types
This commit is contained in:
11
src/gdb.rs
11
src/gdb.rs
@@ -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>) {
|
||||
|
||||
Reference in New Issue
Block a user