secmem: Prepare for easier debugging. master
authorWerner Koch <wk@gnupg.org>
Wed, 12 Dec 2018 07:34:10 +0000 (08:34 +0100)
committerWerner Koch <wk@gnupg.org>
Wed, 12 Dec 2018 07:43:48 +0000 (08:43 +0100)
commit876f7280e8604bc99ddda0526339ec5ec6b23c4b
treea8ea9eecc124015101a091eadfaf597e40425eb2
parent66d2b7fc17258f1424f4ca4adb1096e48b818bd0
secmem: Prepare for easier debugging.

* src/secmem.c (_gcry_secmem_dump_stats): Factor code out to ...
(secmem_dump_stats_internal): new.
--

This allows to insert call to the dump function during debug sessions
inside of the allocators or call secmem_dump_stats_internal from gdb.

Signed-off-by: Werner Koch <wk@gnupg.org>
src/secmem.c