unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
From: Kenichi Handa <handa@m17n.org>
To: Dan Nicolaescu <dann@ics.uci.edu>
Cc: emacs-devel@gnu.org
Subject: Re: strings referred to by Vsjis_coding_system, Vbig5_coding_system
Date: Mon, 16 Nov 2009 22:01:06 +0900	[thread overview]
Message-ID: <tl77htqr5d9.fsf@m17n.org> (raw)
In-Reply-To: <200911112142.nABLgZwS024554@godzilla.ics.uci.edu> (message from Dan Nicolaescu on Wed, 11 Nov 2009 13:42:35 -0800 (PST))

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #1: Type: text/plain; charset=us-ascii, Size: 1511 bytes --]

In article <200911112142.nABLgZwS024554@godzilla.ics.uci.edu>, Dan Nicolaescu <dann@ics.uci.edu> 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
handa@m17n.org




  reply	other threads:[~2009-11-16 13:01 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-11-11 21:42 strings referred to by Vsjis_coding_system, Vbig5_coding_system Dan Nicolaescu
2009-11-16 13:01 ` Kenichi Handa [this message]
2009-11-16 15:00   ` Dan Nicolaescu
2009-11-17  4:52     ` Kenichi Handa
2009-11-17  5:08       ` Dan Nicolaescu
2009-11-17  8:10         ` Kenichi Handa

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=tl77htqr5d9.fsf@m17n.org \
    --to=handa@m17n.org \
    --cc=dann@ics.uci.edu \
    --cc=emacs-devel@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).