This is the mail archive of the gdb-patches@sourceware.org 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: [commit] cc-with-index.sh


On Tue, Oct 5, 2010 at 12:17 PM, Daniel Jacobowitz <dan@codesourcery.com> wrote:
> On Mon, Oct 04, 2010 at 09:28:27PM -0700, Doug Evans wrote:
>> I need a way to run the testsuite with index files,
>> so I wrote this script to help.
>>
>> Tom, feel free to replace it with something else.
>>
>> 2010-10-04 ?Doug Evans ?<dje@google.com>
>>
>> ? ? ? * cc-with-index.sh: New file.
>
> Wouldn't it be easier to do this in gdb_compile? ?There you've got
> most of the information your script has to steal from the command
> line.

Sure, one *could* do it that way, and it does solve the problem of
knowing when one is doing a link.

But cc-with-index.sh gives me something I can trivially invoke by hand
too, even easier than gdb-add-index.sh.
And to run the testsuite with the index I'm going to have to pass some
extra parameter to runtest, and it feels more intuitive to provide a
special CC_WITH_TARGET.


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