2000-07-24 Elena Zannoni <ezannoni@kwikemart.cygnus.com>
[deliverable/binutils-gdb.git] / gprof / vax.c
index 020409cba6f0137b05f347e58c82c042f5c22d58..58e7de3820becba8e903eef037e5f5b32824b2e6 100644 (file)
@@ -18,7 +18,7 @@
  */
 #include "gprof.h"
 #include "cg_arcs.h"
-#include "core.h"
+#include "corefile.h"
 #include "hist.h"
 #include "symtab.h"
 
@@ -250,7 +250,8 @@ vax_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));
   for (instructp = (unsigned char *) core_text_space + p_lowpc;
        instructp < (unsigned char *) core_text_space + p_highpc;
        instructp += length)
@@ -263,8 +264,9 @@ vax_find_call (parent, p_lowpc, p_highpc)
           *      skip the count of the number of arguments.
           */
          DBG (CALLDEBUG,
-              printf ("[findcall]\t0x%x:calls",
-                      instructp - (unsigned char *) core_text_space));
+              printf ("[findcall]\t0x%lx:calls",
+                      ((unsigned long)
+                       (instructp - (unsigned char *) core_text_space))));
          firstmode = vax_operandmode ((struct modebyte *) (instructp + length));
          switch (firstmode)
            {
@@ -296,7 +298,7 @@ vax_find_call (parent, p_lowpc, p_highpc)
               *      [are there others that we miss?,
               *       e.g. arrays of pointers to functions???]
               */
-             arc_add (parent, &indirectchild, (long) 0);
+             arc_add (parent, &indirectchild, (unsigned long) 0);
              length += vax_operandlength (
                                  (struct modebyte *) (instructp + length));
              continue;
@@ -314,16 +316,18 @@ vax_find_call (parent, p_lowpc, p_highpc)
                {
                  child = sym_lookup (&symtab, destpc);
                  DBG (CALLDEBUG,
-                      printf ("[findcall]\tdestpc 0x%lx", destpc);
+                      printf ("[findcall]\tdestpc 0x%lx",
+                              (unsigned long) destpc);
                       printf (" child->name %s", child->name);
-                      printf (" child->addr 0x%lx\n", child->addr);
+                      printf (" child->addr 0x%lx\n",
+                              (unsigned long) child->addr);
                    );
                  if (child->addr == destpc)
                    {
                      /*
                       *    a hit
                       */
-                     arc_add (parent, child, (long) 0);
+                     arc_add (parent, child, (unsigned long) 0);
                      length += vax_operandlength ((struct modebyte *)
                                                   (instructp + length));
                      continue;
This page took 0.027071 seconds and 4 git commands to generate.