From: Andrew Cagney <ac131313@redhat.com>
To: Greg Johansen <gregj1@tampabay.rr.com>
Cc: gdb@sources.redhat.com
Subject: Re: GDB under Cygwin: spaces in source path
Date: Fri, 18 Oct 2002 15:34:00 -0000 [thread overview]
Message-ID: <3DB08C7E.1020908@redhat.com> (raw)
In-Reply-To: <1a6501c26cab$2f458d90$6200a8c0@gregjetc>
> Sorry if this is a repost:
>
> I am using GDB5.0 under cygwin on a Windows PC. I have some sources in a
> directory path that contains spaces. GDB will let me cd to such a
> directory: "cd /cygdrive/c/test space", but I cannot figure out how to
> specify a space-containing directory with the "directory" command. I have
> tried quotes and tried using backslash to escape the spaces, but GDB seems
> to replace the space character with $cwd(see log below).
>
> Is there some way to specify a source path that includes spaces?
This is, unfortunatly, a very very long standing bug. The parser needs
to be changed so that spaces, in file names, can be escaped.
http://sources.redhat.com/cgi-bin/gnatsweb.pl?cmd=view%20audit-trail&database=gdb&pr=535
Andrew
> =======================================================
> $ powerpc-eabi-gdb -fullname
> GNU gdb 5.0
> Copyright 2000 Free Software Foundation, Inc.
> GDB is free software, covered by the GNU General Public License
> This GDB was configured as "--host=i686-pc-cygwin --target=powerpc-eabi".
>
> (gdb) cd /cygdrive/c/test space
> Working directory /cygdrive/c/test space.
> (gdb) directory
> Source directories searched: $cdir:$cwd
>
> (gdb) directory /cygdrive/c/test space
> Warning: /cygdrive/c/test: No such file or directory.
> Warning: /cygdrive/c/test space/space: No such file or directory.
> Source directories searched: /cygdrive/c/test:/cygdrive/c/test
> space/space:$cdir
> :$cwd
>
> (gdb) directory
> Source directories searched: $cdir:$cwd
>
> (gdb) directory /cygdrive/c/test\ space
> Warning: /cygdrive/c/test: No such file or directory.
> Warning: /cygdrive/c/test space/space: No such file or directory.
> Source directories searched: /cygdrive/c/test:/cygdrive/c/test
> space/space:$cdir
> :$cwd
>
>
>
>
prev parent reply other threads:[~2002-10-18 22:34 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2002-10-05 13:09 Greg Johansen
2002-10-18 15:34 ` Andrew Cagney [this message]
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=3DB08C7E.1020908@redhat.com \
--to=ac131313@redhat.com \
--cc=gdb@sources.redhat.com \
--cc=gregj1@tampabay.rr.com \
/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