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]

Re: how to include subdirectories too, for the source directory


On Thu, Feb 12, 2004 at 03:27:40PM +0530, murugesan wrote:
> Hello all,
>     I need to include a directory (including it's subdirectories ). I did
> that with
> gdb --directory=home --directory=/home/sub1 --directory=/home/sub2
> ............
> 
> Is there a way to get out from this riddle to include recursively the
> subdirectories.

Generate the names given a directory with a command. For example,
(find directoryName -type d | perl -pi -e 's/(.*)/--directory=$1/')
That will generate a '--directory=dir' for every directory in
directoryName. 

What you need looks like it can easily be accomplished outside of GDB.

Bob Rossi


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