[03/13] Move stdarg.h to common-defs.h
Commit Message
This commit moves the inclusion of stdarg.h to common-defs.h and
removes all other inclusions.
gdb/
2014-07-28 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-07-28 Gary Benson <gbenson@redhat.com>
* server.h: Do not include stdarg.h.
* nto-low.c: Likewise.
---
gdb/ChangeLog | 10 ++++++++++
gdb/ada-lang.c | 1 -
gdb/common/common-defs.h | 1 +
gdb/common/common-utils.h | 1 -
gdb/defs.h | 2 --
gdb/gdbserver/ChangeLog | 5 +++++
gdb/gdbserver/nto-low.c | 1 -
gdb/gdbserver/server.h | 1 -
gdb/guile/scm-string.c | 1 -
gdb/guile/scm-utils.c | 1 -
gdb/m32c-tdep.c | 3 ---
11 files changed, 16 insertions(+), 11 deletions(-)
@@ -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"
@@ -29,5 +29,6 @@
#include <stdio.h>
#include <stdlib.h>
+#include <stdarg.h>
#endif /* COMMON_DEFS_H */
@@ -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
@@ -90,8 +90,6 @@
#define O_BINARY 0
#endif
-#include <stdarg.h> /* For va_list. */
-
#include "libiberty.h"
#include "hashtab.h"
@@ -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>
@@ -29,7 +29,6 @@
#include "ansidecl.h"
#include "version.h"
-#include <stdarg.h>
#ifdef HAVE_ERRNO_H
#include <errno.h>
#endif
@@ -21,7 +21,6 @@
conventions, et.al. */
#include "defs.h"
-#include <stdarg.h>
#include "charset.h"
#include "guile-internal.h"
@@ -21,7 +21,6 @@
conventions, et.al. */
#include "defs.h"
-#include <stdarg.h>
#include <stdint.h>
#include "gdb_assert.h"
#include "guile-internal.h"
@@ -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"