From: jonetsu <jonetsu@teksavvy.com>
To: help-gnu-emacs@gnu.org
Subject: Re: Using gdb (windows popping up)
Date: Sun, 9 Jun 2019 15:27:05 -0400 [thread overview]
Message-ID: <20190609152705.705c806b@mistral> (raw)
In-Reply-To: <83ef42bmij.fsf@gnu.org>
On Sun, 09 Jun 2019 22:13:08 +0300
Eli Zaretskii <eliz@gnu.org> wrote:
> My personal advice is to start the debugging session with "M-x
> gdb-many-windows", which will open all the UI windows, including I/O.
> I believe in this case the program's output will be inserted into the
> I/O window, and will not usurp any of your other windows.
In the previous approach I took, yesterday, I set gdb-many-windows to
non-nil and immediately experienced that control over where one wants
the buffers to be displayed becomes tense, so to speak. A bit like
fighting with a word processor that insists that paragraphs must be
formatted in one way.
So I now prefer to drop that many windows approach and open up other
gdb windows as need arises. This let me place buffers in a more
reasonable way. Only setting the gdb-show-main variable to non-nil so
that a M-x gdb session starts with two buffers, source and gdb
interactive. Then I can split windows in every which way to show any
other buffer, add a gdb input/output window before it decides on its own
to show one, etc.. This is with sr-speedbar and the lisp snippet I've
shown in this thread.
Yes, I've seen that the manual advises to uses M-x gdb in a distinct
frame. The problem with this is that while debugging I can consult
other non-gdb buffers, sometimes for a while, before doing the next
debugger step. Doing this on Linux switching to a different desktop is
easy, although I still prefer to have one emacs session where all the
files are, and not two of them. The approach I'm using now seems to
support that.
next prev parent reply other threads:[~2019-06-09 19:27 UTC|newest]
Thread overview: 19+ messages / expand[flat|nested] mbox.gz Atom feed top
2019-06-09 15:52 Using gdb (windows popping up) jonetsu
2019-06-09 16:09 ` jonetsu
2019-06-09 16:18 ` jonetsu
2019-06-09 16:58 ` jonetsu
2019-06-09 17:48 ` Óscar Fuentes
2019-06-09 18:31 ` Eli Zaretskii
2019-06-09 18:59 ` jonetsu
2019-06-09 19:13 ` Eli Zaretskii
2019-06-09 19:27 ` jonetsu [this message]
2019-06-09 19:33 ` Noam Postavsky
2019-06-09 19:48 ` jonetsu
2019-06-09 20:15 ` Noam Postavsky
2019-06-09 21:10 ` jonetsu
2019-06-09 22:36 ` Óscar Fuentes
2019-06-10 13:33 ` jonetsu
2019-06-10 13:44 ` Óscar Fuentes
2019-06-10 14:00 ` jonetsu
2019-06-10 15:44 ` Eli Zaretskii
2019-06-10 18:52 ` jonetsu
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=20190609152705.705c806b@mistral \
--to=jonetsu@teksavvy.com \
--cc=help-gnu-emacs@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.
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).