)]}'
{
  "commit": "9c1f84c9b46c1442649077d340224fa05ced63e3",
  "tree": "517b4e2727754d8fa99e6d8bec96df3f6a30a85f",
  "parents": [
    "a048980c4eb93f8a965b4addc7134e8a527874a2"
  ],
  "author": {
    "name": "Tom de Vries",
    "email": "tdevries@suse.de",
    "time": "Fri May 02 22:10:53 2025 +0200"
  },
  "committer": {
    "name": "Tom de Vries",
    "email": "tdevries@suse.de",
    "time": "Fri May 02 22:10:53 2025 +0200"
  },
  "message": "[gdbsupport] Reimplement phex and phex_nz as templates\n\nGdbsupport functions phex and phex_nz have a parameter sizeof_l:\n...\nextern const char *phex (ULONGEST l, int sizeof_l);\nextern const char *phex_nz (ULONGEST l, int sizeof_l);\n...\nand a lot of calls use:\n...\n  phex (l, sizeof (l))\n...\n\nMake this easier by reimplementing the functions as a template, allowing us to\nsimply write:\n...\n  phex (l)\n...\n\nSimplify existing code using:\n...\n$ find gdb* -type f \\\n    | xargs sed -i \u0027s/phex (\\([^,]*\\), sizeof (\\1))/phex (\\1)/\u0027\n$ find gdb* -type f \\\n    | xargs sed -i \u0027s/phex_nz (\\([^,]*\\), sizeof (\\1))/phex_nz (\\1)/\u0027\n...\nand manually review:\n...\n$ find gdb* -type f | xargs grep \"phex (.*, sizeof.*)\"\n$ find gdb* -type f | xargs grep \"phex_nz (.*, sizeof.*)\"\n...\n\nTested on x86_64-linux.\n\nApproved-By: Tom Tromey \u003ctom@tromey.com\u003e\n",
  "tree_diff": [
    {
      "type": "modify",
      "old_id": "b6cdcf03072ecf13c0d1ffff59c7607a0deb5251",
      "old_mode": 33188,
      "old_path": "gdb/aarch64-linux-tdep.c",
      "new_id": "a194ac809c23b5c9bb975d132631b55c6be99493",
      "new_mode": 33188,
      "new_path": "gdb/aarch64-linux-tdep.c"
    },
    {
      "type": "modify",
      "old_id": "bf5b5d3bcf62eb05bcf189535bfa251039e7ff62",
      "old_mode": 33188,
      "old_path": "gdb/aarch64-tdep.c",
      "new_id": "8d54e59f332a76e1ae768ba7e12b765b24054f27",
      "new_mode": 33188,
      "new_path": "gdb/aarch64-tdep.c"
    },
    {
      "type": "modify",
      "old_id": "23e505180b980b24efcd6285ed84af2196fcf4f2",
      "old_mode": 33188,
      "old_path": "gdb/breakpoint.c",
      "new_id": "f44ac457b22bc1a3c3c33d08e8ed076edcaff112",
      "new_mode": 33188,
      "new_path": "gdb/breakpoint.c"
    },
    {
      "type": "modify",
      "old_id": "51dafeda34fe2732020ff117b5047adec690df86",
      "old_mode": 33188,
      "old_path": "gdb/bsd-uthread.c",
      "new_id": "341aea98fb773990fa55b18dcde21dcea19b4322",
      "new_mode": 33188,
      "new_path": "gdb/bsd-uthread.c"
    },
    {
      "type": "modify",
      "old_id": "0eb248fd676837d6f6508add602afb088300bda5",
      "old_mode": 33188,
      "old_path": "gdb/dwarf2/read.c",
      "new_id": "951f9d26e4b419b5e775deda1185bc8b421e5428",
      "new_mode": 33188,
      "new_path": "gdb/dwarf2/read.c"
    },
    {
      "type": "modify",
      "old_id": "13258c46234bc4f31b8efe9b220742acd9233cb4",
      "old_mode": 33188,
      "old_path": "gdb/ravenscar-thread.c",
      "new_id": "45205a0028a8e1a3f23cf6b79e0b448be0d411a0",
      "new_mode": 33188,
      "new_path": "gdb/ravenscar-thread.c"
    },
    {
      "type": "modify",
      "old_id": "73dc426b2e87dbd08d3f0dcfda7369ebfe321afd",
      "old_mode": 33188,
      "old_path": "gdb/remote.c",
      "new_id": "1c49cdf0fc0a9750c7cf537434857e86e57ddda7",
      "new_mode": 33188,
      "new_path": "gdb/remote.c"
    },
    {
      "type": "modify",
      "old_id": "458c4ba205ff2f30b467b4d39957a59a60dcd2ef",
      "old_mode": 33188,
      "old_path": "gdb/solib-svr4.c",
      "new_id": "9f56d861354bdcb765a821f1f2f1584a87d46096",
      "new_mode": 33188,
      "new_path": "gdb/solib-svr4.c"
    },
    {
      "type": "modify",
      "old_id": "c2b5e3b711f4f89ce4153c41ff75c1b92687e3df",
      "old_mode": 33188,
      "old_path": "gdb/tracefile-tfile.c",
      "new_id": "5f8b338df4cc8757e47282ecf437dd3dd1daa49d",
      "new_mode": 33188,
      "new_path": "gdb/tracefile-tfile.c"
    },
    {
      "type": "modify",
      "old_id": "a2f1a750a44289ba90cd220bca4738d101f49fa7",
      "old_mode": 33188,
      "old_path": "gdb/tracepoint.c",
      "new_id": "b43146816847f9d145c9b62fea2147db27eb4265",
      "new_mode": 33188,
      "new_path": "gdb/tracepoint.c"
    },
    {
      "type": "modify",
      "old_id": "4b1f4b2afbc27440e460811f07a250dc299f7af8",
      "old_mode": 33188,
      "old_path": "gdbserver/server.cc",
      "new_id": "ab69400f97b98fa2f706918e262168b79628fd64",
      "new_mode": 33188,
      "new_path": "gdbserver/server.cc"
    },
    {
      "type": "modify",
      "old_id": "4838b39da4392823e2f8440463ac4392fe429816",
      "old_mode": 33188,
      "old_path": "gdbserver/target.cc",
      "new_id": "e812785d39709eee593497048f809ac3b86fa6b6",
      "new_mode": 33188,
      "new_path": "gdbserver/target.cc"
    },
    {
      "type": "modify",
      "old_id": "715cc6344c497a9d8ea16e664a5ceb1b2c2863a4",
      "old_mode": 33188,
      "old_path": "gdbserver/tracepoint.cc",
      "new_id": "b308c821e8fbf08fe7cfd40f8f77a4439a22e717",
      "new_mode": 33188,
      "new_path": "gdbserver/tracepoint.cc"
    },
    {
      "type": "modify",
      "old_id": "092fe47f8e81d3b0f4ac006aac20f1a44367e71b",
      "old_mode": 33188,
      "old_path": "gdbserver/utils.cc",
      "new_id": "a86405e0a6a6d29daf803c027f9a308540b312c4",
      "new_mode": 33188,
      "new_path": "gdbserver/utils.cc"
    },
    {
      "type": "modify",
      "old_id": "84a7485362bacecfcdae59211062004e5e8705b8",
      "old_mode": 33188,
      "old_path": "gdbsupport/print-utils.cc",
      "new_id": "a798713b2484e0015a6a91f7a874741264431774",
      "new_mode": 33188,
      "new_path": "gdbsupport/print-utils.cc"
    },
    {
      "type": "modify",
      "old_id": "e50d96fc7f92b4b9d66caf832533ae5d3ff739f6",
      "old_mode": 33188,
      "old_path": "gdbsupport/print-utils.h",
      "new_id": "dc5011c8c2fef032e47bbe869a0b507274eaa2d9",
      "new_mode": 33188,
      "new_path": "gdbsupport/print-utils.h"
    }
  ]
}
