Allow full 64 bits of an address to be specified in an `M' or `n' packet.
authorAndrew Cagney <cagney@redhat.com>
Wed, 23 Sep 1998 08:31:50 +0000 (08:31 +0000)
committerAndrew Cagney <cagney@redhat.com>
Wed, 23 Sep 1998 08:31:50 +0000 (08:31 +0000)
Add backward compatibility variable `set remoteaddresssize' to handle
regressions.

gdb/ChangeLog
gdb/NEWS

index 38a0928..6c66031 100644 (file)
@@ -1,3 +1,16 @@
+Wed Sep 23 18:21:03 1998  Andrew Cagney  <cagney@b1.cygnus.com>
+
+       * remote.c (remote_address_masked): New function - mask address
+       according to REMOTE_ADDRESS_SIZE.
+       (remote_address_size): New global.
+       (hexnumstr): New function - convert arbitrary unsigned to hex.
+       (remote_write_bytes, remote_read_bytes): Use hexnumstr to
+       construct packet address.  Mask address when necessary.
+       (_initialize_remote): Add "set remoteaddresssize" command, set
+       REMOTE_ADDRESS_SIZE variable.
+
+       * NEWS: Update.
+       
 Wed Sep 23 18:08:52 1998  Andrew Cagney  <cagney@b1.cygnus.com>
 
        * remote.c (_initialize_remote, packet_command, print_packet):
index fa16487..bf49308 100644 (file)
--- a/gdb/NEWS
+++ b/gdb/NEWS
@@ -1,6 +1,18 @@
                What has changed in GDB?
             (Organized release by release)
 
+*** Changes since GDB-4.17:
+
+* GDB Remote protocol
+
+For 64 bit targets, the memory packets ("M" and "m") can now contain a
+full 64 bit address.  The class-obscure gdb command:
+       set targetaddresssize 32
+can be used to revert to the old behavour.  For existing remote stubs
+the change should not be noticed as the additional address information
+will be descarded.
+
+
 *** Changes in GDB-4.17:
 
 * New native configurations