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 | |
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.
-rw-r--r-- | gdb/ChangeLog | 6 | ||||
-rw-r--r-- | gdb/infptrace.c | 4 |
2 files changed, 8 insertions, 2 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog index f05acf1..14911d0 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -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 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 */ |