Do not include config.h directly
authorGary Benson <gbenson@redhat.com>
Thu, 24 Jul 2014 15:20:50 +0000 (16:20 +0100)
committerGary Benson <gbenson@redhat.com>
Wed, 30 Jul 2014 08:22:48 +0000 (09:22 +0100)
All source files under gdb/ that include headers from gdb/ include
either defs.h or server.h before any other code with the exception
of gdb/gdbserver/gdbreplay.c which seems to be a special case.  Both
defs.h and server.h include both our and gnulib's config.h files as
their first non-comment line, so no other file ever needs to directly
include any config.h.  This commit removes two such direct config.h
includes.

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

* common/common-utils.h: Do not include config.h.
* nat/linux-btrace.h: Likewise.

gdb/ChangeLog
gdb/common/common-utils.h
gdb/nat/linux-btrace.h

index 144a5271d99fd7138f7d8dfd80e17df709b81873..c836b35aa9ed517f7e5f68fabb9ac3699354fca7 100644 (file)
@@ -1,3 +1,8 @@
+2014-07-30  Gary Benson  <gbenson@redhat.com>
+
+       * common/common-utils.h: Do not include config.h.
+       * nat/linux-btrace.h: Likewise.
+
 2014-07-30  Gary Benson  <gbenson@redhat.com>
 
        * btrace.c: Include defs.h.
index 063698dac78ddb4cb54ee21582e01f2ecc83e3d7..f052fed20b9914d5b55ad6c52df5a7953296f28d 100644 (file)
@@ -20,7 +20,6 @@
 #ifndef COMMON_UTILS_H
 #define COMMON_UTILS_H
 
-#include "config.h"
 #include "ansidecl.h"
 #include <stddef.h>
 #include <stdarg.h>
index 12e9b6067b5580455a03bf8f4e960d9163c48240..a96d9d1fdb5fd569def07f6a0ba0634f238479ff 100644 (file)
@@ -23,7 +23,6 @@
 #define LINUX_BTRACE_H
 
 #include "btrace-common.h"
-#include "config.h"
 #include "vec.h"
 #include "ptid.h"
 #include <stddef.h>