)]}'
{
  "commit": "75337cbc1476b7eb403fe0e73c52bf080b5996c8",
  "tree": "51dd95c41ff2e84e5ff53a3800385259a9352bfd",
  "parents": [
    "e4971956eab2d3091e21918b175cb999a836c057"
  ],
  "author": {
    "name": "Tom de Vries",
    "email": "tdevries@suse.de",
    "time": "Mon Aug 01 14:00:59 2022 +0200"
  },
  "committer": {
    "name": "Tom de Vries",
    "email": "tdevries@suse.de",
    "time": "Mon Aug 01 14:00:59 2022 +0200"
  },
  "message": "[gdb/symtab] Fix .debug_aranges duplicate offset warning\n\nThe function read_addrmap_from_aranges contains code to issue a warning:\n...\n      if (!insertpair.second)\n       {\n         warning (_(\"Section .debug_aranges in %s has duplicate \"\n                    \"debug_info_offset %s, ignoring .debug_aranges.\"),\n                  objfile_name (objfile), sect_offset_str (per_cu-\u003esect_off));\n         return false;\n       }\n...\nbut the warning is in fact activated when all_comp_units has duplicate\nentries, which is very misleading.\n\nFix this by:\n- adding a test-case that should trigger the warning,\n- replacing the current implementation of the warning with an\n  assert that all_comp_units should not contain duplicates, and\n- properly re-implementing the warning, such that it is triggered\n  by the test-case.\n\nTested on x86_64-linux.\n\nBug: https://sourceware.org/bugzilla/show_bug.cgi?id\u003d29381\n",
  "tree_diff": [
    {
      "type": "modify",
      "old_id": "ae0b5d7a773e4f4aa1911c7b0c5934d40fcae464",
      "old_mode": 33188,
      "old_path": "gdb/dwarf2/read.c",
      "new_id": "8c66cb89162fdf7eeafc627511f6782f06b3db5c",
      "new_mode": 33188,
      "new_path": "gdb/dwarf2/read.c"
    },
    {
      "type": "add",
      "old_id": "0000000000000000000000000000000000000000",
      "old_mode": 0,
      "old_path": "/dev/null",
      "new_id": "7fdea62591377a15293335a362d22493d5eeb1a0",
      "new_mode": 33188,
      "new_path": "gdb/testsuite/gdb.dwarf2/debug-aranges-duplicate-offset-warning.c"
    },
    {
      "type": "add",
      "old_id": "0000000000000000000000000000000000000000",
      "old_mode": 0,
      "old_path": "/dev/null",
      "new_id": "0e0e0cb893b47622b0f05f283a9a7e9e9e2813a6",
      "new_mode": 33188,
      "new_path": "gdb/testsuite/gdb.dwarf2/debug-aranges-duplicate-offset-warning.exp"
    }
  ]
}
