aboutsummaryrefslogtreecommitdiff
path: root/gdb/i960-tdep.c
diff options
context:
space:
mode:
Diffstat (limited to 'gdb/i960-tdep.c')
-rw-r--r--gdb/i960-tdep.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/gdb/i960-tdep.c b/gdb/i960-tdep.c
index 3f46f39..df9f04a 100644
--- a/gdb/i960-tdep.c
+++ b/gdb/i960-tdep.c
@@ -468,11 +468,10 @@ leafproc_return (ip)
int dst;
unsigned int insn1, insn2;
CORE_ADDR return_addr;
- char *index ();
if ((msymbol = lookup_minimal_symbol_by_pc (ip)) != NULL)
{
- if ((p = index (SYMBOL_NAME (msymbol), '.')) && STREQ (p, ".lf"))
+ if ((p = strchr(SYMBOL_NAME (msymbol), '.')) && STREQ (p, ".lf"))
{
if (next_insn (SYMBOL_VALUE_ADDRESS (msymbol), &insn1, &insn2)
&& (insn1 & 0xff87ffff) == 0x5c80161e /* mov g14, gx */