From 146fcc57324ffecd104a95cfc5c124cedbab20a8 Mon Sep 17 00:00:00 2001 From: Basile Burg Date: Wed, 27 May 2020 18:59:53 +0200 Subject: [PATCH] fix #41 - GDB commander doesn't break on exceptions if program was compiled with LDC2 --- src/u_gdb.pas | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/u_gdb.pas b/src/u_gdb.pas index ee81eb94..ec606d66 100644 --- a/src/u_gdb.pas +++ b/src/u_gdb.pas @@ -1987,7 +1987,10 @@ begin if (_d_throwc in fOptions.coreBreakingSymbols) then gdbCommand('-break-insert --function _d_throwc'); if (_d_throwdwarf in fOptions.coreBreakingSymbols) then - gdbCommand('-break-insert --function _d_throwdwarf'); + begin + gdbCommand('-break-insert --function _d_throwdwarf'); // DMD + gdbCommand('-break-insert --function _d_throw_exception'); // LDC + end; if (_d_assertm in fOptions.coreBreakingSymbols) then gdbCommand('-break-insert --function _d_assertm'); if (_d_assert in fOptions.coreBreakingSymbols) then