Browse code

kamctl: print process details in pstrap output

(cherry picked from commit 904a1590dbcdbb0fda9f676b4768596f797e9e27)

Daniel-Constantin Mierla authored on 07/07/2020 17:18:52
Showing 1 changed files
... ...
@@ -2958,7 +2958,7 @@ kamailio_pstrap() {
2958 2958
 		PID=`echo $pid | cut -d '-' -f 1`
2959 2959
 		echo "" >> $LOG_FILE
2960 2960
 		echo "---start $PID -----------------------------------------------------" >> $LOG_FILE
2961
-		$GDB kamailio $PID -batch --eval-command="bt full" >> $LOG_FILE 2>&1
2961
+		$GDB kamailio $PID -batch --eval-command="p process_no" --eval-command="p pt[process_no]" --eval-command="bt full" >> $LOG_FILE 2>&1
2962 2962
 		echo "---end $PID -------------------------------------------------------" >> $LOG_FILE
2963 2963
 	done
2964 2964
 	echo "."