[PATCH 08/13] Move gdb/signals.h to common-defs.h

Gary Benson
2014-07-29T16:08:54Z

This commit moves the inclusion of gdb/signals.h to common-defs.h and
removes all other inclusions.

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

* common/common-defs.h: Include gdb/signals.h.
* defs.h: Do not include gdb/signals.h.

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

* server.h: Do not include gdb/signals.h.
* win32-low.c: Likewise.
---
gdb/ChangeLog | 5 +++++
gdb/common/common-defs.h | 1 +
gdb/defs.h | 3 ---
gdb/gdbserver/ChangeLog | 5 +++++
gdb/gdbserver/server.h | 1 -
gdb/gdbserver/win32-low.c | 1 -
6 files changed, 11 insertions(+), 5 deletions(-)

diff --git a/gdb/common/common-defs.h b/gdb/common/common-defs.h
index b31b3b8..9c6001e 100644
--- a/gdb/common/common-defs.h
+++ b/gdb/common/common-defs.h
@@ -34,5 +34,6 @@
#include "ansidecl.h"
#include "libiberty.h"
#include "pathmax.h"
+#include "gdb/signals.h"

#endif /* COMMON_DEFS_H */
diff --git a/gdb/defs.h b/gdb/defs.h
index 189de74..a5a1204 100644
--- a/gdb/defs.h
+++ b/gdb/defs.h
@@ -54,9 +54,6 @@

#include "gdb_wchar.h"

-/* For ``enum gdb_signal''. */
-#include "gdb/signals.h"
-
#include "ui-file.h"

#include "host-defs.h"
diff --git a/gdb/gdbserver/server.h b/gdb/gdbserver/server.h
index fc973c1..98993f0 100644
--- a/gdb/gdbserver/server.h
+++ b/gdb/gdbserver/server.h
@@ -84,7 +84,6 @@ typedef long long LONGEST;
typedef unsigned long long ULONGEST;

#include "regcache.h"
-#include "gdb/signals.h"
#include "gdb_signals.h"
#include "target.h"
#include "mem-break.h"
diff --git a/gdb/gdbserver/win32-low.c b/gdb/gdbserver/win32-low.c
index bc2506c..2242d5c 100644
--- a/gdb/gdbserver/win32-low.c
+++ b/gdb/gdbserver/win32-low.c
@@ -20,7 +20,6 @@

#include "server.h"
#include "regcache.h"
-#include "gdb/signals.h"
#include "gdb/fileio.h"
#include "mem-break.h"
#include "win32-low.h"
--
1.7.1