summaryrefslogtreecommitdiff
path: root/src/core.rs
diff options
context:
space:
mode:
authortaitep <taitep@taitep.se>2025-12-27 11:55:19 +0100
committertaitep <taitep@taitep.se>2025-12-27 11:55:19 +0100
commit67406a9c48477d0fce8a5df2c4e8d902a698e8e8 (patch)
tree090777e06ad536a4f5e9e2333b79ae584ec4f472 /src/core.rs
parent9f8e9ec380ad679fe714222345a46ebf77d063d6 (diff)
Fix some warnings
Diffstat (limited to 'src/core.rs')
-rw-r--r--src/core.rs6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/core.rs b/src/core.rs
index dde8fd7..bb37520 100644
--- a/src/core.rs
+++ b/src/core.rs
@@ -11,7 +11,7 @@ use crate::{
core::commands::CoreCmd,
decode::Instruction,
exceptions::ExceptionType,
- gdb::{self, DebugCommand, StopReason},
+ gdb::{self, DebugCommand, DebugStream, StopReason},
instructions::find_and_exec,
mem::MemConfig,
};
@@ -39,7 +39,7 @@ impl Core {
loop {
if let Ok(cmd) = self.command_stream.try_recv() {
match cmd {
- CoreCmd::EnterDbgMode(dbg_stream) => {
+ CoreCmd::EnterDbgMode(DebugStream(dbg_stream)) => {
let _ = self.debug_loop(dbg_stream);
}
};
@@ -57,7 +57,7 @@ impl Core {
if let Ok(cmd) = self.command_stream.recv() {
eprintln!("Recieved a command");
match cmd {
- CoreCmd::EnterDbgMode(dbg_stream) => {
+ CoreCmd::EnterDbgMode(DebugStream(dbg_stream)) => {
let _ = self.debug_loop(dbg_stream);
}
};