diff options
-rw-r--r-- | gdb/nindy-tdep.c | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/gdb/nindy-tdep.c b/gdb/nindy-tdep.c index 7243fbe..8f70831 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; } |