From: Nick Roberts <nickrob@snap.net.nz>
Cc: emacs-devel@gnu.org
Subject: Re: GDB startup
Date: Wed, 16 Feb 2005 15:44:59 +1300 [thread overview]
Message-ID: <16914.45995.842708.102420@farnswood.snap.net.nz> (raw)
In-Reply-To: <jwvfyzxnwus.fsf-monnier+emacs@gnu.org>
> Maybe another approach is to limit the buffers that are considered to some
> set of major modes, or to some subtree of the filesystem. But neither seems
> quite practical.
>
> Another alternative could be to handle the files/buffers "slowly", with
> a 0.5s delay between each file/buffer, starting with the buffers that are
> currently visible.
I'm not sure that I like either of these very much but here are other
alternatives. Currently gdb-ui.el uses the GDB command "info source" to find
out if a file is part of the source code of the debug session. There is
another command, "info sources", that lists all the files that are part of the
source code. Unfortunately only recent versions of GDB give the full pathname
for these files, and as it is CLI output the exact syntax might not always be
consistent. However, there is also an MI command,
-file-list-exec-source-files, that provides this information in a way that can
be parsed more simply. This command was added in GDB 6.2, I think.
I have also modified MI commands so that, in Emacs, the locals buffer and
watch expressions in the speedbar display better information more quickly.
These changes were added in version 6.1. GDB get released about two times a
year and the current version is 6.3.
There is a choice to be made before the next release of Emacs:
1) We can use these new features to improve the behaviour/performance of Emacs
with GDB and accept that it won't work with older versions of GDB.
or
2) We can accept the current behaviour/performance so that it works with older
versions of GDB.
As time goes by, 1) becomes more attractive but because there has been no
timeline for its release since the "feature freeze" ten months ago (it might
be next week or it might be next year) I have conservatively followed 2).
Nick
next prev parent reply other threads:[~2005-02-16 2:44 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-02-15 15:53 GDB startup Stefan Monnier
2005-02-15 21:35 ` Nick Roberts
2005-02-16 1:16 ` Stefan Monnier
2005-02-16 2:44 ` Nick Roberts [this message]
2005-02-16 3:06 ` Miles Bader
2005-02-16 14:07 ` Kim F. Storm
2005-02-16 14:39 ` Luc Teirlinck
2005-02-16 14:47 ` Kim F. Storm
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=16914.45995.842708.102420@farnswood.snap.net.nz \
--to=nickrob@snap.net.nz \
--cc=emacs-devel@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 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.