From c380c3e52d6abfd6011e89e984237b93ab44d3c1 Mon Sep 17 00:00:00 2001 From: fche Date: Tue, 27 Aug 2002 17:53:23 +0000 Subject: [PATCH] 2002-08-27 Frank Ch. Eigler From Anthony Green : * gprof.cxx (store): Specify binary mode on output file. --- sid/component/profiling/ChangeLog | 5 +++++ sid/component/profiling/gprof.cxx | 3 ++- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/sid/component/profiling/ChangeLog b/sid/component/profiling/ChangeLog index 658375f38c..f1cf523ce7 100644 --- a/sid/component/profiling/ChangeLog +++ b/sid/component/profiling/ChangeLog @@ -1,3 +1,8 @@ +2002-08-27 Frank Ch. Eigler + + From Anthony Green : + * gprof.cxx (store): Specify binary mode on output file. + 2002-02-18 Frank Ch. Eigler * gprof.cxx (store): Emit high_pc for histogram as gprof expects it diff --git a/sid/component/profiling/gprof.cxx b/sid/component/profiling/gprof.cxx index f6785696a6..86d95d3a15 100644 --- a/sid/component/profiling/gprof.cxx +++ b/sid/component/profiling/gprof.cxx @@ -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 " -- 2.11.0