* configure.host: Add x86_64-*-freebsd*.
[deliverable/binutils-gdb.git] / gdb / infptrace.c
index 1225dd8a62c133441785edaee45207033a8e89c3..6147cbe896453cc65bcea376257cfeb8a7245a42 100644 (file)
@@ -301,8 +301,8 @@ detach (int signal)
   errno = 0;
   ptrace (PT_DETACH, PIDGET (inferior_ptid), (PTRACE_ARG3_TYPE) 1,
           signal);
-  if (errno && errno != ESRCH)
-    perror_with_name ("ptrace");
+  if (errno)
+    print_sys_errmsg ("ptrace", errno);
   attach_flag = 0;
 }
 #endif /* ATTACH_DETACH */
This page took 0.024184 seconds and 4 git commands to generate.