)]}'
{
  "commit": "9779607aff84cad92d8800290dce4eb17c17ce12",
  "tree": "803dbb3a88feba30d4d38d3d1043ff7325d361be",
  "parents": [
    "2b8b0dca3b6b9ad40e0c11754bf2f972bd8de890"
  ],
  "author": {
    "name": "Pedro Alves",
    "email": "pedro@palves.net",
    "time": "Wed Jun 15 15:30:23 2022 +0100"
  },
  "committer": {
    "name": "Pedro Alves",
    "email": "pedro@palves.net",
    "time": "Wed Jul 13 22:29:25 2022 +0100"
  },
  "message": "Tighten gdb.threads/no-unwaited-for-left.exp regexps\n\nA WIP version of a patch\n(https://sourceware.org/pipermail/gdb-patches/2022-June/190202.html)\nresulted in a bug that went unnoticed by the testuite, like so:\n\n (gdb) PASS: gdb.threads/no-unwaited-for-left.exp: enable scheduler-locking, for main thread\n continue\n Continuing.\n [New Thread 1251861.1251861]\n No unwaited-for children left.\n (gdb) PASS: gdb.threads/no-unwaited-for-left.exp: continue stops when the main thread exits\n info threads\n   Id   Target Id                                Frame\n   3    Thread 1251861.1251863 \"no-unwaited-for\" __pthread_clockjoin_ex (threadid\u003d140737351558976, thread_return\u003d0x0, clockid\u003d\u003coptimized out\u003e, abstime\u003d\u003coptimized out\u003e, block\u003d\u003coptimized out\u003e) at pthread_join_common.c:145\n   4    Thread 1251861.1251861 \"no-unwaited-for\" \u003cunavailable\u003e in ?? ()\n\n The current thread \u003cThread ID 1\u003e has terminated.  See `help thread\u0027.\n (gdb) PASS: gdb.threads/no-unwaited-for-left.exp: only thread 3 left, main thread terminated\n\nSomehow, above, GDB re-added the zombie leader back before printing\n\"No unwaited-for children left.\".  The \"only thread 3 left, main\nthread terminated\" test should have caught this, but didn\u0027t.  That is\nbecause the test\u0027s regexp has a \".*\" after the part that matches\nthread 3.  This commit tightens that regexp to catch such a bug.  It\nalso tightens the \"only main thread left, thread 2 terminated\" test\u0027s\nregexp in the same way.\n\nChange-Id: I8744f327a0aa0e2669d1ddda88247e99b91cefff\n",
  "tree_diff": [
    {
      "type": "modify",
      "old_id": "cfeb495594d0e539e931c613b7fe87869978265e",
      "old_mode": 33188,
      "old_path": "gdb/testsuite/gdb.threads/no-unwaited-for-left.exp",
      "new_id": "6773aa46d713fbc17d32142fb60f0718db0a5aa9",
      "new_mode": 33188,
      "new_path": "gdb/testsuite/gdb.threads/no-unwaited-for-left.exp"
    }
  ]
}
