From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 9A1403858C39; Sat, 13 Apr 2024 11:15:07 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 9A1403858C39 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sourceware.org; s=default; t=1713006907; bh=CFtBPly/Bbc8qtfQDD3auBEV0/pS2l/OPLqLgiUkcFI=; h=From:To:Subject:Date:In-Reply-To:References:From; b=FNB6eGn+PAqg62kGsMMAaP5xbveYe8vpOhOlT9CGcd2zzdflQ3CDu61TQ4XWRr2Cg wwxwoIIqGlgXZRK5vlb4iYCYEl05sWc+9SXtIx8SNmJ3UG3JSstppNfXR4KW3DGJa2 hYPSzhkNNKnMbYJFNS+qImTnq4jGivjaUu8Al/rA= From: "ssbssa at sourceware dot org" To: gdb-prs@sourceware.org Subject: [Bug gdb/31636] GDB 14 incorrectly reads/handles file timestamps on i686-w64-mingw32 hosts Date: Sat, 13 Apr 2024 11:15:07 +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: 14.1 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: ssbssa at sourceware dot org X-Bugzilla-Status: NEW 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: 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=3D31636 --- Comment #5 from Hannes Domani --- (In reply to Peter Damianov from comment #3) > Can confirm that adding -D__MINGW_USE_VC_2005_COMPAT in CFLAGS and CXXFLA= GS > appears to resolve this issue. Yes, I would have suggested a similar workaround for now (though using CPPF= LAGS instead of CFLAGS/CXXFLAGS). I was wondering why this problem didn't appear in gdb-13 as well, it already contained this define since this gnulib update: https://sourceware.org/git/?p=3Dbinutils-gdb.git;a=3Dcommit;h=3Ddc6c21dabfb= d242616b9e6266b459eded2d0762b It's because reread_symbols() of gdb/symfile.c changed from stat() to bfd_stat() here: https://sourceware.org/git/?p=3Dbinutils-gdb.git;a=3Dcommitdiff;h=3Df2c4f78= c813a9cef38b7e9c9ad18822fb9e19345 Should bfd be changed to always define __MINGW_USE_VC2005_COMPAT for mingw targets like gnulib does? --=20 You are receiving this mail because: You are on the CC list for the bug.=