aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGary Benson <gbenson@redhat.com>2014-07-28 14:35:17 +0100
committerGary Benson <gbenson@redhat.com>2014-08-07 09:06:44 +0100
commite76df0d08686820dee6d6f440431d962c7631bd3 (patch)
tree300274f125610e3c83cda29b612ddcfb2f19a1c8
parent4cb9c816469ef3373d9cdde76e8ab5007cf3739e (diff)
downloadgdb-e76df0d08686820dee6d6f440431d962c7631bd3.zip
gdb-e76df0d08686820dee6d6f440431d962c7631bd3.tar.gz
gdb-e76df0d08686820dee6d6f440431d962c7631bd3.tar.bz2
Move common-utils.h to common-defs.h
This commit moves the inclusion of common-utils.h to common-defs.h and removes all other inclusions. gdb/ 2014-08-07 Gary Benson <gbenson@redhat.com> * common/common-defs.h: Include common-utils.h. * defs.h: Do not include common-utils.h. * common/gdb_assert.h: Likewise. * darwin-nat.h: Likewise. * nat/linux-btrace.c: Likewise. * target/waitstatus.h: Likewise. gdb/gdbserver/ 2014-08-07 Gary Benson <gbenson@redhat.com> * server.h: Do not include common-utils.h.
-rw-r--r--gdb/ChangeLog9
-rw-r--r--gdb/common/common-defs.h1
-rw-r--r--gdb/common/gdb_assert.h2
-rw-r--r--gdb/darwin-nat.h1
-rw-r--r--gdb/defs.h2
-rw-r--r--gdb/gdbserver/ChangeLog4
-rw-r--r--gdb/gdbserver/server.h1
-rw-r--r--gdb/nat/linux-btrace.c1
-rw-r--r--gdb/target/waitstatus.h1
9 files changed, 14 insertions, 8 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog
index 86274e8..d5068b2 100644
--- a/gdb/ChangeLog
+++ b/gdb/ChangeLog
@@ -1,5 +1,14 @@
2014-08-07 Gary Benson <gbenson@redhat.com>
+ * common/common-defs.h: Include common-utils.h.
+ * defs.h: Do not include common-utils.h.
+ * common/gdb_assert.h: Likewise.
+ * darwin-nat.h: Likewise.
+ * nat/linux-btrace.c: Likewise.
+ * target/waitstatus.h: Likewise.
+
+2014-08-07 Gary Benson <gbenson@redhat.com>
+
* common/common-defs.h: Include ptid.h.
* defs.h: Do not include ptid.h.
* inferior.h: Likewise.
diff --git a/gdb/common/common-defs.h b/gdb/common/common-defs.h
index 7bf328a..6a031ec 100644
--- a/gdb/common/common-defs.h
+++ b/gdb/common/common-defs.h
@@ -37,5 +37,6 @@
#include "gdb/signals.h"
#include "gdb_locale.h"
#include "ptid.h"
+#include "common-utils.h"
#endif /* COMMON_DEFS_H */
diff --git a/gdb/common/gdb_assert.h b/gdb/common/gdb_assert.h
index 4869fc4..7b795d3 100644
--- a/gdb/common/gdb_assert.h
+++ b/gdb/common/gdb_assert.h
@@ -19,8 +19,6 @@
#ifndef GDB_ASSERT_H
#define GDB_ASSERT_H
-#include "common-utils.h" /* For FUNCTION_NAME. */
-
/* A static assertion. This will cause a compile-time error if EXPR,
which must be a compile-time constant, is false. */
diff --git a/gdb/darwin-nat.h b/gdb/darwin-nat.h
index 84f4be1..4f2bebb 100644
--- a/gdb/darwin-nat.h
+++ b/gdb/darwin-nat.h
@@ -18,7 +18,6 @@
#define __DARWIN_NAT_H__
#include <mach/mach.h>
-#include "common-utils.h" /* For FUNCTION_NAME. */
/* Describe the mach exception handling state for a task. This state is saved
before being changed and restored when a process is detached.
diff --git a/gdb/defs.h b/gdb/defs.h
index 8513606..710298c 100644
--- a/gdb/defs.h
+++ b/gdb/defs.h
@@ -533,8 +533,6 @@ enum val_prettyformat
extern int longest_to_int (LONGEST);
-#include "common-utils.h"
-
/* * List of known OS ABIs. If you change this, make sure to update the
table in osabi.c. */
enum gdb_osabi
diff --git a/gdb/gdbserver/ChangeLog b/gdb/gdbserver/ChangeLog
index b51d870..a43ddcd 100644
--- a/gdb/gdbserver/ChangeLog
+++ b/gdb/gdbserver/ChangeLog
@@ -1,5 +1,9 @@
2014-08-07 Gary Benson <gbenson@redhat.com>
+ * server.h: Do not include common-utils.h.
+
+2014-08-07 Gary Benson <gbenson@redhat.com>
+
* server.h: Do not include ptid.h.
* notif.h: Likewise.
diff --git a/gdb/gdbserver/server.h b/gdb/gdbserver/server.h
index ca2729c..5a3f335 100644
--- a/gdb/gdbserver/server.h
+++ b/gdb/gdbserver/server.h
@@ -131,7 +131,6 @@ extern int handle_target_event (int err, gdb_client_data client_data);
#include "remote-utils.h"
-#include "common-utils.h"
#include "utils.h"
#include "debug.h"
diff --git a/gdb/nat/linux-btrace.c b/gdb/nat/linux-btrace.c
index 188220b..84de8a7 100644
--- a/gdb/nat/linux-btrace.c
+++ b/gdb/nat/linux-btrace.c
@@ -26,7 +26,6 @@
#endif
#include "linux-btrace.h"
-#include "common-utils.h"
#include "gdb_assert.h"
#include "regcache.h"
#include "gdbthread.h"
diff --git a/gdb/target/waitstatus.h b/gdb/target/waitstatus.h
index c05d651..f818d87 100644
--- a/gdb/target/waitstatus.h
+++ b/gdb/target/waitstatus.h
@@ -20,7 +20,6 @@
#ifndef WAITSTATUS_H
#define WAITSTATUS_H
-#include "common-utils.h"
#include "gdb_signals.h"
/* Stuff for target_wait. */