index -> strchr
This commit is contained in:
parent
98105ba26f
commit
c398de0cdd
|
@ -1,3 +1,8 @@
|
||||||
|
Wed Sep 1 14:36:00 1993 K. Richard Pixley (rich@sendai.cygnus.com)
|
||||||
|
|
||||||
|
* i960-tdep.c, ns32k-pinsn.c, remote-adapt.c, xcoffread.c:
|
||||||
|
index -> strchr.
|
||||||
|
|
||||||
Wed Sep 1 11:35:49 1993 Jim Kingdon (kingdon@lioth.cygnus.com)
|
Wed Sep 1 11:35:49 1993 Jim Kingdon (kingdon@lioth.cygnus.com)
|
||||||
|
|
||||||
* remote.c: Add comment explaining why dcache is disabled.
|
* remote.c: Add comment explaining why dcache is disabled.
|
||||||
|
|
|
@ -468,11 +468,10 @@ leafproc_return (ip)
|
||||||
int dst;
|
int dst;
|
||||||
unsigned int insn1, insn2;
|
unsigned int insn1, insn2;
|
||||||
CORE_ADDR return_addr;
|
CORE_ADDR return_addr;
|
||||||
char *index ();
|
|
||||||
|
|
||||||
if ((msymbol = lookup_minimal_symbol_by_pc (ip)) != NULL)
|
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)
|
if (next_insn (SYMBOL_VALUE_ADDRESS (msymbol), &insn1, &insn2)
|
||||||
&& (insn1 & 0xff87ffff) == 0x5c80161e /* mov g14, gx */
|
&& (insn1 & 0xff87ffff) == 0x5c80161e /* mov g14, gx */
|
||||||
|
|
|
@ -227,7 +227,7 @@ print_insn (memaddr, stream)
|
||||||
for (argnum = 0; argnum <= maxarg; argnum++)
|
for (argnum = 0; argnum <= maxarg; argnum++)
|
||||||
{
|
{
|
||||||
CORE_ADDR addr;
|
CORE_ADDR addr;
|
||||||
char *ch, *index ();
|
char *ch;
|
||||||
for (ch = arg_bufs[argnum]; *ch;)
|
for (ch = arg_bufs[argnum]; *ch;)
|
||||||
{
|
{
|
||||||
if (*ch == NEXT_IS_ADDR)
|
if (*ch == NEXT_IS_ADDR)
|
||||||
|
|
|
@ -1331,7 +1331,7 @@ adapt_com (args, fromtty)
|
||||||
break;
|
break;
|
||||||
/* Begin commands that take input in the form 'c x,y[,z...]' */
|
/* Begin commands that take input in the form 'c x,y[,z...]' */
|
||||||
case 'S': /* Set memory or register */
|
case 'S': /* Set memory or register */
|
||||||
if (index(args,',')) { /* Assume it is properly formatted */
|
if (strchr(args,',')) { /* Assume it is properly formatted */
|
||||||
write(adapt_desc,args,strlen(args));
|
write(adapt_desc,args,strlen(args));
|
||||||
write(adapt_desc,"\r",1);
|
write(adapt_desc,"\r",1);
|
||||||
expect_prompt();
|
expect_prompt();
|
||||||
|
|
|
@ -1627,7 +1627,7 @@ process_xcoff_symbol (cs, objfile)
|
||||||
/* FIXME: I believe this is to avoid a Sun-specific hack somewhere.
|
/* FIXME: I believe this is to avoid a Sun-specific hack somewhere.
|
||||||
Needs more investigation. */
|
Needs more investigation. */
|
||||||
|
|
||||||
if (*name == ':' || (pp = (char *) index (name, ':')) == NULL)
|
if (*name == ':' || (pp = (char *) strchr(name, ':')) == NULL)
|
||||||
return NULL;
|
return NULL;
|
||||||
|
|
||||||
++pp;
|
++pp;
|
||||||
|
|
Loading…
Reference in New Issue