From 502036fc9aafc278a4be7148a5e70725316e0cbf Mon Sep 17 00:00:00 2001 From: falkTX Date: Wed, 11 Feb 2015 14:17:35 +0000 Subject: [PATCH] Add "--gdb" switch to carla script --- data/carla | 4 ++++ data/carla-patchbay | 4 ++++ data/carla-rack | 4 ++++ source/carla | 2 ++ source/carla-patchbay | 2 ++ source/carla-rack | 2 ++ 6 files changed, 18 insertions(+) diff --git a/data/carla b/data/carla index e97c12c0a..5f1f45363 100755 --- a/data/carla +++ b/data/carla @@ -6,6 +6,10 @@ else PYTHON=python fi +if [ $1 = "--gdb" ]; then + PYTHON="gdb --args $PYTHON" +fi + INSTALL_PREFIX="X-PREFIX-X" export PATH="$INSTALL_PREFIX"/lib/carla:$PATH exec $PYTHON "$INSTALL_PREFIX"/share/carla/carla --with-appname="$0" --with-libprefix="$INSTALL_PREFIX" "$@" diff --git a/data/carla-patchbay b/data/carla-patchbay index 9d0f10b28..3b03cb108 100755 --- a/data/carla-patchbay +++ b/data/carla-patchbay @@ -6,6 +6,10 @@ else PYTHON=python fi +if [ $1 = "--gdb" ]; then + PYTHON="gdb --args $PYTHON" +fi + INSTALL_PREFIX="X-PREFIX-X" export PATH="$INSTALL_PREFIX"/lib/carla:$PATH exec $PYTHON "$INSTALL_PREFIX"/share/carla/carla-patchbay --with-appname="$0" --with-libprefix="$INSTALL_PREFIX" "$@" diff --git a/data/carla-rack b/data/carla-rack index 668a0b1a4..c9a58fb6c 100755 --- a/data/carla-rack +++ b/data/carla-rack @@ -6,6 +6,10 @@ else PYTHON=python fi +if [ $1 = "--gdb" ]; then + PYTHON="gdb --args $PYTHON" +fi + INSTALL_PREFIX="X-PREFIX-X" export PATH="$INSTALL_PREFIX"/lib/carla:$PATH exec $PYTHON "$INSTALL_PREFIX"/share/carla/carla-rack --with-appname="$0" --with-libprefix="$INSTALL_PREFIX" "$@" diff --git a/source/carla b/source/carla index 73b09e78b..62b77fcf7 100755 --- a/source/carla +++ b/source/carla @@ -84,6 +84,8 @@ if __name__ == '__main__': if arg.startswith("--with-appname=") or arg.startswith("--with-libprefix="): pass + elif arg == "--gdb": + pass elif os.path.exists(arg): gui.loadProjectLater(arg) diff --git a/source/carla-patchbay b/source/carla-patchbay index 0f0faa9bb..b4e60698d 100755 --- a/source/carla-patchbay +++ b/source/carla-patchbay @@ -71,6 +71,8 @@ if __name__ == '__main__': if arg.startswith("--with-appname=") or arg.startswith("--with-libprefix="): pass + elif arg == "--gdb": + pass elif os.path.exists(arg): gui.loadProjectLater(arg) diff --git a/source/carla-rack b/source/carla-rack index 356724778..f990a986e 100755 --- a/source/carla-rack +++ b/source/carla-rack @@ -71,6 +71,8 @@ if __name__ == '__main__': if arg.startswith("--with-appname=") or arg.startswith("--with-libprefix="): pass + elif arg == "--gdb": + pass elif os.path.exists(arg): gui.loadProjectLater(arg)