Salome HOME
Update of icons
[modules/shaper.git] / linux_run.sh
index a5a847176a926ef913c04e350097798bc2e6b37d..9ec6425671b2f595895aaa13f2cc31453ebdeb3d 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 &
+  APP_PID=$!
+  echo "Connecting GDB to PID ${APP_PID}..."
+  gdb --command=./commands.gdb - ${APP_PID} >>gdb.log 2>>gdb.err
+else
+  ${INSTALL_DIR}/bin/GeomApp
+fi