]> git.sur5r.net Git - bacula/bacula/commitdiff
Use lwps cmd in dbx and no threads as it seems to give some strange side effects...
authorMarco van Wieringen <mvw@planets.elm.net>
Sat, 24 Apr 2010 21:10:30 +0000 (23:10 +0200)
committerEric Bollengier <eric@eb.homelinux.org>
Mon, 2 Aug 2010 14:53:45 +0000 (16:53 +0200)
bacula/scripts/btraceback.dbx

index 679334a68d4af6f1b80ec238fe31ba3e4d261e12..8c7fe860eda2a4a5cd5e1091021e02f8f31fe275 100644 (file)
@@ -12,38 +12,37 @@ echo "distver ==> \c"; print -l (char *)distver
 echo "dist_name ==> \c"; print -l (char *)dist_name
 echo "beef ==> \c"; print -l (int)beef
 
-echo "******** RUNNING THREADS:"
+echo "******** RUNNING THREADS/LWPS:"
 echo
-threads
+lwps
 
 echo
 echo
-echo "******** STACK TRACE OF CURRENT THREAD:"
+echo "******** STACK TRACE OF CURRENT THREAD/LWP:"
 echo
 where
 
 echo
 echo
-echo "******** VARIABLES DUMP OF CURRENT THREAD:"
+echo "******** VARIABLES DUMP OF CURRENT THREAD/LWP:"
 echo
 dump
 
-for THREAD in $(threads | sh sed -e 's/.*@//' -e 's/ .*//'); do
-       (
-       if thread t@$THREAD; then
-               echo 
-               echo 
-               echo "******** STACK TRACE OF THREAD ${THREAD}:"
-               echo
-               where
+for LWP in $(lwps | sh sed -e 's/.*@//' -e 's/ .*//'); do
+(
+   if lwp l@$LWP; then
+      echo "******************************************"
+      echo
+      echo "******** STACK TRACE OF THREAD/LWP ${LWP}:"
+      echo
+      where
 
-               echo
-               echo
-               echo "******** VARIABLES DUMP OF THREAD ${THREAD}:"
-               echo
-               dump
-               
-       fi
-       )
+      echo
+      echo "******** VARIABLES DUMP OF THREAD/LWP ${LWP}:"
+      echo
+      dump
+      echo "******************************************"
+   fi
+)
 done
 quit