ld: don't use ia64 register name in expression of pr16322 test
[deliverable/binutils-gdb.git] / gdb / memattr.c
index 58b800fc7e6649c4e443fa98cb32de6a0634a5b5..e6a98f670e119446e2fb177c04e2adccc4df91b9 100644 (file)
@@ -1,6 +1,6 @@
 /* Memory attributes support, for GDB.
 
-   Copyright (C) 2001-2013 Free Software Foundation, Inc.
+   Copyright (C) 2001-2015 Free Software Foundation, Inc.
 
    This file is part of GDB.
 
 #include "gdbcmd.h"
 #include "memattr.h"
 #include "target.h"
+#include "target-dcache.h"
 #include "value.h"
 #include "language.h"
 #include "vec.h"
-#include <string.h>
 #include "breakpoint.h"
 #include "cli/cli-utils.h"
 
@@ -447,9 +447,9 @@ mem_info_command (char *args, int from_tty)
                       m->number,
                       m->enabled_p ? 'y' : 'n');
       if (gdbarch_addr_bit (target_gdbarch ()) <= 32)
-       tmp = hex_string_custom ((unsigned long) m->lo, 8);
+       tmp = hex_string_custom (m->lo, 8);
       else
-       tmp = hex_string_custom ((unsigned long) m->lo, 16);
+       tmp = hex_string_custom (m->lo, 16);
       
       printf_filtered ("%s ", tmp);
 
@@ -458,14 +458,14 @@ mem_info_command (char *args, int from_tty)
          if (m->hi == 0)
            tmp = "0x100000000";
          else
-           tmp = hex_string_custom ((unsigned long) m->hi, 8);
+           tmp = hex_string_custom (m->hi, 8);
        }
       else
        {
          if (m->hi == 0)
            tmp = "0x10000000000000000";
          else
-           tmp = hex_string_custom ((unsigned long) m->hi, 16);
+           tmp = hex_string_custom (m->hi, 16);
        }
 
       printf_filtered ("%s ", tmp);
This page took 0.024016 seconds and 4 git commands to generate.