From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Paul Eggert Newsgroups: gmane.emacs.devel Subject: Re: bug#32405: Turning misc objects into pseudovectors Date: Sun, 12 Aug 2018 11:48:15 -0700 Organization: UCLA Computer Science Department Message-ID: References: <988905f1-fb41-9559-300d-d015bda4b791@cs.ucla.edu> <8736vn8pso.fsf@tromey.com> <83o9ebo0or.fsf@gnu.org> <87o9ea5od7.fsf@tromey.com> <8336vjla0l.fsf@gnu.org> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="------------6EA3362F9A7A150CBCCC8A9E" X-Trace: blaine.gmane.org 1534099583 10715 195.159.176.226 (12 Aug 2018 18:46:23 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Sun, 12 Aug 2018 18:46:23 +0000 (UTC) User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.9.1 Cc: Emacs-devel@gnu.org To: Eli Zaretskii Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sun Aug 12 20:46:19 2018 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1fovNa-0002gc-7R for ged-emacs-devel@m.gmane.org; Sun, 12 Aug 2018 20:46:18 +0200 Original-Received: from localhost ([::1]:35939 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fovPg-00011l-Oe for ged-emacs-devel@m.gmane.org; Sun, 12 Aug 2018 14:48:28 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:59203) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fovPa-00011U-2C for Emacs-devel@gnu.org; Sun, 12 Aug 2018 14:48:23 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1fovPW-000880-JF for Emacs-devel@gnu.org; Sun, 12 Aug 2018 14:48:22 -0400 Original-Received: from zimbra.cs.ucla.edu ([131.179.128.68]:34586) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1fovPW-00086z-77; Sun, 12 Aug 2018 14:48:18 -0400 Original-Received: from localhost (localhost [127.0.0.1]) by zimbra.cs.ucla.edu (Postfix) with ESMTP id D7FB11606C2; Sun, 12 Aug 2018 11:48:16 -0700 (PDT) Original-Received: from zimbra.cs.ucla.edu ([127.0.0.1]) by localhost (zimbra.cs.ucla.edu [127.0.0.1]) (amavisd-new, port 10032) with ESMTP id sB0cv6v6DquX; Sun, 12 Aug 2018 11:48:16 -0700 (PDT) Original-Received: from localhost (localhost [127.0.0.1]) by zimbra.cs.ucla.edu (Postfix) with ESMTP id 05B6E16072A; Sun, 12 Aug 2018 11:48:16 -0700 (PDT) X-Virus-Scanned: amavisd-new at zimbra.cs.ucla.edu Original-Received: from zimbra.cs.ucla.edu ([127.0.0.1]) by localhost (zimbra.cs.ucla.edu [127.0.0.1]) (amavisd-new, port 10026) with ESMTP id Jzdc2pFk9zWo; Sun, 12 Aug 2018 11:48:15 -0700 (PDT) Original-Received: from [192.168.1.9] (unknown [47.154.30.119]) by zimbra.cs.ucla.edu (Postfix) with ESMTPSA id B613B1606C2; Sun, 12 Aug 2018 11:48:15 -0700 (PDT) In-Reply-To: <8336vjla0l.fsf@gnu.org> Content-Language: en-US X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x X-Received-From: 131.179.128.68 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Original-Sender: "Emacs-devel" Xref: news.gmane.org gmane.emacs.devel:228452 Archived-At: This is a multi-part message in MIME format. --------------6EA3362F9A7A150CBCCC8A9E Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit Eli Zaretskii wrote: > it sounds like .gdbinit needs some update as followup, Sure does. Thanks for catching that. I installed the attached. --------------6EA3362F9A7A150CBCCC8A9E Content-Type: text/x-patch; name="0001-Adjust-.gdbinit-to-removal-of-misc-objects.patch" Content-Transfer-Encoding: 7bit Content-Disposition: attachment; filename="0001-Adjust-.gdbinit-to-removal-of-misc-objects.patch" >From f99ee7378f8529e748f894859f305d4cca2483e4 Mon Sep 17 00:00:00 2001 From: Paul Eggert Date: Sun, 12 Aug 2018 11:46:07 -0700 Subject: [PATCH] Adjust .gdbinit to removal of misc objects * src/.gdbinit (xtype, xpr): Adjust. (xmisctype, xmiscfree): Remove. --- src/.gdbinit | 46 +++++++++------------------------------------- 1 file changed, 9 insertions(+), 37 deletions(-) diff --git a/src/.gdbinit b/src/.gdbinit index 3cebdff5e7..ae6f13a103 100644 --- a/src/.gdbinit +++ b/src/.gdbinit @@ -649,17 +649,13 @@ define xtype xgettype $ output $type echo \n - if $type == Lisp_Misc - xmisctype - else - if $type == Lisp_Vectorlike - xvectype - end + if $type == Lisp_Vectorlike + xvectype end end document xtype Print the type of $, assuming it is an Emacs Lisp value. -If the first type printed is Lisp_Vector or Lisp_Misc, +If the first type printed is Lisp_Vectorlike, a second line gives the more precise type. end @@ -711,15 +707,6 @@ Print the size of $ This command assumes that $ is a Lisp_Object. end -define xmisctype - xgetptr $ - output (enum Lisp_Misc_Type) (((struct Lisp_Free *) $ptr)->type) - echo \n -end -document xmisctype -Assume that $ is some misc type and print its specific type. -end - define xint xgetint $ print $int @@ -754,15 +741,6 @@ Print $ as a overlay pointer. This command assumes that $ is an Emacs Lisp overlay value. end -define xmiscfree - xgetptr $ - print (struct Lisp_Free *) $ptr -end -document xmiscfree -Print $ as a misc free-cell pointer. -This command assumes that $ is an Emacs Lisp Misc value. -end - define xsymbol set $sym = $ xgetsym $sym @@ -1015,18 +993,6 @@ define xpr if $type == Lisp_Float xfloat end - if $type == Lisp_Misc - set $misc = (enum Lisp_Misc_Type) (((struct Lisp_Free *) $ptr)->type) - if $misc == Lisp_Misc_Free - xmiscfree - end - if $misc == Lisp_Misc_Marker - xmarker - end - if $misc == Lisp_Misc_Overlay - xoverlay - end - end if $type == Lisp_Vectorlike set $size = ((struct Lisp_Vector *) $ptr)->header.size if ($size & PSEUDOVECTOR_FLAG) @@ -1034,6 +1000,12 @@ define xpr if $vec == PVEC_NORMAL_VECTOR xvector end + if $vec == PVEC_MARKER + xmarker + end + if $vec == PVEC_OVERLAY + xoverlay + end if $vec == PVEC_PROCESS xprocess end -- 2.17.1 --------------6EA3362F9A7A150CBCCC8A9E--