)]}'
{
  "commit": "5ddd0d7eefbb683a09e233b7dfb4a48a04b72b8e",
  "tree": "a623bf07ab57275150b5808d88529f7e756895a6",
  "parents": [
    "258c81da3c13971dc7667f30baf506ececd2cc0e"
  ],
  "author": {
    "name": "Andrew Burgess",
    "email": "aburgess@redhat.com",
    "time": "Mon Sep 09 17:33:54 2024 +0100"
  },
  "committer": {
    "name": "Andrew Burgess",
    "email": "aburgess@redhat.com",
    "time": "Tue Sep 10 14:07:11 2024 +0100"
  },
  "message": "gdb/python: avoid depending on the curses library\n\nThe commit:\n\n  commit 29c70787112e01cd52b53bf14bdcacb0a11e0725\n  Date:   Sun Sep 8 07:46:09 2024 +0200\n\n      [gdb/testsuite] Handle missing curses in gdb.python/py-missing-debug.exp\n\nHighlighted that in some cases we might be running on a system with an\nolder version of Python (earlier than 3.7), and on a system for which\nthe curses library has not been installed.\n\nIn these circumstances the gdb.missing_debug module will not load as\nit uses curses to provide isalnum() and isascii() functions.\n\nTo avoid this problem I propose that we copy the isalnum() and\nisascii() from the Python curses library.  These functions are\nbasically trivial and removing the curses dependency means GDB will\nwork in more cases without increasing its dependencies.\n\nI did consider keeping the uses of curses and only having the function\ndefinitions be a fallback for when the curses library failed to load,\nbut this felt like overkill.  The function definitions are both tiny\nand I think \"obvious\" given their specifications, so I figure we might\nas well just use our own definitions if they are not available as\nbuiltin methods on the str class.\n\nFor testing I changed this line:\n\n  if sys.version_info \u003e\u003d (3, 7):\n\nto\n\n  if sys.version_info \u003e\u003d (3, 7) and False:\n\nthen reran gdb.python/py-missing-debug.exp, there were no failures.\n\nApproved-By: Tom de Vries \u003ctdevries@suse.de\u003e\n",
  "tree_diff": [
    {
      "type": "modify",
      "old_id": "6d57462c185bdd96727876bb1c2e5036c5d3f46c",
      "old_mode": 33188,
      "old_path": "gdb/python/lib/gdb/missing_debug.py",
      "new_id": "7ccc4fe496d17845c64b71fcffbc546cf1102560",
      "new_mode": 33188,
      "new_path": "gdb/python/lib/gdb/missing_debug.py"
    }
  ]
}
