This is the mail archive of the gdb@sources.redhat.com mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

GDB under Cygwin: spaces in source path


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




Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]