)]}'
{
  "commit": "0ed152c5c6b3c72fc505b331ed77e08b438d643a",
  "tree": "cb349cca00859baf4f037a5ec1720dd2fb7c092f",
  "parents": [
    "dfeb912e160b3eae596a4fd92cc14d0f5e90ee68"
  ],
  "author": {
    "name": "Tom de Vries",
    "email": "tdevries@suse.de",
    "time": "Wed Jul 17 17:04:02 2024 +0200"
  },
  "committer": {
    "name": "Tom de Vries",
    "email": "tdevries@suse.de",
    "time": "Wed Jul 17 17:04:02 2024 +0200"
  },
  "message": "[gdb/testsuite] Fix gdb.arch/arm-pseudo-unwind.exp with unix/mthumb\n\nWhen running test-case gdb.arch/arm-pseudo-unwind.exp with target board\nunix/mthumb, we run into:\n...\n(gdb) continue^M\nContinuing.^M\n^M\nProgram received signal SIGILL, Illegal instruction.^M\n0x00400f38 in ?? ()^M\n(gdb) FAIL: $exp: continue to breakpoint: continue to callee\n...\n\nThe test-case attempts to force arm-pseudo-unwind.c to be compiled in arm mode\nusing additional_flags\u003d-marm, but that\u0027s overridden by using target board\nunix/mthumb.\n\nThis causes function main to be in thumb mode, and consequently function\ncaller (which is called from main) is is executed as if it\u0027s in thumb mode,\nwhile it\u0027s actually in arm mode.\n\nFix this by adding an intermediate function caller_trampoline in\narm-pseudo-unwind.c, and hardcoding it to arm mode using\n__attribute__((target(\"arm\"))).\n\nLikewise for test-case gdb.arch/arm-pseudo-unwind-legacy.exp.\n\nTested on arm-linux.\n\nApproved-By: Luis Machado \u003cluis.machado@arm.com\u003e\n",
  "tree_diff": [
    {
      "type": "modify",
      "old_id": "49b0553ade40c77ab6503154564ab8f305ba23e9",
      "old_mode": 33188,
      "old_path": "gdb/testsuite/gdb.arch/arm-pseudo-unwind-legacy.c",
      "new_id": "adda4b8b29878a84453c0a61edffa59774878b98",
      "new_mode": 33188,
      "new_path": "gdb/testsuite/gdb.arch/arm-pseudo-unwind-legacy.c"
    },
    {
      "type": "modify",
      "old_id": "49b0553ade40c77ab6503154564ab8f305ba23e9",
      "old_mode": 33188,
      "old_path": "gdb/testsuite/gdb.arch/arm-pseudo-unwind.c",
      "new_id": "adda4b8b29878a84453c0a61edffa59774878b98",
      "new_mode": 33188,
      "new_path": "gdb/testsuite/gdb.arch/arm-pseudo-unwind.c"
    }
  ]
}
