)]}'
{
  "commit": "51eebae32ab1b7bb454c90252edb877211f6fcb4",
  "tree": "3512b26b033b37713a3dcb3cdcb230c850239f7b",
  "parents": [
    "ae9adb365189f0f8c04aa5d7348c8e8a73a65f61"
  ],
  "author": {
    "name": "Tankut Baris Aktemur",
    "email": "tankut.baris.aktemur@intel.com",
    "time": "Wed Jan 12 16:06:10 2022 +0100"
  },
  "committer": {
    "name": "Tankut Baris Aktemur",
    "email": "tankut.baris.aktemur@intel.com",
    "time": "Wed Jan 12 16:19:19 2022 +0100"
  },
  "message": "gdb/testsuite: fix gdb.python/py-events.exp for finding process id\n\nWhen executed with --target_board\u003dnative-extended-gdbserver, the\ngdb.python/py-events.exp test errors out with\n\n  ERROR: tcl error sourcing /path/to/gdb/testsuite/gdb.python/py-events.exp.\n  ERROR: can\u0027t read \"process_id\": no such variable\n      while executing\n  \"lappend expected \"ptid: \\\\($process_id, $process_id, 0\\\\)\" \"address: $addr\"\"\n      (file \"/path/to/gdb/testsuite/gdb.python/py-events.exp\" line 103)\n      invoked from within\n  \"source /path/to/gdb/testsuite/gdb.python/py-events.exp\"\n      (\"uplevel\" body line 1)\n      invoked from within\n  \"uplevel #0 source /path/to/gdb/testsuite/gdb.python/py-events.exp\"\n      invoked from within\n  \"catch \"uplevel #0 source $test_file_name\"\"\n\nThere are multiple problems around this:\n\n1. The process_id variable is not initialized to a default value.\n\n2. The test attempts to find the PID of the current thread, but the\n   regexp that it uses is not tailored for the output printed by the\n   remote target.\n\n3. The test uses \"info threads\" to find the current thread PID.\n   Using the \"thread\" command instead is simpler.\n\nFix these problems.\n",
  "tree_diff": [
    {
      "type": "modify",
      "old_id": "4df012b943be734d33c8b1f64f4cbca0d4b564aa",
      "old_mode": 33188,
      "old_path": "gdb/testsuite/gdb.python/py-events.exp",
      "new_id": "2fdd2160a44d97380b0b8e2cac84599322ac1ab9",
      "new_mode": 33188,
      "new_path": "gdb/testsuite/gdb.python/py-events.exp"
    }
  ]
}
