From: Nick Roberts <nickrob@snap.net.nz>
Subject: Debugging Emacs with gdba
Date: Fri, 18 Nov 2005 16:36:17 +1300 [thread overview]
Message-ID: <17277.19505.857559.358503@kahikatea.snap.net.nz> (raw)
If you debug Emacs from within Emacs, read on:
I've modified gud-pp to work from the speedbar. So if you watch a structure
e.g a window, you can place the cursor over one of the components, press
p and display its lisp value in the GUD buffer:
Speedbar:
Watch Expressions:
o struct window *
size 1073745994
vec_next struct Lisp_Vector *
frame 140441948
mini_p 137829369
next 153394732
prev 137829369
hchild 137829369
vchild 137829369
parent 137829369
...
GUD buffer:
(gdb)
o.next = #<window 4 on *Minibuf-0*>
(gdb)
It won't work from the tool-bar because that frame takes focus and changes
point to the value in the newly selected window.
Currently it only works on lisp objects which are components of a structure
but I could get it to work on arrays of lisp objects, if they exist in Emacs.
When the cursor is over a value in the speedbar, the tooltip now displays the
data type. Unfortunately for lisp objects it displays "int". It would be
nice if it displayed Lisp_Object. I don't know how to get it to do this,
though.
Nick
next reply other threads:[~2005-11-18 3:36 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-11-18 3:36 Nick Roberts [this message]
2005-11-18 13:20 ` Debugging Emacs with gdba Eli Zaretskii
2005-11-18 22:46 ` Nick Roberts
2005-11-19 10:40 ` Eli Zaretskii
2005-11-19 23:25 ` Richard M. Stallman
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=17277.19505.857559.358503@kahikatea.snap.net.nz \
--to=nickrob@snap.net.nz \
/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.