From ecffabe656080be13d86303a675e5e3179496f04 Mon Sep 17 00:00:00 2001 From: Andrea Zagli Date: Sun, 15 May 2016 11:45:09 +0200 Subject: [PATCH] Added script file to debug cgi. --- debugcgi.sh | 4 ++++ 1 file changed, 4 insertions(+) create mode 100755 debugcgi.sh diff --git a/debugcgi.sh b/debugcgi.sh new file mode 100755 index 0000000..17a20d3 --- /dev/null +++ b/debugcgi.sh @@ -0,0 +1,4 @@ +#!/bin/bash + +PID=`ps ax | grep $1 | awk '{ print $1 }'` +su -c "gdb --pid $PID --symbols=$2" -- 2.49.0