From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from sonic306-20.consmr.mail.ir2.yahoo.com (sonic306-20.consmr.mail.ir2.yahoo.com [77.238.176.206]) by sourceware.org (Postfix) with ESMTPS id 3DB79383E815 for ; Tue, 26 May 2020 17:14:25 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.3.2 sourceware.org 3DB79383E815 X-YMail-OSG: zYI6SRQVM1mxrW3hbZeyg19zReSKOqqC98VvIN6SQbBZ1AAgQVOZOHs2x4AQZfE MpkDKJxeWBxJh6Su7u4xJz9RuYrzh5WxzfvvIaHHzbooUc5WPvlbV2Y9zvIss5SbwZ28SaW_dph3 5npRWmWdCfTE9VaHor7ZK6tC90JZilZDUs2G1fiqQ4ZkHhVXI1BIWX380oipR1D07sMRyCrX75lu JO4FqcOug3i7g6UCOVCVe6HPkiFnXbtay9IgPJsRPty3PZCBg5SlU0jc4L4hNwpfiLxPo92nxf9v zU4GRLb4psU4Fd_XZvn8hJH5ngV9Uu0VzQ2xu9N3JOsxWDGTi8uTL1XYXshRSZdvoHYevbSqxKui ykoiwYod3duIga.ag52J_e0WjlujjNFPetNEhjmZxE9b867C5tlsXaKKrsayck1okJ.aPfwnqbJk _h8Y7gPHMRJoB.cJB66vT6XqQru7ouXIlJIxRec.MxxHjw_OhqnOkfWYDuI7anbTg9YxzbWAox6b 5KODv72OcE5uiMC0BQsNEBvbfnIB0uo_kuiQ85RsdB8hpI6bcZgiTdcJkBzHXqsDM1RIrYwAUcYv _sA.Bw8qbEXqHtk6CMJg_RqGKT.31VW555U2LtMeqRMMZxIbHXkhmHCuFbYSoWKCzzXlXXmowEd5 aiTG.iz4GDjSa.IayTnRPM9eTy6V9nvi3ewgHw7oASQbAXDI7pUL48W86PFv1GRtUlsgT47_D1AP e_nm7XuOiczhssUt0e6tYLCCJB7_H8Bf_a7DpsyvM5nCIzSVCTHfbpwn9EVDt2yktiURTlCUURtk Eh_cUqbNQPONDO_0xXPsgEM6UrSabO6SWUKFGiveF4KwpoLo8N9WNneHHcB65tERfLmgxpToh.vS Zwbr5VF4Mi83mtFgSoy_KB7xYbIXxE9GQIRYpnSMVERuliZZXVIHUpdQ8eQdeOQEgP5aaiSckUPt QSyLQAZquZ.TdKTKlrnh6F33cJVPQ3Nrt__Z30TaWvUve5QKjKpQ.v7Kex6JevuMSriC5lHXrGd9 9BOFZV5dOsbOJYQVnRl08d4FQ7_pVAnQiWdc504UzAeE3x8QR5qADXNEeI7YvTRHzypG8eVMREsj C34vSj9GezNvbXROZUqiwPJKpqtVBdnv4uUhgXFiaD7oZESBgkEWlUXmYgvlywdyztjAPzdQlWUF mgeHZBz5zS_zhguxx9tfNit6UlNTTMJJieLKCU7WKFi6Lu8xi1gK7UAr04V4T1fz09NH2qYkTfhd Vl7Ya5aEDiNOefjTZnB8r5xzfH3AIbUACAT4xLlhRXJiw3Qos3fpGmI3P7q40v1PdHdG132kTi3e 9YjCCIF_ZYyQLspuAx3ie_w-- Received: from sonic.gate.mail.ne1.yahoo.com by sonic306.consmr.mail.ir2.yahoo.com with HTTP; Tue, 26 May 2020 17:14:24 +0000 Date: Tue, 26 May 2020 17:14:21 +0000 (UTC) From: Hannes Domani To: Gdb-patches Message-ID: <445485904.6616560.1590513261197@mail.yahoo.com> In-Reply-To: References: <20200525185659.59346-1-ssbssa@yahoo.de> <20200525185659.59346-3-ssbssa@yahoo.de> <1075658620.6710595.1590510315144@mail.yahoo.com> <14363667.6758276.1590511219831@mail.yahoo.com> Subject: Re: [PATCH 2/7] Handle Windows drives in auto-load script paths MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-Mailer: WebService/1.1.15960 YMailNorrin Mozilla/5.0 (Windows NT 6.1; Win64; x64; rv:76.0) Gecko/20100101 Firefox/76.0 X-Spam-Status: No, score=-5.5 required=5.0 tests=BAYES_00, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, FREEMAIL_FROM, RCVD_IN_DNSWL_NONE, RCVD_IN_MSPIKE_H2, SPF_HELO_NONE, SPF_PASS, TXREP autolearn=ham autolearn_force=no version=3.4.2 X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on server2.sourceware.org X-BeenThere: gdb-patches@sourceware.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Gdb-patches mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 26 May 2020 17:14:26 -0000 Am Dienstag, 26. Mai 2020, 18:43:15 MESZ hat Christian Biesinger Folgendes geschrieben: > On Tue, May 26, 2020 at 11:40 AM Hannes Domani via Gdb-patches > wrote: > > > >=C2=A0 Am Dienstag, 26. Mai 2020, 18:32:38 MESZ hat Christian Biesinger = Folgendes geschrieben: > > > > > On Tue, May 26, 2020 at 11:25 AM Hannes Domani via Gdb-patches > > > wrote: > > > > > > > >=C2=A0 Am Dienstag, 26. Mai 2020, 18:05:57 MESZ hat Christian Biesin= ger Folgendes geschrieben: > > > > > > > > > On Mon, May 25, 2020 at 1:57 PM Hannes Domani via Gdb-patches > > > > > wrote: > > > > > > > > > > > > Fixes this testsuite fail on Windows: > > > > > > FAIL: gdb.base/auto-load.exp: print $script_loaded > > > > > > > > > > > > Converts the debugfile path from c:/dir/file to /c/dir/file, so= it can be > > > > > > appended to the auto-load path. > > > > > > > > > > How does this work? I thought /c/foo was not supported by either > > > > > cygwin or mingw? > > > > > > > > Yes, but in this case we need a path that can be appended to the va= rious > > > > entries of 'set auto-load scripts-directory'. > > > > c:/foo can't be appended, but /c/foo can. > > > > So you would get something like c:/script/directory/c/foo. > > > > > > OK, so I *think* what you're saying is that if you have an objfile > > > c:\foo\bar.dll, and an auto-load directory c:\load, then with this > > > patch we will look for an auto-load script in > > > c:\load\c\foo\bar.dll-gdb.py? Is that right? > > > > Basically, yes. > > > > > > > If so, shouldn't there be a documentation update about how this works > > > on Windows, and possibly a NEWS entry? > > > > A news entry that the bug was fixed? > > From how I understand gdb.base/auto-load.exp, this is the way it was al= ways > > supposed to work (did I understand this wrong?). > > I don't feel so strongly about NEWS, but I specifically meant the > translation of c:\ to c/ on Windows -- shouldn't that be documented? That's probably a good idea, debug-file-directory works the same way, and there it is documented like this: (On MS-Windows/MS-DOS, the drive letter of the executable=E2=80=99s leading directories is converted to a one-letter subdirectory, i.e. d:/usr/bin/ is converted to /d/usr/bin/, because Windows filesystems disallow colons in fi= le names.) I will add something similar for scripts-directory. Hannes