aboutsummaryrefslogtreecommitdiff
path: root/gdb
diff options
context:
space:
mode:
authorGary Benson <gbenson@redhat.com>2014-09-12 10:11:42 +0100
committerGary Benson <gbenson@redhat.com>2014-09-12 10:11:42 +0100
commit296b1496f756d26b2e3235133f89012fff940902 (patch)
treed87badaa4bc8080dcc8dbe51e7c60fdfd005ef3c /gdb
parent53f813629714f46e536c1f0bfa256d7b6b48cf3e (diff)
downloadgdb-296b1496f756d26b2e3235133f89012fff940902.zip
gdb-296b1496f756d26b2e3235133f89012fff940902.tar.gz
gdb-296b1496f756d26b2e3235133f89012fff940902.tar.bz2
Remove GDBSERVER uses from x86-dregs.c
This commit makes nat/x86-dregs.c include common-defs.h rather than defs.h or server.h. An extra header required including in order to support this change. gdb/ChangeLog: * nat/x86-dregs.c: Include common-defs.h and break-common.h. Don't include defs.h or server.h.
Diffstat (limited to 'gdb')
-rw-r--r--gdb/ChangeLog5
-rw-r--r--gdb/nat/x86-dregs.c8
2 files changed, 7 insertions, 6 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog
index bb0a9e8..e2f3335 100644
--- a/gdb/ChangeLog
+++ b/gdb/ChangeLog
@@ -1,5 +1,10 @@
2014-09-12 Gary Benson <gbenson@redhat.com>
+ * nat/x86-dregs.c: Include common-defs.h and break-common.h.
+ Don't include defs.h or server.h.
+
+2014-09-12 Gary Benson <gbenson@redhat.com>
+
* nat/linux-btrace.c: Include common-defs.h.
Don't include defs.h, server.h or gdbthread.h.
* nat/linux-btrace.h (struct target_ops): New forward declaration.
diff --git a/gdb/nat/x86-dregs.c b/gdb/nat/x86-dregs.c
index c0d1e72..e3a7fb4 100644
--- a/gdb/nat/x86-dregs.c
+++ b/gdb/nat/x86-dregs.c
@@ -17,13 +17,9 @@
You should have received a copy of the GNU General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>. */
-#ifdef GDBSERVER
-#include "server.h"
-#else
-#include "defs.h"
-#include "inferior.h"
-#endif
+#include "common-defs.h"
#include "x86-dregs.h"
+#include "break-common.h"
/* Support for hardware watchpoints and breakpoints using the x86
debug registers.