Don't call QUIT in read_string

read_string does not need to call QUIT, because target_read_memory
already does.  This change is needed to make string-reading usable by
gdbserver.
This commit is contained in:
Tom Tromey 2022-04-12 14:40:16 -06:00
parent a69599e68b
commit 94ea6ddb94

View File

@ -2096,7 +2096,6 @@ read_string (CORE_ADDR addr, int len, int width, unsigned int fetchlimit,
do
{
QUIT;
nfetch = std::min ((unsigned long) chunksize, fetchlimit - bufsize);
if (*buffer == NULL)
@ -2152,8 +2151,6 @@ read_string (CORE_ADDR addr, int len, int width, unsigned int fetchlimit,
consider part of the string (including a '\0' which ends the string). */
*bytes_read = bufptr - buffer->get ();
QUIT;
return errcode;
}