]> saetta.ns0.it Git - zakform/tests/commitdiff
Added script file to debug cgi.
authorAndrea Zagli <azagli@libero.it>
Sun, 15 May 2016 09:45:09 +0000 (11:45 +0200)
committerAndrea Zagli <azagli@libero.it>
Sun, 15 May 2016 09:45:09 +0000 (11:45 +0200)
debugcgi.sh [new file with mode: 0755]

diff --git a/debugcgi.sh b/debugcgi.sh
new file mode 100755 (executable)
index 0000000..17a20d3
--- /dev/null
@@ -0,0 +1,4 @@
+#!/bin/bash
+
+PID=`ps ax | grep $1 | awk '{ print $1 }'`
+su -c "gdb --pid $PID --symbols=$2"