From a65bb55d7a1b848805fe804354700ccca9caf38d Mon Sep 17 00:00:00 2001 From: John Gilmore Date: Sat, 28 Sep 1991 02:20:09 +0000 Subject: [PATCH] * nindy-tdep.c (nindy_frame_chain_valid): Use lookup_misc_func. (Reported by Mark Peek .) --- gdb/nindy-tdep.c | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) 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; } -- 2.30.2