diff options
author | Richard Henderson <rth@redhat.com> | 2001-10-25 06:33:31 +0000 |
---|---|---|
committer | Richard Henderson <rth@redhat.com> | 2001-10-25 06:33:31 +0000 |
commit | b831bd7c90c327d37c4376bd5289c370ab9e8237 (patch) | |
tree | 5dae09ba80f9931078474684cf8d7391c1486b0e | |
parent | 56628232a5ffdd66765da4b82534ebc4ce484833 (diff) | |
download | gdb-b831bd7c90c327d37c4376bd5289c370ab9e8237.zip gdb-b831bd7c90c327d37c4376bd5289c370ab9e8237.tar.gz gdb-b831bd7c90c327d37c4376bd5289c370ab9e8237.tar.bz2 |
* peXXigen.c (_bfd_XX_print_private_bfd_data_common): Copy
timestamp to time_t for ctime.
-rw-r--r-- | bfd/ChangeLog | 5 | ||||
-rw-r--r-- | bfd/peXXigen.c | 5 |
2 files changed, 9 insertions, 1 deletions
diff --git a/bfd/ChangeLog b/bfd/ChangeLog index 8092dbf..d782ee5 100644 --- a/bfd/ChangeLog +++ b/bfd/ChangeLog @@ -1,5 +1,10 @@ 2001-10-24 Richard Henderson <rth@redhat.com> + * peXXigen.c (_bfd_XX_print_private_bfd_data_common): Copy + timestamp to time_t for ctime. + +2001-10-24 Richard Henderson <rth@redhat.com> + 2001-08-23 Jakub Jelinek <jakub@redhat.com> * elfxx-ia64.c (elfNN_ia64_hash_table_create): Clear ia64_info. diff --git a/bfd/peXXigen.c b/bfd/peXXigen.c index 0e1eaea..a3141ba 100644 --- a/bfd/peXXigen.c +++ b/bfd/peXXigen.c @@ -1825,7 +1825,10 @@ _bfd_XX_print_private_bfd_data_common (abfd, vfile) #undef PF /* ctime implies '\n'. */ - fprintf (file, "\nTime/Date\t\t%s", ctime (&pe->coff.timestamp)); + { + time_t t = pe->coff.timestamp; + fprintf (file, "\nTime/Date\t\t%s", ctime (&t)); + } fprintf (file, "\nImageBase\t\t"); fprintf_vma (file, i->ImageBase); fprintf (file, "\nSectionAlignment\t"); |