Browse Source

A few more fixes

Don Porter 7 years ago
parent
commit
04fe97ec0e
2 changed files with 5 additions and 2 deletions
  1. 1 1
      LibOS/shim/test/regression/Makefile
  2. 4 1
      Runtime/pal_loader

+ 1 - 1
LibOS/shim/test/regression/Makefile

@@ -53,4 +53,4 @@ regression: $(target)
 	../apps/ltp/syscalls.sh
 
 clean-tmp:
-	rm -rf *.tmp ../apps/ltp/*.csv
+	rm -rf *.tmp ../apps/ltp/*.csv *.cached *.manifest.sgx *~ *.sig *.token

+ 4 - 1
Runtime/pal_loader

@@ -8,7 +8,10 @@ GDB_CMD=
 PAL_CMD=$RUNTIME_DIR/pal-$PAL_HOST
 
 if [ "$GDB" == "1" ]; then
-	GDB="/usr/bin/gdb"
+	GDB=$RUNTIME_DIR/pal_gdb-$PAL_HOST
+	if [ ! -f $GDB ]; then
+		GDB="/usr/bin/gdb"
+	fi
 fi
 
 if [ "$GDB" != "" ] && [ "$GDB" != "0" ]; then