diff options
author | Alan Modra <amodra@gmail.com> | 2001-03-14 03:14:56 +0000 |
---|---|---|
committer | Alan Modra <amodra@gmail.com> | 2001-03-14 03:14:56 +0000 |
commit | 0eee5820aa0f68b2283b40f5a3fb09aefcfb1575 (patch) | |
tree | 849fb8ae327bfed38a9afe6c45bed35e4a96703a /gprof/utils.c | |
parent | 04847a4d3e1cf5c5c811f8fbbdeeca498de51dc4 (diff) | |
download | gdb-0eee5820aa0f68b2283b40f5a3fb09aefcfb1575.zip gdb-0eee5820aa0f68b2283b40f5a3fb09aefcfb1575.tar.gz gdb-0eee5820aa0f68b2283b40f5a3fb09aefcfb1575.tar.bz2 |
David Mosberger's fixes for cross compiling gprof.
Diffstat (limited to 'gprof/utils.c')
-rw-r--r-- | gprof/utils.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/gprof/utils.c b/gprof/utils.c index c72c02e..c18f833 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); } |