static long symcount;
static asection *text;
static bfd_vma vma;
- static char *instrument_type;
static int instrument_set;
static int instrument_off;
static int instrument_global;
- int i;
if (!instrument_set) {
+ static char *instrument_type;
+
/* Get the configuration environment variable INSTRUMENT value if any */
instrument_type = getenv("INSTRUMENT");
/* unset or set to an empty string ? */
return;
}
- symtab = (asymbol **)malloc(symsize);
+ symtab = (asymbol **)malloc((size_t)symsize);
symcount = bfd_canonicalize_symtab(abfd, symtab);
if (symcount < 0) {
free(symtab);
if (instrument_global) {
symbol_info syminfo;
int found;
+ long i;
i = 0;
found = 0;
&file, &func, &line)) {
printf("[ERROR bfd_find_nearest_line this_fn]");
} else {
+ int i;
+
if (action == ENTER)
profile_func_level += 1;
/* Indentation */