From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.bugs Subject: bug#12036: 24.1.50; xvectype and xpr broken by change in PVEC_TYPE_MASK when macro information not available Date: Fri, 27 Jul 2012 12:40:07 +0300 Message-ID: <837gtpk0eg.fsf@gnu.org> References: <83eho2z6q4.fsf@gnu.org> <50110A8E.7030101@cs.ucla.edu> <83sjcejwao.fsf@gnu.org> <83obn2jt77.fsf@gnu.org> <50119070.8090101@cs.ucla.edu> <83ipdajnbo.fsf@gnu.org> <501233B0.2010907@cs.ucla.edu> Reply-To: Eli Zaretskii NNTP-Posting-Host: plane.gmane.org X-Trace: dough.gmane.org 1343382082 31008 80.91.229.3 (27 Jul 2012 09:41:22 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Fri, 27 Jul 2012 09:41:22 +0000 (UTC) Cc: 12036@debbugs.gnu.org To: Paul Eggert Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Fri Jul 27 11:41:21 2012 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1Suh2v-000354-AW for geb-bug-gnu-emacs@m.gmane.org; Fri, 27 Jul 2012 11:41:21 +0200 Original-Received: from localhost ([::1]:33253 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Suh2u-00043K-F0 for geb-bug-gnu-emacs@m.gmane.org; Fri, 27 Jul 2012 05:41:20 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:54570) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Suh2n-00043C-6S for bug-gnu-emacs@gnu.org; Fri, 27 Jul 2012 05:41:18 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Suh2h-0006JF-DG for bug-gnu-emacs@gnu.org; Fri, 27 Jul 2012 05:41:13 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:33470) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Suh2h-0006JB-9m for bug-gnu-emacs@gnu.org; Fri, 27 Jul 2012 05:41:07 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.72) (envelope-from ) id 1Suh9O-0001Gr-GH for bug-gnu-emacs@gnu.org; Fri, 27 Jul 2012 05:48:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 27 Jul 2012 09:48:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 12036 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 12036-submit@debbugs.gnu.org id=B12036.13433824244818 (code B ref 12036); Fri, 27 Jul 2012 09:48:02 +0000 Original-Received: (at 12036) by debbugs.gnu.org; 27 Jul 2012 09:47:04 +0000 Original-Received: from localhost ([127.0.0.1]:43016 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1Suh8S-0001Ff-Ck for submit@debbugs.gnu.org; Fri, 27 Jul 2012 05:47:04 -0400 Original-Received: from mtaout22.012.net.il ([80.179.55.172]:38910) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1Suh8P-0001FF-G3 for 12036@debbugs.gnu.org; Fri, 27 Jul 2012 05:47:02 -0400 Original-Received: from conversion-daemon.a-mtaout22.012.net.il by a-mtaout22.012.net.il (HyperSendmail v2007.08) id <0M7T00B00C1NG200@a-mtaout22.012.net.il> for 12036@debbugs.gnu.org; Fri, 27 Jul 2012 12:40:01 +0300 (IDT) Original-Received: from HOME-C4E4A596F7 ([87.69.210.75]) by a-mtaout22.012.net.il (HyperSendmail v2007.08) with ESMTPA id <0M7T00BWCC6PAN30@a-mtaout22.012.net.il>; Fri, 27 Jul 2012 12:40:01 +0300 (IDT) In-reply-to: <501233B0.2010907@cs.ucla.edu> X-012-Sender: halo1@inter.net.il X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.13 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 2) X-Received-From: 140.186.70.43 X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:62457 Archived-At: > Date: Thu, 26 Jul 2012 23:22:40 -0700 > From: Paul Eggert > CC: 12036@debbugs.gnu.org > > On 07/26/2012 01:10 PM, Eli Zaretskii wrote: > > Anyway, with tricky macros such as PUBLISH_TO_GDB, I'd think that > > going back to using variables whose type is the enum would be better, > > Yes, that's right. Unfortunately this can't be encapsulated as nicely > as PUBLISH_TO_GDB can, so I reverted the PUBLISH_TO_GDB business > and went back to the old way of making enums visible, in > trunk bzr 109224. Please give it a try. Thanks, it seems to work now, at least in a few simple tests I ran here. However, there's still a small nuisance: (gdb) break decode_any_window Breakpoint 3 at 0x11de2a8: file window.c, line 149. (gdb) r -Q Starting program: D:\gnu\bzr\emacs\trunk\src/./oo/i386/emacs.exe -Q [New Thread 1452.0x15d4] Breakpoint 3, decode_any_window (window=54896461) at window.c:149 149 if (NILP (window)) (gdb) n 152 CHECK_WINDOW (window); (gdb) p window $1 = 54896461 (gdb) xtype Lisp_Vectorlike 262144 <<<<<<<<<<<<<<<<<<<<<< In Emacs 24.1, it does better: (gdb) p window $1 = 53340677 (gdb) xtype Lisp_Vectorlike PVEC_WINDOW I'm not sure if it will be better to go back to 24.1 behavior and display PVEC_WINDOW, or change .gdbinit to say something more explicit and human-readable here, such as "window" (and similarly for other vector-like types).