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: Re: Using gdb (windows popping up) Date: Sun, 9 Jun 2019 12:18:23 -0400 Message-ID: <20190609121823.5192ecd2@mistral> References: <20190609115246.41281b50@mistral> <20190609120908.019c5340@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="101741"; 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 18:19:00 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 1ha0X5-000QKg-M4 for geh-help-gnu-emacs@m.gmane.org; Sun, 09 Jun 2019 18:18:59 +0200 Original-Received: from localhost ([::1]:36954 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.86_2) (envelope-from ) id 1ha0X4-00050b-MR for geh-help-gnu-emacs@m.gmane.org; Sun, 09 Jun 2019 12:18:58 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:49902) by lists.gnu.org with esmtp (Exim 4.86_2) (envelope-from ) id 1ha0WY-0004xV-3a for help-gnu-emacs@gnu.org; Sun, 09 Jun 2019 12:18:26 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ha0WX-0002tZ-33 for help-gnu-emacs@gnu.org; Sun, 09 Jun 2019 12:18:26 -0400 Original-Received: from pmta11.teksavvy.com ([76.10.157.34]:45926) by eggs.gnu.org with esmtps (TLS1.0:RSA_ARCFOUR_SHA1:16) (Exim 4.71) (envelope-from ) id 1ha0WW-0002tD-S5 for help-gnu-emacs@gnu.org; Sun, 09 Jun 2019 12:18:24 -0400 X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: =?us-ascii?q?A2HZBgDrMP1c/0Tb1BhlHgEGBwaBZYIRR?= =?us-ascii?q?3QhEiiNEIwDNQGOIIwFCQEBAToBAgEBhDoCAgEBAoJqJDgTAQMBAQEEAQEBAQQ?= =?us-ascii?q?CAmkohUwBBAE6HCgLCAMJGCUPSBmFHg+nU4hjgUYigRKLdIE/QIQjPoURhRUEl?= =?us-ascii?q?AiVHwmCEYFpkU0nDIxgii+lWyKBWHAVgyeQbiYwgQIBBgEBARUIEwUFAQGPLwE?= =?us-ascii?q?B?= X-IPAS-Result: =?us-ascii?q?A2HZBgDrMP1c/0Tb1BhlHgEGBwaBZYIRR3QhEiiNEIwDNQG?= =?us-ascii?q?OIIwFCQEBAToBAgEBhDoCAgEBAoJqJDgTAQMBAQEEAQEBAQQCAmkohUwBBAE6H?= =?us-ascii?q?CgLCAMJGCUPSBmFHg+nU4hjgUYigRKLdIE/QIQjPoURhRUElAiVHwmCEYFpkU0?= =?us-ascii?q?nDIxgii+lWyKBWHAVgyeQbiYwgQIBBgEBARUIEwUFAQGPLwEB?= X-IronPort-AV: E=Sophos;i="5.60,571,1549947600"; d="scan'208";a="96665373" 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 12:18:24 -0400 In-Reply-To: <20190609120908.019c5340@mistral> 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.34 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:120873 Archived-At: On Sun, 9 Jun 2019 12:09:08 -0400 jonetsu wrote: > So this seems to resolve the problem with new instances popping up. ... Until the debugged app outputs something. Then yes, the problem with a new emacs instance popping is solved, but emacs insists on replacing the source code with the output window. At which point, putting the cursor in that output window and selecting the source buffer to be displayed right there where the cursor is (as this is the normal behaviour in emacs) will show the source in the gdb interactive window, tossing it away. Putting away the output window (C-x 0) and selecting the source code buffer, as well as bringing up the gdb interactive window gets back on track ... until the next output is made by the debugged app. At which point another 'dance of the windows' has to be made. The output window was not closed, only toss away (C-x 0) - why not output anything fro the debugged app in there without having to show it and replace the source buffer ? It's a bit of a mess. I'd like to establish a good clean simple base to work with emacs and gdb - is it possible at all ? Reading here and there about similar problem pops up a lot of suggestions, a lot of them. Install this, install that, do this .emacs modification, add this - oh not that doe snot work - then add that instead, etc, etc...