From 2c534d50ae0d9d7ba0619ff8af90d4d269175ea3 Mon Sep 17 00:00:00 2001 From: Lennart Poettering Date: Sun, 20 Sep 2009 18:52:27 +0200 Subject: optionally read debug info for backtraces --- mutrace.in | 18 +++++++++++++++--- 1 file changed, 15 insertions(+), 3 deletions(-) (limited to 'mutrace.in') diff --git a/mutrace.in b/mutrace.in index 8225f03..10b04b6 100755 --- a/mutrace.in +++ b/mutrace.in @@ -17,12 +17,14 @@ # You should have received a copy of the GNU Lesser General Public # License along with mutrace. If not, see . -if ! TEMP=`getopt -o +arh --long hash-size:,frames:,locked-min:,owner-changed-min:,contended-min:,max:,trap,help,all -n mutrace -- "$@"` ; then +if ! TEMP=`getopt -o +ardh --long hash-size:,frames:,locked-min:,owner-changed-min:,contended-min:,max:,trap,help,all,debug-info -n mutrace -- "$@"` ; then exit 1 fi eval set -- "$TEMP" +debug_info=0 + while : ; do case $1 in --hash-size) @@ -65,6 +67,11 @@ while : ; do shift 1 ;; + -d|--debug-info) + debug_info=1 + shift 1 + ;; + -a|--all) export MUTRACE_LOCKED_MIN=0 export MUTRACE_OWNER_CHANGED_MIN=0 @@ -77,7 +84,7 @@ while : ; do cat <