diff options
author | Jeff Johnston <jjohnstn@redhat.com> | 2003-05-22 15:46:20 +0000 |
---|---|---|
committer | Jeff Johnston <jjohnstn@redhat.com> | 2003-05-22 15:46:20 +0000 |
commit | 47e242eca46f01673f05ac0a6a6a8cf401e3b981 (patch) | |
tree | 9ec3ea07bc386f25fcc9d2953aab4f54ea8dc875 /gdb/infptrace.c | |
parent | 3302cdecd114d6835ba6751b75cd996ffee1d190 (diff) | |
download | gdb-47e242eca46f01673f05ac0a6a6a8cf401e3b981.zip gdb-47e242eca46f01673f05ac0a6a6a8cf401e3b981.tar.gz gdb-47e242eca46f01673f05ac0a6a6a8cf401e3b981.tar.bz2 |
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.
Diffstat (limited to 'gdb/infptrace.c')
-rw-r--r-- | gdb/infptrace.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/gdb/infptrace.c b/gdb/infptrace.c index 1225dd8..6147cbe 100644 --- a/gdb/infptrace.c +++ b/gdb/infptrace.c @@ -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 */ |