File tree 3 files changed +15
-0
lines changed
frida-gum/src/instruction_writer
3 files changed +15
-0
lines changed Original file line number Diff line number Diff line change @@ -74,6 +74,11 @@ impl Aarch64InstructionWriter {
74
74
}
75
75
}
76
76
77
+ /// Get the underlying frida gum writer object
78
+ pub fn writer ( & self ) -> * mut gum_sys:: _GumArm64Writer {
79
+ self . writer
80
+ }
81
+
77
82
/// Insert a `b` to a label. The label is specified by `id`.
78
83
pub fn put_b_label ( & self , id : u64 ) {
79
84
unsafe { gum_sys:: gum_arm64_writer_put_b_label ( self . writer , id as * const c_void ) }
Original file line number Diff line number Diff line change @@ -57,6 +57,11 @@ impl ArmInstructionWriter {
57
57
is_from_new : false ,
58
58
}
59
59
}
60
+
61
+ /// Get the underlying frida gum writer object
62
+ pub fn writer ( & self ) -> * mut gum_sys:: _GumArmWriter {
63
+ self . writer
64
+ }
60
65
}
61
66
62
67
impl Drop for ArmInstructionWriter {
Original file line number Diff line number Diff line change @@ -71,6 +71,11 @@ impl X86InstructionWriter {
71
71
}
72
72
}
73
73
74
+ /// Get the underlying frida gum writer object
75
+ pub fn writer ( & self ) -> * mut gum_sys:: _GumX86Writer {
76
+ self . writer
77
+ }
78
+
74
79
pub fn put_leave ( & self ) -> bool {
75
80
unsafe {
76
81
gum_sys:: gum_x86_writer_put_leave ( self . writer ) ;
You can’t perform that action at this time.
0 commit comments