diff options
author | Tom Tromey <tromey@redhat.com> | 2013-06-24 15:06:27 +0000 |
---|---|---|
committer | Tom Tromey <tromey@redhat.com> | 2013-06-24 15:06:27 +0000 |
commit | 0120846339200cfc91bd0fc5132bcfea6f1dcff4 (patch) | |
tree | d9006b682dc9349708f84797b74fd9d5f833df70 /gdb/gdbserver/gdbreplay.c | |
parent | cd6d434c14735b0f374bada533793bbad5393e19 (diff) | |
download | gdb-0120846339200cfc91bd0fc5132bcfea6f1dcff4.zip gdb-0120846339200cfc91bd0fc5132bcfea6f1dcff4.tar.gz gdb-0120846339200cfc91bd0fc5132bcfea6f1dcff4.tar.bz2 |
don't keep a gdb-specific date
Right now there are two nightly commits to update a file in the tree
with the current date. One commit is for BFD, one is for gdb.
It seems unnecessary to me to do this twice. We can make do with a
single such commit.
This patch changes gdb in a minimal way to reuse the BFD date -- it
extracts it from bfd/version.h and changes version.in to use the
placeholder string "DATE" for those times when a date is wanted.
I propose removing the cron job that updates the version on trunk, and
then check in this patch.
For release branches, we can keep the cron job, but just tell it to
rewrite bfd/version.h. I believe this is a simple change in the
crontab -- the script will work just fine on this file.
This also moves version.in and version.h into common/, to reflect
their shared status; and updates gdbserver to use version.h besides.
* common/create-version.sh: New file.
* Makefile.in (version.c): Use bfd/version.h, common/version.in,
create-version.sh.
(HFILES_NO_SRCDIR): Use common/version.h.
* version.in: Move to ...
* common/version.in: ... here. Replace date with "DATE".
* version.h: Move to ...
* common/version.h: ... here.
gdbserver:
* Makefile.in (version.c): Use bfd/version.h, common/version.in,
create-version.sh.
(version.o): Remove.
* gdbreplay.c: Include version.h.
(version, host_name): Don't declare.
* server.h: Include version.h.
(version, host_name): Don't declare.
doc:
* Makefile.in (POD2MAN1, POD2MAN5): Use version.subst.
(GDBvn.texi): Use version.subst.
(version.subst): New target.
(mostlyclean): Remove version.subst.
Diffstat (limited to 'gdb/gdbserver/gdbreplay.c')
-rw-r--r-- | gdb/gdbserver/gdbreplay.c | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/gdb/gdbserver/gdbreplay.c b/gdb/gdbserver/gdbreplay.c index 0aa52d8..c0d0c8f 100644 --- a/gdb/gdbserver/gdbreplay.c +++ b/gdb/gdbserver/gdbreplay.c @@ -19,6 +19,7 @@ #include "config.h" #include "build-gnulib-gdbserver/config.h" +#include "version.h" #include <stdio.h> #if HAVE_SYS_FILE_H @@ -72,10 +73,6 @@ typedef int socklen_t; /* Sort of a hack... */ #define EOL (EOF - 1) -/* Version information, from version.c. */ -extern const char version[]; -extern const char host_name[]; - static int remote_desc; #ifdef __MINGW32CE__ |