From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail.cakelab.org (mail.cakelab.org [81.7.10.4]) by sourceware.org (Postfix) with ESMTPS id 8E1393858D28 for ; Sat, 4 Mar 2023 16:49:42 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 8E1393858D28 Authentication-Results: sourceware.org; dmarc=pass (p=reject dis=none) header.from=strace.org Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=strace.org Received: from localhost (localhost [127.0.0.1]) by mail.cakelab.org (Postfix) with ESMTP id 25B12260418F for ; Sat, 4 Mar 2023 17:49:40 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=strace.org; s=202105; t=1677948580; bh=vQsewDrvafmPwGSJ6emsenriJvp5Y2gIJfjiSxGOc3Q=; h=Date:To:From:Subject; b=TqJHD2X29leSGqX+/3IejaKpkm6+4l+hJIw6hLgikDLgwJKXin1NzpPGSH/K2K8b0 H7i4Og53fvcwI0OkcigWbJIAPGfA4hwiWPfmpWH3Lu5JybBM/xLtFubr+ioZ9Y+b7n M8wMCcfeVG51vXr+nEcSfbe3/GvuvTJwcnnWwp35FIXwV/DczFvHVlWNOYsH6dy8cx wNW4FNklI6qpZk9V1O4C60opD8TCmm9Zz+tqaDIUCvrn8jLFlfbn9iExWXgXiaErKS slxmX6gHgA7Nxt1yIdNhKWRmebIPhpIE2wOVPyIG6EI27hmGp1HMJtCdBr0HWMUsiZ TACP/Y0uqDZIw== X-Virus-Scanned: Debian amavisd-new at mail.cakelab.org Received: from mail.cakelab.org ([127.0.0.1]) by localhost (mail.cakelab.org [127.0.0.1]) (amavisd-new, port 10025) with ESMTP id E-iLLrm2Dwcl for ; Sat, 4 Mar 2023 17:49:39 +0100 (CET) Received: from [192.168.0.2] (dslb-092-077-251-174.092.077.pools.vodafone-ip.de [92.77.251.174]) (Authenticated sender: homac@strace.org) by mail.cakelab.org (Postfix) with ESMTPSA for ; Sat, 4 Mar 2023 17:49:38 +0100 (CET) Message-ID: <56fc361f-fb07-393c-b7df-d07353d70c14@strace.org> Date: Sat, 4 Mar 2023 17:49:38 +0100 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.7.1 Content-Language: en-US To: cygwin@cygwin.com From: Holger Machens Subject: cygwin gdb: issue with non-posix style absolute paths Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=0.9 required=5.0 tests=BAYES_00,DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_BARRACUDACENTRAL,SPF_HELO_NONE,SPF_PASS,TXREP autolearn=no autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on server2.sourceware.org List-Id: Hello there, when starting gdb (v10 or higher) with a windows absolute path to an executable, it runs into issues with paths in several cases, reporting the following error: BFD: reopening /cygdrive/x/project/bin/X:\project\bin\simple.test.exe: No such file or directory It looks like it does not recognize the windows path as beeing absolute and adds the posix-style absolute path to the current working directory as prefix. When using a posix-style absolute path to the executable instead, everything works normally. AFFECTED USERS This is especially an issue for developers using Eclipse CDT as reported here: https://www.eclipse.org/forums/index.php/t/1105969/ Apparently there was the same issue 13 years ago, but must have been fixed in the meantime and reappeared now: https://stackoverflow.com/questions/541099/how-to-get-eclipse-to-give-cygwins-gdb-a-posix-path-to-the-executable I guess this commit might be a possible source of the issue on CDT side: https://github.com/eclipse-cdt/cdt/commit/5654112209d440469e40660c946ffdee3daa938f FILED BUG REPORTS CDT developers did state, that this is a bug in GDB, as you can read here: https://github.com/eclipse-cdt/cdt/issues/228 Consequently, the "bug" was also reported to gdb: https://sourceware.org/bugzilla/show_bug.cgi?id=30017 I'm not sure, if this is the correct conclusion. Does gdb actually support windows? In other words - does cygwin apply patches or flags to gdb to get it to work with cygwin and windows paths? Thanks in advance - homac