Crates.io | dragondance |
lib.rs | dragondance |
version | 0.1.0 |
source | src |
created_at | 2022-02-23 04:52:18.58602 |
updated_at | 2022-02-23 04:52:18.58602 |
description | Code coverage file format for the dragondance ghidra plugin |
homepage | |
repository | https://github.com/evanrichter/dragondance-rs/ |
max_upload_size | |
id | 537636 |
size | 7,361 |
Record code coverage traces in rust to the dragondance format.
use dragondance::{Module, Trace};
// Create a Trace with module info
let modules = [Module::new("abcd", 0x1000, 0x2000),
Module::new("libc.so", 0x555000, 0x556000)];
let mut trace = Trace::new(&modules);
// Add coverage events from your emulator, debugger, etc.
trace.add(0x1204, 3);
trace.add(0x1207, 12);
// Write the coverage to a dragondance coverage file
trace.save("trace.dd").unwrap();