From: Nick Roberts <nickrob@snap.net.nz>
To: Yakov Zaytsev <iakovz@gein.vistech.net>
Cc: help-gnu-emacs@gnu.org
Subject: Re: Objective-C and gdb-ui
Date: Fri, 19 Oct 2007 17:36:14 +1300 [thread overview]
Message-ID: <18200.13374.67162.520304@kahikatea.snap.net.nz> (raw)
In-Reply-To: <m26414y4zo.fsf@gein.vistech.net>
> 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
prev parent reply other threads:[~2007-10-19 4:36 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-10-18 12:36 Objective-C and gdb-ui Yakov Zaytsev
2007-10-19 4:36 ` Nick Roberts [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=18200.13374.67162.520304@kahikatea.snap.net.nz \
--to=nickrob@snap.net.nz \
--cc=help-gnu-emacs@gnu.org \
--cc=iakovz@gein.vistech.net \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.