Mirror of the gdb-patches mailing list
 help / color / mirror / Atom feed
* Patch to i386-stub.c, fix newly added 'P' command
@ 1998-12-17 13:34 J.T. Conklin
  1998-12-30 17:52 ` Stan Shebs
  0 siblings, 1 reply; 2+ messages in thread
From: J.T. Conklin @ 1998-12-17 13:34 UTC (permalink / raw)
  To: gdb-patches

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;
                  }
  


^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: Patch to i386-stub.c, fix newly added 'P' command
  1998-12-17 13:34 Patch to i386-stub.c, fix newly added 'P' command J.T. Conklin
@ 1998-12-30 17:52 ` Stan Shebs
  0 siblings, 0 replies; 2+ messages in thread
From: Stan Shebs @ 1998-12-30 17:52 UTC (permalink / raw)
  To: jtc; +Cc: gdb-patches

   Date: Thu, 17 Dec 1998 13:34:18 -0800
   From: "J.T. Conklin" <jtc@redbacknetworks.com>

   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.

Thanks, I've just committed these changes to the repository.

							Stan


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~1998-12-30 17:52 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
1998-12-17 13:34 Patch to i386-stub.c, fix newly added 'P' command J.T. Conklin
1998-12-30 17:52 ` Stan Shebs

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox