diff options
| author | Carl Hetherington <cth@carlh.net> | 2018-11-14 01:23:25 +0000 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2018-11-14 01:23:25 +0000 |
| commit | 201b6fdf572c04424d870ac4d07d1d1a8725b24c (patch) | |
| tree | b185bb50976b4de805f8480f37449bf507956b42 /run | |
| parent | 27e1378bede33c51835fd6307239692909d834d8 (diff) | |
Simpole DCP recovery utility (dcprecover) added.
Diffstat (limited to 'run')
| -rwxr-xr-x | run/tools/dcprecover | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/run/tools/dcprecover b/run/tools/dcprecover new file mode 100755 index 00000000..6277ccdc --- /dev/null +++ b/run/tools/dcprecover @@ -0,0 +1,12 @@ +#!/bin/bash + +export LD_LIBRARY_PATH=build/src:build/asdcplib/src:/home/c.hetherington/lib:$LD_LIBRARY_PATH +if [ "$1" == "--debug" ]; then + shift + gdb --args build/tools/dcprecover "$@" +elif [ "$1" == "--valgrind" ]; then + shift + valgrind --tool="memcheck" --leak-check=full --show-reachable=yes build/tools/dcprecover "$@" +else + build/tools/dcprecover "$@" +fi |
