)]}'
{
  "commit": "8b0cba92b2f897a07c38623cba2eb4289cda1eda",
  "tree": "2f0d8a22aa00286b07e0c2f8d882c76abf989861",
  "parents": [
    "19bcbe810d8c49eb05324624c0af72091d38c4a7"
  ],
  "author": {
    "name": "Andrew Burgess",
    "email": "aburgess@redhat.com",
    "time": "Thu Apr 16 17:55:27 2026 +0200"
  },
  "committer": {
    "name": "Andrew Burgess",
    "email": "aburgess@redhat.com",
    "time": "Fri Apr 17 11:30:17 2026 +0100"
  },
  "message": "gdb/testsuite: fix skip-tree.exp test for PowerPC\n\nThe gdb.base/skip-tree.exp test was added in commit:\n\n  commit 5ed98c177f9a2381fe5c6ab873d05f1e5dcb8f7f\n  Date:   Wed Feb 4 20:31:31 2026 +0000\n\n      gdb: introduce \u0027**\u0027 for skip globs\n\nThis test currently fails on PowerPC due to architectural differences\nin function return handling.\n\nOn PowerPC64 ELFv2, calls to external functions are followed by a\n`nop` instruction that serves as a placeholder for TOC pointer\nrestoration. Since this `nop` typically has no DWARF line entry,\n`finish` reports the call line instead of the next line.\n\nThis issue was reported here:\n\n  https://inbox.sourceware.org/gdb-patches/20260415055144.2729164-1-abhay@linux.ibm.com\n\nThe fix proposed there was to add a PowerPC specific check so that the\ntest would send a `next` command after using `finish` to advance to\nthe expected source line.\n\nThis commit actually takes a more general approach.  After calling\n`finish` we check which line we ended up on.  If it was the caller\nline then we send GDB a `next` to move to the expected line.  If we\narrive directly at the next line, then no `next` is needed.\n\nI\u0027ve tested this change on x86-64, where no `next` is needed, and\nPowerPC, where `next` is now used as required to get the test\npassing.\n\nTo simplify the pattern matching in the exp file, I tweaked the source\nfile slightly.  But adding a call to a dummy \u0027func5\u0027 it\u0027s now easy to\npattern match as we step through \u0027func1\u0027, \u0027func2\u0027, etc.\n\nCo-Authored-By: Abhay Kandpal \u003cabhay@linux.ibm.com\u003e\n",
  "tree_diff": [
    {
      "type": "modify",
      "old_id": "4a254b860b14a91e6f5e72721b69cfe736eceb62",
      "old_mode": 33188,
      "old_path": "gdb/testsuite/gdb.base/skip-tree.c",
      "new_id": "3bedc397a857199b386a7689932ab05322978945",
      "new_mode": 33188,
      "new_path": "gdb/testsuite/gdb.base/skip-tree.c"
    },
    {
      "type": "modify",
      "old_id": "dc93c4cef84046d6289b9a0cb7731280cfe6ca46",
      "old_mode": 33188,
      "old_path": "gdb/testsuite/gdb.base/skip-tree.exp",
      "new_id": "b1d42ffa87e523d7697fccfcd3306bdf0318b3bc",
      "new_mode": 33188,
      "new_path": "gdb/testsuite/gdb.base/skip-tree.exp"
    }
  ]
}
