]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commitdiff
* gdb/remote.c (remote_fetch_registers): Don't warn about short
authorNathan Sidwell <nathan@codesourcery.com>
Fri, 31 Mar 2006 15:50:07 +0000 (15:50 +0000)
committerNathan Sidwell <nathan@codesourcery.com>
Fri, 31 Mar 2006 15:50:07 +0000 (15:50 +0000)
register packet if we've not set the expected value.

ChangeLog.csl
gdb/remote.c

index 630ee38ff86ae8fc6e61144fdde5ae86accae63e..595c1f1f58ea9d482a4fe50bb962c3a5c694df23 100644 (file)
@@ -1,5 +1,8 @@
 2006-03-31  Nathan Sidwell  <nathan@codesourcery.com>
 
+       * gdb/remote.c (remote_fetch_registers): Don't warn about short
+       register packet if we've not set the expected value.
+
        * gdb/gdbserver/linux-low.c (linux_read_offsets): Remove debugging
        printf.
 
index 5dc7ab43601712c9c3cfebc912cec5c16e9fcf5e..35f0149619516ddd2e29b4e16bddf81ac160142e 100644 (file)
@@ -3178,7 +3178,7 @@ remote_fetch_registers (int regnum)
       p += 2;
     }
 
-  if (i != register_bytes_found)
+  if (register_bytes_found && i != register_bytes_found)
     {
       register_bytes_found = i;
       if (REGISTER_BYTES_OK_P ()