added depend label
[unix-history] / usr / src / usr.bin / gprof / vax.c
index 5c8788c..5fbf0b3 100644 (file)
@@ -1,5 +1,11 @@
+/*
+ * Copyright (c) 1983 Regents of the University of California.
+ * All rights reserved.  The Berkeley software License Agreement
+ * specifies the terms and conditions for redistribution.
+ */
+
 #ifndef lint
 #ifndef lint
-    static     char *sccsid = "@(#)vax.c       1.4 (Berkeley) %G%";
+static char sccsid[] = "@(#)vax.c      5.3 (Berkeley) %G%";
 #endif not lint
 
 #include       "gprof.h"
 #endif not lint
 
 #include       "gprof.h"
@@ -182,7 +188,7 @@ reladdr( modep )
     }
 }
 
     }
 }
 
-findcalls( parentp , p_lowpc , p_highpc )
+findcall( parentp , p_lowpc , p_highpc )
     nltype             *parentp;
     unsigned long      p_lowpc;
     unsigned long      p_highpc;
     nltype             *parentp;
     unsigned long      p_lowpc;
     unsigned long      p_highpc;
@@ -204,8 +210,8 @@ findcalls( parentp , p_lowpc , p_highpc )
        p_highpc = s_highpc;
     }
 #   ifdef DEBUG
        p_highpc = s_highpc;
     }
 #   ifdef DEBUG
-       if ( debug & CALLSDEBUG ) {
-           printf( "[findcalls] %s: 0x%x to 0x%x\n" ,
+       if ( debug & CALLDEBUG ) {
+           printf( "[findcall] %s: 0x%x to 0x%x\n" ,
                    parentp -> name , p_lowpc , p_highpc );
        }
 #   endif DEBUG
                    parentp -> name , p_lowpc , p_highpc );
        }
 #   endif DEBUG
@@ -219,8 +225,8 @@ findcalls( parentp , p_lowpc , p_highpc )
                 *      skip the count of the number of arguments.
                 */
 #          ifdef DEBUG
                 *      skip the count of the number of arguments.
                 */
 #          ifdef DEBUG
-               if ( debug & CALLSDEBUG ) {
-                   printf( "[findcalls]\t0x%x:calls" , instructp - textspace );
+               if ( debug & CALLDEBUG ) {
+                   printf( "[findcall]\t0x%x:calls" , instructp - textspace );
                }
 #          endif DEBUG
            firstmode = operandmode( (struct modebyte *) (instructp+length) );
                }
 #          endif DEBUG
            firstmode = operandmode( (struct modebyte *) (instructp+length) );
@@ -234,7 +240,7 @@ findcalls( parentp , p_lowpc , p_highpc )
            length += operandlength( (struct modebyte *) (instructp+length) );
            mode = operandmode( (struct modebyte *) ( instructp + length ) );
 #          ifdef DEBUG
            length += operandlength( (struct modebyte *) (instructp+length) );
            mode = operandmode( (struct modebyte *) ( instructp + length ) );
 #          ifdef DEBUG
-               if ( debug & CALLSDEBUG ) {
+               if ( debug & CALLDEBUG ) {
                    printf( "\tfirst operand is %s", operandname( firstmode ) );
                    printf( "\tsecond operand is %s\n" , operandname( mode ) );
                }
                    printf( "\tfirst operand is %s", operandname( firstmode ) );
                    printf( "\tsecond operand is %s\n" , operandname( mode ) );
                }
@@ -272,8 +278,8 @@ findcalls( parentp , p_lowpc , p_highpc )
                    if ( destpc >= s_lowpc && destpc <= s_highpc ) {
                        childp = nllookup( destpc );
 #                      ifdef DEBUG
                    if ( destpc >= s_lowpc && destpc <= s_highpc ) {
                        childp = nllookup( destpc );
 #                      ifdef DEBUG
-                           if ( debug & CALLSDEBUG ) {
-                               printf( "[findcalls]\tdestpc 0x%x" , destpc );
+                           if ( debug & CALLDEBUG ) {
+                               printf( "[findcall]\tdestpc 0x%x" , destpc );
                                printf( " childp->name %s" , childp -> name );
                                printf( " childp->value 0x%x\n" ,
                                        childp -> value );
                                printf( " childp->name %s" , childp -> name );
                                printf( " childp->value 0x%x\n" ,
                                        childp -> value );
@@ -302,8 +308,8 @@ findcalls( parentp , p_lowpc , p_highpc )
                         *      something funny going on.
                         */
 #                  ifdef DEBUG
                         *      something funny going on.
                         */
 #                  ifdef DEBUG
-                       if ( debug & CALLSDEBUG ) {
-                           printf( "[findcalls]\tbut it's a botch\n" );
+                       if ( debug & CALLDEBUG ) {
+                           printf( "[findcall]\tbut it's a botch\n" );
                        }
 #                  endif DEBUG
                    length = 1;
                        }
 #                  endif DEBUG
                    length = 1;