* serial.h (SERIAL_SET_TTY_STATE): Comment return value.
[deliverable/binutils-gdb.git] / gdb / ch-valprint.c
index 5cb21d38e1c3cfe4c025dde9c7012b217dae8f44..37ca0f4c00b62679567d64e3f03d8ddb4424402d 100644 (file)
@@ -158,7 +158,7 @@ chill_val_print (type, valaddr, address, stream, format, deref_ref, recurse,
        }
       if (addressprint && format != 's')
        {
-         fprintf_filtered (stream, "H'%lx", (unsigned long) addr);
+         print_address_numeric (addr, stream);
        }
       
       /* For a pointer to char or unsigned char, also print the string
@@ -265,9 +265,11 @@ chill_val_print (type, valaddr, address, stream, format, deref_ref, recurse,
     case TYPE_CODE_REF:
       if (addressprint)
         {
-         fprintf_filtered (stream, "LOC(H'%lx)",
-             extract_unsigned_integer (valaddr,
-                                       TARGET_PTR_BIT / HOST_CHAR_BIT));
+         fprintf_filtered (stream, "LOC(");
+         print_address_numeric
+           (extract_address (valaddr, TARGET_PTR_BIT / HOST_CHAR_BIT),
+            stream);
+         fprintf_filtered (stream, ")");
          if (deref_ref)
            fputs_filtered (": ", stream);
         }
This page took 0.022734 seconds and 4 git commands to generate.