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: Thu, 26 Jul 2012 23:10:19 +0300 Message-ID: <83ipdajnbo.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> Reply-To: Eli Zaretskii NNTP-Posting-Host: plane.gmane.org X-Trace: dough.gmane.org 1343333478 22567 80.91.229.3 (26 Jul 2012 20:11:18 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Thu, 26 Jul 2012 20:11:18 +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 Thu Jul 26 22:11:16 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 1SuUOx-00051x-8Z for geb-bug-gnu-emacs@m.gmane.org; Thu, 26 Jul 2012 22:11:15 +0200 Original-Received: from localhost ([::1]:60321 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SuUOw-0004Qm-GY for geb-bug-gnu-emacs@m.gmane.org; Thu, 26 Jul 2012 16:11:14 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:40298) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SuUOt-0004Qe-NJ for bug-gnu-emacs@gnu.org; Thu, 26 Jul 2012 16:11:12 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1SuUOs-0007pe-6J for bug-gnu-emacs@gnu.org; Thu, 26 Jul 2012 16:11:11 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:60365) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SuUOs-0007pa-2n for bug-gnu-emacs@gnu.org; Thu, 26 Jul 2012 16:11:10 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.72) (envelope-from ) id 1SuUVW-0007Es-Dd for bug-gnu-emacs@gnu.org; Thu, 26 Jul 2012 16:18: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: Thu, 26 Jul 2012 20:18: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.134333386427791 (code B ref 12036); Thu, 26 Jul 2012 20:18:02 +0000 Original-Received: (at 12036) by debbugs.gnu.org; 26 Jul 2012 20:17:44 +0000 Original-Received: from localhost ([127.0.0.1]:41677 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1SuUVD-0007EB-PB for submit@debbugs.gnu.org; Thu, 26 Jul 2012 16:17:44 -0400 Original-Received: from mtaout20.012.net.il ([80.179.55.166]:45539) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1SuUVB-0007E2-4C for 12036@debbugs.gnu.org; Thu, 26 Jul 2012 16:17:42 -0400 Original-Received: from conversion-daemon.a-mtaout20.012.net.il by a-mtaout20.012.net.il (HyperSendmail v2007.08) id <0M7S00J00ADR4N00@a-mtaout20.012.net.il> for 12036@debbugs.gnu.org; Thu, 26 Jul 2012 23:10:15 +0300 (IDT) Original-Received: from HOME-C4E4A596F7 ([87.69.210.75]) by a-mtaout20.012.net.il (HyperSendmail v2007.08) with ESMTPA id <0M7S00JA6AP22Q40@a-mtaout20.012.net.il>; Thu, 26 Jul 2012 23:10:14 +0300 (IDT) In-reply-to: <50119070.8090101@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:62436 Archived-At: > Date: Thu, 26 Jul 2012 11:46:08 -0700 > From: Paul Eggert > CC: 12036@debbugs.gnu.org > > > (gdb) xtype > > Lisp_Vectorlike > > No enum type named pvec_type. > > I expect that I don't have this problem because the bug has been fixed > in my tools (GCC 4.7.1 + GDB 7.4.1). I tried to work around the problem > by putting this line into lisp.h: > > PUBLISH_TO_GDB ((enum pvec_type) 0); /* This also publishes PVEC_*. */ > > but I can't easily test this, since my tools don't have the problem. > Could you please try it? And if it doesn't work, could you > please try adding lines like this: > > PUBLISH_TO_GDB (PVEC_TYPE_MASK); > > for values like PVEC_TYPE_MASK that do not otherwise work for you? Unfortunately, with my ancient version of GCC, I don't even get past CHECK_LISP_OBJECT_TYPE in xgetptr: .gdbinit:1197: Error in sourced command file: No symbol "CHECK_LISP_OBJECT_TYPE" in current context. Looks like PUBLISH_TO_GDB is not doing the trick here. 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, don't you think? We could modify PUBLISH_TO_GDB to do that.