OSDN Git Service

2003-05-13 Dave Brolley <brolley@redhat.com>
authorbrolley <brolley>
Wed, 14 May 2003 14:59:52 +0000 (14:59 +0000)
committerbrolley <brolley>
Wed, 14 May 2003 14:59:52 +0000 (14:59 +0000)
        * gprof.cxx (profiling_components): Set bucket count to zero when it
        is empty.

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

index 546d5e1..81cb6ca 100644 (file)
@@ -1,3 +1,8 @@
+2003-05-13  Dave Brolley  <brolley@redhat.com>
+
+       * gprof.cxx (profiling_components): Set bucket count to zero when it
+       is empty.
+
 2002-11-22  Frank Ch. Eigler  <fche@redhat.com>
 
        * gprof.cxx: Give up on hash_map; use plain map<> for count tables.
index ec10b9a..ed51b21 100644 (file)
@@ -327,6 +327,7 @@ namespace profiling_components
                    else
                      {
                        put_bytes (of, host_int_2(count), 2);
+                       b->second = 0; // in case we iterate due to overflow
                      }
                  }