From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED.blaine.gmane.org!not-for-mail From: jonetsu Newsgroups: gmane.emacs.help Subject: Using gdb (windows popping up) Date: Sun, 9 Jun 2019 11:52:46 -0400 Message-ID: <20190609115246.41281b50@mistral> Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Injection-Info: blaine.gmane.org; posting-host="blaine.gmane.org:195.159.176.226"; logging-data="267311"; mail-complaints-to="usenet@blaine.gmane.org" To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Sun Jun 09 17:53:08 2019 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([209.51.188.17]) by blaine.gmane.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.89) (envelope-from ) id 1ha084-0017NU-38 for geh-help-gnu-emacs@m.gmane.org; Sun, 09 Jun 2019 17:53:08 +0200 Original-Received: from localhost ([::1]:36578 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.86_2) (envelope-from ) id 1ha082-0001fa-IP for geh-help-gnu-emacs@m.gmane.org; Sun, 09 Jun 2019 11:53:06 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:44400) by lists.gnu.org with esmtp (Exim 4.86_2) (envelope-from ) id 1ha07m-0001Wk-CP for help-gnu-emacs@gnu.org; Sun, 09 Jun 2019 11:52:51 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ha07l-00076j-5f for help-gnu-emacs@gnu.org; Sun, 09 Jun 2019 11:52:50 -0400 Original-Received: from pmta31.teksavvy.com ([76.10.157.38]:61862) by eggs.gnu.org with esmtps (TLS1.0:RSA_ARCFOUR_SHA1:16) (Exim 4.71) (envelope-from ) id 1ha07l-00076F-0F for help-gnu-emacs@gnu.org; Sun, 09 Jun 2019 11:52:49 -0400 X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: =?us-ascii?q?A2GMXABSKv1c/0Tb1BhlGgEBAQEBHwIBA?= =?us-ascii?q?QEBAwEBAQGBToEoAgEBAQFhR3QMFRKNOIw4AY4gjAUJAQEBIRkBAgEBhDoEgm4?= =?us-ascii?q?kOBMBAwEBAQQBAQEBBAICaSiGDBw7DBg0hg6nVYhjgUYigRACAQEBAQEBhGqHB?= =?us-ascii?q?IE/QIlyhRUEi2OIJZUfCYIRA4FmhACNTScMghmKRzmJdqVbIoFYcBWDKIFjATY?= =?us-ascii?q?XjjwmgTIBBgEBARUIEwUFAQGPLwEB?= X-IPAS-Result: =?us-ascii?q?A2GMXABSKv1c/0Tb1BhlGgEBAQEBHwIBAQEBAwEBAQGBToE?= =?us-ascii?q?oAgEBAQFhR3QMFRKNOIw4AY4gjAUJAQEBIRkBAgEBhDoEgm4kOBMBAwEBAQQBA?= =?us-ascii?q?QEBBAICaSiGDBw7DBg0hg6nVYhjgUYigRACAQEBAQEBhGqHBIE/QIlyhRUEi2O?= =?us-ascii?q?IJZUfCYIRA4FmhACNTScMghmKRzmJdqVbIoFYcBWDKIFjATYXjjwmgTIBBgEBA?= =?us-ascii?q?RUIEwUFAQGPLwEB?= X-IronPort-AV: E=Sophos;i="5.60,571,1549947600"; d="scan'208";a="94772085" Original-Received: from 24-212-219-68.cable.teksavvy.com (HELO mistral) ([24.212.219.68]) by smtp.teksavvy.com with ESMTP; 09 Jun 2019 11:52:46 -0400 X-Mailer: Claws Mail 3.16.0 (GTK+ 2.24.32; x86_64-pc-linux-gnu) X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 76.10.157.38 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Original-Sender: "help-gnu-emacs" Xref: news.gmane.org gmane.emacs.help:120871 Archived-At: Hello, I'm trying to simply get a debug session going on in a minimal way that is, gdb in one buffer (window) and the source in the other buffer (window), both being displayed side by side. Simple enough, and the customize-variable gdb-show-main set to non-nil allows just for this to happen. The gdb session starts (M-x gdb) with on the left gdb and on the right the source. In the source a breakpoint can be placed in the margin. All fine, looks very good... ... until the debugging session starts. At which point emacs decides to create a new whole emacs app/window with the source code in it. It boldly replaces the source window with the debugged app's output window and throws the source into a new emacs instance. But the source code was already displayed and a breakpoint was set in it showing that it is active and linked to gdb. Why do that ? If you really want to show the output window, why not split the gdb window ? Or maybe totally forget about the output window until the user wants it ? Or is there a variable or two to control this ? I read through the documentation and did not find anything so far. I would just like to establish a clean working state with emacs and gdb in which things are not popping up unexpectedly in new instances of emacs. Emacs version is 26.1. Speedbar is not used in this case. Cheers.