]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commitdiff
index -> strchr
authorK. Richard Pixley <rich@cygnus>
Wed, 1 Sep 1993 22:24:34 +0000 (22:24 +0000)
committerK. Richard Pixley <rich@cygnus>
Wed, 1 Sep 1993 22:24:34 +0000 (22:24 +0000)
gdb/ChangeLog
gdb/i960-tdep.c
gdb/ns32k-pinsn.c
gdb/remote-adapt.c
gdb/xcoffread.c

index dedecb7a17a947cee6617cf4c69cffc22d0367c7..6f181d22c8023ea1fc7eae5d1f507327fc46b136 100644 (file)
@@ -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)
 
        * remote.c: Add comment explaining why dcache is disabled.
index 3f46f394bc331a7d6ff62ada01a0a3793b3bfc0e..df9f04a615e8522f0f3a467dfd9b9e6d907ee371 100644 (file)
@@ -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 */
index 820517368b693be40f19ac0b1030e9992e789008..1680d87a8da640e9da2f7b974f1bdc407413cd7b 100644 (file)
@@ -227,7 +227,7 @@ print_insn (memaddr, stream)
       for (argnum = 0; argnum <= maxarg; argnum++)
        {
          CORE_ADDR addr;
-         char *ch, *index ();
+         char *ch;
          for (ch = arg_bufs[argnum]; *ch;)
            {
              if (*ch == NEXT_IS_ADDR)
index 390466d7bbd30ef73fc82c60d8939c45cda5141c..ff07b4b6d7e3436014f798e5bb7afa7d88d48850 100644 (file)
@@ -1331,7 +1331,7 @@ adapt_com (args, fromtty)
                break;
        /* Begin commands that take input in the form 'c x,y[,z...]' */
        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,"\r",1);
                        expect_prompt();
index 960d2d894ab4035ea30082af6fe6802dd93723ed..c6a138aeaaabb91e3dabff58d2234c7154e29907 100644 (file)
@@ -1627,7 +1627,7 @@ process_xcoff_symbol (cs, objfile)
         /* FIXME: I believe this is to avoid a Sun-specific hack somewhere.
           Needs more investigation.  */
 
-       if (*name == ':' || (pp = (char *) index (name, ':')) == NULL)
+       if (*name == ':' || (pp = (char *) strchr(name, ':')) == NULL)
          return NULL;
 
        ++pp;