aboutsummaryrefslogtreecommitdiff
path: root/gprof
diff options
context:
space:
mode:
authorIan Lance Taylor <ian@airs.com>1996-10-02 19:23:38 +0000
committerIan Lance Taylor <ian@airs.com>1996-10-02 19:23:38 +0000
commit1259da3e77b03cb56b4d2a0144587b4f95cce5c9 (patch)
tree29e2bb9120f39992cab6aa0ecaaaec5c74c0ee99 /gprof
parent30e23a1c9242a6f87bc99eb2470ec888486a7671 (diff)
downloadgdb-1259da3e77b03cb56b4d2a0144587b4f95cce5c9.zip
gdb-1259da3e77b03cb56b4d2a0144587b4f95cce5c9.tar.gz
gdb-1259da3e77b03cb56b4d2a0144587b4f95cce5c9.tar.bz2
* sparc.c (find_call): Align p_lowpc to avoid bus error.
Diffstat (limited to 'gprof')
-rw-r--r--gprof/ChangeLog4
-rw-r--r--gprof/sparc.c2
2 files changed, 5 insertions, 1 deletions
diff --git a/gprof/ChangeLog b/gprof/ChangeLog
index f769bd1..ae6f12a 100644
--- a/gprof/ChangeLog
+++ b/gprof/ChangeLog
@@ -1,3 +1,7 @@
+Wed Oct 2 15:23:16 1996 Ian Lance Taylor <ian@cygnus.com>
+
+ * sparc.c (find_call): Align p_lowpc to avoid bus error.
+
Tue Oct 1 15:58:10 1996 Ian Lance Taylor <ian@cygnus.com>
* gprof.c (usage): Print bug report address.
diff --git a/gprof/sparc.c b/gprof/sparc.c
index b12420a..6316bff 100644
--- a/gprof/sparc.c
+++ b/gprof/sparc.c
@@ -49,7 +49,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)
{