)]}'
{
  "commit": "5edcbe2277db05b77ebf53f9c30b6c889a8729bc",
  "tree": "697a0de087befcf3e1bde8361d962c45960b8313",
  "parents": [
    "823384610d4275799213c5821305f8f0acdc9140"
  ],
  "author": {
    "name": "Andrew Burgess",
    "email": "aburgess@redhat.com",
    "time": "Mon Jul 24 17:35:54 2023 +0100"
  },
  "committer": {
    "name": "Andrew Burgess",
    "email": "aburgess@redhat.com",
    "time": "Fri Oct 03 13:56:46 2025 +0100"
  },
  "message": "gdb: detect when gdbserver has no default executable set\n\nThis commit extends the use of the new qExecAndArgs packet (added in\nthe previous commit) so that GDB now understands when it is connected\nto a remote server that doesn\u0027t have a default executable set.  We\ndon\u0027t do much with this information right now, other than produce more\nuseful text for \u0027show remote exec-file\u0027.\n\nHere I\u0027ve connected to a gdbserver with no default executable set,\nthis is with this patch in place:\n\n  (gdb) target extended-remote | gdbserver --multi --once -\n  (gdb) show remote exec-file\n  The remote exec-file is unset, the remote has no default executable set.\n  (gdb) file /tmp/hello.x\n  Reading symbols from /tmp/hello.x...\n  (gdb) run\n  Starting program: /tmp/hello.x\n  Running the default executable on the remote target failed; try \"set remote exec-file\"?\n  (gdb)\n\nThe important line is this one:\n\n  The remote exec-file is unset, the remote has no default executable set.\n\nWithout this patch we\u0027d get:\n\n  The remote exec-file is unset, the default remote executable will be used.\n\nThe new message is clearer that there is no default executable set on\nthe remote.\n\nIn the future I plan to make use of this additional information,\ncoupled with an understanding (via \u0027set sysroot\u0027) of when gdb and\ngdbserver share the same filesystem, to allow GDB to automatically use\nthe current executable (e.g. loaded with the \u0027file\u0027 command) as the\nremote exec-file.  But this is not part of this patch, or this patch\nseries, just future planned work.\n\nApproved-By: Tom Tromey \u003ctom@tromey.com\u003e\n",
  "tree_diff": [
    {
      "type": "modify",
      "old_id": "74300c3d206f857524c916b85cb7d0ba01d755ee",
      "old_mode": 33188,
      "old_path": "gdb/remote.c",
      "new_id": "ce6cfdc3bfbb15dd1a3f150de1727392e3a76d75",
      "new_mode": 33188,
      "new_path": "gdb/remote.c"
    },
    {
      "type": "modify",
      "old_id": "8828e4d6f8538cffb872bef5d5694f087b93a544",
      "old_mode": 33188,
      "old_path": "gdb/testsuite/gdb.server/fetch-exec-and-args.exp",
      "new_id": "51adc68af99456ffe0015ddf07d44242f7b08b94",
      "new_mode": 33188,
      "new_path": "gdb/testsuite/gdb.server/fetch-exec-and-args.exp"
    }
  ]
}
