* Makefile.in: Add libstub.
[deliverable/binutils-gdb.git] / gprof / sparc.c
index b12420ae80a5c0d006d60f8890e76babbb3ac334..77457ac4de16f9cc29814113b27a6fbcf81b6907 100644 (file)
 #include "hist.h"
 #include "symtab.h"
 
+    /*
+     *        opcode of the `callf' instruction
+     */
+#define        CALL    (0xc0000000)
 
 void
-find_call (parent, p_lowpc, p_highpc)
+sparc_find_call (parent, p_lowpc, p_highpc)
      Sym *parent;
      bfd_vma p_lowpc;
      bfd_vma p_highpc;
@@ -49,7 +53,7 @@ find_call (parent, p_lowpc, p_highpc)
     }
   DBG (CALLDEBUG, printf ("[find_call] %s: 0x%lx to 0x%lx\n",
                          parent->name, p_lowpc, p_highpc));
-  for (instr = (unsigned int *) (p_lowpc + delta);
+  for (instr = (unsigned int *) (((p_lowpc + delta) + 3) &~ 3);
        instr < (unsigned int *) (p_highpc + delta);
        ++instr)
     {
This page took 0.02307 seconds and 4 git commands to generate.