[PATCH] remote_rcmd

Johan Rydberg jrydberg@rtmk.org
Wed Jun 26 18:45:00 GMT 2002


Hi,

This small patch adds support for receving more that ~200 bytes
of output from the "qRcmd" request (ie the monitor command).

I have no idea if this will break any stubs, but hopefully not.
I don't know how often stubs implement the qRcmd request.

2002-06-27  Johan Rydberg  <jrydberg@rtmk.org>

        * remote.c (remote_rcmd): Continue reading output from
        stub until receiving OK.


Index: remote.c
===================================================================
RCS file: /cvs/src/src/gdb/remote.c,v
retrieving revision 1.87
diff -u -u -r1.87 remote.c
--- remote.c	15 Jun 2002 22:05:32 -0000	1.87
+++ remote.c	27 Jun 2002 01:42:02 -0000
@@ -5210,7 +5210,6 @@
 	  char c = (fromhex (p[0]) << 4) + fromhex (p[1]);
 	  fputc_unfiltered (c, outbuf);
 	}
-      break;
     }
 }



More information about the Gdb mailing list