From: John Gilmore Date: Sat, 28 Sep 1991 02:20:09 +0000 (+0000) Subject: * nindy-tdep.c (nindy_frame_chain_valid): Use lookup_misc_func. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=a65bb55d7a1b848805fe804354700ccca9caf38d;p=binutils-gdb.git * nindy-tdep.c (nindy_frame_chain_valid): Use lookup_misc_func. (Reported by Mark Peek .) --- diff --git a/gdb/nindy-tdep.c b/gdb/nindy-tdep.c index 7243fbe1497..8f7083119cf 100644 --- a/gdb/nindy-tdep.c +++ b/gdb/nindy-tdep.c @@ -65,11 +65,9 @@ nindy_frame_chain_valid (chain, curframe) if ( sym != 0 ){ a = sym->value.value; } else { - for ( i = 0; strcmp(misc_function_vector[i].name,sf); i++ ){ - if ( i >= misc_function_count ){ - return 0; - } - } + i = lookup_misc_func (sf); + if (i < 0) + return 0; a = misc_function_vector[i].address; }