)]}'
{
  "commit": "221918140b0b4a52674491d7ab4487da02d063a7",
  "tree": "4ed6d8e4e212e15687c0a4a1881c25e40b69f4a7",
  "parents": [
    "2f31f965edc0507ca53c129090652744eb76a472"
  ],
  "author": {
    "name": "Tom de Vries",
    "email": "tdevries@suse.de",
    "time": "Fri Mar 29 07:47:30 2024 +0100"
  },
  "committer": {
    "name": "Tom de Vries",
    "email": "tdevries@suse.de",
    "time": "Fri Mar 29 07:47:30 2024 +0100"
  },
  "message": "[gdb/testsuite] Add missing includes in gdb.trace/collection.c\n\nOn fedora rawhide, with test-case gdb.trace/collection.exp, I get:\n...\ngdb compile failed, collection.c: In function \u0027strings_test_func\u0027:\ncollection.c:227:13: error: implicit declaration of function \u0027malloc\u0027 \\\n  [-Wimplicit-function-declaration]\n  227 |   longloc \u003d malloc(500);\n      |             ^~~~~~\ncollection.c:1:1: note: \\\n  include \u0027\u003cstdlib.h\u003e\u0027 or provide a declaration of \u0027malloc\u0027\n  +++ |+#include \u003cstdlib.h\u003e\n    1 | /* This testcase is part of GDB, the GNU debugger.\n\ncollection.c:228:3: error: implicit declaration of function \u0027strcpy\u0027 \\\n  [-Wimplicit-function-declaration]\n  228 |   strcpy(longloc, ... );\n      |   ^~~~~~\ncollection.c:1:1: note: include \u0027\u003cstring.h\u003e\u0027 or provide a declaration of \\\n  \u0027strcpy\u0027\n  +++ |+#include \u003cstring.h\u003e\n    1 | /* This testcase is part of GDB, the GNU debugger.\ncollection.c:230:8: error: implicit declaration of function \u0027strlen\u0027 \\\n  [-Wimplicit-function-declaration]\n  230 |   i +\u003d strlen (locstr);\n      |        ^~~~~~\ncollection.c:230:8: note: include \u0027\u003cstring.h\u003e\u0027 or provide a declaration of \\\n  \u0027strlen\u0027\n...\n\nFix this by adding the missing includes.\n\nTested on aarch64-linux.\n\nApproved-By: John Baldwin \u003cjhb@FreeBSD.org\u003e\n",
  "tree_diff": [
    {
      "type": "modify",
      "old_id": "efcc2e389daadf390f9a93f5ff79735cca80c014",
      "old_mode": 33188,
      "old_path": "gdb/testsuite/gdb.trace/collection.c",
      "new_id": "8379b7d7eaf053f6060e1291e6b10bb646d12fb8",
      "new_mode": 33188,
      "new_path": "gdb/testsuite/gdb.trace/collection.c"
    }
  ]
}
