dect
/
asterisk
Archived
13
0
Fork 0

live_ast: valgrind: run asterisk under valgrind

Adds a new sub-command, "valgrind" to live_ast. It runs asterisk under
valgrind. The extra command-line parameters are passed to Asterisk as
usual, and parameters to valgrind are passed through LIVE_AST_VALGRIND_ARGS
in live.conf .

Review: https://reviewboard.asterisk.org/r/1109/


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@326636 f38db490-d61c-443f-a65b-d21fe96a405b
This commit is contained in:
tzafrir 2011-07-07 09:49:54 +00:00
parent 9b10a0c265
commit 8d66c8fe0c
1 changed files with 9 additions and 0 deletions

View File

@ -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"