aboutsummaryrefslogtreecommitdiff
path: root/gprof
diff options
context:
space:
mode:
authorSean Eric Fagan <sef@cygnus>1992-03-06 11:57:22 +0000
committerSean Eric Fagan <sef@cygnus>1992-03-06 11:57:22 +0000
commit2c89ba265c3f2469e69925567f99941ee100c153 (patch)
tree96b198fb0d50c8a41c32db6af6a5e8a6148d96ca /gprof
parent77c9b2c3e207ee1014191417f0309ef08bbe78e6 (diff)
downloadgdb-2c89ba265c3f2469e69925567f99941ee100c153.zip
gdb-2c89ba265c3f2469e69925567f99941ee100c153.tar.gz
gdb-2c89ba265c3f2469e69925567f99941ee100c153.tar.bz2
Fixed a typo in an if statement -- gcc caught it ('=' vs. '==').
Diffstat (limited to 'gprof')
-rw-r--r--gprof/i386.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/gprof/i386.c b/gprof/i386.c
index cdced1c..dc28611 100644
--- a/gprof/i386.c
+++ b/gprof/i386.c
@@ -49,7 +49,7 @@ nltype indirectchild = {
int
iscall (unsigned char *ip) {
- if (*ip == 0xeb || *ip = 0x9a)
+ if (*ip == 0xeb || *ip == 0x9a)
return 1;
return 0;
}
@@ -95,8 +95,7 @@ findcall( parentp , p_lowpc , p_highpc )
* check that this is the address of
* a function.
*/
- destpc = ( (unsigned long)instructp + 5
- - (unsigned long) textspace;
+ destpc = ( (unsigned long)instructp + 5 - (unsigned long) textspace);
if ( destpc >= s_lowpc && destpc <= s_highpc ) {
childp = nllookup( destpc );
# ifdef DEBUG