)]}'
{
  "commit": "746723ba6c1b36d6ec88de3f772a80a8d2de6e4d",
  "tree": "523610dfae2a668c1baba392ad4c8e45041e2a1b",
  "parents": [
    "7110a5d8e8523b6ecd1d97ab3936cdea03bf7b39"
  ],
  "author": {
    "name": "Tom de Vries",
    "email": "tdevries@suse.de",
    "time": "Wed Oct 13 11:06:36 2021 +0200"
  },
  "committer": {
    "name": "Tom de Vries",
    "email": "tdevries@suse.de",
    "time": "Wed Oct 13 11:06:36 2021 +0200"
  },
  "message": "[gdb/testsuite] Fix gdb.base/batch-exit-status.exp with native-gdbserver\n\nWhen running test-case gdb.base/batch-exit-status.exp with target board\nnative-gdbserver, I run into (added missing double quotes for clarity):\n...\nbuiltin_spawn $build/gdb/testsuite/../../gdb/gdb -nw -nx \\\n  -data-directory $build/gdb/testsuite/../data-directory \\\n  -iex \"set height 0\" -iex \"set width 0\" \\\n  -ex \"set auto-connect-native-target off\" \\\n  -iex \"set sysroot\" -batch \"\"^M\n: No such file or directory.^M\nPASS: gdb.base/batch-exit-status.exp: 1x: \\\n  No such file or directory: [lindex $result 2] \u003d\u003d 0\nFAIL: gdb.base/batch-exit-status.exp: 1x: \\\n  No such file or directory: [lindex $result 3] \u003d\u003d $expect_status\n...\n\nAs in commit a02a90c114c \"[gdb/testsuite] Set sysroot earlier in\nlocal-board.exp\", the problem is the use of -ex for\n\"set auto-connect-native-target off\", which makes that the last command to\nbe executed, and consequently determines the return status.\n\nFix this by using -iex instead.\n\nTested on x86_64-linux.\n",
  "tree_diff": [
    {
      "type": "modify",
      "old_id": "03bdffeb8f88aa40f81d65a7dbe4a0984595b0b5",
      "old_mode": 33188,
      "old_path": "gdb/testsuite/boards/gdbserver-base.exp",
      "new_id": "8939b8c4b1221a96590bb050e578dab2ce9526b6",
      "new_mode": 33188,
      "new_path": "gdb/testsuite/boards/gdbserver-base.exp"
    }
  ]
}
