jvmti_rs/wrapper/jvmtifns/
breakpoint.rs

1use crate::{errors::*, JVMTIEnv, Transform};
2use crate::sys::{jlocation, jmethodID};
3
4impl<'a> JVMTIEnv<'a> {
5    pub fn set_breakpoint<M>(&self, jni: &jni::JNIEnv<'a>, method: M, location: jlocation) -> Result<()>
6        where
7            M: Transform<'a, jmethodID> {
8        jvmti_call!(self.jvmti_raw(), SetBreakpoint,
9            method.transform(jni)?,
10            location
11        )
12    }
13
14    pub fn clear_breakpoint<M>(&self, jni: &jni::JNIEnv<'a>, method: M, location: jlocation) -> Result<()>
15        where
16            M: Transform<'a, jmethodID> {
17        jvmti_call!(self.jvmti_raw(), ClearBreakpoint,
18            method.transform(jni)?,
19            location
20        )
21    }
22}