Salome HOME
Issue #894: Toggle constraint before transaction open
[modules/shaper.git] / linux_run.sh
index 1e60be570715ab7cc7a9c2207650b7581c59a696..10b6112649585f749c2ddff49c7b1698c0e57db4 100755 (executable)
@@ -2,7 +2,16 @@
 
 a_dir=$(dirname $0)
 
+cd ${a_dir}
+
 source ${a_dir}/env.sh
 source ${a_dir}/env_standalone.sh
 
-${INSTALL_DIR}/bin/GeomApp "$@"
+if [ -f GDB ]; then
+  ${INSTALL_DIR}/bin/GeomApp >>log_GeomApp 2>>err_GeomApp &
+  APP_PID=$!
+  echo "Connecting GDB to PID ${APP_PID}..."
+  gdb - ${APP_PID} >>log_gdb_linux 2>>err_gdb_linux
+else
+  ${INSTALL_DIR}/bin/GeomApp
+fi