瀏覽代碼

[Pal/Linux-SGX] gdb wrapper: use add-auto-load-safe-path

Previously, the GDB wrapper of Graphene-SGX used "set auto-load
safe-path GDB_SCRIPT". This contradicts newer GDB versions which have a
libpthread-2.27.so-gdb.py script in a different system dir. Thus, our
wrapper overwrote the native GDB safe-path and broke GDB. This commit
ensures that our wrapper only adds paths to safe-path.
Dmitrii Kuvaiskii 6 年之前
父節點
當前提交
7145ed23ae
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      Pal/src/host/Linux-SGX/debugger/gdb

+ 1 - 1
Pal/src/host/Linux-SGX/debugger/gdb

@@ -7,4 +7,4 @@ if [ -z "$INSIDE_EMACS" ]; then
 	set -x
 fi
 
-LD_PRELOAD=$GDB_SO gdb -iex "set auto-load safe-path $GDB_SCRIPT" "$@"
+LD_PRELOAD=$GDB_SO gdb -iex "add-auto-load-safe-path $GDB_SCRIPT" "$@"