2008-08-20 Craig Silverstein <csilvers@google.com>
[deliverable/binutils-gdb.git] / binutils / dwarf.c
index d23fec289801b936d7dda6c9317b3b8c52975367..3a5ef0ff3e94896d42f8fa29ad69c3be1d2fed35 100644 (file)
@@ -1524,7 +1524,7 @@ read_and_display_attr_value (unsigned long attribute,
 
        if (uvalue >= section->size)
          warn (_("Offset %lx used as value for DW_AT_import attribute of DIE at offset %lx is too big.\n"),
-               uvalue, (long int)(orig_data - section->start));
+               uvalue, (unsigned long) (orig_data - section->start));
        else
          {
            unsigned long abbrev_number;
@@ -3109,10 +3109,12 @@ display_debug_loc (struct dwarf_section *section, void *file)
            {
              if (start < next)
                warn (_("There is a hole [0x%lx - 0x%lx] in .debug_loc section.\n"),
-                     (long)(start - section_begin), (long)(next - section_begin));
+                     (unsigned long) (start - section_begin),
+                     (unsigned long) (next - section_begin));
              else if (start > next)
                warn (_("There is an overlap [0x%lx - 0x%lx] in .debug_loc section.\n"),
-                     (long)(start - section_begin), (long)(next - section_begin));
+                     (unsigned long) (start - section_begin),
+                     (unsigned long) (next - section_begin));
            }
          start = next;
 
@@ -3502,12 +3504,12 @@ display_debug_ranges (struct dwarf_section *section,
            {
              if (start < next)
                warn (_("There is a hole [0x%lx - 0x%lx] in %s section.\n"),
-                     (long)(start - section_begin),
-                     (long)(next - section_begin), section->name);
+                     (unsigned long) (start - section_begin),
+                     (unsigned long) (next - section_begin), section->name);
              else if (start > next)
                warn (_("There is an overlap [0x%lx - 0x%lx] in %s section.\n"),
-                     (long)(start - section_begin),
-                     (long)(next - section_begin), section->name);
+                     (unsigned long) (start - section_begin),
+                     (unsigned long) (next - section_begin), section->name);
            }
          start = next;
 
@@ -3614,10 +3616,7 @@ static const char *const dwarf_regnames_i386[] =
   "mm4", "mm5", "mm6", "mm7",
   "fcw", "fsw", "mxcsr",
   "es", "cs", "ss", "ds", "fs", "gs", NULL, NULL,
-  "tr", "ldtr",
-  NULL, NULL, NULL,
-  "ymm0", "ymm1", "ymm2", "ymm3",
-  "ymm4", "ymm5", "ymm6", "ymm7"
+  "tr", "ldtr"
 };
 
 static const char *const dwarf_regnames_x86_64[] =
@@ -3639,12 +3638,7 @@ static const char *const dwarf_regnames_x86_64[] =
   "es", "cs", "ss", "ds", "fs", "gs", NULL, NULL,
   "fs.base", "gs.base", NULL, NULL,
   "tr", "ldtr",
-  "mxcsr", "fcw", "fsw",
-  NULL, NULL, NULL,
-  "ymm0", "ymm1", "ymm2", "ymm3",
-  "ymm4", "ymm5", "ymm6", "ymm7",
-  "ymm8", "ymm9", "ymm10", "ymm11",
-  "ymm12", "ymm13", "ymm14", "ymm15"
+  "mxcsr", "fcw", "fsw"
 };
 
 static const char *const *dwarf_regnames;
This page took 0.024548 seconds and 4 git commands to generate.