Remove sh3e sanitization.
[deliverable/binutils-gdb.git] / binutils / prdbg.c
index c41d60cdb061f95b08f39784f931459054492020..133973ca0a747a52cf43a22dbdc22dfb4dce1889 100644 (file)
@@ -519,30 +519,38 @@ pr_enum_type (p, tag, names, values)
   if (! append_type (info, "{ "))
     return false;
 
-  val = 0;
-  for (i = 0; names[i] != NULL; i++)
+  if (names == NULL)
     {
-      if (i > 0)
+      if (! append_type (info, "/* undefined */"))
+       return false;
+    }
+  else
+    {
+      val = 0;
+      for (i = 0; names[i] != NULL; i++)
        {
-         if (! append_type (info, ", "))
+         if (i > 0)
+           {
+             if (! append_type (info, ", "))
+               return false;
+           }
+
+         if (! append_type (info, names[i]))
            return false;
-       }
 
-      if (! append_type (info, names[i]))
-       return false;
+         if (values[i] != val)
+           {
+             char ab[20];
 
-      if (values[i] != val)
-       {
-         char ab[20];
+             print_vma (values[i], ab, false, false);
+             if (! append_type (info, " = ")
+                 || ! append_type (info, ab))
+               return false;
+             val = values[i];
+           }
 
-         print_vma (values[i], ab, false, false);
-         if (! append_type (info, " = ")
-             || ! append_type (info, ab))
-           return false;
-         val = values[i];
+         ++val;
        }
-
-      ++val;
     }
 
   return append_type (info, " }");
This page took 0.023795 seconds and 4 git commands to generate.