From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Claus Fischer Newsgroups: gmane.emacs.bugs Subject: bug#30044: Emacs: Gud-mode: Debugging with gud: Window switching problem Date: Tue, 9 Jan 2018 21:58:47 +0100 Message-ID: <20180109205847.7nalpvfhula5ehmz@clausfischer.com> References: <20180109123311.klciuvflkdgm23pf@clausfischer.com> <83y3l66ff2.fsf@gnu.org> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="cbxpzgsbd6axpuov" X-Trace: blaine.gmane.org 1515531452 15089 195.159.176.226 (9 Jan 2018 20:57:32 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Tue, 9 Jan 2018 20:57:32 +0000 (UTC) User-Agent: NeoMutt/20170113 (1.7.2) Cc: 30044@debbugs.gnu.org To: Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Tue Jan 09 21:57:27 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 1eZ0xI-0002bh-HD for geb-bug-gnu-emacs@m.gmane.org; Tue, 09 Jan 2018 21:57:08 +0100 Original-Received: from localhost ([::1]:47608 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1eZ0zI-0002Sk-81 for geb-bug-gnu-emacs@m.gmane.org; Tue, 09 Jan 2018 15:59:12 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:58094) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1eZ0zB-0002SM-4D for bug-gnu-emacs@gnu.org; Tue, 09 Jan 2018 15:59:06 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1eZ0z8-0003ZS-Dt for bug-gnu-emacs@gnu.org; Tue, 09 Jan 2018 15:59:05 -0500 Original-Received: from debbugs.gnu.org ([208.118.235.43]:42094) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1eZ0z8-0003Yx-9n for bug-gnu-emacs@gnu.org; Tue, 09 Jan 2018 15:59:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1eZ0z7-0000sR-Vh for bug-gnu-emacs@gnu.org; Tue, 09 Jan 2018 15:59:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Claus Fischer Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Tue, 09 Jan 2018 20:59: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.15155315313350 (code B ref 30044); Tue, 09 Jan 2018 20:59:01 +0000 Original-Received: (at 30044) by debbugs.gnu.org; 9 Jan 2018 20:58:51 +0000 Original-Received: from localhost ([127.0.0.1]:49991 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1eZ0yw-0000ry-UD for submit@debbugs.gnu.org; Tue, 09 Jan 2018 15:58:51 -0500 Original-Received: from clausfischer.com ([78.46.66.52]:60143) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1eZ0yu-0000ro-SS for 30044@debbugs.gnu.org; Tue, 09 Jan 2018 15:58:49 -0500 Original-Received: from boltzmann.clausfischer.com (localhost.localdomain [127.0.0.1]) by clausfischer.com (Postfix) with ESMTP id 7148F8A0730; Tue, 9 Jan 2018 21:58:47 +0100 (CET) Original-Received: from kepler.clausfischer.com (kepler.clausfischer.com [10.243.1.2]) by boltzmann.clausfischer.com (Postfix) with ESMTP id 5B703680224; Tue, 9 Jan 2018 21:58:47 +0100 (CET) Original-Received: by kepler.clausfischer.com (Postfix, from userid 1000) id 519CD7954F; Tue, 9 Jan 2018 21:58:47 +0100 (CET) Content-Disposition: inline In-Reply-To: <83y3l66ff2.fsf@gnu.org> 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:141947 Archived-At: --cbxpzgsbd6axpuov Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Tue, Jan 09, 2018 at 08:44:01PM +0200, Eli Zaretskii wrote: > > Date: Tue, 9 Jan 2018 13:33:11 +0100 > > From: Claus Fischer > >=20 > > A few years ago, I filed a bug about debugging unter Emacs with > > gud and gdb. > >=20 > > 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. >=20 > 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. I do M-x gud-gdb RET since I found the other not to work as I like; a few years ago, I started it as M-x gdb but then something changed - I don't remember what - and I changed to gud-gdb. What's the difference? I just tried it, I think it's the separate i/o window, isn't it? If so, I'll stick with gud-gdb. I want my debugging session in a single frame, and stdio is not relevant for my programs. I usually have many frames open, but gdb is started in just one, and when it encounters a breakpoint, it splits the frame, and that suits me just fine - except for it sometimes burying the gud window itself. I don't think the behavious depends on there being multiple frames. Is that what you are suggesting? It's hard to reproduce, but it's annoying nevertheless. I do a lot of work in the setting emacs - autoconf - gcc - gdb, and it's generally very productive for work on server code. Best regards, Claus --=20 Claus Fischer http://www.clausfischer.com/ --cbxpzgsbd6axpuov Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iF0EABECAB0WIQSsDMwfnPC53jWSFoqbrLFGHC9EiwUCWlUtBwAKCRCbrLFGHC9E i0RkAJ40N9C2feZFTVmteqlg/32vxO1+ewCdHODHnr+AN385NcgsjKQ8GFrZiVY= =isd6 -----END PGP SIGNATURE----- --cbxpzgsbd6axpuov--