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 38a09282b89ddb5a8e5a8f4650ce8044e4ae390c..6c66031cfa7ff7c8b4612a5a2219eb3867621f98 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 fa1648754e791bb1a5d9e8ca5df7c9101e45efa2..bf493089d5b7057aafca04168090451f0c860c50 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