From 1a5848f62595063a3b484e9475cb7e86bd03bb47 Mon Sep 17 00:00:00 2001 From: Jeff Johnston Date: Tue, 25 Feb 2003 19:38:21 +0000 Subject: [PATCH] 2003-02-25 Jeff Johnston * infptrace.c (detach): Do not flag error if ptrace detach fails and errno is set to ESRCH. --- gdb/ChangeLog | 5 +++++ gdb/infptrace.c | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/gdb/ChangeLog b/gdb/ChangeLog index e2a7e525934..c7343385418 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,8 @@ +2003-02-25 Jeff Johnston + + * infptrace.c (detach): Do not flag error if ptrace detach fails + and errno is set to ESRCH. + 2003-02-24 Andrew Cagney * infptrace.c (udot_info): Change type of udot_off to long. Use diff --git a/gdb/infptrace.c b/gdb/infptrace.c index e75ea4c41f2..a142080cf8c 100644 --- a/gdb/infptrace.c +++ b/gdb/infptrace.c @@ -301,7 +301,7 @@ detach (int signal) errno = 0; ptrace (PT_DETACH, PIDGET (inferior_ptid), (PTRACE_ARG3_TYPE) 1, signal); - if (errno) + if (errno && errno != ESRCH) perror_with_name ("ptrace"); attach_flag = 0; } -- 2.30.2