diff options
author | John Gilmore <gnu@cygnus> | 1991-09-28 02:20:09 +0000 |
---|---|---|
committer | John Gilmore <gnu@cygnus> | 1991-09-28 02:20:09 +0000 |
commit | a65bb55d7a1b848805fe804354700ccca9caf38d (patch) | |
tree | 72260c655262aebf8165d97f6fde776326e393d3 | |
parent | d8ce13268e9c7514b4b09757ad762bce9d0bfb0a (diff) | |
download | gdb-a65bb55d7a1b848805fe804354700ccca9caf38d.zip gdb-a65bb55d7a1b848805fe804354700ccca9caf38d.tar.gz gdb-a65bb55d7a1b848805fe804354700ccca9caf38d.tar.bz2 |
* nindy-tdep.c (nindy_frame_chain_valid): Use lookup_misc_func.
(Reported by Mark Peek <mark@imagen.com>.)
-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; } |