)]}'
{
  "commit": "3b7a39661610038aad32563069b10fb2cfc55fab",
  "tree": "173331e4e885eb8ae19a50250840be22104593d2",
  "parents": [
    "901a676279e9d2c8bacdb9e9fded73582746e3bc"
  ],
  "author": {
    "name": "Andreas Arnez",
    "email": "arnez@linux.vnet.ibm.com",
    "time": "Wed Jan 14 12:01:38 2015 +0000"
  },
  "committer": {
    "name": "Joel Brobecker",
    "email": "brobecker@adacore.com",
    "time": "Fri Feb 20 06:58:02 2015 +0400"
  },
  "message": "Fix internal error when core file section is too big\n\nAs reported in PR 17808, a test case with a forged (invalid) core file\ncan crash GDB with an assertion failure.  In that particular case the\nprstatus of an i386 core file looks like that from an AMD64 core file.\nConsequently the respective regset supply function i386_supply_gregset\nis invoked with a larger buffer than usual.  But i386_supply_gregset\nasserts a specific buffer size, and this assertion fails.\n\nThe patch relaxes all buffer size assertions in regset supply\nfunctions such that they merely check for a sufficiently large buffer.\nFor consistency the regset collect functions are adjusted as well.\n\ngdb/ChangeLog:\n\n\tPR corefiles/17808:\n\t* gdbarch.sh (iterate_over_regset_sections_cb): Document this\n\tfunction type, particularly its SIZE parameter.\n\t* gdbarch.h: Regenerate.\n\t* amd64-tdep.c (amd64_supply_fpregset): In gdb_assert, compare\n\tactual against required size using \"\u003e\u003d\" instead of \"\u003d\u003d\".\n\t(amd64_collect_fpregset): Likewise.\n\t* i386-tdep.c (i386_supply_gregset): Likewise.\n\t(i386_collect_gregset): Likewise.\n\t(i386_supply_fpregset): Likewise.\n\t(i386_collect_fpregset): Likewise.\n\t* mips-linux-tdep.c (mips_supply_gregset_wrapper): Likewise.\n\t(mips_fill_gregset_wrapper): Likewise.\n\t(mips_supply_fpregset_wrapper): Likewise.\n\t(mips_fill_fpregset_wrapper): Likewise.\n\t(mips64_supply_gregset_wrapper): Likewise.\n\t(mips64_fill_gregset_wrapper): Likewise.\n\t(mips64_supply_fpregset_wrapper): Likewise.\n\t(mips64_fill_fpregset_wrapper): Likewise.\n\t* mn10300-linux-tdep.c (am33_supply_gregset_method): Likewise.\n\t(am33_supply_fpregset_method): Likewise.\n\t(am33_collect_gregset_method): Likewise.\n\t(am33_collect_fpregset_method): Likewise.\n",
  "tree_diff": [
    {
      "type": "modify",
      "old_id": "4fc8c2d32e2fd10919d4e77b5bd102c8a85bbd3e",
      "old_mode": 33188,
      "old_path": "gdb/ChangeLog",
      "new_id": "ad032ba64da9200caab344044374cf042393ed63",
      "new_mode": 33188,
      "new_path": "gdb/ChangeLog"
    },
    {
      "type": "modify",
      "old_id": "fa658ded40db88afeec2312d97090d9ac1784c99",
      "old_mode": 33188,
      "old_path": "gdb/amd64-tdep.c",
      "new_id": "a661b8831b4fecf11af5a0b5de699e1901c084ee",
      "new_mode": 33188,
      "new_path": "gdb/amd64-tdep.c"
    },
    {
      "type": "modify",
      "old_id": "b2665305c9147b5924b1ae5a055ae9c21e67e911",
      "old_mode": 33188,
      "old_path": "gdb/gdbarch.h",
      "new_id": "b67d9f69d3168c3962715e5ca3fbc31987ba2e03",
      "new_mode": 33188,
      "new_path": "gdb/gdbarch.h"
    },
    {
      "type": "modify",
      "old_id": "e12b8b0c04e5d6d4924a5a181b624a2e2fb21622",
      "old_mode": 33261,
      "old_path": "gdb/gdbarch.sh",
      "new_id": "cffefc5fbf3bfc2439c216c3152a836b2ab6cc81",
      "new_mode": 33261,
      "new_path": "gdb/gdbarch.sh"
    },
    {
      "type": "modify",
      "old_id": "7d174c4ce1e82e2e635c975dde7bfe3f6d703057",
      "old_mode": 33188,
      "old_path": "gdb/i386-tdep.c",
      "new_id": "1c8842c42c1ae1b2eed68ff63c8e2b0f3cf40a95",
      "new_mode": 33188,
      "new_path": "gdb/i386-tdep.c"
    },
    {
      "type": "modify",
      "old_id": "5239c3787c08aa77dd47878e3e8c3c368087da6c",
      "old_mode": 33188,
      "old_path": "gdb/mips-linux-tdep.c",
      "new_id": "fe45dcc3bdbca8ddd6225346fa1331e5d0c7c69a",
      "new_mode": 33188,
      "new_path": "gdb/mips-linux-tdep.c"
    },
    {
      "type": "modify",
      "old_id": "d92e93d346139c438c863e58a12773631ef68819",
      "old_mode": 33188,
      "old_path": "gdb/mn10300-linux-tdep.c",
      "new_id": "9ac6c15e6d9c2a43dc4ee0e1d72b172b37b3db17",
      "new_mode": 33188,
      "new_path": "gdb/mn10300-linux-tdep.c"
    }
  ]
}
