summaryrefslogtreecommitdiff
path: root/run
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2023-08-27 23:13:34 +0200
committerCarl Hetherington <cth@carlh.net>2023-08-27 23:13:34 +0200
commit7f95292018aa08fde55d2ebf521247a587f67f03 (patch)
tree4dd0e42f7f8d1a059d6bd717c2c7a7572e0c8b2d /run
parent8305f28ea22a834cc4a9e4b324110b5ff4ba1bd1 (diff)
Add dcpdumpimage tool.
Diffstat (limited to 'run')
-rwxr-xr-xrun/tools/dcpdumpimage15
1 files changed, 15 insertions, 0 deletions
diff --git a/run/tools/dcpdumpimage b/run/tools/dcpdumpimage
new file mode 100755
index 00000000..35e79e76
--- /dev/null
+++ b/run/tools/dcpdumpimage
@@ -0,0 +1,15 @@
+#!/bin/bash
+
+DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
+top=$DIR/../..
+
+export LD_LIBRARY_PATH=$top/build/src:$top/build/asdcplib/src:$LD_LIBRARY_PATH
+if [ "$1" == "--debug" ]; then
+ shift
+ gdb --args $top/build/tools/dcpdumpimage "$@"
+elif [ "$1" == "--valgrind" ]; then
+ shift
+ valgrind --tool="memcheck" --leak-check=full --show-reachable=yes $top/build/tools/dcpdumpimage "$@"
+else
+ $top/build/tools/dcpdumpimage "$@"
+fi