summaryrefslogtreecommitdiff
path: root/src/gdb.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/gdb.rs
parent9f8e9ec380ad679fe714222345a46ebf77d063d6 (diff)
Fix some warnings
Diffstat (limited to 'src/gdb.rs')
-rw-r--r--src/gdb.rs4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/gdb.rs b/src/gdb.rs
index 17e2f71..ae2ef9b 100644
--- a/src/gdb.rs
+++ b/src/gdb.rs
@@ -24,6 +24,8 @@ pub(crate) enum DebugCommand {
ExitDebugMode,
}
+pub struct DebugStream(pub(crate) mpsc::Receiver<DebugCommand>);
+
#[derive(Clone, Copy, Debug)]
pub(crate) enum StopReason {
Exception(ExceptionType),
@@ -74,7 +76,7 @@ pub fn run_stub(cmd_sender: mpsc::Sender<CoreCmd>) {
.expect("Couldnt set TCP stream to nonblocking");
cmd_sender
- .send(CoreCmd::EnterDbgMode(dbg_rx))
+ .send(CoreCmd::EnterDbgMode(DebugStream(dbg_rx)))
.expect("couldnt ask core to enter debug mode");
handle_gdb_connection(stream, dbg_tx).expect("failure during connection");