From unknown Wed Sep 10 06:21:07 2025 X-Loop: help-debbugs@gnu.org Subject: bug#39179: 27.0.50; [PATCH] Add filter to gdb-mi register buffer Resent-From: Yuan Fu Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 18 Jan 2020 20:52:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 39179 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: patch To: 39179@debbugs.gnu.org X-Debbugs-Original-To: Bug Report Emacs Received: via spool by submit@debbugs.gnu.org id=B.157938070229741 (code B ref -1); Sat, 18 Jan 2020 20:52:02 +0000 Received: (at submit) by debbugs.gnu.org; 18 Jan 2020 20:51:42 +0000 Received: from localhost ([127.0.0.1]:42283 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1isv4I-0007jc-5R for submit@debbugs.gnu.org; Sat, 18 Jan 2020 15:51:42 -0500 Received: from lists.gnu.org ([209.51.188.17]:60285) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1isv4F-0007jN-8D for submit@debbugs.gnu.org; Sat, 18 Jan 2020 15:51:40 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]:58102) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1isv4D-0003bU-7H for bug-gnu-emacs@gnu.org; Sat, 18 Jan 2020 15:51:39 -0500 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=0.8 required=5.0 tests=BAYES_50,FREEMAIL_FROM autolearn=disabled version=3.3.2 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1isv4B-00061X-7O for bug-gnu-emacs@gnu.org; Sat, 18 Jan 2020 15:51:37 -0500 Received: from mail-qk1-x72e.google.com ([2607:f8b0:4864:20::72e]:46110) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1isv4A-000612-St for bug-gnu-emacs@gnu.org; Sat, 18 Jan 2020 15:51:35 -0500 Received: by mail-qk1-x72e.google.com with SMTP id r14so26312551qke.13 for ; Sat, 18 Jan 2020 12:51:34 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:mime-version:subject:message-id:date:to; bh=5TKmcrZ5hyOvYZCwbny1Ro1m0pwLALC8f3whgoPPj90=; b=I2C3v301Eh27V/Pd1Rf7uJ8hID0bLq2abfx++VXIx7OTe0LLwoqJSIy5sd57KByJLe uiCWyzHa9ktEguaGgL2amejstLq0v3CSlMveHPMwY19/bc+fRMwn3ZRtW/GlgKAKcjQM uQLp1QUuNTOSMKzvQz64PPK65R41B7vC6AIRQn/5/uELJPI0XkKTI6oLy0mNqMhLvPRT yAgQg78Lx4KZcb2wwhoR0+QxkMJAa1H3wjWvNMOwQcu2zM8DzjeYLUeAswcOvKu9z7SK 9uahqoUfLK7KVFETH+c8cgNQJciMVWYi+nt+LdmAbheB2+BxSMrCNi4UcYmj5I7OhJFI V8UA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:mime-version:subject:message-id:date:to; bh=5TKmcrZ5hyOvYZCwbny1Ro1m0pwLALC8f3whgoPPj90=; b=KwBk8cR67cDM8O2mEvSB8KLwhH/RpQAPNxS3vzHFiv2SeWbvlUQ6S+QnD34zDhQzpR StgFoRJZSSK5yfjvw92mf7cGBPgB+S97F2tTdkhRZRPSdtpX2K+R3lRPSx6IwOX3wh0h PYGeA2/9jHXyGaLOnMMQSXYKJpchOO7obzEF7TR9e7fII0xSbyJdxZERAxnvxlLz/5uK sB1b5MDycYMJH4R6aX038Hd7DfxUK7mAFOnRXvmvCCtUaRYbHfFwOkIfvgAyoHR9BcDj uKg3TkBEq07r7yXgXXoUs1XDRH6jIT5PMPD7pskUd+ctyYdm7Ay96+UTujehT5ml5HyJ rJeQ== X-Gm-Message-State: APjAAAUcoZ+G78roTE/YNyLDH3ke/oDZvCvnpHuDG/f/+9vX44ZMEMML tza80JF02XTKDYAmjoC9nOqSyfb6WwsXxZyp X-Google-Smtp-Source: APXvYqyVkoqkpeWFRgFgUI2+WZd09MHLuOFT4m4nxlxrJ+CbosQiAqqGI09FgKoq9RWK/24EkY4x9w== X-Received: by 2002:ae9:f80d:: with SMTP id x13mr39673553qkh.226.1579380693575; Sat, 18 Jan 2020 12:51:33 -0800 (PST) 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 m20sm13562700qkk.15.2020.01.18.12.51.32 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sat, 18 Jan 2020 12:51:33 -0800 (PST) From: Yuan Fu Content-Type: multipart/mixed; boundary="Apple-Mail=_0C9614E8-8808-469E-B0D5-74463BAFA082" Mime-Version: 1.0 (Mac OS X Mail 13.0 \(3608.40.2.2.4\)) Message-Id: <7ADCB299-819A-4D1F-A95A-03655C997E57@gmail.com> Date: Sat, 18 Jan 2020 15:51:31 -0500 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::72e X-Spam-Score: -1.3 (-) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -2.3 (--) --Apple-Mail=_0C9614E8-8808-469E-B0D5-74463BAFA082 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=us-ascii By default the register buffer of gdb-mi displays all the registers. = This patch allows a user to choose what to display: by enabling a = filter. More information is included in the commit message. --Apple-Mail=_0C9614E8-8808-469E-B0D5-74463BAFA082 Content-Disposition: attachment; filename=register-filter.patch Content-Type: application/octet-stream; x-unix-mode=0700; name="register-filter.patch" Content-Transfer-Encoding: quoted-printable =46rom=201ac2f247617ee21eab5e86dbf6bf2ce0ef1929a0=20Mon=20Sep=2017=20= 00:00:00=202001=0AFrom:=20Yuan=20Fu=20=0ADate:=20Sun,=20= 6=20Oct=202019=2014:10:14=20-0400=0ASubject:=20[PATCH]=20Add=20register=20= filters=20to=20gdb-mi=0AMIME-Version:=201.0=0AContent-Type:=20= text/plain;=20charset=3DUTF-8=0AContent-Transfer-Encoding:=208bit=0A=0A= Add=20filtering=20feature=20to=20register=20buffer=20of=20gdb-mi.=0AUser=20= can=20add=20or=20remove=20registers=20they=20want=20to=20see.=0A=0AOn=20= startup,=20there=20will=20be=20a=20button=20=E2=80=9C[filter=20off]=E2=80=9D= =20on=20the=20header=20line=0Aof=20the=20register=20buffer.=20Clicking=20= on=20it=20enables=20the=20register=20filter,=0Achanges=20the=20button=20= to=20=E2=80=9C[filter=20on]=E2=80=9D=20and=20adds=20a=20=E2=80=9C[-|+]=E2=80= =9D=20button=20next=20to=0Ait.=20Click=20=E2=80=9C+=E2=80=9D=20to=20add=20= patterns=20to=20the=20pattern=20list,=20click=20=E2=80=9C-=E2=80=9D=20to=0A= remove.=20Register=20whose=20name=20matches=20any=20pattern=20in=20the=20= list=20is=0Adisplayed.=20You=20can=20also=20use=20key=20=E2=80=9Cf=E2=80=9D= =20for=20toggle,=20=E2=80=9C+=E2=80=9D=20to=20add=20pattern,=0A=E2=80=9C-=E2= =80=9D=20to=20remove=20pattern.=0A=0A*=20lisp/progmodes/gdb-mi.el=20= (gdb-registers-enable-filter,=0Agdb-registers-filter-pattern-list,=20= gdb-header-click-event-handler,=0Agdb-registers-add-to-display,=20= gdb-registers-remove-from-display,=0Agdb-registers-toggle-filter):=20new=0A= (gdb-registers-handler-custom):=20condition=20check=20before=20adding=20= each=0Aregister=0A(gdb-registers-mode-map):=20add=20new=20keys=0A= (gdb-registers-header):=20add=20new=20buttons=0A---=0A=20= lisp/progmodes/gdb-mi.el=20|=20137=20= +++++++++++++++++++++++++++++++++++----=0A=201=20file=20changed,=20125=20= insertions(+),=2012=20deletions(-)=0A=0Adiff=20--git=20= a/lisp/progmodes/gdb-mi.el=20b/lisp/progmodes/gdb-mi.el=0Aindex=20= 60852e4ad6..dce6d76d1a=20100644=0A---=20a/lisp/progmodes/gdb-mi.el=0A+++=20= b/lisp/progmodes/gdb-mi.el=0A@@=20-535,6=20+535,24=20@@=20= gdb-show-threads-by-default=0A=20=20=20:group=20'gdb-buffers=0A=20=20=20= :version=20"23.2")=0A=20=0A+;;=20automatically=20local=20because=20we=20= don't=20want=20filters=20persist=20across=20gdb=20sessions=0A+(defcustom=20= gdb-registers-enable-filter=20nil=0A+=20=20"If=20t,=20enable=20register=20= name=20filter=20in=20register=20buffer."=0A+=20=20:local=20t=0A+=20=20= :type=20'boolean=0A+=20=20:group=20'gdb-buffers=0A+=20=20:version=20= "27.1")=0A+=0A+(defcustom=20gdb-registers-filter-pattern-list=20nil=0A+=20= =20"Registers=20that=20are=20displayed=20in=20register=20buffer.=0A+=0A= +Should=20be=20a=20list.=20Registers=20whose=20name=20can=20match=0A+any=20= of=20the=20regexps=20in=20the=20list=20is=20displayed."=0A+=20=20:local=20= t=0A+=20=20:type=20'list=0A+=20=20:group=20'gdb-buffers=0A+=20=20= :version=20"27.1")=0A+=0A=20(defvar=20gdb-debug-log=20nil=0A=20=20=20= "List=20of=20commands=20sent=20to=20and=20replies=20received=20from=20= GDB.=0A=20Most=20recent=20commands=20are=20listed=20first.=20=20This=20= list=20stores=20only=20the=20last=0A@@=20-4238,6=20+4256,53=20@@=20= gdb-frame-locals-buffer=0A=20=20'gdb-registers-mode=0A=20=20= 'gdb-invalidate-registers)=0A=20=0A+(defun=20= gdb-header-click-event-handler=20(function)=0A+=20=20"Return=20a=20= function=20that=20handles=20clicking=20event=20on=20gdb=20header=20= buttons.=0A+=0A+This=20function=20switches=20to=20the=20window=20where=20= the=20header=20locates=20and=0A+executes=20FUNCTION."=0A+=20=20(lambda=20= (event)=0A+=20=20=20=20(interactive=20"e")=0A+=20=20=20=20= (save-selected-window=0A+=20=20=20=20=20=20;;=20make=20sure=20we=20are=20= in=20the=20right=20buffer=0A+=20=20=20=20=20=20(select-window=20= (posn-window=20(event-start=20event)))=0A+=20=20=20=20=20=20(funcall=20= function))))=0A+=0A+(defun=20gdb-registers-add-to-display=20()=0A+=20=20= "Add=20register=20to=20display=20in=20register=20buffer.=0A+=0A+Prompt=20= for=20a=20register=20pattern.=20=20The=20pattern=20should=20be=20a=20= regexp=0A+pattern=20matching=20the=20name=20of=20the=20register(s)=20you=20= want=20to=0A+display."=0A+=20=20(interactive)=0A+=20=20(let=20((register=20= (completing-read=20"Register=20pattern:=20"=0A+=20=20=20=20=20=20=20=20=20= =20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20= =20gdb-register-names)))=0A+=20=20=20=20(cl-pushnew=20register=20= gdb-registers-filter-pattern-list)=0A+=20=20=20=20;;=20update=20register=20= buffer=0A+=20=20=20=20(gdb-invalidate-registers=20'update)))=0A+=0A= +(defun=20gdb-registers-remove-from-display=20()=0A+=20=20"Remove=20= register=20from=20display=20in=20register=20buffer.=0A+=0A+Prompt=20for=20= a=20register=20pattern.=20=20The=20pattern=20should=20be=20a=20pattern=0A= +you=20want=20to=20remove=20from=20the=20existing=20patterns."=0A+=20=20= (interactive)=0A+=20=20(let=20((register=20(completing-read=20"Register=20= pattern:=20"=0A+=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20= =20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20= gdb-registers-filter-pattern-list=0A+=20=20=20=20=20=20=20=20=20=20=20=20= =20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20nil=20= t)))=20;=20require=20match=0A+=20=20=20=20(setq=20= gdb-registers-filter-pattern-list=0A+=20=20=20=20=20=20=20=20=20=20= (remove=20register=20gdb-registers-filter-pattern-list))=0A+=20=20=20=20= ;;=20update=20register=20buffer=0A+=20=20=20=20(gdb-invalidate-registers=20= 'update)))=0A+=0A+(defun=20gdb-registers-toggle-filter=20()=0A+=20=20= "Toggle=20register=20filter."=0A+=20=20(interactive)=0A+=20=20(setq=20= gdb-registers-enable-filter=0A+=20=20=20=20=20=20=20=20(not=20= gdb-registers-enable-filter))=0A+=20=20;;=20update=20register=20buffer=0A= +=20=20(gdb-invalidate-registers=20'update))=0A+=0A=20(defun=20= gdb-registers-handler-custom=20()=0A=20=20=20(when=20gdb-register-names=0A= =20=20=20=20=20(let=20((register-values=0A@@=20-4248,17=20+4313,24=20@@=20= gdb-registers-handler-custom=0A=20=20=20=20=20=20=20=20=20=20=20=20=20=20= =20=20(value=20(bindat-get-field=20register=20'value))=0A=20=20=20=20=20=20= =20=20=20=20=20=20=20=20=20=20(register-name=20(nth=20(string-to-number=20= register-number)=0A=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20= =20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20= gdb-register-names)))=0A-=20=20=20=20=20=20=20=20=20=20= (gdb-table-add-row=0A-=20=20=20=20=20=20=20=20=20=20=20table=0A-=20=20=20= =20=20=20=20=20=20=20=20(list=0A-=20=20=20=20=20=20=20=20=20=20=20=20= (propertize=20register-name=0A-=20=20=20=20=20=20=20=20=20=20=20=20=20=20= =20=20=20=20=20=20=20=20=20=20'font-lock-face=20= font-lock-variable-name-face)=0A-=20=20=20=20=20=20=20=20=20=20=20=20(if=20= (member=20register-number=20gdb-changed-registers)=0A-=20=20=20=20=20=20=20= =20=20=20=20=20=20=20=20=20(propertize=20value=20'font-lock-face=20= font-lock-warning-face)=0A-=20=20=20=20=20=20=20=20=20=20=20=20=20=20= value))=0A-=20=20=20=20=20=20=20=20=20=20=20`(mouse-face=20highlight=0A-=20= =20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20= help-echo=20"mouse-2:=20edit=20value"=0A-=20=20=20=20=20=20=20=20=20=20=20= =20=20=20=20=20=20=20=20=20=20=20=20=20gdb-register-name=20= ,register-name))))=0A+=20=20=20=20=20=20=20=20=20=20;;=20add=20register=20= if=20`gdb-display-these-registers'=20is=20t=0A+=20=20=20=20=20=20=20=20=20= =20;;=20or=20any=20pattern=20in=20`gdb-display-these-registers'=20= matches=0A+=20=20=20=20=20=20=20=20=20=20(when=20(or=20(not=20= gdb-registers-enable-filter)=0A+=20=20=20=20=20=20=20=20=20=20=20=20=20=20= =20=20=20=20=20=20(cl-loop=20for=20pattern=20in=20= gdb-registers-filter-pattern-list=0A+=20=20=20=20=20=20=20=20=20=20=20=20= =20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20if=20(string-match=20= pattern=20register-name)=0A+=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20= =20=20=20=20=20=20=20=20=20=20=20=20=20=20return=20t=0A+=20=20=20=20=20=20= =20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20= finally=20return=20nil))=0A+=20=20=20=20=20=20=20=20=20=20=20=20= (gdb-table-add-row=0A+=20=20=20=20=20=20=20=20=20=20=20=20=20table=0A+=20= =20=20=20=20=20=20=20=20=20=20=20=20(list=0A+=20=20=20=20=20=20=20=20=20=20= =20=20=20=20(propertize=20register-name=0A+=20=20=20=20=20=20=20=20=20=20= =20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20'font-lock-face=20= font-lock-variable-name-face)=0A+=20=20=20=20=20=20=20=20=20=20=20=20=20=20= (if=20(member=20register-number=20gdb-changed-registers)=0A+=20=20=20=20=20= =20=20=20=20=20=20=20=20=20=20=20=20=20(propertize=20value=20= 'font-lock-face=20font-lock-warning-face)=0A+=20=20=20=20=20=20=20=20=20=20= =20=20=20=20=20=20value))=0A+=20=20=20=20=20=20=20=20=20=20=20=20=20= `(mouse-face=20highlight=0A+=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20= =20=20=20=20=20=20=20=20=20=20=20help-echo=20"mouse-2:=20edit=20value"=0A= +=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20= =20=20gdb-register-name=20,register-name)))))=0A=20=20=20=20=20=20=20= (insert=20(gdb-table-string=20table=20"=20")))=0A=20=20=20=20=20(setq=20= mode-name=0A=20=20=20=20=20=20=20=20=20=20=20= (gdb-current-context-mode-name=20"Registers"))))=0A@@=20-4287,6=20= +4359,9=20@@=20gdb-registers-mode-map=0A=20=20=20=20=20=20=20=20=20=20=20= =20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20= (gdb-get-buffer-create=0A=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20= =20=20=20=20=20=20=20=20=20=20=20=20=20=20'gdb-locals-buffer=0A=20=20=20=20= =20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20= =20gdb-thread-number)=20t)))=0A+=20=20=20=20(define-key=20map=20"+"=20= #'gdb-registers-add-to-display)=0A+=20=20=20=20(define-key=20map=20"-"=20= #'gdb-registers-remove-from-display)=0A+=20=20=20=20(define-key=20map=20= "f"=20#'gdb-registers-toggle-filter)=0A=20=20=20=20=20map))=0A=20=0A=20= (defvar=20gdb-registers-header=0A@@=20-4296,7=20+4371,45=20@@=20= gdb-registers-header=0A=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20= =20=20=20=20=20=20=20=20=20=20mode-line-inactive)=0A=20=20=20=20"=20"=0A=20= =20=20=20(gdb-propertize-header=20"Registers"=20gdb-registers-buffer=0A-=09= =09=09=20=20nil=20nil=20mode-line)))=0A+=09=09=09=20=20nil=20nil=20= mode-line)=0A+=0A+=20=20=20'(:eval=20(if=20(not=20= gdb-registers-enable-filter)=0A+=20=20=20=20=20=20=20=20=20=20=20=20=20=20= =20(propertize=20"=20[filter=20off]"=0A+=20=20=20=20=20=20=20=20=20=20=20= =20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20'face=20'shadow=0A+=20=20= =20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20= 'help-echo=20"mouse-1:=20toggle=20filter"=0A+=20=20=20=20=20=20=20=20=20=20= =20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20'mouse-face=20= 'mode-line-highlight=0A+=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20= =20=20=20=20=20=20=20=20=20=20'local-map=20= (gdb-make-header-line-mouse-map=0A+=20=20=20=20=20=20=20=20=20=20=20=20=20= =20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20= =20'mouse-1=0A+=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20= =20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20= (gdb-header-click-event-handler=0A+=20=20=20=20=20=20=20=20=20=20=20=20=20= =20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20= =20=20#'gdb-registers-toggle-filter)))=0A+=20=20=20=20=20=20=20=20=20=20=20= =20=20(concat=20;=20enable=20filter=0A+=20=20=20=20=20=20=20=20=20=20=20=20= =20=20(propertize=20"=20[filter=20on]"=0A+=20=20=20=20=20=20=20=20=20=20=20= =20=20=20=20=20=20=20=20=20=20=20=20=20=20=20'face=20'(:weight=20bold=20= :inherit=20success)=0A+=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20= =20=20=20=20=20=20=20=20=20'help-echo=20"mouse-1:=20toggle=20filter"=0A+=20= =20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20= 'mouse-face=20'mode-line-highlight=0A+=20=20=20=20=20=20=20=20=20=20=20=20= =20=20=20=20=20=20=20=20=20=20=20=20=20=20'local-map=20= (gdb-make-header-line-mouse-map=0A+=20=20=20=20=20=20=20=20=20=20=20=20=20= =20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20= 'mouse-1=0A+=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20= =20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20= (gdb-header-click-event-handler=0A+=20=20=20=20=20=20=20=20=20=20=20=20=20= =20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20= =20#'gdb-registers-toggle-filter)))=0A+=20=20=20=20=20=20=20=20=20=20=20=20= =20=20"=20["=0A+=20=20=20=20=20=20=20=20=20=20=20=20=20=20(propertize=20= "-"=0A+=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20= =20=20=20=20'face=20'font-lock-warning-face=0A+=20=20=20=20=20=20=20=20=20= =20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20'help-echo=20= "mouse-1:=20remove=20register=20pattern=20from=20display=20filter"=0A+=20= =20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20= 'mouse-face=20'mode-line-highlight=0A+=20=20=20=20=20=20=20=20=20=20=20=20= =20=20=20=20=20=20=20=20=20=20=20=20=20=20'local-map=20= (gdb-make-header-line-mouse-map=0A+=20=20=20=20=20=20=20=20=20=20=20=20=20= =20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20= 'mouse-1=0A+=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20= =20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20= (gdb-header-click-event-handler=0A+=20=20=20=20=20=20=20=20=20=20=20=20=20= =20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20= =20#'gdb-registers-remove-from-display)))=0A+=20=20=20=20=20=20=20=20=20=20= =20=20=20=20"|"=0A+=20=20=20=20=20=20=20=20=20=20=20=20=20=20(propertize=20= "+"=0A+=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20= =20=20=20=20'face=20'font-lock-warning-face=0A+=20=20=20=20=20=20=20=20=20= =20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20'help-echo=20= "mouse-1:=20add=20register=20pattern=20to=20display=20filter"=0A+=20=20=20= =20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20= 'mouse-face=20'mode-line-highlight=0A+=20=20=20=20=20=20=20=20=20=20=20=20= =20=20=20=20=20=20=20=20=20=20=20=20=20=20'local-map=20= (gdb-make-header-line-mouse-map=0A+=20=20=20=20=20=20=20=20=20=20=20=20=20= =20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20= 'mouse-1=0A+=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20= =20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20= (gdb-header-click-event-handler=0A+=20=20=20=20=20=20=20=20=20=20=20=20=20= =20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20= =20#'gdb-registers-add-to-display)))=0A+=20=20=20=20=20=20=20=20=20=20=20= =20=20=20"]")))))=0A=20=0A=20(define-derived-mode=20gdb-registers-mode=20= gdb-parent-mode=20"Registers"=0A=20=20=20"Major=20mode=20for=20gdb=20= registers."=0A--=20=0A2.24.1=0A=0A= --Apple-Mail=_0C9614E8-8808-469E-B0D5-74463BAFA082 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=us-ascii In GNU Emacs 27.0.50 (build 3, x86_64-apple-darwin19.0.0, NS = appkit-1894.10 Version 10.15.1 (Build 19B88)) of 2019-11-30 built on missSilver Repository revision: e2828795d73637577c7726965974a047fe2d7119 Repository branch: master Windowing system distributor 'Apple', version 10.3.1894 System Description: Mac OS X 10.15.2 Recent messages: Mark set Quit Auto-saving... Mark set Quit Delete unmerged branch master? (y or n) y Quit [3 times] Revert buffer from file /Users/yuan/emacs/lisp/progmodes/gdb-mi.el? (y = or n) y Showing all blocks ... done Mark set Configured using: 'configure --with-modules --with-pdumper=3Dyes = --oldincludedir=3D/Applications/Xcode.app/Contents/Developer/Platforms/Mac= OSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/libxml2/' Configured features: NOTIFY KQUEUE ACL GNUTLS LIBXML2 ZLIB TOOLKIT_SCROLL_BARS NS MODULES THREADS PDUMPER LCMS2 Important settings: value of $LC_CTYPE: UTF-8 value of $LANG: en_CN.UTF-8 locale-coding-system: utf-8-unix Major mode: Emacs-Lisp Minor modes in effect: magit-todos-mode: t bug-reference-prog-mode: t desktop-save-mode: t ghelp-global-minor-mode: t minibuffer-electric-default-mode: t flymake-mode: t global-magit-file-mode: t magit-file-mode: t global-git-commit-mode: t async-bytecomp-package-mode: t shell-dirtrack-mode: t flyspell-mode: t outshine-mode: t ws-butler-global-mode: t ws-butler-mode: t minions-mode: t eyebrowse-mode: t savehist-mode: t global-hl-todo-mode: t hl-todo-mode: t global-highlight-parentheses-mode: t highlight-parentheses-mode: t rainbow-delimiters-mode: t global-undo-tree-mode: t undo-tree-mode: t electric-pair-mode: t winner-mode: t aggressive-indent-mode: t ivy-prescient-mode: t prescient-persist-mode: t recentf-mode: t which-key-mode: t general-override-mode: t outline-minor-mode: t ivy-mode: t company-mode: t override-global-mode: t tooltip-mode: t global-eldoc-mode: t eldoc-mode: t electric-quote-mode: t electric-indent-mode: t mouse-wheel-mode: t menu-bar-mode: t file-name-shadow-mode: t global-font-lock-mode: t font-lock-mode: t auto-composition-mode: t auto-encryption-mode: t auto-compression-mode: t transient-mark-mode: t hs-minor-mode: t Load-path shadows: /Users/yuan/.emacs.d/ranch/winman/windman hides = /Users/yuan/.emacs.d/ranch/windman/windman /Users/yuan/.emacs.d/ranch/nerd-font/test/test-helper hides = /Users/yuan/.emacs.d/ranch/doom-themes/test/test-helper /Users/yuan/.emacs.d/ranch/julia-mode/julia-mode hides = /Users/yuan/.emacs.d/package/julia-mode-20190813.1326/julia-mode /Users/yuan/.emacs.d/ranch/julia-mode/julia-latexsubs hides = /Users/yuan/.emacs.d/package/julia-mode-20190813.1326/julia-latexsubs /Users/yuan/.emacs.d/ranch/matlab-emacs/mlint hides = /Users/yuan/.emacs.d/package/matlab-mode-20180928.1526/mlint /Users/yuan/.emacs.d/ranch/matlab-emacs/company-matlab-shell hides = /Users/yuan/.emacs.d/package/matlab-mode-20180928.1526/company-matlab-shel= l /Users/yuan/.emacs.d/ranch/matlab-emacs/linemark hides = /Users/yuan/.emacs.d/package/matlab-mode-20180928.1526/linemark /Users/yuan/.emacs.d/ranch/matlab-emacs/semanticdb-matlab hides = /Users/yuan/.emacs.d/package/matlab-mode-20180928.1526/semanticdb-matlab /Users/yuan/.emacs.d/ranch/matlab-emacs/semantic-matlab hides = /Users/yuan/.emacs.d/package/matlab-mode-20180928.1526/semantic-matlab /Users/yuan/.emacs.d/ranch/matlab-emacs/srecode-matlab hides = /Users/yuan/.emacs.d/package/matlab-mode-20180928.1526/srecode-matlab /Users/yuan/.emacs.d/ranch/matlab-emacs/matlab hides = /Users/yuan/.emacs.d/package/matlab-mode-20180928.1526/matlab /Users/yuan/.emacs.d/ranch/matlab-emacs/cedet-matlab hides = /Users/yuan/.emacs.d/package/matlab-mode-20180928.1526/cedet-matlab /Users/yuan/.emacs.d/ranch/matlab-emacs/tlc hides = /Users/yuan/.emacs.d/package/matlab-mode-20180928.1526/tlc /Users/yuan/.emacs.d/ranch/matlab-emacs/matlab-publish hides = /Users/yuan/.emacs.d/package/matlab-mode-20180928.1526/matlab-publish /Users/yuan/.emacs.d/ranch/matlab-emacs/matlab-mode-pkg hides = /Users/yuan/.emacs.d/package/matlab-mode-20180928.1526/matlab-mode-pkg /Users/yuan/.emacs.d/package/faceup-20170925.1946/faceup hides = /Users/yuan/attic/emacs/lisp/emacs-lisp/faceup Features: (magit-todos pcre2el rxt re-builder grep checkdoc lisp-mnt bug-reference vc-mtn vc-hg ffap tramp tramp-loaddefs trampver tramp-integration files-x tramp-compat parse-time iso8601 ls-lisp shadow sort mail-extr emacsbug sendmail vc-git vc-bzr vc-src vc-sccs vc-svn vc-cvs vc-rcs vc vc-dispatcher magit-bookmark bookmark company-oddmuse company-keywords company-etags etags fileloop company-gtags company-dabbrev-code company-dabbrev company-files company-capf company-cmake company-xcode company-clang company-semantic company-eclim company-template company-bbdb hideshow desktop frameset trivial-copy ghelp-eglot ghelp-helpful ghelp-builtin ghelp cus-edit cus-start cus-load luna-publish utility pause luna-general-config minibuf-eldef eglot array jsonrpc ert pp ewoc debug flymake-proc flymake warnings url-util magit-submodule magit-obsolete magit-blame magit-stash magit-reflog magit-bisect magit-push magit-pull magit-fetch magit-clone magit-remote magit-commit magit-sequence magit-notes magit-worktree magit-tag magit-merge magit-branch magit-reset magit-files magit-refs magit-status magit magit-repos magit-apply magit-wip magit-log which-func magit-diff smerge-mode diff-mode magit-core magit-autorevert autorevert filenotify magit-margin magit-transient magit-process magit-mode transient git-commit magit-git magit-section magit-utils crm log-edit message rmc puny rfc822 mml mml-sec epa derived epg epg-config gnus-util rmail rmail-loaddefs text-property-search mm-decode mm-bodies mm-encode mail-parse rfc2231 rfc2047 rfc2045 mm-util ietf-drums mail-prsvr mailabbrev mail-utils gmm-utils mailheader pcvs-util add-log with-editor async-bytecomp async shell server flyspell ispell outshine outshine-org-cmds outorg isolate inline expand-region text-mode-expansions the-org-mode-expansions er-basic-expansions thingatpt expand-region-core expand-region-custom ws-butler minions eyebrowse savehist buffer-move windmove hl-todo highlight-parentheses rainbow-delimiters doom-cyberpunk-theme undo-tree diff doom-one-light-theme elec-pair winner doom-themes doom-themes-base windman aggressive-indent find-char ivy-prescient prescient recentf-ext recentf tree-widget wid-edit which-key general helpful imenu trace edebug backtrace info-look f dash-functional help-fns radix-tree elisp-refs s loop dash org-element avl-tree generator org advice org-macro org-footnote org-pcomplete pcomplete org-list org-faces org-entities time-date noutline outline org-version ob-emacs-lisp ob ob-tangle org-src ob-ref ob-lob ob-table ob-keys ob-exp ob-comint ob-core ob-eval org-compat org-macs org-loaddefs format-spec find-func cal-menu calendar cal-loaddefs counsel xdg xref project dired dired-loaddefs compile comint ansi-color swiper cl-extra help-mode ivy delsel ring colir color ivy-overlay company edmacro kmacro pcase use-package use-package-ensure use-package-delight use-package-diminish use-package-bind-key bind-key easy-mmode use-package-core finder-inf tex-site info cowboy package easymenu browse-url url-handlers url-parse auth-source cl-seq eieio eieio-core cl-macs eieio-loaddefs password-cache json subr-x map url-vars cl-loaddefs cl-lib lunary lunary-ui luna-f rx seq byte-opt gv bytecomp byte-compile cconv tooltip eldoc electric uniquify ediff-hook vc-hooks lisp-float-type mwheel term/ns-win ns-win ucs-normalize mule-util term/common-win tool-bar dnd fontset image regexp-opt fringe tabulated-list replace newcomment text-mode elisp-mode lisp-mode prog-mode register page tab-bar menu-bar rfn-eshadow isearch timer select scroll-bar mouse jit-lock font-lock syntax facemenu font-core term/tty-colors frame minibuffer cl-generic cham georgian utf-8-lang misc-lang vietnamese tibetan thai tai-viet lao korean japanese eucjp-ms cp51932 hebrew greek romanian slovak czech european ethiopic indian cyrillic chinese composite charscript charprop case-table epa-hook jka-cmpr-hook help simple abbrev obarray cl-preloaded nadvice loaddefs button faces cus-face macroexp files text-properties overlay sha1 md5 base64 format env code-pages mule custom widget hashtable-print-readable backquote threads kqueue cocoa ns lcms2 multi-tty make-network-process emacs) Memory information: ((conses 16 198126 23690) (symbols 48 9373 50) (strings 32 38317 1952) (string-bytes 1 1116054) (vectors 16 24583) (vector-slots 8 288178 27922) (floats 8 506 310) (intervals 56 14663 1329) (buffers 1000 26)) --Apple-Mail=_0C9614E8-8808-469E-B0D5-74463BAFA082-- From unknown Wed Sep 10 06:21:07 2025 X-Loop: help-debbugs@gnu.org Subject: bug#39179: 27.0.50; [PATCH] Add filter to gdb-mi register buffer Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 31 Jan 2020 09:57:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 39179 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: patch To: Yuan Fu Cc: 39179@debbugs.gnu.org Received: via spool by 39179-submit@debbugs.gnu.org id=B39179.15804646147606 (code B ref 39179); Fri, 31 Jan 2020 09:57:02 +0000 Received: (at 39179) by debbugs.gnu.org; 31 Jan 2020 09:56:54 +0000 Received: from localhost ([127.0.0.1]:36591 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ixT2j-0001yc-RI for submit@debbugs.gnu.org; Fri, 31 Jan 2020 04:56:54 -0500 Received: from eggs.gnu.org ([209.51.188.92]:34635) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ixT2i-0001yN-Qq for 39179@debbugs.gnu.org; Fri, 31 Jan 2020 04:56:53 -0500 Received: from fencepost.gnu.org ([2001:470:142:3::e]:59380) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ixT2d-0001vx-Jr; Fri, 31 Jan 2020 04:56:47 -0500 Received: from [176.228.60.248] (port=1620 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1ixT2d-0005iS-0V; Fri, 31 Jan 2020 04:56:47 -0500 Date: Fri, 31 Jan 2020 11:56:25 +0200 Message-Id: <83o8ukkkza.fsf@gnu.org> From: Eli Zaretskii In-reply-to: <7ADCB299-819A-4D1F-A95A-03655C997E57@gmail.com> (message from Yuan Fu on Sat, 18 Jan 2020 15:51:31 -0500) References: <7ADCB299-819A-4D1F-A95A-03655C997E57@gmail.com> MIME-version: 1.0 Content-type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Spam-Score: -0.7 (/) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.7 (-) > From: Yuan Fu > Date: Sat, 18 Jan 2020 15:51:31 -0500 > > On startup, there will be a button “[filter off]” on the header line > of the register buffer. Clicking on it enables the register filter, > changes the button to “[filter on]” and adds a “[-|+]” button next to > it. Click “+” to add patterns to the pattern list, click “-” to > remove. Register whose name matches any pattern in the list is > displayed. You can also use key “f” for toggle, “+” to add pattern, > “-” to remove pattern. I'm not sure it's a good idea to implement this as a button on the header-line. Such buttons are for frequent operations, and also have the disadvantage of being unavailable on TTY frames. What are the chances users will need to redefine the register patters frequently enough to justify the button? Wouldn't it be much easier to have a defcustom whose value users could interactively modify as needed? And please don't use non-ASCII characters in log messages, as these could cause trouble reading the Git log on less capable terminals. > * lisp/progmodes/gdb-mi.el (gdb-registers-enable-filter, > gdb-registers-filter-pattern-list, gdb-header-click-event-handler, > gdb-registers-add-to-display, gdb-registers-remove-from-display, > gdb-registers-toggle-filter): new ^^^ "New functions." > (gdb-registers-handler-custom): condition check before adding each > register > (gdb-registers-mode-map): add new keys > (gdb-registers-header): add new buttons Please start description of changes with a capitalized word, and end with a period -- these should be complete English sentences. > +;; automatically local because we don't want filters persist across gdb sessions Likewise in comments: complete sentences (here and elsewhere in the patch). Thanks. From unknown Wed Sep 10 06:21:07 2025 X-Loop: help-debbugs@gnu.org Subject: bug#39179: 27.0.50; [PATCH] Add filter to gdb-mi register buffer Resent-From: Yuan Fu Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 31 Jan 2020 23:09:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 39179 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: patch To: Eli Zaretskii Cc: 39179@debbugs.gnu.org Received: via spool by 39179-submit@debbugs.gnu.org id=B39179.158051211132473 (code B ref 39179); Fri, 31 Jan 2020 23:09:01 +0000 Received: (at 39179) by debbugs.gnu.org; 31 Jan 2020 23:08:31 +0000 Received: from localhost ([127.0.0.1]:38203 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ixfOo-0008Rg-VP for submit@debbugs.gnu.org; Fri, 31 Jan 2020 18:08:31 -0500 Received: from mail-qk1-f195.google.com ([209.85.222.195]:38189) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ixfOm-0008RS-PO for 39179@debbugs.gnu.org; Fri, 31 Jan 2020 18:08:29 -0500 Received: by mail-qk1-f195.google.com with SMTP id k6so8293215qki.5 for <39179@debbugs.gnu.org>; Fri, 31 Jan 2020 15:08:28 -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=XCMBvG/f5TdRouMH5g3GdpnqkRq1Y/NOCfSp7SEvFeU=; b=ODR2ii2iCEw01ZGum0+ycoZSby+SbdJ2/JmVGcHNlgQviE0Iu0Kh/HM2yGHoKMtnca uVAwjHzdu7Nm+F+ABhbiXUNFSU1jqiOAFS2mEgTF+DvqzfE6hfaO7LSy75fyp/h+Gh+L IHeXwcrB5uCzDyyWhhaGq7CqsBkeCCD3lLV/jbGETn7f4fIA2KXGwXhgTT0QpETP41fl de7wCV0tsyISa506bJCdyodIGFWc5nNiY6Do/w/VsxibBfJNl7OwMdOTD+r+OW0aXvLj wdf95FhgzJtqhBbLMkgJYBFQ8Mwz0cM1T29ISXjcPYwtDoABx5v8/ZoC6OpnvBMmu6Sy nJbA== 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=XCMBvG/f5TdRouMH5g3GdpnqkRq1Y/NOCfSp7SEvFeU=; b=h7/1XuLguiD73/myDQTpMiyLLGPXPkMb1i+PUhFSd7bpRbhtJ5FhNQUIfhMZGF8Xfi 3mpqmsgh/8O+CngMgl00R490QEh3zMJIkNuuvLB62A6aKAslesAH6iif1m2g5K+Cx0sz YLYFio/uMOg35uzvlutNmlhh+mjevc9PcoMfHThEacIFm+R0UuB71K5YSf9F/leqmBXL OuHHKok3pAiArNkCdzVLW+yGeECbG/mDjvQBUCC4wD5wEzVjW8jg8AIvtgpgqyK8XWkC hsSQgWLW8Po4cIjASSpjx4aBbNBwOatZ/+N+KAyXlpRi4lmr5DQdFRx10AllNs8d3LfA 3Hmw== X-Gm-Message-State: APjAAAUjduNqjbPXPvQEemyLArPJKNkhQ9wiui2j1fDF4yS5rHc8hk48 s0i9Ktu4O8h7iSugUHu8JOs= X-Google-Smtp-Source: APXvYqwoFmcgJULEwQnmmHB+OH9laVc6vbTFelRIyFWAdmoVc6k2D6NEgJV17rINkIoi8Y5OhCf7bQ== X-Received: by 2002:a37:4755:: with SMTP id u82mr13084329qka.43.1580512102814; Fri, 31 Jan 2020 15:08:22 -0800 (PST) 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 w41sm5889678qtj.49.2020.01.31.15.08.21 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 31 Jan 2020 15:08:22 -0800 (PST) From: Yuan Fu Message-Id: <30AFA53A-2A18-4E6A-A215-F0DEF4FB6B12@gmail.com> Content-Type: multipart/mixed; boundary="Apple-Mail=_768D9969-4A17-4F5F-9BA7-8A0B6E8818E0" Mime-Version: 1.0 (Mac OS X Mail 13.0 \(3608.40.2.2.4\)) Date: Fri, 31 Jan 2020 18:08:18 -0500 In-Reply-To: <83o8ukkkza.fsf@gnu.org> References: <7ADCB299-819A-4D1F-A95A-03655C997E57@gmail.com> <83o8ukkkza.fsf@gnu.org> X-Mailer: Apple Mail (2.3608.40.2.2.4) X-Spam-Score: 0.0 (/) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) --Apple-Mail=_768D9969-4A17-4F5F-9BA7-8A0B6E8818E0 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=utf-8 > On Jan 31, 2020, at 4:56 AM, Eli Zaretskii wrote: >=20 >> From: Yuan Fu >> Date: Sat, 18 Jan 2020 15:51:31 -0500 >>=20 >> On startup, there will be a button =E2=80=9C[filter off]=E2=80=9D on = the header line >> of the register buffer. Clicking on it enables the register filter, >> changes the button to =E2=80=9C[filter on]=E2=80=9D and adds a = =E2=80=9C[-|+]=E2=80=9D button next to >> it. Click =E2=80=9C+=E2=80=9D to add patterns to the pattern list, = click =E2=80=9C-=E2=80=9D to >> remove. Register whose name matches any pattern in the list is >> displayed. You can also use key =E2=80=9Cf=E2=80=9D for toggle, = =E2=80=9C+=E2=80=9D to add pattern, >> =E2=80=9C-=E2=80=9D to remove pattern. >=20 > I'm not sure it's a good idea to implement this as a button on the > header-line. Such buttons are for frequent operations, and also have > the disadvantage of being unavailable on TTY frames. What are the > chances users will need to redefine the register patters frequently > enough to justify the button? Wouldn't it be much easier to have a > defcustom whose value users could interactively modify as needed? I mainly use it to display only the registers I care about, say, all the = *dx registers (rdx, edx, dx) or all the r** registers (rdx, rsi, etc). = And that depends on the program you are working on. The main motivation = behind this patch is that, currently the register buffer simply displays = all the possible registers (153 on my machine), and tracking on some of = them is very hard (scrolling back and forth, very annoying). So this feather is a session-based quick filtering for interesting = registers, I don=E2=80=99t think defcustom makes it better. As for the buttons, I mimicked the buttons on memory buffer. And you = don=E2=80=99r really need to use these buttons, instead of clicking this = buttons, I just hit -/+/f key (since register buffer is a special = buffer) and it=E2=80=99s convenient: >> You can also use key =E2=80=9Cf=E2=80=9D for toggle, =E2=80=9C+=E2=80=9D= to add pattern, >> =E2=80=9C-=E2=80=9D to remove pattern. --------------------------------- > And please don't use non-ASCII characters in log messages, as these > could cause trouble reading the Git log on less capable terminals. >=20 >> * lisp/progmodes/gdb-mi.el (gdb-registers-enable-filter, >> gdb-registers-filter-pattern-list, gdb-header-click-event-handler, >> gdb-registers-add-to-display, gdb-registers-remove-from-display, >> gdb-registers-toggle-filter): new > ^^^ > "New functions." >=20 >> (gdb-registers-handler-custom): condition check before adding each >> register >> (gdb-registers-mode-map): add new keys >> (gdb-registers-header): add new buttons >=20 > Please start description of changes with a capitalized word, and end > with a period -- these should be complete English sentences. >=20 >> +;; automatically local because we don't want filters persist across = gdb sessions >=20 > Likewise in comments: complete sentences (here and elsewhere in the > patch). >=20 > Thanks. I=E2=80=99ve fixed these bits, here is the revised patch. Yuan --Apple-Mail=_768D9969-4A17-4F5F-9BA7-8A0B6E8818E0 Content-Disposition: attachment; filename=register-fixed.patch Content-Type: application/octet-stream; x-unix-mode=0700; name="register-fixed.patch" Content-Transfer-Encoding: quoted-printable =46rom=20dcd9d640b4fa32560e40ea5e733392c4d19ff130=20Mon=20Sep=2017=20= 00:00:00=202001=0AFrom:=20Yuan=20Fu=20=0ADate:=20Sun,=20= 6=20Oct=202019=2014:10:14=20-0400=0ASubject:=20[PATCH]=20Add=20register=20= filters=20to=20gdb-mi=0A=0AAdd=20filtering=20feature=20to=20register=20= buffer=20of=20gdb-mi.=0AUser=20can=20add=20or=20remove=20registers=20= they=20want=20to=20see.=0A=0AOn=20startup,=20there=20will=20be=20a=20= button=20"[filter=20off]"=20on=20the=20header=20line=0Aof=20the=20= register=20buffer.=20Clicking=20on=20it=20enables=20the=20register=20= filter,=0Achanges=20the=20button=20to=20"[filter=20on]"=20and=20adds=20a=20= "[-|+]"=20button=20next=20to=0Ait.=20Click=20"+"=20to=20add=20patterns=20= to=20the=20pattern=20list,=20click=20"-"=20to=0Aremove.=20Register=20= whose=20name=20matches=20any=20pattern=20in=20the=20list=20is=0A= displayed.=20You=20can=20also=20use=20key=20"f"=20for=20toggle,=20"+"=20= to=20add=20pattern,=0A"-"=20to=20remove=20pattern.=0A=0A*=20= lisp/progmodes/gdb-mi.el=20(gdb-registers-enable-filter,=0A= gdb-registers-filter-pattern-list,=20gdb-header-click-event-handler,=0A= gdb-registers-add-to-display,=20gdb-registers-remove-from-display,=0A= gdb-registers-toggle-filter):=20New=20functions.=0A= (gdb-registers-handler-custom):=20Condition=20check=20before=20adding=20= each=0Aregister.=0A(gdb-registers-mode-map):=20New=20keys.=0A= (gdb-registers-header):=20New=20buttons.=0A---=0A=20= lisp/progmodes/gdb-mi.el=20|=20137=20= +++++++++++++++++++++++++++++++++++----=0A=201=20file=20changed,=20125=20= insertions(+),=2012=20deletions(-)=0A=0Adiff=20--git=20= a/lisp/progmodes/gdb-mi.el=20b/lisp/progmodes/gdb-mi.el=0Aindex=20= 60852e4ad6..aafdbad2c9=20100644=0A---=20a/lisp/progmodes/gdb-mi.el=0A+++=20= b/lisp/progmodes/gdb-mi.el=0A@@=20-535,6=20+535,24=20@@=20= gdb-show-threads-by-default=0A=20=20=20:group=20'gdb-buffers=0A=20=20=20= :version=20"23.2")=0A=20=0A+;;=20Automatically=20local=20because=20we=20= don't=20want=20filters=20persist=20across=20gdb=20sessions.=0A= +(defcustom=20gdb-registers-enable-filter=20nil=0A+=20=20"If=20t,=20= enable=20register=20name=20filter=20in=20register=20buffer."=0A+=20=20= :local=20t=0A+=20=20:type=20'boolean=0A+=20=20:group=20'gdb-buffers=0A+=20= =20:version=20"27.1")=0A+=0A+(defcustom=20= gdb-registers-filter-pattern-list=20nil=0A+=20=20"Registers=20that=20are=20= displayed=20in=20register=20buffer.=0A+=0A+Should=20be=20a=20list.=20=20= Registers=20whose=20name=20can=20match=0A+any=20of=20the=20regexps=20in=20= the=20list=20is=20displayed."=0A+=20=20:local=20t=0A+=20=20:type=20'list=0A= +=20=20:group=20'gdb-buffers=0A+=20=20:version=20"28.1")=0A+=0A=20= (defvar=20gdb-debug-log=20nil=0A=20=20=20"List=20of=20commands=20sent=20= to=20and=20replies=20received=20from=20GDB.=0A=20Most=20recent=20= commands=20are=20listed=20first.=20=20This=20list=20stores=20only=20the=20= last=0A@@=20-4238,6=20+4256,53=20@@=20gdb-frame-locals-buffer=0A=20=20= 'gdb-registers-mode=0A=20=20'gdb-invalidate-registers)=0A=20=0A+(defun=20= gdb-header-click-event-handler=20(function)=0A+=20=20"Return=20a=20= function=20that=20handles=20clicking=20event=20on=20gdb=20header=20= buttons.=0A+=0A+This=20function=20switches=20to=20the=20window=20where=20= the=20header=20locates=20and=0A+executes=20FUNCTION."=0A+=20=20(lambda=20= (event)=0A+=20=20=20=20(interactive=20"e")=0A+=20=20=20=20= (save-selected-window=0A+=20=20=20=20=20=20;;=20Make=20sure=20we=20are=20= in=20the=20right=20buffer.=0A+=20=20=20=20=20=20(select-window=20= (posn-window=20(event-start=20event)))=0A+=20=20=20=20=20=20(funcall=20= function))))=0A+=0A+(defun=20gdb-registers-add-to-display=20()=0A+=20=20= "Add=20register=20to=20display=20in=20register=20buffer.=0A+=0A+Prompt=20= for=20a=20register=20pattern.=20=20The=20pattern=20should=20be=20a=20= regexp=0A+pattern=20matching=20the=20name=20of=20the=20register(s)=20you=20= want=20to=0A+display."=0A+=20=20(interactive)=0A+=20=20(let=20((register=20= (completing-read=20"Register=20pattern:=20"=0A+=20=20=20=20=20=20=20=20=20= =20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20= =20gdb-register-names)))=0A+=20=20=20=20(cl-pushnew=20register=20= gdb-registers-filter-pattern-list)=0A+=20=20=20=20;;=20Update=20register=20= buffer.=0A+=20=20=20=20(gdb-invalidate-registers=20'update)))=0A+=0A= +(defun=20gdb-registers-remove-from-display=20()=0A+=20=20"Remove=20= register=20from=20display=20in=20register=20buffer.=0A+=0A+Prompt=20for=20= a=20register=20pattern.=20=20The=20pattern=20should=20be=20a=20pattern=0A= +you=20want=20to=20remove=20from=20the=20existing=20patterns."=0A+=20=20= (interactive)=0A+=20=20(let=20((register=20(completing-read=20"Register=20= pattern:=20"=0A+=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20= =20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20= gdb-registers-filter-pattern-list=0A+=20=20=20=20=20=20=20=20=20=20=20=20= =20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20nil=20= t)))=20;=20require=20match=0A+=20=20=20=20(setq=20= gdb-registers-filter-pattern-list=0A+=20=20=20=20=20=20=20=20=20=20= (remove=20register=20gdb-registers-filter-pattern-list))=0A+=20=20=20=20= ;;=20Update=20register=20buffer.=0A+=20=20=20=20= (gdb-invalidate-registers=20'update)))=0A+=0A+(defun=20= gdb-registers-toggle-filter=20()=0A+=20=20"Toggle=20register=20filter."=0A= +=20=20(interactive)=0A+=20=20(setq=20gdb-registers-enable-filter=0A+=20=20= =20=20=20=20=20=20(not=20gdb-registers-enable-filter))=0A+=20=20;;=20= Update=20register=20buffer.=0A+=20=20(gdb-invalidate-registers=20= 'update))=0A+=0A=20(defun=20gdb-registers-handler-custom=20()=0A=20=20=20= (when=20gdb-register-names=0A=20=20=20=20=20(let=20((register-values=0A= @@=20-4248,17=20+4313,24=20@@=20gdb-registers-handler-custom=0A=20=20=20=20= =20=20=20=20=20=20=20=20=20=20=20=20(value=20(bindat-get-field=20= register=20'value))=0A=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20= (register-name=20(nth=20(string-to-number=20register-number)=0A=20=20=20=20= =20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20= =20=20=20=20=20=20=20gdb-register-names)))=0A-=20=20=20=20=20=20=20=20=20= =20(gdb-table-add-row=0A-=20=20=20=20=20=20=20=20=20=20=20table=0A-=20=20= =20=20=20=20=20=20=20=20=20(list=0A-=20=20=20=20=20=20=20=20=20=20=20=20= (propertize=20register-name=0A-=20=20=20=20=20=20=20=20=20=20=20=20=20=20= =20=20=20=20=20=20=20=20=20=20'font-lock-face=20= font-lock-variable-name-face)=0A-=20=20=20=20=20=20=20=20=20=20=20=20(if=20= (member=20register-number=20gdb-changed-registers)=0A-=20=20=20=20=20=20=20= =20=20=20=20=20=20=20=20=20(propertize=20value=20'font-lock-face=20= font-lock-warning-face)=0A-=20=20=20=20=20=20=20=20=20=20=20=20=20=20= value))=0A-=20=20=20=20=20=20=20=20=20=20=20`(mouse-face=20highlight=0A-=20= =20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20= help-echo=20"mouse-2:=20edit=20value"=0A-=20=20=20=20=20=20=20=20=20=20=20= =20=20=20=20=20=20=20=20=20=20=20=20=20gdb-register-name=20= ,register-name))))=0A+=20=20=20=20=20=20=20=20=20=20;;=20Add=20register=20= if=20`gdb-display-these-registers'=20is=20t;=0A+=20=20=20=20=20=20=20=20=20= =20;;=20or=20any=20pattern=20that=20`gdb-display-these-registers'=20= matches.=0A+=20=20=20=20=20=20=20=20=20=20(when=20(or=20(not=20= gdb-registers-enable-filter)=0A+=20=20=20=20=20=20=20=20=20=20=20=20=20=20= =20=20=20=20=20=20(cl-loop=20for=20pattern=20in=20= gdb-registers-filter-pattern-list=0A+=20=20=20=20=20=20=20=20=20=20=20=20= =20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20if=20(string-match=20= pattern=20register-name)=0A+=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20= =20=20=20=20=20=20=20=20=20=20=20=20=20=20return=20t=0A+=20=20=20=20=20=20= =20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20= finally=20return=20nil))=0A+=20=20=20=20=20=20=20=20=20=20=20=20= (gdb-table-add-row=0A+=20=20=20=20=20=20=20=20=20=20=20=20=20table=0A+=20= =20=20=20=20=20=20=20=20=20=20=20=20(list=0A+=20=20=20=20=20=20=20=20=20=20= =20=20=20=20(propertize=20register-name=0A+=20=20=20=20=20=20=20=20=20=20= =20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20'font-lock-face=20= font-lock-variable-name-face)=0A+=20=20=20=20=20=20=20=20=20=20=20=20=20=20= (if=20(member=20register-number=20gdb-changed-registers)=0A+=20=20=20=20=20= =20=20=20=20=20=20=20=20=20=20=20=20=20(propertize=20value=20= 'font-lock-face=20font-lock-warning-face)=0A+=20=20=20=20=20=20=20=20=20=20= =20=20=20=20=20=20value))=0A+=20=20=20=20=20=20=20=20=20=20=20=20=20= `(mouse-face=20highlight=0A+=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20= =20=20=20=20=20=20=20=20=20=20=20help-echo=20"mouse-2:=20edit=20value"=0A= +=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20= =20=20gdb-register-name=20,register-name)))))=0A=20=20=20=20=20=20=20= (insert=20(gdb-table-string=20table=20"=20")))=0A=20=20=20=20=20(setq=20= mode-name=0A=20=20=20=20=20=20=20=20=20=20=20= (gdb-current-context-mode-name=20"Registers"))))=0A@@=20-4287,6=20= +4359,9=20@@=20gdb-registers-mode-map=0A=20=20=20=20=20=20=20=20=20=20=20= =20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20= (gdb-get-buffer-create=0A=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20= =20=20=20=20=20=20=20=20=20=20=20=20=20=20'gdb-locals-buffer=0A=20=20=20=20= =20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20= =20gdb-thread-number)=20t)))=0A+=20=20=20=20(define-key=20map=20"+"=20= #'gdb-registers-add-to-display)=0A+=20=20=20=20(define-key=20map=20"-"=20= #'gdb-registers-remove-from-display)=0A+=20=20=20=20(define-key=20map=20= "f"=20#'gdb-registers-toggle-filter)=0A=20=20=20=20=20map))=0A=20=0A=20= (defvar=20gdb-registers-header=0A@@=20-4296,7=20+4371,45=20@@=20= gdb-registers-header=0A=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20= =20=20=20=20=20=20=20=20=20=20mode-line-inactive)=0A=20=20=20=20"=20"=0A=20= =20=20=20(gdb-propertize-header=20"Registers"=20gdb-registers-buffer=0A-=09= =09=09=20=20nil=20nil=20mode-line)))=0A+=09=09=09=20=20nil=20nil=20= mode-line)=0A+=0A+=20=20=20'(:eval=20(if=20(not=20= gdb-registers-enable-filter)=0A+=20=20=20=20=20=20=20=20=20=20=20=20=20=20= =20(propertize=20"=20[filter=20off]"=0A+=20=20=20=20=20=20=20=20=20=20=20= =20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20'face=20'shadow=0A+=20=20= =20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20= 'help-echo=20"mouse-1:=20toggle=20filter"=0A+=20=20=20=20=20=20=20=20=20=20= =20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20'mouse-face=20= 'mode-line-highlight=0A+=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20= =20=20=20=20=20=20=20=20=20=20'local-map=20= (gdb-make-header-line-mouse-map=0A+=20=20=20=20=20=20=20=20=20=20=20=20=20= =20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20= =20'mouse-1=0A+=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20= =20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20= (gdb-header-click-event-handler=0A+=20=20=20=20=20=20=20=20=20=20=20=20=20= =20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20= =20=20#'gdb-registers-toggle-filter)))=0A+=20=20=20=20=20=20=20=20=20=20=20= =20=20(concat=20;=20enable=20filter=0A+=20=20=20=20=20=20=20=20=20=20=20=20= =20=20(propertize=20"=20[filter=20on]"=0A+=20=20=20=20=20=20=20=20=20=20=20= =20=20=20=20=20=20=20=20=20=20=20=20=20=20=20'face=20'(:weight=20bold=20= :inherit=20success)=0A+=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20= =20=20=20=20=20=20=20=20=20'help-echo=20"mouse-1:=20toggle=20filter"=0A+=20= =20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20= 'mouse-face=20'mode-line-highlight=0A+=20=20=20=20=20=20=20=20=20=20=20=20= =20=20=20=20=20=20=20=20=20=20=20=20=20=20'local-map=20= (gdb-make-header-line-mouse-map=0A+=20=20=20=20=20=20=20=20=20=20=20=20=20= =20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20= 'mouse-1=0A+=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20= =20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20= (gdb-header-click-event-handler=0A+=20=20=20=20=20=20=20=20=20=20=20=20=20= =20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20= =20#'gdb-registers-toggle-filter)))=0A+=20=20=20=20=20=20=20=20=20=20=20=20= =20=20"=20["=0A+=20=20=20=20=20=20=20=20=20=20=20=20=20=20(propertize=20= "-"=0A+=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20= =20=20=20=20'face=20'font-lock-warning-face=0A+=20=20=20=20=20=20=20=20=20= =20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20'help-echo=20= "mouse-1:=20remove=20register=20pattern=20from=20display=20filter"=0A+=20= =20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20= 'mouse-face=20'mode-line-highlight=0A+=20=20=20=20=20=20=20=20=20=20=20=20= =20=20=20=20=20=20=20=20=20=20=20=20=20=20'local-map=20= (gdb-make-header-line-mouse-map=0A+=20=20=20=20=20=20=20=20=20=20=20=20=20= =20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20= 'mouse-1=0A+=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20= =20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20= (gdb-header-click-event-handler=0A+=20=20=20=20=20=20=20=20=20=20=20=20=20= =20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20= =20#'gdb-registers-remove-from-display)))=0A+=20=20=20=20=20=20=20=20=20=20= =20=20=20=20"|"=0A+=20=20=20=20=20=20=20=20=20=20=20=20=20=20(propertize=20= "+"=0A+=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20= =20=20=20=20'face=20'font-lock-warning-face=0A+=20=20=20=20=20=20=20=20=20= =20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20'help-echo=20= "mouse-1:=20add=20register=20pattern=20to=20display=20filter"=0A+=20=20=20= =20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20= 'mouse-face=20'mode-line-highlight=0A+=20=20=20=20=20=20=20=20=20=20=20=20= =20=20=20=20=20=20=20=20=20=20=20=20=20=20'local-map=20= (gdb-make-header-line-mouse-map=0A+=20=20=20=20=20=20=20=20=20=20=20=20=20= =20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20= 'mouse-1=0A+=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20= =20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20= (gdb-header-click-event-handler=0A+=20=20=20=20=20=20=20=20=20=20=20=20=20= =20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20= =20#'gdb-registers-add-to-display)))=0A+=20=20=20=20=20=20=20=20=20=20=20= =20=20=20"]")))))=0A=20=0A=20(define-derived-mode=20gdb-registers-mode=20= gdb-parent-mode=20"Registers"=0A=20=20=20"Major=20mode=20for=20gdb=20= registers."=0A--=20=0A2.25.0=0A=0A= --Apple-Mail=_768D9969-4A17-4F5F-9BA7-8A0B6E8818E0 Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset=us-ascii --Apple-Mail=_768D9969-4A17-4F5F-9BA7-8A0B6E8818E0-- From unknown Wed Sep 10 06:21:07 2025 X-Loop: help-debbugs@gnu.org Subject: bug#39179: 27.0.50; [PATCH] Add filter to gdb-mi register buffer Resent-From: Yuan Fu Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 01 Feb 2020 02:23:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 39179 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: patch To: Eli Zaretskii Cc: 39179@debbugs.gnu.org Received: via spool by 39179-submit@debbugs.gnu.org id=B39179.158052376618083 (code B ref 39179); Sat, 01 Feb 2020 02:23:02 +0000 Received: (at 39179) by debbugs.gnu.org; 1 Feb 2020 02:22:46 +0000 Received: from localhost ([127.0.0.1]:38254 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ixiQo-0004ha-JP for submit@debbugs.gnu.org; Fri, 31 Jan 2020 21:22:46 -0500 Received: from mail-qk1-f171.google.com ([209.85.222.171]:38834) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ixiQm-0004hN-29 for 39179@debbugs.gnu.org; Fri, 31 Jan 2020 21:22:44 -0500 Received: by mail-qk1-f171.google.com with SMTP id k6so8628019qki.5 for <39179@debbugs.gnu.org>; Fri, 31 Jan 2020 18:22:44 -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=Xs9NZ5cX8/68f8j+4DNScrJDQ6E1fZtSFsrKr6+pDe4=; b=smxd+88Hmq6nmGgyFYwtr0oHGKX6CJ8QrGX64ylUfUR19QHi0bOsXpcmqEx2tzDwhC eS8OE6SBGiL7DLik6+/WHbcoZuhvYY+x2SyMB9F5bngfGJdABtDF5fQcO/d6bK7rGUvL P15c7lfPC3gcuw6G7yQLzSdyWMsN0WZ1RB+1BuNX/vzLBGislInKL0qcef7735uEHvDd o89tH4rOMz4yerVMO0fvGnKPt+U+ts0uLRMZLO7HJxIqp5HGST/oU20WPeIScivHC+g9 BX0vUw73vmW3IqCTPPMPPQuTYb0lwdy2JtfX9XVuvbxOBkgZl5t04/CiPxTperSQwQmH vvig== 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=Xs9NZ5cX8/68f8j+4DNScrJDQ6E1fZtSFsrKr6+pDe4=; b=IO211F6W5dqF/6pIXjIPSIFuJFtDaw8zB8qEBc9PU2esUtIFgx1LdoUQVI7S05y8DH mvVFTB7Xk47+WKsoHui8fSWZ93wlmZYKyoMuzQCyrbjdXXFbPoadE/2naMeYs8pD6jg1 2uAKdHVk4bJl3Kq1/jFeCcqyVFc+EgwIwvQYA7BpAml5EHK9m/s/1bVBD0s4gbx8d9Dr TXDDZNeuJt16F/m67Fsoq89hf7+3m7LWWtQjwGTu4vSvOC+WrFEk/MTebudejyUUGEmz LIe7COUIf3fE5K1xi3JNCVTpZCucEXnJAhN14E4RX8ZU2WK6AExkc7Y/3SA8kafzYpwv pG8A== X-Gm-Message-State: APjAAAVU3aRCUsRCIeNIekaKvXtDIJnrcIYKl0OI7nb2SC0jXsUnjuMN rapA1L7EqSbs0DqWZMHQFqs= X-Google-Smtp-Source: APXvYqxqomcgM6q4nB5tImRokBUmhPfyhTpf+lPVUmPFkVbd6NMWZtXNaQBWDeNcUa3UkLznV7W0bg== X-Received: by 2002:ae9:f303:: with SMTP id p3mr1437790qkg.344.1580523758476; Fri, 31 Jan 2020 18:22:38 -0800 (PST) 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 s67sm5390123qke.1.2020.01.31.18.22.36 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 31 Jan 2020 18:22:37 -0800 (PST) From: Yuan Fu Message-Id: <892DCEF7-8D31-4894-834C-57ACFEBF3968@gmail.com> Content-Type: multipart/mixed; boundary="Apple-Mail=_8BF59A1F-6A41-4608-8361-0EFB8BB2C435" Mime-Version: 1.0 (Mac OS X Mail 13.0 \(3608.40.2.2.4\)) Date: Fri, 31 Jan 2020 21:22:31 -0500 In-Reply-To: <30AFA53A-2A18-4E6A-A215-F0DEF4FB6B12@gmail.com> References: <7ADCB299-819A-4D1F-A95A-03655C997E57@gmail.com> <83o8ukkkza.fsf@gnu.org> <30AFA53A-2A18-4E6A-A215-F0DEF4FB6B12@gmail.com> X-Mailer: Apple Mail (2.3608.40.2.2.4) X-Spam-Score: 0.0 (/) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) --Apple-Mail=_8BF59A1F-6A41-4608-8361-0EFB8BB2C435 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=us-ascii Sorry, I forgot to fix the white spaces after period in the commit = message. Here is the correct one. Yuan --Apple-Mail=_8BF59A1F-6A41-4608-8361-0EFB8BB2C435 Content-Disposition: attachment; filename=register-fixed.patch Content-Type: application/octet-stream; x-unix-mode=0700; name="register-fixed.patch" Content-Transfer-Encoding: quoted-printable =46rom=2047bfc24e08b3a07d8a5b9bda8f38cd23421a1ac4=20Mon=20Sep=2017=20= 00:00:00=202001=0AFrom:=20Yuan=20Fu=20=0ADate:=20Sun,=20= 6=20Oct=202019=2014:10:14=20-0400=0ASubject:=20[PATCH]=20Add=20register=20= filters=20to=20gdb-mi=0A=0AAdd=20filtering=20feature=20to=20register=20= buffer=20of=20gdb-mi.=0AUser=20can=20add=20or=20remove=20registers=20= they=20want=20to=20see.=0A=0AOn=20startup,=20there=20will=20be=20a=20= button=20"[filter=20off]"=20on=20the=20header=20line=0Aof=20the=20= register=20buffer.=20=20Clicking=20on=20it=20enables=20the=20register=20= filter,=0Achanges=20the=20button=20to=20"[filter=20on]"=20and=20adds=20a=20= "[-|+]"=20button=20next=20to=0Ait.=20=20Click=20"+"=20to=20add=20= patterns=20to=20the=20pattern=20list,=20click=20"-"=20to=0Aremove.=20=20= Register=20whose=20name=20matches=20any=20pattern=20in=20the=20list=20is=0A= displayed.=20=20You=20can=20also=20use=20key=20"f"=20for=20toggle,=20"+"=20= to=20add=20pattern,=0A"-"=20to=20remove=20pattern.=0A=0A*=20= lisp/progmodes/gdb-mi.el=20(gdb-registers-enable-filter,=0A= gdb-registers-filter-pattern-list,=20gdb-header-click-event-handler,=0A= gdb-registers-add-to-display,=20gdb-registers-remove-from-display,=0A= gdb-registers-toggle-filter):=20New=20functions.=0A= (gdb-registers-handler-custom):=20Condition=20check=20before=20adding=20= each=0Aregister.=0A(gdb-registers-mode-map):=20New=20keys.=0A= (gdb-registers-header):=20New=20buttons.=0A---=0A=20= lisp/progmodes/gdb-mi.el=20|=20137=20= +++++++++++++++++++++++++++++++++++----=0A=201=20file=20changed,=20125=20= insertions(+),=2012=20deletions(-)=0A=0Adiff=20--git=20= a/lisp/progmodes/gdb-mi.el=20b/lisp/progmodes/gdb-mi.el=0Aindex=20= 60852e4ad6..aafdbad2c9=20100644=0A---=20a/lisp/progmodes/gdb-mi.el=0A+++=20= b/lisp/progmodes/gdb-mi.el=0A@@=20-535,6=20+535,24=20@@=20= gdb-show-threads-by-default=0A=20=20=20:group=20'gdb-buffers=0A=20=20=20= :version=20"23.2")=0A=20=0A+;;=20Automatically=20local=20because=20we=20= don't=20want=20filters=20persist=20across=20gdb=20sessions.=0A= +(defcustom=20gdb-registers-enable-filter=20nil=0A+=20=20"If=20t,=20= enable=20register=20name=20filter=20in=20register=20buffer."=0A+=20=20= :local=20t=0A+=20=20:type=20'boolean=0A+=20=20:group=20'gdb-buffers=0A+=20= =20:version=20"27.1")=0A+=0A+(defcustom=20= gdb-registers-filter-pattern-list=20nil=0A+=20=20"Registers=20that=20are=20= displayed=20in=20register=20buffer.=0A+=0A+Should=20be=20a=20list.=20=20= Registers=20whose=20name=20can=20match=0A+any=20of=20the=20regexps=20in=20= the=20list=20is=20displayed."=0A+=20=20:local=20t=0A+=20=20:type=20'list=0A= +=20=20:group=20'gdb-buffers=0A+=20=20:version=20"28.1")=0A+=0A=20= (defvar=20gdb-debug-log=20nil=0A=20=20=20"List=20of=20commands=20sent=20= to=20and=20replies=20received=20from=20GDB.=0A=20Most=20recent=20= commands=20are=20listed=20first.=20=20This=20list=20stores=20only=20the=20= last=0A@@=20-4238,6=20+4256,53=20@@=20gdb-frame-locals-buffer=0A=20=20= 'gdb-registers-mode=0A=20=20'gdb-invalidate-registers)=0A=20=0A+(defun=20= gdb-header-click-event-handler=20(function)=0A+=20=20"Return=20a=20= function=20that=20handles=20clicking=20event=20on=20gdb=20header=20= buttons.=0A+=0A+This=20function=20switches=20to=20the=20window=20where=20= the=20header=20locates=20and=0A+executes=20FUNCTION."=0A+=20=20(lambda=20= (event)=0A+=20=20=20=20(interactive=20"e")=0A+=20=20=20=20= (save-selected-window=0A+=20=20=20=20=20=20;;=20Make=20sure=20we=20are=20= in=20the=20right=20buffer.=0A+=20=20=20=20=20=20(select-window=20= (posn-window=20(event-start=20event)))=0A+=20=20=20=20=20=20(funcall=20= function))))=0A+=0A+(defun=20gdb-registers-add-to-display=20()=0A+=20=20= "Add=20register=20to=20display=20in=20register=20buffer.=0A+=0A+Prompt=20= for=20a=20register=20pattern.=20=20The=20pattern=20should=20be=20a=20= regexp=0A+pattern=20matching=20the=20name=20of=20the=20register(s)=20you=20= want=20to=0A+display."=0A+=20=20(interactive)=0A+=20=20(let=20((register=20= (completing-read=20"Register=20pattern:=20"=0A+=20=20=20=20=20=20=20=20=20= =20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20= =20gdb-register-names)))=0A+=20=20=20=20(cl-pushnew=20register=20= gdb-registers-filter-pattern-list)=0A+=20=20=20=20;;=20Update=20register=20= buffer.=0A+=20=20=20=20(gdb-invalidate-registers=20'update)))=0A+=0A= +(defun=20gdb-registers-remove-from-display=20()=0A+=20=20"Remove=20= register=20from=20display=20in=20register=20buffer.=0A+=0A+Prompt=20for=20= a=20register=20pattern.=20=20The=20pattern=20should=20be=20a=20pattern=0A= +you=20want=20to=20remove=20from=20the=20existing=20patterns."=0A+=20=20= (interactive)=0A+=20=20(let=20((register=20(completing-read=20"Register=20= pattern:=20"=0A+=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20= =20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20= gdb-registers-filter-pattern-list=0A+=20=20=20=20=20=20=20=20=20=20=20=20= =20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20nil=20= t)))=20;=20require=20match=0A+=20=20=20=20(setq=20= gdb-registers-filter-pattern-list=0A+=20=20=20=20=20=20=20=20=20=20= (remove=20register=20gdb-registers-filter-pattern-list))=0A+=20=20=20=20= ;;=20Update=20register=20buffer.=0A+=20=20=20=20= (gdb-invalidate-registers=20'update)))=0A+=0A+(defun=20= gdb-registers-toggle-filter=20()=0A+=20=20"Toggle=20register=20filter."=0A= +=20=20(interactive)=0A+=20=20(setq=20gdb-registers-enable-filter=0A+=20=20= =20=20=20=20=20=20(not=20gdb-registers-enable-filter))=0A+=20=20;;=20= Update=20register=20buffer.=0A+=20=20(gdb-invalidate-registers=20= 'update))=0A+=0A=20(defun=20gdb-registers-handler-custom=20()=0A=20=20=20= (when=20gdb-register-names=0A=20=20=20=20=20(let=20((register-values=0A= @@=20-4248,17=20+4313,24=20@@=20gdb-registers-handler-custom=0A=20=20=20=20= =20=20=20=20=20=20=20=20=20=20=20=20(value=20(bindat-get-field=20= register=20'value))=0A=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20= (register-name=20(nth=20(string-to-number=20register-number)=0A=20=20=20=20= =20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20= =20=20=20=20=20=20=20gdb-register-names)))=0A-=20=20=20=20=20=20=20=20=20= =20(gdb-table-add-row=0A-=20=20=20=20=20=20=20=20=20=20=20table=0A-=20=20= =20=20=20=20=20=20=20=20=20(list=0A-=20=20=20=20=20=20=20=20=20=20=20=20= (propertize=20register-name=0A-=20=20=20=20=20=20=20=20=20=20=20=20=20=20= =20=20=20=20=20=20=20=20=20=20'font-lock-face=20= font-lock-variable-name-face)=0A-=20=20=20=20=20=20=20=20=20=20=20=20(if=20= (member=20register-number=20gdb-changed-registers)=0A-=20=20=20=20=20=20=20= =20=20=20=20=20=20=20=20=20(propertize=20value=20'font-lock-face=20= font-lock-warning-face)=0A-=20=20=20=20=20=20=20=20=20=20=20=20=20=20= value))=0A-=20=20=20=20=20=20=20=20=20=20=20`(mouse-face=20highlight=0A-=20= =20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20= help-echo=20"mouse-2:=20edit=20value"=0A-=20=20=20=20=20=20=20=20=20=20=20= =20=20=20=20=20=20=20=20=20=20=20=20=20gdb-register-name=20= ,register-name))))=0A+=20=20=20=20=20=20=20=20=20=20;;=20Add=20register=20= if=20`gdb-display-these-registers'=20is=20t;=0A+=20=20=20=20=20=20=20=20=20= =20;;=20or=20any=20pattern=20that=20`gdb-display-these-registers'=20= matches.=0A+=20=20=20=20=20=20=20=20=20=20(when=20(or=20(not=20= gdb-registers-enable-filter)=0A+=20=20=20=20=20=20=20=20=20=20=20=20=20=20= =20=20=20=20=20=20(cl-loop=20for=20pattern=20in=20= gdb-registers-filter-pattern-list=0A+=20=20=20=20=20=20=20=20=20=20=20=20= =20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20if=20(string-match=20= pattern=20register-name)=0A+=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20= =20=20=20=20=20=20=20=20=20=20=20=20=20=20return=20t=0A+=20=20=20=20=20=20= =20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20= finally=20return=20nil))=0A+=20=20=20=20=20=20=20=20=20=20=20=20= (gdb-table-add-row=0A+=20=20=20=20=20=20=20=20=20=20=20=20=20table=0A+=20= =20=20=20=20=20=20=20=20=20=20=20=20(list=0A+=20=20=20=20=20=20=20=20=20=20= =20=20=20=20(propertize=20register-name=0A+=20=20=20=20=20=20=20=20=20=20= =20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20'font-lock-face=20= font-lock-variable-name-face)=0A+=20=20=20=20=20=20=20=20=20=20=20=20=20=20= (if=20(member=20register-number=20gdb-changed-registers)=0A+=20=20=20=20=20= =20=20=20=20=20=20=20=20=20=20=20=20=20(propertize=20value=20= 'font-lock-face=20font-lock-warning-face)=0A+=20=20=20=20=20=20=20=20=20=20= =20=20=20=20=20=20value))=0A+=20=20=20=20=20=20=20=20=20=20=20=20=20= `(mouse-face=20highlight=0A+=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20= =20=20=20=20=20=20=20=20=20=20=20help-echo=20"mouse-2:=20edit=20value"=0A= +=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20= =20=20gdb-register-name=20,register-name)))))=0A=20=20=20=20=20=20=20= (insert=20(gdb-table-string=20table=20"=20")))=0A=20=20=20=20=20(setq=20= mode-name=0A=20=20=20=20=20=20=20=20=20=20=20= (gdb-current-context-mode-name=20"Registers"))))=0A@@=20-4287,6=20= +4359,9=20@@=20gdb-registers-mode-map=0A=20=20=20=20=20=20=20=20=20=20=20= =20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20= (gdb-get-buffer-create=0A=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20= =20=20=20=20=20=20=20=20=20=20=20=20=20=20'gdb-locals-buffer=0A=20=20=20=20= =20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20= =20gdb-thread-number)=20t)))=0A+=20=20=20=20(define-key=20map=20"+"=20= #'gdb-registers-add-to-display)=0A+=20=20=20=20(define-key=20map=20"-"=20= #'gdb-registers-remove-from-display)=0A+=20=20=20=20(define-key=20map=20= "f"=20#'gdb-registers-toggle-filter)=0A=20=20=20=20=20map))=0A=20=0A=20= (defvar=20gdb-registers-header=0A@@=20-4296,7=20+4371,45=20@@=20= gdb-registers-header=0A=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20= =20=20=20=20=20=20=20=20=20=20mode-line-inactive)=0A=20=20=20=20"=20"=0A=20= =20=20=20(gdb-propertize-header=20"Registers"=20gdb-registers-buffer=0A-=09= =09=09=20=20nil=20nil=20mode-line)))=0A+=09=09=09=20=20nil=20nil=20= mode-line)=0A+=0A+=20=20=20'(:eval=20(if=20(not=20= gdb-registers-enable-filter)=0A+=20=20=20=20=20=20=20=20=20=20=20=20=20=20= =20(propertize=20"=20[filter=20off]"=0A+=20=20=20=20=20=20=20=20=20=20=20= =20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20'face=20'shadow=0A+=20=20= =20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20= 'help-echo=20"mouse-1:=20toggle=20filter"=0A+=20=20=20=20=20=20=20=20=20=20= =20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20'mouse-face=20= 'mode-line-highlight=0A+=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20= =20=20=20=20=20=20=20=20=20=20'local-map=20= (gdb-make-header-line-mouse-map=0A+=20=20=20=20=20=20=20=20=20=20=20=20=20= =20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20= =20'mouse-1=0A+=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20= =20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20= (gdb-header-click-event-handler=0A+=20=20=20=20=20=20=20=20=20=20=20=20=20= =20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20= =20=20#'gdb-registers-toggle-filter)))=0A+=20=20=20=20=20=20=20=20=20=20=20= =20=20(concat=20;=20enable=20filter=0A+=20=20=20=20=20=20=20=20=20=20=20=20= =20=20(propertize=20"=20[filter=20on]"=0A+=20=20=20=20=20=20=20=20=20=20=20= =20=20=20=20=20=20=20=20=20=20=20=20=20=20=20'face=20'(:weight=20bold=20= :inherit=20success)=0A+=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20= =20=20=20=20=20=20=20=20=20'help-echo=20"mouse-1:=20toggle=20filter"=0A+=20= =20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20= 'mouse-face=20'mode-line-highlight=0A+=20=20=20=20=20=20=20=20=20=20=20=20= =20=20=20=20=20=20=20=20=20=20=20=20=20=20'local-map=20= (gdb-make-header-line-mouse-map=0A+=20=20=20=20=20=20=20=20=20=20=20=20=20= =20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20= 'mouse-1=0A+=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20= =20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20= (gdb-header-click-event-handler=0A+=20=20=20=20=20=20=20=20=20=20=20=20=20= =20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20= =20#'gdb-registers-toggle-filter)))=0A+=20=20=20=20=20=20=20=20=20=20=20=20= =20=20"=20["=0A+=20=20=20=20=20=20=20=20=20=20=20=20=20=20(propertize=20= "-"=0A+=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20= =20=20=20=20'face=20'font-lock-warning-face=0A+=20=20=20=20=20=20=20=20=20= =20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20'help-echo=20= "mouse-1:=20remove=20register=20pattern=20from=20display=20filter"=0A+=20= =20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20= 'mouse-face=20'mode-line-highlight=0A+=20=20=20=20=20=20=20=20=20=20=20=20= =20=20=20=20=20=20=20=20=20=20=20=20=20=20'local-map=20= (gdb-make-header-line-mouse-map=0A+=20=20=20=20=20=20=20=20=20=20=20=20=20= =20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20= 'mouse-1=0A+=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20= =20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20= (gdb-header-click-event-handler=0A+=20=20=20=20=20=20=20=20=20=20=20=20=20= =20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20= =20#'gdb-registers-remove-from-display)))=0A+=20=20=20=20=20=20=20=20=20=20= =20=20=20=20"|"=0A+=20=20=20=20=20=20=20=20=20=20=20=20=20=20(propertize=20= "+"=0A+=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20= =20=20=20=20'face=20'font-lock-warning-face=0A+=20=20=20=20=20=20=20=20=20= =20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20'help-echo=20= "mouse-1:=20add=20register=20pattern=20to=20display=20filter"=0A+=20=20=20= =20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20= 'mouse-face=20'mode-line-highlight=0A+=20=20=20=20=20=20=20=20=20=20=20=20= =20=20=20=20=20=20=20=20=20=20=20=20=20=20'local-map=20= (gdb-make-header-line-mouse-map=0A+=20=20=20=20=20=20=20=20=20=20=20=20=20= =20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20= 'mouse-1=0A+=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20= =20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20= (gdb-header-click-event-handler=0A+=20=20=20=20=20=20=20=20=20=20=20=20=20= =20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20= =20#'gdb-registers-add-to-display)))=0A+=20=20=20=20=20=20=20=20=20=20=20= =20=20=20"]")))))=0A=20=0A=20(define-derived-mode=20gdb-registers-mode=20= gdb-parent-mode=20"Registers"=0A=20=20=20"Major=20mode=20for=20gdb=20= registers."=0A--=20=0A2.25.0=0A=0A= --Apple-Mail=_8BF59A1F-6A41-4608-8361-0EFB8BB2C435-- From unknown Wed Sep 10 06:21:07 2025 X-Loop: help-debbugs@gnu.org Subject: bug#39179: 27.0.50; [PATCH] Add filter to gdb-mi register buffer Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 01 Feb 2020 08:00:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 39179 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: patch To: Yuan Fu Cc: 39179@debbugs.gnu.org Received: via spool by 39179-submit@debbugs.gnu.org id=B39179.158054394417353 (code B ref 39179); Sat, 01 Feb 2020 08:00:02 +0000 Received: (at 39179) by debbugs.gnu.org; 1 Feb 2020 07:59:04 +0000 Received: from localhost ([127.0.0.1]:38316 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ixngG-0004Vp-1i for submit@debbugs.gnu.org; Sat, 01 Feb 2020 02:59:04 -0500 Received: from eggs.gnu.org ([209.51.188.92]:57584) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ixngE-0004VM-Pv for 39179@debbugs.gnu.org; Sat, 01 Feb 2020 02:59:03 -0500 Received: from fencepost.gnu.org ([2001:470:142:3::e]:34714) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ixng9-0003iD-IX; Sat, 01 Feb 2020 02:58:57 -0500 Received: from [176.228.60.248] (port=2454 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1ixng8-0005sq-3r; Sat, 01 Feb 2020 02:58:57 -0500 Date: Sat, 01 Feb 2020 09:58:39 +0200 Message-Id: <83d0aykac0.fsf@gnu.org> From: Eli Zaretskii In-reply-to: <30AFA53A-2A18-4E6A-A215-F0DEF4FB6B12@gmail.com> (message from Yuan Fu on Fri, 31 Jan 2020 18:08:18 -0500) References: <7ADCB299-819A-4D1F-A95A-03655C997E57@gmail.com> <83o8ukkkza.fsf@gnu.org> <30AFA53A-2A18-4E6A-A215-F0DEF4FB6B12@gmail.com> MIME-version: 1.0 Content-type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Spam-Score: -0.7 (/) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.7 (-) > From: Yuan Fu > Date: Fri, 31 Jan 2020 18:08:18 -0500 > Cc: 39179@debbugs.gnu.org > > > I'm not sure it's a good idea to implement this as a button on the > > header-line. Such buttons are for frequent operations, and also have > > the disadvantage of being unavailable on TTY frames. What are the > > chances users will need to redefine the register patters frequently > > enough to justify the button? Wouldn't it be much easier to have a > > defcustom whose value users could interactively modify as needed? > > I mainly use it to display only the registers I care about, say, all > the *dx registers (rdx, edx, dx) or all the r** registers (rdx, rsi, > etc). I understand, but why wouldn't a simple defcustom do this job? A list of registers to display is a simple thing, no? > And that depends on the program you are working on. Really? In what way? I could only understand why you'd like to see FP registers in some programs, but not in others. But other than that, why would you want to see this or that register? Are you frequently debugging on the machine language level? > The main motivation behind this patch is that, currently the register buffer simply displays all the possible registers (153 on my machine), and tracking on some of them is very hard (scrolling back and forth, very annoying). Then perhaps we should allow reordering the registers instead of filtering their list, so that registers you want to see are at the beginning? > So this feather is a session-based quick filtering for interesting registers, I don’t think defcustom makes it better. Why don't you think a defcustom will do? > +(defcustom gdb-registers-enable-filter nil > + "If t, enable register name filter in register buffer." > + :local t > + :type 'boolean > + :group 'gdb-buffers > + :version "27.1") This should be "28.1", not "27.1". > +(defcustom gdb-registers-filter-pattern-list nil > + "Registers that are displayed in register buffer. > + > +Should be a list. Registers whose name can match > +any of the regexps in the list is displayed." ^^ "are" > + :local t > + :type 'list > + :group 'gdb-buffers > + :version "28.1") > + > (defvar gdb-debug-log nil > "List of commands sent to and replies received from GDB. > Most recent commands are listed first. This list stores only the last > @@ -4238,6 +4256,53 @@ gdb-frame-locals-buffer > 'gdb-registers-mode > 'gdb-invalidate-registers) > > +(defun gdb-header-click-event-handler (function) > + "Return a function that handles clicking event on gdb header buttons. This doesn't really return a function, it calls it, right? But before we discuss the particular code, let's please first agree on the design, OK? From unknown Wed Sep 10 06:21:07 2025 X-Loop: help-debbugs@gnu.org Subject: bug#39179: 27.0.50; [PATCH] Add filter to gdb-mi register buffer Resent-From: Yuan Fu Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sun, 02 Feb 2020 14:33:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 39179 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: patch To: Eli Zaretskii Cc: 39179@debbugs.gnu.org Received: via spool by 39179-submit@debbugs.gnu.org id=B39179.158065398111573 (code B ref 39179); Sun, 02 Feb 2020 14:33:01 +0000 Received: (at 39179) by debbugs.gnu.org; 2 Feb 2020 14:33:01 +0000 Received: from localhost ([127.0.0.1]:39692 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1iyGJ2-00030Z-P7 for submit@debbugs.gnu.org; Sun, 02 Feb 2020 09:33:01 -0500 Received: from mail-qt1-f181.google.com ([209.85.160.181]:33660) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1iyGJ0-00030H-Kk for 39179@debbugs.gnu.org; Sun, 02 Feb 2020 09:32:59 -0500 Received: by mail-qt1-f181.google.com with SMTP id d5so9455402qto.0 for <39179@debbugs.gnu.org>; Sun, 02 Feb 2020 06:32:58 -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=pZvp6fOVLqA0gnep3ZWxzuS4rBhx+yUgtQk2fRPl254=; b=BOESD1uKGPgAE7OM32zx8x7p/OItzuWlOxh2sb1iL8XJlMXzWN2Arq8Tla7MMaY3DU rWWmV17J/t+wvSkdDfjgMygtDzynO0PbC6Y1Abe0Tc2pcJrW7ZQl/8L6Ew2TAURNDlrQ vSMuRJZ2UFaYEAxj/YBB23oFVHZqbv1odkQxgoczEVY75s62e/Yai5dDmCjadJdewySK PYLC5/e9zSU4bT/OO/9MyxJUDBR49cnwxX7PnjanhXy1EThp/7mY+ivuXfBpKuEFBJcj tqpJKqn64JsED8q/TpkQTtQuJzLNCIo3pFB5uissvfbl6Deuy89m5M3BUUMo1nxqZnUn d5qg== 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=pZvp6fOVLqA0gnep3ZWxzuS4rBhx+yUgtQk2fRPl254=; b=loZfXYt89utdMNE69zACX4z3AL3IE0nZXAj8MQu/pBJO90qa47sSzYVstA4oviWN3q oxEC4GJeeOYBCcmNFQ6vuGth0jxzhuQIP33mYmJyWK0b70hGxPkxktGBBcy36gDLURFO gl/+/dm7QIkQSE3IVAF1KmaKnOQcIjs01piqMj6UOUPgI7SwIpFCcjFV8IUyj6FYs76b x6dYpDVp/hdlnAAj/3uoKhY8I2og4Jmu91Twm7zKrbdR07rLVjF14s0l1XzhIU3SWdrp 6s3BengK50ehTKd2qfXzSnKKFx2aBCLuNuZm7kIeeu02p8qS848F1gM8VO55vgF3X7ed Mkfw== X-Gm-Message-State: APjAAAV+oGYpatELZn+fqW9r6TRWPU2CrFL4kBCAKjglHfI8EcEurilc oI3Tpp6NWAG9SJ+VErlyvlY= X-Google-Smtp-Source: APXvYqyPRHpRdh1qBdfjLgf1bz6RjFeVcI9rtxm9nvjR4Yi4y7qnxwibqun1rI5cYNJznEayr23QAQ== X-Received: by 2002:ac8:6650:: with SMTP id j16mr19649982qtp.294.1580653972984; Sun, 02 Feb 2020 06:32:52 -0800 (PST) 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 q130sm7545413qka.114.2020.02.02.06.32.52 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sun, 02 Feb 2020 06:32:52 -0800 (PST) Content-Type: text/plain; charset=utf-8 Mime-Version: 1.0 (Mac OS X Mail 13.0 \(3608.40.2.2.4\)) From: Yuan Fu In-Reply-To: <83d0aykac0.fsf@gnu.org> Date: Sun, 2 Feb 2020 09:32:45 -0500 Content-Transfer-Encoding: quoted-printable Message-Id: <60CA7D7C-F6ED-4BEC-817A-35BCE7E120CB@gmail.com> References: <7ADCB299-819A-4D1F-A95A-03655C997E57@gmail.com> <83o8ukkkza.fsf@gnu.org> <30AFA53A-2A18-4E6A-A215-F0DEF4FB6B12@gmail.com> <83d0aykac0.fsf@gnu.org> X-Mailer: Apple Mail (2.3608.40.2.2.4) X-Spam-Score: -0.0 (/) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) > On Feb 1, 2020, at 2:58 AM, Eli Zaretskii wrote: >=20 >> From: Yuan Fu >> Date: Fri, 31 Jan 2020 18:08:18 -0500 >> Cc: 39179@debbugs.gnu.org >>=20 >>> I'm not sure it's a good idea to implement this as a button on the >>> header-line. Such buttons are for frequent operations, and also = have >>> the disadvantage of being unavailable on TTY frames. What are the >>> chances users will need to redefine the register patters frequently >>> enough to justify the button? Wouldn't it be much easier to have a >>> defcustom whose value users could interactively modify as needed? >>=20 >> I mainly use it to display only the registers I care about, say, all >> the *dx registers (rdx, edx, dx) or all the r** registers (rdx, rsi, >> etc). >=20 > I understand, but why wouldn't a simple defcustom do this job? A list > of registers to display is a simple thing, no? My main concern is that defcustom wouldn=E2=80=99t be as convenient as = the current one. Right now I only need `f + .*dx` and I=E2=80=99m good = to go, whereas defcustom I need to go to customize and configure there, = and come back. >> And that depends on the program you are working on. >=20 > Really? In what way? I could only understand why you'd like to see > FP registers in some programs, but not in others. But other than > that, why would you want to see this or that register? Are you > frequently debugging on the machine language level? Honestly I only used this for the bomb lab in my CS course last semester = where we need to debug assembly code. So if you think in real life = scenarios we don=E2=80=99t really need this _quick_ filtering and = customize will cut it. I=E2=80=99m fine with that too. Is your main = reason of objection the (unnecessary) complexity of the code? >> The main motivation behind this patch is that, currently the register = buffer simply displays all the possible registers (153 on my machine), = and tracking on some of them is very hard (scrolling back and forth, = very annoying). >=20 > Then perhaps we should allow reordering the registers instead of > filtering their list, so that registers you want to see are at the > beginning? That would be more complex that just filtering IMO.=20 >=20 >> So this feather is a session-based quick filtering for interesting = registers, I don=E2=80=99t think defcustom makes it better. >=20 > Why don't you think a defcustom will do? In the =E2=80=9Cquick=E2=80=9D aspect (as I described above). >=20 >> +(defcustom gdb-registers-enable-filter nil >> + "If t, enable register name filter in register buffer." >> + :local t >> + :type 'boolean >> + :group 'gdb-buffers >> + :version "27.1") >=20 > This should be "28.1", not "27.1". >=20 >> +(defcustom gdb-registers-filter-pattern-list nil >> + "Registers that are displayed in register buffer. >> + >> +Should be a list. Registers whose name can match >> +any of the regexps in the list is displayed." > ^^ > "are" >=20 >> + :local t >> + :type 'list >> + :group 'gdb-buffers >> + :version "28.1") >> + >> (defvar gdb-debug-log nil >> "List of commands sent to and replies received from GDB. >> Most recent commands are listed first. This list stores only the = last >> @@ -4238,6 +4256,53 @@ gdb-frame-locals-buffer >> 'gdb-registers-mode >> 'gdb-invalidate-registers) >>=20 >> +(defun gdb-header-click-event-handler (function) >> + "Return a function that handles clicking event on gdb header = buttons. >=20 > This doesn't really return a function, it calls it, right? >=20 > But before we discuss the particular code, let's please first agree on > the design, OK? That=E2=80=99s ideal. Thanks, Yuan From unknown Wed Sep 10 06:21:07 2025 X-Loop: help-debbugs@gnu.org Subject: bug#39179: 27.0.50; [PATCH] Add filter to gdb-mi register buffer Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sun, 02 Feb 2020 15:53:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 39179 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: patch To: Yuan Fu Cc: 39179@debbugs.gnu.org Received: via spool by 39179-submit@debbugs.gnu.org id=B39179.158065877328119 (code B ref 39179); Sun, 02 Feb 2020 15:53:02 +0000 Received: (at 39179) by debbugs.gnu.org; 2 Feb 2020 15:52:53 +0000 Received: from localhost ([127.0.0.1]:40432 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1iyHYL-0007JT-GK for submit@debbugs.gnu.org; Sun, 02 Feb 2020 10:52:53 -0500 Received: from eggs.gnu.org ([209.51.188.92]:39784) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1iyHYJ-0007JE-Kq for 39179@debbugs.gnu.org; Sun, 02 Feb 2020 10:52:51 -0500 Received: from fencepost.gnu.org ([2001:470:142:3::e]:52491) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1iyHYE-0001Vg-Ef; Sun, 02 Feb 2020 10:52:46 -0500 Received: from [176.228.60.248] (port=4882 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1iyHYD-0001Yj-Sy; Sun, 02 Feb 2020 10:52:46 -0500 Date: Sun, 02 Feb 2020 17:52:31 +0200 Message-Id: <83h809htq8.fsf@gnu.org> From: Eli Zaretskii In-reply-to: <60CA7D7C-F6ED-4BEC-817A-35BCE7E120CB@gmail.com> (message from Yuan Fu on Sun, 2 Feb 2020 09:32:45 -0500) References: <7ADCB299-819A-4D1F-A95A-03655C997E57@gmail.com> <83o8ukkkza.fsf@gnu.org> <30AFA53A-2A18-4E6A-A215-F0DEF4FB6B12@gmail.com> <83d0aykac0.fsf@gnu.org> <60CA7D7C-F6ED-4BEC-817A-35BCE7E120CB@gmail.com> MIME-version: 1.0 Content-type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Spam-Score: -0.7 (/) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.7 (-) > From: Yuan Fu > Date: Sun, 2 Feb 2020 09:32:45 -0500 > Cc: 39179@debbugs.gnu.org > > >> I mainly use it to display only the registers I care about, say, all > >> the *dx registers (rdx, edx, dx) or all the r** registers (rdx, rsi, > >> etc). > > > > I understand, but why wouldn't a simple defcustom do this job? A list > > of registers to display is a simple thing, no? > > My main concern is that defcustom wouldn’t be as convenient as the current one. Right now I only need `f + .*dx` and I’m good to go, whereas defcustom I need to go to customize and configure there, and come back. Sure, but this convenience is only a significant consideration for a feature that is supposed to be used very frequently. I don't think this is so in this case. > > Really? In what way? I could only understand why you'd like to see > > FP registers in some programs, but not in others. But other than > > that, why would you want to see this or that register? Are you > > frequently debugging on the machine language level? > > Honestly I only used this for the bomb lab in my CS course last semester where we need to debug assembly code. So if you think in real life scenarios we don’t really need this _quick_ filtering and customize will cut it. I’m fine with that too. Good, then let's do it via a defcustom. > Is your main reason of objection the (unnecessary) complexity of the code? No, my main reason is to avoid unnecessarily cluttering the UI. > > Then perhaps we should allow reordering the registers instead of > > filtering their list, so that registers you want to see are at the > > beginning? > > That would be more complex that just filtering IMO. OK. Thanks. From unknown Wed Sep 10 06:21:07 2025 X-Loop: help-debbugs@gnu.org Subject: bug#39179: 27.0.50; [PATCH] Add filter to gdb-mi register buffer Resent-From: Lars Ingebrigtsen Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sun, 09 Aug 2020 11:59:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 39179 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: patch To: Eli Zaretskii Cc: Yuan Fu , 39179@debbugs.gnu.org Received: via spool by 39179-submit@debbugs.gnu.org id=B39179.159697428423516 (code B ref 39179); Sun, 09 Aug 2020 11:59:02 +0000 Received: (at 39179) by debbugs.gnu.org; 9 Aug 2020 11:58:04 +0000 Received: from localhost ([127.0.0.1]:60195 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1k4jxk-00067E-Id for submit@debbugs.gnu.org; Sun, 09 Aug 2020 07:58:04 -0400 Received: from quimby.gnus.org ([95.216.78.240]:35270) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1k4jxj-000660-Jo for 39179@debbugs.gnu.org; Sun, 09 Aug 2020 07:58:04 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnus.org; s=20200322; h=Content-Transfer-Encoding:Content-Type:MIME-Version:Message-ID :In-Reply-To:Date:References:Subject:Cc:To:From:Sender:Reply-To:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:List-Id:List-Help:List-Unsubscribe:List-Subscribe: List-Post:List-Owner:List-Archive; bh=Ip4mNn0N/gBYY8DCSxpv+Kv+xfKS9zd+juynx84kS7o=; b=dsveLmYZw0JRZFivI1HvnEn+F0 37DrlxH89QsnSX809Cf0E3VjFh8JgOr24CuQY5Z0fhQoJZpoY2Zwgwc6cHOGbYI5z9nYLetk4Bn9e 69Mh86VDTHczYaXPVmrz6HH+dKUfi/vpuxm/EY+S3GtfboMCko5FUMiVd5og8CscfMtc=; Received: from cm-84.212.202.86.getinternet.no ([84.212.202.86] helo=xo) by quimby with esmtpsa (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1k4jxZ-0001Vx-Aq; Sun, 09 Aug 2020 13:57:56 +0200 From: Lars Ingebrigtsen References: <7ADCB299-819A-4D1F-A95A-03655C997E57@gmail.com> <83o8ukkkza.fsf@gnu.org> <30AFA53A-2A18-4E6A-A215-F0DEF4FB6B12@gmail.com> <83d0aykac0.fsf@gnu.org> <60CA7D7C-F6ED-4BEC-817A-35BCE7E120CB@gmail.com> <83h809htq8.fsf@gnu.org> Date: Sun, 09 Aug 2020 13:57:51 +0200 In-Reply-To: <83h809htq8.fsf@gnu.org> (Eli Zaretskii's message of "Sun, 02 Feb 2020 17:52:31 +0200") Message-ID: <87bljkt4jk.fsf@gnus.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Spam-Report: Spam detection software, running on the system "quimby.gnus.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see @@CONTACT_ADDRESS@@ for details. Content preview: Eli Zaretskii writes: >> Honestly I only used this for the bomb lab in my CS course last >> semester where we need to debug assembly code. So if you think in >> real life scenarios we =?UTF-8?Q?don=E2=80=99t?= really need this _quick_ filte [...] Content analysis details: (-2.9 points, 5.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- -1.0 ALL_TRUSTED Passed through trusted hosts only via SMTP -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% [score: 0.0000] X-Spam-Score: 0.0 (/) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) Eli Zaretskii writes: >> Honestly I only used this for the bomb lab in my CS course last >> semester where we need to debug assembly code. So if you think in >> real life scenarios we don=E2=80=99t really need this _quick_ filtering = and >> customize will cut it. I=E2=80=99m fine with that too. > > Good, then let's do it via a defcustom. Yuan, this was in February. Did you find time to redo the patch using a defcustom instead? --=20 (domestic pets only, the antidote for overdose, milk.) bloggy blog: http://lars.ingebrigtsen.no From unknown Wed Sep 10 06:21:07 2025 X-Loop: help-debbugs@gnu.org Subject: bug#39179: 27.0.50; [PATCH] Add filter to gdb-mi register buffer Resent-From: Yuan Fu Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 10 Aug 2020 18:21:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 39179 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: patch To: Lars Ingebrigtsen Cc: Eli Zaretskii , 39179@debbugs.gnu.org Received: via spool by 39179-submit@debbugs.gnu.org id=B39179.159708361818622 (code B ref 39179); Mon, 10 Aug 2020 18:21:02 +0000 Received: (at 39179) by debbugs.gnu.org; 10 Aug 2020 18:20:18 +0000 Received: from localhost ([127.0.0.1]:37478 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1k5CPC-0004qH-3Z for submit@debbugs.gnu.org; Mon, 10 Aug 2020 14:20:18 -0400 Received: from mail-qt1-f170.google.com ([209.85.160.170]:42276) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1k5CP8-0004q3-6S for 39179@debbugs.gnu.org; Mon, 10 Aug 2020 14:20:16 -0400 Received: by mail-qt1-f170.google.com with SMTP id c12so7502119qtn.9 for <39179@debbugs.gnu.org>; Mon, 10 Aug 2020 11:20:14 -0700 (PDT) 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=A/c1nNsaPBdbWiaNginrU/JJuQqtQYo/u0cRT/l7h9w=; b=dVshggWv+8cTiEghMQvLAXiR4B1EP13p7FKeONnkvwKtf51O8F9/AcuoEQFC9fOkmT QPOBUNoM+199ijimQlPYWOXa3ByWe9mjl8RFMWhr6vsHwKtGafCT/o0FI8Hd/WCSYXgc A9nRrXW6CfaJqni8jvMucjxA3DcwgtQZSu1Ebjf1Xzopw7hNSemgpDg+x1Kr+93ZXkzi r/HgmRU/LoFrde3rjGx1gIq9KuiY9q+SbI9Qjz1ai/yOLDIlPhOc1Wg74TexqAv+k1Pd LA1iq86DLJVJUsTzCkn3N9SEo3Xaad+N0GsuHM7T+I3eam/xY+Ahjwb81PORNpEdeDYx Fj+Q== 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=A/c1nNsaPBdbWiaNginrU/JJuQqtQYo/u0cRT/l7h9w=; b=FD/UParx/mrO4BVKwLnEyV2KsLVx4tAUkFyU4gocHLGsxG6hfrZyjmFfwHueNWCGcA QXWvswEhxbT7gkeidMfrMiOBXGrQZ9pVsn8+2BZ7fSRusGLU7giTyGJwZ0RHij4OC4gq UXIG7aBYFA38EUMk816dnyBVIiEaBuVf/cUM+2TGOkkyeQYwIHAig0NQt2zMSQwXA8CG qDogt+gM9d6GQGV8At4KRF5rd/L1acfVINvPJ9QNmkxMhFxo+IPfKvTdHr9EokwXkZgx QueGqsHUVCHnvTJLqQ7ZIgd2AgV3b8Z8nw+0sEHeHPZaDLOfXeGiTtojpOoE2p59t/Xc HNHA== X-Gm-Message-State: AOAM532WqFsaebv2vxZncjpVJyPEJ3TY4yNW1oXGMsm8/RtbU5Lbrf9Y /ZYdYdsRB9a9Z3+VXvHHiCE= X-Google-Smtp-Source: ABdhPJxezOvSBGMRUX3kbSRnS78Ls9tlyQFFDVf1kOV70h1Dr+ngOOZMaJYgKMPAzjhZ5g3LSeCwLA== X-Received: by 2002:ac8:51d3:: with SMTP id d19mr28623336qtn.151.1597083608427; Mon, 10 Aug 2020 11:20:08 -0700 (PDT) Received: from ?IPv6:2601:98a:4200:9210:d899:c595:6699:b5b1? ([2601:98a:4200:9210:d899:c595:6699:b5b1]) by smtp.gmail.com with ESMTPSA id x137sm14995930qkb.47.2020.08.10.11.20.07 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Mon, 10 Aug 2020 11:20:07 -0700 (PDT) Content-Type: text/plain; charset=utf-8 Mime-Version: 1.0 (Mac OS X Mail 13.4 \(3608.120.23.2.1\)) From: Yuan Fu In-Reply-To: <87bljkt4jk.fsf@gnus.org> Date: Mon, 10 Aug 2020 14:20:06 -0400 Content-Transfer-Encoding: quoted-printable Message-Id: References: <7ADCB299-819A-4D1F-A95A-03655C997E57@gmail.com> <83o8ukkkza.fsf@gnu.org> <30AFA53A-2A18-4E6A-A215-F0DEF4FB6B12@gmail.com> <83d0aykac0.fsf@gnu.org> <60CA7D7C-F6ED-4BEC-817A-35BCE7E120CB@gmail.com> <83h809htq8.fsf@gnu.org> <87bljkt4jk.fsf@gnus.org> X-Mailer: Apple Mail (2.3608.120.23.2.1) X-Spam-Score: 0.0 (/) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) > On Aug 9, 2020, at 7:57 AM, Lars Ingebrigtsen wrote: >=20 > Eli Zaretskii writes: >=20 >>> Honestly I only used this for the bomb lab in my CS course last >>> semester where we need to debug assembly code. So if you think in >>> real life scenarios we don=E2=80=99t really need this _quick_ = filtering and >>> customize will cut it. I=E2=80=99m fine with that too. >>=20 >> Good, then let's do it via a defcustom. >=20 > Yuan, this was in February. Did you find time to redo the patch using = a > defcustom instead? Ah, I forgot about this, thanks. I promise I=E2=80=99ll do it :-) Yuan= From unknown Wed Sep 10 06:21:07 2025 X-Loop: help-debbugs@gnu.org Subject: bug#39179: 27.0.50; [PATCH] Add filter to gdb-mi register buffer Resent-From: Lars Ingebrigtsen Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 12 May 2021 15:55:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 39179 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: patch To: Yuan Fu Cc: Eli Zaretskii , 39179@debbugs.gnu.org Received: via spool by 39179-submit@debbugs.gnu.org id=B39179.162083487523645 (code B ref 39179); Wed, 12 May 2021 15:55:02 +0000 Received: (at 39179) by debbugs.gnu.org; 12 May 2021 15:54:35 +0000 Received: from localhost ([127.0.0.1]:40118 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lgrBy-00069J-Te for submit@debbugs.gnu.org; Wed, 12 May 2021 11:54:35 -0400 Received: from quimby.gnus.org ([95.216.78.240]:60122) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lgrBt-00068z-NE for 39179@debbugs.gnu.org; Wed, 12 May 2021 11:54:33 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnus.org; s=20200322; h=Content-Transfer-Encoding:Content-Type:MIME-Version:Message-ID :In-Reply-To:Date:References:Subject:Cc:To:From:Sender:Reply-To:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:List-Id:List-Help:List-Unsubscribe:List-Subscribe: List-Post:List-Owner:List-Archive; bh=YWzuoo1VTfkqFmVXtPB9ebGgOXqqIOi8voJt4X31sQQ=; b=ARIhtXTye8dMV3Ov4FmVWFm0B+ +QYPXBYRlMhVFdG2PM9QD8dqAl+LB4yJk7MybKfGiZY4RX09oaDX1yE58ezmyIcgzp4JqjWBB9hGl 4SWb1pPIcjDFTs5oHw0wjTUmkeCOp5Z7bzU7Lv3j4i/xKv7AmZUvf/7ZGGk6qb9dwtFY=; Received: from cm-84.212.220.105.getinternet.no ([84.212.220.105] helo=xo) by quimby.gnus.org with esmtpsa (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1lgrBl-0006Nj-CS; Wed, 12 May 2021 17:54:23 +0200 From: Lars Ingebrigtsen References: <7ADCB299-819A-4D1F-A95A-03655C997E57@gmail.com> <83o8ukkkza.fsf@gnu.org> <30AFA53A-2A18-4E6A-A215-F0DEF4FB6B12@gmail.com> <83d0aykac0.fsf@gnu.org> <60CA7D7C-F6ED-4BEC-817A-35BCE7E120CB@gmail.com> <83h809htq8.fsf@gnu.org> <87bljkt4jk.fsf@gnus.org> X-Now-Playing: Tuxedomoon's _Live in Alberobello, Italy_: "Muchos Colores" Date: Wed, 12 May 2021 17:54:20 +0200 In-Reply-To: (Yuan Fu's message of "Mon, 10 Aug 2020 14:20:06 -0400") Message-ID: <87zgx0gd77.fsf@gnus.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Spam-Report: Spam detection software, running on the system "quimby.gnus.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see @@CONTACT_ADDRESS@@ for details. Content preview: Yuan Fu writes: > Ah, I forgot about this, thanks. I promise =?UTF-8?Q?I=E2=80=99ll?= do it :-) This was half a year ago. :-) Has there been any progress here? Skimming this thread, it seems like the general consensus was that this was a good feature to add... Content analysis details: (-2.9 points, 5.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- -1.0 ALL_TRUSTED Passed through trusted hosts only via SMTP -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% [score: 0.0000] X-Spam-Score: 0.0 (/) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) Yuan Fu writes: > Ah, I forgot about this, thanks. I promise I=E2=80=99ll do it :-) This was half a year ago. :-) Has there been any progress here? Skimming this thread, it seems like the general consensus was that this was a good feature to add... --=20 (domestic pets only, the antidote for overdose, milk.) bloggy blog: http://lars.ingebrigtsen.no From unknown Wed Sep 10 06:21:07 2025 X-Loop: help-debbugs@gnu.org Subject: bug#39179: 27.0.50; [PATCH] Add filter to gdb-mi register buffer Resent-From: Yuan Fu Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 19 May 2021 00:20:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 39179 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: patch To: Lars Ingebrigtsen Cc: Eli Zaretskii , 39179@debbugs.gnu.org Received: via spool by 39179-submit@debbugs.gnu.org id=B39179.16213835796939 (code B ref 39179); Wed, 19 May 2021 00:20:02 +0000 Received: (at 39179) by debbugs.gnu.org; 19 May 2021 00:19:39 +0000 Received: from localhost ([127.0.0.1]:57599 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lj9vz-0001no-QY for submit@debbugs.gnu.org; Tue, 18 May 2021 20:19:38 -0400 Received: from mail-qk1-f175.google.com ([209.85.222.175]:35395) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lj9vw-0001nZ-7y for 39179@debbugs.gnu.org; Tue, 18 May 2021 20:19:34 -0400 Received: by mail-qk1-f175.google.com with SMTP id x8so11189741qkl.2 for <39179@debbugs.gnu.org>; Tue, 18 May 2021 17:19:32 -0700 (PDT) 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=NOWjiQiOO6J+lzuruJmpXvAV/BKgnIZwc7y74pO2nEk=; b=hi+lhdpXcepJrZps5kL32xjnLBbwH8GMnP72VmqUH+A9S2HKZGIA6vDm3iuKunw96U huG+NuVeGGdNkHaIm4gbeVVz7AOgZzSNNF+A7z7FEbTH/dLikboC4H3H9odE8Fxq8EV+ Jh2alvyyaBs2/DortGyAlUKfCanFi3LRB3GTnTjoimbHFgdCsMFW6MNspw8Ur9xQqDu9 k/030BOeyFDyoaxQpZVMEAd7m4fQcVFExUIrZpy0TUtgWaPq6LE3viZJd9fwwMQmvAqB HVbtYN1lZxmxhmXc6w1Tk6Fl/9Zag0Hhl1mUy/o9ILMA34UdblCD2PqckZizkRchXxFg zJYg== 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=NOWjiQiOO6J+lzuruJmpXvAV/BKgnIZwc7y74pO2nEk=; b=lF1zNdNG0QRFk86TL31okTbH8SZFcaRzCrpJPyM2/fytDcRQx2od1abRtRM53Wu2r1 LPdKhm1u/tCYGAlb8EKCOFR74JJo1dwHxDsWuzakAFL87gb5Xgauzyvks6Dabf2XWkHU GhR3gmMmXpg5XuQrkhn9Qjygap9s86dQDEvgLEzRRz40U8LrGrVyZiuhnSMr5SOUfMIl yHhPIH5UZ6W0l7LgmFbjWsqc27iVNPIE6JAYe+SikNHLc0IXHnoM01gZf5EgLgjkHW+/ DGEvCMgsExxTVJnSEhscmu5u9oq3k8ne8BcQth/IDyhl+CGz5T++pUk2X/4SUOM9KnTf ma+Q== X-Gm-Message-State: AOAM532ZSMwKyx1o8xl94IWLqTN8330jNM3v76tMSwg0jc2BR0QC2QXH /ZIBxF2Ux7QNgg6CHh/VC8E= X-Google-Smtp-Source: ABdhPJyiYLuBzfwBNq8vNCZ2g3+6UhOKis9GZAjRuocK1QErjtmMpafCTodPnHCJHoNRxt/+XR6VKw== X-Received: by 2002:a37:b8b:: with SMTP id 133mr8708586qkl.433.1621383566605; Tue, 18 May 2021 17:19:26 -0700 (PDT) Received: from ?IPv6:2601:98a:4200:9210:b116:b08f:a2a1:5c71? ([2601:98a:4200:9210:b116:b08f:a2a1:5c71]) by smtp.gmail.com with ESMTPSA id 64sm2955241qkn.87.2021.05.18.17.19.25 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Tue, 18 May 2021 17:19:26 -0700 (PDT) Content-Type: text/plain; charset=utf-8 Mime-Version: 1.0 (Mac OS X Mail 14.0 \(3654.60.0.2.21\)) From: Yuan Fu In-Reply-To: <87zgx0gd77.fsf@gnus.org> Date: Tue, 18 May 2021 20:19:25 -0400 Content-Transfer-Encoding: quoted-printable Message-Id: <70241509-4F39-4F9E-963A-A9E0E893014A@gmail.com> References: <7ADCB299-819A-4D1F-A95A-03655C997E57@gmail.com> <83o8ukkkza.fsf@gnu.org> <30AFA53A-2A18-4E6A-A215-F0DEF4FB6B12@gmail.com> <83d0aykac0.fsf@gnu.org> <60CA7D7C-F6ED-4BEC-817A-35BCE7E120CB@gmail.com> <83h809htq8.fsf@gnu.org> <87bljkt4jk.fsf@gnus.org> <87zgx0gd77.fsf@gnus.org> X-Mailer: Apple Mail (2.3654.60.0.2.21) X-Spam-Score: 0.0 (/) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) > On May 12, 2021, at 11:54 AM, Lars Ingebrigtsen = wrote: >=20 > Yuan Fu writes: >=20 >> Ah, I forgot about this, thanks. I promise I=E2=80=99ll do it :-) >=20 > This was half a year ago. :-) Has there been any progress here? > Skimming this thread, it seems like the general consensus was that = this > was a good feature to add... >=20 > --=20 > (domestic pets only, the antidote for overdose, milk.) > bloggy blog: http://lars.ingebrigtsen.no Hey Lars, Thanks for reminding me, and sorry for the delay. I have rebased the = patch and modified it, that wasn=E2=80=99t hard. But I had some problem = installing a linux to test the patch on it, since gdb couldn=E2=80=99t = work on my Mac. It shouldn=E2=80=99t take much longer though. Yuan= From unknown Wed Sep 10 06:21:07 2025 X-Loop: help-debbugs@gnu.org Subject: bug#39179: 27.0.50; [PATCH] Add filter to gdb-mi register buffer Resent-From: Lars Ingebrigtsen Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 22 Jul 2021 12:44:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 39179 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: patch To: Yuan Fu Cc: Eli Zaretskii , 39179@debbugs.gnu.org Received: via spool by 39179-submit@debbugs.gnu.org id=B39179.162695781413980 (code B ref 39179); Thu, 22 Jul 2021 12:44:02 +0000 Received: (at 39179) by debbugs.gnu.org; 22 Jul 2021 12:43:34 +0000 Received: from localhost ([127.0.0.1]:39641 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1m6Y34-0003dQ-5J for submit@debbugs.gnu.org; Thu, 22 Jul 2021 08:43:34 -0400 Received: from quimby.gnus.org ([95.216.78.240]:54510) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1m6Y32-0003dA-7P for 39179@debbugs.gnu.org; Thu, 22 Jul 2021 08:43:32 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnus.org; s=20200322; h=Content-Transfer-Encoding:Content-Type:MIME-Version:Message-ID :In-Reply-To:Date:References:Subject:Cc:To:From:Sender:Reply-To:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:List-Id:List-Help:List-Unsubscribe:List-Subscribe: List-Post:List-Owner:List-Archive; bh=4qEGgNWozZJyQ0TvDXzRt3lXHwvLm5cCJ5bEY7D5l0A=; b=QJCI5k0cLjH+LPryXimWKwV5YR 69k7IZ9tRDWFIxIBY7zSZPgGsK6XVIDK2fUsvPVzHWR4eaWHeaG8Kj8wA++qRi+Ef/KccTxxG75Jf oG94YlijjolghcWQvXp9Dhha2jguuQB+PsxU1PAgZd6YwUXC2zDW6D5U96r7/nA70ARg=; Received: from cm-84.212.220.105.getinternet.no ([84.212.220.105] helo=elva) by quimby.gnus.org with esmtpsa (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1m6Y2t-0002NS-TZ; Thu, 22 Jul 2021 14:43:26 +0200 From: Lars Ingebrigtsen References: <7ADCB299-819A-4D1F-A95A-03655C997E57@gmail.com> <83o8ukkkza.fsf@gnu.org> <30AFA53A-2A18-4E6A-A215-F0DEF4FB6B12@gmail.com> <83d0aykac0.fsf@gnu.org> <60CA7D7C-F6ED-4BEC-817A-35BCE7E120CB@gmail.com> <83h809htq8.fsf@gnu.org> <87bljkt4jk.fsf@gnus.org> <87zgx0gd77.fsf@gnus.org> <70241509-4F39-4F9E-963A-A9E0E893014A@gmail.com> X-Now-Playing: John T. Gast's _Inna Babalon_: "Jah Guidance" Date: Thu, 22 Jul 2021 14:43:23 +0200 In-Reply-To: <70241509-4F39-4F9E-963A-A9E0E893014A@gmail.com> (Yuan Fu's message of "Tue, 18 May 2021 20:19:25 -0400") Message-ID: <87eebqldsk.fsf@gnus.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Spam-Report: Spam detection software, running on the system "quimby.gnus.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see @@CONTACT_ADDRESS@@ for details. Content preview: Yuan Fu writes: > Thanks for reminding me, and sorry for the delay. I have rebased the > patch and modified it, that =?UTF-8?Q?wasn=E2=80=99t?= hard. But I had some problem > installing a linux to test the patch on it, since gdb could [...] Content analysis details: (-2.9 points, 5.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- -1.0 ALL_TRUSTED Passed through trusted hosts only via SMTP -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% [score: 0.0000] X-Spam-Score: -2.3 (--) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) Yuan Fu writes: > Thanks for reminding me, and sorry for the delay. I have rebased the > patch and modified it, that wasn=E2=80=99t hard. But I had some problem > installing a linux to test the patch on it, since gdb couldn=E2=80=99t wo= rk on > my Mac. It shouldn=E2=80=99t take much longer though. This was a couple of months ago -- have you made any further progress here? --=20 (domestic pets only, the antidote for overdose, milk.) bloggy blog: http://lars.ingebrigtsen.no From unknown Wed Sep 10 06:21:07 2025 X-Loop: help-debbugs@gnu.org Subject: bug#39179: 27.0.50; [PATCH] Add filter to gdb-mi register buffer Resent-From: Yuan Fu Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 24 Jul 2021 17:05:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 39179 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: patch To: Lars Ingebrigtsen Cc: Eli Zaretskii , 39179@debbugs.gnu.org Received: via spool by 39179-submit@debbugs.gnu.org id=B39179.162714629226866 (code B ref 39179); Sat, 24 Jul 2021 17:05:02 +0000 Received: (at 39179) by debbugs.gnu.org; 24 Jul 2021 17:04:52 +0000 Received: from localhost ([127.0.0.1]:46837 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1m7L51-0006zF-UG for submit@debbugs.gnu.org; Sat, 24 Jul 2021 13:04:52 -0400 Received: from mail-qk1-f171.google.com ([209.85.222.171]:39867) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1m7L4y-0006z1-EJ for 39179@debbugs.gnu.org; Sat, 24 Jul 2021 13:04:50 -0400 Received: by mail-qk1-f171.google.com with SMTP id x3so4617083qkl.6 for <39179@debbugs.gnu.org>; Sat, 24 Jul 2021 10:04:48 -0700 (PDT) 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=gHsyQSZnXP/JMMexbJ6+LfPKJ2uzpacKpi7L77oicMM=; b=XGWShYrjaPQY/CDgEOwrmgaemaTEeA4BJGzIWa9B4PqSya8W9RPdVTTAUcT2PFoRFp C/xtt1vh0lBm3ZcRJ9gzzbNLbqfd1V7Kx65yMZzz7JgqHTMIXqaNVzS9KGEp/ONhkUOF eGxmpJyX9lxgCdF3pJ2tz/iS3X9b49JlwUvBuIYaV71T6PrsF/wvAgRrFOxRtV9IGcHu jbf373YiK8M8Q/cvnPcqEf/hABBQtCr6KTksGQ4N8a2dCjcv4z1PmT0fr/8+gyQOLUsw jnBnSgq3zFsxlBES09AIs7XAakU65OSkvsH355yScRqw/Xl4b9gVLJZpwzD/xCW+P2fI p3EQ== 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=gHsyQSZnXP/JMMexbJ6+LfPKJ2uzpacKpi7L77oicMM=; b=rCEZtWcsz/ex4fTFqsHmR08O6jxMYFsCtp7gX17czJigC16ZrP6qkCAn43ZyNOxbQx qrt+yz75c+aP4DI/FXxhVEvC344fq0jhAb0bc6RSX3sjfauHJ54tEO5UjaZx3IEMIOxf mhmHsRAj1eWuS5MJuy84cQkmeJyLhMz/OX1Yf9dGeSN7NsY1dr+SfiSSpI2ohtxm30/Y c7tnGYt+pauSz8DiBISfal1EUEP4MgJdB9zn1XkvdfygnjJvz1iua09uyzFIf9Ne1MdQ lDSgGbfeavB8L6QZ1Z53SkQ5s/1LLbcHNrHXlac5ncXGMUM9WsQEIAbWmqNPQ/Y97bIF dz6Q== X-Gm-Message-State: AOAM532ZdurWPUEbgz6S5vBi9t4zisNuKiaQmT2Xh4AqkiEupzQsVy1a AQesoPwZDXbyJKmF7l6ecsc= X-Google-Smtp-Source: ABdhPJzFtKp+EAvXU7rXL+jWVOWlJZrSUGQjVg1zb8g4KGXfU1r5wQnJX9rjo3uuWWCudfSEBWLQaA== X-Received: by 2002:a05:620a:235:: with SMTP id u21mr10537467qkm.450.1627146283018; Sat, 24 Jul 2021 10:04:43 -0700 (PDT) Received: from 2603-7080-0302-635e-d969-6d23-8e5f-2ec1.res6.spectrum.com (2603-7080-0302-635e-d969-6d23-8e5f-2ec1.res6.spectrum.com. [2603:7080:302:635e:d969:6d23:8e5f:2ec1]) by smtp.gmail.com with ESMTPSA id t26sm12783473qtc.44.2021.07.24.10.04.42 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Sat, 24 Jul 2021 10:04:42 -0700 (PDT) From: Yuan Fu Message-Id: <17349E33-0232-4174-96A7-781FEE9C36EB@gmail.com> Content-Type: multipart/mixed; boundary="Apple-Mail=_3DFF3405-581E-4B83-9545-E8494AF92F72" Mime-Version: 1.0 (Mac OS X Mail 14.0 \(3654.60.0.2.21\)) Date: Sat, 24 Jul 2021 13:04:41 -0400 In-Reply-To: <87eebqldsk.fsf@gnus.org> References: <7ADCB299-819A-4D1F-A95A-03655C997E57@gmail.com> <83o8ukkkza.fsf@gnu.org> <30AFA53A-2A18-4E6A-A215-F0DEF4FB6B12@gmail.com> <83d0aykac0.fsf@gnu.org> <60CA7D7C-F6ED-4BEC-817A-35BCE7E120CB@gmail.com> <83h809htq8.fsf@gnu.org> <87bljkt4jk.fsf@gnus.org> <87zgx0gd77.fsf@gnus.org> <70241509-4F39-4F9E-963A-A9E0E893014A@gmail.com> <87eebqldsk.fsf@gnus.org> X-Mailer: Apple Mail (2.3654.60.0.2.21) X-Spam-Score: 0.0 (/) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) --Apple-Mail=_3DFF3405-581E-4B83-9545-E8494AF92F72 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=utf-8 > On Jul 22, 2021, at 8:43 AM, Lars Ingebrigtsen wrote: >=20 > Yuan Fu writes: >=20 >> Thanks for reminding me, and sorry for the delay. I have rebased the >> patch and modified it, that wasn=E2=80=99t hard. But I had some = problem >> installing a linux to test the patch on it, since gdb couldn=E2=80=99t = work on >> my Mac. It shouldn=E2=80=99t take much longer though. >=20 > This was a couple of months ago -- have you made any further progress > here? >=20 The 10th 10% isn=E2=80=99t it ;-) Here is the patch. I finally installed = a linux VM and compiled Emacs on it and tested the patch.=20 Yuan --Apple-Mail=_3DFF3405-581E-4B83-9545-E8494AF92F72 Content-Disposition: attachment; filename=filter.patch Content-Type: application/octet-stream; x-unix-mode=0644; name="filter.patch" Content-Transfer-Encoding: quoted-printable =46rom=20684f0b4e8b913f5cf10a5ee20b869016d391009d=20Mon=20Sep=2017=20= 00:00:00=202001=0AFrom:=20Yuan=20Fu=20=0ADate:=20Thu,=20= 24=20Jun=202021=2012:38:17=20-0400=0ASubject:=20[PATCH]=20Add=20filter=20= to=20GDB's=20register=20buffer=0A=0A*=20lisp/progmodes/gdb-mi.el=20= (gdb-registers-enable-filter,=0Agdb-registers-filter-pattern-list):=20= New=20custom=20options.=0A(gdb-header-click-event-handler,=20= gdb-registers-toggle-filter):=20New=0Afunctions.=0A= (gdb-header-click-event-handler):=20Only=20add=20a=20register=20if=20it=20= passes=20the=0Afilter.=0A(gdb-registers-mode-map):=20New=20keybinding=20= for=20toggling=20the=20filter.=0A(gdb-registers-header):=20New=20buttons=20= on=20the=20header=20line=20for=20the=20filter.=0A---=0A=20= lisp/progmodes/gdb-mi.el=20|=2097=20= +++++++++++++++++++++++++++++++++++-----=0A=201=20file=20changed,=2085=20= insertions(+),=2012=20deletions(-)=0A=0Adiff=20--git=20= a/lisp/progmodes/gdb-mi.el=20b/lisp/progmodes/gdb-mi.el=0Aindex=20= aa3365278c..1303ac55f8=20100644=0A---=20a/lisp/progmodes/gdb-mi.el=0A+++=20= b/lisp/progmodes/gdb-mi.el=0A@@=20-581,6=20+581,23=20@@=20= gdb-show-threads-by-default=0A=20=20=20:group=20'gdb-buffers=0A=20=20=20= :version=20"23.2")=0A=20=0A+(defcustom=20gdb-registers-enable-filter=20= nil=0A+=20=20"If=20t,=20enable=20register=20name=20filter=20in=20= register=20buffer.=0A+Use=20`gdb-registers-filter-pattern-list'=20to=20= control=20what=20register=20to=0A+filter."=0A+=20=20:type=20'boolean=0A+=20= =20:group=20'gdb-buffers=0A+=20=20:version=20"28.1")=0A+=0A+(defcustom=20= gdb-registers-filter-pattern-list=20nil=0A+=20=20"Patterns=20for=20names=20= that=20are=20displayed=20in=20register=20buffer.=0A+Each=20pattern=20is=20= a=20regular=20expression.=20=20GDB=20displays=20registers=0A+whose=20= name=20matches=20any=20pattern=20in=20the=20list.=20=20Refresh=20the=20= register=0A+buffer=20for=20the=20change=20to=20take=20effect."=0A+=20=20= :type=20'list=0A+=20=20:group=20'gdb-buffers=0A+=20=20:version=20"28.1")=0A= +=0A=20(defvar=20gdb-debug-log=20nil=0A=20=20=20"List=20of=20commands=20= sent=20to=20and=20replies=20received=20from=20GDB.=0A=20Most=20recent=20= commands=20are=20listed=20first.=20=20This=20list=20stores=20only=20the=20= last=0A@@=20-4393,6=20+4410,26=20@@=20gdb-frame-locals-buffer=0A=20=20= 'gdb-registers-mode=0A=20=20'gdb-invalidate-registers)=0A=20=0A+(defun=20= gdb-header-click-event-handler=20(function)=0A+=20=20"Return=20a=20= function=20that=20handles=20clicking=20event=20on=20gdb=20header=20= buttons.=0A+=0A+This=20function=20switches=20to=20the=20window=20where=20= the=20header=20locates=20and=0A+executes=20FUNCTION."=0A+=20=20(lambda=20= (event)=0A+=20=20=20=20(interactive=20"e")=0A+=20=20=20=20= (save-selected-window=0A+=20=20=20=20=20=20;;=20Make=20sure=20we=20are=20= in=20the=20right=20buffer.=0A+=20=20=20=20=20=20(select-window=20= (posn-window=20(event-start=20event)))=0A+=20=20=20=20=20=20(funcall=20= function))))=0A+=0A+(defun=20gdb-registers-toggle-filter=20()=0A+=20=20= "Toggle=20register=20filter."=0A+=20=20(interactive)=0A+=20=20(setq=20= gdb-registers-enable-filter=0A+=20=20=20=20=20=20=20=20(not=20= gdb-registers-enable-filter))=0A+=20=20;;=20Update=20the=20register=20= buffer.=0A+=20=20(gdb-invalidate-registers=20'update))=0A+=0A=20(defun=20= gdb-registers-handler-custom=20()=0A=20=20=20(when=20gdb-register-names=0A= =20=20=20=20=20(let=20((register-values=0A@@=20-4403,17=20+4440,27=20@@=20= gdb-registers-handler-custom=0A=20=20=20=20=20=20=20=20=20=20=20=20=20=20= =20=20(value=20(gdb-mi--field=20register=20'value))=0A=20=20=20=20=20=20=20= =20=20=20=20=20=20=20=20=20(register-name=20(nth=20(string-to-number=20= register-number)=0A=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20= =20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20= gdb-register-names)))=0A-=20=20=20=20=20=20=20=20=20=20= (gdb-table-add-row=0A-=20=20=20=20=20=20=20=20=20=20=20table=0A-=20=20=20= =20=20=20=20=20=20=20=20(list=0A-=20=20=20=20=20=20=20=20=20=20=20=20= (propertize=20register-name=0A-=20=20=20=20=20=20=20=20=20=20=20=20=20=20= =20=20=20=20=20=20=20=20=20=20'font-lock-face=20= font-lock-variable-name-face)=0A-=20=20=20=20=20=20=20=20=20=20=20=20(if=20= (member=20register-number=20gdb-changed-registers)=0A-=20=20=20=20=20=20=20= =20=20=20=20=20=20=20=20=20(propertize=20value=20'font-lock-face=20= font-lock-warning-face)=0A-=20=20=20=20=20=20=20=20=20=20=20=20=20=20= value))=0A-=20=20=20=20=20=20=20=20=20=20=20`(mouse-face=20highlight=0A-=20= =20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20= help-echo=20"mouse-2:=20edit=20value"=0A-=20=20=20=20=20=20=20=20=20=20=20= =20=20=20=20=20=20=20=20=20=20=20=20=20gdb-register-name=20= ,register-name))))=0A+=20=20=20=20=20=20=20=20=20=20;;=20Add=20register=20= if=20`gdb-registers-filter-pattern-list'=20is=20nil;=0A+=20=20=20=20=20=20= =20=20=20=20;;=20or=20any=20pattern=20that=20= `gdb-registers-filter-pattern-list'=0A+=20=20=20=20=20=20=20=20=20=20;;=20= matches.=0A+=20=20=20=20=20=20=20=20=20=20(when=20(or=20(null=20= gdb-registers-enable-filter)=0A+=20=20=20=20=20=20=20=20=20=20=20=20=20=20= =20=20=20=20=20=20;;=20Return=20t=20if=20any=20register=20name=20matches=20= a=20pattern.=0A+=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20= =20(cl-loop=20for=20pattern=0A+=20=20=20=20=20=20=20=20=20=20=20=20=20=20= =20=20=20=20=20=20=20=20=20=20=20=20=20=20=20in=20= gdb-registers-filter-pattern-list=0A+=20=20=20=20=20=20=20=20=20=20=20=20= =20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20if=20(string-match=20= pattern=20register-name)=0A+=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20= =20=20=20=20=20=20=20=20=20=20=20=20=20=20return=20t=0A+=20=20=20=20=20=20= =20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20= finally=20return=20nil))=0A+=20=20=20=20=20=20=20=20=20=20=20=20= (gdb-table-add-row=0A+=20=20=20=20=20=20=20=20=20=20=20=20=20table=0A+=20= =20=20=20=20=20=20=20=20=20=20=20=20(list=0A+=20=20=20=20=20=20=20=20=20=20= =20=20=20=20(propertize=20register-name=0A+=20=20=20=20=20=20=20=20=20=20= =20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20'font-lock-face=20= font-lock-variable-name-face)=0A+=20=20=20=20=20=20=20=20=20=20=20=20=20=20= (if=20(member=20register-number=20gdb-changed-registers)=0A+=20=20=20=20=20= =20=20=20=20=20=20=20=20=20=20=20=20=20(propertize=20value=20= 'font-lock-face=20font-lock-warning-face)=0A+=20=20=20=20=20=20=20=20=20=20= =20=20=20=20=20=20value))=0A+=20=20=20=20=20=20=20=20=20=20=20=20=20= `(mouse-face=20highlight=0A+=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20= =20=20=20=20=20=20=20=20=20=20=20help-echo=20"mouse-2:=20edit=20value"=0A= +=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20= =20=20gdb-register-name=20,register-name)))))=0A=20=20=20=20=20=20=20= (insert=20(gdb-table-string=20table=20"=20")))=0A=20=20=20=20=20(setq=20= mode-name=0A=20=20=20=20=20=20=20=20=20=20=20= (gdb-current-context-mode-name=20"Registers"))))=0A@@=20-4441,6=20= +4488,7=20@@=20gdb-registers-mode-map=0A=20=20=20=20=20=20=20=20=20=20=20= =20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20= (gdb-get-buffer-create=0A=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20= =20=20=20=20=20=20=20=20=20=20=20=20=20=20'gdb-locals-buffer=0A=20=20=20=20= =20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20= =20gdb-thread-number)=20t)))=0A+=20=20=20=20(define-key=20map=20"f"=20= #'gdb-registers-toggle-filter)=0A=20=20=20=20=20map))=0A=20=0A=20(defvar=20= gdb-registers-header=0A@@=20-4450,7=20+4498,32=20@@=20= gdb-registers-header=0A=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20= =20=20=20=20=20=20=20=20=20=20mode-line-inactive)=0A=20=20=20=20"=20"=0A=20= =20=20=20(gdb-propertize-header=20"Registers"=20gdb-registers-buffer=0A-=09= =09=09=20=20nil=20nil=20mode-line)))=0A+=09=09=09=20=20nil=20nil=20= mode-line)=0A+=20=20=20"=20"=0A+=20=20=20'(:eval=20(format=20"[filter=20= %s=20%s]"=0A+=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20= (propertize=0A+=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20= (if=20gdb-registers-enable-filter=0A+=20=20=20=20=20=20=20=20=20=20=20=20= =20=20=20=20=20=20=20=20=20=20=20=20"[on]"=20"[off]")=0A+=20=20=20=20=20=20= =20=20=20=20=20=20=20=20=20=20=20=20=20=20'face=20(if=20= gdb-registers-enable-filter=0A+=20=20=20=20=20=20=20=20=20=20=20=20=20=20= =20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20'(:weight=20bold=20= :inherit=20success)=0A+=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20= =20=20=20=20=20=20=20=20=20=20=20'shadow)=0A+=20=20=20=20=20=20=20=20=20=20= =20=20=20=20=20=20=20=20=20=20'help-echo=20"mouse-1:=20toggle=20filter"=0A= +=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20'mouse-face=20= 'mode-line-highlight=0A+=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20= =20=20=20'local-map=0A+=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20= =20=20=20(gdb-make-header-line-mouse-map=0A+=20=20=20=20=20=20=20=20=20=20= =20=20=20=20=20=20=20=20=20=20=20'mouse-1=0A+=20=20=20=20=20=20=20=20=20=20= =20=20=20=20=20=20=20=20=20=20=20(gdb-header-click-event-handler=0A+=20=20= =20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20= #'gdb-registers-toggle-filter)))=0A+=20=20=20=20=20=20=20=20=20=20=20=20=20= =20=20=20=20=20=20(propertize=0A+=20=20=20=20=20=20=20=20=20=20=20=20=20=20= =20=20=20=20=20=20"[set]"=0A+=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20= =20=20=20=20=20'face=20'mode-line=0A+=20=20=20=20=20=20=20=20=20=20=20=20= =20=20=20=20=20=20=20=20'help-echo=20"mouse-1:=20Customize=20filter=20= patterns"=0A+=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20= 'mouse-face=20'mode-line-highlight=0A+=20=20=20=20=20=20=20=20=20=20=20=20= =20=20=20=20=20=20=20=20'local-map=0A+=20=20=20=20=20=20=20=20=20=20=20=20= =20=20=20=20=20=20=20=20(gdb-make-header-line-mouse-map=0A+=20=20=20=20=20= =20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20'mouse-1=20(lambda=20()=20= (interactive)=0A+=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20= =20=20=20=20=20=20=20=20=20=20=20=20=20(customize-variable-other-window=0A= +=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20= =20=20=20=20=20=20=20=20=20'gdb-registers-filter-pattern-list))))))))=0A=20= =0A=20(define-derived-mode=20gdb-registers-mode=20gdb-parent-mode=20= "Registers"=0A=20=20=20"Major=20mode=20for=20gdb=20registers."=0A--=20=0A= 2.24.3=20(Apple=20Git-128)=0A=0A= --Apple-Mail=_3DFF3405-581E-4B83-9545-E8494AF92F72-- From unknown Wed Sep 10 06:21:07 2025 X-Loop: help-debbugs@gnu.org Subject: bug#39179: 27.0.50; [PATCH] Add filter to gdb-mi register buffer Resent-From: Lars Ingebrigtsen Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 24 Jul 2021 17:12:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 39179 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: patch To: Yuan Fu Cc: Eli Zaretskii , 39179@debbugs.gnu.org Received: via spool by 39179-submit@debbugs.gnu.org id=B39179.162714671227550 (code B ref 39179); Sat, 24 Jul 2021 17:12:02 +0000 Received: (at 39179) by debbugs.gnu.org; 24 Jul 2021 17:11:52 +0000 Received: from localhost ([127.0.0.1]:46849 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1m7LBo-0007AI-D8 for submit@debbugs.gnu.org; Sat, 24 Jul 2021 13:11:52 -0400 Received: from quimby.gnus.org ([95.216.78.240]:35726) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1m7LBl-0007A0-5l for 39179@debbugs.gnu.org; Sat, 24 Jul 2021 13:11:50 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnus.org; s=20200322; h=Content-Transfer-Encoding:Content-Type:MIME-Version:Message-ID :In-Reply-To:Date:References:Subject:Cc:To:From:Sender:Reply-To:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:List-Id:List-Help:List-Unsubscribe:List-Subscribe: List-Post:List-Owner:List-Archive; bh=ADwJH3sosAkrYWeRgzb6lWmSKOxyELTTpvGcyXNCqkU=; b=guA+KAUM9NkK7zGiFKzsR4qGqm tbW9akH71v+J3FCVtM84kDRecn91tvp0syr705jxp5j9sY8hemSc4OsCjDdeP8Y9cB1TyU+S08ypU bfTRHSlW7o6fvGoEp+8lQF0nmn82jDgCSYbrXRONZyxV2aucEHL5S8gYyxCcwjbCxFfE=; Received: from cm-84.212.220.105.getinternet.no ([84.212.220.105] helo=elva) by quimby.gnus.org with esmtpsa (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1m7LBc-0007be-5d; Sat, 24 Jul 2021 19:11:42 +0200 From: Lars Ingebrigtsen References: <7ADCB299-819A-4D1F-A95A-03655C997E57@gmail.com> <83o8ukkkza.fsf@gnu.org> <30AFA53A-2A18-4E6A-A215-F0DEF4FB6B12@gmail.com> <83d0aykac0.fsf@gnu.org> <60CA7D7C-F6ED-4BEC-817A-35BCE7E120CB@gmail.com> <83h809htq8.fsf@gnu.org> <87bljkt4jk.fsf@gnus.org> <87zgx0gd77.fsf@gnus.org> <70241509-4F39-4F9E-963A-A9E0E893014A@gmail.com> <87eebqldsk.fsf@gnus.org> <17349E33-0232-4174-96A7-781FEE9C36EB@gmail.com> X-Now-Playing: Suicide's _Alan Vega * Martin Rev_: "Harlem" Date: Sat, 24 Jul 2021 19:11:39 +0200 In-Reply-To: <17349E33-0232-4174-96A7-781FEE9C36EB@gmail.com> (Yuan Fu's message of "Sat, 24 Jul 2021 13:04:41 -0400") Message-ID: <877dhf1vsk.fsf@gnus.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Spam-Report: Spam detection software, running on the system "quimby.gnus.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see @@CONTACT_ADDRESS@@ for details. Content preview: Yuan Fu writes: > The 10th 10% =?UTF-8?Q?isn=E2=80=99t?= it ;-) Here is the patch. I finally installed a > linux VM and compiled Emacs on it and tested the patch. Great; pushed to Emacs 28 now. Content analysis details: (-2.9 points, 5.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- -1.0 ALL_TRUSTED Passed through trusted hosts only via SMTP -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% [score: 0.0000] X-Spam-Score: -2.3 (--) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) Yuan Fu writes: > The 10th 10% isn=E2=80=99t it ;-) Here is the patch. I finally installed a > linux VM and compiled Emacs on it and tested the patch. Great; pushed to Emacs 28 now. --=20 (domestic pets only, the antidote for overdose, milk.) bloggy blog: http://lars.ingebrigtsen.no From debbugs-submit-bounces@debbugs.gnu.org Sat Jul 24 13:11:53 2021 Received: (at control) by debbugs.gnu.org; 24 Jul 2021 17:11:53 +0000 Received: from localhost ([127.0.0.1]:46852 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1m7LBp-0007AV-KU for submit@debbugs.gnu.org; Sat, 24 Jul 2021 13:11:53 -0400 Received: from quimby.gnus.org ([95.216.78.240]:35740) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1m7LBo-0007A7-Hn for control@debbugs.gnu.org; Sat, 24 Jul 2021 13:11:52 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnus.org; s=20200322; h=Subject:From:To:Message-Id:Date:Sender:Reply-To:Cc: MIME-Version:Content-Type:Content-Transfer-Encoding:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:In-Reply-To:References:List-Id:List-Help:List-Unsubscribe: List-Subscribe:List-Post:List-Owner:List-Archive; bh=mMJL+XWsawDF2NiowvgOALyD2OAe0Gf+1y2984eTSH4=; b=MHesxqRvTH3c+DCIrjzE/JLB/h K5RjE/qB7I8/zBJDnAHgbAKsX7SMShOvYV8843wxE46101RpSDpumO08Tnch8OdJLxEcwuoWue243 grNhgfU5lWwR+1F75Kohz1Vj7tmBxQAECn7l8Vd4ofGlZ+5gI1svrUU4S93GIIG22iWc=; Received: from cm-84.212.220.105.getinternet.no ([84.212.220.105] helo=elva) by quimby.gnus.org with esmtpsa (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1m7LBg-0007bl-Um for control@debbugs.gnu.org; Sat, 24 Jul 2021 19:11:47 +0200 Date: Sat, 24 Jul 2021 19:11:44 +0200 Message-Id: <875ywz1vsf.fsf@gnus.org> To: control@debbugs.gnu.org From: Lars Ingebrigtsen Subject: control message for bug #39179 X-Spam-Report: Spam detection software, running on the system "quimby.gnus.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see @@CONTACT_ADDRESS@@ for details. Content preview: close 39179 28.1 quit Content analysis details: (-2.9 points, 5.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- -1.0 ALL_TRUSTED Passed through trusted hosts only via SMTP -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% [score: 0.0000] X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: control X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) close 39179 28.1 quit