Re: [PATCH] gdbserver: start a gitignore

Joel Brobecker
2010-12-22T04:45:37Z

> 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.

What do people think?

--
Joel