From 225459e1156b21ea4985c06f2e93d99fdeb7f51b Mon Sep 17 00:00:00 2001 From: Keywan Ghadami Date: Mon, 28 Dec 2015 22:46:20 +0100 Subject: [PATCH] config gdb to ignore garbage collection signals to do so i send following commands following to gdb on startup: handle SIGUSR1 nostop noprint handle SIGUSR2 nostop noprint this prevents gdp from beeing interuppted by garbage collection signals --- src/ddebug/gdb/gdbinterface.d | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/ddebug/gdb/gdbinterface.d b/src/ddebug/gdb/gdbinterface.d index 4a3e21d..65e453d 100644 --- a/src/ddebug/gdb/gdbinterface.d +++ b/src/ddebug/gdb/gdbinterface.d @@ -271,6 +271,8 @@ class GDBInterface : ConsoleDebuggerInterface, TextCommandTarget { /// start program execution, can be called after program is loaded int _startRequestId; void execStart() { + sendCommand("handle SIGUSR1 nostop noprint"); + sendCommand("handle SIGUSR2 nostop noprint"); _startRequestId = sendCommand("-exec-run"); }