summaryrefslogtreecommitdiff
path: root/gprof/corefile.c
diff options
context:
space:
mode:
authorAlan Modra <amodra@bigpond.net.au>2002-11-30 08:39:46 +0000
committerAlan Modra <amodra@bigpond.net.au>2002-11-30 08:39:46 +0000
commit21bd0c8d7a860a284f4f85a72fc26721ec87aedd (patch)
tree9a0470dbae9d01002a20b39e95a68f81bb4eaaa8 /gprof/corefile.c
parentfdb71d9a52a1eaa32d8b51672f63abe50896d4a0 (diff)
downloadbinutils-redhat-21bd0c8d7a860a284f4f85a72fc26721ec87aedd.tar.gz
s/boolean/bfd_boolean/ s/true/TRUE/ s/false/FALSE/. Simplify
comparisons of bfd_boolean vars with TRUE/FALSE. Formatting.
Diffstat (limited to 'gprof/corefile.c')
-rw-r--r--gprof/corefile.c16
1 files changed, 8 insertions, 8 deletions
diff --git a/gprof/corefile.c b/gprof/corefile.c
index 74e78f5eec..4b8fa13400 100644
--- a/gprof/corefile.c
+++ b/gprof/corefile.c
@@ -41,7 +41,7 @@ unsigned int symbol_map_count;
static void read_function_mappings PARAMS ((const char *));
static int core_sym_class PARAMS ((asymbol *));
-static boolean get_src_info
+static bfd_boolean get_src_info
PARAMS ((bfd_vma, const char **, const char **, int *));
extern void i386_find_call PARAMS ((Sym *, bfd_vma, bfd_vma));
@@ -277,7 +277,7 @@ find_call (parent, p_lowpc, p_highpc)
whoami, bfd_printable_name(core_bfd));
/* Don't give the error more than once. */
- ignore_direct_calls = false;
+ ignore_direct_calls = FALSE;
}
}
@@ -370,7 +370,7 @@ core_sym_class (sym)
/* Get whatever source info we can get regarding address ADDR. */
-static boolean
+static bfd_boolean
get_src_info (addr, filename, name, line_num)
bfd_vma addr;
const char **filename;
@@ -390,14 +390,14 @@ get_src_info (addr, filename, name, line_num)
*filename = fname;
*name = func_name;
*line_num = l;
- return true;
+ return TRUE;
}
else
{
DBG (AOUTDEBUG, printf ("[get_src_info] no info for 0x%lx (%s:%d,%s)\n",
(long) addr, fname ? fname : "<unknown>", l,
func_name ? func_name : "<unknown>"));
- return false;
+ return FALSE;
}
}
@@ -536,11 +536,11 @@ core_create_function_syms (cbfd)
}
}
- symtab.limit->is_func = true;
- symtab.limit->is_bb_head = true;
+ symtab.limit->is_func = TRUE;
+ symtab.limit->is_bb_head = TRUE;
if (class == 't')
- symtab.limit->is_static = true;
+ symtab.limit->is_static = TRUE;
/* Keep track of the minimum and maximum vma addresses used by all
symbols. When computing the max_vma, use the ending address of the