)]}'
{
  "commit": "342ed14c194214b55c75fac972095f15ac732ef8",
  "tree": "97952d3820bb7025f9989572abc9cbc67c0bc1a1",
  "parents": [
    "e922d7b7c19e7f2d0b77f1eb182049c907e669dd"
  ],
  "author": {
    "name": "Pedro Alves",
    "email": "pedro@palves.net",
    "time": "Wed May 20 14:48:03 2026 +0100"
  },
  "committer": {
    "name": "Pedro Alves",
    "email": "pedro@palves.net",
    "time": "Mon May 25 15:34:58 2026 +0100"
  },
  "message": "Fix \"set cwd ...\" on Cygwin, part 2\n\nEven after the previous patch, on both native and gdbserver Cygwin, we\nget:\n\n (gdb) set cwd /cygdrive/d/cygwin-gdb/build-testsuite/outputs/gdb.base/exitsignal\n (gdb) start\n Temporary breakpoint 3 at 0x100401094: file /home/alves/rocm/gdb/src/gdb/testsuite/gdb.base/segv.c, line 26.\n Starting program: /cygdrive/d/cygwin-gdb/build-testsuite/outputs/gdb.base/exitsignal/exitsignal.exe\n ❌️ Error creating process /cygdrive/d/cygwin-gdb/build-testsuite/outputs/gdb.base/exitsignal/exitsignal.exe (error 6): The handle is invalid.\n (gdb)\n\nOn the native side, this is because in\nwindows_nat_target::create_inferior, we unconditionally convert\nforward slashes to backward slashes:\n\n  /cygdrive/d/cygwin-gdb/build-testsuite/outputs/gdb.base/exitsignal\n  \u003d\u003e\n  \\cygdrive\\d\\cygwin-gdb\\build-testsuite\\outputs\\gdb.base\\exitsignal\n\nand then cygwin_conv_path(CCP_POSIX_TO_WIN_W) does nothing on such\npath, as the backward slashes make the path not look like a Unix-style\npath.\n\nCreateProcess then fails to CD into that directory, as that\u0027s not a\nreal Windows native path.\n\nThe fix is to not do the slashes replacement on Cygwin.\n\nOn the GDBserver side, we\u0027re just completely missing the\ncygwin_conv_path logic.  This commit adds it.  The code isn\u0027t shared\nwith GDB because GDB uses wide chars, and GDBserver uses narrow char.\n\nApproved-By: Tom Tromey \u003ctom@tromey.com\u003e\nChange-Id: I004f2a562757a566423f6acb9aecfcc1a7f2f746\ncommit-id: 85aa8c22\n",
  "tree_diff": [
    {
      "type": "modify",
      "old_id": "862568fa21e01cd8f3cd22652a60391950bc6501",
      "old_mode": 33188,
      "old_path": "gdb/windows-nat.c",
      "new_id": "a284438bd36dacbc59a6fbe44b826dd3a5c77874",
      "new_mode": 33188,
      "new_path": "gdb/windows-nat.c"
    },
    {
      "type": "modify",
      "old_id": "469ff32f0709055a78a66cbc25e25e50829daf72",
      "old_mode": 33188,
      "old_path": "gdbserver/win32-low.cc",
      "new_id": "6f1cf5ed0251b50299567c35c7a8c1972245b2a3",
      "new_mode": 33188,
      "new_path": "gdbserver/win32-low.cc"
    }
  ]
}
