OSDN Git Service

2002-08-27 Frank Ch. Eigler <fche@redhat.com>
authorfche <fche>
Tue, 27 Aug 2002 17:53:23 +0000 (17:53 +0000)
committerfche <fche>
Tue, 27 Aug 2002 17:53:23 +0000 (17:53 +0000)
From Anthony Green <green@redhat.com>:
* gprof.cxx (store): Specify binary mode on output file.

sid/component/profiling/ChangeLog
sid/component/profiling/gprof.cxx

index 658375f..f1cf523 100644 (file)
@@ -1,3 +1,8 @@
+2002-08-27  Frank Ch. Eigler  <fche@redhat.com>
+
+       From Anthony Green <green@redhat.com>:
+       * gprof.cxx (store): Specify binary mode on output file.
+
 2002-02-18  Frank Ch. Eigler  <fche@redhat.com>
 
        * gprof.cxx (store): Emit high_pc for histogram as gprof expects it
index f678569..86d95d3 100644 (file)
@@ -269,7 +269,8 @@ namespace profiling_components
            return;
          }
 
-       ofstream of (this->output_file.c_str ());
+       ofstream of (this->output_file.c_str (),
+                     ios::out | ios::trunc | ios::binary);
        if (! of.good())
          {
            cerr << "sw-profile-gprof: Error opening "