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)
| 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 |
nothing calls this directly
no test coverage detected