()
| 39 | } |
| 40 | |
| 41 | fn main() { |
| 42 | println!("Starting session..."); |
| 43 | // This loads all the core architecture, platform, etc plugins |
| 44 | let headless_session = |
| 45 | binaryninja::headless::Session::new().expect("Failed to initialize session"); |
| 46 | |
| 47 | println!("Loading binary..."); |
| 48 | let bv = headless_session |
| 49 | .load("/bin/cat") |
| 50 | .expect("Couldn't open `/bin/cat`"); |
| 51 | |
| 52 | // TODO: Register BNInteractionHandlerCallbacks with showGraphReport pointing at our function |
| 53 | // TODO: Idea: register showGraphReport that dumps a dotgraph to stdin |
| 54 | |
| 55 | test_graph(&bv); |
| 56 | } |
nothing calls this directly
no test coverage detected