Patch #1106 2006-06-08 14:14

kaischroeder

catch all signals in gdb and not only SIGSEGV
Download
1106-catch_all_sign.patch (651 bytes)
Category
Plugin::Refinement
Status
Accepted
Close date
2006-06-09 13:45
Assigned to
 
Index: src/plugins/debuggergdb/gdb_driver.cpp
===================================================================
--- src/plugins/debuggergdb/gdb_driver.cpp    (revision 2539)
+++ src/plugins/debuggergdb/gdb_driver.cpp    (working copy)
@@ -481,7 +482,8 @@
         }
 
         // signal
-        else if (lines[i].StartsWith(_T("Program received signal SIGSEGV")))
+        else if (lines[i].StartsWith(_T("Program received signal SIG")) &&
+        !( lines[i].StartsWith(_T("Program received signal SIGINT")) || lines[i].StartsWith(_T("Program received signal SIGTRAP"))) )
         {
             Log(lines[i]);
             m_pDBG->BringAppToFront();
kaischroeder 2006-06-09 11:21

do NOT apply. this patch needs refinement

kaischroeder 2006-06-09 12:02

Fixed. The new patch checks for the signals used by the debugger itself and ignores them.