From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 10517 invoked by alias); 26 Nov 2014 21:52:59 -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 10507 invoked by uid 89); 26 Nov 2014 21:52:58 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-3.1 required=5.0 tests=AWL,BAYES_00,SPF_HELO_PASS,SPF_PASS,T_RP_MATCHES_RCVD 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; Wed, 26 Nov 2014 21:52:57 +0000 Received: from int-mx14.intmail.prod.int.phx2.redhat.com (int-mx14.intmail.prod.int.phx2.redhat.com [10.5.11.27]) by mx1.redhat.com (8.14.4/8.14.4) with ESMTP id sAQLqr8L019494 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=FAIL); Wed, 26 Nov 2014 16:52:54 -0500 Received: from localhost (dhcp-10-15-16-169.yyz.redhat.com [10.15.16.169]) by int-mx14.intmail.prod.int.phx2.redhat.com (8.14.4/8.14.4) with ESMTP id sAQLqqvm031168 (version=TLSv1/SSLv3 cipher=AES128-GCM-SHA256 bits=128 verify=NO); Wed, 26 Nov 2014 16:52:53 -0500 From: Sergio Durigan Junior To: Andreas Arnez Cc: gdb-patches@sourceware.org Subject: Re: [PATCH] Provide useful completer for "info registers" References: <87h9xnqje8.fsf@br87z6lw.de.ibm.com> <87ioi1bs3x.fsf@redhat.com> X-URL: http://blog.sergiodj.net Date: Wed, 26 Nov 2014 21:52:00 -0000 In-Reply-To: <87ioi1bs3x.fsf@redhat.com> (Sergio Durigan Junior's message of "Wed, 26 Nov 2014 15:54:10 -0500") Message-ID: <87wq6haatn.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/msg00672.txt.bz2 On Wednesday, November 26 2014, I wrote: [...] > + for (group = reggroup_next (gdbarch, NULL); > + group != NULL; > + group = reggroup_next (gdbarch, group)) > + regnames[count++] = reggroup_name (group); > > + regnames[count] = NULL; > + > + result = complete_on_enum (regnames, text, word); Ops, sorry, this should be: result = complete_on_enum (regnames, word, word); complete_on_enum has such a weird interface that it makes me want to cry... Cheers, -- Sergio GPG key ID: 0x65FC5E36 Please send encrypted e-mail if possible http://sergiodj.net/