)]}'
{
  "commit": "3bf9e166ca76e89a7c8ed95bf8340f4d5e80e143",
  "tree": "6a048e03c755edd1b874627277d1775f1d81d37a",
  "parents": [
    "1753e2c3f6c7c5b639c816a89ba83bcbe8bebf4e"
  ],
  "author": {
    "name": "Andrew Burgess",
    "email": "aburgess@redhat.com",
    "time": "Sun Nov 05 21:02:03 2023 +0000"
  },
  "committer": {
    "name": "Andrew Burgess",
    "email": "aburgess@redhat.com",
    "time": "Fri Dec 08 17:52:00 2023 +0000"
  },
  "message": "gdbserver: allow the --debug command line option to take a value\n\nCurrently, gdbserver has the following command line options related to\ndebugging output:\n\n  --debug\n  --remote-debug\n  --event-loop-debug\n\nThis doesn\u0027t scale well.  If I want an extra debug component I need to\nadd another command line flag.\n\nThis commit changes --debug to take a list of components.\n\nThe currently supported components are: all, threads, remote, and\nevent-loop.  The \u0027threads\u0027 component represents the debug we currently\nget from the --debug option.  And if --debug is used without a\ncomponent list then the threads component is assumed as the default.\n\nCurrently the threads component actually includes a lot of output that\nis not really threads related.  In the future I\u0027d like to split this\nup into some new, separate components.  But that is not part of this\ncommit, or even this series.\n\nThe special component \u0027all\u0027 does what you\u0027d expect: enables debug\noutput from all supported components.\n\nThe component list is parsed left to write, and you can prefix a\ncomponent with \u0027-\u0027 to disable that component, so I can write:\n\n  target\u003e gdbserver --debug\u003dall,-event-loop\n\nto get debug for all components except the event-loop component.\n\nI\u0027ve removed the existing --remote-debug and --event-loop-debug\ncommand line options, these are equivalent to --debug\u003dremote and\n--debug\u003devent-loop respectively, or --debug\u003dremote,event-loop to\nenable both components.\n\nIn this commit I\u0027ve only update the command line options, in the next\ncommit I\u0027ll update the monitor commands to support a similar\ninterface.\n\nReviewed-By: Eli Zaretskii \u003celiz@gnu.org\u003e\nApproved-By: Tom Tromey \u003ctom@tromey.com\u003e\n",
  "tree_diff": [
    {
      "type": "modify",
      "old_id": "1073e38dfc6738ebe6708ab02b56b508b95e3ba4",
      "old_mode": 33188,
      "old_path": "gdb/NEWS",
      "new_id": "94d1fd8ea8d99b8e765c4e27624a82bfae384f48",
      "new_mode": 33188,
      "new_path": "gdb/NEWS"
    },
    {
      "type": "modify",
      "old_id": "d2428efdb639cfe49e405589fd328ac3e39eb4f0",
      "old_mode": 33188,
      "old_path": "gdb/doc/gdb.texinfo",
      "new_id": "6d20e4ca06df72ce80225a489e7ed32ebc285bad",
      "new_mode": 33188,
      "new_path": "gdb/doc/gdb.texinfo"
    },
    {
      "type": "modify",
      "old_id": "d73d637e0fe2136152088472b1cc732c0e0f5bee",
      "old_mode": 33188,
      "old_path": "gdbserver/server.cc",
      "new_id": "ea5d28c4c2565a2f11672dbf987207889d81f404",
      "new_mode": 33188,
      "new_path": "gdbserver/server.cc"
    }
  ]
}
