)]}'
{
  "commit": "9d66d71cdddec9075c6832054ba07e5469aeca84",
  "tree": "a137e284c20c419ddcbe06866350361f434b6213",
  "parents": [
    "2fee907cfd3dd9d8a8c0df7aa8ec29e7d2d1575e"
  ],
  "author": {
    "name": "Tom de Vries",
    "email": "tdevries@suse.de",
    "time": "Wed May 31 07:39:31 2023 +0200"
  },
  "committer": {
    "name": "Tom de Vries",
    "email": "tdevries@suse.de",
    "time": "Wed May 31 07:39:31 2023 +0200"
  },
  "message": "[gdb/tui] Fix fingerprint for cmd-only layout\n\nI added a cmd-only layout:\n...\n(gdb) tui new-layout cmd cmd 1\n...\nand set it:\n...\n(gdb) layout cmd\n...\nwhich gave me the expect result: only the cmd window in the screen.\n\nHowever, after going back to layout src:\n...\n(gdb) layout src\n...\nI got a source window with only one line in it, and the cmd window taking most\nof the screen.\n\nI traced this back to tui_set_layout, where for both the old and the new\nlayout the fingerprint of the cmd window in the layout is taken.  If the\nfingerprint is the same, an effort will be done to preserve the command\nwindow size.\n\nThe fingerprint is \"VC\" for both the old (cmd) and new (src) layouts, which\nexplains the behaviour.\n\nI think this is essentially a bug in the finger print calculation, and it\nshould be \"C\" for the cmd layout.\n\nFix this by not adding a V or H in the fingerprint if the list size is one.\n\nTested on x86_64-linux.\n\nReviewed-By: Tom Tromey \u003ctom@tromey.com\u003e\n",
  "tree_diff": [
    {
      "type": "modify",
      "old_id": "eaebac88ce1a1a4a055a4b9e71ca387018a5f3ab",
      "old_mode": 33188,
      "old_path": "gdb/testsuite/gdb.tui/new-layout.exp",
      "new_id": "3085cc36232569454a8c2927e79f719e55126013",
      "new_mode": 33188,
      "new_path": "gdb/testsuite/gdb.tui/new-layout.exp"
    },
    {
      "type": "modify",
      "old_id": "50c568fb7d7cc74adcf16550d8892aab7766e034",
      "old_mode": 33188,
      "old_path": "gdb/tui/tui-layout.c",
      "new_id": "159445dc52079df5678d8dedf306dbb7b139fb96",
      "new_mode": 33188,
      "new_path": "gdb/tui/tui-layout.c"
    },
    {
      "type": "modify",
      "old_id": "ff354fb7c2fc7a9dddcee4d1a7d69a82ee6bd953",
      "old_mode": 33188,
      "old_path": "gdb/tui/tui-layout.h",
      "new_id": "a6d34851bef4a47e28977cc87d53fbddec15121b",
      "new_mode": 33188,
      "new_path": "gdb/tui/tui-layout.h"
    }
  ]
}
