소스 검색

* Detach and quit when running auto gdb

Bryan Drewery 16 년 전
부모
커밋
4bac035e6f
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      src/debug.c

+ 1 - 1
src/debug.c

@@ -162,7 +162,7 @@ static void got_segv(int z)
   FILE *f = fopen(btfile, "w");
 
   if (f) {
-    strlcpy(std_in, "bt 100\nbt 100 full\n", sizeof(stdin));
+    strlcpy(std_in, "bt 100\nbt 100 full\ndetach\nquit\n", sizeof(stdin));
 //    simple_snprintf(stdin, sizeof(stdin), "detach\n");
 //    simple_snprintf(stdin, sizeof(stdin), "q\n");