)]}'
{
  "commit": "387f97a1b24e968e06dd62f91a26eb0a883fff58",
  "tree": "ea5848b00e4877045e232d8e9b5331dd0c4a6e48",
  "parents": [
    "db856d41004301b3a56438efd957ef5cabb91530"
  ],
  "author": {
    "name": "Felix Willgerodt",
    "email": "felix.willgerodt@intel.com",
    "time": "Tue Aug 20 09:38:16 2024 +0200"
  },
  "committer": {
    "name": "Felix Willgerodt",
    "email": "felix.willgerodt@intel.com",
    "time": "Mon Aug 26 09:06:42 2024 +0200"
  },
  "message": "gdb, btrace: Fix clang build\n\nSimon pointed out to me that there are some failures when building with clang,\nthat were caused by my commit\n\ncommit d894edfcc40e63be9b6efa0950c1752f249f16e5\nAuthor: Felix Willgerodt \u003cfelix.willgerodt@intel.com\u003e\nDate:   Mon Feb 18 13:49:25 2019 +0100\n\n    btrace: Introduce auxiliary instructions.\n\nThe errors are:\n\n  CXX    btrace.o\ngdb/btrace.c:1203:11: error: suggest braces around initialization of subobject [-Werror,-Wmissing-braces]\n 1203 |   return {(CORE_ADDR) insn.ip, (gdb_byte) insn.size,\n      |           ^~~~~~~~~~~~~~~~~~~\n      |           {                  }\ngdb/btrace.c:1218:21: error: suggest braces around initialization of subobject [-Werror,-Wmissing-braces]\n 1218 |   btrace_insn insn {btinfo-\u003eaux_data.size () - 1, 0,\n      |                     ^~~~~~~~~~~~~~~~~~~~~~~~~~~~\n      |                     {                           }\ngdb/btrace.c:1323:34: error: variable \u0027bfun\u0027 is uninitialized when used here [-Werror,-Wuninitialized]\n 1323 |             handle_pt_aux_insn (btinfo, bfun, *ptw_string, pc);\n      |                                         ^~~~\ngdb/btrace.c:1236:35: note: initialize the variable \u0027bfun\u0027 to silence this warning\n 1236 |       struct btrace_function *bfun;\n      |                                   ^\n      |                                    \u003d nullptr\n3 errors generated.\nmake[1]: *** [Makefile:1961: btrace.o] Error 1\n\nThis fixes those errors and switches two casts to C++ casts while we\nare at it.\n\nApproved-By: Simon Marchi \u003csimon.marchi@efficios.com\u003e\n",
  "tree_diff": [
    {
      "type": "modify",
      "old_id": "95ff27cc4fe24d0544f5ab61ba8b79a97132f13c",
      "old_mode": 33188,
      "old_path": "gdb/btrace.c",
      "new_id": "ff9612dd6649bf20e6314303480501cbe751a8d4",
      "new_mode": 33188,
      "new_path": "gdb/btrace.c"
    }
  ]
}
