)]}'
{
  "commit": "cf5a7801bd6994587b802ee6e0ee5a3a95c40bfd",
  "tree": "19d1bddb8f882f518a21135577145f16dc6dc1ee",
  "parents": [
    "5b763a470886fb9f24b8a75f38e6b252a2c127a7"
  ],
  "author": {
    "name": "Tom de Vries",
    "email": "tdevries@suse.de",
    "time": "Tue Jul 22 22:26:05 2025 +0200"
  },
  "committer": {
    "name": "Tom de Vries",
    "email": "tdevries@suse.de",
    "time": "Tue Jul 22 22:26:05 2025 +0200"
  },
  "message": "[gdb/cli] Clear line buffer on ^C\n\nGdb has the ability to gather input over several lines [1], for instance this:\n...\n(gdb) print 1\n$1 \u003d 1\n(gdb)\n...\ncan also be typed as:\n...\n(gdb) print\\\n 1\n$2 \u003d 1\n(gdb)\n...\n\nFurthermore, if we type a command but change our mind, we can abort using ^C\nand start over using a fresh gdb prompt [2]:\n...\n(gdb) print 1❌️ Quit\n(gdb) echo 1\\n\n1\n(gdb)\n...\n\nNow say we type a multi-line command but abort it, we get:\n...\n(gdb) print\\\n 1❌️ Quit\n(gdb) echo 1\\n\n❌️ Undefined command: \"printecho\".  Try \"help\".\n(gdb)\n...\n\nUsing \"set trace-commands on\", we can see what happened:\n...\n+printecho 1\\n\n..\n\nGdb has prepended the first line of the cancelled multi-line command to the\nfollowing command.\n\nFix this by clearing current_ui-\u003eline_buffer on catching a gdb_exception in\nstart_event_loop.\n\nTested on x86_64-linux.\n\nApproved-By: Andrew Burgess \u003caburgess@redhat.com\u003e\n\nPR cli/33063\nBug: https://sourceware.org/bugzilla/show_bug.cgi?id\u003d33063\n\n[1] https://sourceware.org/gdb/current/onlinedocs/gdb.html/Output.html\n[2] https://sourceware.org/gdb/current/onlinedocs/gdb.html/Quitting-GDB.html\n",
  "tree_diff": [
    {
      "type": "modify",
      "old_id": "1806ca0310d961fc8ad1365681ae3b1c20c97c24",
      "old_mode": 33188,
      "old_path": "gdb/main.c",
      "new_id": "bb8ddc37c010bbdfc9ccb2c4dd3c21522d1e3001",
      "new_mode": 33188,
      "new_path": "gdb/main.c"
    },
    {
      "type": "modify",
      "old_id": "af228dc43c3a463ca3a75df63f831baa5dfee520",
      "old_mode": 33188,
      "old_path": "gdb/testsuite/gdb.base/command-line-input.exp",
      "new_id": "da559130d617b68296081f6e6e0bbbf695e95122",
      "new_mode": 33188,
      "new_path": "gdb/testsuite/gdb.base/command-line-input.exp"
    }
  ]
}
