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

Function CorePluginInit

plugins/dwarf/dwarf_import/src/lib.rs:735–799  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

733
734#[no_mangle]
735pub extern "C" fn CorePluginInit() -> bool {
736 Logger::new("DWARF").init();
737
738 let settings = Settings::new();
739
740 settings.register_setting_json(
741 "network.enableDebuginfod",
742 r#"{
743 "title" : "Enable Debuginfod Support",
744 "type" : "boolean",
745 "default" : false,
746 "description" : "Enable using Debuginfod servers to fetch DWARF debug info for files with a .note.gnu.build-id section.",
747 "ignore" : []
748 }"#,
749 );
750
751 settings.register_setting_json(
752 "network.debuginfodServers",
753 r#"{
754 "title" : "Debuginfod Server URLs",
755 "type" : "array",
756 "sorted" : true,
757 "default" : [],
758 "description" : "Servers to use for fetching DWARF debug info for files with a .note.gnu.build-id section.",
759 "ignore" : []
760 }"#,
761 );
762
763 settings.register_setting_json(
764 "analysis.debugInfo.enableDebugDirectories",
765 r#"{
766 "title" : "Enable Debug File Directories",
767 "type" : "boolean",
768 "default" : true,
769 "description" : "Enable searching local debug directories for DWARF debug info.",
770 "ignore" : []
771 }"#,
772 );
773
774 settings.register_setting_json(
775 "analysis.debugInfo.debugDirectories",
776 r#"{
777 "title" : "Debug File Directories",
778 "type" : "array",
779 "sorted" : true,
780 "default" : [],
781 "description" : "Paths to folder containing DWARF debug info stored by build id.",
782 "ignore" : []
783 }"#,
784 );
785
786 settings.register_setting_json(
787 "analysis.debugInfo.loadSiblingDebugFiles",
788 r#"{
789 "title" : "Enable Loading of Sibling Debug Files",
790 "type" : "boolean",
791 "default" : true,
792 "description" : "Enable automatic loading of X.debug and X.dSYM files next to a file named X.",

Callers

nothing calls this directly

Calls 2

register_setting_jsonMethod · 0.80
initMethod · 0.45

Tested by

no test coverage detected