From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Kenichi Handa Newsgroups: gmane.emacs.devel Subject: Re: strings referred to by Vsjis_coding_system, Vbig5_coding_system Date: Mon, 16 Nov 2009 22:01:06 +0900 Message-ID: References: <200911112142.nABLgZwS024554@godzilla.ics.uci.edu> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: quoted-printable X-Trace: ger.gmane.org 1258376515 24976 80.91.229.12 (16 Nov 2009 13:01:55 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 16 Nov 2009 13:01:55 +0000 (UTC) Cc: emacs-devel@gnu.org To: Dan Nicolaescu Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Mon Nov 16 14:01:48 2009 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1NA1D5-00034i-Ph for ged-emacs-devel@m.gmane.org; Mon, 16 Nov 2009 14:01:36 +0100 Original-Received: from localhost ([127.0.0.1]:38570 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1NA1D5-0006Zd-7q for ged-emacs-devel@m.gmane.org; Mon, 16 Nov 2009 08:01:35 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1NA1Cx-0006YV-WA for emacs-devel@gnu.org; Mon, 16 Nov 2009 08:01:28 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1NA1Ct-0006VK-TA for emacs-devel@gnu.org; Mon, 16 Nov 2009 08:01:27 -0500 Original-Received: from [199.232.76.173] (port=43553 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1NA1Ct-0006VA-Ok for emacs-devel@gnu.org; Mon, 16 Nov 2009 08:01:23 -0500 Original-Received: from mx1.aist.go.jp ([150.29.246.133]:49760) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1NA1Cr-0006Y4-PI for emacs-devel@gnu.org; Mon, 16 Nov 2009 08:01:22 -0500 Original-Received: from rqsmtp1.aist.go.jp (rqsmtp1.aist.go.jp [150.29.254.115]) by mx1.aist.go.jp with ESMTP id nAGD1J2Y022010; Mon, 16 Nov 2009 22:01:19 +0900 (JST) env-from (handa@m17n.org) Original-Received: from smtp3.aist.go.jp by rqsmtp1.aist.go.jp with ESMTP id nAGD1JO8019601; Mon, 16 Nov 2009 22:01:19 +0900 (JST) env-from (handa@m17n.org) Original-Received: by smtp3.aist.go.jp with ESMTP id nAGD1IkV004357; Mon, 16 Nov 2009 22:01:18 +0900 (JST) env-from (handa@m17n.org) Original-Received: from handa by etlken with local (Exim 4.69) (envelope-from ) id 1NA1Co-0004C9-LW; Mon, 16 Nov 2009 22:01:18 +0900 In-Reply-To: <200911112142.nABLgZwS024554@godzilla.ics.uci.edu> (message from Dan Nicolaescu on Wed, 11 Nov 2009 13:42:35 -0800 (PST)) X-MIME-Autoconverted: from 8bit to quoted-printable by mx1.aist.go.jp id nAGD1J2Y022010 X-detected-operating-system: by monty-python.gnu.org: Solaris 9 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:117035 Archived-At: In article <200911112142.nABLgZwS024554@godzilla.ics.uci.edu>, Dan Nicola= escu writes: > Handa-san, > Strings like this: > =C3=BF=C3=BF=C3=BF=C3=BF=C3=BF=C3=BF=C3=BF=C3=BF=C3=BF=C3=BF=C3=BF=C3=BF= =C3=BF=C3=BF=C3=BF=C3=BF=C3=BF > are found in the GC memory in emacs, they are referred to by > Vsjis_coding_system, Vbig5_coding_system, and maybe other variables. > Is there any chance that such strings can be put in pure memory? > Not sure where they are created, and what they do... I have no idea. Are you sure that those variables refer that string? According to the following gdb session, at least Vbig5_coding_system doesn't refer such a string directly. (gdb) p Vbig5_coding_system $1 =3D 139728474 (gdb) xtype Lisp_Symbol (gdb) xsymbol $2 =3D (struct Lisp_Symbol *) 0x8541658 "chinese-big5" (gdb) p *$2 $3 =3D { gcmarkbit =3D 0,=20 indirect_variable =3D 0,=20 constant =3D 0,=20 interned =3D 2,=20 xname =3D 137571105,=20 value =3D 138911026,=20 function =3D 138911026,=20 plist =3D 138911002,=20 next =3D 0x85356b0 } (gdb) p $3->value $4 =3D 138911026 (gdb) xtype Lisp_Symbol (gdb) xsymbol $5 =3D (struct Lisp_Symbol *) 0x8479d30 "unbound" (gdb) p $3->function $6 =3D 138911026 (gdb) p $3->plist $7 =3D 138911002 (gdb) xtype Lisp_Symbol (gdb) xsymbol $8 =3D (struct Lisp_Symbol *) 0x8479d18 "nil" By the way, I've just found that "pr" command doesn't work with the latest code: (gdb) p Vbig5_coding_system $1 =3D 139728474 (gdb) pr Cannot access memory at address 0x842e030 --- Kenichi Handa handa@m17n.org