[PATCH 2/3] Consistently use BFD's time

Eli Zaretskii eliz@gnu.org
Fri Jan 17 07:57:00 GMT 2020


> Cc: gdb-patches@sourceware.org
> From: Pedro Alves <palves@redhat.com>
> Date: Thu, 16 Jan 2020 20:37:28 +0000
> 
> #define COPY(FIELD) statbuf->FIELD = st.FIELD
>   COPY (st_dev);
>   // ... copy over all relevant fields ...
> #undef COPY

Copying fields will work, but it would need some care.  For example,
the Gnulib replacement of 'struct stat' redefines st_size and st_mtime
to wider data types, so copying from the Gnulib definition to the
system definition might overflow.

Thanks.



More information about the Gdb-patches mailing list