* nto-tdep.h: Include osabi.h. Prototypes for generic Neutrino
[deliverable/binutils-gdb.git] / gdb / memattr.c
index aaaaba7903a98ef623685a3907514f4f1ad94ea8..6f95e5ccbb1a515302b53fd5109654aa9ee79dbb 100644 (file)
@@ -235,24 +235,32 @@ mem_info_command (char *args, int from_tty)
 
   for (m = mem_region_chain; m; m = m->next)
     {
-      CORE_ADDR hi;
       char *tmp;
       printf_filtered ("%-3d %-3c\t",
                       m->number,
                       m->enabled_p ? 'y' : 'n');
       if (TARGET_ADDR_BIT <= 32)
-       tmp = local_hex_string_custom ((unsigned long) m->lo, "08l");
+       tmp = hex_string_custom ((unsigned long) m->lo, 8);
       else
-       tmp = local_hex_string_custom ((unsigned long) m->lo, "016l");
+       tmp = hex_string_custom ((unsigned long) m->lo, 16);
       
       printf_filtered ("%s ", tmp);
-      hi = (m->hi == 0 ? ~0 : m->hi);
 
       if (TARGET_ADDR_BIT <= 32)
-       tmp = local_hex_string_custom ((unsigned long) hi, "08l");
+       {
+       if (m->hi == 0)
+         tmp = "0x100000000";
+       else
+         tmp = hex_string_custom ((unsigned long) m->hi, 8);
+       }
       else
-       tmp = local_hex_string_custom ((unsigned long) hi, "016l");
-      
+       {
+       if (m->hi == 0)
+         tmp = "0x10000000000000000";
+       else
+         tmp = hex_string_custom ((unsigned long) m->hi, 16);
+       }
+
       printf_filtered ("%s ", tmp);
 
       /* Print a token for each attribute.
@@ -506,6 +514,8 @@ mem_delete_command (char *args, int from_tty)
   dont_repeat ();
 }
 \f
+extern initialize_file_ftype _initialize_mem; /* -Wmissing-prototype */
+
 void
 _initialize_mem (void)
 {
This page took 0.026013 seconds and 4 git commands to generate.