aboutsummaryrefslogtreecommitdiffstats
path: root/contrib/scripts/live_ast
diff options
context:
space:
mode:
authorPatrick McHardy <kaber@trash.net>2011-07-22 16:44:20 +0200
committerPatrick McHardy <kaber@trash.net>2011-07-22 16:44:20 +0200
commit2b9be10b177024bd663bd5fce19ea0fb76260c27 (patch)
treef6c296350683ee94c120213bef57e14fd153b23a /contrib/scripts/live_ast
parent916e420bf0c8db7a8cb1f60557cd2807652142cf (diff)
parent28da2a199d7e1624ac56ccb27d3671117f4e2717 (diff)
Merge branch 'master' of 192.168.0.100:/repos/git/asteriskHEADmaster
Diffstat (limited to 'contrib/scripts/live_ast')
-rwxr-xr-xcontrib/scripts/live_ast9
1 files changed, 9 insertions, 0 deletions
diff --git a/contrib/scripts/live_ast b/contrib/scripts/live_ast
index c1e7fade1..c5195c3d8 100755
--- a/contrib/scripts/live_ast
+++ b/contrib/scripts/live_ast
@@ -99,6 +99,10 @@
# is run.
#LIVE_AST_BRISTUFFED_LIBPRI=yes
#
+# LIVE_AST_VALGRIND_ARGS:
+# Parameters to pass to valgrind if using the 'valgrind' command.
+#LIVE_AST_VALGRIND_ARGS="-v --leak-check=full --suppressions=contrib/valgrind.supp --log-file=valgrind.log"
+#
# LIVE_AST_FOR_SYSTEM
# When generating asterisk.conf, use most components from the installed
# system. Also provide a sane var-run directory for those of us who want
@@ -235,6 +239,10 @@ run)
set_ld_env
$AST_BIN -C $AST_CONF "$@"
;;
+valgrind)
+ set_ld_env
+ valgrind $LIVE_AST_VALGRIND_ARGS $AST_BIN -C $AST_CONF "$@"
+ ;;
rsync)
remote_host="$1"
remote_dir="$2"
@@ -262,6 +270,7 @@ gdb)
echo "$0 samples make samples"
echo "$0 run [params] asterisk [params]"
echo "$0 gdb gdb asterisk"
+ echo "$0 valgrind valgrind asterisk"
echo "$0 rsync [user@]host dir copy files over to [user@]host:dir"
echo "$0 gen-live-asterisk regenerate the wrapper ./live/asterisk"
echo "$0 conf-file create live.conf if it does not exist"