From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 1033 invoked by alias); 6 Sep 2018 20:16:03 -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 981 invoked by uid 89); 6 Sep 2018 20:16:01 -0000 Authentication-Results: sourceware.org; auth=none X-Spam-SWARE-Status: No, score=-2.6 required=5.0 tests=BAYES_00,RCVD_IN_DNSWL_LOW,SPF_PASS autolearn=ham version=3.3.2 spammy=Below, UD:be, locals, H*x:Evolution X-HELO: mailsec116.isp.belgacom.be Received: from mailsec116.isp.belgacom.be (HELO mailsec116.isp.belgacom.be) (195.238.20.112) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Thu, 06 Sep 2018 20:15:58 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=skynet.be; i=@skynet.be; q=dns/txt; s=securemail; t=1536264952; x=1567800952; h=message-id:subject:from:to:date:in-reply-to:references: mime-version:content-transfer-encoding; bh=SvnHY1SN2hPH1VxFkLJaddnpkUADbzqLP60fh2q9dnc=; b=KNQBNKY0/AM9+PjHz9RdTWC2LgaNAGwgaBLzLN1OsxXv52RW/yX6bYrz P7KG7UUslnh+84/ttR4S6/yw1cuo7A==; Received: from 232.142-134-109.adsl-dyn.isp.belgacom.be (HELO md) ([109.134.142.232]) by relay.skynet.be with ESMTP/TLS/AES256-GCM-SHA384; 06 Sep 2018 22:15:49 +0200 Message-ID: <1536264949.1459.7.camel@skynet.be> Subject: PING Re: [RFAv2 0/6] info [args|functions|locals|variables] [-q] [-t TYPEREGEXP] [NAMEREGEXP] From: Philippe Waroquiers To: gdb-patches@sourceware.org Date: Thu, 06 Sep 2018 20:16:00 -0000 In-Reply-To: <20180826165359.1600-1-philippe.waroquiers@skynet.be> References: <20180826165359.1600-1-philippe.waroquiers@skynet.be> Content-Type: text/plain; charset="UTF-8" Mime-Version: 1.0 Content-Transfer-Encoding: 7bit X-IsSubscribed: yes X-SW-Source: 2018-09/txt/msg00102.txt.bz2 Ping Thanks Philippe On Sun, 2018-08-26 at 18:53 +0200, Philippe Waroquiers wrote: > [RFAv2 0/6] info [args|functions|locals|variables] [-q] [-t TYPEREGEXP] [NAMEREGEXP] > > This is a follow up to the first RFA. > The documentation parts were already reviewed by Eli, other parts > were not reviewed yet. > Compared to the first RFA, the changes are a rebase to the last trunk version, > the removal of an unused local variable, and some updates to the new > info_qt.exp test to ensure unicity of test names. > > Thanks. > > > This patch series adds flags and/or arguments > [-q] [-t TYPEREGEXP] [NAMEREGEXP] to the commands > info [args|functions|locals|variables] > > The additional arguments allow to more precisely specify what to print. > As these new features can usefully be combined with frame apply and thread > apply, the documentation gives examples combining the above > and the 'thread apply' and 'frame apply' commands. > > Some examples: > * print functions returning an int: > info functions -t '^int (' > * print local variables having pthread_t type > info locals -t pthread_t > * print global variables having type 'struct addrinfo' > info var -t 'struct addrinfo' > * print args that are likely file descriptors > info arg -t int .*fd.* > > Below examples are combined with the 'thread/frame apply' commands: > > * Assuming lock_something_t is an RAII type, show all locks: > thread apply all -s frame apply all -s info locals -q -t lock_something_t > or shorter equivalent: > tfaas i lo -q -t lock_something_t > > * show frames and args having an arg with type matchin std::.*map > so likely std::map or std::unordered_map > frame apply all -s info args -q std::.*map > > > The code, documentation, NEWS, test and ChangeLog are (supposed to be) complete. > > The changes in RFA v2 are: > * Removal of an unused local variable. > * Updates to the test info_qt.exp, to ensure no duplicate in test names. > > Compared to the RFC, the changes in RFA v1 are: > * All comments of Eli on the documentation have been handled. > * ChangeLog entries added in commit messages > * Test added. > > >