)]}'
{
  "commit": "6ac9f5654395908f4486f732fe24fb1605a60d09",
  "tree": "8f59e3eb159092734a9b663d7c1ccf6d00e471b4",
  "parents": [
    "e957baea206253a54e16e45bbe5cec0401c2a7ed"
  ],
  "author": {
    "name": "Pedro Alves",
    "email": "pedro@palves.net",
    "time": "Mon Sep 08 20:10:22 2025 +0100"
  },
  "committer": {
    "name": "Pedro Alves",
    "email": "pedro@palves.net",
    "time": "Fri Sep 19 19:54:13 2025 +0100"
  },
  "message": "New \u0027--binary-output\u0027 command line option, fix gdb.mi/ testing on Windows\n\nMI testcases currently all fail on native Windows with:\n\n Running /c/gdb/src/gdb/testsuite/gdb.mi/mi-simplerun.exp ...\n ERROR: (timeout) GDB never initialized after 10 seconds.\n\nThis is because when GDB is started in MI mode, it prints info to the\nterminal before -iex options are processed.  I.e., before the \"maint\nset console-translation-mode binary\" command in\n\n gdb -nw -nx -q -iex \"set height 0\" -iex \"set width 0\" \\\n    -iex \"set interactive-mode on\" \\\n    -iex \"maint set console-translation-mode binary\" \\\n    -i\u003dmi\n\n... is processed.  This results in GDB printing early output with\n\\r\\r\\n, like can be easily seen by passing --debug to runtest:\n\n  expect: does \"\u003dthread-group-added,id\u003d\"i1\"\\r\\r\\n\u003dcmd-param-changed,param\u003d\"width\",value\u003d\"4294967295\"\\r\\r\\n\u003dcmd-param-changed,param\u003d\"interactive-mode\",value\u003d\"on\"\\r\\r\\n(gdb) \\r\\n\" (spawn_id exp10) match regular expression \"~\"GNU.*\\r\\n~\".*[(]gdb[)] \\r\\n$\"? Gate \"~\"GNU*\\r\\n~\"*gdb? \\r\\n\"? gate\u003dno\n\nFix this by adding a new Windows-only --binary-output command line\noption to GDB, which is processed much earlier than -iex, and making\nthe testsuite pass that instead of \"maint set console-translation-mode\nbinary\".\n\nRemove \"maint set console-translation-mode\" completely, since the only\nreason it existed was for the testsuite, and it was never included in\nany release.\n\nReviewed-By: Eli Zaretskii \u003celiz@gnu.org\u003e\nReviewed-By: Tom de Vries \u003ctdevries@suse.de\u003e\nChange-Id: I4632707bb7c8ca573cffff9641ddeb33a0e150af\n",
  "tree_diff": [
    {
      "type": "modify",
      "old_id": "2f3a26048d88370908e9b35a57156e4628cce01b",
      "old_mode": 33188,
      "old_path": "gdb/NEWS",
      "new_id": "87c72cb3d9fc9b288ccda4a3f254248d08e92ef0",
      "new_mode": 33188,
      "new_path": "gdb/NEWS"
    },
    {
      "type": "modify",
      "old_id": "6b0cfec26ebad2820bf157cb158823ee39188a44",
      "old_mode": 33188,
      "old_path": "gdb/doc/gdb.texinfo",
      "new_id": "462b86c87e6c3d02855c3a3c1cfb89ff757ff9ae",
      "new_mode": 33188,
      "new_path": "gdb/doc/gdb.texinfo"
    },
    {
      "type": "modify",
      "old_id": "f3049600a06a86a075e237ff026df8a622f6406c",
      "old_mode": 33188,
      "old_path": "gdb/main.c",
      "new_id": "3d56a31eb0c1d38cba0a7aafb16402088195a08f",
      "new_mode": 33188,
      "new_path": "gdb/main.c"
    },
    {
      "type": "modify",
      "old_id": "a4e9cf5005f0401fd5218b7092374132e68a614f",
      "old_mode": 33188,
      "old_path": "gdb/mingw-hdep.c",
      "new_id": "f24d2f533a9e0786b7337fe1cb12d0e73283923e",
      "new_mode": 33188,
      "new_path": "gdb/mingw-hdep.c"
    },
    {
      "type": "modify",
      "old_id": "720fd4a7cbc939c85c4395ece0f0042a7c8254aa",
      "old_mode": 33188,
      "old_path": "gdb/terminal.h",
      "new_id": "87a1aee37fb90631618d8ca22b8fd4d618f35d86",
      "new_mode": 33188,
      "new_path": "gdb/terminal.h"
    },
    {
      "type": "modify",
      "old_id": "36bd3b48dbc8c277f5a5e0faed2a2407e50559c7",
      "old_mode": 33188,
      "old_path": "gdb/testsuite/lib/gdb.exp",
      "new_id": "f05e1c84d5b37dcb1de89a668683ca7977db4d85",
      "new_mode": 33188,
      "new_path": "gdb/testsuite/lib/gdb.exp"
    }
  ]
}
