)]}'
{
  "commit": "625f7b1cdc771befb362370c42e32a3476abdb85",
  "tree": "a39ec69f519d1bcd69d3bc591c41b00c46ca4436",
  "parents": [
    "8b87fbe6bb5f682fef889630664884ea8e7d6444"
  ],
  "author": {
    "name": "Andrew Burgess",
    "email": "andrew.burgess@embecosm.com",
    "time": "Thu Sep 16 18:30:35 2021 +0100"
  },
  "committer": {
    "name": "Andrew Burgess",
    "email": "andrew.burgess@embecosm.com",
    "time": "Fri Oct 22 13:43:42 2021 +0100"
  },
  "message": "gdb/python: move gdb.Membuf support into a new file\n\nIn a future commit I\u0027m going to be creating gdb.Membuf objects from a\nnew file within gdb/python/py*.c.  Currently all gdb.Membuf objects\nare created directly within infpy_read_memory (as a result of calling\ngdb.Inferior.read_memory()).\n\nInitially I split out the Membuf creation code into a new function,\nand left the new function in gdb/python/py-inferior.c, however, it\nfelt a little random that the Membuf creation code should live with\nthe inferior handling code.\n\nSo, then I moved all of the Membuf related code out into a new file,\ngdb/python/py-membuf.c, the interface is gdbpy_buffer_to_membuf, which\nwraps an array of bytes into a gdb.Membuf object.\n\nMost of the code is moved directly from py-inferior.c with only minor\ntweaks to layout and replacing NULL with nullptr, hence, I\u0027ve left the\ncopyright date on py-membuf.c as 2009-2021 to match py-inferior.c.\n\nCurrently, the only user of this code is still py-inferior.c, but in\nlater commits this will change.\n\nThere should be no user visible changes after this commit.\n",
  "tree_diff": [
    {
      "type": "modify",
      "old_id": "4201f65e68dd3559ff4818263bb9ff3accfff04c",
      "old_mode": 33188,
      "old_path": "gdb/Makefile.in",
      "new_id": "ec5d332c145b75439187a31f0d638e9ba174c193",
      "new_mode": 33188,
      "new_path": "gdb/Makefile.in"
    },
    {
      "type": "modify",
      "old_id": "c8de41dd009c144bae743bb42ed16e1cf515896f",
      "old_mode": 33188,
      "old_path": "gdb/python/py-inferior.c",
      "new_id": "aec8c0f73cb5b150b328a9a44b79fad3b4ad984d",
      "new_mode": 33188,
      "new_path": "gdb/python/py-inferior.c"
    },
    {
      "type": "add",
      "old_id": "0000000000000000000000000000000000000000",
      "old_mode": 0,
      "old_path": "/dev/null",
      "new_id": "3978acec9074de5fadfa955b54945f513da092dd",
      "new_mode": 33188,
      "new_path": "gdb/python/py-membuf.c"
    },
    {
      "type": "modify",
      "old_id": "2ad3bc944a76e578665cadc048c597fd7c617a66",
      "old_mode": 33188,
      "old_path": "gdb/python/python-internal.h",
      "new_id": "24e28bc4767938501c5579708ed3e29528a29adb",
      "new_mode": 33188,
      "new_path": "gdb/python/python-internal.h"
    },
    {
      "type": "modify",
      "old_id": "5b1c295fff62960c9087a4cd9581336ae8db8e6d",
      "old_mode": 33188,
      "old_path": "gdb/python/python.c",
      "new_id": "c81814c557be84990a1ce101294a9b19e211957b",
      "new_mode": 33188,
      "new_path": "gdb/python/python.c"
    }
  ]
}
