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  <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.
This commit is contained in:
Gary Benson 2014-07-28 11:32:37 +01:00
parent d7096f7165
commit 8980bdf628
11 changed files with 16 additions and 11 deletions

View 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.

View 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"

View File

@ -29,5 +29,6 @@
#include <stdio.h>
#include <stdlib.h>
#include <stdarg.h>
#endif /* COMMON_DEFS_H */

View 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

View File

@ -90,8 +90,6 @@
#define O_BINARY 0
#endif
#include <stdarg.h> /* For va_list. */
#include "libiberty.h"
#include "hashtab.h"

View 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.

View 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>

View File

@ -29,7 +29,6 @@
#include "ansidecl.h"
#include "version.h"
#include <stdarg.h>
#ifdef HAVE_ERRNO_H
#include <errno.h>
#endif

View File

@ -21,7 +21,6 @@
conventions, et.al. */
#include "defs.h"
#include <stdarg.h>
#include "charset.h"
#include "guile-internal.h"

View 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"

View 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"