)]}'
{
  "commit": "71f193a5c1cb02dcde6ac160cdab88e9725862bb",
  "tree": "c96408fc4d27c8759e6897e701872b5aeb084aae",
  "parents": [
    "a6924ac89d75188cd9ad3b740226db11798520dd"
  ],
  "author": {
    "name": "Andrew Burgess",
    "email": "aburgess@redhat.com",
    "time": "Thu Mar 13 16:29:07 2025 +0000"
  },
  "committer": {
    "name": "Andrew Burgess",
    "email": "aburgess@redhat.com",
    "time": "Mon Mar 17 17:32:36 2025 +0000"
  },
  "message": "gdb-add-index: add --help and --version options\n\nUpdate the gdb-add-index script to offer --help and --version options.\n\nThe script currently accepts the argument \u0027-dwarf-5\u0027 with a single\nleading \u0027-\u0027.  As two \u0027--\u0027 is more common for long options, the\npreferred argument form is now \u0027--dwarf-5\u0027, the docs have been\nupdated, and the new help text uses this form.\n\nFor backward compatibility, the old \u0027-dwarf-5\u0027 form is still\naccepted.\n\nThe new arguments are \u0027--help\u0027 or \u0027-h\u0027, but I also accept \u0027-help\u0027 for\nconsistency with \u0027-dwarf-5\u0027.  And likewise for the version argument.\n\nHandling of the gdb-add-index script is done basically the same as for\ngcore and gstack; we use config.status to create a .in file within the\nbuild directory, which is then processed by the Makefile to create the\nfinal script.\n\nThe difference with gdb-add-index is that I left the original script\nas gdb/contrib/gdb-add-index.sh rather than renaming it to something\nlike gdb/contrib/gdb-add-index-1.in, which is how gcore and gstack are\nhandled (though they are not in the contrib directory).\n\nThe reason for this is that the contrib/cc-with-tweaks.sh script looks\nfor gdb-add-index.sh within the gdb/contrib/ source directory.\n\nAs the only reason we process gdb-add-index.sh into the build\ndirectory is to support the PKGVERSION and VERSION variables, allowing\ncc-with-tweaks to continue using the unprocessed version seems\nharmless, and avoids having to change cc-with-tweaks.sh at all.\n\nI tested that I can still run tests using the cc-with-gdb-index target\nboard, and that the installed gdb-add-index script correctly shows a\nversion number when asked.\n\nBug: https://sourceware.org/bugzilla/show_bug.cgi?id\u003d32325\n\nReviewed-By: Eli Zaretskii \u003celiz@gnu.org\u003e\nApproved-By: Tom Tromey \u003ctom@tromey.com\u003e\n",
  "tree_diff": [
    {
      "type": "modify",
      "old_id": "8c5e2ff75100534027a32ce33a623fdce3d140c3",
      "old_mode": 33188,
      "old_path": "gdb/Makefile.in",
      "new_id": "8f6df5ba7b6ce2d107cf3e5ddbe9e3258f6c2d3e",
      "new_mode": 33188,
      "new_path": "gdb/Makefile.in"
    },
    {
      "type": "modify",
      "old_id": "6573950c64f4ade003e9ceeae3f51f1b98735041",
      "old_mode": 33188,
      "old_path": "gdb/NEWS",
      "new_id": "0aac7a7b13afd68a09a8eab60eccbbd8e8ca8d36",
      "new_mode": 33188,
      "new_path": "gdb/NEWS"
    },
    {
      "type": "modify",
      "old_id": "3e990064197fda54114c4d7b7642ef368a8b02d5",
      "old_mode": 33261,
      "old_path": "gdb/configure",
      "new_id": "92adb53d4d2de29332f7199c74b270640724d120",
      "new_mode": 33261,
      "new_path": "gdb/configure"
    },
    {
      "type": "modify",
      "old_id": "4604a2d8e87c0b8fbf73151723dca1db319626c8",
      "old_mode": 33188,
      "old_path": "gdb/configure.ac",
      "new_id": "eafbf5ac358becc0e2b196054def809c8e4a0798",
      "new_mode": 33188,
      "new_path": "gdb/configure.ac"
    },
    {
      "type": "modify",
      "old_id": "00a9bea5779c5310b9129e190a6b650c54ea0190",
      "old_mode": 33261,
      "old_path": "gdb/contrib/gdb-add-index.sh",
      "new_id": "4db123492f8b6669f379b830c55f2295c36fc48d",
      "new_mode": 33261,
      "new_path": "gdb/contrib/gdb-add-index.sh"
    },
    {
      "type": "modify",
      "old_id": "96d624eacac2ed5afd8feb3c1d9aa20553c5b9fa",
      "old_mode": 33188,
      "old_path": "gdb/doc/gdb.texinfo",
      "new_id": "473431011d1af0c8e4aaaefcf5028f6f9d7ff07d",
      "new_mode": 33188,
      "new_path": "gdb/doc/gdb.texinfo"
    }
  ]
}
