This is the mail archive of the gdb-patches@sourceware.cygnus.com mailing list for the GDB project. See the GDB home page for more information.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Patch to i386-stub.c, fix newly added 'P' command


The enclosed patch fixes two errors in my previous patch that added
support for the 'P' command to i386-stub.c. The first is transposed
characters in a comment, the second and more substantial is that an
incorrect string is used to report an error.

	  --jtc


Index: i386-stub.c
===================================================================
RCS file: /usr/rback/release/tools-src/gdb/gdb/i386-stub.c,v
retrieving revision 1.1.1.2
diff -c -r1.1.1.2 i386-stub.c
*** i386-stub.c	1998/12/17 19:11:40	1.1.1.2
--- i386-stub.c	1998/12/17 21:30:20
***************
*** 740,746 ****
                  hex2mem(&remcomInBuffer[1], (char*) registers, NUMREGBYTES, 0);
                  strcpy(remcomOutBuffer,"OK");
                  break;
!       case 'P' : /* set the value of a signle CPU register - return OK */
                  {
                    int regno;
  
--- 740,746 ----
                  hex2mem(&remcomInBuffer[1], (char*) registers, NUMREGBYTES, 0);
                  strcpy(remcomOutBuffer,"OK");
                  break;
!       case 'P' : /* set the value of a single CPU register - return OK */
                  {
                    int regno;
  
***************
*** 753,759 ****
                        break;
                      }
  
!                   strcpy (remcomOutBuffer, "P01");
                    break;
                  }
  
--- 753,759 ----
                        break;
                      }
  
!                   strcpy (remcomOutBuffer, "E01");
                    break;
                  }