* nindy-tdep.c (nindy_frame_chain_valid): Use lookup_misc_func.
authorJohn Gilmore <gnu@cygnus>
Sat, 28 Sep 1991 02:20:09 +0000 (02:20 +0000)
committerJohn Gilmore <gnu@cygnus>
Sat, 28 Sep 1991 02:20:09 +0000 (02:20 +0000)
(Reported by Mark Peek <mark@imagen.com>.)

gdb/nindy-tdep.c

index 7243fbe1497d4dc696731b0607a9de40b4471d43..8f7083119cf12f900b2f80ad536086424b9d3615 100644 (file)
@@ -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;
        }