]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commitdiff
gdb/remote: remove an out of date comment
authorAndrew Burgess <aburgess@redhat.com>
Mon, 22 Jul 2024 15:37:08 +0000 (16:37 +0100)
committerAndrew Burgess <aburgess@redhat.com>
Mon, 22 Jul 2024 15:37:08 +0000 (16:37 +0100)
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.

gdb/remote.c

index efef5944ed553dc9c9870d6d427c5c3158013471..0fd45cc96c9a44b4bc8470ad4b723966a36a4aef 100644 (file)
@@ -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] == '.')