Quantcast

Valgrind: r16275 - /trunk/coregrind/m_signals.c

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Valgrind: r16275 - /trunk/coregrind/m_signals.c

svn-2
Author: petarj
Date: Thu Mar 16 13:10:16 2017
New Revision: 16275

Log:
Fix broken build on non-Linux systems

After r16273, non-Linux Valgrind builds report:

 m_signals.c:1732:36:
 error: 'VKI_PT_PTRACED' undeclared (first use in this function)

Fix the issue with #if defined(VGO_linux) for the reported code.

Modified:
    trunk/coregrind/m_signals.c

Modified: trunk/coregrind/m_signals.c
==============================================================================
--- trunk/coregrind/m_signals.c (original)
+++ trunk/coregrind/m_signals.c Thu Mar 16 13:10:16 2017
@@ -1729,11 +1729,13 @@
    if (!terminate)
       return; /* nothing to do */
 
+#if defined(VGO_linux)
    if (terminate && (tst->ptrace & VKI_PT_PTRACED)
        && (sigNo != VKI_SIGKILL)) {
       VG_(kill)(VG_(getpid)(), VKI_SIGSTOP);
       return;
    }
+#endif
 
    could_core = core;
 


------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
Valgrind-developers mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/valgrind-developers
Loading...