From: Miles Bader <miles@gnu.org>
To: Nick Roberts <nickrob@snap.net.nz>
Cc: David Hansen <david.hansen@gmx.net>, emacs-devel@gnu.org
Subject: Re: gdb-ui, dedicated windows
Date: Tue, 15 Jul 2008 22:37:02 +0900 [thread overview]
Message-ID: <buo7ibns1z5.fsf@dhapc248.dev.necel.com> (raw)
In-Reply-To: <18548.38718.630083.307385@kahikatea.snap.net.nz> (Nick Roberts's message of "Wed, 9 Jul 2008 22:47:26 +1200")
Nick Roberts <nickrob@snap.net.nz> writes:
> > A possible fix would be to store the buffer gdb puts in that window,
> > and when deciding whether to re-use that window or, also verify that the
> > same buffer is there (and don't re-use the window if not).
>
> gdb-ui _does_ store the (source) buffer it puts in the window. That's why when
> you replace it with the GUD buffer using switch-to-buffer (not part of gdb-ui)
> it gets confused.
>
> It could verify that the same buffer is there but the contents of the source
> window change every time the program being debugged stops in a frame that is in
> a different file and gdb-ui must allow for this.
Why is this a problem? In such cases, the source buffer should get
changed via gdb-display-source-buffer, which will update the associated
source-file, right?
In other words, it seems that as long as gud is the one doing the
updating of the source window, everything will remain consistent, and it
will keep using that window. It would only be if some external agent
changes what's displayed in that window that the state would become
inconsistent -- and in that case, it's probably the right thing to do to
pop up a new window (which will become the new source window).
Anyway, I can make the obvious change and see if it feels funny.
-Miles
--
Optimist, n. A proponent of the doctrine that black is white.
next prev parent reply other threads:[~2008-07-15 13:37 UTC|newest]
Thread overview: 24+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-07-05 7:58 gdb-ui, dedicated windows David Hansen
2008-07-05 10:02 ` Nick Roberts
2008-07-05 10:52 ` David Hansen
2008-07-07 4:38 ` Nick Roberts
2008-07-08 7:06 ` Miles Bader
2008-07-08 7:18 ` Miles Bader
2008-07-08 23:39 ` Nick Roberts
2008-07-08 23:46 ` Miles Bader
2008-07-09 10:47 ` Nick Roberts
2008-07-15 13:37 ` Miles Bader [this message]
2008-07-15 21:50 ` Nick Roberts
2008-07-15 23:43 ` Miles Bader
2008-07-05 14:04 ` Miles Bader
2008-07-05 16:11 ` Tom Tromey
2008-07-07 5:20 ` Nick Roberts
2008-07-07 14:40 ` Tom Tromey
2008-07-07 16:14 ` tomas
2008-07-07 19:33 ` David Hansen
2008-07-07 19:47 ` Lennart Borgman (gmail)
2008-07-07 20:01 ` Tom Tromey
2008-07-07 20:09 ` Lennart Borgman (gmail)
2008-07-07 23:11 ` Stephen J. Turnbull
2008-07-07 23:03 ` Lennart Borgman (gmail)
2008-07-08 16:02 ` James Cloos
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=buo7ibns1z5.fsf@dhapc248.dev.necel.com \
--to=miles@gnu.org \
--cc=david.hansen@gmx.net \
--cc=emacs-devel@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.