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

Method commit_functions

plugins/dwarf/dwarf_import/src/dwarfdebuginfo.rs:580–595  ·  view source on GitHub ↗
(&self, debug_info: &mut DebugInfo)

Source from the content-addressed store, hash-verified

578 }
579
580 fn commit_functions(&self, debug_info: &mut DebugInfo) {
581 for function in self.functions() {
582 // let calling_convention: Option<Ref<CallingConvention<CoreArchitecture>>> = None;
583
584 debug_info.add_function(&DebugFunctionInfo::new(
585 function.full_name.clone(),
586 function.full_name.clone(), // TODO : This should eventually be changed, but the "full_name" should probably be the unsimplified version, and the "short_name" should be the simplified version...currently the symbols view shows the full version, so changing it here too makes it look bad in the UI
587 function.raw_name.clone(),
588 Some(self.get_function_type(function)),
589 function.address,
590 function.platform.clone(),
591 vec![], // TODO : Components
592 function.stack_variables.clone(), // TODO: local non-stack variables
593 ));
594 }
595 }
596
597 pub(crate) fn post_process(&mut self, bv: &BinaryView, _debug_info: &mut DebugInfo) -> &Self {
598 // When originally resolving names, we need to check:

Callers 1

commit_infoMethod · 0.80

Calls 4

get_function_typeMethod · 0.80
functionsMethod · 0.45
add_functionMethod · 0.45
cloneMethod · 0.45

Tested by

no test coverage detected