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

Bob Rossi
2004-02-12T13:07:24Z

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