From: Gary Benson Date: Mon, 28 Jul 2014 10:32:37 +0000 (+0100) Subject: Move stdarg.h to common-defs.h X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=8980bdf628f991be9c13f2d66753af2bbe5f53f5;p=binutils-gdb.git Move stdarg.h to common-defs.h This commit moves the inclusion of stdarg.h to common-defs.h and removes all other inclusions. gdb/ 2014-08-07 Gary Benson * common/common-defs.h: Include stdarg.h. * defs.h: Do not include stdarg.h. * ada-lang.c: Likewise. * common/common-utils.h: Likewise. * guile/scm-string.c: Likewise. * guile/scm-utils.c: Likewise. * m32c-tdep.c: Likewise. gdb/gdbserver/ 2014-08-07 Gary Benson * server.h: Do not include stdarg.h. * nto-low.c: Likewise. --- diff --git a/gdb/ChangeLog b/gdb/ChangeLog index a9bbb7822fd..8ced7b8f696 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,13 @@ +2014-08-07 Gary Benson + + * common/common-defs.h: Include stdarg.h. + * defs.h: Do not include stdarg.h. + * ada-lang.c: Likewise. + * common/common-utils.h: Likewise. + * guile/scm-string.c: Likewise. + * guile/scm-utils.c: Likewise. + * m32c-tdep.c: Likewise. + 2014-08-07 Gary Benson * common/common-defs.h: Include stdlib.h. diff --git a/gdb/ada-lang.c b/gdb/ada-lang.c index bf39f6b119a..5297fd3f94c 100644 --- a/gdb/ada-lang.c +++ b/gdb/ada-lang.c @@ -21,7 +21,6 @@ #include "defs.h" #include #include -#include #include "demangle.h" #include "gdb_regex.h" #include "frame.h" diff --git a/gdb/common/common-defs.h b/gdb/common/common-defs.h index ed95a364821..d227b00847d 100644 --- a/gdb/common/common-defs.h +++ b/gdb/common/common-defs.h @@ -29,5 +29,6 @@ #include #include +#include #endif /* COMMON_DEFS_H */ diff --git a/gdb/common/common-utils.h b/gdb/common/common-utils.h index f052fed20b9..dff7b53c5b8 100644 --- a/gdb/common/common-utils.h +++ b/gdb/common/common-utils.h @@ -22,7 +22,6 @@ #include "ansidecl.h" #include -#include /* If possible, define FUNCTION_NAME, a macro containing the name of the function being defined. Since this macro may not always be diff --git a/gdb/defs.h b/gdb/defs.h index 2e1e06bd6d0..00cb8e73b75 100644 --- a/gdb/defs.h +++ b/gdb/defs.h @@ -90,8 +90,6 @@ #define O_BINARY 0 #endif -#include /* For va_list. */ - #include "libiberty.h" #include "hashtab.h" diff --git a/gdb/gdbserver/ChangeLog b/gdb/gdbserver/ChangeLog index c5a6455e04c..6f0dbf0f121 100644 --- a/gdb/gdbserver/ChangeLog +++ b/gdb/gdbserver/ChangeLog @@ -1,3 +1,8 @@ +2014-08-07 Gary Benson + + * server.h: Do not include stdarg.h. + * nto-low.c: Likewise. + 2014-08-07 Gary Benson * server.h: Do not include stdlib.h. diff --git a/gdb/gdbserver/nto-low.c b/gdb/gdbserver/nto-low.c index 35871568ea7..0afaec73e48 100644 --- a/gdb/gdbserver/nto-low.c +++ b/gdb/gdbserver/nto-low.c @@ -28,7 +28,6 @@ #include #include #include -#include #include #include diff --git a/gdb/gdbserver/server.h b/gdb/gdbserver/server.h index a15ba36122b..9d7fd99fa06 100644 --- a/gdb/gdbserver/server.h +++ b/gdb/gdbserver/server.h @@ -29,7 +29,6 @@ #include "ansidecl.h" #include "version.h" -#include #ifdef HAVE_ERRNO_H #include #endif diff --git a/gdb/guile/scm-string.c b/gdb/guile/scm-string.c index 3e3e0153a05..975d1980702 100644 --- a/gdb/guile/scm-string.c +++ b/gdb/guile/scm-string.c @@ -21,7 +21,6 @@ conventions, et.al. */ #include "defs.h" -#include #include "charset.h" #include "guile-internal.h" diff --git a/gdb/guile/scm-utils.c b/gdb/guile/scm-utils.c index 5a17bd9139e..ada77a33d14 100644 --- a/gdb/guile/scm-utils.c +++ b/gdb/guile/scm-utils.c @@ -21,7 +21,6 @@ conventions, et.al. */ #include "defs.h" -#include #include #include "gdb_assert.h" #include "guile-internal.h" diff --git a/gdb/m32c-tdep.c b/gdb/m32c-tdep.c index 2c7dbb820f5..88f17a9bcc8 100644 --- a/gdb/m32c-tdep.c +++ b/gdb/m32c-tdep.c @@ -18,9 +18,6 @@ along with this program. If not, see . */ #include "defs.h" - -#include - #include #include "gdb_assert.h" #include "elf-bfd.h"