Fix some warnings
This commit is contained in:
@@ -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);
|
||||
}
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user