)]}'
{
  "commit": "fcef6471ed3c07d6eac2d9e0010552994f0891aa",
  "tree": "22738befcaa3ea4f3f4533b733fe5a2ae17ca5bf",
  "parents": [
    "7ead06a8b65ef038abd65344ff6aea76054ea1d5"
  ],
  "author": {
    "name": "Simon Marchi",
    "email": "simon.marchi@polymtl.ca",
    "time": "Sun Oct 31 12:02:03 2021 -0400"
  },
  "committer": {
    "name": "Simon Marchi",
    "email": "simon.marchi@polymtl.ca",
    "time": "Thu Nov 04 15:48:57 2021 -0400"
  },
  "message": "gdb: pass/return setting setter/getter scalar values by value\n\nThe getter and setter in struct setting always receive and return values\nby const reference.  This is not necessary for scalar values (like bool\nand int), but more importantly it makes it a bit annoying to write a\ngetter, you have to use a scratch static variable or something similar\nthat you can refer to:\n\n  const bool \u0026\n  my_getter ()\n  {\n    static bool value;\n    value \u003d function_returning_bool ();\n    return value;\n  }\n\nChange the getter and setter function signatures to receive and return\nvalue by value instead of by reference, when the underlying data type is\nscalar.  This means that string-based settings will still use\nreferences, but all others will be by value.  The getter above would\nthen be re-written as:\n\n  bool\n  my_getter ()\n  {\n    return function_returning_bool ();\n  }\n\nThis is useful for a patch later in this series that defines a boolean\nsetting with a getter and a setter.\n\nChange-Id: Ieca3a2419fcdb75a6f75948b2c920b548a0af0fd\n",
  "tree_diff": [
    {
      "type": "modify",
      "old_id": "019aa629876f7a31f2c36414a7454100874f70a0",
      "old_mode": 33188,
      "old_path": "gdb/cli/cli-decode.c",
      "new_id": "667d15585752d7d8b0ccd51e4bac91f7957ab8fa",
      "new_mode": 33188,
      "new_path": "gdb/cli/cli-decode.c"
    },
    {
      "type": "modify",
      "old_id": "d6e94b97eb1eb22e7fd5171386d045b2691aa3b9",
      "old_mode": 33188,
      "old_path": "gdb/command.h",
      "new_id": "bcd3882f8116684754d4d9d1f8ec57d0a4ca1952",
      "new_mode": 33188,
      "new_path": "gdb/command.h"
    },
    {
      "type": "modify",
      "old_id": "0fb427535960903b828a83e8e23011719c7a66c7",
      "old_mode": 33188,
      "old_path": "gdb/remote.c",
      "new_id": "abf63de622a38bb8f160886734ccbc30af4397a2",
      "new_mode": 33188,
      "new_path": "gdb/remote.c"
    }
  ]
}
