aboutsummaryrefslogtreecommitdiff
path: root/gdb/valprint.c
diff options
context:
space:
mode:
authorTom Tromey <tromey@adacore.com>2022-04-12 14:40:16 -0600
committerTom Tromey <tromey@adacore.com>2022-04-14 12:12:34 -0600
commit94ea6ddb944d985890632708865ffef4436f98c3 (patch)
tree2c4dd406e0e71bcb7d8d9607046ab8b087424c60 /gdb/valprint.c
parenta69599e68bf243a50b6aee3a63ed48ada1f9c8cc (diff)
downloadgdb-94ea6ddb944d985890632708865ffef4436f98c3.zip
gdb-94ea6ddb944d985890632708865ffef4436f98c3.tar.gz
gdb-94ea6ddb944d985890632708865ffef4436f98c3.tar.bz2
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.
Diffstat (limited to 'gdb/valprint.c')
-rw-r--r--gdb/valprint.c3
1 files changed, 0 insertions, 3 deletions
diff --git a/gdb/valprint.c b/gdb/valprint.c
index 9990d43..65b85cf 100644
--- a/gdb/valprint.c
+++ b/gdb/valprint.c
@@ -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;
}