emacs-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: strings referred to by Vsjis_coding_system, Vbig5_coding_system


From: Kenichi Handa
Subject: Re: strings referred to by Vsjis_coding_system, Vbig5_coding_system
Date: Mon, 16 Nov 2009 22:01:06 +0900

In article <address@hidden>, Dan Nicolaescu <address@hidden> writes:

> Handa-san,
> Strings like this:

> ÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿ

> 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 = 139728474
(gdb) xtype
Lisp_Symbol
(gdb) xsymbol
$2 = (struct Lisp_Symbol *) 0x8541658
"chinese-big5"
(gdb) p *$2
$3 = {
  gcmarkbit = 0, 
  indirect_variable = 0, 
  constant = 0, 
  interned = 2, 
  xname = 137571105, 
  value = 138911026, 
  function = 138911026, 
  plist = 138911002, 
  next = 0x85356b0
}
(gdb) p $3->value
$4 = 138911026
(gdb) xtype
Lisp_Symbol
(gdb) xsymbol
$5 = (struct Lisp_Symbol *) 0x8479d30
"unbound"
(gdb) p $3->function
$6 = 138911026
(gdb) p $3->plist
$7 = 138911002
(gdb) xtype
Lisp_Symbol
(gdb) xsymbol
$8 = (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 = 139728474
(gdb) pr
Cannot access memory at address 0x842e030

---
Kenichi Handa
address@hidden




reply via email to

[Prev in Thread] Current Thread [Next in Thread]