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: Sun, 19 Jan 2020 12:57:58 -0500 Message-ID: <416593FF-C4BE-478F-B5AC-3379235146ED@gmail.com> 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> 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="30994"; 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 Sun Jan 19 18:58:45 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 1itEqS-00081a-Hb for ged-emacs-devel@m.gmane-mx.org; Sun, 19 Jan 2020 18:58:44 +0100 Original-Received: from localhost ([::1]:52246 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1itEqR-0002ye-Jr for ged-emacs-devel@m.gmane-mx.org; Sun, 19 Jan 2020 12:58:43 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:56959) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1itEpo-0002YF-6P for emacs-devel@gnu.org; Sun, 19 Jan 2020 12:58:05 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1itEpm-00036b-6e for emacs-devel@gnu.org; Sun, 19 Jan 2020 12:58:04 -0500 Original-Received: from mail-qt1-x843.google.com ([2607:f8b0:4864:20::843]:41269) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1itEpk-00035y-Jy; Sun, 19 Jan 2020 12:58:00 -0500 Original-Received: by mail-qt1-x843.google.com with SMTP id k40so25919570qtk.8; Sun, 19 Jan 2020 09:58:00 -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=S9i37s4yYXvDMP3MdxMFDOxsE0B1EthaWxGsuu947uU=; b=U54ZSh/w/jbn3/JcYlZOKcDlb+Q/0CspLhs5B/x4afgj3Xsik8ZhtJ937rjQxbM+iD L0IXS9DJ0+7ITndfbEMmoGGGQo5YNBhgzbAMjat9SqVrQkDKh2ivlOdXB2fCcLP8ofsx roqVHGO51LMrg08ClomZ/Qa54Ttqphme+l9hqc73CUK0GBGNDna4/PZDgJ+G7HoW22vW WmpLKLagR5CxE2ukrSRQSpRdCKmUkEq1KXObGJvlxElYLPr8KHNRm9n6HbP4IcD2iJhz A2xuIojAQzFx2EgAf1ALqIWOu3oPPPVkZbMna40CWTRyCOvriY0pwIxQL1KgBpKMRsXl x0XA== 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=S9i37s4yYXvDMP3MdxMFDOxsE0B1EthaWxGsuu947uU=; b=Kh386O8lnPZzDxotSy8pcuYLQRBPJqqvt8oV4coxBqMLR3fkOFwsBeEvCvWqixeg77 WGuEQ8iaMdzXjHM1F/1k6xYoDDT1E+PhC7ozeMlQtvG70GsdpC02L0w3sNHoNK+vWbN+ sXE4rucgcO7Ii2HN7Oq1nSY7fmL3OlHazxy8pKplrsuBd9z9ieDXTMfArNSggZAZZOdi sCsa6Dznqi39dGod9kGFKG/LgEpoeLDvH8ieL2U9/tdgD/se2TZeVUo6qjTE+HFFGUu4 8QBFnFjbmFgf1R36MsWI4SV1AJN/bAVUYb3dlKpoebJ6LZEG5/mt/gZ2kGmpsgEEVm94 P4eA== X-Gm-Message-State: APjAAAViS84toIXLw0YgRClgM5JyR/m0Uxc7WXHUC4ilQbLzSG4Aw24w 4KdKmVVa1kkAPQ7IcJd80gja1agT2SmZG6oz X-Google-Smtp-Source: APXvYqw+Tlu2zoPDP0MWzYilFr/N2pPj8jCFxW87QZjS2w9tFuYtOl1xCVwbJCN0amdaHI3gJgPoQQ== X-Received: by 2002:aed:3f32:: with SMTP id p47mr17388173qtf.374.1579456679769; Sun, 19 Jan 2020 09:57:59 -0800 (PST) Original-Received: from [192.168.1.5] (c-174-60-229-153.hsd1.pa.comcast.net. [174.60.229.153]) by smtp.gmail.com with ESMTPSA id v24sm16201156qtq.14.2020.01.19.09.57.58 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sun, 19 Jan 2020 09:57:59 -0800 (PST) In-Reply-To: <83muajxs04.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::843 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:244386 Archived-At: > Frankly, given Martin's input, I don't understand how will that solve > the problem, because display-buffer is still being called, and so it > could under some circumstances still decide to create a new window. >=20 > Am I missing something? The issue I=E2=80=99m having is that, under normal circumstances, which = means there exists a source window, I expect gdb-mi to always reuse that = source window (and not create new ones); however gdb-mi doesn=E2=80=99t = do that when stepping.=20 Note that in `gdb-goto-breakpoint`, `display-buffer` doesn=E2=80=99t run = if `gdb-display-source-buffer` can find a source window. The reason that `gdb-goto-breakpoint` does the right thing is because it = tries `gdb-display-source-buffer` first, and only use `display-buffer` = if `gdb-display-source-buffer` fails (can=E2=80=99t find a source = window). Yuan=