debugger UI

This commit is contained in:
Vadim Lopatin 2015-12-16 15:31:01 +03:00
parent a10427631c
commit 14e326e826
3 changed files with 15 additions and 2 deletions

View File

@ -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;

View File

@ -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 {

View File

@ -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;