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 14:35:49 -0500 Message-ID: <679953AF-F50A-4ABE-B836-150BA0F95DAE@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> <416593FF-C4BE-478F-B5AC-3379235146ED@gmail.com> <83lfq3xp66.fsf@gnu.org> Mime-Version: 1.0 (Mac OS X Mail 13.0 \(3608.40.2.2.4\)) Content-Type: multipart/alternative; boundary="Apple-Mail=_47AD13AF-78EF-4388-AC80-7BA9E8B2A008" Injection-Info: ciao.gmane.io; posting-host="ciao.gmane.io:159.69.161.202"; logging-data="29327"; mail-complaints-to="usenet@ciao.gmane.io" Cc: martin rudalics , emacs-devel@gnu.org, monnier@iro.umontreal.ca, john@yates-sheets.org, Juri Linkov To: Eli Zaretskii Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Sun Jan 19 20:36:38 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 1itGNB-0007aS-Ps for ged-emacs-devel@m.gmane-mx.org; Sun, 19 Jan 2020 20:36:37 +0100 Original-Received: from localhost ([::1]:53102 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1itGNA-0005Fb-Re for ged-emacs-devel@m.gmane-mx.org; Sun, 19 Jan 2020 14:36:36 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:38142) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1itGMX-0004pc-W4 for emacs-devel@gnu.org; Sun, 19 Jan 2020 14:35:59 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1itGMX-0004bp-21 for emacs-devel@gnu.org; Sun, 19 Jan 2020 14:35:57 -0500 Original-Received: from mail-qv1-xf36.google.com ([2607:f8b0:4864:20::f36]:35729) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1itGMS-0004aL-EZ; Sun, 19 Jan 2020 14:35:52 -0500 Original-Received: by mail-qv1-xf36.google.com with SMTP id u10so13112598qvi.2; Sun, 19 Jan 2020 11:35:52 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:message-id:mime-version:subject:date:in-reply-to:cc:to :references; bh=Iwjn3XDPN7RPcMGx5Lh6wwYIBrsxoezyKxzoloORiR4=; b=cQaKkhBMZCmQG++XbVchmIse84q2bwTRj9AujPs6To7hK0AZGEQml+WMuFkmJEhFPc IVP1SV5oRua3ajfHrK6SqzhZxeKDO3CDpNrcvVwCTAGP/KY1tlf/ROIgSY0RiuGyK8kT pM1gQ1hHBVmt9bmL0rLDTRyDZVUYGt2hZWB0bT6dG63a1IPTI0291ecQ3DV1FLYfsHEX cm65WYdfnqdSB/ZjyZOfSNVuOY7NHOBIwiKRoW1PG6TBGzRttCxFnacmv7rRh9OlvGUG fa0qXIsnTti2PWCplNc819BfqIPGaJl/kymsojfh68VFR/loBubmfDd2i5zAdP9M6Hun k1mQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:message-id:mime-version:subject:date :in-reply-to:cc:to:references; bh=Iwjn3XDPN7RPcMGx5Lh6wwYIBrsxoezyKxzoloORiR4=; b=jZl5h2RPBLGSyQvkFv+f19FafaU6+qlXD5uyZwGWAuDYGdYdldNaGYF/WD26pU3fCM LlIkGJ1b+/6dovozohQaRxoD5BCZywSeL/q81dz6YbB7BHYQcAWO8YPBDaCkfQgKVwl7 7gL6HbXNpC+rgZ3Rurr5GZ+PHhy/efzgAnMP/GiSatZEtrSUUJmbjffoN6F+RWoWSyex hkQOvEXyyFmefaWSk1m0xyescw9zup9U/NoPLLfAP8NSSpcBffskdqea1wuxEUuM++3W 6uPyQx+Wstnwz4xicWnrlhh9Pz8ZTkO1OMIxkVzKqq5yvQ2QMPSxnvfkaoKc/7jh+AT1 tFzQ== X-Gm-Message-State: APjAAAUFGEwsATflXI8MQX6KF/jSkvbMRd3rarOwu0BWwYPhdta54dts fO+5ghJ+mjSk3g03eUJRjRr+9b+oLnGaL6lw X-Google-Smtp-Source: APXvYqzsNH5KIfXB67yCtMgAkrIFfKBycAYvDjmwhl//80xtcVNixbtrj2zq76Lpd6g5wXktM9sBTQ== X-Received: by 2002:a05:6214:b90:: with SMTP id fe16mr17799600qvb.83.1579462551579; Sun, 19 Jan 2020 11:35:51 -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 e21sm14774766qkm.55.2020.01.19.11.35.50 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sun, 19 Jan 2020 11:35:51 -0800 (PST) In-Reply-To: <83lfq3xp66.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::f36 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:244393 Archived-At: --Apple-Mail=_47AD13AF-78EF-4388-AC80-7BA9E8B2A008 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=utf-8 > But do we have any control on whether gdb-display-source-buffer will > find a source window where we want it to? I'm not sure. I don=E2=80=99t quite understand. gdb-display-source-buffer finds source = window when there is one. What do you mean by =E2=80=9Ccontrol=E2=80=9D = and =E2=80=9Cwhere we want it to=E2=80=9D? >> It shouldn't harm to try that. I'd still make it optional - maybe >> someone wants to see the other buffers. >=20 > I tend to agree with the last bit. At the very least I want to fix the inconsistency in gdb-mi =E2=80=94 = goto-breakpoint uses `(or gdb-display-source-buffer display-buffer)` and = gud-display-line uses `display-buffer`. We can modify the display logic = to allow user customization once gdb-mi is consistent within itself. Yuan= --Apple-Mail=_47AD13AF-78EF-4388-AC80-7BA9E8B2A008 Content-Transfer-Encoding: quoted-printable Content-Type: text/html; charset=utf-8
But do we have any control on whether = gdb-display-source-buffer will
find a source window where we want it to?  I'm not = sure.

I = don=E2=80=99t quite understand. gdb-display-source-buffer finds source = window when there is one. What do you mean by =E2=80=9Ccontrol=E2=80=9D = and =E2=80=9Cwhere we want it to=E2=80=9D?

It= shouldn't harm to try that.  I'd still make it optional - maybe
someone wants to see the other buffers.

I tend to agree with the last = bit.

At the very = least I want to fix the inconsistency in gdb-mi =E2=80=94 = goto-breakpoint uses `(or gdb-display-source-buffer display-buffer)` and = gud-display-line uses `display-buffer`. We can modify the display logic = to allow user customization once gdb-mi is consistent within = itself.

Yuan
= --Apple-Mail=_47AD13AF-78EF-4388-AC80-7BA9E8B2A008--