Don Porter пре 7 година
родитељ
комит
04fe97ec0e
2 измењених фајлова са 5 додато и 2 уклоњено
  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