aboutsummaryrefslogtreecommitdiff
path: root/gprof/i386.c
diff options
context:
space:
mode:
authorIan Lance Taylor <ian@airs.com>1999-06-30 22:38:30 +0000
committerIan Lance Taylor <ian@airs.com>1999-06-30 22:38:30 +0000
commitfdcf7d43287e77faef1282771bd95a56dd141d1f (patch)
tree46d423601e62ca0ed94ac84b0e72a67f60a0c5ec /gprof/i386.c
parent106117aa9f2948a25030e85b9bcac81f43fdce3e (diff)
downloadgdb-fdcf7d43287e77faef1282771bd95a56dd141d1f.zip
gdb-fdcf7d43287e77faef1282771bd95a56dd141d1f.tar.gz
gdb-fdcf7d43287e77faef1282771bd95a56dd141d1f.tar.bz2
* Many files: Add casts in many print statements to cast bfd_vma
values to unsigned long when calling printf. * Makefile.am ($(OBJECTS)): Add gmon.h. * Makefile.in: Rebuild.
Diffstat (limited to 'gprof/i386.c')
-rw-r--r--gprof/i386.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/gprof/i386.c b/gprof/i386.c
index 18aad1c..2abf2dc 100644
--- a/gprof/i386.c
+++ b/gprof/i386.c
@@ -55,7 +55,8 @@ i386_find_call (parent, p_lowpc, p_highpc)
p_highpc = s_highpc;
}
DBG (CALLDEBUG, printf ("[findcall] %s: 0x%lx to 0x%lx\n",
- parent->name, p_lowpc, p_highpc));
+ parent->name, (unsigned long) p_lowpc,
+ (unsigned long) p_highpc));
delta = (bfd_vma) core_text_space - core_text_sect->vma;
@@ -85,7 +86,8 @@ i386_find_call (parent, p_lowpc, p_highpc)
* a hit
*/
DBG (CALLDEBUG,
- printf ("\tdestpc 0x%lx (%s)\n", destpc, child->name));
+ printf ("\tdestpc 0x%lx (%s)\n",
+ (unsigned long) destpc, child->name));
arc_add (parent, child, (unsigned long) 0);
instructp += 4; /* call is a 5 byte instruction */
continue;