)]}'
{
  "commit": "cd07187f238b4d0135f2e331810cc5995a8be8f3",
  "tree": "a81107f5b54db27a2250016bb2a454d53751d821",
  "parents": [
    "d7789889b1839c3c0f64c6738b0d8517ccead049"
  ],
  "author": {
    "name": "Simon Marchi",
    "email": "simon.marchi@efficios.com",
    "time": "Tue Jan 31 10:57:21 2023 -0500"
  },
  "committer": {
    "name": "Simon Marchi",
    "email": "simon.marchi@efficios.com",
    "time": "Tue Jan 31 13:01:11 2023 -0500"
  },
  "message": "gdb: add nullptr check to cooked_index_functions::dump\n\nSince commit 7d82b08e9e0a (\"gdb/dwarf: dump cooked index contents in\ncooked_index_functions::dump\"), we see:\n\n    maint print objfiles /home/smarchi/build/binutils-gdb/gdb/testsuite/outputs/gdb.dwarf2/dw2-error/dw2-error^M\n    ^M\n    Object file /home/smarchi/build/binutils-gdb/gdb/testsuite/outputs/gdb.dwarf2/dw2-error/dw2-error:  Objfile at 0x614000005040, bfd at 0x6120000e08c0, 15 minsyms^M\n    ^M\n    Cooked index in use:^M\n    ^M\n    /home/smarchi/src/binutils-gdb/gdb/../gdbsupport/gdb-checked-static-cast.h:58: internal-error: checked_static_cast: Assertion `result !\u003d nullptr\u0027 failed.^M\n    A problem internal to GDB has been detected,^M\n    further debugging may prove unreliable.^M\n    ----- Backtrace -----^M\n    FAIL: gdb.dwarf2/dw2-error.exp: maint print objfiles /home/smarchi/build/binutils-gdb/gdb/testsuite/outputs/gdb.dwarf2/dw2-error/dw2-error (GDB internal error)\n\nThe problem is that when cooked_index_functions fails to build an index,\nper_objfile-\u003eindex_table is nullptr.  Therefore, add a nullptr check,\nlike other methods of cooked_index_functions already do.\n\nPrint the \"Cooked index in use\" message after the nullptr check, such\nthat if the cooked index failed to build, that message is not printed.\n\nChange-Id: Id67aef592e76c41b1e3bde9838a4e36cef873253\n",
  "tree_diff": [
    {
      "type": "modify",
      "old_id": "e8a3e359adaa195ae7aed85738b58a843aae2e70",
      "old_mode": 33188,
      "old_path": "gdb/dwarf2/read.c",
      "new_id": "6cee22a3faa6a66f07383ba893690980e1570649",
      "new_mode": 33188,
      "new_path": "gdb/dwarf2/read.c"
    }
  ]
}
