David Mosberger's fixes for cross compiling gprof.
[deliverable/binutils-gdb.git] / gprof / utils.c
index c72c02e01f0d7ceed5f9ee6867f74e1a579acccd..c18f83342efa42375b13d383e35fc849458fd66a 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
@@ -68,7 +68,8 @@ DEFUN (print_name_only, (self), Sym * self)
                  filename = self->file->name;
                }
            }
-         sprintf (buf, " (%s:%d)", filename, self->line_num);
+         sprintf (buf, " (%s:%d @ %lx)", filename, self->line_num,
+                  (unsigned long) self->addr);
          printf ("%s", buf);
          size += strlen (buf);
        }
This page took 0.024545 seconds and 4 git commands to generate.