From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Nick Roberts Newsgroups: gmane.emacs.help Subject: Re: Objective-C and gdb-ui Date: Fri, 19 Oct 2007 17:36:14 +1300 Message-ID: <18200.13374.67162.520304@kahikatea.snap.net.nz> References: NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1192768607 22827 80.91.229.12 (19 Oct 2007 04:36:47 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 19 Oct 2007 04:36:47 +0000 (UTC) Cc: help-gnu-emacs@gnu.org To: Yakov Zaytsev Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Fri Oct 19 06:36:47 2007 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1IijbJ-0000zQ-OE for geh-help-gnu-emacs@m.gmane.org; Fri, 19 Oct 2007 06:36:46 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1IijbC-00074l-E1 for geh-help-gnu-emacs@m.gmane.org; Fri, 19 Oct 2007 00:36:38 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1Iijaz-00074T-45 for help-gnu-emacs@gnu.org; Fri, 19 Oct 2007 00:36:25 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1Iijax-00074E-LK for help-gnu-emacs@gnu.org; Fri, 19 Oct 2007 00:36:24 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Iijax-00074B-F9 for help-gnu-emacs@gnu.org; Fri, 19 Oct 2007 00:36:23 -0400 Original-Received: from viper.snap.net.nz ([202.37.101.8]) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1Iijaw-0001IU-Od for help-gnu-emacs@gnu.org; Fri, 19 Oct 2007 00:36:23 -0400 Original-Received: from kahikatea.snap.net.nz (239.62.255.123.dynamic.snap.net.nz [123.255.62.239]) by viper.snap.net.nz (Postfix) with ESMTP id 4A8133D9CEB; Fri, 19 Oct 2007 17:36:17 +1300 (NZDT) Original-Received: by kahikatea.snap.net.nz (Postfix, from userid 1000) id 5B8548FC6D; Fri, 19 Oct 2007 17:36:15 +1300 (NZDT) Original-Newsgroups: gnu.emacs.help In-Reply-To: X-Mailer: VM 7.19 under Emacs 23.0.50.27 X-detected-kernel: by monty-python.gnu.org: Linux 2.4-2.6 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:48545 Archived-At: > I wonder if anybody programming in ObjC already have support > for the following things in > *locals of * window > - Print of NSString as string of chars instead of address only > - Pretty print of collections, e.g. I want to be able to query > collection size, specific elems and edit memory of the elements > (basically NSValue) from the *locals * window.. I've never programmed in ObjC. I see that GDB can be used to debug Objective-C (assuming this is the same language). I don't know how data structures are printed but Emacs currently displays them in the speedbar. It uses a feature of GDB called "variable objects". These are described in the GDB info manual under the node GDB/MI. The relevant file for this in GDB is varobj.c, but inspection of this file shows that unlike C++ and Java, Objective-C isn't treated specially but as for C. > If none has it, then I'll start hacking gdb-ui.el by myself.. That would be great but you might need to make changes to GDB too. Also eventually I would like to display watch expressions using tree-widget.el rather than the speedbar as the icons are more suitable and the timer functions of the speedbar aren't needed/wanted by gdb-ui.el > Just want prevent myself from doing monkey job Please post to emacs-devel@gnu.org when you need help. -- Nick http://www.inet.net.nz/~nickrob