)]}'
{
  "commit": "18c4b05e40ebf5537f7171fadb2fdff86149faa3",
  "tree": "48c46f29096818fb211e6fdd9b8d48cc627352be",
  "parents": [
    "eb5903a8e268ac4615f9f96a8254b0b72f585e07"
  ],
  "author": {
    "name": "Tom de Vries",
    "email": "tdevries@suse.de",
    "time": "Sat Sep 28 08:35:02 2024 +0200"
  },
  "committer": {
    "name": "Tom de Vries",
    "email": "tdevries@suse.de",
    "time": "Sat Sep 28 08:35:02 2024 +0200"
  },
  "message": "[gdb/symtab] Dump m_all_parents_map for verbose debug dwarf-read\n\n[ This is based on \"[gdb/symtab] Add parent_map::dump\" [1]. ]\n\nWhen building the cooked index, gdb builds up a parent map.\n\nThis map is currently only visible at user level through the effect of using\nit, but it\u0027s useful to be able to inspect it as well.\n\nAdd dumping of this parent map for \"set debug dwarf-read 2\".\n\nAs example, take test-case gdb.dwarf2/enum-type-c++.exp with target board\ndebug-types.\n\nThe parent map looks like:\n...\n$ gdb -q -batch \\\n    -iex \"maint set worker-threads 0\" \\\n    -iex \"set debug dwarf-read 2\" \\\n    outputs/gdb.dwarf2/enum-type-c++/enum-type-c++\n  ...\n[dwarf-read] print_stats: Final m_all_parents_map:\nmap start:\n  0x0000000000000000 0x0\n  0x0000000000000037 0x20f27d30 (0x36: ec)\n  0x0000000000000051 0x0\n  0x000000000000008b 0x20f27dc0 (0x8a: A)\n  0x00000000000000a6 0x0\n...\n\nThere\u0027s no parent entry at address 0xd6, which is part of what causes this:\n...\n(gdb) FAIL: gdb.dwarf2/enum-type-c++.exp: val1 has a parent\n...\n\nWith the series containing the proposed fix applied [2], we get instead:\n...\n[dwarf-read] print_stats: Final m_all_parents_map:\nmap start:\n  0x0000000000000000 0x0\n  0x0000000000000026 0x7e0bdc0 (0x25: ns)\n  0x0000000000000036 0x0\n  0x0000000000000037 0x7e0bdf0 (0x36: ns::ec)\n  0x0000000000000051 0x0\n  0x000000000000007f 0x7e0be80 (0x7e: ns)\n  0x000000000000008a 0x0\n  0x000000000000008b 0x7e0beb0 (0x8a: ns::A)\n  0x00000000000000a6 0x0\n  0x00000000000000cc 0x7e0bf10 (0xcb: ns)\n  0x00000000000000d4 0x7e0bf40 (0xd3: ns::A)\n  0x00000000000000dc 0x7e0bf10 (0xcb: ns)\n  0x00000000000000dd 0x7e0bf40 (0xd3: ns::A)\n  0x00000000000000f6 0x0\n...\nand find at 0xd6 parent ns::A.\n\nTested on x86_64-linux.\n\nApproved-By: Tom Tromey \u003ctom@tromey.com\u003e\n\n[1] https://sourceware.org/pipermail/gdb-patches/2023-October/202883.html\n[2] https://sourceware.org/pipermail/gdb-patches/2024-September/211958.html\n",
  "tree_diff": [
    {
      "type": "modify",
      "old_id": "b9a0f77d5d0b8f5a791e36598e1f3236bbf89b2c",
      "old_mode": 33188,
      "old_path": "gdb/addrmap.c",
      "new_id": "696a7dc1b2af13cd4d23205936a76d1bb3daf126",
      "new_mode": 33188,
      "new_path": "gdb/addrmap.c"
    },
    {
      "type": "modify",
      "old_id": "abd1ee3d95f64f9290dc5f8b0ae371aa58d23c49",
      "old_mode": 33188,
      "old_path": "gdb/addrmap.h",
      "new_id": "85d46452c2a06be36e746e336d5ed5b63f577abd",
      "new_mode": 33188,
      "new_path": "gdb/addrmap.h"
    },
    {
      "type": "modify",
      "old_id": "5307d4df45b74c93f51eb2e4d9a4de1d291152ff",
      "old_mode": 33188,
      "old_path": "gdb/dwarf2/parent-map.h",
      "new_id": "6cff548a2a71f251332795a3e99262df4bb8c12d",
      "new_mode": 33188,
      "new_path": "gdb/dwarf2/parent-map.h"
    },
    {
      "type": "modify",
      "old_id": "193a52ef6e07d54b061058f9d0733f6a19f9905d",
      "old_mode": 33188,
      "old_path": "gdb/dwarf2/read.c",
      "new_id": "749e39df1756bf03a468f5a24489e8ba14afec42",
      "new_mode": 33188,
      "new_path": "gdb/dwarf2/read.c"
    }
  ]
}
