Crates.io | gdb |
lib.rs | gdb |
version | 0.1.0 |
source | src |
created_at | 2016-12-28 20:36:51.950524 |
updated_at | 2016-12-28 20:36:51.950524 |
description | Library for controlling GDB |
homepage | |
repository | https://github.com/lipk/rust-gdb |
max_upload_size | |
id | 7824 |
size | 47,996 |
rust-gdb is a WIP library for controlling GDB from Rust programs. At the moment, it can launch a GDB process, pass commands, and parse gdb's responses. rust-gdb uses GDB's Machine Interface.
Missing features:
use gdb;
let debugger = gdb::Debugger::start();
The library will look for the gdb binary in your path.
use gdb;
let mut debugger = gdb::Debugger::start();
let response = debugger.send_cmd_raw("your-command-here");
send_cmd_raw currently blocks until it gets a result record from GDB, so don't use async commands :)
Currently only result records are returned by send_cmd_raw. GDB/MI output structure is described here, rust-gdb practically transforms this into a syntax tree, as described in msg.rs.