unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
* Difficulty using M-x gdb
@ 2023-02-01 14:53 Michael Welsh Duggan
  2023-02-01 17:07 ` Eli Zaretskii
  2023-02-03 21:35 ` Konstantin Kharlamov
  0 siblings, 2 replies; 10+ messages in thread
From: Michael Welsh Duggan @ 2023-02-01 14:53 UTC (permalink / raw)
  To: emacs-devel

I have used "M-x gud-gdb" to run gdb for many years.  I used it for
quite a while after the gdb-mi interface was added due to its ability to
debug the same program multiple times at the same time in the same
Emacs.  I don't need that capability right now. 

Due to a bug in `gud-gdb` (#61162) I am trying to switch to "M-x gdb"
instead.  Unfortunately, I can't really figure out how to make this work
in a way that makes sense to me.  `gdb-many-windows` being nil is the
default, and the default should be reasonably easy to use (one would
hope), but I am having the following problem:

When I step through a program, the interface keeps track of where I am
in the source buffer.  But, when the program produces output, it
replaces the source buffer window with an input/output buffer window
which is dedicated.  The only way I have found out to display the source
buffer again is to use "M-x gdb-restore-windows".  In code that is doing
a fair amount of output, this is very tedious.

What is right way to handle this?  If it requires customization, why is
customization needed to make this fairly common case work well?  Is
there a way to make output go the interaction buffer?  Maybe most
importantly, this input/output buffer/window doesn't seem to be
mentioned in the Emacs documentation at all.

I have my suspicions that, once I get used to the new interface, I might
like using it, but right now I'm having difficulty figuring out what
habits I need to relearn.

-- 
Michael Welsh Duggan
(md5i@md5i.com)



^ permalink raw reply	[flat|nested] 10+ messages in thread

end of thread, other threads:[~2023-02-06 23:23 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-02-01 14:53 Difficulty using M-x gdb Michael Welsh Duggan
2023-02-01 17:07 ` Eli Zaretskii
2023-02-01 23:18   ` Yuan Fu
2023-02-01 23:53     ` Dmitry Gutov
2023-02-02  0:18       ` Dmitry Gutov
2023-02-02 18:50   ` Eli Zaretskii
2023-02-05 15:26     ` Madhu
2023-02-05 15:33       ` Eli Zaretskii
2023-02-06 23:23         ` Madhu
2023-02-03 21:35 ` Konstantin Kharlamov

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