stdcxx-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From far...@apache.org
Subject svn commit: r555340 - /incubator/stdcxx/trunk/util/exec.cpp
Date Wed, 11 Jul 2007 17:04:30 GMT
Author: faridz
Date: Wed Jul 11 10:04:28 2007
New Revision: 555340

URL: http://svn.apache.org/viewvc?view=rev&rev=555340
Log:
2007-07-11 Farid Zaripov <Farid_Zaripov@epam.com>

	* exec.cpp (exec_file) [_WIN32]: Translate STATUS_BREAKPOINT exit code into SIGTRAP.

Modified:
    incubator/stdcxx/trunk/util/exec.cpp

Modified: incubator/stdcxx/trunk/util/exec.cpp
URL: http://svn.apache.org/viewvc/incubator/stdcxx/trunk/util/exec.cpp?view=diff&rev=555340&r1=555339&r2=555340
==============================================================================
--- incubator/stdcxx/trunk/util/exec.cpp (original)
+++ incubator/stdcxx/trunk/util/exec.cpp Wed Jul 11 10:04:28 2007
@@ -47,6 +47,9 @@
 #else
 #  include <windows.h> /* for PROCESS_INFORMATION, ... */
 #  include <process.h> /* for CreateProcess, ... */
+#  ifndef SIGTRAP
+#  define SIGTRAP 5  // STATUS_BREAKPOINT translated into SIGTRAP
+#  endif
 #endif
 #include <sys/stat.h> /* for S_* */
 #include <sys/types.h>
@@ -1242,6 +1245,10 @@
 
     if (STATUS_ACCESS_VIOLATION == result->exit) {
         result->exit = SIGSEGV;
+        result->signaled = 1;
+    }
+    else if (STATUS_BREAKPOINT == result->exit) {
+        result->exit = SIGTRAP;
         result->signaled = 1;
     }
 }



Mime
View raw message