)]}'
{
  "commit": "8a2e940b8d5751805d5fab127cc7dca0ce36ff0d",
  "tree": "94b5b029b1435509f9c5974790b1bc669bf2e561",
  "parents": [
    "f74da7b8b3d6f14ba9ad21b380f743e4bdc4e952"
  ],
  "author": {
    "name": "Hannes Domani",
    "email": "ssbssa@yahoo.de",
    "time": "Mon Jun 03 17:23:26 2024 +0200"
  },
  "committer": {
    "name": "Hannes Domani",
    "email": "ssbssa@yahoo.de",
    "time": "Mon Jun 03 17:23:26 2024 +0200"
  },
  "message": "Enable call of overloaded subscript operator from python\n\nIf you try to use the overloaded subscript operator of a class\nin python, it fails like this:\n\n(gdb) py print(gdb.parse_and_eval(\u0027b\u0027)[5])\nTraceback (most recent call last):\n  File \"\u003cstring\u003e\", line 1, in \u003cmodule\u003e\ngdb.error: Cannot subscript requested type.\nError while executing Python code.\n\nThis simply checks if such an operator exists, and calls it\ninstead, making this possible:\n\n(gdb) py print(gdb.parse_and_eval(\u0027b\u0027)[5])\n102 \u0027f\u0027\n\nApproved-By: Tom Tromey \u003ctom@tromey.com\u003e\n",
  "tree_diff": [
    {
      "type": "modify",
      "old_id": "1ae26d73261f992de988aa9bb9bdb5de1f8ed77b",
      "old_mode": 33188,
      "old_path": "gdb/python/py-value.c",
      "new_id": "dada8bfb7e783e0a8603a79dcb837bde73134059",
      "new_mode": 33188,
      "new_path": "gdb/python/py-value.c"
    },
    {
      "type": "modify",
      "old_id": "2d38a26d948da2adfcaf9df343a5ac28bb27ff9b",
      "old_mode": 33188,
      "old_path": "gdb/testsuite/gdb.python/py-value-cc.cc",
      "new_id": "08b99158d027084bc44447ca73574481dd3119df",
      "new_mode": 33188,
      "new_path": "gdb/testsuite/gdb.python/py-value-cc.cc"
    },
    {
      "type": "modify",
      "old_id": "17a67e20c1cfde36d64a6976a0feff212ac0e5e9",
      "old_mode": 33188,
      "old_path": "gdb/testsuite/gdb.python/py-value-cc.exp",
      "new_id": "b096c7538a13f20de2d50557efda4122abcd11f8",
      "new_mode": 33188,
      "new_path": "gdb/testsuite/gdb.python/py-value-cc.exp"
    }
  ]
}
