mirror of https://github.com/buggins/dlangide.git
refactor GDB support; update mago-mi
This commit is contained in:
parent
97a9cd90c8
commit
83c86d70fd
Binary file not shown.
|
@ -319,7 +319,7 @@ class GDBInterface : ConsoleDebuggerInterface, TextCommandTarget {
|
||||||
/// interrupt execution
|
/// interrupt execution
|
||||||
int _pauseRequestId;
|
int _pauseRequestId;
|
||||||
void execPause() {
|
void execPause() {
|
||||||
_pauseRequestId = submitRequest("-exec-interrupt");
|
_pauseRequestId = submitRequest("-exec-interrupt", true);
|
||||||
}
|
}
|
||||||
|
|
||||||
/// step over
|
/// step over
|
||||||
|
@ -602,9 +602,9 @@ class GDBInterface : ConsoleDebuggerInterface, TextCommandTarget {
|
||||||
}
|
}
|
||||||
|
|
||||||
/// submit simple text command request
|
/// submit simple text command request
|
||||||
int submitRequest(string text) {
|
int submitRequest(string text, bool forceNoWaitDebuggerReady = false) {
|
||||||
auto request = new GDBRequest(text);
|
auto request = new GDBRequest(text);
|
||||||
_requests.submit(request);
|
_requests.submit(request, forceNoWaitDebuggerReady);
|
||||||
return request.id;
|
return request.id;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -897,13 +897,14 @@ struct GDBRequestList {
|
||||||
_activeRequests[request.id] = request;
|
_activeRequests[request.id] = request;
|
||||||
}
|
}
|
||||||
|
|
||||||
int submit(GDBRequest request) {
|
int submit(GDBRequest request, bool forceNoWaitDebuggerReady = false) {
|
||||||
if (!request.id)
|
if (!request.id)
|
||||||
request.id = _target.reserveCommandId();
|
request.id = _target.reserveCommandId();
|
||||||
if (Log.traceEnabled)
|
if (Log.traceEnabled)
|
||||||
Log.v("submitting request " ~ to!string(request.id) ~ " " ~ request.command);
|
Log.v("submitting request " ~ to!string(request.id) ~ " " ~ request.command);
|
||||||
if (_ready || _synchronousMode) {
|
if (_ready || _synchronousMode || forceNoWaitDebuggerReady) {
|
||||||
_ready = _synchronousMode;
|
if (!forceNoWaitDebuggerReady)
|
||||||
|
_ready = _synchronousMode;
|
||||||
executeRequest(request);
|
executeRequest(request);
|
||||||
} else
|
} else
|
||||||
_pendingRequests ~= request;
|
_pendingRequests ~= request;
|
||||||
|
|
|
@ -68,7 +68,7 @@ extern (C) int UIAppMain(string[] args) {
|
||||||
//}
|
//}
|
||||||
|
|
||||||
// create window
|
// create window
|
||||||
Window window = Platform.instance.createWindow("Dlang IDE", null, WindowFlag.Resizable, 1000, 750);
|
Window window = Platform.instance.createWindow("Dlang IDE", null, WindowFlag.Resizable, 900, 730);
|
||||||
// set window icon
|
// set window icon
|
||||||
window.windowIcon = drawableCache.getImage("dlangui-logo1");
|
window.windowIcon = drawableCache.getImage("dlangui-logo1");
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue