We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent cb116b4 commit 23db866Copy full SHA for 23db866
frida-gum/src/module.rs
@@ -150,6 +150,23 @@ impl Module {
150
}
151
152
153
+ /// The absolute address of the export. In the event that no such export
154
+ /// could be found, returns NULL.
155
+ pub fn find_global_export_by_name(symbol_name: &str) -> Option<NativePointer> {
156
+ let symbol_name = CString::new(symbol_name).unwrap();
157
+
158
+ let ptr = unsafe {
159
+ gum_sys::gum_module_find_global_export_by_name(symbol_name.as_ptr().cast())
160
+ as *mut c_void
161
+ };
162
163
+ if ptr.is_null() {
164
+ None
165
+ } else {
166
+ Some(NativePointer(ptr))
167
+ }
168
169
170
/// The absolute address of the symbol. In the event that no such symbol
171
/// could be found, returns NULL.
172
pub fn find_symbol_by_name(&self, symbol_name: &str) -> Option<NativePointer> {
0 commit comments