We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent d21c789 commit d555d18Copy full SHA for d555d18
tools/gramine.in
@@ -27,8 +27,12 @@ if [ "$GDB" == "1" ]; then
27
PREFIX+=("-x" "$HOST_PAL_PATH/gdb_integration/gramine_linux_gdb.py")
28
fi
29
if [ "$GDB_SCRIPT" != "" ]; then
30
- # Run a script in batch mode, and without TTY (so that it can be piped, redirected etc.)
31
- PREFIX+=("-x" "$GDB_SCRIPT" "-batch" "-tty=/dev/null")
+ # Run a script in batch mode, and ...
+ PREFIX+=("-x" "$GDB_SCRIPT")
32
+ # ... optionally without TTY (so that it can be piped, redirected etc.)
33
+ if [ -z ${GDB_TTY+x} ]; then
34
+ PREFIX+=("-batch" "-tty=/dev/null")
35
+ fi
36
37
PREFIX+=("--args")
38
0 commit comments