Search in sources :

Example 11 with SmaliDebuggerException

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

the class DebugController method updateAllFieldValues.

private void updateAllFieldValues(long thisID, FrameNode frame) {
    List<FieldTreeNode> nodes = frame.getFieldNodes();
    if (nodes.size() > 0) {
        List<FieldTreeNode> flds = new ArrayList<>(nodes.size());
        List<RuntimeField> rts = new ArrayList<>(nodes.size());
        nodes.forEach(n -> {
            RuntimeField f = n.getRuntimeField();
            if (f.isBelongToThis()) {
                flds.add(n);
                rts.add(f);
            }
        });
        try {
            debugger.getAllFieldValuesSync(thisID, rts);
            flds.forEach(n -> decodeRuntimeValue(n));
            debuggerPanel.refreshThisFieldTree();
        } catch (SmaliDebuggerException e) {
            logErr(e);
        }
    }
}
Also used : SmaliDebuggerException(jadx.gui.device.debugger.SmaliDebugger.SmaliDebuggerException) RuntimeField(jadx.gui.device.debugger.SmaliDebugger.RuntimeField) ArrayList(java.util.ArrayList)

Aggregations

SmaliDebuggerException (jadx.gui.device.debugger.SmaliDebugger.SmaliDebuggerException)11 FileBreakpoint (jadx.gui.device.debugger.BreakpointManager.FileBreakpoint)3 ArrayList (java.util.ArrayList)3 Frame (jadx.gui.device.debugger.SmaliDebugger.Frame)2 RuntimeBreakpoint (jadx.gui.device.debugger.SmaliDebugger.RuntimeBreakpoint)2 RuntimeField (jadx.gui.device.debugger.SmaliDebugger.RuntimeField)2 RuntimeRegister (jadx.gui.device.debugger.SmaliDebugger.RuntimeRegister)2 RuntimeType (jadx.gui.device.debugger.SmaliDebugger.RuntimeType)2 RuntimeValue (jadx.gui.device.debugger.SmaliDebugger.RuntimeValue)2 ClassNode (jadx.core.dex.nodes.ClassNode)1 FieldNode (jadx.core.dex.nodes.FieldNode)1 JClass (jadx.gui.treemodel.JClass)1