From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 19919 invoked by alias); 8 Aug 2006 19:33:13 -0000 Received: (qmail 19911 invoked by uid 22791); 8 Aug 2006 19:33:12 -0000 X-Spam-Check-By: sourceware.org Received: from nwkea-pix-1.sun.com (HELO nwkea-pix-1.sun.com) (192.18.42.249) by sourceware.org (qpsmtpd/0.31) with ESMTP; Tue, 08 Aug 2006 19:33:10 +0000 Received: from d1-sfbay-01.sun.com (d1-sfbay-01 [192.18.39.111]) by nwkea-pix-1.sun.com (8.13.6+Sun/8.12.9) with ESMTP id k78JX9Ld008050 for ; Tue, 8 Aug 2006 12:33:09 -0700 (PDT) Received: from conversion-daemon.d1-sfbay-01.sun.com by d1-sfbay-01.sun.com (Sun Java System Messaging Server 6.2-4.02 (built Sep 9 2005)) id <0J3P00G011WWC300@d1-sfbay-01.sun.com> (original mail from Nikolay.Molchanov@Sun.COM) for gdb@sourceware.org; Tue, 08 Aug 2006 12:33:09 -0700 (PDT) Received: from Sun.COM ([129.146.186.185]) by d1-sfbay-01.sun.com (Sun Java System Messaging Server 6.2-4.02 (built Sep 9 2005)) with ESMTPSA id <0J3P0015C2B83820@d1-sfbay-01.sun.com>; Tue, 08 Aug 2006 12:33:09 -0700 (PDT) Date: Tue, 08 Aug 2006 19:33:00 -0000 From: Nikolay Molchanov Subject: Re: Why gdb 6.5 prints fullname in /cygdrive/... format om Windows? In-reply-to: To: Eli Zaretskii Cc: gdb@sourceware.org Message-id: <44D8E6E4.2020701@Sun.COM> MIME-version: 1.0 Content-type: text/plain; charset=ISO-8859-1 Content-transfer-encoding: 7BIT References: <44D832EE.2040405@sun.com> User-Agent: Mozilla/5.0 (X11; U; SunOS sun4u; en-US; rv:1.4) Gecko/20041214 Mailing-List: contact gdb-help@sourceware.org; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-owner@sourceware.org X-SW-Source: 2006-08/txt/msg00057.txt.bz2 Eli Zaretskii wrote On 08/08/06 11:53,: >>Date: Mon, 07 Aug 2006 23:45:02 -0700 >>From: Nikolay Molchanov >> >>I'm looking for a setting that will force gdb 6.5 to print >>full file names on Windows in the same format as gdb 6.4 >>and previous gdb versions. Previously gdb printed messages >>like this one: >> >>-break-insert main >>^done,bkpt={number="1",type="breakpoint",disp="keep", >>enabled="y",addr="0x00401075",func="main",file="t1.c", >>fullname="c:/users/nik/t1/t1.c",line="2",times="0"} >> ^^^^^^^^^^^^^^^^^^^^ >> >>New version, gdb 6.5, prints fullname using another format: >> >>-break-insert main >>^done,bkpt={number="1",type="breakpoint",disp="keep", >>enabled="y",addr="0x00401075",func="main",file="t1.c", >>fullname="/cygdrive/c/users/nik/t1/t1.c",line="2",times="0"} >> ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ >> >> > >Can you tell what is the file name and the compilation directory >actually recorded in the debug info of the executable? Do they use >the /cygdrive/c/ form or the c:/ form? > Eli, the executable is built by Cygwin gcc,, but I don't know how to find out the file name and the compilation directory actually recorded in the debug info of the executable. Which command prints this info? We invoke gcc and gdb from Java IDE, which servers as front end. And the main problem with file names in Cygwin format is that Java does not understand such names, so we have to translate them to Windows format, which is not a trivial task in general case, because there could be many mounted filesystems, like "/tmp/...", "/usr/include/..." and so on. Thanks, Nik .