* ch-valprint.c (chill_val_print, case TYPE_CODE_STRING): Print
authorJim Kingdon <jkingdon@engr.sgi.com>
Wed, 14 Jul 1993 21:38:39 +0000 (21:38 +0000)
committerJim Kingdon <jkingdon@engr.sgi.com>
Wed, 14 Jul 1993 21:38:39 +0000 (21:38 +0000)
address, not addr.

* hppah-nat.c (store_inferior_registers): Don't print i in cases
where we aren't using it.

gdb/ChangeLog
gdb/ch-valprint.c
gdb/hppah-nat.c

index 1f17ac840670139fe56e769df3b590079a852796..cf3dc3df2c9dd3325657d4160059489099103e93 100644 (file)
@@ -1,5 +1,11 @@
 Wed Jul 14 13:51:54 1993  Jim Kingdon  (kingdon@lioth.cygnus.com)
 
+       * ch-valprint.c (chill_val_print, case TYPE_CODE_STRING): Print
+       address, not addr.
+
+       * hppah-nat.c (store_inferior_registers): Don't print i in cases
+       where we aren't using it.
+
        * a29k-tdep.c (get_saved_register): Fix typo.
 
 Wed Jul 14 09:45:52 1993  Doug Evans  (dje@canuck.cygnus.com)
index e7797589ecc4c3a759226eac3dd7d2fea19a0a68..23891e88fcc80228c59620fd82f5b4e9df01c15e 100644 (file)
@@ -185,7 +185,9 @@ chill_val_print (type, valaddr, address, stream, format, deref_ref, recurse,
        }
       if (addressprint && format != 's')
        {
-         fprintf_filtered (stream, "H'%x ", addr);
+         /* This used to say `addr', which is unset at this point.
+            Is `address' what is meant?  */
+         fprintf_filtered (stream, "H'%x ", address);
        }
       i = TYPE_LENGTH (type);
       LA_PRINT_STRING (stream, valaddr, i, 0);
index 138697b1dda49520fe822266ba9d870f9d454217..ce9fde977128e8711c5521fdf8ed64c8541596c8 100644 (file)
@@ -121,7 +121,7 @@ store_inferior_registers (regno)
                   scratch, 0);
           if (errno != 0)
             {
-              sprintf (buf, "writing register number %d(%d)", regno, i);
+              sprintf (buf, "writing register number %d", regno);
               perror_with_name (buf);
             }
         }
@@ -154,7 +154,7 @@ store_inferior_registers (regno)
                       scratch, 0);
               if (errno != 0)
                 {
-                  sprintf (buf, "writing register number %d(%d)", regno, i);
+                  sprintf (buf, "writing register number %d", regno);
                   perror_with_name (buf);
                 }
             }