From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 24088 invoked by alias); 23 Aug 2012 16:00:28 -0000 Received: (qmail 24031 invoked by uid 22791); 23 Aug 2012 16:00:25 -0000 X-SWARE-Spam-Status: No, hits=-6.6 required=5.0 tests=AWL,BAYES_00,KHOP_RCVD_UNTRUST,RCVD_IN_DNSWL_HI,RCVD_IN_HOSTKARMA_W,RP_MATCHES_RCVD,SPF_HELO_PASS 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; Thu, 23 Aug 2012 16:00:10 +0000 Received: from int-mx11.intmail.prod.int.phx2.redhat.com (int-mx11.intmail.prod.int.phx2.redhat.com [10.5.11.24]) by mx1.redhat.com (8.14.4/8.14.4) with ESMTP id q7NG08gc020498 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK); Thu, 23 Aug 2012 12:00:09 -0400 Received: from barimba (ovpn01.gateway.prod.ext.phx2.redhat.com [10.5.9.1]) by int-mx11.intmail.prod.int.phx2.redhat.com (8.14.4/8.14.4) with ESMTP id q7NG04ot024503 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES128-SHA bits=128 verify=NO); Thu, 23 Aug 2012 12:00:06 -0400 From: Tom Tromey To: Sergio Durigan Junior Cc: Aaron Gamble , gdb-patches@sourceware.org Subject: Re: [patch] info threads sort by name and name regex matching References: <87pq6isqt9.fsf@fleche.redhat.com> Date: Thu, 23 Aug 2012 16:00:00 -0000 In-Reply-To: (Sergio Durigan Junior's message of "Wed, 22 Aug 2012 20:30:17 -0300") Message-ID: <87pq6hppiz.fsf@fleche.redhat.com> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.1 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain 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-08/txt/msg00665.txt.bz2 Sergio> Why not `-r regex'? I think it would be more clear. Me too. Sergio> Other commands (`sharedlibrary', `info variables', etc) take a regex as Sergio> their first argument, without requiring a modifier like `-r'. If the Sergio> "pipe" patch were already in, this alphabetical sorting would not be Sergio> needed... Anyway, just thinking here. Piping is nice but I think it is also good to have options for common cases. Sergio> I guess Tom did not suggest this because of performance per se, but Sergio> rather because if you have to make a list in GDB then it is already a Sergio> convention to use VEC for these things. Yeah. I thought it would make the code simpler. Tom