From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 14380 invoked by alias); 27 Jan 2006 16:01:20 -0000 Received: (qmail 14372 invoked by uid 22791); 27 Jan 2006 16:01:19 -0000 X-Spam-Check-By: sourceware.org Received: from main.gmane.org (HELO ciao.gmane.org) (80.91.229.2) by sourceware.org (qpsmtpd/0.31) with ESMTP; Fri, 27 Jan 2006 16:01:17 +0000 Received: from root by ciao.gmane.org with local (Exim 4.43) id 1F2W1a-0007dx-QS for gdb@sources.redhat.com; Fri, 27 Jan 2006 17:00:34 +0100 Received: from zigzag.lvk.cs.msu.su ([158.250.17.23]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Fri, 27 Jan 2006 17:00:34 +0100 Received: from ghost by zigzag.lvk.cs.msu.su with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Fri, 27 Jan 2006 17:00:34 +0100 To: gdb@sources.redhat.com From: Vladimir Prus Subject: Re: MI equivalent for "whatis" Date: Fri, 27 Jan 2006 16:11:00 -0000 Message-ID: References: <20060126164126.GB7113@nevyn.them.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7Bit User-Agent: KNode/0.8.2 X-IsSubscribed: yes Mailing-List: contact gdb-help@sourceware.org; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-owner@sourceware.org X-SW-Source: 2006-01/txt/msg00300.txt.bz2 Daniel Jacobowitz wrote: > On Thu, Jan 26, 2006 at 07:21:47PM +0300, Vladimir Prus wrote: >> >> Is there any MI command that does the same as "whatis". > > What you see in the manual is what you get :-) > >> The "-symbol-type" is not implemented and to use `-var-info-type' I need >> to use "variable-objects", which is too much of refactoring. > > I assume you mean -symbol-list-types. No, exactly "-symbol-type" which is documented as equivalent to "ptype". > Someone could implement that. > But varobj really is the way to go and it wouldn't be hard to do a > special-case of that: > > -var-create OBJ * > -var-info-type OBJ > -var-delete OBJ Thanks, that worked. - Volodya