This is the mail archive of the
gdb@sourceware.org
mailing list for the GDB project.
Re: Why gdb 6.5 prints fullname in /cygdrive/... format om Windows?
- From: Nikolay Molchanov <Nikolay dot Molchanov at Sun dot COM>
- To: Eli Zaretskii <eliz at gnu dot org>
- Cc: gdb at sourceware dot org
- Date: Tue, 08 Aug 2006 12:32:52 -0700
- Subject: Re: Why gdb 6.5 prints fullname in /cygdrive/... format om Windows?
- References: <44D832EE.2040405@sun.com> <uk65jdpoy.fsf@gnu.org>
Eli Zaretskii wrote On 08/08/06 11:53,:
>>Date: Mon, 07 Aug 2006 23:45:02 -0700
>>From: Nikolay Molchanov <Nikolay.Molchanov@Sun.COM>
>>
>>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
.