* breakpoint.c, breakpoint.h (breakpoint_init_inferior): New function
[deliverable/binutils-gdb.git] / gdb / ch-valprint.c
index e7797589ecc4c3a759226eac3dd7d2fea19a0a68..261b22ee62c6be248115cd199367e11cb38b2b20 100644 (file)
@@ -60,7 +60,6 @@ chill_val_print (type, valaddr, address, stream, format, deref_ref, recurse,
   LONGEST val;
   unsigned int i = 0;          /* Number of characters printed.  */
   struct type *elttype;
-  unsigned eltlen;
   CORE_ADDR addr;
 
   switch (TYPE_CODE (type))
@@ -157,7 +156,7 @@ chill_val_print (type, valaddr, address, stream, format, deref_ref, recurse,
        }
       if (addressprint && format != 's')
        {
-         fprintf_filtered (stream, "H'%x", addr);
+         fprintf_filtered (stream, "H'%lx", (unsigned long) addr);
        }
       
       /* For a pointer to char or unsigned char, also print the string
@@ -185,7 +184,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'%lx ", (unsigned long) address);
        }
       i = TYPE_LENGTH (type);
       LA_PRINT_STRING (stream, valaddr, i, 0);
This page took 0.024717 seconds and 4 git commands to generate.