Mirror of the gdb mailing list
 help / color / mirror / Atom feed
From: "Greg Johansen" <gregj1@tampabay.rr.com>
To: <gdb@sources.redhat.com>
Subject: GDB under Cygwin:  spaces in source path
Date: Sat, 05 Oct 2002 13:09:00 -0000	[thread overview]
Message-ID: <1a6501c26cab$2f458d90$6200a8c0@gregjetc> (raw)

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?

thanks...gregj

=======================================================
$ 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




             reply	other threads:[~2002-10-05 20:09 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2002-10-05 13:09 Greg Johansen [this message]
2002-10-18 15:34 ` Andrew Cagney

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='1a6501c26cab$2f458d90$6200a8c0@gregjetc' \
    --to=gregj1@tampabay.rr.com \
    --cc=gdb@sources.redhat.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