)]}'
{
  "commit": "bd036f034b750e101cd072100d54cd8ebb35b7f5",
  "tree": "d830b81a92c202d560e7390eb8d2e56413adb0ad",
  "parents": [
    "3602da6fa285d6b22d87bcc39056e919e939ef07"
  ],
  "author": {
    "name": "Andrew Burgess",
    "email": "aburgess@redhat.com",
    "time": "Thu Nov 09 14:47:34 2023 +0000"
  },
  "committer": {
    "name": "Andrew Burgess",
    "email": "aburgess@redhat.com",
    "time": "Thu Apr 24 16:45:51 2025 +0100"
  },
  "message": "gdb: move remote arg splitting and joining into gdbsupport/\n\nThis is a refactoring commit.  When passing inferior arguments to\ngdbserver we have two actions that need to be performed, splitting and\njoining.\n\nOn the GDB side, we take the inferior arguments, a single string, and\nsplit the string into a list of individual arguments.  These are then\nsent to gdbserver over the remote protocol.\n\nOn the gdbserver side we receive the list of individual arguments and\njoin these back together into a single inferior argument string.\n\nIn the next commit I plan to add some unit testing for this remote\nargument passing process.  Ideally, for unit testing, we need the code\nbeing tested to be located in some easily callable function, rather\nthan being inline at the site of use.\n\nSo in this commit I propose to move the splitting and joining logic\nout into a separate file, we can then use this within GDB and\ngdbserver when passing arguments between GDB and gdbserver, but we can\nalso call the same functions for some unit testing.\n\nIn this commit I\u0027m not adding the unit tests, they will be added next,\nso for now there should be no user visible changes after this commit.\n\nTested-By: Guinevere Larsen \u003cguinevere@redhat.com\u003e\n",
  "tree_diff": [
    {
      "type": "modify",
      "old_id": "75cc21c505b4c52d01cd2fb54c1f60d5eaaf6509",
      "old_mode": 33188,
      "old_path": "gdb/remote.c",
      "new_id": "73dc426b2e87dbd08d3f0dcfda7369ebfe321afd",
      "new_mode": 33188,
      "new_path": "gdb/remote.c"
    },
    {
      "type": "modify",
      "old_id": "0ce40ee50d1579a7cdcf73c2b0992f9ff9f15db3",
      "old_mode": 33188,
      "old_path": "gdbserver/server.cc",
      "new_id": "4b1f4b2afbc27440e460811f07a250dc299f7af8",
      "new_mode": 33188,
      "new_path": "gdbserver/server.cc"
    },
    {
      "type": "modify",
      "old_id": "79aef9522b1509095c704f3e94c16689b6dc12ad",
      "old_mode": 33188,
      "old_path": "gdbsupport/Makefile.am",
      "new_id": "20122e42cd5ad5414d5f9363ffdbdbd5da53f61e",
      "new_mode": 33188,
      "new_path": "gdbsupport/Makefile.am"
    },
    {
      "type": "modify",
      "old_id": "c2feacc9de112877d57b4539089afeed8f8a08f1",
      "old_mode": 33188,
      "old_path": "gdbsupport/Makefile.in",
      "new_id": "66b8891a6b4d65db104ca3eea3baa5fbf70fc74f",
      "new_mode": 33188,
      "new_path": "gdbsupport/Makefile.in"
    },
    {
      "type": "add",
      "old_id": "0000000000000000000000000000000000000000",
      "old_mode": 0,
      "old_path": "/dev/null",
      "new_id": "2493433cc62d15e5436e477ca262c9b663adb2ef",
      "new_mode": 33188,
      "new_path": "gdbsupport/remote-args.cc"
    },
    {
      "type": "add",
      "old_id": "0000000000000000000000000000000000000000",
      "old_mode": 0,
      "old_path": "/dev/null",
      "new_id": "93dbdc6bc96ccaac21d9d55e8d6cbba46eb3a5d1",
      "new_mode": 33188,
      "new_path": "gdbsupport/remote-args.h"
    }
  ]
}
