summaryrefslogtreecommitdiff
path: root/plugins/dwarf/dwarf_import/src
diff options
context:
space:
mode:
authorMason Reed <mason@vector35.com>2025-10-22 02:09:10 -0400
committerMason Reed <mason@vector35.com>2025-10-22 14:51:07 -0400
commit551738c693b52b8c383eab629fbc9d81d04d4c4b (patch)
treec2da8e1ebc3f69715ec8710f89f1c23241d4ac10 /plugins/dwarf/dwarf_import/src
parent5ae046509bb7c5c0a5c338793ebc3902820ac9e7 (diff)
Add more plugins to free
Adds WARP, DWARF Import and Objective-C plugins to free
Diffstat (limited to 'plugins/dwarf/dwarf_import/src')
-rw-r--r--plugins/dwarf/dwarf_import/src/lib.rs18
1 files changed, 16 insertions, 2 deletions
diff --git a/plugins/dwarf/dwarf_import/src/lib.rs b/plugins/dwarf/dwarf_import/src/lib.rs
index 8ad5e442..6e9626aa 100644
--- a/plugins/dwarf/dwarf_import/src/lib.rs
+++ b/plugins/dwarf/dwarf_import/src/lib.rs
@@ -756,8 +756,7 @@ impl CustomDebugInfoParser for DWARFParser {
}
}
-#[no_mangle]
-pub extern "C" fn CorePluginInit() -> bool {
+fn plugin_init() {
Logger::new("DWARF").init();
let settings = Settings::new();
@@ -820,5 +819,20 @@ pub extern "C" fn CorePluginInit() -> bool {
);
DebugInfoParser::register("DWARF", DWARFParser {});
+}
+
+#[no_mangle]
+#[allow(non_snake_case)]
+#[cfg(not(feature = "demo"))]
+pub extern "C" fn CorePluginInit() -> bool {
+ plugin_init();
+ true
+}
+
+#[no_mangle]
+#[allow(non_snake_case)]
+#[cfg(feature = "demo")]
+pub extern "C" fn DwarfImportPluginInit() -> bool {
+ plugin_init();
true
}