)]}'
{
  "commit": "f0cfbf6ceda8396291d736858cfd713cc4a0e0da",
  "tree": "77a7e0db3cde8d52504f42fb69e4463fa863d49d",
  "parents": [
    "995cf2f8feb57aa564eb4ec1191e3290affc574b"
  ],
  "author": {
    "name": "Matthieu Longo",
    "email": "matthieu.longo@arm.com",
    "time": "Thu Feb 26 17:20:20 2026 +0000"
  },
  "committer": {
    "name": "Matthieu Longo",
    "email": "matthieu.longo@arm.com",
    "time": "Tue Mar 10 12:43:12 2026 +0000"
  },
  "message": "gdb/python: allow ref_ptr\u003cT, Policy\u003e::new_reference to accept subclasses of T\n\nWhen ref_ptr\u003cT,Policy\u003e::new_reference() is specialized for \u0027PyObject\u0027\n(i.e. gdbpy_ref\u003c\u003e), it currently requires the argument type to be exactly\n\u0027PyObject *\u0027. As a result, pointers to subclasses of \u0027PyObject\u0027 must be\nexplicitly cast before being passed, making call sites unnecessarily\nverbose.\n\nThis patch makes ref_ptr\u003cT,Policy\u003e::new_reference() a template method\nthat accepts both T and subclasses of T, performing the cast to \u0027T *\u0027\ninternally when needed. This removes redundant casts at call sites\nwithout changing behavior.\n\nApproved-By: Tom Tromey \u003ctom@tromey.com\u003e\n",
  "tree_diff": [
    {
      "type": "modify",
      "old_id": "263819e12926ccb093badddbc672b7dffe83ebbf",
      "old_mode": 33188,
      "old_path": "gdb/python/py-block.c",
      "new_id": "4d77242ca0df7264023c5acda0fd638f4936ee49",
      "new_mode": 33188,
      "new_path": "gdb/python/py-block.c"
    },
    {
      "type": "modify",
      "old_id": "76e3da9f62074a52e22ae8a7bba9339866a5a5fc",
      "old_mode": 33188,
      "old_path": "gdb/python/py-inferior.c",
      "new_id": "ed28ccf3c0712ee4115657815b3982ca70364ce3",
      "new_mode": 33188,
      "new_path": "gdb/python/py-inferior.c"
    },
    {
      "type": "modify",
      "old_id": "4352ab3e7c097cda772180b33b33e8355ecc1ff5",
      "old_mode": 33188,
      "old_path": "gdbsupport/gdb_ref_ptr.h",
      "new_id": "0eb654324c6ae735f9db636c85a185718f4abe21",
      "new_mode": 33188,
      "new_path": "gdbsupport/gdb_ref_ptr.h"
    }
  ]
}
