From: Nikolay Molchanov <Nikolay.Molchanov@Sun.COM>
To: gdb@sourceware.org
Subject: Re: Why gdb 6.5 prints fullname in /cygdrive/... format on Windows?
Date: Tue, 08 Aug 2006 19:24:00 -0000 [thread overview]
Message-ID: <44D8E4C2.8080500@Sun.COM> (raw)
In-Reply-To: <20060808173625.GG1385@adacore.com>
Joel Brobecker wrote On 08/08/06 10:36,:
>>However, front ends that compile natively to windows but are using
>>cygwin's GDB will have trouble with this. Is the intention to exclude
>>those front ends from understanding this information?
>>
>>
>
>I think that you'll need to add a special case in your front-end
>to handle that. Even though GPS is not using cygwin, it does handle
>cygwin paths without any problem.
>
>
Yes, Bob is absolutely right, we have a Java IDE (based on Netbeans),
which is a front end, and it is not easy to translate filenames from
Cygwin format to Windows format. We have to translate them because
Java does not understand Cygwin format. It is easy to translate
"/cygdrive/c/..." to "c:/...", but it is not easy to translate "/tmp/..." or
"/usr/include/..." or any other mounted filesystem path.
Is it possible to add a gdb command or setting to print full name in
Windows format?
Thanks in advance,
Nikolay Molchanov
P.S.: I'm sorry for incorrect gdb 6.4 output in my original mail.
Here is more accurate information.
Previously we used gdb 6.3-50, and it did not print fullname:
$ gdb-6.3.50.exe --nw --interpreter=mi
~"GNU gdb 6.3.50_2004-12-28-cvs (cygwin-special)\n"
~"Copyright 2004 Free Software Foundation, Inc.\n"
~"GDB is free software, covered by the GNU General Public License, and
you are\n"
~"welcome to change it and/or distribute copies of it under certain
conditions.\n"
~"Type \"show copying\" to see the conditions.\n"
~"There is absolutely no warranty for GDB. Type \"show warranty\" for
details.\n"
~"This GDB was configured as \"i686-pc-cygwin\"."
~"\n"
(gdb)
-file-exec-and-symbols args.exe
^done
(gdb)
-break-insert main
^done,bkpt={number="1",type="breakpoint",disp="keep",enabled="y",addr="0x0040106b",func="main",file="src/args.c",line="9",times="0"}
(gdb)
-exec-run
^running
(gdb)
*stopped,reason="breakpoint-hit",bkptno="1",thread-id="1",frame={addr="0x0040106b",func="main",args=[{name="argc",value="1"},{name="argv",value="0x4412b98"}],file="src/args.c",line="9"}
(gdb)
-stack-list-frames
^done,stack=[frame={level="0",addr="0x0040106b",func="main",file="src/args.c",line="9"}]
(gdb)
--------------------------------------------------------------------------------------------
Now we are trying to use gdb 6.5, which prints fullname (which is great!),
but it is printed in Cygwin format:
$ gdb --nw --interpreter=mi
~"GNU gdb 6.5.50.20060706-cvs (cygwin-special)\n"
~"Copyright (C) 2006 Free Software Foundation, Inc.\n"
~"GDB is free software, covered by the GNU General Public License, and
you are\n"
~"welcome to change it and/or distribute copies of it under certain
conditions.\n"
~"Type \"show copying\" to see the conditions.\n"
~"There is absolutely no warranty for GDB. Type \"show warranty\" for
details.\n"
~"This GDB was configured as \"i686-pc-cygwin\"."
~"\n"
(gdb)
-file-exec-and-symbols args.exe
^done
(gdb)
-break-insert main
^done,bkpt={number="1",type="breakpoint",disp="keep",enabled="y",addr="0x0040106b",func="main",file="src/args.c",fullname="/cygdrive/c/tmp/nikm/tmp_Projects/Args2/src/args.c",line="9",times="0"}
(gdb)
-exec-run
^running
(gdb)
*stopped,reason="breakpoint-hit",bkptno="1",thread-id="1",frame={addr="0x0040106b",func="main",args=[{name="argc",value="1"},{name="argv",value="0x4412b80"}],file="src/args.c",fullname="/cygdrive/c/tmp/nikm/tmp_Projects/Args2/src/args.c",line="9"}
(gdb)
-stack-list-frames
^done,stack=[frame={level="0",addr="0x0040106b",func="main",file="src/args.c",fullname="/cygdrive/c/tmp/nikm/tmp_Projects/Args2/src/args.c",line="9"}]
(gdb)
next prev parent reply other threads:[~2006-08-08 19:24 UTC|newest]
Thread overview: 43+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-08-08 6:45 Why gdb 6.5 prints fullname in /cygdrive/... format om Windows? Nikolay Molchanov
2006-08-08 10:36 ` Nick Roberts
2006-08-08 13:18 ` Daniel Jacobowitz
2006-08-08 15:29 ` Christopher Faylor
2006-08-08 17:31 ` Bob Rossi
2006-08-08 17:36 ` Joel Brobecker
2006-08-08 19:24 ` Nikolay Molchanov [this message]
2006-08-08 19:27 ` Why gdb 6.5 prints fullname in /cygdrive/... format on Windows? Daniel Jacobowitz
2006-08-08 20:01 ` Joel Brobecker
2006-08-08 20:17 ` Pedro Alves
2006-08-08 21:07 ` Christopher Faylor
2006-08-08 17:36 ` Why gdb 6.5 prints fullname in /cygdrive/... format om Windows? Daniel Jacobowitz
2006-08-09 9:17 ` Andrew STUBBS
2006-08-09 13:42 ` Daniel Jacobowitz
2006-08-09 14:38 ` Christopher Faylor
2006-08-09 18:10 ` Bob Rossi
2006-08-09 18:12 ` Daniel Jacobowitz
2006-08-09 18:18 ` Joel Brobecker
2006-08-09 18:23 ` Bob Rossi
2006-08-09 21:28 ` Christopher Faylor
2006-08-08 18:53 ` Eli Zaretskii
2006-08-08 19:33 ` Nikolay Molchanov
[not found] ` <44D8E404.5050407@Sun.COM>
2006-08-08 21:31 ` Eli Zaretskii
2006-08-09 7:23 ` Nikolay Molchanov
2006-08-09 8:41 ` Pedro Alves
2006-08-09 16:49 ` Why gdb 6.5 prints fullname in /cygdrive/... format on Windows? Nikolay Molchanov
2006-08-09 17:40 ` Why gdb 6.5 prints fullname in /cygdrive/... format om Windows? Eli Zaretskii
2006-08-10 6:22 ` How to set a breakpoint in file, which name has spaces? Nikolay Molchanov
2006-08-10 12:58 ` Daniel Jacobowitz
2006-08-10 16:36 ` Nikolay Molchanov
2006-08-10 17:51 ` Daniel Jacobowitz
2006-08-11 5:27 ` Nikolay Molchanov
2006-08-11 12:55 ` Eli Zaretskii
2006-08-11 13:48 ` Daniel Jacobowitz
2006-08-11 16:17 ` Eli Zaretskii
2006-08-11 20:13 ` Joel Brobecker
2006-08-13 18:02 ` Daniel Jacobowitz
2006-08-13 20:33 ` Joel Brobecker
2006-08-12 11:44 ` Mark Kettenis
2006-08-12 12:31 ` Andreas Schwab
2006-08-12 14:22 ` Mark Kettenis
2006-08-12 14:20 ` Eli Zaretskii
2006-08-12 14:46 ` Mark Kettenis
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=44D8E4C2.8080500@Sun.COM \
--to=nikolay.molchanov@sun.com \
--cc=gdb@sourceware.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox