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:
parent
3302cdecd1
commit
47e242eca4
2 changed files with 8 additions and 2 deletions
|
@ -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
|
||||
|
|
|
@ -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 */
|
||||
|
|
Loading…
Reference in a new issue