From: Milian Wolff Date: Mon, 15 Jun 2015 19:11:55 +0000 (+0200) Subject: Make heaptrack more compatible with other debug tools. X-Git-Tag: submit/tizen/20180620.112952^2~329 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=1045bbe9b21801c69a28ace14fc43613e7d24bd0;p=sdk%2Ftools%2Fheaptrack.git Make heaptrack more compatible with other debug tools. Ignore any '--' parameter. --- diff --git a/heaptrack.sh.cmake b/heaptrack.sh.cmake index 8039377..108a33d 100755 --- a/heaptrack.sh.cmake +++ b/heaptrack.sh.cmake @@ -95,6 +95,9 @@ while true; do exit 0 ;; *) + if [[ "$1" == "--" ]]; then + shift 1 + fi if [ ! -x "$(which "$1" 2> /dev/null)" ]; then echo "Error: Debuggee \"$1\" is not an executable." echo