From: Tom Tromey <tromey@redhat.com>
To: Nick Roberts <nickrob@snap.net.nz>
Cc: emacs-pretest-bug@gnu.org
Subject: Re: gdba locals buffer does not show function arguments
Date: Thu, 20 Sep 2007 10:01:20 -0600 [thread overview]
Message-ID: <m33ax98gxa.fsf@fleche.redhat.com> (raw)
In-Reply-To: <18162.22131.415529.319655@kahikatea.snap.net.nz> (Nick Roberts's message of "Thu\, 20 Sep 2007 23\:16\:03 +1200")
>>>>> "Nick" == Nick Roberts <nickrob@snap.net.nz> writes:
>> I was debugging using gdba today and found that the "locals" buffer
>> does not show the arguments to the current function.
Nick> Yes, but they are shown in the stack buffer with their value
Nick> (although the type isn't given). This is due to the underlyng
Nick> GDB CLI command "info stack". The "locals" buffer currently
Nick> uses the output of "info locals". The output of "info args"
Nick> could also be used but that would result in duplication.
Yeah, I did notice the info in the stack window. I found that harder
to read, though. The locals window is more nicely formatted. Also,
lines in the stack window are truncated; so if you have a long
function name, some values may be hidden.
I don't understand why gdb differentiates between locals and
arguments. And I don't think that Emacs necessarily has to follow
this distinction.
Tom
next prev parent reply other threads:[~2007-09-20 16:01 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-09-19 16:17 gdba locals buffer does not show function arguments Tom Tromey
2007-09-20 11:16 ` Nick Roberts
2007-09-20 16:01 ` Tom Tromey [this message]
2007-09-21 7:38 ` Nick Roberts
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=m33ax98gxa.fsf@fleche.redhat.com \
--to=tromey@redhat.com \
--cc=emacs-pretest-bug@gnu.org \
--cc=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.