)]}'
{
  "commit": "c5c3b90970f899bbc4e19a2401f1bc8d5b01e1d3",
  "tree": "4a912b495cd538c870efd7b4eba4eb371f4a8083",
  "parents": [
    "b39807cc93bb85c9654b39a5c17f9d8de940429e"
  ],
  "author": {
    "name": "Simon Marchi",
    "email": "simon.marchi@polymtl.ca",
    "time": "Wed Jul 17 12:10:57 2024 -0400"
  },
  "committer": {
    "name": "Simon Marchi",
    "email": "simon.marchi@polymtl.ca",
    "time": "Fri Jul 19 16:30:52 2024 -0400"
  },
  "message": "gdb-gdb.py: strip typedefs in intrusive_list printer assertion\n\nWhen debugging gdb itself and trying to print a intrusive_list that has\nmore than one element, I get:\n\n    File \"/home/simark/build/binutils-gdb-all-targets/gdb/gdb-gdb.py\", line 365, in _children_generator\n      node_ptr \u003d self._as_node_ptr(elem_ptr)\n                 ^^^^^^^^^^^^^^^^^^^^^^^^^^^\n    File \"/home/simark/build/binutils-gdb-all-targets/gdb/gdb-gdb.py\", line 345, in _as_node_ptr\n      assert elem_ptr.type.code \u003d\u003d gdb.TYPE_CODE_PTR\n             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n    AssertionError\n\nThis is because node_ptr is a typedef\n(intrusive_list_base_iterator::pointer).  Add a call to strip_typedefs\nto get to the real type.\n\nEnhance gdb.gdb/python-helper.exp with a test that would have caught\nthis bug.\n\nChange-Id: I3eaca8de5ed06d05756ed979332b6a431e15b700\nApproved-By: Andrew Burgess \u003caburgess@redhat.com\u003e\n",
  "tree_diff": [
    {
      "type": "modify",
      "old_id": "b5a7fa4f39034dd74fee7ebf349c9a14f827d102",
      "old_mode": 33188,
      "old_path": "gdb/gdb-gdb.py.in",
      "new_id": "7cab6941f02cc8cd835b9d9671da4aaab370ebd5",
      "new_mode": 33188,
      "new_path": "gdb/gdb-gdb.py.in"
    },
    {
      "type": "modify",
      "old_id": "8a8afb12257bc14d3b2944758d45d7a3d6f574d0",
      "old_mode": 33188,
      "old_path": "gdb/testsuite/gdb.gdb/python-helper.exp",
      "new_id": "4589edc388fdc946067314787d108fa6398adf4b",
      "new_mode": 33188,
      "new_path": "gdb/testsuite/gdb.gdb/python-helper.exp"
    }
  ]
}
