Move stdarg.h to common-defs.h
authorGary Benson <gbenson@redhat.com>
Mon, 28 Jul 2014 10:32:37 +0000 (11:32 +0100)
committerGary Benson <gbenson@redhat.com>
Thu, 7 Aug 2014 08:06:39 +0000 (09:06 +0100)
This commit moves the inclusion of stdarg.h to common-defs.h and
removes all other inclusions.

gdb/
2014-08-07  Gary Benson  <gbenson@redhat.com>

* 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  <gbenson@redhat.com>

* server.h: Do not include stdarg.h.
* nto-low.c: Likewise.

gdb/ChangeLog
gdb/ada-lang.c
gdb/common/common-defs.h
gdb/common/common-utils.h
gdb/defs.h
gdb/gdbserver/ChangeLog
gdb/gdbserver/nto-low.c
gdb/gdbserver/server.h
gdb/guile/scm-string.c
gdb/guile/scm-utils.c
gdb/m32c-tdep.c

index a9bbb7822fdc0ce91397a4a06cb5c147c6dc4dc7..8ced7b8f6967adbfd28e8f7bb2660fba722ee67f 100644 (file)
@@ -1,3 +1,13 @@
+2014-08-07  Gary Benson  <gbenson@redhat.com>
+
+       * 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  <gbenson@redhat.com>
 
        * common/common-defs.h: Include stdlib.h.
index bf39f6b119ad6b534df3da949aea0c92c8d1b031..5297fd3f94c02da0511e619e8a4fdc79732ee3c4 100644 (file)
@@ -21,7 +21,6 @@
 #include "defs.h"
 #include <string.h>
 #include <ctype.h>
-#include <stdarg.h>
 #include "demangle.h"
 #include "gdb_regex.h"
 #include "frame.h"
index ed95a364821d96de8f5597ac4fbb12340064ef3b..d227b00847d91a8f3622a25d489d5f18cf0d0c71 100644 (file)
@@ -29,5 +29,6 @@
 
 #include <stdio.h>
 #include <stdlib.h>
+#include <stdarg.h>
 
 #endif /* COMMON_DEFS_H */
index f052fed20b9914d5b55ad6c52df5a7953296f28d..dff7b53c5b8bc1e378f6c929536ce568e3bbb24d 100644 (file)
@@ -22,7 +22,6 @@
 
 #include "ansidecl.h"
 #include <stddef.h>
-#include <stdarg.h>
 
 /* If possible, define FUNCTION_NAME, a macro containing the name of
    the function being defined.  Since this macro may not always be
index 2e1e06bd6d0cb21a57e7c1485f75db5d4732192f..00cb8e73b753b9358127752e4c326e4981ac048e 100644 (file)
@@ -90,8 +90,6 @@
 #define O_BINARY 0
 #endif
 
-#include <stdarg.h>            /* For va_list.  */
-
 #include "libiberty.h"
 #include "hashtab.h"
 
index c5a6455e04c969e1af880b02e454cae7ebe9d126..6f0dbf0f12178ce130811f299a5ff0fba0ea2265 100644 (file)
@@ -1,3 +1,8 @@
+2014-08-07  Gary Benson  <gbenson@redhat.com>
+
+       * server.h: Do not include stdarg.h.
+       * nto-low.c: Likewise.
+
 2014-08-07  Gary Benson  <gbenson@redhat.com>
 
        * server.h: Do not include stdlib.h.
index 35871568ea7408b615851a862734671cc4d1729d..0afaec73e48fee745dfaa05d0f0cbcae2f49956e 100644 (file)
@@ -28,7 +28,6 @@
 #include <spawn.h>
 #include <sys/procfs.h>
 #include <sys/auxv.h>
-#include <stdarg.h>
 #include <sys/iomgr.h>
 #include <sys/neutrino.h>
 
index a15ba36122b9920365f90a066db51da814b2858d..9d7fd99fa06f1a452d4276f5f529c6d926f0b749 100644 (file)
@@ -29,7 +29,6 @@
 #include "ansidecl.h"
 #include "version.h"
 
-#include <stdarg.h>
 #ifdef HAVE_ERRNO_H
 #include <errno.h>
 #endif
index 3e3e0153a056dcda49cf89784b960dd0eac79943..975d1980702f982cf3b713dbabe3c7a9e7a39639 100644 (file)
@@ -21,7 +21,6 @@
    conventions, et.al.  */
 
 #include "defs.h"
-#include <stdarg.h>
 #include "charset.h"
 #include "guile-internal.h"
 
index 5a17bd9139eb27d0c364dd5a09867a5f8802f1f8..ada77a33d140bc8aba92f333f48d0b0976c02270 100644 (file)
@@ -21,7 +21,6 @@
    conventions, et.al.  */
 
 #include "defs.h"
-#include <stdarg.h>
 #include <stdint.h>
 #include "gdb_assert.h"
 #include "guile-internal.h"
index 2c7dbb820f5fbbffc33a5339ae4d23bb7390eead..88f17a9bcc8f8ed741d600d032e43e619c075d77 100644 (file)
@@ -18,9 +18,6 @@
    along with this program.  If not, see <http://www.gnu.org/licenses/>.  */
 
 #include "defs.h"
-
-#include <stdarg.h>
-
 #include <string.h>
 #include "gdb_assert.h"
 #include "elf-bfd.h"