)]}'
{
  "commit": "d2f8a107b79a44d64fedc843b9843704dae035a6",
  "tree": "2d4579695dc35e4ed3dcd826b5f1ba71f506fa33",
  "parents": [
    "67470b3532fd031959169740fa99550fc8a06b84"
  ],
  "author": {
    "name": "Andrew Burgess",
    "email": "aburgess@redhat.com",
    "time": "Tue Oct 08 10:34:02 2024 +0100"
  },
  "committer": {
    "name": "Andrew Burgess",
    "email": "aburgess@redhat.com",
    "time": "Thu Oct 10 17:36:21 2024 +0100"
  },
  "message": "gdb/gdbserver: change shared set_tdesc_osabi to take gdb_osabi\n\nThere is a single declaration of set_tdesc_osabi that is shared\nbetween gdbserver/ and gdb/, this declaration takes a \u0027const char *\u0027\nargument which is the string representing an osabi.\n\nThen in gdb/ we have an overload of set_tdesc_osabi which takes an\n\u0027enum gdb_osabi\u0027.\n\nIn this commit I change the shared set_tdesc_osabi to be the version\nwhich takes an \u0027enum gdb_osabi\u0027, and I remove the version which takes\na \u0027const char *\u0027.  All users of set_tdesc_osabi are updated to pass an\n\u0027enum gdb_osabi\u0027.\n\nThe features/ code, which is generated from the xml files, requires a\nnew function to be added to osabi.{c,h} which can return a string\nrepresentation of an \u0027enum gdb_osabi\u0027.  With that new function in\nplace the features/ code is regenerated.\n\nThis change is being made to support the next commit.  In the next\ncommit gdbserver will be updated to call set_tdesc_osabi in more\ncases.  The problem is that gdbserver stores the osabi as a string.\nThe issue here is that a typo in the gdbserver/ code might go\nunnoticed and result in gdbserver sending back an invalid osabi\nstring.\n\nTo fix this we want gdbserver to pass an \u0027enum gdb_osabi\u0027 to the\nset_tdesc_osabi function.  With that requirement in place it seems to\nmake sense if all calls to set_tdesc_osabi pass an \u0027enum gdb_osabi\u0027.\n\nThere should be no user visible changes after this commit.\n\nApproved-By: Luis Machado \u003cluis.machado@arm.com\u003e\nApproved-By: Simon Marchi \u003csimon.marchi@efficios.com\u003e\n",
  "tree_diff": [
    {
      "type": "modify",
      "old_id": "548b32f252f58b3f4eda83de7345f5c16c63277d",
      "old_mode": 33188,
      "old_path": "gdb/arch/amd64.c",
      "new_id": "5fc9947d489398b8833d706c5fe6d50e749d843f",
      "new_mode": 33188,
      "new_path": "gdb/arch/amd64.c"
    },
    {
      "type": "modify",
      "old_id": "49375e7c49594410bfde5f6bbc9b6dfd56cd7620",
      "old_mode": 33188,
      "old_path": "gdb/arch/i386.c",
      "new_id": "2072eae88add7ddea80afd481983cc8dcc4ff7bb",
      "new_mode": 33188,
      "new_path": "gdb/arch/i386.c"
    },
    {
      "type": "modify",
      "old_id": "680a79420708a2cad4ff4fdd7c4b8621ee34f5a5",
      "old_mode": 33188,
      "old_path": "gdb/arch/tic6x.c",
      "new_id": "b8a722b2cae05dcf03db7fc4c55226f0bebc7006",
      "new_mode": 33188,
      "new_path": "gdb/arch/tic6x.c"
    },
    {
      "type": "modify",
      "old_id": "17d30aac68f6d90abe3ca59362b70938040b52ee",
      "old_mode": 33188,
      "old_path": "gdb/features/mips-dsp-linux.c",
      "new_id": "4873037b69d3e41debbea5e63f12aac559454b34",
      "new_mode": 33188,
      "new_path": "gdb/features/mips-dsp-linux.c"
    },
    {
      "type": "modify",
      "old_id": "a43526db24ee03310855f9bd872fdc217807b16b",
      "old_mode": 33188,
      "old_path": "gdb/features/mips-linux.c",
      "new_id": "5ff2e5fb92d76e2da2194b258bfc0eee1859d5b4",
      "new_mode": 33188,
      "new_path": "gdb/features/mips-linux.c"
    },
    {
      "type": "modify",
      "old_id": "551b38f59c0fd869d00f9eaf0e296882dd8b8811",
      "old_mode": 33188,
      "old_path": "gdb/features/or1k-linux.c",
      "new_id": "85a681f89ba0d3c1343d7245794aa16d1dcdca31",
      "new_mode": 33188,
      "new_path": "gdb/features/or1k-linux.c"
    },
    {
      "type": "modify",
      "old_id": "ce57abaaaf2696181fc35e199a08cc7934253da5",
      "old_mode": 33188,
      "old_path": "gdb/features/sparc/sparc32-solaris.c",
      "new_id": "70affdbc5b5d5fd392466a5f20a27b842d37066b",
      "new_mode": 33188,
      "new_path": "gdb/features/sparc/sparc32-solaris.c"
    },
    {
      "type": "modify",
      "old_id": "92cc88cd5cf70ac452eb697d1a45cfb71bc3a2cd",
      "old_mode": 33188,
      "old_path": "gdb/features/sparc/sparc64-solaris.c",
      "new_id": "98edabe38644d29f76529ad742ab48508d3496c9",
      "new_mode": 33188,
      "new_path": "gdb/features/sparc/sparc64-solaris.c"
    },
    {
      "type": "modify",
      "old_id": "6c00228fb4ae97dfb4e5b5ad812c2f8d23aad3d5",
      "old_mode": 33188,
      "old_path": "gdb/osabi.c",
      "new_id": "236d42553ddf42f71b71db4fcbec984fb5a9d331",
      "new_mode": 33188,
      "new_path": "gdb/osabi.c"
    },
    {
      "type": "modify",
      "old_id": "9a1681db96b0bdf16944b870eb536945515aae39",
      "old_mode": 33188,
      "old_path": "gdb/osabi.h",
      "new_id": "2d828d54227594857374cf1156e8d6c603b888e5",
      "new_mode": 33188,
      "new_path": "gdb/osabi.h"
    },
    {
      "type": "modify",
      "old_id": "c165750c6c52af5a8c977463e09556fbbc445b9d",
      "old_mode": 33188,
      "old_path": "gdb/target-descriptions.c",
      "new_id": "1bd22c273a2999bcbd72bbb818b7dac3fb4d1da3",
      "new_mode": 33188,
      "new_path": "gdb/target-descriptions.c"
    },
    {
      "type": "modify",
      "old_id": "d708dbd3589ee887551fb0a1dd7759a73ade61f0",
      "old_mode": 33188,
      "old_path": "gdb/target-descriptions.h",
      "new_id": "dc83db0acf28c35f67d915d29b87549f99e416a6",
      "new_mode": 33188,
      "new_path": "gdb/target-descriptions.h"
    },
    {
      "type": "modify",
      "old_id": "7f11120c31859bcbed5adc3f2e71376461ba237c",
      "old_mode": 33188,
      "old_path": "gdbserver/tdesc.cc",
      "new_id": "d052f43c76e69c6f47f40e124b08866de3b2ba40",
      "new_mode": 33188,
      "new_path": "gdbserver/tdesc.cc"
    },
    {
      "type": "modify",
      "old_id": "fa9431b5b651cf4082574113755ff46bebfdaa06",
      "old_mode": 33188,
      "old_path": "gdbsupport/tdesc.h",
      "new_id": "c9e7603369cbf986187908c2d1f8fbe35a0dc02d",
      "new_mode": 33188,
      "new_path": "gdbsupport/tdesc.h"
    }
  ]
}
