projects
/
binutils-gdb.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d8ce132
)
* nindy-tdep.c (nindy_frame_chain_valid): Use lookup_misc_func.
author
John Gilmore
<gnu@cygnus>
Sat, 28 Sep 1991 02:20:09 +0000
(
02:20
+0000)
committer
John 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
patch
|
blob
|
history
diff --git
a/gdb/nindy-tdep.c
b/gdb/nindy-tdep.c
index 7243fbe1497d4dc696731b0607a9de40b4471d43..8f7083119cf12f900b2f80ad536086424b9d3615 100644
(file)
--- 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;
}