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.
This commit is contained in:
Jeff Johnston 2003-05-22 15:46:20 +00:00
parent 3302cdecd1
commit 47e242eca4
2 changed files with 8 additions and 2 deletions

View File

@ -1,3 +1,9 @@
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

View 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 */