)]}'
{
  "commit": "f2f866c6ca80e3f98deae2f2faabddab70a2163b",
  "tree": "27a898f9a185be6e8a158084f87b5460e43236af",
  "parents": [
    "2bebc9ee2708086cec6c8dfd256c91184357ed2f"
  ],
  "author": {
    "name": "Andrew Burgess",
    "email": "aburgess@redhat.com",
    "time": "Fri Feb 23 11:05:58 2024 +0000"
  },
  "committer": {
    "name": "Andrew Burgess",
    "email": "aburgess@redhat.com",
    "time": "Sat Sep 07 20:28:58 2024 +0100"
  },
  "message": "gdb: apply escaping to filenames in \u0027complete\u0027 results\n\nBuilding on the mechanism added in the previous commit(s), this commit\napplies escaping to filenames in the \u0027complete\u0027 command output.\nConsider a file: /tmp/xxx/aa\"bb -- that is a filename that contains a\ndouble quote, currently the \u0027complete\u0027 command output looks like this:\n\n  (gdb) complete file /tmp/xxx/a\n  file /tmp/xxx/aa\"bb\n\nNotice that the double quote in the output is not escaped.  If we\npassed this same output back to GDB then the double quote will be\ntreated as the start of a string.\n\nAfter this commit then the output looks like this:\n\n  (gdb) complete file /tmp/xxx/a\n  file /tmp/xxx/aa\\\"bb\n\nThe double quote is now escaped.  If we feed this output back to GDB\nthen GDB will treat this as a single filename that contains a double\nquote, exactly what we want.\n\nTo achieve this I\u0027ve done a little refactoring, splitting out the core\nof gdb_completer_file_name_quote, and then added a new call from the\nfilename_match_formatter function.\n\nThere are updates to the tests to cover this new functionality.\n",
  "tree_diff": [
    {
      "type": "modify",
      "old_id": "d9123e6e74a31603fad01584738a862e7890cda6",
      "old_mode": 33188,
      "old_path": "gdb/completer.c",
      "new_id": "7435532954f9c236ff9f767335a5097bbeadf255",
      "new_mode": 33188,
      "new_path": "gdb/completer.c"
    },
    {
      "type": "modify",
      "old_id": "39f616b45ba28eaea800478949b9244485a03017",
      "old_mode": 33188,
      "old_path": "gdb/testsuite/gdb.base/filename-completion.exp",
      "new_id": "c852b56f86a35c7f1ca3e7f8a54d16f30940c36d",
      "new_mode": 33188,
      "new_path": "gdb/testsuite/gdb.base/filename-completion.exp"
    }
  ]
}
