This is the mail archive of the binutils@sourceware.org mailing list for the binutils project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [RFC] Add support for printing pdata for x86_64 pe coff objects


"Pierre Muller" <pierre.muller@ics-cnrs.unistra.fr> writes:

> The missing newline, is explained by the comment below:
>
> 2719      /* ctime implies '\n'.  */
> 2720      {
> 2721        time_t t = pe->coff.timestamp;
> 2722        fprintf (file, "\nTime/Date\t\t%s", ctime (&t));
> 2723      }
> 2724
> but I don't know why t returns "(null)"

ctime(&t) returned NULL.

> (gdb) ptyp t
> type = long long
> (gdb) p /x t
> $4 = 0xffffffff806f8040
>
> Is this some magical number?

What happens if you clear the top 32 bits?

Andreas.

-- 
Andreas Schwab, schwab@linux-m68k.org
GPG Key fingerprint = 58CA 54C7 6D53 942B 1756  01D3 44D5 214B 8276 4ED5
"And now for something completely different."


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]