)]}'
{
  "commit": "52d71bb277d56a85d53c45f3c3b212f89da2f552",
  "tree": "42811ff9ba29dc3c856ec4bdbd18c1aab774c467",
  "parents": [
    "60b1d45ab77b0ae2d5e67ace352731f6e67e1448"
  ],
  "author": {
    "name": "Simon Marchi",
    "email": "simon.marchi@polymtl.ca",
    "time": "Fri Feb 27 22:51:52 2026 -0500"
  },
  "committer": {
    "name": "Simon Marchi",
    "email": "simon.marchi@efficios.com",
    "time": "Mon Mar 09 15:00:03 2026 -0400"
  },
  "message": "gdb/ctf: check return value of ctf_type_align\n\nI tried to build the Linux kernel with -gctf.  I am not sure if the\nresult is good, because I got plenty of warnings like:\n\n    ld: warning: orphan section `.ctf\u0027 from `vmlinux.o\u0027 being placed in section `.ctf\u0027\n\nNevertheless, I tried to load it in GDB, and it didn\u0027t complain.\nHowever, when doing \"maint expand-symtabs\", I did hit this assert:\n\n    /home/simark/src/binutils-gdb/gdb/gdbtypes.c:3640: internal-error: set_type_align: Assertion `(align \u0026 (align - 1)) \u003d\u003d 0\u0027 failed.\n\nThis is because ctf_type_align returns -1 for some types, which is an\nindication of an error.  Update the code to check the return value of\nctf_type_align for errors, and emit complaints if it happens.\n\nWith this patch, if I enable the complaints, I see a bunch of messages\nlike this:\n\n    During symbol reading: ctf_type_align read_structure_type failed - Type is not a complete type.\n\nChange-Id: Ibed23e7f1490d9163b8dde1318b9e45dec2906d6\nApproved-By: Tom Tromey \u003ctom@tromey.com\u003e\n",
  "tree_diff": [
    {
      "type": "modify",
      "old_id": "c8457a70cf46ebbe9e43ecc0362d3fb453b3adbf",
      "old_mode": 33188,
      "old_path": "gdb/ctfread.c",
      "new_id": "ed4a7383427d04fd1a19e68a53e1a2be8c0ccdb1",
      "new_mode": 33188,
      "new_path": "gdb/ctfread.c"
    }
  ]
}
