* infptrace.c (detach): Call print_sys_errmsg rather than
perror_with_name to issue warning message when errno is non-zero
after calling ptrace detach.
+2003-05-22 Jeff Johnston <jjohnstn@redhat.com>
+
+ * infptrace.c (detach): Call print_sys_errmsg rather than
+ perror_with_name to issue warning message when errno is non-zero
+ after calling ptrace detach.
+
2003-05-21 J. Brobecker <brobecker@gnat.com>
* config/pa/tm-hppa.h: Delete some unused macros. Move some
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 */