all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Nick Roberts <nickrob@snap.net.nz>
To: Miles Bader <miles@gnu.org>
Cc: David Hansen <david.hansen@gmx.net>, emacs-devel@gnu.org
Subject: Re: gdb-ui, dedicated windows
Date: Wed, 16 Jul 2008 09:50:38 +1200	[thread overview]
Message-ID: <18557.7086.833515.756352@kahikatea.snap.net.nz> (raw)
In-Reply-To: <buo7ibns1z5.fsf@dhapc248.dev.necel.com>

 > > 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?

It needs to distinguish between cases when it is appropriate to replace the
entire window with one displaying the new file, as described previously
and when it isn't, as in your example.

 > 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.

Sure.  If there are problems it can easily be reverted.  It might be a good
idea to start by not making the windows dedicated then perhaps David Hansen
can say if that cures his use case. 

-- 
Nick                                           http://www.inet.net.nz/~nickrob




  reply	other threads:[~2008-07-15 21:50 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
2008-07-15 21:50                   ` Nick Roberts [this message]
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=18557.7086.833515.756352@kahikatea.snap.net.nz \
    --to=nickrob@snap.net.nz \
    --cc=david.hansen@gmx.net \
    --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 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.