diff mbox

[03/15] Make gdbserver CORE_ADDR unsigned

Message ID 1404902255-11101-4-git-send-email-gbenson@redhat.com
State Changes Requested, archived
Headers show

Commit Message

Gary Benson July 9, 2014, 10:37 a.m. UTC
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-09  Tom Tromey  <tromey@redhat.com>

	* defs.h (CORE_ADDR): Now unsigned.
---
 gdb/gdbserver/ChangeLog |    4 ++++
 gdb/gdbserver/server.h  |    2 +-
 2 files changed, 5 insertions(+), 1 deletions(-)

Comments

Doug Evans July 11, 2014, 7:30 p.m. UTC | #1
Gary Benson writes:
 > 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-09  Tom Tromey  <tromey@redhat.com>
 > 
 > 	* defs.h (CORE_ADDR): Now unsigned.
 > ---
 >  gdb/gdbserver/ChangeLog |    4 ++++
 >  gdb/gdbserver/server.h  |    2 +-
 >  2 files changed, 5 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
 > 

LGTM, modulo file name spelled wrong in changelog entry.
diff mbox

Patch

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;