mirror of https://github.com/buggins/dlangide.git
debugger UI
This commit is contained in:
parent
a10427631c
commit
14e326e826
|
@ -71,6 +71,8 @@ interface Debugger : ProgramExecution {
|
|||
void execStepIn();
|
||||
/// step out
|
||||
void execStepOut();
|
||||
/// restart
|
||||
void execRestart();
|
||||
|
||||
/// update list of breakpoints
|
||||
void setBreakpoints(Breakpoint[] bp);
|
||||
|
@ -217,6 +219,10 @@ class DebuggerProxy : Debugger, DebuggerCallback {
|
|||
void execStepOut() {
|
||||
_debugger.postRequest(delegate() { _debugger.execStepOut(); });
|
||||
}
|
||||
/// restart
|
||||
void execRestart() {
|
||||
_debugger.postRequest(delegate() { _debugger.execRestart(); });
|
||||
}
|
||||
/// update list of breakpoints
|
||||
void setBreakpoints(Breakpoint[] breakpoints) {
|
||||
Breakpoint[] cloned;
|
||||
|
|
|
@ -281,6 +281,11 @@ class GDBInterface : ConsoleDebuggerInterface {
|
|||
void execStepOut() {
|
||||
_stepOutRequestId = sendCommand("-exec-finish");
|
||||
}
|
||||
/// restart
|
||||
int _restartRequestId;
|
||||
void execRestart() {
|
||||
//_restartRequestId = sendCommand("-exec-restart");
|
||||
}
|
||||
|
||||
private GDBBreakpoint[] _breakpoints;
|
||||
private static class GDBBreakpoint {
|
||||
|
|
|
@ -107,7 +107,9 @@ class DebuggerUIHandler : DebuggerCallback {
|
|||
_debugger.execContinue();
|
||||
return true;
|
||||
case IDEActions.DebugStop:
|
||||
_debugger.execStop();
|
||||
//_debugger.execStop();
|
||||
Log.d("Trying to stop debugger");
|
||||
_debugger.stop();
|
||||
return true;
|
||||
case IDEActions.DebugStepInto:
|
||||
if (_state == DebuggingState.paused)
|
||||
|
@ -122,7 +124,7 @@ class DebuggerUIHandler : DebuggerCallback {
|
|||
_debugger.execStepOut();
|
||||
return true;
|
||||
case IDEActions.DebugRestart:
|
||||
//_debugger.execStepOut();
|
||||
_debugger.execRestart();
|
||||
return true;
|
||||
default:
|
||||
return false;
|
||||
|
|
Loading…
Reference in New Issue