)]}'
{
  "commit": "b750766ac9652def5307925b8fc5c215fbcef8df",
  "tree": "5921a5a91ec3e2ac41b7388001f139c6ad47103b",
  "parents": [
    "4206d69e96ac401cf2975f37bf4e4d3a3c838313"
  ],
  "author": {
    "name": "Lancelot SIX",
    "email": "lancelot.six@amd.com",
    "time": "Thu Apr 14 10:41:48 2022 +0100"
  },
  "committer": {
    "name": "Lancelot SIX",
    "email": "lancelot.six@amd.com",
    "time": "Wed Apr 20 20:50:12 2022 +0100"
  },
  "message": "gdb/testsuite: Introduce and use gdb_spawn_attach_cmdline\n\nFollowing a7e6a19e87f3d719ea23c65b580a6d9bca4ccab3 \"gdb: testsuite: add\nnew gdb_attach to check \"attach\" command\", this commit proposes to\nintroduce the gdb_spawn_attach_cmdline helper and use it in\ngdb.base/attach.exp.\n\nThis helper starts GDB and adds the \"--pid\u003d$PID\" argument.\n\nAlso note that both the original and new implementation use\ngdb_spawn_with_cmdline_opts, which in the end uses default_gdb_spawn.\nThis makes sure that we use $INTERNAL_GDBFLAGS, which by default already\ncontain \"-iex \\\"set height 0\\\" -iex \\\"set width 0\\\"\".  To avoid\nrepetition of those arguments, gdb_spawn_attach_cmdline does not repeat\nthose arguments.\n\nTo maintain a behavior similat to what gdb.base/attach.exp used to do,\ngdb_spawn_attach_cmdline keeps the -quiet flag.\n\nTested on x86_64-gnu-linux\n\nChange-Id: I1fdcdb71c86d9c5d34bb28fc86fac68bcec37358\n",
  "tree_diff": [
    {
      "type": "modify",
      "old_id": "d01060aba533f6a562b288a23889a59a69a81d08",
      "old_mode": 33188,
      "old_path": "gdb/testsuite/gdb.base/attach.exp",
      "new_id": "7b661e99a1c86ba779286d97173f8abe91705586",
      "new_mode": 33188,
      "new_path": "gdb/testsuite/gdb.base/attach.exp"
    },
    {
      "type": "modify",
      "old_id": "10f78736629e0790b3d0e9a474130a834fde446e",
      "old_mode": 33188,
      "old_path": "gdb/testsuite/lib/gdb.exp",
      "new_id": "0c00d599ca52b73845639c4dce6ce16d1b49e5d7",
      "new_mode": 33188,
      "new_path": "gdb/testsuite/lib/gdb.exp"
    }
  ]
}
