From mboxrd@z Thu Jan 1 00:00:00 1970 From: "J.T. Conklin" To: gdb-patches@cygnus.com Subject: Patch to i386-stub.c, fix newly added 'P' command Date: Thu, 17 Dec 1998 13:34:00 -0000 Message-id: <199812172134.NAA16562@jtc.redbacknetworks.com> X-SW-Source: 1998/msg00125.html 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; }