Fixed changelog entry. Indented m68k-tdep.c
[deliverable/binutils-gdb.git] / binutils / debug.c
index dad45593c8281b8fe4f385588f609989f509bed3..3ce609bdca90027f130fe7b32f90f5f04254e929 100644 (file)
@@ -1,5 +1,5 @@
 /* debug.c -- Handle generic debugging information.
-   Copyright (C) 1995, 1996, 1997, 1998, 1999 Free Software Foundation, Inc.
+   Copyright 1995, 1996, 1997, 1998, 2000, 2002 Free Software Foundation, Inc.
    Written by Ian Lance Taylor <ian@cygnus.com>.
 
    This file is part of GNU Binutils.
@@ -1149,7 +1149,7 @@ debug_record_label (handle, name, type, addr)
      bfd_vma addr ATTRIBUTE_UNUSED;
 {
   /* FIXME.  */
-  debug_error (_("debug_record_label not implemented"));
+  debug_error (_("debug_record_label: not implemented"));
   return false;
 }
 
@@ -1211,12 +1211,11 @@ debug_record_variable (handle, name, type, kind, val)
 
   n->u.variable = v;
 
-  return true;  
+  return true;
 }
 
 /* Make a type with a given kind and size.  */
 
-/*ARGSUSED*/
 static struct debug_type *
 debug_make_type (info, kind, size)
      struct debug_handle *info ATTRIBUTE_UNUSED;
@@ -1778,7 +1777,6 @@ debug_make_undefined_tagged_type (handle, name, kind)
    The fourth argument is whether this is a virtual class.  The fifth
    argument is the visibility of the base class.  */
 
-/*ARGSUSED*/
 debug_baseclass
 debug_make_baseclass (handle, type, bitpos, virtual, visibility)
      PTR handle ATTRIBUTE_UNUSED;
@@ -1786,7 +1784,7 @@ debug_make_baseclass (handle, type, bitpos, virtual, visibility)
      bfd_vma bitpos;
      boolean virtual;
      enum debug_visibility visibility;
-{     
+{
   struct debug_baseclass *b;
 
   b = (struct debug_baseclass *) xmalloc (sizeof *b);
@@ -1806,7 +1804,6 @@ debug_make_baseclass (handle, type, bitpos, virtual, visibility)
    the field (it may be zero).  The sixth argument is the visibility
    of the field.  */
 
-/*ARGSUSED*/
 debug_field
 debug_make_field (handle, name, type, bitpos, bitsize, visibility)
      PTR handle ATTRIBUTE_UNUSED;
@@ -1837,7 +1834,6 @@ debug_make_field (handle, name, type, bitpos, bitsize, visibility)
    global variable).  The fifth argument is the visibility of the
    member.  */
 
-/*ARGSUSED*/
 debug_field
 debug_make_static_member (handle, name, type, physname, visibility)
      PTR handle ATTRIBUTE_UNUSED;
@@ -1863,7 +1859,6 @@ debug_make_static_member (handle, name, type, physname, visibility)
 /* Make a method.  The second argument is the name, and the third
    argument is a NULL terminated array of method variants.  */
 
-/*ARGSUSED*/
 debug_method
 debug_make_method (handle, name, variants)
      PTR handle ATTRIBUTE_UNUSED;
@@ -1890,7 +1885,6 @@ debug_make_method (handle, name, variants)
    function context.  FIXME: Are the const and volatile arguments
    necessary?  Could we just use debug_make_const_type?  */
 
-/*ARGSUSED*/
 debug_method_variant
 debug_make_method_variant (handle, physname, type, visibility, constp,
                           volatilep, voffset, context)
@@ -1988,7 +1982,7 @@ debug_name_type (handle, name, type)
   nm = debug_add_to_namespace (info, &info->current_file->globals, name,
                               DEBUG_OBJECT_TYPE, DEBUG_LINKAGE_NONE);
   if (nm == NULL)
-    return false;
+    return DEBUG_TYPE_NULL;
 
   nm->u.type = t;
 
@@ -2044,7 +2038,7 @@ debug_tag_type (handle, name, type)
   nm = debug_add_to_namespace (info, &info->current_file->globals, name,
                               DEBUG_OBJECT_TAG, DEBUG_LINKAGE_NONE);
   if (nm == NULL)
-    return false;
+    return DEBUG_TYPE_NULL;
 
   nm->u.tag = t;
 
@@ -2055,7 +2049,6 @@ debug_tag_type (handle, name, type)
 
 /* Record the size of a given type.  */
 
-/*ARGSUSED*/
 boolean
 debug_record_type_size (handle, type, size)
      PTR handle ATTRIBUTE_UNUSED;
@@ -2123,7 +2116,7 @@ debug_find_named_type (handle, name)
        }
     }
 
-  return DEBUG_TYPE_NULL;        
+  return DEBUG_TYPE_NULL;
 }
 
 /* Find a tagged type.  */
@@ -2304,7 +2297,7 @@ debug_get_return_type (handle, type)
     case DEBUG_KIND_METHOD:
       return type->u.kmethod->return_type;
     }
-  /*NOTREACHED*/      
+  /*NOTREACHED*/
 }
 
 /* Get the parameter types of a function or method type (except that
@@ -2391,7 +2384,6 @@ debug_get_fields (handle, type)
 
 /* Get the type of a field.  */
 
-/*ARGSUSED*/
 debug_type
 debug_get_field_type (handle, field)
      PTR handle ATTRIBUTE_UNUSED;
@@ -2404,7 +2396,6 @@ debug_get_field_type (handle, field)
 
 /* Get the name of a field.  */
 
-/*ARGSUSED*/
 const char *
 debug_get_field_name (handle, field)
      PTR handle ATTRIBUTE_UNUSED;
@@ -2417,7 +2408,6 @@ debug_get_field_name (handle, field)
 
 /* Get the bit position of a field.  */
 
-/*ARGSUSED*/
 bfd_vma
 debug_get_field_bitpos (handle, field)
      PTR handle ATTRIBUTE_UNUSED;
@@ -2430,7 +2420,6 @@ debug_get_field_bitpos (handle, field)
 
 /* Get the bit size of a field.  */
 
-/*ARGSUSED*/
 bfd_vma
 debug_get_field_bitsize (handle, field)
      PTR handle ATTRIBUTE_UNUSED;
@@ -2443,7 +2432,6 @@ debug_get_field_bitsize (handle, field)
 
 /* Get the visibility of a field.  */
 
-/*ARGSUSED*/
 enum debug_visibility
 debug_get_field_visibility (handle, field)
      PTR handle ATTRIBUTE_UNUSED;
@@ -3314,7 +3302,7 @@ debug_type_samep (info, t1, t2)
     case DEBUG_KIND_POINTER:
       ret = debug_type_samep (info, t1->u.kpointer, t2->u.kpointer);
       break;
-            
+
     case DEBUG_KIND_FUNCTION:
       if (t1->u.kfunction->varargs != t2->u.kfunction->varargs
          || ! debug_type_samep (info, t1->u.kfunction->return_type,
This page took 0.035636 seconds and 4 git commands to generate.