CLI argument to start the server at startup

This commit is contained in:
2025-01-01 13:13:01 -05:00
parent b94ae4d586
commit 2c5084d317
3 changed files with 24 additions and 5 deletions
+6
View File
@@ -21,6 +21,12 @@ impl GdbServerWindow {
server: GdbServer::new(sim_id, client),
}
}
pub fn start(&mut self, port: u16) {
self.server.stop();
self.port_str = port.to_string();
self.server.start(port);
}
}
impl AppWindow for GdbServerWindow {