This is the mail archive of the
gdb@sourceware.org
mailing list for the GDB project.
Re: Can gdb display the source code lines with comments in other languages?
- From: Hui Zhu <teawater at gmail dot com>
- To: Yongtao Yang <yongtao dot y at gmail dot com>
- Cc: gdb at sourceware dot org
- Date: Mon, 24 May 2010 10:27:54 +0800
- Subject: Re: Can gdb display the source code lines with comments in other languages?
- References: <AANLkTinGDZWjhlmksELmk4UynFDhMbwG-RlbowVEKmHy@mail.gmail.com>
On Mon, May 24, 2010 at 00:51, Yongtao Yang <yongtao.y@gmail.com> 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 <http://gnu.org/licenses/gpl.html>
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:
<http://www.gnu.org/software/gdb/bugs/>...
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=1, argv=0xbffff5a4,
envp=0xbffff5ac) at 1.c:21
21 if (argc < 2) /* ääääææï */