Skip to content

Commit 98676d0

Browse files
committed
260203.053935.CET [revise] run_gdb to avoid gdb warning about auto-load
1 parent eeb1ad8 commit 98676d0

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

fortran/tests/tools/run_gdb

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,8 @@
88

99
echo 0 > "$2"
1010

11-
gdb -return-child-result -batch -ex run -ex where -ex quit "$1" 2>&1 || echo $? > "$2"
11+
# `-iex "set auto-load safe-path /"` is used to avoid gdb warnings such as
12+
# File "XXX" auto-loading has been declined by your `auto-load safe-path' set to "YYY"
13+
gdb -return-child-result -batch -iex "set auto-load safe-path /" -ex run -ex where -ex quit "$1" 2>&1 || echo $? > "$2"
1214

1315
exit 0 # Exit successfully anyway.

0 commit comments

Comments
 (0)