)]}'
{
  "commit": "fab07978eca3bfcfa8ba43bce0e38f5340bffd8e",
  "tree": "a395b9920fab94d5ba67555640cf963fff6ddda1",
  "parents": [
    "a402c3ac22ec70620d19a0758f10a8d15835fb5e"
  ],
  "author": {
    "name": "Andrew Burgess",
    "email": "aburgess@redhat.com",
    "time": "Sat Jan 27 09:15:35 2024 +0000"
  },
  "committer": {
    "name": "Andrew Burgess",
    "email": "aburgess@redhat.com",
    "time": "Fri Jun 14 09:08:45 2024 +0100"
  },
  "message": "gdb/x86: move reading of cs and ds state into gdb/nat directory\n\nThis patch is part of a series that has the aim sharing the x86 Linux\ntarget description creation code between GDB and gdbserver.\n\nWithin GDB part of this process involves reading the cs and ds state\nfrom the \u0027struct user_regs_struct\u0027 using a ptrace call.\n\nThis isn\u0027t done by gdbserver, which is part of the motivation for this\nwhole series; the approach gdbserver takes is inferior to the approach\nGDB takes (gdbserver relies on reading the file being debugged, and\nextracting similar information from the file headers).\n\nThis commit moves the reading of cs and ds, which is used to figure\nout if a thread is 32-bit or 64-bit (or in x32 mode), into the gdb/nat\ndirectory so that the code can be shared with gdbserver, but at this\npoint I\u0027m not actually using the code in gdbserver, that will come\nlater.\n\nAs such there should be no user visible changes after this commit, GDB\ncontinues to do things as it did before (reading cs/ds), while\ngdbserver continues to use its own approach (which doesn\u0027t require\nreading cs/ds).\n\nApproved-By: John Baldwin \u003cjhb@FreeBSD.org\u003e\nReviewed-By: Felix Willgerodt \u003cfelix.willgerodt@intel.com\u003e\n",
  "tree_diff": [
    {
      "type": "modify",
      "old_id": "7a21c8f2c268f404d63408d88c973cdc050e37a5",
      "old_mode": 33188,
      "old_path": "gdb/nat/x86-linux.c",
      "new_id": "ad3ed3c2289e0193be90ca6b9da5af80df77d086",
      "new_mode": 33188,
      "new_path": "gdb/nat/x86-linux.c"
    },
    {
      "type": "modify",
      "old_id": "822882173f9f0bc088c41d13391f8282d44b649c",
      "old_mode": 33188,
      "old_path": "gdb/nat/x86-linux.h",
      "new_id": "15153ea277eb329fd35891afbf2b7f41ada3f01d",
      "new_mode": 33188,
      "new_path": "gdb/nat/x86-linux.h"
    },
    {
      "type": "modify",
      "old_id": "762151ff3789a69884f49908a07aefea33d175e9",
      "old_mode": 33188,
      "old_path": "gdb/x86-linux-nat.c",
      "new_id": "ed76c1760bc8a0fb581b0e2f30f76e8bd4234cba",
      "new_mode": 33188,
      "new_path": "gdb/x86-linux-nat.c"
    }
  ]
}
