)]}'
{
  "commit": "af5300fe24bf2f4e032d639a5396a16c1762b77b",
  "tree": "acb82164c5b42fd2c38930ab2b61dc9eb64e322b",
  "parents": [
    "d91c67e8730354c43fae86fa98fe593925882365"
  ],
  "author": {
    "name": "Tom de Vries",
    "email": "tdevries@suse.de",
    "time": "Tue Dec 07 07:35:10 2021 +0100"
  },
  "committer": {
    "name": "Tom de Vries",
    "email": "tdevries@suse.de",
    "time": "Tue Dec 07 07:35:10 2021 +0100"
  },
  "message": "[gdb/ada] Fix assert in ada_is_unconstrained_packed_array_type\n\nOn openSUSE Leap 42.3, with system compiler gcc 4.8.5 I run into:\n...\n(gdb) print u_one_two_three^M\nsrc/gdb/gdbtypes.h:1050: internal-error: field: \\\n Assertion `idx \u003e\u003d 0 \u0026\u0026 idx \u003c num_fields ()\u0027 failed.^M\n...\n\nWe run into trouble while doing this in\nada_is_unconstrained_packed_array_type:\n...\n1953          return TYPE_FIELD_BITSIZE (type, 0) \u003e 0;\n...\nwhich tries to get field 0 from a type without fields:\n...\n(gdb) p type-\u003enum_fields ()\n$6 \u003d 0\n...\nwhich is the case because the type is a typedef:\n...\n(gdb) p type-\u003ecode ()\n$7 \u003d TYPE_CODE_TYPEDEF\n...\n\nFix this by using the type referenced by the typedef instead.\n\nTested on x86_64-linux.\n\nBug: https://sourceware.org/bugzilla/show_bug.cgi?id\u003d28323\n",
  "tree_diff": [
    {
      "type": "modify",
      "old_id": "f8ba05b427653f169911c8930b996bde2f0e7bd3",
      "old_mode": 33188,
      "old_path": "gdb/ada-lang.c",
      "new_id": "336d950ec1d23755e9a3285b3c4562f0c5d11110",
      "new_mode": 33188,
      "new_path": "gdb/ada-lang.c"
    }
  ]
}
