aboutsummaryrefslogtreecommitdiff
path: root/gdb/i960-tdep.c
diff options
context:
space:
mode:
authorK. Richard Pixley <rich@cygnus>1993-09-01 22:24:34 +0000
committerK. Richard Pixley <rich@cygnus>1993-09-01 22:24:34 +0000
commitc398de0cddd0a2215e9d9c0f563d40aa5f554692 (patch)
tree5218590d120aa12d82b127c3d62cce5adfaad6ee /gdb/i960-tdep.c
parent98105ba26f77cb0406c8ea5abe73d3fd9a139794 (diff)
downloadgdb-c398de0cddd0a2215e9d9c0f563d40aa5f554692.zip
gdb-c398de0cddd0a2215e9d9c0f563d40aa5f554692.tar.gz
gdb-c398de0cddd0a2215e9d9c0f563d40aa5f554692.tar.bz2
index -> strchr
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 */