From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 19864 invoked by alias); 18 Dec 2004 01:03:20 -0000 Mailing-List: contact gdb-help@sources.redhat.com; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-owner@sources.redhat.com Received: (qmail 19541 invoked from network); 18 Dec 2004 01:02:54 -0000 Received: from unknown (HELO mx1.redhat.com) (66.187.233.31) by sourceware.org with SMTP; 18 Dec 2004 01:02:54 -0000 Received: from int-mx1.corp.redhat.com (int-mx1.corp.redhat.com [172.16.52.254]) by mx1.redhat.com (8.12.11/8.12.11) with ESMTP id iBI12nNH005175 for ; Fri, 17 Dec 2004 20:02:49 -0500 Received: from localhost.redhat.com (vpn50-7.rdu.redhat.com [172.16.50.7]) by int-mx1.corp.redhat.com (8.11.6/8.11.6) with ESMTP id iBI12fr18272; Fri, 17 Dec 2004 20:02:42 -0500 Received: from [127.0.0.1] (localhost.localdomain [127.0.0.1]) by localhost.redhat.com (Postfix) with ESMTP id C47093EFD; Fri, 17 Dec 2004 19:59:54 -0500 (EST) Message-ID: <41C3810A.4070601@gnu.org> Date: Sat, 18 Dec 2004 01:03:00 -0000 From: Andrew Cagney User-Agent: Mozilla Thunderbird 0.8 (X11/20041020) MIME-Version: 1.0 To: "Alexiev, Dobrin" Cc: gdb@sources.redhat.com Subject: Re: Registry Group References: In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-SW-Source: 2004-12/txt/msg00099.txt.bz2 Alexiev, Dobrin wrote: > I am working with the Eclipse C Development Tools community to add a > feature that will group registers in the Register View of Eclipse. > > Since embedded CPUs have lots of peripheral registers (50-100+) it is > getting a burden for the developer to keep scrolling the registry view > to find the right register. A grouping will make the user experience way > better. > > Since the IDE is relying on the GDB for most of the device information I > was wandering if there is a similar MI/GDB command to obtain the name of > the groups and their registers association. > > In our product we added such command "-data-list-register-groups". The > syntax of the command is: > -data-list-register-groups > ^done,register-groups=[{name="r0",group="GRP1"},{name="r8",group="GRP2"} > ] Sure! have you looked at the output from: (gdb) maint print register-groups as it should make a good starting point. I suspect that the output should be more like: ...{name="r0",groups=["grp1","grp2",...]},... (the MI syntax police will quickly point out the exact syntax :-). Andrew (I don't see anything on file for TI, I'll send you something off line. Nothing to stop you sorting out the spec though). > It is created similar to "-data-list-register-names". > > I found opened enhancement request for this - "850 - Missing MI > interface to register groups". In case that is not implemented we can > offer to submit patch for GDB that will support this command. > > Any other ideas will be appreciated. > Thanks > > Dobrin Alexiev > Texas Instruments > >