)]}'
{
  "commit": "8f3babfaf8ea582bed93fd6abcde7bfc96d3a8dd",
  "tree": "6a1f0a3e54a3d276ad9c425a8a40a4193696bc6a",
  "parents": [
    "69464d2267c47e91f9ba77726c745d82b8864c88"
  ],
  "author": {
    "name": "Andrew Burgess",
    "email": "aburgess@redhat.com",
    "time": "Tue Apr 26 15:08:02 2022 +0100"
  },
  "committer": {
    "name": "Andrew Burgess",
    "email": "aburgess@redhat.com",
    "time": "Sat May 07 10:49:27 2022 +0100"
  },
  "message": "gdb/readline: fix extra \u0027quit\u0027 message problem\n\nAfter these two commits:\n\n  commit 4fb7bc4b147fd30b781ea2dad533956d0362295a\n  Date:   Mon Mar 7 13:49:21 2022 +0000\n\n      readline: back-port changes needed to properly detect EOF\n\n  commit 91395d97d905c31ac38513e4aaedecb3b25e818f\n  Date:   Tue Feb 15 17:28:03 2022 +0000\n\n      gdb: handle bracketed-paste-mode and EOF correctly\n\nIt was observed that, if a previous command is selected at the\nreadline prompt using the up arrow key, then when the command is\naccepted (by pressing return) an unexpected \u0027quit\u0027 message will be\nprinted by GDB.  Here\u0027s an example session:\n\n  (gdb) p 123\n  $1 \u003d 123\n  (gdb) p 123\n  quit\n  $2 \u003d 123\n  (gdb)\n\nIn this session the second \u0027p 123\u0027 was entered not by typing \u0027p 123\u0027,\nbut by pressing the up arrow key to select the previous command.  It\nis important that the up arrow key is used, typing Ctrl-p will not\ntrigger the bug.\n\nThe problem here appears to be readline\u0027s EOF detection when handling\nmulti-character input sequences.  I have raised this issue on the\nreadline mailing list here:\n\n  https://lists.gnu.org/archive/html/bug-readline/2022-04/msg00012.html\n\na solution has been proposed here:\n\n  https://lists.gnu.org/archive/html/bug-readline/2022-04/msg00016.html\n\nThis patch includes a test for this issue as well as a back-port of\n(the important bits of) readline commit:\n\n  commit 2ef9cec8c48ab1ae3a16b1874a49bd1f58eaaca1\n  Date:   Wed May 4 11:18:04 2022 -0400\n\n      fix for setting RL_STATE_EOF in callback mode\n\nThat commit also includes some updates to the readline documentation\nand tests that I have not included in this commit.\n\nWith this commit in place the unexpected \u0027quit\u0027 messages are resolved.\n",
  "tree_diff": [
    {
      "type": "modify",
      "old_id": "4d770336eb6af152e6de73aa9110fff0a794f06d",
      "old_mode": 33188,
      "old_path": "gdb/testsuite/gdb.base/readline.exp",
      "new_id": "caf3b4acb62e37cb38bd5bd93e435839abb19b0e",
      "new_mode": 33188,
      "new_path": "gdb/testsuite/gdb.base/readline.exp"
    },
    {
      "type": "modify",
      "old_id": "58b84d2e2ad20e4b66b5c8b16141769677daee5c",
      "old_mode": 33188,
      "old_path": "readline/readline/callback.c",
      "new_id": "93f23d97bc20ed43439ee01afb19005ff7d911b5",
      "new_mode": 33188,
      "new_path": "readline/readline/callback.c"
    }
  ]
}
