This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
[PATCH 10/11 v5] Remove GDBSERVER uses from i386-dregs.c
- From: Gary Benson <gbenson at redhat dot com>
- To: gdb-patches at sourceware dot org
- Cc: Doug Evans <dje at google dot com>, Pedro Alves <palves at redhat dot com>, Tom Tromey <tromey at redhat dot com>
- Date: Fri, 1 Aug 2014 11:19:36 +0100
- Subject: [PATCH 10/11 v5] Remove GDBSERVER uses from i386-dregs.c
- Authentication-results: sourceware.org; auth=none
- References: <1406888377-25795-1-git-send-email-gbenson at redhat dot com>
This commit makes nat/i386-dregs.c include common-defs.h rather than
defs.h or server.h. A couple of minor changes were required in order
to support this change.
gdb/
2014-08-01 Gary Benson <gbenson@redhat.com>
* nat/i386-dregs.c: Include common-defs.h and break-common.h.
Don't include defs.h or server.h.
(debug_hw_points): Declare unconditionally.
---
gdb/ChangeLog | 6 ++++++
gdb/nat/i386-dregs.c | 10 ++--------
2 files changed, 8 insertions(+), 8 deletions(-)
diff --git a/gdb/nat/i386-dregs.c b/gdb/nat/i386-dregs.c
index e3272cd..7905c44 100644
--- a/gdb/nat/i386-dregs.c
+++ b/gdb/nat/i386-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 "i386-dregs.h"
+#include "break-common.h"
/* Support for hardware watchpoints and breakpoints using the i386
debug registers.
@@ -175,10 +171,8 @@
/* Types of operations supported by i386_handle_nonaligned_watchpoint. */
typedef enum { WP_INSERT, WP_REMOVE, WP_COUNT } i386_wp_op_t;
-#ifndef GDBSERVER
/* Whether or not to print the mirrored debug registers. */
extern int debug_hw_points;
-#endif
/* Print the values of the mirrored debug registers. */
--
1.7.1