MCPcopy Create free account
hub / github.com/Vector35/binaryninja-api / request_debug_report

Method request_debug_report

rust/src/function.rs:2191–2210  ·  view source on GitHub ↗

Generate internal debug reports for a variety of analysis. Current list of possible values include: - mlil_translator - stack_adjust_graph - high_level_il `name` - Name of the debug report

(&self, name: &str)

Source from the content-addressed store, hash-verified

2189 ///
2190 /// * `name` - Name of the debug report
2191 pub fn request_debug_report(&self, name: &str) {
2192 const DEBUG_REPORT_ALIAS: &[(&str, &str)] = &[
2193 ("stack", "stack_adjust_graph\x00"),
2194 ("mlil", "mlil_translator\x00"),
2195 ("hlil", "high_level_il\x00"),
2196 ];
2197
2198 if let Some(alias_idx) = DEBUG_REPORT_ALIAS
2199 .iter()
2200 .position(|(alias, _value)| *alias == name)
2201 {
2202 let name = DEBUG_REPORT_ALIAS[alias_idx].1.as_ptr() as *const c_char;
2203 unsafe { BNRequestFunctionDebugReport(self.handle, name) }
2204 } else {
2205 let name = std::ffi::CString::new(name.to_string()).unwrap();
2206 unsafe { BNRequestFunctionDebugReport(self.handle, name.as_ptr()) }
2207 }
2208
2209 self.view().update_analysis()
2210 }
2211
2212 /// Whether function was automatically discovered s a result of some creation of a 'user' function.
2213 /// 'user' functions may or may not have been created by a user through the or API. For instance the entry point

Callers

nothing calls this directly

Calls 4

positionMethod · 0.80
iterMethod · 0.45
update_analysisMethod · 0.45
viewMethod · 0.45

Tested by

no test coverage detected