)]}'
{
  "commit": "06e967dbc9b75a4a3c1b15b54360cf1abbf9c2bd",
  "tree": "6e4a4137a7b51c19937e94038188b55abf29ccc3",
  "parents": [
    "2d4c39a885d4d12325d0a9be9e014e75a295fb25"
  ],
  "author": {
    "name": "Tom de Vries",
    "email": "tdevries@suse.de",
    "time": "Tue Apr 16 15:53:47 2024 +0200"
  },
  "committer": {
    "name": "Tom de Vries",
    "email": "tdevries@suse.de",
    "time": "Tue Apr 16 15:53:47 2024 +0200"
  },
  "message": "[gdb/python] Throw MemoryError in inferior.read_memory if malloc fails\n\nPR python/31631 reports a gdb internal error when doing:\n...\n(gdb) python gdb.selected_inferior().read_memory (0, 0xffffffffffffffff)\nutils.c:709: internal-error: virtual memory exhausted.\nA problem internal to GDB has been detected,\nfurther debugging may prove unreliable.\n...\n\nFix this by throwing a python MemoryError, such that we have instead:\n...\n(gdb) python gdb.selected_inferior().read_memory (0, 0xffffffffffffffff)\nPython Exception \u003cclass \u0027MemoryError\u0027\u003e:\nError occurred in Python.\n(gdb)\n...\n\nLikewise for DAP.\n\nTested on x86_64-linux.\n\nBug: https://sourceware.org/bugzilla/show_bug.cgi?id\u003d31631\n",
  "tree_diff": [
    {
      "type": "modify",
      "old_id": "dd62b0e7ba6937c67cb99742b4e50e0de5a47ab5",
      "old_mode": 33188,
      "old_path": "gdb/python/lib/gdb/dap/memory.py",
      "new_id": "4aa499633ec8c0e39fd2b89fe7ed7720123985b2",
      "new_mode": 33188,
      "new_path": "gdb/python/lib/gdb/dap/memory.py"
    },
    {
      "type": "modify",
      "old_id": "795ac655ddd5748bad9cb29254026b54da364170",
      "old_mode": 33188,
      "old_path": "gdb/python/py-inferior.c",
      "new_id": "a1042ee72ac733091f7572bc04b072546d3c1519",
      "new_mode": 33188,
      "new_path": "gdb/python/py-inferior.c"
    },
    {
      "type": "modify",
      "old_id": "2e911f4dc773e8df36a3f4c8c2bb32ee4ad2bcd6",
      "old_mode": 33188,
      "old_path": "gdb/testsuite/gdb.dap/memory.exp",
      "new_id": "4e2e361289aeca36f2c1696f7ec294a47d0688be",
      "new_mode": 33188,
      "new_path": "gdb/testsuite/gdb.dap/memory.exp"
    },
    {
      "type": "modify",
      "old_id": "c14f2d2796ced6a0a71d489f028bf11687bd76f7",
      "old_mode": 33188,
      "old_path": "gdb/testsuite/gdb.python/py-inferior.exp",
      "new_id": "4c19e259159ee694154a00428a157cf8080fb270",
      "new_mode": 33188,
      "new_path": "gdb/testsuite/gdb.python/py-inferior.exp"
    }
  ]
}
