Lines Matching refs:method
8 * Set "methodEntry" if we've just entered the method. This detects
9 * method exit by checking to see if the next instruction is "return".
11 * This can't catch native method entry/exit, so we have to handle that
23 * TODO: method entry/exit events are probably less common than location
27 static void updateDebugger(const Method* method, const u2* pc, const u4* fp,
67 assert(!dvmIsNativeMethod(method));
71 * Step into method calls. We break when the line number
72 * or method pointer changes. If we're in SS_MIN mode, we
75 if (pCtrl->method != method) {
77 msg = "new method";
82 pCtrl->pAddressSet, pc - method->insns)) {
88 * Step over method calls. We break when the line number is
90 * depth. (We can't just compare on the method, because we
98 msg = "method pop";
105 pc - method->insns)) {
113 * Return from the current method. We break when the frame
116 * This differs from the "method exit" break in that it stops
123 msg = "method pop";
141 * We're also not supposed to generate a method exit event if the method
156 Object* thisPtr = dvmGetThisPtr(method, fp);
163 char* desc = dexProtoCopyMethodDescriptor(&method->prototype);
165 method->clazz->descriptor, method->name, desc);
169 dvmDbgPostLocationEvent(method, pc - method->insns, thisPtr,
183 const Method* method, bool* pIsMethodEntry)
185 /* check to see if we've run off end of method */
186 assert(pc >= method->insns && pc <
187 method->insns + dvmGetMethodInsnsSize(method));
191 * When we hit a specific method, enable verbose instruction logging.
200 strcmp(method->clazz->descriptor, cd) == 0 &&
201 strcmp(method->name, mn) == 0 &&
202 strcmp(method->shorty, sg) == 0)
205 method->clazz->descriptor, method->name);
207 dumpRegs(method, fp, true);
227 TRACE_METHOD_ENTER(self, method);
230 updateDebugger(method, pc, fp, isEntry, self);
247 updateDebugger(method, pc, fp, isEntry, self);