)]}'
{
  "commit": "f8b786e2eddbbad9e9aa724038feb1ffcf7b2bd9",
  "tree": "adbc59d32cba79bf01a87e17fcd4b4d4b7363048",
  "parents": [
    "2c3c88db125df810ff0209d4a1fbc49161b3d9cf"
  ],
  "author": {
    "name": "Youling Tang",
    "email": "tangyouling@loongson.cn",
    "time": "Tue May 10 22:07:04 2022 +0100"
  },
  "committer": {
    "name": "Maciej W. Rozycki",
    "email": "macro@orcam.me.uk",
    "time": "Tue May 10 22:07:04 2022 +0100"
  },
  "message": "gdb: mips: Fix large-frame.exp test case failure\n\n$ objdump -d outputs/gdb.base/large-frame/large-frame-O2\n0000000120000b20 \u003cfunc\u003e:\n   120000b20:   67bdbff0        daddiu  sp,sp,-16400\n   120000b24:   ffbc4000        sd      gp,16384(sp)\n   120000b28:   3c1c0002        lui     gp,0x2\n   120000b2c:   679c8210        daddiu  gp,gp,-32240\n   120000b30:   0399e02d        daddu   gp,gp,t9\n   120000b34:   df998058        ld      t9,-32680(gp)\n   120000b38:   ffbf4008        sd      ra,16392(sp)\n   120000b3c:   0411ffd8        bal     120000aa0 \u003cblah\u003e\n...\n\nThe disassembly of the above func function shows that we may use\ninstructions such as daddiu/daddu, so add \"daddiu $gp,$gp,n\",\n\"daddu $gp,$gp,$t9\" and \"daddu $gp,$t9,$gp\" to the mips32_scan_prologue\nfunction to fix the large-frame.exp test case.\n\nBefore applying the patch:\n\n backtrace\n #0  blah (a\u003d0xfffffee220) at .../gdb/testsuite/gdb.base/large-frame-1.c:24\n #1  0x0000000120000b44 in func ()\n Backtrace stopped: frame did not save the PC\n (gdb) FAIL: gdb.base/large-frame.exp: optimize\u003d-O2: backtrace\n\n # of expected passes            5\n # of unexpected failures        1\n\nAfter applying the patch:\n\n # of expected passes            6\n\nSigned-off-by: Youling Tang \u003ctangyouling@loongson.cn\u003e\n",
  "tree_diff": [
    {
      "type": "modify",
      "old_id": "ffed8723dce6d2132e06d975d1d64eb378c91ac8",
      "old_mode": 33188,
      "old_path": "gdb/mips-tdep.c",
      "new_id": "805c5beba594ce8896712e02c8c7359343f32764",
      "new_mode": 33188,
      "new_path": "gdb/mips-tdep.c"
    }
  ]
}
