)]}'
{
  "commit": "b44293099e215d6558a8d91b5eaab137218d2e27",
  "tree": "49c02e1b0f510e51b75cd425f1bbc0f4030620cb",
  "parents": [
    "edb157dfc6a7c0918aa67439c4ea6fd6161f3841"
  ],
  "author": {
    "name": "Tom de Vries",
    "email": "tdevries@suse.de",
    "time": "Fri Aug 04 15:02:43 2023 +0200"
  },
  "committer": {
    "name": "Tom de Vries",
    "email": "tdevries@suse.de",
    "time": "Fri Aug 04 15:02:43 2023 +0200"
  },
  "message": "[gdb/testsuite] Extend gdb.base/index-cache.exp\n\nThe test-case gdb.base/index-cache.exp uses only one source file, which\ncontains main.\n\nWhile doing \"file $exec\", in set_initial_language a symbol lookup of \"main\" is\ndone, causing the symtab containing main to be expanded.\n\nHandling of main is special, and a future optimization may skip the lookup and\nexpansion.\n\nReliably exercise:\n- the lookup of main, expanding the symtab containing main, by doing\n  \"ptype main\", and\n- the lookup of another symbol, expanding a symtab not containing main, by:\n  - adding another source file containing function foo, and\n  - doing \"ptype foo\".\n\nThis triggered a segfault with target board native-extended-gdbserver, filed\nas PR symtab/30712, but that seems to be fixed by a previous commit in this\nseries.\n\nTested on x86_64-linux.\n\nApproved-By: Tom Tromey \u003ctom@tromey.com\u003e\n\nBug: https://sourceware.org/bugzilla/show_bug.cgi?id\u003d30712\n",
  "tree_diff": [
    {
      "type": "add",
      "old_id": "0000000000000000000000000000000000000000",
      "old_mode": 0,
      "old_path": "/dev/null",
      "new_id": "d0c107804995da8989845b95819144c7e8dc3e7d",
      "new_mode": 33188,
      "new_path": "gdb/testsuite/gdb.base/index-cache-2.c"
    },
    {
      "type": "modify",
      "old_id": "16521df96f5de25627535946bab06f63e193bc68",
      "old_mode": 33188,
      "old_path": "gdb/testsuite/gdb.base/index-cache.c",
      "new_id": "fecba981b9194916ea0551241dac652b56bb7e7b",
      "new_mode": 33188,
      "new_path": "gdb/testsuite/gdb.base/index-cache.c"
    },
    {
      "type": "modify",
      "old_id": "9f2f53053cbad65a20611f62f3a7b395d2aa1a88",
      "old_mode": 33188,
      "old_path": "gdb/testsuite/gdb.base/index-cache.exp",
      "new_id": "c26c4f94e650e2ab88ff617a9634c2d35900a6fa",
      "new_mode": 33188,
      "new_path": "gdb/testsuite/gdb.base/index-cache.exp"
    }
  ]
}
