)]}'
{
  "commit": "0907b3ea044e1593b1a4ff6c0dda6ca9d3643a0b",
  "tree": "fa57360b94a1e665219f313f045b30512baa45b9",
  "parents": [
    "9479e1deba8c30f7756f1d1d8a219d6ee0e570d9"
  ],
  "author": {
    "name": "Tom de Vries",
    "email": "tdevries@suse.de",
    "time": "Fri Mar 07 09:25:33 2025 +0100"
  },
  "committer": {
    "name": "Tom de Vries",
    "email": "tdevries@suse.de",
    "time": "Fri Mar 07 09:25:33 2025 +0100"
  },
  "message": "[gdb/tdep] Refactor amd64_get_unused_input_int_reg, part 1\n\nWhile reading amd64_get_unused_input_int_reg, I noticed that it first asserts,\nthen throws an internal_error if no unused register can be found.\n\nLooking at the documentation of gdbarch_displaced_step_copy_insn, it seems\nthat a failure can be indicated less abruptly, by returning a nullptr.\n\nFix this by:\n- returning -1 in case of failure to find an unused register in\n  amd64_get_unused_input_int_reg, and\n- propagating this to amd64_displaced_step_copy_insn.\n\nTested on x86_64-linux.\n",
  "tree_diff": [
    {
      "type": "modify",
      "old_id": "3c75f2fa22db77facf0cc8b2f00ba9093d719abb",
      "old_mode": 33188,
      "old_path": "gdb/amd64-tdep.c",
      "new_id": "542455e4cd7c0e9a378c0875e3614423b8b384a7",
      "new_mode": 33188,
      "new_path": "gdb/amd64-tdep.c"
    }
  ]
}
