Patch to i386-stub.c, fix newly added 'P' command
J.T. Conklin
jtc@redbacknetworks.com
Thu Dec 17 13:34:00 GMT 1998
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;
}
More information about the Gdb-patches
mailing list