* [PATCH] gdbserver: start a gitignore
@ 2010-12-15 12:33 Mike Frysinger
2010-12-22 4:45 ` Joel Brobecker
0 siblings, 1 reply; 11+ messages in thread
From: Mike Frysinger @ 2010-12-15 12:33 UTC (permalink / raw)
To: gdb-patches; +Cc: toolchain-devel
Signed-off-by: Mike Frysinger <vapier@gentoo.org>
---
gdb/gdbserver/.gitignore | 4 ++++
1 files changed, 4 insertions(+), 0 deletions(-)
create mode 100644 gdb/gdbserver/.gitignore
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
--
1.7.3.1
^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: [PATCH] gdbserver: start a gitignore
2010-12-15 12:33 [PATCH] gdbserver: start a gitignore Mike Frysinger
@ 2010-12-22 4:45 ` Joel Brobecker
2010-12-22 5:32 ` Yao Qi
` (2 more replies)
0 siblings, 3 replies; 11+ messages in thread
From: Joel Brobecker @ 2010-12-22 4:45 UTC (permalink / raw)
To: Mike Frysinger; +Cc: gdb-patches
> 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
^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: [PATCH] gdbserver: start a gitignore
2010-12-22 4:45 ` Joel Brobecker
@ 2010-12-22 5:32 ` Yao Qi
2010-12-22 11:24 ` Eli Zaretskii
2010-12-22 15:58 ` Tom Tromey
2 siblings, 0 replies; 11+ messages in thread
From: Yao Qi @ 2010-12-22 5:32 UTC (permalink / raw)
To: gdb-patches
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 (é½å°§)
^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: [PATCH] gdbserver: start a gitignore
2010-12-22 4:45 ` Joel Brobecker
2010-12-22 5:32 ` Yao Qi
@ 2010-12-22 11:24 ` Eli Zaretskii
2010-12-22 14:43 ` Joel Brobecker
` (2 more replies)
2010-12-22 15:58 ` Tom Tromey
2 siblings, 3 replies; 11+ messages in thread
From: Eli Zaretskii @ 2010-12-22 11:24 UTC (permalink / raw)
To: Joel Brobecker; +Cc: vapier, gdb-patches
> Date: Wed, 22 Dec 2010 08:45:18 +0400
> From: Joel Brobecker <brobecker@adacore.com>
> Cc: gdb-patches@sourceware.org
>
> 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.
How long can it be? Something like *.o, *.so, *.exe, and a couple of
binaries we produce? Is that really a problem?
I see such exclusions in every GNU project I'm working on. I don't
think this road is too long ;-)
> I believe that we should encourage people to compile GDB using
> a build directory that is different from the source directory.
Right, but you cannot (and shouldn't, IMO) force people doing that by
such measures. People who want to build in the source tree will
complain, but will not stop doing that.
> Except I don't know why I think that! :-).
I do. From gdb/README:
You can build GDB right in the source directory:
cd gdb-VERSION
./configure
make
cp gdb/gdb /usr/local/bin/gdb (or wherever you want)
However, we recommend that an empty directory be used instead.
This way you do not clutter your source tree with binary files
and will be able to create different builds with different
configuration options.
^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: [PATCH] gdbserver: start a gitignore
2010-12-22 11:24 ` Eli Zaretskii
@ 2010-12-22 14:43 ` Joel Brobecker
2010-12-22 18:17 ` Mike Frysinger
2010-12-22 22:05 ` Michael Snyder
2 siblings, 0 replies; 11+ messages in thread
From: Joel Brobecker @ 2010-12-22 14:43 UTC (permalink / raw)
To: Eli Zaretskii; +Cc: vapier, gdb-patches
> How long can it be? Something like *.o, *.so, *.exe, and a couple of
> binaries we produce? Is that really a problem?
I'm not really objecting, nor am I thinking that the list of overly
long. If others are happy with that, that's fine with me too. Note
that you'll also want to add all the files generated during the
configure and build: config.xxx, Makefile, etc.
--
Joel
^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: [PATCH] gdbserver: start a gitignore
2010-12-22 4:45 ` Joel Brobecker
2010-12-22 5:32 ` Yao Qi
2010-12-22 11:24 ` Eli Zaretskii
@ 2010-12-22 15:58 ` Tom Tromey
2 siblings, 0 replies; 11+ messages in thread
From: Tom Tromey @ 2010-12-22 15:58 UTC (permalink / raw)
To: Joel Brobecker; +Cc: Mike Frysinger, gdb-patches
>>>>> "Joel" == Joel Brobecker <brobecker@adacore.com> writes:
Joel> I believe that we should encourage people to compile GDB using
Joel> a build directory that is different from the source directory.
Joel> Except I don't know why I think that! :-).
For a long time, GCC didn't support in-tree builds. I think this, plus
the convenience of being able to do multiple builds from a single source
tree, or clean a build by "rm -rf", contributed to its adoption.
Joel> What do people think?
I don't mind .gitignore files listing build artifacts.
It is unlikely to break anything and I am not likely to notice anyhow :-)
Tom
^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: [PATCH] gdbserver: start a gitignore
2010-12-22 11:24 ` Eli Zaretskii
2010-12-22 14:43 ` Joel Brobecker
@ 2010-12-22 18:17 ` Mike Frysinger
2010-12-23 4:22 ` Joel Brobecker
2010-12-22 22:05 ` Michael Snyder
2 siblings, 1 reply; 11+ messages in thread
From: Mike Frysinger @ 2010-12-22 18:17 UTC (permalink / raw)
To: Eli Zaretskii; +Cc: Joel Brobecker, gdb-patches
[-- Attachment #1: Type: Text/Plain, Size: 668 bytes --]
On Wednesday, December 22, 2010 06:24:18 Eli Zaretskii wrote:
> > Date: Wed, 22 Dec 2010 08:45:18 +0400
> > From: Joel Brobecker <brobecker@adacore.com>
> > Cc: gdb-patches@sourceware.org
> >
> > 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.
>
> How long can it be? Something like *.o, *.so, *.exe, and a couple of
> binaries we produce? Is that really a problem?
the higher level gitignores already take care of the common ignores. subdirs
need to only mention their specific generated files.
-mike
[-- Attachment #2: This is a digitally signed message part. --]
[-- Type: application/pgp-signature, Size: 836 bytes --]
^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: [PATCH] gdbserver: start a gitignore
2010-12-22 11:24 ` Eli Zaretskii
2010-12-22 14:43 ` Joel Brobecker
2010-12-22 18:17 ` Mike Frysinger
@ 2010-12-22 22:05 ` Michael Snyder
2010-12-23 3:19 ` Mike Frysinger
2 siblings, 1 reply; 11+ messages in thread
From: Michael Snyder @ 2010-12-22 22:05 UTC (permalink / raw)
To: Eli Zaretskii; +Cc: Joel Brobecker, vapier, gdb-patches
Eli Zaretskii wrote:
>> Date: Wed, 22 Dec 2010 08:45:18 +0400
>> From: Joel Brobecker <brobecker@adacore.com>
>> Cc: gdb-patches@sourceware.org
>>
>> 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.
>
> How long can it be? Something like *.o, *.so, *.exe, and a couple of
> binaries we produce? Is that really a problem?
*.a, *.la, *.lo....
^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: [PATCH] gdbserver: start a gitignore
2010-12-22 22:05 ` Michael Snyder
@ 2010-12-23 3:19 ` Mike Frysinger
0 siblings, 0 replies; 11+ messages in thread
From: Mike Frysinger @ 2010-12-23 3:19 UTC (permalink / raw)
To: Michael Snyder; +Cc: Eli Zaretskii, Joel Brobecker, gdb-patches
[-- Attachment #1: Type: Text/Plain, Size: 703 bytes --]
On Wednesday, December 22, 2010 13:44:55 Michael Snyder wrote:
> Eli Zaretskii wrote:
> >> Date: Wed, 22 Dec 2010 08:45:18 +0400
> >> From: Joel Brobecker <brobecker@adacore.com>
> >> Cc: gdb-patches@sourceware.org
> >>
> >> 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.
> >
> > How long can it be? Something like *.o, *.so, *.exe, and a couple of
> > binaries we produce? Is that really a problem?
>
> *.a, *.la, *.lo....
... which are already handled in the top level and thus not relevant to gdb-
specific gitignore files
-mike
[-- Attachment #2: This is a digitally signed message part. --]
[-- Type: application/pgp-signature, Size: 836 bytes --]
^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: [PATCH] gdbserver: start a gitignore
2010-12-22 18:17 ` Mike Frysinger
@ 2010-12-23 4:22 ` Joel Brobecker
2010-12-24 2:55 ` Mike Frysinger
0 siblings, 1 reply; 11+ messages in thread
From: Joel Brobecker @ 2010-12-23 4:22 UTC (permalink / raw)
To: Mike Frysinger; +Cc: Eli Zaretskii, gdb-patches
> the higher level gitignores already take care of the common ignores. subdirs
> need to only mention their specific generated files.
OK for both .gitignore files.
I was nit-picking on myself whether to have one gitignore file for
the entire gdb project, or multiple ones. I like one because all
the information is grouped in one single file. On the other hand,
this has several drawbacks: merging conflicts are more likely, and
renaming a directory inside GDB means that the global gitignore
would probably need to be updated as well. Neither drawback is
significant, but since we have patches that avoid them both...
--
Joel
^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: [PATCH] gdbserver: start a gitignore
2010-12-23 4:22 ` Joel Brobecker
@ 2010-12-24 2:55 ` Mike Frysinger
0 siblings, 0 replies; 11+ messages in thread
From: Mike Frysinger @ 2010-12-24 2:55 UTC (permalink / raw)
To: Joel Brobecker; +Cc: Eli Zaretskii, gdb-patches
[-- Attachment #1: Type: Text/Plain, Size: 286 bytes --]
On Wednesday, December 22, 2010 23:09:52 Joel Brobecker wrote:
> > the higher level gitignores already take care of the common ignores.
> > subdirs need to only mention their specific generated files.
>
> OK for both .gitignore files.
thanks ... ive committed them now
-mike
[-- Attachment #2: This is a digitally signed message part. --]
[-- Type: application/pgp-signature, Size: 836 bytes --]
^ permalink raw reply [flat|nested] 11+ messages in thread
end of thread, other threads:[~2010-12-23 22:18 UTC | newest]
Thread overview: 11+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2010-12-15 12:33 [PATCH] gdbserver: start a gitignore Mike Frysinger
2010-12-22 4:45 ` Joel Brobecker
2010-12-22 5:32 ` Yao Qi
2010-12-22 11:24 ` Eli Zaretskii
2010-12-22 14:43 ` Joel Brobecker
2010-12-22 18:17 ` Mike Frysinger
2010-12-23 4:22 ` Joel Brobecker
2010-12-24 2:55 ` Mike Frysinger
2010-12-22 22:05 ` Michael Snyder
2010-12-23 3:19 ` Mike Frysinger
2010-12-22 15:58 ` Tom Tromey
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox