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

Function init_plugin

plugins/pdb-ng/src/lib.rs:697–867  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

695}
696
697fn init_plugin() -> bool {
698 Logger::new("PDB").init();
699 DebugInfoParser::register("PDB", PDBParser {});
700
701 let settings = Settings::new();
702 settings.register_group("pdb", "PDB Loader");
703 settings.register_setting_json(
704 "pdb.files.localStoreAbsolute",
705 r#"{
706 "title" : "Local Symbol Store Absolute Path",
707 "type" : "string",
708 "default" : "",
709 "aliases" : ["pdb.local-store-absolute", "pdb.localStoreAbsolute"],
710 "description" : "Absolute path specifying where the PDB symbol store exists on this machine, overrides relative path.",
711 "ignore" : []
712 }"#,
713 );
714
715 settings.register_setting_json(
716 "pdb.files.localStoreRelative",
717 r#"{
718 "title" : "Local Symbol Store Relative Path",
719 "type" : "string",
720 "default" : "symbols",
721 "aliases" : ["pdb.local-store-relative", "pdb.localStoreRelative"],
722 "description" : "Path *relative* to the binaryninja _user_ directory, specifying the pdb symbol store. If the Local Symbol Store Absolute Path is specified, this is ignored.",
723 "ignore" : []
724 }"#,
725 );
726
727 settings.register_setting_json(
728 "pdb.files.localStoreCache",
729 r#"{
730 "title" : "Cache Downloaded PDBs in Local Store",
731 "type" : "boolean",
732 "default" : true,
733 "aliases" : ["pdb.localStoreCache"],
734 "description" : "Store PDBs downloaded from Symbol Servers in the local Symbol Store Path.",
735 "ignore" : []
736 }"#,
737 );
738
739 settings.register_setting_json(
740 "network.pdbAutoDownload",
741 r#"{
742 "title" : "Enable Auto Downloading PDBs",
743 "type" : "boolean",
744 "default" : true,
745 "aliases" : ["pdb.autoDownload", "pdb.auto-download-pdb"],
746 "description" : "Automatically search for and download pdb files from specified symbol servers.",
747 "ignore" : []
748 }"#,
749 );
750
751 settings.register_setting_json(
752 "pdb.files.symbolServerList",
753 r#"{
754 "title" : "Symbol Server List",

Callers 2

CorePluginInitFunction · 0.85
PDBPluginInitFunction · 0.85

Calls 3

register_setting_jsonMethod · 0.80
initMethod · 0.45
register_groupMethod · 0.45

Tested by

no test coverage detected