how to include subdirectories too, for the source directory

murugesan mukeshgct@hotpop.com
Fri Feb 13 04:23:00 GMT 2004


Thanks BOB &Michael.
I am off way in my attempt.

Regards,
Murugesan
----- Original Message ----- 
From: Bob Rossi 
To: murugesan 
Cc: gdb@sources.redhat.com 
Sent: Thursday, February 12, 2004 6:37 PM
Subject: 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




More information about the Gdb mailing list