This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
[PATCH 3/3 v4] Make gdbserver CORE_ADDR unsigned
- 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: Thu, 24 Jul 2014 13:51:27 +0100
- Subject: [PATCH 3/3 v4] Make gdbserver CORE_ADDR unsigned
- Authentication-results: sourceware.org; auth=none
- References: <1406206287-6817-1-git-send-email-gbenson at redhat dot com>
gdbserver defines CORE_ADDR to be signed. This seems erroneous to
me; and furthermore likely to cause problems in common/, as it is
different from gdb's definition.
gdb/gdbserver/
2014-07-24 Tom Tromey <tromey@redhat.com>
Gary Benson <gbenson@redhat.com>
* server.h (CORE_ADDR): Now unsigned.
---
gdb/gdbserver/ChangeLog | 5 +++++
gdb/gdbserver/server.h | 2 +-
2 files changed, 6 insertions(+), 1 deletions(-)
diff --git a/gdb/gdbserver/server.h b/gdb/gdbserver/server.h
index 6eb1a16..2d55513 100644
--- a/gdb/gdbserver/server.h
+++ b/gdb/gdbserver/server.h
@@ -87,7 +87,7 @@ typedef unsigned char gdb_byte;
/* FIXME: This should probably be autoconf'd for. It's an integer type at
least the size of a (void *). */
-typedef long long CORE_ADDR;
+typedef unsigned long long CORE_ADDR;
typedef long long LONGEST;
typedef unsigned long long ULONGEST;
--
1.7.1