)]}'
{
  "commit": "c99345db064e1bd645bc08db65174bae7ac20b0e",
  "tree": "34fc84d6c2ba4d4662edc95f4851f4cdaacb9366",
  "parents": [
    "a6a73edaa83a29bd0aa1a9a649140bd3b298d98a"
  ],
  "author": {
    "name": "Tom de Vries",
    "email": "tdevries@suse.de",
    "time": "Mon Jan 20 05:41:01 2025 +0100"
  },
  "committer": {
    "name": "Tom de Vries",
    "email": "tdevries@suse.de",
    "time": "Mon Jan 20 05:41:01 2025 +0100"
  },
  "message": "[gdb/testsuite] Fix gdb.cp/non-trivial-retval.exp on arm-linux with gcc 13\n\nOn arm-linux, with target board unix/-mthumb, we get:\n...\n(gdb) PASS: gdb.cp/non-trivial-retval.exp: continue to breakpoint: Break here\np f1 (i1, i2)^M\n$1 \u003d {a \u003d -136274256}^M\n(gdb) FAIL: gdb.cp/non-trivial-retval.exp: gdb-command\u003cp f1 (i1, i2)\u003e\n...\n\nThis is not a problem with the inferior call, which works fine:\n...\n(gdb) p f1 (23, 100)\n$3 \u003d {a \u003d 123}\n...\nbut instead it\u0027s a problem with the location information:\n...\n(gdb) p i1\n$1 \u003d -136274356\n(gdb) p i2\n$2 \u003d 100\n...\nwhich tells us to find the value of i1 in (DW_OP_fbreg: -12).\n\nThe test-case passes if we drop -fvar-tracking, in which case the debug info\ntells us to find the value of i1 in (DW_OP_fbreg: -20).\n\nThis is with gcc 13.3.0 on Ubuntu 24.04.  With gcc 14.2.0 on Debian testing,\nthe code is the same, but -fvar-tracking does use the correct\n\u0027(DW_OP_fbreg: -20)\u0027.\n\nThere seems to be some bugfix in -fvar-tracking for gcc 14.\n\nWorkaround the bug by using constants 23 and 100 instead of i1 and i2 when\nusing -fvar-tracking and gcc \u003c 14.\n\nTested on arm-linux.\n\nPR testsuite/32549\nBug: https://sourceware.org/bugzilla/show_bug.cgi?id\u003d32549\n",
  "tree_diff": [
    {
      "type": "modify",
      "old_id": "6c9f7e13d2aa6034aee09735cf01b03503b5be97",
      "old_mode": 33188,
      "old_path": "gdb/testsuite/gdb.cp/non-trivial-retval.exp",
      "new_id": "64c0867368d7adb3fd8fe09a7044f19b2c98ffc5",
      "new_mode": 33188,
      "new_path": "gdb/testsuite/gdb.cp/non-trivial-retval.exp"
    }
  ]
}
