lldb 0.0.7

Rust-like bindings to the public LLDB API. LLDB is the debugger from the LLVM project and is the system debugger on Mac OS X.
extern crate lldb;

use lldb::*;

fn main() {
    SBDebugger::initialize();

    let debugger = SBDebugger::create(false);
    debugger.set_async(false);
    println!("{:?}", debugger);

    if let Some(target) = debugger.create_target_simple("/usr/local/bin/servo") {
        println!("{:?}", target);

        let launchinfo = SBLaunchInfo::new();
        launchinfo.set_launch_flags(LAUNCH_FLAG_STOP_AT_ENTRY);
        match target.launch(launchinfo) {
            Ok(process) => {
                println!("{:?}", process);
                let _ = process.continue_execution();
                println!("{:?}", process);
            }
            Err(e) => println!("Uhoh: {:?}", e),
        }
    }
    SBDebugger::terminate();
}