aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrew Burgess <aburgess@redhat.com>2024-07-22 16:37:08 +0100
committerAndrew Burgess <aburgess@redhat.com>2024-07-22 16:37:08 +0100
commit40578beee8a593e3668852238fd8e9f53790f2c9 (patch)
tree9a0e6aafea57944e4ce5c3dcd056c0331f34776b
parent6fc24c7607ba54a2fc3e2a947de26bc25d42cbe3 (diff)
downloadbinutils-40578beee8a593e3668852238fd8e9f53790f2c9.zip
binutils-40578beee8a593e3668852238fd8e9f53790f2c9.tar.gz
binutils-40578beee8a593e3668852238fd8e9f53790f2c9.tar.bz2
gdb/remote: remove an out of date comment
A comment above an `if` check was accidentally left in place after this commit: commit ddb3f3d89cf62df6be3cb9e110504def19625160 Date: Tue Mar 19 12:34:34 2024 +0100 Add "error_message+" feature to qSupported The comment relates to how 'E.msg' style remote replies are not supported by every packet, but after the above commit they are supported in all cases (that call packet_check_result), and the comment should have been removed.
-rw-r--r--gdb/remote.c3
1 files changed, 0 insertions, 3 deletions
diff --git a/gdb/remote.c b/gdb/remote.c
index efef594..0fd45cc 100644
--- a/gdb/remote.c
+++ b/gdb/remote.c
@@ -2532,9 +2532,6 @@ packet_check_result (const char *buf)
/* "Enn" - definitely an error. */
return packet_result::make_numeric_error (buf + 1);
- /* Not every request accepts an error in a E.msg form.
- Some packets accepts only Enn, in this case E. is not
- defined and E. is treated as PACKET_OK. */
/* Always treat "E." as an error. This will be used for
more verbose error messages, such as E.memtypes. */
if (buf[0] == 'E' && buf[1] == '.')