mirror of
https://sourceware.org/git/binutils-gdb.git
synced 2024-12-15 04:31:49 +08:00
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:
parent
a69599e68b
commit
94ea6ddb94
@ -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;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user