From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 15529 invoked by alias); 24 May 2010 02:28:31 -0000 Received: (qmail 15519 invoked by uid 22791); 24 May 2010 02:28:30 -0000 X-SWARE-Spam-Status: No, hits=-1.8 required=5.0 tests=AWL,BAYES_00,DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FROM,RCVD_IN_DNSWL_NONE X-Spam-Check-By: sourceware.org Received: from mail-px0-f169.google.com (HELO mail-px0-f169.google.com) (209.85.212.169) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Mon, 24 May 2010 02:28:26 +0000 Received: by pxi12 with SMTP id 12so3457505pxi.0 for ; Sun, 23 May 2010 19:28:24 -0700 (PDT) Received: by 10.142.149.39 with SMTP id w39mr3354414wfd.61.1274668104785; Sun, 23 May 2010 19:28:24 -0700 (PDT) MIME-Version: 1.0 Received: by 10.143.45.13 with HTTP; Sun, 23 May 2010 19:27:54 -0700 (PDT) In-Reply-To: References: From: Hui Zhu Date: Mon, 24 May 2010 02:28:00 -0000 Message-ID: Subject: Re: Can gdb display the source code lines with comments in other languages? To: Yongtao Yang Cc: gdb@sourceware.org Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable 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: 2010-05/txt/msg00072.txt.bz2 On Mon, May 24, 2010 at 00:51, Yongtao Yang wrote: > > Can gdb display the source code lines correctly with comments in other > languages, such as Chinese? gdb ./a.out GNU gdb (GDB) 7.1.50.20100524-cvs Copyright (C) 2010 Free Software Foundation, Inc. License GPLv3+: GNU GPL version 3 or later This is free software: you are free to change and redistribute it. There is NO WARRANTY, to the extent permitted by law. Type "show copying" and "show warranty" for details. This GDB was configured as "i686-pc-linux-gnu". For bug reporting instructions, please see: ... Reading symbols from /home/teawater/gdb/a.out...done. (gdb) start Temporary breakpoint 1 at 0x8048428: file 1.c, line 21. Starting program: /home/teawater/gdb/a.out Temporary breakpoint 1, main (argc=3D1, argv=3D0xbffff5a4, envp=3D0xbffff5ac) at 1.c:21 21 if (argc < 2) /* =E4=B8=BA=E4=BB=80=E4=B9=88=E4=B8=8D=E6=94=AF=E6=8C=81= =EF=BC=9F */