From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id E89F13858D1E; Sun, 5 Mar 2023 12:45:05 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org E89F13858D1E DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sourceware.org; s=default; t=1678020305; bh=z/TmJEvf2zygV/p6HVVr5ZS6mFudbB3+myjrRRTkCf0=; h=From:To:Subject:Date:In-Reply-To:References:From; b=kBzrfXn7Es4E1xpKMOFfONd3MHY4geZYmZJ6NZSaxxYZ0gdcxRUldOOEkOccsZiNc 3EY1dpBvxa9etIPLlxPJy8zkGAJ7+idIKob98nxyvASC7c97/SPdr22S+Bt/Vw2oFc 1iUtcMWXAya4iUxrqEfPu14m6RN75iOJeSkHrok8= From: "jon.turney at dronecode dot org.uk" To: gdb-prs@sourceware.org Subject: [Bug gdb/30017] Cygwin gdb fails when given a windows absolute path Date: Sun, 05 Mar 2023 12:45:05 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gdb X-Bugzilla-Component: gdb X-Bugzilla-Version: 11.2 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: jon.turney at dronecode dot org.uk X-Bugzilla-Status: UNCONFIRMED X-Bugzilla-Resolution: X-Bugzilla-Priority: P2 X-Bugzilla-Assigned-To: unassigned at sourceware dot org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: cc Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://sourceware.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 List-Id: https://sourceware.org/bugzilla/show_bug.cgi?id=3D30017 Jon Turney changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |jon.turney at dronecode do= t org.uk --- Comment #2 from Jon Turney --- Using a Windows Eclipse and Winows Java with Cygwin executables is bound to encounter problems like this, which cannot be generically solved in Cygwin. Passing Windows-style paths to POSIX API functions which take a pathname generally works. But if an executable (in this case, gdb) does some internal manipulation on= the pathname, assuming it's in POSIX-style, you get problems. The simple solution is to write a wrapper around gdb, which takes a Windows-style path, and converts it using cygpath to POSIX-style before pas= sing it to gdb. The complex solution is to modfiy gdb so it identifies the style of path be= fore manipulating it appropriately, but some one who cares about this edge-case = will have to write it. --=20 You are receiving this mail because: You are on the CC list for the bug.=