X-Git-Url: http://drtracing.org/?a=blobdiff_plain;f=gdb%2Flinux-nat.c;h=f050e7e83f91545f2f90f89e5ff562de0140f542;hb=a529be7c5ea8407a11ce97468d095ad1bc8859b5;hp=a60d8e0cacac2e7013c9bdea3fd0fb9dc8793534;hpb=9c0dd46b95f82899ba2648fb6c1e7561382098dc;p=deliverable%2Fbinutils-gdb.git diff --git a/gdb/linux-nat.c b/gdb/linux-nat.c index a60d8e0cac..f050e7e83f 100644 --- a/gdb/linux-nat.c +++ b/gdb/linux-nat.c @@ -2388,7 +2388,7 @@ linux_nat_thread_alive (ptid_t ptid) will first do a lookup for the process based upon the passed-in pid. If that fails we will get either -ESRCH or -EPERM, otherwise the child exists and is alive. */ - if (errno == -ESRCH || errno == -EPERM) + if (errno == ESRCH || errno == EPERM) return 0; return 1;