Mirror of the gdb mailing list
 help / color / mirror / Atom feed
From: Tom Tromey <tromey@redhat.com>
To: "Yifan Wang" <heavenstar@gmail.com>
Cc: gdb@sourceware.org
Subject: Re: gdb support for wide char
Date: Mon, 13 Oct 2008 18:48:00 -0000	[thread overview]
Message-ID: <m3bpxoo18f.fsf@fleche.redhat.com> (raw)
In-Reply-To: <fdbd509e0810130155o421c4f7bvbf5eb2c45c8851c8@mail.gmail.com> (Yifan Wang's message of "Mon\, 13 Oct 2008 10\:55\:52 +0200")

>>>>> "Yifan" == Yifan Wang <heavenstar@gmail.com> writes:

Yifan> and now i am working on utf8 which is not fixed length character.
Yifan> The solution rely on the glibc functions, eg.mbstowcs(), iconv(), to
Yifan> support wide character.

Yifan> I dont know whether this solution is good enough, because it
Yifan> does not support other programming language and it rely on the
Yifan> glibc functions.

Is it calling these functions in the inferior?

If so, then I think it would be preferable to use iconv in gdb, and
not call any inferior functions.  This approach has several
advantages: it works with core files, it works with other languages,
and (due to the existence of libiconv) it is more portable.

If not, I think I am not understanding something.

Tom


  reply	other threads:[~2008-10-13 18:48 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-10-01 10:29 Yifan Wang
2008-10-01 15:28 ` Tom Tromey
2008-10-13  8:56   ` Yifan Wang
2008-10-13 18:48     ` Tom Tromey [this message]
     [not found] <1224016294.17588.ezmlm@sourceware.org>
2008-10-15  0:14 ` Duane Ellis

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

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

  git send-email \
    --in-reply-to=m3bpxoo18f.fsf@fleche.redhat.com \
    --to=tromey@redhat.com \
    --cc=gdb@sourceware.org \
    --cc=heavenstar@gmail.com \
    /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.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox