)]}'
{
  "commit": "5f21c7aae2040f3463d1ff56a4b0bcdbba34832d",
  "tree": "c3faa26bc16f1e82ea3df7af5c41cf12035ee397",
  "parents": [
    "ffaebc199ed7b1f7e539c938e8b234d2a4ad9df9"
  ],
  "author": {
    "name": "Andrew Burgess",
    "email": "aburgess@redhat.com",
    "time": "Thu Apr 21 11:16:18 2022 +0100"
  },
  "committer": {
    "name": "Andrew Burgess",
    "email": "aburgess@redhat.com",
    "time": "Thu Apr 21 17:25:46 2022 +0100"
  },
  "message": "gdb: fix \u0027remote show FOO-packet\u0027 aliases\n\nThe following behaviour was observed in GDB:\n\n  (gdb) show remote X-packet\n  Support for the `p\u0027 packet is auto-detected, currently unknown.\n\nNote the message mentions the \u0027p\u0027 packet.  This is a regression since\nthis commit:\n\n  commit 8579fd136a614985bd27f20539c7bb7c5a51287d\n  Date:   Mon Nov 8 14:58:46 2021 +0000\n\n      gdb/gdbsupport: make xstrprintf and xstrvprintf return a unique_ptr\n\nBefore this commit the behaviour was:\n\n  (gdb) show remote X-packet\n  Support for the `X\u0027 packet is auto-detected, currently unknown.\n\nThe problem was caused by a failed attempt to ensure that some\nallocated strings were deleted when GDB exits.  The code in the above\ncommit attempted to make use of \u0027static\u0027 to solve this problem,\nhowever, the solution was just wrong.\n\nIn this new commit I instead allocate a static vector into which all\nthe allocated strings are stored, this ensures the strings are\nreleased when GDB exits (which makes output from tools like valgrind\ncleaner), but each string within the vector can be unique, which fixes\nthe regression.\n",
  "tree_diff": [
    {
      "type": "modify",
      "old_id": "75d6bf3919d01cede8dd1d4c4830fb9053f7cb0c",
      "old_mode": 33188,
      "old_path": "gdb/remote.c",
      "new_id": "562cc586f2bfe2d764a64fb228a1260888461ae6",
      "new_mode": 33188,
      "new_path": "gdb/remote.c"
    },
    {
      "type": "modify",
      "old_id": "1f0869433f2da8708dd74be231d1706e084e9614",
      "old_mode": 33188,
      "old_path": "gdb/testsuite/gdb.base/remote.exp",
      "new_id": "579dcd40e5c18e02814c0ef24948c3e6d0d88a41",
      "new_mode": 33188,
      "new_path": "gdb/testsuite/gdb.base/remote.exp"
    }
  ]
}
