)]}'
{
  "commit": "709aefc274a2a7bd67a0f1a5ed09cac8974367fc",
  "tree": "1ed9e1b1002f3bc2374be443a3af59ce28fe767c",
  "parents": [
    "bd036f034b750e101cd072100d54cd8ebb35b7f5"
  ],
  "author": {
    "name": "Andrew Burgess",
    "email": "aburgess@redhat.com",
    "time": "Thu Nov 09 15:28:49 2023 +0000"
  },
  "committer": {
    "name": "Andrew Burgess",
    "email": "aburgess@redhat.com",
    "time": "Thu Apr 24 16:45:51 2025 +0100"
  },
  "message": "gdb: add remote argument passing unit tests\n\nThis commit adds some remote argument passing unit tests.  There are\nnot many tests right now -- there are known bugs in the remote\nargument passing mechanism (see PR gdb/28392) -- but some simple cases\nare covered here, and I plan to add additional tests once I\u0027ve fixed\nmore of the problems with the existing argument handling code.\n\nThe tests take an inferior argument string, this is the string that\nGDB would carry around as inferior::m_args.  This string is then split\nusing gdb::remote_args::split, this gives a vector of strings, these\nare the strings that are passed over the remote protocol.  These split\nstrings are validated as part of the test.\n\nThe split strings are then combined using gdb::remote_args::join which\ngives the inferior argument string that gdbserver will use, this is\nheld in server.cc as program_args, this joined string is then checked\nas part of the test.\n\nThere are no changes to GDB\u0027s behaviour as part of this commit, other\nthan adding the new tests which can be run with:\n\n  (gdb) maintenance selftest remote-args\n  Running selftest remote-args.\n  Ran 1 unit tests, 0 failed\n\nTested-By: Guinevere Larsen \u003cguinevere@redhat.com\u003e\n",
  "tree_diff": [
    {
      "type": "modify",
      "old_id": "68b5e56c8da863521d3d0de16531248c92d121d8",
      "old_mode": 33188,
      "old_path": "gdb/Makefile.in",
      "new_id": "a43f1c925ea248702521dac3c537711021e1e281",
      "new_mode": 33188,
      "new_path": "gdb/Makefile.in"
    },
    {
      "type": "add",
      "old_id": "0000000000000000000000000000000000000000",
      "old_mode": 0,
      "old_path": "/dev/null",
      "new_id": "70f8a39715763e3bde0e0b1bf994e6fb14eb37d0",
      "new_mode": 33188,
      "new_path": "gdb/unittests/remote-arg-selftests.c"
    }
  ]
}
