From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 15423 invoked by alias); 1 Oct 2008 10:29:13 -0000 Received: (qmail 15410 invoked by uid 22791); 1 Oct 2008 10:29:13 -0000 X-Spam-Check-By: sourceware.org Received: from rv-out-0708.google.com (HELO rv-out-0708.google.com) (209.85.198.250) by sourceware.org (qpsmtpd/0.31) with ESMTP; Wed, 01 Oct 2008 10:28:38 +0000 Received: by rv-out-0708.google.com with SMTP id b17so443384rvf.48 for ; Wed, 01 Oct 2008 03:28:36 -0700 (PDT) Received: by 10.141.76.21 with SMTP id d21mr4243071rvl.270.1222856916060; Wed, 01 Oct 2008 03:28:36 -0700 (PDT) Received: by 10.140.174.17 with HTTP; Wed, 1 Oct 2008 03:28:36 -0700 (PDT) Message-ID: Date: Wed, 01 Oct 2008 10:29:00 -0000 From: "Yifan Wang" To: gdb@sourceware.org Subject: gdb support for wide char MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline X-IsSubscribed: yes Mailing-List: contact gdb-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-owner@sourceware.org X-SW-Source: 2008-10/txt/msg00001.txt.bz2 hi in gdb, i usually use "p" or "x /s" to print strings in my program. But the problem is, when i write some program for non-english user, i usually use utf-8 or utf-16 strings. gdb can not print those string properly. so i want to write a patch to gdb so that gdb can support printing utf strings. I am not familar with the gdb source files, can someone give some ideas about where i should start and which part of the source files cover the topic? Any hints or ideas are great Thanks Yifan