]> git.ipfire.org Git - thirdparty/valgrind.git/commit
Merge revisions 14230, 14602, and 14604 from the BUF_REMOVAL branch to trunk.
authorFlorian Krohm <florian@eich-krohm.de>
Tue, 7 Oct 2014 14:28:52 +0000 (14:28 +0000)
committerFlorian Krohm <florian@eich-krohm.de>
Tue, 7 Oct 2014 14:28:52 +0000 (14:28 +0000)
commit5929994d48a5f91ca65428f3d189d797d383f87a
tree1df022d8658b1ffda98963858189c5c618acbf3e
parentfe265a392fec5813b6a54e925bdca3ac0e235f18
Merge revisions 14230, 14602, and 14604 from the BUF_REMOVAL branch to trunk.
The change eliminates the fixed size buffers in gen_suppression and
show_used_suppressions. This is achieved by changing the return type from
VG_TDICT_CALL(tool_get_extra_suppression_info and
VG_TDICT_CALL(tool_print_extra_suppression_use from Bool to SizeT.
A return value of 0 indicates that nothing (except the terminating '\0'
which is always inserted) was written to the buffer. This corresponds to the
previous False return value. A return value which is equal to the buffer
size (that was passed in as function argument) indicates that the buffer was
not large enough. The caller then resizes the buffer and retries.
Otherwise, the buffer was large enough.
Regtested with a resize value of 1.

git-svn-id: svn://svn.valgrind.org/valgrind/trunk@14606
12 files changed:
coregrind/m_errormgr.c
coregrind/m_libcprint.c
coregrind/m_tooliface.c
coregrind/pub_core_tooliface.h
drd/drd_error.c
exp-sgcheck/pc_common.c
exp-sgcheck/pc_common.h
helgrind/hg_errors.c
helgrind/hg_errors.h
include/pub_tool_tooliface.h
memcheck/mc_errors.c
memcheck/mc_include.h