Add support for moar commands

This commit is contained in:
2024-12-31 00:08:45 -05:00
parent 014b9ebbfa
commit b94ae4d586
3 changed files with 15 additions and 0 deletions
+13
View File
@@ -162,6 +162,19 @@ impl GdbConnection {
if body == "QStartNoAckMode" {
self.ack_messages = false;
res.send_ok().await?;
} else if body.starts_with("qSupported:") {
res.write_str("multiprocess+;swbreak+;vContSupported+")
.await?;
res.send().await?;
} else if body == "QThreadSuffixSupported" || body == "QListThreadsInStopReply" {
res.send_ok().await?;
} else if body == "qHostInfo" || body == "qProcessInfo" {
res.write_str(&format!(
"triple:{};endian:little;ptrsize:4;",
hex::encode("v810-unknown-vb")
))
.await?;
res.send().await?;
} else if body == "k" {
return Ok(());
} else {