]> git.ipfire.org Git - thirdparty/valgrind.git/commitdiff
Debugging hook which turns on a lot of debug printing when SIGUSR1
authorJulian Seward <jseward@acm.org>
Thu, 25 Apr 2002 01:27:35 +0000 (01:27 +0000)
committerJulian Seward <jseward@acm.org>
Thu, 25 Apr 2002 01:27:35 +0000 (01:27 +0000)
arrives.  Commented out.

git-svn-id: svn://svn.valgrind.org/valgrind/trunk@145

coregrind/vg_signals.c
vg_signals.c

index 16fbe2772ac4341c9001c5063891223ab34a0e71..51a2fe06bf1c5dc8a6caaf85138e565c0877d364 100644 (file)
@@ -365,6 +365,17 @@ static void VG_(oursignalhandler) ( Int sigNo )
    Int           dummy_local;
    vki_ksigset_t saved_procmask;
 
+   /*
+   if (sigNo == VKI_SIGUSR1) {
+      VG_(printf)("YOWZA!  SIGUSR1\n\n");
+      VG_(clo_trace_pthread_level) = 2;
+      VG_(clo_trace_sched) = True;
+      VG_(clo_trace_syscalls) = True;
+      VG_(clo_trace_signals) = True;
+      return;
+   }
+   */
+
    if (VG_(clo_trace_signals)) {
       VG_(start_msg)(Vg_DebugMsg);
       VG_(add_to_msg)("signal %d arrived ... ", sigNo );
@@ -542,6 +553,9 @@ void VG_(sigstartup_actions) ( void )
       }
    }
 
+   /* DEBUGGING HACK */
+   /* VG_(ksignal)(VKI_SIGUSR1, &VG_(oursignalhandler)); */
+
    /* Finally, restore the blocking mask. */
    VG_(restore_host_signals)( &saved_procmask );
 }
index 16fbe2772ac4341c9001c5063891223ab34a0e71..51a2fe06bf1c5dc8a6caaf85138e565c0877d364 100644 (file)
@@ -365,6 +365,17 @@ static void VG_(oursignalhandler) ( Int sigNo )
    Int           dummy_local;
    vki_ksigset_t saved_procmask;
 
+   /*
+   if (sigNo == VKI_SIGUSR1) {
+      VG_(printf)("YOWZA!  SIGUSR1\n\n");
+      VG_(clo_trace_pthread_level) = 2;
+      VG_(clo_trace_sched) = True;
+      VG_(clo_trace_syscalls) = True;
+      VG_(clo_trace_signals) = True;
+      return;
+   }
+   */
+
    if (VG_(clo_trace_signals)) {
       VG_(start_msg)(Vg_DebugMsg);
       VG_(add_to_msg)("signal %d arrived ... ", sigNo );
@@ -542,6 +553,9 @@ void VG_(sigstartup_actions) ( void )
       }
    }
 
+   /* DEBUGGING HACK */
+   /* VG_(ksignal)(VKI_SIGUSR1, &VG_(oursignalhandler)); */
+
    /* Finally, restore the blocking mask. */
    VG_(restore_host_signals)( &saved_procmask );
 }