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();
|
void execStepIn();
|
||||||
/// step out
|
/// step out
|
||||||
void execStepOut();
|
void execStepOut();
|
||||||
|
/// restart
|
||||||
|
void execRestart();
|
||||||
|
|
||||||
/// update list of breakpoints
|
/// update list of breakpoints
|
||||||
void setBreakpoints(Breakpoint[] bp);
|
void setBreakpoints(Breakpoint[] bp);
|
||||||
|
@ -217,6 +219,10 @@ class DebuggerProxy : Debugger, DebuggerCallback {
|
||||||
void execStepOut() {
|
void execStepOut() {
|
||||||
_debugger.postRequest(delegate() { _debugger.execStepOut(); });
|
_debugger.postRequest(delegate() { _debugger.execStepOut(); });
|
||||||
}
|
}
|
||||||
|
/// restart
|
||||||
|
void execRestart() {
|
||||||
|
_debugger.postRequest(delegate() { _debugger.execRestart(); });
|
||||||
|
}
|
||||||
/// update list of breakpoints
|
/// update list of breakpoints
|
||||||
void setBreakpoints(Breakpoint[] breakpoints) {
|
void setBreakpoints(Breakpoint[] breakpoints) {
|
||||||
Breakpoint[] cloned;
|
Breakpoint[] cloned;
|
||||||
|
|
|
@ -281,6 +281,11 @@ class GDBInterface : ConsoleDebuggerInterface {
|
||||||
void execStepOut() {
|
void execStepOut() {
|
||||||
_stepOutRequestId = sendCommand("-exec-finish");
|
_stepOutRequestId = sendCommand("-exec-finish");
|
||||||
}
|
}
|
||||||
|
/// restart
|
||||||
|
int _restartRequestId;
|
||||||
|
void execRestart() {
|
||||||
|
//_restartRequestId = sendCommand("-exec-restart");
|
||||||
|
}
|
||||||
|
|
||||||
private GDBBreakpoint[] _breakpoints;
|
private GDBBreakpoint[] _breakpoints;
|
||||||
private static class GDBBreakpoint {
|
private static class GDBBreakpoint {
|
||||||
|
|
|
@ -107,7 +107,9 @@ class DebuggerUIHandler : DebuggerCallback {
|
||||||
_debugger.execContinue();
|
_debugger.execContinue();
|
||||||
return true;
|
return true;
|
||||||
case IDEActions.DebugStop:
|
case IDEActions.DebugStop:
|
||||||
_debugger.execStop();
|
//_debugger.execStop();
|
||||||
|
Log.d("Trying to stop debugger");
|
||||||
|
_debugger.stop();
|
||||||
return true;
|
return true;
|
||||||
case IDEActions.DebugStepInto:
|
case IDEActions.DebugStepInto:
|
||||||
if (_state == DebuggingState.paused)
|
if (_state == DebuggingState.paused)
|
||||||
|
@ -122,7 +124,7 @@ class DebuggerUIHandler : DebuggerCallback {
|
||||||
_debugger.execStepOut();
|
_debugger.execStepOut();
|
||||||
return true;
|
return true;
|
||||||
case IDEActions.DebugRestart:
|
case IDEActions.DebugRestart:
|
||||||
//_debugger.execStepOut();
|
_debugger.execRestart();
|
||||||
return true;
|
return true;
|
||||||
default:
|
default:
|
||||||
return false;
|
return false;
|
||||||
|
|
Loading…
Reference in New Issue