From d41f6d8ea2868ed247c149c252741d02293c6659 Mon Sep 17 00:00:00 2001 From: Gary Benson Date: Fri, 25 Jul 2014 12:18:00 +0100 Subject: Make all source files include defs.h or server.h first This commit makes all source files under gdb/ that include headers from gdb/ include either defs.h or server.h before any other code. This ensures that definitions and macros from the two config.h files are always in place for our code. An exception has been made for gdb/gdbserver/gdbreplay.c which seems to be a special case. gdb/ 2014-07-30 Gary Benson * btrace.c: Include defs.h. * common/ptid.c: Include defs.h or server.h as appropriate. * nat/mips-linux-watch.c: Likewise. gdb/gdbserver/ 2014-07-30 Gary Benson * hostio-errno.c: Move server.h to top of includes list. * inferiors.c: Likewise. * linux-x86-low.c: Likewise. * notif.c: Include server.h. --- gdb/nat/mips-linux-watch.c | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'gdb/nat') diff --git a/gdb/nat/mips-linux-watch.c b/gdb/nat/mips-linux-watch.c index acfc7f4..ebe5523 100644 --- a/gdb/nat/mips-linux-watch.c +++ b/gdb/nat/mips-linux-watch.c @@ -15,6 +15,11 @@ You should have received a copy of the GNU General Public License along with this program. If not, see . */ +#ifdef GDBSERVER +#include "server.h" +#else +#include "defs.h" +#endif #include #include "mips-linux-watch.h" #include "gdb_assert.h" -- cgit v1.1