From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 22556 invoked by alias); 13 Mar 2012 15:03:16 -0000 Received: (qmail 22412 invoked by uid 22791); 13 Mar 2012 15:03:15 -0000 X-SWARE-Spam-Status: No, hits=-6.7 required=5.0 tests=AWL,BAYES_00,RCVD_IN_DNSWL_HI,SPF_HELO_PASS,T_RP_MATCHES_RCVD X-Spam-Check-By: sourceware.org Received: from mx1.redhat.com (HELO mx1.redhat.com) (209.132.183.28) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Tue, 13 Mar 2012 15:03:01 +0000 Received: from int-mx12.intmail.prod.int.phx2.redhat.com (int-mx12.intmail.prod.int.phx2.redhat.com [10.5.11.25]) by mx1.redhat.com (8.14.4/8.14.4) with ESMTP id q2DF31SD020425 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK) for ; Tue, 13 Mar 2012 11:03:01 -0400 Received: from host2.jankratochvil.net (ovpn-116-16.ams2.redhat.com [10.36.116.16]) by int-mx12.intmail.prod.int.phx2.redhat.com (8.14.4/8.14.4) with ESMTP id q2DF2vGu019238 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES128-SHA bits=128 verify=NO); Tue, 13 Mar 2012 11:02:59 -0400 Date: Tue, 13 Mar 2012 15:03:00 -0000 From: Jan Kratochvil To: Pedro Alves Cc: gdb-patches@sourceware.org Subject: [commit] [patch 2/3] attach-fail-reasons: Say more than ptrace: Operation not permitted. Message-ID: <20120313150256.GB1349@host2.jankratochvil.net> References: <20120306061710.GB24004@host2.jankratochvil.net> <4F58BA4A.9090903@redhat.com> <20120313094307.GA25939@host2.jankratochvil.net> <4F5F226F.5090304@redhat.com> <20120313135457.GA8363@host2.jankratochvil.net> <4F5F5B0F.8010804@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <4F5F5B0F.8010804@redhat.com> User-Agent: Mutt/1.5.21 (2010-09-15) X-IsSubscribed: yes Mailing-List: contact gdb-patches-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-patches-owner@sourceware.org X-SW-Source: 2012-03/txt/msg00439.txt.bz2 On Tue, 13 Mar 2012 15:34:55 +0100, Pedro Alves wrote: > > gdb/ > > 2012-03-13 Jan Kratochvil > > > > * common/linux-procfs.c (linux_proc_get_int): New, from > > linux_proc_get_tgid, change its LWPID type to pid_t, add parameter > > field. > > (linux_proc_get_tgid): Only call linux_proc_get_int. > > (linux_proc_get_tracerpid): New. > > (linux_proc_pid_has_state): New, from linux_proc_pid_is_zombie. > > (linux_proc_pid_is_stopped, linux_proc_pid_is_zombie): Only call > > linux_proc_pid_has_state. > > * common/linux-procfs.h (linux_proc_get_tracerpid): New declaration. > > * common/linux-ptrace.c: Include linux-procfs.h and buffer.h. > > (linux_ptrace_attach_warnings): New. > > * common/linux-ptrace.h (struct buffer, linux_ptrace_attach_warnings): > > New declaration. > > * linux-nat.c: Include exceptions.h, linux-ptrace.h and buffer.h. > > (linux_nat_attach): New variables ex, buffer, message and message_s. > > Wrap to_attach by TRY_CATCH and call linux_ptrace_attach_warnings. > > > > gdb/gdbserver/ > > 2012-03-13 Jan Kratochvil > > > > * linux-low.c (linux_attach_lwp_1): New variable buffer. Call > > linux_ptrace_attach_warnings. > > > > gdb/testsuite/ > > 2012-03-06 Jan Kratochvil > > > > * gdb.base/attach-twice.c: New files. > > * gdb.base/attach-twice.exp: New files. > > Looks good too. Checked in: http://sourceware.org/ml/gdb-cvs/2012-03/msg00169.html Thanks, Jan