From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 9D959385842A; Fri, 12 Apr 2024 17:52:44 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 9D959385842A DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sourceware.org; s=default; t=1712944364; bh=gKuWBAwgXsrkxNI3AfOtF+54XnDgzwWOI6awt277KN4=; h=From:To:Subject:Date:In-Reply-To:References:From; b=G5A4p5t720oe0OYBEXSbzqyFzoalG3xCNAwsVjW670KILY1/V2JvSF8xRyn/hlMsd m1+oZsoUO92Oa339XWha3JARC3KMgqok7sTV+N7WWWTG1RIeLco8YbnWnJ9lweYIKm nT4ZbA6eBa0NMseLLBRsWAGdUthVckPSR7cav10s= 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: Fri, 12 Apr 2024 17:52:42 +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: 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=3D31636 Hannes Domani changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |ssbssa at sourceware dot o= rg --- Comment #2 from Hannes Domani --- The reason is, gnulib/config.h has this define: ``` /* For 64-bit time_t on 32-bit mingw. */ #define __MINGW_USE_VC2005_COMPAT 1 ``` And bfd doesn't do this, so you get different definitions of struct stat. In bfd/bfdio.c: ``` (top-gdb) pt buf type =3D struct _stati64 { _dev_t st_dev; _ino_t st_ino; unsigned short st_mode; short st_nlink; short st_uid; short st_gid; _dev_t st_rdev; long long st_size; __time32_t st_atime; __time32_t st_mtime; __time32_t st_ctime; } ``` And in gdb/symfile.c: ``` (top-gdb) pt new_statbuf type =3D struct _stat64 { _dev_t st_dev; _ino_t st_ino; unsigned short st_mode; short st_nlink; short st_uid; short st_gid; _dev_t st_rdev; long long st_size; __time64_t st_atime; __time64_t st_mtime; __time64_t st_ctime; } ``` --=20 You are receiving this mail because: You are on the CC list for the bug.=