aboutsummaryrefslogtreecommitdiff
path: root/gdb/nindy-tdep.c
diff options
context:
space:
mode:
authorJohn Gilmore <gnu@cygnus>1992-02-22 01:46:16 +0000
committerJohn Gilmore <gnu@cygnus>1992-02-22 01:46:16 +0000
commit1ab3bf1b148d31aad66735f52f9ff72af8769cd0 (patch)
treef599e61700fc54d6ecd3d090e3d01cf6fa66a801 /gdb/nindy-tdep.c
parent8e48d87af60233cc7e8dc18ab4e8f63d223ac20f (diff)
downloadgdb-1ab3bf1b148d31aad66735f52f9ff72af8769cd0.zip
gdb-1ab3bf1b148d31aad66735f52f9ff72af8769cd0.tar.gz
gdb-1ab3bf1b148d31aad66735f52f9ff72af8769cd0.tar.bz2
* Check in Fred Fish's changes in these modules. Fred
will make ChangeLog entries for all of them.
Diffstat (limited to 'gdb/nindy-tdep.c')
-rw-r--r--gdb/nindy-tdep.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/gdb/nindy-tdep.c b/gdb/nindy-tdep.c
index dcb5dd9..4996b53 100644
--- a/gdb/nindy-tdep.c
+++ b/gdb/nindy-tdep.c
@@ -38,7 +38,7 @@ nindy_frame_chain_valid (chain, curframe)
FRAME curframe;
{
struct symbol *sym;
- int i;
+ struct minimal_symbol *msymbol;
/* crtnindy.o is an assembler module that is assumed to be linked
* first in an i80960 executable. It contains the true entry point;
@@ -64,10 +64,10 @@ nindy_frame_chain_valid (chain, curframe)
if ( sym != 0 ){
a = sym->value.value;
} else {
- i = lookup_misc_func (sf);
- if (i < 0)
+ msymbol = lookup_minimal_symbol (sf, (struct objfile *) NULL);
+ if (msymbol == NULL)
return 0;
- a = misc_function_vector[i].address;
+ a = msymbol -> address;
}
return ( chain != read_memory_integer(a,4) );