)]}'
{
  "commit": "ebc73070f4b85e4adee7d2f49cb32e2bd7b16324",
  "tree": "6e8b0774a4b884836c2b01850c051d1bc79e0ef5",
  "parents": [
    "3105b46ed1ed31de8e3cb9768ea181801fc05008"
  ],
  "author": {
    "name": "Andrew Burgess",
    "email": "aburgess@redhat.com",
    "time": "Mon Sep 30 16:01:26 2024 +0100"
  },
  "committer": {
    "name": "Andrew Burgess",
    "email": "aburgess@redhat.com",
    "time": "Mon Nov 04 16:11:51 2024 +0000"
  },
  "message": "gdb: use option framework for add-inferior and clone-inferior\n\nConvert the add-inferior and clone-inferior commands to make use of\nthe option framework.  This improves the tab completion for these\ncommands.\n\nPreviously the add-inferior command used a trick to simulate\ncompletion of -exec argument.  The command use filename completion for\neverything on the command line, thus you could do:\n\n  (gdb) add-inferior /path/to/some/fil\u003cTAB\u003e\n\nand GDB would complete the file name, even though add-inferior doesn\u0027t\nreally take a filename as an argument.  This helped a little though\nbecause, if the user did this:\n\n  (gdb) add-inferior -exec /path/to/some/fil\u003cTAB\u003e\n\nthen the file name would be completed.  However, GDB didn\u0027t really\nunderstand the options, so couldn\u0027t offer completion of the options\nthemselves.\n\nAfter this commit, the add-inferior command makes use of the recently\nadded gdb::option::filename_option_def feature.  This means that the\nuser now has full completion of the option names, and that file names\nwill still complete for the \u0027-exec\u0027 option, but will no longer\ncomplete if the \u0027-exec\u0027 option is not used.\n\nI have also converted the clone-inferior command, though this command\ndoes not use any file name options.  This command does now have proper\ncompletion of the command options.\n",
  "tree_diff": [
    {
      "type": "modify",
      "old_id": "21f37c8313c24e43e288c3e53d8a9c381ec5634b",
      "old_mode": 33188,
      "old_path": "gdb/inferior.c",
      "new_id": "67d70c5c2fb1cad10a8c99f085bee93dc7a0a25a",
      "new_mode": 33188,
      "new_path": "gdb/inferior.c"
    }
  ]
}
