From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 71550 invoked by alias); 9 Oct 2015 11:12:03 -0000 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 Received: (qmail 71529 invoked by uid 89); 9 Oct 2015 11:12:02 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=3.5 required=5.0 tests=AWL,BAYES_50,BODY_8BITS,GARBLED_BODY,SPF_HELO_PASS,T_RP_MATCHES_RCVD autolearn=no version=3.3.2 X-HELO: mx1.redhat.com Received: from mx1.redhat.com (HELO mx1.redhat.com) (209.132.183.28) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with (AES256-GCM-SHA384 encrypted) ESMTPS; Fri, 09 Oct 2015 11:12:00 +0000 Received: from int-mx14.intmail.prod.int.phx2.redhat.com (int-mx14.intmail.prod.int.phx2.redhat.com [10.5.11.27]) by mx1.redhat.com (Postfix) with ESMTPS id 9573991592; Fri, 9 Oct 2015 11:11:59 +0000 (UTC) Received: from [127.0.0.1] (ovpn01.gateway.prod.ext.ams2.redhat.com [10.39.146.11]) by int-mx14.intmail.prod.int.phx2.redhat.com (8.14.4/8.14.4) with ESMTP id t99BBwch022583; Fri, 9 Oct 2015 07:11:58 -0400 Message-ID: <5617A0FD.3020208@redhat.com> Date: Fri, 09 Oct 2015 11:12:00 -0000 From: Pedro Alves User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Thunderbird/31.5.0 MIME-Version: 1.0 To: Eli Zaretskii CC: gdb@sourceware.org Subject: Re: GDB/MI reporting non-ASCII file names References: <83a8s5d1nw.fsf@gnu.org> <560BCCF9.2040202@redhat.com> <83bnckasck.fsf@gnu.org> <560BF686.1030400@redhat.com> <83a8s3c3c3.fsf@gnu.org> In-Reply-To: <83a8s3c3c3.fsf@gnu.org> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-SW-Source: 2015-10/txt/msg00035.txt.bz2 Hi Eli, Sorry for the delay. On 09/30/2015 04:51 PM, Eli Zaretskii wrote: > If you compile a program from a source file whose name includes > non-ASCII characters, then debug that program with -i=mi, do you see > the file names correctly, after turning 7 bits off? > Looks like I see the same as you. With a file named "çêá.c": (gdb) set print sevenbit-strings on &"set print sevenbit-strings on\n" =cmd-param-changed,param="print sevenbit-strings",value="on" ^done (gdb) start ... *stopped,reason="breakpoint-hit",disp="del",bkptno="2",frame={addr="0x00000000004004fb",func="main",args=[{name="argc",value="1"},{name="argv",value="0x7fffffffd838"}],file="\303\247\303\252\303\241.c",fullname="/home/pedro/gdb/tests/\303\247\303\252\303\241.c",line="5"},thread-id="1",stopped-threads="all",core="2" (gdb) (gdb) set print sevenbit-strings off &"set print sevenbit-strings off\n" =cmd-param-changed,param="print sevenbit-strings",value="off" ^done (gdb) start ... *stopped,reason="breakpoint-hit",disp="del",bkptno="3",frame={addr="0x00000000004004fb",func="main",args=[{name="argc",value="1"},{name="argv",value="0x7fffffffd838"}],file="çêá.c",fullname="/home/pedro/gdb/tests/çêá.c",line="5"},thread-id="1",stopped-threads="all",core="2" But with a file named "γλώσσα.c" + "set print sevenbit-strings off": *stopped,reason="breakpoint-hit",disp="del",bkptno="1",frame={addr="0x00000000004004fb",func="main",args=[{name="argc",value="1"},{name="argv",value="0x7fffffffd808"}],file="γλ�\216�\203�\203α.c",fullname="/home/pedro/gdb/tests/γλ�\216�\203�\203α.c",line="5"},thread-id="1",stopped-threads="all",core="3" =breakpoint-deleted,id="1" (gdb) > Btw, I see valid non-ASCII file names when I use CLI and the > annotations instead. So does this mean we don't use printchar for > emitting file names in that case? > I don't know. Thanks, Pedro Alves