Contributors:
Vicente Fernando - www.alfersoft.com.ar - Initial implementation
+ Christian Perkonig - remote debug
**********************************************************************/
package net.sourceforge.phpdt.internal.debug.core;
private String className= new String("");
private int finalPos=0, refCounter=0, rawCounter=1000;
private PHPDBGProxy proxy= null;
+
+ private int lastCmd=-1;
+ private int sid=0;
private boolean stopOnError= false;
private char[] lastCommand= new char[4];
}
return BPUnder;
}
+
+ public int getLastCmd()
+ {
+ return lastCmd;
+ }
+
+ public int getSID()
+ {
+ return sid;
+ }
+
+ public void setLastCmd(int cmd)
+ {
+ lastCmd=cmd;
+ }
public void stepInto() throws IOException {
BPUnderHit= 0;
if(dbg_header_struct[0] != 0x5953) return 0;
cmdReceived= dbg_header_struct[1];
+ setLastCmd(cmdReceived);
bytesToRead= dbg_header_struct[3];
//System.out.println("Response Received: " + cmdReceived);
case PHPDBGBase.FRAME_VER:
break;
case PHPDBGBase.FRAME_SID:
+ sid = PHPDBGBase.Char4ToInt(entirePack, nextFrame + 0);
break;
case PHPDBGBase.FRAME_SRCLINESINFO:
break;
this.shouldStop= true;
}
- public void waitResponse(long milliseconds) throws IOException {
+ public boolean waitResponse(long milliseconds) throws IOException {
long timeout= System.currentTimeMillis() + milliseconds;
while(System.currentTimeMillis() < timeout) {
if(in.ready() || shouldStop) {
break;
}
}
+ return in.ready();
}
-}
\ No newline at end of file
+}