import gdb-1999-06-21 snapshot
[external/binutils.git] / binutils / prdbg.c
index e846029..958cbd2 100644 (file)
@@ -1007,6 +1007,9 @@ pr_fix_visibility (info, visibility)
     case DEBUG_VISIBILITY_PROTECTED:
       s = "protected";
       break;
+    case DEBUG_VISIBILITY_IGNORE:
+      s = "/* ignore */";
+      break;
     default:
       abort ();
       return false;
@@ -1092,7 +1095,7 @@ pr_end_struct_type (p)
 
   /* Change the trailing indentation to have a close brace.  */
   s = info->stack->type + strlen (info->stack->type) - 2;
-  assert (strcmp (s, "  ") == 0);
+  assert (s[0] == ' ' && s[1] == ' ' && s[2] == '\0');
 
   *s++ = '}';
   *s = '\0';
@@ -1624,7 +1627,7 @@ pr_int_constant (p, name, val)
      const char *name;
      bfd_vma val;
 {
-  struct pr_handle *info = (struct pr_handle *) info;
+  struct pr_handle *info = (struct pr_handle *) p;
   char ab[20];
 
   indent (info);
@@ -1641,7 +1644,7 @@ pr_float_constant (p, name, val)
      const char *name;
      double val;
 {
-  struct pr_handle *info = (struct pr_handle *) info;
+  struct pr_handle *info = (struct pr_handle *) p;
 
   indent (info);
   fprintf (info->f, "const double %s = %g;\n", name, val);