)]}'
{
  "commit": "752e419362eae28f7fcf6347b333347e472bc10f",
  "tree": "5a21be53a93c82e0015d7df3254725645737d936",
  "parents": [
    "fbc95f1e11facf233e89a9c2b4dde06b9aaf4b86"
  ],
  "author": {
    "name": "Tom de Vries",
    "email": "tdevries@suse.de",
    "time": "Tue Jul 06 10:58:43 2021 +0200"
  },
  "committer": {
    "name": "Tom de Vries",
    "email": "tdevries@suse.de",
    "time": "Tue Jul 06 10:58:43 2021 +0200"
  },
  "message": "[gdb/symtab] Fix skipping of import of C++ CU\n\nTom Tromey observed that when changing the language in\ngdb.dwarf2/imported-unit-bp.exp from c to c++, the test failed.\n\nThis is due to this code in process_imported_unit_die:\n...\n      /* We\u0027re importing a C++ compilation unit with tag DW_TAG_compile_unit\n         into another compilation unit, at root level.  Regard this as a hint,\n         and ignore it.  */\n      if (die-\u003eparent \u0026\u0026 die-\u003eparent-\u003eparent \u003d\u003d NULL\n          \u0026\u0026 per_cu-\u003eunit_type \u003d\u003d DW_UT_compile\n          \u0026\u0026 per_cu-\u003elang \u003d\u003d language_cplus)\n        return;\n...\nwhich should have a partial symtabs counterpart.\n\nAdd the missing counterpart in process_psymtab_comp_unit.\n\nTested on x86_64-linux (openSUSE Leap 15.2), no regressions for config:\n- using default gcc version 7.5.0\n  (with 5 unexpected FAILs)\n- gcc 10.3.0 and target board\n  unix/-flto/-O0/-flto-partition\u003dnone/-ffat-lto-objects\n  (with 1000 unexpected FAILs)\n\ngdb/ChangeLog:\n\n2021-07-06  Tom de Vries  \u003ctdevries@suse.de\u003e\n\n\t* dwarf2/read.c (scan_partial_symbols): Skip top-level imports of\n\tc++ CU.\n\t* testsuite/gdb.dwarf2/imported-unit-bp.exp: Moved to ...\n\t* testsuite/gdb.dwarf2/imported-unit-bp.exp.tcl: ... here.\n\t* testsuite/gdb.dwarf2/imported-unit-bp-c++.exp: New test.\n\t* testsuite/gdb.dwarf2/imported-unit-bp-c.exp: New test.\n\t* testsuite/gdb.dwarf2/imported-unit.exp: Update.\n",
  "tree_diff": [
    {
      "type": "modify",
      "old_id": "f7a6ccc6d9ef89198e3f3d127367cafb7e18ed33",
      "old_mode": 33188,
      "old_path": "gdb/ChangeLog",
      "new_id": "f1071a71d2e09c79ce21ffaf2a5ffae9cd88803e",
      "new_mode": 33188,
      "new_path": "gdb/ChangeLog"
    },
    {
      "type": "modify",
      "old_id": "fe82175990e438c23b5f42f094095f19abf996fa",
      "old_mode": 33188,
      "old_path": "gdb/dwarf2/read.c",
      "new_id": "a13a53ebc46f58b130a443a1164b5d2b2ceee411",
      "new_mode": 33188,
      "new_path": "gdb/dwarf2/read.c"
    },
    {
      "type": "add",
      "old_id": "0000000000000000000000000000000000000000",
      "old_mode": 0,
      "old_path": "/dev/null",
      "new_id": "c376113d5e0555b7ce040285a57a437800ea887b",
      "new_mode": 33188,
      "new_path": "gdb/testsuite/gdb.dwarf2/imported-unit-bp-c++.exp"
    },
    {
      "type": "add",
      "old_id": "0000000000000000000000000000000000000000",
      "old_mode": 0,
      "old_path": "/dev/null",
      "new_id": "6f9c3ad8f4164e883ef927bd44c81408f3c3dbb3",
      "new_mode": 33188,
      "new_path": "gdb/testsuite/gdb.dwarf2/imported-unit-bp-c.exp"
    },
    {
      "type": "rename",
      "old_id": "b6a0f25d2ce5885986be8b2ef5a4dd8f6f211a9c",
      "old_mode": 33188,
      "old_path": "gdb/testsuite/gdb.dwarf2/imported-unit-bp.exp",
      "new_id": "83bca7d8e7a14806e19325d07df37665397dd44f",
      "new_mode": 33188,
      "new_path": "gdb/testsuite/gdb.dwarf2/imported-unit-bp.exp.tcl",
      "score": 97
    },
    {
      "type": "modify",
      "old_id": "2bd72a60f40e5e075ae3c958b1b432d65a963651",
      "old_mode": 33188,
      "old_path": "gdb/testsuite/gdb.dwarf2/imported-unit.exp",
      "new_id": "efce3a03a2ea3867bddb2e04b9d31c4e88cee53f",
      "new_mode": 33188,
      "new_path": "gdb/testsuite/gdb.dwarf2/imported-unit.exp"
    }
  ]
}
