1 22 23 package org.aspectj.debugger.request; 24 25 import org.aspectj.debugger.base.*; 26 27 import com.sun.jdi.*; 28 import java.util.*; 29 30 38 39 public class WhereRequest extends ThreadNeedingRequest { 40 public WhereRequest(Debugger debugger, String threadName) { 41 super(debugger, threadName); 42 } 43 44 public Object go() throws NoVMException, DebuggerException { 45 try { 46 return ajdbg().frames(getThread()); 47 } catch (IncompatibleThreadStateException e) { 48 throw new BadThreadStateException(e); 49 } 50 } 51 52 public static class BadThreadStateException extends DebuggerException { 53 public BadThreadStateException(IncompatibleThreadStateException e) { 54 super(e.getMessage()); 55 } 56 } 57 } 58 | Popular Tags |