Serde deserializer for the GDB Machine Interface (GDB/MI)
This crate implements a serde deserializer for GDB Machine Interface (GDB/MI) output. It allows you to easily parse GDB/MI output into Rust data structures using Serde's powerful serialization framework.
This library does not specify the message types themselves, but rather just the deserialization logic. You can define your own Rust structs that match the structure of the GDB/MI output you expect to receive, and then use this crate to deserialize the GDB/MI output into those structs.
Example
use Deserialize;
use ;
let gdb_mi_output = r#"^thread-group-added,id="i1""#;
let response: = from_str.unwrap;
println!;
/*
Response {
token: None,
body: ResponseBody::Result(
GdbMiOutput::ThreadGroupAdded {
id: "i1",
},
),
}
*/
License
Copyright © 2026 Josh Junon. Part of the Oro Operating System project. Released under the MIT license.