Salome HOME
Add construction plugin without tests.
[modules/shaper.git] / linux_run.sh
index a5a847176a926ef913c04e350097798bc2e6b37d..10b6112649585f749c2ddff49c7b1698c0e57db4 100755 (executable)
@@ -7,4 +7,11 @@ 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