This is the mail archive of the
binutils@sourceware.org
mailing list for the binutils project.
Re: [RFC] Add support for printing pdata for x86_64 pe coff objects
- From: Andreas Schwab <schwab at linux-m68k dot org>
- To: "Pierre Muller" <pierre dot muller at ics-cnrs dot unistra dot fr>
- Cc: "'Nicholas Clifton'" <nickc at redhat dot com>, <binutils at sourceware dot org>
- Date: Wed, 24 Dec 2014 12:24:22 +0100
- Subject: Re: [RFC] Add support for printing pdata for x86_64 pe coff objects
- Authentication-results: sourceware.org; auth=none
- References: <004201cfdd49$be9683c0$3bc38b40$ at muller@ics-cnrs.unistra.fr> <5499A8D3 dot 4090900 at redhat dot com> <000a01d01f05$65bdf5f0$3139e1d0$ at muller@ics-cnrs.unistra.fr> <549A910B dot 9000806 at redhat dot com> <9636 dot 12008276886$1419418075 at news dot gmane dot org>
"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."