From: "Paulo J. Matos" <pocm@soton.ac.uk>
To: help-gnu-emacs@gnu.org
Subject: Displaying arrays in GUD
Date: Sat, 7 Apr 2007 18:43:01 +0100 [thread overview]
Message-ID: <11b141710704071043y23c389a1w9bd3660f30c13586@mail.gmail.com> (raw)
Hello,
I'm running GUD with gdb and I'd like to know what's the best way to
display an array of int*.
I have int *foo which I would like to display, when I click on it I
only get *foo. I understand that since the array size is not known, it
cannot display anything else, but is there a way to explicitly ask for
foo[1], foo[2]... etc?
More over, I have a global state variable db which is a * to a struct.
How can I ask GUD to show it to me? I tried watch but it seems to show
the contents of the struct only after it is modified.
Cheers,
--
Paulo Jorge Matos - pocm at soton.ac.uk
http://www.personal.soton.ac.uk/pocm
PhD Student @ ECS
University of Southampton, UK
next reply other threads:[~2007-04-07 17:43 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-04-07 17:43 Paulo J. Matos [this message]
[not found] <mailman.1831.1175968009.7795.help-gnu-emacs@gnu.org>
2007-04-09 6:38 ` Displaying arrays in GUD Brian Elmegaard
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
List information: https://www.gnu.org/software/emacs/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=11b141710704071043y23c389a1w9bd3660f30c13586@mail.gmail.com \
--to=pocm@soton.ac.uk \
--cc=help-gnu-emacs@gnu.org \
/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.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).