)]}'
{
  "commit": "44ca285b73b68f6a8fa3e89004b510d6b7d98e91",
  "tree": "34da7c1abb366a50d835c56fcf95356932f0ceef",
  "parents": [
    "ec54dc915f42fa6f0da9902c333623f71d7aa5a3"
  ],
  "author": {
    "name": "Enze Li",
    "email": "enze.li@hotmail.com",
    "time": "Sat Jun 11 18:36:48 2022 +0800"
  },
  "committer": {
    "name": "Enze Li",
    "email": "enze.li@hotmail.com",
    "time": "Fri Jul 08 21:48:15 2022 +0800"
  },
  "message": "gdb: initialize the data_head variable to eliminate compilation warnings\n\nOn a machine with gcc 12, I get this warning:\n\n  CXX    nat/linux-btrace.o\nIn function ‘btrace_error linux_read_bts(btrace_data_bts*, btrace_target_info*, btrace_read_type)’,\n    inlined from ‘btrace_error linux_read_btrace(btrace_data*, btrace_target_info*, btrace_read_type)’ at ../gdb/nat/linux-btrace.c:935:29:\n../gdb/nat/linux-btrace.c:865:21: warning: ‘data_head’ may be used uninitialized [-Wmaybe-uninitialized]\n  865 |   pevent-\u003elast_head \u003d data_head;\n      |   ~~~~~~~~~~~~~~~~~~^~~~~~~~~~~\n../gdb/nat/linux-btrace.c: In function ‘btrace_error linux_read_btrace(btrace_data*, btrace_target_info*, btrace_read_type)’:\n../gdb/nat/linux-btrace.c:792:9: note: ‘data_head’ was declared here\n  792 |   __u64 data_head, data_tail;\n      |         ^~~~~~~~~\n\nFix this by initializing the \u0027data_head\u0027 variable.\n\nTested by rebuilding on x86_64 openSUSE Tumbleweed with gcc 12.\n",
  "tree_diff": [
    {
      "type": "modify",
      "old_id": "b0d6dcd7cf16c5e3cf0b7b720a4191cbc006abe5",
      "old_mode": 33188,
      "old_path": "gdb/nat/linux-btrace.c",
      "new_id": "c31fb5ffe43fc16fe441a5bed7e2fce28e6c6786",
      "new_mode": 33188,
      "new_path": "gdb/nat/linux-btrace.c"
    }
  ]
}
