Search in sources :

Example 1 with RuntimeBreakpoint

use of jadx.gui.device.debugger.SmaliDebugger.RuntimeBreakpoint in project jadx by skylot.

the class DebugController method setBreakpoint.

protected void setBreakpoint(long cid, FileBreakpoint fbp) {
    try {
        long mid = debugger.getMethodID(cid, fbp.mth);
        if (mid > -1) {
            RuntimeBreakpoint rbp = debugger.makeBreakpoint(cid, mid, fbp.codeOffset);
            debugger.setBreakpoint(rbp);
            bpStore.add(fbp, rbp);
            return;
        }
    } catch (SmaliDebuggerException e) {
        logErr(e);
    }
    failBreakpoint(fbp, "Failed to get method for breakpoint, " + fbp.mth + ":" + fbp.codeOffset);
}
Also used : SmaliDebuggerException(jadx.gui.device.debugger.SmaliDebugger.SmaliDebuggerException) RuntimeBreakpoint(jadx.gui.device.debugger.SmaliDebugger.RuntimeBreakpoint)

Aggregations

RuntimeBreakpoint (jadx.gui.device.debugger.SmaliDebugger.RuntimeBreakpoint)1 SmaliDebuggerException (jadx.gui.device.debugger.SmaliDebugger.SmaliDebuggerException)1