]> git.ipfire.org Git - thirdparty/valgrind.git/commit
callgrind: fix setting call counter to zero if requested
authorJosef Weidendorfer <Josef.Weidendorfer@gmx.de>
Tue, 15 May 2018 18:11:41 +0000 (20:11 +0200)
committerJosef Weidendorfer <Josef.Weidendorfer@gmx.de>
Tue, 15 May 2018 18:11:41 +0000 (20:11 +0200)
commitd48686019b53f6afb89769775e67b1990071025d
treeaa010cb92743d4507d976c53e3b3de086e585527
parente5dea048c1cd9fb8cd85175074388da3430b09f3
callgrind: fix setting call counter to zero if requested

We did not set the call cost counters in CLG_(zero_bbcc) to zero,
which gets called by requests to set counters to zero
- via client request
- when entering a function if configured so
- via gdb monitor command (used by callgrind_control -z)

Counters are also set to zero after they are dumped out to a file.
This does not use CLG_(zero_bbcc), and was doing the right thing.

This fixes bug 392449.
callgrind/bbcc.c