projects
/
binutils-gdb.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a69599e
)
Don't call QUIT in read_string
author
Tom Tromey
<tromey@adacore.com>
Tue, 12 Apr 2022 20:40:16 +0000
(14:40 -0600)
committer
Tom Tromey
<tromey@adacore.com>
Thu, 14 Apr 2022 18:12:34 +0000
(12:12 -0600)
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.
gdb/valprint.c
patch
|
blob
|
history
diff --git
a/gdb/valprint.c
b/gdb/valprint.c
index 9990d432e3506804d2198a55502a3d0ed462a74c..65b85cfb0384acc9bbd1a7d1a2aa383761782ad7 100644
(file)
--- 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;
}