Mirror of the gdb mailing list
 help / color / mirror / Atom feed
* GDB under Cygwin:  spaces in source path
@ 2002-10-05 13:09 Greg Johansen
  2002-10-18 15:34 ` Andrew Cagney
  0 siblings, 1 reply; 2+ messages in thread
From: Greg Johansen @ 2002-10-05 13:09 UTC (permalink / raw)
  To: gdb

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




^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2002-10-18 22:34 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2002-10-05 13:09 GDB under Cygwin: spaces in source path Greg Johansen
2002-10-18 15:34 ` Andrew Cagney

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox