From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 26716 invoked by alias); 3 Nov 2014 18:38:45 -0000 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 Received: (qmail 26700 invoked by uid 89); 3 Nov 2014 18:38:44 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-3.4 required=5.0 tests=AWL,BAYES_00,RP_MATCHES_RCVD,SPF_HELO_PASS,SPF_PASS autolearn=ham version=3.3.2 X-HELO: mx1.redhat.com Received: from mx1.redhat.com (HELO mx1.redhat.com) (209.132.183.28) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with (AES256-GCM-SHA384 encrypted) ESMTPS; Mon, 03 Nov 2014 18:38:42 +0000 Received: from int-mx13.intmail.prod.int.phx2.redhat.com (int-mx13.intmail.prod.int.phx2.redhat.com [10.5.11.26]) by mx1.redhat.com (8.14.4/8.14.4) with ESMTP id sA3Icc7f011921 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=FAIL); Mon, 3 Nov 2014 13:38:38 -0500 Received: from localhost (dhcp-10-15-16-169.yyz.redhat.com [10.15.16.169]) by int-mx13.intmail.prod.int.phx2.redhat.com (8.14.4/8.14.4) with ESMTP id sA3IcbWY025861 (version=TLSv1/SSLv3 cipher=AES128-GCM-SHA256 bits=128 verify=NO); Mon, 3 Nov 2014 13:38:38 -0500 From: Sergio Durigan Junior To: Gabriel Krisman Bertazi Cc: gdb-patches@sourceware.org Subject: Re: [PATCH 4/4] Update documentation on catching a group of related syscalls. References: <1414956944-8856-1-git-send-email-gabriel@krisman.be> <1414956944-8856-5-git-send-email-gabriel@krisman.be> X-URL: http://blog.sergiodj.net Date: Mon, 03 Nov 2014 18:38:00 -0000 In-Reply-To: <1414956944-8856-5-git-send-email-gabriel@krisman.be> (Gabriel Krisman Bertazi's message of "Sun, 2 Nov 2014 17:35:44 -0200") Message-ID: <87lhns2kpe.fsf@redhat.com> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-IsSubscribed: yes X-SW-Source: 2014-11/txt/msg00052.txt.bz2 On Sunday, November 02 2014, Gabriel Krisman Bertazi wrote: > diff --git a/gdb/NEWS b/gdb/NEWS > index 649c29e..edea1ff 100644 > --- a/gdb/NEWS > +++ b/gdb/NEWS > @@ -60,6 +60,11 @@ SGI Irix-6.x mips-*-irix6* > VAX running (4.2 - 4.3 Reno) BSD vax-*-bsd* > VAX running Ultrix vax-*-ultrix* > > +* Catch syscall catches groups of related syscalls. > + > + Catch syscall command supports catching a group of related > + syscalls using the 'group:' or 'g:' prefix. > + Yay, thanks for the patch. Almost there! Hmm, I would prefer not to use capital letters when naming commands. How about: * The "catch syscall" command now supports catching groups of relates system calls, using the "group:" or "g:" prefixes. ? > diff --git a/gdb/doc/gdb.texinfo b/gdb/doc/gdb.texinfo > index 15c2908..ca16e11 100644 > --- a/gdb/doc/gdb.texinfo > +++ b/gdb/doc/gdb.texinfo > @@ -4254,7 +4254,7 @@ A call to @code{exec}. This is currently only available for HP-UX > and @sc{gnu}/Linux. > > @item syscall > -@itemx syscall @r{[}@var{name} @r{|} @var{number}@r{]} @dots{} > +@itemx syscall @r{[}@var{name} @r{|} @var{number} @r{|} @var{group:groupname} @r{|} @var{g:groupname}@r{]} @dots{} > @kindex catch syscall > @cindex break on a system call. > A call to or return from a system call, a.k.a.@: @dfn{syscall}. A > @@ -4289,6 +4289,12 @@ may be useful if @value{GDBN}'s database does not have the complete > list of syscalls on your system (e.g., because @value{GDBN} lags > behind the OS upgrades). > > +You may specify a group of related syscalls to be caught at once > +using the @code{group:} syntax (@code{g:} is a shorter equivalent.). > +For instance, on some platforms GDB allows you to catch all network > +related syscalls, by passing the argument @code{group:network} to > +@code{catch syscall}. > + Aside from Eli's comments, I would really like to see an example of how to use this feature in the manual. Thanks, -- Sergio GPG key ID: 0x65FC5E36 Please send encrypted e-mail if possible http://sergiodj.net/