Re: [PATCH] gdbserver: start a gitignore

Yao Qi
2010-12-22T05:32:43Z

On 12/22/2010 12:45 PM, Joel Brobecker wrote:
>> diff --git a/gdb/gdbserver/.gitignore b/gdb/gdbserver/.gitignore
>> new file mode 100644
>> index 0000000..9c94950
>> --- /dev/null
>> +++ b/gdb/gdbserver/.gitignore
>> @@ -0,0 +1,4 @@
>> +gdbreplay
>> +gdbserver
>> +reg-*.c
>> +version.c
>
> I'm OK but slightly hesitant to introduce a .gitignore for files that
> are compilation artifacts, not development artifacts. If we start
> on that road, the list is possibly quite long.
>
> I believe that we should encourage people to compile GDB using
> a build directory that is different from the source directory.
> Except I don't know why I think that! :-). I know that I have been
> told that this should be the cannonical way of building GNU projects,
> and that the in-source build might one day become unsupported.
> I just know that I find it more convenient, precisely because
> it avoids polluting my source tree with such build artifacts.
>

Yes, it is not recommended to build in source dir. The patch looks
good, but not necessary.

--
Yao (é½å°§)