summaryrefslogtreecommitdiff
path: root/gprof/utils.c
diff options
context:
space:
mode:
authorAlan Modra <amodra@gmail.com>2001-03-14 03:14:56 +0000
committerAlan Modra <amodra@gmail.com>2001-03-14 03:14:56 +0000
commit0eee5820aa0f68b2283b40f5a3fb09aefcfb1575 (patch)
tree849fb8ae327bfed38a9afe6c45bed35e4a96703a /gprof/utils.c
parent04847a4d3e1cf5c5c811f8fbbdeeca498de51dc4 (diff)
downloadbinutils-gdb-0eee5820aa0f68b2283b40f5a3fb09aefcfb1575.tar.gz
David Mosberger's fixes for cross compiling gprof.
Diffstat (limited to 'gprof/utils.c')
-rw-r--r--gprof/utils.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/gprof/utils.c b/gprof/utils.c
index c72c02e01f0..c18f83342ef 100644
--- a/gprof/utils.c
+++ b/gprof/utils.c
@@ -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);
}