From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.ciao.gmane.io!not-for-mail From: Yuan Fu Newsgroups: gmane.emacs.devel Subject: Re: Extend gdb to filter registers Date: Fri, 31 Jan 2020 10:25:34 -0500 Message-ID: References: <878spmuerf.fsf@mail.linkov.net> <83wod3bx8i.fsf@gnu.org> <9f5ddaa5-0234-a17b-bdd7-81d70a0a50d6@gmx.at> <83FFF194-64CD-409E-8B7A-5A9DF91E79DE@gmail.com> <83v9pb314t.fsf@gnu.org> <838sm510d6.fsf@gnu.org> <83muakzoy5.fsf@gnu.org> <71042c9f-478b-47c8-f27e-1348e9f4536d@gmx.at> <83iml8zkbm.fsf@gnu.org> <6ad85759-7408-f177-38f6-45a72c2f5a9e@gmx.at> <83eevwzi79.fsf@gnu.org> <68ef651e-9319-b392-af1c-4564d5db9112@gmx.at> <831rrvzc81.fsf@gnu.org> <997C9AD2-D8DD-45DC-9195-28FEC907B2C4@gmail.com> <83muajxs04.fsf@gnu.org> <416593FF-C4BE-478F-B5AC-3379235146ED@gmail.com> <83lfq3xp66.fsf@gnu.org> <679953AF-F50A-4ABE-B836-150BA0F95DAE@gmail.com> <83h80rxlae.fsf@gnu.org> <8A5A507A-6036-4894-A8B1-749109EBE605@gmail.com> <83wo9mvwco.fsf@gnu.org> <2BEA3843-859E-481B-8561-35384438EF7F@gmail.com> <83lfpxs4sl.fsf@gnu.org> <83zhecoseo.fsf@gnu.org> <6AC6E78C-69C2-400C-902E-CCB32E296887@gmail.com> <83blqjlobu.fsf@gnu.org> Mime-Version: 1.0 (Mac OS X Mail 13.0 \(3608.40.2.2.4\)) Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Injection-Info: ciao.gmane.io; posting-host="ciao.gmane.io:159.69.161.202"; logging-data="3362"; mail-complaints-to="usenet@ciao.gmane.io" Cc: rudalics@gmx.at, emacs-devel@gnu.org, monnier@iro.umontreal.ca, john@yates-sheets.org, juri@linkov.net To: Eli Zaretskii Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Fri Jan 31 17:04:57 2020 Return-path: Envelope-to: ged-emacs-devel@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1ixYmv-0000gn-KS for ged-emacs-devel@m.gmane-mx.org; Fri, 31 Jan 2020 17:04:57 +0100 Original-Received: from localhost ([::1]:55338 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1ixYmu-0004D2-Kl for ged-emacs-devel@m.gmane-mx.org; Fri, 31 Jan 2020 11:04:56 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:47725) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1ixYAy-0005Z3-Cr for emacs-devel@gnu.org; Fri, 31 Jan 2020 10:25:46 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ixYAw-0003gC-2i for emacs-devel@gnu.org; Fri, 31 Jan 2020 10:25:44 -0500 Original-Received: from mail-qt1-x835.google.com ([2607:f8b0:4864:20::835]:45754) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1ixYAu-0003Ct-5e; Fri, 31 Jan 2020 10:25:40 -0500 Original-Received: by mail-qt1-x835.google.com with SMTP id d9so5629625qte.12; Fri, 31 Jan 2020 07:25:39 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:subject:from:in-reply-to:date:cc :content-transfer-encoding:message-id:references:to; bh=9E16hLSBQEYi49icjOmvM5gBPx8N+dMx/IqoQPaOAuo=; b=Zg+fjr6O+MetcT3qjDBoeYkvfvzA/nXutgWlO/X/gNSa8oe3rG2Gxb75ayngvm+7u8 GGKQk6NKr1xGYmK7HEDDzzr3BJeOGydaU1F4pMridpbWC/MD0XstBg3FBVAa4gicFXjj 5xbCWik+GRCy9N8cLoDpNlIgTI0r3cby6NyC97Fsf4yKXwvBt/jGuhZojpZaOdWGeyCl +kYHJMEkA3MhA5EwBkDKYfXtM3HoSQQFONItgdXSy4T1ODwg0hq827IG2w6/Yl1NSCaa OvWJKBUYLOaMpn4WPbzVBIg5IIPOEoYx/tSIM5zT8K/JJs0OJ9qNm9RrqqHuA9A/Zo+j ezjA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:subject:from:in-reply-to:date:cc :content-transfer-encoding:message-id:references:to; bh=9E16hLSBQEYi49icjOmvM5gBPx8N+dMx/IqoQPaOAuo=; b=ZapCuANNkMDkDe2ocpPSqxlpFQ3v6cHoOyu05AIDArSQQkWlLuP1KgIxjkCHjvZ3LZ IqVCDHp9lnEw3u8EA+pe7LbD/+uY1mRWXSdnCD+nEsuZk+biFIPnguD2wIYYZf0ZGZDw GaI8YdJM+vUu7s2I5r+ZMHsBRPwH07zjSVv9mxIbZxOVmSU+4lKzR88jDu/zNu/rZJh7 BP5o7I7E/i6EBj/+VB1C227PBYjGC+o7MaLNGx3O4yvO/BRpRBETdQoC7fj3TRr86p0L N4vJe6BN6wDdTYAWYg57hB/s6H+sdJr4lCwT5C428xtDVazyArvuDlmK5x33ZE9+QC/p /YGQ== X-Gm-Message-State: APjAAAVQ32CCb1mcJEsPa3EpauBlyBH4rLd58eq1vBA3YOdTq8hH9wfF pzZiJ+3oV/XZSH7F2962zo+hH4lrkkUQfOnL X-Google-Smtp-Source: APXvYqwuOpSNwq1GittprcwaXbHz6ArMW3wtuvwrWc3Foetf5eDk7Su9uBI1WuTcmYEK830EuOHaSw== X-Received: by 2002:ac8:4e43:: with SMTP id e3mr11376196qtw.129.1580484338942; Fri, 31 Jan 2020 07:25:38 -0800 (PST) Original-Received: from [104.39.32.185] ([104.39.32.185]) by smtp.gmail.com with ESMTPSA id z1sm4846119qtq.69.2020.01.31.07.25.37 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 31 Jan 2020 07:25:38 -0800 (PST) In-Reply-To: <83blqjlobu.fsf@gnu.org> X-Mailer: Apple Mail (2.3608.40.2.2.4) X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 2607:f8b0:4864:20::835 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Original-Sender: "Emacs-devel" Xref: news.gmane.io gmane.emacs.devel:244791 Archived-At: > On Jan 31, 2020, at 8:58 AM, Eli Zaretskii wrote: >=20 >> From: Yuan Fu >> Date: Sat, 25 Jan 2020 17:34:13 -0500 >> Cc: rudalics@gmx.at, >> juri@linkov.net, >> emacs-devel@gnu.org, >> monnier@iro.umontreal.ca, >> john@yates-sheets.org >>=20 >>> No, the usual complaint is that gdb-mi messes up windows during the >>> debugging session itself. E.g., if you had several source files >>> displayed in carefully configured windows on a frame, starting >>> "M-x gdb" will typically mess up your window configuration on that >>> frame. Using a separate frame works around that. >>=20 >>>> That=E2=80=99s not hard to fix since we >>>> have window-configurations now. I have a patch that makes gdb = preserves window configuration that the user >>>> had prior to starting gdb. >>>=20 >>> That could be another way, but running a debugging session usually >>> benefits from maximizing the frame. Will your patch undo that as = well? >>=20 >> No, I simply save the window configuration at gdb start up by = `window-state-get` and restores it when gdb quits. If gdb doesn=E2=80=99t = maximize the frame, it shouldn=E2=80=99t un-maximize the frame after it = quits either. If you want to make gdb maximize the frame by default, = then gdb should un-maximize the frame after it quits. What I want to say = is, who makes the change, who is responsible for it. >=20 > But we already have gdb-restore-windows, so it sounds like users > already can restore their window configuration. Why do we need > anything else? Hmmm, which window configuration are you referring to? = gdb-restore-windows restores the window configuration you have after M-x = gdb, not the one before M-x gdb. I want gdb to restore the latter after = it quits. Yuan=