From 1045bbe9b21801c69a28ace14fc43613e7d24bd0 Mon Sep 17 00:00:00 2001 From: Milian Wolff Date: Mon, 15 Jun 2015 21:11:55 +0200 Subject: [PATCH] Make heaptrack more compatible with other debug tools. Ignore any '--' parameter. --- heaptrack.sh.cmake | 3 +++ 1 file changed, 3 insertions(+) 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 -- 2.7.4