bug-gdb
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

gdbinit question


From: Richard Elmore
Subject: gdbinit question
Date: Tue, 10 Jul 2001 20:34:16 -0700
User-agent: YA-NewsWatcher/5.0.1

Sorry if this is not the correct forum for this, I am new to gdb and
still learning.  If there is a better place for these sort of questions
could somebody point me to it?

That said:

I have run into a problem with the 'file' and 'dir' commands in gdb. 
The version of gdb I am using claims to be 5.0-20001113.  It is the
build of gdb that Apple ships with MacOS X.

If I issue a 'file' command like:

file '/Path To/My/Executable'

from inside gdb it works fine, but if I put the exact same command into
my .gdbinit file it generates an error.  The problem seems to be
related to having directory names in the path that contain spaces.  I
have tried every combination of quoting and escaping that I can think
of and still it doesn't work.  The same seems to be true of the 'dir'
command.

So is there a way to specify a path for the 'file' or 'dir' commands,
when the path includes directories with spaces in their name, that will
work when executed from my .gdbinit file?  Also why is there even a
difference between what works when typed at the gdb prompt and what
works when read from the .gdbinit file?


TIA!

- Richard



reply via email to

[Prev in Thread] Current Thread [Next in Thread]