)]}'
{
  "commit": "b655a89ff523f459f8effaf17694a7248517a99b",
  "tree": "c1543a50d0be6279fb833ff5d5c42896b2f04970",
  "parents": [
    "4d7d74c958e32e2a8aeb6794cc524d84aa180700"
  ],
  "author": {
    "name": "Pedro Alves",
    "email": "pedro@palves.net",
    "time": "Wed Aug 20 10:30:25 2025 +0100"
  },
  "committer": {
    "name": "Pedro Alves",
    "email": "pedro@palves.net",
    "time": "Tue Sep 16 12:00:38 2025 +0100"
  },
  "message": "Fix gdb.base/gcorebg.exp and --program-prefix\n\nWhen GDB is configured with --program-prefix, we see:\n\n Running /home/pedro/gdb/src/gdb/testsuite/gdb.base/gcorebg.exp ...\n FAIL: gdb.base/gcorebg.exp: detached\u003ddetached: Spawned gcore finished\n FAIL: gdb.base/gcorebg.exp: detached\u003ddetached: Core file generated by gcore\n FAIL: gdb.base/gcorebg.exp: detached\u003dstandard: Spawned gcore finished\n FAIL: gdb.base/gcorebg.exp: detached\u003dstandard: Core file generated by gcore\n\nThe problem is here (with --program-prefix\u003dprefix-), from gdb.log:\n gcore: GDB binary (/home/pedro/gdb/build-program-prefix/gdb/testsuite/../../gdb/prefix-gdb) not found\n FAIL: gdb.base/gcorebg.exp: detached\u003ddetached: Spawned gcore finished\n\nThat is gcore (the script, not the GDB command) trying to run the\ninstalled GDB:\n\nif [ ! -f \"$binary_path/@GDB_TRANSFORM_NAME@\" ]; then\n  echo \"gcore: GDB binary (${binary_path}/@GDB_TRANSFORM_NAME@) not found\"\n  exit 1\nfi\n...\n\t\"$binary_path/@GDB_TRANSFORM_NAME@\" \u003c/dev/null \\\n...\n\nWhen running the testsuite with the just-built GDB, the GDB binary is\n\u0027gdb\u0027, not @GDB_TRANSFORM_NAME@.\n\nFix this by adding a new \u0027-g gdb\" option to the \u0027gcore\u0027 script, that\nlets you override the GDB binary gcore runs, and then making\ngdb.base/gcorebg.exp pass it to gcore.  The GDB binary we\u0027re testing\nis always in the $GDB global.  This is similar to how it is already\npossible to specify GDB\u0027s data directory with an option to gcore, and\nthen gdb.base/gcorebg.exp uses it.\n\nNEWS and documentation changes included.\n\nApproved-by: Kevin Buettner \u003ckevinb@redhat.com\u003e\nChange-Id: I6c60fba8768618eeba8d8d03b131dc756b57ee78\n",
  "tree_diff": [
    {
      "type": "modify",
      "old_id": "01bd1524c7ae38e9a3c75394005a6154313598ea",
      "old_mode": 33188,
      "old_path": "gdb/NEWS",
      "new_id": "2f3a26048d88370908e9b35a57156e4628cce01b",
      "new_mode": 33188,
      "new_path": "gdb/NEWS"
    },
    {
      "type": "modify",
      "old_id": "676143be416684dc8ca076b7bb46be1afc0741f6",
      "old_mode": 33188,
      "old_path": "gdb/doc/gdb.texinfo",
      "new_id": "6b0cfec26ebad2820bf157cb158823ee39188a44",
      "new_mode": 33188,
      "new_path": "gdb/doc/gdb.texinfo"
    },
    {
      "type": "modify",
      "old_id": "2f6eb02557a8ad45a568ede6edbf5fdbf8b7658c",
      "old_mode": 33188,
      "old_path": "gdb/gcore-1.in",
      "new_id": "d733682704d0c1520280f0c6c3af64836032ab8e",
      "new_mode": 33261,
      "new_path": "gdb/gcore-1.in"
    },
    {
      "type": "modify",
      "old_id": "3e79702e2f9bd09b5ef72693c23dbd3b5e625227",
      "old_mode": 33188,
      "old_path": "gdb/testsuite/gdb.base/gcorebg.exp",
      "new_id": "fd9f06ed685b0e1e71d46daa6e99082b4bfd3a5e",
      "new_mode": 33188,
      "new_path": "gdb/testsuite/gdb.base/gcorebg.exp"
    }
  ]
}
