From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED.blaine.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.help Subject: Re: Using gdb (windows popping up) Date: Mon, 10 Jun 2019 18:44:47 +0300 Message-ID: <835zpdbg28.fsf@gnu.org> References: <20190609115246.41281b50@mistral> <83ftoibofg.fsf@gnu.org> <20190609145921.0fc60f3c@mistral> <83ef42bmij.fsf@gnu.org> <20190609152705.705c806b@mistral> <20190609154856.7d20feea@mistral> <20190609171036.18a89cb0@mistral> <87tvcymlba.fsf@telefonica.net> <20190610093324.2c71fc44@mistral> <87a7eptv1a.fsf@telefonica.net> <20190610100045.61c22fe0@mistral> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Injection-Info: blaine.gmane.org; posting-host="blaine.gmane.org:195.159.176.226"; logging-data="182668"; 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 Mon Jun 10 17:45:15 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 1haMTz-000lMN-93 for geh-help-gnu-emacs@m.gmane.org; Mon, 10 Jun 2019 17:45:15 +0200 Original-Received: from localhost ([::1]:47806 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.86_2) (envelope-from ) id 1haMTx-0006bO-N2 for geh-help-gnu-emacs@m.gmane.org; Mon, 10 Jun 2019 11:45:13 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:53263) by lists.gnu.org with esmtp (Exim 4.86_2) (envelope-from ) id 1haMTb-0006bC-Ie for help-gnu-emacs@gnu.org; Mon, 10 Jun 2019 11:44:52 -0400 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]:53099) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1haMTb-0003F8-Db for help-gnu-emacs@gnu.org; Mon, 10 Jun 2019 11:44:51 -0400 Original-Received: from [176.228.60.248] (port=3247 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1haMTa-0000Ct-Kt for help-gnu-emacs@gnu.org; Mon, 10 Jun 2019 11:44:51 -0400 In-reply-to: <20190610100045.61c22fe0@mistral> (message from jonetsu on Mon, 10 Jun 2019 10:00:45 -0400) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] 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:120895 Archived-At: > Date: Mon, 10 Jun 2019 10:00:45 -0400 > From: jonetsu > > On Mon, 10 Jun 2019 15:44:01 +0200 > Óscar Fuentes wrote: > > > Even if what you see is everything that counts for you, the definition > > of "instance" that you use is not correct, because you can change what > > you see on frame1 while operating from frame2. > > Of course, it can be re-ordered. The thing is, though, is this overhead > worthwhile to do at the beginning of each debugging session ? What are > the benefits towards the work being done ? One again, the GDB UI was _designed_ to work in dedicated windows, something that few Emacs features do. I suggest not to fight that, but instead find a way of coexisting peacefully with that design. One way of coexisting peacefully is to invoke "M-x gdb" in a new frame. That is, first type "C-x 5 2" to create a new frame, then invoke "M-x gdb" in that new frame. This way, your window arrangement in the original frame will be left intact. Switching to that original frame is easy both with a mouse and via keyboard, so this is what the Emacs manual recommends. > Especially in the light that the M-x gdb session actually starts with > the gdb interactive buffer and source /automatically/ placed > side-by-side by emacs. ... Only to be disrupted with the source thrown > into another frame as soon as the debugging session starts. You can save the customization of gdb-many-windows with a non-nil value for your future sessions, in which case Emacs will start with all the UI windows right after you invoke "M-x gdb", thus avoiding this temporary "disruption" altogether.