From: nickrob@snap.net.nz (Nick Roberts)
To: Eli Zaretskii <eliz@gnu.org>
Cc: emacs-devel@gnu.org, Miles Bader <miles@gnu.org>
Subject: Re: other weird gdb-mi problems
Date: Thu, 27 Aug 2009 11:27:17 +1200 [thread overview]
Message-ID: <19093.50389.972379.110708@totara.tehura.co.nz> (raw)
In-Reply-To: <83vdkacx2k.fsf@gnu.org>
> > ... wait a minute... why am I still at frame 1?!
> > "down" is similarly weird:
> >
> > (gdb) down
> > Bottom (innermost) frame selected; you cannot go down.
>
> Does this work correctly outside Emacs? (Sorry for asking such
> obvious questions, but I thought it could be some genuine GDB problem
> with inlined functions.)
It's an Emacs problem. The CLI commands "up" and "down", don't emit any
GDB/MI notifications so Emacs doen't know that the display needs updating. It
could check the selected frame after every command but that seems inefficient.
I have proposed using notifications for changes in state in the past on the
GDB mailing list, e.g.,
http://sourceware.org/ml/gdb-patches/2008-04/msg00377.html but there hasn't
been much interest. I think this is because many frontends don't use a
console like the GUD buffer.
--
Nick http://www.inet.net.nz/~nickrob
next prev parent reply other threads:[~2009-08-26 23:27 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-08-26 7:49 other weird gdb-mi problems Miles Bader
2009-08-26 17:19 ` Eli Zaretskii
2009-08-26 23:27 ` Nick Roberts [this message]
2009-08-27 1:49 ` Miles Bader
2009-08-27 1:50 ` Miles Bader
2009-08-27 4:52 ` Nick Roberts
2009-08-27 9:42 ` Miles Bader
2009-08-28 3:05 ` Nick Roberts
2009-08-27 13:57 ` Dmitry Dzhus
2009-08-27 23:36 ` 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
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=19093.50389.972379.110708@totara.tehura.co.nz \
--to=nickrob@snap.net.nz \
--cc=eliz@gnu.org \
--cc=emacs-devel@gnu.org \
--cc=miles@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.
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/emacs.git
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).