)]}'
{
  "commit": "041de3d73aa121f2ff0c077213598963bfb34b79",
  "tree": "5d6224170af2d32f340a3c28f06f30cff3bd39d5",
  "parents": [
    "2acccd0a59af7a04e341d31f68b370486d5fc474"
  ],
  "author": {
    "name": "Bruno Larsen",
    "email": "blarsen@redhat.com",
    "time": "Wed Oct 05 14:22:56 2022 +0200"
  },
  "committer": {
    "name": "Bruno Larsen",
    "email": "blarsen@redhat.com",
    "time": "Thu Nov 10 14:51:49 2022 +0100"
  },
  "message": "gdb/c++: Improve error messages in overload resolution\n\nWhen resolving overloaded functions, GDB relies on knowing relationships\nbetween types, i.e. if a type inherits from another. However, some\ncompilers may not add complete information for given types as a way to\nreduce unnecessary debug information. In these cases, GDB would just say\nthat it couldn\u0027t resolve the method or function, with no extra\ninformation.\n\nThe problem is that sometimes the user may not know that the type\ninformation is incomplete, and may just assume that there is a bug in\nGDB. To improve the user experience, we attempt to detect if the\noverload match failed because of an incomplete type, and warn the user\nof this.\n\nThis commit also adds a testcase confirming that the message is only\ntriggered in the correct scenario. This test was not developed as an\nexpansion of gdb.cp/overload.cc because it needed the dwarf assembler,\nand porting all of overload.cc seemed unnecessary.\n\nApproved-By: Tom Tromey \u003ctom@tromey.com\u003e\n",
  "tree_diff": [
    {
      "type": "add",
      "old_id": "0000000000000000000000000000000000000000",
      "old_mode": 0,
      "old_path": "/dev/null",
      "new_id": "a7b85c92bbe01f64c46e03e8777c29f32074d16c",
      "new_mode": 33188,
      "new_path": "gdb/testsuite/gdb.cp/incomplete-type-overload.cc"
    },
    {
      "type": "add",
      "old_id": "0000000000000000000000000000000000000000",
      "old_mode": 0,
      "old_path": "/dev/null",
      "new_id": "96ed25dd5d14bb75659bced87be6bef4795dae32",
      "new_mode": 33188,
      "new_path": "gdb/testsuite/gdb.cp/incomplete-type-overload.exp"
    },
    {
      "type": "modify",
      "old_id": "ecfceed199ab5aded982bdc33c97359daeb384dc",
      "old_mode": 33188,
      "old_path": "gdb/valops.c",
      "new_id": "2b789cd76f4115dc27b191f567ab576adbcb2ca9",
      "new_mode": 33188,
      "new_path": "gdb/valops.c"
    }
  ]
}
