gdb 226 B

12345678910
  1. #!/bin/bash
  2. DIR=$(dirname $(readlink -f ${BASH_SOURCE[0]}))
  3. GDB_SCRIPT=$DIR/pal-gdb.py
  4. GDB_SO=$DIR/sgx_gdb.so
  5. if [ -z "$INSIDE_EMACS" ]; then
  6. set -x
  7. fi
  8. LD_PRELOAD=$GDB_SO gdb -iex "add-auto-load-safe-path $GDB_SCRIPT" "$@"