From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED.blaine.gmane.org!not-for-mail From: Fu Yuan Newsgroups: gmane.emacs.devel Subject: Re: Extend gdb to filter registers Date: Fri, 4 Oct 2019 12:13:39 -0400 Message-ID: References: Mime-Version: 1.0 (1.0) Content-Type: multipart/alternative; boundary=Apple-Mail-AA7CF687-1262-45E0-8C36-C12D50718F99 Content-Transfer-Encoding: 7bit Injection-Info: blaine.gmane.org; posting-host="blaine.gmane.org:195.159.176.226"; logging-data="133357"; mail-complaints-to="usenet@blaine.gmane.org" To: Emacs developers Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Fri Oct 04 18:26:24 2019 Return-path: Envelope-to: ged-emacs-devel@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 1iGQPQ-000YXV-9r for ged-emacs-devel@m.gmane.org; Fri, 04 Oct 2019 18:26:24 +0200 Original-Received: from localhost ([::1]:50448 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1iGQPP-0002Lf-3X for ged-emacs-devel@m.gmane.org; Fri, 04 Oct 2019 12:26:23 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:44727) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1iGQDA-0003HS-Lj for emacs-devel@gnu.org; Fri, 04 Oct 2019 12:13:49 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1iGQD8-0003xs-BQ for emacs-devel@gnu.org; Fri, 04 Oct 2019 12:13:44 -0400 Original-Received: from mail-qt1-x835.google.com ([2607:f8b0:4864:20::835]:36331) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1iGQD8-0003xY-79 for emacs-devel@gnu.org; Fri, 04 Oct 2019 12:13:42 -0400 Original-Received: by mail-qt1-x835.google.com with SMTP id o12so9307543qtf.3 for ; Fri, 04 Oct 2019 09:13:42 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:content-transfer-encoding:mime-version:date:subject:message-id :references:in-reply-to:to; bh=/wemphm69ZiZwCZM6b1sLtBVXS7DGa3ihcDXGQDn87A=; b=D6JiyrQwLPvKXNzcdvBz8MfFVX7viRATkTO22a0AImt5arHFEdfY2HtRcKmTjJxndw ZuH8arXX5Zi4pabo/HH6yIcK/iPTvz1dC4psHfk+5EF2tiOZKu9rdE96lO7QXscElDUE JdQ10Y6bgwG44igCGeeAC4FTfiQADHS/z9cxAowkP0ZyiIzGilC35a5x277JvA171HiE lksmw9TpraX0D0vaiYs6Mwp3yd+N2IOYWjbOndI7/gNkNQKtMyzFBcdcF5VIRLK26WEG 64l6jSPCrfYI1x+bFoca/Rgt0RgBTqCNqXDMRnXJKnkyFhPz3KG4D3DBh4nmCmz6CViG EFUg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:content-transfer-encoding:mime-version:date :subject:message-id:references:in-reply-to:to; bh=/wemphm69ZiZwCZM6b1sLtBVXS7DGa3ihcDXGQDn87A=; b=lIXMHF+MLL79Z5XA4k+LQpXJuAf4QXfMcvDR8RKeCvGNx7ouUmxuSH5S+qW99s7ftJ ZNW6WAkonF9vnIp7a1IiXjKrEBRVrmFv5CFXOpWVMYFJG8oSu4fJpJDOFhMEDNmfXp+q fRPKg7GA3O/5lYFdqAkpxLLHr0HGb2StIZO5y6aXx13CNSYGK0g6LQxw0vhy469EYpfP jPdTgK1Ju6kd/u2lWTHDqrZlXi9CSTbdq+4MOziTBIyG9XPqyc66HryGwxxqZY3x9Qy7 wKVmIAufXChU33ZG7af9ZVQ1+tcOg11K10JnDARG+Tjc86PRPWKBN0y01smGi+Y/w/rS yYTw== X-Gm-Message-State: APjAAAWhRrKsm6a5YN2uRuy2G/mSqBHSDYOXPb2YVHSifp+ZABX/h5XR QMX/crf4EdhVMhMc8lck37i3xjdtnzg= X-Google-Smtp-Source: APXvYqxDymUwkGBDYaa7TETHjOFT8OiBupGf1D64ZUKGD/p9aneqCgQL31h/y5eihg+JAwx+BIo24Q== X-Received: by 2002:a05:6214:c4:: with SMTP id f4mr14269558qvs.111.1570205620976; Fri, 04 Oct 2019 09:13:40 -0700 (PDT) Original-Received: from ?IPv6:2607:fb90:6097:fb7f:8008:63a1:de15:7f5f? ([2607:fb90:6097:fb7f:8008:63a1:de15:7f5f]) by smtp.gmail.com with ESMTPSA id e7sm2868604qtb.94.2019.10.04.09.13.40 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 04 Oct 2019 09:13:40 -0700 (PDT) In-Reply-To: X-Mailer: iPhone Mail (16G102) 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.org@gnu.org Original-Sender: "Emacs-devel" Xref: news.gmane.org gmane.emacs.devel:240576 Archived-At: --Apple-Mail-AA7CF687-1262-45E0-8C36-C12D50718F99 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Hi all, I posted this yesterday and no one seems interested. I wonder if there are p= roblems with the post. Anything is welcome, thanks. Yuan > =E5=9C=A8 2019=E5=B9=B410=E6=9C=883=E6=97=A5=EF=BC=8C=E4=B8=8B=E5=8D=8812:= 40=EF=BC=8CYuan Fu =E5=86=99=E9=81=93=EF=BC=9A >=20 > Hi, >=20 > Currently the register buffer of gdb in Emacs displays all the registers. I= t would be nice if we can select some registers and ask gdb to only display t= hese. I added this feature in the following patch. For you convenience I did= n't modify the Emacs source but created a new file so you can just load it a= nd see the effect. >=20 > With the extension we can use `gdb-registers-add-to-display' to add regist= ers to display. And use `gdb-registers-remove-from-display' to remove regist= ers. Please see more details in the docstring. Change will be visible in the= next update, e.g. after "si" in gdb. >=20 > This is just a demo and there are many parts to complete, e.g., naming of i= nteractive commands, change defvar to defcustom, docsting wording, update re= gisters immediatly after `add-to-/remove-from-display', etc. I want to know w= hat do you think before going further.=20 >=20 > Yuan >=20 >=20 > --Apple-Mail-AA7CF687-1262-45E0-8C36-C12D50718F99 Content-Type: text/html; charset=utf-8 Content-Transfer-Encoding: quoted-printable Hi all,

I posted this ye= sterday and no one seems interested. I wonder if there are problems with the= post. Anything is welcome, thanks.

Yuan
<= br>=E5=9C=A8 2019=E5=B9=B410=E6=9C=883=E6=97=A5=EF=BC=8C=E4=B8=8B=E5=8D=8812= :40=EF=BC=8CYuan Fu <casouri@gmail.c= om> =E5=86=99=E9=81=93=EF=BC=9A

Hi,

Currently the register buffer of gdb in Emacs displays= all the registers. It would be nice if we can select some registers and ask= gdb to only display these. I added this feature in the following patch. For= you convenience I didn't modify the Emacs source but created a new file so y= ou can just load it and see the effect.

With the extension we can use `gdb-register= s-add-to-display' to add registers to display. And use `gdb-registers-remove= -from-display' to remove registers. Please see more details in the docstring= . Change will be visible in the next update, e.g. after "si" in gdb.

This is ju= st a demo and there are many parts to complete, e.g., naming of interactive c= ommands, change defvar to defcustom, docsting wording, update registers imme= diatly after `add-to-/remove-from-display', etc. I want to know what d= o you think before going further.

Yuan


<gdb-ext.el= >
= --Apple-Mail-AA7CF687-1262-45E0-8C36-C12D50718F99--