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 --- matrace.in | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) (limited to 'matrace.in') diff --git a/matrace.in b/matrace.in index 7d4d8c6..7ab078f 100755 --- a/matrace.in +++ b/matrace.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 +h --long frames:,help -n matrace -- "$@"` ; then +if ! TEMP=`getopt -o +dh --long frames:,debug-info,help -n matrace -- "$@"` ; then exit 1 fi eval set -- "$TEMP" +debug_info=0 + while : ; do case $1 in --frames) @@ -30,6 +32,11 @@ while : ; do shift 2 ;; + -d|--debug-info) + debug_info=1 + shift 1 + ;; + -h|--help) cat <