* interp.c (sim_open): Disable chunk of code that wrote code in
[deliverable/binutils-gdb.git] / gprof / utils.c
index e1f031d5e8ddf2fb18732dac0198ae2a810d2900..b18216fe960d3bfffbc4fd44492e1e9e66724ae7 100644 (file)
@@ -1,5 +1,5 @@
 /*
- * Copyright (c) 1983, 1998 Regents of the University of California.
+ * Copyright (c) 1983, 1998, 2001 Regents of the University of California.
  * All rights reserved.
  *
  * Redistribution and use in source and binary forms are permitted
  * IMPLIED WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED
  * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.
  */
-#include <demangle.h>
+#include "demangle.h"
 #include "gprof.h"
-#include "cg_arcs.h"
+#include "search_list.h"
+#include "source.h"
 #include "symtab.h"
+#include "cg_arcs.h"
+#include "utils.h"
 
 
 /*
  * Print name of symbol.  Return number of characters printed.
  */
 int
-DEFUN (print_name_only, (self), Sym * self)
+print_name_only (self)
+     Sym *self;
 {
   const char *name = self->name;
   const char *filename;
@@ -68,8 +72,9 @@ DEFUN (print_name_only, (self), Sym * self)
                  filename = self->file->name;
                }
            }
-         sprintf (buf, " (%s:%d)", filename, self->line_num);
-         printf (buf);
+         sprintf (buf, " (%s:%d @ %lx)", filename, self->line_num,
+                  (unsigned long) self->addr);
+         printf ("%s", buf);
          size += strlen (buf);
        }
       if (demangled)
@@ -84,7 +89,8 @@ DEFUN (print_name_only, (self), Sym * self)
 
 
 void
-DEFUN (print_name, (self), Sym * self)
+print_name (self)
+     Sym *self;
 {
   print_name_only (self);
 
This page took 0.055075 seconds and 4 git commands to generate.