From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.bugs Subject: bug#30044: Emacs: Gud-mode: Debugging with gud: Window switching problem Date: Tue, 09 Jan 2018 20:44:01 +0200 Message-ID: <83y3l66ff2.fsf@gnu.org> References: <20180109123311.klciuvflkdgm23pf@clausfischer.com> Reply-To: Eli Zaretskii NNTP-Posting-Host: blaine.gmane.org X-Trace: blaine.gmane.org 1515523536 23953 195.159.176.226 (9 Jan 2018 18:45:36 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Tue, 9 Jan 2018 18:45:36 +0000 (UTC) Cc: 30044@debbugs.gnu.org To: Claus Fischer Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Tue Jan 09 19:45:32 2018 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1eYytn-0005QU-7g for geb-bug-gnu-emacs@m.gmane.org; Tue, 09 Jan 2018 19:45:23 +0100 Original-Received: from localhost ([::1]:40272 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1eYyvm-00026M-Ln for geb-bug-gnu-emacs@m.gmane.org; Tue, 09 Jan 2018 13:47:26 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:40469) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1eYyuY-0001os-P2 for bug-gnu-emacs@gnu.org; Tue, 09 Jan 2018 13:47:20 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1eYytS-0000kX-6s for bug-gnu-emacs@gnu.org; Tue, 09 Jan 2018 13:46:10 -0500 Original-Received: from debbugs.gnu.org ([208.118.235.43]:41982) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1eYytR-0000kH-Vy for bug-gnu-emacs@gnu.org; Tue, 09 Jan 2018 13:45:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1eYytR-0003LB-OB for bug-gnu-emacs@gnu.org; Tue, 09 Jan 2018 13:45:01 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Tue, 09 Jan 2018 18:45:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 30044 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 30044-submit@debbugs.gnu.org id=B30044.151552346312785 (code B ref 30044); Tue, 09 Jan 2018 18:45:01 +0000 Original-Received: (at 30044) by debbugs.gnu.org; 9 Jan 2018 18:44:23 +0000 Original-Received: from localhost ([127.0.0.1]:49879 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1eYysp-0003K9-8z for submit@debbugs.gnu.org; Tue, 09 Jan 2018 13:44:23 -0500 Original-Received: from eggs.gnu.org ([208.118.235.92]:48280) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1eYysn-0003Jx-IP for 30044@debbugs.gnu.org; Tue, 09 Jan 2018 13:44:21 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1eYysc-000057-Aw for 30044@debbugs.gnu.org; Tue, 09 Jan 2018 13:44:16 -0500 Original-Received: from fencepost.gnu.org ([2001:4830:134:3::e]:33040) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1eYysb-0008W3-Pz; Tue, 09 Jan 2018 13:44:09 -0500 Original-Received: from [176.228.60.248] (port=1368 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1eYysa-0005p6-VH; Tue, 09 Jan 2018 13:44:09 -0500 In-reply-to: <20180109123311.klciuvflkdgm23pf@clausfischer.com> (message from Claus Fischer on Tue, 9 Jan 2018 13:33:11 +0100) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 208.118.235.43 X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.org gmane.emacs.bugs:141942 Archived-At: > Date: Tue, 9 Jan 2018 13:33:11 +0100 > From: Claus Fischer > > A few years ago, I filed a bug about debugging unter Emacs with > gud and gdb. > > The problem is that often times when a halt at a breakpoint requires > a source file to load, the source file replaces the *gud-something* > buffer, which is extremely disruptive to the work flow. One expects > to continue typing in gud but finds oneself instead typing into some > source file buffer. How do you invoke GDB? Is it "M-x gdb RET" or "M-x gud-gdb RET"? I suggest to try the former, and if you already do that, try the command "M-x gdb-many-windows RET" after the debugging session starts. I also suggest to start the debugger in a separate frame, and switch to the original frame when you want to work on your windows you had before starting the debugging session.