From: "J.T. Conklin" <jtc@redbacknetworks.com>
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 [thread overview]
Message-ID: <199812172134.NAA16562@jtc.redbacknetworks.com> (raw)
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;
}
next reply other threads:[~1998-12-17 13:34 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
1998-12-17 13:34 J.T. Conklin [this message]
1998-12-30 17:52 ` Stan Shebs
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=199812172134.NAA16562@jtc.redbacknetworks.com \
--to=jtc@redbacknetworks.com \
--cc=gdb-patches@cygnus.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox