diff options
author | Simon Marchi <simon.marchi@polymtl.ca> | 2017-03-31 11:19:44 -0400 |
---|---|---|
committer | Simon Marchi <simon.marchi@ericsson.com> | 2017-03-31 11:19:44 -0400 |
commit | 8fa5b777488105287e56937365523d01e51c2eb3 (patch) | |
tree | f9ed5165afab6d9104ca2bb82672d59eeee86a2c /gdb/gdbserver/.gitignore | |
parent | efdf7a02db60e7371ba6372e47b510aadecbae28 (diff) | |
download | gdb-8fa5b777488105287e56937365523d01e51c2eb3.zip gdb-8fa5b777488105287e56937365523d01e51c2eb3.tar.gz gdb-8fa5b777488105287e56937365523d01e51c2eb3.tar.bz2 |
gdbserver: Suffix generated C files with -generated
I noticed that there were some missing files in gdbserver's gitignore
(some generated register format .c files). Of course the easy fix would
be to add those files to .gitignore, but I think we can do a better job,
so that we don't have to worry about adding generated files to
.gitignore or the clean Makefile target.
I suggest naming all generated source files -generated.c. This way, we
can use a single rule in .gitignore and do a "rm -f *-generated.c" to
clean them up.
New in v2:
- Don't rename version.o and xml-builtin.o
gdb/gdbserver/ChangeLog:
* .gitignore: Remove generated files, replace with wildcard.
* (clean): Replace removal of generated files with wildcard.
(version.c): Replace with...
(version-generated.c): ...this.
(xml-builtin.c): Replace with...
(xml-builtin-generated.c): ...this.
(%-ipa.o: %-generated.c, %.o: %-generated.c): New rules.
(%.c: *regformats*): Replace with...
(%-generated.c: *regformats*): ...this.
Diffstat (limited to 'gdb/gdbserver/.gitignore')
-rw-r--r-- | gdb/gdbserver/.gitignore | 18 |
1 files changed, 1 insertions, 17 deletions
diff --git a/gdb/gdbserver/.gitignore b/gdb/gdbserver/.gitignore index 66ce8439e..fef0d01 100644 --- a/gdb/gdbserver/.gitignore +++ b/gdb/gdbserver/.gitignore @@ -7,20 +7,4 @@ libinproctrace.so build-gnulib-gdbserver build-libiberty-gdbserver -amd64-avx-linux.c -amd64-avx-mpx-linux.c -amd64-avx512-linux.c -amd64-linux.c -amd64-mpx-linux.c -i386-avx-linux.c -i386-avx-mpx-linux.c -i386-avx512-linux.c -i386-linux.c -i386-mmx-linux.c -i386-mpx-linux.c -reg-*.c -version.c -x32-avx-linux.c -x32-avx512-linux.c -x32-linux.c -xml-builtin.c +*-generated.c |